text
stringlengths
3
1.05M
import {StyleSheet} from 'react-native'; import * as defaultStyle from '../../../style'; const STYLESHEET_ID = 'stylesheet.day.period'; const FILLER_HEIGHT = 34; export default function styleConstructor(theme={}) { const appStyle = {...defaultStyle, ...theme}; return StyleSheet.create({ wrapper: { flex...
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ /* A GNU-like <stdio.h>. Copyright (C) 2004, 2007-2015 Free Software Foundation, Inc. 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 v...
(function () { "use strict"; angular.module('mnWizardStep1Service', [ 'mnHelper' ]).factory('mnWizardStep1Service', mnWizardStep1ServiceFactory); function mnWizardStep1ServiceFactory($http, mnHelper, IEC) { var mnWizardStep1Service = { getDynamicRamQuota: getDynamicRamQuota, getJoinCluster...
/* global MocksHelper, MockAttachment, MockL10n, loadBodyHTML, Compose, Attachment, MockMozActivity, Settings, Utils, Draft, Blob, Threads, ConversationView, SMIL, InputEvent, MessageManager, Navigation, Promise, AssetsHelper, Foc...
from wtforms import Form, TextField, PasswordField, RadioField, SelectField, TextAreaField, validators class LoginForm(Form): username = TextField('Username', [validators.Email('Please enter your valid email')]) password = PasswordField('Password', [validators.Length(min=6, max=15, message='Password should...
/* jumly-0.2.5 2015-11-23T01:33:33Z */ !function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_r...
const fs = require("fs"); const URL = require("url"); const moment = require("moment"); const async = require("async"); const TelegramBot = require("node-telegram-bot-api"); const affiliated = require((process.env.DATA_DIR || "../data/")+"affiliated.json"); let bot; let admins = []; let token = (function(){ ...
# 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 ...
#!/usr/bin/python #This code prints out a list of all the devices in ServiceNow #Useful for understanding what data is in Junos Space or debugging import requests import json import base64 import ConfigParser def main(): #Parse the config file config = ConfigParser.ConfigParser() config.readfp(open('spac...
/** * * Asynchronously loads the component for ExperimentsPage * */ import loadable from 'utils/loadable'; export default loadable(() => import('./index'));
import React, { Component } from "react"; class NewObjectForm extends Component { constructor() { super(); this.state = { name: '' }; this.handleSubmit = this.handleSubmit.bind(this); this.handleNameChange = this.handleNameChange.bind(this); } handleSubmit(event) { event.preventDe...
import React from "react"; import ReactDOM from "react-dom"; import App from "./App"; import "./reset.css"; ReactDOM.render( <> <App /> </>, document.getElementById("root") ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.lo...
import argparse import json import logging from bar_chart import create_bar_chart logger = logging.getLogger(__name__) if __name__ == "__main__": logging.basicConfig(level=logging.INFO) output_file = "data_insertion_benchmark" data_files = [f"data_insertion_benchmark_pg_index_GIST.json", ...
"""Some miscellaneous utility functions.""" from contextlib import contextmanager import os import re import sys import math import warnings import unittest from fnmatch import fnmatchcase from io import StringIO # note: this is a Python 3.3 change, clean this up for OpenMDAO 3.x try: from collections.abc import I...
import React, { Component } from "react"; import { Link } from "react-router-dom"; export default class PortfolioItem extends Component { // functional component mostly for display only, no logic // props is an object of properties passed in constructor(props) { super(); this.state = { portfolioItem...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:48:02 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/HomeKit.framework/HomeKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. ...
module.exports = { extends: [ 'assignar-node', ], settings: { 'import/resolver': { 'node': true, 'typescript': true, }, }, }
#!/usr/bin/env python3 from ctf_gameserver import checkerlib import requests from requests import Session import logging import utils import binascii import base64 PORT = 2727 class MyChecker(checkerlib.BaseChecker): def __init__(self, ip, team): checkerlib.BaseChecker.__init__(self, ip, team) s...
import pickle as pkl import numpy as np import tensorflow as tf from train import log_and_print from model import Model from config import FLAGS from batchloader import BatchLoader LOG_DIR = "log/log171221-2343" MODEL_DIR = LOG_DIR + "/model" SAVE_FILE = LOG_DIR + "/test.txt" def test(): batchloader = BatchLoad...
#ifndef NOTEH #define NOTEH //#include "arduino.h" #include <arm_math.h> #ifdef __MK20DX128__ #define sine arm_sin_f32 #else #define sine sin #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0...
from app import mythic import app from sanic.response import json from app.database_models.model import Credential from sanic_jwt.decorators import scoped, inject_user import app.database_models.model as db_model from sanic.exceptions import abort from app.api.siem_logger import log_to_siem import asyncio @mythic.rout...
# ext/autohandler.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """adds autohandler functionality to Mako templates. requires that the TemplateLookup class is...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("uicolor","ug",{title:"ئىشلەتكۈچى ئارايۈزى رەڭ تاللىغۇچ",options:"Color Options",highlight:"Highlight",selected:"Selected Color",...
#ifndef THIRD_PARTY_CEL_CPP_EVAL_COMPILER_FLAT_EXPR_BUILDER_H_ #define THIRD_PARTY_CEL_CPP_EVAL_COMPILER_FLAT_EXPR_BUILDER_H_ #include "eval/public/cel_expression.h" #include "google/api/expr/v1alpha1/syntax.pb.h" namespace google { namespace api { namespace expr { namespace runtime { // CelExpressionBuilder impleme...
"""studentmithra URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home'...
/* jshint ignore:start */ define("pastry/template/tree", ["pastry/pastry","pastry/html/escape"], function (helper) {return function(obj, ne){ var _e=ne?function(s){return s;}:helper.escape,print=function(s,e){_s+=e?(s==null?'':s):_e(s);};obj=obj||{};with(obj){_s='<table class="tree-wrapper table table-hover" id="'+_e(i...
/* Copyright 2015 CyberTech Labs Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
# 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, software # distributed under the Li...
import React from 'react' import Button from '../common/Button' import { projectColors } from '../common/utilities' import './ProjectCard.css' const ProjectCard = ({ handleClick, project: { id, images, technologies, title, type, }, }) => ( <div className="project" onClick={() => handleCli...
from retro.testing import game, handle import retro.testing.tools def test_data(game): warnings, errors = retro.testing.tools.verify_data(*game) handle(warnings, errors) def test_scenario(game): warnings, errors = retro.testing.tools.verify_scenario(*game) handle(warnings, errors) def test_missing...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <errno.h> #include <stdio.h> #include <string.h> #include <myencfs/myencfs-bio-file.h> #include "myencfs-util.h" #include "myencfs-error-internal.h" typedef struct __file_private_s { myencfs_context context; char *path; FILE *fp; } *__file_private; static...
/* * FreeRTOS Kernel V10.4.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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, includ...
{ "targets": [ { "target_name": "DictParser", "sources": [ "src/cpp/DictParser.cpp" ], "link_settings": { "libraries": [ "-L/home/searene/CLionProjects/DictParser/build", "-Wl,-rpath=/home/searene/CLionProjects/DictParser/build" ] }, "libraries":...
"use strict"; // Módulos necesarios const { getConnection } = require("../../bbdd"); const { generateError } = require("../../helpers"); async function listLawyers(req, res, next) { let connection; try { connection = await getConnection(); const [lawyers] = await connection.query( ` SELECT L...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcar...
import numpy as np import sys from mpdaDecodeMethod.mpdaDecode import MPDADecoder from MPDA_decode.MPDA_decode_discrete import MPDA_Decode_Discrete_NB,MPDA_Decode_Discrete_RC IND_ROBNUM = 0 IND_TASKNUM = 0 ga_eval_mpda = object # MPDADecoder.decode(x) def mpda_eval(individual): # print(individual) encode = np...
/** * Copyright 2013-2021 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
/* */ "format global"; // Interpret and default an options object "use strict"; exports.getOptions = getOptions; exports.__esModule = true; var _util = require("./util"); var has = _util.has; var isArray = _util.isArray; var SourceLocation = require("./location").SourceLocation; // A second optional argument c...
# This module contains the analysis options. # All variables with names of all caps will be registered as a state option to SimStateOptions. import string from .sim_state_options import SimStateOptions # This option controls whether or not constraints are tracked in the analysis. TRACK_CONSTRAINTS = "TRACK_CONSTRAINT...
!(function (t, e) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = e()) : "function" == typeof define && define.amd ? define(e) : (t.ResizeObserver = e()); })(this, function () { "use strict"; var t = (function () { if ("undefined" != typeof Map) return Map; ...
# Generated by Django 2.0.9 on 2019-04-08 03:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('circles', '0002_auto_201...
function Ground(game, x, y, key){ Phaser.Sprite.call(this, game, x, y, key); this.game.add.existing(this); game.physics.arcade.enable(this); this.enableBody = true; this.body.immovable = true; } Ground.prototype = Object.create(Phaser.Sprite.prototype); Ground.prototype.constructor =...
import React from "react" export default function error() { return ( <div> <h2>Page does not exist</h2> </div> ) }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _svgIcon = require('../../svg-icon'); var _svgIcon2 = _interopRequireD...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities fro...
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license """ Reports: test suites """ from django.test import TestCase from django.test.client import Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User as DjangoUser fro...
var moduleLogisticaHistorico = angular.module('moduleLogisticaHistorico', []); moduleLogisticaHistorico.controller('controllerLogisticaHistorico', function($scope, $http, $timeout, $modal){ $scope.informacoes = 'Os valores do custo de logística para a importação do café dos países abaixo. ' + 'Fonte: CECAFE'; $sco...
import sys import modbus_tk import modbus_tk.defines as cst from modbus_tk import modbus_rtu import serial #PORT = 0 PORT = '/dev/pts/1' def main(): """main""" logger = modbus_tk.utils.create_logger(name="console", record_format="%(message)s") #Create the server server = modbus_rtu.RtuServer(seria...
/* * Phoenix-RTOS * * phoenix-rtos-loader * * usb client * * Copyright 2019-2021 Phoenix Systems * Author: Kamil Amanowicz, Hubert Buczynski * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "../hal.h" #include "../errors.h" #include "usbphy.h" #include "client.h" struct { usb_dc_t dc; ...
#this file was created by us to hold the form that inherts from UserCreationForm from django import forms from django.contrib.auth.forms import UserCreationForm #Django Forms from django.contrib.auth.models import User #Django Users from .models import Profile class UserRegistrationForm(UserCreationForm): #extends use...
'use strict'; process.env.DATABASE_NAME = process.env.DATABASE_NAME || 'vendorApp'; module.exports = { ip: process.env.ip || undefined, port: process.env.PORT || 8080, publicDir: 'client', mongo: { uri: 'mongodb://localhost/' + process.env.DATABASE_NAME } };
import pickle import matplotlib.pyplot as plt from globals import cluster_result_fname, KMEANS_NAME, DBSCAN_NAME, GMMEM_NAME from nltk.corpus import stopwords from nltk.stem import SnowballStemmer from cycler import cycler import itertools from sklearn.decomposition import PCA from sklearn.manifold import TSNE impo...
/******************************************************************************/ /* Base class for data sources * * Copyright 2012-2016 AOL Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this Software except in compliance with the License. * You may...
import json import os import sys import traceback from urllib.parse import urlparse from cryptojwt import as_unicode from flask import Blueprint from flask import current_app from flask import redirect from flask import render_template from flask import request from flask.helpers import make_response from flask.helper...
var path = require('path'); var webpack = require('webpack'); var express = require('express'); var config = require('./webpack.config'); var app = express(); var compiler = webpack(config); app.use(require('webpack-dev-middleware')(compiler, { publicPath: config.output.publicPath })); app.use(require('webpack-hot...
/* Copyright 2013-2015 ASIAL CORPORATION 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, so...
#ifndef CORE_CLANG_CURSOR_DISPATCH_H #define CORE_CLANG_CURSOR_DISPATCH_H #include <functional> #include <clang-c/Index.h> namespace oonalysis::core::clang { std::function<CXChildVisitResult(CXCursor, CXCursor, CXClientData)> dispatch_cursor(CXCursor cur); } // end namespace #endif // CORE_CLANG_CURSOR_DISPATCH_H
/* eslint-disable */ /** * @author v.lugovsky * created on 17.12.2015 */ (function () { 'use strict'; angular.module('BlurAdmin.theme') .filter('profilePicture', profilePicture); /** @ngInject */ function profilePicture(layoutPaths) { return function(input, ext) { ext = ext || 'png'; ...
# Create by Packetsss # Personal use is allowed # Commercial use is prohibited number_grid = [ [2, 3, 5], [1, 7, 3], [6, 8, 2], [0] ] print(number_grid[0][2]) print(number_grid[2][0]) for row in number_grid: for column in row: print(column)
from collections import OrderedDict class DesignVariable(object): def __init__(self): self.min = 0 self.max = 1.0 class ObjectiveFunction(object): def __init__(self): self.design_variables = OrderedDict() self.function_string = "" self.value = None def evaluate(self...
exports.getStuff = function(req, res) { var id = req.params.id; console.log('Retrieving stuff: ' + id); }; exports.postStuff = function(req, res) { var sample = req.body; console.log('Adding example: ' + JSON.stringify(sample)); } exports.updateStuff = function(req, res) { var id = req.params.id; ...
import _plotly_utils.basevalidators class XValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="x", parent_name="contourcarpet.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, e...
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Used for encoding f32 and double constants to bits. let f32_view = new Float32Array(1); let f32_bytes_view = new Uint8Array(f32_view.buffer); let f64...
var frameByFrame = function() { var fbf = {}; fbf.FRAMES_PER_SECOND = 25; fbf.FRAMESKIP = 1; fbf.PLAYER_ID = "movie_player"; var player = document.getElementById(fbf.PLAYER_ID); var header = document.getElementById("watch-header"); fbf.prevFrame = function() { // Based on YouTube enhancer userscript, http://...
/* Copyright (c) 2018, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #ifndef STRMANIP_H #define STRMANIP_H #include "strvec.h" ...
#ifndef _COMMON_H #define _COMMON_H #include <openssl/rsa.h> #include <stdint.h> #include <sys/socket.h> #include "audio.h" #include "mdns.h" // struct sockaddr_in6 is bigger than struct sockaddr. derp #ifdef AF_INET6 #define SOCKADDR struct sockaddr_storage #define SAFAMILY ss_family #else #define SOCKADD...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
// Using MinBinaryHeap class PriorityQueue { constructor(){ this.values = []; } enqueue(val, priority){ let newNode = new Node(val, priority); this.values.push(newNode); this.bubbleUp(); } bubbleUp(){ let idx = this.values.length - 1; const element = ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Module de définition des structures de données de Poly#. """ # ajouter dans cette liste tous les symboles 'importables' __all__ = ['Useless'] class Useless: """ Une classe vraiment inutile. """ def __str__(self): return "Poly# vide"...
from pathlib import Path, PureWindowsPath, PurePosixPath, PurePath from typing import Sequence import pandas as pd from visions.core.model.relations import IdentityRelation, InferenceRelation from visions.core.model import TypeRelation from visions.core.model.type import VisionsBaseType def string_is_path(series) ->...
webpackJsonp([35783957827783],{439:function(t,e,n){(function(t){"use strict";function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(688),n(271),n(449),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototy...
/** * Created by kuulart on 16.15.3. */ /** * Created by kuulart on 16.15.3. */ /*global define*/ define([ 'underscore', 'backbone', 'models/equipment' ], function (_, Backbone, Equipment) { 'use strict'; var Equipments = Backbone.Collection.extend({ url: '/equipments', model: E...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function FaDraft2Digital (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 480 512"},"child":[{"tag":"path","attr":{"d":"M480 398.1l-144-82.2v64.7h-91.3c30.8-35 81.8-95.9 111.8-149.3 35.2-62.6 16.1-123.4-12.8-153.3-4.4-4.6-62.2-62.9-16...
dados = { 'Pedro': ['php', 'html', 'JavaScript'], 'Carlos': ['C#', 'Python', 'Java'] } ###Menú### while True: print('|Menú|\n0 - Sair\n1 - Ver dados\n2 - Add linguagem de programação') menu = int(input('- ')) if menu == 0: exit() elif menu == 1: print(dados) elif menu == 2: ...
#define _GNU_SOURCE #include <stdio.h> #include <netdb.h> void herror(const char *msg) { fprintf(stderr, "%s%s%s", msg?msg:"", msg?": ":"", hstrerror(h_errno)); }
#!/usr/bin/python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import numpy as np import pandas as pd from . import select_descriptor from ..IO import pkl_data from ..IO import read_input as rin def initialize(stat, init_struc_data, rslt_data): # ---------- log print('\n# ---------- In...
const express = require("express"); const mongoose = require("mongoose"); const bodyParser = require("body-parser"); const cors = require("cors"); require("dotenv").config(); const passportSetup = require("./Backend/api/config/passportSetupGoogle"); const passport = require("passport"); const app = express(); // Allo...
import React from "react"; class Other extends React.Component { render() { return <h5 className="m-4">Hello World</h5>; } } export default Other;
def initializeapp(version): app = {'codename' : [], 'version' : []}; app['codename'] = "Exasim"; app['version'] = version; app['appname'] = "app"; app['platform'] = "cpu"; app['cpucompiler'] = "g++"; app['mpicompiler'] = "mpicxx"; app['gpucompiler'] = "nvcc"; app['mpirun'] = "mpiru...
from flask import Blueprint from flask import flash from flask import g from flask import request from flask import url_for import json from flaskr.db import get_db bp = Blueprint("metric", __name__,url_prefix="/metric") @bp.route("/", methods=("GET", "POST","PUT","DELETE")) def index(): "Get All Metric" if r...
import re from setuptools import setup, find_packages EXTRAS_REQUIRE = { "tests": ["pytest", "pytz", "simplejson"], "lint": [ "mypy==0.902", "flake8==3.9.2", "flake8-bugbear==21.4.3", "pre-commit~=2.4", ], "docs": [ "sphinx==4.0.2", "sphinx-issues==1.2.0"...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n...
# Ant # # Copyright (c) 2012, Gustav Tiger <gustav@tiger.name> # # 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, m...
const Discord = require('discord.js') const client = new Discord.Client() const pms = require('pretty-ms') module.exports = { name: "uptime", aliases: ['online'], description: "Shows for how long the bot has been online", usage: "`a!uptime`, `a!online`", cooldown: 1000, run: async(cli...
"""Entry point for the analysis runner.""" import os import hailtop.batch as hb from analysis_runner import dataproc service_backend = hb.ServiceBackend( billing_project=os.getenv('HAIL_BILLING_PROJECT'), bucket=os.getenv('HAIL_BUCKET') ) batch = hb.Batch(name=f'snp_chip_only_pca', backend=service_backend) dat...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import warnings from contextlib import contextmanager from distutils.version import LooseVersion from tensorflow.contrib.framework import arg_scope from tensorflow.c...
""" circa-survive-lyric-machine API. """ from __future__ import annotations import uuid import json import logging import os import sys from typing import Any, Dict import numpy as np # type: ignore import tensorflow as tf # type: ignore from multiprocessing import Process from flask import Flask, Response, jsonif...
/* Copyright 2019 Alain Dargelas 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, softwar...
//================================================================================================= // // MJP's DX11 Sample Framework // http://mynameismjp.wordpress.com/ // // All code and content licensed under Microsoft Public License (Ms-PL) // //==================================================================...
#!/usr/bin/env python #encoding: UTF-8 ''' 网易云音乐 Menu ''' import curses import locale import sys import os import json import time import webbrowser from .api import NetEase from .player import Player from .ui import Ui home = os.path.expanduser("~") if os.path.isdir(home + '/netease-musicbox') is False: os.mkd...
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils def binop_eq(): iris = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris_wheader.csv")) rows, cols = iris.dim iris.show() #frame/scaler res = iris == 4.7 res_rows, res_cols = res.dim ...
# Copyright (c) 2019 PaddlePaddle 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 appli...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { lighten } from 'polished'; import SelectPlace from './SelectPlace'; import SelectLanguage from './SelectLanguage'; const StyledFilters= styled.div` /* Box model */ display: flex; ...
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User class UserCustomAdmin(UserAdmin): list_display = ('username', 'is_superuser', 'is_inspector', 'is_from_insurance', 'is_from_auto_repair_shop') search_fields = ['username'] fieldsets = ( (None,...
import Dashboard from './dashboard'; export { Dashboard };
# coding: utf-8 import logging import pendulum from airflow.configuration import conf from xTool.stats import DummyStatsLogger from xTool.utils.timezone import set_timezone_var log = logging.getLogger(__name__) def create_statsclient(): """创建数据采集器客户端 .""" # 默认的日志收集器 Stats = DummyStatsLogger # 采集到...
import numpy as np import matplotlib from matplotlib.testing.decorators import image_comparison, knownfailureif import matplotlib.pyplot as plt from matplotlib import mathtext math_tests = [ r'$a+b+\dots+\dot{s}+\ldots$', r'$x \doteq y$', r'\$100.00 $\alpha \_$', r'$\frac{\$100.00}{y}$', r'$x y$...
while(True): s = list(map(str, input().split())) if not s: break l = [] flag = True for i in s: if i == '*' or i == '/' or i == '+' or i == '-': if len(l) > 1: a = l.pop() b = l.pop() l.append(float("{0:.4f}".format(eval(str(b) + i + str(a))))) else: flag = ...