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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a1ce651354cfc114fa6b1272a1f86c2a084181d | 1,546 | hpp | C++ | project/3D_Scenegraph/GameObject.hpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 47 | 2017-07-27T11:12:05.000Z | 2021-07-02T19:45:23.000Z | project/3D_Scenegraph/GameObject.hpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 7 | 2018-06-07T13:59:46.000Z | 2020-10-08T12:14:58.000Z | project/3D_Scenegraph/GameObject.hpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 19 | 2017-09-04T10:54:24.000Z | 2020-11-03T17:55:10.000Z | //
// Created by Morten Nobel Jørgensen on 2018-11-06.
//
#pragma once
#include <string>
#include <vector>
#include <memory>
#include "Scene.hpp"
#include "CollisionHandler.hpp"
class Component;
class GameObject {
public:
~GameObject();
template<typename C>
std::shared_ptr<C> addComponent();
bool... | 22.735294 | 67 | 0.666235 | mhooITU |
9a1f9e399c1bc9dce4f19655f48c3d6c49c6efb3 | 3,409 | cpp | C++ | fboss/agent/hw/bcm/BcmQosPolicy.cpp | bkoray/fboss | 31ba4fab15b61ee36b7a117a80c7d55bb4dc70c0 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/bcm/BcmQosPolicy.cpp | bkoray/fboss | 31ba4fab15b61ee36b7a117a80c7d55bb4dc70c0 | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/bcm/BcmQosPolicy.cpp | bkoray/fboss | 31ba4fab15b61ee36b7a117a80c7d55bb4dc70c0 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-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.
*
*/
#inc... | 32.466667 | 80 | 0.703725 | bkoray |
9a2051a4e7548f505c7d1df09abd1766aa2ae0fd | 3,986 | cpp | C++ | TS_PROJECT_L8_7/Source/calculator_client.cpp | travesom/TS_projekt_l8_7 | ca366e213f2fb6b536644580e3df0dacd3c4f812 | [
"MIT"
] | null | null | null | TS_PROJECT_L8_7/Source/calculator_client.cpp | travesom/TS_projekt_l8_7 | ca366e213f2fb6b536644580e3df0dacd3c4f812 | [
"MIT"
] | null | null | null | TS_PROJECT_L8_7/Source/calculator_client.cpp | travesom/TS_projekt_l8_7 | ca366e213f2fb6b536644580e3df0dacd3c4f812 | [
"MIT"
] | 1 | 2021-07-10T08:26:48.000Z | 2021-07-10T08:26:48.000Z | #include "calculator_client.hpp"
#include "utils.hpp"
using namespace std;
calculator_client::calculator_client() : udp_node()
{
}
calculator_client::calculator_client(const string& address, const unsigned short& port): udp_node(address, port)
{
print_messages_ = false;
print_errors_ = false;
set_receive_timeout... | 29.525926 | 135 | 0.77145 | travesom |
9a2176ccb0a1c98a9558a5eae793b1f7e8d49ba1 | 638 | cpp | C++ | gui/QT/option/lineedit_ui.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 370 | 2016-10-05T15:19:00.000Z | 2022-03-29T22:12:28.000Z | gui/QT/option/lineedit_ui.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 165 | 2016-11-21T13:01:36.000Z | 2022-03-31T20:01:20.000Z | gui/QT/option/lineedit_ui.cpp | thpryrchn/UltraGrid | f9fdd96ff73e05888d26c40aaaccdf4eb5fe7289 | [
"BSD-3-Clause"
] | 63 | 2016-10-13T12:07:45.000Z | 2022-03-23T19:46:10.000Z | #include "lineedit_ui.hpp"
LineEditUi::LineEditUi(QLineEdit *line, Settings *settings, const std::string &opt) :
TextOptUi(settings, opt),
line(line)
{
updateUiState();
connectSignals();
}
void LineEditUi::connectSignals(){
connect(line, &QLineEdit::textEdited, this, &LineEditUi::textEdited);
}
void LineEditUi... | 19.9375 | 86 | 0.744514 | thpryrchn |
9a273e45c2d3d30c4ce54b36fb8996f375ab11c2 | 14,085 | cpp | C++ | examples/cerberus/service.cpp | phlip9/hadesmem | 59e13a92c05918b8c842141fd5cac1ed390cd79e | [
"MIT"
] | 19 | 2017-10-19T23:13:11.000Z | 2022-03-29T11:37:26.000Z | examples/cerberus/service.cpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | null | null | null | examples/cerberus/service.cpp | Bia10/hadesmem | b91bce37611d0e939a55d9490c49780f9f0f3bff | [
"MIT"
] | 10 | 2018-04-04T07:55:16.000Z | 2021-11-23T20:22:43.000Z | // Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#include "service.hpp"
#include <memory>
#include <windows.h>
#include <winnt.h>
#include <winternl.h>
#include <hadesmem/config.hpp>
#include <hadesmem/detail/last_error_preserver.hpp>
#include <hadesmem/detail/trace.hpp>
#incl... | 31.510067 | 80 | 0.579411 | phlip9 |
9a2bf878b010c382e8d2f380e031b66810388788 | 2,698 | cpp | C++ | Plugins/UHLevelEditor/Source/UHLevelEditor/Private/UI/UHLevelEditorDetails.cpp | travmygit/UnrealHammer | 707df28f0039877e3cab329648bfd7a741f358ad | [
"MIT"
] | 1 | 2021-10-20T11:23:22.000Z | 2021-10-20T11:23:22.000Z | Plugins/UHLevelEditor/Source/UHLevelEditor/Private/UI/UHLevelEditorDetails.cpp | travmygit/UnrealHammer | 707df28f0039877e3cab329648bfd7a741f358ad | [
"MIT"
] | null | null | null | Plugins/UHLevelEditor/Source/UHLevelEditor/Private/UI/UHLevelEditorDetails.cpp | travmygit/UnrealHammer | 707df28f0039877e3cab329648bfd7a741f358ad | [
"MIT"
] | 1 | 2022-03-18T04:13:12.000Z | 2022-03-18T04:13:12.000Z | // Copyright https://github.com/travmygit/UnrealHammer. All Rights Reserved.
#include "UI/UHLevelEditorDetails.h"
#include "UHLevelEditorEdMode.h"
#include "UI/UHLevelEditorUISettings.h"
#include "UI/UHLevelEditorEdModeToolkit.h"
#include "UI/UHLevelEditorDetailCustomization_NewLandscape.h"
#include "EditorModeManage... | 37.472222 | 151 | 0.820608 | travmygit |
9a32544d64135438dedd9c2dd1c18b26b7e1499a | 407 | cpp | C++ | _site/Competitive Programming/Hackerearth/Odd-Even Subarrays.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Hackerearth/Odd-Even Subarrays.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Hackerearth/Odd-Even Subarrays.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll n, tmp;
cin>>n;
ll e=0, o=0;
map<ll,ll> mp;
mp[0] = 1;
ll res = 0;
for (int i = 0; i < n; ++i)
{
cin>>tmp;
if(tmp%2 == 0) e++;
... | 13.566667 | 34 | 0.474201 | anujkyadav07 |
9a32defdb130636d6a330bcec91352f71e45fe13 | 1,616 | cpp | C++ | src/raytracing/apps/chapter_4/4.2.cpp | rishabh-battulwar/rtweekendcpp | 3e4b7fcd791cfa72788ebb55cc29e8a93db662fa | [
"Unlicense"
] | null | null | null | src/raytracing/apps/chapter_4/4.2.cpp | rishabh-battulwar/rtweekendcpp | 3e4b7fcd791cfa72788ebb55cc29e8a93db662fa | [
"Unlicense"
] | null | null | null | src/raytracing/apps/chapter_4/4.2.cpp | rishabh-battulwar/rtweekendcpp | 3e4b7fcd791cfa72788ebb55cc29e8a93db662fa | [
"Unlicense"
] | null | null | null | #include "raytracing/color.h"
#include "raytracing/math/ray.h"
#include <iostream>
using namespace raytracing;
namespace {
color ray_color(const ray& r) {
const vec3 unit_direction = unit_vector(r.direction());
const auto t = 0.5*(unit_direction.y() + 1.0);
return (1.0-t) * color(1.0, 1.0, 1.0) + t * co... | 32.979592 | 101 | 0.615718 | rishabh-battulwar |
9a33605e4e167dae5d2379b0f540179dbb1abe22 | 873 | cpp | C++ | LaTeX/queries_data_structures/down_segment_tree/codes/2d_segment_tree_find.cpp | Peltorator/peltorator-cp-book | db95b2288ab3d8e36c6a6c858959a01928418198 | [
"Apache-2.0"
] | 12 | 2021-08-14T19:14:51.000Z | 2022-02-16T15:31:55.000Z | LaTeX/queries_data_structures/down_segment_tree/codes/2d_segment_tree_find.cpp | Peltorator/peltorator-cp-book | db95b2288ab3d8e36c6a6c858959a01928418198 | [
"Apache-2.0"
] | 1 | 2021-10-03T13:04:11.000Z | 2021-10-04T06:56:09.000Z | LaTeX/queries_data_structures/down_segment_tree/codes/2d_segment_tree_find.cpp | Peltorator/peltorator-cp-book | db95b2288ab3d8e36c6a6c858959a01928418198 | [
"Apache-2.0"
] | null | null | null | \begin{code}
long long find_sum(int lx, int rx, int ly, int ry) { // [lx, rx) * [ly, ry)
lx += n;
rx += n;
long long ans = 0;
while (lx < rx) {
int curly = ly + m;
int curry = ry + m;
while (curly < curry) {
if (curly & 1) {
if (lx & 1) {
... | 24.25 | 75 | 0.293242 | Peltorator |
9a35ff0e941fc2e6d8b765a22c55b531413a747c | 4,176 | cpp | C++ | Siv3D/src/Siv3D/Physics2D/P2DistanceJoint.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/src/Siv3D/Physics2D/P2DistanceJoint.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Physics2D/P2DistanceJoint.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/2DShapes.hpp>
# include <Siv3... | 19.885714 | 246 | 0.672653 | tas9n |
9a383627a1a900a87ed7f0bfe09a25a7be6a5faf | 3,292 | cpp | C++ | examples/formvalidation.cpp | e4z9/sodium-cxx-examples | 585acd43a3bc2f474b8977c2dd295f9b47af9635 | [
"BSD-3-Clause"
] | 3 | 2019-10-01T14:38:06.000Z | 2021-09-05T18:37:01.000Z | examples/formvalidation.cpp | e4z9/sodium-cxx-examples | 585acd43a3bc2f474b8977c2dd295f9b47af9635 | [
"BSD-3-Clause"
] | null | null | null | examples/formvalidation.cpp | e4z9/sodium-cxx-examples | 585acd43a3bc2f474b8977c2dd295f9b47af9635 | [
"BSD-3-Clause"
] | null | null | null | #include "sqspinner.h"
#include <sqlabel.h>
#include <sqlineedit.h>
#include <sqpushbutton.h>
#include <sodium/sodium.h>
#include <QApplication>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QWidget>
using namespace sodium;
// Chapter 3.2 Listing 3.2
int main(int argc, char *argv[])
{
QApplication ap... | 35.397849 | 102 | 0.490279 | e4z9 |
9a397d94bbd8e1b6c36fcab657d6243c212374b2 | 2,151 | cpp | C++ | src/Timestamp.cpp | whitearsenic/Kdd99-Feature-Extractor-Prebuilt | a6128bdbc81a1fbfd9bdf76586e70c562b59fa3a | [
"MIT"
] | 99 | 2017-03-07T08:56:15.000Z | 2022-03-29T05:29:43.000Z | src/Timestamp.cpp | cainsmile/kdd99_feature_extractor | f3d40e3f8df78a3ed7ccdbfabb1b763e9e4d87c0 | [
"MIT"
] | 19 | 2017-04-08T08:22:44.000Z | 2021-11-09T03:05:28.000Z | src/Timestamp.cpp | cainsmile/kdd99_feature_extractor | f3d40e3f8df78a3ed7ccdbfabb1b763e9e4d87c0 | [
"MIT"
] | 46 | 2016-07-07T15:49:49.000Z | 2022-03-15T21:57:28.000Z | #include "Timestamp.h"
namespace FeatureExtractor {
Timestamp::Timestamp()
{
ts.tv_sec = 0;
ts.tv_usec = 0;
}
Timestamp::Timestamp(const struct timeval &ts)
{
this->ts = ts;
}
Timestamp::Timestamp(int64_t usecs)
{
ts.tv_sec = (long) (usecs / 1000000);
ts.tv_usec = (long) (usecs % 1000000);
}
Tim... | 19.733945 | 66 | 0.661088 | whitearsenic |
9a3cb8a149cd751d869155a6813fdacdf8be3a47 | 5,271 | cpp | C++ | tools/macpo/libmacpo/aligncheck.cpp | roystgnr/perfexpert | a03b13db9ac83e992e1c5cc3b6e45e52c266fe30 | [
"BSD-4-Clause-UC"
] | 28 | 2015-05-05T15:54:25.000Z | 2021-09-27T16:23:36.000Z | tools/macpo/libmacpo/aligncheck.cpp | roystgnr/perfexpert | a03b13db9ac83e992e1c5cc3b6e45e52c266fe30 | [
"BSD-4-Clause-UC"
] | 15 | 2015-10-07T20:52:05.000Z | 2018-04-18T16:08:41.000Z | tools/macpo/libmacpo/aligncheck.cpp | roystgnr/perfexpert | a03b13db9ac83e992e1c5cc3b6e45e52c266fe30 | [
"BSD-4-Clause-UC"
] | 11 | 2015-01-23T15:41:40.000Z | 2020-08-18T03:53:19.000Z | /*
* Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* This file is part of PerfExpert.
*
* PerfExpert is free software: you can redistribute it and/or modify it under
* the terms of the The University of Texas at Austin Resea... | 33.150943 | 80 | 0.642952 | roystgnr |
9a4ba0c3c815a38b599a9acb622a6ef58bd9f771 | 1,224 | cpp | C++ | 2021-1/KTLT/Lab3/B3.cpp | VMT01/HUST | c5f4fc226ae6fd8f0eb604407ad03790f2129a59 | [
"MIT"
] | null | null | null | 2021-1/KTLT/Lab3/B3.cpp | VMT01/HUST | c5f4fc226ae6fd8f0eb604407ad03790f2129a59 | [
"MIT"
] | null | null | null | 2021-1/KTLT/Lab3/B3.cpp | VMT01/HUST | c5f4fc226ae6fd8f0eb604407ad03790f2129a59 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define MAX 100
int n, c[MAX][MAX]; //# số thành phố và ma trận chi phí
int cmin = INT_MAX; //# chi phí đi lại nhỏ nhất giữa hai thành phố khác nhau
int best = INT_MAX; //# tổng chi phí nhỏ nhất cần tìm, ban đầu đặt bằng giá trị vô cùng lớn INT_MAX = 2^31-1
int curr; //#... | 24.979592 | 108 | 0.446895 | VMT01 |
9a53627af2e4cc1378bab5525c8e68ecbbca2f3c | 419 | hpp | C++ | INDIGO/SDK/IClientThinkable.hpp | TsuuN/TsuuN | db26336ad1f9ce95b2c37b118aaac8fb3077193f | [
"MIT"
] | 56 | 2019-09-24T06:48:30.000Z | 2022-03-03T14:48:16.000Z | INDIGO/SDK/IClientThinkable.hpp | TsuuN/TsuuN | db26336ad1f9ce95b2c37b118aaac8fb3077193f | [
"MIT"
] | 91 | 2018-05-09T11:58:05.000Z | 2019-07-28T21:48:26.000Z | INDIGO/SDK/IClientThinkable.hpp | TsuuN/TsuuN | db26336ad1f9ce95b2c37b118aaac8fb3077193f | [
"MIT"
] | 42 | 2018-05-12T20:00:47.000Z | 2019-08-22T10:46:58.000Z | #pragma once
namespace SDK
{
class IClientUnknown;
class CClientThinkHandlePtr;
typedef CClientThinkHandlePtr* ClientThinkHandle_t;
class IClientThinkable {
public:
virtual IClientUnknown* GetIClientUnknown() = 0;
virtual void ClientThink() = 0;
virtual ClientThinkHandle_t GetThinkHandle() = 0;
virtu... | 24.647059 | 67 | 0.749403 | TsuuN |
9a5457fa4dbc54e526c072f845136cdddf7698b4 | 54 | cpp | C++ | Crop source/Gas_Ex_Species_param.cpp | ARS-CSGCL-DT/MAIZSIM | 87384982398595f711874a5f4a2b53ee3257b2cd | [
"Unlicense"
] | 9 | 2015-11-10T05:23:35.000Z | 2021-01-27T20:02:03.000Z | Crop source/Gas_Ex_Species_param.cpp | ARS-CSGCL-DT/MAIZSIM | 87384982398595f711874a5f4a2b53ee3257b2cd | [
"Unlicense"
] | 6 | 2016-02-11T18:22:32.000Z | 2022-03-30T19:42:00.000Z | Crop source/Gas_Ex_Species_param.cpp | ARS-CSGCL-DT/MAIZSIM | 87384982398595f711874a5f4a2b53ee3257b2cd | [
"Unlicense"
] | 7 | 2015-11-10T05:23:36.000Z | 2022-02-17T06:39:40.000Z | #include "stdafx.h"
#include "gas_ex_species_param.h"
| 18 | 33 | 0.777778 | ARS-CSGCL-DT |
9a564a1dcdf6d9d72bc7f53b0f6a9fbcb66753b7 | 455 | hpp | C++ | Genesis/include/Genesis/Debug/Assert.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | 2 | 2020-01-22T05:57:12.000Z | 2020-04-06T01:15:30.000Z | Genesis/include/Genesis/Debug/Assert.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | null | null | null | Genesis/include/Genesis/Debug/Assert.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | null | null | null | #pragma once
#include "Genesis/Debug/Log.hpp"
#define GENESIS_ASSERT_ENABLED
#ifdef GENESIS_ASSERT_ENABLED
#define GENESIS_ENGINE_ASSERT(x, e) if(!(x)) { GENESIS_ENGINE_ERROR(e); GENESIS_ENGINE_ERROR("Assert {}:{}", __FILE__, __LINE__); abort(); };
#define GENESIS_ASSERT(x, e) if(!(x)) { GENESIS_ERROR(e); GENESIS_ER... | 28.4375 | 141 | 0.723077 | JoshuaMasci |
9a5cefaaf5e781c5d490f56e6fe9dc49462b70f9 | 574 | cpp | C++ | cpp-dojo-lessons/cpp_while_loop.cpp | Elkinmt19/cpp-dojo | 3262aa05c06df4e64e90759c80fb97611974006f | [
"MIT"
] | 4 | 2021-05-17T19:49:47.000Z | 2021-09-21T20:15:36.000Z | cpp-dojo-lessons/cpp_while_loop.cpp | Elkinmt19/cpp-dojo | 3262aa05c06df4e64e90759c80fb97611974006f | [
"MIT"
] | null | null | null | cpp-dojo-lessons/cpp_while_loop.cpp | Elkinmt19/cpp-dojo | 3262aa05c06df4e64e90759c80fb97611974006f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
/**
* This is a stript to start working with while loops in c++
*/
int index = 1;
// Basic structure of while loops, it checks the condition before executing the code
while(index <= 5)
{
cout << index << endl;
index++... | 19.793103 | 88 | 0.531359 | Elkinmt19 |
9a618418bb74f6f16e1194128a3548f83e4f29c9 | 3,711 | hh | C++ | vm/vm/main/cached/Float-implem-decl-after.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 379 | 2015-01-02T20:27:33.000Z | 2022-03-26T23:18:17.000Z | vm/vm/main/cached/Float-implem-decl-after.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 81 | 2015-01-08T13:18:52.000Z | 2021-12-21T14:02:21.000Z | vm/vm/main/cached/Float-implem-decl-after.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 75 | 2015-01-06T09:08:20.000Z | 2021-12-17T09:40:18.000Z | template <>
class TypeInfoOf<Float>: public TypeInfo {
static constexpr UUID uuid() {
return UUID();
}
public:
TypeInfoOf() : TypeInfo("Float", uuid(), (! ::mozart::MemWord::requiresExternalMemory<double>()), false, false, sbValue, 0) {}
static const TypeInfoOf<Float>* const instance() {
return &RawTy... | 21.085227 | 128 | 0.710321 | Ahzed11 |
9a6476ead6c3b92c74effe37cfa9c76c584fd285 | 10,589 | cc | C++ | hackt_docker/hackt/src/Object/lang/directive_source.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/lang/directive_source.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/lang/directive_source.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/lang/directive_source.cc"
$Id: directive_source.cc,v 1.11 2011/02/02 23:54:22 fang Exp $
*/
#define ENABLE_STACKTRACE 0
#include <iostream>
#include <algorithm>
#include <iterator>
#include <set>
#include <functional>
#include "Object/lang/directive_source.hh"
#include "Object/lang/PRS_litera... | 28.312834 | 80 | 0.587213 | broken-wheel |
9a659d75dee097aea76d0bb47878360e4c5fb8db | 303 | cpp | C++ | src/main.cpp | Ybalrid/gl_framework | 4cf57b63306e0d95040ee7d7b5c710be0efb59de | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 3 | 2019-09-16T01:42:10.000Z | 2021-11-28T02:58:42.000Z | src/main.cpp | Ybalrid/gl_framework | 4cf57b63306e0d95040ee7d7b5c710be0efb59de | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/main.cpp | Ybalrid/gl_framework | 4cf57b63306e0d95040ee7d7b5c710be0efb59de | [
"MIT",
"Zlib",
"BSD-3-Clause"
] | 2 | 2020-01-28T23:33:00.000Z | 2021-11-08T06:14:41.000Z | //Just start an application
#include "application.hpp"
#include "build_config.hpp"
int main(int argc, char* argv[])
{
application::resource_paks.emplace_back("./res.zip");
application::resource_paks.emplace_back("./unpacked_res/");
application a(argc, argv, GAME_NAME);
a.run();
return 0;
}
| 21.642857 | 61 | 0.716172 | Ybalrid |
9a674ad05563ab07159f2a6023f8c40b602e9892 | 75 | cc | C++ | Part-I/Ch07/7.3.3/7.31.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | 1 | 2021-09-23T13:13:12.000Z | 2021-09-23T13:13:12.000Z | Part-I/Ch07/7.3.3/7.31.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | Part-I/Ch07/7.3.3/7.31.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | class X;
class Y;
class X
{
Y *pointer;
};
class Y
{
X object;
}; | 6.25 | 15 | 0.52 | RingZEROtlf |
9a6bc5261de009923da5b406367bc0ee71bdeb9b | 530 | hpp | C++ | Sources/Editor/AssetFiles/RawFileFilter.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/Editor/AssetFiles/RawFileFilter.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/Editor/AssetFiles/RawFileFilter.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include <FileUtils/AssetFiles/AFileFilter.hpp>
namespace AGE
{
class RawFileFilter : public FileUtils::AFileFilter
{
public:
RawFileFilter() = default;
~RawFileFilter() = default;
virtual bool isValidFile(const std::tr2::sys::path &path);
virtual std::shared_ptr<FileUtils::AssetFile> ageCrea... | 27.894737 | 132 | 0.743396 | Another-Game-Engine |
9a6d4013ab790d4893443f77379299955c15a59a | 746 | cpp | C++ | oomact/src/model/SetActivator.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 21 | 2017-06-19T13:57:59.000Z | 2022-02-20T02:40:58.000Z | oomact/src/model/SetActivator.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 19 | 2017-05-10T09:11:25.000Z | 2019-03-11T16:41:36.000Z | oomact/src/model/SetActivator.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 11 | 2017-06-19T13:39:12.000Z | 2022-03-16T19:53:27.000Z | #include <aslam/calibration/calibrator/SetActivator.h>
#include <ostream>
namespace aslam {
namespace calibration {
bool SetActivator::setActive(const Activatable & a, bool active) {
if(auto used = dynamic_cast<const Used*>(&a)){
active &= used->isUsed();
}
if(active){
activeSet.insert(&a);
}else{
... | 19.128205 | 66 | 0.620643 | OnyxBlack7 |
9a6e301c331b5e10d2ccf71ac38fe573c8432da8 | 15,886 | cpp | C++ | src/sdk/time/time.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | 2 | 2021-10-21T12:25:23.000Z | 2021-10-22T00:38:35.000Z | src/sdk/time/time.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | null | null | null | src/sdk/time/time.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | null | null | null | /**
* Copyright © 2021 <wotsen>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the “Software”), to deal in the Software without
* restriction, including without limitation the rights to use, copy, modify, merge, publish,
* ... | 26.609715 | 113 | 0.507302 | southbear-club |
9a76e8b372f69e9a46abd4f5bb0b3e4338652a05 | 28,763 | cpp | C++ | src/caffe/layers/ocl_cr_hwcn_layer.cpp | dicecco1/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 134 | 2016-10-05T22:10:19.000Z | 2022-03-26T07:13:55.000Z | src/caffe/layers/ocl_cr_hwcn_layer.cpp | honorpeter/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 14 | 2016-11-20T21:16:38.000Z | 2020-04-14T04:58:32.000Z | src/caffe/layers/ocl_cr_hwcn_layer.cpp | honorpeter/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 58 | 2016-10-03T01:23:47.000Z | 2021-11-24T12:17:30.000Z | #include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/ocl_cr_hwcn_layer.hpp"
namespace caffe {
#ifdef USE_OCL
template <typename Dtype>
void OCLCRHWCNLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
// Configure the kernel size, padding, stride, ... | 35.819427 | 80 | 0.639189 | dicecco1 |
9a79173b2c9db4d8fe7e2971810befbb8b504874 | 9,178 | cpp | C++ | src/gfx/opengl/mg_render_target.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | src/gfx/opengl/mg_render_target.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | src/gfx/opengl/mg_render_target.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | //**************************************************************************************************
// This file is part of Mg Engine. Copyright (c) 2020, Magnus Bergsten.
// Mg Engine is made available under the terms of the 3-Clause BSD License.
// See LICENSE.txt in the project's root directory.
//*****************... | 32.778571 | 100 | 0.613641 | Magnutic |
9a7e813e57fa85b759da4261bb315b436dd57201 | 1,855 | cpp | C++ | src/SaiCryptoModule/crypto/converter.cpp | saiset-co/saiCypto | bc423ca2bb466351d17e104701e280e020606a18 | [
"MIT"
] | null | null | null | src/SaiCryptoModule/crypto/converter.cpp | saiset-co/saiCypto | bc423ca2bb466351d17e104701e280e020606a18 | [
"MIT"
] | null | null | null | src/SaiCryptoModule/crypto/converter.cpp | saiset-co/saiCypto | bc423ca2bb466351d17e104701e280e020606a18 | [
"MIT"
] | null | null | null | //
// <converter.cpp>
// <app/saicryptomodule>
//
// Created on <24 Jan 2018>.
// Copyright © 2018 Webmakom. All rights reserved.
#include "converter.h"
#include <stdio.h>
#include <iostream>
Converter::Converter()
{
}
string Converter::integerToString(CryptoPP::Integer integer)
{
ostringstream ret;
re... | 23.782051 | 85 | 0.626415 | saiset-co |
9a864f5b696360d6151edc4560aac463e92d308a | 8,258 | cpp | C++ | src/cppext/_cpp.cpp | mdklatt/cppdemo-python | 2081c20971638711bea9584b2a170e82b025fc35 | [
"MIT"
] | null | null | null | src/cppext/_cpp.cpp | mdklatt/cppdemo-python | 2081c20971638711bea9584b2a170e82b025fc35 | [
"MIT"
] | null | null | null | src/cppext/_cpp.cpp | mdklatt/cppdemo-python | 2081c20971638711bea9584b2a170e82b025fc35 | [
"MIT"
] | null | null | null | /// A sample C++11 extension module for Python.
///
/// This produces a self-contained module that is usable by Python code via a
/// regular `import` statement. A single module cannot contain both Python and
/// C/C++ code, but both types of modules can coexist in the same parent
/// package. If a Python module and an... | 36.378855 | 82 | 0.626665 | mdklatt |
9a87aa2fe53b31f6cdf8718317aadf19a86f9d5a | 763 | cpp | C++ | inf_by2/inf_by2/task15812_2.cpp | albarkan/school.tests | 07861b884f1bc6ccf852ac60074afaeeccf40ef2 | [
"Apache-2.0"
] | null | null | null | inf_by2/inf_by2/task15812_2.cpp | albarkan/school.tests | 07861b884f1bc6ccf852ac60074afaeeccf40ef2 | [
"Apache-2.0"
] | null | null | null | inf_by2/inf_by2/task15812_2.cpp | albarkan/school.tests | 07861b884f1bc6ccf852ac60074afaeeccf40ef2 | [
"Apache-2.0"
] | null | null | null | /* Дан набор из N целых положительных чисел. Из этих чисел формируются все возможные пары (парой считаются два элемента, которые находятся на разных местах в наборе, порядок чисел в паре не учитывается), в каждой паре вычисляются сумма и произведение элементов. Необходимо определить количество пар, у которых сумма нечё... | 28.259259 | 356 | 0.543906 | albarkan |
9a88ba8644f5ab8b2c4ec72f4d612d489e3df8c9 | 5,647 | cpp | C++ | src/PhysicalDevice.cpp | vazgriz/VulkanWrapper | c56ad7c21435d92bf341103712852e1d0ee98fdf | [
"MIT"
] | 8 | 2019-05-23T04:18:26.000Z | 2021-10-05T10:36:00.000Z | src/PhysicalDevice.cpp | vazgriz/VulkanWrapper | c56ad7c21435d92bf341103712852e1d0ee98fdf | [
"MIT"
] | null | null | null | src/PhysicalDevice.cpp | vazgriz/VulkanWrapper | c56ad7c21435d92bf341103712852e1d0ee98fdf | [
"MIT"
] | 1 | 2020-11-25T15:19:30.000Z | 2020-11-25T15:19:30.000Z | #include "VulkanWrapper/PhysicalDevice.h"
using namespace vk;
void PhysicalDeviceFeatures2::marshal() const {
m_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2;
features11.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES;
features12.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1... | 33.613095 | 137 | 0.752612 | vazgriz |
8942df019d7531101eaf278fe2dd3da8356f2412 | 519 | cpp | C++ | CLIHelperTests/group_extract_field.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | 1 | 2022-01-10T23:47:40.000Z | 2022-01-10T23:47:40.000Z | CLIHelperTests/group_extract_field.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | CLIHelperTests/group_extract_field.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | #include "CppUTest/TestHarness.h"
#include "../cli.hpp"
#include <string>
#include <fstream>
#include <vector>
using std::string;
using std::vector;
TEST_GROUP(grabField)
{
};
TEST(grabField, Returns_Nth_Field)
{
const string testInput(" abe bat spamhouse action ");
vector<string> expected... | 12.975 | 64 | 0.587669 | BitCruncher0 |
894303088dbee93dce92be87beb12c8a97ae30c6 | 3,039 | cpp | C++ | SRC/zif.cpp | chatscriptnlp/chatscript | 5f96c874d4cb398474135b06af6ea1eda47d25bb | [
"MIT"
] | 266 | 2018-04-16T19:47:58.000Z | 2022-03-29T18:52:35.000Z | SRC/zif.cpp | chatscriptnlp/chatscript | 5f96c874d4cb398474135b06af6ea1eda47d25bb | [
"MIT"
] | 53 | 2018-04-14T07:34:38.000Z | 2022-03-05T09:57:12.000Z | SRC/zif.cpp | chatscriptnlp/chatscript | 5f96c874d4cb398474135b06af6ea1eda47d25bb | [
"MIT"
] | 120 | 2018-04-16T19:49:06.000Z | 2022-03-29T13:47:44.000Z | /** Implementation for gzip-like compression and uncompression interface */
#ifndef DISCARD_TEXT_COMPRESSION
#include <stdio.h>
#include "zlib/zlib.h"
#include "zif.h"
static char zif_error_buf[132];
const char* zif_error(void)
{
return zif_error_buf;
}
int zif_compress(struct zif_t* zs)
{
if (zs == null... | 29.504854 | 76 | 0.572228 | chatscriptnlp |
8945f159aa6a830db874c40986945df607335f92 | 8,077 | cpp | C++ | libraries/VAL/src/FuncAnalysis.cpp | teyssieuman/VAL | 15320d3988bb6ed633babe6c7bd663a97c23a393 | [
"BSD-3-Clause"
] | 65 | 2015-01-08T09:58:01.000Z | 2021-11-16T11:08:31.000Z | libraries/VAL/src/FuncAnalysis.cpp | teyssieuman/VAL | 15320d3988bb6ed633babe6c7bd663a97c23a393 | [
"BSD-3-Clause"
] | 48 | 2015-01-19T01:07:16.000Z | 2021-07-29T18:26:54.000Z | libraries/VAL/src/FuncAnalysis.cpp | teyssieuman/VAL | 15320d3988bb6ed633babe6c7bd663a97c23a393 | [
"BSD-3-Clause"
] | 45 | 2016-01-08T01:57:01.000Z | 2022-03-07T04:00:36.000Z | // Copyright 2019 - University of Strathclyde, King's College London and Schlumberger Ltd
// This source code is licensed under the BSD license found in the LICENSE file in the root directory of this source tree.
#include "FuncAnalysis.h"
#include <algorithm>
#include <set>
using std::find;
using std::set;
namespace ... | 30.026022 | 122 | 0.515043 | teyssieuman |
8949f90f14660af42c0d8b1b3af02bd8cc087309 | 11,947 | cpp | C++ | waterbox/ares64/ares/thirdparty/mame/lib/util/delegate.cpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | waterbox/ares64/ares/thirdparty/mame/lib/util/delegate.cpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | waterbox/ares64/ares/thirdparty/mame/lib/util/delegate.cpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | // license:BSD-3-Clause
// copyright-holders:Aaron Giles,Vas Crabb
/***************************************************************************
delegate.cpp
Templates and classes to enable delegates for callbacks.
***************************************************************************/
#include "delegat... | 41.482639 | 185 | 0.607517 | Fortranm |
894c09eafdcbb078fe8dca7b716b36ba297168e4 | 316 | cpp | C++ | viz/SpatioTemporalMLSMap.cpp | maltewi/envire-envire_maps | 43841ea36cd47c48a79a86eaadd272d2554de289 | [
"BSD-2-Clause"
] | null | null | null | viz/SpatioTemporalMLSMap.cpp | maltewi/envire-envire_maps | 43841ea36cd47c48a79a86eaadd272d2554de289 | [
"BSD-2-Clause"
] | null | null | null | viz/SpatioTemporalMLSMap.cpp | maltewi/envire-envire_maps | 43841ea36cd47c48a79a86eaadd272d2554de289 | [
"BSD-2-Clause"
] | null | null | null | #include "SpatioTemporalMLSMap.hpp"
#include <envire_core/items/SpatioTemporal.hpp>
using namespace vizkit3d;
SpatioTemporalMLSMap::SpatioTemporalMLSMap()
{
}
SpatioTemporalMLSMap::~SpatioTemporalMLSMap()
{
}
//Macro that makes this plugin loadable in ruby, this is optional.
VizkitQtPlugin(SpatioTemporalMLSMap) | 21.066667 | 66 | 0.816456 | maltewi |
895c0ae3d6d0284e3e567043930f3d13b63e9562 | 685 | cpp | C++ | Camera.cpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | Camera.cpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | Camera.cpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | //
// Created by Peter Zdankin on 26.03.18.
//
#include "Camera.hpp"
void Camera::setEyePoint(Point _eyePoint){
this->eyePoint = _eyePoint;
}
void Camera::setViewDir(Direction _viewDir){
this->viewDir = _viewDir;
}
void Camera::setUpDir(Direction _upDir){
this->upDir = _upDir;
}
void Camera::setFoV(double... | 20.147059 | 47 | 0.691971 | TheSovietStorm |
895f81bd44d352b907925a12c6dd0fd7ffd17c3a | 1,107 | cpp | C++ | worker/tasks/VDTaskLoadResource.cpp | VoiDjinn/vdcore | e3375f2415e28d63a8b2f92a31259984c9cb2fb0 | [
"MIT"
] | null | null | null | worker/tasks/VDTaskLoadResource.cpp | VoiDjinn/vdcore | e3375f2415e28d63a8b2f92a31259984c9cb2fb0 | [
"MIT"
] | null | null | null | worker/tasks/VDTaskLoadResource.cpp | VoiDjinn/vdcore | e3375f2415e28d63a8b2f92a31259984c9cb2fb0 | [
"MIT"
] | null | null | null | #include "VDTaskLoadResource.h"
#include "core/error_macros.h"
VDCwTaskLoadResource::VDCwTaskLoadResource() {}
void VDCwTaskLoadResource::_bind_methods(){
ClassDB::bind_method(D_METHOD("set_resource_path", "path"), &VDCwTaskLoadResource::set_resource_path);
}
void VDCwTaskLoadResource::init()
{
this->loader = Res... | 23.553191 | 103 | 0.732611 | VoiDjinn |
895ff9d25b20e2cfc14ff63f761a9ee3613b38b6 | 3,172 | cpp | C++ | 10-atmega-clock-firmware/eeprom.cpp | bdmihai/atmega | 8343bc92b72b7e4fb7232a3f0bb4971faaa20a73 | [
"MIT"
] | null | null | null | 10-atmega-clock-firmware/eeprom.cpp | bdmihai/atmega | 8343bc92b72b7e4fb7232a3f0bb4971faaa20a73 | [
"MIT"
] | null | null | null | 10-atmega-clock-firmware/eeprom.cpp | bdmihai/atmega | 8343bc92b72b7e4fb7232a3f0bb4971faaa20a73 | [
"MIT"
] | null | null | null | /*_____________________________________________________________________________
│ |
│ COPYRIGHT (C) 2020 Mihai Baneu |
│ |
... | 41.194805 | 79 | 0.568096 | bdmihai |
8963c7aaf65108efee6ef5d827261394a42281cd | 465 | hpp | C++ | source/lucio/render/vertex.hpp | joserossini/lucioengine | 643941cf29e23824af28e60df62bb1aaa0f6a7f1 | [
"MIT"
] | null | null | null | source/lucio/render/vertex.hpp | joserossini/lucioengine | 643941cf29e23824af28e60df62bb1aaa0f6a7f1 | [
"MIT"
] | null | null | null | source/lucio/render/vertex.hpp | joserossini/lucioengine | 643941cf29e23824af28e60df62bb1aaa0f6a7f1 | [
"MIT"
] | null | null | null | #pragma once
#include "glm/glm.hpp"
namespace lucio{
struct vertex_t{
glm::fvec3 _position;
glm::fvec3 _color;
glm::fvec2 _texture;
glm::fvec3 _normal;
vertex_t(
glm::fvec3 position = { 0.0f, 0.0f, 0.0f },
glm::fvec3 color = { 0.0f, 0.0f, 0.0f },
glm::fvec2 texture = { 0.0f, 0.0f },... | 17.884615 | 46 | 0.582796 | joserossini |
896ac03eb5dcc8281399851dea417fb741b405bc | 23,366 | cpp | C++ | DeepLearningToolKit/Toolkit/ML/NeuralNetwork/cArtificialNeuralNetworkAlgorithm_v2.cpp | zxyinz/DeepLearningForBlueShark | 025206aa7450b7ec86ebab9ca2bbcabe4421af91 | [
"MIT"
] | null | null | null | DeepLearningToolKit/Toolkit/ML/NeuralNetwork/cArtificialNeuralNetworkAlgorithm_v2.cpp | zxyinz/DeepLearningForBlueShark | 025206aa7450b7ec86ebab9ca2bbcabe4421af91 | [
"MIT"
] | null | null | null | DeepLearningToolKit/Toolkit/ML/NeuralNetwork/cArtificialNeuralNetworkAlgorithm_v2.cpp | zxyinz/DeepLearningForBlueShark | 025206aa7450b7ec86ebab9ca2bbcabe4421af91 | [
"MIT"
] | null | null | null | #include"cArtificialNeuralNetworkAlgorithm_v2.h"
#include"time.h"
using namespace std;
using namespace San;
using namespace San::Mathematics;
using namespace San::MachineLearning;
stNEURALNODE::stNEURALNODE()
:LinearOutput(0.0), FunctionOutput(0.0), PredictError(0.0), Delta(0.0), PrevDelta(0.0)
{
this->_CreateNode();... | 30.664042 | 227 | 0.710391 | zxyinz |
896e14ea1b809146087d05056831555915849e23 | 2,399 | cpp | C++ | Vehicle_Storage.cpp | CodingTux/CPP_Practice | 802b374546815a2d82e80949c076579ece939f92 | [
"Unlicense"
] | null | null | null | Vehicle_Storage.cpp | CodingTux/CPP_Practice | 802b374546815a2d82e80949c076579ece939f92 | [
"Unlicense"
] | null | null | null | Vehicle_Storage.cpp | CodingTux/CPP_Practice | 802b374546815a2d82e80949c076579ece939f92 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#include <fstream> //To store information
using namespace std;
/**This program is to use structures -> struct...*/
int main(){
ofstream file;
file.open("vehInfo.txt"); //Making file named as vehInfo.txt
cou... | 28.559524 | 104 | 0.402251 | CodingTux |
8976193fd2c40ac1551492900e4ef24b9b5c533d | 815 | cpp | C++ | Source/Framework/Collision/CollidableSDF.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | Source/Framework/Collision/CollidableSDF.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | Source/Framework/Collision/CollidableSDF.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | #include "Framework/Framework/Node.h"
#include "CollidableSDF.h"
namespace PhysIKA {
IMPLEMENT_CLASS_1(CollidableSDF, TDataType)
template <typename TDataType>
CollidableSDF<TDataType>::CollidableSDF()
: CollidableObject(CollidableObject::SIGNED_DISTANCE_TYPE)
, m_sdf(nullptr)
{
}
template <typename TDataTyp... | 27.166667 | 107 | 0.613497 | weikm |
8978e671179cf1fb5a7554646f0947c9ba630a27 | 391 | cpp | C++ | 10.13.3.cpp | cubhe/C_Primer_Plus | 7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77 | [
"MIT"
] | null | null | null | 10.13.3.cpp | cubhe/C_Primer_Plus | 7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77 | [
"MIT"
] | null | null | null | 10.13.3.cpp | cubhe/C_Primer_Plus | 7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
#define N 10
int select(int*num);
int main(){
int num[N] = { 1, 4, 5, 66, 85, 32, 255, 67, 342, 14, };
printf("the bigest number in num is %d", select(num));
system("pause");
return 0;
}
int select(int * num)
{
int temp=0;
for (size_t i = 0; i < N; i++)
{
if... | 17 | 58 | 0.526854 | cubhe |
897b502d146abeba25aaa93dd6b9afcb81a3a994 | 969 | cpp | C++ | Homework1/p4/p4/main.cpp | summerwish/Cpp_homework | 58bf9afb6ebdf9740a579975637a5b5005db7db4 | [
"MIT"
] | null | null | null | Homework1/p4/p4/main.cpp | summerwish/Cpp_homework | 58bf9afb6ebdf9740a579975637a5b5005db7db4 | [
"MIT"
] | null | null | null | Homework1/p4/p4/main.cpp | summerwish/Cpp_homework | 58bf9afb6ebdf9740a579975637a5b5005db7db4 | [
"MIT"
] | null | null | null | //
// main.cpp
// p4
//
// Created by Breezewish on 14-2-26.
// Copyright (c) 2014年 TJ. All rights reserved.
//
#include <iostream>
#include <string>
#include <iomanip>
typedef struct {
std::string name;
std::string mail;
int id;
} student;
int main(int argc, const char * argv[])
{
student me = {... | 23.634146 | 68 | 0.529412 | summerwish |
898143a2e3af2c6425ea2d51c0d5d8bf3d445453 | 699 | cpp | C++ | PAA/paa2.cpp | lucasviei/PAAprojects | bd617e843619323a8eb06ad5f888550ac5b6a28a | [
"MIT"
] | null | null | null | PAA/paa2.cpp | lucasviei/PAAprojects | bd617e843619323a8eb06ad5f888550ac5b6a28a | [
"MIT"
] | null | null | null | PAA/paa2.cpp | lucasviei/PAAprojects | bd617e843619323a8eb06ad5f888550ac5b6a28a | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
using namespace std;
int main() {
int n,d;
while(scanf("%d%d",&n,&d) == 2 && (n || d)){
string num;
string copia;
cin >> num;
int tamanho = 0;
int contador = 0;
for (auto i = num.begin(); i != num.end(); i++){
if (copia.empty())
{
copia.pus... | 14.87234 | 50 | 0.472103 | lucasviei |
89829ad7304925d3b82aaa6546e88cf72363b93f | 14,595 | hpp | C++ | engine/src/vulkan/module/lighting/LightingUniformHandler.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/module/lighting/LightingUniformHandler.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/module/lighting/LightingUniformHandler.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | #pragma once
#include <pch.hpp>
#include <vulkan/vulkan.h>
#include <vulkan/LogicalDevice.hpp>
#include <vulkan/geometry/BufferHelper.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <vulkan/mesh/Mesh.hpp>
#include <vulkan/scene/Scene.hpp>
#include <vulkan/uniform/UniformHandler.hpp>
#inc... | 38.007813 | 108 | 0.735731 | Velikss |
89860d0f8c065cca02caad3a74d3039ea41960a6 | 1,942 | cpp | C++ | chapter_04/ComputingAnglesOfTriangles..cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | chapter_04/ComputingAnglesOfTriangles..cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | 31 | 2021-05-14T03:37:24.000Z | 2022-03-13T17:38:32.000Z | chapter_04/ComputingAnglesOfTriangles..cpp | Kevin-Oudai/my_cpp_solutions | a0f5f533ee4825f5b2d88cacc936d80276062ca4 | [
"MIT"
] | null | null | null | // Listing 4.1 - ComputeAngles.cpp
#include <iostream>
#include <cmath>
int main()
{
// Prompt the user to enter three points
std::cout << "Enter three points: ";
double x1, y1, x2, y2, x3, y3;
std::cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;
std::cout << "Enter three points: ";
double x4, y4, x... | 34.070175 | 87 | 0.418126 | Kevin-Oudai |
898c47e8b5ab03330ea4acb139f9f50d70f5c42f | 749 | cpp | C++ | src/systems/PickUpSystem.cpp | TransNeptunianStudios/Triangulum | 7fa5e1948f1085e8d7122dd57ddd7f2efeb2739e | [
"MIT"
] | 32 | 2015-02-09T11:30:51.000Z | 2022-02-02T11:29:49.000Z | src/systems/PickUpSystem.cpp | TransNeptunianStudios/Triangulum | 7fa5e1948f1085e8d7122dd57ddd7f2efeb2739e | [
"MIT"
] | null | null | null | src/systems/PickUpSystem.cpp | TransNeptunianStudios/Triangulum | 7fa5e1948f1085e8d7122dd57ddd7f2efeb2739e | [
"MIT"
] | 7 | 2016-04-16T11:02:12.000Z | 2020-04-10T04:52:45.000Z | #include "systems/PickUpSystem.h"
#include "components/Gun.h"
#include "components/Health.h"
using namespace entityx;
PickUpSystem::PickUpSystem(EntityManager& entityManager)
: m_entityManager(entityManager)
{
}
void PickUpSystem::configure(EventManager& eventManager)
{
eventManager.subscribe<EvPickUp>(*this);
}
... | 20.243243 | 83 | 0.720961 | TransNeptunianStudios |
899049e0b0c6ca277b4153c7048ebc8033455809 | 746 | cpp | C++ | Game/Game/src/Result.cpp | ikuramikan/get_the_cats | 58cebec03454a9fda246a20cdecb84ae41724ea4 | [
"MIT"
] | 1 | 2021-02-24T12:08:30.000Z | 2021-02-24T12:08:30.000Z | Game/Game/src/Result.cpp | ikuramikan/get_the_cats | 58cebec03454a9fda246a20cdecb84ae41724ea4 | [
"MIT"
] | null | null | null | Game/Game/src/Result.cpp | ikuramikan/get_the_cats | 58cebec03454a9fda246a20cdecb84ae41724ea4 | [
"MIT"
] | null | null | null | # include "Result.hpp"
Result::Result(const InitData& init)
: IScene(init)
{
}
void Result::update()
{
cat_anime.update();
if (end_buttom.rounded(20).mouseOver())
{
transition.update(true);
}
else
{
transition.update(false);
}
if (end_buttom.leftClicked())
{
getData().game_score = 0;
changeScene(St... | 21.314286 | 113 | 0.651475 | ikuramikan |
8993554a5402507fb45cae405b62d6265ad4914e | 8,016 | hpp | C++ | framework/core/include/easysa_module.hpp | li624120638/EasySa | 5e5dc9f08570bafca1eb0c99ee81984ff1b546d9 | [
"Apache-2.0"
] | 2 | 2021-09-22T13:00:33.000Z | 2021-10-01T23:31:56.000Z | framework/core/include/easysa_module.hpp | li624120638/EasySa | 5e5dc9f08570bafca1eb0c99ee81984ff1b546d9 | [
"Apache-2.0"
] | null | null | null | framework/core/include/easysa_module.hpp | li624120638/EasySa | 5e5dc9f08570bafca1eb0c99ee81984ff1b546d9 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* A part of this source code is referenced from Nebula project.
* https://github.com/Bwar/Nebula/blob/maste... | 30.949807 | 117 | 0.692116 | li624120638 |
8994b239978a2ac20b1ab9d3ddea31aff4e04e87 | 5,915 | cpp | C++ | src/Graph.cpp | marcdraco/HotstuffChrono | c90187a3f72b465680efead86a8ec803a75c47d9 | [
"BSD-2-Clause"
] | null | null | null | src/Graph.cpp | marcdraco/HotstuffChrono | c90187a3f72b465680efead86a8ec803a75c47d9 | [
"BSD-2-Clause"
] | null | null | null | src/Graph.cpp | marcdraco/HotstuffChrono | c90187a3f72b465680efead86a8ec803a75c47d9 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright 2020, Marc Draco & Daniel Melvin
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following di... | 30.025381 | 166 | 0.631615 | marcdraco |
899b87978839b4fb2d2bb9c116d66a8bf44be74f | 840 | cpp | C++ | src/scene.cpp | Gman0064/SFML-Engine | 084a24aba6fa8698df0c2dc087d1d54d250466f0 | [
"MIT"
] | null | null | null | src/scene.cpp | Gman0064/SFML-Engine | 084a24aba6fa8698df0c2dc087d1d54d250466f0 | [
"MIT"
] | null | null | null | src/scene.cpp | Gman0064/SFML-Engine | 084a24aba6fa8698df0c2dc087d1d54d250466f0 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../include/scene.h"
#include "../include/game_object.h"
#include "../include/util.h"
#include "../include/node.h"
#include "../include/box2d/b2_world.h"
Scene::Scene() : Node(), world(gravity) {
name = "Scene-" + Util::gen_uid();
b2Vec2 gravity(0.0f, -20.0f);
world = b2Worl... | 24 | 57 | 0.557143 | Gman0064 |
899d83e17fd3622ac0ff8da0127b1ccf088b350d | 3,374 | hpp | C++ | include/System/Linq/Expressions/Interpreter/ExceptionFilter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Linq/Expressions/Interpreter/ExceptionFilter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Linq/Expressions/Interpreter/ExceptionFilter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils-met... | 46.861111 | 141 | 0.728809 | v0idp |
899fb003be14c45d372a1dd42ca14308d9486181 | 18,412 | cpp | C++ | blackbox/WorkSpaces.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 11 | 2017-06-19T14:21:15.000Z | 2020-03-04T06:43:16.000Z | blackbox/WorkSpaces.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | null | null | null | blackbox/WorkSpaces.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 3 | 2017-07-23T18:08:55.000Z | 2019-09-16T16:28:18.000Z | #include "WorkSpaces.h"
#include "WorkSpacesConfig.h"
#include "BlackBox.h"
#include <blackbox/common.h>
#include <regex>
#include <tuple>
#include "utils_window.h"
namespace bb {
// to cfg:
int notif_w = 800;
int notif_h = 400;
int notif_alpha = 128;
const int IDT_NOTIF_TIMER1 = 1;
// bbLean drawText with ou... | 25.466113 | 129 | 0.635835 | mojmir-svoboda |
89a2e980821936701d8badd1a7dc30eaffee42a9 | 5,741 | hpp | C++ | octree/Node.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | 2 | 2019-03-01T16:34:02.000Z | 2020-10-08T21:27:52.000Z | octree/Node.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | null | null | null | octree/Node.hpp | Koukan/voxomap | 104a068b4bc84f7a208460248f824dfcde49f470 | [
"MIT"
] | null | null | null | #ifndef _VOXOMAP_NODE_HPP_
#define _VOXOMAP_NODE_HPP_
#include <array>
#include <memory>
namespace voxomap
{
template <typename T_Node> class Octree;
/*! \class Node
\ingroup Octree
\brief Basic node of Octree
*/
template <typename T_Node>
class Node
{
public:
/*!
\brief Constructs Node with its... | 30.057592 | 93 | 0.550775 | Koukan |
89a336a37d68f4d85cdf1fbf09499719a1866403 | 1,410 | cpp | C++ | Love-Babbar-450-In-CPPTest/04_searching_and_sorting/19_bishu_and_soldier.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/04_searching_and_sorting/19_bishu_and_soldier.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/04_searching_and_sorting/19_bishu_and_soldier.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | /*
link: https://www.hackerearth.com/practice/algorithms/searching/binary-search/practice-problems/algorithm/bishu-and-soldiers/
*/
#include "CppUnitTest.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <unordered_set>
#include <set>
#include <unordered_map>
using namespace st... | 24.736842 | 129 | 0.434043 | harshanu11 |
89a8a7e78924ace02dca71e12a666daba40d9954 | 6,288 | cpp | C++ | Plot/MapShape/DrawShape/MapCoverImage.cpp | MJYCo-Ltd/Map | 48ccc120a3c2cd3080fb046da72c7588b1faebc0 | [
"MIT"
] | 7 | 2021-11-25T02:12:09.000Z | 2022-03-20T12:48:18.000Z | Plot/MapShape/DrawShape/MapCoverImage.cpp | MJYCo-Ltd/Map | 48ccc120a3c2cd3080fb046da72c7588b1faebc0 | [
"MIT"
] | 1 | 2022-03-25T20:47:21.000Z | 2022-03-29T02:02:44.000Z | Plot/MapShape/DrawShape/MapCoverImage.cpp | MJYCo-Ltd/Map | 48ccc120a3c2cd3080fb046da72c7588b1faebc0 | [
"MIT"
] | 2 | 2021-12-07T06:22:47.000Z | 2021-12-30T05:54:04.000Z | #include <osg/ShadeModel>
#include <osgEarth/PlaceNode>
#include <ISceneCore.h>
#include <Inner/ILoadResource.h>
#include <Inner/OsgExtern/Grid2TriangleStrip.h>
#include "MapCoverImage.h"
void CMapCoverImage::UpdateMapNode()
{
if(m_pImage.valid()) m_pImage->setMapNode(s_mapMapNode[m_pSceneGraph].get());
}
void C... | 32.75 | 145 | 0.643766 | MJYCo-Ltd |
89b38b84d60fb25c254346b3e9a32d70c4e0f619 | 1,117 | cpp | C++ | Standard Questions/Algebra/Prime numbers/Sieve of Eratosthenes/Codeforces - Nodbach Problem.cpp | Cuncis/codeWith-hacktoberfest | 9cd5059e4d90b42fa9e12ba5ec8bf3f49c9e6c63 | [
"MIT"
] | null | null | null | Standard Questions/Algebra/Prime numbers/Sieve of Eratosthenes/Codeforces - Nodbach Problem.cpp | Cuncis/codeWith-hacktoberfest | 9cd5059e4d90b42fa9e12ba5ec8bf3f49c9e6c63 | [
"MIT"
] | null | null | null | Standard Questions/Algebra/Prime numbers/Sieve of Eratosthenes/Codeforces - Nodbach Problem.cpp | Cuncis/codeWith-hacktoberfest | 9cd5059e4d90b42fa9e12ba5ec8bf3f49c9e6c63 | [
"MIT"
] | null | null | null | /*
* File: Codeforces - Nodbach Problem
* Algorithm: Sieve of Eratosthenes
* Created Date: Wednesday July 29th 2020
* Author: preetam rane
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long i,j,k;
long long n,p;
cin>>n>>k;
long long a[n+1];
for(i=0;... | 18.016129 | 41 | 0.331244 | Cuncis |
89bd5c90dc857b5e858b285905ea10a2baecfaf6 | 7,839 | cpp | C++ | examples/rendering-cube/rendering-cube.cpp | dalihub/dali-demo | cd0ea861acbc3e25dc18571de3e82db61ea85fae | [
"Apache-2.0"
] | 8 | 2016-11-18T10:26:56.000Z | 2021-05-03T10:26:30.000Z | examples/rendering-cube/rendering-cube.cpp | dalihub/dali-demo | cd0ea861acbc3e25dc18571de3e82db61ea85fae | [
"Apache-2.0"
] | 2 | 2020-07-26T11:54:24.000Z | 2021-06-06T19:37:36.000Z | examples/rendering-cube/rendering-cube.cpp | dalihub/dali-demo | cd0ea861acbc3e25dc18571de3e82db61ea85fae | [
"Apache-2.0"
] | 6 | 2019-05-24T11:59:15.000Z | 2021-05-24T07:34:39.000Z | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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... | 32.6625 | 140 | 0.639495 | dalihub |
89c023483e7360b329da5ff827b6b2e4e5e303b9 | 2,327 | cpp | C++ | lib/smooth/core/sntp/Sntp.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 283 | 2017-07-18T15:31:42.000Z | 2022-03-30T12:05:03.000Z | lib/smooth/core/sntp/Sntp.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 131 | 2017-08-23T18:49:03.000Z | 2021-11-29T08:03:21.000Z | lib/smooth/core/sntp/Sntp.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 53 | 2017-12-31T13:34:21.000Z | 2022-02-04T11:26:49.000Z | /*
Smooth - A C++ framework for embedded programming on top of Espressif's ESP-IDF
Copyright 2019 Per Malmberg (https://gitbub.com/PerMalmberg)
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
h... | 28.036145 | 90 | 0.662656 | luuvt |
89c0d116a2ee3f583b06fb0b273a325c0763b178 | 2,110 | cc | C++ | paragraph/bridging/hlo/hlo_compute_cost_analysis_test.cc | llmunguia/paragraph | 3d2a6fafa24a587f96ee2ea76c2db9a7d5ffcdf3 | [
"Apache-2.0"
] | 8 | 2020-11-17T21:38:43.000Z | 2022-03-31T14:59:48.000Z | paragraph/bridging/hlo/hlo_compute_cost_analysis_test.cc | llmunguia/paragraph | 3d2a6fafa24a587f96ee2ea76c2db9a7d5ffcdf3 | [
"Apache-2.0"
] | 12 | 2021-01-15T19:31:22.000Z | 2021-10-15T22:36:39.000Z | paragraph/bridging/hlo/hlo_compute_cost_analysis_test.cc | llmunguia/paragraph | 3d2a6fafa24a587f96ee2ea76c2db9a7d5ffcdf3 | [
"Apache-2.0"
] | 5 | 2020-12-17T05:45:55.000Z | 2021-09-13T19:18:47.000Z | /* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 42.2 | 75 | 0.716588 | llmunguia |
89c326a73dbf90ff07eb1d5b6fc1e6f9f258c473 | 2,848 | inl | C++ | inc/lak/bit_reader.inl | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | 3 | 2021-07-12T02:32:50.000Z | 2022-01-30T03:39:53.000Z | inc/lak/bit_reader.inl | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | 1 | 2020-11-03T08:57:04.000Z | 2020-11-03T09:04:41.000Z | inc/lak/bit_reader.inl | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | null | null | null | #include "lak/bit_reader.hpp"
template<lak::endian ENDIAN>
inline void lak::bit_reader<ENDIAN>::flush_bits(const uint8_t bits)
{
static_assert(ENDIAN == lak::endian::little || ENDIAN == lak::endian::big);
if constexpr (ENDIAN == lak::endian::little)
_bit_accum >>= bits;
else if constexpr (ENDIAN == lak::endian::b... | 30.297872 | 77 | 0.659761 | LAK132 |
89c37ebe66dce416a80325de33c0bd3c4f4215f3 | 30,800 | cpp | C++ | sources/bonjour/bonjourservicehelper.cpp | awawa-dev/hyperion.ng | 459aa9b81fe04bfd7a259d761a0fdff94178e10d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 2 | 2020-08-24T10:02:51.000Z | 2020-08-24T20:03:50.000Z | sources/bonjour/bonjourservicehelper.cpp | awawa-dev/hyperion.ng | 459aa9b81fe04bfd7a259d761a0fdff94178e10d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | sources/bonjour/bonjourservicehelper.cpp | awawa-dev/hyperion.ng | 459aa9b81fe04bfd7a259d761a0fdff94178e10d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | #ifdef _WIN32
#define _CRT_SECURE_NO_WARNINGS 1
#endif
#include <bonjour/bonjourrecord.h>
#include <bonjour/bonjourservicehelper.h>
#include <bonjour/bonjourserviceregister.h>
#include <bonjour/bonjourservicebrowser.h>
#include "../dependencies/bonjour/mdns.h"
#include <utils/Logger.h>
#include <HyperhdrConfig.h>
#i... | 33.261339 | 138 | 0.700195 | awawa-dev |
89c62c8343acf47a32401481e58f62abe63a2a2b | 2,983 | cxx | C++ | HLT/CALO/offline/AliHLTPHOSDigitHandler.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | HLT/CALO/offline/AliHLTPHOSDigitHandler.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | HLT/CALO/offline/AliHLTPHOSDigitHandler.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
* *
* Primary Autho... | 29.245098 | 82 | 0.577271 | AllaMaevskaya |
89c7fb4d8599dd3b396c800e6ccac12d6bdec6d8 | 20,277 | cpp | C++ | src/hasp_gui.cpp | 01kbpatel/hasp | b512526cb1525a1d9675df63c4eff701320ec88c | [
"MIT"
] | null | null | null | src/hasp_gui.cpp | 01kbpatel/hasp | b512526cb1525a1d9675df63c4eff701320ec88c | [
"MIT"
] | null | null | null | src/hasp_gui.cpp | 01kbpatel/hasp | b512526cb1525a1d9675df63c4eff701320ec88c | [
"MIT"
] | null | null | null | #include <Ticker.h>
#include "lv_conf.h"
#include "lvgl.h"
#include "lv_fs_if.h"
#include "TFT_eSPI.h"
#include "lv_zifont.h"
#include "hasp_log.h"
#include "hasp_debug.h"
#include "hasp_config.h"
#include "hasp_dispatch.h"
#include "hasp_gui.h"
#include "hasp.h"
#if HASP_USE_PNGDECODE != 0
#include "png_decoder.h... | 30.676248 | 116 | 0.583222 | 01kbpatel |
89c8cd8a9622c9368f06b3edbb60a351f1a87551 | 1,906 | hpp | C++ | atcoder/segment_map.hpp | habara-k/ac-library | c48e576430c335d7037fa88e9fa5f6a61858e68a | [
"Unlicense"
] | null | null | null | atcoder/segment_map.hpp | habara-k/ac-library | c48e576430c335d7037fa88e9fa5f6a61858e68a | [
"Unlicense"
] | null | null | null | atcoder/segment_map.hpp | habara-k/ac-library | c48e576430c335d7037fa88e9fa5f6a61858e68a | [
"Unlicense"
] | null | null | null | #ifndef ATCODER_SEGMENT_MAP_HPP
#define ATCODER_SEGMENT_MAP_HPP 1
#include <map>
namespace atcoder {
// https://satanic0258.github.io/snippets/data-structure/SegmentMap.html
// #### attention! : [l, r] ( include r, not [l, r) )
class SegmentMap : public std::map<signed, signed> {
private:
bool flagToMergeAdjace... | 31.766667 | 85 | 0.551417 | habara-k |
89cb05e0eabeaf0e68934c430cc6dd16dae3e1db | 1,329 | cpp | C++ | apps/tsp/proto/assfire/api/v1/tsp/translators/TspRoutingSettingsTranslator.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/tsp/proto/assfire/api/v1/tsp/translators/TspRoutingSettingsTranslator.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/tsp/proto/assfire/api/v1/tsp/translators/TspRoutingSettingsTranslator.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | #include "TspRoutingSettingsTranslator.hpp"
#include "assfire/api/v1/router/translators/RouterEngineTypeTranslator.hpp"
#include "assfire/api/v1/router/translators/RouteProviderSettingsTranslator.hpp"
#include "assfire/api/v1/router/translators/RoutingProfileTranslator.hpp"
namespace assfire::api::v1::tsp {
using ... | 57.782609 | 159 | 0.785553 | Eaglegor |
89ccb73cbb5c92c2889700840188f797a37e0651 | 1,495 | cpp | C++ | 0378-Convert Binary Search Tree to Doubly Linked List/0378-Convert Binary Search Tree to Doubly Linked List.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0301-0400/0378-Convert Binary Search Tree to Doubly Linked List/0378-Convert Binary Search Tree to Doubly Linked List.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0301-0400/0378-Convert Binary Search Tree to Doubly Linked List/0378-Convert Binary Search Tree to Doubly Linked List.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | /**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
* Definition of Doubly-ListNode
* class DoublyListNode {
* public:
* int val;
* Doubl... | 23.359375 | 66 | 0.420736 | nmdis1999 |
89d6edaefaf461ff24a7dc954fec01bf58c24d9a | 1,749 | cpp | C++ | CK3ToEU4Tests/CK3WorldTests/FlagTests/FlagTests.cpp | Idhrendur/CK3toEU4 | 25137130f14d78ade8962dfc87ff9c4fc237973d | [
"MIT"
] | 21 | 2020-08-13T02:52:43.000Z | 2021-11-26T05:25:24.000Z | CK3ToEU4Tests/CK3WorldTests/FlagTests/FlagTests.cpp | PheonixScale9094/CK3toEU4 | fcf891880ec6cc5cbafbb4d249b5c9f6528f9fd0 | [
"MIT"
] | 50 | 2020-09-02T16:55:06.000Z | 2022-03-13T07:13:15.000Z | CK3ToEU4Tests/CK3WorldTests/FlagTests/FlagTests.cpp | PheonixScale9094/CK3toEU4 | fcf891880ec6cc5cbafbb4d249b5c9f6528f9fd0 | [
"MIT"
] | 24 | 2020-08-08T23:48:02.000Z | 2022-02-28T11:36:59.000Z | #include "../../CK3toEU4/Source/CK3World/Flags/Flags.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(CK3World_FlagsTests, FlagsDefaultToBlank)
{
std::stringstream input;
const CK3::Flags flags(input);
ASSERT_TRUE(flags.getFlags().empty());
}
TEST(CK3World_FlagsTests, UnbundledFlagsCanBeLoaded)
{
std::strings... | 24.291667 | 55 | 0.61578 | Idhrendur |
89d9aa86c727c37f5cd1976a2ba6fbc529465c31 | 78 | cpp | C++ | src/constexpr-float-array.cpp | zzlc/cxx11tests | d471b3f8b96548c762be6b7e410abe56a57811ae | [
"MIT"
] | 48 | 2015-01-06T20:50:45.000Z | 2021-02-15T02:48:32.000Z | src/constexpr-float-array.cpp | zzlc/cxx11tests | d471b3f8b96548c762be6b7e410abe56a57811ae | [
"MIT"
] | 3 | 2016-01-19T15:02:19.000Z | 2019-04-29T08:51:13.000Z | src/constexpr-float-array.cpp | zzlc/cxx11tests | d471b3f8b96548c762be6b7e410abe56a57811ae | [
"MIT"
] | 24 | 2015-02-13T17:40:04.000Z | 2019-12-03T06:59:03.000Z | // Define a constexpr float array
constexpr float array[] = {0.1, 0.2, 0.3};
| 19.5 | 42 | 0.653846 | zzlc |
89e786511194198b68c115c3fb55612d037c81a3 | 592 | cpp | C++ | plugins/d3d9/src/state/convert/light/cutoff_angle.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/src/state/convert/light/cutoff_angle.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/src/state/convert/light/cutoff_angle.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#include <sge/d3d9/d3dinclude.hpp>
#include <sge/d3d9/state/convert/light/cutoff_angle.hpp>
#includ... | 34.823529 | 93 | 0.716216 | cpreh |
88538d26087e4f99c08fb5c8d6bb5e21e72b64d1 | 2,300 | hpp | C++ | CoreLib/Stopwatch.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 5 | 2015-10-28T07:05:27.000Z | 2021-09-29T12:14:17.000Z | CoreLib/Stopwatch.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | null | null | null | CoreLib/Stopwatch.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 2 | 2015-10-24T18:24:38.000Z | 2019-02-02T05:06:48.000Z | /**
* @file
* @author Mohammad S. Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2016 Mohammad S. Babaei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | 25 | 80 | 0.691304 | NuLL3rr0r |
88558df42d94374fa029f966ee7c81d6d0983391 | 3,947 | cpp | C++ | Code/Game/Score.cpp | adamenkov/jet-story | f095b24007796e739a764a0cd886c520bc3a78dd | [
"MIT"
] | 5 | 2017-10-16T14:45:41.000Z | 2021-07-29T05:02:50.000Z | Code/Game/Score.cpp | adamenkov/jet-story | f095b24007796e739a764a0cd886c520bc3a78dd | [
"MIT"
] | 40 | 2016-05-05T14:11:53.000Z | 2022-02-26T10:24:38.000Z | Code/Game/Score.cpp | adamenkov/jet-story | f095b24007796e739a764a0cd886c520bc3a78dd | [
"MIT"
] | 1 | 2018-05-10T05:55:34.000Z | 2018-05-10T05:55:34.000Z | #include "Score.h"
#include <cassert>
#include <iomanip>
#include <iterator>
#include <sstream>
#include <string>
#include "../Shared/Engine.h"
#include "../Shared/Game.h"
#include "Player.h"
#include "Settings.h"
#include "Sounds.h"
Score::Score()
{
m_BestScores[100000] = "TRC";
m_BestScores[ 50000... | 25.62987 | 140 | 0.661768 | adamenkov |
8858e9166c6266bf6a9ed7e8cefad2f1b23c1f3a | 5,482 | cpp | C++ | src/replica/disk_cleaner.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 149 | 2017-10-16T03:24:58.000Z | 2022-03-25T02:29:13.000Z | src/replica/disk_cleaner.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 297 | 2017-10-19T03:23:34.000Z | 2022-03-17T08:00:12.000Z | src/replica/disk_cleaner.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 63 | 2017-10-19T01:55:27.000Z | 2022-03-09T11:09:00.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 42.169231 | 98 | 0.656512 | acelyc111 |
8860d3b6874cc2c81e14ed8213acf754ee7400f5 | 17,057 | hpp | C++ | include/cascade/service.hpp | equ-0/cascade | 993797e3ea43727fe2f9b0b9b0b7125de3d8c08a | [
"BSD-3-Clause"
] | null | null | null | include/cascade/service.hpp | equ-0/cascade | 993797e3ea43727fe2f9b0b9b0b7125de3d8c08a | [
"BSD-3-Clause"
] | null | null | null | include/cascade/service.hpp | equ-0/cascade | 993797e3ea43727fe2f9b0b9b0b7125de3d8c08a | [
"BSD-3-Clause"
] | 2 | 2020-11-11T04:04:17.000Z | 2021-01-28T07:08:41.000Z | #pragma once
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <typeinfo>
#include <tuple>
#include <derecho/utils/time.h>
#include <nlohmann/json.hpp>
#include "cascade.hpp"
using json = nlohmann::json;
/**
* The cascade service templates
*
* Type neutral templates components go here. Since th... | 44.769029 | 174 | 0.682535 | equ-0 |
8861982399569e552647550eb8cb330655966e75 | 1,036 | cpp | C++ | src/const.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 7 | 2016-12-19T21:13:41.000Z | 2021-03-19T11:14:29.000Z | src/const.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 1 | 2017-06-17T12:14:08.000Z | 2017-06-17T14:47:20.000Z | src/const.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 3 | 2017-11-07T12:22:10.000Z | 2020-04-30T20:48:59.000Z | #include <libapt/const.hpp>
#include "util.hpp"
#include <iostream>
using namespace libapt;
Const::Entry::Entry() : type(UNDEF), numVal(0)
{
}
Const::Const() : m_aptOffset(0), m_itemCount(0)
{
}
Error Const::Load(const uint8_t* buffer, unsigned int size)
{
uint8_t* iter = const_cast<uint8_t*>(buffer);
//Skip the f... | 19.923077 | 76 | 0.662162 | feliwir |
88636cf8ef9aba9547cda34b2e923c3df3d99559 | 1,148 | hpp | C++ | src/lua/lctable.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/lua/lctable.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/lua/lctable.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "lcvalue.hpp"
#include <unordered_map>
namespace rev {
class LCTable : public std::unordered_map<LCValue, LCValue> {
public:
using base = std::unordered_map<LCValue, LCValue>;
using base::base;
// 文字列(const char*)とstd::stringの同一視
// テーブルはポインタではなく中身を全て比較
bool preciseCompare(cons... | 28.7 | 88 | 0.662021 | degarashi |
8866114fb60b41286f3dd0c3b30096ca08c44de7 | 4,852 | cpp | C++ | Ethereal/Private/Gear/Magic/Spells/Haste.cpp | SoveranceStudios/EtherealLegends | 4d03aba462cc3a51988e2776e182cea05f0e4376 | [
"Apache-2.0"
] | 216 | 2016-08-28T18:22:06.000Z | 2022-03-22T09:08:15.000Z | Ethereal/Private/Gear/Magic/Spells/Haste.cpp | SoveranceStudios/EtherealLegends | 4d03aba462cc3a51988e2776e182cea05f0e4376 | [
"Apache-2.0"
] | 1 | 2017-08-10T06:14:32.000Z | 2017-08-12T00:16:27.000Z | Ethereal/Private/Gear/Magic/Spells/Haste.cpp | SoveranceStudios/EtherealLegends | 4d03aba462cc3a51988e2776e182cea05f0e4376 | [
"Apache-2.0"
] | 49 | 2016-08-28T18:22:31.000Z | 2022-02-23T16:22:37.000Z | // © 2014 - 2017 Soverance Studios
// http://www.soverance.com
// 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... | 39.447154 | 189 | 0.751855 | SoveranceStudios |
8867995e745390921ed20b28d9d1e718ba1f2611 | 26,569 | cpp | C++ | Box2D/Collision/DynamicTree.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Box2D/Collision/DynamicTree.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Box2D/Collision/DynamicTree.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising... | 26.702513 | 106 | 0.554255 | louis-langholtz |
886803561a44414b88916139598d3b7263ac99f0 | 310,201 | cpp | C++ | src/main_6600.cpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | src/main_6600.cpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | src/main_6600.cpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: OVR.OpenVR.IVRCompositor/_SubmitExplicitTimingData
#include "OVR/OpenVR/IVRComposito... | 91.639882 | 624 | 0.771735 | darknight1050 |
88681668529bfa3e00fbedea95101a9b483f7f87 | 22,278 | cpp | C++ | src/Layer.cpp | zaps166/vk-layer-flimes | 471dd7a70431628121b4df0128ee92f064e5991f | [
"MIT"
] | 4 | 2020-10-01T19:42:49.000Z | 2021-05-09T13:10:27.000Z | src/Layer.cpp | zaps166/vk-layer-flimes | 471dd7a70431628121b4df0128ee92f064e5991f | [
"MIT"
] | null | null | null | src/Layer.cpp | zaps166/vk-layer-flimes | 471dd7a70431628121b4df0128ee92f064e5991f | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2020-2021 Błażej Szczygieł
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... | 38.344234 | 202 | 0.70904 | zaps166 |
886fa4c861d0470863116dd71c41f0488af19d56 | 4,612 | cpp | C++ | src/dale/Parser/Parser.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | 1,083 | 2015-03-18T09:42:49.000Z | 2022-03-29T03:17:47.000Z | src/dale/Parser/Parser.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | 195 | 2015-01-04T03:06:41.000Z | 2022-03-18T18:16:27.000Z | src/dale/Parser/Parser.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | 56 | 2015-03-18T20:02:13.000Z | 2022-01-22T19:35:27.000Z | #include "Parser.h"
#include <cstdlib>
#include <cstring>
#include <vector>
namespace dale {
Parser::Parser(Lexer *lexer, ErrorReporter *erep,
const char *filename) {
this->lexer = lexer;
this->erep = erep;
this->filename = filename;
}
Parser::~Parser() { delete lexer; }
Lexer *Parser::ge... | 22.945274 | 65 | 0.525585 | ChengCat |
8871bfc1687c9d45d115a096f2c292c2ddf997af | 384 | cpp | C++ | src/BabylonCpp/src/materials/imaterial_detail_map_defines.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonCpp/src/materials/imaterial_detail_map_defines.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonCpp/src/materials/imaterial_detail_map_defines.cpp | samdauwe/BabylonCpp | eea9f761a49bb460ff1324c20e4674ef120e94f1 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/materials/imaterial_detail_map_defines.h>
namespace BABYLON {
IMaterialDetailMapDefines::IMaterialDetailMapDefines()
{
boolDef = {
{"DETAIL", false}, //
};
intDef = {
{"DETAILDIRECTUV", 0}, //
{"DETAIL_NORMALBLENDMETHOD", 0}, //
};
}
IMaterialDetailMapDefines::~IMater... | 19.2 | 66 | 0.677083 | samdauwe |
8872cf35a435e31c4bc423513d5c10b82c192bfd | 1,964 | cpp | C++ | src/Engine/Entity/DrawableEntity.cpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | src/Engine/Entity/DrawableEntity.cpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | src/Engine/Entity/DrawableEntity.cpp | avraal/Projector | bb234f03ccf34ed829a130c664b7adad400653f4 | [
"Zlib"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
//
// Created by andrew on 18.01.19.
//
#include <iostream>
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/Graphics/Shape.hpp>
#include <SFML/... | 23.95122 | 83 | 0.700102 | avraal |
88882d91e2b0f9f89e415aa360e8cc373824ef0f | 1,933 | cpp | C++ | graph-pheory/flows-and-cuts/maximum-matchings/maximum_matching.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | graph-pheory/flows-and-cuts/maximum-matchings/maximum_matching.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | graph-pheory/flows-and-cuts/maximum-matchings/maximum_matching.cpp | dushimsam/deep-dive-in-algorithms | 0c6a04b3115ba789ab4aca68cce51c9a3c3a075a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Graph
{
vector<vector<int>> graph;
int n;
public:
Graph(int n, vector<vector<int>> mx)
{
this->n = n;
graph.resize(n + 2, vector<int>(n + 2, 0));
formGraph(mx);
}
void formGraph(vector<vector<int>> mx)
{
... | 21.965909 | 51 | 0.316089 | dushimsam |
888ecca10ad319d28167a9c77038e1b8c56246cb | 470 | cpp | C++ | src/LL/doubleLL.cpp | jatinsinghal1921/algorithms | b50978a8cdf9b3809cd9964dcb4f5a5b2f5ec037 | [
"MIT"
] | null | null | null | src/LL/doubleLL.cpp | jatinsinghal1921/algorithms | b50978a8cdf9b3809cd9964dcb4f5a5b2f5ec037 | [
"MIT"
] | null | null | null | src/LL/doubleLL.cpp | jatinsinghal1921/algorithms | b50978a8cdf9b3809cd9964dcb4f5a5b2f5ec037 | [
"MIT"
] | null | null | null | node* insert(node* head,int x) //insertion at the end;
{
node* temp=new node;
temp->data=x;
temp->left=0;
temp->right=0;
if(head==0)
{
head=temp;
return head;
}
//insertion at the end;
node* temp1=head;
while(temp1->right!=0)
{
temp1=temp1->right;
}
tem... | 16.206897 | 55 | 0.555319 | jatinsinghal1921 |
8894eab5d5b650243ac72b85dc9b5db20f26620c | 2,889 | hpp | C++ | src/sdl_gui/include/sdl_gui_menu_layout.hpp | N4G170/sdl_gui | a3541d372a7884d0375df360f9244682a98a0de3 | [
"MIT"
] | null | null | null | src/sdl_gui/include/sdl_gui_menu_layout.hpp | N4G170/sdl_gui | a3541d372a7884d0375df360f9244682a98a0de3 | [
"MIT"
] | null | null | null | src/sdl_gui/include/sdl_gui_menu_layout.hpp | N4G170/sdl_gui | a3541d372a7884d0375df360f9244682a98a0de3 | [
"MIT"
] | null | null | null | #include "sdl_gui_element.hpp"
#include "sdl_gui_texture.hpp"
#include "sdl_gui_enums.hpp"
#include "sdl_gui_utils.hpp"
#include "sdl_gui_menu_item.hpp"
#include <memory>
#include <vector>
namespace sdl_gui
{
#ifndef SDL_GUI_MENU_LAYOUT_HPP
#define SDL_GUI_MENU_LAYOUT_HPP
struct MenuLayoutConfig
{
int vertical_el... | 30.734043 | 101 | 0.671859 | N4G170 |
88a08046e47f847fd34358eb2122767fd15b4672 | 2,105 | cpp | C++ | AugustDay2_DesignHashSet/AugustDay2_DesignHashSet.cpp | sbchong/LeetCode | 933c7d85519b473f48050b24465aaaba94eede8c | [
"Apache-2.0"
] | null | null | null | AugustDay2_DesignHashSet/AugustDay2_DesignHashSet.cpp | sbchong/LeetCode | 933c7d85519b473f48050b24465aaaba94eede8c | [
"Apache-2.0"
] | null | null | null | AugustDay2_DesignHashSet/AugustDay2_DesignHashSet.cpp | sbchong/LeetCode | 933c7d85519b473f48050b24465aaaba94eede8c | [
"Apache-2.0"
] | 1 | 2020-07-29T14:36:51.000Z | 2020-07-29T14:36:51.000Z | // AugustDay2_DesignHashSet.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> vect;
int i = 0;
vect.reserve(10);
vect.push_back(1);
vect.push_back(2);
vect.push_back(3);
vect.push_back(4);
vect.push_back(5);
vect.push_back(6);
vec... | 24.195402 | 105 | 0.55962 | sbchong |
88b27c2fc57a0e33f7e7da9c67fe3287d4c0050c | 1,694 | cpp | C++ | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/WinRT/File.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | null | null | null | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/WinRT/File.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | null | null | null | IL2CPP/Il2CppOutputProject/IL2CPP/libil2cpp/os/WinRT/File.cpp | dngoins/AutographTheWorld-MR | 24e567c8030b73a6942e25b36b7370667c649b90 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#if IL2CPP_TARGET_WINRT || IL2CPP_TARGET_XBOXONE
#include <io.h>
#include "os/File.h"
#include "os/Win32/WindowsHeaders.h"
namespace il2cpp
{
namespace os
{
static inline std::wstring GetDirectoryForStandardOutput()
{
#if IL2CPP_TARGET_XBOXONE
return L"D:\\";
#elif IL2CP... | 23.527778 | 96 | 0.678867 | dngoins |
88b3ad6aeb54e95e3a7903832ac7e60ac71f8983 | 18,088 | cpp | C++ | src/genmove.cpp | kazu-nanoha/NanohaM | 412f95fdcbc1eb1e8aeb5a75872eba0e544a1675 | [
"MIT"
] | null | null | null | src/genmove.cpp | kazu-nanoha/NanohaM | 412f95fdcbc1eb1e8aeb5a75872eba0e544a1675 | [
"MIT"
] | null | null | null | src/genmove.cpp | kazu-nanoha/NanohaM | 412f95fdcbc1eb1e8aeb5a75872eba0e544a1675 | [
"MIT"
] | null | null | null | /**
NanohaM, a USI shogi(Japanese-chess) playing engine, derived from Gull chess.
The original Gull chess source code is "public domain".
Copyright (c) 2018 Kazuyuki Kawabata
This software is released under the MIT License, see "LICENSE.txt".
*/
#if defined(__GNUC__)
#include <x86intrin.h>
#else
#include <intrin.h>... | 36.031873 | 166 | 0.617371 | kazu-nanoha |
88b61147626428c8abfde0f0b45b828b7d578a97 | 797 | cpp | C++ | KnapsackSolver.cpp | wbhoenig/MicroWorld | 89c91b3f66645904cbb2570aceea0ac7f19a960c | [
"MIT"
] | null | null | null | KnapsackSolver.cpp | wbhoenig/MicroWorld | 89c91b3f66645904cbb2570aceea0ac7f19a960c | [
"MIT"
] | null | null | null | KnapsackSolver.cpp | wbhoenig/MicroWorld | 89c91b3f66645904cbb2570aceea0ac7f19a960c | [
"MIT"
] | null | null | null | #include "KnapsackSolver.h"
#include "MarginalGoodCell.h"
#include "HelperStructs.h"
#include "KnapsackTable.h"
#include <iostream>
GoodQuantityMap KnapsackSolver::operator()(const UtilityFunction* function,
unsigned short money, const GoodPriceQuantityMap& priceQuantities) {
return this->solve(1.0, function, mone... | 30.653846 | 99 | 0.796738 | wbhoenig |
88b7facf5e41515f82decacd59ae800227e2df37 | 1,028 | cpp | C++ | android-29/android/view/Choreographer.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-29/android/view/Choreographer.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/view/Choreographer.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../os/Looper.hpp"
#include "./Choreographer.hpp"
namespace android::view
{
// Fields
// QJniObject forward
Choreographer::Choreographer(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
android::view::Choreographer Choreographer::getInstance()
{
return callStaticObjectMethod(
"an... | 20.979592 | 77 | 0.710117 | YJBeetle |
88c1c12efafd71ca3987bd04796dabe778712b94 | 212 | hpp | C++ | shared/detail/no_copy.hpp | playday3008/herby | 3ab4594588c4776182f18edf89d461adef583614 | [
"MIT"
] | null | null | null | shared/detail/no_copy.hpp | playday3008/herby | 3ab4594588c4776182f18edf89d461adef583614 | [
"MIT"
] | null | null | null | shared/detail/no_copy.hpp | playday3008/herby | 3ab4594588c4776182f18edf89d461adef583614 | [
"MIT"
] | null | null | null | #pragma once
namespace shared::detail
{
class NoCopy
{
protected:
NoCopy() = default;
~NoCopy() = default;
NoCopy(const NoCopy&) = delete;
protected:
NoCopy& operator=(const NoCopy&) = delete;
};
}
| 14.133333 | 44 | 0.660377 | playday3008 |
88c758e9658f82a7e8abe0ff657d7ea3c9d919e3 | 616 | cpp | C++ | scratch/scratch.cpp | iboB/huse | 568e1215ebe28efa2d866fde674ef9a8bc5d287a | [
"MIT"
] | 1 | 2021-09-02T15:36:13.000Z | 2021-09-02T15:36:13.000Z | scratch/scratch.cpp | iboB/huse | 568e1215ebe28efa2d866fde674ef9a8bc5d287a | [
"MIT"
] | null | null | null | scratch/scratch.cpp | iboB/huse | 568e1215ebe28efa2d866fde674ef9a8bc5d287a | [
"MIT"
] | 1 | 2021-09-02T15:36:44.000Z | 2021-09-02T15:36:44.000Z | // huse
// Copyright (c) 2021 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <iostream>
#include <huse/json/Deserializer.hpp>
#include <huse/Exception.hpp>
int main()
{
constexpr std::string_vie... | 20.533333 | 83 | 0.590909 | iboB |
88cdb1e8945605753e389f2cf193608a16d2441d | 4,498 | cpp | C++ | Source/OUUUMG/Private/Widgets/LayerWidget.cpp | CloobGD/OpenUnrealUtilities | a077b0d7347a0425606d91e96a6c9080469583a5 | [
"MIT"
] | 12 | 2021-01-26T21:55:28.000Z | 2022-03-09T14:33:40.000Z | Source/OUUUMG/Private/Widgets/LayerWidget.cpp | CloobGD/OpenUnrealUtilities | a077b0d7347a0425606d91e96a6c9080469583a5 | [
"MIT"
] | 1 | 2022-01-08T20:13:32.000Z | 2022-01-08T20:13:32.000Z | Source/OUUUMG/Private/Widgets/LayerWidget.cpp | CloobGD/OpenUnrealUtilities | a077b0d7347a0425606d91e96a6c9080469583a5 | [
"MIT"
] | 2 | 2022-01-11T19:04:11.000Z | 2022-03-22T14:17:10.000Z | // Copyright (c) 2021 Jonas Reich
#include "Widgets/LayerWidget.h"
#include "Widgets/SWidget.h"
#include "Widgets/SViewport.h"
#include "Framework/Application/SlateApplication.h"
#include "LogOpenUnrealUtilities.h"
#include "UMG/UMGUtils.h"
#include "UMGInputBinding.h"
void UOUULayerWidget::UpdateLayer(const UOUULaye... | 29.788079 | 152 | 0.769453 | CloobGD |
88cebc2fe839102f577ad0caad10c8ec99c43b19 | 251 | hpp | C++ | include/monitor_info.hpp | magicmoremagic/bengine-tools-sysinfo | 55eb9fe1c642d56a9b136e441a0348c0272e7647 | [
"MIT"
] | null | null | null | include/monitor_info.hpp | magicmoremagic/bengine-tools-sysinfo | 55eb9fe1c642d56a9b136e441a0348c0272e7647 | [
"MIT"
] | null | null | null | include/monitor_info.hpp | magicmoremagic/bengine-tools-sysinfo | 55eb9fe1c642d56a9b136e441a0348c0272e7647 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_SYSINFO_MONITOR_INFO_HPP_
#define BE_SYSINFO_MONITOR_INFO_HPP_
#include <be/core/native.hpp>
#include BE_NATIVE(platform, glfw.hpp)
void log_all_monitor_info();
void log_monitor_info(GLFWmonitor* monitor, int index);
#endif
| 20.916667 | 55 | 0.820717 | magicmoremagic |
88d000702099d43eff4378d440027cae637a22d6 | 1,217 | cpp | C++ | examples/2017-03-25/theSourceApp/src/theSource.cpp | kr15h/projection-mapping-with-rpi | ba1859292cb5f4989e9069bc36d1b27a230e65ec | [
"MIT"
] | 3 | 2016-06-01T08:18:08.000Z | 2018-10-01T18:31:20.000Z | examples/2017-03-25/theSourceApp/src/theSource.cpp | kr15h/projection-mapping-with-rpi | ba1859292cb5f4989e9069bc36d1b27a230e65ec | [
"MIT"
] | null | null | null | examples/2017-03-25/theSourceApp/src/theSource.cpp | kr15h/projection-mapping-with-rpi | ba1859292cb5f4989e9069bc36d1b27a230e65ec | [
"MIT"
] | null | null | null | #include "theSource.h"
void theSource::setup(){
name = "The Source";
allocate(500, 500);
}
void theSource::update(){
width = getWidth();
height = getHeight();
center.x = width / 2;
center.y = height / 2;
point.x = cos(ofGetElapsedTimef()) * center.x + center.x;
point.y = sin(ofGetElapsedTimef()) * center.y ... | 20.627119 | 58 | 0.662284 | kr15h |
88d118386dbef8c9760bfdc79b301c92786a797e | 5,435 | cpp | C++ | folly/executors/test/TimekeeperScheduledExecutorTest.cpp | lrita/folly | a315c6b038935397cddc96653e873a8985b263f6 | [
"Apache-2.0"
] | 1 | 2022-03-09T21:40:42.000Z | 2022-03-09T21:40:42.000Z | folly/executors/test/TimekeeperScheduledExecutorTest.cpp | lrita/folly | a315c6b038935397cddc96653e873a8985b263f6 | [
"Apache-2.0"
] | 1 | 2022-03-28T16:56:01.000Z | 2022-03-28T16:57:07.000Z | folly/executors/test/TimekeeperScheduledExecutorTest.cpp | lrita/folly | a315c6b038935397cddc96653e873a8985b263f6 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 30.880682 | 79 | 0.69586 | lrita |
88d6fb3e73f2d7c5c891417702bffe6f6efda9f5 | 2,091 | cpp | C++ | src/draw_line.cpp | fniyaz/cg-template | ba4ccbf042628b60de73a90e93ec3059013a5873 | [
"MIT"
] | null | null | null | src/draw_line.cpp | fniyaz/cg-template | ba4ccbf042628b60de73a90e93ec3059013a5873 | [
"MIT"
] | null | null | null | src/draw_line.cpp | fniyaz/cg-template | ba4ccbf042628b60de73a90e93ec3059013a5873 | [
"MIT"
] | null | null | null | #include "draw_line.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <algorithm>
LineDrawing::LineDrawing(unsigned short width, unsigned short height): ColorSpace(width, height)
{
}
LineDrawing::~LineDrawing() {
}
template<typename T>
int sign(T x) {
if (x < 0) return -1;
if (x > 0) return 1;
... | 25.814815 | 118 | 0.547107 | fniyaz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.