repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/packages/package-with-uri-handler/index.js
spec/fixtures/packages/package-with-uri-handler/index.js
module.exports = { activate: () => null, deactivate: () => null, handleURI: () => null, }
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/packages/package-with-eval-time-api-calls/index.js
spec/fixtures/packages/package-with-eval-time-api-calls/index.js
atom.deserializers.add('MyDeserializer', function (state) { return {state: state, a: 'b'} }) exports.activate = function () {}
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/babel/babel-double-quotes.js
spec/fixtures/babel/babel-double-quotes.js
"use babel"; module.exports = v => v + 1
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/babel/babel-comment.js
spec/fixtures/babel/babel-comment.js
/** @babel */ module.exports = v => v + 1
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/babel/babel-single-quotes.js
spec/fixtures/babel/babel-single-quotes.js
'use babel'; module.exports = v => v + 1
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/babel/flow-comment.js
spec/fixtures/babel/flow-comment.js
/* @flow */ const f: Function = v => v + 1 module.exports = f
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/babel/invalid.js
spec/fixtures/babel/invalid.js
'use 6to6'; export default 42;
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/spec/fixtures/babel/flow-slash-comment.js
spec/fixtures/babel/flow-slash-comment.js
// @flow const f: Function = v => v + 1 module.exports = f
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/config.js
script/config.js
// This module exports paths, names, and other metadata that is referenced // throughout the build. 'use strict'; const path = require('path'); const spawnSync = require('./lib/spawn-sync'); const repositoryRootPath = path.resolve(__dirname, '..'); const apmRootPath = path.join(repositoryRootPath, 'apm'); const scri...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/redownload-electron-bins.js
script/redownload-electron-bins.js
const { spawn } = require('child_process'); const electronVersion = require('./config').appMetadata.electronVersion; if (process.env.ELECTRON_CUSTOM_VERSION !== electronVersion) { const electronEnv = process.env.ELECTRON_CUSTOM_VERSION; console.info( `env var ELECTRON_CUSTOM_VERSION is not set,\n` + `or...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/license-overrides.js
script/license-overrides.js
module.exports = { 'aws-sign@0.3.0': { repository: 'https://github.com/mikeal/aws-sign', license: 'MIT', source: 'index.js', sourceText: '/*!\n * knox - auth\n * Copyright(c) 2010 LearnBoost <dev@learnboost.com>\n * MIT Licensed\n */\n<content omitted>' }, 'bufferjs@2.0.0': { repository...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/vsts/get-release-version.js
script/vsts/get-release-version.js
const path = require('path'); const request = require('request-promise-native'); const repositoryRootPath = path.resolve(__dirname, '..', '..'); const appMetadata = require(path.join(repositoryRootPath, 'package.json')); const yargs = require('yargs'); const argv = yargs .usage('Usage: $0 [options]') .help('help'...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/vsts/upload-artifacts.js
script/vsts/upload-artifacts.js
'use strict'; const fs = require('fs'); const os = require('os'); const path = require('path'); const glob = require('glob'); const spawnSync = require('../lib/spawn-sync'); const publishRelease = require('publish-release'); const releaseNotes = require('./lib/release-notes'); const uploadToAzure = require('./lib/uplo...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/vsts/upload-crash-reports.js
script/vsts/upload-crash-reports.js
'use strict'; const glob = require('glob'); const uploadToAzure = require('./lib/upload-to-azure-blob'); const yargs = require('yargs'); const argv = yargs .usage('Usage: $0 [options]') .help('help') .describe( 'crash-report-path', 'The local path of a directory containing crash reports to upload' ) ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/vsts/lib/upload-linux-packages.js
script/vsts/lib/upload-linux-packages.js
const fs = require('fs'); const path = require('path'); const request = require('request-promise-native'); module.exports = async function(packageRepoName, apiToken, version, artifacts) { for (let artifact of artifacts) { let fileExt = path.extname(artifact); switch (fileExt) { case '.deb': awa...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/vsts/lib/release-notes.js
script/vsts/lib/release-notes.js
const semver = require('semver'); const octokit = require('@octokit/rest')(); const changelog = require('pr-changelog'); const childProcess = require('child_process'); module.exports.getRelease = async function(releaseVersion, githubToken) { if (githubToken) { octokit.authenticate({ type: 'token', to...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/vsts/lib/upload-to-azure-blob.js
script/vsts/lib/upload-to-azure-blob.js
'use strict'; const path = require('path'); const { BlobServiceClient } = require('@azure/storage-blob'); module.exports = function upload(connStr, directory, assets) { const blobServiceClient = BlobServiceClient.fromConnectionString(connStr); const containerName = 'atom-build'; const containerClient = blobServ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/update-server/run-server.js
script/update-server/run-server.js
require('colors'); const fs = require('fs'); const path = require('path'); const express = require('express'); const app = express(); const port = process.env.PORT || 3456; // Load the metadata for the local build of Atom const buildPath = path.resolve(__dirname, '..', '..', 'out'); const packageJsonPath = path.join...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/dependencies-fingerprint.js
script/lib/dependencies-fingerprint.js
const crypto = require('crypto'); const fs = require('fs'); const path = require('path'); const CONFIG = require('../config'); const FINGERPRINT_PATH = path.join( CONFIG.repositoryRootPath, 'node_modules', '.dependencies-fingerprint' ); module.exports = { write: function() { const fingerprint = this.compu...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/handle-tilde.js
script/lib/handle-tilde.js
'use strict'; const os = require('os'); const passwdUser = require('passwd-user'); const path = require('path'); module.exports = function(aPath) { if (!aPath.startsWith('~')) { return aPath; } const sepIndex = aPath.indexOf(path.sep); const user = sepIndex < 0 ? aPath.substring(1) : aPath.substring(1, s...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/read-files.js
script/lib/read-files.js
'use strict'; const fs = require('fs'); module.exports = function(paths) { return Promise.all(paths.map(readFile)); }; function readFile(path) { return new Promise((resolve, reject) => { fs.readFile(path, 'utf8', (error, content) => { if (error) { reject(error); } else { resolve({...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/install-application.js
script/lib/install-application.js
'use strict'; const fs = require('fs-extra'); const handleTilde = require('./handle-tilde'); const path = require('path'); const template = require('lodash.template'); const startCase = require('lodash.startcase'); const execSync = require('child_process').execSync; const CONFIG = require('../config'); function inst...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/generate-startup-snapshot.js
script/lib/generate-startup-snapshot.js
const childProcess = require('child_process'); const fs = require('fs'); const path = require('path'); const electronLink = require('electron-link'); const terser = require('terser'); const CONFIG = require('../config'); module.exports = function(packagedAppPath) { const snapshotScriptPath = path.join(CONFIG.buildOu...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/include-path-in-packaged-app.js
script/lib/include-path-in-packaged-app.js
'use strict'; const path = require('path'); const CONFIG = require('../config'); module.exports = function(filePath) { return ( !EXCLUDED_PATHS_REGEXP.test(filePath) || INCLUDED_PATHS_REGEXP.test(filePath) ); }; const EXCLUDE_REGEXPS_SOURCES = [ escapeRegExp('.DS_Store'), escapeRegExp('.jshintrc'), ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/clean-output-directory.js
script/lib/clean-output-directory.js
const fs = require('fs-extra'); const CONFIG = require('../config'); module.exports = function() { if (fs.existsSync(CONFIG.buildOutputPath)) { console.log(`Cleaning ${CONFIG.buildOutputPath}`); fs.removeSync(CONFIG.buildOutputPath); } };
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/kill-running-atom-instances.js
script/lib/kill-running-atom-instances.js
const childProcess = require('child_process'); const CONFIG = require('../config.js'); module.exports = function() { if (process.platform === 'win32') { // Use START as a way to ignore error if Atom.exe isnt running childProcess.execSync(`START taskkill /F /IM ${CONFIG.executableName}`); } else { chil...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/prebuild-less-cache.js
script/lib/prebuild-less-cache.js
'use strict'; const fs = require('fs'); const klawSync = require('klaw-sync'); const glob = require('glob'); const path = require('path'); const LessCache = require('less-cache'); const CONFIG = require('../config'); const LESS_CACHE_VERSION = require('less-cache/package.json').version; const FALLBACK_VARIABLE_IMPORT...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/package-application.js
script/lib/package-application.js
'use strict'; const assert = require('assert'); const childProcess = require('child_process'); const electronPackager = require('electron-packager'); const fs = require('fs-extra'); const hostArch = require('@electron/get').getHostArch; const includePathInPackagedApp = require('./include-path-in-packaged-app'); const ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/create-rpm-package.js
script/lib/create-rpm-package.js
'use strict'; const assert = require('assert'); const fs = require('fs-extra'); const path = require('path'); const spawnSync = require('./spawn-sync'); const template = require('lodash.template'); const CONFIG = require('../config'); module.exports = function(packagedAppPath) { console.log(`Creating rpm package f...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/transpile-babel-paths.js
script/lib/transpile-babel-paths.js
'use strict'; const CompileCache = require('../../src/compile-cache'); const fs = require('fs'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { console.log(`Transpiling Babel paths in ${CONFIG.intermediateAppPath}`); for (let path of...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/create-debian-package.js
script/lib/create-debian-package.js
'use strict'; const fs = require('fs-extra'); const os = require('os'); const path = require('path'); const spawnSync = require('./spawn-sync'); const template = require('lodash.template'); const CONFIG = require('../config'); module.exports = function(packagedAppPath) { console.log(`Creating Debian package for "$...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/get-license-text.js
script/lib/get-license-text.js
'use strict'; const fs = require('fs'); const path = require('path'); const legalEagle = require('legal-eagle'); const licenseOverrides = require('../license-overrides'); const CONFIG = require('../config'); module.exports = function() { return new Promise((resolve, reject) => { legalEagle( { path: CONFI...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/lint-less-paths.js
script/lib/lint-less-paths.js
'use strict'; const stylelint = require('stylelint'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { return stylelint .lint({ files: path.join(CONFIG.repositoryRootPath, 'static/**/*.less'), configBasedir: __dirname, configFile: path.resolve(_...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/compress-artifacts.js
script/lib/compress-artifacts.js
'use strict'; const fs = require('fs-extra'); const path = require('path'); const spawnSync = require('./spawn-sync'); const { path7za } = require('7zip-bin'); const CONFIG = require('../config'); module.exports = function(packagedAppPath) { const appArchivePath = path.join(CONFIG.buildOutputPath, getArchiveName()...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/spawn-sync.js
script/lib/spawn-sync.js
// This file exports a function that has the same interface as // `spawnSync`, but it throws if there's an error while executing // the supplied command or if the exit code is not 0. This is similar to what // `execSync` does, but we want to use `spawnSync` because it provides automatic // escaping for the supplied arg...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/check-chromedriver-version.js
script/lib/check-chromedriver-version.js
'use strict'; const buildMetadata = require('../package.json'); const semver = require('semver'); const chromedriverMetadataPath = require('electron-chromedriver/package.json'); const mksnapshotMetadataPath = require('electron-mksnapshot/package.json'); // The enviroment variable is usually set in install-script-depe...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/transpile-packages-with-custom-transpiler-paths.js
script/lib/transpile-packages-with-custom-transpiler-paths.js
'use strict'; const CompileCache = require('../../src/compile-cache'); const fs = require('fs-extra'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); const backupNodeModules = require('./backup-node-modules'); const runApmInstall = require('./run-apm-install'); requi...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/generate-module-cache.js
script/lib/generate-module-cache.js
'use strict'; const fs = require('fs'); const path = require('path'); const ModuleCache = require('../../src/module-cache'); const CONFIG = require('../config'); module.exports = function() { console.log(`Generating module cache for ${CONFIG.intermediateAppPath}`); for (let packageName of Object.keys(CONFIG.appM...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/dump-symbols.js
script/lib/dump-symbols.js
'use strict'; const fs = require('fs-extra'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { if (process.platform === 'win32') { console.log( 'Skipping symbol dumping because minidump is not supported on Windows' .gray...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/code-sign-on-windows.js
script/lib/code-sign-on-windows.js
const downloadFileFromGithub = require('./download-file-from-github'); const fs = require('fs-extra'); const os = require('os'); const path = require('path'); const { spawnSync } = require('child_process'); module.exports = function(filesToSign) { if ( !process.env.ATOM_WIN_CODE_SIGNING_CERT_DOWNLOAD_URL && ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/clean-caches.js
script/lib/clean-caches.js
'use strict'; const fs = require('fs-extra'); const os = require('os'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { const cachePaths = [ path.join(CONFIG.repositoryRootPath, 'electron'), path.join(CONFIG.atomHomeDirPath, '.node-gyp'), path.join(CONFI...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/create-windows-installer.js
script/lib/create-windows-installer.js
'use strict'; const electronInstaller = require('@atom/electron-winstaller'); const fs = require('fs'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); module.exports = packagedAppPath => { const archSuffix = process.arch === 'ia32' ? '' : '-' + process.arch; cons...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/delete-msbuild-from-path.js
script/lib/delete-msbuild-from-path.js
'use strict'; const fs = require('fs'); const path = require('path'); module.exports = function() { process.env['PATH'] = process.env['PATH'] .split(';') .filter(function(p) { if (fs.existsSync(path.join(p, 'msbuild.exe'))) { console.log( 'Excluding "' + p + '...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/lint-java-script-paths.js
script/lib/lint-java-script-paths.js
'use strict'; const path = require('path'); const { spawn } = require('child_process'); const process = require('process'); const CONFIG = require('../config'); module.exports = async function() { return new Promise((resolve, reject) => { const eslintArgs = ['--cache', '--format', 'json']; if (process.arg...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/backup-node-modules.js
script/lib/backup-node-modules.js
const fs = require('fs-extra'); const path = require('path'); module.exports = function(packagePath) { const nodeModulesPath = path.join(packagePath, 'node_modules'); const nodeModulesBackupPath = path.join(packagePath, 'node_modules.bak'); if (fs.existsSync(nodeModulesBackupPath)) { throw new Error( ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/test-sign-on-mac.js
script/lib/test-sign-on-mac.js
const spawnSync = require('./spawn-sync'); module.exports = function(packagedAppPath) { const result = spawnSync('security', [ 'find-certificate', '-c', 'Mac Developer' ]); const certMatch = (result.stdout || '') .toString() .match(/"(Mac Developer.*\))"/); if (!certMatch || !certMatch[1])...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/generate-metadata.js
script/lib/generate-metadata.js
'use strict'; const CSON = require('season'); const deprecatedPackagesMetadata = require('../deprecated-packages'); const fs = require('fs-plus'); const normalizePackageData = require('normalize-package-data'); const path = require('path'); const semver = require('semver'); const CONFIG = require('../config'); let a...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/transpile-coffee-script-paths.js
script/lib/transpile-coffee-script-paths.js
'use strict'; const CompileCache = require('../../src/compile-cache'); const fs = require('fs'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { console.log( `Transpiling CoffeeScript paths in ${CONFIG.intermediateAppPath}` ); f...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/lint-coffee-script-paths.js
script/lib/lint-coffee-script-paths.js
'use strict'; const coffeelint = require('coffeelint'); const expandGlobPaths = require('./expand-glob-paths'); const path = require('path'); const readFiles = require('./read-files'); const CONFIG = require('../config'); module.exports = function() { const globPathsToLint = [ path.join(CONFIG.repositoryRootPa...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/verify-machine-requirements.js
script/lib/verify-machine-requirements.js
'use strict'; const childProcess = require('child_process'); const path = require('path'); module.exports = function(ci) { verifyNode(); verifyPython(); }; function verifyNode() { const fullVersion = process.versions.node; const majorVersion = fullVersion.split('.')[0]; const minorVersion = fullVersion.spl...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/download-file-from-github.js
script/lib/download-file-from-github.js
'use strict'; const fs = require('fs-extra'); const path = require('path'); const syncRequest = require('sync-request'); module.exports = function(downloadURL, destinationPath) { console.log(`Downloading file from GitHub Repository to ${destinationPath}`); const response = syncRequest('GET', downloadURL, { he...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/code-sign-on-mac.js
script/lib/code-sign-on-mac.js
const downloadFileFromGithub = require('./download-file-from-github'); const CONFIG = require('../config'); const fs = require('fs-extra'); const os = require('os'); const path = require('path'); const spawnSync = require('./spawn-sync'); const osxSign = require('electron-osx-sign'); const macEntitlementsPath = path.jo...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/generate-api-docs.js
script/lib/generate-api-docs.js
'use strict'; const donna = require('donna'); const tello = require('tello'); const joanna = require('joanna'); const glob = require('glob'); const fs = require('fs-extra'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { const generatedJSONPath = path.join(CONFIG.d...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/install-apm.js
script/lib/install-apm.js
'use strict'; const childProcess = require('child_process'); const CONFIG = require('../config'); module.exports = function(ci) { if (ci) { // Tell apm not to dedupe its own dependencies during its // postinstall script. (Deduping during `npm ci` runs is broken.) process.env.NO_APM_DEDUPE = 'true'; }...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/notarize-on-mac.js
script/lib/notarize-on-mac.js
const notarize = require('electron-notarize').notarize; module.exports = async function(packagedAppPath) { const appBundleId = 'com.github.atom'; const appleId = process.env.AC_USER; const appleIdPassword = process.env.AC_PASSWORD; console.log(`Notarizing application at ${packagedAppPath}`); try { await ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/install-script-dependencies.js
script/lib/install-script-dependencies.js
'use strict'; const childProcess = require('child_process'); const CONFIG = require('../config'); // Recognised by '@electron/get', used by the 'electron-mksnapshot' and 'electron-chromedriver' dependencies process.env.ELECTRON_CUSTOM_VERSION = CONFIG.appMetadata.electronVersion; module.exports = function(ci) { c...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/clean-dependencies.js
script/lib/clean-dependencies.js
const path = require('path'); const CONFIG = require('../config'); module.exports = function() { // We can't require fs-extra or glob if `script/bootstrap` has never been run, // because they are third party modules. This is okay because cleaning // dependencies only makes sense if dependencies have been instal...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/transpile-peg-js-paths.js
script/lib/transpile-peg-js-paths.js
'use strict'; const peg = require('pegjs'); const fs = require('fs'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { console.log(`Transpiling PEG.js paths in ${CONFIG.intermediateAppPath}`); for (let path of getPathsToTranspile()) { ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/expand-glob-paths.js
script/lib/expand-glob-paths.js
'use strict'; const glob = require('glob'); module.exports = function(globPaths) { return Promise.all(globPaths.map(g => expandGlobPath(g))).then(paths => paths.reduce((a, b) => a.concat(b), []) ); }; function expandGlobPath(globPath) { return new Promise((resolve, reject) => { glob(globPath, (error, p...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/transpile-cson-paths.js
script/lib/transpile-cson-paths.js
'use strict'; const CompileCache = require('../../src/compile-cache'); const fs = require('fs'); const glob = require('glob'); const path = require('path'); const CONFIG = require('../config'); module.exports = function() { console.log(`Transpiling CSON paths in ${CONFIG.intermediateAppPath}`); for (let path of ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/run-apm-install.js
script/lib/run-apm-install.js
'use strict'; const childProcess = require('child_process'); const CONFIG = require('../config'); module.exports = function(packagePath, ci, stdioOptions) { const installEnv = Object.assign({}, process.env); // Set resource path so that apm can load metadata related to Atom. installEnv.ATOM_RESOURCE_PATH = CON...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/copy-assets.js
script/lib/copy-assets.js
// This module exports a function that copies all the static assets into the // appropriate location in the build output directory. 'use strict'; const path = require('path'); const fs = require('fs-extra'); const CONFIG = require('../config'); const glob = require('glob'); const includePathInPackagedApp = require('....
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/main.js
script/lib/update-dependency/main.js
/* eslint-disable camelcase */ const simpleGit = require('simple-git'); const path = require('path'); const { repositoryRootPath } = require('../../config'); const packageJSON = require(path.join(repositoryRootPath, 'package.json')); const git = simpleGit(repositoryRootPath); const { createPR, findPR, addLabel, ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/index.js
script/lib/update-dependency/index.js
const run = require('./main'); run();
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/pull-request.js
script/lib/update-dependency/pull-request.js
const { request } = require('@octokit/request'); const requestWithAuth = request.defaults({ baseUrl: 'https://api.github.com', headers: { 'user-agent': 'atom', authorization: `token ${process.env.AUTH_TOKEN}` }, owner: 'atom', repo: 'atom' }); module.exports = { createPR: async ( { moduleName,...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/git.js
script/lib/update-dependency/git.js
const git = (git, repositoryRootPath) => { const path = require('path'); const packageJsonFilePath = path.join(repositoryRootPath, 'package.json'); const packageLockFilePath = path.join( repositoryRootPath, 'package-lock.json' ); try { git.getRemotes((err, remotes) => { if (!err && !remotes....
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/fetch-outdated-dependencies.js
script/lib/update-dependency/fetch-outdated-dependencies.js
const fetch = require('node-fetch'); const npmCheck = require('npm-check'); // this may be updated to use github releases instead const apm = async function({ dependencies, packageDependencies }) { try { console.log('Checking apm registry...'); const coreDependencies = Object.keys(dependencies).filter(depend...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/util.js
script/lib/update-dependency/util.js
const fs = require('fs'); const path = require('path'); const util = repositoryRootPath => { const packageJsonFilePath = path.join(repositoryRootPath, 'package.json'); const packageJSON = require(packageJsonFilePath); return { updatePackageJson: async function({ moduleName, installed, lates...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/spec/pull-request-spec.js
script/lib/update-dependency/spec/pull-request-spec.js
const nock = require('nock'); const { createPR, findPR } = require('../pull-request'); const createPrResponse = require('./fixtures/create-pr-response.json'); const searchResponse = require('./fixtures/search-response.json'); describe('Pull Request', () => { it('Should create a pull request', async () => { const...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/spec/util-spec.js
script/lib/update-dependency/spec/util-spec.js
const path = require('path'); const fs = require('fs'); const repositoryRootPath = path.resolve('.', 'fixtures', 'dummy'); const packageJsonFilePath = path.join(repositoryRootPath, 'package.json'); const { updatePackageJson } = require('../util')(repositoryRootPath); const { coreDependencies, nativeDependencies } = req...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/spec/fetch-outdated-dependencies-spec.js
script/lib/update-dependency/spec/fetch-outdated-dependencies-spec.js
const path = require('path'); const fetchOutdatedDependencies = require('../fetch-outdated-dependencies'); const { nativeDependencies } = require('./helpers'); const repositoryRootPath = path.resolve('.', 'fixtures', 'dummy'); const packageJSON = require(path.join(repositoryRootPath, 'package.json')); describe('Fetch ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/spec/git-spec.js
script/lib/update-dependency/spec/git-spec.js
const path = require('path'); const simpleGit = require('simple-git'); const repositoryRootPath = path.resolve('.', 'fixtures', 'dummy'); const git = simpleGit(repositoryRootPath); const { switchToCleanBranch, makeBranch, publishBranch, createCommit, deleteBranch } = require('../git')(git, repositoryRootPath...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/script/lib/update-dependency/spec/helpers.js
script/lib/update-dependency/spec/helpers.js
const latestPackageJSON = require('./fixtures/latest-package.json'); const packageJSON = require('./fixtures/dummy/package.json'); module.exports = { coreDependencies: Object.keys(packageJSON.packageDependencies).map( dependency => { return { latest: latestPackageJSON.packageDependencies[dependency]...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/resources/win/atom.js
resources/win/atom.js
var path = require('path'); var spawn = require('child_process').spawn; var atomCommandPath = path.resolve(__dirname, '..', '..', process.argv[2]); var args = process.argv.slice(3); args.unshift('--executed-from', process.cwd()); var options = { detached: true, stdio: 'ignore' }; spawn(atomCommandPath, args, options);...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/one-light-ui/spec/theme-spec.js
packages/one-light-ui/spec/theme-spec.js
const themeName = 'one-light-ui'; describe(`${themeName} theme`, () => { beforeEach(() => { waitsForPromise(() => atom.packages.activatePackage(themeName)); }); it('allows the font size to be set via config', () => { expect(document.documentElement.style.fontSize).toBe('12px'); atom.config.set(`${t...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/one-light-ui/lib/main.js
packages/one-light-ui/lib/main.js
const root = document.documentElement; const themeName = 'one-light-ui'; module.exports = { activate(state) { atom.config.observe(`${themeName}.fontSize`, setFontSize); atom.config.observe(`${themeName}.tabSizing`, setTabSizing); atom.config.observe(`${themeName}.tabCloseButton`, setTabCloseButton); ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/language-rust-bundled/lib/main.js
packages/language-rust-bundled/lib/main.js
exports.activate = function() { for (const nodeType of ['macro_invocation', 'macro_rule']) { atom.grammars.addInjectionPoint('source.rust', { type: nodeType, language() { return 'rust'; }, content(node) { return node.lastChild; }, includeChildren: true }); ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/spec/update-manager-spec.js
packages/about/spec/update-manager-spec.js
const UpdateManager = require('../lib/update-manager'); describe('UpdateManager', () => { let updateManager; beforeEach(() => { updateManager = new UpdateManager(); }); describe('::getReleaseNotesURLForVersion', () => { it('returns atom.io releases when dev version', () => { expect( upd...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/spec/update-view-spec.js
packages/about/spec/update-view-spec.js
const { shell } = require('electron'); const main = require('../lib/main'); const AboutView = require('../lib/components/about-view'); const UpdateView = require('../lib/components/update-view'); const MockUpdater = require('./mocks/updater'); describe('UpdateView', () => { let aboutElement; let updateManager; l...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/spec/about-status-bar-spec.js
packages/about/spec/about-status-bar-spec.js
const { conditionPromise } = require('./helpers/async-spec-helpers'); const MockUpdater = require('./mocks/updater'); describe('the status bar', () => { let atomVersion; let workspaceElement; beforeEach(async () => { let storage = {}; spyOn(window.localStorage, 'setItem').andCallFake((key, value) => { ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/spec/about-spec.js
packages/about/spec/about-spec.js
describe('About', () => { let workspaceElement; beforeEach(async () => { let storage = {}; spyOn(window.localStorage, 'setItem').andCallFake((key, value) => { storage[key] = value; }); spyOn(window.localStorage, 'getItem').andCallFake(key => { return storage[key]; }); workspac...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/spec/mocks/updater.js
packages/about/spec/mocks/updater.js
module.exports = { updateError() { atom.autoUpdater.emitter.emit('update-error'); }, checkForUpdate() { atom.autoUpdater.emitter.emit('did-begin-checking-for-update'); }, updateNotAvailable() { atom.autoUpdater.emitter.emit('update-not-available'); }, downloadUpdate() { atom.autoUpdater...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/spec/helpers/async-spec-helpers.js
packages/about/spec/helpers/async-spec-helpers.js
/** @babel */ const { now } = Date; const { setTimeout } = global; export async function conditionPromise(condition) { const startTime = now(); while (true) { await timeoutPromise(100); if (await condition()) { return; } if (now() - startTime > 5000) { throw new Error('Timed out wai...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/main.js
packages/about/lib/main.js
const { CompositeDisposable } = require('atom'); const semver = require('semver'); const UpdateManager = require('./update-manager'); const About = require('./about'); const StatusBarView = require('./components/about-status-bar'); let updateManager; // The local storage key for the available update version. const Ava...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/etch-component.js
packages/about/lib/etch-component.js
const etch = require('etch'); /* Public: Abstract class for handling the initialization boilerplate of an Etch component. */ module.exports = class EtchComponent { constructor(props) { this.props = props; etch.initialize(this); EtchComponent.setScheduler(atom.views); } /* Public: Gets the s...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/about.js
packages/about/lib/about.js
const { CompositeDisposable, Emitter } = require('atom'); const AboutView = require('./components/about-view'); // Deferred requires let shell; module.exports = class About { constructor(initialState) { this.subscriptions = new CompositeDisposable(); this.emitter = new Emitter(); this.state = initialSt...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/update-manager.js
packages/about/lib/update-manager.js
const { Emitter, CompositeDisposable } = require('atom'); const Unsupported = 'unsupported'; const Idle = 'idle'; const CheckingForUpdate = 'checking'; const DownloadingUpdate = 'downloading'; const UpdateAvailableToInstall = 'update-available'; const UpToDate = 'no-update-available'; const ErrorState = 'error'; let ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/components/atom-logo.js
packages/about/lib/components/atom-logo.js
const etch = require('etch'); const EtchComponent = require('../etch-component'); const $ = etch.dom; module.exports = class AtomLogo extends EtchComponent { render() { return $.svg( { className: 'about-logo', width: '330px', height: '68px', viewBox: '0 0 330 68' }, ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/components/update-view.js
packages/about/lib/components/update-view.js
const etch = require('etch'); const EtchComponent = require('../etch-component'); const UpdateManager = require('../update-manager'); const $ = etch.dom; module.exports = class UpdateView extends EtchComponent { constructor(props) { super(props); if ( this.props.updateManager.getAutoUpdatesEnabled() ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/components/about-status-bar.js
packages/about/lib/components/about-status-bar.js
const { CompositeDisposable } = require('atom'); const etch = require('etch'); const EtchComponent = require('../etch-component'); const $ = etch.dom; module.exports = class AboutStatusBar extends EtchComponent { constructor() { super(); this.subscriptions = new CompositeDisposable(); this.subscription...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/about/lib/components/about-view.js
packages/about/lib/components/about-view.js
const { Disposable } = require('atom'); const etch = require('etch'); const { shell } = require('electron'); const AtomLogo = require('./atom-logo'); const EtchComponent = require('../etch-component'); const UpdateView = require('./update-view'); const $ = etch.dom; module.exports = class AboutView extends EtchCompon...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/line-ending-selector/spec/line-ending-selector-spec.js
packages/line-ending-selector/spec/line-ending-selector-spec.js
const helpers = require('../lib/helpers'); const { TextEditor } = require('atom'); describe('line ending selector', () => { let lineEndingTile; beforeEach(() => { jasmine.useRealClock(); waitsForPromise(() => { return atom.packages.activatePackage('status-bar'); }); waitsForPromise(() => {...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/line-ending-selector/lib/main.js
packages/line-ending-selector/lib/main.js
'use babel'; import _ from 'underscore-plus'; import { CompositeDisposable, Disposable } from 'atom'; import { Selector } from './selector'; import StatusBarItem from './status-bar-item'; import helpers from './helpers'; const LineEndingRegExp = /\r\n|\n/g; // the following regular expression is executed natively vi...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/line-ending-selector/lib/selector.js
packages/line-ending-selector/lib/selector.js
'use babel'; import SelectListView from 'atom-select-list'; import { TextEditor } from 'atom'; import { setLineEnding } from './main'; export class Selector { lineEndingListView; modalPanel; previousActivePane; // Make a selector object (should be called once) constructor(selectorItems) { // Defining ...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/line-ending-selector/lib/status-bar-item.js
packages/line-ending-selector/lib/status-bar-item.js
const { Emitter } = require('atom'); module.exports = class StatusBarItem { constructor() { this.element = document.createElement('a'); this.element.className = 'line-ending-tile inline-block'; this.emitter = new Emitter(); this.setLineEndings(new Set()); } setLineEndings(lineEndings) { this...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/line-ending-selector/lib/helpers.js
packages/line-ending-selector/lib/helpers.js
'use babel'; export default { getProcessPlatform() { return process.platform; } };
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/incompatible-packages/spec/incompatible-packages-component-spec.js
packages/incompatible-packages/spec/incompatible-packages-component-spec.js
/** @babel */ import etch from 'etch'; import IncompatiblePackagesComponent from '../lib/incompatible-packages-component'; describe('IncompatiblePackagesComponent', () => { let packages, etchScheduler; beforeEach(() => { etchScheduler = etch.getScheduler(); packages = [ { name: 'incompatib...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/incompatible-packages/spec/incompatible-packages-spec.js
packages/incompatible-packages/spec/incompatible-packages-spec.js
/** @babel */ import path from 'path'; import IncompatiblePackagesComponent from '../lib/incompatible-packages-component'; import StatusIconComponent from '../lib/status-icon-component'; // This exists only so that CI passes on both Atom 1.6 and Atom 1.8+. function findStatusBar() { if (typeof atom.workspace.getFoo...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/incompatible-packages/spec/fixtures/incompatible-package/bad.js
packages/incompatible-packages/spec/fixtures/incompatible-package/bad.js
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false
atom/atom
https://github.com/atom/atom/blob/1c3bd35ce238dc0491def9e1780d04748d8e18af/packages/incompatible-packages/lib/status-icon-component.js
packages/incompatible-packages/lib/status-icon-component.js
/** @babel */ /** @jsx etch.dom */ import etch from 'etch'; export default class StatusIconComponent { constructor({ count }) { this.count = count; etch.initialize(this); } update() {} render() { return ( <div className="incompatible-packages-status inline-block text text-error"> <...
javascript
MIT
1c3bd35ce238dc0491def9e1780d04748d8e18af
2026-01-04T14:56:51.056594Z
false