Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringclasses
28 values
pr_number
int64
8
3.71k
pr_title
stringlengths
3
107
pr_description
stringlengths
0
60.1k
author
stringlengths
4
19
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
5
60.1k
filepath
stringlengths
7
167
before_content
stringlengths
0
103M
after_content
stringlengths
0
103M
label
int64
-1
1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./docs/recording.md
# Recording Appender This appender stores the log events in memory. It is mainly useful for testing (see the tests for the category filter, for instance). ## Configuration - `type` - `recording` There is no other configuration for this appender. ## Usage The array that stores log events is shared across all recor...
# Recording Appender This appender stores the log events in memory. It is mainly useful for testing (see the tests for the category filter, for instance). ## Configuration - `type` - `recording` - `maxLength` - `integer` (optional, defaults to undefined) - the maximum array length for the recording. If not specified...
1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/appenders/recording.js
const debug = require('debug')('log4js:recording'); const recordedEvents = []; function configure() { return function (logEvent) { debug( `received logEvent, number of events now ${recordedEvents.length + 1}` ); debug('log event was ', logEvent); recordedEvents.push(logEvent); }; } function...
const debug = require('debug')('log4js:recording'); const recordedEvents = []; function configure(config) { return function (logEvent) { debug( `received logEvent, number of events now ${recordedEvents.length + 1}` ); debug('log event was ', logEvent); if (config.maxLength && recordedEvents.le...
1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/tap/recordingAppender-test.js
const { test } = require('tap'); const log4js = require('../../lib/log4js'); test('recording appender', (t) => { log4js.configure({ appenders: { rec: { type: 'recording' } }, categories: { default: { appenders: ['rec'], level: 'debug' } }, }); const logger = log4js.getLogger(); logger.level = 'debug';...
const { test } = require('tap'); const log4js = require('../../lib/log4js'); test('recording appender', (batch) => { batch.test('should store logs in memory until cleared', (t) => { log4js.configure({ appenders: { rec: { type: 'recording' } }, categories: { default: { appenders: ['rec'], level: 'debu...
1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/tap/configuration-validation-test.js
const { test } = require('tap'); const util = require('util'); const path = require('path'); const sandbox = require('@log4js-node/sandboxed-module'); const debug = require('debug')('log4js:test.configuration-validation'); const deepFreeze = require('deep-freeze'); const fs = require('fs'); const log4js = require('../....
const { test } = require('tap'); const util = require('util'); const path = require('path'); const sandbox = require('@log4js-node/sandboxed-module'); const debug = require('debug')('log4js:test.configuration-validation'); const deepFreeze = require('deep-freeze'); const fs = require('fs'); const log4js = require('../....
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./examples/example.js
'use strict'; const log4js = require('../lib/log4js'); // log the cheese logger messages to a file, and the console ones as well. log4js.configure({ appenders: { cheeseLogs: { type: 'file', filename: 'cheese.log' }, console: { type: 'console' }, }, categories: { cheese: { appenders: ['cheeseLogs'], l...
'use strict'; const log4js = require('../lib/log4js'); // log the cheese logger messages to a file, and the console ones as well. log4js.configure({ appenders: { cheeseLogs: { type: 'file', filename: 'cheese.log' }, console: { type: 'console' }, }, categories: { cheese: { appenders: ['cheeseLogs'], l...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/tap/multi-file-appender-test.js
const process = require('process'); const { test } = require('tap'); const debug = require('debug'); const fs = require('fs'); const sandbox = require('@log4js-node/sandboxed-module'); const log4js = require('../../lib/log4js'); const osDelay = process.platform === 'win32' ? 400 : 200; const removeFiles = async (file...
const process = require('process'); const { test } = require('tap'); const debug = require('debug'); const fs = require('fs'); const sandbox = require('@log4js-node/sandboxed-module'); const log4js = require('../../lib/log4js'); const osDelay = process.platform === 'win32' ? 400 : 200; const removeFiles = async (file...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/levels.js
const configuration = require('./configuration'); const validColours = [ 'white', 'grey', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow', ]; class Level { constructor(level, levelStr, colour) { this.level = level; this.levelStr = levelStr; this.colour = colour; } toS...
const configuration = require('./configuration'); const validColours = [ 'white', 'grey', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow', ]; class Level { constructor(level, levelStr, colour) { this.level = level; this.levelStr = levelStr; this.colour = colour; } toS...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./examples/logstashHTTP.js
const log4js = require('../lib/log4js'); log4js.configure({ appenders: { console: { type: 'console', }, logstash: { url: 'http://172.17.0.5:9200/_bulk', type: '@log4js-node/logstash-http', logType: 'application', logChannel: 'node', application: 'logstash-log4js', ...
const log4js = require('../lib/log4js'); log4js.configure({ appenders: { console: { type: 'console', }, logstash: { url: 'http://172.17.0.5:9200/_bulk', type: '@log4js-node/logstash-http', logType: 'application', logChannel: 'node', application: 'logstash-log4js', ...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./examples/smtp-appender.js
// Note that smtp appender needs nodemailer to work. // If you haven't got nodemailer installed, you'll get cryptic // "cannot find module" errors when using the smtp appender const log4js = require('../lib/log4js'); log4js.configure({ appenders: { out: { type: 'console', }, mail: { type: '@l...
// Note that smtp appender needs nodemailer to work. // If you haven't got nodemailer installed, you'll get cryptic // "cannot find module" errors when using the smtp appender const log4js = require('../lib/log4js'); log4js.configure({ appenders: { out: { type: 'console', }, mail: { type: '@l...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./docs/appenders.md
# Log4js - Appenders Appenders serialise log events to some form of output. They can write to files, send emails, send data over the network. All appenders have a `type` which determines which appender gets used. For example: ```javascript const log4js = require("log4js"); log4js.configure({ appenders: { out: {...
# Log4js - Appenders Appenders serialise log events to some form of output. They can write to files, send emails, send data over the network. All appenders have a `type` which determines which appender gets used. For example: ```javascript const log4js = require("log4js"); log4js.configure({ appenders: { out: {...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/appenders/index.js
const path = require('path'); const debug = require('debug')('log4js:appenders'); const configuration = require('../configuration'); const clustering = require('../clustering'); const levels = require('../levels'); const layouts = require('../layouts'); const adapters = require('./adapters'); // pre-load the core appe...
const path = require('path'); const debug = require('debug')('log4js:appenders'); const configuration = require('../configuration'); const clustering = require('../clustering'); const levels = require('../levels'); const layouts = require('../layouts'); const adapters = require('./adapters'); // pre-load the core appe...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./examples/slack-appender.js
// Note that slack appender needs slack-node package to work. const log4js = require('../lib/log4js'); log4js.configure({ appenders: { slack: { type: '@log4js-node/slack', token: 'TOKEN', channel_id: '#CHANNEL', username: 'USERNAME', format: 'text', icon_url: 'ICON_URL', }...
// Note that slack appender needs slack-node package to work. const log4js = require('../lib/log4js'); log4js.configure({ appenders: { slack: { type: '@log4js-node/slack', token: 'TOKEN', channel_id: '#CHANNEL', username: 'USERNAME', format: 'text', icon_url: 'ICON_URL', }...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/appenders/logLevelFilter.js
function logLevelFilter(minLevelString, maxLevelString, appender, levels) { const minLevel = levels.getLevel(minLevelString); const maxLevel = levels.getLevel(maxLevelString, levels.FATAL); return (logEvent) => { const eventLevel = logEvent.level; if ( minLevel.isLessThanOrEqualTo(eventLevel) && ...
function logLevelFilter(minLevelString, maxLevelString, appender, levels) { const minLevel = levels.getLevel(minLevelString); const maxLevel = levels.getLevel(maxLevelString, levels.FATAL); return (logEvent) => { const eventLevel = logEvent.level; if ( minLevel.isLessThanOrEqualTo(eventLevel) && ...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/multiprocess-worker.js
if (process.argv.indexOf('start-multiprocess-worker') >= 0) { const log4js = require('../lib/log4js'); const port = parseInt(process.argv[process.argv.length - 1], 10); log4js.configure({ appenders: { multi: { type: 'multiprocess', mode: 'worker', loggerPort: port }, }, categories: { default: { ...
if (process.argv.indexOf('start-multiprocess-worker') >= 0) { const log4js = require('../lib/log4js'); const port = parseInt(process.argv[process.argv.length - 1], 10); log4js.configure({ appenders: { multi: { type: 'multiprocess', mode: 'worker', loggerPort: port }, }, categories: { default: { ...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/tap/connect-logger-test.js
/* eslint max-classes-per-file: ["error", 2] */ const { test } = require('tap'); const EE = require('events').EventEmitter; const levels = require('../../lib/levels'); class MockLogger { constructor() { this.level = levels.TRACE; this.messages = []; this.log = function (level, message) { this.mess...
/* eslint max-classes-per-file: ["error", 2] */ const { test } = require('tap'); const EE = require('events').EventEmitter; const levels = require('../../lib/levels'); class MockLogger { constructor() { this.level = levels.TRACE; this.messages = []; this.log = function (level, message) { this.mess...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./examples/logstashUDP.js
const log4js = require('../lib/log4js'); /* Sample logstash config: udp { codec => json port => 10001 queue_size => 2 workers => 2 type => myAppType } */ log4js.configure({ appenders: { console: { type: 'console', }, logstash: { host: '127.0.0.1', port: 10001,...
const log4js = require('../lib/log4js'); /* Sample logstash config: udp { codec => json port => 10001 queue_size => 2 workers => 2 type => myAppType } */ log4js.configure({ appenders: { console: { type: 'console', }, logstash: { host: '127.0.0.1', port: 10001,...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/tap/connect-context-test.js
/* eslint max-classes-per-file: ["error", 2] */ const { test } = require('tap'); const EE = require('events').EventEmitter; const levels = require('../../lib/levels'); class MockLogger { constructor() { this.level = levels.TRACE; this.context = {}; this.contexts = []; } log() { this.contexts.pu...
/* eslint max-classes-per-file: ["error", 2] */ const { test } = require('tap'); const EE = require('events').EventEmitter; const levels = require('../../lib/levels'); class MockLogger { constructor() { this.level = levels.TRACE; this.context = {}; this.contexts = []; } log() { this.contexts.pu...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/appenders/dateFile.js
const streams = require('streamroller'); const os = require('os'); const eol = os.EOL; function openTheStream(filename, pattern, options) { const stream = new streams.DateRollingFileStream(filename, pattern, options); stream.on('error', (err) => { // eslint-disable-next-line no-console console.error( ...
const streams = require('streamroller'); const os = require('os'); const eol = os.EOL; function openTheStream(filename, pattern, options) { const stream = new streams.DateRollingFileStream(filename, pattern, options); stream.on('error', (err) => { // eslint-disable-next-line no-console console.error( ...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./test/tap/no-cluster-test.js
const { test } = require('tap'); const proxyquire = require('proxyquire'); test('clustering is disabled if cluster is not present', (t) => { const log4js = proxyquire('../../lib/log4js', { cluster: null }); const recorder = require('../../lib/appenders/recording'); log4js.configure({ appenders: { vcr: { type...
const { test } = require('tap'); const proxyquire = require('proxyquire'); test('clustering is disabled if cluster is not present', (t) => { const log4js = proxyquire('../../lib/log4js', { cluster: null }); const recorder = require('../../lib/appenders/recording'); log4js.configure({ appenders: { vcr: { type...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/appenders/file.js
const debug = require('debug')('log4js:file'); const path = require('path'); const streams = require('streamroller'); const os = require('os'); const eol = os.EOL; let mainSighupListenerStarted = false; const sighupListeners = new Set(); function mainSighupHandler() { sighupListeners.forEach((app) => { app.sigh...
const debug = require('debug')('log4js:file'); const path = require('path'); const streams = require('streamroller'); const os = require('os'); const eol = os.EOL; let mainSighupListenerStarted = false; const sighupListeners = new Set(); function mainSighupHandler() { sighupListeners.forEach((app) => { app.sigh...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./commitlint.config.js
module.exports = { extends: ['@commitlint/config-conventional'] };
module.exports = { extends: ['@commitlint/config-conventional'] };
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./lib/appenders/console.js
// eslint-disable-next-line no-console const consoleLog = console.log.bind(console); function consoleAppender(layout, timezoneOffset) { return (loggingEvent) => { consoleLog(layout(loggingEvent, timezoneOffset)); }; } function configure(config, layouts) { let layout = layouts.colouredLayout; if (config.la...
// eslint-disable-next-line no-console const consoleLog = console.log.bind(console); function consoleAppender(layout, timezoneOffset) { return (loggingEvent) => { consoleLog(layout(loggingEvent, timezoneOffset)); }; } function configure(config, layouts) { let layout = layouts.colouredLayout; if (config.la...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./.git/description
Unnamed repository; edit this file 'description' to name the repository.
Unnamed repository; edit this file 'description' to name the repository.
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./docs/tcp.md
# TCP Appender The TCP appender sends log events to a master server over TCP sockets. It can be used as a simple way to centralise logging when you have multiple servers or processes. It uses the node.js core networking modules, and so does not require any extra dependencies. Remember to call `log4js.shutdown` when yo...
# TCP Appender The TCP appender sends log events to a master server over TCP sockets. It can be used as a simple way to centralise logging when you have multiple servers or processes. It uses the node.js core networking modules, and so does not require any extra dependencies. Remember to call `log4js.shutdown` when yo...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./examples/stacktrace.js
const log4js = require('../lib/log4js'); log4js.configure({ appenders: { 'console-appender': { type: 'console', layout: { type: 'pattern', pattern: '%[[%p]%] - %10.-100f{2} | %7.12l:%7.12o - %[%m%]', }, }, }, categories: { default: { appenders: ['console-append...
const log4js = require('../lib/log4js'); log4js.configure({ appenders: { 'console-appender': { type: 'console', layout: { type: 'pattern', pattern: '%[[%p]%] - %10.-100f{2} | %7.12l:%7.12o - %[%m%]', }, }, }, categories: { default: { appenders: ['console-append...
-1
log4js-node/log4js-node
1,386
add maxLength to recording - closes #1385
gabriel-cloud
2023-05-19T22:07:06
2023-06-07T01:27:16
26dcec62f9677dceba57de8cd717ff91447781c7
c5d71e9212ed374122dfd783d2518379d5beca13
add maxLength to recording - closes #1385.
./.git/hooks/prepare-commit-msg.sample
#!/bin/sh # # An example hook script to prepare the commit log message. # Called by "git commit" with the name of the file that has the # commit message, followed by the description of the commit # message's source. The hook's purpose is to edit the commit # message file. If the hook fails with a non-zero status, # t...
#!/bin/sh # # An example hook script to prepare the commit log message. # Called by "git commit" with the name of the file that has the # commit message, followed by the description of the commit # message's source. The hook's purpose is to edit the commit # message file. If the hook fails with a non-zero status, # t...
-1
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
20