Dataset Viewer
Auto-converted to Parquet Duplicate
id
string
text
string
language
string
tokens
int64
source
string
meta
string
javascript_000000000
<reponame>olgn/bids-validator<filename>bids-validator/validators/bids/obj.js module.exports = { options: {}, issues: [], summary: { sessions: [], subjects: [], tasks: [], modalities: [], totalFiles: [], size: 0, }, }
javascript
70
bigcode/starcoderdata
{"repo_path": "bids-validator/validators/bids/obj.js", "repo_name": "olgn/bids-validator", "stars": 0, "orig_id": "0"}
javascript_000000001
require('dotenv').config(); const { TruffleProvider } = require('@harmony-js/core'); const operator_private_key = process.env.OPERATOR_PRIVATE_KEY; const operator_meemonic = process.env.OPERATOR_MNEMONIC; const testnet_url = process.env.TESTNET_0_URL; //Mainnet const mainnet_mnemonic = process.env.MAINNET_MNEMONIC; c...
javascript
458
bigcode/starcoderdata
{"repo_path": "testnet-contracts/truffle-config.js", "repo_name": "trinhtan/harmony-cosmos", "stars": 0, "orig_id": "1"}
javascript_000000002
<gh_stars>0 import _ from 'lodash'; import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; class App exten...
javascript
259
bigcode/starcoderdata
{"repo_path": "src/index.js", "repo_name": "shellytang/react-simple-app", "stars": 0, "orig_id": "2"}
javascript_000000003
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var global = Package.meteor.global; var meteorEnv = Package.meteor.meteorEnv; (function(){ /////////////////////////////////////////////////////////////////////// // // // packages/raix_...
javascript
91
bigcode/starcoderdata
{"repo_path": "custom-rocketchat/bundle/programs/server/packages/raix_ui-dropped-event.js", "repo_name": "BetaBlocksCo/Rocket.Chat", "stars": 1, "orig_id": "3"}
javascript_000000004
const express = require('express'); const router = express.Router(); const fs = require('fs'); const theatreHelpers = require('../helpers/theatreHelpers'); const passport = require('passport'); const date = require('date-and-time'); const isTheatre = require('../middleware/auth').isTheatre; router.get('/login'...
javascript
3,344
bigcode/starcoderdata
{"repo_path": "routes/theatre.js", "repo_name": "vishnucprasad/MovieMaster", "stars": 0, "orig_id": "4"}
javascript_000000005
function scholarship(arg1, arg2, arg3) { let income = Number(arg1); let averageGrade = Number(arg2); let minIncome = Number(arg3); let socialScholarship = 0; let excellentScholarship = 0; if (averageGrade >= 5.50) { excellentScholarship = averageGrade * 25; } if ((averageGrade...
javascript
241
bigcode/starcoderdata
{"repo_path": "Programming-Basics-with-JavaScript/Labs-and-Exercises/Conditional-Statements/Exercise/scholarship.js", "repo_name": "Aykut5645/Software-University", "stars": 0, "orig_id": "5"}
javascript_000000006
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ import {SuperMap} from '../SuperMap'; import {S...
javascript
3,083
bigcode/starcoderdata
{"repo_path": "src/common/overlay/Pie.js", "repo_name": "qingqibing/iClient-JavaScript", "stars": 1, "orig_id": "6"}
javascript_000000007
import { get } from '@wp-g2/create-styles'; import { colorize, getComputedColor, is, noop } from '@wp-g2/utils'; import { space } from '../mixins/space'; import { config } from './config'; import { generateColorAdminColors } from './utils'; const baseTheme = Object.freeze(Object.assign({}, config)); export function ...
javascript
196
bigcode/starcoderdata
{"repo_path": "packages/styles/src/theme/createTheme.js", "repo_name": "sirreal/g2", "stars": 0, "orig_id": "7"}
javascript_000000008
<reponame>RikKierkels/Charlie-Chatlin<filename>client-react/src/components/TileUserProfile/index.js import React from 'react'; import styled from '@emotion/styled'; import Tile from '../Tile'; import { getAvatarById } from '../../shared/avatars'; import { StyledText, transparent } from '../../design/shared-styles'; imp...
javascript
481
bigcode/starcoderdata
{"repo_path": "client-react/src/components/TileUserProfile/index.js", "repo_name": "RikKierkels/Charlie-Chatlin", "stars": 1, "orig_id": "8"}
javascript_000000009
import { useStaticQuery, graphql } from "gatsby" export default assetUrl => { const { allContentfulAsset } = useStaticQuery(graphql` query { allContentfulAsset { nodes { file { url } fluid(maxWidth: 785) { ...
javascript
102
bigcode/starcoderdata
{"repo_path": "src/utils/useContentfulImage.js", "repo_name": "TakaShinoda/myblog", "stars": 0, "orig_id": "9"}
javascript_000000010
import React, { Component } from "react"; import { requireNativeComponent, View, UIManager, findNodeHandle, DeviceEventEmitter } from "react-native"; import PropTypes from "prop-types"; class SketchView extends Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this);...
javascript
492
bigcode/starcoderdata
{"repo_path": "index.js", "repo_name": "duongaaazzz/react-native-sketch-view", "stars": 0, "orig_id": "10"}
javascript_000000011
export const AMOUNT = 10; export const TYPES = ['multiple', 'boolean']; export const DIFFICULTIES = ['easy', 'medium', 'hard']; export const ANSWER_VALUE = 100;
javascript
43
bigcode/starcoderdata
{"repo_path": "src/app/config/constants.js", "repo_name": "onemargaro/trivia", "stars": 0, "orig_id": "11"}
javascript_000000012
const authenticationMiddleware = require("./authn"); const corsMiddleware = require("./cors"); module.exports = { azureAuth: authenticationMiddleware, cors: corsMiddleware }
javascript
35
bigcode/starcoderdata
{"repo_path": "backend/authn/index.js", "repo_name": "loliva/az_ad_angular_express_serverless", "stars": 0, "orig_id": "12"}
javascript_000000013
/* eslint-disable no-console */ 'use strict'; // const install = require('./install') const runCmd = require('./runCmd'); const getBabelCommonConfig = require('./getBabelCommonConfig'); const merge2 = require('merge2'); const { execSync } = require('child_process'); const through2 = require('through2'); const transfor...
javascript
2,504
bigcode/starcoderdata
{"repo_path": "antd-tools/gulpfile.js", "repo_name": "liulinboyi/ant-design-vue", "stars": 1, "orig_id": "13"}
javascript_000000014
import fs from 'fs-extra' import path from 'path' import {coreUtils, config, Handlebars, User} from '../../../../cli' var route = function route(req, res) { var resHtml = '' var page = path.join(__dirname + '/../../../views/users/profile.html') if (coreUtils.file.exist(page)) { resHtml = fs.readFileSync(pa...
javascript
235
bigcode/starcoderdata
{"repo_path": "src/server/routes/users/get/profile.js", "repo_name": "maya-abe/mysite", "stars": 0, "orig_id": "14"}
javascript_000000015
import React from "react"; import { Wave } from "react-animated-text"; import { Link } from "react-scroll"; import TravisCI from "../../pages/images/TravisCI-Mascot-2.png"; import "./style.css"; const style = { removeUnderline: { textDecoration: "none", }, }; function NavBar() { return ( <header classN...
javascript
393
bigcode/starcoderdata
{"repo_path": "src/components/NavBar/index.js", "repo_name": "lfernandez79/reactPortfolio", "stars": 0, "orig_id": "15"}
javascript_000000016
<gh_stars>1000+ var seeProcessorFn = require('../processors/transfer-see'); describe('transfer-see', function() { var seeProcessor; beforeEach(function() { seeProcessor = seeProcessorFn(); }); var transferSee = function(docs) { seeProcessor.$process(docs); }; it('should put @see info in the des...
javascript
344
bigcode/starcoderdata
{"repo_path": "website/docgen/spec/transfer-see-spec.js", "repo_name": "EnzDev/protractor", "stars": 7039, "orig_id": "16"}
javascript_000000017
<gh_stars>1-10 /* eslint-disable linebreak-style */ // ====================================================================== // Some Assembly Required // Advent of Code 2015 Day 07 -- <NAME> -- https://adventofcode.com // // Javascript implementation by Dr. <NAME> III // ============================================...
javascript
1,182
bigcode/starcoderdata
{"repo_path": "2015/07_SomeAssemblyRequired/aoc_07.js", "repo_name": "deanearlwright/AdventOfCode", "stars": 1, "orig_id": "17"}
javascript_000000018
<filename>test/app-jobs-buildPackage.js /* eslint-disable no-unused-vars */ /* eslint-disable no-undef */ const assert = require("assert"); const should = require("should"); const rewire = require("rewire"); const buildPackageModule = rewire("../app/jobs/buildPackage"); const filterRemoteTags = buildPackageModule.__g...
javascript
593
bigcode/starcoderdata
{"repo_path": "test/app-jobs-buildPackage.js", "repo_name": "fuqunaga/openupm", "stars": 0, "orig_id": "18"}
javascript_000000019
<filename>src/components/charts/bar-chart.js import React, { Fragment, useState } from 'react' import PropTypes from 'prop-types' // ES6 import { extent, max } from 'd3-array' import { scaleBand, scaleLinear, scaleTime } from 'd3-scale' import { line, curveCardinal } from 'd3-shape' import { timeMonth, timeDay } from ...
javascript
3,238
bigcode/starcoderdata
{"repo_path": "src/components/charts/bar-chart.js", "repo_name": "duynguyen158/website", "stars": 1, "orig_id": "19"}
javascript_000000020
<reponame>Li-Yang-528/storage-hook<filename>src/util.js function type(obj, type) { return Object.prototype.toString.call(obj).slice(8, -1).toLocaleLowerCase() === type; } export const assert = [ 'String', 'Object', 'Function', 'Array' ].reduce((init, key) => { init['is' + key] = function(target) { r...
javascript
111
bigcode/starcoderdata
{"repo_path": "src/util.js", "repo_name": "Li-Yang-528/storage-hook", "stars": 0, "orig_id": "20"}
javascript_000000021
<filename>class-00/lab-a/starter-code/js/app.js 'use strict'; const names = ['bag', 'banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair', 'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors', 'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can', 'wine-glass']; const leftImage = docum...
javascript
1,015
bigcode/starcoderdata
{"repo_path": "class-00/lab-a/starter-code/js/app.js", "repo_name": "ibrahim18101996/amman-301d4", "stars": 0, "orig_id": "21"}
javascript_000000022
import { isArray, addObject, findBy } from '@/utils/array'; const parseCache = {}; const OP_MAP = { '=': 'In', '==': 'In', '!=': 'NotIn', '<': 'Lt', '>': 'Gt', }; // Parse a labelSelector string export function parse(labelSelector) { // matchLabels: // comma-separated list, all rules ANDed together ...
javascript
1,415
bigcode/starcoderdata
{"repo_path": "utils/selector.js", "repo_name": "vincent99/dashboard", "stars": 168, "orig_id": "22"}
javascript_000000023
<gh_stars>0 /*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import {registerInternalPlugin} from '@webex/webex-core'; import Search from './search'; import config from './config'; import {has} from 'lodash'; import '@webex/internal-plugin-encryption'; registerInternalPlugin('search', Search,...
javascript
365
bigcode/starcoderdata
{"repo_path": "packages/node_modules/@webex/internal-plugin-search/src/index.js", "repo_name": "antti2000/spark-js-sdk", "stars": 0, "orig_id": "23"}
javascript_000000024
<gh_stars>1-10 import React, { useEffect, useRef, useState } from 'react'; import { Row, Col } from 'react-bootstrap'; import Card from '@material-ui/core/Card'; import IconButton from '@material-ui/core/IconButton'; import PlayArrowIcon from '@material-ui/icons/PlayArrow'; import PauseIcon from '@material-ui/icons/Pa...
javascript
1,378
bigcode/starcoderdata
{"repo_path": "src/components/pages/profile/Audio.js", "repo_name": "robin-thomas/multiverse", "stars": 2, "orig_id": "24"}
javascript_000000025
<reponame>nicolabosco87/threejs-test function loop(){ // Rotate the propeller, the sea and the sky //airplane.propeller.rotation.x += 0.3; sky.mesh.rotation.z += .05; // update the plane on each frame updatePlane(); airplane.pilot.updateHairs(); sea.moveWaves(); // render the scene renderer.render...
javascript
392
bigcode/starcoderdata
{"repo_path": "application/assets/javascripts/loop.js", "repo_name": "nicolabosco87/threejs-test", "stars": 0, "orig_id": "25"}
javascript_000000026
<reponame>OpenICGC/mapa-delinquencial function getGEOJSONArray(geojson, positions, clau) { var array1 = [] var z = 0; $.each(geojson.features, function (key, val) { z = z + 1; if (z <= positions) { $.each(val.properties, function (i, j) { if (i == clau) { ...
javascript
3,488
bigcode/starcoderdata
{"repo_path": "js/geoestadistica.js", "repo_name": "OpenICGC/mapa-delinquencial", "stars": 4, "orig_id": "26"}
javascript_000000027
/*! * OS.js - JavaScript Cloud/Web Panel Platform * * Copyright (c) 2011-2017, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must ...
javascript
2,097
bigcode/starcoderdata
{"repo_path": "src/packages/default/Settings/module-panel.js", "repo_name": "dreadkopp/SHMC-OS.js", "stars": 8, "orig_id": "27"}
javascript_000000028
<reponame>cramforce/linkedom import {HTMLElement} from './html-element.js'; /** * @implements globalThis.HTMLDirectoryElement */ export class HTMLDirectoryElement extends HTMLElement { constructor(ownerDocument, localName = 'dir') { super(ownerDocument, localName); } }
javascript
62
bigcode/starcoderdata
{"repo_path": "esm/html/html-directory-element.js", "repo_name": "cramforce/linkedom", "stars": 0, "orig_id": "28"}
javascript_000000029
var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = fu...
javascript
4,899
bigcode/starcoderdata
{"repo_path": "node_modules/js-sdsl/dist/esm/Map/Map.js", "repo_name": "NMSLSB-001/mqttDatabase", "stars": 0, "orig_id": "29"}
javascript_000000030
'use strict'; const runJustAPIJSON = require('./helpers').runJustAPIJSON; const expect = require('chai').expect; const fs = require('fs'); describe('Multipart form post', function () { let suiteContext = this; before(async function () { let result = runJustAPIJSON('multipartformpost.suite.yml'); ...
javascript
730
bigcode/starcoderdata
{"repo_path": "test/cli/multipartformbody.spec.js", "repo_name": "matmar10/rest-ez-backup", "stars": 773, "orig_id": "30"}
javascript_000000031
<reponame>pfritsch/bandedejoueurs<filename>client/templates/gamesession/gamesession_edit.js Template.gamesessionEdit.helpers({ gamesession: function() { var gamesessionId = FlowRouter.getParam('gamesessionId'); var gamesession = Gamesessions.findOne(gamesessionId) || {}; if(gamesession.boardgameTags) game...
javascript
2,035
bigcode/starcoderdata
{"repo_path": "client/templates/gamesession/gamesession_edit.js", "repo_name": "pfritsch/bandedejoueurs", "stars": 1, "orig_id": "31"}
javascript_000000032
/** * LEETCODE 151: Reverse Words in String * * https://leetcode.com/problems/reverse-words-in-a-string/ * * Given an input string, reverse the string word by word. A word is * defined as a sequence of non-space characters. * * The input string does not contain leading or trailing spaces and the * words are al...
javascript
425
bigcode/starcoderdata
{"repo_path": "reverseWordsInString/reverse_words_in_string.js", "repo_name": "pitanyc/toy-problems", "stars": 0, "orig_id": "32"}
javascript_000000033
import React from 'react'; const Multi = () => [ 'first sibling', 'second sibling' ].map((v, i) => <p key={i}>{v}</p>); export default Multi;
javascript
45
bigcode/starcoderdata
{"repo_path": "React16/SourceCode/Chapter01/multiple-elements-and-strings/src/Multi.js", "repo_name": "MikeAlexMartinez/ReactBooks", "stars": 15, "orig_id": "33"}
javascript_000000034
//* @protected /** If you make changes to _enyo.xhr_, be sure to add or update the appropriate [unit tests](https://github.com/enyojs/enyo/tree/master/tools/test/ajax/tests). */ enyo.xhr = { /** <code>inParams</code> is an Object that may contain these properties: - _url_: The URL to request (required). - _me...
javascript
1,350
bigcode/starcoderdata
{"repo_path": "source/ajax/xhr.js", "repo_name": "micro-tech/enyo", "stars": 0, "orig_id": "34"}
javascript_000000035
import Outlet from '../../../../src/classes/outlet'; import { mountSpies, cMountSpies, } from '../sinon-spies'; import { SinonSpyRootApp } from './base-mounts'; import { RootRootRoute, RootNewsRoute, RootAllConditionalRoute, RootNewsConditionalRoute, RootIdConditionalRouteOne, RootIdC...
javascript
636
bigcode/starcoderdata
{"repo_path": "test/utils/navigation-acceptance-tests/app-under-test/root-app.js", "repo_name": "darvelo/ether", "stars": 2, "orig_id": "35"}
javascript_000000036
import Client from './Client'; import sinon from 'sinon'; import { expect } from './tests/chai'; describe('Client', () => { it('makes a GET request', () => { const superagent = { get: sinon.stub(), }; superagent .get.withArgs('http://example.com/custom-path') .returns(Promise.resolve({ ...
javascript
492
bigcode/starcoderdata
{"repo_path": "src/Client.spec.js", "repo_name": "Lukasz-pluszczewski/cucumber-steps", "stars": 0, "orig_id": "36"}
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
1,388