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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
50f527b18788b52c38ea6e11fa240c91a476f68d | 2,346 | cpp | C++ | iOS/Game/GameWindows.cpp | Amazong/Nebula | 8b5b0d3dea53b4a9558b6149c84d10564b86cf6d | [
"MIT"
] | null | null | null | iOS/Game/GameWindows.cpp | Amazong/Nebula | 8b5b0d3dea53b4a9558b6149c84d10564b86cf6d | [
"MIT"
] | 11 | 2016-07-14T11:55:17.000Z | 2016-07-14T12:14:01.000Z | iOS/Game/GameWindows.cpp | Amazong/iOS---Instrument-Outlet-Simulator | 8b5b0d3dea53b4a9558b6149c84d10564b86cf6d | [
"MIT"
] | null | null | null | #include "headers\GameWindows.h"
#include "headers\Errors.h"
int render_splash()
{
sf::RenderWindow *splash_screen = new sf::RenderWindow(sf::VideoMode(887, 407), "", sf::Style::None);
sf::Clock splash_clk;
sf::Texture splash_png;
if (!(splash_png.loadFromFile("res/png/Splash.png"))) {
splash_screen->setVisibl... | 18.046154 | 113 | 0.617221 |
50f529c402184d29c166aededf54b2345c95266c | 429 | cpp | C++ | testing/park_test.cpp | Chukwuemeka-Ike/deepRacerControllers | c1c2901d87a45538aa0e38970c780ade3457c604 | [
"MIT"
] | 4 | 2019-12-30T08:54:36.000Z | 2020-11-16T11:01:06.000Z | testing/park_test.cpp | Chukwuemeka-Ike/deepRacerControllers | c1c2901d87a45538aa0e38970c780ade3457c604 | [
"MIT"
] | null | null | null | testing/park_test.cpp | Chukwuemeka-Ike/deepRacerControllers | c1c2901d87a45538aa0e38970c780ade3457c604 | [
"MIT"
] | null | null | null | // To test the parallel parking controller before implementing it in a ROS pkg
#include <cmath.h>
#include <stdio.h>
using namespace std;
#define steeringGain 2
#define throttleGain 2
float computeDistance(float first, float second);
int main()
{
x = -2;
xd = -5;
while(x != xd){
steeringCtrl = -steerin... | 15.321429 | 78 | 0.675991 |
50f5eac597a7a48fdf25f1af7c48233c64a486e6 | 260 | cpp | C++ | Version0.2/Kernel/Discretization/preprocessing.cpp | glwagner/Exasim | ee4540443435f958fa2ca78d59cbf9cff0fe69de | [
"MIT"
] | 37 | 2020-12-09T20:24:36.000Z | 2022-02-18T17:19:23.000Z | Version0.2/Kernel/Discretization/preprocessing.cpp | glwagner/Exasim | ee4540443435f958fa2ca78d59cbf9cff0fe69de | [
"MIT"
] | 25 | 2020-11-25T20:37:33.000Z | 2022-02-25T15:53:11.000Z | Version0.2/Kernel/Discretization/preprocessing.cpp | glwagner/Exasim | ee4540443435f958fa2ca78d59cbf9cff0fe69de | [
"MIT"
] | 8 | 2020-11-30T15:34:06.000Z | 2022-01-09T21:06:00.000Z | #ifndef __PREPROCESSING
#define __PREPROCESSING
#include "../preprocessing/errormsg.cpp"
#include "../preprocessing/ioutilities.cpp"
#include "../preprocessing/readbinaryfiles.cpp"
#ifdef HAVE_CUDA
#include "../preprocessing/gpuDeviceInfo.cpp"
#endif
#endif | 21.666667 | 47 | 0.788462 |
50f7589a35ef392e993cef7dfd97e16115d1e4be | 508 | cpp | C++ | cpp/utility_make_from_tuple.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/utility_make_from_tuple.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/utility_make_from_tuple.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ --std=c++20 -pthread -o ../_build/cpp/utility_make_from_tuple.exe ./cpp/utility_make_from_tuple.cpp && (cd ../_build/cpp/;./utility_make_from_tuple.exe)
https://en.cppreference.com/w/cpp/utility/make_from_tuple
*/
#include <iostream>
#include <tuple>
struct Foo {
Foo(int first, float second, int third) {
... | 28.222222 | 156 | 0.635827 |
50f96c187b9ce94499cc1b4e6b8e24405bfdfa12 | 4,365 | cxx | C++ | STEER/STEERBase/AliDetectorTagCuts.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/STEERBase/AliDetectorTagCuts.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/STEERBase/AliDetectorTagCuts.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Author: Panos Christakoglou. *
* Contributors are mentioned in the code where appropriate. *
* *
* Permission to... | 36.680672 | 85 | 0.6252 |
50ff1bc5ed5b30251e2a0c6b4e0289112d84e0e2 | 6,165 | hpp | C++ | src/morda/widgets/group/list.hpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 69 | 2016-12-07T05:56:53.000Z | 2020-11-27T20:59:05.000Z | src/morda/widgets/group/list.hpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 103 | 2015-07-10T14:42:21.000Z | 2020-09-09T16:16:21.000Z | src/morda/widgets/group/list.hpp | igagis/morda | dd7b58f7cb2689d56b7796cc9b6b9302aad1a529 | [
"MIT"
] | 18 | 2016-11-22T14:41:37.000Z | 2020-04-22T18:16:10.000Z | /*
morda - GUI framework
Copyright (C) 2012-2021 Ivan Gagis <igagis@gmail.com>
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 3 of the License, or
(at your option) any later version... | 28.022727 | 144 | 0.710949 |
dd00c037105c4c257d0293e8d5c4d7cc9b5180d3 | 1,415 | cpp | C++ | libs/settings/src/help.cpp | robertdickson/ledger | fd9ba1a3fb2ccbb212561695ebb745747a5402b4 | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/settings/src/help.cpp | robertdickson/ledger | fd9ba1a3fb2ccbb212561695ebb745747a5402b4 | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/settings/src/help.cpp | robertdickson/ledger | fd9ba1a3fb2ccbb212561695ebb745747a5402b4 | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... | 25.267857 | 80 | 0.619081 |
dd011de4d4974377abef93788e2e99b1a3e3afcd | 137 | cpp | C++ | src/tests/noCanon.cpp | atonks2/Serial | 555f6d233ee27b0d4c04d01e63876be3755e69bd | [
"MIT"
] | null | null | null | src/tests/noCanon.cpp | atonks2/Serial | 555f6d233ee27b0d4c04d01e63876be3755e69bd | [
"MIT"
] | null | null | null | src/tests/noCanon.cpp | atonks2/Serial | 555f6d233ee27b0d4c04d01e63876be3755e69bd | [
"MIT"
] | null | null | null | #include "serial.h"
int main()
{
Serial gps(4800,"/dev/ttyUSB0",false);
std::cout << gps.serialRead(41) << std::endl;
return 0;
}
| 15.222222 | 46 | 0.620438 |
dd033758b6c3f0807ce81c62ef206680f2338422 | 1,930 | hpp | C++ | experimental/Pomdog.Experimental/Gameplay2D/Transform.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Gameplay2D/Transform.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Gameplay2D/Transform.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog.Experimental/Gameplay/detail/ComponentTypeIndex.hpp"
#include "Pomdog.Experimental/Gameplay/Component.hpp"
#include "Pomdog/Basic/Export.hpp"
#include "Pomdog/Math/Quaternion.hpp"
#include "Pomdog/Math/Radian.hpp"
#i... | 24.43038 | 71 | 0.74715 |
dd03afbf58d3d03eb05365cd7623fa1cef1ac089 | 1,766 | cpp | C++ | bachelor/computer-graphics/Les1/CG1_EdgeTableRow.cpp | Brent-rb/University | caae9c7d8e44bf7589865517f786529b1f171059 | [
"MIT"
] | null | null | null | bachelor/computer-graphics/Les1/CG1_EdgeTableRow.cpp | Brent-rb/University | caae9c7d8e44bf7589865517f786529b1f171059 | [
"MIT"
] | null | null | null | bachelor/computer-graphics/Les1/CG1_EdgeTableRow.cpp | Brent-rb/University | caae9c7d8e44bf7589865517f786529b1f171059 | [
"MIT"
] | null | null | null | // CG1_EdgeTableRow.cpp: implementation of the CG1_EdgeTableRow class.
//
//////////////////////////////////////////////////////////////////////
#include "CG1_EdgeTableRow.h"
#include <stdio.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////////////... | 24.527778 | 93 | 0.460362 |
dd04525b5224e62126bbb901f63b44d59724b3a2 | 12,579 | cpp | C++ | tests/Replication2/ReplicatedState/MaintenanceTest.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | tests/Replication2/ReplicatedState/MaintenanceTest.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | tests/Replication2/ReplicatedState/MaintenanceTest.cpp | LLcat1217/arangodb | 67c51272915699e0a489e1f8d9da786f4226221a | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2021-2021 ArangoDB GmbH, Cologne, Germany
///
/// 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 co... | 40.317308 | 80 | 0.581922 |
dd04eeadcb3d3eec69af42fe91c490728494de2b | 3,977 | cpp | C++ | ch08/8.exercise.05.cpp | 0p3r4t4/PPPUCPP2nd | cf1bd23bb22ee00a77172e43678b7eaa91f592e0 | [
"MIT"
] | 51 | 2017-03-24T06:08:11.000Z | 2022-03-18T00:28:14.000Z | ch08/8.exercise.05.cpp | 0p3r4t4/PPPUCPP2nd | cf1bd23bb22ee00a77172e43678b7eaa91f592e0 | [
"MIT"
] | 1 | 2019-06-23T07:33:42.000Z | 2019-12-12T13:14:04.000Z | ch08/8.exercise.05.cpp | 0p3r4t4/PPPUCPP2nd | cf1bd23bb22ee00a77172e43678b7eaa91f592e0 | [
"MIT"
] | 25 | 2017-04-07T13:22:45.000Z | 2022-03-18T00:28:15.000Z | // 8.exercise.05.cpp
//
// Write two functions that reverse the order of element in a vector<int>.
// For example, 1, 3, 5, 6, 9 becomes 9, 7, 5, 3, 1. The first reverse
// function should produce a new vector with the reverse sequence, leaving the
// original vector unchanged. The other reverse function should rev... | 31.816 | 81 | 0.608499 |
dd050b40b3689ecaa72f8691d1d6f53df4276d02 | 274 | cpp | C++ | source/shared_traits.cpp | phikaczu/logging | c926d9ac72208ae10364adb368e9b39f0c43cbdc | [
"MIT"
] | null | null | null | source/shared_traits.cpp | phikaczu/logging | c926d9ac72208ae10364adb368e9b39f0c43cbdc | [
"MIT"
] | null | null | null | source/shared_traits.cpp | phikaczu/logging | c926d9ac72208ae10364adb368e9b39f0c43cbdc | [
"MIT"
] | null | null | null | #include "shared_traits.h"
#include<cassert>
using namespace logs2::SharedTraits;
AssertCheck::AssertCheck()
: _threadId{ std::this_thread::get_id() }
{
}
void AssertCheck::isSameThread() const
{
assert(std::this_thread::get_id() == _threadId);
}
| 17.125 | 53 | 0.671533 |
dd08360f1d9633daaf49c3bce9979d7835eca5e8 | 6,324 | cpp | C++ | core/src/zxing/qrcode/decoder/BitMatrixParser.cpp | camposm/tinyzxing | ab156e0c7e0602f0b091a1e0a24afdf670c6373e | [
"Apache-2.0"
] | null | null | null | core/src/zxing/qrcode/decoder/BitMatrixParser.cpp | camposm/tinyzxing | ab156e0c7e0602f0b091a1e0a24afdf670c6373e | [
"Apache-2.0"
] | 1 | 2021-09-27T13:16:08.000Z | 2021-09-27T13:16:08.000Z | core/src/zxing/qrcode/decoder/BitMatrixParser.cpp | camposm/tinyzxing | ab156e0c7e0602f0b091a1e0a24afdf670c6373e | [
"Apache-2.0"
] | null | null | null | /*
* BitMatrixParser.cpp
* zxing
*
* Created by Christian Brunschen on 20/05/2008.
* Copyright 2008 ZXing 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 Licens... | 28.232143 | 92 | 0.576534 |
dd085a10754d853dfa6fc05db45c3c43bdb39bf4 | 155 | hpp | C++ | src/utils/assert.hpp | JacobDomagala/Shady | cdb8b07a83d179f58bd70c42957e987ddd201eb4 | [
"MIT"
] | 2 | 2020-10-27T00:16:18.000Z | 2021-03-29T12:59:48.000Z | src/utils/assert.hpp | JacobDomagala/DEngine | cdb8b07a83d179f58bd70c42957e987ddd201eb4 | [
"MIT"
] | 58 | 2020-08-23T21:38:21.000Z | 2021-08-05T16:12:31.000Z | src/utils/assert.hpp | JacobDomagala/Shady | cdb8b07a83d179f58bd70c42957e987ddd201eb4 | [
"MIT"
] | null | null | null | #pragma once
#include <string_view>
namespace shady::utils {
void
Assert(bool assertion, std::string_view logMsg);
} // namespace shady::utils | 15.5 | 49 | 0.703226 |
dd085d6124666640274f9c20f98790de6a10b19f | 2,554 | cpp | C++ | examples/tumor/tumor_main.cpp | Pan-Maciek/iga-ads | 4744829c98cba4e9505c5c996070119e73ba18fa | [
"MIT"
] | 7 | 2018-01-19T00:19:19.000Z | 2021-06-22T00:53:00.000Z | examples/tumor/tumor_main.cpp | Pan-Maciek/iga-ads | 4744829c98cba4e9505c5c996070119e73ba18fa | [
"MIT"
] | 66 | 2021-06-22T22:44:21.000Z | 2022-03-16T15:18:00.000Z | examples/tumor/tumor_main.cpp | Pan-Maciek/iga-ads | 4744829c98cba4e9505c5c996070119e73ba18fa | [
"MIT"
] | 6 | 2017-04-13T19:42:27.000Z | 2022-03-26T18:46:24.000Z | // SPDX-FileCopyrightText: 2015 - 2021 Marcin Łoś <marcin.los.91@gmail.com>
// SPDX-License-Identifier: MIT
#include "ads/simulation.hpp"
#include "tumor.hpp"
#include "vasculature.hpp"
// clang-tidy 12 complains about deleted default constructor not
// initializing some members
//
// NOLINTNEXTLINE(cppcoreguidelines... | 26.884211 | 76 | 0.632733 |
dd0b152d97aca70163eb9763adb4b0c8a2a44997 | 3,748 | cpp | C++ | src/cpp/ws-server/ws-server.cpp | jimba81/qt-virtualkeyboard-server | 8b2093cda28779fc8bc898d5ac9135b8b1cf3003 | [
"Apache-2.0"
] | null | null | null | src/cpp/ws-server/ws-server.cpp | jimba81/qt-virtualkeyboard-server | 8b2093cda28779fc8bc898d5ac9135b8b1cf3003 | [
"Apache-2.0"
] | null | null | null | src/cpp/ws-server/ws-server.cpp | jimba81/qt-virtualkeyboard-server | 8b2093cda28779fc8bc898d5ac9135b8b1cf3003 | [
"Apache-2.0"
] | null | null | null | #include "ws-server.h"
#include "cpp/common/common.h"
#include "cpp/common/util.h"
WsServer::WsServer(QObject *parent) :
QObject(parent)
{
server = new QWebSocketServer("IMR WebSocket Server", QWebSocketServer::NonSecureMode, this);
connect(server, &QWebSocketServer::newConnection, this, &WsServer::slotCl... | 24.986667 | 112 | 0.605656 |
dd0b9b7c456ca5ce3c9b526dde6e385123c9401a | 1,012 | cpp | C++ | src/hdfs_common.cpp | ZEMUSHKA/pydoop | e3d3378ae9921561f6c600c79364c2ad42ec206d | [
"Apache-2.0"
] | 1 | 2017-11-16T02:13:15.000Z | 2017-11-16T02:13:15.000Z | src/hdfs_common.cpp | ZEMUSHKA/pydoop | e3d3378ae9921561f6c600c79364c2ad42ec206d | [
"Apache-2.0"
] | null | null | null | src/hdfs_common.cpp | ZEMUSHKA/pydoop | e3d3378ae9921561f6c600c79364c2ad42ec206d | [
"Apache-2.0"
] | null | null | null | // BEGIN_COPYRIGHT
//
// Copyright 2009-2014 CRS4.
//
// 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 applicab... | 28.111111 | 78 | 0.699605 |
dd0eb99be4447e58a8bfd4d6efe3a0f03c41d8ff | 26,469 | cpp | C++ | libraries/graphic/context.cpp | Max1412/vgraphics | 852141a63b24c975f0ab59d1d4517ea4dc64e3a5 | [
"CC-BY-4.0"
] | 1 | 2021-12-09T14:24:04.000Z | 2021-12-09T14:24:04.000Z | libraries/graphic/context.cpp | Max1412/vgraphics | 852141a63b24c975f0ab59d1d4517ea4dc64e3a5 | [
"CC-BY-4.0"
] | null | null | null | libraries/graphic/context.cpp | Max1412/vgraphics | 852141a63b24c975f0ab59d1d4517ea4dc64e3a5 | [
"CC-BY-4.0"
] | null | null | null | #include <set>
#define GLFW_INCLUDE_VULKAN
#include "Context.h"
#include "imgui/imgui_impl_vulkan.h"
#include "imgui/imgui_impl_glfw.h"
#include "spdlog/sinks/stdout_color_sinks.h"
namespace help
{
VkResult CreateDebugUtilsMessengerEXT(VkInstance instance, const VkDebugUtilsMessengerCreateInfoEXT* pCreateInfo, con... | 41.55259 | 231 | 0.689297 |
dd1068e1623204396bc4ae2d3b64b14cb7c2f6e8 | 1,381 | cpp | C++ | 025_reverseNodesInKGroup/main.cpp | IdLeoO/LC | 445d8f1521d02c8481d590e5af914b6599bf8d7d | [
"MIT"
] | null | null | null | 025_reverseNodesInKGroup/main.cpp | IdLeoO/LC | 445d8f1521d02c8481d590e5af914b6599bf8d7d | [
"MIT"
] | null | null | null | 025_reverseNodesInKGroup/main.cpp | IdLeoO/LC | 445d8f1521d02c8481d590e5af914b6599bf8d7d | [
"MIT"
] | null | null | null | #include "main.hpp"
#include <iostream>
#include <stack>
using namespace std;
ListNode* Solution::reverseKGroup(ListNode* head, int k){
stack<ListNode*> storage;
ListNode* curPtr = head;
if (k == 1){
return head;
}
for (int i = 0; i < k; i++){
if (curPtr == nullptr){
re... | 23.40678 | 57 | 0.539464 |
dd113b5535d1ff6a1a61ff598beeb5c329880ad4 | 871 | cpp | C++ | leddriver/src/ledimage.cpp | freesurfer-rge/picolife | db54c3398baf3fdfab5c72c75a5207b73847f443 | [
"MIT"
] | null | null | null | leddriver/src/ledimage.cpp | freesurfer-rge/picolife | db54c3398baf3fdfab5c72c75a5207b73847f443 | [
"MIT"
] | 7 | 2021-12-25T11:54:10.000Z | 2021-12-27T17:24:30.000Z | leddriver/src/ledimage.cpp | freesurfer-rge/picolife | db54c3398baf3fdfab5c72c75a5207b73847f443 | [
"MIT"
] | null | null | null | #include "leddriver/ledimage.hpp"
namespace LEDDriver
{
LEDImage::LEDImage() : red(std::make_unique<Channel>()),
green(std::make_unique<Channel>()),
blue(std::make_unique<Channel>())
{
this->Clear();
}
void LEDImage::Clear()
{
t... | 27.21875 | 78 | 0.523536 |
dd13f8ef1f5dc809a9358cb3a5be8178d5e380e8 | 726 | cpp | C++ | CD12/Maximum Number of Events That Can Be Attended.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | 4 | 2019-12-12T19:59:50.000Z | 2020-01-20T15:44:44.000Z | CD12/Maximum Number of Events That Can Be Attended.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | CD12/Maximum Number of Events That Can Be Attended.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | // Question Link ---> https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/
class Solution {
public:
static bool cmp(vector<int> &a, vector<int> &b) {
if (a[1] == b[1]) {
return a[0] < b[0];
}
return a[1] < b[1];
}
int maxEvents(vector<v... | 30.25 | 100 | 0.453168 |
dd166f8404be9351b29d0b3ec652e9c95cd2dce7 | 6,584 | cpp | C++ | source/PEST++/src/libs/pestpp_common/TerminationController.cpp | usgs/neversink_workflow | acd61435b8553e38d4a903c8cd7a3afc612446f9 | [
"CC0-1.0"
] | 1 | 2021-02-23T20:47:29.000Z | 2021-02-23T20:47:29.000Z | source/PEST++/src/libs/pestpp_common/TerminationController.cpp | usgs/neversink_workflow | acd61435b8553e38d4a903c8cd7a3afc612446f9 | [
"CC0-1.0"
] | null | null | null | source/PEST++/src/libs/pestpp_common/TerminationController.cpp | usgs/neversink_workflow | acd61435b8553e38d4a903c8cd7a3afc612446f9 | [
"CC0-1.0"
] | 2 | 2020-01-03T17:14:39.000Z | 2020-03-04T14:21:27.000Z | /*
This file is part of PEST++.
PEST++ 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 3 of the License, or
(at your option) any later version.
PEST++ is distributed in the hope that it wi... | 25.71875 | 128 | 0.68226 |
dd1d6b6636cd1bd56bda65e303c3c37afcb999cc | 9,568 | cpp | C++ | Codes/SysMonDlg.cpp | liyuan-rey/SysMon | 38052326d97fd732d36f9313f3415ae9f33fb3c3 | [
"MIT"
] | null | null | null | Codes/SysMonDlg.cpp | liyuan-rey/SysMon | 38052326d97fd732d36f9313f3415ae9f33fb3c3 | [
"MIT"
] | null | null | null | Codes/SysMonDlg.cpp | liyuan-rey/SysMon | 38052326d97fd732d36f9313f3415ae9f33fb3c3 | [
"MIT"
] | null | null | null | // SysMonDlg.cpp : implementation file
//
#include "stdafx.h"
#include "SysMon.h"
#include "SysMonDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define VK_ESCAPE 0x1B
/////////////////////////////////////////////////////////////////////////////... | 23.055422 | 80 | 0.676526 |
dd1d9c969864541580624569ad00c7b04983d2c8 | 2,471 | cpp | C++ | component-tester/src/component-tester.cpp | shawnmharris/tachyon-examples | 0e634b969063ef87186b4863bf71c93b9c512df6 | [
"MIT"
] | null | null | null | component-tester/src/component-tester.cpp | shawnmharris/tachyon-examples | 0e634b969063ef87186b4863bf71c93b9c512df6 | [
"MIT"
] | null | null | null | component-tester/src/component-tester.cpp | shawnmharris/tachyon-examples | 0e634b969063ef87186b4863bf71c93b9c512df6 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <tachyon/component.hpp>
#include <itestcontract.hpp>
using namespace tachyon;
int main()
{
MasterFactory &mf = MasterFactory::Instance();
mf.Manage("component1");
mf.Manage("component2");
// test 1 is implemented in a shared dll
sp<ITestContract> sp1 = mf.Create<ITestContract>("... | 27.455556 | 88 | 0.630109 |
dd1dfe71d762e7da81b590cad1e11600554650b8 | 8,063 | cpp | C++ | WallpapersFrame.cpp | YoshiLeLama/wp_manager | 90a49621c698b3dd3097dce306c276f96e0af639 | [
"MIT"
] | null | null | null | WallpapersFrame.cpp | YoshiLeLama/wp_manager | 90a49621c698b3dd3097dce306c276f96e0af639 | [
"MIT"
] | null | null | null | WallpapersFrame.cpp | YoshiLeLama/wp_manager | 90a49621c698b3dd3097dce306c276f96e0af639 | [
"MIT"
] | null | null | null | //
// Created by Antoine Roumilhac on 24/12/2021.
//
#include "WallpapersFrame.h"
BEGIN_EVENT_TABLE(WallpapersFrame, wxFrame)
EVT_MENU(ADD_FILES, WallpapersFrame::OnAddFiles)
EVT_MENU(DELETE_SELECTED, WallpapersFrame::DeleteSelectedFiles)
EVT_MENU(wxID_EXIT, WallpapersFrame::OnExit)
EV... | 35.519824 | 131 | 0.658812 |
dd1ebe2c18a8823b5181e05b83c5dbcf972340c5 | 14,728 | cpp | C++ | torob/src/moinag.cpp | CARMinesDouai/MutiRobotExplorationPackages | 725f36eaa22adb33be7f5961db1a0f8e50fdadbd | [
"MIT"
] | 7 | 2016-12-10T15:44:00.000Z | 2020-08-27T17:40:11.000Z | torob/src/moinag.cpp | CARMinesDouai/MutiRobotExplorationPackages | 725f36eaa22adb33be7f5961db1a0f8e50fdadbd | [
"MIT"
] | 2 | 2020-04-14T15:19:53.000Z | 2021-01-26T21:26:47.000Z | torob/src/moinag.cpp | CARMinesDouai/MutiRobotExplorationPackages | 725f36eaa22adb33be7f5961db1a0f8e50fdadbd | [
"MIT"
] | 2 | 2017-01-29T03:01:06.000Z | 2021-12-15T14:59:10.000Z | /*
* <one line to give the library's name and an idea of what it does.>
* Copyright (C) 2015 Guillaume L. <guillaume.lozenguez@mines-douai.fr>
*
* 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 Founda... | 32.227571 | 174 | 0.502444 |
dd1f67c1ddda587b369e6747e25dc400b32df9f1 | 2,336 | hh | C++ | src/ui/win32/bindings/MultiLineGridBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 71 | 2018-04-15T13:02:43.000Z | 2022-03-26T11:19:18.000Z | src/ui/win32/bindings/MultiLineGridBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 309 | 2018-04-15T12:10:59.000Z | 2022-01-22T20:13:04.000Z | src/ui/win32/bindings/MultiLineGridBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 17 | 2018-04-17T16:09:31.000Z | 2022-03-04T08:49:03.000Z | #ifndef RA_UI_WIN32_MULTILINEGRIDBINDING_H
#define RA_UI_WIN32_MULTILINEGRIDBINDING_H
#pragma once
#include "GridBinding.hh"
namespace ra {
namespace ui {
namespace win32 {
namespace bindings {
class MultiLineGridBinding : public GridBinding
{
public:
explicit MultiLineGridBinding(ViewModelBase& vmViewModel) noe... | 36.5 | 139 | 0.769692 |
dd200071bfce5c6e220d3a598d1c6775aad5419a | 1,070 | cpp | C++ | Ch 3 Paradigms/Dynamic Programming/Top Down/uva-10616-01Knapsack.cpp | sladewinter/UVa-Online-Judge | 3e8003e8ae5452eed1468be44ae5d7bbcc763dd1 | [
"MIT"
] | null | null | null | Ch 3 Paradigms/Dynamic Programming/Top Down/uva-10616-01Knapsack.cpp | sladewinter/UVa-Online-Judge | 3e8003e8ae5452eed1468be44ae5d7bbcc763dd1 | [
"MIT"
] | null | null | null | Ch 3 Paradigms/Dynamic Programming/Top Down/uva-10616-01Knapsack.cpp | sladewinter/UVa-Online-Judge | 3e8003e8ae5452eed1468be44ae5d7bbcc763dd1 | [
"MIT"
] | null | null | null | //Uva- 10616 - Divisible Group Sums
#include <iostream>
#include <cstring>
using namespace std;
using ll = long long;
int N, Q, D, M;
int arr[200];
ll memo[200][20][10]; //Index,Sum % 20,#Items picked
ll knapsack( int idx, int sum, int m )
{
if( idx + M - m > N ) //Impossible to collect M items
return 0... | 18.448276 | 59 | 0.530841 |
dd237c93e24ce9fe0246c6a0e207899a455714f3 | 2,610 | cpp | C++ | CApp.cpp | abishek-sampath/SDL-GameFramework | 0194540851eeaff6b4563feefb8edae7ca868700 | [
"MIT"
] | null | null | null | CApp.cpp | abishek-sampath/SDL-GameFramework | 0194540851eeaff6b4563feefb8edae7ca868700 | [
"MIT"
] | null | null | null | CApp.cpp | abishek-sampath/SDL-GameFramework | 0194540851eeaff6b4563feefb8edae7ca868700 | [
"MIT"
] | null | null | null | #include "CApp.h"
#undef main
CApp::CApp() {
// SDL resources
window = NULL;
renderer = NULL;
// User Resources
resourceManager = NULL;
running = true;
score = 0;
beginTime = 0;
numb_lives_to_gen = PLAYER_MAX_HEALTH - 2;
generateLives = true;
}
CApp::CApp(SDL_Renderer* ren... | 21.570248 | 122 | 0.586207 |
dd248d32555237459b88abf3d9a3703abb16eac6 | 174 | hpp | C++ | src/nSkinz.hpp | Massimoni/skinchanger | f2638f9cea2fe72340a62cc05d2d3c42cacc59ab | [
"MIT"
] | null | null | null | src/nSkinz.hpp | Massimoni/skinchanger | f2638f9cea2fe72340a62cc05d2d3c42cacc59ab | [
"MIT"
] | null | null | null | src/nSkinz.hpp | Massimoni/skinchanger | f2638f9cea2fe72340a62cc05d2d3c42cacc59ab | [
"MIT"
] | 1 | 2019-05-23T11:09:42.000Z | 2019-05-23T11:09:42.000Z | #pragma once
#include "SDK.hpp"
#include "RecvProxyHook.hpp"
extern VMTHook* g_client_hook;
extern VMTHook* g_game_event_manager_hook;
extern RecvPropHook* g_sequence_hook; | 21.75 | 42 | 0.821839 |
dd25f6c5d6c0376cd11b5e8d0bba88ddfba6a7d8 | 421 | cpp | C++ | src/math/agg_final.cpp | tarkmeper/numpgsql | a5098af9b7c4d88564092c0a4809029aab9f614f | [
"MIT"
] | 5 | 2019-04-08T15:25:32.000Z | 2019-12-07T16:31:55.000Z | src/math/agg_final.cpp | tarkmeper/numpgsql | a5098af9b7c4d88564092c0a4809029aab9f614f | [
"MIT"
] | null | null | null | src/math/agg_final.cpp | tarkmeper/numpgsql | a5098af9b7c4d88564092c0a4809029aab9f614f | [
"MIT"
] | null | null | null | #include "agg.hpp"
extern "C" {
PG_FUNCTION_INFO_V1(internal_to_array);
Datum internal_to_array(PG_FUNCTION_ARGS);
}
Datum internal_to_array(PG_FUNCTION_ARGS) {
//TODO trigger destructor
Assert(AggCheckCallContext(fcinfo, NULL));
if (PG_ARGISNULL(0)) {
PG_RETURN_NULL();
} else {
AggInternal* st... | 21.05 | 63 | 0.712589 |
dd269092067c738ec28eaa4435a0ab0069323c62 | 77,457 | cpp | C++ | IGC/Compiler/CISACodeGen/LinkTessControlShaderMCFPass.cpp | dkurt/intel-graphics-compiler | 247cfb9ca64bc187ee9cf3b437ad184fb2d5c471 | [
"MIT"
] | null | null | null | IGC/Compiler/CISACodeGen/LinkTessControlShaderMCFPass.cpp | dkurt/intel-graphics-compiler | 247cfb9ca64bc187ee9cf3b437ad184fb2d5c471 | [
"MIT"
] | null | null | null | IGC/Compiler/CISACodeGen/LinkTessControlShaderMCFPass.cpp | dkurt/intel-graphics-compiler | 247cfb9ca64bc187ee9cf3b437ad184fb2d5c471 | [
"MIT"
] | null | null | null | /*===================== begin_copyright_notice ==================================
Copyright (c) 2017 Intel Corporation
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, includi... | 41.069459 | 151 | 0.56279 |
dd27326be8d22edbd4a9ba089e777615d84611af | 4,217 | tpp | C++ | uppdev/TopicTest/topic++/src/Ntlvsstl.en-us.tpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/TopicTest/topic++/src/Ntlvsstl.en-us.tpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/TopicTest/topic++/src/Ntlvsstl.en-us.tpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | TITLE("NTLvsSTL")
TOPIC_TEXT(
"[ $$0,0#00000000000000000000000000000000:Default][l288;i704;a17;O9;~~~.992; $$1,"
"0#10431211400427159095818037425705:param][a83;*R6 $$2,5#3131016247420302412518841"
"7583966:caption][b83;* $$3,5#07864147445237544204411237157677:title][b167;a42;C $"
"$4,6#4002741442464382318226934940... | 78.092593 | 84 | 0.751008 |
dd2c81e44b3caf19cc2cbec4b4667358fca2c594 | 3,917 | cpp | C++ | Source/WebCore/html/RadioNodeList.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/html/RadioNodeList.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/html/RadioNodeList.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2012 Motorola Mobility, Inc. All rights reserved.
* Copyright (C) 2014-2020 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code... | 33.478632 | 93 | 0.697728 |
dd2f39398626d6035f8b8ec8dcb0379927b7c5cc | 1,555 | cpp | C++ | src/utils.cpp | atlochowski/harbour-powietrze | e47bf1f397d81a9f69363a44e785ca9248ecef17 | [
"BSD-3-Clause"
] | 2 | 2019-10-24T12:43:18.000Z | 2019-12-22T20:59:18.000Z | src/utils.cpp | atlochowski/harbour-powietrze | e47bf1f397d81a9f69363a44e785ca9248ecef17 | [
"BSD-3-Clause"
] | 9 | 2019-07-18T19:39:14.000Z | 2021-06-13T18:29:55.000Z | src/utils.cpp | atlochowski/harbour-powietrze | e47bf1f397d81a9f69363a44e785ca9248ecef17 | [
"BSD-3-Clause"
] | 5 | 2019-10-24T12:49:15.000Z | 2021-05-17T10:47:42.000Z | #include "utils.h"
#include <notification.h>
#include <iostream>
void Utils::simpleNotification(QString header, QString body, QString function, QVariantList parameters)
{
Notification notification;
notification.setCategory("powietrze.update");
notification.setSummary(header);
notification.setBody(body)... | 31.1 | 103 | 0.48746 |
dd33a90e8cc809ea9c75c6242e9d70d25c283785 | 3,655 | cxx | C++ | private/inet/mshtml/src/other/scrtoid/misc.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/mshtml/src/other/scrtoid/misc.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/mshtml/src/other/scrtoid/misc.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Trident
// Copyright (C) Microsoft Corporation, 1997 - 1998.
//
// File: misc.cxx
//
// Contents: misc helpers for scriptoid handlers
//
//-----------------------------------------------------------------... | 24.046053 | 86 | 0.468947 |
dd35531bf699f1b942f91eee1b38b6f15f2bdb4b | 69 | hpp | C++ | include/components/battle/Fainted.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | 6 | 2018-08-05T21:45:23.000Z | 2021-10-30T19:48:34.000Z | include/components/battle/Fainted.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | null | null | null | include/components/battle/Fainted.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | 1 | 2021-11-01T20:15:38.000Z | 2021-11-01T20:15:38.000Z | #ifndef FAINTED_HPP
#define FAINTED_HPP
struct Fainted { };
#endif
| 9.857143 | 19 | 0.753623 |
dd37a9ec1f567d6efebbf27b6a8daabc460e3d5a | 4,472 | cpp | C++ | 601-700/636-Exclusive_Time_of_Functions-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | 1 | 2018-10-02T22:44:52.000Z | 2018-10-02T22:44:52.000Z | 601-700/636-Exclusive_Time_of_Functions-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | 601-700/636-Exclusive_Time_of_Functions-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | // Given the running logs of n functions that are executed in a nonpreemptive
// single threaded CPU, find the exclusive time of these functions.
// Each function has a unique id, start from 0 to n-1. A function may be called
// recursively or by another function.
// A log is a string has this format : function_id:st... | 30.421769 | 80 | 0.503801 |
dd38657946b816e7b1dfe0382561956675f3d3bd | 376 | cpp | C++ | DP/DP_Basic_in_Class/Maximum_Subarray_Sum.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | DP/DP_Basic_in_Class/Maximum_Subarray_Sum.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | DP/DP_Basic_in_Class/Maximum_Subarray_Sum.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int dp(int arr[],int n)
{
int res=0,ans=0;
for(int i=0;i<n;i++)
{
res = max(arr[i],res+arr[i]);
ans = max(ans,res);
}
return ans;
}
int main()
{
int n,arr[1000];
scanf("%d",&n);
for(int i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
printf("%d\n",dp(arr,n));
re... | 10.444444 | 31 | 0.518617 |
dd3b3c9771b3885e6a182e1137e291c6d2a4d353 | 541 | hpp | C++ | src/color/gray/akin/lab.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 120 | 2015-12-31T22:30:14.000Z | 2022-03-29T15:08:01.000Z | src/color/gray/akin/lab.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 6 | 2016-08-22T02:14:56.000Z | 2021-11-06T22:39:52.000Z | src/color/gray/akin/lab.hpp | ehtec/color | aa6d8c796303d1f3cfd7361978bfa58eac808b6e | [
"Apache-2.0"
] | 23 | 2016-02-03T01:56:26.000Z | 2021-09-28T16:36:27.000Z | #ifndef color_gray_akin_lab
#define color_gray_akin_lab
#include "../../generic/akin/gray.hpp"
#include "../category.hpp"
#include "../../lab/category.hpp"
namespace color
{
namespace akin
{
template
<
typename tag_name
,::color::constant::lab::reference_enum lab_refer... | 19.321429 | 77 | 0.593346 |
dd3db5d0b991ef5bb0432c8f80547d9095427916 | 1,279 | hpp | C++ | pgm.hpp | aravindev/PGM-improc | a38ae612fa093f24875c46ba824321721c4ab917 | [
"Apache-2.0"
] | 1 | 2015-04-02T05:26:11.000Z | 2015-04-02T05:26:11.000Z | pgm.hpp | aravindev/PGM-improc | a38ae612fa093f24875c46ba824321721c4ab917 | [
"Apache-2.0"
] | null | null | null | pgm.hpp | aravindev/PGM-improc | a38ae612fa093f24875c46ba824321721c4ab917 | [
"Apache-2.0"
] | null | null | null | /*
This header file has been created by
Name : Aravind E Vijayan
B110487EC
National Institute of Technology Calicut
*/
#ifndef PGM_HPP
#define PGM_HPP
struct table //image structure
{
int **data;
int cols;
int rows;
};
/*
function to read pgm image
Usage :
parameter must be the path of image passed... | 27.804348 | 117 | 0.763878 |
dd3dfe96c626cba5ef08dd7a1d50a578b5654795 | 1,383 | cpp | C++ | source/requests/EdgarRequests.cpp | Jde-cpp/TwsWebSocket | 099ef66e2481bd12019d634ba8125b17d9c2d67e | [
"MIT"
] | null | null | null | source/requests/EdgarRequests.cpp | Jde-cpp/TwsWebSocket | 099ef66e2481bd12019d634ba8125b17d9c2d67e | [
"MIT"
] | null | null | null | source/requests/EdgarRequests.cpp | Jde-cpp/TwsWebSocket | 099ef66e2481bd12019d634ba8125b17d9c2d67e | [
"MIT"
] | null | null | null | #include "EdgarRequests.h"
#include "../../../Private/source/markets/edgar/Edgar.h"
#include "../../../Private/source/markets/edgar/Form13F.h"
namespace Jde::Markets::TwsWebSocket
{
void EdgarRequests::Filings( Cik cik, ProcessArg&& inputArg )noexcept
{
std::thread( [cik, arg=move(inputArg)]()
{
try
{
... | 27.66 | 92 | 0.647144 |
dd3f5a22d08de4ccd846d871c43757f0f2945b2c | 8,007 | cpp | C++ | Game/Game/Game/Export/Export_Lua_Scene.cpp | CBE7F1F65/fb43b70cb3d36ad8b8ee3a9aed9c6493 | da25260dc8128ed66b48d391c738eb15134d7d4f | [
"Zlib",
"MIT-0",
"MIT"
] | null | null | null | Game/Game/Game/Export/Export_Lua_Scene.cpp | CBE7F1F65/fb43b70cb3d36ad8b8ee3a9aed9c6493 | da25260dc8128ed66b48d391c738eb15134d7d4f | [
"Zlib",
"MIT-0",
"MIT"
] | null | null | null | Game/Game/Game/Export/Export_Lua_Scene.cpp | CBE7F1F65/fb43b70cb3d36ad8b8ee3a9aed9c6493 | da25260dc8128ed66b48d391c738eb15134d7d4f | [
"Zlib",
"MIT-0",
"MIT"
] | null | null | null | #include "Export_Lua_Scene.h"
#include "Export_Lua_Const.h"
#include "../Header/SceneConst.h"
#include "../Classes/LoadingScene.h"
#include "../Classes/TitleScene.h"
#include "../Classes/HelpScene.h"
#include "../Classes/StageSelectScene.h"
#include "../Classes/MissionSelectScene.h"
#include "../Classes/Sto... | 28.393617 | 145 | 0.690396 |
dd436f744aa5f2ac3f40b87939557997b4564269 | 605 | cpp | C++ | Tree/(LEETCODE)BST_from_preorderTraversal.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | 1 | 2020-08-27T06:59:52.000Z | 2020-08-27T06:59:52.000Z | Tree/(LEETCODE)BST_from_preorderTraversal.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | Tree/(LEETCODE)BST_from_preorderTraversal.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | class Solution {
public:
TreeNode* constructBST(vector<int> preorder,int low,int high){
if(low>=preorder.size() || low>high)
return NULL;
TreeNode* root=new TreeNode(preorder[low]);
if(high==low)
return root;
int i;
for(i=low;i<=high;i++)
if(preorder[... | 25.208333 | 66 | 0.585124 |
dd4991383ae5a7f0cb1828b5206684bafedca6f5 | 5,205 | cpp | C++ | src/essentials.cpp | lockpicker1/NumMethods | e4a3beef4e584e69bd84d072645f7f18895730c6 | [
"MIT"
] | null | null | null | src/essentials.cpp | lockpicker1/NumMethods | e4a3beef4e584e69bd84d072645f7f18895730c6 | [
"MIT"
] | null | null | null | src/essentials.cpp | lockpicker1/NumMethods | e4a3beef4e584e69bd84d072645f7f18895730c6 | [
"MIT"
] | null | null | null | /* Essential functions that will be used throughout the whole project */
#include "essentials.hpp"
using namespace std;
using namespace ess;
ess::variableTable::variableTable () {//Constructor of variableTable classs
ess::variableTable::numberOfVariables=0;
ess::variableTable::nameOfVariable.clear();
ess::varia... | 25.26699 | 132 | 0.620365 |
dd50ebbb858c8453eb9a4bd8aabf945f87c3bd67 | 1,716 | hpp | C++ | HugeCTR/include/pybind/data_source_wrapper.hpp | mikemckiernan/HugeCTR | 1a0a618f9848eb908e9d1265c555fba9924d2861 | [
"Apache-2.0"
] | 130 | 2021-10-11T11:55:28.000Z | 2022-03-31T21:53:07.000Z | HugeCTR/include/pybind/data_source_wrapper.hpp | Teora/HugeCTR | c55a63401ad350669ccfcd374aefd7a5fc879ca2 | [
"Apache-2.0"
] | 72 | 2021-10-09T04:59:09.000Z | 2022-03-31T11:27:54.000Z | HugeCTR/include/pybind/data_source_wrapper.hpp | Teora/HugeCTR | c55a63401ad350669ccfcd374aefd7a5fc879ca2 | [
"Apache-2.0"
] | 29 | 2021-11-03T22:35:01.000Z | 2022-03-30T13:11:59.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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 ... | 41.853659 | 97 | 0.7162 |
dd53adb8829fe1a6c7df45a709fbe0d46c630245 | 2,221 | cc | C++ | base/base_paths_android.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | base/base_paths_android.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | base/base_paths_android.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright (c) 2012 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.
// Defines base::PathProviderAndroid which replaces base::PathProviderPosix for
// Android in base/path_service.cc.
#include <limits.h>
#include <uni... | 33.651515 | 80 | 0.697434 |
dd542d215fe0fe0fb9d485c8e756b68b4c9ebd9e | 2,151 | cpp | C++ | problems/week03-first_hit/src/algorithm.cpp | haeggee/algolab | 176a7d4efbbfb2842f46e93250be00d3b59e0ec3 | [
"MIT"
] | null | null | null | problems/week03-first_hit/src/algorithm.cpp | haeggee/algolab | 176a7d4efbbfb2842f46e93250be00d3b59e0ec3 | [
"MIT"
] | null | null | null | problems/week03-first_hit/src/algorithm.cpp | haeggee/algolab | 176a7d4efbbfb2842f46e93250be00d3b59e0ec3 | [
"MIT"
] | null | null | null | //1
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
typedef CGAL::Exact_predicates_exact_constructions_kernel K;
typedef K::Point_2 P;
typedef K::Segment_2 S;
typedef K::Ray_2 R;
using namespace std;
double floor_to_double(const K::FT& x)
{
double a = std::floor(CGAL::to_double(x));
while (a > x) a -= ... | 29.875 | 111 | 0.55881 |
dd552ff3fb052cc6a64cc3f993fc688091cbefe2 | 862 | cpp | C++ | Notebook/src-bkp/Highly Decomposite Number.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | Notebook/src-bkp/Highly Decomposite Number.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | Notebook/src-bkp/Highly Decomposite Number.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | bool p[MAXN];
vector<int> primes;
void build(void) {
memset(p, true, sizeof(p));
for (int i = 2; i <= MAXN; i++) {
if (p[i]) {
primes.push_back(i);
for (int j = i * i; j <= MAXN; j += i) {
p[j] = false;
}
}
}
}
int func(Int x) {
int ans = 1;
for (int i = 0; i < (int) primes.size() && x > 1; i+... | 15.392857 | 64 | 0.474478 |
dd55c9a76e5fab0d929abdd83067aeef115e8bf4 | 64 | cc | C++ | MCDataProducts/src/CrvDigiMC.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | MCDataProducts/src/CrvDigiMC.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | MCDataProducts/src/CrvDigiMC.cc | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #include "MCDataProducts/inc/CrvDigiMC.hh"
namespace mu2e
{
}
| 10.666667 | 42 | 0.75 |
dd577fbba4ad66aad44dc64db78a2025c5131ea1 | 478 | cpp | C++ | main.cpp | duongnb09/Davim_TAC | 9be613a7ab68e2ba13e9a0b67a0279d403fe1ecb | [
"MIT"
] | 1 | 2021-04-11T14:17:32.000Z | 2021-04-11T14:17:32.000Z | main.cpp | duongnb09/Davim_TAC | 9be613a7ab68e2ba13e9a0b67a0279d403fe1ecb | [
"MIT"
] | 1 | 2021-11-03T12:49:50.000Z | 2021-11-03T12:49:50.000Z | main.cpp | duongnb09/Davim_TAC | 9be613a7ab68e2ba13e9a0b67a0279d403fe1ecb | [
"MIT"
] | 2 | 2020-09-29T07:12:18.000Z | 2021-07-05T15:41:56.000Z | /*=========================================================================
Program: Flow Visualization
Module: main.cpp
Copyright (c) 2018 Duong B. Nguyen
All rights reserved.
See LICENSE for details
=========================================================================*/
#include "main... | 20.782609 | 75 | 0.433054 |
dd5bd5d2272934b306850d72505e29339fcaf099 | 2,006 | cc | C++ | cpp/functions/run/run_benchmark_santos.cc | michieluithetbroek/A-MDVRP | fe7739f3961ddb25db8f64ec20472915d3c95168 | [
"MIT"
] | 23 | 2020-04-09T16:33:23.000Z | 2022-03-21T16:41:11.000Z | cpp/functions/run/run_benchmark_santos.cc | michieluithetbroek/A-MDVRP | fe7739f3961ddb25db8f64ec20472915d3c95168 | [
"MIT"
] | 2 | 2020-04-10T11:55:28.000Z | 2020-04-10T12:11:51.000Z | cpp/functions/run/run_benchmark_santos.cc | michieluithetbroek/A-MDVRP | fe7739f3961ddb25db8f64ec20472915d3c95168 | [
"MIT"
] | 10 | 2020-05-28T18:59:52.000Z | 2022-03-10T13:32:44.000Z | #include "./../../main.ih"
/*
* This functions runs all the instances from Santos
*
* TODO remove bool deterministic
*/
void run_benchmark_santos(int idx_instance, bool deterministic, int rep)
{
bool const withoutGurobi = false;
if (not deterministic)
throw string("Opportunistic run is not allowed! (run... | 24.168675 | 77 | 0.621137 |
dd5f44f135378685091c3e4105c9a09dec58f000 | 2,639 | cpp | C++ | src/main.cpp | finnff/IPASS-19 | b65ad79282a63c1f0db3addfaf865e99677ecd2c | [
"MIT"
] | null | null | null | src/main.cpp | finnff/IPASS-19 | b65ad79282a63c1f0db3addfaf865e99677ecd2c | [
"MIT"
] | null | null | null | src/main.cpp | finnff/IPASS-19 | b65ad79282a63c1f0db3addfaf865e99677ecd2c | [
"MIT"
] | null | null | null | #include "mpu6050.hpp"
#include "pongresources.hpp"
int main(int argc, char **argv) {
namespace target = hwlib::target;
// Intialize OLED display
auto scl = target::pin_oc(target::pins::d10);
auto sda = target::pin_oc(target::pins::d11);
auto i2c_bus = hwlib::i2c_bus_bit_banged_scl_sda(scl, sda);
auto w ... | 29.322222 | 78 | 0.535809 |
e578239b4948fa914b39f0e674029a09d13b6d54 | 7,285 | cpp | C++ | src/engine/drawSys.cpp | karwler/BKGraph | 1b65f82d4c44e3982cf6cef775e88a16c857d6e3 | [
"WTFPL"
] | null | null | null | src/engine/drawSys.cpp | karwler/BKGraph | 1b65f82d4c44e3982cf6cef775e88a16c857d6e3 | [
"WTFPL"
] | null | null | null | src/engine/drawSys.cpp | karwler/BKGraph | 1b65f82d4c44e3982cf6cef775e88a16c857d6e3 | [
"WTFPL"
] | 2 | 2017-11-09T16:14:39.000Z | 2018-02-08T19:09:40.000Z | #include "world.h"
// FONT SET
FontSet::FontSet(const string& path) :
file(path)
{
// check if font can be loaded
TTF_Font* tmp = TTF_OpenFont(file.c_str(), Default::fontTestHeight);
if (!tmp)
throw "Couldn't open font " + file + '\n' + TTF_GetError();
// get approximate height scale factor
int size;
TTF_Si... | 33.883721 | 183 | 0.700069 |
e57c906c68ba77d31d2b02e65cc1fbd6aa245ee8 | 4,123 | cpp | C++ | solution/solutionthread.cpp | vitkorob/studentprojects | 3b071eabec33f9e27eec81eaf5df339276c039be | [
"MIT"
] | null | null | null | solution/solutionthread.cpp | vitkorob/studentprojects | 3b071eabec33f9e27eec81eaf5df339276c039be | [
"MIT"
] | null | null | null | solution/solutionthread.cpp | vitkorob/studentprojects | 3b071eabec33f9e27eec81eaf5df339276c039be | [
"MIT"
] | null | null | null | #include "solutionthread.h"
solutionThread::solutionThread()
{
metRKu = 1;
gam = 0.2;
g = 9.81;
L = 2;
del = 0.9;
p2 = 4;
eps = 0.0005;
x0 = 2;
v0 = 3;
t = 30;
step = 0.01;
}
double solutionThread::p(double y2)
{
return y2;
}
double solutionThread::q(double x2, double... | 25.140244 | 110 | 0.489207 |
e57c9863ca18340b608f0fa9bc4715893eb932b2 | 1,303 | cxx | C++ | Qt/Components/pqColorOverlay.cxx | xj361685640/ParaView | 0a27eef5abc5a0c0472ab0bc806c4db881156e64 | [
"Apache-2.0",
"BSD-3-Clause"
] | 815 | 2015-01-03T02:14:04.000Z | 2022-03-26T07:48:07.000Z | Qt/Components/pqColorOverlay.cxx | xj361685640/ParaView | 0a27eef5abc5a0c0472ab0bc806c4db881156e64 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2015-04-28T20:10:37.000Z | 2021-08-20T18:19:01.000Z | Qt/Components/pqColorOverlay.cxx | xj361685640/ParaView | 0a27eef5abc5a0c0472ab0bc806c4db881156e64 | [
"Apache-2.0",
"BSD-3-Clause"
] | 328 | 2015-01-22T23:11:46.000Z | 2022-03-14T06:07:52.000Z | #include "pqColorOverlay.h"
#include <QPainter>
//-----------------------------------------------------------------------------
pqColorOverlay::pqColorOverlay(QWidget* parent)
: QWidget(parent)
{
setAttribute(Qt::WA_NoSystemBackground);
setAttribute(Qt::WA_TransparentForMouseEvents);
}
//----------------------... | 25.54902 | 79 | 0.403684 |
e57eee5672315a1c7762eba6e21dd57c0a8e7435 | 128 | hpp | C++ | Vendor/GLM/glm/ext/vector_uint1.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | 2 | 2022-01-11T21:15:31.000Z | 2022-02-22T21:14:33.000Z | Vendor/GLM/glm/ext/vector_uint1.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | Vendor/GLM/glm/ext/vector_uint1.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:936046e1e48adf16a2daa297a69e3318537c55f39572a05efbae9aca1479cf89
size 711
| 32 | 75 | 0.882813 |
e57f1c150401e191e72e2d45d0f8c099ca968370 | 1,190 | cpp | C++ | bin-inorder-preorder.cpp | ananyas2501/CS202 | 5cbfa83f1f93dec7b2fb8c84afd4142ff0f29fe1 | [
"MIT"
] | null | null | null | bin-inorder-preorder.cpp | ananyas2501/CS202 | 5cbfa83f1f93dec7b2fb8c84afd4142ff0f29fe1 | [
"MIT"
] | null | null | null | bin-inorder-preorder.cpp | ananyas2501/CS202 | 5cbfa83f1f93dec7b2fb8c84afd4142ff0f29fe1 | [
"MIT"
] | 1 | 2020-10-07T16:32:53.000Z | 2020-10-07T16:32:53.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNod... | 22.884615 | 87 | 0.582353 |
e57fbaf38376bfb6b8788e60265427cd6c14091e | 3,882 | hpp | C++ | include/cynodelic/mulinum/detail/split_helpers.hpp | cynodelic/mulinum | fc7b9e750aadaede2cee8d840e65fa3832787764 | [
"BSL-1.0"
] | null | null | null | include/cynodelic/mulinum/detail/split_helpers.hpp | cynodelic/mulinum | fc7b9e750aadaede2cee8d840e65fa3832787764 | [
"BSL-1.0"
] | null | null | null | include/cynodelic/mulinum/detail/split_helpers.hpp | cynodelic/mulinum | fc7b9e750aadaede2cee8d840e65fa3832787764 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 Álvaro Ceballos
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
/**
* @file split_helpers.hpp
*
* @brief Helpers for the `split` metafunction.
*/
#ifndef CYNODELIC_MULINUM_DETAIL_SPLIT_HELPERS_HPP... | 21.687151 | 124 | 0.676455 |
e582a8d0fc49f20af9374fe9a7e4fda2278e60e7 | 129 | cc | C++ | tensorflow-yolo-ios/dependencies/google/protobuf/stubs/atomicops_internals_x86_msvc.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/google/protobuf/stubs/atomicops_internals_x86_msvc.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/google/protobuf/stubs/atomicops_internals_x86_msvc.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:516879d2c1b04ff8b7ba32487c8446e3241805e4352f374533aa6756863b4cad
size 4366
| 32.25 | 75 | 0.883721 |
e5847e79f40e20540105d7d68c2b19de80dc5ceb | 4,115 | cpp | C++ | ufora/FORA/TypedFora/ABI/MutableVectorHandleCodegen.cpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/FORA/TypedFora/ABI/MutableVectorHandleCodegen.cpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/FORA/TypedFora/ABI/MutableVectorHandleCodegen.cpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora 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/licen... | 25.401235 | 83 | 0.710814 |
e586cb9547fbb7a410e2af42433496cd9ae6ab0c | 3,417 | cxx | C++ | private/inet/mshtml/src/site/ole/frame.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/mshtml/src/site/ole/frame.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/mshtml/src/site/ole/frame.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //+---------------------------------------------------------------------
//
// File: frame.cxx
//
// Contents: frame tag implementation
//
// Classes: CFrameSite, etc..
//
//------------------------------------------------------------------------
#include "headers.hxx"
#ifndef X_FORMKRNL_HXX... | 26.083969 | 80 | 0.458589 |
e5887ce1debe7449e1edd420a14fcb83002b21a4 | 12,076 | cpp | C++ | angsd/abcGL.cpp | peterdfields/angsd-wrapper | 199abf0b513a763114511f08dfce742305f41a91 | [
"MIT"
] | 6 | 2015-07-25T02:05:07.000Z | 2021-05-27T08:37:01.000Z | angsd/abcGL.cpp | peterdfields/angsd-wrapper | 199abf0b513a763114511f08dfce742305f41a91 | [
"MIT"
] | 60 | 2015-01-10T20:46:25.000Z | 2018-09-19T22:32:02.000Z | angsd/abcGL.cpp | peterdfields/angsd-wrapper | 199abf0b513a763114511f08dfce742305f41a91 | [
"MIT"
] | 8 | 2015-04-12T09:37:58.000Z | 2017-04-25T19:30:39.000Z | /*
thorfinn thorfinn@binf.ku.dk dec17 2012
part of angsd
This class will calculate the GL in 4 differnt ways
1) SAMtools 0.1.16+ version
2) Simple GATK model
3) SOAPsnp
4) SYK
4 different output formats are supplied
1) binary 10xdouble persample
2) beagle output (requires estimation of maj... | 25.748401 | 187 | 0.622226 |
e588ba30a9a4c0dc44a82cb38413c711dd3b5fc2 | 14,602 | cpp | C++ | src/qt-console/tray-monitor/runjob.cpp | tech-niche-biz/bacula-9.4.4 | 5e74458b612354f6838652dac9ddff94be1bbce6 | [
"BSD-2-Clause"
] | null | null | null | src/qt-console/tray-monitor/runjob.cpp | tech-niche-biz/bacula-9.4.4 | 5e74458b612354f6838652dac9ddff94be1bbce6 | [
"BSD-2-Clause"
] | null | null | null | src/qt-console/tray-monitor/runjob.cpp | tech-niche-biz/bacula-9.4.4 | 5e74458b612354f6838652dac9ddff94be1bbce6 | [
"BSD-2-Clause"
] | null | null | null | /*
Bacula(R) - The Network Backup Solution
Copyright (C) 2000-2018 Kern Sibbald
The original author of Bacula is Kern Sibbald, with contributions
from many others, a complete list can be found in the file AUTHORS.
You may use this file and others of this release according to the
license defined in ... | 28.631373 | 157 | 0.571566 |
e58c9e92abb9149e44fdef1940720e0adde09a69 | 4,425 | hpp | C++ | ramus/patch/ips.hpp | qwertymodo/Mercurial-Magic | e5ce65510d12ac04e7ebea4ce11d200276baa141 | [
"ISC"
] | 2 | 2019-01-20T13:05:10.000Z | 2021-03-31T14:09:03.000Z | ramus/patch/ips.hpp | qwertymodo/Mercurial-Magic | e5ce65510d12ac04e7ebea4ce11d200276baa141 | [
"ISC"
] | null | null | null | ramus/patch/ips.hpp | qwertymodo/Mercurial-Magic | e5ce65510d12ac04e7ebea4ce11d200276baa141 | [
"ISC"
] | 1 | 2018-10-12T02:47:57.000Z | 2018-10-12T02:47:57.000Z | #pragma once
#include <nall/file.hpp>
#include <nall/filemap.hpp>
#include <nall/stdint.hpp>
#include <nall/string.hpp>
namespace ramus {
struct ipspatch {
inline auto modify(const uint8_t* data, uint size) -> bool;
inline auto source(const uint8_t* data, uint size) -> void;
inline auto target(uint8_t* data, u... | 25.726744 | 81 | 0.660339 |
e5916831f922f5efaa3a87ce01db382c07a90c38 | 2,472 | hpp | C++ | Assignments/P01/Menu.hpp | Landon-Brown1/2143-OOP-Brown | fded2b021b588bced3ba2a5c67e8e29694d42b2e | [
"MIT"
] | null | null | null | Assignments/P01/Menu.hpp | Landon-Brown1/2143-OOP-Brown | fded2b021b588bced3ba2a5c67e8e29694d42b2e | [
"MIT"
] | null | null | null | Assignments/P01/Menu.hpp | Landon-Brown1/2143-OOP-Brown | fded2b021b588bced3ba2a5c67e8e29694d42b2e | [
"MIT"
] | null | null | null | /*
* AUTHOR: Landon Brown
* FILE TITLE: Menu.hpp
* FILE DESCRIPTION: Menu for the beginning of the game
* DUE DATE: TBD
* DATE CREATED: 03/26/2020
*/
#include <iostream>
#include <string>
using namespace std;
struct Menu{
Menu(){
}
void printIntro(){
cout << endl << " @@-----------... | 51.5 | 101 | 0.222492 |
e59532543eb5ced40994ebd6ca67ef20a52ec6f1 | 4,093 | hpp | C++ | include/mtao/geometry/prune_vertices.hpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | null | null | null | include/mtao/geometry/prune_vertices.hpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | 4 | 2020-04-18T16:16:05.000Z | 2020-04-18T16:17:36.000Z | include/mtao/geometry/prune_vertices.hpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | null | null | null | #pragma once
#include "mtao/geometry/kdtree.hpp"
#include <map>
#include "mtao/iterator/enumerate.hpp"
#include "mtao/eigen/stl2eigen.hpp"
namespace mtao { namespace geometry {
//expects a mtao::vector<mtao::Vector<T,D>>
template <typename Container
, typename T
>
auto prune(const Cont... | 38.252336 | 122 | 0.469094 |
e59611b4bc72740b511887ce25eecfd36758d720 | 439 | hpp | C++ | security/include/InvalidKeyException.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 27 | 2019-04-27T00:51:22.000Z | 2022-03-30T04:05:44.000Z | security/include/InvalidKeyException.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 9 | 2020-05-03T12:17:50.000Z | 2021-10-15T02:18:47.000Z | security/include/InvalidKeyException.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 1 | 2019-04-16T01:45:36.000Z | 2019-04-16T01:45:36.000Z | #ifndef __OBOTCHA_INVALID_KEY_EXCEPTION_HPP__
#define __OBOTCHA_INVALID_KEY_EXCEPTION_HPP__
#include <fstream>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "Object.hpp"
#include "Exception.hpp"
#include "String.hpp"
namespace obotcha {
DECLARE_EXCEPTION(InvalidKeyException){
public:
... | 17.56 | 55 | 0.779043 |
e59d226aad84cfaaabe3b77e6cc3312910d3b4bd | 45,566 | cpp | C++ | libBKPLPlot/plbuf.cpp | rsuchecki/biokanga | ef0fa1cf58fb2903ae18d14e5b0f84de7b7e744e | [
"MIT"
] | null | null | null | libBKPLPlot/plbuf.cpp | rsuchecki/biokanga | ef0fa1cf58fb2903ae18d14e5b0f84de7b7e744e | [
"MIT"
] | null | null | null | libBKPLPlot/plbuf.cpp | rsuchecki/biokanga | ef0fa1cf58fb2903ae18d14e5b0f84de7b7e744e | [
"MIT"
] | null | null | null | // $Id: plbuf.c 12636 2013-10-26 20:47:49Z airwin $
//
// Handle plot buffer.
//
// Copyright (C) 1992 Maurice LeBrun
// Copyright (C) 2004 Alan W. Irwin
// Copyright (C) 2005 Thomas J. Duck
// Copyright (C) 2006 Jim Dishaw
//
// This file is part of PLplot.
//
// PLplot is free software; you can ... | 30.976207 | 135 | 0.510073 |
e59fdf2108f8a9cc91b033460bb0e43df2c9850d | 1,251 | cpp | C++ | misc/longincsubseq.cpp | plilja/algolib | 84b1e3115f18bac02632b6bef4ca11c3392e76a4 | [
"Apache-2.0"
] | null | null | null | misc/longincsubseq.cpp | plilja/algolib | 84b1e3115f18bac02632b6bef4ca11c3392e76a4 | [
"Apache-2.0"
] | null | null | null | misc/longincsubseq.cpp | plilja/algolib | 84b1e3115f18bac02632b6bef4ca11c3392e76a4 | [
"Apache-2.0"
] | null | null | null | #include "longincsubseq.h"
#include <cmath>
using std::vector;
/*
* Do a binary search for the integer j. Such that lowerBound<=j<=upperBound
* and that maximizes seq[M[j]] while keeping seq[M[j]]<x.
*/
int binSearch(vector<int> &M, const vector<int> &seq, int x, int lowerBound, int upperBound)
{
int lo = low... | 22.745455 | 92 | 0.54996 |
e59fe0557fffaea876c7d5aecde27a3afe0f5c40 | 1,034 | cpp | C++ | codeforces/N - Egg Drop/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/N - Egg Drop/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/N - Egg Drop/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: JU_AAA: prdx9_abir, aniks2645, kzvd4729 created: Sep/15/2017 22:21
* solution_verdict: Accepted language: GNU C++14
* run... | 30.411765 | 111 | 0.352998 |
e5a236aecc80419a14be0d7747cb1aec36bfe2c4 | 2,314 | hpp | C++ | include/ESPSerial.hpp | willson556/avr-2807 | 6bbb73072d94ab0cae2808d67aed5651c91a74b6 | [
"MIT"
] | null | null | null | include/ESPSerial.hpp | willson556/avr-2807 | 6bbb73072d94ab0cae2808d67aed5651c91a74b6 | [
"MIT"
] | null | null | null | include/ESPSerial.hpp | willson556/avr-2807 | 6bbb73072d94ab0cae2808d67aed5651c91a74b6 | [
"MIT"
] | null | null | null | #pragma once
#include "Transport.hpp"
#include <driver/uart.h>
#include <esp_timer.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
namespace AVR
{
class ESPSerial : public Transport
{
public:
ESPSerial(uart_port_t port, uart_config_t config, size_t buffer_size, int timeout, int tx_pin, int rx_pin,... | 26.295455 | 136 | 0.627053 |
e5a54cd2ebd54f02c76a28d3131a827eeba66201 | 31,884 | cpp | C++ | enduser/windows.com/wuau/wuauclt/customlb.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/windows.com/wuau/wuauclt/customlb.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/windows.com/wuau/wuauclt/customlb.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "pch.h"
#pragma hdrstop
void SetMYLBAcc(HWND hListWin);
void DrawMYLBFocus(HWND hListWin, LPDRAWITEMSTRUCT lpdis, MYLBFOCUS enCurFocus, INT nCurFocusId);
void DrawItem(LPDRAWITEMSTRUCT lpdis, BOOL fSelectionDisabled);
void DrawTitle(HDC hDC, LBITEM * plbi, RECT rc);
void DrawRTF(HDC hDC, LBITEM * plb... | 30.164617 | 188 | 0.59475 |
e5a9272774f3c2af98b49b6bc3803df1d49c988e | 3,815 | cpp | C++ | src/renderEffects/auraCompositing.cpp | mfirmin/xray-vision | c40fc300d95d55c15f0dffa484b7123eb69238b5 | [
"MIT"
] | 1 | 2021-09-13T20:22:29.000Z | 2021-09-13T20:22:29.000Z | src/renderEffects/auraCompositing.cpp | mfirmin/xray-vision | c40fc300d95d55c15f0dffa484b7123eb69238b5 | [
"MIT"
] | null | null | null | src/renderEffects/auraCompositing.cpp | mfirmin/xray-vision | c40fc300d95d55c15f0dffa484b7123eb69238b5 | [
"MIT"
] | 1 | 2021-09-13T20:22:31.000Z | 2021-09-13T20:22:31.000Z | #include "auraCompositing.hpp"
#include "gl/shaderUtils.hpp"
#include "light/light.hpp"
#include <array>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <string>
#include <sstream>
AuraCompositingEffect::AuraCompositingEffect(int w, int h) :
width(w), height(h)
{
}
void AuraCompositingEffect::initi... | 23.404908 | 103 | 0.627785 |
e5b01e0b2838076f577fed8c236caabd12886b77 | 1,409 | cpp | C++ | src/drone_marker_pub.cpp | i3drobotics/kimera_rviz_markers | e1de992b98dc28f508376dc5736e48efa894c90d | [
"MIT"
] | 2 | 2019-09-22T09:20:56.000Z | 2019-12-12T11:40:03.000Z | src/drone_marker_pub.cpp | i3drobotics/kimera_rviz_markers | e1de992b98dc28f508376dc5736e48efa894c90d | [
"MIT"
] | 2 | 2020-01-16T12:56:04.000Z | 2020-05-21T17:19:44.000Z | src/drone_marker_pub.cpp | i3drobotics/kimera_rviz_markers | e1de992b98dc28f508376dc5736e48efa894c90d | [
"MIT"
] | 5 | 2019-09-23T18:16:40.000Z | 2021-07-03T14:21:29.000Z | #include "kimera_rviz_markers/kimera_rviz_markers.h"
int main(int argc, char** argv) {
// Initialize ROS node
ros::init(argc, argv, "drone_marker_pub");
ros::NodeHandle nh_;
ros::NodeHandle nh_private_ ("~");
krm::DroneParams quad_params;
nh_private_.getParam("frame_id", quad_params.frame_id);
nh_priva... | 32.767442 | 80 | 0.726757 |
e5b2c5518f46c1344445a67cd64dc67eb029a489 | 5,117 | cpp | C++ | test/block.cpp | MaskRay/asteria | 56a9251f5bb80b92e5aff25eac145f8cd2495096 | [
"BSD-3-Clause"
] | null | null | null | test/block.cpp | MaskRay/asteria | 56a9251f5bb80b92e5aff25eac145f8cd2495096 | [
"BSD-3-Clause"
] | null | null | null | test/block.cpp | MaskRay/asteria | 56a9251f5bb80b92e5aff25eac145f8cd2495096 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of Asteria.
// Copyleft 2018, LH_Mouse. All wrongs reserved.
#include "_test_init.hpp"
#include "../asteria/src/block.hpp"
#include "../asteria/src/xpnode.hpp"
#include "../asteria/src/statement.hpp"
#include "../asteria/src/global_context.hpp"
#include "../asteria/src/executive_context.hpp"
usin... | 49.679612 | 127 | 0.676959 |
e5b43b0d04d451301c947834e44ca57613a98c10 | 1,829 | cpp | C++ | KeylightDiscover.cpp | failex234/MyKeylight | 88ba49c378ccabf07920c1b571ce15c3aa9e5bd2 | [
"MIT"
] | null | null | null | KeylightDiscover.cpp | failex234/MyKeylight | 88ba49c378ccabf07920c1b571ce15c3aa9e5bd2 | [
"MIT"
] | null | null | null | KeylightDiscover.cpp | failex234/MyKeylight | 88ba49c378ccabf07920c1b571ce15c3aa9e5bd2 | [
"MIT"
] | null | null | null | #include <netinet/in.h>
#include <sys/socket.h>
#include <vector>
#include <arpa/inet.h>
#include "Keylight.h"
#include "thirdparty/zeroconf.hpp"
void* get_in_addr(sockaddr_storage* sa)
{
if (sa->ss_family == AF_INET)
return &reinterpret_cast<sockaddr_in*>(sa)->sin_addr;
if (sa->ss_family == AF_INET6)... | 30.483333 | 120 | 0.594861 |
e5b47aedd92161daa823caa61d248330e8358f2f | 17,987 | cpp | C++ | src/app/screens/application/main_menu_screen.cpp | lili2012/BarbersAndRebarbs | 8a3c10cebded55dabaf6f8673735c6f3606cb4af | [
"MIT"
] | 4 | 2016-04-26T20:25:07.000Z | 2021-12-15T06:58:57.000Z | src/app/screens/application/main_menu_screen.cpp | lili2012/BarbersAndRebarbs | 8a3c10cebded55dabaf6f8673735c6f3606cb4af | [
"MIT"
] | 2 | 2016-07-29T22:52:12.000Z | 2016-09-22T08:30:29.000Z | src/app/screens/application/main_menu_screen.cpp | lili2012/BarbersAndRebarbs | 8a3c10cebded55dabaf6f8673735c6f3606cb4af | [
"MIT"
] | 1 | 2020-10-31T10:20:32.000Z | 2020-10-31T10:20:32.000Z | // The MIT License (MIT)
// Copyright (c) 2015 nabijaczleweli
// 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... | 44.743781 | 158 | 0.666148 |
e5b4ebd57e1b88ac6da16124de2c7ea201245b2a | 59,846 | cpp | C++ | src/bitmask.cpp | leannejdong/MGOSDT | 29559e5feb19490e77b11d0382558cd8529feba4 | [
"BSD-3-Clause"
] | 1 | 2022-03-09T03:17:35.000Z | 2022-03-09T03:17:35.000Z | src/bitmask.cpp | leannejdong/MGOSDT | 29559e5feb19490e77b11d0382558cd8529feba4 | [
"BSD-3-Clause"
] | null | null | null | src/bitmask.cpp | leannejdong/MGOSDT | 29559e5feb19490e77b11d0382558cd8529feba4 | [
"BSD-3-Clause"
] | null | null | null | #include "bitmask.hpp"
// ********************************
// ** Function Module Definition **
// ********************************
std::vector< std::vector<codeblock> > Bitmask::ranges = std::vector< std::vector<codeblock> >();
std::vector<size_t> Bitmask::hashes = std::vector<size_t>();
std::vector<char> Bitmask::co... | 40.246133 | 135 | 0.56764 |
e5b512b0fc43c8350dd4d4f782937f3cc617d7dd | 29,034 | cpp | C++ | B2G/gecko/gfx/thebes/gfxPlatformFontList.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/gfx/thebes/gfxPlatformFontList.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/gfx/thebes/gfxPlatformFontList.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* 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://mozilla.org/MPL/2.0/. */
#ifdef MOZ_LOGGING
#define FORCE_PR_... | 33.257732 | 114 | 0.661604 |
e5b5c80434acda90be4e02bfcc27736f0c17d656 | 2,910 | cpp | C++ | 11. DP 2/Maximum_sum_rect.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | 11. DP 2/Maximum_sum_rect.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | 11. DP 2/Maximum_sum_rect.cpp | bhavinvirani/Competitive-Programming-coding-ninjas | 5e50ae7ad3fc969a4970f91f8d895c986353bb71 | [
"MIT"
] | null | null | null | /* Maximum Sum Rectangle
Send Feedback
Given a 2D array, find the maximum sum rectangle in it. In other words find maximum sum over all rectangles in the matrix.
Input Format:
First line of input will contain T(number of test case), each test case follows as.
First line contains 2 numbers n and m denoting number of row... | 24.453782 | 165 | 0.434021 |
e5c0f68c90c0999dfe19a01d29d9c0ff54282c05 | 3,491 | cpp | C++ | src/OptPlan/Opt_SnowflakeInterestingOrders.cpp | fsaintjacques/cstore | 3300a81c359c4a48e13ad397e3eb09384f57ccd7 | [
"BSD-2-Clause"
] | 14 | 2016-07-11T04:08:09.000Z | 2022-03-11T05:56:59.000Z | src/OptPlan/Opt_SnowflakeInterestingOrders.cpp | ibrarahmad/cstore | 3300a81c359c4a48e13ad397e3eb09384f57ccd7 | [
"BSD-2-Clause"
] | null | null | null | src/OptPlan/Opt_SnowflakeInterestingOrders.cpp | ibrarahmad/cstore | 3300a81c359c4a48e13ad397e3eb09384f57ccd7 | [
"BSD-2-Clause"
] | 13 | 2016-06-01T10:41:15.000Z | 2022-01-06T09:01:15.000Z | /*
* Opt_SnowflakeInterestingOrders.h
* OptDev
*
* Created by Nga Tran on 11/10/05.
* Questions, ask Nga Tran at nga@brandeis.edu or Tien Hoang at hoangt@brandeis.edu
*
* This class keeps interesting orders of a snowflake query
*/
#include "Opt_SnowflakeInterestingOrders.h"
// Default constructor
Opt_Sn... | 22.967105 | 106 | 0.696649 |
e5c3467258e82f5fb0ba2c296149d9a250bf4d61 | 1,964 | cpp | C++ | tools/faodel-stress/serdes/SerdesStringObject.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | tools/faodel-stress/serdes/SerdesStringObject.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | tools/faodel-stress/serdes/SerdesStringObject.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <iostream>
#include "lunasa/common/GenericSequentialDataBundle.hh"
#include "SerdesStringObject.hh"
u... | 31.174603 | 98 | 0.709776 |
e5c3df8ba4595b3c658c146a3ff58059345fd197 | 679 | cpp | C++ | src/classes/Ciudad.cpp | mattaereal/AntColonyOptimization | b45df28cb181395d290d6c6accbc9297fa863aff | [
"MIT"
] | null | null | null | src/classes/Ciudad.cpp | mattaereal/AntColonyOptimization | b45df28cb181395d290d6c6accbc9297fa863aff | [
"MIT"
] | null | null | null | src/classes/Ciudad.cpp | mattaereal/AntColonyOptimization | b45df28cb181395d290d6c6accbc9297fa863aff | [
"MIT"
] | null | null | null | /*
* Ciudad.cpp
*
* Created on: May 3, 2014
* Author: matt
*/
#include "Ciudad.h"
Ciudad::Ciudad(double c, string n, double p) {
this->pheromone = p;
this->cost = c;
this->name = n;
}
Ciudad::Ciudad() {
this->cost = 0;
this->pheromone = 0;
this->name = "Undefined, please define city";
}
Ciudad::~Ci... | 13.58 | 46 | 0.630339 |
e5c71a4a32057faabff0ea40bcba8665a95d7538 | 2,072 | cpp | C++ | android-31/android/net/vcn/VcnGatewayConnectionConfig_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/net/vcn/VcnGatewayConnectionConfig_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/net/vcn/VcnGatewayConnectionConfig_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JLongArray.hpp"
#include "../ipsec/ike/IkeTunnelConnectionParams.hpp"
#include "./VcnGatewayConnectionConfig.hpp"
#include "../../../JString.hpp"
#include "./VcnGatewayConnectionConfig_Builder.hpp"
namespace android::net::vcn
{
// Fields
// QJniObject forward
VcnGatewayConnectionConfig_Builder:... | 31.876923 | 143 | 0.770753 |
e5caa02a9570fe3d651f75716711e14ad46223c2 | 1,559 | cpp | C++ | src/materials/HomogeneousMedia.cpp | ibfernandes/NarvalEngine | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | [
"MIT"
] | 6 | 2020-02-06T03:30:25.000Z | 2021-10-12T11:38:24.000Z | src/materials/HomogeneousMedia.cpp | ibfernandes/NarvalEngine | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | [
"MIT"
] | 1 | 2021-07-29T17:38:23.000Z | 2021-07-29T17:38:23.000Z | src/materials/HomogeneousMedia.cpp | ibfernandes/NarvalEngine | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | [
"MIT"
] | 1 | 2020-02-14T06:42:03.000Z | 2020-02-14T06:42:03.000Z | #include "materials/HomogeneousMedia.h"
namespace narvalengine {
HomogeneousMedia::HomogeneousMedia(glm::vec3 scattering, glm::vec3 absorption, float density) {
this->scattering = scattering;
this->absorption = absorption;
this->extinction = absorption + scattering;
this->density = density;
}
HomogeneousM... | 27.350877 | 97 | 0.695318 |
e5cdc4d1f569a0ed885f165863170e5e1a0ebb24 | 764 | cpp | C++ | InsertionSortList.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | InsertionSortList.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | InsertionSortList.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* insertionSortList(ListNode* head) {
ListNode *new_head = NULL;
while (head) {
ListNode *next =... | 27.285714 | 80 | 0.458115 |
e5ce2a278b7fa537fb6b659eb8eef03be5b92c98 | 10,538 | cpp | C++ | Powertools/SysInfo.cpp | saintsrowmods/SaintsRow2Tools | 38db36fcabe892959e936b7c259c9ca1e3cf4003 | [
"MIT"
] | null | null | null | Powertools/SysInfo.cpp | saintsrowmods/SaintsRow2Tools | 38db36fcabe892959e936b7c259c9ca1e3cf4003 | [
"MIT"
] | null | null | null | Powertools/SysInfo.cpp | saintsrowmods/SaintsRow2Tools | 38db36fcabe892959e936b7c259c9ca1e3cf4003 | [
"MIT"
] | null | null | null | #include <intrin.h>
#include <tchar.h>
#include <vector>
#include <windows.h>
#include "SysInfo.h"
#include "Globals.h"
#include <powrprof.h>
#pragma comment(lib, "powrprof.lib")
ULONG crc32_table[256];
int SR2_EXE_CRC = 0;
VOID WINAPI LogSystemInfo()
{
WriteToLog(_T("SysInfo"), _T("Detecting Process... | 31.740964 | 168 | 0.633991 |
e5d5698fd37e77a6821d26a04bb9c8aa4ce06e25 | 48 | hpp | C++ | include/EnglishLogicConfig.hpp | mikhov-ivan/english-logic | 1554cb42d816bc8446ec3be3ba35509fb3dfe0d0 | [
"MIT"
] | null | null | null | include/EnglishLogicConfig.hpp | mikhov-ivan/english-logic | 1554cb42d816bc8446ec3be3ba35509fb3dfe0d0 | [
"MIT"
] | null | null | null | include/EnglishLogicConfig.hpp | mikhov-ivan/english-logic | 1554cb42d816bc8446ec3be3ba35509fb3dfe0d0 | [
"MIT"
] | null | null | null | #define VERSION_MAJOR 1
#define VERSION_MINOR 0
| 16 | 23 | 0.833333 |
e5d5f4730db4ae23fed4f1331cfe1f7b949c1554 | 4,806 | hh | C++ | 3DVision_SourceCode_Group12/IsoExMod/IsoEx/Extractors/ExtendedMarchingCubesT.hh | kunal71091/Depth_Normal_Fusion | 407e204abfbd6c8efe2f98a07415bd623ad84422 | [
"MIT"
] | 1 | 2019-10-23T06:32:40.000Z | 2019-10-23T06:32:40.000Z | 3DVision_SourceCode_Group12/IsoExMod/IsoEx/Extractors/ExtendedMarchingCubesT.hh | kunal71091/Depth_Normal_Fusion | 407e204abfbd6c8efe2f98a07415bd623ad84422 | [
"MIT"
] | null | null | null | 3DVision_SourceCode_Group12/IsoExMod/IsoEx/Extractors/ExtendedMarchingCubesT.hh | kunal71091/Depth_Normal_Fusion | 407e204abfbd6c8efe2f98a07415bd623ad84422 | [
"MIT"
] | 1 | 2021-09-23T03:35:30.000Z | 2021-09-23T03:35:30.000Z | /*===========================================================================*\
* *
* IsoEx *
* Copyright (C) 2002 by Computer Graphics Group, RWTH Aachen *
* ... | 38.142857 | 104 | 0.445901 |
e5d8081d82ed686cf3cc2ee5be3492a853de7911 | 3,909 | hpp | C++ | include/mbgl/style/filter.hpp | TanJay/mapbox-gl-native | 6348fe9f4acccce65d1396aa9eab79e6c44bcfc2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/mbgl/style/filter.hpp | TanJay/mapbox-gl-native | 6348fe9f4acccce65d1396aa9eab79e6c44bcfc2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | include/mbgl/style/filter.hpp | TanJay/mapbox-gl-native | 6348fe9f4acccce65d1396aa9eab79e6c44bcfc2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <mbgl/util/variant.hpp>
#include <mbgl/util/feature.hpp>
#include <mbgl/util/geometry.hpp>
#include <string>
#include <vector>
#include <tuple>
namespace mbgl {
namespace style {
class Filter;
class NullFilter {
public:
friend bool operator==(const NullFilter&, const NullFilter&) {
... | 22.210227 | 103 | 0.665643 |
e5d9066ad1106be9e446fbc5f940183ea2859206 | 3,455 | cpp | C++ | src/OpcUaStackServer/AddressSpaceModel/BaseNodeClass.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | src/OpcUaStackServer/AddressSpaceModel/BaseNodeClass.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | src/OpcUaStackServer/AddressSpaceModel/BaseNodeClass.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | /*
Copyright 2015-2017 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorge... | 19.971098 | 86 | 0.754269 |
e5db1ceefa47fb1c63edd6f59d89695fab5ebf8a | 1,860 | hpp | C++ | code/include/boids2D/Boid.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | 4 | 2016-06-24T09:22:18.000Z | 2019-06-13T13:50:53.000Z | code/include/boids2D/Boid.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | null | null | null | code/include/boids2D/Boid.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | 2 | 2016-06-10T12:46:17.000Z | 2018-10-14T06:37:21.000Z | #ifndef BOID_HPP
#define BOID_HPP
#include <glm/glm.hpp>
#include <memory>
#include <vector>
#include "BoidType.hpp"
/**
* @class Boid
* @brief Parent class for a Boid (can be rooted or movable)
*/
class Boid
{
public:
/**
* @brief Constructor for a Boid
* @param[in] location The initial position
* ... | 19.375 | 62 | 0.639247 |
e5db32d10e0d6bb07f5501200886eda9f3445bcb | 1,433 | cxx | C++ | direct/src/plugin/run_p3dpython.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | direct/src/plugin/run_p3dpython.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | direct/src/plugin/run_p3dpython.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: run_p3dpython.cxx
// Created by: drose (29Aug09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You sho... | 39.805556 | 78 | 0.571528 |
e5dbc06954d6a35ea13235b91c158246ea1a534a | 287 | cpp | C++ | DarkestTowerServer/DarkestTowerServer/Fighter.cpp | OztGod/DarkestTowerServer | 65043e1e7b158727f7f6ad7c008f1f2847174542 | [
"MIT"
] | null | null | null | DarkestTowerServer/DarkestTowerServer/Fighter.cpp | OztGod/DarkestTowerServer | 65043e1e7b158727f7f6ad7c008f1f2847174542 | [
"MIT"
] | 2 | 2015-09-23T17:17:52.000Z | 2015-09-23T18:16:46.000Z | DarkestTowerServer/DarkestTowerServer/Fighter.cpp | OztGod/DarkestTowerServer | 65043e1e7b158727f7f6ad7c008f1f2847174542 | [
"MIT"
] | null | null | null | #include "Fighter.h"
#include "FighterAttack.h"
#include "Charge.h"
Fighter::Fighter(int idx)
:Hero(HeroClass::FIGHTER, 17 + rand() % 4, 5 + rand() % 2, idx)
{
skills.push_back(SkillInfo(std::make_unique<FighterAttack>()));
skills.push_back(SkillInfo(std::make_unique<Charge>()));
}
| 26.090909 | 64 | 0.700348 |
e5de1c12a0f2f37847a3bf7b8f1b83a25aa37ca3 | 202 | hpp | C++ | addons/CBRN_sounds/sounds/assaultboy/cfgVehicles.hpp | ASO-TheM/ChemicalWarfare | 51322934ef1da7ba0f3bb04c1d537767d8e48cc4 | [
"MIT"
] | 4 | 2018-04-28T16:09:21.000Z | 2021-08-24T12:51:55.000Z | addons/CBRN_sounds/sounds/assaultboy/cfgVehicles.hpp | ASO-TheM/ChemicalWarfare | 51322934ef1da7ba0f3bb04c1d537767d8e48cc4 | [
"MIT"
] | 29 | 2018-04-01T23:31:33.000Z | 2020-01-02T17:02:11.000Z | addons/CBRN_sounds/sounds/assaultboy/cfgVehicles.hpp | ASO-TheM/ChemicalWarfare | 51322934ef1da7ba0f3bb04c1d537767d8e48cc4 | [
"MIT"
] | 10 | 2018-07-13T15:02:06.000Z | 2021-04-06T17:12:11.000Z | class Sound_CBRN_cough_assaultboy:Sound_CBRN_coughBase {sound = "CBRN_cough_assaultboy";};
class Sound_CBRN_coughMuffled_assaultboy:Sound_CBRN_coughMuffledBase {sound = "CBRN_coughMuffled_assaultboy";}; | 101 | 111 | 0.876238 |
e5de8c7bde5e7838158f776a68a38781533229f6 | 8,252 | cpp | C++ | catkin_ws/src/control_stack/src/sim/simulator_node.cpp | VishnuPrem/multi_robot_restaurant | 6aea83a3c7acd9b7d25e1a2c6e05ef3a5c28a876 | [
"MIT"
] | 7 | 2020-06-23T23:34:33.000Z | 2020-12-11T20:08:11.000Z | catkin_ws/src/control_stack/src/sim/simulator_node.cpp | VishnuPrem/multi_robot_restaurant | 6aea83a3c7acd9b7d25e1a2c6e05ef3a5c28a876 | [
"MIT"
] | null | null | null | catkin_ws/src/control_stack/src/sim/simulator_node.cpp | VishnuPrem/multi_robot_restaurant | 6aea83a3c7acd9b7d25e1a2c6e05ef3a5c28a876 | [
"MIT"
] | 4 | 2020-09-02T20:17:22.000Z | 2020-10-19T01:51:29.000Z | // Copyright 2019 kvedder@seas.upenn.edu
// School of Engineering and Applied Sciences,
// University of Pennsylvania
//
//
// 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 restrict... | 37.853211 | 80 | 0.708434 |
e5e2f8c12b0619c93f7c1c593f6b0041157ba9ff | 28,540 | cpp | C++ | src/TinyTinyJPG.cpp | avrock123/ttjpg | eb1be2f389653f9056b035211cb8c0c3e09a42d1 | [
"BSD-3-Clause"
] | null | null | null | src/TinyTinyJPG.cpp | avrock123/ttjpg | eb1be2f389653f9056b035211cb8c0c3e09a42d1 | [
"BSD-3-Clause"
] | null | null | null | src/TinyTinyJPG.cpp | avrock123/ttjpg | eb1be2f389653f9056b035211cb8c0c3e09a42d1 | [
"BSD-3-Clause"
] | null | null | null | /*
TinyTinyJPG library
Copyright (c) 2011, Rasmus Neckelmann (neckelmann@gmail.com)
All rights reserved.
This source code is released under the terms of the BSD license; see the
file LICENSE.TXT for details.
*/
#include <math.h>
#if defined(EMMINTRIN)
#include <emmintrin.h>
#endif
#include "TinyTinyJP... | 32.431818 | 136 | 0.516468 |
e5e7a30ebbffc75b417222539fae251a92732333 | 2,747 | cpp | C++ | Editor/gui/InspectorWidget/widget/impl/CameraComponentWidget.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/InspectorWidget/widget/impl/CameraComponentWidget.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/InspectorWidget/widget/impl/CameraComponentWidget.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | #include "CameraComponentWidget.h"
#include <QVBoxLayout>
#include <QHBoxLayout>
namespace editor::impl {
CameraComponentWidget::CameraComponentWidget(QWidget* parent)
: QWidget(parent)
, m_Camera(nullptr)
, m_Projection(nullptr)
, m_ProjectionLabel(nullptr)
, m_IsActiveCamera(nullptr)
, m_... | 25.201835 | 103 | 0.69312 |