hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09382a2a8eeaaf7d9fc703e2b52252e18075a2fc | 1,757 | cpp | C++ | tris_steki.cpp | IvarsSaudinis/alkoritmi-un-datu-strukturas | d3856b1428894843f2c80f27661ca6fb86ded878 | [
"MIT"
] | null | null | null | tris_steki.cpp | IvarsSaudinis/alkoritmi-un-datu-strukturas | d3856b1428894843f2c80f27661ca6fb86ded878 | [
"MIT"
] | null | null | null | tris_steki.cpp | IvarsSaudinis/alkoritmi-un-datu-strukturas | d3856b1428894843f2c80f27661ca6fb86ded878 | [
"MIT"
] | null | null | null | /*
* Papildināt nodarbībā veidoto C++ programmu, kas izveido
* stekus A, B un C. Stekos A un B tiek ierakstīti pa 15 gadījuma
* skaitļiem. Stekā C ieraksta vispirms visus steka A elementus
* un pēc tam - visus steka B elementus (kopā - stekā C jābūt 30
* elementiem).Izdrukāt visu trīs steku vērtības ekr... | 16.894231 | 75 | 0.561753 | IvarsSaudinis |
093feacf0a31201073c2c500c11fdfa15b6e253f | 1,663 | cpp | C++ | src/g2553/launchpad/tlc59731_test/main.cpp | ab2tech/msp430 | 5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3 | [
"Apache-2.0"
] | 24 | 2015-01-04T19:03:41.000Z | 2022-03-11T05:50:19.000Z | src/g2553/launchpad/tlc59731_test/main.cpp | ab2tech/msp430 | 5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3 | [
"Apache-2.0"
] | null | null | null | src/g2553/launchpad/tlc59731_test/main.cpp | ab2tech/msp430 | 5565f20f7ad7821ee6d8e0cdc7be3904a8df38b3 | [
"Apache-2.0"
] | 14 | 2015-05-05T22:47:14.000Z | 2021-10-12T13:11:14.000Z | #include "main.h"
int main(void)
{
clock(DCO_F_16MHz);
easyset tlc59731 = easyset(p1_0, 3);
for (;;) //ever
{
for (uint16_t i=0; i<255; i++)
{
tlc59731.rgbData(0, i, 0, 0);
tlc59731.rgbData(1, i, 0, 0);
tlc59731.rgbData(2, i, 0, 0);
tlc59731.update();
clo... | 22.472973 | 39 | 0.51353 | ab2tech |
093ffc5d26e4d364be09dbf388eafa0f9b073ace | 3,367 | cpp | C++ | misc/make_oid_table/scanner.cpp | sttr00/crypto | ef290e4d1b93bb3a659d2d0cafec291ee50df0e8 | [
"BSD-2-Clause"
] | null | null | null | misc/make_oid_table/scanner.cpp | sttr00/crypto | ef290e4d1b93bb3a659d2d0cafec291ee50df0e8 | [
"BSD-2-Clause"
] | null | null | null | misc/make_oid_table/scanner.cpp | sttr00/crypto | ef290e4d1b93bb3a659d2d0cafec291ee50df0e8 | [
"BSD-2-Clause"
] | null | null | null | #include "scanner.h"
#include "oid_parser.h"
#include "asn1_lexer.h"
#include "asn1_keywords.h"
#include <platform/file.h>
#include <iostream>
#include <string.h>
#include <stdio.h>
using std::string;
using namespace asn1_tokens;
static void count_lines(int &line_number, const char *data, size_t &pos)
{
for (;;)
{
... | 23.381944 | 104 | 0.608257 | sttr00 |
09449481da85643dca2b24f36b111fc35b91673b | 679 | hpp | C++ | libs/gfxtk_core/src/gfxtk/StorageTextureBindingLayout.hpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | libs/gfxtk_core/src/gfxtk/StorageTextureBindingLayout.hpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | libs/gfxtk_core/src/gfxtk/StorageTextureBindingLayout.hpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | #ifndef GFXTK_STORAGETEXTUREBINDINGLAYOUT_HPP
#define GFXTK_STORAGETEXTUREBINDINGLAYOUT_HPP
#include "microsoft_fix.hpp"
#include "PixelFormat.hpp"
#include "TextureViewType.hpp"
namespace gfxtk {
enum class StorageTextureAccess {
WriteOnly,
};
struct GFXTK_EXPORT StorageTextureBindingLayout {
... | 27.16 | 115 | 0.755523 | NostalgicGhoul |
094733f8111f8d97bec015d59b4ec3e6f2e3faa6 | 735 | cpp | C++ | codeforces/31B.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/31B.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/31B.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
char ch[202];
int main()
{
vector<char>email;
scanf("%s",ch);
int l=strlen(ch),in=0;
bool f=true;
ch[l]='a';
for(int i=0; i<l; i++)email.push_back(ch[i]);
if(ch[0]=='@' || ch[l-1]=='@') return printf("No solution\n"),0;
for(int i=1; i<l; i++)
{
if(ch[i]=='@')
... | 21.617647 | 69 | 0.515646 | Shisir |
0948b5ebeb444e95e3315f504d80843de4723b39 | 19,081 | cpp | C++ | compiler/resolution/initializerResolution.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/resolution/initializerResolution.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/resolution/initializerResolution.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2004-2017 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... | 29.628882 | 103 | 0.673445 | krishnakeshav |
094e3e3a23256ad05a6708ccd234469eae5dbeba | 7,954 | cxx | C++ | Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 2 | 2019-02-13T14:48:19.000Z | 2019-12-03T02:54:28.000Z | Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx | lfyater/Orfeo | eb3d4d56089065b99641d8ae7338d2ed0358d28a | [
"Apache-2.0"
] | 3 | 2015-10-14T10:11:38.000Z | 2015-10-15T08:26:23.000Z | Modules/Learning/Supervised/test/otbLabelMapClassifier.cxx | CS-SI/OTB | 5926aca233ff8a0fb11af1a342a6f5539cd5e376 | [
"Apache-2.0"
] | 2 | 2015-10-08T12:04:06.000Z | 2018-06-19T08:00:47.000Z | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 44.937853 | 125 | 0.722404 | lfyater |
094f60fb317a6c1fae312a99f13cc61acb2eb35c | 171 | cpp | C++ | atcoder.jp/abc129/abc129_a/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc129/abc129_a/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc129/abc129_a/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int p, q, r;
cin >> p >> q >> r;
cout << min({p + q, r + q, p + r, q + r, r + p, q + p}) << endl;
}
| 19 | 68 | 0.438596 | shikij1 |
09504c994d1eb27fcb53af4eb6dc5df9737f03a1 | 9,943 | hpp | C++ | esl/economics/markets/quote.hpp | rht/ESL | f883155a167d3c48e5ecdca91c8302fefc901c22 | [
"Apache-2.0"
] | null | null | null | esl/economics/markets/quote.hpp | rht/ESL | f883155a167d3c48e5ecdca91c8302fefc901c22 | [
"Apache-2.0"
] | null | null | null | esl/economics/markets/quote.hpp | rht/ESL | f883155a167d3c48e5ecdca91c8302fefc901c22 | [
"Apache-2.0"
] | 1 | 2021-01-27T12:11:48.000Z | 2021-01-27T12:11:48.000Z | /// \file walras.hpp
///
/// \brief A quote is the variable along which trade negotation takes place
///
/// \authors Maarten P. Scholl
/// \date 2019-04-04
/// \copyright Copyright 2017-2019 The Institute for New Economic Thinking,
/// Oxford Martin School, University of Oxford
///
/// ... | 32.923841 | 90 | 0.491703 | rht |
0950cf3e3a138040f24e35e74e06a7b9bf67d4ff | 13,609 | cpp | C++ | src/kits/tracker/TaskLoop.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/kits/tracker/TaskLoop.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/kits/tracker/TaskLoop.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
Open Tracker License
Terms and Conditions
Copyright (c) 1991-2000, Be Incorporated. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without... | 21.397799 | 81 | 0.739364 | stasinek |
0950e4dae1fbde08a13c1853c1c1de614d0aedc6 | 5,186 | cc | C++ | bubblesmp/rrtplan.cc | adnanademovic/bubbles-motion-planning | 0532e557913053f57e859f7b5aa7b8d4467fac09 | [
"BSD-2-Clause"
] | null | null | null | bubblesmp/rrtplan.cc | adnanademovic/bubbles-motion-planning | 0532e557913053f57e859f7b5aa7b8d4467fac09 | [
"BSD-2-Clause"
] | null | null | null | bubblesmp/rrtplan.cc | adnanademovic/bubbles-motion-planning | 0532e557913053f57e859f7b5aa7b8d4467fac09 | [
"BSD-2-Clause"
] | null | null | null | //
// Copyright (c) 2015, Adnan Ademovic
// 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 condit... | 33.458065 | 81 | 0.668531 | adnanademovic |
095c1de8f26bd733392bec6965501f89ad060eee | 15,565 | cpp | C++ | src/core/NEON/kernels/arm_conv/depthwise/kernels/sve_s8qs_nhwc_3x3_s1_output2x2_dot_depthfirst/generic.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 2,313 | 2017-03-24T16:25:28.000Z | 2022-03-31T03:00:30.000Z | src/core/NEON/kernels/arm_conv/depthwise/kernels/sve_s8qs_nhwc_3x3_s1_output2x2_dot_depthfirst/generic.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 952 | 2017-03-28T07:05:58.000Z | 2022-03-30T09:54:02.000Z | src/core/NEON/kernels/arm_conv/depthwise/kernels/sve_s8qs_nhwc_3x3_s1_output2x2_dot_depthfirst/generic.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 714 | 2017-03-24T22:21:51.000Z | 2022-03-18T19:49:57.000Z | /*
* Copyright (c) 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 40.012853 | 340 | 0.531192 | MaximMilashchenko |
8231b94ae1cb5098998b7626a9890b8d3eb6a308 | 2,895 | cpp | C++ | plugin/game_plugin/game_plugin/command/TriggerCommand.cpp | thetodd/em5_bma | c5fdfbe1101dce1f0de223a2d5b935b4470cd360 | [
"MIT"
] | 2 | 2016-07-07T11:45:19.000Z | 2021-03-19T06:15:51.000Z | plugin/game_plugin/game_plugin/command/TriggerCommand.cpp | thetodd/em5_bma | c5fdfbe1101dce1f0de223a2d5b935b4470cd360 | [
"MIT"
] | 9 | 2016-07-07T11:57:28.000Z | 2016-07-18T15:56:41.000Z | plugin/game_plugin/game_plugin/command/TriggerCommand.cpp | thetodd/em5_bma | c5fdfbe1101dce1f0de223a2d5b935b4470cd360 | [
"MIT"
] | null | null | null | // Copyright (C) 2012-2015 Promotion Software GmbH
//[-------------------------------------------------------]
//[ Includes ]
//[-------------------------------------------------------]
#include "game_plugin/PrecompiledHeader.h"
#include "game_plugin/command/TriggerCommand... | 34.464286 | 87 | 0.462867 | thetodd |
82355b0a08fd90fcd564b2614ee7868fc49b2236 | 460 | cpp | C++ | client/src/bindings/LocalPlayer.cpp | LennartF22/altv-js-module | f3951ffccedad4e929818faaa5c154f761bf9355 | [
"MIT"
] | 1 | 2021-09-27T19:23:39.000Z | 2021-09-27T19:23:39.000Z | client/src/bindings/LocalPlayer.cpp | xxshady/altv-js-module | 64f5b23ff417b25a65d56e92fd39f28fb23dead7 | [
"MIT"
] | null | null | null | client/src/bindings/LocalPlayer.cpp | xxshady/altv-js-module | 64f5b23ff417b25a65d56e92fd39f28fb23dead7 | [
"MIT"
] | null | null | null | #include "V8Helpers.h"
#include "V8Class.h"
#include "V8Entity.h"
#include "V8ResourceImpl.h"
#include "V8BindHelpers.h"
#include "cpp-sdk/objects/ILocalPlayer.h"
extern V8Class v8Player;
extern V8Class v8LocalPlayer("LocalPlayer", v8Player, [](v8::Local<v8::FunctionTemplate> tpl) {
v8::Isolate* isolate = v8::Iso... | 30.666667 | 114 | 0.736957 | LennartF22 |
8236463ff579a348d4a1f6cb7a82e38309a7f117 | 16,096 | hh | C++ | Fleece/Tree/MutableNode.hh | tophatch/fleece | 8853b610575c1a7d68681a792188bab9c0c1ec7d | [
"Apache-2.0"
] | 134 | 2016-05-09T19:42:55.000Z | 2022-01-16T13:05:18.000Z | Fleece/Tree/MutableNode.hh | tophatch/fleece | 8853b610575c1a7d68681a792188bab9c0c1ec7d | [
"Apache-2.0"
] | 70 | 2016-05-09T05:16:46.000Z | 2022-03-08T19:43:30.000Z | Fleece/Tree/MutableNode.hh | tophatch/fleece | 8853b610575c1a7d68681a792188bab9c0c1ec7d | [
"Apache-2.0"
] | 32 | 2016-05-19T10:38:06.000Z | 2022-01-30T22:45:25.000Z | //
// MutableNode.hh
// Fleece
//
// Created by Jens Alfke on 6/22/18.
// Copyright 2018-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Busin... | 35.610619 | 117 | 0.529697 | tophatch |
823b257f8521e661e50da3c78277b3fc07ec54ed | 975 | cpp | C++ | src/util/converter.cpp | tomezpl/EasyGIF | 22c7ae30b16e9a4d4facf8374be3bf32813c8a23 | [
"MIT"
] | null | null | null | src/util/converter.cpp | tomezpl/EasyGIF | 22c7ae30b16e9a4d4facf8374be3bf32813c8a23 | [
"MIT"
] | 3 | 2016-09-02T22:15:25.000Z | 2016-12-24T17:34:03.000Z | src/util/converter.cpp | tomezpl/EasyGIF | 22c7ae30b16e9a4d4facf8374be3bf32813c8a23 | [
"MIT"
] | null | null | null | // converter.cpp
// Author: Tomasz Zajac
#include "converter.hpp"
using namespace EasyGIF::Utility;
sf::Image Converter::ImgFrameToSFImage(::EasyGIF::ImageFrame frame)
{
sf::Image ret;
ret.create(frame.GetWidth(), frame.GetHeight(), sf::Color::White);
uint8_t* buf = frame.GetBuffer();
for(unsigned long y = 0;... | 25.657895 | 93 | 0.558974 | tomezpl |
823efe5ae679a8c58010af24a9c300abcbcc952b | 29,425 | cpp | C++ | gen/blink/bindings/modules/v8/V8HTMLMediaElementPartial.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 8 | 2019-05-05T16:38:05.000Z | 2021-11-09T11:45:38.000Z | gen/blink/bindings/modules/v8/V8HTMLMediaElementPartial.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | null | null | null | gen/blink/bindings/modules/v8/V8HTMLMediaElementPartial.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 4 | 2018-12-14T07:52:46.000Z | 2021-06-11T18:06:09.000Z | // Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8HTMLMediaElementPartial.h"
#include "bindin... | 54.289668 | 394 | 0.76401 | gergul |
824016a5c1506a5d9e65f7f6cf5576ad420f0f03 | 3,170 | cpp | C++ | ui/src/audioeditor.cpp | pixeldoc2000/qlcplus | 21b2921360c249f3f8aae707bb35b6db5e619b43 | [
"Apache-2.0"
] | null | null | null | ui/src/audioeditor.cpp | pixeldoc2000/qlcplus | 21b2921360c249f3f8aae707bb35b6db5e619b43 | [
"Apache-2.0"
] | null | null | null | ui/src/audioeditor.cpp | pixeldoc2000/qlcplus | 21b2921360c249f3f8aae707bb35b6db5e619b43 | [
"Apache-2.0"
] | null | null | null | /*
Q Light Controller
audioeditor.cpp
Copyright (c) Massimo Callegari
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.txt
Unless req... | 28.053097 | 82 | 0.667823 | pixeldoc2000 |
824586b6639fb944c49c192c691ef1433c8670b9 | 35,107 | cpp | C++ | 2004/samples/entity/curvetext/curvetext_db/CurveText.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 1 | 2021-06-25T02:58:47.000Z | 2021-06-25T02:58:47.000Z | 2004/samples/entity/curvetext/curvetext_db/CurveText.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | null | null | null | 2004/samples/entity/curvetext/curvetext_db/CurveText.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 3 | 2020-05-23T02:47:44.000Z | 2020-10-27T01:26:53.000Z | // (C) Copyright 1993-2002 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warr... | 26.043769 | 114 | 0.653032 | kevinzhwl |
824595dce4e9bcffb6b6821f353bda30965a0c7f | 506 | cpp | C++ | codechef/the_one_on_the_last_night.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | 1 | 2021-09-30T19:14:59.000Z | 2021-09-30T19:14:59.000Z | codechef/the_one_on_the_last_night.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | null | null | null | codechef/the_one_on_the_last_night.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | 1 | 2021-10-01T14:29:20.000Z | 2021-10-01T14:29:20.000Z | #include<bits/stdc++.h>
using namespace std;
/* https://www.codechef.com/problems/S06E06 */
/* Successfully build the logic, but forgot to set the condition in the first attempt */
int main(){
int t;
cin >> t;
while(t--){
int n, k;
vector<int> v;
cin >> n >> k;
while(n){
v.push_back(n%10);
n /= 10... | 13.315789 | 88 | 0.517787 | k10tetry |
824cab22b063640f7ad981eccd6485843caeabae | 1,805 | cpp | C++ | OpenTESArena/src/Interface/PauseMenuUiView.cpp | michealccc/OpenTESArena | 7b4fd688677abea2ef03fa655b6d1669b1c8d77d | [
"MIT"
] | 742 | 2016-03-09T17:18:55.000Z | 2022-03-21T07:23:47.000Z | OpenTESArena/src/Interface/PauseMenuUiView.cpp | michealccc/OpenTESArena | 7b4fd688677abea2ef03fa655b6d1669b1c8d77d | [
"MIT"
] | 196 | 2016-06-07T15:19:21.000Z | 2021-12-12T16:50:58.000Z | OpenTESArena/src/Interface/PauseMenuUiView.cpp | michealccc/OpenTESArena | 7b4fd688677abea2ef03fa655b6d1669b1c8d77d | [
"MIT"
] | 85 | 2016-04-17T13:25:16.000Z | 2022-03-25T06:45:15.000Z | #include "PauseMenuUiView.h"
#include "../Assets/ArenaPaletteName.h"
#include "../Assets/ArenaTextureName.h"
#include "../Assets/TextureAssetReference.h"
namespace
{
const std::string DummyVolumeText = "100"; // Worst-case text size for sound/music volume.
}
TextBox::InitInfo PauseMenuUiView::getSoundTextBoxInitInfo... | 30.59322 | 122 | 0.820499 | michealccc |
824dc120ab029b5da5fd99e9966ff54676ad85d8 | 1,654 | cpp | C++ | src/plugins/opencv/nodes/sequence/max_index.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 1 | 2020-10-06T08:40:10.000Z | 2020-10-06T08:40:10.000Z | src/plugins/opencv/nodes/sequence/max_index.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | null | null | null | src/plugins/opencv/nodes/sequence/max_index.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | null | null | null | #include <possumwood_sdk/node_implementation.h>
#include <tbb/parallel_for.h>
#include "sequence.h"
namespace {
dependency_graph::InAttr<possumwood::opencv::Sequence> a_in;
dependency_graph::OutAttr<possumwood::opencv::Frame> a_out;
dependency_graph::State compute(dependency_graph::Values& data) {
const possumwood... | 23.971014 | 96 | 0.65659 | LIUJUN-liujun |
824e2206ec37b27018dfbf95e6c86cc8a5312f53 | 787 | cc | C++ | Cplusplus/Bootcamp/03_MoreBasics/3_Exercise/main.cc | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Cplusplus/Bootcamp/03_MoreBasics/3_Exercise/main.cc | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | Cplusplus/Bootcamp/03_MoreBasics/3_Exercise/main.cc | Kreijeck/learning | eaffee08e61f2a34e01eb8f9f04519aac633f48c | [
"MIT"
] | null | null | null | #include "exercise.h"
#include <iostream>
struct Dataset
{
int mean_array_a;
double mean_array_b;
};
int main()
{
// Exercise 1
const unsigned int array_elements = 5;
int array_a[array_elements] = {1, 2, 3, 4, 5};
double array_b[array_elements] = {1.0, 2.5, 3.5, 4.5, 10.0};
double mean_ar... | 26.233333 | 81 | 0.656925 | Kreijeck |
824fe3afbc6a7de485b781af37843e95752e729a | 11,208 | cpp | C++ | SimpleTextBlock.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 4 | 2018-05-17T11:17:26.000Z | 2021-12-01T00:48:43.000Z | SimpleTextBlock.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | null | null | null | SimpleTextBlock.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 1 | 2021-05-31T19:08:00.000Z | 2021-05-31T19:08:00.000Z | // SimpleTextBlock.cpp
#include "SimpleTextBlock.h"
#include "VisualPainter.h"
#include "TextStyleRegistry.h"
#include "TextDocumentReader.h"
#include "TextStyleReader.h"
#include "CharBuffer.h"
#include <algorithm>
SimpleTextBlock::SimpleTextBlock( SimpleLayoutDataPtr data, const TextStyleRegistry& styleRe... | 31.133333 | 146 | 0.65596 | briangreenery |
82503df944f34af64f3e8271303aad8c9481514d | 3,942 | cpp | C++ | lib/game/src/Application.cpp | MarkRDavison/zeno | cea002e716e624d28130e836bf56e9f2f1d2e484 | [
"MIT"
] | null | null | null | lib/game/src/Application.cpp | MarkRDavison/zeno | cea002e716e624d28130e836bf56e9f2f1d2e484 | [
"MIT"
] | null | null | null | lib/game/src/Application.cpp | MarkRDavison/zeno | cea002e716e624d28130e836bf56e9f2f1d2e484 | [
"MIT"
] | null | null | null | #include <zeno/Game/Application.hpp>
#include <zeno/Core/Clock.hpp>
#include <zeno/Window/Window.hpp>
#include <iostream>
namespace ze {
bool Application::startSplash(const VideoMode& _videoMode, Scene* _splashScene) {
m_StartingMode = _videoMode;
m_SplashShowing = true;
VideoMode splashVideoMode = _videoMode... | 23.052632 | 151 | 0.664637 | MarkRDavison |
82577a9d827055ed131d67f1d8ff8595c7247d5c | 550 | cpp | C++ | GraphicsProject/IntRect.cpp | Megarev/TypeArt | 68b2ce6b69ff3bc61f0090bab14bfac962875a74 | [
"MIT"
] | 2 | 2020-07-06T12:09:30.000Z | 2020-10-22T08:47:39.000Z | IntRect.cpp | Megarev/TypeArt | 68b2ce6b69ff3bc61f0090bab14bfac962875a74 | [
"MIT"
] | null | null | null | IntRect.cpp | Megarev/TypeArt | 68b2ce6b69ff3bc61f0090bab14bfac962875a74 | [
"MIT"
] | null | null | null | #include "IntRect.h"
IntRect::IntRect() {}
IntRect::IntRect(int x, int y, int w, int h) {
pos = { x, y };
size = { w, h };
}
bool IntRect::IsPointInBounds(const olc::vi2d& point) {
return (point.x > pos.x && point.y > pos.y && point.x < (pos.x + size.x) && point.y < (pos.y + size.y));
}
void IntRect... | 19.642857 | 106 | 0.58 | Megarev |
8266f26ac392da4aaaae6e1ab7eb34d945c946a2 | 5,736 | cpp | C++ | Project_JTF/Intermediate/Build/Win64/UE4Editor/Inc/Project_JTF/C_Recruit.gen.cpp | wnrmsah328/Project_JTF | 72ff1efb116ce19f0575c3db4f99c860ddae26e8 | [
"MIT"
] | null | null | null | Project_JTF/Intermediate/Build/Win64/UE4Editor/Inc/Project_JTF/C_Recruit.gen.cpp | wnrmsah328/Project_JTF | 72ff1efb116ce19f0575c3db4f99c860ddae26e8 | [
"MIT"
] | null | null | null | Project_JTF/Intermediate/Build/Win64/UE4Editor/Inc/Project_JTF/C_Recruit.gen.cpp | wnrmsah328/Project_JTF | 72ff1efb116ce19f0575c3db4f99c860ddae26e8 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
========================================================================... | 49.025641 | 507 | 0.806311 | wnrmsah328 |
8266f59ed6df71e87481b43c9e88fa8d05ecc0a9 | 2,956 | cpp | C++ | src/common/fpmath_mode.cpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 971 | 2020-04-03T19:48:05.000Z | 2022-03-31T19:42:43.000Z | src/common/fpmath_mode.cpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 583 | 2020-04-04T02:37:25.000Z | 2022-03-31T00:12:03.000Z | src/common/fpmath_mode.cpp | JackAKirk/oneDNN | 432c3f0c1c265a0fa96aa46c256d150ea670eb5a | [
"Apache-2.0"
] | 295 | 2020-04-03T20:07:00.000Z | 2022-03-30T13:10:15.000Z | /*******************************************************************************
* Copyright 2021 Intel 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.o... | 33.590909 | 80 | 0.647835 | JackAKirk |
826742b49e2b730f4f29c2d9c01169d3ad43944d | 2,214 | hpp | C++ | include/depthai/openvino/OpenVINO.hpp | diablodale/depthai-core | 9f5d0861c07fea580c652f435c7e1422473ae079 | [
"MIT"
] | null | null | null | include/depthai/openvino/OpenVINO.hpp | diablodale/depthai-core | 9f5d0861c07fea580c652f435c7e1422473ae079 | [
"MIT"
] | null | null | null | include/depthai/openvino/OpenVINO.hpp | diablodale/depthai-core | 9f5d0861c07fea580c652f435c7e1422473ae079 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <exception>
#include <map>
#include <string>
#include <utility>
#include <vector>
namespace dai {
/// Support for basic OpenVINO related actions like version identification of neural network blobs,...
class OpenVINO {
public:
/// OpenVINO Version supported version in... | 34.061538 | 118 | 0.720416 | diablodale |
826f35e882c0422d04e9be2dd267f4bc1e01f4a8 | 2,584 | cxx | C++ | Code/Numerics/Statistics/itkDenseFrequencyContainer.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T18:41:02.000Z | 2017-07-31T18:41:02.000Z | Code/Numerics/Statistics/itkDenseFrequencyContainer.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | null | null | null | Code/Numerics/Statistics/itkDenseFrequencyContainer.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkDenseFrequencyContainer.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyr... | 24.609524 | 76 | 0.693498 | dtglidden |
8279076fdeb9f2e7db2014cead15d16883b8b1da | 8,371 | hpp | C++ | poc/tstvc2/thread_cv.hpp | upenn-acg/barracuda | db2549b62593934d81e3e8141302dd344f85a407 | [
"BSD-3-Clause"
] | 3 | 2020-05-08T04:37:48.000Z | 2021-01-31T15:57:15.000Z | poc/tstvc2/thread_cv.hpp | upenn-acg/barracuda | db2549b62593934d81e3e8141302dd344f85a407 | [
"BSD-3-Clause"
] | 1 | 2020-11-22T18:24:12.000Z | 2020-11-22T18:24:12.000Z | poc/tstvc2/thread_cv.hpp | upenn-acg/barracuda | db2549b62593934d81e3e8141302dd344f85a407 | [
"BSD-3-Clause"
] | 2 | 2019-12-04T05:43:51.000Z | 2019-12-04T07:57:31.000Z | #pragma once
#include <stdint.h>
#include <algorithm>
#include "debug.h"
typedef uint64_t tid_t;
struct thread_cv
{
public:
void diverge_from(thread_cv& other_cv, uint32_t active_mask, uint32_t epoch)
{
release();
// fast path
if (other_cv.b.flags == MODE_BASIC && other_cv.b.warp == 0)
{
b.flags = MODE... | 20.618227 | 81 | 0.575797 | upenn-acg |
827921607fc85590c89c8f2b58bd38e00a518dea | 861 | cpp | C++ | Raven/src/Client/Chunk/ChunkColumn.cpp | IridescentRose/Raven-Client | e39a88eef8d56067387acaaad19ec44ddaab3869 | [
"MIT"
] | 10 | 2020-10-05T23:11:25.000Z | 2022-01-30T13:22:33.000Z | Raven/src/Client/Chunk/ChunkColumn.cpp | IridescentRose/Raven-Client | e39a88eef8d56067387acaaad19ec44ddaab3869 | [
"MIT"
] | 3 | 2020-07-09T16:08:54.000Z | 2020-08-05T19:58:41.000Z | Raven/src/Client/Chunk/ChunkColumn.cpp | NT-Bourgeois-Iridescence-Technologies/Raven-Client | e39a88eef8d56067387acaaad19ec44ddaab3869 | [
"MIT"
] | 2 | 2021-02-06T08:01:26.000Z | 2021-06-19T07:39:59.000Z | #include "ChunkColumn.h"
#include <iostream>
namespace Minecraft::Internal::Chunks {
ChunkColumn::ChunkColumn(int x, int z)
{
cX = x;
cZ = z;
sections.clear();
for (int xx = 0; xx < CHUNK_SECTION_LENGTH; xx++) {
for (int yy = 0; yy < CHUNK_SECTION_LENGTH; yy++) {
biomes[xx][yy] = 1;
}
}
}
Ch... | 14.844828 | 54 | 0.598142 | IridescentRose |
82794634d1d2b6b12024c383212b747ad20578c2 | 3,242 | cpp | C++ | test/unit/math/mix/meta/require_generics_test.cpp | christophernhill/math | dc41aba296d592c7099be15eed6ba136d0f140b3 | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/mix/meta/require_generics_test.cpp | christophernhill/math | dc41aba296d592c7099be15eed6ba136d0f140b3 | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/mix/meta/require_generics_test.cpp | christophernhill/math | dc41aba296d592c7099be15eed6ba136d0f140b3 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/fwd.hpp>
#include <stan/math/rev.hpp>
#include <stan/math/prim/scal.hpp>
#include <test/unit/math/require_util.hpp>
#include <gtest/gtest.h>
#include <type_traits>
#include <string>
TEST(requires_mix_scal, var_or_fvar_mix_test) {
using stan::math::fvar;
using stan::math::var;
using stan::test... | 35.23913 | 80 | 0.712832 | christophernhill |
8279c566bca1640475094050f03e8cc448c85851 | 6,252 | cpp | C++ | glsl_compiler/glslang/MachineIndependent/limits.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | 3 | 2019-12-07T23:57:47.000Z | 2019-12-31T19:46:41.000Z | glsl_compiler/glslang/MachineIndependent/limits.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | null | null | null | glsl_compiler/glslang/MachineIndependent/limits.cpp | FAETHER/VEther | 081f0df2c4279c21e1d55bfc336a43bc96b5f1c3 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2013 LunarG, 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:
//
// Redistributions of source code must retain the above copyright
// notice, this... | 29.771429 | 101 | 0.694658 | FAETHER |
827ee22ddbb4d3456f769040caecaafc771e37bd | 5,307 | cpp | C++ | renderer.cpp | nvpro-samples/vk_device_generated_cmds | 7c4ad63e431f7369a7a76769f92baa968fc7156f | [
"Apache-2.0"
] | 20 | 2020-03-17T23:48:47.000Z | 2022-03-29T04:23:59.000Z | renderer.cpp | nvpro-samples/vk_device_generated_cmds | 7c4ad63e431f7369a7a76769f92baa968fc7156f | [
"Apache-2.0"
] | 1 | 2021-01-10T04:50:40.000Z | 2021-01-10T04:50:40.000Z | renderer.cpp | nvpro-samples/vk_device_generated_cmds | 7c4ad63e431f7369a7a76769f92baa968fc7156f | [
"Apache-2.0"
] | 2 | 2020-07-26T06:05:59.000Z | 2021-01-10T00:29:54.000Z | /*
* Copyright (c) 2019-2021, NVIDIA 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 ... | 31.217647 | 195 | 0.621443 | nvpro-samples |
827fd90182e5e0265ec2642470a3d2348f3c654f | 5,278 | hh | C++ | elements/loadbalancers/LoadBalancePPC.hh | ANLAB-KAIST/NBA | a093a72af32ccdc041792a01ae65a699294470cd | [
"MIT"
] | 61 | 2015-03-25T04:49:09.000Z | 2020-11-24T08:36:19.000Z | elements/loadbalancers/LoadBalancePPC.hh | ANLAB-KAIST/NBA | a093a72af32ccdc041792a01ae65a699294470cd | [
"MIT"
] | 32 | 2015-04-29T08:20:39.000Z | 2017-02-09T22:49:37.000Z | elements/loadbalancers/LoadBalancePPC.hh | ANLAB-KAIST/NBA | a093a72af32ccdc041792a01ae65a699294470cd | [
"MIT"
] | 11 | 2015-07-24T22:48:05.000Z | 2020-09-10T11:48:47.000Z | #ifndef __NBA_ELEMENT_LOADBALANCEPPC_HH__
#define __NBA_ELEMENT_LOADBALANCEPPC_HH__
#include <nba/element/element.hh>
#include <nba/element/annotation.hh>
#include <nba/framework/loadbalancer.hh>
#include <nba/framework/logging.hh>
#include <nba/core/queue.hh>
#include <vector>
#include <string>
#include <random>
#inc... | 33.617834 | 111 | 0.568587 | ANLAB-KAIST |
8283a28c98bcdcff9003fe99d38261b11a304f57 | 1,059 | hpp | C++ | include/codegen/include/GlobalNamespace/IRichPresencePlatformHandler.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/IRichPresencePlatformHandler.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/IRichPresencePlatformHandler.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Completed includes
// Begin forward declares
// Forward declaring namespace: GlobalNamespace
namespace GlobalNamespace {
// Fo... | 34.16129 | 107 | 0.721435 | Futuremappermydud |
8287b93b336229e349bec3690ef55932ba439aea | 1,985 | hpp | C++ | Source/wali/include/wali/IMarkable.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/Source/wali/IMarkable.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/Source/wali/IMarkable.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #ifndef wali_IMARKABLE_GUARD
#define wali_IMARKABLE_GUARD 1
/*!
* @author Nicholas Kidd
*/
#include "wali/Common.hpp"
namespace wali
{
/*!
* @class IMarkable
*
* IMarkable defines the Markable interface. Markable objects are things
* that need to be placed in a worklist while possibly being in the
... | 24.8125 | 77 | 0.611587 | jusito |
8288c168a0b88232a75e7cb1b49b6900d9219dda | 2,409 | cpp | C++ | time_service.cpp | aclement30/bondi | 17753c80f4f6a69b30a10ec2d7f42c29fb1ee0c6 | [
"Apache-2.0"
] | null | null | null | time_service.cpp | aclement30/bondi | 17753c80f4f6a69b30a10ec2d7f42c29fb1ee0c6 | [
"Apache-2.0"
] | null | null | null | time_service.cpp | aclement30/bondi | 17753c80f4f6a69b30a10ec2d7f42c29fb1ee0c6 | [
"Apache-2.0"
] | null | null | null | #include <DS1302RTC.h>
#include <Time.h>
#include "constants.h"
#include "config.h"
#include "string.h"
#include "time_service.h"
TimeService & TimeService::getInstance() {
static TimeService instance; // Guaranteed to be destroyed.
// Instantiated on first use.
return in... | 28.011628 | 131 | 0.660025 | aclement30 |
828ecbf9cabd6e8ef3e35c16fc48b5a7e42b0fd5 | 146 | cpp | C++ | FootCommander.cpp | snir1551/Ex7_C- | bbfb91ddee016b4f729359f5e50038e2267a795e | [
"MIT"
] | 1 | 2021-05-31T13:11:04.000Z | 2021-05-31T13:11:04.000Z | FootCommander.cpp | snir1551/Ex7_C- | bbfb91ddee016b4f729359f5e50038e2267a795e | [
"MIT"
] | null | null | null | FootCommander.cpp | snir1551/Ex7_C- | bbfb91ddee016b4f729359f5e50038e2267a795e | [
"MIT"
] | null | null | null | #include "FootCommander.hpp"
namespace WarGame {
FootCommander::FootCommander(int numPlayer): Soldier(numPlayer,150,20)
{
}
} | 20.857143 | 74 | 0.671233 | snir1551 |
82952d723675f438d4d6ad47072e113f3a7fc7d3 | 51,460 | cpp | C++ | imdexp/src/strip/zappy/CustomArray.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 2 | 2022-01-02T08:12:29.000Z | 2022-02-12T22:15:11.000Z | imdexp/src/strip/zappy/CustomArray.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | null | null | null | imdexp/src/strip/zappy/CustomArray.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 1 | 2022-01-02T08:09:51.000Z | 2022-01-02T08:09:51.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Source code for "Creating Efficient Triangle Strips"
// (C) 2000, Pierre Terdiman (p.terdiman@wanadoo.fr)
//
// Ve... | 39.46319 | 199 | 0.345297 | olivierchatry |
8298f03ee429b491a588f3582e4a4ebfab09114f | 1,699 | cpp | C++ | solved/u-w/unidirectional-tsp/tsp.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/u-w/unidirectional-tsp/tsp.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/u-w/unidirectional-tsp/tsp.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#define MAXM 10
#define MAXN 100
int m, n;
int maze[MAXM][MAXN];
// dp[i][j]: minimum cost of path that goes from right to left and ends in
// position (i, j)
int dp[MAXM][MAXN];
// next[i][j]: row of the next position in the best path from (i, j)
int next[MAXM][MAXN];
void print_path(int r)
{... | 19.528736 | 76 | 0.373161 | abuasifkhan |
8299b457efcec9e166e79c3cf176de3b43648877 | 2,131 | cpp | C++ | libvast/src/detail/line_range.cpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | null | null | null | libvast/src/detail/line_range.cpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | 1 | 2019-11-29T12:43:41.000Z | 2019-11-29T12:43:41.000Z | libvast/src/detail/line_range.cpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 29.191781 | 80 | 0.502112 | knapperzbusch |
829b0eaf1c0f63af3e7aac9a614b4a929c2b9639 | 273 | cpp | C++ | SEARCHING/EASY/Valid Perfect Square/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | 3 | 2021-08-31T11:02:28.000Z | 2022-01-17T08:07:00.000Z | SEARCHING/EASY/Valid Perfect Square/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | SEARCHING/EASY/Valid Perfect Square/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | /*
PROBLEM LINK:- https://leetcode.com/problems/valid-perfect-square/
*/
class Solution {
public:
bool isPerfectSquare(int num) {
int i = 1;
while(num > 0)
{
num -= i;
i += 2;
}
return num == 0;
}
};
| 16.058824 | 66 | 0.465201 | HassanRahim26 |
829bb6860abb6c29c2f2d34c434dbe7109246650 | 5,825 | cpp | C++ | libcaf_core/src/config_value.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2019-05-03T05:38:15.000Z | 2020-08-25T15:23:19.000Z | libcaf_core/src/config_value.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/src/config_value.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 27.606635 | 80 | 0.520172 | jsiwek |
829ed32133c42c44b23c23f75f4f8912812a7bda | 3,816 | cpp | C++ | Crypt/test/src/codec/test_extended_precision.cpp | tmiguelf/crypt | bf921f04b035cecaf2a06970d4aaa9a6a9524007 | [
"MIT"
] | null | null | null | Crypt/test/src/codec/test_extended_precision.cpp | tmiguelf/crypt | bf921f04b035cecaf2a06970d4aaa9a6a9524007 | [
"MIT"
] | null | null | null | Crypt/test/src/codec/test_extended_precision.cpp | tmiguelf/crypt | bf921f04b035cecaf2a06970d4aaa9a6a9524007 | [
"MIT"
] | null | null | null | //======== ======== ======== ======== ======== ======== ======== ========
/// \file
///
/// \copyright
/// Copyright (c) Tiago Miguel Oliveira Freire
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
... | 40.168421 | 168 | 0.675839 | tmiguelf |
82a1a5337a5f2704566cd0e39f46aef9a93b22bf | 1,114 | cpp | C++ | 450/Utkarsh/array/mergeTwoSortedArrays.cpp | stunnerhash/Competitive-Programming | 7ef3e36dd1bf5744fb2edea5e64e851c5a02f631 | [
"MIT"
] | 1 | 2021-07-27T03:54:41.000Z | 2021-07-27T03:54:41.000Z | 450/Utkarsh/array/mergeTwoSortedArrays.cpp | stunnerhash/Competitive-Programming | 7ef3e36dd1bf5744fb2edea5e64e851c5a02f631 | [
"MIT"
] | null | null | null | 450/Utkarsh/array/mergeTwoSortedArrays.cpp | stunnerhash/Competitive-Programming | 7ef3e36dd1bf5744fb2edea5e64e851c5a02f631 | [
"MIT"
] | null | null | null | //https://practice.geeksforgeeks.org/problems/merge-two-sorted-arrays5135/1
#include<bits/stdc++.h>
using namespace std;
// literally 4 lines of code
void merge4LOC(int arr1[], int arr2[], int n, int m){
int j = 0, i = n-1;
while(j < m && i > -1 && arr2[j] < arr1[i])
swap(arr2[j++],arr1[i--]);
sor... | 25.318182 | 75 | 0.474865 | stunnerhash |
82a7135643c5ad638ba81a7a09343f34bdd26d2d | 234 | cpp | C++ | Road-of-Gold/Road-of-Gold/Sandglass.cpp | SKN-JP/Road_of_gold | f9646656662f38aa292d8b3cdb5be234eb946212 | [
"MIT"
] | 14 | 2017-07-11T13:59:50.000Z | 2017-09-07T01:06:24.000Z | Road-of-Gold/Road-of-Gold/Sandglass.cpp | SKN-JP/Road_of_gold | f9646656662f38aa292d8b3cdb5be234eb946212 | [
"MIT"
] | 10 | 2017-09-25T12:56:05.000Z | 2017-10-20T07:59:06.000Z | Road-of-Gold/Road-of-Gold/Sandglass.cpp | sknjpn/Road-of-Gold | f9646656662f38aa292d8b3cdb5be234eb946212 | [
"MIT"
] | 3 | 2017-08-11T15:54:21.000Z | 2017-08-30T10:20:42.000Z | #include"Sandglass.h"
#include"Planet.h"
Sandglass::Sandglass(double _timer)
: timer(_timer)
{}
bool Sandglass::update()
{
timer += planet.timeSpeed;
if (int(timer) != int(timer - planet.timeSpeed)) return true;
return false;
} | 16.714286 | 62 | 0.705128 | SKN-JP |
82ad71b569e32bf6b137745abfd8119e18f52eb1 | 2,427 | hpp | C++ | library/ATF/ATL___NoAddRefReleaseOnCComPtr.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/ATL___NoAddRefReleaseOnCComPtr.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/ATL___NoAddRefReleaseOnCComPtr.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <IPersistStream.hpp>
START_ATF_NAMESPACE
namespace ATL
{
template<>
struct _NoAddRefReleaseOnCComPtr<IPersistStream> : IPersistStream
... | 19.416 | 108 | 0.643593 | lemkova |
82aecbf1364f19974512ff0d6c907dbad69e603a | 3,387 | cpp | C++ | oem/ibm/libpldmresponder/file_io_type_cert.cpp | ibmzach/pldm | 1a636b2ce8b97e6ea9378632e96532fcbdcbed87 | [
"Apache-2.0"
] | null | null | null | oem/ibm/libpldmresponder/file_io_type_cert.cpp | ibmzach/pldm | 1a636b2ce8b97e6ea9378632e96532fcbdcbed87 | [
"Apache-2.0"
] | null | null | null | oem/ibm/libpldmresponder/file_io_type_cert.cpp | ibmzach/pldm | 1a636b2ce8b97e6ea9378632e96532fcbdcbed87 | [
"Apache-2.0"
] | null | null | null | #include "file_io_type_cert.hpp"
#include "libpldm/base.h"
#include "oem/ibm/libpldm/file_io.h"
#include "utils.hpp"
#include <stdint.h>
#include <iostream>
namespace pldm
{
namespace responder
{
static constexpr auto csrFilePath = "/var/lib/bmcweb/CSR";
static constexpr auto rootCertPath = "/var/lib/bmcweb/RootC... | 25.466165 | 77 | 0.595807 | ibmzach |
82b0b7d4ab50a9732b82868b87bf942d32715ef6 | 5,873 | hxx | C++ | opencascade/IFSelect_Dispatch.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IFSelect_Dispatch.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/IFSelect_Dispatch.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 1992-11-17
// Created by: Christian CAILLET
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the ... | 38.385621 | 114 | 0.757194 | mgreminger |
a1135c145f9d46f393f3d3f7a88deda642e6a41f | 5,532 | hpp | C++ | src/i_to_s.hpp | paulora2405/tec-tf | a8ff9afd29489ad570f6de283054ffeb67739d46 | [
"MIT"
] | null | null | null | src/i_to_s.hpp | paulora2405/tec-tf | a8ff9afd29489ad570f6de283054ffeb67739d46 | [
"MIT"
] | null | null | null | src/i_to_s.hpp | paulora2405/tec-tf | a8ff9afd29489ad570f6de283054ffeb67739d46 | [
"MIT"
] | null | null | null | #ifndef I_TO_S_HPP
#define I_TO_S_HPP
#include <iostream>
#include <string>
#include <vector>
#include "s_to_i.hpp"
std::vector<quintuple> i_to_s(std::vector<quintuple> m) {
std::cout << "DI to Sipser" << std::endl;
std::vector<quintuple> m_new;
// primeiro passo é renomear o estado inicial de '0' para '0inic... | 34.148148 | 76 | 0.594541 | paulora2405 |
a11d4e9e4a9a1408a579b56384d2b42aae0267e4 | 3,262 | cpp | C++ | src/dawn_wire/client/Fence.cpp | mingmingtasd/Dawn | 3668d352bc5fe13af27dc178d203f67032537a7f | [
"Apache-2.0"
] | null | null | null | src/dawn_wire/client/Fence.cpp | mingmingtasd/Dawn | 3668d352bc5fe13af27dc178d203f67032537a7f | [
"Apache-2.0"
] | null | null | null | src/dawn_wire/client/Fence.cpp | mingmingtasd/Dawn | 3668d352bc5fe13af27dc178d203f67032537a7f | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The Dawn Authors
//
// 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 t... | 33.979167 | 96 | 0.656959 | mingmingtasd |
a11e761a543db1775f163000577b5f9fc88201c4 | 1,522 | hpp | C++ | src/sequence.hpp | brohan203/rala | 80f6530fa8f2acd96564313790cc559aceb7154f | [
"MIT"
] | 27 | 2017-12-21T17:10:06.000Z | 2020-04-30T22:15:22.000Z | src/sequence.hpp | brohan203/rala | 80f6530fa8f2acd96564313790cc559aceb7154f | [
"MIT"
] | 3 | 2017-12-21T17:10:51.000Z | 2021-05-20T06:03:56.000Z | src/sequence.hpp | brohan203/rala | 80f6530fa8f2acd96564313790cc559aceb7154f | [
"MIT"
] | 3 | 2017-12-05T21:09:00.000Z | 2019-06-14T08:13:28.000Z | /*!
* @file sequence.hpp
*
* @brief Sequence class header file
*/
#pragma once
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
namespace bioparser {
template<class T>
class FastaParser;
template<class T>
class FastqParser;
}
namespace rala {
class Sequence;
std::uniqu... | 21.742857 | 80 | 0.666229 | brohan203 |
a120420755f343830d7bf06dde501af5fdc17a8b | 1,214 | hpp | C++ | src/test26.hpp | hdhyy/thrust_offer | 84effbd0f033a796375ebf727bafc7b3964ed2a9 | [
"MIT"
] | null | null | null | src/test26.hpp | hdhyy/thrust_offer | 84effbd0f033a796375ebf727bafc7b3964ed2a9 | [
"MIT"
] | null | null | null | src/test26.hpp | hdhyy/thrust_offer | 84effbd0f033a796375ebf727bafc7b3964ed2a9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/**
* 输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表。要求不能创建任何新的结点,只能调整树中结点指针的指向。
*
**/
struct TreeNode {
int val;
struct TreeNode *left;
struct TreeNode *right;
TreeNode(int x) :
val(x), left(NULL), right(NULL) {
}
};
class Solution
{
public:
TreeNode *Convert(TreeNode *p... | 22.90566 | 70 | 0.578254 | hdhyy |
a12081c0f9af539bf7929dbb85632c56f5dc2d73 | 2,703 | cpp | C++ | c_cpp/api.cpp | dujeonglee/NetworkCodingRev | 5964569af376d8b8f9ee14cd025f74eff9088b2c | [
"MIT"
] | 6 | 2017-03-29T03:17:54.000Z | 2017-12-26T23:36:14.000Z | c_cpp/api.cpp | dujeonglee/NetworkCodingRev | 5964569af376d8b8f9ee14cd025f74eff9088b2c | [
"MIT"
] | 6 | 2017-04-24T12:56:01.000Z | 2018-01-01T13:18:44.000Z | c_cpp/api.cpp | dujeonglee/NetworkCodingRev | 5964569af376d8b8f9ee14cd025f74eff9088b2c | [
"MIT"
] | 2 | 2017-06-08T07:31:09.000Z | 2019-08-05T01:54:58.000Z | #include "api.h"
#include "ncsocket.h"
using namespace NetworkCoding;
void *InitSocket(const char *const local_port, const uint32_t RxTimeout, const uint32_t TxTimeout, const std::function<void(uint8_t *const buffer, const uint16_t length, const void *const sender_addr, const uint32_t sender_addr_len)> cb)
{
retu... | 42.904762 | 237 | 0.721791 | dujeonglee |
a120d7aedfad4b2c8461ea3d7c89189fb6888ebd | 538 | hpp | C++ | day10/Location.hpp | bcafuk/AoC-2019 | 5ff9b86f8483cd7a6e229d572ae9e34b894eb574 | [
"Zlib"
] | null | null | null | day10/Location.hpp | bcafuk/AoC-2019 | 5ff9b86f8483cd7a6e229d572ae9e34b894eb574 | [
"Zlib"
] | null | null | null | day10/Location.hpp | bcafuk/AoC-2019 | 5ff9b86f8483cd7a6e229d572ae9e34b894eb574 | [
"Zlib"
] | 2 | 2020-11-02T09:24:35.000Z | 2020-12-02T09:46:27.000Z | #ifndef AOC_2019_DAY10_LOCATION_HPP
#define AOC_2019_DAY10_LOCATION_HPP
typedef int coordinate;
struct Location {
coordinate x;
coordinate y;
Location(coordinate x, coordinate y);
void reduce();
double phiAround(const Location &origin) const;
bool operator<(const Location &other) const;
bool operator==(const... | 22.416667 | 77 | 0.775093 | bcafuk |
a121b24981e2831079debca851e3af84427c6739 | 4,661 | cpp | C++ | src/org/apache/poi/poifs/filesystem/NPOIFSStream_StreamBlockByteBuffer.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/filesystem/NPOIFSStream_StreamBlockByteBuffer.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/poifs/filesystem/NPOIFSStream_StreamBlockByteBuffer.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/poifs/filesystem/NPOIFSStream.java
#include <org/apache/poi/poifs/filesystem/NPOIFSStream_StreamBlockByteBuffer.hpp>
#include <java/lang/IndexOutOfBoundsException.hpp>
#include <java/lang/Math.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/nio/ByteBuffer.hp... | 38.204918 | 154 | 0.708432 | pebble2015 |
a121b71ae46ef022b946edd6336f97ba278ef8b7 | 683 | cpp | C++ | libs/renderer/src/renderer/lock_flags/read.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/lock_flags/read.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/lock_flags/read.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/renderer/lock_flags/method.hpp>
#include <sge/renderer/lock_flags/read.hpp>
#include ... | 29.695652 | 85 | 0.717423 | cpreh |
a12e874958cae53c82f63bd28b5c88d9da6d7ece | 537 | cpp | C++ | src/algorithms/warmup/compare_the_triplets/compare_the_triplets.cpp | bmgandre/hackerrank-cpp | f4af5777afba233c284790e02c0be7b82108c677 | [
"MIT"
] | null | null | null | src/algorithms/warmup/compare_the_triplets/compare_the_triplets.cpp | bmgandre/hackerrank-cpp | f4af5777afba233c284790e02c0be7b82108c677 | [
"MIT"
] | null | null | null | src/algorithms/warmup/compare_the_triplets/compare_the_triplets.cpp | bmgandre/hackerrank-cpp | f4af5777afba233c284790e02c0be7b82108c677 | [
"MIT"
] | null | null | null | #include "compare_the_triplets.h"
#include <iostream>
#include <string>
#include <regex>
using namespace hackerrank::bmgandre::algorithms::warmup;
/// Practice>Algorithms>Warmup>Compare the Triplets
///
/// https://www.hackerrank.com/challenges/compare-the-triplets
void compare_the_triplets::solve()
{
int a0, a1, a2... | 22.375 | 62 | 0.627561 | bmgandre |
a13154240fcf3b030de8aa4682cab655638c2eda | 311 | cpp | C++ | offline_compiler/utilities/windows/get_current_dir_windows.cpp | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | null | null | null | offline_compiler/utilities/windows/get_current_dir_windows.cpp | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | null | null | null | offline_compiler/utilities/windows/get_current_dir_windows.cpp | FelipeMLopez/compute-runtime | 3e3d2d3b3ac9129b1ee9c4251a2586fef0b300b8 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "Windows.h"
#include <string>
std::string getCurrentDirectoryOwn(std::string outDirForBuilds) {
char buf[256];
GetCurrentDirectoryA(256, buf);
return std::string(buf) + "\\" + outDirForBuilds + "\\";
}
| 18.294118 | 65 | 0.662379 | FelipeMLopez |
a134300173d0d46dd4f1d85e7ec54132a9015545 | 2,170 | hpp | C++ | d03/ex01/FragTrap.hpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | 5 | 2018-02-10T12:33:53.000Z | 2021-03-28T09:27:05.000Z | d03/ex01/FragTrap.hpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | null | null | null | d03/ex01/FragTrap.hpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | 6 | 2017-11-25T17:34:43.000Z | 2020-12-20T12:00:04.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* FragTrap.hpp :+: :+: :+: ... | 35.57377 | 80 | 0.480184 | ncoden |
a13952e219689ffabcb482681ebd38468543a617 | 3,573 | cpp | C++ | src/tut15/Engine/Engine/graphicsclass.cpp | Scillman/rastertek-dx11-tutorials | 3aee1e19eaf6e4e8e9a44c88a83ac50acdcb05c6 | [
"Unlicense"
] | null | null | null | src/tut15/Engine/Engine/graphicsclass.cpp | Scillman/rastertek-dx11-tutorials | 3aee1e19eaf6e4e8e9a44c88a83ac50acdcb05c6 | [
"Unlicense"
] | null | null | null | src/tut15/Engine/Engine/graphicsclass.cpp | Scillman/rastertek-dx11-tutorials | 3aee1e19eaf6e4e8e9a44c88a83ac50acdcb05c6 | [
"Unlicense"
] | 1 | 2018-06-26T01:29:41.000Z | 2018-06-26T01:29:41.000Z | ////////////////////////////////////////////////////////////////////////////////
// Filename: graphicsclass.cpp
////////////////////////////////////////////////////////////////////////////////
#include "graphicsclass.h"
GraphicsClass::GraphicsClass()
{
m_D3D = 0;
m_Camera = 0;
m_Text = 0;
}
Graphic... | 20.534483 | 126 | 0.640078 | Scillman |
a13ab89ae6ddc47835f8eb94ed070b882c0572cc | 1,118 | cxx | C++ | src/pre.cxx | asiarabbit/BINGER | f525a7445be1aa3ac3f8fb235f6097c999f25f2d | [
"MIT"
] | 1 | 2017-11-23T14:47:47.000Z | 2017-11-23T14:47:47.000Z | src/pre.cxx | asiarabbit/BINGER | f525a7445be1aa3ac3f8fb235f6097c999f25f2d | [
"MIT"
] | null | null | null | src/pre.cxx | asiarabbit/BINGER | f525a7445be1aa3ac3f8fb235f6097c999f25f2d | [
"MIT"
] | null | null | null | /**
\file pre.C
\example pre.C
\brief Input a PXI and a VME binary raw data file to be decoded and analyzed for Daq evaluation,
detector debugging, or PID output.
\author SUN Yazhou, asia.rabbit@163.com.
\date Created: 2017/12/1 Last revised: 2018/8/18, SUN Yazhou.
\copyright 2017-2018, SUN Yazhou.
*/
#includ... | 27.95 | 97 | 0.669946 | asiarabbit |
a13ea0dd9f9375ac70e9325f34841dba7ce186f5 | 3,317 | cpp | C++ | MultiSampling/MultiSampling/RenderingEngine.cpp | chunkyguy/EWOGL | 29fd10b37e2e19e5e586c7ca794649200c514b7b | [
"MIT"
] | 2 | 2015-03-25T23:20:33.000Z | 2016-12-03T04:37:46.000Z | MultiSampling/MultiSampling/RenderingEngine.cpp | chunkyguy/EWOGL | 29fd10b37e2e19e5e586c7ca794649200c514b7b | [
"MIT"
] | null | null | null | MultiSampling/MultiSampling/RenderingEngine.cpp | chunkyguy/EWOGL | 29fd10b37e2e19e5e586c7ca794649200c514b7b | [
"MIT"
] | null | null | null | //
// RenderingEngine.cpp
// MultiSampling
//
// Created by Sid on 24/01/14.
// Copyright (c) 2014 whackylabs. All rights reserved.
//
#include "RenderingEngine.h"
#include <cassert>
#include <cstring>
#include <iostream>
#include <GLKit/GLKMath.h>
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
#incl... | 24.753731 | 104 | 0.737715 | chunkyguy |
a141c478c2c5847985d741ea919e50b31662f4be | 2,576 | cpp | C++ | cpp/timer_helper.cpp | uniqss/uniqstimer | 7b2da3533a0e33c41b4de6f57193979f1e22bce0 | [
"MIT"
] | 8 | 2020-10-26T01:30:43.000Z | 2022-03-17T11:15:27.000Z | cpp/timer_helper.cpp | uniqss/uniqstimer | 7b2da3533a0e33c41b4de6f57193979f1e22bce0 | [
"MIT"
] | null | null | null | cpp/timer_helper.cpp | uniqss/uniqstimer | 7b2da3533a0e33c41b4de6f57193979f1e22bce0 | [
"MIT"
] | 1 | 2020-11-30T08:29:14.000Z | 2020-11-30T08:29:14.000Z | #include "timer_helper.h"
#include<time.h>
#include<stdexcept>
int UniqsTimerAllocCalled = 0;
int UniqsTimerFreeCalled = 0;
TimerNode* __pFreeTimerHeadMem;
int UniqsTimerFreeCount = 0;
const int UNIQS_TIMER_CACHE_MAX = 4096;
const int UNIQS_TIMER_CACHE_DELETE = UNIQS_TIMER_CACHE_MAX / 2;
TimerNodeIII* ... | 21.647059 | 70 | 0.713509 | uniqss |
a142e0a1cadf4597a9eca2640c6698863c5e4ac0 | 3,043 | hpp | C++ | include/codegen/include/System/Net/Sockets/SocketAsyncEventArgs.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Net/Sockets/SocketAsyncEventArgs.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Net/Sockets/SocketAsyncEventArgs.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:19 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.EventArgs
#include "System/EventArgs.hpp"
// Including type: System.Net.Sockets.S... | 38.518987 | 114 | 0.720013 | Futuremappermydud |
a145bcf8f9c9c066fe1e0a512544cfa3c3e50ea8 | 8,712 | inl | C++ | disc0ver-Engine/disc0ver-Engine/UGM/Interfaces/IMatrix/details/IMatrix.inl | Kpure1000/disc0ver-Engine | e2aeec3984aa6cd8ecbaa0da539bf53e37846602 | [
"MIT"
] | 5 | 2020-09-19T03:34:09.000Z | 2021-04-10T07:39:53.000Z | disc0ver-Engine/disc0ver-Engine/UGM/Interfaces/IMatrix/details/IMatrix.inl | wncka/disc0ver-Engine | 0817df4c9062cb3919164d01ff2b96a563f76437 | [
"MIT"
] | null | null | null | disc0ver-Engine/disc0ver-Engine/UGM/Interfaces/IMatrix/details/IMatrix.inl | wncka/disc0ver-Engine | 0817df4c9062cb3919164d01ff2b96a563f76437 | [
"MIT"
] | 3 | 2020-10-25T10:58:18.000Z | 2021-03-26T01:08:54.000Z | #pragma once
#include "svd3.h"
namespace Ubpa::details::IMatrix_ {
template<typename M, size_t N>
struct eye;
template<typename M>
struct eye<M, 2> {
using F = typename M::F;
inline static const M run() noexcept {
return {
1, 0,
0, 1,
};
}
};
template<typename M>
struct eye<M, 3> {
usin... | 22.055696 | 100 | 0.495523 | Kpure1000 |
a148c20089188cca362add667fc9d30e7d19eb17 | 8,060 | cpp | C++ | src/talker.cpp | nakulpatel94/beginner_tutorials | bb2438721afa59f9715d563ec1438e56ce1672ed | [
"BSD-3-Clause"
] | 1 | 2020-03-11T04:20:41.000Z | 2020-03-11T04:20:41.000Z | src/talker.cpp | nakulpatel94/beginner_tutorials | bb2438721afa59f9715d563ec1438e56ce1672ed | [
"BSD-3-Clause"
] | null | null | null | src/talker.cpp | nakulpatel94/beginner_tutorials | bb2438721afa59f9715d563ec1438e56ce1672ed | [
"BSD-3-Clause"
] | 1 | 2020-03-27T12:59:48.000Z | 2020-03-27T12:59:48.000Z | /**
* BSD 3-Clause License
*
* Copyright (c) 2019, Nakul Patel
* 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 must retain the above copyright notice... | 32.764228 | 83 | 0.6933 | nakulpatel94 |
a14b4a918987ba9e75059262da500ada855d2b07 | 1,761 | cpp | C++ | src/goto-instrument/points_to.cpp | jimgrundy/cbmc | 8d314eb3448e63d9baf2430ba42326b67f830b92 | [
"BSD-4-Clause"
] | 412 | 2016-04-02T01:14:27.000Z | 2022-03-27T09:24:09.000Z | src/goto-instrument/points_to.cpp | jimgrundy/cbmc | 8d314eb3448e63d9baf2430ba42326b67f830b92 | [
"BSD-4-Clause"
] | 4,671 | 2016-02-25T13:52:16.000Z | 2022-03-31T22:14:46.000Z | src/goto-instrument/points_to.cpp | jimgrundy/cbmc | 8d314eb3448e63d9baf2430ba42326b67f830b92 | [
"BSD-4-Clause"
] | 266 | 2016-02-23T12:48:00.000Z | 2022-03-22T18:15:51.000Z | /*******************************************************************\
Module: Field-sensitive, location-insensitive points-to analysis
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
/// \file
/// Field-sensitive, location-insensitive points-to an... | 18.154639 | 74 | 0.593413 | jimgrundy |
a14c297ee74d7319a4db1c40894baba8e3aaff4c | 1,993 | cpp | C++ | 2019/0526_ABC128/past/E2.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 2019/0526_ABC128/past/E2.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 2019/0526_ABC128/past/E2.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #define DEBUG 1
/**
* File : E2.cpp
* Author : Kazune Takahashi
* Created : 2019-5-27 00:40:23
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string>... | 21.901099 | 103 | 0.547416 | kazunetakahashi |
a14ce3a80e369ca76162a8203fa21ce14a665607 | 781 | cpp | C++ | Data Structures/FenwickTree2D.cpp | azell003/Algorithms | 6dc755ca0a8b4cf2e0c2a7775b83168d38bcc13d | [
"MIT"
] | null | null | null | Data Structures/FenwickTree2D.cpp | azell003/Algorithms | 6dc755ca0a8b4cf2e0c2a7775b83168d38bcc13d | [
"MIT"
] | null | null | null | Data Structures/FenwickTree2D.cpp | azell003/Algorithms | 6dc755ca0a8b4cf2e0c2a7775b83168d38bcc13d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int N = 105;
int max_x, max_y;
int tree[N][N];
void update(int x, int y, int val)
{
for(int i = x; i <= max_x; i += i & (-i))
for(int j = y; j <= max_y; j += j & (-j))
tree[i][j] += val;
}
int get(int x, int y)
{
int res = 0;
for(int i = x; i > ... | 19.525 | 79 | 0.46863 | azell003 |
a14d70aa12f280e8796685cc84751893c5a6ad4c | 3,590 | cc | C++ | src/ppl/nn/engines/arm/kernels/onnx/pad_kernel.cc | mochiset/ppl.nn | 1fb35b80a0a5df1ada33bc950f44c6080733a2f3 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/arm/kernels/onnx/pad_kernel.cc | mochiset/ppl.nn | 1fb35b80a0a5df1ada33bc950f44c6080733a2f3 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/arm/kernels/onnx/pad_kernel.cc | mochiset/ppl.nn | 1fb35b80a0a5df1ada33bc950f44c6080733a2f3 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 46.623377 | 117 | 0.611142 | mochiset |
a14df0c3926b603185c4f9b7821d359a2f47a712 | 1,657 | cc | C++ | src/reconstruction.cc | songyuncen/laser-triangulation | 228feda5497533ceac5e433e753f81ff1db38e20 | [
"MIT"
] | 7 | 2021-09-07T08:16:03.000Z | 2022-03-16T05:59:16.000Z | src/reconstruction.cc | songyuncen/laser-triangulation | 228feda5497533ceac5e433e753f81ff1db38e20 | [
"MIT"
] | null | null | null | src/reconstruction.cc | songyuncen/laser-triangulation | 228feda5497533ceac5e433e753f81ff1db38e20 | [
"MIT"
] | 2 | 2021-09-24T06:08:48.000Z | 2021-12-03T02:48:32.000Z | #include "laser_triangulation.h"
#include <sstream>
#include <opencv2/core/utils/filesystem.hpp>
namespace cvfs = cv::utils::fs;
static void ShowLinePoints(cv::Mat &image, std::vector<cv::Point> &pts, int wait);
void Reconstruction(const char *folder, const char *prefix, const char *suffix, int num_width, int n, int... | 33.14 | 116 | 0.598069 | songyuncen |
a15204369eebf187a85dec43420be0bb18ed0fb8 | 6,930 | cpp | C++ | test/src/scale/scale_collection_test.cpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | 1 | 2021-07-10T21:25:03.000Z | 2021-07-10T21:25:03.000Z | test/src/scale/scale_collection_test.cpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null | test/src/scale/scale_collection_test.cpp | GeniusVentures/SuperGenius | ae43304f4a2475498ef56c971296175acb88d0ee | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include "scale/scale.hpp"
#include "testutil/outcome.hpp"
using sgns::scale::ByteArray;
using sgns::scale::CompactInteger;
using sgns::scale::encode;
using sgns::scale::ScaleDecoderStream;
using sgns::scale::ScaleEncoderStream;
/**
* @given collection of 80 items of type uint8_t
* @when... | 29.742489 | 80 | 0.625108 | GeniusVentures |
a1553ba2dd3432130ee1250bcc9a2398efdca9aa | 11,603 | cpp | C++ | Systems/WindowsShell/WindowsShell.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Systems/WindowsShell/WindowsShell.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Systems/WindowsShell/WindowsShell.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Chris Peters
/// Copyright 2010-2012, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
//----------... | 29.524173 | 108 | 0.646729 | RachelWilSingh |
a158dec2dbd6ec817182f26729f8b453b3844b13 | 5,511 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcFailureConnectionCondition.cpp | promethe42/ifcplusplus | 1c8b51b1f870f0107538dbea5eaa2755c81f5dca | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcFailureConnectionCondition.cpp | promethe42/ifcplusplus | 1c8b51b1f870f0107538dbea5eaa2755c81f5dca | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcFailureConnectionCondition.cpp | promethe42/ifcplusplus | 1c8b51b1f870f0107538dbea5eaa2755c81f5dca | [
"MIT"
] | null | null | null | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include... | 65.607143 | 247 | 0.765378 | promethe42 |
a1592fb9dc0abd55ed74255f2655888befe5bdc3 | 1,584 | cpp | C++ | leetcode/Combinations/main.cpp | yylzl/CodingMyWorld | a255e5c1fe3c2c5f0ffce17539b5b5b667511448 | [
"Apache-2.0"
] | null | null | null | leetcode/Combinations/main.cpp | yylzl/CodingMyWorld | a255e5c1fe3c2c5f0ffce17539b5b5b667511448 | [
"Apache-2.0"
] | null | null | null | leetcode/Combinations/main.cpp | yylzl/CodingMyWorld | a255e5c1fe3c2c5f0ffce17539b5b5b667511448 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdint>
#include <climits>
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
void combine_backtrace(vector<vector<int> > &res, vector<int> &one, int start, int n, int k)
{
if(k==0)
{
res.push_bac... | 22 | 100 | 0.406566 | yylzl |
a15944d86b0d0a5b2717558d71260ed86ebaf66f | 4,073 | cpp | C++ | src/distributenrldata.cpp | bstaber/Trilinos | 12ada5a678338a1da962113a4fad708f93b19e03 | [
"MIT"
] | null | null | null | src/distributenrldata.cpp | bstaber/Trilinos | 12ada5a678338a1da962113a4fad708f93b19e03 | [
"MIT"
] | null | null | null | src/distributenrldata.cpp | bstaber/Trilinos | 12ada5a678338a1da962113a4fad708f93b19e03 | [
"MIT"
] | null | null | null | /*
Brian Staber (brian.staber@gmail.com)
*/
#include "distributenrldata.hpp"
#include <math.h>
distributenrldata::distributenrldata(mesh & Mesh, std::string & path){
retrieve_data(Mesh,path);
}
distributenrldata::~distributenrldata(){
}
void distributenrldata::retrieve_data(mesh & Mesh, std::string & path){
... | 31.330769 | 175 | 0.555119 | bstaber |
a159ba1c849923a3709d0940061a8239ecb4701f | 277 | hpp | C++ | packets/PKT_S2C_FadeMinions.hpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | 1 | 2022-03-27T10:21:41.000Z | 2022-03-27T10:21:41.000Z | packets/PKT_S2C_FadeMinions.hpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | null | null | null | packets/PKT_S2C_FadeMinions.hpp | HoDANG/OGLeague2 | 21efea8ea480972a6d686c4adefea03d57da5e9d | [
"MIT"
] | 3 | 2019-07-20T03:59:10.000Z | 2022-03-27T10:20:09.000Z | #ifndef HPP_183_PKT_S2C_FadeMinions_HPP
#define HPP_183_PKT_S2C_FadeMinions_HPP
#include "base.hpp"
#pragma pack(push, 1)
struct PKT_S2C_FadeMinions_s : DefaultPacket<PKT_S2C_FadeMinions>
{
char team;
float fadeAmount;
float fadeTime;
};
#pragma pack(pop)
#endif
| 18.466667 | 65 | 0.779783 | HoDANG |
a15a26a119aaaf9bf0ec84c48ea313f94e4c4c34 | 7,550 | cpp | C++ | src/Tungsten/CommandLine.cpp | jebreimo/Tungsten | 792b9a9a63427bd3a98bd89b7e226e3229745743 | [
"BSD-2-Clause"
] | null | null | null | src/Tungsten/CommandLine.cpp | jebreimo/Tungsten | 792b9a9a63427bd3a98bd89b7e226e3229745743 | [
"BSD-2-Clause"
] | null | null | null | src/Tungsten/CommandLine.cpp | jebreimo/Tungsten | 792b9a9a63427bd3a98bd89b7e226e3229745743 | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2020 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2020-04-18.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 36.124402 | 78 | 0.489536 | jebreimo |
a15cf83cdcc0d41348301d05f4d7123ae82f85e6 | 990 | cpp | C++ | test/filter.cpp | ToruNiina/variadic | 34d28880fdffd1ef09ccddb132b8b42a1e7cc829 | [
"MIT"
] | null | null | null | test/filter.cpp | ToruNiina/variadic | 34d28880fdffd1ef09ccddb132b8b42a1e7cc829 | [
"MIT"
] | null | null | null | test/filter.cpp | ToruNiina/variadic | 34d28880fdffd1ef09ccddb132b8b42a1e7cc829 | [
"MIT"
] | 1 | 2021-11-15T18:01:25.000Z | 2021-11-15T18:01:25.000Z | #include "filter.hpp"
#include <type_traits>
static_assert(std::is_same<
filter<std::is_integral, char, int, double, float>::type,
pack<char, int>>::value, "comprehension.is_integral");
template<typename T1, typename T2>
struct Greater : std::integral_constant<bool, (T1::value > T2::value)>{};
temp... | 30 | 73 | 0.610101 | ToruNiina |
a1646045c62bd6d8b28b7b006c391377ba3ca4e6 | 1,059 | cpp | C++ | Love-Babbar-450-In-CPPTest/14_DP/04_LC_subsequences.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/14_DP/04_LC_subsequences.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | Love-Babbar-450-In-CPPTest/14_DP/04_LC_subsequences.cpp | harshanu11/Love-Babbar-450-In-CSharp | 0dc3bef3e66e30abbc04f7bbf21c7319b41803e1 | [
"MIT"
] | null | null | null | ///*
// link: https://practice.geeksforgeeks.org/problems/longest-common-subsequence-1587115620/1
//
// refer DP_tut/LCS/implementation
//*/
//
//// ----------------------------------------------------------------------------------------------------------------------- //
//
//// function to find longest common su... | 32.090909 | 127 | 0.312559 | harshanu11 |
a16a6be2313446308423f97f2d4ad2f1b98366da | 4,474 | cpp | C++ | example/avr/avr-fade-led.e.cpp | martinmoene/kalman-estimator | 87a20cca596c51f85d6ce21f4e1e4a6ddf8ae344 | [
"BSL-1.0"
] | 20 | 2018-07-27T21:49:21.000Z | 2022-03-03T08:59:54.000Z | example/avr/avr-fade-led.e.cpp | YiBo-zhu/kalman-estimator | 87a20cca596c51f85d6ce21f4e1e4a6ddf8ae344 | [
"BSL-1.0"
] | 3 | 2018-07-23T12:52:53.000Z | 2019-08-16T13:32:17.000Z | example/avr/avr-fade-led.e.cpp | YiBo-zhu/kalman-estimator | 87a20cca596c51f85d6ce21f4e1e4a6ddf8ae344 | [
"BSL-1.0"
] | 3 | 2019-09-26T16:09:18.000Z | 2022-01-17T03:37:07.000Z | // Copyright 2018 by Martin Moene
//
// https://github.com/martinmoene/kalman-estimator
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Show fading PWM on LED.
// Connect PD6 (PWM output) to PD0 (sample PWM)
/... | 24.053763 | 86 | 0.602369 | martinmoene |
a16beee60735dbc6d545efe7e8856b2a32bb2bcd | 1,662 | cpp | C++ | src/tcp/connection_utils.cpp | Mvwivs/tp_advanced_cpp_project | 1be9389005d002709920c7f7cc73ebfe6c16c17b | [
"Apache-2.0"
] | 2 | 2020-05-14T12:21:42.000Z | 2020-05-14T12:27:37.000Z | src/tcp/connection_utils.cpp | Mvwivs/tp_advanced_cpp_project | 1be9389005d002709920c7f7cc73ebfe6c16c17b | [
"Apache-2.0"
] | 2 | 2020-03-20T11:09:43.000Z | 2020-05-22T16:50:38.000Z | src/tcp/connection_utils.cpp | Mvwivs/tp_advanced_cpp_project | 1be9389005d002709920c7f7cc73ebfe6c16c17b | [
"Apache-2.0"
] | null | null | null |
#include "tcp/connection_utils.hpp"
#include <stdexcept>
#include <string>
#include <cstdint>
#include <cstring>
#include <arpa/inet.h>
namespace tcp {
using namespace std::string_literals;
ConnectionException::ConnectionException(const std::string& messsage):
std::runtime_error(messsage) {
}
Address::Address(s... | 25.181818 | 90 | 0.703971 | Mvwivs |
a16e947fd3e0942b64acf973d5374c2e7620f4b6 | 371 | cpp | C++ | src/dialog/TextLog.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | src/dialog/TextLog.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | src/dialog/TextLog.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | #define AXXEGRO_TRUSTED
#include <axxegro/dialog/TextLog.hpp>
#include <stdarg.h>
ALLEGRO_EVENT_SOURCE* al::TextLogEventSource::ptr() const
{
return al_get_native_text_log_event_source(tl.ptr());
}
void al::TextLog::write(const std::string& text)
{
writef("%s", text.c_str());
}
void al::TextLog::writeln(const st... | 18.55 | 57 | 0.716981 | 311Volt |
a170b6be6cc0cbfcb9339576dfd8aee29fb5abc0 | 3,200 | cpp | C++ | array/289.game-of-life.cpp | yeweili94/leetcode | 900fd11795f760e3d1d646f1f63887d4d22eb46e | [
"MIT"
] | null | null | null | array/289.game-of-life.cpp | yeweili94/leetcode | 900fd11795f760e3d1d646f1f63887d4d22eb46e | [
"MIT"
] | null | null | null | array/289.game-of-life.cpp | yeweili94/leetcode | 900fd11795f760e3d1d646f1f63887d4d22eb46e | [
"MIT"
] | null | null | null | /*
* [289] Game of Life
*
* https://leetcode.com/problems/game-of-life/description/
*
* algorithms
* Medium (39.04%)
* Total Accepted: 78.5K
* Total Submissions: 200.7K
* Testcase Example: '[[0,1,0],[0,0,1],[1,1,1],[0,0,0]]'
*
* According to the Wikipedia's article: "The Game of Life, also known simply
... | 29.906542 | 79 | 0.5475 | yeweili94 |
a175f6507b0ea40e8d2a5573bf9b329dcc30f85c | 4,536 | cpp | C++ | main/net/httpClient.cpp | maroc81/WeatherLily | 9fec01add5552eb3e2ba955ded332704b369738e | [
"MIT"
] | 2 | 2021-12-15T01:10:58.000Z | 2022-02-21T16:49:48.000Z | main/net/httpClient.cpp | maroc81/WeatherLily | 9fec01add5552eb3e2ba955ded332704b369738e | [
"MIT"
] | null | null | null | main/net/httpClient.cpp | maroc81/WeatherLily | 9fec01add5552eb3e2ba955ded332704b369738e | [
"MIT"
] | null | null | null |
#include <cstring>
#include "esp_log.h"
#include "httpClient.hpp"
static const char * TAG = "httpClientT";
//******************************************************************************
//! httpClientT() -- Constructor
//
//!
//******************************************************************************
httpC... | 28.89172 | 80 | 0.479938 | maroc81 |
a17a9f852f6b0d021b34587a549302bcdb891582 | 825 | hpp | C++ | thrill/data/fwd.hpp | JonasDann/thrill | c2f4cc8bb4e362bb129c056d16faae602b42cbe7 | [
"BSD-2-Clause"
] | null | null | null | thrill/data/fwd.hpp | JonasDann/thrill | c2f4cc8bb4e362bb129c056d16faae602b42cbe7 | [
"BSD-2-Clause"
] | null | null | null | thrill/data/fwd.hpp | JonasDann/thrill | c2f4cc8bb4e362bb129c056d16faae602b42cbe7 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
* thrill/data/fwd.hpp
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2019 Jonas Dann <jonas@dann.io>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
************************... | 26.612903 | 80 | 0.533333 | JonasDann |
a17b580512cc2f1fa74dcd38d03717157afa1bb6 | 1,619 | cpp | C++ | cpp/04_trees_and_graphs/05_validate_bst/ans1.cpp | zulinx86/cracking-the-coding-interview | fdb1e9f2cb1b06be2012c29d781190907bad9fd6 | [
"MIT"
] | null | null | null | cpp/04_trees_and_graphs/05_validate_bst/ans1.cpp | zulinx86/cracking-the-coding-interview | fdb1e9f2cb1b06be2012c29d781190907bad9fd6 | [
"MIT"
] | null | null | null | cpp/04_trees_and_graphs/05_validate_bst/ans1.cpp | zulinx86/cracking-the-coding-interview | fdb1e9f2cb1b06be2012c29d781190907bad9fd6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct node {
int val;
struct node *left;
struct node *right;
};
pair<int, int> __check_bst(struct node *n, bool &ans)
{
pair<int, int> left_minmax, right_minmax, ret_minmax;
// left
if (n->left)
left_minmax = __check_bst(n->left, a... | 19.047059 | 83 | 0.573811 | zulinx86 |
a17fcd00e1cb600e21c203332fdf86b475b17adf | 2,792 | cpp | C++ | ch6/gauss_newton.cpp | zinsmatt/slambook2 | 3648caff838241553d9f3de332068eb0d501a7dc | [
"MIT"
] | null | null | null | ch6/gauss_newton.cpp | zinsmatt/slambook2 | 3648caff838241553d9f3de332068eb0d501a7dc | [
"MIT"
] | null | null | null | ch6/gauss_newton.cpp | zinsmatt/slambook2 | 3648caff838241553d9f3de332068eb0d501a7dc | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <random>
#include <map>
#include <opencv2/opencv.hpp>
#include <Eigen/Core>
#include <Eigen/Dense>
#include "matplotlibcpp.h"
using namespace std;
using namespace Eigen;
namespace plt = matplotlibcpp;
double g(double x, double a, double b, double c)
{
// return a*x*... | 25.851852 | 96 | 0.545487 | zinsmatt |
a183e3c7506abd2efb9dd2eb977d42ece9cc3144 | 15,337 | cpp | C++ | src/scripts/scripts/northrend/naxxramas/boss_gothik.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | 1 | 2018-01-17T08:11:17.000Z | 2018-01-17T08:11:17.000Z | src/scripts/scripts/northrend/naxxramas/boss_gothik.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | null | null | null | src/scripts/scripts/northrend/naxxramas/boss_gothik.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 34.620767 | 240 | 0.543522 | Subv |
a18559aacc380518ce383333c91f37268b8276e3 | 4,828 | cpp | C++ | Src/rmsVel.cpp | AMReX-Combustion/PeleAnalysis | 4cbbdb39f56c42d2539eef82bb6cbcc64d2d896b | [
"BSD-3-Clause-LBNL"
] | 4 | 2019-04-24T13:33:35.000Z | 2021-08-24T07:11:22.000Z | Src/rmsVel.cpp | AMReX-Combustion/PeleAnalysis | 4cbbdb39f56c42d2539eef82bb6cbcc64d2d896b | [
"BSD-3-Clause-LBNL"
] | 4 | 2020-02-25T01:58:46.000Z | 2022-02-01T20:22:49.000Z | Src/rmsVel.cpp | AMReX-Combustion/PeleAnalysis | 4cbbdb39f56c42d2539eef82bb6cbcc64d2d896b | [
"BSD-3-Clause-LBNL"
] | 6 | 2018-11-05T11:53:20.000Z | 2021-03-22T10:44:54.000Z | #include <AMReX_ParmParse.H>
#include <AMReX_MultiFab.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_DataServices.H>
#include <AMReX_WritePlotFile.H>
using namespace amrex;
int
main (int argc,
char* argv[])
{
Initialize(argc,argv);
{
ParmParse pp;
// Open first plotfile header and create an a... | 33.762238 | 137 | 0.611226 | AMReX-Combustion |
a18e39089c99edcc28a5c12c72135e8edc583164 | 15,293 | cc | C++ | src/json.cc | ZenLibraries/Zen2 | 21fc8583ea65ab178902fa4afc76d0cf01c11336 | [
"Apache-2.0"
] | null | null | null | src/json.cc | ZenLibraries/Zen2 | 21fc8583ea65ab178902fa4afc76d0cf01c11336 | [
"Apache-2.0"
] | 2 | 2021-07-12T08:39:46.000Z | 2021-07-12T08:43:54.000Z | src/json.cc | ZenLibraries/Zen2 | 21fc8583ea65ab178902fa4afc76d0cf01c11336 | [
"Apache-2.0"
] | null | null | null |
#include <cstdlib>
#include <memory>
#include <sstream>
#include <cmath>
#include <stack>
#include <variant>
#include "zen/char.hpp"
#include "zen/config.hpp"
#include "zen/transformer.hpp"
#include "zen/json.hpp"
#include "zen/stream.hpp"
#include "zen/either.hpp"
#include "zen/value.hpp"
ZEN_NAMESPACE_START
stati... | 21.240278 | 82 | 0.444648 | ZenLibraries |
a18f0051de50143d0501b546ff3faffdb8636117 | 774 | cpp | C++ | Cpp/Ch02_02/Ch02_02.cpp | VontineDev/repos | 0e98250a00d3deb0da4907898c3972222f14a5c8 | [
"MIT"
] | null | null | null | Cpp/Ch02_02/Ch02_02.cpp | VontineDev/repos | 0e98250a00d3deb0da4907898c3972222f14a5c8 | [
"MIT"
] | null | null | null | Cpp/Ch02_02/Ch02_02.cpp | VontineDev/repos | 0e98250a00d3deb0da4907898c3972222f14a5c8 | [
"MIT"
] | null | null | null | // Ch02_02.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include <iostream>
using namespace std;
//아래 두 함수는 호출하는 동안 어떤 함수가 호출되어야 할지 모호함이 발생한다.
void TestFunc(int a)
{
cout << "TestFunc(int)" << endl;
}
void TestFunc(int a, int b = 10)
{
cout << "TestFunc(int, int)" << endl;
}
int main()
{
cout << T... | 23.454545 | 96 | 0.583979 | VontineDev |
a18f1d85ec64ab514b5e8337f1c0c8816dfbd737 | 7,844 | cpp | C++ | elderly_care_simulation/src/test/TestCaregiverRobot.cpp | shaykalyan/SE306-ROS | 59f69d835646145f9dab711d170168a26ede347a | [
"MIT"
] | 6 | 2017-06-10T01:37:30.000Z | 2019-10-16T11:58:15.000Z | elderly_care_simulation/src/test/TestCaregiverRobot.cpp | shaykalyan/SE306-ROS | 59f69d835646145f9dab711d170168a26ede347a | [
"MIT"
] | null | null | null | elderly_care_simulation/src/test/TestCaregiverRobot.cpp | shaykalyan/SE306-ROS | 59f69d835646145f9dab711d170168a26ede347a | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include "std_msgs/String.h"
#include <sstream>
#include "math.h"
#include <vector>
#include "StaticPoiConstants.h"
#include "EventTriggerUtility.h"
#include "PerformTaskConstants.h"
#include "Caregiver.h"
#include "Robot.h"
#include "Poi.h"
#include "StaticPoi.h"
#include "EventNode.h"
#include ... | 28.31769 | 148 | 0.735849 | shaykalyan |
0846d156d6862bb938a0e8132e5b96ad0a6b2d32 | 9,605 | cpp | C++ | src/cx-tracedebug.cpp | ryanvbissell/cx | 5291d5cb8e622920628343088eaec9996a3b1d44 | [
"BSD-2-Clause"
] | null | null | null | src/cx-tracedebug.cpp | ryanvbissell/cx | 5291d5cb8e622920628343088eaec9996a3b1d44 | [
"BSD-2-Clause"
] | null | null | null | src/cx-tracedebug.cpp | ryanvbissell/cx | 5291d5cb8e622920628343088eaec9996a3b1d44 | [
"BSD-2-Clause"
] | null | null | null | // vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab :
/*
* Copyright (c) 1999-2002,2013-2016, Ryan V. Bissell
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
* See the enclosed "LICENSE" file for exact license terms.
*/
#include "cx-hackery.hpp"
#define CX_TESTING
#include "cx-tracedebug... | 20.263713 | 75 | 0.643727 | ryanvbissell |
084b1050c930873f3ce059bdf43b5051b928dec4 | 3,399 | cpp | C++ | src/sapi/sapi_limiter.cpp | trappist/Core-Smart | a87b46c911e7e8bddccecd6c3c930d9086759eb7 | [
"MIT"
] | null | null | null | src/sapi/sapi_limiter.cpp | trappist/Core-Smart | a87b46c911e7e8bddccecd6c3c930d9086759eb7 | [
"MIT"
] | null | null | null | src/sapi/sapi_limiter.cpp | trappist/Core-Smart | a87b46c911e7e8bddccecd6c3c930d9086759eb7 | [
"MIT"
] | 1 | 2020-12-15T21:39:45.000Z | 2020-12-15T21:39:45.000Z | // Copyright (c) 2017 - 2018 - The SmartCash Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sapi/sapi.h"
#include "netbase.h"
#include "util.h"
CCriticalSection cs_clients;
static std::map<std::string, SAP... | 23.769231 | 111 | 0.653133 | trappist |
084f209f97e10e82c254d17d4f954f87d92f630d | 410 | hpp | C++ | include/asllvm/detail/debuginfo.hpp | AsuMagic/angelscript-llvm | 272a7137306473669be1ce80fcbb51a72d87e023 | [
"MIT"
] | 9 | 2020-04-30T09:28:46.000Z | 2022-01-09T14:07:25.000Z | include/asllvm/detail/debuginfo.hpp | AsuMagic/asllvm | 272a7137306473669be1ce80fcbb51a72d87e023 | [
"MIT"
] | 16 | 2020-04-23T12:50:43.000Z | 2020-04-23T12:51:36.000Z | include/asllvm/detail/debuginfo.hpp | AsuMagic/asllvm | 272a7137306473669be1ce80fcbb51a72d87e023 | [
"MIT"
] | null | null | null | #pragma once
#include <asllvm/detail/functioncontext.hpp>
#include <llvm/IR/DebugInfoMetadata.h>
namespace asllvm::detail
{
struct SourceLocation
{
int line, column;
};
SourceLocation get_source_location(FunctionContext context, std::size_t bytecode_offset = 0);
llvm::DebugLoc get_debug_location(FunctionContext con... | 25.625 | 112 | 0.797561 | AsuMagic |
084ffa5227640830821510e04367fdaeedd5fe5d | 238 | cpp | C++ | codeforces/52a.123-sequence/52a.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/52a.123-sequence/52a.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/52a.123-sequence/52a.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int arr[4];
int main()
{
int n;
cin >> n;
int inp;
for(int i=0; i<n; i++)
{
cin >> inp;
arr[inp] ++;
}
cout << n - *max_element(arr, arr+4) << endl;
return 0;
}
| 11.333333 | 46 | 0.558824 | KayvanMazaheri |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.