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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cdee857cdf7fbb5706cba049223438ec80dc3cf4 | 22,733 | js | JavaScript | index.js | Matrks/ticket-bot | 0015b8e9ece3d22fba9a8cba00e2e43e538ebeb9 | [
"MIT"
] | null | null | null | index.js | Matrks/ticket-bot | 0015b8e9ece3d22fba9a8cba00e2e43e538ebeb9 | [
"MIT"
] | null | null | null | index.js | Matrks/ticket-bot | 0015b8e9ece3d22fba9a8cba00e2e43e538ebeb9 | [
"MIT"
] | null | null | null | var Discord = require("discord.js"),
client = new Discord.Client(),
Enmap = require("enmap"),
db = new Enmap({name: "tickets"}),
devs = ["345152850751389697"],
prefix = "-"
const http = require("http");
const express = require("express");
const app = express();
app.get("/", (request, response) => {
console.log(Date.n... | 43.633397 | 269 | 0.674218 |
cdeecde43bf169e548b853d4a4dacedba96b5817 | 302 | js | JavaScript | assets/src/models/common.js | yukecookie/mmms | fb2d8d4baa27972cc9085a876efd0fdca4ec9eff | [
"MIT"
] | null | null | null | assets/src/models/common.js | yukecookie/mmms | fb2d8d4baa27972cc9085a876efd0fdca4ec9eff | [
"MIT"
] | null | null | null | assets/src/models/common.js | yukecookie/mmms | fb2d8d4baa27972cc9085a876efd0fdca4ec9eff | [
"MIT"
] | 1 | 2019-04-24T05:58:09.000Z | 2019-04-24T05:58:09.000Z | export default {
namespace: 'common',
state: {},
reducers: {
updateState(state, { payload }) {
return {
...state,
...payload,
};
},
replaceState(state, { payload }) {
if (payload) {
return payload;
}
return state;
},
},
};
| 15.1 | 38 | 0.460265 |
cdef1f700626afdefcb6b878b202ba9dbe5f74a0 | 1,046 | js | JavaScript | dist/js/chunk-36c22a7e.c5fce76d.js | emloxe/e-test | 2c3190a03926aec913871357fa98a09b0f7081dd | [
"MIT"
] | null | null | null | dist/js/chunk-36c22a7e.c5fce76d.js | emloxe/e-test | 2c3190a03926aec913871357fa98a09b0f7081dd | [
"MIT"
] | null | null | null | dist/js/chunk-36c22a7e.c5fce76d.js | emloxe/e-test | 2c3190a03926aec913871357fa98a09b0f7081dd | [
"MIT"
] | null | null | null | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36c22a7e"],{"6bae":function(t,e,n){},a96d:function(t,e,n){"use strict";n("6bae")},ded8:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"about"},[n("van-nav-bar",{attrs:{title:... | 523 | 994 | 0.644359 |
cdf02848bea45b6d195b73b85e72bcb2a3898ba0 | 445 | js | JavaScript | middlewares/auth.js | Jiasm/simple-node-auth | 6db4bf2625dba6cab3f16ef08324535e7c7df73e | [
"MIT"
] | null | null | null | middlewares/auth.js | Jiasm/simple-node-auth | 6db4bf2625dba6cab3f16ef08324535e7c7df73e | [
"MIT"
] | null | null | null | middlewares/auth.js | Jiasm/simple-node-auth | 6db4bf2625dba6cab3f16ef08324535e7c7df73e | [
"MIT"
] | null | null | null | const req = require('bd-require')
const {decrypt} = req('./libs/crypto')
module.exports = async function (context, next) {
if (/^\/login/.test(context.url)) {
await next()
} else {
let auth = context.header.authorization
let result = auth && decrypt(auth)
if (result && String(result.token) === '12... | 21.190476 | 51 | 0.557303 |
cdf041ec92152f3cc84582167bcde9db05cbf1bc | 1,578 | js | JavaScript | .eslintrc.js | polyglotdev/bluise-personal-site | 572d3b65f068c79851467f453782642fcb6cd2e3 | [
"MIT"
] | null | null | null | .eslintrc.js | polyglotdev/bluise-personal-site | 572d3b65f068c79851467f453782642fcb6cd2e3 | [
"MIT"
] | null | null | null | .eslintrc.js | polyglotdev/bluise-personal-site | 572d3b65f068c79851467f453782642fcb6cd2e3 | [
"MIT"
] | null | null | null | module.exports = {
root: true,
parserOptions: {
parser: '@typescript-eslint/parser'
},
env: {
browser: true,
jest: true,
node: true
},
extends: [
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'plugin:vue/strongly-recommended',
'prettier',
'prettier/vu... | 22.225352 | 66 | 0.508872 |
cdf178e90111c6ef58aed9298c513cbf7932b1e1 | 523 | js | JavaScript | node_modules/@zippytech/react-toolkit/Uploader/src/utils/pick-props.js | lauriefacer/Facer | ff9f5ca4af302926fed49a4b9b442ff00ea212be | [
"MIT"
] | null | null | null | node_modules/@zippytech/react-toolkit/Uploader/src/utils/pick-props.js | lauriefacer/Facer | ff9f5ca4af302926fed49a4b9b442ff00ea212be | [
"MIT"
] | null | null | null | node_modules/@zippytech/react-toolkit/Uploader/src/utils/pick-props.js | lauriefacer/Facer | ff9f5ca4af302926fed49a4b9b442ff00ea212be | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = pickProps;
/**
* Copyright (c) 2015-present, Zippy Technologies
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function pickProps(prop... | 22.73913 | 66 | 0.6826 |
cdf1d9cc5ef3ac924e9e7a165155387138f36832 | 417 | js | JavaScript | packages/website/components/examples/list/Simple/index.js | nowaalex/af-react-table | 585bce6be8e02aedb0f47f580d6ec45a15a49e6d | [
"MIT"
] | 4 | 2020-02-18T18:11:16.000Z | 2020-03-15T20:41:15.000Z | packages/website/components/examples/list/Simple/index.js | nowaalex/af-react-table | 585bce6be8e02aedb0f47f580d6ec45a15a49e6d | [
"MIT"
] | null | null | null | packages/website/components/examples/list/Simple/index.js | nowaalex/af-react-table | 585bce6be8e02aedb0f47f580d6ec45a15a49e6d | [
"MIT"
] | 2 | 2020-02-19T02:18:44.000Z | 2020-02-27T20:33:37.000Z | import { memo } from "react";
import {
useVirtual,
areItemPropsEqual,
List
} from "@af-utils/react-virtual-list";
const Item = memo(
({ i }) => <div className="border-t p-2 border-zinc-400">row {i}</div>,
areItemPropsEqual
);
const SimpleList = () => {
const model = useVirtual({
itemCo... | 18.954545 | 75 | 0.611511 |
cdf1fc9f9ba70afba56620dbf7f8bfaf472adaa5 | 29,957 | js | JavaScript | node_modules/markdownlint/lib/markdownlint.js | TreySchmidt/MagicMirror | 5e128a42307d084cf2697d88d57906f45d142e57 | [
"MIT"
] | null | null | null | node_modules/markdownlint/lib/markdownlint.js | TreySchmidt/MagicMirror | 5e128a42307d084cf2697d88d57906f45d142e57 | [
"MIT"
] | 2 | 2021-10-12T22:51:19.000Z | 2022-03-25T19:12:55.000Z | node_modules/markdownlint/lib/markdownlint.js | TreySchmidt/MagicMirror | 5e128a42307d084cf2697d88d57906f45d142e57 | [
"MIT"
] | null | null | null | // @ts-check
"use strict";
const fs = require("fs");
const path = require("path");
const { URL } = require("url");
const markdownIt = require("markdown-it");
const rules = require("./rules");
const helpers = require("../helpers");
const cache = require("./cache");
const deprecatedRuleNames = [ "MD002" ];... | 31.801486 | 81 | 0.606336 |
cdf22579498fd76019fbfd20c06e5211ee314618 | 2,987 | js | JavaScript | node_modules/@fluentui/react/lib-amd/components/DatePicker/DatePicker.styles.js | lathroplabs/CodeLaboratoryAddin | 98009c91ef94db5d80ebe46b05ba2ba47ed04cdd | [
"MIT"
] | null | null | null | node_modules/@fluentui/react/lib-amd/components/DatePicker/DatePicker.styles.js | lathroplabs/CodeLaboratoryAddin | 98009c91ef94db5d80ebe46b05ba2ba47ed04cdd | [
"MIT"
] | null | null | null | node_modules/@fluentui/react/lib-amd/components/DatePicker/DatePicker.styles.js | lathroplabs/CodeLaboratoryAddin | 98009c91ef94db5d80ebe46b05ba2ba47ed04cdd | [
"MIT"
] | null | null | null | define(["require", "exports", "@fluentui/style-utilities"], function (require, exports, style_utilities_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.styles = void 0;
var GlobalClassNames = {
root: 'ms-DatePicker',
callout: 'ms-DatePicker-callo... | 37.810127 | 154 | 0.437228 |
cdf2a0e890e4f006a00f81099333bf7c5c734633 | 1,452 | js | JavaScript | scripts/update-pseudos.js | croutonn/tailwindcss-pseudo-elements | 44d5372543caacea455d56c748f72f88fa3050a4 | [
"MIT"
] | 102 | 2020-10-04T19:14:16.000Z | 2021-11-30T03:57:12.000Z | scripts/update-pseudos.js | croutonn/tailwindcss-pseudo-elements | 44d5372543caacea455d56c748f72f88fa3050a4 | [
"MIT"
] | 20 | 2020-09-28T07:54:12.000Z | 2021-11-06T15:01:22.000Z | scripts/update-pseudos.js | croutonn/tailwindcss-pseudo-elements | 44d5372543caacea455d56c748f72f88fa3050a4 | [
"MIT"
] | 2 | 2021-01-12T05:40:08.000Z | 2022-01-07T03:52:51.000Z | const fs = require('fs')
const path = require('path')
const puppeteer = require('puppeteer')
const DOCUMENT_URL = {
classes: 'https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes',
elements: 'https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements',
}
const CODES_SELECTOR = '#index>ul>li>a>cod... | 25.473684 | 94 | 0.632231 |
cdf2e472f5ee58b232fa2db9e9765a07e8bd559b | 1,183 | js | JavaScript | jsdocs.js | mi-sec/geonet-layergl | 0e1796a334c0f9d0cfdb731b79022268a3dea777 | [
"MIT"
] | null | null | null | jsdocs.js | mi-sec/geonet-layergl | 0e1796a334c0f9d0cfdb731b79022268a3dea777 | [
"MIT"
] | 3 | 2020-07-29T18:08:04.000Z | 2021-09-02T08:19:44.000Z | jsdocs.js | mi-sec/geonet-layergl | 0e1796a334c0f9d0cfdb731b79022268a3dea777 | [
"MIT"
] | 1 | 2020-03-20T19:32:44.000Z | 2020-03-20T19:32:44.000Z | /** ****************************************************************************************************
* File: jsdocs.js
* Project: template-npm-module
* @author Nick Soggin <iSkore@users.noreply.github.com> on 30-May-2018
*******************************************************************************************... | 23.196078 | 105 | 0.382925 |
cdf326b1d7a2d9b473b6fc7b51019a3fb73a5723 | 79,742 | js | JavaScript | educoin-libs/bitcore-wallet-client/ts_build/lib/api.js | bajosega/tkwallet | 709bf42dde5e25cff335d10d8ac2046d6586abb3 | [
"MIT"
] | null | null | null | educoin-libs/bitcore-wallet-client/ts_build/lib/api.js | bajosega/tkwallet | 709bf42dde5e25cff335d10d8ac2046d6586abb3 | [
"MIT"
] | null | null | null | educoin-libs/bitcore-wallet-client/ts_build/lib/api.js | bajosega/tkwallet | 709bf42dde5e25cff335d10d8ac2046d6586abb3 | [
"MIT"
] | 1 | 2022-01-26T18:10:40.000Z | 2022-01-26T18:10:40.000Z | 'use strict';
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | 39.652909 | 288 | 0.507637 |
cdf40405b605d1bf7a1120c2f9047e0b2f63e777 | 296 | js | JavaScript | source/src/common/util/dom.js | liquidliang/liquidliang.github.io | 089909d173599d71405494e61e096cec8097351e | [
"MIT"
] | null | null | null | source/src/common/util/dom.js | liquidliang/liquidliang.github.io | 089909d173599d71405494e61e096cec8097351e | [
"MIT"
] | null | null | null | source/src/common/util/dom.js | liquidliang/liquidliang.github.io | 089909d173599d71405494e61e096cec8097351e | [
"MIT"
] | null | null | null | module.exports = {
getWindowHeight: function () {
return window.innerHeight || window.clientHeight;
},
getWindowWidth: function () {
return window.innerWidth;
},
getPageHeight: function () {
return document.body.scrollHeight || document.documentElement.scrollHeight;
}
};
| 24.666667 | 79 | 0.699324 |
cdf48962a6216f949d84a6f481065372f95cb7cb | 5,755 | js | JavaScript | data/lcp/index.js | ArtashMardoyan/koa-awesome-boilerplate | 7e9df789adf9807cdf2cb9d8cbb315c4902425b9 | [
"MIT"
] | null | null | null | data/lcp/index.js | ArtashMardoyan/koa-awesome-boilerplate | 7e9df789adf9807cdf2cb9d8cbb315c4902425b9 | [
"MIT"
] | null | null | null | data/lcp/index.js | ArtashMardoyan/koa-awesome-boilerplate | 7e9df789adf9807cdf2cb9d8cbb315c4902425b9 | [
"MIT"
] | null | null | null | const BusinessSubscriptionPlanStatus = require('./BusinessSubscriptionPlanStatus');
const AnnouncementAccessibilityType = require('./AnnouncementAccessibilityType');
const DashboardNotificationCategory = require('./DashboardNotificationCategory');
const ReleaseNoteAccessibilityType = require('./ReleaseNoteAccessibility... | 37.861842 | 83 | 0.766985 |
cdf5b61bf2782505301a00823a46f5357d2b076a | 1,106 | js | JavaScript | index.js | brunorodmoreira/prettier-config | 1d12bb36285367a1774785a795b2e15f2c3c555c | [
"MIT"
] | null | null | null | index.js | brunorodmoreira/prettier-config | 1d12bb36285367a1774785a795b2e15f2c3c555c | [
"MIT"
] | null | null | null | index.js | brunorodmoreira/prettier-config | 1d12bb36285367a1774785a795b2e15f2c3c555c | [
"MIT"
] | null | null | null | // Reference: https://prettier.io/docs/en/options.html
module.exports = {
$schema: 'http://json.schemastore.org/prettierrc',
// Specify the line length that the printer will wrap on.
printWidth: 80,
// Specify the number of spaces per indentation-level.
tabWidth: 2,
// Indent lines with tabs instead of s... | 29.105263 | 125 | 0.72604 |
cdf5bcaa90ca001924714e5644547ffce9c4c556 | 3,754 | js | JavaScript | old_packages/wizzi/packages/wizzi-studio/server/webpacks_stop/cssstyle/src/containers/AppContainer.js | wizzifactory/wizzi-history | b86497f357f3b0ecc2f1bcacef85fe68d5b9781f | [
"MIT"
] | null | null | null | old_packages/wizzi/packages/wizzi-studio/server/webpacks_stop/cssstyle/src/containers/AppContainer.js | wizzifactory/wizzi-history | b86497f357f3b0ecc2f1bcacef85fe68d5b9781f | [
"MIT"
] | null | null | null | old_packages/wizzi/packages/wizzi-studio/server/webpacks_stop/cssstyle/src/containers/AppContainer.js | wizzifactory/wizzi-history | b86497f357f3b0ecc2f1bcacef85fe68d5b9781f | [
"MIT"
] | null | null | null | /*
artifact generator: /wizzi/lib/artifacts/js/module/gen/main.js
primary source IttfDocument: c:\my\wizzi\v3\next\sources\webpacks\cssstyle\ittf\webpacks\cssstyle\src\containers\appcontainer.js.ittf
utc time: Wed, 19 Jul 2017 08:08:01 GMT
*/
'use strict';
import React from 'react';
import PropTypes from 'p... | 32.08547 | 246 | 0.599094 |
cdf602f26e4201fa390c25d166bb9e29be380ede | 717 | js | JavaScript | src/js/components/app-canvas/fonts/fontpath-util.js | kenjiSpecial/type-experiment01 | c7c1c3b4693d4621771c999097c3e66fbbf8f2c9 | [
"MIT"
] | null | null | null | src/js/components/app-canvas/fonts/fontpath-util.js | kenjiSpecial/type-experiment01 | c7c1c3b4693d4621771c999097c3e66fbbf8f2c9 | [
"MIT"
] | null | null | null | src/js/components/app-canvas/fonts/fontpath-util.js | kenjiSpecial/type-experiment01 | c7c1c3b4693d4621771c999097c3e66fbbf8f2c9 | [
"MIT"
] | null | null | null |
module.exports.pointToPixel = function(fontSize, dpi){
dpi = dpi || dpi === 0 ? dpi : 96;
fontSize = fontSize * dpi / 72;
return Math.round(fontSize);
};
module.exports.getPxScale = function(font, fontSize) {
if(font.bitmap)
return 1.0;
fontSize = typeof fontSize === "number" ? fontSize ... | 22.40625 | 86 | 0.599721 |
cdf6a6ea3168b3c6a83bbd755325bfe50715f785 | 44,228 | js | JavaScript | workbench/dc.js/web/cross64.js | adebali/adebali | e8fa22c64bada8b3845869aa35f9672b1a07facd | [
"MIT"
] | null | null | null | workbench/dc.js/web/cross64.js | adebali/adebali | e8fa22c64bada8b3845869aa35f9672b1a07facd | [
"MIT"
] | 1 | 2020-07-15T21:40:13.000Z | 2020-07-15T21:40:13.000Z | workbench/dc.js/web/cross64.js | adebali/adebali.github.io | e8fa22c64bada8b3845869aa35f9672b1a07facd | [
"MIT"
] | null | null | null | (function(exports){
crossfilter.version = "1.3.7";
function crossfilter_identity(d) {
return d;
}
crossfilter.permute = permute;
function permute(array, index) {
for (var i = 0, n = index.length, copy = new Array(n); i < n; ++i) {
copy[i] = array[index[i]];
}
return copy;
}
var bisect = crossfilter.bisect ... | 31.65927 | 109 | 0.546283 |
cdf6aa94c620f144fa1f1e349a6fbecf3c81f50b | 8,910 | js | JavaScript | routes/users-router.js | sauti-databank/back-end | 06e39d772af8dbad04da72a6303952ee496833ba | [
"MIT"
] | 1 | 2019-11-09T01:50:00.000Z | 2019-11-09T01:50:00.000Z | routes/users-router.js | sauti-databank/back-end | 06e39d772af8dbad04da72a6303952ee496833ba | [
"MIT"
] | 3 | 2019-07-25T18:21:09.000Z | 2021-09-01T19:27:43.000Z | routes/users-router.js | sauti-databank/back-end | 06e39d772af8dbad04da72a6303952ee496833ba | [
"MIT"
] | 10 | 2019-09-05T19:44:13.000Z | 2019-12-09T20:49:37.000Z | const express = require("express");
const router = express.Router();
const Users = require("./users-model");
// All recorded Sauti Databank users
router.get("/all", (req, res) => {
Users.get()
.then(users => {
res.status(200).json(users);
})
.catch(err => {
res.status(500).json(err);
});... | 20.067568 | 61 | 0.554658 |
cdf6e98a3ea6c0b1f18666b0c082b2d6334ed82a | 179 | js | JavaScript | src/config.js | tuanhadev/cms-student-developh | 5fd1c2052a0401959ba9d1d149e3c5084ff025c1 | [
"MIT"
] | null | null | null | src/config.js | tuanhadev/cms-student-developh | 5fd1c2052a0401959ba9d1d149e3c5084ff025c1 | [
"MIT"
] | null | null | null | src/config.js | tuanhadev/cms-student-developh | 5fd1c2052a0401959ba9d1d149e3c5084ff025c1 | [
"MIT"
] | null | null | null | export default {
domain: "https://damp-river-04072.herokuapp.com",
METHOD: {
GET: 'get',
POST: 'post',
PUT: 'put',
DELETE: 'delete'
}
} | 19.888889 | 53 | 0.49162 |
cdf77aabac719bda6beb703f3bacbe313a233e55 | 42 | js | JavaScript | src/app/graph-search/index.js | subeshb1/sketchalgorithms | 7725e49cde8e4359262a736ed982c5d3718c22b7 | [
"Apache-2.0"
] | 5 | 2019-10-10T14:11:43.000Z | 2019-10-23T08:17:35.000Z | src/app/graph-search/index.js | subeshb1/subeshbhandari.com | 7725e49cde8e4359262a736ed982c5d3718c22b7 | [
"Apache-2.0"
] | 59 | 2020-05-25T03:36:46.000Z | 2020-11-21T07:09:14.000Z | src/app/graph-search/index.js | subeshb1/subeshbhandari.com | 7725e49cde8e4359262a736ed982c5d3718c22b7 | [
"Apache-2.0"
] | 9 | 2019-10-10T13:18:08.000Z | 2019-10-23T07:33:12.000Z | export {default } from './graph.container' | 42 | 42 | 0.738095 |
cdf7de28c4c031db71677e75c29657cf13bd20ef | 74,750 | js | JavaScript | frontend/web/js/christmas/Three.js | devakvion/reproduction.dev.local | c5809cdee6fd248c2a9d5f68cb7debc31aa6654f | [
"BSD-3-Clause"
] | null | null | null | frontend/web/js/christmas/Three.js | devakvion/reproduction.dev.local | c5809cdee6fd248c2a9d5f68cb7debc31aa6654f | [
"BSD-3-Clause"
] | null | null | null | frontend/web/js/christmas/Three.js | devakvion/reproduction.dev.local | c5809cdee6fd248c2a9d5f68cb7debc31aa6654f | [
"BSD-3-Clause"
] | null | null | null | // ThreeCanvas.js r46 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!self.Int32Array)self.Int32Array=Array,self.Float32Array=Array;THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b;re... | 467.1875 | 1,021 | 0.70103 |
cdf8bee1b0f863a132acfdc5a5b49b8105d25356 | 458 | js | JavaScript | lib/SplitBudget.js | icodethings/budget-js | fb8b0a0ea9c2713c3707a7dcd4d9bd0623a1ef34 | [
"MIT"
] | null | null | null | lib/SplitBudget.js | icodethings/budget-js | fb8b0a0ea9c2713c3707a7dcd4d9bd0623a1ef34 | [
"MIT"
] | null | null | null | lib/SplitBudget.js | icodethings/budget-js | fb8b0a0ea9c2713c3707a7dcd4d9bd0623a1ef34 | [
"MIT"
] | null | null | null | const BudgetType = require('./BudgetType');
class SplitBudget extends BudgetType {
get priority() {
return this.config.priority || 200;
}
run(runningBalance) {
if (runningBalance <= 0) {
this.addDebugMessage('We have no running balance to use!');
return this.setValue(0, (this.config.failOnE... | 22.9 | 90 | 0.663755 |
cdf8d567b96cde00ab8fc9026d9d474ef056d768 | 2,750 | js | JavaScript | client/components/AllProducts.js | 2006-GHP-NY-Raikou/rat_shopper | 8b37cb614e8b5235ee2b319b81d8a360685f995f | [
"MIT"
] | null | null | null | client/components/AllProducts.js | 2006-GHP-NY-Raikou/rat_shopper | 8b37cb614e8b5235ee2b319b81d8a360685f995f | [
"MIT"
] | 53 | 2020-08-05T03:15:05.000Z | 2020-08-12T03:39:46.000Z | client/components/AllProducts.js | 2006-GHP-NY-Raikou/rat_shopper | 8b37cb614e8b5235ee2b319b81d8a360685f995f | [
"MIT"
] | null | null | null | import React from 'react'
import {connect} from 'react-redux'
import {fetchProducts} from '../store/allProducts'
import ProductView from './ProductView'
export class AllProducts extends React.Component {
constructor() {
super()
this.state = {sort: 'random', filter: 'all'}
this.handleChange = this.handle... | 25.700935 | 75 | 0.545455 |
cdf91b6905e9b036d419a7287c48d783a56954fa | 1,036,270 | js | JavaScript | octopus/static/js/common.js | quaintm/octopus | 95a732207ee5f43cd0065d8ea6c643cbf3df2d61 | [
"BSD-3-Clause"
] | null | null | null | octopus/static/js/common.js | quaintm/octopus | 95a732207ee5f43cd0065d8ea6c643cbf3df2d61 | [
"BSD-3-Clause"
] | null | null | null | octopus/static/js/common.js | quaintm/octopus | 95a732207ee5f43cd0065d8ea6c643cbf3df2d61 | [
"BSD-3-Clause"
] | null | null | null | /*!
* jQuery JavaScript Library v2.1.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:11Z
*/
(function (global, factory) {
if (... | 32.049918 | 1,744 | 0.540598 |
cdf956b5be0f89011ac21a8b1d299aa18b293306 | 997 | js | JavaScript | node_modules/antd/es/transfer/search.js | inspi-writer001/swap_token | 58c16c18e955992946db8f065abb9211a1148a6f | [
"MIT"
] | 1 | 2022-01-01T05:46:46.000Z | 2022-01-01T05:46:46.000Z | node_modules/antd/es/transfer/search.js | inspi-writer001/swap_token | 58c16c18e955992946db8f065abb9211a1148a6f | [
"MIT"
] | 11 | 2022-02-28T04:47:21.000Z | 2022-03-30T05:08:12.000Z | es/transfer/search.js | surreal-ai/ant-design | f0f473441110c2a22b9ce02e1c644b4c09e16418 | [
"MIT"
] | 1 | 2022-01-27T16:04:56.000Z | 2022-01-27T16:04:56.000Z | import * as React from 'react';
import SearchOutlined from "@ant-design/icons/es/icons/SearchOutlined";
import Input from '../input';
export default function Search(props) {
var _props$placeholder = props.placeholder,
placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
value = props.val... | 35.607143 | 78 | 0.662989 |
cdfa1e996a9a154bb64fe52555cd8335f15d3701 | 1,555 | js | JavaScript | themes/coinium/index.js | alexanderatallah/coinium | f3afe696ac40d54eee156a1dfe78a059cd178597 | [
"MIT"
] | null | null | null | themes/coinium/index.js | alexanderatallah/coinium | f3afe696ac40d54eee156a1dfe78a059cd178597 | [
"MIT"
] | null | null | null | themes/coinium/index.js | alexanderatallah/coinium | f3afe696ac40d54eee156a1dfe78a059cd178597 | [
"MIT"
] | null | null | null | import createTheme from "spectacle/lib/themes/default"
const brand = {
// black and its tints:
black: "#242121", // black
darkerGray: "#373534",
darkGray: "#5f5c5b",
gray: '#949BA6',
lightGray: "#e8e8e9",
white: '#F6F3F3', // lightest gray
// purple
// darkPurple: '#000326',
purple: '#2C2853',
l... | 25.491803 | 191 | 0.652733 |
cdfa4b4e815bfd6d748b28767305c65dc914cdb1 | 719 | js | JavaScript | components/team.js | lachlanjc/centresustains | 6093820e788d6c11659a7ab85d59a42cc88d31c7 | [
"MIT"
] | 2 | 2021-01-28T00:56:35.000Z | 2021-03-07T03:14:22.000Z | components/team.js | lachlanjc/centresustains | 6093820e788d6c11659a7ab85d59a42cc88d31c7 | [
"MIT"
] | null | null | null | components/team.js | lachlanjc/centresustains | 6093820e788d6c11659a7ab85d59a42cc88d31c7 | [
"MIT"
] | null | null | null | import Image from 'next/image'
import { Grid } from 'theme-ui'
import { MDXProvider } from '@mdx-js/react'
const Layout = ({ compact, ...props }) => (
<Grid
columns={['64px 1fr', compact ? 'repeat(2, 96px 1fr)' : '96px 1fr']}
gap={3}
sx={{
py: [3, 4],
alignItems: compact ? 'center' : 'start',... | 23.966667 | 72 | 0.546592 |
cdfab17de93fba3997e173e6c9c5cd609437f41a | 393 | js | JavaScript | src/store/logger/logger.server.js | samerce/lampshade | 6a755ecb7f6f697209b7a3a079649c0c4ba771d6 | [
"MIT"
] | 9 | 2016-10-16T17:50:46.000Z | 2020-12-13T11:15:41.000Z | src/store/logger/logger.server.js | samerce/lampshade | 6a755ecb7f6f697209b7a3a079649c0c4ba771d6 | [
"MIT"
] | 76 | 2016-09-06T04:05:26.000Z | 2016-09-23T07:58:12.000Z | src/store/logger/logger.server.js | samerce/lampshade | 6a755ecb7f6f697209b7a3a079649c0c4ba771d6 | [
"MIT"
] | 3 | 2019-04-21T05:21:35.000Z | 2020-04-28T17:20:48.000Z | import { inspect } from 'util';
// Server side redux action logger
export default function createLogger() {
return store => next => action => { // eslint-disable-line no-unused-vars
const formattedPayload = inspect(action.payload, {
colors: true,
});
console.log(` * ${action.type}: ${formattedPaylo... | 30.230769 | 92 | 0.661578 |
cdfac2e4dc1ad3c67335b40c92ad55f6b6ce799e | 300 | js | JavaScript | app/components/Propy.js | ayip001/WCEF_Hack_2018 | 3b758a3775a1b081a8fc8a9ab0cdf15d558cdd3a | [
"MIT"
] | null | null | null | app/components/Propy.js | ayip001/WCEF_Hack_2018 | 3b758a3775a1b081a8fc8a9ab0cdf15d558cdd3a | [
"MIT"
] | null | null | null | app/components/Propy.js | ayip001/WCEF_Hack_2018 | 3b758a3775a1b081a8fc8a9ab0cdf15d558cdd3a | [
"MIT"
] | null | null | null | import React from 'react';
import propy from '../assets/images/propy.png';
const Propy = () => (
<div style={{"border-style":"solid","border-color":"#00ff00","width":"95%", "height":"250px"}}>
<img src={propy} style={{"width":"200px","height":"200px",}} />
</div>
);
export default Propy;
| 27.272727 | 97 | 0.606667 |
cdfadd217c8ec0f91d8df646a0287ba8397257d3 | 909 | js | JavaScript | apps/contourclock/app.js | TheCaesar13/BangleApps | 1cdecbda0083fbf5cfb13787e7eab841b1917285 | [
"MIT"
] | 4 | 2022-01-26T23:46:30.000Z | 2022-03-05T16:12:36.000Z | apps/contourclock/app.js | TheCaesar13/BangleApps | 1cdecbda0083fbf5cfb13787e7eab841b1917285 | [
"MIT"
] | 9 | 2021-12-01T13:26:42.000Z | 2022-03-01T14:02:16.000Z | apps/contourclock/app.js | TheCaesar13/BangleApps | 1cdecbda0083fbf5cfb13787e7eab841b1917285 | [
"MIT"
] | null | null | null | var digits = [];
var drawTimeout;
var fontName="";
var settings = require('Storage').readJSON("contourclock.json", true) || {};
if (settings.fontIndex==undefined) {
settings.fontIndex=0;
require('Storage').writeJSON("myapp.json", settings);
}
function draw() {
var date = new Date();
// Draw day of the week
g... | 29.322581 | 108 | 0.693069 |
cdfb2dde01606fed6bd28c1bd8a8918fca2658a3 | 5,657 | js | JavaScript | bower/route/angular-route.min.js | GOPIKRISHNA44/Blogging-App | 3631bf3c55e53784f9f78f5a4001c3cfefa1bda6 | [
"MIT"
] | null | null | null | bower/route/angular-route.min.js | GOPIKRISHNA44/Blogging-App | 3631bf3c55e53784f9f78f5a4001c3cfefa1bda6 | [
"MIT"
] | 8 | 2017-05-28T04:41:36.000Z | 2017-06-08T12:34:46.000Z | lib/angular/angular-route.min.js | sergioamorim/t-partner-ui | 0724a6bebc7b840ab765d731abc0a74c76f612d9 | [
"Apache-2.0"
] | null | null | null | /*
AngularJS v1.6.5-build.5390+sha.a86a319
(c) 2010-2017 Google, Inc. http://angularjs.org
License: MIT
*/
(function(J,d){'use strict';function A(d){k&&d.get("$route")}function B(t,u,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,f,b,c,m){function v(){l&&(g.cancel(l),l=null);n... | 314.277778 | 522 | 0.654057 |
cdfc04830d0dd7f9e7e7737b11cee706cac3b6a5 | 298 | js | JavaScript | src/app/ChatActions/IgnoreChatAction.js | ninjacoder88/lost-in-translation-twitch | 60a24e3ce702bf96a423ed0dfa7791a8cadfe95d | [
"MIT"
] | null | null | null | src/app/ChatActions/IgnoreChatAction.js | ninjacoder88/lost-in-translation-twitch | 60a24e3ce702bf96a423ed0dfa7791a8cadfe95d | [
"MIT"
] | null | null | null | src/app/ChatActions/IgnoreChatAction.js | ninjacoder88/lost-in-translation-twitch | 60a24e3ce702bf96a423ed0dfa7791a8cadfe95d | [
"MIT"
] | null | null | null | const { ChatReply } = require("../Models/ChatReply");
module.exports = {
IgnoreChatAction: function(reason){
const self = this;
self.executeAsync = async function(){
return new ChatReply(false, undefined, undefined, undefined, undefined, reason);
}
}
} | 27.090909 | 92 | 0.624161 |
cdfc2e7a1a29919dc6d8df4e38c3a006c4dd868c | 91,372 | js | JavaScript | Step5/web/tops.js | pianista215/SegmentationExample | 6eab9665be25c94f4f8b9927a7c35289606c595f | [
"Apache-2.0"
] | 2 | 2015-08-21T19:46:03.000Z | 2016-05-25T16:22:53.000Z | Step5/web/tops.js | pianista215/SegmentationExample | 6eab9665be25c94f4f8b9927a7c35289606c595f | [
"Apache-2.0"
] | null | null | null | Step5/web/tops.js | pianista215/SegmentationExample | 6eab9665be25c94f4f8b9927a7c35289606c595f | [
"Apache-2.0"
] | null | null | null | var tops = [
{"segment":1,
"top": [
{
"code": "Tour Gran Manzana",
"count": "2"
},
{
"code": "Empire State Building",
"count": "1"
},
{
"code": "Explora Nueva York",
"count": "1"
},
{
"code": "AllStar Basket NY",
"count": "1"
},
{
"code": "New York City Pass",
"count": "1"
},
{
"code": "Top Of The Rock",
"count": "1"
}... | 11.645679 | 34 | 0.525971 |
cdfcf911496d5868f1a1918c7e79ac510693f5c8 | 38 | js | JavaScript | packages/2025/06/05/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 7 | 2017-07-03T19:53:01.000Z | 2021-04-05T18:15:55.000Z | packages/2025/06/05/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 1 | 2018-09-05T11:53:41.000Z | 2018-12-16T12:36:21.000Z | packages/2025/06/05/index.js | antonmedv/year | ae5d8524f58eaad481c2ba599389c7a9a38c0819 | [
"MIT"
] | 2 | 2019-01-27T16:57:34.000Z | 2020-10-11T09:30:25.000Z | module.exports = new Date(2025, 5, 5)
| 19 | 37 | 0.684211 |
cdfe81bed3f065f49a6923e63fa23e41fb8d9209 | 317 | js | JavaScript | resources/assets/js/reducers/itineraries.js | junifar/job1_sample | a2055931545f8dc1105cbadca821ecdf7b001216 | [
"MIT"
] | null | null | null | resources/assets/js/reducers/itineraries.js | junifar/job1_sample | a2055931545f8dc1105cbadca821ecdf7b001216 | [
"MIT"
] | null | null | null | resources/assets/js/reducers/itineraries.js | junifar/job1_sample | a2055931545f8dc1105cbadca821ecdf7b001216 | [
"MIT"
] | null | null | null | import * as ItinerariesActionTypes from '../actiontypes/itineraries';
const initialState = []
export default function Itineraries(state=initialState, action){
switch (action.type) {
case ItinerariesActionTypes.UPDATE_ITINERARIES:{
return action.itineraries;
}
default:
return state;
}
}
| 22.642857 | 69 | 0.722397 |
cdfe9c8f0046ec6ed10084c3da86193569aa1936 | 24,060 | js | JavaScript | WorshipSite/scripts/dragndrop/drag.js | D-Jeffrey/WorshipService | a9e6dacd1bbd9d3b735c347291593d99f99cd894 | [
"MIT"
] | null | null | null | WorshipSite/scripts/dragndrop/drag.js | D-Jeffrey/WorshipService | a9e6dacd1bbd9d3b735c347291593d99f99cd894 | [
"MIT"
] | null | null | null | WorshipSite/scripts/dragndrop/drag.js | D-Jeffrey/WorshipService | a9e6dacd1bbd9d3b735c347291593d99f99cd894 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2009, www.redips.net All rights reserved.
Code licensed under the BSD License: http://www.redips.net/license/
http://www.redips.net/javascript/drag-and-drop-table-content/
version 1.3.3
Jul 15, 2009.
*/
// parameters that can be changed
var hover_color = '#E7AB83'; // define hover color
var ... | 40.988075 | 141 | 0.702743 |
cdfee09d71d781fbc5f5177cfde90447ca621987 | 2,530 | js | JavaScript | test/IRGen/binary_operator.js | exced/hermes | c53fbe3f27677d5cda2a0c5b4e79e429eb5cd9e6 | [
"MIT"
] | 7,470 | 2019-07-11T15:56:58.000Z | 2022-03-31T08:39:29.000Z | test/IRGen/binary_operator.js | exced/hermes | c53fbe3f27677d5cda2a0c5b4e79e429eb5cd9e6 | [
"MIT"
] | 671 | 2019-07-11T16:18:21.000Z | 2022-03-31T23:53:08.000Z | test/IRGen/binary_operator.js | exced/hermes | c53fbe3f27677d5cda2a0c5b4e79e429eb5cd9e6 | [
"MIT"
] | 453 | 2019-07-11T16:02:50.000Z | 2022-03-31T18:51:37.000Z | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// RUN: %hermes -hermes-parser -dump-ir %s -O0 | %FileCheck %s --match-full-lines
// RUN: %hermes -hermes-parser -dump-ir %s -O
... | 23.211009 | 81 | 0.524901 |
cdffe9a5b29231923920ac2af7684124635a8b54 | 4,006 | js | JavaScript | js/download.js | wchiou1/GraphStudy2 | 9979ea0bfd3eb33a0ebc29b4ce50797019eeff18 | [
"BSD-3-Clause"
] | null | null | null | js/download.js | wchiou1/GraphStudy2 | 9979ea0bfd3eb33a0ebc29b4ce50797019eeff18 | [
"BSD-3-Clause"
] | null | null | null | js/download.js | wchiou1/GraphStudy2 | 9979ea0bfd3eb33a0ebc29b4ce50797019eeff18 | [
"BSD-3-Clause"
] | null | null | null | //download.js v3.0, by dandavis; 2008-2014. [CCBY2] see http://danml.com/download.html for tests/usage
// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime
// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.UR... | 31.296875 | 139 | 0.532202 |
cdffe9b07d7e5f485500c07606d0f61ab7788185 | 15,748 | js | JavaScript | src/root/flex.js | mikesmayer/citizensupported_english.js | 30c965cf2ddff1de2757ec2b27c33e4eb5651ccb | [
"MIT"
] | null | null | null | src/root/flex.js | mikesmayer/citizensupported_english.js | 30c965cf2ddff1de2757ec2b27c33e4eb5651ccb | [
"MIT"
] | null | null | null | src/root/flex.js | mikesmayer/citizensupported_english.js | 30c965cf2ddff1de2757ec2b27c33e4eb5651ccb | [
"MIT"
] | null | null | null | import m from 'mithril';
import postgrest from 'mithril-postgrest';
import h from '../h';
import models from '../models';
import landingSignup from '../c/landing-signup';
import projectRow from '../c/project-row';
import landingQA from '../c/landing-qa';
const Flex = {
controller() {
const stats = m.prop([... | 72.907407 | 533 | 0.505461 |
a8018a5fe504cafb2e01d038b35765c27627d935 | 7,608 | js | JavaScript | dev/coverage-action/fix-old-releases.js | jimfenton/datatracker | 25c7c4801a0d971f30027d7e1ac21120cefeb242 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | dev/coverage-action/fix-old-releases.js | jimfenton/datatracker | 25c7c4801a0d971f30027d7e1ac21120cefeb242 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | dev/coverage-action/fix-old-releases.js | jimfenton/datatracker | 25c7c4801a0d971f30027d7e1ac21120cefeb242 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | const github = require('@actions/github')
const fs = require('fs/promises')
const isPlainObject = require('lodash/isPlainObject')
const orderBy = require('lodash/orderBy')
const find = require('lodash/find')
const slice = require('lodash/slice')
const round = require('lodash/round')
const { ChartJSNodeCanvas } = requir... | 30.801619 | 146 | 0.541404 |
a801ca2f9b64469a18d09eacfa198b9ff3c6eb91 | 1,632 | js | JavaScript | .history/gatsby-node_20220106223554.js | HyungjunJeon/gatsby-study | bb43ac520bd602a2ab23c3d4009dc4b9b2d1bbe3 | [
"RSA-MD"
] | null | null | null | .history/gatsby-node_20220106223554.js | HyungjunJeon/gatsby-study | bb43ac520bd602a2ab23c3d4009dc4b9b2d1bbe3 | [
"RSA-MD"
] | 1 | 2022-01-08T10:01:11.000Z | 2022-01-08T10:01:12.000Z | .history/gatsby-node_20220106223554.js | HyungjunJeon/gatsby-study | bb43ac520bd602a2ab23c3d4009dc4b9b2d1bbe3 | [
"RSA-MD"
] | null | null | null | const path = require('path')
const { createFilePath } = require('gatsby-source-filesystem')
// Setup Import Alias
exports.onCreateWebpackConfig = ({ getConfig, actions }) => {
const output = getConfig().output || {}
actions.setWebpackConfig({
output,
resolve: {
alias: {
components: path.reso... | 23.652174 | 66 | 0.574142 |
a801d71e2ea15616cd274a4043717c0f56b8ecfd | 177 | js | JavaScript | src/virtual-machines/__tests__/source-1-with-mark-region-gc.gc_fails_test8.js | jansky/source-programs | 6abcde6d6eceb5354ba5dbbceaa0f5cf4a3c7052 | [
"Apache-2.0"
] | null | null | null | src/virtual-machines/__tests__/source-1-with-mark-region-gc.gc_fails_test8.js | jansky/source-programs | 6abcde6d6eceb5354ba5dbbceaa0f5cf4a3c7052 | [
"Apache-2.0"
] | null | null | null | src/virtual-machines/__tests__/source-1-with-mark-region-gc.gc_fails_test8.js | jansky/source-programs | 6abcde6d6eceb5354ba5dbbceaa0f5cf4a3c7052 | [
"Apache-2.0"
] | null | null | null | parse_and_compile_and_run(10, 5, 2,
"function f(x) { \
x + 1; \
} \
f(3); ");
// Line 915: Error: "reached oom"
| 25.285714 | 35 | 0.367232 |
a801e47a4f9799f51d2011f7560a721d8cc58f7c | 28,054 | js | JavaScript | unpackage/dist/dev/mp-weixin/pages/component/form/form.js | StudyMonkey/uniPro | ccb2661f1a119ae0e55fbe7f5ae00b72025b8cde | [
"MIT"
] | 1 | 2019-03-25T01:23:57.000Z | 2019-03-25T01:23:57.000Z | unpackage/dist/dev/mp-weixin/pages/component/form/form.js | StudyMonkey/uniPro | ccb2661f1a119ae0e55fbe7f5ae00b72025b8cde | [
"MIT"
] | null | null | null | unpackage/dist/dev/mp-weixin/pages/component/form/form.js | StudyMonkey/uniPro | ccb2661f1a119ae0e55fbe7f5ae00b72025b8cde | [
"MIT"
] | null | null | null | (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/component/form/form"],{
/***/ "../../../uniPro/main.js?{\"page\":\"pages%2Fcomponent%2Fform%2Fform\"}":
/*!********************************************************************!*\
!*** D:/uniPro/main.js?{"page":"pages%2Fcomponent%2Fform%2Fform"} **... | 80.847262 | 1,741 | 0.665859 |
a8023f2d6499d8e4a3c0da44164e91bebf8fa517 | 1,177 | js | JavaScript | index.test.js | olivierodo/gh-cv-assistant | 9442e8c596b14a8265d246514c99e3f1c0a0874f | [
"ISC"
] | 1 | 2020-02-12T01:30:13.000Z | 2020-02-12T01:30:13.000Z | index.test.js | olivierodo/gh-cv-assistant | 9442e8c596b14a8265d246514c99e3f1c0a0874f | [
"ISC"
] | 1 | 2020-06-01T08:46:19.000Z | 2020-06-01T08:46:19.000Z | index.test.js | olivierodo/gh-cv-assistant | 9442e8c596b14a8265d246514c99e3f1c0a0874f | [
"ISC"
] | null | null | null | beforeEach(() => {
jest.resetModules()
})
test('Should start the bot', () => {
const index = require('./index')
const robot = {}
robot.log = jest.fn(() => {})
robot.on = jest.fn(() => {})
index(robot)
expect(robot.log).toBeCalled()
})
test('Should set the utils', () => {
jest.mock('./lib/utils', () =>... | 22.207547 | 51 | 0.541206 |
a802e73d228a9f31205a24d1382966e40512cced | 402 | js | JavaScript | src/components/articles.js | Thirosue/starter-gatsby-blog | 3d2b9d2d4508c8a7ed218378a4318fdab3ba3fcd | [
"MIT"
] | null | null | null | src/components/articles.js | Thirosue/starter-gatsby-blog | 3d2b9d2d4508c8a7ed218378a4318fdab3ba3fcd | [
"MIT"
] | null | null | null | src/components/articles.js | Thirosue/starter-gatsby-blog | 3d2b9d2d4508c8a7ed218378a4318fdab3ba3fcd | [
"MIT"
] | null | null | null | import React from 'react'
import SamplePreview from './sample-preview.js'
import useArticle from '../hooks/useArticle';
export default () => {
const { articles } = useArticle();
return (
<ul className="article-list">
{articles.map((node, i) => {
return (
<li key={i}>
<Samp... | 17.478261 | 47 | 0.529851 |
a8034434366e601993aa5091a2e444ea3f4c34c8 | 1,306 | js | JavaScript | examples/3._overide_a_controller/controller.js | luongthanhluu/express-mongoose-api-generator | e30c5fa02173e8e751ef3004f77fd0cd5c061a5b | [
"ISC"
] | 1 | 2019-06-16T04:22:20.000Z | 2019-06-16T04:22:20.000Z | examples/3._overide_a_controller/controller.js | luongthanhluu/express-mongoose-api-generator | e30c5fa02173e8e751ef3004f77fd0cd5c061a5b | [
"ISC"
] | 3 | 2020-06-11T03:54:15.000Z | 2021-05-08T07:41:43.000Z | examples/3._overide_a_controller/controller.js | luongthanhluu/express-mongoose-api-generator | e30c5fa02173e8e751ef3004f77fd0cd5c061a5b | [
"ISC"
] | 1 | 2019-06-16T04:22:24.000Z | 2019-06-16T04:22:24.000Z | const expressModule = require('@luongthanhluu/express-mongoose-api-generator');
class Controller extends expressModule.Controller {
constructor(name, model) {
super(name, model);
}
//overide
getById() {
return async (req, res, next) => {
console.log("run overdie")
... | 34.368421 | 114 | 0.529096 |
a8038c49ce05d7da9029dea57011f56ed7ef25e3 | 1,933 | js | JavaScript | packages/interface-ipfs-core/src/object/data.js | gfpacheco/js-ipfs | 335c13d529fc54e4610fc1aa03212126f43c63ec | [
"Apache-2.0",
"MIT"
] | 2 | 2020-08-18T11:04:41.000Z | 2020-09-02T05:25:25.000Z | packages/interface-ipfs-core/src/object/data.js | gfpacheco/js-ipfs | 335c13d529fc54e4610fc1aa03212126f43c63ec | [
"Apache-2.0",
"MIT"
] | 2 | 2020-06-05T17:11:39.000Z | 2020-07-25T08:56:40.000Z | packages/interface-ipfs-core/src/object/data.js | gfpacheco/js-ipfs | 335c13d529fc54e4610fc1aa03212126f43c63ec | [
"Apache-2.0",
"MIT"
] | 1 | 2020-08-30T03:32:17.000Z | 2020-08-30T03:32:17.000Z | /* eslint-env mocha */
'use strict'
const { Buffer } = require('buffer')
const { nanoid } = require('nanoid')
const { getDescribe, getIt, expect } = require('../utils/mocha')
const testTimeout = require('../utils/test-timeout')
const CID = require('cids')
/** @typedef { import("ipfsd-ctl/src/factory") } Factory */
/*... | 28.014493 | 121 | 0.616658 |
a803e4650242575c7e2a69755825496f8190f5b5 | 642 | js | JavaScript | backend/src/socket/events/leaveStation.js | github-clonner/team-radio | 456f6f3984eae512611136b7277cf301dd53c20a | [
"MIT"
] | 14 | 2017-12-11T08:50:51.000Z | 2022-01-18T10:03:07.000Z | backend/src/socket/events/leaveStation.js | github-clonner/team-radio | 456f6f3984eae512611136b7277cf301dd53c20a | [
"MIT"
] | 183 | 2017-12-06T14:05:26.000Z | 2018-08-15T16:07:03.000Z | backend/src/socket/events/leaveStation.js | github-clonner/team-radio | 456f6f3984eae512611136b7277cf301dd53c20a | [
"MIT"
] | 9 | 2018-02-01T12:45:10.000Z | 2022-01-18T10:05:58.000Z | /** *******************************************************
* *
* *
* LEAVE STATION *
* By Ryker *
* ... | 42.8 | 63 | 0.216511 |
a803f0ade2afdc603dc51a48a1dd0880b87b7313 | 1,842 | js | JavaScript | src/Helpinfo/Findhelp.js | deepbag/Onevaxin---a-Complete-Information-Covid-19 | c308d83708409b335e07aa39afa0d49ff277864c | [
"MIT"
] | 1 | 2021-05-16T12:52:56.000Z | 2021-05-16T12:52:56.000Z | src/Helpinfo/Findhelp.js | deepbag/Onevaxin-a-Complete-Information-Covid-19 | c308d83708409b335e07aa39afa0d49ff277864c | [
"MIT"
] | null | null | null | src/Helpinfo/Findhelp.js | deepbag/Onevaxin-a-Complete-Information-Covid-19 | c308d83708409b335e07aa39afa0d49ff277864c | [
"MIT"
] | null | null | null | import React, { useState, useEffect } from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import '../Csscomponents/Findhelp.css';
import db from '../firebase';
import '../Csscomponents/Table.css';
const Findhelp = () => {
// fetch data from firebase start
const [helpOther, setHelpOther] = useState([]... | 33.490909 | 61 | 0.39468 |
a80473b3656a0d2d7b2311039b29d3a95c765598 | 989 | js | JavaScript | app/app.js | scbd/ebsa.cbd.int | 128489087e19ca573e862d37e80368aac3c92851 | [
"MIT"
] | null | null | null | app/app.js | scbd/ebsa.cbd.int | 128489087e19ca573e862d37e80368aac3c92851 | [
"MIT"
] | 2 | 2020-04-29T22:47:57.000Z | 2020-05-29T20:08:24.000Z | app/app.js | scbd/ebsa.cbd.int | 128489087e19ca573e862d37e80368aac3c92851 | [
"MIT"
] | 1 | 2016-07-16T02:17:47.000Z | 2016-07-16T02:17:47.000Z | define([
'jquery',
'angular',
'angular-route',
'bootstrap',
'ng-breadcrumbs',
'angular-growl',
'directives/index.js',
'services/index.js',
'filters/index.js'
],
function() {
'use strict';
var app = require('angular').module('app',
['ngRoute', 'ng-breadcrumbs', 'ang... | 28.257143 | 119 | 0.622851 |
a8049f107041b56f40ee8fe3465d89e74927cd48 | 41,786 | js | JavaScript | rooms.js | Lord-Haji/Pokemon-Showdown-Boilerplate | 3f06e82b4d2471e82cc3fcd4995232d52672ac27 | [
"MIT"
] | null | null | null | rooms.js | Lord-Haji/Pokemon-Showdown-Boilerplate | 3f06e82b4d2471e82cc3fcd4995232d52672ac27 | [
"MIT"
] | null | null | null | rooms.js | Lord-Haji/Pokemon-Showdown-Boilerplate | 3f06e82b4d2471e82cc3fcd4995232d52672ac27 | [
"MIT"
] | null | null | null | /**
* Rooms
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Every chat room and battle is a room, and what they do is done in
* rooms.js. There's also a global room which every user is in, and
* handles miscellaneous things like welcoming the user.
*
* @license MIT license
*/
'use strict';
const TIMEOUT... | 29.406052 | 272 | 0.636002 |
a804cbdb55a04b23b16e1fead12a0b774a80039e | 889 | js | JavaScript | index.js | Rainymy/SnakeAI | dc17e1d5bbb6854f9ccb049347a3f8ce5701b028 | [
"MIT"
] | null | null | null | index.js | Rainymy/SnakeAI | dc17e1d5bbb6854f9ccb049347a3f8ce5701b028 | [
"MIT"
] | null | null | null | index.js | Rainymy/SnakeAI | dc17e1d5bbb6854f9ccb049347a3f8ce5701b028 | [
"MIT"
] | null | null | null | const { app, BrowserWindow } = require('electron');
const path = require('path');
if (require('electron-squirrel-startup')) { app.quit(); }
const createWindow = () => {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 1000,
height: 700,
icon: path.join(__dirname, "/favicon.p... | 27.78125 | 76 | 0.64117 |
a804d0b61e0a8f278dcabb31c59ddb51b21bf960 | 511 | js | JavaScript | frontend/build/generate-types.js | michaelboyles/awsh-we-talked-more | 4768c591c534f8894e58a26fa3bd5d426b99981b | [
"MIT"
] | 4 | 2020-10-24T23:50:32.000Z | 2022-01-21T22:07:13.000Z | frontend/build/generate-types.js | michaelboyles/awsh-we-talked-more | 4768c591c534f8894e58a26fa3bd5d426b99981b | [
"MIT"
] | 22 | 2020-10-24T22:29:49.000Z | 2021-07-20T20:38:20.000Z | frontend/build/generate-types.js | michaelboyles/awsh-we-talked-more | 4768c591c534f8894e58a26fa3bd5d426b99981b | [
"MIT"
] | null | null | null | const { schemaDir, schemaExtension, schemaTypeDir } = require('../../backend/build/consts');
const fs = require('fs');
const js2ts = require('json-schema-to-typescript');
if (!fs.existsSync(schemaTypeDir)) {
fs.mkdirSync(schemaTypeDir, { recursive: true });
}
fs.readdir(schemaDir, (_err, files) =>
files.forEa... | 34.066667 | 104 | 0.661448 |
a80506414c1761ceb2bd73ee554ea499e5b59636 | 590 | js | JavaScript | examples/netflix-request-paging/views/AppView.js | chaonextdoor/backbone.paginator | d34ce80297ef41c0828111ef04fd9bf7d5692f3a | [
"MIT"
] | 1 | 2019-04-22T16:49:07.000Z | 2019-04-22T16:49:07.000Z | examples/netflix-request-paging/views/AppView.js | chaonextdoor/backbone.paginator | d34ce80297ef41c0828111ef04fd9bf7d5692f3a | [
"MIT"
] | null | null | null | examples/netflix-request-paging/views/AppView.js | chaonextdoor/backbone.paginator | d34ce80297ef41c0828111ef04fd9bf7d5692f3a | [
"MIT"
] | null | null | null | (function ( views ) {
views.AppView = Backbone.View.extend({
el : '#content',
initialize : function () {
var tags = this.collection;
tags.on('add', this.addOne, this);
tags.on('reset', this.addAll, this);
tags.on('all', this.render, this);
tags.pager();
},
addAll : functi... | 17.878788 | 50 | 0.547458 |
a8052bbf46b36722c5723353a5556f69b3291ebc | 2,924 | js | JavaScript | index.js | emilylubkert/graphQL-restaurant-data-exercise | 961b64f1e0c46cb09f43e6d61ef1e2315fa9cd25 | [
"MIT"
] | null | null | null | index.js | emilylubkert/graphQL-restaurant-data-exercise | 961b64f1e0c46cb09f43e6d61ef1e2315fa9cd25 | [
"MIT"
] | null | null | null | index.js | emilylubkert/graphQL-restaurant-data-exercise | 961b64f1e0c46cb09f43e6d61ef1e2315fa9cd25 | [
"MIT"
] | null | null | null | var { graphqlHTTP } = require("express-graphql");
var { buildSchema, assertInputType } = require("graphql");
var express = require("express");
// Construct a schema, using GraphQL schema language
var restaurants = [
{
id: 1,
name: "WoodsHill ",
description:
"American cuisine, farm to table, with fr... | 22.320611 | 85 | 0.594049 |
a8056347cc11070b80cdf9780ce1004351b8bf90 | 3,063 | js | JavaScript | med-cabinet/src/components/BrowseCard.js | Build-Week-Med-Cabinet-3/Front-End | 88537896e165b5db59938cac023b42c251e879a1 | [
"MIT"
] | null | null | null | med-cabinet/src/components/BrowseCard.js | Build-Week-Med-Cabinet-3/Front-End | 88537896e165b5db59938cac023b42c251e879a1 | [
"MIT"
] | 28 | 2020-03-04T07:26:55.000Z | 2022-02-27T00:29:51.000Z | med-cabinet/src/components/BrowseCard.js | Build-Week-Med-Cabinet-3/Front-End | 88537896e165b5db59938cac023b42c251e879a1 | [
"MIT"
] | 3 | 2020-07-25T15:44:56.000Z | 2020-10-16T22:59:51.000Z | import React from "react";
// import {
// Card,
// CardImg,
// CardText,
// CardBody,
// CardTitle,
// CardSubtitle
// } from "reactstrap";
import {Button} from '@material-ui/core';
// import styled from "styled-components";
import { addFavorite } from "../actions/index";
import { connect } from "react-redu... | 26.179487 | 122 | 0.520078 |
a805984f086294a59792e237b8b2616d0bb60b72 | 3,941 | js | JavaScript | src/ui/ui_bundler_env.js | IBMResearch/kibana-bluemix | a07267965791f2582a978e8c7190a2af8d43e159 | [
"Apache-2.0"
] | null | null | null | src/ui/ui_bundler_env.js | IBMResearch/kibana-bluemix | a07267965791f2582a978e8c7190a2af8d43e159 | [
"Apache-2.0"
] | null | null | null | src/ui/ui_bundler_env.js | IBMResearch/kibana-bluemix | a07267965791f2582a978e8c7190a2af8d43e159 | [
"Apache-2.0"
] | null | null | null | 'use strict';
var _utils = require('../utils');
var _lodash = require('lodash');
const arr = v => [].concat(v || []);
module.exports = class UiBundlerEnv {
constructor(workingDir) {
// the location that bundle entry files and all compiles files will
// be written
this.workingDir = workingDir;
//... | 30.789063 | 183 | 0.586146 |
a805a2ece73aca03103ab8ba75e0ceadc2107afb | 330 | js | JavaScript | index.js | vweevers/node-add-transforms | 0837fe27396abfd40cb7f6ca4d9bc427ea85fb1f | [
"MIT"
] | null | null | null | index.js | vweevers/node-add-transforms | 0837fe27396abfd40cb7f6ca4d9bc427ea85fb1f | [
"MIT"
] | null | null | null | index.js | vweevers/node-add-transforms | 0837fe27396abfd40cb7f6ca4d9bc427ea85fb1f | [
"MIT"
] | null | null | null | 'use strict';
module.exports = function addTransforms(b, transforms) {
if (transforms) b.pipeline.on('package', function(pkg) {
var add = pkg.name && transforms[pkg.name]
if (add) {
var br = pkg.browserify || (pkg.browserify = {})
br.transform = [].concat(br.transform || []).concat(add)
... | 25.384615 | 62 | 0.6 |
a805c968fc60537519272f76a2af3df6ebff3596 | 9,861 | js | JavaScript | lib/index.js | static-dev/spike-collections | 3dddc0899c0c208e3fdf0b802ca7019e8877614d | [
"MIT"
] | 20 | 2016-09-14T18:21:18.000Z | 2018-11-06T04:40:55.000Z | lib/index.js | static-dev/spike-collections | 3dddc0899c0c208e3fdf0b802ca7019e8877614d | [
"MIT"
] | 40 | 2016-11-18T20:18:53.000Z | 2019-02-05T12:43:46.000Z | lib/index.js | static-dev/spike-collections | 3dddc0899c0c208e3fdf0b802ca7019e8877614d | [
"MIT"
] | 5 | 2016-11-28T17:42:27.000Z | 2017-11-24T04:55:56.000Z | const Util = require('spike-util')
const glob = require('glob')
const path = require('path')
const fs = require('fs')
const File = require('filewrap')
const Joi = require('joi')
const yaml = require('js-yaml')
const bindAllClass = require('es6bindall')
const bindAll = require('lodash.bindall')
const { map, reduce, filt... | 29.791541 | 84 | 0.580976 |
a80662b6450366e0786cfa0a703f0e886fda4954 | 1,015 | js | JavaScript | src/components/CommentBox/CommentBox.js | KSMorozov/react-facebook-tutorial | 2d2680f42e5fe0a04d56ac76aed43f3fa648ab8e | [
"MIT"
] | null | null | null | src/components/CommentBox/CommentBox.js | KSMorozov/react-facebook-tutorial | 2d2680f42e5fe0a04d56ac76aed43f3fa648ab8e | [
"MIT"
] | null | null | null | src/components/CommentBox/CommentBox.js | KSMorozov/react-facebook-tutorial | 2d2680f42e5fe0a04d56ac76aed43f3fa648ab8e | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import CommentList from '../CommentList/CommentList';
import CommentForm from '../CommentForm/CommentForm';
class CommentBox extends Component {
constructor(props) {
super(props);
this.state = {
comments: [
{
id: 1388534400000,
a... | 23.604651 | 75 | 0.568473 |
a806caaae1384e270f40396c8e346be82065c517 | 46,156 | js | JavaScript | backend/web/js/lib/adminlte.min.js | aneeshikmat/yii2-ready-to-use | 771a1a27d500f4bb698338005822cba6b37dd61d | [
"BSD-3-Clause"
] | 2 | 2021-11-12T22:18:36.000Z | 2022-01-21T18:23:59.000Z | backend/web/js/lib/adminlte.min.js | aneeshikmat/yii2-ready-to-use | 771a1a27d500f4bb698338005822cba6b37dd61d | [
"BSD-3-Clause"
] | null | null | null | backend/web/js/lib/adminlte.min.js | aneeshikmat/yii2-ready-to-use | 771a1a27d500f4bb698338005822cba6b37dd61d | [
"BSD-3-Clause"
] | null | null | null | /*!
* AdminLTE v3.2.0-rc (https://adminlte.io)
* Copyright 2014-2021 Colorlib <https://colorlib.com>
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define... | 7,692.666667 | 45,966 | 0.728984 |
a8073b4dc52cba8f22d3dc8010a1df044d678dd2 | 4,826 | js | JavaScript | app/services/withBars.js | wafflestudio/snuev-web | b6022039e914adebc10d19d899c726807f62713c | [
"MIT"
] | 8 | 2018-02-27T06:03:19.000Z | 2019-03-02T05:46:33.000Z | app/services/withBars.js | wafflestudio/snuev-web | b6022039e914adebc10d19d899c726807f62713c | [
"MIT"
] | 11 | 2018-03-04T14:07:52.000Z | 2021-05-09T13:21:12.000Z | app/services/withBars.js | SNUEV/SNUEV_Front | eb7253fb643760249df811fbba1e0b3d19745376 | [
"MIT"
] | 1 | 2019-12-17T02:49:53.000Z | 2019-12-17T02:49:53.000Z | // @flow
import * as React from 'react';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { createStructuredSelector } from 'reselect';
import Modal from 'react-modal';
import classNames from 'classnames';
import NavBar from '../components/NavBar';
import SearchFilter from '../com... | 24.13 | 91 | 0.616453 |
a8088f074d1fe82254d9479d717d29a8ed302f87 | 1,054 | js | JavaScript | src/org/schema/PaymentMethod.js | gloverkari/cass-npm | 96e14eeca654679b3cf941608cc3d7f13d46e8c9 | [
"Apache-2.0"
] | null | null | null | src/org/schema/PaymentMethod.js | gloverkari/cass-npm | 96e14eeca654679b3cf941608cc3d7f13d46e8c9 | [
"Apache-2.0"
] | 31 | 2021-09-23T21:26:44.000Z | 2022-03-30T21:24:21.000Z | src/org/schema/PaymentMethod.js | gloverkari/cass-npm | 96e14eeca654679b3cf941608cc3d7f13d46e8c9 | [
"Apache-2.0"
] | null | null | null | /**
* Schema.org/PaymentMethod
* A payment method is a standardized procedure for transferring the monetary amount for a purchase. Payment methods are characterized by the legal and technical structures used, and by the organization or group carrying out the transaction.\n\nCommonly used values:\n\n* http://purl.org/... | 50.190476 | 693 | 0.757116 |
a8094c2c61d58bdced1383d87e98863b189b95af | 399 | js | JavaScript | examples/debugger-example/replay-harness.js | kalevalp/watchtower | c56c0ac9d6c2ba75913ac0fce316c64e932000c1 | [
"MIT"
] | 2 | 2019-03-20T15:53:37.000Z | 2021-11-12T01:50:16.000Z | examples/debugger-example/replay-harness.js | kalevalp/watchtower | c56c0ac9d6c2ba75913ac0fce316c64e932000c1 | [
"MIT"
] | null | null | null | examples/debugger-example/replay-harness.js | kalevalp/watchtower | c56c0ac9d6c2ba75913ac0fce316c64e932000c1 | [
"MIT"
] | null | null | null | const replayer = require('watchtower-replayer');
const consumeHandler = replayer.createReplayHandler('handler.js', 'consume')
const produceHandler = replayer.createReplayHandler('handler.js', 'produce')
module.exports = {consumeHandler, produceHandler};
if (require.main === module) {
const execId = process.argv[... | 30.692308 | 76 | 0.756892 |
a809558f5d011193ed403209233be9daead71d58 | 531 | js | JavaScript | dist/partes/litisconsorte-passivo.js | bipbop/EntidadesPartes | 1db715378db8a7d2b5f8ef35c250af8fde3811e5 | [
"MIT"
] | 7 | 2019-10-03T19:22:29.000Z | 2021-12-01T00:45:27.000Z | dist/partes/litisconsorte-passivo.js | bipbop/EntidadesPartes | 1db715378db8a7d2b5f8ef35c250af8fde3811e5 | [
"MIT"
] | null | null | null | dist/partes/litisconsorte-passivo.js | bipbop/EntidadesPartes | 1db715378db8a7d2b5f8ef35c250af8fde3811e5 | [
"MIT"
] | 5 | 2019-07-26T17:57:05.000Z | 2020-08-26T12:18:37.000Z | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LitisconsortePassivo;
(function (LitisconsortePassivo) {
LitisconsortePassivo["Litispas"] = "Litispas";
LitisconsortePassivo["LitPass"] = "LitPass";
LitisconsortePassivo["LitisconsortePassiv"] = "LitisconsortePassiv";
Litis... | 53.1 | 95 | 0.770245 |
a80ae9b214ca3887c08aa3d08ffb3be3e9849664 | 666 | js | JavaScript | server/models.js | cafeamericano/graphql-coursera-tutorial | e5854c07f6d5e6dd1831648aa7827db2ce30d094 | [
"MIT"
] | null | null | null | server/models.js | cafeamericano/graphql-coursera-tutorial | e5854c07f6d5e6dd1831648aa7827db2ce30d094 | [
"MIT"
] | null | null | null | server/models.js | cafeamericano/graphql-coursera-tutorial | e5854c07f6d5e6dd1831648aa7827db2ce30d094 | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const { Schema } = mongoose;
const jobSchema = new Schema(
{
id: String,
companyId: { type: String, ref: 'CompanyModel'},
title: String,
description: String
},
{
collection: 'jobs',
versionKey: false
}
);
const compa... | 19.028571 | 63 | 0.57958 |
a80b1726e7fd491f4757328191e81e5aba7a7119 | 904 | js | JavaScript | dao/debitPaymentDao.js | renatonolo/OpenPDV-API | 0c5250994199a2408f55bd2fe93032a7f0eddbea | [
"Apache-2.0"
] | null | null | null | dao/debitPaymentDao.js | renatonolo/OpenPDV-API | 0c5250994199a2408f55bd2fe93032a7f0eddbea | [
"Apache-2.0"
] | null | null | null | dao/debitPaymentDao.js | renatonolo/OpenPDV-API | 0c5250994199a2408f55bd2fe93032a7f0eddbea | [
"Apache-2.0"
] | null | null | null | function DebitPaymentDAO(db){
this.db = db;
this.getByUuid = function(uuid, callback){
if(!uuid) return false;
var sql = "SELECT * FROM debit_payments WHERE uuid = '" + uuid + "'";
this.db.query(sql, function(err, rows, fields){
if(err) callback(err, null);
els... | 31.172414 | 176 | 0.558628 |
a80bb1c1c8bb2b5fe3721e7d8f905e27bba5a289 | 671 | js | JavaScript | back-end/mongodb/models/user.js | kyrcha/secure-mern-app | 75a39ec7b9548fbfe457dccc28e26b9a55d17906 | [
"MIT"
] | 3 | 2019-12-03T20:11:45.000Z | 2021-02-01T22:02:57.000Z | back-end/mongodb/models/user.js | kyrcha/secure-mern-app | 75a39ec7b9548fbfe457dccc28e26b9a55d17906 | [
"MIT"
] | 134 | 2020-03-24T19:25:54.000Z | 2021-05-10T20:43:24.000Z | back-end/mongodb/models/user.js | kyrcha/secure-mern-app | 75a39ec7b9548fbfe457dccc28e26b9a55d17906 | [
"MIT"
] | 1 | 2021-03-06T15:08:47.000Z | 2021-03-06T15:08:47.000Z | const mongoose = require('mongoose');
const jwt = require('jsonwebtoken');
const { Schema } = mongoose;
const userSchema = new Schema({
email: String,
password: String,
resetToken: String,
firstLogin: Date,
lastLogin: Date,
});
userSchema.virtual('jwt').get(() => {
console.log(this.id);
console.log(thi... | 20.333333 | 48 | 0.663189 |
a80bcf130260cadc6ef1893177a12eab0c6429f7 | 588 | js | JavaScript | platform/core/src/utils/index.test.js | togetupinfo/Viewers | d77fac51d686ad8f7fa9b4ab1c41c609f71bcecb | [
"MIT"
] | 1 | 2019-10-15T02:08:19.000Z | 2019-10-15T02:08:19.000Z | platform/core/src/utils/index.test.js | Mayerblue/Viewers | 01860b6094369870f3cd6702cc6dc3e75dfc1597 | [
"MIT"
] | null | null | null | platform/core/src/utils/index.test.js | Mayerblue/Viewers | 01860b6094369870f3cd6702cc6dc3e75dfc1597 | [
"MIT"
] | null | null | null | import * as utils from './index.js';
describe('Top level exports', () => {
test('should export the modules ', () => {
const expectedExports = [
'guid',
'ObjectPath',
'absoluteUrl',
'addServers',
'sortBy',
'writeScript',
'StackManager',
'studyMetadataManager',
... | 22.615385 | 54 | 0.591837 |
a80d48cb6e080720e4ce704d5dc1a5a34299210c | 16,841 | js | JavaScript | examples/jsm/utils/BufferGeometryUtils.js | shunp/three.js | 656e131cb02e8288c8ca68677d97af599715876d | [
"MIT"
] | 992 | 2019-06-25T11:12:05.000Z | 2022-03-29T04:24:27.000Z | examples/jsm/utils/BufferGeometryUtils.js | shunp/three.js | 656e131cb02e8288c8ca68677d97af599715876d | [
"MIT"
] | 87 | 2019-07-09T15:51:40.000Z | 2021-11-26T20:16:45.000Z | examples/jsm/utils/BufferGeometryUtils.js | shunp/three.js | 656e131cb02e8288c8ca68677d97af599715876d | [
"MIT"
] | 222 | 2019-07-03T20:19:35.000Z | 2022-03-10T16:02:36.000Z | /**
* @author mrdoob / http://mrdoob.com/
*/
import {
BufferAttribute,
BufferGeometry,
InterleavedBuffer,
InterleavedBufferAttribute,
TriangleFanDrawMode,
TriangleStripDrawMode,
TrianglesDrawMode,
Vector2,
Vector3
} from "../../../build/three.module.js";
var BufferGeometryUtils = {
computeTangents: funct... | 22.788904 | 139 | 0.625675 |
a80e31d9469f850cd401ba81c21c03a01976efc7 | 582 | js | JavaScript | src/js/components/hero.js | seangeleno/menu | e78ca0ac0957bdcb5d9bbb8930aa90b4b6b227ea | [
"MIT"
] | 2 | 2017-10-14T16:58:57.000Z | 2019-04-16T08:56:41.000Z | src/js/components/hero.js | seangeleno/menu | e78ca0ac0957bdcb5d9bbb8930aa90b4b6b227ea | [
"MIT"
] | null | null | null | src/js/components/hero.js | seangeleno/menu | e78ca0ac0957bdcb5d9bbb8930aa90b4b6b227ea | [
"MIT"
] | null | null | null | import { addClass, div, img, p, section, text } from '../builders';
export default function hero() {
const logo = addClass(img('static/fancybear_white.png'), 'logo');;
const the = addClass(p(text('The')), 'hero-text-light');
const fancyBear = addClass(p(text('Fancy Bear')), 'hero-text-bold');
const eateries... | 34.235294 | 79 | 0.680412 |
a80ea080a165294c935af7d54020f8a85f7519ec | 398 | js | JavaScript | html/namespaceEnergyPlus_1_1HeatingCoils.js | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | html/namespaceEnergyPlus_1_1HeatingCoils.js | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T13:32:09.000Z | 2020-07-08T13:32:09.000Z | html/namespaceEnergyPlus_1_1HeatingCoils.js | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | var namespaceEnergyPlus_1_1HeatingCoils =
[
[ "HeatingCoilEquipConditions", "structEnergyPlus_1_1HeatingCoils_1_1HeatingCoilEquipConditions.html", "structEnergyPlus_1_1HeatingCoils_1_1HeatingCoilEquipConditions" ],
[ "HeatingCoilNumericFieldData", "structEnergyPlus_1_1HeatingCoils_1_1HeatingCoilNumericFieldData... | 79.6 | 176 | 0.876884 |
a80ed28f537242a4bae1028b09f62a83dc6c3ff4 | 5,502 | js | JavaScript | test/unit/test-extension-location.js | jackbsteinberg/amphtml | 37af858be0781a07e3cd55ebde4b24949c040b37 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-09-20T09:50:40.000Z | 2019-09-20T09:50:40.000Z | test/unit/test-extension-location.js | jackbsteinberg/amphtml | 37af858be0781a07e3cd55ebde4b24949c040b37 | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2020-01-13T01:23:24.000Z | 2020-06-05T01:47:24.000Z | test/unit/test-extension-location.js | jackbsteinberg/amphtml | 37af858be0781a07e3cd55ebde4b24949c040b37 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-01-27T22:48:50.000Z | 2021-01-27T22:48:50.000Z | /**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 28.957895 | 80 | 0.563431 |
a80f0dbc61bd59312fd4cff25e97ec87304a4246 | 2,039 | js | JavaScript | src/components/TipsWidget.js | ionware/fintech-react | edde9fd98eff03e209c56670a0723a27a528b1c0 | [
"MIT"
] | null | null | null | src/components/TipsWidget.js | ionware/fintech-react | edde9fd98eff03e209c56670a0723a27a528b1c0 | [
"MIT"
] | null | null | null | src/components/TipsWidget.js | ionware/fintech-react | edde9fd98eff03e209c56670a0723a27a528b1c0 | [
"MIT"
] | null | null | null | import React, { useState } from 'react';
import PropTypes from 'prop-types';
import TipImage from '@assets/img/gold-tip.svg';
export default function TipsWidget({ tips }) {
const [active, setActive] = useState(0);
return (
<div>
<div className='pl-2 md:pl-0 mb-8 md:mb-10'>
<h2 className='text-bl... | 28.71831 | 80 | 0.462482 |
a81012a4390b24d563d5dc9eee4ca40abd3245d5 | 1,033 | js | JavaScript | src/components/board/Marker.js | arjanfrans/react-risk-board | 0eae7e7e39006a345753db048b0e645dab55f5ea | [
"MIT"
] | 1 | 2019-09-02T14:55:24.000Z | 2019-09-02T14:55:24.000Z | src/components/board/Marker.js | arjanfrans/react-risk-board | 0eae7e7e39006a345753db048b0e645dab55f5ea | [
"MIT"
] | null | null | null | src/components/board/Marker.js | arjanfrans/react-risk-board | 0eae7e7e39006a345753db048b0e645dab55f5ea | [
"MIT"
] | null | null | null | import React, { PropTypes } from 'react';
class Marker extends React.Component {
static propTypes = {
x: PropTypes.number.isRequired,
y: PropTypes.number.isRequired,
name: PropTypes.string.isRequired,
owner: PropTypes.object,
units: PropTypes.number
};
render () {
... | 22.955556 | 56 | 0.361084 |
a810a202bf07a326baaa8831b39de1186f9cf4fc | 478 | js | JavaScript | modules/boonex/posts/updates/10.0.6_11.0.0/source/js/polls.js | flexsocialbox/una | 4502c7f7c0fc83313c032cec58242b32cbb3a8cd | [
"MIT"
] | 173 | 2016-11-26T22:53:24.000Z | 2022-03-16T12:49:07.000Z | modules/boonex/posts/updates/10.0.6_11.0.0/source/js/polls.js | flexsocialbox/una | 4502c7f7c0fc83313c032cec58242b32cbb3a8cd | [
"MIT"
] | 3,273 | 2016-09-20T05:40:15.000Z | 2022-03-31T08:50:46.000Z | modules/boonex/posts/updates/10.0.6_11.0.0/source/js/polls.js | flexsocialbox/una | 4502c7f7c0fc83313c032cec58242b32cbb3a8cd | [
"MIT"
] | 127 | 2016-09-29T20:56:14.000Z | 2022-03-19T01:24:41.000Z | /**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup Posts Posts
* @ingroup UnaModules
*
* @{
*/
function BxPostsPolls(oOptions)
{
BxBaseModTextPolls.call(this, oOptions);
this._sObjName = oOptions.sObjName == undefined ? 'oBxPostsPolls... | 21.727273 | 90 | 0.696653 |
a8126309e011c18fc963b9176de1cb816fc48629 | 1,897 | js | JavaScript | flow-admin/src/main/resources/static/assets/useTable.01abb634.js | nian8/flow | 6eefd7d03a624ba1683e4f6acb4b51cee005c713 | [
"Apache-2.0"
] | 1 | 2021-08-20T06:50:44.000Z | 2021-08-20T06:50:44.000Z | flow-admin/src/main/resources/static/assets/useTable.01abb634.js | nian8/flow | 6eefd7d03a624ba1683e4f6acb4b51cee005c713 | [
"Apache-2.0"
] | null | null | null | flow-admin/src/main/resources/static/assets/useTable.01abb634.js | nian8/flow | 6eefd7d03a624ba1683e4f6acb4b51cee005c713 | [
"Apache-2.0"
] | null | null | null | var e=(e,t,a)=>new Promise(((o,n)=>{var l=e=>{try{i(a.next(e))}catch(t){n(t)}},s=e=>{try{i(a.throw(e))}catch(t){n(t)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(l,s);i((a=a.apply(e,t)).next())}));import{ah as t,az as a,au as o}from"./index.44a64fe8.js";import{r as n,a0 as l,u as s,C as i,t as r}from"./vendor... | 948.5 | 1,896 | 0.668424 |
a8130b9b035db823edc2a6f952a10a818695d6cf | 443 | js | JavaScript | models/contactUs.js | bethel-school-of-technology/Bored-Blogs-Backend | a83aae94a255494a5a52e316cc2be7b0ab89e6d6 | [
"MIT"
] | 1 | 2020-05-04T20:27:25.000Z | 2020-05-04T20:27:25.000Z | models/contactUs.js | bethel-school-of-technology/Bored-Blogs-Backend | a83aae94a255494a5a52e316cc2be7b0ab89e6d6 | [
"MIT"
] | null | null | null | models/contactUs.js | bethel-school-of-technology/Bored-Blogs-Backend | a83aae94a255494a5a52e316cc2be7b0ab89e6d6 | [
"MIT"
] | 2 | 2020-09-15T22:20:54.000Z | 2021-09-22T16:50:31.000Z | 'use strict';
const shared = require('../shared');
module.exports = (sequelize, DataTypes) => {
const ContactUs = sequelize.define('ContactUs', {
subject: DataTypes.STRING,
body: DataTypes.STRING,
...shared.fields
}, {
...shared.options
}
);
ContactUs.associate = function (models) {
... | 24.611111 | 56 | 0.632054 |
a813221196de1236fc2d1964bd3fc64f4b3ef46c | 9,998 | js | JavaScript | lib/MessageContainer.js | monikap0612/react-native-gifted-chat | 639df58ff6286eed7187b3e74599fe51cb2c5c28 | [
"MIT"
] | null | null | null | lib/MessageContainer.js | monikap0612/react-native-gifted-chat | 639df58ff6286eed7187b3e74599fe51cb2c5c28 | [
"MIT"
] | null | null | null | lib/MessageContainer.js | monikap0612/react-native-gifted-chat | 639df58ff6286eed7187b3e74599fe51cb2c5c28 | [
"MIT"
] | null | null | null | import PropTypes from 'prop-types';
import React from 'react';
import { FlatList, View, StyleSheet, Keyboard, TouchableOpacity, Text, ImageBackground } from 'react-native';
import LoadEarlier from './LoadEarlier';
import Message from './Message';
import Color from './Color';
import { warning } from './utils';
const st... | 39.992 | 701 | 0.566713 |
a813ac942632a3ddc2669f320fb4bfdca6118735 | 430 | js | JavaScript | src/assets/js/Observer.js | KNIGHTTH0R/ig-live-key | f5f82474f51c03308b6df9aaf6fc4a1ae2d8df1a | [
"MIT"
] | 1 | 2020-06-11T20:20:42.000Z | 2020-06-11T20:20:42.000Z | src/assets/js/Observer.js | lucasfrct/instagram-php | ee55280f4e31260fcc9bd6f2e37b020ba3d1aa21 | [
"MIT"
] | null | null | null | src/assets/js/Observer.js | lucasfrct/instagram-php | ee55280f4e31260fcc9bd6f2e37b020ba3d1aa21 | [
"MIT"
] | null | null | null | // cria a conexão persistente
class Observer
{
source = null;
constructor(url) {
this.source = new EventSource(url)
}
add(event, callback) {
this.source.addEventListener(event, (ev)=> {
callback(JSON.parse(ev.data))
});
}
}
/*
var obs = new Observer('src/Obse... | 17.916667 | 58 | 0.595349 |
a81438eb1168cfe4c4c9391546c9bf1da7ec1f66 | 311 | js | JavaScript | newIDE/app/src/stories/I18nProviderDecorator.js | Add00/GDevelop | b341bc5be0426e4902f709d8d0fb9670bae654df | [
"MIT"
] | 2 | 2020-05-23T14:15:30.000Z | 2020-06-20T13:23:59.000Z | newIDE/app/src/stories/I18nProviderDecorator.js | KairoMartins18/KGE | 64e934c15da38c7140abb5e1521321e161d82568 | [
"MIT"
] | 1 | 2018-12-22T14:07:59.000Z | 2018-12-22T14:07:59.000Z | newIDE/app/src/stories/I18nProviderDecorator.js | KairoMartins18/KGE | 64e934c15da38c7140abb5e1521321e161d82568 | [
"MIT"
] | 1 | 2020-09-15T11:32:36.000Z | 2020-09-15T11:32:36.000Z | // @flow
import React from 'react';
import { type StoryDecorator } from '@storybook/react';
import { I18nProvider } from '@lingui/react';
const i18nProviderDecorator: StoryDecorator = (story, context) => (
<I18nProvider language="en">{story(context)}</I18nProvider>
);
export default i18nProviderDecorator;
| 28.272727 | 67 | 0.742765 |
a81476483fb66b64646e11e7cf9a22ae1650cdab | 782 | js | JavaScript | tests/js/top.min.js | pug-php/pug-minify | 978ed84211b3e1e31fe5ff0580613bb73dc92863 | [
"MIT"
] | 7 | 2016-09-09T06:54:02.000Z | 2021-03-16T07:42:45.000Z | tests/js/top.min.js | pug-php/pug-minify | 978ed84211b3e1e31fe5ff0580613bb73dc92863 | [
"MIT"
] | 9 | 2016-07-30T15:29:58.000Z | 2021-05-02T14:29:55.000Z | tests/js/top.min.js | pug-php/pug-minify | 978ed84211b3e1e31fe5ff0580613bb73dc92863 | [
"MIT"
] | null | null | null | console.log("Hello");var cubes,list,math,num,number,opposite,race,square,slice=[].slice;number=42;opposite=true;if(opposite){number=-42}square=function(x){return x*x};list=[1,2,3,4,5];math={root:Math.sqrt,square:square,cube:function(x){return x*square(x)}};race=function(){var runners,winner;winner=arguments[0],runners=... | 391 | 781 | 0.730179 |
a814a53732ae3b776d9a14d27b231db8815bb120 | 3,602 | js | JavaScript | resources/js/utils.js | JesusQuishpe/PrefecturaElOro | e1c1d89c7d0439fac70e71b34192cfab87665c95 | [
"MIT"
] | null | null | null | resources/js/utils.js | JesusQuishpe/PrefecturaElOro | e1c1d89c7d0439fac70e71b34192cfab87665c95 | [
"MIT"
] | null | null | null | resources/js/utils.js | JesusQuishpe/PrefecturaElOro | e1c1d89c7d0439fac70e71b34192cfab87665c95 | [
"MIT"
] | null | null | null | import {URL_VIEWS} from "./conf.js";
function addTemplateToElement(element,template) {
element.innerHTML=template;
}
function loadTemplateToElement(path,element) {
getTemplate(path)
.then(res=>{
if(res.ok){
res.text()
.then(template=>{
addTemplateToElement(element,template);
conso... | 21.963415 | 70 | 0.61688 |
a814e06e65421fabb11e5c1ea09ed58efb42a418 | 2,138 | js | JavaScript | build/package/app/components/action/store.js | oleics/ac-vue-app | b0ea31768178daf2c77610fd0382d83e3d9a0490 | [
"Unlicense"
] | null | null | null | build/package/app/components/action/store.js | oleics/ac-vue-app | b0ea31768178daf2c77610fd0382d83e3d9a0490 | [
"Unlicense"
] | null | null | null | build/package/app/components/action/store.js | oleics/ac-vue-app | b0ea31768178daf2c77610fd0382d83e3d9a0490 | [
"Unlicense"
] | null | null | null |
var KEY = 'store';
var dottie = require('dottie');
var localStorage = typeof window === 'undefined' ? null : window.localStorage;
if (!localStorage) {
console.log('Mocking localStorage-api');
localStorage = {
getItem: function getItem(key) {},
setItem: function setItem(key, value) {},
removeItem: fun... | 25.152941 | 83 | 0.635173 |
a81504f6ab307fc59ea6578d7fc43b5f1a5f2d78 | 717 | js | JavaScript | src/app/app.component.e2e-spec.js | carluccyo/reese-admin | 68a83931ca385df37db4d2214caa6754810aa30f | [
"MIT"
] | null | null | null | src/app/app.component.e2e-spec.js | carluccyo/reese-admin | 68a83931ca385df37db4d2214caa6754810aa30f | [
"MIT"
] | null | null | null | src/app/app.component.e2e-spec.js | carluccyo/reese-admin | 68a83931ca385df37db4d2214caa6754810aa30f | [
"MIT"
] | null | null | null | describe('App', function () {
beforeEach(function () {
browser.get('/');
});
it('should have a title', function () {
expect(browser.getTitle()).toEqual("Angular 2 App | ng2-webpack");
});
it('should have <header>', function () {
expect(element(by.css('my-app header')).isPresent()).toEqual(true)... | 25.607143 | 82 | 0.60251 |
a81551da10a871a2af0ef45bfef09f31c6d0b166 | 3,916 | js | JavaScript | commands/Queue/jump.js | iconicaal/Icosical | e88ab40b855cc31f1058e5cc8143f8bd3ff2349b | [
"MIT"
] | null | null | null | commands/Queue/jump.js | iconicaal/Icosical | e88ab40b855cc31f1058e5cc8143f8bd3ff2349b | [
"MIT"
] | null | null | null | commands/Queue/jump.js | iconicaal/Icosical | e88ab40b855cc31f1058e5cc8143f8bd3ff2349b | [
"MIT"
] | null | null | null | const {
MessageEmbed,
Message
} = require("discord.js");
const config = require("../../botconfig/config.json");
const ee = require("../../botconfig/embed.json");
const settings = require("../../botconfig/settings.json");
const {
check_if_dj
} = require("../../handlers/functions")
module.exports = {
name: "jump", //... | 31.837398 | 160 | 0.624362 |
a815b9697c110e6cdd941b6027d2537eeb5556d0 | 2,424 | js | JavaScript | Server - Overhaul/src/classes/bundles.js | life-rs/realism-overhaul | 9e9907e7cfd33b34d5944eb9e626ae1e7d015759 | [
"MIT"
] | null | null | null | Server - Overhaul/src/classes/bundles.js | life-rs/realism-overhaul | 9e9907e7cfd33b34d5944eb9e626ae1e7d015759 | [
"MIT"
] | null | null | null | Server - Overhaul/src/classes/bundles.js | life-rs/realism-overhaul | 9e9907e7cfd33b34d5944eb9e626ae1e7d015759 | [
"MIT"
] | null | null | null | "use strict";
const path = require('path');
class BundlesServer {
constructor() {
this.bundles = [];
this.bundleBykey = {};
this.backendUrl = `https://${serverConfig.ip}:${serverConfig.port}`;
}
initialize(sessionID) {
for (const i in res.bundles) {
if(!("manif... | 32.32 | 138 | 0.525578 |
a816070843571ccb057a4397b1c6a5107348a695 | 2,879 | js | JavaScript | packages/babel-plugin-proposal-async-generator-functions/src/index.js | plourenco/babel | 5ed2b4484ab6f552d900f661c3f88c709f7b5e07 | [
"MIT"
] | 4 | 2018-07-03T14:45:38.000Z | 2021-11-09T10:46:49.000Z | packages/babel-plugin-proposal-async-generator-functions/src/index.js | AntiMatter-AMAT/babel | f7a9f10ba42a8b2fce0536d9b335836612eded40 | [
"MIT"
] | 4 | 2020-12-06T13:17:32.000Z | 2021-07-05T16:18:49.000Z | packages/babel-plugin-proposal-async-generator-functions/src/index.js | AntiMatter-AMAT/babel | f7a9f10ba42a8b2fce0536d9b335836612eded40 | [
"MIT"
] | 1 | 2021-07-01T21:29:00.000Z | 2021-07-01T21:29:00.000Z | import { declare } from "@babel/helper-plugin-utils";
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator";
import syntaxAsyncGenerators from "@babel/plugin-syntax-async-generators";
import { types as t } from "@babel/core";
import rewriteForAwait from "./for-await";
export default declare(api =>... | 28.79 | 78 | 0.633901 |
a8165ce4d9ef7615ce0b67721e28e5aa97ae38dd | 10,719 | js | JavaScript | docs/assets/search.js | matthieujabbour/diox | 66bf8c63d9a08936a8e9d3f4dfe41efcd0a9a07d | [
"MIT"
] | 9 | 2018-06-29T20:01:24.000Z | 2020-09-23T10:14:31.000Z | docs/assets/search.js | matthieujabbour/diox | 66bf8c63d9a08936a8e9d3f4dfe41efcd0a9a07d | [
"MIT"
] | 10 | 2018-09-24T17:31:55.000Z | 2020-05-21T13:11:02.000Z | docs/assets/search.js | matthieujabbour/diox | 66bf8c63d9a08936a8e9d3f4dfe41efcd0a9a07d | [
"MIT"
] | null | null | null | window.searchData = JSON.parse("{\"kinds\":{\"2\":\"Module\",\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\"},\"rows\":[{\"id\":0,\"kind\":2,\"name\":\"main\",\"url\":\"modules/main.html\",\"classes\":\"tsd-kind-mod... | 10,719 | 10,719 | 0.567497 |
a81663a8d41ba57b2151da1f97bf88307a27c317 | 1,928 | js | JavaScript | src/pages/Home.js | holdmypotion/React-Theme-Swticher | e8cced1e899ad2e4ca0f611ee66f84f26064d759 | [
"MIT"
] | 1 | 2021-04-13T11:37:21.000Z | 2021-04-13T11:37:21.000Z | src/pages/Home.js | holdmypotion/React-Theme-Swticher | e8cced1e899ad2e4ca0f611ee66f84f26064d759 | [
"MIT"
] | null | null | null | src/pages/Home.js | holdmypotion/React-Theme-Swticher | e8cced1e899ad2e4ca0f611ee66f84f26064d759 | [
"MIT"
] | 1 | 2022-02-08T16:18:32.000Z | 2022-02-08T16:18:32.000Z | import React, { useContext, useEffect } from "react";
import { GlobalContext } from "../context/globalContext";
import Layout from "../components/Layout";
import { Container, Flex } from "../styles/globalStyles";
import {
NavBar,
SwitchButton,
Body,
Heading,
SubPara,
Para,
Content,
} from "../styles/home... | 28.352941 | 80 | 0.528008 |
a8406f667b3b8cde2ad6d538394c9294ce07accb | 3,051 | js | JavaScript | lib/schema.js | macklinu/stale | 653ec60a22f12c03072ca476e61da730dd73d396 | [
"ISC"
] | null | null | null | lib/schema.js | macklinu/stale | 653ec60a22f12c03072ca476e61da730dd73d396 | [
"ISC"
] | null | null | null | lib/schema.js | macklinu/stale | 653ec60a22f12c03072ca476e61da730dd73d396 | [
"ISC"
] | null | null | null | const Joi = require('joi')
const fields = {
daysUntilStale: Joi.number()
.description('Number of days of inactivity before an Issue or Pull Request becomes stale'),
daysUntilClose: Joi.alternatives().try(Joi.number(), Joi.boolean().only(false))
.error(() => '"daysUntilClose" must be a number or false')
... | 48.428571 | 184 | 0.718781 |
a817611adac34328b69b419cf99a32ec49692712 | 616 | js | JavaScript | src/assets/scripts/home.js | sanupgs/ESC | 62a036b6f30ebbb757282125ae7dc9fc1a58126b | [
"MIT"
] | null | null | null | src/assets/scripts/home.js | sanupgs/ESC | 62a036b6f30ebbb757282125ae7dc9fc1a58126b | [
"MIT"
] | null | null | null | src/assets/scripts/home.js | sanupgs/ESC | 62a036b6f30ebbb757282125ae7dc9fc1a58126b | [
"MIT"
] | null | null | null | (function ($) {
$(document).ready(function(){
if($(window).width() > 767){
$('.home-section').viewportChecker({
classToAdd: 'inView',
offset: '50%'
});
}else{
$('.home-section').viewportChecker({
classToAdd: 'inView'... | 23.692308 | 48 | 0.407468 |
a8181be67f87fb494bc279eba0f0f241a18e5594 | 118 | js | JavaScript | pages/establishment/index.js | pcuk1979/asl-pages | 54159a3dd2f60b0c61e698f642bc1aca62d0fe48 | [
"MIT"
] | null | null | null | pages/establishment/index.js | pcuk1979/asl-pages | 54159a3dd2f60b0c61e698f642bc1aca62d0fe48 | [
"MIT"
] | null | null | null | pages/establishment/index.js | pcuk1979/asl-pages | 54159a3dd2f60b0c61e698f642bc1aca62d0fe48 | [
"MIT"
] | null | null | null | module.exports = {
list: require('./list'),
details: require('./details'),
dashboard: require('./dashboard')
};
| 19.666667 | 35 | 0.627119 |
a81824987d58e2cf7b2b047c81a244df65cf9dd8 | 4,749 | js | JavaScript | lichkin-ui/src/main/resources/META-INF/resources/webjars/LichKin-UI/1.0.0/lichkin-base.js | LichKinContributor/lichkin-ui | 0e8add38c44b46fdc6be363401173e3ce6140af9 | [
"MIT"
] | null | null | null | lichkin-ui/src/main/resources/META-INF/resources/webjars/LichKin-UI/1.0.0/lichkin-base.js | LichKinContributor/lichkin-ui | 0e8add38c44b46fdc6be363401173e3ce6140af9 | [
"MIT"
] | null | null | null | lichkin-ui/src/main/resources/META-INF/resources/webjars/LichKin-UI/1.0.0/lichkin-base.js | LichKinContributor/lichkin-ui | 0e8add38c44b46fdc6be363401173e3ce6140af9 | [
"MIT"
] | 1 | 2018-08-02T07:10:00.000Z | 2018-08-02T07:10:00.000Z | ;
/**
* 原生JavaScript代码实现
* @author SuZhou LichKin Information Technology Co., Ltd.
*/
/**
* 判断是否为JSON对象
* @param json JSON对象
*/
var isJSON = function(json) {
return (typeof json == 'object') && Object.prototype.toString.call(json).toLowerCase() == "[object object]" && !json.length;
};
/**
* 判断是否为空JSON
* @pa... | 20.381974 | 161 | 0.549589 |
a8189cdf07872c5039d77f29b783ae8864142e1b | 1,367 | js | JavaScript | lib/schemaValidator.js | jj101k/jsonapi-framework | f59dfe96e37a1fc1bb967cb73b676b4ef63cb230 | [
"MIT"
] | null | null | null | lib/schemaValidator.js | jj101k/jsonapi-framework | f59dfe96e37a1fc1bb967cb73b676b4ef63cb230 | [
"MIT"
] | null | null | null | lib/schemaValidator.js | jj101k/jsonapi-framework | f59dfe96e37a1fc1bb967cb73b676b4ef63cb230 | [
"MIT"
] | null | null | null | "use strict"
const SchemaHelper = require("./SchemaHelper")
/**
*
*/
class schemaValidator {
/**
*
* @param {{[resourceName: string]: import("../types/ResourceConfig").ResourceConfig}} resources
*/
static validate(resources) {
for(const [resourceName, resource] of Object.entries(resou... | 40.205882 | 207 | 0.599854 |
a818b0e02d2eadb3fbdb947fe09bfa4d624303ff | 167 | js | JavaScript | src/screens/index.js | taylorbyks/plantmanager | 5f2ee366008c0693dc910af89f327d1bcaf96c7a | [
"MIT"
] | null | null | null | src/screens/index.js | taylorbyks/plantmanager | 5f2ee366008c0693dc910af89f327d1bcaf96c7a | [
"MIT"
] | null | null | null | src/screens/index.js | taylorbyks/plantmanager | 5f2ee366008c0693dc910af89f327d1bcaf96c7a | [
"MIT"
] | null | null | null | export * from './Welcome'
export * from './Logon'
export * from './Confirmation'
export * from './PlantSelect'
export * from './PlantSave'
export * from './UserPlants' | 27.833333 | 30 | 0.682635 |
a81a8b24f9a1c3cf956f571549eb47b5e9af4e29 | 444 | js | JavaScript | src/index.js | elvinyeka/brackets | b6e0b6d3444ba5aa2583f81928677a4f1733ac57 | [
"MIT"
] | null | null | null | src/index.js | elvinyeka/brackets | b6e0b6d3444ba5aa2583f81928677a4f1733ac57 | [
"MIT"
] | null | null | null | src/index.js | elvinyeka/brackets | b6e0b6d3444ba5aa2583f81928677a4f1733ac57 | [
"MIT"
] | null | null | null | module.exports = function check(str, bracketsConfig) {
// your solution
const stack = [];
const BRACKETS_PAIR = Object.fromEntries(bracketsConfig);
for (let i = 0; i < str.length; i++) {
let topItem = stack[stack.length - 1];
if (BRACKETS_PAIR[topItem] === str[i]) {
stack.pop();
} else if (B... | 23.368421 | 59 | 0.592342 |
a81b3a6926e381d4d7771a818c28e5b47ce0ca74 | 7,240 | js | JavaScript | test/spec/provider/bpmn/ProcessParticipantSpec.js | hrzwkstim01/bpmn-js-properties-panel | aa85acbdd4f24c9be4913856e402d7680666bde5 | [
"MIT"
] | null | null | null | test/spec/provider/bpmn/ProcessParticipantSpec.js | hrzwkstim01/bpmn-js-properties-panel | aa85acbdd4f24c9be4913856e402d7680666bde5 | [
"MIT"
] | null | null | null | test/spec/provider/bpmn/ProcessParticipantSpec.js | hrzwkstim01/bpmn-js-properties-panel | aa85acbdd4f24c9be4913856e402d7680666bde5 | [
"MIT"
] | null | null | null | 'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
/* global bootstrapModeler, inject */
var propertiesPanelModule = require('lib'),
domQuery = require('min-dom').query,
domClasses = require('min-dom').classes,
coreModule = require... | 24.709898 | 120 | 0.650138 |
a81bfd4f2ab30ea80e43531db7a355f349d514ef | 1,087 | js | JavaScript | resources/js/app.js | keinagae/inertia_cosmetics_admin | 894070d5d66312e845dabe1e11d287ace68696e4 | [
"MIT"
] | null | null | null | resources/js/app.js | keinagae/inertia_cosmetics_admin | 894070d5d66312e845dabe1e11d287ace68696e4 | [
"MIT"
] | null | null | null | resources/js/app.js | keinagae/inertia_cosmetics_admin | 894070d5d66312e845dabe1e11d287ace68696e4 | [
"MIT"
] | null | null | null | try {
window.$ = window.jQuery = require('jquery');
} catch (e) {
console.log(e);
}
import Vue from 'vue';
import Cookies from 'js-cookie';
import ElementUI from 'element-ui';
import "./firebase"
import App from './views/App';
import store from './store';
import router from '@/router';
import i18n from './lang'; /... | 22.645833 | 73 | 0.668813 |