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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4dd62958f51c0e9a472416537966b6d3facf77a | 1,248 | js | JavaScript | src/CameraReverse.js | profects/react-ionicons | dc745a6e6b9ff0bec0311040f54deb97b2b1dc91 | [
"Apache-2.0"
] | null | null | null | src/CameraReverse.js | profects/react-ionicons | dc745a6e6b9ff0bec0311040f54deb97b2b1dc91 | [
"Apache-2.0"
] | null | null | null | src/CameraReverse.js | profects/react-ionicons | dc745a6e6b9ff0bec0311040f54deb97b2b1dc91 | [
"Apache-2.0"
] | null | null | null | import React from 'react'
import SvgContainer from './SvgContainer'
const CameraReverse = ({ height = 22, width = 22, style = {}, color = '#000', cssClasses = '', className = '', onClick = () => null }) => {
return (
<SvgContainer
height={height}
width={width}
color={color}
onClick={onCli... | 62.4 | 832 | 0.667468 |
b4ddf08f932966fad54686f0a99ab210a8de0647 | 1,289 | js | JavaScript | pages/examples/nav.js | warashibe/next-dapp-old | d8ae41f0cf46a377c2b67f09780f856809fe1d10 | [
"MIT"
] | null | null | null | pages/examples/nav.js | warashibe/next-dapp-old | d8ae41f0cf46a377c2b67f09780f856809fe1d10 | [
"MIT"
] | 1 | 2021-12-09T01:41:11.000Z | 2021-12-09T01:41:11.000Z | pages/examples/nav.js | warashibe/next-dapp-old | d8ae41f0cf46a377c2b67f09780f856809fe1d10 | [
"MIT"
] | null | null | null | import { Box, Flex, Text, Image, Button } from "rebass"
import R from "ramdam"
import Nav from "nd/nav/Nav"
import bind from "nd/bind"
const icons = [
"cat",
"dog",
"fish",
"spider",
"crow",
"otter",
"dragon",
"dove",
"hippo",
"paw",
"horse",
"frog"
]
export default bind(
props => {
const ... | 19.830769 | 55 | 0.489527 |
b4de78c66a70f3eeaa613cd1a6072db2d5ae9b4d | 10,040 | js | JavaScript | js/scriptNin.js | schlatterca/audio_visual_filters | f375db4c2b98b61171941bd968a6263f62e61200 | [
"CC0-1.0"
] | null | null | null | js/scriptNin.js | schlatterca/audio_visual_filters | f375db4c2b98b61171941bd968a6263f62e61200 | [
"CC0-1.0"
] | null | null | null | js/scriptNin.js | schlatterca/audio_visual_filters | f375db4c2b98b61171941bd968a6263f62e61200 | [
"CC0-1.0"
] | null | null | null | let selFilter, sliderSensitivity, sliderHue, sliderBrightness;
let buttonBN, btnOn = false;
let capture;
var mic, fft;
let bgColor = '#343434';
let bgColorWhite = '#ffffff'; //???
let spectrum;
const scaler = 8;
const scalerMin = 5;
let margin = 30;
function setup() {
createCanvas(780, 666, P2D); //780, 586 + 80px p... | 29.616519 | 158 | 0.594323 |
b4df15512a0ebc42db4a8b1927d44ac61a6bf340 | 7,315 | js | JavaScript | node_modules/bluzelle/test/multiclient.test.js | ApolloMuses/verif_id | 4c2782c0b95a1f569066b11d33c67005bc5e95c5 | [
"MIT"
] | null | null | null | node_modules/bluzelle/test/multiclient.test.js | ApolloMuses/verif_id | 4c2782c0b95a1f569066b11d33c67005bc5e95c5 | [
"MIT"
] | null | null | null | node_modules/bluzelle/test/multiclient.test.js | ApolloMuses/verif_id | 4c2782c0b95a1f569066b11d33c67005bc5e95c5 | [
"MIT"
] | null | null | null | const reset = require('./reset');
const assert = require('assert');
const path = require('path');
const api1 = require('../api');
// This enables us to have two copies of the library with seperate state
delete require.cache[path.resolve(__dirname + '/../communication.js')];
delete require.cache[path.resolve(__dirn... | 32.367257 | 97 | 0.47177 |
b4e02689ccc936ad26a3b486963b49ba98b2c47e | 1,165 | js | JavaScript | app/common/create-api.js | YOHO-LAB/bi-dashboard | fa183f80bb1226ed536ea4a57fd072e32d0e6339 | [
"MIT"
] | 7 | 2018-05-31T07:46:26.000Z | 2019-04-15T10:08:18.000Z | app/common/create-api.js | YOHO-LAB/bi-dashboard | fa183f80bb1226ed536ea4a57fd072e32d0e6339 | [
"MIT"
] | 1 | 2018-12-13T02:49:22.000Z | 2018-12-13T02:49:22.000Z | app/common/create-api.js | YOHO-LAB/bi-dashboard | fa183f80bb1226ed536ea4a57fd072e32d0e6339 | [
"MIT"
] | 2 | 2020-07-05T09:36:16.000Z | 2021-03-11T13:23:22.000Z | import axios from 'axios';
import iView from 'iview';
import config from 'config';
import bus from 'utils/bus';
axios.defaults.baseURL = config.axiosBaseUrl;
axios.defaults.responseType = config.axiosResponseType;
axios.defaults.headers = {
'X-Requested-With': 'XMLHttpRequest'
};
const errHandle = ({response}) => {... | 20.803571 | 65 | 0.606867 |
b4e23bc7a7e1088756dadd3a7307e3a7393454d2 | 4,079 | js | JavaScript | src/containers/splitter.js | mrbrirup/htmlUi | 54dcc99c0aaf86b2415131ae7a59d718e46540e1 | [
"MIT"
] | null | null | null | src/containers/splitter.js | mrbrirup/htmlUi | 54dcc99c0aaf86b2415131ae7a59d718e46540e1 | [
"MIT"
] | null | null | null | src/containers/splitter.js | mrbrirup/htmlUi | 54dcc99c0aaf86b2415131ae7a59d718e46540e1 | [
"MIT"
] | null | null | null | class extends HTMLElement {
constructor() {
super();
this._resizeTarget = null;
}
get resizeTarget() {
return this._resizeTarget;
}
set resizeTarget(value) {
console.log(value)
this._resizeTarget = value;
}
get direction() {
... | 28.326389 | 115 | 0.580044 |
b4e2b06e0ea0ee4333316f29b0da2e9f23d2eac7 | 1,661 | js | JavaScript | src/containers/search_bar.js | Keggatron/weather_app | 798912d7debbfaeddf6f01f9233a6690efd03203 | [
"MIT"
] | null | null | null | src/containers/search_bar.js | Keggatron/weather_app | 798912d7debbfaeddf6f01f9233a6690efd03203 | [
"MIT"
] | null | null | null | src/containers/search_bar.js | Keggatron/weather_app | 798912d7debbfaeddf6f01f9233a6690efd03203 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: ''};
this.onInputChange = this.onInpu... | 30.759259 | 126 | 0.66466 |
b4e46a09e0c640f6ff0d069913467c181d9114c2 | 1,327 | js | JavaScript | packages/parser/dist/index.js | sparrow-js/mill | 505853253e27511220b196cf7e26ade31cb2409e | [
"MIT"
] | 4 | 2021-10-08T14:53:14.000Z | 2022-02-22T03:10:58.000Z | packages/parser/dist/index.js | sparrow-js/mill | 505853253e27511220b196cf7e26ade31cb2409e | [
"MIT"
] | null | null | null | packages/parser/dist/index.js | sparrow-js/mill | 505853253e27511220b196cf7e26ade31cb2409e | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const htmlparser2_1 = require("htmlparser2");
const Hash = require('object-hash');
const uid_utils_1 = require("./uid-utils");
const existingIDs = new Set();
function default_1(source, fileName) {
let result = '';
const stack = [];
... | 30.860465 | 77 | 0.515448 |
b4e492f87b8d1a20b9cec5da43c4decfc2789784 | 1,228 | js | JavaScript | public/javascripts/Controller.js | mluciacaicedo/Taller1 | 236175ecb95be8a59dc37a89dbf5bd2c4a7794ba | [
"MIT"
] | null | null | null | public/javascripts/Controller.js | mluciacaicedo/Taller1 | 236175ecb95be8a59dc37a89dbf5bd2c4a7794ba | [
"MIT"
] | null | null | null | public/javascripts/Controller.js | mluciacaicedo/Taller1 | 236175ecb95be8a59dc37a89dbf5bd2c4a7794ba | [
"MIT"
] | null | null | null | var app= angular.module('taller1', ['ngMessages']);
app.controller('OperacionesController', function($scope) {
$scope.sumar = function() {
$scope.resultado = parseInt($scope.numUno) + parseInt($scope.numDos);
};
$scope.restar = function() {
$scope.resultado = parseInt($scope.numUno) - parseInt($s... | 27.909091 | 76 | 0.64658 |
b4e4b580e138b6bd057461c595b19be83b0afa93 | 800 | js | JavaScript | src/components/add-to-calendar-icon.js | samjam48/js-jabber-clone | 0fb786d20064e66bfb63897f569b83ac397381d3 | [
"MIT"
] | 133 | 2015-11-21T15:52:37.000Z | 2021-12-22T21:57:39.000Z | src/components/add-to-calendar-icon.js | samjam48/js-jabber-clone | 0fb786d20064e66bfb63897f569b83ac397381d3 | [
"MIT"
] | 167 | 2015-11-20T18:12:11.000Z | 2020-10-01T19:52:17.000Z | src/components/add-to-calendar-icon.js | samjam48/js-jabber-clone | 0fb786d20064e66bfb63897f569b83ac397381d3 | [
"MIT"
] | 69 | 2015-12-21T21:18:09.000Z | 2022-03-27T13:53:27.000Z | import {PropTypes} from 'react'
import {StyleSheet, css} from 'aphrodite'
import IconLink from './icon-link'
export default AddToCalendarIcon
function AddToCalendarIcon(props) {
if (!props.calendarUrl) {
return <noscript />
}
const {styles} = AddToCalendarIcon
const {calendarUrl, iconStyles, ...forwardPro... | 21.621622 | 58 | 0.68 |
b4e5af90861f40670b40a1a4d7a3911af513d24b | 280 | js | JavaScript | microservices/api/app/imports/db/stories/schema.js | Summys/Retrospect | dc4f4b54796e9f3dfa816ef42a1b9ca0aa09ffcb | [
"MIT"
] | null | null | null | microservices/api/app/imports/db/stories/schema.js | Summys/Retrospect | dc4f4b54796e9f3dfa816ef42a1b9ca0aa09ffcb | [
"MIT"
] | null | null | null | microservices/api/app/imports/db/stories/schema.js | Summys/Retrospect | dc4f4b54796e9f3dfa816ef42a1b9ca0aa09ffcb | [
"MIT"
] | null | null | null | import SimpleSchema from 'simpl-schema';
export default new SimpleSchema({
name: {
type: String
},
description: {
type: String
},
isActive: {
type: Boolean
},
createdAt: {
type: Date,
optional: true
}
}); | 14 | 40 | 0.514286 |
b4e8b47e4e12240c86c44581f7be9c168209fcd4 | 387 | js | JavaScript | client/src/components/Message/Message.js | Aditya239233/Virtual-Consultant | f5404ecf7779a725f3a1003647644a13c2fd4677 | [
"MIT"
] | null | null | null | client/src/components/Message/Message.js | Aditya239233/Virtual-Consultant | f5404ecf7779a725f3a1003647644a13c2fd4677 | [
"MIT"
] | null | null | null | client/src/components/Message/Message.js | Aditya239233/Virtual-Consultant | f5404ecf7779a725f3a1003647644a13c2fd4677 | [
"MIT"
] | 1 | 2022-01-11T13:12:03.000Z | 2022-01-11T13:12:03.000Z | import React from "react";
import "./message.css";
export default function Message(props) {
const messageClass = props.username === props.sender ? "sent" : "received";
return (
<>
<div className={`message ${messageClass}`}>
<img src={"https://api.adorable.io/avatars/23/abott@adorable.png"... | 25.8 | 78 | 0.573643 |
b4e8b513c33be897c597e225036105124aba12fa | 293 | js | JavaScript | app/src/services/api/cities/cities.service.js | iSanchezDev/MERNA | f655dedf3ddb26dca13dc20da20f7d87926b96f6 | [
"MIT"
] | null | null | null | app/src/services/api/cities/cities.service.js | iSanchezDev/MERNA | f655dedf3ddb26dca13dc20da20f7d87926b96f6 | [
"MIT"
] | null | null | null | app/src/services/api/cities/cities.service.js | iSanchezDev/MERNA | f655dedf3ddb26dca13dc20da20f7d87926b96f6 | [
"MIT"
] | null | null | null |
import BaseService from '../base.service';
class CitiesService {
constructor() {
this.baseModuleUrl = '/cities';
}
async getCities(query) {
const url = `${this.baseModuleUrl}/` + (query || '');
return await BaseService.get(url);
}
}
export default new CitiesService;
| 16.277778 | 57 | 0.648464 |
b4eb4259dfa88b5eb37ce7c4e51571be7396eca4 | 483 | js | JavaScript | test/e2e/suites/compute/compute_baremetal_instances/compute_baremetal_instances.pageObject.js | eapodaca/opsconsole-ui | 6d6e09f7a80c43b6e3669f8956346b09d9d8fcc3 | [
"Apache-2.0"
] | 2 | 2020-07-28T22:13:50.000Z | 2020-09-04T16:47:37.000Z | test/e2e/suites/compute/compute_baremetal_instances/compute_baremetal_instances.pageObject.js | eapodaca/opsconsole-ui | 6d6e09f7a80c43b6e3669f8956346b09d9d8fcc3 | [
"Apache-2.0"
] | 2 | 2019-03-26T17:37:46.000Z | 2019-08-14T17:53:54.000Z | test/e2e/suites/compute/compute_baremetal_instances/compute_baremetal_instances.pageObject.js | eapodaca/opsconsole-ui | 6d6e09f7a80c43b6e3669f8956346b09d9d8fcc3 | [
"Apache-2.0"
] | 1 | 2019-03-20T19:36:17.000Z | 2019-03-20T19:36:17.000Z | // (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
// (c) Copyright 2017 SUSE LLC
// Represents the Compute Baremetal Instances page at: /#/compute/baremetal_instances
var HamburgerMenu = require('../../common/hamburger_menu.pageObject.js');
var ComputeBaremetalInstances = function() {
var naviga... | 28.411765 | 85 | 0.743271 |
b4ebb97fb1b16cdf8491571c8f33abb06194de4c | 1,689 | js | JavaScript | main.js | tianchez/tree-calculation-service | aeab8daebf07eb4eb1a7c2ded1065e5e0fcd7152 | [
"MIT"
] | 1 | 2019-06-23T15:47:09.000Z | 2019-06-23T15:47:09.000Z | main.js | tianchez/tree-calculation-service | aeab8daebf07eb4eb1a7c2ded1065e5e0fcd7152 | [
"MIT"
] | null | null | null | main.js | tianchez/tree-calculation-service | aeab8daebf07eb4eb1a7c2ded1065e5e0fcd7152 | [
"MIT"
] | null | null | null | 'use strict';
const express = require('express');
var bodyParser = require('body-parser');
var mongoose = require("mongoose");
var cors = require("cors");
var userService = require('./service/userService');
var treeService = require('./service/treeService');
const config = require('./config');
// Constants
const... | 21.653846 | 79 | 0.60746 |
b4ec0b93aa8142ab456e009ed494e97309c4ffda | 2,511 | js | JavaScript | src/api/sys/dept-type.js | TengChongChong/Easy-RESTful-UI | d23e1ccc947613855869bb21b60212dcd23c83e8 | [
"MIT"
] | 1 | 2021-04-15T05:06:59.000Z | 2021-04-15T05:06:59.000Z | src/api/sys/dept-type.js | TengChongChong/Easy-RESTful-UI | d23e1ccc947613855869bb21b60212dcd23c83e8 | [
"MIT"
] | null | null | null | src/api/sys/dept-type.js | TengChongChong/Easy-RESTful-UI | d23e1ccc947613855869bb21b60212dcd23c83e8 | [
"MIT"
] | null | null | null | import request from '@/utils/request'
import { HTTP_METHOD } from '@/utils/const/http/method'
const baseUrl = '/auth/sys/dept/type/'
/**
* 新增
*
* @param pId 上级 id
*/
export function add (pId) {
return request({
url: `${baseUrl}add/${pId}`,
method: HTTP_METHOD.GET
})
}
/**
* 删除
*
* @param id id
*/
... | 15.404908 | 69 | 0.588212 |
b4ec47f20c2f1d279393dbcb8c46f95dae7c1d50 | 2,815 | js | JavaScript | src/api/nodeList.js | lienlien910130/VueFrontend | 5802dc610fc26ba88a6f6ce00e202fd740f32467 | [
"MIT"
] | null | null | null | src/api/nodeList.js | lienlien910130/VueFrontend | 5802dc610fc26ba88a6f6ce00e202fd740f32467 | [
"MIT"
] | null | null | null | src/api/nodeList.js | lienlien910130/VueFrontend | 5802dc610fc26ba88a6f6ce00e202fd740f32467 | [
"MIT"
] | null | null | null | import req from "./https";
import store from "../store";
const nodeList = {
getUid() {
return store.getters.id;
},
getBid() {
return store.getters.buildingid;
},
//samplenode
apiGetAllSampleNode() {
return req("get", "/CSampleNodeListMgmt/" + this.getBid() + "/a");
},
apiGetSampleNodeSearc... | 22.34127 | 77 | 0.609591 |
b4ed3c322c6c9562b9fb4f9387d6591c7be7aa38 | 5,662 | js | JavaScript | session14_sarthak/custom.js | kahtras/TSQUI | 93aa8858aa9592e81974f7b57b8713cd4f720ef5 | [
"MIT"
] | null | null | null | session14_sarthak/custom.js | kahtras/TSQUI | 93aa8858aa9592e81974f7b57b8713cd4f720ef5 | [
"MIT"
] | null | null | null | session14_sarthak/custom.js | kahtras/TSQUI | 93aa8858aa9592e81974f7b57b8713cd4f720ef5 | [
"MIT"
] | null | null | null | /*function updateUser() {
var firstName = document.getElementById('firstName').value;
var lastName = document.getElementById('lastName').value;
var phone = document.getElementById('lastName').value;
var email = document.getElementById('email').value;
var edit = '<button type="button" onclick=edit(this)><span class="gly... | 34.108434 | 192 | 0.613387 |
b4ede31e7af6fe0f11e4f1b14242f924eabdbb14 | 2,251 | js | JavaScript | Gruntfile.js | digitor/grunt-doktor | a8859539029e01551ec25b3dd63d0a5140d824cb | [
"MIT"
] | null | null | null | Gruntfile.js | digitor/grunt-doktor | a8859539029e01551ec25b3dd63d0a5140d824cb | [
"MIT"
] | null | null | null | Gruntfile.js | digitor/grunt-doktor | a8859539029e01551ec25b3dd63d0a5140d824cb | [
"MIT"
] | null | null | null | 'use strict';
module.exports = function( grunt ) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
,jshint: {
all: [
'Gruntfile.js'
,'tasks/*.js'
],
options: {
jshintrc: '.jshintrc'
},
}
// Uni... | 31.263889 | 127 | 0.477121 |
b4ee840f2fb19724b7591435dd01811e61f58d10 | 205,836 | js | JavaScript | public/js/Models/Persistance/pouchdb.find.js | genecyber/RibbitFlow | bb24561841fc531d48c1f7c74ab5aa2a0428af36 | [
"Apache-2.0"
] | null | null | null | public/js/Models/Persistance/pouchdb.find.js | genecyber/RibbitFlow | bb24561841fc531d48c1f7c74ab5aa2a0428af36 | [
"Apache-2.0"
] | null | null | null | public/js/Models/Persistance/pouchdb.find.js | genecyber/RibbitFlow | bb24561841fc531d48c1f7c74ab5aa2a0428af36 | [
"Apache-2.0"
] | null | null | null | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].export... | 27.569783 | 454 | 0.60418 |
b4ef1df6d90a8d8bb36d0eaa5070b4fe52d378c5 | 2,302 | js | JavaScript | modules/commands/ncovi.js | yu26052001/yu26052001-mirai-project | 07a0712556501cda9dc69964aec67d97583cb4f2 | [
"MIT"
] | null | null | null | modules/commands/ncovi.js | yu26052001/yu26052001-mirai-project | 07a0712556501cda9dc69964aec67d97583cb4f2 | [
"MIT"
] | null | null | null | modules/commands/ncovi.js | yu26052001/yu26052001-mirai-project | 07a0712556501cda9dc69964aec67d97583cb4f2 | [
"MIT"
] | null | null | null | //module cho mấy thằng lười đăng ký api
module.exports.config = {
name: "ncovid",
version: "1.0.0",
hasPermssion: 0,
credits: "JustGon", //Giữ Credit tôn trọng thằng làm ra
description: "Lấy thông tin tình hình dịch covid",
commandCategory: "covid",
usages: "[country]",
cooldowns: 5,
... | 51.155556 | 369 | 0.608601 |
b46e50f85798764405e34c4e40a24a6bc364fae4 | 985 | js | JavaScript | resources/assets/js/forms/http.js | hutchlabs/mimosa | 16fd0da40811bfccb36adc00bd0955ee2fe49c00 | [
"MIT"
] | null | null | null | resources/assets/js/forms/http.js | hutchlabs/mimosa | 16fd0da40811bfccb36adc00bd0955ee2fe49c00 | [
"MIT"
] | null | null | null | resources/assets/js/forms/http.js | hutchlabs/mimosa | 16fd0da40811bfccb36adc00bd0955ee2fe49c00 | [
"MIT"
] | null | null | null | module.exports = {
post: function (uri, form) { return Spark.sendForm('post', uri, form); },
put: function (uri, form) { return Spark.sendForm('put', uri, form); },
delete: function (uri, form) { return Spark.sendForm('delete', uri, form); },
sendForm: function (method, uri, form) {
return ne... | 37.884615 | 115 | 0.517766 |
b46e611d07c797f73e7ff481be5fdfe8aa649d60 | 253 | js | JavaScript | tyadmin_api_cli/antd_full_templates/src/services/editor.js | a24zlab/django-antd-tyadmin | 49797ecbb477b00fc934b774fbc33a4dc23f9d80 | [
"MIT"
] | 325 | 2020-07-26T17:06:37.000Z | 2022-03-31T10:40:54.000Z | tyadmin_api_cli/antd_full_templates/src/services/editor.js | a24zlab/django-antd-tyadmin | 49797ecbb477b00fc934b774fbc33a4dc23f9d80 | [
"MIT"
] | 26 | 2020-07-25T13:05:08.000Z | 2022-03-11T23:15:11.000Z | tyadmin_api_cli/antd_full_templates/src/services/editor.js | a24zlab/django-antd-tyadmin | 49797ecbb477b00fc934b774fbc33a4dc23f9d80 | [
"MIT"
] | 124 | 2020-07-27T04:17:24.000Z | 2022-03-30T16:37:51.000Z | import request from '@/utils/request';
import { buildFileFormData, buildRichEditorFormData } from '@/utils/utils';
export async function richEditUpload(params) {
return request('/api/xadmin/v1/upload', {
method: 'POST',
data: params,
});
}
| 25.3 | 75 | 0.703557 |
b46f6d2d03b61ce1fb2267776a8c812a616a6314 | 2,087 | js | JavaScript | js/components/navbar.js | tolgaerdonmez/hackathon-website | aa28c2ee430ead3fcbca28edf70c5061b092d816 | [
"MIT"
] | 1 | 2021-04-24T09:55:48.000Z | 2021-04-24T09:55:48.000Z | js/components/navbar.js | tolgaerdonmez/hackathon-website | aa28c2ee430ead3fcbca28edf70c5061b092d816 | [
"MIT"
] | 3 | 2021-05-11T03:20:02.000Z | 2022-02-18T20:32:06.000Z | js/components/navbar.js | tolgaerdonmez/hackathon-website | aa28c2ee430ead3fcbca28edf70c5061b092d816 | [
"MIT"
] | null | null | null | import GenModal from "./modal";
import React from "react";
const ApplyModal = ({ index }) => (
<GenModal index={index} title="Başvur!" content="Başvuruları yakında açacağız!" buttonTitle="Tamam" />
);
export default class Navbar extends React.Component {
constructor(props) {
super(props);
}
componentDidMount()... | 25.144578 | 103 | 0.541926 |
b470545cac069183bde1a99beaf7db1572cc2c66 | 952 | js | JavaScript | index.js | alvarocastro/wow-realm-status-cli | e1a8f17e1b5b5fcce849a194b425c3e56c047eac | [
"MIT"
] | 1 | 2020-10-14T14:06:25.000Z | 2020-10-14T14:06:25.000Z | index.js | alvarocastro/wow-realm-status-cli | e1a8f17e1b5b5fcce849a194b425c3e56c047eac | [
"MIT"
] | 24 | 2020-03-24T19:15:29.000Z | 2022-03-18T20:04:13.000Z | index.js | alvarocastro/wow-realm-status-cli | e1a8f17e1b5b5fcce849a194b425c3e56c047eac | [
"MIT"
] | null | null | null | const placeholdify = require('placeholdify');
const normalizeRealm = function (data) {
return {
name: data.name,
locale: data.locale,
timezone: data.timezone,
status: data.online ? 'online' : 'offline',
type: data.type,
population: data.population
};
};
const filterFields = function (data, fields = []) ... | 17.962264 | 52 | 0.642857 |
b4706f6f0f676449977f78f5908d48cf65bbd89a | 2,957 | js | JavaScript | addon/components/polaris-resource-list/filter-control/filter-value-selector.js | NullVoxPopuli/ember-polaris | cb78d4eeca52eda79fb4efffaea33d410bcb8129 | [
"MIT"
] | null | null | null | addon/components/polaris-resource-list/filter-control/filter-value-selector.js | NullVoxPopuli/ember-polaris | cb78d4eeca52eda79fb4efffaea33d410bcb8129 | [
"MIT"
] | null | null | null | addon/components/polaris-resource-list/filter-control/filter-value-selector.js | NullVoxPopuli/ember-polaris | cb78d4eeca52eda79fb4efffaea33d410bcb8129 | [
"MIT"
] | null | null | null | import Component from '@ember/component';
import { computed, get } from '@ember/object';
import layout from '../../../templates/components/polaris-resource-list/filter-control/filter-value-selector';
export const FilterType = {
Select: 'select',
TextField: 'text_field',
DateSelector: 'date_selector',
};
export ... | 21.427536 | 110 | 0.601623 |
b4732208db0b0e5040af9c5ca2321e7d462a668f | 286 | js | JavaScript | api/events_handlers/_app_mention.js | burak-upstash/slackbot-management-api | ffece541e542b09fb419a6acf4f8b254a87169e2 | [
"MIT"
] | 6 | 2022-03-17T10:26:02.000Z | 2022-03-18T19:45:11.000Z | api/events_handlers/_app_mention.js | upstash/vercel-note-taker-slackbot | dcbf2e082e01bb1df1675c0d9a9bda93fd8d2624 | [
"MIT"
] | 9 | 2022-03-11T11:42:02.000Z | 2022-03-14T11:21:15.000Z | api/events_handlers/_app_mention.js | burak-upstash/slackbot-management-api | ffece541e542b09fb419a6acf4f8b254a87169e2 | [
"MIT"
] | null | null | null | import { postToChannel } from "../_utils"
export async function app_mention(req, res) {
let event = req.body.event
try {
await postToChannel("general", res, `Hi there! Thanks for mentioning me, <@${event.user}>!`)
}
catch (e) {
console.log(e)
}
}
| 20.428571 | 100 | 0.594406 |
b4738c73f710ee42281d7c9c7c02561577bf6817 | 979 | js | JavaScript | scripts/main.js | bfjnaude/bfjnaude.github.io | ceed616e7e9d05ab6178f3d13fe41d53e6ed28c6 | [
"MIT"
] | null | null | null | scripts/main.js | bfjnaude/bfjnaude.github.io | ceed616e7e9d05ab6178f3d13fe41d53e6ed28c6 | [
"MIT"
] | null | null | null | scripts/main.js | bfjnaude/bfjnaude.github.io | ceed616e7e9d05ab6178f3d13fe41d53e6ed28c6 | [
"MIT"
] | null | null | null | var myHeading = document.querySelector('h1');
// myHeading.textContent = 'Hello world!';
// document.querySelector("html").onclick = function() {
// alert('Ouch! Stop poking me!');
// }
var img = document.querySelector('img')
img.onclick = function() {
var src = img.getAttribute('src')
if (src === 'image... | 25.763158 | 60 | 0.656793 |
b474cd3aae804c02eca123be5beafd7aaa6cebbc | 64 | js | JavaScript | src/grabber/index.js | gcazaciuc/react-puppet | b4d0bd3a199912a17b1500873a9c13d2a88b1b92 | [
"MIT"
] | 2 | 2018-08-09T07:04:46.000Z | 2018-08-17T08:58:27.000Z | src/grabber/index.js | gcazaciuc/slice-machine | b4d0bd3a199912a17b1500873a9c13d2a88b1b92 | [
"MIT"
] | null | null | null | src/grabber/index.js | gcazaciuc/slice-machine | b4d0bd3a199912a17b1500873a9c13d2a88b1b92 | [
"MIT"
] | null | null | null | const Grabber = require('./Grabber');
module.exports = Grabber;
| 21.333333 | 37 | 0.71875 |
b47542e3d7dffe1cd426c2507ba9d010868622e3 | 2,506 | js | JavaScript | nginx_doorman/puzzle_static/puzzle.js | mikegagnon/nginx-overload-handler | f5a358cf20be3238c0d5d6ad018117824ddb1c10 | [
"Apache-2.0"
] | 2 | 2018-11-03T04:31:29.000Z | 2020-11-26T12:19:25.000Z | nginx_doorman/puzzle_static/puzzle.js | mikegagnon/nginx-overload-handler | f5a358cf20be3238c0d5d6ad018117824ddb1c10 | [
"Apache-2.0"
] | 1 | 2018-11-03T04:36:52.000Z | 2018-11-03T04:36:52.000Z | nginx_doorman/puzzle_static/puzzle.js | mikegagnon/nginx-overload-handler | f5a358cf20be3238c0d5d6ad018117824ddb1c10 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2012 HellaSec, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 28.157303 | 116 | 0.569034 |
b475ad58fcb2065631d914f544d35ec24a1da688 | 1,673 | js | JavaScript | postgresdb/postgres.js | theofficetroll/service-product-service | 703345e887d0df952676d6adcc8f40af09c5439e | [
"MIT"
] | null | null | null | postgresdb/postgres.js | theofficetroll/service-product-service | 703345e887d0df952676d6adcc8f40af09c5439e | [
"MIT"
] | null | null | null | postgresdb/postgres.js | theofficetroll/service-product-service | 703345e887d0df952676d6adcc8f40af09c5439e | [
"MIT"
] | null | null | null | const Pool = require('pg').Pool;
const products = require('./config.js');
const pool = new Pool (products);
// for testing only
const getAll = (req, res) => {
pool.query ('SELECT * FROM products ORDER BY id ASC', (err, data) => {
if (err) {
throw err;
}
res.status(200).json(data.rows);
})
}
con... | 23.236111 | 117 | 0.569635 |
b475c1ae240229362047f78520a8176b0b21d39f | 909 | js | JavaScript | components/Layout/Layout.js | CharlesSanford/personal-site | 5da2d728b7093c10b09401e1e17b2a0689785e83 | [
"MIT"
] | null | null | null | components/Layout/Layout.js | CharlesSanford/personal-site | 5da2d728b7093c10b09401e1e17b2a0689785e83 | [
"MIT"
] | null | null | null | components/Layout/Layout.js | CharlesSanford/personal-site | 5da2d728b7093c10b09401e1e17b2a0689785e83 | [
"MIT"
] | null | null | null | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { PropTypes }... | 21.642857 | 78 | 0.693069 |
b4769d8c2da34b2906c77ed7fb1c65555e62e4ac | 504 | js | JavaScript | flying-ui/src/locale/index.js | ZhangChengJi/flying | 17f6e7bc250f534a2d1bcf283dee910a9a2c6b79 | [
"Apache-2.0"
] | 6 | 2021-05-21T05:41:38.000Z | 2021-09-12T04:57:11.000Z | flying-ui/src/locale/index.js | ZhangChengJi/Flying | 17f6e7bc250f534a2d1bcf283dee910a9a2c6b79 | [
"Apache-2.0"
] | 4 | 2021-05-20T03:06:26.000Z | 2021-09-17T13:47:36.000Z | flying-ui/src/locale/index.js | ZhangChengJi/Flying | 17f6e7bc250f534a2d1bcf283dee910a9a2c6b79 | [
"Apache-2.0"
] | 1 | 2021-05-29T07:43:49.000Z | 2021-05-29T07:43:49.000Z | import Vue from 'vue';
import VueI18n from "vue-i18n";
import store from '../store';
import enLocale from './en_us'
import zhLocale from './zh_cn'
Vue.use(VueI18n);
if(store.getters.docsite_language===''){
const language= 'en';
store.dispatch("SetLanguage", language)
}
const messages = {
en: {
...en... | 19.384615 | 49 | 0.640873 |
b476b03c412c43775918e61c627089f61ea108d7 | 2,592 | js | JavaScript | crm/lib/lead/util.js | lnceballosz/corteza-ext | 3014c43bec14c121ea959e265420f1b0e0eba2be | [
"Apache-2.0"
] | null | null | null | crm/lib/lead/util.js | lnceballosz/corteza-ext | 3014c43bec14c121ea959e265420f1b0e0eba2be | [
"Apache-2.0"
] | null | null | null | crm/lib/lead/util.js | lnceballosz/corteza-ext | 3014c43bec14c121ea959e265420f1b0e0eba2be | [
"Apache-2.0"
] | null | null | null | // SPDX-FileCopyrightText: 2020, Tomaž Jerman
// SPDX-License-Identifier: Apache-2.0
export async function toAccountContact($record, Compose) {
// Create an account
const acc = await Compose.saveRecord(Compose.makeRecord({
BillingStreet: $record.values.Street,
BillingCity: $record.values.City,
Billing... | 35.506849 | 63 | 0.725694 |
b4770cc977252f87aa5cf9cc6679fd3978cd086e | 894 | js | JavaScript | frontend/admin/routes/extensions/calendar/index.js | Kelvin19891223/TipEx | 470e92b721339beae121d4a5967382744d9e33da | [
"MIT"
] | null | null | null | frontend/admin/routes/extensions/calendar/index.js | Kelvin19891223/TipEx | 470e92b721339beae121d4a5967382744d9e33da | [
"MIT"
] | null | null | null | frontend/admin/routes/extensions/calendar/index.js | Kelvin19891223/TipEx | 470e92b721339beae121d4a5967382744d9e33da | [
"MIT"
] | null | null | null | import React from "react";
import {Redirect, Route, Switch} from "react-router-dom";
import asyncComponent from "admin/util/asyncComponent";
const Calendar = ({match}) => (
<Switch>
<Redirect exact from={`${match.url}/`} to={`${match.url}/basic`}/>
<Route path={`${match.url}/basic`} component={asyncComponen... | 47.052632 | 103 | 0.636465 |
b4777f30d5d924ac01b9ee31090d9b8c72b10d5a | 698 | js | JavaScript | server/utils/sendMail.js | drudv/react-i18n-auth-starter-kit | efd39f9116264b3f67cbb04ea8216a1fe12bf85e | [
"MIT"
] | 1 | 2018-01-18T03:49:14.000Z | 2018-01-18T03:49:14.000Z | server/utils/sendMail.js | drudv/react-i18n-auth-starter-kit | efd39f9116264b3f67cbb04ea8216a1fe12bf85e | [
"MIT"
] | null | null | null | server/utils/sendMail.js | drudv/react-i18n-auth-starter-kit | efd39f9116264b3f67cbb04ea8216a1fe12bf85e | [
"MIT"
] | null | null | null | const nodemailer = require('nodemailer');
module.exports = function sendMail({
serverHost,
serverPort,
serverSecure,
serverUser,
serverPassword,
from,
to,
subject,
text,
}) {
const transporter = nodemailer.createTransport({
host: serverHost,
port: serverPort,
secure: serverSecure,
a... | 17.45 | 56 | 0.595989 |
b47861745bd6a163dbaa05040715420a443dbcd7 | 174 | js | JavaScript | example/example.js | rreusser/glsl-fft | a62f14d16f7d589d1d2deb4fcf67f51b19909ea9 | [
"MIT"
] | 67 | 2017-11-02T20:14:10.000Z | 2022-03-11T18:05:05.000Z | example/example.js | rreusser/glsl-fft | a62f14d16f7d589d1d2deb4fcf67f51b19909ea9 | [
"MIT"
] | null | null | null | example/example.js | rreusser/glsl-fft | a62f14d16f7d589d1d2deb4fcf67f51b19909ea9 | [
"MIT"
] | 11 | 2017-11-09T09:43:42.000Z | 2022-02-05T08:06:03.000Z | var fft = require('../');
console.log(fft({
width: 4,
height: 2,
input: 'a',
ping: 'b',
pong: 'c',
output: 'd',
forward: true,
normalization: 'inverse'
}));
| 13.384615 | 26 | 0.534483 |
b47894f5553ac25ba10389052a015d144f709c6a | 1,179 | js | JavaScript | node_modules/pm2/node_modules/pmx/lib/transaction.js | seyisulu/jghost | 82d5ba44ae064ee158510417a4d0b7df5f669372 | [
"MIT"
] | null | null | null | node_modules/pm2/node_modules/pmx/lib/transaction.js | seyisulu/jghost | 82d5ba44ae064ee158510417a4d0b7df5f669372 | [
"MIT"
] | null | null | null | node_modules/pm2/node_modules/pmx/lib/transaction.js | seyisulu/jghost | 82d5ba44ae064ee158510417a4d0b7df5f669372 | [
"MIT"
] | null | null | null |
var Proxy = require('./utils/proxy.js');
var SimpleHttpWrap = require('./wrapper/simple_http.js');
var Options = require('./pm2_module.js');
var debug = require('debug')('axm:patch');
var Transaction = module.exports = {};
Transaction.http = function(ignore_routes) {
var Module = require('module');
//debu... | 23.117647 | 80 | 0.563189 |
b478b13f6d844c3f4b47fab7d03477094d81a134 | 12,220 | js | JavaScript | docs/cpp/search/variables_14.js | bollhals/or-tools | 87cc5a1cb12d901089de0aab55f7ec50bce2cdfd | [
"Apache-2.0"
] | null | null | null | docs/cpp/search/variables_14.js | bollhals/or-tools | 87cc5a1cb12d901089de0aab55f7ec50bce2cdfd | [
"Apache-2.0"
] | null | null | null | docs/cpp/search/variables_14.js | bollhals/or-tools | 87cc5a1cb12d901089de0aab55f7ec50bce2cdfd | [
"Apache-2.0"
] | null | null | null | var searchData=
[
['tabu_5fsearch_0',['TABU_SEARCH',['../classoperations__research_1_1_local_search_metaheuristic.html#a39bb4fe872d4536162c79c5b85d647f6',1,'operations_research::LocalSearchMetaheuristic']]],
['tail_1',['tail',['../structoperations__research_1_1_blossom_graph_1_1_edge.html#ac244bdf901af2bc171478cbcf... | 197.096774 | 944 | 0.828232 |
b478bbb24c9e9981d5cd9cdb90dc62f6949ebea9 | 344 | js | JavaScript | tasklist/js/mutationObserver.js | tommot348/js-html-experiments | 816a3e7be63e9172568ea125a95a30b43050cdf7 | [
"Unlicense"
] | 1 | 2016-01-08T20:47:45.000Z | 2016-01-08T20:47:45.000Z | tasklist/js/mutationObserver.js | tommot348/js-html-experiments | 816a3e7be63e9172568ea125a95a30b43050cdf7 | [
"Unlicense"
] | null | null | null | tasklist/js/mutationObserver.js | tommot348/js-html-experiments | 816a3e7be63e9172568ea125a95a30b43050cdf7 | [
"Unlicense"
] | null | null | null | "use strict";
/*global MutationObserver,model,document*/
var observer = new MutationObserver(function () {
model.save();
//alert("dom");
});
var taskTable = document.querySelector("#taskTable");
var config = {
attributes: true,
childList: true,
characterData: true,
subtree: true
};
observer.obse... | 22.933333 | 53 | 0.68314 |
b47a7da8de8408f1caa68522bf94478ed5199c13 | 624 | js | JavaScript | lib/templates/util/fileUpload.js | lumen-cms/nuxtjs-graphql-cms | 5b53cc36b45fe6603f9dfb955ee296a83c684ba5 | [
"MIT"
] | 76 | 2018-04-18T02:00:57.000Z | 2021-11-12T10:22:48.000Z | lib/templates/util/fileUpload.js | lumen-cms/nuxtjs-graphql-cms | 5b53cc36b45fe6603f9dfb955ee296a83c684ba5 | [
"MIT"
] | 2 | 2018-10-04T21:03:49.000Z | 2018-10-06T13:58:23.000Z | lib/templates/util/fileUpload.js | lumen-cms/nuxtjs-graphql-cms | 5b53cc36b45fe6603f9dfb955ee296a83c684ba5 | [
"MIT"
] | 7 | 2018-06-16T06:28:16.000Z | 2021-11-12T11:41:34.000Z | /**
* @description file upload for files on graph.cool server
* @param projectId
* @param fileId
* @returns {Promise<any>}
*/
const uploadFile = async (projectId, file) => {
const src = `https://files.graph.cool/${projectId}/${file.secret}`
const fileAsBlob = await fetch(src)
.then(r => r.blob())
const e... | 28.363636 | 85 | 0.669872 |
b47a8351fff4b76677f9e9e729762bc8336a9a71 | 382 | js | JavaScript | src/ApiController/Controller.js | MotleyWildside/meeting-schedule-front | 46b79294cdb7148a03bbafa01b87278ea97c5cfe | [
"MIT"
] | null | null | null | src/ApiController/Controller.js | MotleyWildside/meeting-schedule-front | 46b79294cdb7148a03bbafa01b87278ea97c5cfe | [
"MIT"
] | 6 | 2021-03-10T21:27:45.000Z | 2022-02-27T06:15:43.000Z | src/ApiController/Controller.js | MotleyWildside/meeting-schedule-front | 46b79294cdb7148a03bbafa01b87278ea97c5cfe | [
"MIT"
] | null | null | null | import axios from "axios";
export default class Controller {
static url = "http://localhost:8080";
static get(route) {
return axios.get(`${this.url}${route}`);
}
static post(route, body) {
return axios.post(`${this.url}${route}`, body);
}
static delete(route, index) {
... | 21.222222 | 60 | 0.575916 |
b47afa1299c60c0c1ecdd27bb6d4cc5a36f99fb8 | 195 | js | JavaScript | src/utils/parse.js | ayecue/greybel-js | 329bc1539ea1d4ea985b59eb076ee79c6a7d3512 | [
"MIT"
] | 6 | 2021-06-22T15:46:39.000Z | 2022-03-14T10:54:44.000Z | src/utils/parse.js | ayecue/greybel-js | 329bc1539ea1d4ea985b59eb076ee79c6a7d3512 | [
"MIT"
] | 4 | 2021-09-26T18:41:51.000Z | 2022-02-10T21:38:28.000Z | src/utils/parse.js | ayecue/greybel-js | 329bc1539ea1d4ea985b59eb076ee79c6a7d3512 | [
"MIT"
] | null | null | null | const parseJSON = function(obj) {
if (Buffer.isBuffer(obj)) {
obj = obj.toString('utf-8');
}
return JSON.parse(obj);
};
exports.JSON = function(fn) {
return (obj) => fn(parseJSON(obj));
}; | 19.5 | 36 | 0.635897 |
b47bf204ca335018628e6a2bab926664cd1431c0 | 156 | js | JavaScript | config/prod.env.js | LucifraPc/-- | a8fc1851eb46cdafcff822e1d9cbd4d41cbb5d0e | [
"MIT"
] | null | null | null | config/prod.env.js | LucifraPc/-- | a8fc1851eb46cdafcff822e1d9cbd4d41cbb5d0e | [
"MIT"
] | null | null | null | config/prod.env.js | LucifraPc/-- | a8fc1851eb46cdafcff822e1d9cbd4d41cbb5d0e | [
"MIT"
] | null | null | null | 'use strict'
module.exports = {
NODE_ENV: '"production"',
BASE_API: '"http://192.168.3.121:8084/crm/"',
// BASE_API: '"http://crm.lubansoft.com/"',
}
| 22.285714 | 47 | 0.615385 |
b47ccabbcce67562f8d97336f93eec3df192efb2 | 2,889 | js | JavaScript | frontend/node_modules/.pnpm/@rsuite+icon-font@4.0.0/node_modules/@rsuite/icon-font/lib/legacy/PeopleGroup.js | koenw/fullstack-hello | 6a2317b7e6ace4b97134e7cc2bb5b1159b556d78 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-11-26T00:46:16.000Z | 2021-11-27T06:55:57.000Z | frontend/node_modules/.pnpm/@rsuite+icon-font@4.0.0/node_modules/@rsuite/icon-font/lib/legacy/PeopleGroup.js | koenw/fullstack-hello | 6a2317b7e6ace4b97134e7cc2bb5b1159b556d78 | [
"Apache-2.0",
"MIT"
] | 2 | 2022-01-18T13:54:05.000Z | 2022-03-24T01:18:30.000Z | frontend/node_modules/.pnpm/@rsuite+icon-font@4.0.0/node_modules/@rsuite/icon-font/lib/legacy/PeopleGroup.js | koenw/fullstack-hello | 6a2317b7e6ace4b97134e7cc2bb5b1159b556d78 | [
"Apache-2.0",
"MIT"
] | null | null | null | "use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... | 84.970588 | 750 | 0.681551 |
b47cfffa09aa879c93784a0040978a631c66d8c1 | 322 | js | JavaScript | releases/foxxie/v2/commands/moderation/unban.js | FoxxieBot/packages | 058038588048e1906a3a92044424c7ba1e0de15f | [
"MIT"
] | 4 | 2022-03-04T13:08:12.000Z | 2022-03-29T04:52:03.000Z | releases/foxxie/v2/commands/moderation/unban.js | FoxxieBot/packages | 058038588048e1906a3a92044424c7ba1e0de15f | [
"MIT"
] | 155 | 2022-03-04T13:30:22.000Z | 2022-03-30T08:08:48.000Z | releases/foxxie/v2/commands/moderation/unban.js | FoxxieBot/packages | 058038588048e1906a3a92044424c7ba1e0de15f | [
"MIT"
] | 1 | 2022-03-04T13:10:12.000Z | 2022-03-04T13:10:12.000Z | module.exports = {
name: 'ban',
aliases: ['b'],
description: 'Ban a user from the guild so they can no longer return, will also send a message in the log channel if sent and sends a DM to the user banned.',
usage: '[user] (reason)',
guildOnly: true,
permissions: 'BAN_MEMBERS',
execute(client, message, args) {}
}... | 32.2 | 159 | 0.692547 |
b47d1a53f723d2b02f43a728e8beaf1a93ded1b6 | 3,938 | js | JavaScript | js/app/models/Grid.js | RusiPapazov/mines3d | 62f43a2b1249f14a20ab08a6021ae82f80fcfcaa | [
"MIT"
] | null | null | null | js/app/models/Grid.js | RusiPapazov/mines3d | 62f43a2b1249f14a20ab08a6021ae82f80fcfcaa | [
"MIT"
] | null | null | null | js/app/models/Grid.js | RusiPapazov/mines3d | 62f43a2b1249f14a20ab08a6021ae82f80fcfcaa | [
"MIT"
] | null | null | null | /*global define */
define(['./Cell', '../EventListener'], function (Cell, EventListener) {
"use strict";
var Grid = function Grid(o) {
var x, y, z, mines,
cells = [],
that = this,
init = function init() {
var i, j, k, cell;
that
... | 32.816667 | 109 | 0.38903 |
b47dbd7c43b48207faf8fae735902b77554f8ef4 | 3,066 | js | JavaScript | server/controllers/cart.js | DKSadx/Music-shop | 17e654cf0c99696222d4292f0a6a3eb3e90890bf | [
"MIT"
] | null | null | null | server/controllers/cart.js | DKSadx/Music-shop | 17e654cf0c99696222d4292f0a6a3eb3e90890bf | [
"MIT"
] | 3 | 2019-11-11T14:39:59.000Z | 2021-05-10T07:13:29.000Z | server/controllers/cart.js | DKSadx/Music-shop | 17e654cf0c99696222d4292f0a6a3eb3e90890bf | [
"MIT"
] | null | null | null | const User = require('../models/user');
exports.getCart = async (req, res, next) => {
const userId = req.userId;
const user = await User.findById(userId).populate('cart.product');
res.send({ cart: user.cart });
next();
};
exports.getCartSize = async (req, res, next) => {
const userId = req.userId;
const u... | 40.342105 | 136 | 0.66047 |
b47f2082f3aec8d584c3725e7187456548514a4a | 782 | js | JavaScript | src/states/Boot.js | pretentiousgit/paris-night-train | 843ace1f0b2eee4dedfcb8cf690bf9d77621c1fd | [
"MIT"
] | null | null | null | src/states/Boot.js | pretentiousgit/paris-night-train | 843ace1f0b2eee4dedfcb8cf690bf9d77621c1fd | [
"MIT"
] | null | null | null | src/states/Boot.js | pretentiousgit/paris-night-train | 843ace1f0b2eee4dedfcb8cf690bf9d77621c1fd | [
"MIT"
] | null | null | null | import Phaser from 'phaser';
import { AssetLoader } from 'phaser-manifest-loader';
import manifest from '../config.assetManifest';
import kuler from '../util/kuler';
import globals from '../config.globals';
const req = require.context('../assets', true, /.*\.png|json|ttf|woff|woff2|xml|mp3|jpg$/);
export default cla... | 27.928571 | 91 | 0.66624 |
b48117285e68b432a0910b9294e7a2da21f23d1b | 1,360 | js | JavaScript | src/pages/api/tickets/new.js | bendahrooge/helpdesk | 564abb64dd2b80da935f54206aeae7ad6f8aef70 | [
"MIT"
] | null | null | null | src/pages/api/tickets/new.js | bendahrooge/helpdesk | 564abb64dd2b80da935f54206aeae7ad6f8aef70 | [
"MIT"
] | null | null | null | src/pages/api/tickets/new.js | bendahrooge/helpdesk | 564abb64dd2b80da935f54206aeae7ad6f8aef70 | [
"MIT"
] | null | null | null | // Creates a new ticket and a new first coorespance for the ticket
// when a POST request is recieved
import { query } from "../../../../lib/database";
import { getSession } from "next-auth/client";
export default async function NewTicket(req, res) {
const session = await getSession({ req });
if (req.method != "... | 28.93617 | 115 | 0.602941 |
b48140dac571c88420fab59ccf705f8358cbab4b | 622 | js | JavaScript | src/components/WeatherCards.js | jsonzilla/OpenWeatherMap | 8136a83fc408200a8c4b1336a48f69f4503d9c59 | [
"MIT"
] | null | null | null | src/components/WeatherCards.js | jsonzilla/OpenWeatherMap | 8136a83fc408200a8c4b1336a48f69f4503d9c59 | [
"MIT"
] | null | null | null | src/components/WeatherCards.js | jsonzilla/OpenWeatherMap | 8136a83fc408200a8c4b1336a48f69f4503d9c59 | [
"MIT"
] | null | null | null | import React from 'react';
import PropTypes from 'prop-types';
import WeatherCard from './WeatherCard';
class WeatherCards extends React.Component {
render() {
const data_list = this.props.data_list;
data_list.splice(4,100);
return (
<div className="columns is-multiline">
{
Obj... | 23.923077 | 124 | 0.620579 |
b483601afea2429d29b43a4714b13289e933929a | 1,184 | js | JavaScript | Frontend/app/view/form/desc/relations/subject/search/name/NameController.js | Litres/FB3Editor | fd5682f86fbc747562257b8174d3aceaef894602 | [
"BSD-2-Clause"
] | 20 | 2015-04-30T07:13:41.000Z | 2021-07-08T10:31:57.000Z | Frontend/app/view/form/desc/relations/subject/search/name/NameController.js | Litres/FB3Editor | fd5682f86fbc747562257b8174d3aceaef894602 | [
"BSD-2-Clause"
] | null | null | null | Frontend/app/view/form/desc/relations/subject/search/name/NameController.js | Litres/FB3Editor | fd5682f86fbc747562257b8174d3aceaef894602 | [
"BSD-2-Clause"
] | 7 | 2017-05-28T08:56:40.000Z | 2021-04-06T02:06:26.000Z | /**
* Контроллер поискового поля по фамилии.
*
* @author dew1983@mail.ru <Suvorov Andrey M.>
*/
Ext.define(
'FBEditor.view.form.desc.relations.subject.search.name.NameController',
{
extend: 'FBEditor.view.form.desc.searchField.SearchFieldController',
alias: 'controller.form.desc.relations.subject.search.name... | 21.925926 | 72 | 0.659628 |
b483e84e08a3926988d8a0d013eaef10063f0639 | 283,061 | js | JavaScript | statics/p__BuildHistory__ReportList.d2e8eb92.async.js | qyzhg/pity | 163539f39e57f3b72dfebba8dbc7ff1d186e4441 | [
"Apache-2.0"
] | null | null | null | statics/p__BuildHistory__ReportList.d2e8eb92.async.js | qyzhg/pity | 163539f39e57f3b72dfebba8dbc7ff1d186e4441 | [
"Apache-2.0"
] | null | null | null | statics/p__BuildHistory__ReportList.d2e8eb92.async.js | qyzhg/pity | 163539f39e57f3b72dfebba8dbc7ff1d186e4441 | [
"Apache-2.0"
] | null | null | null | (window.webpackJsonp=window.webpackJsonp||[]).push([[17],{"/T/q":function(bt,xe,t){"use strict";var O=t("my5Z");xe.a=O.a},"/wk5":function(bt,xe,t){"use strict";var O=t("ZoKU"),E=t("ckyv"),v=t("kA5J"),p=t("/WoF"),a=t("3bXm"),T=t("vtwr"),o=t("zh7a"),ke=t("zp2r"),H=t("T9Mk"),ae=t.n(H),ue=t("jK+o"),he=t.n(ue),dt=function(_... | 23,588.416667 | 249,025 | 0.697832 |
b483fdc9207abf0823947b43d1e995c5f8119818 | 3,943 | js | JavaScript | tape-stress/index.js | studentIvan/ES6-cool-frontend-build | 607b10f7bf23211faca4947fb04c89326a80e661 | [
"MIT"
] | 3 | 2016-12-29T13:35:06.000Z | 2017-05-03T09:38:21.000Z | tape-stress/index.js | studentIvan/ES6-cool-frontend-build | 607b10f7bf23211faca4947fb04c89326a80e661 | [
"MIT"
] | null | null | null | tape-stress/index.js | studentIvan/ES6-cool-frontend-build | 607b10f7bf23211faca4947fb04c89326a80e661 | [
"MIT"
] | null | null | null | import test from 'tape';
import faker from 'faker';
/**
* StressTest - tape test API runner
* @version 1.0
* @author studentivan.ru
*/
export class StressTest {
/**
* Create and run tape stress test of function
* @param {Function} subject - tested function
* @param {Number=1} [options.runs] - total co... | 32.319672 | 86 | 0.549582 |
b484575c4e9fd5484706cbc914f4f961bdd2d880 | 4,623 | js | JavaScript | public/js/custom.js | Ketanmk/sufarm | aaa9568b3418e0693e7e9b477fb2477ddc98b0e1 | [
"MIT"
] | null | null | null | public/js/custom.js | Ketanmk/sufarm | aaa9568b3418e0693e7e9b477fb2477ddc98b0e1 | [
"MIT"
] | null | null | null | public/js/custom.js | Ketanmk/sufarm | aaa9568b3418e0693e7e9b477fb2477ddc98b0e1 | [
"MIT"
] | null | null | null | /**
* Created by Mohamed Abdelrazek on 01/03/17.
*/
$(function () {
toastr.options = {
"closeButton": true,
"debug": false,
"positionClass": "toast-bottom-left",
"onclick": null,
"showDuration": "0",
"hideDuration": "0",
"timeOut": "5000",
"extended... | 37.585366 | 165 | 0.400606 |
b484cf7a77fd3bfbbf25ab8e9efa50ad4603c6ce | 1,906 | js | JavaScript | packages/dh-dunnhumby/lib/client/templates/dh_post_item.js | Daz2345/dhPulse | 7135e927cd7c8c180f961f2d31a6d09dbe8439e7 | [
"MIT"
] | null | null | null | packages/dh-dunnhumby/lib/client/templates/dh_post_item.js | Daz2345/dhPulse | 7135e927cd7c8c180f961f2d31a6d09dbe8439e7 | [
"MIT"
] | null | null | null | packages/dh-dunnhumby/lib/client/templates/dh_post_item.js | Daz2345/dhPulse | 7135e927cd7c8c180f961f2d31a6d09dbe8439e7 | [
"MIT"
] | null | null | null | // Template.dh_post_item.helpers({
// image: function() {
// if (this.pictureChoice === undefined) {
// this.pictureChoice = getRandom(4);
// var pictures = [
// "http://www.dunnhumby.com/sites/default/files/trends_customer.jpg",
// "http://www.dunnhu... | 37.372549 | 138 | 0.558237 |
b485b0415072f9680c4be4be4d6f5a4cfad5f553 | 2,096 | js | JavaScript | src/templates/find-us.js | stephencookdev/moonfleetguesthouse | f83f998e1a5aba24a6f41c68098b17557d802a7d | [
"MIT"
] | null | null | null | src/templates/find-us.js | stephencookdev/moonfleetguesthouse | f83f998e1a5aba24a6f41c68098b17557d802a7d | [
"MIT"
] | null | null | null | src/templates/find-us.js | stephencookdev/moonfleetguesthouse | f83f998e1a5aba24a6f41c68098b17557d802a7d | [
"MIT"
] | null | null | null | import React from "react";
import PropTypes from "prop-types";
import { graphql } from "gatsby";
import Layout from "../components/layout";
import SectionList, { SectionType } from "../components/section-list";
import styles from "./find-us.module.css";
export const FindUsTemplate = ({
siteMetadata,
preMapSections... | 22.782609 | 77 | 0.633588 |
b4864f15a42fefc5067d359cc2d36442249c921c | 1,346 | js | JavaScript | test/app/blog/posts/posts.component.spec.js | kiswa/SMPLog | ef84804604a8f09f4664188b8fb1925c791da6e5 | [
"MIT"
] | 8 | 2016-03-07T04:38:56.000Z | 2020-03-17T15:10:05.000Z | test/app/blog/posts/posts.component.spec.js | kiswa/SMPLog | ef84804604a8f09f4664188b8fb1925c791da6e5 | [
"MIT"
] | 2 | 2015-08-25T15:32:27.000Z | 2020-10-13T10:23:29.000Z | test/app/blog/posts/posts.component.spec.js | kiswa/SMPLog | ef84804604a8f09f4664188b8fb1925c791da6e5 | [
"MIT"
] | 1 | 2019-03-20T10:19:03.000Z | 2019-03-20T10:19:03.000Z | /* globals expect TitleMock BlogServiceMock */
var path = "../../../../build/blog/posts/",
Posts = require(path + 'posts.component.js').Posts;
require('../blog.service.mock.js');
describe('Posts', () => {
var posts,
route = {
snapshot: {
params: {
slug:... | 25.884615 | 78 | 0.518574 |
b486c2f925869522f19c29685ee17a15c0f276b0 | 2,468 | js | JavaScript | docs/fonts/cjs/icons/CiCdLine.js | boazblake/presenter | 90fa56602a982561fd1b097a7beacfc2c4c819b0 | [
"CC0-1.0"
] | null | null | null | docs/fonts/cjs/icons/CiCdLine.js | boazblake/presenter | 90fa56602a982561fd1b097a7beacfc2c4c819b0 | [
"CC0-1.0"
] | null | null | null | docs/fonts/cjs/icons/CiCdLine.js | boazblake/presenter | 90fa56602a982561fd1b097a7beacfc2c4c819b0 | [
"CC0-1.0"
] | null | null | null | "use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... | 107.304348 | 1,709 | 0.595219 |
b488257d9d84d1934ff03a69da667215b59868e4 | 5,096 | js | JavaScript | test/routes/estudiantes_routes_test.js | hackhit/orcaestra-finanzas | 9c1549bfc1b656b79cbea6c54e50fffd8a7d3cfc | [
"MIT"
] | null | null | null | test/routes/estudiantes_routes_test.js | hackhit/orcaestra-finanzas | 9c1549bfc1b656b79cbea6c54e50fffd8a7d3cfc | [
"MIT"
] | null | null | null | test/routes/estudiantes_routes_test.js | hackhit/orcaestra-finanzas | 9c1549bfc1b656b79cbea6c54e50fffd8a7d3cfc | [
"MIT"
] | 1 | 2020-04-19T04:17:26.000Z | 2020-04-19T04:17:26.000Z | //TEST Imports
require('chai').should();
const request = require('supertest'),
apiPort=3000,
expect=require('chai').expect;
utils=require('../utils');
const addr="/api/estudiantes",
{Estudiante,Pago}=require("../../src/models"),
pd=require('../../src/utils/excel/parseDate');
//App Imports
const mongoose = re... | 28.154696 | 73 | 0.601256 |
b4883972bbf0ccc0557ef528d31d99e5c55b954f | 979 | js | JavaScript | src/App.js | rodolphe37/epitome-v1-react-template | 27175ebcaec1fb7c0bba66ab35d3a4ccc3cd330d | [
"MTLL",
"ADSL"
] | null | null | null | src/App.js | rodolphe37/epitome-v1-react-template | 27175ebcaec1fb7c0bba66ab35d3a4ccc3cd330d | [
"MTLL",
"ADSL"
] | 4 | 2021-09-02T05:36:41.000Z | 2022-02-26T22:43:33.000Z | src/App.js | rodolphe37/epitome-v1-react-template | 27175ebcaec1fb7c0bba66ab35d3a4ccc3cd330d | [
"MTLL",
"ADSL"
] | null | null | null | import React from 'react';
import logo from './logo.svg';
import './App.css';
import PhotoSwapeBackground from './components/PhotoSwipeBackground';
import Footer from './components/Footer';
import Contact from './components/Contact';
import Testimonials from './components/Testimonials';
import Works from './components/... | 25.763158 | 69 | 0.663943 |
b4891b063b4799b52aeb95e5174e08ffdb5aebd7 | 221 | js | JavaScript | time-writer-server/src/get.js | TomaszRewak/TimeWriter | 3de9f2ad34f852a232b6082cff85927267539e3e | [
"MIT"
] | 41 | 2019-01-19T18:46:50.000Z | 2022-02-12T11:37:41.000Z | time-writer-server/src/get.js | TomaszRewak/TimeWriter | 3de9f2ad34f852a232b6082cff85927267539e3e | [
"MIT"
] | null | null | null | time-writer-server/src/get.js | TomaszRewak/TimeWriter | 3de9f2ad34f852a232b6082cff85927267539e3e | [
"MIT"
] | 11 | 2019-01-19T13:42:59.000Z | 2022-03-11T05:24:25.000Z | import documentRepository from './../documents/document-repository'
export default function getDocument(req, res) {
const document = documentRepository.getDocument(req.params.documentId).history;
res.json(document);
} | 31.571429 | 80 | 0.79638 |
b48930b8a9c915ecf29e986a1024e52b6257453b | 896 | js | JavaScript | src/components/Form/Form.Select.stories.js | bonnv79/react-bootstrap-storybook | d1229b3630f93a32cfeae69446d85204d4b2c857 | [
"MIT"
] | null | null | null | src/components/Form/Form.Select.stories.js | bonnv79/react-bootstrap-storybook | d1229b3630f93a32cfeae69446d85204d4b2c857 | [
"MIT"
] | null | null | null | src/components/Form/Form.Select.stories.js | bonnv79/react-bootstrap-storybook | d1229b3630f93a32cfeae69446d85204d4b2c857 | [
"MIT"
] | 2 | 2021-12-22T13:44:54.000Z | 2022-03-15T10:18:18.000Z | import React from 'react';
import { Form } from '../index';
export default {
title: 'components/Form/Select',
component: Form,
argTypes: {},
};
const FormControlTemplate = (args) => {
return (
<Form>
<h3>Select</h3>
<Form.Select aria-label="Default select example">
<option>Open this se... | 21.853659 | 55 | 0.565848 |
b48977781d8628e8e09cd9fd79eff26735829a2a | 560 | js | JavaScript | node_modules/react-toastr/lib/index.js | NabilaRafi/SavingsAccount | 1c3803b378131361a907ddc5ed4f4b9747a35328 | [
"MIT"
] | null | null | null | node_modules/react-toastr/lib/index.js | NabilaRafi/SavingsAccount | 1c3803b378131361a907ddc5ed4f4b9747a35328 | [
"MIT"
] | null | null | null | node_modules/react-toastr/lib/index.js | NabilaRafi/SavingsAccount | 1c3803b378131361a907ddc5ed4f4b9747a35328 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ToastMessage = exports.ToastContainer = undefined;
var _ToastContainer = require("./ToastContainer");
var _ToastContainer2 = _interopRequireDefault(_ToastContainer);
var _ToastMessage = require("./ToastMessage");
var _ToastMessa... | 29.473684 | 95 | 0.782143 |
b48a10096bf5c49f87d09ae2b9984a9a573b33e7 | 1,090 | js | JavaScript | src/main/resources/META-INF/resources/WEB-INF/resources/src/bo/js/app.js | mryapados/neutrino-bo | d027f80040eebc44cdc0237dab889ae7cd8d3f0a | [
"Apache-2.0"
] | null | null | null | src/main/resources/META-INF/resources/WEB-INF/resources/src/bo/js/app.js | mryapados/neutrino-bo | d027f80040eebc44cdc0237dab889ae7cd8d3f0a | [
"Apache-2.0"
] | null | null | null | src/main/resources/META-INF/resources/WEB-INF/resources/src/bo/js/app.js | mryapados/neutrino-bo | d027f80040eebc44cdc0237dab889ae7cd8d3f0a | [
"Apache-2.0"
] | null | null | null | (function() {
var fModule = angular.module('boApp', ['frontServices', 'ui.bootstrap', 'textAngular', 'ngSanitize', 'pascalprecht.translate', 'ngCookies', 'ngResource']);
fModule.config(function($translateProvider) {
var $cookies;
angular.injector(['ngCookies']).invoke(['$cookies', function(_$cookies_) {
$cook... | 23.695652 | 156 | 0.643119 |
b48b7845a7cf27c376c39c5da120e70d041e4374 | 616 | js | JavaScript | scripts/open-comp.js | ALMArchive/create-mcw-app | ad26a073fb8162ef1f00c60d7810681f864a7b59 | [
"MIT"
] | null | null | null | scripts/open-comp.js | ALMArchive/create-mcw-app | ad26a073fb8162ef1f00c60d7810681f864a7b59 | [
"MIT"
] | null | null | null | scripts/open-comp.js | ALMArchive/create-mcw-app | ad26a073fb8162ef1f00c60d7810681f864a7b59 | [
"MIT"
] | null | null | null | const comps = require("./comps.js");
const opn = require('opn');
module.exports = function openComp(arg) {
if (comps.indexOf(arg) !== -1) {
const prefixGIT = "https://github.com/material-components/material-components-web/tree/master/packages/mdc-";
opn(`${prefixGIT}${arg}`, {wait: false});
} else if(arg =... | 38.5 | 113 | 0.670455 |
b48b8165737945881ec64c65ae9455c36272565a | 723 | js | JavaScript | webpack.config.js | amplia-iiot/wiwi-wizard-example | cb73d68da337827252214ae15e7e9b7087e2377d | [
"MIT"
] | null | null | null | webpack.config.js | amplia-iiot/wiwi-wizard-example | cb73d68da337827252214ae15e7e9b7087e2377d | [
"MIT"
] | 2 | 2021-03-09T01:14:32.000Z | 2021-09-01T01:28:06.000Z | webpack.config.js | amplia-iiot/wiwi-wizard-example | cb73d68da337827252214ae15e7e9b7087e2377d | [
"MIT"
] | null | null | null | var webpack = require('webpack');
var path = require('path');
var config = {
entry: {
app: [
'./src/wizard.client.module'
]
},
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.css$|\.less$/,
use: [{
load... | 17.634146 | 65 | 0.488243 |
b48d6e2376f4cc9f02a38c7f268b8695e0593ed2 | 557 | js | JavaScript | src/cars-page.js | algosig/ES6 | 240d43d892951d1907aa86e10aa80ea188f4c447 | [
"Apache-2.0"
] | null | null | null | src/cars-page.js | algosig/ES6 | 240d43d892951d1907aa86e10aa80ea188f4c447 | [
"Apache-2.0"
] | null | null | null | src/cars-page.js | algosig/ES6 | 240d43d892951d1907aa86e10aa80ea188f4c447 | [
"Apache-2.0"
] | null | null | null | import { Page } from './framework/page.js'
import { DataTable } from './ui/data-table.js'
import { application } from './app.js'
export class CarsPage extends Page {
constructor() {
super('Cars')
}
createElement() {
super.createElement()
let headers = 'License Make Model Miles'.sp... | 25.318182 | 68 | 0.594255 |
b48d9bfb3d914fae2d2accbf0ce096ce6d9debb4 | 1,635 | js | JavaScript | src/views/Coommon/DataModal.js | Jamie0810/rca-ui | 0afc71566c598f73eb4b03acb65f73d0142c6a2a | [
"MIT"
] | null | null | null | src/views/Coommon/DataModal.js | Jamie0810/rca-ui | 0afc71566c598f73eb4b03acb65f73d0142c6a2a | [
"MIT"
] | null | null | null | src/views/Coommon/DataModal.js | Jamie0810/rca-ui | 0afc71566c598f73eb4b03acb65f73d0142c6a2a | [
"MIT"
] | null | null | null | import React, {Component, PureComponent} from 'react';
import {Button, Card, CardBody, CardFooter, CardHeader, Modal, ModalBody} from "reactstrap";
class DataModal extends PureComponent {
render () {
let modalBodyClassName = 'modal-card-body-no-footer';
let ModalFooter = null;
if (this.props.confirm) {
... | 32.7 | 107 | 0.533333 |
b48df5f4f495f9df016988a7ebde0786a921788e | 742 | js | JavaScript | app/redux/store/index.js | kieth1205/Kubet_Blockchain | 07681cc294f9260e878ca33e2e4090eb6caf1e22 | [
"MIT"
] | null | null | null | app/redux/store/index.js | kieth1205/Kubet_Blockchain | 07681cc294f9260e878ca33e2e4090eb6caf1e22 | [
"MIT"
] | null | null | null | app/redux/store/index.js | kieth1205/Kubet_Blockchain | 07681cc294f9260e878ca33e2e4090eb6caf1e22 | [
"MIT"
] | null | null | null | import { createStore, applyMiddleware } from 'redux';
import reducers from '../reducers';
import { composeWithDevTools } from 'redux-devtools-extension';
import createSagaMiddleware from 'redux-saga';
import rootSaga from '../sagas';
import Reactotron from '../../debug/ReactotronConfig'
const sagaMonitor = Reactotron.c... | 29.68 | 77 | 0.749326 |
b48e35816185fbcbd756b6083f87a3e80f5f5ef2 | 2,001 | js | JavaScript | tests/middleware_test.js | goliatone/poke-repl | 3b511782c9a9b73c907ec54176bc54b061da383d | [
"MIT"
] | null | null | null | tests/middleware_test.js | goliatone/poke-repl | 3b511782c9a9b73c907ec54176bc54b061da383d | [
"MIT"
] | 16 | 2016-09-07T18:29:14.000Z | 2021-11-01T02:11:27.000Z | tests/middleware_test.js | goliatone/poke-repl | 3b511782c9a9b73c907ec54176bc54b061da383d | [
"MIT"
] | null | null | null | 'use strict';
const test = require('tape');
const sinon = require('sinon');
const Module = require('../lib/middleware');
const NOOP = () => { };
test('Middleware stores middlewares...', (t) => {
const expected = 'middleware-test';
const middleware = new Module();
middleware.addMiddleware(expected);
... | 23.821429 | 86 | 0.583208 |
b48e57eaa125e56e0b510dc4b4bf4ddce520690a | 1,100 | js | JavaScript | src/web/front/utils/stats.js | 007sya/Project2021 | 28c6a88f6b7b84f130c1930815230cc99bdc6d10 | [
"Apache-2.0"
] | 5 | 2021-03-22T12:40:15.000Z | 2021-04-19T08:26:12.000Z | src/web/front/utils/stats.js | angel-langdon/Project2021 | 28c6a88f6b7b84f130c1930815230cc99bdc6d10 | [
"Apache-2.0"
] | null | null | null | src/web/front/utils/stats.js | angel-langdon/Project2021 | 28c6a88f6b7b84f130c1930815230cc99bdc6d10 | [
"Apache-2.0"
] | 3 | 2021-05-26T10:55:17.000Z | 2021-05-27T08:36:37.000Z | import { mean } from "@/utils/dataUtils";
export function rSquared(yPred, yReal) {
let regressionSquaredError = 0;
let totalSquaredError = 0;
let yMean = mean(yReal);
for (let i = 0; i < yPred.length; i++) {
regressionSquaredError += Math.pow(yReal[i] - yPred[i], 2);
totalSquaredError += Math.pow(yReal... | 29.72973 | 74 | 0.660909 |
b48e9e269432a8a5a8df07881571876dbded4a58 | 333 | js | JavaScript | src/errors/CouldNotDeleteError.js | onlfait/smoothie-commands | d15687cd7dd154b55851229b7ab62248dab0580d | [
"MIT"
] | 1 | 2021-02-18T11:52:15.000Z | 2021-02-18T11:52:15.000Z | src/errors/CouldNotDeleteError.js | onlfait/smoothie-commands | d15687cd7dd154b55851229b7ab62248dab0580d | [
"MIT"
] | null | null | null | src/errors/CouldNotDeleteError.js | onlfait/smoothie-commands | d15687cd7dd154b55851229b7ab62248dab0580d | [
"MIT"
] | null | null | null | import CommandError from './CommandError.js'
import { COULD_NOT_DELETE_ERROR } from '../error-types.js'
export default class CouldNotDeleteError extends CommandError {
constructor (what) {
super({
name: 'CouldNotDeleteError',
type: COULD_NOT_DELETE_ERROR,
message: `Could not delete [${what}].`
... | 25.615385 | 63 | 0.690691 |
b48f0188ba64f39ce5dd1d683f75353c7999df9a | 3,728 | js | JavaScript | test/functional/UserController/update.spec.js | Shilza/Shuttle | 0608ff9a8401bb26f3bf95d7358cf6782af716b2 | [
"MIT"
] | 8 | 2019-05-03T21:47:11.000Z | 2021-01-06T18:03:06.000Z | test/functional/UserController/update.spec.js | Shilza/Shuttle | 0608ff9a8401bb26f3bf95d7358cf6782af716b2 | [
"MIT"
] | 5 | 2020-03-15T07:27:40.000Z | 2020-05-02T14:16:43.000Z | test/functional/UserController/update.spec.js | Shilza/Shuttle | 0608ff9a8401bb26f3bf95d7358cf6782af716b2 | [
"MIT"
] | 1 | 2020-03-30T14:06:04.000Z | 2020-03-30T14:06:04.000Z | const SUITE_NAME = "Users update";
const {test, trait} = use('Test/Suite')(SUITE_NAME);
const User = use('App/Models/User');
trait('Test/ApiClient');
trait('Auth/Client');
trait('DatabaseTransactions');
const API_USERS = "api/v1/users";
const ENDPOINT = API_USERS;
test(`${SUITE_NAME} error 401`, async ({client, asse... | 25.360544 | 146 | 0.656921 |
b48f1f6c498ad25042a250f84be7d3474d566910 | 8,021 | js | JavaScript | packages/site/src/components/postCreate/index.js | opensquare-network/collaboration | 90684523186baf8fdbf7ed503a34e544aa02a5eb | [
"Apache-2.0"
] | 3 | 2021-12-16T12:12:05.000Z | 2022-03-03T01:32:29.000Z | packages/site/src/components/postCreate/index.js | opensquare-network/collaboration | 90684523186baf8fdbf7ed503a34e544aa02a5eb | [
"Apache-2.0"
] | 202 | 2021-09-03T09:08:36.000Z | 2022-03-30T08:07:09.000Z | packages/site/src/components/postCreate/index.js | opensquare-network/collaboration | 90684523186baf8fdbf7ed503a34e544aa02a5eb | [
"Apache-2.0"
] | 3 | 2021-11-18T18:53:27.000Z | 2022-03-22T03:14:32.000Z | import styled from "styled-components";
import { useSelector } from "react-redux";
import { useEffect, useState } from "react";
import { useDispatch } from "react-redux";
import Content from "./content";
import Choices from "./choices";
import More from "./more";
import { accountSelector } from "store/reducers/account... | 28.646429 | 114 | 0.594689 |
b492c39f8e6bfd18c9110d6972407095b49bc6f5 | 170,765 | js | JavaScript | tests/cdiscount/out_of_stock_files/ruxitagentjs_A2SVfhqrux_10207210127152629.js | FLouisy/inventory-hunter | c540c384f605468eb10cd9fcf2a08b3a304004a1 | [
"MIT"
] | null | null | null | tests/cdiscount/out_of_stock_files/ruxitagentjs_A2SVfhqrux_10207210127152629.js | FLouisy/inventory-hunter | c540c384f605468eb10cd9fcf2a08b3a304004a1 | [
"MIT"
] | null | null | null | tests/cdiscount/out_of_stock_files/ruxitagentjs_A2SVfhqrux_10207210127152629.js | FLouisy/inventory-hunter | c540c384f605468eb10cd9fcf2a08b3a304004a1 | [
"MIT"
] | null | null | null | /*Copyright and licenses see https://www.dynatrace.com/company/trust-center/customers/reports/*/
(function(){if(typeof window!=="undefined"&&window.setTimeout){window.setTimeout=window.setTimeout;}var Promise=self.Promise||self.dT_&&dT_.prm&&dT_.prm();(function(){function Wa(b,d,g){return"function"===typeof d?(d=void 0... | 509.746269 | 2,109 | 0.648324 |
b492e5586d97a58ad083f779c1f075c3cc42492b | 2,303 | js | JavaScript | candidates-react/src/_actions/admin.actions.js | Azhundev/candidates.app | 3226d9d574a500a10ef8bbe5f16bd297ed20864f | [
"MIT"
] | null | null | null | candidates-react/src/_actions/admin.actions.js | Azhundev/candidates.app | 3226d9d574a500a10ef8bbe5f16bd297ed20864f | [
"MIT"
] | null | null | null | candidates-react/src/_actions/admin.actions.js | Azhundev/candidates.app | 3226d9d574a500a10ef8bbe5f16bd297ed20864f | [
"MIT"
] | null | null | null | import { adminConstants } from '../_constants';
import { adminService } from '../_services';
import { alertActions } from '.';
import { history } from '../_helpers';
export const adminActions = {
addUser,
getAllUsers,
deleteUser
};
function addUser(user) {
return dispatch => {
dispatch(request... | 32.43662 | 94 | 0.557968 |
b493b4a68b665664fa6d55b9ecec8d2bf20fd7d4 | 945 | js | JavaScript | next.config.js | gufranmirza/frontend-starter | 534fcbe1d2c897a03064951f07fd3c5b3e84900a | [
"MIT"
] | null | null | null | next.config.js | gufranmirza/frontend-starter | 534fcbe1d2c897a03064951f07fd3c5b3e84900a | [
"MIT"
] | null | null | null | next.config.js | gufranmirza/frontend-starter | 534fcbe1d2c897a03064951f07fd3c5b3e84900a | [
"MIT"
] | null | null | null | const {
WebpackBundleSizeAnalyzerPlugin,
} = require('webpack-bundle-size-analyzer');
const withSass = require('@zeit/next-sass');
const withLess = require('@zeit/next-less');
const withCSS = require('@zeit/next-css');
const { ANALYZE } = process.env;
module.exports = withCSS({
cssModules: true,
cssLoaderOption... | 23.625 | 80 | 0.555556 |
b493bc3d092e8565d8d759af45d5dbac08bce618 | 11,343 | js | JavaScript | js/scaffold.min.js | SunriseDigital/cs-sdx-web | 8afa9dc6fe05998fee8d832bf4ea0f2983cadff5 | [
"MIT"
] | null | null | null | js/scaffold.min.js | SunriseDigital/cs-sdx-web | 8afa9dc6fe05998fee8d832bf4ea0f2983cadff5 | [
"MIT"
] | null | null | null | js/scaffold.min.js | SunriseDigital/cs-sdx-web | 8afa9dc6fe05998fee8d832bf4ea0f2983cadff5 | [
"MIT"
] | null | null | null | /******/!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}// webpackBootstrap
/******/
var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";n(1),n(3),n(4),n(6),n(7)},function(e,t,n){"use strict"... | 3,781 | 11,148 | 0.699903 |
b4943bd1f450c46ee0bd19c8b2c916e23fad6540 | 3,084 | js | JavaScript | assets/js/script.js | schollsebastian/chmod-integer | 74e88488f5c2c09018ca78e7259800eef8006865 | [
"MIT"
] | null | null | null | assets/js/script.js | schollsebastian/chmod-integer | 74e88488f5c2c09018ca78e7259800eef8006865 | [
"MIT"
] | null | null | null | assets/js/script.js | schollsebastian/chmod-integer | 74e88488f5c2c09018ca78e7259800eef8006865 | [
"MIT"
] | null | null | null | let integer;
let userRead;
let userWrite;
let userExecute;
let groupRead;
let groupWrite;
let groupExecute;
let otherRead;
let otherWrite;
let otherExecute;
window.addEventListener('DOMContentLoaded', _ => {
integer = document.getElementById('integer');
userRead = document.getElementById('user-read');
userWrite ... | 27.052632 | 108 | 0.700389 |
b4945f39254082f602e86d1704934f6619507fd4 | 1,387 | js | JavaScript | www/js/TaskFactory.js | marcelo-ribeiro/fourlists | 9ed4f88e4088e07e3e99d09df9fc7b982b71a9db | [
"MIT"
] | null | null | null | www/js/TaskFactory.js | marcelo-ribeiro/fourlists | 9ed4f88e4088e07e3e99d09df9fc7b982b71a9db | [
"MIT"
] | null | null | null | www/js/TaskFactory.js | marcelo-ribeiro/fourlists | 9ed4f88e4088e07e3e99d09df9fc7b982b71a9db | [
"MIT"
] | null | null | null | (function () {
'use strict';
function TaskFactory( $rootScope, APP_SETTINGS, $firebaseArray ) {
// var priority = 10000000000;
var tasksRef = new Firebase(APP_SETTINGS.FIREBASE_URL).child("tasks");
var query = tasksRef.orderByChild("user_id").equalTo($rootScope.user.id);
var tasks = ... | 21.671875 | 78 | 0.540735 |
b494a85c87324c4eba20325687d98e39d764725f | 3,515 | js | JavaScript | src/js/app/play.js | JakobMe/owlisch | af82140fff5c3793cacd6dfe3efb020eba4d1ca9 | [
"MIT"
] | null | null | null | src/js/app/play.js | JakobMe/owlisch | af82140fff5c3793cacd6dfe3efb020eba4d1ca9 | [
"MIT"
] | null | null | null | src/js/app/play.js | JakobMe/owlisch | af82140fff5c3793cacd6dfe3efb020eba4d1ca9 | [
"MIT"
] | null | null | null | /**
* Ermöglicht das Abspielen von Audio-Dateien im Quiz und im Wörterbuch;
* reagiert auf Klick-Events auf bestimmte Selektoren und spielt eine
* in einem Audio-Tag definierte Audio-Datei ab.
* @author Jakob Metzger <jakob.me@gmail.com>
* @copyright 2016 Jakob Metzger
* @license MIT
* @module Play
*/
var Play ... | 27.677165 | 78 | 0.56074 |
b494bedc1f9456040e7251140acb1a260af1e0f7 | 39 | js | JavaScript | src/client/assets/js/features/test/components/index.js | tsh2/platform-sdk2 | 718660f48ebce52b8eab5e4b304b2353e4feebe7 | [
"MIT"
] | 3 | 2017-01-31T19:15:53.000Z | 2017-05-31T20:49:09.000Z | src/client/assets/js/features/test/components/index.js | tsh2/platform-sdk2 | 718660f48ebce52b8eab5e4b304b2353e4feebe7 | [
"MIT"
] | 12 | 2016-12-13T11:53:19.000Z | 2016-12-13T11:58:07.000Z | src/client/assets/js/features/test/components/index.js | tsh2/platform-sdk2 | 718660f48ebce52b8eab5e4b304b2353e4feebe7 | [
"MIT"
] | 5 | 2017-09-29T08:33:43.000Z | 2018-03-05T01:31:28.000Z | export {default} from './TestManager'; | 39 | 39 | 0.717949 |
b496960b661d62348d5bdcc971f387d3a08aa6dd | 2,259 | js | JavaScript | lib/liquidations.js | hackable/bfx-api-node-models | ae661f72cdfa34c5bcfeacdb2017129b508d189b | [
"MIT"
] | 13 | 2018-10-12T11:41:23.000Z | 2021-05-19T04:35:37.000Z | lib/liquidations.js | hackable/bfx-api-node-models | ae661f72cdfa34c5bcfeacdb2017129b508d189b | [
"MIT"
] | 16 | 2018-11-13T15:01:21.000Z | 2021-08-20T15:49:38.000Z | lib/liquidations.js | hackable/bfx-api-node-models | ae661f72cdfa34c5bcfeacdb2017129b508d189b | [
"MIT"
] | 27 | 2018-08-30T20:08:20.000Z | 2021-08-19T11:16:26.000Z | 'use strict'
const numberValidator = require('./validators/number')
const dateValidator = require('./validators/date')
const amountValidator = require('./validators/amount')
const symbolValidator = require('./validators/symbol')
const priceValidator = require('./validators/price')
const boolValidator = require('./vali... | 25.382022 | 91 | 0.642762 |
b498409aa87462ee93f60062b94e5d8acef9da98 | 563 | js | JavaScript | cypress/integration/validationForms.spec.js | kubzej/cypress-playground-AdminLTE | 056307574c537045749ee57e265fbeb3f08ee611 | [
"MIT"
] | null | null | null | cypress/integration/validationForms.spec.js | kubzej/cypress-playground-AdminLTE | 056307574c537045749ee57e265fbeb3f08ee611 | [
"MIT"
] | null | null | null | cypress/integration/validationForms.spec.js | kubzej/cypress-playground-AdminLTE | 056307574c537045749ee57e265fbeb3f08ee611 | [
"MIT"
] | null | null | null | describe('working with validation formular', () => {
beforeEach(() => {
cy.visit('/pages/forms/validation.html')
})
it('submit empty formular by submit()', () => {
cy.get('form').last().then(form => {
//submit() works only for "form" element
cy.wrap(form).submit()
... | 33.117647 | 77 | 0.539964 |
b4984e52fe75893c436df3abb187994c570648e3 | 1,175 | js | JavaScript | HermesAgent/test.js | hegara/mobigrok | b551938c24e04b32008d2fda04a3cfe48e1f0bb6 | [
"Apache-2.0"
] | null | null | null | HermesAgent/test.js | hegara/mobigrok | b551938c24e04b32008d2fda04a3cfe48e1f0bb6 | [
"Apache-2.0"
] | 1 | 2015-05-13T05:36:56.000Z | 2015-05-13T05:36:56.000Z | HermesAgent/test.js | hegara/mobigrok | b551938c24e04b32008d2fda04a3cfe48e1f0bb6 | [
"Apache-2.0"
] | null | null | null | // producer.js
var zmq = require('zmq')
, readline = require('readline')
, sock_enlist = zmq.socket('push');
sock_enlist.bindSync('tcp://127.0.0.1:3000');
console.log('Enlist queue bound to port 3000');
/*
setInterval(function(){
var value = Math.floor(Math.random()*100);
console.log('sending enlist task o... | 30.921053 | 74 | 0.56 |
b498550fc29f90d2d5d923f84dde20232a59c2f0 | 158 | js | JavaScript | components/grid/mediaQuery.js | snowBoby/kpc | f2ce4db40430a4ea9caae4a8e6cc89cb72ca9453 | [
"MIT"
] | 312 | 2018-04-10T08:12:43.000Z | 2022-03-25T07:01:42.000Z | components/grid/mediaQuery.js | snowBoby/kpc | f2ce4db40430a4ea9caae4a8e6cc89cb72ca9453 | [
"MIT"
] | 669 | 2018-04-12T06:26:08.000Z | 2022-03-15T07:04:38.000Z | components/grid/mediaQuery.js | snowBoby/kpc | f2ce4db40430a4ea9caae4a8e6cc89cb72ca9453 | [
"MIT"
] | 54 | 2018-04-10T08:12:49.000Z | 2021-12-08T01:57:40.000Z | module.exports = {
"smMinWidth": "576px",
"mdMinWidth": "768px",
"lgMinWidth": "992px",
"xlMinWidth": "1200px",
"xxlMinWidth": "1600px"
}
| 19.75 | 27 | 0.575949 |
b499368dc60bf0c4edaa79adb50bf4ad9e59e09d | 3,841 | js | JavaScript | frontend/src/pages/OrderPage.js | Luka-CB/MERN-TechStore | 47aca98f1b2fceefdbafde34e0a083f01a2d5eb2 | [
"MIT"
] | null | null | null | frontend/src/pages/OrderPage.js | Luka-CB/MERN-TechStore | 47aca98f1b2fceefdbafde34e0a083f01a2d5eb2 | [
"MIT"
] | null | null | null | frontend/src/pages/OrderPage.js | Luka-CB/MERN-TechStore | 47aca98f1b2fceefdbafde34e0a083f01a2d5eb2 | [
"MIT"
] | null | null | null | import React, { useEffect } from 'react'
import { Link } from 'react-router-dom'
import { useDispatch, useSelector } from 'react-redux'
import { createOrder } from '../actions/orderActions'
import Meta from '../components/Meta'
const OrderPage = ({ history }) => {
const cart = useSelector((state) => state.cart)
c... | 29.320611 | 76 | 0.501692 |
b499f865bbfeecc1e0f1e5e75b64ebaa60e45e7b | 86,110 | js | JavaScript | examples/SwitchLogin/src/MainPage.js | cyclejs-community/component-combinators | 1ed23619e735cd3976178e4939aaee6f3d477bc3 | [
"MIT"
] | 14 | 2017-09-06T19:05:44.000Z | 2021-03-03T12:33:22.000Z | examples/SwitchLogin/src/MainPage.js | cyclejs-community/component-combinators | 1ed23619e735cd3976178e4939aaee6f3d477bc3 | [
"MIT"
] | null | null | null | examples/SwitchLogin/src/MainPage.js | cyclejs-community/component-combinators | 1ed23619e735cd3976178e4939aaee6f3d477bc3 | [
"MIT"
] | null | null | null | import * as Rx from "rx";
import { DOM_SINK } from "@rxcc/utils"
import { a, div, form, h1, h4, i, img, input, label, option, select } from 'cycle-snabbdom'
import { LOG_OUT } from "../drivers/auth"
import { always } from "ramda"
const $ = Rx.Observable;
export function MainPage(sources, settings) {
const logoutInt... | 29.601238 | 91 | 0.228847 |
b49a0d0a717f0efb4ed557ee1b795d445666c6d0 | 1,347 | js | JavaScript | src/models/user.js | magicnode/yeki | 280004b0be289a1dd7c30a934444e5d4c59e159b | [
"MIT"
] | 1 | 2017-08-28T01:59:39.000Z | 2017-08-28T01:59:39.000Z | src/models/user.js | magicnode/yeki | 280004b0be289a1dd7c30a934444e5d4c59e159b | [
"MIT"
] | null | null | null | src/models/user.js | magicnode/yeki | 280004b0be289a1dd7c30a934444e5d4c59e159b | [
"MIT"
] | null | null | null | import conf from '../../conf'
const db_prefix = conf.db.prefix
/**
* [用户model]
* @param {[type]} sequelize [description]
* @param {[type]} DataTypes [description]
* @return {[type]} [description]
*/
export default function(sequelize, DataTypes) {
const User = sequelize.define('User', {
user_name... | 21.046875 | 47 | 0.558278 |
b49a61e06583fa4ef98cc1d9782bef43e7ae0483 | 7,111 | js | JavaScript | ajax/libs/yui/3.7.0pr2/datatable-sort/datatable-sort-min.js | algolia/cdnjs | a0586b35ac4862680d2e090651acc8ccf44a5dda | [
"MIT"
] | 5 | 2015-02-20T16:11:30.000Z | 2017-05-15T11:50:44.000Z | ajax/libs/yui/3.7.0pr2/datatable-sort/datatable-sort-min.js | algolia/cdnjs | a0586b35ac4862680d2e090651acc8ccf44a5dda | [
"MIT"
] | null | null | null | ajax/libs/yui/3.7.0pr2/datatable-sort/datatable-sort-min.js | algolia/cdnjs | a0586b35ac4862680d2e090651acc8ccf44a5dda | [
"MIT"
] | 4 | 2015-07-14T16:16:05.000Z | 2021-03-10T08:15:54.000Z | YUI.add("datatable-sort",function(Y,NAME){var YLang=Y.Lang,isBoolean=YLang.isBoolean,isString=YLang.isString,isArray=YLang.isArray,isObject=YLang.isObject,toArray=Y.Array,sub=YLang.sub,dirMap={asc:1,desc:-1,1:1,"-1":-1};function Sortable(){}Sortable.ATTRS={sortable:{value:"auto",validator:"_validateSortable"},sortBy:{v... | 7,111 | 7,111 | 0.756996 |
b49a788c5c81c99975793d379dbc9277b4b2ae88 | 90 | js | JavaScript | step-00-no-webpack/modules/e85.js | pvnkumar17/webpack | 5e73b80ea715e8c01fcafafdbde4eb74edf0d624 | [
"MIT"
] | 12 | 2017-04-27T12:55:42.000Z | 2019-03-25T21:01:33.000Z | step-00-no-webpack/modules/e85.js | pvnkumar17/webpack | 5e73b80ea715e8c01fcafafdbde4eb74edf0d624 | [
"MIT"
] | null | null | null | step-00-no-webpack/modules/e85.js | pvnkumar17/webpack | 5e73b80ea715e8c01fcafafdbde4eb74edf0d624 | [
"MIT"
] | 3 | 2018-03-20T09:38:46.000Z | 2019-01-27T16:03:22.000Z | if(!employees) {
employees = [];
}
employees.push({
id:1, name: 'Nell Duncan'
});
| 12.857143 | 29 | 0.555556 |
b49ab875a18f509d245521089666e4c5e3ae21e5 | 3,935 | js | JavaScript | controllers/course.js | Nosenti/CoursesManager | a0196fbe5c57b20885c3222bf4ac163cb0ebdcbc | [
"MIT"
] | null | null | null | controllers/course.js | Nosenti/CoursesManager | a0196fbe5c57b20885c3222bf4ac163cb0ebdcbc | [
"MIT"
] | null | null | null | controllers/course.js | Nosenti/CoursesManager | a0196fbe5c57b20885c3222bf4ac163cb0ebdcbc | [
"MIT"
] | null | null | null | // import student from '../models/student';
// import lecturer from '../models/lecturer';
// import course from '../models/course';
const student = require('../models').student;
const lecturer = require('../models').lecturer;
const course = require('../models').course;
import { courseValiation } from '../middleware/c... | 33.632479 | 101 | 0.410673 |
b49acce1db194278f3c8a13ea673b52897ae70c5 | 686 | js | JavaScript | src/api/project.js | quyuandong/sports_appay_manage_system | 9efb340b584a2577c5a7242b9c4a297c8f81d265 | [
"MIT"
] | 9 | 2020-06-23T00:07:06.000Z | 2022-03-25T03:09:47.000Z | src/api/project.js | quyuandong/sports_appay_manage_system | 9efb340b584a2577c5a7242b9c4a297c8f81d265 | [
"MIT"
] | 4 | 2020-11-30T11:30:12.000Z | 2022-02-27T07:06:01.000Z | src/api/project.js | quyuandong/sports_appay_manage_system | 9efb340b584a2577c5a7242b9c4a297c8f81d265 | [
"MIT"
] | 1 | 2022-03-12T00:11:19.000Z | 2022-03-12T00:11:19.000Z | import { get, post } from '@/utils/http';
const baseUrl = 'api/project'
//添加管理员
export function addProject(params) {
return post(`${baseUrl}/add`,params)
}
//查询所有的管理员
export function getProjectList(params) {
return post(`${baseUrl}/projectList`,params)
}
//更新当前管理员
export function updateProject(params) {
... | 20.176471 | 58 | 0.718659 |
b49b0511c2cc286c6f725b38fccc9668ac751542 | 272 | js | JavaScript | src/server/middlewares/general.middleware.js | father-gregor/capture-bros-site | 59e8061c37287dc2222cf395f1dcdc9c49906368 | [
"MIT"
] | null | null | null | src/server/middlewares/general.middleware.js | father-gregor/capture-bros-site | 59e8061c37287dc2222cf395f1dcdc9c49906368 | [
"MIT"
] | null | null | null | src/server/middlewares/general.middleware.js | father-gregor/capture-bros-site | 59e8061c37287dc2222cf395f1dcdc9c49906368 | [
"MIT"
] | null | null | null | function checkSecureAccess (req, res, next) {
if (process.env.NODE_ENV === 'production' && req.query.testing !== process.env.SECRET_PARAM) {
return res.status(400).send('Secure access denied');
}
next();
}
module.exports = {
checkSecureAccess
};
| 22.666667 | 98 | 0.647059 |
b49c4e2b15ba13cac11151ebc079c39dca1e0ca3 | 1,321 | js | JavaScript | public/js/ajax/lan/ajax_create.js | Nahzual/Lan | 2c84589df93710660476e8fb8cdafa94bc5b6d44 | [
"MIT"
] | null | null | null | public/js/ajax/lan/ajax_create.js | Nahzual/Lan | 2c84589df93710660476e8fb8cdafa94bc5b6d44 | [
"MIT"
] | 1 | 2020-05-20T12:29:01.000Z | 2020-05-20T12:29:01.000Z | public/js/ajax/lan/ajax_create.js | Nahzual/Lan | 2c84589df93710660476e8fb8cdafa94bc5b6d44 | [
"MIT"
] | null | null | null | function sendRequest(e){
e.preventDefault();
fillRoomPlaces(room);
$.ajaxSetup({
headers:{
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: '/lan',
method: 'post',
data: {
name: $('#name').val(),
max_num_registrants: $('#max_num_registrants').val(),
opening_d... | 25.403846 | 76 | 0.598032 |
b49e540a084679cbb982f4fd4126b0bc3c4f7a0a | 559 | js | JavaScript | public/labs/lab_3/script.js | bradleydayhoff/INST377-SP2021 | 2772977615b480f15b34ea01ffecd8c154d9e6f2 | [
"CC0-1.0"
] | null | null | null | public/labs/lab_3/script.js | bradleydayhoff/INST377-SP2021 | 2772977615b480f15b34ea01ffecd8c154d9e6f2 | [
"CC0-1.0"
] | null | null | null | public/labs/lab_3/script.js | bradleydayhoff/INST377-SP2021 | 2772977615b480f15b34ea01ffecd8c154d9e6f2 | [
"CC0-1.0"
] | null | null | null | /* Put your javascript in here */
let width = 130;
let count = 3;
let ulist = carousel.querySelector('ul');
let photos = carousel.querySelectorAll('li');
let position = 0;
carousel.querySelector('.prev').onclick = function() {
position += width * count;
position = Math.min(position, 0)
ulist.style... | 22.36 | 68 | 0.654741 |
b49e8c5995e6963b917db07d2a76eb7ec51461e4 | 495 | js | JavaScript | app/containers/Grandpa/selectors.js | OlegStotsky/eostoolkit | dc020e4129724ff8eb0d918f53222cca8ff25cd3 | [
"MIT"
] | 89 | 2018-06-23T01:58:05.000Z | 2021-12-21T16:08:47.000Z | app/containers/Grandpa/selectors.js | trucnx/eostoolkit | a957b3c81c28d6c484b001173a4dd3d9d80b5a12 | [
"MIT"
] | 44 | 2018-06-23T16:44:15.000Z | 2020-04-19T21:20:27.000Z | app/containers/Grandpa/selectors.js | trucnx/eostoolkit | a957b3c81c28d6c484b001173a4dd3d9d80b5a12 | [
"MIT"
] | 64 | 2018-07-04T05:19:00.000Z | 2021-09-06T14:14:54.000Z | import { createSelector } from 'reselect';
/**
* Direct selector to the delegate state domain
*/
const selectProxyState = state => state.get('Grandpa');
/**
* Other specific selectors
*/
const makeSelectLoading = () => createSelector(selectProxyState, substate => substate.get('loading'));
const makeSelectMiner =... | 29.117647 | 102 | 0.743434 |
b49f3ab88836fb8d987e189a415b31179ce87e71 | 407 | js | JavaScript | src/flux/actions/discover.js | glaskawiec/theBetterMovieDatabase | 9ec5e866a981f058cc64abf4fd98aa91012c1e4f | [
"MIT"
] | null | null | null | src/flux/actions/discover.js | glaskawiec/theBetterMovieDatabase | 9ec5e866a981f058cc64abf4fd98aa91012c1e4f | [
"MIT"
] | null | null | null | src/flux/actions/discover.js | glaskawiec/theBetterMovieDatabase | 9ec5e866a981f058cc64abf4fd98aa91012c1e4f | [
"MIT"
] | null | null | null | import {
DISCOVER_SET_MOVIES,
DISCOVER_SET_OPTIONS,
DISCOVER_SET_PAGINATION,
} from '../actionTypes/discover';
export const discoverSetPagination = pagination => ({
type: DISCOVER_SET_PAGINATION,
pagination,
});
export const discoverSetOptions = options => ({
type: DISCOVER_SET_OPTIONS,
options,
});
ex... | 19.380952 | 53 | 0.737101 |
b49f58e4a4c1eeb335abbb6ad968d650a2a3615c | 301 | js | JavaScript | src/pages/admin/main.js | liuzane/react-laboratory | aaf26ea498c76344ede4e0caf92a9dfbc47f26ed | [
"MIT"
] | null | null | null | src/pages/admin/main.js | liuzane/react-laboratory | aaf26ea498c76344ede4e0caf92a9dfbc47f26ed | [
"MIT"
] | 2 | 2022-02-14T13:37:15.000Z | 2022-02-27T17:32:04.000Z | src/pages/admin/main.js | liuzane/react-laboratory | aaf26ea498c76344ede4e0caf92a9dfbc47f26ed | [
"MIT"
] | null | null | null | // service worker
import * as serviceWorker from '@/serviceWorker';
// 基础模块
import React from 'react';
import ReactDOM from 'react-dom';
// 全局样式
import '@/styles';
// 入口组件
import Admin from './Admin';
ReactDOM.render(
<Admin />,
document.getElementById('root')
);
serviceWorker.unregister(); | 15.05 | 49 | 0.694352 |