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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
358329894e63b1079bd7ce71c2f7061fafab24dc | 50,114 | cpp | C++ | PiTool/src/ResourceModel.cpp | nlyan/PiTool | bd50739de4a9f6e2a294351d0cd96c9efb1ec817 | [
"BSD-3-Clause"
] | 46 | 2019-09-24T19:30:06.000Z | 2022-02-05T12:51:52.000Z | PiTool/src/ResourceModel.cpp | nlyan/PiTool | bd50739de4a9f6e2a294351d0cd96c9efb1ec817 | [
"BSD-3-Clause"
] | 6 | 2019-09-24T20:10:35.000Z | 2019-12-29T22:55:12.000Z | PiTool/src/ResourceModel.cpp | nlyan/PiTool | bd50739de4a9f6e2a294351d0cd96c9efb1ec817 | [
"BSD-3-Clause"
] | 18 | 2019-09-24T19:36:39.000Z | 2022-02-05T12:51:55.000Z | #include "ResourceModel.h"
#include <QDir>
#include <QFile>
#include <QStandardPaths>
#include <QProcess>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QSettings>
#include <QDesktopServices>
#include "quazip/JlCompress.h"
#include <QDebug>
#include "piservice.h"
#include <QSqlDatabase... | 35.693732 | 160 | 0.612364 | nlyan |
358368f4431def18aa43e295ea8d992298a3ce75 | 7,752 | cc | C++ | policy-decision-point/ast_2_policy_stack.cc | SSICLOPS/cppl | 265514bc461352b7b5bc58fd7482328601029e4a | [
"Apache-2.0"
] | 1 | 2018-06-02T11:50:06.000Z | 2018-06-02T11:50:06.000Z | policy-decision-point/ast_2_policy_stack.cc | SSICLOPS/cppl | 265514bc461352b7b5bc58fd7482328601029e4a | [
"Apache-2.0"
] | 1 | 2018-01-17T04:16:29.000Z | 2018-01-30T09:01:44.000Z | policy-decision-point/ast_2_policy_stack.cc | SSICLOPS/cppl | 265514bc461352b7b5bc58fd7482328601029e4a | [
"Apache-2.0"
] | 1 | 2018-11-18T20:31:54.000Z | 2018-11-18T20:31:54.000Z | // Copyright 2015-2018 RWTH Aachen University
//
// 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... | 29.587786 | 102 | 0.696078 | SSICLOPS |
35893ebafdb3649fc28fc4ec5cc11e89793103f3 | 4,028 | cxx | C++ | src/TStoreGEMEvent.cxx | a-capra/feGEM | 0ae28e1d2aae609f6f8f5000bad30d8dcc41626c | [
"MIT"
] | null | null | null | src/TStoreGEMEvent.cxx | a-capra/feGEM | 0ae28e1d2aae609f6f8f5000bad30d8dcc41626c | [
"MIT"
] | null | null | null | src/TStoreGEMEvent.cxx | a-capra/feGEM | 0ae28e1d2aae609f6f8f5000bad30d8dcc41626c | [
"MIT"
] | 1 | 2021-02-26T20:59:50.000Z | 2021-02-26T20:59:50.000Z | #include "TStoreGEMEvent.h"
TStoreGEMEventHeader::TStoreGEMEventHeader()
{
//ctor
}
TStoreGEMEventHeader::TStoreGEMEventHeader(GEMBANK<void*> *bank)
{
BANK = bank->GetBANK();
DATATYPE = bank->GetType();
VARCATEGORY = bank->GetCategoryName();
VARNAME = ... | 26.326797 | 132 | 0.701837 | a-capra |
3592b5dc4608a697fa7c2a49cc8e082c4d5d8752 | 244 | cpp | C++ | project5-multi_exe_dep_on_common_lib/src/the_main1.cpp | adamcavendish/ReasonableCMakeForCXX | c49d94106f25fa6e25bdfd2389d68b5fb7fb80b3 | [
"Unlicense"
] | 3 | 2017-04-05T16:03:31.000Z | 2017-05-18T13:58:52.000Z | project5-multi_exe_dep_on_common_lib/src/the_main1.cpp | adamcavendish/ReasonableCMakeForCXX | c49d94106f25fa6e25bdfd2389d68b5fb7fb80b3 | [
"Unlicense"
] | null | null | null | project5-multi_exe_dep_on_common_lib/src/the_main1.cpp | adamcavendish/ReasonableCMakeForCXX | c49d94106f25fa6e25bdfd2389d68b5fb7fb80b3 | [
"Unlicense"
] | null | null | null | #include <main1/the_main1.hpp>
#include <common1/c1.hpp>
#include <common2/c2.hpp>
#include <module3/m3.hpp>
#include <string>
std::string the_main1() {
return std::string() + "c1=" + c1() + ",c2=" + c2() + ",m3=" + m3() + ",the_main1!";
}
| 22.181818 | 86 | 0.606557 | adamcavendish |
359916fc528122d2d1b1e2472f66c5c59d087043 | 21,405 | cpp | C++ | src/ankicar.cpp | ThomasHeinrichSchmidt/anki-overdrive-goes-iot | d28f728694ff7aabe65ccb77da5c3d41c70b3dc3 | [
"MIT"
] | 1 | 2021-04-13T18:20:56.000Z | 2021-04-13T18:20:56.000Z | src/ankicar.cpp | ThomasHeinrichSchmidt/anki-overdrive-goes-iot | d28f728694ff7aabe65ccb77da5c3d41c70b3dc3 | [
"MIT"
] | null | null | null | src/ankicar.cpp | ThomasHeinrichSchmidt/anki-overdrive-goes-iot | d28f728694ff7aabe65ccb77da5c3d41c70b3dc3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 9.11.2016 com2m GmbH.
* All rights reserved.
*/
#include "headers/ankicar.h"
#include <QDebug>
#include <QLowEnergyController>
#include <QLowEnergyCharacteristic>
#include <iostream>
#include "headers/ankimessage.h"
#include "headers/trackpiece.h"
#include <QLowEnergyConnectionParamet... | 38.429084 | 284 | 0.61252 | ThomasHeinrichSchmidt |
359daed756953a06ec7e66f9f817cbd0ff5f97f0 | 524 | cpp | C++ | unit_tests/test_ftoa_rev.cpp | shreyasbharath/nanoprintf | 7dc843a6201df5c2daabf675224183d3cc1a3264 | [
"Unlicense"
] | 1 | 2020-06-29T13:30:04.000Z | 2020-06-29T13:30:04.000Z | unit_tests/test_ftoa_rev.cpp | shreyasbharath/nanoprintf | 7dc843a6201df5c2daabf675224183d3cc1a3264 | [
"Unlicense"
] | null | null | null | unit_tests/test_ftoa_rev.cpp | shreyasbharath/nanoprintf | 7dc843a6201df5c2daabf675224183d3cc1a3264 | [
"Unlicense"
] | null | null | null | #include "nanoprintf_in_unit_tests.h"
#include "CppUTest/TestHarness.h"
#include <cstring>
TEST_GROUP(ftoa_rev) {
void setup() override { memset(buf, 0, sizeof(buf)); }
char buf[64];
int frac_bytes;
npf__format_spec_conversion_case_t const lower =
NPF_FMT_SPEC_CONV_CASE_LOWER;
npf__format... | 23.818182 | 68 | 0.709924 | shreyasbharath |
359e392ba31ff6313bede241351a2de52e092074 | 8,734 | cpp | C++ | GPUPerfStudio/Server/DX12Server/Objects/DX12WrappedObjectDatabase.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 1 | 2017-03-25T02:09:15.000Z | 2017-03-25T02:09:15.000Z | GPUPerfStudio/Server/DX12Server/Objects/DX12WrappedObjectDatabase.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | null | null | null | GPUPerfStudio/Server/DX12Server/Objects/DX12WrappedObjectDatabase.cpp | davidlee80/amd-gpuperfstudio-dx12 | 4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe | [
"MIT"
] | 3 | 2017-03-15T03:35:13.000Z | 2022-02-23T06:29:02.000Z | //==============================================================================
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief The DX12WrappedObjectDatabase is responsible for tracking
/// wrapped and destroyed objects.
//=====... | 46.705882 | 162 | 0.6248 | davidlee80 |
35a06a63f02917d0b697f2d18e1da85af01b9726 | 4,275 | cpp | C++ | CaWE/MapEditor/wxExt/valTextNumber.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/wxExt/valTextNumber.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/wxExt/valTextNumber.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/textctrl.h"
#include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
#endif
#include "valTextNum... | 18.832599 | 105 | 0.673684 | dns |
35ac952e9eb904c05e9753e378d32f76d65155af | 1,610 | cpp | C++ | PriorityQueues/RunningMedian.cpp | tanmayagarwal06/CompetitiveProgramming | ce1df2dbe829a0babfb18e65beee8604eb80915c | [
"MIT"
] | null | null | null | PriorityQueues/RunningMedian.cpp | tanmayagarwal06/CompetitiveProgramming | ce1df2dbe829a0babfb18e65beee8604eb80915c | [
"MIT"
] | null | null | null | PriorityQueues/RunningMedian.cpp | tanmayagarwal06/CompetitiveProgramming | ce1df2dbe829a0babfb18e65beee8604eb80915c | [
"MIT"
] | 3 | 2020-10-06T02:57:41.000Z | 2020-10-20T06:54:04.000Z | #include <iostream>
#include<queue>
#include<bits/stdc++.h>
#include<math.h>
using namespace std;
void findMedian(int arr[], int n){
priority_queue<int, vector<int>, greater<int>> minHeap;
priority_queue<int> maxHeap;
for(int i = 0; i<n; i++){
if(maxHeap.size() != 0 && arr[i] > ... | 24.393939 | 64 | 0.398758 | tanmayagarwal06 |
35ae4b9cc45ef13cef10a51b450bff522a99faba | 718 | hpp | C++ | ultra/not_released/dark/sapi.hpp | badryasuo/UltraDark | c9f60e3a754b051db33c29129f943807c6010b9e | [
"MIT"
] | null | null | null | ultra/not_released/dark/sapi.hpp | badryasuo/UltraDark | c9f60e3a754b051db33c29129f943807c6010b9e | [
"MIT"
] | null | null | null | ultra/not_released/dark/sapi.hpp | badryasuo/UltraDark | c9f60e3a754b051db33c29129f943807c6010b9e | [
"MIT"
] | null | null | null | // Speech API from Microsoft is required.
#include <sapi.h>
#include "std.hpp"
namespace dark
{
class Voice
{
protected:
HRESULT hr = S_OK;
ISpVoice * me = NULL;
// child/teen/etc
dark::char_ptr voice;
// 'F' for Female, 'M' for Male
dark::uchar gender;
// -10 to +10
dark::ushort pitch;
// 0 to 100... | 17.95 | 85 | 0.629526 | badryasuo |
35af3e44df6420ffba7ad8544cef62d0a6e0f812 | 251 | cpp | C++ | src/cubo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | src/cubo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | src/cubo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | #include "cubo.h"
Cubo::Cubo(int m_aresta): aresta(m_aresta) {
area = 6 * pow(aresta, 2);
volume = aresta * aresta * aresta;
}
Cubo::~Cubo() {
}
int Cubo::getAreaCubo() {
return area;
}
int Cubo::getVolumeCubo() {
return volume;
} | 13.944444 | 45 | 0.605578 | Italo1994 |
35b2407029bfd5c4d96d001938c60ab06ef28a22 | 1,746 | cpp | C++ | src/Board.cpp | jsgaonac/towdef-ai | 5973a736d02b7e3420d2367ffd81b564519c65c9 | [
"MIT"
] | null | null | null | src/Board.cpp | jsgaonac/towdef-ai | 5973a736d02b7e3420d2367ffd81b564519c65c9 | [
"MIT"
] | null | null | null | src/Board.cpp | jsgaonac/towdef-ai | 5973a736d02b7e3420d2367ffd81b564519c65c9 | [
"MIT"
] | null | null | null | #include "Board.hpp"
logic::Board::Board()
{
}
void logic::Board::reset()
{
for (std::size_t i = 0; i < BOARD_W; i++)
{
for (std::size_t j = 0; j < BOARD_H; j++)
{
board[i][j].clear();
}
}
}
bool logic::Board::isCoordValid(int x, int y) const
{
if (x >= BOARD_W || y >= BOARD_H) return false;
if (x <... | 19.840909 | 90 | 0.632875 | jsgaonac |
35c0d6191a09a3afe5c6a97b52c10e99b6c4b85f | 2,303 | cpp | C++ | 1343C.cpp | JiangWeibeta/Answers-to-Codeforces-Problems | f258ed0d441f587551ae0fc55215dca189a9dcef | [
"Apache-2.0"
] | 1 | 2021-10-30T02:17:29.000Z | 2021-10-30T02:17:29.000Z | 1343C.cpp | JiangWeibeta/Answers-to-codeforces-problemset | f258ed0d441f587551ae0fc55215dca189a9dcef | [
"Apache-2.0"
] | null | null | null | 1343C.cpp | JiangWeibeta/Answers-to-codeforces-problemset | f258ed0d441f587551ae0fc55215dca189a9dcef | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <stdlib.h>
#include <vector>
using namespace std;
typedef long long ll;
struct ans
{
ll len = 0;
ll sum = 0;
ll last_element = 0;
};
void solve()
{
int size = 0;
cin >> size;
ans ... | 21.726415 | 83 | 0.366479 | JiangWeibeta |
35c5d14a654a57e23c92e5c0ab6aa86496d3ea2b | 13,208 | cpp | C++ | Iron/territory/vmap.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/territory/vmap.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/territory/vmap.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
//
// This file is part of Iron's source files.
// Iron is free software, licensed under the MIT/X11 License.
// A copy of the license is provided with the library in the LICENSE file.
// Copyright (c) 2016, 2017, Igor Dimitrijevic
//
/////////... | 26.310757 | 134 | 0.58457 | biug |
35c6d8e728175661d80749ca30c0cfdf97d38ab0 | 6,123 | cpp | C++ | tests/unit_tests/common.shared/message_processing/test_message_tokenizer.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | 1 | 2019-12-02T08:37:10.000Z | 2019-12-02T08:37:10.000Z | tests/unit_tests/common.shared/message_processing/test_message_tokenizer.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | tests/unit_tests/common.shared/message_processing/test_message_tokenizer.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <common.shared/message_processing/message_tokenizer.h>
#ifdef CHECK_TOKEN_START
#error Rename the macros
#endif
#define CHECK_TOKEN_START common::tools::message_tokenizer tokenizer(_message);
#ifdef CHECK_TOKEN_N
#error Rename the macros
#endif
#define CHECK_T... | 37.564417 | 168 | 0.633186 | Vavilon3000 |
35d0da7eebdf514a79697e044e0d5fdf794b0240 | 3,363 | cpp | C++ | Codeforces/1000~1999/1252/L.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1000~1999/1252/L.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1000~1999/1252/L.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <queue>
#include <stack>
#include <vector>
#define int ll
void fuck(bool exp) {
while (!exp) exp = 0;
}
typedef long long ll;
const int N = 3e4 + 43, M = 2e6 + 62, K = 2e3 + 32;
struct {
struct edge {
int to, next, w;
} e[M << 1];
... | 25.477273 | 81 | 0.470116 | tiger0132 |
35d4620b8e7dfdbb17232f69f6cfde5933e06ceb | 441 | hpp | C++ | GazeTracker/GazeTracker_Qt/ProcessingUI.hpp | bernhardrieder/GazeTracker | b468a03cb986a4950ee1d2a49df759e17a80c5cc | [
"MIT"
] | null | null | null | GazeTracker/GazeTracker_Qt/ProcessingUI.hpp | bernhardrieder/GazeTracker | b468a03cb986a4950ee1d2a49df759e17a80c5cc | [
"MIT"
] | null | null | null | GazeTracker/GazeTracker_Qt/ProcessingUI.hpp | bernhardrieder/GazeTracker | b468a03cb986a4950ee1d2a49df759e17a80c5cc | [
"MIT"
] | null | null | null | #pragma once
#include <QWidget>
#include "ui_processingui.h"
namespace gt
{
class ProcessingUI : public QWidget
{
Q_OBJECT
public:
ProcessingUI(QWidget* parent = Q_NULLPTR);
~ProcessingUI();
signals:
void closing();
public slots:
void show();
void close();
void stateChanged(int);
void changePr... | 15.206897 | 47 | 0.705215 | bernhardrieder |
35dfe14a1f1fecf3af4fd987e3be6b9840c7da8a | 2,466 | cpp | C++ | qws/src/gui/QStyleOptionTitleBar.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/gui/QStyleOptionTitleBar.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/gui/QStyleOptionTitleBar.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QStyleOptionTitleBar.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:05
//
// Warning : this file is machine ... | 28.674419 | 112 | 0.680049 | keera-studios |
35e1cf174455cf1dad50e68bb6bb2817733691dd | 3,320 | cpp | C++ | docalculation.cpp | jlee975/qfractal | 76fd98b1775c20495c46de0a8a0280151a47ef8a | [
"MIT"
] | 1 | 2021-05-18T02:43:43.000Z | 2021-05-18T02:43:43.000Z | docalculation.cpp | jlee975/qfractal | 76fd98b1775c20495c46de0a8a0280151a47ef8a | [
"MIT"
] | null | null | null | docalculation.cpp | jlee975/qfractal | 76fd98b1775c20495c46de0a8a0280151a47ef8a | [
"MIT"
] | null | null | null | #include "docalculation.h"
#include <iostream>
#include "mandelbrot.h"
namespace
{
int msb(int x)
{
if (x == 0) return 0;
int m = 1;
while (x / m > 1)
m += m;
return m;
}
color_t color_index(int i)
{
#if 0
color_t c = { (i % 512 >= 256 ? 255 - i % 256 : i % 256), 0, 0 };
return c;
#else
std::size_t ncol... | 18.444444 | 191 | 0.540663 | jlee975 |
35e7eaa22dba72458669bbba5439256339b86e87 | 486 | hpp | C++ | dm-heom/include/heom/git_version.hpp | noma/dm-heom | 85c94f947190064d21bd38544094731113c15412 | [
"BSD-3-Clause"
] | 7 | 2019-07-28T01:02:52.000Z | 2021-11-09T04:01:36.000Z | dm-heom/include/heom/git_version.hpp | noma/dm-heom | 85c94f947190064d21bd38544094731113c15412 | [
"BSD-3-Clause"
] | null | null | null | dm-heom/include/heom/git_version.hpp | noma/dm-heom | 85c94f947190064d21bd38544094731113c15412 | [
"BSD-3-Clause"
] | 2 | 2020-04-04T15:20:30.000Z | 2021-08-24T15:16:40.000Z | // This file is part of DM-HEOM (https://github.com/noma/dm-heom)
//
// Copyright (c) 2015-2019 Matthias Noack, Zuse Institute Berlin
//
// Licensed under the 3-clause BSD License, see accompanying LICENSE,
// CONTRIBUTORS.md, and README.md for further information.
#ifndef git_version_hpp
#define git_version_hpp
#inc... | 27 | 69 | 0.76749 | noma |
35e7ed7927b6c3e310ef9e7946d0b4d0f3164841 | 10,599 | hpp | C++ | Source/VkToolbox/InPlaceFunction.hpp | glampert/VulkanDemo | cd9cae2dcbc790bbe6c42f811cb3aee792242ae0 | [
"MIT"
] | null | null | null | Source/VkToolbox/InPlaceFunction.hpp | glampert/VulkanDemo | cd9cae2dcbc790bbe6c42f811cb3aee792242ae0 | [
"MIT"
] | null | null | null | Source/VkToolbox/InPlaceFunction.hpp | glampert/VulkanDemo | cd9cae2dcbc790bbe6c42f811cb3aee792242ae0 | [
"MIT"
] | null | null | null | #pragma once
// ================================================================================================
// File: VkToolbox/InPlaceFunction.hpp
// Author: Guilherme R. Lampert
// Created on: 14/05/17
// Brief: std::function-like functor that has an inline buffer to store the
// callable object. It is gu... | 31.544643 | 138 | 0.613171 | glampert |
e302f7119a7ac9cd4ba9831fbed09bf23cb41dd3 | 1,237 | cpp | C++ | includes/graph.cpp | AnthonyN1/Advent-of-Code | 28782b219a50d92b2621dc88ecf00ae2e3b45b0a | [
"MIT"
] | null | null | null | includes/graph.cpp | AnthonyN1/Advent-of-Code | 28782b219a50d92b2621dc88ecf00ae2e3b45b0a | [
"MIT"
] | null | null | null | includes/graph.cpp | AnthonyN1/Advent-of-Code | 28782b219a50d92b2621dc88ecf00ae2e3b45b0a | [
"MIT"
] | null | null | null | /*
Advent of Code - Graph Implementation
Author: Anthony Nool (AnthonyN1)
*/
#include <map>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include "graph.h"
//==================================================//
// Observer //
//=====================... | 24.74 | 84 | 0.510105 | AnthonyN1 |
e31480b7cabea3e7798bf1bdc6fa7e89f116e6dc | 1,736 | cpp | C++ | src/MCP23S17.cpp | tobiasjaster/MCP23X17 | 853fb9ff73e0d9d484c8eb67829802e1505f2fcc | [
"BSD-3-Clause"
] | null | null | null | src/MCP23S17.cpp | tobiasjaster/MCP23X17 | 853fb9ff73e0d9d484c8eb67829802e1505f2fcc | [
"BSD-3-Clause"
] | null | null | null | src/MCP23S17.cpp | tobiasjaster/MCP23X17 | 853fb9ff73e0d9d484c8eb67829802e1505f2fcc | [
"BSD-3-Clause"
] | null | null | null | #include "MCP23S17.h"
MCP23S17::MCP23S17(uint8_t address, uint8_t chipSelect) : MCP23X17() {
_deviceAddr = address;
_cs = chipSelect;
pinMode(_cs, OUTPUT);
digitalWrite(_cs, HIGH);
_bus = &SPI;
}
MCP23S17::MCP23S17(uint8_t address, uint8_t chipSelect, SPIClass *bus) : MCP23X17() {
_deviceAdd... | 27.555556 | 86 | 0.652074 | tobiasjaster |
e3190cc1c3666f4e7dc0a6cba874f20501fbc199 | 832 | hh | C++ | src/Utilities/planarReflectingOperator.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/planarReflectingOperator.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/planarReflectingOperator.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// planarReflectingOperator
// Generate the reflection operator for the given plane.
//
// Created by JMO, Wed Feb 16 21:01:02 PST 2000
//----------------------------------------------------------------------------//
#ifndef __Spheral_plan... | 26.83871 | 80 | 0.653846 | jmikeowen |
e31f630b614766efb76a14c72746594f0b6be709 | 1,463 | cpp | C++ | cpp/leetcode/13.roman-to-integer.cpp | Gerrard-YNWA/piece_of_code | ea8c9f05a453c893cc1f10e9b91d4393838670c1 | [
"MIT"
] | 1 | 2021-11-02T05:17:24.000Z | 2021-11-02T05:17:24.000Z | cpp/leetcode/13.roman-to-integer.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | cpp/leetcode/13.roman-to-integer.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=13 lang=cpp
*
* [13] Roman to Integer
*/
#include<iostream>
#include<string>
using namespace std;
// @lc code=start
class Solution {
public:
int romanToInt(string s) {
auto len = s.length();
if (len == 1) {
return charToNumber(s[0]);
}
int sum... | 22.859375 | 43 | 0.420369 | Gerrard-YNWA |
e32128124cae61f0afd671e4df899c964284ba42 | 1,423 | cpp | C++ | libRay/Shaders/NormalVizBump.cpp | RA-Kooi/Ray-Tracer | 8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0 | [
"MIT"
] | 3 | 2019-03-22T02:15:18.000Z | 2019-11-12T08:12:57.000Z | libRay/Shaders/NormalVizBump.cpp | RA-Kooi/Ray-Tracer | 8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0 | [
"MIT"
] | null | null | null | libRay/Shaders/NormalVizBump.cpp | RA-Kooi/Ray-Tracer | 8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0 | [
"MIT"
] | null | null | null | #include "NormalVizBump.hpp"
#include <algorithm>
#include "../Material/Color.hpp"
#include "../Math/MathUtils.hpp"
#include "../Shapes/Shape.hpp"
#include "../Intersection.hpp"
#include "../Light.hpp"
namespace LibRay
{
using namespace Materials;
using namespace Math;
using namespace Shapes;
Color NormalVizShaderB... | 27.901961 | 74 | 0.718201 | RA-Kooi |
e32949fc823f62dba3a8aed367af9ed8924dbd1a | 461 | hpp | C++ | num_t.hpp | kensmith/mancalc | db0c2d15811f0da76689ec3c3cc94d9d56d1612d | [
"BSL-1.0"
] | 1 | 2020-03-24T22:51:38.000Z | 2020-03-24T22:51:38.000Z | num_t.hpp | kensmith/mancalc | db0c2d15811f0da76689ec3c3cc94d9d56d1612d | [
"BSL-1.0"
] | null | null | null | num_t.hpp | kensmith/mancalc | db0c2d15811f0da76689ec3c3cc94d9d56d1612d | [
"BSL-1.0"
] | null | null | null | #ifndef __num_t_hpp__
#define __num_t_hpp__
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
using int_t = boost::multiprecision::number
<
boost::multiprecision::cpp_int_backend<>,
boost::multiprecision::expression_template_option::et_off
>;
using num_t = boost::mul... | 23.05 | 60 | 0.787419 | kensmith |
e32b5a14be51c0f0a0e105c03ef1f5137163d550 | 2,516 | hpp | C++ | include/omw/array.hpp | vtavernier/omw | 3f598496c8564ea7ad1878f29c48f0e949ef0dd9 | [
"Unlicense",
"MIT"
] | null | null | null | include/omw/array.hpp | vtavernier/omw | 3f598496c8564ea7ad1878f29c48f0e949ef0dd9 | [
"Unlicense",
"MIT"
] | null | null | null | include/omw/array.hpp | vtavernier/omw | 3f598496c8564ea7ad1878f29c48f0e949ef0dd9 | [
"Unlicense",
"MIT"
] | null | null | null | /**
* @file omw/array.hpp
* @brief Definition of omw::array
* @author Vincent TAVERNIER <vincent.tavernier@inria.fr>
* @date 2018
*/
#ifndef _OMW_ARRAY_HPP_
#define _OMW_ARRAY_HPP_
#include <memory>
#include <vector>
#include "omw/pre.hpp"
namespace omw
{
/**
* @brief Represents a 1D array without managi... | 23.735849 | 89 | 0.669714 | vtavernier |
e32d2f9a73b14d38860897ed8c8ce95550f0fbb0 | 373 | hpp | C++ | wield/tests/acceptance_test/queue_stress/queue_stress/ProcessingFunctorBase.hpp | paxos1977/wield | a4e4c2df28763d2a720e14b3d6e903b083eb3a7d | [
"BSD-4-Clause"
] | null | null | null | wield/tests/acceptance_test/queue_stress/queue_stress/ProcessingFunctorBase.hpp | paxos1977/wield | a4e4c2df28763d2a720e14b3d6e903b083eb3a7d | [
"BSD-4-Clause"
] | null | null | null | wield/tests/acceptance_test/queue_stress/queue_stress/ProcessingFunctorBase.hpp | paxos1977/wield | a4e4c2df28763d2a720e14b3d6e903b083eb3a7d | [
"BSD-4-Clause"
] | null | null | null | #pragma once
#include <queue_stress/Message.hpp>
namespace queue_stress { namespace message {
class TestMessage;
}}
namespace queue_stress {
class ProcessingFunctorBase
{
public:
virtual ~ProcessingFunctorBase(){}
virtual void operator()(Message&){}
virtual vo... | 18.65 | 57 | 0.632708 | paxos1977 |
e32eaab1db8757d11e8c2ba915e8eda90c3ea6a4 | 11,698 | cc | C++ | dcmdata/apps/dcm2json.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | null | null | null | dcmdata/apps/dcm2json.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | null | null | null | dcmdata/apps/dcm2json.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (C) 2016, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmdata
*
* Author: Sebastian Grallert
*
* Purp... | 38.735099 | 143 | 0.583091 | palmerc |
e32eaf89bb21afb619ffde0fd81dd73a7ce17673 | 14,894 | cpp | C++ | src/acFindWidget.cpp | nfogh/common-src-AMDTApplicationComponents | 9fc0fa073b8af5d8552eb331fc47ede8becca642 | [
"MIT"
] | 1 | 2017-01-28T14:14:18.000Z | 2017-01-28T14:14:18.000Z | src/acFindWidget.cpp | nfogh/common-src-AMDTApplicationComponents | 9fc0fa073b8af5d8552eb331fc47ede8becca642 | [
"MIT"
] | null | null | null | src/acFindWidget.cpp | nfogh/common-src-AMDTApplicationComponents | 9fc0fa073b8af5d8552eb331fc47ede8becca642 | [
"MIT"
] | 2 | 2018-10-26T09:34:00.000Z | 2019-11-01T23:05:53.000Z | //==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file acFindWidget.cpp
///
//==================================================================================
// ... | 38.585492 | 429 | 0.675574 | nfogh |
e3336236ba0da367b30e6f765895e8f9b625a9b3 | 1,233 | hpp | C++ | audio/XaSystem.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | audio/XaSystem.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | audio/XaSystem.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_AUDIO_XA_SYSTEM_HPP___
#define ___INANITY_AUDIO_XA_SYSTEM_HPP___
#include "System.hpp"
#include "Format.hpp"
#include "xaudio2.hpp"
#include "../CriticalSection.hpp"
#include "../ComPointer.hpp"
#include <unordered_set>
BEGIN_INANITY_AUDIO
class Device;
struct Format;
class XaPlayer;
/// Класс зв... | 23.711538 | 97 | 0.781833 | quyse |
e3412ca26c6407d00a49c620aa74dd803e496285 | 687 | cpp | C++ | credit.cpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | credit.cpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | credit.cpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | // $Id$
/*credit.cpp
*
*A class for credits
*/
#include "booksim.hpp"
#include "credit.hpp"
stack<Credit *> Credit::_all;
stack<Credit *> Credit::_free;
Credit::Credit()
{
Reset();
}
void Credit::Reset()
{
vc.clear();
head = false;
tail = false;
id = -1;
}
Credit *Credit::New()
{
Credit *c;
if (_... | 11.080645 | 36 | 0.551674 | TomGlint |
e34776e65acd191846eca1b767bc7d1d29f8790c | 1,307 | cpp | C++ | android-31/java/util/concurrent/CyclicBarrier.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/util/concurrent/CyclicBarrier.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/util/concurrent/CyclicBarrier.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./TimeUnit.hpp"
#include "./locks/ReentrantLock.hpp"
#include "./CyclicBarrier.hpp"
namespace java::util::concurrent
{
// Fields
// QJniObject forward
CyclicBarrier::CyclicBarrier(QJniObject obj) : JObject(obj) {}
// Constructors
CyclicBarrier::CyclicBarrier(jint arg0)
: JObject(
"java.util.con... | 17.662162 | 83 | 0.648049 | YJBeetle |
e348827d92e0bc791efe14e521f4f459c9173efc | 1,810 | hpp | C++ | src/thunder/include/thunder/spdlog/sinks/file_hourly_sink.hpp | Lyrex/thunder | f664aca2d74e6edbdd4188989feade38345a3f6f | [
"MIT"
] | null | null | null | src/thunder/include/thunder/spdlog/sinks/file_hourly_sink.hpp | Lyrex/thunder | f664aca2d74e6edbdd4188989feade38345a3f6f | [
"MIT"
] | null | null | null | src/thunder/include/thunder/spdlog/sinks/file_hourly_sink.hpp | Lyrex/thunder | f664aca2d74e6edbdd4188989feade38345a3f6f | [
"MIT"
] | null | null | null | #include <mutex>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/sink.h>
#include <spdlog/sinks/base_sink.h>
#include <spdlog/sinks/file_sinks.h>
#include <spdlog/details/null_mutex.h>
namespace thunder {
namespace sinks {
/*
* Rotating file sink based on hour. rotates every hour
*/
template<class Mutex, class ... | 27.846154 | 94 | 0.733149 | Lyrex |
e34a61c1604eb2a07f69e91380832ca39d4805d0 | 5,732 | cpp | C++ | ExLemmings/Lemmings/02-Lemming/MenuScene.cpp | GuillemCastro/LemmingsVJ | 03cfc73d198213b1629ab36d61c85d2fbae603b9 | [
"MIT"
] | null | null | null | ExLemmings/Lemmings/02-Lemming/MenuScene.cpp | GuillemCastro/LemmingsVJ | 03cfc73d198213b1629ab36d61c85d2fbae603b9 | [
"MIT"
] | null | null | null | ExLemmings/Lemmings/02-Lemming/MenuScene.cpp | GuillemCastro/LemmingsVJ | 03cfc73d198213b1629ab36d61c85d2fbae603b9 | [
"MIT"
] | null | null | null | #include "MenuScene.h"
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include "Game.h"
MenuScene::MenuScene()
{
}
MenuScene::~MenuScene()
{
menuScreen->free();
levelButton->free();
delete menuScreen;
delete levelButton;
}
void MenuScene::init() {
glm::vec2 geom[2] = { glm::vec2... | 31.322404 | 105 | 0.686148 | GuillemCastro |
e34ce03f8cfdd46fc6dfbc08b94a4a48305d7b13 | 2,348 | cpp | C++ | pointers_references_sau.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | pointers_references_sau.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | pointers_references_sau.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | // Section 12
// Challenge
/* Write a C++ function named apply_all that expects two arrays of integers and their sizes and
dynamically allocates a new array of integers whose size is the product of the 2 array sizes
The function should loop through the second array and multiplies each element across each elemen... | 23.48 | 124 | 0.587734 | saurabhkakade21 |
e34d58650f4126fb33ca0f368b011f51bf4790ee | 7,729 | cpp | C++ | OpenCP/libGaussian/gaussian_conv_sii.cpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | OpenCP/libGaussian/gaussian_conv_sii.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | OpenCP/libGaussian/gaussian_conv_sii.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | /**
* \file gaussian_conv_sii.c
* \brief Gaussian convolution using stacked integral images
* \author Pascal Getreuer <getreuer@cmla.ens-cachan.fr>
*
* Copyright (c) 2012-2013, Pascal Getreuer
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under, at your op... | 33.899123 | 145 | 0.6561 | norishigefukushima |
e34e4fcab1e2253f7da8483740c4d57d6b9d93b8 | 3,356 | cpp | C++ | monitor/src/v20180724/model/DescribeServiceDiscoveryRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | monitor/src/v20180724/model/DescribeServiceDiscoveryRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | monitor/src/v20180724/model/DescribeServiceDiscoveryRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.966667 | 98 | 0.744338 | suluner |
e35bfe487c5aff4fc46f3240c454844e689acb0a | 849 | hpp | C++ | android-31/android/os/storage/OnObbStateChangeListener.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/os/storage/OnObbStateChangeListener.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/os/storage/OnObbStateChangeListener.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
class JString;
namespace android::os::storage
{
class OnObbStateChangeListener : public JObject
{
public:
// Fields
static jint ERROR_ALREADY_MOUNTED();
static jint ERROR_COULD_NOT_MOUNT();
static jint ERROR_COULD_NOT_UNMOUNT();
static jint ERROR_INTERNAL();
... | 24.970588 | 165 | 0.727915 | YJBeetle |
e35c46fee5e0447817270af245fdb67e45fd9bb5 | 4,696 | cpp | C++ | src/via/http/request.cpp | aestuarium/via-httplib | 8906ad438e4126aaac17633eded467cc8eac55bb | [
"BSL-1.0"
] | null | null | null | src/via/http/request.cpp | aestuarium/via-httplib | 8906ad438e4126aaac17633eded467cc8eac55bb | [
"BSL-1.0"
] | null | null | null | src/via/http/request.cpp | aestuarium/via-httplib | 8906ad438e4126aaac17633eded467cc8eac55bb | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013-2015 Ken Barker
// (ken dot barker at via-technology dot co dot uk)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LIC... | 24.082051 | 79 | 0.397785 | aestuarium |
e35dab2baee8b47dde1349a488114b424175c848 | 336 | cpp | C++ | src/module.cpp | dylangentile/DFK | a627073f0d54bedec10e7b344b86912669d2e070 | [
"MIT"
] | 1 | 2020-06-26T06:31:33.000Z | 2020-06-26T06:31:33.000Z | src/module.cpp | dylangentile/DFK | a627073f0d54bedec10e7b344b86912669d2e070 | [
"MIT"
] | null | null | null | src/module.cpp | dylangentile/DFK | a627073f0d54bedec10e7b344b86912669d2e070 | [
"MIT"
] | null | null | null | #include <kernel/module.h>
Module::Module(ModuleType type) : mType(type)
{
}
Module::~Module()
{
}
#include <module/fs_module.h>
FileSystem::FileSystem() : Module(kModuleType_FileSystem)
{
}
FileSystem::~FileSystem()
{
}
FileSystem::FileDescriptor::FileDescriptor()
{
}
FileSystem::FileDescriptor::~FileDe... | 9.6 | 57 | 0.696429 | dylangentile |
e362284ca189ac75567d9a77252bd666f0df1147 | 7,251 | hxx | C++ | tools/VisualizeECC/draw_epipolar_lines.hxx | mareikethies/EpipolarConsistency | 63d7ca2fd705911a6c93ca4247486fc66a9d31c7 | [
"Apache-2.0"
] | 2 | 2020-03-21T16:33:51.000Z | 2021-09-12T03:03:00.000Z | tools/VisualizeECC/draw_epipolar_lines.hxx | mareikethies/EpipolarConsistency | 63d7ca2fd705911a6c93ca4247486fc66a9d31c7 | [
"Apache-2.0"
] | 1 | 2018-06-14T07:48:55.000Z | 2018-06-14T07:48:55.000Z | tools/VisualizeECC/draw_epipolar_lines.hxx | mareikethies/EpipolarConsistency | 63d7ca2fd705911a6c93ca4247486fc66a9d31c7 | [
"Apache-2.0"
] | 6 | 2018-05-15T21:38:35.000Z | 2022-01-06T07:20:47.000Z | // Utilities for Displaying Images and Plots
#include <LibUtilsQt/Figure.hxx>
#include <LibUtilsQt/Plot.hxx>
using UtilsQt::Figure;
using UtilsQt::Plot;
#include <LibEpipolarConsistency/EpipolarConsistencyCommon.hxx>
/// Function called when user clicks into projection images. Epipolar lines are drawn in 2 and 3 dime... | 42.156977 | 196 | 0.71728 | mareikethies |
e362ec8e242c5c7af2c450760bbe89bf28e38b44 | 2,500 | cpp | C++ | Demos/VerveTutorialBase/source/Verve/Extension/LightObject/VLightObjectAnimationEvent.cpp | AnteSim/Verve | 22a55d182f86e3d7684fdc52f628ca57837cac8a | [
"MIT"
] | 1 | 2021-01-02T09:17:18.000Z | 2021-01-02T09:17:18.000Z | Templates/Verve/source/Verve/Extension/LightObject/VLightObjectAnimationEvent.cpp | AnteSim/Verve | 22a55d182f86e3d7684fdc52f628ca57837cac8a | [
"MIT"
] | null | null | null | Templates/Verve/source/Verve/Extension/LightObject/VLightObjectAnimationEvent.cpp | AnteSim/Verve | 22a55d182f86e3d7684fdc52f628ca57837cac8a | [
"MIT"
] | 4 | 2015-05-16T17:35:07.000Z | 2021-01-02T09:17:26.000Z | //-----------------------------------------------------------------------------
// Verve
// Copyright (C) - Violent Tulip
//-----------------------------------------------------------------------------
#include "Verve/Extension/LightObject/VLightObjectAnimationEvent.h"
#include "console/consoleTypes.h"
//-----------... | 33.333333 | 129 | 0.4588 | AnteSim |
e373e7fa9e5e49fc4f231e274be782d5e644845f | 707 | cpp | C++ | luogu_U68608/luogu_U68608.cpp | skyfackr/luogu_personal_cppcode | b59af9839745d65091e6c01cddf53e5bb6fb274a | [
"BSD-3-Clause"
] | null | null | null | luogu_U68608/luogu_U68608.cpp | skyfackr/luogu_personal_cppcode | b59af9839745d65091e6c01cddf53e5bb6fb274a | [
"BSD-3-Clause"
] | null | null | null | luogu_U68608/luogu_U68608.cpp | skyfackr/luogu_personal_cppcode | b59af9839745d65091e6c01cddf53e5bb6fb274a | [
"BSD-3-Clause"
] | null | null | null | /*头像上传*/
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define gou1 "Too Young"
#define gou2 "Too Simple"
#define gou3 "Sometimes Naive"
int n,l,g;
void preanalyse(int &w,int &h)
{
//int maxbian=max(w,h);
while (max(w,h)>g)
{
w/=2;
h/=2;
}
return;
}
int main()
{
... | 16.44186 | 30 | 0.445545 | skyfackr |
e375b0f0afc248bce5e837b9b49405634083b8f2 | 1,684 | cpp | C++ | Days 201 - 210/Day 207/IsGraphBipartite.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 201 - 210/Day 207/IsGraphBipartite.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 201 - 210/Day 207/IsGraphBipartite.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <cstddef>
#include <iostream>
#include <iterator>
template <std::size_t Size>
using Graph = std::array<std::array<unsigned int, Size>, Size>;
static constexpr int NullColour = -1;
template <std::size_t Size>
bool IsBipartiteGraphHelper(const Graph<Size>& graph, std::arr... | 23.068493 | 154 | 0.663302 | LucidSigma |
e37d30affcccc7498f6b18a6e9df66dc6f01adbf | 896 | hpp | C++ | C++/Examples/AHRS/AHRS.hpp | PhiliLegault/Navio2 | b3ed81b9e50838cb21677ba4dfd79d811ed8737a | [
"BSD-3-Clause"
] | 150 | 2016-03-21T00:41:14.000Z | 2022-03-16T22:40:43.000Z | docExamples/RPI+Navio/AHRS/AHRS.hpp | torressantiago/PINISAT | 21809d7a96ffd44d48d43b5ed1cfb866dcc97be5 | [
"MIT"
] | 34 | 2016-05-09T14:25:21.000Z | 2021-08-03T13:10:55.000Z | docExamples/RPI+Navio/AHRS/AHRS.hpp | torressantiago/PINISAT | 21809d7a96ffd44d48d43b5ed1cfb866dcc97be5 | [
"MIT"
] | 132 | 2016-02-25T01:52:01.000Z | 2022-02-25T13:29:27.000Z | /*
Mahony AHRS algorithm implemented by Madgwick
See: http://x-io.co.uk/open-source-imu-and-ahrs-algorithms/
Adapted by Igor Vereninov (igor.vereninov@emlid.com)
Provided to you by Emlid Ltd (c) 2014.
twitter.com/emlidtech || www.emlid.com || info@emlid.com
*/
#ifndef AHRS_HPP
#define AHRS_HPP
#include <cmath>
#incl... | 21.333333 | 59 | 0.699777 | PhiliLegault |
e3824cbbd5f0531bfd7c351555618baba005d1eb | 5,064 | cpp | C++ | source/libgui/MYGUI/mygui_button.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/libgui/MYGUI/mygui_button.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/libgui/MYGUI/mygui_button.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2015.
// +----------------------------------------------------------------------
// | * Redistributi... | 23.553488 | 117 | 0.69767 | Lauvak |
be644f093ff3a05f9b6e2f3753151570be13e866 | 16,689 | cpp | C++ | dfgTestQt/dfgTestCsvItemModel.cpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2017-08-01T04:42:29.000Z | 2017-08-01T04:42:29.000Z | dfgTestQt/dfgTestCsvItemModel.cpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 128 | 2018-04-06T23:01:51.000Z | 2022-03-31T20:19:38.000Z | dfgTestQt/dfgTestCsvItemModel.cpp | tc3t/dfglib | 7157973e952234a010da8e9fbd551a912c146368 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2018-03-21T01:11:05.000Z | 2021-04-05T19:20:31.000Z | #include <dfg/qt/CsvItemModel.hpp>
#include <dfg/io.hpp>
#include <dfg/io/OmcByteStream.hpp>
#include <dfg/qt/containerUtils.hpp>
#include <dfg/qt/connectHelper.hpp>
#include <dfg/math.hpp>
#include <dfg/qt/sqlTools.hpp>
#include <dfg/qt/PatternMatcher.hpp>
#include <dfg/iter/FunctionValueIterator.hpp>
#include <dfg/os... | 44.504 | 213 | 0.646773 | tc3t |
be71bf464a61cf0eb1e1cf0498d59102e0e8fbb0 | 2,100 | cpp | C++ | sword_Offer/15_MergeList/15_MergeList.cpp | bastamon/CodingInterviewChinese2 | 625c3907c6c5fe36d5cc1f2f91d8e062c90c932e | [
"BSD-3-Clause"
] | null | null | null | sword_Offer/15_MergeList/15_MergeList.cpp | bastamon/CodingInterviewChinese2 | 625c3907c6c5fe36d5cc1f2f91d8e062c90c932e | [
"BSD-3-Clause"
] | null | null | null | sword_Offer/15_MergeList/15_MergeList.cpp | bastamon/CodingInterviewChinese2 | 625c3907c6c5fe36d5cc1f2f91d8e062c90c932e | [
"BSD-3-Clause"
] | 1 | 2021-04-12T03:06:44.000Z | 2021-04-12T03:06:44.000Z | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<vector>
using namespace std;
typedef unsigned int uint32_t;
struct ListNode
{
int val;
struct ListNode *next;
ListNode(int x):val(x), next(nullptr)
{
}
};
class Solution
{
public:
ListNode* Merge(ListNode* pHead1, ListNode* pHead2)
{
if (... | 19.626168 | 70 | 0.57381 | bastamon |
be7549bb9547b3ee1500cee7415bc14096aaa0f9 | 245 | cpp | C++ | engine/src/wolf.render/vulkan/w_queue.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | engine/src/wolf.render/vulkan/w_queue.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | engine/src/wolf.render/vulkan/w_queue.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | #include "w_render_pch.h"
#include "w_graphics_device_manager.h"
#include "w_queue.h"
using namespace wolf::render::vulkan;
ULONG w_queue::release()
{
#ifdef __VULKAN__
this->queue = 0;
#endif
this->index = UINT32_MAX;
return 0;
}
| 16.333333 | 38 | 0.706122 | SiminBadri |
be7848a05dfa45d2f9b923655cfa196b96cf4459 | 2,542 | cpp | C++ | xs/src/Geometry.cpp | Lenbok/Slic3r | bc44611f241a5f1d7ab66f14ffc0b1f3d563fc59 | [
"CC-BY-3.0"
] | null | null | null | xs/src/Geometry.cpp | Lenbok/Slic3r | bc44611f241a5f1d7ab66f14ffc0b1f3d563fc59 | [
"CC-BY-3.0"
] | null | null | null | xs/src/Geometry.cpp | Lenbok/Slic3r | bc44611f241a5f1d7ab66f14ffc0b1f3d563fc59 | [
"CC-BY-3.0"
] | null | null | null | #include "Geometry.hpp"
#include "clipper.hpp"
#include <algorithm>
#include <map>
#include <vector>
namespace Slic3r { namespace Geometry {
static bool
sort_points (Point a, Point b)
{
return (a.x < b.x) || (a.x == b.x && a.y < b.y);
}
/* This implementation is based on Andrew's monotone chain 2D convex hull al... | 29.55814 | 110 | 0.630606 | Lenbok |
be78a1bc0d677423a54f3642c06c75d64788e75f | 5,753 | cpp | C++ | examples/shape_visitor/shape_visitor.cpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | examples/shape_visitor/shape_visitor.cpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | examples/shape_visitor/shape_visitor.cpp | cesiumsolutions/dynamic_generic_visitor | da8fe928bf77270e1a64beae0051bfadba7ea256 | [
"MIT"
] | null | null | null | #include <shapes/Area.hpp>
#include <shapes/Circumference.hpp>
#include <visitor/DynamicVisitor.hpp>
#include <visitor/Visitable.hpp>
#include <boost/dll.hpp>
#include <boost/function.hpp>
#include <functional>
#include <iostream>
#include <vector>
struct NonShape
{
};
using ShapeVisitor = DynamicVisitor<f... | 33.447674 | 79 | 0.615505 | cesiumsolutions |
be798bd7d9254706e90695873217fa9b42c15cad | 4,052 | cpp | C++ | ophidian/parser/Guide.cpp | sheiny/ophidian | 037ae44357e0093d60b379513615b467c1f841cf | [
"Apache-2.0"
] | 40 | 2016-04-22T14:42:42.000Z | 2021-05-25T23:14:23.000Z | ophidian/parser/Guide.cpp | sheiny/ophidian | 037ae44357e0093d60b379513615b467c1f841cf | [
"Apache-2.0"
] | 64 | 2016-04-28T21:10:47.000Z | 2017-11-07T11:33:17.000Z | ophidian/parser/Guide.cpp | eclufsc/openeda | 037ae44357e0093d60b379513615b467c1f841cf | [
"Apache-2.0"
] | 25 | 2016-04-18T19:31:48.000Z | 2021-05-05T15:50:41.000Z | #include <fstream>
#include <regex>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include "Guide.h"
#include "ParserException.h"
namespace ophidian::parser
{
Guide::Guide(const std::string &guide_file):
m_nets{}
{
read_file(guide_file);
}
void Guide::read_fi... | 29.794118 | 92 | 0.498026 | sheiny |
be7db08de46a532fd979f06ed37d77136e1adf13 | 3,906 | cpp | C++ | Fractal/Fractal/src/core/systems/Engine.cpp | talislincoln/fractals | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | 2 | 2016-09-22T16:11:17.000Z | 2016-09-22T16:11:55.000Z | Fractal/Fractal/src/core/systems/Engine.cpp | talislincoln/FractalGameEngine | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | null | null | null | Fractal/Fractal/src/core/systems/Engine.cpp | talislincoln/FractalGameEngine | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | null | null | null | #include "core\systems\Engine.h"
#include <iostream>
namespace fractal {
namespace fcore {
Engine::Engine(AbstractGame* game) :
m_game(game), m_isRunning(false),
m_maxFPS(60.0f)
{
}
Engine::~Engine()
{
}
int Engine::run()
{
if (!initialize())
{
printf("Engine failed to init.");
... | 21.94382 | 115 | 0.649002 | talislincoln |
be7faef478ae77d4ae662b434c89274f29ade1ad | 246 | cpp | C++ | main.cpp | marcomalabag/GDGRAPX-Assignment---Simple-Portrait | b51ce5634eb433de06e0f660f6d29e3728f1cca8 | [
"Unlicense"
] | null | null | null | main.cpp | marcomalabag/GDGRAPX-Assignment---Simple-Portrait | b51ce5634eb433de06e0f660f6d29e3728f1cca8 | [
"Unlicense"
] | null | null | null | main.cpp | marcomalabag/GDGRAPX-Assignment---Simple-Portrait | b51ce5634eb433de06e0f660f6d29e3728f1cca8 | [
"Unlicense"
] | null | null | null | #include <stdio.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "AppWindow.h"
int main() {
AppWindow app; // AppWindow extends the Window class. The Window class is responsible for initializing the window
while (app.isRunning());
}
| 22.363636 | 115 | 0.723577 | marcomalabag |
be8d8a710e6fe5f151e7a82eec8095b71ae69f76 | 246 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/ent/RepellingShape.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/ent/RepellingShape.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/ent/RepellingShape.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace ent {
enum class RepellingShape : uint32_t
{
Sphere = 0,
Capsule = 1,
};
} // namespace ent
} // namespace RED4ext
| 15.375 | 57 | 0.695122 | jackhumbert |
be90c7f5e6941c8162d45435f42eb60efb0282b1 | 16,436 | cc | C++ | Coordinator.cc | cafaro/DUDDSketch | 75660f3c689e1761ccf0f5a97accf82dc45cda57 | [
"MIT"
] | null | null | null | Coordinator.cc | cafaro/DUDDSketch | 75660f3c689e1761ccf0f5a97accf82dc45cda57 | [
"MIT"
] | null | null | null | Coordinator.cc | cafaro/DUDDSketch | 75660f3c689e1761ccf0f5a97accf82dc45cda57 | [
"MIT"
] | null | null | null | /********************************************************/
/* Distributed UDDSketch */
/* */
/* Coded by Catiuscia Melle */
/* */
/* April 8, 2021 ... | 30.047532 | 193 | 0.435994 | cafaro |
be94b3e1328e0f7937890e5f6240c560ece3c0c1 | 1,006 | cpp | C++ | ACM/2018-2019 Summer UESTC ACM Training/UESTC 2019 Summer Training #7/G.cpp | lyh543/Some-Codes | 2b295338f802e71c6b613350f1b6e8299856780f | [
"MIT"
] | 3 | 2020-06-05T08:29:16.000Z | 2021-12-09T05:44:54.000Z | ACM/2018-2019 Summer UESTC ACM Training/UESTC 2019 Summer Training #7/G.cpp | lyh543/Some-Codes | 6648d57be5cc9642d623563b35780446ed986edc | [
"MIT"
] | null | null | null | ACM/2018-2019 Summer UESTC ACM Training/UESTC 2019 Summer Training #7/G.cpp | lyh543/Some-Codes | 6648d57be5cc9642d623563b35780446ed986edc | [
"MIT"
] | 1 | 2020-09-15T14:50:31.000Z | 2020-09-15T14:50:31.000Z | #include<bits/stdc++.h>
#define ld long double
#define ll long long
#define infty 0x3fffffffll
#define fastio ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
typedef pair<ll, ll> P;
const int maxn = 1e5+5;
P operator + (P a, P b)
{
return make_pair(a.first + b.first, a.second + b.se... | 17.649123 | 63 | 0.513917 | lyh543 |
be98c0be0a4ec14805f6a73fa59a7d234602899a | 3,086 | cpp | C++ | src/fps_map/local_map.cpp | Lab-RoCoCo/fps_mapper | 376e557c8f5012e05187fe85ee3f4044f99f944a | [
"BSD-3-Clause"
] | 1 | 2017-12-01T14:57:16.000Z | 2017-12-01T14:57:16.000Z | src/fps_map/local_map.cpp | Lab-RoCoCo/fps_mapper | 376e557c8f5012e05187fe85ee3f4044f99f944a | [
"BSD-3-Clause"
] | null | null | null | src/fps_map/local_map.cpp | Lab-RoCoCo/fps_mapper | 376e557c8f5012e05187fe85ee3f4044f99f944a | [
"BSD-3-Clause"
] | null | null | null | #include "local_map.h"
#include "GL/gl.h"
#include "gl_helpers/opengl_primitives.h"
#include <iostream>
namespace fps_mapper {
using namespace std;
LocalMap::LocalMap(const Eigen::Isometry3f& transform,
int id,
boss::IdContext* context) : MapNode(transform, id, context){... | 28.841121 | 99 | 0.639339 | Lab-RoCoCo |
be9e13daa6e50c1daf8efc41ba5a4ea0c671e43a | 13,998 | cpp | C++ | imagecore/image/colorpalette.cpp | shahzadlone/vireo | 73e7176d0255a9506b009c9ab8cc532ecd86e98c | [
"MIT"
] | 890 | 2017-12-15T17:55:42.000Z | 2022-03-27T07:46:49.000Z | imagecore/image/colorpalette.cpp | shahzadlone/vireo | 73e7176d0255a9506b009c9ab8cc532ecd86e98c | [
"MIT"
] | 29 | 2017-12-16T21:49:08.000Z | 2021-09-08T23:04:10.000Z | imagecore/image/colorpalette.cpp | shahzadlone/vireo | 73e7176d0255a9506b009c9ab8cc532ecd86e98c | [
"MIT"
] | 88 | 2017-12-15T19:29:49.000Z | 2022-03-21T00:59:29.000Z | /*
* MIT License
*
* Copyright (c) 2017 Twitter
*
* 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, ... | 32.553488 | 164 | 0.65788 | shahzadlone |
bea9c06deb3dd0d25c237efb67d158d958cb257a | 2,065 | cpp | C++ | Advent of Code/2021/09_1_smoke_basin.cpp | aleksi-kangas/competitive-programming | 149c38158c889b3417034b5d9d6cd4517f937447 | [
"MIT"
] | null | null | null | Advent of Code/2021/09_1_smoke_basin.cpp | aleksi-kangas/competitive-programming | 149c38158c889b3417034b5d9d6cd4517f937447 | [
"MIT"
] | null | null | null | Advent of Code/2021/09_1_smoke_basin.cpp | aleksi-kangas/competitive-programming | 149c38158c889b3417034b5d9d6cd4517f937447 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <iterator>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <u... | 21.510417 | 84 | 0.502179 | aleksi-kangas |
beb157cd2d9ef531f5d298b710051a788c7e8fac | 6,010 | cpp | C++ | src/pam/pam.cpp | merelabs/mere-auth-lib | f4b09375563094af74ba937b4c2dca440c0d4431 | [
"BSD-2-Clause"
] | 2 | 2021-12-09T22:44:39.000Z | 2022-03-26T16:29:50.000Z | src/pam/pam.cpp | merelabs/mere-auth | f4b09375563094af74ba937b4c2dca440c0d4431 | [
"BSD-2-Clause"
] | null | null | null | src/pam/pam.cpp | merelabs/mere-auth | f4b09375563094af74ba937b4c2dca440c0d4431 | [
"BSD-2-Clause"
] | null | null | null | #include "pam.h"
#include <iostream>
Mere::Auth::PAM::~PAM()
{
}
Mere::Auth::PAM::PAM(const std::string &service, int flags)
: m_flags(flags),
m_service(service),
handler(NULL)
{
}
int Mere::Auth::PAM::login(const Applicant &applicant)
{
const struct pam_conv converse = { handshake, (void *) &a... | 27.072072 | 123 | 0.557903 | merelabs |
beb9b9965cd0926b49da1c96fa5918c8ae5c5dcb | 3,935 | cpp | C++ | UnderstandingCpp11/src/compatibility.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 15 | 2015-11-04T12:53:23.000Z | 2021-08-10T09:53:12.000Z | UnderstandingCpp11/src/compatibility.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | null | null | null | UnderstandingCpp11/src/compatibility.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 6 | 2015-11-13T10:17:01.000Z | 2020-05-14T07:25:48.000Z | #include "compatibility.h"
#include "inc.h"
#include <climits>
#include <iostream>
USING_NS_STD;
NS_ELLOOP_BEGIN
//---------------------------------- test in this cpp ------------------------------------
void testC99Macro();
void testLongLong();
void testNoexcept() { }
Compatibility * Compatibility... | 27.517483 | 91 | 0.424142 | elloop |
bebe08d2719a0053d3194552cc53713e8e81b408 | 1,969 | cpp | C++ | compiler/llvmArrayLoadInsn.cpp | Kishanthan/nballerina | baa4fc70ee140ceb5f57ce40905b233fffcb602f | [
"Apache-2.0"
] | null | null | null | compiler/llvmArrayLoadInsn.cpp | Kishanthan/nballerina | baa4fc70ee140ceb5f57ce40905b233fffcb602f | [
"Apache-2.0"
] | null | null | null | compiler/llvmArrayLoadInsn.cpp | Kishanthan/nballerina | baa4fc70ee140ceb5f57ce40905b233fffcb602f | [
"Apache-2.0"
] | null | null | null | #include "BIR.h"
ArrayLoadInsn::ArrayLoadInsn() { }
ArrayLoadInsn::ArrayLoadInsn(Location *pos, InstructionKind kind, Operand *lOp,
bool opFA, bool fR, Operand* KOp, Operand* ROp)
: NonTerminatorInsn(pos, kind, lOp), optionalFieldAccess(opFA),
fillingRead(fR), keyOp(KOp), rhsOp(ROp) {}
LLVMVa... | 41.893617 | 98 | 0.757237 | Kishanthan |
bec3c4047906c0673ac770fc4d7f0b997e7fadaf | 550 | cpp | C++ | src/5000/5789.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/5000/5789.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/5000/5789.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main()
{
int no_case;
cin>>no_case;
while(no_case--)
{
string num;
cin>>num;
int k=num.size()/2;
int n1, n2;
switch(num.size()%2)
{
case 0:
n1=num.at(k-1), n2=num.at(k... | 14.473684 | 41 | 0.409091 | upple |
bed182e25bf0c180072642de20bd37e82b49fa61 | 10,785 | tcc | C++ | include/lvr2/algorithm/CleanupAlgorithms.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | include/lvr2/algorithm/CleanupAlgorithms.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | include/lvr2/algorithm/CleanupAlgorithms.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /**
* Copyright (c) 2018, University Osnabrück
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this li... | 38.244681 | 104 | 0.553732 | uos |
bed9204c7dbcd2ce89c8e7eb8ce54be93218f452 | 5,314 | hpp | C++ | include/c9/value.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | 1 | 2015-02-13T02:03:29.000Z | 2015-02-13T02:03:29.000Z | include/c9/value.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | include/c9/value.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "json/json.h"
#include "c9/channel9.hpp"
#include "c9/gc.hpp"
#include "c9/string.hpp"
namespace Channel9
{
union Value
{
enum {
TYPE_SHIFT = 56,
TYPE_MASK = 0xf000000000000000ULL,
HEAP_TYPE_MASK = 0xff00000000000000ULL,
VALUE_MASK = 0x0fffffffffffffffULL... | 25.548077 | 128 | 0.690817 | stormbrew |
bed9631b262608c09677527bf691f8c469c5b6ba | 519 | cpp | C++ | Games/Inheritance/Point.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | Games/Inheritance/Point.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | Games/Inheritance/Point.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
//
// File Name: FileName.h
// Author(s): Blakely North (blakely.north@digipen.edu)
// Project: CS170 Project 4: Inheritance
// Course: WANIC VGP2
//
// Copyright © 2019 DigiPen (USA) Corporation.
//
//---------------... | 22.565217 | 81 | 0.375723 | PowerUser64 |
bedf2c17e71d62feeb1c01c0c80e52bf0ea1e921 | 3,614 | hpp | C++ | Include/libShapeDB.hpp | ldgcomputing/libShape | 89505afac7ee10903538604b5476b8b8fd6368c2 | [
"MIT"
] | null | null | null | Include/libShapeDB.hpp | ldgcomputing/libShape | 89505afac7ee10903538604b5476b8b8fd6368c2 | [
"MIT"
] | null | null | null | Include/libShapeDB.hpp | ldgcomputing/libShape | 89505afac7ee10903538604b5476b8b8fd6368c2 | [
"MIT"
] | null | null | null | //
// libShapeDB.hpp
// libShape
//
// Created by Louis Gehrig on 4/13/19.
// Copyright © 2019 Louis Gehrig. All rights reserved.
//
/***
MIT License
Copyright (c) 2019 Louis Gehrig
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fil... | 21.511905 | 79 | 0.714721 | ldgcomputing |
bee42a0ec43b9e8666c2912841ecf863fd0069da | 17 | hpp | C++ | src/color/LuvCH/trait/index/index.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 120 | 2015-12-31T22:30:14.000Z | 2022-03-29T15:08:01.000Z | src/color/LuvCH/trait/index/index.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 6 | 2016-08-22T02:14:56.000Z | 2021-11-06T22:39:52.000Z | src/color/LuvCH/trait/index/index.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 23 | 2016-02-03T01:56:26.000Z | 2021-09-28T16:36:27.000Z | // USE Default!!! | 17 | 17 | 0.588235 | 3l0w |
bee4753e8fa7dcaec3bad5e8092772a81d215591 | 384 | cpp | C++ | check/src/hello_hipfft.cpp | powderluv/rocm-build | db8b6f4cde075344aec91d7bf5b521905b42fb50 | [
"Apache-2.0"
] | 59 | 2020-10-30T12:28:30.000Z | 2022-03-31T05:29:24.000Z | check/src/hello_hipfft.cpp | powderluv/rocm-build | db8b6f4cde075344aec91d7bf5b521905b42fb50 | [
"Apache-2.0"
] | 26 | 2020-09-28T03:53:26.000Z | 2022-03-14T03:12:42.000Z | check/src/hello_hipfft.cpp | powderluv/rocm-build | db8b6f4cde075344aec91d7bf5b521905b42fb50 | [
"Apache-2.0"
] | 7 | 2020-09-28T03:43:21.000Z | 2022-03-20T16:17:10.000Z |
#include "hipfft.h"
char status_text[10] = "failure";
char* hipfft_status_to_string(hipfftResult status)
{
return status_text;
}
int main()
{
int v;
hipfftResult ret = hipfftGetVersion(&v);
if (ret != HIPFFT_SUCCESS) {
printf("[hipFFT] %s\n", hipfft_status_to_string(ret));
return... | 16 | 66 | 0.601563 | powderluv |
bee484b2f47911447f4b18cc3969f814711f38f1 | 2,411 | cpp | C++ | CSES/Range Queries/RangeMinimumQueriesOne.cpp | Anni1123/competitive-programming | bfcc72ff3379d09dee22f30f71751a32c0cc511b | [
"MIT"
] | 1 | 2021-04-03T13:33:00.000Z | 2021-04-03T13:33:00.000Z | CSES/Range Queries/RangeMinimumQueriesOne.cpp | iamsuryakant/competitive-programming | 413000f5bc4a627407e1335c35dcdbee516e8cc1 | [
"MIT"
] | null | null | null | CSES/Range Queries/RangeMinimumQueriesOne.cpp | iamsuryakant/competitive-programming | 413000f5bc4a627407e1335c35dcdbee516e8cc1 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
#define deb(x) cout << #x << " is " << x << "\n"
#define int long long
#define mod 1000000007
#define PI acos(-1)
template <typename T>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
templ... | 24.353535 | 116 | 0.533389 | Anni1123 |
beef195f4976c9a5579a491c3e81570e2b5ca0fd | 490 | cpp | C++ | source/quantum-script-extension-url.amalgam.cpp | g-stefan/quantum-script-extension-url | 4226f12bb962bc04f91204c15b9ed19fb3e06f06 | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-url.amalgam.cpp | g-stefan/quantum-script-extension-url | 4226f12bb962bc04f91204c15b9ed19fb3e06f06 | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-url.amalgam.cpp | g-stefan/quantum-script-extension-url | 4226f12bb962bc04f91204c15b9ed19fb3e06f06 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Quantum Script Extension URL
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#include "quantum-script-extension-url.cpp"
#include "quantum-script-extension-url-copyright.c... | 28.823529 | 63 | 0.742857 | g-stefan |
beef410381b4d935cf10debc3666b7e1cada5d0f | 1,314 | cpp | C++ | lightoj/1263.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | lightoj/1263.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | lightoj/1263.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 1003
using namespace std;
bool vis[le], ck[le];
int mo[le];
set<int> st;
vector<int> v[le];
bool bfs(int a){
memset(vis, 0, sizeof(vis));
vis[a] = true;
ck[a] = true;
int n = 1, sum = mo[a];
queue<int> q;
q.push(a);
while(!q.empty()){
int p = q.front();
q.pop();... | 20.857143 | 59 | 0.424658 | cosmicray001 |
bef18a09af66acdd54a0ce56fbf0cc22d89b1c8d | 6,820 | hpp | C++ | pwiz/utility/bindings/CLI/common/Unimod.hpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/utility/bindings/CLI/common/Unimod.hpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/utility/bindings/CLI/common/Unimod.hpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// $Id: Unimod.hpp 4922 2013-09-05 22:33:08Z pcbrefugee $
//
//
// Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
//
// Copyright 2011 Vanderbilt University - Nashville, TN 37232
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in ... | 30.176991 | 137 | 0.673607 | edyp-lab |
befbe4b417cd1677d3df8fe69e74edda1dbe8cd2 | 362 | cpp | C++ | test/test.main.cpp | spjuanjoc/template_project_cpp | c52c1b9223bf7a8a8ef66f8bb278c91b5487f189 | [
"MIT"
] | 1 | 2021-12-29T10:11:53.000Z | 2021-12-29T10:11:53.000Z | test/test.main.cpp | spjuanjoc/template_project_cpp | c52c1b9223bf7a8a8ef66f8bb278c91b5487f189 | [
"MIT"
] | null | null | null | test/test.main.cpp | spjuanjoc/template_project_cpp | c52c1b9223bf7a8a8ef66f8bb278c91b5487f189 | [
"MIT"
] | null | null | null | /**
* @brief Defines the entry point for the tests.
*
* @author juan.castellanos
* @date 2021-06-28
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch2/catch.hpp"
#include "fmt/core.h"
TEST_CASE("test the main", "[foo]")
{
fmt::print("Tes... | 20.111111 | 97 | 0.649171 | spjuanjoc |
befff457b2857aef240df5b23d325b57640c0c0e | 919 | cpp | C++ | tests/sslstreaming.cpp | doa379/libsockpp | f45b3335fbbd53edc6ee6f8b110fc9f9cba2b38c | [
"MIT"
] | null | null | null | tests/sslstreaming.cpp | doa379/libsockpp | f45b3335fbbd53edc6ee6f8b110fc9f9cba2b38c | [
"MIT"
] | null | null | null | tests/sslstreaming.cpp | doa379/libsockpp | f45b3335fbbd53edc6ee6f8b110fc9f9cba2b38c | [
"MIT"
] | null | null | null | #include <iostream>
#include <libsockpp/sock.h>
static const char HOST[] { "localhost" };
static const char PORT[] { "4433" };
// Remember to generate a set of pems
// $ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /tmp/key.pem -out /tmp/cert.pem
int main(int ARGC, char *ARGV[])
{
sockpp::Cb cb { []... | 27.029412 | 96 | 0.594124 | doa379 |
8305f9fa1120af9344ce35e471f2ccd35e2aa9ca | 974 | cpp | C++ | examples/multithreading/game/triggers.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | examples/multithreading/game/triggers.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | examples/multithreading/game/triggers.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include "triggers.h"
#include "player.h"
#include "../game.h"
#include <log/log.h>
void game::Triggers::add(double x, const sad::dukpp03::CompiledFunction& func, bool once)
{
m_triggers << game::Triggers::Data(x, func, once);
}
void game::Triggers::clear()
{
m_triggers.clear();
}
void game::Triggers::tryRu... | 24.974359 | 89 | 0.517454 | mamontov-cpp |
8306951b2205f038a53bb813f4f6b4bc5acd27a0 | 9,672 | hpp | C++ | external/include/mapnik/enumeration.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/enumeration.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/enumeration.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 28.280702 | 98 | 0.541977 | Wujingli |
8306aebebd21dce0d5dad909167f917f0bc6e680 | 1,074 | hpp | C++ | smart_tales_ii/game/obstacle/base/gestureobstacle.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | smart_tales_ii/game/obstacle/base/gestureobstacle.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | 11 | 2018-02-08T14:50:16.000Z | 2022-01-21T19:54:24.000Z | smart_tales_ii/game/obstacle/base/gestureobstacle.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | /*
gestureobstacle.hpp
Expanded base obstacle with support for gestures
Defines the logic for how the gesture obstacle
is neutralized by user input.
This class is virtual.
*/
#pragma once
#include "baseobstacle.hpp"
namespace Obstacle
{
enum class GestureType : uint8_t
{
None = 0,
InProgress = 1,
Tap ... | 21.48 | 75 | 0.744879 | TijmenUU |
8306e55296b6898502854fbbb8b28de2107b1618 | 579 | cpp | C++ | 3_memory_mgmt/3_smart_pointers/05_scopes.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 27 | 2019-10-08T13:43:32.000Z | 2021-08-30T08:00:28.000Z | 3_memory_mgmt/3_smart_pointers/05_scopes.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 1 | 2020-10-11T23:20:15.000Z | 2020-10-11T23:20:15.000Z | 3_memory_mgmt/3_smart_pointers/05_scopes.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 14 | 2019-09-22T15:17:59.000Z | 2021-07-13T06:06:37.000Z | #include <iostream>
int var = 5; // global varible
namespace test
{
int var = 3; // namespace variable
}
void func() {
int var = 7; // function variable
std::cout << "Function variable : " << var << std::endl;
}
int main() {
int var = 10; // local variable
std::cout << "Global va... | 22.269231 | 80 | 0.56304 | aalfianrachmat |
83072cb43898916d3743e26aa338b26eb36506f2 | 1,967 | hpp | C++ | KFContrib/KFGlobal/KFUuidData.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFContrib/KFGlobal/KFUuidData.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFContrib/KFGlobal/KFUuidData.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_UUID_DATA_H__
#define __KF_UUID_DATA_H__
#include "KFInclude.h"
namespace KFrame
{
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////... | 34.508772 | 116 | 0.32181 | 282951387 |
8312977ba244abcaeccdadeb0aca150f683e8e8e | 796 | cpp | C++ | src/reguladorwatt.cpp | pirobtumen/UGR_IG | 8492d6c8a68e2151cc18103f0168a078afb46c3b | [
"MIT"
] | null | null | null | src/reguladorwatt.cpp | pirobtumen/UGR_IG | 8492d6c8a68e2151cc18103f0168a078afb46c3b | [
"MIT"
] | null | null | null | src/reguladorwatt.cpp | pirobtumen/UGR_IG | 8492d6c8a68e2151cc18103f0168a078afb46c3b | [
"MIT"
] | null | null | null | // Informática Gráfica
//
// Alberto Sola - 2016
// -----------------------------------------------------------------------------
#include "reguladorwatt.hpp"
// -----------------------------------------------------------------------------
Base Watt::base;
Body Watt::body;
// ---------------------------------------... | 22.111111 | 80 | 0.324121 | pirobtumen |
8312c46e4175afa3e3b22592a960ab7a184e6957 | 173,512 | cpp | C++ | src/examRoutines.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/examRoutines.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/examRoutines.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | // The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "calculator_inner_functions.h"
#include "calculator_html_functions.h"
#include "database.h"
#include "general_time_date.h"
#include "calculator_h... | 38.387611 | 137 | 0.704314 | tmilev |
23fedab0e03fc589615f011678fb317abafd7eb0 | 840 | cpp | C++ | src/glfw-cxx/GammaRamp.cpp | Mischa-Alff/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 12 | 2015-07-05T15:07:26.000Z | 2020-07-10T03:15:56.000Z | src/glfw-cxx/GammaRamp.cpp | TheRealJoe24/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 1 | 2016-08-10T16:49:13.000Z | 2016-08-19T18:23:04.000Z | src/glfw-cxx/GammaRamp.cpp | TheRealJoe24/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 3 | 2017-04-24T14:33:46.000Z | 2019-06-15T22:15:22.000Z | #include <glfw-cxx/GammaRamp.hpp>
namespace glfw
{
unsigned short* GammaRamp::GetRed()
{
return m_gammaramp.red;
}
void GammaRamp::SetRed(unsigned short* red)
{
m_gammaramp.red = red;
}
unsigned short* GammaRamp::GetGreen()
{
return m_gammaramp.green;
}
void GammaRamp::SetGreen(unsigned short* green... | 15.555556 | 74 | 0.705952 | Mischa-Alff |
9b00611b2ea7c84a162cb3dc1282a41c055ad8df | 1,501 | hpp | C++ | Raylib/include/Gamepad.hpp | MitchellRB/Pathfinding | 65be4ab55489fb79c98fdbd86e88c2e2e70d7105 | [
"MIT"
] | null | null | null | Raylib/include/Gamepad.hpp | MitchellRB/Pathfinding | 65be4ab55489fb79c98fdbd86e88c2e2e70d7105 | [
"MIT"
] | null | null | null | Raylib/include/Gamepad.hpp | MitchellRB/Pathfinding | 65be4ab55489fb79c98fdbd86e88c2e2e70d7105 | [
"MIT"
] | null | null | null | #ifndef RAYLIB_CPP_GAMEPAD_HPP_
#define RAYLIB_CPP_GAMEPAD_HPP_
#include <string>
#ifdef __cplusplus
extern "C"{
#endif
#include "raylib.h"
#ifdef __cplusplus
}
#endif
#include "./raylib-cpp-utils.hpp"
namespace raylib {
class Gamepad {
public:
Gamepad(int gamepadNumber = 0) {
set(gamepadNumber);
}
int n... | 19.75 | 52 | 0.686875 | MitchellRB |
9b02408d2961dc099ebe068a3b2a2a77d67fc4bc | 4,297 | cpp | C++ | cplusplus/TDD/src/tdd-QbLzwDictionary.cpp | abaquesoftware/QbGifBuilder | 2fae881308beb60def50e494feaa119e417fadfe | [
"MIT"
] | null | null | null | cplusplus/TDD/src/tdd-QbLzwDictionary.cpp | abaquesoftware/QbGifBuilder | 2fae881308beb60def50e494feaa119e417fadfe | [
"MIT"
] | null | null | null | cplusplus/TDD/src/tdd-QbLzwDictionary.cpp | abaquesoftware/QbGifBuilder | 2fae881308beb60def50e494feaa119e417fadfe | [
"MIT"
] | null | null | null | #include <catch/catch.hpp>
#include "QbGifBuilder/include/QbLzwDecoder.h"
using namespace std;
using namespace Catch::Matchers;
TEST_CASE( "Constructor and getters", "[QbLzwDictionary]" ) {
QbLzwDictionary test1(8);
QbLzwDictionary test2(7);
CHECK(test1.getInitialCodeWidth() == 8);
CHECK(test1.getEntryMapSiz... | 37.692982 | 89 | 0.616011 | abaquesoftware |
9b02f7607108666b76bb6a08bdd681959fe7deab | 3,624 | cpp | C++ | Program2/src/App.cpp | PawelWieczorek/MuditaTask | dd4786beee6853205df067709c5f73e32c6ca89a | [
"Unlicense"
] | null | null | null | Program2/src/App.cpp | PawelWieczorek/MuditaTask | dd4786beee6853205df067709c5f73e32c6ca89a | [
"Unlicense"
] | null | null | null | Program2/src/App.cpp | PawelWieczorek/MuditaTask | dd4786beee6853205df067709c5f73e32c6ca89a | [
"Unlicense"
] | null | null | null | //
// Created by pawel on 04.05.20.
//
#include "../include/App.h"
App::App(const std::string fifo_1to2, const std::string fifo_2to1) : fifo_1to2_name(fifo_1to2), fifo_2to1_name(fifo_2to1)
{
fifo_2to1_write = nullptr;
fifo_1to2_read = nullptr;
App::isOpen = true;
App::readingFromFifo = true;
App:... | 20.590909 | 121 | 0.594647 | PawelWieczorek |
9b04af6a7f544db35456ffaccc7877b12112175b | 1,976 | hpp | C++ | src/Calendar/MonthlyCalendar.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | src/Calendar/MonthlyCalendar.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | src/Calendar/MonthlyCalendar.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | #ifndef MonthlyCalendar_3837d1b6871845d09187dff8161117e6
#define MonthlyCalendar_3837d1b6871845d09187dff8161117e6
#include "Calendar.hpp"
#include "../Event/Event.hpp"
#include "../Event/EventContainer.hpp"
#include <iostream>
/**
* @brief Represents Calendar that can show events in selected month
*
*/
class Mon... | 31.365079 | 96 | 0.607287 | pokorj54 |
9b066ece3e949e7a90bee638f6c594ffc3e0d5f9 | 1,343 | cpp | C++ | examples/google-code-jam/slowpoke/GCJ2017Q-C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/slowpoke/GCJ2017Q-C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/slowpoke/GCJ2017Q-C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
using namespace std;
void comp(int tc){
unsigned long long n, k;
cin >> n >> k;
unsigned long long lowC = 0, hiC = 1, nlowC = 0, nhiC = 0, lowV = n-1, hiV = n, count = 0;
unsigned long long ans;
while(true){
if(count + hiC + lowC >= k){
... | 20.044776 | 94 | 0.323902 | rbenic-fer |
9b0b8ddbd44045d563b7134ff7b3edbb095c0433 | 457 | inl | C++ | node_modules/lzz-gyp/lzz-source/util_Table.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/util_Table.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/util_Table.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // util_Table.inl
//
#ifdef LZZ_ENABLE_INLINE
#define LZZ_INLINE inline
#else
#define LZZ_INLINE
#endif
namespace util
{
LZZ_INLINE TableNode::TableNode (size_t handle, size_t bit_mask)
: handle (handle), bit_mask (bit_mask)
{}
}
namespace util
{
LZZ_INLINE size_t Table::get_fdb_mask (size_t handle1, size_... | 18.28 | 72 | 0.656455 | SuperDizor |
9b0ebe0eaf89da27820516ce270161f4d3a6a648 | 1,922 | cpp | C++ | archive/3/januszex.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/januszex.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/januszex.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int I;
struct Span {
I a, b;
Span(I a, I b) : a(a), b(b) {};
bool operator<(const Span &other) {
return a < other.a;
};
};
int main()
{
char JANUSZEX[] = "januszex";
I EIGHT = sizeof(JANUSZEX) - 1;
I n, m;
scanf("%i %i"... | 19.814433 | 134 | 0.349636 | Aleshkev |
9b13709bccd72d1e0d9c82e2c7f4aa19c1939a81 | 6,580 | cpp | C++ | src/Misc/MatchHistoryEntry.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | 1 | 2021-04-28T20:32:57.000Z | 2021-04-28T20:32:57.000Z | src/Misc/MatchHistoryEntry.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | 7 | 2021-08-24T14:09:33.000Z | 2021-08-30T12:47:40.000Z | src/Misc/MatchHistoryEntry.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | null | null | null | #include <Misc/MatchHistoryEntry.hpp>
#include <Static/NumericSerializer.hpp>
#include <Static/StringSerializer.hpp>
/// <summary>
/// Constructs a match history entry
/// </summary>
WhackAStoodentServer::MatchHistoryEntry::MatchHistoryEntry() :
yourScore(static_cast<std::int64_t>(0)),
yourRole(WhackAStoodentServer:... | 34.814815 | 264 | 0.780091 | BigETI |
9b14e3bf90159387c623741a8c0fd72741057162 | 15,646 | cpp | C++ | HomeController/RGB3ChController.cpp | Yurik72/ESPHomeController | 89561ee27c4e8d847dc1c3d6505dfc6436514a91 | [
"MIT"
] | 24 | 2019-03-02T20:21:15.000Z | 2022-01-04T18:34:05.000Z | HomeController/RGB3ChController.cpp | Yurik72/ESPHomeController | 89561ee27c4e8d847dc1c3d6505dfc6436514a91 | [
"MIT"
] | null | null | null | HomeController/RGB3ChController.cpp | Yurik72/ESPHomeController | 89561ee27c4e8d847dc1c3d6505dfc6436514a91 | [
"MIT"
] | 5 | 2019-09-20T10:11:22.000Z | 2021-12-10T05:12:31.000Z | #include <Arduino.h>
#include <ArduinoJson.h>
#include "config.h"
#include "Utilities.h"
#include "BaseController.h"
#include "RGB3ChController.h"
#include <Ticker.h>
#ifndef DISABLE_RGB
REGISTER_CONTROLLER_FACTORY(RGB3ChController)
#endif
const size_t bufferSize = JSON_OBJECT_SIZE(40);
static String rgbModes;
///... | 27.790409 | 137 | 0.707337 | Yurik72 |
9b1bedc066b51ce44fa2e69d9905e7db808aa3dc | 1,879 | hpp | C++ | src/rstd/iter/iter_decl.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | src/rstd/iter/iter_decl.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | src/rstd/iter/iter_decl.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include <rstd/prelude.hpp>
namespace rstd {
namespace iter {
template <
typename T, typename I, typename F,
typename R=std::invoke_result_t<F, T &&>
>
class Map;
template <
typename T, typename I, typename F,
typename R=option_some_type<std::invoke_result_t<F, T... | 19.989362 | 67 | 0.718467 | agerasev |
9b2084954c4b4577cd80c2acc313d0b747ab1f93 | 6,190 | cpp | C++ | src/libtego/source/core/ContactsManager.cpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | 1 | 2019-06-10T11:05:15.000Z | 2019-06-10T11:05:15.000Z | src/libtego/source/core/ContactsManager.cpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | null | null | null | src/libtego/source/core/ContactsManager.cpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | null | null | null | /* Ricochet - https://ricochet.im/
* Copyright (C) 2014, John Brooks <john.brooks@dereferenced.net>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above ... | 32.408377 | 120 | 0.718901 | blueprint-freespeech |
9b29736710c795d6ff7427b3acbe40f5573b344e | 180,019 | cpp | C++ | yocto/yocto_shape.cpp | erez-o/yocto-gl | b722ae746433369ec891a5cd5b1975953951c491 | [
"MIT"
] | 2 | 2020-10-16T06:05:27.000Z | 2021-03-31T03:58:56.000Z | yocto/yocto_shape.cpp | erez-o/yocto-gl | b722ae746433369ec891a5cd5b1975953951c491 | [
"MIT"
] | null | null | null | yocto/yocto_shape.cpp | erez-o/yocto-gl | b722ae746433369ec891a5cd5b1975953951c491 | [
"MIT"
] | null | null | null | //
// Implementation for Yocto/Shape
//
// -----------------------------------------------------------------------------
// INCLUDES
// -----------------------------------------------------------------------------
#include "yocto_shape.h"
#include "ext/happly.h"
#include "yocto_obj.h"
#include "yocto_random.h"
#incl... | 42.437294 | 85 | 0.602442 | erez-o |
9b2dc2f67702a3457ff509829249237ce4e09333 | 15,601 | cpp | C++ | vwgen.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 12 | 2019-06-07T10:06:41.000Z | 2021-03-22T22:13:59.000Z | vwgen.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 1 | 2019-05-09T07:38:12.000Z | 2019-07-10T04:20:55.000Z | vwgen.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 3 | 2020-09-08T08:27:33.000Z | 2021-05-13T09:25:43.000Z | // audtevw.cpp : implementation of the CAudGenView class
//
#include "stdafx.h"
#include "Audtest.h"
#include "audtedoc.h"
#include "vwGen.h"
#include "Chart.h"
#include "xform.h"
#include "xformall.h"
#include "generat.h"
#include "dataset.h"
#include "zFormEdt.h"
#include "dlgRenam.h"
#include "dlgRecor.h"
#inc... | 24.881978 | 85 | 0.561887 | RDamman |
9b2e3e86a6d2f613704c96e935e7e067bc145360 | 170 | cpp | C++ | toggleConsoleVisibility/toggleConsoleVisibility.cpp | FreeSoftwareDevlopment/play-something-with-windows-api | f5a4341a7cafd8a36430127d913bafe1eb21bc68 | [
"MIT"
] | null | null | null | toggleConsoleVisibility/toggleConsoleVisibility.cpp | FreeSoftwareDevlopment/play-something-with-windows-api | f5a4341a7cafd8a36430127d913bafe1eb21bc68 | [
"MIT"
] | null | null | null | toggleConsoleVisibility/toggleConsoleVisibility.cpp | FreeSoftwareDevlopment/play-something-with-windows-api | f5a4341a7cafd8a36430127d913bafe1eb21bc68 | [
"MIT"
] | null | null | null | #include <Windows.h>
int main()
{
HWND ConsoleWindow{ GetConsoleWindow() };
ShowWindow(ConsoleWindow, (IsWindowVisible(ConsoleWindow) == TRUE) ? SW_HIDE : SW_SHOW);
}
| 21.25 | 89 | 0.729412 | FreeSoftwareDevlopment |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.