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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6cadad9b78fad614e28d86902cbf036e988a5e63 | 355 | hpp | C++ | src/ECS/Systems/levers.hpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | null | null | null | src/ECS/Systems/levers.hpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | null | null | null | src/ECS/Systems/levers.hpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | null | null | null | #pragma once
#include "ECS/system.hpp"
#include "Utilities/rect.hpp"
namespace ph::system {
class Levers : public System
{
public:
using System::System;
void update(float dt) override;
void onEvent(const ActionEvent& event) override;
private:
void handleUsedLevers() const;
void handleListeners(bool isActivat... | 15.434783 | 64 | 0.749296 | MirrasHue |
6caef0f93004327e022dfd7c4e178511007be40e | 499 | cpp | C++ | src/Broker.cpp | lmussier/ServiceProvider | 9a011379b8bd54423b19d62de7ca508b52068c4b | [
"MIT"
] | null | null | null | src/Broker.cpp | lmussier/ServiceProvider | 9a011379b8bd54423b19d62de7ca508b52068c4b | [
"MIT"
] | null | null | null | src/Broker.cpp | lmussier/ServiceProvider | 9a011379b8bd54423b19d62de7ca508b52068c4b | [
"MIT"
] | null | null | null | #include <QCoreApplication>
#include "Broker.hpp"
void Broker::sub(QObject* p_subscriber, const QEvent& p_event){
subecribers[p_event.type()].push_back(p_subscriber);
}
void Broker::pub(QEvent* p_event){
for (std::pair<QEvent::Type, std::vector<QObject*>>item : this->subecribers) {
if(item.first ==... | 27.722222 | 85 | 0.609218 | lmussier |
6cb95630d4792ce5477ebb16f5b34c2ab0b7b637 | 3,074 | hpp | C++ | src/VremanSGS.hpp | emathew1/MPI_3DCompact | 1945eabdc240e8754c9ea356ba954683dee0149f | [
"MIT"
] | 2 | 2021-01-14T21:13:53.000Z | 2022-01-16T23:03:43.000Z | src/VremanSGS.hpp | emathew1/MPI_3DCompact | 1945eabdc240e8754c9ea356ba954683dee0149f | [
"MIT"
] | null | null | null | src/VremanSGS.hpp | emathew1/MPI_3DCompact | 1945eabdc240e8754c9ea356ba954683dee0149f | [
"MIT"
] | 3 | 2018-11-17T21:24:57.000Z | 2020-08-02T03:19:42.000Z | #ifndef _CVREMANSGSH_
#define _CVREMANSGSH_
#include "Macros.hpp"
#include "AbstractFilter.hpp"
#include "AbstractDerivatives.hpp"
#include "Compact10Filter.hpp"
class VremanSGS: public AbstractSGS{
public:
double c;
VremanSGS(AbstractCSolver *cs){
this->mpiRank = cs->mpiRank;
this->cs = cs;
N... | 29 | 116 | 0.635329 | emathew1 |
6cba7b0a6f81a93b55f0e0a4ec3bbfe4912f6e05 | 2,444 | hpp | C++ | src/impl/ProcessImpl.hpp | eshenhu/ProcessBase | 78dedc0ba338e147f97d35b732e7e01dfff81b90 | [
"MIT"
] | null | null | null | src/impl/ProcessImpl.hpp | eshenhu/ProcessBase | 78dedc0ba338e147f97d35b732e7e01dfff81b90 | [
"MIT"
] | null | null | null | src/impl/ProcessImpl.hpp | eshenhu/ProcessBase | 78dedc0ba338e147f97d35b732e7e01dfff81b90 | [
"MIT"
] | null | null | null | /*
* $Id:$
*
* Header file for the processimpl class.
*
*/
/** \file
This file provides definitions and functions for the processimpl class.
*/
#ifndef PROCESSIMPL_HPP
#define PROCESSIMPL_HPP
#include <string>
#include <pthread.h>
#include <boost/asio.hpp>
#include <boost/program_options.hpp>
#... | 18.238806 | 75 | 0.644845 | eshenhu |
6cbc90e445e7202a31fbbffa69fb14896c669434 | 2,977 | hpp | C++ | src/ControlSystem/Tags.hpp | GAcuna001/spectre | 645a7f203b2ced1b1205e346d3abaf2adaf0e6ba | [
"MIT"
] | null | null | null | src/ControlSystem/Tags.hpp | GAcuna001/spectre | 645a7f203b2ced1b1205e346d3abaf2adaf0e6ba | [
"MIT"
] | null | null | null | src/ControlSystem/Tags.hpp | GAcuna001/spectre | 645a7f203b2ced1b1205e346d3abaf2adaf0e6ba | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <array>
#include <limits>
#include <memory>
#include <string>
#include <unordered_map>
#include <utility>
#include "DataStructures/DataBox/Tag.hpp"
#include "DataStructures/DataVector.hpp"
#include "Domain/Creators/DomainCrea... | 36.753086 | 80 | 0.707424 | GAcuna001 |
6cc0c35f8e93bd7749b1b7de16a4840288b52739 | 3,733 | cpp | C++ | algospot/luckynum/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 13 | 2015-06-07T09:26:26.000Z | 2019-05-01T13:23:38.000Z | algospot/luckynum/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | null | null | null | algospot/luckynum/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 4 | 2016-03-05T06:21:05.000Z | 2017-02-17T15:34:18.000Z | // http://algospot.com/judge/problem/read/LUCKYNUM
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <deque>
#include <iterator>
using namespace std;
class BigNum { public:
BigNum() {}
BigNum(const char* in) {
set(in);
}
BigNum &set(const char* in) {
int size = strlen(in... | 19.962567 | 68 | 0.396732 | seirion |
6cc0f0dee5e4c625b110ca879bf9ac2f88b07ffd | 164 | cpp | C++ | worker/fuzzer/src/RTC/RTCP/FuzzerFeedbackRtpSrReq.cpp | kcking/mediasoup | f385349d0f06fe14a4e38d50f0212b48d588fa32 | [
"ISC"
] | 4,465 | 2017-04-05T20:00:24.000Z | 2022-03-31T13:27:43.000Z | worker/fuzzer/src/RTC/RTCP/FuzzerFeedbackRtpSrReq.cpp | kcking/mediasoup | f385349d0f06fe14a4e38d50f0212b48d588fa32 | [
"ISC"
] | 617 | 2017-04-05T21:24:27.000Z | 2022-03-31T06:17:25.000Z | worker/fuzzer/src/RTC/RTCP/FuzzerFeedbackRtpSrReq.cpp | kcking/mediasoup | f385349d0f06fe14a4e38d50f0212b48d588fa32 | [
"ISC"
] | 900 | 2017-04-11T09:25:27.000Z | 2022-03-30T21:37:00.000Z | #include "RTC/RTCP/FuzzerFeedbackRtpSrReq.hpp"
void Fuzzer::RTC::RTCP::FeedbackRtpSrReq::Fuzz(::RTC::RTCP::FeedbackRtpSrReqPacket* packet)
{
// packet->Dump();
}
| 23.428571 | 91 | 0.737805 | kcking |
6cc68530567a432ab0f16680cdce678b3077c1eb | 1,169 | cpp | C++ | Stack/RemoveAllAdjacentDuplicatesInString_1047.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | Stack/RemoveAllAdjacentDuplicatesInString_1047.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | Stack/RemoveAllAdjacentDuplicatesInString_1047.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: RemoveAllAdjacentDuplicatesInString_1047.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Fri 05 Jul 2019 12:00:20 PM CST
********************************************************************** */
#include <std... | 18.265625 | 74 | 0.550898 | obviouskkk |
6cca7c924f43aa57e6bf5b807202dbf47113b72c | 8,232 | cpp | C++ | src/nc/core/ir/liveness/LivenessAnalyzer.cpp | treadstoneproject/tracethreat_nrml | bcf666b01c20f7da4234fed018dad3b2cf4d3d28 | [
"Apache-2.0"
] | 6 | 2016-09-06T02:10:08.000Z | 2021-01-19T09:02:04.000Z | src/nc/core/ir/liveness/LivenessAnalyzer.cpp | treadstoneproject/tracethreat_nrml | bcf666b01c20f7da4234fed018dad3b2cf4d3d28 | [
"Apache-2.0"
] | null | null | null | src/nc/core/ir/liveness/LivenessAnalyzer.cpp | treadstoneproject/tracethreat_nrml | bcf666b01c20f7da4234fed018dad3b2cf4d3d28 | [
"Apache-2.0"
] | 6 | 2015-10-02T14:11:45.000Z | 2021-01-19T09:02:07.000Z | /* The file is part of Snowman decompiler. */
/* See doc/licenses.asciidoc for the licensing information. */
//
// SmartDec decompiler - SmartDec is a native code to C/C++ decompiler
// Copyright (C) 2015 Alexander Chernov, Katerina Troshina, Yegor Derevenets,
// Alexander Fokin, Sergey Levin, Leonid Tsvetkov
//
// Th... | 33.737705 | 109 | 0.570821 | treadstoneproject |
6ccdebc8f68de35135e38c17be74ec3f0b04d810 | 1,104 | hpp | C++ | source/ashes/renderer/GlRenderer/Pipeline/GlPipelineCache.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/GlRenderer/Pipeline/GlPipelineCache.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/GlRenderer/Pipeline/GlPipelineCache.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /**
*\file
* Image.h
*\author
* Sylvain Doremus
*/
#ifndef ___GlRenderer_PipelineCache_HPP___
#define ___GlRenderer_PipelineCache_HPP___
#pragma once
#include "renderer/GlRenderer/GlRendererPrerequisites.hpp"
#include <common/ArrayView.hpp>
namespace ashes::gl
{
/**
*\brief
* Un pipeline de rendu.
*/
class Pipe... | 16.477612 | 65 | 0.713768 | DragonJoker |
6cd13a901a317d0353b622bc64ad8511ef5e319a | 662 | cpp | C++ | 1267/b.cpp | shioju/codeforces | ac0f72596298a15cfdbedc3fea18e637a8734a68 | [
"MIT"
] | null | null | null | 1267/b.cpp | shioju/codeforces | ac0f72596298a15cfdbedc3fea18e637a8734a68 | [
"MIT"
] | null | null | null | 1267/b.cpp | shioju/codeforces | ac0f72596298a15cfdbedc3fea18e637a8734a68 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int left = 0, right = s.size()-1;
int count = 0;
char color = s[0];
int lastLeft = left, lastRight = right;
while (left<=right) {
if (s[left] == color) {
left++;
count++;
} else if (s[right] == color) {
... | 17.891892 | 60 | 0.459215 | shioju |
6cd149663eb89e167c4c2ecde9683c11823dfac7 | 1,365 | hpp | C++ | DNS with Benefits/DBMatchSystem.hpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | DNS with Benefits/DBMatchSystem.hpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | DNS with Benefits/DBMatchSystem.hpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | //
// DBMatchSystem.hpp
// DNS with Benefits
//
// Created by Soroush Faghihi on 5/27/18.
// Copyright © 2018 sorco. All rights reserved.
//
#ifndef DBMatchSystem_hpp
#define DBMatchSystem_hpp
#include <pthread.h>
#include <semaphore.h>
#include "DBRadixTrie.hpp"
/*
* The Multithreaded version of DBRadixTree.
... | 23.534483 | 87 | 0.675458 | SFaghihi |
6cd724a070289e4da21e2d0faaa2c225f7d36f60 | 2,644 | cpp | C++ | tests/src/kernel/hipGridLaunch.cpp | scchan/HIP | 2db70fe5fdc701e1eedc73bea1d247cda855ef05 | [
"MIT"
] | 1 | 2021-01-10T09:04:33.000Z | 2021-01-10T09:04:33.000Z | tests/src/kernel/hipGridLaunch.cpp | ttsvetanov/HIP | 44587f7b070b692a0d5770a55f0a0d788d992806 | [
"MIT"
] | 1 | 2019-04-26T12:23:00.000Z | 2019-05-15T14:49:19.000Z | tests/src/kernel/hipGridLaunch.cpp | ttsvetanov/HIP | 44587f7b070b692a0d5770a55f0a0d788d992806 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015-2017 Advanced Micro Devices, Inc. All rights reserved.
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, co... | 26.707071 | 93 | 0.703101 | scchan |
6cdef39354526dc35704fc56af11cefa7ec9696b | 21,586 | cpp | C++ | src/xtd.drawing.native.wxwidgets/src/xtd/drawing/native/wxwidgets/graphics.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | src/xtd.drawing.native.wxwidgets/src/xtd/drawing/native/wxwidgets/graphics.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | src/xtd.drawing.native.wxwidgets/src/xtd/drawing/native/wxwidgets/graphics.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include <cmath>
#include <vector>
#include <xtd/argument_exception.h>
#include <xtd/convert_string.h>
#include <xtd/ustring.h>
#define __XTD_DRAWING_NATIVE_LIBRARY__
#include <xtd/drawing/native/graphics.h>
#include "../../../../../include/xtd/drawing/native/hdc_wrapper.h"
#include "../../../../../include/xtd/drawing/... | 57.716578 | 492 | 0.746734 | leanid |
6ce108784810885839354ee1f039fba82cb10995 | 3,102 | cpp | C++ | Course codes/HCSR04 Exercise/hcsr04.cpp | MUDAL/Practical-Embedded-Systems-Course | df1026ae6898cfd25a721aa0239bceb2ed6a9404 | [
"MIT"
] | null | null | null | Course codes/HCSR04 Exercise/hcsr04.cpp | MUDAL/Practical-Embedded-Systems-Course | df1026ae6898cfd25a721aa0239bceb2ed6a9404 | [
"MIT"
] | null | null | null | Course codes/HCSR04 Exercise/hcsr04.cpp | MUDAL/Practical-Embedded-Systems-Course | df1026ae6898cfd25a721aa0239bceb2ed6a9404 | [
"MIT"
] | null | null | null | #include "hcsr04.h"
void HCSR04_TrigPinPWMInit(pinStruct_t& trigPin,
TIM_TypeDef* TIMx,
uint8_t gpioAFSelTIMx,
uint8_t pwmChannel)
{
//GPIO config
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = trigPin.selectedPin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GP... | 32.3125 | 87 | 0.770148 | MUDAL |
6ce4ec6c84b9a3f5bc143fb5ea9483f13b593606 | 5,449 | cpp | C++ | src/util/newlib_functions.cpp | 0x2152Yet/yet_another_motor_drive | 4987d2c48b2594c83a1075f374ef45e1037c68ef | [
"BSD-3-Clause"
] | 8 | 2021-04-19T18:39:30.000Z | 2022-03-16T15:16:44.000Z | src/util/newlib_functions.cpp | 0x2152Yet/yet_another_motor_drive | 4987d2c48b2594c83a1075f374ef45e1037c68ef | [
"BSD-3-Clause"
] | null | null | null | src/util/newlib_functions.cpp | 0x2152Yet/yet_another_motor_drive | 4987d2c48b2594c83a1075f374ef45e1037c68ef | [
"BSD-3-Clause"
] | 2 | 2021-07-16T04:19:27.000Z | 2021-11-07T03:13:54.000Z | ////////////////////////////////////////////////////////////////////////////////
//
// Yet Another Motor Drive
//
// MIT License
//
// Copyright (c) 2021 Michael F. Kaufman
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the... | 25.226852 | 82 | 0.543953 | 0x2152Yet |
6ce75c38ff82b9d3df0bca02ec885da3b298e875 | 500 | cpp | C++ | arrays/ArrayTraversalRec.cpp | Mohitmauryagit/datastructures | df61f3f5b592dc4fe0b9d6a966b87f3348328e0a | [
"MIT"
] | 8 | 2021-08-12T08:09:37.000Z | 2021-12-30T10:45:54.000Z | arrays/ArrayTraversalRec.cpp | Mohitmauryagit/datastructures | df61f3f5b592dc4fe0b9d6a966b87f3348328e0a | [
"MIT"
] | 7 | 2021-06-09T05:13:23.000Z | 2022-01-24T04:47:59.000Z | arrays/ArrayTraversalRec.cpp | Mohitmauryagit/datastructures | df61f3f5b592dc4fe0b9d6a966b87f3348328e0a | [
"MIT"
] | 4 | 2021-11-07T07:09:58.000Z | 2022-02-08T11:43:56.000Z | #include<iostream>
using namespace std;
void H(int a[],int i,int size)
{
if(i>size-1)
{
cout<<endl;
return;
}
cout<<a[i]<<",";
H(a,i+1,size);
}
void S(int a[],int k,int size)
{
if(k<0)
{
cout<<endl;
return;
}
cout<<a[k]<<",";
k--;
... | 12.820513 | 35 | 0.434 | Mohitmauryagit |
6cf1c785792de12969edf8c8cf3721b725041a69 | 1,891 | cpp | C++ | old/src/frontend/qt5/Qt5Locals.cpp | fungosforks/ProDBG | 43d8b43660e852b1efd34350af5c7f2ba2ccdae5 | [
"MIT"
] | 1 | 2016-03-15T19:03:38.000Z | 2016-03-15T19:03:38.000Z | old/src/frontend/qt5/Qt5Locals.cpp | fungosforks/ProDBG | 43d8b43660e852b1efd34350af5c7f2ba2ccdae5 | [
"MIT"
] | null | null | null | old/src/frontend/qt5/Qt5Locals.cpp | fungosforks/ProDBG | 43d8b43660e852b1efd34350af5c7f2ba2ccdae5 | [
"MIT"
] | null | null | null | #include "Qt5Locals.h"
#include "ProDBGAPI.h"
#include "Qt5DebugSession.h"
#include "core/log.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
namespace prodbg
{
/////////////////////////////////////////////////////////////////////////////////... | 25.554054 | 119 | 0.419884 | fungosforks |
6cf504e308c5c4b586c26ac153dc748153ba0eb6 | 737 | cpp | C++ | 0728-Three Distinct Factors/0728-Three Distinct Factors.cpp | lightwindy/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0701-0800/0728-Three Distinct Factors/0728-Three Distinct Factors.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0701-0800/0728-Three Distinct Factors/0728-Three Distinct Factors.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/*
* @param : the given number
* @return: return true if it has exactly three distinct factors, otherwise false
*/
bool isThreeDisctFactors(long long n) {
// write your code here
long long sqrtn = sqrt(n);
if (sqrtn * sqrtn != n)
retur... | 23.03125 | 86 | 0.446404 | lightwindy |
6cf527b4c1672831c6d3153232dbb8dbddba0c43 | 470 | hpp | C++ | test/utils/typeTraits.hpp | Tradias/contiguous | 91d0e3cd150cb3515723a5b70ef030158d37e63f | [
"MIT"
] | 3 | 2021-05-20T16:42:37.000Z | 2022-03-15T22:23:23.000Z | test/utils/typeTraits.hpp | Tradias/contiguous | 91d0e3cd150cb3515723a5b70ef030158d37e63f | [
"MIT"
] | 1 | 2021-05-22T16:00:46.000Z | 2021-05-22T17:50:25.000Z | test/utils/typeTraits.hpp | Tradias/contiguous | 91d0e3cd150cb3515723a5b70ef030158d37e63f | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Dennis Hezel
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#ifndef CNTGS_UTILS_TYPETRAITS_HPP
#define CNTGS_UTILS_TYPETRAITS_HPP
namespace cntgs::test
{
template <class T>
struct RemoveCvref
{
using Type = std::remove_cv_t<std::remove_reference... | 21.363636 | 62 | 0.757447 | Tradias |
6cf9a80d28702ec7db96cfb60afb711ee87d7e2d | 634 | cpp | C++ | SystemResource/Source/Image/PNG/Chunk/PNGInterlaceMethod.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 5 | 2021-10-19T18:30:43.000Z | 2022-03-19T22:02:02.000Z | SystemResource/Source/Image/PNG/Chunk/PNGInterlaceMethod.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 12 | 2022-03-09T13:40:21.000Z | 2022-03-31T12:47:48.000Z | SystemResource/Source/Image/PNG/Chunk/PNGInterlaceMethod.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | null | null | null | #include "PNGInterlaceMethod.h"
BF::PNGInterlaceMethod BF::ConvertPNGInterlaceMethod(unsigned char interlaceMethod)
{
switch (interlaceMethod)
{
case 0u:
return PNGInterlaceMethod::NoInterlace;
case 1u:
return PNGInterlaceMethod::ADAM7Interlace;
default:
return PNGInterlaceMethod::Invalid;
}
}
un... | 19.8125 | 83 | 0.76183 | BitPaw |
9f03fd6bb217568fe30ca36e27ab870eaacdbc7e | 7,849 | cpp | C++ | sm/lib/math.cpp | rimuz/smudge | bd7777b62da97b187d65c2dbcd2d28c420ae0878 | [
"Apache-2.0"
] | 4 | 2018-01-17T14:56:00.000Z | 2018-12-14T06:48:40.000Z | sm/lib/math.cpp | rimuz/smudge | bd7777b62da97b187d65c2dbcd2d28c420ae0878 | [
"Apache-2.0"
] | null | null | null | sm/lib/math.cpp | rimuz/smudge | bd7777b62da97b187d65c2dbcd2d28c420ae0878 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016-2017 Riccardo Musso
*
* 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 requir... | 35.515837 | 101 | 0.464136 | rimuz |
2f69330424389358a648e06eda0b865082abdc9c | 674 | cpp | C++ | sttcl_tests/src/sttcl_tests.cpp | makulik/sttcl | b1be1969b705e9b6a42fadd8581ab678b8485aa4 | [
"Unlicense",
"BSD-3-Clause"
] | 16 | 2015-05-10T03:52:31.000Z | 2020-09-06T20:32:20.000Z | sttcl_tests/src/sttcl_tests.cpp | gnihtemoSgnihtemos/sttcl | b1be1969b705e9b6a42fadd8581ab678b8485aa4 | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2015-02-01T17:35:07.000Z | 2019-03-08T18:05:53.000Z | sttcl_tests/src/sttcl_tests.cpp | gnihtemoSgnihtemos/sttcl | b1be1969b705e9b6a42fadd8581ab678b8485aa4 | [
"Unlicense",
"BSD-3-Clause"
] | 7 | 2015-01-27T21:41:55.000Z | 2021-03-25T13:41:20.000Z | //============================================================================
// Name : sttcl_tests.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inclu... | 28.083333 | 78 | 0.535608 | makulik |
2f72a4d39ce29a50e23462270bfb55be3547cf62 | 429 | hpp | C++ | include/zmf/ModuleState.hpp | zeroSDN/ZeroModuleFramework | a2262a77891b9c6b34d33dc6ff1b9734175fdcce | [
"Apache-2.0"
] | null | null | null | include/zmf/ModuleState.hpp | zeroSDN/ZeroModuleFramework | a2262a77891b9c6b34d33dc6ff1b9734175fdcce | [
"Apache-2.0"
] | null | null | null | include/zmf/ModuleState.hpp | zeroSDN/ZeroModuleFramework | a2262a77891b9c6b34d33dc6ff1b9734175fdcce | [
"Apache-2.0"
] | null | null | null | #ifndef ZMF_MODULESTATE_HPP
#define ZMF_MODULESTATE_HPP
namespace zmf {
namespace data {
/**
* @details Lifecycle state of a module, dead (shut down), inactive (standby) or active
* @author Jonas Grunert
* @date created on 8/8/15.
*/
enum ModuleState {
... | 22.578947 | 95 | 0.547786 | zeroSDN |
2f7d41c4b4b63bf1f0cc902a4df86407a046a7cb | 543 | cpp | C++ | Graph/Adjcency-List.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | Graph/Adjcency-List.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | Graph/Adjcency-List.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void addEdge(vector<int> vec[],int u,int v)
{
vec[u].push_back(v);
vec[v].push_back(u);
}
void display(vector<int> vec[],int V)
{
for(int i=0;i<V;i++)
{
cout<<i<<"-->>";
for(auto node : vec[i])
{
cout<<node<<" ";
}
cout<<endl;
}
}
int main... | 15.970588 | 43 | 0.539595 | Shiv-sharma-111 |
2f7fb9099bc93a7cead2e83914a1bc388996e3f8 | 2,551 | cpp | C++ | src/modules/osgFX/generated_code/Registry.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osgFX/generated_code/Registry.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osgFX/generated_code/Registry.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osgFX.h"
#include "wrap_referenced.h"
#include "Registry.pypp.hpp"
namespace bp = boost::python;
void register_Registry_class(){
{ //::osgFX::Registry
typedef bp::class_< osgFX::Registry, bp::bases< ::osg::Referenced >, ... | 38.651515 | 150 | 0.558996 | cmbruns |
2f83701ee3b82b1df8757dc39741086f3ee53bbe | 6,518 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_AspectMarker.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_AspectMarker.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_AspectMarker.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Created on: 2011-07-13
// Created by: Sergey ZERCHANINOV
// Copyright (c) 2011-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2... | 36.617978 | 99 | 0.653421 | jiaguobing |
2f8db47bddee6e9a2a0e5701cc7bad34a5e526f8 | 2,672 | cpp | C++ | lectures/lecture9/pointers.cpp | clnznr/advancedprogramming | 46d1826ab7aca155835e4212050f573382913638 | [
"Apache-2.0"
] | 1 | 2017-02-23T23:12:29.000Z | 2017-02-23T23:12:29.000Z | lectures/lecture9/pointers.cpp | cleongh/advancedprogramming | 46d1826ab7aca155835e4212050f573382913638 | [
"Apache-2.0"
] | null | null | null | lectures/lecture9/pointers.cpp | cleongh/advancedprogramming | 46d1826ab7aca155835e4212050f573382913638 | [
"Apache-2.0"
] | 1 | 2017-07-21T10:38:53.000Z | 2017-07-21T10:38:53.000Z | #include <iostream>
#include <memory>
// pointer to pointer to modify a pointer
int c = 9;
void modify_pointer(int ** p) {
*p = &c;
}
int d = 15;
// note that the order is "*&"
void reference_to_pointer(int *& p) {
p = &d;
}
// Pointers and references
void pointers_and_references() {
int a = 4;
int *... | 26.196078 | 118 | 0.57485 | clnznr |
2f92ca5b5ff3b3ebf8eb8ac7cf0af1c877b877a1 | 468 | cc | C++ | src/tests/unit/common/test_3Dpoint.cc | ViBOT-Erasmus/BSCVDemoCpp | 856e655171115498c9d5ccd2bb8e89ed95726e77 | [
"BSD-3-Clause"
] | 2 | 2018-03-20T09:22:27.000Z | 2018-04-29T15:17:20.000Z | src/tests/unit/common/test_3Dpoint.cc | ViBOT-Erasmus/BSCVDemoCpp1718 | 856e655171115498c9d5ccd2bb8e89ed95726e77 | [
"BSD-3-Clause"
] | 25 | 2018-02-20T19:20:23.000Z | 2019-04-12T10:04:44.000Z | src/tests/unit/common/test_3Dpoint.cc | ViBOT-Erasmus/BSCVDemoCpp1718 | 856e655171115498c9d5ccd2bb8e89ed95726e77 | [
"BSD-3-Clause"
] | 14 | 2018-02-20T19:15:20.000Z | 2019-04-12T09:37:11.000Z | // "Copyright [2018] Sadiq"
#include <gtest/gtest.h>
#include <common/3Dpoint.hpp>
// Create our own test to check the different function of our class
// This function will take two arguments:
// * The test case name
// * The test name
TEST(first_coordinates_values, second_coordinate_values) {
Geometry coordinates... | 31.2 | 67 | 0.726496 | ViBOT-Erasmus |
2f9b3d717e3caa78911f78082bf3e0cb13769dc9 | 2,234 | cpp | C++ | 数据结构/AC自动机/acwing_1285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 数据结构/AC自动机/acwing_1285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 数据结构/AC自动机/acwing_1285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
typedef vector<int> vi;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
mt19937 mrand(random_device{}());
const ll mod = 1000000007;
int rnd(int x) {... | 25.678161 | 144 | 0.519248 | tempure |
2fa7897be464a8fe49df5edcb13522bc878650a2 | 2,262 | cc | C++ | 1-Simulation/source/src/WindowHit.cc | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | 1 | 2019-08-01T03:48:26.000Z | 2019-08-01T03:48:26.000Z | 1-Simulation/source/src/WindowHit.cc | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | null | null | null | 1-Simulation/source/src/WindowHit.cc | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | null | null | null | //*********************************************
// This is auto generated by G4gen 0.6
// author:Qian
#include "WindowHit.hh"
G4ThreadLocal G4Allocator<WindowHit> *WindowHitAllocator = 0;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
WindowHit::Win... | 25.41573 | 78 | 0.60168 | surfound |
2fa89fda606deb339cd9c9c854ec09d8a2cb8384 | 22,678 | cxx | C++ | osprey/be/lno/ff_pragmas.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/ff_pragmas.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/ff_pragmas.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free S... | 32.304843 | 79 | 0.621263 | sharugupta |
2faef50ed5b847ae7cf39e086f546acfa8aee177 | 1,042 | cc | C++ | qtclient/valuespresenter.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 111 | 2015-01-06T21:14:49.000Z | 2022-02-06T14:29:27.000Z | qtclient/valuespresenter.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 18 | 2015-01-31T15:16:54.000Z | 2022-02-26T10:18:39.000Z | qtclient/valuespresenter.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 22 | 2015-05-13T00:29:46.000Z | 2019-03-09T10:07:38.000Z | #include <QDebug>
#include "valuespresenter.h"
#include "device.h"
#include "keyboardvalues.h"
#include "keyboardmodel.h"
ValuesPresenter::ValuesPresenter() {
mView = new KeyboardValues(this);
}
ValuesPresenter::~ValuesPresenter() {
if (!mView->parent()) {
delete mView;
}
}
void ValuesPresenter::setModel(QSh... | 21.708333 | 69 | 0.641075 | chrisandreae |
2fb0bc54dacf0e815b8e1bef99c3d1eab1c32c36 | 2,061 | cc | C++ | buffer/buffered_reader.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | buffer/buffered_reader.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | buffer/buffered_reader.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | // Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com>
#include "buffered_reader.hpp"
#include "io/copy.hpp"
static inline Status load_buffer(Source *source, Buffer *buffer) {
size_t cpbytes;
return copy(source, buffer, &cpbytes);
}
static inline Status _read(
Buffer *buffer,
Source *source,
u... | 23.157303 | 68 | 0.67443 | eaugeas |
2fb3c1238b73311b6f1a708103c325f7c7e7929e | 787 | cpp | C++ | SFMLWindow/SFMLWindow/main.cpp | coltonhurst/learning-sfml | 7c358d9542728847bed9066eb92c686093a5c1f4 | [
"MIT"
] | null | null | null | SFMLWindow/SFMLWindow/main.cpp | coltonhurst/learning-sfml | 7c358d9542728847bed9066eb92c686093a5c1f4 | [
"MIT"
] | null | null | null | SFMLWindow/SFMLWindow/main.cpp | coltonhurst/learning-sfml | 7c358d9542728847bed9066eb92c686093a5c1f4 | [
"MIT"
] | null | null | null | /*
SFML Window Example
Based on: https://www.sfml-dev.org/tutorials/2.5/window-window.php
*/
#include <SFML/Window.hpp>
int main(int, char const**)
{
// Create the window
sf::Window window;
window.create(sf::VideoMode(800, 600), "My window");
// Prevents tearing
window.setVerticalSync... | 23.848485 | 97 | 0.581957 | coltonhurst |
2fb4278919d22d8a45b32b9ea3606b29b0825286 | 1,782 | hpp | C++ | Sokoban/src/Engine/Scene/Scene_Templates.hpp | Elysia-ff/Sokoban_Win | 3899c2d20c65959152669b52ba215777977c08e1 | [
"MIT"
] | null | null | null | Sokoban/src/Engine/Scene/Scene_Templates.hpp | Elysia-ff/Sokoban_Win | 3899c2d20c65959152669b52ba215777977c08e1 | [
"MIT"
] | null | null | null | Sokoban/src/Engine/Scene/Scene_Templates.hpp | Elysia-ff/Sokoban_Win | 3899c2d20c65959152669b52ba215777977c08e1 | [
"MIT"
] | null | null | null | #pragma once
#include "Scene.h"
#include <cassert>
#include <type_traits>
template <typename T>
T& Elysia::Engine::Scene::AddGameObject(const tstring& objectName)
{
static_assert(std::is_base_of_v<GameObject, T>, "Type T must be inherited from GameObject");
assert(components.find(newInstanceID) == components.end()... | 28.285714 | 99 | 0.742424 | Elysia-ff |
2fb7494bd1755775e8665020b86abac262fe6796 | 20,606 | cpp | C++ | src/OctTree.cpp | aslatas/render | 79b239e8d9f92309d643049fab44216eb4f24449 | [
"MIT"
] | null | null | null | src/OctTree.cpp | aslatas/render | 79b239e8d9f92309d643049fab44216eb4f24449 | [
"MIT"
] | 9 | 2019-05-09T02:26:55.000Z | 2019-05-10T15:26:39.000Z | src/OctTree.cpp | aslatas/render | 79b239e8d9f92309d643049fab44216eb4f24449 | [
"MIT"
] | null | null | null | #include "OctTree.h"
/*
TODOs for the QuadTree
-> Free your memory!!!
-> Play with Bin growth heuristic
-> Convert the Bin contents to a void* so the tree can be used for other objects
-> Memory Allocator for OctTree
Essentailly the total size of the array containing the octtree is limited by the depth of the
tr... | 38.230056 | 180 | 0.557605 | aslatas |
2fb9fa8a500a98d7dc62ab1abfb740a51de99e1d | 1,758 | hpp | C++ | src/include/Backbone/State.hpp | grigorievich/Viy | c78cfb55e548ce40b9fe3756e4ce2a923b84a552 | [
"Apache-2.0"
] | 14 | 2017-09-08T09:20:37.000Z | 2020-09-20T10:56:22.000Z | src/include/Backbone/State.hpp | grigorievich/Viy | c78cfb55e548ce40b9fe3756e4ce2a923b84a552 | [
"Apache-2.0"
] | null | null | null | src/include/Backbone/State.hpp | grigorievich/Viy | c78cfb55e548ce40b9fe3756e4ce2a923b84a552 | [
"Apache-2.0"
] | 2 | 2018-02-14T16:52:33.000Z | 2018-06-20T22:16:02.000Z | #ifndef STATE_HPP
#define STATE_HPP
#include <StateIdentifiers.hpp>
#include <ResourceIdentifiers.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <memory>
namespace sf
{
class RenderWindow;
}
class StateStack;
class Player;
class State
{
... | 19.533333 | 83 | 0.547213 | grigorievich |
2fbc09d57afec89af71c2eb59c22063c6d469704 | 2,716 | hpp | C++ | apps/test_suite/apps/Core/CoreTest.hpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 3 | 2015-10-29T16:11:49.000Z | 2021-08-28T08:53:09.000Z | apps/test_suite/apps/Core/CoreTest.hpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 13 | 2015-10-29T05:39:16.000Z | 2017-06-11T19:10:07.000Z | apps/test_suite/apps/Core/CoreTest.hpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 1 | 2022-03-01T18:47:58.000Z | 2022-03-01T18:47:58.000Z | /*
*
* Copyright (c) 2015-2017 Stanislav Zhukov
*
* 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... | 25.148148 | 83 | 0.616348 | Koncord |
2fc4d6bf0c10f0fee3cce4d7120ba59296d5fefd | 5,022 | cpp | C++ | src/miner.cpp | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | src/miner.cpp | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | src/miner.cpp | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | #include "miner.hpp"
#include "generator.hpp"
#include "interpreter.hpp"
#include "mutator.hpp"
#include "oeis_manager.hpp"
#include "optimizer.hpp"
#include "parser.hpp"
#include "program_util.hpp"
#include <chrono>
#include <fstream>
#include <random>
#include <sstream>
#include <unordered_set>
#define METRIC_PUBL... | 26.15625 | 119 | 0.585225 | karttu |
2fc7d32b9516b6506d0f5c81e694d03d1f72d988 | 1,508 | cpp | C++ | source/Ch11/drill/drill_11.cpp | mategordos/UDProg-Introduction | 7d522141f3c4b84ee2d19335fef7db9af9ad74bf | [
"CC0-1.0"
] | null | null | null | source/Ch11/drill/drill_11.cpp | mategordos/UDProg-Introduction | 7d522141f3c4b84ee2d19335fef7db9af9ad74bf | [
"CC0-1.0"
] | null | null | null | source/Ch11/drill/drill_11.cpp | mategordos/UDProg-Introduction | 7d522141f3c4b84ee2d19335fef7db9af9ad74bf | [
"CC0-1.0"
] | null | null | null | #include "../../std_lib_facilities.h"
int main() {
int birth_year = 2001;
int a, b, c, d = 0;
cout << birth_year << "\t(Decimal)\n"
<< hex << birth_year << "\t(Hexadecimal)\n"
<< oct << birth_year << "\t(Octal)\n"
<< dec << endl;
cout << showbase << endl;
cout << birth_year << "\t(Decimal)\n"
<< hex << bi... | 30.16 | 120 | 0.511936 | mategordos |
2fd003ef65b1ebdb50b35021b08dd928b4a92d0b | 1,606 | hh | C++ | fields/address.hh | 45G/libsocks6msg | 73b778bfe8efb2c311520617debdfbadf10b6d88 | [
"MIT"
] | 2 | 2020-08-18T11:20:21.000Z | 2022-03-08T23:49:02.000Z | fields/address.hh | 45G/libsocks6msg | 73b778bfe8efb2c311520617debdfbadf10b6d88 | [
"MIT"
] | null | null | null | fields/address.hh | 45G/libsocks6msg | 73b778bfe8efb2c311520617debdfbadf10b6d88 | [
"MIT"
] | null | null | null | #ifndef SOCKS6MSG_ADDRESS_HH
#define SOCKS6MSG_ADDRESS_HH
#include <assert.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <vector>
#include <optional>
#include <variant>
#include "socks6.h"
#include "bytebuffer.hh"
#include "string.hh"
#include "padded.hh"
#include "exceptions.hh"
namespace S6M
{
class... | 17.844444 | 86 | 0.682441 | 45G |
2fd42d25dacb80ea5165c716c94b719bb35c05fc | 228,802 | cpp | C++ | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_6Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_6Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_6Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il... | 43.064559 | 189 | 0.82765 | Eiris |
2fd4c8d17f85ba02e4d3189526c846d4cd314961 | 338 | cpp | C++ | Cpp/657.robot-return-origin.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/657.robot-return-origin.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/657.robot-return-origin.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
bool judgeCircle(string moves) {
map<char, int> move_counts{{'U', 0}, {'D', 0}, {'L', 0}, {'R', 0}};
for (char &move : moves) {
move_counts[move] ++;
}
return move_counts['U'] - move_counts['D'] == 0 &&
move_counts['L'] - move_counts['... | 30.727273 | 75 | 0.476331 | zszyellow |
7c7d2dd37f0dbbb0619720940a7f4111d0afb4e9 | 1,196 | hpp | C++ | projects/entity_store/include/EntityStore/Internal/Entity.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | 2 | 2021-06-24T21:46:56.000Z | 2021-09-24T07:51:04.000Z | projects/entity_store/include/EntityStore/Internal/Entity.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | projects/entity_store/include/EntityStore/Internal/Entity.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | #pragma once
#include "EntityStore/Properties.hpp"
#include "EntityStore/Property.hpp"
// Design principle: The more compile time check you do, the less runtime error you get!
//
// I. Every property of an Entity has a fixed type (the title is std::string, the
// timestamp is double, etc.).
// II. The id pr... | 28.47619 | 120 | 0.7199 | antaljanosbenjamin |
7c817312ada6fafeb90141cbddac215e20860881 | 806 | cpp | C++ | src/wnd.cpp | tstih/nice | a242dc78ec446dadaa3f275b15acda92922c39bf | [
"MIT"
] | null | null | null | src/wnd.cpp | tstih/nice | a242dc78ec446dadaa3f275b15acda92922c39bf | [
"MIT"
] | null | null | null | src/wnd.cpp | tstih/nice | a242dc78ec446dadaa3f275b15acda92922c39bf | [
"MIT"
] | 2 | 2020-11-26T16:49:43.000Z | 2021-08-17T12:17:13.000Z | //
// wnd.cpp
//
// Window class implementation.
//
// (c) 2021 Tomaz Stih
// This code is licensed under MIT license (see LICENSE.txt for details).
//
// 09.05.2021 tstih
//
#include "nice.hpp"
namespace nice {
//{{BEGIN.DEF}}
void wnd::repaint(void) { native()->repaint(); }
std::string wnd::get_t... | 26 | 78 | 0.605459 | tstih |
7c92a621d2594672a145aade59f5fc113fd8da6d | 1,641 | cpp | C++ | apps/cc/PrintVisitor.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | apps/cc/PrintVisitor.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | apps/cc/PrintVisitor.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | #include <iostream>
#include "PrintVisitor.h"
#include "Expression.h"
#include "Function.h"
#include "TranslationUnit.h"
int PrintVisitor::visit(Function &f)
{
std::cout << "Function: " << f.name << std::endl;
for(auto &p : f.parameters)
std::cout << " Parameter: " << p->name << std::endl;
visi... | 23.112676 | 91 | 0.636807 | lemoniac |
7c9acee4cf2fb78520667585be4b3c2f8f51d22e | 9,517 | cpp | C++ | testbench/test.cpp | Golui/jpet-online-compress | bb992a7c68c64ba8139114e50aeaa41ae2f023fd | [
"MIT"
] | null | null | null | testbench/test.cpp | Golui/jpet-online-compress | bb992a7c68c64ba8139114e50aeaa41ae2f023fd | [
"MIT"
] | null | null | null | testbench/test.cpp | Golui/jpet-online-compress | bb992a7c68c64ba8139114e50aeaa41ae2f023fd | [
"MIT"
] | null | null | null | #include "ansu_fpga.hpp"
#include "driver.hpp"
#include "ansu.hpp"
#include "ansu/io/archive.hpp"
#include "ansu/io/table_archive.hpp"
#include "ansu/util.hpp"
#include "CLI11.hpp"
#include "cereal/types/array.hpp"
#include <array>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include... | 24.591731 | 86 | 0.613954 | Golui |
7ca818d649bc46c05d71da2a840fe141d1f2d4c1 | 966 | hpp | C++ | stats.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | stats.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | stats.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | // $Id$
#ifndef _STATS_HPP_
#define _STATS_HPP_
#include "module.hpp"
class Stats : public Module
{
long long int _num_samples;
double _sample_sum;
double _sample_squared_sum;
//bool _reset;
double _min;
double _max;
long long int _num_bins;
double _bin_size;
vector<long long int> _hist;
public... | 18.226415 | 60 | 0.68323 | TomGlint |
7cb0462b627f151d0d6f62ae63baead8a3f8c689 | 588 | cpp | C++ | die-tk/ControlParams.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 11 | 2015-11-06T01:35:35.000Z | 2021-05-01T18:34:50.000Z | die-tk/ControlParams.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | null | null | null | die-tk/ControlParams.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 2 | 2017-07-06T16:05:51.000Z | 2019-07-04T01:17:15.000Z | #include "ControlParams.h"
#include <ostream>
namespace tk {
std::ostream & operator<<(std::ostream & os, ControlParams const & cp)
{
os << "start " << cp.start_ << " dims " << cp.dims_;
if( ! cp.visible_ ) os << " invisible";
if( cp.backgroundColor_ ) os << " background " << *cp.backgroundColor_;
if( cp.cursor_ ... | 30.947368 | 86 | 0.605442 | thinlizzy |
7cb18e843f09ac0fee9880d37b1c4621b1725b7b | 6,714 | cpp | C++ | Editor/Sources/o2Editor/AnimationWindow/TrackControls/KeyFramesTrackControl.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Editor/Sources/o2Editor/AnimationWindow/TrackControls/KeyFramesTrackControl.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Editor/Sources/o2Editor/AnimationWindow/TrackControls/KeyFramesTrackControl.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2Editor/stdafx.h"
#include "KeyFramesTrackControl.h"
template<>
DECLARE_CLASS_MANUAL(Editor::KeyFramesTrackControl<AnimationTrack<float>>);
template<>
DECLARE_CLASS_MANUAL(Editor::KeyFramesTrackControl<AnimationTrack<bool>>);
template<>
DECLARE_CLASS_MANUAL(Editor::KeyFramesTrackControl<AnimationTrack<Co... | 27.292683 | 125 | 0.665773 | zenkovich |
7cb1bdbe4f70949d38f6d450721f644f55d31869 | 899 | cpp | C++ | tests/util/test_multivec.cpp | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 7 | 2020-12-07T11:33:17.000Z | 2022-01-02T07:30:52.000Z | tests/util/test_multivec.cpp | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 26 | 2021-01-13T18:15:23.000Z | 2022-02-27T05:52:59.000Z | tests/util/test_multivec.cpp | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 2 | 2021-01-06T15:03:10.000Z | 2022-01-02T07:18:45.000Z | #include "util/utils.hpp"
#include <gtest/gtest.h>
#include <random>
namespace {
template <typename T>
class Pow : public ::testing::Test {};
typedef ::testing::Types<uint64_t, uint32_t> PowTypes;
TYPED_TEST_SUITE(Pow, PowTypes);
TYPED_TEST(Pow, Zero) {
std::mt19937 rng(123457);
std::uniform_int_distribut... | 24.297297 | 76 | 0.650723 | ajoudaki |
7cb32a1975e693bd4564cbfe8082ae870cc8007b | 4,591 | cpp | C++ | Source/Tools/ShaderCompiler/ShaderCompiler.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 291 | 2017-09-30T09:07:49.000Z | 2022-03-22T13:09:21.000Z | Source/Tools/ShaderCompiler/ShaderCompiler.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 12 | 2018-01-14T01:54:53.000Z | 2021-02-19T06:14:01.000Z | Source/Tools/ShaderCompiler/ShaderCompiler.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 16 | 2018-05-03T08:15:31.000Z | 2022-02-25T09:03:16.000Z | // Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
#include "ShaderCompiler.h"
#include <cxxopts.hpp>
#if __has_include(<filesystem>)
#include <filesystem>
namespace fs = std::filesystem;
#elif __has_include(<experimental/file... | 34.007407 | 106 | 0.626443 | amerkoleci |
7cb3c8345c265a5b2663aee3c14207b79a31ed84 | 10,573 | hpp | C++ | include/codegen/include/Zenject/FactoryFromBinderBase.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/FactoryFromBinderBase.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/FactoryFromBinderBase.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:10:43 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: Zenject.ScopeConcreteIdArgConditionCopyNonLazyBinder
#includ... | 54.220513 | 203 | 0.779344 | Futuremappermydud |
7cb588d5198e6a493c7967ccf3c1cab62e752189 | 496 | hpp | C++ | library/ATF/_log_case_charselectInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_log_case_charselectInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_log_case_charselectInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_log_case_charselect.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _log_case_charselectsize2_ptr = int (WINAPIV*)(struct _log_case_charselec... | 33.066667 | 123 | 0.766129 | lemkova |
7cc020304b6fdb6265d62ac7c1e96f9481564b8a | 938 | cpp | C++ | src/test/key_io_tests.cpp | Cryptario/tidecoin | 550b726eb7f39730086522676a9c74e40d672a81 | [
"MIT"
] | 30 | 2021-01-05T02:08:40.000Z | 2022-01-21T09:32:10.000Z | src/test/key_io_tests.cpp | Cryptario/tidecoin | 550b726eb7f39730086522676a9c74e40d672a81 | [
"MIT"
] | 8 | 2021-03-15T08:14:30.000Z | 2022-02-02T11:37:14.000Z | src/test/key_io_tests.cpp | Cryptario/tidecoin | 550b726eb7f39730086522676a9c74e40d672a81 | [
"MIT"
] | 20 | 2021-01-09T00:03:48.000Z | 2022-03-07T11:58:35.000Z | // Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/data/key_io_invalid.json.h>
#include <test/data/key_io_valid.json.h>
#include <key.h>
#include <key_io.h>
#in... | 22.333333 | 85 | 0.782516 | Cryptario |
7cc52759b3de12665267e5a58fde4d830ef7cc9f | 5,089 | cpp | C++ | src/cpp/llnms-core/llnms/networking/NetworkModule.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-core/llnms/networking/NetworkModule.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-core/llnms/networking/NetworkModule.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | 1 | 2020-12-16T09:28:26.000Z | 2020-12-16T09:28:26.000Z | /**
* @file NetworkModule.cpp
* @author Marvin Smith
* @date 2/14/2014
*/
#include "NetworkModule.hpp"
#include "../utilities/FilesystemUtilities.hpp"
#include "../utilities/StringUtilities.hpp"
#include <algorithm>
#include <exception>
#include <fstream>
#include <iostream>
namespace LLNMS{
namespace NETWO... | 25.832487 | 158 | 0.631951 | marvins |
7cc56016ff713dc1489092c1d3184994a4c9598b | 10,672 | cpp | C++ | main.cpp | msnh2012/ConvTest | e06b226b084bf4341c61a1dc33499820ca308228 | [
"MIT"
] | 4 | 2021-01-09T04:44:11.000Z | 2021-03-30T07:56:52.000Z | main.cpp | msnh2012/ConvTest | e06b226b084bf4341c61a1dc33499820ca308228 | [
"MIT"
] | null | null | null | main.cpp | msnh2012/ConvTest | e06b226b084bf4341c61a1dc33499820ca308228 | [
"MIT"
] | null | null | null | #include <iostream>
void demo0()
{
float F[] = {1,2,3,4,5,6,7,8,9};
float K[] = {1,2,3,4,5,6,7,8,9};
float O = 0;
int width = 3;
int height = 3;
int kSizeX = 3;
int kSizeY = 3;
for(int m=0;m<kSizeY;m++)
{
for(int n=0;n<kSizeX;n++)
{
O... | 26.09291 | 135 | 0.387744 | msnh2012 |
7cd4ce4c664a8c171d2761443fea8de0c21cbecb | 1,178 | cpp | C++ | A_Construct_a_Rectangle.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | A_Construct_a_Rectangle.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | A_Construct_a_Rectangle.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fileio freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout)
int main(){
// fileio;
int t;
cin>>t;
while(t--){
int a,b,c;
cin>>a>>b>>c;
if(a==b){
if(c%2==0){
cout<<"YES"<<endl;
... | 20.310345 | 82 | 0.270798 | jnvshubham7 |
7cd5d876ef31e358fe85ccf68ad1aab531d64e9f | 874 | cpp | C++ | ABC/ABC083/ABC083B.cpp | uzumal/AtCoder | 2d4bc326c29fb6bf1badcfd80077d9e2154e34de | [
"MIT"
] | null | null | null | ABC/ABC083/ABC083B.cpp | uzumal/AtCoder | 2d4bc326c29fb6bf1badcfd80077d9e2154e34de | [
"MIT"
] | null | null | null | ABC/ABC083/ABC083B.cpp | uzumal/AtCoder | 2d4bc326c29fb6bf1badcfd80077d9e2154e34de | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <typeinfo>
using namespace std;
int ctoi(const char c){
switch(c){
case '0': return 0;
case '1': return 1;
case '2': return 2;
case '3': return 3;
case '4': return 4;
case '5': return 5;
case '6': return 6;
... | 19.863636 | 46 | 0.451945 | uzumal |
7cd878581a40ae5c586908106a3dba84684497e7 | 4,541 | hpp | C++ | HugeCTR/include/embeddings/hybrid_embedding/infrequent_embedding.hpp | xjqbest/HugeCTR | 0b1c92d5e65891dfdd90d917bc6d520d0ca5d1e1 | [
"Apache-2.0"
] | 130 | 2021-10-11T11:55:28.000Z | 2022-03-31T21:53:07.000Z | HugeCTR/include/embeddings/hybrid_embedding/infrequent_embedding.hpp | xjqbest/HugeCTR | 0b1c92d5e65891dfdd90d917bc6d520d0ca5d1e1 | [
"Apache-2.0"
] | 72 | 2021-10-09T04:59:09.000Z | 2022-03-31T11:27:54.000Z | HugeCTR/include/embeddings/hybrid_embedding/infrequent_embedding.hpp | xjqbest/HugeCTR | 0b1c92d5e65891dfdd90d917bc6d520d0ca5d1e1 | [
"Apache-2.0"
] | 29 | 2021-11-03T22:35:01.000Z | 2022-03-30T13:11:59.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 39.833333 | 99 | 0.77516 | xjqbest |
7cdeb4460d486a542e8205abb8ec0ab35408eaef | 4,631 | cpp | C++ | src/ga.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | 1 | 2017-01-22T19:40:23.000Z | 2017-01-22T19:40:23.000Z | src/ga.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | src/ga.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010-2014 O01eg <o01eg@yandex.ru>
*
* This file is part of Genetic Function Programming.
*
* 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, inclu... | 27.565476 | 151 | 0.699849 | o01eg |
7ce17b972b385d40cecf41773175f4fbd21fef4a | 599 | cpp | C++ | Ritualberater/RuneLeaf.cpp | odom11/ritualberater | b5af60785f8a7b5ec2e0a6be53c4441cc38ba94d | [
"MIT"
] | null | null | null | Ritualberater/RuneLeaf.cpp | odom11/ritualberater | b5af60785f8a7b5ec2e0a6be53c4441cc38ba94d | [
"MIT"
] | null | null | null | Ritualberater/RuneLeaf.cpp | odom11/ritualberater | b5af60785f8a7b5ec2e0a6be53c4441cc38ba94d | [
"MIT"
] | null | null | null | #include "RuneLeaf.h"
RuneLeaf::RuneLeaf(const std::string& name, const int cost, AbstractRuneNode * parent) : AbstractRuneNode(name, parent), cost(cost), amount(0) {}
unsigned RuneLeaf::getAmount() const
{
return amount;
}
void RuneLeaf::setAmount(unsigned amount)
{
this->amount = amount;
}
unsigned int RuneLeaf... | 17.617647 | 145 | 0.711185 | odom11 |
7ce281184b7aaf30c5ff439efbfd0568330a5173 | 383 | cpp | C++ | unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "unit_tests/mocks/mock_aub_manager.h"
namespace OCLRT {
aub_stream::AubManager *createAubManager(uint32_t gfxFamily, uint32_t devicesCount, uint64_t memoryBankSize, bool localMemorySupported, const std::string &aubFileN... | 25.533333 | 169 | 0.762402 | PTS93 |
7ce64ea434b8f2935ddbe22dae2963306e0adae4 | 547 | cpp | C++ | P1012/P1012.cpp | zhouyium/LuoGu | 10038dd9876c95534c580da1c31ac2a9b0558df0 | [
"MIT"
] | null | null | null | P1012/P1012.cpp | zhouyium/LuoGu | 10038dd9876c95534c580da1c31ac2a9b0558df0 | [
"MIT"
] | null | null | null | P1012/P1012.cpp | zhouyium/LuoGu | 10038dd9876c95534c580da1c31ac2a9b0558df0 | [
"MIT"
] | null | null | null | //https://www.luogu.com.cn/problem/P1012
//P1012 拼数
#include <iostream>
#include <algorithm>
#include <string>
int main() {
int n;
std::cin >> n;
std::string arr[21];
int i, j;
for (i=0; i<n; i++) {
std::cin >> arr[i];
}
//排序
for (i=0; i<n; i++) {
for (j=i; j<n; j++) {... | 17.09375 | 50 | 0.404022 | zhouyium |
7ce661c900df5237bb05fb1e00e283b7b8c6a25b | 2,003 | cpp | C++ | C++/695.max-area-of-island.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/695.max-area-of-island.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/695.max-area-of-island.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
// version 1 : recursive
/*
vector<pair<int, int>> dir{{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
int maxAreaOfIsland(vector<vector<int>>& grid) {
if (grid.empty() || grid[0].empty()) {
return 0;
}
int m = grid.size(), n = grid[0].size(), res = 0;
... | 32.836066 | 85 | 0.34698 | WilliamZhaoz |
7ce6c903ac620a6a025f732d29d0252c0170cb45 | 3,694 | hpp | C++ | ml/deep_learning/propagation.hpp | stereomatchingkiss/ocv_libs | 1424ac2f8a2c034513483b3050d8138ca0a0ae3f | [
"FSFAP"
] | 18 | 2015-12-17T05:28:37.000Z | 2021-05-21T02:59:29.000Z | ml/deep_learning/propagation.hpp | stereomatchingkiss/ocv_libs | 1424ac2f8a2c034513483b3050d8138ca0a0ae3f | [
"FSFAP"
] | null | null | null | ml/deep_learning/propagation.hpp | stereomatchingkiss/ocv_libs | 1424ac2f8a2c034513483b3050d8138ca0a0ae3f | [
"FSFAP"
] | 8 | 2017-05-10T11:20:13.000Z | 2021-06-19T17:06:06.000Z | #ifndef PROPAGATION_HPP
#define PROPAGATION_HPP
#include <opencv2/core.hpp>
#include <Eigen/Dense>
#include "../utility/activation.hpp"
/*! \file propagation.hpp
\brief collection of propagation algorithms
*/
/*!
* \addtogroup ocv
* @{
*/
namespace ocv{
/*!
* \addtogroup ml
* @{
*/
namespace ml{
/*... | 32.403509 | 91 | 0.605847 | stereomatchingkiss |
7ce84c2deeeb615d8f4bbd4290b11e557a78c34a | 1,871 | cpp | C++ | Data Structures I (CS331)/EX(7-203) Linked list/EX7 merge two sorted linked lists..cpp | abdulmlik/Data-Structures-HW | 2886ae3357f9396bb2ea1d9c7128117eda96d665 | [
"BSD-2-Clause"
] | null | null | null | Data Structures I (CS331)/EX(7-203) Linked list/EX7 merge two sorted linked lists..cpp | abdulmlik/Data-Structures-HW | 2886ae3357f9396bb2ea1d9c7128117eda96d665 | [
"BSD-2-Clause"
] | null | null | null | Data Structures I (CS331)/EX(7-203) Linked list/EX7 merge two sorted linked lists..cpp | abdulmlik/Data-Structures-HW | 2886ae3357f9396bb2ea1d9c7128117eda96d665 | [
"BSD-2-Clause"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
using namespace std;
struct node
{
int data;
struct node* next;
};
void MoveNode(struct node** destRef, struct node** sourceRef);
struct node* SortedMerge(struct node* a, struct node* b)
{
struct node dummy;
struct node* ta... | 16.412281 | 62 | 0.541956 | abdulmlik |
7cef64ec74bfc0271831581002c37d133c2cb028 | 2,659 | hpp | C++ | include/libaopp/event_queue.hpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | include/libaopp/event_queue.hpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | include/libaopp/event_queue.hpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Matt Gigli
*
* 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... | 31.654762 | 79 | 0.731854 | mjgigli |
7cefce42a9809da9fe047a672b14df3b49b66b80 | 498 | cpp | C++ | XENTASK.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | XENTASK.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | XENTASK.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
long long a[n],b[n];
for (int i = 0; i < n; ++i)
{
cin>>a[i];
}
for (int i = 0; i < n; ++i)
{
cin>>b[i];
}
long long ans1=0,ans2=0;
for (int i = 0; i < n; ++i)
{
... | 13.459459 | 36 | 0.393574 | trehanarsh |
7cfa54cfd1a892878b5380ffa1f723fc964df6c8 | 270 | cpp | C++ | 1152.cpp | sat0317/BaekjoonOJ | c9acd973820ced3de4a26e5662641c16f7a9175b | [
"MIT"
] | 2 | 2020-12-07T16:34:16.000Z | 2021-09-26T05:59:04.000Z | 1152.cpp | sat0317/BaekjoonOJ | c9acd973820ced3de4a26e5662641c16f7a9175b | [
"MIT"
] | null | null | null | 1152.cpp | sat0317/BaekjoonOJ | c9acd973820ced3de4a26e5662641c16f7a9175b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int main(){
int n, i, cnt=1, imsi=0; char a[1000005]={};
gets(a);
n=strlen(a)-1;
if(a[0]==' ') imsi++;
for(i=0;i<n;i++){
if(a[i]==' ') cnt++;
}
if(cnt+1==imsi){
printf("0");
}
else printf("%d", cnt-imsi);
return 0;
}
| 15.882353 | 45 | 0.514815 | sat0317 |
cfac268a14c66674fa16f08fb4dd3414b77fbbf9 | 26 | cpp | C++ | sdl2/janggi/HistoryStack.cpp | pdpdds/SDL_YUZA | 8299672a70005a1b702cc7e3577aad4f8b31bec2 | [
"BSD-2-Clause"
] | null | null | null | sdl2/janggi/HistoryStack.cpp | pdpdds/SDL_YUZA | 8299672a70005a1b702cc7e3577aad4f8b31bec2 | [
"BSD-2-Clause"
] | null | null | null | sdl2/janggi/HistoryStack.cpp | pdpdds/SDL_YUZA | 8299672a70005a1b702cc7e3577aad4f8b31bec2 | [
"BSD-2-Clause"
] | null | null | null | #include "HistoryStack.h"
| 13 | 25 | 0.769231 | pdpdds |
cfb112aa84561bb5b561b2c354ffc9041bdac414 | 536 | hpp | C++ | builds/includes/helperOC/Grids/destroyGrid.hpp | mdoshi96/beacls | 860426ed1336d9539dea195987efcdd8a8276a1c | [
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD"
] | 30 | 2017-12-17T22:57:50.000Z | 2022-01-30T17:06:34.000Z | builds/includes/helperOC/Grids/destroyGrid.hpp | codingblazes/beacls | 6c1d685ee00e3b39d8100c4a170a850682679abc | [
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-03-24T06:18:16.000Z | 2017-04-04T16:16:06.000Z | builds/includes/helperOC/Grids/destroyGrid.hpp | codingblazes/beacls | 6c1d685ee00e3b39d8100c4a170a850682679abc | [
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-07-06T01:47:21.000Z | 2021-07-23T15:50:34.000Z | #ifndef __DESTROYGRID_hpp__
#define __DESTROYGRID_hpp__
// Mo Chen, 2016-04-18
// Ken Tanabe, 2016-08-05
//! Prefix to generate Visual C++ DLL
#ifdef _MAKE_VC_DLL
#define PREFIX_VC_DLL __declspec(dllexport)
//! Don't add prefix, except dll generating
#else
#define PREFIX_VC_DLL
#endif
namespace levels... | 17.290323 | 43 | 0.710821 | mdoshi96 |
cfb1202543b6cfbf1bd81ea14c8754894a4cd615 | 3,248 | cpp | C++ | common/DebugWriter.cpp | pinterf/AviSynthCUDAFilters | 5d5f1a8fdccc52642ad213486127b7e0a034fb16 | [
"MIT"
] | 9 | 2021-02-08T17:24:31.000Z | 2022-02-03T21:00:08.000Z | common/DebugWriter.cpp | pinterf/AviSynthCUDAFilters | 5d5f1a8fdccc52642ad213486127b7e0a034fb16 | [
"MIT"
] | null | null | null | common/DebugWriter.cpp | pinterf/AviSynthCUDAFilters | 5d5f1a8fdccc52642ad213486127b7e0a034fb16 | [
"MIT"
] | 1 | 2022-02-13T15:11:06.000Z | 2022-02-13T15:11:06.000Z |
#define NOMINMAX
#include <Windows.h>
#include "DebugWriter.h"
#include <stdio.h>
#include <string>
#include <memory>
bool FileExists(const char *fname)
{
FILE *file;
if (file = fopen(fname, "r")) {
fclose(file);
return true;
}
return false;
}
static std::string GetUniqueFileName(... | 32.808081 | 166 | 0.661638 | pinterf |
cfc1860d7363e26e741f08e63bc6c0992bbb25e7 | 149,205 | cpp | C++ | twain-v2/support/twain_dsm.cpp | miyako/4d-plugin-twain-v2 | b12641250c4522a2a1e0c9c36f86dfe10e34c903 | [
"MIT"
] | null | null | null | twain-v2/support/twain_dsm.cpp | miyako/4d-plugin-twain-v2 | b12641250c4522a2a1e0c9c36f86dfe10e34c903 | [
"MIT"
] | 1 | 2019-10-07T14:36:39.000Z | 2019-10-07T16:24:46.000Z | twain-v2/support/twain_dsm.cpp | miyako/4d-plugin-twain-v2 | b12641250c4522a2a1e0c9c36f86dfe10e34c903 | [
"MIT"
] | null | null | null | #include "twain_dsm.h"
void twain_get_option_value_name(TW_UINT16 cap, TW_INT32 item, Json::Value& value) {
char str[CAP_VALUE_BUF_SIZE];
memset(str, 0, sizeof(str));
BOOL string_or_constant_value = TRUE;
switch (cap)
{
//convert to constant
#if USE_TWAIN_DSM
case ICAP_AUTOSIZE:
{
switch (... | 27.402204 | 114 | 0.550102 | miyako |
cfc6913d50c60734473a89636303d95835fb0cab | 5,428 | cpp | C++ | modules/segmentation/src/smooth_Euclidean_segmenter.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/segmentation/src/smooth_Euclidean_segmenter.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/segmentation/src/smooth_Euclidean_segmenter.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | #include <pcl/common/angles.h>
#include <v4r/common/miscellaneous.h>
#include <v4r/segmentation/smooth_Euclidean_segmenter.h>
namespace v4r {
template <typename PointT>
void SmoothEuclideanSegmenter<PointT>::segment() {
size_t max_pts_per_cluster = std::numeric_limits<int>::max();
clusters_.clear();
CHECK(sce... | 34.35443 | 114 | 0.616065 | v4r-tuwien |
cfc7d415da8288cba7eb019a7bfd61b997165bef | 599 | cpp | C++ | src/ComposerGUI/composer/package/form/delegate/BaseDelegate.cpp | composer-gui/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | 13 | 2019-04-01T07:54:05.000Z | 2022-03-27T16:55:59.000Z | src/ComposerGUI/composer/package/form/delegate/BaseDelegate.cpp | informaticacba/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | null | null | null | src/ComposerGUI/composer/package/form/delegate/BaseDelegate.cpp | informaticacba/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T16:56:02.000Z | 2022-03-27T16:56:02.000Z | #include "BaseDelegate.h"
namespace composer_gui
{
namespace composer
{
namespace package
{
namespace form
{
namespace delegate
{
void BaseDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
{
// stub
Q_UNUSED(editor);
Q_UNUSED(model);
Q_UNUSED(index);
}... | 16.189189 | 124 | 0.714524 | composer-gui |
cfd16aa39895e7a57c68a60906806cf4d9060967 | 2,283 | hpp | C++ | source/canvas/Scene.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/canvas/Scene.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/canvas/Scene.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | #pragma once
#include <GLCallback.hpp>
#include <RD.hpp>
#include <OriginLLA.hpp>
#include <Skybox.hpp>
#include <GroundPlane.hpp>
#include <HumanInterface.hpp>
#include <VehicleManager.hpp>
class Scene: public GLCallback {
public:
glm::dvec3 renderingOffset; ///< The rendering offset (OpenGL-frame... | 30.039474 | 198 | 0.52431 | RobertDamerius |
cfd215b089622d7347cc037149c365df4d88b98e | 551 | hpp | C++ | include/selection.hpp | SimonRussia/COURSEWORK_fixed | 8cd58f151e5bcddb03ed98b27e27cea0b769d98f | [
"MIT"
] | null | null | null | include/selection.hpp | SimonRussia/COURSEWORK_fixed | 8cd58f151e5bcddb03ed98b27e27cea0b769d98f | [
"MIT"
] | null | null | null | include/selection.hpp | SimonRussia/COURSEWORK_fixed | 8cd58f151e5bcddb03ed98b27e27cea0b769d98f | [
"MIT"
] | null | null | null | // SELECTION.HPP
#include <iostream>
#include <vector>
template <typename RandomAccessIterator>
void selection_sort(RandomAccessIterator left, RandomAccessIterator right) {
for (RandomAccessIterator iter1 = left; iter1 != (right - 1); iter1++) {
RandomAccessIterator min = iter1;
for (RandomAccess... | 30.611111 | 81 | 0.598911 | SimonRussia |
cfd444ae7a9ee096911fd6285cd5f37c0d95d956 | 434 | cc | C++ | src/StackedBlock/Control/StopBlock.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 11 | 2020-06-01T02:26:07.000Z | 2022-03-24T09:12:49.000Z | src/StackedBlock/Control/StopBlock.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 4 | 2020-06-01T14:48:46.000Z | 2020-09-17T16:43:33.000Z | src/StackedBlock/Control/StopBlock.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 2 | 2020-06-05T18:14:44.000Z | 2021-08-13T03:48:17.000Z | #include "StackedBlock/Control/StopBlock.h"
#include "NestedBlock/RoundBlock/Constant.h"
StopBlock::StopBlock(std::shared_ptr<Constant> opt) : option(opt) {}
void StopBlock::exec() const
{
if(option->getString()=="all" || option->getString()=="this script")
{
throw StopBlockCalledException();
}
}
... | 24.111111 | 72 | 0.693548 | khuebeo |
cfe1ef19aaeb68d68f76160d1d92224114f6bc4e | 4,962 | cpp | C++ | Server/src/Pages/UsersList.cpp | siisgoo/siisty | 66103c54e0d1b35b88177c290e2bf60012607309 | [
"MIT"
] | null | null | null | Server/src/Pages/UsersList.cpp | siisgoo/siisty | 66103c54e0d1b35b88177c290e2bf60012607309 | [
"MIT"
] | null | null | null | Server/src/Pages/UsersList.cpp | siisgoo/siisty | 66103c54e0d1b35b88177c290e2bf60012607309 | [
"MIT"
] | null | null | null | #include "Pages/Users/UsersList.hpp"
#include "ui_UsersList.h"
#include <QAction>
#include <qnamespace.h>
UsersList::UsersList(const QMap<Database::RoleId, Database::Driver::role_set>& roles, QWidget *parent)
: QWidget(parent),
ui(new Ui::UsersList),
_usersWaiter(new Database::DriverAssistant),
... | 36.485294 | 136 | 0.548771 | siisgoo |
cfe8884fb75a0abd7db0f86070c02919fd940de3 | 4,525 | cpp | C++ | Shader/NormalRenderer.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | Shader/NormalRenderer.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | Shader/NormalRenderer.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | 1 | 2022-02-03T08:09:03.000Z | 2022-02-03T08:09:03.000Z | #include "stdafx.h"
#include "NormalRenderer.h"
#include <sstream>
using namespace Crystal::Math;
using namespace Crystal::Graphics;
using namespace Crystal::Shader;
void NormalBuffer::add(const Vector3d<float>& position, const Vector3d<float>& normal, const ColorRGBA<float>& color)
{
this->position.add(... | 30.782313 | 118 | 0.676464 | PremiumGraphicsCodes |
cfeb18776b9b59f40fc9441765d3ae3af847a120 | 51 | hpp | C++ | src/boost_spirit_home_x3_directive_skip.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_x3_directive_skip.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_x3_directive_skip.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/x3/directive/skip.hpp>
| 25.5 | 50 | 0.784314 | miathedev |
cff07859889f0d027fa62da168a82bdd58bc24b9 | 2,670 | cpp | C++ | software/arduino/SensorDemo/lib/MyCst816s/CST816S.cpp | Ualker/T-Watch-2021 | 741e29740fd854be6b1036637b5f1dce4b428bb2 | [
"MIT"
] | 34 | 2021-08-10T11:12:15.000Z | 2022-03-30T11:57:15.000Z | software/arduino/SensorDemo/lib/MyCst816s/CST816S.cpp | Ualker/T-Watch-2021 | 741e29740fd854be6b1036637b5f1dce4b428bb2 | [
"MIT"
] | 2 | 2021-10-03T23:58:16.000Z | 2022-01-11T02:01:58.000Z | software/arduino/SensorDemo/lib/MyCst816s/CST816S.cpp | Ualker/T-Watch-2021 | 741e29740fd854be6b1036637b5f1dce4b428bb2 | [
"MIT"
] | 11 | 2021-10-02T05:17:39.000Z | 2022-03-30T11:59:41.000Z | #include <Wire.h>
#include "CST816S.h"
// Write register values to chip
void CST816S::_writeReg(uint8_t reg, uint8_t *data, uint8_t len)
{
_i2cPort->beginTransmission(_address);
_i2cPort->write(reg);
for (uint8_t i = 0; i < len; i++)
{
_i2cPort->write(data[i]);
}
_i2cPort->endTransmission();
}
// read registe... | 19.489051 | 74 | 0.668165 | Ualker |
320100ff5a27d461564894af12821d780c2e310a | 1,605 | cpp | C++ | online-judge/10114.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | online-judge/10114.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | online-judge/10114.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_map>
using namespace std;
float calculate_months(
int duration_months,
float down_payment,
float amount_loan,
int depr_count
) {
float amount_with_depr = amount_loan + down_payment;
float amount_with_paid = amount_loan;
float monthly_pay = amoun... | 25.47619 | 84 | 0.598754 | kirillgashkov |
32035fe4b4bc342eae7759487dadc41b3dcacda5 | 5,561 | cpp | C++ | sqlite.cpp | felaugmar/gd-sqlite | 29921dabb52b08788cfd659551ea78615cea935a | [
"MIT"
] | 1 | 2020-07-05T13:39:40.000Z | 2020-07-05T13:39:40.000Z | sqlite.cpp | felaugmar/gd-sqlite | 29921dabb52b08788cfd659551ea78615cea935a | [
"MIT"
] | null | null | null | sqlite.cpp | felaugmar/gd-sqlite | 29921dabb52b08788cfd659551ea78615cea935a | [
"MIT"
] | null | null | null | #include "sqlite.h"
#include "database.h"
SQLite *SQLite::singleton = NULL;
SQLite *SQLite::get_singleton() {
return singleton;
}
String SQLite::errstr(int result_code) const {
return sqlite3_errstr(result_code);
}
String SQLite::version() const {
return SQLITE_VERSION;
}
uint32_t SQLite::version_number() cons... | 30.387978 | 108 | 0.830067 | felaugmar |
3203c1934a479ee14d64d08b5ce229a286b82378 | 1,027 | hpp | C++ | nacl/graph/spfa.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | 3 | 2021-08-31T17:51:01.000Z | 2021-11-13T16:22:25.000Z | nacl/graph/spfa.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | nacl/graph/spfa.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | struct SPFA {
static const int maxn = 1010, INF = 1e9;
int dis[maxn];
bitset<maxn> inq, inneg;
queue<int> q, tq;
vector<pii> v[maxn];
void make_edge(int s, int t, int w) {
v[s].emplace_back(t, w);
}
void dfs(int a) {
inneg[a] = 1;
for (pii i : v[a])
if (!inneg[i.F]) dfs(i.F);
}
boo... | 23.340909 | 54 | 0.439143 | ToxicPie |
3209b2cad585d1b7f719f40fe3eebfe11ab57d84 | 578 | cpp | C++ | src/Engine/Engine.cpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | src/Engine/Engine.cpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | src/Engine/Engine.cpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | #include <haz/Engine/Engine.hpp>
#include <haz/GameObject/GameObject.hpp>
#include <haz/Tools/Time.hpp>
BEG_NAMESPACE_HAZ
Engine::~Engine() {
Engine::reset();
}
Time const& Engine::time () {
return *get()._time;
}
void Engine::reset() {
GameObject::destroyAll();
if (get()._time != nullptr) {
... | 16.055556 | 40 | 0.591696 | Hazurl |
32172762f4a1853f728f5af8987d401b38b2e5f4 | 348 | cpp | C++ | solutions/leetcode/1221. Split a String in Balanced Strings.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | 1 | 2021-08-12T14:53:37.000Z | 2021-08-12T14:53:37.000Z | solutions/leetcode/1221. Split a String in Balanced Strings.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | solutions/leetcode/1221. Split a String in Balanced Strings.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | static int __=[](){std::ios::sync_with_stdio(false);return 1000;}();
class Solution {
public:
int balancedStringSplit(string s) {
int sum = 0 , c = 0;
for(int i=0 ; i<s.size() ; i++){
if(s[i]=='L') sum--;
else sum ++ ;
if(!sum)c++;
}
... | 23.2 | 68 | 0.422414 | MohanedAshraf |
32177c9c8fd88caf048d0d3e8f53969ed24e714b | 17,611 | cpp | C++ | d-collide/narrowphase/intersectionhelpers.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | d-collide/narrowphase/intersectionhelpers.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | d-collide/narrowphase/intersectionhelpers.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-users@lists.sourceforge.net *
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 40.392202 | 87 | 0.564193 | ColinGilbert |
322481eb96f697dd11210553d8186567094dc7ed | 2,363 | cpp | C++ | main.cpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | main.cpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | main.cpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "AVLWordTree.hpp"
using namespace std;
int main()
{
AVLWordTree tree;
// an empty tree
cout << "Is tree empty? " << boolalpha << tree.isEmpty() << endl;
tree.insert("fig");
// fig
cout << "Is tree empty? " << boolalpha << tree.isEmpty() << endl... | 27.16092 | 96 | 0.490478 | SinaRaoufi |
322538eaab9bfdc0586d6d93e37ef07041b18fe1 | 5,040 | hpp | C++ | src/animation.hpp | texierp/easysplash | 8885ecad917e4b06da4c447edbd48263a9315955 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-04-30T22:09:32.000Z | 2021-04-30T22:09:32.000Z | src/animation.hpp | texierp/easysplash | 8885ecad917e4b06da4c447edbd48263a9315955 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/animation.hpp | texierp/easysplash | 8885ecad917e4b06da4c447edbd48263a9315955 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* EasySplash - tool for animated splash screens
* Copyright (C) 2014 O.S. Systems Software LTDA.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/
#ifndef EASYSPLASH_ANIMATION_HPP
#define EASYSPLASH_ANIMATION_HPP
#include <cstddef>
#include <vector>
#include <iostream>
#include <functional>
#include <condit... | 31.111111 | 124 | 0.763095 | texierp |
322938883b8d8ab44d7588fd247252f0a2d4ae88 | 13,796 | cpp | C++ | src/arboretum/stSeqNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stSeqNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stSeqNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2003-2017 GBDI-ICMC-USP <caetano@icmc.usp.br>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 31.788018 | 89 | 0.557553 | marcosivni |
322adaa924d386a395e11b59cc96dc8a89a0460e | 1,916 | cc | C++ | test/server/listener_socket_option_impl_test.cc | wrowe/envoy | e785478be30a55db518c8cf1d9366859cb74d216 | [
"Apache-2.0"
] | null | null | null | test/server/listener_socket_option_impl_test.cc | wrowe/envoy | e785478be30a55db518c8cf1d9366859cb74d216 | [
"Apache-2.0"
] | null | null | null | test/server/listener_socket_option_impl_test.cc | wrowe/envoy | e785478be30a55db518c8cf1d9366859cb74d216 | [
"Apache-2.0"
] | null | null | null | #include "server/listener_socket_option_impl.h"
#include "test/common/network/socket_option_test.h"
namespace Envoy {
namespace Server {
class ListenerSocketOptionImplTest : public Network::SocketOptionTest {
public:
void testSetSocketOptionSuccess(ListenerSocketOptionImpl& socket_option, int socket_level,
... | 43.545455 | 100 | 0.716075 | wrowe |
7a8c836a34b62a05f010a32b78575184a82313cf | 458 | cpp | C++ | test/example.cpp | dermojo/spsl | 68f9ae6f50f7b94601f0b8e7cbc47f553345e836 | [
"MIT"
] | null | null | null | test/example.cpp | dermojo/spsl | 68f9ae6f50f7b94601f0b8e7cbc47f553345e836 | [
"MIT"
] | 25 | 2016-11-06T20:51:06.000Z | 2022-02-26T15:43:17.000Z | test/example.cpp | dermojo/spsl | 68f9ae6f50f7b94601f0b8e7cbc47f553345e836 | [
"MIT"
] | 1 | 2019-07-16T00:37:11.000Z | 2019-07-16T00:37:11.000Z | /**
* @file Special Purpose Strings Library: example.cpp
* @author Daniel Evers
* @brief Simple usage examples
* @license MIT
*/
#include <spsl.hpp>
int main(int, const char**)
{
spsl::ArrayString<64> a1("I'm a stack-based string and can store 64 characters + NUL");
spsl::ArrayStringW<32> a2(L"Wide... | 25.444444 | 91 | 0.655022 | dermojo |
7a95a74430682830236a4a74ef2832ad2cb507e0 | 6,853 | hpp | C++ | src/widgets/widget_layer_spacefill.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 2 | 2021-11-21T23:26:00.000Z | 2021-12-18T10:33:17.000Z | src/widgets/widget_layer_spacefill.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 5 | 2021-11-28T18:26:25.000Z | 2021-12-06T08:15:06.000Z | src/widgets/widget_layer_spacefill.hpp | DisQS/animol-viewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <array>
#include <type_traits>
#include "plate.hpp"
#include "widgets/widget_spheres.hpp"
#include "widgets/anim_alpha.hpp"
#include "widget_layer.hpp"
namespace animol {
template<class M>
class widget_layer_spacefill : public widget_layer<M>
{
public:
~widget_layer_spacefill()
{
... | 26.66537 | 150 | 0.584562 | DisQS |
7a95c9cf5b65453dff00f81258d0de83284eecb4 | 2,130 | cpp | C++ | test/StringTest.cpp | maxvu/busboy | 4faed5638e81003d99a68ed68c0db32ffca2be9d | [
"MIT"
] | 1 | 2016-04-11T21:48:54.000Z | 2016-04-11T21:48:54.000Z | test/StringTest.cpp | maxvu/busboy | 4faed5638e81003d99a68ed68c0db32ffca2be9d | [
"MIT"
] | null | null | null | test/StringTest.cpp | maxvu/busboy | 4faed5638e81003d99a68ed68c0db32ffca2be9d | [
"MIT"
] | null | null | null | #include "catch/catch.hpp"
#include "String.hpp"
using busboy::String;
TEST_CASE( "String access", "[String]" ) {
SECTION( "Construction, equality" ) {
String one = "one";
String two = "two";
CHECK( one.getLength() == 3 );
CHECK( one.getCapacity() >= 3 );
CHECK( one.oper... | 22.903226 | 69 | 0.429108 | maxvu |
7a9b48579ee79e754b24089e0ce91447d1271350 | 1,112 | cpp | C++ | SDKs/CryCode/3.7.0/GameDll/uberfiles/GameSDK_7_uber.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/GameDll/uberfiles/GameSDK_7_uber.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/GameDll/uberfiles/GameSDK_7_uber.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #ifdef _DEVIRTUALIZE_
#include <GameSDK_devirt_defines.h>
#endif
#include "../Utility/AttachmentUtils.cpp"
#include "../PlayerAnimation.cpp"
#include "../StickyProjectile.cpp"
#include "../UI/HUD/HUDControllerInputIcons.cpp"
#include "../UI/HUD/HUDEventDispatcher.cpp"
#include "../UI/HUD/HUDEventTranslator.cpp"
#incl... | 32.705882 | 54 | 0.742806 | amrhead |
7aa1c363983585b236897b78568c1da965c70ff9 | 385 | hpp | C++ | falcon/mpl/key_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/mpl/key_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/mpl/key_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_MPL_KEY_TYPE_HPP
#define FALCON_MPL_KEY_TYPE_HPP
#include <falcon/mpl/key_type_fwd.hpp>
#include <falcon/mpl/sequence_tag.hpp>
namespace falcon {
namespace mpl {
template<typename AssociativeSequence, typename Key>
struct key_type
{
using type = key_type_impl<sequence_tag_t<AssociativeSequence>>
:... | 18.333333 | 65 | 0.794805 | jonathanpoelen |
7aa35115ccb108f020cb6952ce61080d7277556b | 2,489 | cpp | C++ | test/algorithms/dp/test_knapsack_problem.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | test/algorithms/dp/test_knapsack_problem.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | test/algorithms/dp/test_knapsack_problem.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/knapsack_problem.hpp"
#include "common/equality.hpp"
BOOST_AUTO_TEST_SUITE(KnapsakProblem)
BOOST_AUTO_TEST_CASE(greedy_test)
{
{
std::vector<std::pair<uint32_t, uint32_t>> items = {
{10, 10}, {5, 100}, {15, 3}
};
uint... | 29.630952 | 85 | 0.586581 | iamantony |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.