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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1f00ea36829f0a115fb1fbfc8e1cfbe49df0bff | 357 | js | JavaScript | src/commons/CustomCheckbox/__test__/CustomCheckbox.test.js | bang-eoh/react-native-personal-health | 717d6efbfea722990a0612b9d25524307dbd5076 | [
"MIT"
] | null | null | null | src/commons/CustomCheckbox/__test__/CustomCheckbox.test.js | bang-eoh/react-native-personal-health | 717d6efbfea722990a0612b9d25524307dbd5076 | [
"MIT"
] | null | null | null | src/commons/CustomCheckbox/__test__/CustomCheckbox.test.js | bang-eoh/react-native-personal-health | 717d6efbfea722990a0612b9d25524307dbd5076 | [
"MIT"
] | null | null | null | import React from 'react';
import renderer, { act } from 'react-test-renderer';
import CustomCheckbox from '../index';
describe('Test custom checkbox', () => {
let tree;
test('create custom checkbox checked', () => {
act(() => {
tree = renderer.create(<CustomCheckbox value />);
});
expect(tree.to... | 25.5 | 55 | 0.621849 |
a1f06ce66bcd70ef5d011d7a299cb3adbcf041c1 | 1,510 | js | JavaScript | app/render/container/Router.js | cailong1028/electron-updater-example | a599a9e487f2ff77fc55e2b3ac1f78ae6b8bf7a3 | [
"Unlicense"
] | null | null | null | app/render/container/Router.js | cailong1028/electron-updater-example | a599a9e487f2ff77fc55e2b3ac1f78ae6b8bf7a3 | [
"Unlicense"
] | null | null | null | app/render/container/Router.js | cailong1028/electron-updater-example | a599a9e487f2ff77fc55e2b3ac1f78ae6b8bf7a3 | [
"Unlicense"
] | null | null | null | import React, {Component} from 'react';
import {Route, Switch, Redirect} from 'react-router';
import {BrowserRouter,HashRouter, Link} from 'react-router-dom';
import {connect} from 'react-redux';
import Home from '../component/Home';
import Article from '../component/Article';
const {ipcRenderer} = require('electron');... | 30.2 | 81 | 0.519868 |
a1f156f6daeb481186039abcb1cd82456bdd7297 | 1,312 | js | JavaScript | lib/chunking-test.js | sixplussix/socketjs | 77c9652a9d3cc198a2af280bf0b889013ac68010 | [
"MIT"
] | null | null | null | lib/chunking-test.js | sixplussix/socketjs | 77c9652a9d3cc198a2af280bf0b889013ac68010 | [
"MIT"
] | null | null | null | lib/chunking-test.js | sixplussix/socketjs | 77c9652a9d3cc198a2af280bf0b889013ac68010 | [
"MIT"
] | null | null | null | import * as utils from './utils'
export const app = {
chunking_test (req, res, _, next_filter) {
res.setHeader('Content-Type', 'application/javascript; charset=UTF-8')
res.writeHead(200)
let write = (payload) => {
try {
res.write(payload + '\n')
} catch (x) {
return
}
... | 25.230769 | 74 | 0.552591 |
a1f19618b6f5f33680df90d03b5ea9e5dadb5afb | 2,805 | js | JavaScript | src/icons/PhCopy.js | phosphor-icons/phosphr-webcomponents | d763567e8c6aa177fa5929f528bcb11e46952a15 | [
"MIT"
] | 3 | 2020-11-28T21:09:22.000Z | 2021-03-23T03:55:46.000Z | src/icons/PhCopy.js | phosphor-icons/phosphr-webcomponents | d763567e8c6aa177fa5929f528bcb11e46952a15 | [
"MIT"
] | 1 | 2021-02-11T21:43:15.000Z | 2021-08-29T16:40:10.000Z | src/icons/PhCopy.js | phosphor-icons/phosphr-webcomponents | d763567e8c6aa177fa5929f528bcb11e46952a15 | [
"MIT"
] | 1 | 2021-01-10T19:32:19.000Z | 2021-01-10T19:32:19.000Z | /* GENERATED FILE */
import { html, svg, define } from "hybrids";
const PhCopy = {
color: "currentColor",
size: "1em",
weight: "regular",
mirrored: false,
render: ({ color, size, weight, mirrored }) => html`
<svg
xmlns="http://www.w3.org/2000/svg"
width="${size}"
height="${size}"
... | 66.785714 | 325 | 0.644563 |
a1f29fc57bd79dd7a74d07f670b626cd6a8b1411 | 486 | js | JavaScript | src/components/MenuBar/index.js | andreMCD/blog-Andre-Macedo | d1920388e5d6153df50a1294a1d562c5f6a13988 | [
"MIT"
] | null | null | null | src/components/MenuBar/index.js | andreMCD/blog-Andre-Macedo | d1920388e5d6153df50a1294a1d562c5f6a13988 | [
"MIT"
] | null | null | null | src/components/MenuBar/index.js | andreMCD/blog-Andre-Macedo | d1920388e5d6153df50a1294a1d562c5f6a13988 | [
"MIT"
] | null | null | null | import React from "react"
import { Home } from "styled-icons/boxicons-regular/Home"
import { LightBulb as Light } from "styled-icons/octicons/LightBulb"
import * as S from "./styled"
const MenuBar = () => (
<S.MenuBarGroup>
<S.MenuBarLink to="/" title="Voltar para Home">
<S.MenuBarItem>
<Home />
... | 22.090909 | 68 | 0.639918 |
a1f4c60c73c256bd6161ea4cf7d6111ffefaf0bf | 4,141 | js | JavaScript | src/ArgsManager.js | aeolingamenfel/hephaestus | 0d6ec2877ba3d3be77a21ce4730e325ad5c404d0 | [
"0BSD"
] | null | null | null | src/ArgsManager.js | aeolingamenfel/hephaestus | 0d6ec2877ba3d3be77a21ce4730e325ad5c404d0 | [
"0BSD"
] | null | null | null | src/ArgsManager.js | aeolingamenfel/hephaestus | 0d6ec2877ba3d3be77a21ce4730e325ad5c404d0 | [
"0BSD"
] | null | null | null | class ArgsManager {
constructor() {
this.argsArray = process.argv;
this.flags = {};
this.parameters = {};
this.sort();
}
/**
* Sorts the raw args into flags and arguments.
*/
sort() {
for(let x = 0; x < this.argsArray.length; x++) {
const ... | 28.958042 | 80 | 0.568945 |
a1f4ec1f7d432ebc0093346558ab61638b119251 | 641 | js | JavaScript | sub-components/pathfinding-visualiser-summary-line/pathfinding-visualiser-summary-line.js | rnagulapalle/pathfinding-visualiser | b64d13cf14140ce07683414dfa125ed25e7e6af5 | [
"MIT"
] | 51 | 2015-01-25T04:34:35.000Z | 2022-03-25T11:13:29.000Z | sub-components/pathfinding-visualiser-summary-line/pathfinding-visualiser-summary-line.js | rnagulapalle/pathfinding-visualiser | b64d13cf14140ce07683414dfa125ed25e7e6af5 | [
"MIT"
] | 21 | 2015-05-30T17:22:59.000Z | 2018-09-23T10:52:18.000Z | sub-components/pathfinding-visualiser-summary-line/pathfinding-visualiser-summary-line.js | Tyriar/pathfinding-visualiser | b64d13cf14140ce07683414dfa125ed25e7e6af5 | [
"MIT"
] | 12 | 2015-05-26T01:28:04.000Z | 2022-02-05T23:04:44.000Z | /**
* @license
* pathfinding-visualiser <http://github.com/Tyriar/pathfinding-visualiser>
* Copyright 2014 Daniel Imms <http://www.growingwiththeweb.com>
* Released under the MIT license <http://github.com/Tyriar/pathfinding-visualiser/blob/master/LICENSE>
*/
/*global Polymer*/
(function () {
'use strict';
Po... | 21.366667 | 103 | 0.631825 |
a1f50ab81ca75eaf2a8e1db48ff9aef5857ff1b3 | 179 | js | JavaScript | lib/maze/leftCanvas.js | atilamx/pac-man- | 683b6573cfabd321aad6f9fae96e5942d9d33386 | [
"BSD-2-Clause"
] | 1 | 2020-07-30T19:40:48.000Z | 2020-07-30T19:40:48.000Z | lib/maze/leftCanvas.js | atilamx/pac-man- | 683b6573cfabd321aad6f9fae96e5942d9d33386 | [
"BSD-2-Clause"
] | null | null | null | lib/maze/leftCanvas.js | atilamx/pac-man- | 683b6573cfabd321aad6f9fae96e5942d9d33386 | [
"BSD-2-Clause"
] | null | null | null | Window.leftCanvas = Window.ScreenCanvas.clone();
Window.leftCanvas.init({
context: Window.InitializeCanvas('myCanvas2').context,
color: 'lightgreen',
speed: 1
}
);
| 22.375 | 58 | 0.698324 |
a1f64325b4bbbfa623342f0c935ea491d1945984 | 1,727 | js | JavaScript | www/js/es5/posts/render/posts.js | Dereban/bun | 813ceb6788643d73d535aa7d8bb43e086e15f893 | [
"MIT"
] | null | null | null | www/js/es5/posts/render/posts.js | Dereban/bun | 813ceb6788643d73d535aa7d8bb43e086e15f893 | [
"MIT"
] | null | null | null | www/js/es5/posts/render/posts.js | Dereban/bun | 813ceb6788643d73d535aa7d8bb43e086e15f893 | [
"MIT"
] | null | null | null | "use strict";function _taggedTemplateLiteral(e,n){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}var _templateObject=_taggedTemplateLiteral(['<section id="p','" class="','">\n <div class="background glass">\n ','\n <span class="omit"></span>\n </div>\n </section>'],['<section... | 575.666667 | 1,668 | 0.629994 |
a1f702594a253f8113773195c2a5699dd174edc6 | 788 | js | JavaScript | demo/blog/js/widgets/comment.js | eliace/ergojs-site | 4f9913490cc12085f2811dbb838368f2f5879e5c | [
"MIT"
] | null | null | null | demo/blog/js/widgets/comment.js | eliace/ergojs-site | 4f9913490cc12085f2811dbb838368f2f5879e5c | [
"MIT"
] | null | null | null | demo/blog/js/widgets/comment.js | eliace/ergojs-site | 4f9913490cc12085f2811dbb838368f2f5879e5c | [
"MIT"
] | null | null | null |
Ergo.defineClass('App.widgets.FeedComment', 'Ergo.widgets.Media', {
defaults: {
as: 'feed-comment',
$before: {
$content: {
dataId: 'avatar',
width: 48,
as: 'circular',
binding: function(v) {
this.opt('src', 'img/avatars/'+v);
}
}
},
$content: {
$title... | 14.867925 | 68 | 0.470812 |
a1f7fcf16dc5dd8b9b24296e4eaa9b541daef9d8 | 411 | js | JavaScript | test/services/render/hooks/checkCache.test.js | rapee/boo | b81037282d9c2d300569438b9d9784e2655def18 | [
"MIT"
] | null | null | null | test/services/render/hooks/checkCache.test.js | rapee/boo | b81037282d9c2d300569438b9d9784e2655def18 | [
"MIT"
] | null | null | null | test/services/render/hooks/checkCache.test.js | rapee/boo | b81037282d9c2d300569438b9d9784e2655def18 | [
"MIT"
] | null | null | null | 'use strict';
const assert = require('assert');
const checkCache = require('../../../../src/services/render/hooks/checkCache.js');
describe('render checkCache hook', () => {
it('hook can be used', () => {
const mockHook = {
type: 'before',
app: {},
params: {},
result: {},
data: {}
... | 19.571429 | 82 | 0.530414 |
a1f7febbeae930d147cf837515a5f2ef1687a737 | 2,450 | js | JavaScript | server/src/api/products/product.controller.js | Rubenoti/api-shop-proyect | 60d8c2b6e88299671390058f9336276d662c4f48 | [
"MIT"
] | null | null | null | server/src/api/products/product.controller.js | Rubenoti/api-shop-proyect | 60d8c2b6e88299671390058f9336276d662c4f48 | [
"MIT"
] | null | null | null | server/src/api/products/product.controller.js | Rubenoti/api-shop-proyect | 60d8c2b6e88299671390058f9336276d662c4f48 | [
"MIT"
] | null | null | null | const Product = require('./product.model');
const { setError } = require('../../utils/errors');
const { deleteImgCloudinary } = require('../../middlewares/deleteFile');
const getAllProducts = async (req, res, next) => {
try {
const products = await Product.find();
return res.status(200).json(produ... | 29.878049 | 79 | 0.592653 |
a1f83033e807269dc5de4c0c7a0ba332ba656dd6 | 1,058 | js | JavaScript | basic/6-mod-mian.js | a982338665/node-express | 702b81cd3b14734c0dfc3f3fcbdea26657298d65 | [
"MIT"
] | null | null | null | basic/6-mod-mian.js | a982338665/node-express | 702b81cd3b14734c0dfc3f3fcbdea26657298d65 | [
"MIT"
] | 2 | 2021-01-06T08:25:14.000Z | 2021-05-10T06:46:05.000Z | basic/6-mod-mian.js | a982338665/node-express | 702b81cd3b14734c0dfc3f3fcbdea26657298d65 | [
"MIT"
] | null | null | null |
const modA = require('./4-mod-a');
const modB = require('./5-mod-b');
console.log(modA.test);
console.log(modB.test);
/*!
解释:
1.依赖模块A,进入执行
module.exports.test = "A"; //初始化test
const modB = require('./5-mod-b');
-- 依赖模块B,进入执行
module.exports.test = "B"; //赋值test
... | 31.117647 | 84 | 0.518904 |
a1fa0eb2dea358a026e21b577bf544d24e4f9241 | 3,254 | js | JavaScript | src/PTV.Application.Web/wwwroot/js/app/Routes/FrontPage/routes/Relations/containers/Relations.js | MikkoVirenius/ptv-1.7 | c2fd52c6c9774722b0a3e958d8537fa7de322207 | [
"MIT"
] | null | null | null | src/PTV.Application.Web/wwwroot/js/app/Routes/FrontPage/routes/Relations/containers/Relations.js | MikkoVirenius/ptv-1.7 | c2fd52c6c9774722b0a3e958d8537fa7de322207 | [
"MIT"
] | null | null | null | src/PTV.Application.Web/wwwroot/js/app/Routes/FrontPage/routes/Relations/containers/Relations.js | MikkoVirenius/ptv-1.7 | c2fd52c6c9774722b0a3e958d8537fa7de322207 | [
"MIT"
] | null | null | null | import Relations from '../components/Relations'
import { connect } from 'react-redux'
import { compose } from 'redux'
import * as ServiceAndChannelSelectors from 'Containers/Relations/ServiceAndChannels/ServiceAndChannel/Selectors'
import * as CommonServiceAndChannelsSelectors from 'Containers/Relations/ServiceAndChann... | 61.396226 | 181 | 0.801168 |
a1fa491fa0f9471205366a8e813cb228abd6c3ed | 5,579 | js | JavaScript | gesture.js | songzxDev/wpk | dc8eb064fbee3f558e5d1d5b738a402c8dd8396f | [
"Apache-2.0"
] | 1 | 2019-11-13T07:51:18.000Z | 2019-11-13T07:51:18.000Z | gesture.js | songzxDev/wpk | dc8eb064fbee3f558e5d1d5b738a402c8dd8396f | [
"Apache-2.0"
] | 1 | 2021-05-10T12:40:51.000Z | 2021-05-10T12:40:51.000Z | gesture.js | songzxDev/wpk | dc8eb064fbee3f558e5d1d5b738a402c8dd8396f | [
"Apache-2.0"
] | null | null | null | export function enableGesture(main) {
let start = (point, context) => {
//console.log("start")
context.startX = point.clientX;
context.startY = point.clientY;
context.startTime = Date.now();
context.isTap = true; // 轻点击
context.isPan = false; // 拖动
context.i... | 32.248555 | 85 | 0.525363 |
a1fa4a74a1f4f44b6dc4c44fd0a70236f9b7609d | 100 | js | JavaScript | lib/mixer.js | MikeLindenau/emu | 86b2ec1b08a2224cd19f8b248ab3951612839d9f | [
"MIT"
] | null | null | null | lib/mixer.js | MikeLindenau/emu | 86b2ec1b08a2224cd19f8b248ab3951612839d9f | [
"MIT"
] | null | null | null | lib/mixer.js | MikeLindenau/emu | 86b2ec1b08a2224cd19f8b248ab3951612839d9f | [
"MIT"
] | null | null | null |
module.exports = function mixer(root) {
return function (func) {
return func.call(root)
}
} | 16.666667 | 39 | 0.66 |
a1fa995c17f90dcc38c3a96fb9e0e35d33240aae | 2,724 | js | JavaScript | app/assets/javascripts/registry/explorer/constants/details.js | RyanCatalina/gitlabhq | c8003cdfe1597fa6aab21e91aab8cb77097e7eea | [
"MIT"
] | 1 | 2020-06-07T14:35:40.000Z | 2020-06-07T14:35:40.000Z | app/assets/javascripts/registry/explorer/constants/details.js | RyanCatalina/gitlabhq | c8003cdfe1597fa6aab21e91aab8cb77097e7eea | [
"MIT"
] | null | null | null | app/assets/javascripts/registry/explorer/constants/details.js | RyanCatalina/gitlabhq | c8003cdfe1597fa6aab21e91aab8cb77097e7eea | [
"MIT"
] | null | null | null | import { s__ } from '~/locale';
// Translations strings
export const DETAILS_PAGE_TITLE = s__('ContainerRegistry|%{imageName} tags');
export const DELETE_TAG_ERROR_MESSAGE = s__(
'ContainerRegistry|Something went wrong while marking the tag for deletion.',
);
export const DELETE_TAG_SUCCESS_MESSAGE = s__(
'Contai... | 44.655738 | 124 | 0.801028 |
a1fd6aa04383574607494888d3828e5c3021ad79 | 366 | js | JavaScript | extension/src/content/templates/position.js | knightjdr/gene-info | 9cf539ed477b2b722b0181eae6c14e6ea639d821 | [
"MIT"
] | 11 | 2019-01-31T15:44:37.000Z | 2022-02-02T23:37:46.000Z | extension/src/content/templates/position.js | knightjdr/gene-info | 9cf539ed477b2b722b0181eae6c14e6ea639d821 | [
"MIT"
] | 16 | 2019-01-22T17:06:41.000Z | 2022-02-24T18:41:27.000Z | extension/src/content/templates/position.js | knightjdr/gene-info | 9cf539ed477b2b722b0181eae6c14e6ea639d821 | [
"MIT"
] | 1 | 2019-02-04T02:40:15.000Z | 2019-02-04T02:40:15.000Z | const position = (stateStyle, panel = true) => {
let style = '';
if (stateStyle.right) {
style += `left: auto;right: ${stateStyle.right};`;
} else if (stateStyle.left) {
style += `left: ${stateStyle.left};right: auto;`;
}
if (panel && stateStyle.width) {
style += `width: ${stateStyle.width};`;
}... | 24.4 | 54 | 0.603825 |
a1fdc175a780d4c71174730628d53eb0e9c35aee | 630 | js | JavaScript | yt/index.asp_arquivos/topo_data/banner_rotativo.js | igormba/yogoreta-tamashii | 00b9df0284eba6716b28bfa694b1099338d8cf31 | [
"MIT"
] | null | null | null | yt/index.asp_arquivos/topo_data/banner_rotativo.js | igormba/yogoreta-tamashii | 00b9df0284eba6716b28bfa694b1099338d8cf31 | [
"MIT"
] | null | null | null | yt/index.asp_arquivos/topo_data/banner_rotativo.js | igormba/yogoreta-tamashii | 00b9df0284eba6716b28bfa694b1099338d8cf31 | [
"MIT"
] | null | null | null | function Banners()
{
var MNews = new Array();
MNews[0]= '<A HREF="http://www.tvshow.com.br/v2/assinar/assinar.asp" TARGET="conteudo"><IMG SRC="http://www.tvshow.com.br/v2/campanha_mes/CP_Outubro_07.gif" WIDTH=468 HEIGHT=60 BORDER=0></a>'
MNews[1]= '<A HREF="http://www.tvshow.com.br/v2/promocoes/pg_promocoes.a... | 70 | 298 | 0.714286 |
a1fdcbea4cae1cdaf7f47d7eab40aba84b84535d | 431 | js | JavaScript | src/pages/index.js | AnssamGhezala/portfolio-v3 | 9579f8ac53ec3a94a3d30b82fd285dffe6ea5198 | [
"MIT"
] | null | null | null | src/pages/index.js | AnssamGhezala/portfolio-v3 | 9579f8ac53ec3a94a3d30b82fd285dffe6ea5198 | [
"MIT"
] | 1 | 2019-11-10T01:36:32.000Z | 2019-11-11T06:36:31.000Z | src/pages/index.js | AnssamGhezala/portfolio-v3 | 9579f8ac53ec3a94a3d30b82fd285dffe6ea5198 | [
"MIT"
] | null | null | null | import React from "react"
import Layout from "../components/layout"
import * as Styled from "../stylesheet/styled"
import { Helmet } from "react-helmet"
import HomeDescription from "../components/HomeDescription"
export default () => (
<Layout>
<Helmet>
<meta charSet="utf-8" />
<title>Anssam Ghezala'... | 23.944444 | 59 | 0.656613 |
a1fe92d5630bf80d39d5cfb79411cbef60b3c849 | 298 | js | JavaScript | server/middleware/ctx.js | bxm0927/nuxt-template | 537a1e6a77d3d5930c58ca8ce83c7f753a84792a | [
"MIT"
] | 3 | 2020-05-04T15:37:17.000Z | 2020-08-06T17:00:45.000Z | server/middleware/ctx.js | bxm0927/nuxt-template | 537a1e6a77d3d5930c58ca8ce83c7f753a84792a | [
"MIT"
] | 3 | 2021-03-10T16:25:52.000Z | 2022-01-22T11:51:09.000Z | server/middleware/ctx.js | bxm0927/nuxt-template | 537a1e6a77d3d5930c58ca8ce83c7f753a84792a | [
"MIT"
] | null | null | null | /*
* 通过 `req.ctx(Model)` 来创建一个 Model
* @Author: xiaoming.bai
* @Date: 2020-05-03 11:31:09
* @Last Modified by: xiaoming.bai
* @Last Modified time: 2020-05-03 12:26:23
*/
module.exports = () => (req, res, next) => {
const ctx = { req, res }
req.ctx = (Model) => new Model(ctx)
next()
}
| 21.285714 | 44 | 0.590604 |
a1ff224d2f95c8ae5bbc90771535612ad6dfa2d6 | 3,694 | js | JavaScript | snowpear/libs/core/egret/text/TextInput.js | sunzhaoping/fastmsg | 5dd0660f260d6a99de09fb130e0727bbb9ec94cb | [
"MIT"
] | 1 | 2018-12-06T14:03:33.000Z | 2018-12-06T14:03:33.000Z | snowpear/libs/core/egret/text/TextInput.js | sunzhaoping/fastmsg | 5dd0660f260d6a99de09fb130e0727bbb9ec94cb | [
"MIT"
] | null | null | null | snowpear/libs/core/egret/text/TextInput.js | sunzhaoping/fastmsg | 5dd0660f260d6a99de09fb130e0727bbb9ec94cb | [
"MIT"
] | 2 | 2019-06-14T11:10:55.000Z | 2021-04-08T06:11:05.000Z | /**
* Copyright (c) 2014,Egret-Labs.org
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of c... | 41.505618 | 96 | 0.651868 |
a1ffe47857d7a9dd06c1946ce51c89420e189796 | 1,028 | js | JavaScript | components/Species/OnlineOnlyCards/About.js | nateridderman/SeekReactNative | 0db2c29e399ea70b9410cacff671c5cf12f5509d | [
"MIT"
] | null | null | null | components/Species/OnlineOnlyCards/About.js | nateridderman/SeekReactNative | 0db2c29e399ea70b9410cacff671c5cf12f5509d | [
"MIT"
] | null | null | null | components/Species/OnlineOnlyCards/About.js | nateridderman/SeekReactNative | 0db2c29e399ea70b9410cacff671c5cf12f5509d | [
"MIT"
] | null | null | null | // @flow
import React, { useContext } from "react";
import { Text } from "react-native";
import { useNavigation } from "@react-navigation/native";
import { UserContext } from "../../UserContext";
import SpeciesDetailCard from "../../UIComponents/SpeciesDetailCard";
import styles from "../../../styles/species/species";... | 24.47619 | 73 | 0.608949 |
b800feb8bb824be82ad95d95c3e6f7c658743e95 | 29 | js | JavaScript | src/test/proxy/$-proxy.js | web-cache/js-design-pattern | 9e21e0052ff61b219b0cba759878a34830e58cca | [
"MIT"
] | null | null | null | src/test/proxy/$-proxy.js | web-cache/js-design-pattern | 9e21e0052ff61b219b0cba759878a34830e58cca | [
"MIT"
] | null | null | null | src/test/proxy/$-proxy.js | web-cache/js-design-pattern | 9e21e0052ff61b219b0cba759878a34830e58cca | [
"MIT"
] | null | null | null |
$.proxy(function(){}, this)
| 9.666667 | 27 | 0.586207 |
b801b99f332773204aac1097cebb802227793521 | 433 | js | JavaScript | server.js | JulianMayorga/Hapi-Socket-io-Heroku | b7f6f45f4c4dc0152680a4883b55159becffc701 | [
"MIT"
] | null | null | null | server.js | JulianMayorga/Hapi-Socket-io-Heroku | b7f6f45f4c4dc0152680a4883b55159becffc701 | [
"MIT"
] | null | null | null | server.js | JulianMayorga/Hapi-Socket-io-Heroku | b7f6f45f4c4dc0152680a4883b55159becffc701 | [
"MIT"
] | null | null | null | var mongoose = require('mongoose');
var Composer = require('./index');
var Config = require('./config');
var Socket = require('./server/api/socket');
var socket;
Composer(function(err, server) {
if (err) {
throw err;
}
socket = Object.create(Socket);
socket.initialize(server.listener);
mongoose.con... | 17.32 | 44 | 0.648961 |
b80201d7f3db11ed91e9464c2048c3a45e050f47 | 657 | js | JavaScript | src/hocs/withVariant/index.js | ghalex/zebbra | 9c82560c9d89ff67130f9407e7eae707b2e059de | [
"MIT"
] | 2 | 2018-07-04T17:21:15.000Z | 2018-09-20T14:47:13.000Z | src/hocs/withVariant/index.js | ghalex/zebbra | 9c82560c9d89ff67130f9407e7eae707b2e059de | [
"MIT"
] | null | null | null | src/hocs/withVariant/index.js | ghalex/zebbra | 9c82560c9d89ff67130f9407e7eae707b2e059de | [
"MIT"
] | null | null | null | import React from 'react'
import { compose } from 'recompose'
import setWrappedDisplayName from '../setWrappedDisplayName'
const withVariant = (key) => BaseComponent => {
class WithVariant extends React.Component {
render () {
let { variant, theme } = this.props
let variantProps = {}
if (varia... | 24.333333 | 88 | 0.648402 |
b80253fd68f46d212b0194b9eb0ad0740205c31a | 2,887 | js | JavaScript | lib/apiLoader.js | IMAT-OS/Omega | b2558162e35afb3ad4507624058dee2965ca85d9 | [
"MIT"
] | 1 | 2019-11-26T21:52:53.000Z | 2019-11-26T21:52:53.000Z | lib/apiLoader.js | IMAT-OS/Omega | b2558162e35afb3ad4507624058dee2965ca85d9 | [
"MIT"
] | null | null | null | lib/apiLoader.js | IMAT-OS/Omega | b2558162e35afb3ad4507624058dee2965ca85d9 | [
"MIT"
] | 1 | 2019-11-26T21:52:59.000Z | 2019-11-26T21:52:59.000Z | const debug = require('debug')('Omega:apiLoader');
const fs = require('fs');
const path = require('path').posix;
const Module = require('module');
const {isFalse, isTrue} = require('@imat/omegalib');
const HttpError = require('./HttpError.js');
const HttpResponse = require('./HttpResponse.js');
const {mergePatch, merge... | 43.742424 | 142 | 0.688258 |
b802ab305088658d32cba44e788e82e4934b8156 | 13,726 | js | JavaScript | docs.js | DevSnowflake/snowflake-development | b07a6098fb15e6c6bc2f899bd0310f457af4040a | [
"Apache-2.0"
] | 3 | 2020-10-15T07:56:05.000Z | 2020-11-06T09:39:52.000Z | docs.js | Snowflake107/snowflake-development | b07a6098fb15e6c6bc2f899bd0310f457af4040a | [
"Apache-2.0"
] | null | null | null | docs.js | Snowflake107/snowflake-development | b07a6098fb15e6c6bc2f899bd0310f457af4040a | [
"Apache-2.0"
] | 2 | 2020-07-17T12:26:47.000Z | 2020-09-16T12:04:25.000Z | module.exports = b => {
const data = [
{
keywords: [
"add",
"addmoney",
"eco#add",
"eco#addmoney",
"eco.add",
"eco.addmoney"
],
type: "method",
description: "Adds money to a user.",
function: "addMoney",
params: [
{ type: ... | 32.916067 | 346 | 0.517704 |
b80333d3133c695c1ab6119efa1405d815c5f12f | 11,831 | js | JavaScript | node_modules/couch-db/lib/doc.js | DrRaider/UniShare | b8e203831ef263e4984e401431c069f9e9ef966f | [
"MIT"
] | 1 | 2017-05-16T00:23:07.000Z | 2017-05-16T00:23:07.000Z | node_modules/couch-db/lib/doc.js | DrRaider/UniShare | b8e203831ef263e4984e401431c069f9e9ef966f | [
"MIT"
] | null | null | null | node_modules/couch-db/lib/doc.js | DrRaider/UniShare | b8e203831ef263e4984e401431c069f9e9ef966f | [
"MIT"
] | null | null | null | var _ = require('underscore'),
assert = require('assert'),
util = require('util'),
qs = require('querystring'),
RequestBase = require('./base');
function Document(dburl, doc, options) {
// assign alias
this.delete = this.del = this.destroy;
this.get = this.open;
if (!dburl)
throw new Error('Datab... | 27.386574 | 123 | 0.547629 |
b8033b5fe8b10c231a7bddfbb19d64c9843c904d | 705 | js | JavaScript | src/App.js | cyrilgavala/workout-challenges-webapp | 44f7fb6063b160a02f0f785e60128a31fc8bfd8c | [
"MIT"
] | null | null | null | src/App.js | cyrilgavala/workout-challenges-webapp | 44f7fb6063b160a02f0f785e60128a31fc8bfd8c | [
"MIT"
] | null | null | null | src/App.js | cyrilgavala/workout-challenges-webapp | 44f7fb6063b160a02f0f785e60128a31fc8bfd8c | [
"MIT"
] | null | null | null | import './App.css';
import {BrowserRouter, Switch, Route} from 'react-router-dom';
import RegistrationForm from "./components/RegistrationForm";
import LoginForm from "./components/LoginForm";
import Dashboard from "./containers/Dashboard";
import Redirect from "./components/Redirect";
export default function App() {
... | 25.178571 | 62 | 0.584397 |
b8037ac1eeb04ace0e99b0e7444bbfd714105586 | 308 | js | JavaScript | vue/server.js | gmeben/JavaScript-Value-Types | c9f2c66bbcfd5183121439366a0548265b464ce2 | [
"Apache-2.0"
] | null | null | null | vue/server.js | gmeben/JavaScript-Value-Types | c9f2c66bbcfd5183121439366a0548265b464ce2 | [
"Apache-2.0"
] | null | null | null | vue/server.js | gmeben/JavaScript-Value-Types | c9f2c66bbcfd5183121439366a0548265b464ce2 | [
"Apache-2.0"
] | null | null | null | const Express = require('express')
const nocache = require('nocache')
const path = require('path')
const expressRouter = Express()
expressRouter.use(nocache())
expressRouter.use(Express.static(path.join(__dirname, 'public')))
expressRouter.listen(3000, () => {
console.log("Listening at :3000...")
});
| 25.666667 | 65 | 0.714286 |
b804073fd5f4f05e0b6b4a7641bac603717bc076 | 2,954 | js | JavaScript | test/multisigwallet.test.js | ehsomma/multisigwallet | db83972ef97c490f2d3185583235e41c3c96ac4f | [
"MIT"
] | null | null | null | test/multisigwallet.test.js | ehsomma/multisigwallet | db83972ef97c490f2d3185583235e41c3c96ac4f | [
"MIT"
] | null | null | null | test/multisigwallet.test.js | ehsomma/multisigwallet | db83972ef97c490f2d3185583235e41c3c96ac4f | [
"MIT"
] | null | null | null | //#region Imports
// Contracts.
const MultiSigWallet = artifacts.require("MultiSigWallet");
const TestContract = artifacts.require("TestContract");
// Chai.
const { chai, expect, BN } = require("./setup-chai.js");
// Truffle assertions.
const truffleAssert = require('truffle-assertions');
// OpenZeppeling test help... | 32.461538 | 119 | 0.651659 |
b80447ee00fcc2646e80ab23d73a4f8706cbc06e | 193 | js | JavaScript | src/routes/index.js | hare85/mongoose-example | eea355dc7278f072bff199b5eeb38054a9695e1c | [
"MIT"
] | null | null | null | src/routes/index.js | hare85/mongoose-example | eea355dc7278f072bff199b5eeb38054a9695e1c | [
"MIT"
] | null | null | null | src/routes/index.js | hare85/mongoose-example | eea355dc7278f072bff199b5eeb38054a9695e1c | [
"MIT"
] | null | null | null | import { Router } from 'express';
import Api from './api';
import Hello from './hello';
const router = Router();
router.use('/hello', Hello);
router.use('/api', Api);
export default router;
| 17.545455 | 33 | 0.668394 |
b804859b76823399b37addfca3ac1a4e70143958 | 266,468 | js | JavaScript | Fujian.geoJSON/fujian.geoJSON.js | hai2007/datapool | c7804ff4e8e9df9af20e6fa113cd61e036e08594 | [
"MIT"
] | 3 | 2021-11-20T12:47:29.000Z | 2022-03-22T02:01:05.000Z | Fujian.geoJSON/fujian.geoJSON.js | hai2007/datapool | c7804ff4e8e9df9af20e6fa113cd61e036e08594 | [
"MIT"
] | 2 | 2022-03-05T03:17:02.000Z | 2022-03-28T03:48:48.000Z | Fujian.geoJSON/fujian.geoJSON.js | hai2007/datapool | c7804ff4e8e9df9af20e6fa113cd61e036e08594 | [
"MIT"
] | null | null | null | var FujianGeoJSON = { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "adcode": 350100, "name": "福州市", "center": [119.306239, 26.075302], "centroid": [119.200438, 26.048383], "childrenNum": 13, "level": "city", "subFeatureIndex": 0, "acroutes": [100000, 350000], "parent": { "adcode": 3500... | 47.558094 | 382 | 0.338525 |
b8060e0df5cdcdd36bc8376ef010c97f7be0b271 | 208 | js | JavaScript | src/index.js | hsanoyan/graphql-passport | 754445ade335931308ca9c96021ef0d12484127b | [
"MIT"
] | null | null | null | src/index.js | hsanoyan/graphql-passport | 754445ade335931308ca9c96021ef0d12484127b | [
"MIT"
] | null | null | null | src/index.js | hsanoyan/graphql-passport | 754445ade335931308ca9c96021ef0d12484127b | [
"MIT"
] | null | null | null | export { default as buildContext } from './buildContext';
export { default as createOnConnect } from './createSubscriptionOnConnect';
export { default as GraphQLLocalStrategy } from './GraphQLLocalStrategy';
| 52 | 75 | 0.783654 |
b806eec71414dccca01e3bf0b4623a0b4005aef9 | 2,621 | js | JavaScript | packages/nodejs/libs/districts/provinces/60.js | ltv/vn-address | 4c8060b890fdbce3be6f23f4c7f44011ff864f4e | [
"MIT"
] | 1 | 2021-09-15T15:08:05.000Z | 2021-09-15T15:08:05.000Z | packages/nodejs/libs/districts/provinces/60.js | ltv/vn-address | 4c8060b890fdbce3be6f23f4c7f44011ff864f4e | [
"MIT"
] | 1 | 2021-07-10T09:37:37.000Z | 2021-07-10T09:37:37.000Z | packages/nodejs/libs/districts/provinces/60.js | ltv/vn-address | 4c8060b890fdbce3be6f23f4c7f44011ff864f4e | [
"MIT"
] | null | null | null |
module.exports = [
{
"name": "Phan Thiết",
"type": "thanh-pho",
"slug": "phan-thiet",
"name_with_type": "Thành phố Phan Thiết",
"path": "Phan Thiết, Bình Thuận",
"path_with_type": "Thành phố Phan Thiết, Tỉnh Bình Thuận",
"code": "593",
"parent_code": "60"
},
{
"name": "La Gi",... | 25.201923 | 62 | 0.540633 |
b8078f9b0b24c608c1a5b6e73b3105b1ef873de1 | 226 | js | JavaScript | tests/average.js | scf4/1-liners | 31ca0637b97501573e4d3a98784514a35c69c9a7 | [
"MIT"
] | 833 | 2015-05-20T18:35:25.000Z | 2022-03-07T02:42:53.000Z | tests/average.js | CloakOut/1-liners | d8f6443eb55adfe138a54e54052fd32ab0e5e59e | [
"MIT"
] | 124 | 2015-05-19T15:06:32.000Z | 2021-12-30T19:07:57.000Z | tests/average.js | CloakOut/1-liners | d8f6443eb55adfe138a54e54052fd32ab0e5e59e | [
"MIT"
] | 91 | 2015-06-17T10:27:18.000Z | 2021-10-06T19:04:09.000Z | import { equal, ok } from 'assert';
import average from '../average';
const {isNaN} = Number;
test('#average', () => {
equal(average([2, 3, 4]), 3);
equal(average([{valueOf: () => 10}]), 10);
ok(isNaN(average([])));
});
| 18.833333 | 43 | 0.561947 |
b808fe888a80091a8845bb4f096134f69c24498f | 100 | js | JavaScript | request/config.js | Xiosn/YougoMall | d72773413a9d21d4d0a8cbf7f6d259f60353377c | [
"MIT"
] | null | null | null | request/config.js | Xiosn/YougoMall | d72773413a9d21d4d0a8cbf7f6d259f60353377c | [
"MIT"
] | null | null | null | request/config.js | Xiosn/YougoMall | d72773413a9d21d4d0a8cbf7f6d259f60353377c | [
"MIT"
] | null | null | null | export const baseURL = 'https://api-hmugo-web.itheima.net/api/public/v1'
export const timeout = 5000 | 50 | 72 | 0.77 |
b80a45b8b400a23d797d7e740604f8b27fdddde6 | 262 | js | JavaScript | __tests__/title-case.test.js | fabianlee1211/js-algorithms | 231decd203d5fab86d0cd01f81ec9542c79f3648 | [
"Unlicense"
] | null | null | null | __tests__/title-case.test.js | fabianlee1211/js-algorithms | 231decd203d5fab86d0cd01f81ec9542c79f3648 | [
"Unlicense"
] | null | null | null | __tests__/title-case.test.js | fabianlee1211/js-algorithms | 231decd203d5fab86d0cd01f81ec9542c79f3648 | [
"Unlicense"
] | null | null | null | const titleCase = require('../src/title-case');
describe('Title Case', () => {
it('should return title-cased words correctly', () => {
const result = titleCase('this is a testing string');
expect(result).toEqual('This Is A Testing String');
});
});
| 29.111111 | 57 | 0.637405 |
b80aba98d5d75f1be354dfdc969bb474083403b8 | 964 | js | JavaScript | jobs/frontend/config/tasks/gulp_fonts.js | frontend-labs/demos.frontendlabs | ad63360aa206c54f400290e947c3d079de3e39aa | [
"MIT"
] | 2 | 2016-01-27T21:56:16.000Z | 2019-05-27T19:22:14.000Z | jobs/frontend/config/tasks/gulp_fonts.js | frontend-labs/demos.frontendlabs | ad63360aa206c54f400290e947c3d079de3e39aa | [
"MIT"
] | 1 | 2020-04-29T23:08:24.000Z | 2020-04-29T23:08:24.000Z | jobs/frontend/config/tasks/gulp_fonts.js | frontend-labs/demos.frontendlabs | ad63360aa206c54f400290e947c3d079de3e39aa | [
"MIT"
] | null | null | null | /**
* Tarea Tarea para generar css de las fuentes
*
* @module Task (gulp fonts)
* @extends Gulp
* @extends Path
* @extends Plugins
* @extends Fs
* @author Victor Sandoval
*/
var fs = require('fs');
function Task(gulp, path, config, plugins, functions){
/**
* Tarea para generar archivo .styl de las fu... | 22.952381 | 77 | 0.609959 |
b80ac6ca657f7e9f27e45b319d27ecfb36743368 | 3,655 | js | JavaScript | daassets_repo/interactivetool/questions/M11_008.js | nguni52/pearson | 9438f0755785ddf955869294cc3c299ffa07393d | [
"Apache-2.0"
] | null | null | null | daassets_repo/interactivetool/questions/M11_008.js | nguni52/pearson | 9438f0755785ddf955869294cc3c299ffa07393d | [
"Apache-2.0"
] | null | null | null | daassets_repo/interactivetool/questions/M11_008.js | nguni52/pearson | 9438f0755785ddf955869294cc3c299ffa07393d | [
"Apache-2.0"
] | null | null | null | // JavaScript Document
var quiz = {
multiList:
[
{
ques: "<strong>Question 1</strong><br/>Study Figure 1 and choose the option that best describes the landscape in the image.",
ans: "A represents a ridge and B represents a spur.",
ansSel: ["A represents a cliff and B represents a spur.... | 59.918033 | 307 | 0.657729 |
b80bca91a61f8d32567182292b4c0515389c2bee | 5,807 | js | JavaScript | js/script.js | jorritvanderheide/dbm180 | f9710f963edcc2679fc61d09e8a741703508f86b | [
"BSD-3-Clause"
] | null | null | null | js/script.js | jorritvanderheide/dbm180 | f9710f963edcc2679fc61d09e8a741703508f86b | [
"BSD-3-Clause"
] | null | null | null | js/script.js | jorritvanderheide/dbm180 | f9710f963edcc2679fc61d09e8a741703508f86b | [
"BSD-3-Clause"
] | null | null | null | //============================================================================//
// Script //
//============================================================================//
// Load random house image
(function () {
var urls = ["img/house1", "img/h... | 38.713333 | 126 | 0.522301 |
b80e3f44a9afff1bdf54ac25ecfd93026849e35f | 5,909 | js | JavaScript | app/sequelize_routes/competence.js | guinardpaul/MERN-MP-Comp-tences | 3767b646aa7e0c2ecb6c9f278d5984652ca184d1 | [
"MIT"
] | null | null | null | app/sequelize_routes/competence.js | guinardpaul/MERN-MP-Comp-tences | 3767b646aa7e0c2ecb6c9f278d5984652ca184d1 | [
"MIT"
] | 7 | 2017-11-28T09:52:32.000Z | 2018-03-02T08:37:18.000Z | app/sequelize_routes/competence.js | guinardpaul/MERN-MP-Competences | 3767b646aa7e0c2ecb6c9f278d5984652ca184d1 | [
"MIT"
] | null | null | null | const Competences = require('../sequelize_models/models').Competences;
module.exports = router => {
/**
* Get All competences
*/
router.get('/competences', (req, res, next) => {
Competences.findAll({
attributes: ['id', 'ref', 'description', 'cycle_id', 'domaine_id']
})
.then(result =>... | 25.144681 | 86 | 0.489084 |
b810865673c6ecf8cb69fdb31afd41cc0620cffb | 240 | js | JavaScript | kibana-6.2.4-windows-x86_64/ui_framework/src/components/form/label/index.js | ranjithkumarravikumar52/Master-thesis | 71ee58f210c6cdff34fa521b61acaab717f2b827 | [
"Apache-2.0"
] | 2 | 2018-10-19T22:55:25.000Z | 2018-10-19T22:55:27.000Z | ui_framework/src/components/form/label/index.js | dashjuvi/kibana | b0c50e791058f727dc15adde0588998e67c36ccb | [
"Apache-2.0"
] | 2 | 2020-07-17T10:03:57.000Z | 2021-05-09T15:42:13.000Z | ui_framework/src/components/form/label/index.js | dashjuvi/kibana | b0c50e791058f727dc15adde0588998e67c36ccb | [
"Apache-2.0"
] | 1 | 2018-08-26T15:45:59.000Z | 2018-08-26T15:45:59.000Z | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _label = require('./label');
Object.defineProperty(exports, 'KuiLabel', {
enumerable: true,
get: function get() {
return _label.KuiLabel;
}
});
| 16 | 46 | 0.6625 |
b810bb0d4cac248b8e0dd8597f002de0d45849ac | 755 | js | JavaScript | src/es6/core/generic.js | CptKicks/pandas-js | a3e020dff50072af036490ea1359756cf0d245ca | [
"MIT"
] | 438 | 2017-03-13T21:50:51.000Z | 2022-03-14T15:54:40.000Z | src/es6/core/generic.js | FalseProtagonist/pandas-js | b4b3e02578c014f509c5e8e659d272c78d38671d | [
"MIT"
] | 26 | 2016-12-16T05:00:55.000Z | 2017-02-09T19:49:31.000Z | src/es6/core/generic.js | FalseProtagonist/pandas-js | b4b3e02578c014f509c5e8e659d272c78d38671d | [
"MIT"
] | 48 | 2017-08-20T11:59:45.000Z | 2022-03-18T20:29:34.000Z |
import Immutable from 'immutable';
export default class NDFrame {
constructor(data, kwargs = {}) {
this._data = data;
this._axes = {};
this._AXIS_ORDERS = null;
this._values = null;
}
/**
* Return a Seq of axis dimensions
*
* @returns Immutable.Seq
*/
get shape() {
return Imm... | 16.777778 | 83 | 0.6 |
b8116a339dfb8fc9c407a93da1b09484b64090d1 | 928 | js | JavaScript | src/js/base/services/templateLoader.js | 52North/sensorweb-client-core | 2c2d1aff71c37e3404d62e8a7fe948656379c72e | [
"Apache-2.0"
] | 9 | 2015-11-26T13:26:20.000Z | 2017-10-10T11:35:20.000Z | src/js/base/services/templateLoader.js | 52North/sensorweb-client-core | 2c2d1aff71c37e3404d62e8a7fe948656379c72e | [
"Apache-2.0"
] | 10 | 2017-01-17T14:06:46.000Z | 2017-06-07T08:29:02.000Z | src/js/base/services/templateLoader.js | 52North/sensorweb-client-core | 2c2d1aff71c37e3404d62e8a7fe948656379c72e | [
"Apache-2.0"
] | 13 | 2015-11-26T13:24:58.000Z | 2020-02-13T16:47:31.000Z | angular.module('n52.core.base')
.service('templatesLoader', ['templatesMapping',
function(templatesMapping) {
this.getTemplateForId = function(id) {
if (templatesMapping && templatesMapping.hasOwnProperty(id)) {
return templatesMapping[id];
}
... | 37.12 | 116 | 0.512931 |
b811a0a5f7d2bbe1925962ae4201d74a834f146d | 16,286 | js | JavaScript | spatial/mvc-map-api/demos/u/js/styleBinding2.js | granadomoreno/oracle-db-examples | feac5d72f4a8534c9b3e848bdfc501c5b4c69268 | [
"Apache-2.0"
] | 1,071 | 2017-04-06T16:59:55.000Z | 2022-03-25T21:10:58.000Z | spatial/mvc-map-api/demos/u/js/styleBinding2.js | abhishektripathi27/oracle-db-examples | 0812a65c7c974718ec5a04454b8a42f7c25bf2a8 | [
"Apache-2.0"
] | 71 | 2017-04-12T14:55:52.000Z | 2022-02-22T17:08:18.000Z | spatial/mvc-map-api/demos/u/js/styleBinding2.js | abhishektripathi27/oracle-db-examples | 0812a65c7c974718ec5a04454b8a42f7c25bf2a8 | [
"Apache-2.0"
] | 749 | 2017-04-09T06:48:58.000Z | 2022-03-23T00:28:26.000Z |
// This tutorial is similar to styleBinding.html, but instead of binding
// the sales data to the bubbles' FILL colors, it binds them to the SIZE
// aspect of the bubbles. It also adds a second binding that sets the
// FILL color based on each customer's account_mgr.
//
// This second binding also shows how to create... | 39.433414 | 223 | 0.570551 |
b81246044d0d56001c921d2e3daa504ea5cd0a84 | 598 | js | JavaScript | doc/api/implementors/core/iter/traits/iterator/trait.Iterator.js | EVaillant/entity_system_rust | f2b5bf8ed509236bb955ef779836303a3cee174e | [
"BSL-1.0"
] | null | null | null | doc/api/implementors/core/iter/traits/iterator/trait.Iterator.js | EVaillant/entity_system_rust | f2b5bf8ed509236bb955ef779836303a3cee174e | [
"BSL-1.0"
] | null | null | null | doc/api/implementors/core/iter/traits/iterator/trait.Iterator.js | EVaillant/entity_system_rust | f2b5bf8ed509236bb955ef779836303a3cee174e | [
"BSL-1.0"
] | null | null | null | (function() {var implementors = {};
implementors["entity_system"] = [{"text":"impl<'a> Iterator for EntityAllocatorIterator<'a>","synthetic":false,"types":[]},{"text":"impl<'a, EntityManagerComponentType> Iterator for EntityIterator<'a, EntityManagerComponentType> <span class=\"where fmt-newline... | 199.333333 | 427 | 0.757525 |
b8126c736558a9f7115a503d1e4fe501b6c329c7 | 1,248 | js | JavaScript | testnet/src/helper/index.js | ykrueng/TestNet | 141a2c9825a8c83415934309681d3d685b35dd76 | [
"MIT"
] | 2 | 2018-12-18T00:30:32.000Z | 2019-03-14T05:20:07.000Z | testnet/src/helper/index.js | ykrueng/TestNet | 141a2c9825a8c83415934309681d3d685b35dd76 | [
"MIT"
] | null | null | null | testnet/src/helper/index.js | ykrueng/TestNet | 141a2c9825a8c83415934309681d3d685b35dd76 | [
"MIT"
] | 2 | 2019-01-03T23:22:37.000Z | 2019-01-04T00:13:17.000Z | export const filterQuizzes = (quizzes, activeOnly, topics, searchText, searchField) => {
return quizzes.filter(quiz => {
if (activeOnly && quiz.question_count <= 0) {
return false;
}
if (topics.length > 0 && !topics.includes(quiz.topic)) {
return false;
}
if (!searchText) {
retur... | 32 | 88 | 0.607372 |
b81389a9976c045fa4727b402af3cbf2ae996c53 | 2,874 | js | JavaScript | src/spMongoDB.js | dongwenxiao/sp-mongo | 3058cb47d5f2cdb17ecb4a0de4e1fa1937a7a685 | [
"Apache-2.0"
] | null | null | null | src/spMongoDB.js | dongwenxiao/sp-mongo | 3058cb47d5f2cdb17ecb4a0de4e1fa1937a7a685 | [
"Apache-2.0"
] | null | null | null | src/spMongoDB.js | dongwenxiao/sp-mongo | 3058cb47d5f2cdb17ecb4a0de4e1fa1937a7a685 | [
"Apache-2.0"
] | null | null | null | const mongo = require('mongodb')
const ObjectID = mongo.ObjectID
const MongoClient = mongo.MongoClient
/**
* 操作Mongodb的类
* 构造方法需要参数{ip: '', port: '', db: ''}
*
* @export
* @class spMongoDB
*/
export default class spMongoDB {
constructor(opt) {
this.ip = opt.ip
this.port = opt.port
t... | 23.365854 | 85 | 0.55254 |
b813acaa225663f3bb904c67c7e08a7377094ce2 | 597 | js | JavaScript | OtterBot V1.0.0.0/Bot/MusicBot/commands/stop.js | Cd-corgi/OtterBot-OP-project | bbb562fe59fcd9686e11b9f3e8f01c60f8c77499 | [
"MIT"
] | 2 | 2021-02-17T20:12:03.000Z | 2021-03-05T16:11:31.000Z | OtterBot V1.0.0.0/Bot/MusicBot/commands/stop.js | Cd-corgi/OtterBot-OP-project | bbb562fe59fcd9686e11b9f3e8f01c60f8c77499 | [
"MIT"
] | null | null | null | OtterBot V1.0.0.0/Bot/MusicBot/commands/stop.js | Cd-corgi/OtterBot-OP-project | bbb562fe59fcd9686e11b9f3e8f01c60f8c77499 | [
"MIT"
] | null | null | null | const { MessageEmbed } = require('discord.js')
module.exports = {
name: "stop",
aliases: ["disconnect", "leave"],
inVoiceChannel: true,
run: async (client, message, args) => {
const stopped = new MessageEmbed()
.setTitle("⏏ | As you want, Music Stopped!")
.setThumbnail("https://media.giphy... | 31.421053 | 95 | 0.646566 |
b814156c93ea126761d41504139282a75f0462b5 | 2,179 | js | JavaScript | src/containers/BooksForm.js | evaveskova/redux-bookstore | e8cfabfc4bacff9db1ddcf75f27c8fe510434233 | [
"MIT"
] | 3 | 2020-03-17T21:41:41.000Z | 2020-04-21T13:47:32.000Z | src/containers/BooksForm.js | evaveskova/redux-bookstore | e8cfabfc4bacff9db1ddcf75f27c8fe510434233 | [
"MIT"
] | 3 | 2020-03-17T22:35:25.000Z | 2022-02-27T01:22:20.000Z | src/containers/BooksForm.js | evaveskova/redux-bookstore | e8cfabfc4bacff9db1ddcf75f27c8fe510434233 | [
"MIT"
] | 2 | 2020-03-23T03:18:36.000Z | 2020-05-01T19:15:51.000Z | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createBook } from '../actions/index';
class BooksForm extends React.Component {
constructor(props) {
super(props);
this.state = {
id: Math.floor(Math.random() * 100),
title: '',
ca... | 26.901235 | 116 | 0.591556 |
b81425c65bea240f0978eba603e590cdc5072dcf | 441 | js | JavaScript | utils/helpers.js | Tutor78/on-my-mind | c68bf92eed190fd819565fec501addf8a8c3612d | [
"MIT"
] | null | null | null | utils/helpers.js | Tutor78/on-my-mind | c68bf92eed190fd819565fec501addf8a8c3612d | [
"MIT"
] | null | null | null | utils/helpers.js | Tutor78/on-my-mind | c68bf92eed190fd819565fec501addf8a8c3612d | [
"MIT"
] | null | null | null | module.exports = {
// formats the date into a Month, Day, Year format
format_date: date => {
return `${new Date(date).getMonth() + 1}/${new Date(date).getDate()}/${new Date(date).getFullYear()}`;
},
// formts the words to be plural or singular depending on the amount of comments
format_plura... | 31.5 | 110 | 0.562358 |
b814dc0e147eb27ad8e5f408207d8cfff47e675e | 422 | es6 | JavaScript | src/pobs-alert/pobs-alert-link.es6 | pinguxx/pobs | 9eda3a116f1ce933e3924e079f18054074ba89ec | [
"MIT"
] | 1 | 2017-08-02T13:39:22.000Z | 2017-08-02T13:39:22.000Z | src/pobs-alert/pobs-alert-link.es6 | pinguxx/pobs | 9eda3a116f1ce933e3924e079f18054074ba89ec | [
"MIT"
] | null | null | null | src/pobs-alert/pobs-alert-link.es6 | pinguxx/pobs | 9eda3a116f1ce933e3924e079f18054074ba89ec | [
"MIT"
] | null | null | null | 'use strict';
class PobsAlertLink extends mix(Polymer.Element).with(Pobs.ParentStyleBehavior) {
static get is() {
return 'pobs-alert-link';
}
static get config() {
return {
properties: {
href: {
type: String,
value: '#'
... | 23.444444 | 81 | 0.488152 |
b814e0ca4c120a2b7b653ce9c055270f726a5a59 | 2,777 | js | JavaScript | server/api/properties.js | TandeepGill/Rentalverse | 3832f5cb57fdb7c8e7646231c53cb6ffda2a7171 | [
"MIT"
] | null | null | null | server/api/properties.js | TandeepGill/Rentalverse | 3832f5cb57fdb7c8e7646231c53cb6ffda2a7171 | [
"MIT"
] | null | null | null | server/api/properties.js | TandeepGill/Rentalverse | 3832f5cb57fdb7c8e7646231c53cb6ffda2a7171 | [
"MIT"
] | null | null | null | const router = require('express').Router();
const {
models: { Property, Lease },
} = require('../db/index.js');
module.exports = router;
// GET /api/properties --> Gets all properties based on User ID.
router.get('/', async (req, res, next) => {
try {
const properties = await Property.findAll({
where: {
... | 23.735043 | 110 | 0.604249 |
b815e4cacc9c26ad3a3305d1fed1440ad088c961 | 229 | js | JavaScript | server/src/index.js | muba97/Anayahs_salon_app | 716411ae38bc8494510353a76f3ff9067d066db7 | [
"MIT"
] | 1 | 2021-03-09T01:59:29.000Z | 2021-03-09T01:59:29.000Z | server/src/index.js | muba97/Anayahs_salon_app | 716411ae38bc8494510353a76f3ff9067d066db7 | [
"MIT"
] | null | null | null | server/src/index.js | muba97/Anayahs_salon_app | 716411ae38bc8494510353a76f3ff9067d066db7 | [
"MIT"
] | null | null | null | import { app, server } from './server';
const { PORT } = process.env;
const serverPort = PORT || 5000;
app.listen({ port: serverPort }, () =>
console.log(`🚀 Server ready at http://localhost:${PORT}${server.graphqlPath}`)
);
| 22.9 | 80 | 0.641921 |
b8171c408fcb6b3b46adf56aeb24954615a1ab38 | 16,786 | js | JavaScript | UltimateWeb/war/js/rest.js | ultianalytics/UltimateWeb | 5b0c81cd2093187239e915ba014b3c8c2e3a5d81 | [
"MIT"
] | null | null | null | UltimateWeb/war/js/rest.js | ultianalytics/UltimateWeb | 5b0c81cd2093187239e915ba014b3c8c2e3a5d81 | [
"MIT"
] | null | null | null | UltimateWeb/war/js/rest.js | ultianalytics/UltimateWeb | 5b0c81cd2093187239e915ba014b3c8c2e3a5d81 | [
"MIT"
] | null | null | null | Ultimate.busyDialogStack = 0;
Ultimate.baseRestUrl = "/rest/view";
Ultimate.sessionId = new Date().getTime() + '';
function retrieveTeam(id, includePlayers, successFunction, errorFunction) {
sendAnalyticsEvent("retrieveTeam");
var url = Ultimate.baseRestUrl + '/team/' + id;
url = includePlayers ? url + "?players=tr... | 36.650655 | 170 | 0.676814 |
b81a22593d17a81bb687edf7c441cb935682f628 | 429 | js | JavaScript | vet_care/public/js/vital_signs.js | neerajvkn/vet_care | 14914b22e7a83265d736f9f9dc5186271ae62d66 | [
"MIT"
] | 2 | 2020-11-23T11:14:32.000Z | 2021-02-03T06:40:33.000Z | vet_care/public/js/vital_signs.js | neerajvkn/vet_care | 14914b22e7a83265d736f9f9dc5186271ae62d66 | [
"MIT"
] | null | null | null | vet_care/public/js/vital_signs.js | neerajvkn/vet_care | 14914b22e7a83265d736f9f9dc5186271ae62d66 | [
"MIT"
] | 7 | 2019-11-16T14:36:33.000Z | 2021-08-25T07:54:51.000Z | frappe.ui.form.on('Vital Signs', {
refresh: function(frm) {
if (frm.doc.docstatus) {
_make_encounter_btn(frm);
}
}
});
function _make_encounter_btn(frm) {
frm.add_custom_button('Make Encounter', () => {
frappe.route_options = {
patient: frm.doc.patient,
... | 23.833333 | 51 | 0.564103 |
b81b2915cbd46b7c780c197482e3aeee87b4a3f7 | 259 | js | JavaScript | angular/services/component-config.service.js | magnolo/together | 429142acf4e700b5c9b4646e5c4001c738a23639 | [
"MIT"
] | null | null | null | angular/services/component-config.service.js | magnolo/together | 429142acf4e700b5c9b4646e5c4001c738a23639 | [
"MIT"
] | null | null | null | angular/services/component-config.service.js | magnolo/together | 429142acf4e700b5c9b4646e5c4001c738a23639 | [
"MIT"
] | null | null | null | export class ComponentConfigService{
constructor($translatePartialLoader){
'ngInject';
//
this.$translateLoader = $translatePartialLoader;
}
translate(part){
this.$translatePartialLoader.addPart(part);
}
}
| 18.5 | 56 | 0.637066 |
b81c8dbd75388959f98f871f031e4ede7358073b | 365 | js | JavaScript | server/config/development.js | a307625/apiserver | f1859bd64c06d59eba69be7a201b69ccf35149fc | [
"MIT"
] | null | null | null | server/config/development.js | a307625/apiserver | f1859bd64c06d59eba69be7a201b69ccf35149fc | [
"MIT"
] | null | null | null | server/config/development.js | a307625/apiserver | f1859bd64c06d59eba69be7a201b69ccf35149fc | [
"MIT"
] | null | null | null |
const config = {
port: process.env.PORT || 3000,
jwt: {
jwtSecret: 'secretkey',// process.env.JWT_SECRET,
jwtTokenExpiresIn: '5 days',
emailTokenExpiresIn: '1 days'
},
apiversion: 'v1',
hostUrl: 'http://localhost:3000',
databaseURI: 'mongodb://127.0.0.1:27017/apiserver',
databaseOption: null,... | 18.25 | 53 | 0.660274 |
b81e225681b6e455522214fb156ca351696773f1 | 204 | js | JavaScript | app/components/DeleteButton/index.js | richarddowdy/dmi-word | 101ff0c5e9a8dafd3751f561c4d5c652e15470b4 | [
"MIT"
] | null | null | null | app/components/DeleteButton/index.js | richarddowdy/dmi-word | 101ff0c5e9a8dafd3751f561c4d5c652e15470b4 | [
"MIT"
] | 3 | 2020-07-20T15:18:00.000Z | 2022-03-26T16:09:12.000Z | app/components/DeleteButton/index.js | richarddowdy/dmi-word | 101ff0c5e9a8dafd3751f561c4d5c652e15470b4 | [
"MIT"
] | 1 | 2020-05-08T01:26:04.000Z | 2020-05-08T01:26:04.000Z | import styled from 'styled-components';
const DeleteButton = styled.button`
height: 30px;
width: 30px;
border-radius: 100%;
border: solid 2px grey;
color: red;
`;
export default DeleteButton;
| 17 | 39 | 0.715686 |
b81ef56badd9810ddbd34a6f78690658d4321150 | 1,882 | js | JavaScript | src/containers/ListingPage/SectionManagedBy.js | leoChronos/ftw-hourly | 44a4531542eea448b9017ff95725edeede97c07e | [
"Apache-2.0"
] | null | null | null | src/containers/ListingPage/SectionManagedBy.js | leoChronos/ftw-hourly | 44a4531542eea448b9017ff95725edeede97c07e | [
"Apache-2.0"
] | null | null | null | src/containers/ListingPage/SectionManagedBy.js | leoChronos/ftw-hourly | 44a4531542eea448b9017ff95725edeede97c07e | [
"Apache-2.0"
] | null | null | null | import React from 'react';
import { FormattedMessage } from '../../util/reactIntl';
import { ExternalLink, IconSocialMediaFacebook, IconSocialMediaInstagram, AvatarMedium } from '../../components';
import { instagramPageURL } from '../../util/urlHelpers';
import css from './ListingPage.css';
const SectionManagedBy = ... | 34.218182 | 117 | 0.608395 |
b81f9b98ba0fdd3e6cbc20a1f4b4cedb46c518f2 | 324 | js | JavaScript | lib/dispatch.js | guerrerocarlos/serverless-http | a3c32092e572416bf8a9f059a4cb8004a3299ebf | [
"MIT"
] | 1 | 2020-12-15T06:25:28.000Z | 2020-12-15T06:25:28.000Z | lib/dispatch.js | guerrerocarlos/serverless-http | a3c32092e572416bf8a9f059a4cb8004a3299ebf | [
"MIT"
] | null | null | null | lib/dispatch.js | guerrerocarlos/serverless-http | a3c32092e572416bf8a9f059a4cb8004a3299ebf | [
"MIT"
] | 2 | 2020-05-01T15:47:11.000Z | 2021-08-10T10:59:58.000Z | 'use strict';
module.exports = function dispatch(promise, callback) {
if (callback) {
promise.then(result => {
process.nextTick(() => {
callback(null, result);
});
})
.catch(e => {
process.nextTick(() => {
callback(e);
});
});
return;
}
return promise... | 15.428571 | 55 | 0.5 |
b81fa21ad7d2ac959ced67591b411dbdb4c2d7b3 | 2,933 | js | JavaScript | react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js | benmoumene/jitsi-meet | b826fc1d5a5cdcdc3ef57888f20230a29bb94382 | [
"Apache-2.0"
] | 5 | 2021-06-23T14:01:48.000Z | 2022-03-10T02:00:16.000Z | react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js | benmoumene/jitsi-meet | b826fc1d5a5cdcdc3ef57888f20230a29bb94382 | [
"Apache-2.0"
] | 23 | 2021-04-22T16:29:55.000Z | 2021-07-27T07:57:55.000Z | react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js | benmoumene/jitsi-meet | b826fc1d5a5cdcdc3ef57888f20230a29bb94382 | [
"Apache-2.0"
] | 2 | 2021-05-19T07:28:35.000Z | 2021-05-19T10:05:46.000Z | // @flow
import React from 'react';
import { Icon, IconMenuThumb } from '../../../base/icons';
import { Popover } from '../../../base/popover';
import { connect } from '../../../base/redux';
import { getLocalVideoTrack } from '../../../base/tracks';
import { getCurrentLayout, LAYOUTS } from '../../../video-layout';
... | 29.039604 | 97 | 0.603137 |
b81fdaf47aed305e6253d2801eb80f94d0bb864d | 123 | js | JavaScript | src/components/article.js | Inno-web/inno-website | a8901014aba0bfb591e66822e24561838a33d450 | [
"MIT"
] | null | null | null | src/components/article.js | Inno-web/inno-website | a8901014aba0bfb591e66822e24561838a33d450 | [
"MIT"
] | null | null | null | src/components/article.js | Inno-web/inno-website | a8901014aba0bfb591e66822e24561838a33d450 | [
"MIT"
] | null | null | null | import React from 'react';
const article = () => {
return (
<div>
</div>
);
};
export default article; | 11.181818 | 26 | 0.520325 |
b81ffed122551434c1a4e818601ace03266453af | 677 | js | JavaScript | src/overmind/view/state.js | trellisfw/reagan | 8937bf84e854fd0ce850d4f57ef886a1441938b1 | [
"Apache-2.0"
] | null | null | null | src/overmind/view/state.js | trellisfw/reagan | 8937bf84e854fd0ce850d4f57ef886a1441938b1 | [
"Apache-2.0"
] | null | null | null | src/overmind/view/state.js | trellisfw/reagan | 8937bf84e854fd0ce850d4f57ef886a1441938b1 | [
"Apache-2.0"
] | null | null | null | import _ from 'lodash'
export default {
Pages: {
selectedPage: 'Data',
Data: {
search: '',
openFileBrowser: false,
uploading: {}
}
},
Modals: {
VerifiedModal: {
open: false,
showData: false,
data: ({}, state) => {
return state.app.verifyIntegrity.origin... | 22.566667 | 82 | 0.531758 |
b820685f1b8368a1e18b7211e928df72b597d7a9 | 1,053 | js | JavaScript | src/js/inject.js | noraworld/no-more-referrer | 7b614fcda7e4a906e12ce0825c85c122dfae302f | [
"MIT"
] | null | null | null | src/js/inject.js | noraworld/no-more-referrer | 7b614fcda7e4a906e12ce0825c85c122dfae302f | [
"MIT"
] | null | null | null | src/js/inject.js | noraworld/no-more-referrer | 7b614fcda7e4a906e12ce0825c85c122dfae302f | [
"MIT"
] | null | null | null | (() => {
'use strict';
chrome.storage.sync.get(function(storage) {
let execFlag = true;
if (storage.excludeURL !== undefined) {
for (var i = 0; i < storage.excludeURL.length; i++) {
if (parseURL(location.href).match(RegExp(parseURL(storage.excludeURL[i])))) {
execFlag = false;
... | 25.071429 | 85 | 0.578348 |
b820d892ebdb8eec28cf9457823e79ae177e2cb4 | 8,952 | js | JavaScript | .eslintrc.js | zokito/sfdx-git-delta | 00ceeb88c858e57c9d3c228be5daceef3b7224f1 | [
"MIT"
] | 182 | 2019-07-20T18:18:06.000Z | 2022-03-30T12:25:22.000Z | .eslintrc.js | zokito/sfdx-git-delta | 00ceeb88c858e57c9d3c228be5daceef3b7224f1 | [
"MIT"
] | 248 | 2019-07-24T12:40:38.000Z | 2022-03-31T21:29:49.000Z | .eslintrc.js | zokito/sfdx-git-delta | 00ceeb88c858e57c9d3c228be5daceef3b7224f1 | [
"MIT"
] | 64 | 2019-07-25T14:35:33.000Z | 2022-03-24T14:50:19.000Z | /*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended ... | 34.298851 | 85 | 0.608467 |
b820d9e9ef3cfb06a111ecc7c225ea782b082ec1 | 386 | js | JavaScript | src/reducers/category.js | xintai404/Readable | 255c0da20897c5342b9f2dade65cb7ea835934fe | [
"MIT"
] | null | null | null | src/reducers/category.js | xintai404/Readable | 255c0da20897c5342b9f2dade65cb7ea835934fe | [
"MIT"
] | null | null | null | src/reducers/category.js | xintai404/Readable | 255c0da20897c5342b9f2dade65cb7ea835934fe | [
"MIT"
] | null | null | null | import {
SELECT_CATEGORY,
SET_CATEGORIES,
} from '../actions/type'
export function selectCategory(state="all", action){
switch(action.type){
case SELECT_CATEGORY:
return action.selectCategory
default:
return 'all'
}
}
export function categories(state=[], action){
switch(action.type){
case SET_CATEG... | 17.545455 | 52 | 0.720207 |
b821fbaf19654203fdd2ccc6d02aa7ffd329628e | 7,469 | js | JavaScript | safeSort.js | prettydiff/safeSort | fda06ed01e0bf89cb958589533809a9c966b958e | [
"MIT"
] | null | null | null | safeSort.js | prettydiff/safeSort | fda06ed01e0bf89cb958589533809a9c966b958e | [
"MIT"
] | null | null | null | safeSort.js | prettydiff/safeSort | fda06ed01e0bf89cb958589533809a9c966b958e | [
"MIT"
] | null | null | null | /*global define, exports*/
/*
Just a simple array sort scheme. The provided sorting accounts for values and types.
It only takes three parameters:
* array - an actual array to pass in
* operation - what kind of sort do you want? Three modes supported:
- "normal" - will normalize (remove redundant values) from t... | 35.908654 | 97 | 0.377159 |
b8228436c6a0a326ab46208680e70d7b08c32e99 | 5,966 | js | JavaScript | src/app/layouts/MenuLayout.js | doalef/figaro | 2b733cf062459a40445350144faf6157fd775acc | [
"MIT"
] | null | null | null | src/app/layouts/MenuLayout.js | doalef/figaro | 2b733cf062459a40445350144faf6157fd775acc | [
"MIT"
] | 3 | 2022-02-13T09:27:19.000Z | 2022-02-27T02:04:12.000Z | src/app/layouts/MenuLayout.js | doalef/figaro | 2b733cf062459a40445350144faf6157fd775acc | [
"MIT"
] | null | null | null | import React from "react";
import { Link, withRouter, Redirect } from "react-router-dom";
import { connect } from "react-redux";
import { Layout, Menu, Avatar, Dropdown, PageHeader } from "antd";
import { MenuUnfoldOutlined, MenuFoldOutlined, PoweroffOutlined } from "@ant-design/icons";
import items from "../../_nav.j... | 37.2875 | 128 | 0.354844 |
b82284c34ab89f7ccd0f3f0ae9d97a5cf96dd1d5 | 4,328 | js | JavaScript | src/binary-search-tree.js | IvanGerman/basic-js-ds | 1d1f1962dbf5865659a3c357ab21a245a40788f8 | [
"MIT"
] | null | null | null | src/binary-search-tree.js | IvanGerman/basic-js-ds | 1d1f1962dbf5865659a3c357ab21a245a40788f8 | [
"MIT"
] | null | null | null | src/binary-search-tree.js | IvanGerman/basic-js-ds | 1d1f1962dbf5865659a3c357ab21a245a40788f8 | [
"MIT"
] | null | null | null | const { NotImplementedError } = require('../extensions/index.js');
const { Node } = require('../extensions/list-tree.js');
/**
* Implement simple binary search tree according to task description
* using Node from extensions
*/
module.exports = class BinarySearchTree {
constructor() {
this.node = nul... | 25.017341 | 108 | 0.526802 |
b822d9435ce8659d6f162b5c89085208e0eed55c | 10,984 | js | JavaScript | src/data/mock-data.js | ramseytisher/caretracker-mockup | 8b15a62f12da281de492f91d72769079d58b4b3d | [
"RSA-MD"
] | null | null | null | src/data/mock-data.js | ramseytisher/caretracker-mockup | 8b15a62f12da281de492f91d72769079d58b4b3d | [
"RSA-MD"
] | null | null | null | src/data/mock-data.js | ramseytisher/caretracker-mockup | 8b15a62f12da281de492f91d72769079d58b4b3d | [
"RSA-MD"
] | null | null | null | export const mockData = [
{
key: "1",
patient: "Ramsey Tisher",
healthConcerns: [
{
name: "Anxiety",
status: "Active",
onsetDate: "11/21/2017",
resolvedDate: "--",
expressedBy: "REED, LOUIE",
createdDateTime: "09/06/2019 17:00",
createdBy: "Pen... | 30.342541 | 77 | 0.474144 |
b82336ebe4c15fa03e64b0d494638f446745bd50 | 1,738 | js | JavaScript | src/17-:class.js | yutent/anot.js | ce9c8542a9b4251bdbcdb831683085784d24073c | [
"MIT"
] | 4 | 2019-01-15T11:07:47.000Z | 2020-01-07T02:24:55.000Z | src/17-:class.js | yutent/anot.js | ce9c8542a9b4251bdbcdb831683085784d24073c | [
"MIT"
] | null | null | null | src/17-:class.js | yutent/anot.js | ce9c8542a9b4251bdbcdb831683085784d24073c | [
"MIT"
] | null | null | null | //类名定义 :class="{xx: yy}" :class="xx"
Anot.directive('class', {
init: function(binding) {
binding.expr = binding.expr.replace(/\n/g, ' ').replace(/\s+/g, ' ')
if (binding.type === 'hover' || binding.type === 'active') {
var expr = new Function('return ' + binding.expr)()
//确保只绑定一次
if (!bin... | 24.478873 | 72 | 0.517837 |
b82521469941519cc76df9cad23c8fca244118a9 | 16,612 | js | JavaScript | src/iter/util.js | Saber-Team/SogouJS | 95f0e0b131d29d4a829a20d8d63a664b088cb089 | [
"MIT"
] | 2 | 2015-01-09T01:28:02.000Z | 2015-01-09T03:39:24.000Z | src/iter/util.js | Saber-Team/SogouJS | 95f0e0b131d29d4a829a20d8d63a664b088cb089 | [
"MIT"
] | null | null | null | src/iter/util.js | Saber-Team/SogouJS | 95f0e0b131d29d4a829a20d8d63a664b088cb089 | [
"MIT"
] | null | null | null | /**
* @fileoverview Python形式的迭代器函数.
* 见 http://docs.python.org/library/itertools.html
* @author Leo.Zhang
* @email zmike86@gamil.com
*/
define([
'../util/util',
'../array/array',
'./iterator',
'./stopiteration'
],
function(util, array, Iterator, StopIteration) {
'use strict... | 29.195079 | 85 | 0.507344 |
b82614766615c66820b28952bf632934f9ce9195 | 156 | js | JavaScript | web/vue/hellow/unpackage/dist/dev/app-plus/pages/template/list-triplex-row/list-triplex-row.js | february29/Learning | e909fd0a10b1a6d2ba6847e5821233548a778508 | [
"MIT"
] | null | null | null | web/vue/hellow/unpackage/dist/dev/app-plus/pages/template/list-triplex-row/list-triplex-row.js | february29/Learning | e909fd0a10b1a6d2ba6847e5821233548a778508 | [
"MIT"
] | 4 | 2021-03-09T04:53:30.000Z | 2022-02-26T11:14:26.000Z | web/vue/hellow/unpackage/dist/dev/app-plus/pages/template/list-triplex-row/list-triplex-row.js | february29/Learning | e909fd0a10b1a6d2ba6847e5821233548a778508 | [
"MIT"
] | null | null | null | document.dispatchEvent(new CustomEvent("generateFuncReady", { detail: { generateFunc: $gwx('./pages/template/list-triplex-row/list-triplex-row.wxml') } })); | 156 | 156 | 0.75641 |
1d2479b708a000a20c434f5baf117a3637248517 | 1,258 | js | JavaScript | src/components/clojurescript/ReplOutputCljsSource.js | jinCN/Mancy | f03aea7ce85bee0b9a1120cfe325f8ad5c282684 | [
"MIT"
] | null | null | null | src/components/clojurescript/ReplOutputCljsSource.js | jinCN/Mancy | f03aea7ce85bee0b9a1120cfe325f8ad5c282684 | [
"MIT"
] | null | null | null | src/components/clojurescript/ReplOutputCljsSource.js | jinCN/Mancy | f03aea7ce85bee0b9a1120cfe325f8ad5c282684 | [
"MIT"
] | null | null | null | import React from 'react'
import _ from 'lodash'
export default class ReplOutputCljsVar extends React.Component {
constructor (props) {
super(props)
this.state = {
collapse: props.collapse == null ? true : props.collapse
}
this.onToggleCollapse = this.onToggleCollapse.bind(this)
}
s... | 26.765957 | 78 | 0.551669 |
1d2524db3dc9ebc16e22e0297aab71d10062490f | 1,446 | js | JavaScript | app/components/TranslatedValidationField/messages.js | JohnPhoto/julmustracet-2016 | 89313dde788b46572257378b8079cbe2a8d74cd7 | [
"MIT"
] | null | null | null | app/components/TranslatedValidationField/messages.js | JohnPhoto/julmustracet-2016 | 89313dde788b46572257378b8079cbe2a8d74cd7 | [
"MIT"
] | null | null | null | app/components/TranslatedValidationField/messages.js | JohnPhoto/julmustracet-2016 | 89313dde788b46572257378b8079cbe2a8d74cd7 | [
"MIT"
] | null | null | null | /*
* TranslatedValidationField Messages
*
* This contains all the text for the TranslatedValidationField component.
*/
import { defineMessages } from 'react-intl';
export const ERRORS = {
REQUIRED: 'presence',
LENGTH_SHORT: 'length.min',
LENGTH_LONG: 'length.max',
UNIQUE: 'uniqueness',
EMAIL: 'custom.emai... | 27.807692 | 74 | 0.697095 |
1d2547b9e71f1e86aaa8566f33f20426b28969e0 | 20,855 | js | JavaScript | images/sdd_files/5Nwt4oUYFIV.js | sdoylelambda/solo | fbfc6bcae667279e879a42b17c875d30546da125 | [
"CC-BY-3.0"
] | null | null | null | images/sdd_files/5Nwt4oUYFIV.js | sdoylelambda/solo | fbfc6bcae667279e879a42b17c875d30546da125 | [
"CC-BY-3.0"
] | null | null | null | images/sdd_files/5Nwt4oUYFIV.js | sdoylelambda/solo | fbfc6bcae667279e879a42b17c875d30546da125 | [
"CC-BY-3.0"
] | null | null | null | if (self.CavalryLogger) { CavalryLogger.start_js(["U1PbV"]); }
__d("FDSPrivateInputIconSelectors",["ix","asset"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={error:g("489535"),warning:g("480790"),validated:g("506111")},i={error:g("871824"),warning:g("480790"),validated:g("815791")};function a(a){switch(a){c... | 1,097.631579 | 4,573 | 0.727404 |
1d25b67e9cdf5dc48ff67efdcc36309bdf1e6eba | 4,724 | js | JavaScript | JalienGame/Jalien/main.js | JonnoUK/JonathanTaylorHq | e7e717b9099a63540027ae2f007a05a6b6672dd1 | [
"CC-BY-3.0"
] | null | null | null | JalienGame/Jalien/main.js | JonnoUK/JonathanTaylorHq | e7e717b9099a63540027ae2f007a05a6b6672dd1 | [
"CC-BY-3.0"
] | null | null | null | JalienGame/Jalien/main.js | JonnoUK/JonathanTaylorHq | e7e717b9099a63540027ae2f007a05a6b6672dd1 | [
"CC-BY-3.0"
] | 1 | 2019-10-01T19:32:48.000Z | 2019-10-01T19:32:48.000Z | class MainScreen extends Phaser.Scene {
constructor() {
super({key: 'MainScreen'})
}
preload() {
this.load.image('closedBox', 'bank_chest_closed.png');
this.load.image('openBox', 'Bank_chest_open.png');
this.load.image('jalien', 'hypers.png');
this.load.image('ufo',... | 31.284768 | 103 | 0.48624 |
1d2874aa39b81e913826143d41f7fcbf0de36f0c | 483 | js | JavaScript | test/jest/fixtures/interface.js | peterboehm/ui-organizations | a6ee1b561eb3dd8980d82b307172d73a03e37218 | [
"Apache-2.0"
] | null | null | null | test/jest/fixtures/interface.js | peterboehm/ui-organizations | a6ee1b561eb3dd8980d82b307172d73a03e37218 | [
"Apache-2.0"
] | 344 | 2019-04-12T12:11:22.000Z | 2022-03-31T16:53:04.000Z | test/jest/fixtures/interface.js | peterboehm/ui-organizations | a6ee1b561eb3dd8980d82b307172d73a03e37218 | [
"Apache-2.0"
] | 4 | 2019-10-01T07:36:09.000Z | 2022-02-23T13:59:30.000Z | export const orgInterface = {
id: '793b9d42-ae12-41d7-a36a-f33e5b9e82c5',
name: 'GOBI',
uri: 'www.gobi3.com',
notes: 'all staff have different logons with different permissions',
available: false,
deliveryMethod: 'Other',
locallyStored: 'false',
statisticsNotes: 'get stats on demand from GOBI, or contac... | 30.1875 | 81 | 0.689441 |
1d28965cc57cd516b7a4c2535104c773561b21c0 | 471 | js | JavaScript | src/reducers/index.js | tested01/crm_dashboard | c8a597269f4b5626791806164872259799224580 | [
"MIT"
] | null | null | null | src/reducers/index.js | tested01/crm_dashboard | c8a597269f4b5626791806164872259799224580 | [
"MIT"
] | null | null | null | src/reducers/index.js | tested01/crm_dashboard | c8a597269f4b5626791806164872259799224580 | [
"MIT"
] | null | null | null | import { combineReducers } from 'redux';
import LoginReducer from '../reducers/reducer_login';
const appReducer = combineReducers({
loginState: LoginReducer
});
// To reset redux state after sign-out
// reference: https://stackoverflow.com/questions/35622588/how-to-reset-the-state-of-a-redux-store
const rootReducer =... | 27.705882 | 98 | 0.730361 |
1d28ab2d33707861a0a9a848f267996d8e939083 | 203 | js | JavaScript | src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/index.js | tsh2/platform-sdk2 | 718660f48ebce52b8eab5e4b304b2353e4feebe7 | [
"MIT"
] | 3 | 2017-01-31T19:15:53.000Z | 2017-05-31T20:49:09.000Z | src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/index.js | tsh2/platform-sdk2 | 718660f48ebce52b8eab5e4b304b2353e4feebe7 | [
"MIT"
] | 12 | 2016-12-13T11:53:19.000Z | 2016-12-13T11:58:07.000Z | src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/index.js | tsh2/platform-sdk2 | 718660f48ebce52b8eab5e4b304b2353e4feebe7 | [
"MIT"
] | 5 | 2017-09-29T08:33:43.000Z | 2018-03-05T01:31:28.000Z | export Circle from './Circle';
export Text from './Text';
export Line from './Line';
export Rect from './Rect';
export Ellipse from './Ellipse';
export Group from './Group';
export Path from './Path'; | 29 | 32 | 0.679803 |
1d29df30919918d0a64596505441d414ab7048a9 | 885 | js | JavaScript | fontmin.js | font-size/fontsmin | 6ffcadb7f1ecf6b39fcb90aef60e97158a5ad56a | [
"MIT"
] | 3 | 2020-11-24T14:14:53.000Z | 2021-12-19T13:05:52.000Z | fontmin.js | font-size/fontsmin | 6ffcadb7f1ecf6b39fcb90aef60e97158a5ad56a | [
"MIT"
] | null | null | null | fontmin.js | font-size/fontsmin | 6ffcadb7f1ecf6b39fcb90aef60e97158a5ad56a | [
"MIT"
] | 2 | 2021-10-10T03:39:28.000Z | 2022-03-21T01:22:24.000Z | module.exports = function (font, text, callback) {
const Fontmin = require('fontmin')
var srcPath = `./fonts/${font}.ttf`; // 字体源文件
var destPath = './font'; // 输出路径
var text = text || '';
// 初始化
var fontmin = new Fontmin()
.src(srcPath) // 输入配置
.use(Fontmin.... | 29.5 | 53 | 0.442938 |
1d29fb13d53950d19ed2d9da6af099b2322a7b34 | 891 | js | JavaScript | lib/methods/findAll.js | appcelerator-forks/appcelerator.appc.mysql | c7353b192df4402e201fc4211bb2926ccfb2e0c1 | [
"Apache-2.0"
] | null | null | null | lib/methods/findAll.js | appcelerator-forks/appcelerator.appc.mysql | c7353b192df4402e201fc4211bb2926ccfb2e0c1 | [
"Apache-2.0"
] | null | null | null | lib/methods/findAll.js | appcelerator-forks/appcelerator.appc.mysql | c7353b192df4402e201fc4211bb2926ccfb2e0c1 | [
"Apache-2.0"
] | null | null | null | var Arrow = require('arrow')
/**
* Finds all model instances. A maximum of 1000 models are returned.
* @param {Arrow.Model} Model The model class being updated.
* @param {Function} callback Callback passed an Error object (or null if successful) and the models.
*/
exports.findAll = function (Model, callback) {
... | 35.64 | 105 | 0.675645 |
1d2a802eacb2016bf876646d8eb836064391e2bb | 1,453 | js | JavaScript | app/main.js | FNNDSC/cjs | 55494d8be7b6a875526cc9012a60ecc4e94d25f3 | [
"MIT"
] | 3 | 2015-08-19T05:01:18.000Z | 2017-01-17T06:55:06.000Z | app/main.js | FNNDSC/cjs | 55494d8be7b6a875526cc9012a60ecc4e94d25f3 | [
"MIT"
] | 1 | 2015-02-03T08:48:27.000Z | 2015-02-03T09:54:10.000Z | app/main.js | FNNDSC/cjs | 55494d8be7b6a875526cc9012a60ecc4e94d25f3 | [
"MIT"
] | null | null | null | var MyApp = MyApp || {};
MyApp.require = require.config({
paths: {
togetherjs: 'https://togetherjs.com/togetherjs-min',
cjs: 'scripts/c'
}
});
// load cjs after togetherJS has been loaded
// turn OFF togetherJS autostart
// should investigate to have it working well with AUTO START TOO
Togethe... | 25.946429 | 84 | 0.660702 |
1d2aacb0bcbb22f204abe27d5b1727161b76bec9 | 1,704 | js | JavaScript | 4.x/a02745.js | musasesay/tesseract-ocr.github.io | 61f815042b9722305fc9d4933c3dbf3b5e3915b5 | [
"Apache-2.0"
] | null | null | null | 4.x/a02745.js | musasesay/tesseract-ocr.github.io | 61f815042b9722305fc9d4933c3dbf3b5e3915b5 | [
"Apache-2.0"
] | null | null | null | 4.x/a02745.js | musasesay/tesseract-ocr.github.io | 61f815042b9722305fc9d4933c3dbf3b5e3915b5 | [
"Apache-2.0"
] | null | null | null | var a02745 =
[
[ "SPLIT", "a02745.html#a8994d5b2afb2ae21fc35b4ac527af1b1", null ],
[ "SPLIT", "a02745.html#a595fc01e6d1baa1476e8544782affd5f", null ],
[ "bounding_box", "a02745.html#a781f4be39df4ddfc8767c71b75587e8b", null ],
[ "Box12", "a02745.html#a40fa1801c0de4f18d4f25186659fe6af", null ],
[ "Box... | 68.16 | 84 | 0.737676 |
1d2b2a3328f16b36b3bd4879de154ba19697aac6 | 612 | js | JavaScript | linda/linda_app/static/r2r/scripts/controllers/csvreconile.js | cbotsikas/LindaWorkbench | b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea | [
"MIT"
] | null | null | null | linda/linda_app/static/r2r/scripts/controllers/csvreconile.js | cbotsikas/LindaWorkbench | b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea | [
"MIT"
] | null | null | null | linda/linda_app/static/r2r/scripts/controllers/csvreconile.js | cbotsikas/LindaWorkbench | b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea | [
"MIT"
] | null | null | null | (function() {
'use strict';
angular.module('app').controller('CsvReconcileCtrl', function($scope, _, Oracle, Csv, Rdf) {
$scope.csv = Csv;
$scope.rdf = Rdf;
$scope.loading = false;
$scope.subjectTag = {};
$scope.columnTags = {};
return $scope.ask = function(subject, columns) {
$scope.l... | 29.142857 | 105 | 0.624183 |
1d2b2abe069a20312ed13f7ac0d8304436abdf33 | 3,855 | js | JavaScript | src/Services/UserService.js | shardik95/Client-BeatDrop-ReactJs | 208606a72db5020efb9612b95381ada2c119e33e | [
"MIT"
] | 2 | 2018-08-07T00:06:28.000Z | 2018-08-08T23:31:00.000Z | src/Services/UserService.js | shardik95/Client-BeatDrop | 208606a72db5020efb9612b95381ada2c119e33e | [
"MIT"
] | 9 | 2020-07-16T07:03:28.000Z | 2022-03-08T22:09:34.000Z | src/Services/UserService.js | shardik95/Client-BeatDrop | 208606a72db5020efb9612b95381ada2c119e33e | [
"MIT"
] | null | null | null | let _singleton=Symbol()
class UserService{
constructor(singletonToken) {
if (_singleton !== singletonToken)
throw new Error('Cannot instantiate directly.');
}
static get instance() {
if(!this[_singleton])
this[_singleton] = new UserService(_singleton);
return... | 28.768657 | 141 | 0.536965 |
1d2b5ad0e0e12d48cbf7403c1ab62fcdfa1fb5c1 | 6,923 | js | JavaScript | components/AccountCard.js | vanita5/mastodon-twitter-bridge | 9bfc676701b0430baf7c3958e7d715ab16bfe124 | [
"MIT"
] | 2 | 2017-04-04T16:15:35.000Z | 2017-04-09T12:58:54.000Z | components/AccountCard.js | vanita5/mastodon-twitter-bridge | 9bfc676701b0430baf7c3958e7d715ab16bfe124 | [
"MIT"
] | null | null | null | components/AccountCard.js | vanita5/mastodon-twitter-bridge | 9bfc676701b0430baf7c3958e7d715ab16bfe124 | [
"MIT"
] | null | null | null | // @flow
import { Button, Card, CardBlock, CardSubtitle, CardTitle } from 'reactstrap';
import { PureComponent } from 'react';
import api from '../lib/isoAPI';
type CardAccount =
| {
type: 'twitter',
account: TwitterAccountData,
}
| {
type: 'mastodon',
account: Mas... | 31.611872 | 100 | 0.442727 |
1d2bc3337d7d7d93876315953ffaee8976a7d96c | 962 | js | JavaScript | function_Directory/BinaryTree/checkLeaf.js | AlaaN-Smadi/Data_Structure_And_Algorithm | 268b82ad33310bd7a90eae750cb36ba6be8647cc | [
"MIT"
] | null | null | null | function_Directory/BinaryTree/checkLeaf.js | AlaaN-Smadi/Data_Structure_And_Algorithm | 268b82ad33310bd7a90eae750cb36ba6be8647cc | [
"MIT"
] | null | null | null | function_Directory/BinaryTree/checkLeaf.js | AlaaN-Smadi/Data_Structure_And_Algorithm | 268b82ad33310bd7a90eae750cb36ba6be8647cc | [
"MIT"
] | null | null | null |
'use strict';
let leafArr = [];
let numberOfPassed = 0;
let checkLeaf = (tree1, tree2) => {
if(!tree1.root || !tree2.root){
return("Empty Tree");
}
addMyLeaf(tree1.root);
let result = compareFun(tree2.root);
// console.log(numberOfPassed);
// console.log(leafArr.length);
retur... | 17.178571 | 51 | 0.576923 |
1d2be69e4758ddd9b97c39a55bd74e8d36f330ab | 362 | js | JavaScript | routes/uploadFile.js | xiechuanlong/klMork | dc09db85287543ed68f3e4e173cfe8bebf81f272 | [
"0BSD"
] | null | null | null | routes/uploadFile.js | xiechuanlong/klMork | dc09db85287543ed68f3e4e173cfe8bebf81f272 | [
"0BSD"
] | 4 | 2020-07-17T17:11:03.000Z | 2021-05-09T23:43:29.000Z | routes/uploadFile.js | xiechuanlong/kl-jMockr | dc09db85287543ed68f3e4e173cfe8bebf81f272 | [
"0BSD"
] | null | null | null | module.exports = function (app) {
app.post('/batchUploadFile.do', function (req, res) {
res.json({
"retCode": 200,
"retDesc": "操作成功",
"md5": "3b7ef9e6de488f9f58a820061cd2753c",
"fileName": "1481594190007x.zip",
"url": "http://haitao.nosdn1.127.net/... | 32.909091 | 68 | 0.530387 |
1d2c8231e7530372d4a7db753c0ca0d13aabb710 | 2,147 | js | JavaScript | index.js | stemcmyk/Presence-Man | 21feb4ca34992bdeb2c2dd075f41793fde0268c8 | [
"MIT"
] | null | null | null | index.js | stemcmyk/Presence-Man | 21feb4ca34992bdeb2c2dd075f41793fde0268c8 | [
"MIT"
] | null | null | null | index.js | stemcmyk/Presence-Man | 21feb4ca34992bdeb2c2dd075f41793fde0268c8 | [
"MIT"
] | null | null | null | const { Client, MessageEmbed, Presence, Collection } = require("discord.js");
const fs = require("fs");
const moment = require("moment");
const ms = require("ms");
require("dotenv").config();
const Database = require("./database");
const Basic_functions = require("./basic_functions");
const client = new Client();
var ... | 32.530303 | 81 | 0.619935 |
1d2ca8707fec058643f92b21682ff1ea01e9bdb8 | 400 | js | JavaScript | node_modules/ts-morph/dist/utils/comparers/ComparerToStoredComparer.js | USSDlover/abp-sam-nestjs | 9b1beaee34d203a2bb0dcc6d4ce4ec17062b9a49 | [
"MIT"
] | 29 | 2019-08-30T08:45:43.000Z | 2022-03-16T01:27:21.000Z | node_modules/ts-morph/dist/utils/comparers/ComparerToStoredComparer.js | USSDlover/abp-sam-nestjs | 9b1beaee34d203a2bb0dcc6d4ce4ec17062b9a49 | [
"MIT"
] | 4 | 2019-08-13T09:48:00.000Z | 2022-01-22T08:25:20.000Z | node_modules/ts-morph/dist/utils/comparers/ComparerToStoredComparer.js | USSDlover/abp-sam-nestjs | 9b1beaee34d203a2bb0dcc6d4ce4ec17062b9a49 | [
"MIT"
] | 7 | 2019-08-13T09:34:39.000Z | 2021-11-07T16:13:09.000Z | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class ComparerToStoredComparer {
constructor(comparer, storedValue) {
this.comparer = comparer;
this.storedValue = storedValue;
}
compareTo(value) {
return this.comparer.compareTo(this.storedValue, v... | 30.769231 | 65 | 0.69 |
1d2e1df433bc87d88021d979ade05cfe38241b94 | 1,818 | js | JavaScript | app/assets/javascripts/ng-control/data_association.js | OLA-Simple/OLASimple-Aquarium | 42aa3f66be85fde32ceab86f34ec9df8008ca073 | [
"MIT"
] | 25 | 2020-06-14T16:31:17.000Z | 2021-11-28T13:16:44.000Z | app/assets/javascripts/ng-control/data_association.js | OLA-Simple/OLASimple-Aquarium | 42aa3f66be85fde32ceab86f34ec9df8008ca073 | [
"MIT"
] | 252 | 2020-06-11T16:58:06.000Z | 2022-03-30T21:57:30.000Z | app/assets/javascripts/ng-control/data_association.js | OLA-Simple/OLASimple-Aquarium | 42aa3f66be85fde32ceab86f34ec9df8008ca073 | [
"MIT"
] | 7 | 2018-08-30T02:46:19.000Z | 2020-05-17T19:46:27.000Z | (function() {
var w = angular.module('aquarium');
w.controller( 'daCtrl', [ '$scope', '$http', '$attrs',
function ( $scope, $http, $attrs ) {
$scope.toggle_modal = function(da) {
da.modal = !da.modal;
};
$scope.is_image = function(da) {
return da.upload.upload... | 25.25 | 100 | 0.518702 |
1d2e71dffb211d291befa00f2ec9e4b1ec8d336d | 1,760 | js | JavaScript | addons/ewei_shopv2/plugin/groups/static/js/op.js | xunexploit/phpdan9 | 2390ad9b62c6424d158c265b49b3a2ed6a3e3c41 | [
"Apache-2.0"
] | null | null | null | addons/ewei_shopv2/plugin/groups/static/js/op.js | xunexploit/phpdan9 | 2390ad9b62c6424d158c265b49b3a2ed6a3e3c41 | [
"Apache-2.0"
] | null | null | null | addons/ewei_shopv2/plugin/groups/static/js/op.js | xunexploit/phpdan9 | 2390ad9b62c6424d158c265b49b3a2ed6a3e3c41 | [
"Apache-2.0"
] | 1 | 2019-12-13T18:10:26.000Z | 2019-12-13T18:10:26.000Z | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... | 880 | 1,759 | 0.50625 |
1d2f2801180702ed6e2c17f90df3bd9c8212381b | 12,207 | js | JavaScript | src/components/lib/csoundinstr.js | docb/csound-web-gatsby-react-bootstrap-starter | eb9f80743536292905611066af5e6f22c77ef731 | [
"Unlicense"
] | null | null | null | src/components/lib/csoundinstr.js | docb/csound-web-gatsby-react-bootstrap-starter | eb9f80743536292905611066af5e6f22c77ef731 | [
"Unlicense"
] | null | null | null | src/components/lib/csoundinstr.js | docb/csound-web-gatsby-react-bootstrap-starter | eb9f80743536292905611066af5e6f22c77ef731 | [
"Unlicense"
] | null | null | null | import React from "react"
import {Button, Row, Col} from "react-bootstrap"
import Instrument from "./instrument.js"
import HFader from "./hfader"
import Select from "react-select"
import OSC from 'osc-js'
import {withPrefix} from "gatsby";
const noteMap = {
KeyZ: 60,
KeyS: 61,
KeyX: 62,
KeyD: 63,
KeyC: 64,
... | 29.556901 | 120 | 0.574097 |
1d2fd9566e7776fc7d175e1795517fe1a5cde991 | 606 | js | JavaScript | src/services/order.js | huwolai/hwlmanager | 6b7cf94164ada366a3c4695bad5fbe58104da900 | [
"MIT"
] | null | null | null | src/services/order.js | huwolai/hwlmanager | 6b7cf94164ada366a3c4695bad5fbe58104da900 | [
"MIT"
] | null | null | null | src/services/order.js | huwolai/hwlmanager | 6b7cf94164ada366a3c4695bad5fbe58104da900 | [
"MIT"
] | null | null | null | import xFetch from './xFetch';
import config from './config';
//获取订单列表
export async function getOrders({
page_index,
page_size
}) {
return xFetch(`${config.shopapi.url}/admin/orders?page_index=${page_index}&page_size=${page_size}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
"app_id":... | 20.2 | 102 | 0.660066 |
1d2ff37e9e9030ae0faa43d73558534b80ffbc4a | 2,245 | js | JavaScript | client/src/pages/WatchVideo.js | rockyery/react-youtube | bf1ce793f64b4e78729d9526b16f8db5352f2a25 | [
"Apache-2.0"
] | null | null | null | client/src/pages/WatchVideo.js | rockyery/react-youtube | bf1ce793f64b4e78729d9526b16f8db5352f2a25 | [
"Apache-2.0"
] | null | null | null | client/src/pages/WatchVideo.js | rockyery/react-youtube | bf1ce793f64b4e78729d9526b16f8db5352f2a25 | [
"Apache-2.0"
] | null | null | null | // @ts-nocheck
import React from "react";
import AddComment from "../components/AddComment";
import { DislikeIcon, LikeIcon } from "../components/Icons";
import NoResults from "../components/NoResults";
import VideoPlayer from "../components/VideoPlayer";
import Button from "../styles/Button";
import Wrapper from "../s... | 27.048193 | 84 | 0.519822 |
1d30115aba7cd99974e8dcd9382a09dd2cd7b809 | 2,353 | js | JavaScript | src/app/collectible-view.component.js | kellygmoore/thirty-day-github-challenge | 22b61bdeb5f2df3b988b67fb0af194e4152eadc4 | [
"MIT"
] | null | null | null | src/app/collectible-view.component.js | kellygmoore/thirty-day-github-challenge | 22b61bdeb5f2df3b988b67fb0af194e4152eadc4 | [
"MIT"
] | null | null | null | src/app/collectible-view.component.js | kellygmoore/thirty-day-github-challenge | 22b61bdeb5f2df3b988b67fb0af194e4152eadc4 | [
"MIT"
] | null | null | null | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | 52.288889 | 150 | 0.681683 |