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"} |
javascript_000000038 | <reponame>BaumianerNiklas/discord.js
'use strict';
const Base = require('./Base');
const BaseMessageComponent = require('./BaseMessageComponent');
const ClientApplication = require('./ClientApplication');
const InteractionCollector = require('./InteractionCollector');
const MessageAttachment = require('./MessageAttach... | javascript | 6,253 | bigcode/starcoderdata | {"repo_path": "src/structures/Message.js", "repo_name": "BaumianerNiklas/discord.js", "stars": 0, "orig_id": "38"} |
javascript_000000039 | <reponame>digital230/uapi-json
const parsers = require('../../utils/parsers');
const { AirParsingError } = require('./AirErrors');
function ProviderSegmentOrderReducer(acc, { ProviderSegmentOrder }) {
const x = parseInt(ProviderSegmentOrder, 10);
if (x > acc) {
return x;
}
return acc;
}
/**
* getBaggage ... | javascript | 3,753 | bigcode/starcoderdata | {"repo_path": "src/Services/Air/AirFormat.js", "repo_name": "digital230/uapi-json", "stars": 0, "orig_id": "39"} |
javascript_000000040 | <filename>03-HW_ArrayInt/che-dashboard/node_modules/monaco-languages/release/dev/scheme/scheme.js
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the pro... | javascript | 843 | bigcode/starcoderdata | {"repo_path": "03-HW_ArrayInt/che-dashboard/node_modules/monaco-languages/release/dev/scheme/scheme.js", "repo_name": "romankurnovskii/cw", "stars": 212, "orig_id": "40"} |
javascript_000000041 | import React,{Component} from 'react';
import {Link} from 'react-router-dom';
import api from '../../services/api';
class Following extends Component {
constructor(props) {
super(props);
this.state = {
followings: [],
loading: true
}
}
async handleGetFollowing(following_url) {
... | javascript | 324 | bigcode/starcoderdata | {"repo_path": "src/components/Following/index.js", "repo_name": "gabrielprog/wa-consume-api-github", "stars": 0, "orig_id": "41"} |
javascript_000000042 | <filename>src/pages/EcProjectManagement/CustomerMaintenance/CustomerMaintenance.js
import React, { Fragment, PureComponent } from 'react';
import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi/locale';
import {
Form,
Input,
DatePicker,
Select,
Button,
Card,
Popconfirm,
Divi... | javascript | 4,375 | bigcode/starcoderdata | {"repo_path": "src/pages/EcProjectManagement/CustomerMaintenance/CustomerMaintenance.js", "repo_name": "baoxqw/econtral", "stars": 0, "orig_id": "42"} |
javascript_000000043 | <reponame>onnohaldar/istd-ld-voorbeelden
var viewData = {"id":28543,"isExpandedObject":false};
var objectRelations = {
"28543" : [{"via": "is geassocieerd met","to": ["28542"]}]
};
var objectData = {
"28543" : {
"id":28543,
"typeIconPath":"data/icons/UML/UML_ClassDiagram.png",
"data" : [
{
"lang":"nl",
"name... | javascript | 667 | bigcode/starcoderdata | {"repo_path": "pub-examples/iWmo_Jw_Eb_Splits/data/view_28543_data.js", "repo_name": "onnohaldar/istd-ld-voorbeelden", "stars": 0, "orig_id": "43"} |
javascript_000000044 | <gh_stars>0
let storage = {
apiKey: 'a70dbfe19b800809dfdd3e89e8532c9e',
token: localStorage.getItem('token') || null,
username: localStorage.getItem('username') || null,
admin: localStorage.getItem('admin') || null,
pageTitlePostfix: ' — ' + document.title,
listTypes: [
{
title: 'Your Requests',
... | javascript | 451 | bigcode/starcoderdata | {"repo_path": "src/storage.js", "repo_name": "KevinMidboe/seasonedRequest", "stars": 0, "orig_id": "44"} |
javascript_000000045 | <filename>web/src/components/Input/index.js
import React from 'react';
import PropTypes from 'prop-types';
import './styles.css';
function Input({
label, name, type, value, onChange,
}) {
return (
<div className="input-block">
<label htmlFor={name}>{label}</label>
<input
id={name}
... | javascript | 160 | bigcode/starcoderdata | {"repo_path": "web/src/components/Input/index.js", "repo_name": "eduardoc7/volunteer-psychologist", "stars": 2, "orig_id": "45"} |
javascript_000000046 | <filename>src/classes/sanitize/board.js<gh_stars>10-100
var validator = require('validator');
BoardSanitize = function(validator) {
this.sanitize = validator.sanitize
this.check = validator.check
}
BoardSanitize.prototype.rename = function(data) {
data.name = this.sanitize(data.name).entityEncode()... | javascript | 190 | bigcode/starcoderdata | {"repo_path": "src/classes/sanitize/board.js", "repo_name": "Devilpants/MapTest", "stars": 37, "orig_id": "46"} |
javascript_000000047 | <filename>Portal de noticias/Introducao/noticias.js
var http = require('http');
var server = http.createServer(function(req, res) {
var categoria = req.url;
if(categoria == '/tecnologia') {
res.end("<html><body>Noticias de tecnologia</body></html>");
}else if(categoria == '/moda') {
... | javascript | 129 | bigcode/starcoderdata | {"repo_path": "Portal de noticias/Introducao/noticias.js", "repo_name": "juniorBM/Curso-Nodejs", "stars": 0, "orig_id": "47"} |
javascript_000000048 | // https://docs.cypress.io/api/introduction/api.html
// https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Cypress-Is-Simple
// Cypress.on('uncaught:exception', (err, runnable) => {
// // returning false here prevents Cypress from
// // failing the test
// return false
// })
// // t... | javascript | 546 | bigcode/starcoderdata | {"repo_path": "vue/tests/e2e/specs/home.js", "repo_name": "exomia/cloud", "stars": 8, "orig_id": "48"} |
javascript_000000049 | <reponame>fstoner/cesium<filename>Specs/Scene/DiscardMissingTileImagePolicySpec.js
defineSuite([
'Scene/DiscardMissingTileImagePolicy',
'Core/Cartesian2',
'Core/loadImage',
'Core/loadWithXhr',
'Specs/pollToPromise',
'ThirdParty/when'
], function(
DiscardMissin... | javascript | 1,128 | bigcode/starcoderdata | {"repo_path": "Specs/Scene/DiscardMissingTileImagePolicySpec.js", "repo_name": "fstoner/cesium", "stars": 10, "orig_id": "49"} |
javascript_000000050 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NestingContext = void 0;
var React = require("react");
exports.NestingContext = React.createContext(null);
| javascript | 41 | bigcode/starcoderdata | {"repo_path": "node_modules/@fluentui/react-component-nesting-registry/dist/dts/src/NestingContext.js", "repo_name": "paige-ingram/nwhacks2022", "stars": 0, "orig_id": "50"} |
javascript_000000051 | import qs from 'qs';
/**
* 创建一个地址附带查询参数
* @param {String} baseUrl 基础地址
* @param {Object} params key-value 对象,选填
* @return {void}
*/
export default function createUrl(baseUrl, params) {
const paramsStr = qs.stringify(params || {});
if (!paramsStr) {
return baseUrl;
}
let subStr = '';
... | javascript | 203 | bigcode/starcoderdata | {"repo_path": "src/framework/utils/createUrl.js", "repo_name": "RaySnow/vue-ssr", "stars": 2, "orig_id": "51"} |
javascript_000000052 | <filename>webpack/webpack.common.js
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var gulpConfig = require('../.azdata/gulp-config');
var baseFolderName = 'assets';
var projRoot = path.resol... | javascript | 820 | bigcode/starcoderdata | {"repo_path": "webpack/webpack.common.js", "repo_name": "xtforgame/az-ricio-dev", "stars": 0, "orig_id": "52"} |
javascript_000000053 | import NativeModule from 'module'
import vm from 'vm'
function createContext (context) {
const sandbox = {
Buffer,
clearImmediate,
clearInterval,
clearTimeout,
setImmediate,
setInterval,
setTimeout,
console,
process,
__VUE_SSR_CONTEXT__: context
}
sandbox.global = sandbox
... | javascript | 217 | bigcode/starcoderdata | {"repo_path": "src/server/run-in-vm.js", "repo_name": "tommyzqfeng/vue-study", "stars": 2, "orig_id": "53"} |
javascript_000000054 | <gh_stars>0
'use strict';
const gulp = require('gulp');
const sass = require('gulp-sass');
const prefix = require('gulp-autoprefixer');
const plumber = require('gulp-plumber');
const browserSync = require('browser-sync').create();
gulp.task('sass', () =>{
gulp.src('./sass/**/*.scss')
.pipe(plumber())
.pip... | javascript | 183 | bigcode/starcoderdata | {"repo_path": "gulpfile.js", "repo_name": "J0rgeSerran0/j0rgeserran0.github.io", "stars": 0, "orig_id": "54"} |
javascript_000000055 | <reponame>xpertana/engage-demo
import style from "./ButtonA.module.css";
import React from "react";
export default function Round1(props) {
return (
<button type="button" class={style.btn}>
{props.text}
</button>
);
}
| javascript | 61 | bigcode/starcoderdata | {"repo_path": "src/components/EngageClient/ui/buttons/ButtonD.js", "repo_name": "xpertana/engage-demo", "stars": 0, "orig_id": "55"} |
javascript_000000056 | const re = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
export default (emails) => {
const invalidEmails = emails
.split(',')
.map((email) => email.trim())
.filter((email) => re.test(email) === false);
if (invalidEmails.length) {
return `These emails are invalid: ${inval... | javascript | 119 | bigcode/starcoderdata | {"repo_path": "client/src/utils/validateEmails.js", "repo_name": "shashankkatte/feedbackr-mern", "stars": 6, "orig_id": "56"} |
javascript_000000057 | <gh_stars>0
import { Link } from 'react-router-dom';
import Layout from '../Components/Layout';
export default function Page404() {
return(
<Layout head="No encontrado :c" subheading="404" type="ciudadano">
<h1>Esa ruta no existe</h1>
<Link to="/">Volver al inicio</Link>
</... | javascript | 87 | bigcode/starcoderdata | {"repo_path": "src/Views/Page404.js", "repo_name": "3CV11-IS-Equipo-4/ciudadano-poda-app", "stars": 0, "orig_id": "57"} |
javascript_000000058 | const mongoose = require("mongoose");
const Schema = mongoose.Schema;
var commentSchema = new Schema(
{
user: {
type: mongoose.Schema.Types.ObjectId,
ref: "User",
},
expense: {
type: String,
required: true,
},
ideal: {
type: Number,
required: true,
},
... | javascript | 119 | bigcode/starcoderdata | {"repo_path": "models/comments.js", "repo_name": "IntellectualCoders/project-cost-cutting", "stars": 0, "orig_id": "58"} |
javascript_000000059 | <filename>lib/job.js
const uuid = require('uuid/v4');
/**
* A class wrapping a {@link external:JobPayload|JobPayload}
*
* @example
* // with a client
* const client = await faktory.connect();
* const job = client.job('SendWelcomeEmail', id);
*
* @example
* // without a client
* const job = new Job('SendWelco... | javascript | 1,056 | bigcode/starcoderdata | {"repo_path": "lib/job.js", "repo_name": "draftedus/faktory_worker_node", "stars": 0, "orig_id": "59"} |
javascript_000000060 | import React from "react";
import styled from "styled-components";
const Form = styled.form`
display: flex;
flex-direction: row;
justify-content: center;
`;
const Space = styled.div`
margin-left: 15px;
`;
const Spacespan = styled.span`
margin-left: 5px;
`;
const QueryParams = ({
year,
years,
country,... | javascript | 325 | bigcode/starcoderdata | {"repo_path": "src/QueryParams.js", "repo_name": "sevtapim/redi-react", "stars": 0, "orig_id": "60"} |
javascript_000000061 | <filename>server/sso/index.js<gh_stars>0
/* eslint-disable no-console */
const base64url = require('base64url');
const cookie = require('cookie');
const proxy = require('request');
const config = {
ssoAuth: {
host: 'www.ovh.com',
baseUrl: 'https://www.ovh.com/cgi-bin/crosslogin.cgi',
devLoginUrl: 'https:... | javascript | 807 | bigcode/starcoderdata | {"repo_path": "server/sso/index.js", "repo_name": "jleveugle/ovh-manager-webpack-toolkit", "stars": 0, "orig_id": "61"} |
javascript_000000062 | module.exports = {
'dbUrl': 'mongodb://data01.audacy.space:11001/telemetry',
'dbOptions': {
'user': 'audacyapp',
'pass': '<PASSWORD>',
'auth': {
'authdb': 'admin'
},
"server": {
"auto_reconnect": true,
"poolSize": 200,
"socketOptions": {
"keepAlive": 1
}... | javascript | 341 | bigcode/starcoderdata | {"repo_path": "config/systemSettings.js", "repo_name": "shalininegi/quindar-mqclient", "stars": 0, "orig_id": "62"} |
javascript_000000063 | <reponame>calebperelini/nzbikeaccidents
import _typeof from "@babel/runtime/helpers/esm/typeof";
var isBrowser = (typeof process === "undefined" ? "undefined" : _typeof(process)) !== 'object' || String(process) !== '[object process]' || process.browser;
var globals = {
self: typeof self !== 'undefined' && self,
win... | javascript | 238 | bigcode/starcoderdata | {"repo_path": "node_modules/@loaders.gl/core/dist/esm/utils/globals.js", "repo_name": "calebperelini/nzbikeaccidents", "stars": 5, "orig_id": "63"} |
javascript_000000064 | const express = require('express')
const router = express.Router()
/*const strFullproductname = "Sony Vector 8000xc";
const strBrandName = "Sony";
const strProductName = "Vector 8000xc";
//const strModelName = "";
//const strCategory = "Electrical appliances and equipment";
const strModelNumber = '001-600006';
const s... | javascript | 2,466 | bigcode/starcoderdata | {"repo_path": "app/views/product-case-testing/_routes.js", "repo_name": "DH02/product-safety-database-prototypes", "stars": 3, "orig_id": "64"} |
javascript_000000065 | const regex = / SUMME MONATSABRECHNUNG VISA /;
function canParse() {
return true;
}
function parse(text) {
return {
payee: {
name: null
},
text
}
}
export default {parse, canParse} | javascript | 61 | bigcode/starcoderdata | {"repo_path": "src/csv/parser/fallbackParser.js", "repo_name": "khujo/comdirect-to-ynab", "stars": 2, "orig_id": "65"} |
javascript_000000066 | <reponame>SCPR/lunchbox<filename>www/js/waterbug-config.js
// widths and padding
var canvasWidth = 1000; // this will be the exported width of the image
var elementPadding = 40; // padding around the logo and credit text
// logo configuration
// the name of the logo object should match the value of the corresponding r... | javascript | 760 | bigcode/starcoderdata | {"repo_path": "www/js/waterbug-config.js", "repo_name": "SCPR/lunchbox", "stars": 177, "orig_id": "66"} |
javascript_000000067 | <gh_stars>0
var basicCard = require('./basicCard.js');
var clozeCard = require('./clozeCard.js');
var quest = require('./quest.js')
var inquirer = require('inquirer');
var basicArray = [];
var clozeArray = [];
inquirer.prompt([{
name:'addOrShow',
message: 'Would you like to make Flash Cards?',
type: 'list',
choic... | javascript | 674 | bigcode/starcoderdata | {"repo_path": "main.js", "repo_name": "jinsukmik/flashcard-generator", "stars": 0, "orig_id": "67"} |
javascript_000000068 | 'use strict';
Object.defineProperty(
exports,
'__esModule',
{ value: true }
);
module.exports = exports.default = require('./src/parser'); | javascript | 31 | bigcode/starcoderdata | {"repo_path": "index.js", "repo_name": "martinswiderski/config.ini", "stars": 3, "orig_id": "68"} |
javascript_000000069 | /*!
* express-session-ws-rn
* Copyright(c) 2019 <NAME>
* MIT Licensed
*/
/*!
* forked from express-session
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 <NAME>
* Copyright(c) 2014-2015 <NAME>
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var cookie = require('cookie');
v... | javascript | 3,804 | bigcode/starcoderdata | {"repo_path": "index.js", "repo_name": "kuzyakiev/session-ws-rn", "stars": 0, "orig_id": "69"} |
javascript_000000070 | <gh_stars>1-10
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export default function ({ getService, loadTestFile }) {
con... | javascript | 130 | bigcode/starcoderdata | {"repo_path": "x-pack/test/api_integration/apis/uptime/index.js", "repo_name": "albertzaharovits/kibana", "stars": 2, "orig_id": "70"} |
javascript_000000071 | /* eslint-env jest */
import MockAdapter from 'axios-mock-adapter'
import { createStore } from '../../../../test/helpers/store'
import { addSegment, clearSegments, incrementSegmentWidth, getLastStreet } from '../actions/street'
// ToDo: Remove this once refactoring of redux action saveStreetToServerIfNecessary is co... | javascript | 1,481 | bigcode/starcoderdata | {"repo_path": "assets/scripts/store/__tests__/street.integration.test.js", "repo_name": "pkuzmickas/streetmix", "stars": 0, "orig_id": "71"} |
javascript_000000072 | import React from "react";
import PageBaseComponent from "../../components/PageBaseComponent/PageBaseComponent";
import ModalContainer from "../../components/Modals/ModalContainer";
import Modal from "../../components/Modals/Modal";
const Challenge = () => {
return (
<PageBaseComponent className="Challenge">
... | javascript | 136 | bigcode/starcoderdata | {"repo_path": "src/pages/Challenge/Challenge.js", "repo_name": "Izook/portfolio", "stars": 0, "orig_id": "72"} |
javascript_000000073 | function submit_message(message) {
$.post( "/send_message", {message: message}, handle_response);
function handle_response(data) {
// append the bot repsonse to the div
$('.card-body').append(`
<div class="d-flex justify-content-start mb-4">
<div class="img_cont_msg">
... | javascript | 574 | bigcode/starcoderdata | {"repo_path": "static/custom2.js", "repo_name": "ahkarimi/MMTOD", "stars": 0, "orig_id": "73"} |
javascript_000000074 | <reponame>ranwawa/vant-weapp
import Page from '../../common/page';
Page({
data: {
checkbox1: true,
checkbox2: true,
checkbox3: true,
checkboxLabel: true,
checkboxSize: true,
checkboxShape: true,
list: ['a', 'b', 'c'],
result: ['a', 'b'],
result2: [],
result3: [],
activeIco... | javascript | 228 | bigcode/starcoderdata | {"repo_path": "example/pages/checkbox/index.js", "repo_name": "ranwawa/vant-weapp", "stars": 2, "orig_id": "74"} |
javascript_000000075 | import { Directive, EventEmitter, Host, Input, NgZone, Output } from '@angular/core';
import { Content } from '../content/content';
import { GestureController, GESTURE_PRIORITY_REFRESHER, GESTURE_REFRESHER } from '../../gestures/gesture-controller';
import { isTrueProperty } from '../../util/util';
import { Platform } ... | javascript | 5,515 | bigcode/starcoderdata | {"repo_path": "node_modules/ionic-angular/es2015/components/refresher/refresher.js", "repo_name": "gapozzebom/fellow", "stars": 1, "orig_id": "75"} |
javascript_000000076 | <gh_stars>1-10
define([
'angular',
'core/services/CommonResolveStateService',
'angular-ui-router',
'views/core/page-not-found'
],function(ng,CommonResolveStateService){
var app = ng.module('CoreRouterApp',['ui.router']);
app.config(['$stateProvider', '$urlRouterProvider',
function($st... | javascript | 218 | bigcode/starcoderdata | {"repo_path": "src/modules/core/js/app/CoreRouterApp.js", "repo_name": "christophe238/angular-ui-dashboard", "stars": 6, "orig_id": "76"} |
javascript_000000077 | <filename>src/pages/404.js<gh_stars>1-10
import React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
const NotFoundPage = () => (
<Layout>
<SEO title="404: Not found" />
<h1>451 – Unavailable For Legal Reasons</h1>
Just kidding - it's a 404. <br></br>
It s... | javascript | 129 | bigcode/starcoderdata | {"repo_path": "src/pages/404.js", "repo_name": "akhilam512/akhilam512.github.io", "stars": 1, "orig_id": "77"} |
javascript_000000078 | class App
{
static parseDouble(number, digits = 2)
{
return Number.parseFloat(parseFloat(number).toFixed(digits))
}
static borrowedTypeToDays(borrowedType, borrowedTime)
{
let idditionalDaysDateStart = 0
switch (borrowedType)
{
case 'day':
idditionalDaysDateStart = borrowedTime
break;
c... | javascript | 177 | bigcode/starcoderdata | {"repo_path": "src/Helpers/App.js", "repo_name": "ElCusanero/amortization-system", "stars": 0, "orig_id": "78"} |
javascript_000000079 | <filename>packages/adminjs-e2e/cypress/integration/external-employees/create-external-employee.spec.js
/// <reference types="cypress" />
/// <reference types="../../support" />
context('resources/ExternalEmployees/actions/new', () => {
before(() => {
cy.abLoginAPI({ password: Cypress.env('ADMIN_PASSWORD'), email... | javascript | 295 | bigcode/starcoderdata | {"repo_path": "packages/adminjs-e2e/cypress/integration/external-employees/create-external-employee.spec.js", "repo_name": "NeobilitySRL/adminjs", "stars": 3821, "orig_id": "79"} |
javascript_000000080 | <gh_stars>0
const mongoose = require('mongoose');
const WeatherSchema = new mongoose.Schema({
weatherForNext5days: String,
weatherForNext28days: String,
suggestions: String,
imgPath: String
});
const Weather = mongoose.model('Weather', WeatherSchema);
module.exports = {
Weather,
}; | javascript | 71 | bigcode/starcoderdata | {"repo_path": "database/models/weather.js", "repo_name": "shripriyaprabhakar/Boiler-plate-Mongo-React-Node-Express-Webpack", "stars": 0, "orig_id": "80"} |
javascript_000000081 | <reponame>arsa666/uit
'use strict';
var Uit = {};
/**if developer wants to apply his/her own rivets rules, then include that file before uit.js
and make window.customRivets === true. **/
if (window.rivets && _.isUndefined(window.customRivets)) {
(function () {
rivets.configure({
// Attribute... | javascript | 5,126 | bigcode/starcoderdata | {"repo_path": "uit.js", "repo_name": "arsa666/uit", "stars": 1, "orig_id": "81"} |
javascript_000000082 | <gh_stars>10-100
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | javascript | 2,337 | bigcode/starcoderdata | {"repo_path": "clients/nodejs/google-api-nodejs-client/apis/prediction/v1.4.js", "repo_name": "cclauss/discovery-artifact-manager", "stars": 48, "orig_id": "82"} |
javascript_000000083 | <filename>bc/static_src/javascript/components/steps.js<gh_stars>1-10
import Accordion from './accordion';
class Steps {
static selector() {
return '[data-steps-container]';
}
constructor(stepsContainer) {
this.stepsContainer = stepsContainer;
this.steps = [];
stepsContaine... | javascript | 223 | bigcode/starcoderdata | {"repo_path": "bc/static_src/javascript/components/steps.js", "repo_name": "Buckinghamshire-Digital-Service/buckinghamshire-council", "stars": 1, "orig_id": "83"} |
javascript_000000084 | <reponame>ipselon/webcodesk_auth_tutorial
import forms from './forms';
import layouts from './layouts';
export default {forms,layouts,} | javascript | 34 | bigcode/starcoderdata | {"repo_path": "src/app/indices/userComponents/usr/index.js", "repo_name": "ipselon/webcodesk_auth_tutorial", "stars": 1, "orig_id": "84"} |
javascript_000000085 | import React from "react";
import { connect } from "react-redux";
import { Route, Redirect } from "react-router-dom";
import Header from "../components/Header";
import Footer from "../components/Footer";
import ScrollAnimation from "react-animate-on-scroll";
export const PrivateRoute = ({
isAuthenticated,
componen... | javascript | 225 | bigcode/starcoderdata | {"repo_path": "src/routers/PrivateRoute.js", "repo_name": "dumblole/budgetless", "stars": 1, "orig_id": "85"} |
javascript_000000087 | module.exports = {
mongoUrl: process.env.MONGO_URL || 'mongodb://localhost:27017/clean-node-api',
tokenSecret: process.env.TOKEN_SECRET || 'token_secret',
port: process.env.PORT || 5858
}
| javascript | 52 | bigcode/starcoderdata | {"repo_path": "src/main/config/env.js", "repo_name": "kelwinap/clean-node-api", "stars": 0, "orig_id": "87"} |
javascript_000000088 | <reponame>Marttinn/rose
/**
*
* App.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currentl... | javascript | 353 | bigcode/starcoderdata | {"repo_path": "app/containers/App/index.js", "repo_name": "Marttinn/rose", "stars": 0, "orig_id": "88"} |
javascript_000000089 | var Discord = require("discord.js"),
client = new Discord.Client(),
Enmap = require("enmap"),
db = new Enmap({name: "tickets"}),
devs = ["345152850751389697"],
prefix = "-"
const http = require("http");
const express = require("express");
const app = express();
app.get("/", (request, response) => {
console.log(Date.n... | javascript | 5,901 | bigcode/starcoderdata | {"repo_path": "index.js", "repo_name": "Matrks/ticket-bot", "stars": 0, "orig_id": "89"} |
javascript_000000090 | export default {
namespace: 'common',
state: {},
reducers: {
updateState(state, { payload }) {
return {
...state,
...payload,
};
},
replaceState(state, { payload }) {
if (payload) {
return payload;
}
return state;
},
},
};
| javascript | 72 | bigcode/starcoderdata | {"repo_path": "assets/src/models/common.js", "repo_name": "yukecookie/mmms", "stars": 0, "orig_id": "90"} |
javascript_000000091 | <reponame>Jiasm/simple-node-auth<gh_stars>0
const req = require('bd-require')
const {decrypt} = req('./libs/crypto')
module.exports = async function (context, next) {
if (/^\/login/.test(context.url)) {
await next()
} else {
let auth = context.header.authorization
let result = auth && decrypt(auth)
... | javascript | 129 | bigcode/starcoderdata | {"repo_path": "middlewares/auth.js", "repo_name": "Jiasm/simple-node-auth", "stars": 0, "orig_id": "91"} |
javascript_000000092 | module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser'
},
env: {
browser: true,
jest: true,
node: true
},
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:vue/strongly-recommended',
'prettier',
'prettier/vu... | javascript | 440 | bigcode/starcoderdata | {"repo_path": ".eslintrc.js", "repo_name": "polyglotdev/bluise-personal-site", "stars": 0, "orig_id": "92"} |
javascript_000000093 | <filename>node_modules/@zippytech/react-toolkit/Uploader/src/utils/pick-props.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pickProps;
/**
* Copyright (c) 2015-present, Zippy Technologies
*
* This source code is licensed under the MIT license found in the
* LIC... | javascript | 144 | bigcode/starcoderdata | {"repo_path": "node_modules/@zippytech/react-toolkit/Uploader/src/utils/pick-props.js", "repo_name": "lauriefacer/Facer", "stars": 0, "orig_id": "93"} |
javascript_000000094 | import { memo } from "react";
import {
useVirtual,
areItemPropsEqual,
List
} from "@af-utils/react-virtual-list";
const Item = memo(
({ i }) => <div className="border-t p-2 border-zinc-400">row {i}</div>,
areItemPropsEqual
);
const SimpleList = () => {
const model = useVirtual({
itemCo... | javascript | 112 | bigcode/starcoderdata | {"repo_path": "packages/website/components/examples/list/Simple/index.js", "repo_name": "nowaalex/af-react-table", "stars": 4, "orig_id": "94"} |
javascript_000000095 | <reponame>TreySchmidt/MagicMirror
// @ts-check
"use strict";
const fs = require("fs");
const path = require("path");
const { URL } = require("url");
const markdownIt = require("markdown-it");
const rules = require("./rules");
const helpers = require("../helpers");
const cache = require("./cache");
const ... | javascript | 6,765 | bigcode/starcoderdata | {"repo_path": "node_modules/markdownlint/lib/markdownlint.js", "repo_name": "TreySchmidt/MagicMirror", "stars": 0, "orig_id": "95"} |
javascript_000000096 | <reponame>lathroplabs/CodeLaboratoryAddin<filename>node_modules/@fluentui/react/lib-amd/components/DatePicker/DatePicker.styles.js
define(["require", "exports", "@fluentui/style-utilities"], function (require, exports, style_utilities_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true... | javascript | 550 | bigcode/starcoderdata | {"repo_path": "node_modules/@fluentui/react/lib-amd/components/DatePicker/DatePicker.styles.js", "repo_name": "lathroplabs/CodeLaboratoryAddin", "stars": 0, "orig_id": "96"} |
javascript_000000097 | const fs = require('fs')
const path = require('path')
const puppeteer = require('puppeteer')
const DOCUMENT_URL = {
classes: 'https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes',
elements: 'https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements',
}
const CODES_SELECTOR = '#index>ul>li>a>cod... | javascript | 381 | bigcode/starcoderdata | {"repo_path": "scripts/update-pseudos.js", "repo_name": "croutonn/tailwindcss-pseudo-elements", "stars": 102, "orig_id": "97"} |
javascript_000000098 | <filename>jsdocs.js<gh_stars>0
/** ****************************************************************************************************
* File: jsdocs.js
* Project: template-npm-module
* @author <NAME> <<EMAIL>> on 30-May-2018
*****************************************************************************************... | javascript | 260 | bigcode/starcoderdata | {"repo_path": "jsdocs.js", "repo_name": "mi-sec/geonet-layergl", "stars": 0, "orig_id": "98"} |
javascript_000000099 | 'use strict';
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | javascript | 17,030 | bigcode/starcoderdata | {"repo_path": "educoin-libs/bitcore-wallet-client/ts_build/lib/api.js", "repo_name": "bajosega/tkwallet", "stars": 0, "orig_id": "99"} |
javascript_000000100 | <filename>source/src/common/util/dom.js
module.exports = {
getWindowHeight: function () {
return window.innerHeight || window.clientHeight;
},
getWindowWidth: function () {
return window.innerWidth;
},
getPageHeight: function () {
return document.body.scrollHeight || document.documentElement.scrol... | javascript | 65 | bigcode/starcoderdata | {"repo_path": "source/src/common/util/dom.js", "repo_name": "liquidliang/liquidliang.github.io", "stars": 0, "orig_id": "100"} |
javascript_000000101 | <filename>data/lcp/index.js
const BusinessSubscriptionPlanStatus = require('./BusinessSubscriptionPlanStatus');
const AnnouncementAccessibilityType = require('./AnnouncementAccessibilityType');
const DashboardNotificationCategory = require('./DashboardNotificationCategory');
const ReleaseNoteAccessibilityType = require... | javascript | 1,092 | bigcode/starcoderdata | {"repo_path": "data/lcp/index.js", "repo_name": "ArtashMardoyan/koa-awesome-boilerplate", "stars": 0, "orig_id": "101"} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.