First 25 rows of js
| uuidstring | repo_namestring | relative_pathstring | contentstring | categorystring | algo_rel_scorefloat64 | quality_scorefloat64 |
|---|---|---|---|---|---|---|
| fd6cfe5a-ba94-4143-bf4d-8873bfeadba2 | Wilcolab/Anythink-Market-bnwg49mt | frontend/src/components/Settings.js | import ListErrors from "./ListErrors"; import React, { useCallback, useEffect, useState } from "react"; import agent from "../agent"; import { connect } from "react-redux"; import { SETTINGS_SAVED, SETTINGS_PAGE_UNLOADED, LOGOUT, } from "../constants/actionTypes"; const Se… | WEB | 0.8340463638305664 | 6.705857753753662 |
| 5a09038a-103f-43dc-9431-30298ea39ba8 |
| unifi.js |
| var request = require('request'); var rp = require('request-promise'); var defer = require('promise-defer') var cookie = require('cookie'); var unifi_username; var unifi_password; var unifi_Cookies; var unifi_APIKEY; var unifi_USERID; var unifi_NvrUrl; var cameras; var s… |
| TOOL |
| 0.9248398542404175 |
| 4.520977973937988 |
| 908b3821-1812-4f30-8c9e-c0378ffaa980 | timite12345/timite_pfe | Dashboard_pfe_FSM/public/plugins/codemirror/mode/swift/swift.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE // Swift mode created by Michael Kaminsky https://github.com/mkaminsky11 (function(mod) { if (typeof exports == "object" && typeof module == "object… | TOOL | 0.9178222417831421 | 7.313978672027588 |
| d6f72535-6e29-4933-a647-5c829ffbed5a | EmilHvitfeldt/talk-purrr-ocrug-2023 | index_files/libs/revealjs/plugin/quarto-support/support.js | // catch all plugin for various quarto features window.QuartoSupport = function () { function isPrintView() { return /print-pdf/gi.test(window.location.search); } // implement controlsAudo function controlsAuto(deck) { const config = deck.getConfig(); if (con… | WEB | 0.8492388129234314 | 3.148587226867676 |
| e9f86677-5c07-47a0-8b9e-7c38990e3340 | sagarpandey142/tempsave | server/controller/Alert.js | const Alert = require("../Models/Alert"); exports.GetRecentAlert = async (req, res) => { try { const{ProfileId}=req.body; // Calculate the timestamp 5 hours ago const OneHoursAgo = new Date(Date.now() - 1 * 60 * 60 * 1000); // Find alerts cre… | WEB | 0.8095830678939819 | 6.2031073570251465 |
| ec263473-eb6c-404e-9acc-e85aa7160509 | sadieBoBadie/Dec2020Python | Week1/Day3/Algorithms/encode_student_solutions/encode_JW.js | // Solution from John Williams function encodeStr(str) { console.log("\n\noriginal str ->", str); if (str.length <= 1) return str; var counter = 1; var newStr = ""; for (var i = 0; i < str.length; i++) { while (str[i] == str[i + 1]) { counter++;… | ALGO | 0.9827120304107666 | 4.012111663818359 |
| 9b08ca2f-2a89-42f3-b225-920216a7cc8c | seinenten/03-backend-server | public/assets/plugins/datatables-plugins/sorting/numeric-comma.js | /** * It is not uncommon for non-English speaking countries to use a comma for a * decimal place. This sorting plug-in shows how that can be taken account of in * sorting by adding the type `numeric-comma` to DataTables. A type detection * plug-in for this sorting method is … | TOOL | 0.8173199892044067 | 6.004580020904541 |
| 914e5037-cf1e-4a09-9c13-2d564f418fa3 | wahajtaufique/expense-tracker-api | config/checkPermission.js | const Role = require("../models/role"); const User = require("../models/user"); const checkPermission = function (...name) { return async (req, res, next) => { try { const role = await Role.find({ _id: req.user.roleId._id }); if (role[0].name === "superAdmin") { ret… | WEB | 0.8541126847267151 | 6.464129447937012 |
| 1b9960e7-1f8a-4340-a1fc-99f702b74748 | adrilop06/nftgeek-frontend | src/components/nav/admin/adminMenu.js | /* This example requires Tailwind CSS v2.0+ */ import React, { Fragment } from 'react' import { Disclosure, Menu, Transition } from '@headlessui/react' import { BellIcon, MenuIcon, XIcon, SearchIcon} from '@heroicons/react/outline' import { Link } from "react-router-dom"; import … | WEB | 0.8945341110229492 | 6.640298366546631 |
| 01a5214e-11f6-4068-a8cc-f3201de65419 | kodahenk/planox | public/assets/js/plugins/flatpickr/esm/utils/index.js | export var pad = function (number, length) { if (length === void 0) { length = 2; } return ("000" + number).slice(length * -1); }; export var int = function (bool) { return (bool === true ? 1 : 0); }; export function debounce(fn, wait) { var t; return function () … | TOOL | 0.932493269443512 | 4.710571765899658 |
| d7015e95-39c3-4ade-9fd0-c604d76ddb45 | OxADD1/AdrianWebsite | lib/bootstrap/js/src/dom/data.js | /** * -------------------------------------------------------------------------- * Bootstrap dom/data.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ /** * Constan… | TOOL | 0.8910493850708008 | 6.208145618438721 |
| 80315207-28b0-4337-87e8-838a78f71525 | alifanrenaldi/untukrian | public/Assets/AdminLTE-3.2.0/plugins/codemirror/mode/haskell/haskell.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof… | TOOL | 0.770878255367279 | 6.4499921798706055 |
| 90fafa49-69b7-4c6f-b33d-030eac7d3d4c | runmawi/runmawi | assets/admin/js/codemirror/mode/mllike/mllike.js | CodeMirror.defineMode('mllike', function(_config, parserConfig) { var words = { 'let': 'keyword', 'rec': 'keyword', 'in': 'keyword', 'of': 'keyword', 'and': 'keyword', 'if': 'keyword', 'then': 'keyword', 'else': 'keyword', 'for': 'keyword', … | TOOL | 0.8316103219985962 | 7.477878570556641 |
| 48e739a1-6abc-4643-8da2-fc9251957bec | otisscott/roast-my-teacher-backend | server.js | const express = require("express"); const bodyParser = require("body-parser"); const mongodb = require("mongodb"); const csv = require("fast-csv"); const ObjectID = mongodb.ObjectID; const TEACHERS_COLLECTION = 'teachers'; const STUDENTS_COLLECTION = 'students'; const ROAST_COLL… | WEB | 0.9447605013847351 | 4.722406387329102 |
| 9d6d7db7-40f7-4134-b792-3b0a6fdcd2bf | Umerhaqani90/LibraryAppBoilerPlate | LibraryApp.Web/lib/chart.js/src/scales/scale.radialLinear.js | 'use strict'; module.exports = function(Chart) { var helpers = Chart.helpers; var globalDefaults = Chart.defaults.global; var defaultConfig = { display: true, // Boolean - Whether to animate scaling the chart from the centre animate: true, position: 'chartArea', … | TOOL | 0.8981224894523621 | 7.080802917480469 |
| 3d40da29-48eb-4227-9226-1fc70f903abe | cozloff/First_Full-stack_Project | .history/frontend/src/PartyRoom/PartyRoom_20230606224525.js | /*global google*/ import React, {useEffect, useState, useMemo, useRef} from "react"; import { GoogleMap, MarkerF, OverlayView } from "@react-google-maps/api" import { getGeocode, getDetails } from "use-places-autocomplete"; import OverlaySidebar from "./OverlaySidebar"; import Lo… | WEB | 0.8781453371047974 | 5.221153259277344 |
| 63b9efec-8770-476c-8400-de88d68f6952 | AmraniCode/DonationApp | ChurchApp/wwwroot/adminlte/plugins/codemirror/mode/dart/dart.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../clike/… | TOOL | 0.9287205338478088 | 7.852347373962402 |
| 6f58ef75-0c46-4240-aa5f-29ef145941fb | angamadev/instagram | staticfiles/modeltranslation/js/tabbed_translation_fields.js | /*jslint white: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true */ var google, django, gettext; (function () { var jQuery = window.jQuery || $ || django.jQuery; /* Add a new selector to jQu… | TOOL | 0.7829944491386414 | 6.788182258605957 |
| 74be0c43-ab78-448a-ae1e-4775bc7d0044 | lukicodigo/TasteEmpanadas | env/Lib/site-packages/django/contrib/admin/static/admin/js/prepopulate.js | /*global URLify*/ 'use strict'; { const $ = django.jQuery; $.fn.prepopulate = function(dependencies, maxLength, allowUnicode) { /* Depends on urlify.js Populates a selected field with the values of the dependent fields, URLifies… | TOOL | 0.7851659655570984 | 6.841867923736572 |
| 0a728b71-50c6-49fe-a6b5-8428e0e68039 | yingyangvis/ontoplot | js/colour.js | function getCircleColour(d, circleDom) { if (colourDict[d.url]) { let dom = document.getElementById(d.id); let cx = dom.getAttribute("cx"); if (colouredCirclePositionDict.hasOwnProperty(cx)) { colouredCirclePositionDict[cx].push(dom); … | TOOL | 0.8527270555496216 | 5.87188196182251 |
| 1d422d2c-ad31-403a-9ab1-92bd374d42d1 | farelaja24/fullcrud-php | assets-template/plugins/codemirror/mode/fcl/fcl.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof… | TOOL | 0.9048546552658081 | 6.624780178070068 |
| c799e1e2-7600-45bf-9a3d-e4ed779a33c3 | hamitmizrak/Staj-JavaEE-1 | WebContent/admin/plugins/codemirror/mode/modelica/modelica.js | // CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE // Modelica support for CodeMirror, copyright (c) by Lennart Ochel (function(mod) { if (typeof exports == "object" && typeof module == "object") // … | TOOL | 0.7820234298706055 | 6.6338372230529785 |
| 2b689d49-f05c-4b63-ad41-186e581acd06 | JeffUlan/inventory-application | views/src/redux/actions/cart-actions/addToCart.js | import { ADD_TO_CART_SUCCESS, ADD_TO_CART_FAILURE } from "./../types"; import { tokenConfig } from "./../auth-actions/tokenConfig"; import axios from "axios"; export const addToCart = (productId, orderQuantity = null) => (dispatch, getState) => { return new Promise((resolve, r… | WEB | 0.7804276347160339 | 6.889980792999268 |
| 7627ba02-6858-4145-b1b9-5422d9d4ba9a | Wille977/recipe-app | src/utils/recipeImporter.js | /** * Enhanced utility functions for importing and managing recipes from TheMealDB API * Using documentation from https://www.themealdb.com/api.php * Now with Spoonacular API support (https://spoonacular.com/food-api) */ import { importWebRecipes } from './recipe-parser'; /… | TOOL | 0.7680110931396484 | 7.137071132659912 |
| 729b1e5a-8dd9-4f0c-8720-85099994d0c8 | NisargPipaliya/leetcode | Javascript/day3_2665_counter_2.js | /* 2665. Counter II Easy 280 4 Companies Write a function createCounter. It should accept an initial integer init. It should return an object with three functions. The three functions are: increment() increases the current value by 1 and then returns it. decrement() reduces the… | ALGO | 0.7727811336517334 | 5.73980188369751 |