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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
850e65b2526dee0a3bf2d913451ca9927b3e4a36 | 1,712 | cpp | C++ | src/Engine.cpp | feliwir/openSage-deprecated | 4e6b3e7da577d37892cd0dfae31701c502247fb9 | [
"MIT"
] | 4 | 2018-11-22T23:15:23.000Z | 2021-04-27T06:55:24.000Z | src/Engine.cpp | feliwir/openSage-deprecated | 4e6b3e7da577d37892cd0dfae31701c502247fb9 | [
"MIT"
] | null | null | null | src/Engine.cpp | feliwir/openSage-deprecated | 4e6b3e7da577d37892cd0dfae31701c502247fb9 | [
"MIT"
] | 1 | 2019-08-27T13:02:59.000Z | 2019-08-27T13:02:59.000Z | // Stephan Vedder 2015
#include "Engine.hpp"
#include "FileSystem.hpp"
#include "AudioSystem.hpp"
#include "VideoSystem.hpp"
#include "GraphicsSystem.hpp"
#include "Game/Handler.hpp"
#include <SFML/Audio.hpp>
#include <iostream>
#include "Config.hpp"
Engine::Engine()
{
m_window.create(sf::VideoMode(800... | 23.452055 | 80 | 0.633178 | feliwir |
850f46aebeb155e13a49d17deff53c3eee38c9c5 | 277 | cpp | C++ | automaton/cpp/main.cpp | Vasniktel/labs-basics | 0447d155e8342cbfdfb94de559c2b24dfb62e7f3 | [
"MIT"
] | 1 | 2019-07-10T06:54:22.000Z | 2019-07-10T06:54:22.000Z | automaton/cpp/main.cpp | Vasniktel/labs-basics | 0447d155e8342cbfdfb94de559c2b24dfb62e7f3 | [
"MIT"
] | null | null | null | automaton/cpp/main.cpp | Vasniktel/labs-basics | 0447d155e8342cbfdfb94de559c2b24dfb62e7f3 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include "automaton/automaton.hpp"
using namespace std;
int main() {
Automaton automata;
cout << boolalpha
<< automata.read_commands({'1', '0', '0', '1'}) << endl
<< automata.read_commands({'1'}) << endl;
return 0;
}
| 19.785714 | 62 | 0.620939 | Vasniktel |
8510b77706972f4d79f2b634710ddf30b293d2f4 | 28,258 | hpp | C++ | include/ITTM.hpp | browngrg/caledonia | 79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94 | [
"BSD-3-Clause"
] | null | null | null | include/ITTM.hpp | browngrg/caledonia | 79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94 | [
"BSD-3-Clause"
] | null | null | null | include/ITTM.hpp | browngrg/caledonia | 79c3bfc3fb40383719b1c2b39f1b485e7e8bdd94 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ITTM_HPP_
#define ITTM_HPP_
#include "MPI_Struct.hpp"
#include<iostream>
#include<iomanip>
#include<fstream>
#include<sstream>
#include<string>
#include<vector>
#include<cmath>
#include<algorithm>
// A measurement object for the Infinite Temperature Transition Matrix method of calculating DOS
// Methods for ... | 38.186486 | 191 | 0.567875 | browngrg |
851500dd92b2d4e56f6df034352d7fb10533dddd | 95,300 | cpp | C++ | Backdoor.Win32.Aryan/ServerA/main.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Backdoor.Win32.Aryan/ServerA/main.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Backdoor.Win32.Aryan/ServerA/main.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | #include <windows.h>
#include <stdio.h>
#include <time.h>
#include <Tlhelp32.h>
#include <userenv.h>
#include <olectl.h>
#include <ole2.h>
#include <objbase.h>
#include <vfw.h>
#include <gdiplus.h>
#include <gdiplusenums.h>
/////////////////////////////////////
#include "resource.h"
#include "AryanServer.h"
#include "h... | 24.791883 | 236 | 0.588468 | 010001111 |
8515e9543c0548f5707b9a8c4b6cd1ac17c91dff | 1,272 | cc | C++ | library/LayoutEmbedding/ApproximateGeodesicDistance.cc | jsb/LayoutEmbedding | 6ef02ed0043dfabce6d593486358d6ef15cbf3ba | [
"MIT"
] | 18 | 2021-02-18T15:35:25.000Z | 2022-03-01T07:20:37.000Z | library/LayoutEmbedding/ApproximateGeodesicDistance.cc | jsb/LayoutEmbedding | 6ef02ed0043dfabce6d593486358d6ef15cbf3ba | [
"MIT"
] | null | null | null | library/LayoutEmbedding/ApproximateGeodesicDistance.cc | jsb/LayoutEmbedding | 6ef02ed0043dfabce6d593486358d6ef15cbf3ba | [
"MIT"
] | 5 | 2021-02-17T14:52:42.000Z | 2021-10-05T09:51:25.000Z | #include "ApproximateGeodesicDistance.hh"
#include <LayoutEmbedding/IGLMesh.hh>
#include <LayoutEmbedding/Util/Assert.hh>
#include <igl/heat_geodesics.h>
namespace LayoutEmbedding {
pm::vertex_attribute<double> approximate_geodesic_distance(const pm::vertex_attribute<tg::pos3>& _pos, const std::vector<pm::vertex_ha... | 30.285714 | 158 | 0.698113 | jsb |
851689c9233681e38cfda302db1a3650827881a6 | 747 | cpp | C++ | player/mainwindow.cpp | a-pavlov/qtplayer | 10dfb7e1c8bac9cebb1925dd890b1d4b42d036f4 | [
"Apache-2.0"
] | null | null | null | player/mainwindow.cpp | a-pavlov/qtplayer | 10dfb7e1c8bac9cebb1925dd890b1d4b42d036f4 | [
"Apache-2.0"
] | null | null | null | player/mainwindow.cpp | a-pavlov/qtplayer | 10dfb7e1c8bac9cebb1925dd890b1d4b42d036f4 | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QKeyEvent>
#include <QTimer>
#include <QDebug>
#include "core/Instance.h"
#include "core/Common.h"
#include "qml/Qml.h"
MainWindow::MainWindow(QObject* parent)
: QObject(parent)
, vlcInstance(new VlcInstance(VlcCommon::ar... | 25.758621 | 61 | 0.681392 | a-pavlov |
851a489b5c80d8eaa69fed1a410d308a9a91dd4e | 198 | cc | C++ | tests/CompileTests/ElsaTestCases/t0167.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/t0167.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/t0167.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | // t0167.cc
// variation on d0046.cc: specialization refers to its own
// class using template arguments
template <class T>
struct B {};
template <class T2>
struct B<T2*> {
void g(B<T2*> &);
};
| 16.5 | 58 | 0.671717 | maurizioabba |
851db3d561856bc30069cb072e42ff4bc6759791 | 2,458 | hpp | C++ | include/nanorange/detail/views/view_closure.hpp | cjdb/NanoRange | 16d33c66c7869e57dd82ff8673eb5172eff1343d | [
"BSL-1.0"
] | null | null | null | include/nanorange/detail/views/view_closure.hpp | cjdb/NanoRange | 16d33c66c7869e57dd82ff8673eb5172eff1343d | [
"BSL-1.0"
] | null | null | null | include/nanorange/detail/views/view_closure.hpp | cjdb/NanoRange | 16d33c66c7869e57dd82ff8673eb5172eff1343d | [
"BSL-1.0"
] | null | null | null | #ifndef NANORANGE_DETAIL_VIEWS_VIEW_CLOSURE_HPP
#define NANORANGE_DETAIL_VIEWS_VIEW_CLOSURE_HPP
#include <nanorange/detail/views/range_adaptors.hpp>
#include <nanorange/views/all.hpp>
#include <nanorange/views/interface.hpp>
#include <tuple>
#include <type_traits>
NANO_BEGIN_NAMESPACE
template<copy_constructible F>
... | 31.113924 | 123 | 0.720098 | cjdb |
8520c152dd8d51768237d0e8d2ab0e2a83b57b84 | 1,363 | cpp | C++ | mods/webutils/webgetter_em.cpp | lmorchard/apone | 1fa82927a9fbcbe953976ac9796f32092ad52ac2 | [
"MIT"
] | 8 | 2015-04-30T07:53:21.000Z | 2018-09-13T22:06:40.000Z | mods/webutils/webgetter_em.cpp | lmorchard/apone | 1fa82927a9fbcbe953976ac9796f32092ad52ac2 | [
"MIT"
] | 5 | 2015-12-02T09:01:00.000Z | 2018-10-12T16:06:33.000Z | mods/webutils/webgetter_em.cpp | lmorchard/apone | 1fa82927a9fbcbe953976ac9796f32092ad52ac2 | [
"MIT"
] | 2 | 2018-09-13T15:48:29.000Z | 2021-05-04T15:31:10.000Z |
#include "webgetter.h"
#include <emscripten.h>
#include <coreutils/log.h>
#include <coreutils/utils.h>
using namespace utils;
using namespace logging;
using namespace std;
WebGetter::Job::Job(const string &url, const string &targetDir) : loaded(false), targetDir(targetDir) {
LOGD("Job created");
target = targ... | 20.343284 | 109 | 0.67058 | lmorchard |
85216c7a248cc454b901573c8154c25b8fe9d66a | 118,707 | cpp | C++ | Day1/build/iOS/Preview/src/Uno.Time.g.cpp | sauvikatinnofied/ExploringFuse | cc272d55c7221d88ba773494f571b6528e5279f8 | [
"Apache-2.0"
] | null | null | null | Day1/build/iOS/Preview/src/Uno.Time.g.cpp | sauvikatinnofied/ExploringFuse | cc272d55c7221d88ba773494f571b6528e5279f8 | [
"Apache-2.0"
] | null | null | null | Day1/build/iOS/Preview/src/Uno.Time.g.cpp | sauvikatinnofied/ExploringFuse | cc272d55c7221d88ba773494f571b6528e5279f8 | [
"Apache-2.0"
] | null | null | null | // This file was generated based on '(multiple files)'.
// WARNING: Changes might be lost if you edit this file directly.
#include <Uno.ArgumentNullException.h>
#include <Uno.ArgumentOutOfRangeException.h>
#include <Uno.Bool.h>
#include <Uno.Diagnostics.Clock.h>
#include <Uno.Int.h>
#include <Uno.Long.h>
#include <Uno... | 42.685005 | 374 | 0.701214 | sauvikatinnofied |
8527827eab15e3fa4eefeb8d0bc82cd12d567940 | 19,630 | cpp | C++ | inetsrv/iis/svcs/staxcore/hashmap/src/directry.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/iis/svcs/staxcore/hashmap/src/directry.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/iis/svcs/staxcore/hashmap/src/directry.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
directry.cpp
Abstract:
This module contains definition for the CDirectory base class
Author:
Johnson Apacible (JohnsonA) 25-Sept-1995
Revision History:
Alex Wetmore (AWetmore) split into directry.cpp (from hash.cpp)
... | 20.663158 | 111 | 0.615181 | npocmaka |
8528fe98365114014d1976ad359fee2e713a16f1 | 2,426 | cc | C++ | stl/language/templates/partial_specialization.cc | curoky/dumbo | d0aae7b239a552ff670795ae51c3452c9e28f63d | [
"Apache-2.0"
] | null | null | null | stl/language/templates/partial_specialization.cc | curoky/dumbo | d0aae7b239a552ff670795ae51c3452c9e28f63d | [
"Apache-2.0"
] | null | null | null | stl/language/templates/partial_specialization.cc | curoky/dumbo | d0aae7b239a552ff670795ae51c3452c9e28f63d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 curoky(cccuroky@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 30.708861 | 121 | 0.640148 | curoky |
852d252e9c2a6be5c9f0e6111654f836669346db | 66,780 | cpp | C++ | services/distributeddataservice/test/moduletest/common/distributeddb/src/distributeddb_kv_observer_test.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/test/moduletest/common/distributeddb/src/distributeddb_kv_observer_test.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/test/moduletest/common/distributeddb/src/distributeddb_kv_observer_test.cpp | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:54.000Z | 2021-09-13T12:07:54.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 39.632047 | 118 | 0.72652 | openharmony-gitee-mirror |
852d5888b62d346d290e1d445ea88bec0317bad7 | 1,467 | cpp | C++ | tests/unit_tests/pgscript/grammar.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 12 | 2019-04-16T17:35:53.000Z | 2020-04-12T14:37:27.000Z | tests/unit_tests/pgscript/grammar.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 47 | 2019-05-27T15:24:43.000Z | 2020-04-27T17:54:54.000Z | tests/unit_tests/pgscript/grammar.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | null | null | null | #include <pgscript/parser/grammar.h>
#include <pgscript/intermediate/ast_printer.h>
#include <gtest/gtest.h>
using namespace pagoda;
class GrammarTest : public ::testing::Test
{
protected:
using iterator = std::string::iterator;
virtual void SetUp() { program = std::make_shared<pagoda::ast::Program>(); }
pagoda:... | 26.196429 | 93 | 0.698705 | diegoarjz |
852f8d3dcbe32b2cc18e583ae928ec042af4bf89 | 8,485 | cpp | C++ | displays/taminfo.cpp | mohawkjohn/bskQtViz | cf54077a82f9674273044a8305069056a3aaf0a0 | [
"0BSD"
] | null | null | null | displays/taminfo.cpp | mohawkjohn/bskQtViz | cf54077a82f9674273044a8305069056a3aaf0a0 | [
"0BSD"
] | null | null | null | displays/taminfo.cpp | mohawkjohn/bskQtViz | cf54077a82f9674273044a8305069056a3aaf0a0 | [
"0BSD"
] | null | null | null | /*
ISC License
Copyright (c) 2016-2017, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copie... | 35.061983 | 148 | 0.639128 | mohawkjohn |
8530c898010676980b0e62d2e80ef97d86ca1494 | 9,094 | hpp | C++ | src/hiir/HalfBandTpl.hpp | D-J-Roberts/pedalevite | 157611b5ccf2bb97f0007d7d17b4c07bd6a21fba | [
"WTFPL"
] | 69 | 2017-01-17T13:17:31.000Z | 2022-03-01T14:56:32.000Z | src/hiir/HalfBandTpl.hpp | D-J-Roberts/pedalevite | 157611b5ccf2bb97f0007d7d17b4c07bd6a21fba | [
"WTFPL"
] | 1 | 2020-11-03T14:52:45.000Z | 2020-12-01T20:31:15.000Z | src/hiir/HalfBandTpl.hpp | D-J-Roberts/pedalevite | 157611b5ccf2bb97f0007d7d17b4c07bd6a21fba | [
"WTFPL"
] | 8 | 2017-02-08T13:30:42.000Z | 2021-12-09T08:43:09.000Z | /*****************************************************************************
HalfBandTpl.hpp
Author: Laurent de Soras, 2021
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the... | 28.687697 | 148 | 0.575104 | D-J-Roberts |
85325e1710a84efb96dba5dfcba1b0d89498843c | 609 | cpp | C++ | solutions-PAT/B1043.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-PAT/B1043.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-PAT/B1043.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | #include <iostream>
using namespace std;
int hash_table[6] = {};
char mp[6] = {'P', 'A', 'T', 'e', 's', 't'};
int main()
{
char c;
int cnt = 0;
while (scanf("%c", &c) != EOF)
{
int i = 0;
for (i = 0; i < 6; i++)
if (mp[i] == c)
break;
if (i < 6)
... | 17.4 | 44 | 0.325123 | Ki-Seki |
853a3a00f183f68e8e1d0fd821da11a687606184 | 15,843 | cpp | C++ | src/PathSimulator.cpp | cda-tum/ddsim | 79743fb581bd9d2b3cd9d0a460914257c8a8e584 | [
"MIT"
] | 5 | 2022-03-03T05:18:03.000Z | 2022-03-30T00:36:06.000Z | src/PathSimulator.cpp | cda-tum/ddsim | 79743fb581bd9d2b3cd9d0a460914257c8a8e584 | [
"MIT"
] | 9 | 2022-02-28T17:01:45.000Z | 2022-03-25T16:07:58.000Z | src/PathSimulator.cpp | cda-tum/ddsim | 79743fb581bd9d2b3cd9d0a460914257c8a8e584 | [
"MIT"
] | 2 | 2022-03-03T07:30:19.000Z | 2022-03-07T09:46:53.000Z | #include "PathSimulator.hpp"
#include <iterator>
#include <utility>
PathSimulator::SimulationPath::SimulationPath(std::size_t nleaves, PathSimulator::SimulationPath::Components components, const qc::QuantumComputation* qc, bool assumeCorrectOrder):
components(std::move(components)), nleaves(nleaves), qc(qc) {
... | 39.806533 | 180 | 0.546487 | cda-tum |
853be2fc0749bc60ac4bcbb279b8881b37e51e53 | 964 | cpp | C++ | Day2/codeforce797B.cpp | tsung1271232/NCTU_PCCA | 79dc16aa7f83c734b859e93cb06323c382a4d686 | [
"MIT"
] | null | null | null | Day2/codeforce797B.cpp | tsung1271232/NCTU_PCCA | 79dc16aa7f83c734b859e93cb06323c382a4d686 | [
"MIT"
] | null | null | null | Day2/codeforce797B.cpp | tsung1271232/NCTU_PCCA | 79dc16aa7f83c734b859e93cb06323c382a4d686 | [
"MIT"
] | null | null | null | //odd sum
#include<bits/stdc++.h>
#define MIN -1e9;
using namespace std;
int n, sum, ans, num1, num2;
vector<int>odd;
vector<int>even;
void init()
{
odd.clear();
even.clear();
sum = 0;
ans = MIN;
}
bool isOdd(long long int num)
{
if(num&1)
return true;
else
return false;
}
in... | 16.62069 | 46 | 0.447095 | tsung1271232 |
853d63999f376d31676f557d547358f3d504a664 | 1,921 | cpp | C++ | aws-cpp-sdk-sagemaker/source/model/DescribeModelPackageGroupResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-sagemaker/source/model/DescribeModelPackageGroupResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-sagemaker/source/model/DescribeModelPackageGroupResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker/model/DescribeModelPackageGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#i... | 26.315068 | 145 | 0.77824 | perfectrecall |
854b84e5bf3fcbca1923ca8fc29c56663ab8e7de | 543 | cpp | C++ | raygame/EvadeJComponent.cpp | JCoshua/AIDecisionMakingExercise | c16933538569837e40932894f1ca5bdf0befd123 | [
"MIT"
] | null | null | null | raygame/EvadeJComponent.cpp | JCoshua/AIDecisionMakingExercise | c16933538569837e40932894f1ca5bdf0befd123 | [
"MIT"
] | null | null | null | raygame/EvadeJComponent.cpp | JCoshua/AIDecisionMakingExercise | c16933538569837e40932894f1ca5bdf0befd123 | [
"MIT"
] | null | null | null | #include "EvadeJComponent.h"
#include "Actor.h"
#include "Transform2D.h"
#include "MoveComponent.h"
MathLibrary::Vector2 EvadeJComponent::calculateForce()
{
if (!getTarget())
return MathLibrary::Vector2(0, 0);
MathLibrary::Vector2 V = getOwner()->getTransform()->getWorldPosition() - (getTarget()->getTransform()->g... | 38.785714 | 185 | 0.751381 | JCoshua |
854e1361b7f2c7edefbd303736510cbfc3e809f7 | 1,242 | cpp | C++ | virtual_init_ctor/main.cpp | Mizux/snippets | 69c4a5b7e79108824e5fa8a47235c8a36f28295c | [
"Apache-2.0"
] | null | null | null | virtual_init_ctor/main.cpp | Mizux/snippets | 69c4a5b7e79108824e5fa8a47235c8a36f28295c | [
"Apache-2.0"
] | null | null | null | virtual_init_ctor/main.cpp | Mizux/snippets | 69c4a5b7e79108824e5fa8a47235c8a36f28295c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <memory>
// Show that virtual method are not overloaded in constructor
class Base {
public:
Base() {
init();
std::cout << "Base::Base() called\n";
}
virtual ~Base() { std::cout << "Base::~Base() called\n"; }
virtual void foo() { std::cout << "Base::foo() called\n"; }
void bar() ... | 27.6 | 77 | 0.588567 | Mizux |
854e79cc164fd21b9eb6977df29713ec8ac889ba | 929 | cpp | C++ | crafting-wooden-tables/improved.cpp | GambuzX/IEEEXtreme2020 | a7b224f8129aa97a0f1e696279d7d6b84ca44600 | [
"MIT"
] | 2 | 2020-10-29T19:02:18.000Z | 2021-10-21T04:54:35.000Z | crafting-wooden-tables/improved.cpp | GambuzX/IEEEXtreme2020 | a7b224f8129aa97a0f1e696279d7d6b84ca44600 | [
"MIT"
] | null | null | null | crafting-wooden-tables/improved.cpp | GambuzX/IEEEXtreme2020 | a7b224f8129aa97a0f1e696279d7d6b84ca44600 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
int main() {
ll C, N, P, W;
cin >> C >> N >> P >> W;
ll filled_slots = W / P; // N-1 slots
ll remaining = W % P; // last slot
ll empty_slots = N - filled_slots - 1;
// build tables... | 22.119048 | 64 | 0.486545 | GambuzX |
855885ad34ed635a90c0a4bb6c5d9f550d3f016c | 1,353 | cpp | C++ | demos/howto/efficiently_import_sequences.cpp | h-2/SeqAnHTS | a1923897fe1bd359136cfd09f0d4c245978c0fce | [
"BSD-3-Clause"
] | 409 | 2015-01-12T22:02:01.000Z | 2022-03-29T06:17:05.000Z | demos/howto/efficiently_import_sequences.cpp | h-2/SeqAnHTS | a1923897fe1bd359136cfd09f0d4c245978c0fce | [
"BSD-3-Clause"
] | 1,269 | 2015-01-02T22:42:25.000Z | 2022-03-08T13:31:46.000Z | demos/howto/efficiently_import_sequences.cpp | h-2/SeqAnHTS | a1923897fe1bd359136cfd09f0d4c245978c0fce | [
"BSD-3-Clause"
] | 193 | 2015-01-14T16:21:27.000Z | 2022-03-19T22:47:02.000Z | //![includes]
#define SEQAN_PROFILE // enable time measurements
#include <seqan/seq_io.h>
#include <iostream>
using namespace seqan;
//![includes]
//![open_file]
int main(int argc, char const * argv[])
{
SEQAN_PROTIMESTART(loadTime);
SeqFileIn seqFile;
if (argc < 2 || !open(seqFile, argv[1]))
ret... | 25.055556 | 93 | 0.589061 | h-2 |
855895d51b1f7de83384be2173e8b37905a1df73 | 7,090 | cc | C++ | src/drivers/devices/cuda/flowunit/color_transpose/color_transpose_test.cc | fujl/modelbox | 390541a87318bb6f8a37163668b439e5387f5d9a | [
"Apache-2.0"
] | 1 | 2021-12-16T06:53:00.000Z | 2021-12-16T06:53:00.000Z | src/drivers/devices/cuda/flowunit/color_transpose/color_transpose_test.cc | fujl/modelbox | 390541a87318bb6f8a37163668b439e5387f5d9a | [
"Apache-2.0"
] | null | null | null | src/drivers/devices/cuda/flowunit/color_transpose/color_transpose_test.cc | fujl/modelbox | 390541a87318bb6f8a37163668b439e5387f5d9a | [
"Apache-2.0"
] | 1 | 2021-12-03T06:19:09.000Z | 2021-12-03T06:19:09.000Z | /*
* Copyright 2021 The Modelbox Project Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 34.926108 | 147 | 0.65134 | fujl |
85599976e787ce931f5006b876fcf137f929e835 | 2,179 | cc | C++ | base/pmr/arena.cc | romange/helio | 445ebf76b96b7360982f2b3c4558ec347ba3adb5 | [
"Apache-2.0"
] | 13 | 2021-12-09T19:04:01.000Z | 2022-02-20T08:49:06.000Z | base/pmr/arena.cc | romange/async | 30d387fa0f2b5eee32eec570781be00157b2d07d | [
"Apache-2.0"
] | 1 | 2022-01-15T20:09:37.000Z | 2022-01-15T20:09:37.000Z | base/pmr/arena.cc | romange/async | 30d387fa0f2b5eee32eec570781be00157b2d07d | [
"Apache-2.0"
] | null | null | null | // Copyright 2021, Roman Gershman. All rights reserved.
// See LICENSE for licensing terms.
//
#include "base/pmr/arena.h"
#include <cassert>
namespace base {
static const int kBlockSize = 8192;
using namespace std;
PmrArena::PmrArena(pmr::memory_resource* mr) : mr_(mr), blocks_(mr) {
}
PmrArena::~PmrArena() {
... | 28.298701 | 79 | 0.699862 | romange |
855afc581a5f0650e7e315f46e7a2d1a145e8315 | 1,119 | cc | C++ | src/typographic_map.cc | asmuth-archive/travistest | b69b0981952bb8274031792a887169a2cca12d95 | [
"Apache-2.0"
] | 721 | 2015-01-01T15:14:48.000Z | 2017-04-28T20:27:56.000Z | src/typographic_map.cc | asmuth-archive/travistest | b69b0981952bb8274031792a887169a2cca12d95 | [
"Apache-2.0"
] | 98 | 2019-08-02T01:01:59.000Z | 2019-08-02T11:54:38.000Z | src/typographic_map.cc | asmuth-archive/travistest | b69b0981952bb8274031792a887169a2cca12d95 | [
"Apache-2.0"
] | 93 | 2015-01-02T11:21:33.000Z | 2017-04-26T08:18:33.000Z | /**
* This file is part of the "clip" project
* Copyright (c) 2018 Paul Asmuth
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the ... | 30.243243 | 80 | 0.664879 | asmuth-archive |
855d29f2ae9458ff3b00e951cdca6d6d40d0392c | 3,376 | cc | C++ | src/rpc/client.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | 1 | 2016-08-15T11:55:32.000Z | 2016-08-15T11:55:32.000Z | src/rpc/client.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | null | null | null | src/rpc/client.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | null | null | null |
#include <deque>
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
#include "handler.h"
#include "connection.h"
#include "client_service.h"
#include "client.h"
#include <util/logger.h>
namespace rpc
{
class Client::Impl:
public rpc::Handler,
public boost::noncopyable
{
public:
Impl():
service... | 19.402299 | 112 | 0.707346 | mnvl |
856269f6bf20f772fd1d1fb9043fab356edfb3b5 | 944 | cc | C++ | TC/787-DIV2-500.cc | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | TC/787-DIV2-500.cc | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | TC/787-DIV2-500.cc | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstd... | 16.857143 | 44 | 0.579449 | aajjbb |
8562d812891d61183ca216827ebd275f24af6162 | 3,288 | cpp | C++ | Target/LIN64utf8/CCore/src/video/Desktop.cpp | SergeyStrukov/CCore-3-xx | 820507e78f8aa35ca05761e00e060c8f64c59af5 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | Target/LIN64utf8/CCore/src/video/Desktop.cpp | SergeyStrukov/CCore-3-xx | 820507e78f8aa35ca05761e00e060c8f64c59af5 | [
"BSL-1.0"
] | null | null | null | Target/LIN64utf8/CCore/src/video/Desktop.cpp | SergeyStrukov/CCore-3-xx | 820507e78f8aa35ca05761e00e060c8f64c59af5 | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* Desktop.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 3.50
//
// Tag: Target/LIN64utf8
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// ... | 18.788571 | 96 | 0.537409 | SergeyStrukov |
85649391127215dbf5ef4896563d01d0da0ae2ea | 683 | cpp | C++ | 2376 Cleaning Shifts/main.cpp | sqc1999-oi/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | 1 | 2016-07-18T12:05:16.000Z | 2016-07-18T12:05:16.000Z | 2376 Cleaning Shifts/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | 2376 Cleaning Shifts/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
typedef pair<int, int> pii;
pii cow[25001];
int main()
{
ios::sync_with_stdio(false);
int n, t;
cin >> n >> t;
for (int i = 1; i <= n; i++) cin >> cow[i].first >> cow[i].second;
sort(cow + 1, cow + 1 + n);
if (cow[1].first > 1)
{
cout... | 17.973684 | 68 | 0.462665 | sqc1999-oi |
8564bd84f0b37f30de456e5365401424c06c86fc | 3,373 | cpp | C++ | src/mgos_hx711.cpp | meticulousCraftman/HX711 | 5c84a740214b32d0a76bde1ea23b87a799d6ced4 | [
"Apache-2.0"
] | null | null | null | src/mgos_hx711.cpp | meticulousCraftman/HX711 | 5c84a740214b32d0a76bde1ea23b87a799d6ced4 | [
"Apache-2.0"
] | null | null | null | src/mgos_hx711.cpp | meticulousCraftman/HX711 | 5c84a740214b32d0a76bde1ea23b87a799d6ced4 | [
"Apache-2.0"
] | null | null | null | #include "mgos.h"
#include "mgos_hx711.h"
HX711_ADC *mgos_hx711_create(uint8_t dout, uint8_t sck) {
return new HX711_ADC(dout, sck);
}
void mgos_hx711_set_gain(HX711_ADC *hx, uint8_t gain) {
if (hx == nullptr) return;
return hx->setGain(gain);
}
void mgos_hx711_begin(HX711_ADC *hx) {
if(hx == nullptr) retur... | 22.337748 | 71 | 0.708568 | meticulousCraftman |
8568ecce41917cee46043e5e4112917a8ff6d7c8 | 2,592 | hpp | C++ | simplegraph SIM/array.hpp | BernardIgiri/archive-RobotCarNavigation | b6bf6d9cc0ebeccd1bea7b70e33ba63731096e77 | [
"MIT"
] | null | null | null | simplegraph SIM/array.hpp | BernardIgiri/archive-RobotCarNavigation | b6bf6d9cc0ebeccd1bea7b70e33ba63731096e77 | [
"MIT"
] | null | null | null | simplegraph SIM/array.hpp | BernardIgiri/archive-RobotCarNavigation | b6bf6d9cc0ebeccd1bea7b70e33ba63731096e77 | [
"MIT"
] | null | null | null | /*
* array.hpp
*
* Created on: Apr 11, 2009
* Author: bernard
*/
#ifndef ARRAY_HPP_
#define ARRAY_HPP_
#include <stdlib.h>
namespace mystl {
template <class T,int SIZE>
class array {
public:
array() : nElmts(0) {};
// add an element to the array
inline bool push(const T &data) { return push_back(data)... | 26.721649 | 71 | 0.667824 | BernardIgiri |
856eb92a82400fcb7a7d5d4fcec5f7d382f750e1 | 5,359 | cpp | C++ | books/tech/cpp/std-17/s_roth-clean_cpp/ch_09-design_patterns_and_idioms/03-strategy/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | books/tech/cpp/std-17/s_roth-clean_cpp/ch_09-design_patterns_and_idioms/03-strategy/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | books/tech/cpp/std-17/s_roth-clean_cpp/ch_09-design_patterns_and_idioms/03-strategy/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | null | null | null | #include <memory>
#include <string>
#include <string_view>
#include <sstream>
#include <iostream>
class Formatter {
public:
virtual ~Formatter() = default;
Formatter& withCustomerId(std::string_view customerId) {
this->customerId = customerId;
return *this;
}
... | 31.523529 | 75 | 0.515208 | ordinary-developer |
856ef0e6a4f54d6251db3dbc197c482df3836752 | 3,762 | cpp | C++ | vlib/ssci/math/nr/nr_util.cpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | vlib/ssci/math/nr/nr_util.cpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | vlib/ssci/math/nr/nr_util.cpp | syntheticgio/fda-hive | 5e645c6a5b76b5a437635631819a1c934c7fd7fc | [
"Unlicense",
"MIT"
] | null | null | null | /*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. Vahan Simonyan (1), Dr. Raja Mazumder (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereb... | 32.431034 | 83 | 0.656831 | syntheticgio |
85704ab7c35889a75697c1f599b37e73ff2e1954 | 629 | hpp | C++ | jome/q-cat-list-widget-item.hpp | eepp/jome | f971d1c2f7d8a52924ae57a8e16c417db0c0a688 | [
"MIT"
] | 25 | 2019-04-29T14:54:49.000Z | 2021-12-22T06:08:15.000Z | jome/q-cat-list-widget-item.hpp | eepp/jome | f971d1c2f7d8a52924ae57a8e16c417db0c0a688 | [
"MIT"
] | 13 | 2019-09-26T15:42:41.000Z | 2021-12-03T14:22:22.000Z | jome/q-cat-list-widget-item.hpp | eepp/jome | f971d1c2f7d8a52924ae57a8e16c417db0c0a688 | [
"MIT"
] | 3 | 2019-04-26T15:17:30.000Z | 2021-09-07T21:53:39.000Z | /*
* Copyright (C) 2019 Philippe Proulx <eepp.ca>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef _JOME_Q_CAT_LIST_WIDGET_ITEM_HPP
#define _JOME_Q_CAT_LIST_WIDGET_ITEM_HPP
#include <QListWidget>
#include "emoji-db.hpp"
namespa... | 17.971429 | 64 | 0.72655 | eepp |
8571248c742d719993800ed3ff2fe57e0e409383 | 5,800 | cpp | C++ | Components/MultiSlider.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 28 | 2017-03-01T04:09:18.000Z | 2022-02-01T13:33:50.000Z | Components/MultiSlider.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 3 | 2017-03-09T05:22:49.000Z | 2017-08-02T18:38:05.000Z | Components/MultiSlider.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 17 | 2017-03-01T14:00:01.000Z | 2022-02-08T06:36:54.000Z | //
// Copyright (c) 2016 - 2017 Mesh Consultants Inc.
// 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, ... | 24.369748 | 98 | 0.721724 | elix22 |
85743b740ee201ff3d3fc6e9a40052d7e6dbdecd | 363 | hpp | C++ | cpp/include/event/bridge/Error.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2018-06-06T20:33:28.000Z | 2018-06-06T20:33:28.000Z | cpp/include/event/bridge/Error.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | null | null | null | cpp/include/event/bridge/Error.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2020-07-31T03:39:15.000Z | 2020-07-31T03:39:15.000Z | #ifndef EVENT_BRIDGE_ERROR_HPP
#define EVENT_BRIDGE_ERROR_HPP
#include "Message.hpp"
#include <string>
namespace sl
{
namespace event
{
namespace bridge
{
class Error : public Message
{
public:
Error(const std::string& message);
std::string toString() const noexcept override;
};
} // bridge
} // event
... | 11.34375 | 51 | 0.713499 | skydiveuas |
8574ed96c220ad2c53088ccb39f3a52b094cc148 | 574 | cpp | C++ | Challenges - Recursion/Mapped Strings.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | 3 | 2019-10-04T13:24:16.000Z | 2020-01-22T05:07:02.000Z | Challenges - Recursion/Mapped Strings.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | Challenges - Recursion/Mapped Strings.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
string map[27] = {"", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
void conv(string str, string ostr, ll n, ll i){
if(i >= n){
cout << ostr << endl;
return;
... | 19.133333 | 152 | 0.442509 | helewrer3 |
8579c36a58b1367bcae27515249227c9dd05d491 | 1,147 | cpp | C++ | tests/src/integration/tests/test_logging.cpp | Meteo-Concept/cpp-driver | 1f54b3919d25351b70115129c1d31f109189268c | [
"Apache-2.0"
] | 327 | 2015-01-01T03:01:58.000Z | 2022-03-03T19:33:19.000Z | tests/src/integration/tests/test_logging.cpp | Meteo-Concept/cpp-driver | 1f54b3919d25351b70115129c1d31f109189268c | [
"Apache-2.0"
] | 218 | 2015-01-05T17:25:24.000Z | 2022-03-30T19:55:03.000Z | tests/src/integration/tests/test_logging.cpp | Meteo-Concept/cpp-driver | 1f54b3919d25351b70115129c1d31f109189268c | [
"Apache-2.0"
] | 249 | 2015-02-12T11:33:10.000Z | 2022-03-31T21:21:05.000Z | /*
Copyright (c) DataStax, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 29.410256 | 74 | 0.744551 | Meteo-Concept |
857a8e5d524de9e9bc61887de0166465e0084111 | 542 | cpp | C++ | static/analysis/Affine.cpp | jahic/Janus | 4612d0d7c0f9ec411534eca068abc2e5f042e203 | [
"Apache-2.0"
] | 6 | 2021-05-18T09:43:07.000Z | 2021-08-10T16:50:08.000Z | static/analysis/Affine.cpp | jahic/Janus | 4612d0d7c0f9ec411534eca068abc2e5f042e203 | [
"Apache-2.0"
] | null | null | null | static/analysis/Affine.cpp | jahic/Janus | 4612d0d7c0f9ec411534eca068abc2e5f042e203 | [
"Apache-2.0"
] | 2 | 2021-03-28T15:39:00.000Z | 2021-08-20T03:23:57.000Z | #include "Affine.h"
using namespace janus;
using namespace std;
void affineAnalysis(janus::Loop *loop)
{
if (loop->staticIterCount <= 0) return;
if (loop->unsafe) return;
//no break statement in the loop body
if (loop->exit.size() > 1) return;
//assume the memory accesses are already constructed... | 24.636364 | 96 | 0.649446 | jahic |
857fdfbac679a8d3f4f843555802f7757641d6c6 | 15,764 | cpp | C++ | xfa/fwl/core/fwl_noteimp.cpp | isabella232/pdfium-1 | d8f710cedd62c1d28beee15d7dc3d31ddd148437 | [
"BSD-3-Clause"
] | 38 | 2015-11-25T02:25:25.000Z | 2022-01-04T01:11:15.000Z | xfa/fwl/core/fwl_noteimp.cpp | isabella232/pdfium-1 | d8f710cedd62c1d28beee15d7dc3d31ddd148437 | [
"BSD-3-Clause"
] | 1 | 2021-02-23T22:36:54.000Z | 2021-02-23T22:36:54.000Z | xfa/fwl/core/fwl_noteimp.cpp | isabella232/pdfium-1 | d8f710cedd62c1d28beee15d7dc3d31ddd148437 | [
"BSD-3-Clause"
] | 13 | 2016-08-03T02:35:18.000Z | 2020-12-17T10:14:04.000Z | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fwl/core/fwl_noteimp.h"
#include "core/fxcrt/fx_ext.h"
#include... | 28.557971 | 80 | 0.674067 | isabella232 |
858157838ca77b0d3243edc963d521633d979e8d | 3,006 | hpp | C++ | graphblas/algorithm/test_cc.hpp | richardlett/graphblast | dac2a22f40b49b702ba34462007201f0ae50f690 | [
"Apache-2.0"
] | 155 | 2019-01-19T12:15:12.000Z | 2022-03-21T02:59:03.000Z | graphblas/algorithm/test_cc.hpp | richardlett/graphblast | dac2a22f40b49b702ba34462007201f0ae50f690 | [
"Apache-2.0"
] | 16 | 2019-05-02T19:29:57.000Z | 2021-06-30T07:22:57.000Z | graphblas/algorithm/test_cc.hpp | richardlett/graphblast | dac2a22f40b49b702ba34462007201f0ae50f690 | [
"Apache-2.0"
] | 20 | 2019-06-10T17:36:41.000Z | 2022-03-23T19:48:26.000Z | #ifndef GRAPHBLAS_ALGORITHM_TEST_CC_HPP_
#define GRAPHBLAS_ALGORITHM_TEST_CC_HPP_
#include <vector>
#include <stack>
#include <unordered_set>
namespace graphblas {
namespace algorithm {
// Runs simple CPU-based reference Connected Components (CC) implementation.
// Returns number of components and the connected comp... | 30.06 | 78 | 0.55356 | richardlett |
3fec3b508e917a9a86108852f644ce1c30c425ac | 23,911 | cpp | C++ | tau/TauEngine/src/dx/dx10/DX10Buffer.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/src/dx/dx10/DX10Buffer.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/src/dx/dx10/DX10Buffer.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #include "dx/dx10/DX10Buffer.hpp"
#ifdef _WIN32
#include <Safeties.hpp>
#include "dx/dx10/DX10GraphicsInterface.hpp"
#include "dx/dx10/DX10RenderingContext.hpp"
#include "TauEngine.hpp"
#if TAU_RTTI_CHECK
#define CTX() \
if(!RTT_CHECK(context, DX10RenderingContext)) \
{ TAU_THROW(IncorrectContextExcepti... | 30.498724 | 161 | 0.698256 | hyfloac |
3fedc55b358f2caad32cf67a9bcbbcea2bea9976 | 994 | hpp | C++ | lio/include/lio/socket.hpp | hkr/ltl | 41b54f3da3aa085862f8242d4869fa1e2fb4824e | [
"Unlicense"
] | 2 | 2018-05-12T09:37:14.000Z | 2019-04-13T01:32:05.000Z | lio/include/lio/socket.hpp | hkr/ltl | 41b54f3da3aa085862f8242d4869fa1e2fb4824e | [
"Unlicense"
] | null | null | null | lio/include/lio/socket.hpp | hkr/ltl | 41b54f3da3aa085862f8242d4869fa1e2fb4824e | [
"Unlicense"
] | null | null | null | #ifndef LIO_SOCKET_HPP
#define LIO_SOCKET_HPP
#include "ltl/future.hpp"
#include <memory>
#include <stdint.h>
#include <vector>
struct uv_tcp_s;
namespace lio {
class iomanager;
class socket
{
public:
explicit socket(std::shared_ptr<uv_tcp_s> const& tcp);
~socket();
socket(socket const&) =dele... | 21.148936 | 62 | 0.640845 | hkr |
3ff1a147f8e888a89dcf2d5da4f96d2fd73d96e1 | 326 | cpp | C++ | cpp/13413.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/13413.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/13413.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
int main() {
fastio;
int N; cin >> N;
while (N--) {
int n, t1 = 0, t2 = 0; cin >> n;
string a, b; cin >> a >> b;
for (int i = 0; i < n; i++)
if (a[i] != b[i]) (a[i] == 'W' ? t1 : t2)++;
cout << max(t1, t2) << '\n'... | 21.733333 | 47 | 0.484663 | jinhan814 |
3ff9c5cc9c14d351b66ef0aa09248dfe982879a0 | 576 | cpp | C++ | Uncategorized/rccc1s2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/rccc1s2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/rccc1s2.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/extc++.h>
#define all(x) (x).begin(), (x).end()
template<typename T> int size(const T &a){return a.size();}
using namespace std;
using ll = long long;
const int MM = 1505;
int n;
ll a[MM];
__gnu_pbds::gp_hash_table<ll, ll> mp, sub[MM];
ll ans;
int main(){
ios_base::sync_with_stdio(0);... | 18.580645 | 60 | 0.503472 | crackersamdjam |
3ffab45bb5f0897b4ea8d27019c2ded8f3079eb0 | 1,572 | cpp | C++ | blades/xbmc/xbmc/interfaces/legacy/LanguageHook.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/xbmc/xbmc/interfaces/legacy/LanguageHook.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/xbmc/xbmc/interfaces/legacy/LanguageHook.cpp | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* ... | 29.111111 | 72 | 0.723282 | krattai |
3ffb4189fcdf57cc615cceec4bec0ae1e2981eed | 5,994 | cpp | C++ | src/cgame/etj_timerun.cpp | marcel95k/etjump | 019a09f62c0dc551886ccba9a6eb419e5910d722 | [
"MIT"
] | null | null | null | src/cgame/etj_timerun.cpp | marcel95k/etjump | 019a09f62c0dc551886ccba9a6eb419e5910d722 | [
"MIT"
] | null | null | null | src/cgame/etj_timerun.cpp | marcel95k/etjump | 019a09f62c0dc551886ccba9a6eb419e5910d722 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2022 ETJump team <zero@etjump.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | 29.97 | 126 | 0.712212 | marcel95k |
3ffc1aef30744d8cad04762638bff81b3339f082 | 11,617 | cpp | C++ | common/tier4_traffic_light_rviz_plugin/src/traffic_light_publish_panel.cpp | goktugyildirim/autoware.universe | b2f90a0952bf37969517f72ccd5a1ea86f253ce5 | [
"Apache-2.0"
] | 1 | 2021-11-30T02:26:07.000Z | 2021-11-30T02:26:07.000Z | common/tier4_traffic_light_rviz_plugin/src/traffic_light_publish_panel.cpp | goktugyildirim/autoware.universe | b2f90a0952bf37969517f72ccd5a1ea86f253ce5 | [
"Apache-2.0"
] | 11 | 2022-01-24T10:26:37.000Z | 2022-03-22T08:19:01.000Z | common/tier4_traffic_light_rviz_plugin/src/traffic_light_publish_panel.cpp | KeisukeShima/autoware.universe | 21d5453dfa2bf75716b8737fb7b58f3b45483e29 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2022 TIER IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | 32.540616 | 97 | 0.710597 | goktugyildirim |
b205fffa40b216b9f6726aea1a7bbf35067674d2 | 469 | cpp | C++ | bindings/cpp/bgd.cpp | neonkingfr/le | 8da0e1c6094ae8886e42e48a99120a0d01a882ae | [
"MIT"
] | 23 | 2018-07-16T16:15:20.000Z | 2022-01-06T19:27:09.000Z | bindings/cpp/bgd.cpp | neonkingfr/le | 8da0e1c6094ae8886e42e48a99120a0d01a882ae | [
"MIT"
] | 42 | 2018-01-02T22:55:58.000Z | 2020-12-16T22:04:25.000Z | bindings/cpp/bgd.cpp | neonkingfr/le | 8da0e1c6094ae8886e42e48a99120a0d01a882ae | [
"MIT"
] | 2 | 2019-04-23T05:37:27.000Z | 2021-04-02T17:49:08.000Z | #include "bgd.hpp"
using namespace le;
BGD::BGD(Model model, Tensor input, Tensor output, float learning_rate)
{
LeOptimizer *c_optimizer =
LE_OPTIMIZER(le_bgd_new(model.c_model(),
/// @todo: Avoid copying
le_tensor_new_copy(input.c_tensor()),
le_tensor_new_copy(output.... | 18.038462 | 71 | 0.633262 | neonkingfr |
b20deee8b523ed7fdf975b48491a14657ffea1bf | 1,291 | hpp | C++ | modules/test/unit/include/nt2/sdk/unit/details/unit_test.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/test/unit/include/nt2/sdk/unit/details/unit_test.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | modules/test/unit/include/nt2/sdk/unit/details/unit_test.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 MetaScale SAS
//
// Distributed under the Boost Softw... | 33.102564 | 80 | 0.574748 | pbrunet |
b215b76870e4332fc9fb1fc604fdb4d0bf386510 | 5,306 | cpp | C++ | microcontroller/src/silvia_display.cpp | willhunt/silviabot | c7800f88b8776f608bd1832d2449f714cce96887 | [
"MIT"
] | 1 | 2020-12-03T20:29:27.000Z | 2020-12-03T20:29:27.000Z | microcontroller/src/silvia_display.cpp | willhunt/silviabot | c7800f88b8776f608bd1832d2449f714cce96887 | [
"MIT"
] | null | null | null | microcontroller/src/silvia_display.cpp | willhunt/silviabot | c7800f88b8776f608bd1832d2449f714cce96887 | [
"MIT"
] | null | null | null | #include "silvia_display.h"
#include "silvia_modes.h"
SilviaDisplay::SilviaDisplay(TwoWire* twi)
: Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, twi, -1)
, mass_subscriber_("brew_mass", &SilviaDisplay::massCallback, this)
, t_power_on_(0)
, power_status_last_update_(false)
, mass_(0)
, t_mass_u... | 31.772455 | 101 | 0.618734 | willhunt |
b21c5733999bbb9d470b67e0ea151cf586d855c7 | 4,819 | cpp | C++ | src/background_sea.cpp | esohns/splot | 1577df5c06270c7239d9e721d339256269d96d5b | [
"ClArtistic"
] | null | null | null | src/background_sea.cpp | esohns/splot | 1577df5c06270c7239d9e721d339256269d96d5b | [
"ClArtistic"
] | null | null | null | src/background_sea.cpp | esohns/splot | 1577df5c06270c7239d9e721d339256269d96d5b | [
"ClArtistic"
] | null | null | null | #include "stdafx.h"
#include "background_sea.h"
#include <cmath>
#include <string>
#include "ace/OS.h"
#include "ace/OS_Memory.h"
#include "defines.h"
#include "common.h"
#include "state.h"
#include "configuration.h"
#include "background_sea_segment.h"
#include "image.h"
// init statics
GLuint Splot_BackgroundSea... | 26.333333 | 91 | 0.640382 | esohns |
b21d378bfc96691a60410728a5e211efc77b4bc0 | 10,666 | cpp | C++ | luaopen_uv.cpp | grrrwaaa/luauv | fc74482dcf3323d03825a5c867264bf44c734ffb | [
"MIT",
"Unlicense"
] | 6 | 2015-04-03T03:00:43.000Z | 2021-03-12T06:31:17.000Z | luaopen_uv.cpp | grrrwaaa/luauv | fc74482dcf3323d03825a5c867264bf44c734ffb | [
"MIT",
"Unlicense"
] | null | null | null | luaopen_uv.cpp | grrrwaaa/luauv | fc74482dcf3323d03825a5c867264bf44c734ffb | [
"MIT",
"Unlicense"
] | 2 | 2017-04-18T01:54:05.000Z | 2020-11-06T08:34:05.000Z | /*
LuaUV
Copyright 2012 Graham Wakefield. 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 use, copy, modify, m... | 27.348718 | 460 | 0.716295 | grrrwaaa |
b21f729764a90d86074ff4e78691e3f2c2533a35 | 5,042 | hpp | C++ | ROSE/SgUntypedNodes.hpp | OpenFortranProject/ofp-sdf | 202591cf4ac4981b21ddc38c7077f9c4d1c16f54 | [
"BSD-3-Clause"
] | 27 | 2015-03-05T14:41:39.000Z | 2021-04-22T23:51:25.000Z | ROSE/SgUntypedNodes.hpp | OpenFortranProject/ofp-sdf | 202591cf4ac4981b21ddc38c7077f9c4d1c16f54 | [
"BSD-3-Clause"
] | 33 | 2015-11-05T09:50:04.000Z | 2018-05-10T21:32:48.000Z | ROSE/SgUntypedNodes.hpp | OpenFortranProject/ofp-sdf | 202591cf4ac4981b21ddc38c7077f9c4d1c16f54 | [
"BSD-3-Clause"
] | 10 | 2015-06-24T01:22:58.000Z | 2019-06-16T06:47:15.000Z | #ifndef SG_UNTYPED_NODES_HPP
#define SG_UNTYPED_NODES_HPP
#include <string>
#include <list>
namespace sage {
class SgNode;
class SgLocatedNode;
class SgLocatedNodeSupport;
class SgUntypedNode;
class SgUntypedExpression;
class SgUntypedStatement;
class SgUntypedDeclaration;
class SgUntypedType;
class SgUntypedAttrib... | 25.989691 | 163 | 0.800873 | OpenFortranProject |
b224de7ed585ed05cdec0ba602591d39f8f1439e | 3,798 | cpp | C++ | gemfirexd/native/src/gfxdclient/cpp/thrift/gfxd_struct_HostAddress.cpp | gemxd/gemfirexd-oss | d89cad2b075df92fc3acce09b9f8dc7b30be2445 | [
"Apache-2.0"
] | 13 | 2016-01-07T06:40:33.000Z | 2018-12-17T07:01:01.000Z | gemfirexd/native/src/gfxdclient/cpp/thrift/gfxd_struct_HostAddress.cpp | vmware-archive/gemfirexd-oss | d89cad2b075df92fc3acce09b9f8dc7b30be2445 | [
"Apache-2.0"
] | 7 | 2016-01-04T08:02:06.000Z | 2018-10-12T07:42:34.000Z | gemfirexd/native/src/gfxdclient/cpp/thrift/gfxd_struct_HostAddress.cpp | gemxd/gemfirexd-oss | d89cad2b075df92fc3acce09b9f8dc7b30be2445 | [
"Apache-2.0"
] | 9 | 2015-12-30T12:44:56.000Z | 2020-07-16T06:20:15.000Z | /**
* Autogenerated by Thrift Compiler (0.9.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include <thrift/Thrift.h>
#include <thrift/TApplicationException.h>
#include <thrift/protocol/TProtocol.h>
#include <thrift/transport/TTransport.h>
#include <thrift/cxxfunctional.... | 28.556391 | 134 | 0.631648 | gemxd |
b22c9d4469cbbaf3fd46ab3853e62b8003d81c16 | 2,925 | cpp | C++ | filters/pclviewer.cpp | megadl/DiveIntoPointCloud | e1206fc245d62cab487f2501f223996455f8db95 | [
"BSD-3-Clause"
] | null | null | null | filters/pclviewer.cpp | megadl/DiveIntoPointCloud | e1206fc245d62cab487f2501f223996455f8db95 | [
"BSD-3-Clause"
] | null | null | null | filters/pclviewer.cpp | megadl/DiveIntoPointCloud | e1206fc245d62cab487f2501f223996455f8db95 | [
"BSD-3-Clause"
] | null | null | null | #include "pclviewer.h"
#include <chrono>
#include <thread>
using namespace std::chrono_literals;
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
void main(int argc, char* argv[])
{
FilterType filtertype = FilterType::PassThrough;
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new... | 33.62069 | 110 | 0.578803 | megadl |
b22e0af99a8ffd0b4619ccef9322a1b5dc73a098 | 728 | cpp | C++ | chapter03/ex10_operatus.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter03/ex10_operatus.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter03/ex10_operatus.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | #include "../text_lib/std_lib_facilities.h"
// LOOKING BACK: Not sure why I didn't use char's for the operators..
int main()
{
// Program
cout << "Provide an operation and two values you'd like operated on:\n";
string operatus;
double val1;
double val2;
cin >> operatus >> val1 >> val2;
do... | 28 | 76 | 0.561813 | ClassAteam |
b22f89f7e7354563840f2d7dbf3ce5c5ce2c96d4 | 4,384 | cpp | C++ | thread_supervisor.cpp | espkk/dlt-parser | 5a458b72535e816cb4c76b86b3580bbbb436f3eb | [
"MIT"
] | null | null | null | thread_supervisor.cpp | espkk/dlt-parser | 5a458b72535e816cb4c76b86b3580bbbb436f3eb | [
"MIT"
] | null | null | null | thread_supervisor.cpp | espkk/dlt-parser | 5a458b72535e816cb4c76b86b3580bbbb436f3eb | [
"MIT"
] | null | null | null | #include <thread>
#include <type_traits>
#include <cassert>
#include "thread_supervisor.h"
#include "exceptions.h"
namespace dlt {
task::task(std::unique_ptr<fs::reader> reader) : reader_(std::move(reader)) {
}
const fs::reader& task::get_reader() const {
return *reader_;
}
void task::execute() {
... | 34.519685 | 121 | 0.630703 | espkk |
b23286066d2598d1c6bd45d07446e951b11db4e9 | 785 | cc | C++ | ZusatzaufgabeStrings/Main.cc | stefan-ewald/UdemyCpp | f880b566774882a1722e2c76c5ce3bdbd33b35d0 | [
"MIT"
] | 14 | 2020-12-18T20:00:49.000Z | 2022-02-23T12:44:26.000Z | ZusatzaufgabeStrings/Main.cc | stefan-ewald/UdemyCpp | f880b566774882a1722e2c76c5ce3bdbd33b35d0 | [
"MIT"
] | null | null | null | ZusatzaufgabeStrings/Main.cc | stefan-ewald/UdemyCpp | f880b566774882a1722e2c76c5ce3bdbd33b35d0 | [
"MIT"
] | 56 | 2020-11-07T20:14:22.000Z | 2022-03-31T12:36:09.000Z | #include <iostream>
#include <string>
#include "Exercise.h"
int main()
{
// Exercise 1
std::string str1 = "anna";
if (is_palindrom(str1))
{
std::cout << "Ist ein Palindrom!" << std::endl;
}
else
{
std::cout << "Ist kein Palindrom!" << std::endl;
}
// Exercise 2
... | 18.690476 | 60 | 0.533758 | stefan-ewald |
b234aba9602d043d298a314d7304485a9922246c | 437 | hpp | C++ | ruin (old)/variant.hpp | AmaneTsukishiro/Ruin | f8cc84799a4c9d5b314d231a5ae86890c84bb4fb | [
"BSL-1.0"
] | 3 | 2015-01-15T14:09:53.000Z | 2016-11-17T16:21:05.000Z | ruin (old)/variant.hpp | yuishiyumeiji/Ruin | f8cc84799a4c9d5b314d231a5ae86890c84bb4fb | [
"BSL-1.0"
] | null | null | null | ruin (old)/variant.hpp | yuishiyumeiji/Ruin | f8cc84799a4c9d5b314d231a5ae86890c84bb4fb | [
"BSL-1.0"
] | null | null | null |
#ifndef RUIN_VARIANT_HPP_INCLUDED
#define RUIN_VARIANT_HPP_INCLUDED
#include "ruin/variant/apply_visitor.hpp"
#include "ruin/variant/static_visitor.hpp"
#include "ruin/variant/variant.hpp"
#include "ruin/variant/visitor_ptr.hpp"
namespace ruin
{
using ruin::variants::variant;
using ruin::variants::static_visitor... | 19.863636 | 42 | 0.79405 | AmaneTsukishiro |
b2379b10f40e60045915937b61f5845c27ef4041 | 1,451 | cpp | C++ | sources/cpp/packedvsnode/main.cpp | xunilrj/sandbox | f92c12f83433cac01a885585e41c02bb5826a01f | [
"Apache-2.0"
] | 7 | 2017-04-01T17:18:35.000Z | 2022-01-12T05:23:23.000Z | sources/cpp/packedvsnode/main.cpp | xunilrj/sandbox | f92c12f83433cac01a885585e41c02bb5826a01f | [
"Apache-2.0"
] | 6 | 2020-05-24T13:36:50.000Z | 2022-02-15T06:44:20.000Z | sources/cpp/packedvsnode/main.cpp | xunilrj/sandbox | f92c12f83433cac01a885585e41c02bb5826a01f | [
"Apache-2.0"
] | 2 | 2018-09-20T01:07:39.000Z | 2019-02-22T14:55:38.000Z | #include <iostream>
#include <string>
#include "deltaTime.h"
struct SomeData
{
char junk[32];
float x;
char doesntMatter[32];
};
int main(int argc, char** argv)
{
for(int i = 0;i < argc; ++i)
{
std::cout << i << ":" << argv[i] << std::endl;
}
std::string argv1 = ""; if(argc >= 2) ... | 23.031746 | 73 | 0.401792 | xunilrj |
b237a9fc00930c1aeb4e9f93bb6c745bb8aaa101 | 6,838 | cc | C++ | tests/unittests.cc | thalman/c-aducid | bb3123db8ed38ac9b547b98ef27c3b1f6c20c2bd | [
"Apache-2.0"
] | null | null | null | tests/unittests.cc | thalman/c-aducid | bb3123db8ed38ac9b547b98ef27c3b1f6c20c2bd | [
"Apache-2.0"
] | null | null | null | tests/unittests.cc | thalman/c-aducid | bb3123db8ed38ac9b547b98ef27c3b1f6c20c2bd | [
"Apache-2.0"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "definitions.h"
#include "myxml.h"
#include "utils.h"
#include "aducid.h"
#include "aducid++.h"
char const *XMLExample = "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
"<soapenv:Body><ns1... | 48.15493 | 223 | 0.690553 | thalman |
b2386fa9f25335af25c472aac935d54c2dd25e9e | 740 | cpp | C++ | Treasure Hunt/Treasure Hunt/Treasure Hunt.cpp | IosifGabriel/TreasureHunt | fd98a931f3a3b5c017e50606b54a8f360ada79ae | [
"MIT"
] | null | null | null | Treasure Hunt/Treasure Hunt/Treasure Hunt.cpp | IosifGabriel/TreasureHunt | fd98a931f3a3b5c017e50606b54a8f360ada79ae | [
"MIT"
] | null | null | null | Treasure Hunt/Treasure Hunt/Treasure Hunt.cpp | IosifGabriel/TreasureHunt | fd98a931f3a3b5c017e50606b54a8f360ada79ae | [
"MIT"
] | null | null | null | #include "pch.h"
#include <iostream>
#include "GameMode.h"
#include <windows.h>
using namespace std;
int main()
{
GameMode Game;
int i = 0;
do
{
system("CLS");
i++;
Game.TreasureHuntMap.PrintMap();
Game.MoveAgents();
Sleep(1500);
if (Game.ReturnNumbOfTreasure() == 3)
{
cou... | 16.086957 | 55 | 0.554054 | IosifGabriel |
b2388a2035674e1c521c6ec84ffda36293cf8c29 | 391 | cpp | C++ | unittests/src/test_TwoSidedPlane.cpp | dgough/lazy-gltf2 | 9ada92d73234c55a15acebfd0b80ec045ef75f52 | [
"Apache-2.0"
] | 12 | 2017-07-24T02:17:38.000Z | 2022-03-10T11:27:36.000Z | unittests/src/test_TwoSidedPlane.cpp | dgough/lazy-gltf2 | 9ada92d73234c55a15acebfd0b80ec045ef75f52 | [
"Apache-2.0"
] | null | null | null | unittests/src/test_TwoSidedPlane.cpp | dgough/lazy-gltf2 | 9ada92d73234c55a15acebfd0b80ec045ef75f52 | [
"Apache-2.0"
] | null | null | null | #include <lazy_gltf2.hpp>
#include <gtest/gtest.h>
#include <array>
#include "common.hpp"
using namespace gltf2;
static const char* PATH = LAZY_GLTF2_BASE_SAMPLE_DIR "/2.0/TwoSidedPlane/glTF/TwoSidedPlane.gltf";
TEST(gltf, twosided) {
Gltf gltf(PATH);
EXPECT_TRUE(gltf);
auto material = gltf.material(0)... | 21.722222 | 98 | 0.723785 | dgough |
b23ac721770ff61a0b35f2347e0ae2849a8abe33 | 1,096 | cpp | C++ | src/parser/src/Ast.cpp | jonathanhaigh/sq | 6ca366b86ff6436620c36eabb1f0103cab88722b | [
"MIT"
] | 1 | 2020-11-12T16:21:41.000Z | 2020-11-12T16:21:41.000Z | src/parser/src/Ast.cpp | jonathanhaigh/sq | 6ca366b86ff6436620c36eabb1f0103cab88722b | [
"MIT"
] | 44 | 2021-02-08T19:17:57.000Z | 2021-04-05T18:51:38.000Z | src/parser/src/Ast.cpp | jonathanhaigh/sq | 6ca366b86ff6436620c36eabb1f0103cab88722b | [
"MIT"
] | null | null | null | /* -----------------------------------------------------------------------------
* Copyright 2021 Jonathan Haigh
* SPDX-License-Identifier: MIT
* ---------------------------------------------------------------------------*/
#include "parser/Ast.h"
#include "core/ASSERT.h"
#include "core/strutil.h"
#include <gsl/g... | 24.909091 | 80 | 0.583029 | jonathanhaigh |
b23b628e1df47ade956d3cc5040767d578632d33 | 3,224 | cpp | C++ | deploy/files/GLRawFile.cpp | cginternals/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 48 | 2015-07-30T11:20:49.000Z | 2022-01-10T20:07:51.000Z | deploy/files/GLRawFile.cpp | hpicgs/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 3 | 2015-08-08T08:51:36.000Z | 2017-01-17T17:26:54.000Z | deploy/files/GLRawFile.cpp | cginternals/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 9 | 2015-07-06T15:51:22.000Z | 2019-04-24T06:23:12.000Z |
#include <algorithm>
#include <fstream>
#include <sstream>
#include <iostream>
#include <stdio.h>
#include "GLRawFile.h"
namespace
{
template<typename T>
T read(std::ifstream & stream)
{
T value;
stream.read(reinterpret_cast<char*>(&value), sizeof(value));
return value;
}
std::string readString(std::if... | 17.812155 | 76 | 0.608561 | cginternals |
b24237e6a5327a4fed3953296ff34ae049a831e0 | 5,773 | cpp | C++ | CPPRestUtilsSample_/src/impl/HTTPHandler.cpp | hallower/tizencpputilsample | 8b1c43b976c9dce6a02ff7681abae848c07a1af0 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | CPPRestUtilsSample_/src/impl/HTTPHandler.cpp | hallower/tizencpputilsample | 8b1c43b976c9dce6a02ff7681abae848c07a1af0 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | CPPRestUtilsSample_/src/impl/HTTPHandler.cpp | hallower/tizencpputilsample | 8b1c43b976c9dce6a02ff7681abae848c07a1af0 | [
"CC-BY-3.0",
"MIT"
] | null | null | null | #include <ctype.h>
#include "HTTPHandler.h"
#include <stdlib.h>
namespace csk
{
struct WriteBuffer {
char *memory;
size_t size;
WriteBuffer()
:memory(NULL),
size(0)
{
}
~WriteBuffer()
{
if(NULL != memory)
{
free(memory);
memory = NULL;
}
size = 0;
}
};
static size_t
write_event_cb(void *c... | 20.327465 | 89 | 0.670882 | hallower |
b243629a6d93d947d597d8f4016884ec6a631b1e | 3,964 | cc | C++ | slib_graphics/source/opengl/gl_stock_shaders.cc | KarlJansson/ecs_game_engine | c76b7379d8ff913cd7773d0a9f55535996abdf35 | [
"MIT"
] | 1 | 2018-05-18T10:42:35.000Z | 2018-05-18T10:42:35.000Z | slib_graphics/source/opengl/gl_stock_shaders.cc | KarlJansson/ecs_game_engine | c76b7379d8ff913cd7773d0a9f55535996abdf35 | [
"MIT"
] | null | null | null | slib_graphics/source/opengl/gl_stock_shaders.cc | KarlJansson/ecs_game_engine | c76b7379d8ff913cd7773d0a9f55535996abdf35 | [
"MIT"
] | null | null | null | #include "gl_stock_shaders.h"
#include "material_system.h"
#include "renderer.h"
namespace lib_graphics {
GlStockShaders::GlStockShaders() = default;
void GlStockShaders::ForwardShaders() {
shader_source_[MaterialSystem::kText] = {
cu::ReadFile("./content/shaders/opengl/text_vs.glsl"),
cu::ReadFile("./c... | 38.862745 | 80 | 0.698789 | KarlJansson |
b245f9cfe81be789d1ba07c0313f9199016e4f5f | 118 | cpp | C++ | Collector.cpp | gaobowen/websocket | feca320de23630787d38e404a7931f8c88ebdee3 | [
"MIT"
] | 1 | 2021-12-15T03:10:55.000Z | 2021-12-15T03:10:55.000Z | Collector.cpp | gaobowen/websocket | feca320de23630787d38e404a7931f8c88ebdee3 | [
"MIT"
] | null | null | null | Collector.cpp | gaobowen/websocket | feca320de23630787d38e404a7931f8c88ebdee3 | [
"MIT"
] | null | null | null | #include "Collector.h"
namespace GWS {
tbb::concurrent_hash_map<void*, std::shared_ptr<SockHandle>> collector;
}
| 19.666667 | 75 | 0.737288 | gaobowen |
b2492ed2a07c85c6c3d0c764c9ed332256890e51 | 2,810 | cxx | C++ | matrix/bin/cpi/3dc/spelldialog.cxx | D5n9sMatrix/able | 5f135e7f6f0ba7432df6d8a756613161c7f628e2 | [
"MIT"
] | 1 | 2022-02-20T04:39:10.000Z | 2022-02-20T04:39:10.000Z | matrix/bin/cpi/3dc/spelldialog.cxx | D5n9sMatrix/able | 5f135e7f6f0ba7432df6d8a756613161c7f628e2 | [
"MIT"
] | null | null | null | matrix/bin/cpi/3dc/spelldialog.cxx | D5n9sMatrix/able | 5f135e7f6f0ba7432df6d8a756613161c7f628e2 | [
"MIT"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... | 33.855422 | 79 | 0.7121 | D5n9sMatrix |
b2502d3bfee9c3f5f2728529eeaeb179ab5a694e | 1,034 | cpp | C++ | example/map_like/map_like.cpp | cmachaca/struct_mapping | 12e37346afa3cefe880f9efd0dd1475a67ad67f8 | [
"MIT"
] | 57 | 2020-06-12T23:32:57.000Z | 2022-03-19T03:19:07.000Z | example/map_like/map_like.cpp | cmachaca/struct_mapping | 12e37346afa3cefe880f9efd0dd1475a67ad67f8 | [
"MIT"
] | 10 | 2020-07-24T18:06:56.000Z | 2022-03-31T14:36:06.000Z | example/map_like/map_like.cpp | cmachaca/struct_mapping | 12e37346afa3cefe880f9efd0dd1475a67ad67f8 | [
"MIT"
] | 13 | 2020-07-15T16:24:19.000Z | 2022-02-16T08:11:56.000Z | #include "struct_mapping/struct_mapping.h"
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <unordered_map>
struct Library
{
std::unordered_map<
std::string,
std::multimap<std::string, int>> counters;
std::multimap<
std::string,
std::unordered_multimap<std::string, std::stri... | 16.412698 | 66 | 0.601547 | cmachaca |
b25133329365c9e9946157e7f23fbc2a84df7349 | 3,629 | cc | C++ | src/math/matrix_factories_test.cc | paulmiller/glFun | 39df2c7f92b41c09d618b81e2016f1c530fb2108 | [
"Unlicense"
] | null | null | null | src/math/matrix_factories_test.cc | paulmiller/glFun | 39df2c7f92b41c09d618b81e2016f1c530fb2108 | [
"Unlicense"
] | null | null | null | src/math/matrix_factories_test.cc | paulmiller/glFun | 39df2c7f92b41c09d618b81e2016f1c530fb2108 | [
"Unlicense"
] | null | null | null | #include "matrix_factories.h"
#include "approx_object.h"
#include "util.h"
#include "vector.h"
#include "catch.h"
TEST_CASE("MatrixFromColumnVectors") {
auto actual3x3 = MatrixFromColumnVectors(
Vector3<int>{1, 2, 3},
Vector3<int>{4, 5, 6},
Vector3<int>{7, 8, 9}
);
Matrix<int,3,3> expected3x3 {{
... | 26.107914 | 62 | 0.583356 | paulmiller |
b2553caa35bf93ca5781e8132129cff112945ccf | 337,602 | cpp | C++ | com/netfx/src/clr/jit/ia64/importer.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/jit/ia64/importer.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/jit/ia64/importer.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... | 33.482297 | 129 | 0.50258 | npocmaka |
b25a925e70140cce8841399d9e0f65f8f7cd0b5d | 1,586 | cxx | C++ | dependencies/graph-1.6/src/andres/graph/python/graph.cxx | ilastik/nature_methods_multicut_pipeline | 1dc596505ab8c995b50561eeb969c59673b7dcab | [
"BSD-3-Clause"
] | 14 | 2017-02-07T12:41:06.000Z | 2022-01-19T02:52:32.000Z | dependencies/graph-1.6/src/andres/graph/python/graph.cxx | ilastik/nature_methods_multicut_pipeline | 1dc596505ab8c995b50561eeb969c59673b7dcab | [
"BSD-3-Clause"
] | 5 | 2017-02-07T01:51:34.000Z | 2021-03-31T15:00:33.000Z | dependencies/graph-1.6/src/andres/graph/python/graph.cxx | ilastik/nature_methods_multicut_pipeline | 1dc596505ab8c995b50561eeb969c59673b7dcab | [
"BSD-3-Clause"
] | 3 | 2017-11-16T04:04:55.000Z | 2018-05-11T11:33:51.000Z | // this must define the same symbol as the main module file (numpy requirement)
#define PY_ARRAY_UNIQUE_SYMBOL andres_graph_PyArray_API
#define NO_IMPORT_ARRAY
#include <Python.h>
#include <boost/python.hpp>
#include <vigra/numpy_array.hxx>
#include <vigra/numpy_array_converters.hxx>
#include <vigra/multi_array.hxx>
... | 33.041667 | 105 | 0.69546 | ilastik |
b25b2cb5b455e7f233f6b8709f6594d6e122506d | 8,437 | cpp | C++ | src/TriplePropertyMapWidget.cpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/TriplePropertyMapWidget.cpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/TriplePropertyMapWidget.cpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | #include "TriplePropertyMapWidget.hpp"
#include "../ui/ui_triplepropertymap.h"
#include "CustomDataRoles.hpp"
namespace sempr { namespace gui {
TriplePropertyMapWidget::TriplePropertyMapWidget(QWidget* parent)
: SingleComponentWidget(parent), form_(new Ui::TriplePropertyMapWidget)
{
form_->setupUi(this);
... | 33.216535 | 103 | 0.573308 | sempr-tk |
b25be4b1aeb53b2f71e850cd9c3516a80ca9b920 | 282 | cpp | C++ | src/core/utils/options.cpp | chaiyujin/snow-ray | 898741b0c982909426c29b86702de28798d7262a | [
"MIT"
] | null | null | null | src/core/utils/options.cpp | chaiyujin/snow-ray | 898741b0c982909426c29b86702de28798d7262a | [
"MIT"
] | null | null | null | src/core/utils/options.cpp | chaiyujin/snow-ray | 898741b0c982909426c29b86702de28798d7262a | [
"MIT"
] | null | null | null | #include "options.h"
namespace snowrt {
namespace options {
#ifdef USING_DOUBLE_PRECISION
Float MinShadowBias = 1e-10;
Float MaxShadowBias = 1e-3;
Float ScaleShadowBias = 1e-8;
#else
Float MinShadowBias = 1e-8;
Float MaxShadowBias = 1e-1;
Float ScaleShadowBias = 1e-6;
#endif
}
} | 16.588235 | 29 | 0.755319 | chaiyujin |
b25c83d4e70ecf2c5da0f4a466ed6abbaf8e436d | 898 | hpp | C++ | 3DRadSpace/3DRadSpaceDll/ResourceCreationException.hpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 9 | 2017-01-10T11:47:06.000Z | 2021-11-27T14:32:55.000Z | 3DRadSpace/3DRadSpaceDll/ResourceCreationException.hpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | null | null | null | 3DRadSpace/3DRadSpaceDll/ResourceCreationException.hpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 6 | 2017-07-08T23:03:43.000Z | 2022-03-08T07:47:13.000Z | #pragma once
#include "Globals.hpp"
#pragma warning(push)
#pragma warning(disable: 4275)
#pragma warning(disable: 4251)
namespace Engine3DRadSpace
{
/// <summary>
/// Represents a detailed exception thrown when resource creation and allocations fail. An alternative to std::bad_alloc.
/// </summary>
class DLLEXPOR... | 28.0625 | 122 | 0.716036 | NicusorN5 |
b25d46192a146bc21b880dcc5e3c194b152b98da | 2,338 | cc | C++ | snapgear_linux/user/microwin/src/rtems/mw_uid_test.cc | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/user/microwin/src/rtems/mw_uid_test.cc | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/user/microwin/src/rtems/mw_uid_test.cc | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | 3 | 2016-06-13T13:20:56.000Z | 2019-12-05T02:31:23.000Z | /*
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <rtems/mw_uid.h>
#include <rtems/kd.h>
static const char *Q_NAME = "MWQ";
#define Q_MAX_MSGS 128
/*
* "Select() routine called by the MicroWindows framework to receive events
* f... | 22.921569 | 81 | 0.609923 | impedimentToProgress |
b25d9dc344486713803f810de18f90925ad13aa4 | 1,223 | cpp | C++ | LicenseManagerAuthenticator/Authenticator.cpp | johanlantz/headsetpresenter | 39c5e9740f58d66947e689670500fd0e8b7562c3 | [
"MIT"
] | 1 | 2022-02-24T06:04:03.000Z | 2022-02-24T06:04:03.000Z | LicenseManagerAuthenticator/Authenticator.cpp | johanlantz/headsetpresenter | 39c5e9740f58d66947e689670500fd0e8b7562c3 | [
"MIT"
] | null | null | null | LicenseManagerAuthenticator/Authenticator.cpp | johanlantz/headsetpresenter | 39c5e9740f58d66947e689670500fd0e8b7562c3 | [
"MIT"
] | null | null | null | #include ".\authenticator.h"
#include "time.h"
Authenticator::Authenticator(ILicenseHandler* imyLicenseHandler)
{
myLicenseHandler = imyLicenseHandler;
myLicenseHandler->Activate(150); //licman must be activated with a secret key
CK=13291;
AuthenticateComponent();
}
Authenticator::~Authenticator(void)... | 31.358974 | 197 | 0.743254 | johanlantz |
b25eefb363c1e45ce16162a22aed99766ea686b9 | 18,314 | cpp | C++ | mediapipe/Osc/UdpSocket.cpp | tommymitch/mediapipe2osc | 8cf5d2c0d84bc4faddeff63f907f4085825ea14d | [
"Apache-2.0"
] | 6 | 2021-06-29T18:22:48.000Z | 2022-02-09T14:25:22.000Z | mediapipe/Osc/UdpSocket.cpp | tommymitch/mediapipe2osc | 8cf5d2c0d84bc4faddeff63f907f4085825ea14d | [
"Apache-2.0"
] | null | null | null | mediapipe/Osc/UdpSocket.cpp | tommymitch/mediapipe2osc | 8cf5d2c0d84bc4faddeff63f907f4085825ea14d | [
"Apache-2.0"
] | 1 | 2021-12-29T17:15:36.000Z | 2021-12-29T17:15:36.000Z | //
// UdpSocket.cpp
// OscppTest
//
// Created by Tom Mitchell on 16/04/2021.
// Copyright © 2021 Tom Mitchell. All rights reserved.
//
#include "UdpSocket.h"
#include <atomic>
//Apple
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <poll.h>... | 30.83165 | 123 | 0.535656 | tommymitch |
b25ff5cd74f5ee15d3cb90431682eaf5b1863d50 | 2,106 | cpp | C++ | dialogeditpatient.cpp | kushagra10025/Hospital-Registration-Portal | a68cfcba95ddaecac2f1d959cc0c82df0415fc9d | [
"Apache-2.0"
] | null | null | null | dialogeditpatient.cpp | kushagra10025/Hospital-Registration-Portal | a68cfcba95ddaecac2f1d959cc0c82df0415fc9d | [
"Apache-2.0"
] | null | null | null | dialogeditpatient.cpp | kushagra10025/Hospital-Registration-Portal | a68cfcba95ddaecac2f1d959cc0c82df0415fc9d | [
"Apache-2.0"
] | null | null | null | #include "dialogeditpatient.h"
#include "ui_dialogeditpatient.h"
DialogEditPatient::DialogEditPatient(QSqlRecord *rowEdit, QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogEditPatient)
{
ui->setupUi(this);
rowToEdit = rowEdit;
ui->txt_fullname->setText(rowToEdit->value("p_fullname").toString... | 29.661972 | 166 | 0.644349 | kushagra10025 |
b260658d6fd8cecd25042f15bb30f63917bcd7f6 | 5,024 | cpp | C++ | DynacoeSrc/srcs/Dynacoe/Component.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | 1 | 2015-11-06T18:10:11.000Z | 2015-11-06T18:10:11.000Z | DynacoeSrc/srcs/Dynacoe/Component.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | 8 | 2018-01-25T03:54:32.000Z | 2018-09-17T01:55:35.000Z | DynacoeSrc/srcs/Dynacoe/Component.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu)
All rights reserved.
This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
Dynacoe was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | 27.453552 | 144 | 0.651274 | jcorks |
b260fa95c35385b9ce7c59135a7dfee0f719a385 | 1,598 | cpp | C++ | Lab1/lab1.cpp | toniminh161200/Computational-Mathematics | f7e1a7475d001fb654e14ea23393fe8838fcfb40 | [
"MIT"
] | null | null | null | Lab1/lab1.cpp | toniminh161200/Computational-Mathematics | f7e1a7475d001fb654e14ea23393fe8838fcfb40 | [
"MIT"
] | null | null | null | Lab1/lab1.cpp | toniminh161200/Computational-Mathematics | f7e1a7475d001fb654e14ea23393fe8838fcfb40 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
double rel_error_x, rel_error_y, abs_er_x = 0.5, abs_er_y = 0.1, x = 9, y = 7.5;
cout << "x = " << x << " y = " << y<<"\n";
rel_error_x = abs_er_x / x;
rel_error_y = abs_er_y / y;
cout << "x absError = " << abs_er_x << "\n";
cout << "y absErr... | 38.97561 | 87 | 0.426158 | toniminh161200 |
b2682343bb267a9ded8bb4bd1d28561a0e3ec0bd | 2,259 | cpp | C++ | src/engine/object/pointgizmo.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/engine/object/pointgizmo.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/engine/object/pointgizmo.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file pointgizmo.cpp
* @brief
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2005-04-15
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/engine/precompiled.h"
#include "o3d/engine/object/pointgizmo.h"
#include "o3d/engine/sce... | 31.375 | 122 | 0.486056 | dream-overflow |
05cf3c9c0d2885d9c9368a294176c849978389a9 | 967 | cpp | C++ | mainwindow.cpp | SammyEnigma/Qt-Timeline-Widget | 6514ead2a3876f0954634dfe25a70c87e729362b | [
"Apache-2.0"
] | 15 | 2021-01-28T10:26:22.000Z | 2022-03-07T12:47:11.000Z | mainwindow.cpp | SammyEnigma/Qt-Timeline-Widget | 6514ead2a3876f0954634dfe25a70c87e729362b | [
"Apache-2.0"
] | null | null | null | mainwindow.cpp | SammyEnigma/Qt-Timeline-Widget | 6514ead2a3876f0954634dfe25a70c87e729362b | [
"Apache-2.0"
] | 9 | 2021-01-28T10:26:26.000Z | 2022-01-15T13:32:19.000Z | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
srand(time(0));
(new TimelineUndoStack(ui->widget));
ui->widget_2->setTimeline(ui->widget);
QString content = FileUtil::readTextFi... | 22.488372 | 73 | 0.584281 | SammyEnigma |
05d8a24f59985ab7c432938c4b954e98ae5ebfef | 265 | hpp | C++ | include/tolua/LuaMath.hpp | cgyurgyik/tnt | 8ea24c1a9d2863b8b91775e5aba370584896fd9c | [
"MIT"
] | null | null | null | include/tolua/LuaMath.hpp | cgyurgyik/tnt | 8ea24c1a9d2863b8b91775e5aba370584896fd9c | [
"MIT"
] | null | null | null | include/tolua/LuaMath.hpp | cgyurgyik/tnt | 8ea24c1a9d2863b8b91775e5aba370584896fd9c | [
"MIT"
] | null | null | null | #ifndef TNT_EXPORT_MATH_TO_LUA_HPP
#define TNT_EXPORT_MATH_TO_LUA_HPP
#include <sol/forward.hpp>
namespace tnt::lua
{
void loadVector(sol::state_view lua_);
void loadRect(sol::state_view lua_);
} // namespace tnt::lua
#endif //!TNT_EXPORT_MATH_TO_LUA_HPP | 22.083333 | 42 | 0.773585 | cgyurgyik |
05da44eb00c616096d607a554d6a1bc8f9c75118 | 7,283 | cpp | C++ | src/libstringintern/string_page.cpp | RipcordSoftware/libstringintern | 565ec0ca40f40fbe63fbeb2a9ed9ea03038218a0 | [
"MIT"
] | 13 | 2017-05-31T05:32:49.000Z | 2021-12-07T19:05:47.000Z | src/libstringintern/string_page.cpp | RipcordSoftware/libstringintern | 565ec0ca40f40fbe63fbeb2a9ed9ea03038218a0 | [
"MIT"
] | 11 | 2016-05-30T16:48:28.000Z | 2017-08-25T21:04:13.000Z | src/libstringintern/string_page.cpp | RipcordSoftware/libstringintern | 565ec0ca40f40fbe63fbeb2a9ed9ea03038218a0 | [
"MIT"
] | 2 | 2021-07-27T08:45:11.000Z | 2021-12-07T19:09:54.000Z | /**
* The MIT License (MIT)
*
* Copyright (c) 2016 Ripcord Software Ltd
*
* 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
... | 35.354369 | 179 | 0.630921 | RipcordSoftware |
05dd4f136b6f2a03a064d9f4807ddd1e0a30c738 | 1,154 | hpp | C++ | sprout/functional/hash/hash_fwd.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/functional/hash/hash_fwd.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/functional/hash/hash_fwd.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
#define SPROUT_FUNCTIONAL_HASH_HASH_FWD_HPP
#include <cstddef>
#include <sprout/config.hpp>
namespace sprout {
//
// hash
//
template<typename T>
struct hash;
//
// to_hash
//
template<typename T>
SPROUT_CONSTEXPR std::size_t to_hash(T const& v);... | 24.041667 | 91 | 0.725303 | osyo-manga |
05e0ea795856e3acaa445c1fae7a13eca102cdc0 | 696 | cpp | C++ | NikolaevaElya/6sem/BTree/BubbleSort.cpp | soomrack/MR2020 | 2de7289665dcdac4a436eb512f283780aa78cb76 | [
"MIT"
] | 4 | 2020-09-22T12:04:07.000Z | 2020-10-03T22:28:00.000Z | NikolaevaElya/6sem/BTree/BubbleSort.cpp | soomrack/MR2020 | 2de7289665dcdac4a436eb512f283780aa78cb76 | [
"MIT"
] | null | null | null | NikolaevaElya/6sem/BTree/BubbleSort.cpp | soomrack/MR2020 | 2de7289665dcdac4a436eb512f283780aa78cb76 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int swap(int *first, int *second){
int temp = *first;
*first = *second;
*second = temp;
return 0;
}
int bubbleSort(int arr[], int size) {
for(int step = 0; step < size; step++) {
for (int i = 0; i < size - 1; i++) {
if(arr... | 18.315789 | 45 | 0.436782 | soomrack |
05e40718ecd5a940d241abb98072c4db399a5ed4 | 778 | cpp | C++ | Algorithms and Data Structures/Homework 2/testWindGauge.cpp | Tewodros00/CS-Jacobs | 5876decf6aa6f612dc5569e50e6e5a9eb768d78b | [
"MIT"
] | 4 | 2021-04-09T08:14:58.000Z | 2021-05-17T10:42:11.000Z | Algorithms and Data Structures/Homework 2/testWindGauge.cpp | Tewodros00/Jacobs-Coursework | 5876decf6aa6f612dc5569e50e6e5a9eb768d78b | [
"MIT"
] | null | null | null | Algorithms and Data Structures/Homework 2/testWindGauge.cpp | Tewodros00/Jacobs-Coursework | 5876decf6aa6f612dc5569e50e6e5a9eb768d78b | [
"MIT"
] | null | null | null | /*
CH-231-A
hw2_p3.cpp
Tewodros Adane
tadane@jacobs-university.de
*/
#include <iostream>
#include "WindGauge.h"
int main(void) {
WindGauge windGauge;
windGauge.currentWindSpeed(15);
windGauge.currentWindSpeed(16);
windGauge.currentWindSpeed(12);
windGauge.currentWindSpeed(15);
windGauge.curre... | 21.611111 | 35 | 0.717224 | Tewodros00 |
05e51795b349d23ef30eae139746d238c0c7e323 | 1,859 | cpp | C++ | wordsearchpuzzle/RandomLocator.cpp | lmous/WoSeCon | 3c862798c8813424ee0e5fbb44b0c57d43d166f9 | [
"MIT"
] | null | null | null | wordsearchpuzzle/RandomLocator.cpp | lmous/WoSeCon | 3c862798c8813424ee0e5fbb44b0c57d43d166f9 | [
"MIT"
] | null | null | null | wordsearchpuzzle/RandomLocator.cpp | lmous/WoSeCon | 3c862798c8813424ee0e5fbb44b0c57d43d166f9 | [
"MIT"
] | null | null | null | /*
* File: RandomLocator.cpp
* Author: Lefteris Moussiades <lmous@teiemt.gr>
*
* Created on January 18, 2020, 10:15 AM
*/
#include "RandomLocator.h"
#include "DirectedLocation.h"
#include "Settings.h"
#include <iostream>
#include <algorithm>
using namespace std;
RandomLocator::RandomLocator() {
for (i... | 25.465753 | 140 | 0.638515 | lmous |
05e764162bf86245a75b20fc4942bebbd1f15b2d | 22,353 | cpp | C++ | Samples/Live/SimpleCrossGenMPSD/SimpleCrossGenMPSD/SimpleCrossGenMPSD.cpp | acidburn0zzz/Xbox-GDK-Samples | 0a998ca467f923aa04bd124a5e5ca40fe16c386c | [
"MIT"
] | 1 | 2021-12-30T09:49:18.000Z | 2021-12-30T09:49:18.000Z | Samples/Live/SimpleCrossGenMPSD/SimpleCrossGenMPSD/SimpleCrossGenMPSD.cpp | acidburn0zzz/Xbox-GDK-Samples | 0a998ca467f923aa04bd124a5e5ca40fe16c386c | [
"MIT"
] | null | null | null | Samples/Live/SimpleCrossGenMPSD/SimpleCrossGenMPSD/SimpleCrossGenMPSD.cpp | acidburn0zzz/Xbox-GDK-Samples | 0a998ca467f923aa04bd124a5e5ca40fe16c386c | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------
// SimpleCrossGenMPSD.cpp
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include ... | 28.475159 | 116 | 0.640406 | acidburn0zzz |
05ee5baff090193d40457f3b0c6e68113fa56a81 | 3,056 | cpp | C++ | samples/cps3_test/src/main.cpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | 1 | 2015-09-22T10:32:36.000Z | 2015-09-22T10:32:36.000Z | samples/cps3_test/src/main.cpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | null | null | null | samples/cps3_test/src/main.cpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | null | null | null | #include "cps/CPS_API.hpp"
#include "TestSuite.hpp"
#include "Utils.hpp"
#include <boost/program_options.hpp>
#include <iostream>
#include <cstdlib>
#include <memory>
#include <vector>
int main(int argc, char* argv[])
{
int result = EXIT_FAILURE;
try
{
namespace po = boost::program_options;
po::option... | 28.296296 | 95 | 0.595223 | clusterpoint |
05f2c5582d1dd4cd06d7339dfb96706035fe4b0e | 3,659 | cpp | C++ | src/chip/alu/alu.cpp | txf0990/LogicSimulator | 9e384b9859ab01b8b0634a75d6698dab2f75d8be | [
"MIT"
] | null | null | null | src/chip/alu/alu.cpp | txf0990/LogicSimulator | 9e384b9859ab01b8b0634a75d6698dab2f75d8be | [
"MIT"
] | null | null | null | src/chip/alu/alu.cpp | txf0990/LogicSimulator | 9e384b9859ab01b8b0634a75d6698dab2f75d8be | [
"MIT"
] | null | null | null | #include "chip/alu/alu.h"
#include "chip/adder.h"
#include "chip/left_shifter.h"
#include "chip/logic_cal.h"
#include "chip/mux.h"
#include "pin_board/pin_board.h"
#include "chip/right_shifter.h"
#include <cassert>
#include <iostream>
namespace chip {
using pin_board::PinBoard;
using pin_board::PinIndex;
using std... | 30.491667 | 96 | 0.708937 | txf0990 |
05f43662cc5750bd3fd8996db95c38744d680d2d | 205 | cpp | C++ | Problem Solving with C++/Source Code/Chapter02/02-11.cpp | MorganBergen/Learning-CPP | a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b | [
"Unlicense"
] | null | null | null | Problem Solving with C++/Source Code/Chapter02/02-11.cpp | MorganBergen/Learning-CPP | a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b | [
"Unlicense"
] | null | null | null | Problem Solving with C++/Source Code/Chapter02/02-11.cpp | MorganBergen/Learning-CPP | a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b | [
"Unlicense"
] | null | null | null | //DISPLAY 2.11 Compound Statements Used with if-else
if (my_score > your_score)
{
cout << "I win!\n";
wager = wager + 100;
}
else
{
cout << "I wish these were golf scores.\n";
wager = 0;
}
| 17.083333 | 52 | 0.6 | MorganBergen |
05f8cb1cb7637eee31065caa794be2a964d71ced | 2,062 | hpp | C++ | src/dray/data_model/device_field.hpp | LLNL/devil_ray | 6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 14 | 2019-12-17T17:40:32.000Z | 2021-12-13T20:32:32.000Z | src/dray/data_model/device_field.hpp | LLNL/devil_ray | 6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 72 | 2019-12-21T16:55:38.000Z | 2022-03-22T20:40:13.000Z | src/dray/data_model/device_field.hpp | LLNL/devil_ray | 6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 3 | 2020-02-21T18:06:57.000Z | 2021-12-03T18:39:48.000Z | // Copyright 2019 Lawrence Livermore National Security, LLC and other
// Devil Ray Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#ifndef DRAY_DEVICE_FIELD_HPP
#define DRAY_DEVICE_FIELD_HPP
#include <dray/data_model/element.hpp>
#include <dray/data_model/grid_f... | 29.042254 | 101 | 0.736178 | LLNL |
05fdbd0cb45a0f406230dc9f089e94e453a94ba6 | 27,028 | hxx | C++ | main/svl/inc/svl/zformat.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svl/inc/svl/zformat.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svl/inc/svl/zformat.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 44.453947 | 119 | 0.638708 | Grosskopf |
05fe637957b51e85a5e8921486dab2036fe8d65c | 276 | hpp | C++ | include/HashSearcher.hpp | Lasar1k/LAB_07_multi | 733740aa679a8a3e626b348bbb734daa567daf57 | [
"MIT"
] | null | null | null | include/HashSearcher.hpp | Lasar1k/LAB_07_multi | 733740aa679a8a3e626b348bbb734daa567daf57 | [
"MIT"
] | null | null | null | include/HashSearcher.hpp | Lasar1k/LAB_07_multi | 733740aa679a8a3e626b348bbb734daa567daf57 | [
"MIT"
] | null | null | null | // Copyright 2021 Lasar1k <alf.ivan2002@gmail.com>
#ifndef INCLUDE_HASHSEARCHER_HPP_
#define INCLUDE_HASHSEARCHER_HPP_
#include <picosha2.h>
#include <boost/log/trivial.hpp>
class HashSearcher {
public:
static void SearchHash();
};
#endif // INCLUDE_HASHSEARCHER_HPP_
| 18.4 | 50 | 0.778986 | Lasar1k |