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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ceeb473dc546c400b5feb251ced2cb73385ea080 | 204 | cpp | C++ | pass/fplan/node_hier_floorp.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | 1 | 2021-01-07T00:15:00.000Z | 2021-01-07T00:15:00.000Z | pass/fplan/node_hier_floorp.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | null | null | null | pass/fplan/node_hier_floorp.cpp | arikyueh/livehd | cbbf13e77359cf135638b3710fd3ea4a6c895b68 | [
"BSD-3-Clause"
] | null | null | null | #include "node_hier_floorp.hpp"
void Node_hier_floorp::load_lg(LGraph* root, const std::string_view lgdb_path) {
(void)root;
(void)lgdb_path;
// TODO: write this when traversal bug gets fixed
} | 22.666667 | 80 | 0.735294 | arikyueh |
ceed52ce099afee8d10b4b2c9724e5c947a4df3c | 908 | hpp | C++ | particle_filter/include/ParticleFit.hpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | null | null | null | particle_filter/include/ParticleFit.hpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | 1 | 2020-11-05T13:21:52.000Z | 2020-11-05T13:21:52.000Z | particle_filter/include/ParticleFit.hpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | 1 | 2020-06-18T17:52:06.000Z | 2020-06-18T17:52:06.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2020 Eleftherios Avramidis <ea461@cam.ac.uk>
// Research Computing Services, University of Cambridge, UK
//
// Distributed under The MIT License (MIT)
// See accompanying file LICENSE
//-------------------------------------... | 37.833333 | 102 | 0.568282 | giordano |
ceed6901167cddb411afdd89cf976b86ff996329 | 4,019 | cpp | C++ | third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/presentation/PresentationRequest.h"
#include "bindings/core/v8/V8BindingForTesting.h"
#include "core/dom/ExceptionCode.h"
#include "pla... | 36.87156 | 80 | 0.736004 | google-ar |
ceee55d92cbb828f4f7ffcb10c7b3cd8427ee1ec | 437,222 | cpp | C++ | Project1/leetcode.cpp | guannan-he/cppLearning | 8fe3ff661afe1c814dbf44fc1ebfd9998f51eac6 | [
"WTFPL"
] | null | null | null | Project1/leetcode.cpp | guannan-he/cppLearning | 8fe3ff661afe1c814dbf44fc1ebfd9998f51eac6 | [
"WTFPL"
] | null | null | null | Project1/leetcode.cpp | guannan-he/cppLearning | 8fe3ff661afe1c814dbf44fc1ebfd9998f51eac6 | [
"WTFPL"
] | null | null | null | #define NULL 0
#include <string>
#include <vector>
#include <queue>
#include <unordered_set>
#include <unordered_map>
#include <map>
#include <math.h>
#include <stack>
#include <list>
#include <iostream>
#include <set>
#include <numeric>
#include <algorithm>
#include <sstream>
using namespace std;
//链表
#if 0
//Defini... | 23.31975 | 211 | 0.542102 | guannan-he |
cef04f47ed17f90ebcaec4dd5ae62088af2a00f7 | 1,652 | hpp | C++ | src/core/xt/xt/backend/alsa/Private.hpp | sjoerdvankreel/xt-audio | 960d6ed595c872c01af5c321b38b88a6ea07680a | [
"MIT"
] | 49 | 2017-04-01T00:41:14.000Z | 2022-03-23T09:03:28.000Z | src/core/xt/xt/backend/alsa/Private.hpp | sjoerdvankreel/xt-audio | 960d6ed595c872c01af5c321b38b88a6ea07680a | [
"MIT"
] | 18 | 2017-04-29T22:46:35.000Z | 2022-02-26T18:33:47.000Z | src/core/xt/xt/backend/alsa/Private.hpp | sjoerdvankreel/xt-audio | 960d6ed595c872c01af5c321b38b88a6ea07680a | [
"MIT"
] | 14 | 2017-05-01T12:33:20.000Z | 2021-10-01T07:16:26.000Z | #ifndef XT_BACKEND_ALSA_PRIVATE_HPP
#define XT_BACKEND_ALSA_PRIVATE_HPP
#if XT_ENABLE_ALSA
#include <alsa/asoundlib.h>
#include <string>
#define XT_VERIFY_ALSA(c) \
do { int e = (c); if(e < 0) \
return XT_TRACE(#c), e; } while(0)
enum XtAlsaType
{
InputRw,
InputMMap,
OutputRw,
OutputM... | 25.415385 | 111 | 0.736077 | sjoerdvankreel |
cef18d88d9a05e1ef22bea0e111a1e943f848f2f | 100 | cpp | C++ | src/main/cpp/main.cpp | tideworks/spartan-launcher | f1976d7646ec6c3aa62b76d6cd46524f13a9d3cd | [
"Apache-2.0"
] | 18 | 2018-06-01T17:22:25.000Z | 2021-01-22T12:56:52.000Z | src/main/cpp/main.cpp | tideworks/spartan-launcher | f1976d7646ec6c3aa62b76d6cd46524f13a9d3cd | [
"Apache-2.0"
] | null | null | null | src/main/cpp/main.cpp | tideworks/spartan-launcher | f1976d7646ec6c3aa62b76d6cd46524f13a9d3cd | [
"Apache-2.0"
] | null | null | null | #include "so-export.h"
int main(int argc, char **argv) {
return one_time_init_main(argc, argv);
} | 20 | 40 | 0.7 | tideworks |
cef67be72fa3ceccb42d3c937a91de6e9aec4f2b | 1,698 | cpp | C++ | src/Dungeon/Dungeon.cpp | zachtepper/project-awful | 59e2e9261100a2b4449022725435d21b17c6f5b4 | [
"MIT"
] | null | null | null | src/Dungeon/Dungeon.cpp | zachtepper/project-awful | 59e2e9261100a2b4449022725435d21b17c6f5b4 | [
"MIT"
] | null | null | null | src/Dungeon/Dungeon.cpp | zachtepper/project-awful | 59e2e9261100a2b4449022725435d21b17c6f5b4 | [
"MIT"
] | null | null | null | #include "Dungeon.hpp"
// Room
Dungeon::Room::Room(int id, int top, int left, int width, int height)
{
this->id = id;
this->top = top;
this->left = left;
this->width = width;
this->height = height;
this->parent = NULL;
this->leftChild = NULL;
this->rightChild = NULL;
this->dungeon ... | 21.493671 | 116 | 0.583628 | zachtepper |
cefb123c4b37af7f91a83b009cd7460a81809a0a | 3,886 | cxx | C++ | cxx/src/simple_server/src/main.cxx | MoysheBenRabi/setp | 7619f0bae457e14e2fb41e58bfe517019628c5de | [
"Apache-2.0"
] | 1 | 2021-07-13T12:22:22.000Z | 2021-07-13T12:22:22.000Z | cxx/src/simple_server/src/main.cxx | MoysheBenRabi/setp | 7619f0bae457e14e2fb41e58bfe517019628c5de | [
"Apache-2.0"
] | 1 | 2021-01-04T21:53:56.000Z | 2021-01-04T21:59:36.000Z | cxx/src/simple_server/src/main.cxx | MoysheBenRabi/setp | 7619f0bae457e14e2fb41e58bfe517019628c5de | [
"Apache-2.0"
] | 1 | 2021-09-19T16:18:54.000Z | 2021-09-19T16:18:54.000Z | /* Copyright (c) 2009-2010 Tyrell Corporation & Moyshe Ben Rabi.
The contents of this file are subject to the Mozilla Public License
Version 1.1 (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.mozilla.org/MPL/
Software... | 29.664122 | 80 | 0.687082 | MoysheBenRabi |
cefd3d0c435444051e3a9fb124dedee33ac2f932 | 2,389 | cpp | C++ | assignment07/assignment7-1.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | assignment07/assignment7-1.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | assignment07/assignment7-1.cpp | qpakzk/SSU-CSE-Problem-Solving | 44cc6b913d86008c2f23536ed0c395115b6ccef6 | [
"MIT"
] | null | null | null | /*
* Problem Solving Assignment7-1 : DSLR
* https://www.acmicpc.net/problem/9019
*/
#include <cstdio>
#include <cstring>
#include <queue>
#include <stack>
#define MAXLEN 10000
using namespace std;
int before[MAXLEN];
bool visited[MAXLEN];
char op[MAXLEN];
int D(int n) {
n *= 2;
n %= 10000;
return n;
... | 18.51938 | 44 | 0.370029 | qpakzk |
cefe065613693824aa0b9cbc782f7b285576cb7f | 8,774 | cpp | C++ | frameworks/core/components/svg/render_svg.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/core/components/svg/render_svg.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/core/components/svg/render_svg.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:50.000Z | 2021-09-13T11:17:50.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 ... | 32.6171 | 110 | 0.629929 | openharmony-gitee-mirror |
ceff2abe0573eddfb56c19026a47125bba22e751 | 2,025 | cpp | C++ | src/common/vector_operations/gather.cpp | dfooz/duckdb | 6978d121bcaf5d56f35be51caef6d7662ef3c1c4 | [
"MIT"
] | 9 | 2021-09-08T13:13:03.000Z | 2022-03-11T21:18:05.000Z | src/common/vector_operations/gather.cpp | dfooz/duckdb | 6978d121bcaf5d56f35be51caef6d7662ef3c1c4 | [
"MIT"
] | 1 | 2021-12-12T03:36:02.000Z | 2021-12-12T03:36:02.000Z | src/common/vector_operations/gather.cpp | dfooz/duckdb | 6978d121bcaf5d56f35be51caef6d7662ef3c1c4 | [
"MIT"
] | 1 | 2022-01-18T09:38:19.000Z | 2022-01-18T09:38:19.000Z | //===--------------------------------------------------------------------===//
// gather.cpp
// Description: This file contains the implementation of the gather operators
//===--------------------------------------------------------------------===//
#include "duckdb/common/exception.hpp"
#include "duckdb/common/operat... | 31.153846 | 97 | 0.676543 | dfooz |
3000c6f5a082aae1cfc4c5eb8e05840395347e89 | 7,294 | cpp | C++ | VK9-Library/CIndexBuffer9.cpp | raj347/VK9 | 31ae780b64525d185284a5ff4564bf72d17fc310 | [
"Zlib"
] | null | null | null | VK9-Library/CIndexBuffer9.cpp | raj347/VK9 | 31ae780b64525d185284a5ff4564bf72d17fc310 | [
"Zlib"
] | null | null | null | VK9-Library/CIndexBuffer9.cpp | raj347/VK9 | 31ae780b64525d185284a5ff4564bf72d17fc310 | [
"Zlib"
] | 1 | 2022-03-30T00:44:51.000Z | 2022-03-30T00:44:51.000Z | /*
Copyright(c) 2016 Christopher Joseph Dean Schaefer
This software is provided 'as-is', without any express or implied
warranty.In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including co... | 25.865248 | 213 | 0.734439 | raj347 |
300336a329a3de7f27ef9e392894338c4e59a024 | 410 | hpp | C++ | library/ATF/_pvppointlimit_info.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_pvppointlimit_info.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_pvppointlimit_info.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _pvppointlimit_info
{
__int64 tUpdatedate;
bool bUseUp;
char byLimitRate;
long double dOriginalPoint;... | 22.777778 | 108 | 0.690244 | lemkova |
30089700ff87b8feee2dc698e20246679e10b6d6 | 3,285 | cpp | C++ | Dev04_Handout/Motor2D/Enemy.cpp | bottzo/Platformer-Espriu_Bach | 17931969900221ad9041e1bf0979d385c8ecf03c | [
"Apache-2.0"
] | null | null | null | Dev04_Handout/Motor2D/Enemy.cpp | bottzo/Platformer-Espriu_Bach | 17931969900221ad9041e1bf0979d385c8ecf03c | [
"Apache-2.0"
] | null | null | null | Dev04_Handout/Motor2D/Enemy.cpp | bottzo/Platformer-Espriu_Bach | 17931969900221ad9041e1bf0979d385c8ecf03c | [
"Apache-2.0"
] | null | null | null | #include "Enemy.h"
#include "player.h"
#include "j1Map.h"
#include "j1App.h"
#include "j1Collisions.h"
#include "p2Log.h"
#include "Entity.h"
#include "p2DynArray.h"
#include "j1Pathfinding.h"
enemy::enemy() {}
enemy::~enemy() {}
ground_enemy::ground_enemy() {
Load_Entity(App->entities->ground_enemy_sprite.GetStri... | 32.85 | 258 | 0.71172 | bottzo |
300aaf079fb3a3fe5585dfa1db30dee6a5726ca9 | 2,627 | cpp | C++ | retrace/daemon/glframe_os_linux.cpp | austriancoder/apitrace | 5919778f7bcba82433f80bda4fb225e43183a62f | [
"MIT"
] | 1 | 2021-03-05T10:49:37.000Z | 2021-03-05T10:49:37.000Z | retrace/daemon/glframe_os_linux.cpp | austriancoder/apitrace | 5919778f7bcba82433f80bda4fb225e43183a62f | [
"MIT"
] | null | null | null | retrace/daemon/glframe_os_linux.cpp | austriancoder/apitrace | 5919778f7bcba82433f80bda4fb225e43183a62f | [
"MIT"
] | 1 | 2018-10-05T03:09:13.000Z | 2018-10-05T03:09:13.000Z | // Copyright (C) Intel Corp. 2015. 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, mod... | 28.868132 | 75 | 0.661211 | austriancoder |
300c46c2b995bf412507af1244702bc7d6633c99 | 710 | cpp | C++ | test/hdf5.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 5 | 2021-05-21T07:52:50.000Z | 2022-02-09T04:26:31.000Z | test/hdf5.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | null | null | null | test/hdf5.cpp | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 1 | 2022-02-09T04:26:33.000Z | 2022-02-09T04:26:33.000Z | #include <highfive/H5File.hpp>
#include <vector>
#include "catch2_config.h"
using namespace HighFive;
TEST_CASE("HighFive/HDF5 working", "[hdf5][HighFive]")
{
std::cout << "Testing 'HighFive/HDF5 working'" << std::endl;
// we create a new hdf5 file
File file("/tmp/HighFiveTest.h5", File::ReadWrite | File:... | 29.583333 | 87 | 0.673239 | uos |
301128f2bba6df91cc47b11dbcb5594c3648dcda | 15,503 | cxx | C++ | main/sc/source/filter/xml/XMLDDELinksContext.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sc/source/filter/xml/XMLDDELinksContext.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sc/source/filter/xml/XMLDDELinksContext.cxx | 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... | 31.833676 | 111 | 0.666323 | Grosskopf |
3019da15bce57f21959d018c7bf6cb617dc32780 | 902 | cpp | C++ | Shape/Vertex.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | Shape/Vertex.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | Shape/Vertex.cpp | SatoshiMabuchi/Crystal | 91b2d72e5544cf86183587d2cfea48ca7f390dd4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Vertex.h"
using namespace Crystal::Math;
using namespace Crystal::Shape;
Vertex::Vertex(const Vector3df& position, const unsigned int id) :
position(position),
id(id)
{}
Vertex::Vertex(const Vector3df& position, const Vector3df& normal, const unsigned int id) :
position(p... | 21.47619 | 119 | 0.677384 | SatoshiMabuchi |
301a7a007dc41be799b1a078bcf2c7dabd901ac7 | 1,664 | cpp | C++ | frameworks/native/services/opersysnativeservice/OpersysNativeService.cpp | opersys/native-service | 40968e4b88cd88974f011c8da21240c45c8595d3 | [
"BSD-3-Clause"
] | 19 | 2016-02-11T02:38:53.000Z | 2021-05-17T22:51:22.000Z | frameworks/native/services/opersysnativeservice/OpersysNativeService.cpp | opersys/native-service | 40968e4b88cd88974f011c8da21240c45c8595d3 | [
"BSD-3-Clause"
] | null | null | null | frameworks/native/services/opersysnativeservice/OpersysNativeService.cpp | opersys/native-service | 40968e4b88cd88974f011c8da21240c45c8595d3 | [
"BSD-3-Clause"
] | 7 | 2016-07-07T18:31:41.000Z | 2019-09-10T06:30:09.000Z | /*
* Copyright 2013-2016, Opersys 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 agr... | 25.6 | 90 | 0.614183 | opersys |
301f30b6c6d03cbdc8f6ff72c2286851c0236056 | 1,405 | cpp | C++ | Camera/Camera/LEDIndentifier.cpp | Zuravvski/BSc-Thesis | e4505e23230c3de6977f6b554ce182555aa75812 | [
"MIT"
] | null | null | null | Camera/Camera/LEDIndentifier.cpp | Zuravvski/BSc-Thesis | e4505e23230c3de6977f6b554ce182555aa75812 | [
"MIT"
] | null | null | null | Camera/Camera/LEDIndentifier.cpp | Zuravvski/BSc-Thesis | e4505e23230c3de6977f6b554ce182555aa75812 | [
"MIT"
] | null | null | null | #include "LEDIndentifier.h"
#include <opencv2/imgproc.hpp>
bool FilterAndFind(const std::vector<std::vector<cv::Point>>& contours);
namespace Zuravvski
{
void LEDIndentifier::Identify(std::vector<RobotFrame>& robots)
{
using namespace cv;
const auto RED_MIN = Scalar(0, 200, 0);
const auto RED_MAX = Scalar(19... | 26.018519 | 86 | 0.713879 | Zuravvski |
301fe999b909f50878255139f35d4207a5a2f138 | 10,284 | cpp | C++ | src/transaction/all-at-once-transaction-executor.cpp | microsoft/fugue | 087db98d2e072675c272d3e5505af64d1c653585 | [
"MIT"
] | 3 | 2020-08-03T12:31:53.000Z | 2021-08-30T10:28:19.000Z | src/transaction/all-at-once-transaction-executor.cpp | microsoft/fugue | 087db98d2e072675c272d3e5505af64d1c653585 | [
"MIT"
] | null | null | null | src/transaction/all-at-once-transaction-executor.cpp | microsoft/fugue | 087db98d2e072675c272d3e5505af64d1c653585 | [
"MIT"
] | 3 | 2020-07-31T10:46:05.000Z | 2021-11-10T08:25:38.000Z | #include "transaction/all-at-once-transaction-executor.h"
namespace txservice::transaction
{
AllAtOnceTransactionExecutor::AllAtOnceTransactionExecutor(
int executor_id,
uint32_t concurrent_txn_count,
std::unique_ptr<TxnIDGenerator> txn_id_generator,
request::Handler::Pointer handler,
std::unique_p... | 38.954545 | 80 | 0.45245 | microsoft |
3021cabc59d3442e0834a1c91b3b67d92944bd63 | 914 | cpp | C++ | game/src/Game/SplashScene.cpp | emilhornlund/DV1537Project-AlienAdventure | b370e49d259ee722edd6f39c979824280522076a | [
"MIT"
] | null | null | null | game/src/Game/SplashScene.cpp | emilhornlund/DV1537Project-AlienAdventure | b370e49d259ee722edd6f39c979824280522076a | [
"MIT"
] | null | null | null | game/src/Game/SplashScene.cpp | emilhornlund/DV1537Project-AlienAdventure | b370e49d259ee722edd6f39c979824280522076a | [
"MIT"
] | null | null | null | //
// Created by Emil Hörnlund on 2018-09-14.
//
#include <Core/ObjectHandler.hpp>
#include <Core/SceneHandler.hpp>
#include <Game/Game.hpp>
#include <Game/SplashObject.hpp>
#include <Game/SplashScene.hpp>
#include <iostream>
AA::SplashScene::SplashScene(CGL::IGame *game) : CGL::IScene(game) {
auto obj = std::m... | 16.925926 | 68 | 0.690372 | emilhornlund |
3027714b55a458c847feb63cf8f9234cc862c966 | 5,166 | cc | C++ | runtime/browser/xwalk_presentation_service_helper_win.cc | gaurangkumar/crosswalk | 1b9b80835e83e77390bd6cdbc03beb63f2a6f550 | [
"BSD-3-Clause"
] | 2,211 | 2015-01-01T08:50:09.000Z | 2022-03-30T02:48:16.000Z | runtime/browser/xwalk_presentation_service_helper_win.cc | gaurangkumar/crosswalk | 1b9b80835e83e77390bd6cdbc03beb63f2a6f550 | [
"BSD-3-Clause"
] | 1,269 | 2015-01-02T10:43:16.000Z | 2020-01-17T00:58:09.000Z | runtime/browser/xwalk_presentation_service_helper_win.cc | gaurangkumar/crosswalk | 1b9b80835e83e77390bd6cdbc03beb63f2a6f550 | [
"BSD-3-Clause"
] | 585 | 2015-01-02T01:12:15.000Z | 2022-03-09T07:07:18.000Z | // Copyright (c) 2016 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/runtime/browser/xwalk_presentation_service_helper_win.h"
namespace xwalk {
DisplayInfoManagerServiceWin::DisplayInfoManagerServiceWin()... | 34.671141 | 80 | 0.699768 | gaurangkumar |
6f73f8c42f10a41960a49982ef7c5273d5b70d5f | 428 | cpp | C++ | cses/sorting-and-searching/ferris-wheel.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | cses/sorting-and-searching/ferris-wheel.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | cses/sorting-and-searching/ferris-wheel.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
// https://cses.fi/problemset/task/1090
desync();
int n, x;
cin >> n >> x;
vi v(n);
for(int &i:v)
cin >> i;
sort(v.begin(), v.end());
int i=0, j=n-1, ans = 0;
while(i <= j){
ans++;
int a = v[i], b = v[j];
i... | 18.608696 | 43 | 0.399533 | tysm |
6f75c98de32d59e74f05f354dc34eb3264c0fdf0 | 7,787 | hpp | C++ | gpcl/intrusive_list.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | 2 | 2021-02-10T11:51:25.000Z | 2021-12-20T12:35:36.000Z | gpcl/intrusive_list.hpp | Chingyat/gpcl | de4157a2bab07640539d9051fc7bb66c9c82eaf4 | [
"BSL-1.0"
] | 2 | 2021-11-28T03:09:15.000Z | 2021-11-29T15:08:43.000Z | gpcl/intrusive_list.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | null | null | null | //
// intrusive_list.hpp
// ~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2020 Zhengyi Fu (tsingyat at outlook dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef GPCL_INTRUSIVE_LIST_HPP
#define GPCL_IN... | 23.454819 | 80 | 0.678952 | Chingyat |
6f76bd6a9da234b1616213d9337e64bb7a2b1147 | 10,006 | cpp | C++ | libredex/MethodDevirtualizer.cpp | thezhangwei/redex | d2da16dcda0ca8a52d3de16456531dfc7793c7b5 | [
"BSD-3-Clause"
] | null | null | null | libredex/MethodDevirtualizer.cpp | thezhangwei/redex | d2da16dcda0ca8a52d3de16456531dfc7793c7b5 | [
"BSD-3-Clause"
] | null | null | null | libredex/MethodDevirtualizer.cpp | thezhangwei/redex | d2da16dcda0ca8a52d3de16456531dfc7793c7b5 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | 29.779762 | 80 | 0.6664 | thezhangwei |
6f7752ba6e4f4b31a44b6d9c531217d493ba3a45 | 2,156 | cpp | C++ | nimbro_topic_transport/test/test_bidirectional.cpp | lsolanka-flya/nimbro_network | 13768a9971ea91ce081c4774fb7fecfc4c323912 | [
"BSD-3-Clause"
] | 105 | 2015-09-22T14:36:32.000Z | 2022-03-09T08:51:43.000Z | nimbro_topic_transport/test/test_bidirectional.cpp | tradr-project/nimbro_network | 97e15d7d4c0d1a56fa85cdc62da13b00ef5275a9 | [
"BSD-3-Clause"
] | 19 | 2015-09-25T23:23:39.000Z | 2021-11-04T16:59:49.000Z | nimbro_topic_transport/test/test_bidirectional.cpp | tradr-project/nimbro_network | 97e15d7d4c0d1a56fa85cdc62da13b00ef5275a9 | [
"BSD-3-Clause"
] | 33 | 2015-09-25T18:11:31.000Z | 2022-03-23T06:55:28.000Z | // Unit tests for nimbro_topic_transport
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include <catch_ros/catch.hpp>
#include <ros/package.h>
#include <ros/param.h>
#include <ros/node_handle.h>
#include <std_msgs/Int64.h>
int g_counter = 0;
void handleMessageLocal(const std_msgs::Int64 &msg)
{
//REQUIRE(g_cou... | 22.458333 | 115 | 0.693414 | lsolanka-flya |
6f7805faa03b1b131d679c55926c716ae7d1679a | 457 | cpp | C++ | src/sound/emscripten/SoundEmscripten.cpp | savegame/oxygine-sound | 462ef233fa94b6440804615d5178a689af1fcc30 | [
"MIT"
] | 13 | 2016-01-14T22:54:26.000Z | 2021-12-20T03:37:22.000Z | src/sound/emscripten/SoundEmscripten.cpp | savegame/oxygine-sound | 462ef233fa94b6440804615d5178a689af1fcc30 | [
"MIT"
] | 3 | 2016-02-14T10:48:33.000Z | 2019-04-28T17:16:09.000Z | src/sound/emscripten/SoundEmscripten.cpp | savegame/oxygine-sound | 462ef233fa94b6440804615d5178a689af1fcc30 | [
"MIT"
] | 18 | 2016-01-17T12:30:07.000Z | 2021-12-20T03:37:27.000Z | #include "SoundEmscripten.h"
#include "SoundHandleEmscripten.h"
namespace oxygine
{
SoundEmscripten::SoundEmscripten(const char* file): _path(file)
{
}
SoundEmscripten::~SoundEmscripten()
{
}
int SoundEmscripten::getDuration() const
{
return 30000;
}
SoundHandle* So... | 16.925926 | 73 | 0.649891 | savegame |
6f8023175e8fb22d1cfd22e35f8bc1204e6b1e6b | 1,216 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/JAG2015Autumn/pD.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/JAG2015Autumn/pD.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/JAG2015Autumn/pD.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
template<typename A, typena... | 16.213333 | 54 | 0.507401 | daemonslayer |
6f819dd8cc9a224e5416edd92d32920583f64f2b | 4,165 | cpp | C++ | Game/OGRE/RenderSystems/GL/src/OgreGLHardwareOcclusionQuery.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/OGRE/RenderSystems/GL/src/OgreGLHardwareOcclusionQuery.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/OGRE/RenderSystems/GL/src/OgreGLHardwareOcclusionQuery.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://ogre.sourceforge.net/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.html
This program is free so... | 28.923611 | 101 | 0.642017 | hackerlank |
6f889b1714b97d06854335f5a67ac9a5ef4fc586 | 11,887 | cpp | C++ | gmlc/networking/TcpServer.cpp | GMLC-TDC/networking | 3b3541dafae08c0dce3983194637b7baf537c4ba | [
"BSD-3-Clause"
] | null | null | null | gmlc/networking/TcpServer.cpp | GMLC-TDC/networking | 3b3541dafae08c0dce3983194637b7baf537c4ba | [
"BSD-3-Clause"
] | 20 | 2021-12-02T19:13:47.000Z | 2022-03-02T17:07:27.000Z | gmlc/networking/TcpServer.cpp | GMLC-TDC/networking | 3b3541dafae08c0dce3983194637b7baf537c4ba | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017-2021,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance
for Sustainable Energy, LLC. See the top-level NOTICE for additional details.
All rights reserved. SPDX-License-Identifier: BSD-3-Clause
*/
#include "TcpServer.h"
#include <algorithm>
#include <iostream>
#inc... | 27.077449 | 80 | 0.577185 | GMLC-TDC |
6f88b2eccbed0a33c95ba9a77d0bb0118a03b5f1 | 4,080 | cpp | C++ | src/realgenmultithread.cpp | marcorushdy/realGen | 2441cbb81d034137926c0f50c7dcdc6777329b76 | [
"MIT"
] | 16 | 2017-04-23T23:24:08.000Z | 2021-03-12T21:38:28.000Z | src/realgenmultithread.cpp | marcorushdy/realGen | 2441cbb81d034137926c0f50c7dcdc6777329b76 | [
"MIT"
] | null | null | null | src/realgenmultithread.cpp | marcorushdy/realGen | 2441cbb81d034137926c0f50c7dcdc6777329b76 | [
"MIT"
] | 6 | 2017-06-14T11:50:37.000Z | 2019-05-16T20:09:07.000Z | #include "realgenmultithread.h"
// Constructors
RealGenMultithread::RealGenMultithread(RealGenOptions &opt, unsigned int nt) : RealGen(opt) {
nThread = nt;
#ifdef _WIN32
localThread = new HANDLE[nThread];
#else
localThread = new pthread_t[nThread];
#endif
}
RealGenMultithread::~RealGenMultit... | 28.732394 | 146 | 0.61201 | marcorushdy |
6f8adec5b33b6eaea56c23867a485f750db6f26d | 235 | hpp | C++ | include/CountNumbersWithUniqueDigits.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/CountNumbersWithUniqueDigits.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/CountNumbersWithUniqueDigits.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef COUNT_NUMBERS_WITH_UNIQUE_DIGITS_HPP_
#define COUNT_NUMBERS_WITH_UNIQUE_DIGITS_HPP_
class CountNumbersWithUniqueDigits {
public:
int countNumbersWithUniqueDigits(int n);
};
#endif // COUNT_NUMBERS_WITH_UNIQUE_DIGITS_HPP_
| 23.5 | 47 | 0.859574 | yanzhe-chen |
6f8cbd6ca3f9326eb827b5fc5baa06802d0f28e9 | 1,840 | hpp | C++ | include/if3_cgi.hpp | jdkoftinoff/if3-cpp | 90174667e5be84143b5aa644bef63f9798e851a3 | [
"BSD-2-Clause"
] | null | null | null | include/if3_cgi.hpp | jdkoftinoff/if3-cpp | 90174667e5be84143b5aa644bef63f9798e851a3 | [
"BSD-2-Clause"
] | null | null | null | include/if3_cgi.hpp | jdkoftinoff/if3-cpp | 90174667e5be84143b5aa644bef63f9798e851a3 | [
"BSD-2-Clause"
] | null | null | null | /*
The Internet Filter Version 3 Kernel Version 3
Source Code
Written By Jeff Koftinoff <jeffk@internetfilter.com>
Copyright (c) 1995-2005
By Turner and Sons Productions, Inc.
http://www.internetfilter.com/
ALL RIGHTS RESERVED.
*/
#ifndef IF3_CGI_HPP
#define IF3_CGI_HPP
#include "if3_world.hpp"
#includ... | 18.585859 | 94 | 0.551087 | jdkoftinoff |
6f8d075c509b49142c4d3cb9257693aed886a3d3 | 5,043 | cpp | C++ | main.cpp | brandontrabucco/Serriform-Neural-Network | cde5971f1c98b2cf758a223867fe574064235a10 | [
"MIT"
] | null | null | null | main.cpp | brandontrabucco/Serriform-Neural-Network | cde5971f1c98b2cf758a223867fe574064235a10 | [
"MIT"
] | null | null | null | main.cpp | brandontrabucco/Serriform-Neural-Network | cde5971f1c98b2cf758a223867fe574064235a10 | [
"MIT"
] | null | null | null | /**
*
* A program to test a Serriform Neural Network
* Author: Brandon Trabucco
* Date: 2016/07/27
*
*/
#include "SerriformNetwork.h"
#include "DatasetAdapter.h"
#include "OutputTarget.h"
#include <vector>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string.h>
#include <sys/time.h>
#includ... | 30.75 | 96 | 0.640293 | brandontrabucco |
6f91626708ff1ab34bb84122b7a858f51dc5514d | 7,167 | hpp | C++ | src/clustering/immediate_consistency/backfillee.hpp | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | src/clustering/immediate_consistency/backfillee.hpp | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | src/clustering/immediate_consistency/backfillee.hpp | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | // Copyright 2010-2015 RethinkDB, all rights reserved.
#ifndef CLUSTERING_IMMEDIATE_CONSISTENCY_BACKFILLEE_HPP_
#define CLUSTERING_IMMEDIATE_CONSISTENCY_BACKFILLEE_HPP_
#include "clustering/generic/registrant.hpp"
#include "clustering/immediate_consistency/history.hpp"
#include "clustering/immediate_consistency/backfi... | 45.360759 | 89 | 0.752616 | zadcha |
6f9209c85d7bf2531257f3cd4c6956969e814762 | 715 | hpp | C++ | Include/Game/Scene.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Game/Scene.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Game/Scene.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | #pragma once
/*
Scene
*/
namespace Game
{
// Scene base class.
class Scene
{
protected:
// Protected constructor.
Scene() = default;
public:
// Virtual destructor.
virtual ~Scene() = default;
// Called when the scene is about to enter.
virtual ... | 17.439024 | 52 | 0.52028 | igorlev91 |
6f9232543ef17fa3a4cce259518098a4ffb76144 | 1,334 | cpp | C++ | src/Analyzers/Rub.cpp | dmitrySorokin/saiph | cdb2a80c41eef5265a815d2826d93daf86e61444 | [
"MIT"
] | 10 | 2015-02-03T20:22:04.000Z | 2021-11-21T04:19:50.000Z | src/Analyzers/Rub.cpp | DainDwarf/saiph | f4ba615e527ca57785053ac7156c9e2de29e0044 | [
"MIT"
] | null | null | null | src/Analyzers/Rub.cpp | DainDwarf/saiph | f4ba615e527ca57785053ac7156c9e2de29e0044 | [
"MIT"
] | 4 | 2016-08-18T10:39:21.000Z | 2021-09-08T06:44:27.000Z | #include "Analyzers/Rub.h"
#include <string>
#include "Request.h"
#include "Saiph.h"
#include "World.h"
using namespace analyzer;
using namespace std;
Rub::Rub(Saiph* saiph) : Analyzer("Rub"), saiph(saiph), magic_lamp_key(ILLEGAL_ITEM) {
}
void Rub::analyze() {
if (magic_lamp_key == ILLEGAL_ITEM)
return;
priori... | 24.254545 | 89 | 0.694903 | dmitrySorokin |
6f9a36efbd782aa8b8dc0daff0a448f1d4813842 | 3,035 | cpp | C++ | debugger/src/debugger.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | 23 | 2019-08-27T13:54:27.000Z | 2022-01-21T08:38:14.000Z | debugger/src/debugger.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | 21 | 2020-02-22T20:37:16.000Z | 2020-08-30T14:52:48.000Z | debugger/src/debugger.cpp | emrsmsrli/gameboi | 6448722529bc64184e30a945f0e5ec4203265e10 | [
"MIT"
] | null | null | null | #include "debugger/debugger.h"
#include <spdlog/sinks/stdout_color_sinks.h>
#include "gameboy/gameboy.h"
#include "imgui-SFML.h"
namespace gameboy {
debugger::debugger(const observer<gameboy> gb)
: gb_{gb},
bus_{gb_->get_bus()},
apu_debugger_{bus_->get_apu()},
cpu_debugger_{bus_->get_cpu()},
... | 26.622807 | 113 | 0.653048 | emrsmsrli |
6f9bffab5eba3929a4165c9e5baf1fff8d0665f0 | 25,614 | cpp | C++ | RegExApiEndpoint.cpp | ziloka/regex101 | aabb53c1f763af2c6915e22bb5b0c007a4622300 | [
"MIT"
] | 33 | 2021-02-25T02:00:26.000Z | 2022-03-21T17:26:24.000Z | RegExApiEndpoint.cpp | ziloka/regex101 | aabb53c1f763af2c6915e22bb5b0c007a4622300 | [
"MIT"
] | 3 | 2021-02-24T22:40:55.000Z | 2022-01-25T08:06:13.000Z | RegExApiEndpoint.cpp | ziloka/regex101 | aabb53c1f763af2c6915e22bb5b0c007a4622300 | [
"MIT"
] | 9 | 2021-04-10T02:37:13.000Z | 2022-03-22T06:43:31.000Z | /*
* Copyright (C) 2020 Adrian Carpenter
*
* This file is part of a regex101.com offline application.
*
* https://github.com/fizzyade/regex101
*
* =====================================================================
* The regex101 web content is owned and used with permission from
* Firas Dib at regex101.com.... | 37.283843 | 171 | 0.66612 | ziloka |
6f9dcf49f5ae8acce8a042c37ee69da1baf0abea | 926 | cpp | C++ | Dynamic Programming/Coin Change/C++/coin_change.cpp | LuisMBaezCo/AlgorithmNotebook | 43479e4331143987e627d222c9a65ed9d23d6c8f | [
"MIT"
] | 16 | 2020-03-02T20:03:28.000Z | 2021-06-15T05:02:59.000Z | Dynamic Programming/Coin Change/C++/coin_change.cpp | LuisMBaezCo/AlgorithmNotebook | 43479e4331143987e627d222c9a65ed9d23d6c8f | [
"MIT"
] | null | null | null | Dynamic Programming/Coin Change/C++/coin_change.cpp | LuisMBaezCo/AlgorithmNotebook | 43479e4331143987e627d222c9a65ed9d23d6c8f | [
"MIT"
] | 4 | 2020-09-15T07:47:38.000Z | 2021-10-31T01:25:02.000Z | #include <bits/stdc++.h>
using namespace std;
class CoinChange {
public:
vector<int> memo;
int coinChange(vector<int>& coins, int amount) {
memo.resize(amount+1, -1);
int answer = solve(coins, amount);
return (answer==INT_MAX)?-1:answer;
}
int solve(vector<int>& coi... | 21.534884 | 69 | 0.531317 | LuisMBaezCo |
6fa06f4cc91f29adcc15c3a5cd97e5384f99a2d1 | 2,185 | hpp | C++ | src/Distribution_Hot_O.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | null | null | null | src/Distribution_Hot_O.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | null | null | null | src/Distribution_Hot_O.hpp | bethang/corona3d_2020 | 868dcea42dbcc04c49b8fbe3635f2a2fbd8c9d6f | [
"MIT"
] | 2 | 2021-05-26T18:22:15.000Z | 2022-01-27T17:31:00.000Z | /*
* Distribution_Hot_O.hpp
*
* Created on: Jul 22, 2020
* Author: rodney
*/
#ifndef DISTRIBUTION_HOT_O_HPP_
#define DISTRIBUTION_HOT_O_HPP_
#include "Distribution.hpp"
class Distribution_Hot_O: public Distribution {
public:
Distribution_Hot_O(Planet my_p, double ref_h, double ref_T);
virtual ~Distribut... | 39.017857 | 168 | 0.756064 | bethang |
6fa3e23b90e16b84bc8c6edab0d618ba2e9d5f0f | 1,889 | hpp | C++ | explainer/languageCheck.hpp | luosiwei-cmd/Maticpouse | 382c45e030b3e944607249fea730558d061a6f03 | [
"MIT"
] | 1 | 2020-08-03T07:20:07.000Z | 2020-08-03T07:20:07.000Z | explainer/languageCheck.hpp | luosiwei-cmd/Maticpouse | 382c45e030b3e944607249fea730558d061a6f03 | [
"MIT"
] | null | null | null | explainer/languageCheck.hpp | luosiwei-cmd/Maticpouse | 382c45e030b3e944607249fea730558d061a6f03 | [
"MIT"
] | 1 | 2021-07-11T03:02:48.000Z | 2021-07-11T03:02:48.000Z | #ifndef languageCheck_hpp
#define languageCheck_hpp
#include<bits/stdc++.h>
class languageCheck{
public:
languageCheck();
void outputMarkdown(std::vector<std::string> & dests);
void setTitle(std::string title);
int run(std::vector<std::string>& content);
int getContent(std::vector... | 23.320988 | 59 | 0.591848 | luosiwei-cmd |
6fabb5db7fbbaeaee219309e5101d87250088f3c | 5,291 | cpp | C++ | admin/wmi/wbem/winmgmt/stdprov/stdprov.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/winmgmt/stdprov/stdprov.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/winmgmt/stdprov/stdprov.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) 1995-2001 Microsoft Corporation
Module Name:
STDPROV.CPP
Abstract:
Contains DLL entry points. Also has code that controls
when the DLL can be unloaded by tracking the number of
object. Also holds various utility classes and
functions.
History:
a-davj 9-27-95 Cr... | 26.193069 | 111 | 0.517672 | npocmaka |
6faf9b1b42cf908812d74c36f3f38f2c94193655 | 132 | cpp | C++ | src/CueTransformable.cpp | sebleedelisle/ofxTimely | 4546f66431580a3b66363182f12ed3d9c741ad10 | [
"MIT"
] | null | null | null | src/CueTransformable.cpp | sebleedelisle/ofxTimely | 4546f66431580a3b66363182f12ed3d9c741ad10 | [
"MIT"
] | null | null | null | src/CueTransformable.cpp | sebleedelisle/ofxTimely | 4546f66431580a3b66363182f12ed3d9c741ad10 | [
"MIT"
] | null | null | null | //
// CueTransformable.cpp
// BecHillLasers
//
// Created by Seb Lee-Delisle on 30/07/2018.
//
//
#include "CueTransformable.h"
| 13.2 | 45 | 0.666667 | sebleedelisle |
6fb0fcef4d660e57ecf192904ccc681467c546ff | 658 | cpp | C++ | recitation/exception1.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 14 | 2019-04-23T13:45:10.000Z | 2022-03-12T18:26:47.000Z | recitation/exception1.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | null | null | null | recitation/exception1.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 9 | 2019-09-01T15:17:45.000Z | 2020-11-13T20:31:36.000Z | // Γράψτε συνάρτηση που να δέχεται 2 πραγματικές τιμές και να επιστρέφει το πηλίκο τους.
// Χειριστείτε την περίπτωση που ο παρονομαστής είναι μηδέν με εξαίρεση.
// Πραγματοποιήστε σύλληψη (catch) της εξαίρεσης στη main.
#include <iostream>
#include <stdexcept>
using namespace std;
double divide(double a, double b... | 18.277778 | 89 | 0.583587 | chgogos |
6fb117b2ab1817c7eb4569e32258e9ef296f949b | 91,396 | cpp | C++ | test/unittest/source/domain/test_gateway.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | test/unittest/source/domain/test_gateway.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | null | null | null | test/unittest/source/domain/test_gateway.cpp | casualcore/casual | 047a4eaabbba52ad3ce63dc698a9325ad5fcec6d | [
"MIT"
] | 1 | 2022-02-21T18:30:25.000Z | 2022-02-21T18:30:25.000Z | //!
//! Copyright (c) 2015, The casual project
//!
//! This software is licensed under the MIT license, https://opensource.org/licenses/MIT
//!
// to be able to use 'raw' flags and codes
// since we undefine 'all' of them in common
#define CASUAL_NO_XATMI_UNDEFINE
#include "common/unittest.h"
#include "test/unittes... | 30.897904 | 196 | 0.541577 | casualcore |
6fb4d2aae35d0cc21879ad2c0841a807f209693f | 35,152 | cpp | C++ | ESP32/TinyMCUMEesp81ttgovga32/MECUMEesp81/emuapi.cpp | rpsubc8/ESP32TinyMCUMEesp81 | 3b96e6a0e0a0d753bf22ed14c76959fc83ad57d2 | [
"WTFPL"
] | 3 | 2021-11-01T13:59:41.000Z | 2022-01-20T17:59:24.000Z | ESP32/TinyMCUMEesp81ttgovga32/MECUMEesp81/emuapi.cpp | rpsubc8/ESP32TinyMCUMEesp81 | 3b96e6a0e0a0d753bf22ed14c76959fc83ad57d2 | [
"WTFPL"
] | null | null | null | ESP32/TinyMCUMEesp81ttgovga32/MECUMEesp81/emuapi.cpp | rpsubc8/ESP32TinyMCUMEesp81 | 3b96e6a0e0a0d753bf22ed14c76959fc83ad57d2 | [
"WTFPL"
] | null | null | null | //#define KEYMAP_PRESENT 1
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "emuapi.h"
#include "gbConfig.h"
#include "gbGlobals.h"
#include "Arduino.h"
//JJ extern "C" {
//JJ #include "emuapi.h"
//JJ #include "iopins.h"
//JJ}
//JJ #in... | 26.154762 | 161 | 0.563325 | rpsubc8 |
6fb6d07354495ef65e3642a0b36200ed57bb8309 | 73 | cxx | C++ | Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/Templates/vnl_fft_base+2.float-.cxx | eile/ITK | 2f09e6e2f9e0a4a7269ac83c597f97b04f915dc1 | [
"Apache-2.0"
] | 4 | 2015-05-22T03:47:43.000Z | 2016-06-16T20:57:21.000Z | Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/Templates/vnl_fft_base+2.float-.cxx | GEHC-Surgery/ITK | f5df62749e56c9036e5888cfed904032ba5fdfb7 | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/VNL/src/vxl/core/vnl/algo/Templates/vnl_fft_base+2.float-.cxx | GEHC-Surgery/ITK | f5df62749e56c9036e5888cfed904032ba5fdfb7 | [
"Apache-2.0"
] | 9 | 2016-06-23T16:03:12.000Z | 2022-03-31T09:25:08.000Z | #include <vnl/algo/vnl_fft_base.txx>
VNL_FFT_BASE_INSTANTIATE(2, float);
| 24.333333 | 36 | 0.808219 | eile |
6fb72a19f553e3404065084b840218d3b4ce796d | 3,549 | cpp | C++ | src/Collision.cpp | AnyTimeTraveler/CppRobots | c7d2df9ac8272136f9cc958e0c874e58cfbca585 | [
"MIT"
] | 4 | 2016-06-23T08:46:43.000Z | 2020-05-05T17:28:29.000Z | src/Collision.cpp | AnyTimeTraveler/CppRobots | c7d2df9ac8272136f9cc958e0c874e58cfbca585 | [
"MIT"
] | 2 | 2015-09-29T09:24:39.000Z | 2015-12-09T15:10:00.000Z | src/Collision.cpp | AnyTimeTraveler/CppRobots | c7d2df9ac8272136f9cc958e0c874e58cfbca585 | [
"MIT"
] | 2 | 2019-05-21T18:56:57.000Z | 2019-06-06T11:12:18.000Z | /**
* \copyright Copyright 2016 Hochschule Emden/Leer. This project is released
* under
* the MIT License, see the file LICENSE.md for rights and limitations.
* \file Collision.cpp
* \author Jan-Niklas Braak
*/
#include "Collision.hpp"
bool Collision::Projection::overlap(const Projection &proj2) {
/*
Ther... | 35.49 | 78 | 0.677937 | AnyTimeTraveler |
6fb8fa3a7b09d502327e176a9a17a92c4e48fbd4 | 3,186 | cpp | C++ | source/textelement.cpp | yurablok/lunasvg | ec5373150f01b059d7c65956b1c52a95bc8e00c3 | [
"MIT"
] | null | null | null | source/textelement.cpp | yurablok/lunasvg | ec5373150f01b059d7c65956b1c52a95bc8e00c3 | [
"MIT"
] | null | null | null | source/textelement.cpp | yurablok/lunasvg | ec5373150f01b059d7c65956b1c52a95bc8e00c3 | [
"MIT"
] | 1 | 2021-09-24T15:39:59.000Z | 2021-09-24T15:39:59.000Z | #include "textelement.h"
#include "layoutcontext.h"
#include "parser.h"
namespace lunasvg {
TextElement::TextElement()
: StyledElement(ElementId::Text)
{
}
void TextElement::layout(LayoutContext* context, LayoutContainer* current) const
{
if (isDisplayNone())
return;
//auto shape = std::make_uni... | 30.634615 | 82 | 0.624922 | yurablok |
6fb910ebfedee9486dd068ff2250695029777889 | 3,216 | cc | C++ | src/mgps/loader/plugin_info.cc | mzdun/dashcam-gps | 7611a08792cac98c4fd1260111e3fc0e632e982b | [
"MIT"
] | 6 | 2020-02-14T00:46:16.000Z | 2021-04-07T09:29:06.000Z | src/mgps/loader/plugin_info.cc | mzdun/dashcam-gps | 7611a08792cac98c4fd1260111e3fc0e632e982b | [
"MIT"
] | 1 | 2020-06-09T10:55:43.000Z | 2020-06-18T11:39:59.000Z | src/mgps/loader/plugin_info.cc | mzdun/dashcam-gps | 7611a08792cac98c4fd1260111e3fc0e632e982b | [
"MIT"
] | 2 | 2020-06-17T13:20:22.000Z | 2021-04-11T10:18:03.000Z | #include <mgps/loader/plugin_info.hh>
#include <mgps/loader/plugin_interface.hh>
#include <mgps/version.hh>
namespace mgps::loader {
namespace {
constexpr unsigned char host_build_requirements() {
#ifdef NDEBUG
return 1u;
#else
return 0u;
#endif
}
enum class info_tag : unsigned char {
marker = 0xff,
... | 24 | 73 | 0.645522 | mzdun |
6fbe99ff5a1b3f1f0d93e6df67e29b48eaeeebf2 | 1,590 | cpp | C++ | Contest/Petrozavodsk Summer-2015. Yandex Cup Stage 2/I.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Contest/Petrozavodsk Summer-2015. Yandex Cup Stage 2/I.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Contest/Petrozavodsk Summer-2015. Yandex Cup Stage 2/I.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<set>
#include<map>
#include<vector>
#include<queue>
using namespace std;
#define ll long long
#define RG register
#define MAX 100005
inline int read()
{
RG int x=0,t=1;RG char ch=getchar();
while((ch<'... | 22.394366 | 67 | 0.566667 | HeRaNO |
6fc41e398feccb76302a6af6b90f628a76802b3e | 312 | cpp | C++ | aql/benchmark/lib_63/class_7.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_63/class_7.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_63/class_7.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_7.h"
#include "class_1.h"
#include "class_2.h"
#include "class_5.h"
#include "class_3.h"
#include "class_6.h"
#include <lib_45/class_8.h>
#include <lib_62/class_9.h>
#include <lib_10/class_2.h>
#include <lib_44/class_5.h>
#include <lib_26/class_1.h>
class_7::class_7() {}
class_7::~class_7() {}
| 20.8 | 27 | 0.714744 | menify |
6fcb4f7b4f7f4ce84f24a1ef9fccc1fb4f71c770 | 1,939 | cc | C++ | components/service/ucloud/alimt/src/model/GetImageTranslateRequest.cc | wanguojian/AliOS-Things | 47fce29d4dd39d124f0bfead27998ad7beea8441 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | components/service/ucloud/alimt/src/model/GetImageTranslateRequest.cc | wanguojian/AliOS-Things | 47fce29d4dd39d124f0bfead27998ad7beea8441 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | components/service/ucloud/alimt/src/model/GetImageTranslateRequest.cc | wanguojian/AliOS-Things | 47fce29d4dd39d124f0bfead27998ad7beea8441 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 26.202703 | 84 | 0.757091 | wanguojian |
6fd4061dd4640b8e989bef6f1a2e0e27a5296792 | 5,312 | cpp | C++ | fileclient/src/user_tasks.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | fileclient/src/user_tasks.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | fileclient/src/user_tasks.cpp | agandzyuk/fmultitransfer | 0b92cee70f7831fc8598fb3d5cf816bcece6261f | [
"MIT"
] | null | null | null | #include "user_tasks.h"
#include "notify_base.h"
using namespace std;
/****************************************************************/
ConnectionTask::ConnectionTask(const std::string& name,
const IPAddress& addr,
u16 port,
... | 28.55914 | 113 | 0.519955 | agandzyuk |
6fd72b9b652c6dc7b42ce3438bec11249dced24d | 3,736 | cxx | C++ | src/Cxx/GeometricObjects/Dodecahedron.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 81 | 2020-08-10T01:44:30.000Z | 2022-03-23T06:46:36.000Z | src/Cxx/GeometricObjects/Dodecahedron.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 2 | 2020-09-12T17:33:52.000Z | 2021-04-15T17:33:09.000Z | src/Cxx/GeometricObjects/Dodecahedron.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 27 | 2020-08-17T07:09:30.000Z | 2022-02-15T03:44:58.000Z | #include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkLookupTable.h>
#include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkPolyData.h>
#include <vtkPolyDataMapper.h>
#include <vtkPolyhedron.h>
#include <vtkProperty.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h... | 37.36 | 80 | 0.675857 | ajpmaclean |
6fd7cd8007c080a36742de285928f662ca95afb1 | 453 | cpp | C++ | templates/single_cpp_project/src/hello.cpp | coschain/WebAssemblyStudio | 338fa860c92f5a0855a3f7b06532d47e6df5d731 | [
"MIT"
] | 2 | 2019-01-04T11:42:51.000Z | 2021-06-05T20:18:22.000Z | templates/single_cpp_project/src/hello.cpp | coschain/WebAssemblyStudio | 338fa860c92f5a0855a3f7b06532d47e6df5d731 | [
"MIT"
] | null | null | null | templates/single_cpp_project/src/hello.cpp | coschain/WebAssemblyStudio | 338fa860c92f5a0855a3f7b06532d47e6df5d731 | [
"MIT"
] | 3 | 2019-05-14T07:21:01.000Z | 2021-06-05T20:18:26.000Z | #include <cosiolib/contract.hpp>
#include <cosiolib/print.hpp>
// the contract class
class hello : public cosio::contract {
public:
// all contract classes MUST have same constructor prototype
using cosio::contract::contract;
// contract method: greet
void greet() {
// say hello to contract call... | 23.842105 | 64 | 0.684327 | coschain |
6fd7e33369f8d8f59cedcc0818b9a7f41626dd11 | 1,011 | cpp | C++ | Cpp/Codes/Practice/LeetCode/17 Letter Combinations of a Phone Number.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | null | null | null | Cpp/Codes/Practice/LeetCode/17 Letter Combinations of a Phone Number.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | null | null | null | Cpp/Codes/Practice/LeetCode/17 Letter Combinations of a Phone Number.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | 1 | 2019-04-01T10:30:03.000Z | 2019-04-01T10:30:03.000Z | #include <gtest/gtest.h>
using namespace std;
string mapPhoneNumber[] = {
"abc",
"def",
"ghi",
"jkl",
"mno",
"pqrs",
"tuv",
"wxyz" };
bool letterCombinations(string digits, string select, int index, vector<string>& result)
{
if (index == digits.length())
{
result.push_back(select);
return true;
}
int... | 15.796875 | 88 | 0.649852 | QuincyWork |
6fdb8930547ecb9c507b6381668edf2bf4991351 | 13,137 | cc | C++ | mech/mammal_ik.cc | rkb-1/quad | 66ae3bc5ccb6db070bc1e32a3b9386f6d01a049e | [
"Apache-2.0"
] | 64 | 2017-01-18T15:12:05.000Z | 2022-02-16T08:28:11.000Z | mech/mammal_ik.cc | rkb-1/quad | 66ae3bc5ccb6db070bc1e32a3b9386f6d01a049e | [
"Apache-2.0"
] | 2 | 2021-02-11T14:39:38.000Z | 2021-10-03T16:49:57.000Z | mech/mammal_ik.cc | rkb-1/quad | 66ae3bc5ccb6db070bc1e32a3b9386f6d01a049e | [
"Apache-2.0"
] | 14 | 2021-01-11T09:48:34.000Z | 2021-12-16T16:20:35.000Z | // Copyright 2014-2019 Josh Pieper, jjp@pobox.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... | 33.34264 | 83 | 0.653269 | rkb-1 |
6fde0264c55c10befe05b09d8f6dd6ae2261f380 | 4,527 | cpp | C++ | src/core/Palette.cpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 60 | 2019-11-30T00:30:33.000Z | 2022-03-26T03:44:53.000Z | src/core/Palette.cpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 8 | 2019-12-16T07:55:54.000Z | 2022-03-09T21:01:02.000Z | src/core/Palette.cpp | stoneface86/trackerboy | 68cbb4c56ec4bbccfd1fe172a57451bdaba91561 | [
"MIT"
] | 3 | 2021-08-06T07:17:15.000Z | 2022-03-08T03:39:06.000Z |
#include "core/Palette.hpp"
#include "core/config/keys.hpp"
#include <QtDebug>
Palette::Palette() :
mData{
QColor( 24, 24, 24), // ColorBackground
QColor( 32, 32, 32), // ColorBackgroundHighlight1
QColor( 48, 48, 48), // ColorBackgroundHighlight2
QColor(192, 192, 192), // C... | 31.006849 | 102 | 0.632869 | stoneface86 |
6fde262ff2c1007f358a0f5008dfa8666888e997 | 4,366 | cpp | C++ | student/dcm2/dcm/src/BasePoly.cpp | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2021-12-12T13:26:06.000Z | 2022-03-03T16:14:53.000Z | student/dcm2/dcm/src/BasePoly.cpp | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 5 | 2019-03-01T07:08:46.000Z | 2019-04-28T07:32:42.000Z | student/dcm2/dcm/src/BasePoly.cpp | rboman/progs | c60b4e0487d01ccd007bcba79d1548ebe1685655 | [
"Apache-2.0"
] | 2 | 2017-12-13T13:13:52.000Z | 2019-03-13T20:08:15.000Z | // Copyright 1994 Igor Klapka
//
// 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 a... | 26.621951 | 77 | 0.495877 | rboman |
6fdfc6038c8ce21c78367295e8ae109ea2bd203d | 7,393 | hpp | C++ | dart/utils/detail/XmlHelpers-impl.hpp | ibrahiminfinite/dart | 495c82120c836005f2d136d4a50c8cc997fb879b | [
"BSD-2-Clause"
] | null | null | null | dart/utils/detail/XmlHelpers-impl.hpp | ibrahiminfinite/dart | 495c82120c836005f2d136d4a50c8cc997fb879b | [
"BSD-2-Clause"
] | null | null | null | dart/utils/detail/XmlHelpers-impl.hpp | ibrahiminfinite/dart | 495c82120c836005f2d136d4a50c8cc997fb879b | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2011-2022, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... | 32.283843 | 80 | 0.601515 | ibrahiminfinite |
6fe30fa61443d802c8f5656af6b178512d403d3e | 3,781 | cpp | C++ | third_party/ode-16.0/contrib/InteractiveCollisions/src/camera.cpp | daichi-yoshikawa/odeplus | 204b0c4bde6c2055f4cb6239685e16fdc6420c41 | [
"BSD-3-Clause"
] | null | null | null | third_party/ode-16.0/contrib/InteractiveCollisions/src/camera.cpp | daichi-yoshikawa/odeplus | 204b0c4bde6c2055f4cb6239685e16fdc6420c41 | [
"BSD-3-Clause"
] | null | null | null | third_party/ode-16.0/contrib/InteractiveCollisions/src/camera.cpp | daichi-yoshikawa/odeplus | 204b0c4bde6c2055f4cb6239685e16fdc6420c41 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <GL/gl.h>
#include <GL/glu.h>
#include "camera.hpp"
using std::clog;
using std::endl;
Camera::Camera() :
fov(50),
aspect(1),
znear(.01),
zfar(50),
width(0),
height(0),
window_x(0),
window_y(0)
{
... | 16.955157 | 75 | 0.523671 | daichi-yoshikawa |
6fe3231a26ac4f6032f77ecc1bdc782e8fda1148 | 2,052 | cpp | C++ | native/test/test_main.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | null | null | null | native/test/test_main.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | 1 | 2021-02-18T18:35:46.000Z | 2021-02-18T18:35:46.000Z | native/test/test_main.cpp | kaloianm/rural-pipe | 7bdae362f360da3114282512ef2c0d01e621a4c1 | [
"Unlicense"
] | null | null | null | /**
* Copyright 2021 Kaloian Manassiev
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish... | 38 | 100 | 0.736355 | kaloianm |
6fe4ac1b2d1f92f467c00718a1a00535d72c01e9 | 1,848 | hpp | C++ | Library/Source/EnergyManager/Utility/CachedValue.hpp | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | Library/Source/EnergyManager/Utility/CachedValue.hpp | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | Library/Source/EnergyManager/Utility/CachedValue.hpp | NB4444/BachelorProjectEnergyManager | d1fd93dcc83af6d6acd36b7efda364ac2aab90eb | [
"MIT"
] | null | null | null | #pragma once
#include <chrono>
#include <functional>
namespace EnergyManager {
namespace Utility {
/**
* Caches a value for a certain amount of time.
* @tparam Value The value type.
*/
template<typename Value>
class CachedValue {
/**
* The cached value.
*/
Value value_;
/**
* Whe... | 26.028169 | 155 | 0.66342 | NB4444 |
6fe5354d460e717e146261598ca25d96f0a7c148 | 178 | cpp | C++ | tests/test_definition/hello.cpp | inlinechan/stags | 9c1ce3ad4bf5d387c0b41482192d3d05ee96ef3a | [
"BSD-2-Clause"
] | null | null | null | tests/test_definition/hello.cpp | inlinechan/stags | 9c1ce3ad4bf5d387c0b41482192d3d05ee96ef3a | [
"BSD-2-Clause"
] | 1 | 2016-01-08T08:12:19.000Z | 2016-01-08T08:12:19.000Z | tests/test_definition/hello.cpp | inlinechan/stags | 9c1ce3ad4bf5d387c0b41482192d3d05ee96ef3a | [
"BSD-2-Clause"
] | null | null | null | #include "hello.h"
#include "world.h"
void say_hello(const char* name)
{
}
int main(int argc, char *argv[])
{
say_hello("Jack");
say_world("Dorothy");
return 0;
}
| 11.866667 | 32 | 0.617978 | inlinechan |
6fe8be2120131adcf7e67a06f9edb4afef7887bf | 1,719 | cc | C++ | be/src/util/hdr-histogram-test.cc | Keendata/impala | b25e250d321f329b98e017c648df75d052497963 | [
"Apache-2.0"
] | 746 | 2017-12-02T06:02:05.000Z | 2022-03-29T06:59:03.000Z | be/src/util/hdr-histogram-test.cc | xwzbupt/impala | 97dda2b27da99367f4d07699aa046b16cda16dd4 | [
"Apache-2.0"
] | 9 | 2018-01-30T16:16:22.000Z | 2021-08-31T00:13:28.000Z | be/src/util/hdr-histogram-test.cc | xwzbupt/impala | 97dda2b27da99367f4d07699aa046b16cda16dd4 | [
"Apache-2.0"
] | 363 | 2017-12-10T01:08:17.000Z | 2022-03-26T05:25:00.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 34.38 | 69 | 0.75509 | Keendata |
6fe8e7e3ac317a14b86d35a1c44531c950a0a9d5 | 1,760 | cpp | C++ | test/unit/access.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 14 | 2021-11-20T15:21:08.000Z | 2022-03-14T21:47:22.000Z | test/unit/access.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 6 | 2021-11-27T17:50:48.000Z | 2022-02-01T18:17:38.000Z | test/unit/access.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 1 | 2022-02-21T23:06:03.000Z | 2022-02-21T23:06:03.000Z | //==================================================================================================
/*
KUMI - Compact Tuple Tools
Copyright : KUMI Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#defin... | 25.507246 | 100 | 0.548295 | jfalcou |
6feaf3d59265df2d1b97ad4ebc786769c49c9a41 | 193,762 | cc | C++ | protocal/drivers/gnss/config.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/drivers/gnss/config.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/drivers/gnss/config.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: drivers/gnss/config.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "drivers/gnss/config.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/st... | 35.72967 | 182 | 0.708632 | racestart |
6febb90829bd8b8634c9783659e63bd7cc044f65 | 8,968 | cpp | C++ | Synergy Editor TGC/Synergy Editor/CompileSupport.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Synergy Editor TGC/Synergy Editor/CompileSupport.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Synergy Editor TGC/Synergy Editor/CompileSupport.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | #include "StdAfx.h"
#include "CompileSupport.h"
#include "WriteProject.h"
#include "WriteFiles.h"
#include "Variables.h"
#include "Utilities.h"
#include "ReadError.h"
#include "MainFrm.h"
#include "Settings.h"
bool CompileSupport::m_run;
bool CompileSupport::m_IsCompiling;
CString CompileSupport::m_strHelpFile;
void... | 27.258359 | 240 | 0.705174 | domydev |
6fed420cdcd1d52d007d74fb115e67dcbd478129 | 979 | cpp | C++ | String_CL/EraseAndReplace.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | 1 | 2020-12-02T09:21:52.000Z | 2020-12-02T09:21:52.000Z | String_CL/EraseAndReplace.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | String_CL/EraseAndReplace.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | /*
8. Replace and Erase
*/
#include<iostream>
#include<string>
using namespace std;
int main() {
string string1{"The values in any left subtree"
"\nare less than the value in the"
"\nparent node and the values in"
"\nany right subtree are greater"
"\nthan the value in the parent node"}... | 25.763158 | 59 | 0.595506 | rsghotra |
6fee0cd6312ecf2fdc1a18a750d33ec13287fd10 | 1,730 | cc | C++ | src/sincos/sin_cos_test.cc | fixstars/Halide-elements | 0e9d1f27628c2626a4f4468fcacac8f71d70f525 | [
"MIT"
] | 76 | 2017-10-19T07:16:55.000Z | 2022-03-23T00:04:39.000Z | src/sincos/sin_cos_test.cc | tufei/Halide-elements | d9354213920441d4d3e1b0757e9354db48c9fbcc | [
"MIT"
] | 3 | 2017-11-17T19:50:38.000Z | 2021-08-07T07:39:05.000Z | src/sincos/sin_cos_test.cc | tufei/Halide-elements | d9354213920441d4d3e1b0757e9354db48c9fbcc | [
"MIT"
] | 15 | 2017-11-09T18:52:10.000Z | 2021-12-11T03:33:23.000Z | #include <cstdlib>
#include <iostream>
#include <string>
#include <exception>
#include <climits>
#include <iomanip>
#include "HalideRuntime.h"
#include "HalideBuffer.h"
#include "sin_cos.h"
#include "test_common.h"
int test(int (*func)(struct halide_buffer_t *_src_buffer1, struct halide_buffer_t *_dst_buffer))
{
... | 28.360656 | 133 | 0.488439 | fixstars |
6ff033f2ba462b47014b9e5b751a093f3a394886 | 12,395 | hpp | C++ | libcamsim/scene.hpp | Tetsu5902/camsim | bcf995bb30e44792414ca2afd30a2869030b1f92 | [
"MIT"
] | 5 | 2020-02-19T14:03:35.000Z | 2021-05-05T08:26:01.000Z | libcamsim/scene.hpp | Tetsu5902/camsim | bcf995bb30e44792414ca2afd30a2869030b1f92 | [
"MIT"
] | null | null | null | libcamsim/scene.hpp | Tetsu5902/camsim | bcf995bb30e44792414ca2afd30a2869030b1f92 | [
"MIT"
] | 3 | 2020-02-25T22:51:36.000Z | 2021-05-05T08:26:05.000Z | /*
* Copyright (C) 2016, 2017, 2018
* Computer Graphics Group, University of Siegen
* Written by Martin Lambers <martin.lambers@uni-siegen.de>
*
* 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 ... | 32.362924 | 148 | 0.658169 | Tetsu5902 |
6ff45014780795ff22a84811db6906aa131c285a | 39,583 | hh | C++ | dune/fem/oseen/oemsolver/oemsolver.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/oemsolver/oemsolver.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/oemsolver/oemsolver.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | #ifndef DUNE_OSEEN_DUNE_StokesOEMSolver_HH
#define DUNE_OSEEN_DUNE_StokesOEMSolver_HH
//- system includes
#include <utility>
#include <cmake_config.h>
#include <dune/stuff/common/debug.hh>
//- Dune includes
#include <dune/common/typetraits.hh>
#include <dune/fem/operator/common/operator.hh>
//- local includes
#inc... | 29.041086 | 106 | 0.631458 | renemilk |
6ffcdee1180f490b523788245395144a96e019eb | 21,684 | hpp | C++ | include/CPPResult.hpp | stephanfr/CppResult | 4f1c3aa3f1e5fd4e5a04504935a2f82880489994 | [
"MIT"
] | null | null | null | include/CPPResult.hpp | stephanfr/CppResult | 4f1c3aa3f1e5fd4e5a04504935a2f82880489994 | [
"MIT"
] | null | null | null | include/CPPResult.hpp | stephanfr/CppResult | 4f1c3aa3f1e5fd4e5a04504935a2f82880489994 | [
"MIT"
] | null | null | null | #pragma once
#include <assert.h>
#include <memory>
#include <optional>
#include <string>
#include <fmt/format.h>
namespace SEFUtility
{
enum class BaseResultCodes
{
SUCCESS = 0,
FAILURE
};
//
// Base Class needed primarily for passing inner errors
//
class ResultBase
... | 43.542169 | 126 | 0.633232 | stephanfr |
6ffd0f0757b63f95f1370ff8029595cb9fa3bfe9 | 140,462 | cpp | C++ | src/extra/imgui.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 12 | 2021-07-11T11:14:14.000Z | 2022-03-28T11:37:29.000Z | src/extra/imgui.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 103 | 2021-06-26T17:09:43.000Z | 2022-03-30T12:05:18.000Z | src/extra/imgui.cpp | fragcolor-xyz/chainblocks | bf83f8dc8f46637bc42713d1fa77e81228ddfccf | [
"BSD-3-Clause"
] | 8 | 2021-07-27T14:45:26.000Z | 2022-03-01T08:07:18.000Z | /* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright © 2019 Fragcolor Pte. Ltd. */
#include "imgui.hpp"
#include "bgfx.hpp"
#include "blocks/shared.hpp"
#include "runtime.hpp"
#include <implot.h>
using namespace chainblocks;
namespace chainblocks {
namespace ImGui {
struct Base {
static inline CBExposedTypeIn... | 32.604921 | 80 | 0.520183 | fragcolor-xyz |
b5027f31b229ef8ee98224b05a12be7c25c66746 | 38,724 | cpp | C++ | main/irrigationController.cpp | mwick83/irrigation_ctrl | 90f53f25f3a670193157e580acbd0c7b69b7f206 | [
"BSD-3-Clause"
] | 5 | 2018-02-26T21:33:41.000Z | 2022-03-02T11:29:08.000Z | main/irrigationController.cpp | mwick83/irrigation_ctrl | 90f53f25f3a670193157e580acbd0c7b69b7f206 | [
"BSD-3-Clause"
] | null | null | null | main/irrigationController.cpp | mwick83/irrigation_ctrl | 90f53f25f3a670193157e580acbd0c7b69b7f206 | [
"BSD-3-Clause"
] | 1 | 2019-12-31T03:47:58.000Z | 2019-12-31T03:47:58.000Z | #include "irrigationController.h"
extern "C" {
void esp_restart_noos() __attribute__ ((noreturn));
}
// TBD: encapsulate
RTC_DATA_ATTR static IrrigationController::peristent_data_t irrigCtrlPersistentData = {
.lastIrrigEvent = 0,
.reservoirState = IrrigationController::RESERVOIR_OK
};
/**
* @brief Defau... | 44.459242 | 136 | 0.605826 | mwick83 |
b50643ecd29f1ba58d9975c7ec8beee75ccf1808 | 4,389 | hpp | C++ | src/lcg/Graph.hpp | smbct/AAN-reachability | 9143b3687fd69db741ec7770e41c0832f448f85b | [
"MIT"
] | null | null | null | src/lcg/Graph.hpp | smbct/AAN-reachability | 9143b3687fd69db741ec7770e41c0832f448f85b | [
"MIT"
] | null | null | null | src/lcg/Graph.hpp | smbct/AAN-reachability | 9143b3687fd69db741ec7770e41c0832f448f85b | [
"MIT"
] | null | null | null | /*!
* \file Graph.hpp
* \brief classes and functions to define the local causality graph of a reachability problem
* \author S.B
* \date 03/04/2018
*/
#ifndef LCG_GRAPH_HPP
#define LCG_GRAPH_HPP
#include "../model/AN.hpp"
#include "Vertex.hpp"
#include "VObjective.hpp"
#include <vector>
namespace LCG {
/*
* ... | 27.43125 | 103 | 0.582137 | smbct |
b5066f39fa613e422c5e9d3b3fd97f8ae3cea362 | 1,391 | hpp | C++ | include/build_info/private/compilers/mingw.hpp | Kartonagnick/build_info | 581d7f8114e91142a46639412e3e716c33868c14 | [
"MIT"
] | null | null | null | include/build_info/private/compilers/mingw.hpp | Kartonagnick/build_info | 581d7f8114e91142a46639412e3e716c33868c14 | [
"MIT"
] | 19 | 2021-06-08T19:59:49.000Z | 2021-07-04T19:32:47.000Z | include/tools/build_info/private/compilers/mingw.hpp | Kartonagnick/tools-features | a3662f165f796751cabe1f0703f0f0316cace647 | [
"MIT"
] | null | null | null | // [2021y-06m-18d][22:50:00] Idrisov Denis R. 001
// [2021y-06m-15d][00:05:00] Idrisov Denis R. 001 PRE
#pragma once
#ifndef dTOOLS_BI_MINGW_USED_
#define dTOOLS_BI_MINGW_USED_ 001
//==============================================================================
//========================================================... | 29.595745 | 87 | 0.478073 | Kartonagnick |
b509922a4da416dd999fcc26cf9b622b1b49d710 | 6,569 | cpp | C++ | Visual C++/CD Label/TextObject.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | Visual C++/CD Label/TextObject.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | Visual C++/CD Label/TextObject.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | // TextObject.cpp: implementation of the CTextObject class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CD Label.h"
#include "TextObject.h"
#include <math.h>
#include "ProprieteTexte.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#defi... | 25.46124 | 117 | 0.638453 | manimanis |
b50f9a9db531c495bc3330e09cd6ba9ccd182ab5 | 1,585 | hpp | C++ | src/thread/adapter_disk.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | 15 | 2017-03-28T13:15:53.000Z | 2022-03-01T08:16:48.000Z | src/thread/adapter_disk.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | null | null | null | src/thread/adapter_disk.hpp | huangqundl/af_stream | 178d98feaf403b6947fb0fae3c2bbaedd91f9ab8 | [
"Apache-2.0"
] | 6 | 2017-10-17T14:10:23.000Z | 2022-03-01T08:16:29.000Z | #ifndef __AFS_ADAPTER_DISK_HPP_INCLUDED__
#define __AFS_ADAPTER_DISK_HPP_INCLUDED__
#include "adapter_base.hpp"
#include <stdio.h>
#include <string>
#include "../config.hpp"
#include "../util.hpp"
namespace afs {
class AdapterDisk : public AdapterBase {
public:
// derived from AdapterBase
void Init();
... | 19.096386 | 80 | 0.636593 | huangqundl |
b51b779f45615be8d0e53602771dc07a02af7420 | 1,461 | cpp | C++ | DFS/floodFillIConnectedRegions.cpp | jkerkela/best-algorithm-collection | 6b22536a9f8ebdf3ae134031d41becf30066a5ef | [
"MIT"
] | null | null | null | DFS/floodFillIConnectedRegions.cpp | jkerkela/best-algorithm-collection | 6b22536a9f8ebdf3ae134031d41becf30066a5ef | [
"MIT"
] | null | null | null | DFS/floodFillIConnectedRegions.cpp | jkerkela/best-algorithm-collection | 6b22536a9f8ebdf3ae134031d41becf30066a5ef | [
"MIT"
] | null | null | null | class Solution {
private:
int nextStepDims[4][2] = { {0,1},{0,-1},{1,0},{-1,0} };
int boardWidth, boardHeight;
vector<vector<bool>>visited;
public:
int numIslands(vector<vector<char>>& grid) {
if (grid.size() == 0)
return 0;
return resolveAmountOfIndependentlyConnected... | 32.466667 | 109 | 0.516085 | jkerkela |
b51b887759c33d89f47e961414789c525e29b1c9 | 1,296 | cpp | C++ | Algorithms/Easy/404.sum-of-left-leaves.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/404.sum-of-left-leaves.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/404.sum-of-left-leaves.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=404 lang=cpp
*
* [404] Sum of Left Leaves
*
* https://leetcode.com/problems/sum-of-left-leaves/description/
*
* algorithms
* Easy (48.71%)
* Total Accepted: 117.6K
* Total Submissions: 241.3K
* Testcase Example: '[3,9,20,null,null,15,7]'
*
* Find the sum of all left leaves in a... | 19.058824 | 69 | 0.568673 | jtcheng |
b5222a01505dfa13ac24d8522ad728cdefd25bdf | 756 | cpp | C++ | A. Watermelon.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | A. Watermelon.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | A. Watermelon.cpp | Samim-Arefin/Codeforce-Problem-Solution | 7219ee6173faaa9e06231d4cd3e9ba292ae27ce3 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int num;
while(cin>>num)
{
int flag=0;
if(num%2==0 && num!=2)
{
int diff=2;
while(num>0)
{
num-=diff;
if(num%2==0 && diff%2==0)
{
... | 18 | 41 | 0.246032 | Samim-Arefin |
dddff1b1d319fa7e071049dd9fb36a59d99dadce | 1,767 | cpp | C++ | my_vulkan/debug_callback.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | my_vulkan/debug_callback.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | 3 | 2019-02-25T10:13:57.000Z | 2020-11-11T14:46:14.000Z | my_vulkan/debug_callback.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | #include "debug_callback.hpp"
#include "utils.hpp"
#include <cassert>
namespace my_vulkan
{
debug_callback_t::debug_callback_t(
VkInstance instance,
PFN_vkDebugReportCallbackEXT callback
)
: _instance{instance}
{
VkDebugReportCallbackCreateInfoEXT debugReportCreateInfo = {};
... | 33.339623 | 83 | 0.657612 | pixelwise |
dde79bd54ceee082a2b927d89d64834742045932 | 1,548 | hh | C++ | extg4/X4NameOrder.hh | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | extg4/X4NameOrder.hh | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | extg4/X4NameOrder.hh | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | #pragma once
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include "SGDML.hh"
/**
X4NameOrder
---------------------------------
Comparator functor for sorting a vector of
objects with GetName methods.
When strip is true the name has any "0xc0ffee" removed before comparisons.
**/
... | 20.64 | 75 | 0.543282 | hanswenzel |
dde8d313b8f9a31b2c0b036e04802ff0fef282f8 | 444 | cpp | C++ | 2020/object-oriented-technology-and-methods/exp-12/part-2/traveler.cpp | Overloadlightning/BIT | de85cb74523d63b22b0118c26c65f854b7d2df86 | [
"MIT"
] | 6 | 2021-10-30T06:07:42.000Z | 2022-03-02T15:24:57.000Z | 2020/object-oriented-technology-and-methods/exp-12/part-2/traveler.cpp | Overloadlightning/BIT | de85cb74523d63b22b0118c26c65f854b7d2df86 | [
"MIT"
] | null | null | null | 2020/object-oriented-technology-and-methods/exp-12/part-2/traveler.cpp | Overloadlightning/BIT | de85cb74523d63b22b0118c26c65f854b7d2df86 | [
"MIT"
] | 1 | 2022-02-21T15:37:49.000Z | 2022-02-21T15:37:49.000Z | #include "traveler.h"
Traveler::Traveler(const std::string &str_) {
this->str.assign(str_);
}
Traveler::Traveler(const Traveler &traveler_) {
this->str.assign(traveler_.str);
}
Traveler &Traveler::operator=(const Traveler &traveler_) {
this->str.assign(traveler_.str);
return *this;
}
std::string Tra... | 19.304348 | 58 | 0.68018 | Overloadlightning |
dded06cb52cfd7864589f18a641cbdaee8e4ec7c | 1,118 | cpp | C++ | src/Exciton/PaintingSecrets/PaintingFilesTool.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/PaintingFilesTool.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | src/Exciton/PaintingSecrets/PaintingFilesTool.cpp | Vladimir-Lin/QtExciton | ac5bc82f22ac3cdcdccb90526f7dd79060535b5a | [
"MIT"
] | null | null | null | #include <exciton.h>
#include "ui_PaintingFilesTool.h"
N::PaintingFilesTool:: PaintingFilesTool (QWidget * parent,Plan * p)
: Widget ( parent, p)
, ui (new Ui::PaintingFilesTool)
{
ui -> setupUi ( this ) ;
... | 31.942857 | 68 | 0.488372 | Vladimir-Lin |
ddf105cc18fd91e2f863fa2ef170e07d6225c060 | 931 | hpp | C++ | franken/main/Context.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | franken/main/Context.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | franken/main/Context.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | /***********************************************************************//**
@file
***************************************************************************/
#pragma once
namespace franken {
namespace main {
/***********************************************************************//**
@brief コンテキスト
***************... | 25.861111 | 77 | 0.348013 | yatsuha4 |
ddf63a4ff2d03a9f08a40dfdf5d04a051e8cdb8e | 6,919 | cpp | C++ | source/src/dxtmex_mexerror.cpp | gharveymn/dds-matlab | 268546bb63d12e0a28fb476434f2e6940b3c68ab | [
"MIT"
] | null | null | null | source/src/dxtmex_mexerror.cpp | gharveymn/dds-matlab | 268546bb63d12e0a28fb476434f2e6940b3c68ab | [
"MIT"
] | null | null | null | source/src/dxtmex_mexerror.cpp | gharveymn/dds-matlab | 268546bb63d12e0a28fb476434f2e6940b3c68ab | [
"MIT"
] | null | null | null | /** mlerrorutils.c
* Defines error and warning utility functions for easier
* output of error information.
*
* Copyright © 2018 Gene Harvey
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* * * * * * * * * * * * * * * * * * * * * * * * * ... | 31.884793 | 357 | 0.764128 | gharveymn |
ddf80d09da379150fb094c4b61a674972ee1bbb1 | 2,235 | cpp | C++ | addcitydialog.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | addcitydialog.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | addcitydialog.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | #include "addcitydialog.h"
#include "ui_addcitydialog.h"
#include "openweathermapreporter.h"
#include "curlrestrequester.h"
CAddCityDialog::CAddCityDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CAddCityDialog)
{
ui->setupUi(this);
auto connected = QObject::connect(ui->_buttonBox, SIGNAL(accep... | 26.294118 | 118 | 0.674273 | mholyoak |
fb0290abfb41ce9ac951dd4f8618b0fafdc5d798 | 1,866 | cpp | C++ | Tehnici Avansate de Programare (TAP)/Laborator/L4/2.cpp | DLarisa/FMI-Materials-BachelorDegree | 138e1a20bc33617772e9cd9e4432fbae99c0250c | [
"W3C"
] | 4 | 2022-02-12T02:05:36.000Z | 2022-03-26T14:44:43.000Z | Tehnici Avansate de Programare (TAP)/Laborator/L4/2.cpp | DLarisa/FMI-Materials-BachelorDegree-UniBuc | 138e1a20bc33617772e9cd9e4432fbae99c0250c | [
"W3C"
] | null | null | null | Tehnici Avansate de Programare (TAP)/Laborator/L4/2.cpp | DLarisa/FMI-Materials-BachelorDegree-UniBuc | 138e1a20bc33617772e9cd9e4432fbae99c0250c | [
"W3C"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
int i, j, n, m;
cout<<"Tabla Sah (n, m): "; cin>>n>>m;
int t[n][m];
cout<<"Elemente Tabla: ";
for(i=0; i<n; i++)
for(j=0; j<m; j++) cin>>t[i][j];
//matrice de valori maxime
int val_max... | 27.850746 | 105 | 0.528403 | DLarisa |
fb0539534a06c01742b23cfa49b5a5631bfb7c79 | 789 | cpp | C++ | cpp/comm/serialRadio.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 133 | 2017-06-24T02:44:28.000Z | 2022-03-25T05:17:00.000Z | cpp/comm/serialRadio.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | null | null | null | cpp/comm/serialRadio.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 33 | 2017-06-19T03:24:40.000Z | 2022-02-03T20:13:12.000Z | #include "comm/serialRadio.hpp"
using std::vector;
namespace comm {
SerialRadio::SerialRadio(serial::Serial * serialIn, RadioConfig & configIn) :
Radio(configIn),
serial(serialIn)
{
};
int SerialRadio::readBytes(bool bufferFlag, int bytesToRead) {
// Attempt to read serial byt... | 23.205882 | 81 | 0.589354 | MinesJA |
fb0b062c265e5c65a7282d49c8570feba4080462 | 5,599 | cpp | C++ | src/binlex.cpp | jbx81-1337/binlex | ea8bedd0283a57ac55d1d8844c83f7a5d20a6c9c | [
"Unlicense"
] | null | null | null | src/binlex.cpp | jbx81-1337/binlex | ea8bedd0283a57ac55d1d8844c83f7a5d20a6c9c | [
"Unlicense"
] | null | null | null | src/binlex.cpp | jbx81-1337/binlex | ea8bedd0283a57ac55d1d8844c83f7a5d20a6c9c | [
"Unlicense"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <capstone/capstone.h>
#if defined(__linux__) || defined(__APPLE__)
#include <sys/time.h>
#include <signal.h>
#elif _WIN32
#include <windows.h>
#endif
#include "args.h"
#include "pe.h"
#include "raw.h"
#include "cil.h"
#include "pe-dotnet.h"
#include "b... | 33.130178 | 106 | 0.628326 | jbx81-1337 |
fb0d55b77218e4583a2cee22317f9373758b7477 | 1,181 | hpp | C++ | integration/include/integration/Integrator.hpp | gavinband/bingwa | d52e166b3bb6bc32cd32ba63bf8a4a147275eca1 | [
"BSL-1.0"
] | 3 | 2021-04-21T05:42:24.000Z | 2022-01-26T14:59:43.000Z | integration/include/integration/Integrator.hpp | gavinband/bingwa | d52e166b3bb6bc32cd32ba63bf8a4a147275eca1 | [
"BSL-1.0"
] | 2 | 2020-04-09T16:11:04.000Z | 2020-11-10T11:18:56.000Z | integration/include/integration/Integrator.hpp | gavinband/qctool | 8d8adb45151c91f953fe4a9af00498073b1132ba | [
"BSL-1.0"
] | null | null | null |
// Copyright Gavin Band 2008 - 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef INTEGRATION_INTEGRATOR_HPP
#define INTEGRATION_INTEGRATOR_HPP
#include <exception>
namespace i... | 26.244444 | 97 | 0.718036 | gavinband |
fb17e4223ea432f2a0617b21753de6cd92ab7f36 | 363 | cpp | C++ | input/copied_pointer.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/copied_pointer.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/copied_pointer.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | // Code copied from https://www.w3schools.com/cpp/trycpp.asp?filename=demo_array_change
#include <iostream>
#include <string>
using namespace std;
int main()
{
string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
cars[0] = "Opel";
cout << cars[0];
cout << cars[1];
cout << cars[2];
cout << cars[3... | 21.352941 | 87 | 0.584022 | xdevkartik |
fb1a1c0043a5ef23d9884b05a66a7281edc22f1a | 1,349 | hpp | C++ | watchinputs/watch_inputs/src/modules/timeruleslib/timeruleslib.hpp | CapsicumCorp/iOmy | 00480c6ed766fc3258b3c84a7248c0502994c149 | [
"Apache-2.0",
"libpng-2.0"
] | 4 | 2016-10-21T13:08:30.000Z | 2018-06-24T05:39:34.000Z | watchinputs/watch_inputs/src/modules/timeruleslib/timeruleslib.hpp | CapsicumCorp/iOmy | 00480c6ed766fc3258b3c84a7248c0502994c149 | [
"Apache-2.0",
"libpng-2.0"
] | null | null | null | watchinputs/watch_inputs/src/modules/timeruleslib/timeruleslib.hpp | CapsicumCorp/iOmy | 00480c6ed766fc3258b3c84a7248c0502994c149 | [
"Apache-2.0",
"libpng-2.0"
] | null | null | null | /*
Title: Time Rules Library Header for Watch Inputs
Author: Matthew Stapleton (Capsicum Corporation) <matthew@capsicumcorp.com>
Description: Header File for timeruleslib.cpp
Copyright: Capsicum Corporation 2017
This file is part of Watch Inputs which is part of the iOmy project.
iOmy is free software: you can redist... | 29.326087 | 101 | 0.78725 | CapsicumCorp |
fb1af50bf4033d4acf39f15458666aa025ad92c4 | 4,035 | cpp | C++ | src/stream/preprocess/RtIntensityNorm.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 7 | 2015-02-10T17:00:49.000Z | 2021-07-27T22:09:43.000Z | src/stream/preprocess/RtIntensityNorm.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 11 | 2015-02-22T19:15:53.000Z | 2021-08-04T17:26:18.000Z | src/stream/preprocess/RtIntensityNorm.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 8 | 2015-07-06T22:31:51.000Z | 2019-04-22T21:22:07.000Z | /*=========================================================================
* RtIntensityNorm.cpp is the implementation of a class that normalizes the
* intensity of subsequent images in a timeseries to match the global signal
* of the first.
*
* Copyright 2007-2013, the MURFI dev team.
*
* Licensed under t... | 28.617021 | 77 | 0.652292 | cdla |
fb1b7e72a44e8c9557c923aaf9404f5c41e26796 | 2,209 | cpp | C++ | ME2D/GameController.cpp | kkmzero/microplane-engine | 5ee9301b959807e8edefc8ef2ff10551b3b8836f | [
"Zlib"
] | null | null | null | ME2D/GameController.cpp | kkmzero/microplane-engine | 5ee9301b959807e8edefc8ef2ff10551b3b8836f | [
"Zlib"
] | null | null | null | ME2D/GameController.cpp | kkmzero/microplane-engine | 5ee9301b959807e8edefc8ef2ff10551b3b8836f | [
"Zlib"
] | 1 | 2020-11-09T12:52:18.000Z | 2020-11-09T12:52:18.000Z | //============================================================================
// Microplane Engine - ME2D
//
// Game Controller
//----------------------------------------------------------------------------
// Copyright (c) 2018, 2020 Ivan Kmeťo
//
// This software is provided 'as-is', without any express or im... | 25.988235 | 79 | 0.627886 | kkmzero |