id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
14,360
vmci_connecter.cpp
zeromq_libzmq/src/vmci_connecter.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "vmci_connecter.hpp" #if defined ZMQ_HAVE_VMCI #include <new> #include "io_thread.hpp" #include "platform.hpp" #include "random.hpp" #include "err.hpp" #include "ip.hpp" #include "address.hpp" #include "vmci_address.hpp" #include "vmci.hpp"...
7,701
C++
.cpp
232
26.521552
80
0.59728
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,373
wss_engine.cpp
zeromq_libzmq/src/wss_engine.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "wss_engine.hpp" static int verify_certificate_callback (gnutls_session_t session) { unsigned int status; const char *hostname; // read hostname hostname = (const char *) gnutls_session_get_ptr (session); int rc = gnutls_...
5,347
C++
.cpp
157
25.503185
97
0.557887
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
14,376
peer.cpp
zeromq_libzmq/src/peer.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "macros.hpp" #include "peer.hpp" #include "pipe.hpp" #include "wire.hpp" #include "random.hpp" #include "likely.hpp" #include "err.hpp" zmq::peer_t::peer_t (class ctx_t *parent_, uint32_t tid_, int sid_) : server_t (parent_, tid_, sid_) { ...
1,168
C++
.cpp
37
26.486486
74
0.635231
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,381
proxy.cpp
zeromq_libzmq/src/proxy.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include <stddef.h> #include "poller.hpp" #include "proxy.hpp" #include "likely.hpp" #include "msg.hpp" #if defined ZMQ_POLL_BASED_ON_POLL && !defined ZMQ_HAVE_WINDOWS \ && !defined ZMQ_HAVE_AIX #include <poll.h> #endif // These head...
22,275
C++
.cpp
484
35.283058
128
0.528315
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
14,390
vmci_listener.cpp
zeromq_libzmq/src/vmci_listener.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "vmci_listener.hpp" #if defined ZMQ_HAVE_VMCI #include <new> //#include "stream_engine.hpp" #include "vmci_address.hpp" #include "io_thread.hpp" #include "session_base.hpp" #include "config.hpp" #include "err.hpp" #include "ip.hpp" #include...
5,256
C++
.cpp
161
26.304348
80
0.606156
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,403
vmci.cpp
zeromq_libzmq/src/vmci.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "ip.hpp" #include "vmci.hpp" #include "vmci_address.hpp" #if defined ZMQ_HAVE_VMCI #include <cassert> #include <vmci_sockets.h> void zmq::tune_vmci_buffer_size (ctx_t *context_, fd_t sockfd_, ...
2,637
C++
.cpp
80
23.9125
76
0.534801
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,404
ws_encoder.cpp
zeromq_libzmq/src/ws_encoder.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "ws_protocol.hpp" #include "ws_encoder.hpp" #include "msg.hpp" #include "likely.hpp" #include "wire.hpp" #include "random.hpp" #include <limits.h> zmq::ws_encoder_t::ws_encoder_t (size_t bufsize_, bool must_mask_) : encoder_base_t<ws_enco...
4,076
C++
.cpp
106
31.650943
99
0.564304
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,422
curve_mechanism_base.cpp
zeromq_libzmq/src/curve_mechanism_base.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "curve_mechanism_base.hpp" #include "msg.hpp" #include "wire.hpp" #include "session_base.hpp" #ifdef ZMQ_HAVE_CURVE #ifdef ZMQ_USE_LIBSODIUM // libsodium added crypto_box_easy_afternm and crypto_box_open_easy_afternm with // https: //githu...
9,737
C++
.cpp
232
35.030172
90
0.623744
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,439
v1_encoder.cpp
zeromq_libzmq/src/v1_encoder.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "encoder.hpp" #include "v1_encoder.hpp" #include "msg.hpp" #include "wire.hpp" #include <limits.h> zmq::v1_encoder_t::v1_encoder_t (size_t bufsize_) : encoder_base_t<v1_encoder_t> (bufsize_) { // Write 0 bytes to the batch and go to ...
2,255
C++
.cpp
57
34.877193
78
0.635574
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,455
channel.cpp
zeromq_libzmq/src/channel.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "macros.hpp" #include "channel.hpp" #include "err.hpp" #include "pipe.hpp" #include "msg.hpp" zmq::channel_t::channel_t (class ctx_t *parent_, uint32_t tid_, int sid_) : socket_base_t (parent_, tid_, sid_, true), _pipe (NULL) { options...
2,966
C++
.cpp
106
22.490566
75
0.573042
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,456
sub.cpp
zeromq_libzmq/src/sub.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include "sub.hpp" #include "msg.hpp" zmq::sub_t::sub_t (class ctx_t *parent_, uint32_t tid_, int sid_) : xsub_t (parent_, tid_, sid_) { options.type = ZMQ_SUB; // Switch filtering messages on (as opposed to XSUB which where the // f...
1,291
C++
.cpp
48
21.916667
77
0.58671
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,457
wss_address.cpp
zeromq_libzmq/src/wss_address.cpp
/* SPDX-License-Identifier: MPL-2.0 */ #include "precompiled.hpp" #include <string> #include <sstream> #include "wss_address.hpp" zmq::wss_address_t::wss_address_t () : ws_address_t () { } zmq::wss_address_t::wss_address_t (const sockaddr *sa_, socklen_t sa_len_) : ws_address_t (sa_, sa_len_) { } int zmq::wss_...
541
C++
.cpp
20
24.4
76
0.617476
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,469
zmq_utils.h
zeromq_libzmq/include/zmq_utils.h
/* SPDX-License-Identifier: MPL-2.0 */ /* This file is deprecated, and all its functionality provided by zmq.h */ /* Note that -Wpedantic compilation requires GCC to avoid using its custom extensions such as #warning, hence the trick below. Also, pragmas for warnings or other messages are not standard, n...
1,021
C++
.h
21
46.571429
84
0.671343
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
false
false
false
false
false
false
14,472
testutil.hpp
zeromq_libzmq/tests/testutil.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __TESTUTIL_HPP_INCLUDED__ #define __TESTUTIL_HPP_INCLUDED__ #if defined ZMQ_CUSTOM_PLATFORM_HPP #include "platform.hpp" #else #include "../src/platform.hpp" #endif #include "../include/zmq.h" #include "../src/stdint.hpp" // For AF_INET and IPPROTO_TCP #if defined _WIN3...
7,196
C++
.h
181
36.917127
84
0.642018
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,475
sha1.h
zeromq_libzmq/external/sha1/sha1.h
/* contrib/pgcrypto/sha1.h */ /* $KAME: sha1.h,v 1.4 2000/02/22 14:01:18 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
2,720
C++
.h
76
33.947368
77
0.733004
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
14,476
wepoll.h
zeromq_libzmq/external/wepoll/wepoll.h
/* * wepoll - epoll for Windows * https://github.com/piscisaureus/wepoll * * Copyright 2012-2020, Bert Belder <bertbelder@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * ...
3,471
C++
.h
97
32.14433
75
0.670042
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
14,477
unity_internals.h
zeromq_libzmq/external/unity/unity_internals.h
/* ========================================== Unity Project - A Test Framework for C Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ========================================== */ #ifndef UNITY_INTERNALS_H #define UNI...
69,577
C++
.h
754
87.72679
338
0.679499
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
14,478
unity.h
zeromq_libzmq/external/unity/unity.h
/* ========================================== Unity Project - A Test Framework for C Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams [Released under MIT License. Please refer to license.txt for details] ========================================== */ #ifndef UNITY_FRAMEWORK_H #define UNI...
66,485
C++
.h
457
144.126915
201
0.608727
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
14,485
macros.hpp
zeromq_libzmq/src/macros.hpp
/******************************************************************************/ /* 0MQ Internal Use */ /******************************************************************************/ #define LIBZMQ_UNUSED(object) (void) object #define LIBZMQ_DELETE(p_object)...
2,185
C++
.h
55
37.490909
80
0.384543
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
true
true
false
14,489
ws_encoder.hpp
zeromq_libzmq/src/ws_encoder.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_WS_ENCODER_HPP_INCLUDED__ #define __ZMQ_WS_ENCODER_HPP_INCLUDED__ #include "encoder.hpp" namespace zmq { // Encoder for web socket framing protocol. Converts messages into data stream. class ws_encoder_t ZMQ_FINAL : public encoder_base_t<ws_encoder_t> { public...
648
C++
.h
24
23.833333
80
0.693182
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,507
array.hpp
zeromq_libzmq/src/array.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_ARRAY_INCLUDED__ #define __ZMQ_ARRAY_INCLUDED__ #include <vector> #include <algorithm> #include "macros.hpp" namespace zmq { // Implementation of fast arrays with O(1) access, insertion and // removal. The array stores pointers rather than objects. // O(1) is ...
2,990
C++
.h
85
29.847059
74
0.623914
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,508
compat.hpp
zeromq_libzmq/src/compat.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_COMPAT_HPP_INCLUDED__ #define __ZMQ_COMPAT_HPP_INCLUDED__ #include "precompiled.hpp" #include <string.h> #ifdef ZMQ_HAVE_WINDOWS #define strcasecmp _stricmp #define strtok_r strtok_s #else #ifndef ZMQ_HAVE_STRLCPY #ifdef ZMQ_HAVE_LIBBSD #include <bsd/string.h> #el...
986
C++
.h
42
20.809524
72
0.651386
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,512
vmci_connecter.hpp
zeromq_libzmq/src/vmci_connecter.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_VMCI_CONNECTER_HPP_INCLUDED__ #define __ZMQ_VMCI_CONNECTER_HPP_INCLUDED__ #include "platform.hpp" #if defined ZMQ_HAVE_VMCI #include "fd.hpp" #include "own.hpp" #include "stdint.hpp" #include "io_object.hpp" #include "stream_connecter_base.hpp" namespace zmq { c...
2,189
C++
.h
62
30.225806
126
0.675522
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,516
peer.hpp
zeromq_libzmq/src/peer.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_PEER_HPP_INCLUDED__ #define __ZMQ_PEER_HPP_INCLUDED__ #include <map> #include "socket_base.hpp" #include "server.hpp" #include "session_base.hpp" #include "stdint.hpp" #include "blob.hpp" #include "fq.hpp" namespace zmq { class ctx_t; class msg_t; class pipe_t; ...
783
C++
.h
30
22.3
58
0.66891
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,520
polling_util.hpp
zeromq_libzmq/src/polling_util.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_SOCKET_POLLING_UTIL_HPP_INCLUDED__ #define __ZMQ_SOCKET_POLLING_UTIL_HPP_INCLUDED__ #include <stdlib.h> #include <vector> #if defined ZMQ_HAVE_WINDOWS #include <winsock.h> #else #include <sys/select.h> #endif #include "macros.hpp" #include "stdint.hpp" #include "...
4,081
C++
.h
133
26.481203
100
0.633997
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
14,534
tcp_listener.hpp
zeromq_libzmq/src/tcp_listener.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_TCP_LISTENER_HPP_INCLUDED__ #define __ZMQ_TCP_LISTENER_HPP_INCLUDED__ #include "fd.hpp" #include "tcp_address.hpp" #include "stream_listener_base.hpp" namespace zmq { class tcp_listener_t ZMQ_FINAL : public stream_listener_base_t { public: tcp_listener_t (zm...
1,134
C++
.h
33
29.818182
75
0.677982
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
true
true
false
14,535
ipc_listener.hpp
zeromq_libzmq/src/ipc_listener.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_IPC_LISTENER_HPP_INCLUDED__ #define __ZMQ_IPC_LISTENER_HPP_INCLUDED__ #if defined ZMQ_HAVE_IPC #include <string> #include "fd.hpp" #include "stream_listener_base.hpp" namespace zmq { class ipc_listener_t ZMQ_FINAL : public stream_listener_base_t { public: ...
1,581
C++
.h
44
31.5
75
0.6875
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
true
true
false
14,536
raw_decoder.hpp
zeromq_libzmq/src/raw_decoder.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_RAW_DECODER_HPP_INCLUDED__ #define __ZMQ_RAW_DECODER_HPP_INCLUDED__ #include "msg.hpp" #include "i_decoder.hpp" #include "stdint.hpp" #include "decoder_allocators.hpp" namespace zmq { // Decoder for 0MQ v1 framing protocol. Converts data stream into messages. cl...
840
C++
.h
27
28
79
0.7
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
true
true
false
14,544
ws_listener.hpp
zeromq_libzmq/src/ws_listener.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_WS_LISTENER_HPP_INCLUDED__ #define __ZMQ_WS_LISTENER_HPP_INCLUDED__ #include "fd.hpp" #include "ws_address.hpp" #include "stream_listener_base.hpp" #ifdef ZMQ_USE_GNUTLS #include <gnutls/gnutls.h> #endif namespace zmq { class ws_listener_t ZMQ_FINAL : public stre...
1,361
C++
.h
43
27.093023
75
0.671779
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,545
wss_engine.hpp
zeromq_libzmq/src/wss_engine.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_WSS_ENGINE_HPP_INCLUDED__ #define __ZMQ_WSS_ENGINE_HPP_INCLUDED__ #include <gnutls/gnutls.h> #include "ws_engine.hpp" #define WSS_BUFFER_SIZE 8192 namespace zmq { class wss_engine_t : public ws_engine_t { public: wss_engine_t (fd_t fd_, co...
940
C++
.h
33
22.424242
64
0.614699
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,551
raw_encoder.hpp
zeromq_libzmq/src/raw_encoder.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_RAW_ENCODER_HPP_INCLUDED__ #define __ZMQ_RAW_ENCODER_HPP_INCLUDED__ #include <stddef.h> #include <string.h> #include <stdlib.h> #include "encoder.hpp" namespace zmq { // Encoder for 0MQ framing protocol. Converts messages into data batches. class raw_encoder_t ...
547
C++
.h
21
23.714286
74
0.723938
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
true
true
true
false
14,556
zmq_draft.h
zeromq_libzmq/src/zmq_draft.h
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_DRAFT_H_INCLUDED__ #define __ZMQ_DRAFT_H_INCLUDED__ /******************************************************************************/ /* These functions are DRAFT and disabled in stable releases, and subject to */ /* change at ANY time until declared stable. ...
6,149
C++
.h
151
36.238411
80
0.576356
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
14,557
fd.hpp
zeromq_libzmq/src/fd.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_FD_HPP_INCLUDED__ #define __ZMQ_FD_HPP_INCLUDED__ #if defined _WIN32 #include "windows.hpp" #endif namespace zmq { typedef zmq_fd_t fd_t; #ifdef ZMQ_HAVE_WINDOWS #if defined _MSC_VER && _MSC_VER <= 1400 enum { retired_fd = (fd_t) (~0) }; #else enum #if _MSC_V...
443
C++
.h
32
12.28125
40
0.683047
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,559
channel.hpp
zeromq_libzmq/src/channel.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_CHANNEL_HPP_INCLUDED__ #define __ZMQ_CHANNEL_HPP_INCLUDED__ #include "blob.hpp" #include "socket_base.hpp" #include "session_base.hpp" namespace zmq { class ctx_t; class msg_t; class pipe_t; class io_thread_t; class channel_t ZMQ_FINAL : public socket_base_t { ...
949
C++
.h
34
23.676471
61
0.642778
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
true
true
true
false
14,566
curve_mechanism_base.hpp
zeromq_libzmq/src/curve_mechanism_base.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_CURVE_MECHANISM_BASE_HPP_INCLUDED__ #define __ZMQ_CURVE_MECHANISM_BASE_HPP_INCLUDED__ #ifdef ZMQ_HAVE_CURVE #if defined(ZMQ_USE_LIBSODIUM) #include "sodium.h" #endif #if crypto_box_NONCEBYTES != 24 || crypto_box_PUBLICKEYBYTES != 32 \ || crypto_box_...
2,239
C++
.h
58
32.362069
80
0.640278
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
14,570
dist.hpp
zeromq_libzmq/src/dist.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_DIST_HPP_INCLUDED__ #define __ZMQ_DIST_HPP_INCLUDED__ #include <vector> #include "array.hpp" #include "macros.hpp" namespace zmq { class pipe_t; class msg_t; // Class manages a set of outbound pipes. It sends each messages to // each of them. class dist_t { ...
2,552
C++
.h
66
34.378788
76
0.676148
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
true
true
false
14,593
v2_encoder.hpp
zeromq_libzmq/src/v2_encoder.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_V2_ENCODER_HPP_INCLUDED__ #define __ZMQ_V2_ENCODER_HPP_INCLUDED__ #include "encoder.hpp" namespace zmq { // Encoder for 0MQ framing protocol. Converts messages into data stream. class v2_encoder_t ZMQ_FINAL : public encoder_base_t<v2_encoder_t> { public: v...
593
C++
.h
21
25.333333
73
0.696809
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
true
true
true
false
14,596
trie.hpp
zeromq_libzmq/src/trie.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_TRIE_HPP_INCLUDED__ #define __ZMQ_TRIE_HPP_INCLUDED__ #include <stddef.h> #include "macros.hpp" #include "stdint.hpp" #include "atomic_counter.hpp" namespace zmq { class trie_t { public: trie_t (); ~trie_t (); // Add key to the trie. Returns true ...
2,653
C++
.h
85
23.988235
80
0.575186
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
14,598
metadata.hpp
zeromq_libzmq/src/metadata.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_METADATA_HPP_INCLUDED__ #define __ZMQ_METADATA_HPP_INCLUDED__ #include <map> #include <string> #include "atomic_counter.hpp" namespace zmq { class metadata_t { public: typedef std::map<std::string, std::string> dict_t; metadata_t (const dict_t &dict_);...
787
C++
.h
29
23.655172
57
0.684987
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
true
true
true
false
true
true
true
false
14,612
session_base.hpp
zeromq_libzmq/src/session_base.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_SESSION_BASE_HPP_INCLUDED__ #define __ZMQ_SESSION_BASE_HPP_INCLUDED__ #include <stdarg.h> #include "own.hpp" #include "io_object.hpp" #include "pipe.hpp" #include "socket_base.hpp" #include "i_engine.hpp" #include "msg.hpp" namespace zmq { class io_thread_t; stru...
5,138
C++
.h
132
32.371212
87
0.638816
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
14,618
generic_mtrie_impl.hpp
zeromq_libzmq/src/generic_mtrie_impl.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_GENERIC_MTRIE_IMPL_HPP_INCLUDED__ #define __ZMQ_GENERIC_MTRIE_IMPL_HPP_INCLUDED__ #include <stdlib.h> #include <new> #include <algorithm> #include <list> #include "err.hpp" #include "macros.hpp" #include "generic_mtrie.hpp" namespace zmq { template <typename T>...
24,131
C++
.h
510
27.870588
95
0.410679
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
14,619
v3_1_encoder.hpp
zeromq_libzmq/src/v3_1_encoder.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_V3_1_ENCODER_HPP_INCLUDED__ #define __ZMQ_V3_1_ENCODER_HPP_INCLUDED__ #include "encoder.hpp" #include "msg.hpp" namespace zmq { // Encoder for 0MQ framing protocol. Converts messages into data stream. class v3_1_encoder_t ZMQ_FINAL : public encoder_base_t<v3_1_e...
605
C++
.h
21
26.095238
73
0.699653
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,621
wss_address.hpp
zeromq_libzmq/src/wss_address.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_WSS_ADDRESS_HPP_INCLUDED__ #define __ZMQ_WSS_ADDRESS_HPP_INCLUDED__ #include "ws_address.hpp" namespace zmq { class wss_address_t : public ws_address_t { public: wss_address_t (); wss_address_t (const sockaddr *sa_, socklen_t sa_len_); // The opposi...
395
C++
.h
16
22.3125
59
0.690667
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
true
true
true
false
14,622
ypipe_conflate.hpp
zeromq_libzmq/src/ypipe_conflate.hpp
/* SPDX-License-Identifier: MPL-2.0 */ #ifndef __ZMQ_YPIPE_CONFLATE_HPP_INCLUDED__ #define __ZMQ_YPIPE_CONFLATE_HPP_INCLUDED__ #include "platform.hpp" #include "dbuffer.hpp" #include "ypipe_base.hpp" namespace zmq { // Adapter for dbuffer, to plug it in instead of a queue for the sake // of implementing the confla...
2,464
C++
.h
77
27.441558
79
0.670747
zeromq/libzmq
9,642
2,351
329
MPL-2.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
true
false
true
false
14,642
Enums.cpp
Studio3T_robomongo/src/robomongo/core/Enums.cpp
#include "robomongo/core/Enums.h" #include <string.h> namespace { const char *viewModeAsoc[Robomongo::Custom+1] = {"Text mode", "Tree mode", "Table mode", "Custom mode"}; const char *timesAsoc[Robomongo::LocalTime+1] = {"UTC", "Local Timezone"}; const char *uuidAsoc[Robomongo::PythonLegacy+1] = {"Default e...
1,477
C++
.cpp
47
25.319149
130
0.655172
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,643
KeyboardManager.cpp
Studio3T_robomongo/src/robomongo/core/KeyboardManager.cpp
#include "robomongo/core/KeyboardManager.h" namespace Robomongo { bool KeyboardManager::isNewTabShortcut(QKeyEvent *keyEvent) { bool ctrlShiftReturn = (keyEvent->modifiers() & Qt::ControlModifier) && (keyEvent->modifiers() & Qt::ShiftModifier) && (keyEvent->key() == Qt::Key_Retu...
2,540
C++
.cpp
61
33.360656
149
0.611449
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,644
EventError.cpp
Studio3T_robomongo/src/robomongo/core/EventError.cpp
#include "robomongo/core/EventError.h" #include "robomongo/utils/StringOperations.h" namespace Robomongo { EventError::EventError() : _isNull(true) {} EventError::EventError(const std::string &errorMessage, ErrorCode errorCode /*= Unknown*/, bool showErrorWindow /* = true *...
1,010
C++
.cpp
28
28.071429
94
0.645128
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,647
HexUtils.cpp
Studio3T_robomongo/src/robomongo/core/HexUtils.cpp
#include "robomongo/core/HexUtils.h" #include <mongo/util/hex.h> #include <pcrecpp.h> #include <iostream> namespace Robomongo { namespace HexUtils { bool isHexString(const std::string &str) { std::size_t i; for (i = 0; i < str.size(); i++) { if (!isxdigi...
6,909
C++
.cpp
156
32.339744
171
0.500074
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,648
HexUtils_test.cpp
Studio3T_robomongo/src/robomongo/core/HexUtils_test.cpp
#include "gtest/gtest.h" #include "HexUtils.h" #include <string> /* Example Test: * * TEST( [Test_Case_Name], [Test_Name] ) * TEST( [Test_Case_Name], [UnitOfWorkName_ScenarioUnderTest_ExpectedBehavior] ) * TEST( StringParserTests, NumberLeftOf_StringWithoutNumber_ReturnsFalse) { // ... } */ TEST(hex_utils_tests, tes...
386
C++
.cpp
15
24.2
79
0.735695
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,649
AppRegistry.cpp
Studio3T_robomongo/src/robomongo/core/AppRegistry.cpp
#include "robomongo/core/AppRegistry.h" #include "robomongo/core/EventBus.h" #include "robomongo/core/settings/SettingsManager.h" #include "robomongo/core/domain/App.h" namespace Robomongo { AppRegistry::AppRegistry() : _bus(new EventBus()), _settingsManager(new SettingsManager()), _app(ne...
402
C++
.cpp
16
20.6875
52
0.67801
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,650
SshTunnelWorker.cpp
Studio3T_robomongo/src/robomongo/core/mongodb/SshTunnelWorker.cpp
#include "robomongo/core/mongodb/SshTunnelWorker.h" #include <QThread> #include <QElapsedTimer> #include "robomongo/core/utils/QtUtils.h" #include "robomongo/core/utils/Logger.h" #include "robomongo/core/settings/ConnectionSettings.h" #include "robomongo/core/AppRegistry.h" #include "robomongo/core/EventBus.h" #inclu...
8,625
C++
.cpp
184
35.836957
139
0.589805
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,651
ReplicaSet.cpp
Studio3T_robomongo/src/robomongo/core/mongodb/ReplicaSet.cpp
#include "robomongo/core/mongodb/ReplicaSet.h" namespace Robomongo { ReplicaSet::ReplicaSet(std::string const& setName, const mongo::HostAndPort primary, std::vector<std::pair<std::string, bool>> const& membersAndHealths, std::string const& errorStr) ...
471
C++
.cpp
10
34.1
103
0.601307
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,652
MongoClient.cpp
Studio3T_robomongo/src/robomongo/core/mongodb/MongoClient.cpp
#include "robomongo/core/mongodb/MongoClient.h" #include "mongo/db/namespace_string.h" #include "robomongo/core/domain/MongoDocument.h" #include "robomongo/core/utils/BsonUtils.h" #include "robomongo/shell/bson/json.h" namespace { Robomongo::IndexInfo makeIndexInfoFromBsonObj( const Robomongo::MongoColle...
23,543
C++
.cpp
516
35.313953
158
0.605972
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,653
MongoWorker.cpp
Studio3T_robomongo/src/robomongo/core/mongodb/MongoWorker.cpp
#include "robomongo/core/mongodb/MongoWorker.h" #include <algorithm> #include <exception> #include <QThread> #include <mongo/client/global_conn_pool.h> #include <mongo/client/replica_set_monitor.h> #include <mongo/util/net/ssl_manager.h> #include <mongo/util/net/ssl_options.h> #include "robomongo/core/AppRegistry.h...
45,642
C++
.cpp
986
34.130832
125
0.583127
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,654
StdUtils.cpp
Studio3T_robomongo/src/robomongo/core/utils/StdUtils.cpp
#include "robomongo/core/utils/StdUtils.h" namespace Robomongo { namespace stdutils { } }
111
C++
.cpp
7
11.857143
42
0.726316
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,655
Logger.cpp
Studio3T_robomongo/src/robomongo/core/utils/Logger.cpp
#include "robomongo/core/utils/Logger.h" #include <QDir> #include <QMetaType> #include "robomongo/core/AppRegistry.h" #include "robomongo/core/domain/App.h" #include "robomongo/core/EventBus.h" #include "robomongo/core/settings/SettingsManager.h" #include "robomongo/core/utils/QtUtils.h" namespace Robomongo { Lo...
2,005
C++
.cpp
58
27.344828
94
0.609504
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,656
BsonUtils.cpp
Studio3T_robomongo/src/robomongo/core/utils/BsonUtils.cpp
#include "robomongo/core/utils/BsonUtils.h" #include <mongo/client/dbclient_base.h> //#include <mongo/bson/bsonobjiterator.h> #include "mongo/util/base64.h" #include "mongo/util/str.h" #include "robomongo/core/utils/Logger.h" #include "robomongo/core/utils/QtUtils.h" #include "robomongo/core/HexUtils.h" // v0.9 #inc...
26,730
C++
.cpp
712
20.132022
155
0.374094
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,657
QtUtils.cpp
Studio3T_robomongo/src/robomongo/core/utils/QtUtils.cpp
#include "robomongo/core/utils/QtUtils.h" #include <QThread> #include <QTreeWidgetItem> namespace Robomongo { namespace QtUtils { template<> QString toQString<std::string>(const std::string &value) { //static QTextCodec *LOCALECODEC = QTextCodec::codecForLocale(); ...
1,573
C++
.cpp
50
21.84
76
0.545515
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,658
MongoEvents.cpp
Studio3T_robomongo/src/robomongo/core/events/MongoEvents.cpp
#include "robomongo/core/events/MongoEvents.h" #include "robomongo/core/Core.h" namespace Robomongo { R_REGISTER_EVENT(EstablishConnectionRequest) R_REGISTER_EVENT(EstablishConnectionResponse) R_REGISTER_EVENT(ReplicaSetRefreshed) R_REGISTER_EVENT(RefreshReplicaSetFolderRequest) R_REGISTER_EVENT(Re...
3,234
C++
.cpp
74
38.959459
56
0.819563
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,659
MongoEventsInfo.cpp
Studio3T_robomongo/src/robomongo/core/events/MongoEventsInfo.cpp
#include "robomongo/core/events/MongoEventsInfo.h" namespace Robomongo { IndexInfo::IndexInfo( const MongoCollectionInfo &collection, const std::string &name, const std::string &keys, bool isUnique, bool isBackGround, bool isSparce, int expireAfter, const std::string &defaultLanguage, const...
1,373
C++
.cpp
35
29.8
114
0.624719
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,660
MongoFunction.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoFunction.cpp
#include "robomongo/core/domain/MongoFunction.h" #include "robomongo/core/utils/BsonUtils.h" #include <mongo/client/dbclient_base.h> namespace Robomongo { MongoFunction::MongoFunction(const mongo::BSONObj &obj) { _name = BsonUtils::getField<mongo::String>(obj, "_id"); _code = obj.getField("valu...
641
C++
.cpp
20
26.5
63
0.653722
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,661
CursorPosition.cpp
Studio3T_robomongo/src/robomongo/core/domain/CursorPosition.cpp
#include "robomongo/core/domain/CursorPosition.h" namespace Robomongo { CursorPosition::CursorPosition() : _isNull(true), _line(-1), _column(-1) {} CursorPosition::CursorPosition(int line, int column) : _isNull(false), _line(line), _column(column) {} }
311
C++
.cpp
12
20.083333
58
0.619529
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,662
MongoShell.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoShell.cpp
#include "robomongo/core/domain/MongoShell.h" #include "mongo/scripting/engine.h" #include "robomongo/core/domain/MongoServer.h" #include "robomongo/core/mongodb/MongoWorker.h" #include "robomongo/core/AppRegistry.h" #include "robomongo/core/EventBus.h" #include "robomongo/core/utils/QtUtils.h" #include "robomongo/co...
4,277
C++
.cpp
117
28.162393
99
0.61189
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,663
App.cpp
Studio3T_robomongo/src/robomongo/core/domain/App.cpp
#include "robomongo/core/domain/App.h" #include <QHash> #include <QInputDialog> #include <QMessageBox> #include "robomongo/core/domain/MongoServer.h" #include "robomongo/core/domain/MongoShell.h" #include "robomongo/core/domain/MongoCollection.h" #include "robomongo/core/settings/ConnectionSettings.h" #include "robom...
12,221
C++
.cpp
255
38.12549
121
0.62788
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,664
MongoNamespace.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoNamespace.cpp
#include "robomongo/core/domain/MongoNamespace.h" #include <stdio.h> namespace Robomongo { MongoNamespace::MongoNamespace(const std::string &ns) : _ns(ns) { size_t dot = ns.find_first_of('.'); _collectionName = ns.substr(dot + 1); _databaseName = ns.substr(0, dot); } M...
562
C++
.cpp
19
23.789474
96
0.627778
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,665
ScriptInfo.cpp
Studio3T_robomongo/src/robomongo/core/domain/ScriptInfo.cpp
#include "robomongo/core/domain/ScriptInfo.h" #include <QTextStream> #include <QApplication> #include <QMessageBox> #include <QFileDialog> namespace { const QString filterForScripts = QObject::tr("JavaScript (*.js);; All Files (*.*)"); bool loadFromFileText(const QString &filePath, QString &text) { ...
3,234
C++
.cpp
97
24.164948
125
0.578425
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,666
MongoUtils.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoUtils.cpp
#include "robomongo/core/domain/MongoUtils.h" #include <mongo/db/json.h> using namespace std; #include "mongo/util/md5.hpp" namespace Robomongo { namespace MongoUtils { QString buildNiceSizeString(double sizeBytes) { if (sizeBytes < 1024 * 100) { double kb = ((double...
1,006
C++
.cpp
30
24.5
95
0.53759
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,667
Notifier.cpp
Studio3T_robomongo/src/robomongo/core/domain/Notifier.cpp
#include "robomongo/core/domain/Notifier.h" #include <thread> #include <chrono> #include <QAction> #include <QClipboard> #include <QApplication> #include <QMenu> #include "robomongo/core/domain/MongoShell.h" #include "robomongo/core/utils/QtUtils.h" #include "robomongo/core/AppRegistry.h" #include "robomongo/core/ut...
19,364
C++
.cpp
421
34.840855
128
0.601488
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,668
MongoCollectionInfo.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoCollectionInfo.cpp
#include "MongoCollectionInfo.h" #include "robomongo/core/utils/BsonUtils.h" #include <mongo/client/dbclient_base.h> namespace Robomongo { MongoCollectionInfo::MongoCollectionInfo(const std::string &ns) : _ns(ns) {} /* MongoCollectionInfo::MongoCollectionInfo(mongo::BSONObj stats) : _ns(stats.getStringField("n...
795
C++
.cpp
16
44.6875
102
0.713548
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,669
MongoDocument.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoDocument.cpp
#include "robomongo/core/domain/MongoDocument.h" #include <mongo/client/dbclient_base.h> #include "robomongo/core/settings/SettingsManager.h" #include "robomongo/core/AppRegistry.h" #include "robomongo/core/utils/BsonUtils.h" namespace Robomongo { MongoDocument::MongoDocument() { } MongoDocument::~M...
1,276
C++
.cpp
39
27.461538
109
0.689992
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,670
MongoServer.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoServer.cpp
#include "robomongo/core/domain/MongoServer.h" #include "robomongo/core/domain/MongoDatabase.h" #include "robomongo/core/settings/ConnectionSettings.h" #include "robomongo/core/settings/SshSettings.h" #include "robomongo/core/settings/SettingsManager.h" #include "robomongo/core/settings/ReplicaSetSettings.h" #include ...
21,732
C++
.cpp
435
38.866667
122
0.61387
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,671
MongoDatabase.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoDatabase.cpp
#include "robomongo/core/domain/MongoDatabase.h" #include "robomongo/core/domain/MongoServer.h" #include "robomongo/core/domain/MongoCollection.h" #include "robomongo/core/mongodb/MongoWorker.h" #include "robomongo/core/AppRegistry.h" #include "robomongo/core/EventBus.h" #include "robomongo/core/utils/Logger.h" #inclu...
10,496
C++
.cpp
235
35.940426
151
0.637646
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,672
MongoCollection.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoCollection.cpp
#include "robomongo/core/domain/MongoCollection.h" #include "robomongo/core/domain/MongoUtils.h" namespace Robomongo { MongoCollection::MongoCollection(MongoDatabase *database, const MongoCollectionInfo &info) : _ns(info.ns()), _database(database), _info(info), _system(false) { ...
932
C++
.cpp
26
29.615385
96
0.670732
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,673
MongoQueryInfo.cpp
Studio3T_robomongo/src/robomongo/core/domain/MongoQueryInfo.cpp
#include "robomongo/core/domain/MongoQueryInfo.h" #include <mongo/client/dbclient_base.h> namespace Robomongo { namespace detail { std::string prepareServerAddress(const std::string &address) { size_t pos = address.find_first_of("{"); if (pos != std::string::npos) { ...
1,231
C++
.cpp
38
24.289474
121
0.602867
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,674
SettingsManager.cpp
Studio3T_robomongo/src/robomongo/core/settings/SettingsManager.cpp
#include "robomongo/core/settings/SettingsManager.h" #include <QDir> #include <QFile> #include <QVariantList> #include <QUuid> #include <QJsonArray> #include <QXmlStreamReader> #include <QDirIterator> #include <parser.h> #include <serializer.h> #include "robomongo/core/settings/ConnectionSettings.h" #include "robomo...
27,711
C++
.cpp
610
35.17377
126
0.603227
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,675
SslSettings.cpp
Studio3T_robomongo/src/robomongo/core/settings/SslSettings.cpp
#include "robomongo/core/settings/SslSettings.h" #include "robomongo/core/utils/QtUtils.h" #include "robomongo/utils/RoboCrypt.h" namespace Robomongo { SslSettings::SslSettings() : _sslEnabled(false), _caFile(""), _pemKeyFile(""), _pemPassPhrase(""), _crlFile(""), _allowInvalidHostnames(false), ...
2,578
C++
.cpp
49
44.163265
113
0.676084
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,676
ReplicaSetSettings.cpp
Studio3T_robomongo/src/robomongo/core/settings/ReplicaSetSettings.cpp
#include "robomongo/core/settings/ReplicaSetSettings.h" #include "robomongo/core/utils/QtUtils.h" namespace Robomongo { ReplicaSetSettings::ReplicaSetSettings() : _cachedSetName(""), _members(), _readPreference(ReadPreference::PRIMARY) {} ReplicaSetSettings::ReplicaSetSettings(const mongo::Mong...
2,813
C++
.cpp
72
30.805556
106
0.638071
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,677
CredentialSettings.cpp
Studio3T_robomongo/src/robomongo/core/settings/CredentialSettings.cpp
#include "robomongo/core/settings/CredentialSettings.h" #include "robomongo/core/utils/QtUtils.h" #include "robomongo/utils/RoboCrypt.h" namespace Robomongo { CredentialSettings::CredentialSettings() : _userName(), _userPassword(), _databaseName(), _mechanism(), _enabled(fa...
2,276
C++
.cpp
51
36.764706
108
0.666367
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,678
SshSettings.cpp
Studio3T_robomongo/src/robomongo/core/settings/SshSettings.cpp
#include "robomongo/core/settings/SshSettings.h" #include "robomongo/core/utils/QtUtils.h" #include "robomongo/utils/RoboCrypt.h" namespace Robomongo { SshSettings::SshSettings() : _port(22), _authMethod("publickey"), _enabled(false), _askPassword(false), _logLevel(1) { ...
2,846
C++
.cpp
53
44.358491
111
0.647862
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,679
ConnectionSettings.cpp
Studio3T_robomongo/src/robomongo/core/settings/ConnectionSettings.cpp
#include "robomongo/core/settings/ConnectionSettings.h" #include <stdio.h> #include <QUuid> #include "robomongo/core/settings/CredentialSettings.h" #include "robomongo/core/settings/ReplicaSetSettings.h" #include "robomongo/core/settings/SshSettings.h" #include "robomongo/core/settings/SslSettings.h" #include "robom...
8,850
C++
.cpp
231
30.428571
118
0.630854
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,680
ScriptEngine.cpp
Studio3T_robomongo/src/robomongo/core/engine/ScriptEngine.cpp
#include "robomongo/core/engine/ScriptEngine.h" #include <QVector> // unable to put this include below. doesn't compile on GCC 4.7.2 and Qt 4.8 #include <QDir> #include <QStringList> #include <QRegExp> #include <QTextStream> #include <QFile> #include <QElapsedTimer> // v0.9 //#include <third_party/js-1.7/jsapi.h> //#...
20,410
C++
.cpp
412
38.179612
176
0.579445
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,681
RoboCrypt.cpp
Studio3T_robomongo/src/robomongo/utils/RoboCrypt.cpp
#include "RoboCrypt.h" #include "robomongo/core/utils/Logger.h" #include <cmath> #include <iostream> #include <random> #include <QDir> #include <QFileInfo> #include <QIODevice> #include <QString> #include <QTextStream> namespace Robomongo { long long RoboCrypt::_KEY = 0; std::vector<RoboCrypt::LogAn...
2,395
C++
.cpp
50
36.76
119
0.600347
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,682
common.cpp
Studio3T_robomongo/src/robomongo/utils/common.cpp
#include "robomongo/utils/common.h" #include <QFileInfo> #include <QSettings> #include "robomongo/core/events/MongoEvents.h" #include "robomongo/core/utils/Logger.h" #include "robomongo/core/EventBus.h" #include "robomongo/utils/StringOperations.h" namespace Robomongo { void genericEventErrorHandler(Event *event...
1,500
C++
.cpp
37
33.783784
103
0.664143
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,683
RoboCrypt_test.cpp
Studio3T_robomongo/src/robomongo/utils/RoboCrypt_test.cpp
#include "gtest/gtest.h" #include "robomongo/utils/RoboCrypt.h" #include <string> /* Example Test: * * TEST( [Test_Case_Name], [Test_Name] ) * TEST( [Test_Case_Name], [UnitOfWorkName_ScenarioUnderTest_ExpectedBehavior] ) * TEST( StringParserTests, NumberLeftOf_StringWithoutNumber_ReturnsFalse) { // ... } *...
767
C++
.cpp
25
25.88
85
0.610811
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,685
StringOperations.cpp
Studio3T_robomongo/src/robomongo/utils/StringOperations.cpp
#include "robomongo/utils/StringOperations.h" namespace Robomongo { std::string captilizeFirstChar(std::string str) { if (!str.empty()) str[0] = static_cast<char>(toupper(str[0])); return str; } } // end of name space Robomongo
272
C++
.cpp
10
22
56
0.638462
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,686
StringOperations_test.cpp
Studio3T_robomongo/src/robomongo/utils/StringOperations_test.cpp
#include "gtest/gtest.h" #include "robomongo/utils/StringOperations.h" #include <string> /* Example Test: * * TEST( [Test_Case_Name], [Test_Name] ) * TEST( [Test_Case_Name], [UnitOfWorkName_ScenarioUnderTest_ExpectedBehavior] ) * TEST( StringParserTests, NumberLeftOf_StringWithoutNumber_ReturnsFalse) { // ......
559
C++
.cpp
16
32.625
90
0.737523
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,688
ptimeutil.cpp
Studio3T_robomongo/src/robomongo/shell/db/ptimeutil.cpp
/* wdb - weather and water data storage Copyright (C) 2007 met.no Contact information: Norwegian Meteorological Institute Box 43 Blindern 0313 OSLO NORWAY E-mail: wdb@met.no This program is free software; you can redistribute it and/or modify it under the terms of the GNU Gene...
14,219
C++
.cpp
347
30.936599
136
0.543866
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,690
main_mongo.cpp
Studio3T_robomongo/src/robomongo/app/main_mongo.cpp
#include <QApplication> #include <QDesktopWidget> #include <QDebug> #include <locale.h> #include <mongo/bson/bsonobjbuilder.h> #include <robomongo/core/utils/BsonUtils.h> using namespace Robomongo; int main(int argc, char *argv[]) { QApplication app(argc, argv); mongo::BSONObjBuilder m; m.append("te...
561
C++
.cpp
18
27.722222
89
0.706215
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,691
main.cpp
Studio3T_robomongo/src/robomongo/app/main.cpp
#include <QApplication> #include <QDesktopWidget> #include <locale.h> // Header "mongo/util/net/sock" is needed for mongo::enableIPv6() // Header "mongo/platform/basic" is required by "sock.h" under Windows #include <mongo/platform/basic.h> #include <mongo/util/net/socket_utils.h> #include <mongo/base/initializer.h> ...
4,244
C++
.cpp
95
39.589474
107
0.724673
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,692
main_test.cpp
Studio3T_robomongo/src/robomongo/app/main_test.cpp
#undef NDEBUG #include <sstream> #include <iostream> #include <assert.h> #include <limits> #include <mongo/util/exit_code.h> #include <mongo/util/net/hostandport.h> namespace mongo { extern bool isShell; void logProcessDetailsForLogRotate() {} void exitCleanly(ExitCode code) {} } void testHostAndPort() {...
2,502
C++
.cpp
67
33.223881
67
0.665705
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,693
GuiRegistry.cpp
Studio3T_robomongo/src/robomongo/gui/GuiRegistry.cpp
#include "robomongo/gui/GuiRegistry.h" #include "robomongo/core/AppRegistry.h" #include "robomongo/core/settings/SettingsManager.h" #include <QApplication> #include <QStyle> #include <QIcon> namespace Robomongo { /** * @brief This is a private constructor, because GuiRegistry is a singleton */ GuiR...
13,001
C++
.cpp
379
27.701847
105
0.661856
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,694
MainWindow.cpp
Studio3T_robomongo/src/robomongo/gui/MainWindow.cpp
#include "robomongo/gui/MainWindow.h" #include <QApplication> #include <QToolButton> #include <QMessageBox> #include <QWidgetAction> #include <QMenuBar> #include <QMenu> #include <QKeyEvent> #include <QToolBar> #include <QToolTip> #include <QDockWidget> #include <QDesktopWidget> #include <QTimer> #include <QPushButton...
57,688
C++
.cpp
1,221
38.677314
203
0.662053
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,695
AppStyle.cpp
Studio3T_robomongo/src/robomongo/gui/AppStyle.cpp
#include "robomongo/gui/AppStyle.h" #include <QApplication> #include <QStyleFactory> #include "robomongo/core/AppRegistry.h" #include "robomongo/core/settings/SettingsManager.h" namespace Robomongo { const QString AppStyle::StyleName = "Native"; namespace AppStyleUtils { void applyStyle(const QS...
1,730
C++
.cpp
47
29.276596
134
0.661483
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,696
DocumentTextEditor.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/DocumentTextEditor.cpp
#include "robomongo/gui/dialogs/DocumentTextEditor.h" #include <QApplication> #include <QHBoxLayout> #include <QPushButton> #include <QMessageBox> #include <QDialogButtonBox> #include <QDesktopWidget> #include <QSettings> #include <Qsci/qscilexerjavascript.h> #include <mongo/client/dbclient_base.h> #include "robomon...
8,625
C++
.cpp
195
35.05641
172
0.634466
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,697
AboutDialog.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/AboutDialog.cpp
#include "robomongo/gui/dialogs/AboutDialog.h" #include <QDate> #include <QDialogButtonBox> #include <QGridLayout> #include <QLabel> #include <QPushButton> #include <QTabWidget> #include <QTextBrowser> #include <QFile> #include <Qsci/qsciglobal.h> #include "robomongo/gui/GuiRegistry.h" #include "robomongo/core/utils/...
4,216
C++
.cpp
96
35.59375
102
0.631656
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,698
ConnectionsDialog.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/ConnectionsDialog.cpp
#include "robomongo/gui/dialogs/ConnectionsDialog.h" #include <QPushButton> #include <QHBoxLayout> #include <QAction> #include <QMessageBox> #include <QLabel> #include <QHeaderView> #include <QDialogButtonBox> #include <QTreeWidgetItem> #include <QKeyEvent> #include <QApplication> #include <QSettings> #include <QUuid>...
17,547
C++
.cpp
391
35.567775
122
0.629406
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,699
EulaDialog.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/EulaDialog.cpp
#include "robomongo/gui/dialogs/EulaDialog.h" #include <QApplication> #include <QHBoxLayout> #include <QPushButton> #include <QMessageBox> #include <QDialogButtonBox> #include <QFile> #include <QSettings> #include <QLabel> #include <QTextBrowser> #include <QLineEdit> #include <QRadioButton> #include <QNetworkAccessMan...
9,542
C++
.cpp
224
34.522321
110
0.624002
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,700
ConnectionAuthTab.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/ConnectionAuthTab.cpp
#include "robomongo/gui/dialogs/ConnectionAuthTab.h" #include <QGridLayout> #include <QLineEdit> #include <QLabel> #include <QCheckBox> #include <QPushButton> #include <QComboBox> #include "robomongo/core/settings/ConnectionSettings.h" #include "robomongo/core/settings/CredentialSettings.h" #include "robomongo/core/u...
8,868
C++
.cpp
177
41.514124
119
0.655802
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
14,701
ConnectionAdvancedTab.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/ConnectionAdvancedTab.cpp
#include "robomongo/gui/dialogs/ConnectionAdvancedTab.h" #include <QLabel> #include <QGridLayout> #include <QLineEdit> /* --- Disabling unfinished export URI connection string feature #include <QPushButton> #include <QMessageBox> #include <QClipboard> #include <QApplication> #include <QCheckBox> #include <QToolTip> *...
6,687
C++
.cpp
136
40.860294
113
0.653887
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
14,702
PreferencesDialog.cpp
Studio3T_robomongo/src/robomongo/gui/dialogs/PreferencesDialog.cpp
#include "robomongo/gui/dialogs/PreferencesDialog.h" #include <QDialogButtonBox> #include <QVBoxLayout> #include <QHBoxLayout> #include <QLabel> #include <QComboBox> #include <QPushButton> #include <QCheckBox> #include "robomongo/gui/GuiRegistry.h" #include "robomongo/gui/AppStyle.h" #include "robomongo/gui/utils/Com...
5,710
C++
.cpp
105
46.609524
152
0.717457
Studio3T/robomongo
9,296
797
724
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false