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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,781 | wslay_queue.h | aria2_aria2/deps/wslay/lib/wslay_queue.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 2,035 | C++ | .h | 47 | 40.957447 | 80 | 0.761857 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
1,782 | wslay_event.h | aria2_aria2/deps/wslay/lib/wslay_event.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 4,518 | C++ | .h | 124 | 33.733871 | 73 | 0.737443 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
1,783 | wslay_stack.h | aria2_aria2/deps/wslay/lib/wslay_stack.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 1,772 | C++ | .h | 44 | 38.477273 | 73 | 0.766551 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,784 | wslay_macro.h | aria2_aria2/deps/wslay/lib/wslay_macro.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2020 Tatsuhiro Tsujikawa
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the... | 1,494 | C++ | .h | 34 | 42.058824 | 80 | 0.738832 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,785 | wslay_net.h | aria2_aria2/deps/wslay/lib/wslay_net.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 1,842 | C++ | .h | 49 | 36.020408 | 73 | 0.748322 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,787 | wslay.h | aria2_aria2/deps/wslay/lib/includes/wslay/wslay.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 30,654 | C++ | .h | 776 | 36.456186 | 80 | 0.729883 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | true | false | false | false | false | false | false |
1,788 | wslay_session_test.h | aria2_aria2/deps/wslay/tests/wslay_session_test.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 1,259 | C++ | .h | 27 | 44.740741 | 73 | 0.77498 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,789 | wslay_stack_test.h | aria2_aria2/deps/wslay/tests/wslay_stack_test.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 1,279 | C++ | .h | 28 | 43.785714 | 73 | 0.773419 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,790 | wslay_queue_test.h | aria2_aria2/deps/wslay/tests/wslay_queue_test.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 1,286 | C++ | .h | 28 | 44.035714 | 73 | 0.772293 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | true | false | false | false | false | false | false |
1,791 | wslay_event_test.h | aria2_aria2/deps/wslay/tests/wslay_event_test.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 2,482 | C++ | .h | 51 | 47.176471 | 73 | 0.787567 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
1,792 | wslay_frame_test.h | aria2_aria2/deps/wslay/tests/wslay_frame_test.h | /*
* Wslay - The WebSocket Library
*
* Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
*
* 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 limitati... | 2,455 | C++ | .h | 51 | 46.647059 | 73 | 0.791007 | aria2/aria2 | 35,165 | 3,564 | 1,088 | GPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
1,793 | enumerate_kenlm_vocabulary.cpp | mozilla_DeepSpeech/native_client/enumerate_kenlm_vocabulary.cpp | #include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include "lm/enumerate_vocab.hh"
#include "lm/virtual_interface.hh"
#include "lm/word_index.hh"
#include "lm/model.hh"
const std::string START_TOKEN = "<s>";
const std::string UNK_TOKEN = "<unk>";
const std::string END_TOKEN = "</s>";
// Impl... | 1,258 | C++ | .cpp | 40 | 28.95 | 85 | 0.701159 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,794 | generate_scorer_package.cpp | mozilla_DeepSpeech/native_client/generate_scorer_package.cpp | #include <string>
#include <vector>
#include <fstream>
#include <unordered_set>
#include <iostream>
using namespace std;
#include "absl/types/optional.h"
#include "boost/program_options.hpp"
#include "ctcdecode/decoder_utils.h"
#include "ctcdecode/scorer.h"
#include "alphabet.h"
#include "deepspeech.h"
namespace po ... | 5,387 | C++ | .cpp | 129 | 34.465116 | 277 | 0.612786 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,796 | ctc_beam_search_decoder.cpp | mozilla_DeepSpeech/native_client/ctcdecode/ctc_beam_search_decoder.cpp | #include "ctc_beam_search_decoder.h"
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
#include <unordered_map>
#include <utility>
#include "decoder_utils.h"
#include "ThreadPool.h"
#include "fst/fstlib.h"
#include "path_trie.h"
int
DecoderState::init(const Alphabet& alphabet,
... | 11,531 | C++ | .cpp | 290 | 30.868966 | 228 | 0.580573 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,797 | decoder_utils.cpp | mozilla_DeepSpeech/native_client/ctcdecode/decoder_utils.cpp | #include "decoder_utils.h"
#include <algorithm>
#include <cmath>
#include <limits>
std::vector<std::pair<size_t, float>> get_pruned_log_probs(
const double *prob_step,
size_t class_dim,
double cutoff_prob,
size_t cutoff_top_n) {
std::vector<std::pair<int, double>> prob_idx;
for (size_t i = 0; i < ... | 4,374 | C++ | .cpp | 146 | 25.349315 | 126 | 0.608882 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,798 | scorer.cpp | mozilla_DeepSpeech/native_client/ctcdecode/scorer.cpp | #ifdef _MSC_VER
#include <stdlib.h>
#include <io.h>
#include <windows.h>
#define R_OK 4 /* Read permission. */
#define W_OK 2 /* Write permission. */
#define F_OK 0 /* Existence. */
#define access _access
#else /* _MSC_VER */
#include <unistd.h>
#endif
#incl... | 10,279 | C++ | .cpp | 302 | 29.864238 | 104 | 0.651964 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,800 | tfmodelstate.cc | mozilla_DeepSpeech/native_client/tfmodelstate.cc | #include "tfmodelstate.h"
#include "workspace_status.h"
using namespace tensorflow;
using std::vector;
TFModelState::TFModelState()
: ModelState()
, mmap_env_(nullptr)
, session_(nullptr)
{
}
TFModelState::~TFModelState()
{
if (session_) {
Status status = session_->Close();
if (!status.ok()) {
... | 8,431 | C++ | .cc | 228 | 31.70614 | 145 | 0.620791 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,801 | deepspeech_errors.cc | mozilla_DeepSpeech/native_client/deepspeech_errors.cc | #include "deepspeech.h"
#include <string.h>
char*
DS_ErrorCodeToErrorMessage(int aErrorCode)
{
#define RETURN_MESSAGE(NAME, VALUE, DESC) \
case NAME: \
return strdup(DESC);
switch(aErrorCode)
{
DS_FOR_EACH_ERROR(RETURN_MESSAGE)
default:
return strdup("Unknown error, please make sure you ar... | 387 | C++ | .cc | 16 | 21.125 | 96 | 0.730978 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,802 | deepspeech.cc | mozilla_DeepSpeech/native_client/deepspeech.cc | #include <algorithm>
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif
#include <cmath>
#include <iostream>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "deepspeech.h"
#include "alphabet.h"
#include "modelstate.h"
#include "workspace_status.h"
#ifndef USE_TFLITE
#include "tfmode... | 14,299 | C++ | .cc | 473 | 25.877378 | 101 | 0.678717 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,803 | modelstate.cc | mozilla_DeepSpeech/native_client/modelstate.cc | #include <vector>
#include "ctcdecode/ctc_beam_search_decoder.h"
#include "modelstate.h"
using std::vector;
ModelState::ModelState()
: beam_width_(-1)
, n_steps_(-1)
, n_context_(-1)
, n_features_(-1)
, mfcc_feats_per_timestep_(-1)
, sample_rate_(-1)
, audio_win_len_(-1)
, audio_win_step_(-1)
, st... | 1,992 | C++ | .cc | 62 | 28.258065 | 108 | 0.638498 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,804 | tflitemodelstate.cc | mozilla_DeepSpeech/native_client/tflitemodelstate.cc | #include "tflitemodelstate.h"
#include "tensorflow/lite/string_util.h"
#include "workspace_status.h"
#ifdef __ANDROID__
#include <android/log.h>
#define LOG_TAG "libdeepspeech"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR... | 15,416 | C++ | .cc | 361 | 37.800554 | 129 | 0.663888 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,805 | trie_load.cc | mozilla_DeepSpeech/native_client/trie_load.cc | #include <algorithm>
#include <iostream>
#include <string>
#include "ctcdecode/scorer.h"
#include "alphabet.h"
#ifdef DEBUG
#include <limits>
#include <unordered_map>
#include "ctcdecode/path_trie.h"
#endif // DEBUG
using namespace std;
int main(int argc, char** argv)
{
const char* kenlm_path = argv[1];
cons... | 1,739 | C++ | .cc | 53 | 29.54717 | 172 | 0.650538 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,806 | client.cc | mozilla_DeepSpeech/native_client/client.cc | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sstream>
#include <string>
#ifdef __APPLE__
#include <TargetConditionals.h>
#endif
#if defined(__ANDROID__) || defined(_MSC_VER... | 15,684 | C++ | .cc | 470 | 28.059574 | 119 | 0.625818 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
1,807 | alphabet.cc | mozilla_DeepSpeech/native_client/alphabet.cc | #include "alphabet.h"
#include "ctcdecode/decoder_utils.h"
#include <fstream>
// std::getline, but handle newline conventions from multiple platforms instead
// of just the platform this code was built for
std::istream&
getline_crossplatform(std::istream& is, std::string& t)
{
t.clear();
// The characters in the... | 5,495 | C++ | .cc | 207 | 23.082126 | 79 | 0.645002 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
2,111 | modelstate.h | mozilla_DeepSpeech/native_client/modelstate.h | #ifndef MODELSTATE_H
#define MODELSTATE_H
#include <vector>
#include "deepspeech.h"
#include "alphabet.h"
#include "ctcdecode/scorer.h"
#include "ctcdecode/output.h"
class DecoderState;
struct ModelState {
//TODO: infer batch size from model/use dynamic batch size
static constexpr unsigned int BATCH_SIZE = 1;
... | 2,497 | C++ | .h | 67 | 31.820896 | 105 | 0.680596 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,112 | workspace_status.h | mozilla_DeepSpeech/native_client/workspace_status.h | #ifndef WORKSPACE_STATUS_H
#define WORKSPACE_STATUS_H
const char *tf_local_git_version();
const char *ds_version();
const char *ds_git_version();
const int ds_graph_version();
#endif // WORKSPACE_STATUS_H
| 207 | C++ | .h | 7 | 28.285714 | 35 | 0.767677 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,113 | tflitemodelstate.h | mozilla_DeepSpeech/native_client/tflitemodelstate.h | #ifndef TFLITEMODELSTATE_H
#define TFLITEMODELSTATE_H
#include <memory>
#include <vector>
#include "tensorflow/lite/model.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/lite/tools/evaluation/utils.h"
#include "modelstate.h"
struct TFLiteModelState : public ModelState
{
std::unique_ptr<tflit... | 1,904 | C++ | .h | 47 | 32.510638 | 73 | 0.646963 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,114 | deepspeech.h | mozilla_DeepSpeech/native_client/deepspeech.h | #ifndef DEEPSPEECH_H
#define DEEPSPEECH_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SWIG
#if defined _MSC_VER
#define DEEPSPEECH_EXPORT __declspec(dllexport)
#else
#define DEEPSPEECH_EXPORT __attribute__ ((visibility("default")))
#endif /*End of _MSC_VER*/
#else
#define DEEPSPEECH... | 14,371 | C++ | .h | 358 | 36.807263 | 217 | 0.712445 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,115 | alphabet.h | mozilla_DeepSpeech/native_client/alphabet.h | #ifndef ALPHABET_H
#define ALPHABET_H
#include <string>
#include <unordered_map>
#include <vector>
/*
* Loads a text file describing a mapping of labels to strings, one string per
* line. This is used by the decoder, client and Python scripts to convert the
* output of the decoder to a human-readable string and vi... | 2,983 | C++ | .h | 77 | 35.558442 | 80 | 0.727651 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,116 | args.h | mozilla_DeepSpeech/native_client/args.h | #ifndef __ARGS_H__
#define __ARGS_H__
#if defined(_MSC_VER)
#include "getopt_win.h"
#else
#include <getopt.h>
#endif
#include <iostream>
#include "deepspeech.h"
char* model = NULL;
char* scorer = NULL;
char* audio = NULL;
bool set_beamwidth = false;
int beam_width = 0;
bool set_alphabeta = false;
float lm_alph... | 5,057 | C++ | .h | 150 | 25.793333 | 119 | 0.561562 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,118 | tfmodelstate.h | mozilla_DeepSpeech/native_client/tfmodelstate.h | #ifndef TFMODELSTATE_H
#define TFMODELSTATE_H
#include <vector>
#include "tensorflow/core/public/session.h"
#include "tensorflow/core/platform/env.h"
#include "tensorflow/core/util/memmapped_file_system.h"
#include "modelstate.h"
struct TFModelState : public ModelState
{
std::unique_ptr<tensorflow::MemmappedEnv> ... | 1,092 | C++ | .h | 26 | 34.115385 | 70 | 0.663198 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,119 | ctc_beam_search_decoder.h | mozilla_DeepSpeech/native_client/ctcdecode/ctc_beam_search_decoder.h | #ifndef CTC_BEAM_SEARCH_DECODER_H_
#define CTC_BEAM_SEARCH_DECODER_H_
#include <memory>
#include <string>
#include <vector>
#include "scorer.h"
#include "output.h"
#include "alphabet.h"
class DecoderState {
int abs_time_step_;
int space_id_;
int blank_id_;
size_t beam_size_;
double cutoff_prob_;
size_t c... | 5,002 | C++ | .h | 135 | 33.474074 | 80 | 0.669895 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,120 | scorer.h | mozilla_DeepSpeech/native_client/ctcdecode/scorer.h | #ifndef SCORER_H_
#define SCORER_H_
#include <memory>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "lm/virtual_interface.hh"
#include "lm/word_index.hh"
#include "util/string_piece.hh"
#include "path_trie.h"
#include "alphabet.h"
#include "deepspeech.h"
const double... | 3,292 | C++ | .h | 84 | 34.785714 | 99 | 0.688267 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,121 | path_trie.h | mozilla_DeepSpeech/native_client/ctcdecode/path_trie.h | #ifndef PATH_TRIE_H
#define PATH_TRIE_H
#include <algorithm>
#include <limits>
#include <memory>
#include <utility>
#include <vector>
#include "fst/fstlib.h"
#include "alphabet.h"
#include "object_pool.h"
/* Tree structure with parent and children information
* It is used to store the timesteps data for the PathTri... | 4,564 | C++ | .h | 108 | 38.990741 | 116 | 0.738757 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,186 | types.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/types.h | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed... | 1,182 | C++ | .h | 28 | 41.035714 | 76 | 0.73107 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,236 | config.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/config.h | // Windows-specific OpenFst config file
// No dynamic registration.
#define FST_NO_DYNAMIC_LINKING 1
| 101 | C++ | .h | 3 | 32.666667 | 39 | 0.806122 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,311 | farlib.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/extensions/far/farlib.h | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
//
// A finite-state archive (FAR) is used to store an indexable collection of
// FSTs in a single file. Utilities are provided to create FARs from FSTs,
// to iterate over FARs, and to extract specific FSTs from FAR... | 726 | C++ | .h | 16 | 44.1875 | 75 | 0.783593 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,315 | nthbit.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/extensions/ngram/nthbit.h | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
#ifndef FST_EXTENSIONS_NGRAM_NTHBIT_H_
#define FST_EXTENSIONS_NGRAM_NTHBIT_H_
#include <fst/types.h>
#include <fst/compat.h>
extern uint32_t nth_bit_bit_offset[];
inline uint32_t nth_bit(uint64_t v, uint32_t r) {... | 821 | C++ | .h | 25 | 30.04 | 77 | 0.620558 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,319 | mpdtlib.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/extensions/mpdt/mpdtlib.h | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
//
// This is an experimental multipush-down transducer (MPDT) library. An MPDT is
// encoded as an FST, where some transitions are labeled with open or close
// parentheses, each mated pair of which is associated to... | 706 | C++ | .h | 15 | 45.866667 | 79 | 0.784884 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,339 | pdtlib.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/extensions/pdt/pdtlib.h | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
//
// This is an experimental push-down transducer (PDT) library. A PDT is
// encoded as an FST, where some transitions are labeled with open or close
// parentheses. To be interpreted as a PDT, the parentheses must ... | 700 | C++ | .h | 16 | 42.5625 | 77 | 0.781204 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,461 | nthbit.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/extensions/ngram/nthbit.h | // See www.openfst.org for extensive documentation on this weighted
// finite-state transducer library.
#ifndef FST_EXTENSIONS_NGRAM_NTHBIT_H_
#define FST_EXTENSIONS_NGRAM_NTHBIT_H_
#include <fst/types.h>
extern uint32 nth_bit_bit_offset[];
inline uint32 nth_bit(uint64 v, uint32 r) {
uint32 shift = 0;
uint32 c ... | 783 | C++ | .h | 24 | 29.75 | 77 | 0.619174 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,485 | unique_ptr.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/object_pool/unique_ptr.h | #ifndef GODEFV_MEMORY_ALLOCATED_UNIQUE_PTR_H
#define GODEFV_MEMORY_ALLOCATED_UNIQUE_PTR_H
#include <memory>
namespace godefv{
//! A deleter to deallocate memory which have been allocated by the given allocator.
template<class Allocator>
struct allocator_deleter_t
{
allocator_deleter_t(Allocator const& allocator) :... | 1,044 | C++ | .h | 30 | 32.9 | 92 | 0.768159 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,486 | object_pool.h | mozilla_DeepSpeech/native_client/ctcdecode/third_party/object_pool/object_pool.h | #ifndef GODEFV_MEMORY_OBJECT_POOL_H
#define GODEFV_MEMORY_OBJECT_POOL_H
#include "unique_ptr.h"
#include <memory>
#include <vector>
#include <array>
namespace godefv{
// Forward declaration
template<class Object, template<class T> class Allocator = std::allocator, std::size_t ChunkSize = 1024>
class object_pool_t;
... | 5,004 | C++ | .h | 88 | 54.375 | 302 | 0.74857 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,487 | deepspeech_ios.h | mozilla_DeepSpeech/native_client/swift/deepspeech_ios/deepspeech_ios.h | //
// deepspeech_ios.h
// deepspeech_ios
//
// Created by Reuben Morais on 14.06.20.
// Copyright © 2020 Mozilla. All rights reserved.
//
#import <Foundation/Foundation.h>
// In this header, you should import all the public headers of your framework using statements like #import <deepspeech_ios/PublicHeader.h>
... | 321 | C++ | .h | 9 | 34.222222 | 139 | 0.756494 | mozilla/DeepSpeech | 25,099 | 3,941 | 150 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
2,586 | main.cpp | flameshot-org_flameshot/external/singleapplication/examples/calculator/main.cpp | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid comm... | 2,886 | C++ | .cpp | 63 | 42.920635 | 78 | 0.697186 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
2,594 | color_delegate.cpp | flameshot-org_flameshot/external/Qt-Color-Widgets/src/QtColorWidgets/color_delegate.cpp | /**
* \file
*
* \author Mattia Basaglia
*
* \copyright Copyright (C) 2013-2020 Mattia Basaglia
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, ... | 5,348 | C++ | .cpp | 146 | 31.335616 | 120 | 0.695383 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | true | false |
2,627 | main.cpp | flameshot-org_flameshot/src/main.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#ifndef USE_EXTERNAL_SINGLEAPPLICATION
#include "singleapplication.h"
#else
#include "QtSolutions/qtsingleapplication.h"
#endif
#include "abstractlogger.h"
#include "src/cli/commandlineparser.h"
#incl... | 21,286 | C++ | .cpp | 546 | 28.983516 | 101 | 0.590775 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,628 | flameshot.cpp | flameshot-org_flameshot/src/core/flameshot.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "flameshot.h"
#include "flameshotdaemon.h"
#if defined(Q_OS_MACOS)
#include "external/QHotkey/QHotkey"
#endif
#include "abstractlogger.h"
#include "screenshotsaver.h"
#include "src/config/con... | 12,247 | C++ | .cpp | 391 | 24.43734 | 80 | 0.617201 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,629 | qguiappcurrentscreen.cpp | flameshot-org_flameshot/src/core/qguiappcurrentscreen.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2021 Yuriy Puchkov <yuriy.puchkov@namecheap.com>
#include "qguiappcurrentscreen.h"
#include <QCursor>
#include <QDesktopWidget>
#include <QGuiApplication>
#include <QPoint>
#include <QScreen>
QGuiAppCurrentScreen::QGuiAppCurrentScreen()
{
m_c... | 1,957 | C++ | .cpp | 58 | 29 | 80 | 0.669483 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
2,630 | flameshotdaemon.cpp | flameshot-org_flameshot/src/core/flameshotdaemon.cpp | #include "flameshotdaemon.h"
#include "abstractlogger.h"
#include "confighandler.h"
#include "flameshot.h"
#include "pinwidget.h"
#include "screenshotsaver.h"
#include "src/utils/globalvalues.h"
#include "src/widgets/capture/capturewidget.h"
#include "src/widgets/trayicon.h"
#include <QApplication>
#include <QClipboar... | 12,655 | C++ | .cpp | 379 | 27.738786 | 80 | 0.680402 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,631 | flameshotdbusadapter.cpp | flameshot-org_flameshot/src/core/flameshotdbusadapter.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "flameshotdbusadapter.h"
#include "src/core/flameshotdaemon.h"
FlameshotDBusAdapter::FlameshotDBusAdapter(QObject* parent)
: QDBusAbstractAdaptor(parent)
{}
FlameshotDBusAdapter::~Flamesho... | 843 | C++ | .cpp | 21 | 35.857143 | 78 | 0.775735 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,632 | globalshortcutfilter.cpp | flameshot-org_flameshot/src/core/globalshortcutfilter.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "globalshortcutfilter.h"
#include "src/core/flameshot.h"
#include <qt_windows.h>
GlobalShortcutFilter::GlobalShortcutFilter(QObject* parent)
: QObject(parent)
{
// Forced Print Screen
... | 1,494 | C++ | .cpp | 41 | 28.463415 | 73 | 0.619377 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,633 | capturerequest.cpp | flameshot-org_flameshot/src/core/capturerequest.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "capturerequest.h"
#include "confighandler.h"
#include "src/config/cacheutils.h"
#include <QApplication>
#include <QClipboard>
#include <QDateTime>
#include <stdexcept>
#include <utility>
Cap... | 1,862 | C++ | .cpp | 74 | 21.310811 | 76 | 0.708568 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,634 | abstractpathtool.cpp | flameshot-org_flameshot/src/tools/abstractpathtool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "abstractpathtool.h"
#include <cmath>
AbstractPathTool::AbstractPathTool(QObject* parent)
: CaptureTool(parent)
, m_thickness(1)
, m_padding(0)
{}
void AbstractPathTool::copyParams(con... | 3,423 | C++ | .cpp | 135 | 20.140741 | 78 | 0.584404 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,635 | abstracttwopointtool.cpp | flameshot-org_flameshot/src/tools/abstracttwopointtool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "abstracttwopointtool.h"
#include <QCursor>
#include <QScreen>
#include <cmath>
namespace {
const double ADJ_UNIT = std::atan(1.0);
const int DIRS_NUMBER = 4;
enum UNIT
{
HORIZ_DIR = 0,... | 4,696 | C++ | .cpp | 160 | 23.70625 | 78 | 0.62439 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,636 | toolfactory.cpp | flameshot-org_flameshot/src/tools/toolfactory.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "toolfactory.h"
#include "accept/accepttool.h"
#include "arrow/arrowtool.h"
#include "circle/circletool.h"
#include "circlecount/circlecounttool.h"
#include "copy/copytool.h"
#include "exit/ex... | 2,601 | C++ | .cpp | 64 | 36.046875 | 80 | 0.70154 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,638 | abstractactiontool.cpp | flameshot-org_flameshot/src/tools/abstractactiontool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "abstractactiontool.h"
AbstractActionTool::AbstractActionTool(QObject* parent)
: CaptureTool(parent)
{}
bool AbstractActionTool::isValid() const
{
return true;
}
bool AbstractActionTo... | 1,202 | C++ | .cpp | 53 | 19.603774 | 74 | 0.751761 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,639 | terminallauncher.cpp | flameshot-org_flameshot/src/tools/launcher/terminallauncher.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "terminallauncher.h"
#include <QDir>
#include <QProcess>
#include <QProcessEnvironment>
#include <QStandardPaths>
namespace {
static const TerminalApp terminalApps[] = {
{ "x-terminal-emu... | 1,178 | C++ | .cpp | 43 | 23.44186 | 72 | 0.625664 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,640 | applauncherwidget.cpp | flameshot-org_flameshot/src/tools/launcher/applauncherwidget.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "applauncherwidget.h"
#include "src/tools/launcher/launcheritemdelegate.h"
#include "src/utils/confighandler.h"
#include "src/utils/filenamehandler.h"
#include "src/utils/globalvalues.h"
#incl... | 10,587 | C++ | .cpp | 293 | 28.720137 | 80 | 0.631174 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,641 | openwithprogram.cpp | flameshot-org_flameshot/src/tools/launcher/openwithprogram.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "openwithprogram.h"
#if defined(Q_OS_WIN)
#include "src/utils/filenamehandler.h"
#include <QDir>
#include <QMessageBox>
#include <windows.h>
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#define _W... | 1,234 | C++ | .cpp | 41 | 25.243902 | 72 | 0.671717 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,642 | applaunchertool.cpp | flameshot-org_flameshot/src/tools/launcher/applaunchertool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "applaunchertool.h"
#include "applauncherwidget.h"
AppLauncher::AppLauncher(QObject* parent)
: AbstractActionTool(parent)
{}
bool AppLauncher::closeOnButtonPressed() const
{
return tru... | 1,143 | C++ | .cpp | 43 | 24.209302 | 72 | 0.769936 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
2,643 | launcheritemdelegate.cpp | flameshot-org_flameshot/src/tools/launcher/launcheritemdelegate.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "launcheritemdelegate.h"
#include "src/utils/globalvalues.h"
#include <QPainter>
LauncherItemDelegate::LauncherItemDelegate(QObject* parent)
: QStyledItemDelegate(parent)
{}
void LauncherI... | 2,062 | C++ | .cpp | 48 | 34.041667 | 80 | 0.622698 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,644 | markertool.cpp | flameshot-org_flameshot/src/tools/marker/markertool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "markertool.h"
#include <QPainter>
#define PADDING_VALUE 14
MarkerTool::MarkerTool(QObject* parent)
: AbstractTwoPointTool(parent)
{
m_supportsOrthogonalAdj = true;
m_supportsDiago... | 2,442 | C++ | .cpp | 78 | 27.730769 | 74 | 0.743622 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,645 | sizedecreasetool.cpp | flameshot-org_flameshot/src/tools/sizedecrease/sizedecreasetool.cpp | // Copyright(c) 2017-2019 Alejandro Sirgo Rica & Contributors
//
// This file is part of Flameshot.
//
// Flameshot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License... | 1,664 | C++ | .cpp | 51 | 30.72549 | 75 | 0.754517 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
2,647 | texttool.cpp | flameshot-org_flameshot/src/tools/text/texttool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "texttool.h"
#include "src/utils/confighandler.h"
#include "textconfig.h"
#include "textwidget.h"
#define BASE_POINT_SIZE 8
#define MAX_INFO_LENGTH 24
TextTool::TextTool(QObject* parent)
:... | 8,293 | C++ | .cpp | 314 | 21.226115 | 80 | 0.644783 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,648 | textconfig.cpp | flameshot-org_flameshot/src/tools/text/textconfig.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "textconfig.h"
#include "src/utils/colorutils.h"
#include "src/utils/confighandler.h"
#include "src/utils/pathinfo.h"
#include <QComboBox>
#include <QFontDatabase>
#include <QHBoxLayout>
#incl... | 5,750 | C++ | .cpp | 153 | 31.03268 | 80 | 0.688307 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,649 | savetool.cpp | flameshot-org_flameshot/src/tools/save/savetool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "savetool.h"
#include "src/utils/screenshotsaver.h"
#include <QPainter>
SaveTool::SaveTool(QObject* parent)
: AbstractActionTool(parent)
{}
bool SaveTool::closeOnButtonPressed() const
{
... | 1,020 | C++ | .cpp | 40 | 23.15 | 72 | 0.760288 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,650 | exittool.cpp | flameshot-org_flameshot/src/tools/exit/exittool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "exittool.h"
#include <QPainter>
ExitTool::ExitTool(QObject* parent)
: AbstractActionTool(parent)
{}
bool ExitTool::closeOnButtonPressed() const
{
return true;
}
QIcon ExitTool::icon(... | 870 | C++ | .cpp | 37 | 21.27027 | 72 | 0.756364 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
2,651 | sizeincreasetool.cpp | flameshot-org_flameshot/src/tools/sizeincrease/sizeincreasetool.cpp | // Copyright(c) 2017-2019 Alejandro Sirgo Rica & Contributors
//
// This file is part of Flameshot.
//
// Flameshot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License... | 1,663 | C++ | .cpp | 51 | 30.705882 | 75 | 0.754364 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
2,652 | accepttool.cpp | flameshot-org_flameshot/src/tools/accept/accepttool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "accepttool.h"
#include "src/utils/screenshotsaver.h"
#include <QApplication>
#include <QPainter>
#include <QStyle>
#if defined(Q_OS_MACOS)
#include "src/widgets/capture/capturewidget.h"
#incl... | 1,327 | C++ | .cpp | 49 | 24.469388 | 72 | 0.756501 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,653 | circletool.cpp | flameshot-org_flameshot/src/tools/circle/circletool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "circletool.h"
#include <QPainter>
CircleTool::CircleTool(QObject* parent)
: AbstractTwoPointTool(parent)
{
m_supportsDiagonalAdj = true;
}
QIcon CircleTool::icon(const QColor& backgro... | 1,095 | C++ | .cpp | 42 | 23.595238 | 72 | 0.747368 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,654 | copytool.cpp | flameshot-org_flameshot/src/tools/copy/copytool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "copytool.h"
#include "src/utils/screenshotsaver.h"
#include <QPainter>
CopyTool::CopyTool(QObject* parent)
: AbstractActionTool(parent)
{}
bool CopyTool::closeOnButtonPressed() const
{
... | 1,038 | C++ | .cpp | 40 | 23.6 | 72 | 0.763636 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,655 | pixelatetool.cpp | flameshot-org_flameshot/src/tools/pixelate/pixelatetool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "pixelatetool.h"
#include <QApplication>
#include <QGraphicsBlurEffect>
#include <QGraphicsPixmapItem>
#include <QGraphicsScene>
#include <QImage>
#include <QPainter>
PixelateTool::PixelateTo... | 3,113 | C++ | .cpp | 89 | 29.483146 | 79 | 0.679747 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,658 | linetool.cpp | flameshot-org_flameshot/src/tools/line/linetool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "linetool.h"
#include <QPainter>
LineTool::LineTool(QObject* parent)
: AbstractTwoPointTool(parent)
{
m_supportsOrthogonalAdj = true;
m_supportsDiagonalAdj = true;
}
QIcon LineTool... | 1,086 | C++ | .cpp | 43 | 22.697674 | 72 | 0.738878 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,659 | penciltool.cpp | flameshot-org_flameshot/src/tools/pencil/penciltool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "penciltool.h"
#include <QPainter>
PencilTool::PencilTool(QObject* parent)
: AbstractPathTool(parent)
{}
QIcon PencilTool::icon(const QColor& background, bool inEditor) const
{
Q_UNUSE... | 1,551 | C++ | .cpp | 54 | 25.444444 | 72 | 0.739072 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,660 | inverttool.cpp | flameshot-org_flameshot/src/tools/invert/inverttool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "inverttool.h"
#include <QApplication>
#include <QGraphicsBlurEffect>
#include <QGraphicsPixmapItem>
#include <QGraphicsScene>
#include <QImage>
#include <QPainter>
#include <QPixmap>
InvertT... | 1,929 | C++ | .cpp | 67 | 25.208955 | 73 | 0.729978 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,661 | selectiontool.cpp | flameshot-org_flameshot/src/tools/selection/selectiontool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "selectiontool.h"
#include <QPainter>
SelectionTool::SelectionTool(QObject* parent)
: AbstractTwoPointTool(parent)
{
m_supportsDiagonalAdj = true;
}
bool SelectionTool::closeOnButtonPr... | 1,266 | C++ | .cpp | 47 | 24.382979 | 74 | 0.755372 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,662 | circlecounttool.cpp | flameshot-org_flameshot/src/tools/circlecount/circlecounttool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "circlecounttool.h"
#include "colorutils.h"
#include <QPainter>
#include <QPainterPath>
namespace {
#define PADDING_VALUE 2
#define THICKNESS_OFFSET 15
}
CircleCountTool::CircleCountTool(QOb... | 5,953 | C++ | .cpp | 174 | 28.241379 | 80 | 0.652106 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,663 | imguploadermanager.cpp | flameshot-org_flameshot/src/tools/imgupload/imguploadermanager.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Yurii Puchkov & Contributors
//
#include "imguploadermanager.h"
#include <QPixmap>
#include <QWidget>
// TODO - remove this hard-code and create plugin manager in the future, you may
// include other storage headers here
#include "storages/imgur/... | 2,076 | C++ | .cpp | 62 | 29.419355 | 80 | 0.686939 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,664 | imguploadertool.cpp | flameshot-org_flameshot/src/tools/imgupload/imguploadertool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "imguploadertool.h"
ImgUploaderTool::ImgUploaderTool(QObject* parent)
: AbstractActionTool(parent)
{}
bool ImgUploaderTool::closeOnButtonPressed() const
{
return true;
}
QIcon ImgUplo... | 1,072 | C++ | .cpp | 38 | 25.763158 | 74 | 0.781463 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,665 | imguploaderbase.cpp | flameshot-org_flameshot/src/tools/imgupload/storages/imguploaderbase.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "imguploaderbase.h"
#include "src/core/flameshotdaemon.h"
#include "src/utils/confighandler.h"
#include "src/utils/globalvalues.h"
#include "src/utils/history.h"
#include "src/utils/screenshot... | 5,475 | C++ | .cpp | 165 | 28.963636 | 80 | 0.72908 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,666 | imguruploader.cpp | flameshot-org_flameshot/src/tools/imgupload/storages/imgur/imguruploader.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "imguruploader.h"
#include "src/utils/confighandler.h"
#include "src/utils/filenamehandler.h"
#include "src/utils/history.h"
#include "src/widgets/loadspinner.h"
#include "src/widgets/notifica... | 3,226 | C++ | .cpp | 84 | 32.02381 | 76 | 0.684244 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,667 | pinwidget.cpp | flameshot-org_flameshot/src/tools/pin/pinwidget.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include <QGraphicsDropShadowEffect>
#include <QGraphicsOpacityEffect>
#include <QPinchGesture>
#include "pinwidget.h"
#include "qguiappcurrentscreen.h"
#include "screenshotsaver.h"
#include "src/utils... | 10,355 | C++ | .cpp | 303 | 28.184818 | 80 | 0.655141 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,668 | pintool.cpp | flameshot-org_flameshot/src/tools/pin/pintool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "pintool.h"
#include "src/core/qguiappcurrentscreen.h"
#include "src/tools/pin/pinwidget.h"
#include <QScreen>
PinTool::PinTool(QObject* parent)
: AbstractActionTool(parent)
{}
bool PinToo... | 1,057 | C++ | .cpp | 41 | 23.463415 | 72 | 0.758929 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,669 | movetool.cpp | flameshot-org_flameshot/src/tools/move/movetool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "movetool.h"
#include <QPainter>
MoveTool::MoveTool(QObject* parent)
: AbstractActionTool(parent)
{}
bool MoveTool::closeOnButtonPressed() const
{
return false;
}
QIcon MoveTool::icon... | 904 | C++ | .cpp | 40 | 20.425 | 72 | 0.759064 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
2,670 | arrowtool.cpp | flameshot-org_flameshot/src/tools/arrow/arrowtool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "arrowtool.h"
#include <cmath>
namespace {
const int ArrowWidth = 10;
const int ArrowHeight = 18;
QPainterPath getArrowHead(QPoint p1, QPoint p2, const int thickness)
{
QLineF base(p1, p... | 4,622 | C++ | .cpp | 139 | 28.244604 | 78 | 0.627214 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,671 | rectangletool.cpp | flameshot-org_flameshot/src/tools/rectangle/rectangletool.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "rectangletool.h"
#include <QPainter>
#include <QPainterPath>
#include <cmath>
RectangleTool::RectangleTool(QObject* parent)
: AbstractTwoPointTool(parent)
{
m_supportsDiagonalAdj = tru... | 2,136 | C++ | .cpp | 70 | 26.185714 | 77 | 0.672825 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,672 | colorpickerwidget.cpp | flameshot-org_flameshot/src/widgets/colorpickerwidget.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2022 Dearsh Oberoi
#include "colorpickerwidget.h"
#include "src/utils/confighandler.h"
#include "src/utils/globalvalues.h"
#include <QMouseEvent>
#include <QPainter>
ColorPickerWidget::ColorPickerWidget(QWidget* parent)
: QWidget(parent)
, m_... | 5,312 | C++ | .cpp | 137 | 32.445255 | 80 | 0.645975 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,673 | orientablepushbutton.cpp | flameshot-org_flameshot/src/widgets/orientablepushbutton.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
// Based on https://stackoverflow.com/a/53135675/964478
#include "orientablepushbutton.h"
#include <QPainter>
#include <QStyleOptionButton>
#include <QStylePainter>
OrientablePushButton::OrientablePu... | 1,791 | C++ | .cpp | 53 | 28.54717 | 80 | 0.715032 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,674 | uploadlineitem.cpp | flameshot-org_flameshot/src/widgets/uploadlineitem.cpp | #include "uploadlineitem.h"
#include "./ui_uploadlineitem.h"
#include "src/core/flameshotdaemon.h"
#include "src/tools/imgupload/imguploadermanager.h"
#include "src/utils/confighandler.h"
#include "src/utils/history.h"
#include "src/widgets/notificationwidget.h"
#include <QDesktopServices>
#include <QFileInfo>
#includ... | 2,092 | C++ | .cpp | 60 | 26.766667 | 80 | 0.628953 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,675 | trayicon.cpp | flameshot-org_flameshot/src/widgets/trayicon.cpp | #include "trayicon.h"
#include "src/core/flameshot.h"
#include "src/core/flameshotdaemon.h"
#include "src/utils/globalvalues.h"
#include "src/utils/confighandler.h"
#include <QApplication>
#include <QMenu>
#include <QTimer>
#include <QUrl>
#include <QVersionNumber>
#if defined(Q_OS_MACOS)
#include <QOperatingSystemV... | 5,960 | C++ | .cpp | 178 | 27.191011 | 80 | 0.651389 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,676 | imguploaddialog.cpp | flameshot-org_flameshot/src/widgets/imguploaddialog.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "imguploaddialog.h"
#include "src/utils/confighandler.h"
#include "src/utils/globalvalues.h"
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QLabel>
#include <QVBoxLayout>
ImgUploa... | 1,375 | C++ | .cpp | 32 | 39 | 80 | 0.756372 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,677 | updatenotificationwidget.cpp | flameshot-org_flameshot/src/widgets/updatenotificationwidget.cpp | //
// Created by yuriypuchkov on 09.12.2020.
//
#include "updatenotificationwidget.h"
#include "src/utils/confighandler.h"
#include <QDesktopServices>
#include <QLabel>
#include <QPropertyAnimation>
#include <QPushButton>
#include <QScrollArea>
#include <QTimer>
#include <QVBoxLayout>
#include <QWheelEvent>
#include <... | 4,191 | C++ | .cpp | 126 | 28.603175 | 80 | 0.717746 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,679 | uploadhistory.cpp | flameshot-org_flameshot/src/widgets/uploadhistory.cpp | #include "uploadhistory.h"
#include "./ui_uploadhistory.h"
#include "src/tools/imgupload/imguploadermanager.h"
#include "src/utils/confighandler.h"
#include "src/utils/history.h"
#include "uploadlineitem.h"
#include <QDateTime>
#include <QDesktopWidget>
#include <QFileInfo>
#include <QPixmap>
void scaleThumbnail(QPix... | 2,830 | C++ | .cpp | 85 | 28.070588 | 80 | 0.690136 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,680 | infowindow.cpp | flameshot-org_flameshot/src/widgets/infowindow.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2021-2022 Jeremy Borgman & Contributors
#include "infowindow.h"
#include "./ui_infowindow.h"
#include "src/core/flameshotdaemon.h"
#include "src/core/qguiappcurrentscreen.h"
#include "src/utils/globalvalues.h"
#include <QKeyEvent>
#include <QScree... | 1,511 | C++ | .cpp | 48 | 27.6875 | 73 | 0.704264 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,681 | notificationwidget.cpp | flameshot-org_flameshot/src/widgets/notificationwidget.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "notificationwidget.h"
#include <QFrame>
#include <QIcon>
#include <QLabel>
#include <QPropertyAnimation>
#include <QTimer>
#include <QVBoxLayout>
NotificationWidget::NotificationWidget(QWidg... | 1,761 | C++ | .cpp | 52 | 30.269231 | 80 | 0.716726 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,682 | loadspinner.cpp | flameshot-org_flameshot/src/widgets/loadspinner.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "loadspinner.h"
#include <QApplication>
#include <QPaintEvent>
#include <QPainter>
#include <QTimer>
#define OFFSET 5
LoadSpinner::LoadSpinner(QWidget* parent)
: QWidget(parent)
, m_span... | 1,947 | C++ | .cpp | 80 | 20.3875 | 73 | 0.646361 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,683 | capturelauncher.cpp | flameshot-org_flameshot/src/widgets/capturelauncher.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2018 Alejandro Sirgo Rica & Contributors
#include "capturelauncher.h"
#include "./ui_capturelauncher.h"
#include "src/config/cacheutils.h"
#include "src/core/flameshot.h"
#include "src/utils/globalvalues.h"
#include "src/utils/screengrabber.h... | 6,045 | C++ | .cpp | 150 | 31.946667 | 110 | 0.644414 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
2,684 | draggablewidgetmaker.cpp | flameshot-org_flameshot/src/widgets/draggablewidgetmaker.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "draggablewidgetmaker.h"
#include <QMouseEvent>
DraggableWidgetMaker::DraggableWidgetMaker(QObject* parent)
: QObject(parent)
{}
void DraggableWidgetMaker::makeDraggable(QWidget* widget)
{... | 2,074 | C++ | .cpp | 56 | 26.303571 | 72 | 0.569008 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
2,685 | sidepanelwidget.cpp | flameshot-org_flameshot/src/widgets/panel/sidepanelwidget.cpp | // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#include "sidepanelwidget.h"
#include "colorgrabwidget.h"
#include "src/core/qguiappcurrentscreen.h"
#include "src/utils/colorutils.h"
#include "src/utils/pathinfo.h"
#include "utilitypanel.h"
#include... | 6,946 | C++ | .cpp | 197 | 29.654822 | 76 | 0.69003 | flameshot-org/flameshot | 24,603 | 1,577 | 714 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.