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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1aac5b7d6b31fe075bef4d5d2dc886455a06f8e0 | 644 | js | JavaScript | problems/92.reverse-linked-list-ii/solution.test.js | zhijiang3/leetcode | 3a3ce6d88183f011acdb9ffde62f1f7583e15360 | [
"MIT"
] | 2 | 2020-01-13T09:20:47.000Z | 2020-01-15T14:01:21.000Z | problems/92.reverse-linked-list-ii/solution.test.js | zhijiang3/leetcode | 3a3ce6d88183f011acdb9ffde62f1f7583e15360 | [
"MIT"
] | null | null | null | problems/92.reverse-linked-list-ii/solution.test.js | zhijiang3/leetcode | 3a3ce6d88183f011acdb9ffde62f1f7583e15360 | [
"MIT"
] | null | null | null | import reverseBetween from "./solution.js";
import { listToArray, arrayToList } from "shared/utils.js";
test("example 1", () => {
const input = arrayToList([1, 2, 3, 4, 5]);
const output = listToArray(reverseBetween(input, 2, 4));
expect(output).toEqual([1, 4, 3, 2, 5]);
});
test("example 2", () => {
const i... | 26.833333 | 59 | 0.611801 |
1aac9002e10889313629c08c166b83a115f3abe4 | 283 | js | JavaScript | client/src/utils/api/authApi.js | VladVes/web-app-template | 14f58022ef31dd89a7fe19fd0dfda0307a395096 | [
"MIT"
] | null | null | null | client/src/utils/api/authApi.js | VladVes/web-app-template | 14f58022ef31dd89a7fe19fd0dfda0307a395096 | [
"MIT"
] | 3 | 2021-09-02T15:58:46.000Z | 2022-02-13T19:59:35.000Z | client/src/utils/api/authApi.js | VladVes/web-app-template | 14f58022ef31dd89a7fe19fd0dfda0307a395096 | [
"MIT"
] | null | null | null | /* eslint-disable no-unused-vars */
import { axios, get, post } from './base/index';
import { apiUrl } from './base/axios';
export default {
signUp: credentials => post(`${apiUrl}/auth/signup`, credentials),
signIn: credentials => post(`${apiUrl}/auth/signin`, credentials),
};
| 31.444444 | 68 | 0.671378 |
1aada6c70f5199a950064d4fa98dbb01b89d64e5 | 7,871 | js | JavaScript | test/functions.test.js | apasov/animatable-properties | 74cb348508b0ada5dd2e01c7071404f587c370ae | [
"MIT"
] | null | null | null | test/functions.test.js | apasov/animatable-properties | 74cb348508b0ada5dd2e01c7071404f587c370ae | [
"MIT"
] | 376 | 2020-03-19T06:49:30.000Z | 2022-03-26T02:06:45.000Z | test/functions.test.js | apasov/animatable-properties | 74cb348508b0ada5dd2e01c7071404f587c370ae | [
"MIT"
] | null | null | null | import * as functions from '../src/index'
const testData = {
validate: {
true: [
{
'scroll-padding-block-end': '10px',
},
],
false: [
'scrroll-padding-block-end',
{
'scroll-padding-block-end': ['10px', '5px'],
},
{
'scrroll-padding-block-end': '... | 37.480952 | 178 | 0.531317 |
1aadca60e1d0960efadb8d5c30475a0894e6aed5 | 32,613 | js | JavaScript | docs/static/js/main.22dd2ba3.chunk.js | mtgenius/planeschase | ea7e484b7f8f547d6a4aa2b706baa90c8f2947a5 | [
"MIT"
] | 4 | 2018-12-01T02:58:52.000Z | 2020-04-28T23:25:38.000Z | docs/static/js/main.22dd2ba3.chunk.js | mtgenius/planeschase | ea7e484b7f8f547d6a4aa2b706baa90c8f2947a5 | [
"MIT"
] | 10 | 2018-05-24T16:52:32.000Z | 2022-02-26T13:12:57.000Z | docs/static/js/main.22dd2ba3.chunk.js | mtgenius/planeschase | ea7e484b7f8f547d6a4aa2b706baa90c8f2947a5 | [
"MIT"
] | 2 | 2019-10-17T19:07:04.000Z | 2021-07-20T03:27:07.000Z | (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(e,t,n){var a;window,e.exports=(a=n(13),function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defi... | 16,306.5 | 32,565 | 0.716708 |
1aae69addce2d94098499fc98931fb74a80d08f8 | 1,227 | js | JavaScript | js_files/bubble.js | Vinay07k/Sorting-Visualizer | b0657f8b7ccefe1d0eca093f7f1fb7cea0aa63ed | [
"MIT"
] | null | null | null | js_files/bubble.js | Vinay07k/Sorting-Visualizer | b0657f8b7ccefe1d0eca093f7f1fb7cea0aa63ed | [
"MIT"
] | null | null | null | js_files/bubble.js | Vinay07k/Sorting-Visualizer | b0657f8b7ccefe1d0eca093f7f1fb7cea0aa63ed | [
"MIT"
] | null | null | null | console.log("Start (bubble sort)")
async function bubble() {
console.log("inside bubble function");
const element = document.querySelectorAll(".bar");
for(let i = 0; i < element.length - 1;i++) {
for(let j = 0; j < element.length -i -1; j++) {
element[j].style.background = 'red';
... | 35.057143 | 91 | 0.602282 |
1aaf5a78a359b2e193df55afcd954a0b5130ae06 | 349 | js | JavaScript | public/js/match.js | lucaslmmanoel/infodota | 8598f607913d5bff8412f7971cce8b46388512c2 | [
"MIT"
] | null | null | null | public/js/match.js | lucaslmmanoel/infodota | 8598f607913d5bff8412f7971cce8b46388512c2 | [
"MIT"
] | null | null | null | public/js/match.js | lucaslmmanoel/infodota | 8598f607913d5bff8412f7971cce8b46388512c2 | [
"MIT"
] | null | null | null | // Recuperando os dados dos timer
$.getJSON("https://api.opendota.com/api/teams", function (all_data) {
all_data.forEach(data => {
// Exibindo os dados de marca
$('#time1').append(`<option value="${data.name}">${data.name}</option>`)
$('#time2').append(`<option value="${data.name}">${data.... | 26.846154 | 80 | 0.587393 |
1aaf8b80224e031e5c156675dc5b921bfda12800 | 2,183 | js | JavaScript | server.js | CLeeTidwell/QuickNoteTaker | e02555e5dbf7f7756709a2ee9bb2129a4a870be8 | [
"MIT"
] | null | null | null | server.js | CLeeTidwell/QuickNoteTaker | e02555e5dbf7f7756709a2ee9bb2129a4a870be8 | [
"MIT"
] | null | null | null | server.js | CLeeTidwell/QuickNoteTaker | e02555e5dbf7f7756709a2ee9bb2129a4a870be8 | [
"MIT"
] | null | null | null | // Dependencies
const express = require("express");
const path = require("path");
const fs = require("fs");
const util = require("util");
// Handling Asynchronous Processes
const readFileAsync = util.promisify(fs.readFile);
const writeFileAsync = util.promisify(fs.writeFile);
// Setting Up Server
const app = expres... | 25.682353 | 71 | 0.634448 |
1ab1ad47f6458a054ef2fc4cd2d7e756b06d3a1d | 485 | js | JavaScript | server/models/bucket.js | damakahindi/bucket-list-api | ff01c18c99956d3e71778dfc50e5dcc9c453446e | [
"MIT"
] | null | null | null | server/models/bucket.js | damakahindi/bucket-list-api | ff01c18c99956d3e71778dfc50e5dcc9c453446e | [
"MIT"
] | 3 | 2018-03-04T09:08:59.000Z | 2019-12-04T06:42:55.000Z | server/models/bucket.js | damakahindi/bucket-list-api | ff01c18c99956d3e71778dfc50e5dcc9c453446e | [
"MIT"
] | null | null | null | const mongoose = require('mongoose');
const { Schema } = mongoose;
const BucketSchema = new Schema({
googleId: { type: Schema.Types.ObjectId, ref: 'User', required: true },
sectionId: { type: Schema.Types.ObjectId, ref: 'Section' },
title: { type: String, required: true },
description: { type: String },
isD... | 32.333333 | 73 | 0.670103 |
1ab2034fd62db38eb6ef71323c271495797dc4ca | 631 | js | JavaScript | scripts/clean.js | rightisleft/statex | 2ee8e5c1bd4c5810002ff210daf6c65c30ad45ea | [
"MIT"
] | 78 | 2017-05-30T09:31:06.000Z | 2021-06-22T14:24:14.000Z | scripts/clean.js | rightisleft/statex | 2ee8e5c1bd4c5810002ff210daf6c65c30ad45ea | [
"MIT"
] | 16 | 2017-10-02T00:17:21.000Z | 2018-12-09T23:57:07.000Z | scripts/clean.js | rightisleft/statex | 2ee8e5c1bd4c5810002ff210daf6c65c30ad45ea | [
"MIT"
] | 21 | 2017-10-17T07:19:11.000Z | 2021-10-18T14:45:31.000Z | const fs = require('fs-extra')
const path = require('path')
const resolvable = require('resolvable')
const remove = resolvable(fs.remove)
function clean() {
return Promise.resolve()
.then(() => remove(path.resolve('dist')))
.then(() => remove(path.resolve('electron.js')))
.then(() => remove(path.resolve... | 31.55 | 54 | 0.616482 |
1ab276626fcedd3626315f9d6a26a19e017d96e8 | 499 | js | JavaScript | src/components/Switch.js | karenworrall/karen-gatsby-portfolio | de7fdaa5755b9523f822f3b36e9d7336a814e319 | [
"MIT"
] | null | null | null | src/components/Switch.js | karenworrall/karen-gatsby-portfolio | de7fdaa5755b9523f822f3b36e9d7336a814e319 | [
"MIT"
] | null | null | null | src/components/Switch.js | karenworrall/karen-gatsby-portfolio | de7fdaa5755b9523f822f3b36e9d7336a814e319 | [
"MIT"
] | null | null | null | import React from 'react';
import { motion } from 'framer-motion'
function Switch({ isOn, handleSwitch })
{
const toggleSwitch = () =>
{
handleSwitch(!isOn)
}
const spring = {
type: "spring",
stiffness: 700,
damping: 30
}
return (
<div className="switch" data-isOn={isOn} onClick={tog... | 19.96 | 120 | 0.645291 |
1ab33b6b74bf9eb0dab8349fb6dba3b2e554c84b | 8,077 | js | JavaScript | sampleproject2code1.js | mikeolams/NanoDgprojects | a874a8126f95679712ff95ab23bf51dda6e06110 | [
"Apache-2.0"
] | null | null | null | sampleproject2code1.js | mikeolams/NanoDgprojects | a874a8126f95679712ff95ab23bf51dda6e06110 | [
"Apache-2.0"
] | null | null | null | sampleproject2code1.js | mikeolams/NanoDgprojects | a874a8126f95679712ff95ab23bf51dda6e06110 | [
"Apache-2.0"
] | null | null | null | let numbers = [1,2,3,4,5,6,7,8]
let initialArray = numbers.concat(numbers);
let selectedPoints = [];
let selectedPointsLength;
let correctSelections = [];
let sortedArray;
let movesCounter = 0;
let ratings = 3;
let list = document.querySelector(".list");
let displayMoves = document.querySelector("#moves");
let elem = d... | 29.053957 | 187 | 0.596013 |
1ab3be9f2909251e49a85eba34cca99607c6701d | 191 | js | JavaScript | src/utils/scrollTo.js | Venturh/maxwerpers-v2 | 5498e845cbf6abce045e23370cdb03408ed42048 | [
"MIT"
] | 5 | 2020-06-08T23:07:36.000Z | 2020-07-13T17:13:14.000Z | src/utils/scrollTo.js | Venturh/maxwerpers-v2 | 5498e845cbf6abce045e23370cdb03408ed42048 | [
"MIT"
] | 1 | 2020-06-24T07:33:38.000Z | 2020-06-24T07:33:38.000Z | src/utils/scrollTo.js | Venturh/maxwerpers-v2 | 5498e845cbf6abce045e23370cdb03408ed42048 | [
"MIT"
] | 1 | 2021-02-27T04:13:45.000Z | 2021-02-27T04:13:45.000Z | import { scroller } from "react-scroll"
const scrollTo = to => {
const options = {
duration: 400,
smooth: "linear",
}
scroller.scrollTo(to, options)
}
export default scrollTo
| 15.916667 | 39 | 0.65445 |
1ab50b64a1e78b8a5b17099e9c3e394814654dfa | 513 | js | JavaScript | packages/amplify-codegen/src/walkthrough/questions/selectRegions.js | rosmu/amplify-cli | 8dc238083c74e4eac6c3e96c31490f071cd1cb28 | [
"Apache-2.0"
] | 5 | 2019-01-22T04:12:49.000Z | 2019-07-02T06:17:03.000Z | packages/amplify-codegen/src/walkthrough/questions/selectRegions.js | rosmu/amplify-cli | 8dc238083c74e4eac6c3e96c31490f071cd1cb28 | [
"Apache-2.0"
] | 86 | 2019-02-22T01:00:17.000Z | 2021-03-31T02:55:26.000Z | packages/amplify-codegen/src/walkthrough/questions/selectRegions.js | rosmu/amplify-cli | 8dc238083c74e4eac6c3e96c31490f071cd1cb28 | [
"Apache-2.0"
] | 4 | 2021-10-13T16:29:53.000Z | 2021-11-15T08:13:02.000Z | const inquirer = require('inquirer');
const constants = require('../../constants');
async function selectRegions(regions, currentRegion) {
const regionMap = Object.keys(regions).map(r => ({
value: r,
name: regions[r],
}));
const answer = await inquirer.prompt([
{
name: 'region',
type: 'l... | 22.304348 | 54 | 0.641326 |
1ab626f65458ab7cda951467fdb877af4df26b8e | 6,640 | js | JavaScript | js/app.js | Bushraaljafari/bus-mall | f2de403c3f6e3cdf752641f01512fdfddd90bc06 | [
"MIT"
] | null | null | null | js/app.js | Bushraaljafari/bus-mall | f2de403c3f6e3cdf752641f01512fdfddd90bc06 | [
"MIT"
] | null | null | null | js/app.js | Bushraaljafari/bus-mall | f2de403c3f6e3cdf752641f01512fdfddd90bc06 | [
"MIT"
] | null | null | null | 'use strict';
/*let button=document.getElementById('results-list');
button.addEventListener('click',) ;*/
let leftImageElement=document.getElementById('left-image');
let middleImageElement=document.getElementById('middle-image');
let rightImageElement=document.getElementById('right-image');
let divImageElement=documen... | 25.637066 | 209 | 0.65738 |
1ab71ee1fa19e05be26d7316440ef0adc3dacdd0 | 172 | js | JavaScript | packages/core/packages/component/button/index.js | Roninwz/roninwz | c12b607915c318862a1ce53cca977df304b00b6a | [
"MIT"
] | null | null | null | packages/core/packages/component/button/index.js | Roninwz/roninwz | c12b607915c318862a1ce53cca977df304b00b6a | [
"MIT"
] | 3 | 2021-10-14T05:45:00.000Z | 2022-02-27T16:33:21.000Z | packages/core/packages/component/button/index.js | Roninwz/roninwz | c12b607915c318862a1ce53cca977df304b00b6a | [
"MIT"
] | 1 | 2021-08-03T04:03:02.000Z | 2021-08-03T04:03:02.000Z | import RZButton from './src/button';
/* istanbul ignore next */
RZButton.install = function (Vue) {
Vue.component(RZButton.name, RZButton);
};
export default RZButton;
| 19.111111 | 41 | 0.72093 |
1ab73685f9b97b18985f6016c80ad6c60aa23b97 | 481 | js | JavaScript | test/iso/link/run.js | bauerca/webpages | d9501e5f140da50fb4453a65515bd7028dfe6de0 | [
"MIT"
] | 2 | 2016-04-14T22:16:30.000Z | 2021-03-01T01:48:45.000Z | test/iso/link/run.js | bauerca/webpages | d9501e5f140da50fb4453a65515bd7028dfe6de0 | [
"MIT"
] | null | null | null | test/iso/link/run.js | bauerca/webpages | d9501e5f140da50fb4453a65515bd7028dfe6de0 | [
"MIT"
] | null | null | null | var iso = require('osh-iso-test');
var merge = require('xtend/immutable');
var LinkPage = {
read: function(pages, render) {
render();
},
render: function() {},
/**
* This instance of pages has the following methods
*/
run: function(pages) {
var link = pages.link(this.name, this.props);
... | 17.814815 | 54 | 0.569647 |
1ab7e59e66e0359d4cb0b27b665253800e18bbc0 | 1,237 | js | JavaScript | test/configCases/asset-modules/http-url/server/index.js | axules/webpack | 61ad5ff509a7f9ce5be703e386e4d4da6216f008 | [
"MIT"
] | 2 | 2022-01-05T07:02:11.000Z | 2022-01-09T18:48:36.000Z | test/configCases/asset-modules/http-url/server/index.js | axules/webpack | 61ad5ff509a7f9ce5be703e386e4d4da6216f008 | [
"MIT"
] | 243 | 2021-08-05T18:28:21.000Z | 2022-03-30T02:35:26.000Z | test/configCases/asset-modules/http-url/server/index.js | axules/webpack | 61ad5ff509a7f9ce5be703e386e4d4da6216f008 | [
"MIT"
] | null | null | null | const http = require("http");
const fs = require("fs");
/**
* @param {number} port port
* @returns {Promise<import("http").Server>} server instance
*/
function createServer(port) {
const file = fs
.readFileSync("./test/configCases/asset-modules/http-url/server/index.css")
.toString()
.trim();
const server ... | 17.671429 | 77 | 0.58367 |
1ab84334699b017db5104fb8d58a2510443cf57f | 1,853 | js | JavaScript | src/components/auth/Landing.js | gugarosa/react_boilerplate | 0d4fef34e7c3029ef259ea60e4a078ff0691192f | [
"MIT"
] | null | null | null | src/components/auth/Landing.js | gugarosa/react_boilerplate | 0d4fef34e7c3029ef259ea60e4a078ff0691192f | [
"MIT"
] | null | null | null | src/components/auth/Landing.js | gugarosa/react_boilerplate | 0d4fef34e7c3029ef259ea60e4a078ff0691192f | [
"MIT"
] | null | null | null | import React from "react";
import { Link } from "react-router-dom";
import { LandingForm } from "./LandingForm";
import { LANDING_LOGO, LANDING_TITLE } from "../../utils/configComponents";
import "./landing.scss";
// Landing
// Provides a dynamic creation of landing pages
export const Landing = ({ header, form, foot... | 42.113636 | 100 | 0.437669 |
1ab99a2a70e03ff7b4b0ec3d0b06726ff1473e8b | 2,655 | js | JavaScript | src/vigenere-cipher.js | IlyaPridanov/basic-js | 169990789b9dcc29445c3a68063c4a8a71e6fb14 | [
"MIT"
] | null | null | null | src/vigenere-cipher.js | IlyaPridanov/basic-js | 169990789b9dcc29445c3a68063c4a8a71e6fb14 | [
"MIT"
] | null | null | null | src/vigenere-cipher.js | IlyaPridanov/basic-js | 169990789b9dcc29445c3a68063c4a8a71e6fb14 | [
"MIT"
] | null | null | null | import { NotImplementedError } from '../extensions/index.js';
/**
* Implement class VigenereCipheringMachine that allows us to create
* direct and reverse ciphering machines according to task description
*
* @example
*
* const directMachine = new VigenereCipheringMachine();
*
* const reverseMachine = new Vi... | 29.831461 | 138 | 0.613559 |
1abb698149fdb248c6763353996475cf63f7bf6f | 461 | js | JavaScript | cypress/integration/test.spec.js | RSMuthu/cypress-cucumber-tagging | c4548d75e1986c1b1c4e3e1c9979e0acf7f2f52b | [
"MIT"
] | null | null | null | cypress/integration/test.spec.js | RSMuthu/cypress-cucumber-tagging | c4548d75e1986c1b1c4e3e1c9979e0acf7f2f52b | [
"MIT"
] | null | null | null | cypress/integration/test.spec.js | RSMuthu/cypress-cucumber-tagging | c4548d75e1986c1b1c4e3e1c9979e0acf7f2f52b | [
"MIT"
] | null | null | null | it('Test case 1', { tags: ['@config', '@unit'] }, () => {
cy.log(Cypress.env('tags'))
expect(true).to.be.true
})
it('Test case 2', { tags: ['@config'] }, () => {
expect(true).to.be.true
})
describe('block with config tag', { tags: ['@smoke'] }, () => {
it('dummy1', () => {}) // the tag from describe will be ... | 28.8125 | 108 | 0.555315 |
1abc0fa2e3077c321babc3b554697129fd67f847 | 590 | js | JavaScript | src/setup.js | Friendly-Robot/ReservationApp | 09f9dda6042a7607e6d3878169167e14a319cd9f | [
"MIT"
] | null | null | null | src/setup.js | Friendly-Robot/ReservationApp | 09f9dda6042a7607e6d3878169167e14a319cd9f | [
"MIT"
] | null | null | null | src/setup.js | Friendly-Robot/ReservationApp | 09f9dda6042a7607e6d3878169167e14a319cd9f | [
"MIT"
] | null | null | null | /**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, {PureComponent} from 'react';
import { ApolloProvider } from 'react-apollo';
import ApolloClient from 'apollo-boost';
import App from './App';
import env from './env';
type Props = {};
export default cl... | 19.032258 | 56 | 0.623729 |
1abc3d87586f18233b73c5a944b173318dfe2c80 | 734 | js | JavaScript | client/components/Index.js | EstebanFuentealba/prueba2 | 735460376f8525cfd4993e21d31c6a9b7d8bd65b | [
"MIT"
] | null | null | null | client/components/Index.js | EstebanFuentealba/prueba2 | 735460376f8525cfd4993e21d31c6a9b7d8bd65b | [
"MIT"
] | null | null | null | client/components/Index.js | EstebanFuentealba/prueba2 | 735460376f8525cfd4993e21d31c6a9b7d8bd65b | [
"MIT"
] | null | null | null | import React from 'react';
import Reflux from 'reflux';
import ListUser from './ListUser';
import CreateUser from './CreateUser';
import reactMixin from 'react-mixin';
import appActions from './../actions';
import userStore from './../stores/userStore';
export default class Index extends React.Component{
constructor... | 23.677419 | 53 | 0.671662 |
1abcbc35de0109b041660e2e65f08c696dafe60e | 669 | js | JavaScript | webpack.config.js | jae1379/PinkFluffyUnicorn | ec8edc9da7be18e09bbf8ec9e9bb12fc2f21dc86 | [
"MIT"
] | null | null | null | webpack.config.js | jae1379/PinkFluffyUnicorn | ec8edc9da7be18e09bbf8ec9e9bb12fc2f21dc86 | [
"MIT"
] | null | null | null | webpack.config.js | jae1379/PinkFluffyUnicorn | ec8edc9da7be18e09bbf8ec9e9bb12fc2f21dc86 | [
"MIT"
] | null | null | null | const path = require('path');
const ConcatPlugin = require('webpack-concat-plugin');
module.exports = {
"mode": "development",
"entry": "./src/index.js",
"output": {
"path": __dirname+'/dist',
"filename": "ignorethis.js"
},
"devtool": "source-map",
plugins: [
... | 30.409091 | 156 | 0.532138 |
1abcdaed61ccce51459c194adaa14bab05b30945 | 5,011 | js | JavaScript | src/array-math.js | foqal/injects | 8ddb9b480f77098c96ac0259b6d8979fbbfaec2f | [
"0BSD"
] | null | null | null | src/array-math.js | foqal/injects | 8ddb9b480f77098c96ac0259b6d8979fbbfaec2f | [
"0BSD"
] | 2 | 2020-04-24T05:59:57.000Z | 2021-05-07T00:45:21.000Z | src/array-math.js | foqal/injects | 8ddb9b480f77098c96ac0259b6d8979fbbfaec2f | [
"0BSD"
] | null | null | null | import {IDENTITY} from './identity';
Array.prototype.max = function (comparer, extractor) {
if (!comparer) {
comparer = (a, b) => a > b;
}
return this.findComparing(comparer, extractor);
};
Array.prototype.maxValue = function (extractor) {
return this.findValueComparing(extractor, (a, b) => a ... | 27.086486 | 114 | 0.591698 |
1abce5f94bc7f7caaf8583b832f063a60292b2f8 | 3,911 | js | JavaScript | src/components/MyBubbles.js | joshkolasch/league-data-visualizer | de5335915e54b80610b733288c9e3dff72455e84 | [
"Unlicense"
] | null | null | null | src/components/MyBubbles.js | joshkolasch/league-data-visualizer | de5335915e54b80610b733288c9e3dff72455e84 | [
"Unlicense"
] | null | null | null | src/components/MyBubbles.js | joshkolasch/league-data-visualizer | de5335915e54b80610b733288c9e3dff72455e84 | [
"Unlicense"
] | null | null | null | import React, { PropTypes } from 'react'
import * as d3 from 'd3'
import { fillColor } from '../utils'
import tooltip from './Tooltip'
import { yearCenters } from '../constants';
//TODO: consider putting a forceCollide in here
//TODO: look up what charge does
export default class Bubbles extends React.Component {
co... | 27.737589 | 83 | 0.577857 |
1abe02a5e3ef80e3ec60e5c596240adf565159be | 2,174 | js | JavaScript | js/init.js | staudt/SuperBreakoutBros | b9d7be17644f8c9575f11f11810fbe94629c7641 | [
"MIT"
] | 1 | 2018-04-23T00:13:56.000Z | 2018-04-23T00:13:56.000Z | js/init.js | staudt/SuperBreakoutBros | b9d7be17644f8c9575f11f11810fbe94629c7641 | [
"MIT"
] | 1 | 2020-09-03T14:08:54.000Z | 2020-09-03T14:08:54.000Z | js/init.js | staudt/SuperBreakoutBros | b9d7be17644f8c9575f11f11810fbe94629c7641 | [
"MIT"
] | 1 | 2020-07-22T19:03:58.000Z | 2020-07-22T19:03:58.000Z | 'use strict';
const Animation = videogame.Animation;
const Color = videogame.Color;
const Command = videogame.Command;
const Frame = videogame.Frame;
const Scene = videogame.Scene;
const Sprite = videogame.Sprite;
const TextSprite = videogame.TextSprite;
const Videogame = videogame.Videogame;
const TILE_WIDTH = 64;
... | 30.194444 | 71 | 0.74103 |
1abed6d25346c1fe8f1bf4b79a88c928fa38f0e9 | 528 | js | JavaScript | lib/pipeline.js | Markonis/api | ca171a166eded9b5811840b5ccd57773a7e69dfb | [
"MIT"
] | null | null | null | lib/pipeline.js | Markonis/api | ca171a166eded9b5811840b5ccd57773a7e69dfb | [
"MIT"
] | null | null | null | lib/pipeline.js | Markonis/api | ca171a166eded9b5811840b5ccd57773a7e69dfb | [
"MIT"
] | null | null | null | module.exports = function(processors) {
function wrapProcessor(processor) {
return function(bundle) {
var status = bundle.getPartData('status') || 200;
if (status < 400) {
return processor(bundle);
}
else {
return bundle;
}
};
}
return function(bundle) {
... | 21.12 | 59 | 0.583333 |
1abed71a755be809f52d516c0e04bd7d775422c1 | 403 | js | JavaScript | sample.event.js | kmfk/looker-ask | 7492776fec17b8f67f00a2fcb0b789685ac9eecb | [
"Apache-2.0"
] | null | null | null | sample.event.js | kmfk/looker-ask | 7492776fec17b8f67f00a2fcb0b789685ac9eecb | [
"Apache-2.0"
] | null | null | null | sample.event.js | kmfk/looker-ask | 7492776fec17b8f67f00a2fcb0b789685ac9eecb | [
"Apache-2.0"
] | null | null | null | {
"version": "1.0",
"session": {
"new": false,
"application": {
"applicationId": "some.long.app.name.from.ask"
},
"sessionId": "some-session-id",
"attributes": {},
"user": {
"userId": null
}
},
"request": {
"type": "IntentRequest",
"requestId": "some-request-id",
... | 16.791667 | 52 | 0.468983 |
1ac0ea24ad418a8327f615d09f048517ac2d13bf | 2,814 | js | JavaScript | src/utils/utils.js | GBrachetta/frames | d0f4151307d7922b8ff9fe19ed7b85b00a41e435 | [
"MIT"
] | null | null | null | src/utils/utils.js | GBrachetta/frames | d0f4151307d7922b8ff9fe19ed7b85b00a41e435 | [
"MIT"
] | 4 | 2021-05-23T19:45:36.000Z | 2021-06-19T09:07:16.000Z | src/utils/utils.js | GBrachetta/frames | d0f4151307d7922b8ff9fe19ed7b85b00a41e435 | [
"MIT"
] | 2 | 2021-05-23T18:29:39.000Z | 2021-05-24T10:52:07.000Z | import figlet from "figlet";
import pressAnyKey from "press-any-key";
import shell from "shelljs";
import menu from "../cli.js";
import colors from "./colors.js";
const {
frames,
author,
help,
helpMenu,
accent,
errorColor,
helpAccent,
title,
} = colors;
export const helpMe = () => {
shell.echo(help(... | 26.055556 | 82 | 0.57747 |
1ac116ccf0a2589fad63440ae03645158f86d52b | 43,119 | js | JavaScript | WebContent/app/services/util/util.svc.js | edentns/MarketManagerWeb | 4397dcf437f74bdd14ce4d8ce65fddf196d4780b | [
"BSD-3-Clause"
] | 1 | 2020-07-23T13:52:08.000Z | 2020-07-23T13:52:08.000Z | WebContent/app/services/util/util.svc.js | edentns/MarketManagerWeb | 4397dcf437f74bdd14ce4d8ce65fddf196d4780b | [
"BSD-3-Clause"
] | null | null | null | WebContent/app/services/util/util.svc.js | edentns/MarketManagerWeb | 4397dcf437f74bdd14ce4d8ce65fddf196d4780b | [
"BSD-3-Clause"
] | null | null | null | (function () {
'use strict';
/**
* @ngdoc service
* @description
* 공통 유틸 서비스
*/
angular.module('edtApp.common.service').service('UtilSvc', ['$rootScope', '$state', '$window', '$http', 'APP_CONFIG', 'MenuSvc', '$q',
function ($rootScope, $state, $window, $http, APP_CONFIG, MenuSvc, $q) {
var m... | 34.275835 | 320 | 0.482687 |
1ac1d7badfee1fb7d6d85d10ebcfd531ddd30894 | 176 | js | JavaScript | front/src/app/components/styles/Page.js | grdlo/T9-SWA-Cloud-ToDoList | 8808322c39b6120085cd93ade5174e3bf48ff297 | [
"Apache-2.0"
] | null | null | null | front/src/app/components/styles/Page.js | grdlo/T9-SWA-Cloud-ToDoList | 8808322c39b6120085cd93ade5174e3bf48ff297 | [
"Apache-2.0"
] | null | null | null | front/src/app/components/styles/Page.js | grdlo/T9-SWA-Cloud-ToDoList | 8808322c39b6120085cd93ade5174e3bf48ff297 | [
"Apache-2.0"
] | null | null | null | export default {
page: {
marginTop: 50
},
title: {
marginBottom: 25
},
spacing: {
'& > *': {
margin: 8
}
}
} | 13.538462 | 24 | 0.346591 |
1ac260b56314d2997c2cbf8ac5fc1f75c54c825f | 400 | js | JavaScript | app/routes/search.js | dhruvnargund/DeakinSocial | d1283ae7b4a2675280152238c8b43ea2b07326d9 | [
"MIT"
] | 2 | 2021-09-11T15:25:53.000Z | 2021-09-21T08:55:16.000Z | app/routes/search.js | dhruvnargund/DeakinSocial | d1283ae7b4a2675280152238c8b43ea2b07326d9 | [
"MIT"
] | null | null | null | app/routes/search.js | dhruvnargund/DeakinSocial | d1283ae7b4a2675280152238c8b43ea2b07326d9 | [
"MIT"
] | null | null | null | const express = require('express');
const router = express.Router();
var Controllers = require("../controllers");
router.get('/', (req,res) => {
/* Deliver search HTML page */
Controllers.searchController.getSearch(req,res);
});
router.post('/', (req,res) => {
/* Return search results */
Co... | 26.666667 | 54 | 0.6425 |
1ac2a80ff7957761ad8b7f7e88bd65d346cd7524 | 1,710 | js | JavaScript | api_gateway_lambda_slack_example.js | theashishranjan/aws_examples | e21078762c1076bfcf17ca46e0258ff91b9fa7ec | [
"MIT"
] | 6 | 2017-04-21T06:08:39.000Z | 2020-03-19T03:42:36.000Z | api_gateway_lambda_slack_example.js | theashishranjan/aws_examples | e21078762c1076bfcf17ca46e0258ff91b9fa7ec | [
"MIT"
] | null | null | null | api_gateway_lambda_slack_example.js | theashishranjan/aws_examples | e21078762c1076bfcf17ca46e0258ff91b9fa7ec | [
"MIT"
] | 2 | 2017-04-21T12:31:24.000Z | 2018-08-16T08:52:29.000Z | 'use strict';
var https = require('https');
var util = require('util');
exports.handler = (event, context, callback) => {
var statusCode = 200;
var body = null;
var param_data = event.queryStringParameters.param_name;
if(validateData(param_data)){
body = JSON.stringify(param_data);
... | 26.71875 | 104 | 0.528655 |
1ac3268951373718d4ba78dccbc6307cec64c871 | 2,043 | js | JavaScript | src/components/LandingPage/Sections/ProductSection.js | bisoncorps/bisoncorps.com | 0e98e6674846a492b52fa5ddc040de8c7acfff4d | [
"MIT"
] | null | null | null | src/components/LandingPage/Sections/ProductSection.js | bisoncorps/bisoncorps.com | 0e98e6674846a492b52fa5ddc040de8c7acfff4d | [
"MIT"
] | null | null | null | src/components/LandingPage/Sections/ProductSection.js | bisoncorps/bisoncorps.com | 0e98e6674846a492b52fa5ddc040de8c7acfff4d | [
"MIT"
] | null | null | null | import React from "react"
// @material-ui/core components
import withStyles from "@material-ui/core/styles/withStyles"
// @material-ui/icons
import Language from "@material-ui/icons/Language"
import EmojiObjectsRoundedIcon from "@material-ui/icons/EmojiObjectsRounded"
import DeveloperModeOutlinedIcon from "@material-ui... | 35.842105 | 112 | 0.648067 |
1ac733a53497563e3b5d098a71abc06522c35654 | 202,931 | js | JavaScript | try/menu/q-core.min.js | artaf/ofaudit | 146e92d8880dc4343c488bb06618f38f43937b8b | [
"MIT"
] | null | null | null | try/menu/q-core.min.js | artaf/ofaudit | 146e92d8880dc4343c488bb06618f38f43937b8b | [
"MIT"
] | null | null | null | try/menu/q-core.min.js | artaf/ofaudit | 146e92d8880dc4343c488bb06618f38f43937b8b | [
"MIT"
] | null | null | null | /** qooxdoo v5.0.2 | (c) 2015 1&1 Internet AG, http://1und1.de | http://qooxdoo.org/license */
(function(){
if (!window.qx) window.qx = {};
var qx = window.qx;
if (!qx.$$environment) qx.$$environment = {};
var envinfo = {"json":true,"qx.application":"library.Application","qx.debug":false,"qx.debug.databinding":false,"... | 74.579566 | 3,152 | 0.705678 |
1ac750a282cb2138cd5125c0ff9afdde21acc840 | 680 | js | JavaScript | src/components/Pagination/index.js | xuwenliu/wb-recovery-wap | 6b2a1d831e3336be0e2d8b237c80344d8e02c2db | [
"MIT"
] | null | null | null | src/components/Pagination/index.js | xuwenliu/wb-recovery-wap | 6b2a1d831e3336be0e2d8b237c80344d8e02c2db | [
"MIT"
] | null | null | null | src/components/Pagination/index.js | xuwenliu/wb-recovery-wap | 6b2a1d831e3336be0e2d8b237c80344d8e02c2db | [
"MIT"
] | null | null | null | import React from 'react';
import Pagination from '@material-ui/lab/Pagination';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(theme => ({
root: {
flexShrink: 0,
height: '40px',
marginTop: '10px',
marginLeft: theme.spacing(20),
},
}));
function Pa... | 21.935484 | 58 | 0.616176 |
1ac78bdb7e9e5bf3e8acefd4161fb9d9a4b801b2 | 1,405 | js | JavaScript | src/CommunityMessages.js | fatikh1808/vk-react-embedder | 76ab1d0fa0093d4888379369af5302663196a54a | [
"MIT"
] | 43 | 2017-11-20T19:06:38.000Z | 2022-01-01T11:46:14.000Z | src/CommunityMessages.js | fatikh1808/vk-react-embedder | 76ab1d0fa0093d4888379369af5302663196a54a | [
"MIT"
] | 14 | 2017-12-24T22:06:46.000Z | 2020-05-12T09:47:51.000Z | src/CommunityMessages.js | fatikh1808/vk-react-embedder | 76ab1d0fa0093d4888379369af5302663196a54a | [
"MIT"
] | 8 | 2018-03-27T19:52:29.000Z | 2020-07-14T16:54:38.000Z | import React, { useContext, useEffect } from "react";
import PropTypes from "prop-types";
import VKContext from "./VKContext";
const CommunityMessages = ({ elementId, groupId, options, onMount }) => {
const vk = useContext(VKContext);
useEffect(() => {
const widget = vk.Widgets.CommunityMessages(elementId, gr... | 28.1 | 77 | 0.700356 |
1ac885cc2865d07090982358a3c35551eb81b286 | 395 | js | JavaScript | src/components/layout/index.js | vinaypuppal/AboutMe-SitePrototype | eda5a18377ef0c882ae42e9fe2c20fe6cb8b36bf | [
"MIT"
] | null | null | null | src/components/layout/index.js | vinaypuppal/AboutMe-SitePrototype | eda5a18377ef0c882ae42e9fe2c20fe6cb8b36bf | [
"MIT"
] | null | null | null | src/components/layout/index.js | vinaypuppal/AboutMe-SitePrototype | eda5a18377ef0c882ae42e9fe2c20fe6cb8b36bf | [
"MIT"
] | null | null | null | import styled from 'react-emotion';
import { container, indexContent, content, placeHolder } from './css';
export const Container = styled.div`
${container};
`;
export const IndexContent = styled.div`
${indexContent};
`;
export const Content = styled.div`
${content};
`;
export const PlaceHolder = styled.div`... | 16.458333 | 70 | 0.691139 |
1ac8d69168fd2f4001bc0e89cf30b9eda084a125 | 2,223 | js | JavaScript | 06.assert/01.assert.js | shangfeiSF/nodejs-grope | 6819410957aa2353be5ae68ff37335f1e1ed2a33 | [
"MIT",
"Unlicense"
] | null | null | null | 06.assert/01.assert.js | shangfeiSF/nodejs-grope | 6819410957aa2353be5ae68ff37335f1e1ed2a33 | [
"MIT",
"Unlicense"
] | null | null | null | 06.assert/01.assert.js | shangfeiSF/nodejs-grope | 6819410957aa2353be5ae68ff37335f1e1ed2a33 | [
"MIT",
"Unlicense"
] | null | null | null | var assert = require('assert')
var colors = require('colors')
function Detect() {
this.use_assert_option = {
number: [-1, 0, 1],
boolean: [true, false],
object: [{}, {test: 'ok'}],
string: ['', 'Hello world'],
array: [[], [0, 1, 2]]
}
this.use_deepEqual_option = {
1: {dog: {name: 'hello'}... | 26.464286 | 82 | 0.546109 |
1acb4e6331a3060b7115709fbe7058605a177f12 | 3,338 | js | JavaScript | frontend/main.js | tmvdl/livestream | 85abbda258ba5f122fe36e2008f8781be0916126 | [
"MIT"
] | 2 | 2021-01-03T04:23:13.000Z | 2021-01-15T01:33:04.000Z | frontend/main.js | brtmvdl/livestream | 85abbda258ba5f122fe36e2008f8781be0916126 | [
"MIT"
] | null | null | null | frontend/main.js | brtmvdl/livestream | 85abbda258ba5f122fe36e2008f8781be0916126 | [
"MIT"
] | 1 | 2021-01-03T04:23:14.000Z | 2021-01-03T04:23:14.000Z | "use strict";
/* globals MediaRecorder */
let mediaRecorder;
let recordedBlobs;
let gumVideo = document.querySelector("video#video");
const button = document.querySelector("button#button");
const err = document.querySelector("span#errorMsg");
const minVideo = Math.min(window.innerHeight, window.innerWidth);
const... | 27.138211 | 83 | 0.662972 |
1a48bde30de25841d52c27c9d5fe39aa03aaec88 | 2,550 | js | JavaScript | source/item/item.js | kevinjunod/pokemon-rn | 5db600d09c755f66ce46950722d8c3bba66a0cf3 | [
"MIT"
] | null | null | null | source/item/item.js | kevinjunod/pokemon-rn | 5db600d09c755f66ce46950722d8c3bba66a0cf3 | [
"MIT"
] | null | null | null | source/item/item.js | kevinjunod/pokemon-rn | 5db600d09c755f66ce46950722d8c3bba66a0cf3 | [
"MIT"
] | null | null | null | import React, { useEffect, useState, useCallback } from 'react';
import { View, Text, TouchableOpacity, FlatList } from 'react-native';
import { styles } from '../styles/styles';
import { useSelector, useDispatch } from 'react-redux';
import { getItem, getNewItemList } from '../redux/injector/item';
import ModalDetailI... | 32.278481 | 86 | 0.488235 |
1a48dc9641888682985ca7373b23fef10b6e7596 | 490 | js | JavaScript | tests/dummy/app/components/grid-removes.js | HaleyWardo/ember-cli-simple-grid | cd1ce99c264fd72bc7cc756d8a421747b020aa92 | [
"MIT"
] | 2 | 2017-06-02T15:48:26.000Z | 2017-08-06T19:11:13.000Z | tests/dummy/app/components/grid-removes.js | HaleyWardo/ember-cli-simple-grid | cd1ce99c264fd72bc7cc756d8a421747b020aa92 | [
"MIT"
] | 8 | 2017-06-02T15:58:55.000Z | 2017-06-16T20:26:47.000Z | tests/dummy/app/components/grid-removes.js | HaleyWardo/ember-cli-simple-grid | cd1ce99c264fd72bc7cc756d8a421747b020aa92 | [
"MIT"
] | 2 | 2017-07-18T10:07:28.000Z | 2018-10-11T02:15:03.000Z | import Ember from 'ember';
import layout from '../templates/components/grid-removes';
const { Component, computed } = Ember;
export default Component.extend({
layout,
classNames: ['grid-wrapper'],
columns: 3,
items: computed(function() {
const list = [];
for (var i = 0; i < 100; i++) {
list.... | 18.148148 | 77 | 0.563265 |
1a4a1b21860e81d3d917fcf33e6ccb15c4b86079 | 163 | js | JavaScript | _posts/JavaScript/test.js | AllenChyou/AllenChyou.github.io | b4d48cdebc346ae491cfde0768aeebb1b01fc788 | [
"MIT"
] | null | null | null | _posts/JavaScript/test.js | AllenChyou/AllenChyou.github.io | b4d48cdebc346ae491cfde0768aeebb1b01fc788 | [
"MIT"
] | null | null | null | _posts/JavaScript/test.js | AllenChyou/AllenChyou.github.io | b4d48cdebc346ae491cfde0768aeebb1b01fc788 | [
"MIT"
] | null | null | null |
window.onload = function() {
var timestamp = document.getElementById("timestamp");
timestamp.appendChild(document.createTextNode(new Date().toString()));
}; | 14.818182 | 70 | 0.736196 |
1a4aed3349c5938b23db8f031dee0bdfc0c1645f | 815 | js | JavaScript | Public/Admin/js/cate/add.js | lovehamburger/shops | ee3bb4c69fb333b1ac5b6f78acadd61065cf1301 | [
"BSD-2-Clause"
] | null | null | null | Public/Admin/js/cate/add.js | lovehamburger/shops | ee3bb4c69fb333b1ac5b6f78acadd61065cf1301 | [
"BSD-2-Clause"
] | null | null | null | Public/Admin/js/cate/add.js | lovehamburger/shops | ee3bb4c69fb333b1ac5b6f78acadd61065cf1301 | [
"BSD-2-Clause"
] | null | null | null | $(function(){
var cate = $('.cate');
cate.click(function(event) {
var catename = $('#catename').val();
var id = $('input[name=cateId]').val();
if(catename == ''){
layer.msg('分类名称不能为空',{icon:7});
return;
}
var pid = $('select[name=pid]').val();
if(pid == ''){
layer.msg('上级分类不能为空',{icon:7});
ret... | 19.878049 | 49 | 0.515337 |
1a4b20966908f55fd33f035584b6d94689808742 | 987 | js | JavaScript | src/app/home/home.test.js | bladexr8/practical-microservices | dc387b487b0ad45ab44a34e231e4a99b12f95aed | [
"MIT"
] | null | null | null | src/app/home/home.test.js | bladexr8/practical-microservices | dc387b487b0ad45ab44a34e231e4a99b12f95aed | [
"MIT"
] | 5 | 2021-05-11T15:14:00.000Z | 2021-09-02T11:43:16.000Z | code/first-pass/src/app/home/home.test.js | alvarocamillont/microservices_book | 39bde8ff72c0454e9e05ac50ad68e0b163029cda | [
"MIT"
] | null | null | null | /***
* Excerpted from "Practical Microservices",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any purpose.
* Visit... | 35.25 | 85 | 0.652482 |
1a4b6e399cffac86973b9cf58ac5f3a59ada16da | 2,732 | js | JavaScript | services/profile/src/__tests__/profile-data-source.js | zsobral/dev-graphql | f8ad733166bb731ac72cdd3c1b0a6ba01906bfec | [
"MIT"
] | 1 | 2020-08-19T12:49:45.000Z | 2020-08-19T12:49:45.000Z | services/profile/src/__tests__/profile-data-source.js | zsobral/dev-graphql | f8ad733166bb731ac72cdd3c1b0a6ba01906bfec | [
"MIT"
] | 7 | 2020-10-04T00:33:33.000Z | 2022-01-22T11:59:33.000Z | services/profile/src/__tests__/profile-data-source.js | zsobral/dev-graphql | f8ad733166bb731ac72cdd3c1b0a6ba01906bfec | [
"MIT"
] | null | null | null | const { UserInputError } = require('apollo-server')
const auth0 = require('../auth0')
const Profile = require('../models/profile')
const ProfileDataSource = require('../profile-data-source')
jest.mock('auth0', () => ({
ManagementClient: function () {
return { getUser: jest.fn() }
},
}))
describe('[profileAPI... | 33.728395 | 88 | 0.666911 |
1a4cf233165051223a7c4a8d0591d7a12c7a52db | 97 | js | JavaScript | examples/with-nuxtjs/nuxt.config.js | 8k-eagle-eye/axios-mock-server | f8a6903bd0aa3cc7c8b15d2141f9875933ac98d1 | [
"MIT"
] | 25 | 2020-07-10T02:06:41.000Z | 2022-01-28T12:54:50.000Z | examples/with-nuxtjs/nuxt.config.js | 8k-eagle-eye/axios-mock-server | f8a6903bd0aa3cc7c8b15d2141f9875933ac98d1 | [
"MIT"
] | 265 | 2019-08-17T06:40:41.000Z | 2020-06-12T20:42:18.000Z | examples/with-nuxtjs/nuxt.config.js | 8k-eagle-eye/axios-mock-server | f8a6903bd0aa3cc7c8b15d2141f9875933ac98d1 | [
"MIT"
] | 5 | 2020-08-25T01:27:26.000Z | 2021-07-09T23:55:32.000Z | export default {
mode: 'spa',
modules: ['@nuxtjs/axios'],
plugins: ['~/plugins/mock.js']
}
| 16.166667 | 32 | 0.597938 |
1a4da43cce077867e64403cc780f9b2b9378cff3 | 186 | js | JavaScript | src/newTab.js | AnandShiva/vue-extension-medium-blog | 9108c2ee66d41f48229e13fa2e27c7bf104ce614 | [
"MIT"
] | null | null | null | src/newTab.js | AnandShiva/vue-extension-medium-blog | 9108c2ee66d41f48229e13fa2e27c7bf104ce614 | [
"MIT"
] | null | null | null | src/newTab.js | AnandShiva/vue-extension-medium-blog | 9108c2ee66d41f48229e13fa2e27c7bf104ce614 | [
"MIT"
] | null | null | null | import Vue from 'vue';
const ExtensionContainer = require('./Index.vue').default;
window.vueInstance = new Vue({
el: `#vue_container`,
render: (h) => h(ExtensionContainer),
}); | 23.25 | 58 | 0.672043 |
1a4e603fbc609e791b07f2791a91201a8c32b294 | 1,347 | js | JavaScript | javascript/deployContract1.js | ConsenSysMesh/sdo-training | 5bcfa8255bd81e97ea87405dc44f464ed23dc658 | [
"MIT"
] | null | null | null | javascript/deployContract1.js | ConsenSysMesh/sdo-training | 5bcfa8255bd81e97ea87405dc44f464ed23dc658 | [
"MIT"
] | null | null | null | javascript/deployContract1.js | ConsenSysMesh/sdo-training | 5bcfa8255bd81e97ea87405dc44f464ed23dc658 | [
"MIT"
] | 1 | 2021-10-31T12:04:34.000Z | 2021-10-31T12:04:34.000Z | var Web3 = require('web3');
var web3 = new Web3();
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
if (process.argv.length < 3) {
console.log('\nUsage: deployContract1.js <from>\n');
process.exit(0);
}
var contractBinary = '0x6060604052341561000c57fe5b5b60c68061001b6000396000f30060606... | 32.071429 | 476 | 0.753526 |
1a4f5135a7e372c731b0c69136515485455ca181 | 777 | js | JavaScript | src/connection.js | Yaroslav-BV/Ohana | 05c841393c67caf6266f2e5a7f4c9c3df9904ffc | [
"MIT"
] | 7 | 2020-04-19T20:53:36.000Z | 2021-12-04T01:15:34.000Z | src/connection.js | Yaroslav-BV/Ohana | 05c841393c67caf6266f2e5a7f4c9c3df9904ffc | [
"MIT"
] | 3 | 2020-09-09T17:29:06.000Z | 2020-12-24T14:14:21.000Z | src/connection.js | Yaroslav-BV/Ohana | 05c841393c67caf6266f2e5a7f4c9c3df9904ffc | [
"MIT"
] | 5 | 2020-04-21T06:46:08.000Z | 2021-12-19T14:14:26.000Z | const hana = require('@sap/hana-client');
const conn = hana.createConnection();
const connect = (params) => {
return new Promise((resolve, reject) => {
conn.connect(params, function(err) {
if (err) {
reject(err);
} else {
console.log('Connected to han... | 22.852941 | 53 | 0.447876 |
1a4fdf55108edf649ee9018bc72e82bcfd86b5d0 | 956 | js | JavaScript | index.js | petreleon/2048C-wasm | bafcc205dde65d3f0dccae5abe5489be7b8385f1 | [
"MIT"
] | null | null | null | index.js | petreleon/2048C-wasm | bafcc205dde65d3f0dccae5abe5489be7b8385f1 | [
"MIT"
] | null | null | null | index.js | petreleon/2048C-wasm | bafcc205dde65d3f0dccae5abe5489be7b8385f1 | [
"MIT"
] | null | null | null | var factory = require('./api.js');
console.reset = function () {
return process.stdout.write('\033c');
}
factory().then((instance) => {
instance._init();
instance._read();
var stdin = process.stdin;
stdin.setRawMode(true);
stdin.resume();
stdin.setEncoding('utf8');
stdin.on('data', function (key) {
... | 26.555556 | 85 | 0.566946 |
1a506bd5ac727f1257780c5e215411b5783be973 | 449 | js | JavaScript | backend/routes.js | sophi-li/breadpun-api | 6e7355cc2793032112bed7d27aa53b0fdbc93aed | [
"MIT"
] | 6 | 2020-05-05T22:02:13.000Z | 2021-03-16T09:20:18.000Z | backend/routes.js | sophi-li/breadpun-api | 6e7355cc2793032112bed7d27aa53b0fdbc93aed | [
"MIT"
] | 4 | 2020-05-07T02:06:16.000Z | 2022-02-27T04:17:34.000Z | backend/routes.js | sophi-li/breadpun-api | 6e7355cc2793032112bed7d27aa53b0fdbc93aed | [
"MIT"
] | 2 | 2020-05-07T01:21:54.000Z | 2020-05-08T01:23:28.000Z | const express = require('express')
const cors = require('cors')
const getBreadPun = require('./getBreadPun')
const breadpuns = require('./Breadpuns')
const router = express.Router()
router.get('/', cors(), (req, res) => {
res.json({ message: 'Hello world!' })
})
router.get('/breadpuns', cors(), (req, res) => {
r... | 21.380952 | 51 | 0.643653 |
1a51dff6e66dba94a88b21d752277820df6e6bcb | 10,791 | js | JavaScript | lib/EXPO.js | innoworkssoftware/parse-server-push-adapter | 484205c74859ab0e0b7a0068779036358b799870 | [
"MIT"
] | null | null | null | lib/EXPO.js | innoworkssoftware/parse-server-push-adapter | 484205c74859ab0e0b7a0068779036358b799870 | [
"MIT"
] | null | null | null | lib/EXPO.js | innoworkssoftware/parse-server-push-adapter | 484205c74859ab0e0b7a0068779036358b799870 | [
"MIT"
] | null | null | null | // Babel-Config-> presets: es2015, babel-polyfill, stage-0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = EXPO;
var _parse = _interopRequireDefault(require("parse"));
var _npmlog = _interopRequireDefault(require("npmlog"));
var _expoServerSdk = _interopRequireDe... | 34.809677 | 997 | 0.595126 |
1a52e27ab354ecb4c424b35f9f93f9e6d2cfd368 | 566 | js | JavaScript | _site/assets/js/lunr/lunr-store.js | lifesailor/lifesailor.github.io | e324bc1ab18daa56c8df5f3d6d8b26f6b8118192 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | _site/assets/js/lunr/lunr-store.js | lifesailor/lifesailor.github.io | e324bc1ab18daa56c8df5f3d6d8b26f6b8118192 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | _site/assets/js/lunr/lunr-store.js | lifesailor/lifesailor.github.io | e324bc1ab18daa56c8df5f3d6d8b26f6b8118192 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | var store = [{
"title": "Machine Learning Yearning 책 소개",
"excerpt":"Andrew Ng의 Machine Learning Yearning 앞으로 스스로 공부한 내용을 공부하고 정리하기 위해서 글로 남기고자 합니다. 첫 번째 글은 Andrew Ng의 Machine Learning Yearning에 대한 글입니다. 해당 책은 다음 링크에서 다운받을 수 있습니다. Machine Learning Yearning PDF 해당 책을 한글로 번역한 Github 링크도 첨부드립니다. Machine Le... | 80.857143 | 321 | 0.685512 |
1a52f1da7acd766b051405f3e6f8b5b02cd23267 | 411 | js | JavaScript | src/actions/index.js | danillosl/videos | d9d53bb66326bea455fafded79849170197c3392 | [
"MIT"
] | null | null | null | src/actions/index.js | danillosl/videos | d9d53bb66326bea455fafded79849170197c3392 | [
"MIT"
] | null | null | null | src/actions/index.js | danillosl/videos | d9d53bb66326bea455fafded79849170197c3392 | [
"MIT"
] | null | null | null | import youtube from "../apis/youtube";
export const fetchVideos = term => async (dispatch, getState) => {
const response = await youtube.get("/search", {
params: {
q: term
}
});
dispatch({ type: "FETCH_VIDEOS", payload: response.data.items });
dispatch(selectVideo(response.data.items[0]));
};
ex... | 25.6875 | 67 | 0.649635 |
1a5381df19dab04edbdbf1ea4f670bb9d97da457 | 816 | js | JavaScript | app/view/account.js | togayther/react-stock | b19fc7bcbb01bba9770a586736b87940cb499d83 | [
"MIT"
] | 3 | 2016-04-25T10:45:59.000Z | 2017-08-24T01:54:55.000Z | app/view/account.js | togayther/react-stock | b19fc7bcbb01bba9770a586736b87940cb499d83 | [
"MIT"
] | null | null | null | app/view/account.js | togayther/react-stock | b19fc7bcbb01bba9770a586736b87940cb499d83 | [
"MIT"
] | null | null | null | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Carousel from 'nuka-carousel';
import Container from '../component/container';
import {
Panel,
PanelHeader,
PanelBody,
PanelFooter
} from 'react-weu... | 16.32 | 47 | 0.573529 |
1a54355801ba81697bef71d228e8a41de8757e39 | 1,288 | js | JavaScript | src/components/EvaluationGridLine.js | SaphireVert/tpi-maker | b79736064a90c0a6475dc85943fe81b72214419b | [
"MIT"
] | 1 | 2022-03-05T11:04:27.000Z | 2022-03-05T11:04:27.000Z | src/components/EvaluationGridLine.js | SaphireVert/tpi-maker | b79736064a90c0a6475dc85943fe81b72214419b | [
"MIT"
] | null | null | null | src/components/EvaluationGridLine.js | SaphireVert/tpi-maker | b79736064a90c0a6475dc85943fe81b72214419b | [
"MIT"
] | 1 | 2021-03-25T10:59:14.000Z | 2021-03-25T10:59:14.000Z | import React from 'react'
import { ptsChange } from '../utils/Calculation.js'
class EvaluationGridLine extends React.Component {
render(){
return(
<div key={`${this.props.data.id}_EvaluationGridLine`} className={`EvaluationGridLine`}>
<div key={`${this.props.data.id}_EvaluationGridLineID`} classNam... | 49.538462 | 161 | 0.678571 |
1a54d7b180438594dda2c5d84c9749f4ad2c9389 | 630 | js | JavaScript | src/components/spinner/index.js | ORzazade/pubgheatmapnet | 117dada7dabe5742875f270e16b8d6974596792b | [
"MIT"
] | 19 | 2019-11-12T18:03:37.000Z | 2022-03-18T16:34:29.000Z | src/components/spinner/index.js | ORzazade/pubgheatmapnet | 117dada7dabe5742875f270e16b8d6974596792b | [
"MIT"
] | 7 | 2019-10-10T13:01:44.000Z | 2019-10-29T18:47:53.000Z | src/components/spinner/index.js | ORzazade/pubgheatmapnet | 117dada7dabe5742875f270e16b8d6974596792b | [
"MIT"
] | 1 | 2019-10-15T12:38:13.000Z | 2019-10-15T12:38:13.000Z | import React from "react";
import CircularProgress from "@material-ui/core/CircularProgress";
import Grid from "@material-ui/core/Grid";
import { Typography } from "@material-ui/core";
export const Spinner = ({ title, disableShrink }) => {
return (
<Grid
container
justify="center"
alignItems="c... | 24.230769 | 76 | 0.609524 |
1a557ca3f1a25e0dae0b8bfac76c907bf4e59e0b | 534 | js | JavaScript | src/index.js | Ttttanna/typical-arrays-problems | 756e45faba1d0642483356459a107b586eaf9821 | [
"MIT"
] | null | null | null | src/index.js | Ttttanna/typical-arrays-problems | 756e45faba1d0642483356459a107b586eaf9821 | [
"MIT"
] | null | null | null | src/index.js | Ttttanna/typical-arrays-problems | 756e45faba1d0642483356459a107b586eaf9821 | [
"MIT"
] | null | null | null |
exports.min = function min (array) {
if (arguments.length != 0 && array.length != 0) {
array.sort((a,b) => a-b);
return array[0];
} else return 0;
}
exports.max = function max (array) {
if (arguments.length != 0 && array.length != 0) {
array.sort((a,b) => b-a);
return array[0];
} else return 0... | 24.272727 | 65 | 0.589888 |
1a574adce912e98f88aff614eb24de4b19484a9e | 2,890 | js | JavaScript | src/Components/Login/Login.js | Naaamsukh/FindMyDorm-1 | c9275611bc808f8a3cc1e4892e74cc37357e4e4f | [
"Apache-2.0"
] | 1 | 2022-03-02T09:34:28.000Z | 2022-03-02T09:34:28.000Z | src/Components/Login/Login.js | Naaamsukh/FindMyDorm-1 | c9275611bc808f8a3cc1e4892e74cc37357e4e4f | [
"Apache-2.0"
] | 2 | 2022-03-04T08:43:50.000Z | 2022-03-04T08:53:15.000Z | src/Components/Login/Login.js | Naaamsukh/FindMyDorm-1 | c9275611bc808f8a3cc1e4892e74cc37357e4e4f | [
"Apache-2.0"
] | 1 | 2022-02-18T15:47:53.000Z | 2022-02-18T15:47:53.000Z | import React, { useEffect } from "react";
import "./Login.css";
import { useState } from "react";
import axios from "axios";
import { Link } from "react-router-dom";
function Login() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [token, setToken] = useState(... | 30.421053 | 69 | 0.529758 |
1a585bc942e0e220038fdd19b6790cbd6fdc42a7 | 2,997 | js | JavaScript | server/models/user.model.js | Vivallo04/study-room.io | 12c1532c42dde5f14654bd2fc02678f7e7667334 | [
"MIT"
] | null | null | null | server/models/user.model.js | Vivallo04/study-room.io | 12c1532c42dde5f14654bd2fc02678f7e7667334 | [
"MIT"
] | null | null | null | server/models/user.model.js | Vivallo04/study-room.io | 12c1532c42dde5f14654bd2fc02678f7e7667334 | [
"MIT"
] | 1 | 2021-09-13T23:29:05.000Z | 2021-09-13T23:29:05.000Z | import mongoose from 'mongoose';
/**
* Generate a new Mongoose object schema and
* specify the properties of each document
* in a collection.
*
* The schema will record user-related information
* such as :
* - name
* - email
* - created at
* - last-updated at
* - timestamps
* - hashed passwor... | 27.245455 | 92 | 0.598932 |
1a5a3fa856343e6157e81c5a81843f00757037b7 | 1,147 | js | JavaScript | packages/demo/src/components/tools/selector.js | ObservedObserver/pivot-chart | 166d6b813d9a4c3fd0888ff85679f80218da7f9b | [
"MIT"
] | 39 | 2020-02-05T16:27:26.000Z | 2022-03-06T12:09:31.000Z | packages/demo/src/components/tools/selector.js | ObservedObserver/pivot-chart | 166d6b813d9a4c3fd0888ff85679f80218da7f9b | [
"MIT"
] | 19 | 2020-04-01T07:48:08.000Z | 2022-03-08T23:08:45.000Z | packages/demo/src/components/tools/selector.js | ObservedObserver/pivot-chart | 166d6b813d9a4c3fd0888ff85679f80218da7f9b | [
"MIT"
] | 14 | 2020-04-16T08:25:59.000Z | 2021-12-31T07:20:32.000Z | import React from 'react';
import { List, Tag } from 'antd'
const labelColor = {
'Dimensions': '#fa541c',
'Measures': '#13c2c2'
}
const Selector = props => {
const {labels, dragDrop, dragStart} = props
let fields = Object.keys(labels)
let uiLabels = {}
fields.forEach((field) => {
uiLabel... | 28.675 | 60 | 0.475153 |
1a5a3fc20aa5e65dbf973328482620e7ba2b7d40 | 1,172 | js | JavaScript | modules/tasks/server/models/task.server.model.js | CannedFish/teammgr4fun | 86712a4d688904888bab0f2e79c373800908e3f1 | [
"MIT"
] | null | null | null | modules/tasks/server/models/task.server.model.js | CannedFish/teammgr4fun | 86712a4d688904888bab0f2e79c373800908e3f1 | [
"MIT"
] | 7 | 2016-04-13T02:52:41.000Z | 2016-04-15T09:13:32.000Z | modules/tasks/server/models/task.server.model.js | CannedFish/teammgr4fun | 86712a4d688904888bab0f2e79c373800908e3f1 | [
"MIT"
] | null | null | null | 'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Task Pluses
*/
var TaskPluses = new Schema({
description: {
type: String,
required: 'Please fill in a description'
},
value: {
type: Number,
required: 'Please fill in a value of this task'
}
});
/**
* Task ... | 17.492537 | 81 | 0.581911 |
1a5a768cb3dbea35ddad8b055d5744cb8004bceb | 819 | js | JavaScript | client/src/App.js | RichBu/NYT_react_03 | c1a4d398b5bfa236abff94c2cbfe695a8a058619 | [
"MIT"
] | null | null | null | client/src/App.js | RichBu/NYT_react_03 | c1a4d398b5bfa236abff94c2cbfe695a8a058619 | [
"MIT"
] | null | null | null | client/src/App.js | RichBu/NYT_react_03 | c1a4d398b5bfa236abff94c2cbfe695a8a058619 | [
"MIT"
] | null | null | null |
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { Link } from 'react-router-dom';
import Saved from "./pages/Saved";
import Search from "./pages/Search";
import Nav from "./components/Nav";
const App = () => {
return (
<div className="container">
... | 21.552632 | 74 | 0.554335 |
1a5b1e9b0c0468703683737a807a65b0f4afb9b7 | 588 | js | JavaScript | symfony/www/src/js/gallery.js | lukystile/office.qq | 9b24a2a987959a620746a3b6b9d5c2139f04cee2 | [
"MIT"
] | 1 | 2019-07-18T12:36:03.000Z | 2019-07-18T12:36:03.000Z | symfony/www/src/js/gallery.js | lukystile/office.qq | 9b24a2a987959a620746a3b6b9d5c2139f04cee2 | [
"MIT"
] | null | null | null | symfony/www/src/js/gallery.js | lukystile/office.qq | 9b24a2a987959a620746a3b6b9d5c2139f04cee2 | [
"MIT"
] | null | null | null | jQuery(function ($) {
var modal = new Foundation.Reveal($('#galleryModal'));
$('.gallery li a').click(function (e) {
let imgSrc = $(this).attr('href');
let date = $(this).children('p').text()
$('#galleryModal .block-head span').text(date)
$('#galleryModal .gallery_image').append('<img src="' + imgSr... | 32.666667 | 74 | 0.593537 |
1a5b612aefac3289bac2badb8ea178401d63a26e | 1,119 | js | JavaScript | node_modules/@fortawesome/pro-solid-svg-icons/faTreeDecorated.js | maddy-torqata/gokul-organics1 | f9b0ddbd75bdd2b35136e7ed392fc0dd3e004b59 | [
"MIT"
] | null | null | null | node_modules/@fortawesome/pro-solid-svg-icons/faTreeDecorated.js | maddy-torqata/gokul-organics1 | f9b0ddbd75bdd2b35136e7ed392fc0dd3e004b59 | [
"MIT"
] | null | null | null | node_modules/@fortawesome/pro-solid-svg-icons/faTreeDecorated.js | maddy-torqata/gokul-organics1 | f9b0ddbd75bdd2b35136e7ed392fc0dd3e004b59 | [
"MIT"
] | null | null | null | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'tree-decorated';
var width = 448;
var height = 512;
var ligatures = [];
var unicode = 'f7dc';
var svgPathData = 'M439.6 455.6L349.8 352h36c25.6 0 39.5-29.2 23.2-48.5L314.1 192h44.8c21.3 0 32.9-22.5 19.3-37.3... | 38.586207 | 523 | 0.693476 |
1a5c32453cecfba630adcf0a14936fdb7a21f355 | 900 | js | JavaScript | scripts/prepareExample.js | ShaMan123/react-native-reanimated-canvas | 95c148a5e3331eaf262ee8d19320d5a259ea2197 | [
"MIT"
] | 25 | 2019-11-16T07:11:54.000Z | 2022-03-22T09:48:35.000Z | scripts/prepareExample.js | ShaMan123/react-native-sketch-canvas | 95c148a5e3331eaf262ee8d19320d5a259ea2197 | [
"MIT"
] | 11 | 2019-11-13T04:59:58.000Z | 2021-02-15T08:04:23.000Z | scripts/prepareExample.js | ShaMan123/react-native-reanimated-canvas | 95c148a5e3331eaf262ee8d19320d5a259ea2197 | [
"MIT"
] | 1 | 2019-05-02T20:51:56.000Z | 2019-05-02T20:51:56.000Z | /* tslint:disable: no-console */
const fs = require('fs');
const path = require('path');
const filePath = path.resolve(__dirname, '..', 'example.config.json');
const defaultConfig = {
"useBaseImplementation": false,
"useLocalReanimatedModule": false
}
class Handler {
config = {};
constructor() {
... | 18.75 | 82 | 0.6 |
1a5c7c155d102805a3a4673a6c6e91ad957e4067 | 1,093 | js | JavaScript | src/App.js | cyh5kf/antd-react-latest-back | fa865172e085def6f9a804cda89bf31e0e404cc0 | [
"MIT"
] | 1 | 2020-05-12T02:32:41.000Z | 2020-05-12T02:32:41.000Z | src/App.js | cyh5kf/antd-react-latest-back | fa865172e085def6f9a804cda89bf31e0e404cc0 | [
"MIT"
] | null | null | null | src/App.js | cyh5kf/antd-react-latest-back | fa865172e085def6f9a804cda89bf31e0e404cc0 | [
"MIT"
] | null | null | null | import React from 'react'
// import { Route, BrowserRouter as Router } from 'react-router-dom'
//使用hash路由
import { Route, HashRouter as Router } from 'react-router-dom'
import routes from 'routes'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
@connect(
state => state.getIn(['glob... | 28.763158 | 100 | 0.400732 |
1a5c9cbf803a89748945d58555a6f722d9c472d5 | 1,427 | js | JavaScript | src/pages/tags/index.js | fullstack-rocket/gatsby-starter-netlify-cms-materialui | fc32266a684f28e76db6a792b52aa50a8154a42f | [
"MIT"
] | null | null | null | src/pages/tags/index.js | fullstack-rocket/gatsby-starter-netlify-cms-materialui | fc32266a684f28e76db6a792b52aa50a8154a42f | [
"MIT"
] | null | null | null | src/pages/tags/index.js | fullstack-rocket/gatsby-starter-netlify-cms-materialui | fc32266a684f28e76db6a792b52aa50a8154a42f | [
"MIT"
] | 1 | 2020-08-17T15:28:51.000Z | 2020-08-17T15:28:51.000Z | import React from "react";
import kebabCase from "lodash/kebabCase";
import Helmet from "react-helmet";
import { Link, graphql } from "gatsby";
import Container from "@material-ui/core/Container";
import Box from "@material-ui/core/Box";
import Typography from "@material-ui/core/Typography";
import MUILink from "@mater... | 23.393443 | 58 | 0.567624 |
1a5d0fd47b80dc8f750c64ee867f8f33af38efa6 | 3,476 | js | JavaScript | public/js/sparql/toolkit/combobutton.js | ontoden/ontobee | 1ade6e88d204c3ac0feefcbc1997673611803b2c | [
"Apache-2.0"
] | 23 | 2015-09-24T10:32:34.000Z | 2022-03-31T23:18:09.000Z | public/js/sparql/toolkit/combobutton.js | e4ong1031/ontobee | 9beb8d163da4aef898220c6cd1bcd035a0a24160 | [
"Apache-2.0"
] | 128 | 2015-08-21T15:10:06.000Z | 2022-03-23T18:54:36.000Z | public/js/sparql/toolkit/combobutton.js | ontoden/ontobee | 1ade6e88d204c3ac0feefcbc1997673611803b2c | [
"Apache-2.0"
] | 2 | 2015-09-05T19:53:32.000Z | 2022-03-08T04:24:28.000Z | /*
* $Id: combobutton.js,v 1.8 2009/01/06 22:17:12 source Exp $
*
* This file is part of the OpenLink Software Ajax Toolkit (OAT) project.
*
* Copyright (C) 2005-2009 OpenLink Software
*
* See LICENSE file for details.
*/
/*
var cb = new OAT.ComboButton();
appendChild(cb.div);
cb.addOption(imagepath,text... | 42.91358 | 149 | 0.69275 |
1a5d395b4413ec12c5078c60dff38ccc6c603ad2 | 778 | js | JavaScript | src/models/SupplierModel.js | b-lanes/service-tevor | 3fd0b3f7b76d0d8aeb32abe4f1d1cd81102bb0b0 | [
"Apache-2.0"
] | null | null | null | src/models/SupplierModel.js | b-lanes/service-tevor | 3fd0b3f7b76d0d8aeb32abe4f1d1cd81102bb0b0 | [
"Apache-2.0"
] | 7 | 2018-07-25T15:23:35.000Z | 2018-08-06T16:49:41.000Z | src/models/SupplierModel.js | b-lanes/service-tevor | 3fd0b3f7b76d0d8aeb32abe4f1d1cd81102bb0b0 | [
"Apache-2.0"
] | 2 | 2018-07-25T13:36:38.000Z | 2018-10-09T08:12:12.000Z | /**
* Data Model for 'Supplier' document
* Store supplier details
*
* {
* suppid: supplier id, system generated unique id (short id, 6 char, SP-XXXXXXXXXX)
* name: full name of the supplier
* shortname: nick name of the supplier
* contact: contact number of the supplier
* createdBy: user id who creat... | 31.12 | 92 | 0.736504 |
1a5dd599ba6d80248f5a67dc7044b60cc8c7d10d | 422 | js | JavaScript | resources/js/controllers/submit_controller.js | nguyenlinh98/happy-scholl | a0278d757ae9de4d657710b26d79733001f899fb | [
"MIT"
] | null | null | null | resources/js/controllers/submit_controller.js | nguyenlinh98/happy-scholl | a0278d757ae9de4d657710b26d79733001f899fb | [
"MIT"
] | null | null | null | resources/js/controllers/submit_controller.js | nguyenlinh98/happy-scholl | a0278d757ae9de4d657710b26d79733001f899fb | [
"MIT"
] | null | null | null | import { Controller } from 'stimulus';
class SubmitController extends Controller {
preventDouble() {
if ((this.element.nodeName === 'INPUT' && (this.element.type === 'submit' || this.element.type === 'image')) || (this.element.nodeName === 'BUTTON' && this.element.type === 'submit')) {
this.ele... | 35.166667 | 193 | 0.632701 |
1a5e4bdebb9e3c405f534b11294b01480809cbc0 | 266 | js | JavaScript | addon/models/spacedog-schema.js | dubo-dubon-duponey/tsygan | d468954efc6cccb67b3448cb18238ff8bc9d56db | [
"MIT"
] | null | null | null | addon/models/spacedog-schema.js | dubo-dubon-duponey/tsygan | d468954efc6cccb67b3448cb18238ff8bc9d56db | [
"MIT"
] | null | null | null | addon/models/spacedog-schema.js | dubo-dubon-duponey/tsygan | d468954efc6cccb67b3448cb18238ff8bc9d56db | [
"MIT"
] | null | null | null | import Model from 'ember-data/model';
import { hasMany } from 'ember-data/relationships';
// XXX Must validate schema name (id), so they don't contain \\,/, *, ?, \", <, >, |, , ,
export default Model.extend({
fields: hasMany('tsygan@spacedog-schemafield')
});
| 29.555556 | 90 | 0.654135 |
1a5e8abe3118c27841c16494f54ea3b70a12ba37 | 3,545 | js | JavaScript | src/components/Register/index.js | BernardoAguayoOrtega/foro-app | 46500af6d396ed355a3d15f8d795774caaadf131 | [
"MIT"
] | null | null | null | src/components/Register/index.js | BernardoAguayoOrtega/foro-app | 46500af6d396ed355a3d15f8d795774caaadf131 | [
"MIT"
] | null | null | null | src/components/Register/index.js | BernardoAguayoOrtega/foro-app | 46500af6d396ed355a3d15f8d795774caaadf131 | [
"MIT"
] | null | null | null | //import react
import React, { useState, useContext } from 'react';
//import custom styles
import { useStyles } from './styles';
//import material ui components
import {
Button,
Modal,
Backdrop,
Fade,
Input,
FormGroup,
} from '@material-ui/core';
//import context
import { Context } from '../../utils/Context';
//i... | 23.169935 | 79 | 0.600282 |
1a5fa5018af0e38fc44d326f23363291f87c9ff9 | 243 | js | JavaScript | jsigma.js | porta8080/JSigma | 381dd66f28b620aabade6734c4ff66fe46df4de2 | [
"MIT"
] | null | null | null | jsigma.js | porta8080/JSigma | 381dd66f28b620aabade6734c4ff66fe46df4de2 | [
"MIT"
] | null | null | null | jsigma.js | porta8080/JSigma | 381dd66f28b620aabade6734c4ff66fe46df4de2 | [
"MIT"
] | null | null | null | function s(i){
is = i.split('#{').join('${');
try{
return eval('`'+is+'`');
}catch(e){
return i;
}
}
function Ʃ(i){
return s(i);
}
function sigma(i){
return s(i);
}
function jsigma(i){
return s(i);
} | 14.294118 | 34 | 0.465021 |
1a5ffdf75360e303231203069c3a4c6b2f2d5dec | 2,004 | js | JavaScript | app/controller/timeAxis.js | GolderBrother/blog-node-eggjs | 3e495f170ad3858cdc28e1338b66d74e9afc3dd6 | [
"MIT"
] | 2 | 2019-06-07T16:13:23.000Z | 2019-09-09T01:05:16.000Z | app/controller/timeAxis.js | GolderBrother/blog-node-eggjs | 3e495f170ad3858cdc28e1338b66d74e9afc3dd6 | [
"MIT"
] | 6 | 2021-03-02T00:34:06.000Z | 2022-03-08T22:59:40.000Z | app/controller/timeAxis.js | GolderBrother/blog-node-eggjs | 3e495f170ad3858cdc28e1338b66d74e9afc3dd6 | [
"MIT"
] | null | null | null | const BaseController = require('./base');
class TimeAxisController extends BaseController {
//获取全部时间轴内容
async getTimeAxisList() {
const {
ctx
} = this;
let {
keyword,
state,
pageNum,
pageSize
} = ctx.request.query;
const result = await ctx.service.timeAxis.getTimeAx... | 20.659794 | 83 | 0.603792 |
1a60a284e106492717d7e46a95bc718aebc8e229 | 1,076 | js | JavaScript | frontend/src/components/RaceDistanceDropdown.js | kristenkinnearohlmann/race-stats-tracker | 7c166104b7f121e851aafd7ca5ef3e1d904babe3 | [
"MIT"
] | null | null | null | frontend/src/components/RaceDistanceDropdown.js | kristenkinnearohlmann/race-stats-tracker | 7c166104b7f121e851aafd7ca5ef3e1d904babe3 | [
"MIT"
] | null | null | null | frontend/src/components/RaceDistanceDropdown.js | kristenkinnearohlmann/race-stats-tracker | 7c166104b7f121e851aafd7ca5ef3e1d904babe3 | [
"MIT"
] | null | null | null | import React from 'react'
import { withRouter } from 'react-router-dom'
import './RaceDistanceDropdown.css'
const RaceDistanceDropdown = ({ match, location, history, raceDistances, distanceChoice, currentUserId, fetchRacesByDistance }) => {
const handleOnChange = event => {
fetchRacesByDistance({raceD... | 38.428571 | 136 | 0.604089 |
1a6148f053ba1399703a8bfbe110bc3cf3bbbb8d | 12,449 | js | JavaScript | src/store/sagas.js | vijayasankar/ML2.0 | 8715949b3c99527a7d2685563e0e832909feec86 | [
"MIT"
] | null | null | null | src/store/sagas.js | vijayasankar/ML2.0 | 8715949b3c99527a7d2685563e0e832909feec86 | [
"MIT"
] | null | null | null | src/store/sagas.js | vijayasankar/ML2.0 | 8715949b3c99527a7d2685563e0e832909feec86 | [
"MIT"
] | null | null | null | import * as actions from 'modules/actions'
import * as constants from 'modules/constants'
import apiRequest from 'utils/request'
import config from 'utils/env'
import find from 'ramda/src/find'
import oidcUserManager from 'utils/oidcUserManager'
import propEq from 'ramda/src/propEq'
import { all, call, fork, put, selec... | 33.645946 | 118 | 0.678448 |
1a619b22388095f004bf868b682bb2acd2e744d6 | 7,018 | js | JavaScript | node_modules/@react-pdf-viewer/attachment/lib/cjs/attachment.js | sooftware/sooftware.io | f944f28339c73dd90adea6cc81e27d3ead598af4 | [
"MIT"
] | 8 | 2021-09-20T13:25:37.000Z | 2022-01-02T06:59:10.000Z | frontend/src/main/frontend/node_modules/@react-pdf-viewer/attachment/lib/cjs/attachment.js | johnojacob99/CSC480-21F | ca56ae0091470cd768078a54bb7a177a30ecf358 | [
"MIT"
] | null | null | null | frontend/src/main/frontend/node_modules/@react-pdf-viewer/attachment/lib/cjs/attachment.js | johnojacob99/CSC480-21F | ca56ae0091470cd768078a54bb7a177a30ecf358 | [
"MIT"
] | null | null | null | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var core = require('@react-pdf-viewer/core');
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
... | 42.023952 | 361 | 0.60872 |
1a6225665ccdabe8f2e799d593698f78c770bf93 | 1,479 | js | JavaScript | payment/coinbase/coinbase.controller.js | Miluxas/nodeRbcBase___V1 | 8d726a096c44c7870646f9cec101e6e2f1204545 | [
"MIT"
] | null | null | null | payment/coinbase/coinbase.controller.js | Miluxas/nodeRbcBase___V1 | 8d726a096c44c7870646f9cec101e6e2f1204545 | [
"MIT"
] | 3 | 2021-10-05T21:55:26.000Z | 2022-02-26T11:04:13.000Z | payment/coinbase/coinbase.controller.js | Miluxas/nodeRbcBase___V1 | 8d726a096c44c7870646f9cec101e6e2f1204545 | [
"MIT"
] | null | null | null | const router = require('express').Router();
const coinbaseService = require('./coinbase.service');
const authorize = require('../../_helpers/authorize')
// routes
router.post('/addPayment', authorize(), addPayment); // add a payment order
router.get('/setPaymentResult', setPaymentResult); ... | 30.8125 | 111 | 0.673428 |
1a625ba5eb17581e57bc0c2e6d2bd8a2bb141207 | 2,779 | js | JavaScript | src/tests/mocks/formattedDataMonitoringTableBySite.js | kc-bclaudel/Sonor | 5cf7e89c2791b9b221301b64cb93e9b0dec097df | [
"MIT"
] | null | null | null | src/tests/mocks/formattedDataMonitoringTableBySite.js | kc-bclaudel/Sonor | 5cf7e89c2791b9b221301b64cb93e9b0dec097df | [
"MIT"
] | 6 | 2020-08-28T13:14:24.000Z | 2022-02-28T02:13:52.000Z | src/tests/mocks/formattedDataMonitoringTableBySite.js | kc-bclaudel/Sonor | 5cf7e89c2791b9b221301b64cb93e9b0dec097df | [
"MIT"
] | 1 | 2020-07-10T14:37:14.000Z | 2020-07-10T14:37:14.000Z | const val = {
"linesDetails": [
{
"completionRate": 0.028846153846153848,
"total": 104,
"notStarted": 20,
"onGoing": 84,
"waitingForIntValidation": 0,
"intValidated": 2,
"demValidated": 4,
"preparingContact": 29,
"atLeastOneContact": 30,
"appointmentTake... | 26.216981 | 50 | 0.548759 |
1a64d5276df2bd2cb5c00bacb85fc7a2b6350f12 | 804 | js | JavaScript | src/pages/index.js | HSLdevcom/dev-documentation | cb26b781fc472fd11599cfcd7d7a51592ee7c4ef | [
"MIT"
] | 1 | 2020-03-23T20:16:14.000Z | 2020-03-23T20:16:14.000Z | src/pages/index.js | HSLdevcom/dev-documentation | cb26b781fc472fd11599cfcd7d7a51592ee7c4ef | [
"MIT"
] | 2 | 2019-10-29T13:30:07.000Z | 2020-11-06T20:16:22.000Z | src/pages/index.js | HSLdevcom/dev-documentation | cb26b781fc472fd11599cfcd7d7a51592ee7c4ef | [
"MIT"
] | null | null | null | import React from "react"
import { graphql, Link } from "gatsby"
import Container from "../components/Container"
import SEO from "../components/SEO"
import Breadcrumbs from "../components/Breadcrumbs"
export default ({ data }) => (
<Container>
<Breadcrumbs />
<SEO pagePath='/' />
<h1>HSL developer docum... | 24.363636 | 142 | 0.584577 |
1a65afac42e70cd30aac4032ec880519c53fc42f | 4,247 | js | JavaScript | lib/commandTree.js | w3-3w/instance-manager | 8360fda67a58b67cd37ee18e388de3010d1c2eb9 | [
"MIT"
] | null | null | null | lib/commandTree.js | w3-3w/instance-manager | 8360fda67a58b67cd37ee18e388de3010d1c2eb9 | [
"MIT"
] | null | null | null | lib/commandTree.js | w3-3w/instance-manager | 8360fda67a58b67cd37ee18e388de3010d1c2eb9 | [
"MIT"
] | null | null | null | 'use strict';
const {
startEC2Instances,
stopEC2Instances,
displayEC2Instances
} = require('./ec2Instance');
const {
startRDSInstances,
stopRDSInstances,
displayRDSInstances
} = require('./rdsInstance');
const {
displayRule,
enableRule,
disableRule,
toggleRule
} = require('./rule');
module.exports ... | 28.695946 | 74 | 0.558512 |
1a65d5747a32a947a80fe83a2af761abf8ead0b6 | 665 | js | JavaScript | public/viewjs/batteryform.js | buster-one/grocy | edb9914f16c1950f365dd35afe32a333affa7dba | [
"MIT"
] | null | null | null | public/viewjs/batteryform.js | buster-one/grocy | edb9914f16c1950f365dd35afe32a333affa7dba | [
"MIT"
] | null | null | null | public/viewjs/batteryform.js | buster-one/grocy | edb9914f16c1950f365dd35afe32a333affa7dba | [
"MIT"
] | null | null | null | $('#save-battery-button').on('click', function(e)
{
e.preventDefault();
if (Grocy.EditMode === 'create')
{
Grocy.Api.Post('add-object/batteries', $('#battery-form').serializeJSON(),
function(result)
{
window.location.href = U('/batteries');
},
function(xhr)
{
console.error(xhr);
}
);
... | 18.472222 | 99 | 0.589474 |
1a664b234ab8a12e6b658d36074445db31f23ee1 | 2,424 | js | JavaScript | descuentos.js | AngieMoya/curso-practico-javaScript | 2cea318510c41f362799c6a38c6bb52b45dbff6b | [
"MIT"
] | 1 | 2021-12-28T16:24:22.000Z | 2021-12-28T16:24:22.000Z | descuentos.js | AngieMoya/curso-practico-javaScript | 2cea318510c41f362799c6a38c6bb52b45dbff6b | [
"MIT"
] | null | null | null | descuentos.js | AngieMoya/curso-practico-javaScript | 2cea318510c41f362799c6a38c6bb52b45dbff6b | [
"MIT"
] | null | null | null | function aplicarDescuento(precio, descuento) {
const descuentoPorcentaje = 100 - descuento;
const precioFinal = (precio * descuentoPorcentaje) / 100;
return precioFinal;
}
function calcularPriceFinal() {
const inputPrice = document.getElementById("inputPrice");
const priceValue = parseInt(inputPrice.value, ... | 29.204819 | 95 | 0.709158 |
1a6695b68dc441d086d1724e7a756875ab9bc88c | 921 | js | JavaScript | backspaceStringCompare.js | ChaseReineke/javascript_algos | 249c7f2d34853f95bf9e3c0d805909f9d32fbd0a | [
"Apache-2.0"
] | null | null | null | backspaceStringCompare.js | ChaseReineke/javascript_algos | 249c7f2d34853f95bf9e3c0d805909f9d32fbd0a | [
"Apache-2.0"
] | null | null | null | backspaceStringCompare.js | ChaseReineke/javascript_algos | 249c7f2d34853f95bf9e3c0d805909f9d32fbd0a | [
"Apache-2.0"
] | null | null | null | function backspaceStringCompare(str1, str2) {
var arr1 = [];
var arr2 = [];
for (var i=0; i<str1.length; i++){
if (str1[i]==="#"){
arr1.pop();
}
else{
arr1.push(str1[i]);
}
}
for (var i=0; i<str2.length; i++){
if (str2[i]==="#"){
... | 24.236842 | 52 | 0.490771 |
1a67b474719c9c6c17f43092b7c1bc054a475d58 | 77 | js | JavaScript | app/server/auth/index.js | waxa/node-restapi-template | c9e79de64150742b690c3f88632f5453cabed0f8 | [
"MIT"
] | null | null | null | app/server/auth/index.js | waxa/node-restapi-template | c9e79de64150742b690c3f88632f5453cabed0f8 | [
"MIT"
] | null | null | null | app/server/auth/index.js | waxa/node-restapi-template | c9e79de64150742b690c3f88632f5453cabed0f8 | [
"MIT"
] | null | null | null | module.exports = {
init: require('./init'),
route: require('./route')
};
| 15.4 | 27 | 0.584416 |
1a680d32de6e03651869f4d953a05fc6d9813ff1 | 2,278 | js | JavaScript | Day11/index.js | AarynSmith/AOC2020 | 9107333a679b6ae364751d7b3d8d0897a6164931 | [
"MIT"
] | null | null | null | Day11/index.js | AarynSmith/AOC2020 | 9107333a679b6ae364751d7b3d8d0897a6164931 | [
"MIT"
] | null | null | null | Day11/index.js | AarynSmith/AOC2020 | 9107333a679b6ae364751d7b3d8d0897a6164931 | [
"MIT"
] | null | null | null | class CellularMap {
constructor(grid, visible = false, tolerance = 4) {
this.Map = grid.map(v => v.split(''));
this.Visible = visible;
this.Tolerance = tolerance;
this.h = this.Map.length;
this.w = this.Map[0].length;
}
copy() {
const newGrid = this.Map.map(v => v.join('')).slice()
ret... | 25.311111 | 76 | 0.440737 |
1a68a0ccc8d5b9ec52bbc881d6ec32d0c27563b2 | 190,846 | js | JavaScript | index.js | ratson/tachyons-in-js | 9ae60d79ea8f472e61714a337edceb5f67d428fc | [
"MIT"
] | null | null | null | index.js | ratson/tachyons-in-js | 9ae60d79ea8f472e61714a337edceb5f67d428fc | [
"MIT"
] | null | null | null | index.js | ratson/tachyons-in-js | 9ae60d79ea8f472e61714a337edceb5f67d428fc | [
"MIT"
] | null | null | null | module.exports = {
"aspect_ratio": {
"height": "0",
"position": "relative"
},
"aspect_ratio__16x9": {
"paddingBottom": "56.25%"
},
"aspect_ratio__9x16": {
"paddingBottom": "177.77%"
},
"aspect_ratio__4x3": {
"paddingBottom": "75%"
},
"aspect_ratio__3x4": {
"paddingBottom": "133... | 22.002075 | 152 | 0.514467 |
1a69527ab42d15fe4143d65cad4c89a284b80361 | 645 | js | JavaScript | play/assets/js/components/character/moveUi.js | nemero/nemero.github.io | 46951b616c85be07cbd8638ea1b44826d6a09d7b | [
"MIT"
] | null | null | null | play/assets/js/components/character/moveUi.js | nemero/nemero.github.io | 46951b616c85be07cbd8638ea1b44826d6a09d7b | [
"MIT"
] | null | null | null | play/assets/js/components/character/moveUi.js | nemero/nemero.github.io | 46951b616c85be07cbd8638ea1b44826d6a09d7b | [
"MIT"
] | null | null | null | Vue.component('moveUi', {
props: ['character'],
template: [
'<div class="move-control">',
'<div class="move-up" @click="move(\'up\')">UP</div>',
'<div class="move-down" @click="move(\'down\')">DOWN</div>',
'<div class="move-left" @click="move(\'left\')">LEFT</div>',
'<div class... | 30.714286 | 71 | 0.522481 |
1a6aea2221239cc8802ed8d44d02e808515f918b | 3,813 | js | JavaScript | scripts/setup/rewards_data.js | propsproject/props-token-distribution | 99b62c302c81d0d2f92d769731c9f494a3e242dd | [
"MIT"
] | 9 | 2018-09-10T06:46:06.000Z | 2020-08-30T20:59:07.000Z | scripts/setup/rewards_data.js | nameToJune/props-token-distribution | 99b62c302c81d0d2f92d769731c9f494a3e242dd | [
"MIT"
] | 4 | 2020-09-04T16:29:54.000Z | 2022-02-12T06:57:54.000Z | scripts/setup/rewards_data.js | nameToJune/props-token-distribution | 99b62c302c81d0d2f92d769731c9f494a3e242dd | [
"MIT"
] | 10 | 2018-10-18T04:51:53.000Z | 2022-02-05T16:36:58.000Z | const Web3 = require('web3');
const zos = require('zos-lib');
// const BigNumber = require('bignumber.js');
const fs = require('fs');
// eslint-disable-next-line prefer-destructuring
const proxyContractABI = require('zos-lib/build/contracts/AdminUpgradeabilityProxy.json');
const propsTokenContractABI = require('../../b... | 44.858824 | 162 | 0.746394 |
1a6c795f3b3694da8366d9ae44a3650cf8e221ed | 245 | js | JavaScript | src/helpers/jwt.js | brandonsueur/api.boilerplate | 1309a5f31070cf6a908be28df230b0dbbb8feaa0 | [
"MIT"
] | null | null | null | src/helpers/jwt.js | brandonsueur/api.boilerplate | 1309a5f31070cf6a908be28df230b0dbbb8feaa0 | [
"MIT"
] | null | null | null | src/helpers/jwt.js | brandonsueur/api.boilerplate | 1309a5f31070cf6a908be28df230b0dbbb8feaa0 | [
"MIT"
] | 1 | 2019-08-18T18:38:28.000Z | 2019-08-18T18:38:28.000Z | import jwt from 'jsonwebtoken'
import config from '../../config/config'
const encode = user => jwt.sign(user, config.app.secret, { expiresIn: 86400 })
const decode = token => jwt.verify(token, config.app.secret)
export {
encode,
decode
}
| 20.416667 | 78 | 0.697959 |
1a6dfe792ca83c8c30e75221bd91789908a7595d | 2,873 | js | JavaScript | app.js | cowunclegit/aquabot | c2e87fac0b9d5c1b79ee4eabeba4d9d24f39ba13 | [
"MIT"
] | null | null | null | app.js | cowunclegit/aquabot | c2e87fac0b9d5c1b79ee4eabeba4d9d24f39ba13 | [
"MIT"
] | null | null | null | app.js | cowunclegit/aquabot | c2e87fac0b9d5c1b79ee4eabeba4d9d24f39ba13 | [
"MIT"
] | null | null | null | require('dotenv').config()
var createError = require('http-errors');
var express = require('express');
var session = require('express-session');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var apiRouter = require... | 22.984 | 71 | 0.632788 |
1a6ebd727e0234609ef3dab5cd65d8751530351b | 386 | js | JavaScript | www/js/components/Title.react.js | sunils34/visualize-aws | 46447077090eb62d274fc16b230e9f22d175871c | [
"MIT"
] | 1 | 2015-02-25T23:52:42.000Z | 2015-02-25T23:52:42.000Z | www/js/components/Title.react.js | sunils34/visualize-aws | 46447077090eb62d274fc16b230e9f22d175871c | [
"MIT"
] | null | null | null | www/js/components/Title.react.js | sunils34/visualize-aws | 46447077090eb62d274fc16b230e9f22d175871c | [
"MIT"
] | null | null | null | var React = require('react');
var ReactPropTypes = React.PropTypes;
var EC2Mixin = require('../mixins/ec2.mixin');
var Title = React.createClass({
mixins:[EC2Mixin],
render: function () {
var allInstances = this.state.instances;
var ec2count = (allInstances) ? allInstances.length: 0;
return (
<ti... | 22.705882 | 59 | 0.660622 |
1a6f61463fa0a94445b94ad819a2b4e17b39c320 | 776 | js | JavaScript | frontend/app/containers/ListPage/actions.js | mgergo90/video-player | 6abbe05ef5cf4bffd72fd4957686de06403a3ed3 | [
"MIT"
] | null | null | null | frontend/app/containers/ListPage/actions.js | mgergo90/video-player | 6abbe05ef5cf4bffd72fd4957686de06403a3ed3 | [
"MIT"
] | null | null | null | frontend/app/containers/ListPage/actions.js | mgergo90/video-player | 6abbe05ef5cf4bffd72fd4957686de06403a3ed3 | [
"MIT"
] | null | null | null | /*
*
* ListPage actions
*
*/
import {
FETCH_PLAYLISTS,
SET_PLAYLISTS,
SAVE_PLAYLIST,
FETCH_PLAYLIST_ITEM,
SET_PLAYLIST_ITEM,
FETCH_VIDEOS,
SET_VIDEOS_LIST,
} from './constants';
export const fetchPlayLists = () => ({
type: FETCH_PLAYLISTS,
});
export const setPlaylists = data => ({
type: SET_PL... | 15.215686 | 61 | 0.67268 |
1a716fe2fe505252ad19a191071db5f3af8ab693 | 330 | js | JavaScript | addon/components/sy-sidenav-list.js | adfinis-sygroup/ember-sy | 649afffd45f7d8d15fbe74e8a2564fa2c594fe16 | [
"MIT"
] | 1 | 2015-08-18T08:01:51.000Z | 2015-08-18T08:01:51.000Z | addon/components/sy-sidenav-list.js | adfinis-sygroup/ember-sy | 649afffd45f7d8d15fbe74e8a2564fa2c594fe16 | [
"MIT"
] | 5 | 2015-12-10T07:23:54.000Z | 2018-07-03T20:17:21.000Z | addon/components/sy-sidenav-list.js | adfinis-sygroup/ember-sy | 649afffd45f7d8d15fbe74e8a2564fa2c594fe16 | [
"MIT"
] | 2 | 2017-09-13T11:34:34.000Z | 2017-10-17T16:03:02.000Z | import Component from "@ember/component";
import layout from "../templates/components/sy-sidenav-list";
const SySidenavList = Component.extend({
layout: layout,
tagName: "ul",
classNames: ["nav-side-list"],
header: null
});
SySidenavList.reopenClass({
positionalParams: ["header"]
});
export default SySid... | 18.333333 | 61 | 0.721212 |
1a71f3e01e9220998e7b63b759d2b4c31ecc97b4 | 999 | js | JavaScript | first-game-v4/js/menu.js | rafaellepalmos/ite445 | 46e718336d635e9a290c9bbecae56e9d4e15ae4f | [
"MIT"
] | null | null | null | first-game-v4/js/menu.js | rafaellepalmos/ite445 | 46e718336d635e9a290c9bbecae56e9d4e15ae4f | [
"MIT"
] | null | null | null | first-game-v4/js/menu.js | rafaellepalmos/ite445 | 46e718336d635e9a290c9bbecae56e9d4e15ae4f | [
"MIT"
] | null | null | null | var menuState = {
create: function() {
game.add.image(0, 0, 'background');//add a background image
//display the name of the game
var nameLabel = game.add.text(game.width/2, 80, 'Super Coin Box', {font: '50px Arial', fill: '#ffffff'});
nameLabel.anchor.setTo(0.5, 0.5);
//show the score at the center of... | 37 | 137 | 0.667668 |
1a73be508c197e0b216baf1d35c37858903de3b6 | 837 | js | JavaScript | lib/instance.js | songodb/songodb-mongo-s3 | 0e27ebf0c05ff72c14a3d820ed73fdf3230465ec | [
"MIT"
] | null | null | null | lib/instance.js | songodb/songodb-mongo-s3 | 0e27ebf0c05ff72c14a3d820ed73fdf3230465ec | [
"MIT"
] | 1 | 2021-05-11T15:16:02.000Z | 2021-05-11T15:16:02.000Z | lib/instance.js | songodb/songodb-mongo-s3 | 0e27ebf0c05ff72c14a3d820ed73fdf3230465ec | [
"MIT"
] | null | null | null | const { Database } = require('./database')
const { listDatabases, destroyInstance } = require('./system')
class Instance {
constructor(s3, name, options) {
this.s3 = s3
this.name = name
this.prefix = `${name}/`
this.options = options || { }
}
checkValidNamespace() {
// No definition yet of ... | 22.026316 | 69 | 0.642772 |
1a74e27d0b68935032d9430091d420f92f11f4f5 | 3,599 | js | JavaScript | packages/wonder-blocks-data/src/util/__tests__/request-handler.test.js | Khan/wonder-blocks | 00e7d0085ec01bcafbea3ed5d85c888460493f19 | [
"MIT"
] | 114 | 2018-03-08T20:22:32.000Z | 2022-03-27T08:30:57.000Z | packages/wonder-blocks-data/src/util/__tests__/request-handler.test.js | Khan/wonder-blocks | 00e7d0085ec01bcafbea3ed5d85c888460493f19 | [
"MIT"
] | 1,337 | 2018-03-08T04:02:28.000Z | 2022-03-31T19:24:52.000Z | packages/wonder-blocks-data/src/util/__tests__/request-handler.test.js | Khan/wonder-blocks | 00e7d0085ec01bcafbea3ed5d85c888460493f19 | [
"MIT"
] | 7 | 2018-04-26T22:52:43.000Z | 2020-11-17T16:07:41.000Z | // @flow
import RequestHandler from "../request-handler.js";
describe("../request-handler.js", () => {
afterEach(() => {
/**
* This is needed or the JSON.stringify mocks need to be
* mockImplementationOnce. This is because if the snapshots need
* to update, they write the inline ... | 29.5 | 79 | 0.498194 |
1a7544998dd9adda622e69b02054c233aa7f2036 | 380 | js | JavaScript | src/screens/root/AuthScreen.js | sadika9/react-admin-app | bd3370b14ae43081e268b04ada96657e8d897715 | [
"MIT"
] | 3 | 2019-04-28T09:01:05.000Z | 2020-01-08T06:27:07.000Z | src/screens/root/AuthScreen.js | sadika9/react-admin-app | bd3370b14ae43081e268b04ada96657e8d897715 | [
"MIT"
] | 6 | 2020-09-04T20:36:51.000Z | 2022-02-26T10:34:12.000Z | src/screens/root/AuthScreen.js | sadika9/react-admin-app | bd3370b14ae43081e268b04ada96657e8d897715 | [
"MIT"
] | 3 | 2019-05-22T10:24:05.000Z | 2019-11-05T21:27:55.000Z | import React from 'react';
import {Switch, Route} from 'react-router-dom';
import PageNotFound from 'components/PageNotFound';
import SignInScreen from 'screens/Auth/SignInScreen';
function AuthScreen() {
return (
<Switch>
<Route path="/auth/sign_in" component={SignInScreen}/>
<Route component={PageN... | 23.75 | 60 | 0.710526 |