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
908b760caceee96667e33459d10e09fa0cb5b640
501
cpp
C++
Versuch07/Add.cpp
marvinklimke/rwth-prit1
dc070a5caa3ebd6e7604345a2c4d898d6442be96
[ "MIT" ]
1
2021-07-12T10:01:50.000Z
2021-07-12T10:01:50.000Z
Versuch07/Add.cpp
marvinklimke/rwth-prit1
dc070a5caa3ebd6e7604345a2c4d898d6442be96
[ "MIT" ]
null
null
null
Versuch07/Add.cpp
marvinklimke/rwth-prit1
dc070a5caa3ebd6e7604345a2c4d898d6442be96
[ "MIT" ]
null
null
null
/* * Add.cpp * * Created on: 02.05.2016 * Author: mklimke */ /** * \file Add.cpp * \brief This file contains the method definitions for Add-class. */ #include "Add.h" Add::Add(Expression* summand1, Expression* summand2) : left(summand1), right(summand2) { } Add::~Add() { delete left; delete right; }...
14.735294
86
0.60479
marvinklimke
908e482e4512c43e8cb68f893b57c508a9a6df1f
1,706
hpp
C++
include/boost/url/rfc/host_rule.hpp
vgrigoriu/url
8911d05c35123f978e90321fea863385b63525d4
[ "BSL-1.0" ]
null
null
null
include/boost/url/rfc/host_rule.hpp
vgrigoriu/url
8911d05c35123f978e90321fea863385b63525d4
[ "BSL-1.0" ]
2
2022-01-14T23:51:59.000Z
2022-02-19T19:28:35.000Z
include/boost/url/rfc/host_rule.hpp
vgrigoriu/url
8911d05c35123f978e90321fea863385b63525d4
[ "BSL-1.0" ]
null
null
null
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail 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) // // Official repository: https://github.com/CPPAlliance/url // #ifndef BOOST_URL_R...
21.871795
79
0.654748
vgrigoriu
9095adbe4f61d9514c5a5658cdfd658e8ee8d613
7,407
cc
C++
ash/autotest_private_api_utils.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
ash/autotest_private_api_utils.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
ash/autotest_private_api_utils.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
// Copyright 2019 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 "ash/public/cpp/autotest_private_api_utils.h" #include "ash/app_list/app_list_controller_impl.h" #include "ash/frame/non_client_frame_view_ash.h...
35.104265
80
0.717024
iridium-browser
9095dddb129847e6a32ffdff5b625ebaf97fca09
9,139
cpp
C++
EVB-2/IS_EVB-2/src/main.cpp
ycdtosa/inertial-sense-sdk
4317aba8f3a87187125b44f1b2ccdd64e31ffeec
[ "MIT" ]
null
null
null
EVB-2/IS_EVB-2/src/main.cpp
ycdtosa/inertial-sense-sdk
4317aba8f3a87187125b44f1b2ccdd64e31ffeec
[ "MIT" ]
null
null
null
EVB-2/IS_EVB-2/src/main.cpp
ycdtosa/inertial-sense-sdk
4317aba8f3a87187125b44f1b2ccdd64e31ffeec
[ "MIT" ]
null
null
null
/* MIT LICENSE Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
32.99278
460
0.658387
ycdtosa
90960b1bf3754291437e7a15a3ecad2378ed7eb3
2,339
cpp
C++
VigenerFrequencyAnalysis.cpp
baa-lamb/Kritografia01-Vigener_Frequency_Analysis
28634658969892711be3d8e1187aa34aa6d1e9c1
[ "MIT" ]
null
null
null
VigenerFrequencyAnalysis.cpp
baa-lamb/Kritografia01-Vigener_Frequency_Analysis
28634658969892711be3d8e1187aa34aa6d1e9c1
[ "MIT" ]
null
null
null
VigenerFrequencyAnalysis.cpp
baa-lamb/Kritografia01-Vigener_Frequency_Analysis
28634658969892711be3d8e1187aa34aa6d1e9c1
[ "MIT" ]
null
null
null
#include "VigenerFrequencyAnalysis.h" VigenerFrequencyAnalysis::VigenerFrequencyAnalysis(std::string pathIn, std::string pathOut, std::string pathExample, int keySize) { finEncrypt_.open(pathIn); finExample_.open(pathExample); foutOutput_.open(pathOut); ...
33.898551
115
0.598119
baa-lamb
909636dcae0e0a32d1cdf0ff3f84fc33c4e83185
3,794
cpp
C++
src/client/graphical/gui/gui_button.cpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
6
2018-05-11T23:16:02.000Z
2019-06-13T01:35:07.000Z
src/client/graphical/gui/gui_button.cpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
33
2018-05-11T14:12:22.000Z
2022-03-12T00:55:25.000Z
src/client/graphical/gui/gui_button.cpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
1
2018-12-06T23:39:55.000Z
2018-12-06T23:39:55.000Z
#include <chrono> #include <client/graphical/gui/gui_button.hpp> using namespace familyline::graphics::gui; using namespace familyline::input; Button::Button(unsigned width, unsigned height, std::string text) : width_(width), height_(height), label_(Label{1, 1, ""}) { // We set the text after we set the resiz...
31.616667
95
0.653927
arthurmco
909752389e1656b7a63f577d4df90759c3bd825b
4,743
cc
C++
tensorflow/core/platform/file_system_helper.cc
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/core/platform/file_system_helper.cc
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
10
2021-08-03T08:42:38.000Z
2022-01-03T03:29:12.000Z
tensorflow/core/platform/file_system_helper.cc
Arushacked/tensorflow
9abd61ae0b2d239d3060cdd3d46b54a105159828
[ "Apache-2.0" ]
28
2020-02-10T07:03:06.000Z
2022-01-12T11:19:20.000Z
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
36.206107
80
0.660131
Arushacked
90983a837d2b7730f7e5ed007ab2428911176269
377
cpp
C++
core/src/main/cpp/cv/Output.cpp
CJBuchel/NeuralNet
946ad04dacbd36ad2a7bd7489bc5d562897c06a1
[ "MIT" ]
1
2021-04-20T08:51:47.000Z
2021-04-20T08:51:47.000Z
core/src/main/cpp/cv/Output.cpp
CJBuchel/NeuralNet
946ad04dacbd36ad2a7bd7489bc5d562897c06a1
[ "MIT" ]
null
null
null
core/src/main/cpp/cv/Output.cpp
CJBuchel/NeuralNet
946ad04dacbd36ad2a7bd7489bc5d562897c06a1
[ "MIT" ]
null
null
null
#include "cv/Output.h" void Output::display(Image *image) { if (image->data.empty()) { std::cerr << "Display Error: Image empty" << std::endl; } else { // Temp (imshow doesn't work without GUI. << Coprocessor error) #ifdef COPROC // Use other means of displaying image. (Web Stream) #else cv::imshow(i...
23.5625
66
0.639257
CJBuchel
90987ed250dfc06d8a845394343cb85ff058e03c
55,600
cpp
C++
src/game/server/tf/player_vs_environment/tf_populators.cpp
TF2V/Tf2Vintage
983d652c338dc017dca51f5bc4eee1a3d4b7ac2e
[ "Unlicense" ]
null
null
null
src/game/server/tf/player_vs_environment/tf_populators.cpp
TF2V/Tf2Vintage
983d652c338dc017dca51f5bc4eee1a3d4b7ac2e
[ "Unlicense" ]
null
null
null
src/game/server/tf/player_vs_environment/tf_populators.cpp
TF2V/Tf2Vintage
983d652c338dc017dca51f5bc4eee1a3d4b7ac2e
[ "Unlicense" ]
null
null
null
//========= Copyright � Valve LLC, All rights reserved. ======================= // // Purpose: // // $NoKeywords: $ //============================================================================= #include "cbase.h" #include "nav_mesh/tf_nav_mesh.h" #include "tf_team.h" #include "tf_obj_teleporter.h" #include "tf_obj_...
27.228208
345
0.581691
TF2V
90988967ffcba91de30826913ed51391104c44d4
1,437
cc
C++
lib/dfuds-trie.cc
rockeet/taiju
90f152d5e66b1741d35b9d871f7a5db68699d48d
[ "BSD-3-Clause" ]
null
null
null
lib/dfuds-trie.cc
rockeet/taiju
90f152d5e66b1741d35b9d871f7a5db68699d48d
[ "BSD-3-Clause" ]
null
null
null
lib/dfuds-trie.cc
rockeet/taiju
90f152d5e66b1741d35b9d871f7a5db68699d48d
[ "BSD-3-Clause" ]
null
null
null
#include <taiju/dfuds-trie.h> namespace taiju { UInt64 DfudsTrie::size() const { return sizeof(TrieType) + sizeof(UInt64) + dfuds_.size() + labels_.size() + is_terminals_.size(); } void DfudsTrie::clear() { num_keys_ = 0; dfuds_.clear(); labels_.clear(); is_terminals_.clear(); } void DfudsTrie::swap(DfudsTri...
18.907895
59
0.707029
rockeet
9098f2d6d40bea864601fdade28d0b3dff6376f9
8,082
cpp
C++
src/Map/MapMainCharacter.cpp
tizian/Cendric2
5b0438c73a751bcc0d63c3af839af04ab0fb21a3
[ "MIT" ]
279
2015-05-06T19:04:07.000Z
2022-03-21T21:33:38.000Z
src/Map/MapMainCharacter.cpp
tizian/Cendric2
5b0438c73a751bcc0d63c3af839af04ab0fb21a3
[ "MIT" ]
222
2016-10-26T15:56:25.000Z
2021-10-03T15:30:18.000Z
src/Map/MapMainCharacter.cpp
tizian/Cendric2
5b0438c73a751bcc0d63c3af839af04ab0fb21a3
[ "MIT" ]
49
2015-10-01T21:23:03.000Z
2022-03-19T20:11:31.000Z
#include "Map/MapMainCharacter.h" #include "Map/DynamicTiles/DoorMapTile.h" #include "Screens/MapScreen.h" MapMainCharacter::MapMainCharacter(Map* map, Screen* screen) : MapMovableGameObject(map) { m_screen = screen; load(); m_isAlwaysUpdate = true; } MapMainCharacter::~MapMainCharacter() { } void MapMainCharact...
31.694118
107
0.740906
tizian
909a52dc3448ecd463564363e92672b248dde74e
17,478
cpp
C++
B2G/gecko/widget/xpwidgets/nsTransferable.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
B2G/gecko/widget/xpwidgets/nsTransferable.cpp
wilebeast/FireFox-OS
43067f28711d78c429a1d6d58c77130f6899135f
[ "Apache-2.0" ]
null
null
null
B2G/gecko/widget/xpwidgets/nsTransferable.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: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */ /* Notes to self: - at some point...
27.524409
125
0.653164
wilebeast
909b277e2c4083b785b27724de54c5568c0e2345
1,433
cpp
C++
src/victoryconnect/cpp/packet.cpp
victoryforphil/VictoryConnect-ClientCPP
6ad06edcd6339df933af337f2fa9d111c83d6e2d
[ "MIT" ]
null
null
null
src/victoryconnect/cpp/packet.cpp
victoryforphil/VictoryConnect-ClientCPP
6ad06edcd6339df933af337f2fa9d111c83d6e2d
[ "MIT" ]
null
null
null
src/victoryconnect/cpp/packet.cpp
victoryforphil/VictoryConnect-ClientCPP
6ad06edcd6339df933af337f2fa9d111c83d6e2d
[ "MIT" ]
null
null
null
#include "packet.hpp" #include "utils.hpp" using namespace VictoryConnect; Packet::Packet(PacketType type, std::string path){ mPacketType = type; mPath = path; } Packet::Packet(PacketType type, std::string path, std::vector<std::string> data){ mPacketType = type; mPath = path; mData ...
19.630137
81
0.620377
victoryforphil
90a0153d9cd3a22ac72408efb5db7ab486547fb5
1,308
cpp
C++
NeoMathEngine/src/CrtAllocatedObject.cpp
AlinaKalyakina/neoml
328eac0d23e45faedb07a336ebfaf36288bb0db9
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-25T08:04:55.000Z
2020-12-25T08:04:55.000Z
NeoMathEngine/src/CrtAllocatedObject.cpp
AlinaKalyakina/neoml
328eac0d23e45faedb07a336ebfaf36288bb0db9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
NeoMathEngine/src/CrtAllocatedObject.cpp
AlinaKalyakina/neoml
328eac0d23e45faedb07a336ebfaf36288bb0db9
[ "ECL-2.0", "Apache-2.0" ]
1
2020-11-05T06:46:19.000Z
2020-11-05T06:46:19.000Z
/* Copyright © 2017-2020 ABBYY Production LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
24.222222
112
0.687309
AlinaKalyakina
90a5e7866bce854daf6b25ebc55b246a382d1e89
7,506
cpp
C++
Source/WebKit/UIProcess/API/glib/WebKitPrivate.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebKit/UIProcess/API/glib/WebKitPrivate.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebKit/UIProcess/API/glib/WebKitPrivate.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2012 Igalia S.L. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library i...
39.298429
80
0.743272
jacadcaps
90aa99070b3b780ed42ca93899745dd707f6d3a7
427
cpp
C++
src/main/cpp/binarysearch/bounded_square_sums.cpp
jo3-l/cp-practice
d1db0c8e9269c8720b31013068dff948b33f57fd
[ "MIT" ]
5
2022-01-05T20:15:47.000Z
2022-02-15T22:40:44.000Z
src/main/cpp/binarysearch/bounded_square_sums.cpp
jo3-l/ccc-java
7a77f365e52496967e5265ecefb34f3b7db5fae8
[ "MIT" ]
3
2022-01-06T01:34:42.000Z
2022-01-20T23:46:53.000Z
src/main/cpp/binarysearch/bounded_square_sums.cpp
jo3-l/ccc-java
7a77f365e52496967e5265ecefb34f3b7db5fae8
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int solve(vector<int> &a, vector<int> &b, int lower, int upper) { transform(b.begin(), b.end(), b.begin(), [](int v) { return v * v; }); sort(b.begin(), b.end()); int n = 0; for (int v : a) { v *= v; int lp = lower_bound(b.begin(), b.end(), lower - v) - b.begin();...
26.6875
71
0.550351
jo3-l
90ab2bfb36bcb316f23c07b6b04d3afa55a5a3fa
12,909
cpp
C++
openstudiocore/src/model/AirLoopHVACSupplyPlenum.cpp
pepsi7959/OpenstudioThai
fb18afb8b983f71dd5eb171e753dac7d9a4b811b
[ "blessing" ]
4
2015-05-02T21:04:15.000Z
2015-10-28T09:47:22.000Z
openstudiocore/src/model/AirLoopHVACSupplyPlenum.cpp
pepsi7959/OpenstudioThai
fb18afb8b983f71dd5eb171e753dac7d9a4b811b
[ "blessing" ]
11
2015-05-05T16:16:33.000Z
2017-08-10T08:15:50.000Z
openstudiocore/src/model/AirLoopHVACSupplyPlenum.cpp
pepsi7959/OpenstudioThai
fb18afb8b983f71dd5eb171e753dac7d9a4b811b
[ "blessing" ]
1
2017-09-23T12:51:13.000Z
2017-09-23T12:51:13.000Z
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
33.52987
150
0.69347
pepsi7959
90ace3edcc12858a6ac7a6733bbe33a075efbcc0
1,766
cpp
C++
02_estructuras_selectivas/20_pizzeria.cpp
gemboedu/ejercicios-basicos-c-
648e2abe4c8e7f51bbfb1d21032eeeee3f5b9343
[ "MIT" ]
1
2021-12-03T03:37:04.000Z
2021-12-03T03:37:04.000Z
02_estructuras_selectivas/20_pizzeria.cpp
gemboedu/ejercicios-basicos-c-
648e2abe4c8e7f51bbfb1d21032eeeee3f5b9343
[ "MIT" ]
null
null
null
02_estructuras_selectivas/20_pizzeria.cpp
gemboedu/ejercicios-basicos-c-
648e2abe4c8e7f51bbfb1d21032eeeee3f5b9343
[ "MIT" ]
null
null
null
/* 20. La pizzería Bella Rita ofrece pizzas vegetarianas y no vegetarianas a sus clientes. Los ingredientes para cada tipo de pizza aparecen a continuación. • Ingredientes vegetarianos: Pimiento y tofu. • Ingredientes no vegetarianos: Peperoni, Jamón y Salmón. Escribir un programa que pregunte al usuario si quiere una ...
51.941176
396
0.651755
gemboedu
90aef4fe828941f0414be1af66fcaac5e6c71cd0
4,124
cpp
C++
SQLEditor/SQLCodeEditor/CodeEditor/syntaxhighlighter.cpp
stephen-pinto/POC-CPP
6aaabeeb4b35251b853b8be368dcdabb096bca65
[ "MIT" ]
null
null
null
SQLEditor/SQLCodeEditor/CodeEditor/syntaxhighlighter.cpp
stephen-pinto/POC-CPP
6aaabeeb4b35251b853b8be368dcdabb096bca65
[ "MIT" ]
null
null
null
SQLEditor/SQLCodeEditor/CodeEditor/syntaxhighlighter.cpp
stephen-pinto/POC-CPP
6aaabeeb4b35251b853b8be368dcdabb096bca65
[ "MIT" ]
null
null
null
#include "syntaxhighlighter.h" #include <QTextDocument> SyntaxHighlighter::SyntaxHighlighter(QTextDocument *document) : QSyntaxHighlighter(document) { addDefualtRules(); } void SyntaxHighlighter::addDefualtRules() { HighlightingRule rule; QFont boldFont(this->document()->defaultFont()); boldFont....
34.366667
98
0.622696
stephen-pinto
90b01b0d728e3bd8671d8c7b7c7442cdb07da9b6
1,583
cpp
C++
codeforce3/505C. Mr. Kitayuta, the Treasure Hunter.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce3/505C. Mr. Kitayuta, the Treasure Hunter.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce3/505C. Mr. Kitayuta, the Treasure Hunter.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
/* Idea: - Dynamic Programming. - The regular DP using NxN time and memory complexity does not work. It is give correct solutions, but it does not fit the time and memory limits. - To change this solution to accepted one we need to reduce the size of our DP, we need the index where we are now, but t...
31.039216
135
0.588756
khaled-farouk
ff96d791f1f830a2f1b60d637fc390d4b0c34c17
598
hpp
C++
engine/calculators/include/BlindedCalculator.hpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
engine/calculators/include/BlindedCalculator.hpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
engine/calculators/include/BlindedCalculator.hpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#pragma once #include "StatusEffectCalculator.hpp" #include "Creature.hpp" // Class used to determine whether a creature is blinded (typically by // the smoke from a flaming attack), and if so, for how long. class BlindedCalculator : public StatusEffectCalculator { public: int calculate_pct_chance_effect(Creatur...
31.473684
75
0.795987
sidav
ff977a89d025b5e486659bc33b39ad4fd3cf31db
4,259
cpp
C++
hydra_api/SystemWin.cpp
Ray-Tracing-Systems/HydraAPI
17e812d5026b7d09df7e419658cf3a781162df55
[ "MIT" ]
18
2018-01-08T17:55:09.000Z
2021-08-02T11:22:30.000Z
hydra_api/SystemWin.cpp
Ray-Tracing-Systems/HydraAPI
17e812d5026b7d09df7e419658cf3a781162df55
[ "MIT" ]
null
null
null
hydra_api/SystemWin.cpp
Ray-Tracing-Systems/HydraAPI
17e812d5026b7d09df7e419658cf3a781162df55
[ "MIT" ]
6
2018-10-07T13:46:22.000Z
2019-07-04T09:13:14.000Z
#include "HydraAPI.h" #include "HydraInternal.h" #include <memory> #include <vector> #include <string> #include <sstream> #include <map> #ifdef WIN32 #include <direct.h> #else #endif int hr_mkdir(const char* a_folder) { return _mkdir(a_folder); } int hr_mkdir(const wchar_t* a_folder) { return _wmkdir(a_fold...
20.980296
132
0.666354
Ray-Tracing-Systems
ff994351a95e16eeab1981dfe1b9a1d1431d0686
2,140
cpp
C++
dev/velocities_sidecar/generate_velocities_sidecar_main.cpp
nyue/SegmentedInterpolativeMotionBlurAlembic
1f02ff5516b6e114410b5977885133bb4b5bb490
[ "Apache-2.0" ]
1
2020-12-28T23:33:00.000Z
2020-12-28T23:33:00.000Z
dev/velocities_sidecar/generate_velocities_sidecar_main.cpp
nyue/SegmentedInterpolativeMotionBlurAlembic
1f02ff5516b6e114410b5977885133bb4b5bb490
[ "Apache-2.0" ]
null
null
null
dev/velocities_sidecar/generate_velocities_sidecar_main.cpp
nyue/SegmentedInterpolativeMotionBlurAlembic
1f02ff5516b6e114410b5977885133bb4b5bb490
[ "Apache-2.0" ]
1
2018-10-10T11:49:02.000Z
2018-10-10T11:49:02.000Z
#include <Alembic/Util/All.h> #include <Alembic/AbcCoreAbstract/All.h> #include <Alembic/AbcCoreOgawa/All.h> #ifdef SIMBA_ENABLE_ALEMBIC_HDF5 #include <Alembic/AbcCoreHDF5/All.h> #endif // SIMBA_ENABLE_ALEMBIC_HDF5 #include <Alembic/Abc/All.h> #include <Alembic/AbcCoreFactory/All.h> #include <Alembic/AbcGeom/All.h> #in...
26.097561
105
0.683645
nyue
ff9e8a84e79f46e7e4016ee7940334ea11585f37
10,107
cpp
C++
Alien Engine/Alien Engine/ComponentPhysics.cpp
OverPowered-Team/Alien-GameEngine
713a8846a95fdf253d0869bdcad4ecd006b2e166
[ "MIT" ]
7
2020-02-20T15:11:11.000Z
2020-05-19T00:29:04.000Z
Alien Engine/Alien Engine/ComponentPhysics.cpp
OverPowered-Team/Alien-GameEngine
713a8846a95fdf253d0869bdcad4ecd006b2e166
[ "MIT" ]
125
2020-02-29T17:17:31.000Z
2020-05-06T19:50:01.000Z
Alien Engine/Alien Engine/ComponentPhysics.cpp
OverPowered-Team/Alien-GameEngine
713a8846a95fdf253d0869bdcad4ecd006b2e166
[ "MIT" ]
1
2020-05-19T00:29:06.000Z
2020-05-19T00:29:06.000Z
#include "Application.h" #include "ComponentCharacterController.h" #include "ComponentTransform.h" #include "ComponentPhysics.h" #include "ComponentCollider.h" #include "ComponentRigidBody.h" #include "ComponentScript.h" #include "ImGuizmos/ImGuizmo.h" #include "CollisionLayers.h" #include "GameObject.h" #include "Alie...
22.661435
106
0.708519
OverPowered-Team
ff9eabb1f38c0c1d8b78ac9284894dbaabf43a6c
710
cpp
C++
gamelib/src/engine/GameTimer.cpp
alexBraidwood/my_first_game_engine
7a2d87fdef841e633ca40eae38536fd7d2b70032
[ "Zlib", "MIT" ]
null
null
null
gamelib/src/engine/GameTimer.cpp
alexBraidwood/my_first_game_engine
7a2d87fdef841e633ca40eae38536fd7d2b70032
[ "Zlib", "MIT" ]
null
null
null
gamelib/src/engine/GameTimer.cpp
alexBraidwood/my_first_game_engine
7a2d87fdef841e633ca40eae38536fd7d2b70032
[ "Zlib", "MIT" ]
null
null
null
// // Created by alex on 12/12/15. // #include <GameTimer.h> #include <chrono> using namespace engine::sdl2; using namespace std::chrono; auto Game_timer::start() -> void { is_running = true; start_time = high_resolution_clock::now(); last_dt = start_time; } auto Game_timer::stop() -> void { is_runn...
19.189189
65
0.669014
alexBraidwood
ff9f68afc3080fac603b390fbce70d02ad9b62ec
1,455
cpp
C++
qt5/group.cpp
kristjanbb/libui
e381e6b45fc421daeea6f1ed5c29a84aad13271b
[ "MIT" ]
3
2016-07-12T12:06:15.000Z
2021-05-24T22:06:45.000Z
qt5/group.cpp
kristjanbb/libui
e381e6b45fc421daeea6f1ed5c29a84aad13271b
[ "MIT" ]
null
null
null
qt5/group.cpp
kristjanbb/libui
e381e6b45fc421daeea6f1ed5c29a84aad13271b
[ "MIT" ]
null
null
null
#include "uipriv_qt5.hpp" #include <QGroupBox> #include <QVBoxLayout> struct uiGroup : public uiQt5Control {}; char *uiGroupTitle(uiGroup *g) { if (auto groupBox = uiValidateAndCastObjTo<QGroupBox>(g)) { return uiQt5StrdupQString(groupBox->title()); } return nullptr; } void uiGroupSetTitle(uiGroup *g, const ...
22.734375
89
0.706529
kristjanbb
ffa088e80959e36dea0fc2b365cb86413e4f88fa
1,866
cpp
C++
HDP_HSMM/internals/cpp_eigen_code/hsmm_intnegbinvariant_sample_forwards.cpp
GUZHIXIANG/DAA_taguchi
5c77f0a326b53e0cc908cf08714fd470870877ec
[ "MIT" ]
null
null
null
HDP_HSMM/internals/cpp_eigen_code/hsmm_intnegbinvariant_sample_forwards.cpp
GUZHIXIANG/DAA_taguchi
5c77f0a326b53e0cc908cf08714fd470870877ec
[ "MIT" ]
null
null
null
HDP_HSMM/internals/cpp_eigen_code/hsmm_intnegbinvariant_sample_forwards.cpp
GUZHIXIANG/DAA_taguchi
5c77f0a326b53e0cc908cf08714fd470870877ec
[ "MIT" ]
null
null
null
using namespace Eigen; using namespace std; // inputs Map<ArrayXXd> eAT(A,M,M); Map<ArrayXXd> eaBl(aBl,M,T); Map<ArrayXXd> ebetal(betal,rtot,T); Map<ArrayXXd> esuperbetal(superbetal,M,T); // locals int t, state, substate, end; double total, pi; ArrayXd logdomain(M); ArrayXd nextstate_unsmoothed(M); ArrayXd nextstate_...
27.441176
90
0.617363
GUZHIXIANG
ffa0e449b12fb8dae6e7a8384dce1979e101047f
1,323
cpp
C++
util/image_loader.cpp
Seviel/rinvid
0b8fbb1c0a6a5180acd9846cbf953126c05756a4
[ "BSD-2-Clause" ]
1
2020-12-31T13:36:56.000Z
2020-12-31T13:36:56.000Z
util/image_loader.cpp
Seviel/rinvid
0b8fbb1c0a6a5180acd9846cbf953126c05756a4
[ "BSD-2-Clause" ]
3
2020-11-12T21:37:03.000Z
2021-03-28T13:07:40.000Z
util/image_loader.cpp
Seviel/rinvid
0b8fbb1c0a6a5180acd9846cbf953126c05756a4
[ "BSD-2-Clause" ]
null
null
null
/********************************************************************** * Copyright (c) 2021, Filip Vasiljevic * All rights reserved. * * This file is subject to the terms and conditions of the BSD 2-Clause * License. See the file LICENSE in the root directory of the Rinvid * repository for more details. ******...
27
100
0.606954
Seviel
ffa0fc1c564a22420d9afd4f97803aa000ce9171
298
cpp
C++
src/parameters.cpp
antoinewdg/inpainting-detection
24c758e3fc1e15563e134137a64ec4fc51930f3a
[ "MIT" ]
4
2019-09-17T03:17:39.000Z
2022-02-15T01:30:13.000Z
src/parameters.cpp
antoinewdg/inpainting-detection
24c758e3fc1e15563e134137a64ec4fc51930f3a
[ "MIT" ]
null
null
null
src/parameters.cpp
antoinewdg/inpainting-detection
24c758e3fc1e15563e134137a64ec4fc51930f3a
[ "MIT" ]
2
2016-12-13T05:26:51.000Z
2021-02-10T07:22:11.000Z
#include "parameters.h" const float A_MIN = 100; const float A_HUGE = 500; const float ALPHA = 1.3f; const float R_MIN = 5.f; const int N_DOMINANT = 20; const bool SAVE_PATCH_MATCH = false; const int MIN_PATCH_OFFSET = 20; const int RELEVANT_OFFSET_NORM = 25; const float VARIANCE_THRESHOLD = 2.f;
27.090909
37
0.758389
antoinewdg
ffa25e8758d5c9b5e23f5a4e89d10d8ead8cebca
711
cpp
C++
app/text/j.cpp
Na6ezh6a/rymanceva-testings-lab2
ce2433d3cdd2946fcc38730b5d9a7cfa721425f2
[ "MIT" ]
null
null
null
app/text/j.cpp
Na6ezh6a/rymanceva-testings-lab2
ce2433d3cdd2946fcc38730b5d9a7cfa721425f2
[ "MIT" ]
null
null
null
app/text/j.cpp
Na6ezh6a/rymanceva-testings-lab2
ce2433d3cdd2946fcc38730b5d9a7cfa721425f2
[ "MIT" ]
null
null
null
#include "_text.h" int j(text txt) { std::list<std::string>::iterator cursor_line = txt->cursor->line; std::list<std::string>::iterator cursor_next = txt->cursor->line; cursor_next++; /* Проверка на последнюю строку */ if (cursor_next == txt->lines->end()) { printf ("Невозможн...
23.7
79
0.609001
Na6ezh6a
ffa3ee71529be322cc74d9c80026c6f88988a012
901
hpp
C++
cpp/RoverBot/Localizer/include/Localizer.hpp
bo-rc/Rover
0a82ae2fd6583cb526543ff2af9810f221e18698
[ "MIT" ]
null
null
null
cpp/RoverBot/Localizer/include/Localizer.hpp
bo-rc/Rover
0a82ae2fd6583cb526543ff2af9810f221e18698
[ "MIT" ]
null
null
null
cpp/RoverBot/Localizer/include/Localizer.hpp
bo-rc/Rover
0a82ae2fd6583cb526543ff2af9810f221e18698
[ "MIT" ]
null
null
null
#pragma once #include <iostream> #include <librealsense2/rs.hpp> #include <iostream> #include <memory> #include "Types.hpp" #include "NavPose2d_Pub.hpp" #include "Position3d_Pub.hpp" #include "Velocity3d_Pub.hpp" class Localizer { public: Localizer(); ~Localizer(); // TODO: refac...
26.5
85
0.673696
bo-rc
ffa4df1e653c3200b5ca0febd08e1496988c1e7d
478
hpp
C++
include/Input/Actuator.hpp
InDieTasten/IDT.EXP
6d6229d5638297ba061b188edbbe394df33d70b0
[ "MIT" ]
null
null
null
include/Input/Actuator.hpp
InDieTasten/IDT.EXP
6d6229d5638297ba061b188edbbe394df33d70b0
[ "MIT" ]
56
2015-04-04T00:09:38.000Z
2015-08-02T23:39:13.000Z
include/Input/Actuator.hpp
InDieTasten-Legacy/--EXP-old-
6d6229d5638297ba061b188edbbe394df33d70b0
[ "MIT" ]
1
2015-05-08T19:23:51.000Z
2015-05-08T19:23:51.000Z
#ifndef _Actuator_hpp_ #define _Actuator_hpp_ #include <Utilities\Logger.hpp> #include <Utilities\Conversion.hpp> class Actuator { protected: sf::Mutex confmtx; private: virtual float getRawVector() = 0; float multiplier; float adjustment; public: Actuator(); ~Actuator(); float getControl...
15.419355
36
0.698745
InDieTasten
ffa8cd86cca52a7c40d86c0ae13cb3551512e426
498
cpp
C++
src/luogu/P1055/9547070_ac_100_0ms_1667k_noO2.cpp
lnkkerst/oj-codes
d778489182d644370b2a690aa92c3df6542cc306
[ "MIT" ]
null
null
null
src/luogu/P1055/9547070_ac_100_0ms_1667k_noO2.cpp
lnkkerst/oj-codes
d778489182d644370b2a690aa92c3df6542cc306
[ "MIT" ]
null
null
null
src/luogu/P1055/9547070_ac_100_0ms_1667k_noO2.cpp
lnkkerst/oj-codes
d778489182d644370b2a690aa92c3df6542cc306
[ "MIT" ]
null
null
null
#include<cstdio> using namespace std; int main(){ char a[13]; int n,b[13]; for (int i=0;i<13;i++){ a[i]=getchar(); } for (int i=0;i<13;i++){ b[i]=a[i]-48; } n=(b[0]*1+b[2]*2+b[3]*3+b[4]*4+b[6]*5+b[7]*6+b[8]*7+b[9]*8+b[10]*9)%11; if (n==10){ if (a[12]=='X') printf("Right"); else { for (int i=0;i<12;i+...
17.785714
72
0.473896
lnkkerst
ffaf0c5b42e75c192e2d820737f4a0432e602b9f
2,297
cpp
C++
Graphs/FordFulkerson.cpp
mayukhsen1301/algos
60db47ad9e7dc28271c1ce32ca705a771e682cda
[ "MIT" ]
687
2015-02-23T17:31:00.000Z
2022-03-27T02:57:23.000Z
Graphs/FordFulkerson.cpp
mayukhsen1301/algos
60db47ad9e7dc28271c1ce32ca705a771e682cda
[ "MIT" ]
9
2018-08-27T06:41:24.000Z
2020-12-17T13:39:07.000Z
Graphs/FordFulkerson.cpp
mayukhsen1301/algos
60db47ad9e7dc28271c1ce32ca705a771e682cda
[ "MIT" ]
253
2015-03-16T00:42:18.000Z
2022-03-23T06:01:36.000Z
/******************************************************************************** MaxFlow Ford-Fulkerson algorithm. O(M|f|), |f| - maxflow value Based on problem 2783 from informatics.mccme.ru http://informatics.mccme.ru/mod/statements/view3.php?chapterid=2783#1 ************************************...
21.87619
82
0.462342
mayukhsen1301
ffafe770a92b6aec62c6a1ba2819fb2ff5a60d78
936
cpp
C++
src/ArgParser.cpp
canzarlab/fortuna
62109f879a640d7154bda66ee21d9396c0d637ea
[ "BSD-2-Clause" ]
null
null
null
src/ArgParser.cpp
canzarlab/fortuna
62109f879a640d7154bda66ee21d9396c0d637ea
[ "BSD-2-Clause" ]
null
null
null
src/ArgParser.cpp
canzarlab/fortuna
62109f879a640d7154bda66ee21d9396c0d637ea
[ "BSD-2-Clause" ]
null
null
null
#include <map> #include <string> #include <iostream> typedef std::map<std::string, std::string>::const_iterator it_type; class ArgParser { public: ArgParser(const int argc, char* const argv[]) { for (int i = 0; i < argc; i++) { std::string str = argv[i]; if (str[0] != '-') continue; if (str[1...
17.333333
71
0.553419
canzarlab
ffb35e1631da0109c21f6dc0a8b638156b33cd3c
4,631
cc
C++
sling/task/dashboard.cc
anysql/sling
d521b27f1537608ddf3d8b4281edd585ffd90545
[ "Apache-2.0" ]
97
2020-03-11T07:44:05.000Z
2022-03-27T14:24:15.000Z
sling/task/dashboard.cc
anysql/sling
d521b27f1537608ddf3d8b4281edd585ffd90545
[ "Apache-2.0" ]
11
2020-10-23T09:26:26.000Z
2021-08-25T09:31:28.000Z
sling/task/dashboard.cc
anysql/sling
d521b27f1537608ddf3d8b4281edd585ffd90545
[ "Apache-2.0" ]
8
2018-06-11T07:59:18.000Z
2021-06-09T09:19:05.000Z
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
27.730539
78
0.593392
anysql
ffbaf092363092b9cff8f77ac40cda9f51042fdb
877
cxx
C++
test/nick4.cxx
paulwratt/cin-5.34.00
036a8202f11a4a0e29ccb10d3c02f304584cda95
[ "MIT" ]
10
2018-03-26T07:41:44.000Z
2021-11-06T08:33:24.000Z
test/nick4.cxx
paulwratt/cin-5.34.00
036a8202f11a4a0e29ccb10d3c02f304584cda95
[ "MIT" ]
null
null
null
test/nick4.cxx
paulwratt/cin-5.34.00
036a8202f11a4a0e29ccb10d3c02f304584cda95
[ "MIT" ]
1
2020-11-17T03:17:00.000Z
2020-11-17T03:17:00.000Z
/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include <stdio.h> class A { int a...
15.945455
74
0.380844
paulwratt
ffbb5fbcfe6fc522126c653eb4e7752067d9ad0d
2,095
cpp
C++
source/bxdf/GlossySpecular.cpp
xzrunner/raytracing
c130691a92fab2cc9605f04534f42ca9b99e6fde
[ "MIT" ]
null
null
null
source/bxdf/GlossySpecular.cpp
xzrunner/raytracing
c130691a92fab2cc9605f04534f42ca9b99e6fde
[ "MIT" ]
null
null
null
source/bxdf/GlossySpecular.cpp
xzrunner/raytracing
c130691a92fab2cc9605f04534f42ca9b99e6fde
[ "MIT" ]
null
null
null
#include "raytracing/bxdf/GlossySpecular.h" #include "raytracing/utilities/ShadeRec.h" #include "raytracing/sampler/MultiJittered.h" namespace rt { GlossySpecular::GlossySpecular() : m_cs(1, 1, 1) { } // ----------------------------------------------------------------------------------- f // no sampling here: just ...
24.940476
105
0.661098
xzrunner
ffbb82c0bec6acfa9413fab175657befae97f379
3,596
cpp
C++
debug/atomics/ATLAS-TDAQ/ScilabSampler.cpp
jorexe/haikunet
dd1697fdc4590de8d687816ec470e40193619b8f
[ "MIT" ]
2
2021-05-05T18:22:19.000Z
2022-01-21T13:50:27.000Z
debug/atomics/ATLAS-TDAQ/ScilabSampler.cpp
jorexe/haikunet
dd1697fdc4590de8d687816ec470e40193619b8f
[ "MIT" ]
null
null
null
debug/atomics/ATLAS-TDAQ/ScilabSampler.cpp
jorexe/haikunet
dd1697fdc4590de8d687816ec470e40193619b8f
[ "MIT" ]
1
2021-05-05T18:05:11.000Z
2021-05-05T18:05:11.000Z
#include "ScilabSampler.h" void ScilabSampler::init(double t, ...) { BaseSimulator::init(t); //The 'parameters' variable contains the parameters transferred from the editor. va_list parameters; va_start(parameters, t); printLog(LOG_LEVEL_FULL_LOGGING, "[%f] %s: Init: \n", t, this->getName()); char *fvar; fv...
33.296296
250
0.703281
jorexe
ffbcac18fe91c8b1262c48270b66f2b73ad1ac92
3,062
cc
C++
src/trap-handler/handler-outside-posix.cc
xtuc/v8
86894d98bfe79f46c51e27b0699f7bfcc07fe0b2
[ "BSD-3-Clause" ]
1
2019-05-21T13:21:59.000Z
2019-05-21T13:21:59.000Z
src/trap-handler/handler-outside-posix.cc
xtuc/v8
86894d98bfe79f46c51e27b0699f7bfcc07fe0b2
[ "BSD-3-Clause" ]
null
null
null
src/trap-handler/handler-outside-posix.cc
xtuc/v8
86894d98bfe79f46c51e27b0699f7bfcc07fe0b2
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // PLEASE READ BEFORE CHANGING THIS FILE! // // This file implements the support code for the out of bounds signal handler. // Nothing in here actually ...
33.648352
80
0.743305
xtuc
ffc4a530dedd6b539b37018ee68a8e942c3a4c0e
4,809
hpp
C++
src/setup/info.hpp
kennethmyhra/innoextract
6e6d9559b500a6ddeb918a019d794b67396f1c82
[ "Zlib" ]
8
2018-04-04T06:44:51.000Z
2020-02-27T01:51:41.000Z
src/setup/info.hpp
hanul93/innoextract
6cc1708445d9848d4e88a65ef1c0df084bff31d5
[ "Zlib" ]
null
null
null
src/setup/info.hpp
hanul93/innoextract
6cc1708445d9848d4e88a65ef1c0df084bff31d5
[ "Zlib" ]
1
2018-05-02T18:10:42.000Z
2018-05-02T18:10:42.000Z
/* * Copyright (C) 2011-2014 Daniel Scharrer * * This software is provided 'as-is', without any express or implied * warranty. In no event will the author(s) 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, * inclu...
31.847682
86
0.678519
kennethmyhra
ffc52c354efa906f952ebe3e0ef549ef25305455
861
cpp
C++
OwNetClient/cache/gdsfclock.cpp
OwNet/qtownet
bcddc85401a279e850f269cdd14e2d08dff5e02e
[ "MIT" ]
2
2016-09-28T02:23:07.000Z
2019-07-13T15:53:47.000Z
OwNetClient/cache/gdsfclock.cpp
OwNet/qtownet
bcddc85401a279e850f269cdd14e2d08dff5e02e
[ "MIT" ]
null
null
null
OwNetClient/cache/gdsfclock.cpp
OwNet/qtownet
bcddc85401a279e850f269cdd14e2d08dff5e02e
[ "MIT" ]
null
null
null
#include "gdsfclock.h" #include "qmath.h" #include "databasesettings.h" #include <QVariant> GDSFClock::GDSFClock(QObject *parent) : QObject(parent), m_lastClock(0) { m_lastClock = DatabaseSettings().value("cache_clean_clock", QString::number(0.0)).toDouble(); } double GDSFClock::getGDSFPriority(int accessCo...
21.525
97
0.682927
OwNet
ffc93b5b68d086bca47d521cfa186a32fed7a5c5
242
cpp
C++
data-structures/trees/tree-height-of-a-binary-tree/Solution.cpp
marcos-sb/hacker-rank
566c8426264c944edf6b63bfbfbb9b78b710fce7
[ "Apache-2.0" ]
null
null
null
data-structures/trees/tree-height-of-a-binary-tree/Solution.cpp
marcos-sb/hacker-rank
566c8426264c944edf6b63bfbfbb9b78b710fce7
[ "Apache-2.0" ]
null
null
null
data-structures/trees/tree-height-of-a-binary-tree/Solution.cpp
marcos-sb/hacker-rank
566c8426264c944edf6b63bfbfbb9b78b710fce7
[ "Apache-2.0" ]
null
null
null
/*The tree node has data, left child and right child struct node { int data; node* left; node* right; }; */ int height(node * root) { if(root == NULL) return 0; return max(height(root->left), height(root->right)) + 1; }
15.125
60
0.607438
marcos-sb
ffca57ec7206d38743126876fd8c527cbef53e12
7,579
cpp
C++
modules/ti.UI/gtk/gtk_menu_item_impl.cpp
pjunior/titanium
2d5846849fb33291afd73d79c117ea990b54db77
[ "Apache-2.0" ]
3
2016-03-15T23:50:35.000Z
2016-05-09T09:36:10.000Z
modules/ti.UI/gtk/gtk_menu_item_impl.cpp
pjunior/titanium
2d5846849fb33291afd73d79c117ea990b54db77
[ "Apache-2.0" ]
null
null
null
modules/ti.UI/gtk/gtk_menu_item_impl.cpp
pjunior/titanium
2d5846849fb33291afd73d79c117ea990b54db77
[ "Apache-2.0" ]
null
null
null
/** * Appcelerator Titanium - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved. */ #include "../ui_module.h" namespace ti { void menu_callback(gpointer data); GtkMenuItemImpl::GtkMenuItemImpl() ...
24.291667
74
0.660773
pjunior
ffcbb6c4ba1cf30efb861161a4c4a6fed66727ea
1,096
cpp
C++
src/Sound.cpp
ChrisFadden/PartyTowers
b16f822130c27b0b7eaef10626fc99f5010f6591
[ "MIT" ]
1
2015-09-26T16:36:29.000Z
2015-09-26T16:36:29.000Z
src/Sound.cpp
ChrisFadden/PartyTowers
b16f822130c27b0b7eaef10626fc99f5010f6591
[ "MIT" ]
null
null
null
src/Sound.cpp
ChrisFadden/PartyTowers
b16f822130c27b0b7eaef10626fc99f5010f6591
[ "MIT" ]
null
null
null
#include <iostream> #include "Sound.h" GameSound::GameSound() { int audio_rate = 22050; Uint16 audio_format = AUDIO_S16SYS; int audio_channels = 2; int audio_buffers = 4096; if (Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers) != 0) { printf("Unab...
21.490196
67
0.594891
ChrisFadden
ffcd26bd9d12082c22a10c023f9d81cbbbcd2070
2,216
cpp
C++
CmnIP/sample/sample_draw_map2d.cpp
Khoronus/CmnUniverse
9cf9b4297f2fcb49330126aa1047b422144045e1
[ "MIT" ]
null
null
null
CmnIP/sample/sample_draw_map2d.cpp
Khoronus/CmnUniverse
9cf9b4297f2fcb49330126aa1047b422144045e1
[ "MIT" ]
null
null
null
CmnIP/sample/sample_draw_map2d.cpp
Khoronus/CmnUniverse
9cf9b4297f2fcb49330126aa1047b422144045e1
[ "MIT" ]
null
null
null
/** * @file sample_drawing_map2d.cpp * @brief Example of the visualization of the chart radar type. * * @section LICENSE * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND...
29.546667
80
0.698105
Khoronus
ffcd49e8a0796b2e3bf1b808247467055f4ece88
414
cpp
C++
game/MakeWythoffTable.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
game/MakeWythoffTable.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
game/MakeWythoffTable.cpp
searchstar2017/acmtool
03392b8909a3d45f10c2711ca4ad9ba69f64a481
[ "MIT" ]
null
null
null
//n is the length of the array that required //if table[i] < i,then i means a,and table[i] means b.Else,i means b,ans table[i] means a. int* MakeWythoffTable(int n) { int k; int* table = new int[n]; int a; for(k = 0; k < n; k++) { a = k * mul; if(a >= n) break; t...
19.714286
90
0.471014
searchstar2017
ffd60057506f98a6d836d619d11b011d88351a0e
1,050
cpp
C++
cds/variable_length_vector/elias_fano_codes.cpp
echizentm/CompactDataStructures
f7a7ab95f7353440dc4b66caeb07448b35b743fe
[ "Apache-2.0" ]
2
2017-01-29T16:06:48.000Z
2017-04-11T07:58:08.000Z
cds/variable_length_vector/elias_fano_codes.cpp
echizentm/CompactDataStructures
f7a7ab95f7353440dc4b66caeb07448b35b743fe
[ "Apache-2.0" ]
null
null
null
cds/variable_length_vector/elias_fano_codes.cpp
echizentm/CompactDataStructures
f7a7ab95f7353440dc4b66caeb07448b35b743fe
[ "Apache-2.0" ]
null
null
null
#include "elias_fano_codes.h" namespace cds { elias_fano_codes::elias_fano_codes() : marker(1) { this->size = 0; this->marker.resize(1); this->marker.write(0, 1); } uint64_t elias_fano_codes::vector_size() const { return this->bv.vector_size() + this->marker.vector_size();...
29.166667
74
0.589524
echizentm
ffd61173debcf45f034afb348acf31d4d286352b
3,642
cc
C++
kv/server/raft_server.cc
yunxiao3/eraft
d68d5dbe7007c4d9cac3238af4e6e78e48d9cb5f
[ "MIT" ]
58
2021-05-20T12:56:54.000Z
2022-03-28T03:45:25.000Z
kv/server/raft_server.cc
yunxiao3/eraft
d68d5dbe7007c4d9cac3238af4e6e78e48d9cb5f
[ "MIT" ]
1
2022-01-25T04:40:20.000Z
2022-01-28T05:43:30.000Z
kv/server/raft_server.cc
yunxiao3/eraft
d68d5dbe7007c4d9cac3238af4e6e78e48d9cb5f
[ "MIT" ]
15
2021-05-20T12:56:57.000Z
2022-03-14T20:35:58.000Z
// MIT License // Copyright (c) 2021 eraft dev group // 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,...
33.412844
80
0.720483
yunxiao3
ffd77d12d0dcfaf5739ac24d223036312d9f574f
9,215
cpp
C++
src/kvstore/RocksEngine.cpp
0xflotus/nebula
10faa87c83f66b62e0db493f958492afe8b569c8
[ "Apache-2.0" ]
1
2019-05-24T02:41:17.000Z
2019-05-24T02:41:17.000Z
src/kvstore/RocksEngine.cpp
steppenwolfyuetong/vgraph
b0d817fd151758d5ef788b2a26bc3e48a3fa4e18
[ "Apache-2.0" ]
null
null
null
src/kvstore/RocksEngine.cpp
steppenwolfyuetong/vgraph
b0d817fd151758d5ef788b2a26bc3e48a3fa4e18
[ "Apache-2.0" ]
null
null
null
/* Copyright (c) 2018 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "base/Base.h" #include "kvstore/RocksEngine.h" #include <folly/String.h> #include "fs/FileUtils.h" #include "kv...
31.343537
97
0.627564
0xflotus
ffd8796be2556eaf9b7ac8bb25ba0e7659ec1f61
16,703
cpp
C++
helpers/OriWidgets.cpp
Qt-Widgets/orion-qt
2df2b9687f637800bcd2a9f64f4cabafa8773f03
[ "MIT" ]
null
null
null
helpers/OriWidgets.cpp
Qt-Widgets/orion-qt
2df2b9687f637800bcd2a9f64f4cabafa8773f03
[ "MIT" ]
null
null
null
helpers/OriWidgets.cpp
Qt-Widgets/orion-qt
2df2b9687f637800bcd2a9f64f4cabafa8773f03
[ "MIT" ]
1
2022-01-15T08:54:38.000Z
2022-01-15T08:54:38.000Z
#include "OriWidgets.h" #include <QAction> #include <QActionGroup> #include <QApplication> #include <QBoxLayout> #include <QComboBox> #include <QDebug> #include <QGroupBox> #include <QHeaderView> #include <QLabel> #include <QMenu> #include <QObject> #include <QPushButton> #include <QStyle> #include <QSpinBox> #include...
28.998264
129
0.607136
Qt-Widgets
ffda0fe56d537ad66935f32afb7cb41aed0a6644
86
hpp
C++
Framework/Interface/Include/Interface.hpp
Quanwei1992/RTR
cd4e6e056de2bd0ec7ee993b06975508a561b0d6
[ "MIT" ]
3
2021-03-30T09:02:56.000Z
2022-03-16T05:43:21.000Z
Framework/Interface/Include/Interface.hpp
Quanwei1992/RTR
cd4e6e056de2bd0ec7ee993b06975508a561b0d6
[ "MIT" ]
null
null
null
Framework/Interface/Include/Interface.hpp
Quanwei1992/RTR
cd4e6e056de2bd0ec7ee993b06975508a561b0d6
[ "MIT" ]
null
null
null
#pragma once #include "Common.hpp" #define Interface class #define implements public
14.333333
25
0.790698
Quanwei1992
ffdd3b4ee63371d21d5c4d1eb5f1ffb057f2d091
10,330
cpp
C++
src/ui_objectives.cpp
libtcod/pyromancer
ae4d4ad36246c0273fdc6e871e1f1bc72605dee4
[ "MIT" ]
null
null
null
src/ui_objectives.cpp
libtcod/pyromancer
ae4d4ad36246c0273fdc6e871e1f1bc72605dee4
[ "MIT" ]
null
null
null
src/ui_objectives.cpp
libtcod/pyromancer
ae4d4ad36246c0273fdc6e871e1f1bc72605dee4
[ "MIT" ]
null
null
null
/* * Copyright (c) 2010 Jice * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
34.318937
115
0.677735
libtcod
ffdf383dfac20dc2c8a34fd5e1d0258ad524b780
4,143
cpp
C++
3dc/avp/support/console_batch.cpp
Melanikus/AvP
9d61eb974a23538e32bf2ef1b738643a018935a0
[ "BSD-3-Clause" ]
null
null
null
3dc/avp/support/console_batch.cpp
Melanikus/AvP
9d61eb974a23538e32bf2ef1b738643a018935a0
[ "BSD-3-Clause" ]
null
null
null
3dc/avp/support/console_batch.cpp
Melanikus/AvP
9d61eb974a23538e32bf2ef1b738643a018935a0
[ "BSD-3-Clause" ]
null
null
null
/******************************************************************* * * DESCRIPTION: consbtch.cpp * * AUTHOR: David Malcolm * * HISTORY: Created 8/4/98 * *******************************************************************/ /* Includes ********************************************************/ #inclu...
21.691099
74
0.529809
Melanikus
ffdf398463e352be548f436b75d0ea6319815de1
1,679
hpp
C++
include/Nazara/VulkanRenderer/VulkanBuffer.hpp
waruqi/NazaraEngine
a64de1ffe8b0790622a0b1cae5759c96b4f86907
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
null
null
null
include/Nazara/VulkanRenderer/VulkanBuffer.hpp
waruqi/NazaraEngine
a64de1ffe8b0790622a0b1cae5759c96b4f86907
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
null
null
null
include/Nazara/VulkanRenderer/VulkanBuffer.hpp
waruqi/NazaraEngine
a64de1ffe8b0790622a0b1cae5759c96b4f86907
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
null
null
null
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Vulkan Renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_VULKANRENDERER_BUFFER_HPP #define NAZARA_VULKANRENDERER_BUFFER_HPP #include <Nazara/Prerequisites.hpp> #include...
28.948276
77
0.767719
waruqi
ffe224c76c681907ddc262ae12752c359f23b872
3,600
hpp
C++
include/logi/memory/memory_allocator_impl.hpp
PrimozLavric/VulkanRenderer
6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4
[ "BSD-2-Clause" ]
6
2021-04-06T02:37:55.000Z
2021-11-24T06:14:04.000Z
include/logi/memory/memory_allocator_impl.hpp
PrimozLavric/Logi
6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4
[ "BSD-2-Clause" ]
null
null
null
include/logi/memory/memory_allocator_impl.hpp
PrimozLavric/Logi
6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4
[ "BSD-2-Clause" ]
null
null
null
/** * Project Logi source code * Copyright (C) 2019 Primoz Lavric * * 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...
37.113402
118
0.6725
PrimozLavric
ffe228198955a3e4838e783ead228d2d5c36ebfe
3,471
hpp
C++
include/shadertoy/buffers/gl_buffer.hpp
vtavernier/libshadertoy
a0b2a133199383cc7e9bcb3c0300f39eb95177c0
[ "MIT" ]
2
2020-02-23T09:33:07.000Z
2021-11-15T18:23:13.000Z
include/shadertoy/buffers/gl_buffer.hpp
vtavernier/libshadertoy
a0b2a133199383cc7e9bcb3c0300f39eb95177c0
[ "MIT" ]
2
2019-08-09T15:48:07.000Z
2020-11-16T13:51:56.000Z
include/shadertoy/buffers/gl_buffer.hpp
vtavernier/libshadertoy
a0b2a133199383cc7e9bcb3c0300f39eb95177c0
[ "MIT" ]
3
2019-12-12T09:42:34.000Z
2020-12-14T03:56:30.000Z
#ifndef _SHADERTOY_BUFFERS_BUFFER_BASE_HPP_ #define _SHADERTOY_BUFFERS_BUFFER_BASE_HPP_ #include "shadertoy/pre.hpp" #include "shadertoy/buffers/basic_buffer.hpp" #include "shadertoy/gl/framebuffer.hpp" #include "shadertoy/gl/renderbuffer.hpp" namespace shadertoy { namespace buffers { /** * @brief Represents a bu...
31.554545
98
0.706425
vtavernier
ffe45838ae7f55a986ad5fce27c0ffff3ae7ab0c
2,017
cpp
C++
hackerrank/Algorithms/ArraysAndSorting/BoardCutting/BoardCutting.cpp
everyevery/programming_study
ff35e97e13953e4d7a26591f7cdb301d3e8e36c6
[ "MIT" ]
null
null
null
hackerrank/Algorithms/ArraysAndSorting/BoardCutting/BoardCutting.cpp
everyevery/programming_study
ff35e97e13953e4d7a26591f7cdb301d3e8e36c6
[ "MIT" ]
null
null
null
hackerrank/Algorithms/ArraysAndSorting/BoardCutting/BoardCutting.cpp
everyevery/programming_study
ff35e97e13953e4d7a26591f7cdb301d3e8e36c6
[ "MIT" ]
1
2017-04-01T21:34:23.000Z
2017-04-01T21:34:23.000Z
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int main() { int T; cin >> T; while (T--) { int M, N; int m = 1, n=1; long long input, output=0; vector<long long> MS, NS; cin >> M ...
29.231884
113
0.337134
everyevery
ffe4c7d2f4624d5ceae6c76c5f196d9b46632646
3,686
cpp
C++
graphic_lite/ui/animator_posix/src/animator_test.cpp
chaoyangcui/xts_acts
3ea7c32929c9260f081cda97f6630ac9b14ab3fd
[ "Apache-2.0" ]
null
null
null
graphic_lite/ui/animator_posix/src/animator_test.cpp
chaoyangcui/xts_acts
3ea7c32929c9260f081cda97f6630ac9b14ab3fd
[ "Apache-2.0" ]
null
null
null
graphic_lite/ui/animator_posix/src/animator_test.cpp
chaoyangcui/xts_acts
3ea7c32929c9260f081cda97f6630ac9b14ab3fd
[ "Apache-2.0" ]
1
2021-09-13T12:04:33.000Z
2021-09-13T12:04:33.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 ...
28.137405
93
0.692892
chaoyangcui
ffe909a24d7d0210f35e0c656492d31145d7a02e
17,525
cpp
C++
core/src/command/mgcmdmgr.cpp
rhcad/touchvg-v0.6
8b349ecd66b2363eec96e20873267aad9ed67ff1
[ "RSA-MD" ]
1
2016-06-14T06:22:50.000Z
2016-06-14T06:22:50.000Z
core/src/command/mgcmdmgr.cpp
rhcad/touchvg-v0.6
8b349ecd66b2363eec96e20873267aad9ed67ff1
[ "RSA-MD" ]
null
null
null
core/src/command/mgcmdmgr.cpp
rhcad/touchvg-v0.6
8b349ecd66b2363eec96e20873267aad9ed67ff1
[ "RSA-MD" ]
null
null
null
// mgcmdmgr.cpp: 实现命令管理器类 // Copyright (c) 2004-2012, Zhang Yungui // License: LGPL, https://github.com/rhcad/touchvg #include "mgcmdmgr.h" #include "mgcmdselect.h" #include <mggrid.h> MgCommand* mgCreateCoreCommand(const char* name); float mgDisplayMmToModel(float mm, GiGraphics* gs); float mgDisplayMmToModel(float ...
34.095331
93
0.501227
rhcad
ffe96e028921f63424cde35edfe0a0cf2b4a093f
7,019
cxx
C++
src/Cxx/Utilities/SaveSceneToFile.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Cxx/Utilities/SaveSceneToFile.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Cxx/Utilities/SaveSceneToFile.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 <vtkBYUReader.h> #include <vtkCamera.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkOBJReader.h> #include <vtkPLYReader.h> #include <vtkPolyDataMapper.h> #include <vtkPolyDataReader.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteract...
29.004132
80
0.629862
ajpmaclean
fff173ac174f2ffa44cee0c44438318ab1b6e290
6,428
cpp
C++
test/dbi/test_dbi.cpp
webosce/umediaserver
988605735c1e35937fbfb7ac28422dee678d70d6
[ "Apache-2.0" ]
8
2018-03-17T22:28:05.000Z
2021-11-16T15:29:06.000Z
test/dbi/test_dbi.cpp
webosce/umediaserver
988605735c1e35937fbfb7ac28422dee678d70d6
[ "Apache-2.0" ]
1
2021-05-21T22:51:00.000Z
2021-05-21T22:51:00.000Z
test/dbi/test_dbi.cpp
webosce/umediaserver
988605735c1e35937fbfb7ac28422dee678d70d6
[ "Apache-2.0" ]
4
2018-03-22T18:48:22.000Z
2021-11-16T15:29:08.000Z
#define BOOST_TEST_MODULE TestDBI #include <boost/test/included/unit_test.hpp> #include <list> #include <dbi.h> using namespace uMediaServer::DBI; typedef SQLiteDBI sql_t; const std::string db_init = R"__( drop table if exists books; create table books ( id varchar primary key, author varchar, ...
30.903846
89
0.665215
webosce
fff2c71393a47f7ddc2a65c2bd77f1fa6fcbe020
2,947
inl
C++
Misc/UnusedCode/RSLibAndTests/RSLib/Code/Math/Types/ModularInteger.inl
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
34
2017-04-19T18:26:02.000Z
2022-02-15T17:47:26.000Z
Misc/UnusedCode/RSLibAndTests/RSLib/Code/Math/Types/ModularInteger.inl
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
307
2017-05-04T21:45:01.000Z
2022-02-03T00:59:01.000Z
Misc/UnusedCode/RSLibAndTests/RSLib/Code/Math/Types/ModularInteger.inl
RobinSchmidt/RS-MET-Preliminary
6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe
[ "FTL" ]
4
2017-09-05T17:04:31.000Z
2021-12-15T21:24:28.000Z
#ifndef RS_MODULARINTEGER_INL #define RS_MODULARINTEGER_INL #include "ModularInteger.h" // why is this include needed? maybe it's not using namespace RSLib; // construction/destruction: template<class T> rsModularInteger<T>::rsModularInteger(rsUint64 initialValue, rsUint64 modulusToUse) { modulus = modulusToUse; ...
24.155738
86
0.709874
RobinSchmidt
fff596ba478f512384eb607b6be214f12d50b052
4,712
cpp
C++
windows/appcompat/shims/specific/kingsquestmask.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
windows/appcompat/shims/specific/kingsquestmask.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
windows/appcompat/shims/specific/kingsquestmask.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 2000 Microsoft Corporation Module Name: KingsQuestMask.cpp Abstract: The app calls UnmapViewOfFile with a bogus address - an address that wasn't obtained from MapViewOfFile. We validate the address before calling UnmapViewOfFile. History: 11/20/2000 maonis C...
19.232653
101
0.593591
npocmaka
fff61daaf471b518d075a646c8d5ccfc952aab7c
28,480
cpp
C++
CvGameCoreDLL/CyPlot.cpp
macaurther/DOCUSA
40586727c351d1b1130c05c2d4648cca3a8bacf5
[ "MIT" ]
1
2017-08-17T02:49:22.000Z
2017-08-17T02:49:22.000Z
CvGameCoreDLL/CyPlot.cpp
macaurther/DOCUSA
40586727c351d1b1130c05c2d4648cca3a8bacf5
[ "MIT" ]
null
null
null
CvGameCoreDLL/CyPlot.cpp
macaurther/DOCUSA
40586727c351d1b1130c05c2d4648cca3a8bacf5
[ "MIT" ]
1
2021-03-17T23:58:03.000Z
2021-03-17T23:58:03.000Z
// // Python wrapper class for CvPlot // // #include "CvGameCoreDLL.h" #include "CyPlot.h" #include "CyCity.h" #include "CyArea.h" #include "CyUnit.h" #include "CvPlot.h" CyPlot::CyPlot(CvPlot* pPlot) : m_pPlot(pPlot) { } CyPlot::CyPlot() : m_pPlot(NULL) { } void CyPlot::erase() { if (m_p...
24.658009
186
0.710042
macaurther
fff7edbfc2e8b6db2b65bf0176e06139546971cb
1,428
cpp
C++
Chapter04/SmartPointers/unique_ptr/main.cpp
ibiscum/Mastering-Cpp-Programming
313caae6b9d77e97b0ada93fc37511d55bfad699
[ "MIT" ]
25
2017-09-15T22:54:57.000Z
2022-02-07T06:52:06.000Z
Chapter04/SmartPointers/unique_ptr/main.cpp
ibiscum/Mastering-Cpp-Programming
313caae6b9d77e97b0ada93fc37511d55bfad699
[ "MIT" ]
1
2021-07-08T07:54:36.000Z
2021-07-08T07:54:36.000Z
Chapter04/SmartPointers/unique_ptr/main.cpp
ibiscum/Mastering-Cpp-Programming
313caae6b9d77e97b0ada93fc37511d55bfad699
[ "MIT" ]
19
2017-09-19T14:50:37.000Z
2021-12-04T15:34:48.000Z
#include <iostream> #include <string> #include <memory> #include <sstream> using namespace std; class MyClass { private: static int count; string name; public: MyClass() { ostringstream stringStream(ostringstream::ate); stringStream << "Object"; stringStream << ++count; name = stringStream.str(); ...
22.3125
92
0.668768
ibiscum
fff9b871a32d5bc265eb6d9a098f3fc3f487137c
2,320
cpp
C++
Interview Bit/Max Non Negative Subarray.cpp
Shubhrmcf07/Competitive-Coding-and-Interview-Problems
7281ea3163c0cf6938a3af7b54a8a14f97c97c0e
[ "MIT" ]
51
2020-02-24T11:14:00.000Z
2022-03-24T09:32:18.000Z
Interview Bit/Max Non Negative Subarray.cpp
Shubhrmcf07/Competitive-Coding-and-Interview-Problems
7281ea3163c0cf6938a3af7b54a8a14f97c97c0e
[ "MIT" ]
3
2020-10-02T08:16:09.000Z
2021-04-17T16:32:38.000Z
Interview Bit/Max Non Negative Subarray.cpp
Shubhrmcf07/Competitive-Coding-and-Interview-Problems
7281ea3163c0cf6938a3af7b54a8a14f97c97c0e
[ "MIT" ]
18
2020-04-24T15:33:36.000Z
2022-03-24T09:32:20.000Z
/* Interview Bit */ /* Title - Max Non Negative Subarray */ /* Created By - Akash Modak */ /* Date - 26/06/2020 */ // Given an array of integers, A of length N, find out the maximum sum sub-array of non negative numbers from A. // The sub-array should be contiguous i.e., a sub-array created by choosing the sec...
23.434343
149
0.54569
Shubhrmcf07
fffab5150cd082aa6df93e8b19553a00955046c4
735
cpp
C++
Contests/Codeforces/CF1011/D.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
4
2017-10-31T14:25:18.000Z
2018-06-10T16:10:17.000Z
Contests/Codeforces/CF1011/D.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
Contests/Codeforces/CF1011/D.cpp
SYCstudio/OI
6e9bfc17dbd4b43467af9b19aa2aed41e28972fa
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> using namespace std; #define ll long long #define mem(Arr,x) memset(Arr,x,sizeof(Arr)) const int maxN=40; const int inf=2147483647; int Opt[maxN]; int main() { int n,m,ans; scanf("%d%d",&m,&n); for (int i=1;i<=n;i++){ p...
16.333333
53
0.589116
SYCstudio
08017ef8acdfa07563dacfb68cbf8d31337470e9
4,080
cc
C++
src/xapian/weight/inl2weight.cc
Kronuz/Xapiand
a71570859dcfc9f48090d845053f359b07f4f78c
[ "MIT" ]
370
2016-03-14T12:19:08.000Z
2022-03-25T02:07:29.000Z
src/xapian/weight/inl2weight.cc
puer99miss/Xapiand
480f312709d40e2b1deb244ff0761b79846ed608
[ "MIT" ]
34
2015-11-30T19:06:40.000Z
2022-02-26T03:46:58.000Z
src/xapian/weight/inl2weight.cc
puer99miss/Xapiand
480f312709d40e2b1deb244ff0761b79846ed608
[ "MIT" ]
31
2015-02-13T22:27:34.000Z
2022-03-25T02:07:34.000Z
/** @file inl2weight.cc * @brief Xapian::InL2Weight class - the InL2 weighting scheme of the DFR framework. */ /* Copyright (C) 2013,2014 Aarsh Shah * * 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 F...
24.578313
107
0.692157
Kronuz
0801aa77f7f4d45276733c53ee7cd875cc7f10ce
506
hh
C++
include/simlib/defer.hh
varqox/simlib
7830472019f88aa0e35dbfa1119b62b5f9dd4b9d
[ "MIT" ]
null
null
null
include/simlib/defer.hh
varqox/simlib
7830472019f88aa0e35dbfa1119b62b5f9dd4b9d
[ "MIT" ]
1
2017-01-05T17:50:32.000Z
2017-01-05T17:50:32.000Z
include/simlib/defer.hh
varqox/simlib
7830472019f88aa0e35dbfa1119b62b5f9dd4b9d
[ "MIT" ]
1
2017-01-05T15:26:48.000Z
2017-01-05T15:26:48.000Z
#pragma once #include <utility> template <class Func> class Defer { Func func_; public: // NOLINTNEXTLINE(google-explicit-constructor) Defer(Func func) try : func_(std::move(func)) { } catch (...) { func(); throw; } Defer(const Defer&) = delete; Defer(Defer&&) = d...
16.322581
50
0.511858
varqox
0802ea0905ca05761dc8f06f6ae9c4390cef4d40
704
cpp
C++
zoe/src/zoe/display/Physics/AxisAlignedBox.cpp
NudelErde/zoe
456e38bba86058f006a7c0fd5168af5039714c6c
[ "MIT" ]
7
2019-12-16T20:23:39.000Z
2020-10-26T08:46:12.000Z
zoe/src/zoe/display/Physics/AxisAlignedBox.cpp
NudelErde/zoe
456e38bba86058f006a7c0fd5168af5039714c6c
[ "MIT" ]
13
2020-01-13T20:19:06.000Z
2021-09-10T21:23:52.000Z
zoe/src/zoe/display/Physics/AxisAlignedBox.cpp
NudelErde/zoe
456e38bba86058f006a7c0fd5168af5039714c6c
[ "MIT" ]
7
2019-12-29T22:46:23.000Z
2020-07-15T19:56:32.000Z
// // Created by Florian on 20.12.2020. // #include "AxisAlignedBox.h" #include "cmath" namespace Zoe{ AxisAlignedBox::AxisAlignedBox(const vec3& lower, const vec3& higher) { AxisAlignedBox::lower = vec3(std::min(lower.x, higher.x), std::min(lower.y, higher.y), std::min(lower.z, higher.z)); AxisAlignedBox::h...
35.2
121
0.671875
NudelErde
08040c4e9fff3bdfc50d838bb796914dc14ba2cc
15,503
inl
C++
ThirdParty/Havok/include/Geometry/Internal/Algorithms/RayCast/hkcdRayCastCapsule.inl
wobbier/source3-engine
f59df759ee197aef5191cf13768c303c6ed17bf5
[ "MIT" ]
11
2016-08-02T03:40:36.000Z
2022-03-15T13:41:29.000Z
ThirdParty/Havok/include/Geometry/Internal/Algorithms/RayCast/hkcdRayCastCapsule.inl
wobbier/source3-engine
f59df759ee197aef5191cf13768c303c6ed17bf5
[ "MIT" ]
null
null
null
ThirdParty/Havok/include/Geometry/Internal/Algorithms/RayCast/hkcdRayCastCapsule.inl
wobbier/source3-engine
f59df759ee197aef5191cf13768c303c6ed17bf5
[ "MIT" ]
8
2017-03-17T05:59:25.000Z
2021-02-27T08:51:46.000Z
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
35.63908
251
0.761014
wobbier
0804d8f097c1773304affe64b89d049d7f0a8b9d
751
cpp
C++
contest-1005-496/c-v2-cpp/main.cpp
easimonenko/solution-problems-from-codeforces
64251e0ba2c2ba619b0daf67f89f29b6dff8fd9f
[ "MIT" ]
1
2018-12-03T02:06:05.000Z
2018-12-03T02:06:05.000Z
contest-1005-496/c-v2-cpp/main.cpp
easimonenko/solution-problems-from-codeforces
64251e0ba2c2ba619b0daf67f89f29b6dff8fd9f
[ "MIT" ]
null
null
null
contest-1005-496/c-v2-cpp/main.cpp
easimonenko/solution-problems-from-codeforces
64251e0ba2c2ba619b0daf67f89f29b6dff8fd9f
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <map> #include <vector> using namespace std; int main() { int n; cin >> n; vector<long long> a(n); map<long long,int> v; for (int i = 0; i < n; i++) { cin >> a[i]; v[a[i]]++; } vector<long long> d; d.push_back(1); for (int i = 1; i < 32; i++...
16.326087
55
0.464714
easimonenko
08051db556842246b2d6309f0a26274fe72109e2
3,186
cpp
C++
Chapter5/PlayState.cpp
sgeos/book_sdl_game_development
a37466bfe916313216f332cbcff07dc6b3800908
[ "BSD-3-Clause" ]
5
2020-08-01T21:18:55.000Z
2021-11-30T12:12:37.000Z
Chapter5/PlayState.cpp
sgeos/book_sdl_game_development
a37466bfe916313216f332cbcff07dc6b3800908
[ "BSD-3-Clause" ]
null
null
null
Chapter5/PlayState.cpp
sgeos/book_sdl_game_development
a37466bfe916313216f332cbcff07dc6b3800908
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <string> #include "Constants.h" #include "DemoBackground.h" #include "Enemy.h" #include "Game.h" #include "GameOverState.h" #include "InputHandler.h" #include "PlayState.h" #include "PauseState.h" #include "Vector2D.h" const std::string PlayState::sStateId = "PLAY"; void PlayState::update...
37.928571
127
0.680791
sgeos
0808fb3d8784296c96b3ba7d6e54a1309f55d33f
1,946
cpp
C++
encoder/vaapicodedbuffer.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
89
2015-01-09T10:31:13.000Z
2018-01-18T12:48:21.000Z
encoder/vaapicodedbuffer.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
626
2015-01-12T00:01:26.000Z
2018-01-23T18:58:58.000Z
encoder/vaapicodedbuffer.cpp
genisysram/libyami
08d3ecbbfe1f5d23d433523f747a7093a0b3a13a
[ "Apache-2.0" ]
104
2015-01-12T04:02:09.000Z
2017-12-28T08:27:42.000Z
/* * Copyright (C) 2014 Intel Corporation. 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...
27.027778
84
0.686536
genisysram
080b961151465ead797fe5492414d7af7a76d943
25,920
cpp
C++
examples/IBFE/explicit/ex6/main.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
2
2017-12-06T06:16:36.000Z
2021-03-13T12:28:08.000Z
examples/IBFE/explicit/ex6/main.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
null
null
null
examples/IBFE/explicit/ex6/main.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2002-2013, Boyce Griffith // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list o...
45
173
0.621952
MSV-Project
080e711d0461bcc65eeee7ceeff7aa9d626a0570
4,195
hpp
C++
SDK/ARKSurvivalEvolved_Jugbug_Character_BaseBP_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_Jugbug_Character_BaseBP_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_Jugbug_Character_BaseBP_classes.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_Jugbug_Character_BaseBP_structs.hpp" namespace sdk { //--------------------------------------------------------------------------- //Classes //-------------------------------------------------...
67.66129
223
0.579023
2bite
080fb35dcf54903da9cb5c65214501b380c3a870
6,248
cpp
C++
src/utility/RTC8563_Class.cpp
mayopan/M5Unified
d5473378016c98e3932a83fcfbb54e644c4aab7a
[ "MIT" ]
38
2021-10-10T14:37:44.000Z
2022-03-20T10:45:41.000Z
src/utility/RTC8563_Class.cpp
mayopan/M5Unified
d5473378016c98e3932a83fcfbb54e644c4aab7a
[ "MIT" ]
15
2021-11-01T05:52:07.000Z
2022-03-05T23:02:34.000Z
src/utility/RTC8563_Class.cpp
mayopan/M5Unified
d5473378016c98e3932a83fcfbb54e644c4aab7a
[ "MIT" ]
9
2021-10-10T15:53:05.000Z
2022-03-06T16:24:19.000Z
// Copyright (c) M5Stack. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "RTC8563_Class.hpp" #include <sys/time.h> namespace m5 { static std::uint8_t bcd2ToByte(std::uint8_t value) { return ((value >> 4) * 10) + (value & 0x0...
23.226766
101
0.579706
mayopan
08111f5cfdab849b74ce81849b788bde66f7f895
1,673
cpp
C++
src/State/IntroState.cpp
trew/TDP005
f604b7e3f3bc10dd4f0cad354f7fccc5d9797a5b
[ "MIT" ]
null
null
null
src/State/IntroState.cpp
trew/TDP005
f604b7e3f3bc10dd4f0cad354f7fccc5d9797a5b
[ "MIT" ]
null
null
null
src/State/IntroState.cpp
trew/TDP005
f604b7e3f3bc10dd4f0cad354f7fccc5d9797a5b
[ "MIT" ]
null
null
null
#include <State/IntroState.h> #include <Core/Define.h> #include <SDL2_gfxPrimitives.h> #include <Core/GameEngine.h> bool IntroState::init() { internalState = DEVSCREEN; devScreen = new Sprite(game, "./gfx/intro/devscreen.png", 0, 0, WWIDTH, WHEIGHT); introScreen = new Sprite(game, "./gfx/intro/introscreen.png", 0,...
20.402439
86
0.676629
trew
08136e19c5e71985be23ecc203603009025ac121
1,307
hpp
C++
AST/JSONStruct.hpp
germago119/C__IDE
2fb9950e2c67932eb69806094c65fcd9ae9ca220
[ "MIT" ]
null
null
null
AST/JSONStruct.hpp
germago119/C__IDE
2fb9950e2c67932eb69806094c65fcd9ae9ca220
[ "MIT" ]
null
null
null
AST/JSONStruct.hpp
germago119/C__IDE
2fb9950e2c67932eb69806094c65fcd9ae9ca220
[ "MIT" ]
1
2020-02-07T17:41:56.000Z
2020-02-07T17:41:56.000Z
// // Created by Roger Valderrama on 4/10/18. // /** * @file JSONStruct.hpp * @version 1.0 * @date 4/10/18 * @author Roger Valderrama * @title JSON for Structs * @brief JSON Class for saving structs with its variables. */ #ifndef C_IDE_JSONSTRUCT_HPP #define C_IDE_JSONSTRUCT_HPP #include "JSONVar.hpp" #inclu...
20.107692
88
0.633512
germago119
0813a661d4d3fdbd66f5829b0064d23e999e0450
1,721
hpp
C++
include/cynodelic/tesela/detail/tdouble_ops.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
include/cynodelic/tesela/detail/tdouble_ops.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
include/cynodelic/tesela/detail/tdouble_ops.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2019 Á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 tdouble_ops.hpp * * @brief Macros for defining `tdouble` operators. */ #ifndef CYNODELIC_TESELA_DETAIL_TDOUBLE_OPS_HPP #d...
27.31746
82
0.715863
cynodelic
0814f2a81b75fe973444bad545cb414d902d4397
9,524
hpp
C++
src/functions/functions.hpp
Hotege/irafl
1154bb69650e98998b28aed688f424cfb94413f9
[ "MIT" ]
null
null
null
src/functions/functions.hpp
Hotege/irafl
1154bb69650e98998b28aed688f424cfb94413f9
[ "MIT" ]
null
null
null
src/functions/functions.hpp
Hotege/irafl
1154bb69650e98998b28aed688f424cfb94413f9
[ "MIT" ]
null
null
null
#if !defined(_FUNCTIONS_FUNCTIONS_HPP_) #define _FUNCTIONS_FUNCTIONS_HPP_ #include <irafldef.h> #include <cmath> namespace IRAFLFunc { static double PI = atan(1.0) * 4; static double ColorNormal[256] = { 0.0, 0.00392156862745098, 0.00784313725490196, 0.011764705882352941, 0.01568627450980392...
90.704762
343
0.789164
Hotege
0818cff8fe62ef46802eb2f857c29fa5927985c2
320
cpp
C++
list10_2/main.cpp
rimever/SuraSuraCPlus
acbc6e1d0d0bb9bf07e28ab02c30ac021b1f6899
[ "MIT" ]
null
null
null
list10_2/main.cpp
rimever/SuraSuraCPlus
acbc6e1d0d0bb9bf07e28ab02c30ac021b1f6899
[ "MIT" ]
null
null
null
list10_2/main.cpp
rimever/SuraSuraCPlus
acbc6e1d0d0bb9bf07e28ab02c30ac021b1f6899
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; template<class T> T getMin(T a, T b) { return a < b ? a : b; } int main() { int a, b, c; a = 123; b = 456; c = getMin(a, b); cout << c << endl; double x, y, z; x = 1.23; y = 4.56; z = getMin(x, y); cout << z << endl; return 0; }
14.545455
25
0.4625
rimever
081beac538b3aa47e226bdca458c9ca2bff952d8
161
cpp
C++
instrumentation/src/utils/fastint.cpp
shdnx/MooCoverage
59c313d8fb16090c14aeaa3320b39913f6b5dfa9
[ "MIT" ]
6
2015-09-22T21:11:32.000Z
2021-12-29T15:33:16.000Z
instrumentation/src/utils/fastint.cpp
shdnx/MooCoverage
59c313d8fb16090c14aeaa3320b39913f6b5dfa9
[ "MIT" ]
null
null
null
instrumentation/src/utils/fastint.cpp
shdnx/MooCoverage
59c313d8fb16090c14aeaa3320b39913f6b5dfa9
[ "MIT" ]
1
2021-12-29T15:33:18.000Z
2021-12-29T15:33:18.000Z
#include "moocov/utils/fastint.h" namespace moocov { namespace utils { const FastIntWriterManip fastInt{}; } // end namespace utils } // end namespace moocov
16.1
35
0.745342
shdnx
081c4245ceb6cbaeac26985d17f422d974faf423
6,961
cpp
C++
Pyext/src/ExportSuiteAndFamily.cpp
mpartio/ecflow
ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6
[ "Apache-2.0" ]
null
null
null
Pyext/src/ExportSuiteAndFamily.cpp
mpartio/ecflow
ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6
[ "Apache-2.0" ]
null
null
null
Pyext/src/ExportSuiteAndFamily.cpp
mpartio/ecflow
ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6
[ "Apache-2.0" ]
null
null
null
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // Name : // Author : Avi // Revision : $Revision: #85 $ // // Copyright 2009- ECMWF. // This software is licensed under the terms of the Apache Licence version 2.0 // which can be obtained at http://www.apache.org/licenses/...
50.810219
135
0.699899
mpartio
081d4fe97337f2c5b388ad6eff4f849d47929eb0
969
cpp
C++
tests/insert_id.cpp
Wassasin/librusql
207919e5da1e9e49d4c575c81699fcb1d8cd6204
[ "BSD-3-Clause" ]
2
2018-01-16T18:05:21.000Z
2021-02-02T05:04:51.000Z
tests/insert_id.cpp
Wassasin/librusql
207919e5da1e9e49d4c575c81699fcb1d8cd6204
[ "BSD-3-Clause" ]
null
null
null
tests/insert_id.cpp
Wassasin/librusql
207919e5da1e9e49d4c575c81699fcb1d8cd6204
[ "BSD-3-Clause" ]
null
null
null
#include <rusql/rusql.hpp> #include "test.hpp" #include "database_test.hpp" #include <cstdlib> int main(int argc, char *argv[]) { auto db = get_database(argc, argv); test_init(4); test_start_try(4); try { db->execute("CREATE TABLE rusqltest (`id` INTEGER(10) PRIMARY KEY AUTO_INCREMENT, `value` INT(2) NOT NULL)"...
30.28125
111
0.701754
Wassasin
082335effc7cbf2e3ba41b00bc9080c25dc0fd0b
5,633
cpp
C++
source/glbinding/source/gl/functions_l.cpp
cpp-pm/glbinding
663e19cf1ae6a5fa1acfb1bd952fc43f647ca79c
[ "MIT" ]
632
2015-07-01T18:03:24.000Z
2022-03-17T08:25:51.000Z
source/glbinding/source/gl/functions_l.cpp
cpp-pm/glbinding
663e19cf1ae6a5fa1acfb1bd952fc43f647ca79c
[ "MIT" ]
191
2015-07-01T16:11:32.000Z
2022-02-10T22:04:09.000Z
source/glbinding/source/gl/functions_l.cpp
cpp-pm/glbinding
663e19cf1ae6a5fa1acfb1bd952fc43f647ca79c
[ "MIT" ]
89
2015-10-26T11:18:07.000Z
2022-03-31T16:22:50.000Z
#include "../Binding_pch.h" #include <glbinding/gl/functions.h> namespace gl { void glLabelObjectEXT(GLenum type, GLuint object, GLsizei length, const GLchar * label) { return glbinding::Binding::LabelObjectEXT(type, object, length, label); } void glLGPUCopyImageSubDataNVX(GLuint sourceGpu, GLbitfield destin...
25.373874
297
0.756258
cpp-pm
0823f63cb7a139e1a779ed1bbc1630279460107f
776
cpp
C++
plugins/opengl/src/clear/depth_buffer.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
plugins/opengl/src/clear/depth_buffer.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
plugins/opengl/src/clear/depth_buffer.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // 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) #include <sge/opengl/call.hpp> #include <sge/opengl/check_state.hpp> #include <sge/opengl/common.hp...
36.952381
93
0.742268
cpreh
08247b67a6036ea9f500344de36b0117965d8d98
989
cpp
C++
src/components/oscilloscope.cpp
jan-van-bergen/Synth
cc6fee6376974a3cc2e86899ab2859a5f1fb7e33
[ "MIT" ]
17
2021-03-22T14:17:16.000Z
2022-02-22T20:58:27.000Z
src/components/oscilloscope.cpp
jan-van-bergen/Synth
cc6fee6376974a3cc2e86899ab2859a5f1fb7e33
[ "MIT" ]
null
null
null
src/components/oscilloscope.cpp
jan-van-bergen/Synth
cc6fee6376974a3cc2e86899ab2859a5f1fb7e33
[ "MIT" ]
1
2021-11-17T18:00:55.000Z
2021-11-17T18:00:55.000Z
#include "oscilloscope.h" #include <ImGui/implot.h> void OscilloscopeComponent::update(Synth const & synth) { memset(samples, 0, sizeof(samples)); for (auto const & [other, weight] : inputs[0].others) { for (int i = 0; i < BLOCK_SIZE; i++) { samples[i] += weight * other->get_sample(i).left; } } } void Osc...
29.088235
120
0.703741
jan-van-bergen
0825dbf0b27b6e909c310aee51fa262b25af0d91
211,173
cpp
C++
3rdparty/openmm/plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
merkys/MMB
0531385b8367405e1188e31c3eef7aa4cc50170b
[ "MIT" ]
5
2020-07-31T17:33:03.000Z
2022-01-01T19:24:37.000Z
3rdparty/openmm/plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
merkys/MMB
0531385b8367405e1188e31c3eef7aa4cc50170b
[ "MIT" ]
11
2020-06-16T05:05:42.000Z
2022-03-30T09:59:14.000Z
3rdparty/openmm/plugins/amoeba/platforms/cuda/src/AmoebaCudaKernels.cpp
merkys/MMB
0531385b8367405e1188e31c3eef7aa4cc50170b
[ "MIT" ]
9
2020-01-24T12:02:37.000Z
2020-10-16T06:23:56.000Z
/* -------------------------------------------------------------------------- * * OpenMMAmoeba * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
55.747888
202
0.683459
merkys
0825fce6f420b678bc45bde2f99f310fb9efe8d2
2,344
cpp
C++
test/test-v3.cpp
TheodoreDavis/simple-ray-tracer
db0ebbea4f70efb70c67729c0b737de458bce8bd
[ "Apache-2.0" ]
null
null
null
test/test-v3.cpp
TheodoreDavis/simple-ray-tracer
db0ebbea4f70efb70c67729c0b737de458bce8bd
[ "Apache-2.0" ]
1
2021-09-17T02:24:36.000Z
2021-09-17T02:24:36.000Z
test/test-v3.cpp
TheodoreDavis/simple-ray-tracer
db0ebbea4f70efb70c67729c0b737de458bce8bd
[ "Apache-2.0" ]
null
null
null
#include <inc/v3.h> using namespace std; int main() { v3 a = v3(1,2,3); // Test Accessers cout << "Testing Accessors" << endl; cout << a[0] << a[1] << a[2]; cout << " -- Should be 123" << endl; a[0] = 5, a[1] = 5, a[2] = 5; cout << a[0] << a[1] << a[2]; cout << " -- Shoul...
24.416667
63
0.426621
TheodoreDavis
0826719ee4014a46f1db0a7b379920f8fb320ed2
6,726
hpp
C++
src/include/index/kmeans.hpp
xinyandai/similarity-search
75dc71abdd7f79094475db734fe55d04358363fc
[ "MIT" ]
16
2018-11-17T00:51:26.000Z
2022-03-10T22:51:56.000Z
src/include/index/kmeans.hpp
xinyandai/similarity-search
75dc71abdd7f79094475db734fe55d04358363fc
[ "MIT" ]
null
null
null
src/include/index/kmeans.hpp
xinyandai/similarity-search
75dc71abdd7f79094475db734fe55d04358363fc
[ "MIT" ]
9
2018-11-14T08:08:32.000Z
2022-01-08T02:42:58.000Z
//////////////////////////////////////////////////////////////////////////////// /// Copyright 2018-present Xinyan DAI<xinyan.dai@outlook.com> /// /// permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to /// deal in the...
36.356757
101
0.545941
xinyandai
082873125198dab2730ad219bcdb9f7f2d9a36c9
2,675
cpp
C++
examples/linux/socket/wind2rrd.cpp
rkuris/n2klib
e465a8f591d135d2e632186309d69a28ff7c9c4e
[ "MIT" ]
null
null
null
examples/linux/socket/wind2rrd.cpp
rkuris/n2klib
e465a8f591d135d2e632186309d69a28ff7c9c4e
[ "MIT" ]
null
null
null
examples/linux/socket/wind2rrd.cpp
rkuris/n2klib
e465a8f591d135d2e632186309d69a28ff7c9c4e
[ "MIT" ]
null
null
null
#include "n2k.h" #include "n2ksocket.h" #include "generated/windData.cc" #include "generated/waterDepth.cc" #include "generated/vesselHeading.cc" #include "pipe.h" #include <stdio.h> #include <signal.h> #include <bits/stdc++.h> void handleWind(const n2k::Message & m); void handleDepth(const n2k::Message & m); void h...
26.22549
72
0.603738
rkuris
08288a49dbd45c0cab516ec703b2330289d414a5
184
cpp
C++
NonMoveableSprite.cpp
Loathed94/2D-Game-Engine
1ac8582dabeba02767b44a5db92275c3142486a9
[ "MIT" ]
null
null
null
NonMoveableSprite.cpp
Loathed94/2D-Game-Engine
1ac8582dabeba02767b44a5db92275c3142486a9
[ "MIT" ]
null
null
null
NonMoveableSprite.cpp
Loathed94/2D-Game-Engine
1ac8582dabeba02767b44a5db92275c3142486a9
[ "MIT" ]
null
null
null
//Code written by Christian Neij #include "NonMoveableSprite.h" namespace minMotor { NonMoveableSprite::NonMoveableSprite(int x, int y, int w, int h) :Sprite(x, y, w, h) { } }
26.285714
88
0.695652
Loathed94
082c53a9a1aaffd8593069ae5ec8d82b02a72da8
6,854
cc
C++
src/box/lua/session.cc
Mons/tarantool
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
[ "BSD-2-Clause" ]
null
null
null
src/box/lua/session.cc
Mons/tarantool
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
[ "BSD-2-Clause" ]
null
null
null
src/box/lua/session.cc
Mons/tarantool
35daf23419c88e12758d49c7c60d2cc5f8a00ad1
[ "BSD-2-Clause" ]
null
null
null
/* * 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 must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * 2. Redistribu...
24.654676
69
0.707616
Mons
082f10948e4ea7c3ff2cfe8a118a4017a325e170
1,839
cpp
C++
server/languages/cxx/source/CodegenManager.cpp
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
2
2018-12-18T07:53:06.000Z
2020-02-28T11:13:21.000Z
server/languages/cxx/source/CodegenManager.cpp
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
null
null
null
server/languages/cxx/source/CodegenManager.cpp
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
null
null
null
#include "CodegenManager.h" #include "TempDirectory.h" #include "Utility.h" #include <boost/process.hpp> namespace process = boost::process; CodegenManager::CodegenManager(const string& templateDir) { this->redirectHeader = Utility::readFile(templateDir + "/redirect.h"); this->redirectCode = Utility::readFile(templ...
42.767442
172
0.728113
adamrehn
082f53921e10192d7abfdb1ca2b8d18d9607fb94
1,142
cpp
C++
src/RSA.cpp
W-angler/crypto
155f0872fa325897bc55a06dfeba4e61014ee350
[ "MIT" ]
null
null
null
src/RSA.cpp
W-angler/crypto
155f0872fa325897bc55a06dfeba4e61014ee350
[ "MIT" ]
null
null
null
src/RSA.cpp
W-angler/crypto
155f0872fa325897bc55a06dfeba4e61014ee350
[ "MIT" ]
null
null
null
#include "RSA.h" #include "prime.h" const bigint RSA::DEFAULT_E(65537); /** * RSA密钥生成 * * @param bits 密钥长度 * @return 密钥对 */ RSA::KeyPair RSA::generate(size_t bits) { size_t len = (bits + 1) / 2; bigint N; bigint p; bigint q; while (true) { p = prime::generate(len); q = prime::...
25.954545
115
0.596322
W-angler
0830d1f9bf68f1605da7ca3d31d7ae526d01e8e6
856
cpp
C++
codes/cpp/mains/test_gardp.cpp
henriquebecker91/masters
1783c05b6f916cc4eb883df26fd4eb3460f98816
[ "Unlicense" ]
1
2020-05-18T23:01:41.000Z
2020-05-18T23:01:41.000Z
codes/cpp/mains/test_gardp.cpp
henriquebecker91/masters
1783c05b6f916cc4eb883df26fd4eb3460f98816
[ "Unlicense" ]
null
null
null
codes/cpp/mains/test_gardp.cpp
henriquebecker91/masters
1783c05b6f916cc4eb883df26fd4eb3460f98816
[ "Unlicense" ]
2
2017-08-13T15:24:56.000Z
2020-03-06T00:20:48.000Z
#include "gardp.hpp" #include "test_common.hpp" // Execute the dynamic programming algorithm presented at p. 221, Integer // Programming, Robert S. Garfinkel, over a hardcoded set of instances. Used to // check if it is still working after a change. All the instances have only // integers, but we execute the gardp ver...
42.8
102
0.721963
henriquebecker91
0832a853640cac788942ef7fa9d02d958306b7cd
1,288
cc
C++
reformat-the-string.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
reformat-the-string.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
reformat-the-string.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
#include <vector> #include <string> #include <cctype> class Solution { public: std::string reformat(std::string s) { if (!s.size()) return ""; int count[2]{}; // digit, alpha for (const auto c : s) count[std::isalpha(c) ? 1 : 0]++; std::string res; ...
24.769231
54
0.270186
ArCan314
08333bcdef125c0cb9ae7a23914aa69d1f9af39c
1,482
cpp
C++
Code/Resource.cpp
JaumeMontagut/CITM_3_GameEngine
57a85b89a72723ce555a4eec3830e6bf00499de9
[ "MIT" ]
1
2020-07-09T00:38:40.000Z
2020-07-09T00:38:40.000Z
Code/Resource.cpp
YessicaSD/CITM_3_GameEngine
57a85b89a72723ce555a4eec3830e6bf00499de9
[ "MIT" ]
null
null
null
Code/Resource.cpp
YessicaSD/CITM_3_GameEngine
57a85b89a72723ce555a4eec3830e6bf00499de9
[ "MIT" ]
null
null
null
#include "Resource.h" #include "ModuleFileSystem.h" #include "JSONFile.h" #include <stdio.h> const uint Resource::type = std::hash<std::string>()(TO_STRING(Resource)); UID Resource::GetUID() const { return uid; } void Resource::SaveVariable(void * info, char ** data_cursor, size_t bytes) { memcpy(*data_cursor, inf...
18.525
78
0.711876
JaumeMontagut