text stringlengths 3 1.05M |
|---|
// @flow
import React from 'react'
import { connect } from 'react-redux'
import findIndex from 'lodash/findIndex'
import type { OnboardingState } from 'reducers/onboarding'
import Breadcrumb from 'components/Breadcrumb'
const mapStateToProps = state => ({
onboarding: state.onboarding,
})
type Props = {
onboard... |
var searchData=
[
['jacobianfactor_2ecpp',['JacobianFactor.cpp',['../a00442.html',1,'']]],
['jacobianfactor_2eh',['JacobianFactor.h',['../a00443.html',1,'']]],
['junctiontree_2dinst_2eh',['JunctionTree-inst.h',['../a00395.html',1,'']]],
['junctiontree_2eh',['JunctionTree.h',['../a00396.html',1,'']]]
];
|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var utils = require('primereact/utils');
var ripple = require('primereact/ripple');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React_... |
from adapters.adapter_with_battery import AdapterWithBattery
from devices.switch.selector_switch import SelectorSwitch
class ZYCT202(AdapterWithBattery):
def __init__(self):
super().__init__()
buttons_count = 6
for btn_index in range(1, buttons_count + 1):
self.devices.append... |
from flask import Flask, render_template, redirect, jsonify, request
import json
import re
app = Flask(__name__)
@app.route('/')
def root():
return
@app.route('/state/<name>', methods=['GET','POST'])
def get_data(name):
with open('static/population.json') as dt:
data = json.load(dt)
return jsonif... |
from ebooklib import epub
import ebooklib
from bs4 import BeautifulSoup
import re
import urllib.request
import ePUBImageGenerator
blacklist = ['[document]', 'noscript', 'header', 'html', 'meta', 'head', 'input', 'script']
def image_support(path):
'''
Doesn't return anything.
Collates all images inside the ... |
'use strict';
const gulp = require('gulp');
const file = require('gulp-file');
const del = require('del');
const path = require('path');
const fs = require('fs');
const { generateComponents } = require('@devextreme-generator/build-helpers');
const { InfernoGenerator } = require('@devextreme-generator/inferno');
const ... |
'use strict';
angular.module('copayApp.controllers').controller('backupController',
function($rootScope, $scope, $timeout, backupService, profileService, isMobile, isCordova, notification, go, gettext) {
this.isSafari = isMobile.Safari();
this.isCordova = isCordova;
this.error = null;
this.success = ... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../../utils/Class');
var EventEmitter = require('eventemitter3');
var Events = require('../events');
/**
* ... |
import gulp from 'gulp';
import paths from './paths';
// Vigila cambios que se produzcan en el cรณdigo y ejecuta las tareas especรญficas
export default () => {
gulp.watch(paths.html,['templates','livereloadHTML']);
gulp.watch([paths.styles.scss],['sass','livereloadHTML']);
gulp.watch([paths.js], ['lint-js','inject... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{578:function(t,s,e){"use strict";e.r(s);var a=e(46),n=Object(a.a)({},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"installation"}},[e("a",{staticClass:"heade... |
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { fromOracle, fromTheme } from 'store/selectors'
import { oracleAnswer, themeChangeAccent } from 'store/actions'
import { sample } from 'lodash'
import { Oracle } from 'components'
const OracleContainer = props =... |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
# Electrum - lightweight Bitcoin client
# Copyright (C) 2011 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights t... |
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0... |
'use strict';
function buildDistanceInWordsLocale() {
var distanceInWordsLocale = {
lessThanXSeconds: {
one: 'manj kot sekunda',
two: 'manj kot 2 sekundi',
three: 'manj kot {{count}} sekunde',
other: 'manj kot {{count}} sekund'
},
xSeconds: {
one: '1 sekunda',
two: '2... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# $Id: filearchiver.py $
# pylint: disable=C0301
"""
A cronjob that compresses logs and other files, moving them to the
g_ksZipFileAreaRootDir storage area.
"""
__copyright__ = \
"""
Copyright (C) 2012-2017 Oracle Corporation
This file is part of VirtualBox Open Source E... |
$(document).ready(function(){
var $btn_publish = $('#btn_publish'); //ๆ้ฎๅๅธ
var $btn_draft = $('#btn_draft'); //ๆ้ฎๆๅญ
var $form = $('#form');
//icheckๅๅงๅ
$('#checkbox1').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue'
}).on('ifChanged', function(e... |
# coding: utf-8
"""
flyteidl/service/admin.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import r... |
function MGDSMapClient() {
var conf = configuration;
this.maplat = conf.map_lat;
this.maplon = conf.map_lon;
this.defaultZoom = conf.defaultZoom;
this.maxzoom = conf.max_zoom;
this.minzoom = conf.min_zoom;
this.mapdiv = conf.default_container;
this.layers = new Array();
this.mtoverl... |
/**
* Copyright IBM Corp. 2017
*
* 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 agreed to in writ... |
import test from 'ava';
import Calculator from '../frontend/js/CalculatorCore';
const calc = new Calculator(['']);
test.beforeEach(() => {
calc.setInputs(['']);
});
test('on 1 input should get an array of ["1"]', (t) => {
calc.addToInputsLogic('1');
t.is(calc.getInputs()[0], '1');
});
test('on 1 and 1 input s... |
var path = require('path')
var webpack = require('webpack')
module.exports = {
context: path.join(__dirname, './app'),
entry: {
jsx: './index.js',
html: './index.html'
},
output: {
path: path.join(__dirname, './dist'),
filename: 'bundle.js'
},
resolve: {
extensions: ['', '.js', '.js... |
/*!
* @websanova/vue-auth v4.1.2
* https://websanova.com/docs/vue-auth
* Released under the MIT License.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.VueAuth=t()}(this,function(){"use strict";return{tokens:["Token-Type",... |
import bodyParser from 'body-parser'
import chalk from 'chalk'
import cors from 'cors'
import dotenv from 'dotenv'
import express from 'express'
import mongoose from 'mongoose'
import passport from 'passport'
import passportService from './services/passport'
import aboutRoute from './routes/aboutRoute'
import indexRo... |
const webpack = require("webpack");
const path = require("path");
const fs = require("fs");
const WebpackBar = require("webpackbar");
const babelRc = fs.readFileSync(path.resolve(__dirname, "../.babelrc"));
const FormatStats = require("./build");
module.exports = (args, name) => {
let source = "";
let env = "produ... |
const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const mongoose = require('mongoose');
const userRoutes = require('./routes/user-routes');
const adminRoutes = require('./routes/admin-routes');
const HttpError = require('./utils/http-error');
const port = 3001;
app.... |
var selectedAPs = getE("selectedAPs");
var selectedClients = getE("selectedClients");
var table = document.getElementsByTagName("table")[0];
var ssidList = document.getElementsByTagName("table")[1];
var saved = getE("saved");
var ssidCounter = getE("ssidCounter");
var ssid = getE("ssid");
var num = getE("num");
var enc... |
"""
The part that deals with merging PDF files into one.
(message handlers)
"""
import logging
from os import listdir
from typing import List
from aiogram import types
from aiogram.dispatcher import FSMContext
from loader import bot, dp, input_path, output_path
from PyPDF2 import PdfFileMerger
from states.all_states ... |
import sys, re, math, time
import numpy as np
#import matplotlib.pyplot as plt
import json
import pickle
import collections
from collections import OrderedDict
#from matplotlib.pyplot import cm
#from keras.preprocessing.sequence import pad_sequences
## ######################## ##
#
# Define CHARSET, CHA... |
# Write results to this file
OUTFILE = 'runs/bro/10KB/src2-tgt1/http-par-noids-iter00500.result.csv'
# Source computers for the request
SOURCE = ['10.0.0.1', '10.0.0.3']
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql)
IDSMODE = 'n... |
/**
* Copyright 2014 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
# -*- coding: utf-8 -*-
'''
Specto Add-on
Copyright (C) 2015 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any l... |
import { GUI } from "three-addons/libs/lil-gui.module.min.js"
class GuiManager {
constructor() {
this.gui = new GUI({ title: 'v6.02 dev' })
this.gui.close()
this.xrFolder = this.gui.addFolder(" X R ")
this.xrFolder.close()
this.materialsFolder = this.gui.addFolder("Materia... |
(function($){function processRawData(plot,series,datapoints){var handlers={square:function(ctx,x,y,radius,shadow){var size=radius*Math.sqrt(Math.PI)/2;ctx.rect(x-size,y-size,size+size,size+size)},diamond:function(ctx,x,y,radius,shadow){var size=radius*Math.sqrt(Math.PI/2);ctx.moveTo(x-size,y);ctx.lineTo(x,y-size);ctx.l... |
/*!
FullCalendar v5.3.2
Docs & License: https://fullcalendar.io/
(c) 2020 Adam Shaw
*/
var FullCalendarDayGrid = (function (exports, common) {
'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy... |
describe('Plague Rat', function() {
integration(function() {
describe('Plague Rat\'s ability', function() {
beforeEach(function() {
this.setupTest({
player1: {
house: 'shadows',
inPlay: ['mighty-tiger', 'dextre']... |
var data = {
"body": "<g fill=\"currentColor\"><path d=\"M21.9 12c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 10.08 21 10s-.2-.25-.31-.37s-.21-.2-.32-.3L20 9l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15a3 3 0 0 0-.41-.09L17.67 8A6 6 0 0 0 6.33 8l-.18.05... |
import json
from telethon.errors import ChatAdminRequiredError
from telethon.sync import TelegramClient
from telethon.tl import functions
from common import logger, config
class SyncTelegramClient:
def __init__(self):
self._client = TelegramClient("session", config["api_id"], config["api_hash"])
de... |
from unittest import mock
from google.appengine.ext import ndb, testbed
from werkzeug.test import Client
from backend.common.consts.event_type import EventType
from backend.common.helpers.event_team_status_helper import EventTeamStatusHelper
from backend.common.helpers.firebase_pusher import FirebasePusher
from backe... |
import React from 'react'
import styled from 'react-emotion'
import {
MDXProvider
} from '@mdx-js/react'
import ThemeProvider from './themeProvider'
import mdxComponents from './mdxComponents'
import Sidebar from './sidebar'
import RightSidebar from './rightSidebar'
const Wrapper = styled( 'div' )
`
display: flex;... |
if (self.CavalryLogger) { CavalryLogger.start_js(["L2zt9"]); }
__d("XLynxAsyncCallbackController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/si/linkclick/ajax_callback/",{lynx_uri:{type:"String"}})}),null);
__d("FBLynxLogging",["AsyncRequest","AsyncResponse","BanzaiODS","XLynxAsyncCallb... |
module.exports = [
"do_all",
"num_correct_in_a_row_2",
"num_correct_in_a_row_10",
"num_correct_in_a_row_3",
"num_correct_in_a_row_5",
"m_of_n",
];
|
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
import { Fragment } from "react";
import Router from "next/router";
import Error from "next/error";
import Loader from "~/components/Loader/Loader";
import { formatPaperSlug } from "~/config/utils";
// Redux
import { PaperActions } from "~/redux/paper";
function Paper(props) {
// TODO: Does this need to be a dynami... |
angular.module('dockm.rest')
.factory('Volume', ['$resource', 'API_ENDPOINT_ENDPOINTS', 'EndpointProvider', function VolumeFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
'use strict';
return $resource(API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/volumes/:id/:action',
{
endpointId: EndpointPro... |
// @flow
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { intlShape } from 'react-intl';
import { get } from 'lodash';
import WalletSendForm from '../../components/wallet/WalletSendForm';
import type { InjectedProps } from '../../types/injectedPropsType';
import globalMe... |
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
... |
'''
The disparate session (Session) is for making requests to multiple locations.
'''
from abc import ABCMeta, abstractmethod
from copy import copy
from functools import partialmethod
from urllib.parse import urlparse, urlunparse
from h11 import RemoteProtocolError
from multio import asynclib
from .cookie_utils imp... |
import { configureStore } from '@reduxjs/toolkit'
import counterReducer from './counterSlice';
export default configureStore({
reducer: {
counter: counterReducer
},
})
|
'use strict';
/*
* @Author: yurui
* @Date: 2021-06-01
*/
module.exports = {
// ๅจๆง่กๆฐๆฎๅบๅ็บงๆถ่ฐ็จ็ๅฝๆฐ๏ผๅๅปบ users ่กจ
up: async (queryInterface, Sequelize) => {
const { INTEGER, DATE, STRING } = Sequelize;
await queryInterface.createTable('users', {
id: {
allowNull: false,
autoIncrement: true,... |
var Buffer = require('buffer').Buffer
var test = require('tape')
var http = require('../..')
test('authentication', function (t) {
http.get({
path: '/auth',
auth: 'TestUser:trustno1'
}, function (res) {
var buffers = []
res.on('end', function () {
t.ok(new Buffer('You\'re in!').equals(Buffer.concat(buff... |
// Data back Explorer
// import Freezeframe from 'freezeframe';
// prepare docs
var DA_doc = "./assets/dist/js/DA_collection.json";
var card_doc = "./assets/dist/js/AIE_card_collection.json";
var DP_doc = "./assets/dist/js/DP_collection.json";
$(document).ready(function() {
loadData(DA_doc, DP_doc, card_doc);
... |
let twoSum = (numbers, target) => {
//assign a left most variable and a right most variable
let left = 0;
let right = numbers.length - 1;
//iterate over array under the condition that left is less than right
while (left < right) {
//establish a current some variable that adds left and right
... |
def isPanagram(string):
string = string.lower()
alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
for letter in string:
try:
alphabet.pop(alphabet.index(letter))
continue
excep... |
import json
import time
import unittest
from app import app, storage, url_scheme_and_hostname
from config import build_requests_session
from data import model
from data.registry_model import registry_model
from data.database import Image, ManifestLegacyImage
from initdb import setup_database_for_testing, finished_data... |
"""FocusSeq2Seq
Copyright (c) 2019-present NAVER Corp.
MIT license
"""
import time
import multiprocessing
import numpy as np
import torch
from utils import bleu, rouge
from utils.tensor_utils import repeat
from utils.data_utils import split_sentences
if torch.cuda.is_available():
device = 'cuda'
else:
devic... |
"use strict";
const fs = require("fs");
const path = require("path");
const Sequelize = require("sequelize");
const basename = path.basename(__filename);
const env = process.env.NODE_ENV || "development";
const config = require(__dirname + "/../config/config.json")[env];
const db = {};
let sequelize;
if (config.use_e... |
!function(t){function e(e){for(var r,a,o=e[0],c=e[1],f=e[2],l=0,p=[];l<o.length;l++)a=o[l],Object.prototype.hasOwnProperty.call(u,a)&&u[a]&&p.push(u[a][0]),u[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);for(s&&s(e);p.length;)p.shift()();return i.push.apply(i,f||[]),n()}function n(){for(var t,e... |
import { withRouter } from 'next/router';
import PropTypes from 'prop-types';
import React from 'react';
import routes from '../../routes';
const defaultRoute = 'policies';
const inputNameMapping = {
policies: 'requirements__req_text__search',
requirements: 'req_text__search',
};
export class Search extends Rea... |
def is_not_empty(s):
return s.strip() != ''
sl = ['a', ' ', ' ', 'b', 'c']
# ์ด ์์, ํจ์ ์ ์๋ ํ์ํ๊ณ , ์๋ ๋ฌธ์ฅ๋ง ๋ด์ ์ด๊ฒ ๋ญ์ง ์ ํํ ์ ์ ์์
print(', '.join(filter(is_not_empty, sl)))
# ๋๋ค์ = ํจ์ ์ ์
print(', '.join(filter(lambda s: s.strip() != '', sl)))
print(', '.join(filter(lambda a: a.strip() != '', sl)))
# ์์ ๋ ๊ฐ์ print๋ฌธ์... |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... |
#!/usr/bin/python3
import sys
class Literal():
def __init__(self, packet):
bin_value = ''
for i in range(0, len(packet), 5):
bin_value += packet[i+1:i+5]
if packet[i] != '1':
if i+5 < len(packet):
self.residual = packet[i+5:]
... |
import matplotlib.pyplot as plt
import matplotlib.markers
hfont = {'fontname':'serif'}
x = [10,50,100,200,300]
az = [6424.927458699188,5256.961421300812,4824.796510406505,4397.427268292684, 4197.789814796751]
ehyy = [2687.6435760975614,703.1398154471545,395.1273873170729,176.83760829268292,96.1307951219512]
sy1 = [59... |
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
class ModuleDocFragment(object):
DOCUMENTATION = """
options:
job_id:
description:
- String identifier of the job.
- Required if P(state) is C(paused) or C(cancelled).
type: str
state:
description:
... |
require('dotenv').config();
const envs = require('envs');
export default class SlackMessage {
constructor() {
let slackNode = require('slack-node');
this.slack = new slackNode();
this.slack.setWebhook(envs('TESTCAFE_SLACK_WEBHOOK', 'http://example.com'));
this.message = [];
... |
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="deep-brats",
version="0.0.1",
author="Nabil Jabareen",
author_email="nabil.jabareen@gmail.com",
description="Deep learning for brats data",
long_description=long_desc... |
var _Symbol$iterator = require("@gerhobbelt/babel-runtime-corejs3/core-js-stable/symbol/iterator");
_Symbol$iterator;
|
import styled from 'styled-components';
const AlternativesForm = styled.form`
label {
&[data-selected="true"] {
background-color: ${({ theme }) => theme.colors.primary};
&[data-status="SUCCESS"] {
background-color: ${({ theme }) => theme.colors.success};
}
&[data-status="E... |
import localStores from './store'
import createConnect from './core/createConnect'
import renderManagement from './core/renderManagement'
import makeCapsule from './capsule/makeCapsule'
import toolsCapsule from './capsule/toolsCapsule'
import States from './store/states'
/**
* @version 1.0.0-alpha.1
* Redity library... |
#!/usr/bin/env node
'use strict';
/*eslint-disable no-console*/
// stdlib
var fs = require('fs');
// 3rd-party
var argparse = require('argparse');
// internal
var yaml = require('..');
////////////////////////////////////////////////////////////////////////////////
var cli = new argparse.ArgumentParser(... |
// @flow
const { sendToLagoonLogs } = require('@lagoon/commons/src/logs');
const { getProject } = require('@lagoon/commons/src/gitlabApi');
const { addProject } = require('@lagoon/commons/src/api');
import type { WebhookRequestData } from '../types';
async function gitlabProjectCreate(webhook: WebhookRequestData) {
... |
const express = require('express')
const google = require('googleapis').google
const youtube = google.youtube({ version: 'v3'})
const OAuth2 = google.auth.OAuth2
const state = require('./state.js')
const fs = require('fs')
async function robot() {
console.log('> [youtube-robot] Starting...')
const content = state.l... |
import React from 'react'
import ReactCountryFlag from 'react-country-flag'
import { formatHotspotName } from '../Hotspots/utils'
import { StatusCircle } from '../Hotspots'
const SearchResultHotspot = ({ name, geocode, status }) => (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
... |
// vue.config.js
module.exports = {
css: {
extract: false
}
}
|
//>>built
define("dijit/form/nls/fr/Textarea",{iframeEditTitle:"zone d'\u00e9dition",iframeFocusTitle:"cadre de la zone d'\u00e9dition"});
//# sourceMappingURL=Textarea.js.map |
//// [tests/cases/compiler/requireOfAnEmptyFile1.ts] ////
//// [requireOfAnEmptyFile1_a.ts]
//requireOfAnEmptyFile1
import fs = require('./requireOfAnEmptyFile1_b');
//// [requireOfAnEmptyFile1_b.ts]
//// [requireOfAnEmptyFile1_b.js]
//// [requireOfAnEmptyFile1_a.js]
"use strict";
//requireOfAnEmptyFile1... |
#!/usr/bin/env python
# https://www.microchip.com/wwwproducts/en/ATSAMD21E18
# import attr
import time
from collections import deque
import numpy as np
# import cv2
from slurm.rate import Rate
from math import pi
import pickle
# from opencv_camera import ThreadedCamera
# from opencv_camera.color_space import ColorSpac... |
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
import '@fortawesome/fontawesome-free/css/all.css'
import '@fortawesome/fontawesome-free/js/all.js'
import TaskList from "./components/TaskList.vue"
import TaskItem from "./components/TaskItem.vue"
Vue.component("task-list", TaskList... |
"use strict";
const express = require("express");
const bearerHandler = require("../auth/bearer.js");
const aclHandler = require("../auth/acl.js");
const dataModules = require("../models");
const router = express.Router();
router.param("model", (req, res, next) => {
const modelName = req.params.model;
if (dataModu... |
import queue
import datetime
class WebsocketProcessor(object):
def __init__(self, redis):
self._qs = []
self._redis = redis
def dumpRedis(self):
redisData = ''
for key in self._redis.scan_iter():
value = self._redis.get(key)
if value is not None:
... |
import { LineSegmentsGeometry } from './LineSegmentsGeometry.js';
class LineGeometry extends LineSegmentsGeometry {
constructor() {
super();
this.type = 'LineGeometry';
}
setPositions( array ) {
// converts [ x1, y1, z1, x2, y2, z2, ... ] to pairs format
var length = array.length - 3;
var points = ... |
class Solution(object):
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
profile = 0
for i in range(1,len(prices)):
if prices[i] > prices[i-1]:
profile += prices[i] - prices[i-1]
return profile
|
from homework.b_in_proc_out.output import multiply_numbers
multiply_numbers(6, 6) |
// reset button?
// add Hue and Hex options
// dark theme?
var diffEls = document.querySelectorAll(".diff__btn");
var diffEl = document.querySelector(".diff__btn.active").innerHTML;
var n = diffEl;
var colorsEl = document.querySelector(".colors");
var colorsBlocks;
var rgbEl = document.querySelector(".rgb");
var stat... |
/**
* SelectBox.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* Creates a new select box control.
*
* @-x-less SelectBox.less
* @class tinymce.ui.SelectBox
... |
import { pick } from "lodash";
import * as types from "./actionTypes";
const initialState = {
commentsById: {},
commentIds: null,
pageCount: 0,
pageLimit: 10,
pageOffset: 0,
pageProjectFilter: [],
pageDocumentFilter: [],
checked: []
};
export default function reduce(state = initialState, action = {}) ... |
module.exports = require('../../../../index'); |
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _extends from"@babel/runtime/helpers/extends";import _defineProperty from"@babel/runtime/helpers/defineProperty";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/... |
import EmailSvg from './email-svg'
describe('@components/email-svg', () => {
it('exports a valid component', () => {
expect(EmailSvg).toBeAComponent()
})
})
|
const fetch = require('node-fetch');
const cookie = require('cookie');
exports.handler = async (event) => {
const {code} = JSON.parse(event.body);
const endpoint = 'https://stackoverflow.com/oauth/access_token/json';
const params = new URLSearchParams();
params.append('client_id', process.env.STACK_C... |
ul.addEventListener('dblclick', function(e){
var rola = e.target.name;
console.log(rola)
ipcRenderer.send("editRolaRequest", rola);
});
|
"""This module contains helper functions and utilities for nelpy."""
__all__ = ['spatial_information',
'frange',
'swap_cols',
'swap_rows',
'pairwise',
'is_sorted',
'linear_merge',
'PrettyDuration',
'ddt_asa',
'get_contig... |
//*******************//
// Karma Test Runner //
//*******************//
var babelrc = JSON.parse(require('fs').readFileSync('.babelrc').toString())
// We use webpack to resolve import/require statements
var webpackConfig = require('./webpack.config.js')
webpackConfig.entry = {}
// inline the source map instead of a s... |
import torch
from tqdm import tqdm
import torch.nn as nn
import torch.optim as optim
import torchvision.transforms as transforms
from torch.utils.tensorboard import SummaryWriter # For TensorBoard
from utils import save_checkpoint, load_checkpoint, print_examples
from dataset import get_loader
from model import SeqToSe... |
require('dotenv').config()
const express = require('express')
const app = express()
var exif = require('fast-exif');
const fs = require('fs');
var glob = require('glob');
const path = require('path');
var pictureArray = [];
initPicturesArray();
app.get("/", function(request, response) {
var selectedIndex = rand... |
# ----------------------------------------------------------------------------
# Gimel Studio Copyright 2019-2021 by Noah Rahm and contributors
#
# 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... |
// flow-typed signature: 169f41bc5af42845e6303aad8d21be43
// flow-typed version: <<STUB>>/react-stripe-elements_v1.4.1/flow_v0.63.1
/**
* This is an autogenerated libdef stub for:
*
* 'react-stripe-elements'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to shar... |
/*
Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/cldr/nls/ca/generic",{"field-second-relative+0":"ara","field-weekday":"dia de la setmana","field-wed-re... |
'''
โ โโ โ โโโ โโโ โโ โโ โโโ โโโ โโโ โโ
โ โ โโ โ โ โโโ โ โ โ โโโ โโ โโโ โโ
Dev : IlhamGUD
'''
import time
import fitz
import shutil
from pdf import PROCESS
from pyrogram import filters
from Configs.dm import Config
from plugins.checkPdf import checkPdf
from plugins.progress imp... |