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
e2fe893b9533c1deaf371e183092fa7daf7e13ea
3,980
cxx
C++
sprokit/processes/core/unwrap_detections_process.cxx
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
sprokit/processes/core/unwrap_detections_process.cxx
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
sprokit/processes/core/unwrap_detections_process.cxx
neal-siekierski/kwiver
1c97ad72c8b6237cb4b9618665d042be16825005
[ "BSD-3-Clause" ]
null
null
null
/*ckwg +29 * Copyright 2018 by Kitware, 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 list of...
26.533333
94
0.631407
neal-siekierski
e2fffc29f48d61bbb1fd0392d17ef7142a1b37af
3,606
hh
C++
include/maxscale/response_distribution.hh
sdrik/MaxScale
c6c318b36dde0a25f22ac3fd59c9d33d774fe37a
[ "BSD-3-Clause" ]
null
null
null
include/maxscale/response_distribution.hh
sdrik/MaxScale
c6c318b36dde0a25f22ac3fd59c9d33d774fe37a
[ "BSD-3-Clause" ]
null
null
null
include/maxscale/response_distribution.hh
sdrik/MaxScale
c6c318b36dde0a25f22ac3fd59c9d33d774fe37a
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2021 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-12-13 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
31.356522
95
0.602329
sdrik
390256ec44b496ef5a71c4b2e584dc48afee9a61
2,706
hpp
C++
example/client_console/client_console.hpp
wo3kie/server
63e93c88c04db792b6d3fcb20591f07e5c1ae4f0
[ "MIT" ]
20
2015-09-14T01:38:56.000Z
2020-11-20T13:01:34.000Z
example/client_console/client_console.hpp
wo3kie/server
63e93c88c04db792b6d3fcb20591f07e5c1ae4f0
[ "MIT" ]
null
null
null
example/client_console/client_console.hpp
wo3kie/server
63e93c88c04db792b6d3fcb20591f07e5c1ae4f0
[ "MIT" ]
12
2017-01-23T18:46:32.000Z
2019-06-20T02:22:09.000Z
#ifndef _CLIENT_CONSOLE_ #define _CLIENT_CONSOLE_ #include "core/client.hpp" struct Writer : Task { Writer( asio::io_service & ioService, #ifdef SERVER_SSL ssl::stream< ip::tcp::socket > & socket, #else ip::tcp::socket & socket, #endif int argc, ...
19.751825
64
0.4915
wo3kie
390abeb5824edd87d529070e13d838c0c2467c31
17,059
cpp
C++
engine/src/ph/util/GltfLoader.cpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/src/ph/util/GltfLoader.cpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
engine/src/ph/util/GltfLoader.cpp
PetorSFZ/PhantasyEngine
befe8e9499b7fd93d8765721b6841337a57b0dd6
[ "Zlib" ]
null
null
null
// Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se) // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permission is granted to anyone to use this software for ...
33.318359
101
0.712762
PetorSFZ
390ff228cd4db2d07d9236a1271bdac3a64c1706
4,848
cpp
C++
src/loaders/PE.cpp
LucasDblt/QBDL
fc873087740f10ac56c023cad8b1c8ca42aa8d28
[ "Apache-2.0" ]
52
2021-05-21T20:17:13.000Z
2022-03-26T11:08:44.000Z
src/loaders/PE.cpp
LucasDblt/QBDL
fc873087740f10ac56c023cad8b1c8ca42aa8d28
[ "Apache-2.0" ]
2
2021-06-06T09:32:09.000Z
2021-09-03T10:25:19.000Z
src/loaders/PE.cpp
LucasDblt/QBDL
fc873087740f10ac56c023cad8b1c8ca42aa8d28
[ "Apache-2.0" ]
7
2021-05-22T02:17:20.000Z
2022-01-25T16:21:07.000Z
#include "logging.hpp" #include <LIEF/PE.hpp> #include <QBDL/Engine.hpp> #include <QBDL/arch.hpp> #include <QBDL/loaders/PE.hpp> #include <QBDL/utils.hpp> using namespace LIEF::PE; namespace QBDL::Loaders { std::unique_ptr<PE> PE::from_file(const char *path, TargetSystem &engines, B...
31.277419
80
0.607673
LucasDblt
391258a61b2f516878fedbf96255bda38df9868f
3,927
cpp
C++
qt-4.8.4/src/gui/kernel/qdesktopwidget_gix.cpp
easion/qt_for_gix
f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8
[ "Apache-2.0" ]
null
null
null
qt-4.8.4/src/gui/kernel/qdesktopwidget_gix.cpp
easion/qt_for_gix
f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8
[ "Apache-2.0" ]
null
null
null
qt-4.8.4/src/gui/kernel/qdesktopwidget_gix.cpp
easion/qt_for_gix
f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8
[ "Apache-2.0" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** Copyright (C) 2011 www.hanxuantech.com. The Gix parts. ** Written by Easion <easion@hanxuantech.com> ** **...
29.30597
77
0.718615
easion
3912b1cc54d2b24986c1b54851f0b0eb1ce44980
637
cpp
C++
Problems/codility/CyclicRotation/main.cpp
grand87/timus
8edcae276ab74b68fff18da3722460f492534a8a
[ "MIT" ]
null
null
null
Problems/codility/CyclicRotation/main.cpp
grand87/timus
8edcae276ab74b68fff18da3722460f492534a8a
[ "MIT" ]
1
2019-05-09T19:17:00.000Z
2019-05-09T19:17:00.000Z
Problems/codility/CyclicRotation/main.cpp
grand87/timus
8edcae276ab74b68fff18da3722460f492534a8a
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; vector<int> solution(vector<int> &A, int K) { const int size = A.size(); if(size != 0 && K % size != 0) { vector<int> result(size); for (int i = 0; i < size; i++) { result[(i + K) % size] = A[i]; } return re...
18.735294
45
0.467818
grand87
3915750d1eb18c97faa2696719710f45cb2ef94d
916
cpp
C++
Codeforces/731A - Night at the Museum.cpp
naimulcsx/online-judge-solutions
0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f
[ "MIT" ]
null
null
null
Codeforces/731A - Night at the Museum.cpp
naimulcsx/online-judge-solutions
0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f
[ "MIT" ]
null
null
null
Codeforces/731A - Night at the Museum.cpp
naimulcsx/online-judge-solutions
0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f
[ "MIT" ]
null
null
null
#include <iostream> #include <cctype> #include <cmath> #include <string> using namespace std; int get_minimum_distance(char src, char dest) { int distance; src = tolower(src); dest = tolower(dest); // if the distance between the pointed charecter and the destination charecter is greater than 13, then...
26.171429
154
0.644105
naimulcsx
39186a85e96ca0f5d099d05e8241ea93483e058a
5,307
cpp
C++
src/gui/pen.cpp
strandfield/yasl
d109eb3166184febfe48d1a2d1c96683c4a813f7
[ "MIT" ]
1
2020-12-28T01:41:35.000Z
2020-12-28T01:41:35.000Z
src/gui/pen.cpp
strandfield/yasl
d109eb3166184febfe48d1a2d1c96683c4a813f7
[ "MIT" ]
null
null
null
src/gui/pen.cpp
strandfield/yasl
d109eb3166184febfe48d1a2d1c96683c4a813f7
[ "MIT" ]
null
null
null
// Copyright (C) 2018 Vincent Chambrin // This file is part of the Yasl project // For conditions of distribution and use, see copyright notice in LICENSE #include "yasl/gui/pen.h" #include "yasl/common/binding/class.h" #include "yasl/common/binding/default_arguments.h" #include "yasl/common/binding/namespace.h" #inc...
43.5
130
0.689278
strandfield
391da41161d8c93e6cd163901fb74d288ce51d8d
12,227
cpp
C++
src/mesh.cpp
mohawkjohn/projected_area
d7c65d3d5b2a46a8f0d6d949dab04c2ac70ed1c2
[ "Unlicense" ]
1
2020-06-28T19:46:40.000Z
2020-06-28T19:46:40.000Z
src/mesh.cpp
autumnsault/projected_area
d7c65d3d5b2a46a8f0d6d949dab04c2ac70ed1c2
[ "Unlicense" ]
null
null
null
src/mesh.cpp
autumnsault/projected_area
d7c65d3d5b2a46a8f0d6d949dab04c2ac70ed1c2
[ "Unlicense" ]
null
null
null
/* * Copyright (c) 2014 - 2017, John O. Woods, Ph.D. * West Virginia University Applied Space Exploration Lab (2014 - 2015) * West Virginia Robotic Technology Center (2014 - 2015) * Intuitive Machines (2017) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * mo...
37.391437
158
0.649301
mohawkjohn
3920af713b3a1c2f83dd434fb1f913cdc16794c4
2,096
cpp
C++
API/ReconDemo/Geometry/Rect2D.cpp
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
null
null
null
API/ReconDemo/Geometry/Rect2D.cpp
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
null
null
null
API/ReconDemo/Geometry/Rect2D.cpp
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
null
null
null
#include "Rect2D.h" #include <utility> #include <assert.h> using namespace Geometry; /** Default constructor. All members initialized to zero. */ CRect2D::CRect2D() { _left = _right = _top = _bottom = 0.0; } /** Constructs an object from the four side of the rectangle. */ CRect2D::CRect2D(double left, ...
23.032967
75
0.671756
PengJinFa
392427e59bed278479a35b3e6ff5951f21cb75ed
2,802
cpp
C++
unit_tests/test_playable_moves.cpp
julienlopez/Aronda
8fb6625bc037736dc2926f97f46a59441d7dc221
[ "MIT" ]
null
null
null
unit_tests/test_playable_moves.cpp
julienlopez/Aronda
8fb6625bc037736dc2926f97f46a59441d7dc221
[ "MIT" ]
4
2018-02-21T15:38:56.000Z
2019-04-03T07:57:22.000Z
unit_tests/test_playable_moves.cpp
julienlopez/Aronda
8fb6625bc037736dc2926f97f46a59441d7dc221
[ "MIT" ]
null
null
null
#include <catch.hpp> #include "game.hpp" #include <numeric_range.hpp> #include <boost/optional/optional_io.hpp> using Aronda::Board; using Aronda::Game; using Aronda::InvalidMove; using Aronda::Square; using Aronda::SquareState; template <class T> bool contains(const std::vector<T>& container, const T& value) { ...
32.206897
100
0.557459
julienlopez
3925abaa7badfff6e1e3812a0746619d5ddfbaa4
132
cpp
C++
OpenGLTutorial/src/physics/collisionmodel.cpp
michaelg29/OpenGLTutorial
e1db34109eca435581c4224976d669e0fe44afd4
[ "CC-BY-4.0" ]
2
2022-03-20T11:20:19.000Z
2022-03-23T01:58:25.000Z
OpenGLTutorial/src/physics/collisionmodel.cpp
michaelg29/OpenGLTutorial
e1db34109eca435581c4224976d669e0fe44afd4
[ "CC-BY-4.0" ]
12
2020-02-17T05:19:01.000Z
2022-03-17T14:56:38.000Z
OpenGLTutorial/src/physics/collisionmodel.cpp
michaelg29/OpenGLTutorial
e1db34109eca435581c4224976d669e0fe44afd4
[ "CC-BY-4.0" ]
1
2022-01-25T16:48:21.000Z
2022-01-25T16:48:21.000Z
#include "collisionmodel.h" #include "../graphics/objects/model.h" CollisionModel::CollisionModel(Model* model) : model(model) {}
22
44
0.742424
michaelg29
3927538b461a290b31713b17dcd1b427bbf1a297
736
cpp
C++
tests/test18.cpp
varnie/giraffe
0448536cdca5dad66110aa64fdf24688b2a0050a
[ "MIT" ]
null
null
null
tests/test18.cpp
varnie/giraffe
0448536cdca5dad66110aa64fdf24688b2a0050a
[ "MIT" ]
1
2020-06-16T14:25:17.000Z
2020-06-16T14:25:17.000Z
tests/test18.cpp
varnie/giraffe
0448536cdca5dad66110aa64fdf24688b2a0050a
[ "MIT" ]
null
null
null
// // Created by varnie on 2/23/16. // #include <gtest/gtest.h> #include "../include/Giraffe.h" TEST(StorageTest, CheckRetrievingAllEntities) { struct Foo { Foo() { } }; using StorageT = Giraffe::Storage<>; using EntityT = Giraffe::Entity<StorageT>; StorageT storage; for (int i = 0...
17.52381
48
0.576087
varnie
392770182075de0f956a67a461d133ca273fc07b
1,231
cpp
C++
Notes_Week3/composition.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
1
2019-01-06T22:36:01.000Z
2019-01-06T22:36:01.000Z
Notes_Week3/composition.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
Notes_Week3/composition.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; class Rectangle { private: double length; double width; public: void setLength(double len) { length = len; } void setWidth(double wid) { width = wid; } double getLength() { return length; } double getWidth() { r...
17.84058
89
0.607636
WeiChienHsu
392b50d729fc87eed2c45f0554e10b2f27e19709
1,949
cpp
C++
texture-packer/src/main/Functions/main.cpp
ii887522/texture-packer
0dc2b6656329f427881c36ddafc0196447c74926
[ "MIT" ]
null
null
null
texture-packer/src/main/Functions/main.cpp
ii887522/texture-packer
0dc2b6656329f427881c36ddafc0196447c74926
[ "MIT" ]
null
null
null
texture-packer/src/main/Functions/main.cpp
ii887522/texture-packer
0dc2b6656329f427881c36ddafc0196447c74926
[ "MIT" ]
null
null
null
// Copyright ii887522 #ifndef TEST #define ALLOCATOR_IMPLEMENTATIONS #include <nitro/nitro.h> #include <SDL.h> #include <viewify/viewify.h> #include <iostream> #include <stdexcept> #include <filesystem> #include "../ViewGroupFactory/TexturePackerViewGroupFactory.h" #include "../Any/CommandLine.h" #include <SDL_image...
37.480769
155
0.746537
ii887522
3930edb38c8069acc6af05d921b0fc3c51491186
982
cpp
C++
LoveLiveWallpaper/src/Interactable.cpp
Juvwxyz/LoveLiveWallpaper
a0eeac941b5ccd53af538192cb92b7df049839c4
[ "MIT" ]
2
2020-05-09T00:13:06.000Z
2020-05-25T05:49:40.000Z
LoveLiveWallpaper/src/Interactable.cpp
Juvwxyz/LoveLiveWallpaper
a0eeac941b5ccd53af538192cb92b7df049839c4
[ "MIT" ]
null
null
null
LoveLiveWallpaper/src/Interactable.cpp
Juvwxyz/LoveLiveWallpaper
a0eeac941b5ccd53af538192cb92b7df049839c4
[ "MIT" ]
1
2020-05-25T05:49:44.000Z
2020-05-25T05:49:44.000Z
#include "Interactable.h" #include "Component.h" #include "Mouse.h" #include "MouseEventArg.h" #include "Transform.h" namespace LLWP { Interactable::Interactable() { Mouse::OnHitTest += (*this, &Interactable::OnHitTest); } bool Interactable::OnHitTest(Interactable*& hitted, const MouseEventArg...
26.540541
127
0.550916
Juvwxyz
3932962e99e15a87428393817850c8fb38c73874
1,441
hpp
C++
include/argot/concepts/reference.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
49
2018-05-09T23:17:45.000Z
2021-07-21T10:05:19.000Z
include/argot/concepts/reference.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
null
null
null
include/argot/concepts/reference.hpp
mattcalabrese/argot
97349baaf27659c9dc4d67cf8963b2e871eaedae
[ "BSL-1.0" ]
2
2019-08-04T03:51:36.000Z
2020-12-28T06:53:29.000Z
/*============================================================================== Copyright (c) 2017, 2018, 2019 Matt Calabrese 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) =======================================...
27.711538
80
0.700902
mattcalabrese
39410f0a0e8766d77f03a940a2f9f9f063b966d9
4,968
cpp
C++
test/path_append_test.cpp
abdes/asap_filesystem
44b8ab19900db6ce58a8802817a5b42d6ab6a4b3
[ "BSD-3-Clause" ]
3
2019-05-20T14:21:11.000Z
2019-05-21T19:09:13.000Z
test/path_append_test.cpp
abdes/asap_filesystem
44b8ab19900db6ce58a8802817a5b42d6ab6a4b3
[ "BSD-3-Clause" ]
null
null
null
test/path_append_test.cpp
abdes/asap_filesystem
44b8ab19900db6ce58a8802817a5b42d6ab6a4b3
[ "BSD-3-Clause" ]
null
null
null
// Copyright The Authors 2018. // Distributed under the 3-Clause BSD License. // (See accompanying file LICENSE or copy at // https://opensource.org/licenses/BSD-3-Clause) #if defined(__clang__) #pragma clang diagnostic push // Catch2 uses a lot of macro names that will make clang go crazy #if (__clang_...
29.748503
92
0.589171
abdes
3944cbb3e9853cc8dcee395ce7b63ca6fcc45742
5,847
cc
C++
gem5-gpu/src/graphics/graphic_calls.cc
ayoubg/gem5-graphics_v1
d74a968d5854dc02797139558430ccda1f71108e
[ "BSD-3-Clause" ]
1
2019-01-26T10:34:02.000Z
2019-01-26T10:34:02.000Z
gem5-gpu/src/graphics/graphic_calls.cc
ayoubg/gem5-graphics_v1
d74a968d5854dc02797139558430ccda1f71108e
[ "BSD-3-Clause" ]
null
null
null
gem5-gpu/src/graphics/graphic_calls.cc
ayoubg/gem5-graphics_v1
d74a968d5854dc02797139558430ccda1f71108e
[ "BSD-3-Clause" ]
1
2021-07-06T10:40:34.000Z
2021-07-06T10:40:34.000Z
#include "graphics/libOpenglRender/dll.h" #include "graphics/graphic_calls.hh" #include "base/misc.hh" #include <pthread.h> #include<ctime> #include<X11/Xlib.h> #include <SDL/SDL.h> #include <SDL/SDL_syswm.h> #include "graphics/serialize_graphics.hh" #define RENDER_API_NO_PROTOTYPES 1 #include "graphics/libOpenglRend...
26.337838
111
0.687532
ayoubg
394ed15fdfce934a47f9793194eb0550087ba44b
10,260
cc
C++
modules/loader-grub/arch/x86_64/mmu-loader.cc
eryjus/centuryos2
526a39c0f434b29a43d85e6b5b1ffa1ced885b25
[ "BSD-3-Clause" ]
null
null
null
modules/loader-grub/arch/x86_64/mmu-loader.cc
eryjus/centuryos2
526a39c0f434b29a43d85e6b5b1ffa1ced885b25
[ "BSD-3-Clause" ]
null
null
null
modules/loader-grub/arch/x86_64/mmu-loader.cc
eryjus/centuryos2
526a39c0f434b29a43d85e6b5b1ffa1ced885b25
[ "BSD-3-Clause" ]
null
null
null
//=================================================================================================================== // // mmu-loader.cc -- Functions related to managing the Paging Tables // // Copyright (c) 2017-2021 -- Adam Clark // Licensed under "THE BEER-WARE LICENSE" // See License.md for ...
22.649007
117
0.552729
eryjus
39503020253aa1fc8bd888aea2ab04ff9816e6bc
49
hpp
C++
src/agl/opengl/function/vertex_attribute/all.hpp
the-last-willy/abstractgl
d685bef25ac18773d3eea48ca52806c3a3485ddb
[ "MIT" ]
null
null
null
src/agl/opengl/function/vertex_attribute/all.hpp
the-last-willy/abstractgl
d685bef25ac18773d3eea48ca52806c3a3485ddb
[ "MIT" ]
null
null
null
src/agl/opengl/function/vertex_attribute/all.hpp
the-last-willy/abstractgl
d685bef25ac18773d3eea48ca52806c3a3485ddb
[ "MIT" ]
null
null
null
#pragma once #include "get_vertex_location.hpp"
12.25
34
0.795918
the-last-willy
39514b46fc36f061eaefc57aff06033acea5d384
1,023
cpp
C++
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez
52f01b57eea81445f5ef13325969a8a1bd868c50
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez
52f01b57eea81445f5ef13325969a8a1bd868c50
[ "MIT" ]
null
null
null
src/homework/tic_tac_toe/tic_tac_toe_manager.cpp
acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez
52f01b57eea81445f5ef13325969a8a1bd868c50
[ "MIT" ]
null
null
null
#include "tic_tac_toe_manager.h" void TicTacToeManager::save_game(std::unique_ptr<TicTacToe> & b) { update_winner_count(b->get_winner()); games.push_back(std::move(b)); } ostream& operator << (ostream& out, const TicTacToeManager& manager) { for(auto& x : manager.games) { out << *x; } ...
21.3125
68
0.545455
acc-cosc-1337-fall-2020
395242967db1c79c99f873570497994265193717
671
hpp
C++
src/input.hpp
MaemiKozue/hexceed
11ddcdfe3f7cadc23ca8ccba950df05fe49ce60a
[ "MIT" ]
null
null
null
src/input.hpp
MaemiKozue/hexceed
11ddcdfe3f7cadc23ca8ccba950df05fe49ce60a
[ "MIT" ]
null
null
null
src/input.hpp
MaemiKozue/hexceed
11ddcdfe3f7cadc23ca8ccba950df05fe49ce60a
[ "MIT" ]
null
null
null
#ifndef INPUT_H #define INPUT_H #include <iostream> typedef enum InputType { MOUSE, KEYBOARD } InputType; typedef enum KEY { KEY_ENTER } KEY; typedef enum MOUSE_BUTTON { MB_MIDDLE, MB_LEFT, MB_RIGHT } MOUSE_BUTTON; class Input { private: InputType type; int x, y; // mouse position MOUSE_BU...
15.97619
54
0.654247
MaemiKozue
39552ab957f0e29367375be85c5dd153557f0466
604
hpp
C++
Autoclicker GUI/Autoclicker GUI/GUI/Elements/Element/Element.hpp
CovERUshKA/Autoclicker
2f7f7cc3924495440c8afa797abadb92dba07faa
[ "MIT" ]
6
2020-07-05T05:52:30.000Z
2021-12-19T11:03:00.000Z
Autoclicker GUI/Autoclicker GUI/GUI/Elements/Element/Element.hpp
CovERUshKA/Autoclicker
2f7f7cc3924495440c8afa797abadb92dba07faa
[ "MIT" ]
null
null
null
Autoclicker GUI/Autoclicker GUI/GUI/Elements/Element/Element.hpp
CovERUshKA/Autoclicker
2f7f7cc3924495440c8afa797abadb92dba07faa
[ "MIT" ]
null
null
null
#pragma once #include <Windows.h> #include <string> #include "../../Def.hpp" class Element { public: // Type of the element( Button, TextEdit and etc. ) INT type; // Visible element or not bool visible; // ID of the element INT ID; // Position of the lement FLOAT x, y; // Size of the element FLOAT width, ...
17.257143
59
0.701987
CovERUshKA
395693c05065645deeca76b1e0fbb8443b352707
2,080
hpp
C++
ext/src/java/awt/BasicStroke.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
ext/src/java/awt/BasicStroke.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
ext/src/java/awt/BasicStroke.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #pragma once #include <fwd-POI.hpp> #include <java/awt/fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/lang/Object.hpp> #include <java/awt/Stroke.hpp> struct default_init_tag; class java::awt::BasicStroke ...
30.144928
112
0.694231
pebble2015
39599126185e37194126c4ae8f0c418c2f957a66
487
hpp
C++
EntitySystemGenerator/Include/ComponentMapsSourceGenerator.hpp
jordanlittlefair/Foundation
ab737b933ea5bbe2be76133ed78c8e882f072fd0
[ "BSL-1.0" ]
null
null
null
EntitySystemGenerator/Include/ComponentMapsSourceGenerator.hpp
jordanlittlefair/Foundation
ab737b933ea5bbe2be76133ed78c8e882f072fd0
[ "BSL-1.0" ]
null
null
null
EntitySystemGenerator/Include/ComponentMapsSourceGenerator.hpp
jordanlittlefair/Foundation
ab737b933ea5bbe2be76133ed78c8e882f072fd0
[ "BSL-1.0" ]
null
null
null
#pragma once #ifndef _ENTITYSYSTEMGENERATOR_COMPONENTMAPSSOURCEGENERATOR_HPP_ #define _ENTITYSYSTEMGENERATOR_COMPONENTMAPSSOURCEGENERATOR_HPP_ #include "CodeGenerator.hpp" #include "ComponentDefinitions.hpp" namespace Fnd { namespace EntitySystemCodeGeneration { class ComponentMapsSourceGenerator: ...
18.037037
68
0.780287
jordanlittlefair
395b252c334d240cbe37b6be91d0904cb2f834af
349
cpp
C++
cpp/cpp_primer/chapter10/ex_10_42.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
2
2019-12-21T00:53:47.000Z
2020-01-01T10:36:30.000Z
cpp/cpp_primer/chapter10/ex_10_42.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
cpp/cpp_primer/chapter10/ex_10_42.cpp
KaiserLancelot/Cpp-Primer
a4791a6765f0b6c864e8881e6a5328e2a3d68974
[ "MIT" ]
null
null
null
// // Created by kaiser on 18-12-17. // #include <algorithm> #include <iostream> #include <list> #include <string> void elim_dups(std::list<std::string>& words) { words.sort(); words.unique(); } int main() { std::list<std::string> vs{"a", "a", "c", "c", "b"}; elim_dups(vs); for (const auto& s : vs) { s...
15.863636
53
0.56447
KaiserLancelot
395f6301e153f9d9d7d2dd3428f88d665133c104
850
cpp
C++
PTA-B/right/1013-right.cpp
chiangyung/PTA
c8e6bcbc9e552dad5ab71679d861a235b8ad0730
[ "MIT" ]
2
2018-08-23T06:58:56.000Z
2018-09-04T02:07:44.000Z
PTA-B/right/1013-right.cpp
chiangyung/PTA
c8e6bcbc9e552dad5ab71679d861a235b8ad0730
[ "MIT" ]
null
null
null
PTA-B/right/1013-right.cpp
chiangyung/PTA
c8e6bcbc9e552dad5ab71679d861a235b8ad0730
[ "MIT" ]
null
null
null
#include <iostream> #include <math.h> using namespace std; const int INTMAX = pow(2, 30); bool is_prime(const int n) { for (int i = 2; i <= sqrt(n); i++) { if (n % i == 0) { return false; } } return true; } int main(int argc, char *argv[]) { int m, n; int count1 = 0, ...
18.888889
45
0.342353
chiangyung
395f7c953cc08a36d29401fb4b839e28b84b46d3
531
cpp
C++
test/Model/Header.cpp
jxx-project/JXXRS
0d788e3aba5231ec1782699c9d397b9d81fdb1fd
[ "BSL-1.0" ]
null
null
null
test/Model/Header.cpp
jxx-project/JXXRS
0d788e3aba5231ec1782699c9d397b9d81fdb1fd
[ "BSL-1.0" ]
null
null
null
test/Model/Header.cpp
jxx-project/JXXRS
0d788e3aba5231ec1782699c9d397b9d81fdb1fd
[ "BSL-1.0" ]
null
null
null
// // Copyright (C) 2018 Dr. Michael Steffens // // SPDX-License-Identifier: BSL-1.0 // #include "Model/Header.h" namespace Model { Header::Header() { } Header::Header(const std::string& name, const std::string& value) : name(name), value(value) { } Header::Header(const JXXON::Json& json) : name(json.get<decltype...
16.090909
123
0.661017
jxx-project
396289f2ff22620325ab55248496538c6b002707
3,553
cpp
C++
src/caffe/test/test_training_utils.cpp
ayzk/ft-caffe-public
888399c2fcf90c227416576a5a265b218c6be5da
[ "BSD-2-Clause" ]
933
2016-08-29T14:29:20.000Z
2022-03-20T09:03:49.000Z
src/caffe/test/test_training_utils.cpp
ayzk/ft-caffe-public
888399c2fcf90c227416576a5a265b218c6be5da
[ "BSD-2-Clause" ]
286
2016-08-30T01:33:01.000Z
2021-08-22T08:34:19.000Z
src/caffe/test/test_training_utils.cpp
ayzk/ft-caffe-public
888399c2fcf90c227416576a5a265b218c6be5da
[ "BSD-2-Clause" ]
611
2016-08-30T07:22:04.000Z
2021-12-18T11:53:08.000Z
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
35.178218
92
0.777934
ayzk
39644976619fc7b047dc5bfb77f4732ad44a2038
621
cxx
C++
test_code/test_fdstream_simple.cxx
m-renaud/posix-lib
0296999e252e2b40a80bcc01ea6a1742e8ef1c49
[ "BSD-2-Clause" ]
1
2020-11-11T12:50:30.000Z
2020-11-11T12:50:30.000Z
test_code/test_fdstream_simple.cxx
m-renaud/posix-lib
0296999e252e2b40a80bcc01ea6a1742e8ef1c49
[ "BSD-2-Clause" ]
null
null
null
test_code/test_fdstream_simple.cxx
m-renaud/posix-lib
0296999e252e2b40a80bcc01ea6a1742e8ef1c49
[ "BSD-2-Clause" ]
null
null
null
#include <iostream> #include "../fdstream.hxx" #include "../pipe.hxx" int main() { try { mrr::posix::pipe successful_auth; mrr::posix::fd_ostream write_end(successful_auth.write_end()); mrr::posix::fd_istream read_end(successful_auth.read_end()); int received[2]; write_end << 5 << std::endl; write_end...
17.25
64
0.639291
m-renaud
396aeaba14dfb506f287778ba27e13dd0c0d77f0
1,473
hpp
C++
include/sprout/predef/compiler/sgi_mipspro.hpp
thinkoid/Sprout
a5a5944bb1779d3bb685087c58c20a4e18df2f39
[ "BSL-1.0" ]
4
2021-12-29T22:17:40.000Z
2022-03-23T11:53:44.000Z
dsp/lib/sprout/sprout/predef/compiler/sgi_mipspro.hpp
TheSlowGrowth/TapeLooper
ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264
[ "MIT" ]
16
2021-10-31T21:41:09.000Z
2022-01-22T10:51:34.000Z
include/sprout/predef/compiler/sgi_mipspro.hpp
thinkoid/Sprout
a5a5944bb1779d3bb685087c58c20a4e18df2f39
[ "BSL-1.0" ]
null
null
null
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the sprout Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt) ...
35.071429
84
0.739308
thinkoid
396b1304f779670ccebfe8e01a457de7da6c4d38
1,764
hpp
C++
tasks/FrameFilter.hpp
PhischDotOrg/stm32f4-common
4b6b9c436018c89d3668c6ee107e97abb930bae2
[ "MIT" ]
1
2022-01-31T01:59:52.000Z
2022-01-31T01:59:52.000Z
tasks/FrameFilter.hpp
PhischDotOrg/stm32-common
4b6b9c436018c89d3668c6ee107e97abb930bae2
[ "MIT" ]
5
2020-04-13T21:55:12.000Z
2020-06-27T17:44:44.000Z
tasks/FrameFilter.hpp
PhischDotOrg/stm32f4-common
4b6b9c436018c89d3668c6ee107e97abb930bae2
[ "MIT" ]
null
null
null
/*- * $Copyright$ -*/ #ifndef _FRAME_FILTER_HPP_3532115b_b86b_48e5_a4c1_810606f79dfe #define _FRAME_FILTER_HPP_3532115b_b86b_48e5_a4c1_810606f79dfe #include <tasks/Task.hpp> #if defined(__cplusplus) extern "C" { #endif /* defined(__cplusplus) */ #include "FreeRTOS/FreeRTOS.h" #include "FreeRTOS/queue.h" #if defined...
25.2
119
0.679705
PhischDotOrg
396b3b879ceeafa68fd880dd22e30b04d2b335db
1,180
cpp
C++
SPOJ/MFLAR10 - Flowers Flourish From France/mflar10.cpp
Zubieta/CPP
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
8
2017-03-02T07:56:45.000Z
2021-08-07T20:20:19.000Z
SPOJ/MFLAR10 - Flowers Flourish From France/mflar10.cpp
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
null
null
null
SPOJ/MFLAR10 - Flowers Flourish From France/mflar10.cpp
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
1
2021-08-07T20:20:20.000Z
2021-08-07T20:20:20.000Z
/*Santiago Zubieta*/ #include <iostream> #include <numeric> #include <fstream> #include <climits> #include <cstring> #include <cstdio> #include <cmath> #include <queue> #include <list> #include <map> #include <set> #include <stack> #include <deque> #include <vector> #include <string> #include <cstdlib> #include <casser...
18.730159
56
0.499153
Zubieta
396c73354d9d9ef8cf18366a2a474450ef4f9501
1,774
cc
C++
map-structure/vi-map/test/test_map_get_vertex_ids_in_mission_test.cc
AdronTech/maplab
1340e01466fc1c02994860723b8117daf9ad226d
[ "Apache-2.0" ]
1,936
2017-11-27T23:11:37.000Z
2022-03-30T14:24:14.000Z
map-structure/vi-map/test/test_map_get_vertex_ids_in_mission_test.cc
AdronTech/maplab
1340e01466fc1c02994860723b8117daf9ad226d
[ "Apache-2.0" ]
353
2017-11-29T18:40:39.000Z
2022-03-30T15:53:46.000Z
map-structure/vi-map/test/test_map_get_vertex_ids_in_mission_test.cc
AdronTech/maplab
1340e01466fc1c02994860723b8117daf9ad226d
[ "Apache-2.0" ]
661
2017-11-28T07:20:08.000Z
2022-03-28T08:06:29.000Z
#include <Eigen/Core> #include <gtest/gtest.h> #include <maplab-common/test/testing-entrypoint.h> #include "vi-map/test/vi-map-generator.h" namespace vi_map { class VIMapTest : public ::testing::Test { protected: VIMapTest() : map_(), generator_(map_, 42) {} virtual void SetUp() { pose::Transformation T_G_...
27.71875
74
0.73168
AdronTech
397170c480ab89b57d5c1d86eefd61c9657a072d
10,484
cc
C++
src/io/scene_loader.cc
hyungman/SpRay
96380740dd88e6fbc21c0fdbf232cff357b1235d
[ "Apache-2.0" ]
7
2018-10-22T17:13:36.000Z
2020-04-17T08:28:55.000Z
src/io/scene_loader.cc
hyungman/SpRay
96380740dd88e6fbc21c0fdbf232cff357b1235d
[ "Apache-2.0" ]
null
null
null
src/io/scene_loader.cc
hyungman/SpRay
96380740dd88e6fbc21c0fdbf232cff357b1235d
[ "Apache-2.0" ]
1
2018-11-01T14:53:22.000Z
2018-11-01T14:53:22.000Z
// ========================================================================== // // Copyright (c) 2017-2018 The University of Texas at Austin. // // All rights reserved. // // ...
29.041551
80
0.572778
hyungman
3974218429c4050238314f3d62724d1d653797df
10,436
hpp
C++
OpenAutoItParser/include/OpenAutoIt/TokenKind.hpp
OpenAutoit/OpenAutoit
f58c98c6e2a706ba7f06dcbc08a54a5a6440063e
[ "MIT" ]
null
null
null
OpenAutoItParser/include/OpenAutoIt/TokenKind.hpp
OpenAutoit/OpenAutoit
f58c98c6e2a706ba7f06dcbc08a54a5a6440063e
[ "MIT" ]
6
2022-02-01T04:07:12.000Z
2022-03-01T04:43:49.000Z
OpenAutoItParser/include/OpenAutoIt/TokenKind.hpp
OpenAutoit/OpenAutoit
f58c98c6e2a706ba7f06dcbc08a54a5a6440063e
[ "MIT" ]
null
null
null
#pragma once namespace OpenAutoIt { enum class TokenKind { NotAToken, EndOfFile, // '\0' NewLine, // '\n' Comment, // ; Comment VariableIdentifier, // $var FunctionIdentifier, // my_func /* Literals */ IntegerLiteral, // 123 FloatLi...
41.412698
94
0.542353
OpenAutoit
3976a580c60f6c867eaa81ee34c727b5c0186dbd
2,118
cxx
C++
STEER/STEERBase/AliGenEposEventHeader.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
STEER/STEERBase/AliGenEposEventHeader.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
STEER/STEERBase/AliGenEposEventHeader.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
25.518072
76
0.531161
AllaMaevskaya
397909e5ff617b46401a0c2a6bf3af3550b1f4c6
344
cpp
C++
Problemset/climbing-stairs/climbing-stairs.cpp
Singularity0909/LeetCode
d46fb1c8ed9b16339d46d5c37f69d44e5c178954
[ "MIT" ]
1
2020-10-06T01:06:45.000Z
2020-10-06T01:06:45.000Z
Problemset/climbing-stairs/climbing-stairs.cpp
Singularity0909/LeetCode
d46fb1c8ed9b16339d46d5c37f69d44e5c178954
[ "MIT" ]
null
null
null
Problemset/climbing-stairs/climbing-stairs.cpp
Singularity0909/LeetCode
d46fb1c8ed9b16339d46d5c37f69d44e5c178954
[ "MIT" ]
1
2021-11-17T13:52:51.000Z
2021-11-17T13:52:51.000Z
// @Title: 爬楼梯 (Climbing Stairs) // @Author: Singularity0909 // @Date: 2020-06-11 21:10:10 // @Runtime: 0 ms // @Memory: 5.6 MB class Solution { public: int ans[50] = { 0 }; int climbStairs(int n) { if (n <= 3) return n; return ans[n] ? ans[n] : ans[n] = climbStairs(n - 1) + climb...
19.111111
82
0.52907
Singularity0909
397adea56a014b5fc6911d96ffdb6695d6a84410
2,181
hpp
C++
VcppBits/Settings/SettingsException.hpp
faesong/vcppbits
9ad70f8e398110df48e4e2640a06fca09ef994f9
[ "MIT" ]
null
null
null
VcppBits/Settings/SettingsException.hpp
faesong/vcppbits
9ad70f8e398110df48e4e2640a06fca09ef994f9
[ "MIT" ]
null
null
null
VcppBits/Settings/SettingsException.hpp
faesong/vcppbits
9ad70f8e398110df48e4e2640a06fca09ef994f9
[ "MIT" ]
null
null
null
// The MIT License (MIT) // Copyright 2015-2020 Vitalii Minnakhmetov <restlessmonkey@ya.ru> // 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 limi...
34.619048
76
0.727648
faesong
397c9213cf3e3a4a6135912c2a1bfeec42dd44f7
51,295
cc
C++
c/test/cpp/auto_check_sbp_tracking_MsgMeasurementState.cc
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
65
2015-03-25T10:28:10.000Z
2022-02-24T12:36:49.000Z
c/test/cpp/auto_check_sbp_tracking_MsgMeasurementState.cc
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
654
2015-03-24T17:43:55.000Z
2022-03-31T21:42:49.000Z
c/test/cpp/auto_check_sbp_tracking_MsgMeasurementState.cc
Patrick-Luo-THR/libsbp
d42e4a1e3cedf6a82b1d993b82e0da148401f80d
[ "MIT" ]
110
2015-03-24T17:38:35.000Z
2022-03-21T02:05:19.000Z
/* * Copyright (C) 2015-2021 Swift Navigation Inc. * Contact: https://support.swiftnav.com * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ...
44.838287
80
0.666673
Patrick-Luo-THR
302a65d5a1b2de8810875e5cf049bac9efdda89e
1,680
cpp
C++
S3DWrapper10/Commands/DsSetShaderWithIfaces11_0.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
27
2020-11-12T19:24:54.000Z
2022-03-27T23:10:45.000Z
S3DWrapper10/Commands/DsSetShaderWithIfaces11_0.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
2
2020-11-02T06:30:39.000Z
2022-02-23T18:39:55.000Z
S3DWrapper10/Commands/DsSetShaderWithIfaces11_0.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
3
2021-08-16T00:21:08.000Z
2022-02-23T19:19:36.000Z
#include "stdafx.h" #include "DsSetShaderWithIfaces11_0.h" #include "..\Streamer\CodeGenerator.h" #include "D3DDeviceWrapper.h" #include "ShaderWrapper.h" namespace Commands { void DsSetShaderWithIfaces11_0::UpdateDeviceState( D3DDeviceWrapper *pWrapper, D3DDeviceState* pState ) { pState->DS.m_Shader = this; p...
31.698113
107
0.780952
bo3b
302aac1280b7be982666485af5edd0c478eac7cd
57,052
cpp
C++
frameworks/compile/slang/slang_rs_object_ref_count.cpp
touxiong88/92_mediatek
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
[ "Apache-2.0" ]
1
2022-01-07T01:53:19.000Z
2022-01-07T01:53:19.000Z
frameworks/compile/slang/slang_rs_object_ref_count.cpp
touxiong88/92_mediatek
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
[ "Apache-2.0" ]
null
null
null
frameworks/compile/slang/slang_rs_object_ref_count.cpp
touxiong88/92_mediatek
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
[ "Apache-2.0" ]
1
2020-02-28T02:48:42.000Z
2020-02-28T02:48:42.000Z
/* * Copyright 2010, The Android Open Source Project * * 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 applica...
36.200508
80
0.552864
touxiong88
302fe2d3f3f102b03543aea9ee36bd7b982fb4a3
8,462
cpp
C++
ConnectOptionDialog.cpp
hyo0913/MQTT-Client-with-QMQTT
d9974d755dcc4f16c1e89b426c45be3854bcdbb5
[ "MIT" ]
1
2021-02-10T08:56:12.000Z
2021-02-10T08:56:12.000Z
ConnectOptionDialog.cpp
hyo0913/MQTT-Client-using-qmqtt
d9974d755dcc4f16c1e89b426c45be3854bcdbb5
[ "MIT" ]
null
null
null
ConnectOptionDialog.cpp
hyo0913/MQTT-Client-using-qmqtt
d9974d755dcc4f16c1e89b426c45be3854bcdbb5
[ "MIT" ]
null
null
null
#include "ConnectOptionDialog.h" #include "ui_ConnectOptionDialog.h" #include "QFileDialog" #include "QApplication" ConnectOptionDialog::ConnectOptionDialog(QWidget *parent) : QDialog(parent), ui(new Ui::ConnectOptionDialog) { ui->setupUi(this); connect(ui->checkBoxWillFlag, SIGNAL(toggle...
28.979452
110
0.69109
hyo0913
3030085cec3c16ba6b029381746dd0a63baff54c
1,446
cc
C++
test/config_test.cc
lilialexlee/kit
94492e04832749fcdfb7f9fb8a778bb949d5e7d6
[ "MIT" ]
1
2015-09-22T15:33:30.000Z
2015-09-22T15:33:30.000Z
test/config_test.cc
lilialexlee/kit
94492e04832749fcdfb7f9fb8a778bb949d5e7d6
[ "MIT" ]
null
null
null
test/config_test.cc
lilialexlee/kit
94492e04832749fcdfb7f9fb8a778bb949d5e7d6
[ "MIT" ]
null
null
null
/* * config_test.cc * */ #include "util/config.h" #include <iostream> int main() { kit::Config config; config.Init("./test/example_conf"); std::string str_value; int ret = config.GetStr("str", &str_value); if (ret == 0) { std::cout << "get str: " << str_value << "\n"; } else { ...
21.909091
53
0.502766
lilialexlee
30315f2c2da15598ac8a5ff4725bec76120052dd
2,307
hxx
C++
src/tcl_iface/array.hxx
AltSysrq/Abendstern
106e1ad2457f7bfd90080eecf49a33f6079f8e1e
[ "BSD-3-Clause" ]
null
null
null
src/tcl_iface/array.hxx
AltSysrq/Abendstern
106e1ad2457f7bfd90080eecf49a33f6079f8e1e
[ "BSD-3-Clause" ]
null
null
null
src/tcl_iface/array.hxx
AltSysrq/Abendstern
106e1ad2457f7bfd90080eecf49a33f6079f8e1e
[ "BSD-3-Clause" ]
1
2022-01-29T11:54:41.000Z
2022-01-29T11:54:41.000Z
/** * @file * @author Jason Lingle * @brief Makes C automatic/static arrays accessible to trusted Tcl. */ /* * array.hxx * Make C arrays accessible to trusted Tcl. * * Created on: 12.07.2010 * Author: jason */ #ifndef ARRAY_HXX_ #define ARRAY_HXX_ #include <stdexcept> #include <exception> #include "...
24.806452
81
0.647161
AltSysrq
30351cdc1536feb813463363d184c60765f63aa0
799
cpp
C++
20-Valid_Parentheses.cpp
elsdrium/LeetCode-practice
a3b1fa5dd200155a636d36cd570e2454f7194e10
[ "MIT" ]
null
null
null
20-Valid_Parentheses.cpp
elsdrium/LeetCode-practice
a3b1fa5dd200155a636d36cd570e2454f7194e10
[ "MIT" ]
null
null
null
20-Valid_Parentheses.cpp
elsdrium/LeetCode-practice
a3b1fa5dd200155a636d36cd570e2454f7194e10
[ "MIT" ]
null
null
null
class Solution { public: bool isValid(string s) { list<char> stack; for( char c : s ) { switch ( c ) { case '(': case '{': case '[': stack.push_back(c); break; case ')': ...
27.551724
60
0.307885
elsdrium
3037f5e0b45bf4e649a6f55f8b430cc7717b11be
6,782
cc
C++
gnuradio-3.7.13.4/gr-atsc/lib/atsci_trellis_encoder.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gr-atsc/lib/atsci_trellis_encoder.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gr-atsc/lib/atsci_trellis_encoder.cc
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
/* -*- c++ -*- */ /* * Copyright 2002,2006 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio 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, or (at your o...
32.449761
76
0.664406
v1259397
303880210283d85be75660b6f91578dee964ab52
4,210
cpp
C++
002_disparity_panorama.cpp
DreamVu/Code-Samples
2fccd9e649fbe7d9895df7d799cb1ec33066d1c2
[ "MIT" ]
null
null
null
002_disparity_panorama.cpp
DreamVu/Code-Samples
2fccd9e649fbe7d9895df7d799cb1ec33066d1c2
[ "MIT" ]
null
null
null
002_disparity_panorama.cpp
DreamVu/Code-Samples
2fccd9e649fbe7d9895df7d799cb1ec33066d1c2
[ "MIT" ]
null
null
null
/* CODE SAMPLE # 002: Disparity panorama This code will grab the basic stereo panoramas (left and right images) and ALSO the Disparity panorama, and all these 3 images are displayed in an opencv window >>>>>> Compile this code using the following command.... g++ 002_disparity_panorama.cpp ../lib/libPAL.so `pkg-con...
26.3125
162
0.676485
DreamVu
303cbece338cb8a60e1ccda8430c5e1b98e53dcb
2,493
cpp
C++
src/Common/Instruction_test.cpp
skyzh/RISCV-Simulator
8989a09c357a69b68612f653380d60816f5176c2
[ "MIT" ]
106
2019-07-04T12:20:25.000Z
2022-03-20T10:50:52.000Z
src/Common/Instruction_test.cpp
qshan/RISCV-Simulator
8989a09c357a69b68612f653380d60816f5176c2
[ "MIT" ]
2
2019-07-02T13:38:42.000Z
2019-09-06T02:09:30.000Z
src/Common/Instruction_test.cpp
qshan/RISCV-Simulator
8989a09c357a69b68612f653380d60816f5176c2
[ "MIT" ]
12
2020-01-02T05:41:28.000Z
2022-03-10T11:57:46.000Z
// // Created by Alex Chi on 2019-07-01. // #include "gtest/gtest.h" #include "Instruction.hpp" TEST(Instruction, CorrectSize) { EXPECT_EQ(sizeof(Instruction), 4); } TEST(Instruction, InstructionR) { // 10987654321098765432109876543210 InstructionR inst(0b10101010101010101010101010101010...
34.150685
60
0.69274
skyzh
303fb3bc53beaf5ea5c43b46203287c27e904f92
13,179
hpp
C++
sources/RenderSystem/spShaderClass.hpp
rontrek/softpixel
73a13a67e044c93f5c3da9066eedbaf3805d6807
[ "Zlib" ]
14
2015-08-16T21:05:20.000Z
2019-08-21T17:22:01.000Z
sources/RenderSystem/spShaderClass.hpp
rontrek/softpixel
73a13a67e044c93f5c3da9066eedbaf3805d6807
[ "Zlib" ]
null
null
null
sources/RenderSystem/spShaderClass.hpp
rontrek/softpixel
73a13a67e044c93f5c3da9066eedbaf3805d6807
[ "Zlib" ]
3
2020-02-15T09:17:41.000Z
2020-05-21T14:10:40.000Z
/* * Shader class header * * This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns) * See "SoftPixelEngine.hpp" for license information. */ #ifndef __SP_SHADER_CLASS_H__ #define __SP_SHADER_CLASS_H__ #include "Base/spStandard.hpp" #include "Base/spInputOutput.hpp" #include "Base/spB...
34.865079
131
0.629866
rontrek
303fd170eef267427715ae2218bd05a1403ec51d
3,942
hpp
C++
examples/accumulator/accumulators/stubs/template_function_accumulator.hpp
kempj/hpx
ffdbfed5dfa029a0f2e97e7367cb66d12103df67
[ "BSL-1.0" ]
null
null
null
examples/accumulator/accumulators/stubs/template_function_accumulator.hpp
kempj/hpx
ffdbfed5dfa029a0f2e97e7367cb66d12103df67
[ "BSL-1.0" ]
null
null
null
examples/accumulator/accumulators/stubs/template_function_accumulator.hpp
kempj/hpx
ffdbfed5dfa029a0f2e97e7367cb66d12103df67
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2007-2012 Hartmut Kaiser // Copyright (c) 2011 Bryce Adelstein-Lelbach // // 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) #if !defined(HPX_EXAMPLES_STUBS_TEMPLATE_FUNCTION_ACCUMULATOR_JUL_...
40.22449
94
0.58067
kempj
3044e789aeef2de9d1302d7043c1282d0b844e00
7,189
cc
C++
kernel/fat32/fat32_dirent.cc
mit-pdos/ward
91b598932d161f907590b9ad21d7df395e5d6712
[ "MIT-0" ]
29
2019-12-12T02:30:35.000Z
2022-01-06T17:13:09.000Z
kernel/fat32/fat32_dirent.cc
mit-pdos/ward
91b598932d161f907590b9ad21d7df395e5d6712
[ "MIT-0" ]
47
2019-12-11T02:34:13.000Z
2020-06-08T19:26:59.000Z
kernel/fat32/fat32_dirent.cc
mit-pdos/ward
91b598932d161f907590b9ad21d7df395e5d6712
[ "MIT-0" ]
4
2020-12-08T13:46:55.000Z
2022-01-04T20:25:10.000Z
#include "types.h" #include "fat32.hh" static void strip_char(char *buf, char s) { assert(buf); char *lastch = buf; while (*lastch) lastch++; lastch--; while (lastch >= buf && *lastch == s) { *lastch = '\0'; lastch--; } } u32 fat32_dirent::cluster_id() { return ((u32) cluster_id_high << 16u)...
29.829876
169
0.641953
mit-pdos
30492562f44dbe9294a88209c703116a098d00bd
7,356
cpp
C++
srm 195 div1/FanFailure.cpp
emiliot/topcoder
c58e105424b484a4e5600bad2c58d664cdcae935
[ "MIT" ]
null
null
null
srm 195 div1/FanFailure.cpp
emiliot/topcoder
c58e105424b484a4e5600bad2c58d664cdcae935
[ "MIT" ]
null
null
null
srm 195 div1/FanFailure.cpp
emiliot/topcoder
c58e105424b484a4e5600bad2c58d664cdcae935
[ "MIT" ]
null
null
null
// Paste me into the FileEdit configuration dialog #include "assert.h" #include "ctype.h" #include "float.h" #include "math.h" #include "stdio.h" #include "string.h" #include "stdlib.h" #include "stdarg.h" #include "time.h" #include "algorithm" #include "numeric" #include "functional" #include "utility" #include "bits...
30.396694
277
0.592577
emiliot
304ca01da15122c17a533bad4bf5c6afe013c09a
4,046
cpp
C++
OverEngine/src/OverEngine/Scene/Components.cpp
gitter-badger/OverEngine
7ade00f120ccc62804f1bfdeb34daf7e179d33bb
[ "MIT" ]
1
2020-11-24T06:13:34.000Z
2020-11-24T06:13:34.000Z
OverEngine/src/OverEngine/Scene/Components.cpp
gitter-badger/OverEngine
7ade00f120ccc62804f1bfdeb34daf7e179d33bb
[ "MIT" ]
null
null
null
OverEngine/src/OverEngine/Scene/Components.cpp
gitter-badger/OverEngine
7ade00f120ccc62804f1bfdeb34daf7e179d33bb
[ "MIT" ]
null
null
null
#include "pcheader.h" #include "Components.h" namespace OverEngine { SerializationContext* SpriteRendererComponent::Reflect() { static bool initialized = false; static SerializationContext ctx; if (!initialized) { initialized = true; if (!Serializer::GlobalEnumExists("TextureWrapping")) { Seri...
34.87931
173
0.726149
gitter-badger
304f206ea3efb19f7470a6edb5116fce5b896372
552
hpp
C++
src/Type.hpp
pawelprazak/jeff-native-agent
1554a8f69d0f0ca719ae5a794564e0e155b82545
[ "Apache-2.0" ]
7
2017-12-10T16:37:18.000Z
2021-01-19T06:33:23.000Z
src/Type.hpp
pawelprazak/jeff-native-agent
1554a8f69d0f0ca719ae5a794564e0e155b82545
[ "Apache-2.0" ]
3
2016-01-13T13:39:50.000Z
2016-02-19T18:08:38.000Z
src/Type.hpp
pawelprazak/jeff-native-agent
1554a8f69d0f0ca719ae5a794564e0e155b82545
[ "Apache-2.0" ]
5
2015-12-08T09:03:10.000Z
2019-07-29T16:13:13.000Z
#ifndef JEFF_NATIVE_AGENT_TYPE_HPP #define JEFF_NATIVE_AGENT_TYPE_HPP #include <jni.h> #include <jvmti.h> #include "Object.hpp" class Type : Object { public: Type(); Type(const std::string signature); virtual ~Type(); private: const std::string signature; public: static const Type *const from...
19.034483
90
0.721014
pawelprazak
30513d53b2a1b4498bffe6aa1f399aff96408a17
657
hpp
C++
RainbowNoise/src/Library/ColorTransformer.hpp
1iyiwei/noise
0d1be2030518517199dff5c7e7514ee072037d59
[ "MIT" ]
24
2016-12-13T09:48:17.000Z
2022-01-13T03:24:45.000Z
RainbowNoise/src/Library/ColorTransformer.hpp
1iyiwei/noise
0d1be2030518517199dff5c7e7514ee072037d59
[ "MIT" ]
2
2019-03-29T06:44:41.000Z
2019-11-12T03:14:25.000Z
RainbowNoise/src/Library/ColorTransformer.hpp
1iyiwei/noise
0d1be2030518517199dff5c7e7514ee072037d59
[ "MIT" ]
8
2016-11-09T15:54:19.000Z
2021-04-08T14:04:17.000Z
/* ColorTransformer.hpp the base class for all color transfomers Li-Yi Wei 09/26/2009 */ #ifndef _COLOR_TRANSFORMER_HPP #define _COLOR_TRANSFORMER_HPP #include <vector> using namespace std; class ColorTransformer { public: typedef vector<float> Vector; // each basis vector component can be either...
19.323529
85
0.747336
1iyiwei
30534b9793b2207074a3d48925d19d11f017d241
142
cpp
C++
src/app/camera/camera.cpp
JonCG90/Goby
da1bfcea23c058427e6bad1c58f1cd5405fe4c5f
[ "MIT" ]
null
null
null
src/app/camera/camera.cpp
JonCG90/Goby
da1bfcea23c058427e6bad1c58f1cd5405fe4c5f
[ "MIT" ]
null
null
null
src/app/camera/camera.cpp
JonCG90/Goby
da1bfcea23c058427e6bad1c58f1cd5405fe4c5f
[ "MIT" ]
null
null
null
// // camera.cpp // Goby // // Created by Jonathan Graham on 8/18/19. // #include "camera.hpp" namespace Goby { } // namespace Goby
10.142857
42
0.598592
JonCG90
3054fbf14a79cbdc41baa36817c2127adc340035
12,908
cpp
C++
test/diamond_complex.cpp
rwols/yaml-archive
4afec73e557c15350c5e068c010f4e378edc95ef
[ "BSL-1.0" ]
1
2018-01-27T23:35:21.000Z
2018-01-27T23:35:21.000Z
test/diamond_complex.cpp
rwols/yaml-archive
4afec73e557c15350c5e068c010f4e378edc95ef
[ "BSL-1.0" ]
2
2019-08-17T05:37:36.000Z
2019-08-17T22:57:26.000Z
test/diamond_complex.cpp
rwols/yaml-archive
4afec73e557c15350c5e068c010f4e378edc95ef
[ "BSL-1.0" ]
1
2021-03-19T11:53:53.000Z
2021-03-19T11:53:53.000Z
#include "io_count_fixture.hpp" #include <boost/serialization/export.hpp> #include <boost/serialization/map.hpp> #include <boost/test/unit_test.hpp> #define NVP(name) BOOST_SERIALIZATION_NVP(name) using boost::serialization::make_nvp; namespace { // used to detect when base_diamond class is saved multiple times int d...
29.47032
75
0.68353
rwols
305b0147381455dd98f6417efd6da68f5d915c91
2,275
cpp
C++
C++/Brute Force Password Cracker.cpp
CyanCoding/Brute-Force-Password-Cracker
dcc753618e1de8294b118721adca35f87eb2bfe7
[ "MIT" ]
30
2019-02-07T23:41:24.000Z
2022-03-13T15:39:37.000Z
C++/Brute Force Password Cracker.cpp
CyanCoding/Brute-Force-Password-Cracker
dcc753618e1de8294b118721adca35f87eb2bfe7
[ "MIT" ]
3
2020-09-22T19:55:16.000Z
2021-10-01T19:48:13.000Z
C++/Brute Force Password Cracker.cpp
CyanCoding/Brute-Force-Password-Cracker
dcc753618e1de8294b118721adca35f87eb2bfe7
[ "MIT" ]
28
2018-06-08T15:27:03.000Z
2022-02-07T05:40:29.000Z
#include <iostream> #include <string> // to_string #include <iomanip> // setprecision using namespace std; bool stop = false; long long amount = 0; string password; clock_t start; const char Alphabet[62] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', ...
30.333333
311
0.487912
CyanCoding
305e00e4be433b098a54686754f91b0d53e16b0f
336
hpp
C++
include/mil/utils/index_sequence.hpp
vhapiak/meta_info_lib
677984960028c6ef0f2b462c2f6ae8ac7fc714ea
[ "MIT" ]
null
null
null
include/mil/utils/index_sequence.hpp
vhapiak/meta_info_lib
677984960028c6ef0f2b462c2f6ae8ac7fc714ea
[ "MIT" ]
null
null
null
include/mil/utils/index_sequence.hpp
vhapiak/meta_info_lib
677984960028c6ef0f2b462c2f6ae8ac7fc714ea
[ "MIT" ]
null
null
null
#pragma once #include <cstddef> #include "detail/index_sequence.hpp" namespace mil { namespace utils { template <std::size_t... Idx> using index_sequnece = detail::index_sequnece<Idx...>; template <std::size_t N> using make_index_sequence = typename detail::make_index_sequence<N>::type; } // namespace utils } /...
18.666667
74
0.738095
vhapiak
305e1854791154a3b617f08dda01e2fada435e2f
4,627
cpp
C++
src/platform/mbino_critical.cpp
tkem/mbino
6fa2251048a8409170602049f29b231c67f5b8fe
[ "Apache-2.0" ]
10
2017-10-06T14:27:03.000Z
2021-11-08T11:18:58.000Z
src/platform/mbino_critical.cpp
tkem/mbino
6fa2251048a8409170602049f29b231c67f5b8fe
[ "Apache-2.0" ]
49
2017-08-12T13:45:55.000Z
2018-12-22T21:35:54.000Z
src/platform/mbino_critical.cpp
tkem/mbino
6fa2251048a8409170602049f29b231c67f5b8fe
[ "Apache-2.0" ]
2
2018-07-15T11:06:47.000Z
2019-05-25T01:10:32.000Z
/* mbino - mbed APIs for the Arduino platform * Copyright (c) 2017, 2018 Thomas Kemmer * * mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a ...
30.846667
118
0.770478
tkem
30608a5bc5e5b05a736a10130fb51f16f51e84ee
3,614
cxx
C++
FIT/FITcalib/AliFITCalibTimeEq.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
FIT/FITcalib/AliFITCalibTimeEq.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
FIT/FITcalib/AliFITCalibTimeEq.cxx
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors...
31.982301
91
0.57969
AllaMaevskaya
30657cd12bea49e681cd2756206affac7f565829
4,202
cpp
C++
src/drive.cpp
sizeofvoid/openbsdisks2
4bc053a9d15f4e367a9f7601e7e506cd3d72bd7c
[ "BSD-3-Clause" ]
7
2021-05-13T07:43:10.000Z
2022-01-09T12:18:48.000Z
src/drive.cpp
sizeofvoid/openbsdisks2
4bc053a9d15f4e367a9f7601e7e506cd3d72bd7c
[ "BSD-3-Clause" ]
null
null
null
src/drive.cpp
sizeofvoid/openbsdisks2
4bc053a9d15f4e367a9f7601e7e506cd3d72bd7c
[ "BSD-3-Clause" ]
null
null
null
/* Copyright 2016 Gleb Popov <6yearold@gmail.com> 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 f...
24.011429
99
0.694669
sizeofvoid
3065e0634838c6a4728f0c0528a5fc7a269dc115
675
cpp
C++
src/cbtCore/Rendering/Buffer/cbtBufferLayout.cpp
TypeDefinition/cbtEngine
9ddbc6a5436cc31efc475f6d1c37fade4a003c0d
[ "MIT" ]
null
null
null
src/cbtCore/Rendering/Buffer/cbtBufferLayout.cpp
TypeDefinition/cbtEngine
9ddbc6a5436cc31efc475f6d1c37fade4a003c0d
[ "MIT" ]
null
null
null
src/cbtCore/Rendering/Buffer/cbtBufferLayout.cpp
TypeDefinition/cbtEngine
9ddbc6a5436cc31efc475f6d1c37fade4a003c0d
[ "MIT" ]
null
null
null
// Include CBT #include "cbtBufferLayout.h" NS_CBT_BEGIN cbtU32 GetByteSize(cbtBufferDataType _dataType) { switch (_dataType) { case cbtBufferDataType::CBT_S8: case cbtBufferDataType::CBT_U8: return 1; case cbtBufferDataType::CBT_S16: case cbtBufferD...
24.107143
51
0.6
TypeDefinition
3068245fb2012c6185a50f5ed6d9c464cbf886c1
1,717
cpp
C++
control_app/joystick.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
1
2021-05-05T14:11:03.000Z
2021-05-05T14:11:03.000Z
control_app/joystick.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
null
null
null
control_app/joystick.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
null
null
null
#include "joystick.h" #include "log.h" #include <QTimer> // Linux headers #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> /* Standard C++ API does not allow to read char device file in unblocking mode, * so used Linux API */ #define JOYSTICK_FILE "/dev/input/js0" #define READ_DATA_I...
22.893333
80
0.576005
houcy
3069a83b76d7aa1d62e769e3c75bcc32085ad3e2
2,168
cpp
C++
src/sorts/CombSort/comb_sort.cpp
delightedok/TGSToolkits
7570378fde1f3045a545c293fddb275143701114
[ "MIT" ]
null
null
null
src/sorts/CombSort/comb_sort.cpp
delightedok/TGSToolkits
7570378fde1f3045a545c293fddb275143701114
[ "MIT" ]
null
null
null
src/sorts/CombSort/comb_sort.cpp
delightedok/TGSToolkits
7570378fde1f3045a545c293fddb275143701114
[ "MIT" ]
null
null
null
#include "../../comms/comm_headers.h" #include <sorts/comb_sort.h> #define THIS_FILE "comb_sort.cpp" #define LOG_TAG "SORTS-COMB" TGSTK_EXPORT SortCombObject::SortCombObject(SortVTable & vTable, float factor) : SortObject(vTable) { this->factor = factor; if (factor <= 1) { mlog_e(LOG_TA...
31.42029
112
0.398985
delightedok
306f23f5921876eb6705efe778fd911d6c548e85
294
cpp
C++
FruitManageSystem/Fruit.cpp
grahamitdev/FruitManageSystem
c3c9effaa84ad1d900767a8bc4aad9b35a2473fe
[ "Apache-2.0" ]
1
2021-02-17T12:33:12.000Z
2021-02-17T12:33:12.000Z
FruitManageSystem/Fruit.cpp
grahamitdev/FruitManageSystem
c3c9effaa84ad1d900767a8bc4aad9b35a2473fe
[ "Apache-2.0" ]
null
null
null
FruitManageSystem/Fruit.cpp
grahamitdev/FruitManageSystem
c3c9effaa84ad1d900767a8bc4aad9b35a2473fe
[ "Apache-2.0" ]
3
2018-02-07T01:58:30.000Z
2021-12-16T03:17:24.000Z
#include "Fruit.h" Fruit::Fruit(const QString &name, const double &price, const double &num) :name(name),price(price),num(num) { } QString Fruit::getName() const { return name; } double Fruit::getPrice() const { return price; } double Fruit::getNum() const { return num; }
12.782609
73
0.656463
grahamitdev
307373a68a63c0a7466f75495fb6cfd8d2e2b32e
4,271
cpp
C++
test/lab/test_client.cpp
brigid-jp/brigid-core
edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589
[ "MIT" ]
6
2019-12-24T01:55:57.000Z
2021-01-18T02:51:28.000Z
test/lab/test_client.cpp
brigid-jp/brigid-core
edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589
[ "MIT" ]
11
2021-09-16T12:58:45.000Z
2021-12-08T08:14:58.000Z
test/lab/test_client.cpp
brigid-jp/brigid-core
edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589
[ "MIT" ]
null
null
null
// Copyright (c) 2021 <dev@brigid.jp> // This software is released under the MIT License. // https://opensource.org/licenses/mit-license.php #include <brigid/error.hpp> #include "test_common.hpp" #include <exception> #include <iomanip> #include <iostream> #include <vector> #include <netinet/in.h> #include <netinet/t...
29.054422
123
0.510887
brigid-jp
30777d7ac5ce4310015b27a34498b181e760e9f1
1,068
cpp
C++
cpp/UniqueBinarySearchTreesII.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
12
2015-03-12T03:27:26.000Z
2021-03-11T09:26:16.000Z
cpp/UniqueBinarySearchTreesII.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
null
null
null
cpp/UniqueBinarySearchTreesII.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
11
2015-01-28T16:45:40.000Z
2017-03-28T20:01:38.000Z
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<TreeNode *> generateTrees(int n) { vector<TreeNode *> v; generateTrees(1,n,v); ...
27.384615
71
0.476592
thinksource
307aff939a124a82f61ec044b639cc285b500a99
2,296
hxx
C++
opencascade/StdSelect_FaceFilter.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
117
2020-03-07T12:07:05.000Z
2022-03-27T07:35:22.000Z
opencascade/StdSelect_FaceFilter.hxx
CadQuery/cpp-py-bindgen
66e7376d3a27444393fc99acbdbef40bbc7031ae
[ "Apache-2.0" ]
66
2019-12-20T16:07:36.000Z
2022-03-15T21:56:10.000Z
opencascade/StdSelect_FaceFilter.hxx
CadQuery/cpp-py-bindgen
66e7376d3a27444393fc99acbdbef40bbc7031ae
[ "Apache-2.0" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
// Created on: 1996-03-08 // Created by: Robert COUBLANC // Copyright (c) 1996-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 GN...
27.011765
117
0.77831
valgur
307e4dcc379f086608ed6971559fccc25010eecc
2,928
cpp
C++
Graphs/MazeRunner.cpp
TheArquitect/Classic-Algorithms
29ef20af79346142df8c76dd266e728b5e12cd10
[ "BSD-2-Clause" ]
1
2019-09-30T17:47:41.000Z
2019-09-30T17:47:41.000Z
Graphs/MazeRunner.cpp
TheArquitect/Classic-Algorithms
29ef20af79346142df8c76dd266e728b5e12cd10
[ "BSD-2-Clause" ]
null
null
null
Graphs/MazeRunner.cpp
TheArquitect/Classic-Algorithms
29ef20af79346142df8c76dd266e728b5e12cd10
[ "BSD-2-Clause" ]
null
null
null
/** File : MazeRunner.cpp Author : Menashe Rosemberg Created : 2019.04.02 Version: 20190402.12 Check all spaces reachable in a maze from a random start place BSD License Copyright (c) 2019 TheArquitect (Menashe Rosemberg) rosemberg@ymail.com Redistribution and use in source...
49.627119
83
0.563525
TheArquitect
3082d2b7b359e5c3f2df5d7dd1534c7b330b0f79
1,299
cpp
C++
microcontroller/lib/Timer/Timer.cpp
robfors/nut_sorter-microcontroller
bc909fdaa1cc856341fe16773aefe9f1af773c83
[ "Apache-2.0" ]
null
null
null
microcontroller/lib/Timer/Timer.cpp
robfors/nut_sorter-microcontroller
bc909fdaa1cc856341fe16773aefe9f1af773c83
[ "Apache-2.0" ]
null
null
null
microcontroller/lib/Timer/Timer.cpp
robfors/nut_sorter-microcontroller
bc909fdaa1cc856341fe16773aefe9f1af773c83
[ "Apache-2.0" ]
null
null
null
#include "Timer.h" // // public // Timer::Timer(Units units) { _default_length = 0; _length = 0; _units = units; _is_active = false; _start_time = 0; } Timer::Timer(unsigned long default_length, Units units) { _default_length = default_length; _length = 0; _units = units; _is_active = false; _...
13.121212
61
0.639723
robfors
30863a06f9bb3bb0f2714fb003ace0def7f08e26
155
cpp
C++
benignware/1000.cpp
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/1000/1000.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/1000/1000.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int count_0 = 0, count_1 = 0; int main(void) { int a, b; cin >> a >> b; cout << a + b << endl; return 0; }
11.071429
29
0.574194
CodmingOut
308846f94715c810eea8e4c19b8358fdaa42b62a
309
cpp
C++
Sorting-and-Order-Statistics/Selection sort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
86
2016-10-18T23:30:36.000Z
2022-01-09T21:57:34.000Z
Sorting-and-Order-Statistics/Selection sort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
1
2018-04-13T09:38:36.000Z
2018-04-13T09:38:36.000Z
Sorting-and-Order-Statistics/Selection sort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
39
2017-03-02T07:25:40.000Z
2020-12-14T12:13:50.000Z
#include <bits/stdc++.h> using namespace std; void selection_sort(int A[], int l, int r) { for (int i = l; i < r; ++i) { int p = i; for (int j = i + 1; j <= r; ++j) if (A[j] < A[p]) p = j; swap(A[i], A[p]); } } int main() { return 0; }
13.434783
42
0.391586
Fresher001
3088a13f78577e5dd7fc484a9a15ea8b0dd1cc3e
829
cpp
C++
clang/test/SemaCXX/align-x86-abi7.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,102
2015-01-04T02:28:35.000Z
2022-03-30T12:53:41.000Z
clang/test/SemaCXX/align-x86-abi7.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
clang/test/SemaCXX/align-x86-abi7.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
1,868
2015-01-03T04:27:11.000Z
2022-03-25T13:37:35.000Z
// RUN: %clang_cc1 -std=c++11 -triple i386-apple-darwin9 -fsyntax-only -verify -fclang-abi-compat=7 %s // expected-no-diagnostics using size_t = decltype(sizeof(0)); template <typename T, size_t Preferred> struct check_alignment { using type = T; static type value; static_assert(__alignof__(value) == Preferred...
31.884615
102
0.746683
medismailben
308acdf55b1fd94729126e79d44df30fb1e46fdf
419
hpp
C++
src/PheromonWeight.hpp
mwieczor/ACO
aa30ecd728d6b205188da4993857e2291a464255
[ "MIT" ]
null
null
null
src/PheromonWeight.hpp
mwieczor/ACO
aa30ecd728d6b205188da4993857e2291a464255
[ "MIT" ]
null
null
null
src/PheromonWeight.hpp
mwieczor/ACO
aa30ecd728d6b205188da4993857e2291a464255
[ "MIT" ]
null
null
null
#pragma once #include "Ant.hpp" class WeightGraph; class Node; class PheromonWeight{ public: PheromonWeight(){} virtual ~PheromonWeight()=default; protected: virtual void leavePheromon(IWeightGraph &mGraph, Node lastNode, Node position, double weight); // virtual void leavePheromon(WeightGraph &mGrap...
19.952381
98
0.747017
mwieczor
308ee7bdaf4678260b1812aa891a01dd171bce97
46,577
cpp
C++
plugins/chain_plugin/test/test_trx_finality_status_processing.cpp
abitmore/mandel
dfa3c92a713e7a093fc671fefa453a3033e27b0a
[ "MIT" ]
60
2022-01-03T18:41:12.000Z
2022-03-25T07:08:19.000Z
plugins/chain_plugin/test/test_trx_finality_status_processing.cpp
abitmore/mandel
dfa3c92a713e7a093fc671fefa453a3033e27b0a
[ "MIT" ]
37
2022-01-13T22:23:58.000Z
2022-03-31T13:32:38.000Z
plugins/chain_plugin/test/test_trx_finality_status_processing.cpp
abitmore/mandel
dfa3c92a713e7a093fc671fefa453a3033e27b0a
[ "MIT" ]
11
2022-01-14T21:14:11.000Z
2022-03-25T07:08:29.000Z
#define BOOST_TEST_MODULE transaction_finality_status #include <boost/test/included/unit_test.hpp> #include <eosio/chain_plugin/trx_finality_status_processing.hpp> #include <eosio/testing/tester.hpp> #include <eosio/chain/block_header.hpp> #include <eosio/chain/genesis_state.hpp> #include <eosio/chain/name.hpp> #inc...
36.790679
163
0.694313
abitmore
3091aa4676803d92ae456bcbb9262bf7557229fb
5,095
cpp
C++
modules/core/src/Slot/gmSlotBase.cpp
GraphMIC/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
43
2016-04-11T11:34:05.000Z
2022-03-31T03:37:57.000Z
modules/core/src/Slot/gmSlotBase.cpp
kevinlq/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
1
2016-05-17T12:58:16.000Z
2016-05-17T12:58:16.000Z
modules/core/src/Slot/gmSlotBase.cpp
kevinlq/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
14
2016-05-13T20:23:16.000Z
2021-12-20T10:33:19.000Z
#include "gmSlotBase.hpp" #include "gmSlotInput.hpp" #include "gmSlotOutput.hpp" #include "gmNodeEditor.hpp" #include "gmNodeConnector.hpp" #include "gmSlotInputBase.hpp" #include "gmSlotOutputBase.hpp" #include "gmSlotConstraints.hpp" #include "gmAsync.hpp" namespace gm { namespace Slot { Base::Base(...
28.305556
210
0.452208
GraphMIC
309438d436575dc3a725135e24f23899ef17ab21
344
cpp
C++
leetcode/cpp/qt_reverse_string.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
5
2016-10-29T09:28:11.000Z
2019-10-19T23:02:48.000Z
leetcode/cpp/qt_reverse_string.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
leetcode/cpp/qt_reverse_string.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
/* Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". */ class Solution { public: string reverseString(string s) { int start = 0; int end = s.size()-1; while(start < end) { swap(s[start++], s[end--]); } ...
19.111111
78
0.561047
qiaotian
3098c961a04a961a07a9b587f9e56fac7d56ba21
287
hpp
C++
src/modules/osg/generated_code/TransformFeedbackBufferBinding.pypp.hpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osg/generated_code/TransformFeedbackBufferBinding.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osg/generated_code/TransformFeedbackBufferBinding.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #ifndef TransformFeedbackBufferBinding_hpp__pyplusplus_wrapper #define TransformFeedbackBufferBinding_hpp__pyplusplus_wrapper void register_TransformFeedbackBufferBinding_class(); #endif//TransformFeedbackBufferBinding_hpp__pyplusplus_wrapper
31.888889
62
0.891986
JaneliaSciComp
309cd4cf8ee842ba93c661842641de1cb0b0f4e5
42,488
cc
C++
src/cats/sql_create.cc
Acidburn0zzz/bareos
34a60296af2e2e948c8cd983876eebf5d4d31fc9
[ "MIT" ]
1
2018-04-28T14:03:39.000Z
2018-04-28T14:03:39.000Z
src/cats/sql_create.cc
Acidburn0zzz/bareos
34a60296af2e2e948c8cd983876eebf5d4d31fc9
[ "MIT" ]
null
null
null
src/cats/sql_create.cc
Acidburn0zzz/bareos
34a60296af2e2e948c8cd983876eebf5d4d31fc9
[ "MIT" ]
null
null
null
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2000-2012 Free Software Foundation Europe e.V. Copyright (C) 2011-2016 Planets Communications B.V. Copyright (C) 2013-2017 Bareos GmbH & Co. KG This program is Free Software; you can redistribute it and/or modify it under the terms of...
28.708108
115
0.605583
Acidburn0zzz
30a19e7445d08c0baac9ae0bbc2d884232c675a1
1,446
hpp
C++
apps/las2oci.hpp
libLAS/libLAS-1.6
92b4c1370785481f212cc7fec9623637233c1418
[ "BSD-3-Clause" ]
1
2019-02-13T14:41:23.000Z
2019-02-13T14:41:23.000Z
apps/las2oci.hpp
libLAS/libLAS-1.6
92b4c1370785481f212cc7fec9623637233c1418
[ "BSD-3-Clause" ]
1
2018-03-13T07:12:06.000Z
2018-03-13T07:12:06.000Z
apps/las2oci.hpp
libLAS/libLAS-1.6
92b4c1370785481f212cc7fec9623637233c1418
[ "BSD-3-Clause" ]
2
2021-05-17T02:09:16.000Z
2021-06-21T12:15:52.000Z
#ifndef LAS2OCI_HPP_INCLUDED #define LAS2OCI_HPP_INCLUDED #include "oci_wrapper.h" #include <stdlib.h> // god-awful hack because of GDAL/GeoTIFF's shitty include structure #define CPL_SERV_H_INCLUDED #include <liblas/liblas.hpp> #include <boost/cstdint.hpp> #include <boost/concept_check.hpp> #include <string> #i...
17.421687
92
0.674965
libLAS
30a2394057ff68551582ba148aa198343ee00668
407
cpp
C++
src/system/kernel/arch/sparc/arch_platform.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
2
2020-02-02T06:48:30.000Z
2020-04-05T13:58:32.000Z
src/system/kernel/arch/sparc/arch_platform.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
null
null
null
src/system/kernel/arch/sparc/arch_platform.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
1
2022-02-05T11:40:54.000Z
2022-02-05T11:40:54.000Z
/* Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. * Distributed under the terms of the MIT License. */ #include <arch/platform.h> status_t arch_platform_init(struct kernel_args *kernelArgs) { return B_OK; } status_t arch_platform_init_post_vm(struct kernel_args *kernelArgs) { return B_OK; } sta...
14.535714
62
0.781327
Kirishikesan
30a7ede92394a9d33e79057d72973a78de7eb231
1,903
cpp
C++
detect_all_cycles.cpp
poojacos/graph_algos
a6e5d5f29b2c18fda73cfdace8781cbddc294650
[ "MIT" ]
null
null
null
detect_all_cycles.cpp
poojacos/graph_algos
a6e5d5f29b2c18fda73cfdace8781cbddc294650
[ "MIT" ]
null
null
null
detect_all_cycles.cpp
poojacos/graph_algos
a6e5d5f29b2c18fda73cfdace8781cbddc294650
[ "MIT" ]
null
null
null
// C++ program to print all the cycles // in an undirected graph //CONCEPT-use colors #include <bits/stdc++.h> using namespace std; const int N = 100000; // variables to be used // in both functions vector<int> graph[N]; vector<int> cycles[N]; // Function to mark the vertex with // different colors for diff...
21.144444
85
0.620074
poojacos
30a90f9ce996f0be688e897fbc53ec7af868bc92
2,752
cpp
C++
csvreader.cpp
VITObelgium/cpp-infra
2a95a112439b21ff9125c2e6e29810a418b94a4d
[ "MIT" ]
1
2022-02-23T03:15:54.000Z
2022-02-23T03:15:54.000Z
csvreader.cpp
VITObelgium/cpp-infra
2a95a112439b21ff9125c2e6e29810a418b94a4d
[ "MIT" ]
null
null
null
csvreader.cpp
VITObelgium/cpp-infra
2a95a112439b21ff9125c2e6e29810a418b94a4d
[ "MIT" ]
null
null
null
#include "infra/csvreader.h" namespace inf { CsvReader::CsvReader(const fs::path& filename) : _charset(detect_character_set(filename)) , _dataset(gdal::VectorDataSet::open(filename, gdal::VectorType::Csv)) , _layer(_dataset.layer(0)) { } int32_t CsvReader::column_count() const { return _layer.layer_definition().f...
21.5
79
0.704578
VITObelgium
dd63164241ee268e1eb32e5e92a5a6d709794b61
766
cpp
C++
interview_preparation_kit/string_manipulation/common_child.cpp
Surya-06/hackerrank
dc001aebe4d2a01adbb711d18089117ba6629b2b
[ "MIT" ]
null
null
null
interview_preparation_kit/string_manipulation/common_child.cpp
Surya-06/hackerrank
dc001aebe4d2a01adbb711d18089117ba6629b2b
[ "MIT" ]
null
null
null
interview_preparation_kit/string_manipulation/common_child.cpp
Surya-06/hackerrank
dc001aebe4d2a01adbb711d18089117ba6629b2b
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int** data; string a ,b; int max ( int a , int b ){ if ( a > b ) return a; return b; } int ss ( int ina , int inb ) { if ( ina == a.size() or inb==b.size() ) return 0; if ( data[ina][inb]!=-1 ) return data[ina][inb]; if ( a[ina]==b[inb]...
18.682927
59
0.513055
Surya-06
dd645f424261ce5b53ea1744ecac4d11c2ca18b4
14,422
hpp
C++
include/types/mat.hpp
Oxsomi/core2
96d64fc5f47b6aee2e205205196e4bb1ddee59f6
[ "MIT" ]
null
null
null
include/types/mat.hpp
Oxsomi/core2
96d64fc5f47b6aee2e205205196e4bb1ddee59f6
[ "MIT" ]
12
2020-01-17T21:40:53.000Z
2020-11-18T18:13:35.000Z
include/types/mat.hpp
Oxsomi/core2
96d64fc5f47b6aee2e205205196e4bb1ddee59f6
[ "MIT" ]
null
null
null
#pragma once #include "vec.hpp" //Helper for generating matrices //All rotations and fovs are in radians //Matrix storage template<typename T, usz W, usz H> struct TMatStorage { union { T f[W * H]; T m[W][H]; Vec<T, W> axes[H]; }; constexpr inline TMatStorage(): f{} {} template<typename ...args> const...
23.112179
138
0.630495
Oxsomi
dd67e82e2b5df1e6dae23bcb1b1e013aedecc0ed
1,542
cpp
C++
src/DynamicRank.FreeForm.Library/libs/External/FreeForm2ExternalData.cpp
ltxtech/lightgbm-transform
ca3bdaae4e594c1bf74503c5ec151f2b794f855c
[ "MIT" ]
17
2021-11-02T13:52:10.000Z
2022-02-10T07:43:38.000Z
src/DynamicRank.FreeForm.Library/libs/External/FreeForm2ExternalData.cpp
ltxtech/lightgbm-transform
ca3bdaae4e594c1bf74503c5ec151f2b794f855c
[ "MIT" ]
2
2022-01-23T16:15:40.000Z
2022-03-07T15:54:34.000Z
src/DynamicRank.FreeForm.Library/libs/External/FreeForm2ExternalData.cpp
ltxtech/lightgbm-transform
ca3bdaae4e594c1bf74503c5ec151f2b794f855c
[ "MIT" ]
1
2022-01-21T09:42:59.000Z
2022-01-21T09:42:59.000Z
/*! * Copyright (c) 2021 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. */ #include "FreeForm2ExternalData.h" #include <string> #include "FreeForm2Type.h" #include "TypeImpl.h" #include "TypeManager.h" FreeForm2::Exter...
30.84
79
0.705577
ltxtech
dd6bc353fe58b13922c2ef58692429852b1ed9ef
2,360
hpp
C++
framework/platform/android/tcuAndroidWindow.hpp
iabernikhin/VK-GL-CTS
a3338eb2ded98b5befda64f9325db0d219095a00
[ "Apache-2.0" ]
354
2017-01-24T17:12:38.000Z
2022-03-30T07:40:19.000Z
framework/platform/android/tcuAndroidWindow.hpp
iabernikhin/VK-GL-CTS
a3338eb2ded98b5befda64f9325db0d219095a00
[ "Apache-2.0" ]
275
2017-01-24T20:10:36.000Z
2022-03-24T16:24:50.000Z
framework/platform/android/tcuAndroidWindow.hpp
iabernikhin/VK-GL-CTS
a3338eb2ded98b5befda64f9325db0d219095a00
[ "Apache-2.0" ]
190
2017-01-24T18:02:04.000Z
2022-03-27T13:11:23.000Z
#ifndef _TCUANDROIDWINDOW_HPP #define _TCUANDROIDWINDOW_HPP /*------------------------------------------------------------------------- * drawElements Quality Program Tester Core * ---------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Ve...
23.137255
75
0.645339
iabernikhin
dd6d7a2708379614a1841ffc927dedf6ff8c7859
4,257
cpp
C++
blast/src/objtools/eutils/api/elink.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/objtools/eutils/api/elink.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/objtools/eutils/api/elink.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
/* $Id: elink.cpp 196493 2010-07-06 00:37:12Z dicuccio $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under...
28.192053
77
0.612403
mycolab
dd6fc2943c3e92cafa915e06f0f9a2191e0dbd71
7,484
cpp
C++
source/MultiLibrary/Filesystem/Windows/Filesystem.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
2
2018-06-22T12:43:57.000Z
2019-05-31T21:56:27.000Z
source/MultiLibrary/Filesystem/Windows/Filesystem.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
1
2017-09-09T01:21:31.000Z
2017-11-12T17:52:56.000Z
source/MultiLibrary/Filesystem/Windows/Filesystem.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
1
2022-03-30T18:57:41.000Z
2022-03-30T18:57:41.000Z
/************************************************************************* * MultiLibrary - https://danielga.github.io/multilibrary/ * A C++ library that covers multiple low level systems. *------------------------------------------------------------------------ * Copyright (c) 2014-2022, Daniel Almeida * All righ...
29.234375
126
0.671833
danielga
dd707db35956550729f91f23ed4253756285de90
644
hpp
C++
C++/problems/0182_n_queens.hpp
raulhsant/algorithms
1578a0dc0a34d63c74c28dd87b0873e0b725a0bd
[ "MIT" ]
6
2019-03-20T22:23:26.000Z
2020-08-28T03:10:27.000Z
C++/problems/0182_n_queens.hpp
raulhsant/algorithms
1578a0dc0a34d63c74c28dd87b0873e0b725a0bd
[ "MIT" ]
15
2019-10-13T20:53:53.000Z
2022-03-31T02:01:35.000Z
C++/problems/0182_n_queens.hpp
raulhsant/algorithms
1578a0dc0a34d63c74c28dd87b0873e0b725a0bd
[ "MIT" ]
3
2019-03-11T10:57:46.000Z
2020-02-26T21:13:21.000Z
#ifndef N_QUEENS_HPP_INCLUDED #define N_QUEENS_HPP_INCLUDED #include <bits/stdc++.h> using namespace std; class Solution { private: vector<vector<string>> result; vector<string> createBoard(int n); bool checkColumn(const vector<string> &board,const int &row,const int & column); bool ch...
23.851852
88
0.704969
raulhsant
dd79134f524c1814c3c0b766e319640d6e358297
3,301
cpp
C++
libraries/ArduinoJson/test/JsonArray/add.cpp
tarontop/IRmqtt
5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8
[ "MIT" ]
null
null
null
libraries/ArduinoJson/test/JsonArray/add.cpp
tarontop/IRmqtt
5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8
[ "MIT" ]
1
2020-01-09T07:07:44.000Z
2020-01-09T07:07:44.000Z
libraries/ArduinoJson/test/JsonArray/add.cpp
tarontop/IRmqtt
5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8
[ "MIT" ]
null
null
null
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2018 // MIT License #include <ArduinoJson.h> #include <catch.hpp> TEST_CASE("JsonArray::add()") { DynamicJsonDocument doc; JsonArray _array = doc.to<JsonArray>(); SECTION("int") { _array.add(123); REQUIRE(123 == _array[0].as<int>()); ...
25.992126
59
0.633141
tarontop
dd7ff997434a60045ef2756e488b922394b5f920
2,285
cc
C++
cc_mocks/socket.cc
piskorzj/node-packet-socket
151d985dced6fbbd3619e46572b9a6006a689d7a
[ "MIT" ]
7
2017-02-28T14:07:10.000Z
2019-10-08T18:49:42.000Z
cc_mocks/socket.cc
piskorzj/node-packet-socket
151d985dced6fbbd3619e46572b9a6006a689d7a
[ "MIT" ]
2
2017-04-02T12:24:00.000Z
2017-06-08T23:03:00.000Z
cc_mocks/socket.cc
piskorzj/node-packet-socket
151d985dced6fbbd3619e46572b9a6006a689d7a
[ "MIT" ]
null
null
null
#include "CppUTestExt/MockSupport.h" #include "socket.hh" #include <stdexcept> Socket::Socket(const char * device) { mock().actualCall("socket_constructor") .withStringParameter("device", device); if(!mock().returnBoolValueOrDefault(true)) { throw std::runtime_error("forced creation failure"); } } Socket::~So...
34.621212
89
0.76849
piskorzj
dd832ab319ce4878ad080464c4635919732aee27
1,687
hpp
C++
jsonrpc/serverMgr.hpp
flexibity-team/boost-tools
a6c67eacf7374136f9903680308334fc3408ba91
[ "MIT" ]
null
null
null
jsonrpc/serverMgr.hpp
flexibity-team/boost-tools
a6c67eacf7374136f9903680308334fc3408ba91
[ "MIT" ]
null
null
null
jsonrpc/serverMgr.hpp
flexibity-team/boost-tools
a6c67eacf7374136f9903680308334fc3408ba91
[ "MIT" ]
2
2019-12-26T13:54:29.000Z
2020-10-31T10:19:13.000Z
/* * serverMgr.hpp * * Created on: Oct 8, 2015 * Author: romeo */ #ifndef INCLUDE_FLEXIBITY_JSONRPC_SERVERMGR_HPP_ #define INCLUDE_FLEXIBITY_JSONRPC_SERVERMGR_HPP_ #include "flexibity/jsonrpc/jsonRpcSerial.hpp" #include "flexibity/jsonrpc/jsonRpcWebsocketClient.hpp" #include "flexibity/genericMgr.hpp" nam...
23.109589
94
0.713693
flexibity-team
dd8497defaf062ee6fc3a88753ba4c155c430632
717
hpp
C++
include/SerialFiller/Crc16Ccitt1021.hpp
gbmhunter/SerialFiller
d678acbf6d29de7042d48c6be8ecef556bb6d857
[ "MIT" ]
9
2019-04-01T16:27:15.000Z
2022-03-14T19:45:34.000Z
include/SerialFiller/Crc16Ccitt1021.hpp
gbmhunter/SerialFiller
d678acbf6d29de7042d48c6be8ecef556bb6d857
[ "MIT" ]
12
2017-06-18T05:06:36.000Z
2018-01-30T21:55:39.000Z
include/SerialFiller/Crc16Ccitt1021.hpp
mbedded-ninja/SerialFiller
d678acbf6d29de7042d48c6be8ecef556bb6d857
[ "MIT" ]
3
2019-09-07T16:56:57.000Z
2022-02-08T03:25:28.000Z
/// /// \file Crc16Ccitt1021.hpp /// \author Geoffrey Hunter <gbmhunter@gmail.com> (www.mbedded.ninja) /// \edited n/a /// \created 2017-06-10 /// \last-modified 2018-01-25 /// \brief Contains the Crc16Ccitt1021 class. /// \details /// See README.rst in root dir for more info. #ifndef MN_SER...
24.724138
72
0.680614
gbmhunter
dd849dbe0685f69864b08ab75120ea54905c2858
2,024
cpp
C++
DSA Crack Sheet/solutions/Minimum Cost of ropes.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
5
2021-08-10T18:47:49.000Z
2021-08-21T15:42:58.000Z
DSA Crack Sheet/solutions/Minimum Cost of ropes.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
2
2022-02-25T13:36:46.000Z
2022-02-25T14:06:44.000Z
DSA Crack Sheet/solutions/Minimum Cost of ropes.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
1
2021-08-11T06:36:42.000Z
2021-08-11T06:36:42.000Z
/* Minimum Cost of ropes ===================== There are given N ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal to sum of their lengths. The task is to connect the ropes with minimum cost. Example 1: Input: n = 4 arr[] = {4, 3, 2, 6} Output: 29 Explan...
25.948718
207
0.676877
Akshad7829
dd8ef8e0c9f40df27ada5889ed871b1821998a93
12,579
cpp
C++
experiments/rmi_lookup.cpp
alhuan/analysis-rmi
be787ee9a02e04210d41af51c8a053f6dea575e9
[ "Apache-2.0" ]
9
2021-07-01T17:00:42.000Z
2022-03-23T09:21:17.000Z
experiments/rmi_lookup.cpp
alhuan/analysis-rmi
be787ee9a02e04210d41af51c8a053f6dea575e9
[ "Apache-2.0" ]
1
2021-07-20T13:39:27.000Z
2021-07-20T13:39:27.000Z
experiments/rmi_lookup.cpp
alhuan/analysis-rmi
be787ee9a02e04210d41af51c8a053f6dea575e9
[ "Apache-2.0" ]
1
2022-01-25T16:39:34.000Z
2022-01-25T16:39:34.000Z
#include <chrono> #include <random> #include "argparse/argparse.hpp" #include "rmi/models.hpp" #include "rmi/rmi.hpp" #include "rmi/util/fn.hpp" #include "rmi/util/search.hpp" using key_type = uint64_t; using namespace std::chrono; std::size_t s_glob; ///< global size_t variable /** * Measures lookup times of @p...
45.908759
163
0.608156
alhuan