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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06c8b1aeab39e7a6a391249500899b4a07e30588 | 420 | cpp | C++ | src/src/XESystem/QueueManager.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/src/XESystem/QueueManager.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/src/XESystem/QueueManager.cpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | #include <XESystem/QueueManager.hpp>
namespace XE
{
QueueManager::QueueManager()
: m_rwqueue(500)
{
}
void QueueManager::push(OnFunctionHandler Handler)
{
bool succeeded = m_rwqueue.enqueue(Handler);
}
void QueueManager::TriggerAllHandler(sf::Uint16 max)
{
OnFunctionHandler tmp;
while (m_rwqueue.... | 14.482759 | 53 | 0.678571 | devxkh |
06cc382b8032aa3a6239cc9a6cb94f4cce75a7d0 | 7,457 | cpp | C++ | benchmarks/sso.cpp | Wentzell/nda | 69106a64799e7942bf4b1b78fdadf3e7c9477c70 | [
"Apache-2.0"
] | 3 | 2021-05-26T08:53:25.000Z | 2021-06-13T00:39:10.000Z | benchmarks/sso.cpp | smile1103/nda | ff2239b910a5964942833e07d282a8cea32cb6fa | [
"Apache-2.0"
] | 10 | 2020-08-11T21:02:47.000Z | 2022-01-26T19:21:34.000Z | benchmarks/sso.cpp | smile1103/nda | ff2239b910a5964942833e07d282a8cea32cb6fa | [
"Apache-2.0"
] | 4 | 2021-05-24T12:43:08.000Z | 2022-02-28T01:33:03.000Z | // Copyright (c) 2020 Simons Foundation
//
// 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.txt
//
// Unless required by applicable law or... | 37.472362 | 139 | 0.610701 | Wentzell |
06cc90626241a950f8c5956a6e4cc5e3863eb823 | 634 | hpp | C++ | qubus/include/qubus/scheduling/round_robin_scheduler.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/scheduling/round_robin_scheduler.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/scheduling/round_robin_scheduler.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #ifndef QUBUS_SCHEDULING_ROUND_ROBIN_SCHEDULER_HPP
#define QUBUS_SCHEDULING_ROUND_ROBIN_SCHEDULER_HPP
#include <qubus/scheduling/scheduler.hpp>
#include <hpx/include/lcos.hpp>
#include <vector>
namespace qubus
{
class round_robin_scheduler final : public scheduler
{
public:
virtual ~round_robin_scheduler() = d... | 20.451613 | 86 | 0.771293 | qubusproject |
06d26b0b39ef546f92e2d4dfc09ad3003b2271cb | 913 | cpp | C++ | Subset Sums.cpp | Eggag/USACO | 05eb5ebd73652ea5718e8e5832fac5ee3e946ccb | [
"MIT"
] | 8 | 2018-10-27T04:29:01.000Z | 2021-11-29T05:48:06.000Z | Subset Sums.cpp | Eggag/USACO | 05eb5ebd73652ea5718e8e5832fac5ee3e946ccb | [
"MIT"
] | null | null | null | Subset Sums.cpp | Eggag/USACO | 05eb5ebd73652ea5718e8e5832fac5ee3e946ccb | [
"MIT"
] | null | null | null | /*
ID: egor_ga1
PROG: subset
LANG: C++11
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define all(v) v.begin(), v.end()
#define mp make_pair
#define pb push_back
#define f first
#define s second
int main(){
ios_base::sync_with_stdio(false);... | 19.020833 | 73 | 0.588171 | Eggag |
06d3e7f0c59cfbe1c429f0a5f2f98cd785a1440d | 2,201 | cpp | C++ | PiratesEngine/src/Platform/OpenGl/OpenGLVertexArray.cpp | michaelzaki-12/PiratesEngine | 69e875eb2d21350c499245316351552bc217cbcb | [
"MIT"
] | null | null | null | PiratesEngine/src/Platform/OpenGl/OpenGLVertexArray.cpp | michaelzaki-12/PiratesEngine | 69e875eb2d21350c499245316351552bc217cbcb | [
"MIT"
] | null | null | null | PiratesEngine/src/Platform/OpenGl/OpenGLVertexArray.cpp | michaelzaki-12/PiratesEngine | 69e875eb2d21350c499245316351552bc217cbcb | [
"MIT"
] | null | null | null | #include "PEPCH.h"
#include "OpenGLVertexArray.h"
#include <GLAD/glad.h>
namespace Pirates
{
static GLenum ShaderDataTypeToOpenGLBaseType(ShaderDataType type)
{
switch (type)
{
case Pirates::ShaderDataType::None:
case Pirates::ShaderDataType::Float: return GL_FLOAT;
case Pirates::ShaderDataType::Float2:ret... | 25.894118 | 79 | 0.75602 | michaelzaki-12 |
06d6d982cf1ce3f9048569b10f0b8e2832a8516e | 4,246 | cpp | C++ | QPropertyTree/IconXPMCache.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 8 | 2021-07-08T18:06:33.000Z | 2022-01-17T18:29:57.000Z | QPropertyTree/IconXPMCache.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | null | null | null | QPropertyTree/IconXPMCache.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 1 | 2021-12-31T15:52:56.000Z | 2021-12-31T15:52:56.000Z | /**
* yasli - Serialization Library.
* Copyright (C) 2007-2013 Evgeny Andreeshchev <eugene.andreeshchev@gmail.com>
* Alexander Kotliar <alexander.kotliar@gmail.com>
*
* This code is distributed under the MIT License:
* http://www.opensource.org/licenses/... | 23.202186 | 131 | 0.563825 | koalefant |
06d82f4a4c233169129ee6b723e58247a8d85bbb | 4,100 | cpp | C++ | GHW. Marinosyan/Compression/main.cpp | MTigra/Data-Structures-and-Algorithms | c1db3a3396e6bcad93c4f32a38534eff8393b35e | [
"Apache-2.0"
] | 1 | 2017-01-27T07:43:29.000Z | 2017-01-27T07:43:29.000Z | GHW. Marinosyan/Compression/main.cpp | MTigra/Data-Structures-and-Algorithms | c1db3a3396e6bcad93c4f32a38534eff8393b35e | [
"Apache-2.0"
] | 1 | 2018-11-08T22:21:21.000Z | 2018-11-08T22:21:21.000Z | GHW. Marinosyan/Compression/main.cpp | MTigra/Data-Structures-and-Algorithms | c1db3a3396e6bcad93c4f32a38534eff8393b35e | [
"Apache-2.0"
] | 3 | 2018-09-17T09:30:30.000Z | 2018-11-08T21:40:42.000Z | /*
* КДЗ-1 по дисциплине Алгоритмы и структуры данных
* Мариносян Никита Арамович, БПИ151, 01.12.2016
* Среда разработки: CLion
*
* Состав проекта:
* main.cpp - главный файл;
* huffman.cpp, huffman.h - реализация алгоритма Хаффмана
* shannon-fano.cpp, shannon-fano.h - реализация алгоритма Шеннона-Фано
* utili... | 26.797386 | 96 | 0.596341 | MTigra |
06d91a8d7fa8f92a70b0fb0b8ed70c4a35a789b8 | 11,766 | cpp | C++ | Aufgaben/Aufgabenblatt 3/SuffixTree/SuffixBaum.cpp | streusselhirni/hfict-aad | a9ddbf306ba36bb9299021f102281cd1e2824f45 | [
"MIT"
] | null | null | null | Aufgaben/Aufgabenblatt 3/SuffixTree/SuffixBaum.cpp | streusselhirni/hfict-aad | a9ddbf306ba36bb9299021f102281cd1e2824f45 | [
"MIT"
] | null | null | null | Aufgaben/Aufgabenblatt 3/SuffixTree/SuffixBaum.cpp | streusselhirni/hfict-aad | a9ddbf306ba36bb9299021f102281cd1e2824f45 | [
"MIT"
] | null | null | null | //
// Created by Nicolas Haenni on 28.09.18.
//
#include <iostream>
#include "SuffixBaum.h"
#define MAX_CHAR 256
SuffixBaum::SuffixBaum(std::string input1, std::string input2) : root(nullptr), lastNewNode(nullptr),
activeNode(nullptr), activeEdge(-1),
... | 35.654545 | 119 | 0.554734 | streusselhirni |
06da69dfd94081d9216bf3383507c849b36cc460 | 1,178 | cpp | C++ | TWatch_2021_Library/src/drive/Power/power.cpp | Xinyuan-LilyGO/T-Watch-2021 | 4b604c39e143deb7b268889114cb81fb420cf65c | [
"MIT"
] | 34 | 2021-08-10T11:12:15.000Z | 2022-03-30T11:57:15.000Z | TWatch_2021_Library/src/drive/Power/power.cpp | Xinyuan-LilyGO/T-Watch-2021 | 4b604c39e143deb7b268889114cb81fb420cf65c | [
"MIT"
] | 2 | 2021-10-03T23:58:16.000Z | 2022-01-11T02:01:58.000Z | TWatch_2021_Library/src/drive/Power/power.cpp | Xinyuan-LilyGO/T-Watch-2021 | 4b604c39e143deb7b268889114cb81fb420cf65c | [
"MIT"
] | 11 | 2021-10-02T05:17:39.000Z | 2022-03-30T11:59:41.000Z | #include "../../TWatch_hal.h"
#if defined(TWatch_HAL_Power)
void TWatchClass::Power_Init()
{
pinMode(TWATCH_PWR_ON, OUTPUT);
pinMode(TWATCH_BAT_ADC, INPUT);
digitalWrite(TWATCH_PWR_ON, HIGH);
}
void TWatchClass::Power_Updata(uint32_t millis, uint32_t time_ms)
{
static uint32_t Millis;
static uint... | 21.814815 | 75 | 0.531409 | Xinyuan-LilyGO |
06dbe0e44a45d4d7bc9743ce7b7bc274a96a4494 | 435 | c++ | C++ | test/core/range_tests.c++ | rendering-io/magma | b6503a5dadc36ff38d6c8ba221b08e600fd09050 | [
"MIT"
] | null | null | null | test/core/range_tests.c++ | rendering-io/magma | b6503a5dadc36ff38d6c8ba221b08e600fd09050 | [
"MIT"
] | null | null | null | test/core/range_tests.c++ | rendering-io/magma | b6503a5dadc36ff38d6c8ba221b08e600fd09050 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <magma/core/range.h>
#include <vector>
using namespace magma;
TEST(input_range, range_based_for_equals_source_data) {
std::vector<int> v;
v.push_back(1);
v.push_back(2);
v.push_back(3);
auto range = input_range<int>{begin(v), end(v)};
std::vector<int> out;
for (auto i... | 17.4 | 55 | 0.625287 | rendering-io |
06e057a5efe7a556af04f9172f14b9120b482dc4 | 1,846 | cpp | C++ | demo_source/BST_demo.cpp | yhlim1225/OSS_G6 | c88f78eefeacf89893ace3f07bbdf3ebb1923244 | [
"MIT"
] | null | null | null | demo_source/BST_demo.cpp | yhlim1225/OSS_G6 | c88f78eefeacf89893ace3f07bbdf3ebb1923244 | [
"MIT"
] | 5 | 2019-11-24T07:30:12.000Z | 2019-12-19T04:43:52.000Z | demo_source/BST_demo.cpp | yhlim1225/OSS_G6 | c88f78eefeacf89893ace3f07bbdf3ebb1923244 | [
"MIT"
] | 2 | 2019-12-01T07:09:18.000Z | 2019-12-09T16:46:38.000Z | //The MIT License (MIT)
//Copyright (c) 2019 OSS_G6. All rights reserved.
//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 u... | 25.287671 | 79 | 0.736728 | yhlim1225 |
06e0a720c773f04262ffb3bad912443be21f2aeb | 2,482 | cpp | C++ | zhang/graph/trace1.cpp | costarzhang/C-Plus-Plus | fa21e83f9c17adce4f8c46d53dcba4eacbbfa809 | [
"MIT"
] | null | null | null | zhang/graph/trace1.cpp | costarzhang/C-Plus-Plus | fa21e83f9c17adce4f8c46d53dcba4eacbbfa809 | [
"MIT"
] | null | null | null | zhang/graph/trace1.cpp | costarzhang/C-Plus-Plus | fa21e83f9c17adce4f8c46d53dcba4eacbbfa809 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int move_x[8] = {1, 2, 2, 1, -1, -2, -2, -1};
int move_y[8] = {2, 1, -1, -2, -2, -1, 1, 2};
void Judge(vector<vector<int>> &pan, vector<vector<int>> &flag, vector<vector<int>> &path, int m, int n, int &edge, int count, int &found)
{
if (found) //设定找到一次就可以... | 28.204545 | 140 | 0.476229 | costarzhang |
06e662930f124e19f066d4712a6597c70fc33951 | 15,264 | cpp | C++ | asc/src/solver_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | asc/src/solver_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | asc/src/solver_structure.cpp | inquisitor101/ASC2D | 73ea575496340ad2486014525c6aec9c42c5d453 | [
"MIT"
] | null | null | null | #include "solver_structure.hpp"
CSolver::CSolver
(
CConfig *config_container,
CGeometry *geometry_container,
CInitial *initial_container,
CElement **element_container,
CSpatial **spatial_container,
unsigned short iZone
)
/*
* Constructor, used to initialize CSolver in zone: iZone.... | 31.8 | 95 | 0.535705 | inquisitor101 |
06e78773fdfeffa711d903dc6dfe1b00ecfcb230 | 2,608 | cpp | C++ | binding/python/terms.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | null | null | null | binding/python/terms.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 1 | 2021-08-04T13:29:57.000Z | 2021-08-04T14:10:49.000Z | binding/python/terms.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | 1 | 2020-09-21T22:25:57.000Z | 2020-09-21T22:25:57.000Z | /** @file "/owlcpp/binding/python/terms.cpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2013
*******************************************************************************/
#include "boost/python.hpp"
namespace bp = boost:... | 29.977011 | 85 | 0.638037 | GreyMerlin |
06e998b66cd209db0f631e0ae6cd92c7a43d32c5 | 2,057 | cpp | C++ | Source/Server/Core/Utils/Strings.cpp | stosSe4r/ds3os | 1e7819449ce12efc618e26f4abca6448cf819b37 | [
"MIT"
] | null | null | null | Source/Server/Core/Utils/Strings.cpp | stosSe4r/ds3os | 1e7819449ce12efc618e26f4abca6448cf819b37 | [
"MIT"
] | null | null | null | Source/Server/Core/Utils/Strings.cpp | stosSe4r/ds3os | 1e7819449ce12efc618e26f4abca6448cf819b37 | [
"MIT"
] | null | null | null | /*
* Dark Souls 3 - Open Server
* Copyright (C) 2021 Tim Leonard
*
* This program is free software; licensed under the MIT license.
* You should have received a copy of the license along with this program.
* If not, see <https://opensource.org/licenses/MIT>.
*/
#include "Core/Utils/Strings.h"
#include <sstream... | 21.882979 | 100 | 0.536218 | stosSe4r |
06e9b34c30917fe04124ad66ad7845a003a53b23 | 2,833 | cpp | C++ | src/modules/network/protocols/http/http_server_request_factory.cpp | dubcanada/TideSDKLite | f2f3959e8d464c1096bd5e0963149a3589d54a25 | [
"Apache-2.0"
] | 2 | 2015-11-05T01:53:44.000Z | 2015-12-17T06:52:12.000Z | src/modules/network/protocols/http/http_server_request_factory.cpp | aykutb/TideSDK | 267e1cb86dc2dc7bef136a78a6f2177233bad233 | [
"Apache-2.0"
] | null | null | null | src/modules/network/protocols/http/http_server_request_factory.cpp | aykutb/TideSDK | 267e1cb86dc2dc7bef136a78a6f2177233bad233 | [
"Apache-2.0"
] | 1 | 2015-07-12T19:35:36.000Z | 2015-07-12T19:35:36.000Z | /**
* This file has been modified from its orginal sources.
*
* Copyright (c) 2012 Software in the Public Interest Inc (SPI)
* Copyright (c) 2012 David Pratt
*
* 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... | 35.4125 | 124 | 0.712319 | dubcanada |
06eaa73f23ea35e1b33c1d33515bfa871a84853d | 1,109 | cpp | C++ | android-31/android/media/MediaMetadataRetriever_BitmapParams.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/MediaMetadataRetriever_BitmapParams.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/MediaMetadataRetriever_BitmapParams.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../graphics/Bitmap_Config.hpp"
#include "./MediaMetadataRetriever_BitmapParams.hpp"
namespace android::media
{
// Fields
// QJniObject forward
MediaMetadataRetriever_BitmapParams::MediaMetadataRetriever_BitmapParams(QJniObject obj) : JObject(obj) {}
// Constructors
MediaMetadataRetriever_BitmapParam... | 25.790698 | 107 | 0.761046 | YJBeetle |
06eaaaec227088277ad99f473d53a52d757589e7 | 566 | cpp | C++ | 6. Polymorphism/3. Operator Overloading/11. Assignment/3.SelfAssignment.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | 3 | 2019-11-06T15:43:06.000Z | 2020-06-05T10:47:28.000Z | 6. Polymorphism/3. Operator Overloading/11. Assignment/3.SelfAssignment.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | null | null | null | 6. Polymorphism/3. Operator Overloading/11. Assignment/3.SelfAssignment.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | 1 | 2019-09-06T03:37:08.000Z | 2019-09-06T03:37:08.000Z | #include <iostream>
using namespace std;
class Box
{
private: int length, width, height;
public: Box(int length = 0; int width = 0; int height = 0)
{
this -> length = length;
this -> width = width;
this -> height = height;
}
public: int Area()
{
return length * width;
}
public: int Volume()
{
ret... | 13.47619 | 59 | 0.614841 | Imran4424 |
06eb3ed44377cb46487eede8d7644a741ca179fd | 295 | cpp | C++ | atcoder.jp/abc152/abc152_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc152/abc152_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc152/abc152_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, p;
cin >> n;
set<int> st;
int count = 0;
for (int i = 0; i < n; i++) {
cin >> p;
st.insert(p);
if (*st.begin() >= p) {
count++;
}
}
cout << count << endl;
}
| 17.352941 | 33 | 0.4 | shikij1 |
06efb206d66952f329dd4a4e44511f441135f525 | 1,932 | cpp | C++ | tests/math/test_matrix_vector.cpp | ToruNiina/Coffee-mill | 343a6b89f7bc4645d596809aac9009db1c5ec0d8 | [
"MIT"
] | 4 | 2017-12-11T07:26:34.000Z | 2021-02-01T07:33:37.000Z | tests/math/test_matrix_vector.cpp | ToruNiina/Coffee-mill | 343a6b89f7bc4645d596809aac9009db1c5ec0d8 | [
"MIT"
] | null | null | null | tests/math/test_matrix_vector.cpp | ToruNiina/Coffee-mill | 343a6b89f7bc4645d596809aac9009db1c5ec0d8 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE "test_matrix_vector"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <mill/math/Vector.hpp>
#include <random>
constexpr static unsigned int seed = 32479327;
constexpr sta... | 31.672131 | 85 | 0.634576 | ToruNiina |
06f1bbde1ac97440192f1a1195cc4909e0b84ec1 | 5,914 | cpp | C++ | Engine/Core/Private/Platform/Windows/WindowsDeviceManager.cpp | ILLmew/Seagull-Engine-v2 | ea89ebe742ac16ab9e86c82ff1ccfeac354d6598 | [
"MIT"
] | 3 | 2021-05-06T12:26:35.000Z | 2021-09-27T10:58:23.000Z | Engine/Core/Private/Platform/Windows/WindowsDeviceManager.cpp | ILLmew/Seagull-Engine-v2 | ea89ebe742ac16ab9e86c82ff1ccfeac354d6598 | [
"MIT"
] | null | null | null | Engine/Core/Private/Platform/Windows/WindowsDeviceManager.cpp | ILLmew/Seagull-Engine-v2 | ea89ebe742ac16ab9e86c82ff1ccfeac354d6598 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "Platform/OS.h"
#include "System/Logger.h"
#ifdef SG_PLATFORM_WINDOWS
namespace SG
{
//////////////////////////////////////////////////////////////////////////////////////////////////////
/// DeviceManager
//////////////////////////////////////////////////////////////////////////////////... | 26.401786 | 109 | 0.65049 | ILLmew |
06f1f8b7c2f9a5ac26f8b0aea66729578b2698fd | 1,024 | cpp | C++ | Tankerfield/Tankerfield/Bullet_Missile.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 7 | 2019-03-11T11:31:36.000Z | 2019-05-18T08:03:35.000Z | Tankerfield/Tankerfield/Bullet_Missile.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 86 | 2019-03-27T14:36:16.000Z | 2019-06-10T18:43:52.000Z | Tankerfield/Tankerfield/Bullet_Missile.cpp | gamificalostudio/Tankerfield | f3801c5286ae836c0fd62392cc14be081b5c74e8 | [
"MIT"
] | 1 | 2019-09-10T17:37:44.000Z | 2019-09-10T17:37:44.000Z | #include "Bullet_Missile.h"
#include "PerfTimer.h"
#include "App.h"
#include "M_Audio.h"
#include "M_Collision.h"
#include "M_ObjManager.h"
#include "Obj_Explosion.h"
#include "Obj_Tank.h"
Bullet_Missile::Bullet_Missile(fPoint pos) : Obj_Bullet(pos)
{
shot_sound = app->audio->LoadFx("audio/Fx/tank/weapons/double_miss... | 23.272727 | 114 | 0.75293 | gamificalostudio |
06f6b62ae033a094ba20aa06a08a37450e6d83a3 | 984 | tcc | C++ | src/jsoncpp_impl/JXXON/Accessor/GetMapElements_shared_ptr.tcc | jxx-project/JXXON | 313bb4e5ab42385741a41fb4032585159c8721c6 | [
"BSL-1.0"
] | null | null | null | src/jsoncpp_impl/JXXON/Accessor/GetMapElements_shared_ptr.tcc | jxx-project/JXXON | 313bb4e5ab42385741a41fb4032585159c8721c6 | [
"BSL-1.0"
] | null | null | null | src/jsoncpp_impl/JXXON/Accessor/GetMapElements_shared_ptr.tcc | jxx-project/JXXON | 313bb4e5ab42385741a41fb4032585159c8721c6 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (C) 2018 Dr. Michael Steffens
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef JXXON_Accessor_GetMapElements_shared_ptr_INCLUDED
#define JXXON_Accessor_GetMapElements_shared_ptr_INCLUDED
#include "JXXON/Error.h"
#include "JXXON/Json.h"
#include "JXXON/Json/Impl.h"
namespace JXXON { namespace Access... | 24 | 117 | 0.682927 | jxx-project |
06f909791ab3f474cb6f80343bcbfb2fb413eb28 | 2,788 | cpp | C++ | Nesis/Common/CanAerospace/StaticHelper.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T07:17:46.000Z | 2019-04-05T17:08:05.000Z | Nesis/Common/CanAerospace/StaticHelper.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | Nesis/Common/CanAerospace/StaticHelper.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* Ales... | 20.5 | 79 | 0.421449 | jpoirier |
660577f0e38a4436fb9a66a227b91083f2b19457 | 2,255 | hpp | C++ | src/core/NEON/kernels/arm_gemm/interleave_indirect.hpp | Ehsan-aghapour/AI-Sheduling-Reprodution | 657dfa7c875445ab275c8a4418bbf29ed4d94891 | [
"MIT"
] | 2,313 | 2017-03-24T16:25:28.000Z | 2022-03-31T03:00:30.000Z | src/core/NEON/kernels/arm_gemm/interleave_indirect.hpp | Ehsan-aghapour/AI-Sheduling-Reprodution | 657dfa7c875445ab275c8a4418bbf29ed4d94891 | [
"MIT"
] | 952 | 2017-03-28T07:05:58.000Z | 2022-03-30T09:54:02.000Z | src/core/NEON/kernels/arm_gemm/interleave_indirect.hpp | Ehsan-aghapour/AI-Sheduling-Reprodution | 657dfa7c875445ab275c8a4418bbf29ed4d94891 | [
"MIT"
] | 714 | 2017-03-24T22:21:51.000Z | 2022-03-18T19:49:57.000Z | /*
* Copyright (c) 2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 51.25 | 248 | 0.772062 | Ehsan-aghapour |
6607d25ac47c58311a6f9ffd6a962ba94408bcbc | 1,119 | cpp | C++ | 659. Split Array into Consecutive Subsequences.cpp | rajeev-ranjan-au6/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | 3 | 2020-12-30T00:29:59.000Z | 2021-01-24T22:43:04.000Z | 659. Split Array into Consecutive Subsequences.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | 659. Split Array into Consecutive Subsequences.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPossible(vector<int>& nums) {
unordered_map<int, int>m, f;
for(auto x: nums) m[x]++;
for(auto x: nums){
if(!m[x]) continue;
else if(f[x]){
f[x]--;
f[x + 1]++;
}
else if(m[x + 1] &&... | 21.941176 | 46 | 0.291332 | rajeev-ranjan-au6 |
660cb898994464032fd438a6ca87874b22c583dd | 2,672 | cpp | C++ | Examples/Chess/src/chess/chess-piece.cpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | 2 | 2018-01-02T14:07:54.000Z | 2021-07-05T08:05:21.000Z | Examples/Chess/src/chess/chess-piece.cpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | null | null | null | Examples/Chess/src/chess/chess-piece.cpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | null | null | null |
#include "chess-piece.h"
#include "../selection-component.h"
#include "chess-piece-type.h"
#include "player.h"
using namespace bembel::kernel;
using namespace bembel::base;
using namespace bembel::graphics;
ChessPiece::ChessPiece(
ChessPieceType* type,
Scene* scene,
unsigned owner,
const glm::ivec2& start_... | 24.513761 | 80 | 0.706961 | JoachimHerber |
660d6eb475ae4f27bd98426e77b164e14789c2c6 | 4,557 | cpp | C++ | test/unit/ut_semaphore/ut_semaphore.cpp | moslevin/Mark3 | 780aeae99d47cb0ddae611b80597305ec852e588 | [
"BSD-3-Clause"
] | 11 | 2018-09-13T12:12:18.000Z | 2021-05-12T23:11:09.000Z | test/unit/ut_semaphore/ut_semaphore.cpp | moslevin/Mark3 | 780aeae99d47cb0ddae611b80597305ec852e588 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T20:37:22.000Z | 2019-02-18T20:37:22.000Z | test/unit/ut_semaphore/ut_semaphore.cpp | moslevin/Mark3 | 780aeae99d47cb0ddae611b80597305ec852e588 | [
"BSD-3-Clause"
] | 8 | 2018-09-13T12:12:27.000Z | 2021-07-04T10:59:44.000Z | /*===========================================================================
_____ _____ _____ _____
___| _|__ __|_ |__ __|__ |__ __| __ |__ ______
| \ / | || \ || | || |/ / ||___ |
| \/ | || \ || \ || \ ||___ |
|__/\__... | 32.319149 | 110 | 0.507571 | moslevin |
660e7684082c8d169e8024b5adff21757016f2cf | 463 | cpp | C++ | 1_screen_pipeline/02_build_cre/src/paths.cpp | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 5 | 2020-07-30T02:35:20.000Z | 2020-12-24T01:26:47.000Z | 1_screen_pipeline/02_build_cre/src/paths.cpp | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 6 | 2021-03-04T10:30:11.000Z | 2022-03-16T16:47:47.000Z | 1_screen_pipeline/02_build_cre/src/paths.cpp | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 2 | 2020-12-08T10:05:02.000Z | 2022-03-10T09:41:19.000Z | //
// SPDX-License-Identifier: MIT
// Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng
//
#include "paths.hpp"
namespace bib {
const std::string FileNames::AllGenes = "all-genes.txt";
const std::string FileNames::PcGenes = "pc-genes.txt";
const std::string FileNames::Tads = "tads.... | 27.235294 | 81 | 0.699784 | weng-lab |
66162f0c3c3438c5eef1f40d16a262abb503b556 | 9,867 | cpp | C++ | devtools/lit/unittests/ShellLexerTest.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | devtools/lit/unittests/ShellLexerTest.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | devtools/lit/unittests/ShellLexerTest.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 33.907216 | 85 | 0.560657 | normal-coder |
661f37f1d64155fc4a3ac30345d0ae4fdd261a72 | 10,616 | cpp | C++ | HW6/Helbling-Hokeemon.cpp | cole-h/CISP-400 | d73b0794a768f8f01bd68867e8950159bb3f2476 | [
"MIT"
] | 1 | 2020-08-09T16:45:45.000Z | 2020-08-09T16:45:45.000Z | HW6/Helbling-Hokeemon.cpp | cole-h/CISP-400 | d73b0794a768f8f01bd68867e8950159bb3f2476 | [
"MIT"
] | null | null | null | HW6/Helbling-Hokeemon.cpp | cole-h/CISP-400 | d73b0794a768f8f01bd68867e8950159bb3f2476 | [
"MIT"
] | 1 | 2022-03-20T00:06:05.000Z | 2022-03-20T00:06:05.000Z | /*
** Hokeemon.cpp - Homework 6: Hokeemon
** Cole Helbling, CISP 400
** 31 March 2018
*/
#include <algorithm>
#include <cassert>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
... | 24.072562 | 248 | 0.604088 | cole-h |
6625ac20637b329b68f7ac8ef029fb7751639c04 | 1,830 | cpp | C++ | lib/smooth/core/util/string_util.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 283 | 2017-07-18T15:31:42.000Z | 2022-03-30T12:05:03.000Z | lib/smooth/core/util/string_util.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 131 | 2017-08-23T18:49:03.000Z | 2021-11-29T08:03:21.000Z | lib/smooth/core/util/string_util.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... | 32.105263 | 98 | 0.603825 | luuvt |
662788ddca8eb5ac1918817ce0b3a0701c6a075b | 21,660 | cpp | C++ | clib/TextCompare.cpp | dehilsterlexis/eclide-1 | 0c1685cc7165191b5033d450c59aec479f01010a | [
"Apache-2.0"
] | 8 | 2016-08-29T13:34:18.000Z | 2020-12-04T15:20:36.000Z | clib/TextCompare.cpp | dehilsterlexis/eclide-1 | 0c1685cc7165191b5033d450c59aec479f01010a | [
"Apache-2.0"
] | 221 | 2016-06-20T19:51:48.000Z | 2022-03-29T20:46:46.000Z | clib/TextCompare.cpp | dehilsterlexis/eclide-1 | 0c1685cc7165191b5033d450c59aec479f01010a | [
"Apache-2.0"
] | 13 | 2016-06-24T15:59:31.000Z | 2022-01-01T11:48:20.000Z | #include "StdAfx.h"
#include "TextCompare.h"
namespace CLIB
{
// ===========================================================================
CLine::CLine() : m_origText(_T("\r\n"))
{
m_type = TYPE_UNKNOWN;
hash_string(m_origText);
m_charType.resize(m_origText.length(), CLine::TYPE_MATCH);
}
CLine::CLine(... | 29.875862 | 155 | 0.579594 | dehilsterlexis |
6629235e76a1a3b2d12122c8f6bd85273f47dd7e | 1,444 | cpp | C++ | test/to_container.cpp | CornedBee/range-v3 | 99a9f5f70e65dfcf6bbc8894bf2a22d8f5d4552a | [
"MIT"
] | null | null | null | test/to_container.cpp | CornedBee/range-v3 | 99a9f5f70e65dfcf6bbc8894bf2a22d8f5d4552a | [
"MIT"
] | null | null | null | test/to_container.cpp | CornedBee/range-v3 | 99a9f5f70e65dfcf6bbc8894bf2a22d8f5d4552a | [
"MIT"
] | null | null | null | // Range v3 library
//
// Copyright Eric Niebler 2014
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler/range-v3
#includ... | 33.581395 | 85 | 0.641274 | CornedBee |
662ad04f8535bd0dc7e99eb360718418e438b1fc | 3,631 | hh | C++ | src/callow/preconditioner/Preconditioner.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/callow/preconditioner/Preconditioner.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | src/callow/preconditioner/Preconditioner.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/**
* @file Preconditioner.hh
* @brief Preconditioner
* @author Jeremy Roberts
* @date Sep 18, 2012
*/
//---------------------------------------------------------------------------//
#ifndef callow_PRECONDITIONER_HH_
#define ... | 27.507576 | 79 | 0.522721 | RLReed |
662bd6d227f0653d692b6162b3e752ff52d7bd37 | 1,693 | hxx | C++ | macros.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | macros.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | macros.hxx | Arcoth/VTMPL | d83e4c6ab2e931bce60761997c782d6679a7cba4 | [
"BSL-1.0"
] | null | null | null | /* Copyright (c) Arcoth@c-plusplus.net, 2013-2014.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
#ifndef MACROS_HXX_INCLUDED
#define MACROS_HXX_INCLUDED
#include <type_traits>
# define VTMPL_SPLIT_1(s, x, m) m(... | 47.027778 | 149 | 0.638512 | Arcoth |
662f169616685a6d724af75805c536a614946fee | 584 | cpp | C++ | src/Game/velocityHandler.cpp | LeandreBl/cautious-fiesta | 21a08135253f6fea51835d81cce4a9920113fd18 | [
"Apache-2.0"
] | 3 | 2019-10-30T16:22:54.000Z | 2020-12-10T20:23:40.000Z | src/Game/velocityHandler.cpp | LeandreBl/cautious-fiesta | 21a08135253f6fea51835d81cce4a9920113fd18 | [
"Apache-2.0"
] | 63 | 2019-10-06T12:05:11.000Z | 2019-12-09T16:22:46.000Z | src/Game/velocityHandler.cpp | LeandreBl/cautious-fiesta | 21a08135253f6fea51835d81cce4a9920113fd18 | [
"Apache-2.0"
] | null | null | null | #include "GameManager.hpp"
#include "UdpConnection.hpp"
#include "GoPlayer.hpp"
namespace cf {
int UdpConnect::velocityHandler(sfs::Scene &scene, GameManager &manager, Serializer &s)
{
uint64_t id;
sf::Vector2f acceleration;
sf::Vector2f speed;
s >> id >> speed >> acceleration;
id += 1000;
auto *go = scene.getG... | 22.461538 | 87 | 0.657534 | LeandreBl |
6633cc13c8634802a408ef2d61c5b4cc990ff148 | 4,799 | cpp | C++ | action_generator/3rdparty/diverse_short_paths/src/KDiverseShort.cpp | anpl-technion/anpl_mrbsp | 973734fd2d1c7bb5e1405922300add489f088e81 | [
"MIT"
] | 1 | 2021-12-03T03:11:20.000Z | 2021-12-03T03:11:20.000Z | action_generator/3rdparty/diverse_short_paths/src/KDiverseShort.cpp | anpl-technion/anpl_mrbsp | 973734fd2d1c7bb5e1405922300add489f088e81 | [
"MIT"
] | null | null | null | action_generator/3rdparty/diverse_short_paths/src/KDiverseShort.cpp | anpl-technion/anpl_mrbsp | 973734fd2d1c7bb5e1405922300add489f088e81 | [
"MIT"
] | 1 | 2021-12-03T03:11:23.000Z | 2021-12-03T03:11:23.000Z | /*
* KDiverseShort.cpp
*/
#include "KDiverseShort.h"
#include "Graph.h"
#include "Path.h"
#include "TestData.h"
// Constructors, destructors
KDiverseShort::KDiverseShort (const TestData *data, PathDistanceMeasure *pDist)
: too_long(false), i(0), c(0), testData(data)
{
// Set up path storage and nearest neighb... | 25.526596 | 106 | 0.597625 | anpl-technion |
663472dff4e918fc3b415005bd1c66cbcf56f683 | 5,656 | cpp | C++ | pdMultiExample/src/ofApp.cpp | chikashimiyama/ofxPd | ca528059423bc5ebda1ad3ccfe61b6daa141a708 | [
"BSD-2-Clause",
"MIT-CMU"
] | 2 | 2018-04-08T03:36:15.000Z | 2019-06-16T16:51:50.000Z | pdMultiExample/src/ofApp.cpp | cuinjune/ofxPd | f5ff0c2ff359e8c1f04b9b5ee494869b5d35f418 | [
"BSD-2-Clause",
"MIT-CMU"
] | null | null | null | pdMultiExample/src/ofApp.cpp | cuinjune/ofxPd | f5ff0c2ff359e8c1f04b9b5ee494869b5d35f418 | [
"BSD-2-Clause",
"MIT-CMU"
] | null | null | null | /*
* Copyright (c) 2015 Dan Wilcox <danomatika@gmail.com>
*
* BSD Simplified License.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*
* See https://github.com/danomatika/ofxPd for documentation
*
*/
#include "ofApp.h"... | 30.907104 | 80 | 0.654349 | chikashimiyama |
663662fee77d85d3786f5c16a3053bbe9502ed05 | 924 | cpp | C++ | Applications/DataExplorer/DataView/MshItem.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | Applications/DataExplorer/DataView/MshItem.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | 25 | 2015-02-04T20:34:21.000Z | 2018-12-10T20:19:57.000Z | Applications/DataExplorer/DataView/MshItem.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \author Karsten Rink
* \date 2010-05-17
* \brief Implementation of the MshItem class.
*
* \copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* ... | 26.4 | 90 | 0.681818 | norihiro-w |
6639e49ba8a50776a8d6d604111c44ad43ed92c0 | 8,195 | hh | C++ | dune/gdt/spaces/basis/default.hh | pymor/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 4 | 2018-10-12T21:46:08.000Z | 2020-08-01T18:54:02.000Z | dune/gdt/spaces/basis/default.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 154 | 2016-02-16T13:50:54.000Z | 2021-12-13T11:04:29.000Z | dune/gdt/spaces/basis/default.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 5 | 2016-03-02T10:11:20.000Z | 2020-02-08T03:56:24.000Z | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 35.942982 | 117 | 0.690909 | pymor |
6639f875a1aaa210bee14f2a1e2986be42d9bd2a | 14,650 | cpp | C++ | modules/tracktion_engine/model/automation/modifiers/tracktion_EnvelopeFollowerModifier.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/model/automation/modifiers/tracktion_EnvelopeFollowerModifier.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/model/automation/modifiers/tracktion_EnvelopeFollowerModifier.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 34.389671 | 189 | 0.563481 | jbloit |
6639fb3bdec4e21a4bdc0144aabecc2ce8af0ea6 | 1,121 | hpp | C++ | shared/include/assets/sprite.hpp | alexdevteam/arpiyi | d4bf99d00fd50a715c1c871a01f618923d339938 | [
"MIT"
] | 6 | 2020-04-06T14:23:40.000Z | 2021-12-08T00:57:56.000Z | shared/include/assets/sprite.hpp | alexdevteam/arpiyi | d4bf99d00fd50a715c1c871a01f618923d339938 | [
"MIT"
] | 30 | 2020-04-06T13:29:54.000Z | 2020-05-22T13:48:12.000Z | shared/include/assets/sprite.hpp | alexdevteam/arpiyi | d4bf99d00fd50a715c1c871a01f618923d339938 | [
"MIT"
] | 4 | 2020-04-11T23:25:09.000Z | 2020-04-23T18:18:17.000Z | #ifndef ARPIYI_SPRITE_HPP
#define ARPIYI_SPRITE_HPP
#include "asset.hpp"
#include "asset_manager.hpp"
#include "texture.hpp"
#include "util/math.hpp"
#include <anton/math/vector2.hpp>
#include <filesystem>
namespace fs = std::filesystem;
// Anton math library
namespace aml = anton::math;
namespace arpiyi::assets {
... | 25.477273 | 95 | 0.676182 | alexdevteam |
66416bc7d6b59f53b54cca4ecaf476b38043b33e | 688 | hpp | C++ | graph/flow/minimum_cost_flow/minimum_cost_flow_with_minimum_flow_constraint.hpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | 1 | 2021-12-26T14:17:29.000Z | 2021-12-26T14:17:29.000Z | graph/flow/minimum_cost_flow/minimum_cost_flow_with_minimum_flow_constraint.hpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | 3 | 2020-07-13T06:23:02.000Z | 2022-02-16T08:54:26.000Z | graph/flow/minimum_cost_flow/minimum_cost_flow_with_minimum_flow_constraint.hpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | null | null | null | #pragma once
#include <limits>
template <template <typename, typename> class C, typename T, typename U>
struct MinimumCostFlowWithMinimumFlowConstraint {
const U uinf;
MinimumCostFlowWithMinimumFlowConstraint(int n, const U M, const U uinf = std::numeric_limits<U>::max())
: M(M), uinf(uinf), mcf(n, uinf... | 25.481481 | 107 | 0.609012 | emthrm |
664170f0b9193f56d97133001ac3fb37958b5d0f | 1,320 | cpp | C++ | src/jointFactory.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | 2 | 2016-06-23T21:20:19.000Z | 2020-03-25T15:01:07.000Z | src/jointFactory.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | src/jointFactory.cpp | bach74/Lisa | 6f79b909f734883cd05a0ccf8679199ae2e301cf | [
"MIT",
"Unlicense"
] | null | null | null | // =============================================================================
// JointFactory.cpp
//
// Copyright (C) 2007-2012 by Bach
// This file is part of the LiSA project.
// The LiSA project is licensed under MIT license.
//
// =======================================================================... | 24.90566 | 93 | 0.623485 | bach74 |
66421f9d942f2603df80cdadc956af5b498c955e | 711 | cpp | C++ | src/systems/sources/dirty.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/systems/sources/dirty.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/systems/sources/dirty.cpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#include "../dirty.hpp"
#include "../../utils/assert.hpp"
#include "../../components/dirty.hpp"
namespace Zen {
extern entt::registry g_registry;... | 20.911765 | 74 | 0.697609 | hexoctal |
6652089624a97b7fd91dbe096965d0e7ddde4caf | 251 | cpp | C++ | core/utils/test/src/main.cpp | nicsor/BreadCrumbs | 9ee5111d87d7a71b0a3910c14c4751eb3f1635ab | [
"MIT"
] | null | null | null | core/utils/test/src/main.cpp | nicsor/BreadCrumbs | 9ee5111d87d7a71b0a3910c14c4751eb3f1635ab | [
"MIT"
] | null | null | null | core/utils/test/src/main.cpp | nicsor/BreadCrumbs | 9ee5111d87d7a71b0a3910c14c4751eb3f1635ab | [
"MIT"
] | null | null | null | /**
* @file main.cpp
*
* @brief Test runner for utils.
*
* @author Nicolae Natea
* Contact: nicu@natea.ro
*/
#include <gtest/gtest.h>
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 14.764706 | 43 | 0.629482 | nicsor |
5946d915c47f7b26b5d415a84128b88dfcd0236b | 2,625 | cpp | C++ | src/wall.cpp | ParthGoyal1508/Jetpack-Joyride | 17acbcbf705c5869072ca192738e43f36b14dd22 | [
"MIT"
] | null | null | null | src/wall.cpp | ParthGoyal1508/Jetpack-Joyride | 17acbcbf705c5869072ca192738e43f36b14dd22 | [
"MIT"
] | null | null | null | src/wall.cpp | ParthGoyal1508/Jetpack-Joyride | 17acbcbf705c5869072ca192738e43f36b14dd22 | [
"MIT"
] | null | null | null | #include "wall.h"
#include "main.h"
using namespace std;
Wall::Wall(float x, float y, color_t color) {
this->position = glm::vec3(x, y, 0);
static const GLfloat vertex_buffer_data[] = {
-3.0f, 3.0f, 0.0f,//block A
-3.0f, -1.0f, 0.0f,
0.0f, 3.0f, 0.0f,
0.0f, 3.0f, 0.0f,
... | 24.53271 | 97 | 0.463238 | ParthGoyal1508 |
595cc13cedf4c180c1372860cdbf27314b9c7ecb | 7,079 | cpp | C++ | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfCMapEncoding.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfCMapEncoding.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | case-studies/PoDoFo/podofo/cib/podofo/doc/PdfCMapEncoding.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | #include "podofo/base/PdfCompilerCompat.h"
#include "podofo/base/PdfDictionary.h"
#include "podofo/base/PdfEncoding.h"
#include "podofo/base/PdfName.h"
#include "podofo/base/PdfObject.h"
#include "podofo/base/PdfRefCountedBuffer.h"
#include "podofo/base/PdfString.h"
#include "podofo/doc/PdfCMapEncoding.h"
#include "pod... | 56.632 | 242 | 0.787541 | satya-das |
5961c387358a7081b46a720255ef91aafa3f61e6 | 2,838 | cpp | C++ | SVEngine/src/event/SVEvent.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/event/SVEvent.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/event/SVEvent.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVEvent.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVEvent.h"
SVEvent::SVEvent() {
eventType = EVN_T_NONE;
eventName = "";
}
SVEvent::~SVEvent() {
}
bool SVEvent::isEqual(SVEventPtr _event) {
return strcmp(eventName.c_str(), _... | 18.076433 | 77 | 0.696265 | SVEChina |
596b411da6a4640880d6406f48d7b6da1900fb49 | 1,565 | cpp | C++ | src/Matrix.cpp | PalasanRares/WaterSim | ccdffc9d7442ca5bbbb9a2f807db127a9bda2740 | [
"MIT"
] | null | null | null | src/Matrix.cpp | PalasanRares/WaterSim | ccdffc9d7442ca5bbbb9a2f807db127a9bda2740 | [
"MIT"
] | null | null | null | src/Matrix.cpp | PalasanRares/WaterSim | ccdffc9d7442ca5bbbb9a2f807db127a9bda2740 | [
"MIT"
] | null | null | null | #include "Matrix.hpp"
#include "elements/Eraser.hpp"
#include "elements/liquids/Water.hpp"
#include "elements/liquids/Acid.hpp"
Matrix::Matrix(const int width, const int height) : width(width), height(height) {
matrix = new Element**[width];
for (int i = 0; i < width; i++) {
matrix[i] = new Element*[height];
... | 21.736111 | 85 | 0.574441 | PalasanRares |
596b54d228deb9784b0b52e8de87da967791f449 | 12,425 | cpp | C++ | projects/atLib/source/Statistics/atBPGNetwork.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | 1 | 2019-09-17T18:02:16.000Z | 2019-09-17T18:02:16.000Z | projects/atLib/source/Statistics/atBPGNetwork.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | null | null | null | projects/atLib/source/Statistics/atBPGNetwork.cpp | mbatc/atLib | 7e3a69515f504a05a312d234291f02863e291631 | [
"MIT"
] | null | null | null |
// -----------------------------------------------------------------------------
// The MIT License
//
// Copyright(c) 2020 Michael Batchelor,
//
// 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 ... | 42.55137 | 168 | 0.716217 | mbatc |
5974479cbe0768abdeb2fd62190d4977a1efef09 | 1,246 | hpp | C++ | engine/include/krao.hpp | insanityinc/laq-engine | 323225589335ce1f95409de25dca878cccb9233a | [
"MIT"
] | null | null | null | engine/include/krao.hpp | insanityinc/laq-engine | 323225589335ce1f95409de25dca878cccb9233a | [
"MIT"
] | null | null | null | engine/include/krao.hpp | insanityinc/laq-engine | 323225589335ce1f95409de25dca878cccb9233a | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 João Afonso. All rights reserved.
*/
#ifndef ENGINE_INCLUDE_KRAO_H_
#define ENGINE_INCLUDE_KRAO_H_
#include <vector>
#include "include/block.hpp"
namespace engine {
void krao(const FilteredBitVectorBlock& A,
const DecimalVectorBlock& B,
FilteredDecimalVectorBlock *C);
v... | 25.428571 | 55 | 0.684591 | insanityinc |
597bc4e46e269ac91f09b45697e53e9ed9dc4199 | 11,193 | cpp | C++ | Patches/FogAdjustments.cpp | TheMachineAmbassador/Silent-Hill-2-Enhancements | 41650db4a97ca6085db69446e7a20042b344e77f | [
"Zlib"
] | null | null | null | Patches/FogAdjustments.cpp | TheMachineAmbassador/Silent-Hill-2-Enhancements | 41650db4a97ca6085db69446e7a20042b344e77f | [
"Zlib"
] | null | null | null | Patches/FogAdjustments.cpp | TheMachineAmbassador/Silent-Hill-2-Enhancements | 41650db4a97ca6085db69446e7a20042b344e77f | [
"Zlib"
] | null | null | null | /**
* Copyright (C) 2022 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including co... | 30.169811 | 161 | 0.716698 | TheMachineAmbassador |
59821ad2edcb7a1d379b03a278e45ab1efa35b2e | 1,821 | cpp | C++ | Engine/media/audio/clip_myjgmod.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 21 | 2019-05-08T23:50:29.000Z | 2021-04-28T07:59:17.000Z | Engine/media/audio/clip_myjgmod.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | null | null | null | Engine/media/audio/clip_myjgmod.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 6 | 2019-05-19T04:30:15.000Z | 2022-01-29T05:26:46.000Z | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 18.581633 | 79 | 0.571664 | monkey0506 |
5986d79ca0a1e1183f2b80e17c83283c4e365916 | 7,376 | cpp | C++ | testing/integration_testing/external/imagick_test.cpp | stian-svedenborg/xyuv | c725b4f926ef3c5311878b0b8b9c4dacbbf0db34 | [
"MIT"
] | 5 | 2015-08-13T18:46:45.000Z | 2018-04-18T18:51:43.000Z | testing/integration_testing/external/imagick_test.cpp | stian-svedenborg/xyuv | c725b4f926ef3c5311878b0b8b9c4dacbbf0db34 | [
"MIT"
] | 18 | 2015-08-19T13:25:30.000Z | 2017-05-08T10:55:48.000Z | testing/integration_testing/external/imagick_test.cpp | stian-svedenborg/xyuv | c725b4f926ef3c5311878b0b8b9c4dacbbf0db34 | [
"MIT"
] | 3 | 2016-07-21T12:18:06.000Z | 2018-05-19T05:32:32.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2015-2016 Stian Valentin Svedenborg
*
* 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... | 40.086957 | 149 | 0.699024 | stian-svedenborg |
5989ce11965156c45be40c78babf6c10f3f55745 | 153 | cpp | C++ | Carbonite/Source/Renderer/RTRenderer.cpp | Carcass-Project/Carbonite | 8b0c7be2c730bb2b5c734725fcb480b8b1945205 | [
"MIT"
] | null | null | null | Carbonite/Source/Renderer/RTRenderer.cpp | Carcass-Project/Carbonite | 8b0c7be2c730bb2b5c734725fcb480b8b1945205 | [
"MIT"
] | null | null | null | Carbonite/Source/Renderer/RTRenderer.cpp | Carcass-Project/Carbonite | 8b0c7be2c730bb2b5c734725fcb480b8b1945205 | [
"MIT"
] | null | null | null | #include "PCH.h"
#include "Renderer/RTRenderer.h"
void RTRenderer::initImpl()
{
}
void RTRenderer::deinitImpl()
{
}
void RTRenderer::renderImpl()
{
} | 10.2 | 32 | 0.699346 | Carcass-Project |
598bd82ab625adf95d988a51bba1be1e90e94703 | 3,615 | cpp | C++ | micrOS/micrOS_Storage.cpp | becker88/ArduOS | cc6a8edba4fed17be871acdbf801937e1d55a960 | [
"MIT"
] | 28 | 2018-01-03T13:09:27.000Z | 2022-01-18T02:16:06.000Z | micrOS/micrOS_Storage.cpp | becker88/ArduOS | cc6a8edba4fed17be871acdbf801937e1d55a960 | [
"MIT"
] | 2 | 2019-03-11T04:01:20.000Z | 2021-04-15T16:01:22.000Z | micrOS/micrOS_Storage.cpp | becker88/ArduOS | cc6a8edba4fed17be871acdbf801937e1d55a960 | [
"MIT"
] | 6 | 2018-03-20T13:49:10.000Z | 2021-07-12T13:14:34.000Z | //
// micrOS Storage Media System
//
#include <SPI.h>
#include <SD.h>
#include "micrOS_Storage.h"
#include "kernel.h"
#include "Kernel_Returns.h"
Sd2Card MicroSD;
SdVolume IOLowLevelVolume;
uint32_t VolumeSize;
//Pin 10 for MCUFRIEND's SDCard! Change accordingly.
kern_return_t initialize_storage_driver() {
pinMo... | 32.276786 | 132 | 0.745228 | becker88 |
598c7c2cf3545ce826693e3f12356080aa8da4d6 | 2,519 | cpp | C++ | Piscines/CPP/day04/ex00/Sorcerer.cpp | SpeedFireSho/42-1 | 5d7ce17910794a28ca44d937651b961feadcff11 | [
"MIT"
] | 84 | 2020-10-13T14:50:11.000Z | 2022-01-11T11:19:36.000Z | Piscines/CPP/day04/ex00/Sorcerer.cpp | SpeedFireSho/42-1 | 5d7ce17910794a28ca44d937651b961feadcff11 | [
"MIT"
] | null | null | null | Piscines/CPP/day04/ex00/Sorcerer.cpp | SpeedFireSho/42-1 | 5d7ce17910794a28ca44d937651b961feadcff11 | [
"MIT"
] | 43 | 2020-09-10T19:26:37.000Z | 2021-12-28T13:53:55.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Sorcerer.cpp :+: :+: :+: ... | 21.529915 | 80 | 0.39738 | SpeedFireSho |
598e4c4f2f87aceec61ba7fff8959248caaef759 | 2,450 | cpp | C++ | Source/StateMachine.cpp | ace13/MiniLD57 | 5035d6b19eac1bfc5b6289790286713274247375 | [
"MIT"
] | null | null | null | Source/StateMachine.cpp | ace13/MiniLD57 | 5035d6b19eac1bfc5b6289790286713274247375 | [
"MIT"
] | null | null | null | Source/StateMachine.cpp | ace13/MiniLD57 | 5035d6b19eac1bfc5b6289790286713274247375 | [
"MIT"
] | null | null | null | #include "StateMachine.hpp"
using namespace Revertris;
StateMachine::StateMachine() :
mStateSwitch(new osg::Switch), mCurState(nullptr), mCurStateID(IState::None)
{
}
StateMachine::~StateMachine()
{
for (auto& state : mStateMap)
{
mStateSwitch->removeChild(state.second->getScene());
del... | 21.875 | 128 | 0.638776 | ace13 |
5993def22438b5b9a35d42f54316932460699f12 | 8,740 | cpp | C++ | examples/002-readme-examples/example.cpp | MichaelTrikergiotis/mtl-examples | ac95c85a7d73847a2331da8b54e382b23d8f0a05 | [
"MIT"
] | 2 | 2021-01-10T13:55:24.000Z | 2021-09-02T17:07:55.000Z | examples/002-readme-examples/example.cpp | MichaelTrikergiotis/mtl-examples | ac95c85a7d73847a2331da8b54e382b23d8f0a05 | [
"MIT"
] | null | null | null | examples/002-readme-examples/example.cpp | MichaelTrikergiotis/mtl-examples | ac95c85a7d73847a2331da8b54e382b23d8f0a05 | [
"MIT"
] | null | null | null | // various examples from the readme.md of mtl by Michael Trikergiotis
// 15/11/2020
//
// These examples are taken from the readme.md of mtl :
// https://github.com/MichaelTrikergiotis/mtl
//
// Copyright (c) Michael Trikergiotis. All Rights Reserved.
// Licensed under the MIT license. See LICENSE in the project root ... | 35.384615 | 98 | 0.602746 | MichaelTrikergiotis |
59954831f182d90c0a5167004023c917d1ea6b0f | 2,566 | hpp | C++ | include/Nazara/Shader/Ast/IndexRemapperVisitor.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Shader/Ast/IndexRemapperVisitor.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Shader/Ast/IndexRemapperVisitor.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_SHADER_AST_INDEXREMAPPERVISITOR_HPP
#define NAZARA_SHADER_AST_INDEXREMAPPERVISITOR_HP... | 37.188406 | 106 | 0.788387 | jayrulez |
5998b3a0017d2a611026b3955755b81fb6d169dc | 4,291 | cpp | C++ | Equipment.cpp | b4naser/Emberrain | c49d42208ed65c8950687315988ae6ba63552782 | [
"MIT"
] | null | null | null | Equipment.cpp | b4naser/Emberrain | c49d42208ed65c8950687315988ae6ba63552782 | [
"MIT"
] | null | null | null | Equipment.cpp | b4naser/Emberrain | c49d42208ed65c8950687315988ae6ba63552782 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <Windows.h>
#include "Equipment.h"
using namespace std;
Equipment::Equipment()
{
this->weapon = new Weapon();
this->shield = new Shield();
this->armor = new Armor();
this->boots = new Boots();
this->crystals = 0;
}
int Equipment::getDefense() const
{
return this... | 25.849398 | 106 | 0.692146 | b4naser |
599ca206c324c067f40fef7aa82f8c60ef71be00 | 263 | hpp | C++ | game/sources/data/zombie_0.png.data.hpp | BlackMATov/gba-game | 3e557c4f90d6d37205511bf704dc33243ef36954 | [
"MIT"
] | 4 | 2019-01-20T16:10:56.000Z | 2022-02-16T22:12:58.000Z | game/sources/data/zombie_0.png.data.hpp | BlackMATov/gba-game | 3e557c4f90d6d37205511bf704dc33243ef36954 | [
"MIT"
] | null | null | null | game/sources/data/zombie_0.png.data.hpp | BlackMATov/gba-game | 3e557c4f90d6d37205511bf704dc33243ef36954 | [
"MIT"
] | 1 | 2019-01-21T08:50:39.000Z | 2019-01-21T08:50:39.000Z | #pragma once
#include <cstdint>
#include <cstddef>
namespace embedded_data {
extern const std::uint16_t* zombie_0;
extern const std::size_t zombie_0_bytes;
extern const std::uint16_t zombie_0_width;
extern const std::uint16_t zombie_0_height;
}
| 21.916667 | 47 | 0.749049 | BlackMATov |
599e90116ee5e4b2b3512e32e5783c5dcf1aff05 | 371 | cpp | C++ | test-snippets/iterative_fibonacci_series.cpp | aditya2000/coding-practice | 9b425704dd2ccadeb89b51051d0ef7f0642ea334 | [
"MIT"
] | null | null | null | test-snippets/iterative_fibonacci_series.cpp | aditya2000/coding-practice | 9b425704dd2ccadeb89b51051d0ef7f0642ea334 | [
"MIT"
] | null | null | null | test-snippets/iterative_fibonacci_series.cpp | aditya2000/coding-practice | 9b425704dd2ccadeb89b51051d0ef7f0642ea334 | [
"MIT"
] | 1 | 2018-10-02T14:27:59.000Z | 2018-10-02T14:27:59.000Z | /*
@author - Naveen Rohilla
Objective : To display fibonacci series upto N
Approach :
iterative approach - displays the element inside the loop
*/
#include<iostream>
using namespace std;
#define N 10
int main()
{
int a=0,b=1,c,i=3;
cout<<a<<" ";
cout<<b<<" ";
do
{
c=a+b;
cout<<c<<" ";
... | 12.793103 | 57 | 0.566038 | aditya2000 |
59a5eeeaf2733780ac6bad5d332816977acc5eef | 1,921 | cpp | C++ | Deitel/Chapter17/examples/17.14/ClientData.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter17/examples/17.14/ClientData.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter17/examples/17.14/ClientData.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 33.12069 | 88 | 0.626757 | SebastianTirado |
59a904672270a7b95ba580726acf3ccdc66d7de4 | 3,844 | cpp | C++ | infra/syntax/XmlFormatter.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 1 | 2021-05-18T07:21:59.000Z | 2021-05-18T07:21:59.000Z | infra/syntax/XmlFormatter.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | null | null | null | infra/syntax/XmlFormatter.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | null | null | null | #include "infra/syntax/XmlFormatter.hpp"
namespace
{
namespace
{
void InsertPredefinedEntity(infra::TextOutputStream& stream, char c)
{
switch (c)
{
case '<': stream << "<"; break;
case '>': stream << ">"; break;
case '&': str... | 28.902256 | 131 | 0.53538 | oguzcanphilips |
59af58fff525e62140fccf2e54f863764fa7fddb | 11,497 | cpp | C++ | src/main.cpp | luebbe/WordClock | 218bf9f626c495f690b11d11637cbab0b65c284b | [
"MIT"
] | 5 | 2020-12-17T20:03:58.000Z | 2022-01-19T21:57:06.000Z | src/main.cpp | luebbe/WordClock | 218bf9f626c495f690b11d11637cbab0b65c284b | [
"MIT"
] | null | null | null | src/main.cpp | luebbe/WordClock | 218bf9f626c495f690b11d11637cbab0b65c284b | [
"MIT"
] | null | null | null | #include <FastLED.h>
#include <ESP8266WiFi.h>
#include <Ticker.h>
#include <AsyncMqttClient.h>
#include <BH1750.h>
#include "OtaHelper.h"
#include "TimeHelper.h"
#include "WordClock.h"
#include "StatusAnimation.h"
#include "SnakeAnimation.h"
#include "RainbowAnimation.h"
#include "ArduinoBorealis.h"
#include "MatrixAn... | 26.248858 | 158 | 0.717318 | luebbe |
59b580e5b1ec45200b8dea17acf5af09526787e3 | 7,590 | cpp | C++ | HelperFunctions/populateVkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/populateVkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/populateVkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Douglas Kaip
*
* 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 ... | 41.027027 | 193 | 0.619631 | dkaip |
59b5b20a57009407c99ba65835bcc5411304ea88 | 6,642 | cpp | C++ | ui/ui_cdkey.cpp | kugelrund/Elite-Reinforce | a2fe0c0480ff2d9cdc241b9e5416ee7f298f00ca | [
"DOC"
] | 10 | 2017-07-04T14:38:48.000Z | 2022-03-08T22:46:39.000Z | ui/ui_cdkey.cpp | UberGames/SP-Mod-Source-Code | 04e0e618d1ee57a2919f1a852a688c03b1aa155d | [
"DOC"
] | null | null | null | ui/ui_cdkey.cpp | UberGames/SP-Mod-Source-Code | 04e0e618d1ee57a2919f1a852a688c03b1aa155d | [
"DOC"
] | 2 | 2017-04-23T18:24:44.000Z | 2021-11-19T23:27:03.000Z | #include "ui_local.h"
#include "gameinfo.h"
//===================================================================
//
// CDKey Menu
//
//===================================================================
// menu action identifiers
#define ID_MAINMENU 100
#define ID_CONTROLS 101
#define ID_VIDEO 102
#define ID_SOUN... | 31.037383 | 111 | 0.704005 | kugelrund |
59b90204ed19628aacbf05e179c8dd567f9df61f | 5,003 | cpp | C++ | lw2/matrix.cpp | Grigory2001/cpp_labs | 3cf3b2b24ba9c55d7edc9dfdee4b6bc3f8f45ee0 | [
"MIT"
] | null | null | null | lw2/matrix.cpp | Grigory2001/cpp_labs | 3cf3b2b24ba9c55d7edc9dfdee4b6bc3f8f45ee0 | [
"MIT"
] | null | null | null | lw2/matrix.cpp | Grigory2001/cpp_labs | 3cf3b2b24ba9c55d7edc9dfdee4b6bc3f8f45ee0 | [
"MIT"
] | null | null | null | #include "matrix.h"
Matrix::Matrix(unsigned rows, unsigned cols, double initial = 0){
_rows = rows;
_cols = cols;
v.resize(rows);
for (unsigned i = 0; i < v.size(); i++)
{
v[i].resize(cols, initial);
}
}
Matrix::Matrix(const Matrix &other)
{
_cols = other.get_cols();
_rows = o... | 19.542969 | 74 | 0.452129 | Grigory2001 |
59c3a879c1297af54ddfecbd09bdc80f90e5a814 | 524 | cpp | C++ | ablateLibrary/domain/field.cpp | UBCHREST/ablate | 02a5b390ba4e257b96bd19f4604c269598dccd9d | [
"BSD-3-Clause"
] | 3 | 2021-01-19T21:29:10.000Z | 2021-08-20T19:54:49.000Z | ablateLibrary/domain/field.cpp | UBCHREST/ablate | 02a5b390ba4e257b96bd19f4604c269598dccd9d | [
"BSD-3-Clause"
] | 124 | 2021-01-14T15:30:48.000Z | 2022-03-28T14:44:31.000Z | ablateLibrary/domain/field.cpp | UBCHREST/ablate | 02a5b390ba4e257b96bd19f4604c269598dccd9d | [
"BSD-3-Clause"
] | 17 | 2021-02-10T22:34:57.000Z | 2022-03-21T18:46:06.000Z | #include "field.hpp"
#include <map>
static const std::map<std::string, ablate::domain::FieldType> stringToFieldLocation = {
{"sol", ablate::domain::FieldType::SOL}, {"SOL", ablate::domain::FieldType::SOL}, {"AUX", ablate::domain::FieldType::AUX}, {"aux", ablate::domain::FieldType::AUX}};
std::istream& ablate::dom... | 40.307692 | 168 | 0.673664 | UBCHREST |
59c6f7ac4735c69d8e144aacd0e06c5fabb768e7 | 1,081 | cpp | C++ | src/snwc/snwc.cpp | Sojourn/snowda | 432118a9ae561b8d6119cd34d1935a08a70e49cc | [
"MIT"
] | null | null | null | src/snwc/snwc.cpp | Sojourn/snowda | 432118a9ae561b8d6119cd34d1935a08a70e49cc | [
"MIT"
] | null | null | null | src/snwc/snwc.cpp | Sojourn/snowda | 432118a9ae561b8d6119cd34d1935a08a70e49cc | [
"MIT"
] | null | null | null | #include "snwc.h"
const char *src =
"a = 3"
"b = 4"
"c = a + b + a";
int main(int argc, char **argv) {
AstTranslator translator(src);
const Code &code = translator.code();
std::vector<uint16_t> frame;
frame.resize(code.stack);
for (const Instruction &inst: code.insts) {
switch (inst.kind... | 27.025 | 76 | 0.53839 | Sojourn |
59c75ae05efbe16ce03c4f3a0b36ed07995e47b3 | 9,545 | hpp | C++ | shared/include/ucfb_writer.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | shared/include/ucfb_writer.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | shared/include/ucfb_writer.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "compose_exception.hpp"
#include "magic_number.hpp"
#include "small_function.hpp"
#include "utility.hpp"
#include <algorithm>
#include <concepts>
#include <cstdint>
#include <filesystem>
#include <fstream>
#include <iterator>
#include <ostream>
#include <span>
#include <stdexcept>
#include <stri... | 26.736695 | 99 | 0.665165 | SleepKiller |
59c9ac4a0d8d024fd37705a9549b7b5eb701a5df | 26,205 | cpp | C++ | src/cui/sas5/sas5.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T00:58:45.000Z | 2021-07-21T00:58:45.000Z | src/cui/sas5/sas5.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | null | null | null | src/cui/sas5/sas5.cpp | MaiReo/crass | 11579527090faecab27f98b1e221172822928f57 | [
"BSD-3-Clause"
] | null | null | null | #include <windows.h>
#include <tchar.h>
#include <crass_types.h>
#include <acui.h>
#include <cui.h>
#include <package.h>
#include <resource.h>
#include <cui_error.h>
#include <utility.h>
#include <stdio.h>
// M:\すたじお緑茶\片恋いの月~体験版~
struct acui_information sas5_cui_information = {
_T("秋山構平"), /* copyright */
_T("So... | 23.418231 | 105 | 0.636863 | MaiReo |
59cedac791af3780cdbf577d4c42954148d3c8d8 | 388 | cpp | C++ | src/apps/tcp_server/share_data.cpp | rnascunha/xerock | a8d1ab46fa87c300ab9737e4d5c71b9311c17a48 | [
"MIT"
] | null | null | null | src/apps/tcp_server/share_data.cpp | rnascunha/xerock | a8d1ab46fa87c300ab9737e4d5c71b9311c17a48 | [
"MIT"
] | null | null | null | src/apps/tcp_server/share_data.cpp | rnascunha/xerock | a8d1ab46fa87c300ab9737e4d5c71b9311c17a48 | [
"MIT"
] | 1 | 2021-03-10T13:02:13.000Z | 2021-03-10T13:02:13.000Z | #include "share_data.hpp"
#include "make.hpp"
namespace Apps{
namespace TCP_Server{
void Data_Share::read_handler(Byte_Array data,
boost::asio::ip::tcp::endpoint const& ep,
boost::asio::ip::tcp::endpoint const& local_ep)
{
Core::Propagator::write_all(
Byte_Array(
make_tcp_server_received_message(
... | 17.636364 | 49 | 0.677835 | rnascunha |
59d101495d2232c0243c988c7b4f0816d5ecccb5 | 694 | cpp | C++ | PROBLEM_C/Codeforces- 1037C. Equalize.cpp | mirazib71/CODEFORCES | d92969874dd3826a771bb7b1dc32437418b1c706 | [
"MIT"
] | null | null | null | PROBLEM_C/Codeforces- 1037C. Equalize.cpp | mirazib71/CODEFORCES | d92969874dd3826a771bb7b1dc32437418b1c706 | [
"MIT"
] | null | null | null | PROBLEM_C/Codeforces- 1037C. Equalize.cpp | mirazib71/CODEFORCES | d92969874dd3826a771bb7b1dc32437418b1c706 | [
"MIT"
] | null | null | null |
/// Codeforces- 1037C. Equalize
/// Category: greedy .(easy)
/// 1 0 or 0 1
/// 0 1 1 0 we have to swap these situations.
/// otherwise we will flip bits in a string
/// this is optimal choice .
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
int n;
string a,b... | 14.458333 | 56 | 0.463977 | mirazib71 |
59d6a1963fba8f7fcfa1d4b1088c3601dd03bebf | 79,388 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/CustomControls/control_menu_shadow_top.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/CustomControls/control_menu_shadow_top.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/CustomControls/control_menu_shadow_top.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _control_menu_shadow_top[] LOCATION_EXTFLASH_ATTRIBUTE = { // 116x34 ARGB8888 pixels.
0x28,0x20,0x08,0xf7,0x30,0x20,0x08,0xf7,0x28,0x20,0x08,0xf7,0x28,0x20,0x08,0xf7,0x30,0x... | 282.519573 | 320 | 0.797262 | ramkumarkoppu |
59d99ba994308c475f232ea5e6a902956a04a72b | 696 | cpp | C++ | 10 Days of Statistics/Day_6/CLT_3.cpp | yurkovak/HackerRank | a10136e508692f98e76e7c27d9cd801a3380f8ba | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day_6/CLT_3.cpp | yurkovak/HackerRank | a10136e508692f98e76e7c27d9cd801a3380f8ba | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day_6/CLT_3.cpp | yurkovak/HackerRank | a10136e508692f98e76e7c27d9cd801a3380f8ba | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <math.h>
// using namespace std;
float CDF(float mean, float stdev, float x){
float erf_arg = (x - mean) / (pow(2, 0.5) * stdev);
return (1 + erf(erf_arg))/2.;
}
int main() {
/* Enter your code here. R... | 22.451613 | 79 | 0.586207 | yurkovak |
59db631c18954ef2592d11406e5cd920d60895ec | 7,823 | cpp | C++ | main/mz-dumper.cpp | Fetrovsky/bintool | 3c9d871d4ca2dff8b3b7cefc924da3e9408858a2 | [
"BSD-3-Clause"
] | null | null | null | main/mz-dumper.cpp | Fetrovsky/bintool | 3c9d871d4ca2dff8b3b7cefc924da3e9408858a2 | [
"BSD-3-Clause"
] | null | null | null | main/mz-dumper.cpp | Fetrovsky/bintool | 3c9d871d4ca2dff8b3b7cefc924da3e9408858a2 | [
"BSD-3-Clause"
] | null | null | null | #include "mz-dumper.h"
#include <chrono>
#include <ctime>
#include <iostream>
#include <mz/mz.h>
using std::chrono::seconds;
using std::chrono::system_clock;
using std::chrono::time_point;
using std::chrono::operator""y;
using std::cout;
using std::endl;
using typeid_t = void const*;
template<typename Optional_Hea... | 37.075829 | 113 | 0.62917 | Fetrovsky |
59e6053fba61ff1ad19c8d92171ed35baae7426b | 8,207 | cpp | C++ | src/oxtfGraphReader.cpp | MRKonrad/itkTensorFlow | f4712784ba52a1f28103a098277f6ddc5c3731c5 | [
"MIT"
] | null | null | null | src/oxtfGraphReader.cpp | MRKonrad/itkTensorFlow | f4712784ba52a1f28103a098277f6ddc5c3731c5 | [
"MIT"
] | null | null | null | src/oxtfGraphReader.cpp | MRKonrad/itkTensorFlow | f4712784ba52a1f28103a098277f6ddc5c3731c5 | [
"MIT"
] | null | null | null | //
// Created by Konrad Werys on 01/04/2019.
//
#include "oxtfGraphReader.h"
#include "oxtfUtils.h"
#include "tf_utils.hpp"
namespace oxtf {
int GraphReader::readGraph() {
// check path
if (_graphPath.empty()) {
std::cerr << "Can't load graph" << std::endl;
return 1; //E... | 30.969811 | 161 | 0.549165 | MRKonrad |
59e72ccba44ec1a9abeaea345f489edc4389d680 | 17,436 | hpp | C++ | src/architecture/x86/encoder.hpp | Midi12/cx_assembler | 1c1f800344a231fd13e52f90f4fd3e2160c84a84 | [
"MIT"
] | 17 | 2021-07-12T18:10:37.000Z | 2022-03-06T20:45:01.000Z | src/architecture/x86/encoder.hpp | Midi12/cx_assembler | 1c1f800344a231fd13e52f90f4fd3e2160c84a84 | [
"MIT"
] | null | null | null | src/architecture/x86/encoder.hpp | Midi12/cx_assembler | 1c1f800344a231fd13e52f90f4fd3e2160c84a84 | [
"MIT"
] | 1 | 2021-07-15T06:54:45.000Z | 2021-07-15T06:54:45.000Z | #pragma once
#include <experimental/array>
#include <tuple>
#include <utility>
#include "instruction_db.hpp"
#include "instruction_db.g.hpp"
#include "opcode_extension.hpp"
#include "operands.hpp"
#include "rex.hpp"
namespace cx_assembler::x86 {
namespace internal {
constexpr std::uint8_t prefix_16bit ... | 40.929577 | 168 | 0.568651 | Midi12 |
59e76a8e062fe5f05439964380b667a3c0124dce | 48 | hpp | C++ | src/boost_graph_fruchterman_reingold.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_graph_fruchterman_reingold.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_graph_fruchterman_reingold.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/graph/fruchterman_reingold.hpp>
| 24 | 47 | 0.833333 | miathedev |
59ea1959bf89148a5f80bc343352aad4f67105ab | 3,793 | cpp | C++ | Firmware/app/alpha_nvc/main/nvs.cpp | eptecon/NoiseDetector | 99c2cf4440a50f7b5511168a0ddaf7cdccc219c0 | [
"MIT"
] | null | null | null | Firmware/app/alpha_nvc/main/nvs.cpp | eptecon/NoiseDetector | 99c2cf4440a50f7b5511168a0ddaf7cdccc219c0 | [
"MIT"
] | null | null | null | Firmware/app/alpha_nvc/main/nvs.cpp | eptecon/NoiseDetector | 99c2cf4440a50f7b5511168a0ddaf7cdccc219c0 | [
"MIT"
] | null | null | null | //
// Created by Oleksandra Baga on 12.05.18.
//
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_err_to_name.c"
#include "nvs.h"
int16_t referenceVoltage = -1;
int16_t isBuzzerOn = -1;
int16_t isLedOn = -1;
int16_t noiseThreshol... | 28.734848 | 90 | 0.576852 | eptecon |
59ef478bbf4abc9533f542790e4f357f8da02245 | 12,009 | cpp | C++ | cache/current/debug.cpp | hcbozo/GUI | b243eafbf07ece3b09b32c46e36a4eb32708de8e | [
"MIT"
] | 3 | 2020-05-07T13:33:30.000Z | 2021-06-04T17:18:25.000Z | cache/current/debug.cpp | bozotics/GUI | b243eafbf07ece3b09b32c46e36a4eb32708de8e | [
"MIT"
] | null | null | null | cache/current/debug.cpp | bozotics/GUI | b243eafbf07ece3b09b32c46e36a4eb32708de8e | [
"MIT"
] | null | null | null | #include "camera.h"
/*
This program will be run when it is connected to a laptop and the GUI program is launched
*/
void picam::debug()
{
debugCheck = true;
debugImages[0] = Mat::zeros(prop.height, prop.width, CV_8UC3);
Mat imageToSend, tempMat;
int imageSize, dualMode = 0, angle, distance;
unsign... | 41.98951 | 152 | 0.536431 | hcbozo |
59f16c6658088da17b6c8f2abf1b46ce2611a36c | 818 | cpp | C++ | Sources/Engine/Graphics/VertexFormats/VertexPositionTexture.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/Graphics/VertexFormats/VertexPositionTexture.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/Graphics/VertexFormats/VertexPositionTexture.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
VertexPositionTexture.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "VertexPositionTexture.h"
namespace SonataEngine
{
const VertexElement Ver... | 30.296296 | 103 | 0.663814 | jdelezenne |
94013edf38b17032aa44dbfdfb6f838decc6fcf4 | 7,836 | cpp | C++ | kernel/src/core/virtualmemory.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 87 | 2019-03-04T21:16:20.000Z | 2022-01-30T15:10:44.000Z | kernel/src/core/virtualmemory.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 5 | 2019-04-24T10:33:55.000Z | 2021-06-13T09:46:28.000Z | kernel/src/core/virtualmemory.cpp | Remco123/CactusOS | de4c61211c2908cf1a27d8ccbeb6340133772454 | [
"MIT"
] | 2 | 2020-11-13T08:56:09.000Z | 2021-08-01T06:38:31.000Z | #include <core/virtualmemory.h>
#include <system/log.h>
#include <system/debugger.h>
using namespace CactusOS;
using namespace CactusOS::common;
using namespace CactusOS::core;
using namespace CactusOS::system;
void VirtualMemoryManager::ReloadCR3()
{
asm volatile("movl %cr3,%eax");
asm volatile("movl %eax,%cr3"... | 37.492823 | 144 | 0.696529 | Remco123 |
9402eff23a9cb3618d903f34b4b001f7c8683b5c | 1,711 | cpp | C++ | test/suites/LoginLeasedTest.cpp | eburghar/cconfd | 7e053b695e07bc0858902db7d24b62499936ff29 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/suites/LoginLeasedTest.cpp | eburghar/cconfd | 7e053b695e07bc0858902db7d24b62499936ff29 | [
"Apache-2.0",
"MIT"
] | null | null | null | test/suites/LoginLeasedTest.cpp | eburghar/cconfd | 7e053b695e07bc0858902db7d24b62499936ff29 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "components/LoginLeased.h"
#include <gtest/gtest.h>
// TODO test reply error
// {
// "errors": [
// "{\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"tokenreviews.authentication.k8s.io is forbidden: User \\\"system:serviceaccount:default:default\\\" cannot... | 28.516667 | 429 | 0.681473 | eburghar |
940560556f4357acf04ddbe007222266e2a24bf2 | 10,445 | cpp | C++ | src/Rendering/GUI/QtGUI/PPropertyWidget.cpp | devenguo/peridyno | e9e18a9aa676664e9be75140fad987d3b1ad2fc1 | [
"Apache-2.0"
] | null | null | null | src/Rendering/GUI/QtGUI/PPropertyWidget.cpp | devenguo/peridyno | e9e18a9aa676664e9be75140fad987d3b1ad2fc1 | [
"Apache-2.0"
] | null | null | null | src/Rendering/GUI/QtGUI/PPropertyWidget.cpp | devenguo/peridyno | e9e18a9aa676664e9be75140fad987d3b1ad2fc1 | [
"Apache-2.0"
] | null | null | null | #include "PPropertyWidget.h"
#include "Module.h"
#include "Node.h"
#include "SceneGraph.h"
#include "NodeEditor/QtNodeWidget.h"
#include "NodeEditor/QtModuleWidget.h"
#include "PCustomWidgets.h"
#include "Common.h"
#include <QGroupBox>
#include <QLabel>
#include <QCheckBox>
#include <QPushButton>
#include <QSlider>... | 23.524775 | 92 | 0.676783 | devenguo |
9409af82c2afbfe7f0613a32702af5cadefbe753 | 29,541 | cpp | C++ | ThirdParty/JSBSim/include/models/FGFCS.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | 1 | 2022-02-03T08:29:35.000Z | 2022-02-03T08:29:35.000Z | ThirdParty/JSBSim/include/models/FGFCS.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | ThirdParty/JSBSim/include/models/FGFCS.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGFCS.cpp
Author: Jon Berndt
Date started: 12/12/98
Purpose: Model the flight controls
Called by: FDMExec
------------- Copyright (C) 1999 Jon S. Berndt (jon@jsbsim.org) -------------
This program is... | 35.548736 | 106 | 0.586338 | Lynnvon |
940c62dc543c5dc496011419ba7d98be92c490aa | 104 | cpp | C++ | sources/source.cpp | lapsizm/SharedPtr | 3eaafcff91f8dbbe4ae906dbfdcaa33d74382222 | [
"MIT"
] | null | null | null | sources/source.cpp | lapsizm/SharedPtr | 3eaafcff91f8dbbe4ae906dbfdcaa33d74382222 | [
"MIT"
] | null | null | null | sources/source.cpp | lapsizm/SharedPtr | 3eaafcff91f8dbbe4ae906dbfdcaa33d74382222 | [
"MIT"
] | null | null | null | // Copyright 2020 Kirill Murygin murygin_280702@mail.ru
#include <source.hpp>
void foo(){
return;
}
| 13 | 55 | 0.721154 | lapsizm |
940d2d24319568a91b342d91873f371ed88a2ff9 | 6,254 | cpp | C++ | KFPlugin/KFRelationDatabase/KFRelationDatabaseRedis.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFRelationDatabase/KFRelationDatabaseRedis.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFRelationDatabase/KFRelationDatabaseRedis.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #include "KFRelationDatabaseRedis.hpp"
#include "KFBasicDatabase/KFBasicDatabaseInterface.h"
namespace KFrame
{
#define __RELATION_REDIS_DRIVER__ _kf_redis->Create( __STRING__( relation ) )
std::string KFRelationDatabaseRedis::FormatRelationKey( const std::string& relationname, uint64 firstid, uint64 secondid, b... | 39.0875 | 186 | 0.644388 | 282951387 |
940e86197e999b3205aa47686e5fc2d5fbd82c19 | 3,586 | cpp | C++ | src/gfx/Viewport.cpp | murataka/two | f6f9835de844a38687e11f649ff97c3fb4146bbe | [
"Zlib"
] | 578 | 2019-05-04T09:09:42.000Z | 2022-03-27T23:02:21.000Z | src/gfx/Viewport.cpp | murataka/two | f6f9835de844a38687e11f649ff97c3fb4146bbe | [
"Zlib"
] | 14 | 2019-05-11T14:34:56.000Z | 2021-02-02T07:06:46.000Z | src/gfx/Viewport.cpp | murataka/two | f6f9835de844a38687e11f649ff97c3fb4146bbe | [
"Zlib"
] | 42 | 2019-05-11T16:04:19.000Z | 2022-01-24T02:21:43.000Z | // Copyright (c) 2019 Hugo Amiard hugo.amiard@laposte.net
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#ifdef TWO_MODULES
module;
#include <bgfx/bgfx.h>
#include <gfx/Cpp20.h>
module ... | 26.175182 | 104 | 0.687395 | murataka |
940ffcefeabe7b8820fdf8356cd64a2bd008000f | 4,484 | cpp | C++ | Src/Data/QvtkDentalFixture.cpp | wuzhuobin/QvtkProject | 30bfc798aca0e79043438aa16840464e6731e38c | [
"RSA-MD"
] | 1 | 2018-09-10T12:14:43.000Z | 2018-09-10T12:14:43.000Z | Src/Data/QvtkDentalFixture.cpp | wuzhuobin/QvtkProject | 30bfc798aca0e79043438aa16840464e6731e38c | [
"RSA-MD"
] | 3 | 2018-05-22T11:00:59.000Z | 2018-12-07T09:36:19.000Z | Src/Data/QvtkDentalFixture.cpp | wuzhuobin/QvtkProject | 30bfc798aca0e79043438aa16840464e6731e38c | [
"RSA-MD"
] | null | null | null | // me
#include "QvtkDentalFixture.h"
// qt
#include <QStandardItem>
#include <QCoreApplication>
#include <QDebug>
namespace Q {
namespace vtk {
Q_VTK_DATA_CPP(DentalFixture);
DentalFixture::DentalFixture()
{
this->m_dentalFixtureBrand = this->createAttribute(K.DentalFixtureBrand, "", true);
this->m_dentalFixture... | 30.297297 | 102 | 0.781891 | wuzhuobin |
941488b9258af3872ca0df27ba1a683705926c5f | 479 | cpp | C++ | arduino/library/MotionHandler.cpp | FaresMehanna/Monitor-And-Control-Server-Room | 29caea1501a5174c63ba87c47545c889b9cf2e51 | [
"MIT"
] | null | null | null | arduino/library/MotionHandler.cpp | FaresMehanna/Monitor-And-Control-Server-Room | 29caea1501a5174c63ba87c47545c889b9cf2e51 | [
"MIT"
] | null | null | null | arduino/library/MotionHandler.cpp | FaresMehanna/Monitor-And-Control-Server-Room | 29caea1501a5174c63ba87c47545c889b9cf2e51 | [
"MIT"
] | null | null | null | #include "MotionHandler.h"
MotionHandler::MotionHandler(ErrorHandler& _errorHandler, uint8_t _pin) : errorHandler(_errorHandler) {
motion = false;
pin = _pin;
timer = millis();
}
void MotionHandler::setup(void) {
pinMode(pin, INPUT);
}
void MotionHandler::loop(void) {
if(digitalRead(pin) == HIGH) {
motion = t... | 19.958333 | 103 | 0.697286 | FaresMehanna |
9418562ce25fc356d4e34355dd07cd5067c6e13e | 6,844 | cpp | C++ | src/domain/domain.cpp | srom/nbias | be8cf8dd623038dcf08d38ed3d19f635ee2dbeae | [
"MIT"
] | null | null | null | src/domain/domain.cpp | srom/nbias | be8cf8dd623038dcf08d38ed3d19f635ee2dbeae | [
"MIT"
] | null | null | null | src/domain/domain.cpp | srom/nbias | be8cf8dd623038dcf08d38ed3d19f635ee2dbeae | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <string>
#include <sstream>
#include <unordered_map>
#include <utility>
#include <boost/algorithm/string.hpp>
#include <xtensor/xarray.hpp>
#include "csv.hpp"
#include "../probability/probability_util.cpp"
using namespace std;
using namespace csv;
const double LOG_10 = lo... | 24.098592 | 100 | 0.673437 | srom |
9418cf1714190879633f4609024ecf8e5b979b7c | 918 | cpp | C++ | HW/hw1/src/main.cpp | amirnn/Engineering-Mathematics | 99dd270dba8ca3357259afb9195a9136b33510d8 | [
"MIT"
] | null | null | null | HW/hw1/src/main.cpp | amirnn/Engineering-Mathematics | 99dd270dba8ca3357259afb9195a9136b33510d8 | [
"MIT"
] | null | null | null | HW/hw1/src/main.cpp | amirnn/Engineering-Mathematics | 99dd270dba8ca3357259afb9195a9136b33510d8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <eigen3/Eigen/Dense>
#include <vector>
#include <cmath>
#include <boost/numeric/odeint.hpp>
#include "gnuplot-iostream.h"
#include "system_function.h"
namespace odeint = boost::numeric::odeint;
int main()
{
state_type x(2); // a vector with size 2.
x[0] = 1.0; // start at x=1.0, p=0.0
... | 24.157895 | 81 | 0.610022 | amirnn |
941a0244d43eab217be8744cb8464ae09dc5b6ca | 9,127 | cpp | C++ | Ex2 - Canny/src/canny.cpp | zuimrs/ImageProcess | 8a699668c71e45e7910a6bfcb3ab0589d878cbfa | [
"MIT"
] | 1 | 2018-06-20T12:29:52.000Z | 2018-06-20T12:29:52.000Z | Ex2 - Canny/src/canny.cpp | zuimrs/ImageProcess | 8a699668c71e45e7910a6bfcb3ab0589d878cbfa | [
"MIT"
] | null | null | null | Ex2 - Canny/src/canny.cpp | zuimrs/ImageProcess | 8a699668c71e45e7910a6bfcb3ab0589d878cbfa | [
"MIT"
] | null | null | null |
#include "canny.h"
#include <iostream>
#include "CImg.h"
#include <vector>
#define gFilterx 3
#define gFiltery 3
#define sigma 1
#define threshold_low 30
#define threshold_high 50
using namespace cimg_library;
Canny::Canny(const char * filename)
{
this->img.load(filename);
if(this->img.empty())
{
... | 30.73064 | 123 | 0.4559 | zuimrs |
941ed907e30d2805fa59600e405898cd810dc07c | 7,676 | cpp | C++ | llarp/pathbuilder.cpp | liilac/loki-network | 411ef0fe8706a2b76ab437e7a7b48d291756b518 | [
"Zlib"
] | null | null | null | llarp/pathbuilder.cpp | liilac/loki-network | 411ef0fe8706a2b76ab437e7a7b48d291756b518 | [
"Zlib"
] | null | null | null | llarp/pathbuilder.cpp | liilac/loki-network | 411ef0fe8706a2b76ab437e7a7b48d291756b518 | [
"Zlib"
] | null | null | null | #include <buffer.hpp>
#include <nodedb.hpp>
#include <path.hpp>
#include <pathbuilder.hpp>
#include <router.hpp>
#include <functional>
namespace llarp
{
template < typename User >
struct AsyncPathKeyExchangeContext
{
typedef llarp::path::Path Path_t;
typedef llarp::path::PathSet PathSet_t;
PathSet_t... | 26.560554 | 80 | 0.576081 | liilac |
94242b3f4080987d8c0a8e66eb9f768f11b24bcd | 124,699 | cpp | C++ | Source/ComponentScript.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 10 | 2019-02-05T07:57:21.000Z | 2021-10-17T13:44:31.000Z | Source/ComponentScript.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 178 | 2019-02-26T17:29:08.000Z | 2019-06-05T10:55:42.000Z | Source/ComponentScript.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 2 | 2020-02-27T18:57:27.000Z | 2020-05-28T01:19:59.000Z | #include "Application.h"
#include "ModuleInput.h"
#include "ModuleResourceManager.h"
#include "ScriptingModule.h"
#include "ModuleLayers.h"
#include "ModuleGOs.h"
#include "ComponentScript.h"
#include "ResourceScript.h"
#include "ResourcePrefab.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "i... | 31.019652 | 181 | 0.664288 | JellyBitStudios |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.