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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5321df21a41c8bbe9a19670446cb6a24a27ca34c | 8,022 | hpp | C++ | KFR/include/kfr/dsp/oscillators.hpp | Asifadam93/FiltreMusical | dcd53bc41934f219fb9b3d5aef281099fb572a49 | [
"BSD-3-Clause"
] | null | null | null | KFR/include/kfr/dsp/oscillators.hpp | Asifadam93/FiltreMusical | dcd53bc41934f219fb9b3d5aef281099fb572a49 | [
"BSD-3-Clause"
] | null | null | null | KFR/include/kfr/dsp/oscillators.hpp | Asifadam93/FiltreMusical | dcd53bc41934f219fb9b3d5aef281099fb572a49 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2016 D Levin (http://www.kfrlib.com)
* This file is part of KFR
*
* KFR is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... | 28.856115 | 108 | 0.721516 | Asifadam93 |
5321f099bf6f9ded7e3b350abe66a8c9345c54b7 | 1,472 | cpp | C++ | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// \file FilesystemWindows.cpp
/// \author Hector Stalker <hstalker0@gmail.com>
/// \version 0.1
///
/// \brief Cross-platform filesystem handling code - Windows specific
///
/// \copyright Copyright (c) 2014, Hector Stalker. All rights re... | 28.862745 | 79 | 0.601902 | calhewitt |
5322a7ecf129c7d181d3f747bcab653342de468d | 12,344 | cc | C++ | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | 1 | 2015-04-03T15:18:52.000Z | 2015-04-03T15:18:52.000Z | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | null | null | null | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | null | null | null | /* Copyright (c) 2014-2015 Andreas Rain
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, distr... | 36.412979 | 112 | 0.590327 | saenridanra |
5323722b0462f8acc3b0e240d43fce4ca889afa4 | 228 | cpp | C++ | Engine/Source/Runtime/SlateCore/Private/Fonts/FontProviderInterface.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/SlateCore/Private/Fonts/FontProviderInterface.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/SlateCore/Private/Fonts/FontProviderInterface.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Fonts/FontProviderInterface.h"
UFontProviderInterface::UFontProviderInterface(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
| 25.333333 | 91 | 0.815789 | windystrife |
5323936abff33578169018a145c93e9c23b2d8e8 | 2,309 | cpp | C++ | src/udp_interface.cpp | storypku/network_interface | 50906c457ff6ed9684cfa3167b229124aabc6594 | [
"MIT"
] | 1 | 2020-06-02T08:52:03.000Z | 2020-06-02T08:52:03.000Z | src/udp_interface.cpp | storypku/network_interface | 50906c457ff6ed9684cfa3167b229124aabc6594 | [
"MIT"
] | null | null | null | src/udp_interface.cpp | storypku/network_interface | 50906c457ff6ed9684cfa3167b229124aabc6594 | [
"MIT"
] | null | null | null | /*
* Unpublished Copyright (c) 2009-2017 AutonomouStuff, LLC, All Rights Reserved.
*
* This file is part of the network_interface ROS 1.0 driver which is released under the MIT license.
* See file LICENSE included with this software or go to https://opensource.org/licenses/MIT for full license details.
*/
#include <ne... | 20.433628 | 117 | 0.662191 | storypku |
5325af0d311e39200f5fb2cea8688113ecadfdb6 | 1,094 | cpp | C++ | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:01:03.000Z | 2022-03-15T19:01:03.000Z | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:11:59.000Z | 2022-03-15T19:11:59.000Z | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | null | null | null | #include "process_queries.h"
#include <algorithm>
#include <execution>
#include <iterator>
#include <string>
#include <vector>
#include "document.h"
#include "search_server.h"
std::vector<std::vector<Document>> ProcessQueries(const SearchServer& search_server, const std::vector<std::string>& queries) {
std::vect... | 28.789474 | 127 | 0.680073 | oleg-nazarov |
5328d7fc5df06a60f6df800f03b5e2d992ad864a | 30,734 | cpp | C++ | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | #include <fs/Formats/FAT/FAT32/FATPartition.h>
#include <fs/Formats/FAT/FAT32/Directory.h>
#include <fs/Formats/FAT/FAT32/FAT.h>
using namespace UnifiedOS;
using namespace UnifiedOS::FileSystem;
using namespace UnifiedOS::FileSystem::FAT32;
#include <common/cstring.h> //Needed for path interaction
Fat32Partition::Fa... | 52.179966 | 276 | 0.413874 | Unified-Projects |
53298cf97e74554425a7e2d3be0f025f32ae6125 | 1,608 | cpp | C++ | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | #include "variable.hpp"
// globale variable
int32_t gVar[VARIABLE_COUNT];
int32_t sysVar[SYSTEM_VARIABLE_COUNT];
void initGlobaleVariable()
{
for(int32_t i = 0; i < VARIABLE_COUNT; ++i) gVar[i] = 0;
for(int32_t i = 0; i < SYSTEM_VARIABLE_COUNT; ++i) sysVar[i] = 0;
}
void resetGlobaleVariableAndString()
{
... | 20.615385 | 79 | 0.600746 | FoFabien |
532be93864c9a79d5616e6dd14585049baf732c0 | 31,561 | cpp | C++ | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #include "common.h"
#include "main.h"
#include "General.h"
#include "ModelIndices.h"
#include "FileMgr.h"
#include "Streaming.h"
#include "Replay.h"
#include "Camera.h"
#include "DMAudio.h"
#include "Wanted.h"
#include "Coronas.h"
#include "Particle.h"
#include "Explosion.h"
#include "World.h"
#include "HandlingMgr.h"... | 32.33709 | 136 | 0.701784 | gameblabla |
532cd22b5c3fc5703751081b99b23a3b37cd742d | 503 | cpp | C++ | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/ShaderPlayGround | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | 2 | 2019-12-04T17:06:44.000Z | 2019-12-24T16:33:37.000Z | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/GraphicsPlayground | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | null | null | null | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/GraphicsPlayground | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | null | null | null | #include "Vulkan/RendererBackend/vAccelerationStructure.h"
#include <Vulkan/Utilities/vAccelerationStructureUtil.h>
void vBLAS::generateBLAS(VkCommandBuffer commandBuffer,
mageVKBuffer& scratchBuffer, VkDeviceSize scratchOffset,
bool updateOnly) const
{
const VkAccelerationStructureNV previousStructure = updateOnly... | 31.4375 | 100 | 0.840954 | AmanSachan1 |
532d377395f6bef19fc6b88303fa8d4b7daa55ee | 116 | cpp | C++ | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 145 | 2018-04-10T17:24:39.000Z | 2022-03-27T17:39:03.000Z | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 779 | 2018-04-09T21:30:15.000Z | 2022-03-31T06:38:07.000Z | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 152 | 2018-04-10T10:52:18.000Z | 2022-03-09T08:24:16.000Z | /*
generate the tms9995 emulator
*/
#include "tms9900.h"
#define TMS99XX_MODEL TMS9995_ID
#include "99xxcore.h"
| 11.6 | 32 | 0.741379 | gameblabla |
532f4a85f62f3f26b85d1904dbdd3f72fc1d9a53 | 2,342 | cpp | C++ | src/gboost/wlearner.cpp | accosmin/libnano | 0c4014e1bc76c2e1b38d08211b000a4e17b00ed5 | [
"MIT"
] | null | null | null | src/gboost/wlearner.cpp | accosmin/libnano | 0c4014e1bc76c2e1b38d08211b000a4e17b00ed5 | [
"MIT"
] | 32 | 2019-02-18T10:35:59.000Z | 2021-12-10T10:37:15.000Z | src/gboost/wlearner.cpp | accosmin/libnano | 0c4014e1bc76c2e1b38d08211b000a4e17b00ed5 | [
"MIT"
] | 1 | 2019-08-05T06:11:09.000Z | 2019-08-05T06:11:09.000Z | #include <mutex>
#include <nano/logger.h>
#include <nano/tensor/stream.h>
#include <nano/gboost/wlearner_dstep.h>
#include <nano/gboost/wlearner_dtree.h>
#include <nano/gboost/wlearner_hinge.h>
#include <nano/gboost/wlearner_stump.h>
#include <nano/gboost/wlearner_table.h>
#include <nano/gboost/wlearner_affine.h>
usin... | 25.456522 | 93 | 0.66012 | accosmin |
53318d0cc4580daf9ddfc856c80d53c417521ea9 | 1,727 | cc | C++ | src/thread-crosser.cc | jjzhang166/capture-thread | 4c9930b1c223c2f9aa22714855a892e9aa4aa800 | [
"Apache-2.0"
] | null | null | null | src/thread-crosser.cc | jjzhang166/capture-thread | 4c9930b1c223c2f9aa22714855a892e9aa4aa800 | [
"Apache-2.0"
] | null | null | null | src/thread-crosser.cc | jjzhang166/capture-thread | 4c9930b1c223c2f9aa22714855a892e9aa4aa800 | [
"Apache-2.0"
] | null | null | null | /* -----------------------------------------------------------------------------
Copyright 2017 Google 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/LICENS... | 29.775862 | 80 | 0.628257 | jjzhang166 |
53327b456447c6c5ff086262ab9c12fb0d5f14f9 | 1,965 | cpp | C++ | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 3 | 2021-09-08T07:28:13.000Z | 2022-03-02T21:12:40.000Z | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 1 | 2021-09-21T14:40:55.000Z | 2021-09-26T01:19:38.000Z | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | null | null | null | //
// Created by James Noeckel on 4/7/20.
//
#include <iostream>
#include "utils/top_k_indices.hpp"
#include "utils/sorted_data_structures.hpp"
int main(int argc, char **argv) {
bool passed = true;
{
std::vector<int> sorted_vec;
sorted_insert(sorted_vec, 0);
sorted_insert(sorted_vec, 0... | 40.9375 | 116 | 0.561832 | ShnitzelKiller |
5335fbf56bc6ff0746bf13c3f4f09f653da58c71 | 347 | cc | C++ | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | null | null | null | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | 1 | 2018-01-19T16:11:44.000Z | 2018-01-19T16:11:44.000Z | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | null | null | null | #include "dreal/util/precision_guard.h"
namespace dreal {
PrecisionGuard::PrecisionGuard(std::ostream* os,
const std::streamsize precision)
: os_{os}, old_precision_(os->precision()) {
os_->precision(precision);
}
PrecisionGuard::~PrecisionGuard() { os_->precision(old_precision_)... | 24.785714 | 69 | 0.668588 | soonho-tri |
533c9c4ecdbdc99bc55d94df5c363119491a63bc | 7,874 | cc | C++ | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 1,707 | 2015-01-01T14:56:08.000Z | 2022-03-28T06:44:09.000Z | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 256 | 2015-01-03T14:55:53.000Z | 2020-09-09T10:43:46.000Z | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 222 | 2015-01-05T00:20:54.000Z | 2022-02-06T01:41:37.000Z | //------------------------------------------------------------------------------
// ResourceStress.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/Main.h"
#include "IO/IO.h"
#include "Gfx/Gfx.h"
#include "Dbg/Dbg.h"
#include "HttpFS/HTTPFileSystem.h"
... | 36.623256 | 93 | 0.578613 | infancy |
5340412ccab57648a683999611fdee489474ea5c | 21,781 | cpp | C++ | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | 2 | 2019-08-08T01:29:02.000Z | 2019-08-18T19:19:00.000Z | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2013-present The DataCentric 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 agreed to ... | 43.130693 | 189 | 0.635003 | datacentricorg |
5343d6120435da335650ff81116a483477fb7ea9 | 8,397 | cpp | C++ | src/graphics/szgrender.cpp | IllinoisSimulatorLab/szg | b9f9a2380107450c2f181ac6372427a0112b5ffe | [
"BSD-3-Clause"
] | 2 | 2017-01-07T23:43:03.000Z | 2017-09-29T14:31:09.000Z | src/graphics/szgrender.cpp | IllinoisSimulatorLab/szg | b9f9a2380107450c2f181ac6372427a0112b5ffe | [
"BSD-3-Clause"
] | null | null | null | src/graphics/szgrender.cpp | IllinoisSimulatorLab/szg | b9f9a2380107450c2f181ac6372427a0112b5ffe | [
"BSD-3-Clause"
] | null | null | null | //********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#define SZG_DO_NOT_EXPORT
#include "arGraphicsClient.h"
#include "arFramerate... | 31.215613 | 105 | 0.640586 | IllinoisSimulatorLab |
c7282262fd465904e45bed337de6db02e61c8422 | 2,754 | cpp | C++ | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | #include<iostream>
#include<cmath>
using namespace std;
class fraction{
private:
int num;
int den;
public:
fraction(int ,int );
fraction();
void lowterms();
void dislay();
void set_num(int tnum){
this->num=tnum;
}
void set_den(int tden){
this->den=tden;
}
void sum(fract... | 19.258741 | 68 | 0.582426 | anhtuanptit97 |
c72bca868e48f437a7b9e5dde5cd37e436ba5ea7 | 523 | cpp | C++ | Code-Chef/easy/CLEANUP.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | 1 | 2019-05-20T14:38:05.000Z | 2019-05-20T14:38:05.000Z | Code-Chef/easy/CLEANUP.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | Code-Chef/easy/CLEANUP.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | /*
Cleaning Up
*/
#include<bits/stdc++.h>
using namespace std;
void fun()
{
int m,n,k,i;
cin>>m>>n;
vector<int> v(m+1,0);
for(i=0;i<n;i++)
{
cin>>k;
v[k]=1;
}
k=0;
for(i=1;i<=m;i++)
{
if(v[i]==0)
{
if(k==0)
{
v[i]=1;
k=1;
cout<<i<<' ';
}
... | 11.12766 | 43 | 0.388145 | kishorevarma369 |
c72d04c7dcb638babe4a2cc935be8bf799e0caa8 | 652 | cpp | C++ | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
main()
{
int r,c;
cout<<"ENTER THE ROWS OF MATRICES= ";
cin>>r;
cout<<"ENTER THE COLUMN OF MATRICES= ";
cin>>c;
int a[r][c];
for(int i=0;i<r;i++)
{
for (int j=0;j<c;j++)
{
cout<<"Enter no= ";
cin>>a[i][j];
}
}
cout<<"\t\t\tOrignal Matrice:... | 15.52381 | 47 | 0.45092 | mohsin5432 |
c7320c0bde6cd6bc80cbc1ff77276bca42ebe908 | 20,668 | cpp | C++ | impl/opengl/webgl1es2/src/webgl1es2_shader_program.cpp | jfcameron/gdk-graphics | 1b6d84e044c2c953fd7c9501e628a67e80f4da0d | [
"MIT"
] | null | null | null | impl/opengl/webgl1es2/src/webgl1es2_shader_program.cpp | jfcameron/gdk-graphics | 1b6d84e044c2c953fd7c9501e628a67e80f4da0d | [
"MIT"
] | 63 | 2019-07-22T22:49:39.000Z | 2021-05-10T04:36:27.000Z | impl/opengl/webgl1es2/src/webgl1es2_shader_program.cpp | jfcameron/gdk-graphics | 1b6d84e044c2c953fd7c9501e628a67e80f4da0d | [
"MIT"
] | 1 | 2020-06-04T07:47:50.000Z | 2020-06-04T07:47:50.000Z | // © 2018 Joseph Cameron - All Rights Reserved
#include <gdkgraphics/buildinfo.h>
#include <gdk/glh.h>
#include <gdk/webgl1es2_shader_program.h>
#include <atomic>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <vector>
using namespace gdk;
static constexpr char TAG[] = "shader_program";
//! ... | 30.528804 | 151 | 0.653184 | jfcameron |
c732658bd36524425c901e678fe7257825e8df94 | 14,860 | cpp | C++ | source/scene/logic/scene.cpp | imstar15/breeze | 8793493c1245670a66e1a098a0d010c51e7b4783 | [
"Apache-2.0"
] | 454 | 2015-01-06T00:28:13.000Z | 2022-03-17T04:24:39.000Z | source/scene/logic/scene.cpp | 63890390/breeze | e9ce9fae7a3f9dc5f3f1c911a98d75707a50e6b0 | [
"Apache-2.0"
] | 8 | 2016-06-08T21:06:03.000Z | 2021-06-10T11:20:06.000Z | source/scene/logic/scene.cpp | 63890390/breeze | e9ce9fae7a3f9dc5f3f1c911a98d75707a50e6b0 | [
"Apache-2.0"
] | 214 | 2015-01-06T11:06:46.000Z | 2022-03-13T14:29:52.000Z | #include "scene.h"
#include "sceneMgr.h"
#include <aoe/aoe.h>
Scene::Scene(SceneID sceneID)
{
_sceneID = sceneID;
_sceneType = SCENE_NONE;
_sceneStatus = SCENE_STATE_NONE;
}
Scene::~Scene()
{
}
GroupID Scene::getGroupID(ServiceID avatarID)
{
auto entity = getEntityByAvatarID(avatarID);
if (entity... | 27.166362 | 181 | 0.622813 | imstar15 |
c733235662dafc098745f0014db4524b3674cb8f | 394 | cpp | C++ | Engine/src/Layer_Console.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | 1 | 2020-01-04T20:17:42.000Z | 2020-01-04T20:17:42.000Z | Engine/src/Layer_Console.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | null | null | null | Engine/src/Layer_Console.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | null | null | null | //@group Layers
#include "Layer_Console.h"
#include "core_Log.h"
#define LOG_MESSAGE(...) LOG_TRACE(__VA_ARGS__)
namespace Engine
{
Layer_Console::Layer_Console()
{
}
Layer_Console::~Layer_Console()
{
}
void Layer_Console::Update(float a_dt)
{
}
void Layer_Console::HandleMessage(Message * a... | 12.709677 | 53 | 0.659898 | int-Frank |
c738b91713fb49991d53ba916a740c2084e6d15c | 4,044 | hxx | C++ | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #include <type_traits>
namespace elle
{
namespace reactor
{
/*----.
| End |
`----*/
template <typename T>
Generator<T>::End::End(Generator<T> const& g)
: elle::Error(elle::sprintf("%s exhausted", g))
{}
/*-------------.
| Construction |
`-------------*/
template <ty... | 22.977273 | 74 | 0.526954 | infinitio |
c73cb9c65a54973505931ffed10a564f468f2d31 | 13,219 | cpp | C++ | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include <nvs.h>
#include <nvs_flash.h>
#include "aws_iot_config.h"
#include "aws_iot_log.h"
#include "aws_iot_version.h"
#include "aws_iot_mqtt_client_int... | 34.069588 | 205 | 0.667827 | nkskjames |
c73faa6d771bdc30f574843285dbb285760bc25a | 15,360 | cpp | C++ | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | null | null | null | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | null | null | null | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | 1 | 2019-10-19T04:49:33.000Z | 2019-10-19T04:49:33.000Z | #include <cassert>
#include <mutex>
#include <sstream>
#include "Audio.h"
#include "InputDevice.h"
#include "onut.h"
#include "Window.h"
using namespace DirectX;
// Our engine services
onut::Window* OWindow = nullptr;
onut::Renderer* ORenderer = nullptr;
onut::Settings* ... | 33.982301 | 176 | 0.484375 | Daivuk |
c7415ed8fe10f663b4035c93700c36926c2e33a4 | 1,482 | cpp | C++ | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 8 | 2015-01-23T05:41:46.000Z | 2019-11-20T05:10:27.000Z | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | null | null | null | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 4 | 2015-05-05T05:15:43.000Z | 2020-03-07T11:10:56.000Z | /*********************************************************************************************************
* Containerlogger.cpp
* Note: Phoenix Container
* Date: @2015.03
* E-mail:<forcemz@outlook.com>
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
***********************************************************... | 22.119403 | 107 | 0.556005 | fstudio |
c7449a6d1a4cda9ce40b45a470791de89486a982 | 2,630 | cpp | C++ | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 67 | 2020-11-12T11:51:37.000Z | 2022-03-01T13:44:43.000Z | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 4 | 2021-04-09T08:22:06.000Z | 2021-06-07T13:43:13.000Z | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 12 | 2020-11-12T11:51:42.000Z | 2022-02-11T08:07:37.000Z | /****************************************************************************
Copyright (c) 2008-2020 Kevin Wu (Wu Feng)
github: https://github.com/kevinwu1024/ExtremeCopy
site: http://www.easersoft.com
Licensed under the Apache License, Version 2.0 License (the "License"); you may not use this file except
in compli... | 29.222222 | 104 | 0.725095 | kevinwu1024 |
c7483cb6f45312806af90fa08caae046cdbee30b | 274 | cpp | C++ | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#include "scene/entity.hpp"
namespace k2d {
Entity::Entity(entt::entity handle, Scene& scene) :
m_handle(handle),
m_sceneRef(scene)
{
}
} // namespace k2d
| 14.421053 | 55 | 0.616788 | Kostu96 |
c74a50bad375c1f42e1c7bb3d7ac8674ae8754a4 | 4,786 | cpp | C++ | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | #include "block_out.h"
#include <stdio.h>
struct UserType1
{
int d_i;
double d_d;
};
class UserType2
{
int d_i;
double d_d;
public:
UserType2() {}
~UserType2() {}
};
class Source
{
public:
block::out<void()> out0;
block::out<void(const char*)> out1;
block::out<void(const char*, ... | 23.93 | 95 | 0.547221 | aaronvegh |
c75b9297fc5af22e94dd59a6431d3def2205444e | 14,738 | cpp | C++ | jack/common/JackAudioAdapterInterface.cpp | KimJeongYeon/jack2_android | 4a8787be4306558cb52e5379466c0ed4cc67e788 | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 47 | 2015-01-04T21:47:07.000Z | 2022-03-23T16:27:16.000Z | vendor/samsung/external/jack/common/JackAudioAdapterInterface.cpp | cesarmo759/android_kernel_samsung_msm8916 | f19717ef6c984b64a75ea600a735dc937b127c25 | [
"Apache-2.0"
] | 3 | 2015-02-04T21:40:11.000Z | 2019-09-16T19:53:51.000Z | jack/common/JackAudioAdapterInterface.cpp | KimJeongYeon/jack2_android | 4a8787be4306558cb52e5379466c0ed4cc67e788 | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 7 | 2015-05-17T08:22:52.000Z | 2021-08-07T22:36:17.000Z | /*
Copyright (C) 2008 Grame
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it wi... | 37.501272 | 198 | 0.612838 | KimJeongYeon |
c75d6532c3edff8bcbab0d8cf565f8e658b95386 | 2,744 | cpp | C++ | Codechef/dec challenge 2017/CHEFHAM.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | Codechef/dec challenge 2017/CHEFHAM.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | null | null | null | Codechef/dec challenge 2017/CHEFHAM.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z |
#pragma comment(linker, "/stack:640000000")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <ma... | 20.029197 | 67 | 0.34293 | dipta007 |
c75f385c1ed02bf476e70989d760aa477b4e43f7 | 3,025 | cpp | C++ | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | #include "CommonPrecompiled.h"
#include "NetworkEngine.h"
#include "OnyxTransfer.h"
#include "HTTP.h"
#include "UDPBase.h"
#include "TCPBase.h"
#include "ByteArray.h"
//handle closing connections
//handle timeouts
//handle sending queue
//handle arbitrary connect requests
int main(int argc, char** argv)
{
ArgPars... | 21.453901 | 80 | 0.584793 | innatewonder |
c75fe3c2eaa69eaa41aaa26580ad41719fc37422 | 4,546 | cpp | C++ | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | // https://adventofcode.com/2019/day/12
#include <catch.hpp>
#include <numeric>
#include "day12-lib.h"
TEST_CASE("sample after 1 timestep should be correct", "[part_one]") {
const std::vector<Moon> sample_moons{
Moon{{-1,0,2}, {0,0,0}},
Moon{{2,-10,-7}, {0,0,0}},
Moon{{4,-8,8}, {0,0,0}},
... | 35.515625 | 107 | 0.568412 | MattHarrington |
c76028d3464e5ff58ddd818e7f2967162a374edd | 1,248 | cpp | C++ | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | 3 | 2021-03-31T01:39:25.000Z | 2021-05-04T10:02:35.000Z | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i <= n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n)
#define MAX 100000
#define inf 1000000007
using namespace std;... | 25.469388 | 91 | 0.459936 | KoukiNAGATA |
c760b548acedc9bd42a014357a84a0c6ce7f791a | 1,086 | cpp | C++ | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | #include "Hpipe/Stream.h"
#include <iostream>
#include <fstream>
using namespace std;
int usage( const char *prg, const char *msg, int res ) {
if ( msg )
std::cerr << msg << std::endl;
std::cerr << "Usage:" << std::endl;
std::cerr << " " << prg << " cpp_var_name input_file" << std::endl;
retur... | 23.608696 | 82 | 0.411602 | hleclerc |
c7633337f43003899682b90cd4316ad6daca03c4 | 1,086 | cpp | C++ | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <vector>
#include <tuple>
using namespace std;
const int MAXN = 200005;
int color[MAXN];
vector<int> g[MAXN];
vector<pair<int, int>> edges;
void dfs(int v, int p, bool &possible) {
if (!possible) {
return;
}
color[v] = color[p] + 1;
color[v] -= 2 * (color[... | 16.208955 | 40 | 0.470534 | vladshablinsky |
c7636f874fafc3092c263ec4a4953b8f1f445cfd | 2,877 | cpp | C++ | utils/Window.cpp | jensmcatanho/directx-playground | 3611343a47ab67025e2ea79337c8dde81760d7b8 | [
"MIT"
] | null | null | null | utils/Window.cpp | jensmcatanho/directx-playground | 3611343a47ab67025e2ea79337c8dde81760d7b8 | [
"MIT"
] | null | null | null | utils/Window.cpp | jensmcatanho/directx-playground | 3611343a47ab67025e2ea79337c8dde81760d7b8 | [
"MIT"
] | null | null | null | /*
-----------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2018 Jean Michel Catanho
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 witho... | 32.693182 | 160 | 0.719152 | jensmcatanho |
c76cff58a164cf3f068a00c8527048a0d819ffd5 | 2,757 | cc | C++ | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | #include "rtc_audio_track_impl.h"
namespace libwebrtc {
AudioTrackImpl::AudioTrackImpl(
rtc::scoped_refptr<webrtc::AudioTrackInterface> audio_track)
: rtc_track_(audio_track),_renderer(nullptr) {
RTC_LOG(INFO) << __FUNCTION__ << ": ctor ";
if(rtc_track_){
strncpy(id_, rtc_track_->id().c_str(),... | 34.4625 | 78 | 0.544432 | necnecnec |
c7713a701cf02015259eaccddf1a573248ecd771 | 8,548 | cpp | C++ | mpi_communication_partition/mpi_analysis.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | 3 | 2021-04-04T01:12:47.000Z | 2021-06-07T14:27:45.000Z | mpi_communication_partition/mpi_analysis.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | null | null | null | mpi_communication_partition/mpi_analysis.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 Tim Jammer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 30.528571 | 117 | 0.662962 | tudasc |
c773a26acdf8a1ac1ba5af48ff7657f56e8fa0e6 | 14,785 | cpp | C++ | src/genlib/util/gmtdate.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/util/gmtdate.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/util/gmtdate.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000 Intel Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions o... | 23.923948 | 78 | 0.473115 | xiyusullos |
c773cab98a04d4ec89cf473d13a51c3c94a504bb | 989 | cpp | C++ | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | class Solution {
public:
string addStrings(string num1, string num2) {
int n1 = num1.size(), n2 = num2.size();
string& res = n1 > n2 ? num1 : num2;
int n_res = max(n1, n2);
int d = 1;
int sum, carry = 0;
while (d <= n_res) {
if (n1 - d < 0) {
... | 30.90625 | 83 | 0.352882 | Alex-Amber |
c7774acc26ee69cd68346806e0b3051d0f1e8f67 | 2,365 | cc | C++ | modules/kernel/src/heap/HeapMergeRight.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 12 | 2018-12-03T15:16:52.000Z | 2022-03-16T21:07:13.000Z | modules/kernel/src/heap/HeapMergeRight.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | null | null | null | modules/kernel/src/heap/HeapMergeRight.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 2 | 2018-11-13T01:30:41.000Z | 2021-08-12T18:22:26.000Z | //===================================================================================================================
//
// HeapMergeRight.cc -- Merge the freeing block with the block to the right if free as well
//
// Copyright (c) 2017-2020 -- Adam Clark
// Licensed under "THE BEER-WARE LICENSE"
// ... | 43.796296 | 117 | 0.487104 | eryjus |
c77a2675fd08425e1ec08030da1a2e71a45bbaa0 | 5,264 | cpp | C++ | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #include "l_Message.hpp"
Message* lua_pushmessage(lua_State *L, Message* message) {
if (message == nullptr) {
message = Messenger::getInstance()->appendMessage();
}
Message ** messagePtr = static_cast<Message**>
(lua_newuserdata(L, sizeof(Message*)));
*messagePtr = message;
luaL_getmetata... | 26.059406 | 69 | 0.68807 | benzap |
c781a264b8c9f44ea27c91ae2e2cea265d325a26 | 593 | cpp | C++ | a2.cpp | rene-d/singleton | 21615b8a49b97289c499a2f3c639400ff9dfb60f | [
"Unlicense"
] | null | null | null | a2.cpp | rene-d/singleton | 21615b8a49b97289c499a2f3c639400ff9dfb60f | [
"Unlicense"
] | null | null | null | a2.cpp | rene-d/singleton | 21615b8a49b97289c499a2f3c639400ff9dfb60f | [
"Unlicense"
] | null | null | null | // c'est le fichier embêtant...
// il contient un singleton qu'il faut à tout prix initialiser
#include "toto.h"
#include <iostream>
using namespace std;
extern int main_use; // déclaré dans z.cpp (exécutable)
extern int internal_use; // déclaré dans a1.cpp (ce module)
// la classe du singleton
cl... | 16.472222 | 66 | 0.639123 | rene-d |
c7828544598a63a600ca68615866fd1d4672f91d | 734 | cpp | C++ | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
vector<string> getFolderNames(vector<string>& names) {
unordered_map<string,int> mp;
vector<string> ans;
int j;
for(int i=0;i<names.size();i++)
{
j = mp[names[i]];
string temp... | 25.310345 | 82 | 0.30109 | bilwa496 |
c783d231aa59021045a62d029399844437262bc2 | 157 | hpp | C++ | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | #include<type_traits>
template<typename T1,typename T2>
auto max(T1 a,T2 b) -> typename std::decay< decltype(true ? a:b)>::type
{
return b < a ? a :b;
}
| 22.428571 | 71 | 0.656051 | hanlulugeren |
c788705efdbde2f2cec2993a22c8449d8b0573c9 | 12,737 | cpp | C++ | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<math.h>
#include<sstream>
#include<string>
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
#define SCREEN_W 600
#define SCREEN_H 600
#define LEVEL_MAX 4
#define CAPACITY 5 //efficiency changes with capacity
#define PI 3.14159265
#define SPEED 0.5f
str... | 34.705722 | 151 | 0.437544 | kgomathi2910 |
c78a0d53574181ae16ab39a3b8605730b2426cfa | 4,768 | cpp | C++ | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | 1 | 2019-07-16T09:46:54.000Z | 2019-07-16T09:46:54.000Z | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | null | null | null | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ShooterGame.h"
#include "ShooterWeapon_Melee.h"
AShooterWeapon_Melee::AShooterWeapon_Melee(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
CollisionComp1P = ObjectInitializer.CreateDefaultSubobject<UCa... | 28.213018 | 200 | 0.79719 | ugsgame |
c78db1a32fb4d1c35d70ed2abda77ab9e691ed89 | 3,725 | hpp | C++ | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null |
//==============================================================================
// Copyright (c) 2015 - Thomas Retornaz //
// thomas.retornaz@mines-paris.org //
// Distributed under the Boost Software License, Version 1.0. ... | 32.391304 | 113 | 0.54255 | ThomasRetornaz |
c78e71eb1d401394d83cd4dcbfea3a706a3cd27c | 637 | cpp | C++ | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | #include "Task.h"
#include "Thread.h"
Task::Task(): E_Priority(ETaskPriority::Low), E_TaskType(ETaskType::TT_GENERAL), B_HasBeenCompleted(false)
{
}
Task::Task(ETaskPriority newPriority, ETaskType newType) : E_Priority(newPriority), E_TaskType(newType), B_HasBeenCompleted(false)
{
}
Task::Task(std::shared_ptr<Task... | 17.216216 | 172 | 0.739403 | TristanFish |
c794ca9c70a0d9ab1f63dc13ebc98459b81b8971 | 40,116 | cpp | C++ | src/plugins/assembly/gstpartassembly.cpp | AIoT-IST/EVA_Show-Case | 14474d97c233b4740c8216ba6564454cd954129c | [
"MIT"
] | 4 | 2021-05-26T07:14:50.000Z | 2022-01-10T00:15:32.000Z | src/plugins/assembly/gstpartassembly.cpp | maxpark/EVA_Show-Case | c21fdf7d81efaaf4b63b071eeaf8911791336058 | [
"MIT"
] | 2 | 2021-06-07T16:00:14.000Z | 2021-07-06T13:35:38.000Z | src/plugins/assembly/gstpartassembly.cpp | maxpark/EVA_Show-Case | c21fdf7d81efaaf4b63b071eeaf8911791336058 | [
"MIT"
] | 3 | 2021-08-19T02:27:59.000Z | 2022-01-10T07:40:22.000Z | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include "gstpartassembly.h"
#include <ctime>
#include <iostream>
#include <fstream>
#include <regex>
#include <string>
#include <vector>
#include "gstadmeta.h"
#include "utils.h"
#de... | 41.399381 | 351 | 0.635083 | AIoT-IST |
c7955b06d771c30961059c9dbbdc62196053fa3d | 12,843 | cpp | C++ | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | 3 | 2019-11-06T09:05:07.000Z | 2021-04-11T08:46:57.000Z | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | null | null | null | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | null | null | null | #include "app_eth.h"
// constructors
BaseAppETH::BaseAppETH(std::string ip, unsigned short port, std::string id) {
this->node = std::make_shared<Node>(id, ip, port);
this->node_table = std::make_shared<NodeTableETH>(id);
}
// getters
std::shared_ptr<Node> BaseAppETH::get_node() {
return this->node;
}
std... | 46.032258 | 173 | 0.56926 | tsc19 |
c7961212cb8b85c10114c83869a245f0d7803c16 | 403 | cpp | C++ | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | 1 | 2022-01-10T23:47:40.000Z | 2022-01-10T23:47:40.000Z | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | #include "CppUTest/TestHarness.h"
#include "../cli.hpp"
#include <string>
#include <fstream>
#include <vector>
using std::string;
using std::vector;
TEST_GROUP(ArgumentIs)
{
};
TEST(ArgumentIs, Returns_true_if_Nth_argument_is_key)
{
CHECK_EQUAL(false, argumentIs("a", 0, "a b"));
CHECK_EQUAL(true, a... | 13.433333 | 53 | 0.662531 | BitCruncher0 |
c796986e874e270f30946139916ed110eb4622db | 3,423 | cpp | C++ | tools/pathanalyzer/pathanalyzer_spacer_test.cpp | JanWielemaker/pharos | 8789a3a5ef4e6094ce0b989d8d987d1fe2102d3e | [
"RSA-MD"
] | 3 | 2015-07-15T08:43:56.000Z | 2021-02-28T17:53:52.000Z | tools/pathanalyzer/pathanalyzer_spacer_test.cpp | sei-ccohen/pharos | 78d08494a5c0bffff3789cae7acc538303b1926c | [
"RSA-MD"
] | null | null | null | tools/pathanalyzer/pathanalyzer_spacer_test.cpp | sei-ccohen/pharos | 78d08494a5c0bffff3789cae7acc538303b1926c | [
"RSA-MD"
] | null | null | null | // Copyright 2018-2019 Carnegie Mellon University. See LICENSE file for terms.
#include <libpharos/spacer.hpp>
#include "pathanalyzer_test_config.hpp"
using namespace pharos;
using namespace pharos::ir;
const DescriptorSet* global_ds = nullptr;
// -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-... | 29.25641 | 95 | 0.621969 | JanWielemaker |
c79b1259fec0b2d76602c19fa77ad7979dd8509f | 1,993 | hpp | C++ | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 33 | 2017-01-13T20:47:21.000Z | 2022-03-21T23:29:17.000Z | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | null | null | null | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 4 | 2016-12-10T16:10:42.000Z | 2020-06-28T04:44:11.000Z | #pragma once
#include "common.hpp"
#include "../../data/shaders/uniforms.glsl"
// Generic Buffer Object
struct BufferObjectBase
{
virtual ~BufferObjectBase() { destroy(); }
NONCOPYABLE(BufferObjectBase);
protected:
BufferObjectBase() {}
void create(uint type, uint binding, uint size, const void* data);
void bin... | 24.9125 | 121 | 0.712494 | tapio |
c79bf17c6647e14d45af6d6a9f7eae7520b24632 | 4,519 | cpp | C++ | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 16 | 2016-07-01T01:40:56.000Z | 2020-05-06T03:29:42.000Z | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 9 | 2016-07-04T06:44:42.000Z | 2020-05-14T21:23:46.000Z | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 2 | 2016-07-05T14:50:32.000Z | 2019-10-03T02:35:53.000Z | #include "SegmenterDictionaryFeatureGenerator.h"
#include "../Dictionary/DictionaryClass.h"
#include "../Utility/CharWithSpace.h"
#include <algorithm>
#include <cassert>
#include <unordered_set>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
namespace DataConverter {
usi... | 36.739837 | 147 | 0.612525 | hiroshi-manabe |
c7a2aafa94bf6965635216afb9ef0f2e0be9aa35 | 154 | hpp | C++ | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_PYTHRAN_KWONLY_HPP
#define PYTHONIC_BUILTIN_PYTHRAN_KWONLY_HPP
#include "pythonic/include/__builtin__/pythran/kwonly.hpp"
#endif
| 30.8 | 58 | 0.883117 | AlifeLines |
c7a3126de11c19d81ebc972cbf196e7dd7637b43 | 14,537 | cpp | C++ | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #include "flite/audio/audio.hpp"
#include "flite/synthcommon/track.hpp"
#include "flite/synthcommon/wave.hpp"
#include "flite/utils/alloc.hpp"
#include "flite/utils/math.hpp"
#include "flite/utils/string.hpp"
#ifdef ANDROID
#define SPEED_HACK
#endif
#ifdef UNDER_CE
#define SPEED_HACK
/* This is one of those other thi... | 25.369983 | 176 | 0.475683 | Barath-Kannan |
c7a34f2c452678da6f1895bbabb32ab890ed62bc | 4,118 | cpp | C++ | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 30.279412 | 82 | 0.741136 | Blaxar |
c7a54ff53495b66fda4b12f683546f16f01ac85f | 1,586 | hpp | C++ | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | //
// traits.hpp
// gsl-modules
//
// Created by Francisco Meirinhos on 13/01/17.
//
#ifndef traits_hpp
#define traits_hpp
#include <chrono>
#include <tuple>
/*
Stolen from
http://stackoverflow.com/questions/7943525/is-it-possible-to-figure-out-the-parameter-type-and-return-type-of-a-lambda
Traits of lambda func... | 26 | 118 | 0.704918 | FMeirinhos |
c7a63b24eac32b5cbf21d026b3709e15a3e1021d | 521 | cpp | C++ | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | #include <mbed.h>
#include <C12832.h>
// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);
int main()
{
int j=0;
lcd.cls();
lcd.locate(0,0);
lcd.printf("mbed application shield!");
lcd.locate(0,10);
lcd.printf("char %dx%d : %dx%d pixels",
lcd.columns(), lcd.rows(),
... | 20.038462 | 43 | 0.512476 | Andrewkf5011 |
c7a74d9bffc8887b12139ed175f9458077243a0e | 8,650 | hpp | C++ | boost/monotonic/storage.hpp | cschladetsch/Monotonic | ec37c3743862475719fdc8d2c3820fc0ab43c55a | [
"BSL-1.0"
] | 12 | 2016-05-22T21:14:27.000Z | 2021-08-05T21:28:17.000Z | boost/monotonic/storage.hpp | cschladetsch/Monotonic | ec37c3743862475719fdc8d2c3820fc0ab43c55a | [
"BSL-1.0"
] | 5 | 2017-02-09T14:24:37.000Z | 2020-10-31T14:38:45.000Z | boost/monotonic/storage.hpp | cschladetsch/Monotonic | ec37c3743862475719fdc8d2c3820fc0ab43c55a | [
"BSL-1.0"
] | 1 | 2022-02-02T20:21:12.000Z | 2022-02-02T20:21:12.000Z | // Copyright (C) 2009-2020 Christian@Schladetsch.com
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_MONOTONIC_STORAGE_HPP
#define BOOST_MONOTONIC_STORAGE_HPP
#include <algorithm>
#include <arra... | 30.244755 | 122 | 0.452023 | cschladetsch |
c7a7c12ca1d1623c023f8e49b205ce4514378bfe | 18,660 | hpp | C++ | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | // Boost endian.hpp header file
// -------------------------------------------------------//
// (C) Copyright Darin Adler 2000
// (C) Copyright Beman Dawes 2006, 2009
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See library home page at http://ww... | 32.11704 | 90 | 0.710021 | henrywarhurst |
c7aa1aad149753749241a39cced2f20c736c6a8d | 1,839 | cpp | C++ | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 3 | 2018-03-13T13:42:12.000Z | 2019-05-17T11:48:04.000Z | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 1 | 2017-02-20T10:48:02.000Z | 2017-02-21T11:34:16.000Z | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 8 | 2018-01-28T02:23:18.000Z | 2021-02-26T01:15:55.000Z | /*
* Copyright (c) 2013-2016, 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... | 27.044118 | 88 | 0.710169 | nachocarballeda |
c7ab178e0ff3dfece38b430bb52c93b657ef8e5c | 9,378 | cc | C++ | ithwrapper/ith/cli/pipe.cc | wareya/chiitrans | 7a392a304e6315cb4ecf836804512bb972090e8b | [
"Apache-2.0"
] | 71 | 2015-01-06T03:06:25.000Z | 2022-03-02T17:47:28.000Z | ithwrapper/ith/cli/pipe.cc | holemcross/chiitrans | c5e9aba5f555b1f81792d1dd4864b7efeb12f823 | [
"Apache-2.0"
] | 7 | 2015-01-14T15:08:41.000Z | 2018-11-20T18:18:15.000Z | ithwrapper/ith/cli/pipe.cc | holemcross/chiitrans | c5e9aba5f555b1f81792d1dd4864b7efeb12f823 | [
"Apache-2.0"
] | 35 | 2015-05-24T02:16:17.000Z | 2022-03-23T18:52:56.000Z | // pipe.cc
// 8/24/2013 jichi
// Branch: ITH_DLL/pipe.cpp, rev 66
// 8/24/2013 TODO: Clean up this file
#ifdef _MSC_VER
# pragma warning (disable:4100) // C4100: unreference formal parameter
#endif // _MSC_VER
#include "cli_p.h"
#include "ith/common/defs.h"
//#include "ith/common/growl.h"
#include "ith/sys/sys.h"
#... | 28.591463 | 115 | 0.621881 | wareya |
c7ac381b26bd3c4eff54f9011e245c0429a1629e | 3,797 | cpp | C++ | android-31/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JFloatArray.hpp"
#include "./Matrix4f.hpp"
namespace android::renderscript
{
// Fields
// QJniObject forward
Matrix4f::Matrix4f(QJniObject obj) : JObject(obj) {}
// Constructors
Matrix4f::Matrix4f()
: JObject(
"android.renderscript.Matrix4f",
"()V"
) {}
Matrix4f::Matrix4f(JFloatArra... | 17.026906 | 111 | 0.629708 | YJBeetle |
c7acf1ea6fe29506547e60ad88931fc236be01e8 | 542 | cc | C++ | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.length();
if (n < 2) {
return n;
}
int result = 1;
int begin = 0;
unordered_map<char, int> m;
for (int i = 0; i < n; i++) {
if (m.find(s[i]) != m.end() && m[s[i... | 25.809524 | 62 | 0.394834 | SMartQi |
c7adf89a0c49e30a3ce0006128a101253326e2ec | 6,061 | hpp | C++ | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BeatmapDataLoader
#include "GlobalN... | 64.478723 | 286 | 0.804983 | RedBrumbler |
c7af199c5ce7c8ebff0e74ee021e01781b89afca | 811 | cc | C++ | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 21 | 2015-05-26T10:18:12.000Z | 2021-06-01T09:39:47.000Z | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | null | null | null | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 8 | 2015-09-30T08:41:15.000Z | 2020-03-11T03:49:42.000Z | /**********************************************************************
* Online Judge : POJ
* Problem Title : Number Steps
* ID : 1663
* Date : 4/22/2009
* Time : 20:34:57
* Computer Name : EVERLASTING-PC
******************************************... | 13.516667 | 72 | 0.378545 | twilightgod |
c7b54349030ea973cfff59d9bbd447db32a4f6f1 | 31,681 | cpp | C++ | main.cpp | RizniMohamed/Best-Auto-Part- | 2319664109d2fe425e427c1b7c338cdb08b18853 | [
"Apache-2.0"
] | null | null | null | main.cpp | RizniMohamed/Best-Auto-Part- | 2319664109d2fe425e427c1b7c338cdb08b18853 | [
"Apache-2.0"
] | null | null | null | main.cpp | RizniMohamed/Best-Auto-Part- | 2319664109d2fe425e427c1b7c338cdb08b18853 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <limits>
#include <iomanip>
#include <fstream>
using namespace std;
//Function Prototyping
void Header(string,int);
void Menue();
void guestMenue();
void guestSelection(int);
void userMenue();
void userSelection(int);
void adminMenue();
void adminSelection(int... | 19.937697 | 114 | 0.52975 | RizniMohamed |
c7b6bd3aaa34c24a4e855e4edb30602aa8c15715 | 174 | hpp | C++ | src/helper.hpp | Pyknic/matrix-solver | 1521bb87f0b0cee60fde435367bb586ae3e24d7b | [
"MIT"
] | null | null | null | src/helper.hpp | Pyknic/matrix-solver | 1521bb87f0b0cee60fde435367bb586ae3e24d7b | [
"MIT"
] | null | null | null | src/helper.hpp | Pyknic/matrix-solver | 1521bb87f0b0cee60fde435367bb586ae3e24d7b | [
"MIT"
] | null | null | null | #pragma once
//
// Copyright (c) 2020 Emil Forslund. All rights reserved.
//
#include "symbol.hpp"
#include <string>
Symbol* _(float v);
Symbol* _(const std::string& s);
| 13.384615 | 57 | 0.672414 | Pyknic |
c7b91e3142328590d0a305e58709326aa002a521 | 38,426 | cc | C++ | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | null | null | null | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | null | null | null | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | 1 | 2021-11-28T21:35:27.000Z | 2021-11-28T21:35:27.000Z | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2011) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | 35.253211 | 170 | 0.592463 | bayolau |
c7bbb0a147bc75aa65e0234f9b46e003970d8cda | 9,058 | cpp | C++ | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | #include "GenModel.h"
//#include "SqlCaller.h"
#include <math.h>
#include <time.h>
GenModel::GenModel()
{
version = "genmodellean-0.0.15 build 0001";
hassolution = false;
bcreated = false;
binit = false;
nc = 0;
nr = 0;
solverdata = NULL;
}
double GenModel::FindConstraintMaxLhs(long row)
... | 20.493213 | 128 | 0.596048 | StebQC |
c7bed9512bf1669bd704249a678e3caac03f48f8 | 6,308 | hpp | C++ | stan/math/prim/prob/loglogistic_lpdf.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/prob/loglogistic_lpdf.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/prob/loglogistic_lpdf.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_PROB_LOGLOGISTIC_LPDF_HPP
#define STAN_MATH_PRIM_PROB_LOGLOGISTIC_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>
#include <stan/math/prim/fun/as_array_or_scalar.hpp>
#include <stan/math/prim/fun/as_value_... | 41.228758 | 80 | 0.672796 | LaudateCorpus1 |
c7bff271f455b6173e8f2501c86a7221315fe810 | 13,224 | cpp | C++ | src/hed/libs/message/SOAPEnvelope.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/message/SOAPEnvelope.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/message/SOAPEnvelope.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <cstring>
#include "SOAPEnvelope.h"
#define SOAP12_ENV_NAMESPACE "http://www.w3.org/2003/05/soap-envelope"
#define SOAP12_ENC_NAMESPACE "http://www.w3.org/2003/05/soap-encoding"
#define SOAP11_ENV_NAMESPACE "http://schemas.xmlsoap.org/soap/envelope/"
#define ... | 27.209877 | 86 | 0.63967 | davidgcameron |
c7c2e8ab4dc883ec62c6e6ad15603570e9b171b8 | 488 | cpp | C++ | B-CPP-300-LYN-3-1-CPPD14M/ex00/Fruit.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 2 | 2022-02-07T12:44:51.000Z | 2022-02-08T12:04:08.000Z | B-CPP-300-LYN-3-1-CPPD14M/ex00/Fruit.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | null | null | null | B-CPP-300-LYN-3-1-CPPD14M/ex00/Fruit.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 1 | 2022-01-23T21:26:06.000Z | 2022-01-23T21:26:06.000Z | /*
** EPITECH PROJECT, 2020
** B-CPP-300-LYN-3-1-CPPD14M-
** File description:
** Fruit.cpp
*/
#include "Fruit.hpp"
Fruit::Fruit()
{
this->name = "fruit";
this->_vitamins = 0;
return;
}
Fruit::Fruit(std::string const &_name_, int _vitamins_)
{
this->name = _name_;
this->_vitamins = _vitamins_;
... | 13.189189 | 55 | 0.610656 | Neotoxic-off |
c7c44bed3f2564f4702ed6c4515175a6825623c5 | 7,900 | cpp | C++ | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_LANG_AST_DEF_CPP
#define STAN_LANG_AST_DEF_CPP
#include "stan/language/ast.hpp"
#include "stan/language/ast/fun/bare_type_is_data_vis_def.hpp"
#include "stan/language/ast/fun/bare_type_order_id_vis_def.hpp"
#include "stan/language/ast/fun/bare_type_set_is_data_vis_def.hpp"
#include "stan/language/ast/fun/... | 55.244755 | 73 | 0.826329 | alashworth |
c7c9ca4378f7e79de21c67be42dea9eb9a293b84 | 1,809 | hpp | C++ | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | 1 | 2020-09-02T10:36:39.000Z | 2020-09-02T10:36:39.000Z | #pragma once
#include <memory>
#include <vector>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include "BlockMesh.hpp"
#include "Maths/Coords.hpp"
class ChunkSegment;
class Block
{
public:
static constexpr int BlockFaceCount = static_cast<int>(BlockFace::Size);
protected:
ChunkSegment& _chunk;
coords::Loca... | 22.333333 | 107 | 0.722499 | Harry09 |
c7cfc4d8a7c98de1980110212c8fd4f4f656f25a | 4,927 | cpp | C++ | osrm-backend/src/engine/engine.cpp | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | 1 | 2017-04-15T22:58:23.000Z | 2017-04-15T22:58:23.000Z | src/engine/engine.cpp | zummach/osrm | 7ab1b0893729064aa35b29d78cec605eb9831433 | [
"BSD-2-Clause"
] | 1 | 2019-11-21T09:59:27.000Z | 2019-11-21T09:59:27.000Z | osrm-ch/src/engine/engine.cpp | dingchunda/osrm-backend | 8750749b83bd9193ca3481c630eefda689ecb73c | [
"BSD-2-Clause"
] | null | null | null | #include "engine/api/route_parameters.hpp"
#include "engine/engine.hpp"
#include "engine/engine_config.hpp"
#include "engine/status.hpp"
#include "engine/plugins/match.hpp"
#include "engine/plugins/nearest.hpp"
#include "engine/plugins/table.hpp"
#include "engine/plugins/tile.hpp"
#include "engine/plugins/trip.hpp"
#i... | 33.97931 | 110 | 0.733509 | shiyuan |
c7d021bca8c0f014831ab539c537d48241ef27ec | 855 | cpp | C++ | Old Files/SingleRoad_Square/alpha_sq.cpp | karenl7/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 6 | 2019-01-30T00:11:55.000Z | 2022-03-09T02:44:51.000Z | Old Files/SingleRoad_Square/alpha_sq.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | null | null | null | Old Files/SingleRoad_Square/alpha_sq.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 4 | 2018-09-08T00:16:55.000Z | 2022-03-09T02:44:54.000Z | void alpha_sq(
beacls::FloatVec& alpha,
beacls::FloatVec xs,
FLOAT_TYPE dim,
const size_t numel,
FLOAT_TYPE alpha_offset,
FLOAT_TYPE length){
if (dim == 0){
std::transform(xs.cbegin(), xs.cend(), alpha.begin(),
[alpha_offset, length](const auto &xs_i) {
return 1- s... | 31.666667 | 88 | 0.604678 | karenl7 |
c7d121c06ecf1e5bc536f40fd44537bdeba871f7 | 6,930 | cpp | C++ | source/camera.cpp | khoih-prog/example-standalone-inferencing-linux | 7237ef0b5cd4cdfca2c61912a8ccc5c29e42570c | [
"Apache-2.0"
] | 7 | 2021-06-14T21:28:47.000Z | 2022-01-18T17:51:54.000Z | source/camera.cpp | khoih-prog/example-standalone-inferencing-linux | 7237ef0b5cd4cdfca2c61912a8ccc5c29e42570c | [
"Apache-2.0"
] | null | null | null | source/camera.cpp | khoih-prog/example-standalone-inferencing-linux | 7237ef0b5cd4cdfca2c61912a8ccc5c29e42570c | [
"Apache-2.0"
] | 5 | 2021-05-03T12:45:32.000Z | 2022-02-08T19:28:18.000Z | /* Edge Impulse Linux SDK
* Copyright (c) 2021 EdgeImpulse Inc.
*
* 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, ... | 37.459459 | 132 | 0.624964 | khoih-prog |
c7d413983e1c4fa4031ac193ad74a471a07255e1 | 31,837 | cpp | C++ | share/prototypes/bootstrap-redux/basecode/language/core/parser/parser.cpp | basecode-lang/bootstrap | 8e787e4fa66438e01897a67a026557f9fe7d5b57 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | basecode/language/core/parser/parser.cpp | blockspacer/bootstrap-redux | 2d0e0d7d2b1f6f203c3dd01f6929805042db8ec7 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | basecode/language/core/parser/parser.cpp | blockspacer/bootstrap-redux | 2d0e0d7d2b1f6f203c3dd01f6929805042db8ec7 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | // ----------------------------------------------------------------------------
// ____ _
// | _\ | |
// | |_)| __ _ ___ ___ ___ ___ __| | ___ TM
// | _< / _` / __|/ _ \/ __/ _ \ / _` |/ _ \
// | |_)| (_| \__ \ __/ (_| (_) | (_| | __/
// |____/\__,_|___/... | 36.385143 | 100 | 0.493106 | basecode-lang |
c7d743869bf6717e7052798f344c50ccf064d45c | 890 | cpp | C++ | leetcode/contest-219/5245.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 107 | 2019-10-25T07:46:59.000Z | 2022-03-29T11:10:56.000Z | leetcode/contest-219/5245.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 1 | 2021-08-13T05:42:27.000Z | 2021-08-13T05:42:27.000Z | leetcode/contest-219/5245.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 18 | 2020-12-09T14:24:22.000Z | 2022-03-30T06:56:01.000Z | #include <bits/stdc++.h>
using namespace std;
/*
最优解一定满足两个性质:
1. 长宽高排序之后答案不变
2. 答案就是排序之后每个长方体最大值之和(可以构成单调子序列的那些长方体)
*/
class Solution {
public:
int maxHeight(vector<vector<int>>& cuboids) {
int n = cuboids.size();
// 一定要用引用
for (auto& c : cuboids) {
sort(c.begin(), c.end());... | 25.428571 | 69 | 0.437079 | upupming |
93a87647d6418306fc902f4418cb4125cef44ff0 | 1,683 | hpp | C++ | System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | /// @file
/// @brief Contains Switch::System::Windows::Forms::BorderStyle enum.
#pragma once
#include <Switch/System/Enum.hpp>
namespace Switch {
namespace System {
namespace Windows {
namespace Forms {
/// @brief Specifies the border styles for a form.
enum class FormBorderStyle {
... | 33.66 | 132 | 0.639929 | kkptm |
93ab36c964bc04cac5d0c0e2e3db84a9370d46a0 | 474 | cpp | C++ | jni/WiEngine_binding/gridactions/com_wiyun_engine_actions_grid_Waves3D.cpp | zchajax/WiEngine | ea2fa297f00aa5367bb5b819d6714ac84a8a8e25 | [
"MIT"
] | 39 | 2015-01-23T10:01:31.000Z | 2021-06-10T03:01:18.000Z | jni/WiEngine_binding/gridactions/com_wiyun_engine_actions_grid_Waves3D.cpp | luckypen/WiEngine | 7e80641fe15a77a2fc43db90f15dad6aa2c2860a | [
"MIT"
] | 1 | 2015-04-15T08:07:47.000Z | 2015-04-15T08:07:47.000Z | jni/WiEngine_binding/gridactions/com_wiyun_engine_actions_grid_Waves3D.cpp | luckypen/WiEngine | 7e80641fe15a77a2fc43db90f15dad6aa2c2860a | [
"MIT"
] | 20 | 2015-01-20T07:36:10.000Z | 2019-09-15T01:02:19.000Z | #include "com_wiyun_engine_actions_grid_Waves3D.h"
#include "wyWaves3D.h"
extern jfieldID g_fid_BaseObject_mPointer;
JNIEXPORT void JNICALL Java_com_wiyun_engine_actions_grid_Waves3D_nativeInit
(JNIEnv * env, jobject thiz, jfloat duration, jint gridX, jint gridY, jfloat amplitude, jint waves) {
wyWaves3D* g... | 39.5 | 104 | 0.78903 | zchajax |
93aed6408e1594864ceb8cde169762462cd38966 | 5,248 | cpp | C++ | SDK/PUBG_ReplayEditorStepperWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_ReplayEditorStepperWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_ReplayEditorStepperWidget_functions.cpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | // PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_ReplayEditorStepperWidget_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------... | 30.870588 | 206 | 0.780869 | realrespecter |
93b19508039e9c7acd3fd32dae05e5fd7cf2933f | 35 | cpp | C++ | src/gui/gui.cpp | lchsk/knight-libs | 14cb06e4092bf78abd7a5d0d5313b10236ee8926 | [
"MIT"
] | null | null | null | src/gui/gui.cpp | lchsk/knight-libs | 14cb06e4092bf78abd7a5d0d5313b10236ee8926 | [
"MIT"
] | null | null | null | src/gui/gui.cpp | lchsk/knight-libs | 14cb06e4092bf78abd7a5d0d5313b10236ee8926 | [
"MIT"
] | null | null | null | #include "gui.hpp"
namespace K {}
| 8.75 | 18 | 0.657143 | lchsk |
93b3f63512c632be8d567f4856a32d979c0f1eeb | 368 | cpp | C++ | web/httpd/kernel/chunks.cpp | jjzhang166/balancer | 84addf52873d8814b8fd30289f2fcfcec570c151 | [
"Unlicense"
] | 39 | 2015-03-12T19:49:24.000Z | 2020-11-11T09:58:15.000Z | web/httpd/kernel/chunks.cpp | jjzhang166/balancer | 84addf52873d8814b8fd30289f2fcfcec570c151 | [
"Unlicense"
] | null | null | null | web/httpd/kernel/chunks.cpp | jjzhang166/balancer | 84addf52873d8814b8fd30289f2fcfcec570c151 | [
"Unlicense"
] | 11 | 2016-01-14T16:42:00.000Z | 2022-01-17T11:47:33.000Z | #include "chunks.h"
#include <util/stream/output.h>
using namespace NSrvKernel;
template <>
void Out<TChunk>(TOutputStream& o, const TChunk& p) {
o.Write(p.Data(), p.Length());
}
template <>
void Out<TChunkList>(TOutputStream& o, const TChunkList& lst) {
for (TChunkList::TConstIterator it = lst.Begin(); it ... | 20.444444 | 78 | 0.63587 | jjzhang166 |
93b6cd6f6932802b8424570691e10e609b4f97ed | 10,715 | hpp | C++ | include/memoria/prototypes/bt/container/bt_c_leaf_variable.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | include/memoria/prototypes/bt/container/bt_c_leaf_variable.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | include/memoria/prototypes/bt/container/bt_c_leaf_variable.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2015 Victor Smirnov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 26.522277 | 122 | 0.602706 | victor-smirnov |
93b8ae2ccb30914bf41e94c39d0ab0d2910f05d0 | 818 | cpp | C++ | codeforces/D - Minimum Triangulation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/D - Minimum Triangulation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/D - Minimum Triangulation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Mar/22/2019 21:42
* solution_verdict: Accepted language: GNU C++14
* run... | 43.052632 | 111 | 0.360636 | kzvd4729 |
93b9f51c946aa792d1050b0463bb5d673cc7ac2a | 6,155 | cpp | C++ | src/dio.cpp | johnsonjason/RVDbg | 63790440d3089bf74985171947483f5bfbcbe06b | [
"MIT"
] | 16 | 2019-09-05T01:12:21.000Z | 2022-01-10T12:33:31.000Z | src/dio.cpp | longmode/RVDbg | 63790440d3089bf74985171947483f5bfbcbe06b | [
"MIT"
] | null | null | null | src/dio.cpp | longmode/RVDbg | 63790440d3089bf74985171947483f5bfbcbe06b | [
"MIT"
] | 3 | 2018-09-07T08:51:26.000Z | 2019-01-06T07:39:13.000Z | #include "stdafx.h"
#include "dio.h"
/*++
Routine Description:
Initializes WSA data / Winsock
Parameters:
None
Return Value:
None
--*/
void dio::InitializeNetwork()
{
WSAData WsaData;
WSAStartup(MAKEWORD(2, 2), &WsaData);
}
/*++
Routine Description:
Starts the Debug Server, which interfaces with the D... | 23.314394 | 120 | 0.740374 | johnsonjason |
93bf148cd21c563abccc25de1deed48e7822c07d | 1,142 | cpp | C++ | gui/shapes/Line.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Line.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | null | null | null | gui/shapes/Line.cpp | TrapGameStudio/MouseTraps | 1160f8b6ef865b180f418bd6d83f40d59d938130 | [
"MIT"
] | 1 | 2020-04-19T23:20:25.000Z | 2020-04-19T23:20:25.000Z | #include "Line.h"
/// <summary>
/// Construct a line from 2 Points.
/// </summary>
/// <param name="p1">point 1</param>
/// <param name="p2">point 2</param>
Line::Line(Point* p1, Point* p2) {
this->p1 = p1;
this->p2 = p2;
}
/// <summary>
/// Construct a line from the coordinate of 2 points.
/// </summary>
//... | 22.84 | 93 | 0.595447 | TrapGameStudio |
93bf946d7e2beedad2beb2e86aceadfcfc7eaa1d | 1,385 | cpp | C++ | tutorial/more_basics/Expressions.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | tutorial/more_basics/Expressions.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | tutorial/more_basics/Expressions.cpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | #include "luanics/testing/Tutorial.hpp"
#include <type_traits>
BEGIN_CHAPTER(Expressions)
// As a reminder...
// Decltype
//
// X (input) -> decltype(X) (output)
// =================================================
// identifier of type T -> T
// ----------------------------------------... | 31.477273 | 71 | 0.587004 | luanics |
93c1749c635261908f933ed879fa893a9326b5b1 | 1,539 | cpp | C++ | apps/opencs/model/world/idtableproxymodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/idtableproxymodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/model/world/idtableproxymodel.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "idtableproxymodel.hpp"
#include <vector>
#include "idtablebase.hpp"
void CSMWorld::IdTableProxyModel::updateColumnMap()
{
mColumnMap.clear();
if (mFilter)
{
std::vector<int> columns = mFilter->getReferencedColumns();
const IdTableBase& table = dynamic_cast<const IdTableBase&>... | 27.482143 | 99 | 0.708902 | Bodillium |
93c3aaaf2f479fd8e17c86dc5e96d16e699a4d43 | 1,197 | cpp | C++ | Source/Windows/GithubIssuesWindow.cpp | humdingerb/Issues | 115ac2c3bc04e2f967fc884fa3fd7eb46aea6bbf | [
"MIT"
] | null | null | null | Source/Windows/GithubIssuesWindow.cpp | humdingerb/Issues | 115ac2c3bc04e2f967fc884fa3fd7eb46aea6bbf | [
"MIT"
] | null | null | null | Source/Windows/GithubIssuesWindow.cpp | humdingerb/Issues | 115ac2c3bc04e2f967fc884fa3fd7eb46aea6bbf | [
"MIT"
] | null | null | null | /*
* Copyright 2015 Your Name <your@email.address>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "GithubIssuesWindow.h"
#include "GithubRepository.h"
#include "Constants.h"
#include "IssuesContainerView.h"
#include <interface/MenuBar.h>
#include <interface/MenuItem.h>
#include... | 25.468085 | 96 | 0.785297 | humdingerb |
93c3ea338ec81545bc85c39ee99a047e03304c99 | 4,013 | cpp | C++ | test/separator_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 17 | 2019-01-03T11:17:31.000Z | 2021-10-31T19:19:41.000Z | test/separator_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 106 | 2018-03-03T16:37:17.000Z | 2020-08-31T09:24:52.000Z | test/separator_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 4 | 2018-05-21T13:30:01.000Z | 2019-06-12T07:43:43.000Z | #include <sealib/flow/separator.h>
#include <gtest/gtest.h>
#include <sealib/iterator/dfs.h>
#include <cstdio>
#include <cstdlib>
#include <random>
#include <sealib/collection/bitset.h>
#include <sealib/graph/graphcreator.h>
namespace Sealib {
static uint64_t n = 50;
static uint64_t deg = 4;
TEST(SeparatorTest, VSep... | 31.108527 | 80 | 0.468727 | thm-mni-ii |
93c68bb20cff1fd86d67754871a90d0445784680 | 1,826 | cpp | C++ | Common/MapGuideCommon/Services/RenderingService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Common/MapGuideCommon/Services/RenderingService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Common/MapGuideCommon/Services/RenderingService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 28.984127 | 124 | 0.640745 | achilex |
93cbf0c0d0f9d7ce039184dff6cd44601027bdcf | 2,818 | cpp | C++ | dependencies-include/nxogre/src/NxOgreSimpleShape.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | 2 | 2016-06-23T21:20:19.000Z | 2020-03-25T15:01:07.000Z | dependencies-include/nxogre/src/NxOgreSimpleShape.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | dependencies-include/nxogre/src/NxOgreSimpleShape.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | /** \file NxOgreSimpleShape.cpp
* \see NxOgreSimpleShape.h
* \version 1.0-21
*
* \licence NxOgre a wrapper for the PhysX physics library.
* Copyright (C) 2005-8 Robin Southern of NxOgre.org http://www.nxogre.org
* This library is free software; you can redistribute it and/or
* ... | 32.767442 | 87 | 0.529808 | bach74 |