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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
385cb9194359832489c2f3e06155a6be160fb8ce | 9,977 | js | JavaScript | src/client/js/drawingUtil.js | jeremiahgrady/tank-game | ce6903c72bdca738acf527bccc6956866131048e | [
"MIT"
] | 41 | 2017-11-10T14:52:03.000Z | 2022-02-13T07:16:36.000Z | src/client/js/drawingUtil.js | jeremiahgrady/tank-game | ce6903c72bdca738acf527bccc6956866131048e | [
"MIT"
] | 6 | 2018-08-26T08:39:01.000Z | 2021-05-07T16:28:20.000Z | src/client/js/drawingUtil.js | jeremiahgrady/tank-game | ce6903c72bdca738acf527bccc6956866131048e | [
"MIT"
] | 29 | 2017-11-16T22:52:10.000Z | 2022-03-03T06:28:15.000Z | var global = require('./global');
var Sprite = require('../../server/lib/sprite');
var Util = require('../../server/lib/util');
/**
* This is the class that holds a reference to the canvas.
* Here we will write all the drawing functions.
*/
class DrawingUtil {
constructor(canvas, perspective = {x: global.gameWi... | 36.951852 | 183 | 0.602285 |
385d79b31d8d56471bca9deedb68551966fe500f | 1,464 | js | JavaScript | tests/unit/services/clock-test.js | jfrux/ember-cli-clock | aed7fc405b3a49f123202d5ec25180b5706204e1 | [
"MIT"
] | null | null | null | tests/unit/services/clock-test.js | jfrux/ember-cli-clock | aed7fc405b3a49f123202d5ec25180b5706204e1 | [
"MIT"
] | null | null | null | tests/unit/services/clock-test.js | jfrux/ember-cli-clock | aed7fc405b3a49f123202d5ec25180b5706204e1 | [
"MIT"
] | null | null | null | import { moduleFor, test } from 'ember-qunit';
let fakeClock;
moduleFor('service:clock', 'Unit | Service | clock', {
beforeEach() {
fakeClock = lolex.install();
},
afterEach() {
fakeClock.uninstall();
}
});
test('assert that clock will tick two seconds accurately', function(assert) {
var clock = t... | 31.826087 | 91 | 0.679645 |
385e4cf2b7a5cb1478542b33c6370111aa57caea | 351 | js | JavaScript | client/src/app/topnav/duck/reducers.js | codemasa/FoodSelectionWebApp | f9834a5dc76b59366fb5692ad4b43d080bf0fe52 | [
"MIT"
] | null | null | null | client/src/app/topnav/duck/reducers.js | codemasa/FoodSelectionWebApp | f9834a5dc76b59366fb5692ad4b43d080bf0fe52 | [
"MIT"
] | null | null | null | client/src/app/topnav/duck/reducers.js | codemasa/FoodSelectionWebApp | f9834a5dc76b59366fb5692ad4b43d080bf0fe52 | [
"MIT"
] | null | null | null | import types from './types';
const INITIAL_STATE = {
basket: [],
basketOpen: true
}
const navReducer = (state=INITIAL_STATE, action) => {
switch(action.type) {
case types.OPEN_CLOSE_BASKET: {
return{
...state,
basketOpen: !state.basketOpen
}
}
default: return state;
}... | 15.26087 | 53 | 0.615385 |
385ece76ecbf7454c3d10cb2d14d20e2f8386b1b | 1,820 | js | JavaScript | js/names/name-flowers.js | kierandg/kierandg.github.io | 2b8b11ed6d4b1f18f0c9bb588b600b65288ccba4 | [
"MIT"
] | null | null | null | js/names/name-flowers.js | kierandg/kierandg.github.io | 2b8b11ed6d4b1f18f0c9bb588b600b65288ccba4 | [
"MIT"
] | null | null | null | js/names/name-flowers.js | kierandg/kierandg.github.io | 2b8b11ed6d4b1f18f0c9bb588b600b65288ccba4 | [
"MIT"
] | null | null | null | if (!window.NAMES) {
NAMES = {};
}
NAMES['flowers'] = {
"name": "Flowers",
"source": "http://www.whatiscalled.com/flower-names-in-all-languages/",
"values": [
"Arabian Jasmine",
"Lily",
"Buttercups",
"China Rose",
"Cobra Saffron",
"Crossandra",
"C... | 20.91954 | 75 | 0.433516 |
385ed8d4090d10c78cedbde7a9f744deb4ab0221 | 423 | js | JavaScript | breadwallet/Resources/brd-web-3/_nuxt/ce91a428c71b4ad95542.js | HoorayJorge/grlcbreadwallet-ios | 91eeb9f41fd42bf947df4e3393d4829afa5c02ef | [
"MIT"
] | null | null | null | breadwallet/Resources/brd-web-3/_nuxt/ce91a428c71b4ad95542.js | HoorayJorge/grlcbreadwallet-ios | 91eeb9f41fd42bf947df4e3393d4829afa5c02ef | [
"MIT"
] | null | null | null | breadwallet/Resources/brd-web-3/_nuxt/ce91a428c71b4ad95542.js | HoorayJorge/grlcbreadwallet-ios | 91eeb9f41fd42bf947df4e3393d4829afa5c02ef | [
"MIT"
] | null | null | null | (window.webpackJsonp=window.webpackJsonp||[]).push([[43],{448:function(n,t,o){"use strict";o.r(t),o.d(t,"atmAvailable",function(){return u}),o.d(t,"enabled",function(){return e});o(26);var r=[{from:"usd",to:"btc"},{from:"usd",to:"eth"}],u=function(n){var t=n.mode,o=n.to,u=n.from;return"buy"===t&&r.find(function(n){retu... | 211.5 | 374 | 0.661939 |
385efe4d5be32a8aec6b61b22ba2b39fa6416bc0 | 508 | js | JavaScript | node_modules/@progress/kendo-angular-treeview/dist/es2015/checkbox/checkbox.module.js | divlaksh/questionnaire-new | 900b4a74943dbbddffce930ad2d2b8216233facd | [
"Apache-2.0"
] | null | null | null | node_modules/@progress/kendo-angular-treeview/dist/es2015/checkbox/checkbox.module.js | divlaksh/questionnaire-new | 900b4a74943dbbddffce930ad2d2b8216233facd | [
"Apache-2.0"
] | 6 | 2020-06-17T13:26:07.000Z | 2022-03-02T09:09:27.000Z | node_modules/@progress/kendo-angular-treeview/dist/es2015/checkbox/checkbox.module.js | divlaksh/questionnaire-new | 900b4a74943dbbddffce930ad2d2b8216233facd | [
"Apache-2.0"
] | null | null | null | import { NgModule } from '@angular/core';
import { CheckBoxComponent } from './checkbox.component';
const COMPONENT_DIRECTIVES = [
CheckBoxComponent
];
/**
* @hidden
*
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }}) definition for the CheckBox component.
*/
export class CheckBoxModule {... | 26.736842 | 112 | 0.647638 |
385fa6cef9814b45c80c0ca7c4a951e5e9205f03 | 930 | js | JavaScript | utils/cjsFile.js | wu-cli/wu-cli | a2dd6a11d3dba5800525ebadc569c33b0cc619de | [
"MIT"
] | 2 | 2021-02-26T07:50:59.000Z | 2021-03-15T01:41:22.000Z | utils/cjsFile.js | wu-cli/wu-cli | a2dd6a11d3dba5800525ebadc569c33b0cc619de | [
"MIT"
] | null | null | null | utils/cjsFile.js | wu-cli/wu-cli | a2dd6a11d3dba5800525ebadc569c33b0cc619de | [
"MIT"
] | 2 | 2020-12-28T02:01:43.000Z | 2021-04-30T05:59:21.000Z | const fs = require('fs');
const path = require('path');
const {
pathExtra,
fsExtra,
} = require('hey-yoo-utils');
const { requireByType } = require('./common');
function objectGenerateCjsFile (object, filePath) {
let objectStr = JSON.stringify(object, null, 2);
if (path.extname(filePath) === '.js') {
objec... | 25.833333 | 77 | 0.673118 |
385fca4e05f03fb88f41d0a5fbe10dd53ff58460 | 467 | js | JavaScript | lib/Context.js | dimitropoulos/autoapply | 88bf22dff2b4dff4b0bee67f7fe987ee56d10610 | [
"MIT"
] | 131 | 2018-10-16T02:56:46.000Z | 2022-03-19T13:17:10.000Z | lib/Context.js | pascalgn/autoapply | a038a6cea2438842255ebf0b70a2197d6999e5f0 | [
"MIT"
] | 204 | 2018-10-14T18:48:56.000Z | 2022-03-28T19:16:42.000Z | lib/Context.js | pascalgn/autoapply | a038a6cea2438842255ebf0b70a2197d6999e5f0 | [
"MIT"
] | 15 | 2018-10-16T03:04:25.000Z | 2022-02-25T19:17:22.000Z | class Context {
constructor() {
this.running = true;
this.active = 0;
this.loops = [];
this.calls = [];
this.server = null;
}
async stop() {
this.running = false;
this.loops.forEach(loop => loop.stop());
if (this.server) {
await this.server.stop();
this.server = null... | 16.103448 | 61 | 0.554604 |
3860d1d739b981ebace103ed523942d8431f9cbf | 349 | js | JavaScript | src/components/LandingPage/LandingPage.js | MichalJani/nav-pwa | 19de8184ec7db85d9fa5cbf131f1085cfe206367 | [
"MIT"
] | null | null | null | src/components/LandingPage/LandingPage.js | MichalJani/nav-pwa | 19de8184ec7db85d9fa5cbf131f1085cfe206367 | [
"MIT"
] | null | null | null | src/components/LandingPage/LandingPage.js | MichalJani/nav-pwa | 19de8184ec7db85d9fa5cbf131f1085cfe206367 | [
"MIT"
] | null | null | null | import React from 'react';
import { NavBar } from '../NavBar/NavBar';
import './LandingPage.css';
export const LandingPage = ({ isNavbarOpen, toggleNavbar }) => {
return (
<div className={`landing-page ${isNavbarOpen && `landing-page--rotated`}`}>
<NavBar isNavbarOpen={isNavbarOpen} toggleNavbar={toggleN... | 24.928571 | 79 | 0.659026 |
38620793433826120ccc6c9d535b4d2efab7cd61 | 8,894 | js | JavaScript | frontend-finbot/src/financials.js | rp3328/Flatiron2019-Final-Project | 0be682b28f31a639cf16831214cdb7122b6a42bb | [
"MIT"
] | null | null | null | frontend-finbot/src/financials.js | rp3328/Flatiron2019-Final-Project | 0be682b28f31a639cf16831214cdb7122b6a42bb | [
"MIT"
] | 6 | 2020-02-26T00:22:23.000Z | 2022-02-26T05:20:36.000Z | frontend-finbot/src/financials.js | rp3328/Flatiron2019-Final-Project | 0be682b28f31a639cf16831214cdb7122b6a42bb | [
"MIT"
] | null | null | null | // brings up a form for creating a financial plan
function showFinancialPlan() {
main.innerHTML = `
<div class="logimg">
<div class="body">
<body>
<form id="plan-form" >
<div class="signup">
<h2 class="ctitle">Setup a financial plan</h2>
... | 45.147208 | 194 | 0.514279 |
3862232de96f20bf3155b7ec7536446cc5cde391 | 125 | js | JavaScript | packages/meteor-inject-data/lib/namespace.js | johnrabbit687/Holtzman | b2c717e0ad8de64fc761c27a5f02bc32d432dd87 | [
"ECL-2.0"
] | 16 | 2016-11-15T20:43:38.000Z | 2019-04-18T17:37:47.000Z | packages/meteor-inject-data/lib/namespace.js | johnrabbit687/Holtzman | b2c717e0ad8de64fc761c27a5f02bc32d432dd87 | [
"ECL-2.0"
] | 655 | 2016-11-09T21:20:45.000Z | 2019-04-09T15:30:29.000Z | packages/meteor-inject-data/lib/namespace.js | johnrabbit687/Holtzman | b2c717e0ad8de64fc761c27a5f02bc32d432dd87 | [
"ECL-2.0"
] | 10 | 2017-01-05T22:43:06.000Z | 2017-12-14T20:36:22.000Z | InjectData = {};
if (Package['meteorhacks:inject-data']) {
Package['meteorhacks:inject-data'].InjectData = InjectData;
} | 25 | 63 | 0.704 |
386310ef3643bb6524011e84be2692e4f7eea235 | 3,307 | js | JavaScript | src/card.js | siddysid/mylibrary | 49f217fe1f7e166a7271f3d1232225b66b85e87c | [
"MIT"
] | null | null | null | src/card.js | siddysid/mylibrary | 49f217fe1f7e166a7271f3d1232225b66b85e87c | [
"MIT"
] | 7 | 2021-03-02T00:58:47.000Z | 2022-03-03T23:04:29.000Z | src/card.js | siddysid/mylibrary | 49f217fe1f7e166a7271f3d1232225b66b85e87c | [
"MIT"
] | 1 | 2020-04-30T14:25:36.000Z | 2020-04-30T14:25:36.000Z | /***********************************************************
* Card template
* Author: Henry Nguyen
* Version : 1.x Jan 2020
* Buidling a card from components
**********************************************************/
import React, { Component } from 'react'
import TextBold from './components/texts/textBold'
... | 42.397436 | 122 | 0.391594 |
3863a30f5077b2820313b321bee792b2bfa6f286 | 25,121 | js | JavaScript | example/js/interface.js | JoshTheDerf/wsolver | 997e018a2f0d09d8e919af80cd6a6d2b7ea7f61c | [
"MIT"
] | 2 | 2019-05-17T02:07:04.000Z | 2021-11-13T03:59:37.000Z | example/js/interface.js | JoshTheDerf/wsolver | 997e018a2f0d09d8e919af80cd6a6d2b7ea7f61c | [
"MIT"
] | null | null | null | example/js/interface.js | JoshTheDerf/wsolver | 997e018a2f0d09d8e919af80cd6a6d2b7ea7f61c | [
"MIT"
] | 1 | 2022-02-10T15:27:56.000Z | 2022-02-10T15:27:56.000Z | // The MIT License (MIT)
//
// Copyright (c) 2015, Joshua Michael Bemenderfer (Tribex)
//
// 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 ... | 29.312719 | 124 | 0.652681 |
3863cca20d05f2cffb50a83847ae16bf8552179a | 1,970 | js | JavaScript | chatty_server/server.js | sdsog/chatty-app | d4aa1027611ca224b01dd3d978ba9854ac2e29e8 | [
"MIT"
] | null | null | null | chatty_server/server.js | sdsog/chatty-app | d4aa1027611ca224b01dd3d978ba9854ac2e29e8 | [
"MIT"
] | 6 | 2020-07-17T16:09:26.000Z | 2022-02-18T04:47:35.000Z | chatty_server/server.js | sdsog/chatty-app | d4aa1027611ca224b01dd3d978ba9854ac2e29e8 | [
"MIT"
] | null | null | null | // server.js
const express = require('express');
const WebSocket = require('ws');
const SocketServer = require('ws').Server;
// For unique ID generation
const uuidv1 = require('uuid/v1');
const PORT = 3001;
// New Server
const server = express()
.use(express.static('public'))
.listen(PORT, '0.0.0.0', 'localhost'... | 27.361111 | 115 | 0.631472 |
38651388605abccd5f677cfd4fcc8a4dcac66d8e | 2,330 | js | JavaScript | packages/hap-debugger/src/router/service.js | hapjs-platform/hap-toolkit | 800a017c23999a39a8d0da04cb8aa1e654c1ec9b | [
"Apache-2.0"
] | 16 | 2022-01-20T07:40:22.000Z | 2022-03-24T06:32:02.000Z | packages/hap-debugger/src/router/service.js | hapjs-platform/hap-toolkit | 800a017c23999a39a8d0da04cb8aa1e654c1ec9b | [
"Apache-2.0"
] | null | null | null | packages/hap-debugger/src/router/service.js | hapjs-platform/hap-toolkit | 800a017c23999a39a8d0da04cb8aa1e654c1ec9b | [
"Apache-2.0"
] | 6 | 2022-01-20T07:39:36.000Z | 2022-03-22T02:19:41.000Z | /*
* Copyright (c) 2021, the hapjs-platform Project Contributors
* SPDX-License-Identifier: Apache-2.0
*/
import http from 'http'
import {
colorconsole,
getServerIPAndPort,
getIPv4IPAddress,
getClientIPAddress
} from '@hap-toolkit/shared-utils'
export const LINK_MODE = {
NULL: 0,
WIFI: 1,
ADB: 2
}
/... | 24.787234 | 76 | 0.651073 |
38651f6e1ea88f765efff3b7c9365569456aa027 | 1,731 | js | JavaScript | src/global-state/actions/thunks/thunk-add-element.js | TimSusa/midi-bricks-tauri | 2e5d61d54910f013950d5a6b314311f255999d6b | [
"MIT"
] | 11 | 2019-01-30T16:53:52.000Z | 2020-12-26T20:17:17.000Z | src/global-state/actions/thunks/thunk-add-element.js | TimSusa/midi-bricks-tauri | 2e5d61d54910f013950d5a6b314311f255999d6b | [
"MIT"
] | 139 | 2019-01-26T13:37:59.000Z | 2020-11-21T12:28:11.000Z | src/global-state/actions/thunks/thunk-add-element.js | TimSusa/midi-bricks-mono | 40f05dda8002a660d3b7d217cd1ebcbb58a2cb50 | [
"MIT"
] | null | null | null | import { Actions as sliderListActions } from '../slider-list'
import { Actions as viewSettingsActions } from '../view-settings'
import { thunkChangePage } from './thunk-change-page'
//import { Actions as undoRedoActions } from '../undo-redo'
import { getUniqueId } from '../../../utils/get-unique-id'
import { STRIP_TYPE... | 33.288462 | 72 | 0.63316 |
386556efee31b83844466814d4888980962ca4ad | 586 | js | JavaScript | examples/scripts/test/pickingImage.js | aurel-l/ngl | 9f022c47cd4e7a16cbead856ec71da78b1dbd265 | [
"MIT"
] | 384 | 2015-03-10T19:27:40.000Z | 2020-07-26T11:30:48.000Z | examples/scripts/test/pickingImage.js | aurel-l/ngl | 9f022c47cd4e7a16cbead856ec71da78b1dbd265 | [
"MIT"
] | 725 | 2015-03-13T16:57:23.000Z | 2020-07-24T13:35:06.000Z | examples/scripts/test/pickingImage.js | aurel-l/ngl | 9f022c47cd4e7a16cbead856ec71da78b1dbd265 | [
"MIT"
] | 132 | 2015-03-16T11:12:10.000Z | 2020-06-15T09:49:48.000Z |
stage.loadFile('data://3SN6.cif').then(function (o) {
o.addRepresentation('cartoon')
o.autoView()
stage.viewer.getImage(true).then(function (blob) {
var size = stage.viewer.renderer.getSize()
var objectURL = window.URL.createObjectURL(blob)
var img = document.createElement('img')
img.src = objec... | 29.3 | 53 | 0.653584 |
386599591047cbf2f8cb3c4e432f90110c58bb57 | 3,567 | js | JavaScript | ui/file_manager/file_manager/background/js/mock_media_scanner.js | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | ui/file_manager/file_manager/background/js/mock_media_scanner.js | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/file_manager/file_manager/background/js/mock_media_scanner.js | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 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.
/**
* importer.MediaScanner and importer.ScanResult test double.
*
* @constructor
* @struct
* @implements {importer.MediaScanner}
*/
function TestMe... | 22.719745 | 80 | 0.666106 |
3867a70994eda9c7e821fcdd1f0c51744f8634b8 | 896 | js | JavaScript | lib/index.js | furtherab/connex | cf1dc94c4aa55f5c9a414f04c51e76020c004fa2 | [
"MIT"
] | 1 | 2019-01-11T21:34:16.000Z | 2019-01-11T21:34:16.000Z | lib/index.js | tedeh/connex | cf1dc94c4aa55f5c9a414f04c51e76020c004fa2 | [
"MIT"
] | null | null | null | lib/index.js | tedeh/connex | cf1dc94c4aa55f5c9a414f04c51e76020c004fa2 | [
"MIT"
] | null | null | null | /**
* Namespace available as require('connex')
* @namespace Connex
*/
var Connex = exports;
/**
* @static
* @type Manager
*/
Connex.Manager = require(__dirname + '/manager');
/**
* @static
* @type Connection
*/
Connex.Connection = require(__dirname + '/connection');
/**
* @static
* @type Utils
*/
Connex.... | 22.4 | 77 | 0.678571 |
3867a84d195fed9d993c3c11e6f784935eacb2b1 | 3,361 | js | JavaScript | src/routes/BondsDashboard/views/LiquidateBondsForm.js | myardhs/neutrino-web | 4f2e2a8d23473daa173628bf4a33730d3f0c0b9a | [
"MIT"
] | 6 | 2019-10-18T17:53:22.000Z | 2020-08-27T19:50:56.000Z | src/routes/BondsDashboard/views/LiquidateBondsForm.js | myardhs/neutrino-web | 4f2e2a8d23473daa173628bf4a33730d3f0c0b9a | [
"MIT"
] | 6 | 2019-11-07T17:38:53.000Z | 2022-02-26T17:58:20.000Z | src/routes/BondsDashboard/views/LiquidateBondsForm.js | myardhs/neutrino-web | 4f2e2a8d23473daa173628bf4a33730d3f0c0b9a | [
"MIT"
] | 6 | 2019-10-18T17:52:18.000Z | 2020-06-24T22:37:52.000Z | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {getFormValues, change} from 'redux-form';
import Form from 'yii-steroids/ui/form/Form';
import NumberField from 'yii-steroids/ui/form/NumberField';
import Button from 'yii-steroids/ui/form/Button';
import _get fr... | 32.95098 | 127 | 0.477239 |
3867cfc8f18ab2ca1a6747ff5bc15de0edb48d12 | 1,735 | js | JavaScript | dashboard/src/routes/Forms/Selects/components/CustomRenderMethods.js | Cruzercru/DevToolsBot | 6bcefe47fd353118177e1db85d5bfdb26802cf9e | [
"Apache-2.0"
] | 3 | 2018-04-25T09:55:35.000Z | 2018-05-09T11:59:50.000Z | dashboard/src/routes/Forms/Selects/components/CustomRenderMethods.js | Cruzercru/DevToolsBot | 6bcefe47fd353118177e1db85d5bfdb26802cf9e | [
"Apache-2.0"
] | null | null | null | dashboard/src/routes/Forms/Selects/components/CustomRenderMethods.js | Cruzercru/DevToolsBot | 6bcefe47fd353118177e1db85d5bfdb26802cf9e | [
"Apache-2.0"
] | null | null | null | import React from 'react';
import Select from 'react-select';
import Highlighter from 'react-highlight-words';
import _ from 'underscore';
export default class DisabledUpsellOptions extends React.Component {
static propTypes = {
label: React.PropTypes.string
}
constructor() {
super();
... | 26.287879 | 92 | 0.492219 |
3868b817c6a05161bc3094d395f87bd225443154 | 2,789 | js | JavaScript | client/src/js/MainWindow.js | 1231joe1231/react-videocall | 5c75ac9da42ac3429a802963b3a0799d0e437cbf | [
"MIT"
] | null | null | null | client/src/js/MainWindow.js | 1231joe1231/react-videocall | 5c75ac9da42ac3429a802963b3a0799d0e437cbf | [
"MIT"
] | null | null | null | client/src/js/MainWindow.js | 1231joe1231/react-videocall | 5c75ac9da42ac3429a802963b3a0799d0e437cbf | [
"MIT"
] | null | null | null | import React, { useState } from "react";
import Background from "smart-background";
import PropTypes from "prop-types";
function MainWindow({ startCall, clientId }) {
const [friendID, setFriendID] = useState(null);
const symbols = [
"乾",
"坤",
"震",
"巽",
"坎",
"离",
"艮",
"兑",
"天",
... | 23.436975 | 78 | 0.48512 |
3869885284ffb70c374bbf4965cb348d7da5af72 | 2,469 | js | JavaScript | VanillaJq/Scripts/start.js | v-braun/ASP.MVC-VanillaJq | 5f2f85c65472740181b4603e1de9b83c56c2f76c | [
"Apache-2.0"
] | 3 | 2015-10-26T08:02:54.000Z | 2015-11-09T13:47:54.000Z | VanillaJq/Scripts/start.js | v-braun/ASP.MVC-VanillaJq | 5f2f85c65472740181b4603e1de9b83c56c2f76c | [
"Apache-2.0"
] | null | null | null | VanillaJq/Scripts/start.js | v-braun/ASP.MVC-VanillaJq | 5f2f85c65472740181b4603e1de9b83c56c2f76c | [
"Apache-2.0"
] | null | null | null | 'use strict';
define([], function () {
function configureRequireJs(root) {
requirejs.config({
baseUrl: root,
paths: {
// the left side is the module ID,
// the right side is the path to
// the jQuery file, relative to baseUrl.
... | 29.746988 | 82 | 0.45565 |
386ac0b914fb15ac6d14705a0052c4587c0201ba | 3,175 | js | JavaScript | api/models/user.model.js | RenzoRoca/iron-final-project | 8d02652c0016cced4b665a2ab4b853b02ecaae97 | [
"MIT"
] | null | null | null | api/models/user.model.js | RenzoRoca/iron-final-project | 8d02652c0016cced4b665a2ab4b853b02ecaae97 | [
"MIT"
] | null | null | null | api/models/user.model.js | RenzoRoca/iron-final-project | 8d02652c0016cced4b665a2ab4b853b02ecaae97 | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const totp = require("totp-generator");
const Schema = mongoose.Schema
const EMAIL_PATTERN = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
const PASSWORD_PATTERN = /^.{8,}$/;
... | 23.87218 | 174 | 0.545197 |
386b71773360fac36783b396e84b2c26b0d6870d | 2,184 | js | JavaScript | test/unit/utils/optimizeHandler.spec.js | Tahseenm/bgvideo | 38d43b6cfe597fa3f0f6c5945cfd0d9137bada79 | [
"MIT"
] | 3 | 2018-12-21T16:39:39.000Z | 2021-04-29T00:26:30.000Z | test/unit/utils/optimizeHandler.spec.js | Tahseenm/bgvideo | 38d43b6cfe597fa3f0f6c5945cfd0d9137bada79 | [
"MIT"
] | null | null | null | test/unit/utils/optimizeHandler.spec.js | Tahseenm/bgvideo | 38d43b6cfe597fa3f0f6c5945cfd0d9137bada79 | [
"MIT"
] | null | null | null | /* eslint global-require: 0 */
import optimizeHandler from '../../../src/utils/optimizeHandler'
jest.mock('../../../src/global.js')
describe('optimizeHandler()', () => {
it('should return a function', () => {
const callbackMock = jest.fn()
const expected = 'function'
const actual = typeof optimizeHan... | 25.694118 | 97 | 0.63141 |
386bbf0bc4f7b9fe6eabf891bf0c4e27d642e9c1 | 4,858 | js | JavaScript | public/admin/assets/pages/chat/js/mmc-common.min.js | jesusvegardz/TIKS | 1b6e5efe8d4b49d0c8990d00157e11859ad5391d | [
"MIT"
] | 5 | 2020-08-12T14:23:12.000Z | 2021-08-24T05:31:35.000Z | public/admin/assets/pages/chat/js/mmc-common.min.js | jesusvegardz/TIKS | 1b6e5efe8d4b49d0c8990d00157e11859ad5391d | [
"MIT"
] | 22 | 2020-03-04T23:39:29.000Z | 2022-03-31T21:43:22.000Z | public/admin/assets/pages/chat/js/mmc-common.min.js | jesusvegardz/TIKS | 1b6e5efe8d4b49d0c8990d00157e11859ad5391d | [
"MIT"
] | 4 | 2020-11-18T21:46:41.000Z | 2021-02-24T15:35:41.000Z | "use strict";var placeholder='<span class="placeholder">{0}</span>';function ActiveChatBox(a){$("#main-chat .chat-single-box").removeClass("active");$(a).addClass("active")}function removeBoxCollapseClass(a){if($(a).hasClass("collapsed")){$(a).removeClass("collapsed")}}function messageScroll(){setTimeout(function(){if(... | 4,858 | 4,858 | 0.695142 |
386c483f1b42def1fb3dd109587bebc072c02ecd | 3,523 | js | JavaScript | docs/js/app.365419b1.js | mattune/vue-scrollClass | bebb5b7e8aa74e01a2b85cd085b3d7c6881026df | [
"MIT"
] | null | null | null | docs/js/app.365419b1.js | mattune/vue-scrollClass | bebb5b7e8aa74e01a2b85cd085b3d7c6881026df | [
"MIT"
] | 6 | 2021-03-09T04:10:12.000Z | 2022-02-26T10:57:50.000Z | docs/js/app.365419b1.js | mattune/vue-scrollClass | bebb5b7e8aa74e01a2b85cd085b3d7c6881026df | [
"MIT"
] | null | null | null | (function(e){function t(t){for(var s,i,o=t[0],l=t[1],c=t[2],d=0,f=[];d<o.length;d++)i=o[d],r[i]&&f.push(r[i][0]),r[i]=0;for(s in l)Object.prototype.hasOwnProperty.call(l,s)&&(e[s]=l[s]);u&&u(t);while(f.length)f.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],s=!0,o=1... | 3,523 | 3,523 | 0.671303 |
386d976b766c33119f4c83bf55de1261bc550b2e | 2,437 | js | JavaScript | apidocs/search/enums_1.js | xrdocs/cisco-service-layer | 32044edb0fd36061fd602565918fd5d4e7eb8f2b | [
"MIT"
] | null | null | null | apidocs/search/enums_1.js | xrdocs/cisco-service-layer | 32044edb0fd36061fd602565918fd5d4e7eb8f2b | [
"MIT"
] | null | null | null | apidocs/search/enums_1.js | xrdocs/cisco-service-layer | 32044edb0fd36061fd602565918fd5d4e7eb8f2b | [
"MIT"
] | null | null | null | var searchData=
[
['slbfddiagstateenum',['SLBfdDiagStateEnum',['../group__SLBFDCommon.html#a8f2d89a2cb5d1504bdf24c678b3bb5a9',1,'SLBfdCommonState']]],
['slbfdnotiftype',['SLBfdNotifType',['../group__SLBFDCommon.html#ga435e20adf0b2db870d1cf25028fe3a12',1,'sl_bfd_common.proto']]],
['slbfdstateenum',['SLBfdStateEnum... | 105.956522 | 140 | 0.780878 |
386dd3a8e4ed43ae4d2cccc6b0df3409781ae504 | 748 | js | JavaScript | src/components/Navigation/Navigation.js | tompiler/tompiler-net | c6433c1828a5e3384ed99f2fcae68324950958ef | [
"MIT"
] | 2 | 2021-12-08T00:46:28.000Z | 2021-12-08T00:46:47.000Z | src/components/Navigation/Navigation.js | tompiler/tompiler-net | c6433c1828a5e3384ed99f2fcae68324950958ef | [
"MIT"
] | null | null | null | src/components/Navigation/Navigation.js | tompiler/tompiler-net | c6433c1828a5e3384ed99f2fcae68324950958ef | [
"MIT"
] | null | null | null | import React from "react"
import { TransitionState } from "gatsby-plugin-transition-link"
import { useLocation } from "@reach/router"
import MobileLink from "./MobileLink"
const Navigation = () => {
const location = useLocation()
return (
<TransitionState>
{props => (
<>
{/* <MobileLi... | 28.769231 | 80 | 0.576203 |
386f147a5c4c58a9bc9b6e52014dd31ec42ffa70 | 2,159 | js | JavaScript | app/controller/department.js | SmartforXiaoYuan/egg-cms-stu | e5365690296219f3cb3680fcaa5036854d56f866 | [
"MIT"
] | 2 | 2021-03-01T06:43:15.000Z | 2021-05-14T13:12:14.000Z | app/controller/department.js | SmartforXiaoYuan/egg-cms-stu | e5365690296219f3cb3680fcaa5036854d56f866 | [
"MIT"
] | null | null | null | app/controller/department.js | SmartforXiaoYuan/egg-cms-stu | e5365690296219f3cb3680fcaa5036854d56f866 | [
"MIT"
] | 2 | 2021-03-01T06:43:31.000Z | 2021-03-08T03:09:51.000Z | 'use strict';
const Controller = require('egg').Controller;
class DepartmentController extends Controller {
// 查询
async index() {
const { ctx, service } = this;
// 查询参数
const query = {
limit: ctx.helper.parseInt(ctx.query.pageSize),
offset: ctx.helper.parseInt(ctx.query.pageNum)
};
... | 26.654321 | 96 | 0.640574 |
386fdc250d5b621d59b1192b09584409b23bd57a | 284 | js | JavaScript | src/view/constants/constants_auth.js | Daham2000/instagram_demo | 9dd164ae7187283f17a6f20bbec33b25bcee46fc | [
"Apache-2.0"
] | null | null | null | src/view/constants/constants_auth.js | Daham2000/instagram_demo | 9dd164ae7187283f17a6f20bbec33b25bcee46fc | [
"Apache-2.0"
] | null | null | null | src/view/constants/constants_auth.js | Daham2000/instagram_demo | 9dd164ae7187283f17a6f20bbec33b25bcee46fc | [
"Apache-2.0"
] | null | null | null | export class MassageType {
static massages = {
loginMsg: 'User account signed in!',
invalidEmail: 'That email address is invalid!',
signupMsg: 'User account created & signed in!',
emailAlreadyInUse: 'That email address is already in use!'
}
}
| 28.4 | 66 | 0.640845 |
38707fed8c4201a6af66cf4d5a6a3ced11605947 | 1,406 | js | JavaScript | repeated-substring-pattern/solution.js | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | 3 | 2018-05-08T14:08:50.000Z | 2019-02-28T00:10:14.000Z | repeated-substring-pattern/solution.js | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | null | null | null | repeated-substring-pattern/solution.js | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | null | null | null | /**
* @param {string} s
* @return {boolean}
*/
const repeatedSubstringPattern = s => {
if (s.length <= 1)
return false
/*
idea: some to do with self-similiarity. try KMP table:
pi[i] is the largest length of proper suffix of 0..i-1 which is
also a prefix of 0..i-1, also define pi[0] = -1 for m... | 31.954545 | 79 | 0.645804 |
38708cec58646f44dc72f87097bad01dd1aaa201 | 45 | js | JavaScript | src/index.js | TeamWertarbyte/material-ui-share | 035db0f028ebed6140b87f3bd1e5e4eb1d134c92 | [
"MIT"
] | 5 | 2017-11-29T17:34:44.000Z | 2021-11-10T14:43:26.000Z | src/index.js | TeamWertarbyte/material-ui-share | 035db0f028ebed6140b87f3bd1e5e4eb1d134c92 | [
"MIT"
] | null | null | null | src/index.js | TeamWertarbyte/material-ui-share | 035db0f028ebed6140b87f3bd1e5e4eb1d134c92 | [
"MIT"
] | null | null | null | export { default } from './components/Share'
| 22.5 | 44 | 0.711111 |
387110d23c4ac5baeb50989bf3fdf00470f219f4 | 1,755 | js | JavaScript | src/components/layout/MainAsideMenuContent.js | HuangYongXuan/vue-admin-template | 1a7e10809019e81411caa0cafcae73ffd5b73374 | [
"MIT"
] | null | null | null | src/components/layout/MainAsideMenuContent.js | HuangYongXuan/vue-admin-template | 1a7e10809019e81411caa0cafcae73ffd5b73374 | [
"MIT"
] | null | null | null | src/components/layout/MainAsideMenuContent.js | HuangYongXuan/vue-admin-template | 1a7e10809019e81411caa0cafcae73ffd5b73374 | [
"MIT"
] | null | null | null | /**
* @module 侧边菜单
* @author nayo
* @date 2020/8/3 3:41 下午
* @version 1.0
*/
import {Menu, Submenu, MenuItem} from 'element-ui';
export default {
name: 'MainAsideMenuContent',
props: {
collapsed: {
type: Boolean,
required: false,
default: false
},
menus: {
type: Array,
def... | 19.285714 | 110 | 0.57037 |
38732e78e3f7dd766fadb836f85eee53734c8be9 | 50 | js | JavaScript | src/hooks/services/index.js | fernandocamargo/amah | e69cdb0473f54bb3577a7f0cd2dbce49af9b8fe7 | [
"Apache-2.0"
] | null | null | null | src/hooks/services/index.js | fernandocamargo/amah | e69cdb0473f54bb3577a7f0cd2dbce49af9b8fe7 | [
"Apache-2.0"
] | null | null | null | src/hooks/services/index.js | fernandocamargo/amah | e69cdb0473f54bb3577a7f0cd2dbce49af9b8fe7 | [
"Apache-2.0"
] | null | null | null | export { default as useGetAll } from './get-all';
| 25 | 49 | 0.68 |
387493e7b5f0a8e81a047e85b82cca8fee48c506 | 378 | js | JavaScript | src/error_handling/jSQL_Parse_Error.js | Pamblam/jSQL | 507ef210e339fdb8f820b26412e2173aa8c19d82 | [
"Apache-2.0"
] | 89 | 2016-10-17T20:37:13.000Z | 2022-02-22T22:29:46.000Z | src/error_handling/jSQL_Parse_Error.js | Pamblam/jSQL | 507ef210e339fdb8f820b26412e2173aa8c19d82 | [
"Apache-2.0"
] | 14 | 2016-12-29T06:42:50.000Z | 2019-10-07T10:51:20.000Z | src/error_handling/jSQL_Parse_Error.js | Pamblam/jSQL | 507ef210e339fdb8f820b26412e2173aa8c19d82 | [
"Apache-2.0"
] | 10 | 2017-03-16T15:02:32.000Z | 2022-02-22T22:29:48.000Z |
function jSQL_Parse_Error(tok, exp) {
this.error = "0071";
this.message = "Unexpected "+tok.type+" ("+tok.name+") at character "+tok.input_pos+".";
if(exp) this.message += " Expected "+exp+".";
this.stack = undefined;
var e = new Error();
if(e.stack) this.stack = e.stack;
this.toString = function () {
return ... | 29.076923 | 89 | 0.637566 |
3874cce7d08e27b4f45304d064c423463f647057 | 189 | js | JavaScript | Code/js/app.js | StepanRysavy/grunt-deployer | 361189ccb658123a22f6246aee2083689337fb9d | [
"MIT"
] | null | null | null | Code/js/app.js | StepanRysavy/grunt-deployer | 361189ccb658123a22f6246aee2083689337fb9d | [
"MIT"
] | null | null | null | Code/js/app.js | StepanRysavy/grunt-deployer | 361189ccb658123a22f6246aee2083689337fb9d | [
"MIT"
] | null | null | null | (function (window, app, data) {
'use strict';
var myFT = new FT();
var container = FT.query("#container");
myFT.applyClickTag(container, 1);
})(window, window.app, window.data);
| 18.9 | 40 | 0.645503 |
3876aa2f5cbc839453f05aec1abb88a9ceae4f83 | 4,227 | js | JavaScript | src/components/layout/Footer.js | ex8/leftovers | 88e05737a695a8f3fdd7e0316dc24883f2426a13 | [
"MIT"
] | null | null | null | src/components/layout/Footer.js | ex8/leftovers | 88e05737a695a8f3fdd7e0316dc24883f2426a13 | [
"MIT"
] | null | null | null | src/components/layout/Footer.js | ex8/leftovers | 88e05737a695a8f3fdd7e0316dc24883f2426a13 | [
"MIT"
] | null | null | null | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Typography, Grid, List, ListItem, ListItemIcon, ListItemText } from '@material-ui/core';
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faHome, faTachometerAlt,... | 32.267176 | 162 | 0.475278 |
3876e984d3c870fc2aadb7d983c23b26b1ffa5f0 | 149 | js | JavaScript | src/State.js | joonhocho/scenario | 0e0eebb87d81b904483beca847b5cb0133525d32 | [
"MIT"
] | null | null | null | src/State.js | joonhocho/scenario | 0e0eebb87d81b904483beca847b5cb0133525d32 | [
"MIT"
] | null | null | null | src/State.js | joonhocho/scenario | 0e0eebb87d81b904483beca847b5cb0133525d32 | [
"MIT"
] | null | null | null | export default class State {
getErrors() {
const errors = [];
return errors;
}
isValid() {
return !this.getErrors().length;
}
}
| 13.545455 | 36 | 0.583893 |
387720e03417bc166cdffa91925f925c6148f9c0 | 3,413 | js | JavaScript | src/components/Editor/Editor.js | souravrax/codeeditor-Deprecated | f984b04290229ece8fe3ed19bdb1a21612a12d36 | [
"MIT"
] | 1 | 2020-08-05T18:21:51.000Z | 2020-08-05T18:21:51.000Z | src/components/Editor/Editor.js | souravrax/codeeditor | f984b04290229ece8fe3ed19bdb1a21612a12d36 | [
"MIT"
] | 3 | 2022-02-13T20:53:43.000Z | 2022-02-27T10:40:08.000Z | src/components/Editor/Editor.js | souravrax/codeeditor-Deprecated | f984b04290229ece8fe3ed19bdb1a21612a12d36 | [
"MIT"
] | null | null | null | import React, { Component } from "react";
import MonacoEditor from "react-monaco-editor";
import ReactResizeDetector from 'react-resize-detector'
import Starter from '../../lang/LanguageSkeletons'
import { MetroSpinner as Loader } from 'react-spinners-kit'
import PropTypes from 'prop-types'
const LOADING_TIME = 2000... | 28.680672 | 66 | 0.445942 |
38782390dabfe9b8df6cb4fb942e7f9e4f722186 | 2,617 | js | JavaScript | test/test.js | XingXiaoWu/xinge-node-sdk | 9a2c30262df93a483cd56f3253b9b160660dc315 | [
"MIT"
] | null | null | null | test/test.js | XingXiaoWu/xinge-node-sdk | 9a2c30262df93a483cd56f3253b9b160660dc315 | [
"MIT"
] | null | null | null | test/test.js | XingXiaoWu/xinge-node-sdk | 9a2c30262df93a483cd56f3253b9b160660dc315 | [
"MIT"
] | null | null | null | const {
XingePush,
XingeUrls,
XingeAccount,
XingeAccountOperatorType,
XingeAccountType,
XingeActionType,
XingeAndroidAction,
XingeAndroidMessage,
XingeAndroidStyle,
XingeAudienceType,
XingeEnv,
XingeIOSMessage,
XingeMessageType,
XingeOpType,
XingePlatform,
XingeTag,
XingeTagOperation,
... | 19.385185 | 78 | 0.586549 |
387978493ad494211da3f26a1d9f89292ecfa670 | 658 | js | JavaScript | HttpServer/routes/api/user/getUser.js | yasintuncel/BTO-Server-Node | 3b06957b1639da92f9c2e2f76426e9060a38d8c8 | [
"MIT"
] | null | null | null | HttpServer/routes/api/user/getUser.js | yasintuncel/BTO-Server-Node | 3b06957b1639da92f9c2e2f76426e9060a38d8c8 | [
"MIT"
] | 34 | 2022-01-02T18:12:23.000Z | 2022-02-21T05:43:32.000Z | HttpServer/routes/api/user/getUser.js | yasintuncel/BTO-Server-Node | 3b06957b1639da92f9c2e2f76426e9060a38d8c8 | [
"MIT"
] | null | null | null | const { User } = require("common/database/models/user");
const getUser = async function (req, res) {
try {
const userId = req.userId;
let user = await User.findById(userId, '-__v').populate({
path: 'friends',
populate: {
path: 'user',
select: ... | 26.32 | 68 | 0.486322 |
387aaeb7726285d75e87cdc654c9bcc99bdd1e64 | 490 | js | JavaScript | lib/read.js | gr2m/fixtures | e5b7c8e273afe047d4ba0eae1308c2913c19c1e1 | [
"MIT"
] | 89 | 2017-09-29T03:52:49.000Z | 2021-12-04T09:41:21.000Z | lib/read.js | gr2m/fixtures | e5b7c8e273afe047d4ba0eae1308c2913c19c1e1 | [
"MIT"
] | 350 | 2017-09-30T01:00:02.000Z | 2022-02-11T22:03:21.000Z | lib/read.js | gr2m/fixtures | e5b7c8e273afe047d4ba0eae1308c2913c19c1e1 | [
"MIT"
] | 19 | 2017-09-30T19:39:07.000Z | 2021-11-23T23:04:50.000Z | export default read;
import { resolve, dirname } from "path";
import { fileURLToPath } from "url";
import { readFile } from "fs/promises";
async function read(fixturesPath) {
const path = resolve(
dirname(fileURLToPath(import.meta.url)),
"..",
"scenarios",
fixturesPath,
"normalized-fixture.json"... | 20.416667 | 45 | 0.632653 |
387c0921f5c049334d4b6cffb4be41f9eb112d15 | 193,568 | js | JavaScript | public/assets/original/common2.js | BerQin/webmain | 44e8bcbeb59e4a72340ee4cee70ea6306f95d679 | [
"Apache-2.0"
] | null | null | null | public/assets/original/common2.js | BerQin/webmain | 44e8bcbeb59e4a72340ee4cee70ea6306f95d679 | [
"Apache-2.0"
] | null | null | null | public/assets/original/common2.js | BerQin/webmain | 44e8bcbeb59e4a72340ee4cee70ea6306f95d679 | [
"Apache-2.0"
] | null | null | null | /*!
* imagesLoaded PACKAGED v4.1.1
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/
!function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b()}("undefined"!=typeof window?window:this,fu... | 3,122.064516 | 7,738 | 0.683522 |
387df6d4b99674a41894b9a2408dec454eba080c | 2,527 | js | JavaScript | webpack.config.js | kennyan/riot-spa-sample | 9c37ef60a8242e21701e17a2aae5772991888efb | [
"MIT"
] | null | null | null | webpack.config.js | kennyan/riot-spa-sample | 9c37ef60a8242e21701e17a2aae5772991888efb | [
"MIT"
] | null | null | null | webpack.config.js | kennyan/riot-spa-sample | 9c37ef60a8242e21701e17a2aae5772991888efb | [
"MIT"
] | null | null | null | var webpack = require('webpack');
// postcss plugins
var cssimport = require('postcss-import');
var customProperties = require('postcss-custom-properties');
var autoprefixer = require('autoprefixer');
var csswring = require('csswring');
var cssnested = require('postcss-nested');
// strip plugins
var webpackStrip = re... | 26.882979 | 124 | 0.583696 |
387e5431195da6c4889128e79373ac2355bb4786 | 6,017 | js | JavaScript | src/ui/popup.js | MrFusiion/MapGenieProUnlock | a75601f048c075fa12a6860c211927c951181a3e | [
"MIT"
] | null | null | null | src/ui/popup.js | MrFusiion/MapGenieProUnlock | a75601f048c075fa12a6860c211927c951181a3e | [
"MIT"
] | null | null | null | src/ui/popup.js | MrFusiion/MapGenieProUnlock | a75601f048c075fa12a6860c211927c951181a3e | [
"MIT"
] | null | null | null | function send(action, data, options={ all: false }) {
let queryOptions = options.all && {} || { active: true, currentWindow: true };
return new Promise((resolve, reject) => {
chrome.tabs.query(queryOptions, tabs => {
Promise.all(tabs.map(tab => {
return new Promise((resolve, ... | 32.349462 | 99 | 0.483464 |
387e8c4621170c576a847525cf76133a4e472b92 | 935 | js | JavaScript | js/firstWord.js | myConsciousness/CheckIO | fb5336a5d0e1d7c5c6ecc4bba25805547425afe7 | [
"Apache-2.0"
] | 2 | 2020-09-14T16:02:54.000Z | 2022-01-24T19:55:05.000Z | js/firstWord.js | myConsciousness/checkio-history | fb5336a5d0e1d7c5c6ecc4bba25805547425afe7 | [
"Apache-2.0"
] | null | null | null | js/firstWord.js | myConsciousness/checkio-history | fb5336a5d0e1d7c5c6ecc4bba25805547425afe7 | [
"Apache-2.0"
] | null | null | null | "use strict";
/**
* You are given a string where you have to find its first word.
* This is a simplified version of the First Word mission.
*
* Input string consists of only english letters and spaces.
* There aren’t any spaces at the beginning and the end of the string.
*
* Input: A string.
* Output: A stri... | 29.21875 | 72 | 0.662032 |
3880890bba267a81c300a5c7be881d2ba7f9283f | 3,397 | js | JavaScript | dist/index.js | xiaotiandada/issues | ceeea3e1d41fc4e740eda2eb2016a0c60dd6cd3b | [
"MIT"
] | null | null | null | dist/index.js | xiaotiandada/issues | ceeea3e1d41fc4e740eda2eb2016a0c60dd6cd3b | [
"MIT"
] | null | null | null | dist/index.js | xiaotiandada/issues | ceeea3e1d41fc4e740eda2eb2016a0c60dd6cd3b | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const rest_1 = require("@octokit/rest");
// https://docs.github.com/en/rest/reference/issues#list-repository-issues
// https://octokit.github.io/rest.js/v18
const octokit = new rest_1.Octokit({
auth: process.env.TOKEN
});
const owner = 'xi... | 25.931298 | 103 | 0.473359 |
38818c1e2e1e75ccc214a7863e8979376a6ee3c5 | 2,573 | js | JavaScript | webpack/loaders.js | douglascvas/biblicando-frontend | 65dc1127f8a1ae2bbb826f1644b6b4fe3cc9d8c3 | [
"Apache-2.0"
] | null | null | null | webpack/loaders.js | douglascvas/biblicando-frontend | 65dc1127f8a1ae2bbb826f1644b6b4fe3cc9d8c3 | [
"Apache-2.0"
] | null | null | null | webpack/loaders.js | douglascvas/biblicando-frontend | 65dc1127f8a1ae2bbb826f1644b6b4fe3cc9d8c3 | [
"Apache-2.0"
] | null | null | null | const path = require('path');
const autoPrefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const paths = require('../paths');
function getBaseCssRules(options) {
return [
{
loader: 'css-loader',
options: {
camelCase: true,
sourceMap: ... | 21.991453 | 119 | 0.582588 |
3882251f464c43d17dc50c795eb059afb0b2f7e0 | 932 | js | JavaScript | src/router/index.js | maczyt/vue-component | e66c245c0d5481d84f879342067478350a58510e | [
"MIT"
] | null | null | null | src/router/index.js | maczyt/vue-component | e66c245c0d5481d84f879342067478350a58510e | [
"MIT"
] | null | null | null | src/router/index.js | maczyt/vue-component | e66c245c0d5481d84f879342067478350a58510e | [
"MIT"
] | null | null | null | import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
import ColorPicker from "@/components/color-picker";
import TagCloud from "@/components/tag-cloud";
import AutoMatting from "@/components/auto-matting";
import Snake from "@/components/snake";
import Vague from "@/... | 20.26087 | 52 | 0.582618 |
3883680de2eaee15c069bf18dbd1948c666c5d6a | 4,416 | js | JavaScript | tests/unit/delete-confirmation.spec.js | Andrsrz/tyrats | 87839d90b878fcba3bf2ff8ccb12d758aadf1474 | [
"MIT"
] | 5 | 2020-08-20T23:29:44.000Z | 2020-10-29T01:43:02.000Z | tests/unit/delete-confirmation.spec.js | Andrsrz/tyrats | 87839d90b878fcba3bf2ff8ccb12d758aadf1474 | [
"MIT"
] | 49 | 2021-03-08T00:55:30.000Z | 2021-10-30T20:27:43.000Z | tests/unit/delete-confirmation.spec.js | Andrsrz/tyrats | 87839d90b878fcba3bf2ff8ccb12d758aadf1474 | [
"MIT"
] | 1 | 2020-10-29T01:43:07.000Z | 2020-10-29T01:43:07.000Z | import { shallowMount, createLocalVue } from '@vue/test-utils'
import store from '@/store'
import Buefy from 'buefy'
import DeleteConfirmation from '@/components/DeleteConfirmation.vue'
const localVue = createLocalVue()
localVue.use(Buefy)
/* Dummy User */
store.state.user = {
_id: '',
username: '',
type: {},
tok... | 32.711111 | 97 | 0.712183 |
38839392824875de96c787ef228af412c2976fa0 | 781 | js | JavaScript | js/main.js | T-Masaaki/sandbox-twilio | e32cdf242485662b08b85ff909d523b95fa31934 | [
"MIT"
] | null | null | null | js/main.js | T-Masaaki/sandbox-twilio | e32cdf242485662b08b85ff909d523b95fa31934 | [
"MIT"
] | null | null | null | js/main.js | T-Masaaki/sandbox-twilio | e32cdf242485662b08b85ff909d523b95fa31934 | [
"MIT"
] | null | null | null | import TwillioVideo from 'twilio-video'
document.getElementById("connect").onclick = (() => {
const startAt = new Date()
console.debug(startAt.toISOString())
const accessToken = "YOUR_ACCESS_TOKEN"
TwillioVideo.connect(accessToken).then(room => {
const connectedAt = new Date()
console.debug(connectedAt... | 30.038462 | 68 | 0.668374 |
38848f877ac529be118bef12189ec923c31908eb | 364 | js | JavaScript | WebContent/js/portal/myblog.js | liuenci/blog | ab42c45b05a71b105d7c5755ec56301dab46e4dd | [
"Apache-2.0"
] | 2 | 2019-01-08T14:05:14.000Z | 2019-11-18T09:39:48.000Z | WebContent/js/portal/myblog.js | liuenci/blog | ab42c45b05a71b105d7c5755ec56301dab46e4dd | [
"Apache-2.0"
] | null | null | null | WebContent/js/portal/myblog.js | liuenci/blog | ab42c45b05a71b105d7c5755ec56301dab46e4dd | [
"Apache-2.0"
] | 1 | 2019-11-22T15:32:25.000Z | 2019-11-22T15:32:25.000Z | $(function(){
$.ajax({
type:"post",
url:"judge-login",
success:function(e){
if(e=="yes"){
$("#btn-login").text("个人中心");
$("#btn-login").attr("href","usercenter/main");
$("#btn-register").text("");
}
}
})
$(".title").click(function(){
var id = $(this).find("input").val();
window.location... | 21.411765 | 54 | 0.538462 |
388680837e19c51823cda603660db1e9f8ca945e | 839 | js | JavaScript | packages/wizzi-starter-nextjs/app/layouts/DefaultLayout/index.js | stfnbssl/wizzi-examples | 6817c499a67ea75bccac793e87968cbb1ba1752c | [
"MIT"
] | null | null | null | packages/wizzi-starter-nextjs/app/layouts/DefaultLayout/index.js | stfnbssl/wizzi-examples | 6817c499a67ea75bccac793e87968cbb1ba1752c | [
"MIT"
] | 19 | 2021-03-09T08:47:41.000Z | 2022-02-27T06:26:11.000Z | packages/wizzi-starter-nextjs/app/layouts/DefaultLayout/index.js | stfnbssl/wizzi-examples | 6817c499a67ea75bccac793e87968cbb1ba1752c | [
"MIT"
] | 1 | 2020-12-26T14:36:17.000Z | 2020-12-26T14:36:17.000Z | /*
artifact generator: C:\My\wizzi\wizzi-examples\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js
primary source IttfDocument: C:\My\wizzi\wizzi-examples\packages\wizzi-starter-nextjs\.wizzi\src\layouts\DefaultLayout\index.js.ittf
*/
'use strict';
import React from 'react';
import PropTypes from 'prop... | 27.966667 | 136 | 0.539928 |
38870a8bf2f3a84de859732ddb4826610d0ee9a9 | 13,941 | js | JavaScript | docs/dist/assets/js/15.4a011673.js | bitkeepwallet/docs | c9dabb495d3b855590ffca43ed123b95078afcd7 | [
"MIT"
] | null | null | null | docs/dist/assets/js/15.4a011673.js | bitkeepwallet/docs | c9dabb495d3b855590ffca43ed123b95078afcd7 | [
"MIT"
] | null | null | null | docs/dist/assets/js/15.4a011673.js | bitkeepwallet/docs | c9dabb495d3b855590ffca43ed123b95078afcd7 | [
"MIT"
] | null | null | null | (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{401:function(t,a,s){"use strict";s.r(a);var n=s(29),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"connect-wallet"}},[s("a",{staticClass:"he... | 13,941 | 13,941 | 0.605552 |
388b25617d51b88583a15166e62be3cab5eb0d7f | 950 | js | JavaScript | src/pages/home.js | Aric-sky/ReactNtive | db46219edadb76732c52beed7511e39f8a55bea3 | [
"MIT"
] | null | null | null | src/pages/home.js | Aric-sky/ReactNtive | db46219edadb76732c52beed7511e39f8a55bea3 | [
"MIT"
] | null | null | null | src/pages/home.js | Aric-sky/ReactNtive | db46219edadb76732c52beed7511e39f8a55bea3 | [
"MIT"
] | null | null | null |
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Alert,
Image,
ScrollView
} from 'react-native';
import Head from '../componets/head'
import Lucker from '../componets/lucker'
import Infos from '../componets/infos'
import Resolution from "../../Resol... | 17.272727 | 46 | 0.534737 |
388b613daee41e4bf853398b43650dbdff798659 | 788 | js | JavaScript | examples/js/main.js | fdaciuk/symmetric | 12c416f4dcbdcc89892a5ff63dfc7f029b01691c | [
"MIT"
] | null | null | null | examples/js/main.js | fdaciuk/symmetric | 12c416f4dcbdcc89892a5ff63dfc7f029b01691c | [
"MIT"
] | null | null | null | examples/js/main.js | fdaciuk/symmetric | 12c416f4dcbdcc89892a5ff63dfc7f029b01691c | [
"MIT"
] | null | null | null | ;(function (window, undefined) {
'use strict';
window.APP = window.APP || {};
APP.init = function() {
var el = document.querySelector('.active-btn'),
symmetric = document.querySelector('[data-symmetric]'),
_active = false;
el.addEventListener('click', function() {
if(_a... | 23.176471 | 63 | 0.582487 |
388b9758f29eca8830d83ed0baaa656a82463f7b | 848 | js | JavaScript | src/sceneScroll.js | Quadramming/UnicodeMovies | 287d1ae982a128d8d50c5b9f95e10f3abc5c0cfb | [
"Unlicense"
] | null | null | null | src/sceneScroll.js | Quadramming/UnicodeMovies | 287d1ae982a128d8d50c5b9f95e10f3abc5c0cfb | [
"Unlicense"
] | null | null | null | src/sceneScroll.js | Quadramming/UnicodeMovies | 287d1ae982a128d8d50c5b9f95e10f3abc5c0cfb | [
"Unlicense"
] | null | null | null | function clipCamera(camera, clip) {
if ( camera.scrollX > clip.right ) {
camera.scrollX = clip.right;
} else if ( camera.scrollX < clip.left ) {
camera.scrollX = clip.left;
}
if ( camera.scrollY > clip.top ) {
camera.scrollY = clip.top;
} else if ( camera.scrollY < clip.bottom ) {
camera.scrollY = clip.bo... | 20.682927 | 45 | 0.586085 |
388db035be070619021bc649afa12031f941ac9c | 264 | js | JavaScript | src/services/api.js | shoesthe6/react-native-projectPilot | aef212a7237f200b192111f696335f88b8908178 | [
"Apache-2.0"
] | null | null | null | src/services/api.js | shoesthe6/react-native-projectPilot | aef212a7237f200b192111f696335f88b8908178 | [
"Apache-2.0"
] | null | null | null | src/services/api.js | shoesthe6/react-native-projectPilot | aef212a7237f200b192111f696335f88b8908178 | [
"Apache-2.0"
] | null | null | null | import axios from 'axios'
const api =axios.create({
baseURL: 'https://research-api.passeidireto.com/File/Search?page=0&count=10&contentSize=140&highlightPreTag=%3Cstrong%3E&highlightPostTag=%3C%2Fstrong%3E&suggestQuery=false&order=1&q='
})
export default api | 37.714286 | 188 | 0.780303 |
388db2d48bc3dc53c5a2aa8916e173e3b9186a9c | 2,033 | js | JavaScript | documentation/vdt4/html/search/all_63.js | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2020-06-03T15:59:50.000Z | 2020-12-21T11:11:57.000Z | documentation/vdt4/html/search/all_63.js | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | null | null | null | documentation/vdt4/html/search/all_63.js | OSADP/Pikalert-Vehicle-Data-Translator- | 295da604408f6f13af0301b55476a81311459386 | [
"Apache-2.0"
] | 2 | 2019-10-02T06:47:23.000Z | 2020-02-02T18:32:23.000Z | var searchData=
[
['cfg_5ffile',['cfg_file',['../classarguments.html#a1e95c90120bcfa6a658ebfda2ce15528',1,'arguments']]],
['cfg_5freader',['cfg_reader',['../classqc__check.html#a2dc518630e9b78dcaee39e564f364ec1',1,'qc_check::cfg_reader()'],['../classvdt__probe__message__datasets.html#a740211e337999338f863bf58f9f4aa... | 119.588235 | 329 | 0.793901 |
388f54d9ec14a1c6f3ba213b24f0498864af0a02 | 804 | js | JavaScript | client/controllers/loginCtrl.js | imspartikus/example-app-mean-stack | f1f877f8fee41f8529d0f21e5a8ad5509d4cd7d8 | [
"Apache-2.0"
] | 1 | 2016-08-31T04:30:38.000Z | 2016-08-31T04:30:38.000Z | client/controllers/loginCtrl.js | imspartikus/example-app-mean-stack | f1f877f8fee41f8529d0f21e5a8ad5509d4cd7d8 | [
"Apache-2.0"
] | null | null | null | client/controllers/loginCtrl.js | imspartikus/example-app-mean-stack | f1f877f8fee41f8529d0f21e5a8ad5509d4cd7d8 | [
"Apache-2.0"
] | null | null | null | var loginCtrl = angular.module('loginCtrl', []);
loginCtrl.controller('loginCtrl', function($scope, $location, AuthService) {
$scope.login = function () {
// initial values
$scope.error = false;
$scope.disabled = true;
// call login from service
AuthService.login($scope.loginForm.u... | 26.8 | 77 | 0.523632 |
388f6fe1735b6b5e11cdbe30c3af8fa187fb836b | 1,559 | js | JavaScript | node/routes/views/ahu.js | Mayank250199/intern | 88cc993bddfc12be5069a7b03fe9c099d70c4ad5 | [
"MIT"
] | null | null | null | node/routes/views/ahu.js | Mayank250199/intern | 88cc993bddfc12be5069a7b03fe9c099d70c4ad5 | [
"MIT"
] | null | null | null | node/routes/views/ahu.js | Mayank250199/intern | 88cc993bddfc12be5069a7b03fe9c099d70c4ad5 | [
"MIT"
] | null | null | null | var keystone = require('keystone');
var AhuText = keystone.list('AhuText');
var AhuPics = keystone.list('AhuPics');
exports = module.exports = function (req, res) {
var view = new keystone.View(req, res);
var locals = res.locals;
// locals.section is used to set the currently selected
// item in the header navig... | 25.557377 | 63 | 0.620269 |
388f7e33e1a7ffa016dbd9f22848dfb5242f67da | 1,405 | js | JavaScript | components/src/components/tooltips/tooltip.stories.js | blemko/sdds | fde1498d0db6e8a46955cd15ef49447d796e44a0 | [
"MIT"
] | null | null | null | components/src/components/tooltips/tooltip.stories.js | blemko/sdds | fde1498d0db6e8a46955cd15ef49447d796e44a0 | [
"MIT"
] | null | null | null | components/src/components/tooltips/tooltip.stories.js | blemko/sdds | fde1498d0db6e8a46955cd15ef49447d796e44a0 | [
"MIT"
] | null | null | null | export default {
title: 'Component/Tooltip',
parameters: {
layout: 'centered',
},
argTypes: {
tooltipPosition: {
control: {
type: 'radio',
options: [
'bottom-start',
'bottom',
'bottom-end',
'top-start',
'top',
'top-end',
... | 25.089286 | 89 | 0.540925 |
388f7fb947d418d815c123eda72aba6fa884b8d5 | 128 | js | JavaScript | gui/node_modules/core-js/es/string/virtual/trim.js | AntoniosKalattas/Ping_rep | 7285f44b87bfbd37baa1524be1ac18521d18c54c | [
"BSL-1.0"
] | null | null | null | gui/node_modules/core-js/es/string/virtual/trim.js | AntoniosKalattas/Ping_rep | 7285f44b87bfbd37baa1524be1ac18521d18c54c | [
"BSL-1.0"
] | 1 | 2022-03-25T19:20:50.000Z | 2022-03-25T19:20:50.000Z | gui/node_modules/core-js/es/string/virtual/trim.js | AntoniosKalattas/Ping_rep | 7285f44b87bfbd37baa1524be1ac18521d18c54c | [
"BSL-1.0"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:fcd0980218b3cb20702f30574b2cbc345461b11f006eb9b859a7342b79604de5
size 155
| 32 | 75 | 0.882813 |
388fdf296c3f17e60c191fc564699304decd719d | 5,427 | js | JavaScript | lib/util.js | josh/nack | d523cc870c0a11dcf349388a15adfecba9314f97 | [
"MIT"
] | 21 | 2015-03-03T05:29:08.000Z | 2021-01-09T17:59:49.000Z | lib/util.js | RobinDaugherty/nack | d523cc870c0a11dcf349388a15adfecba9314f97 | [
"MIT"
] | 3 | 2015-03-22T01:26:14.000Z | 2017-10-06T18:17:02.000Z | lib/util.js | RobinDaugherty/nack | d523cc870c0a11dcf349388a15adfecba9314f97 | [
"MIT"
] | 3 | 2015-12-20T15:54:12.000Z | 2017-07-12T04:55:21.000Z | // Generated by CoffeeScript 1.6.2
(function() {
var LineBuffer, Stream, debug,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor... | 29.494565 | 292 | 0.569375 |
389059b6f745844976eabcecc2261fecf34a56ea | 1,043 | js | JavaScript | resources/js/components/Todo.js | Rushan221/laravel-react-todo | e1d67ee37a058e3fb2045c8af9d632ff6d9b4a6d | [
"MIT"
] | null | null | null | resources/js/components/Todo.js | Rushan221/laravel-react-todo | e1d67ee37a058e3fb2045c8af9d632ff6d9b4a6d | [
"MIT"
] | null | null | null | resources/js/components/Todo.js | Rushan221/laravel-react-todo | e1d67ee37a058e3fb2045c8af9d632ff6d9b4a6d | [
"MIT"
] | null | null | null | import React, { useContext } from "react";
import TodosContext from "./../context/todoContext";
export default function Todo({ todo }) {
const { dispatch } = useContext(TodosContext);
return (
<div className={`task ${todo.complete ? "reminder" : ""}`}>
<p>{todo.text}</p>
{/* <bu... | 28.972222 | 73 | 0.403643 |
3891524b786f8524c5d83b50a59254731eec9f7a | 3,752 | js | JavaScript | src/calcu/interpreter/mStatic/Relational.js | Calculingua/cali-app | 396ef552677e97d53195633b7b140233fc7223b8 | [
"BSD-2-Clause"
] | 1 | 2021-01-26T08:49:26.000Z | 2021-01-26T08:49:26.000Z | src/calcu/interpreter/mStatic/Relational.js | Calculingua/cali-app | 396ef552677e97d53195633b7b140233fc7223b8 | [
"BSD-2-Clause"
] | null | null | null | src/calcu/interpreter/mStatic/Relational.js | Calculingua/cali-app | 396ef552677e97d53195633b7b140233fc7223b8 | [
"BSD-2-Clause"
] | null | null | null | define([
"../../extend",
"../mExpression"
], function (extend, mExpression) {
function size(x) {
var nRows = 0;
var nCols = x[0].length;
if (nCols > 0) {
nRows = x.length;
}
return [
[nRows, nCols]
];
}
function Relational(_input, _pos, exp, operators) {
// super cla... | 27.188406 | 98 | 0.498401 |
3891e47ebed904639da23eed7d62e8cd874d5304 | 2,666 | js | JavaScript | assets/javascript/games.js | Farah33/Psychic_games | 7890bf206879d6fd1ca2710500946c49336021a6 | [
"MIT"
] | null | null | null | assets/javascript/games.js | Farah33/Psychic_games | 7890bf206879d6fd1ca2710500946c49336021a6 | [
"MIT"
] | null | null | null | assets/javascript/games.js | Farah33/Psychic_games | 7890bf206879d6fd1ca2710500946c49336021a6 | [
"MIT"
] | null | null | null | $(document).ready(function() {
var Random = Math.floor(Math.random() * 100 + 19)
$('#randomNumber').text(Random);
// Appending random number to the randomNumber id in the html doc
//
var num1 = Math.floor(Math.random() * 11 + 1)
var num2 = Math.floor(Math.random() * 11 + 1)
var num3 = Math.... | 28.978261 | 69 | 0.510503 |
3891e71aa362eb6d389be6790f91efd59fe5f183 | 842 | js | JavaScript | security/index.js | herberthenrique/aws-lambda-login | a8a3a932a7c394c5b4ce26bfcd43b0fe6e7547ac | [
"MIT"
] | null | null | null | security/index.js | herberthenrique/aws-lambda-login | a8a3a932a7c394c5b4ce26bfcd43b0fe6e7547ac | [
"MIT"
] | null | null | null | security/index.js | herberthenrique/aws-lambda-login | a8a3a932a7c394c5b4ce26bfcd43b0fe6e7547ac | [
"MIT"
] | null | null | null | 'use strict';
const config = require('../config');
const crypto = require('crypto');
function computeHash(password, salt, fn) {
// Bytesize
var len = config.byteSize;
var iterations = config.iterations;
if (3 == arguments.length) {
crypto.pbkdf2(password, salt, iterations, len, function(err, derivedKey) ... | 24.764706 | 80 | 0.631829 |
389292aaa744395a8cae09c786b8b508732c0a72 | 833 | js | JavaScript | LesionTracker/tests/nightwatch/unittests/foo.js | faustoespinal/Viewers | a232d8157894ef2b4e7a51fc8fc847fb122ce230 | [
"MIT"
] | 3 | 2020-04-13T22:01:32.000Z | 2021-05-23T13:07:43.000Z | LesionTracker/tests/nightwatch/unittests/foo.js | faustoespinal/Viewers | a232d8157894ef2b4e7a51fc8fc847fb122ce230 | [
"MIT"
] | 3 | 2018-05-31T14:04:04.000Z | 2018-06-21T16:31:06.000Z | LesionTracker/tests/nightwatch/unittests/foo.js | faustoespinal/Viewers | a232d8157894ef2b4e7a51fc8fc847fb122ce230 | [
"MIT"
] | 3 | 2019-07-09T13:37:39.000Z | 2022-02-11T01:35:58.000Z | //var Utils = require('lib/util/utils.js');
module.exports = {
testTrue: function(client){
client.assert.equal(true, true);
}
/*testFormatElapsedTime : function(client) {
var test = client.assert;
var resultMs = Utils.formatElapsedTime(999);
var resultSec = Utils.formatElapsedTime(1999);
var ... | 23.8 | 58 | 0.644658 |
38951f9158cecffd8ad422370ac172eb623307ff | 449 | js | JavaScript | libs/request-id/index.js | krajowski/hawaii.js | 4548c3433753640144f74576c9e0c54afdbce934 | [
"MIT"
] | 1 | 2019-10-01T19:36:10.000Z | 2019-10-01T19:36:10.000Z | libs/request-id/index.js | rkrayovskyy/hawaii.js | 4548c3433753640144f74576c9e0c54afdbce934 | [
"MIT"
] | 12 | 2021-03-01T20:37:12.000Z | 2022-02-26T14:19:49.000Z | libs/request-id/index.js | rkrayovskyy/hawaii.js | 4548c3433753640144f74576c9e0c54afdbce934 | [
"MIT"
] | null | null | null | /**
* @file Unique request id generation utility.
* Uses UUID V4 to generate unique IDs.
*/
const requestId = require('koa-req-id')
/**
* Generated unique ID for a session and sets it in a response header.
*
* @param {Object} ctx - Koa2 context object.
* @param {Function} next - Koa2 function to proceed to the ... | 28.0625 | 73 | 0.685969 |
3895b0955951112fdc22fa62058ba356170cf3ed | 1,782 | js | JavaScript | app/app.js | murceca/lanafox | 912807490529d69f771ed4cfb5b90b66b493b84c | [
"MIT"
] | 3 | 2018-11-29T07:02:51.000Z | 2021-12-06T12:52:13.000Z | app/app.js | murceca/lanafox | 912807490529d69f771ed4cfb5b90b66b493b84c | [
"MIT"
] | 10 | 2020-07-16T13:45:05.000Z | 2020-08-02T20:09:40.000Z | app/app.js | murceca/lanafox | 912807490529d69f771ed4cfb5b90b66b493b84c | [
"MIT"
] | null | null | null | const express = require('express');
const cookieParser = require('cookie-parser');
const logger = require('morgan');
const configs = require('./configs');
const handlebars = require('./handlebars');
const i18n = require('i18n');
const app = express();
// view engine setup
app.set('views', configs.VIEWS_ABS_PATH);
app.... | 27.84375 | 85 | 0.66835 |
38967dc585e3272aac48737dbcec89fb1b908d5b | 1,071 | js | JavaScript | public/backend/custom/sub_category.js | MehediHasanEmon21/jquery-ajax-2 | 6458cc36cd0bf46e3004c21130f16260354994af | [
"MIT"
] | null | null | null | public/backend/custom/sub_category.js | MehediHasanEmon21/jquery-ajax-2 | 6458cc36cd0bf46e3004c21130f16260354994af | [
"MIT"
] | 8 | 2020-04-12T07:09:46.000Z | 2022-02-19T00:00:44.000Z | public/backend/custom/sub_category.js | MehediHasanEmon21/jquery-ajax-2 | 6458cc36cd0bf46e3004c21130f16260354994af | [
"MIT"
] | null | null | null | $(document).ready(function(){
$('#addSubCategoryForm').parsley();
$('#addSubCategoryForm').on('submit',function(e){
e.preventDefault();
if ($('#addSubCategoryForm').parsley().isValid()) {
document.getElementById('addSubCategoryForm').submit();
}
});
$('#edit_sub_category').on('show.bs.modal'... | 22.787234 | 84 | 0.613445 |
38989f2304a95a78d65a65857533178f172383bd | 38 | js | JavaScript | packages/2027/01/07/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 7 | 2017-07-03T19:53:01.000Z | 2021-04-05T18:15:55.000Z | packages/2027/01/07/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 1 | 2018-09-05T11:53:41.000Z | 2018-12-16T12:36:21.000Z | packages/2027/01/07/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 2 | 2019-01-27T16:57:34.000Z | 2020-10-11T09:30:25.000Z | module.exports = new Date(2027, 0, 7)
| 19 | 37 | 0.684211 |
389998037831b7eb9e679bcff6444aa7a7a68125 | 454 | js | JavaScript | lib/rarity.js | chris-pikul/dndlib | 3316bb8a22d9f390b55c677f0f9074d459cc5829 | [
"MIT"
] | null | null | null | lib/rarity.js | chris-pikul/dndlib | 3316bb8a22d9f390b55c677f0f9074d459cc5829 | [
"MIT"
] | null | null | null | lib/rarity.js | chris-pikul/dndlib | 3316bb8a22d9f390b55c677f0f9074d459cc5829 | [
"MIT"
] | null | null | null | import { enumHas } from './utils';
/**
* Describes the rarity of an item.
*/
export var Rarity;
(function (Rarity) {
Rarity["COMMON"] = "COMMON";
Rarity["UNCOMMON"] = "UNCOMMON";
Rarity["RARE"] = "RARE";
Rarity["VERY_RARE"] = "VERY_RARE";
Rarity["LEGENDARY"] = "LEGENDARY";
Rarity["ARTIFACT"] =... | 28.375 | 55 | 0.614537 |
389aaa08d1374de8eb2c2571ff538bf403f895bd | 435 | js | JavaScript | test/util/memory-store.js | wvffle/home.wvffle.net | fc1d0992bdb96ca7cd1bbab272105c0086644721 | [
"MIT"
] | 2 | 2020-06-18T07:52:33.000Z | 2020-08-17T10:25:25.000Z | test/util/memory-store.js | wvffle/home.wvffle.net | fc1d0992bdb96ca7cd1bbab272105c0086644721 | [
"MIT"
] | 7 | 2020-06-10T02:52:17.000Z | 2021-05-09T13:50:17.000Z | test/util/memory-store.js | wvffle/home.wvffle.net | fc1d0992bdb96ca7cd1bbab272105c0086644721 | [
"MIT"
] | null | null | null | import { Store } from '/index.js'
/**
* Just a regular Store with localStorage support removed
* to avoid collisions with normal app
*/
export class MemoryStore extends Store {
_get (target, prop) {
if (prop[0] === '$') {
return target[prop]
}
if (prop in this.$cache) {
return this.$cache... | 17.4 | 57 | 0.606897 |
389b24fb65a1c1ba41d5b32bc2b620f002369244 | 648 | js | JavaScript | src/test/components/FrequencyDistribution.test.js | lidimayra/descriptive-statistics | 1de3bd7661308ce7cfbe6a13f33db87fd1bc6035 | [
"MIT"
] | null | null | null | src/test/components/FrequencyDistribution.test.js | lidimayra/descriptive-statistics | 1de3bd7661308ce7cfbe6a13f33db87fd1bc6035 | [
"MIT"
] | null | null | null | src/test/components/FrequencyDistribution.test.js | lidimayra/descriptive-statistics | 1de3bd7661308ce7cfbe6a13f33db87fd1bc6035 | [
"MIT"
] | null | null | null | import React from 'react';
import {IntlProvider} from "react-intl";
import { render, screen } from '@testing-library/react';
import FrequencyDistribution from '../../components/FrequencyDistribution';
import locale_en_us from '../../resources/en_US.json'
test('when rendering frequencies', () => {
let data;
render... | 28.173913 | 75 | 0.658951 |
389b9a22023722357dc9a8b8ad640b50c35accd3 | 1,918 | js | JavaScript | Commands/Information/commands.js | PHANTOM-14/Snowflake-bot | 01582d7f1cb654c4bf18ac7527680754a3ebee69 | [
"Apache-2.0"
] | 4 | 2021-01-15T03:18:03.000Z | 2021-06-09T08:28:40.000Z | Commands/Information/commands.js | PHANTOM-14/Snowflake-bot | 01582d7f1cb654c4bf18ac7527680754a3ebee69 | [
"Apache-2.0"
] | 2 | 2021-05-07T01:19:24.000Z | 2021-06-11T11:25:50.000Z | Commands/Information/commands.js | Phantom-codes/Snowflake-bot | 01582d7f1cb654c4bf18ac7527680754a3ebee69 | [
"Apache-2.0"
] | 1 | 2022-02-24T04:59:40.000Z | 2022-02-24T04:59:40.000Z | const { prefix } = require('../../config.json');
const { MessageEmbed } = require('discord.js');
module.exports = {
name: 'commands',
description: 'List all of my commands or info about a specific command.',
aliases: ['command'],
usage: '[command name]',
cooldown: 5,
execute(message, args) {
const data = [];
... | 31.442623 | 183 | 0.62513 |
389f68d185456b5aad80474dcbe5ea552ce2e4e1 | 348 | js | JavaScript | src/js/sketchbook/Controls.js | sloothes/sketchbook | 303e07b358128e3ac42fc7b7e2ca10d631a77665 | [
"MIT"
] | 2 | 2019-02-12T18:11:43.000Z | 2019-03-13T13:34:45.000Z | src/js/sketchbook/Controls.js | sloothes/sketchbook | 303e07b358128e3ac42fc7b7e2ca10d631a77665 | [
"MIT"
] | 1 | 2020-06-01T19:27:29.000Z | 2020-06-01T19:27:29.000Z | src/js/sketchbook/Controls.js | sloothes/sketchbook | 303e07b358128e3ac42fc7b7e2ca10d631a77665 | [
"MIT"
] | 1 | 2020-06-02T05:33:49.000Z | 2020-06-02T05:33:49.000Z | class EventControl
{
constructor()
{
this.value = false;
this.justPressed = false;
this.justReleased = false;
}
}
class LerpControl
{
constructor()
{
this.value = false;
this.floatValue = 0;
}
}
export let Controls = {
EventControl: EventControl,
... | 15.130435 | 34 | 0.58046 |
38a00427eea1f48122e75587141ef72d7918616f | 767 | js | JavaScript | app/javascript/dashboard/routes/dashboard/settings/settings.routes.js | duduribeiro/chatwoot | 96f8070e79bd5609ebdb437f66928af499fef033 | [
"MIT"
] | 1 | 2019-11-19T03:37:58.000Z | 2019-11-19T03:37:58.000Z | app/javascript/dashboard/routes/dashboard/settings/settings.routes.js | duduribeiro/chatwoot | 96f8070e79bd5609ebdb437f66928af499fef033 | [
"MIT"
] | 15 | 2020-05-22T16:34:46.000Z | 2022-03-31T00:20:46.000Z | app/javascript/dashboard/routes/dashboard/settings/settings.routes.js | duduribeiro/chatwoot | 96f8070e79bd5609ebdb437f66928af499fef033 | [
"MIT"
] | null | null | null | import agent from './agents/agent.routes';
import inbox from './inbox/inbox.routes';
import canned from './canned/canned.routes';
import reports from './reports/reports.routes';
import billing from './billing/billing.routes';
import Auth from '../../../api/auth';
import { frontendURL } from '../../../helper/URLHelper';... | 26.448276 | 56 | 0.601043 |
38a0116639f666ab5aafa56863d5ee8890c4929a | 3,920 | js | JavaScript | server/services/common.js | beyowi/strapi-plugin-content-moderation | 72dc14278add332a326a4c2f74b0101a0f7c8f04 | [
"MIT"
] | null | null | null | server/services/common.js | beyowi/strapi-plugin-content-moderation | 72dc14278add332a326a4c2f74b0101a0f7c8f04 | [
"MIT"
] | null | null | null | server/services/common.js | beyowi/strapi-plugin-content-moderation | 72dc14278add332a326a4c2f74b0101a0f7c8f04 | [
"MIT"
] | null | null | null | 'use strict';
const { first, isArray, isNil } = require('lodash');
const { getService } = require('../utils');
const { MODERATION_STATUS } = require('../utils/constants');
const approvedContentTemplate = require('../config/email-templates/approved-content');
const approvedUserTemplate = require('../config/email-temp... | 31.111111 | 88 | 0.592602 |
38a06f5ddc128221d764d8883c3959e747a64f0c | 1,072 | js | JavaScript | frontend/components/App.js | Mentor-Matching/App | 495cccc2d6c1234131fccfd1893212a088a4a394 | [
"BSD-3-Clause"
] | null | null | null | frontend/components/App.js | Mentor-Matching/App | 495cccc2d6c1234131fccfd1893212a088a4a394 | [
"BSD-3-Clause"
] | null | null | null | frontend/components/App.js | Mentor-Matching/App | 495cccc2d6c1234131fccfd1893212a088a4a394 | [
"BSD-3-Clause"
] | null | null | null | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import PageNotFound from './pages/PageNotFound';
import Home from './pages/Home';
import SignUp from './pages/SignUp';
import RegisterSchool from './pages/RegisterSchool';
import MenteeProfile f... | 36.965517 | 77 | 0.673507 |
38a126f93ea74fb031ab87ae80ceb24e5ba2b195 | 1,503 | js | JavaScript | AssassinGo-Front-End/src/router/index.js | NhokCrazy199/AssassinGo | 4a2cef99550103a87026da479618ac902b4aa3c0 | [
"MIT"
] | 1 | 2020-07-15T07:18:23.000Z | 2020-07-15T07:18:23.000Z | AssassinGo-Front-End/src/router/index.js | NhokCrazy199/AssassinGo | 4a2cef99550103a87026da479618ac902b4aa3c0 | [
"MIT"
] | null | null | null | AssassinGo-Front-End/src/router/index.js | NhokCrazy199/AssassinGo | 4a2cef99550103a87026da479618ac902b4aa3c0 | [
"MIT"
] | 3 | 2019-05-14T10:08:35.000Z | 2019-09-19T21:07:03.000Z | import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home'
import recon from '@/pages/recon'
import attack from '@/pages/attack'
import seek from '@/pages/seek'
import assassinate from '@/pages/assassinate'
import login from '@/pages/login'
Vue.use(Router)
const route = new Router({
route... | 20.875 | 78 | 0.541583 |
38a16592dd454927b819d3e176f89ea3f7ea4fd3 | 197 | js | JavaScript | src/reducers/reducer_active_post.js | Paaplo/ReactExpress | b27bc3e7d0b5672f760d21aec67e04dfb3c41930 | [
"MIT"
] | null | null | null | src/reducers/reducer_active_post.js | Paaplo/ReactExpress | b27bc3e7d0b5672f760d21aec67e04dfb3c41930 | [
"MIT"
] | null | null | null | src/reducers/reducer_active_post.js | Paaplo/ReactExpress | b27bc3e7d0b5672f760d21aec67e04dfb3c41930 | [
"MIT"
] | null | null | null | 'use strict';
import {POST_SELECTED} from '../constants';
export default function (state = null, action) {
switch (action.type){
case POST_SELECTED:
return action.payload;
}
return state;
} | 19.7 | 48 | 0.71066 |
38a1f651bc633c1c07114fee262262c45075935c | 1,122 | js | JavaScript | models/officeNeighborScheduleRequestDay.js | angelagongli/TheSixFootOffice | c334dadb75df6a75db98d44de89806896f731c45 | [
"MIT"
] | null | null | null | models/officeNeighborScheduleRequestDay.js | angelagongli/TheSixFootOffice | c334dadb75df6a75db98d44de89806896f731c45 | [
"MIT"
] | null | null | null | models/officeNeighborScheduleRequestDay.js | angelagongli/TheSixFootOffice | c334dadb75df6a75db98d44de89806896f731c45 | [
"MIT"
] | null | null | null | module.exports = function(sequelize, DataTypes) {
const today = new Date();
const OfficeNeighborScheduleRequestDay = sequelize.define("OfficeNeighborScheduleRequestDay", {
date: {
type: DataTypes.DATEONLY,
allowNull: false,
defaultValue: today
},
inOf... | 30.324324 | 99 | 0.573975 |
38a4fc58c809697b69e6cbcae6d70dd6724d1cdf | 280 | js | JavaScript | examples/nextjs/next.config.js | anudit/convosdk | 38f5175760ccdad1b4f96a9cae8e68f4b67a45e3 | [
"MIT"
] | 2 | 2021-09-26T15:28:14.000Z | 2022-02-20T08:58:45.000Z | examples/nextjs/next.config.js | anudit/convosdk | 38f5175760ccdad1b4f96a9cae8e68f4b67a45e3 | [
"MIT"
] | 4 | 2021-09-27T05:24:54.000Z | 2022-01-29T08:28:27.000Z | examples/nextjs/next.config.js | anudit/convosdk | 38f5175760ccdad1b4f96a9cae8e68f4b67a45e3 | [
"MIT"
] | 1 | 2021-09-25T15:03:35.000Z | 2021-09-25T15:03:35.000Z | module.exports = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ['theconvo.space'],
},
webpack: (config) => {
config.resolve.fallback = {
fs: false,
path: false,
buffer: false,
process: false
};
return config;
}
}
| 16.470588 | 32 | 0.557143 |
38a5b43c612ba14806540bcd08dcb385c88eca97 | 616 | js | JavaScript | Enjin Test Project/Assets/Enjin/Enjin SDK/Docs/SDKDocs/doxygen/search/enumvalues_5.js | harnestroysantiago/Enjin-Unity-sample | 404494dd327f97114e9c68d275e988ae9871bed6 | [
"MIT"
] | 1 | 2022-01-31T10:15:05.000Z | 2022-01-31T10:15:05.000Z | Enjin Test Project/Assets/Enjin/Enjin SDK/Docs/SDKDocs/doxygen/search/enumvalues_5.js | harnestroysantiago/Enjin-Unity-sample | 404494dd327f97114e9c68d275e988ae9871bed6 | [
"MIT"
] | null | null | null | Enjin Test Project/Assets/Enjin/Enjin SDK/Docs/SDKDocs/doxygen/search/enumvalues_5.js | harnestroysantiago/Enjin-Unity-sample | 404494dd327f97114e9c68d275e988ae9871bed6 | [
"MIT"
] | 1 | 2022-01-31T18:41:14.000Z | 2022-01-31T18:41:14.000Z | var searchData=
[
['failed',['Failed',['../namespace_pusher_client.html#afa9abeb02ad6370688f1ec402322ea8ead7c8c85bf79bbe1b7188497c32c3b0ca',1,'PusherClient']]],
['failure',['FAILURE',['../namespace_enjin_editor_panel.html#a6b76b173c765fd7ab263ad8908a1d0e0a36fc6065a3e970bc3e6b2e59da52bf2a',1,'EnjinEditorPanel']]],
... | 77 | 156 | 0.813312 |
38a6761a4ec838f99d916f437dc69fb7ce936203 | 1,241 | js | JavaScript | src/controllers/usersController.js | levelcap/meddlesome | cb968ff90488d87b436f5b819048815e75e250b1 | [
"Apache-2.0"
] | null | null | null | src/controllers/usersController.js | levelcap/meddlesome | cb968ff90488d87b436f5b819048815e75e250b1 | [
"Apache-2.0"
] | null | null | null | src/controllers/usersController.js | levelcap/meddlesome | cb968ff90488d87b436f5b819048815e75e250b1 | [
"Apache-2.0"
] | null | null | null | const { get } = require('lodash');
const usersService = require('../services/usersService');
const allUsers = [
{
name: 'First User',
email: 'firstuser@gmail.com',
},
{
name: 'Second User',
email: 'seconduser@gmail.com',
},
];
module.exports = {
currentUser: (req, res) => {
return res.st... | 24.82 | 75 | 0.582595 |
38a7eb6eb6d9fd899e777d146d626e97a7804dab | 668 | js | JavaScript | node_modules/devextreme/esm/renovation/ui/scroll_view/common/animated_scrollbar_props.js | SrikanthJakkaslokam/KaveriProject | 5367ee758ed02b21d1e1480fb1ecf10f86bd7351 | [
"MIT"
] | null | null | null | node_modules/devextreme/esm/renovation/ui/scroll_view/common/animated_scrollbar_props.js | SrikanthJakkaslokam/KaveriProject | 5367ee758ed02b21d1e1480fb1ecf10f86bd7351 | [
"MIT"
] | null | null | null | node_modules/devextreme/esm/renovation/ui/scroll_view/common/animated_scrollbar_props.js | SrikanthJakkaslokam/KaveriProject | 5367ee758ed02b21d1e1480fb1ecf10f86bd7351 | [
"MIT"
] | null | null | null | /**
* DevExtreme (esm/renovation/ui/scroll_view/common/animated_scrollbar_props.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import _extends from... | 37.111111 | 162 | 0.742515 |
38a80e0948511c62dbeb9645b9baa8faf2524d4c | 1,417 | js | JavaScript | components/views/Resetpassword.js | JohanBester/June2020_CapstoneProject | 72f353ec5561ef45226de9406dcad1c54e740c3c | [
"MIT"
] | null | null | null | components/views/Resetpassword.js | JohanBester/June2020_CapstoneProject | 72f353ec5561ef45226de9406dcad1c54e740c3c | [
"MIT"
] | 1 | 2020-12-15T17:40:44.000Z | 2020-12-15T17:40:44.000Z | components/views/Resetpassword.js | JohanBester/June2020_CapstoneProject | 72f353ec5561ef45226de9406dcad1c54e740c3c | [
"MIT"
] | null | null | null | export default () => `
<main>
<div class="addOrImage"></div>
<div id="resetpassword" class="mainBody">
<div class="pageIntro">
<h1>Request To Reset Your Password</h1>
</div>
<p class="center">
If you have forgotten your password and need to reset it, please enter your user name OR ... | 32.953488 | 165 | 0.589979 |
38a881add5fdfda754be4d6d0b37e288dc7464da | 957 | js | JavaScript | src/actions/__tests__/setErrorMessage.test.js | uginy/react-currency-converter | e7213fe3ab56234126a841823a9f0a6f419b9745 | [
"MIT"
] | null | null | null | src/actions/__tests__/setErrorMessage.test.js | uginy/react-currency-converter | e7213fe3ab56234126a841823a9f0a6f419b9745 | [
"MIT"
] | 8 | 2020-09-07T03:01:52.000Z | 2022-02-26T17:14:04.000Z | src/actions/__tests__/setErrorMessage.test.js | uginy/react-currency-converter | e7213fe3ab56234126a841823a9f0a6f419b9745 | [
"MIT"
] | null | null | null | import { setErrorMessage } from "../setErrorMessage";
import { SET_ERROR_MESSAGE } from "../actionTypes";
const createAction = errorType => ({
type: SET_ERROR_MESSAGE,
errorType
});
describe("action", () => {
describe("@return {Object} with property ['type'] and ['errorType']", () => {
it("should return default ... | 34.178571 | 84 | 0.676071 |
38a974a3510a551b104d45adad51e47218a89136 | 213 | js | JavaScript | src/components/imagePreview/index.js | huanganfree/image-ipreview | 2f97b13dc02532281abb13f132d2dff1f6f0a110 | [
"MIT"
] | 6 | 2021-03-18T14:52:44.000Z | 2021-12-12T02:47:34.000Z | src/components/imagePreview/index.js | huanganfree/image-ipreview | 2f97b13dc02532281abb13f132d2dff1f6f0a110 | [
"MIT"
] | 1 | 2022-02-14T07:57:20.000Z | 2022-02-15T08:36:35.000Z | src/components/imagePreview/index.js | huanganfree/image-ipreview | 2f97b13dc02532281abb13f132d2dff1f6f0a110 | [
"MIT"
] | 1 | 2021-09-07T13:39:52.000Z | 2021-09-07T13:39:52.000Z | import ImagePrview from './src/index.vue';
// eslint-disable-next-line func-names
ImagePrview.install = function(Vue) {
// 全局注册组件
Vue.component(ImagePrview.name, ImagePrview);
};
export default ImagePrview;
| 21.3 | 47 | 0.746479 |
38a9839d651b303774149b716c36e53d17a4fd9f | 1,895 | js | JavaScript | packages/bot/src/utils/urlHelper.js | easteregg/deriv-app | f99cec452c4dee4ee742660fa812a68928aec311 | [
"Apache-2.0"
] | null | null | null | packages/bot/src/utils/urlHelper.js | easteregg/deriv-app | f99cec452c4dee4ee742660fa812a68928aec311 | [
"Apache-2.0"
] | 3 | 2019-06-17T03:23:53.000Z | 2019-06-26T02:37:57.000Z | packages/bot/src/utils/urlHelper.js | easteregg/deriv-app | f99cec452c4dee4ee742660fa812a68928aec311 | [
"Apache-2.0"
] | 14 | 2019-05-06T07:59:57.000Z | 2022-03-11T15:10:49.000Z |
import { getLanguage } from './lang/lang';
import AppIds from '../services/api/appIdResolver';
export const isProduction = () =>
// Check if the hostname is one of the production domains
document.location.hostname.replace(/^www./, '') in AppIds;
export const getExtension = ... | 37.9 | 119 | 0.556728 |
38a99da76e8f29c2031894096d8630b23fcb4da7 | 1,694 | js | JavaScript | lib/lib/Reference.js | etherio/etherio-database | e8861626a06d9869bb3754ec53dee190d9715997 | [
"MIT"
] | null | null | null | lib/lib/Reference.js | etherio/etherio-database | e8861626a06d9869bb3754ec53dee190d9715997 | [
"MIT"
] | null | null | null | lib/lib/Reference.js | etherio/etherio-database | e8861626a06d9869bb3754ec53dee190d9715997 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Reference = void 0;
var Reference = (function () {
function Reference(provider, path) {
this.provider = provider;
this.path = path;
}
Reference.prototype.child = function (path) {
return new Referenc... | 33.215686 | 73 | 0.626919 |
38aa5c85f8f415df08e4aaca7afa9139da76d353 | 360 | js | JavaScript | frontend/src/main.js | anthonkendel/natus | c7d2397535d1c0de5650743a43b9019b96884c7e | [
"Apache-2.0"
] | 1 | 2020-06-03T01:07:52.000Z | 2020-06-03T01:07:52.000Z | frontend/src/main.js | anthonkendel/natus | c7d2397535d1c0de5650743a43b9019b96884c7e | [
"Apache-2.0"
] | 3 | 2020-04-07T19:01:50.000Z | 2020-04-07T19:01:51.000Z | frontend/src/main.js | anthonkendel/natus | c7d2397535d1c0de5650743a43b9019b96884c7e | [
"Apache-2.0"
] | null | null | null | import Vue from 'vue';
import Vuetify from 'vuetify';
import 'vuetify/dist/vuetify.min.css';
import App from './App';
import router from './router';
import store from './shared/store';
Vue.use(Vuetify);
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
templat... | 18 | 38 | 0.661111 |
38acb161222a95673ad4361c0f938bcd2315d36e | 3,313 | js | JavaScript | src/js/cart_product_item.js | Alexey314/the_brand_store | 5b29fea6f8d53c57bfeb881d5c7d01ac19cddd05 | [
"Unlicense"
] | null | null | null | src/js/cart_product_item.js | Alexey314/the_brand_store | 5b29fea6f8d53c57bfeb881d5c7d01ac19cddd05 | [
"Unlicense"
] | 1 | 2021-03-14T19:37:00.000Z | 2021-03-14T19:37:00.000Z | src/js/cart_product_item.js | Alexey314/the_brand_store | 5b29fea6f8d53c57bfeb881d5c7d01ac19cddd05 | [
"Unlicense"
] | null | null | null | import ProductItem from './product_item.js';
/**
* Cart product item.
* */
export default class CartProductItem extends ProductItem {
destroyItemSelector = ".cart-product__details-btn-del";
onAddCartItemFn = null;
onRemoveCartItemFn = null;
onDestroyCartItemFn = null;
quantity = 1;
/**
... | 51.765625 | 840 | 0.591609 |
38ada145119d7bef8b66a38d66904cab35449a88 | 2,481 | js | JavaScript | dist/modules/blog/blog-post/blog-post.domain.js | dainchatel/orion | b330795aca9cd72cfe4ef45d25abdea9f27e958d | [
"MIT"
] | null | null | null | dist/modules/blog/blog-post/blog-post.domain.js | dainchatel/orion | b330795aca9cd72cfe4ef45d25abdea9f27e958d | [
"MIT"
] | null | null | null | dist/modules/blog/blog-post/blog-post.domain.js | dainchatel/orion | b330795aca9cd72cfe4ef45d25abdea9f27e958d | [
"MIT"
] | null | null | null | "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const marked_1 = __importDefault(require("marked"));
const boom_1 = __importDefault(require("boom"));
ex... | 34.458333 | 76 | 0.519952 |
38ada88215010ff066469f2f38a0e6f1587be5c0 | 478 | js | JavaScript | app/models/Upvote.js | neerajkulk/disxourse | 20826ddbf1fb173b14f3f7c845ce684a5e9e8bea | [
"MIT"
] | 2 | 2020-11-09T23:41:11.000Z | 2021-01-15T02:38:16.000Z | app/models/Upvote.js | neerajkulk/disxourse | 20826ddbf1fb173b14f3f7c845ce684a5e9e8bea | [
"MIT"
] | 1 | 2022-02-13T20:58:08.000Z | 2022-02-13T20:58:08.000Z | app/models/Upvote.js | neerajkulk/disxourse | 20826ddbf1fb173b14f3f7c845ce684a5e9e8bea | [
"MIT"
] | null | null | null | const mongoose = require('mongoose')
let upvoteSchema = mongoose.Schema({
paperID: {
type: mongoose.Types.ObjectId,
ref: 'Papers'
},
userID: {
type: mongoose.Types.ObjectId,
ref: 'Users'
},
vote: {
type: Number,
required: true,
enum: [-1, 1]
... | 19.12 | 57 | 0.527197 |
46ed5f8b7d8de232ae53b8f8b6b25f0fc9f0740e | 195 | js | JavaScript | docs/dwarfDbg/search/enumvalues_6.js | apwiede/nodemcu | 934b69a5786093f50f198b1f7791140a3731c441 | [
"MIT"
] | 1 | 2016-08-16T17:23:08.000Z | 2016-08-16T17:23:08.000Z | docs/dwarfDbg/search/enumvalues_6.js | apwiede/nodemcu | 934b69a5786093f50f198b1f7791140a3731c441 | [
"MIT"
] | null | null | null | docs/dwarfDbg/search/enumvalues_6.js | apwiede/nodemcu | 934b69a5786093f50f198b1f7791140a3731c441 | [
"MIT"
] | null | null | null | var searchData=
[
['pubname_5fattr_5fresult',['pubname_attr_result',['../dwarfDbgElfInfo_8c.html#a65dbdb867063f6669746189eff3cca03a1a8406e977478d34b96f1208917971d9',1,'dwarfDbgElfInfo.c']]]
];
| 39 | 173 | 0.820513 |
46ed6b34886f84ea2c6dccc1af08e860b60a5764 | 2,076 | js | JavaScript | src/index.js | YoshiyukiKato/url-mock-server | 93e458f8a464555548834a504d6c7e882606bbeb | [
"MIT"
] | null | null | null | src/index.js | YoshiyukiKato/url-mock-server | 93e458f8a464555548834a504d6c7e882606bbeb | [
"MIT"
] | null | null | null | src/index.js | YoshiyukiKato/url-mock-server | 93e458f8a464555548834a504d6c7e882606bbeb | [
"MIT"
] | null | null | null | import http from "http"
export default class Server{
constructor(pathMap){
this.pathMap = pathMap || {};
}
_route(url){
const pathname_query = url.split("?");
const pathname = pathname_query[0];
const query = pathname_query[1] ? pathname_query[1].split("&").sort().join("") : null;
const path... | 33.483871 | 90 | 0.569846 |