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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25,087 | browse_mdns.hpp | badaix_snapcast/client/browseZeroConf/browse_mdns.hpp | /***
This file is part of snapcast
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) ... | 1,408 | C++ | .h | 47 | 26.680851 | 93 | 0.733333 | badaix/snapcast | 6,105 | 452 | 82 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
25,088 | flac_decoder.hpp | badaix_snapcast/client/decoder/flac_decoder.hpp | /***
This file is part of snapcast
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) ... | 1,483 | C++ | .h | 49 | 26.244898 | 73 | 0.720028 | badaix/snapcast | 6,105 | 452 | 82 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
25,091 | opus_decoder.hpp | badaix_snapcast/client/decoder/opus_decoder.hpp | /***
This file is part of snapcast
Copyright (C) 2015 Hannes Ellinger
Copyright (C) 2016-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Found... | 1,369 | C++ | .h | 41 | 28.878049 | 77 | 0.715046 | badaix/snapcast | 6,105 | 452 | 82 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
25,092 | null_decoder.hpp | badaix_snapcast/client/decoder/null_decoder.hpp | /***
This file is part of snapcast
Copyright (C) 2014-2023 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) ... | 1,019 | C++ | .h | 27 | 34.185185 | 73 | 0.75178 | badaix/snapcast | 6,105 | 452 | 82 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
25,093 | ogg_decoder.hpp | badaix_snapcast/client/decoder/ogg_decoder.hpp | /***
This file is part of snapcast
Copyright (C) 2014-2024 Johannes Pohl
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) ... | 2,206 | C++ | .h | 56 | 35.017857 | 88 | 0.709874 | badaix/snapcast | 6,105 | 452 | 82 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
25,094 | ApiServer.cpp | ethereum-mining_ethminer/libapicore/ApiServer.cpp | #include "ApiServer.h"
#include <ethminer/buildinfo.h>
#include <libethcore/Farm.h>
#ifndef HOST_NAME_MAX
#define HOST_NAME_MAX 255
#endif
// Define grayscale palette
#define HTTP_HDR0_COLOR "#e8e8e8"
#define HTTP_HDR1_COLOR "#f0f0f0"
#define HTTP_ROW0_COLOR "#f8f8f8"
#define HTTP_ROW1_COLOR "#ffffff"
#define HTTP_... | 44,046 | C++ | .cpp | 1,124 | 29.545374 | 105 | 0.551559 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
25,095 | PoolManager.cpp | ethereum-mining_ethminer/libpoolprotocols/PoolManager.cpp | #include <chrono>
#include "PoolManager.h"
using namespace std;
using namespace dev;
using namespace eth;
PoolManager* PoolManager::m_this = nullptr;
PoolManager::PoolManager(PoolSettings _settings)
: m_Settings(std::move(_settings)),
m_io_strand(g_io_service),
m_failovertimer(g_io_service),
m_submith... | 17,514 | C++ | .cpp | 468 | 28.826923 | 124 | 0.59659 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
25,096 | PoolURI.cpp | ethereum-mining_ethminer/libpoolprotocols/PoolURI.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 13,541 | C++ | .cpp | 381 | 27.062992 | 99 | 0.556259 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
25,099 | SimulateClient.cpp | ethereum-mining_ethminer/libpoolprotocols/testing/SimulateClient.cpp | #include <libdevcore/Log.h>
#include <chrono>
#include "SimulateClient.h"
using namespace std;
using namespace std::chrono;
using namespace dev;
using namespace eth;
SimulateClient::SimulateClient(unsigned const& block) : PoolClient(), Worker("sim")
{
m_block = block;
}
SimulateClient::~SimulateClient() = defau... | 2,991 | C++ | .cpp | 83 | 30.710843 | 91 | 0.676256 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,100 | Log.cpp | ethereum-mining_ethminer/libdevcore/Log.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 3,454 | C++ | .cpp | 116 | 23.508621 | 100 | 0.598442 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
25,101 | Worker.cpp | ethereum-mining_ethminer/libdevcore/Worker.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 4,117 | C++ | .cpp | 111 | 28.540541 | 105 | 0.591581 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
25,103 | FixedHash.cpp | ethereum-mining_ethminer/libdevcore/FixedHash.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 910 | C++ | .cpp | 22 | 37.909091 | 72 | 0.753689 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | true | true | false |
25,104 | wrapnvml.cpp | ethereum-mining_ethminer/libhwmon/wrapnvml.cpp | /*
* A trivial little dlopen()-based wrapper library for the
* NVIDIA NVML library, to allow runtime discovery of NVML on an
* arbitrary system. This is all very hackish and simple-minded, but
* it serves my immediate needs in the short term until NVIDIA provides
* a static NVML wrapper library themselves, hopefu... | 6,814 | C++ | .cpp | 162 | 37.32716 | 100 | 0.68785 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,105 | wrapadl.cpp | ethereum-mining_ethminer/libhwmon/wrapadl.cpp | /*
* Wrapper for ADL, inspired by wrapnvml from John E. Stone
*
* By Philipp Andreas - github@smurfy.de
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include "wrapadl.h"
#include "wraphelper.h"
#if defined(__cplusplus)
extern "C" {
#endif
void* ADL_API_CALL ADL_Main_Memory_All... | 8,015 | C++ | .cpp | 203 | 33.536946 | 100 | 0.664389 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,106 | wrapamdsysfs.cpp | ethereum-mining_ethminer/libhwmon/wrapamdsysfs.cpp | /*
* Wrapper for AMD SysFS on linux, using adapted code from amdcovc by matszpk
*
* By Philipp Andreas - github@smurfy.de
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#if defined(__linux)
#include <dirent.h>
#endif
#include <boost/algorithm/string.hpp>
#include <boost/filesy... | 9,118 | C++ | .cpp | 243 | 29.946502 | 100 | 0.601586 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,110 | CPUMiner.cpp | ethereum-mining_ethminer/libethash-cpu/CPUMiner.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed in the hope that it will... | 10,997 | C++ | .cpp | 323 | 28.226006 | 120 | 0.612347 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | true | false | true | false |
25,112 | EthashAux.cpp | ethereum-mining_ethminer/libethcore/EthashAux.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 1,269 | C++ | .cpp | 26 | 44.961538 | 93 | 0.751011 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,113 | Miner.cpp | ethereum-mining_ethminer/libethcore/Miner.cpp | /*
This file is part of ethereum.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethereum is distributed in the hope that i... | 5,100 | C++ | .cpp | 162 | 25.62963 | 97 | 0.639495 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,114 | CUDAMiner.cpp | ethereum-mining_ethminer/libethash-cuda/CUDAMiner.cpp | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed in the hope that it will... | 15,796 | C++ | .cpp | 377 | 31.689655 | 100 | 0.591546 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,115 | ApiServer.h | ethereum-mining_ethminer/libapicore/ApiServer.h | #pragma once
#include <regex>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <json/json.h>
#include <libethcore/Farm.h>
#include <libethcore/Miner.h>
#include <libpoolprotocols/PoolManager.h>
using namespace dev;
using namespace dev::eth;
using namespace std::chrono;
... | 2,608 | C++ | .h | 69 | 33.666667 | 100 | 0.718041 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,116 | PoolManager.h | ethereum-mining_ethminer/libpoolprotocols/PoolManager.h | #pragma once
#include <iostream>
#include <json/json.h>
#include <libdevcore/Worker.h>
#include <libethcore/Farm.h>
#include <libethcore/Miner.h>
#include "PoolClient.h"
#include "getwork/EthGetworkClient.h"
#include "stratum/EthStratumClient.h"
#include "testing/SimulateClient.h"
using namespace std;
namespace d... | 3,274 | C++ | .h | 77 | 38.467532 | 99 | 0.727473 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,117 | PoolURI.h | ethereum-mining_ethminer/libpoolprotocols/PoolURI.h | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 3,863 | C++ | .h | 101 | 33.990099 | 86 | 0.701417 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,118 | PoolClient.h | ethereum-mining_ethminer/libpoolprotocols/PoolClient.h | #pragma once
#include <queue>
#include <boost/asio/ip/address.hpp>
#include <libethcore/Miner.h>
#include <libpoolprotocols/PoolURI.h>
extern boost::asio::io_service g_io_service;
using namespace std;
namespace dev
{
namespace eth
{
struct Session
{
// Tstamp of sessio start
chrono::steady_clock::time_poi... | 3,875 | C++ | .h | 97 | 35.195876 | 98 | 0.704315 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,120 | EthGetworkClient.h | ethereum-mining_ethminer/libpoolprotocols/getwork/EthGetworkClient.h | #pragma once
#include <iostream>
#include <string>
#include <boost/asio.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/lockfree/queue.hpp>
#include <json/json.h>
#include "../PoolClient.h"
using namespace std;
using namespace dev;
using namespace eth;
class ... | 2,438 | C++ | .h | 54 | 41 | 100 | 0.729501 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,121 | SimulateClient.h | ethereum-mining_ethminer/libpoolprotocols/testing/SimulateClient.h | #pragma once
#include <iostream>
#include <libdevcore/Worker.h>
#include <libethcore/EthashAux.h>
#include <libethcore/Farm.h>
#include <libethcore/Miner.h>
#include "../PoolClient.h"
using namespace std;
using namespace dev;
using namespace eth;
class SimulateClient : public PoolClient, Worker
{
public:
Simul... | 892 | C++ | .h | 29 | 27.448276 | 73 | 0.737089 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,124 | Common.h | ethereum-mining_ethminer/libdevcore/Common.h | // ethminer -- Ethereum miner with OpenCL, CUDA and stratum support.
// Copyright 2018 ethminer Authors.
// Licensed under GNU General Public License, Version 3. See the LICENSE file.
/// @file
/// Very common stuff (i.e. that every other header needs except vector_ref.h).
#pragma once
#include "vector_ref.h"
#incl... | 1,882 | C++ | .h | 40 | 44.975 | 91 | 0.764063 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,131 | wrapamdsysfs.h | ethereum-mining_ethminer/libhwmon/wrapamdsysfs.h | /*
* Wrapper for AMD SysFS on linux, using adapted code from amdcovc by matszpk
*
* By Philipp Andreas - github@smurfy.de
Reworked and simplified by Andrea Lanfranchi (github @AndreaLanfranchi)
*/
#pragma once
typedef struct
{
int sysfs_gpucount;
unsigned int* sysfs_device_id;
unsigned int* sysfs_h... | 1,089 | C++ | .h | 31 | 32.064516 | 94 | 0.746425 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,132 | wrapadl.h | ethereum-mining_ethminer/libhwmon/wrapadl.h | /*
* Wrapper for ADL, inspired by wrapnvml from John E. Stone
*
* By Philipp Andreas - github@smurfy.de
* ADL power by Davesmacer
*/
#pragma once
#if defined(__cplusplus)
extern "C" {
#endif
typedef enum wrap_adlReturn_enum { WRAPADL_OK = 0 } wrap_adlReturn_t;
// Some ADL defines and structs from adl sdk
#if de... | 5,024 | C++ | .h | 133 | 34.315789 | 98 | 0.724528 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,133 | wrapnvml.h | ethereum-mining_ethminer/libhwmon/wrapnvml.h | /*
* A trivial little dlopen()-based wrapper library for the
* NVIDIA NVML library, to allow runtime discovery of NVML on an
* arbitrary system. This is all very hackish and simple-minded, but
* it serves my immediate needs in the short term until NVIDIA provides
* a static NVML wrapper library themselves, hopefu... | 3,495 | C++ | .h | 93 | 34.935484 | 95 | 0.740916 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,134 | wraphelper.h | ethereum-mining_ethminer/libhwmon/wraphelper.h | /*
* Wrappers to emulate dlopen() on other systems like Windows
*/
#pragma once
#include <libdevcore/Log.h>
#if defined(_WIN32)
#include <windows.h>
void* wrap_dlopen(const char* filename);
void* wrap_dlsym(void* h, const char* sym);
int wrap_dlclose(void* h);
#else
/* assume we can use dlopen itself... */
#includ... | 451 | C++ | .h | 17 | 25.235294 | 61 | 0.733179 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,137 | DBusInt.h | ethereum-mining_ethminer/ethminer/DBusInt.h | #pragma once
#include <dbus/dbus.h>
using namespace std;
class DBusInt
{
public:
DBusInt()
{
dbus_error_init(&err);
conn = dbus_bus_get(DBUS_BUS_SESSION, &err);
if (!conn)
{
minelog << "DBus error " << err.name << ": " << err.message;
}
dbus_bus_req... | 1,130 | C++ | .h | 39 | 21.794872 | 88 | 0.554328 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,138 | CPUMiner.h | ethereum-mining_ethminer/libethash-cpu/CPUMiner.h | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed in the hope that it will... | 1,390 | C++ | .h | 41 | 31.512195 | 84 | 0.773204 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,141 | EthashAux.h | ethereum-mining_ethminer/libethcore/EthashAux.h | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... | 2,114 | C++ | .h | 65 | 29.030769 | 96 | 0.679961 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,142 | CUDAMiner.h | ethereum-mining_ethminer/libethash-cuda/CUDAMiner.h | /*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed in the hope that it will... | 1,844 | C++ | .h | 50 | 33.86 | 98 | 0.755781 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,143 | ethash_cuda_miner_kernel_globals.h | ethereum-mining_ethminer/libethash-cuda/ethash_cuda_miner_kernel_globals.h | #pragma once
__constant__ uint32_t d_dag_size;
__constant__ hash128_t* d_dag;
__constant__ uint32_t d_light_size;
__constant__ hash64_t* d_light;
__constant__ hash32_t d_header;
__constant__ uint64_t d_target;
#if (__CUDACC_VER_MAJOR__ > 8)
#define SHFL(x, y, z) __shfl_sync(0xFFFFFFFF, (x), (y), (z))
#else
#define SH... | 448 | C++ | .h | 17 | 25.176471 | 60 | 0.630841 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,144 | cuda_helper.h | ethereum-mining_ethminer/libethash-cuda/cuda_helper.h | #pragma once
#include <cuda.h>
#include <cuda_runtime.h>
#define DEV_INLINE __device__ __forceinline__
#ifdef __INTELLISENSE__
/* reduce vstudio warnings (__byteperm, blockIdx...) */
#include <device_functions.h>
#include <device_launch_parameters.h>
#define __launch_bounds__(max_tpb, min_blocks)
#define asm("a" : ... | 26,050 | C++ | .h | 899 | 24.300334 | 100 | 0.514026 | ethereum-mining/ethminer | 5,969 | 2,283 | 327 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,146 | scintillahexeditview.cpp | cxasm_notepad--/src/scintillahexeditview.cpp | #include "scintillahexeditview.h"
#include "styleset.h"
#include "ccnotepad.h"
#include <stdexcept>
#include <QMimeData>
#include <QScrollBar>
bool ScintillaHexEditView::_SciInit = false;
#define DEFAULT_FONT_NAME "Courier New"
const int STYLE_COLOR_SELECT = 1;
ScintillaHexEditView::ScintillaHexEditVie... | 3,127 | C++ | .cpp | 105 | 25.742857 | 123 | 0.728562 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,147 | optionsview.cpp | cxasm_notepad--/src/optionsview.cpp | #include "optionsview.h"
#include "doctypelistview.h"
#include "texteditsetwin.h"
#include "ccnotepad.h"
OptionsView::OptionsView(QWidget* pNotepadWin, QWidget *parent)
: QWidget(parent), m_pNotepadWin(pNotepadWin)
{
ui.setupUi(this);
//只在文件对比中出现;在编辑框模式下不出现,这个关联文件容易误解。
if (pNotepadWin == nullptr)
{
... | 1,337 | C++ | .cpp | 39 | 29.179487 | 104 | 0.759367 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,148 | nddsetting.cpp | cxasm_notepad--/src/nddsetting.cpp | #include "nddsetting.h"
#include <QObject>
#include <QtDebug>
#include <QCoreApplication>
#include <QDate>
#include <QFile>
#include <QStorageInfo>
#include <QSettings>
static short version_num = 29; //1.22.0 是29
//配置文件是否存在。如果初始化失败,则不存在
bool NddSetting::s_isExistDb = false;
int NddSetting::s_reference = 0;... | 9,300 | C++ | .cpp | 309 | 21.313916 | 89 | 0.698154 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,149 | CmpareMode.cpp | cxasm_notepad--/src/CmpareMode.cpp | #include "CmpareMode.h"
#include "Encode.h"
#include "rcglobal.h"
#include <QFile>
#include <QFileDevice>
#include <QVector>
#include <QCryptographicHash>
#include <functional>
#include <QDataStream>
#include <QtConcurrent>
CmpareMode::CmpareMode()
{
}
CmpareMode::~CmpareMode()
{
}
//识... | 32,065 | C++ | .cpp | 966 | 21.949275 | 200 | 0.648284 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,150 | textfind.cpp | cxasm_notepad--/src/textfind.cpp | #include "textfind.h"
TextFind::TextFind(int dire, QWidget *parent): QWidget(parent)
{
ui.setupUi(this);
}
TextFind::~TextFind()
{
}
void TextFind::slot_findPrev()
{
QString text = ui.textLineEdit->text();
text = text.trimmed();
emit signFindFile(0, text);
}
void TextFind::slot_findNex... | 431 | C++ | .cpp | 20 | 18.25 | 63 | 0.695652 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,151 | hexfilegoto.cpp | cxasm_notepad--/src/hexfilegoto.cpp | #include "hexfilegoto.h"
HexFileGoto::HexFileGoto(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
connect(ui.lineEditDecAddr, &QLineEdit::textChanged, this, &HexFileGoto::slot_showDecInfo);
connect(ui.lineEditHexAddr, &QLineEdit::textChanged, this, &HexFileGoto::slot_showHexInfo);
}
HexFileGoto... | 1,574 | C++ | .cpp | 62 | 22.096774 | 109 | 0.679677 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,152 | statuswidget.cpp | cxasm_notepad--/src/statuswidget.cpp | #include "statuswidget.h"
StatusWidget::StatusWidget(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
}
StatusWidget::~StatusWidget()
{
}
void StatusWidget::setTipMsg(QString msg)
{
ui.msgLable->setText(msg);
}
| 244 | C++ | .cpp | 13 | 15.692308 | 44 | 0.736364 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,153 | progresswin.cpp | cxasm_notepad--/src/progresswin.cpp | #include "progresswin.h"
#include <QCoreApplication>
#include <QMessageBox>
ProgressWin::ProgressWin(QWidget *parent)
: QDialog(parent), m_curStep(0),m_isCancel(false)
{
ui.setupUi(this);
}
ProgressWin::~ProgressWin()
{
}
void ProgressWin::info(QString text)
{
ui.output->append(text);
}
void... | 1,298 | C++ | .cpp | 64 | 17.34375 | 99 | 0.710723 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,154 | MediatorFileTree.cpp | cxasm_notepad--/src/MediatorFileTree.cpp | #include "MediatorFileTree.h"
/* 文件夹对比界面的中介者,使用中介者是为了让消息经过中介对象统一调度,避免左右互相依赖导致交互混乱
*/
MediatorFileTree::MediatorFileTree() :QObject(nullptr)
{
}
MediatorFileTree::~MediatorFileTree()
{
}
void MediatorFileTree::setLeftScrollValue(int value)
{
m_leftScrollValue = value;
//如果左右不相等,则推动对方去同步
if ... | 1,220 | C++ | .cpp | 43 | 21.069767 | 68 | 0.779503 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,155 | dirfindfile.cpp | cxasm_notepad--/src/dirfindfile.cpp | #include "dirfindfile.h"
DirFindFile::DirFindFile(int dire, QWidget *parent): QWidget(parent)
{
ui.setupUi(this);
if (dire == 0)
{
ui.findLeftRadioButton->setChecked(true);
}
else if (dire == 1)
{
ui.findRightRadioButton->setChecked(true);
}
}
DirFindFile::~DirFindFile()
{
}
void Di... | 862 | C++ | .cpp | 32 | 23.4375 | 69 | 0.702366 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,156 | renamewin.cpp | cxasm_notepad--/src/renamewin.cpp | #include "renamewin.h"
#include "progresswin.h"
#include <QFileDialog>
#include <QRadioButton>
#include <QMessageBox>
#include <QInputDialog>
//批量修改文件夹下文件名称的功能
ReNameWin::ReNameWin(QWidget *parent)
: QWidget(parent), m_extComBoxNum(0)
{
ui.setupUi(this);
connect(ui.radioButtonAddPrefix, &QRadioBu... | 11,868 | C++ | .cpp | 374 | 25.938503 | 146 | 0.673416 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,157 | draglineedit.cpp | cxasm_notepad--/src/draglineedit.cpp | #include "draglineedit.h"
DragLineEdit::DragLineEdit(QWidget *parent)
: QLineEdit(parent)
{
setAcceptDrops(true);
}
DragLineEdit::~DragLineEdit()
{
}
void DragLineEdit::dragEnterEvent(QDragEnterEvent* event)
{
if (event->mimeData()->hasFormat("text/uri-list")) //只能打开文本文件
{
event->accept(); //可以... | 817 | C++ | .cpp | 41 | 16.121951 | 63 | 0.687158 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,158 | closeDlg.cpp | cxasm_notepad--/src/closeDlg.cpp | #include "closeDlg.h"
closeDlg::closeDlg(QWidget *parent): QDialog(parent)
{
ui.setupUi(this);
}
closeDlg::~closeDlg()
{
}
void closeDlg::save()
{
if (ui.leftBox->isChecked() && ui.rightBox->isChecked())
{
done(3);
}
else if (ui.leftBox->isChecked())
{
done(1);
}
else if (ui.rightBox... | 478 | C++ | .cpp | 35 | 10.685714 | 58 | 0.607889 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,159 | dectfilechanges.cpp | cxasm_notepad--/src/dectfilechanges.cpp | #include "dectfilechanges.h"
#ifdef WIN32
DectFileChanges::DectFileChanges():m_lastFileSize(0), m_curFileSize(0)
{
_szFile = NULL;
_dwNotifyFilter = 0;
}
DectFileChanges::~DectFileChanges()
{
}
BOOL DectFileChanges::DetectChanges() {
WIN32_FILE_ATTRIBUTE_DATA fInfo;
BOOL rValue = FALSE;
::GetFileAttributesE... | 1,588 | C++ | .cpp | 55 | 26.909091 | 233 | 0.777704 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,160 | RcTreeWidget.cpp | cxasm_notepad--/src/RcTreeWidget.cpp | #include "RcTreeWidget.h"
#include "MediatorFileTree.h"
#include <QScrollBar>
#include <QMenu>
#include <QProcess>
RcTreeWidget::RcTreeWidget(QWidget *parent):QTreeWidget(parent), m_userAddMenu(nullptr)
{
connect(this->verticalScrollBar(), &QScrollBar::valueChanged, this, &RcTreeWidget::slot_scrollValueCh... | 3,632 | C++ | .cpp | 124 | 22.451613 | 125 | 0.71241 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,161 | shortcutkeymgr.cpp | cxasm_notepad--/src/shortcutkeymgr.cpp | #include "shortcutkeymgr.h"
#include "shortcutkeyeditwin.h"
#include "ccnotepad.h"
#include <QTableWidgetItem>
#include <QSettings>
#include <Qsci/qscicommandset.h>
#include <Qsci/qsciscintilla.h>
#include <QDebug>
QMap<QString, int>* ShortcutKeyMgr::s_shortcutKeysMap = nullptr;
struct ShortcutKeySt {
... | 12,542 | C++ | .cpp | 320 | 34.128125 | 139 | 0.682593 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,162 | gotolinewin.cpp | cxasm_notepad--/src/gotolinewin.cpp | #include "gotolinewin.h"
GoToLineWin::GoToLineWin(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
}
GoToLineWin::~GoToLineWin()
{
}
void GoToLineWin::slot_ok()
{
bool ok;
int lineNums = ui.lineEditNum->text().toInt(&ok);
if (ok && lineNums>=1)
{
int dire = (ui.radioButton->isChecked(... | 393 | C++ | .cpp | 20 | 16.7 | 52 | 0.659401 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,163 | rcglobal.cpp | cxasm_notepad--/src/rcglobal.cpp | #include "rcglobal.h"
#include <QSettings>
#include <QFileInfo>
#include <QDir>
#include <QProcess>
QString s_userLangDirPath;
QString getUserLangDirPath()
{
if (s_userLangDirPath.isEmpty())
{
QString settingDir = QString("notepad/userlang/test");
QSettings qs(QSettings::IniFormat, QSettings::UserS... | 1,743 | C++ | .cpp | 69 | 20.782609 | 72 | 0.661538 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,164 | main.cpp | cxasm_notepad--/src/main.cpp | #include "ccnotepad.h"
#include "nddsetting.h"
#include "styleset.h"
#include <QtWidgets/QApplication>
#include <QTextCodec>
#include <QMessageBox>
#include <QSharedMemory>
#include <QFile>
#include <QStatusBar>
#include <qobject.h>
#include <QThread>
#include <QDir>
#ifdef Q_OS_UNIX
#include <QStyle... | 13,468 | C++ | .cpp | 408 | 22.568627 | 112 | 0.633424 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,165 | userlexdef.cpp | cxasm_notepad--/src/userlexdef.cpp | #include "userlexdef.h"
#include "rcglobal.h"
#include <QSettings>
UserLexDef::UserLexDef(QObject *parent):QObject(parent)
{
}
UserLexDef::~UserLexDef()
{
}
//自己定义一套读取和保存配置的接口
bool UserLexDef::readUserSettings(QString langTagName)
{
//自定义语言格式。
//mz:ndd
//name:xxx
//mother:xxx none/cpp/htm... | 2,170 | C++ | .cpp | 93 | 19.387097 | 73 | 0.698477 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,166 | qscidisplaywindow.cpp | cxasm_notepad--/src/qscidisplaywindow.cpp | #include "qscidisplaywindow.h"
#include "MediatorDisplay.h"
#include "textfind.h"
#include "common.h"
#include "styleset.h"
#include "rcglobal.h"
#include <QScrollBar>
#include <QFileInfo>
#include <QProcess>
#include <QMessageBox>
#include <stdexcept>
#include <SciLexer.h>
QsciDisplayWindow::QsciDispla... | 14,302 | C++ | .cpp | 422 | 28.793839 | 169 | 0.727197 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,167 | common.cpp | cxasm_notepad--/src/common.cpp | #include "common.h"
int nbDigitsFromNbLines(size_t nbLines)
{
int nbDigits = 0; // minimum number of digit should be 4
if (nbLines < 10) nbDigits = 1;
else if (nbLines < 100) nbDigits = 2;
else if (nbLines < 1000) nbDigits = 3;
else if (nbLines < 10000) nbDigits = 4;
else if (nbLines < 100000) nbDigit... | 526 | C++ | .cpp | 22 | 20.5 | 58 | 0.645291 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,168 | styleset.cpp | cxasm_notepad--/src/styleset.cpp | #include "styleset.h"
#include "ccnotepad.h"
#include <QFile>
#include <QPalette>
#include <QApplication>
#include <QDebug>
#include <Qsci/qscilexerglobal.h>
QColor StyleSet::foldfgColor(0xe9, 0xe9, 0xe9, 100);
QColor StyleSet::foldbgColor(0xff, 0xff, 0xff);
QColor StyleSet::marginsBackgroundColor(0xf0f0f0... | 10,391 | C++ | .cpp | 342 | 26.692982 | 123 | 0.718852 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,169 | findwin.cpp | cxasm_notepad--/src/findwin.cpp | #include "findwin.h"
#include "scintillaeditview.h"
#include "ccnotepad.h"
#include "progresswin.h"
#include "doctypelistview.h"
#include "filemanager.h"
#include "ccnotepad.h"
#include "nddsetting.h"
#include <QMimeDatabase>
#include <QRadioButton>
#include <QMessageBox>
#include <QFileDialog>
#include <... | 78,960 | C++ | .cpp | 2,638 | 23.279757 | 337 | 0.684123 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,170 | ndstyleditemdelegate.cpp | cxasm_notepad--/src/ndstyleditemdelegate.cpp | #include "ndstyleditemdelegate.h"
#include <QTextDocument>
#include <QApplication>
#include <QAbstractTextDocumentLayout>
#include <QPainter>
#include <QTextEdit>
NdStyledItemDelegate::NdStyledItemDelegate(QObject *parent)
: QStyledItemDelegate(parent), m_defaultFontSize(14)
{
}
NdStyledItemDelegate::~Nd... | 1,696 | C++ | .cpp | 46 | 32.456522 | 123 | 0.78244 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,171 | findresultwin.cpp | cxasm_notepad--/src/findresultwin.cpp | #include "findresultwin.h"
#include "findwin.h"
#include "common.h"
#include "styleset.h"
#include "nddsetting.h"
#include "findresultview.h"
#include <qsciscintilla.h>
#include <Scintilla.h>
//#include <QTreeWidgetItem>
//#include <QStyleFactory>
//#include <QToolButton>
//#include <qtreeview.h>
//#inc... | 14,066 | C++ | .cpp | 414 | 28.623188 | 177 | 0.685402 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,172 | findresultview.cpp | cxasm_notepad--/src/findresultview.cpp | #include "findresultview.h"
#include "styleset.h"
#include "findresultwin.h"
#include "ctipwin.h"
#include "Scintilla.h"
#include <QClipboard>
const int MARGE_FOLDER = 1;
const int STYLE_COLOUR_TITLE = 1;
const int STYLE_COLOUR_DEST_FILE = 2;
const int STYLE_COLOUR_KEYWORD_HIGH = 3;
const int STYLE_COLO... | 8,847 | C++ | .cpp | 224 | 35.120536 | 116 | 0.739063 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,173 | markdownview.cpp | cxasm_notepad--/src/markdownview.cpp | #include "markdownview.h"
MarkdownView::MarkdownView(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
}
MarkdownView::~MarkdownView()
{
}
void MarkdownView::viewMarkdown(QString& text)
{
ui.textEdit->setMarkdown(text);
} | 255 | C++ | .cpp | 13 | 16.769231 | 47 | 0.751073 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,174 | aboutndd.cpp | cxasm_notepad--/src/aboutndd.cpp | #include "aboutndd.h"
AboutNdd::AboutNdd(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
ui.label->setOpenExternalLinks(true);
// 隐藏最大化、最小化按钮
setWindowFlags(windowFlags() & ~Qt::WindowMinMaxButtonsHint);
connect(ui.aboutPushButton, &QPushButton::clicked, this, &AboutNdd::onButtonOkayClicked);
... | 520 | C++ | .cpp | 20 | 22 | 91 | 0.75 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,175 | md5hash.cpp | cxasm_notepad--/src/md5hash.cpp | #include "md5hash.h"
#include "ccnotepad.h"
#include "ctipwin.h"
#include <QCryptographicHash>
#include <QFile>
#include <QFileDialog>
#include <QClipboard>
Md5hash::Md5hash(QWidget *parent)
: QWidget(parent), m_isFile(false)
{
ui.setupUi(this);
m_btGroup.addButton(ui.md4RadioBt, 0);
m_btGroup.... | 3,319 | C++ | .cpp | 131 | 21.320611 | 107 | 0.672756 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,176 | hexcmprangewin.cpp | cxasm_notepad--/src/hexcmprangewin.cpp | #include "hexcmprangewin.h"
#include <QLineEdit>
#include <QMessageBox>
HexCmpRangeWin::HexCmpRangeWin(QWidget *parent)
: QDialog(parent), m_isCancel(true)
{
ui.setupUi(this);
connect(ui.leftStartPos, &QLineEdit::textChanged, this, &HexCmpRangeWin::slot_asyncStartPos);
connect(ui.leftCmpLens, &QLineEd... | 1,767 | C++ | .cpp | 63 | 23.936508 | 131 | 0.709259 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,177 | QTreeWidgetSortItem.cpp | cxasm_notepad--/src/QTreeWidgetSortItem.cpp | #include "QTreeWidgetSortItem.h"
#include "rcglobal.h"
/* 自己重新实现一个QTreeWidgetSortItem,主要是为了重载函数的排序功能,不适应默认的名字排序,而是使用
* 每个项自带的tip字符串排序。这样做是因为对齐的时候,有些空白对齐项目,并没有名称,就会导致无法排序
*/
int QTreeWidgetSortItem::s_sortType = 0;
bool QTreeWidgetSortItem::s_syncOrder = false;
QTreeWidgetSortItem::QTreeWidgetSortItem(int t... | 3,557 | C++ | .cpp | 115 | 23.504348 | 110 | 0.618905 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,178 | pluginmgr.cpp | cxasm_notepad--/src/pluginmgr.cpp | #include "pluginmgr.h"
#include "rcglobal.h"
PluginMgr::PluginMgr(QWidget *parent, QList<NDD_PROC_DATA>& pluginList)
: QMainWindow(parent)
{
ui.setupUi(this);
ui.pluginTable->horizontalHeader()->setStretchLastSection(true);
ui.pluginTable->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Resiz... | 1,364 | C++ | .cpp | 35 | 35.457143 | 93 | 0.745789 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,179 | columnedit.cpp | cxasm_notepad--/src/columnedit.cpp | #include "columnedit.h"
#include "scintillaeditview.h"
ColumnEdit::ColumnEdit(QWidget *parent)
: QWidget(parent), m_curEditWin(nullptr), m_editTabWidget(nullptr)
{
ui.setupUi(this);
connect(ui.addPrefix, &QCheckBox::stateChanged, this, &ColumnEdit::slot_addPrefix);
connect(ui.is16, &QRadioButton::clicked... | 5,754 | C++ | .cpp | 226 | 20.995575 | 99 | 0.66957 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,180 | hexrulewin.cpp | cxasm_notepad--/src/hexrulewin.cpp | #include "hexrulewin.h"
HexRuleWin::HexRuleWin(int mode, int highlight, QWidget *parent): QWidget(parent), m_mode(mode), m_isHighlightBackgroud(highlight)
{
ui.setupUi(this);
if (mode == 0)
{
ui.maxLcsMode->setChecked(true);
}
else
{
ui.byteCmpMode->setChecked(true);
}
ui.hightlightBack->s... | 760 | C++ | .cpp | 29 | 22.827586 | 131 | 0.683916 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,181 | langextset.cpp | cxasm_notepad--/src/langextset.cpp | #include "langextset.h"
#include "scintillaeditview.h"
#include "extlexermanager.h"
#include "ccnotepad.h"
#include <qtablewidget.h>
#include <QHeaderView>
#include <QSettings>
#include <QMessageBox>
int ITEM_CHANGED = Qt::UserRole;
int ITEM_LEX_ID = Qt::UserRole + 1; //对应的语法lexer的 ID
int ITEM_LEX_EXT_OL... | 5,972 | C++ | .cpp | 185 | 27.372973 | 194 | 0.688749 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,182 | extLexermanager.cpp | cxasm_notepad--/src/extLexermanager.cpp | #include "extlexermanager.h"
//专门用来管理用户自定义的Ext 和 词法Lexer关联的类。
//给出一个文件的ext后缀,快速告知该使用什么lexer进行语法高亮
ExtLexerManager* ExtLexerManager::s_instance = nullptr;
ExtLexerManager::ExtLexerManager()
{
}
ExtLexerManager * ExtLexerManager::getInstance()
{
if (s_instance == nullptr)
{
s_instance = new ExtLexe... | 2,210 | C++ | .cpp | 79 | 22.987342 | 110 | 0.73582 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,183 | Encode.cpp | cxasm_notepad--/src/Encode.cpp | #include "Encode.h"
#include <QTextCodec>
#include <QtDebug>
/* 检查字符串编码的类。看了大量文献,结论如下:
*如果是UTF BOM格式,或者UNICODE格式,其文件头部前几个字节(2-3)有一定的标识。由此标识直接按对应编码处理。
*如果没有标识,默认就是UTF8(NO BOM) 与 ANSI(现在只考虑GBK)进行对比。
*此时需要做统计分析。对所有行进行UTF8解析,如果按照UTF8解析错位再按照GBK解析。如果解析出GBK那么大概率认为文件是GBK编码的。
*/
Encode::Encode()
{
}
Encode::~... | 8,452 | C++ | .cpp | 364 | 17.184066 | 96 | 0.651179 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,184 | findcmpwin.cpp | cxasm_notepad--/src/findcmpwin.cpp | #include "findcmpwin.h"
#include "qscidisplaywindow.h"
#include <QRadioButton>
#include <QMessageBox>
FindCmpWin::FindCmpWin(RC_DIRECTION dir, QWidget *parent):QMainWindow(parent), m_editWidget(nullptr), m_isFindFirst(true), m_findHistory(nullptr)
{
ui.setupUi(this);
m_BackwardDir = false;
m_matchWhole =... | 5,348 | C++ | .cpp | 203 | 21.674877 | 146 | 0.688467 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,185 | filelistview.cpp | cxasm_notepad--/src/filelistview.cpp | #include "filelistview.h"
#include "rcglobal.h"
#include "ccnotepad.h"
#include <QListWidgetItem>
#include <QMenu>
//当显示文件多了以后,把所有文件列在该列表中
FileListView::FileListView(QWidget *parent)
: QWidget(parent), m_pNotepad(nullptr)
{
ui.setupUi(this);
connect(ui.filelistWidget, &QListWidget::itemDoubleClicke... | 2,697 | C++ | .cpp | 92 | 24.673913 | 102 | 0.722804 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,186 | batchfindreplace.cpp | cxasm_notepad--/src/batchfindreplace.cpp | #include "batchfindreplace.h"
#include "scintillaeditview.h"
#include "ccnotepad.h"
#include "progresswin.h"
#include "nddsetting.h"
#include "ctipwin.h"
#include <QTableWidgetItem>
#include <QFileDialog>
BatchFindReplace::BatchFindReplace(QWidget *parent)
: QMainWindow(parent), m_curEditWin(nullptr), m_e... | 8,439 | C++ | .cpp | 291 | 24.676976 | 116 | 0.699797 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,187 | mytreeview.cpp | cxasm_notepad--/src/mytreeview.cpp | #include "mytreeview.h"
MyTreeView::MyTreeView(QWidget *parent)
: QTreeView(parent)
{}
MyTreeView::~MyTreeView()
{}
void MyTreeView::getSelectedIndexes(QModelIndexList & selectList)
{
selectList = this->selectedIndexes();
}
| 242 | C++ | .cpp | 10 | 21.4 | 66 | 0.761062 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,188 | donate.cpp | cxasm_notepad--/src/donate.cpp | #include "donate.h"
Donate::Donate(QWidget *parent): QWidget(parent)
{
ui.setupUi(this);
}
Donate::~Donate()
{
}
| 131 | C++ | .cpp | 8 | 13.125 | 49 | 0.675439 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,189 | ctipwin.cpp | cxasm_notepad--/src/ctipwin.cpp | #include "ctipwin.h"
#include <QTimer>
CTipWin::CTipWin(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
this->setWindowFlags(Qt::ToolTip);
QPalette palette(this->palette());
palette.setColor(QPalette::Window, QColor(0xfff29d));
this->setPalette(palette);
}
CTipWin::~CTipWin()
{
}
v... | 1,052 | C++ | .cpp | 48 | 18.479167 | 80 | 0.669057 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,190 | plugin.cpp | cxasm_notepad--/src/plugin.cpp | #include "plugin.h"
#include <QLibrary>
#include <QDir>
#include <QMenu>
#include <QAction>
bool loadApplication(const QString& strFileName, NDD_PROC_DATA* pProcData)
{
QLibrary lib(strFileName);
NDD_PROC_IDENTIFY_CALLBACK procCallBack;
procCallBack = (NDD_PROC_IDENTIFY_CALLBACK)lib.resolve("NDD_PROC_... | 1,311 | C++ | .cpp | 52 | 21.519231 | 114 | 0.699427 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,191 | bigfilemessage.cpp | cxasm_notepad--/src/bigfilemessage.cpp | #include "bigfilemessage.h"
#include "nddsetting.h"
BigFileMessage::BigFileMessage(QWidget *parent)
: QDialog(parent), m_result(-1)
{
ui.setupUi(this);
}
BigFileMessage::~BigFileMessage()
{}
void BigFileMessage::setDefOpenMode(NddDocType defMode)
{
switch (defMode)
{
case TXT_TYPE:
ui.textMod... | 1,198 | C++ | .cpp | 60 | 16.566667 | 56 | 0.690433 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,192 | filecmprulewin.cpp | cxasm_notepad--/src/filecmprulewin.cpp | #include "filecmprulewin.h"
FileCmpRuleWin::FileCmpRuleWin(int mode, bool blankMath, int equalRato,QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
if (mode == 0)
{
ui.radioButtonDefault->setChecked(true);
}
else if(mode == 1)
{
ui.radioButtonIgnoreBackWhite->setChecked(true);
}
else... | 1,270 | C++ | .cpp | 60 | 17.733333 | 88 | 0.683277 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,193 | shortcutkeyeditwin.cpp | cxasm_notepad--/src/shortcutkeyeditwin.cpp | #include "shortcutkeyeditwin.h"
#include <QMessageBox>
ShortcutKeyEditWin::ShortcutKeyEditWin(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
ui.keySequenceEdit->setFocus();
}
ShortcutKeyEditWin::~ShortcutKeyEditWin()
{}
void ShortcutKeyEditWin::setCurKeyDesc(QString desc)
{
ui.curKeylin... | 863 | C++ | .cpp | 39 | 18.692308 | 68 | 0.736641 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,194 | qtlangset.cpp | cxasm_notepad--/src/qtlangset.cpp | #include "qtlangset.h"
#include "scintillaeditview.h"
#include "nddsetting.h"
#include "rcglobal.h"
#include "ccnotepad.h"
#include "styleset.h"
#include "extlexermanager.h"
#include <SciLexer.h>
#include <qscilexer.h>
#include <QSettings>
#include <QColorDialog>
#include <QMessageBox>
#include <QSpinBox... | 54,603 | C++ | .cpp | 1,709 | 23.844939 | 202 | 0.68366 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,195 | MediatorDisplay.cpp | cxasm_notepad--/src/MediatorDisplay.cpp | #include "MediatorDisplay.h"
//这里如果直接让左右互相同步,互相影响,可能导致混乱。需要一个中间调停者模式,作为中间人去控制同步消息
//中介者模式意图:用一个中介对象来封装一系列的对象交互,中介者使各对象不需要显式地相互引用,从而使其耦合松散,而且可以独立地改变它们之间的交互。
//主要解决:对象与对象之间存在大量的关联关系,这样势必会导致系统的结构变得很复杂,同时若一个对象发生改变,我们也需要跟踪与之相关联的对象,同时做出相应的处理。
//之前不使用该模式时,左右显示同步互相交互,时而发生消息混乱
MediatorDisplay::MediatorDisplay():QObje... | 2,737 | C++ | .cpp | 101 | 18.633663 | 81 | 0.751462 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,196 | doctypelistview.cpp | cxasm_notepad--/src/doctypelistview.cpp | #include "doctypelistview.h"
#include <QInputDialog>
#include <QLineEdit>
#include <QtDebug>
#include <QThread>
#include "nddsetting.h"
//已知的文档类型
QMap<QString, bool>* DocTypeListView::s_supportFileExts = nullptr;
QStringList DocTypeListView::s_supportFileExt = (QStringList ()<< "common" << "ms int/inf" ... | 10,317 | C++ | .cpp | 283 | 30.971731 | 186 | 0.630235 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,197 | scintillaeditview.cpp | cxasm_notepad--/src/scintillaeditview.cpp | #include "scintillaeditview.h"
#include "common.h"
#include "rgba_icons.h"
#include "ccnotepad.h"
#include "styleset.h"
#include "qtlangset.h"
#include "findwin.h"
#include "filemanager.h"
#include "shortcutkeymgr.h"
#include "markdownview.h"
#include <Scintilla.h>
#include <SciLexer.h>
#include <QImage... | 124,365 | C++ | .cpp | 3,703 | 28.608966 | 237 | 0.690434 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,198 | langstyledefine.cpp | cxasm_notepad--/src/langstyledefine.cpp | #include "langstyledefine.h"
#include "userlexdef.h"
#include "extlexermanager.h"
#include <QInputDialog>
#include <QMessageBox>
#include <QSettings>
#include <QFileInfo>
#include <QDir>
#include <QDebug>
QString LangStyleDefine::s_userLangDirPath = "";
LangStyleDefine::LangStyleDefine(QWidget *pare... | 7,055 | C++ | .cpp | 189 | 30.550265 | 137 | 0.716336 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,199 | encodeconvert.cpp | cxasm_notepad--/src/encodeconvert.cpp | #include "encodeconvert.h"
#include "rcglobal.h"
#include "CmpareMode.h"
#include "doctypelistview.h"
#include <QFileDialog>
#include <QTreeWidgetItem>
#include <QDateTime>
#include <QFutureWatcher>
#include <QString>
#include <QtConcurrent>
#include <QInputDialog>
#include <QDragEnterEvent>
const int... | 18,308 | C++ | .cpp | 554 | 26.243682 | 170 | 0.701011 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,200 | nddpluginapi.cpp | cxasm_notepad--/src/nddpluginapi.cpp | #include "nddpluginapi.h"
#include "ccnotepad.h"
NddPluginApi::NddPluginApi(QObject *parent)
: QObject(parent)
{}
NddPluginApi::~NddPluginApi()
{}
void NddPluginApi::setMainNotePad(QWidget * pWidget)
{
m_mainNotePad = pWidget;
}
//注意这里实际返回的是ScintillaEditView
QsciScintilla* NddPluginApi::getCurrent... | 506 | C++ | .cpp | 21 | 20.809524 | 64 | 0.755889 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,201 | texteditsetwin.cpp | cxasm_notepad--/src/texteditsetwin.cpp | #include "texteditsetwin.h"
#include "scintillaeditview.h"
#include "ccnotepad.h"
#include "qtlangset.h"
#include "nddsetting.h"
#include <QFontDialog>
#include <QColorDialog>
TextEditSetWin::TextEditSetWin(QWidget *parent)
: QWidget(parent), m_notepadWin(nullptr)
{
ui.setupUi(this);
if (ScintillaEdit... | 5,315 | C++ | .cpp | 172 | 25.27907 | 99 | 0.722791 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,202 | ccnotepad.cpp | cxasm_notepad--/src/cceditor/ccnotepad.cpp | #include <memory>
#include "ccnotepad.h"
#include "filemanager.h"
#include "Encode.h"
#include "findwin.h"
#include "nddsetting.h"
#include "findresultwin.h"
#include "scintillaeditview.h"
#include "scintillahexeditview.h"
#include "encodeconvert.h"
#include "optionsview.h"
#include "donate.h"
#include "ren... | 276,043 | C++ | .cpp | 8,355 | 26.89228 | 254 | 0.708692 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,203 | filemanager.cpp | cxasm_notepad--/src/cceditor/filemanager.cpp | #include "filemanager.h"
#include "scintillaeditview.h"
#include "scintillahexeditview.h"
#include "CmpareMode.h"
#include "ccnotepad.h"
#include "progresswin.h"
#include <QMessageBox>
#include <QFile>
#include <QtGlobal>
#include <qscilexer.h>
#include <QFileInfo>
LangType detectLanguage(QString& headCo... | 36,329 | C++ | .cpp | 1,221 | 21.379197 | 238 | 0.658457 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,204 | cfgtest_Qsci.cpp | cxasm_notepad--/src/qscint/Python/config-tests/cfgtest_Qsci.cpp | #include <QCoreApplication>
#include <QFile>
#include <QTextStream>
#include <Qsci/qsciglobal.h>
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
QFile outf(argv[1]);
if (!outf.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text))
return 1;
QTextStream out(&outf... | 423 | C++ | .cpp | 15 | 24.333333 | 77 | 0.680798 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
25,206 | UTF8DocumentIterator.cpp | cxasm_notepad--/src/qscint/scintilla/boostregex/UTF8DocumentIterator.cpp | // This file is part of Notepad-- project
// Copyright (C) 2023 Notepad-- authors.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// at your option... | 4,172 | C++ | .cpp | 150 | 24.126667 | 109 | 0.666248 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | true | false |
25,229 | LexTXT.cpp | cxasm_notepad--/src/qscint/scintilla/lexers/LexTXT.cpp | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <ctype.h>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include "ILexer.h"
#include "Scintilla.h"
#include "SciLexer.h"
#include "StringCopy.h"
#include "WordList.h"
#include "LexAcc... | 8,561 | C++ | .cpp | 287 | 25.480836 | 124 | 0.704683 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,359 | qscilexergo.cpp | cxasm_notepad--/src/qscint/src/qscilexergo.cpp | // This module implements the QsciLexerGO class.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appea... | 3,101 | C++ | .cpp | 95 | 30.042105 | 79 | 0.743702 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,363 | qscilexerr.cpp | cxasm_notepad--/src/qscint/src/qscilexerr.cpp |
#include "Qsci/qscilexerr.h"
#include <qcolor.h>
#include <qfont.h>
#include <qsettings.h>
// The ctor.
QsciLexerR::QsciLexerR(QObject* parent)
: QsciLexer(parent)
{
m_commentSymbol = "#";
m_commentStart = "\"";
m_commentEnd = "\"";
}
// The dtor.
QsciLexerR::~QsciLexerR()
{
}
// Returns the lan... | 9,406 | C++ | .cpp | 190 | 43.021053 | 190 | 0.726579 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
25,364 | qscilexerrust.cpp | cxasm_notepad--/src/qscint/src/qscilexerrust.cpp | #include "Qsci/qscilexerrust.h"
#include "Qsci/qsciscintillabase.h"
#include <qcolor.h>
#include <qfont.h>
#include <qsettings.h>
QsciLexerRust::QsciLexerRust(QObject *parent)
: QsciLexer(parent)
{
m_commentSymbol = "//";
m_commentStart = "/*";
m_commentEnd = "*/";
}
QsciLexerRust::~QsciLexerRust()
... | 2,897 | C++ | .cpp | 126 | 19.904762 | 62 | 0.719752 | cxasm/notepad-- | 5,942 | 234 | 284 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.