text
stringlengths
3
1.05M
import {spawn} from 'child_process' import {Observable} from 'rxjs/Observable' import {mergeMap} from 'rxjs/operator/mergeMap' import {retryWhen} from 'rxjs/operator/retryWhen' import {getTmp} from './cache' import * as util from './util' import * as config from './config' import path from 'path' import debuglog from...
import { Meteor } from 'meteor/meteor'; Meteor.methods({ setAvatarFromService(dataURI, contentType, service) { check(dataURI, String); check(contentType, Match.Optional(String)); check(service, Match.Optional(String)); if (!Meteor.userId()) { throw new Meteor.Error('error-invalid-user', 'Invalid user', { ...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const BoundingDimensions = require('BoundingDimensions'); const Platform = require('Platform...
/* Copyright (c) 2016 VMware, Inc. 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...
export default class Player extends Phaser.GameObjects.Container { constructor(scene, x, y) { super(scene, x, y); this.scene = scene; scene.add.existing(this); this.sprite = scene.add.sprite(0, 0, 'mouse', 0); // this.sprite.setOrigin(0.5, 1.0); // this.sprite.setScale(this.size); // this.sprite.setTint...
const path = require('path') const dotEnvPath = path.resolve('.env') /** * since mocha don't see enviroment variables we have to use dotenv */ require('dotenv').config({ path: dotEnvPath }) module.exports = { development: { 'url': process.env.DATABASE_URL, 'dialect': 'mysql', 'define': { 'unders...
"use strict"; /** * @license * Copyright 2017 Google Inc. 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...
// args.apiDoc needs to be a js object. This file could be a json file, but we can't add // comments in json files. module.exports = { swagger: '2.0', // all routes will now have /v3 prefixed. basePath: '/v3', info: { title: 'express-openapi sample project', version: '3.0.0' }, definitions: { ...
const Game = (io, games, utils, cardsPerPlayer, scoreToWin) => { const Game = { updatePlayerList: roomNum => { const game = games[utils.getGameIndex(roomNum)]; io.to(roomNum).emit('UpdatePlayerList', game.players); }, toggleReady: ({ room, userName },) => { ...
!function(e){e.fn.richText=function(t){function a(e,t){"undefined"==typeof t&&(t=null),h(),"heading"===e&&r()?f("<"+t+">"+r()+"</"+t+">"):document.execCommand(e,!1,t)}function n(){var t=e("#"+te),a=t.html();b.useSingleQuotes===!0&&(a=u(a)),t.siblings(".richText-initial").val(a)}function i(){var t=e("#"+te),a=t.siblings...
# -*- coding: utf-8 -*- """ Created on Friday 2 Feb 2020 @author: Chris.Cui Email: Chris.Cui@aurecongroup.com """ #%% load all the pkgs from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential, load_model from keras.layers import Dense, Dropout, Flatten...
function cargarAutores(){ let iframe= document.getElementById("frameAct"); iframe.setAttribute("src","fichasHTML/autor.html"); } function cargarEditoriales(){ let iframe= document.getElementById("frameAct"); iframe.setAttribute("src","fichasHTML/editorial.html"); } function cargarLibros(){ let ifram...
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
import React from "react"; import styled from "styled-components"; import LinkLabels from "../files/LinkLabels"; const NavList = styled.nav` background: #282828; height: 51px; ` const NavItems = styled.div` display: flex; justify-content: space-around; align-items: center; // neets to be f...
import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom'; export class AsyncImage extends Component { componentDidMount() { let imgLoader = ReactDOM.findDOMNode(this.refs.imgLoader); let imgDest = ReactDOM.findDOMNode(this.refs.imgDest); imgLoader.onload = null;...
import test from 'ava' import isolate from 'helper/isolate' const [logic, { block, declares, flow, variableSpace }] = isolate( test, 'render/logic', { block: 'render/block', declares: 'render/declares', flow: 'render/flow', variableSpace: 'render/variableSpace', } ) test.serial('empty', (t) => ...
# Copyright (c) 2018-present, Royal Bank of Canada. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from __future__ import absolute_import from __future__ import division from __future__ import print_function from __futu...
import torch import torch.nn as nn from torch.autograd import Variable class ShakeDropFunction(torch.autograd.Function): @staticmethod def forward(ctx, x, training=True, p_drop=0.5, alpha_range=None): if alpha_range is None: alpha_range = [-1, 1] if training: gate = to...
import PenPal from "meteor/penpal"; import { DEFAULT_PENPAL_SETTINGS, SETTINGS_STORE, PLUGIN_NAME } from "../../constants.js"; import queries from "./configuration.queries.js"; export default { async setBurpsuiteProConfiguration( root, { configuration: jsonConfiguration }, context ) { const c...
/* global describe, it, before, after, beforeEach */ 'use strict'; import chai from 'chai'; chai.should(); import request from 'request'; import { app } from '../example/server'; import { Breaker } from '../lib'; describe('request', () => { let server, breaker; before(() => { server = app.listen(3000); })...
import React, { useContext, useEffect, useRef, useState } from 'react'; import { StatusBar, View, StyleSheet, Alert } from 'react-native'; import { DrawerContentScrollView } from '@react-navigation/drawer'; import ReactNativeHapticFeedback from 'react-native-haptic-feedback'; import PropTypes from 'prop-types'; import ...
{ var __result1 = 1 * null !== 0; var __expect1 = false; } { var __result2 = null * 1 !== 0; var __expect2 = false; } { var __result3 = new Number(1) * null !== 0; var __expect3 = false; } { var __result4 = null * new Number(1) !== 0; var __expect4 = false; }
const XLSX = require('xlsx') module.exports = function () { const content = XLSX.readFile(this.resourcePath) return `module.exports = ${JSON.stringify(content)}` }
const userDetailsPage = require('../pages/userDetails') const recallsListPage = require('../pages/recallsList') context('User details', () => { beforeEach(() => { cy.task('reset') cy.task('stubLogin') cy.task('stubAuthUser') cy.task('expectListRecalls', { expectedResults: [], }) cy.task...
const fetch = require('node-fetch'); const genSVG = require('../lib/svg.js'); const KindModel = require('../models/kind.js'); const KindController = require('../controllers/kind.js'); module.exports = async (req, res) => { try { const { username, kind, type, ext, begin, end, direction } = req.query; const [_...
const cheerio = require('cheerio') const fetch = require('node-fetch') const { omitBy, isNil } = require('lodash') const GITHUB_URL = 'https://github.com'; function getMatchString(value, pattern) { const match = value.match(pattern); if (match && match[1]) { return match[1]; } else { return null; } } ...
from a10sdk.common.A10BaseClass import A10BaseClass class Esp(A10BaseClass): """Class Description:: NAT64 ESP ALG (default: disabled). Class esp supports CRUD Operations and inherits from `common/A10BaseClass`. This class is the `"PARENT"` class for this module.` :param uuid: {"description"...
import torch import torch.nn as nn import torch.nn.functional as F from models.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from models.aspp import build_aspp from models.decoder import build_decoder from models.cam_decoder import build_attention_decoder from models.backbone import build_backbone import pd...
const memoize = require('lodash.memoize'); const sqrt2 = Math.sqrt(2); function canStartOn( node ){ const { options, previewEles, ghostEles, handleNode } = this; const isPreview = el => previewEles.anySame(el); const isGhost = el => ghostEles.anySame(el); const userFilter = el => el.filter( options.handleNodes...
import logging from ailment import Expr, Stmt from ....engines.light import SimEngineLightAILMixin from ....engines.light import SimEngineLight _l = logging.getLogger(name=__name__) class SimplifierAILState: def __init__(self, arch, variables=None): self.arch = arch self._variables = {} if vari...
import pathlib from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # This call to setup() does all the work setup( name="mongodump-s3", version="1.1.2", description="Backup utility f...
const moment = require('moment-timezone') const Supporter = require('../../../structs/db/Supporter.js') const Schedule = require('../../../structs/db/Schedule.js') const FailRecord = require('../../../structs/db/FailRecord.js') const { MenuEmbed, MenuVisual, MessageVisual } = require('discord.js-prompts') const ThemedE...
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.005236,"40":0.005236,"41":0,"42":0,"43":0.005236,"44":0...
#!/usr/bin/env python # -*- coding:utf8 -*- # Copyright 2017, Schuberg Philis BV # # 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...
#input variables to Zapier Code Transfer Step 17: Update Smart Campaign Descriptions input={ 'token': 'Token', #from Step 4: Get Marketo Access Token 'parent id': 'fid', #from Step 5: Get Parent ID or Create Parent Folder } import re import urllib.parse import ast mapping = ast.literal_eval(input['dict']) sear...
// Import the ORM to create functions that will interact with the database. var orm = require("../config/orm.js"); var burger = { // model to call the orm.selectAll to query all from table all: function(cb){ orm.selectAll(function(res){ cb(res); }) }, // model to call the orm.insertOne to...
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateDomainApiAclPolicyRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_ma...
var searchData= [ ['real_1186',['Real',['../namespaceioh_1_1problem.html#a58542a542875ac11e6f3171393038ee4',1,'ioh::problem']]], ['referencetype_1187',['ReferenceType',['../structioh_1_1suite_1_1_suite_1_1_iterator.html#ab95d88e4d8ce452ee6769d5d23c36515',1,'ioh::suite::Suite::Iterator']]], ['reftype_1188',['RefTy...
/* @功能:购物车页面js @作者:diamondwang @时间:2013年11月14日 */ $(function(){ //减少 $(".reduce_num").click(function(){ var amount = $(this).parent().find(".amount"); if (parseInt($(amount).val()) <= 1){ alert("商品数量最少为1"); } else{ $(amount).val(parseInt($(amount).val()) - 1); } //小计 var subtotal = parseFloat($(t...
//------------------------------------------------------------------------------ // Author: Lukasz Janyst <lukasz@jany.st> // Date: 30.01.2018 // // Licensed under the 3-Clause BSD License, see the LICENSE file for details. //------------------------------------------------------------------------------ import { makeI...
"""home URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
import os from ROOT import * values = open("RA7table.txt").readlines() print "Creating RA7 OnZ and OffZ signal regions plots..." gStyle.SetOptStat(0) OnZstack = THStack("OnZstack", "RA7 table: OnZ signal regions") hOnZ = TH1F("hOnZ", "RA7 table: OnZ signal regions", 15, 0, 15) hOnZ.SetFillColor(38) hOnZerror = TH1F...
var m, m1; !function(m) { var x, m2; m2 || (m2 = {}), "string" == typeof x || ("boolean" == typeof x, x.toString()); }(m || (m = {})), (function(m1) { var x, m2, m21; (m21 = m2 || (m2 = {})).m3 || (m21.m3 = {}), "string" == typeof x || ("boolean" == typeof x, x.toString()); })(m1 || (m1 = {}));
from django.contrib import admin from django.urls import re_path from dashboard import views urlpatterns = [ re_path(r'^$', views.dashboardCurrentTime), re_path(r'^t=(\d{2}):(\d{2}):(\d{2})$', views.dashboardRequestTime), ]
import BombSweeper from 'bombsweeper.js'; const default_replaces = { "N": "🟩", "*": "💣", "0": "⬜", "e0": "0️⃣", "1": "1️⃣", "2": "2️⃣", "3": "3️⃣", "4": "4️⃣", "5": "5️⃣", "6": "6️⃣", "7": "7️⃣", "8": "8️⃣", "F": "🚩" }; export default class extends BombSweeper { ...
import os from conan.tools.files import load_toolchain_args from conan.tools.gnu.make import make_jobs_cmd_line_arg from conan.tools.microsoft import unix_path from conans.client.build import join_arguments class Autotools(object): def __init__(self, conanfile): self._conanfile = conanfile toolc...
import numpy as np import matplotlib.pyplot as plt import scipy.stats as ss from matplotlib.animation import FuncAnimation class UpdateDist(object): def __init__(self, ax, prob=0.5): self.success = 0 self.prob = prob self.line, = ax.plot([], [], 'k-') self.x = np.linspace(0, 1, 200)...
/** * tng.js - png reader * Copyright (c) 2015, Christopher Jeffrey (MIT License). * https://github.com/chjj/tng */ var fs = require('fs') , util = require('util') , path = require('path') , zlib = require('zlib') , assert = require('assert') , cp = require('child_process') , exec = cp.execFileSync; /...
module.exports = { loader: 'style-loader', options: {} };
//! moment.js locale configuration //! locale : Italian (Switzerland) [it-ch] //! author : xfh : https://github.com/xfh ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'f...
'use strict'; function joinUriSegments(prefix, uri) { return prefix === '' ? uri : [prefix, uri].join('/'); } module.exports = joinUriSegments;
import axios from "../utils/axios"; class AuthService { signIn = (email, password) => { return new Promise((resolve, reject) => { axios.post("/api/home/login", { email, password }) .then(response => { if (response.data.user) { this.se...
import {featureService} from '../../../src/leaflet/services/FeatureService'; import {EditFeaturesParameters} from '../../../src/common/iServer/EditFeaturesParameters'; import {GetFeaturesByIDsParameters} from '../../../src/common/iServer/GetFeaturesByIDsParameters'; var editServiceURL = GlobeParameter.editServiceURL_l...
'use strict'; // Define the `carouselMain` module var carouselMain = angular.module('carouselMain', []); // Register `carouselMain` component, along with its associated controller and template carouselMain. component('carouselMain', { templateUrl: 'components/ui/carousel-main/carousel-main.template.html', ...
const colors = require('../graphics/colors'); module.exports = class Ctx { constructor(message, commandName, args) { this.message = message; this.channel = message.channel; this.guild = message.guild; this.user = message.author; this.member = message.member; this.com...
// FR lang variables // Modified by Motte, last updated 2006-03-23 tinyMCE.addToLang('',{ paste_text_desc : 'Coller comme du texte', paste_text_title : 'Faites CTRL+V pour coller le texte dans la fen&ecirc;tre.', paste_text_linebreaks : 'Conserver les retours &agrave; la ligne', paste_word_desc : 'Coller depuis Word',...
import argparse import logging import os import torch import torch.utils.data from model.config import cfg from model.engine.inference import do_evaluation from model.modeling.detector import build_detection_model from model.utils import dist_util from model.utils.checkpoint import CheckPointer from model.utils.dist_...
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { // Add your regex rules here, you can take telephone as an example "regex": "none", ...
const options = { loop: true, nav: true, dots: false, autoplayHoverPause: true, autoplay: true, navText: ["<i class='fas fa-chevron-left'></i>", "<i class='fas fa-chevron-right'></i>"], responsive: { 0: { items: 1, }, 576: { items: 2, }...
# Copyright 2020 Adam Liddell # # 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,...
goog.require('os.histo.Bin'); goog.require('os.histo.FilterComponent'); goog.require('os.histo.UniqueBinMethod'); describe('os.histo.UniqueBinMethod', function() { var method = new os.histo.UniqueBinMethod(); method.setField('field'); it('should get the correct string key', function() { var item = {field: '...
from abc import abstractmethod import abc from strategery.exceptions import TaskError class StrategeryFeature(metaclass=abc.ABCMeta): @classmethod def strategery_key(cls): return cls @staticmethod @abstractmethod def compute(*args, **kwargs): raise NotImplementedError('Strategery...
import { ThemeProvider } from 'styled-components' import Router from 'routes' import theme, { GlobalCSS } from 'theme' const App = () => ( <ThemeProvider theme={theme}> <GlobalCSS /> <Router /> </ThemeProvider> ) export default App
zipdata({"9502141":[15,"新潟市西区","内野潟端"],"9508623":[15,"新潟市中央区","美咲町","1丁目2番1号新潟美咲合同庁舎2号館"],"9502097":[15,"新潟市西区","寺尾東","3丁目14番41号"],"9508585":[15,"新潟市中央区","八千代","1丁目4-16"],"9500328":[15,"新潟市江南区","舞潟"],"9503341":[15,"新潟市北区","川西"],"9501464":[15,"新潟市南区","下道潟"],"9501144":[15,"新潟市中央区","祖父興野"],"9501196":[15,"新潟市西区","大野","2843...
const MPVController = require('./src/mpv.js'); const readline = require('readline'); let options = undefined; if(process.argv.length > 2){ options = { optionsPath: process.argv[2] } } let mpv = new MPVController(options); console.log(mpv); mpv.start(); mpv.on('data', (data) => { console.log(data); }); con...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'simpleencryptor.ui' # # Created: Wed Nov 15 00:20:41 2017 # by: pyside-uic 0.2.15 running on PySide 1.2.4 # # WARNING! All changes made in this file will be lost! import sys from PySide import QtCore, QtGui from modules.util import Uti...
declareUpdate(); const entityCollection = "jobInfoTestEntity"; const olderUri = "/" + entityCollection + "/older.json"; const newerUri = "/" + entityCollection + "/newer.json"; xdmp.documentInsert(olderUri, {"test": olderUri}, { permissions: [xdmp.permission("data-hub-common", "read"), xdmp.permission("data-hub-co...
/********************************************************************** * Copyright (c) 2021 Hilscher Gesellschaft fuer Systemautomation mbH * See LICENSE file **********************************************************************/ "use strict"; var querystring = require("querystring"); var client = require("../../...
import React from "react"; import "./DrawerToggleButton.css"; const drawerToggleButton = props => ( <button className="toggle-button" onClick={props.click}> <div className="toggle-button-line" /> <div className="toggle-button-line" /> <div className="toggle-button-line" /> </button> ); export default...
/** * @author zhixin wen <wenzhixin2010@gmail.com> * @version 1.2.1 * * http://wenzhixin.net.cn/p/multiple-select/ */ (function ($) { 'use strict'; // it only does '%s', and return '' when arguments are undefined var sprintf = function (str) { var args = arguments, flag = true, ...
# Required for Python to search this directory for module files # We only export public API here. from webkitpy.common.net.bugzilla.bugzilla import Bugzilla # Unclear if Bug and Attachment need to be public classes. from webkitpy.common.net.bugzilla.bug import Bug from webkitpy.common.net.bugzilla.attachment import At...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4915323a"],{"133c":function(t,e,r){"use strict";var n=r("d785"),a=r.n(n);a.a},"3cbc":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pan-item",style:{zIndex:t.zIndex,height:t...
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _c...
const React=require("react");function StackOverflowColor(e){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:32,height:32,strokeWidth:!0,stroke:!0},e),React.createElement("path",{fill:"#F48024",d:"M16 2C8.27812 2 2 8.27812 2 16c0 7.7219 6.27812 14 ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } require('reflect-metadata'); var http = require('http'); var SetCookieParser = _interopDefault(require('set-cookie-parser'));...
#!/usr/bin/env python2.7 # -*- coding:UTF-8 -*-2 u"""various.py Copyright (c) 2019 Yukio Kuro This software is released under BSD license. 様々な設定モジュール。 """ import inventory as __inventory import utils.const as _const class General(__inventory.Inventory): u"""汎用パラメータ管理。 """ __slots__ = () __PLAYER_SLO...
module.exports = createTask var fs = require('fs') , createConfigury = require('configury') , pick = require('lodash.pick') function createTask (pliers) { pliers('createBrowserConfig', function (done) { var config = createConfigury(__dirname + '/../../config.json')(process.env.NODE_ENV) , configWhite...
var portal = require('/lib/xp/portal'); var thymeleaf = __non_webpack_require__('/lib/thymeleaf'); var view = resolve('first.html'); var handleRequest = function (req) { var content = portal.getContent(); return { postProcess: true, body: thymeleaf.render(view, { mainRegion: content.page.regions.m...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],t):"object"==typeof exports?t(require("moment"),require("fullcalendar")):t(e.moment,e.FullCalendar)}("undefined"!=typeof sel...
import re import sqlite3 import json, pickle import unicodecsv as csv import pandas as pd import numpy as np import util from util import chinese_to_arabic CNETER_LATITUDE = 31.2304 CNETER_LONGTITUDE = 121.4737 RADIOUS_EARTH = 1 con = sqlite3.connect("data/lianjia/lianjia.db") cur = con.execute("select * from house_...
import argparse import json import os import sys from . import config, constants, update from .config.printjson import getjson from .messages import * def main(): # Hack around argparse's lack of optional subparsers if len(sys.argv) == 1: sys.argv.append("spec") try: with open(config.scr...
import BigNumber from 'bignumber.js' export default function formatUnit (base) { try { return new BigNumber(base) .shiftedBy(-18) .toFixed(2) .toString() } catch (error) { return 'N/A' } }
/*jshint node:true*/ /*jshint camelcase:false*/ // Generated on 2015-05-02 using // generator-distilled 0.5.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // If you want to recursively match all subfolders, use: // 'test/spec/**/*.js' module.expo...
define([ 'flight/lib/component' ], function(defineComponent) { 'use strict'; return defineComponent(FlightBehavior); function FlightBehavior() { this.attributes({ divSelector: 'div', spanSelector: 'span' }) this.after('initialize', function()...
''' Now I need to improve calibration of J0132 and by extension of UV Cet. First steps: - try concatenating the two data sets - can we force CASA to split them into scans? - otherwise return to AIPS and try to use it to mash J0132 and UV Cet together after shifting pcen - image J0132 and quiescent UV Cet - try running...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deactivate = exports.activate = void 0; const vscode = require("vscode"); const runFirstCommand_1 = require("./commands/runFirstCommand"); const openList_1 = require("./commands/openList"); const bundle_1 = require("./functions/bundle"...
# -*- using: utf-8 -*- # Author: Yahui Liu <yahui.liu@unitn.it> import os import glob import cv2 import numpy as np import statistics import argparse parser = argparse.ArgumentParser() parser.add_argument('--data_path', default='', help='/path/to/segmentation') args = parser.parse_args() def get_weights(labels_...
import React from 'react'; import propTypes from 'prop-types'; import { fitContent } from '@patternfly/react-table'; import { InUseProfileLabel } from 'PresentationalComponents'; import { TableToolsTable } from 'Utilities/hooks/useTableTools'; import { renderComponent } from 'Utilities/helpers'; import { conditionalFil...
""" fasta2bed.py - segment sequences ================================ :Tags: Genomics Sequences Intervals FASTA BED Conversion Purpose ------- This script takes a genomic sequence in :term:`fasta` format and applies various segmentation algorithms. The methods implemented (``--methods``) are: cpg output all loc...
webpackHotUpdate("static/development/pages/index.js",{ /***/ "./pages/index.tsx": /*!*************************!*\ !*** ./pages/index.tsx ***! \*************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _default = { key: 'D', suffix: 'aug9', positions: [{ frets: 'x54556', fingers: '021334', barres: 5 }, { frets: 'x70576', fingers: '030142' }, { frets: 'a9a9bx', fingers:...
export { default } from './UserInfoRequest.vue'
import React from 'react' import { IframeContainer } from './elements' const Vimeo = ({ data }) => { const { videoId } = data return ( <IframeContainer> <iframe src={`https://player.vimeo.com/video/${videoId}`} width="640" height="360" frameborder="0" title="Vide...
import numpy as np import torch from src.preprocess import load_ct, preprocess_ct, crop_patches from torch import nn from torch.autograd import Variable """" Classification model from team gtr123 Code adapted from https://github.com/lfz/DSB2017 """ config = {} config['crop_size'] = [96, 96, 96] config['scaleLim'] = [...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<316fb96ce91d0da571a5ab5e0d8308ef>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disabl...
import time from queue import Queue from threading import Thread db_dir_id = [] def get_max_dir_id(): return max(db_dir_id) if db_dir_id else 0 class DirIdQueue(Thread): """ 自动创建队列,拿到数据库最大的id,从而实现,既是自增id,又可以方便批量插入数据,但是能简单的获取到 id这一数据;假如,id需要马上用的情况,比如加入到缓存 """ def __init__(self): super(D...
class Units(object): def __init__(self): import numpy as np self._units = units = {} # lengths: conversion to m units['m'] = units['meter'] = units['meters'] = ('length', 1.0) units['mm'] = units['millimeter'] = units['millimeters'] = ('length', units['m'][1] / 1000) ...
/* * Scroll to the top */ $(window).bind("scroll",display); function display () { if($(document).scrollTop()>300) { //$("#top").show(); $("#top").fadeIn(300); }else { //$("#top").hide(); $("#top").fadeOut(300); } } /* * Baidu analytics */ var _hmt = _hmt || []; (function () { ...
//Grab the required packages var mongoose = require("mongoose"); var Schema = mongoose.Schema; var bcrypt = require("bcrypt-nodejs"); // Defining the Schema var PollSchema = new Schema({ name : {type: String, required:true, index : {unique:true}}, description : String, eventID : String...