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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
636cd41bc1e72bf99ab64fb7a368b8d51bc9edd8 | 1,863 | cpp | C++ | Tuniac1/NFN_Exporter/NumberedFileExporter.cpp | Harteex/Tuniac | dac98a68c1b801b7fc82874aad16cc8adcabb606 | [
"BSD-3-Clause"
] | 3 | 2022-01-05T08:47:51.000Z | 2022-01-06T12:42:18.000Z | Tuniac1/NFN_Exporter/NumberedFileExporter.cpp | Harteex/Tuniac | dac98a68c1b801b7fc82874aad16cc8adcabb606 | [
"BSD-3-Clause"
] | null | null | null | Tuniac1/NFN_Exporter/NumberedFileExporter.cpp | Harteex/Tuniac | dac98a68c1b801b7fc82874aad16cc8adcabb606 | [
"BSD-3-Clause"
] | 1 | 2022-01-06T16:12:58.000Z | 2022-01-06T16:12:58.000Z | #include "StdAfx.h"
#include "NumberedFileExporter.h"
CNumberedFileExporter::CNumberedFileExporter(void)
{
}
CNumberedFileExporter::~CNumberedFileExporter(void)
{
}
LPTSTR CNumberedFileExporter::GetName(void)
{
return TEXT("Numbered File Exporter");
}
void CNumberedFileExporter::Destory(void)
{
delete this;
... | 20.7 | 212 | 0.765432 | Harteex |
636d8faf922ac3c55de0aaf64a883266b3778283 | 4,184 | cpp | C++ | coast/wdbase/ServerLFThreadPoolsManager.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/wdbase/ServerLFThreadPoolsManager.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/wdbase/ServerLFThreadPoolsManager.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 27.346405 | 102 | 0.769598 | zer0infinity |
636ee9507dff33daf93aa51f732e5acb3874fcbe | 1,040 | hpp | C++ | include/ce2/asset/prefab.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/asset/prefab.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | include/ce2/asset/prefab.hpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
/* Prefab class
* A holder of scene objects
* Saves a configuration of objects
* that can be instantiated into the scene
*/
class _Prefab : public _Asset { CE_OBJECT_COMMON
public:
class _ObjBase;
class _ObjTreeBase;
typedef std::function<Prefab(const... | 22.12766 | 70 | 0.748077 | chokomancarr |
636f587683123d6d775c7f54b0782efecbf89a75 | 2,883 | cc | C++ | src/publishclient/testpublishclient.cc | wangzhezhe/observerchain | faa8fb9d845a2720704538f01e1e7597083d4510 | [
"MIT"
] | null | null | null | src/publishclient/testpublishclient.cc | wangzhezhe/observerchain | faa8fb9d845a2720704538f01e1e7597083d4510 | [
"MIT"
] | null | null | null | src/publishclient/testpublishclient.cc | wangzhezhe/observerchain | faa8fb9d845a2720704538f01e1e7597083d4510 | [
"MIT"
] | null | null | null | /*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 27.198113 | 82 | 0.677072 | wangzhezhe |
6375d48c6b603142842dd3cfe1637313ef3fef9a | 1,553 | cpp | C++ | Gems/EMotionFX/Code/Tests/TestAssetCode/TestActorAssets.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-12T14:13:45.000Z | 2022-03-12T14:13:45.000Z | Gems/EMotionFX/Code/Tests/TestAssetCode/TestActorAssets.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 3 | 2021-09-08T03:41:27.000Z | 2022-03-12T01:01:29.000Z | Gems/EMotionFX/Code/Tests/TestAssetCode/TestActorAssets.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/IO/SystemFile.h>
#include <AzCore/std/containers/vector.h>
#include <AzFramework/... | 36.97619 | 147 | 0.701867 | cypherdotXd |
63788e10e9f9ae1a431836d21577228f7f8afa36 | 2,574 | cpp | C++ | src/main/resources/templates/c++11/XmlPGen/impl/Log.cpp | BWeng20/XmlPGen | 280f1dace7c222a9446670b60a6e0f905e9abb2d | [
"MIT"
] | null | null | null | src/main/resources/templates/c++11/XmlPGen/impl/Log.cpp | BWeng20/XmlPGen | 280f1dace7c222a9446670b60a6e0f905e9abb2d | [
"MIT"
] | null | null | null | src/main/resources/templates/c++11/XmlPGen/impl/Log.cpp | BWeng20/XmlPGen | 280f1dace7c222a9446670b60a6e0f905e9abb2d | [
"MIT"
] | null | null | null | /* Part of XmlPGen
* Copyright (c) 2013-2016 Bernd Wengenroth
* Licensed under the MIT License.
* See LICENSE file for details.
*/
#include "../Log.h"
#include <cstdio>
#include <cstdarg>
#include <time.h>
#include <iomanip>
namespace XmlPGen
{
::std::string Log::currentTime()
{
::std::string s;
... | 23.614679 | 115 | 0.491064 | BWeng20 |
6378afe632187919bb9e47b4fb4b5b5915cd3ae1 | 3,130 | cpp | C++ | src/Shay/AABB.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Shay/AABB.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | src/Shay/AABB.cpp | MajorArkwolf/stonks | 5671f7811f19af33450e5fd07ab61c700f71ee69 | [
"0BSD"
] | null | null | null | #include "AABB.hpp"
using Shay::AABB;
/**
* @brief Sets the max X value for the bounding box
* @param tempX The maxmimum x-coordinate
*/
void AABB::SetMaxX(GLfloat tempX) {
if (this->currentAABB >= m_BBox.size()) {
m_BBox.push_back({});
}
m_BBox[this->currentAABB].max.x = tempX;
}
/**
* @brie... | 22.198582 | 59 | 0.650479 | MajorArkwolf |
637df57ae3ae75940cce55398bb82674b91ca161 | 4,887 | cxx | C++ | Testing/Unit/sitkSystemInformationTest.cxx | nathantspencer/SimpleElastix | a9641c1197e58a4ff614145e9ba5ca43c2833ebf | [
"Apache-2.0"
] | 576 | 2015-01-14T12:47:35.000Z | 2022-03-31T07:45:52.000Z | Testing/Unit/sitkSystemInformationTest.cxx | nathantspencer/SimpleElastix | a9641c1197e58a4ff614145e9ba5ca43c2833ebf | [
"Apache-2.0"
] | 874 | 2015-01-15T10:19:16.000Z | 2022-03-29T16:51:12.000Z | Testing/Unit/sitkSystemInformationTest.cxx | nathantspencer/SimpleElastix | a9641c1197e58a4ff614145e9ba5ca43c2833ebf | [
"Apache-2.0"
] | 186 | 2015-01-16T15:39:27.000Z | 2022-03-21T17:22:35.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 29.618182 | 94 | 0.548394 | nathantspencer |
6380f392b8bd5dfc9a0f3473430cc68dc3f7508f | 2,301 | cpp | C++ | Entry 0 - Call to Adventure/ex4_2_daily_planner.cpp | tensorush/Cpp-Deep-Dive | fa2aa46b906662cf29b48359a2f17c3ddc1b1792 | [
"MIT"
] | 1 | 2021-01-24T22:42:29.000Z | 2021-01-24T22:42:29.000Z | Entry 0 - Call to Adventure/ex4_2_daily_planner.cpp | geotrush/Cpp-Deep-Dive | fa2aa46b906662cf29b48359a2f17c3ddc1b1792 | [
"MIT"
] | null | null | null | Entry 0 - Call to Adventure/ex4_2_daily_planner.cpp | geotrush/Cpp-Deep-Dive | fa2aa46b906662cf29b48359a2f17c3ddc1b1792 | [
"MIT"
] | 1 | 2021-09-12T11:41:35.000Z | 2021-09-12T11:41:35.000Z | /*
Input
The input stream contains an integer q (number of queries)
as well as some sequence of the following queries (guaranteed to be valid):
- "ADD i t": add task t on the i-th day (indexed from '1') of the current month;
- "DUMP i": check all tasks planned on the i-th day (indexed from '1');
- "NEXT": transfer all ... | 31.094595 | 87 | 0.575837 | tensorush |
6381a2aec8a5a08b9d538961656d22ab3b982ebb | 1,183 | cpp | C++ | RisLib/tsThreadLocal.cpp | chrishoen/Dev_RisLibLx | ca68b7d1a928ba9adb64c5e4996c4ec2e01de1ff | [
"MIT"
] | null | null | null | RisLib/tsThreadLocal.cpp | chrishoen/Dev_RisLibLx | ca68b7d1a928ba9adb64c5e4996c4ec2e01de1ff | [
"MIT"
] | null | null | null | RisLib/tsThreadLocal.cpp | chrishoen/Dev_RisLibLx | ca68b7d1a928ba9adb64c5e4996c4ec2e01de1ff | [
"MIT"
] | null | null | null | /*==============================================================================
==============================================================================*/
//******************************************************************************
//**************************************************************************... | 32.861111 | 80 | 0.172443 | chrishoen |
6382d4793f4f3841a7710b5e0e238d2d79a7e4f5 | 25,902 | cpp | C++ | orca/gporca/libnaucrates/src/statistics/CBucket.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 3 | 2017-12-10T16:41:21.000Z | 2020-07-08T12:59:12.000Z | orca/gporca/libnaucrates/src/statistics/CBucket.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | orca/gporca/libnaucrates/src/statistics/CBucket.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 4 | 2017-12-10T16:41:35.000Z | 2020-11-28T12:20:30.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CBucket.cpp
//
// @doc:
// Implementation of histogram bucket
//
// @owner:
//
//
// @test:
//
//
//----------------------------------------------------------------... | 23.293165 | 131 | 0.579029 | vitessedata |
6388478c98205199031129eabe5f02ca67748796 | 1,207 | hpp | C++ | include/Library/Physics/Time.hpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | include/Library/Physics/Time.hpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | include/Library/Physics/Time.hpp | cowlicks/library-physics | dd314011132430fcf074a9a1633b24471745cf92 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library ▸ Physics
/// @file Library/Physics/Time.hpp
/// @author Lucas Brémond <lucas@loftorbital.com>
/// @license ... | 46.423077 | 160 | 0.339685 | cowlicks |
638a1b59b9be595225712a7150cd96d9698d2e34 | 2,498 | cpp | C++ | tests/cpp-tests/Classes/VRTest/VRTest.cpp | DelinWorks/adxe | 0f1ba3a086d744bb52e157e649fa986ae3c7ab05 | [
"MIT"
] | null | null | null | tests/cpp-tests/Classes/VRTest/VRTest.cpp | DelinWorks/adxe | 0f1ba3a086d744bb52e157e649fa986ae3c7ab05 | [
"MIT"
] | 4 | 2020-10-22T05:45:37.000Z | 2020-10-23T12:11:44.000Z | tests/cpp-tests/Classes/VRTest/VRTest.cpp | DelinWorks/adxe | 0f1ba3a086d744bb52e157e649fa986ae3c7ab05 | [
"MIT"
] | 1 | 2020-10-22T03:17:28.000Z | 2020-10-22T03:17:28.000Z | /****************************************************************************
Copyright (c) 2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
https://adxeproject.github.io/
Permission is hereby granted, free of charge, to any person obtain... | 31.620253 | 78 | 0.617294 | DelinWorks |
638c611b543c3ee35594ac1b41efdf74566d2021 | 2,473 | cc | C++ | egserver.cc | jdb19937/tewel | e2dc25c0998b2bf2763cd68ff66691e0c9f86928 | [
"MIT"
] | null | null | null | egserver.cc | jdb19937/tewel | e2dc25c0998b2bf2763cd68ff66691e0c9f86928 | [
"MIT"
] | null | null | null | egserver.cc | jdb19937/tewel | e2dc25c0998b2bf2763cd68ff66691e0c9f86928 | [
"MIT"
] | null | null | null | #define __MAKEMORE_EGSERVER_CC__ 1
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/fcntl.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/signal.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <string.h>
#incl... | 20.608333 | 138 | 0.59078 | jdb19937 |
b0ccfed4d8592390066a586e72f4df3e732369d1 | 3,440 | cpp | C++ | SurgSim/Devices/MultiAxis/linux/FileDescriptor.cpp | dbungert/opensurgsim | bd30629f2fd83f823632293959b7654275552fa9 | [
"Apache-2.0"
] | 24 | 2015-01-19T16:18:59.000Z | 2022-03-13T03:29:11.000Z | SurgSim/Devices/MultiAxis/linux/FileDescriptor.cpp | dbungert/opensurgsim | bd30629f2fd83f823632293959b7654275552fa9 | [
"Apache-2.0"
] | 3 | 2018-12-21T14:54:08.000Z | 2022-03-14T12:38:07.000Z | SurgSim/Devices/MultiAxis/linux/FileDescriptor.cpp | dbungert/opensurgsim | bd30629f2fd83f823632293959b7654275552fa9 | [
"Apache-2.0"
] | 8 | 2015-04-10T19:45:36.000Z | 2022-02-02T17:00:59.000Z | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICE... | 20.598802 | 95 | 0.730523 | dbungert |
b0d129f89a08b8df69b1999afa3f85faba544a80 | 1,171 | hpp | C++ | include/uitsl/fetch/detect_tar.hpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 15 | 2020-07-31T23:06:09.000Z | 2022-01-13T18:05:33.000Z | include/uitsl/fetch/detect_tar.hpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 137 | 2020-08-13T23:32:17.000Z | 2021-10-16T04:00:40.000Z | include/uitsl/fetch/detect_tar.hpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 3 | 2020-08-09T01:52:03.000Z | 2020-10-02T02:13:47.000Z | #pragma once
#ifndef UITSL_FETCH_DETECT_TAR_HPP_INCLUDE
#define UITSL_FETCH_DETECT_TAR_HPP_INCLUDE
#include <fstream>
#include <istream>
#include "../nonce/ScopeGuard.hpp"
#include "../polyfill/filesystem.hpp"
namespace uitsl {
inline bool detect_tar( const std::filesystem::path& path ) {
char buffer[265];
st... | 21.290909 | 62 | 0.570453 | mmore500 |
b0d764c95382d51f1b2857e01d548f2c86a5230b | 718 | cpp | C++ | CrackingTheCodingInterview/IsThisABinarySearchTree.cpp | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | CrackingTheCodingInterview/IsThisABinarySearchTree.cpp | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | CrackingTheCodingInterview/IsThisABinarySearchTree.cpp | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | /* Hidden stub code will pass a root argument to the function below. Complete the function to solve the challenge. Hint: you may want to write one or more helper functions.
The Node struct is defined as follows:
struct Node {
int data;
Node* left;
Node* right;
}
*/
vector<int> tree;
void inOrde... | 24.758621 | 174 | 0.577994 | HannoFlohr |
b0d7ef07b20683853f6b0946d548c3d0a3ec98b4 | 6,910 | cc | C++ | stig/indy/disk/util/stig_dm.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 5 | 2018-04-24T12:36:50.000Z | 2020-03-25T00:37:17.000Z | stig/indy/disk/util/stig_dm.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | null | null | null | stig/indy/disk/util/stig_dm.cc | ctidder/stigdb | d9ef3eb117d46542745ca98c55df13ec71447091 | [
"Apache-2.0"
] | 2 | 2018-04-24T12:39:24.000Z | 2020-03-25T00:45:08.000Z | /* <stig/indy/disk/util/stig_dm.cc>
The 'main' of the Stig disk manager.
Copyright 2010-2014 Tagged
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.or... | 33.221154 | 158 | 0.618958 | ctidder |
b0e0e9c86e1475f700fae7a1fb276e7bf76f751f | 19,105 | cpp | C++ | kittycat/catcontainer.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | 1 | 2021-02-05T23:20:07.000Z | 2021-02-05T23:20:07.000Z | kittycat/catcontainer.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | kittycat/catcontainer.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null |
#include "stdafx.h"
#include <QMimeData>
#include <QVector>
#include "catcontainer.h"
CatContainer::CatContainer(const JsonValue & config, CatGroup *parent)
: TreeItem(parent)
, config_(config)
, cat_(new CatCtl(config))
, catView_(new CatView(cat_))
{
std::wstring tag;
config.get(L"Tag", ta... | 24.462228 | 132 | 0.521853 | siilky |
b0e11a739cb231fb61906c2334874e98c5550944 | 2,190 | cpp | C++ | libQGLViewer-2.2.6-1/examples/frustumCulling/cullingCamera.cpp | szmurlor/fiver | 083251420eb934d860c99dcf1eb07ae5b8ba7e8c | [
"Apache-2.0"
] | null | null | null | libQGLViewer-2.2.6-1/examples/frustumCulling/cullingCamera.cpp | szmurlor/fiver | 083251420eb934d860c99dcf1eb07ae5b8ba7e8c | [
"Apache-2.0"
] | null | null | null | libQGLViewer-2.2.6-1/examples/frustumCulling/cullingCamera.cpp | szmurlor/fiver | 083251420eb934d860c99dcf1eb07ae5b8ba7e8c | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
Copyright (C) 2002-2006 Gilles Debunne (Gilles.Debunne@imag.fr)
This file is part of the QGLViewer library.
Version 2.2.6-1, released on July 4, 2007.
http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer
libQGLViewer is free software... | 31.285714 | 86 | 0.664384 | szmurlor |
b0e43d3b2a34cd1f30259295f2b66697ee18e1cf | 3,737 | cc | C++ | main.cc | tamerfrombk/gbdsm | 098798c934de124a7a3b7a37dd67e5de83644b7e | [
"MIT"
] | null | null | null | main.cc | tamerfrombk/gbdsm | 098798c934de124a7a3b7a37dd67e5de83644b7e | [
"MIT"
] | null | null | null | main.cc | tamerfrombk/gbdsm | 098798c934de124a7a3b7a37dd67e5de83644b7e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <limits>
#include "ops.h"
#include "common.h"
#include "dasm.h"
static void print_help()
{
std::printf("gbdsm %s -- The GameBoy ROM disassembler.\n", GBDSM_VERSION);
std::putchar('\n');
std::puts("Usage: gbdsm '/path/to/ro... | 24.585526 | 112 | 0.552047 | tamerfrombk |
b0e5b0b3e6be2c8f91e67f2995a273dc26c6d985 | 2,455 | cpp | C++ | src/Core/Resource/Factory/CAudioGroupLoader.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | 1 | 2018-12-25T02:09:27.000Z | 2018-12-25T02:09:27.000Z | src/Core/Resource/Factory/CAudioGroupLoader.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | null | null | null | src/Core/Resource/Factory/CAudioGroupLoader.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | 1 | 2020-02-21T15:22:56.000Z | 2020-02-21T15:22:56.000Z | #include "CAudioGroupLoader.h"
CAudioGroup* CAudioGroupLoader::LoadAGSC(IInputStream& rAGSC, CResourceEntry *pEntry)
{
// For now we only load sound define IDs and the group ID!
// Version check
uint32 Check = rAGSC.PeekLong();
EGame Game = (Check == 0x1 ? EGame::Echoes : EGame::Prime);
CAudioGroup... | 28.882353 | 91 | 0.611405 | henriquegemignani |
b0e67c98e7e73e9500e520a0d9084a414f5cbcc7 | 2,621 | hh | C++ | src/systems/AudioSystem.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | src/systems/AudioSystem.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | src/systems/AudioSystem.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <glow/fwd.hh>
#include "glow/common/log.hh"
#include "ecs/Engine.hh"
#include "ecs/System.hh"
#include "AL/al.h"
#include "AL/alc.h"
#include "typed-geometry/tg.hh"
#include "utility/Sound.hh"
namespace gamedev
{
class AudioSystem : public System
{
public:
void Init(std:... | 28.802198 | 141 | 0.636398 | rovedit |
b0e76565499e49fd0da413f8b1c38cf0f93e2bca | 2,558 | cpp | C++ | Frame/OpenGL/Test/StaticMeshTest.cpp | anirul/Frame | 6bf93cc032cc53eb9f9c94965f4b7e795812fa13 | [
"MIT"
] | null | null | null | Frame/OpenGL/Test/StaticMeshTest.cpp | anirul/Frame | 6bf93cc032cc53eb9f9c94965f4b7e795812fa13 | [
"MIT"
] | 1 | 2021-02-24T08:59:22.000Z | 2021-02-24T08:59:22.000Z | Frame/OpenGL/Test/StaticMeshTest.cpp | anirul/Frame | 6bf93cc032cc53eb9f9c94965f4b7e795812fa13 | [
"MIT"
] | null | null | null | #include "StaticMeshTest.h"
#include <GL/glew.h>
#include "Frame/BufferInterface.h"
#include "Frame/File/FileSystem.h"
#include "Frame/OpenGL/File/LoadStaticMesh.h"
#include "Frame/Level.h"
namespace test {
TEST_F(StaticMeshTest, CreateCubeMeshTest)
{
EXPECT_EQ(GLEW_OK, glewInit());
ASSERT_TRUE(window_);
au... | 33.657895 | 70 | 0.738468 | anirul |
b0e9b5edb7d9d7d7b1c61f6b174fcf4a5cd7627b | 739 | hpp | C++ | src/it/resources/expected/cpp_dependent_interface/cpp-headers/dependent_interface.hpp | mutagene/djinni-generator | 09b420537183e0f941ae55afbf15d72c3f8b76a1 | [
"Apache-2.0"
] | 60 | 2020-10-17T18:05:37.000Z | 2022-03-14T22:58:27.000Z | src/it/resources/expected/cpp_dependent_interface/cpp-headers/dependent_interface.hpp | mutagene/djinni-generator | 09b420537183e0f941ae55afbf15d72c3f8b76a1 | [
"Apache-2.0"
] | 85 | 2020-10-13T21:58:40.000Z | 2022-03-16T09:29:01.000Z | src/it/resources/expected/cpp_dependent_interface/cpp-headers/dependent_interface.hpp | mutagene/djinni-generator | 09b420537183e0f941ae55afbf15d72c3f8b76a1 | [
"Apache-2.0"
] | 24 | 2020-10-16T21:22:31.000Z | 2022-03-02T18:15:29.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file was generated by Djinni from cpp_dependent_interface.djinni
#pragma once
#include "interface_dependency.hpp"
#include <memory>
#include <optional>
class DependentInterface {
public:
virtual ~DependentInterface() {}
virtual void method_taking_interface_depe... | 33.590909 | 123 | 0.786198 | mutagene |
b0ecad68b354c13040a0c987f7568a40d423c4a5 | 1,012 | hh | C++ | auxil/broker/include/broker/detail/hash.hh | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | auxil/broker/include/broker/detail/hash.hh | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | auxil/broker/include/broker/detail/hash.hh | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <functional>
namespace broker {
namespace detail {
/// Calculate hash for an object and combine with a provided hash.
template <class T>
inline void hash_combine(size_t& seed, const T& v) {
seed ^= std::hash<T>()(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
template <class It>
inline size_... | 21.531915 | 69 | 0.65415 | hugolin615 |
b0f0c9e511948015e676815f65d9fe47a9908ab2 | 1,514 | hpp | C++ | src/binary/bin_wrappers.hpp | kbentum/LPLANN | c526113e583058c3b9f4ea5ef5ccc7d5a9d658d3 | [
"MIT"
] | null | null | null | src/binary/bin_wrappers.hpp | kbentum/LPLANN | c526113e583058c3b9f4ea5ef5ccc7d5a9d658d3 | [
"MIT"
] | null | null | null | src/binary/bin_wrappers.hpp | kbentum/LPLANN | c526113e583058c3b9f4ea5ef5ccc7d5a9d658d3 | [
"MIT"
] | null | null | null | #ifndef BINWRAPPERS_HPP
#define BINWRAPPERS_HPP
#include <vector>
#include <memory>
#include <math.h>
#include "src/construction/layer.hpp"
#include "src/binary/conv.hpp"
#include "src/binary/fc.hpp"
#include "src/ops/print.hpp"
//In general, we always assume a function has binary input and output, not reg
template... | 27.527273 | 82 | 0.703435 | kbentum |
b0f1752b1ca9f4c019ec0e0f115d547f9ff1574b | 3,172 | cpp | C++ | Tridor/src/Log/AppLog.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | 2 | 2020-10-25T15:51:46.000Z | 2020-11-10T15:06:22.000Z | Tridor/src/Log/AppLog.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | 3 | 2020-11-11T16:54:49.000Z | 2020-11-29T14:35:31.000Z | Tridor/src/Log/AppLog.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | null | null | null | #include "AppLog.h"
namespace Triger
{
void AppLog::Clear()
{
m_Buf.clear();
m_LineOffsets.clear();
m_LineOffsets.push_back(0);
}
void AppLog::OnImGuiRender()
{
/*if (!ImGui::Begin(title, p_open))
{
ImGui::End();
return;
}*/
// Options menu
if (ImGui::BeginPopup("Options"))
{
ImGui... | 28.321429 | 135 | 0.6529 | AzadKshitij |
b0f8934becf2b16425721328c498fc05bb52bbd1 | 49 | hpp | C++ | libraries/protocol/include/offer/protocol/protocol.hpp | nharan/offer | 9d26f480a7d3009969b2b06c0cd2e83772f52c25 | [
"MIT"
] | null | null | null | libraries/protocol/include/offer/protocol/protocol.hpp | nharan/offer | 9d26f480a7d3009969b2b06c0cd2e83772f52c25 | [
"MIT"
] | null | null | null | libraries/protocol/include/offer/protocol/protocol.hpp | nharan/offer | 9d26f480a7d3009969b2b06c0cd2e83772f52c25 | [
"MIT"
] | null | null | null | #pragma once
#include <offer/protocol/block.hpp>
| 16.333333 | 35 | 0.77551 | nharan |
b0f943d10c768e22f9de9aeeef3c86f9b543356e | 822 | cpp | C++ | 8.二叉树的下一个结点/8.二叉树的下一个结点.cpp | shenweichen/coding_interviews | 990cc54a62b8fa277b743289e8d6f6e96a95225d | [
"MIT"
] | 483 | 2020-01-05T12:58:59.000Z | 2022-03-19T05:44:00.000Z | 8.二叉树的下一个结点/8.二叉树的下一个结点.py | moshilangzi/coding_interviews | 990cc54a62b8fa277b743289e8d6f6e96a95225d | [
"MIT"
] | 1 | 2020-01-20T08:47:15.000Z | 2020-01-27T13:24:15.000Z | 8.二叉树的下一个结点/8.二叉树的下一个结点.py | moshilangzi/coding_interviews | 990cc54a62b8fa277b743289e8d6f6e96a95225d | [
"MIT"
] | 122 | 2020-01-05T14:10:04.000Z | 2022-03-19T05:24:42.000Z | /*
struct TreeLinkNode {
int val;
struct TreeLinkNode *left;
struct TreeLinkNode *right;
struct TreeLinkNode *next;
TreeLinkNode(int x) :val(x), left(NULL), right(NULL), next(NULL) {
}
};
*/
class Solution {
public:
TreeLinkNode* GetNext(TreeLinkNode* pNode)
{
if (pNode-... | 22.833333 | 70 | 0.512165 | shenweichen |
b0fadbdd1f063125434102d8af24ac696e8558bb | 1,138 | cpp | C++ | src/swagger/v1/model/InterfaceProtocolConfig_eth.cpp | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/swagger/v1/model/InterfaceProtocolConfig_eth.cpp | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/swagger/v1/model/InterfaceProtocolConfig_eth.cpp | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | /**
* OpenPerf API
* REST API interface for OpenPerf
*
* OpenAPI spec version: 1
* Contact: support@spirent.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
#include "InterfaceProtocolConfig_eth.... | 17.242424 | 75 | 0.731107 | gchagnotSpt |
b0fd1a632a37aa3bfb58fd3a6d009f1f672a7c9a | 994 | cpp | C++ | src/hello_imgui/widgets/logger.cpp | jhoffmann2/hello_imgui | 7430223491de1ee12b4e3c30cc430d026ae10d62 | [
"MIT"
] | 245 | 2020-06-21T10:06:45.000Z | 2022-03-24T04:43:23.000Z | src/hello_imgui/widgets/logger.cpp | jhoffmann2/hello_imgui | 7430223491de1ee12b4e3c30cc430d026ae10d62 | [
"MIT"
] | 19 | 2020-06-22T22:06:25.000Z | 2021-09-05T12:28:44.000Z | src/hello_imgui/widgets/logger.cpp | jhoffmann2/hello_imgui | 7430223491de1ee12b4e3c30cc430d026ae10d62 | [
"MIT"
] | 36 | 2020-06-20T04:42:54.000Z | 2022-03-29T10:55:20.000Z | #include "hello_imgui/widgets/logger.h"
namespace HelloImGui
{
namespace Widgets
{
Logger::Logger(std::string label_, DockSpaceName dockSpaceName_)
: DockableWindow(label_, dockSpaceName_, {})
, log_(logBuffer_, maxBufferSize)
{
this->GuiFonction = [this]() {
log_.draw();
};
}
void Logger::deb... | 19.115385 | 64 | 0.645875 | jhoffmann2 |
b0fe257dc68660f61f07cf6370abb386d9d89965 | 577 | cpp | C++ | src/client/src/InkEditorModel.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/client/src/InkEditorModel.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/client/src/InkEditorModel.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "InkEditorModel.h"
#include "IRegistryKey.h"
InkEditorModel::InkEditorModel
( IRegistryKey & registryKey
)
: registryKey (registryKey)
{
}
void InkEditorModel::GetPen
( std::wstring & width
, std::wstring & color
)
{
width = registryKey.GetString(L"pen width", L... | 19.233333 | 56 | 0.670711 | don-reba |
b0ffdb556c82bdc96bad3e96c7f850757aa90f06 | 3,625 | cpp | C++ | DFS.cpp | BlackTimber-Labs/HacktoberFest2021 | 393dc81a6d21331007e729a2eafac0ec15b7a45a | [
"MIT"
] | 10 | 2021-10-02T14:14:32.000Z | 2021-11-08T09:27:42.000Z | DFS.cpp | BlackTimber-Labs/HacktoberFest2021 | 393dc81a6d21331007e729a2eafac0ec15b7a45a | [
"MIT"
] | 24 | 2021-10-02T14:33:44.000Z | 2021-10-31T17:32:49.000Z | DFS.cpp | BlackTimber-Labs/HacktoberFest2021 | 393dc81a6d21331007e729a2eafac0ec15b7a45a | [
"MIT"
] | 63 | 2021-10-02T10:22:04.000Z | 2021-10-31T18:35:11.000Z | #include <bits/stdc++.h>
#include <chrono>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
using namespace std;
using namespace chrono;
//template<class T> using oset = tree<T, null_type, less<T>, rb_tree_tag , tree_order_statistics_node_update >;
#defi... | 22.376543 | 112 | 0.548414 | BlackTimber-Labs |
7c000c1959c00a89b9a7a760e596ebe108aac7f0 | 2,416 | cpp | C++ | CubeEngine/Application/CubeGame/Gun/FPGun.cpp | tangziwen/Cube-Engine | c79b878dcc7e2e382f4463ca63519627d6220afd | [
"MIT"
] | 360 | 2015-01-26T08:15:01.000Z | 2021-07-11T16:30:58.000Z | CubeEngine/Application/CubeGame/Gun/FPGun.cpp | tangziwen/Cube-Engine | c79b878dcc7e2e382f4463ca63519627d6220afd | [
"MIT"
] | 6 | 2015-03-09T09:15:07.000Z | 2020-07-06T01:34:00.000Z | CubeEngine/Application/CubeGame/Gun/FPGun.cpp | tangziwen/CubeMiniGame | 90bffa66d4beba5fddc39fc642a8fb36703cf32d | [
"MIT"
] | 41 | 2015-03-10T03:17:46.000Z | 2021-07-13T06:26:26.000Z | #include "FPGun.h"
#include "CubeGame/BulletMgr.h"
#include "CubeGame/GameUISystem.h"
#include "Lighting/PointLight.h"
#include "Scene/SceneMgr.h"
#include "AudioSystem/AudioSystem.h"
namespace tzw
{
FPGun::FPGun(FPGunData * gunData):
m_data(gunData)
{
m_model = Model::create(m_data->m_filePath);
m_model->setPos(0... | 23.009524 | 132 | 0.695364 | tangziwen |
7c0049b4a77f51a230bd957d365651322e605be4 | 132 | cpp | C++ | src/main.cpp | borninla/R-Shell | 72b35fdb5ef7cba23791c65045a8b2bf0272321b | [
"MIT"
] | null | null | null | src/main.cpp | borninla/R-Shell | 72b35fdb5ef7cba23791c65045a8b2bf0272321b | [
"MIT"
] | null | null | null | src/main.cpp | borninla/R-Shell | 72b35fdb5ef7cba23791c65045a8b2bf0272321b | [
"MIT"
] | null | null | null | #include <iostream>
#include "../header/manager.h"
using namespace std;
int main()
{
Manager m;
m.run();
return 0;
}
| 10.153846 | 30 | 0.598485 | borninla |
7c0649e1ccdc5efa9bae15d7d181ec1eef88d889 | 1,630 | cpp | C++ | src/MapEditor/UnitEditor/UnitDlg.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T13:44:49.000Z | 2021-01-19T10:39:48.000Z | src/MapEditor/UnitEditor/UnitDlg.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | null | null | null | src/MapEditor/UnitEditor/UnitDlg.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T16:03:20.000Z | 2020-02-15T09:14:30.000Z | // UnitDlg.cpp : implementation file
//
#include "stdafx.h"
#include "..\MapEditor.h"
#include "UnitDlg.h"
#include "..\DataObjects\EMap.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//... | 22.027027 | 77 | 0.678528 | vitek-karas |
7c09ee479bcf6a832ed5af7a14a248b03e62786c | 3,749 | cpp | C++ | MCMF_Template.cpp | vicennial/Competitive-Coding-Library | 48e338ca5f572d44d8f4224cdb373bb0cab5b856 | [
"MIT"
] | 1 | 2019-02-20T06:44:04.000Z | 2019-02-20T06:44:04.000Z | MCMF_Template.cpp | vicennial/Competitive-Coding-Library | 48e338ca5f572d44d8f4224cdb373bb0cab5b856 | [
"MIT"
] | null | null | null | MCMF_Template.cpp | vicennial/Competitive-Coding-Library | 48e338ca5f572d44d8f4224cdb373bb0cab5b856 | [
"MIT"
] | null | null | null | //Gvs Akhil (Vicennial)
#include<bits/stdc++.h>
#define int long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define mt make_tuple
#define ld(a) while(a--)
#define tci(v,i) for(auto i=v.begin();i!=v.end();i++)
#define tcf(v,i) for(auto i : v)
#define all(v) v.begin(),v.end()
#define rep(i,sta... | 35.704762 | 157 | 0.516671 | vicennial |
7c0ae2ece9247caf1221df2fc8b40c45c9ea0978 | 449 | hpp | C++ | bridge_graph.hpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | bridge_graph.hpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | bridge_graph.hpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | #ifndef BRIDGE_GRAPH_HPP
#define BRIDGE_GRAPH_HPP
namespace omega_h {
void bridge_graph(
unsigned nverts,
unsigned const* adj_offsets,
unsigned const* adj,
unsigned* nedges_out,
unsigned** verts_of_edges_out);
void bridge_dual_graph(
unsigned elem_dim,
unsigned nelems,
unsigned const*... | 18.708333 | 39 | 0.737194 | ibaned |
7c125a1bf1323b388cbb4a8620cbecbaa69084dd | 6,035 | cpp | C++ | src/midiutils/midiread.cpp | alexames/midiutils | 12ac041c3f2f472473755c46f5f6306e02c2b564 | [
"Unlicense"
] | null | null | null | src/midiutils/midiread.cpp | alexames/midiutils | 12ac041c3f2f472473755c46f5f6306e02c2b564 | [
"Unlicense"
] | null | null | null | src/midiutils/midiread.cpp | alexames/midiutils | 12ac041c3f2f472473755c46f5f6306e02c2b564 | [
"Unlicense"
] | null | null | null | #include "midiutils.hpp"
#include <fstream>
#include <iostream>
using namespace std;
////////////////////////////////////////////////////////////////////////////////
namespace midi
{
static unsigned int readUInt32be(istream& in)
{
char data[4];
in.read(data, 4);
return (static_cast<unsi... | 28.738095 | 123 | 0.60116 | alexames |
7c1612776c03d383b17ff57dfd67c9bffced3cb6 | 516 | cpp | C++ | compendium/test_bundles/ManagedServiceAndFactoryBundle/src/ManagedServiceFactoryServiceImpl.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | compendium/test_bundles/ManagedServiceAndFactoryBundle/src/ManagedServiceFactoryServiceImpl.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | compendium/test_bundles/ManagedServiceAndFactoryBundle/src/ManagedServiceFactoryServiceImpl.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | #include "ManagedServiceFactoryServiceImpl.hpp"
namespace cppmicroservices {
namespace service {
namespace cm {
namespace test {
TestManagedServiceFactoryServiceImpl::TestManagedServiceFactoryServiceImpl(
int initialValue)
: value{ initialValue }
{}
TestManagedServiceFactoryServiceImpl::~TestManagedServiceFactor... | 20.64 | 79 | 0.800388 | fmilano |
7c1dc825ae6fba53a1fb46f42f03168f1c4d15c6 | 13,663 | cpp | C++ | src/executors/sort.cpp | ShubhamAgrawal-13/Relational_Database | 5d315633742df18eda6952d286cf86501d93ed58 | [
"MIT"
] | null | null | null | src/executors/sort.cpp | ShubhamAgrawal-13/Relational_Database | 5d315633742df18eda6952d286cf86501d93ed58 | [
"MIT"
] | null | null | null | src/executors/sort.cpp | ShubhamAgrawal-13/Relational_Database | 5d315633742df18eda6952d286cf86501d93ed58 | [
"MIT"
] | null | null | null | #include"global.h"
const int SORT_MAX = 1e5+5;
int temp[SORT_MAX];
// bool isDigit(char ch) {
// if (ch >= '0' && ch <= '9')
// return true;
// return false;
// }
/**
* @brief File contains method to process SORT commands.
*
* syntax:
* R <- SORT relation_name BY column_name IN sorting_ord... | 27.826884 | 135 | 0.554344 | ShubhamAgrawal-13 |
7c20d0729b19017b895a9f9e8dbecfc0e4bd7ed8 | 2,226 | cpp | C++ | openbr/plugins/imgproc/inpaint.cpp | kassemitani/openbr | 7b453f7abc6f997839a858f4b7686bc5e21ef7b2 | [
"Apache-2.0"
] | 61 | 2016-01-27T04:23:04.000Z | 2020-06-19T20:45:16.000Z | openbr/plugins/imgproc/inpaint.cpp | kassemitani/openbr | 7b453f7abc6f997839a858f4b7686bc5e21ef7b2 | [
"Apache-2.0"
] | 2 | 2016-04-09T13:55:15.000Z | 2017-11-21T03:08:08.000Z | openbr/plugins/imgproc/inpaint.cpp | kassemitani/openbr | 7b453f7abc6f997839a858f4b7686bc5e21ef7b2 | [
"Apache-2.0"
] | 18 | 2016-01-27T13:07:47.000Z | 2022-01-22T17:19:18.000Z | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2012 The MITRE Corporation *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* y... | 35.333333 | 94 | 0.520665 | kassemitani |
7c2196f9b836bad8e9a1fa61581196663988528e | 1,791 | cc | C++ | Alignment/CommonAlignmentAlgorithm/src/AlignmentExtendedCorrelationsEntry.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Alignment/CommonAlignmentAlgorithm/src/AlignmentExtendedCorrelationsEntry.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Alignment/CommonAlignmentAlgorithm/src/AlignmentExtendedCorrelationsEntry.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z |
#include "Alignment/CommonAlignmentAlgorithm/interface/AlignmentExtendedCorrelationsEntry.h"
AlignmentExtendedCorrelationsEntry::AlignmentExtendedCorrelationsEntry(void)
: // theCounter( 0 ),
theNRows(0),
theNCols(0) {}
AlignmentExtendedCorrelationsEntry::AlignmentExtendedCorrelationsEntry(short u... | 34.442308 | 98 | 0.59129 | ckamtsikis |
7c2206902b5919999e8b1ae74f423c522c6c3c08 | 1,100 | cpp | C++ | Testable/Testable/Terrain.cpp | piotr-mamenas/SDL-RTS | 5b7bb113156f63d87e83f977593bad2d154d9a8b | [
"MIT"
] | 2 | 2020-01-22T03:21:58.000Z | 2020-04-11T16:50:23.000Z | Testable/Testable/Terrain.cpp | piotr-mamenas/SDL-RTS | 5b7bb113156f63d87e83f977593bad2d154d9a8b | [
"MIT"
] | null | null | null | Testable/Testable/Terrain.cpp | piotr-mamenas/SDL-RTS | 5b7bb113156f63d87e83f977593bad2d154d9a8b | [
"MIT"
] | 3 | 2019-11-08T09:32:17.000Z | 2022-03-20T17:18:45.000Z | #include "Terrain.h"
#include "GameObject.h"
#include <nlohmann\json.hpp>
using json = nlohmann::json;
Terrain::Terrain(int initialPositionX, int initialPositionY, std::shared_ptr<Terrain> terrainTemplate)
: GameObject(initialPositionX, initialPositionY)
{
_id = terrainTemplate->getId();
_width = terrainTemplate... | 18.644068 | 103 | 0.705455 | piotr-mamenas |
7c268a74c47b7d848e1f5195fdab2ea183d3b7ae | 2,364 | cpp | C++ | FileFormats/Key/Key_Friendly.cpp | xloss/NWNFileFormats | 0b3fd4fba416bcdb79f4d898a40a4107234ceea0 | [
"WTFPL"
] | 9 | 2018-03-02T17:03:43.000Z | 2021-09-02T13:26:04.000Z | FileFormats/Key/Key_Friendly.cpp | xloss/NWNFileFormats | 0b3fd4fba416bcdb79f4d898a40a4107234ceea0 | [
"WTFPL"
] | 8 | 2018-03-04T09:20:46.000Z | 2020-12-06T04:28:33.000Z | FileFormats/Key/Key_Friendly.cpp | xloss/NWNFileFormats | 0b3fd4fba416bcdb79f4d898a40a4107234ceea0 | [
"WTFPL"
] | 8 | 2018-03-04T09:18:49.000Z | 2020-12-01T01:15:41.000Z | #include "FileFormats/Key/Key_Friendly.hpp"
#include "Utility/Assert.hpp"
#include <algorithm>
#include <cstring>
namespace FileFormats::Key::Friendly {
Key::Key(Raw::Key const& rawKey)
{
// Get the referenced BIFs.
for (Raw::KeyFile const& rawFile : rawKey.m_Files)
{
KeyBifReference reference;
... | 38.129032 | 164 | 0.71066 | xloss |
7c2d4722dfd3a7e5fea2a29ddb9e407847fefec3 | 784 | cpp | C++ | UVa 10759 - Dice Throwing/sample/10759 - Dice Throwing.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 10759 - Dice Throwing/sample/10759 - Dice Throwing.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 10759 - Dice Throwing/sample/10759 - Dice Throwing.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
typedef unsigned long long ULL;
ULL gcd(ULL x, ULL y) {
if(x == 0) return y;
if(y == 0) return x;
ULL tmp;
while(x%y) {
tmp = x, x = y, y = tmp%y;
}
return y;
}
int main() {
ULL DP[25][151] = {}, total[25];
int i, j, k, n, m;
DP[0][0] = 1, total[0] = 1;
for(i = 1; i <= 24; i++) {
for(j ... | 18.666667 | 38 | 0.422194 | tadvi |
7c2d81b806417511d7d03b5955e9c996790e4c7d | 7,221 | hpp | C++ | include/poincare_embedding.hpp | nmfisher/poincare-embeddings | 9dcf7113e1db468b35d81f02e462f6d01fd7d8b7 | [
"MIT"
] | 18 | 2017-10-15T20:47:44.000Z | 2021-06-21T02:52:46.000Z | include/poincare_embedding.hpp | nmfisher/poincare-embeddings | 9dcf7113e1db468b35d81f02e462f6d01fd7d8b7 | [
"MIT"
] | 3 | 2017-10-24T19:17:10.000Z | 2017-11-21T10:58:16.000Z | include/poincare_embedding.hpp | nmfisher/poincare-embeddings | 9dcf7113e1db468b35d81f02e462f6d01fd7d8b7 | [
"MIT"
] | 3 | 2017-10-15T20:47:53.000Z | 2018-04-10T11:30:17.000Z | #ifndef POINCARE_EMBEDDING_HPP
#define POINCARE_EMBEDDING_HPP
#include <cassert>
#include <iostream>
#include <vector>
#include <memory>
#include <random>
#include <numeric>
#include <string>
#include <unordered_map>
#include <fstream>
#include <algorithm>
#include <thread>
#include <chrono>
#include <iomanip>
#includ... | 34.385714 | 284 | 0.504778 | nmfisher |
7c363a4058ccd0b05b8d9b5886de610267d1e842 | 5,307 | hpp | C++ | Lodestar/primitives/sets/SetUnion.hpp | helkebir/Lodestar | 6b325d3e7a388676ed31d44eac1146630ee4bb2c | [
"BSD-3-Clause"
] | 4 | 2020-06-05T14:08:23.000Z | 2021-06-26T22:15:31.000Z | Lodestar/primitives/sets/SetUnion.hpp | helkebir/Lodestar | 6b325d3e7a388676ed31d44eac1146630ee4bb2c | [
"BSD-3-Clause"
] | 2 | 2021-06-25T15:14:01.000Z | 2021-07-01T17:43:20.000Z | Lodestar/primitives/sets/SetUnion.hpp | helkebir/Lodestar | 6b325d3e7a388676ed31d44eac1146630ee4bb2c | [
"BSD-3-Clause"
] | 1 | 2021-06-16T03:15:23.000Z | 2021-06-16T03:15:23.000Z | //
// Created by Hamza El-Kebir on 6/21/21.
//
#ifndef LODESTAR_SETUNION_HPP
#define LODESTAR_SETUNION_HPP
#include "SetExpression.hpp"
#include <type_traits>
#include <algorithm>
namespace ls {
namespace primitives {
namespace sets {
/**
* @brief Union of two SetExpressions.
... | 35.61745 | 109 | 0.419823 | helkebir |
7c38523fe7d90353fb50cc5dc38bb1f9c613a054 | 592 | inl | C++ | rasterizables/RasterizablePrimitiveList.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | rasterizables/RasterizablePrimitiveList.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | rasterizables/RasterizablePrimitiveList.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file RasterizablePrimitiveList.inl
* \author Jared Hoberock
* \brief Inline file for RasterizablePrimitiveList.h.
*/
#include "RasterizablePrimitiveList.h"
template<typename PrimitiveListParentType>
void RasterizablePrimitiveList<PrimitiveListParentType>
::rasterize(void)
{
for(typename Parent0::ite... | 25.73913 | 65 | 0.679054 | jaredhoberock |
7c392c21845d34e3c5949f6343d8f32e2f5399eb | 23,141 | cpp | C++ | include/delfem2/mat4.cpp | nobuyuki83/delfem2 | 118768431ccc5b77ed10b8f76f625d38e0b552f0 | [
"MIT"
] | 153 | 2018-08-16T21:51:33.000Z | 2022-03-28T10:34:48.000Z | include/delfem2/mat4.cpp | mmer547/delfem2 | 4f4b28931c96467ac30948e6b3f83150ea530c92 | [
"MIT"
] | 63 | 2018-08-16T21:53:34.000Z | 2022-02-22T13:50:34.000Z | include/delfem2/mat4.cpp | mmer547/delfem2 | 4f4b28931c96467ac30948e6b3f83150ea530c92 | [
"MIT"
] | 18 | 2018-12-17T05:39:15.000Z | 2021-11-16T08:21:16.000Z | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "delfem2/mat4.h"
#include <cstring>
#include <climits>
// ------------------------
namespace delfem2::mat4 {
template<typename REAL... | 26.939464 | 95 | 0.527073 | nobuyuki83 |
7c3a81683459fac9a0ba9307804e0775f8ae07fb | 1,776 | hpp | C++ | include/engine/game/scripttrigger.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | include/engine/game/scripttrigger.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | include/engine/game/scripttrigger.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | /*
Copyright 2009-2021 Nicolas Colombe
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, publish, distribute... | 40.363636 | 460 | 0.773649 | eXl-Nic |
7c3c7ff8f6955166bdbd693e0effd6edc45ca4ac | 1,463 | cpp | C++ | tests/streaming/src_model/Model.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/streaming/src_model/Model.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/streaming/src_model/Model.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
void HtCoprocModel()
{
uint32_t haltCnt = 0;
uint16_t nau = 0;
uint16_t au = 0;
CHtModelHif *pModel = new CHtModelHif;
CHtModelAuUnit *const *pAuUnits = pModel->AllocAllAuUnits();
nau = pModel->GetAuUnitCnt();
uint16_t rcvAu;
uint32_t rcvCnt;
// Loop until all AUs are done echoin... | 21.514706 | 77 | 0.626111 | TonyBrewer |
7c3eba0795cd22609dde200195c4fd3e6b8b8741 | 5,485 | cpp | C++ | savedecrypter-master/savedecrypter/ClanLib-2.0/Sources/Core/System/thread_local_storage.cpp | ZephyrXD/Z-Builder-Source-CPP | f48e0f22b5d4d183b841abb8e61e1bdb5c25999d | [
"Apache-2.0"
] | 6 | 2020-11-11T15:49:11.000Z | 2021-03-08T10:29:23.000Z | savedecrypter-master/savedecrypter/ClanLib-2.0/Sources/Core/System/thread_local_storage.cpp | ZeppyXD/Z-Builder-Source-CPP | f48e0f22b5d4d183b841abb8e61e1bdb5c25999d | [
"Apache-2.0"
] | 1 | 2020-11-08T17:28:35.000Z | 2020-11-09T01:35:27.000Z | savedecrypter-master/savedecrypter/ClanLib-2.0/Sources/Core/System/thread_local_storage.cpp | ZeppyXD/Z-Builder-Source-CPP | f48e0f22b5d4d183b841abb8e61e1bdb5c25999d | [
"Apache-2.0"
] | 3 | 2021-06-26T13:00:23.000Z | 2022-02-01T02:16:50.000Z | /*
** ClanLib SDK
** Copyright (c) 1997-2010 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 32.844311 | 120 | 0.742024 | ZephyrXD |
7c4322ea9124bd0cf70e1bcd2068fe34e3292236 | 1,091 | cc | C++ | third_party/sqlite/fuzz/sql_strftime_fuzzer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/sqlite/fuzz/sql_strftime_fuzzer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/sqlite/fuzz/sql_strftime_fuzzer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 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 <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include "testing/libfuzzer/proto/lpm_interface.h"
#include "third_party/sqlit... | 34.09375 | 74 | 0.729606 | zealoussnow |
7c47701300dfe2487a85d90fc459ba063cae22a6 | 654 | cpp | C++ | windows-lockscreen-extractor/src/helpers/User.cpp | chistyakoviv/windows-lockscreen-extractor | 189c396fe15fd3facdb2ebe4d8cab2317af0098f | [
"MIT"
] | null | null | null | windows-lockscreen-extractor/src/helpers/User.cpp | chistyakoviv/windows-lockscreen-extractor | 189c396fe15fd3facdb2ebe4d8cab2317af0098f | [
"MIT"
] | null | null | null | windows-lockscreen-extractor/src/helpers/User.cpp | chistyakoviv/windows-lockscreen-extractor | 189c396fe15fd3facdb2ebe4d8cab2317af0098f | [
"MIT"
] | null | null | null | #include "User.h"
#include <clocale>
#include <locale>
#include <codecvt>
static const wchar_t* LOCK_SCREEN_IMAGES_PATH = L"\\AppData\\Local\\Packages\\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\\LocalState\\Assets";
static std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> s_Converter;
std::wstring... | 26.16 | 154 | 0.778287 | chistyakoviv |
7c4aed921ec64f75f6cd7158352edf044939f391 | 2,781 | cpp | C++ | Demo/GameCode/IntroScene.cpp | TimPhoeniX/LuaDemo | 99930f376f08f080e43737eb28606ab3f5d24eb9 | [
"MIT"
] | 2 | 2019-09-26T09:12:54.000Z | 2019-10-03T10:43:59.000Z | Demo/GameCode/IntroScene.cpp | TimPhoeniX/LuaDemo | 99930f376f08f080e43737eb28606ab3f5d24eb9 | [
"MIT"
] | null | null | null | Demo/GameCode/IntroScene.cpp | TimPhoeniX/LuaDemo | 99930f376f08f080e43737eb28606ab3f5d24eb9 | [
"MIT"
] | null | null | null | #include "IntroScene.hpp"
#include <Object/Shape/sge_shape.hpp>
#include <Game/sge_game.hpp>
#include <Game/Director/sge_director.hpp>
#include "Image.hpp"
#include "Logics.hpp"
#include "Actions.hpp"
#include "Renderer/sge_renderer.hpp"
IntroScene::IntroScene(SGE::Scene* next, const char* path): path(path), next(n... | 28.670103 | 120 | 0.685365 | TimPhoeniX |
7c510ec662d1a3d9eb901118b6cf9ce02e546aba | 1,403 | cpp | C++ | src/windows/filesystem_win32.cpp | puremourning/netcoredbg | c34eaef68abe06197d03bc8c19282707cfc1adda | [
"MIT"
] | null | null | null | src/windows/filesystem_win32.cpp | puremourning/netcoredbg | c34eaef68abe06197d03bc8c19282707cfc1adda | [
"MIT"
] | null | null | null | src/windows/filesystem_win32.cpp | puremourning/netcoredbg | c34eaef68abe06197d03bc8c19282707cfc1adda | [
"MIT"
] | null | null | null | // Copyright (C) 2020 Samsung Electronics Co., Ltd.
// See the LICENSE file in the project root for more information.
/// \file filesystem_win32.cpp
/// This file contains definitions of windows-specific functions related to file system.
#ifdef WIN32
#include <windows.h>
#include <string>
#include "filesystem.h"
nam... | 26.980769 | 98 | 0.721311 | puremourning |
7c540cd285c2a41253b995ad72bc218634d63192 | 604 | cpp | C++ | 34. Find First and Last Position of Element in Sorted Array.cpp | kushagra-18/Leetcode-solutions | cf276e6cc5491429144a79c59dd1097f1d625a6b | [
"MIT"
] | null | null | null | 34. Find First and Last Position of Element in Sorted Array.cpp | kushagra-18/Leetcode-solutions | cf276e6cc5491429144a79c59dd1097f1d625a6b | [
"MIT"
] | null | null | null | 34. Find First and Last Position of Element in Sorted Array.cpp | kushagra-18/Leetcode-solutions | cf276e6cc5491429144a79c59dd1097f1d625a6b | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> searchRange(vector<int>& nums, int target) {
int n = nums.size(),i,count = 0,flag;
for(i = 0;i<n;i++){
if(nums[i]==target){
count++;
flag = i;
}
... | 19.483871 | 60 | 0.306291 | kushagra-18 |
7c58e5f186694bb171931cf1d8266e2c31118507 | 3,303 | cpp | C++ | tests/test_transpose/test_transpose.cpp | mablanchard/Fastor | f5ca2f608bdfee34833d5008a93a3f82ce42ddef | [
"MIT"
] | 424 | 2017-05-15T14:34:30.000Z | 2022-03-29T08:58:22.000Z | tests/test_transpose/test_transpose.cpp | manodeep/Fastor | aefce47955dd118f04e7b36bf5dbb2d86997ff8f | [
"MIT"
] | 150 | 2016-12-23T10:08:12.000Z | 2022-01-16T03:53:45.000Z | tests/test_transpose/test_transpose.cpp | manodeep/Fastor | aefce47955dd118f04e7b36bf5dbb2d86997ff8f | [
"MIT"
] | 43 | 2017-09-20T19:47:24.000Z | 2022-02-22T21:12:49.000Z | #include <Fastor/Fastor.h>
using namespace Fastor;
#define Tol 1e-12
#define BigTol 1e-5
#define HugeTol 1e-2
template<typename T, size_t M, size_t N>
Tensor<T,N,M> transpose_ref(const Tensor<T,M,N>& a) {
Tensor<T,N,M> out;
for (size_t i=0; i<M; ++i) {
for (size_t j=0; j<N; ++j) {
out(j,... | 22.02 | 93 | 0.518619 | mablanchard |
7c5b8418e332dc639e4c9bc7b60fde9c073c2ce7 | 204 | cpp | C++ | src/main.cpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | src/main.cpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | src/main.cpp | JoseLuisC99/GraphDB | 63735389e0637746333b404583ae8e54ea309497 | [
"MIT"
] | null | null | null | #include <iostream>
#include "graph/Vertex.hpp"
#include "graph/Edge.hpp"
#include "graph/Graph.hpp"
using namespace std;
int main(int argc, char** argv) {
cout << "GraphDB" << endl;
return 0;
} | 18.545455 | 33 | 0.666667 | JoseLuisC99 |
7c630c5a5847b69203f8ac94a8f6d844da57a24c | 528 | cpp | C++ | chapter-15/Program 1.cpp | JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises | dc3cd3a0091686580aa8414f3d021fe5bb7bb513 | [
"MIT"
] | null | null | null | chapter-15/Program 1.cpp | JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises | dc3cd3a0091686580aa8414f3d021fe5bb7bb513 | [
"MIT"
] | null | null | null | chapter-15/Program 1.cpp | JahanzebNawaz/Introduction-to-C-plus-plus-CPP-Chapter-Exercises | dc3cd3a0091686580aa8414f3d021fe5bb7bb513 | [
"MIT"
] | null | null | null | /* program of inheritance */
#include<iostream>
#include<conio.h>
using namespace std;
class move
{
protected:
int position;
public:
move()
{
position=0;
}
void forward()
{
position++;
}
void show()
{
cout<<" Position = "<<position<<endl;
}
... | 11.234043 | 43 | 0.486742 | JahanzebNawaz |
7c637803e72b33ad45f5566aabf2d06ddf7c949e | 37,796 | cc | C++ | Code/BBearEditor/Engine/Serializer/BBMaterial.pb.cc | xiaoxianrouzhiyou/BBearEditor | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 26 | 2021-06-30T02:19:30.000Z | 2021-07-23T08:38:46.000Z | Code/BBearEditor/Engine/Serializer/BBMaterial.pb.cc | xiaoxianrouzhiyou/BBearEditor-2.0 | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | null | null | null | Code/BBearEditor/Engine/Serializer/BBMaterial.pb.cc | xiaoxianrouzhiyou/BBearEditor-2.0 | 0f1b779d87c297661f9a1e66d0613df43f5fe46b | [
"MIT"
] | 3 | 2021-09-01T08:19:30.000Z | 2021-12-28T19:06:40.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BBMaterial.proto
#include "BBMaterial.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#includ... | 40.904762 | 172 | 0.707324 | xiaoxianrouzhiyou |
7c65564d6a6d4b54ed3b7a5ababd4394bff7452b | 201 | cpp | C++ | 3-C-And-CPlusPlus-Interview/3-6-CPlusPlusTest/3-6-4-Test4.cpp | wuping5719/JustFun | 18140dc1ee314ac8b87d7a95271e4ed2ddf7acd5 | [
"MIT"
] | 6 | 2016-05-25T05:23:00.000Z | 2021-10-04T09:31:28.000Z | 3-C-And-CPlusPlus-Interview/3-6-CPlusPlusTest/3-6-4-Test4.cpp | wuping5719/JustFun | 18140dc1ee314ac8b87d7a95271e4ed2ddf7acd5 | [
"MIT"
] | null | null | null | 3-C-And-CPlusPlus-Interview/3-6-CPlusPlusTest/3-6-4-Test4.cpp | wuping5719/JustFun | 18140dc1ee314ac8b87d7a95271e4ed2ddf7acd5 | [
"MIT"
] | 2 | 2016-10-15T17:59:31.000Z | 2018-06-06T09:44:35.000Z | #include "stdafx.h"
#include<stdio.h>
#include<stdlib.h>
void main()
{
int a=-3;
unsigned int b=2;
long c=a+b;
printf("%ld\n",c);
int x=10;
int y=10;
x=y=++y;
printf("%d %d",x,y);
}
| 11.823529 | 24 | 0.542289 | wuping5719 |
7c681e767fdd267c0413fe96aa9ec6f9bb3d14f5 | 16,453 | cpp | C++ | ROLE/vision/hls/gammacorrection/src/gammacorrection.cpp | cloudFPGA/cFp_Zoo | 3aefb12108f99fcfd0d39a8aae97cf87428a6873 | [
"Apache-2.0"
] | 6 | 2021-12-29T10:58:28.000Z | 2022-02-15T06:07:05.000Z | ROLE/vision/hls/gammacorrection/src/gammacorrection.cpp | cloudFPGA/cFp_Zoo | 3aefb12108f99fcfd0d39a8aae97cf87428a6873 | [
"Apache-2.0"
] | 2 | 2022-01-17T10:35:55.000Z | 2022-02-04T09:28:47.000Z | ROLE/vision/hls/gammacorrection/src/gammacorrection.cpp | cloudFPGA/cFp_Zoo | 3aefb12108f99fcfd0d39a8aae97cf87428a6873 | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
* @file gammacorrection.cpp
* @brief The Role for a Gammacorrection Example application (UDP or TCP)
* @author FAB, WEI, NGL, DID
* @date May 2020
*-------------------------------------------------------------------... | 33.238384 | 141 | 0.587917 | cloudFPGA |
7c6932698dcd328d5f0ea9a9641c7efacd43d132 | 2,841 | cpp | C++ | cpp/recursionAlgorithms.cpp | chaohan/code-samples | 0ae7da954a36547362924003d56a8bece845802c | [
"MIT"
] | null | null | null | cpp/recursionAlgorithms.cpp | chaohan/code-samples | 0ae7da954a36547362924003d56a8bece845802c | [
"MIT"
] | null | null | null | cpp/recursionAlgorithms.cpp | chaohan/code-samples | 0ae7da954a36547362924003d56a8bece845802c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/assignment.hpp>
#include <boost/math/special_functions/binomial.hpp>
namespace recursionAlgorithms
{
using namespace std;
using namespace boost::numeric::ublas;
/*9.1
... | 30.548387 | 91 | 0.489968 | chaohan |
7c69fedde02fc2b628a2647295210f9458bd8b0e | 590 | cpp | C++ | 1800.cpp | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 6 | 2021-04-13T00:33:43.000Z | 2022-02-10T10:23:59.000Z | 1800.cpp | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | null | null | null | 1800.cpp | heltonricardo/URI | 160cca22d94aa667177c9ebf2a1c9864c5e55b41 | [
"MIT"
] | 3 | 2021-03-23T18:42:24.000Z | 2022-02-10T10:24:07.000Z | #include <iostream>
using namespace std;
bool tem(int n, int *p, int e) {
int i;
for (i = 0; i < e; ++i)
if (n == p[i])
return true;
return false;
}
int main(void) {
int i, n, q, e, *p;
cin >> q >> e;
p = (int *) realloc(p, e * sizeof(int));
for (i = 0; i < e; ++i)
cin >> ... | 15.945946 | 49 | 0.391525 | heltonricardo |
7c6f89b99a1f79e2af8474f3b44af03200f0a6c3 | 4,119 | cpp | C++ | main-menu.cpp | Daft-Freak/super-blit-kart | 9fa17ad45c8857eebd72d0928d0be74afdf9e1fb | [
"MIT"
] | 2 | 2021-10-15T23:22:21.000Z | 2021-11-11T06:34:56.000Z | main-menu.cpp | Daft-Freak/super-blit-kart | 9fa17ad45c8857eebd72d0928d0be74afdf9e1fb | [
"MIT"
] | null | null | null | main-menu.cpp | Daft-Freak/super-blit-kart | 9fa17ad45c8857eebd72d0928d0be74afdf9e1fb | [
"MIT"
] | null | null | null | #include "engine/save.hpp"
#include "graphics/font.hpp"
#include "graphics/tilemap.hpp"
#include "main-menu.hpp"
#include "fonts.hpp"
#include "game.hpp"
#include "kart-select.hpp"
static const int menu_target_y = 96;
static const int logo_target_y = 8; // where the logo is when the menu is up
MainMenu::MainMenu(Ga... | 27.831081 | 176 | 0.55159 | Daft-Freak |
7c72de651605385eff7faae5b93f30321a5953b8 | 7,805 | cpp | C++ | D&D Wrath of Silumgar/Motor2D/UIBar.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 3 | 2019-06-21T04:40:16.000Z | 2020-07-07T13:09:53.000Z | D&D Wrath of Silumgar/Motor2D/UIBar.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 56 | 2018-05-07T10:30:08.000Z | 2018-05-15T08:27:06.000Z | D&D Wrath of Silumgar/Motor2D/UIBar.cpp | Wilhelman/DD-Shadow-over-Mystara | d4303ad87cc442414c0facb71ce9cd5564b51039 | [
"MIT"
] | 3 | 2019-01-03T17:24:57.000Z | 2019-05-04T08:49:12.000Z | #include "ctApp.h"
#include "UIBar.h"
#include "ctLog.h"
#include "ctInput.h"
#include "ctPerfTimer.h"
UIBar::UIBar(int x, int y, int max_capacity, UI_Type type, ctModule* callback, Entity* entity, UIElement* parent) : UIElement(x, y, type, parent)
{
this->entity = entity;
this->callback = callback;
bar_type = type... | 31.095618 | 155 | 0.678796 | Wilhelman |
7c72e74f787e49768ff10fe148f2314d278fd7a0 | 1,991 | cpp | C++ | src/source/DRV_STATUS.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 336 | 2018-03-26T13:51:46.000Z | 2022-03-21T21:58:47.000Z | src/source/DRV_STATUS.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 218 | 2017-07-28T06:13:53.000Z | 2022-03-26T16:41:21.000Z | src/source/DRV_STATUS.cpp | ManuelMcLure/TMCStepper | c425c40f0adfa24c1c21ce7d6428bcffc2c921ae | [
"MIT"
] | 176 | 2018-09-11T22:16:27.000Z | 2022-03-26T13:04:03.000Z | #include "TMCStepper.h"
#include "TMC_MACROS.h"
#define GET_REG(NS, SETTING) NS::DRV_STATUS_t r{0}; r.sr = DRV_STATUS(); return r.SETTING
uint32_t TMC2130Stepper::DRV_STATUS() { return read(DRV_STATUS_t::address); }
uint16_t TMC2130Stepper::sg_result(){ GET_REG(TMC2130_n, sg_result); }
bool TMC2130Stepper::fsactive... | 51.051282 | 89 | 0.692617 | ManuelMcLure |
7c7472c04ab1ade0a573cefb0c73da8759b41c18 | 5,786 | hpp | C++ | utility/common.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | utility/common.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | utility/common.hpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | // utility/common.hpp
//
// Copyright (c) 2007, 2008 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#ifndef UTILITY_CO... | 20.230769 | 89 | 0.636709 | joydit |
7c7a0027366c78fc4135120f217b0a26563d406d | 1,243 | hpp | C++ | src/details/std_includes.hpp | spanishgum/leetcode-driver | 71883bcdca946684133fbf263a1186f1758ef594 | [
"MIT"
] | null | null | null | src/details/std_includes.hpp | spanishgum/leetcode-driver | 71883bcdca946684133fbf263a1186f1758ef594 | [
"MIT"
] | null | null | null | src/details/std_includes.hpp | spanishgum/leetcode-driver | 71883bcdca946684133fbf263a1186f1758ef594 | [
"MIT"
] | null | null | null | #ifndef LEET_STD_INCLUDES
#define LEET_STD_INCLUDES
// Utilities
#include <any>
#include <bitset>
#include <chrono>
#include <cstddef>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <initializer_list>
#include <optional>
#include <tuple>
#include <utility>
#include <variant>
// Numeric limits
#inc... | 15.345679 | 29 | 0.730491 | spanishgum |
7c7a08c9852c8e5c95ae138d13b55f428b9d6967 | 1,198 | cpp | C++ | LeetCode/Tag/Tree/cpp/1026.maximum-difference-between-node-and-ancestor.cpp | pakosel/competitive-coding-problems | 187a2f13725e06ab3301ae2be37f16fbec0c0588 | [
"MIT"
] | 17 | 2017-08-12T14:42:46.000Z | 2022-02-26T16:35:44.000Z | LeetCode/Tag/Tree/cpp/1026.maximum-difference-between-node-and-ancestor.cpp | pakosel/competitive-coding-problems | 187a2f13725e06ab3301ae2be37f16fbec0c0588 | [
"MIT"
] | 21 | 2019-09-20T07:06:27.000Z | 2021-11-02T10:30:50.000Z | LeetCode/Tag/Tree/cpp/1026.maximum-difference-between-node-and-ancestor.cpp | pakosel/competitive-coding-problems | 187a2f13725e06ab3301ae2be37f16fbec0c0588 | [
"MIT"
] | 21 | 2017-05-28T10:15:07.000Z | 2021-07-20T07:19:58.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 31.526316 | 93 | 0.558431 | pakosel |
7c7a1d21ea3255ef6f49069dd2d2f724ec0f54d9 | 474 | cpp | C++ | Source/Pickup/BodyPickup.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | 2 | 2016-12-13T19:13:10.000Z | 2017-08-14T04:46:52.000Z | Source/Pickup/BodyPickup.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | null | null | null | Source/Pickup/BodyPickup.cpp | thatguyabass/Kill-O-Byte-Source | 0d4dfea226514161bb9799f55359f91da0998256 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Snake_Project.h"
#include "BodyPickup.h"
#include "SnakeCharacter/SnakeLink.h"
ABodyPickup::ABodyPickup(const class FObjectInitializer& PCIP)
: Super(PCIP)
{
BodyCount = 1;
PrimaryActorTick.bCanEverTick = true;
}
void ABodyP... | 19.75 | 78 | 0.729958 | thatguyabass |
75a984de4827742461d2830e303d1937594eb911 | 181 | cpp | C++ | src/musl/setsid.cpp | jaeh/IncludeOS | 1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02 | [
"Apache-2.0"
] | 3,673 | 2015-12-01T22:14:02.000Z | 2019-03-22T03:07:20.000Z | src/musl/setsid.cpp | jaeh/IncludeOS | 1cc2bcf36758ff5ef3099e0c0c1ee55f0bb1de02 | [
"Apache-2.0"
] | 960 | 2015-12-01T20:40:36.000Z | 2019-03-22T13:21:21.000Z | src/musl/setsid.cpp | AndreasAakesson/IncludeOS | 891b960a0a7473c08cd0d93a2bba7569c6d88b48 | [
"Apache-2.0"
] | 357 | 2015-12-02T09:32:50.000Z | 2019-03-22T09:32:34.000Z | #include "common.hpp"
#include <sys/types.h>
#include <unistd.h>
long sys_setsid()
{
return 0;
}
extern "C"
long syscall_SYS_setsid()
{
return strace(sys_setsid, "setsid");
}
| 12.066667 | 38 | 0.685083 | jaeh |
75aca9ce130ac4b59f5fa9339df6ad748481735b | 1,623 | cpp | C++ | tests/madoka/topic.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | null | null | null | tests/madoka/topic.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | 8 | 2019-08-26T22:57:37.000Z | 2021-09-11T17:35:50.000Z | tests/madoka/topic.cpp | cre-ne-jp/irclog2json | 721f9c6f247ae9d972dff8c1b3befa36bb1e062e | [
"MIT"
] | null | null | null | #define _XOPEN_SOURCE
#include <doctest/doctest.h>
#include <ctime>
#include <picojson.h>
#include "message/madoka_line_parser.h"
#include "message/message_base.h"
#include "tests/test_helper.h"
TEST_CASE("Madoka TOPIC") {
using irclog2json::message::MadokaLineParser;
struct tm tm_date {};
strptime("1999-... | 22.232877 | 72 | 0.637708 | cre-ne-jp |
75b8fcfd7bc4f73455647918ce2b8430faf484ec | 38 | hpp | C++ | include/minsoo/fracbit/fixed30_2.hpp | RatkoFri/minsoo_caffe | be68b7ad0006d6145d6629eeb5b65cf3dd8b7437 | [
"BSD-2-Clause"
] | 1 | 2020-10-19T10:17:39.000Z | 2020-10-19T10:17:39.000Z | include/minsoo/fracbit/fixed30_2.hpp | RatkoFri/minsoo_caffe | be68b7ad0006d6145d6629eeb5b65cf3dd8b7437 | [
"BSD-2-Clause"
] | null | null | null | include/minsoo/fracbit/fixed30_2.hpp | RatkoFri/minsoo_caffe | be68b7ad0006d6145d6629eeb5b65cf3dd8b7437 | [
"BSD-2-Clause"
] | 1 | 2021-11-15T08:39:10.000Z | 2021-11-15T08:39:10.000Z | #define INTBITS 30
#define FRACBITS 2
| 12.666667 | 18 | 0.789474 | RatkoFri |
75bbf795200ee302081f4ab835ab59176362c83d | 461 | hpp | C++ | engine/utility/type/Color.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | engine/utility/type/Color.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | engine/utility/type/Color.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics/Color.hpp>
namespace nemo
{
struct BorderColor {
sf::Color v_;
};
struct BackgroundColor {
sf::Color v_;
};
struct TextColor {
sf::Color v_;
};
struct TextBoxColors
{
BorderColor border_;
BackgroundColor backgnd_;
TextColor text_;
TextBoxColors(const BorderCo... | 13.171429 | 72 | 0.696312 | zhec9 |
75bd90ce5ea5c0489bee31cb9146d845703813bf | 1,736 | hpp | C++ | include/Map.hpp | sarahkittyy/raycasting-3d-test | 7c2c849bafd4156ce66819ed89afe24aeb570503 | [
"MIT"
] | null | null | null | include/Map.hpp | sarahkittyy/raycasting-3d-test | 7c2c849bafd4156ce66819ed89afe24aeb570503 | [
"MIT"
] | null | null | null | include/Map.hpp | sarahkittyy/raycasting-3d-test | 7c2c849bafd4156ce66819ed89afe24aeb570503 | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "nlohmann/json.hpp"
#include "Line.hpp"
/**
* @brief Drawable map class, consisting of lines strewn around the screen.
*
*/
class Map : public sf::Drawable
{
public:
/**
* @brief Con... | 19.288889 | 132 | 0.640553 | sarahkittyy |
75c031dc828206695086c835452e2c652e519b04 | 732 | cpp | C++ | various/STL/remove.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 14 | 2019-04-23T13:45:10.000Z | 2022-03-12T18:26:47.000Z | various/STL/remove.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | null | null | null | various/STL/remove.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 9 | 2019-09-01T15:17:45.000Z | 2020-11-13T20:31:36.000Z | // remove, remove_if, erase
#include <iostream>
#include <vector>
using namespace std;
void print_vector(vector<int> v){
for_each(begin(v), end(v), [](int x){cout << x << " ";});
cout << endl;
}
int main()
{
vector<int> v{1,2,3,4,5,2,3,2};
auto mark = remove(begin(v), end(v), 2);
print_vector(v)... | 19.263158 | 76 | 0.54918 | chgogos |
75c18c6cd22c7100d9932b21c1e61c08c544bc5d | 880 | cpp | C++ | 1SST/7LW/7task_6.cpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 1SST/7LW/7task_6.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 1SST/7LW/7task_6.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | // Даны два натуральных числа A и B (A < B). Написать функцию, выводящую все числа из диапазона [A; B], которые делятся на свою наибольшую цифру. Для поиск наибольшей цифры числа реализовать отдельную функцию
#include <iostream>
int maxDigitInNumber(int number);
int main(){
printf("\n\nВведите А и B через пробел... | 27.5 | 209 | 0.619318 | AVAtarMod |
75c8031474bb28baf1f6f513faa409feaf1487f2 | 3,255 | cxx | C++ | panda/src/pgui/pgMouseWatcherBackground.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/pgui/pgMouseWatcherBackground.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/pgui/pgMouseWatcherBackground.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: pgMouseWatcherBackground.cxx
// Created by: drose (23Aug01)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// licens... | 37.413793 | 70 | 0.508449 | kestred |
75c96a3527e78516d556343142cffc8d07fe920e | 44,190 | cc | C++ | release/src-rt-6.x.4708/router/mysql/storage/myisammrg/ha_myisammrg.cc | afeng11/tomato-arm | 1ca18a88480b34fd495e683d849f46c2d47bb572 | [
"FSFAP"
] | 278 | 2015-11-03T03:01:20.000Z | 2022-01-20T18:21:05.000Z | release/src-rt-6.x.4708/router/mysql/storage/myisammrg/ha_myisammrg.cc | afeng11/tomato-arm | 1ca18a88480b34fd495e683d849f46c2d47bb572 | [
"FSFAP"
] | 374 | 2015-11-03T12:37:22.000Z | 2021-12-17T14:18:08.000Z | release/src-rt-6.x.4708/router/mysql/storage/myisammrg/ha_myisammrg.cc | afeng11/tomato-arm | 1ca18a88480b34fd495e683d849f46c2d47bb572 | [
"FSFAP"
] | 96 | 2015-11-22T07:47:26.000Z | 2022-01-20T19:52:19.000Z | /* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... | 33.325792 | 88 | 0.667413 | afeng11 |
75ccfae159f1fa788169a3ad78a906d158d397f4 | 790 | cpp | C++ | BashuOJ-Code/2905.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/2905.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/2905.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstring>
#include<iomanip>
#include<cmath>
#define N 50005
bool PrimeNum[N*100]={0};
int Num[N]={0};
void Prime()
{
int i,j;
PrimeNum[0]=PrimeNum[1]=1;
PrimeNum[2]=0;
for(i=2;i<sqrt(N);i++)
{
if(PrimeNum[i]==0)
{
j=2;
while(i*j<N)
{
P... | 17.173913 | 50 | 0.563291 | magicgh |
75cf9a9fb0254ab8b3422850313ba06ea6f79795 | 1,991 | cpp | C++ | Book/problem_solving/ch06/main.cpp | coder137/CPP-Repo | 852dffa42e7fc42e320e4a90abd80d5a045d4ffd | [
"MIT"
] | null | null | null | Book/problem_solving/ch06/main.cpp | coder137/CPP-Repo | 852dffa42e7fc42e320e4a90abd80d5a045d4ffd | [
"MIT"
] | null | null | null | Book/problem_solving/ch06/main.cpp | coder137/CPP-Repo | 852dffa42e7fc42e320e4a90abd80d5a045d4ffd | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream> // File IO
#include <cstdlib> // exit statement
#include <iomanip> // manipulator
using namespace std;
static const string READ_FILE = "r.txt";
static const string WRITE_FILE = "w.txt";
// Reads and writes to the file
void read_write_example();
// Writes data to a written fil... | 17.464912 | 69 | 0.629332 | coder137 |
75cff7cc71e9cbc6e1c6da336bd2c926ccbfb761 | 2,371 | cpp | C++ | test/dldist_test.cpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | test/dldist_test.cpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | test/dldist_test.cpp | namreeb/string_algorithms | a91ac5752538bd06d02c390a96e831d4b084bf7d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019 namreeb (legal@namreeb.org) http://github.com/namreeb/string_algorithms
*
* 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, i... | 36.476923 | 111 | 0.645297 | namreeb |
75d15718c760e3149f547fc246fb041a3dd0a22c | 2,923 | hpp | C++ | Box2D/Dynamics/JointAtty.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Box2D/Dynamics/JointAtty.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Box2D/Dynamics/JointAtty.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2011 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* ar... | 32.842697 | 116 | 0.640096 | louis-langholtz |
75d6e972d9a4b3e2aa3bcfe07af269cf53758571 | 2,378 | cpp | C++ | cpp/module1_prac/main.cpp | FinancialEngineerLab/bootstrappingSwapCurve | 2b2e7b92b6a945ecf09c78f53b53227afe580195 | [
"MIT"
] | null | null | null | cpp/module1_prac/main.cpp | FinancialEngineerLab/bootstrappingSwapCurve | 2b2e7b92b6a945ecf09c78f53b53227afe580195 | [
"MIT"
] | null | null | null | cpp/module1_prac/main.cpp | FinancialEngineerLab/bootstrappingSwapCurve | 2b2e7b92b6a945ecf09c78f53b53227afe580195 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <iomanip>
#include "utilities.hpp"
#include "curvebuilder.hpp"
using namespace std;
int main()
{
ifstream infile;
infile.open("data.txt");
double x;
int mark = 1;
vector<curveUtils> bondSeries;
vector<curveUtils>::iterator bondSer... | 29.358025 | 158 | 0.586207 | FinancialEngineerLab |
75d7330ef3ae13d656f42931b16afae3e2ee5a5a | 4,300 | cpp | C++ | XsGameEngine/src/Renderer/OpenGL_Renderer/OpenGL_Renderer.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | XsGameEngine/src/Renderer/OpenGL_Renderer/OpenGL_Renderer.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | XsGameEngine/src/Renderer/OpenGL_Renderer/OpenGL_Renderer.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | #include "OpenGL_Renderer.h"
#pragma region Public Functions
int OpenGL_Renderer::init_OpenGL_Renderer(GLFWwindow* newWindow)
{
window = newWindow;
int gladStatus = gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
if (gladStatus == 0)
{
printf("Glad initialization failed!");
glfwDestroyWindow(newWindow);
... | 27.741935 | 197 | 0.75093 | XsAndre-L |
75d75da91d4357d52c388be777de3f2df0f7e489 | 5,039 | hpp | C++ | source/use_case/kws_asr/include/Wav2LetterMfcc.hpp | alifsemi/ensembleML | 223ae0e8e765d118b982ffbcb280b5acdc799a75 | [
"Apache-2.0"
] | null | null | null | source/use_case/kws_asr/include/Wav2LetterMfcc.hpp | alifsemi/ensembleML | 223ae0e8e765d118b982ffbcb280b5acdc799a75 | [
"Apache-2.0"
] | null | null | null | source/use_case/kws_asr/include/Wav2LetterMfcc.hpp | alifsemi/ensembleML | 223ae0e8e765d118b982ffbcb280b5acdc799a75 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Arm Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* 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/... | 44.201754 | 98 | 0.580274 | alifsemi |
75d7d2c124375ff010f8e56e4f3b08c7be2174a2 | 849 | cpp | C++ | src/algorithms/warmup/TimeConversion.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | src/algorithms/warmup/TimeConversion.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | src/algorithms/warmup/TimeConversion.cpp | notoes/HackerRankChallenges | 95f280334846a57cfc8433662a1ed0de2aacc3e9 | [
"MIT"
] | null | null | null | /*
https://www.hackerrank.com/challenges/time-conversion
Given a time in AM/PM format, convert it to military (2424-hour) time.
*/
#include <iostream>
#include <iomanip>
#include <sstream>
using namespace std;
int string_to_int( const string& str )
{
stringstream stream(str);
int res;
return (str... | 22.945946 | 92 | 0.603062 | notoes |
75e5d14fbcb52d1ad2af711a5fc2503d16dce2aa | 556 | cpp | C++ | src/examples/06_module/01_bank/atm.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003 | c3e3c7e5d08cd1b397346d209095f67714f76689 | [
"MIT"
] | null | null | null | src/examples/06_module/01_bank/atm.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003 | c3e3c7e5d08cd1b397346d209095f67714f76689 | [
"MIT"
] | null | null | null | src/examples/06_module/01_bank/atm.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-blacksea2003 | c3e3c7e5d08cd1b397346d209095f67714f76689 | [
"MIT"
] | null | null | null | //atm.cpp
#include "atm.h"
using std::cout; using std::cin;
ATM::ATM()
{
customers.push_back(Customer(1, "john doe"));
customers.push_back(Customer(2, "mary doe"));
customers.push_back(Customer(3, "john hancock"));
customers.push_back(Customer(4, "mary hancock"));
}
void scan_card()
{
cout<<"e... | 20.592593 | 85 | 0.656475 | acc-cosc-1337-fall-2020 |
75e763f1eb7e2de6c3fdfa6fc3cc69dafcf05ed6 | 14,024 | cpp | C++ | tools/mayaexp/meuvmap.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | 1 | 2019-02-13T15:39:56.000Z | 2019-02-13T15:39:56.000Z | tools/mayaexp/meuvmap.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | null | null | null | tools/mayaexp/meuvmap.cpp | Caprica666/vixen | b71e9415bbfa5f080aee30a831e3b0c8f70fcc7d | [
"BSD-2-Clause"
] | 2 | 2017-11-09T12:06:41.000Z | 2019-02-13T15:40:02.000Z | #include "vix_all.h"
#include <maya/MFnSet.h>
#include <maya/MFnTransform.h>
#include <maya/MPlug.h>
#include <maya/MPlugArray.h>
#include <maya/MItDependencyGraph.h>
#include <maya/MFnCompoundAttribute.h>
/*!
* @fn SharedObj* meConvProj::Make()
*
* A Maya projection node applies a 3D projection onto a texture. It ... | 26.311445 | 101 | 0.626569 | Caprica666 |
75ea5655890fd577b72626602b66c3d853426fa5 | 616 | cpp | C++ | src/common/onRead.cpp | LeandreBl/Subprocess | b45320878ca43ae0058676c93222be4a46ac8cd1 | [
"Apache-2.0"
] | 4 | 2020-12-10T20:22:53.000Z | 2021-11-08T08:24:49.000Z | src/common/onRead.cpp | LeandreBl/Subprocess | b45320878ca43ae0058676c93222be4a46ac8cd1 | [
"Apache-2.0"
] | null | null | null | src/common/onRead.cpp | LeandreBl/Subprocess | b45320878ca43ae0058676c93222be4a46ac8cd1 | [
"Apache-2.0"
] | 1 | 2021-11-08T08:33:22.000Z | 2021-11-08T08:33:22.000Z | #include <assert.h>
#include "Process.hpp"
namespace lp {
void Process::onReadStdout(
const std::function<void(Process &process, std::stringstream &stream)> &callback) noexcept
{
onRead(Stdout, callback);
}
void Process::onReadStderr(
const std::function<void(Process &process, std::stringstream &str... | 26.782609 | 98 | 0.699675 | LeandreBl |
75ed0014c7c7b474158a7e27ed29bd24aa0f13e6 | 5,817 | cc | C++ | tests/TestConvolution.cc | vbertone/NangaParbat | 49529d0a2e810dfe0ec676c8e96081be39a8800d | [
"MIT"
] | 3 | 2020-01-16T17:15:54.000Z | 2020-01-17T10:59:39.000Z | tests/TestConvolution.cc | vbertone/NangaParbat | 49529d0a2e810dfe0ec676c8e96081be39a8800d | [
"MIT"
] | null | null | null | tests/TestConvolution.cc | vbertone/NangaParbat | 49529d0a2e810dfe0ec676c8e96081be39a8800d | [
"MIT"
] | 3 | 2020-01-18T22:10:02.000Z | 2020-08-01T18:42:36.000Z | //
// Author: Valerio Bertone: valerio.bertone@cern.ch
//
#include "NangaParbat/createtmdgrid.h"
#include "NangaParbat/factories.h"
#include "NangaParbat/bstar.h"
#include "NangaParbat/nonpertfunctions.h"
#include <LHAPDF/LHAPDF.h>
#include <sys/stat.h>
#include <fstream>
#include <cstring>
//_______________________... | 41.55 | 153 | 0.636754 | vbertone |
75efbcc08d8d0e3ee914dc8da19344269d439dca | 868 | hpp | C++ | src/designpattern/Interpret.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | src/designpattern/Interpret.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | src/designpattern/Interpret.hpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
using namespace std;
class ContextIpt;
class AbstractExpression
{
public:
virtual ~AbstractExpression();
virtual void Interpret(const ContextIpt& c) = 0;
protected:
AbstractExpression();
};
class TerminalExpression:public AbstractExpression
{
public:
Termi... | 18.083333 | 67 | 0.708525 | brucexia1 |
75f0e03b43ef4d956d8b7cf47e2e63accf57452e | 6,655 | hpp | C++ | Include/LibYT/GenericFormatter.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | Include/LibYT/GenericFormatter.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | Include/LibYT/GenericFormatter.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2021 Malte Dömer
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclai... | 27.729167 | 115 | 0.518407 | MalteDoemer |
75f1bc7ff426f5f916c96191f9b8b555070793bb | 113 | cpp | C++ | src/ace/ACE_wrappers/ACEXML/common/Element_Def_Builder.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 8 | 2017-06-05T08:56:27.000Z | 2020-04-08T16:50:11.000Z | src/ace/ACE_wrappers/ACEXML/common/Element_Def_Builder.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | null | null | null | src/ace/ACE_wrappers/ACEXML/common/Element_Def_Builder.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 17 | 2017-06-05T08:54:27.000Z | 2021-08-29T14:19:12.000Z | #include "ACEXML/common/Element_Def_Builder.h"
ACEXML_Element_Def_Builder::~ACEXML_Element_Def_Builder ()
{
}
| 14.125 | 58 | 0.80531 | wfnex |
75f382549281b6d76b030be15fe9b88c8b99759c | 2,938 | cpp | C++ | library/src/main/cpp/filters/PolarPixellateFilter.cpp | 1463836/android-gpuimage-plus | ad00886e8947e69548814eb457e39985aebea103 | [
"MIT"
] | null | null | null | library/src/main/cpp/filters/PolarPixellateFilter.cpp | 1463836/android-gpuimage-plus | ad00886e8947e69548814eb457e39985aebea103 | [
"MIT"
] | null | null | null | library/src/main/cpp/filters/PolarPixellateFilter.cpp | 1463836/android-gpuimage-plus | ad00886e8947e69548814eb457e39985aebea103 | [
"MIT"
] | null | null | null | /*
* cgePolarPixellateFilter.cpp
*
* Created on: 2015-2-1
* Author: Wang Yang
*/
#include "PolarPixellateFilter.h"
static ConstString s_fshPolarPixellate = CGE_SHADER_STRING_PRECISION_M
(
varying vec2 textureCoo... | 43.850746 | 105 | 0.365895 | 1463836 |
75f867193418ac6fda899f1462b53aaf2c76eb50 | 316 | cpp | C++ | Baekjoon Online Judge/1 ~ 9999/2501/boj-2501.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | 1 | 2019-05-17T16:16:43.000Z | 2019-05-17T16:16:43.000Z | Baekjoon Online Judge/1 ~ 9999/2501/boj-2501.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | null | null | null | Baekjoon Online Judge/1 ~ 9999/2501/boj-2501.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2019. Minho Cheon. All rights reserved.
*/
#include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
int cnt = 0;
for (int i = 1 ; i <= n ; ++i) {
if (n % i == 0) {
++cnt;
if (cnt == k) {
cout << i << endl;
return 0;
}
}
}
cout << 0 << endl;
} | 12.64 | 56 | 0.46519 | kesakiyo |