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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d305d7f3da9cb27d21fde9d2729544c440e2a14 | 404 | js | JavaScript | code/nodejs/02.js | wangwanged/node | 14899c9a6077f72409b014ee908c77d84c1b4929 | [
"MIT"
] | null | null | null | code/nodejs/02.js | wangwanged/node | 14899c9a6077f72409b014ee908c77d84c1b4929 | [
"MIT"
] | null | null | null | code/nodejs/02.js | wangwanged/node | 14899c9a6077f72409b014ee908c77d84c1b4929 | [
"MIT"
] | null | null | null | // 引入http模块
const http = require('http');
// 创建服务
const server = http.createServer(function(req, res) {
console.log(`来自${req.connection.remoteAddress}的客户端在${new Date().toLocaleTimeString()}访问了本服务器`);
res.end(`<h1>hello world! very good!!-fanyoufu</h1> <p>${req.connection.remoteAddress}</p>`);
});
// 启动服务
server.li... | 33.666667 | 97 | 0.690594 |
1d31003ac55bc4d99c4d02a499fb9f74ec56c2ae | 4,924 | js | JavaScript | src/actions.js | ntratcliff/lights.app-api | 2710fff73814baf6d36b4bd2c3dbe3d9aa2ea1f6 | [
"MIT"
] | null | null | null | src/actions.js | ntratcliff/lights.app-api | 2710fff73814baf6d36b4bd2c3dbe3d9aa2ea1f6 | [
"MIT"
] | null | null | null | src/actions.js | ntratcliff/lights.app-api | 2710fff73814baf6d36b4bd2c3dbe3d9aa2ea1f6 | [
"MIT"
] | null | null | null | import { DateTime } from 'luxon'
import MathUtil from './math-utils'
export class Action {
/** Creates Action object from source properties */
constructor(source, lights) {
Object.assign(this, source)
this.lights = lights;
this._originalValues = []
}
/* Applies the action to its lights */
/* e.x. a time-b... | 23.336493 | 88 | 0.625508 |
1d3145ad921b4fcb8993b2e3dcb9decaaab3570a | 3,669 | js | JavaScript | disabled_apps/sms/services/test/unit/moz_mobile_connections/moz_mobile_connections_shim_test.js | NickProgramm/gaia | 975a35c0f5010df341e96d6c5ec60217f5347412 | [
"Apache-2.0"
] | 3 | 2016-08-17T08:52:51.000Z | 2020-03-29T04:56:45.000Z | disabled_apps/sms/services/test/unit/moz_mobile_connections/moz_mobile_connections_shim_test.js | NickProgramm/gaia | 975a35c0f5010df341e96d6c5ec60217f5347412 | [
"Apache-2.0"
] | 1 | 2017-02-21T21:36:12.000Z | 2017-02-21T21:36:30.000Z | disabled_apps/sms/services/test/unit/moz_mobile_connections/moz_mobile_connections_shim_test.js | NickProgramm/gaia | 975a35c0f5010df341e96d6c5ec60217f5347412 | [
"Apache-2.0"
] | 1 | 2019-03-03T01:31:58.000Z | 2019-03-03T01:31:58.000Z | /*global bridge,
BroadcastChannel,
MockMozMobileConnections,
MocksHelper,
MozMobileConnectionsShim,
MozSettingsShim
*/
'use strict';
require('/services/test/unit/mock_bridge.js');
require('/services/test/unit/mock_moz_mobile_connections.js');
require('/services/test/unit/m... | 32.758929 | 79 | 0.667484 |
1d31ca8883393dca9632457ad01a8b75c485c1b1 | 3,049 | js | JavaScript | andrea-castellucci/making_visible/sketchbook/13.TextHead-SR-ControlFontSize/sketch.js | andrea-castellucci/archive | 27adc375cbd6f71dad9fac3c73cb732c74e352c4 | [
"MIT"
] | 1 | 2021-05-29T08:11:21.000Z | 2021-05-29T08:11:21.000Z | andrea-castellucci/making_visible/sketchbook/13.TextHead-SR-ControlFontSize/sketch.js | andrea-castellucci/archive | 27adc375cbd6f71dad9fac3c73cb732c74e352c4 | [
"MIT"
] | 29 | 2021-03-10T18:36:59.000Z | 2021-06-20T14:33:16.000Z | andrea-castellucci/making_visible/sketchbook/13.TextHead-SR-ControlFontSize/sketch.js | andrea-castellucci/archive | 27adc375cbd6f71dad9fac3c73cb732c74e352c4 | [
"MIT"
] | 14 | 2021-03-05T14:14:50.000Z | 2021-03-05T14:16:18.000Z | // __ __ _ ____ ____ ____ __
// / _\ ( ( \( \( _ \( __) / _\
// / \/ / ) D ( ) / ) _) / \
// \_/\_/\_)__)(____/(__\_)(____)\_/\_/
//
// -
// TextHead-SR-ControlFontSize by Andrea [yourself, words, motion]
// 2021 © Andrea @AndrCastellucci, Daniele @Fupete and the course DS-2021 at DESIGN.... | 25.198347 | 91 | 0.643162 |
1d32d72981e1b8c7961869f62229fa024eb739be | 478 | js | JavaScript | app/components/Footer/messages.js | iyang0/DMI-frontend | 29d1b6ee7a06150ccf73120be94f520414854316 | [
"MIT"
] | null | null | null | app/components/Footer/messages.js | iyang0/DMI-frontend | 29d1b6ee7a06150ccf73120be94f520414854316 | [
"MIT"
] | null | null | null | app/components/Footer/messages.js | iyang0/DMI-frontend | 29d1b6ee7a06150ccf73120be94f520414854316 | [
"MIT"
] | null | null | null | /*
* Footer Messages
*
* This contains all the text for the Footer component.
*/
import { defineMessages } from 'react-intl';
export const scope = 'DMI-frontend.components.Footer';
export default defineMessages({
byMessage: {
id: `${scope}.boilerplate.message`,
defaultMessage:
'This project was ma... | 20.782609 | 67 | 0.644351 |
1d32f1231dc529b4a01c8cceab21b419d7cb35a2 | 627 | js | JavaScript | routes/wx/wexin.js | chuilee/bigbig | 9529360a63f569f5e0c61a736f3c5c9e97d5239e | [
"MIT"
] | null | null | null | routes/wx/wexin.js | chuilee/bigbig | 9529360a63f569f5e0c61a736f3c5c9e97d5239e | [
"MIT"
] | null | null | null | routes/wx/wexin.js | chuilee/bigbig | 9529360a63f569f5e0c61a736f3c5c9e97d5239e | [
"MIT"
] | null | null | null | const crypto = require('crypto')
const TOKEN = 'paintersphotography'
exports = module.exports = function (req, res) {
var signature = req.query.signature;
var timestamp = req.query.timestamp;
var echostr = req.query.echostr;
var nonce = req.query.nonce;
var tmpArray = [nonce, timestamp, TOKEN];
tmpArray.sort... | 25.08 | 48 | 0.668262 |
1d338ffab09888fd6e7d4ed0b9a3401046764608 | 220 | js | JavaScript | client/app/main/main.controller.js | shijingjing1221/nodedemo | f766a1ef6e2ef82035c69db622f7c5ef73a3bc98 | [
"Apache-2.0"
] | null | null | null | client/app/main/main.controller.js | shijingjing1221/nodedemo | f766a1ef6e2ef82035c69db622f7c5ef73a3bc98 | [
"Apache-2.0"
] | null | null | null | client/app/main/main.controller.js | shijingjing1221/nodedemo | f766a1ef6e2ef82035c69db622f7c5ef73a3bc98 | [
"Apache-2.0"
] | null | null | null | 'use strict';
angular.module('nodedemoApp')
.controller('MainCtrl', function ($scope, $translate, LocalizationService) {
$translate.use(LocalizationService.favoriteLanguage);
$scope.test = "nodedemo";
});
| 22 | 78 | 0.709091 |
1d33dc36d1ad8647786859f7cacb91aaf948777e | 643 | js | JavaScript | src/packs/component.js | briza23/responsive-auto-repair-website | 8b9a2ca9dde55e0bb9f877da088e988bda7f8075 | [
"MIT"
] | null | null | null | src/packs/component.js | briza23/responsive-auto-repair-website | 8b9a2ca9dde55e0bb9f877da088e988bda7f8075 | [
"MIT"
] | null | null | null | src/packs/component.js | briza23/responsive-auto-repair-website | 8b9a2ca9dde55e0bb9f877da088e988bda7f8075 | [
"MIT"
] | null | null | null | import { connect } from "react-redux";
import * as Actions from "./actions/actions";
import React from "react";
import Header from "./content/header";
import Footer from "./content/footer";
import Body from './content/body_content/home';
class Components extends React.Component {
render() {
return (
... | 19.484848 | 47 | 0.603421 |
1d33e0b509ac801a236a3d6d2879823be4d7843b | 6,206 | js | JavaScript | test/Observer.js | smalluban/papillon | 81e376e0b07578779cfc929b6dd4a4e26150a927 | [
"MIT"
] | 8 | 2015-07-01T11:24:34.000Z | 2019-02-03T21:07:37.000Z | test/Observer.js | smalluban/papillon | 81e376e0b07578779cfc929b6dd4a4e26150a927 | [
"MIT"
] | null | null | null | test/Observer.js | smalluban/papillon | 81e376e0b07578779cfc929b6dd4a4e26150a927 | [
"MIT"
] | null | null | null | import { Observer, State } from '../papillon';
describe('Observer', () => {
describe('constructor', () => {
it('throw error for invalid arguments', () => {
expect(() => new Observer()).toThrow();
expect(() => new Observer({})).toThrow();
expect(() => new Observer({}, 'one')).toThrow();
ex... | 26.75 | 71 | 0.533194 |
1d387836037f7bfc900c2bbfb6f39e00393cd256 | 1,953 | js | JavaScript | js/LighterOverlay.js | truemaxdh/SpecialEffects | c4247fb6ba5c05606d643bdefc4db26e6b144e9b | [
"MIT"
] | null | null | null | js/LighterOverlay.js | truemaxdh/SpecialEffects | c4247fb6ba5c05606d643bdefc4db26e6b144e9b | [
"MIT"
] | null | null | null | js/LighterOverlay.js | truemaxdh/SpecialEffects | c4247fb6ba5c05606d643bdefc4db26e6b144e9b | [
"MIT"
] | null | null | null | if (typeof specialEffects === 'undefined' || !specialEffects) {
specialEffects = {};
}
specialEffects.lighterOverlay = function(el) {
console.log(el.style);
const obj = this.lighterOverlay;
obj.objName = "lighterOverlay";
this.runningObj = obj;
const shapeCnt = 200;
const bgColor = "black";
var cnv_b... | 28.304348 | 112 | 0.646697 |
1d3a392126311a43f08db20522051108aab75e22 | 253 | js | JavaScript | app/controllers/mappers/login.server.mapper.js | RafaelMih/MarriedApp-NodeJS | f55cc8be9f301817aaf2769239f183a0aba9a193 | [
"MIT"
] | null | null | null | app/controllers/mappers/login.server.mapper.js | RafaelMih/MarriedApp-NodeJS | f55cc8be9f301817aaf2769239f183a0aba9a193 | [
"MIT"
] | null | null | null | app/controllers/mappers/login.server.mapper.js | RafaelMih/MarriedApp-NodeJS | f55cc8be9f301817aaf2769239f183a0aba9a193 | [
"MIT"
] | null | null | null | 'use strict';
/**
* Mapper login object
*/
exports.User = function(user) {
var outUser = {
id : user._id,
name : user.firstName + ' ' + user.lastName,
type : user.roles[0],
login : user.username,
email : user.email
};
return outUser;
}; | 15.8125 | 46 | 0.612648 |
1d3ab532d4fba0f86ba3aa533322ed2052db2dab | 346 | js | JavaScript | config/networks/ganache/signers.js | tpscrpt/teller-protocol-v1 | e5d0f1a927c4bb2acceff17ffcf8394625f98c62 | [
"MIT"
] | null | null | null | config/networks/ganache/signers.js | tpscrpt/teller-protocol-v1 | e5d0f1a927c4bb2acceff17ffcf8394625f98c62 | [
"MIT"
] | null | null | null | config/networks/ganache/signers.js | tpscrpt/teller-protocol-v1 | e5d0f1a927c4bb2acceff17ffcf8394625f98c62 | [
"MIT"
] | null | null | null | module.exports = {
_1: '0xE8bF0ceF0Bf531Fd56081Ad0B85706cE37A7FD34',
_2: '0x34fA03245325fd8cf67C694685932B73aC73666C',
_3: '0x981D72d7E8dCaeae14D10db3A94f50958904C117',
_4: '0xa75f98d2566673De80Ac4169Deab45c6adad3164',
_5: '0x924Af6Cfa15F76E04763D9e24a1c892fD7767983',
_6: '0x3Eb394E83f82be8ed7ac... | 38.444444 | 53 | 0.800578 |
1d3d9d79c741ad35622441ab3bb28bb6eff32a07 | 442 | js | JavaScript | lulu_birthday/src/config.js | ykss/lulu_birthday | 2d225e73651cfec09ffb4f0a3a5a597e9c4ac07d | [
"MIT"
] | null | null | null | lulu_birthday/src/config.js | ykss/lulu_birthday | 2d225e73651cfec09ffb4f0a3a5a597e9c4ac07d | [
"MIT"
] | null | null | null | lulu_birthday/src/config.js | ykss/lulu_birthday | 2d225e73651cfec09ffb4f0a3a5a597e9c4ac07d | [
"MIT"
] | null | null | null | import { KAKAO_MAP_API_KEY, T_MAP_API_KEY } from "./API_KEY";
const config = {
global: {
kakaomapAPIKey: KAKAO_MAP_API_KEY,
tmapAPIKey: T_MAP_API_KEY,
},
title: `루루의 네번째 생일파티🎂`,
author: {
name: "루루",
},
place: {
name: "리블링코코",
address: "경기 남양주시 별내면 송산로 519-7 1층",
contact: "031-527-... | 19.217391 | 61 | 0.61991 |
1d3dbebe45baeebd8175ee0647c45ae659b2ca5d | 391 | js | JavaScript | week-5/es5-built-in-functions.js | VisionsICStudios/web-231 | 4fa8ffd0ee0a048bf83beb49c9c48579d9c3f158 | [
"MIT"
] | 1 | 2020-07-01T03:58:21.000Z | 2020-07-01T03:58:21.000Z | week-5/es5-built-in-functions.js | VisionsICStudios/web-231 | 4fa8ffd0ee0a048bf83beb49c9c48579d9c3f158 | [
"MIT"
] | null | null | null | week-5/es5-built-in-functions.js | VisionsICStudios/web-231 | 4fa8ffd0ee0a048bf83beb49c9c48579d9c3f158 | [
"MIT"
] | null | null | null | /*
============================================
; Title: es5-built-in-functions.js
; Author: Professor Krasso
; Date: 25 June 2017
; Description: Demonstrates how to loop through an array using the forEach and arrow functions
;===========================================
*/
// array of numbers
const numbers = [1, 2,... | 23 | 94 | 0.526854 |
1d3fbc8a6641780985980420f30938163682ad68 | 5,420 | js | JavaScript | pages/coin/[id].js | Mridul2820/crypto-check | 6b05cc5282e1587ad58feaff5d76483046f89290 | [
"MIT"
] | null | null | null | pages/coin/[id].js | Mridul2820/crypto-check | 6b05cc5282e1587ad58feaff5d76483046f89290 | [
"MIT"
] | 16 | 2022-01-05T19:55:04.000Z | 2022-01-22T10:48:17.000Z | pages/coin/[id].js | Mridul2820/crypto-check | 6b05cc5282e1587ad58feaff5d76483046f89290 | [
"MIT"
] | null | null | null | import React, { useEffect, useState } from 'react'
import dynamic from 'next/dynamic';
import { NextSeo } from 'next-seo';
import { useRouter } from 'next/router';
import axios from 'axios';
import { useRecoilValue } from 'recoil';
import { currencyState } from '../../atoms/currencyAtom';
const CoinMarket = dynamic((... | 34.303797 | 246 | 0.535609 |
1d4049b35a9fefc03fdffb5f3638713d557be804 | 10,556 | js | JavaScript | src/Pages/Album.js | HicoderDR/vqa_album | 8d1549ac7a92f4406a765583032118eb44064f27 | [
"MIT"
] | null | null | null | src/Pages/Album.js | HicoderDR/vqa_album | 8d1549ac7a92f4406a765583032118eb44064f27 | [
"MIT"
] | null | null | null | src/Pages/Album.js | HicoderDR/vqa_album | 8d1549ac7a92f4406a765583032118eb44064f27 | [
"MIT"
] | null | null | null | import React, { useState, useEffect } from 'react';
import AppBar from '@material-ui/core/AppBar';
import Button from '@material-ui/core/Button';
import CameraIcon from '@material-ui/icons/PhotoCamera';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardConten... | 29.651685 | 231 | 0.511368 |
1d4111b233eca740995f2529dc96ebb6903918f2 | 1,168 | js | JavaScript | test/harness/testTypedArray.js | polsevev/test262 | 04cd6da021461653b2fb1076392b6e13ffb9b1d7 | [
"BSD-3-Clause"
] | 2 | 2021-10-10T09:40:06.000Z | 2021-11-09T10:46:48.000Z | test/harness/testTypedArray.js | polsevev/test262 | 04cd6da021461653b2fb1076392b6e13ffb9b1d7 | [
"BSD-3-Clause"
] | null | null | null | test/harness/testTypedArray.js | polsevev/test262 | 04cd6da021461653b2fb1076392b6e13ffb9b1d7 | [
"BSD-3-Clause"
] | 2 | 2022-01-09T17:46:14.000Z | 2022-03-29T03:16:54.000Z | // Copyright (c) 2017 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
Including testTypedArray.js will expose:
var typedArrayConstructors = [ array of TypedArray constructors ]
var TypedArray
testWithTypedArray... | 35.393939 | 73 | 0.780822 |
1d41716e241e96fa59536b5b894de8e57aee38c3 | 451 | js | JavaScript | src/privates/_isArrayIndex.js | ascartabelli/lamb | 4e39fc297b07f84b410ce73c5eb750c9838658e4 | [
"MIT"
] | 19 | 2015-04-10T13:58:27.000Z | 2021-09-23T19:37:48.000Z | src/privates/_isArrayIndex.js | ascartabelli/lamb | 4e39fc297b07f84b410ce73c5eb750c9838658e4 | [
"MIT"
] | 8 | 2016-09-03T05:58:05.000Z | 2021-05-28T22:35:17.000Z | src/privates/_isArrayIndex.js | ascartabelli/lamb | 4e39fc297b07f84b410ce73c5eb750c9838658e4 | [
"MIT"
] | 7 | 2015-04-10T10:22:08.000Z | 2018-02-06T20:45:56.000Z | import _isEnumerable from "./_isEnumerable";
/**
* Accepts a target object and a key name and verifies that the target is an array and that
* the key is an existing index.
* @private
* @param {Object} target
* @param {String|Number} key
* @returns {Boolean}
*/
function _isArrayIndex (target, key) {
var n = ... | 25.055556 | 91 | 0.669623 |
1d41a8944051f5d9c9cdc8a302df1cb7b7373dbd | 804 | js | JavaScript | src/redux/reducers/todoReducer.js | naxir/todo | 8191058ba7c6c45d9ba8c48d082ac8ceb9bcc24e | [
"Apache-2.0"
] | null | null | null | src/redux/reducers/todoReducer.js | naxir/todo | 8191058ba7c6c45d9ba8c48d082ac8ceb9bcc24e | [
"Apache-2.0"
] | null | null | null | src/redux/reducers/todoReducer.js | naxir/todo | 8191058ba7c6c45d9ba8c48d082ac8ceb9bcc24e | [
"Apache-2.0"
] | null | null | null | import { ADD_TODO, EDIT_TODO, REMOVE_TODO, TOGGLE_TODO } from '../types'
const todoReducer =(state = [], action)=> {
switch (action.type) {
case ADD_TODO:
return [
...state,
{
todo: action.todo,
id: action.id,
isCompleted: false
}
]
case EDI... | 24.363636 | 72 | 0.518657 |
1d41d83383f01143e22d23fea280ccb54fa88e31 | 400 | js | JavaScript | resources/js/lang/es/sidebar.js | vishnuvs369/Laravel-BlogWebsite | 45362b66d5eae7912aaa343ff0d420781194d921 | [
"MIT"
] | 3,272 | 2016-12-27T06:41:56.000Z | 2022-03-24T09:10:26.000Z | resources/js/lang/es/sidebar.js | vishnuvs369/Laravel-BlogWebsite | 45362b66d5eae7912aaa343ff0d420781194d921 | [
"MIT"
] | 172 | 2016-12-27T09:21:40.000Z | 2022-02-27T05:14:00.000Z | resources/js/lang/es/sidebar.js | vishnuvs369/Laravel-BlogWebsite | 45362b66d5eae7912aaa343ff0d420781194d921 | [
"MIT"
] | 1,123 | 2016-12-27T07:12:10.000Z | 2022-03-23T14:03:39.000Z | export default {
dashboard: 'Tablero',
user: 'Usuarios',
article: 'Artículos',
discussion: 'Discusión',
comment: 'Comentarios',
tag: 'Etiquetas',
file: 'Archivos',
category: 'Categorías',
link: 'Enlaces',
visitor: 'Visitantes',
role: 'Roles',
system: 'Sistemas',
modules: {
base: 'Módulo ba... | 20 | 35 | 0.635 |
1d438802f440443fd53374f6e665e3dad624db5a | 773 | js | JavaScript | node_modules/gatsby-remark-vscode/src/host.js | jgaya/condetodo | 9d567483454358e8077e0a61b34ab32929eb090b | [
"MIT"
] | null | null | null | node_modules/gatsby-remark-vscode/src/host.js | jgaya/condetodo | 9d567483454358e8077e0a61b34ab32929eb090b | [
"MIT"
] | null | null | null | node_modules/gatsby-remark-vscode/src/host.js | jgaya/condetodo | 9d567483454358e8077e0a61b34ab32929eb090b | [
"MIT"
] | null | null | null | // @ts-check
const request = require('request');
const decompress = require('decompress');
const { gunzip } = require('./utils');
/** @type {Host} */
const host = {
fetch: (url, options) =>
new Promise((resolve, reject) => {
request.get(url, options, async (error, res, body) => {
if (error) {
... | 25.766667 | 73 | 0.556274 |
1d4560a8db586ca6aeb5e8376028ad5c3103a313 | 453 | js | JavaScript | src/Home.js | DevinDai13/TFArchive | bc7ba78c054912626521897db29d87cbab7c2950 | [
"Apache-2.0"
] | null | null | null | src/Home.js | DevinDai13/TFArchive | bc7ba78c054912626521897db29d87cbab7c2950 | [
"Apache-2.0"
] | null | null | null | src/Home.js | DevinDai13/TFArchive | bc7ba78c054912626521897db29d87cbab7c2950 | [
"Apache-2.0"
] | null | null | null | import withRoot from './withRoot';
import React from 'react';
import ProductCategories from './ProductCategories';
import AppFooter from './AppFooter';
import ProductHero from './ProductHero';
import AppAppBar from './AppAppBar';
function Index() {
return (
<React.Fragment>
<AppAppBar />
<... | 22.65 | 53 | 0.651214 |
1d45692bab8d0aef704688a80242351966e804d1 | 631 | js | JavaScript | src/theme/Introduction.js | marbar3778/tauri-docs | 1b34c92dd6f7a4e2b4bad0ae61479ea868a6aee5 | [
"MIT"
] | null | null | null | src/theme/Introduction.js | marbar3778/tauri-docs | 1b34c92dd6f7a4e2b4bad0ae61479ea868a6aee5 | [
"MIT"
] | null | null | null | src/theme/Introduction.js | marbar3778/tauri-docs | 1b34c92dd6f7a4e2b4bad0ae61479ea868a6aee5 | [
"MIT"
] | null | null | null | import Mermaid from './Mermaid'
import React from 'react'
export default () => {
const chart = `
graph TD
U-->JS
JS-->B
B-->BUILD
B-->DEV
DEV==>DBG
BUILD-->BND
BND==>WIN
U(HTML<br>CSS<br>JS)
JS(Tauri Node<br>CLI)
style JS stroke:#77CFE4,stroke-width:4px
... | 24.269231 | 72 | 0.58954 |
1d45a18086e5bd08ae4e04feb9b6943d8e634c5a | 1,739 | js | JavaScript | src/components/Contact.js | LeoRoma/Leo-Portfolio-React | 06a4622afa004a9f43a1e509caa622a163962614 | [
"MIT"
] | null | null | null | src/components/Contact.js | LeoRoma/Leo-Portfolio-React | 06a4622afa004a9f43a1e509caa622a163962614 | [
"MIT"
] | null | null | null | src/components/Contact.js | LeoRoma/Leo-Portfolio-React | 06a4622afa004a9f43a1e509caa622a163962614 | [
"MIT"
] | null | null | null | // Customize this 'myform.js' script and add it to your JS bundle.
// Then import it with 'import MyForm from "./myform.js"'.
// Finally, add a <MyForm/> element whereever you wish to display the form.
import React, {Component} from "react";
import {FaGithub, FaLinkedin} from 'react-icons/fa';
import {Row, Col} from '... | 34.78 | 131 | 0.481311 |
1d45bf0633acbf399ab7df0d6ec5ca9f3ea04d9c | 2,314 | js | JavaScript | core/modules/resize.js | isdampe/BosonEditorExperimental | 2f2cdbd118ce938a512fcf61c19438aef3d41bbc | [
"MIT"
] | 77 | 2015-05-30T08:42:30.000Z | 2022-02-04T17:41:48.000Z | core/modules/resize.js | isdampe/BosonEditorExperimental | 2f2cdbd118ce938a512fcf61c19438aef3d41bbc | [
"MIT"
] | 7 | 2015-06-04T09:56:45.000Z | 2018-11-01T12:29:40.000Z | core/modules/resize.js | isdampe/BosonEditorExperimental | 2f2cdbd118ce938a512fcf61c19438aef3d41bbc | [
"MIT"
] | 30 | 2015-06-17T13:24:55.000Z | 2021-06-23T15:43:50.000Z | var resize = this;
var bs, elements, resizeElement, sideBarWidth;
var resizeTimer = false;
exports.init = function(core) {
bs = core.bs;
elements = core.elements;
sideBarWidth = core.config.sidebarWidth;
resizeElement = window.document.createElement("div");
resizeElement.className = "resize-element";
res... | 24.357895 | 66 | 0.687554 |
1d48103c3b0e6f7fbda8e44b5737edd27edc0b99 | 2,393 | js | JavaScript | main.js | Lucsvieirabr/PrimeiroApp | dc7dda3da82163f9fdcba751b223453b454a2a31 | [
"MIT"
] | null | null | null | main.js | Lucsvieirabr/PrimeiroApp | dc7dda3da82163f9fdcba751b223453b454a2a31 | [
"MIT"
] | null | null | null | main.js | Lucsvieirabr/PrimeiroApp | dc7dda3da82163f9fdcba751b223453b454a2a31 | [
"MIT"
] | null | null | null | var tarefas = JSON.parse(localStorage.getItem('tarefas')) || [];
var count = localStorage.getItem('counter') || 0;
function listarTarefas() {
var ul = document.getElementById('tarefas');
ul.innerHTML = ""
tarefas.forEach((t) => {
if (!t.arquivada) {
let li = document.createElement('li'... | 28.488095 | 86 | 0.535729 |
1d48c9e4797797f7e274cb4b02de91fdb1b76806 | 903 | js | JavaScript | client/src/test/Location.test.js | rickBucket/JobSite | 10226a3242028150d74511339023f367851feb3c | [
"MIT"
] | 1 | 2021-04-19T02:12:22.000Z | 2021-04-19T02:12:22.000Z | client/src/test/Location.test.js | kevin-the-engi/frontend-jobsite | f92f32d585490f03d779771046b692d6fc6c8162 | [
"MIT"
] | 1 | 2021-04-07T05:53:57.000Z | 2021-04-07T05:53:57.000Z | client/src/test/Location.test.js | kevin-the-engi/frontend-jobsite | f92f32d585490f03d779771046b692d6fc6c8162 | [
"MIT"
] | 2 | 2021-04-19T02:11:27.000Z | 2021-04-22T02:41:01.000Z | import React from 'react';
import { shallow } from 'enzyme';
import Location from '../components/Location.jsx';
describe('Location', () => {
let wrapper = shallow(<Location />);
const expected = {
target: {
name: 'location',
value: 'San Francisco',
},
};
it('should detect onChange', () => ... | 30.1 | 84 | 0.645626 |
1d493ceb093584d94f5d84e25c41d0eb370e53d9 | 3,567 | js | JavaScript | src/lib/discord/discordWebhookWorker.js | Piikachuu/PoracleJS | dc2e71311ad9f6a02bbc6509273efb7386d93720 | [
"ISC"
] | null | null | null | src/lib/discord/discordWebhookWorker.js | Piikachuu/PoracleJS | dc2e71311ad9f6a02bbc6509273efb7386d93720 | [
"ISC"
] | null | null | null | src/lib/discord/discordWebhookWorker.js | Piikachuu/PoracleJS | dc2e71311ad9f6a02bbc6509273efb7386d93720 | [
"ISC"
] | null | null | null | const axios = require('axios')
const FairPromiseQueue = require('../FairPromiseQueue')
const hookRegex = new RegExp('(?:(?:https?):\\/\\/|www\\.)(?:\\([-A-Z0-9+&@#\\/%=~_|$?!:,.]*\\)|[-A-Z0-9+&@#\\/%=~_|$?!:,.])*(?:\\([-A-Z0-9+&@#\\/%=~_|$?!:,.]*\\)|[A-Z0-9+&@#\\/%=~_|$])', 'igm')
class DiscordWebhookWorker {
constr... | 39.633333 | 340 | 0.66106 |
1d49529e26ae906fe0a4bae6b3d0cd5099a37478 | 1,236 | js | JavaScript | packages/core/navigation-next/components/presentational/LayoutManager/primitives.js | HeartCommunity/uiKit | be4d040d314a93db216726a87c579e362760455d | [
"Apache-2.0"
] | 1 | 2020-08-09T09:10:20.000Z | 2020-08-09T09:10:20.000Z | packages/core/navigation-next/components/presentational/LayoutManager/primitives.js | fnamazing/uiKit | be4d040d314a93db216726a87c579e362760455d | [
"Apache-2.0"
] | null | null | null | packages/core/navigation-next/components/presentational/LayoutManager/primitives.js | fnamazing/uiKit | be4d040d314a93db216726a87c579e362760455d | [
"Apache-2.0"
] | 2 | 2019-10-02T19:17:44.000Z | 2019-12-25T11:44:11.000Z | import { css as _css2 } from "emotion";
import _extends from "@babel/runtime/helpers/extends";
import { css as _css } from "emotion";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import { layers } from '@findable/theme';
export var LayoutContainer = f... | 33.405405 | 86 | 0.666667 |
1d4a4ee08a98d763fd72dbbfd171b0138fd2edde | 721 | js | JavaScript | src/components/Menus/FooterMenu.js | aljmiller87/gatsby-wordpress | fa1f8367c4ad707ee0983f9cee41b62c0666fb62 | [
"MIT"
] | null | null | null | src/components/Menus/FooterMenu.js | aljmiller87/gatsby-wordpress | fa1f8367c4ad707ee0983f9cee41b62c0666fb62 | [
"MIT"
] | null | null | null | src/components/Menus/FooterMenu.js | aljmiller87/gatsby-wordpress | fa1f8367c4ad707ee0983f9cee41b62c0666fb62 | [
"MIT"
] | null | null | null | import React from "react";
import { graphql, useStaticQuery, Link } from "gatsby";
export const query = graphql`
{
menus: allWordpressWpApiMenusMenusItems(
filter: { name: { eq: "Footer" } }
) {
edges {
menu: node {
items {
title
object_slug
}
... | 18.487179 | 61 | 0.472954 |
1d4ab083895a1aebc762a6085cad27af82a04c1f | 900 | js | JavaScript | client/src/firebase/fbconfig.js | oguzkarademir/Portfolio | 07a562d0bc4bcad80caa7b3c149826d3dfa42894 | [
"MIT"
] | 1 | 2021-02-09T12:53:29.000Z | 2021-02-09T12:53:29.000Z | client/src/firebase/fbconfig.js | oguzkarademir/Portfolio | 07a562d0bc4bcad80caa7b3c149826d3dfa42894 | [
"MIT"
] | null | null | null | client/src/firebase/fbconfig.js | oguzkarademir/Portfolio | 07a562d0bc4bcad80caa7b3c149826d3dfa42894 | [
"MIT"
] | null | null | null | import firebase from 'firebase';
import "firebase/auth";
var firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
messagingSenderId: process.env.REA... | 22.5 | 76 | 0.646667 |
1d4c00a8e42d92457e025e47239b9898ddd8da55 | 698 | js | JavaScript | utils/helpers.js | cjsmith1988/CMS-Blog-Site | 050f0d9f8f469247b1ffea51ff374abf4dcc44b2 | [
"MIT"
] | null | null | null | utils/helpers.js | cjsmith1988/CMS-Blog-Site | 050f0d9f8f469247b1ffea51ff374abf4dcc44b2 | [
"MIT"
] | null | null | null | utils/helpers.js | cjsmith1988/CMS-Blog-Site | 050f0d9f8f469247b1ffea51ff374abf4dcc44b2 | [
"MIT"
] | null | null | null | module.exports = {
format_date: date => {
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
const days = ["1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th",
... | 38.777778 | 153 | 0.469914 |
1d4c8893bf8dd02623fc2dd6573ef55bd3368f44 | 1,932 | js | JavaScript | elements/random-image/src/random-image.js | cgldevel/lrnwebcomponents | b301e58b042b606ab6378bdaae24ac537bfc0c0e | [
"Apache-2.0"
] | 1 | 2019-09-04T20:39:01.000Z | 2019-09-04T20:39:01.000Z | elements/random-image/src/random-image.js | jnb5409/lrnwebcomponents | ba6bc82345a01b17b58437c47a59e7839b8b0a1e | [
"Apache-2.0"
] | null | null | null | elements/random-image/src/random-image.js | jnb5409/lrnwebcomponents | ba6bc82345a01b17b58437c47a59e7839b8b0a1e | [
"Apache-2.0"
] | null | null | null | import { html, PolymerElement } from "@polymer/polymer/polymer-element.js";
import { afterNextRender } from "@polymer/polymer/lib/utils/render-status.js";
/**
`random-image`
Element to show random image from a given group.
* @demo demo/index.html
*/
class RandomImage extends PolymerElement {
constructor() {
supe... | 23.851852 | 123 | 0.574534 |
1d4eb8ee40c5e503fd461c4d4283ec153a9cca21 | 3,913 | js | JavaScript | html/src/math/Bezier.js | drojdjou/squareroot.js | 3b8a8780c2f50c4fef9bc2b37210d76d539c612f | [
"MIT"
] | 126 | 2015-01-05T22:37:07.000Z | 2021-07-05T03:16:40.000Z | html/src/math/Bezier.js | drojdjou/squareroot.js | 3b8a8780c2f50c4fef9bc2b37210d76d539c612f | [
"MIT"
] | 2 | 2015-11-01T20:59:50.000Z | 2017-08-10T08:09:28.000Z | html/src/math/Bezier.js | drojdjou/squareroot.js | 3b8a8780c2f50c4fef9bc2b37210d76d539c612f | [
"MIT"
] | 21 | 2015-01-09T01:05:35.000Z | 2020-07-27T20:31:53.000Z | /**
* @class Bezier
* @memberof SQR
*
* @description Represents a cubic bezier curve. All paramaters can be either {@link SQR.V3} or {@link SQR.V2}.
*
* @param _p0 start position
* @param _c0 first control point
* @param _c1 last control point
* @param _c1 end position
*
*/
SQR.Bezier = function(_p0, ... | 30.811024 | 167 | 0.58114 |
1d4f7b43cb1873a1db3b4a960c518f55d73e1e78 | 4,627 | js | JavaScript | store/index.js | jonasbbernardi/moneictrl | bdb99ab8d5d35a3a560ab80b8b3fbee6745b5b71 | [
"MIT"
] | null | null | null | store/index.js | jonasbbernardi/moneictrl | bdb99ab8d5d35a3a560ab80b8b3fbee6745b5b71 | [
"MIT"
] | 1 | 2022-02-27T11:31:56.000Z | 2022-02-27T11:31:56.000Z | store/index.js | jonasbbernardi/moneictrl | bdb99ab8d5d35a3a560ab80b8b3fbee6745b5b71 | [
"MIT"
] | null | null | null | import { combineReducers, createStore, applyMiddleware } from 'redux';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { Cache } from "react-native-cache";
import thunk from 'redux-thunk';
import moment from 'moment';
import { getStorageItems } from '../actions/getItems';
import { getStor... | 33.528986 | 78 | 0.670197 |
1d4f989e51e94ebcf0160f538de65df904799662 | 4,475 | js | JavaScript | functionalTest/mb.js | msy53719/mountebank | 8a0f731113eac68c5394fb682b25d737ec59260b | [
"MIT"
] | null | null | null | functionalTest/mb.js | msy53719/mountebank | 8a0f731113eac68c5394fb682b25d737ec59260b | [
"MIT"
] | null | null | null | functionalTest/mb.js | msy53719/mountebank | 8a0f731113eac68c5394fb682b25d737ec59260b | [
"MIT"
] | null | null | null | 'use strict';
var Q = require('q'),
fs = require('fs'),
path = require('path'),
spawn = require('child_process').spawn,
exec = require('child_process').exec,
httpClient = require('./api/http/baseHttpClient').create('http'),
headers = { connection: 'close' },
isWindows = require('os').platfo... | 28.322785 | 116 | 0.532514 |
1d4fa07f12392661d3c4acfe063e73cd1adfbd6f | 1,813 | js | JavaScript | lambdas/scored-reports/handler.js | carlgieringer/thorninside | 9c2a5d30ec4161c5f88a4c2579a11f1a2aa6a58d | [
"Unlicense"
] | null | null | null | lambdas/scored-reports/handler.js | carlgieringer/thorninside | 9c2a5d30ec4161c5f88a4c2579a11f1a2aa6a58d | [
"Unlicense"
] | null | null | null | lambdas/scored-reports/handler.js | carlgieringer/thorninside | 9c2a5d30ec4161c5f88a4c2579a11f1a2aa6a58d | [
"Unlicense"
] | null | null | null | const serverless = require('serverless-http');
const express = require('express');
const app = express();
const AWS = require('aws-sdk'); // eslint-disable-line import/no-extraneous-dependencies
const dynamoDb = new AWS.DynamoDB.DocumentClient();
app.get('/', (request, response) => {
console.log(`GET: ${request.or... | 23.855263 | 88 | 0.635962 |
1d503806ba0ba091b0f9f11d95258fa3f7b6a109 | 589 | js | JavaScript | src/store/sagas/saga.js | duc110789/vmms | b80c20aa7056e8acbb4a44110c9c7a28710b4309 | [
"MIT"
] | null | null | null | src/store/sagas/saga.js | duc110789/vmms | b80c20aa7056e8acbb4a44110c9c7a28710b4309 | [
"MIT"
] | null | null | null | src/store/sagas/saga.js | duc110789/vmms | b80c20aa7056e8acbb4a44110c9c7a28710b4309 | [
"MIT"
] | null | null | null | import { all, fork } from 'redux-saga/effects';
import merchantListSaga from './listMerchantSaga';
import commonSourceSate from './commonSourceSage';
import addMerchant from './addMerchantBySage';
import editMerchantSaga from './editMerchantSaga';
import detailMerchantSaga from './detailMerchantSaga';
import approveMer... | 31 | 56 | 0.760611 |
1d5045700f82d14ebe84d228c813d2abdef8a2f0 | 5,983 | js | JavaScript | test/extend_ui.js | mytharcher/ER2 | 68a2d3414566e1f9a48c4e108c8104d0cc8b8840 | [
"BSD-3-Clause"
] | 21 | 2015-03-04T09:25:30.000Z | 2021-11-08T09:03:53.000Z | test/extend_ui.js | mytharcher/ER2 | 68a2d3414566e1f9a48c4e108c8104d0cc8b8840 | [
"BSD-3-Clause"
] | 1 | 2019-03-30T12:07:41.000Z | 2019-03-30T12:07:41.000Z | test/extend_ui.js | mytharcher/ER2 | 68a2d3414566e1f9a48c4e108c8104d0cc8b8840 | [
"BSD-3-Clause"
] | 9 | 2015-01-14T09:25:17.000Z | 2020-01-27T21:25:31.000Z | er.template.parse( '<!-- target: uiview --><div ui="type:Button;id:myButton"></div><div ui="type:Select;id:mySelect;datasource:*users"></div>' );
er.template.parse( '<!-- target: uiviewsimple --><div ui="type:Button;id:myButton"></div><div ui="type:Select;id:mySelect;"></div>' );
er.template.parse( '<!-- target: uiinpu... | 27.957944 | 145 | 0.57396 |
1d507cc02ff9a70b20b5e1c2f72a0ea066d7ea3b | 599 | js | JavaScript | webpack-vuex/src/router/index.js | adrienloup/boilerplates | 9849dd1390d0ffa4ca46122d2ce5acfaa7729187 | [
"0BSD"
] | null | null | null | webpack-vuex/src/router/index.js | adrienloup/boilerplates | 9849dd1390d0ffa4ca46122d2ce5acfaa7729187 | [
"0BSD"
] | 33 | 2019-12-29T23:03:57.000Z | 2021-10-06T02:43:45.000Z | webpack-vuex/src/router/index.js | adrienloup/starter | 834352e35402951036a55726af115c5bf9356cc0 | [
"ISC"
] | 2 | 2020-04-10T14:00:13.000Z | 2020-04-25T02:17:32.000Z | import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'home',
component: () => import('@/pages/Home.vue')
},
{
path: '/women',
name: 'women',
component: () => import('@/pages/W... | 17.114286 | 50 | 0.45409 |
1d50c08c0c2d313dc77096400f3c63c5da1f6633 | 1,214 | js | JavaScript | js/sykepengesoknad/soknad-selvstendig-frilanser/kvittering/Kvittering.js | navikt/sykepengesoknad | b5b07c7cee66b03e8ae0dc1d3245a0bd860bd000 | [
"MIT"
] | 1 | 2019-11-05T15:05:27.000Z | 2019-11-05T15:05:27.000Z | js/sykepengesoknad/soknad-selvstendig-frilanser/kvittering/Kvittering.js | navikt/sykepengesoknad | b5b07c7cee66b03e8ae0dc1d3245a0bd860bd000 | [
"MIT"
] | 5 | 2019-05-28T16:40:46.000Z | 2020-06-29T12:38:52.000Z | js/sykepengesoknad/soknad-selvstendig-frilanser/kvittering/Kvittering.js | navikt/sykepengesoknad | b5b07c7cee66b03e8ae0dc1d3245a0bd860bd000 | [
"MIT"
] | null | null | null | import React from 'react';
import { getLedetekst, getHtmlLedetekst } from '@navikt/digisyfo-npm';
import { Link } from 'react-router';
import Sidetopp from '../../../components/Sidetopp';
import { IllustrertInnholdGronnHake } from '../../../components/IllustrertInnhold';
const Kvittering = () => {
return (<div>
... | 40.466667 | 125 | 0.627677 |
1d5236cf387939ea7bc5677ae83a5964278ed4bd | 803 | js | JavaScript | service/tshirts.js | manuelpuetz/pace | c5f046724648cadb10e4c47d5fa707dffaa6cb5c | [
"Apache-2.0"
] | 12 | 2015-07-15T17:10:38.000Z | 2018-01-29T23:20:07.000Z | service/tshirts.js | manuelpuetz/pace | c5f046724648cadb10e4c47d5fa707dffaa6cb5c | [
"Apache-2.0"
] | 86 | 2015-10-05T16:56:01.000Z | 2018-09-11T09:17:18.000Z | service/tshirts.js | manuelpuetz/pace | c5f046724648cadb10e4c47d5fa707dffaa6cb5c | [
"Apache-2.0"
] | 21 | 2015-07-15T16:38:39.000Z | 2018-09-28T21:07:13.000Z | /* jshint node: true */
/* jshint esnext: true */
'use strict';
const _ = require('lodash');
const db = require('../service/util/dbHelper');
let tshirts = {};
tshirts.addFor = (tshirt, participantId) => {
return db.insert('insert into tshirts ' +
'(size, model, participantId) ' +
'values($1, $2, $3) return... | 23.617647 | 86 | 0.62142 |
1d5278a4600c278159eefdd4c04ff1f926fffaa8 | 412 | js | JavaScript | setEmoji.js | scrollback/remarkable-emoji | d297420e39e24b0e0edead11548294f4852d03b3 | [
"MIT"
] | 15 | 2015-01-29T13:38:36.000Z | 2020-12-30T12:07:41.000Z | setEmoji.js | scrollback/remarkable-emoji | d297420e39e24b0e0edead11548294f4852d03b3 | [
"MIT"
] | 2 | 2017-03-20T21:06:47.000Z | 2018-03-14T09:49:34.000Z | setEmoji.js | scrollback/remarkable-emoji | d297420e39e24b0e0edead11548294f4852d03b3 | [
"MIT"
] | 3 | 2017-05-30T13:42:26.000Z | 2020-04-04T19:20:11.000Z | /* jshint node:true */
var emojiMap = require('./emoji-map.js');
module.exports = function (text) {
if (typeof text !== "string") {
return;
}
var emoji;
var words = text.split(/[,. ]+/);
words.forEach(function (word) {
if (emojiMap.hasOwnProperty(word)) {
emoji = emojiMa... | 24.235294 | 45 | 0.531553 |
1d53ff8d6c8d0727cd37da769cb930bee11c4569 | 2,173 | js | JavaScript | offline/3.38/esri/layers/pixelFilters/VectorFieldPixelFilter.js | shreepaulnsg/MociPortal_staging_final | 82ad837975ef244de4b7f81f1c53f05bd14bcee2 | [
"Apache-2.0"
] | null | null | null | offline/3.38/esri/layers/pixelFilters/VectorFieldPixelFilter.js | shreepaulnsg/MociPortal_staging_final | 82ad837975ef244de4b7f81f1c53f05bd14bcee2 | [
"Apache-2.0"
] | null | null | null | offline/3.38/esri/layers/pixelFilters/VectorFieldPixelFilter.js | shreepaulnsg/MociPortal_staging_final | 82ad837975ef244de4b7f81f1c53f05bd14bcee2 | [
"Apache-2.0"
] | null | null | null | // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.38/esri/copyright.txt for details.
//>>built
define("esri/layers/pixelFilters/VectorFieldPixelFilter","dojo/_base/declare dojo/_base/lang dojo/has ../../kernel ../../lang dojo/_base/array".split(" "),function... | 310.428571 | 565 | 0.747814 |
1d5430f9759028bc674e392ecb6088d6b751c3a5 | 113 | js | JavaScript | src/js/index.js | kalen992/webpack_compile_ts_to_js | c3a6eea9ca32a96e492386e2b694fc4b3cc694b3 | [
"MIT"
] | null | null | null | src/js/index.js | kalen992/webpack_compile_ts_to_js | c3a6eea9ca32a96e492386e2b694fc4b3cc694b3 | [
"MIT"
] | null | null | null | src/js/index.js | kalen992/webpack_compile_ts_to_js | c3a6eea9ca32a96e492386e2b694fc4b3cc694b3 | [
"MIT"
] | null | null | null | import arr from './arr'
console.log(`es compile start`);
arr.forEach(element => {
console.log(element);
}); | 16.142857 | 32 | 0.654867 |
1d55825b8f13bc6ac38ae910282081d2ce17fcb3 | 988 | js | JavaScript | src/lib/Server/Oring.Server.IncomingMessageBase.js | dlid/oringjs | 49221ceec41bc6b374637e325d77f5ebd6827ede | [
"MIT"
] | null | null | null | src/lib/Server/Oring.Server.IncomingMessageBase.js | dlid/oringjs | 49221ceec41bc6b374637e325d77f5ebd6827ede | [
"MIT"
] | null | null | null | src/lib/Server/Oring.Server.IncomingMessageBase.js | dlid/oringjs | 49221ceec41bc6b374637e325d77f5ebd6827ede | [
"MIT"
] | null | null | null | var IncomingMessageBase = {
_t : null,
_d : null,
_c : null,
_i : null,
_w : null,
getData : function() {
return this._d;
},
getType : function() {
return this._t;
},
getInvocationID : function() {
return this._i;
},
expectingResponse : function() {
re... | 22.454545 | 61 | 0.469636 |
1d55b0fc58f322c3914708cf1a560450830fc2c6 | 729 | js | JavaScript | vuetify.options.js | Sphereon-Opensource/poe-js-webapp | dbc5f1d065cb3a318a9acb5d46edcbbed7741657 | [
"Apache-2.0"
] | null | null | null | vuetify.options.js | Sphereon-Opensource/poe-js-webapp | dbc5f1d065cb3a318a9acb5d46edcbbed7741657 | [
"Apache-2.0"
] | 3 | 2021-03-10T02:27:18.000Z | 2021-06-28T14:26:28.000Z | vuetify.options.js | Sphereon-Opensource/poe-js-webapp | dbc5f1d065cb3a318a9acb5d46edcbbed7741657 | [
"Apache-2.0"
] | null | null | null | import LRU from 'lru-cache';
import colors from 'vuetify/lib/util/colors';
const isProduction = process.env.NODE_ENV === 'production';
const themeCache = new LRU({
max: 10,
maxAge: 1000 * 60 * 60
});
export default {
theme: {
options: {
themeCache,
minifyTheme: value => isProduction ? value.rep... | 22.090909 | 86 | 0.573388 |
21d301dde4c3c0b3cd3d0689a8798910d4e731e8 | 4,747 | js | JavaScript | JSON/ValueTransformer.randomdatewithrange.js | SmartJSONEditor/PublicDocuments | 47e120aebe616f20517a8a94e44191edeeef9b15 | [
"MIT"
] | 35 | 2017-09-04T18:28:13.000Z | 2022-03-16T16:32:37.000Z | JSON/ValueTransformer.randomdatewithrange.js | SmartJSONEditor/PublicDocuments | 47e120aebe616f20517a8a94e44191edeeef9b15 | [
"MIT"
] | 25 | 2017-10-17T18:26:30.000Z | 2022-03-10T11:35:32.000Z | JSON/ValueTransformer.randomdatewithrange.js | SmartJSONEditor/PublicDocuments | 47e120aebe616f20517a8a94e44191edeeef9b15 | [
"MIT"
] | 7 | 2017-09-20T02:21:02.000Z | 2021-08-16T23:25:54.000Z | var ValueTransformer = function () {
this.displayName = "Random Date with Range";
this.shortDescription = "Creates random date string with format within defined range";
this.isEditingDisabled = true;
this.infoUrl = "https://github.com/SmartJSONEditor/PublicDocuments/wiki/ValueTransformer-RandomDateWith... | 41.640351 | 121 | 0.597009 |
21d3724c0c99ac31782cc0042810fef422afd612 | 697 | js | JavaScript | src/index.js | DevTyping/lavie | ce31aa20452913f1458004f00270447af527fba6 | [
"MIT"
] | null | null | null | src/index.js | DevTyping/lavie | ce31aa20452913f1458004f00270447af527fba6 | [
"MIT"
] | null | null | null | src/index.js | DevTyping/lavie | ce31aa20452913f1458004f00270447af527fba6 | [
"MIT"
] | null | null | null | import * as components from './components'
import './css/lavie.css'
// Declare install function executed by Vue.use()
export default function install (Vue) {
if (install.installed) return
install.installed = true
for (const key in components) {
const component = components[key]
if (component) {
Vue... | 22.483871 | 67 | 0.681492 |
21d3a9c4c3b58732d1a0196dbff10b58bbb9fb1d | 1,036 | js | JavaScript | ch14/p-06-auto-views.js | Hans-Tsai/nodejs-express-practice | 1b6ae0225dfa09f023d9b4b11cae86d0fd400066 | [
"MIT"
] | 1 | 2020-12-07T03:37:18.000Z | 2020-12-07T03:37:18.000Z | ch14/p-06-auto-views.js | Hans-Tsai/nodejs-express-practice | 1b6ae0225dfa09f023d9b4b11cae86d0fd400066 | [
"MIT"
] | null | null | null | ch14/p-06-auto-views.js | Hans-Tsai/nodejs-express-practice | 1b6ae0225dfa09f023d9b4b11cae86d0fd400066 | [
"MIT"
] | null | null | null | const express = require('express');
const expressHandlebars = require('express-handlebars');
const app = express();
// configure Handlebars view engine
app.engine('handlebars', expressHandlebars({ defaultLayout: 'main' }));
app.set('view engine', 'handlebars');
app.use(express.static(__dirname + '/public'));
// pro... | 29.6 | 88 | 0.67278 |
21d3ebdf929d55fe2bb5f863bd074066d9dae0f2 | 2,153 | js | JavaScript | infra/platys-datahub/adr/.log4brains/out/_next/static/chunks/3da477db.e49cd5277ed36ace32c1.js | martinpz/data-mesh-hackathon | 49b68b478ac870a0c6fe774ba2ed65fea59866f6 | [
"Apache-2.0"
] | 1 | 2022-02-10T08:05:56.000Z | 2022-02-10T08:05:56.000Z | infra/platys-datahub/adr/.log4brains/out/_next/static/chunks/3da477db.e49cd5277ed36ace32c1.js | martinpz/data-mesh-hackathon | 49b68b478ac870a0c6fe774ba2ed65fea59866f6 | [
"Apache-2.0"
] | null | null | null | infra/platys-datahub/adr/.log4brains/out/_next/static/chunks/3da477db.e49cd5277ed36ace32c1.js | martinpz/data-mesh-hackathon | 49b68b478ac870a0c6fe774ba2ed65fea59866f6 | [
"Apache-2.0"
] | 8 | 2022-02-10T09:30:12.000Z | 2022-02-10T16:28:46.000Z | (window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[6],{"OiM/":function(c,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var s=n("1d1W");function a(c){return Object(s.a)({tag:"svg",attr:{version:"1.1",viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M16 3.737v0c-6.126 0-1... | 2,153 | 2,153 | 0.666976 |
21d5c22ff197a7872d226a5524f150c84d6dc508 | 7,230 | js | JavaScript | functions.js | hammam1311/JSEpisode4 | 206d7fca33abcb3ba6717e5a65dbfde423ea167a | [
"MIT"
] | null | null | null | functions.js | hammam1311/JSEpisode4 | 206d7fca33abcb3ba6717e5a65dbfde423ea167a | [
"MIT"
] | null | null | null | functions.js | hammam1311/JSEpisode4 | 206d7fca33abcb3ba6717e5a65dbfde423ea167a | [
"MIT"
] | null | null | null | /**************************************************************
* getBookById(bookId, books):
* - receives a bookId
* - recieves an array of book objects
* - returns the book object that matches that id
* - returns undefined if no matching book is found
************************************************************... | 25.457746 | 168 | 0.533333 |
21d5f25e55ce344db97280e702fdc485b44694ea | 55 | js | JavaScript | app/actions/ActionTypes.js | catdematos98/FTCScout | 7234b3a3148a6a83191977926d9de100ffa770b3 | [
"MIT"
] | null | null | null | app/actions/ActionTypes.js | catdematos98/FTCScout | 7234b3a3148a6a83191977926d9de100ffa770b3 | [
"MIT"
] | null | null | null | app/actions/ActionTypes.js | catdematos98/FTCScout | 7234b3a3148a6a83191977926d9de100ffa770b3 | [
"MIT"
] | null | null | null | // export const SET_RATING_VALUE = 'SET_RATING_VALUE';
| 27.5 | 54 | 0.781818 |
21d60b521a9f0cbf353c101f1578e63595452984 | 3,200 | js | JavaScript | implementations/server/server.js | Announcement/yaclient | f36e2cf4a6f4b46b872cdcdfb25a61f124afe569 | [
"MIT"
] | null | null | null | implementations/server/server.js | Announcement/yaclient | f36e2cf4a6f4b46b872cdcdfb25a61f124afe569 | [
"MIT"
] | null | null | null | implementations/server/server.js | Announcement/yaclient | f36e2cf4a6f4b46b872cdcdfb25a61f124afe569 | [
"MIT"
] | null | null | null | const net = require('net')
const server = new net.Server()
const nicks = new Set
// LS, LIST, REQ, ACK, NAK, and END.
server.on('connection', socket => {
let nick;
let messages_from_client = 0;
console.log('connection')
socket.on('close', () => {
console.log('close')
})
socket.on('connect', () => ... | 31.683168 | 122 | 0.569063 |
21d6283cf7b764c4ceb0bd3f25cd94b31549a180 | 288 | js | JavaScript | src/state/loader/reducers/index.js | sgermain06/codebreaker | 0fd1e5f53e425b75ea6d8420af931b396d73f71a | [
"MIT"
] | 3 | 2021-03-01T17:03:49.000Z | 2021-12-15T20:05:57.000Z | src/state/loader/reducers/index.js | sgermain06/codebreaker | 0fd1e5f53e425b75ea6d8420af931b396d73f71a | [
"MIT"
] | null | null | null | src/state/loader/reducers/index.js | sgermain06/codebreaker | 0fd1e5f53e425b75ea6d8420af931b396d73f71a | [
"MIT"
] | null | null | null | import {types as EventTypes} from '../events';
import genericReducer from '../../_common/reducers/generic-reducer';
const initialState = false;
const reductionLookup = {
[EventTypes.Loading]: (_, loading) => loading,
};
export default genericReducer(initialState, reductionLookup); | 28.8 | 68 | 0.743056 |
21d706ca7e3d9c5152c0d563ab25344d1788f994 | 3,736 | js | JavaScript | dataStore.js | JakeLin/moments-api | 7c1e21c727c389fa9d8864c9a564193d14286a4f | [
"MIT"
] | null | null | null | dataStore.js | JakeLin/moments-api | 7c1e21c727c389fa9d8864c9a564193d14286a4f | [
"MIT"
] | null | null | null | dataStore.js | JakeLin/moments-api | 7c1e21c727c389fa9d8864c9a564193d14286a4f | [
"MIT"
] | null | null | null | const moment = require('moment');
const momentsDetails = {
userDetails: {
id: '0',
name: 'Jake Lin',
avatar: 'https://avatars0.githubusercontent.com/u/573856?s=460&v=4',
backgroundImage: 'https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_720.jpg'
},
moments: [
{
id: '0',
... | 42.942529 | 179 | 0.633833 |
21d726416ae9d05a8e7973a446503e805a8c4e60 | 449 | js | JavaScript | components/activity/type/lang/en.js | BrightspaceHypermediaComponents/foundation-components | 485652cd0796c16ca44448521ce67bc1881e91b6 | [
"Apache-2.0"
] | 4 | 2020-12-22T16:42:23.000Z | 2021-11-02T16:55:07.000Z | components/activity/type/lang/en.js | BrightspaceHypermediaComponents/foundation-components | 485652cd0796c16ca44448521ce67bc1881e91b6 | [
"Apache-2.0"
] | 371 | 2020-10-21T18:50:03.000Z | 2022-03-31T18:35:55.000Z | components/activity/type/lang/en.js | BrightspaceHypermediaComponents/foundation-components | 485652cd0796c16ca44448521ce67bc1881e91b6 | [
"Apache-2.0"
] | 1 | 2021-03-08T22:37:43.000Z | 2021-03-08T22:37:43.000Z | /* eslint quotes: 0 */
export default {
"label-activity": "Activity",
"label-assignment": "Assignment",
"label-checklist": "Checklist",
"label-content": "Content",
"label-course": "Course",
"label-discussion": "Discussion",
"label-group": "Group Assignment",
"label-groupCategory": "Group Category",
"label-ind... | 26.411765 | 45 | 0.685969 |
21d7d28bb12e902fa6089784a2718b9d2908e0a6 | 1,050 | js | JavaScript | gatsby/data/data.normalize.js | Frainlar/portfolio | f4660585a7beff7538ebdd82d25ea65b94a9e3c5 | [
"MIT"
] | 2 | 2021-03-25T05:33:08.000Z | 2021-05-12T03:06:41.000Z | gatsby/data/data.normalize.js | Frainlar/portfolio | f4660585a7beff7538ebdd82d25ea65b94a9e3c5 | [
"MIT"
] | 2 | 2020-03-15T06:43:19.000Z | 2022-02-10T21:29:51.000Z | gatsby/data/data.normalize.js | Frainlar/portfolio | f4660585a7beff7538ebdd82d25ea65b94a9e3c5 | [
"MIT"
] | null | null | null | function normalizeHero(article) {
let hero = {
full: {},
regular: {},
narrow: {},
seo: {}
};
if (article.hero) {
hero = {
full: article.hero.full.fluid
};
} else {
console.log("\u001B[33m", `Missing hero for "${article.title}"`);
}
return hero;
}
module.exports.local = {... | 25 | 79 | 0.625714 |
21da0498c05769b14ea827c360e6534aced74771 | 462 | js | JavaScript | test/fixtures/jsconfig/src/App.test.js | jhsware/create-inferno-app-experimental | ce420cbb103d69241e8c47934dec1f95ef7102ee | [
"MIT"
] | null | null | null | test/fixtures/jsconfig/src/App.test.js | jhsware/create-inferno-app-experimental | ce420cbb103d69241e8c47934dec1f95ef7102ee | [
"MIT"
] | null | null | null | test/fixtures/jsconfig/src/App.test.js | jhsware/create-inferno-app-experimental | ce420cbb103d69241e8c47934dec1f95ef7102ee | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Inferno from 'inferno';
import { render } from 'inferno';
import App from './App';
test('loads modules absolutely with baseUrl',... | 25.666667 | 66 | 0.670996 |
21dac531201d38ff6beb86e220f149e91df7a5c6 | 149 | js | JavaScript | docs/Doxygen/html/search/variables_3.js | AdrianKoch3010/MarsBaseEngine | 77bdd93c74caad0576b226c25ac4b0fe375f51be | [
"MIT"
] | 4 | 2019-06-28T09:27:54.000Z | 2020-04-10T03:24:35.000Z | docs/Doxygen/html/search/variables_3.js | AdrianKoch3010/MarsBaseEngine | 77bdd93c74caad0576b226c25ac4b0fe375f51be | [
"MIT"
] | null | null | null | docs/Doxygen/html/search/variables_3.js | AdrianKoch3010/MarsBaseEngine | 77bdd93c74caad0576b226c25ac4b0fe375f51be | [
"MIT"
] | 1 | 2020-09-15T02:33:21.000Z | 2020-09-15T02:33:21.000Z | var searchData=
[
['open',['open',['../classmbe_1_1detail_1_1_a_star_node.html#a3133811951b14150b41a106f570fe38d',1,'mbe::detail::AStarNode']]]
];
| 29.8 | 127 | 0.744966 |
21dd70c92ca730d57029695efe2879a54ea5e84d | 237 | js | JavaScript | jest.config.js | HumanBrainProject/hbp-quickfire | 2d2c8ec5380815272cfc1182be110eecbdf30c21 | [
"MIT"
] | 5 | 2018-11-15T03:48:30.000Z | 2020-12-20T16:13:17.000Z | jest.config.js | HumanBrainProject/hbp-quickfire | 2d2c8ec5380815272cfc1182be110eecbdf30c21 | [
"MIT"
] | 7 | 2019-05-11T00:15:18.000Z | 2022-02-12T04:12:06.000Z | jest.config.js | HumanBrainProject/hbp-quickfire | 2d2c8ec5380815272cfc1182be110eecbdf30c21 | [
"MIT"
] | 1 | 2018-11-15T03:48:37.000Z | 2018-11-15T03:48:37.000Z | module.exports = {
"verbose": true,
"testMatch": ["<rootDir>/src/**/*.test.js"],
"transform": {
"^.+\\.jsx?$": "babel-jest"
},
"collectCoverageFrom": ["<rootDir>/src/**/*.js"],
"setupFiles": ["<rootDir>/jest.setup.js"]
}; | 26.333333 | 51 | 0.544304 |
21ded6895705351ac9a091639b1b19499253618e | 1,116 | js | JavaScript | __tests__/Employee.test.js | civ187/Team-Profile-Genereator | ffef9434c978a4b242f9926369fe18d0a64a8f25 | [
"MIT"
] | null | null | null | __tests__/Employee.test.js | civ187/Team-Profile-Genereator | ffef9434c978a4b242f9926369fe18d0a64a8f25 | [
"MIT"
] | 3 | 2020-07-26T20:18:50.000Z | 2020-07-30T04:32:36.000Z | __tests__/Employee.test.js | civ187/Team-Profile-Generator | ffef9434c978a4b242f9926369fe18d0a64a8f25 | [
"MIT"
] | null | null | null | const Employee = require('../lib/Employee.js');
test('Creates Employee Obj', () => {
const employee = new Employee('Victor', '0019', 'civ187@gmail.com')
expect(employee.name).toBe('Victor');
expect(employee.id).toBe('0019');
expect(employee.email).toBe('civ187@gmail.com');
expect(employee).toE... | 32.823529 | 92 | 0.659498 |
21df8eccac4f49c1965a21550d1235ead8ae2eee | 9,389 | js | JavaScript | demo/scripts/admin_interface.js | filmmaker3d/realitybuilder | 5195869b53e46fe4b62d0be3a3d13ec82e6fd014 | [
"Apache-2.0"
] | null | null | null | demo/scripts/admin_interface.js | filmmaker3d/realitybuilder | 5195869b53e46fe4b62d0be3a3d13ec82e6fd014 | [
"Apache-2.0"
] | null | null | null | demo/scripts/admin_interface.js | filmmaker3d/realitybuilder | 5195869b53e46fe4b62d0be3a3d13ec82e6fd014 | [
"Apache-2.0"
] | null | null | null | // Admin interface to the Reality Builder.
// Copyright 2010-2012 Felix E. Klee <felix.klee@inka.de>
//
// 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... | 35.033582 | 80 | 0.565023 |
21dfc47c9b4ee7de2580ca80364cc4c33ab70c73 | 15,100 | js | JavaScript | app/SysUpdateAlerts/SysUpdateAlerts.js | nizovn/luna-systemui | 9db5f65a072d2f5af7070efbf38af41705232990 | [
"Apache-2.0"
] | null | null | null | app/SysUpdateAlerts/SysUpdateAlerts.js | nizovn/luna-systemui | 9db5f65a072d2f5af7070efbf38af41705232990 | [
"Apache-2.0"
] | null | null | null | app/SysUpdateAlerts/SysUpdateAlerts.js | nizovn/luna-systemui | 9db5f65a072d2f5af7070efbf38af41705232990 | [
"Apache-2.0"
] | null | null | null | // @@@LICENSE
//
// Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
//
// 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... | 28.224299 | 232 | 0.661656 |
21dfd5eb6355606abc97beacce8869ac635def21 | 5,410 | js | JavaScript | js/utils/match/view_model.test.js | FelixRichter2000/FelixRichter2000.github.io | 610f310c5b265d82ea07d0c1bf7c0b26436d06f1 | [
"MIT"
] | 4 | 2020-02-20T15:26:14.000Z | 2021-07-10T13:47:41.000Z | js/utils/match/view_model.test.js | FelixRichter2000/FelixRichter2000.github.io | 610f310c5b265d82ea07d0c1bf7c0b26436d06f1 | [
"MIT"
] | 3 | 2020-07-11T20:09:04.000Z | 2022-02-27T08:51:32.000Z | js/utils/match/view_model.test.js | FelixRichter2000/FelixRichter2000.github.io | 610f310c5b265d82ea07d0c1bf7c0b26436d06f1 | [
"MIT"
] | 1 | 2022-01-06T22:34:43.000Z | 2022-01-06T22:34:43.000Z | const ViewModel = require('./view_model');
describe('test ViewModel', () => {
test('create', () => {
new ViewModel();
});
test('update_view with hans', () => {
document.body.innerHTML = `
<label name="username">defaultUsername</label>
`;
let viewModel = new ViewMod... | 38.642857 | 130 | 0.620333 |
21e14f7849327f92d804c42c89549f1964bf9a1d | 1,076 | js | JavaScript | src/pages/impressum.js | machermanufaktur/machermanufaktur.at | 5fd45a964d45c322f3785f61750a6aa83803f8b7 | [
"MIT"
] | null | null | null | src/pages/impressum.js | machermanufaktur/machermanufaktur.at | 5fd45a964d45c322f3785f61750a6aa83803f8b7 | [
"MIT"
] | null | null | null | src/pages/impressum.js | machermanufaktur/machermanufaktur.at | 5fd45a964d45c322f3785f61750a6aa83803f8b7 | [
"MIT"
] | null | null | null | import React from 'react';
import Helmet from 'react-helmet';
import Page from '../components/Page';
const SiteNotice = () => {
return (
<Page title="Site Notice">
<Helmet>
<meta name="robots" content="noindex" />
</Helmet>
<h1>Impressum</h1>
<p>
Offenlegung gemäß § 25 Mediengesetz und § 5 E-C... | 17.354839 | 70 | 0.57342 |
21e1e192efffc43a8da626ae86bf2b051460a014 | 542 | js | JavaScript | test/data.js | hcxing-se109a/se109a-blog | eb9c298c0f6f846bfae65a4d7cdf2deeeb5c9f42 | [
"MIT"
] | null | null | null | test/data.js | hcxing-se109a/se109a-blog | eb9c298c0f6f846bfae65a4d7cdf2deeeb5c9f42 | [
"MIT"
] | null | null | null | test/data.js | hcxing-se109a/se109a-blog | eb9c298c0f6f846bfae65a4d7cdf2deeeb5c9f42 | [
"MIT"
] | 1 | 2020-11-25T08:06:30.000Z | 2020-11-25T08:06:30.000Z | const User = require("../server/models/user");
const Post = require("../server/models/post");
module.exports = {
user: {
email: "test1@gmail.com",
name: "test-user",
password: "123456",
},
deleteTestUser: async () => {
await User.findOneAndDelete({ email: "test1@gmail.com" });
},
post: {
... | 21.68 | 83 | 0.608856 |
21e25f5502e2799794d3d44ed6790b4bb5af8f08 | 1,977 | js | JavaScript | app.js | ibhi/angular2-parties-app | 8b2682d143ce1054d7dda04e2f984f0288c01d05 | [
"MIT"
] | null | null | null | app.js | ibhi/angular2-parties-app | 8b2682d143ce1054d7dda04e2f984f0288c01d05 | [
"MIT"
] | null | null | null | app.js | ibhi/angular2-parties-app | 8b2682d143ce1054d7dda04e2f984f0288c01d05 | [
"MIT"
] | null | null | null | if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d... | 48.219512 | 138 | 0.648457 |
21e37da6b85eac5b2a3d0513f1d28c929e7b5fc7 | 1,284 | js | JavaScript | docs/js/product_view.js | OlegChuy/Client_Development | b41b7d67165fe12e1bc84b34fad79d9dff819adc | [
"MIT"
] | null | null | null | docs/js/product_view.js | OlegChuy/Client_Development | b41b7d67165fe12e1bc84b34fad79d9dff819adc | [
"MIT"
] | null | null | null | docs/js/product_view.js | OlegChuy/Client_Development | b41b7d67165fe12e1bc84b34fad79d9dff819adc | [
"MIT"
] | null | null | null | "use strict";
import { addInBasketListener, updateButtons } from './addInBasket.js';
const main = document.querySelector('main');
let viewsHTML = [];
const productView = (product, productId) => {
if (viewsHTML[productId] != undefined) {
main.innerHTML = viewsHTML[productId];
addInBasketListener();
... | 31.317073 | 101 | 0.640187 |
21e4f323c1019f22c2df6b1f7d8bbd45c19c7024 | 10,965 | js | JavaScript | src/views/administrator/transaksi/penerimaan/modules/ModalViewPengerjaan.js | antoniluthfi/react-sis-twincom | 2eb64f9feae513137816a30fcc77b8dd728968bc | [
"MIT"
] | 1 | 2021-04-09T02:20:19.000Z | 2021-04-09T02:20:19.000Z | src/views/administrator/transaksi/penerimaan/modules/ModalViewPengerjaan.js | antoniluthfi/react-sis-twincom | 2eb64f9feae513137816a30fcc77b8dd728968bc | [
"MIT"
] | null | null | null | src/views/administrator/transaksi/penerimaan/modules/ModalViewPengerjaan.js | antoniluthfi/react-sis-twincom | 2eb64f9feae513137816a30fcc77b8dd728968bc | [
"MIT"
] | null | null | null | import React from "react";
import {
CRow,
CCol,
CModal,
CModalHeader,
CModalTitle,
CModalBody,
CFormGroup,
CLabel,
CInput,
CModalFooter,
CTextarea,
CInputRadio,
} from "@coreui/react";
import CurrencyFormat from "react-currency-format";
const ModalViewPengerjaan = (props) => {
const {
ope... | 33.027108 | 77 | 0.382125 |
21e53aa91ccde1dd5dffbe3754051ae88b565526 | 850 | js | JavaScript | src/node/squel.factory.js | saphyre/saphyre-data | 3d2460b2f1048e3728341f529c3895fd127b4932 | [
"MIT"
] | 4 | 2016-03-24T01:13:30.000Z | 2020-01-23T18:15:06.000Z | src/node/squel.factory.js | saphyre/saphyre-data | 3d2460b2f1048e3728341f529c3895fd127b4932 | [
"MIT"
] | 12 | 2016-03-31T13:04:33.000Z | 2021-09-01T20:13:27.000Z | src/node/squel.factory.js | saphyre/saphyre-data | 3d2460b2f1048e3728341f529c3895fd127b4932 | [
"MIT"
] | 1 | 2017-08-04T12:19:18.000Z | 2017-08-04T12:19:18.000Z | const squel = require('squel');
exports.get = function (model) {
return getBySequelize(model.sequelize);
};
exports.getBySequelize = getBySequelize;
function getBySequelize(sequelize) {
switch (sequelize.options.dialect) {
case 'postgres':
squel.cls.DefaultQueryBuilderOptions.tableAliasQu... | 35.416667 | 80 | 0.675294 |
21e5a8621e56fa1083ab4b9c768eb7745fa04437 | 613 | js | JavaScript | src/Breadcrumbs/props/overrides.js | Maks1mS/community-kit | 16b5e75808568a5108e174c8cf90aa81a2359516 | [
"MIT"
] | 5 | 2021-04-08T13:52:31.000Z | 2022-01-21T09:34:19.000Z | src/Breadcrumbs/props/overrides.js | Maks1mS/community-kit | 16b5e75808568a5108e174c8cf90aa81a2359516 | [
"MIT"
] | 15 | 2021-04-10T07:19:23.000Z | 2021-11-16T09:12:44.000Z | src/Breadcrumbs/props/overrides.js | Maks1mS/community-kit | 16b5e75808568a5108e174c8cf90aa81a2359516 | [
"MIT"
] | 4 | 2021-04-08T13:52:52.000Z | 2021-07-28T16:52:51.000Z | export default {
Link: {
kind: 'Link',
props: {
margin: '0',
padding: '6px .25em',
'text-decoration': 'none',
display: 'inline-block',
},
},
Text: {
kind: 'Text',
props: {
as: 'span',
margin: '0',... | 20.433333 | 39 | 0.358891 |
21e602fa41853d445b32af522cf2f3b741041bdc | 412 | js | JavaScript | client/components/footer.js | GraceShopper-Anastasia-Daryl-Sasha/array-of-gems | 1d9a121a2a08989a62256b2382f1770b94c3da93 | [
"MIT"
] | null | null | null | client/components/footer.js | GraceShopper-Anastasia-Daryl-Sasha/array-of-gems | 1d9a121a2a08989a62256b2382f1770b94c3da93 | [
"MIT"
] | 36 | 2018-07-23T20:34:21.000Z | 2018-07-27T16:32:27.000Z | client/components/footer.js | GraceShopper-Anastasia-Daryl-Sasha/array-of-gems | 1d9a121a2a08989a62256b2382f1770b94c3da93 | [
"MIT"
] | null | null | null | import React from 'react'
// import { connect } from 'react-redux'
// import { Link } from 'react-router-dom'
const Footer = () => (
<footer>
<div className="info">
<span className="title">Array Of Gems</span>
</div>
<div className="copyright">
<span>© 2018, Array O... | 21.684211 | 69 | 0.565534 |
21e6d3c133c71509059911266a1432c0837dccf0 | 555 | js | JavaScript | api/lib/services/training-test/training-test.create.service.js | anniyanvr/articulate | b7925c191f6e9065384d5e04796a4d3303f2ee9b | [
"Apache-2.0"
] | 592 | 2018-01-17T13:38:19.000Z | 2022-03-25T06:42:52.000Z | api/lib/services/training-test/training-test.create.service.js | anniyanvr/articulate | b7925c191f6e9065384d5e04796a4d3303f2ee9b | [
"Apache-2.0"
] | 1,092 | 2018-01-09T03:53:14.000Z | 2022-02-15T00:46:45.000Z | api/lib/services/training-test/training-test.create.service.js | VinayaSathyanarayana/articulate | 927c791a359dd51e6f73830f4fefd66716aa50ec | [
"Apache-2.0"
] | 175 | 2018-02-01T14:38:05.000Z | 2022-03-25T06:42:54.000Z | import { MODEL_TRAINING_TEST, ROUTE_DOCUMENT, ROUTE_AGENT } from '../../../util/constants';
import ESErrorHandler from '../../errors/es.error-handler';
module.exports = async function ({ data }) {
const { es } = this.server.app;
const { documentService } = await this.server.services();
const TrainingTest... | 30.833333 | 91 | 0.652252 |
21e79a84c3aa4f36c7e058c2fa53814e14cdcd78 | 585 | js | JavaScript | stories/conversation/conversationCard.js | fishtripr-com/ui | 88efe1fc36d8574922961d068a57fea31634a371 | [
"MIT"
] | 1 | 2019-07-28T11:26:31.000Z | 2019-07-28T11:26:31.000Z | stories/conversation/conversationCard.js | fishtripr-com/ui | 88efe1fc36d8574922961d068a57fea31634a371 | [
"MIT"
] | 11 | 2019-07-17T12:07:26.000Z | 2022-02-26T10:01:11.000Z | stories/conversation/conversationCard.js | fishtripr-com/ui | 88efe1fc36d8574922961d068a57fea31634a371 | [
"MIT"
] | 1 | 2019-12-12T16:27:38.000Z | 2019-12-12T16:27:38.000Z | import { storiesOf } from '@storybook/vue'
storiesOf('Conversation card', module)
.add(
'Basic',
() => `
<conversation-card
image="https://s.gravatar.com/avatar/a3895a2d6f26155968be47fc03dddc40?s=80"
user-name="Vincent Battaglia"
time="a day ago"
lastMessage="Hello, I would like t... | 23.4 | 81 | 0.605128 |
21e7f83afd8467ad020121bc5f415d47e9c67c01 | 675 | js | JavaScript | src/routes/index.js | aakashsr/HitUP | d2e843825518e441a2f055e9bea423eec53a60cb | [
"MIT"
] | 193 | 2019-02-22T02:38:42.000Z | 2022-03-30T13:15:59.000Z | src/routes/index.js | aakashsr/HitUP | d2e843825518e441a2f055e9bea423eec53a60cb | [
"MIT"
] | 31 | 2021-04-04T16:29:11.000Z | 2021-07-28T10:33:34.000Z | src/routes/index.js | aakashsr/HitUP | d2e843825518e441a2f055e9bea423eec53a60cb | [
"MIT"
] | 21 | 2019-03-25T10:13:27.000Z | 2022-02-09T09:16:56.000Z | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import FeedContainer from 'containers/feed';
import CommentsContainer from 'containers/comments';
import withTracker from './with-tracker';
const FeedContainerWithGATracker = withTracker(FeedContainer);
const AppRoutes = () => {
return (
... | 30.681818 | 82 | 0.715556 |
21e85bc15fa28f29182e05b5cabb423134752dd6 | 780 | js | JavaScript | Chapter13/speakermeet-spa/src/App.js | obrieti/Packt-TDD_Development_book | 42fb65866b76708a5ae31d124516446f86944707 | [
"MIT"
] | 16 | 2018-01-22T15:49:31.000Z | 2022-02-12T20:22:50.000Z | Chapter13/speakermeet-spa/src/App.js | obrieti/Packt-TDD_Development_book | 42fb65866b76708a5ae31d124516446f86944707 | [
"MIT"
] | 1 | 2019-05-18T00:02:31.000Z | 2020-09-17T12:54:57.000Z | Chapter13/speakermeet-spa/src/App.js | obrieti/Packt-TDD_Development_book | 42fb65866b76708a5ae31d124516446f86944707 | [
"MIT"
] | 16 | 2019-04-20T05:23:45.000Z | 2022-03-05T16:08:15.000Z | import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';
import logo from './logo.svg';
import Header from './common/Header';
import NotFound from './common/NotFound';
import SpeakersPage from './speakers/SpeakersPage';
import SpeakerDetailPage from './speakers/SpeakerDetailPage';
imp... | 27.857143 | 77 | 0.611538 |
21e98f3828f6404f99bab2ba6a3597070556ab74 | 381 | js | JavaScript | index.js | jeremyagray/relue | ccac0a5e0bc5f870029920b59dd0cdd0681b6029 | [
"MIT"
] | null | null | null | index.js | jeremyagray/relue | ccac0a5e0bc5f870029920b59dd0cdd0681b6029 | [
"MIT"
] | null | null | null | index.js | jeremyagray/relue | ccac0a5e0bc5f870029920b59dd0cdd0681b6029 | [
"MIT"
] | null | null | null | 'use strict';
/**
* @fileOverview Top level module for relue.
*
* @author Jeremy A Gray <jeremy.a.gray@gmail.com>
*
* relue
*
* @module relue
*/
exports.math = require('./lib/relue/math/index.js');
exports.object = require('./lib/relue/object/index.js');
exports.str = require('./lib/relue/str/index.js');
expo... | 22.411765 | 64 | 0.674541 |
21ea24b68f5fa2b067b5556596cc58d4c75819eb | 437 | js | JavaScript | common/helpers/metricPrefix.js | ysfBenali/covid-19-next | c9895c5a925197e7bcacfa6a309646f54513f627 | [
"MIT"
] | 2 | 2021-08-27T23:29:22.000Z | 2021-09-17T08:20:37.000Z | common/helpers/metricPrefix.js | ysfBenali/covid-19-next | c9895c5a925197e7bcacfa6a309646f54513f627 | [
"MIT"
] | 1 | 2021-03-11T16:07:06.000Z | 2021-03-11T16:07:06.000Z | common/helpers/metricPrefix.js | ysfBenali/covid-19-next | c9895c5a925197e7bcacfa6a309646f54513f627 | [
"MIT"
] | null | null | null | const metricPrefix = (value) => {
var ranges = [
{ divider: 1e9, suffix: "B" },
{ divider: 1e6, suffix: "M" },
{ divider: 1e3, suffix: "k" },
];
function formatNumber(n) {
for (var i = 0; i < ranges.length; i++) {
if (n >= ranges[i].divider) {
return (n / ranges[i].divider).toString(... | 23 | 69 | 0.546911 |
21eaa433062391ca5414ef563284dfdfa2e1a075 | 2,480 | js | JavaScript | assets/scripts/script.js | Bounty556/Scheduler | 68bc015341c169bf68024fa6d5683e25290d0127 | [
"Unlicense"
] | null | null | null | assets/scripts/script.js | Bounty556/Scheduler | 68bc015341c169bf68024fa6d5683e25290d0127 | [
"Unlicense"
] | null | null | null | assets/scripts/script.js | Bounty556/Scheduler | 68bc015341c169bf68024fa6d5683e25290d0127 | [
"Unlicense"
] | null | null | null | $(document).ready(function() {
$("#current-day").text(moment().format('dddd, MMMM D'));
$("#time-slots").empty();
// Generate all event time slots for today
createTimeSlots();
// Functionality when clicking "save"
$(document).on('click', '.save-btn', saveEvent);
});
function createTimeSlots(... | 32.207792 | 92 | 0.602823 |
21eb8b41cd4cb7b115ce8bd131f9913aee686716 | 8,233 | js | JavaScript | components/js/siteUsers.js | retvain/yiiwebtest | 3ef8bbb7e94df010a2971362140cfbfd361c8558 | [
"BSD-3-Clause"
] | null | null | null | components/js/siteUsers.js | retvain/yiiwebtest | 3ef8bbb7e94df010a2971362140cfbfd361c8558 | [
"BSD-3-Clause"
] | null | null | null | components/js/siteUsers.js | retvain/yiiwebtest | 3ef8bbb7e94df010a2971362140cfbfd361c8558 | [
"BSD-3-Clause"
] | null | null | null | $(document).ready(function () {
//показать всех пользователей при загрузке страницы
$.getJSON("http://yiiwebtest.test/users", function (data) {
let html = '';
$.each(data, function (key, value) {
html += '<tr>';
html += '<th scope="row">' + value.id + '</th>';
... | 39.581731 | 158 | 0.448439 |
21ebc78935f2bafd207c07c6efb1807913bb1650 | 1,410 | js | JavaScript | 05-merge-styles/index.js | HandleWith/HTML-builder | f975c878542b170fc7b01578e9a5d83cc03cd8cb | [
"MIT"
] | null | null | null | 05-merge-styles/index.js | HandleWith/HTML-builder | f975c878542b170fc7b01578e9a5d83cc03cd8cb | [
"MIT"
] | null | null | null | 05-merge-styles/index.js | HandleWith/HTML-builder | f975c878542b170fc7b01578e9a5d83cc03cd8cb | [
"MIT"
] | null | null | null | const fs = require('fs');
const path = require('path/posix');
const stylePath = path.join('05-merge-styles', 'styles')
const mergePath = path.join('05-merge-styles', 'project-dist', 'bundle.css')
async function mergeStyle(stylePath, mergePath) {
fs.readdir(stylePath, {withFileTypes: true}, (err, data) => {
... | 34.390244 | 87 | 0.456738 |
21ec2028362de781df0905eef28bdbade32a6833 | 661 | js | JavaScript | test/hash_test.js | shmibblez/geocomb-node | af6ae02ae82039b1f6ed254e2702ef4d56bd7e65 | [
"MIT"
] | null | null | null | test/hash_test.js | shmibblez/geocomb-node | af6ae02ae82039b1f6ed254e2702ef4d56bd7e65 | [
"MIT"
] | null | null | null | test/hash_test.js | shmibblez/geocomb-node | af6ae02ae82039b1f6ed254e2702ef4d56bd7e65 | [
"MIT"
] | null | null | null | /* eslint-disable no-undef */
/* eslint-disable no-console */
const geocomb = require("geocomb-node");
// import { HashProperties, Icosahedron, Point3 } from "../lib/index.js";
const Icosahedron = geocomb.Icosahedron;
const ico = new Icosahedron("ECEF", "gnomonic");
const lat = 71;
const lon = 27;
const point = ico.p... | 27.541667 | 77 | 0.688351 |
21ecb6a0c3ce4e6c0eec1f7b000572a0cc92060f | 746 | js | JavaScript | lib/epgp/models/import.js | NoBreaks/API | a7678eb5b3e5fec32f347b19ba18d40ed3221ffa | [
"MIT"
] | null | null | null | lib/epgp/models/import.js | NoBreaks/API | a7678eb5b3e5fec32f347b19ba18d40ed3221ffa | [
"MIT"
] | null | null | null | lib/epgp/models/import.js | NoBreaks/API | a7678eb5b3e5fec32f347b19ba18d40ed3221ffa | [
"MIT"
] | null | null | null | 'use strict';
let moment = require('moment-timezone');
let mongoose = require('mongoose');
let Schema = mongoose.Schema;
let epgpImportSchema = new Schema({
"data": String,
"timestamp": { type: Number, unique: true},
"guildId": {
type: mongoose.Schema.Types.ObjectId,
ref: 'Guild'
},
"cr... | 22.606061 | 69 | 0.635389 |
21ee6527923d1e32b48af1511eedde0223fb97a3 | 600 | js | JavaScript | server/server/static/models/member.js | imldresden/cofind-plugin | aa0ec580492c6760b6e140680ba330cf5f31746d | [
"MIT"
] | null | null | null | server/server/static/models/member.js | imldresden/cofind-plugin | aa0ec580492c6760b6e140680ba330cf5f31746d | [
"MIT"
] | null | null | null | server/server/static/models/member.js | imldresden/cofind-plugin | aa0ec580492c6760b6e140680ba330cf5f31746d | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const MemberSchema = new Schema({
__id: Schema.Types.ObjectId,
user: {
type: Schema.Types.ObjectId, ref: 'User'
},
group: {
type: Schema.Types.ObjectId, ref: 'Group'
},
isActive: {
type: Boolean,
... | 22.222222 | 54 | 0.585 |
21f17f11457612a463d6c16d729805a82cc78119 | 445 | js | JavaScript | src/components/organisms/page/landing/SectionSyntax/styled/index.js | LeGmask/nord-docs | d38ae7fdb42008bd5d6c08ea29a6437dd5171654 | [
"MIT"
] | 86 | 2018-04-27T11:59:39.000Z | 2022-02-20T09:31:41.000Z | src/components/organisms/page/landing/SectionSyntax/styled/index.js | LeGmask/nord-docs | d38ae7fdb42008bd5d6c08ea29a6437dd5171654 | [
"MIT"
] | 160 | 2018-05-12T18:28:48.000Z | 2021-09-21T05:54:53.000Z | src/components/organisms/page/landing/SectionSyntax/styled/index.js | LeGmask/nord-docs | d38ae7fdb42008bd5d6c08ea29a6437dd5171654 | [
"MIT"
] | 36 | 2019-01-21T18:35:33.000Z | 2021-12-20T04:51:03.000Z | /*
* Copyright (C) 2018-present Arctic Ice Studio <development@arcticicestudio.com>
* Copyright (C) 2018-present Sven Greb <development@svengreb.de>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/
import CodeSyntaxLines, { POSE_DRAW, POSE_ERASE } from ".... | 31.785714 | 81 | 0.739326 |
21f2dc8576b6dae525fd7085cc5e0ea175c8088b | 315 | js | JavaScript | lib/models/form-gen-model.js | libertyware-limited/ngx-form | 20cf2340d4d08ef3b6cabe9065f379cc42618344 | [
"MIT"
] | null | null | null | lib/models/form-gen-model.js | libertyware-limited/ngx-form | 20cf2340d4d08ef3b6cabe9065f379cc42618344 | [
"MIT"
] | 1 | 2021-09-02T02:33:05.000Z | 2021-09-02T02:33:05.000Z | lib/models/form-gen-model.js | libertyware-limited/ngx-form | 20cf2340d4d08ef3b6cabe9065f379cc42618344 | [
"MIT"
] | null | null | null | import { validate } from 'class-validator';
import { plainToClassFromExist } from 'class-transformer';
export class FormGenModel {
constructor(data) {
plainToClassFromExist(this, data);
}
async isValid() {
const errors = await validate(this);
return errors.length === 0;
}
}
| 26.25 | 58 | 0.650794 |
21f4ca9366516ce9c625c04f39868ecaca2ccd89 | 1,123 | js | JavaScript | src/commands/Util/invite.js | AetherLibs/Aero | 4eb02869b6b93bd968d98f60d6e03b4600a60180 | [
"BSD-3-Clause"
] | null | null | null | src/commands/Util/invite.js | AetherLibs/Aero | 4eb02869b6b93bd968d98f60d6e03b4600a60180 | [
"BSD-3-Clause"
] | null | null | null | src/commands/Util/invite.js | AetherLibs/Aero | 4eb02869b6b93bd968d98f60d6e03b4600a60180 | [
"BSD-3-Clause"
] | null | null | null | const { MessageEmbed, Permissions: { FLAGS } } = require('discord.js');
const { Command } = require('@aero/klasa');
const req = require('@aero/http');
module.exports = class extends Command {
constructor(...args) {
super(...args, {
guarded: true,
description: language => language.get('COMMAND_INVITE_DESCRIPT... | 33.029412 | 147 | 0.700801 |
21f8d6996e6b70179b4b186b076fa801aa9d6889 | 7,952 | js | JavaScript | models/Encryptor/Encryptor_Signer.js | DICE-Money/DICE-Cli-Core | 42371e2555891a38194f85b3b105ae4e27ad717f | [
"Apache-2.0"
] | 2 | 2018-06-25T21:17:45.000Z | 2018-08-08T18:42:14.000Z | models/Encryptor/Encryptor_Signer.js | DICE-Money/DICE-Cli-Core | 42371e2555891a38194f85b3b105ae4e27ad717f | [
"Apache-2.0"
] | null | null | null | models/Encryptor/Encryptor_Signer.js | DICE-Money/DICE-Cli-Core | 42371e2555891a38194f85b3b105ae4e27ad717f | [
"Apache-2.0"
] | 2 | 2018-06-27T06:29:15.000Z | 2018-07-13T19:37:24.000Z | /* javascript-obfuscator:disable */
/*
* Copyright 2017-2018 Mihail Maldzhanski<pollarize@gmail.com>.
* DICE Money Ltd.
*
* 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:... | 34.128755 | 143 | 0.699447 |
21f912eae5fff1d90b3df3687a8cbb7632e913c4 | 328 | js | JavaScript | src/components/title.js | tzablah/alpha-brands | db35c020d069b912c65c55affc7fc647b774d33e | [
"RSA-MD"
] | null | null | null | src/components/title.js | tzablah/alpha-brands | db35c020d069b912c65c55affc7fc647b774d33e | [
"RSA-MD"
] | null | null | null | src/components/title.js | tzablah/alpha-brands | db35c020d069b912c65c55affc7fc647b774d33e | [
"RSA-MD"
] | 1 | 2020-12-21T19:53:15.000Z | 2020-12-21T19:53:15.000Z | import React from "react";
const Title = ({ text, id, sans, className }) => {
return (
<h3 id={id}
className={`${sans ? 'font-opensans text-xl' : 'font-poppins text-2xl'} md:text-brandmd lg:text-3xl font-bold leading-9 tracking-widest text-black ${className}`}>
{text}
</h3>
);
};
export defaul... | 27.333333 | 168 | 0.621951 |
21f98e3140c3f91aeecfb296c4b9392aad59648f | 1,067 | js | JavaScript | src/App.js | Ashwanikumar27/DemoPOC | bdd3298df2668e174999c7a5c0afb74f26dfd2f6 | [
"Apache-2.0"
] | null | null | null | src/App.js | Ashwanikumar27/DemoPOC | bdd3298df2668e174999c7a5c0afb74f26dfd2f6 | [
"Apache-2.0"
] | null | null | null | src/App.js | Ashwanikumar27/DemoPOC | bdd3298df2668e174999c7a5c0afb74f26dfd2f6 | [
"Apache-2.0"
] | null | null | null | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Child from './child.js';
var i=-1;
class App extends Component {
constructor(props) {
super(props);
this.state = {
display:[],
src:['one','two','three','four','five','six','seven','eight','n... | 18.719298 | 81 | 0.56045 |
21fa9089bfbe4ad8f85a13936d60ff65e95522fc | 1,480 | js | JavaScript | lib/allParentsIds.js | nearform/nscale-planner | 40a33413dce28d2f95b3a8036a7c63a6c82b877e | [
"Artistic-2.0"
] | 1 | 2019-06-12T19:34:18.000Z | 2019-06-12T19:34:18.000Z | lib/allParentsIds.js | nearform/nscale-planner | 40a33413dce28d2f95b3a8036a7c63a6c82b877e | [
"Artistic-2.0"
] | null | null | null | lib/allParentsIds.js | nearform/nscale-planner | 40a33413dce28d2f95b3a8036a7c63a6c82b877e | [
"Artistic-2.0"
] | null | null | null | /*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... | 33.636364 | 93 | 0.72973 |
21fa97a9ab8d260242d8c6738139ef8b6f5dba90 | 3,141 | js | JavaScript | src/layers/screen-saver.js | Azerothian/code-deck | e47c51397fa870e38c256d56f169de7c654d73a4 | [
"MIT"
] | null | null | null | src/layers/screen-saver.js | Azerothian/code-deck | e47c51397fa870e38c256d56f169de7c654d73a4 | [
"MIT"
] | null | null | null | src/layers/screen-saver.js | Azerothian/code-deck | e47c51397fa870e38c256d56f169de7c654d73a4 | [
"MIT"
] | null | null | null | import {Layer, LayerGroup} from "../engine";
import { getColours, rgbToHex } from "../utils/gradient";
import { WIDTH, HEIGHT } from "../utils/deck";
const g = [
{
position: 0,
colour: {
r: 49,
g: 192,
b: 246,
},
},
{
position: 50,
colour: {
r: 165,
g: 0,
b:... | 23.440299 | 82 | 0.530723 |
21fb115041a1a88b9063832c85c4c9281b1d9977 | 723 | js | JavaScript | src/Solvers/Heuristic.js | 3izzo/N-Puzzle | 3f2837ce5df988bad5410da58d4acc9a3748fd7f | [
"MIT"
] | 1 | 2020-09-04T16:00:04.000Z | 2020-09-04T16:00:04.000Z | src/Solvers/Heuristic.js | ziyadmsq/N-Puzzle---AI-class | 0234e13d7a2cb063588dc9697905f616c5fab337 | [
"MIT"
] | 5 | 2020-04-14T21:19:55.000Z | 2021-03-10T12:12:25.000Z | src/Solvers/Heuristic.js | 3izzo/N-Puzzle | 3f2837ce5df988bad5410da58d4acc9a3748fd7f | [
"MIT"
] | null | null | null | const manhattanDistance = (node) => {
let result = 0;
for (let i = 0; i < node.state.length; i++) {
for (let j = 0; j < node.state[i].length; j++) {
let elem = node.state[i][j];
if (elem == 0)
continue;
let targetRow = parseInt((elem-1) / node.state.le... | 36.15 | 127 | 0.521438 |
21fbcc9b8183d5bff7560de37c13a94c80063e0d | 170 | js | JavaScript | balances/src/routes/index.js | EliseevNP/nodetest | 9ea05cd89fb2b0028bf345a66ab6d481982671b1 | [
"MIT"
] | null | null | null | balances/src/routes/index.js | EliseevNP/nodetest | 9ea05cd89fb2b0028bf345a66ab6d481982671b1 | [
"MIT"
] | null | null | null | balances/src/routes/index.js | EliseevNP/nodetest | 9ea05cd89fb2b0028bf345a66ab6d481982671b1 | [
"MIT"
] | null | null | null | const Router = require('koa-router');
const balances = require('./balances');
const router = new Router();
router.use('/balances', balances);
module.exports = router;
| 18.888889 | 39 | 0.7 |
21fc41d6ba23bd118491cfe9f6190d2561647b44 | 142 | js | JavaScript | src/all/Array.prototype.all.js | mcibique/linq-for-js | 5737214731634cba590bb4ce17cbcb28132f0d13 | [
"MIT"
] | 3 | 2017-03-22T02:20:21.000Z | 2019-08-16T14:04:17.000Z | src/all/Array.prototype.all.js | mcibique/linq-for-js | 5737214731634cba590bb4ce17cbcb28132f0d13 | [
"MIT"
] | 2 | 2018-05-22T23:34:29.000Z | 2020-01-27T12:14:33.000Z | src/all/Array.prototype.all.js | mcibique/linq-for-js | 5737214731634cba590bb4ce17cbcb28132f0d13 | [
"MIT"
] | null | null | null | import Iterator from '../iterators/Iterator';
Array.prototype.all = function all(condition) {
return new Iterator(this).all(condition);
};
| 23.666667 | 47 | 0.739437 |
21fc645d59991e03dd34264d231fa77ffb4d63e6 | 22 | js | JavaScript | src/assets/js/index.js | corderophilosophy/the-ball-of-wax | 989f9e9a988bc04cd343da5b6c245eafc4d15196 | [
"MIT"
] | null | null | null | src/assets/js/index.js | corderophilosophy/the-ball-of-wax | 989f9e9a988bc04cd343da5b6c245eafc4d15196 | [
"MIT"
] | null | null | null | src/assets/js/index.js | corderophilosophy/the-ball-of-wax | 989f9e9a988bc04cd343da5b6c245eafc4d15196 | [
"MIT"
] | null | null | null | // Main JS goes here
| 11 | 21 | 0.636364 |
21fca123639ce77cfc88affc8d83f2dfa87a0852 | 4,181 | js | JavaScript | src/block.js | joshtechnologygroup/blockchain | 479dd6527164b2e1b6e086c28e9a9955ed49aa94 | [
"MIT"
] | null | null | null | src/block.js | joshtechnologygroup/blockchain | 479dd6527164b2e1b6e086c28e9a9955ed49aa94 | [
"MIT"
] | null | null | null | src/block.js | joshtechnologygroup/blockchain | 479dd6527164b2e1b6e086c28e9a9955ed49aa94 | [
"MIT"
] | 2 | 2018-02-25T18:56:03.000Z | 2018-10-21T01:40:17.000Z | 'use strict';
module.exports = class Block {
constructor(index, hash, previousHash, data, timestamp, nonce) {
this.index = index;
this.hash = hash.toString();
this.previousHash = previousHash.toString();
this.data = data;
this.timestamp = timestamp;
this.nonce = nonc... | 35.735043 | 105 | 0.520928 |
21feaf1e5e3e4dbe61e57d1913f9b45e0c5f115b | 2,243 | js | JavaScript | src/utils/UploadBase.js | HastingsGreer/girder_web_components | ef91df35e09c850bb8b2cfcf0dc2f8ce0567eab8 | [
"Apache-2.0"
] | 16 | 2018-08-10T15:42:42.000Z | 2022-03-22T13:00:21.000Z | src/utils/UploadBase.js | HastingsGreer/girder_web_components | ef91df35e09c850bb8b2cfcf0dc2f8ce0567eab8 | [
"Apache-2.0"
] | 221 | 2018-08-07T17:26:55.000Z | 2022-03-15T17:34:29.000Z | src/utils/UploadBase.js | HastingsGreer/girder_web_components | ef91df35e09c850bb8b2cfcf0dc2f8ce0567eab8 | [
"Apache-2.0"
] | 8 | 2019-04-17T13:40:20.000Z | 2020-12-15T16:18:23.000Z | export default class UploadBase {
/**
* The abstract base class of a single file uploader.
* @abstract
* @param {File | Blob} file the file to upload
* @param {Object} opts upload options.
* @param {Object} opts.$rest an axios instance used for communicating with Girder.
* @param {Object} opts.paren... | 33.477612 | 99 | 0.662506 |
21ff74eb3bd4ab2880427adf99f6e7a4dff2e53c | 5,890 | js | JavaScript | pet/pages/unPayWork/index.js | leeboo741/pet | 898eb4103e6d8b6e01ab78d68f9e12653c0f5bc5 | [
"MIT"
] | 1 | 2020-08-14T06:18:35.000Z | 2020-08-14T06:18:35.000Z | pet/pages/unPayWork/index.js | leeboo741/pet | 898eb4103e6d8b6e01ab78d68f9e12653c0f5bc5 | [
"MIT"
] | null | null | null | pet/pages/unPayWork/index.js | leeboo741/pet | 898eb4103e6d8b6e01ab78d68f9e12653c0f5bc5 | [
"MIT"
] | 1 | 2019-09-16T06:23:41.000Z | 2019-09-16T06:23:41.000Z | // pages/unPayWork/index.js
const util = require("../../utils/util.js");
const config = require("../../utils/config.js");
const loginUtil = require("../../utils/loginUtils.js");
const pagePath = require("../../utils/pagePath.js");
const ShareUtil = require("../../utils/shareUtils.js");
const workOrderManager = require(... | 22.310606 | 180 | 0.56129 |