hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a083a2d22f25340e776d7f5e00cd363cb8e0939 | 2,393 | js | JavaScript | service.house.registry/house.js | Olili2017/tenant-management-system | 64c3b0a73a90f57989cafb9e9c6fa621bca8b345 | [
"MIT"
] | null | null | null | service.house.registry/house.js | Olili2017/tenant-management-system | 64c3b0a73a90f57989cafb9e9c6fa621bca8b345 | [
"MIT"
] | 3 | 2020-08-12T08:06:28.000Z | 2021-05-10T20:56:32.000Z | service.house.registry/house.js | Olili2017/tenant-management-system | 64c3b0a73a90f57989cafb9e9c6fa621bca8b345 | [
"MIT"
] | null | null | null | // const Database = require('./database')
const axios = require('axios')
const Database = require('./database')
const service = {
config : { url : "http://localhost:3000" }
}
class House {
constructor(){
this.database = null
}
async getDatabase(){
if (this.database) return this.datab... | 24.927083 | 101 | 0.437526 |
6a08f02466c1bcff099a5d1bdebc22504cf98b1c | 9 | js | JavaScript | scripts/build-html.js | NathanNeelis/progressive-web-apps-2021 | 3fff5acd3a396c6f67dc5ee1f0b6c8a50f2bd7ae | [
"MIT"
] | null | null | null | scripts/build-html.js | NathanNeelis/progressive-web-apps-2021 | 3fff5acd3a396c6f67dc5ee1f0b6c8a50f2bd7ae | [
"MIT"
] | 1 | 2021-03-19T08:46:19.000Z | 2021-03-19T08:46:19.000Z | scripts/build-html.js | NathanNeelis/progressive-web-apps-2021 | 3fff5acd3a396c6f67dc5ee1f0b6c8a50f2bd7ae | [
"MIT"
] | null | null | null | // TO DO | 9 | 9 | 0.444444 |
6a096c5562df84227ce09ce75db4dd69c40226cc | 1,952 | js | JavaScript | overlays/holo-nixpkgs/hpos-holochain-api/src/utils.js | pjkundert/holo-nixpkgs | 814f8d110ad4560854698c24a0ccbade041df5d8 | [
"MIT"
] | null | null | null | overlays/holo-nixpkgs/hpos-holochain-api/src/utils.js | pjkundert/holo-nixpkgs | 814f8d110ad4560854698c24a0ccbade041df5d8 | [
"MIT"
] | null | null | null | overlays/holo-nixpkgs/hpos-holochain-api/src/utils.js | pjkundert/holo-nixpkgs | 814f8d110ad4560854698c24a0ccbade041df5d8 | [
"MIT"
] | null | null | null | const tmp = require('tmp')
const request = require('request')
const fs = require('fs')
// Download from url to tmp file
// return tmp file path
const downloadFile = async (downloadUrl) => {
console.log('Downloading url: ', downloadUrl)
const fileName = tmp.tmpNameSync()
const file = fs.createWriteStream(fileName... | 26.378378 | 128 | 0.650615 |
6a0a2a90c75343986682e9749779f27f878cd7a5 | 571 | js | JavaScript | routes/tasks.js | yiJiaWang/node | 38b522a9ea10d244e890d8b0c196edf490363870 | [
"MIT"
] | 113 | 2020-06-22T02:25:12.000Z | 2022-03-31T05:44:08.000Z | routes/tasks.js | yiJiaWang/node | 38b522a9ea10d244e890d8b0c196edf490363870 | [
"MIT"
] | 4 | 2020-08-02T18:34:26.000Z | 2021-02-19T01:49:50.000Z | routes/tasks.js | yiJiaWang/node | 38b522a9ea10d244e890d8b0c196edf490363870 | [
"MIT"
] | 40 | 2020-06-24T23:15:40.000Z | 2022-03-16T08:15:47.000Z | /**
* 描述: 任务路由模块
* 作者: Jack Chen
* 日期: 2020-06-20
*/
const express = require('express');
const router = express.Router();
const service = require('../services/taskService');
// 任务清单接口
router.get('/queryTaskList', service.queryTaskList);
// 添加任务接口
router.post('/addTask', service.addTask);
// 编辑任务接口
router.put('/... | 17.30303 | 58 | 0.705779 |
6a0a3cd112550c4970165d2f74d3bf8c90e86a40 | 1,951 | js | JavaScript | Server/controllers/category.js | Satwikan/2nd-hand-mbm | 9d97de57a477afd787abe1a269872e1214319f58 | [
"MIT"
] | 7 | 2021-05-16T10:36:56.000Z | 2022-01-31T03:09:47.000Z | Server/controllers/category.js | Rajat-Jain29/MBM-Project | 6dfe160aafd1d2c593c4fd18172f9612a7c4657b | [
"MIT"
] | 1 | 2021-10-29T19:44:31.000Z | 2021-10-29T19:44:31.000Z | Server/controllers/category.js | Rajat-Jain29/MBM-Project | 6dfe160aafd1d2c593c4fd18172f9612a7c4657b | [
"MIT"
] | 2 | 2021-05-21T05:21:26.000Z | 2021-05-22T05:31:50.000Z | const Category = require("../models/category");
const Sub = require("../models/sub");
const slugify = require('slugify');
// const { ObjectId } = require("bson");
const Product = require("../models/product")
exports.create = async(req, res) => {
try{
const {name} = req.body;
console.log(name);
... | 27.871429 | 121 | 0.578165 |
6a0a6b66bcd324acadc977d51be1baaf3131b8f7 | 4,481 | js | JavaScript | statusboard/src/components/Map/Map.js | rkiddy/brigade-project-index-statusboard | f3b879dd61c8f94c4b489a8babd095a5705550e4 | [
"Apache-2.0"
] | 4 | 2020-04-02T03:20:04.000Z | 2021-04-10T20:35:34.000Z | statusboard/src/components/Map/Map.js | rkiddy/brigade-project-index-statusboard | f3b879dd61c8f94c4b489a8babd095a5705550e4 | [
"Apache-2.0"
] | 178 | 2020-02-12T18:31:45.000Z | 2022-03-28T13:24:01.000Z | statusboard/src/components/Map/Map.js | mmazanec22/brigade-project-index-statusboard | fc0b079f254f02f1e84fecedd3e048dbe2136be7 | [
"Apache-2.0"
] | 18 | 2020-02-19T03:13:05.000Z | 2021-07-22T09:54:25.000Z | import React, { useEffect, useState } from 'react';
import { renderToString } from 'react-dom/server';
import PropTypes from 'prop-types';
import L from 'leaflet';
import { Map as LeafletMap, TileLayer, Marker, Popup } from 'react-leaflet';
import { ReactComponent as Circle } from './Icon.svg';
import { Button } from '... | 33.94697 | 127 | 0.54229 |
6a0ab3928144dce5d83179d80c6db369fa43c19a | 1,203 | js | JavaScript | private/events/users/handleStripeAutoUnsubscribe/handleDeletedSubscription.js | rohithreddy/MoonMail | 6190be3b69b3790d403917b3c26a70765d612042 | [
"MIT"
] | 1 | 2019-04-15T12:04:13.000Z | 2019-04-15T12:04:13.000Z | private/events/users/handleStripeAutoUnsubscribe/handleDeletedSubscription.js | rohithreddy/MoonMail | 6190be3b69b3790d403917b3c26a70765d612042 | [
"MIT"
] | null | null | null | private/events/users/handleStripeAutoUnsubscribe/handleDeletedSubscription.js | rohithreddy/MoonMail | 6190be3b69b3790d403917b3c26a70765d612042 | [
"MIT"
] | null | null | null | import Promise from 'bluebird';
import { strip } from 'eskimo-stripper';
import { User } from '../../../lib/models/user';
const stripe = require('stripe')(process.env.STRIPE_API_KEY);
// https://www.masteringmodernpayments.com/stripe-webhook-event-cheatsheet
// https://stripe.com/docs/api#event_types
export default f... | 31.657895 | 74 | 0.72153 |
6a0ac950601d650139b08d85991b6f0efc1153ec | 29,674 | js | JavaScript | blahhhhh/romaji-name.js | chieko1/kaiju | 249a34c908bdfc1e57ce7e6a17442470b9fcb39f | [
"MIT"
] | null | null | null | blahhhhh/romaji-name.js | chieko1/kaiju | 249a34c908bdfc1e57ce7e6a17442470b9fcb39f | [
"MIT"
] | 3 | 2021-07-26T02:16:43.000Z | 2021-08-09T18:36:28.000Z | blahhhhh/romaji-name.js | chieko1/kaiju | 249a34c908bdfc1e57ce7e6a17442470b9fcb39f | [
"MIT"
] | 1 | 2021-07-23T01:32:36.000Z | 2021-07-23T01:32:36.000Z | // The MIT License (MIT)
// Copyright (c) 2013 John Resig
import enamdict from "enamdict"
import hepburn from "hepburn"
import "bulk-replace"
// Thanks to Jed Schmidt!
// https://twitter.com/jedschmidt/status/368179809551388672
// https://ja.wikipedia.org/wiki/%E5%A4%A7%E5%AD%97_(%E6%95%B0%E5%AD%97)
var generations ... | 35.11716 | 215 | 0.520422 |
6a0c1f5cfdfe87d4a2134d300c7ec8875e616994 | 5,193 | js | JavaScript | app/containers/DashboardManageUsers/DashboardManageUsersAddUserForm/index.js | ngkhoawork/study-web | d9011a6a10951b27b6823e5631797eaafb8e6b55 | [
"MIT"
] | null | null | null | app/containers/DashboardManageUsers/DashboardManageUsersAddUserForm/index.js | ngkhoawork/study-web | d9011a6a10951b27b6823e5631797eaafb8e6b55 | [
"MIT"
] | 1 | 2020-07-19T13:41:05.000Z | 2020-07-19T13:41:05.000Z | app/containers/DashboardManageUsers/DashboardManageUsersAddUserForm/index.js | starsoftdev/study-web | d9011a6a10951b27b6823e5631797eaafb8e6b55 | [
"MIT"
] | null | null | null | import _ from 'lodash';
import React, { PropTypes } from 'react';
import { Field, reduxForm, blur } from 'redux-form';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { normalizePhoneDisplay } from '../../../../app/common/helper/functions';
import Input from '../../..... | 28.222826 | 123 | 0.536684 |
6a0c42f4a8a856f28b5af7507aedb608999c8a67 | 260 | js | JavaScript | api/models/BlackList.js | kanitelk/minter-scoring | 602fef335ae06f98a753ab33aa141bb889199cfa | [
"MIT"
] | null | null | null | api/models/BlackList.js | kanitelk/minter-scoring | 602fef335ae06f98a753ab33aa141bb889199cfa | [
"MIT"
] | 1 | 2019-11-13T17:54:18.000Z | 2020-04-22T09:17:52.000Z | api/models/BlackList.js | kanitelk/minter-scoring | 602fef335ae06f98a753ab33aa141bb889199cfa | [
"MIT"
] | null | null | null | const mongoose = require("mongoose");
const BlackListSchema = mongoose.Schema(
{
_id: String,
description: String,
from: String
},
{
timestamps: true,
_id: false
}
);
module.exports = mongoose.model("BlackList", BlackListSchema);
| 16.25 | 62 | 0.653846 |
6a0d040210eadf4b5a1b4a55ce57218694a3e1bc | 11,830 | js | JavaScript | samples/core/com/zoho/crm/api/sample/threading/multi_thread.js | zoho/zohocrm-typescript-sdk-2.0 | e26bae952f801707168b3cefa0f956510a28b428 | [
"Apache-2.0"
] | null | null | null | samples/core/com/zoho/crm/api/sample/threading/multi_thread.js | zoho/zohocrm-typescript-sdk-2.0 | e26bae952f801707168b3cefa0f956510a28b428 | [
"Apache-2.0"
] | null | null | null | samples/core/com/zoho/crm/api/sample/threading/multi_thread.js | zoho/zohocrm-typescript-sdk-2.0 | e26bae952f801707168b3cefa0f956510a28b428 | [
"Apache-2.0"
] | 1 | 2022-01-15T21:53:50.000Z | 2022-01-15T21:53:50.000Z | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const user_signature_1 = require("@zohocrm/typescript-sdk-2.0/routes/user_signature");
const sdk_config_builder_1 = require("@zohocrm/typescript-sdk-2.0/routes/sdk_config_builder");
const file_store_1 = require("@zohocrm/typescript-sdk-2.0/mod... | 53.772727 | 216 | 0.563229 |
6a0d5a0619672313c8a9a480245f5e85d7ff9f50 | 820 | js | JavaScript | Code/commands/puzzles/connect-four/game/connect-4-show-game.js | jojo2357/jojos-bot | 8b4556b9d9d41ce4e74d3e416f90559c722ba1e5 | [
"MIT"
] | 104 | 2020-10-08T15:10:47.000Z | 2020-12-03T23:17:26.000Z | Code/commands/puzzles/connect-four/game/connect-4-show-game.js | jojo2357/jojos-bot | 8b4556b9d9d41ce4e74d3e416f90559c722ba1e5 | [
"MIT"
] | null | null | null | Code/commands/puzzles/connect-four/game/connect-4-show-game.js | jojo2357/jojos-bot | 8b4556b9d9d41ce4e74d3e416f90559c722ba1e5 | [
"MIT"
] | 2 | 2020-10-25T23:42:38.000Z | 2020-11-21T19:13:55.000Z | const Manager = require('./connect-4-game-holder.js');
module.exports = {
commands: ['show'],
minArgs: 0,
maxArgs: 0,
callback: (message) => {
if (Manager.usersGame('<@' + message.author + '>') != null)
if (Manager.usersGame('<@' + message.author + '>').channel[Manager.usersGame('<@... | 51.25 | 218 | 0.565854 |
6a0d88da43f6f9cfb98369271156e200384c4a65 | 3,829 | js | JavaScript | machine_learning/flappy bird/neuralnetwork.js | willigro/Self-Challenges | 67d35afebd9ac8acb910ec0af6ee217d55af40de | [
"Apache-2.0"
] | null | null | null | machine_learning/flappy bird/neuralnetwork.js | willigro/Self-Challenges | 67d35afebd9ac8acb910ec0af6ee217d55af40de | [
"Apache-2.0"
] | 3 | 2020-04-18T17:43:58.000Z | 2020-04-18T17:53:47.000Z | machine_learning/flappy bird/neuralnetwork.js | willigro/Self-Challenges | 67d35afebd9ac8acb910ec0af6ee217d55af40de | [
"Apache-2.0"
] | null | null | null | class Brain {
constructor() {
this.inputLayer = []
this.hiddenLayer = []
this.hiddenLayer2 = []
this.outputLayer = []
this.bias = []
this.chanceToChange = .3
this.resultInput
this.resultHidden
this.resultHidden2
this.resultOutput
... | 25.190789 | 84 | 0.480282 |
6a0df1d7b69a376b065b08a183ad11e60aacca6e | 2,498 | js | JavaScript | packages/integration-karma/test/template/directive-for-each/index.spec.js | swanaselja/lwc | 7efada0df77ce28d8536ef4859c31fb12c0d783a | [
"MIT"
] | 1 | 2020-04-08T16:53:32.000Z | 2020-04-08T16:53:32.000Z | packages/integration-karma/test/template/directive-for-each/index.spec.js | swanaselja/lwc | 7efada0df77ce28d8536ef4859c31fb12c0d783a | [
"MIT"
] | 3 | 2022-02-14T22:02:42.000Z | 2022-03-08T23:38:21.000Z | packages/integration-karma/test/template/directive-for-each/index.spec.js | swanaselja/lwc | 7efada0df77ce28d8536ef4859c31fb12c0d783a | [
"MIT"
] | null | null | null | import { createElement } from 'lwc';
import XTest from 'x/test';
import ArrayNullPrototype from 'x/arrayNullPrototype';
function testForEach(type, obj) {
it(`should render ${type}`, () => {
const elm = createElement('x-test', { is: XTest });
document.body.appendChild(elm);
expect(elm.shado... | 32.025641 | 166 | 0.555244 |
6a0e0fc964d1b1ac9a9f2a5ea01fe91ba80dd936 | 319 | js | JavaScript | src/packets/PacketSubtitles.js | DanielHuisman/transportstream.js | 7faa36ff64c07a8a9f8c906d6fb0c3cbac2fecd6 | [
"ISC"
] | 6 | 2017-01-23T11:39:02.000Z | 2018-10-05T12:18:34.000Z | src/packets/PacketSubtitles.js | hsg210/transportstream.js | b7cedb8edf9bfccb7a6ec57dd61a6847f5c319f4 | [
"ISC"
] | 1 | 2018-03-13T03:37:53.000Z | 2018-03-13T12:57:40.000Z | src/packets/PacketSubtitles.js | hsg210/transportstream.js | b7cedb8edf9bfccb7a6ec57dd61a6847f5c319f4 | [
"ISC"
] | 2 | 2017-01-04T18:32:21.000Z | 2018-03-13T06:24:45.000Z | import Packet from './Packet';
export class SubtitleSegment {
type = 0;
pageId = 0;
length = 0;
data = null;
parsedData = null;
};
export default class PacketSubtitles extends Packet {
identifier = 0;
streamId = 0;
segments = [];
constructor(data) {
super(data);
}
};
| 15.95 | 53 | 0.586207 |
6a0e2ee9892991290331b8c3152ec24810bcfc00 | 2,147 | js | JavaScript | slashCommands/Settings/defaultautoplay.js | peter00704/zenebotv13slashcommand | 63f6e2ef7bcd3f563422b9b965151c23cf1d4b3b | [
"MIT"
] | null | null | null | slashCommands/Settings/defaultautoplay.js | peter00704/zenebotv13slashcommand | 63f6e2ef7bcd3f563422b9b965151c23cf1d4b3b | [
"MIT"
] | null | null | null | slashCommands/Settings/defaultautoplay.js | peter00704/zenebotv13slashcommand | 63f6e2ef7bcd3f563422b9b965151c23cf1d4b3b | [
"MIT"
] | null | null | null | const {
MessageEmbed
} = require("discord.js");
const config = require("../../botconfig/config.json");
const ee = require("../../botconfig/embed.json");
const settings = require("../../botconfig/settings.json");
module.exports = {
name: "defaultautoplay", //the command name for execution & for helpcmd [OPTIONAL]
... | 34.629032 | 168 | 0.6381 |
6a0e51bbf7c38ae9617bee570799c454ae508194 | 2,101 | js | JavaScript | saleor/static/dashboard/js/components/image-gallery.js | tanjibpa/alrawaa | c28fbe7becd43b9de1575346fe8c29cee5f36de1 | [
"BSD-3-Clause"
] | null | null | null | saleor/static/dashboard/js/components/image-gallery.js | tanjibpa/alrawaa | c28fbe7becd43b9de1575346fe8c29cee5f36de1 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T08:53:52.000Z | 2022-02-10T08:53:52.000Z | saleor/static/dashboard/js/components/image-gallery.js | BiaoLiu/saleor | d3de4d8ee69208d73539194b71449498f8e5e81f | [
"BSD-3-Clause"
] | 1 | 2020-09-29T14:21:31.000Z | 2020-09-29T14:21:31.000Z | import Dropzone from 'dropzone';
import Sortable from 'sortablejs';
export default $(document).ready((e) => {
$('#product-image-form').dropzone({
paramName: 'image_0',
maxFilesize: 20,
previewsContainer: '.product-gallery',
thumbnailWidth: 400,
thumbnailHeight: 400,
previewTemplate: $('#templ... | 36.224138 | 100 | 0.578296 |
6a0eb09245de8d00458577f36ac818602d5276bd | 5,915 | js | JavaScript | lib/UsersClient/index.js | davidmus/symphony-api-client-node | e75797422108a14500617b4110e57c9eb60faf49 | [
"MIT"
] | null | null | null | lib/UsersClient/index.js | davidmus/symphony-api-client-node | e75797422108a14500617b4110e57c9eb60faf49 | [
"MIT"
] | null | null | null | lib/UsersClient/index.js | davidmus/symphony-api-client-node | e75797422108a14500617b4110e57c9eb60faf49 | [
"MIT"
] | null | null | null | const https = require('https')
const Q = require('kew')
const SymConfigLoader = require('../SymConfigLoader')
const SymBotAuth = require('../SymBotAuth')
var UsersClient = {}
// Look up user with a username via https://rest-api.symphony.com/reference#user-lookup
UsersClient.getUserFromUsername = (username) => {
var... | 26.644144 | 108 | 0.623669 |
6a0ec921fe53c0b73333d26b4e6551b187e33bb5 | 1,152 | js | JavaScript | dist/esm/internal/operators/take.js | openforis/rxjs | b73928f43da982b0a0dfc6742c291957c345b513 | [
"Apache-2.0"
] | null | null | null | dist/esm/internal/operators/take.js | openforis/rxjs | b73928f43da982b0a0dfc6742c291957c345b513 | [
"Apache-2.0"
] | null | null | null | dist/esm/internal/operators/take.js | openforis/rxjs | b73928f43da982b0a0dfc6742c291957c345b513 | [
"Apache-2.0"
] | null | null | null | import { Subscriber } from '../Subscriber';
import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';
import { EMPTY } from '../observable/empty';
export function take(count) {
if (isNaN(count)) {
throw new TypeError(`'count' is not a number`);
}
if (count < 0) {
throw new A... | 29.538462 | 84 | 0.58941 |
6a0f2bb727449c0d5011b3f994500074424a57e4 | 2,210 | js | JavaScript | src/store/index.js | peterkshultz/karrot-frontend-1 | 42678a87805199984a5f1c6a2797a53d79666d51 | [
"MIT"
] | null | null | null | src/store/index.js | peterkshultz/karrot-frontend-1 | 42678a87805199984a5f1c6a2797a53d79666d51 | [
"MIT"
] | null | null | null | src/store/index.js | peterkshultz/karrot-frontend-1 | 42678a87805199984a5f1c6a2797a53d79666d51 | [
"MIT"
] | null | null | null | import Vue from 'vue'
import Vuex from 'vuex'
import conversationsPlugin from './plugins/conversations'
import persistedState from './plugins/persistedState'
import i18nPlugin from './plugins/i18n'
import router from './plugins/router'
import loadingProgressReporter from './plugins/loadingProgressReporter'
import depe... | 26.309524 | 71 | 0.737104 |
6a0f7102fdb04faabb56015ff4d63c9b94861b6a | 326 | js | JavaScript | test/react/ModalTitle.spec.js | AkivaGubbay/onap-ui-react | b620732010022fe3bd1117f0bc3b6c8328373dbd | [
"MIT"
] | null | null | null | test/react/ModalTitle.spec.js | AkivaGubbay/onap-ui-react | b620732010022fe3bd1117f0bc3b6c8328373dbd | [
"MIT"
] | 13 | 2019-06-19T08:48:25.000Z | 2022-02-26T11:56:57.000Z | test/react/ModalTitle.spec.js | AkivaGubbay/onap-ui-react | b620732010022fe3bd1117f0bc3b6c8328373dbd | [
"MIT"
] | 3 | 2019-02-10T11:07:17.000Z | 2019-07-10T08:23:36.000Z | import React from 'react';
import ModalTitle from '../../src/components/ModalTitle.js';
import renderer from 'react-test-renderer';
describe('ModalTitle', () => {
test('basic test', () => {
const header = renderer.create(<ModalTitle>Title</ModalTitle>).toJSON();
expect(header).toMatchSnapshot();
}... | 29.636364 | 85 | 0.656442 |
6a100d519d45cc5b15e7456b5b6fa862569b7e84 | 12,599 | es6 | JavaScript | app/assets/javascripts/discourse/models/post.js.es6 | threefoldtech/threefold-forums | bf999696fdf5a96c37aed0134af8115ccd9a79ab | [
"Apache-2.0"
] | null | null | null | app/assets/javascripts/discourse/models/post.js.es6 | threefoldtech/threefold-forums | bf999696fdf5a96c37aed0134af8115ccd9a79ab | [
"Apache-2.0"
] | 5 | 2020-04-02T10:09:47.000Z | 2021-07-05T12:59:51.000Z | app/assets/javascripts/discourse/models/post.js.es6 | threefoldtech/threefold-forums | bf999696fdf5a96c37aed0134af8115ccd9a79ab | [
"Apache-2.0"
] | null | null | null | import discourseComputed from "discourse-common/utils/decorators";
import { computed, get } from "@ember/object";
import { isEmpty } from "@ember/utils";
import { equal, and, or, not } from "@ember/object/computed";
import EmberObject from "@ember/object";
import { ajax } from "discourse/lib/ajax";
import RestModel fro... | 26.749469 | 120 | 0.609017 |
6a106b74574e428caa48a4c75127d1ed7d699691 | 8,839 | js | JavaScript | app/main.js | banuelosj/express-map-jsapi | 30d6d6f0aed108b6d4fe78ddc8adfea27e8784a4 | [
"Apache-2.0"
] | null | null | null | app/main.js | banuelosj/express-map-jsapi | 30d6d6f0aed108b6d4fe78ddc8adfea27e8784a4 | [
"Apache-2.0"
] | null | null | null | app/main.js | banuelosj/express-map-jsapi | 30d6d6f0aed108b6d4fe78ddc8adfea27e8784a4 | [
"Apache-2.0"
] | 1 | 2020-04-06T02:41:17.000Z | 2020-04-06T02:41:17.000Z | var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
define(["require", "exports", "esri/Map", "esri/views/MapView", "esri/layers/GraphicsLayer", "esri/widgets/Sketch/SketchViewModel", "./models/CustomSketch"], function (require, expo... | 39.995475 | 257 | 0.547573 |
6a10aa1af7fb0600261eab29579128aae14569fc | 237 | js | JavaScript | web/key.js | axl3blaz3/Botx2 | f10c1791410df9fcbdba3b058536128eca604dda | [
"Apache-2.0"
] | null | null | null | web/key.js | axl3blaz3/Botx2 | f10c1791410df9fcbdba3b058536128eca604dda | [
"Apache-2.0"
] | null | null | null | web/key.js | axl3blaz3/Botx2 | f10c1791410df9fcbdba3b058536128eca604dda | [
"Apache-2.0"
] | null | null | null |
function handle(e) {
var go = document.getElementById("go");
var key=e.keycode || e.which;
if (key ==13 && go.value != ""){
eel.name_entry(go.value)
}
}
eel.expose(vPassInput);
function vPassInput(x) {
alert(x);
}
| 15.8 | 41 | 0.599156 |
6a11bbc73c4f3fe2e626703a92ec9ee9a8589d50 | 24,432 | js | JavaScript | mods/gen2/scripts.js | glitchboyl/Pokemon-Showdown | 31cb2e5343dd0414cfd66742c6febb1db66ab354 | [
"MIT"
] | 1 | 2021-05-08T09:35:01.000Z | 2021-05-08T09:35:01.000Z | mods/gen2/scripts.js | glitchboyl/Pokemon-Showdown | 31cb2e5343dd0414cfd66742c6febb1db66ab354 | [
"MIT"
] | null | null | null | mods/gen2/scripts.js | glitchboyl/Pokemon-Showdown | 31cb2e5343dd0414cfd66742c6febb1db66ab354 | [
"MIT"
] | null | null | null | 'use strict';
/**
* Gen 2 scripts.
*/
/**@type {ModdedBattleScriptsData} */
let BattleScripts = {
inherit: 'gen3',
gen: 2,
// BattlePokemon scripts.
pokemon: {
getStat: function (statName, unboosted, unmodified) {
statName = toId(statName);
if (statName === 'hp') return this.maxhp;
// base stat
l... | 33.980529 | 242 | 0.638179 |
6a11c6149c90b5a39dfc8a17dd2fdd544702c44c | 656 | js | JavaScript | src/code-worker/executor/CodeExecutionRequest.js | dininski/learn-code-project | bba4419cb37b3cfcc9dfb4c21788be8f133e619f | [
"MIT"
] | null | null | null | src/code-worker/executor/CodeExecutionRequest.js | dininski/learn-code-project | bba4419cb37b3cfcc9dfb4c21788be8f133e619f | [
"MIT"
] | null | null | null | src/code-worker/executor/CodeExecutionRequest.js | dininski/learn-code-project | bba4419cb37b3cfcc9dfb4c21788be8f133e619f | [
"MIT"
] | null | null | null | "use strict";
var CodeExecutionRequest = function (initOptions) {
this.executionId = 0;
this.language = '';
this.options = {};
this.timeLimit = 0;
this.stdin = '';
this.userCode = '';
this.executorId = 0;
};
CodeExecutionRequest.prototype = {
init: function (initOptions) {
this... | 26.24 | 59 | 0.657012 |
6a11cf992a3944d4024653f8e8bd46491513c15e | 60 | js | JavaScript | public/js/script.js | Viva10/Otimetable | 87bb65871a688d8e20211632bb94149b3dd688a1 | [
"MIT"
] | null | null | null | public/js/script.js | Viva10/Otimetable | 87bb65871a688d8e20211632bb94149b3dd688a1 | [
"MIT"
] | null | null | null | public/js/script.js | Viva10/Otimetable | 87bb65871a688d8e20211632bb94149b3dd688a1 | [
"MIT"
] | null | null | null | window.onload = function(){
$("#accordion").accordion();
}; | 20 | 29 | 0.633333 |
6a120259d02f7e815829ac0a77689d674b3e6b40 | 13,175 | js | JavaScript | www/lib/ionic/js/angular/controller/sideMenuController.js | mounir1/v2beta | 16c9b9233eab29d71238b95f3c4edf9d56394d33 | [
"Apache-2.0"
] | 146 | 2017-06-01T09:02:15.000Z | 2022-01-04T12:50:34.000Z | www/lib/ionic/js/angular/controller/sideMenuController.js | mounir1/v2beta | 16c9b9233eab29d71238b95f3c4edf9d56394d33 | [
"Apache-2.0"
] | 193 | 2017-06-01T18:35:38.000Z | 2021-12-01T11:22:46.000Z | www/lib/ionic/js/angular/controller/sideMenuController.js | mounir1/v2beta | 16c9b9233eab29d71238b95f3c4edf9d56394d33 | [
"Apache-2.0"
] | 163 | 2017-05-31T16:14:52.000Z | 2022-03-10T15:25:04.000Z | IonicModule
.controller('$ionicSideMenus', [
'$scope',
'$attrs',
'$ionicSideMenuDelegate',
'$ionicPlatform',
'$ionicBody',
'$ionicHistory',
'$ionicScrollDelegate',
'IONIC_BACK_PRIORITY',
'$rootScope',
function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $ionicHistory, $ionicScr... | 29.21286 | 148 | 0.635142 |
6a13bab10adfd57ff8aa2932fdad9364bafd20e8 | 23,418 | js | JavaScript | lib/src/AccessControl.js | songchiva/role-acl | 1265d5ef3e7c0407c75bd86ccf613e6c38736a6e | [
"MIT"
] | null | null | null | lib/src/AccessControl.js | songchiva/role-acl | 1265d5ef3e7c0407c75bd86ccf613e6c38736a6e | [
"MIT"
] | null | null | null | lib/src/AccessControl.js | songchiva/role-acl | 1265d5ef3e7c0407c75bd86ccf613e6c38736a6e | [
"MIT"
] | null | null | null | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... | 40.940559 | 169 | 0.572295 |
6a14dd2c72fea64cdc2505f5720e3a5f1d9aad54 | 361 | js | JavaScript | Generate user links.js | Dnmrk4/codewars-8kyu | c2f1eb4d77dc4b6eb87c8e619d2068baa9a3a32a | [
"MIT"
] | 70 | 2019-02-20T01:21:23.000Z | 2022-03-05T19:11:40.000Z | Generate user links.js | Dnmrk4/codewars-8kyu | c2f1eb4d77dc4b6eb87c8e619d2068baa9a3a32a | [
"MIT"
] | null | null | null | Generate user links.js | Dnmrk4/codewars-8kyu | c2f1eb4d77dc4b6eb87c8e619d2068baa9a3a32a | [
"MIT"
] | 51 | 2019-02-28T07:54:42.000Z | 2022-03-22T01:01:59.000Z | /*
Description:
Generate user links
Your task is to create userlinks for the url, you will be given a username and must return a valid link.
Example
generate_link('matt c')
http://www.codewars.com/users/matt%20c
reference
use this as a reference encoding
*/
function generateLink(user) {
return `http://www.codewars.... | 22.5625 | 104 | 0.764543 |
6a16169cf5693f351e30603d8261990e462d4c13 | 126 | js | JavaScript | convertjQueryObject/app.js | GhulamMustafaGM/jquery-practices-apps | 0b386adab5d4a5ff8a944a62ac50bfbf899ed2d5 | [
"MIT"
] | null | null | null | convertjQueryObject/app.js | GhulamMustafaGM/jquery-practices-apps | 0b386adab5d4a5ff8a944a62ac50bfbf899ed2d5 | [
"MIT"
] | null | null | null | convertjQueryObject/app.js | GhulamMustafaGM/jquery-practices-apps | 0b386adab5d4a5ff8a944a62ac50bfbf899ed2d5 | [
"MIT"
] | null | null | null | var element = $( '<h1></h1>', {
text: "jQuery",
class: "test"
} );
$( '#output' ).text( element.get( 0 ).outerHTML ); | 21 | 50 | 0.5 |
6a1690069ff462279da97437d84f77b4e0f7b5de | 387 | js | JavaScript | src/components/atom/Typography/Typography.stories.js | juicycleff/chatql-ui-react | 4f1da072615165b1a82398026a36a8322a801182 | [
"MIT"
] | 1 | 2019-01-10T07:06:39.000Z | 2019-01-10T07:06:39.000Z | src/components/atom/Typography/Typography.stories.js | juicycleff/chatql-ui-react | 4f1da072615165b1a82398026a36a8322a801182 | [
"MIT"
] | null | null | null | src/components/atom/Typography/Typography.stories.js | juicycleff/chatql-ui-react | 4f1da072615165b1a82398026a36a8322a801182 | [
"MIT"
] | 1 | 2020-01-08T15:27:52.000Z | 2020-01-08T15:27:52.000Z | import { storiesOf } from "@storybook/react";
import React, { Fragment } from "react";
import { withDocs } from "storybook-readme";
import Typography from "./Typography";
import readme from "./README.md";
storiesOf("Typography", module)
.addDecorator(withDocs(readme))
.add("a simple typography", () =>
<Fragme... | 27.642857 | 45 | 0.689922 |
6a17791c1089fd035bd531fcd06cdb5de56b392d | 2,515 | js | JavaScript | client/src/Pages/Single/Single.test.js | gfpaiva/socketpo | ba36c8bd287948807c6dcdb6faa3b0f4b4be86d6 | [
"MIT"
] | 5 | 2018-10-16T15:28:29.000Z | 2019-05-15T16:23:21.000Z | client/src/Pages/Single/Single.test.js | gfpaiva/socketpo | ba36c8bd287948807c6dcdb6faa3b0f4b4be86d6 | [
"MIT"
] | 15 | 2019-05-09T23:21:57.000Z | 2022-02-17T17:57:08.000Z | client/src/Pages/Single/Single.test.js | gfpaiva/socketpo | ba36c8bd287948807c6dcdb6faa3b0f4b4be86d6 | [
"MIT"
] | 3 | 2017-04-05T22:15:07.000Z | 2020-04-04T20:30:00.000Z | import React from 'react';
import { mount } from 'enzyme';
import { BrowserRouter as Router } from 'react-router-dom';
import { MockedProvider } from 'react-apollo/test-utils';
import wait from 'waait';
import Single from './Single';
import { getGame, gameSub } from '../../Utils/graphqlAPI';
import { fakeGame, fakePlay... | 18.224638 | 75 | 0.54672 |
6a17a1840f66c36be2d507f320e24b5a7dcae8f2 | 380 | js | JavaScript | cli.js | Richienb/supervillains-cli | adc63f7cc76ce0b4748da175e99c1d5ed6ffb0e5 | [
"MIT"
] | 38 | 2018-07-14T12:47:04.000Z | 2022-01-15T02:30:57.000Z | cli.js | Richienb/supervillains-cli | adc63f7cc76ce0b4748da175e99c1d5ed6ffb0e5 | [
"MIT"
] | 1 | 2018-07-29T14:49:59.000Z | 2018-07-29T14:49:59.000Z | cli.js | Richienb/supervillains-cli | adc63f7cc76ce0b4748da175e99c1d5ed6ffb0e5 | [
"MIT"
] | 7 | 2018-07-29T09:41:49.000Z | 2021-01-01T14:34:31.000Z | #!/usr/bin/env node
'use strict';
const meow = require('meow');
const supervillains = require('supervillains');
const cli = meow(`
Examples
$ supervillains
Mud Pack
$ supervillains --all
Abattoir
Able Crown
...
Options
--all Get all names instead of a random name
`);
console.log(cli.flags.al... | 18.095238 | 83 | 0.671053 |
6a17bc3e31c78ec1494ba863bbf2b555a92cf153 | 3,091 | js | JavaScript | libs/hana/doc/html/search/all_5.js | anarthal/boost-unix-mirror | 8c34eb2fe471d6c3113c680c1fbef29e7a8063a0 | [
"BSL-1.0"
] | 1 | 2020-04-28T15:15:28.000Z | 2020-04-28T15:15:28.000Z | libs/hana/doc/html/search/all_5.js | anarthal/boost-unix-mirror | 8c34eb2fe471d6c3113c680c1fbef29e7a8063a0 | [
"BSL-1.0"
] | 4 | 2021-10-21T12:42:04.000Z | 2022-02-03T08:41:31.000Z | Libs/boost_1_76_0/libs/hana/doc/html/search/all_5.js | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 8 | 2015-11-03T14:12:19.000Z | 2020-09-22T19:20:54.000Z | var searchData=
[
['ebo_2ehpp_168',['ebo.hpp',['../ebo_8hpp.html',1,'']]],
['embedding_169',['embedding',['../structboost_1_1hana_1_1embedding.html',1,'boost::hana']]],
['embedding_3c_20is_5fembedded_3c_20c_3a_3avalue_5ftype_2c_20t_20_3e_3a_3avalue_20_3e_170',['embedding< is_embedded< C::value_type, T >:... | 118.884615 | 250 | 0.72242 |
6a17c3f8a8fda2505311170775fa7ff9fe8c2682 | 148 | js | JavaScript | misc/deprecated/deprecate-ext-react/src/ExtMenu.js | msgimanila/EXT-React-MSG | 9e78cceedc85204d28584849d64214e638f2b6f6 | [
"Apache-2.0"
] | 94 | 2018-08-29T15:23:23.000Z | 2022-01-30T07:46:28.000Z | misc/deprecated/deprecate-ext-react/src/ExtMenu.js | msgimanila/EXT-React-MSG | 9e78cceedc85204d28584849d64214e638f2b6f6 | [
"Apache-2.0"
] | 49 | 2018-08-21T22:44:33.000Z | 2021-08-11T21:08:29.000Z | misc/deprecated/deprecate-ext-react/src/ExtMenu.js | msgimanila/EXT-React-MSG | 9e78cceedc85204d28584849d64214e638f2b6f6 | [
"Apache-2.0"
] | 46 | 2018-08-08T17:12:19.000Z | 2021-11-11T10:00:49.000Z | import reactize from './reactize.js';
import EWCMenu from '@sencha/ext-web-components/src/ext-menu.component.js';
export default reactize(EWCMenu);
| 37 | 75 | 0.783784 |
6a180de161d7c77ba802343374d103a40bd2c057 | 883 | js | JavaScript | test/setup.js | appfolio/react-big-calendar | 40a740acabac703898e44bd63885183344e443d4 | [
"MIT"
] | null | null | null | test/setup.js | appfolio/react-big-calendar | 40a740acabac703898e44bd63885183344e443d4 | [
"MIT"
] | 9 | 2017-06-15T20:25:39.000Z | 2022-02-10T18:34:33.000Z | test/setup.js | appfolio/react-big-calendar | 40a740acabac703898e44bd63885183344e443d4 | [
"MIT"
] | null | null | null | /* setup.js */
// Set up jsdom for enzyme testing
const { JSDOM } = require('jsdom');
const jsdom = new JSDOM('<!doctype html><html><body></body></html>');
const { window } = jsdom;
function copyProps(src, target) {
const props = Object.getOwnPropertyNames(src)
.filter(prop => typeof target[prop] === 'undefined... | 29.433333 | 69 | 0.699887 |
6a18688d08a3cd1222849eef7fcd96e496116fb7 | 1,032 | js | JavaScript | dashboard/src/services/http.js | masonwoodford/restqa | c1172414db74330fcecf32d769a190cec5ef8973 | [
"MIT"
] | null | null | null | dashboard/src/services/http.js | masonwoodford/restqa | c1172414db74330fcecf32d769a190cec5ef8973 | [
"MIT"
] | null | null | null | dashboard/src/services/http.js | masonwoodford/restqa | c1172414db74330fcecf32d769a190cec5ef8973 | [
"MIT"
] | null | null | null | import axios from "axios";
export class ForbiddenError extends Error {
constructor(message) {
super(message);
this.name = "ForbiddenError";
}
}
export class ValidationError extends Error {
constructor(message) {
super(message);
this.name = "ValidationError";
}
}
function client() {
let base... | 20.235294 | 69 | 0.611434 |
6a18899f9e15442878d263af54dae664b1d5c709 | 459 | js | JavaScript | bookshelf.js | kevinmrpvision/hapi | e1a4898390696de398b7a72f50df686bbdf6fcc7 | [
"MIT"
] | 32 | 2017-05-17T10:38:57.000Z | 2021-03-02T16:54:37.000Z | bookshelf.js | kevinmrpvision/hapi | e1a4898390696de398b7a72f50df686bbdf6fcc7 | [
"MIT"
] | 13 | 2017-06-25T12:33:49.000Z | 2021-03-02T03:22:57.000Z | bookshelf.js | kevinmrpvision/hapi | e1a4898390696de398b7a72f50df686bbdf6fcc7 | [
"MIT"
] | 12 | 2017-05-17T07:04:14.000Z | 2021-09-10T08:06:11.000Z | 'use strict';
const connection = require('./knexfile');
const Knex = require('knex')(connection);
const Bookshelf = require('bookshelf')(Knex);
// Bookshelf supported plugins.
Bookshelf.plugin('registry');
Bookshelf.plugin('visibility');
// Community plugins.
Bookshelf.plugin(require('bookshelf-paranoia'), {field: '... | 27 | 70 | 0.747277 |
6a18d4197b764fc83f8f65b99c0f8daca2db05af | 23,135 | js | JavaScript | node_modules/@ng-bootstrap/ng-bootstrap/esm2015/accordion/accordion.js | ManuelPortero/Angularcalendar | caa0f2a079b7e9f419978236d63323a67aa3bd6b | [
"MIT"
] | null | null | null | node_modules/@ng-bootstrap/ng-bootstrap/esm2015/accordion/accordion.js | ManuelPortero/Angularcalendar | caa0f2a079b7e9f419978236d63323a67aa3bd6b | [
"MIT"
] | 7 | 2020-09-07T22:56:45.000Z | 2022-03-02T07:19:11.000Z | node_modules/@ng-bootstrap/ng-bootstrap/esm2015/accordion/accordion.js | ManuelPortero/Angularcalendar | caa0f2a079b7e9f419978236d63323a67aa3bd6b | [
"MIT"
] | null | null | null | /**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
import { Component, ContentChildren, Directive, EventEmitter, Input, Output, QueryList, TemplateRef } from '@angular/core';
import { isString } from '../util/util';
import { NgbAccordionConfig } from './accordion... | 75.358306 | 13,394 | 0.82399 |
6a194b5efd752e8eaecb4b0a021b28ee49a6971a | 833 | js | JavaScript | packages/framework/src/Resources/scripts/admin/validation/form/freeTransportAndPayment.js | machicek/shopsys | bd0ccc5acafbfa7b16ba3a24303480fd3c09269f | [
"PostgreSQL"
] | 1 | 2019-04-08T12:22:41.000Z | 2019-04-08T12:22:41.000Z | packages/framework/src/Resources/scripts/admin/validation/form/freeTransportAndPayment.js | machicek/shopsys | bd0ccc5acafbfa7b16ba3a24303480fd3c09269f | [
"PostgreSQL"
] | 87 | 2019-11-20T00:42:17.000Z | 2022-03-26T23:58:06.000Z | packages/framework/src/Resources/scripts/admin/validation/form/freeTransportAndPayment.js | machicek/shopsys | bd0ccc5acafbfa7b16ba3a24303480fd3c09269f | [
"PostgreSQL"
] | 1 | 2018-12-20T09:01:27.000Z | 2018-12-20T09:01:27.000Z | (function ($) {
$(document).ready(function () {
$('.js-free-transport-and-payment-price-limit').each(function () {
var $priceLimitForm = $(this);
$priceLimitForm.jsFormValidator({
'groups': function () {
var groups = [Shopsys.constant('\\Shopsys\... | 39.666667 | 200 | 0.565426 |
6a194cf5e69392af5c09401c724493f635d553cf | 1,178 | js | JavaScript | public/js/checkUser.js | perriea/SCC-SII-Assurance | 80c79a1ddbc58a5aed2132171939b31459318da3 | [
"MIT"
] | 1 | 2021-07-06T23:29:17.000Z | 2021-07-06T23:29:17.000Z | public/js/checkUser.js | perriea/SCC-SII-Assurance | 80c79a1ddbc58a5aed2132171939b31459318da3 | [
"MIT"
] | null | null | null | public/js/checkUser.js | perriea/SCC-SII-Assurance | 80c79a1ddbc58a5aed2132171939b31459318da3 | [
"MIT"
] | null | null | null | /**
* Created by loquet_j on 16/02/2017.
*/
$(document).ready(function () {
var rq = $.ajax({
url: '/isLog',
method: 'GET'
});
rq.success(function (result) {
console.log(result.error);
if (!result.error) {
$("li#in").hide();
$("li#registration").hide... | 25.06383 | 43 | 0.398132 |
6a19c966fe9d150e1b82163d652e680611840085 | 5,761 | js | JavaScript | components/mip-custom/novel-feature.js | tancygithun/mip2-extensions | 89c78f71fab85079f511a3ba250056e38c6f0f9b | [
"MIT"
] | 28 | 2018-05-31T06:52:07.000Z | 2021-03-15T11:50:46.000Z | components/mip-custom/novel-feature.js | tancygithun/mip2-extensions | 89c78f71fab85079f511a3ba250056e38c6f0f9b | [
"MIT"
] | 667 | 2018-05-29T09:22:51.000Z | 2020-08-03T09:07:27.000Z | components/mip-custom/novel-feature.js | tancygithun/mip2-extensions | 89c78f71fab85079f511a3ba250056e38c6f0f9b | [
"MIT"
] | 118 | 2018-06-02T14:52:53.000Z | 2020-11-25T05:04:18.000Z | /**
* @file 搜索合作页小说特性 novel-feature
* @author liujing chenyongle
*
*/
const {util} = MIP
let globalCustomElementInstance
let initElement
/**
* 获取当前定制化页面的 window
*
* @returns {window} 当前 iframe 的 window
*/
function getCurrentWindow () {
let pageId = window.MIP.viewer.page.currentPageId || ''
let pageInfo =... | 25.71875 | 94 | 0.675404 |
6a19ca3f7bf994ad54f1950839d5f2d45211c357 | 1,303 | js | JavaScript | node_modules/async/applyEachSeries.js | ai-man-123/MDyoobotz | ed54a8cacdf93710cb248237444052dab908b1c4 | [
"MIT"
] | 6 | 2022-03-29T13:20:23.000Z | 2022-03-31T17:30:03.000Z | node_modules/async/applyEachSeries.js | ai-man-123/MDyoobotz | ed54a8cacdf93710cb248237444052dab908b1c4 | [
"MIT"
] | 35 | 2022-02-05T00:45:20.000Z | 2022-03-31T05:36:20.000Z | node_modules/async/applyEachSeries.js | ai-man-123/MDyoobotz | ed54a8cacdf93710cb248237444052dab908b1c4 | [
"MIT"
] | 19 | 2022-03-29T11:44:06.000Z | 2022-03-31T17:29:52.000Z | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _applyEach = require('./internal/applyEach.js');
var _applyEach2 = _interopRequireDefault(_applyEach);
var _mapSeries = require('./mapSeries.js');
var _mapSeries2 = _interopRequireDefault(_mapSeries);
function _interopRequireDefaul... | 35.216216 | 114 | 0.729087 |
6a1a4424a4c9fc1ddd9a839d89d3ed95f2656408 | 3,506 | js | JavaScript | src/services/patientService.js | lf-achyutpkl/patient-info-api | 66a7e51a15fec5c922d76f7a834815a51a8b0593 | [
"MIT"
] | null | null | null | src/services/patientService.js | lf-achyutpkl/patient-info-api | 66a7e51a15fec5c922d76f7a834815a51a8b0593 | [
"MIT"
] | null | null | null | src/services/patientService.js | lf-achyutpkl/patient-info-api | 66a7e51a15fec5c922d76f7a834815a51a8b0593 | [
"MIT"
] | null | null | null | import Patient from '../models/patient';
import Annotation from '../models/annotation';
import Tags from '../models/tags';
import AnnotationTags from '../models/annotationsTags';
import AnnotationBatches from '../models/annotationsBatches';
import Batches from '../models/batches';
import fs from 'fs';
import queue from... | 22.189873 | 80 | 0.563035 |
6a1ab51e833de48d42558e8bb540b836f3a5fea2 | 1,781 | js | JavaScript | Docs/node_modules/@styled-icons/fa-solid/CarAlt/CarAlt.js | moonreporter/GodSaveTheLPs | fbcc024ea03ccadce625a902d1e56d4f0468e5c5 | [
"MIT"
] | 2 | 2021-10-17T02:32:38.000Z | 2022-01-20T20:04:16.000Z | Docs/node_modules/@styled-icons/fa-solid/CarAlt/CarAlt.js | moonreporter/GodSaveTheLPs | fbcc024ea03ccadce625a902d1e56d4f0468e5c5 | [
"MIT"
] | 1 | 2021-10-06T13:02:21.000Z | 2021-10-06T13:02:21.000Z | Docs/node_modules/@styled-icons/fa-solid/CarAlt/CarAlt.js | moonreporter/GodSaveTheLPs | fbcc024ea03ccadce625a902d1e56d4f0468e5c5 | [
"MIT"
] | 3 | 2021-10-06T13:00:51.000Z | 2021-10-17T06:38:40.000Z | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CarAltDimensions = exports.CarAlt = void 0;
var _extend... | 44.525 | 666 | 0.708591 |
6a1af35ddf5e421fdcf55013b78bac9366b95b6f | 586 | js | JavaScript | spec/assertSnapshot.js | featurist/codesandbox-example-links | 686e975ea96398ff3f8d597091a549447326b74d | [
"MIT"
] | 14 | 2019-04-04T13:21:05.000Z | 2020-04-27T18:55:33.000Z | spec/assertSnapshot.js | featurist/codesandbox-example-links | 686e975ea96398ff3f8d597091a549447326b74d | [
"MIT"
] | 5 | 2019-04-04T17:40:09.000Z | 2022-02-12T06:55:22.000Z | spec/assertSnapshot.js | featurist/codesandbox-example-links | 686e975ea96398ff3f8d597091a549447326b74d | [
"MIT"
] | 2 | 2020-01-09T15:46:58.000Z | 2020-09-27T06:42:00.000Z | const path = require('path')
const fs = require('fs')
const assert = require('assert').strict
const snapshotsPath = path.join(__dirname, 'snapshots')
module.exports = function assertSnapshot (name, actual) {
const {name: base, ext} = path.parse(name)
const actualPath = `${snapshotsPath}/${base}_actual${ext}`
fs... | 29.3 | 100 | 0.6843 |
6a1af50374149e3bbfeebbf3eedcd8e3c053f538 | 816 | js | JavaScript | src/ui/scripts/loaders/devicesLoader.js | shareworks/stats-microservice | ff82c09384ec09399a9586ee9574e48ce8432f70 | [
"MIT"
] | 3 | 2021-04-18T16:00:14.000Z | 2021-04-19T04:06:03.000Z | src/ui/scripts/loaders/devicesLoader.js | shareworks/stats-microservice | ff82c09384ec09399a9586ee9574e48ce8432f70 | [
"MIT"
] | 17 | 2021-02-02T11:11:25.000Z | 2022-03-29T04:07:21.000Z | src/ui/scripts/loaders/devicesLoader.js | shareworks/stats-microservice | ff82c09384ec09399a9586ee9574e48ce8432f70 | [
"MIT"
] | null | null | null | import { createElement as h } from 'react'
import RendererList from '../components/renderers/RendererList'
import enhanceDevices from '../enhancers/enhanceDevices'
import createWidgetId from '../utils/createWidgetId'
export default (domainId, opts) => {
const id = createWidgetId('fetchDevices', domainId, opts)
co... | 19.902439 | 87 | 0.667892 |
6a1b376c950922bee78050eab6cc4f1ff281599b | 275 | js | JavaScript | lib/templates_helpers/at_message.js | cheesington/useraccounts-core | 18a0cca02f431784ed2b6269990dbd8cbb87c1e0 | [
"MIT"
] | null | null | null | lib/templates_helpers/at_message.js | cheesington/useraccounts-core | 18a0cca02f431784ed2b6269990dbd8cbb87c1e0 | [
"MIT"
] | null | null | null | lib/templates_helpers/at_message.js | cheesington/useraccounts-core | 18a0cca02f431784ed2b6269990dbd8cbb87c1e0 | [
"MIT"
] | 2 | 2021-01-20T19:36:50.000Z | 2021-04-15T11:02:15.000Z | var T9n = require('meteor-accounts-t9n').T9n;
AT.prototype.atMessageHelpers = {
message: function() {
var messageText = AccountsTemplates.state.form.get("message");
if (messageText)
return T9n.get(messageText, markIfMissing=false);
},
};
| 27.5 | 70 | 0.650909 |
6a1b3a0f0b557da13b1b0ce7f7b4cfb5f6f969e2 | 216 | js | JavaScript | packages/pro/src/colors.js | motific/mixxx-launchpad | 420520404a40efe6261fdab1ca263167a03eec4f | [
"MIT"
] | 12 | 2018-04-02T23:40:55.000Z | 2022-02-04T19:45:26.000Z | packages/pro/src/colors.js | motific/mixxx-launchpad | 420520404a40efe6261fdab1ca263167a03eec4f | [
"MIT"
] | 43 | 2018-03-31T17:53:02.000Z | 2022-03-04T17:32:03.000Z | packages/pro/src/colors.js | motific/mixxx-launchpad | 420520404a40efe6261fdab1ca263167a03eec4f | [
"MIT"
] | 3 | 2017-03-28T04:31:25.000Z | 2018-03-10T20:03:01.000Z | /* @flow */
'use strict'
module.exports = {
black: 0,
lo_red: 7,
hi_red: 5,
lo_green: 19,
hi_green: 17,
lo_amber: 43,
hi_amber: 41,
hi_orange: 84,
lo_orange: 61,
hi_yellow: 13,
lo_yellow: 15
}
| 12.705882 | 18 | 0.601852 |
6a1bbc77b1fc77eb3989339ba3b29543a44b74a7 | 141 | js | JavaScript | client/app/modules/home/services.js | Epotignano/japan-demo-grunt | 368818e104b95df06e141d8a0def43c7b607e3dd | [
"MIT"
] | null | null | null | client/app/modules/home/services.js | Epotignano/japan-demo-grunt | 368818e104b95df06e141d8a0def43c7b607e3dd | [
"MIT"
] | null | null | null | client/app/modules/home/services.js | Epotignano/japan-demo-grunt | 368818e104b95df06e141d8a0def43c7b607e3dd | [
"MIT"
] | null | null | null |
'use strict';
var homeService = function($http, apiBaseUrl) {
};
angular
.module('homeModule')
.service('homeService', homeService)
| 11.75 | 47 | 0.687943 |
6a1dbb03e316615a1abe0abad535afccb26660ad | 886 | js | JavaScript | app/routes/cancel.js | dwp/ms-ui-submission | 986c969dc4e9e091972ffa64c3a35a93c12ac39e | [
"MIT"
] | null | null | null | app/routes/cancel.js | dwp/ms-ui-submission | 986c969dc4e9e091972ffa64c3a35a93c12ac39e | [
"MIT"
] | 8 | 2020-11-03T13:35:41.000Z | 2022-03-24T12:46:02.000Z | app/routes/cancel.js | shehir12/ms-ui-submission | 7bbbb39f23aced3c10b6092d8e58cdd54ca9f5a6 | [
"MIT"
] | 2 | 2020-10-15T12:41:35.000Z | 2021-04-10T22:13:21.000Z | const Logger = require('../lib/Logger');
const { genericDataUtils } = require('../lib/data-utils');
const appLogger = Logger();
module.exports = (router, csrf) => {
router.post('/cancel', csrf, (req, res) => {
if (typeof req.session.editPage !== 'undefined'
&& typeof req.session[`${req.session.editSecti... | 38.521739 | 107 | 0.636569 |
6a1df960145489f9b3b12e98fbcc21cdaa2fc5e8 | 6,546 | js | JavaScript | tests/en/level1.js | nicompte/edtfy | 5158dc80022a30413843833629569879c66c7e8d | [
"MIT"
] | 9 | 2015-07-20T09:34:38.000Z | 2021-02-01T21:56:55.000Z | tests/en/level1.js | nicompte/edtfy | 5158dc80022a30413843833629569879c66c7e8d | [
"MIT"
] | 33 | 2015-07-30T11:50:21.000Z | 2020-09-02T02:37:45.000Z | tests/en/level1.js | nicompte/edtfy | 5158dc80022a30413843833629569879c66c7e8d | [
"MIT"
] | 2 | 2016-06-30T08:53:04.000Z | 2019-02-19T19:33:39.000Z | var should = require('chai').should(),
edtfy = require('../../dist/edtfy');
describe('EN - Level 1', function () {
beforeEach(function() {
edtfy.locale('en');
});
describe('uncertain/approximate: the parser', function() {
it('should parse year uncertain', function() {
edtfy('1988?').should.equal(... | 45.144828 | 88 | 0.595936 |
6a1e2f561d30a52d8eae0ba5e162e5084fc1e952 | 3,470 | js | JavaScript | desktop/core/src/desktop/js/api/cancellablePromise.js | maulikjs/hue | 59ac879b55bb6fb26ecb4e85f4c70836fc21173f | [
"Apache-2.0"
] | 1 | 2020-05-17T06:40:33.000Z | 2020-05-17T06:40:33.000Z | desktop/core/src/desktop/js/api/cancellablePromise.js | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 4 | 2021-03-11T04:02:00.000Z | 2022-03-27T08:31:56.000Z | desktop/core/src/desktop/js/api/cancellablePromise.js | zks888/hue | 93a8c370713e70b216c428caa2f75185ef809deb | [
"Apache-2.0"
] | 1 | 2017-11-09T09:31:28.000Z | 2017-11-09T09:31:28.000Z | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 26.48855 | 119 | 0.665706 |
6a1eb72706d112da4a68f06b95177037a3bfabac | 546 | js | JavaScript | src/contexts/Progress.js | hojunlee-hj/2021-1-OSSP2-SaJoChamChi-4 | 41c856aeb62498624ef896fde107ca863d189588 | [
"MIT"
] | 1 | 2021-04-16T09:36:14.000Z | 2021-04-16T09:36:14.000Z | src/contexts/Progress.js | hojunlee-hj/2021-1-OSSP2-SaJoChamChi-4 | 41c856aeb62498624ef896fde107ca863d189588 | [
"MIT"
] | 3 | 2021-06-01T15:08:15.000Z | 2021-06-04T15:51:49.000Z | src/contexts/Progress.js | hojunlee-hj/2021-1-OSSP2-SaJoChamChi-4 | 41c856aeb62498624ef896fde107ca863d189588 | [
"MIT"
] | 3 | 2021-06-03T15:01:10.000Z | 2022-01-14T12:01:45.000Z | import React, { useState, createContext } from 'react';
const ProgressContext = createContext({
inProgress: false,
spinner: () => {},
});
const ProgressProvider = ({ children }) => {
const [inProgress, setInProgress] = useState(false);
const spinner = {
start: () => setInProgress(true),
stop: () => se... | 23.73913 | 55 | 0.652015 |
6a1f05f37b70de9a5a9dd24628bb021b5fe5a47a | 21,425 | js | JavaScript | packages/jest-diff/src/__tests__/diff.test.js | incleaf/jest | 8d3de491eae9d3a8d495fa37bd11a1a0cd1bc849 | [
"MIT"
] | 2 | 2018-06-08T06:30:15.000Z | 2019-03-08T06:27:01.000Z | packages/jest-diff/src/__tests__/diff.test.js | incleaf/jest | 8d3de491eae9d3a8d495fa37bd11a1a0cd1bc849 | [
"MIT"
] | 2 | 2018-02-22T10:57:36.000Z | 2020-04-30T22:50:24.000Z | packages/jest-diff/src/__tests__/diff.test.js | incleaf/jest | 8d3de491eae9d3a8d495fa37bd11a1a0cd1bc849 | [
"MIT"
] | 1 | 2021-06-02T20:03:09.000Z | 2021-06-02T20:03:09.000Z | /**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
const stripAnsi = require('strip-ansi');
const diff = require('../');
const NO_DIFF_MESSAGE = 'Compare... | 25.146714 | 79 | 0.490548 |
6a1f98ab409f0b7483ef471a481624cc958c6cd4 | 768 | js | JavaScript | public/js/tasks.js | HeatMarie/poggers | 4eabcdd7ccda4aa322c5daab241ff9ff3cff6e69 | [
"MIT"
] | null | null | null | public/js/tasks.js | HeatMarie/poggers | 4eabcdd7ccda4aa322c5daab241ff9ff3cff6e69 | [
"MIT"
] | 1 | 2021-07-25T02:04:44.000Z | 2021-07-25T02:05:46.000Z | public/js/tasks.js | HeatMarie/poggers | 4eabcdd7ccda4aa322c5daab241ff9ff3cff6e69 | [
"MIT"
] | 3 | 2021-08-01T23:29:31.000Z | 2021-09-04T12:58:56.000Z | const taskHandler = async (event) => {
event.preventDefault();
const description = document.querySelector('#task-desc').value;
if (description) {
const path = window.location.pathname;
const response = await fetch(`/api/tasks/${path.substring(path.lastIndexOf("/") + 1)}`, {
metho... | 29.538462 | 95 | 0.578125 |
6a1fd4b88fb6f591954f7b865d41895bba2828b6 | 106 | js | JavaScript | test/integration/route-indexes/pages/sub/[id].js | blomqma/next.js | 7db6aa2fde34699cf319d30980c2ee38bb53f20d | [
"MIT"
] | 51,887 | 2016-10-25T15:48:01.000Z | 2020-05-27T17:47:07.000Z | test/integration/route-indexes/pages/sub/[id].js | blomqma/next.js | 7db6aa2fde34699cf319d30980c2ee38bb53f20d | [
"MIT"
] | 13,333 | 2020-05-27T18:15:25.000Z | 2022-03-31T23:48:59.000Z | test/integration/route-indexes/pages/sub/[id].js | blomqma/next.js | 7db6aa2fde34699cf319d30980c2ee38bb53f20d | [
"MIT"
] | 14,796 | 2020-05-27T18:07:16.000Z | 2022-03-31T23:55:30.000Z | const page = () => 'hello from sub id'
page.getInitialProps = () => ({ hello: 'hi' })
export default page
| 26.5 | 46 | 0.622642 |
6a202e2889b1015c62b96db67c205c72fcfd44c2 | 341 | js | JavaScript | src/app/reducers/tabs_index_reducer.js | KenzoM/Pinterest-Clone-Firebase | dad29aa2df08038140fa953920d9ca3323ab897b | [
"MIT"
] | 1 | 2017-11-09T22:32:41.000Z | 2017-11-09T22:32:41.000Z | src/app/reducers/tabs_index_reducer.js | KenzoM/Pinterest-Clone-Firebase | dad29aa2df08038140fa953920d9ca3323ab897b | [
"MIT"
] | null | null | null | src/app/reducers/tabs_index_reducer.js | KenzoM/Pinterest-Clone-Firebase | dad29aa2df08038140fa953920d9ca3323ab897b | [
"MIT"
] | null | null | null | import { TAB_INDEX } from '../actions/types';
const INITIAL = { tab_index: 0}
//This reducer is for keeping track of active tabs in Material UI
export default function(state = INITIAL, action){
switch (action.type){
case TAB_INDEX:
const { payload } = action;
return {...state, tab_index: payload}
... | 24.357143 | 65 | 0.671554 |
6a20dbae5bf71461d5ac4925d8c2be539c30a715 | 309 | js | JavaScript | src/ui/public/filter_bar/lib/map_missing.js | IBMResearch/kibana-bluemix | a07267965791f2582a978e8c7190a2af8d43e159 | [
"Apache-2.0"
] | 546 | 2015-09-14T17:51:46.000Z | 2021-11-02T00:48:01.000Z | src/ui/public/filter_bar/lib/map_missing.js | IBMResearch/kibana-bluemix | a07267965791f2582a978e8c7190a2af8d43e159 | [
"Apache-2.0"
] | 102 | 2015-09-28T14:14:32.000Z | 2020-07-21T21:23:20.000Z | src/ui/public/filter_bar/lib/map_missing.js | IBMResearch/kibana-bluemix | a07267965791f2582a978e8c7190a2af8d43e159 | [
"Apache-2.0"
] | 144 | 2015-09-13T16:41:41.000Z | 2020-06-26T20:32:33.000Z | export function FilterBarLibMapMissingProvider(Promise) {
return function (filter) {
if (filter.missing) {
const type = 'missing';
const key = filter.missing.field;
const value = type;
return Promise.resolve({ type, key, value });
}
return Promise.reject(filter);
};
}
| 25.75 | 57 | 0.644013 |
6a20eedda9fbbb96596fd1738d36bbd24319759e | 349 | js | JavaScript | test/test.0001.js | g-stefan/quantum-script-extension-example | 31e5a4958eaa50b5de286abc7c039a7e839d97aa | [
"MIT",
"Unlicense"
] | null | null | null | test/test.0001.js | g-stefan/quantum-script-extension-example | 31e5a4958eaa50b5de286abc7c039a7e839d97aa | [
"MIT",
"Unlicense"
] | null | null | null | test/test.0001.js | g-stefan/quantum-script-extension-example | 31e5a4958eaa50b5de286abc7c039a7e839d97aa | [
"MIT",
"Unlicense"
] | null | null | null | // Public domain
// http://unlicense.org/
Script.requireExtension("Console");
Script.requireExtension("Example");
Script.requireExtension("JSON");
Example.print(Example.process(function(x) {
return x + " world!\r\n";
}));
Console.writeLn(JSON.encodeWithIndentation(Script.getExtensionList()));
Console.wr... | 23.266667 | 72 | 0.704871 |
6a211f7e73531877462e665e2271c0585d42d4a7 | 60,641 | js | JavaScript | zm-admin-console/WebRoot/js/zimbraAdmin/domains/view/ZaTaskAutoProvDialog.js | hernad/zimbra9 | cf61ffa40d9600ab255ef4516ca25029fff6603b | [
"Apache-2.0"
] | null | null | null | zm-admin-console/WebRoot/js/zimbraAdmin/domains/view/ZaTaskAutoProvDialog.js | hernad/zimbra9 | cf61ffa40d9600ab255ef4516ca25029fff6603b | [
"Apache-2.0"
] | null | null | null | zm-admin-console/WebRoot/js/zimbraAdmin/domains/view/ZaTaskAutoProvDialog.js | hernad/zimbra9 | cf61ffa40d9600ab255ef4516ca25029fff6603b | [
"Apache-2.0"
] | null | null | null | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2011, 2012, 2013, 2014, 2016 Synacor, Inc.
*
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License");
* you may not use this file except in compliance with the License.... | 50.660819 | 208 | 0.673142 |
6a2125d2182414108973927c14961e84c3bfeab0 | 1,659 | js | JavaScript | packages/@vueneue/ssr-core/utils/hmr.js | vueneue/vueneue | 3319f4ce9afa0229e0e6338bb0e7a43125e0aa33 | [
"MIT"
] | 114 | 2018-06-30T16:49:22.000Z | 2021-05-07T15:58:29.000Z | packages/@vueneue/ssr-core/utils/hmr.js | vueneue/vueneue | 3319f4ce9afa0229e0e6338bb0e7a43125e0aa33 | [
"MIT"
] | 58 | 2018-07-06T11:14:22.000Z | 2019-08-06T14:12:33.000Z | packages/@vueneue/ssr-core/utils/hmr.js | vueneue/vueneue | 3319f4ce9afa0229e0e6338bb0e7a43125e0aa33 | [
"MIT"
] | 17 | 2018-07-03T14:23:28.000Z | 2019-08-06T13:48:09.000Z | import errorHandler from './errorHandler';
import { handleMiddlewares } from './middlewares';
import { applyAsyncData, sanitizeComponent } from './asyncData';
import { getContext } from './context';
const findAsyncDataComponents = (parent, components = []) => {
for (const child of parent.$children) {
if (child.$... | 28.118644 | 80 | 0.65642 |
6a218efa0fbe523c5abd87e36d22f57a137699d5 | 352 | js | JavaScript | cli.js | markdalgleish/lanyrd-doorprize | 9347086ef03cd741b187b9fa45926c7335cc024b | [
"MIT"
] | null | null | null | cli.js | markdalgleish/lanyrd-doorprize | 9347086ef03cd741b187b9fa45926c7335cc024b | [
"MIT"
] | null | null | null | cli.js | markdalgleish/lanyrd-doorprize | 9347086ef03cd741b187b9fa45926c7335cc024b | [
"MIT"
] | null | null | null | #!/usr/bin/env node
var doorprize = require('./');
var opn = require('opn');
var args = process.argv.splice(2);
doorprize(args[0], function(err, winner) {
if (err) {
process.stdout.write(err + '\n');
return;
}
if (args[1] === '-o' || args[1] === '--open') {
opn(winner);
} else {
process.stdou... | 18.526316 | 49 | 0.545455 |
6a21d0beb3daaafd5f4fa7ceeee49facb3cdcb40 | 5,548 | js | JavaScript | web/test/WebWorldWind/src/util/Font.js | ShadowEditor/ShadowEditor | ea50677544ea7573e3c1fe6c77fef07eb3e19e39 | [
"MIT"
] | 1 | 2022-03-24T09:14:39.000Z | 2022-03-24T09:14:39.000Z | web/test/WebWorldWind/src/util/Font.js | ShadowEditor/ShadowEditor | ea50677544ea7573e3c1fe6c77fef07eb3e19e39 | [
"MIT"
] | null | null | null | web/test/WebWorldWind/src/util/Font.js | ShadowEditor/ShadowEditor | ea50677544ea7573e3c1fe6c77fef07eb3e19e39 | [
"MIT"
] | null | null | null | /*
* Copyright 2003-2006, 2009, 2017, United States Government, as represented by the Administrator of the
* National Aeronautics and Space Administration. All rights reserved.
*
* The NASAWorldWind/WebWorldWind platform is licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | 30.822222 | 113 | 0.593187 |
6a21e474fe59190486cd5e963acfd4f69db18b7d | 15,475 | js | JavaScript | appengine/monorail/static_src/shared/typedef.js | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/static_src/shared/typedef.js | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/static_src/shared/typedef.js | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Shared file for specifying common types used in type
* annotations across Monorail.
*/
// TODO(zhangtiff): Find out if there's a w... | 25.877926 | 79 | 0.707205 |
6a23100beb470240e803795ca248480e4d58af04 | 3,104 | js | JavaScript | lib/stein.min.js | Milanzor/stein.js | 25fdf45715f128277c3c9d74b3143211f1a4c704 | [
"MIT"
] | null | null | null | lib/stein.min.js | Milanzor/stein.js | 25fdf45715f128277c3c9d74b3143211f1a4c704 | [
"MIT"
] | null | null | null | lib/stein.min.js | Milanzor/stein.js | 25fdf45715f128277c3c9d74b3143211f1a4c704 | [
"MIT"
] | null | null | null | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("stein",[],t):"object"==typeof exports?exports.stein=t():e.stein=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:... | 388 | 2,111 | 0.704253 |
6a2353e94ff5057bfe64d0e29416b71f45713d53 | 1,587 | js | JavaScript | src/components/pages/SigninPage.test.js | peterzimon/members.js | e18e6217a53f85490c7fb547c509511bd046d531 | [
"MIT"
] | null | null | null | src/components/pages/SigninPage.test.js | peterzimon/members.js | e18e6217a53f85490c7fb547c509511bd046d531 | [
"MIT"
] | null | null | null | src/components/pages/SigninPage.test.js | peterzimon/members.js | e18e6217a53f85490c7fb547c509511bd046d531 | [
"MIT"
] | null | null | null | import React from 'react';
import {render, fireEvent} from 'test-utils';
import SigninPage from './SigninPage';
const setup = (overrides) => {
const {mockOnActionFn, ...utils} = render(
<SigninPage />,
{
overrideContext: {
member: null
}
}
);
... | 30.519231 | 93 | 0.608066 |
6a23f8e6de41d19a36ee75bf412eb0e0804930e8 | 736 | js | JavaScript | node_modules/discord.js/src/client/actions/ThreadDelete.js | Godlander/botlander | 83c1644fbbb3b28340dce84d1cf06dbe263a4993 | [
"MIT"
] | 19,349 | 2018-01-18T19:44:22.000Z | 2022-03-31T23:33:53.000Z | node_modules/discord.js/src/client/actions/ThreadDelete.js | Godlander/botlander | 83c1644fbbb3b28340dce84d1cf06dbe263a4993 | [
"MIT"
] | 3,734 | 2018-01-19T01:27:05.000Z | 2022-03-31T08:06:46.000Z | node_modules/discord.js/src/client/actions/ThreadDelete.js | Godlander/botlander | 83c1644fbbb3b28340dce84d1cf06dbe263a4993 | [
"MIT"
] | 5,774 | 2018-01-18T22:14:52.000Z | 2022-03-31T21:09:19.000Z | 'use strict';
const Action = require('./Action');
const { Events } = require('../../util/Constants');
class ThreadDeleteAction extends Action {
handle(data) {
const client = this.client;
const thread = client.channels.cache.get(data.id);
if (thread) {
client.channels._remove(thread.id);
thr... | 23.741935 | 66 | 0.629076 |
6a2431cfb04a384a8c2df7ebb9df896138947323 | 312 | js | JavaScript | wildfire-tracker/src/components/Header.js | LightLordYT/Traversy-Courses | fa95ea9154cd0bc836d0c0734a1ea550ce6a1633 | [
"Apache-2.0"
] | 1 | 2021-04-05T20:09:27.000Z | 2021-04-05T20:09:27.000Z | wildfire-tracker/src/components/Header.js | LightLordYT/Traversy-Courses | fa95ea9154cd0bc836d0c0734a1ea550ce6a1633 | [
"Apache-2.0"
] | 5 | 2020-06-01T11:50:22.000Z | 2022-01-22T11:58:50.000Z | wildfire-tracker/src/components/Header.js | LightLordYT/Traversy-Courses | fa95ea9154cd0bc836d0c0734a1ea550ce6a1633 | [
"Apache-2.0"
] | 2 | 2021-04-05T20:09:29.000Z | 2021-09-25T02:41:23.000Z | import { Icon } from '@iconify/react';
import locationIcon from '@iconify/icons-mdi/fire-alert';
const Header = () => {
return (
<header className='header'>
<h1>
<Icon icon={locationIcon} />
Wildfire Tracker (Powered By NASA)
</h1>
</header>
);
};
export default Header;
| 20.8 | 57 | 0.599359 |
6a248b6c979feb1146780281c8c75bb705b2e7fa | 496 | js | JavaScript | online-shop-api/users/routes.js | pkkoev/simple-online-shop | 77d52b0ef3df56e144ecf5cda5631d99e98fc647 | [
"MIT"
] | null | null | null | online-shop-api/users/routes.js | pkkoev/simple-online-shop | 77d52b0ef3df56e144ecf5cda5631d99e98fc647 | [
"MIT"
] | null | null | null | online-shop-api/users/routes.js | pkkoev/simple-online-shop | 77d52b0ef3df56e144ecf5cda5631d99e98fc647 | [
"MIT"
] | null | null | null | const router = require("express").Router();
const userController = require("./controller.js");
const verifyToken = require('../serverAuth.js').verifyToken;
router.get('/', userController.getUsers);
router.post('/', userController.createUser);
router.get('/:userId',verifyToken, userController.getUser);
router.put('/... | 29.176471 | 62 | 0.754032 |
6a24b33034f107585503f0e97e82360ebfb74230 | 3,216 | js | JavaScript | app/global-styles.js | Serninator/hackchat-client | 9a0d808ac46d3d326867030de58641e3cec88040 | [
"WTFPL"
] | null | null | null | app/global-styles.js | Serninator/hackchat-client | 9a0d808ac46d3d326867030de58641e3cec88040 | [
"WTFPL"
] | null | null | null | app/global-styles.js | Serninator/hackchat-client | 9a0d808ac46d3d326867030de58641e3cec88040 | [
"WTFPL"
] | null | null | null | /**
* Root style sheet for the ui
*/
import { createGlobalStyle } from 'styled-components';
const GlobalStyle = createGlobalStyle`
html,
body {
height: 100%;
width: 100%;
background-color: #2a2949;
--scrollbarBG: #2a2a49;
--thumbBG: #9740dd;
}
body {
font-family: 'DejaVu Sans Mono',... | 25.52381 | 430 | 0.63495 |
6a24bca0b2f344cf661e947eb1b9a2d9db3e4b17 | 1,611 | js | JavaScript | src/components/Forms/Tick.js | mdtanrikulu/ens-app | 6ef916818afeb4ec6e8d08fa7acf0b84b981b8b3 | [
"BSD-2-Clause"
] | 2 | 2021-03-05T23:50:24.000Z | 2021-03-05T23:50:35.000Z | src/components/Forms/Tick.js | mdtanrikulu/ens-app | 6ef916818afeb4ec6e8d08fa7acf0b84b981b8b3 | [
"BSD-2-Clause"
] | null | null | null | src/components/Forms/Tick.js | mdtanrikulu/ens-app | 6ef916818afeb4ec6e8d08fa7acf0b84b981b8b3 | [
"BSD-2-Clause"
] | 1 | 2020-09-27T07:06:56.000Z | 2020-09-27T07:06:56.000Z | import React from 'react'
import styled from '@emotion/styled'
const activeColourSwitch = props => (props.active ? '#5284FF' : '#B0BECF')
const TickContainer = styled('div')`
display: flex;
justify-content: center;
align-items: center;
height: 23px;
width: 23px;
border-radius: 5px;
border: 2px solid ${... | 22.068493 | 74 | 0.61018 |
6a24d1b2ef7d7aca4804daf5d16da40a26abed16 | 1,071 | js | JavaScript | public/scripts/nav/navController.js | gunderm2/RetrospectiveTool | 0ed5432c18aef9798b55e8fdccc13be064ad7e45 | [
"Unlicense",
"MIT"
] | 3 | 2016-03-03T16:57:09.000Z | 2016-11-29T14:43:39.000Z | public/scripts/nav/navController.js | gunderm2/RetrospectiveTool | 0ed5432c18aef9798b55e8fdccc13be064ad7e45 | [
"Unlicense",
"MIT"
] | null | null | null | public/scripts/nav/navController.js | gunderm2/RetrospectiveTool | 0ed5432c18aef9798b55e8fdccc13be064ad7e45 | [
"Unlicense",
"MIT"
] | null | null | null | (function () {
"use strict";
angular.module('startapp').controller('navController', function ($scope, $rootScope, $location, app_constants, sessionUtils) {
'use strict'
$scope.canRetropect = sessionUtils.isSessionIdSet(app_constants.sessionStorageId);
//console.log('navController canRet... | 34.548387 | 130 | 0.577965 |
6a24e7e892aff5f04f56179e13ddc9ab4c29a98f | 2,584 | js | JavaScript | src/extension/features/accounts/right-click-to-edit/index.js | heylookltsme/toolkit-for-ynab | 7ca6999bbe5ad104bb096cde51486fc094c7441b | [
"MIT"
] | 1 | 2020-01-03T14:23:53.000Z | 2020-01-03T14:23:53.000Z | src/extension/features/accounts/right-click-to-edit/index.js | 7immyH/toolkit-for-ynab | c09fa487bcec11b125d8e2694c5f48b0b33732ce | [
"MIT"
] | null | null | null | src/extension/features/accounts/right-click-to-edit/index.js | 7immyH/toolkit-for-ynab | c09fa487bcec11b125d8e2694c5f48b0b33732ce | [
"MIT"
] | null | null | null | import { Feature } from 'toolkit/extension/features/feature';
import { isCurrentRouteAccountsPage } from 'toolkit/extension/utils/ynab';
export class RightClickToEdit extends Feature {
isCurrentlyRunning = false;
injectCSS() {
return require('./index.css');
}
shouldInvoke() {
return isCurrentRouteAcc... | 30.4 | 116 | 0.634675 |
6a254eb30118787e2016051b84294a1aaf30fc85 | 1,378 | js | JavaScript | out/common/secrets.js | ScriptBox99/rest-book | 9d1c297793f490f642487702a2029a191af7e27a | [
"MIT"
] | 205 | 2021-02-23T09:11:16.000Z | 2022-03-22T22:08:51.000Z | out/common/secrets.js | ScriptBox99/rest-book | 9d1c297793f490f642487702a2029a191af7e27a | [
"MIT"
] | 72 | 2020-12-09T22:11:08.000Z | 2022-03-25T06:30:29.000Z | out/common/secrets.js | ScriptBox99/rest-book | 9d1c297793f490f642487702a2029a191af7e27a | [
"MIT"
] | 22 | 2020-12-09T23:10:08.000Z | 2022-03-22T22:08:44.000Z | var stringify = require('json-stringify-safe');
const SECRETS_KEY = 'rest-book-secrets';
var extContext;
export var SECRETS = {};
export function hasNoSecrets() {
return Object.keys(SECRETS).length === 0;
}
export function initializeSecretsRegistry(context) {
extContext = context;
context.secrets.get(SECRET... | 26 | 63 | 0.598694 |
6a28290d91324bb2ee4d88b9e21f5d118b442f55 | 645 | js | JavaScript | index.js | michaelandrewrm/channel-messaging | a1a349cc57aff63e6fd91163d1e78fc7cca9ef73 | [
"MIT"
] | null | null | null | index.js | michaelandrewrm/channel-messaging | a1a349cc57aff63e6fd91163d1e78fc7cca9ef73 | [
"MIT"
] | null | null | null | index.js | michaelandrewrm/channel-messaging | a1a349cc57aff63e6fd91163d1e78fc7cca9ef73 | [
"MIT"
] | null | null | null | window.addEventListener('DOMContentLoaded', () => {
const message = document.getElementById('message');
const sendButton = document.getElementById('send-message');
const iframe = document.querySelector('iframe');
const channel = new MessageChannel();
const port1 = channel.port1;
const { log } = console;
functio... | 25.8 | 75 | 0.708527 |
6a283eeb24a3c4fd742d68d9f7780e01d08dd218 | 4,874 | js | JavaScript | packages/material-ui/src/MenuItem/MenuItem.test.js | MichaelDuo/material-ui | a9e5aecabb16605cbf16f06b83f43f2ea282438e | [
"MIT"
] | null | null | null | packages/material-ui/src/MenuItem/MenuItem.test.js | MichaelDuo/material-ui | a9e5aecabb16605cbf16f06b83f43f2ea282438e | [
"MIT"
] | 31 | 2021-01-14T22:36:12.000Z | 2021-07-12T10:13:40.000Z | packages/material-ui/src/MenuItem/MenuItem.test.js | MichaelDuo/material-ui | a9e5aecabb16605cbf16f06b83f43f2ea282438e | [
"MIT"
] | null | null | null | // @ts-check
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
createMount,
describeConformanceV5,
createClientRender,
fireEvent,
screen,
} from 'test/utils';
import MenuItem, { menuItemClasses as classes } from '@material-ui/core/MenuItem';
import ListItem f... | 28.670588 | 93 | 0.623923 |
6a28f33c3274385bab561bd56cfae7b0067d12a4 | 169 | js | JavaScript | report/slate-react/files/packages_slate_react_src_components_text_tsx/report.history.js | kbrandonle/slate | cfbf8f4d46c037f50cec861de9aaa2364349e8c9 | [
"MIT"
] | 1 | 2020-10-25T02:13:03.000Z | 2020-10-25T02:13:03.000Z | report/slate-react/files/packages_slate_react_src_components_text_tsx/report.history.js | kbrandonle/slate | cfbf8f4d46c037f50cec861de9aaa2364349e8c9 | [
"MIT"
] | null | null | null | report/slate-react/files/packages_slate_react_src_components_text_tsx/report.history.js | kbrandonle/slate | cfbf8f4d46c037f50cec861de9aaa2364349e8c9 | [
"MIT"
] | null | null | null | __history = [{"date":"Mon, 30 Nov 2020 01:51:44 GMT","sloc":76,"lloc":34,"functions":3,"deliveredBugs":0.365,"maintainability":61.553,"lintErrors":26,"difficulty":24.7}] | 169 | 169 | 0.698225 |
6a29958082ad76d964967d75d09b55b6f0c80419 | 8,892 | js | JavaScript | test/unit/mocks/adapters/wallet.js | Permissionless-Software-Foundation/avax-dex | 65e1ce8c366dd49bca8581a8798538e00a9e6155 | [
"MIT"
] | null | null | null | test/unit/mocks/adapters/wallet.js | Permissionless-Software-Foundation/avax-dex | 65e1ce8c366dd49bca8581a8798538e00a9e6155 | [
"MIT"
] | 17 | 2021-11-24T22:08:11.000Z | 2022-02-19T04:04:35.000Z | test/unit/mocks/adapters/wallet.js | Permissionless-Software-Foundation/avax-dex | 65e1ce8c366dd49bca8581a8798538e00a9e6155 | [
"MIT"
] | null | null | null | /*
Mock data for the wallet.adapter.unit.js test file.
*/
const BCHJS = require('@psf/bch-js')
const AvaxWallet = require('minimal-avax-wallet')
const mockWallet = {
mnemonic:
'course abstract aerobic deer try switch turtle diet fence affair butter top',
privateKey: 'L5D2UAam8tvo3uii5kpgaGyjvVMimdrXu8nWGQSQ... | 29.838926 | 167 | 0.599753 |
6a29b9def8c3cd528c53390e750cab631bd91e16 | 5,120 | js | JavaScript | lib/locale/lang/zh-HK.min.js | ZHONG007/vxe-table | 0b30735e7a23338d6d56d19c735f65c8d7acd664 | [
"MIT"
] | null | null | null | lib/locale/lang/zh-HK.min.js | ZHONG007/vxe-table | 0b30735e7a23338d6d56d19c735f65c8d7acd664 | [
"MIT"
] | null | null | null | lib/locale/lang/zh-HK.min.js | ZHONG007/vxe-table | 0b30735e7a23338d6d56d19c735f65c8d7acd664 | [
"MIT"
] | null | null | null | !function(e,t){if("function"==typeof define&&define.amd)define("vxe-table-lang.zh-HK",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var l={};t(l),e.vxeTableLangZhHK=l}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__e... | 5,120 | 5,120 | 0.712109 |
6a2a994243c6ec9d595d2757cf9f5cc05c08a7e9 | 2,791 | js | JavaScript | src/scripts/widget/category-widget.js | maurimiranda/geodashboard | 7af827f6de7f316c2a847c484c6a8600c5a74a64 | [
"MIT"
] | 15 | 2017-04-03T04:25:30.000Z | 2021-06-22T12:21:29.000Z | src/scripts/widget/category-widget.js | maurimiranda/geo-dashboard | 7af827f6de7f316c2a847c484c6a8600c5a74a64 | [
"MIT"
] | 4 | 2016-11-23T20:53:15.000Z | 2016-12-23T20:28:34.000Z | src/scripts/widget/category-widget.js | maurimiranda/geo-dashboard | 7af827f6de7f316c2a847c484c6a8600c5a74a64 | [
"MIT"
] | 3 | 2019-12-03T03:34:17.000Z | 2020-11-09T12:23:27.000Z | import AggregateWidget from './aggregate-widget';
import template from '../../templates/widget/category-widget.hbs';
/**
* Widget that shows grouped data fetched using WPS Aggregate
* @extends AggregateWidget
*/
class CategoryWidget extends AggregateWidget {
/**
* @param {Object} config - Configuration object... | 36.246753 | 98 | 0.682193 |
6a2ae92b75de682ddd0992bda48de886e1e625e3 | 2,412 | js | JavaScript | server/pipes/nlu-pipe-interface.js | servo-ai/servo-platform | dc5db0521aaeb9fd8c0c6bcd00654bd379793ee3 | [
"MIT"
] | 55 | 2019-01-24T21:46:07.000Z | 2022-01-11T21:38:06.000Z | server/pipes/nlu-pipe-interface.js | autocare/servo-platform | dc5db0521aaeb9fd8c0c6bcd00654bd379793ee3 | [
"MIT"
] | 5 | 2019-09-26T06:26:46.000Z | 2021-07-04T17:40:07.000Z | server/pipes/nlu-pipe-interface.js | servo-ai/servo-platform | dc5db0521aaeb9fd8c0c6bcd00654bd379793ee3 | [
"MIT"
] | 23 | 2019-02-16T13:52:05.000Z | 2022-01-11T21:38:19.000Z | var PipeInterface = require("./pipe-interface");
var _ = require('underscore');
var dblogger = require('utils/dblogger');
/***
* @typedef IntentEntitiesObject
* @property {Array} entities - an object with the message entities from NLU
* @property {string} intent
* @property {number} score - of the intent, or averag... | 24.12 | 126 | 0.554726 |
6a2b3c38edd8cdd24b95a0238b55b0dd1341940f | 2,332 | js | JavaScript | jquery.flot.topbar.js | jasonroman/flot-topbar | dd9bafbba51fd3667c120dade3dd7495de1cf685 | [
"MIT"
] | 1 | 2015-03-10T07:33:53.000Z | 2015-03-10T07:33:53.000Z | jquery.flot.topbar.js | jasonroman/flot-topbar | dd9bafbba51fd3667c120dade3dd7495de1cf685 | [
"MIT"
] | null | null | null | jquery.flot.topbar.js | jasonroman/flot-topbar | dd9bafbba51fd3667c120dade3dd7495de1cf685 | [
"MIT"
] | null | null | null | /**
* Flot plugin for specifying bar chart series that should only display the
* top line of the bar and not fill in the area below; disabled by default
*
* Note: This likely does not make sense to use in combination with stacking bar data
*
* The plugin supports setting all bars or no bars to a topbar (default... | 27.435294 | 104 | 0.581475 |
6a2bb87357550d7296dfb524c11cc12b577870c3 | 6,253 | js | JavaScript | packages/sentiment/src/sentiment-analyzer.js | igorjos/nlp.js | 77c0b80d27ba58de31bce56c5762cc0a95eb81a6 | [
"MIT"
] | 4,883 | 2018-07-31T14:05:34.000Z | 2022-03-31T15:08:03.000Z | packages/sentiment/src/sentiment-analyzer.js | igorjos/nlp.js | 77c0b80d27ba58de31bce56c5762cc0a95eb81a6 | [
"MIT"
] | 1,081 | 2018-08-20T11:18:47.000Z | 2022-03-29T11:33:44.000Z | packages/sentiment/src/sentiment-analyzer.js | igorjos/nlp.js | 77c0b80d27ba58de31bce56c5762cc0a95eb81a6 | [
"MIT"
] | 542 | 2018-07-31T14:39:25.000Z | 2022-03-24T20:36:45.000Z | /*
* Copyright (c) AXA Group Operations Spain S.A.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify,... | 29.91866 | 74 | 0.612346 |
6a2bf3fc647d522dea6d57d31585d83ce8bb00d0 | 47,304 | js | JavaScript | static/js/127.379ac78717e1fe1e3e01.js | liefswanson/liefswanson.github.io | 9ba651e40bf3b24cd387f3be1b335d1ca64f6fc0 | [
"MIT"
] | null | null | null | static/js/127.379ac78717e1fe1e3e01.js | liefswanson/liefswanson.github.io | 9ba651e40bf3b24cd387f3be1b335d1ca64f6fc0 | [
"MIT"
] | 20 | 2018-05-23T05:46:11.000Z | 2022-02-26T03:48:08.000Z | static/js/127.379ac78717e1fe1e3e01.js | liefswanson/liefswanson.github.io | 9ba651e40bf3b24cd387f3be1b335d1ca64f6fc0 | [
"MIT"
] | null | null | null | webpackJsonp([127],{"2Us0":function(b,n){b.exports='�RCopyright 1990-2009 Adobe Systems Incorporated.\nAll rights reserved.\nSee ./LICENSE\0\0���\0\0��<�N\0\0S\0�\n\0�*\0�{\0�v\0�9\0�\n\0�e\0�W\0\0�n\0�c�L�\n\0u\0��V�E�T�c�\0�\0��\0�\n�%�$89R�a9�,�S�r�1V� ��4�i�e�v�\r\0�\0�\0>�L\0.\0\b\0�\0�I\0�... | 23,652 | 47,251 | 0.308092 |
6a2c04e57c833819096370de97e2e62992c018b7 | 564 | js | JavaScript | src/TwilioVideoLocalView.web.js | JackCai1206/react-native-twilio-video-webrtc | 8149b9b138d6dd3d8d65d38057b80b511618e6c1 | [
"MIT"
] | null | null | null | src/TwilioVideoLocalView.web.js | JackCai1206/react-native-twilio-video-webrtc | 8149b9b138d6dd3d8d65d38057b80b511618e6c1 | [
"MIT"
] | null | null | null | src/TwilioVideoLocalView.web.js | JackCai1206/react-native-twilio-video-webrtc | 8149b9b138d6dd3d8d65d38057b80b511618e6c1 | [
"MIT"
] | null | null | null | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import TWLocalVideoView from '../web/TWLocalVideoView'
class TwilioVideoLocalView extends Component {
static propTypes = {
/**
* Indicate if video feed is enabled.
*/
enabled: PropTypes.bool.isRequired
}
render () {
... | 22.56 | 64 | 0.66844 |
6a2ca91c3f00665bfbe31d66de01e76b189c53fb | 352 | js | JavaScript | src/assets/plugins/element.js | lee84233/vue-demo | bb1f430f72dd1dcc5e4221d3c61a32a1de9949d9 | [
"Apache-2.0"
] | 5 | 2018-02-13T06:31:44.000Z | 2019-09-09T06:02:19.000Z | src/assets/plugins/element.js | lee84233/vue-demo | bb1f430f72dd1dcc5e4221d3c61a32a1de9949d9 | [
"Apache-2.0"
] | null | null | null | src/assets/plugins/element.js | lee84233/vue-demo | bb1f430f72dd1dcc5e4221d3c61a32a1de9949d9 | [
"Apache-2.0"
] | 2 | 2018-01-26T01:35:39.000Z | 2018-08-11T03:25:48.000Z | /**
* Element UI
* 默认使用中文
* 官网:https://element.eleme.cn/#/zh-CN
*/
import Vue from 'vue';
import Element from 'element-ui';
// Element 国际化
import zhCN from 'element-ui/lib/locale/lang/zh-CN';
// import en from 'element-ui/lib/locale/lang/en';
// Element 自定义主题
import '@/assets/css/element-variables.scss';
Vue.us... | 17.6 | 52 | 0.676136 |
6a2cc50195034df695eee89e7b60aa8db04ba36e | 612 | js | JavaScript | app-frontend/src/pages/homepage/homepage.test.js | Tanvir-rahman/phone-catalog-app | e40789fd9208ba3752c7e48f3abfb4d019a9d4a9 | [
"MIT"
] | null | null | null | app-frontend/src/pages/homepage/homepage.test.js | Tanvir-rahman/phone-catalog-app | e40789fd9208ba3752c7e48f3abfb4d019a9d4a9 | [
"MIT"
] | null | null | null | app-frontend/src/pages/homepage/homepage.test.js | Tanvir-rahman/phone-catalog-app | e40789fd9208ba3752c7e48f3abfb4d019a9d4a9 | [
"MIT"
] | null | null | null | import React from 'react';
import { shallow } from 'enzyme';
import { HomePage } from './homepage.component';
describe('Homepage component', () => {
let wrapper;
let mockfetchPhoneList;
beforeEach(() => {
mockfetchPhoneList= jest.fn();
const mockProps = {
fetchPhoneList: mockfetchPhoneList
};... | 22.666667 | 70 | 0.627451 |
6a2cca54e61436381d2051c5f6188af1101eb925 | 3,653 | js | JavaScript | node_modules/eregistrations/model/dynamic-currency.js | egovernment/eregistrations-starter | a07043b0aaf832009a3e7f1fd1a32b2f903a7e23 | [
"MIT"
] | 1 | 2019-06-27T08:49:36.000Z | 2019-06-27T08:49:36.000Z | node_modules/eregistrations/model/dynamic-currency.js | egovernment/eregistrations-starter | a07043b0aaf832009a3e7f1fd1a32b2f903a7e23 | [
"MIT"
] | 1 | 2017-06-07T09:57:09.000Z | 2017-06-07T09:57:09.000Z | node_modules/eregistrations/model/dynamic-currency.js | egovernment/eregistrations-starter | a07043b0aaf832009a3e7f1fd1a32b2f903a7e23 | [
"MIT"
] | null | null | null | // Creates a new dynamic currency type and sets up a currency type choice property on target.
//
// @param Target {object} - the target object for type choice property
// @param typeName {string} - name for new dynamic currency type
// @param currencies {arrat} - array of supported currency types
//
// @returns {object... | 31.491379 | 96 | 0.690939 |
6a2d2b97769229730dd328c6f2bf33c706592d8b | 227 | js | JavaScript | app/containers/AudioConverter/constants.js | Congtrinh097/utilities | 3857cfdffea7843fbf19fbf75d5754611a36124f | [
"MIT"
] | null | null | null | app/containers/AudioConverter/constants.js | Congtrinh097/utilities | 3857cfdffea7843fbf19fbf75d5754611a36124f | [
"MIT"
] | 5 | 2020-04-06T06:56:18.000Z | 2022-03-24T19:31:14.000Z | app/containers/AudioConverter/constants.js | Congtrinh097/utilities | 3857cfdffea7843fbf19fbf75d5754611a36124f | [
"MIT"
] | null | null | null | /*
*
* AudioConverter constants
*
*/
export const DEFAULT_ACTION = 'app/AudioConverter/DEFAULT_ACTION';
export const CHANGE_TEXT = 'app/AudioConverter/CHANGE_TEXT';
export const GET_AUDIO = 'app/AudioConverter/GET_AUDIO';
| 22.7 | 66 | 0.770925 |
6a2d57905d03372c7319a89ad0561d6c98bd2a37 | 1,375 | js | JavaScript | tests/tests/number/test.js | chemdrew/antd-schema-form | cf232e51b689546741c690bebb227cc70592d1d7 | [
"MIT"
] | null | null | null | tests/tests/number/test.js | chemdrew/antd-schema-form | cf232e51b689546741c690bebb227cc70592d1d7 | [
"MIT"
] | null | null | null | tests/tests/number/test.js | chemdrew/antd-schema-form | cf232e51b689546741c690bebb227cc70592d1d7 | [
"MIT"
] | null | null | null | import describe from 'describe';
import it from 'it';
import { renderDefault, renderRadio } from './componentRendering';
import {
componentHasDefaultValue, componentHastValue, radioHasDefaultValue, radioHastValue,
theValueOfTheComponentOverridesTheDefaultValue
} from './hasValue';
import { componentPlaceholder, com... | 31.25 | 118 | 0.711273 |
6a2d93ddc29f89180a94cf85e9134228a9f95ecd | 12,941 | js | JavaScript | Includes/ColorPicker/ColorPicker.js | epdubi/News-Articles | 65590ff275a6f0267027986dafe7ee47c5890dc7 | [
"MIT"
] | 41 | 2017-07-21T13:55:40.000Z | 2022-02-02T14:49:27.000Z | Includes/ColorPicker/ColorPicker.js | epdubi/News-Articles | 65590ff275a6f0267027986dafe7ee47c5890dc7 | [
"MIT"
] | 66 | 2017-10-18T11:46:52.000Z | 2022-02-02T13:37:08.000Z | Includes/ColorPicker/ColorPicker.js | epdubi/News-Articles | 65590ff275a6f0267027986dafe7ee47c5890dc7 | [
"MIT"
] | 24 | 2017-08-10T00:38:17.000Z | 2022-02-01T05:41:39.000Z | /* jQuery ColorPicker
Written by Virgil Reboton(vreboton@gmail.com)
ColorPicker function structures and attahcment is base on
jQuery UI Date Picker v3.3beta
by Marc Grabanski (m@marcgrabanski.com) and Keith Wood (kbwood@virginbroadband.com.au).
ColorPicker render data is base on
http:/... | 36.2493 | 187 | 0.591222 |
6a2eb8f8fa7ad7e17fe37e5579abf9947761a65b | 1,912 | js | JavaScript | public/library/js/ng/client_types.controllers.js | iramgutierrez/vitem | c31194d605f74fb0e73bf68f924469b0c48e4150 | [
"MIT"
] | null | null | null | public/library/js/ng/client_types.controllers.js | iramgutierrez/vitem | c31194d605f74fb0e73bf68f924469b0c48e4150 | [
"MIT"
] | null | null | null | public/library/js/ng/client_types.controllers.js | iramgutierrez/vitem | c31194d605f74fb0e73bf68f924469b0c48e4150 | [
"MIT"
] | null | null | null | (function () {
angular.module('client_types.controllers', [])
.controller('ClientTypesController', ['$scope', '$filter' , 'ClientTypeService' , function ($scope , $filter , ClientTypeService ) {
$scope.sort = 'id';
$scope.reverse = false;
$scope.client_types = [];
Cl... | 20.55914 | 137 | 0.418933 |
6a2eef29d605d32b323cec32e5c352e41610b656 | 567 | js | JavaScript | js/res.js | thefourthone/slorgans | 76729dc53672677b64e99dd45e25542eb72ecbee | [
"MIT"
] | null | null | null | js/res.js | thefourthone/slorgans | 76729dc53672677b64e99dd45e25542eb72ecbee | [
"MIT"
] | null | null | null | js/res.js | thefourthone/slorgans | 76729dc53672677b64e99dd45e25542eb72ecbee | [
"MIT"
] | null | null | null | var imgs = [];
imgs.i = 0;
imgs.n = 0;
imgs.load = function(ar){
imgs.n += ar.length;
for(var i = 0; i < ar.length; i++){
imgs[imgs.length] = new Image();
imgs[imgs.length-1].onload = imgs.loader;
imgs[imgs.length-1].src = ar[i];
}
};
imgs.loader = function(){
imgs.onload();
};
imgs.onload = functio... | 24.652174 | 77 | 0.566138 |
6a2f1cf4fe1d6551f3bb89fe51b2f8f963d754a0 | 7,010 | js | JavaScript | public/modules/forms/admin/config/i18n/german.js | wodka/ohmyform | 990898d88e89f80925a6e100c2c4cb5ee89d1368 | [
"MIT"
] | 1 | 2021-04-16T12:37:37.000Z | 2021-04-16T12:37:37.000Z | public/modules/forms/admin/config/i18n/german.js | wodka/ohmyform | 990898d88e89f80925a6e100c2c4cb5ee89d1368 | [
"MIT"
] | null | null | null | public/modules/forms/admin/config/i18n/german.js | wodka/ohmyform | 990898d88e89f80925a6e100c2c4cb5ee89d1368 | [
"MIT"
] | 3 | 2020-05-04T13:28:54.000Z | 2021-02-01T15:05:34.000Z | 'use strict';
angular.module('forms').config(['$translateProvider', function ($translateProvider) {
$translateProvider.translations('de', {
// Konfigurieren der Formularregisterkarte
ADVANCED_SETTINGS: 'Erweiterte Einstellungen',
FORM_NAME: 'Ihr tellform heißt',
FORM_STATUS: 'Status',
PUBLIC: 'Öffentlich',... | 33.701923 | 126 | 0.742511 |
6a30bbf1c0e95f712b923fdd8d176d029443be9e | 5,019 | js | JavaScript | assets/js/0-plugins/maintain-animation.js | cedric-91/Audify-Landing-Page | 6f8bfc2003eacde1fd06e8b09de545472089ab29 | [
"MIT"
] | null | null | null | assets/js/0-plugins/maintain-animation.js | cedric-91/Audify-Landing-Page | 6f8bfc2003eacde1fd06e8b09de545472089ab29 | [
"MIT"
] | null | null | null | assets/js/0-plugins/maintain-animation.js | cedric-91/Audify-Landing-Page | 6f8bfc2003eacde1fd06e8b09de545472089ab29 | [
"MIT"
] | null | null | null | (function (lib, img, cjs, ss, an) {
var p; // shortcut to reference prototypes
lib.webFontTxtInst = {};
var loadedTypekitCount = 0;
var loadedGoogleCount = 0;
var gFontsUpdateCacheList = [];
var tFontsUpdateCacheList = [];
lib.ssMetadata = [];
lib.updateListCache = function (cacheList) {
for(var i = 0; i < cacheLi... | 29.875 | 224 | 0.709305 |
6a31125aa3fc69c51969d87caa1a47eaae4870f8 | 261 | js | JavaScript | public/src/scripts/app.js | davidvalentin12/unicorn-pointing-poker | e52f109895455bcfbce2072fd5b0cf73b6fd7dc5 | [
"MIT"
] | null | null | null | public/src/scripts/app.js | davidvalentin12/unicorn-pointing-poker | e52f109895455bcfbce2072fd5b0cf73b6fd7dc5 | [
"MIT"
] | null | null | null | public/src/scripts/app.js | davidvalentin12/unicorn-pointing-poker | e52f109895455bcfbce2072fd5b0cf73b6fd7dc5 | [
"MIT"
] | null | null | null | (function() {
'use strict';
/**
* @ngdoc overview
* @name
*
* @description
*
*/
angular.module(
'pointingPoker',
// DEPENDENCIES
[
'firebase',
'ui.router',
//'dvm.templates'
]);
}());
| 11.863636 | 25 | 0.425287 |
6a31ae056a0e6ab66f9607404a1179437b0e33e6 | 336 | js | JavaScript | keeping-action/array/array_forEach.js | suencc/d3-playground | bebd2fe1bc43e2f0220d7b8db4a48fdc1054d987 | [
"BSD-3-Clause"
] | null | null | null | keeping-action/array/array_forEach.js | suencc/d3-playground | bebd2fe1bc43e2f0220d7b8db4a48fdc1054d987 | [
"BSD-3-Clause"
] | null | null | null | keeping-action/array/array_forEach.js | suencc/d3-playground | bebd2fe1bc43e2f0220d7b8db4a48fdc1054d987 | [
"BSD-3-Clause"
] | null | null | null | title = '数组';
d3.select('title').html(title);
d3.select('body').append('h1').html(title);
function print_array(array){
var ul=d3.select('body').append('ul');
array.forEach(function(item,index){
ul.append('li').html(item);
});
}
nums=[1,2,3];
print_array(nums);
language=['JAVA','C','C++','PHP'];
print_a... | 19.764706 | 43 | 0.630952 |
6a31c68e82545c4538dc758c7046847037f6b712 | 294 | js | JavaScript | customers-app/src/helpers/setPropsAsInitial.js | soker90/react-redux | 3823d6088c06a398cdbcb235eef5c38f9b857ebf | [
"MIT"
] | null | null | null | customers-app/src/helpers/setPropsAsInitial.js | soker90/react-redux | 3823d6088c06a398cdbcb235eef5c38f9b857ebf | [
"MIT"
] | null | null | null | customers-app/src/helpers/setPropsAsInitial.js | soker90/react-redux | 3823d6088c06a398cdbcb235eef5c38f9b857ebf | [
"MIT"
] | null | null | null | import React, { Component } from 'react'
export const setPropsAsInitial = WrappedComponent => (
class extends Component {
render() {
return <WrappedComponent {...this.props}
initialValues={this.props}
enableReinitialize />
}
}
) | 26.727273 | 54 | 0.581633 |