text stringlengths 3 1.05M |
|---|
const { user_list } = require('./userMgt_data.js')
const { role_list } = require('./roleMgt_data.js')
const { meuns_list } = require('./menuMgt_data.js')
const menusList = {
code: 20000,
total: meuns_list.length,
data: meuns_list
}
const userList = {
code: 20000,
total: user_list.length,
data: user_list
... |
### Copyright (C) 2002-2006 Stephen Kennedy <stevek@gnome.org>
### 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 2 of the License, or
### (at your option) any later version.
... |
const _countWords = text => text.split(" ").length
const _stripPostHtml = html => {
const withoutStyleTag = html.split("<style")[0]
const strippedString = withoutStyleTag.replace(/(<([^>]+)>)/gi, "")
return strippedString
}
const getTimeToRead = text => {
const strippedText = _stripPostHtml(text)
... |
'use strict';
const Joi = require('joi');
const abslog = require('abslog');
const { hashArray } = require('@asset-pipe/common');
const Metrics = require('@metrics/client');
const Bundler = require('./bundler');
const Storage = require('./storage');
const schemas = require('../lib/schemas');
const { hashContent } = req... |
// Copyright 2008 The Closure Library 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 requ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = {
'@context': 'http://iiif.io/api/presentation/3/context.json',
id: 'https://dlib.indiana.edu/iiif_av/mahler-symphony-3/mahler-symphony-3.json',
type: 'Manifest',
label: {
en: ['Sympho... |
import typer
from prompt_toolkit.formatted_text import HTML
from .dialog import radiolist_dialog, ansired
from .utils import no_traceback as nt, repo
app = typer.Typer(help='start/submit/delete a feature branch')
@app.command()
def start(name: str = typer.Argument(..., help='branch name')):
"""create a branch fr... |
(this.webpackJsonpweb_frontend=this.webpackJsonpweb_frontend||[]).push([[0],{405:function(e,t,n){"use strict";n.r(t);var i=n(8),r=n.n(i),o=n(31),c=n.n(o),s=(n(80),n(46)),a=n(75),d=n.n(a),l=n(9);function b(){return Object(l.jsx)(d.a,{height:window.outerHeight,params:u})}var u={particles:{number:{value:160,density:{enabl... |
const { gql } = require('apollo-server-express');
const typeDefs = gql`
scalar Date
type Note {
id: ID!
content: String!
htmlContent: String!
author: User!
favoriteCount: Int!
favoritedBy: [User!]
createdAt: Date!
updatedAt: Date!
}
type NoteFeed {
page: Int!
pages: In... |
# Author : Rajanikant Tenguria
def kapnum(i):
f=len(list(str(i)))
mod=10**(f)
l=i*i
j=l/mod
k=l%mod
#print i,j,k,j+k,l
if (j+k)==i:
return 1
else:
return 0
n=int(raw_input())
m=int(raw_input())
cnt=0
for i in range(n,m+1):
if kapnum(i):
print i,
cnt+... |
const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
const inherits = require('util').inherits
const TokenBalance = require('./token-balance')
const Identicon = require('./identicon')
const currencyFormatter = require('currency-formatter')
co... |
/*
Copyright 2019 Politica para Todos
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 writing, softwa... |
""""
Tools for models
@ load original resnet18 detector with load_original
@ Optimized model with trt_converter
@ load optimized model using load_optz
author: nakmuayoder
date 10/2021
"""
import json
import trt_pose.coco
import torch2trt
import torch
import trt_pose.models
import os
from google_drive_downloader impo... |
# -*- coding: utf-8 -*-
"""ardublocklyserver package.
Copyright (c) 2017 carlosperate https://github.com/carlosperate/
Licensed under the Apache License, Version 2.0 (the "License"):
http://www.apache.org/licenses/LICENSE-2.0
There is a specific requirements for this Python project to not need external
mo... |
/**
* Kendo UI v2016.1.118 (http://www.telerik.com/kendo-ui)
* Copyright 2016 Telerik AD. All rights reserved. ... |
/**
* flowground :- Telekom iPaaS / ornl-gov-daymet-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under the Apache 2.0 License. For details
* see the file LICENSE on the toplevel directory.
*/
const elasticio = require('elasticio-... |
'use strict';
exports.__esModule = true;
var _Formats;
exports.default = viewLabel;
var _constants = require('./constants');
var _formats = require('../formats');
var _formats2 = _interopRequireDefault(_formats);
var _localizer = require('../localizer');
var _localizer2 = _interopRequireDefault(_localizer);
va... |
(function() {
'use strict';
angular
.module('courses', ['ngResource', 'ui.router', 'ui.bootstrap',
'LocalStorageModule', 'courses.Filters', 'ngMockE2E', 'ngMessages'])
})();
|
import Icon from 'vue-awesome/components/Icon'
Icon.register({
assignment_ind_two_tone: {
paths: [
{
opacity: '.3',
d: 'M19 5H5v14h14V5zm-7 1c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3zm6 12H6v-1.53c0-2.5 3.97-3.58 6-3.58s6 1.08 6 3.58V18z'
},
{
d: 'M20.66 3.88c... |
const http = require('http');
var str_hello = '';
for ( let i = 0; i < 1024 * 1024 ; i++) {
str_hello += 'a';
}
var buff_hello = Buffer.from(str_hello);
http.createServer( (req, res) => {
res.writeHead(200);
res.end(buff_hello);
}).listen(8010);
console.log('http_server starting ok...'); |
/**
* dijit - A version of dijit.js framework that ported to running on skylarkjs.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/dijit/
* @license MIT
*/
define(["dojo/_base/declare","dojo/dom-class","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","./focus","./layou... |
const url = require('url');
const axios = require('axios').default;
const fileType = require('file-type');
/**
* @param {string} siteUrl
*/
function getSiteDomain(siteUrl) {
return url.parse(siteUrl).hostname;
}
/**
* @param {string} iconUrl
*/
async function downloadIcon(iconUrl) {
let iconResponse;
try... |
import { jobsService, doctorsService } from 'barracao-digital/services'
export const handler = async (user) => {
const currentUser = await doctorsService.getOneByUsername(user.username)
if (currentUser.active) await doctorsService.alternateActive(user.username)
await jobsService.removeAlternateDoctorJobSchedule(... |
! function(a, b) {
"function" == typeof define && (define.amd || define.cmd) ? define(function() {
return b(a)
}) : b(a, !0)
}(this, function(a, b) {
function c(b, c, d) {
a.WeixinJSBridge ? WeixinJSBridge.invoke(b, e(c), function(a) {
g(b, a, d)
}) : j(b, d)
}
function d(b, c, d) {
a.WeixinJSBridge ? ... |
// Transpile all code following this line with babel and use '@babel/preset-env' (aka ES6) preset.
require("@babel/register")({
presets: ["@babel/preset-env"]
});
// Import the rest of our application.
module.exports = require('./index.js')
module.exports = require('./babylon/babylon-functions.js') |
var mongoose = require('mongoose');
var UserSchema = new mongoose.Schema({
userCode: String,
password: String,
Avatar: String,
backgroundImg: String,
ImgList: String,
realName: String,
sex: Number,//0女,1男
identityCardNum: String,
phone: Number,
qq: String,
nickName: String,
birthday: Date,
relationshipS... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
function solve(tokens = []) {
let movies = [];
while (tokens.length !== 0) {
let movieData = tokens.shift();
if (movieData.includes('addMovie')) {
movieData = movieData.replace('addMovie ', '');
let movie = { name: movieData };
movies.push(movie);
} else if (m... |
var class_a_r_k_1_1_util_1_1_matrix33 =
[
[ "Matrix33", "class_a_r_k_1_1_util_1_1_matrix33.html#a70e4ce2c882eb7ea884d4b72baf6c728", null ],
[ "Matrix33", "class_a_r_k_1_1_util_1_1_matrix33.html#a511c2745c754ce18638f722f0f6dee03", null ],
[ "Matrix33", "class_a_r_k_1_1_util_1_1_matrix33.html#ac617cf530710eaf... |
'use strict';
var chai = require('chai')
, Sequelize = require('../../index')
, expect = chai.expect
, Support = require(__dirname + '/../support')
, DataTypes = require(__dirname + '/../../lib/data-types')
, datetime = require('chai-datetime');
chai.use(datetime);
chai.config.includeStack = true;
describe... |
(function($) {
'use strict';
var table = $('#asignacions');
const inf = $('#inf');
$(document).ready(function () {
table.DataTable({
search: {
smart: true
},
lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
... |
import React, {useState} from 'react';
const DropdownMenuItem = ({ ingredient, handleClick }) => {
return (
<div >
<p onClick={handleClick}>{ingredient}</p>
</div>
);
};
export default DropdownMenuItem;
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[379],{3802:function(e,t,n){"use strict";n.r(t),n.d(t,"icon",(function(){return o}));n(13),n(3),n(4),n(9),n(2),n(10);var r=n(0),a=n.n(r);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.proto... |
/*
########################################
MIT License
Copyright (c) 2019 Marc Espin Sanz
License > https://github.com/Graviton-Code-Editor/Graviton-App/blob/master/LICENSE.md
#########################################
*/
"use strict";
const fallbackProperties = {
'editor-background-colo... |
var ctx = $("#myChart").get(0).getContext("2d");
var data = {
labels: ["Jan 09", "Feb 09", "Mar 09", "Apr 09", "May 09", "Jun 09", "Jul 09", "Aug 09", "Sep 09", "Oct 09", "Nov 09", "Dec 09",
"Jan 10", "Feb 10", "Mar 10", "Apr 10", "May 10", "Jun 10", "Jul 10", "Aug 10", "Sep 10", "Oct 10", "Nov 10", "Dec 1... |
import unittest
from unittest.mock import Mock
import amaxa
from amaxa import constants
from .MockFileStore import MockFileStore
class test_LoadOperation(unittest.TestCase):
def test_maps_record_ids(self):
connection = Mock()
op = amaxa.LoadOperation(connection)
op.file_store = MockFileS... |
/**
* Created by ShriRam on 2/17/2017.
*/
import React from 'react';
const Comments = React.createClass ({
renderComment(comment,i){
return(
<div className="comment" key={i}>
<p>
<strong>{comment.user}</strong>
{comment.text}
... |
import torch
import torch.nn as nn
import torchvision.models as models
class EncoderCNN(nn.Module):
def __init__(self, embed_size):
super(EncoderCNN, self).__init__()
resnet = models.resnet50(pretrained=True)
for param in resnet.parameters():
param.requires_grad_(False)
... |
// Copyright 2021 Kuei-chun Chen. All rights reserved.
removeTTL();
// db.eventlog.createIndex( { "lastModifiedDate": 1 }, { expireAfterSeconds: 3600 } )
// db.serverlog.createIndex( { "expired_at": 1 }, { expireAfterSeconds: 0 } )
function removeTTL() {
var removeCommands = [];
var createCommands = [];
var doc... |
from .base import *
ALLOWED_HOSTS = ['stats.czechelib.cz']
LIVE_ERMS_AUTHENTICATION = True
DEBUG = False
STATIC_ROOT = '/var/www/celus/static/'
MEDIA_ROOT = '/var/www/celus/media/'
ADMINS = (
("Beda Kosata", "beda@bigdigdata.com"),
)
EMAIL_HOST = 'smtp.ntkcz.cz'
SERVER_EMAIL = 'admin@stats.czechelib.cz'
|
class SlackError(Exception):
"""Base Slack Exception"""
def __init__(self, msg):
"""Return error message to user
:param msg: the error message to return
"""
self.msg = msg
|
// Defining angularjs module
var app = angular.module('demoModule', []);
// Defining angularjs Controller and injecting ProductsService
app.controller('demoCtrl', function ($scope, $http, ProductsService) {
$scope.productsData = null;
$scope.message = '';
// Fetching records from the factory created at t... |
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import action
from rest_framework.response import Response
from core.models import Tag, Ingredient, Recipe
from receipe... |
import logging
from nose2 import session
from nose2.plugins import logcapture
from nose2.tests._common import TestCase
log = logging.getLogger(__name__)
class StubLogging(object):
def __init__(self, name=None):
self.name = name
self.handlers = []
self.level = None
def getLogger(self... |
'use strict';
var platform = require('os').platform();
var spawnSync = require('child_process').spawnSync;
var readdirSync = require('fs').readdirSync;
var GLIBC = 'glibc';
var MUSL = 'musl';
var spawnOptions = {
encoding: 'utf8',
env: process.env
};
if (!spawnSync) {
spawnSync = function spawnSync() {
re... |
import { Injectable } from '@angular/core';
import { zip } from 'rxjs';
import { SourceDispatcher } from '../domain/source.dispatcher';
import { StructureEditSourceItemParams } from '../domain/origin/edit/structure.edit-source-item.params';
import { FieldWarehouse } from '../../../field/core/api/field.warehouse';
impor... |
/*!
=========================================================
* Material Kit React - v1.9.0 based on Material Kit - v2.0.2
=========================================================
* Product Page: https://www.creative-tim.com/product/material-kit-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)... |
# Copyright (C) 2020 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Workflow UI facade."""
from lib import url, users
from lib.constants import object_states
from lib.entities import cycle_entity_population, ui_dict_convert
from lib.page import dashboard
from lib.page.widg... |
import { Subscriber } from '../Subscriber';
/* tslint:enable:max-line-length */
/**
* Emits a given value if the source Observable completes without emitting any
* `next` value, otherwise mirrors the source Observable.
*
* <span class="informal">If the source Observable turns out to be empty, then
* this op... |
const main = process.platform === 'darwin' ? require('bindings')('main.node') : undefined;
const getIcon = async (input, output, size) => {
if (process.platform !== 'darwin') {
throw new Error('node-mac-file-icon only works on macOS')
}
return new Promise((resolve, reject) => {
main.getFileIcon(input, o... |
import React from 'react';
import { theme as chakraTheme } from '@chakra-ui/core';
const fonts = {
...chakraTheme.fonts,
mono: `'Menlo', monospace`,
heading: `'Oswald', sans-serif`,
body: `'Montserrat', sans-serif`
};
const breakpoints = ['48em', '62em', '80em'];
const theme = {
...chakraTheme,
colors: {... |
// Group array of objects together according to a specific key
// `key` can a string (the object key), an array (several object keys) or
// a function returning a string.
export const groupBy = function(array, key) {
return array.reduce(groupByReducer.bind(null, key), {})
}
const groupByReducer = function(key, group... |
"""The tests for Device Tracker device triggers."""
import pytest
import voluptuous_serialize
import homeassistant.components.automation as automation
from homeassistant.components.device_automation import DeviceAutomationType
from homeassistant.components.device_tracker import DOMAIN, device_trigger
import homeassist... |
#!/usr/bin/env python3
import matplotlib
matplotlib.use('Agg')
import sys
import os
import numpy as np
from funque.config import FunqueConfig, DisplayConfig
from funque.core.asset import Asset
from funque.core.quality_runner import FunqueQualityRunner
from funque.tools.misc import get_file_name_without_extension, g... |
var _ = require('underscore');
var $ = require('jquery');
var cdb = require('cartodb.js');
var errorParse = require('../../../../../helpers/error-parser');
var ENOUGH_QUOTA_QUERY = _.template("select cdb_dataservices_client.cdb_enough_quota('<%= analysis %>', <%= rows %>);");
module.exports = {
init: function (conf... |
#!/usr/bin/env node
var exec = require('child_process').exec;
var fs = require('fs');
var path = require('path');
console.log('Updating plugin manifest');
exec("cordova plugin list", function(error, output, code) {
var plugins = [];
var lines = output.split("\n");
var count = 0;
lines.forEach(functio... |
require('./bootstrap');
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import {routes} from './routes';
import User from './Helpers/User'
window.User = User
//Sweet alert start:
import Swal from 'sweetalert2'
window.Swal = Swal;
const Toast = Swal.mixin({
toast: true,
position:... |
const webpack = require('webpack');
const path = require('path');
const assetsDir = path.join(__dirname, 'public/assets');
const vendorsDir = path.join(__dirname, 'src/app/vendors');
const srcInclude = path.join(__dirname, 'src/app');
const indexFile = path.join(__dirname, 'src/app/index.js');
co... |
var db = require("../models");
module.exports = function (app) {
app.get("/api/allskills", (req, res) => {
db.Skill.findAll().then((data) => {
res.json(data);
});
});
app.get("/api/navprojects", (req, res) => {
db.Project.findAll({
attributes: ['title']
}).then((data) => {
res.... |
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
// Prevent Carousel from pausing on mouseover
$('.carousel').carousel({
pause: "false"
});
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The String.prototype.concat.length property has the attribute DontEnum
es5id: 15.5.4.6_A8
description: >
Checking if enumerating the String.prototype.concat.length
pro... |
##########################################################################
#
# Copyright (c) 2013-2014, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions ... |
export const apiMerchant = 'https://website-service-dot-autoketing-production-api-v1.appspot.com';
export const apiSubmitTicket = 'https://website-service-dot-autoketing-production-api-v1.appspot.com/create-ticket';
|
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class RegistrationEditor(models.TransientModel):
_name = "registration.editor"
_description = 'Edit Attendee Details on Sales Confirmation'
sale_order_id = fields.Many2one('sale.order', 'Sales Order', required=True, ondelete='cascade')
eve... |
import numpy as np
import numba as nb
# Reimplementing DynaMax Jaccard in Numba to enable parallelilization and single
# execution speed ups of factor 6
@nb.njit
def np_max(arr, axis):
"""
Workaround for np.max along axis in Numba.
Credits to: https://github.com/numba/numba/issues/1269#issuecomment-47257... |
# coding=utf-8
from ._base import manager
|
//
// jQuery Slug Generation Plugin by Perry Trinier (perrytrinier@gmail.com)
// Licensed under the GPL: http://www.gnu.org/copyleft/gpl.html
jQuery.fn.slug = function (options) {
var settings = {
slug: 'slug', // Class used for slug destination input and span. The span is created on $(document).ready()
... |
{
"tagName": "div",
"id": "checklist-form",
"className": "checklist-form-t2",
"template": _.template(`
<fieldset>
<div class="form-group">
<label for="inputTransportadora" class="col-sm-3 control-label">Frota</label>
<div class="col-sm-3">
<select name="grupo_id" class="form-control"... |
import os, sys
while 1:
line = sys.stdin.readline().strip()
if not line:
break
os.close(int(line))
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const bcrypt = require("bcrypt");
const mongoose = require("mongoose");
const userSchema = new mongoose.Schema({
firstName: { type: String, required: true },
lastName: { type: String, required: true },
email: { type: String, requir... |
/**
* @copyright (c) 2016, Philipp Thürwächter & Pattrick Hüper
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
import {DateTimeException} from '../../../src/errors';
import {Temporal} from '../../../sr... |
#! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Osman Baskaya"
""" This module finds the semantic classes with respect to
oracle accuracy. Details: The Noisy Channel Paper,
Algorithm 2.
"""
from nltk.corpus import wordnet as wn
import sys
from nlp_utils import fopen, traverse
from collections import... |
export { default as userscript } from './userscript';
|
"""
color.py
The color module defines the Color class and some popular Color
objects.
"""
#-----------------------------------------------------------------------
class Color:
"""
A Color object models an RGB color.
"""
#-------------------------------------------------------------------
def __... |
crowdhub.controller('usersCtrl', function($scope, TasksList) {
});
|
import gdal
import numpy as np
import os,glob,shutil,sys
import netCDF4
import matplotlib.pyplot as plt
import subprocess
import multiprocessing
# On BRIDGE servers, gdal is a bit broken, set 'GDAL_DATA='/opt/bridge/CentOS6-64/python/anaconda-5.0.1-2.7/pkgs/libgdal-2.1.0-0/share/gdal'
################################... |
from setuptools import setup
setup(
name='raft_std',
version='0.1.0',
description='Standard library for Raft',
author='Maviek',
author_email='maviek@maviek.me',
packages=['raft_std', 'raft_std.thread', 'raft_std.fs', 'raft_std.io'],
package_dir={'': 'lib'},
)
|
//load('d:\\NodeGridFS\\ms\\dbscript\\init.js')
var mongo = new Mongo('localhost');
var myDB = mongo.getDB('blog');
var managerColl = myDB.getCollection('managers');
managerColl.insert({'name':'admin','password':'123'});
//level级别
//levelnumber 级别数值
//levelname 级别名称
var levelColl = myDB.getCollection('levels');
/... |
var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
res.render('logout');
});
module.exports = router; |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: sxp_local_bindings_info
short_description: Information module for Sxp Local Bindings
description:
- Get all Sxp Lo... |
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format_pt-BR",function(e){e.Intl.add("datatype-date-format","pt-BR",{a:["dom","seg","ter","qua","qui","sex","s\u00e1b"],A:["domingo","segunda-feira... |
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""
Extension template for transformers, SIMPLE version.
Contains only bare minimum of implementation requirements for a functional transformer.
Also assumes *no composition*, i.e., no transformer or other estimator compone... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{204:function(t,s,a){},226:function(t,s,a){"use strict";var n=a(204);a.n(n).a},245:function(t,s,a){"use strict";a.r(s);a(226);var n=a(0),e=Object(n.a)({},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"content"},[t._m(0),t._v... |
# -*- coding: utf-8 -*-
# Import Python libs
from __future__ import absolute_import
# Import Salt Libs
from salt.states import mac_package as macpackage
# Import Salt Testing Libs
from salttesting import TestCase
from salttesting.helpers import ensure_in_syspath
from salttesting.mock import (
MagicMock,
patc... |
def average(array):
# your code goes here
arr = list(set(array))
s = sum(arr)
l = len(arr)
return (s/l)
if __name__ == '__main__':
n = int(input())
arr = list(map(int, input().split()))
result = average(arr)
print(result) |
import itertools
import re
import sys
import traceback
from instruction import Instruction
from register import Register, UnusedRegister
class MIPSProgram:
def __init__(self, lines=None, text_base=0, data_base=0x4000):
self.text_base = text_base if isinstance(text_base, int) else eval(text_base)
self.data_b... |
$(function(){var e=$("*");e.each(function(){var e=$(this);var t=e.attr("class");var n=e.prop("tagName").toLowerCase();if(!e.attr("class")){e.attr("class",n)}else{e.attr("class",t+" "+n)}})})
|
'''
Copyright (C) 2010-2021 Alibaba Group Holding Limited.
process images andload imagenet and cifar
'''
# pylint: disable=W0613,not-callable,invalid-name,too-many-locals,too-many-arguments
import os
import sys
import math
import torch
import torch.utils.data
import torch.utils.data.distributed
from torchvision import ... |
!function(e){const i=e.af=e.af||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"","Align center":"Belyn in die middel","Align left":"Belyn links","Align right":"Belyn regs","Block quote":"Blok-aanhaling",Bold:"Vetgedruk",Cancel:"Kanselleer","Cannot upload file:":"Lêer nie opgelaai nie:","Could not insert im... |
define(["../../../polymer/polymer-legacy.js", "../../../polymer/lib/legacy/polymer-fn.js", "../../../polymer/lib/utils/html-tag.js", "../app-scroll-effects-behavior.js"], function (_polymerLegacy, _polymerFn, _htmlTag, _appScrollEffectsBehavior) {
"use strict";
var _templateObject_93b2a5c0941711ec8d52c707f928eca0;... |
'use strict'
var __decorate =
(this && this.__decorate) ||
function(decorators, target, key, desc) {
var c = arguments.length,
r =
c < 3
? target
: desc === null
? (desc = Object.getOwnPropertyDescriptor(target, key))
: desc,
d
if (typeof Reflect =... |
"use strict";
/*
This is a stripped down version of the Reference object in FHIR
(https://www.hl7.org/fhir/references.html)
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Reference.js.map |
var Issue = require('../issue');
module.exports = {
name: 'focusable-tabindex-style',
on: ['tag'],
filter: ['a', 'area', 'button', 'input', 'img', 'select', 'textarea'],
desc: [
'If set, all focusable elements',
'(`a`, `area`, `button`, `input`, `img`, `select`, `textarea`)',
'must have a positive `tab... |
#bet, chips, player, check, bet_or_raise, call, fold, button, ante |
import pandas as pd
import numpy as np
import os
from collections import defaultdict
import re
from typing import Dict, Union, Generator, DefaultDict
from sklearn import model_selection
from src.data.logparser import parse_file_drain3, save_drain3_to_file
SEED = 160121
def load_labels(file_path: str) -> pd.DataFram... |
const sqlite3 = require('sqlite3')
const { open } = require('sqlite') // traz o método open do sqlite3
module.exports = () =>
open({
filename: './database.sqlite',
driver: sqlite3.Database
})
|
import React, { useState, useEffect } from "react";
import { Drawer as MantineDrawer } from "@mantine/core";
import PropTypes from "prop-types";
import { omit } from "ramda";
import { renderDashComponent } from "dash-extensions-js";
/**
* Display overlay area at any side of the screen. For more information, see: http... |
// Copyright 2018-2021 Polyaxon, Inc.
//
// 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 agre... |
############################################################
# FlatCAM: 2D Post-processing for Manufacturing #
# http://flatcam.org #
# Author: Juan Pablo Caram (c) #
# Date: 2/5/2014 #
# MIT Licence ... |