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
7a73060f449d4e4d4dd094b184e161ca97269e52
JavaScript
kljaich/node-course-2-todo-app
/sandbox/mongoose-queries.js
UTF-8
1,625
2.609375
3
[]
no_license
const {ObjectID} = require('mongodb'); const {mongoose} = require('./../server/db/mongoose'); const {Todo} = require('./../server/models/todo'); const {User} = require('./../server/models/user'); // ID for todos collection // var id = '5b329a0fd39cae673437bd73'; // ID for users collection var id = '5b3382c56886152e3...
true
2f2eb89673368451730bd9b7196841c697d02126
JavaScript
DFE-Digital/login.dfe.service-notifications.jobs
/lib/infrastructure/webServices/SoapMessage.js
UTF-8
4,286
2.53125
3
[ "MIT" ]
permissive
const { v4:uuid } = require('uuid'); const xmlescape = require('xml-escape'); const expandTreeToXml = (item, supportsNil) => { if (!item) { return ''; } const keys = Object.keys(item); let xml = ''; keys.forEach((key) => { const value = item[key]; if (value === undefined || (value === null && !s...
true
4d62c5a36ef392fd4d0eba09b4c9e7f5472f7322
JavaScript
jasonsemko/forfun
/src/js/load-orders.js
UTF-8
4,700
3.234375
3
[]
no_license
/** * Module leveraged for the Load Orders page. Uses Modal and Modal template. */ define(['modals','modal-templates'], function(Modals, ModalTemplates) { /** * JSON parsed order object */ var ordersObj, /** * Cahced number of orders currently visible * @type {Number} */ ...
true
24233207586c5c00941b7331b39460da32098724
JavaScript
mkohlhaas/Rediscovering_Javascript
/06_arrow/return-object-literal.js
UTF-8
106
2.6875
3
[]
no_license
'use strict'; const createObject = (name) => ({ firstName: name }); console.log(createObject('George'));
true
56e1616240812bff28697da711d3bab0ffe017f0
JavaScript
Hicken-Fredrick/CS313
/web/week01/week01.js
UTF-8
261
2.578125
3
[ "MIT" ]
permissive
$(document).ready(function(){ $("#click").click(function(){ alert("Clicked!"); }); $("#color").click(function(){ $("#second").css({"color":$("#choice").val()}); }); $("#fade").click(function(){ $("#third").fadeToggle(2000); }); });
true
b2efb8ecdc49e48722bcc75f91419d391573cfea
JavaScript
Rialgar/LD47
/states/game.js
UTF-8
15,098
2.609375
3
[]
no_license
import explode from '../effects/explode.js'; import puff from '../effects/puff.js'; let scale = 1; const offset = { x: 0, y: 0 }; const gameSize = { x: 160, y: 120 } const outerBorder = 1; const innerBorder = 13; const pathWidth = innerBorder - outerBorder; const pathDistance = (outerBorder + innerBorder) / ...
true
1f21e2562c5f1dd49bc83933446ee358e1021947
JavaScript
kamaki-i/Bongo-Cat
/commands/mute.js
UTF-8
2,032
2.578125
3
[]
no_license
const ms = require('ms'); module.exports = { name: 'mute', execute(client, message, args, Discord, cmd) { if(!message.member.hasPermission("MANAGE_ROLES")){ return message.reply({embed: {description: ':crossed_swords: ・ You dont have the correct permissions!', color: 'DARK_RED' }}).catc...
true
ad65bc0a795bad818a3a9ba3728f4eb6b90eb8bf
JavaScript
AparnaPattathil/millithink
/client/src/components/Signup.js
UTF-8
1,981
2.6875
3
[]
no_license
import React, { Component } from 'react'; import api from '../api'; import {Form, FormGroup, Label, Input, Container, Jumbotron, Button} from 'reactstrap'; class Signup extends Component { constructor(props) { super(props) this.state = { email: "", name: "", password: "", } } ...
true
d08c9f48f891eecdf6b82c360dc6a925882c177e
JavaScript
touahriayacine/Calculator
/public/script/scripts.js
UTF-8
3,826
3.046875
3
[]
no_license
//global variables var stack = []; //changing mode : function ApplyNightMode() { document .getElementById("night-mode-img") .setAttribute("src", "../assets/images/sun.png"); var nightModeButton = document.getElementById("night-mode-button"); nightModeButton.style.setProperty( "background-color", ...
true
3236ecc79e60c0602e142e63616254b902e313c6
JavaScript
xuhua1/nuxt
/aBuild/server/js/sdoku.js
UTF-8
8,016
3.078125
3
[]
no_license
/** * 数独生成与解密算法, * 难度等级, * 数独生成器 //对角三个宫先排列,再生成数组 * 解析器 // 解数独 * 挖洞算法 唯一解 // 每次挖一个洞,1-9剩余数解看有没有结果, 每个洞最多被挖一次 */ function Sudo() { this.SudoArr = [] // 数独数组, this.dibbleArr = [] this.number = 0 this.row = 9 this.col = 9 this.beginFill = [10, 40, 70] this.centerArr = [10, 13, 16, 37, 40, 43, 64, 67,...
true
4025fa079c8d2ae1035a2ab6fb9389ee57c6aa0a
JavaScript
minhazur9/pocket-dex
/client/src/calculations/pokemonStats.js
UTF-8
989
3.125
3
[]
no_license
import { natures } from '../options/options'; // Calculate HP Stat export const calculateHP = (base, iv, ev, level) => { return Math.floor((((2 * base + iv + (ev / 4)) * Number(level)) / 100) + Number(level) + 10); } // Determines the modifier of the stat depending on the nature const getNatureModifier = (nature,...
true
0312cb30ccf8d80534bba7dd7f5e736cb2e316b5
JavaScript
QiuranHu/leetcode-solution
/118.js
UTF-8
522
3.328125
3
[]
no_license
/** * @param {number} numRows * @return {number[][]} */ var generate = function(numRows) { if(numRows === 0) { return []; } const answer = [[1]]; for(let i = 1; i < numRows; i++) { const lastLayer = answer[i - 1]; const thisLayer = []; for(let i = 0; i < lastLayer.leng...
true
fbd8fb7bc0676c38caadf99e9026305279d4d5bc
JavaScript
avatarfreak/coding-interview
/Algorithms/SelectionSort.js
UTF-8
475
3.09375
3
[]
no_license
function selectionSort(array, pointer = 0) { if (pointer == array.length) { return; } else { for (let idx = pointer; idx < array.length; idx++) { if (array[pointer] > array[idx + 1]) { [array[pointer], array[idx + 1]] = [array[idx + 1], array[pointer]]; } } selectionSort(array, p...
true
2c07057b0b48fd10c4a8612405af7a72e196f3f3
JavaScript
Sourav48/NodeJS_POC
/Middlewares/auth.js
UTF-8
597
2.75
3
[]
no_license
const jwt = require('jsonwebtoken'); const SECRETKEY = "secretcode@123" const auth = (req, res, next) => { const bearerHeader=req.headers['authorization']; if(typeof bearerHeader !=='undefined'){ const bearer = bearerHeader.split(' '); req.token=bearer[1]; jwt.verify(req.token,SECR...
true
3a40a60efe68c5a410c3d8d3cf8244271afc9fe2
JavaScript
outlawdesigns-io/AccountServiceWAMPEvents
/src/AuthServiceEvents.js
UTF-8
2,645
2.640625
3
[]
no_license
"use strict"; const EventEmitter = require('events').EventEmitter; const UserLocation = require('./models/UserLocation'); const PasswordAttempt = require('./models/PasswordAttempt'); const User = require('./models/User'); class AuthServiceEvents extends EventEmitter{ constructor(){ super(); this.userLocation...
true
37fdfbcc6e85213b89a2db2037384c136d2c69bf
JavaScript
arbliss/fleetio-cabphotos
/routes/inspections.js
UTF-8
2,699
2.765625
3
[]
no_license
//jshint esversion:6 const { Router } = require('express'); const router = Router(); const axios = require('axios'); // Headers for api calls const headers = { 'Authorization': `Token ${process.env.FLEETIO_API_KEY}`, 'Account-Token': `${process.env.FLEETIO_ACCOUNT_TOKEN}` }; // Create empty array to be filled b...
true
a6fd8985d8e3b70bf2eb78cf1dea8269167bc8c7
JavaScript
JuliWolf/Web-developing
/JAVASCRIPT/9. React.js/Letters Social/src/components/map/DisplayMap.js
UTF-8
5,201
2.609375
3
[]
no_license
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class DisplayMap extends Component { constructor(props){ super(props); this.state ={ mapLoaded: false, location: { lat: props.location.lat, lng: props...
true
2741bfc5a2670eca9e7e2261d62607e7445666a9
JavaScript
xiaochengbeier/webstu
/8-es6/bird/js/Bird.js
UTF-8
1,283
2.953125
3
[]
no_license
let bird = document.getElementsByClassName("bird")[0]; let bWidth = bird.clientWidth; let bHeight = bird.clientHeight; class Bird extends Common { constructor(bWidth, bHeight, top, speed, bird) { // constructor(width, height, left, top, speedX, speedY, dom) super(bWidth, bHeight, 150, top, 0, speed...
true
9fe5552b778ec84a89e062355787066ba6ac22ae
JavaScript
aesbetancourt/notes-frontend
/src/components/Notes.js
UTF-8
2,683
2.71875
3
[]
no_license
// Importing needed components import React from 'react'; import config from '../config/config' import { Input, Button, Divider, Modal } from 'antd'; import axios from "axios" import TableCrud from './Notes/Lists' // Constants const { TextArea } = Input // Axios Defaults const axiosInstance = axios.create({ base...
true
db215d95385f4f15f2e043e1b045f749e3f71866
JavaScript
project-progress/trivia-game
/js/startPage.js
UTF-8
1,403
3.65625
4
[ "MIT" ]
permissive
const MAX_USERS = 4; function preload(){ //add inputs in html let usersDiv = document.getElementById("users"); for(let i = 0; i < MAX_USERS; i++){ usersDiv.innerHTML += `<input id="user${i}" spellcheck="false" placeholder="Write ${i + 1} user's name">`; } //If Users are in the local storag...
true
2061219e2c99b2f125d511647e412540302c6afd
JavaScript
ninatran/capstone_randomizer
/script.js
UTF-8
3,198
3.46875
3
[]
no_license
//Fetch colors on load let randomcolors = fetchColorsFromAPI(); /** * Function fetches four random colors from the colors_api * @return {Array<String>} randomcolors */ function fetchColorsFromAPI(){ let randomcolors = new Array(4); let colors_api = "https://www.thecolorapi.com/scheme?hex=" +randomHex()+"&f...
true
65fb7b07013d64f881a3444723f6869134dff1b0
JavaScript
sapcc/elektra
/plugins/block_storage/app/javascript/widgets/app/reducers/images.js
UTF-8
1,110
2.671875
3
[ "Apache-2.0", "MIT" ]
permissive
import * as constants from '../constants'; //########################## IMAGES ############################## const initialState = { items: [], receivedAt: null, updatedAt: null, isFetching: false, error: null }; const requestImages = (state,{requestedAt})=> ( {...state, requestedAt, isFetching: true, err...
true
216b2fa47b30dc3e2790cb56247779fe38ee3172
JavaScript
rohittechzone/canon-shooter
/js/Frount.js
UTF-8
1,303
3
3
[]
no_license
class Frount { constructor(x, y, width, height) { var options = { isStatic: true } this.body = Bodies.rectangle(x, y, width, height, options); this.width = width; this.height = height; this.image = loadImage("assets/frount.png"); World.add(world, th...
true
10c92fa0010a33255fa911d4201fce3bc7c61fa3
JavaScript
uoverusell/pomace-base
/lib/src/serialize.js
UTF-8
2,066
2.5625
3
[ "MIT" ]
permissive
import { debug } from './log' const serialize = new Object(); /** * 简易通用队列, start -> process -> process -> process * @method squence * @for serialize * @params {object} target 队列内容 */ export const sequence = serialize.sequence = (target = [])=>{ const list = []; const run = {}; run.__count__ = 0; ru...
true
ce6b7de413f2cd1c97072d5aaa5d035ca23a0486
JavaScript
dzMoon/jinLife
/pages/game/game.js
UTF-8
1,862
2.609375
3
[]
no_license
// pages/game/game.js Page({ /** * 页面的初始数据 */ data: { dice: ['first', 'second', 'third', 'fourth', 'fifth', 'sixth'], show: false, total: 0, num1: 0, num2: 0, num3: 0, timer: null, buttonValue: "摇一摇", buttonType: 'primary' }, toggle: function (e) { const that = thi...
true
21f80704e75488a9305480175d885fbad612bf0b
JavaScript
justamop/color-demo
/colorscheme/colors.js
UTF-8
6,384
3.890625
4
[]
no_license
/* Public functions: - getColorsFromHex: Parameters: - color: String of the form "#rrggbb", the hex value for the basis of the color scheme - num: Positive integer, the number of colors to generate Returns a color scheme based on the given color, represted as an array of 'num' strings in the form "#rrggbb...
true
29853971db4ca8c5244a4c008cccfa87e2f8f09c
JavaScript
LassiterJ/jsKatas
/bowlingScorer.js
UTF-8
2,996
3.84375
4
[]
no_license
// Each game, or “line” of bowling, includes ten turns, or “frames” for the bowler. // In each frame, the bowler gets up to two tries to knock down all the pins. let arr1 = ["5/", "5/", "5/", "5/", "5/", "5/", "5/", "5/", "5/", "5/", "5"]; let arr2 = ["X", "X", "X", "X", "X", "X", "X", "X", "X", "X", "X", "X"] let arr...
true
2e203c83ba8f57847832eb83bdc2283d99ecbdd7
JavaScript
CyberFlameGO/ring-ui
/components/global/rerender-hoc.js
UTF-8
1,122
2.703125
3
[ "Apache-2.0" ]
permissive
import {createElement} from 'react'; import {render} from 'react-dom'; /** * Wraps a component to add a "rerender" method * @param ComposedComponent * @param captureNode, whether the wrapper should capture this.node itself. Set to false if the component already has "node" property captured * @returns {Rerenderer} ...
true
8c8d1a16ae418d3f5458891d5a1750a9e0df4220
JavaScript
yq4103/lotide
/map.js
UTF-8
869
3.984375
4
[]
no_license
const words = ["ground", "control", "to", "major", "tom"]; const map = function(words, results1) { const results = []; for (let word of words) { results.push(results1(word)); } return results; }; const results1 = map(words, word => word[0]); console.log(results1); const eqArrays = function(equalOne, e...
true
105ef7c6ad8149ef1b6ed2cce272e410e044f295
JavaScript
nievesth/javascripts-practice
/modulo01/loops/ejercicio02.js
UTF-8
234
3.78125
4
[]
no_license
//Crea un bucle for que vaya desde 0 a 9 y muestralo por consola solo cuando el resto del numero dividido entre 2 sea 0. for (let index = 0; index <= 9; index++) { if(index % 2 === 0){ console.log(index) } }
true
96db7d2a318c0ace6e275a5a33a2ed97997202c5
JavaScript
gl09025/mission-start
/expert-3_轮播 tabs 曝光加载/轮播组件/main.js
UTF-8
5,473
3
3
[]
no_license
Carousal = (function () { function _Carousal($ct) { this.$ct = $ct this.init() this.bind() } _Carousal.prototype = { init: function () { var $imgs = this.$imgs = this.$ct.find('.img-ct>li') var $imgCt = this.$imgCt = this.$ct.find('.img-ct') ...
true
2ac3b04ed514488363cdc93b402f4aacca52c8a6
JavaScript
artyom-developer/crud-node-react-hooks
/src/views/js/components/customer/Edit.js
UTF-8
2,598
2.828125
3
[]
no_license
import React, { useEffect, useState } from 'react'; import customerService from "../../services/Customer" import swal from 'sweetalert'; function Edit(props){ const [ id, setId ] = useState(null); const [ name, setName ] = useState(null); const [ email, setEmail ] = useState(null); const [ address, setAddr...
true
a85b2cd0cdc2952c9cce71c84dc81449ba572e07
JavaScript
Floune/paintonline
/public/paint.js
UTF-8
4,528
2.8125
3
[]
no_license
document.addEventListener('DOMContentLoaded', () => new PainterBite) class PainterBite { constructor() { this.shape = "rond" this.isFilling = false this.isDrawing = false this.lineWidth = document.querySelector("#line-width").value this.x = 0 this.y = 0 this.paint = document.getElementById('canvas') ...
true
a75ab332cafa390c67fab257687d33ac66d9967f
JavaScript
RealPeha/dl-today
/src/cron.js
UTF-8
3,825
2.6875
3
[]
no_license
const { Extra } = require('telegraf') const cron = require('node-cron') const { formatDate, link } = require('./utils') const { memoryDB, db } = require('./db') const broadcast = (bot, message) => { const users = Object.values(db.get('users').value()).filter(user => user.notificationEnabled) const messages =...
true
3c7adebb457ce162a1142114b2f3db90a5ff3b8d
JavaScript
jLabossiere/dice-roller
/src/Components/massMonAttack.js
UTF-8
2,184
2.78125
3
[]
no_license
import React from 'react' class MonAttack extends React.Component { constructor(props) { super(props) this.state = { name: props.monster.Name, maxHP: props.monster.maxHealth, currentHp: props.monster.maxHealth, attacks: [...props.monster.Attacks], selectedAttack: 0, curren...
true
96ee6c8bac09754596ed79ac663ddc8cbacbeb2b
JavaScript
dmrichwa/iRobot
/Commands/dm.js
UTF-8
641
2.515625
3
[]
no_license
const { get_user } = require("../Utils/"); const { CREATOR_ID } = require("../Utils/constants.js"); exports.run = async (client, msg, args) => { if (CREATOR_ID.indexOf(msg.author.id) <= -1) { return msg.channel.send("Must be bot creator to use this command."); } get_user(args[1], msg.guild).then(user => { user....
true
80a478427ca384a1af51c953f85baa4989d43d01
JavaScript
hinriksnaer/PaxBot
/login.js
UTF-8
759
2.578125
3
[]
no_license
function init() { chrome.tabs.create({ url: 'https://paxful.com/buy-bitcoin/amazon-gift-card' }, saleTabOpened); } function saleTabOpened(newTab){ workingTabId = newTab.id; console.log('new tab opened'); console.log('done'); } function pageLoaded() { alert('listener removed'); ch...
true
909736e90fb54f2cea9334db9d3736847937dcd8
JavaScript
DimaKV/starwars-test-app
/src/services/test-service.js
UTF-8
2,002
2.984375
3
[]
no_license
export default class testService{ constructor(){ this.people = [ { id:1, name: 'John Newton!', gender: 'male', birthYear: '1643', eyeColor: 'brown' }, { id:2, ...
true
bd1bd4acfbb5c1d4995e981683a6fdfeb737c6e4
JavaScript
VasilisDev/metric-imperial-converter
/controllers/convertHandler.js
UTF-8
2,596
3.234375
3
[ "MIT" ]
permissive
/* * * * Complete the handler logic below * * */ function ConvertHandler() { this.getNum = function(input) { const num = input.toLowerCase().split(/[a-zA-Z]/); if (num[0] !== "") { if (num[0].includes("/")) return num[0].split("/").length !== 2 ? null : eval(num[0]); ...
true
038d36363e6529617f6ca7814a854d9539cc9b78
JavaScript
AlvisonHunterArnuero/ES6FILES2020
/rowSumOddNumbers.js
UTF-8
653
4.21875
4
[]
no_license
/* Calculate the row sums of this triangle from the row index (starting at index 1) Test.assertEquals(rowSumOddNumbers(1), 1); Test.assertEquals(rowSumOddNumbers(42), 74088); */ // total += Number(input[i]); // return total; function rowSumOddNumbers(n) { const arrElements = []; let...
true
70205da40e4329bf1ee90f848c174ba7f6a2707a
JavaScript
santiagogrisafi/Multiplicar
/operaciones/multiplicar.js
UTF-8
1,033
3.234375
3
[]
no_license
const fs = require('fs'); const colors = require('colors'); let crearArchivo = async(base, limite) => { let operacion = ''; if (Number(base)) { for (let numero = 0; numero <= limite; numero++) { operacion += (`${base} * ${numero} = ${base * numero}\n`).toString(); } fs.write...
true
d2c583aa2edd7d2e1ec010ee049b37ba4e359aad
JavaScript
toan2406/frontend-tester
/tests/program-structure/conditional-execution.js
UTF-8
560
2.671875
3
[]
no_license
/* eslint-env mocha */ var assert = require('chai').assert var solution = require('../../solutions/program-structure/conditional-execution.js') describe('Conditional', function () { describe('Bob', function () { it('says hello world with no name', function () { assert.equal(solution.hello(''), 'Hello, Worl...
true
27920e8e822d2237bee51f526f820a90a9520a68
JavaScript
Uthaeus/w3javascript
/105.js
UTF-8
640
4.3125
4
[]
no_license
// Write a JavaScript program to find the number of times to replace a given number with the sum of its digits until it convert to a single digit number. function reducer(num) { let count = 0; const summer = function(n) { let arr = n.toString().split(''); let numArr = []; for (var i = 0; i < arr....
true
24e321cdf95ec81d43ac4a0ac500b4bcea924f73
JavaScript
jakeacarter/DGM2760StudentAssignments
/Unit07/js/main.js
UTF-8
1,523
3.625
4
[]
no_license
let message const pizza = { crust: 'thin', size: 'small', toppings: 'pepperoni', buildPizza: function () { console.log('buildPizza method has been called') message = `Baking a ${pizza.size} pizza on a ${pizza.crust} crust with ${pizza.toppings} and cheese for you!` document.quer...
true
282dcb5c9b45d566ad3dbc15510b7b149dc333af
JavaScript
Aleksandr-Bednichenko/goit-js-hw-10-food-service
/src/index.js
UTF-8
1,060
2.828125
3
[]
no_license
import './styles.css'; import menu from './menu.json'; import menuTemplate from './template/menu.hbs'; const checkBox = document.querySelector('.theme-switch__toggle') const body = document.querySelector('body'); const menuData = { menu, }; const menuHtml = menuTemplate(menuData); document.querySelector('.js-men...
true
a8ebeb5ed60b8cde82202b403ea70e84ad447a1d
JavaScript
villagestyle/note
/扩展/利用canvas进行图片压缩上传/index.js
UTF-8
1,966
3.0625
3
[]
no_license
const uploadEle = document.getElementById('upload'); uploadEle.onchange = function (e) { console.log(e.target.files[0]); const file = e.target.files[0]; console.log(file); // 判断图片 if (file.type.indexOf('image') === -1) { console.error('格式错误') return; } // 判断大小 // if (fil...
true
518e1a6bbdde09141cce323bd7f0612f532d46b5
JavaScript
twogoods/tgblog
/public/javascripts/tg_signin.js
UTF-8
1,442
2.546875
3
[ "MIT" ]
permissive
$(function () { $("#loginbtn").click(function(){ var userid=$("#uid").val().trim(); var password=$("#password").val().trim(); if(userid==""&&password==""){ $('#alertwarning').show(); $('#warningcontext').text("账号密码不能为空"); $('.form-signin').addClass('animated swing'); setTimeout(function(){ $('.fo...
true
3594fd0b106fea96e0820828ab3639b61f6ed2d2
JavaScript
AsaelFernandez/D3-Lab
/Challenge1_Buildings of the world/js/main.js
UTF-8
674
2.859375
3
[]
no_license
/* * main.js */ var svg = d3.select("#chart-area").append("svg") .attr("width", 900) .attr("height", 900) .style("background-color", "black") .style("stroke", "white"); d3.json("data/buildings.json").then((data)=> { data.forEach((d)=>{ d.height = +d.height; }); var rectangles = svg.selectAll("rec...
true
5cdadba5e79820ebc1d3341345975c8c9aa0b04a
JavaScript
Pushpinder-90/NodeJS
/NoteApplication/app.js
UTF-8
1,720
3.109375
3
[]
no_license
console.log('************* Starting app.js **********'); const yargs = require('yargs'); const lodash = require('lodash'); const notes = require('./notes.js'); //const argv = yargs.argv; // to get arguments from CLI // we can create a titleOptions as variable to assign it to title in commands const titleOptions = { ...
true
cb006a1e606e98b3f4fea5aea509b62ed32d674e
JavaScript
HelloInternet/WebsiteNavigation
/TabChange/script2.js
UTF-8
837
2.65625
3
[]
no_license
function $(id){ return typeof id==="string"?document.getElementById(id):id; } window.onload=time; function time(){ var index=0; var timer=null; var lis=$('notice-tit').getElementsByTagName('li'); var divs=$('notice-con').getElementsByTagName('div'); for(var i=0;i<lis.length;i++){ lis[i].id=i; lis[i].onmou...
true
e5f6a16e902243f83d031b5a01f24b8cc2f5ada4
JavaScript
DaiWei1224/TU_DestroyVehicle
/Demo/assets/Script/DataStorage.js
UTF-8
2,843
2.78125
3
[]
no_license
cc.Class({ extends: cc.Component, properties: { //金币 coin: { default: null, type: cc.Label, displayName: "金币Label" }, }, onLoad () { //登陆读取用户数据 var self = this; var date1 = 0; //离线时间 var date2 = 0; //上线时间 ...
true
236a2aceef7b7315902bf7b4e3d0d328704e7b7c
JavaScript
samikeijonen/calculate-grades
/js/calculate.js
UTF-8
3,650
3.546875
4
[]
no_license
/* * Calculate grades via form input. * */ ( function() { // Get form. const gradeForm = document.getElementById('calculate-grades'); // Bail if we do not have the form. if ( ! gradeForm ) { return; } // Get result div and default info from form. const showResults = document.getElementById('show-resu...
true
9f1b5e28f77f9ff132d219bd327f46022c34f966
JavaScript
MatheusRibeiro/employee-calculator-brazil
/src/dateHelper.js
UTF-8
1,414
3.28125
3
[]
no_license
const moment = require('moment') function completedYears (startDate, endDate) { const startsAt = moment(`${startDate} 00:00`) const endsAt = moment(`${endDate} 23:59`) return endsAt.diff(startsAt, 'years') } function completedMonthsFromAniversary (startDate, endDate) { const startsAt = moment(`${startDate} 00...
true
e6ca747b6e684b3248fd03503009d00b777227b4
JavaScript
wongsiulunroy/JavaScript-String-english-2019-10-11-9-32-19-0
/index.js
UTF-8
884
4.4375
4
[]
no_license
// Complete the following procedure, the 'name' variable in all letters to uppercase, output: ' 'HELLO' '. var name = 'hello'; // TODO write your code here... var name_up = name.toUpperCase(); console.log(name_up); // Complete the following procedure, capitalizing all the words in the variable sentence and printing: ...
true
beed9e1d6da1cb05adcf2b06b54fcb24f4546cbd
JavaScript
2do2go/rate-limit-mongo
/test/utils/getCallbackFromArgs/withLastArgsItemNotFunction.js
UTF-8
451
2.6875
3
[]
no_license
'use strict'; var expect = require('expect.js'); var getCallbackFromArgs = require('../../../lib/utils/getCallbackFromArgs'); var describeTitle = 'lib/utils/getCallbackFromArgs ' + 'with args with last item not function'; describe(describeTitle, function() { var args = [ 'randomString1', 'randomString2' ]; i...
true
5b49a2e8a71d49a9b048ab57e54685934f7037a5
JavaScript
bouyagas/js_argorithm
/algorithms/getFullName.js
UTF-8
196
2.828125
3
[]
no_license
const getFullName = (firstName, lastName) => { return `${firstName} ${lastName}` }; const output = getFullName.bind(this, 'Joe'); output.call(this, 'Smith'); module.exports = { getFullName };
true
97d73e0c0b8e51caf63dd21bc3e9d1c951d2daa2
JavaScript
SeppeMarien/Bootcamp
/Jest/src/mocking.spec.js
UTF-8
1,232
2.578125
3
[]
no_license
/* eslint-disable jest/no-disabled-tests */ import request from 'request'; import httpGet from './mockin'; describe.skip('Mocking tests', () => { let bodyJson; let res; let mock; beforeEach(() => { bodyJson = { id: 1, name: 'Seppe', }; res = { body: JSON.stringify(bodyJson), ...
true
c2976fd688e28b025a4b6305399aa24fed2c03dc
JavaScript
hxbolo/daily
/节流防抖.js
UTF-8
1,246
3.40625
3
[ "MIT" ]
permissive
//模拟一段ajax请求 function ajax(content) { console.log('ajax request ' + content) } function debounce(fun, delay) { return function (args) { let that = this let _args = args clearTimeout(fun.id) fun.id = setTimeout(function () { fun.call(that, _args) }, delay) }...
true
41ad13d391e4f99338c5b0b3456316ca8c68db5e
JavaScript
veizz/file-transfer
/js/upload.js
UTF-8
2,309
2.6875
3
[]
no_license
//alert("js"); /* XMLHttpRequest.prototype.sendAsBinary = function(datastr) { function byteValue(x) { return x.charCodeAt(0) & 0xff; } var ords = Array.prototype.map.call(datastr, byteValue); var ui8a = new Uint8Array(ords); this.send(ui8a.buffer); } */ window.onload = init; function init(){ v...
true
c35d434e36685e5a8e54b76181eb3217c6411ea4
JavaScript
enogrob/ebook-mongodb-data-modeling
/src/chapter 8/throughput_project/app.js
UTF-8
5,251
2.578125
3
[]
no_license
var fs = require('fs'); var util = require('util'); var mongo = require('mongodb').MongoClient; var assert = require('assert'); // Connection URL var url = 'mongodb://192.168.59.103:27001/test'; // Create the date object and set hours, minutes, // seconds and milliseconds to 00:00:00.000 var today = new Date(); today....
true
d603cefc419671b5d07d334d3ab80bd3f2541525
JavaScript
ClickerMonkey/storkjs
/test/base.js
UTF-8
14,341
2.59375
3
[]
no_license
'use strict'; function TestBase(adapter, prepend, hasBackend) { module( adapter ); var adapterImpl = Stork.getAdapter( adapter ); if ( adapterImpl.name !== adapter ) { test('adapter selection', function() { ok( false, 'this adapter is not available in your browser!' ); }); return; ...
true
51543adf4146d3e4290a32f13dab684b80e43364
JavaScript
dlgustn555/health-pc
/src/stores/DiaryStore.js
UTF-8
3,962
2.5625
3
[]
no_license
import api from 'utils/api' export const createDiaryStore = () => ({ selectedMonth: { year: new Date().getFullYear(), month: new Date().getMonth(), }, diaries: [], diary: { _id: null, program: '', plan: [], practice: [], }, // 현재 선택한 YYYY.M을 변경한다...
true
65c3eb5c957010ff6bd24252cf82e8d4b02d45a6
JavaScript
MelanieAlmuina/CursoIngresoJS
/9-Parciales/2018_1Cuatri_Recu_fuentes/uno.js
UTF-8
238
3.40625
3
[]
no_license
function mostrar() { var ancho; var largo; ancho = prompt ("Ingrese el ancho del rectangulo"); largo = prompt ("Ingrese el largo del rectangulo"); alert ("El ancho es de "+ ancho +"m y el largo es de "+ largo+"m."); }
true
4e951b77a05962f42ddb2a647919d55c239308aa
JavaScript
TheGallery/mozillians
/media/js/api.js
UTF-8
583
2.59375
3
[]
no_license
/* * Api specific javascript */ $(function(){ var queryParameters = {}, queryString = location.search.substring(1), re = /([^&=]+)=([^&]*)/g, m; while (m = re.exec(queryString)) { queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); }; queryParameters['format'] = 'json'; ...
true
8e7b2f0679b19484ddc002f4fd2f3815776e2c42
JavaScript
tiberiusuciu/B21
/api/engine/User.js
UTF-8
1,325
3.5
4
[ "MIT" ]
permissive
var User = function(username, id) { this.id = id; this.username = username; this.money = 100; this.currentTurn = { cards: [], currentValue: 0, currentBet: 0, hasPlayed: false, hasHit: false, hasBust: false, hasDoubled: false, hasBlackJack: false, } } User.prototype.dealCards = function(newCards) {...
true
ac09f78f18df560cd1162e52a2caa09f9e440e99
JavaScript
viszi/codes
/CodeWars/4kyu/JavaScript/022-hamming-numbers.js
UTF-8
4,284
4
4
[ "MIT" ]
permissive
// https://www.codewars.com/kata/526d84b98f428f14a60008da // A Hamming number is a positive integer of the form 2^i*3^j*5^k, for some non-negative integers i, j, and k. // 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36, 40, 45, 48, 50, 54, 60 // Write a function that computes the nth smallest Ha...
true
28aaf176cdffe0dc22883ad7966ec47aafe5ad26
JavaScript
DanielAristy/ahorcado
/src/App.js
UTF-8
4,304
2.828125
3
[]
no_license
import './App.css'; import _ from 'lodash'; import { useState } from 'react'; const Horca = ({ children, ancho, alto, anchoContenido }) => { const styleContainer = { width: ancho, height: alto }; const styleContent = { width: anchoContenido, marginLeft: -anchoContenido / 2 } return <div st...
true
71d1dbc5c149427cb4077ff69b2fc707a83cdc6e
JavaScript
imChiragGohel/CrudOperations
/src/components/counter.jsx
UTF-8
2,967
2.6875
3
[]
no_license
import React, { Component } from "react"; import './indexstyles.css'; class Counter extends Component { // state = { // value: this.props.counter.value, // tags: ["tag1", "tag2", "tag3"] // }; // constructor() { // super(); // this.handleIncrement = this.handleIncrement.bind(this)...
true
8a093400f69b9a8c9aaa30305a1ffc23b9448c85
JavaScript
jamie120/JS-toDoList
/script.js
UTF-8
921
3.3125
3
[]
no_license
var button = document.querySelector('button'); var input = document.querySelector('input'); var list = document.querySelector('.list-items') button.addEventListener('click', function() { if (input.value !== "") { var li = document.createElement('li'); li.innerText = input.value; list.appen...
true
f3ef2f8078038c0eef2e13596399e7a0a5c7ff24
JavaScript
flybirdsoft/web_static
/webApp/js/libs/wMobileDialog.js
UTF-8
4,235
2.53125
3
[ "MIT" ]
permissive
/* 对话框组件 write by wuweiwei */ (function(win){ var wMobileDialog = function(options){ this.body = document.getElementsByTagName("body")[0]; this.options = options; if(this.options==undefined) { this.options = {}; } this.create(); this.bindEvent(); }; wMobileDialog.prototype.create = function(){ ...
true
059e1e8695296ee166d663783730e12ada998a9f
JavaScript
DanielleZror/myRecipes
/public/login.js
UTF-8
1,593
2.6875
3
[]
no_license
// Called when Google Javascript API Javascript is loaded function HandleGoogleApiLibrary() { // Load "client" & "auth2" libraries var apiKey var clientId $.get("api/apiKey", function (data) { apiKey = data }) $.get("api/clientId", function (data) { clientId = data }) gapi.load('client:auth2', { callback...
true
8958126a3a6527d4dd4f1da29c100226a35c255e
JavaScript
zhenghuaquan/pinyougou
/pinyougou-web/pinyougou-manager-web/src/main/webapp/js/controller/baseController.js
UTF-8
2,044
3.046875
3
[]
no_license
/** 基础控制器层 */ app.controller('baseController', function ($scope) { // 分页指令需要的配置信息json对象 $scope.paginationConf = { currentPage : 1, // 当前页码 totalItems : 0, // 总记录数 itemsPerPage : 10, // 页大小 perPageOptions : [10,15,20,25,30], // 页码下拉列表框 onChange : function () { // 页码发生改变事件...
true
d90362b5d406b2726f7f6987f950c0d0230c4159
JavaScript
arthurlopesforprojects/Tarefas-Web
/Atividade07/Pratica03/index.js
UTF-8
281
3.203125
3
[]
no_license
const login = prompt('Informe seu login: '); const senha = prompt('Informe seu senha: '); if (login == 'aluno' && senha == '123' || login == 'professor' && senha == '456') { console.log(`O procedimento foi um sucesso`); } else { console.log(`O procedimento deu errado`); }
true
a15201297a0914f867d66b518f38e86473cdc462
JavaScript
rishabhsxn/Codes
/Mobile_Development/React_Native/LCO/CurrencyConverter/App.js
UTF-8
6,041
3.046875
3
[]
no_license
import React from 'react'; import { StyleSheet, Text, View, SafeAreaView, TextInput, TouchableOpacity, TouchableWithoutFeedback, Keyboard } from 'react-native'; export default class App extends React.Component { constructor(props) { super(props) this.state = { output: '0.0', input: ''// step...
true
eaa47f5fa79393da34f25ce5602e93d218c31fed
JavaScript
ANSH-SINGH-2006/C-27-PROJECT-NEWTONS-CRADLE
/sketch.js
UTF-8
1,484
2.734375
3
[]
no_license
var helicopterIMG, helicopterSprite, packageSprite,packageIMG; var packageBody,ground const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Constraint=Matter.Constraint; const Body = Matter.Body; function preload() { } function setup() { createCanvas(800, 700); engine = E...
true
79e52f7f62fce652ab7ddcf0b499746d845b44aa
JavaScript
twanlee/Case-Study-Modul1
/Init.js
UTF-8
2,882
3.171875
3
[]
no_license
let count = 1000; let localStorageName = "highScore"; let highScore = localStorage.getItem(localStorageName) == null ? 0 : localStorage.getItem(localStorageName); ctx.beginPath(); ctx.strokeStyle = 'white'; ctx.arc(350,300,250,0,Math.PI*2); ctx.stroke(); ctx.font = "30px sans-serif"; ctx.fillStyle = 'white'; ctx....
true
fdf66db7e41041fd422e5756ac5edda11b0306a5
JavaScript
jerry1100/leetcode
/46. Permutations.js
UTF-8
811
3.421875
3
[]
no_license
/** * Time: O(n * n!) * Space: O(n * n!) * n - # of nums */ /** * @param {number[]} nums * @return {number[][]} */ function permute(nums) { const solutions = []; findPermutations(nums, solutions, [], new Set()); return solutions; } /** * @param {number[]} nums * @param {number[][]} solutions * @param ...
true
739c1489d37a81b7dde1a72e87e27ca8c4eeb8d2
JavaScript
ztnice/Baidu-front-end-College-web
/html5/storge/webstorge.js
UTF-8
942
3.125
3
[]
no_license
function save() { var name= document.getElementById("sitename").value; var url = document.getElementById("siteurl").value; localStorage.setItem(name,url); alert("save success!") } function find(){ var findSite = document.getElementById("findsite").value; var findUrl =localStorage.getItem(findSi...
true
2419d462a7ce131fa8f787ab7fb78c0073c56678
JavaScript
hatasaki/flatris
/web/pages/stats.js
UTF-8
4,246
2.625
3
[ "MIT" ]
permissive
// @flow import React, { Component, Fragment } from 'react'; import withRedux from 'next-redux-wrapper'; import { createStore } from '../store'; import { addCurUserToState, getDailyStats } from '../utils/api'; import Layout from '../components/Layout'; import type { DailyStats } from 'shared/types/state'; type Props...
true
2a328df621a6fc6313075fc8aac0ba1eb3a77161
JavaScript
Mr-z1207/LifeIsDream
/home/src/api/index.js
UTF-8
1,034
2.65625
3
[]
no_license
import axios from 'axios' import { SERVER, API_CONFIG } from './config.js' /* * 返回一个对象,其对象的属性是方法名,对象的值是方法 * { * key: (data)=>{ ... } * } */ const getApiObj = (apiConfig)=>{ const apiObj = {} for(let key in apiConfig){ apiObj[key] = (data) => { const url = SERVER + apiConfig[key][0] || '' const method = apiC...
true
ea99b9adc8690a3c4e85717c37ca716eb4b79dc8
JavaScript
alefl10/react-practice
/process/js/app.js
UTF-8
3,828
2.5625
3
[ "MIT" ]
permissive
const React = require('react'); const ReactDOM = require('react-dom'); const AptList = require('./AptList'); const AddAppointment = require('./AddAppointment'); const SearchAppointment = require('./SearchAppointment'); const _ = require('lodash'); class MainInterface extends React.Component { constructor(props) { ...
true
097f4a5d4e830575421bdc0d2c820a7e2ab48d44
JavaScript
sgawas/node-chat-app
/public/js/index.2.js
UTF-8
512
3
3
[]
no_license
var socket = io(); //initiating request from client to server, to open up websocket and to keep that connection open. socket.on('connect', function() { console.log('connected to server'); }); socket.on('disconnect', function() { console.log('disconnected from server'); }); socket.on('newMessage', fu...
true
ea4989216113827f1466a1fe68631ff55d416ca3
JavaScript
ramesht05/react-training
/react/js/filter.js
UTF-8
1,122
2.828125
3
[]
no_license
class Filter extends React.Component{ constructor(props){ super(props); this.state = { items: ["Apples", "Bread", "Vada", "Oats", "Oranges", "Grapes", "Banana"] };...
true
990ab8db641548c108ec9c25f84ca7084f297a92
JavaScript
Heisenberg0101/brick
/demo/新建文件夹/Allez.js
UTF-8
541
3.140625
3
[]
no_license
var log = function() { console.log.apply(console, arguments) } //返回现在日期 Separator分隔符符 格式2019sep04sep20 var show_nowTime = function(sep="-") { var myDate = new Date() var nowYear = myDate.getFullYear() var nowMonth =myDate.getMonth() + 1 var nowToday = myDate.getDate() var nowTime = "" if(no...
true
96c945fa93c2df8a51f9d7dbbf5616ece301c0d8
JavaScript
ChrisPaj/reactnd-project-mobile-flashcards
/reducers/index.js
UTF-8
1,004
2.53125
3
[]
no_license
import { RECEIVE_DATA, ADD_QUESTION, ADD_DECK, DELETE_DECK, CHANGE_DECK_TITLE } from "../actions"; export default function flashcardReducers(state = {}, action) { switch (action.type) { case RECEIVE_DATA: return { ...state, ...action.data }; case ADD_QUESTION: retu...
true
f6b222b6c2c8d2d2fd04e1c6cccfa7634bef486b
JavaScript
shyam-chebrolu/Tickerr
/apps/Tickerr/common/js/service/common/busyIndicatorService.js
UTF-8
580
2.59375
3
[]
no_license
BusyIndicatorService = function() { this._counter = 0; this._busyIndicator = new WL.BusyIndicator(null, { text: "Please wait..", fullScreen: false, bounceAnimation: false, opacity:0 }); }; BusyIndicatorService.prototype.show = function() { if(!this._busyIndicator.isVisible()...
true
845235430556b342d8e1f3699c5d454edbfc8fe8
JavaScript
ruhulrahman/Node.js-Practice
/fsModule/index.js
UTF-8
579
2.6875
3
[]
no_license
var fs = require('fs') var http = require('http') var server = http.createServer(function (req, res) { if (req.url==="/") { //Asyncrhonus data reader // fs.readFile('home.html', function (error, data) { // res.writeHead(200, { 'Content-Type':'text/html' }) // res.write(data) ...
true
b1affd13d666a3039a7057ae9e0c1069e30d2c67
JavaScript
SmetaninPavel/press-foto-test-app
/src/containers/Main.js
UTF-8
2,915
2.671875
3
[]
no_license
import React, { Component } from 'react'; import Footer from '../components/Footer'; import Items from '../components/Items'; import itemsData from '../data/items.json'; class Main extends Component { constructor() { super(); this.state = { items: itemsData.data.items, itemsOnPage: 6, selec...
true
ecfee1344a7abfa5510ba6d7d456740d850365e7
JavaScript
magedabdelsalam/pods
/public/assets/js/index.js
UTF-8
4,867
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
$(document).ready(function () { // Pod $("#createPodForm").on("submit",event=>{ event.preventDefault(); console.log('Pod created!'); $.ajax({ method:"GET", url:"/api/pods", }).then(data=>{ console.log(data); const podObj = { ...
true
8e85c7dba9338cf78434b7b942c19128c143b315
JavaScript
elizabethcan/movie_list
/src/components/MovieList.jsx
UTF-8
677
2.578125
3
[]
no_license
import React from 'react'; import MovieRow from './MovieRow.jsx'; function MovieList(props) { if (props.displayWatched === true) { var list = props.movies.filter((movie) => { console.log(movie); movie.watched === true; }); console.log(list); } else { var list = props.movies.filter((movi...
true
2c8e6542697b16e8d8db84a2cb182138daa6b107
JavaScript
TheMichaelRay/w01d04homework
/app.js
UTF-8
947
3.421875
3
[]
no_license
// var scores = [ // 1204300, // 1203040, // 1010230, // 1000410, // 903193 // ] var scoreList = document.querySelector('#highscores'); var scoreNumberList = document.querySelector('#scoreNumbers'); // *******for loop works******** // for (var i=0; i<scores.length; i++){ // console.log(scores[i]); // sco...
true
51b0685687535eb5f8cc2da5143a48f21edee86d
JavaScript
surenderthakran/test_suite
/gomind_runner/src/gomind_runner/static/js/index.js
UTF-8
503
2.703125
3
[]
no_license
'use strict'; (() => { document.addEventListener('DOMContentLoaded', () => { document.getElementById('train').addEventListener('click', () => { trainNetwork(); }); }); function trainNetwork() { Status.message('Training...'); window.Library.Ajax.train().then((data) => { console.log(da...
true
cbd4cf80993a1670e4573c379ca2b9af6149c349
JavaScript
woo6794/minesearch-redux-toolkit-practice
/src/components/Td.js
UTF-8
5,675
2.53125
3
[]
no_license
import React, { useCallback, memo } from "react"; import { useDispatch, useSelector } from "react-redux"; import { openCell, clickMine, flagCell, questionCell, normalizeCell, } from "../store/reducer"; import { CODE } from "./MineSearch"; const getTdStyle = (code) => { switch (code) { case CODE.NORMAL:...
true
8bd0ea032adea56b7ecf14951720f8d7b65b1404
JavaScript
Fyzu/fyzu.github.io
/src/js/GameScene.js
UTF-8
9,684
2.90625
3
[]
no_license
/** * Created by Dmitry on 12.01.2016. */ // Игровая сцена function GameScene(engine) { /** Набор состояний сцены * */ var states = { currentScene:"testPolygon" }; /** Объект сцены - камера * Описание: Предпологается что координаты камеры, это центр наблюдаемый на экране, т.е...
true
b47777bbf16cd2f166baa08ba531190b2c6b0bdc
JavaScript
varsha-1408/Varidus-Backend
/findRegion.js
UTF-8
2,245
2.65625
3
[]
no_license
//store of countries and region to find theregion a country belongs to var res = ""; function findRegion(data) { var startupCountries = [ { region: "Indian Subcontinent ", country: ["India"] }, { region: "Central America + Caribbean", country: ["Costa Rica", "Honduras", "Panama", "Trinidad and Tobago", "Brit...
true
8e7bbe64ef2aaa441ccbe135d85bd8830e23e26e
JavaScript
blast64000/node_client
/node_study/archive/02.Asyn_hello copy.js
UTF-8
473
2.546875
3
[]
no_license
var http = require('http'); var fs = require('fs'); http.createServer(function(req, res) { fs.readFile('01.hello_w.js', 'utf-8', function(err, data) { res.writeHead(200, { 'content-type': 'text/plain' }); if (err) res.write('could not fine or open file for reading'); else ...
true
d4c5dfceddb18d45fa1f7c13c95ab0262c1fad37
JavaScript
distributed-systems/playr
/test/TestScenario.js
UTF-8
1,546
2.671875
3
[ "MIT" ]
permissive
(function() { 'use strict'; var Class = require('ee-class') , log = require('ee-log') , Scenario = require('../').Scenario ; module.exports = new Class({ inherits: Scenario , duration: 10 , init: function init(id) { ...
true
ce022961c855c5307d5789f22d7696f3d4767140
JavaScript
ziadalame/new-year-resolution
/assets/js/script.js
UTF-8
3,489
2.8125
3
[]
no_license
jQuery(document).ready(function($) { //ONDOCUMENT READY headerSize(); //RESIZING HEADER ACCORDING TO SCREEN WIDTH fontSize(); //RESIZING FONT SIZE ACCORDING TO SCREEN WIDTH paddingTop(); modalSize(); $("#signup_alert").hide(1); $("#login_alert").hide(1); $("#email_display").hide(1)...
true
01821b4329768e0a2433f754489e09ba3ef0a39c
JavaScript
miss-shree/New-lms
/js5/index.js
UTF-8
4,174
2.5625
3
[]
no_license
var app = angular.module('BipApp', ['ngMaterial']); app.controller('BipCtrl', ['$scope', '$mdSidenav', function($scope, $mdSidenav) { $scope.toggleSidenav = function(menuId) { $mdSidenav(menuId).toggle(); }; }]); angular.module('inputProfile', ['ngMaterial', 'ngMessages']) app.controller('BipCtrl', function(...
true
3c8912cb95f64eddb3e82899bb44995c4c9fb34f
JavaScript
sukyoung/safe
/tests/test262/15.6/15.6.1/S15.6.1.1_A1_T5.js
UTF-8
887
2.859375
3
[ "BSD-3-Clause" ]
permissive
{ var __result1 = typeof Boolean(x = 0) !== "boolean"; var __expect1 = false; } { var __result2 = Boolean(x = 0) !== false; var __expect2 = false; } { var __result3 = typeof Boolean(x = 1) !== "boolean"; var __expect3 = false; } { var __result4 = Boolean(x = 1) !== true; va...
true