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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5806a5ead19491e1c86e80cb17d2578fdb96bea8 | 2,431 | cpp | C++ | src/border.cpp | Arian8j2/YourCraft | 6afe4e50afe678e2d38b60e816adf0a9d320f01a | [
"MIT"
] | 4 | 2021-03-02T21:02:51.000Z | 2021-11-19T22:16:05.000Z | src/border.cpp | Arian8j2/YourCraft | 6afe4e50afe678e2d38b60e816adf0a9d320f01a | [
"MIT"
] | null | null | null | src/border.cpp | Arian8j2/YourCraft | 6afe4e50afe678e2d38b60e816adf0a9d320f01a | [
"MIT"
] | null | null | null | #include "border.h"
#include "player.h"
CBorder::CBorder(CGameContext* pGameContext): m_pGameContext(pGameContext){
glGenVertexArrays(1, &m_VAO);
glBindVertexArray(m_VAO);
glGenBuffers(1, &m_VBO);
glBindBuffer(GL_ARRAY_BUFFER, m_VBO);
float aVerticies[] = {
-0.5f, 0.5f, 0.5f,
0... | 33.30137 | 199 | 0.640889 | Arian8j2 |
580b0dd7cdf7930b6cb85c6e67947634df7d42a1 | 4,742 | hpp | C++ | engine/source/public/core/anton_crt.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 12 | 2019-01-02T11:13:19.000Z | 2020-06-02T10:58:20.000Z | engine/source/public/core/anton_crt.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | null | null | null | engine/source/public/core/anton_crt.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 1 | 2020-04-03T11:54:53.000Z | 2020-04-03T11:54:53.000Z | #pragma once
#if defined(_WIN64)
#define ANTON_NOEXCEPT
#define ANTON_CRT_IMPORT __declspec(dllimport)
#define size_t unsigned long long
#else
#define ANTON_NOEXCEPT noexcept
#define ANTON_CRT_IMPORT
#define size_t unsigned long int
#endif
// C Runtime Forward Declarations
extern "C" {
/... | 34.362319 | 109 | 0.715943 | kociap |
580b1ef2bd4ec2ab59c00d0adbdb9f9e5d84f163 | 26,436 | cpp | C++ | ros/src/computing/perception/detection/fusion_tools/packages/range_vision_fusion/src/range_vision_fusion.cpp | AftermathK/Autoware | 88a1f088eba5878d88e95ecb88cd9389a4bad4b3 | [
"BSD-3-Clause"
] | 2 | 2019-01-29T10:50:56.000Z | 2021-12-20T07:20:13.000Z | ros/src/computing/perception/detection/fusion_tools/packages/range_vision_fusion/src/range_vision_fusion.cpp | ShawnSchaerer/Autoware | c2ba68b4e9f42136e6f055a9cd278dcebdcbab17 | [
"BSD-3-Clause"
] | null | null | null | ros/src/computing/perception/detection/fusion_tools/packages/range_vision_fusion/src/range_vision_fusion.cpp | ShawnSchaerer/Autoware | c2ba68b4e9f42136e6f055a9cd278dcebdcbab17 | [
"BSD-3-Clause"
] | 2 | 2019-01-29T10:51:00.000Z | 2020-09-13T04:52:44.000Z | /*
* Copyright (c) 2018, Nagoya University
* 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 ... | 38.536443 | 143 | 0.657475 | AftermathK |
580e5521d0785f546d139ffb54c95b1adb627e16 | 8,138 | cc | C++ | src/resolver/assignment_validation_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | src/resolver/assignment_validation_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | src/resolver/assignment_validation_test.cc | haocxy/mirror-googlesource-dawn-tint | 44a0adf9b47c22a7b2f392f30aaf59811f56d6ee | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The Tint 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 ... | 31.789063 | 80 | 0.613664 | haocxy |
580f60d9c3c1917c611b3c85574dd8ded30a22fe | 957 | cpp | C++ | LeetCode/RemoveLinkedListElements.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/RemoveLinkedListElements.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/RemoveLinkedListElements.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* removeElements(ListNode* head, int val) {
ListNode* it = head;
ListNode* newHead = NULL;
ListNode*... | 28.147059 | 106 | 0.440961 | SelvorWhim |
5810aa11c2c678e2dba12e500ef70300a1a9781d | 5,699 | cpp | C++ | tests/sshmanager_clitest.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 23 | 2017-09-01T04:35:02.000Z | 2022-01-16T13:51:17.000Z | tests/sshmanager_clitest.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 20 | 2017-08-29T15:29:46.000Z | 2022-01-20T09:10:59.000Z | tests/sshmanager_clitest.cpp | lilithean/XtalOpt | 9ebc125e6014b27e72a04fb62c8820c7b9670c61 | [
"BSD-3-Clause"
] | 21 | 2017-06-15T03:11:34.000Z | 2022-02-28T05:20:44.000Z | /**********************************************************************
SSHManager - SSHManagerTest class provides unit testing for the
SSHManager class
Copyright (C) 2010-2011 David C. Lonie
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agree... | 26.882075 | 79 | 0.640814 | lilithean |
5812d55e1d9e9bdc8296acf6f0576ecef0cc8bcc | 379 | cpp | C++ | src/geometry/segment.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | null | null | null | src/geometry/segment.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | 1 | 2019-08-24T17:31:50.000Z | 2019-08-24T17:31:50.000Z | src/geometry/segment.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | null | null | null | // The MIT License
// (c) 2019 Daniel Williams
#include <cmath>
#include "geometry/point.hpp"
#include "geometry/segment.hpp"
using terrain::geometry::Point;
using terrain::geometry::Segment;
Segment::Segment() {}
Segment::Segment(const Point& _start, const Point& _end):
start(_start), end(_end)
{}
void Segme... | 16.478261 | 57 | 0.691293 | teyrana |
5812ea4aec3da9e3cc16952c7e4ca4c632a044d7 | 19,054 | cpp | C++ | test/auto/ListModel/ListModelTest.cpp | ericzh86/ModelsModule | e1f263420e5e54ac280d1c61485ccb6a0a625129 | [
"MIT"
] | 8 | 2019-12-11T08:52:37.000Z | 2021-08-04T03:42:55.000Z | test/auto/ListModel/ListModelTest.cpp | ericzh86/ModelsModule | e1f263420e5e54ac280d1c61485ccb6a0a625129 | [
"MIT"
] | null | null | null | test/auto/ListModel/ListModelTest.cpp | ericzh86/ModelsModule | e1f263420e5e54ac280d1c61485ccb6a0a625129 | [
"MIT"
] | 1 | 2020-04-16T07:07:50.000Z | 2020-04-16T07:07:50.000Z | #include "ListModelTest.h"
#include <QtCore>
#include <QtTest>
#include "QCxxListModel.h"
#include "ListModelTester.h"
// Macros
#define InitModel() \
QCxxListModel<QObject *> model; \
model.setCountEnabled(true); \
auto tester = new ListModelTester(&model)
#define VerifyCountSignal(value) QVERIFY(test... | 24.118987 | 78 | 0.599139 | ericzh86 |
58144a8de60ff911068cf63bc3e79d31ea11f2a9 | 1,909 | cpp | C++ | Sources/AGEngine/Graphic/GraphicElementManager.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Graphic/GraphicElementManager.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Graphic/GraphicElementManager.cpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #include "GraphicElementManager.hpp"
#include "BFC/BFCCullableHandle.hpp"
#include "BFC/BFCBlockManagerFactory.hpp"
#include "Graphic/DRBMeshData.hpp"
#include "AssetManagement/Instance/MeshInstance.hh"
#include "AssetManagement/Instance/MaterialInstance.hh"
#include "Utils/Profiler.hpp"
namespace AGE
{
GraphicEl... | 25.118421 | 145 | 0.736511 | Another-Game-Engine |
58149e7643a81c744cd4db01b0f21e8558ce657c | 11,616 | cpp | C++ | tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_cases_plugins.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | 1 | 2020-09-08T15:30:11.000Z | 2020-09-08T15:30:11.000Z | tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_cases_plugins.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | 1 | 2021-01-21T12:27:39.000Z | 2021-01-21T12:27:39.000Z | tests/unit/suites/mfx_dispatch/linux/mfx_dispatch_test_cases_plugins.cpp | me176c-dev/MediaSDK | 0c7f315958b78c98c5c06bd60565eb8c1ad15d41 | [
"MIT"
] | 1 | 2020-08-17T21:07:24.000Z | 2020-08-17T21:07:24.000Z | // Copyright (c) 2018-2019 Intel Corporation
//
// 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,... | 51.171806 | 152 | 0.758781 | me176c-dev |
5816ac5f04c4dae0066ee5aa724582191cca8758 | 1,809 | cc | C++ | cpp/src/array/maxNumberOfFamilies.cc | dacozai/algorithm-diary | 8ed5e119e4450e92e63276047ef19bbf422c2770 | [
"MIT"
] | 1 | 2019-10-17T08:34:55.000Z | 2019-10-17T08:34:55.000Z | cpp/src/array/maxNumberOfFamilies.cc | dacozai/algorithm-diary | 8ed5e119e4450e92e63276047ef19bbf422c2770 | [
"MIT"
] | 1 | 2020-05-24T08:32:13.000Z | 2020-05-24T08:32:13.000Z | cpp/src/array/maxNumberOfFamilies.cc | dacozai/algorithm-diary | 8ed5e119e4450e92e63276047ef19bbf422c2770 | [
"MIT"
] | null | null | null | #include "test.h"
#include <unordered_map>
/** Question no 1386 medium Cinema Seat Allocation
* Author : Li-Han, Chen; 陳立瀚
* Date : 22th, March, 2020
* Source : https://leetcode.com/problems/cinema-seat-allocation/
*
* A cinema has n rows of seats, numbered from 1 to n and there are ten seats in each row, labe... | 34.788462 | 142 | 0.625207 | dacozai |
581bf2d3dbdd0b787a8b7c261d45686e1a88caf5 | 21,350 | cpp | C++ | Source/Physics/Joint.cpp | JesseMader/PlasmaEngine | ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131 | [
"MIT"
] | null | null | null | Source/Physics/Joint.cpp | JesseMader/PlasmaEngine | ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131 | [
"MIT"
] | null | null | null | Source/Physics/Joint.cpp | JesseMader/PlasmaEngine | ffda8f76b96e83181cfc1f9ec102c4ad0d7fd131 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Plasma
{
namespace Tags
{
DefineTag(Joint);
}
LightningDefineType(Joint, builder, type)
{
PlasmaBindDocumented();
PlasmaBindDependency(Cog);
PlasmaBindDependency(ObjectLink);
PlasmaBindSetup(SetupMode::DefaultSerialization);
Lightning... | 28.851351 | 109 | 0.72993 | JesseMader |
5820b09759dbd9498493383a041dd42f8a975514 | 3,055 | cpp | C++ | modules/boost/simd/base/unit/bitwise/scalar/ctz.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/unit/bitwise/scalar/ctz.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/unit/bitwise/scalar/ctz.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 36.807229 | 85 | 0.654664 | psiha |
582597bde0f8de7e5184d4ae2a3c7b34dd9aa68d | 1,472 | cpp | C++ | inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/fuse_subtract_to_fake_quantize_transformation.cpp | oxygenxo/openvino | a984e7e81bcf4a18138b57632914b5a88815282d | [
"Apache-2.0"
] | null | null | null | inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/fuse_subtract_to_fake_quantize_transformation.cpp | oxygenxo/openvino | a984e7e81bcf4a18138b57632914b5a88815282d | [
"Apache-2.0"
] | 29 | 2020-12-08T07:33:34.000Z | 2022-02-21T13:03:37.000Z | inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/fuse_subtract_to_fake_quantize_transformation.cpp | oxygenxo/openvino | a984e7e81bcf4a18138b57632914b5a88815282d | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/fuse_subtract_to_fake_quantize_transformation.hpp"
#include <tuple>
#include <sstream>
#include <string>
#include <vector>
#include <transformations/init_node_info.hpp>
#include "lpt_ngraph_funct... | 32 | 147 | 0.777853 | oxygenxo |
582647cc35bcc66768b5d2a8e9a6c8bd180f1cd2 | 84 | cc | C++ | transport/MessageUtils.cc | ybatrakov/ybtrep | f5142b3f4611957537971f8e105ebb9fc911c726 | [
"Apache-2.0"
] | null | null | null | transport/MessageUtils.cc | ybatrakov/ybtrep | f5142b3f4611957537971f8e105ebb9fc911c726 | [
"Apache-2.0"
] | null | null | null | transport/MessageUtils.cc | ybatrakov/ybtrep | f5142b3f4611957537971f8e105ebb9fc911c726 | [
"Apache-2.0"
] | null | null | null | #include "MessageUtils.h"
mamaPayloadBridge MessageUtils::payloadBridge = nullptr;
| 21 | 56 | 0.821429 | ybatrakov |
5826f170c217ac14e36399a80add561303d113bd | 3,407 | cpp | C++ | sources/sfzformat_db.cpp | sfztools/sfzfoo | 8344c7fd94a4a8b681014aa66cdd0f02d79b8731 | [
"BSD-2-Clause"
] | 3 | 2019-12-31T10:53:03.000Z | 2021-12-16T22:31:42.000Z | sources/sfzformat_db.cpp | sfztools/sfzfoo | 8344c7fd94a4a8b681014aa66cdd0f02d79b8731 | [
"BSD-2-Clause"
] | 1 | 2020-01-04T01:11:24.000Z | 2020-01-04T08:40:50.000Z | sources/sfzformat_db.cpp | sfztools/sfz-opcode-checker | 8344c7fd94a4a8b681014aa66cdd0f02d79b8731 | [
"BSD-2-Clause"
] | null | null | null | #include "sfzformat_db.h"
#include <yaml-cpp/yaml.h>
#include <algorithm>
#include <iostream>
#include <fstream>
SfzDb *SfzDb::loadYAML(const ghc::filesystem::path &path)
{
SfzDb db;
db._opcodes.reserve(1024);
YAML::Node doc;
try {
doc = YAML::LoadFile(path);
}
catch (std::exception &... | 25.051471 | 112 | 0.563546 | sfztools |
5827ef3dd8751b2c7cd0a0786c1fec0439b4eabe | 3,172 | cpp | C++ | Source/Core/FontFace.cpp | Unvanquished/libRocket | ba129bb701e6777ac763f279fd8f8cbd8339e38d | [
"Unlicense",
"MIT"
] | null | null | null | Source/Core/FontFace.cpp | Unvanquished/libRocket | ba129bb701e6777ac763f279fd8f8cbd8339e38d | [
"Unlicense",
"MIT"
] | 5 | 2016-07-13T00:50:00.000Z | 2020-02-08T03:49:05.000Z | Source/Core/FontFace.cpp | Unvanquished/libRocket | ba129bb701e6777ac763f279fd8f8cbd8339e38d | [
"Unlicense",
"MIT"
] | 4 | 2015-10-24T11:59:32.000Z | 2021-12-05T19:15:25.000Z | /*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... | 26.214876 | 113 | 0.729823 | Unvanquished |
5829320a442c8eb1dbd064ffecc8acfbdb6fe942 | 3,300 | cpp | C++ | src/game/client/c_colorcorrectionvolume.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/client/c_colorcorrectionvolume.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/client/c_colorcorrectionvolume.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Color correction entity.
//
// $NoKeywords: $
//===========================================================================//
#include "cbase.h"
#include "filesystem.h"
#include "cdll_client_int.h"
#include "materialsystem/Mat... | 28.947368 | 115 | 0.531212 | cstom4994 |
582d76a97d660cd80c90c2781b8d143006860485 | 1,667 | cpp | C++ | src/Platform/android/Application_Android.cpp | AmazingCow/MonsterFramework | e2cc94012ff3074c20aec2e095ea4242f91aa99e | [
"BSD-3-Clause"
] | null | null | null | src/Platform/android/Application_Android.cpp | AmazingCow/MonsterFramework | e2cc94012ff3074c20aec2e095ea4242f91aa99e | [
"BSD-3-Clause"
] | 2 | 2016-09-27T00:13:22.000Z | 2016-09-27T00:21:30.000Z | src/Platform/android/Application_Android.cpp | AmazingCow-Game-Framework/MonsterFramework | e2cc94012ff3074c20aec2e095ea4242f91aa99e | [
"BSD-3-Clause"
] | null | null | null |
#include "MonsterFramework/include/Platform/Application.h"
//Prevent the file to be compiled in NON Android builds.
#if( CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID )
//Jni
#include "platform/android/jni/JniHelper.h"
//Usings
USING_NS_MF;
USING_NS_CC;
/////////////////////////////////////////////////////////////////... | 34.729167 | 86 | 0.513497 | AmazingCow |
5839d0685d548e610c341210d01ab8ac68098520 | 1,151 | hpp | C++ | src/include/guinsoodb/storage/table/validity_segment.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/storage/table/validity_segment.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/storage/table/validity_segment.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/storage/table/validity_segment.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/storage/block.hpp"
#include "... | 30.289474 | 97 | 0.67159 | GuinsooLab |
5843439eade84033f422e6f86c98ec44d44fd90a | 4,781 | cpp | C++ | src/shapes/sphere.cpp | guerarda/rt1w | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | [
"MIT"
] | null | null | null | src/shapes/sphere.cpp | guerarda/rt1w | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | [
"MIT"
] | null | null | null | src/shapes/sphere.cpp | guerarda/rt1w | 2fa13326e0a745214fb1a9fdc49a345c1407b6f3 | [
"MIT"
] | null | null | null | #include "shapes/sphere.hpp"
#include "rt1w/efloat.hpp"
#include "rt1w/error.h"
#include "rt1w/interaction.hpp"
#include "rt1w/params.hpp"
#include "rt1w/ray.hpp"
#include "rt1w/sampling.hpp"
#include "rt1w/transform.hpp"
#include "rt1w/utils.hpp"
#include "rt1w/value.hpp"
static inline bool SphereQuadratic(const Ray... | 28.289941 | 82 | 0.568919 | guerarda |
5848d8168c31b51e78b0c8ea0422f46dc16cd2a8 | 265 | cc | C++ | aria/examples/bar.cc | gunhoon2/aria | 5bb0ac5c14c88c14b3078ee4af800aa8ec1aaadf | [
"MIT"
] | null | null | null | aria/examples/bar.cc | gunhoon2/aria | 5bb0ac5c14c88c14b3078ee4af800aa8ec1aaadf | [
"MIT"
] | null | null | null | aria/examples/bar.cc | gunhoon2/aria | 5bb0ac5c14c88c14b3078ee4af800aa8ec1aaadf | [
"MIT"
] | null | null | null | // Copyright (c) 2017, Gunhoon Lee (gunhoon@gmail.com)
#include "aria/examples/bar.h"
#include <iostream>
namespace aria {
Bar::Bar() {
std::cout << "Bar ctor.." << std::endl;
}
Bar::~Bar() {
std::cout << "Bar dtor.." << std::endl;
}
} // namespace aria
| 14.722222 | 54 | 0.592453 | gunhoon2 |
584abe4a2122eb6e93668529e399634992c7214e | 1,245 | hpp | C++ | include/cppurses/widget/widgets/checkbox.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/widget/widgets/checkbox.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/widget/widgets/checkbox.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | #ifndef CPPURSES_WIDGET_WIDGETS_CHECKBOX_HPP
#define CPPURSES_WIDGET_WIDGETS_CHECKBOX_HPP
#include <cstddef>
#include <cstdint>
#include <signals/signals.hpp>
#include <cppurses/painter/glyph.hpp>
#include <cppurses/painter/glyph_string.hpp>
#include <cppurses/system/mouse_data.hpp>
#include <cppurses/widget/widget.h... | 23.490566 | 64 | 0.713253 | jktjkt |
584e170ebe14efc0400153eaa30cdc1b49e1a7d8 | 2,666 | cpp | C++ | cpp/tests/openpaltests/src/ManagedPointerTestSuite.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | cpp/tests/openpaltests/src/ManagedPointerTestSuite.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | cpp/tests/openpaltests/src/ManagedPointerTestSuite.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Li... | 26.137255 | 80 | 0.723556 | SensusDA |
584f96c0ba024b5ad58956d1a91f0191a6e1b2c8 | 3,004 | hpp | C++ | include/continuable/detail/traversal/container-category.hpp | sTabishAzam/continuable | 809f82673ad3458fe12b11fa6dee46d3cbcaf749 | [
"MIT"
] | 745 | 2017-02-27T22:17:27.000Z | 2022-03-21T20:15:14.000Z | include/continuable/detail/traversal/container-category.hpp | sTabishAzam/continuable | 809f82673ad3458fe12b11fa6dee46d3cbcaf749 | [
"MIT"
] | 45 | 2018-02-14T22:32:13.000Z | 2022-02-09T14:56:09.000Z | include/continuable/detail/traversal/container-category.hpp | sTabishAzam/continuable | 809f82673ad3458fe12b11fa6dee46d3cbcaf749 | [
"MIT"
] | 47 | 2017-03-07T17:24:13.000Z | 2022-02-03T07:06:21.000Z |
/*
/~` _ _ _|_. _ _ |_ | _
\_,(_)| | | || ||_|(_||_)|(/_
https://github.com/Naios/continuable
v4.1.0
Copyright(c) 2015 - 2020 Denis Blank <denis.blank at outlook dot com>
Permission is hereby granted, fr... | 39.012987 | 79 | 0.713049 | sTabishAzam |
585aec9599f2b44a9fc6e914ba7a38d72528d475 | 10,982 | cpp | C++ | examples/src/jsonpointer_examples.cpp | bergmansj/jsoncons | 11db194bd3f0e3e89f29b3447e28d131db242501 | [
"BSL-1.0"
] | null | null | null | examples/src/jsonpointer_examples.cpp | bergmansj/jsoncons | 11db194bd3f0e3e89f29b3447e28d131db242501 | [
"BSL-1.0"
] | null | null | null | examples/src/jsonpointer_examples.cpp | bergmansj/jsoncons | 11db194bd3f0e3e89f29b3447e28d131db242501 | [
"BSL-1.0"
] | null | null | null | // Copyright 2017 Daniel Parker
// Distributed under Boost license
#include <jsoncons/json.hpp>
#include <jsoncons_ext/jsonpointer/jsonpointer.hpp>
namespace jp = jsoncons::jsonpointer;
void jsonpointer_select_RFC6901()
{
// Example from RFC 6901
auto j = jsoncons::json::parse(R"(
{
"foo": [... | 23.12 | 93 | 0.490985 | bergmansj |
585b9624374e86b71ee3eecae40bcac3b41045de | 798 | hpp | C++ | src/system/mainloop.hpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | 2 | 2018-08-24T00:09:03.000Z | 2019-08-25T23:03:11.000Z | src/system/mainloop.hpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | null | null | null | src/system/mainloop.hpp | ranjak/opengl-tutorial | fff192b9966c9e14d77b4becb9c205ea21a02069 | [
"MIT"
] | 3 | 2016-12-02T17:22:14.000Z | 2018-05-08T11:34:56.000Z | #ifndef MAINLOOP_HPP
#define MAINLOOP_HPP
#include "window.hpp"
#include "system.hpp"
#include "tutorial.hpp"
#include <string>
#include <memory>
class MainLoop
{
public:
static const ogl::time TIMESTEP;
static void requestExit();
MainLoop();
MainLoop(const MainLoop &) = delete;
MainLoop& operator=(const... | 16.978723 | 85 | 0.716792 | ranjak |
5862afb7b1e1ceb3205573978b688bf3ba0fdcf3 | 110,605 | cpp | C++ | mysql_install/inc/mysql-connector-c++-1.1.4/driver/mysql_util.cpp | vkardon/dbstream | 1e5eb9354a1fb05466a178d2275aecab4b7f8bdd | [
"MIT"
] | null | null | null | mysql_install/inc/mysql-connector-c++-1.1.4/driver/mysql_util.cpp | vkardon/dbstream | 1e5eb9354a1fb05466a178d2275aecab4b7f8bdd | [
"MIT"
] | null | null | null | mysql_install/inc/mysql-connector-c++-1.1.4/driver/mysql_util.cpp | vkardon/dbstream | 1e5eb9354a1fb05466a178d2275aecab4b7f8bdd | [
"MIT"
] | null | null | null | /*
Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/C++ is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
MySQL Connectors. There are special exceptions to the terms and
conditions of the GPLv2 as it is applied to... | 45.591509 | 109 | 0.71174 | vkardon |
5865579641bcaa78604060f2531c001750bf1e03 | 4,298 | cpp | C++ | src/frameworks/native/services/surfaceflinger/tests/unittests/SchedulerUtilsTest.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/native/services/surfaceflinger/tests/unittests/SchedulerUtilsTest.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/native/services/surfaceflinger/tests/unittests/SchedulerUtilsTest.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 The Android Open Source Project
*
* 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 applica... | 32.80916 | 75 | 0.713355 | dAck2cC2 |
586619c126017122df89c63316c233ea8027efa4 | 26,060 | hpp | C++ | Motorola/MCore IDA IDP/5.0/IDA/Inc/area.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | 1 | 2021-06-26T17:08:24.000Z | 2021-06-26T17:08:24.000Z | Motorola/MCore IDA IDP/5.0/IDA/Inc/area.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | null | null | null | Motorola/MCore IDA IDP/5.0/IDA/Inc/area.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | null | null | null | /*
* Interactive disassembler (IDA).
* Copyright (c) 1990-97 by Ilfak Guilfanov.
* ALL RIGHTS RESERVED.
* E-mail: ig@estar.msk.su
* FIDO: 2:5020/209
*
*/
#ifndef _AREA_HPP
#define _AREA_HPP
//
// This file contains definiti... | 43.0033 | 271 | 0.622064 | erithion |
586bb863a9de73e152602383fa33a2ad3c592a0f | 1,173 | hpp | C++ | Workspace/src/MediaManager.hpp | Llemmert/UntitledCatGame | 4618cef62d329a90a7387a63cdf87b5b9762097b | [
"MIT"
] | null | null | null | Workspace/src/MediaManager.hpp | Llemmert/UntitledCatGame | 4618cef62d329a90a7387a63cdf87b5b9762097b | [
"MIT"
] | null | null | null | Workspace/src/MediaManager.hpp | Llemmert/UntitledCatGame | 4618cef62d329a90a7387a63cdf87b5b9762097b | [
"MIT"
] | null | null | null | #pragma once
using namespace std;
class MediaManager
{
map<string, SDL_Texture *> images;
SDL_Renderer *ren;
map<string, Mix_Chunk *> samples;
public:
MediaManager(SDL_Renderer *newRen)
{
ren = newRen;
}
Mix_Chunk *readWav(string filename)
{
if (samples.find(filename) == samples.end())
{
Mix_Chunk *... | 22.132075 | 72 | 0.666667 | Llemmert |
586c63f7330e0398aa7063848f5ce84fe7f033a4 | 6,000 | cpp | C++ | utilities/pandaSetSystemTime.cpp | eswierk/libpanda | 6540181edcf7df3e4ec1ee530456fff741176257 | [
"MIT"
] | 11 | 2020-12-02T00:12:25.000Z | 2022-03-31T07:38:32.000Z | utilities/pandaSetSystemTime.cpp | eswierk/libpanda | 6540181edcf7df3e4ec1ee530456fff741176257 | [
"MIT"
] | 29 | 2021-07-15T23:03:38.000Z | 2021-10-08T22:02:29.000Z | utilities/pandaSetSystemTime.cpp | eswierk/libpanda | 6540181edcf7df3e4ec1ee530456fff741176257 | [
"MIT"
] | 7 | 2021-07-15T21:09:23.000Z | 2022-02-04T04:06:25.000Z | /*
Author: Matt Bunting
Copyright (c) 2020 Arizona Board of Regents
All rights reserved.
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the
above copyright notice... | 36.363636 | 105 | 0.692833 | eswierk |
586f2306c7c0840df4cdd4b2f66351d3924bb447 | 2,410 | cpp | C++ | source/dataset.cpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | source/dataset.cpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | source/dataset.cpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2016, Santili Y-HRAH KRONG
* 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
* lis... | 21.517857 | 83 | 0.726971 | Santili |
586f36e592acdf9b84d55f1480090bab1221332c | 2,186 | cc | C++ | leetcode/math_pow.cc | prashrock/C- | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | 1 | 2016-12-05T10:42:46.000Z | 2016-12-05T10:42:46.000Z | leetcode/math_pow.cc | prashrock/CPP | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | null | null | null | leetcode/math_pow.cc | prashrock/CPP | 3ed46815d40b3e42cd9f36d23c8ee2a9de742323 | [
"MIT"
] | null | null | null | //g++-5 -Wall --std=c++11 -g -o math_pow math_pow.cc
/**
* @file Integer Pow(x,n)
* @brief Implement Pow(x,n)
*/
// https://leetcode.com/problems/powx-n/
#include <iostream> /* std::cout */
#include <algorithm> /* std::max */
#include <cmath> /*... | 30.788732 | 69 | 0.451967 | prashrock |
587037e5cf7e3e4aabaa681eea335d81562b1fd3 | 2,225 | hpp | C++ | src/zipf_distribution.hpp | manuhalo/PLACeS | 1574a34a2a98468e72d072cc9d1f2b32fcee38f2 | [
"Apache-2.0"
] | null | null | null | src/zipf_distribution.hpp | manuhalo/PLACeS | 1574a34a2a98468e72d072cc9d1f2b32fcee38f2 | [
"Apache-2.0"
] | 1 | 2015-04-24T10:10:51.000Z | 2015-06-18T08:32:16.000Z | src/zipf_distribution.hpp | manuhalo/PLACeS | 1574a34a2a98468e72d072cc9d1f2b32fcee38f2 | [
"Apache-2.0"
] | null | null | null | /* boost-supplement random/discrete_distribution.hpp header file
*
* Copyright (C) 2008 Kenta Murata.
* 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)
*
* $Id: discrete_distribution.hpp 5906 2008-01-30 15:09:3... | 28.525641 | 100 | 0.710112 | manuhalo |
58734ce83a7a5f6a577f18835866dc8f4ec79183 | 1,816 | hpp | C++ | Mongoose/Include/Mongoose_QPDelta.hpp | puckbee/suitesparse | 306d7f11792aca524571f4ae142bcd8b7e38c362 | [
"Apache-2.0"
] | 29 | 2019-11-27T00:43:07.000Z | 2020-02-25T14:35:54.000Z | Mongoose/Include/Mongoose_QPDelta.hpp | puckbee/suitesparse | 306d7f11792aca524571f4ae142bcd8b7e38c362 | [
"Apache-2.0"
] | null | null | null | Mongoose/Include/Mongoose_QPDelta.hpp | puckbee/suitesparse | 306d7f11792aca524571f4ae142bcd8b7e38c362 | [
"Apache-2.0"
] | 4 | 2019-11-27T05:19:03.000Z | 2020-03-23T22:49:53.000Z | /* ========================================================================== */
/* === Include/Mongoose_QPDelta.hpp ========================================= */
/* ========================================================================== */
/* -------------------------------------------------------------------------... | 29.290323 | 80 | 0.449339 | puckbee |
5879ad76ce941dd75a2af157749a79d1183d9a36 | 3,189 | cpp | C++ | MMOCoreORB/src/server/zone/objects/tangible/terminal/components/UplinkTerminalMenuComponent.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/objects/tangible/terminal/components/UplinkTerminalMenuComponent.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/objects/tangible/terminal/components/UplinkTerminalMenuComponent.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
* UplinkTerminalMenuComponent.cpp
*
* Created on: Oct 31, 2012
* Author: root
*/
#include "UplinkTerminalMenuComponent.h"
#include "server/zone/Zone.h"
#include "server/zone/packets/object/ObjectMenuResponse.h"
#include "server/zone/objects/scene/SceneObject.h"
#include "server/zone/objects/creature/Crea... | 35.433333 | 154 | 0.748511 | V-Fib |
587f3a3518e699cd57af64cd502cb880151e1ec4 | 2,884 | hpp | C++ | Source/Ilum/Graphics/GraphicsContext.hpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 11 | 2022-01-09T05:32:56.000Z | 2022-03-28T06:35:16.000Z | Source/Ilum/Graphics/GraphicsContext.hpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | null | null | null | Source/Ilum/Graphics/GraphicsContext.hpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 1 | 2021-11-20T15:39:03.000Z | 2021-11-20T15:39:03.000Z | #pragma once
#include "Engine/Subsystem.hpp"
#include "Eventing/Event.hpp"
#include "Graphics/Synchronization/QueueSystem.hpp"
#include "Graphics/Command/CommandPool.hpp"
#include "Timing/Stopwatch.hpp"
#include "Utils/PCH.hpp"
namespace Ilum
{
class Instance;
class PhysicalDevice;
class Surface;
class LogicalDev... | 22.708661 | 141 | 0.748266 | Chaf-Libraries |
5880350e3a96b3b7863451123c21a0ae18a48323 | 1,277 | cpp | C++ | 01_Programming_Basics/05_Programming_Basics_Exams/04_CPP_Programming Basics_Online_Exam_3_and_4_November 2018/03_wedding_investment.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/05_Programming_Basics_Exams/04_CPP_Programming Basics_Online_Exam_3_and_4_November 2018/03_wedding_investment.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/05_Programming_Basics_Exams/04_CPP_Programming Basics_Online_Exam_3_and_4_November 2018/03_wedding_investment.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
//#include <math.h>
//#include <stdlib.h>
#include <iomanip>
using namespace std;
int main() {
string contractLen = "";
string contractType = "";
string desert = "";
int months = 0;
getline(cin, contractLen);
getline(cin, contractType);
getline(cin, desert);
ci... | 20.596774 | 69 | 0.511355 | Knightwalker |
58834bd94e9823c5ce752f747a7a9a76a913d22c | 2,918 | cpp | C++ | Source/MammutQOR/Model/MProperty.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/MammutQOR/Model/MProperty.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/MammutQOR/Model/MProperty.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //MProperty.cpp
// Copyright Querysoft Limited 2015
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit the Softw... | 36.024691 | 132 | 0.593215 | mfaithfull |
58855a1d969826f5a467b796deb3b50623140186 | 15,638 | cpp | C++ | src/proxy_server/proxy_server.cpp | PetrPPetrov/gkm-world | 7c24d1646e04b439733a7eb603c9a00526b39f4c | [
"BSD-2-Clause"
] | 2 | 2021-06-04T09:27:52.000Z | 2021-06-08T05:23:21.000Z | src/proxy_server/proxy_server.cpp | PetrPPetrov/gkm-world | 7c24d1646e04b439733a7eb603c9a00526b39f4c | [
"BSD-2-Clause"
] | null | null | null | src/proxy_server/proxy_server.cpp | PetrPPetrov/gkm-world | 7c24d1646e04b439733a7eb603c9a00526b39f4c | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2018-2020 Petr Petrovich Petrov. All rights reserved.
// License: https://github.com/PetrPPetrov/gkm-world/blob/master/LICENSE
#include <iostream>
#include <fstream>
#include <memory>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/random_generator.hpp>
#include "gkm_world/protocol.h"
#include "gkm... | 36.283063 | 159 | 0.700793 | PetrPPetrov |
5886178920a02fd588e4b2042d0693d1347b319c | 2,160 | hpp | C++ | include/GameEngine/Graphics/Shader.hpp | iRohith/GameEngine | 61d8ea417e5a9d03075d9cfcdc86f0a1a40f676f | [
"Apache-2.0"
] | null | null | null | include/GameEngine/Graphics/Shader.hpp | iRohith/GameEngine | 61d8ea417e5a9d03075d9cfcdc86f0a1a40f676f | [
"Apache-2.0"
] | null | null | null | include/GameEngine/Graphics/Shader.hpp | iRohith/GameEngine | 61d8ea417e5a9d03075d9cfcdc86f0a1a40f676f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../Core/Core.hpp"
#include "../Util/Array.hpp"
#include <string_view>
// TODO: ShaderLibrary (just copy from Hazel :| )
namespace GameEngine {
template<typename T> using Ref = std::shared_ptr<T>;
class ShaderUnit;
class GEAPI Shader {
public:
static Ref<Shader> Create(co... | 37.894737 | 179 | 0.651852 | iRohith |
588a1b7f7b93a3adbf6d81cc599f3e6653c7a145 | 16,847 | cpp | C++ | Source/Game.cpp | AdriaSeSa/Minigame | ca2a0f2d47bba25341962b5229eb304159e91749 | [
"MIT"
] | 2 | 2021-03-16T00:49:11.000Z | 2021-04-03T20:39:39.000Z | Source/Game.cpp | AdriaSeSa/Minigame | ca2a0f2d47bba25341962b5229eb304159e91749 | [
"MIT"
] | null | null | null | Source/Game.cpp | AdriaSeSa/Minigame | ca2a0f2d47bba25341962b5229eb304159e91749 | [
"MIT"
] | null | null | null | #include "Game.h"
//Game::Game() {}
//Game::~Game() {}
Menu menu;
bool Game::Init(Display Disp) {
srand((unsigned)time(NULL));
canvas = Disp;
bool result = canvas.createDisplay(SCREEN_WIDTH, SCREEN_HEIGHT);
menu.initSurfaces(canvas.getRenderer());
player = new Player(400, 300, 32, 32, 2, canvas.getRenderer(... | 29.976868 | 144 | 0.606161 | AdriaSeSa |
588fed9981cff1a9b92be3f195b532e55571a118 | 1,964 | hpp | C++ | SDK/PUBG_CharacterCapture_Gamepad_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_CharacterCapture_Gamepad_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_CharacterCapture_Gamepad_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | #pragma once
// PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_CharacterCapture_Gamepad_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------... | 32.733333 | 152 | 0.674134 | realrespecter |
5892bc7540710686cf938dafd30aa91ccb05abe4 | 7,783 | inl | C++ | include/hfsm2/detail/control.inl | hfsm/HFSM2 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | [
"MIT"
] | 2 | 2021-01-26T02:50:53.000Z | 2021-07-14T02:07:52.000Z | include/hfsm2/detail/control.inl | hfsm/HFSM2 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | [
"MIT"
] | 1 | 2021-01-26T02:51:46.000Z | 2021-01-26T06:06:31.000Z | include/hfsm2/detail/control.inl | hfsm/HFSM2 | 61ecd4d36508dcc348049ee72d51f6cfca095311 | [
"MIT"
] | null | null | null | namespace hfsm2 {
namespace detail {
////////////////////////////////////////////////////////////////////////////////
template <typename TA>
ControlT<TA>::Origin::Origin(ControlT& control_,
const StateID id)
: control{control_}
, prevId(control._originId)
{
control.setOrigin(id);
}
//---------------------... | 26.293919 | 90 | 0.583837 | hfsm |
589aaa6574fc575fbb734930ed87d51ef4205acd | 703 | hpp | C++ | luanics/logging/Sink.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | luanics/logging/Sink.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | luanics/logging/Sink.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
namespace luanics {
namespace logging {
class Record;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///
/// @class Sink
///
/// @brief Back-end of logging framework.
///
/... | 23.433333 | 79 | 0.364154 | luanics |
589cad045e88539f85139d7bfc000dbfec36cfa7 | 2,049 | cpp | C++ | tests/engine/FilterGroup/tst_FilterGroupTest.cpp | tomvodi/QTail | 2e7acf31664969e6890edede6b60e02b20f33eb2 | [
"MIT"
] | 1 | 2017-04-29T12:17:59.000Z | 2017-04-29T12:17:59.000Z | tests/engine/FilterGroup/tst_FilterGroupTest.cpp | tomvodi/QTail | 2e7acf31664969e6890edede6b60e02b20f33eb2 | [
"MIT"
] | 25 | 2016-06-11T17:35:42.000Z | 2017-07-19T04:19:08.000Z | tests/engine/FilterGroup/tst_FilterGroupTest.cpp | tomvodi/QTail | 2e7acf31664969e6890edede6b60e02b20f33eb2 | [
"MIT"
] | null | null | null | /**
* @author Thomas Baumann <teebaum@ymail.com>
*
* @section LICENSE
* See LICENSE for more informations.
*
*/
#include <QString>
#include <QtTest>
#include <QCoreApplication>
#include <include/FilterGroup.h>
class FilterGroupTest : public QObject
{
Q_OBJECT
public:
FilterGroupTest();
private Q_SLOTS... | 20.287129 | 91 | 0.724744 | tomvodi |
589d5cdc662c53a95fb4d11936b5347906dc7248 | 412 | cpp | C++ | HDU/20/hdu2072.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | HDU/20/hdu2072.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | HDU/20/hdu2072.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | //利用STL #include<set> 和 #include<sstream> 问题就简单多了
#include <iostream>
#include <sstream>
#include<string>
#include<set>
using namespace std;
int main()
{
set <string> ans;
stringstream temp;
string s;
while( getline(cin,s) && s!="#")
{
stringstream temp(s);
ans.clear();... | 19.619048 | 51 | 0.563107 | bilibiliShen |
58a02e53d9c457ea10ac2c87de94d6fa4b75b174 | 905 | cc | C++ | mycode/cpp/thread/oo_threadpool/main.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | mycode/cpp/thread/oo_threadpool/main.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | mycode/cpp/thread/oo_threadpool/main.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | #include "Threadpool.h"
#include "Task.h"
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
#include <memory>
using std::unique_ptr;
using std::cout;
using std::endl;
using namespace wd;
class MyTask : public Task {
public:
void process() override {
::srand(::clock());
/... | 22.073171 | 76 | 0.583425 | stdbilly |
58a08ac37d6c4e75a17b064bbddea071e696b1d3 | 3,334 | cpp | C++ | core/test/matrix/identity.cpp | flipflapflop/ginkgo | 876234e142a0f5bb2a85bb1dd2cc488c3c5d6206 | [
"BSD-3-Clause"
] | null | null | null | core/test/matrix/identity.cpp | flipflapflop/ginkgo | 876234e142a0f5bb2a85bb1dd2cc488c3c5d6206 | [
"BSD-3-Clause"
] | null | null | null | core/test/matrix/identity.cpp | flipflapflop/ginkgo | 876234e142a0f5bb2a85bb1dd2cc488c3c5d6206 | [
"BSD-3-Clause"
] | null | null | null | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2019, the Ginkgo 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 co... | 30.587156 | 78 | 0.685363 | flipflapflop |
58a9f25c0802a949b51582de3a1b3777c8af4c0e | 466 | cpp | C++ | Functions/perimeter.cpp | pepm99/School-C- | 2d4b23d16a3b2fd0e589686db7d02cf6a647e447 | [
"MIT"
] | null | null | null | Functions/perimeter.cpp | pepm99/School-C- | 2d4b23d16a3b2fd0e589686db7d02cf6a647e447 | [
"MIT"
] | null | null | null | Functions/perimeter.cpp | pepm99/School-C- | 2d4b23d16a3b2fd0e589686db7d02cf6a647e447 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
double perimeter (double a, double b)
{
double p = 2*a+2*b;
return p;
}
double lice(double a, double b)
{
double s = a*b;
return s;
}
int main()
{
double a,b,a1,b1;
cout<<"a=";
cin>>a;
cout<<"b=";
cin>>b;
cout<<"a1... | 14.5625 | 45 | 0.51073 | pepm99 |
58aa9e5187ab209f628b83120cb10779917599b5 | 1,472 | cpp | C++ | Parciales/examen_2/P7_PlanetsKingdoms.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | Parciales/examen_2/P7_PlanetsKingdoms.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | Parciales/examen_2/P7_PlanetsKingdoms.cpp | luismoroco/ProgrCompetitiva | 011cdb18749a16d17fd635a7c36a8a21b2b643d9 | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// https://cses.fi/problemset/task/1683
typedef int long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vll;
typedef map<ll, bool> mpb;
typedef vector<bool> vb;
void
DFS(vll &adj, mpb &visited, vl &a, ll x)
{
visited[x] = true;
for (ll i : adj[x]){
... | 18.871795 | 69 | 0.463995 | luismoroco |
58ad638394e98a88fb6bb66d9e7b9d0ce81bb78a | 6,994 | cpp | C++ | breeze/cryptography/brz/sha512.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/cryptography/brz/sha512.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/cryptography/brz/sha512.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2006-2007 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3... | 34.623762 | 80 | 0.615671 | gennaroprota |
58ad8e01cff2451b726585464523a59170982242 | 1,769 | hpp | C++ | Trunk/Backstage/WebServer/src/mutex.hpp | tinoryj/StreamingMediaSystem_Demo | 9252cd01cb615a1c55f7613466be1c30a9038b21 | [
"MIT"
] | 1 | 2018-06-18T14:53:36.000Z | 2018-06-18T14:53:36.000Z | Trunk/Backstage/WebServer/src/mutex.hpp | tinoryj/StreamingMediaSystem_Demo | 9252cd01cb615a1c55f7613466be1c30a9038b21 | [
"MIT"
] | 1 | 2018-01-13T16:13:42.000Z | 2018-03-23T07:12:29.000Z | src/mutex.hpp | tinoryj/SimpleHTTPServer_epoll_threadPoll | 1409acddf9427234a4e322c7134528b40ff9f0a9 | [
"MIT"
] | null | null | null | #ifndef _MUTEX_HPP_
#define _MUTEX_HPP_
//参照muduo库的mutex写出的一个简易的Mutex类
#include <bits/stdc++.h>
#include <assert.h>
#include <pthread.h>
class MutexLock{
public:
MutexLock(): holder_(0){
pthread_mutex_init(&mutex_, NULL); // 初始化
}
~MutexLock(){
assert(holder_ == 0);
pthread_mutex_destroy(&mutex_); // 销毁... | 13.503817 | 66 | 0.686829 | tinoryj |
58b4d7e5a0a91e8babfcc14df33b8639e3b1a651 | 11,988 | hpp | C++ | LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/RandomGenerators.hpp | wis1906/letsgo-ar-space-generation | 02d888a44bb9eb112f308356ab42720529349338 | [
"MIT"
] | null | null | null | LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/RandomGenerators.hpp | wis1906/letsgo-ar-space-generation | 02d888a44bb9eb112f308356ab42720529349338 | [
"MIT"
] | null | null | null | LetsGo/ThirdParty/ApproxMVBB/Includes/ApproxMVBB/RandomGenerators.hpp | wis1906/letsgo-ar-space-generation | 02d888a44bb9eb112f308356ab42720529349338 | [
"MIT"
] | null | null | null | // ========================================================================================
// ApproxMVBB
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz
// (døt) ch>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL w... | 34.34957 | 127 | 0.505172 | wis1906 |
58b4ecd312d9528373d8831c3492fba4facfd7cd | 5,538 | cpp | C++ | valeur_ajouter/QRCode_Generator/QRCode/test_main.cpp | SuperBatata/Sportify-QT-C---project | 8c0a9630cc6577721cb0f9fe0afd1eb082b4d4ba | [
"MIT"
] | null | null | null | valeur_ajouter/QRCode_Generator/QRCode/test_main.cpp | SuperBatata/Sportify-QT-C---project | 8c0a9630cc6577721cb0f9fe0afd1eb082b4d4ba | [
"MIT"
] | null | null | null | valeur_ajouter/QRCode_Generator/QRCode/test_main.cpp | SuperBatata/Sportify-QT-C---project | 8c0a9630cc6577721cb0f9fe0afd1eb082b4d4ba | [
"MIT"
] | null | null | null | /*
* QR Code Generator
* Copyright (C) 2014 Stefano BARILETTI <hackaroth@gmail.com>
*
* 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... | 28.994764 | 133 | 0.5381 | SuperBatata |
58b66778648a001230b3bbc5e2bad52dfae5f1d7 | 540 | hpp | C++ | Kreator/implementation/Platform/OpenGL/OpenGLRendererContext.hpp | ashish1009/Kreator | 68ff5073faef22ade314772a5127dd1cc98060b7 | [
"Apache-2.0"
] | null | null | null | Kreator/implementation/Platform/OpenGL/OpenGLRendererContext.hpp | ashish1009/Kreator | 68ff5073faef22ade314772a5127dd1cc98060b7 | [
"Apache-2.0"
] | null | null | null | Kreator/implementation/Platform/OpenGL/OpenGLRendererContext.hpp | ashish1009/Kreator | 68ff5073faef22ade314772a5127dd1cc98060b7 | [
"Apache-2.0"
] | null | null | null | //
// OpenGLRendererContext.hpp
// Kreator
//
// Created by iKan on 09/04/22.
//
#pragma once
#include <Renderer/Graphics/Context.hpp>
namespace Kreator {
/// Implementation of Renderer Graphics context for Open GL API
class OpenGLRendererContext : public RendererContext {
public:
OpenGLR... | 19.285714 | 67 | 0.637037 | ashish1009 |
58b7850f102ffd92d424a925293aa874646a22b7 | 30,804 | cpp | C++ | src/history/test/HistoryTests.cpp | viichain/vii-core | 2e5b794fb71e1385a2b5bc96920b5a69d4d8560f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/history/test/HistoryTests.cpp | viichain/vii-core | 2e5b794fb71e1385a2b5bc96920b5a69d4d8560f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/history/test/HistoryTests.cpp | viichain/vii-core | 2e5b794fb71e1385a2b5bc96920b5a69d4d8560f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null |
#include "bucket/BucketManager.h"
#include "catchup/test/CatchupWorkTests.h"
#include "history/FileTransferInfo.h"
#include "history/HistoryArchiveManager.h"
#include "history/HistoryManager.h"
#include "history/test/HistoryTestsUtils.h"
#include "historywork/GetHistoryArchiveStateWork.h"
#include "historywork/GunzipF... | 37.889299 | 86 | 0.657674 | viichain |
58b78abae22bb807c6b62e0f412e727385b3c970 | 1,932 | cpp | C++ | tests/track/pointer.cpp | lexxmark/ref_ptr | 526e1c9a96a83de8d7290ca6fc72616681135079 | [
"Apache-2.0"
] | 3 | 2017-04-04T16:45:22.000Z | 2019-09-01T14:26:16.000Z | tests/track/pointer.cpp | lexxmark/ref_ptr | 526e1c9a96a83de8d7290ca6fc72616681135079 | [
"Apache-2.0"
] | null | null | null | tests/track/pointer.cpp | lexxmark/ref_ptr | 526e1c9a96a83de8d7290ca6fc72616681135079 | [
"Apache-2.0"
] | 2 | 2019-11-19T21:58:22.000Z | 2021-09-08T00:32:18.000Z | #include <UnitTest++/UnitTest++.h>
#define RSL_NULL_PTR_POLICY_DEFAULT(T) rsl::track::may_be_null<T>
#define RSL_ON_DANGLE_POLICY_DEFAULT(T) rsl::track::null_on_dangle<T>
#include <track/pointer.h>
SUITE(track_ptr_tests)
{
using namespace rsl::track;
TEST(basic_test)
{
trackable object;
{
auto p = make_pt... | 14.41791 | 69 | 0.613872 | lexxmark |
58bd16a0451473f7dfc3da70c4f56941b51add8d | 1,748 | hpp | C++ | src/driver_authenticator.hpp | simwijs/naoqi_driver | 89b00459dc517f8564b1d7092eb36a3fc68a7096 | [
"Apache-2.0"
] | null | null | null | src/driver_authenticator.hpp | simwijs/naoqi_driver | 89b00459dc517f8564b1d7092eb36a3fc68a7096 | [
"Apache-2.0"
] | null | null | null | src/driver_authenticator.hpp | simwijs/naoqi_driver | 89b00459dc517f8564b1d7092eb36a3fc68a7096 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Aldebaran
*
* 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... | 27.3125 | 75 | 0.735126 | simwijs |
58bfd1e86ade32425829d201cf5f15563df29400 | 995 | cpp | C++ | TextDungeon/TextDungeon/Audio.cpp | Consalv0/TextDungeon | cabceee081745cc52801efc8b9c10268412578c8 | [
"MIT"
] | null | null | null | TextDungeon/TextDungeon/Audio.cpp | Consalv0/TextDungeon | cabceee081745cc52801efc8b9c10268412578c8 | [
"MIT"
] | null | null | null | TextDungeon/TextDungeon/Audio.cpp | Consalv0/TextDungeon | cabceee081745cc52801efc8b9c10268412578c8 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Audio.h"
// Play the notes in a song.
void Audio::Play(array<Note>^ tune) {
System::Collections::IEnumerator^ myEnum = tune->GetEnumerator();
while (myEnum->MoveNext()) {
Note n = *safe_cast<Note ^>(myEnum->Current);
if (n.NoteTone == Tone::REST)
Thread::Sleep((int)n.Not... | 45.227273 | 452 | 0.674372 | Consalv0 |
58c2e888e4de6793a9dc0157cf9b5f4eb7b98680 | 1,933 | hpp | C++ | external/pss/include/rantala/tools/insertion_sort.hpp | kurpicz/dsss | ac50a22b1beec1d8613a6cd868798426352305c8 | [
"BSD-2-Clause"
] | 3 | 2018-10-24T22:15:17.000Z | 2019-09-21T22:56:05.000Z | external/pss/include/rantala/tools/insertion_sort.hpp | kurpicz/dsss | ac50a22b1beec1d8613a6cd868798426352305c8 | [
"BSD-2-Clause"
] | null | null | null | external/pss/include/rantala/tools/insertion_sort.hpp | kurpicz/dsss | ac50a22b1beec1d8613a6cd868798426352305c8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2007-2008 by Tommi Rantala <tt.rantala@gmail.com>
*
* 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,... | 31.177419 | 79 | 0.694775 | kurpicz |
58c3fbf3ae0847cd1840a0026566255648e30af6 | 4,978 | cpp | C++ | src/design_editor/Settings.cpp | TheMrButcher/opengl_lessons | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 1 | 2016-10-25T21:15:16.000Z | 2016-10-25T21:15:16.000Z | src/design_editor/Settings.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 375 | 2016-06-04T11:27:40.000Z | 2019-04-14T17:11:09.000Z | src/design_editor/Settings.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2018 Slavnejshev Filipp
* This file is licensed under the terms of the MIT license.
*/
#include "Settings.h"
#include "Presentation.h"
#include <gamebase/impl/app/Config.h>
#include <gamebase/text/StringUtils.h>
#include <json/reader.h>
#include <json/writer.h>
namespace gamebase { namespace ed... | 34.331034 | 109 | 0.684813 | TheMrButcher |
58cd1f4e7274498d12e2a00f4fb69ba75193e758 | 1,886 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_Asap_Regular_18_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_Asap_Regular_18_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/generated/fonts/src/Table_Asap_Regular_18_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null |
#include <touchgfx/Font.hpp>
#ifndef NO_USING_NAMESPACE_TOUCHGFX
using namespace touchgfx;
#endif
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_Asap_Regular_18_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE =
{
{ 0, 32, 0, 0, 0, 0, 4, 255, 0, 0},
{ 0, 65, 11, 13, 13, ... | 44.904762 | 99 | 0.389183 | ramkumarkoppu |
58d884e94c43d12a08a34f33a92387ac0233dc97 | 899 | cpp | C++ | Ch09/date_941.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | Ch09/date_941.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | Ch09/date_941.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
struct Date
{
int y;
int m;
int d;
};
Date today;
Date tomorrow;
void init_day(Date& date, int y, int m, int d)
{
if (y > 0)
date.y = y;
else
error("Invalid year");
if (m <= 12 && m > 0)
date.m = m; //ekkor valid, felveheti az értéket
else
error("Invalid month");
... | 14.5 | 54 | 0.549499 | rzotya0327 |
58da56970c2661321a3644370d00a59248fcd730 | 1,092 | cpp | C++ | Engine/Source/Editor/SandboxApp.cpp | douysu/Sudou | 23286e22a96814863ee55c6e2b5cc67be18acba9 | [
"Apache-2.0"
] | 3 | 2022-01-07T01:09:06.000Z | 2022-01-21T03:11:33.000Z | Engine/Source/Editor/SandboxApp.cpp | douysu/Sudou | 23286e22a96814863ee55c6e2b5cc67be18acba9 | [
"Apache-2.0"
] | null | null | null | Engine/Source/Editor/SandboxApp.cpp | douysu/Sudou | 23286e22a96814863ee55c6e2b5cc67be18acba9 | [
"Apache-2.0"
] | null | null | null | #include "Runtime/Core/Application.h"
#include "Runtime/Core/EntryPoint.h"
#include "Runtime/GUI/ImGuiLayer.h"
#include "Runtime/Core/Input.h"
#include "Runtime/Core/KeyCodes.h"
#include "Runtime/Core/MouseButtonCodes.h"
#include "imgui/imgui.h"
class ExampleLayer : public Sudou::Layer
{
public:
ExampleLayer() : Lay... | 18.508475 | 62 | 0.675824 | douysu |
58dc8c5933254d81e8ba484a0dbff92210c644f3 | 784 | cpp | C++ | data/dailyCodingProblem774.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem774.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem774.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Using a read7() method that returns 7 characters from a file,
implement readN(n) which reads n characters.
For example, given a file with the content “Hello world”,
three read7() returns “Hello w”, “orld” and then “”.
*/
int index;
string read7(string& s){
string an... | 15.68 | 61 | 0.609694 | vidit1999 |
58dce8362c760d85774b75d402d8c3dae2cf69fa | 3,434 | cpp | C++ | main.cpp | aszecsei/kestrel_compiler | 3b592c77042f534ee725d076701800d5ad19318c | [
"MIT"
] | null | null | null | main.cpp | aszecsei/kestrel_compiler | 3b592c77042f534ee725d076701800d5ad19318c | [
"MIT"
] | null | null | null | main.cpp | aszecsei/kestrel_compiler | 3b592c77042f534ee725d076701800d5ad19318c | [
"MIT"
] | null | null | null | /* main.c -- main program for a Kestrel compiler */
/* Author: Douglas W. Jones
* Date 9/30/2016 -- code from lecture 17 with pro-forma comment changes
*/
#include "main.h"
#include "environment.h"
#include "lexical.h"
#include "block.h"
#include "program.h"
const char* main_infile;
const char* main_outfile;
int ... | 27.918699 | 96 | 0.562609 | aszecsei |
58dee9dad1c5a50edebdcbad1dfeb8178d6a2e38 | 2,993 | cpp | C++ | traces/trace_maker.cpp | umn-cris/MQSim | 0c103c0a0fb0aee8d8f30e5bbbfb9224c1d6cb8d | [
"MIT"
] | null | null | null | traces/trace_maker.cpp | umn-cris/MQSim | 0c103c0a0fb0aee8d8f30e5bbbfb9224c1d6cb8d | [
"MIT"
] | null | null | null | traces/trace_maker.cpp | umn-cris/MQSim | 0c103c0a0fb0aee8d8f30e5bbbfb9224c1d6cb8d | [
"MIT"
] | null | null | null | #include <string>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <time.h>
using namespace std;
const unsigned int sector_size_in_bytes = 512;
const unsigned int zone_size_MB = 256;
unsigned int smallest_zone_number = 2;
unsigned int biggest_zone_number = 14;
unsigned int total_size_of_accessed_fil... | 38.87013 | 136 | 0.657534 | umn-cris |
58e0235318b844ba7b585f2fd9bc8dbb65a78e8f | 13,528 | cc | C++ | code/render/physics/havok/havokscene.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/physics/havok/havokscene.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/physics/havok/havokscene.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// havokscene.cc
// (C) 2013-2014 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "physics/scene.h"
#include "physics/filterset.h"
#i... | 28.540084 | 159 | 0.648137 | gscept |
58e353a0160167535f5ffddfb4f21c049eec11bc | 9,729 | cpp | C++ | src/coreclr/src/vm/exinfo.cpp | davidsh/runtime | e5274e41fe13a8cfeeb4e87e39a1452cf8968f8c | [
"MIT"
] | 2 | 2020-05-27T10:46:24.000Z | 2020-05-27T10:46:27.000Z | src/coreclr/src/vm/exinfo.cpp | witchakorn1999/runtime | cfd0172f89d237f79c47de51b64d5778c440bbc6 | [
"MIT"
] | 2 | 2020-06-06T09:07:48.000Z | 2020-06-06T09:13:07.000Z | src/coreclr/src/vm/exinfo.cpp | witchakorn1999/runtime | cfd0172f89d237f79c47de51b64d5778c440bbc6 | [
"MIT"
] | 1 | 2020-08-04T14:01:38.000Z | 2020-08-04T14:01:38.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
//
#include "common.h"
#include "exinfo.h"
#include "dbginterface.h"
#ifndef FEATURE_EH_FUNCLETS
#ifndef DACCES... | 31.898361 | 158 | 0.687429 | davidsh |
58e39b090824caa2296db363e3210b40126cde16 | 2,898 | hpp | C++ | include/LightBulbApp/Repositories/TrainingPlanRepository.hpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | include/LightBulbApp/Repositories/TrainingPlanRepository.hpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | include/LightBulbApp/Repositories/TrainingPlanRepository.hpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | #pragma once
#ifndef _TRAININGPLANREPOSITORY_H_
#define _TRAININGPLANREPOSITORY_H_
// Library includes
#include <vector>
#include <memory>
// Includes
#include "LightBulb/Event/Observable.hpp"
namespace LightBulb
{
class AbstractTrainingPlan;
/**
* \brief All events the training plan repository can throw.
*/
... | 31.5 | 114 | 0.722222 | domin1101 |
58e3c50f3103af4afd1da0237a20460b57faf4cc | 831 | cc | C++ | openssl-examples/lib/openssl++/certificate_stack.cc | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | openssl-examples/lib/openssl++/certificate_stack.cc | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | openssl-examples/lib/openssl++/certificate_stack.cc | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#include <openssl++/certificate_stack.hpp>
#include <openssl++/exception.hpp>
namespace openssl
{
CertificateSt... | 20.775 | 74 | 0.685921 | falk-werner |
58e494b05e6f6f66ea3c8f2bc66f07a8795c3bd9 | 1,889 | cpp | C++ | Source/FishEngine/Component/Rigidbody.cpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-12-20T02:38:44.000Z | 2018-12-20T02:38:44.000Z | Source/FishEngine/Component/Rigidbody.cpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | null | null | null | Source/FishEngine/Component/Rigidbody.cpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-10-25T19:40:22.000Z | 2018-10-25T19:40:22.000Z | #include <FishEngine/Component/Rigidbody.hpp>
#include <FishEngine/Transform.hpp>
#include <FishEngine/GameObject.hpp>
#include <FishEngine/Component/BoxCollider.hpp>
#include <FishEngine/Component/SphereCollider.hpp>
#include <FishEngine/Physics/PhysxAPI.hpp>
using namespace physx;
inline physx::PxVec3 PxVec3(const ... | 27.376812 | 111 | 0.712546 | yushroom |
58e7c849efc2e4c6af1e6793bc4ed54321b23997 | 6,475 | cc | C++ | wasp_exec/src/waspexecutor.cc | tuloski/wasp_exec | 00ac1e3d00e974c380a9d498a346b50996bee2e7 | [
"MIT"
] | null | null | null | wasp_exec/src/waspexecutor.cc | tuloski/wasp_exec | 00ac1e3d00e974c380a9d498a346b50996bee2e7 | [
"MIT"
] | null | null | null | wasp_exec/src/waspexecutor.cc | tuloski/wasp_exec | 00ac1e3d00e974c380a9d498a346b50996bee2e7 | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include <boost/thread.hpp>
#include "std_msgs/String.h"
#include <iostream>
#include <sstream>
#include <queue>
#include "lrs_msgs_tst/ConfirmReq.h"
#include "mms_msgs/Cmd.h"
#include "lrs_srvs_exec/TSTCreateExecutor.h"
#include "lrs_msgs_tst/OperatorRequest.h"
#include "executors/flyto.h"
#... | 32.375 | 125 | 0.707181 | tuloski |
58ebde0ceaa882d8d5f0035f5039c41409d992aa | 524 | cpp | C++ | Easing/PolygonEquation.cpp | DiegoSLTS/EasingFunctions | 38951f19a3069c9ac20aee482dfe1f8c0953408d | [
"MIT"
] | null | null | null | Easing/PolygonEquation.cpp | DiegoSLTS/EasingFunctions | 38951f19a3069c9ac20aee482dfe1f8c0953408d | [
"MIT"
] | null | null | null | Easing/PolygonEquation.cpp | DiegoSLTS/EasingFunctions | 38951f19a3069c9ac20aee482dfe1f8c0953408d | [
"MIT"
] | null | null | null | #include "PolygonEquation.h"
#include <math.h>
PolygonEquation::PolygonEquation(int grade) : grade(grade) {}
PolygonEquation::~PolygonEquation() {}
double PolygonEquation::Evaluate() const {
float temp = GetTime();
switch(this->ease) {
case EasingType::IN:
return pow(temp, grade);
case EasingType::OUT:
retur... | 22.782609 | 61 | 0.652672 | DiegoSLTS |
58ef2e13fb05b3a6506e4dd43ff1752365fc36cd | 1,271 | cc | C++ | src/base/tests/Exception_unittest.cc | plantree/Slack | 469fff18792a6d4d20c409f0331e3c93117c5ddf | [
"MIT"
] | 2 | 2019-07-15T08:34:38.000Z | 2019-08-07T12:27:23.000Z | src/base/tests/Exception_unittest.cc | plantree/Slack | 469fff18792a6d4d20c409f0331e3c93117c5ddf | [
"MIT"
] | null | null | null | src/base/tests/Exception_unittest.cc | plantree/Slack | 469fff18792a6d4d20c409f0331e3c93117c5ddf | [
"MIT"
] | null | null | null | /*
* @Author: py.wang
* @Date: 2019-06-06 17:19:02
* @Last Modified by: py.wang
* @Last Modified time: 2019-06-06 18:34:59
*/
#include "src/base/Exception.h"
#include "src/base/CurrentThread.h"
#include <vector>
#include <string>
#include <functional>
#include <stdio.h>
class Bar
{
public:
void test(std:... | 19.859375 | 100 | 0.543666 | plantree |
58f34ecd609e36c29fc423ba6154ebfa776c18a3 | 1,282 | cpp | C++ | Example/serialization_13/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/serialization_13/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/serialization_13/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/export.hpp>
#include <iostream>
#include <sstream>
std::stringstream ss;
class animal
{
public:
animal() = default;
animal(int legs) : legs_{legs} {}
virtual int legs() const { return legs_; }
v... | 18.314286 | 73 | 0.664587 | KwangjoJeong |
58f5e87c88fc029411d0193072ec526dc6ec06db | 894 | cpp | C++ | numeric/modulo.cpp | ankushkhanna1998/competitive-programming | 97c772f3bc029dcd9f573f2e3d616ba068eab8b5 | [
"MIT"
] | 3 | 2020-06-02T07:39:24.000Z | 2020-09-02T14:04:52.000Z | numeric/modulo.cpp | ankushkhanna1998/competitive-programming | 97c772f3bc029dcd9f573f2e3d616ba068eab8b5 | [
"MIT"
] | null | null | null | numeric/modulo.cpp | ankushkhanna1998/competitive-programming | 97c772f3bc029dcd9f573f2e3d616ba068eab8b5 | [
"MIT"
] | null | null | null | const int64_t MOD = static_cast<int64_t>(1e9 + 7);
inline int64_t add(int64_t a, const int64_t b, const int64_t M = MOD) {
return ((a += b) >= M ? a - M : a);
}
inline int64_t sub(int64_t a, const int64_t b, const int64_t M = MOD) {
return ((a -= b) < 0 ? a + M : a);
}
inline int64_t mul(const int64_t a, con... | 23.526316 | 77 | 0.506711 | ankushkhanna1998 |
58f696aa6218731be901e86298876227be963492 | 17,565 | cpp | C++ | src/Physics/Vehicle.cpp | NotCamelCase/Grad-Project-Arcade-Sim | 4574cf1a11878829c75dec1aaa9834d40221cdbc | [
"MIT"
] | 7 | 2015-01-12T21:46:22.000Z | 2021-11-19T19:15:37.000Z | src/Physics/Vehicle.cpp | NotCamelCase/Grad-Project-Arcade-Sim | 4574cf1a11878829c75dec1aaa9834d40221cdbc | [
"MIT"
] | null | null | null | src/Physics/Vehicle.cpp | NotCamelCase/Grad-Project-Arcade-Sim | 4574cf1a11878829c75dec1aaa9834d40221cdbc | [
"MIT"
] | 3 | 2015-07-28T08:32:19.000Z | 2021-02-19T11:16:48.000Z | /*
The MIT License (MIT)
Copyright (c) 2015 Tayfun Kayhan
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... | 28.842365 | 167 | 0.728779 | NotCamelCase |
58fa12fcd221fec27eca3ae7f5202804d6b04b2a | 3,172 | hpp | C++ | src/libblockchain/transaction_sponsoring.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | 4 | 2019-11-20T17:27:57.000Z | 2021-01-05T09:46:20.000Z | src/libblockchain/transaction_sponsoring.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | null | null | null | src/libblockchain/transaction_sponsoring.hpp | publiqnet/publiq.pp | 0865494edaa22ea2e3238aaf01cdb9e457535933 | [
"MIT"
] | 2 | 2019-01-10T14:10:26.000Z | 2020-03-01T05:55:05.000Z | #pragma once
#include "global.hpp"
#include "message.hpp"
#include "node.hpp"
#include "state.hpp"
#include <string>
#include <vector>
namespace publiqpp
{
// sponsoring stuff
std::vector<std::string> action_owners(BlockchainMessage::SponsorContentUnit const& sponsor_content_unit);
std::vector<std::string> action_pa... | 48.8 | 125 | 0.728247 | publiqnet |
58fbaa3a1b2267f5ad48045b5966096805c1ac18 | 601 | cpp | C++ | 999_Practice_Set_2/Day_012/074_pair_sum_problem.cpp | Binamra7/Data-Structure-and-Algorithms | 1232fdeba041c678b4c651f6a702d50b344ed4cc | [
"MIT"
] | 126 | 2019-12-22T17:49:08.000Z | 2021-12-14T18:45:51.000Z | 999_Practice_Set_2/Day_012/074_pair_sum_problem.cpp | Divyanshi-03/Data-Structure-and-Algorithms | 21b02dd312105411621242731106411defbd6ddb | [
"MIT"
] | 7 | 2019-12-25T18:03:41.000Z | 2021-02-20T06:25:27.000Z | 999_Practice_Set_2/Day_012/074_pair_sum_problem.cpp | Divyanshi-03/Data-Structure-and-Algorithms | 21b02dd312105411621242731106411defbd6ddb | [
"MIT"
] | 54 | 2019-12-26T06:28:39.000Z | 2022-02-01T05:04:43.000Z | // Check if there exists two elements in an array such that their sum is equal to given k.
#include <iostream>
using namespace std;
bool pairSum(int arr[], int n, int k)
{
for(int i=0; i<n-1; i++)
{
for(int j=i+1; j<n; j++)
{
if(arr[i] + arr[j] == k)
{
... | 15.410256 | 90 | 0.432612 | Binamra7 |
58fff242aa8aa3db3d4faceb6c54aa4fac6556f2 | 966 | hpp | C++ | utils/resource_loader.hpp | UnnamedOrange/osu-kps | b893d1fb75f001ac6bb5951182590dc0096a1e0e | [
"MIT"
] | 21 | 2021-02-15T17:10:50.000Z | 2022-01-23T05:02:12.000Z | utils/resource_loader.hpp | UnnamedOrange/osu-kps | b893d1fb75f001ac6bb5951182590dc0096a1e0e | [
"MIT"
] | 4 | 2021-02-15T16:23:52.000Z | 2021-12-30T14:04:01.000Z | utils/resource_loader.hpp | UnnamedOrange/osu-kps | b893d1fb75f001ac6bb5951182590dc0096a1e0e | [
"MIT"
] | 2 | 2021-07-23T02:29:11.000Z | 2021-09-05T04:09:55.000Z | // Copyright (c) UnnamedOrange. Licensed under the MIT Licence.
// See the LICENSE file in the repository root for full licence text.
#pragma once
#include <vector>
#include <string_view>
#include <stdexcept>
#include <Windows.h>
#undef min
#undef max
class resource_loader
{
public:
static auto load(const wchar_t*... | 26.833333 | 73 | 0.736025 | UnnamedOrange |
4502d349f350bfdd903d9c815ad937a7a387f148 | 1,547 | cpp | C++ | src/source/zombye/gameplay/states/play_state.cpp | kasoki/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | 1 | 2019-05-29T01:37:44.000Z | 2019-05-29T01:37:44.000Z | src/source/zombye/gameplay/states/play_state.cpp | atomicptr/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | 1 | 2015-08-31T22:44:27.000Z | 2015-08-31T22:44:27.000Z | src/source/zombye/gameplay/states/play_state.cpp | kasoki/project-zombye | 30d3dc0b7e6a929162fa0ddfb77dd10bc9bf4f05 | [
"MIT"
] | null | null | null | #include <cmath>
#include <glm/gtc/matrix_transform.hpp>
#include <SDL2/SDL.h>
#include <zombye/core/game.hpp>
#include <zombye/ecs/entity_manager.hpp>
#include <zombye/gameplay/states/play_state.hpp>
#include <zombye/input/input_manager.hpp>
#include <zombye/input/input_system.hpp>
#include <zombye/input/joystick.hp... | 31.571429 | 77 | 0.740142 | kasoki |
4505cdbd048ad5797de47fbbefcacffec70c99d9 | 3,815 | cpp | C++ | tests/test_queries.cpp | sinkarl/asp_db | 8dc5b40257b438872a689f5894416ae80db7d7ca | [
"MIT"
] | null | null | null | tests/test_queries.cpp | sinkarl/asp_db | 8dc5b40257b438872a689f5894416ae80db7d7ca | [
"MIT"
] | null | null | null | tests/test_queries.cpp | sinkarl/asp_db | 8dc5b40257b438872a689f5894416ae80db7d7ca | [
"MIT"
] | null | null | null | #include "asp_db/db_queries_setup.h"
#include "asp_db/db_queries_setup_select.h"
#include "asp_db/db_tables.h"
#include "asp_db/db_where.h"
#include "library_tables.h"
#include "gtest/gtest.h"
#include <filesystem>
#include <iostream>
#include <numeric>
#include <assert.h>
LibraryDBTables ldb;
TEST(db_where_tree, ... | 37.772277 | 80 | 0.630406 | sinkarl |
450634b23083e5eadbd140eda6fe4f83cbf77aaf | 4,278 | cpp | C++ | Lab3/src/Utils.cpp | Farmijo/VA | 3a62ef2e3e2f30d97f3dad55a5e0aa8a118d8c1b | [
"MIT"
] | null | null | null | Lab3/src/Utils.cpp | Farmijo/VA | 3a62ef2e3e2f30d97f3dad55a5e0aa8a118d8c1b | [
"MIT"
] | null | null | null | Lab3/src/Utils.cpp | Farmijo/VA | 3a62ef2e3e2f30d97f3dad55a5e0aa8a118d8c1b | [
"MIT"
] | null | null | null | #include "Utils.h"
#include <sstream>
#ifdef WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
#include "includes.h"
#include "Application.h"
#include "Camera.h"
long getTime()
{
#ifdef WIN32
return GetTickCount();
#else
struct timeval tv;
gettimeofday( &tv, NULL );
return (int)( tv.tv_sec * 1000 +... | 21.826531 | 119 | 0.625993 | Farmijo |
4508cb48c16844eb379ebe2492f4d32313d48d1b | 9,011 | cpp | C++ | src/BldRecons/DualContouring/HistGrid.cpp | liuxinren/UrbanReconstruction | 079d9b0c9089aa9cdb15d31d76155e50a5e72f00 | [
"MIT"
] | 94 | 2017-07-20T05:32:07.000Z | 2022-03-02T03:38:54.000Z | src/BldRecons/DualContouring/HistGrid.cpp | GucciPrada/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 3 | 2017-09-12T00:07:05.000Z | 2020-03-08T21:12:36.000Z | src/BldRecons/DualContouring/HistGrid.cpp | GucciPrada/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 38 | 2017-07-25T06:00:52.000Z | 2022-03-19T10:01:06.000Z | #include "StdAfx.h"
#include "HistGrid.h"
#include "Grid\StreamingGrid.h"
#include "Streaming\SPBReader.h"
#include "nr\nr.h"
#include "nr\nrutil.h"
CHistGrid::CHistGrid(void)
{
m_nGridNumber[ 0 ] = m_nGridNumber[ 1 ] = 0;
}
CHistGrid::~CHistGrid(void)
{
}
void CHistGrid::Init( char filename[], char histfilename[] ... | 31.506993 | 177 | 0.577183 | liuxinren |
4509d3c0968ba0bba96943f5365a8882fdc6d99b | 11,188 | cpp | C++ | view/src/dialogs/create_strategy_dialog.cpp | Rapprise/b2s-trader | ac8a3c2221d15c4df8df63842d20dafd6801e535 | [
"BSD-2-Clause"
] | 21 | 2020-06-07T20:34:47.000Z | 2021-08-10T20:19:59.000Z | view/src/dialogs/create_strategy_dialog.cpp | Rapprise/b2s-trader | ac8a3c2221d15c4df8df63842d20dafd6801e535 | [
"BSD-2-Clause"
] | null | null | null | view/src/dialogs/create_strategy_dialog.cpp | Rapprise/b2s-trader | ac8a3c2221d15c4df8df63842d20dafd6801e535 | [
"BSD-2-Clause"
] | 4 | 2020-07-13T10:19:44.000Z | 2022-03-11T12:15:43.000Z | /*
* Copyright (c) 2020, Rapprise.
* 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
* list of condition... | 44.752 | 99 | 0.734448 | Rapprise |
4510d4458aa07eb868185955251224615ae7b445 | 2,034 | cpp | C++ | sandbox-app/source/camera_controller.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | sandbox-app/source/camera_controller.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | sandbox-app/source/camera_controller.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#include "camera_controller.hpp"
CameraController::CameraController(float aspectRatio) :
m_aspectRatio(aspectRatio),
m_zoomLevel(1.f),
m_camera(-aspectRatio*2.f, aspectRatio*2.f, -2.f, 2.f),
m_cameraPosition(0.f, 0.f... | 29.478261 | 103 | 0.666175 | Kostu96 |
451303bf0bff68686094fb1683725c2755543be8 | 11,453 | hpp | C++ | include/snowflake/ecs/component_storage.hpp | robclu/glow | 4f14f4c43ecb29cbb8a75aad50cc3b776519a7a2 | [
"MIT"
] | 1 | 2021-12-08T09:23:55.000Z | 2021-12-08T09:23:55.000Z | include/snowflake/ecs/component_storage.hpp | robclu/snowflake | 4f14f4c43ecb29cbb8a75aad50cc3b776519a7a2 | [
"MIT"
] | null | null | null | include/snowflake/ecs/component_storage.hpp | robclu/snowflake | 4f14f4c43ecb29cbb8a75aad50cc3b776519a7a2 | [
"MIT"
] | null | null | null | //==--- snowflake/ecs/component_storage.hpp ---------------- -*- C++ -*- ---==//
//
// Snowflake
//
// Copyright (c) 2020 Rob Clucas
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//==--------------------------------------------------... | 33.985163 | 80 | 0.660788 | robclu |
931d42551fb51e265e6a60e0d6555d15cbe5056b | 467 | cpp | C++ | minggu-2/Modul_3/tugas-2(3.5).cpp | samuelbudi03/praktikum_algoritma_1 | cf359ec3ad84399f90d3e39207e7d1feb95b4fa9 | [
"MIT"
] | null | null | null | minggu-2/Modul_3/tugas-2(3.5).cpp | samuelbudi03/praktikum_algoritma_1 | cf359ec3ad84399f90d3e39207e7d1feb95b4fa9 | [
"MIT"
] | null | null | null | minggu-2/Modul_3/tugas-2(3.5).cpp | samuelbudi03/praktikum_algoritma_1 | cf359ec3ad84399f90d3e39207e7d1feb95b4fa9 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int x,y,z,m,n;
x = 9 + 4; /* menghitung 9+4 */
y = 9 -4; /* menghitung 9-4 */
z = 9 * 4; /* menghitung 9*4 */
m = 9 / 4; /* menghitung 9/4 */
m2 = 9.0 / 4.0; /* menghitung 9/4 */
n = 9 % 4; /* menghitung 9%4 */
clrscr();
cout << "Nilai dari 9 + 4 = "<< x;
cout << "\n... | 24.578947 | 37 | 0.513919 | samuelbudi03 |
931eecdd1ec71cbf5845a36e58701fff3e6b2dfd | 4,704 | cpp | C++ | Pattern - 2 Pointers/Pattern - 2 or 3 or 4 Sum Related Problems/3 Sum.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Pattern - 2 Pointers/Pattern - 2 or 3 or 4 Sum Related Problems/3 Sum.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Pattern - 2 Pointers/Pattern - 2 or 3 or 4 Sum Related Problems/3 Sum.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Problem: https://leetcode.com/problems/3sum/
// Ref: https://www.youtube.com/watch?v=onLoX6Nhvmg
// https://www.geeksforgeeks.org/find-triplets-array-whose-sum-equal-zero/
/****************************************************************************************************/
// METHOD - 1 (Using Hashing)
#incl... | 22.188679 | 103 | 0.533376 | Edith-3000 |
932a0d7c5d3ce6e1df92a4b6caeaa2412214f2a8 | 3,676 | cpp | C++ | src/Column.cpp | raincheque/qwelk | e78ee0ccf7a7f1af91d823d0563b0af360933237 | [
"MIT"
] | 25 | 2017-11-22T13:48:05.000Z | 2021-12-29T05:49:01.000Z | src/Column.cpp | netboy3/qwelk-vcvrack-plugins | e78ee0ccf7a7f1af91d823d0563b0af360933237 | [
"MIT"
] | 12 | 2017-11-20T20:45:27.000Z | 2021-12-08T20:35:06.000Z | src/Column.cpp | netboy3/qwelk-vcvrack-plugins | e78ee0ccf7a7f1af91d823d0563b0af360933237 | [
"MIT"
] | 4 | 2018-01-11T21:02:12.000Z | 2019-09-29T12:32:50.000Z | #include "qwelk.hpp"
#define CHANNELS 4
struct ModuleColumn : Module {
enum ParamIds {
PARAM_MASTER,
PARAM_AVG,
PARAM_WEIGHTED,
NUM_PARAMS
};
enum InputIds {
IN_SIG,
IN_UPSTREAM = IN_SIG + CHANNELS,
NUM_INPUTS = IN_UPSTREAM + CHANNELS
};
enum... | 29.886179 | 113 | 0.613983 | raincheque |
932e4ac2c56cf29fda71c25188d7f8d7af643ffe | 4,501 | hpp | C++ | samplecode/MarkedObjects/Source/MarkedObjectsPreferences.hpp | btempleton/sg-aics3mac-plugins | e5332b11ef8ce03a7e842c9df3fe1ce9145c0b67 | [
"Intel",
"Unlicense"
] | 1 | 2021-10-09T18:23:44.000Z | 2021-10-09T18:23:44.000Z | samplecode/MarkedObjects/Source/MarkedObjectsPreferences.hpp | btempleton/sg-aics3mac-plugins | e5332b11ef8ce03a7e842c9df3fe1ce9145c0b67 | [
"Intel",
"Unlicense"
] | null | null | null | samplecode/MarkedObjects/Source/MarkedObjectsPreferences.hpp | btempleton/sg-aics3mac-plugins | e5332b11ef8ce03a7e842c9df3fe1ce9145c0b67 | [
"Intel",
"Unlicense"
] | null | null | null | //========================================================================================
//
// $File: //ai/ai13/devtech/sdk/public/samplecode/MarkedObjects/Source/MarkedObjectsPreferences.hpp $
//
// $Revision: #3 $
//
// Copyright 1987-2007 Adobe Systems Incorporated. All rights reserved.
//
// NOTICE: Adob... | 36.008 | 122 | 0.723617 | btempleton |
932f2c75359c94129abe01a1e6953136184ff83b | 2,907 | cpp | C++ | trie/src/node.cpp | Arghnews/wordsearch_solver | cf25db64ca3d1facd9191aad075654f124f0d580 | [
"MIT"
] | null | null | null | trie/src/node.cpp | Arghnews/wordsearch_solver | cf25db64ca3d1facd9191aad075654f124f0d580 | [
"MIT"
] | null | null | null | trie/src/node.cpp | Arghnews/wordsearch_solver | cf25db64ca3d1facd9191aad075654f124f0d580 | [
"MIT"
] | null | null | null | #include "wordsearch_solver/trie/node.hpp"
#include <algorithm>
#include <fmt/core.h>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <bitset>
#include <cassert>
#include <cstddef>
#include <limits>
#include <memory>
#include <ostream>
#include <string_view>
namespace trie {
const Node* search(const Node&... | 28.223301 | 78 | 0.631579 | Arghnews |
932f521504f0babcf1b37c09669703f82bee9981 | 8,154 | hpp | C++ | include/RootMotion/FinalIK/IKExecutionOrder.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/IKExecutionOrder.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/IKExecutionOrder.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Mo... | 50.645963 | 226 | 0.719034 | marksteward |
93304097224c1c3b55474e6a5746b7978d452391 | 4,853 | cpp | C++ | Core/logging/src/Logger.cpp | ChewyGumball/bengine | a993471b1b135bcfe848de25ec539d93ed97445f | [
"MIT"
] | null | null | null | Core/logging/src/Logger.cpp | ChewyGumball/bengine | a993471b1b135bcfe848de25ec539d93ed97445f | [
"MIT"
] | null | null | null | Core/logging/src/Logger.cpp | ChewyGumball/bengine | a993471b1b135bcfe848de25ec539d93ed97445f | [
"MIT"
] | null | null | null | #include "Core/Logging/Logger.h"
#define SPDLOG_FMT_EXTERNAL
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <thread>
// We don't use the Core contaienrs here so that we don't have any external dependencies, allowing this library to be
// used by any other library.
#include <unorder... | 30.522013 | 117 | 0.650319 | ChewyGumball |
9330ecd5ab8c292836145ebf50f8b8ea1be465e9 | 2,406 | hpp | C++ | libs/GFX/ResourceManager.hpp | KillianG/R-Type | e3fd801ae58fcea49ac75c400ec0a2837cb0da2e | [
"MIT"
] | 1 | 2019-08-14T12:31:50.000Z | 2019-08-14T12:31:50.000Z | libs/GFX/ResourceManager.hpp | KillianG/R-Type | e3fd801ae58fcea49ac75c400ec0a2837cb0da2e | [
"MIT"
] | null | null | null | libs/GFX/ResourceManager.hpp | KillianG/R-Type | e3fd801ae58fcea49ac75c400ec0a2837cb0da2e | [
"MIT"
] | null | null | null | #include <utility>
//
// Created by nhyarlathotep on 14/11/18.
//
#pragma once
#include <memory>
#include <iostream>
#include <type_traits>
#include <unordered_map>
#include <experimental/filesystem>
#include <SFML/Audio/Music.hpp>
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics/Texture.hpp>
#include "../L... | 29.341463 | 106 | 0.674564 | KillianG |
933122662c79f3b7e7e0b405a5d2253f8845e3d0 | 1,053 | hpp | C++ | organism.hpp | piero0/myNEAT | b2c5a4e98274d20fd18765a624ad5f8347ffaaa1 | [
"MIT"
] | null | null | null | organism.hpp | piero0/myNEAT | b2c5a4e98274d20fd18765a624ad5f8347ffaaa1 | [
"MIT"
] | 1 | 2018-02-14T20:48:18.000Z | 2018-03-18T15:04:03.000Z | organism.hpp | piero0/myNEAT | b2c5a4e98274d20fd18765a624ad5f8347ffaaa1 | [
"MIT"
] | null | null | null | #pragma once
#include "genome.hpp"
namespace pneat {
class Organism {
Genome g;
float fitness;
float thresh;
float normFitness;
public:
Organism(const Genome& g);
Genome& getGenome() { return g; }
void setFitness(float fitn... | 28.459459 | 76 | 0.509972 | piero0 |
9338808403d50b9feeba727c2b0840807a4d42be | 16,112 | hpp | C++ | src/rynx/math/vector.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/math/vector.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/math/vector.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | #pragma once
#ifdef _WIN32
#include <intrin.h>
#endif
#include <rynx/system/assert.hpp>
#include <rynx/math/math.hpp>
#include <rynx/tech/serialization.hpp>
#include <cinttypes>
#include <cmath>
#include <limits>
#include <string>
#pragma warning (disable : 4201) // language extension used, anonymous structs
#defi... | 35.964286 | 152 | 0.614883 | Apodus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.