Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
92
5.09M
'use strict'; // config is in non-standard location. setting this env var will direct // node-config to the proper config files. process.env.NODE_CONFIG_DIR = './test/config'; var gulp = require('gulp'); var wiredep = require('wiredep').stream; //var sprite = require('css-sprite').stream; var config = requir...
if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports) { module.exports = 'ng-token-auth'; } angular.module('ng-token-auth', ['ipCookie']).provider('$auth', function() { var configs, defaultConfigName; configs = { "default": { apiUrl: '/api', signOutUrl...
require('coffee-script/register'); var os = require('os'); exports.config = { allScriptsTimeout: 30000, sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, specs: [ 'e2e/ng-token-auth/*.coffee' ], chromeOnly: true, capabilities: { 'browserName': 'chrome', 'name':...
var crypto = require('crypto'); // params: dir, key, secret, expiration, bucket, acl, type, redirect module.exports = function(params) { var date = new Date(); var s3Policy = { expiration: params.expiration, conditions: [ ["starts-with", "$key", params.dir], {bucket: params.bucket}, {acl...
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; var express = require('express'); var request = require('request'); var s3Policy = require('./server/s3'); var sm = require('sitemap'); var os = require('os'); var port = process.env.PORT || 7777; var distDir = '/.tmp'; var app = express(); // ...
#include <stdio.h> int def_in_dyn = 1234; extern int def_in_exec; void dyn_main() { puts("hello from dyn_main()!"); printf("dyn: def_in_exec=%d def_in_dyn=%d\n", def_in_exec, def_in_dyn); def_in_dyn = 2; def_in_exec = 4; printf("dyn: def_in_exec=%d def_in_dyn=%d\n", def_in_exec, def_in_dyn); p...
#include <stdio.h> extern int def_in_dyn; int def_in_exec = 5678; void dyn_main(); int main() { puts("hello from main()!"); printf("exec: def_in_exec=%d def_in_dyn=%d\n", def_in_exec, def_in_dyn); def_in_dyn = 1; def_in_exec = 3; printf("exec: def_in_exec=%d def_in_dyn=%d\n", def_in_exec, def_in_...
#!/usr/bin/env python from setuptools import setup, find_packages import os, runpy pkg_root = os.path.dirname(__file__) __version__ = runpy.run_path( os.path.join(pkg_root, 'onedrive', '__init__.py') )['__version__'] # Error-handling here is to allow package to be built w/o README included try: readme = open(os.pat...
#!/usr/bin/env python #-*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import itertools as it, operator as op, functools as ft import os, sys, re class FormatError(Exception): pass def main(): import argparse parser = argparse.ArgumentParser( description='Convert sphi...
#-*- coding: utf-8 -*- from __future__ import print_function import itertools as it, operator as op, functools as ft from collections import Iterable import os, sys, types, re from sphinx.ext.autodoc import Documenter _autodoc_add_line = Documenter.add_line @ft.wraps(_autodoc_add_line) def autodoc_add_line(self, l...
import sys, os from os.path import abspath, dirname, join doc_root = dirname(__file__) # autodoc_dump_rst = open(join(doc_root, 'autodoc.rst'), 'w') os.chdir(doc_root) sys.path.insert(0, abspath('..')) # for module itself sys.path.append(abspath('.')) # for extensions needs_sphinx = '1.1' extensions = ['sphinx.ext....
#!/usr/bin/env python2 #-*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import itertools as it, operator as op, functools as ft from os.path import dirname, basename, exists, isdir, join, abspath from posixpath import join as ujoin, dirname as udirname, basename as ubasename from collecti...
#-*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import itertools as it, operator as op, functools as ft from datetime import datetime, timedelta from posixpath import join as ujoin # used for url pahs from os.path import join, basename, dirname, exists import os, sys, io, urllib, urlpar...
#-*- coding: utf-8 -*- import os if os.name == 'nt': # Needs pywin32 to work on Windows (NT, 2K, XP, _not_ /95 or /98) try: import win32con, win32file, pywintypes except ImportError as err: raise ImportError( 'Failed to import pywin32' ' extensions (make sure pywin32 is installed correctly) - {}'.format(err)...
#-*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import itertools as it, operator as op, functools as ft import os, sys, io, errno, tempfile, stat, re from os.path import dirname, basename import logging log = logging.getLogger(__name__) class ConfigMixin(object): #: Path to configu...
import { Writable } from "stream"; import { check } from "./blork.js"; /** * Create a stream that passes messages through while rewriting scope. * Replaces `[semantic-release]` with a custom scope (e.g. `[my-awesome-package]`) so output makes more sense. * * @param {stream.Writable} stream The actual stream to wri...
import semanticGetConfig from "semantic-release/lib/get-config.js"; import { WritableStreamBuffer } from "stream-buffers"; import { logger } from "./logger.js"; import signale from "signale"; const { Signale } = signale; /** * Get the release configuration options for a given directory. * Unfortunately we've had to...
import { relative, resolve } from "path"; import gitLogParser from "git-log-parser"; import getStream from "get-stream"; import { execa } from "execa"; import { check, ValueError } from "./blork.js"; import cleanPath from "./cleanPath.js"; import { logger } from "./logger.js"; const { debug } = logger.withScope("msr:c...
/** * Lifted and tweaked from semantic-release because we follow how they bump their packages/dependencies. * https://github.com/semantic-release/semantic-release/blob/master/lib/utils.js */ import semver from "semver"; const { gt, lt, prerelease, rcompare } = semver; /** * Get tag objects and convert them to a l...
import { existsSync, lstatSync, readFileSync } from "fs"; /** * Read the content of target package.json if exists. * * @param {string} path file path * @returns {string} file content * * @internal */ function readManifest(path) { // Check it exists. if (!existsSync(path)) throw new ReferenceError(`package.jso...
import { normalize, isAbsolute, join } from "path"; import { check } from "./blork.js"; /** * Normalize and make a path absolute, optionally using a custom CWD. * Trims any trailing slashes from the path. * * @param {string} path The path to normalize and make absolute. * @param {string} cwd=process.cwd() The CWD...
import { execaSync } from "execa"; /** * Get all the tags for a given branch. * * @param {String} branch The branch for which to retrieve the tags. * @param {Object} [execaOptions] Options to pass to `execa`. * @param {Array<String>} filters List of string to be checked inside tags. * * @return {Array<String>} ...
import getCommitsFiltered from "./getCommitsFiltered.js"; import { updateManifestDeps, resolveReleaseType } from "./updateDeps.js"; import { logger } from "./logger.js"; const { debug } = logger.withScope("msr:inlinePlugin"); /** * Create an inline plugin creator for a multirelease. * This is caused once per multir...
import { writeFileSync } from "fs"; import semver from "semver"; import { isObject, isEqual, transform } from "lodash-es"; import recognizeFormat from "./recognizeFormat.js"; import getManifest from "./getManifest.js"; import { getHighestVersion, getLatestVersion } from "./utils.js"; import { getTags } from "./git.js";...
import semanticRelease from "semantic-release"; import { uniq, template, sortBy } from "lodash-es"; import { topo } from "@semrel-extra/topo"; import { dirname, join } from "path"; import { check } from "./blork.js"; import { logger } from "./logger.js"; import getConfig from "./getConfig.js"; import getConfigMultiSemr...
import dbg from "debug"; import singnale from "signale"; const { Signale } = singnale; const severityOrder = ["error", "warn", "info", "debug", "trace"]; const assertLevel = (level, limit) => severityOrder.indexOf(level) <= severityOrder.indexOf(limit); const aliases = { failure: "error", log: "info", success: "inf...
import { detectNewline } from "detect-newline"; import detectIndent from "detect-indent"; /** * Information about the format of a file. * @typedef FileFormat * @property {string|number} indent Indentation characters * @property {string} trailingWhitespace Trailing whitespace at the end of the file */ /** * Dete...
import resolveFrom from "resolve-from"; import { cosmiconfig } from "cosmiconfig"; import { pickBy, isNil, castArray, uniq } from "lodash-es"; import { createRequire } from "node:module"; /** * @typedef {Object} DepsConfig * @property {'override' | 'satisfy' | 'inherit'} bump * @property {'patch' | 'minor' | 'major...
import { existsSync, lstatSync } from "fs"; import { checker, check, add, ValueError } from "blork"; import { Writable } from "stream"; import { WritableStreamBuffer } from "stream-buffers"; // Get some checkers. const isAbsolute = checker("absolute"); // Add a directory checker. add( "directory", (v) => isAbsolute...
import { cosmiconfig } from "cosmiconfig"; // Copied from get-config.js in semantic-release const CONFIG_NAME = "release"; const CONFIG_FILES = [ "package.json", `.${CONFIG_NAME}rc`, `.${CONFIG_NAME}rc.json`, `.${CONFIG_NAME}rc.yaml`, `.${CONFIG_NAME}rc.yml`, `.${CONFIG_NAME}rc.js`, `.${CONFIG_NAME}rc.cjs`, `$...
#!/usr/bin/env node import meow from "meow"; import process from "process"; import { toPairs, set } from "lodash-es"; import { logger } from "../lib/logger.js"; const cli = meow( ` Usage $ multi-semantic-release Options --dry-run Dry run mode. --debug Output debugging information. --silent Do no...
import { getHighestVersion, getLowestVersion, getLatestVersion, tagsToVersions } from "../../lib/utils.js"; describe("tagsToVersions()", () => { // prettier-ignore const cases = [ [[{version: "1.0.0"}, {version: "1.1.0"}, {version: "1.2.0"}], ["1.0.0", "1.1.0", "1.2.0"]], [[],[]], [undefined, []], [null, []]...
End of preview. Expand in Data Studio

digits

digits is a code dataset consisting of 900 public domain-like repos on GitHub.

The following languages included are:

  • C
  • C++
  • JavaScript
  • Python
  • R
  • PowerShell
  • Java
  • Kotlin
  • C#
  • Swift
  • Bourne Shell

This dataset is provided without warranty.

Downloads last month
13