blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
132
path
stringlengths
3
236
src_encoding
stringclasses
29 values
length_bytes
int64
8
7.94M
score
float64
2.52
5.72
int_score
int64
3
5
detected_licenses
listlengths
0
142
license_type
stringclasses
2 values
text
stringlengths
8
7.94M
download_success
bool
1 class
ea7885c741b1cc96c4820a805643966cd403d64e
JavaScript
rchristie1/advancedJS
/Tasks/LettersInString.js
UTF-8
271
3.796875
4
[]
no_license
const theString = 'how many letters are you searching for that appear in this string'; let j = 0; function iterateText(text, letter){ for (let i = 0; i < text.length - 1; i++) { if (text[i] === letter){ j++ } } return j } iterateText(theString, 'i')
true
057cb505b4d14ff82c34cc92ea7a39994195202e
JavaScript
Chris009/MasterThesis2
/MasterZITraining/pages/scores/scores.js
UTF-8
1,623
2.671875
3
[]
no_license
 $(document).ready(function () { /*patients.sort(function (a, b) { return a.score - b.score; }); for (var i = patients.length - 1; i >= 0; i--) { var $row = $('<tr>' + '<td class="userName">' + patients[i].username + '</td>' + '<td class="scoreCell">' + patients[i].score + '<...
true
5fe482861ada7c10e3e7a495e6cd7b742f22a080
JavaScript
ertprs/Estudo
/Glass/Vue/PlanosConta/GruposConta/Componentes/LstGruposConta.js
UTF-8
7,067
2.546875
3
[]
no_license
const app = new Vue({ el: '#app', mixins: [Mixins.Objetos, Mixins.OrdenacaoLista()], data: { filtro: {}, numeroLinhaEdicao: -1, inserindo: false, grupoConta: {}, grupoContaOriginal: {}, categoriaContaAtual: {}, situacaoAtual: {} }, methods: { /** * Busca a lista de grup...
true
16d0c8f626612dba858cbcdebc88decddadf7354
JavaScript
g-u-i/lighthouseprinter
/archives/rasterize-light.js
UTF-8
1,426
2.671875
3
[]
no_license
"use strict"; var page = require('webpage').create(), system = require('system'), address, output, size, pageWidth, pageHeight; if (system.args.length < 3 || system.args.length > 5) { console.log('Usage: rasterize.js URL filename [paperwidth*paperheight|paperformat] [zoom]'); console.log(' paper (pdf ...
true
f9c0163acf52dc8a519d60282d7d1a2d57557790
JavaScript
VijayMVC/JsMain
/web/profile/phonecodes.js
UTF-8
1,783
2.65625
3
[]
no_license
function get_code(x,list) { try{ if(x=='i') { document.form1.State_Code.value=parselist(list,document.form1.City_India.value); //added by sriram for adding "Other" option in City Drop down if(document.form1.City_India.value=='Other') document.form1.Stat...
true
d349ea630ab02aa2d2eebeae5708b569a33cb325
JavaScript
jcharry/IPK
/app/components/Nav/NavItem.jsx
UTF-8
821
2.515625
3
[ "MIT" ]
permissive
import React from 'react'; class NavItem extends React.Component { render() { const { item, toggled, handleClick } = this.props; // const { title, handleClick, toggled, children } = item; // If we're passed a component, just render it directly // if (item.component) { // ...
true
93d0b2eb6ed41888d73aaed46130a94821ae32b5
JavaScript
ks563/liri-node-app
/liri.js
UTF-8
4,140
2.921875
3
[]
no_license
require("dotenv").config(); var keys = require("./keys.js"); var axios = require("axios"); var moment = require('moment'); var fs = require("fs"); var Spotify = require('node-spotify-api'); var search = process.argv[2]; var term = process.argv.slice(3).join(" "); //create function to use axios call to retrieve data ...
true
d0de3b7bef8c06b0d454d43d319cf2f3362548c2
JavaScript
ranjith12999/doctor_role
/src/components/Doctor_role/Appointment/SchedulerHome.jsx
UTF-8
1,670
2.625
3
[]
no_license
import Scheduler from './Scheduler'; import React,{useEffect,useState} from 'react' import axios from 'axios'; function SchedulerHome(){ const [eventData, setEventData] = useState([]); const [status, setStatus] = useState(false); const doctor_id = 'DA001' useEffect(()=>{ if(eventData.length==0)...
true
c401acf34f6b93ed23f5e523ba04577d17c5e560
JavaScript
Dylanseery17/Code_Challenge_Xml
/Challenge_2/Challenge_2.js
UTF-8
1,113
3.46875
3
[]
no_license
const fs = require('fs'); // Node js libary allowing to convert to XMLHttpRequest const DOMParser = require('xmldom').DOMParser; // Taking the following XML document, write code to extract the RefText values for the following // RefCodes: ‘MWB’, ‘TRV’ and ‘CAR' const ref_codes = [ "MWB", "TRV", "CAR"]; // File read ...
true
d3430348ecd7eaaf13ba1a346c27260fca838a1a
JavaScript
s-hiiragi/sakura_editor_macros
/src/modules/commons/sakura.js
SHIFT_JIS
5,572
3.03125
3
[ "CC0-1.0", "Apache-2.0" ]
permissive
/** * @file TNGfB^}NAPĨbp[ * @author s_hiiragi (https://github.com/s-hiiragi) */ // Wo (function() { var printbuf = []; /** * print(message) * AEgvbgɕo͂. * * ) print()̏o͂println()flush()ĂԂ܂Ńobt@O邱Ƃ * . * * message : any * o͂镶 * * usage: * print("hoge"); ...
true
50e67eac880234687cbfa793c770f1a57f940e9d
JavaScript
SreejithJayaprakash/DataVizCrashDataAnalysis
/script/Home.js
UTF-8
22,128
2.625
3
[ "MIT" ]
permissive
//Selection filters var filterDict = {}; filterDict["Postcode.No"]=""; filterDict["SPEED_ZONE"] = 0; filterDict["SafetyCheck"] = ""; filterDict["DayNight"] = ""; filterDict["Atmosph.Cond.Desc"] = ""; filterDict["BadLight"] = ""; filterDict["Year"] = 0; filterDict["SEVERITY"] = 0; filterDict["Age.Group"] = ""; filterDi...
true
5cb619482699a235867f6b09ec2c45b5b96cc9fc
JavaScript
Vacricticy/interview_vacricticy
/algorithm/6.链表/02.反转链表-剑指offer24.js
UTF-8
574
3.8125
4
[]
no_license
/* 方法一:双指针 */ function reverse(head) { var current = head; var prev = null; var tmp; while (current) { tmp = current.next; current.next = prev; prev = current; current = tmp; } return prev; } /* 方法二:递归 */ function reverse(head) { if (!head || !head.next) { return head; } var newLi...
true
ffe68895e7e361b5003e76df192994638635c9e2
JavaScript
Potaw/ScenarioPandemic
/assets/prepare.js
UTF-8
2,330
2.953125
3
[]
no_license
#!/usr/bin/env node /** Fonction principale, affiche les personnages: checkbox + image */ function run () { var myForm = document.getElementById("idBoxes"); var table = document.createElement("TABLE"); var row_number = 0; for (var i = 0; i < roles.length; i++) { if ( i % 5 == 0 ) { var row = document.create...
true
489c54c9ec5eae24718505f6cb643e813a522d95
JavaScript
ilksip/Full-Stack-open-2021
/part2/phonebook/src/components/Display.js
UTF-8
360
2.578125
3
[]
no_license
const Display = (props) => { return( props.persons .filter((person) => person.name.toLowerCase().includes(props.filter)) .map((person) => <div key={person.name}>{person.name} {person.number} <button onClick={() => props.deleteContact(person)}>delete</button></div>) ...
true
6e86408cd225be79197757c73553f91ed8765bc5
JavaScript
stefanofilippini/js-jsnacks-blocco-3
/Snack 1/main.js
UTF-8
4,244
3.078125
3
[]
no_license
console.log('JS OK'); /* Snack 1 1. Creare un oggetto che rappresenti un giocatore di basket, con le seguenti proprietà: - Codice giocatore - Nome - Cognome - Età - Media punti fatti per partita - Percentuale di successo per tiri da 3 punti 2. Generare tramite delle funzioni le statistiche di gioco, secondo queste reg...
true
f5da3cdb5c46f63fa51ba7b17c5d3cd306bceff7
JavaScript
xdebbie/basic-react-showcase
/src/pages/statesInput.js
UTF-8
3,197
3.28125
3
[ "0BSD" ]
permissive
import React, { Component } from 'react' import Layout from '../components/layout' import SEO from '../components/seo' // Import components import Navbar from '../components/navbar' // Assets import Code1 from '../images/states1.png' import Code2 from '../images/states5.png' import Code3 from '../images/states6.png'...
true
cbb084a2e0dddd748c03961fc93fada35af5f3d2
JavaScript
ucsd-tbp/tapbampoints-api
/server/controllers/middleware/filters.js
UTF-8
2,251
3.015625
3
[]
no_license
/** @file Defines middleware for parsing filters from the query string.. */ const debug = require('debug')('tbp:filters-middleware'); const map = require('lodash/map'); const isEmpty = require('lodash/isEmpty'); const endsWith = require('lodash/endsWith'); /** * Middleware that converts the remaining query string p...
true
83b0bf145bdfc2e8219b85bc33c0ae5a773373a3
JavaScript
yhu267/WebToolADAM
/static/jsfile/expertgraphedit/expert_archive/EditStep4_4xy.js
UTF-8
11,796
2.5625
3
[]
no_license
function initgeomap(){ geomap = new draw2d.Canvas('gfx_holder'); ii = 0; } function zoomin(){ zoom = geomap.getZoom() zoom = zoom/1.2 geomap.setZoom(zoom, true) } function zoomout(){ zoom = geomap.getZoom() zoom = zoom*1.2 geomap.setZoom(zoom, true) } function findFigureByID(id){ for (var i = 0; i ...
true
81c7cb4f1b3f83edd08aa285b9199da05dae6317
JavaScript
Vladi96/Node.js
/weather-app/app.js
UTF-8
783
3.140625
3
[]
no_license
let yargs = require('yargs'); let geoCode = require('./getGioCode.js'); let weather = require('./getWeather'); geoCode.geoCode('Sofia').then((response) => { weather.getWeather(response.latitude, response.longitude).then((res) => { let currentTemperature = farentToCel(res.body.currently.temperature); ...
true
810bc45dd2db7893107973cb4699ce801c8bf706
JavaScript
sim8/js-algorithms
/test/data-structures/binary-search-tree.spec.js
UTF-8
1,070
3.015625
3
[]
no_license
import { BinarySearchTree } from './../../src/library/data-structures/binary-search-tree'; const assert = require('assert'); describe('Binary Search Tree', () => { let bst; let intArray; beforeEach(() => { bst = new BinarySearchTree(); intArray = [3, 6, 66, 4, 12, 267, 43, 2, 7, 78, 85, 34, 45]; }); ...
true
e82d7cb9dc2ab87ac7ebbad0cf491c2882465c1b
JavaScript
vonpoland/s4f.admin
/test/unit/frontend/poll/pollActions.spec.js
UTF-8
2,905
2.5625
3
[]
no_license
/* global describe, it */ const expect = require('expect.js'); import polls from '../../../../public/js/lib/poll/reducer'; import { propertyChange, savePollStart, savePollFailed, savePollSuccess, notificationHasBeenDisplayed, CHANGE_LOCATION } from '../../../../public/js/lib/poll/actions'; describe('Poll actio...
true
f173d224f424005b985d4041bbb3de8f4698e001
JavaScript
colemanfoley/more-data-structures
/spec/hashTableSpec.js
UTF-8
1,036
2.9375
3
[]
no_license
describe("hashTable", function() { var hashTable; beforeEach(function() { hashTable = makeHashTable(); }); describe("set", function(){ it("should be a method", function() { expect(hashTable.set).toEqual(jasmine.any(Function)); }); it("should assign a unique index to a given key, store t...
true
07d1ccaa392b3ce74ed9fa74f03f12c1c65529cb
JavaScript
CarbuneanuAnton/Projects-JS
/OOP/№ 3/main.js
UTF-8
805
3.734375
4
[]
no_license
class Worker { constructor(name, surname, rate, days) { this.name = name; this.surname = surname; this.rate = rate; this.days = days; } get getSalary() { return this.rate * this.days; } } let worker1 = new Worker('Иван', 'Иванов', 10, 31); co...
true
93ffb19536d077ac26b003916dc7e5837dc3a46b
JavaScript
TysonJGrant/RL2D
/assets/Particle.js
UTF-8
326
2.765625
3
[]
no_license
class Particle { constructor(xpos, ypos) { this.x = xpos; this.y = ypos; this.opacity = 1; this.size = 8; } update(){ this.opacity/=1.2; this.size-=0.4; if(this.size < 0) this.size = 0; } get_info(){ return{x: this.x, y: this.y, size: this.size, opacity: this.opacity}; ...
true
a879024bc10459c5e6296568d6d24be51775175f
JavaScript
konsherman/Sherman_Konner_WIA
/Day2/HTML5 Adv/js/Patterns.js
UTF-8
1,044
2.921875
3
[]
no_license
window.onload = function() { var theCanvas = document.getElementById('Canvas1'); if (theCanvas && theCanvas.getContext) { var ctx = theCanvas.getContext("2d"); if (ctx) { // //create patter from an image // //make a var to hold the image // var patImg = new Image(); // //wait for the image...
true
941a8b714f767062b311cccfac2aa53ed39d2517
JavaScript
pascal-p/javascript-exercism
/transpose/transpose.js
UTF-8
1,577
3.828125
4
[]
no_license
/* Given an input text output it transposed. Roughly explained, the transpose of a matrix: ABC DEF is given by: AD BE CF Rows become columns and columns become rows. See https://en.wikipedia.org/wiki/Transpose. If the input has rows of different lengths, this is to be solved as follows: - Pad to...
true
08cf4ce0395fc8029a69ee132a0f81bcc0b41677
JavaScript
MonsterMakes/larry
/packages/libs/larry-environment/src/aws/aws-raw-services/AwsCloudFormation.js
UTF-8
8,777
2.515625
3
[]
no_license
'use strict'; class AwsCloudFormation { constructor() { } get _awsCloudFormationSdk(){ const awsSdk = require('../awsSdk'); return new awsSdk.CloudFormation(); } /** * For more information see the aws SDK docs https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudFormation.html#validateTemplate-prope...
true
b9daf51a17be49cc56589f11ad0a775671a58748
JavaScript
MMarioB/procorgolfapiv1
/src/controllers/participante.controller.js
UTF-8
3,052
2.84375
3
[]
no_license
const ParticipanteModel = require('../models/participante.model'); // Obtenemos la lista de todos los participantes exports.getParticipanteList = (req, res) => { ParticipanteModel.getAllParticipantes((err, participante) =>{ console.log('Aqui estamos!'); if(err) res.send(err); consol...
true
e84fad40e9f9a20d9045c87937d4498df87d6edc
JavaScript
jasa1704/Tienda_Virtual_NodeJS
/index.js
UTF-8
1,827
2.796875
3
[]
no_license
'use strict' const express = require('express') //lee la carpeta de node_modules e importa express const bodyParser = require('body-parser') //se importa la libreria con express, esta libreria funciona como un middelwere, express funciona como un middelwere // son capas que se van añadiendo y que cada vez que se reali...
true
3799fdbfad004be259126462877e1543ee2db7d4
JavaScript
mbIkola/react-native-tv-app
/store/middlewares/authmiddleware.js
UTF-8
1,578
2.6875
3
[]
no_license
import * as firebase from 'firebase'; import appfirebase from './..//../../android/app/src/config/db'; export default class AuthMiddleware{ static signup(credentials){ return (dispatch)=>{ dispatch(AuthAction.signup()) AuthMiddleware.registerUserOnFirebase(di...
true
e31d4bc6e50ee5267ae98310cc81004a8eb5a56f
JavaScript
MasujimaRyohei/locarestric.js
/src/js/locarestric.js
UTF-8
1,063
3.171875
3
[ "MIT" ]
permissive
function getLocation(success, error) { navigator.geolocation.getCurrentPosition( function (position) { var currentLocation = { latitude: orgRound(position.coords.latitude, 1000), longitude: orgRound(position.coords.longitude, 1000) }; succe...
true
e93cc88029bfeace8fa6056aa39f6313a7acb600
JavaScript
ziaochina/mk-rc-select
/tests/util.spec.js
UTF-8
2,499
2.90625
3
[ "MIT" ]
permissive
/* eslint-disable no-undef */ import { includesSeparators, splitBySeparators, getValuePropValue, defaultFilterFn, } from '../src/util'; describe('includesSeparators', () => { const separators = [' ', ',']; it('return true when given includes separators', () => { expect(includesSeparators(',foo,bar', se...
true
9efee70ba374f16bf39a7ac19ac9e1d4e94fdef4
JavaScript
jeromericks/jeromericks.github.io
/js/whackamole.js
UTF-8
3,327
2.609375
3
[]
no_license
$(document).ready(function() { "use strict"; $("html,body").css('cursor', "url(http://icons.iconarchive.com/icons/sirea/sharp-kitchen/128/Knife-icon.png), auto"); var moles; var userGuess; var score; var highScore = 0; var duration = 500; var timer; var timerInterval; var audio = new Audio('/sound/head.mp3'...
true
6c53eff4b649b4802190b1263535aba529791fe8
JavaScript
seangates/marko-migrate
/src/transformers/var-tag.js
UTF-8
576
2.671875
3
[]
no_license
'use strict'; function addVar(fromEl, toEl) { let nameAttr = fromEl.getAttribute('name'); let valueAttr = fromEl.getAttribute('value'); fromEl.removeAttribute('name'); fromEl.removeAttribute('value'); toEl.setAttributeValue(nameAttr.value.value, valueAttr && valueAttr.value); } exports.transform...
true
1ebf3432896b74bde459e601aae5b1a64f38bfcd
JavaScript
DMRobertson/coding-demo
/demo.js
UTF-8
19,758
2.875
3
[]
no_license
"use strict" const NUMBER_OF_WORKERS = 4; const SHARED = !!window.SharedArrayBuffer; class WorkerPool { /* No idea what I'm doing here. The intention was to make a system such that the workers only handle the most recent computation request. Then the user can can spam the slider without the workers recomputing at ...
true
194b84b0bdc03a3801036e9a52fee1cd7d5ce67c
JavaScript
levichen/leetcode
/0167_TwoSumIIInputArrayIsSorted_20190616.js
UTF-8
797
3.453125
3
[]
no_license
/** * @param {number[]} numbers * @param {number} target * @return {number[]} */ var twoSum = function (numbers, target) { const hash = {} for (let i = 0; i < numbers.length; i = i + 1) { const number = numbers[i] if (hash[number] !== undefined) { return [hash[number] + 1, i + 1] } else { ...
true
05feef5237f31be7a91ea105cb30e9649d823dfd
JavaScript
mohamedorabi91/mind-the-fog
/game/world_objects/Character.js
UTF-8
1,816
2.828125
3
[]
no_license
class Character{ constructor(name, strength, dexterity, vitality, objid) { this.name = name; this.strength = strength; this.dexterity = dexterity; this.vitality = vitality; this.maxVitality = vitality; this.objid = objid; this.effects = []; } } class Bo...
true
b394cabc9cfafae4c609f915eb640685d8481134
JavaScript
JasonJPeng/Block46
/client/src/util/Auth.js
UTF-8
3,391
2.6875
3
[ "MIT" ]
permissive
import axios from "axios"; // authentication related information export default new class { constructor() { // local auth this.localAuth = { email: "", password: "", loginMsg: "", signupMsg: "" }; // three status: UNKNOWN, SUCCESS, F...
true
4a38a0394970b4cc0996366f6f3e8bf4ae126d49
JavaScript
alyssamw/oilrig-tut
/src/components/ToDoList.js
UTF-8
1,987
2.546875
3
[]
no_license
import React, { Component } from 'react'; import Blah from './Blah.js' import ToDo from './ToDo.js' import 'todomvc-common/base.css' import 'todomvc-app-css/index.css' class ToDoList extends Component { constructor(props) { super(props) } render() { let filteredList = this.props.tdlist.filter((val, in...
true
869194808016c94b9bc86bf69c1624ef87e0c36b
JavaScript
orlykor/internet-ex4
/hujinet.js
UTF-8
5,829
3.15625
3
[]
no_license
/** * finds the title in the http request * * @param httpMessage * @param messageElem * @returns {number}the index of the title */ function findTitle(httpMessage, messageElem) { //there maybe empty lines till we get to the title for (var i = 0; i < httpMessage.length; i++) { if (httpMess...
true
baf6005fdbe8c0dccf5bbbd08534b191c7db5c5b
JavaScript
leoboyerbx/stackalert
/assets/js/modules/StackAlert.js
UTF-8
3,845
2.828125
3
[]
no_license
class StackAlert { constructor (message, type = 'light', expiration = null, closable = true, stackable = true) { const element = document.createElement('div') element.classList.add('stack-alert', 'appear') let content = `<div class="alert alert-${type}"> <div class="stack-alert-content"> ...
true
0d61478069b47f80ed298563940c135222f04b28
JavaScript
magic-next/front
/src/components/DeckView/DeckViewCopy/index.jsx
UTF-8
1,427
2.65625
3
[]
no_license
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import Button from '@/components/Button'; const categoryText = (cards) => cards .map(({ name, count }) => `${count} ${name}`) .join('\n'); const genList = (entries) => entries .map(([, cards]) => categoryText(cards)) .join('\n'); co...
true
b4ee1965e7c83f9f2e2053de9ac5dc2c806bd36c
JavaScript
cenkayberkin/js-data-structures-
/linkedlist.js
UTF-8
1,422
3.609375
4
[]
no_license
function Node(value) { this.value = value; this.prev = null; this.next = null; } function LinkedList(){ this.num_elements = 0; this.head = null; this.tail = null; this.insert = function(node){ if (this.head == null){ this.head = node; this.tail = node; }else{ node.next = this.h...
true
cfb7b373cbd7d08879c150ff849ff2daf7e06592
JavaScript
mariuslundgard/vanilla
/flavor4/details.js
UTF-8
1,320
3.109375
3
[]
no_license
'use strict' /* * Approach inspired by MVC */ class DetailsModel extends Model { setOpen(open) { this.setState({...this.state, open}) } } class DetailsView { constructor(model) { this.model = model this.elm = null } setElement(elm) { this.elm = elm } patch(prevState) { if (prevS...
true
6dcd9f39e0e39f93beaf563f9c4b739116553c58
JavaScript
frankRose1/Geopins
/controllers/userController.js
UTF-8
1,684
2.96875
3
[]
no_license
const User = require('../models/User'); // will verify the token sent from the client const { OAuth2Client } = require('google-auth-library'); const client = new OAuth2Client(process.env.OAUTH_CLIENT_ID); /** * See if a user already exists in the database * @param {string} email - email returned from google's API ...
true
7e33226d72203bf33c6220adc3a9fc735f137f49
JavaScript
royeeshemesh/next-ssr-workshop
/api/posts.js
UTF-8
479
2.5625
3
[]
no_license
const axios = require('axios'); const posts = require('express').Router(); posts.get('/', async (req, res) => { const result = await axios.get('https://jsonplaceholder.typicode.com/posts'); res.status(200).send(result.data.splice(0, 30)); }); posts.get('/:postId', async (req, res) => { const {postId} = req.para...
true
1a4823452c5516adc7052229ab538a277a75e940
JavaScript
chitramaddy/liri-node-app
/liri.js
UTF-8
7,623
2.828125
3
[]
no_license
require("dotenv").config(); //variables for npm packages var inquirer = require("inquirer") var request = require("request"); var fs = require("fs"); var Spotify = require('node-spotify-api'); var Twitter = require('twitter'); //spotify and twitter ids var keys = require("./keys"); var spotify = new Spotify({ i...
true
2ea39fb286e32bd7447f3af60f9eb629766a458e
JavaScript
compagnb/data-structures
/inClassWork/inclass4aa.js
UTF-8
2,109
3.1875
3
[]
no_license
var fs = require('fs'); //part of core modules doesn't need an installvar cheerio = require('cheerio'); // npm intall cheerio var async = require('async'); // npm install async var request = require('request'); // npm install request var cheerio = require('cheerio'); // npm intall cheerio // for google API // SETTING...
true
71115645cb98fe401037d767ab069bc6c1175d3c
JavaScript
bhosale-ajay/javascript-pad
/samples/OOP.js
UTF-8
1,050
3.953125
4
[ "MIT" ]
permissive
//*Classes*// //ES5// function Person(name) { this.name = name; } Person.prototype.run = function () { console.log(this.name + " is running."); }; var p = new Person("Ajay"); p.run(); //If new was not used //*this* will be global scope //in this b wont be a instance //of class Person var b = Person()...
true
a1178b8c500eda0d1d165459828a99ab6b69892f
JavaScript
rajasekarapce/expressjs
/phone-book-api/services/contactServices.js
UTF-8
1,526
2.671875
3
[]
no_license
//global contacts var Contact = require("../model/contact"); //1. connect to db //create contact exports.createContact = function (req, callback){ var contactDao = new Contact(req.body); contactDao.save(function(err, savedConact){ if(!err){ console.log(`contact registered successfully with...
true
756157c8aa7039af25aa8f630114e94c34f7d6c7
JavaScript
feldsteina/UFO_Sightings
/static/js/app.js
UTF-8
1,169
3.171875
3
[]
no_license
// from data.js var tableData = data; // YOUR CODE HERE d3.select('tbody') .selectAll('tr') .data(tableData) .enter() .append('tr') .html(function (d) { return `<td>${d.datetime}</td><td>${d.city}</td><td>${d.state}</td><td>${d.country}</td><td>${d.shape}</td><td>${d.durationMinutes}</td><...
true
d58778c3a9ea0e101b5a6d69ee4b9d2013933621
JavaScript
spicyShoyo/411
/src/app/views/graph-view-save.js
UTF-8
1,618
2.640625
3
[ "MIT" ]
permissive
//this file is to save the original version, use graph-view.js instead import vis from 'vis'; import React from 'react'; import uuid from 'uuid'; class Graph extends React.Component{ constructor(props, context) { super(props, context) this.props= { graph: {}, identifier:uuid.v4(), style:{w...
true
bcb9f82cf3b7d4b3defae1cf320f1dde30527edc
JavaScript
Tisdale511/js-looping-and-iteration-looping-code-along-sfo01-seng-ft-060120
/index.js
UTF-8
394
3.34375
3
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
// Code your solutions in this file const nameArray = ["Lisa", "Kaitlin", "Jan"] const msgArr = [] function writeCards(names, event) { for(let i = 0; i < names.length; i += 1){ msgArr.push(`Thank you, ${names[i]}, for the wonderful ${event} gift!`); } return msgArr } function countDown(i){ whil...
true
78604105cb93dc3c7e50c30897abb87defee5a46
JavaScript
Dooxe59/random-cocktail
/src/App.js
UTF-8
1,400
2.546875
3
[]
no_license
import React, { useState, useEffect } from "react"; import axios from "axios"; import "./App.css"; import Cocktail from "./cocktail/Cocktail"; import { Layout, Button } from "antd"; const { Header, Footer, Content } = Layout; const App = () => { const [cocktail, setCocktail] = useState(null); const [loadCockta...
true
50ad9b16e41523b5ca0efcc7c4759ff5b28e86d8
JavaScript
JoBCB/Ways_Of_Moving_Butoh
/chicau_butoh_perform.js
UTF-8
4,492
2.703125
3
[]
no_license
/* <meta content="Butoh , open spaces , body , movement , score , script, programming " name="keywords"> <meta content="Butoh, ways of moving project" name="description"> <meta name="author" content="Joana Chicau"> <title> - performance piece. </title> */ /* MAPS // Butoh & body input data // google earth...
true
3c534774ec59ac06e3fd6d8dce3076ba73ab8dca
JavaScript
srdjanSrdjan9/reactjs
/app/components/kreiranje-otpremnice/service.js
UTF-8
1,493
2.71875
3
[]
no_license
function preparePayload(state) { const stavke = [...state.formState.Stavke]; const normalizedStavke = []; stavke.forEach(x => { const newStavka = { ...x, RedniBrojStavke: stavke.indexOf(x) + 1, UkupnaCena: x.Kolicina * x.JedCena, JedMere: x.JedMere === 1 ? 'kg' : 'kom' }; norma...
true
b556f7992098404d4e580866739b078326482767
JavaScript
atrathbone/Ghost-Hunt-Meltdown
/src/animation.js
UTF-8
448
2.828125
3
[]
no_license
class Animation { constructor(width,height) { this.frameCounter = 0; this.width = width || 50; this.height = height || 50; } animate(loadedAnimationImages, x, y, frames) { image(loadedAnimationImages[this.frameCounter], x, y, this.width, this.height); if (this.fr...
true
711ec5a439e0cbfc14bc1c9cb1f485430f503fbb
JavaScript
jcestariolli/learning
/udemy_nodejs/section_4/class_21/D6_ByValueByReference/Finished/app.js
UTF-8
232
3.5
4
[ "ISC" ]
permissive
// pass by value function change(b) { b = 2; } var a = 1; change(a); console.log(a); // pass by reference function changeObj(d) { d.prop1 = function() {}; d.prop2 = {}; } var c = {}; c.prop1 = {}; changeObj(c); console.log(c);
true
8bb7025f9a08dfb6d1387a14b8cf391bc5b6431e
JavaScript
valexiev/Blockchain-Tools
/node/models/transactionsStack.js
UTF-8
562
2.65625
3
[]
no_license
class TransactionsStack { constructor() { this.transactions = {} } getAllPending() { return this.transactions } draw() { var tx = this.transactions this.transactions = {} return tx } addTx(tx) { this.transactions[tx.hash] = tx } removeTx(tx) { delete this.transactions[tx.hash] } addTxArr(...
true
f3fcde5978ee55e22ce361fd80986f6564aa7be3
JavaScript
weixingp/slay-the-software-backend
/main/static/main/script.js
UTF-8
1,285
2.765625
3
[]
no_license
function changeWorld(selectObject) { const world_name = selectObject.value window.location.replace("/admin/campaign_statistics?world=" + world_name) } function changeWorldClass(selectObject) { const world_name = document.getElementById("select-world").value; const class_name = selectObject.value; i...
true
9d740be4e7d443ee31022b78acb236af3563a349
JavaScript
Liza-Shch/TaskMailRU
/public/blocks/NumberVerifyNumber/NumberVerifyNumber.js
UTF-8
1,986
2.84375
3
[]
no_license
import { MASK_TYPES, MASK_RENDER_DATA, NUMBER_VERIFY_NUMBER_CLASSES } from './const.js'; export default class NumberVerify { constructor({targetRender = document.body, mask}) { this._targetRender = targetRender; this._mask = mask; } getMask() { return this._mask; } setMask(mask) { this._mask = mask; } ...
true
d482fda84e61c36fbe9e63156bed1d9cfc464145
JavaScript
bmatheny/dotfiles
/src/js/runjslint.js
UTF-8
943
2.65625
3
[]
no_license
/*global JSLINT*/ var home = environment.HOME; var body = null; var file = null; var globalarguments = arguments; function getFile() { if ( globalarguments.length < 1 ) { print('Argument length must be greater than 0. You must specify code to be checked.'); return false; } body = globalarguments[0]; if ( !ho...
true
974dbc7778be789bea609e534df5360310753e1f
JavaScript
V-School-Module-7/obard
/client/src/ResOverview.js
UTF-8
2,031
2.671875
3
[]
no_license
// ResOverview.js // ============================== // imports import React from "react" import "./styles/ResOverview.css" import axios from "axios" // declare variables let endWeekDay = "NA" let endMonth = "NA" let endDay = "NA" let endYear = "NA" // component const ResOverview = props => { let startWeeekDay =...
true
9c41679fe3982d17829877921dc41503ac8ba55d
JavaScript
Vizzuality/GeoCAT
/app/assets/javascripts/editor/Layout/NewSources/new_source_model.js
UTF-8
884
2.515625
3
[]
no_license
/** * New source model and collection :) * * - New sources would need: * * · name (name of the source type) * · value (value of the query or the file set) * · exts (extension of the files, if needed) * · type (type of source, search or upload) * · url (where to search the ...
true
472ca6dd63dead2a6dba5104d4042583b904458e
JavaScript
xodagency/xoda-cli
/src/getRoot.js
UTF-8
598
2.5625
3
[]
no_license
let fs = require("fs"); const path = require("path"); const getRoot = (configFilename) => { let lastpath = ""; let foundRoot = false; const _getRoot = (url) => { if ( fs.existsSync(path.join(url, configFilename)) || fs.existsSync(path.join(url, "package.json")) ) { foundRoot = true; ...
true
095d1865184dfbb7e6c1ed41b259cbd6397f44fb
JavaScript
alysonmiguel/Site-ru
/js/script.js
UTF-8
2,236
3.140625
3
[]
no_license
let username = document.getElementById("username").value; let email = document.getElementById("email").value; let assunto = document.getElementById("assunto").value; let textarea = document.getElementById("textarea").value; let erro = []; function verificar() { let ready = true; username = document.getEl...
true
24d811f63b660a30f3f30cc91149b8f18be058ed
JavaScript
Jowagoal/Jowagoal.github.io
/firstproject/sketch.js
UTF-8
947
3.390625
3
[ "Unlicense" ]
permissive
// Project Title // Your Name // Date // // Extra for Experts: // - describe what you did to take this project "above and beyond" let redAmount = 0; let redChangeAmount = 1; let greenAmount = 0; let greenChangeAmount = 2; let blueAmount = 0; let blueChangeAmount = 3; function setup() { createCanvas(windowWidth, w...
true
578d45dfaa02a79b1de54c8e08dcc64b6b3d77fd
JavaScript
MindaugasNavickas/Advanced-JavaScript
/src/TrendingMovies.js
UTF-8
2,779
2.53125
3
[]
no_license
import React from "react"; import ReactDOM from "react-dom"; import axios from "axios"; import Movie from "./Movie"; // import UserCard from "./userCard.js"; // import data from "./data"; // console.log(data.results[0]); class TrendingMovies extends React.Component { constructor(props) { super(props); this...
true
ba9d57f80bebceccf28937623e9c42ec4fba7c1d
JavaScript
thismarvin/sorts
/src/modules/visualizers/selection-sorter.mjs
UTF-8
2,132
2.6875
3
[ "MIT" ]
permissive
import { Visualizer } from "./visualizer.mjs"; import { Histogram } from "../graphing.mjs"; class SelectionSorter extends Visualizer { constructor(id) { super(id); this.searching = false; this.indexBeforeSearch = this.index; this.minimumIndex = this.index; this.in...
true
490adc0269a8853b036af56659b691ecb87ab604
JavaScript
jcbellovargas/SolutionsLeatherGoods
/Presentation/ASF.UI.WbSite/Scripts/Cart.js
UTF-8
3,256
2.609375
3
[ "MIT" ]
permissive
 function vueRender(products, cart_data) { $.each(products, function (index, value) { value.quantity = 1; }); var cart = []; if (cart_data != null) $.each(cart_data, function (index, value) { value = { item: { Price: value.Price, Id: value.ProductId }, quantity: value.Quantity }; ...
true
c216e11384ec4683cfe5c8cfe5cc00be2a5d54fa
JavaScript
ramcguire/wishlist-web
/server.js
UTF-8
2,517
3.078125
3
[]
no_license
/** * @file server.js * @brief - Handles all backend logic for the wishlist application. * * Communicates with a database to handle creating, reading, * updating, and deleting information from a wishlist. * * @author - Ryan McGuire * @date 12/15/2019 */ const express = require('express'); const mysql = r...
true
ebab9e6d44e8f865fe43909406c7f40f4c8592b7
JavaScript
j24m/Cash-Register
/app.js
UTF-8
1,213
3.359375
3
[]
no_license
const billAmount = document.querySelector("#bill-amount"); const cashGiven = document.querySelector("#cash-given"); const checkButton = document.querySelector("#check-button"); const outputDiv = document.querySelector("#output"); const noOfNotes = document.querySelectorAll(".no-of-notes"); const availableNotes = [200...
true
f6964f562ea344ca66b8b89572935be9a2b104d1
JavaScript
NinCors/LObby
/api.js
UTF-8
8,694
2.6875
3
[]
no_license
//Program Logic: //Get selected room //Get the possible users //Get the location of each users and compare with the selected room //Compare the last seen time with the current time, if less than 3 mins, //Send email notification var requestEmail = "chiyuc2@uci.edu" var TIPPERS_HOST = "http://sensoria.ics.uci.edu:8059...
true
55fa30c6d388874fb25d02d8b2b076c2f924b061
JavaScript
francomapua/Homebase-JavaScript
/Classes.js
UTF-8
1,138
4.03125
4
[]
no_license
/* Class Pattern - Stack traces will show "Dog" instead of an anonymous object */ var staticVariable = 0; function Dog(breed, bark = "bark"){ staticVariable++; this.breed = breed; this.bark = bark; console.log('breed :', breed); } Dog.prototype.doBark = function(){ console.log(this.bark); } ...
true
efc3d6fbd5ba9882b886903409d52d9a800cbc83
JavaScript
brendanvonick/LaunchSchool
/JS101/small-problems/medium-2/7.js
UTF-8
854
4.28125
4
[]
no_license
function isNotSorted(arr) { let value; for (let idx = 0; idx < arr.length - 1; idx += 1) { if (arr[idx] > arr[idx + 1]) { value = true; break; } else { value = false; } } return value; } function bubbleSort(arr) { do { for (let idx = 0; idx < arr.length - 1; idx += 1) { ...
true
b6aa30d4b6e9224195c2a40595d4ebff8e72ed13
JavaScript
Astrobboy/mktingviewer
/static/js/sweetalert.js
UTF-8
414
2.515625
3
[ "MIT" ]
permissive
function message_info(tipo){ if (tipo == 1){ swal("Verifica que todo este bien", "Tu usuario no es correcto", "info"); }else if (tipo == 2){ swal("Verifica que todo este bien", "No puedes dejar los campos vacios", "warning"); }else if (tipo == 3){ swal("Excelente", "Has creado un nuevo usuario", "success"); ...
true
80207474713142578c459924aa4e52428a2c9f1e
JavaScript
MrBenJ/js-tip-tweets
/archive/2020_2_9.js
UTF-8
662
2.875
3
[]
no_license
// TIP: A trick I use with fixed height // elements with CSS-in-JS - I always // export the fixed height (like a header) // allowing other elements to adjust as // needed // Header.js import { css } from '@emotion/core'; export const HEADER_HEIGHT = '120px'; const style = css` height: ${HEADER_HEIGHT}; position...
true
627c86e96b5adf6f11b78609213aaac10f2272ea
JavaScript
Krishna7852/competitive-programming
/src/data-structures/tree/binary-heap/MaxBinaryHeap.js
UTF-8
1,365
2.9375
3
[]
no_license
const BinaryHeap = require('./BinaryHeap'); class MaxBinaryHeap extends BinaryHeap { constructor() { super(); this.maxHeapify = this.heapify((parentValue, chidValue) => { return chidValue > parentValue; }); } /** * * * @readonly * @memberof MaxBinaryHeap */ get max() { retu...
true
39969f57dcb2081c70085325c80762379ec8798a
JavaScript
devjpsmith/dad-jokes
/script.js
UTF-8
284
3.28125
3
[]
no_license
const joke = document.querySelector('#joke'); const headers = { 'Accept': 'application/json' } async function fetchJoke() { const res = await fetch('https://icanhazdadjoke.com', { headers }); const data = await res.json(); joke.innerHTML = data.joke; } fetchJoke();
true
11116c059d5d215a2492697cb31211c388b19af9
JavaScript
julienescueta/GhoulCapture
/modules/datautils.js
UTF-8
1,129
3.046875
3
[ "MIT" ]
permissive
function create() { return new DataUtils(); } exports.create = create; var DataUtils = function DataUtils() { }; function randomString(chars, length) { var string = ""; for (x = 0; x < length; x++) { i = Math.floor(Math.random() * chars.length); string += chars.charAt(i); } return s...
true
8ed0da7b868a393154ce0086f1cf3ef20a78c5f3
JavaScript
sohara/advanced-training-emberconf-2014
/tests/microdata/step02.js
UTF-8
733
2.5625
3
[ "MIT" ]
permissive
/* In Step 2, you'll use what you've learned about initializers and injections to ensure that all of the controllers in the application have access to the store object. */ import Store from 'appkit/microdata/store'; var App; step(2, "Initializers", { setup: function(){ App = startApp(); }, teardown:...
true
a926807462f12929dfe14410051b2b91f9278091
JavaScript
Jenniekerf/learn-ramda
/courses/1-ramda-basics/1-intro.js
UTF-8
3,662
3.359375
3
[]
no_license
const R = require("ramda"); const expect = require("expect"); const quiz = require("../../lib/quiz"); describe("Course 1 - Ramda Basics :: Lesson 1 - Intro", () => { describe("1. Ramda is... ?", () => { const statements = { a: "an eastern cuisine", b: "a framework to make websites", c: "a libr...
true
01bb5599d4cd0ca4ad6f6458654cd4d92a8522ba
JavaScript
Caweca105/Bytes4Future-React
/Bytes4future - avançado/Aulas/dist/bubbleSort.dev.js
UTF-8
1,533
4.5
4
[]
no_license
"use strict"; // Enquanto o vetor não está ordenado // Assume que o vetor está ordenado // Para cada elemento // Se o elemento e o próximo não estão na ordem certa // Troca elemento com o próximo // Marca vetor como não estando ordenado function bubbleSort(arr) { var ordenado = false; var eleme...
true
92f692699bf622d4ba202989e0a413c6394aef53
JavaScript
yorkHan/163-music-2018
/src/js/song/app.js
UTF-8
4,309
2.5625
3
[]
no_license
{ let view={ el:'#app', render(data){ let {song}=data $('div.bg').css('background-image',`url(${song.cover})`) $(this.el).find('img.cover').attr('src',song.cover) $(this.el).find('.song-description>h1').text(song.name) let audio=$(this.el)....
true
3c4e7fbca09c559f02bfe9fc9388722f9d4d0e29
JavaScript
blackmida/IT_Bootcamp
/Predavanja/11Cas JS - IF Petlja nastavak + SWITCH/switch.js
UTF-8
1,768
3.453125
3
[]
no_license
let datum = new Date(); // let dan = parseInt(prompt("Unesite dan u nedelji:")); let dan = datum.getDay(); switch (dan) { case (0): console.log("Nedelja."); break; case (1): console.log("Ponedeljak."); break; case (2): console.log("Utorak."); break; case...
true
dba5a0ad9b81af335dc84548400d570a96c164f8
JavaScript
acolorblue/libraries
/Code/Javascript/mutate.js
UTF-8
5,721
2.609375
3
[]
no_license
// MUTATE FUNCTION CHECKS SIZE CHANGE OF ELEMENT. // ORIGINAL CREDIT TO https://github.com/valtido/jQuery-mutate. MANUALLY EXRACTED FOR TIDY. // DETECT SIZE CHANGE mutate_event_stack = [ { name: 'width', handler: function (elem){ n = {el:elem} if(!$(n.el).data('mutate-width'))$(n....
true
51d0ccc39df376ae144c6d80f460a50f232b3208
JavaScript
khiro/yure-tweet
/yure-tweet-checker/tweet_log_client.js
UTF-8
1,822
2.5625
3
[]
no_license
var mysql = require('mysql'); exports.Client = Client; function Client() { var host = 'HOST'; var port = 1234; var db = 'DBNAME'; var user = 'USER'; var dbpasswd = 'PASSWORD'; this.table = 'TABLE'; this.client = new mysql.Client(); this.client.host = host; this.client.port = port; this.client.dat...
true
6c6bc4366757cfc52ad8498a9b321bd0e585a41c
JavaScript
blancahc/JS_101
/lesson_3/easy1/question02.js
UTF-8
356
4.53125
5
[]
no_license
//How can you determine whether a given string ends with an exclamation mark? let str1 = "Come over here!"; // true let str2 = "What's up, Doc?"; // false //MY SOLUTION function checkChar(str, char) { return str[str.length - 1] === char; } checkChar(str1, '!'); checkChar(str2, '!'); //SOLUTION str1.endsWith("!"); ...
true
76004f3cecefe060d0481dc20b5de94904c55231
JavaScript
volcono11/php7
/assets/js/ajax_functions.js
UTF-8
414
2.875
3
[ "MIT" ]
permissive
function createRequestObject() { var ro; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ ro = new ActiveXObject("Microsoft.XMLHTTP"); }else{ ro = new XMLHttpRequest(); } return ro; } var http = createRequestObject(); function sndReq(action) { ...
true
40b50722af2a67db34564615d850ff0883b08cfb
JavaScript
jdeniau/changelog-view
/src/markdown.test.js
UTF-8
4,091
2.625
3
[ "MIT" ]
permissive
import simpleMarkdown from './__mocks__/simple.md'; import keepachangelog from './__mocks__/keepachangelog.md'; import { semverize, reduceTokens, convertMarkdownToVersionList, } from './markdown'; describe('markdown to version list converter', () => { test('semverize titles', () => { expect(semverize('1 fo...
true
ce0cd25f1a2dcfcba639b5519fd7b46e93d40ba4
JavaScript
urraka/pms-info
/texturelist.js
UTF-8
2,403
2.78125
3
[]
no_license
var texture_data = []; var process_list = []; var load_count = 0; var timer = null; initialize(); function process_map(map, map_name) { texture_data.push({ "map": map_name, "texture": map.texture }); } function show_data() { var table = document.createElement("table"); for (var i = 0; i < texture_data.leng...
true
a7c43cf647a0e78dab9a7790fe7904fbedba08be
JavaScript
DmitriyH01/Movie-booking-project
/app/js/modules/sessionsTime.js
UTF-8
461
2.640625
3
[]
no_license
function createSessionsTime(timeOfSessions) { const fragment = document.createDocumentFragment(); timeOfSessions.forEach((el) => { const label = document.createElement("label"); label.classList = "time_wrap_lists_item"; label.innerHTML = `<input type="radio" name="time" id="${[el]}"/> <span>${[...
true
171d5c6593df5b2223f70e99e775d6d74a482901
JavaScript
BrunoOmoreschi/lets_santander_codders
/hum_log_programacao/reduce.js
UTF-8
388
4.25
4
[ "MIT" ]
permissive
//Reduce //Ex.: const vetor = [ 1,2,3,4,5,6] //Aqui vamos salvar em somatorio o valor de percurrer o vetor, salvando na var acumulador, a cada item, a logica da arrow fun (acumulador + item), obtendo o somatorio de todos os itens no fim. //Se liga q o 0 (zero) é o indice inicial do "4". const somatorio = vetor.reduce...
true
f1c80e227c298ee9e272f9eb0190f32cc29bbdae
JavaScript
JB0925/Springboard-Unit-39.3-React-Exercise-2
/src/Pokecard.js
UTF-8
483
2.640625
3
[]
no_license
import "./Pokecard.css"; const Pokecard = props => { const { id, name, type, base_experience } = props.card; const url = `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/${id}.png`; return ( <div className="Pokecard"> <h2 className="Pokecard-name">{name}</h2> ...
true
ae468c4ba19587f61f36e6bf1553299109f1e433
JavaScript
huokedu/SocialBook
/frontend/components/signup/signup_form.jsx
UTF-8
7,318
2.546875
3
[]
no_license
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; class SignUpForm extends Component { constructor(props) { super(props); this.state = { firstName: "", lastName: "", email: "", password: "", dob: "", month: new Date().toDateStri...
true
246949110abca6216e4830aa4ff2f6cdb20b02d3
JavaScript
sulemanmalik/Budget-Application
/app.js
UTF-8
1,938
3.296875
3
[]
no_license
//module that handles budget data using module pattern (using iife that returns an object) //BUDGET CONTROLLER var budgetController = (() => { }) (); //UI CONTROLLER var UIController = ( () => { var DOMstrings = { inputType: '.add__type', inputDescription: '.add__description', inputV...
true
edac473dbd577870cc9bb38aaecac09012268a18
JavaScript
gab-2020/prueba-promesas
/src/callback/api.js
UTF-8
1,083
2.9375
3
[]
no_license
let XMLHttpRequest = require ('xmlhttprequest').XMLHttpRequest; const API= 'http://swapi.dev/api/people/'; function datosBack (url_api, callback) { let xhttp = new XMLHttpRequest (); xhttp.open ('GET', url_api, true); xhttp.onreadystatechange = function (event) { if (xhttp.readyState === 4) { ...
true
79bd2f2bade2abdcca6a4832da68010fc0805f15
JavaScript
mazetuski/mazetuski.github.io
/listadoDate/CalcularEdad.js
UTF-8
2,520
4.03125
4
[]
no_license
/** * Created by Miguel Ángel Zamora Blanco on 10/11/2016. * Implementa el método calcularEdad() * que devuelva la edad indicando la fecha de nacimiento. * En caso de tener menos de un año, * indicar días y meses transcurridos. Indicar errores. */ { let init = function () { let fecha = new Date("Feb ...
true
26582f40036e9c9fa7f2e4b6b67f563d70a8ce4b
JavaScript
andrefebrianto/Voucher-Management-Service
/test/util/common-formatter/StringCaseFormatterTest.js
UTF-8
1,077
2.65625
3
[]
no_license
const assert = require('assert'); const StringCaseFormatter = require('../../../src/util/common-formatter/StringCaseFormatter'); describe("String Case Formatter Test", () => { describe("uppering", () => { it("should return upper case for inserted text", () => { const upperCaseText = StringCase...
true
40ce7763e2112d1e44fc6638e8c0eac24743c8da
JavaScript
RavindraJD/chat-system-basic
/public/cs.js
UTF-8
1,095
2.78125
3
[]
no_license
window.onload=function(){ var socket=io.connect("http://127.0.0.1:3000"); var name=document.querySelector("#name"), message=document.querySelector("#message"), send=document.querySelector("#send"), chatwin=document.querySelector("#window"), chats=document.querySelector("#chats"); ...
true