hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c28e1034573a00ce52b97665327d13d08dae8f1 | 126 | cpp | C++ | chapter_4/ex_4.12.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | chapter_4/ex_4.12.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | chapter_4/ex_4.12.cpp | YasserKa/Cpp_Primer | 198b10255fd67e31c15423a5e44b7f02abb8bdc2 | [
"MIT"
] | null | null | null | /**
* i != (j < k)
* i != (true/false)
* i != (0/1)
* It means checking if i is 1 or 0 which is resulted from j < k
*/
| 15.75 | 64 | 0.484127 | YasserKa |
5c2cb34533524ee582232ac99c94f7525ef3a6d7 | 7,536 | cpp | C++ | winnie1/new_delete_example/new_delete.cpp | r-lyeh/malloc-survey | 6da5aca6aa2720d64bff709c111a5d8a5fa7a1be | [
"Zlib"
] | 16 | 2015-06-26T20:58:23.000Z | 2017-11-05T09:46:45.000Z | winnie1/new_delete_example/new_delete.cpp | r-lyeh/test-allocators | 6da5aca6aa2720d64bff709c111a5d8a5fa7a1be | [
"Zlib"
] | 1 | 2015-07-22T22:48:56.000Z | 2015-07-22T22:48:56.000Z | winnie1/new_delete_example/new_delete.cpp | r-lyeh/test-allocators | 6da5aca6aa2720d64bff709c111a5d8a5fa7a1be | [
"Zlib"
] | 2 | 2015-09-26T17:40:20.000Z | 2016-06-23T17:15:23.000Z |
#include "winnie_alloc.h"
#include "new_delete.h"
#if defined(NDEBUG) && OP_NEW_DEBUG
#undef NDEBUG
#pragma message ("warning: NDEBUG and OP_NEW_DEBUG do not match. forcing #undef NDEBUG")
#endif
#include "assert.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <new>
#include "string.h"
#if OP_NEW_... | 20.096 | 126 | 0.697452 | r-lyeh |
5c3215dc46c4abbfc288ff7b72f4d89b5f9fd65d | 1,718 | cpp | C++ | 08.cpp | 0xmanjoos/cpp_collection | 306164ed398410674a814839f510d7b6c85a222d | [
"MIT"
] | 1 | 2021-01-24T01:48:57.000Z | 2021-01-24T01:48:57.000Z | 08.cpp | 0xmanjoos/cpp_collection | 306164ed398410674a814839f510d7b6c85a222d | [
"MIT"
] | null | null | null | 08.cpp | 0xmanjoos/cpp_collection | 306164ed398410674a814839f510d7b6c85a222d | [
"MIT"
] | null | null | null | #include <iostream>
// linked lists hee hee ha fucking kill me
// SOURCE: https://www.geeksforgeeks.org/linked-list-set-1-introduction/
// modified a bit
class Node {
public:
// int data and pointer to class node?
int data;
Node* next; // pointer to the next node
// example: second->data=2;... | 27.709677 | 95 | 0.531432 | 0xmanjoos |
5c36e5b32504023f0f525737ac7a754118636085 | 5,414 | cc | C++ | src/nixtag.cc | JiriVanek/nix-mx | 1e8fec06d4aae67116d5e3b212784f6606dbaeaf | [
"BSD-3-Clause"
] | null | null | null | src/nixtag.cc | JiriVanek/nix-mx | 1e8fec06d4aae67116d5e3b212784f6606dbaeaf | [
"BSD-3-Clause"
] | null | null | null | src/nixtag.cc | JiriVanek/nix-mx | 1e8fec06d4aae67116d5e3b212784f6606dbaeaf | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2016, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "nixtag.h"
#include "me... | 36.093333 | 111 | 0.593831 | JiriVanek |
5c388318a3c9af8911eed5f695c3eb46da682f06 | 459 | hpp | C++ | Paper/Group.hpp | mokafolio/Paper | d7e9c1450b29b1d3d8873de4f959bffa02232055 | [
"MIT"
] | 20 | 2016-12-13T22:34:35.000Z | 2021-09-20T12:44:56.000Z | Paper/Group.hpp | mokafolio/Paper | d7e9c1450b29b1d3d8873de4f959bffa02232055 | [
"MIT"
] | null | null | null | Paper/Group.hpp | mokafolio/Paper | d7e9c1450b29b1d3d8873de4f959bffa02232055 | [
"MIT"
] | null | null | null | #ifndef PAPER_GROUP_HPP
#define PAPER_GROUP_HPP
#include <Paper/Item.hpp>
#include <Paper/Constants.hpp>
namespace paper
{
class Document;
class STICK_API Group : public Item
{
friend class Item;
public:
static constexpr EntityType itemType = EntityType::Group;
Group();
... | 14.806452 | 65 | 0.627451 | mokafolio |
5c39d404f1e2252e54a71db14346b6dbd5fa7b4d | 3,560 | cpp | C++ | flextyper/test/tst_stat.cpp | wassermanlab/OpenFlexTyper_restore | f599011a8f856bd81e73e5472d50980b4695055c | [
"MIT"
] | 1 | 2020-02-20T20:01:38.000Z | 2020-02-20T20:01:38.000Z | flextyper/test/tst_stat.cpp | wassermanlab/OpenFlexTyper_restore | f599011a8f856bd81e73e5472d50980b4695055c | [
"MIT"
] | null | null | null | flextyper/test/tst_stat.cpp | wassermanlab/OpenFlexTyper_restore | f599011a8f856bd81e73e5472d50980b4695055c | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
///
/// Copyright (c) 2019, Wasserman lab
///
/// FILE tst_stats.cpp
///
/// DESCRIPTION This file contains tests for the stats class
///
/// Initial version @ Godfrain Jacques Kounkou
///
///////////////////////////////////////////////////... | 28.48 | 85 | 0.562079 | wassermanlab |
5c39de7473c67da99a4e3e6af7b76cfc4f6b483d | 1,328 | cpp | C++ | dependencies/PyMesh/tools/Wires/Parameters/VertexCustomOffsetParameter.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | 5 | 2018-06-04T19:52:02.000Z | 2022-01-22T09:04:00.000Z | dependencies/PyMesh/tools/Wires/Parameters/VertexCustomOffsetParameter.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | dependencies/PyMesh/tools/Wires/Parameters/VertexCustomOffsetParameter.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | /* This file is part of PyMesh. Copyright (c) 2015 by Qingnan Zhou */
#include "VertexCustomOffsetParameter.h"
using namespace PyMesh;
VertexCustomOffsetParameter::VertexCustomOffsetParameter(
WireNetwork::Ptr wire_network, const MatrixFr& offset) :
PatternParameter(wire_network), m_derivative(offset) {
... | 34.051282 | 77 | 0.692771 | aprieels |
5c3bc9320dc133c5b9595487d4f56053eb4b36f8 | 2,478 | hpp | C++ | src/bonefish/dealer/wamp_dealer_registration.hpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 58 | 2015-08-24T18:43:56.000Z | 2022-01-09T00:55:06.000Z | src/bonefish/dealer/wamp_dealer_registration.hpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 47 | 2015-08-25T11:04:51.000Z | 2018-02-28T22:38:12.000Z | src/bonefish/dealer/wamp_dealer_registration.hpp | aiwc/extlib-bonefish | 2f0d15960b5178d2ab24fd8e11965a80ace2cb5a | [
"Apache-2.0"
] | 32 | 2015-08-25T15:14:45.000Z | 2020-03-23T09:35:31.000Z | /**
* Copyright (C) 2015 Topology LP
*
* 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... | 28.813953 | 103 | 0.778854 | aiwc |
5c3d62f0e2a30326c8f0458fe39c3355f406e1a8 | 983 | cc | C++ | examples/vision_graph/src/NoS/applications/OSNode/OmnetIf_pkt.cc | zoranzhao/NoSDSE | 0e3148572e7cdf3a2d012c95c81863864da236d6 | [
"MIT"
] | 3 | 2019-01-26T20:35:47.000Z | 2019-07-18T22:09:22.000Z | examples/vision_graph/src/NoS/applications/OSNode/OmnetIf_pkt.cc | zoranzhao/NoSSim | 7b0e9edde0fe19f83d7aaa946fd580a6d9dab978 | [
"BSD-3-Clause"
] | null | null | null | examples/vision_graph/src/NoS/applications/OSNode/OmnetIf_pkt.cc | zoranzhao/NoSSim | 7b0e9edde0fe19f83d7aaa946fd580a6d9dab978 | [
"BSD-3-Clause"
] | 3 | 2017-09-08T22:13:28.000Z | 2019-06-29T21:42:53.000Z |
#include <iostream>
#include <sstream>
#include "OmnetIf_pkt.h"
OmnetIf_pkt::OmnetIf_pkt()
{
fileBuffer_arraysize = 0;
this->fileBuffer = NULL;
}
OmnetIf_pkt::~OmnetIf_pkt()
{
delete [] fileBuffer;
}
void OmnetIf_pkt::setFileBufferArraySize(unsigned int size)
{
char *fileBuffer_var2 = (size==0) ?... | 20.061224 | 80 | 0.690743 | zoranzhao |
5c3da2baceaccc641b25645c84ef2f97b3d802c2 | 2,002 | cc | C++ | RecoTracker/TkNavigation/test/TkMSParameterizationTest.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 2 | 2020-01-27T15:21:37.000Z | 2020-05-11T11:13:18.000Z | RecoTracker/TkNavigation/test/TkMSParameterizationTest.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 8 | 2020-03-20T23:18:36.000Z | 2020-05-27T11:00:06.000Z | RecoTracker/TkNavigation/test/TkMSParameterizationTest.cc | NTrevisani/cmssw | a212a27526f34eb9507cf8b875c93896e6544781 | [
"Apache-2.0"
] | 3 | 2019-03-09T13:06:43.000Z | 2020-07-03T00:47:30.000Z | #include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include ... | 30.333333 | 90 | 0.606394 | NTrevisani |
5c3f75e171fb117831597306fe89412e84c90c9f | 2,204 | cpp | C++ | iotivity-1.0.1/resource/csdk/security/unittest/svcresourcetest.cpp | gerald-yang/ubuntu-iotivity-demo | 17e799e209442bbefb2df846e329c802ee5255f7 | [
"Apache-2.0"
] | 1,433 | 2015-04-30T09:26:53.000Z | 2022-03-26T12:44:12.000Z | AllJoyn/Samples/OICAdapter/iotivity-1.0.0/resource/csdk/security/unittest/svcresourcetest.cpp | buocnhay/samples-1 | ddd614bb5ae595f03811e3dfa15a5d107005d0fc | [
"MIT"
] | 530 | 2015-05-02T09:12:48.000Z | 2018-01-03T17:52:01.000Z | AllJoyn/Samples/OICAdapter/iotivity-1.0.0/resource/csdk/security/unittest/svcresourcetest.cpp | buocnhay/samples-1 | ddd614bb5ae595f03811e3dfa15a5d107005d0fc | [
"MIT"
] | 1,878 | 2015-04-30T04:18:57.000Z | 2022-03-15T16:51:17.000Z | //******************************************************************
//
// Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... | 26.878049 | 75 | 0.627495 | gerald-yang |
5c4291a9eb3539d3bbeb778695a5e4c600527e93 | 4,642 | cpp | C++ | core/src/plugin/PluginDiscovery.cpp | tristanseifert/lichtenstein_client | 16b0d35915d11cd8cdf71d56c3d0f3d7268fe7cf | [
"BSD-3-Clause"
] | null | null | null | core/src/plugin/PluginDiscovery.cpp | tristanseifert/lichtenstein_client | 16b0d35915d11cd8cdf71d56c3d0f3d7268fe7cf | [
"BSD-3-Clause"
] | null | null | null | core/src/plugin/PluginDiscovery.cpp | tristanseifert/lichtenstein_client | 16b0d35915d11cd8cdf71d56c3d0f3d7268fe7cf | [
"BSD-3-Clause"
] | null | null | null | #include "PluginDiscovery.h"
#include "LichtensteinPluginHandler.h"
#include "HardwareInfoStruct.h"
#include "../util/StringUtils.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
// includes for i2c
#ifdef __linux__
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#endif
#include <glog/logging... | 23.21 | 100 | 0.646273 | tristanseifert |
5c469e86a1ad9a6493481c2c4b692795a8225067 | 12,826 | cpp | C++ | libraries/zmusic/mididevices/music_alsa_mididevice.cpp | Erick194/gzdoom | dcb7755716b7f4f6edce6f28b9e316d6de7eda15 | [
"RSA-MD"
] | 2 | 2020-04-19T13:37:34.000Z | 2021-06-09T04:26:25.000Z | libraries/zmusic/mididevices/music_alsa_mididevice.cpp | Erick194/gzdoom | dcb7755716b7f4f6edce6f28b9e316d6de7eda15 | [
"RSA-MD"
] | null | null | null | libraries/zmusic/mididevices/music_alsa_mididevice.cpp | Erick194/gzdoom | dcb7755716b7f4f6edce6f28b9e316d6de7eda15 | [
"RSA-MD"
] | null | null | null | /*
** Provides an ALSA implementation of a MIDI output device.
**
**---------------------------------------------------------------------------
** Copyright 2008-2010 Randy Heit
** Copyright 2020 Petr Mrazek
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification... | 25.198428 | 151 | 0.710432 | Erick194 |
5c4bd0115b98a0e53944cadf2f743dde628c407f | 443 | cpp | C++ | heap/kSortedArray.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | null | null | null | heap/kSortedArray.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | null | null | null | heap/kSortedArray.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | 1 | 2021-08-19T12:20:06.000Z | 2021-08-19T12:20:06.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int arr[]={6, 5, 3, 2, 8, 10, 9};
int n=sizeof(arr)/sizeof(arr[0]);
int k=3;
priority_queue<int,vector<int>,greater<int> > pq;
for(int i=0;i<n;i++){
pq.push(arr[i]);
if(pq.size()==k+1){
cout<<pq.top()<<" ";
... | 21.095238 | 53 | 0.446953 | sumana2001 |
5c4e7d0561f155e336d64344bb8746b7ae1bbc17 | 3,927 | cpp | C++ | Source/ISnd2/LoadOgg.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | 2 | 2022-02-11T11:59:44.000Z | 2022-02-16T20:33:25.000Z | Source/ISnd2/LoadOgg.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | Source/ISnd2/LoadOgg.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | #include "all.h"
#include "loader.h"
extern"C"{
#include "vorbis\vorbisfile.h"
}
#ifdef _DEBUG
#pragma comment(lib, "ogg_d.lib")
#pragma comment(lib, "vorbis_d.lib")
#else
#pragma comment(lib, "ogg.lib")
#pragma comment(lib, "vorbis.lib")
#endif
//----------------------------
const int BITDEPTH = 16; //bitdept... | 26.355705 | 113 | 0.531449 | mice777 |
5c56baa2acd3c5c05d37e50e16780bdc49fe6f47 | 6,068 | cpp | C++ | QtWebApp/httpserver/staticfilecontroller.cpp | cbcalves/crudQtTest | f10c83934abaca6d17f57e2b0aa0e6c8844bfdda | [
"MIT"
] | null | null | null | QtWebApp/httpserver/staticfilecontroller.cpp | cbcalves/crudQtTest | f10c83934abaca6d17f57e2b0aa0e6c8844bfdda | [
"MIT"
] | null | null | null | QtWebApp/httpserver/staticfilecontroller.cpp | cbcalves/crudQtTest | f10c83934abaca6d17f57e2b0aa0e6c8844bfdda | [
"MIT"
] | null | null | null | /**
@file
@author Stefan Frings
*/
#include "staticfilecontroller.h"
#include <QFileInfo>
#include <QDir>
#include <QDateTime>
using namespace stefanfrings;
StaticFileController::StaticFileController( const QSettings* settings, QObject* parent ) :
HttpRequestHandler( parent ),
m_encoding( settings->va... | 38.897436 | 157 | 0.599044 | cbcalves |
5c56c79b9d72ec05c7afc418b555be8c4cd08aee | 579 | hpp | C++ | src/common/idtypes/brushid.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/common/idtypes/brushid.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/common/idtypes/brushid.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#ifndef BRUSHID_HPP
#define BRUSHID_HPP
#include "addleid.hpp"
#include "brushengineid.hpp"
namespace Addle {
c... | 20.678571 | 76 | 0.768566 | squeevee |
5c5ac118797daf1cc64df7b8b0f9c2c3a17b9590 | 9,723 | hpp | C++ | include/libndgpp/net/basic_ipv4_address.hpp | goodfella/libndgpp | 2e3d4b993a04664905c1e257fb2af3a5faab5296 | [
"MIT"
] | null | null | null | include/libndgpp/net/basic_ipv4_address.hpp | goodfella/libndgpp | 2e3d4b993a04664905c1e257fb2af3a5faab5296 | [
"MIT"
] | null | null | null | include/libndgpp/net/basic_ipv4_address.hpp | goodfella/libndgpp | 2e3d4b993a04664905c1e257fb2af3a5faab5296 | [
"MIT"
] | null | null | null | #ifndef LIBNDGPP_NET_BASIC_IPV4_ADDRESS_HPP
#define LIBNDGPP_NET_BASIC_IPV4_ADDRESS_HPP
#include <cstdint>
#include <array>
#include <ostream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <libndgpp/error.hpp>
#include <libndgpp/net/ipv4_array.hpp>
namespace ndgpp {
namespace net {
temp... | 33.297945 | 145 | 0.62851 | goodfella |
5c5d4896cdef7918d1b9b1b525726cbddbafd513 | 597 | hxx | C++ | code/src/Profile.hxx | Angew/AnyBak | 66146b4b94e18ce7d215f1132752d33e4cddf1ed | [
"MIT"
] | null | null | null | code/src/Profile.hxx | Angew/AnyBak | 66146b4b94e18ce7d215f1132752d33e4cddf1ed | [
"MIT"
] | null | null | null | code/src/Profile.hxx | Angew/AnyBak | 66146b4b94e18ce7d215f1132752d33e4cddf1ed | [
"MIT"
] | null | null | null | #pragma once
#include "RuleSet.hh"
#include "VolumeRegistry.hh"
#include "VolumeSet.hh"
#include <memory>
class Profile
{
public:
const RuleSet& getRuleSet() const { return getRuleSet_impl(); }
RuleSet& getRuleSet() { return getRuleSet_impl(); }
const VolumeRegistry& getVolumeRegistry() const { return getVolum... | 22.961538 | 85 | 0.755444 | Angew |
5c5e6063275e112ec3c117a6c97cc9442bf36d9b | 996 | cpp | C++ | leetcode/1014.cpp | laiyuling424/LeetCode | afb582026b4d9a4082fdb99fc65b437e55d1f64d | [
"Apache-2.0"
] | null | null | null | leetcode/1014.cpp | laiyuling424/LeetCode | afb582026b4d9a4082fdb99fc65b437e55d1f64d | [
"Apache-2.0"
] | null | null | null | leetcode/1014.cpp | laiyuling424/LeetCode | afb582026b4d9a4082fdb99fc65b437e55d1f64d | [
"Apache-2.0"
] | null | null | null | //
// Created by 赖於领 on 2021/9/1.
//
#include <vector>
#include <iostream>
using namespace std;
//最佳观光组合
class Solution {
public:
int maxScoreSightseeingPair(vector<int> &values) {
// if (values.size() == 2) {
// return values[0] + values[1] - 1;
// }
//values[i]+values[j]+i-j... | 21.191489 | 78 | 0.447791 | laiyuling424 |
5c5f2368e1c6d05bba92409dbfefcac47bc0d744 | 1,343 | cpp | C++ | src/src/collision_sphere.cpp | crr0004/terrian_prototype | 34b04239ee2fb01e48f1602ff6dd08e8bd26da63 | [
"MIT"
] | 2 | 2015-11-05T20:08:00.000Z | 2016-07-07T04:17:07.000Z | src/src/collision_sphere.cpp | crr0004/terrian_prototype | 34b04239ee2fb01e48f1602ff6dd08e8bd26da63 | [
"MIT"
] | 3 | 2016-10-29T02:20:49.000Z | 2017-04-01T11:09:53.000Z | src/src/collision_sphere.cpp | crr0004/terrian_prototype | 34b04239ee2fb01e48f1602ff6dd08e8bd26da63 | [
"MIT"
] | null | null | null | #include "collision/spherecollider.hpp"
#include "collision/aabbcollider.hpp"
#include <cstddef>
using namespace Collision;
SphereCollider::SphereCollider(const glm::vec3& center, const float radius){
this->center = glm::vec3(center);
this->radius = radius;
}
bool SphereCollider::visitCollide(Collider* node){
retu... | 28.574468 | 77 | 0.694713 | crr0004 |
5c60f0151b28f916dc90688f5b7d0b866658f1ec | 676 | cpp | C++ | demos/multiplatform/delay/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 6 | 2020-06-20T23:56:42.000Z | 2021-12-18T08:13:54.000Z | demos/multiplatform/delay/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 153 | 2020-06-09T14:49:29.000Z | 2022-01-31T16:39:39.000Z | demos/multiplatform/delay/source/main.cpp | SarahS16/SJSU-Dev2 | 47f9ddb7d3c3743f839b57f381bf979dd61d49ab | [
"Apache-2.0"
] | 10 | 2020-08-02T00:55:38.000Z | 2022-01-24T23:06:51.000Z | #include <cinttypes>
#include <cstdint>
#include "utility/log.hpp"
#include "utility/time/time.hpp"
int main()
{
sjsu::LogInfo("Delay Application Starting...");
sjsu::LogInfo("This demo prints a statement every second using Delay(1s).");
sjsu::LogInfo(
"Notice that the uptime does not increase by 1 secon... | 23.310345 | 79 | 0.633136 | SarahS16 |
5c63ad45055fc5b87ccc0f9aa9c7696d28857b5d | 4,991 | cc | C++ | Source/BladeBase/source/graphics/RenderProperty.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/BladeBase/source/graphics/RenderProperty.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/BladeBase/source/graphics/RenderProperty.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2011/12/21
filename: RenderProperty.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <interface/public/graphics/RenderProperty.h>
#include <interface/publ... | 31 | 120 | 0.530154 | OscarGame |
5c65d2b705eadf9e53f5d161593f3221b758eaa0 | 2,763 | cpp | C++ | src/ChunkHandlerSFNC.cpp | Peralex/pxgf | a4ea0ad5d2d2ff3b909782c22ef6488a0ac81662 | [
"Apache-2.0"
] | 1 | 2017-12-20T14:27:01.000Z | 2017-12-20T14:27:01.000Z | src/ChunkHandlerSFNC.cpp | Peralex/pxgf | a4ea0ad5d2d2ff3b909782c22ef6488a0ac81662 | [
"Apache-2.0"
] | null | null | null | src/ChunkHandlerSFNC.cpp | Peralex/pxgf | a4ea0ad5d2d2ff3b909782c22ef6488a0ac81662 | [
"Apache-2.0"
] | null | null | null | // Copyright 2006 Peralex Electronics (Pty) Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 32.892857 | 167 | 0.734347 | Peralex |
5c67c4dc7eed0fa630f41634250e101387f5b1a3 | 2,710 | cpp | C++ | src/baekjoon_solutions/q2178/main_q2178.cpp | OptimistLabyrinth/competitive_programming | 92ef372053813fbeca8f7b1f0cde90555e2ea1d8 | [
"Apache-2.0"
] | null | null | null | src/baekjoon_solutions/q2178/main_q2178.cpp | OptimistLabyrinth/competitive_programming | 92ef372053813fbeca8f7b1f0cde90555e2ea1d8 | [
"Apache-2.0"
] | null | null | null | src/baekjoon_solutions/q2178/main_q2178.cpp | OptimistLabyrinth/competitive_programming | 92ef372053813fbeca8f7b1f0cde90555e2ea1d8 | [
"Apache-2.0"
] | null | null | null | #include <deque>
#include <iostream>
#include <sstream>
#include <vector>
using namespace std;
int horizontal_length;
int vertical_length;
vector<vector<bool>> maze;
vector<vector<bool>> is_visited;
deque<pair<int, int>> neighboring_paths;
int number_of_needed_pop_front;
int current_new_path_count;
int row_step[4] = ... | 31.511628 | 99 | 0.597786 | OptimistLabyrinth |
5c683a17d743c3a35d9e5f54c3197d497153624c | 3,505 | cpp | C++ | Source/10.0.18362.0/ucrt/env/get_environment_from_os.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/env/get_environment_from_os.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/env/get_environment_from_os.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// get_environment_from_os.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines a pair of functions to get the environment strings from the operating
// system. These functions copy the environment strings into a CRT-allocated
// buffer and return a pointer to that buffer. The cal... | 28.729508 | 109 | 0.694722 | 825126369 |
5c6fc2ea2c3eef41dd62d1afbe34ac4cbeea7a44 | 29,192 | cpp | C++ | Source/Core/BuildCommon/CDisneySceneBuildProcessor.cpp | schuttejoe/ShootyEngine | 56a7fab5a479ec93d7f641bb64b8170f3b0d3095 | [
"MIT"
] | 81 | 2018-07-31T17:13:47.000Z | 2022-03-03T09:24:22.000Z | Source/Core/BuildCommon/CDisneySceneBuildProcessor.cpp | schuttejoe/ShootyEngine | 56a7fab5a479ec93d7f641bb64b8170f3b0d3095 | [
"MIT"
] | 2 | 2018-10-15T04:39:43.000Z | 2019-12-05T03:46:50.000Z | Source/Core/BuildCommon/CDisneySceneBuildProcessor.cpp | schuttejoe/ShootyEngine | 56a7fab5a479ec93d7f641bb64b8170f3b0d3095 | [
"MIT"
] | 9 | 2018-10-11T06:32:12.000Z | 2020-10-01T03:46:37.000Z | //=================================================================================================================================
// Joe Schutte
//=================================================================================================================================
#include "BuildCommon/CDisneySceneBuildP... | 43.700599 | 141 | 0.571047 | schuttejoe |
5c7557362a73f40f51615910d3586efe130137ba | 1,477 | cpp | C++ | DSA-450/02Matrix/10commonElements.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/02Matrix/10commonElements.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/02Matrix/10commonElements.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | // question link: https://www.geeksforgeeks.org/common-elements-in-all-rows-of-a-given-matrix/
#include <bits/stdc++.h>
using namespace std;
vector<int> findCommon(vector<vector<int>> &nums)
{
vector<int> common;
unordered_map<int, int> map;
// marking all row 0 elements as present
for (int j = 0; j ... | 25.912281 | 139 | 0.477319 | vikkastiwari |
5c7610d0031114fd6ae16fbd1d44b0c1e1400667 | 622 | cpp | C++ | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-TommyLe3825 | 5d938242e9991e39c7138241e532475ed0705a48 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-TommyLe3825 | 5d938242e9991e39c7138241e532475ed0705a48 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex02-TommyLe3825 | 5d938242e9991e39c7138241e532475ed0705a48 | [
"MIT"
] | null | null | null | // Name: Tommy Le
// This program calculates the tax and tip on a restaurant bill.
#include <iostream>
int main()
{
double mealcost,tax,tip,totalbill;
std::cout << "Welcome to the Restaurant Bill Calculator!\n";
//Input Meal Cost
std::cout << "What is the total meal cost? ";
std::cin >> mealcost;
//... | 22.214286 | 64 | 0.599678 | CSUF-CPSC120-2019F23-24 |
f07c4142ce407a400c9a397ea735499fd273c066 | 215 | hpp | C++ | src/modules/osg/generated_code/TriangleList.pypp.hpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osg/generated_code/TriangleList.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osg/generated_code/TriangleList.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#ifndef TriangleList_hpp__pyplusplus_wrapper
#define TriangleList_hpp__pyplusplus_wrapper
void register_TriangleList_class();
#endif//TriangleList_hpp__pyplusplus_wrapper
| 23.888889 | 44 | 0.855814 | JaneliaSciComp |
f07f84cdd2ba1c1e88458535c89ae66d4374b2e5 | 12,766 | cpp | C++ | Flash/src/flash.cpp | MuellerA/LonganNanoTest | ed71398e63ff318695552b665b42e762b401c61e | [
"MIT"
] | 15 | 2019-12-15T21:57:27.000Z | 2022-02-22T05:28:24.000Z | Flash/src/flash.cpp | MuellerA/LonganNanoTest | ed71398e63ff318695552b665b42e762b401c61e | [
"MIT"
] | null | null | null | Flash/src/flash.cpp | MuellerA/LonganNanoTest | ed71398e63ff318695552b665b42e762b401c61e | [
"MIT"
] | 3 | 2020-07-28T17:19:39.000Z | 2021-10-01T09:01:51.000Z | ////////////////////////////////////////////////////////////////////////////////
// flash.cpp
////////////////////////////////////////////////////////////////////////////////
extern "C"
{
#include "gd32vf103.h"
}
#include "GD32VF103/spi.h"
#include "GD32VF103/gpio.h"
#include "GD32VF103/time.h"
#include "Longan/lc... | 24.933594 | 100 | 0.513943 | MuellerA |
f07fddd0d7e9745b75518d3d5266c40ab673b3d0 | 13,076 | cpp | C++ | chip8/src/cpu/opcodes.cpp | bryan-pakulski/emulators | 599856760529cce7cc31be43d07617983e642dae | [
"MIT"
] | null | null | null | chip8/src/cpu/opcodes.cpp | bryan-pakulski/emulators | 599856760529cce7cc31be43d07617983e642dae | [
"MIT"
] | null | null | null | chip8/src/cpu/opcodes.cpp | bryan-pakulski/emulators | 599856760529cce7cc31be43d07617983e642dae | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include "../globals.hpp"
#include "opcodes.hpp"
using namespace std;
opcodes::opcodes() {
std::map<unsigned short, int> optable;
}
opcodes::~opcodes() {
}
/**
* Gets function from the hashtable at a given index - If the function has not yet
* been added to the lookup ... | 19.229412 | 106 | 0.601101 | bryan-pakulski |
f0844ff5707784bddf9aff38dcd89c3fded92da1 | 941 | cpp | C++ | Stack/postfixEvaluation.cpp | gaurav147-star/DSA-learning | 52625953e2b1421fdd550004df893b970aac9308 | [
"MIT"
] | 1 | 2022-02-15T12:53:00.000Z | 2022-02-15T12:53:00.000Z | Stack/postfixEvaluation.cpp | gaurav147-star/DSA-learning | 52625953e2b1421fdd550004df893b970aac9308 | [
"MIT"
] | null | null | null | Stack/postfixEvaluation.cpp | gaurav147-star/DSA-learning | 52625953e2b1421fdd550004df893b970aac9308 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int postfixEvaluation(string s)
{
stack<double> st;
for (int i = 0; i < s.length(); i++)
{
if (s[i] >= '0' && s[i] <= '9')
{
st.push(s[i] - '0');
}
else
{
double op2 = st.top();
st.pop(... | 19.604167 | 51 | 0.336876 | gaurav147-star |
f084a7ccdba1a870071401028679bfbe7618d1f6 | 2,386 | cpp | C++ | phoenix/.test/test-listicons.cpp | vgmtool/vgm2pre | f4f917df35d531512292541234a5c1722b8af96f | [
"MIT"
] | 21 | 2015-04-13T03:07:12.000Z | 2021-11-20T00:27:00.000Z | phoenix/.test/test-listicons.cpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | phoenix/.test/test-listicons.cpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 2 | 2021-11-19T08:36:57.000Z | 2022-03-04T16:03:16.000Z | #include "phoenix.hpp"
using namespace nall;
using namespace phoenix;
struct TestWindow : Window {
TestWindow() {
setGeometry({64, 64, 480, 640});
setTitle("Test Window");
onClose = [&] {
setVisible(false);
};
}
} *testWindow = nullptr;
struct Application : Window {
VerticalLayout layout;... | 23.86 | 108 | 0.604359 | vgmtool |
f08869385b8bd0b0f20dd057ebc8fdbf6b9426c8 | 298 | cpp | C++ | AtCoder/ABC 162/C.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | 1 | 2020-05-25T15:32:23.000Z | 2020-05-25T15:32:23.000Z | AtCoder/ABC 162/C.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | null | null | null | AtCoder/ABC 162/C.cpp | igortakeo/Solutions-CF | d945f0ae21c691120b69db78ff3d240b7dedc0a7 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
int k;
ll sum = 0;
cin >> k;
for(int i=1; i<=k; i++){
for(int j=1; j<=k; j++){
int a = __gcd(i, j);
for(int l=1; l<=k; l++){
sum+= __gcd(a, l);
}
}
}
cout << sum << endl;
return 0;
}
| 12.416667 | 27 | 0.47651 | igortakeo |
f08c2d61feb5de0e5929ee721e6e49d47a942450 | 53 | cpp | C++ | source/Allocators/DoubleStackAllocator.cpp | teemid/Capstan | 35e37a41cdc4c471a4570916751e5f391693aef4 | [
"MIT"
] | null | null | null | source/Allocators/DoubleStackAllocator.cpp | teemid/Capstan | 35e37a41cdc4c471a4570916751e5f391693aef4 | [
"MIT"
] | null | null | null | source/Allocators/DoubleStackAllocator.cpp | teemid/Capstan | 35e37a41cdc4c471a4570916751e5f391693aef4 | [
"MIT"
] | null | null | null | #include "Capstan/Allocators/DoubleStackAllocator.h"
| 26.5 | 52 | 0.849057 | teemid |
f0944e557457ef143775a29eda3792bb6760d37e | 23,656 | cpp | C++ | firmware/src/Statemachine/Canopen.cpp | sprenger120/remote_control_device | c375ab12683c10fd2918ea8345bcb06a5d78b978 | [
"MIT"
] | 1 | 2021-01-27T12:23:43.000Z | 2021-01-27T12:23:43.000Z | firmware/src/Statemachine/Canopen.cpp | sprenger120/remote_control_device | c375ab12683c10fd2918ea8345bcb06a5d78b978 | [
"MIT"
] | null | null | null | firmware/src/Statemachine/Canopen.cpp | sprenger120/remote_control_device | c375ab12683c10fd2918ea8345bcb06a5d78b978 | [
"MIT"
] | null | null | null | #include "Canopen.hpp"
#include "ANSIEscapeCodes.hpp"
#include "CanFestivalLocker.hpp"
#include "Logging.hpp"
#include "PeripheralDrivers/CanIO.hpp"
#include "PeripheralDrivers/TerminalIO.hpp"
#include <algorithm>
namespace remote_control_device
{
Canopen *Canopen::_instance = nullptr;
Message Canopen::RTD_StateBoot... | 36.337942 | 113 | 0.625592 | sprenger120 |
f096246210bf176cfe8d59ed7623c939fe2b7924 | 13,759 | cpp | C++ | my-cs/extern/loki-0.1.7/test/Checker/main.cpp | zaqwes8811/cs-courses | aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2 | [
"Apache-2.0"
] | 24 | 2016-08-09T23:32:08.000Z | 2022-02-08T02:24:34.000Z | my-cs/extern/loki-0.1.7/test/Checker/main.cpp | zaqwes8811/cs-courses | aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2 | [
"Apache-2.0"
] | 15 | 2015-03-07T12:46:41.000Z | 2015-04-11T09:08:36.000Z | extern/loki-0.1.7/test/Checker/main.cpp | zaqwes8811/micro-apps | 7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a | [
"MIT"
] | 30 | 2015-04-22T16:10:43.000Z | 2021-12-24T06:37:04.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// Test program for The Loki Library
// Copyright (c) 2008 Richard Sposato
// The copyright on this file is protected under the terms of the MIT license.
//
// Permission to use, copy, modify, distribute and sell this software for any
/... | 29.088795 | 106 | 0.529181 | zaqwes8811 |
f09853d57b96f656cd589da1c25a2f02cc1897ea | 1,524 | hpp | C++ | include/codegen/include/RootMotion/FinalIK/EditorIK.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/RootMotion/FinalIK/EditorIK.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/RootMotion/FinalIK/EditorIK.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:17 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBehaviour.hpp"
#include "utils/il2cp... | 33.866667 | 89 | 0.672572 | Futuremappermydud |
f098e60a5ec2af63aaac74f9d576e9cfb39f56f5 | 11,089 | cc | C++ | parser/pub/tools/tools.cc | smartdata-x/MarketSys | b4f999fb80b8f2357b75694c2ca94d46190a55f7 | [
"Apache-2.0"
] | null | null | null | parser/pub/tools/tools.cc | smartdata-x/MarketSys | b4f999fb80b8f2357b75694c2ca94d46190a55f7 | [
"Apache-2.0"
] | null | null | null | parser/pub/tools/tools.cc | smartdata-x/MarketSys | b4f999fb80b8f2357b75694c2ca94d46190a55f7 | [
"Apache-2.0"
] | 3 | 2016-10-25T01:56:17.000Z | 2019-06-24T04:45:06.000Z | // Copyright (c) 2015-2015 The restful Authors. All rights reserved.
// Created on: 2015/11/24 Author: jiaoyongqing
#include<malloc.h>
#include<stdlib.h>
#include<memory.h>
#include <string>
#include <sstream>
#include <map>
#include <list>
#include <vector>
#include "tools/tools.h"
#include "tea/tea.h"
#include "ne... | 24.533186 | 93 | 0.584994 | smartdata-x |
f09924a80a0e716a64c7699e1ed64931e559b292 | 228 | hpp | C++ | Rimfrost/src/Rimfrost/EventSystem/EventObserver.hpp | Cgunnar/Rimfrost | 924f8bab51e42e6b0790eb46cc1064b6920333cf | [
"MIT"
] | null | null | null | Rimfrost/src/Rimfrost/EventSystem/EventObserver.hpp | Cgunnar/Rimfrost | 924f8bab51e42e6b0790eb46cc1064b6920333cf | [
"MIT"
] | null | null | null | Rimfrost/src/Rimfrost/EventSystem/EventObserver.hpp | Cgunnar/Rimfrost | 924f8bab51e42e6b0790eb46cc1064b6920333cf | [
"MIT"
] | null | null | null | #pragma once
#include "Rimfrost\EventSystem\Event.hpp"
namespace Rimfrost
{
class EventObserver
{
public:
EventObserver() = default;
virtual ~EventObserver() = default;
virtual void onEvent(const Event& e) = 0;
};
}
| 15.2 | 43 | 0.710526 | Cgunnar |
f09a60960c8157f4cce0993e7a96946606567a9c | 129 | cpp | C++ | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactPlaneConvex.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactPlaneConvex.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactPlaneConvex.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:943d9f005beb984bd9d29ed487bf6adf30882f9fa79903c6092cbd91ecee3e90
size 6381
| 32.25 | 75 | 0.883721 | realtehcman |
f09f35100976469d13d4837b3b002ae69f7a61da | 1,060 | cpp | C++ | cpp/0_check/modernes_cpp_source/source/lambdaAndAuto.cpp | shadialameddin/numerical_tools_and_friends | cc9f10f58886ee286ed89080e38ebd303d3c72a5 | [
"Unlicense"
] | null | null | null | cpp/0_check/modernes_cpp_source/source/lambdaAndAuto.cpp | shadialameddin/numerical_tools_and_friends | cc9f10f58886ee286ed89080e38ebd303d3c72a5 | [
"Unlicense"
] | null | null | null | cpp/0_check/modernes_cpp_source/source/lambdaAndAuto.cpp | shadialameddin/numerical_tools_and_friends | cc9f10f58886ee286ed89080e38ebd303d3c72a5 | [
"Unlicense"
] | null | null | null | // lambdaAndAuto.cpp
#include <functional>
#include <iostream>
double divMe(double a, double b){
return double(a/b);
}
using namespace std::placeholders;
int main(){
std::cout << std::endl;
// invoking the function object directly
std::cout << "1/2.0= " << [](int a, int b){ return divMe(a, b); }(1, 2.0) <... | 28.648649 | 89 | 0.626415 | shadialameddin |
f09f8aea9ce08a9f95211f0e97a1b16ed177fd9e | 12,063 | cc | C++ | whisperstreamlib/mts/mts_types.cc | cpopescu/whispercast | dd4ee1d4fa2e3436fc2387240eb3f5622749d944 | [
"BSD-3-Clause"
] | null | null | null | whisperstreamlib/mts/mts_types.cc | cpopescu/whispercast | dd4ee1d4fa2e3436fc2387240eb3f5622749d944 | [
"BSD-3-Clause"
] | null | null | null | whisperstreamlib/mts/mts_types.cc | cpopescu/whispercast | dd4ee1d4fa2e3436fc2387240eb3f5622749d944 | [
"BSD-3-Clause"
] | null | null | null |
#include <whisperstreamlib/mts/mts_types.h>
#define CHECK_MARKER(bit_array, type, bit_size, expected_value) {\
type marker = bit_array.Read<type>(bit_size);\
if ( marker != expected_value ) {\
LOG_ERROR << "Invalid marker: " << (int)marker\
<< ", expected: " << (int)expected_value;\
... | 34.269886 | 96 | 0.631186 | cpopescu |
f0a3986dff053570d226301f52321899ed5ba9bd | 8,948 | cpp | C++ | example-ExtendsSprite/src/DocumentRoot.cpp | selflash/ofxSelflash | 087a263b2d4de970edd75ecab2c2a48b7b58e62d | [
"MIT"
] | 19 | 2015-05-14T09:57:38.000Z | 2022-01-10T23:32:28.000Z | example-ExtendsSprite/src/DocumentRoot.cpp | selflash/ofxSelflash | 087a263b2d4de970edd75ecab2c2a48b7b58e62d | [
"MIT"
] | 3 | 2015-08-04T09:07:26.000Z | 2018-01-18T07:14:35.000Z | example-ExtendsSprite/src/DocumentRoot.cpp | selflash/ofxSelflash | 087a263b2d4de970edd75ecab2c2a48b7b58e62d | [
"MIT"
] | 1 | 2015-08-04T09:05:22.000Z | 2015-08-04T09:05:22.000Z | #include "DocumentRoot.h"
//static const double pi = std::acos(-1.0); // お手軽に π を得る。
//==============================================================
// Constructor / Destructor
//==============================================================
//--------------------------------------------------------------
//
//-----... | 34.022814 | 109 | 0.456638 | selflash |
f0a6282ef467cbb597f6376aa9e36c7f9759eb46 | 3,508 | cpp | C++ | src/SQLite.cpp | nianfh/beebox | a2c68847a442f1d4bcb80d9eefb7c0c7682f748a | [
"MIT"
] | 1 | 2018-07-11T03:47:41.000Z | 2018-07-11T03:47:41.000Z | src/SQLite.cpp | nianfh/beebox | a2c68847a442f1d4bcb80d9eefb7c0c7682f748a | [
"MIT"
] | null | null | null | src/SQLite.cpp | nianfh/beebox | a2c68847a442f1d4bcb80d9eefb7c0c7682f748a | [
"MIT"
] | null | null | null |
#include "SQLite.h"
#include <sqlite3/sqlite3.h>
#include <stdio.h>
#include <vector>
namespace beebox
{
CSQLite::CSQLite()
{
m_db = NULL;
}
CSQLite::~CSQLite()
{
close();
}
bool CSQLite::open(string filePath)
{
if (m_db)
{
close();
}
return sqlite3_open_v2(filePath.c_str(), &m_db, ... | 19.381215 | 80 | 0.517104 | nianfh |
f0a6567ff64ee8caa5ac52d811f47b9e0bea8794 | 1,246 | cpp | C++ | Dynamic Programming/Coin Change/SolutionbyPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 261 | 2019-09-30T19:47:29.000Z | 2022-03-29T18:20:07.000Z | Dynamic Programming/Coin Change/SolutionbyPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 647 | 2019-10-01T16:51:29.000Z | 2021-12-16T20:39:44.000Z | Dynamic Programming/Coin Change/SolutionbyPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 383 | 2019-09-30T19:32:07.000Z | 2022-03-24T16:18:26.000Z | /*
Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, How many ways can we make
the change? The order of coins doesn’t matter.
input: N = 4
S = [ 1, 2, 3 ]
Output = 4
There are four solutions: [ 1, 1, 1,... | 21.859649 | 161 | 0.399679 | Mdanish777 |
f0ad631f8a4cc60d71b0bedeeead556dbc107356 | 542 | cpp | C++ | 8 Hashing/03.hard/10.indexpairs.cpp | markpairdha/DataStructures | cf002e5a982543bd91e4a06ab22e76c40095786e | [
"MIT"
] | null | null | null | 8 Hashing/03.hard/10.indexpairs.cpp | markpairdha/DataStructures | cf002e5a982543bd91e4a06ab22e76c40095786e | [
"MIT"
] | null | null | null | 8 Hashing/03.hard/10.indexpairs.cpp | markpairdha/DataStructures | cf002e5a982543bd91e4a06ab22e76c40095786e | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
#include<unordered_map>
using namespace std;
int countindexpairs(int arr[],int n)
{
unordered_map<int,int> mp;
for(int i=0;i<n;i++)
mp[arr[i]]++;
int ans=0;
unordered_map<int,int> ::iterator it;
for(it = mp.begin();it != mp.end();it++)
{
int fre... | 20.074074 | 44 | 0.577491 | markpairdha |
f0ae115e5186c11bf9fd48e719659cc0cace4643 | 8,946 | cpp | C++ | Source/Gui3D-master/examples/build/EnvironmentDemo.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/Gui3D-master/examples/build/EnvironmentDemo.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/Gui3D-master/examples/build/EnvironmentDemo.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | #include <iostream>
#include <sstream>
#include <vector>
#include <OGRE/Ogre.h>
#include <OIS/OIS.h>
#include "Gui3D.h"
#include "Gui3DPanel.h"
#include "MyEnvironmentDemoPanelColors.h"
typedef struct PanelAndDirection
{
Gui3D::Panel* panel;
Ogre::Vector3 cameraDirection;
int yaw;
} PanelAndDirection;... | 30.848276 | 120 | 0.625755 | shanefarris |
f0ae79a162cee6343a9cc5bdc989da19c7e0c60c | 1,923 | cpp | C++ | scripts/project_euler/euler_problem_37.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | scripts/project_euler/euler_problem_37.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | 46 | 2021-01-12T23:03:52.000Z | 2021-10-01T17:29:01.000Z | scripts/project_euler/euler_problem_37.cpp | cannontwo/cannon | 4be79f3a6200d1a3cd26c28c8f2250dbdf08f267 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
#include <cmath>
#include <algorithm>
#include <cannon/log/registry.hpp>
#include <cannon/math/primes.hpp>
#include <cannon/math/digits.hpp>
using namespace cannon::log;
using namespace cannon::math;
/*!
* The number 3797 has an interesting property. Being prime itself, it is
... | 22.360465 | 80 | 0.656786 | cannontwo |
f0af743f6522a91956e542645b9de037882c3874 | 1,901 | cpp | C++ | src/main.cpp | vieiraa/ray_tracer | 75665fd5b15f486ad52f3c5b61521fb394d40fe1 | [
"MIT"
] | null | null | null | src/main.cpp | vieiraa/ray_tracer | 75665fd5b15f486ad52f3c5b61521fb394d40fe1 | [
"MIT"
] | null | null | null | src/main.cpp | vieiraa/ray_tracer | 75665fd5b15f486ad52f3c5b61521fb394d40fe1 | [
"MIT"
] | null | null | null | #include <chrono>
#include <glm/geometric.hpp>
#include "camera.h"
#include "orthographic_camera.h"
#include "pinhole_camera.h"
#include "scene.h"
#include "buffer.h"
#include "raytracer.h"
#include "path_tracer.h"
#include "bvh.h"
int main() {
unsigned int width = 256;
unsigned int height = 256;
Pinhole... | 30.174603 | 89 | 0.571804 | vieiraa |
f0af752401c2358f7c738dff258fa6e5bb7e7176 | 2,477 | hpp | C++ | include/clotho/utility/linear_bit_block_iterator.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:27:57.000Z | 2022-01-25T23:26:54.000Z | include/clotho/utility/linear_bit_block_iterator.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:12:42.000Z | 2015-06-23T12:41:00.000Z | include/clotho/utility/linear_bit_block_iterator.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2015 Patrick Putnam
//
// 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 o... | 25.802083 | 146 | 0.634639 | putnampp |
f0b0a5d96d62348b136ca0edc7e881fd7b6cea60 | 7,451 | cpp | C++ | SuperBigNum.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | SuperBigNum.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | SuperBigNum.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | 1 | 2019-01-19T01:05:07.000Z | 2019-01-19T01:05:07.000Z |
#define max(a, b) a > b ? a : b
#define min(a, b) a < b ? a : b
class bign
{
public:
int len, s[MAX_L];
bign();
bign(const char *);
bign(int);
bool sign;
string toStr() const;
friend istream &operator>>(istream &, bign &);
friend ostream &operator<<(ostream &, bign &);
bign operato... | 18.911168 | 67 | 0.476715 | W-YXN |
f0b193b1898fab2aabee86a2b7a9cf98b7551b35 | 14,729 | cpp | C++ | source/smoothmethod.cpp | TianSHH/Picop | 200fffde41eaf3fa5e041eaface306053f291056 | [
"BSD-3-Clause"
] | 1 | 2019-11-22T12:03:44.000Z | 2019-11-22T12:03:44.000Z | source/smoothmethod.cpp | TianSHH/Picop | 200fffde41eaf3fa5e041eaface306053f291056 | [
"BSD-3-Clause"
] | null | null | null | source/smoothmethod.cpp | TianSHH/Picop | 200fffde41eaf3fa5e041eaface306053f291056 | [
"BSD-3-Clause"
] | null | null | null | #include "smoothmethod.h"
SmoothMethod::SmoothMethod()
{
}
SmoothMethod::~SmoothMethod()
{
}
QImage SmoothMethod::averageFiltering(QImage *originImage)
{
bool ok;
int filterRadius = QInputDialog::getInt(nullptr, QObject::tr("均值滤波"), "输入滤波器大小(1~30)", 3, 1, 30, 1, &ok);
if (ok)
{
if (filterRadi... | 34.494145 | 129 | 0.42345 | TianSHH |
f0b19e8ef7819f07395c7199e2a6c9f000b5a0ec | 2,548 | cpp | C++ | gen_desc/kitti_gen.cpp | lilin-hitcrt/RINet | 0e28c26e015c50385816b2cbe6549583486fd486 | [
"MIT"
] | 5 | 2022-03-01T13:56:47.000Z | 2022-03-09T02:57:15.000Z | gen_desc/kitti_gen.cpp | lilin-hitcrt/RINet | 0e28c26e015c50385816b2cbe6549583486fd486 | [
"MIT"
] | null | null | null | gen_desc/kitti_gen.cpp | lilin-hitcrt/RINet | 0e28c26e015c50385816b2cbe6549583486fd486 | [
"MIT"
] | 1 | 2022-03-06T07:59:51.000Z | 2022-03-06T07:59:51.000Z | #include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/visualization/cloud_viewer.h>
#include <opencv2/opencv.hpp>
#include "semanticConf.hpp"
#include "genData.hpp"
int main(int argc,char** argv){
if(argc<4){
std::cout<<"Usage: ./kitti_gen cloud_folder label_folder output_file"<<std::endl... | 36.4 | 89 | 0.494505 | lilin-hitcrt |
f0b9afdee429081c137cbabb2df8b2a312396ec3 | 1,221 | cpp | C++ | BAC_2nd/ch5/UVa12096.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC_2nd/ch5/UVa12096.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC_2nd/ch5/UVa12096.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa12096 The SetStack Computer
// Rujia Liu
#include<iostream>
#include<string>
#include<set>
#include<map>
#include<stack>
#include<vector>
#include<algorithm>
using namespace std;
#define ALL(x) x.begin(),x.end()
#define INS(x) inserter(x,x.begin())
typedef set<int> Set;
map<Set,int> IDcache; // 把集合映射成ID
vector... | 23.037736 | 70 | 0.527437 | Anyrainel |
f0bfeb13d9f891159be59bd3a9018602f94a5beb | 5,432 | cc | C++ | base/test/scoped_feature_list.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | base/test/scoped_feature_list.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | base/test/scoped_feature_list.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/test/scoped_feature_list.h"
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#include "base/stl_util.h"
#inclu... | 35.272727 | 80 | 0.745398 | metux |
f0c266afdbbcaeb1c0628f623cfc342ab307f85c | 5,958 | hh | C++ | Kaskade/fem/diffops/mooneyRivlin.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 3 | 2019-07-03T14:03:31.000Z | 2021-12-19T10:18:49.000Z | Kaskade/fem/diffops/mooneyRivlin.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 6 | 2020-02-17T12:01:30.000Z | 2021-12-09T22:02:33.000Z | Kaskade/fem/diffops/mooneyRivlin.hh | chenzongxiong/streambox | 76f95780d1bf6c02731e39d8ac73937cea352b95 | [
"Unlicense"
] | 2 | 2020-12-03T04:41:18.000Z | 2021-01-11T21:44:42.000Z | #ifndef MOONEY_RIVLIN_HH
#define MOONEY_RIVLIN_HH
#include "linalg/invariants.hh"
#include "utilities/functionTools.hh"
namespace Kaskade
{
template <int dim, class VolumetricPenalty = void, Invariant i = Invariant::Principal, class Direction = void> class MooneyRivlin;
/**
* \param lambda first Lame constant... | 46.546875 | 158 | 0.678583 | chenzongxiong |
f0c422605b8c43b5b392f5f57e418a229c356f8d | 970 | hpp | C++ | include/defines.hpp | Yao-Chung/Sokoban-Agent | 7135a51ee8a912fe8a636ccfeecbcd3551e6720c | [
"BSD-3-Clause"
] | null | null | null | include/defines.hpp | Yao-Chung/Sokoban-Agent | 7135a51ee8a912fe8a636ccfeecbcd3551e6720c | [
"BSD-3-Clause"
] | null | null | null | include/defines.hpp | Yao-Chung/Sokoban-Agent | 7135a51ee8a912fe8a636ccfeecbcd3551e6720c | [
"BSD-3-Clause"
] | null | null | null | #ifndef SOKOBAN_AGENT_DEFINES
#define SOKOBAN_AGENT_DEFINES
#include <vector>
#include <string>
#include <iostream>
enum MoveDirection{
Left = 0,
Right = 1,
Up = 2,
Down = 3,
Unspecified = -1,
};
using Map = std::vector<std::string>;
using Position = std::pair<int, int>;
using Decimal = float;
s... | 34.642857 | 143 | 0.727835 | Yao-Chung |
f0c83d8b974fd845985527c413970c06730c5cc1 | 1,561 | hpp | C++ | apps/src/videostitch-live-gui/src/configurations/rigconfigurationwidget.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | apps/src/videostitch-live-gui/src/configurations/rigconfigurationwidget.hpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | apps/src/videostitch-live-gui/src/configurations/rigconfigurationwidget.hpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#ifndef RIGCONFIGURATIONWIDGET_HPP
#define RIGCONFIGURATIONWIDGET_HPP
#include <QWidget>
#include "ui_rigconfigurationwidget.h"
#include "libvideostitch/stereoRigDef.hpp"
class RigConfigurationWidget : public QFrame, public Ui::RigConfiguratio... | 39.025 | 114 | 0.73991 | tlalexander |
f0c9ea61afd241f3c72bd16e62d22587e4d0f3d9 | 53,605 | hh | C++ | apps/rosetta/rif_dock_test.hh | willsheffler/rifdock | 291d05112d52318bb07d499ce6da3e0fb9fbf9cf | [
"Apache-2.0"
] | 2 | 2020-01-28T07:59:26.000Z | 2020-09-17T06:32:14.000Z | apps/rosetta/rif_dock_test.hh | willsheffler/rifdock | 291d05112d52318bb07d499ce6da3e0fb9fbf9cf | [
"Apache-2.0"
] | null | null | null | apps/rosetta/rif_dock_test.hh | willsheffler/rifdock | 291d05112d52318bb07d499ce6da3e0fb9fbf9cf | [
"Apache-2.0"
] | null | null | null |
#include <basic/options/option_macros.hh>
#include <basic/options/keys/corrections.OptionKeys.gen.hh>
#include <riflib/scaffold/nineA_util.hh>
#include <vector>
#ifdef GLOBAL_VARIABLES_ARE_BAD
#ifndef INCLUDED_rif_dock_test_hh_1
#define INCLUDED_rif_dock_test_hh_1
OPT_1GRP_KEY( StringVector , rif_dock, s... | 58.648796 | 158 | 0.612406 | willsheffler |
f0cb289aca4dd19d69e868efc9e4137c98d0b056 | 1,771 | cpp | C++ | matlab/panoContext_code/Toolbox/segmentation/segmentGraphMex_edge.cpp | imamik/LayoutNet | f68eb214e793b9786f2582f9244bac4f8f98a816 | [
"MIT"
] | 380 | 2018-02-23T02:58:35.000Z | 2022-03-21T06:34:33.000Z | matlab/panoContext_code/Toolbox/segmentation/segmentGraphMex_edge.cpp | imamik/LayoutNet | f68eb214e793b9786f2582f9244bac4f8f98a816 | [
"MIT"
] | 36 | 2018-04-11T03:49:42.000Z | 2021-01-21T01:25:47.000Z | matlab/panoContext_code/Toolbox/segmentation/segmentGraphMex_edge.cpp | imamik/LayoutNet | f68eb214e793b9786f2582f9244bac4f8f98a816 | [
"MIT"
] | 94 | 2018-02-25T05:23:51.000Z | 2022-02-11T02:00:47.000Z | #include <cstdio>
#include <cstdlib>
#include <image.h>
#include <misc.h>
#include <pnmfile.h>
#include "mex.h"
#include "segment-image.h"
void mexFunction(int nlhs,mxArray* plhs[],int nrhs,const mxArray* prhs[])
{
// check arguments
if (nrhs != 5)
{
mexPrintf("Usage: [seg] = segmentGraphMex_edge(ma... | 29.516667 | 98 | 0.585545 | imamik |
f0cd16803c3887c2e9fc46e5b45ea987f4b0c6b2 | 8,806 | cpp | C++ | src/main.cpp | russellklenk/gwbase | eb4094b4cea29cd24612e88298efbdfbec1d59aa | [
"Unlicense"
] | 3 | 2018-03-24T12:28:05.000Z | 2021-07-29T02:00:16.000Z | src/main.cpp | russellklenk/gwbase | eb4094b4cea29cd24612e88298efbdfbec1d59aa | [
"Unlicense"
] | null | null | null | src/main.cpp | russellklenk/gwbase | eb4094b4cea29cd24612e88298efbdfbec1d59aa | [
"Unlicense"
] | 1 | 2018-05-13T12:59:01.000Z | 2018-05-13T12:59:01.000Z | /*/////////////////////////////////////////////////////////////////////////////
/// @summary Implements the entry point of the application. This handles the
/// setup of our third party libraries and the creation of our main window and
/// rendering context, along with implementing the game loop.
/// @author Russell Kl... | 33.356061 | 94 | 0.650693 | russellklenk |
f0da524a8ee5f41b5b255973c45add652ae74843 | 473 | cc | C++ | src/core/logging_event.cc | pragkent/logbox | 15274be0726cd3f0d71266a0ce4755106c8bdd1f | [
"MIT"
] | 2 | 2015-02-14T04:24:07.000Z | 2015-02-28T11:23:48.000Z | src/core/logging_event.cc | pragkent/logbox | 15274be0726cd3f0d71266a0ce4755106c8bdd1f | [
"MIT"
] | null | null | null | src/core/logging_event.cc | pragkent/logbox | 15274be0726cd3f0d71266a0ce4755106c8bdd1f | [
"MIT"
] | null | null | null | #include "core/logging_event.h"
#include <errno.h>
#include "util/environment.h"
namespace logbox {
LoggingEvent::LoggingEvent(
LogSeverity severity,
const char* file,
int line,
const char* function)
: severity_(severity),
file_fullname_(file),
file_basename_(Environment::GetBasename(... | 20.565217 | 53 | 0.676533 | pragkent |
f0da74da343d1e48921fbefea6fe4b456427bae7 | 1,197 | cpp | C++ | Code/System/Core/Time/Time.cpp | JuanluMorales/KRG | f3a11de469586a4ef0db835af4bc4589e6b70779 | [
"MIT"
] | 419 | 2022-01-27T19:37:43.000Z | 2022-03-31T06:14:22.000Z | Code/System/Core/Time/Time.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 2 | 2022-01-28T20:35:33.000Z | 2022-03-13T17:42:52.000Z | Code/System/Core/Time/Time.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 20 | 2022-01-27T20:41:02.000Z | 2022-03-26T16:16:57.000Z | #include "Time.h"
#include <chrono>
//-------------------------------------------------------------------------
namespace KRG
{
KRG::Nanoseconds EngineClock::CurrentTime = 0;
//-------------------------------------------------------------------------
Nanoseconds::operator Microseconds() const... | 34.2 | 114 | 0.472013 | JuanluMorales |
f0db14785a36f33ca7d2e246eff7183b9b3bb82d | 215 | cpp | C++ | src/sysGCU/appThread.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/sysGCU/appThread.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/sysGCU/appThread.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
#include "AppThread.h"
/*
* --INFO--
* Address: 80424E18
* Size: 00003C
*/
AppThread::AppThread(u32 stackSize, int msgCount, int priority)
: JKRThread(stackSize, msgCount, priority)
{
}
| 15.357143 | 63 | 0.674419 | projectPiki |
f0ddf37d5a08322fefec7ff12c8b80b255fc02f5 | 370 | cpp | C++ | LeetCode/Problems/Algorithms/#762_PrimeNumberOfSetBitsInBinaryRepresentation_sol1_builtin_popcount_and_unordered_set_O(R-L)_time_O(1)_extra_space_40ms_6.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#762_PrimeNumberOfSetBitsInBinaryRepresentation_sol1_builtin_popcount_and_unordered_set_O(R-L)_time_O(1)_extra_space_40ms_6.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#762_PrimeNumberOfSetBitsInBinaryRepresentation_sol1_builtin_popcount_and_unordered_set_O(R-L)_time_O(1)_extra_space_40ms_6.5MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
int countPrimeSetBits(int L, int R) {
const unordered_set<int> PRIMES = {2,3,5,7,11,13,17,19};
int answer = 0;
for(int num = L; num <= R; ++num){
int setBitsCnt = __builtin_popcount(num);
answer += (PRIMES.find(setBitsCnt) != PRIMES.end... | 30.833333 | 65 | 0.524324 | Tudor67 |
f0e175d7937cf22938a778b3d6a68b2e534d5321 | 44,217 | hpp | C++ | src/libraries/surfMesh/MeshedSurface/MeshedSurface.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/surfMesh/MeshedSurface/MeshedSurface.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/surfMesh/MeshedSurface/MeshedSurface.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2015 OpenFOAM Foundation
Copyright (C) 2015 Applied CCM
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redist... | 23.358162 | 79 | 0.542099 | MrAwesomeRocks |
f0e3176656a2486c5b034523bacc31885375ef30 | 1,525 | cpp | C++ | networkit/cpp/auxiliary/ParallelTimings.cpp | ArminWiebigke/networkit | 713320a5961f6324d62df2ea7a32675fa053dfac | [
"MIT"
] | null | null | null | networkit/cpp/auxiliary/ParallelTimings.cpp | ArminWiebigke/networkit | 713320a5961f6324d62df2ea7a32675fa053dfac | [
"MIT"
] | null | null | null | networkit/cpp/auxiliary/ParallelTimings.cpp | ArminWiebigke/networkit | 713320a5961f6324d62df2ea7a32675fa053dfac | [
"MIT"
] | null | null | null | /*
* ParallelTimings.cpp
*
* Created on: 2019-11-05
* Author: Armin Wiebigke
*/
#include <map>
#include "ParallelTimings.h"
namespace NetworKit {
void ParallelTimings::addTime(Aux::Timer &timer, const std::string &name) const {
timer.stop();
double elapsed = timer.elapsedNanoseconds();
auto tid = omp_get_th... | 23.106061 | 118 | 0.683934 | ArminWiebigke |
f0e719c6ea86f83338f9e8745890360cae78d634 | 6,370 | cpp | C++ | texture.cpp | CaptainDreamcast/prism | a6b0f5c3e86d7b37d14c9139862775e7768998ce | [
"MIT"
] | 7 | 2018-04-08T15:01:59.000Z | 2022-02-27T12:13:19.000Z | texture.cpp | CaptainDreamcast/prism | a6b0f5c3e86d7b37d14c9139862775e7768998ce | [
"MIT"
] | 1 | 2017-04-23T15:27:37.000Z | 2017-04-24T05:38:18.000Z | texture.cpp | CaptainDreamcast/libtari | a6b0f5c3e86d7b37d14c9139862775e7768998ce | [
"MIT"
] | 1 | 2020-04-24T04:21:00.000Z | 2020-04-24T04:21:00.000Z | #include "prism/texture.h"
#include<algorithm>
#ifdef DREAMCAST
#include <png/png.h>
#else
#include <png.h>
#endif
#include "prism/file.h"
#include "prism/log.h"
#include "prism/system.h"
#include "prism/math.h"
using namespace std;
#define FONT_CHARACTER_AMOUNT 91
static int isFontDataLoaded;
static TextureData ... | 22.75 | 88 | 0.649137 | CaptainDreamcast |
f0e933ed100092fe5cf143ddcb9558b9fc32c21d | 267 | hpp | C++ | pythran/pythonic/include/__builtin__/ReferenceError.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 1 | 2018-03-24T00:33:03.000Z | 2018-03-24T00:33:03.000Z | pythran/pythonic/include/__builtin__/ReferenceError.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/__builtin__/ReferenceError.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_BUILTIN_REFERENCEERROR_HPP
#define PYTHONIC_INCLUDE_BUILTIN_REFERENCEERROR_HPP
#include "pythonic/include/types/exceptions.hpp"
PYTHONIC_NS_BEGIN
namespace __builtin__
{
PYTHONIC_EXCEPTION_DECL(ReferenceError)
}
PYTHONIC_NS_END
#endif
| 16.6875 | 51 | 0.868914 | SylvainCorlay |
f0ea469a07225cc24c6b92a7cb30c43024a6108f | 5,692 | cpp | C++ | c++/src/corelib/ncbi_safe_static.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/src/corelib/ncbi_safe_static.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/src/corelib/ncbi_safe_static.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | /* $Id: ncbi_safe_static.cpp 177027 2009-11-24 19:19:28Z grichenk $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Gover... | 27.765854 | 78 | 0.655657 | OpenHero |
f0ed6acb33e0b41499306ec4590b306a0280924d | 5,808 | cpp | C++ | libs/geometry/src/matrix.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | libs/geometry/src/matrix.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | libs/geometry/src/matrix.cpp | blagodarin/yttrium | 534289c3082355e5537a03c0b5855b60f0c344ad | [
"Apache-2.0"
] | null | null | null | // This file is part of the Yttrium toolkit.
// Copyright (C) Sergei Blagodarin.
// SPDX-License-Identifier: Apache-2.0
#include <yttrium/geometry/matrix.h>
#include <yttrium/geometry/euler.h>
#include <yttrium/geometry/size.h>
#include <cmath>
#include <numbers>
namespace Yt
{
Matrix4::Matrix4(const Euler& e) noe... | 34.366864 | 112 | 0.532369 | blagodarin |
f0ef45f838db55c49ad28fb6f393909025c8e1d6 | 7,054 | hpp | C++ | packages/Search/src/details/DTK_DetailsTreeTraversal.hpp | flyingcat007/DTK_Test | ef8e0e791b76f138045354715a8ce23436ea0edf | [
"BSD-3-Clause"
] | null | null | null | packages/Search/src/details/DTK_DetailsTreeTraversal.hpp | flyingcat007/DTK_Test | ef8e0e791b76f138045354715a8ce23436ea0edf | [
"BSD-3-Clause"
] | null | null | null | packages/Search/src/details/DTK_DetailsTreeTraversal.hpp | flyingcat007/DTK_Test | ef8e0e791b76f138045354715a8ce23436ea0edf | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
* Copyright (c) 2012-2017 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | 31.632287 | 80 | 0.561242 | flyingcat007 |
f0f058c70d3c3c2b34e72acbf78be9b844e025bb | 788 | cpp | C++ | client/include/game/CColDisk.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | client/include/game/CColDisk.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 92 | 2019-01-23T23:02:31.000Z | 2022-03-23T19:59:40.000Z | client/include/game/CColDisk.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CColDisk.h"
// Converted from thiscall void CColDisk::Set(float startRadius,CVector const&start,CVect... | 65.666667 | 209 | 0.769036 | MayconFelipeA |
f0f3e273807c03960248ad61cc8e678f24cf06dc | 78 | hpp | C++ | include/Pulsejet/Pulsejet.hpp | logicomacorp/pulsejet | ec73d19ccb71ff05b2122e258fe4b7b16e55fb53 | [
"MIT"
] | 30 | 2021-06-07T20:25:48.000Z | 2022-03-30T00:52:38.000Z | include/Pulsejet/Pulsejet.hpp | going-digital/pulsejet | 8452a0311645867d64c038cef7fdf751b26717ee | [
"MIT"
] | null | null | null | include/Pulsejet/Pulsejet.hpp | going-digital/pulsejet | 8452a0311645867d64c038cef7fdf751b26717ee | [
"MIT"
] | 1 | 2021-09-21T11:17:45.000Z | 2021-09-21T11:17:45.000Z | #pragma once
#include "Decode.hpp"
#include "Encode.hpp"
#include "Meta.hpp"
| 13 | 21 | 0.717949 | logicomacorp |
f0f4d31ae7f6da1fc55dcc061022c290329f8c54 | 724 | cpp | C++ | Array of objects.cpp | paurav11/Cpp | e8cc137d1530000898c9a92a98663a8a8b254068 | [
"MIT"
] | 1 | 2021-05-18T06:52:59.000Z | 2021-05-18T06:52:59.000Z | Array of objects.cpp | paurav11/Cpp | e8cc137d1530000898c9a92a98663a8a8b254068 | [
"MIT"
] | null | null | null | Array of objects.cpp | paurav11/Cpp | e8cc137d1530000898c9a92a98663a8a8b254068 | [
"MIT"
] | null | null | null | #include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
class student
{
char name[100];
int id,age;
public:
void getdata()
{
cout<<"\nEnter name: ";
cin>>name;
cout<<"Enter id: ";
cin>>id;
cout<<"Enter age: ";
cin>>age;
}
v... | 15.73913 | 37 | 0.45442 | paurav11 |
e7c8407173d6b4e707e9f2fdde5bfd73ab685257 | 14,476 | cpp | C++ | src/audio/CSoundMixer.cpp | rherriman/Avara | eaa68133ac273796b60162673b8f240619cb35ed | [
"MIT"
] | null | null | null | src/audio/CSoundMixer.cpp | rherriman/Avara | eaa68133ac273796b60162673b8f240619cb35ed | [
"MIT"
] | null | null | null | src/audio/CSoundMixer.cpp | rherriman/Avara | eaa68133ac273796b60162673b8f240619cb35ed | [
"MIT"
] | null | null | null | /*
Copyright ©1994-1996, Juri Munkki
All rights reserved.
File: CSoundMixer.c
Created: Friday, December 23, 1994, 08:25
Modified: Tuesday, August 20, 1996, 00:20
*/
#include "CSoundMixer.h"
#include "CBasicSound.h"
#include "CSoundHub.h"
#include "Memory.h"
#include "System.h"
#define DONT_USE_M... | 25.396491 | 102 | 0.550843 | rherriman |
e7c8958dc2beaffff8a59eb2d4072ef8b2a3bd22 | 1,114 | cpp | C++ | silk_engine/src/gfx/buffers/index_buffer.cpp | GeorgeAzma/VulkanEngine | 0c2279682f526f428b44eae2a82be6933c74320d | [
"MIT"
] | 1 | 2022-02-11T12:49:49.000Z | 2022-02-11T12:49:49.000Z | silk_engine/src/gfx/buffers/index_buffer.cpp | GeorgeAzma/VulkanEngine | 0c2279682f526f428b44eae2a82be6933c74320d | [
"MIT"
] | null | null | null | silk_engine/src/gfx/buffers/index_buffer.cpp | GeorgeAzma/VulkanEngine | 0c2279682f526f428b44eae2a82be6933c74320d | [
"MIT"
] | null | null | null | #include "index_buffer.h"
#include "staging_buffer.h"
#include "gfx/graphics.h"
#include "gfx/buffers/command_buffer.h"
IndexBuffer::IndexBuffer(const void* data, VkDeviceSize count, IndexType index_type, VmaMemoryUsage memory_usage)
: Buffer(count * indexTypeSize(index_type),
VK_BUFFER_USAGE_TRANSFER_DST_BIT |
V... | 26.52381 | 113 | 0.777379 | GeorgeAzma |
e7cb1b6abec8324c260fbf8ecc7489fc23aa1f9f | 780 | cpp | C++ | Snipets/08_Strings/CharacterCounting.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/08_Strings/CharacterCounting.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | Snipets/08_Strings/CharacterCounting.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | // CharacterCounting.cpp
// Programa para contar los caracteres contenidos en un string
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
char str[100];
int i, j, n, k, o;
i=0;
j=0;
k=0;
o=0;
puts("Introduce una frase");
gets(str);
n=strlen(str);
while(str[i... | 16.595745 | 71 | 0.553846 | Gabroide |
e7d5a48fc6a783714974803c80fcd00436f6473c | 3,002 | cpp | C++ | source/src/gui/qrsystemtray.cpp | Qters/QrChaos | accc5b9efe5469377a09170ecd92e4674d177f9f | [
"MIT"
] | 1 | 2016-10-21T08:14:26.000Z | 2016-10-21T08:14:26.000Z | source/src/gui/qrsystemtray.cpp | Qters/QrChaos | accc5b9efe5469377a09170ecd92e4674d177f9f | [
"MIT"
] | null | null | null | source/src/gui/qrsystemtray.cpp | Qters/QrChaos | accc5b9efe5469377a09170ecd92e4674d177f9f | [
"MIT"
] | null | null | null | #include "gui/qrsystemtray.h"
#include <QtCore/qdebug.h>
#include <QtCore/qmap.h>
#include <QtWidgets/qsystemtrayicon.h>
#include <QtWidgets/qaction.h>
#include <QtWidgets/qmenu.h>
#include <QtWidgets/qapplication.h>
#include "db/qrtblsystemtray.h"
#include "db/qrtblframeconfig.h"
NS_CHAOS_BASE_BEGIN
class QrSyste... | 24.606557 | 104 | 0.675217 | Qters |
e7d5fe6d99e8f0be14b02a2fecc0be859f659a67 | 181 | cpp | C++ | src/test/resources/cpp/function_ptr.cpp | shahrzadav/codyze | c075e8c874f8bef52037d3538166150a488f1607 | [
"Apache-2.0"
] | 58 | 2020-04-18T19:26:32.000Z | 2022-03-23T20:37:18.000Z | src/test/resources/cpp/function_ptr.cpp | shahrzadav/codyze | c075e8c874f8bef52037d3538166150a488f1607 | [
"Apache-2.0"
] | 409 | 2020-04-06T08:29:20.000Z | 2022-03-31T17:46:54.000Z | src/test/resources/cpp/function_ptr.cpp | shahrzadav/codyze | c075e8c874f8bef52037d3538166150a488f1607 | [
"Apache-2.0"
] | 13 | 2020-05-04T05:36:02.000Z | 2022-01-29T09:24:16.000Z | #include <iostream>
class A {
public:
void fun() {
std::cout << "Hello" << std::endl;
}
};
int main() {
A a;
void (A::* f_ptr) () = &A::fun;
(a.*f_ptr)();
} | 12.066667 | 40 | 0.453039 | shahrzadav |
e7d68cfba12d0c5cc12915b0739af0e174083928 | 6,140 | cpp | C++ | PG/physics/PhysicsWorld.cpp | mcdreamer/PG | a047615d9eae7f2229a203a262f239106cf7f39c | [
"MIT"
] | 2 | 2018-01-14T17:47:22.000Z | 2021-11-15T10:34:24.000Z | PG/physics/PhysicsWorld.cpp | mcdreamer/PG | a047615d9eae7f2229a203a262f239106cf7f39c | [
"MIT"
] | 23 | 2017-07-31T19:43:00.000Z | 2018-11-11T18:51:28.000Z | PG/physics/PhysicsWorld.cpp | mcdreamer/PG | a047615d9eae7f2229a203a262f239106cf7f39c | [
"MIT"
] | null | null | null | #include "PG/physics/PhysicsWorld.h"
#include "PG/physics/PhysicsBody.h"
#include "PG/app/GameConstants.h"
#include "PG/entities/TilePositionCalculator.h"
#include "PG/core/RectUtils.h"
#include "PG/core/PointUtils.h"
#include "PG/core/SizeUtils.h"
#include "PG/core/MathsUtils.h"
#include <array>
namespace PG {
name... | 29.238095 | 123 | 0.669055 | mcdreamer |
e7d6cb36c09282359e3ab5b7cc06ba1989389fd0 | 1,269 | cxx | C++ | src/sqlite/connection.cxx | slurps-mad-rips/apex | 8d88e6167e460a74e2c42a4d11d7f8e70adb5102 | [
"Apache-2.0"
] | 4 | 2020-12-14T18:07:28.000Z | 2021-04-21T18:10:26.000Z | src/sqlite/connection.cxx | slurps-mad-rips/apex | 8d88e6167e460a74e2c42a4d11d7f8e70adb5102 | [
"Apache-2.0"
] | 11 | 2020-07-21T03:27:10.000Z | 2021-03-22T20:24:44.000Z | src/sqlite/connection.cxx | slurps-mad-rips/apex | 8d88e6167e460a74e2c42a4d11d7f8e70adb5102 | [
"Apache-2.0"
] | 3 | 2020-12-14T17:40:07.000Z | 2022-03-18T15:43:10.000Z | #include <apex/sqlite/connection.hpp>
#include <apex/sqlite/memory.hpp>
#include <apex/sqlite/table.hpp>
#include <apex/sqlite/error.hpp>
#include <apex/core/memory.hpp>
#include <apex/memory/out.hpp>
#include <sqlite3.h>
namespace apex::sqlite {
void default_delete<sqlite3>::operator () (sqlite3* ptr) noexcept {
s... | 34.297297 | 110 | 0.704492 | slurps-mad-rips |
e7d95f2a857ad6a08d8098f6ce262a5ba9c33277 | 1,669 | cpp | C++ | Code/peek_recv.cpp | hewei-nju/TCP-IP-Network-Programming | 0685f0cc60e3af49093d3aa5189c7eafda5af017 | [
"MIT"
] | null | null | null | Code/peek_recv.cpp | hewei-nju/TCP-IP-Network-Programming | 0685f0cc60e3af49093d3aa5189c7eafda5af017 | [
"MIT"
] | null | null | null | Code/peek_recv.cpp | hewei-nju/TCP-IP-Network-Programming | 0685f0cc60e3af49093d3aa5189c7eafda5af017 | [
"MIT"
] | null | null | null | /** @author heweibright@gmail.com
* @date 2021/9/3 11:06
* Copyright (c) All rights reserved.
*/
#include <iostream>
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <sys/socket.h>
#include <arpa/inet.h>
const int BUF_SIZE = 1024;
void error_handling(const char *msg)
{
std::cerr << msg <<... | 27.816667 | 97 | 0.584781 | hewei-nju |
e7dab0aec55c610adbe8dc2f3a51df4ee13a9827 | 17,150 | cpp | C++ | test/tf/t_tf_tree.cpp | Robotics-BUT/Robotic-Template-Library | a93b31f5a8f5b12fbbd5fa134a714ea0f82c1578 | [
"MIT"
] | 8 | 2020-04-22T09:46:14.000Z | 2022-03-17T00:09:38.000Z | test/tf/t_tf_tree.cpp | Robotics-BUT/Robotic-Template-Library | a93b31f5a8f5b12fbbd5fa134a714ea0f82c1578 | [
"MIT"
] | 1 | 2020-08-11T07:24:14.000Z | 2020-10-05T12:47:05.000Z | test/tf/t_tf_tree.cpp | Robotics-BUT/Robotic-Template-Library | a93b31f5a8f5b12fbbd5fa134a714ea0f82c1578 | [
"MIT"
] | null | null | null | // This file is part of the Robotic Template Library (RTL), a C++
// template library for usage in robotic research and applications
// under the MIT licence:
//
// Copyright 2020 Brno University of Technology
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and ass... | 31.181818 | 128 | 0.593703 | Robotics-BUT |
e7dc104fac5aba661f0f9a7f0b3db94052f413c2 | 10,700 | hxx | C++ | main/sc/source/filter/inc/xelink.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sc/source/filter/inc/xelink.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sc/source/filter/inc/xelink.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 49.082569 | 115 | 0.619159 | Grosskopf |
e7dcb2b460b4edcbb916fd0fbe0f247cf0c112eb | 784 | cc | C++ | bluetooth/newblued/main.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | 5 | 2019-01-19T15:38:48.000Z | 2021-10-06T03:59:46.000Z | bluetooth/newblued/main.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | null | null | null | bluetooth/newblued/main.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | 1 | 2019-02-15T23:05:30.000Z | 2019-02-15T23:05:30.000Z | // Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <brillo/flag_helper.h>
#include <brillo/syslog_logging.h>
#include "bluetooth/common/dbus_daemon.h"
#include "bluetooth/newblued/newblue.h"
#... | 34.086957 | 74 | 0.716837 | emersion |
e7dd038a07f541672ecdbee54894256ccb613089 | 2,899 | cpp | C++ | 387/387.cpp | bsamseth/project-euler | 60d70b117960f37411935bc18eab5bb2fca220e2 | [
"MIT"
] | null | null | null | 387/387.cpp | bsamseth/project-euler | 60d70b117960f37411935bc18eab5bb2fca220e2 | [
"MIT"
] | null | null | null | 387/387.cpp | bsamseth/project-euler | 60d70b117960f37411935bc18eab5bb2fca220e2 | [
"MIT"
] | null | null | null | /*
A Harshad or Niven number is a number that is divisible by the sum of its
digits. 201 is a Harshad number because it is divisible by 3 (the sum of its
digits.) When we truncate the last digit from 201, we get 20, which is a
Harshad number. When we truncate the last digit from 20, we get 2, which is
also a Harshad ... | 34.511905 | 79 | 0.709555 | bsamseth |
e7df344610a036fa37f3a557b41d52afea50ac7d | 2,027 | cpp | C++ | TAO/tao/Incoming_Message_Queue.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/tao/Incoming_Message_Queue.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/tao/Incoming_Message_Queue.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: Incoming_Message_Queue.cpp 91628 2010-09-07 11:11:12Z johnnyw $
#include "tao/Incoming_Message_Queue.h"
#include "tao/Queued_Data.h"
#include "tao/debug.h"
#include "ace/Log_Msg.h"
#include "ace/Malloc_Base.h"
#if !defined (__ACE_INLINE__)
# include "tao/Incoming_Message_Queue.inl"
#endif /* __ACE_INLINE__ *... | 20.474747 | 71 | 0.653182 | cflowe |
e7e04f2e48b35efebb79ea7a8852920c557ecd42 | 1,921 | cpp | C++ | Game/src/game/Kamikaze.cpp | franticsoftware/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | 3 | 2019-10-04T19:44:44.000Z | 2021-07-27T15:59:39.000Z | Game/src/game/Kamikaze.cpp | franticsoftware/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | 1 | 2019-07-20T05:36:31.000Z | 2019-07-20T22:22:49.000Z | Game/src/game/Kamikaze.cpp | aminere/vlad-heavy-strike | a4da4df617e9ccd6ebd9819ad166d892924638ce | [
"MIT"
] | null | null | null | /*
Amine Rehioui
Created: November 05th 2011
*/
#include "ShootTest.h"
#include "Kamikaze.h"
namespace shoot
{
DEFINE_OBJECT(Kamikaze);
DEFINE_OBJECT(KamikazeSettings);
//! constructor
KamikazeSettings::KamikazeSettings()
: m_fDuration(1.5f)
{
}
//! serializes the entity to/from a PropertyStream
void... | 22.337209 | 108 | 0.71317 | franticsoftware |
e7e43276a194c619ccf2813db3479e093ae732c5 | 7,324 | cpp | C++ | msfs2020/GaugeConnect/GaugeConnect.cpp | brion/simpanel | 5ac172006889cbbf92e2b7f86bab3f709072ff12 | [
"MIT"
] | 1 | 2021-07-21T03:19:55.000Z | 2021-07-21T03:19:55.000Z | msfs2020/GaugeConnect/GaugeConnect.cpp | brion/simpanel | 5ac172006889cbbf92e2b7f86bab3f709072ff12 | [
"MIT"
] | null | null | null | msfs2020/GaugeConnect/GaugeConnect.cpp | brion/simpanel | 5ac172006889cbbf92e2b7f86bab3f709072ff12 | [
"MIT"
] | 1 | 2021-07-21T03:20:01.000Z | 2021-07-21T03:20:01.000Z | // GaugeConnect.cpp
#include <MSFS/MSFS.h>
#include <MSFS/MSFS_WindowsTypes.h>
#include <MSFS/Legacy/gauges.h>
#include <SimConnect.h>
#include <cstring>
#include "GaugeConnect.h"
struct Expression {
bool valid;
double value;
char* expression;
UINT32 expr_len;
Expression(void) : valid(false), ex... | 28.061303 | 164 | 0.685554 | brion |
e7e8f43ab3bc37214f81a307791266a6fffe32ef | 341 | cpp | C++ | UB/Scripting/EntTeleportAction.cpp | Mr-1337/CAGE | e99082676e83cc069ebf0859fcb34e5b96712725 | [
"MIT"
] | null | null | null | UB/Scripting/EntTeleportAction.cpp | Mr-1337/CAGE | e99082676e83cc069ebf0859fcb34e5b96712725 | [
"MIT"
] | null | null | null | UB/Scripting/EntTeleportAction.cpp | Mr-1337/CAGE | e99082676e83cc069ebf0859fcb34e5b96712725 | [
"MIT"
] | 1 | 2019-06-16T19:00:31.000Z | 2019-06-16T19:00:31.000Z | #include "EntTeleportAction.hpp"
namespace ub
{
EntTeleportAction::EntTeleportAction(World* world, glm::vec2 destination) :
ScriptAction(world),
m_destination(destination)
{
}
void EntTeleportAction::Initialize()
{
}
void EntTeleportAction::Update(float dt)
{
m_world->MoveEnt(1, m_destination);
m_... | 15.5 | 77 | 0.727273 | Mr-1337 |
e7eae52e56931502dd1699a15e56f123e6279b66 | 559 | cpp | C++ | src/tests/kits/app/bmessagequeue/MessageQueueTest.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/tests/kits/app/bmessagequeue/MessageQueueTest.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/tests/kits/app/bmessagequeue/MessageQueueTest.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | #include "../common.h"
#include "AddMessageTest1.h"
#include "AddMessageTest2.h"
#include "ConcurrencyTest1.h"
#include "ConcurrencyTest2.h"
#include "FindMessageTest1.h"
Test *MessageQueueTestSuite()
{
TestSuite *testSuite = new TestSuite();
testSuite->addTest(AddMessageTest1::suite());
testSuite->addTest(AddMe... | 20.703704 | 89 | 0.735242 | Kirishikesan |
e7ec48c5dc2a6d4ffe8b131612214e9de530f484 | 420 | cpp | C++ | Online Judges/URI/1987/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 64 | 2019-03-17T08:56:28.000Z | 2022-01-14T02:31:21.000Z | Online Judges/URI/1987/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 1 | 2020-12-24T07:16:30.000Z | 2021-03-23T20:51:05.000Z | Online Judges/URI/1987/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 19 | 2019-05-25T10:48:16.000Z | 2022-01-07T10:07:46.000Z | #include <iostream>
using namespace std;
int main()
{
int qtdNumbers, sum;
string number;
bool stopped;
while(cin >> qtdNumbers >> number) {
sum = 0;
while(qtdNumbers--)
{
sum +=(number[qtdNumbers] - '0');
}
if(sum % 3 == 0) {
cout << sum... | 17.5 | 45 | 0.430952 | AnneLivia |
e7eddc82f37df2a9dd86f8058ebcf131a0bf6f69 | 2,142 | hpp | C++ | kernel/lib/elf.hpp | ethan4984/rock | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 207 | 2020-05-27T21:57:28.000Z | 2022-02-26T15:17:27.000Z | kernel/lib/elf.hpp | ethan4984/crepOS | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 3 | 2020-07-26T18:14:05.000Z | 2020-12-09T05:32:07.000Z | kernel/lib/elf.hpp | ethan4984/rock | 751b9af1009b622bedf384c1f80970b333c436c3 | [
"BSD-2-Clause"
] | 17 | 2020-07-05T19:08:48.000Z | 2021-10-13T12:30:13.000Z | #ifndef ELF_HPP_
#define ELF_HPP_
#include <mm/vmm.hpp>
#include <string.hpp>
#include <fs/fd.hpp>
namespace elf {
constexpr size_t elf_signature = 0x464C457F;
constexpr size_t elf64 = 0x2;
constexpr size_t ei_class = 0x4;
constexpr size_t ei_data = 0x5;
constexpr size_t ei_version = 0x6;
constexpr size_t ei_osabi ... | 21.636364 | 102 | 0.704949 | ethan4984 |
e7f00603063bc356ee35f2dd4e5a891475b981ee | 387 | cpp | C++ | 01_Week_Programming_Basics/FishTank/FishTank.cpp | kostadinmarkov99/SoftUni_Exercises_PB_Jan_2022 | 70e619d7c19b6676f509f2509fe102ecbc7669bc | [
"MIT"
] | null | null | null | 01_Week_Programming_Basics/FishTank/FishTank.cpp | kostadinmarkov99/SoftUni_Exercises_PB_Jan_2022 | 70e619d7c19b6676f509f2509fe102ecbc7669bc | [
"MIT"
] | null | null | null | 01_Week_Programming_Basics/FishTank/FishTank.cpp | kostadinmarkov99/SoftUni_Exercises_PB_Jan_2022 | 70e619d7c19b6676f509f2509fe102ecbc7669bc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int length, width, height;
double percetage;
cin >> length >> width >> height >> percetage;
double volumeInSM = length * width * height;
double liters = volumeInSM / 1000;
double unusedLiters = liters * percetage / 100.0;
double used... | 19.35 | 53 | 0.648579 | kostadinmarkov99 |
e7f4315c365569ee6ce9a3393bc227c62b6a2fc9 | 9,001 | cpp | C++ | Client/src/UIGuildBankForm.cpp | ruuuubi/corsairs-client | ddbcd293d6ef3f58ff02290c02382cbb7e0939a2 | [
"Apache-2.0"
] | 1 | 2021-06-14T09:34:08.000Z | 2021-06-14T09:34:08.000Z | Client/src/UIGuildBankForm.cpp | ruuuubi/corsairs-client | ddbcd293d6ef3f58ff02290c02382cbb7e0939a2 | [
"Apache-2.0"
] | null | null | null | Client/src/UIGuildBankForm.cpp | ruuuubi/corsairs-client | ddbcd293d6ef3f58ff02290c02382cbb7e0939a2 | [
"Apache-2.0"
] | null | null | null | #include "StdAfx.h"
#include "UIGuildBankForm.h"
#include "uiform.h"
#include "uilabel.h"
#include "uiformmgr.h"
#include "uigoodsgrid.h"
#include "NetProtocol.h"
#include "uiboxform.h"
#include "uiEquipForm.h"
#include "UIGoodsGrid.h"
#include "uiItemCommand.h"
#include "uiform.h"
#include "uiBoatForm.h"
#include "pa... | 31.582456 | 128 | 0.651039 | ruuuubi |
e7f603ac6f13bee4c23a336e65ebf2c1e5f4ece4 | 4,597 | hpp | C++ | ASch/include/ASch_System.hpp | JuhoL/ASch | 757c7edacb1aabce5577acc3df0560548975df49 | [
"MIT"
] | 2 | 2018-08-20T08:56:11.000Z | 2019-07-09T07:27:45.000Z | ASch/include/ASch_System.hpp | JuhoL/ASch | 757c7edacb1aabce5577acc3df0560548975df49 | [
"MIT"
] | null | null | null | ASch/include/ASch_System.hpp | JuhoL/ASch | 757c7edacb1aabce5577acc3df0560548975df49 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2018 Juho Lepistö
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), ... | 45.068627 | 127 | 0.474005 | JuhoL |
e7f60c2f38799f660ad85b4e9de2bbd6da832a41 | 1,843 | cpp | C++ | src/Ledger.cpp | LAHumphreys/LedgerJRI | 0c015ed328a71d624791bc6fb6c03e65709c7b13 | [
"MIT"
] | null | null | null | src/Ledger.cpp | LAHumphreys/LedgerJRI | 0c015ed328a71d624791bc6fb6c03e65709c7b13 | [
"MIT"
] | null | null | null | src/Ledger.cpp | LAHumphreys/LedgerJRI | 0c015ed328a71d624791bc6fb6c03e65709c7b13 | [
"MIT"
] | null | null | null | #include <Ledger.h>
#include <LedgerSessionData.h>
#include <LedgerSession.h>
#include <LedgerCommands.h>
Ledger::Ledger() {
// libLedger one-time setup?
}
std::unique_ptr<LedgerSession> Ledger::LoadJournal(const std::string& fname) {
std::unique_ptr<LedgerSession> sess;
WithInstance([&] (Ledger& instance... | 29.253968 | 78 | 0.637005 | LAHumphreys |