hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec7446fc4af36d64c68344b4d9619a9098c878d8 | 3,468 | cpp | C++ | cpp/godot-cpp/src/gen/TextureLayered.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/TextureLayered.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/TextureLayered.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "TextureLayered.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
#include "Image.hpp"
namespace godot {
TextureLayered::___method_bindings TextureLayered::___mb = {};
void TextureLayered::___init_method_bindin... | 41.783133 | 154 | 0.789792 | GDNative-Gradle |
ec749757eb5106520231af244b31d13744d49a66 | 2,431 | cpp | C++ | isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/base/objs/AtmosModelFactory/AtmosModelFactory.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... | 30.3875 | 75 | 0.63513 | kdl222 |
3f47a80f400cd1cc69732af1e9dec95d15ed7b12 | 954 | cpp | C++ | src/receptor-bridge/receptors/TiltReceptor.cpp | bistanovski/ShiftEmitter | 000f14e3501bfb5d0b65cf2d9bbe8c150c66f391 | [
"MIT"
] | null | null | null | src/receptor-bridge/receptors/TiltReceptor.cpp | bistanovski/ShiftEmitter | 000f14e3501bfb5d0b65cf2d9bbe8c150c66f391 | [
"MIT"
] | 3 | 2018-05-05T19:51:14.000Z | 2018-05-06T22:25:41.000Z | src/receptor-bridge/receptors/TiltReceptor.cpp | bistanovski/ShiftEmitter | 000f14e3501bfb5d0b65cf2d9bbe8c150c66f391 | [
"MIT"
] | null | null | null | #include "TiltReceptor.hpp"
#include <QDebug>
TiltReceptor::TiltReceptor(QObject *parent) : Receptor(parent)
{
qDebug() << "TiltReceptor";
}
TiltReceptor::~TiltReceptor()
{
qDebug() << "~TiltReceptor";
}
void TiltReceptor::connectReceptor()
{
QObject::connect(&m_tiltSensor, SIGNAL(readingChanged()), thi... | 23.85 | 94 | 0.691824 | bistanovski |
3f4b62d952232e291a04c2a3b2fb320970ea9535 | 1,063 | cpp | C++ | src/btr/native_io.nix.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | 2 | 2021-08-02T15:04:33.000Z | 2021-08-10T05:07:46.000Z | src/btr/native_io.nix.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | src/btr/native_io.nix.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | #include "./native_io.hpp"
#include "./syserror.hpp"
using namespace btr;
#if !_WIN32
#include <unistd.h>
void posix_fd_traits::close(int fd) noexcept { ::close(fd); }
std::size_t posix_fd_traits::write(int fd, const_buffer cbuf) {
neo_assert(expects,
fd != null_handle,
"Attempte... | 27.25641 | 70 | 0.605833 | vector-of-bool |
3f4ece7a59eb5f75bc51e55c851b7c331440f617 | 3,081 | hpp | C++ | include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Valve/VR/IVRScreenshots__GetScreenshotPropertyFilename.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:15 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 54.052632 | 286 | 0.776696 | Futuremappermydud |
3f50c9431e2adc2e41c156e9fac5231e218f41c7 | 651 | hpp | C++ | include/haz/Tools/SourceInfo.hpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | include/haz/Tools/SourceInfo.hpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | include/haz/Tools/SourceInfo.hpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | #ifndef __HAZ_SOURCE_INF
#define __HAZ_SOURCE_INF
#include <haz/Tools/Macro.hpp>
BEG_NAMESPACE_HAZ
#define SOURCE_INFO_LIST __LINE__, __PRETTY_FUNCTION__, __FILE__
#define SOURCE_INFO ::haz::SourceInfo(SOURCE_INFO_LIST)
struct SourceInfo {
inline SourceInfo(unsigned int line, const char* func, const char* file)... | 22.448276 | 78 | 0.674347 | Hazurl |
3f5150feae066afa27501536c9e4d4ecb09eae86 | 171 | hpp | C++ | cpp/Autogarden/include/pins/interfaces/output.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | cpp/Autogarden/include/pins/interfaces/output.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | cpp/Autogarden/include/pins/interfaces/output.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | #pragma once
#include <pins/interfaces/pin.hpp>
class IOutputPin : virtual public IPin {
public:
virtual ~IOutputPin() = default;
virtual void connect() = 0;
}; | 17.1 | 40 | 0.690058 | e-dang |
3f51813b9ca97a9e20f84b41c6663a2d08d07cd1 | 3,225 | hh | C++ | include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | include/introvirt/windows/kernel/nt/types/objects/FILE_OBJECT.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 30.714286 | 100 | 0.688372 | srpape |
3f53f83a723c80a9ba3a98b0c76669d871de493e | 1,342 | cpp | C++ | src/Collection.cpp | fatehmtd/QtPexelsLib | f38bc62b43444c98935c72164f87aeb9a4021a44 | [
"MIT"
] | 3 | 2021-11-19T21:37:41.000Z | 2021-12-09T21:20:17.000Z | src/Collection.cpp | fatehmtd/QtPexelsLib | f38bc62b43444c98935c72164f87aeb9a4021a44 | [
"MIT"
] | null | null | null | src/Collection.cpp | fatehmtd/QtPexelsLib | f38bc62b43444c98935c72164f87aeb9a4021a44 | [
"MIT"
] | null | null | null | #include "../include/Collection.h"
qtpexels::Collection::Collection(QObject* parent)
: FetchableResource(parent)
{
}
bool qtpexels::Collection::processJSON(const QJsonObject& jsonObject)
{
_id = jsonObject["id"].toString();
_title = jsonObject["title"].toString();
_description = jsonObject[... | 20.96875 | 70 | 0.672131 | fatehmtd |
3f56037fcbef6bda39ff9d24e5fb8fa7a61e044f | 4,177 | cpp | C++ | Source/RenderMotion.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | 10 | 2020-03-26T08:51:29.000Z | 2021-08-17T07:43:12.000Z | Source/RenderMotion.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | null | null | null | Source/RenderMotion.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | null | null | null | #include "RenderMotion.h"
#include "VkUtil.h"
void RenderMotion::Create(const RenderContext& rc)
{
// Generate
{
VkDescriptorSetLayoutBinding set_layout_bindings[] =
{
{ 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL },
{ 1, VK_DESCRIPTOR_TYP... | 37.630631 | 169 | 0.762988 | marcussvensson92 |
3f58aedd4acc2f31c673e6ba3b8eed88ce901e63 | 689 | hpp | C++ | components/python/detail/context_manager.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 9 | 2020-07-20T15:32:07.000Z | 2021-06-04T13:02:58.000Z | components/python/detail/context_manager.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 26 | 2019-10-27T12:58:42.000Z | 2020-05-30T16:43:48.000Z | components/python/detail/context_manager.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 3 | 2020-08-29T07:07:49.000Z | 2021-06-04T13:02:59.000Z | #pragma once
#include <list>
#include <memory>
#include <unordered_map>
#include <boost/filesystem.hpp>
#include <boost/utility/string_view.hpp>
#include <detail/forward.hpp>
namespace components { namespace python { namespace detail {
constexpr const static char* __default__ = "default";
class context_ma... | 23.758621 | 76 | 0.698113 | jinntechio |
3f58caacc4df8b2c650520659ac51658e51a74d7 | 1,947 | cpp | C++ | day16/Packet.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | 1 | 2021-12-02T14:11:37.000Z | 2021-12-02T14:11:37.000Z | day16/Packet.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | day16/Packet.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | #include "Packet.hpp"
#include <algorithm>
std::uint64_t Packet::GetVersionSum() const noexcept
{
std::uint64_t versionSum{version};
if (type != 4)
{
for (const auto &sub: std::get<std::vector<Packet>>(content))
{
versionSum += sub.GetVersionSum();
}
}
return versionSum;
}
std::uint64_t Packet::Solv... | 22.639535 | 67 | 0.543914 | fardragon |
3f58e087a958649137ef391194bd6e849c41c9d4 | 678,705 | cpp | C++ | tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp | florianjacob/gpuocelot | fa63920ee7c5f9a86e264cd8acd4264657cbd190 | [
"BSD-3-Clause"
] | 221 | 2015-03-29T02:05:49.000Z | 2022-03-25T01:45:36.000Z | tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 106 | 2015-03-29T01:28:42.000Z | 2022-02-15T19:38:23.000Z | tests/cuda2.2/tests/Particles/particles_kernel.cu.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 83 | 2015-07-10T23:09:57.000Z | 2022-03-25T03:01:00.000Z | # 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/tmp/tmpxft_00000aee_00000000-1_particles_kernel.cudafe1.cpp"
# 1 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/particles_kernel.cu"
# 46 "/usr/local/cuda/bin/../include/device_types.h"... | 50.453836 | 2,550 | 0.765421 | florianjacob |
3f5ffcc2526668fb182c0708fd54026e5d49ecbe | 601 | cpp | C++ | source/002/main.cpp | TheBuzzSaw/ProjectEuler | 0aa472dc7dac3a710b6a99538b2cbaf8b6463abc | [
"Unlicense"
] | 1 | 2015-03-12T19:56:28.000Z | 2015-03-12T19:56:28.000Z | source/002/main.cpp | TheBuzzSaw/ProjectEuler | 0aa472dc7dac3a710b6a99538b2cbaf8b6463abc | [
"Unlicense"
] | null | null | null | source/002/main.cpp | TheBuzzSaw/ProjectEuler | 0aa472dc7dac3a710b6a99538b2cbaf8b6463abc | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstdint>
using namespace std;
int64_t GetTotal(int64_t limit)
{
int64_t total = 0;
int64_t a = 0;
int64_t b = 1;
while (1)
{
int64_t c = a + b;
a = b;
b = c;
if (a < limit)
{
bool... | 15.815789 | 39 | 0.379368 | TheBuzzSaw |
3f636d376f42b8052c54f6ec2693c10eae419d96 | 397 | cpp | C++ | 02_Array_Representation/05_static_allocation_of_array_in_stack.cpp | krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP | 0eedb6fb8a395ff050ae37dc4b8c6470f5b47579 | [
"Apache-2.0"
] | 2 | 2020-07-01T17:10:20.000Z | 2021-08-02T22:46:32.000Z | 02_Array_Representation/05_static_allocation_of_array_in_stack.cpp | krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP | 0eedb6fb8a395ff050ae37dc4b8c6470f5b47579 | [
"Apache-2.0"
] | null | null | null | 02_Array_Representation/05_static_allocation_of_array_in_stack.cpp | krishna6431/Data-Structure-Algorithms-Implementation-Using_CPP | 0eedb6fb8a395ff050ae37dc4b8c6470f5b47579 | [
"Apache-2.0"
] | null | null | null | //Data Structure Course
//All Codes Are Written by Krishna
//Arrays Representation
#include <iostream>
using namespace std;
int main(){
// this declaration allocates memory in stack at runtime
//this is static allocation -->size can't be changed
int arr[5]={1,2,3,4,5};
for(int i=0;i<5;i++){
cout... | 23.352941 | 59 | 0.627204 | krishna6431 |
3f64d96d92dbee74a82072fece7976cbab845862 | 1,918 | cpp | C++ | NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | NumberTheory/SieveOfEratosthenes/SieveOfEratosthenes.cpp | CStanKonrad/Algorithms | 494d86bc2a9248d71a0f9008d8d678386f9ca906 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2015 CStanKonrad
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, p... | 28.626866 | 78 | 0.699166 | CStanKonrad |
3f6c3c7559ba6469ada0e4b4f53c5a81b7468759 | 502 | cpp | C++ | android-31/java/nio/file/spi/FileTypeDetector.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/nio/file/spi/FileTypeDetector.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/nio/file/spi/FileTypeDetector.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../../JString.hpp"
#include "../../../lang/Void.hpp"
#include "./FileTypeDetector.hpp"
namespace java::nio::file::spi
{
// Fields
// QJniObject forward
FileTypeDetector::FileTypeDetector(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
JString FileTypeDetector::probeContentType(... | 20.08 | 69 | 0.673307 | YJBeetle |
3f6cda39762e458a5bcdeb657ec68154cc34986f | 711 | cpp | C++ | CodeChef DSA Learning/Week 3/SAVKONO.cpp | mishrraG/100DaysOfCode | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 13 | 2020-08-10T14:06:37.000Z | 2020-09-24T14:21:33.000Z | CodeChef DSA Learning/Week 3/SAVKONO.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | null | null | null | CodeChef DSA Learning/Week 3/SAVKONO.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 1 | 2020-05-31T21:09:14.000Z | 2020-05-31T21:09:14.000Z | //https://www.codechef.com/LRNDSA03/problems/SAVKONO/
#include<bits/stdc++.h>
#define endl '\n'
using namespace std;
int main()
{
ios :: sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int t;
cin>>t;
while(t--)
{
int n,z;
cin>>n>>z;
priority_queue<int> pq... | 19.75 | 53 | 0.416315 | mishrraG |
3f721e60daf2971fe1db76fd33201e5466de0196 | 28,428 | cpp | C++ | src/cli.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | 1 | 2021-06-28T00:31:08.000Z | 2021-06-28T00:31:08.000Z | src/cli.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | src/cli.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | /******************************************************************************
* Author(s): Christopher J. Havlicek
*
* See LICENSE and CONTACTS.
******************************************************************************/
#include "cli.hpp"
#include "canvas.hpp"
#include "cli/parser.hpp"
#include "cmd/command... | 26.894986 | 204 | 0.486949 | moralismercatus |
3f7674bcde69f0c529c272c57ab40dd1eaa949fb | 1,809 | cpp | C++ | devices/CAN/src/BitStream.cpp | gboyraz/macchina.io | 3e26fea95e87512459693831242b297f0780cc21 | [
"Apache-2.0"
] | 2 | 2020-11-23T23:37:00.000Z | 2020-12-22T04:02:41.000Z | devices/CAN/src/BitStream.cpp | bas524/cmake.macchina.io | 22a21d78f8075fd145b788b41a23603591e91c9f | [
"Apache-2.0"
] | null | null | null | devices/CAN/src/BitStream.cpp | bas524/cmake.macchina.io | 22a21d78f8075fd145b788b41a23603591e91c9f | [
"Apache-2.0"
] | 1 | 2020-11-23T23:37:09.000Z | 2020-11-23T23:37:09.000Z | //
// BitStream.cpp
//
// Copyright (c) 2018, Applied Informatics Software Engineering GmbH.
// All rights reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
#include "IoT/CAN/BitStream.h"
#include "Poco/SharedPtr.h"
namespace IoT {
namespace CAN {
BigEndianBitStream::BigEndianBitStream(const char* buffer, st... | 17.066038 | 105 | 0.688226 | gboyraz |
3f78f3c890e565b748fab6b1d3228b5acb243153 | 6,730 | hpp | C++ | include/interfaces/Ports/Speaker.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | 2 | 2020-09-21T12:30:05.000Z | 2020-10-14T19:43:51.000Z | include/interfaces/Ports/Speaker.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | null | null | null | include/interfaces/Ports/Speaker.hpp | CapRat/APAL | a08f4bc6ee6299e8e370ef99750262ad23c87d58 | [
"MIT"
] | null | null | null | #ifndef SPEAKER_HPP
#define SPEAKER_HPP
#include <cstdint>
#include <type_traits>
#define SPOS_TO_SCONF(SpeakerConfigurationtype) \
static_cast<std::underlying_type<SpeakerConfiguration>::type>( \
SpeakerConfigurationtype)
namespace APAL {
enum class SpeakerConfigurati... | 37.388889 | 80 | 0.725706 | CapRat |
3f7d37865dde391837cc865c6dbedde503994248 | 588 | cpp | C++ | Trees/Symmetric Binary Tree.cpp | shawamar/InterviewBit | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | [
"MIT"
] | null | null | null | Trees/Symmetric Binary Tree.cpp | shawamar/InterviewBit | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | [
"MIT"
] | null | null | null | Trees/Symmetric Binary Tree.cpp | shawamar/InterviewBit | 6a800a35e8f9bc0a66d7f94c1dca25bca3abff6f | [
"MIT"
] | null | null | null | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
int isSymmetricHelper(TreeNode* root1, TreeNode* root2)
{
if (!root1 || !root2)
return root1 == root2;
if (root1->va... | 26.727273 | 61 | 0.591837 | shawamar |
3f8510ca5983362ea4d1ba60f0c3d454cc84565c | 121 | cpp | C++ | src/main.cpp | Panky-codes/cpp-template | 1f653e38220899a58fea8878751481ebbc152e7b | [
"Unlicense"
] | null | null | null | src/main.cpp | Panky-codes/cpp-template | 1f653e38220899a58fea8878751481ebbc152e7b | [
"Unlicense"
] | null | null | null | src/main.cpp | Panky-codes/cpp-template | 1f653e38220899a58fea8878751481ebbc152e7b | [
"Unlicense"
] | null | null | null | // Own header
#include "lib.h"
// System header
// Third-party header
int main() {
print_hello();
return 0;
}
| 10.083333 | 21 | 0.603306 | Panky-codes |
3f87c88a5a7434042a471a353f24d0a68e3b2aa9 | 356 | cpp | C++ | Arrays 101/duplicateZeros.cpp | AasthaVarma/LeetCode | d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b | [
"MIT"
] | null | null | null | Arrays 101/duplicateZeros.cpp | AasthaVarma/LeetCode | d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b | [
"MIT"
] | null | null | null | Arrays 101/duplicateZeros.cpp | AasthaVarma/LeetCode | d654aadb4c32e8ae90d7d9418c5d1fe3bd23ae2b | [
"MIT"
] | null | null | null | class Solution {
public:
void duplicateZeros(vector<int>& arr) {
int n=arr.size(), new_n = n;
for(int i=0; i<n; i++){
if(arr[i] == 0){
for(int j=n-1; j>i+1; j--)
arr[j] = arr[j-1];
i++;
if(i<n)
arr[i] = 0... | 22.25 | 43 | 0.325843 | AasthaVarma |
3f8c08598f0deefc9c0030666c464412943a0811 | 782 | cpp | C++ | classwithdefulcons.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | classwithdefulcons.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | classwithdefulcons.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null |
#include<iostream>
#include<conio.h>
using namespace std;
class b1
{
public:
b1()
{
cout << "no argument const of the base class b1 is executed " << endl;
}
~b1()
{
cout << "des des b1 " << endl;
}
};
cla... | 15.038462 | 82 | 0.410486 | maansisrivastava |
3f90fe382a520bdce9686648556e4220f52032d6 | 2,987 | hpp | C++ | include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:27:57.000Z | 2022-01-25T23:26:54.000Z | include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:12:42.000Z | 2015-06-23T12:41:00.000Z | include/clotho/data_spaces/free_space/free_space_task_population_space_columnar.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2015 Patrick Putnam
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 32.824176 | 138 | 0.656177 | putnampp |
3f9526e7302c1dd474f23fb672e41410dab74860 | 2,846 | hpp | C++ | pianotrain/musicxml/xmlparse.hpp | chkven7/pianotrain | 46273e5533238c039205d41cdcfd26a51a4781fe | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | pianotrain/musicxml/xmlparse.hpp | chkven7/pianotrain | 46273e5533238c039205d41cdcfd26a51a4781fe | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | pianotrain/musicxml/xmlparse.hpp | chkven7/pianotrain | 46273e5533238c039205d41cdcfd26a51a4781fe | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | /* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU... | 28.46 | 75 | 0.709065 | chkven7 |
3f976fb58cfef1228b445a37c8bd3509bc5ffc07 | 844 | hh | C++ | src/Splitting.hh | aalto-speech/morphological-classes | a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3 | [
"BSD-2-Clause"
] | null | null | null | src/Splitting.hh | aalto-speech/morphological-classes | a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3 | [
"BSD-2-Clause"
] | null | null | null | src/Splitting.hh | aalto-speech/morphological-classes | a7dcdb0703b33765ed43a9a56a3ca453dc5ed5e3 | [
"BSD-2-Clause"
] | null | null | null | #ifndef SPLITTING
#define SPLITTING
#include <map>
#include <set>
#include <string>
#include <vector>
#include "Exchanging.hh"
class Splitting : public Exchanging {
public:
Splitting();
Splitting(int num_classes,
const std::map<std::string, int>& word_classes,
std::string corpus_fname... | 25.575758 | 59 | 0.611374 | aalto-speech |
3f9cfc3e367a49775875a41d2f31b3848c2eebbd | 2,634 | cpp | C++ | Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp | rudrajit1729/Algorithms-MIT | 8d1082a350ee7aafd7aebf1aff85e6830be978f2 | [
"MIT"
] | 2 | 2020-07-23T02:38:31.000Z | 2021-08-28T10:06:01.000Z | Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp | rudrajit1729/Algorithms-MIT | 8d1082a350ee7aafd7aebf1aff85e6830be978f2 | [
"MIT"
] | null | null | null | Shortest Path Algorithms/Shortest Path - DAG/ShortestPath_DAG.cpp | rudrajit1729/Algorithms-MIT | 8d1082a350ee7aafd7aebf1aff85e6830be978f2 | [
"MIT"
] | 1 | 2020-08-14T10:31:23.000Z | 2020-08-14T10:31:23.000Z | // Shortest path in DAG(Direct Acyclic Graph)
// Author - rudrajit1729
// Approach - Topologically sort the graph -> Once sorted start from
// the required vertex and go right relaxing the edges
// Finally you get to the shortest path for every node reachable from that node
#include<bits/stdc++.h>
#define INF ... | 23.945455 | 81 | 0.574791 | rudrajit1729 |
3f9e336e1c4e0e221dd5c07c496684a1fd712252 | 1,792 | cpp | C++ | Restaurant/Rest/Order.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | Restaurant/Rest/Order.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | Restaurant/Rest/Order.cpp | abdallaMahmoud99/DS_Project_CMP_1ST_YEAR | ddc05e51e985f7c569b4a20eb7faa30a81613f65 | [
"MIT"
] | null | null | null | #include "Order.h"
void Order::setID(int i)
{
ID = i;
}
Order::Order(int id, ORD_TYPE r_Type, REGION r_region,int distance ,double money ,int Arr_time )
{
ID = (id>0&&id<1000)?id:0; //1<ID<999
type = r_Type;
Region = r_region;
totalMoney = money;
ArrTime = Arr_time;
Distance = distance; // added by abdalla... | 13.080292 | 99 | 0.674665 | abdallaMahmoud99 |
3fa3415b1a8d397b182438b1d1c77b9e7284dad7 | 6,972 | hpp | C++ | Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | 15 | 2020-11-10T17:22:39.000Z | 2021-12-16T14:45:11.000Z | Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | 5 | 2021-08-30T06:58:52.000Z | 2022-03-09T15:25:49.000Z | Drivers/Ximc/Interfaces/libmcdriver_ximc_types.hpp | alexanderoster/AutodeskMachineControlFramework | 17aec986c2cb3c9ea46bbe583bdc0e766e6f980b | [
"BSD-3-Clause"
] | 20 | 2020-08-06T15:53:34.000Z | 2022-02-09T13:49:59.000Z | /*++
Copyright (C) 2020 Autodesk Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the ... | 47.108108 | 142 | 0.658061 | alexanderoster |
3fa5417ba40b719e7a5853c8ca93837e3b3956c4 | 380 | hpp | C++ | src/Piece/inc/mocks/PieceFactory.hpp | bandienkhamgalan/chess-engine | 1a3f365b615cbafd1b68dfc3a2681f904b9d85e6 | [
"Apache-2.0"
] | 1 | 2017-03-21T07:57:01.000Z | 2017-03-21T07:57:01.000Z | src/Piece/inc/mocks/PieceFactory.hpp | bandienkhamgalan/chess-engine | 1a3f365b615cbafd1b68dfc3a2681f904b9d85e6 | [
"Apache-2.0"
] | null | null | null | src/Piece/inc/mocks/PieceFactory.hpp | bandienkhamgalan/chess-engine | 1a3f365b615cbafd1b68dfc3a2681f904b9d85e6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "gmock/gmock.h"
#include "IPieceFactory.hpp"
#include "IObservableBoard.hpp"
namespace Chess
{
class IObservableBoard;
class Location;
class IPlayer;
namespace Mocks
{
class PieceFactory
: public IPieceFactory
{
public:
MOCK_METHOD3(makePiece, std::unique_ptr<IPiece>(std::weak_ptr<IObse... | 19 | 121 | 0.755263 | bandienkhamgalan |
3fa87c29828d906eb44c19d01a0e53499f2959cf | 10,258 | cpp | C++ | src/plugProjectNishimuraU/FixKabutoMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectNishimuraU/FixKabutoMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectNishimuraU/FixKabutoMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_8048D8F8
lbl_8048D8F8:
.asciz "/enemy/data/Kabuto/babykabuto_green_s3tc.bti"
.skip 3
.global lbl_8048D928
lbl_8048D928:
.4byte 0x8CC592E8
.4byte 0x834A8375
... | 23.74537 | 80 | 0.637161 | projectPiki |
3fa98f9554e7bd2a980e2ba4543a423b7f37f355 | 1,149 | cc | C++ | src/Geometry/GeomThirdRankTensor.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Geometry/GeomThirdRankTensor.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Geometry/GeomThirdRankTensor.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | //---------------------------------Spheral++----------------------------------//
// GeomThirdRankTensor -- Geometric Tensor (rank 3) Class.
//
// This is a very simple, limited functionality rank 3 tensor. Assumes
// the thing is dimensioned nDim x nDim x nDim.
//
// Created by JMO, Thu Jul 17 17:05:58 PDT 2008
//----... | 44.192308 | 99 | 0.553525 | markguozhiming |
3fabcecf6d8e0fff725ee5269db5c4b49c3245c8 | 2,547 | cpp | C++ | Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | null | null | null | Sources/x10/xla_tensor/ops/rrelu_with_noise_backward.cpp | vguerra/swift-apis | 215c1380874c55d2f12ae81ce78968f9e25ed723 | [
"Apache-2.0"
] | 1 | 2020-06-04T23:23:46.000Z | 2020-06-04T23:23:46.000Z | // Copyright 2020 TensorFlow 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... | 39.796875 | 80 | 0.648606 | vguerra |
3faf670b3c11dcadd2dc9e387c40d91672adb38d | 206 | cpp | C++ | DS and Algo/12. tree/9. Print Pre-Order.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 7 | 2020-10-01T13:31:02.000Z | 2021-11-06T16:22:31.000Z | DS and Algo/12. tree/9. Print Pre-Order.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 9 | 2020-10-01T10:35:59.000Z | 2021-10-03T15:00:18.000Z | DS and Algo/12. tree/9. Print Pre-Order.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 44 | 2020-10-01T08:49:30.000Z | 2021-10-31T18:19:48.000Z | void PrintPreOrder(TreeNode<int>* root){
if(root==NULL){
return;
}
cout<<root->data<<" ";
for(int i=0;i<root->children.size();i++){
PrintPreOrder(root->children[i]);
}
}
| 20.6 | 45 | 0.543689 | tausiq2003 |
3fafb58dd9c06ef46fd2b9ee903c2304c48429af | 8,845 | cpp | C++ | main/WindowClass.cpp | satadriver/LiunuxOS_C_t | 38e0e6086cda728008d35f101107d9c591ff38bc | [
"Apache-2.0"
] | null | null | null | main/WindowClass.cpp | satadriver/LiunuxOS_C_t | 38e0e6086cda728008d35f101107d9c591ff38bc | [
"Apache-2.0"
] | null | null | null | main/WindowClass.cpp | satadriver/LiunuxOS_C_t | 38e0e6086cda728008d35f101107d9c591ff38bc | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "windowclass.h"
#include "video.h"
#include "Utils.h"
#include "screenUtils.h"
#include "mouse.h"
#include "keyboard.h"
#include "task.h"
#include "file.h"
#include "gdi.h"
#include "Pe.h"
#include "gdi/jpeg.h"
#include "keyboard.h"
#include "mouse.h"
#include "window.h"
int __kShowWindow(unsign... | 26.482036 | 115 | 0.684681 | satadriver |
3fb275b1fdbbbd1fe2e2f585202016030e9a499d | 97 | cpp | C++ | ModelViewer/Scene/GraphNode.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 64 | 2018-05-25T06:18:42.000Z | 2019-04-15T17:27:38.000Z | ModelViewer/Scene/GraphNode.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 4 | 2018-05-26T10:53:33.000Z | 2018-10-20T20:46:41.000Z | ModelViewer/Scene/GraphNode.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 13 | 2019-09-19T00:50:07.000Z | 2022-03-22T13:39:52.000Z | #include "pch.h"
#include "GraphNode.h"
GraphNode::GraphNode()
{
}
GraphNode::~GraphNode()
{
}
| 8.818182 | 23 | 0.659794 | seanisom |
3fb74b04398c86a82ee87fd73e7978448181f8f1 | 4,496 | cpp | C++ | loadNVML.cpp | nvpro-samples/nvml_enterprise_gpu_check | 84d2e25b0d59a3b7527e4134dca0e7963bff73ce | [
"Apache-2.0"
] | 3 | 2020-12-22T16:28:42.000Z | 2021-05-07T03:09:35.000Z | loadNVML.cpp | nvpro-samples/nvml_enterprise_gpu_check | 84d2e25b0d59a3b7527e4134dca0e7963bff73ce | [
"Apache-2.0"
] | null | null | null | loadNVML.cpp | nvpro-samples/nvml_enterprise_gpu_check | 84d2e25b0d59a3b7527e4134dca0e7963bff73ce | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 29.578947 | 128 | 0.694617 | nvpro-samples |
3fbc2c1511a22a9326d773d89fa0210f8eb87c5e | 3,315 | cpp | C++ | GameEngine/src/GameEngine/Debug/Instrumentor.cpp | Mevelec/GameEngine | 70195139dcf74170ed34282ce1918160364a441f | [
"Apache-2.0"
] | null | null | null | GameEngine/src/GameEngine/Debug/Instrumentor.cpp | Mevelec/GameEngine | 70195139dcf74170ed34282ce1918160364a441f | [
"Apache-2.0"
] | null | null | null | GameEngine/src/GameEngine/Debug/Instrumentor.cpp | Mevelec/GameEngine | 70195139dcf74170ed34282ce1918160364a441f | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "GameEngine/Debug/Instrumentor.h"
namespace GameEngine {
Instrumentor::Instrumentor()
: currentSession(nullptr)
{
}
void Instrumentor::beginSession(const std::string& name, const std::string& filepath)
{
std::lock_guard lock(this->mutex);
if (this->currentSession) {
// If the... | 29.078947 | 209 | 0.66727 | Mevelec |
3fbd89de088e25b8660b22f80092d7770af13880 | 2,401 | cpp | C++ | src/socket.cpp | envelope-project/lauSim | 6dc188600823d9c9464df0063a39a1ec3a6e9eda | [
"Apache-2.0"
] | null | null | null | src/socket.cpp | envelope-project/lauSim | 6dc188600823d9c9464df0063a39a1ec3a6e9eda | [
"Apache-2.0"
] | null | null | null | src/socket.cpp | envelope-project/lauSim | 6dc188600823d9c9464df0063a39a1ec3a6e9eda | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2017 Clemens Jonischkeit
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 t... | 24.5 | 86 | 0.60683 | envelope-project |
3fc2a818b30b2a24ade65a8a5e638328ed2fe018 | 178 | hpp | C++ | AL/Common/Endians.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Common/Endians.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | AL/Common/Endians.hpp | LeoTHPS/AbstractionLayer | c2a77cc090214b9455af65aee6b9331bc6a64fd2 | [
"MIT"
] | null | null | null | #pragma once
#include "AL/Common.hpp"
namespace AL
{
enum class Endians : uint8
{
Big,
Little,
Machine = ((0xFFFFFFFF & 0x00000001) == 0x00000001) ? Little : Big
};
}
| 12.714286 | 68 | 0.646067 | LeoTHPS |
3fc54a6e89098b26a6e9ad85d8492819589a9479 | 643 | hpp | C++ | inc/large_object.hpp | danilailie/ConcurrentHashMap | 5d532018fa194ddc851b722aeda00d3fd07a2c8c | [
"MIT"
] | null | null | null | inc/large_object.hpp | danilailie/ConcurrentHashMap | 5d532018fa194ddc851b722aeda00d3fd07a2c8c | [
"MIT"
] | null | null | null | inc/large_object.hpp | danilailie/ConcurrentHashMap | 5d532018fa194ddc851b722aeda00d3fd07a2c8c | [
"MIT"
] | null | null | null | #ifndef _LARGE_OBJECT_HPP_
#define _LARGE_OBJECT_HPP_
#include <mutex>
#include <vector>
class LargeObject
{
public:
explicit LargeObject (int anIndex) : index (anIndex)
{
data.resize (10000);
}
LargeObject (const LargeObject &other)
{
std::unique_lock<std::mutex> lock (copyMutex);
data = other... | 14.953488 | 54 | 0.66874 | danilailie |
3fca0a4e63acb2c0a30a939cc978b933f8ea5e7f | 104 | cpp | C++ | src/utils/utils.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | src/utils/utils.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | src/utils/utils.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #include "utils/utils.hpp"
#include <vector>
#include <iostream>
#include <string>
namespace cytnx{
}
| 11.555556 | 26 | 0.721154 | j9263178 |
3fca46273de867ec233fb3c2f45317f38636cd7f | 8,192 | cpp | C++ | source/io/IO.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | 8 | 2017-05-04T07:50:02.000Z | 2019-05-17T02:27:20.000Z | source/io/IO.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | source/io/IO.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | #include "IO.hpp"
#include "exception/exception.hpp"
#include "number/number.hpp"
#include <fstream>
#include <iomanip>
#include <limits>
int IO::loadSDDInfo(std::string directory, Domain& domain) {
#ifndef SEQUENTIAL
int SDDid;
MPI_Comm_rank(MPI_COMM_WORLD, &SDDid);
#else
int SDDid = 0;
#endi... | 31.267176 | 181 | 0.585083 | will-iam |
3fcaab27705037b4dd1f57f02e5cc14c4444cbdd | 1,208 | hpp | C++ | src/Graphics/Transform.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | 1 | 2022-02-10T04:41:57.000Z | 2022-02-10T04:41:57.000Z | src/Graphics/Transform.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | src/Graphics/Transform.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | #ifndef DRK_GRAPHICS_TRANSFORM_HPP
#define DRK_GRAPHICS_TRANSFORM_HPP
#include "lib/glm/mat4.hpp"
#include "lib/glm/vec3.hpp"
namespace DrkCraft
{
class Transform
{
private:
mat4 m_matrix;
public:
Transform(void); // Identity matrix
Transform(const mat4& matrix);
Tran... | 28.093023 | 65 | 0.655629 | D3r3k23 |
3fcbdb44c5373b7f0e88d78c419c4d59cd7bcc68 | 561 | cpp | C++ | Flick/src/Flick/Renderer/Renderer.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | Flick/src/Flick/Renderer/Renderer.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | Flick/src/Flick/Renderer/Renderer.cpp | firo1738/FLICK | a6ccb0f23c212d0f1b97f71520beb3a89be57f2d | [
"Apache-2.0"
] | null | null | null | #include "fipch.h"
#include "Renderer.h"
namespace Flick
{
Renderer::SceneData* Renderer::s_SceneData = new Renderer::SceneData;
void Renderer::BeginScene(OrthographicCamera& camera)
{
s_SceneData->ViewProjectionMatrix = camera.GetViewProjectionMatrix();
}
void Renderer::EndScene()
{
}
void Renderer::Sub... | 21.576923 | 101 | 0.741533 | firo1738 |
3fcc765bf885aa85a1b1310ee0c0c01f12e966d9 | 10,000 | cpp | C++ | sources/math/fraction.cpp | bce-toolkit/historical-bce-cpp-1.x-with-shell | 11b5bd3782eeded9240ac5181c64baff293c667b | [
"BSD-2-Clause"
] | null | null | null | sources/math/fraction.cpp | bce-toolkit/historical-bce-cpp-1.x-with-shell | 11b5bd3782eeded9240ac5181c64baff293c667b | [
"BSD-2-Clause"
] | null | null | null | sources/math/fraction.cpp | bce-toolkit/historical-bce-cpp-1.x-with-shell | 11b5bd3782eeded9240ac5181c64baff293c667b | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2012-2013, The BCE Project authors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | 22.624434 | 117 | 0.6749 | bce-toolkit |
3fcdf9d5b15855cd8aa1e303670f5e1e67c00812 | 11,413 | cpp | C++ | oculusTest/Main.cpp | Ybalrid/ogre-oculus-opengl | 7d23ecfcd24ff6babcd111718047a2b841ff24fb | [
"MIT"
] | 2 | 2016-05-19T15:01:37.000Z | 2017-04-18T14:42:27.000Z | oculusTest/Main.cpp | Ybalrid/ogre-oculus-opengl | 7d23ecfcd24ff6babcd111718047a2b841ff24fb | [
"MIT"
] | 1 | 2016-04-07T08:59:39.000Z | 2016-04-07T08:59:39.000Z | oculusTest/Main.cpp | Ybalrid/ogre-oculus-opengl | 7d23ecfcd24ff6babcd111718047a2b841ff24fb | [
"MIT"
] | null | null | null | #ifdef _WIN32
#define mainFunc() int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <glew.h>
#else
#define mainFunc() int main(void)
#endif
#include <iostream>
#include <Ogre.h>
#include <RenderSystems/GL/OgreGLTexture... | 36.935275 | 147 | 0.760011 | Ybalrid |
3fd24f04ce01504b604379bb1e05634bcbd8b6ee | 317 | hpp | C++ | ray.hpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | ray.hpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | ray.hpp | dodopod/raycast | 31d1d508c7a6fd86f184fc43079bfaaf9d5a28c1 | [
"MIT"
] | null | null | null | #ifndef RAY_HPP
#define RAY_HPP
#include "vec2.hpp"
class Ray
{
public:
Ray(const Vec2& p, const Vec2& v);
Vec2 getOrigin() const;
Vec2 getDirection() const;
void setOrigin(const Vec2& p);
void setDirection(const Vec2& v);
private:
Vec2 origin;
Vec2 direction;
};
#endif
| 13.782609 | 38 | 0.630915 | dodopod |
3fdbe4b7078cf0a64dd3d66b879007619a6c7f5f | 3,220 | cpp | C++ | subject/Exam_2_singleton.cpp | IdiotXue/OfferCoding | 38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e | [
"MIT"
] | 14 | 2017-12-29T08:18:14.000Z | 2020-01-06T16:06:31.000Z | subject/Exam_2_singleton.cpp | IdiotXue/OfferCoding | 38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e | [
"MIT"
] | null | null | null | subject/Exam_2_singleton.cpp | IdiotXue/OfferCoding | 38d2b1fc2ea3f1d0aff025cb8d038a8696cd567e | [
"MIT"
] | 1 | 2019-12-20T06:07:50.000Z | 2019-12-20T06:07:50.000Z | //main.cpp
#include <iostream>
#include "Singleton.h"
int main(int argc, char *argv[])
{
std::cout << "main work" << std::endl;
auto single = Singleton::GetInstance();
std::cout << single << std::endl;
}
//Singleton.h
#ifndef __SINGLETON_H__
#define __SINGLETON_H__
#include <iostream>
#include <memory> ... | 28.495575 | 82 | 0.646894 | IdiotXue |
3fdf84459ab8fd5bd00c450e6a32393b198e3d92 | 282 | cpp | C++ | contest/AtCoder/abc135/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc135/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc135/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
int n(in);
Vector<int64_t> a(n + 1, in), b(n, in);
int64_t res = 0;
for (int i = 0; i < n; ++i) {
auto r1 = min(a[i], b[i]);
auto r2 = min(a[i + 1], b[i] - r1);
res += r1 + r2;
a[i + 1] -= r2;
}
cout << res << endl;
}
| 18.8 | 41 | 0.443262 | not522 |
3fe1e08052fbf04b08e0214547368e45b3804aa4 | 637 | cpp | C++ | YorozuyaGSLib/source/_pt_trans_votepaper_zocl.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_pt_trans_votepaper_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_pt_trans_votepaper_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_pt_trans_votepaper_zocl.hpp>
START_ATF_NAMESPACE
_pt_trans_votepaper_zocl::_pt_trans_votepaper_zocl()
{
using org_ptr = void (WINAPIV*)(struct _pt_trans_votepaper_zocl*);
(org_ptr(0x1402bfff0L))(this);
};
void _pt_trans_votepaper_zocl::ctor__pt_trans_votepaper_zocl()
{
... | 28.954545 | 74 | 0.689168 | lemkova |
3fe76f19d28426a27e7fd1418b7032b118b02e00 | 745 | cc | C++ | src/Animation.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | src/Animation.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | src/Animation.cc | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | #include "Animation.hh"
Animation:: Animation(const char* animationUrl, Drawable*& drawable)
{
reader = new std::ifstream();
reader->open(animationUrl);
*reader >> delay;
*reader >> row;
*reader >> startFrame;
*reader >> endFrame;
reader->close();
currentFrame = startFrame;
this->drawable = drawabl... | 19.102564 | 136 | 0.634899 | carolinavillam |
3fe8df62bca012d15b55803766329e5032619fe6 | 139 | cpp | C++ | src/grpc_server_lib/src/greeter_async_server.cpp | vladimir-voinea/cpp_grpc_template | 8f79b0083ed387e6b3de3b48b7306f2cbba7bb28 | [
"MIT"
] | null | null | null | src/grpc_server_lib/src/greeter_async_server.cpp | vladimir-voinea/cpp_grpc_template | 8f79b0083ed387e6b3de3b48b7306f2cbba7bb28 | [
"MIT"
] | null | null | null | src/grpc_server_lib/src/greeter_async_server.cpp | vladimir-voinea/cpp_grpc_template | 8f79b0083ed387e6b3de3b48b7306f2cbba7bb28 | [
"MIT"
] | null | null | null | #include <grpc_server_lib/greeter_async_server.hpp>
int main(int argc, char** argv) {
ServerImpl server;
server.Run();
return 0;
}
| 15.444444 | 51 | 0.71223 | vladimir-voinea |
3fe9ec20f18230b54c45d6cbb395a2ff9ac65eea | 539 | cpp | C++ | matex-k18-a-js/krazki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | matex-k18-a-js/krazki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | matex-k18-a-js/krazki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef intmax_t I;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
I n, m;
cin >> n >> m;
vector<I> r(n);
for (I i = 0; i < n; ++i) {
cin >> r[i];
if (i > 0 && r[i] > r[i - 1]) r[i] = r[i - 1];
}
I l = n -... | 14.567568 | 50 | 0.45269 | Aleshkev |
3feb1bf4f05bea465c6fa1ce0b9e5f17b1afc165 | 294 | cc | C++ | StackOutBounds.cc | 7andrew7/Bugorama | d0315083732f7724612963e98a7e89481f7acade | [
"MIT"
] | null | null | null | StackOutBounds.cc | 7andrew7/Bugorama | d0315083732f7724612963e98a7e89481f7acade | [
"MIT"
] | null | null | null | StackOutBounds.cc | 7andrew7/Bugorama | d0315083732f7724612963e98a7e89481f7acade | [
"MIT"
] | null | null | null | #include <iostream>
// Reference out-of-bounds stack memory via a helper function
char BufferFetch(char *buffer, size_t index) {
return buffer[index];
}
int main(int argc, char **argv) {
char buffer[256] = {0};
char c = BufferFetch(buffer, 259);
std::cout << c << std::endl;
}
| 18.375 | 61 | 0.656463 | 7andrew7 |
684fc2132fae3647a2a82ab6f68778a29c42fb4d | 10,012 | hpp | C++ | commune/kMeansLearner.hpp | fuchuanpu/Whisper | 80622d6d30b59feab1312865b4395960b9b4d8ea | [
"MIT"
] | 25 | 2021-11-15T03:03:46.000Z | 2022-03-23T03:39:06.000Z | commune/kMeansLearner.hpp | sljx/Whisper | 80622d6d30b59feab1312865b4395960b9b4d8ea | [
"MIT"
] | 2 | 2021-12-22T13:16:53.000Z | 2022-02-02T17:23:42.000Z | commune/kMeansLearner.hpp | sljx/Whisper | 80622d6d30b59feab1312865b4395960b9b4d8ea | [
"MIT"
] | 11 | 2021-11-15T04:00:53.000Z | 2022-03-07T04:31:18.000Z | #pragma once
#include "../common.hpp"
#include "./analyzerWorker.hpp"
#include "./deviceConfig.hpp"
#include <mlpack/core.hpp>
#include <mlpack/methods/kmeans/kmeans.hpp>
#include <time.h>
#include <unistd.h>
#include <semaphore.h>
namespace Whisper {
class AnalyzerWorkerThread;
class DeviceConfig;
struct Lea... | 30.431611 | 107 | 0.560727 | fuchuanpu |
68505f2e3f041ba73de3fd3302d0ae08f1230e6a | 4,880 | cpp | C++ | src/atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 1 | 2021-11-18T02:56:14.000Z | 2021-12-04T15:09:16.000Z | src/atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta UI System
// repoWindow.cpp
// Date: 2021-12-26
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/uiSystem/layers/editor/topBar/localWindows/repoWindow.h>
#include <atta/fileSystem/fileManager.h>
#include <imgui.h>
... | 34.366197 | 127 | 0.483811 | brenocq |
68519e46e9b2173735930021186e07b0327d8b4c | 1,740 | hpp | C++ | source/vaultserver/NPC.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 67 | 2015-01-08T10:40:31.000Z | 2022-03-29T21:16:51.000Z | source/vaultserver/NPC.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 20 | 2015-01-05T21:04:05.000Z | 2018-04-15T11:50:37.000Z | source/vaultserver/NPC.hpp | CyberSys/vaultmp | 341d62202eb47c5f8795c3b93391fd799c6a4ca8 | [
"MIT"
] | 60 | 2015-02-17T00:12:11.000Z | 2021-08-21T22:16:58.000Z | #ifndef NPCDB_H
#define NPCDB_H
#include "vaultserver.hpp"
#include "Expected.hpp"
#include "BaseContainer.hpp"
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <functional>
class sqlite3_stmt;
/**
* \brief Represents a NPC
*/
namespace DB
{
class NPC
{
private:
enum TplFlags :... | 21.481481 | 77 | 0.666667 | CyberSys |
6859e8df87dd1f2873927e4b1146d37b4bf06da7 | 13,408 | cpp | C++ | src/Game.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 11 | 2015-09-30T12:14:59.000Z | 2022-03-22T04:04:51.000Z | src/Game.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 2 | 2015-09-30T16:00:18.000Z | 2016-12-29T10:51:14.000Z | src/Game.cpp | howprice/sdl2-tetris | 8272994293c84b42450ef68bc92c73587f2429cd | [
"BSD-3-Clause"
] | 2 | 2021-12-23T04:20:12.000Z | 2022-03-22T04:09:57.000Z | //--------------------------------------------------------------------------------------------------
/**
\file Game.cpp
**/
//--------------------------------------------------------------------------------------------------
#include "Game.h"
#include "Debug.h"
#include "Renderer.h"
#include <stdio.h>
#includ... | 24.647059 | 148 | 0.648568 | howprice |
685c4977bbdb94cf8d969e524331334a16c37764 | 1,362 | hpp | C++ | _thirdparty/include/boost/process/detail/posix/search_path.hpp | joerghall/sourcesfs | 29ed9675b18f16d869116ed5e5d5343241aa5335 | [
"MIT"
] | 1 | 2017-07-27T19:32:29.000Z | 2017-07-27T19:32:29.000Z | _thirdparty/include/boost/process/detail/posix/search_path.hpp | joerghall/sourcesfs | 29ed9675b18f16d869116ed5e5d5343241aa5335 | [
"MIT"
] | null | null | null | _thirdparty/include/boost/process/detail/posix/search_path.hpp | joerghall/sourcesfs | 29ed9675b18f16d869116ed5e5d5343241aa5335 | [
"MIT"
] | null | null | null | // Copyright (c) 2006, 2007 Julio M. Merino Vidal
// Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
// Copyright (c) 2009 Boris Schaeling
// Copyright (c) 2010 Felipe Tanus, Boris Schaeling
// Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
//
// Distributed under the Boost Software License, Version 1.0. (See ac... | 28.978723 | 79 | 0.671072 | joerghall |
685fc3c63da7cf6de89fb2f6fa9b3c99474a87d5 | 1,512 | hpp | C++ | include/lol/def/LolFeaturedModesQueue.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolFeaturedModesQueue.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolFeaturedModesQueue.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
#include "LolFeaturedModesQueueGameCategory.hpp"
#include "LolFeaturedModesQueueAvailability.hpp"
namespace lol {
struct LolFeaturedModesQueue {
int32_t id;
int32_t mapId;
std::string name;
std::string gameMode;
std::string gameMutator;
LolFeaturedMode... | 38.769231 | 94 | 0.681217 | Maufeat |
686ccbd7138830920135b815f363caccf1427ebe | 3,451 | hpp | C++ | shared/include/small_function.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | shared/include/small_function.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | shared/include/small_function.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include <array>
#include <cstddef>
#include <functional>
#include <type_traits>
#include <utility>
namespace sp {
template<typename>
class Small_function;
template<typename Return, typename... Args>
class Small_function<Return(Args...) noexcept> {
public:
Small_function() = default;
Small_funct... | 25.189781 | 82 | 0.651985 | SleepKiller |
686e89928f2180b1131b2a5b1400265bf0917585 | 23,768 | cpp | C++ | tests/test_arrays.cpp | yangyha/ipic3d-klm | d91f8f7fe361f38ab00a3169e4a583e5713e1a9a | [
"Apache-2.0"
] | null | null | null | tests/test_arrays.cpp | yangyha/ipic3d-klm | d91f8f7fe361f38ab00a3169e4a583e5713e1a9a | [
"Apache-2.0"
] | 1 | 2021-06-22T09:14:29.000Z | 2021-06-22T13:18:14.000Z | tests/test_arrays.cpp | yangyha/ipic3d-klm | d91f8f7fe361f38ab00a3169e4a583e5713e1a9a | [
"Apache-2.0"
] | 4 | 2021-05-28T08:59:49.000Z | 2021-07-08T07:55:48.000Z | /* iPIC3D was originally developed by Stefano Markidis and Giovanni Lapenta.
* This release was contributed by Alec Johnson and Ivy Bo Peng.
* Publications that use results from iPIC3D need to properly cite
* 'S. Markidis, G. Lapenta, and Rizwan-uddin. "Multi-scale simulations of
* plasma with iPIC3D." Mathemat... | 27.669383 | 134 | 0.575353 | yangyha |
68718219eda17a62176ed61329edcffd8ae22551 | 1,485 | cpp | C++ | leetcode/cpp/p2/p2.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | 1 | 2020-08-20T23:27:13.000Z | 2020-08-20T23:27:13.000Z | leetcode/cpp/p2/p2.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | null | null | null | leetcode/cpp/p2/p2.cpp | davidlunadeleon/leetcode | 3a3d7d3ec9b708982658b154f8e551ae9a9fb8c1 | [
"Unlicense"
] | null | null | null | // Source: https://leetcode.com/problems/add-two-numbers/
// Date: 17.06.2020
// Solution by: David Luna
// Runtime: 44ms
// Memory usage: 71.2 MB
#include <iostream>
#include <vector>
#include "../lib/linkedListUtils/linkedListUtils.h"
#include "../lib/vectorUtils/vectorUtils.h"
// Leetcode solution starts
class S... | 19.8 | 74 | 0.651178 | davidlunadeleon |
68725068ccbabe252b8e7038540bab47f6c4459a | 1,122 | cpp | C++ | src/mxAUIContainer.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | 1 | 2019-03-24T00:58:59.000Z | 2019-03-24T00:58:59.000Z | src/mxAUIContainer.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | null | null | null | src/mxAUIContainer.cpp | stahta01/Zinjal | 8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42 | [
"OML"
] | null | null | null | #include "mxAUIContainer.h"
#include "mxMainWindow.h"
#include "mxAUI.h"
BEGIN_EVENT_TABLE(mxAUIContainer,wxAuiNotebook)
EVT_AUINOTEBOOK_PAGE_CHANGED(mxID_LEFT_PANELS, mxAUIContainer::OnPageChanged)
END_EVENT_TABLE()
mxAUIContainer::mxAUIContainer (wxWindow * parent, bool for_side_panel)
: wxAuiNotebook(parent, wx... | 24.391304 | 102 | 0.753119 | stahta01 |
6872aa2d719d1b24f647cb4e8ac2bad7c8b97096 | 1,454 | cpp | C++ | hr/hard/connectedSum.cpp | gnom1gnom/cpp-algorithms | e460c0d1720acf0e0548452dfba05651e4868120 | [
"Unlicense"
] | null | null | null | hr/hard/connectedSum.cpp | gnom1gnom/cpp-algorithms | e460c0d1720acf0e0548452dfba05651e4868120 | [
"Unlicense"
] | null | null | null | hr/hard/connectedSum.cpp | gnom1gnom/cpp-algorithms | e460c0d1720acf0e0548452dfba05651e4868120 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
map<int, vector<int>> v;
map<int, bool> visited;
int getConnectedComponentSize(int x)
{
stack<int> nodes;
nodes.push(x);
visited[x] = true;
int cnt = 0;
while (nodes.size() > 0)
{
int x = nodes.top();
nodes.pop();
cnt += 1... | 20.771429 | 87 | 0.47868 | gnom1gnom |
68744a3aa9788c1e7ff013c53b2ebc4b971848a2 | 1,451 | cpp | C++ | src/WidgetSprinkler.cpp | intoyuniot/WidgetSprinkler | 10915dd4ea88ba3f2b8aa06feb3acc5b3162251b | [
"MIT"
] | null | null | null | src/WidgetSprinkler.cpp | intoyuniot/WidgetSprinkler | 10915dd4ea88ba3f2b8aa06feb3acc5b3162251b | [
"MIT"
] | null | null | null | src/WidgetSprinkler.cpp | intoyuniot/WidgetSprinkler | 10915dd4ea88ba3f2b8aa06feb3acc5b3162251b | [
"MIT"
] | null | null | null | #include "WidgetSprinkler.h"
WidgetSprinkler::WidgetSprinkler(uint8_t ucItem)
{
_Item=ucItem;
memset(pDataStatusTopic,0,sizeof(pDataStatusTopic));
memset(pCmdWaterTopic,0,sizeof(pCmdWaterTopic));
memset(pDataSoilHumidityTopic,0,sizeof(pDataSoilHumidityTopic));
sprintf(pDataStatusTopic,"channel/spr... | 21.338235 | 83 | 0.760165 | intoyuniot |
6875392c133ac3c05480da694262bac3fc550ebd | 1,005 | hpp | C++ | src/region_event_registry.hpp | gemfire/node-gemfire | 51e55645e1b643046b47e8dc7d2144ae58688ed2 | [
"BSD-2-Clause"
] | 8 | 2015-04-24T18:59:01.000Z | 2019-07-05T14:24:22.000Z | src/region_event_registry.hpp | gemfire/node-gemfire | 51e55645e1b643046b47e8dc7d2144ae58688ed2 | [
"BSD-2-Clause"
] | 8 | 2015-06-30T20:48:34.000Z | 2021-03-13T03:45:13.000Z | src/region_event_registry.hpp | gemfire/node-gemfire | 51e55645e1b643046b47e8dc7d2144ae58688ed2 | [
"BSD-2-Clause"
] | 13 | 2015-05-02T16:16:42.000Z | 2021-05-25T05:50:03.000Z | #ifndef __REGION_EVENT_REGISTRY_HPP__
#define __REGION_EVENT_REGISTRY_HPP__
#include <geode/Region.hpp>
#include <geode/EntryEvent.hpp>
#include <string>
#include <set>
#include "region_event_listener.hpp"
#include "event_stream.hpp"
namespace node_gemfire {
class Region;
class RegionEventRegistry {
public:
Regi... | 23.928571 | 92 | 0.761194 | gemfire |
687672105e4f1408e5e225f7b52bd4e553c0c03c | 4,079 | cpp | C++ | src/ComponentsFactory.cpp | valentingrigorean/Tanks-IP | 24f7db59b009cf05b193bf0a2d46f68b71d0b399 | [
"MIT"
] | null | null | null | src/ComponentsFactory.cpp | valentingrigorean/Tanks-IP | 24f7db59b009cf05b193bf0a2d46f68b71d0b399 | [
"MIT"
] | null | null | null | src/ComponentsFactory.cpp | valentingrigorean/Tanks-IP | 24f7db59b009cf05b193bf0a2d46f68b71d0b399 | [
"MIT"
] | null | null | null | #include <tank/ComponentsFactory.h>
#include <tank/ObjectPool.h>
#include <tank/GameObject.h>
#include <tank/ResourceManager.h>
#include <tank/components/SpriteComponent.h>
#include <tank/components/TransformComponent.h>
#include <tank/components/HealthComponent.h>
#include <tank/components/TankComponent.h>
#include <... | 30.669173 | 131 | 0.730816 | valentingrigorean |
68772850ae773b62cebb839e75a1805617316515 | 1,041 | cxx | C++ | test/loopcompile4.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | test/loopcompile4.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | test/loopcompile4.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <stdio.h>
#define NUM 10
vo... | 14.661972 | 74 | 0.387128 | paulwratt |
68778b1cfd5fe17c927fc3dca44b4671479ef2d4 | 11,100 | cpp | C++ | examples/Cxx14SGXDemo/Enclave/TrustedLibrary/Libcxx.cpp | VXAPPS/cmake-sgx-template | 01e75934253a63e2a8d371011d268da53833df72 | [
"BSD-3-Clause"
] | null | null | null | examples/Cxx14SGXDemo/Enclave/TrustedLibrary/Libcxx.cpp | VXAPPS/cmake-sgx-template | 01e75934253a63e2a8d371011d268da53833df72 | [
"BSD-3-Clause"
] | null | null | null | examples/Cxx14SGXDemo/Enclave/TrustedLibrary/Libcxx.cpp | VXAPPS/cmake-sgx-template | 01e75934253a63e2a8d371011d268da53833df72 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2011-2021 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 of source code must retain the above copyright
* notice, this li... | 26.241135 | 94 | 0.627658 | VXAPPS |
6879bc324078290ca7f15bc3e932ed06efd6ea7f | 1,827 | hpp | C++ | src/GLRenderer/Scene/Component.hpp | Thomas-Zorroche/GLRenderer | 1e47a98d563a5c1df8c781826322325a1766bda5 | [
"MIT"
] | null | null | null | src/GLRenderer/Scene/Component.hpp | Thomas-Zorroche/GLRenderer | 1e47a98d563a5c1df8c781826322325a1766bda5 | [
"MIT"
] | null | null | null | src/GLRenderer/Scene/Component.hpp | Thomas-Zorroche/GLRenderer | 1e47a98d563a5c1df8c781826322325a1766bda5 | [
"MIT"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <memory>
#include <string>
#include "../Mesh.hpp"
#include "../Lighting/BaseLight.hpp"
#include "../Line.hpp"
namespace glrenderer {
struct TransformComponent
{
glm::vec3 location = glm::vec3(0.0f, 0.0f, 0.0f);
glm::vec3 ro... | 23.423077 | 94 | 0.67214 | Thomas-Zorroche |
687b2189cd2243075b44d9182317150260ddea43 | 1,186 | cpp | C++ | examples/demo/state_world.cpp | HolyBlackCat/prototyping | 0938ad889db0bfcc3b683beaa92eac81bf05bc76 | [
"Zlib"
] | null | null | null | examples/demo/state_world.cpp | HolyBlackCat/prototyping | 0938ad889db0bfcc3b683beaa92eac81bf05bc76 | [
"Zlib"
] | null | null | null | examples/demo/state_world.cpp | HolyBlackCat/prototyping | 0938ad889db0bfcc3b683beaa92eac81bf05bc76 | [
"Zlib"
] | null | null | null | #include "main.h"
namespace States
{
STRUCT( World EXTENDS StateBase )
{
MEMBERS()
float angle = 0;
void Tick(std::string &next_state) override
{
(void)next_state;
angle += 0.01;
ImGui::ShowDemoWindow();
if (mouse.right.pressed... | 26.954545 | 126 | 0.469646 | HolyBlackCat |
687c5cd7828c54a773742ec44899720ec6854062 | 12,860 | cpp | C++ | nightsky/configDlg.cpp | thurizas/nightSky | 6924ef45c93b45bf0c47e0db2eef667d8255fb38 | [
"Apache-2.0"
] | null | null | null | nightsky/configDlg.cpp | thurizas/nightSky | 6924ef45c93b45bf0c47e0db2eef667d8255fb38 | [
"Apache-2.0"
] | null | null | null | nightsky/configDlg.cpp | thurizas/nightSky | 6924ef45c93b45bf0c47e0db2eef667d8255fb38 | [
"Apache-2.0"
] | null | null | null | #include <QString>
#include <QHBoxLayout>
#include <QLabel>
#include <QDebug>
#include "configDlg.h"
#include "nighsky.h"
/**********************************************************************************************************************************************************************************
* fu... | 37.16763 | 183 | 0.516096 | thurizas |
688371bb2e97c4f2146c8a233e532d0424e6db3e | 9,590 | cpp | C++ | sqlite/src/ossimGpkgContentsRecord.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 12 | 2016-09-09T01:24:12.000Z | 2022-01-09T21:45:58.000Z | sqlite/src/ossimGpkgContentsRecord.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 5 | 2016-02-04T16:10:40.000Z | 2021-06-29T05:00:29.000Z | sqlite/src/ossimGpkgContentsRecord.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 20 | 2015-11-17T11:46:22.000Z | 2021-11-12T19:23:54.000Z | //----------------------------------------------------------------------------
//
// File: ossimGpkgContentsRecord.cpp
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Description: Container class for gpkg_contents table.
//
//------------------------------------------... | 29.237805 | 98 | 0.517518 | dardok |
688536b49f91088c65f03ddfaee1716ac386734c | 1,245 | cpp | C++ | GameFramework/Helper/HlTimer.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 8 | 2017-10-26T14:26:55.000Z | 2022-01-07T07:35:39.000Z | GameFramework/Helper/HlTimer.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2018-01-27T19:21:07.000Z | 2018-01-31T13:55:09.000Z | GameFramework/Helper/HlTimer.cpp | GavWood/Game-Framework | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2021-07-21T17:37:33.000Z | 2021-07-21T17:37:33.000Z | ////////////////////////////////////////////////////////////////////////////////
// HlTimer
// Includes
#include "HlTimer.h"
#include "BtTime.h"
#include "BtString.h"
#include "ApConfig.h"
////////////////////////////////////////////////////////////////////////////////
// Constructor
HlTimer::HlTimer()
{
m_start = ... | 20.409836 | 80 | 0.434538 | GavWood |
68868c2d58a7267470ec9694c0eb658eb204202e | 2,658 | hpp | C++ | inc/vpp/prediction.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | 1 | 2020-06-18T14:01:50.000Z | 2020-06-18T14:01:50.000Z | inc/vpp/prediction.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | inc/vpp/prediction.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | /**
*
* @file vpp/prediction.hpp
*
* @brief This is the VPP prediction description file
*
* @details This file describes the structure of a prediction and adds a few
* methods to handle it. A prediction is basically a score, a list
* index and an object index within this list.
... | 29.208791 | 78 | 0.582769 | ezdayo |
68881e7d66e313cd139022a82a3a89cbcf64aefe | 2,911 | cpp | C++ | deps/vision/src/vca_sample_echostring_server/vca_sample_echostring_server.cpp | MichaelJCaruso/vision-xa-nodejs-connect | ef13ccc2730bf1db07cb44106dfcfd020d843d82 | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/vca_sample_echostring_server/vca_sample_echostring_server.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/vca_sample_echostring_server/vca_sample_echostring_server.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Vca Sample Server *****/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
******************/
/************************
***** Supporting *****
************************/
#include "Vca_VOneAppMain_.h"
#include "Vca_VServerApplic... | 21.248175 | 96 | 0.40055 | MichaelJCaruso |
688a49523e06e10ee9fc273c7239431b67069106 | 911 | cpp | C++ | Libraries/plist/Sources/Format/ABPCommon.cpp | kolinkrewinkel/xcbuild | 05ac2e574d96a3edff08df4d87b49f39931043f1 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | Libraries/plist/Sources/Format/ABPCommon.cpp | kolinkrewinkel/xcbuild | 05ac2e574d96a3edff08df4d87b49f39931043f1 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | Libraries/plist/Sources/Format/ABPCommon.cpp | kolinkrewinkel/xcbuild | 05ac2e574d96a3edff08df4d87b49f39931043f1 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | /**
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
*/
#include <plist/Format... | 23.973684 | 76 | 0.641054 | kolinkrewinkel |
688bad96be36f936d263c3eba93553365283e53f | 4,767 | hpp | C++ | src/controller/DualAdvancedRunner.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | 1 | 2021-09-25T18:18:14.000Z | 2021-09-25T18:18:14.000Z | src/controller/DualAdvancedRunner.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | null | null | null | src/controller/DualAdvancedRunner.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | null | null | null |
#ifndef DUALADVANCEDRUNNER_HPP
#define DUALADVANCEDRUNNER_HPP
#include <math.h>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include "GameIO.hpp"
#include "IPlayer.hpp"
#include "NeuralNetwork.hpp"
#include "Vec2.hpp"
class DualAdvancedRunner : public IPlayer {
public:
static unsign... | 32.428571 | 93 | 0.696665 | psettle |
68932b764c381906b5d31e306e63332ed7f38ca8 | 10,499 | cpp | C++ | drishti/camerapathnode.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 118 | 2016-11-01T06:01:44.000Z | 2022-03-30T05:20:19.000Z | drishti/camerapathnode.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 56 | 2016-09-30T09:29:36.000Z | 2022-03-31T17:15:32.000Z | drishti/camerapathnode.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 28 | 2016-07-31T23:48:51.000Z | 2021-05-25T05:32:47.000Z | #include "camerapathnode.h"
CameraPathNode::CameraPathNode(Vec pos, Quaternion rot)
{
m_mf = new ManipulatedFrame();
// disable camera manipulation by mouse
m_mf->removeFromMouseGrabberPool();
m_mf->setPosition(pos);
m_mf->setOrientation(rot);
m_constraints = new LocalConstraint();
m_constraints->set... | 25.057279 | 83 | 0.590151 | shouhengli |
689f57399ac5c28a6bed7bbb043bcacfc45adc8d | 1,023 | cpp | C++ | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.36.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.36.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.36.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | // Exercise3.36.cpp
// Ad
// Write a program to compare two arrays for equality, then write a similar to compare vectors.
#include <iostream>
#include <vector>
#include <iterator>
using std::cin;
using std::cout;
using std::endl;
int main()
{
// to compare two arrays
int arr1[10]{}, arr2[10]{};
int *p... | 20.058824 | 96 | 0.475073 | alaxion |
68a223fcb0bad703e33b65855153863e1d03fe20 | 542 | cpp | C++ | test/main.cpp | chenxu2048/DockerClientpp | 81792fb0d84028b059983e1a08f12edf6e8c6b32 | [
"MIT"
] | 5 | 2017-05-23T16:32:15.000Z | 2019-02-16T14:27:51.000Z | test/main.cpp | chenxu2048/DockerClientpp | 81792fb0d84028b059983e1a08f12edf6e8c6b32 | [
"MIT"
] | 5 | 2019-07-13T23:14:52.000Z | 2019-07-16T20:46:53.000Z | test/main.cpp | fedemengo/DockerClientpp | a83a1a992f081b5d25dccc2b9530308105e5c9c4 | [
"MIT"
] | 4 | 2017-11-14T14:00:58.000Z | 2020-07-23T07:16:01.000Z | #include "gtest/gtest.h"
class GlobalEnv : public ::testing::Environment {
public:
virtual void SetUp() {
if (std::system("docker pull busybox:1.26")) {
throw std::runtime_error("Cannot pull busybox");
}
std::system("docker run -dt --name test busybox:1.26 > /dev/null 2>&1");
}
virtual void Te... | 25.809524 | 76 | 0.645756 | chenxu2048 |
68a49f934efc4cfdc2f5e354471ec32d42b79391 | 10,418 | cpp | C++ | crud-example/request_processor.cpp | Stiffstream/restinio-crud-example | 3e3e3a859b9743a870b20dda7da14360ccdae3ce | [
"BSD-3-Clause"
] | 4 | 2019-10-07T21:23:55.000Z | 2020-02-05T16:10:57.000Z | crud-example/request_processor.cpp | Stiffstream/restinio-crud-example | 3e3e3a859b9743a870b20dda7da14360ccdae3ce | [
"BSD-3-Clause"
] | 1 | 2020-02-04T05:14:23.000Z | 2020-02-04T09:45:17.000Z | crud-example/request_processor.cpp | Stiffstream/restinio-crud-example | 3e3e3a859b9743a870b20dda7da14360ccdae3ce | [
"BSD-3-Clause"
] | 1 | 2020-02-05T16:11:00.000Z | 2020-02-05T16:11:00.000Z | #include "request_processor.hpp"
#include <restinio/helpers/http_field_parsers/content-type.hpp>
#include <restinio/helpers/file_upload.hpp>
#include <fmt/format.h>
#include <stdexcept>
namespace crud_example
{
namespace errors
{
const int unknow_error = -1;
const int json_dto_error = 1;
const int sqlite_error = ... | 25.98005 | 93 | 0.727683 | Stiffstream |
68a4dc075d7caec1988290fd3a4cc07c184c3c83 | 862 | cpp | C++ | Regex/Problem27/main.cpp | akaseon/ModernCppChallengeStudy | 1630f8cf5b3656171ee656738a908619cee6e718 | [
"MIT"
] | null | null | null | Regex/Problem27/main.cpp | akaseon/ModernCppChallengeStudy | 1630f8cf5b3656171ee656738a908619cee6e718 | [
"MIT"
] | null | null | null | Regex/Problem27/main.cpp | akaseon/ModernCppChallengeStudy | 1630f8cf5b3656171ee656738a908619cee6e718 | [
"MIT"
] | null | null | null | //#include <gsl/gsl>
#include <vector>
#include <string>
#include <iostream>
std::vector<std::string> splittingString( std::string aFrom,
std::string aDelimiter )
{
std::vector<std::string> sTo;
char * sToken = NULL;
sToken = std::strtok... | 23.297297 | 68 | 0.533643 | akaseon |
68a4e871e0fe4dbd179de98e9eb77f3df31dcdd0 | 795 | cpp | C++ | Game/Sources/State/PausedState.cpp | YvesHenri/Chico | e583a9995cd6e26fe198b21b9c7996c3199c4ff3 | [
"MIT"
] | 6 | 2017-01-09T13:19:56.000Z | 2021-11-15T11:18:35.000Z | Game/Sources/State/PausedState.cpp | YvesHenri/Chico | e583a9995cd6e26fe198b21b9c7996c3199c4ff3 | [
"MIT"
] | null | null | null | Game/Sources/State/PausedState.cpp | YvesHenri/Chico | e583a9995cd6e26fe198b21b9c7996c3199c4ff3 | [
"MIT"
] | null | null | null | #include "../../Includes/State/PausedState.h"
PausedState::PausedState()
{
overlap = sf::RectangleShape(sf::Vector2f(800.f, 600.f));
overlap.setFillColor(sf::Color(0, 0, 0, 185));
}
void PausedState::onEnter()
{
WARN("-----> Paused");
}
void PausedState::onLeave()
{
WARN("<----- Paused");
}
void PausedState::dr... | 19.875 | 79 | 0.68805 | YvesHenri |
68ae2dba87fdef7d2b77799274d10e9e024b8dd3 | 1,280 | cpp | C++ | Onegin/sorting.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | Onegin/sorting.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | Onegin/sorting.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | #include "sorting.h"
void mergesort(void *base, size_t count, size_t type, comparator comp) {
if (count == 1) return;
char *bt_base = (char *) base;
size_t lcount = count / 2;
size_t rcount = count - lcount;
mergesort(bt_base, lcount, type, comp);
mergesort(bt_base + lcount * type, rcount, t... | 26.122449 | 101 | 0.575781 | Great1ng |
68b7fb59d66d1da145b5b6fb694765973d6465ee | 607 | hpp | C++ | src/Missile.hpp | michal-tangri/sgd-game | aa4cf5704a9ca75b7b9c06b6096ae707607a8539 | [
"MIT"
] | null | null | null | src/Missile.hpp | michal-tangri/sgd-game | aa4cf5704a9ca75b7b9c06b6096ae707607a8539 | [
"MIT"
] | null | null | null | src/Missile.hpp | michal-tangri/sgd-game | aa4cf5704a9ca75b7b9c06b6096ae707607a8539 | [
"MIT"
] | null | null | null | #ifndef __MISSILE_CLASS_HPP__
#define __MISSILE_CLASS_HPP__
#include "GameObject.hpp"
#include "Tile.hpp"
#include <array>
class Missile : public GameObject {
public:
enum MissileOrigin {
MISSILE_ORIGIN_PLAYER,
MISSILE_ORIGIN_ENEMY
};
Missile(MissileOrigin origin);
void update(dou... | 19.580645 | 89 | 0.723229 | michal-tangri |
68ba56c90c62dc771c66c7fe4bfea2ed7d3a1b5a | 8,576 | cpp | C++ | src/hyposystem.cpp | HypoModel/HypoModBase | 29572f98202780c9a8b25cffe80761fedb35aa1a | [
"MIT"
] | null | null | null | src/hyposystem.cpp | HypoModel/HypoModBase | 29572f98202780c9a8b25cffe80761fedb35aa1a | [
"MIT"
] | null | null | null | src/hyposystem.cpp | HypoModel/HypoModBase | 29572f98202780c9a8b25cffe80761fedb35aa1a | [
"MIT"
] | null | null | null |
#include "hypomodel.h"
//#include "hypomain.h"
//#include "hypopanels.h"
OptionPanel::OptionPanel(HypoMain *main, const wxString & title)
: wxDialog(NULL, -1, title, wxDefaultPosition, wxSize(450, 450),
wxFRAME_FLOAT_ON_PARENT | wxFRAME_TOOL_WINDOW | wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX | wxRESIZE_BORDER)
{
i... | 35.585062 | 131 | 0.731343 | HypoModel |
68be163aad621d1fd1d5c3538565f5f8d5c1430c | 122,962 | cpp | C++ | CELLULARDlg.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | 4 | 2018-02-12T15:18:43.000Z | 2021-03-08T21:35:31.000Z | CELLULARDlg.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | null | null | null | CELLULARDlg.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | null | null | null | // CELLULARDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CELLULAR.h"
#include "CELLULARDlg.h"
#include <sys/types.h>
#include <sys/stat.h>
/*
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
*/
#include "supercom\supercom.h"
#inclu... | 26.806627 | 190 | 0.587279 | yantis |
68c3732c72577fd424f41c28144aca72ff4e6b24 | 1,950 | cpp | C++ | src/Elements/emitter.cpp | attilabibok/epanet-dev | 91d87377b8462cf0a12cb55ea0554951fb586993 | [
"MIT"
] | 1 | 2017-12-21T19:40:35.000Z | 2017-12-21T19:40:35.000Z | src/Elements/emitter.cpp | attilabibok/epanet-dev | 91d87377b8462cf0a12cb55ea0554951fb586993 | [
"MIT"
] | null | null | null | src/Elements/emitter.cpp | attilabibok/epanet-dev | 91d87377b8462cf0a12cb55ea0554951fb586993 | [
"MIT"
] | null | null | null | /* EPANET 3
*
* Copyright (c) 2016 Open Water Analytics
* Distributed under the MIT License (see the LICENSE file for details).
*
*/
#include "emitter.h"
#include "junction.h"
#include "pattern.h"
#include "Core/network.h"
#include <cmath>
using namespace std;
//-------------------------------------------------... | 24.375 | 82 | 0.507692 | attilabibok |
68c4415146bf139aac80e5779108f3bd23f4fefa | 10,585 | cpp | C++ | src/arboretum/stPartitionNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stPartitionNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stPartitionNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2003-2017 GBDI-ICMC-USP <caetano@icmc.usp.br>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 32.469325 | 91 | 0.559565 | marcosivni |
68c503a54d6a500daeb69a026d88a4463a5e20eb | 6,845 | cpp | C++ | src/PinholePCLCam.cpp | HWiese1980/merge_depth_cam | 974008b6b1f84d516a0f74dfd3832bfa55ef163d | [
"BSD-3-Clause"
] | 16 | 2019-01-23T10:35:27.000Z | 2022-03-10T16:21:34.000Z | src/PinholePCLCam.cpp | mmiles19/merge_depth_cam | 7bd00a7d2baabdb9c4a8afc6a4eb516898f995b0 | [
"BSD-3-Clause"
] | 3 | 2019-02-26T16:48:08.000Z | 2022-01-24T18:16:15.000Z | src/PinholePCLCam.cpp | mmiles19/merge_depth_cam | 7bd00a7d2baabdb9c4a8afc6a4eb516898f995b0 | [
"BSD-3-Clause"
] | 4 | 2019-10-27T10:45:41.000Z | 2021-01-23T08:44:37.000Z | // #include <pluginlib/class_list_macros.h>
#include "PinholePCLCam.hpp"
#include <opencv2/opencv.hpp>
#include <pcl/range_image/range_image_planar.h>
#include <cassert>
#include <cmath>
using namespace sensor_msgs;
using namespace std_msgs;
namespace ap34 {
void store_image(std::string fname, cv::Mat& img) {
... | 41.737805 | 132 | 0.622498 | HWiese1980 |
68c7a487e962bab969ab40a56ea58e555a3defc7 | 1,848 | cpp | C++ | tests/src/main.cpp | nemu-cpp/web-server | 353ba231bc42c72e69f82ddbb7ae2ffbb5cbb97f | [
"MIT"
] | null | null | null | tests/src/main.cpp | nemu-cpp/web-server | 353ba231bc42c72e69f82ddbb7ae2ffbb5cbb97f | [
"MIT"
] | null | null | null | tests/src/main.cpp | nemu-cpp/web-server | 353ba231bc42c72e69f82ddbb7ae2ffbb5cbb97f | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019-2022 Xavier Leclercq
Released under the MIT License
See https://github.com/nemu-cpp/web-framework/blob/main/LICENSE.txt
*/
#include "DebugTemplateEngineProfileTests.hpp"
#include "DebugTemplateEngineTests.hpp"
#include "FileSystemWebRequestHandlerTests.hpp"
#include "FunctionWebReques... | 35.538462 | 74 | 0.77381 | nemu-cpp |
68c7f065cffccfaa24d72f7e637a04addbf03f30 | 5,053 | cpp | C++ | src/main_void_MPI_bitvec.cpp | rapastranac/gempba | 3b50f9809af95e2001615ab704bb055db68f50c8 | [
"MIT"
] | 1 | 2021-07-08T13:52:06.000Z | 2021-07-08T13:52:06.000Z | src/main_void_MPI_bitvec.cpp | rapastranac/gempba | 3b50f9809af95e2001615ab704bb055db68f50c8 | [
"MIT"
] | 2 | 2021-07-31T14:58:02.000Z | 2021-09-07T01:55:06.000Z | src/main_void_MPI_bitvec.cpp | rapastranac/gempba | 3b50f9809af95e2001615ab704bb055db68f50c8 | [
"MIT"
] | null | null | null | #ifdef BITVECTOR_VC
#include "../include/main.h"
#include "../include/Graph.hpp"
#include "../MPI_Modules/MPI_Scheduler.hpp"
#include "../include/VC_void_MPI_bitvec.hpp"
#include "../include/resultholder/ResultHolder.hpp"
#include "../include/BranchHandler.hpp"
#include "../include/DLB_Handler.hpp"
#include <chrono... | 30.624242 | 124 | 0.64338 | rapastranac |
68c845b9335cdf764e208c6c9a498556a8478c7c | 16,778 | hh | C++ | include/click/flow/flowelement.hh | MassimoGirondi/fastclick | 71b9a3392c2e847a22de3c354be1d9f61216cb5b | [
"BSD-3-Clause-Clear"
] | 1 | 2021-01-22T16:51:37.000Z | 2021-01-22T16:51:37.000Z | include/click/flow/flowelement.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | null | null | null | include/click/flow/flowelement.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | null | null | null | // -*- c-basic-offset: 4 -*-
#ifndef CLICK_FLOWELEMENT_HH
#define CLICK_FLOWELEMENT_HH
#include <click/glue.hh>
#include <click/vector.hh>
#include <click/string.hh>
#include <click/batchelement.hh>
#include <click/routervisitor.hh>
#include <click/pair.hh>
#include "flow.hh"
CLICK_DECLS
#ifdef HAVE_FLOW
# if HAVE_C... | 30.672761 | 258 | 0.671355 | MassimoGirondi |
68c88971ef4e0dc763be19d3efed1264cdbf02af | 4,475 | cpp | C++ | arangod/Scheduler/JobQueue.cpp | pjesudhas/ArangoDB | 76684f84ee34f1fff25fc9bf2f4cee7a5abd03cc | [
"BSL-1.0",
"Zlib",
"ICU",
"Apache-2.0"
] | null | null | null | arangod/Scheduler/JobQueue.cpp | pjesudhas/ArangoDB | 76684f84ee34f1fff25fc9bf2f4cee7a5abd03cc | [
"BSL-1.0",
"Zlib",
"ICU",
"Apache-2.0"
] | null | null | null | arangod/Scheduler/JobQueue.cpp | pjesudhas/ArangoDB | 76684f84ee34f1fff25fc9bf2f4cee7a5abd03cc | [
"BSL-1.0",
"Zlib",
"ICU",
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 28.685897 | 80 | 0.56 | pjesudhas |
68d06c4cee3563eb2780bc7480f894d15594a007 | 1,066 | hpp | C++ | src/ipc/ipc.hpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 277 | 2021-11-19T20:15:18.000Z | 2022-03-29T12:07:59.000Z | src/ipc/ipc.hpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 46 | 2021-11-21T10:25:58.000Z | 2022-03-23T15:04:51.000Z | src/ipc/ipc.hpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 28 | 2021-12-07T02:49:16.000Z | 2022-03-22T05:26:07.000Z | #pragma once
#include "../defines.hpp"
std::string readFromIPCChannel(const std::string);
int writeToIPCChannel(const std::string, std::string);
#define IPC_END_OF_FILE (std::string)"HYPR_END_OF_FILE"
#define IPC_MESSAGE_SEPARATOR std::string("\t")
#define IPC_MESSAGE_EQUALITY std:... | 31.352941 | 74 | 0.666979 | imaphatduc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.