text
stringlengths
3
1.05M
"""Base Class of an Adversarial Environments.""" import numpy as np from gym.spaces import Box from .adversarial_wrapper import AdversarialWrapper class ProbabilisticActionRobustWrapper(AdversarialWrapper): r"""Class that wraps an environment as a probabilistic action robust environment. A noisy action rob...
var select = require('../') var test = require('tape') var through = require('through2') var devnull = require('dev-null') test('non flowing mode', function (t) { var expected = { h1: [ [ 'open', '<h1>' ], [ 'text', 'whatever' ], [ 'close', '</h1>' ] ] } t.plan(expected.h1.length + 1) ...
const XML = require('pixl-xml') const _ = require('lodash') const parseBool = s => s === 'TRUE' const getArrayNode = node => Array.from(Array.isArray(node) ? node : [node]) const getStyleType = type => type === 'lager' || type === 'ale' ? 'beer' : type const potential = y => (y * 0.01 * 46) / 1000 + 1 const mash_...
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Jun 17 2015) ## http://www.wxformbuilder.org/ ## ## PLEASE DO "NOT" EDIT THIS FILE! ##########################################################################...
from flask import Flask from werkzeug.contrib.fixers import ProxyFix # Configuration DEBUG = True, SECRET_KEY = 'ssshhh it\'s a secret' WTF_CSRF_SECRET_KEY = 'a random string' # create app app = Flask(__name__) app.config.from_object(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) # import statement at end to avoid...
from time import sleep from PIL import Image, ImageFilter, Image, ImageDraw, ImageFont, ImageColor def _open(): """打开图像文件""" im = Image.open("./images/1.jpeg") im.show() def _info(): """图像信息""" im = Image.open("./images/1.jpeg") print(im.size) print(im.width) print(im.height) pr...
# pylint: disable=E1101 from __future__ import division import operator import warnings from datetime import time, datetime from datetime import timedelta import numpy as np from pandas.core.common import (_NS_DTYPE, _INT64_DTYPE, _values_from_object, _maybe_box, ...
coordinates_00FFFF = ((169, 198), (169, 199), (169, 200), (169, 201), (169, 202), (169, 203), (169, 204), (169, 205), (169, 206), (169, 207), (169, 209), (170, 188), (170, 190), (170, 191), (170, 192), (170, 193), (170, 194), (170, 195), (170, 196), (170, 197), (170, 210), (170, 211), (170, 212), (170, 213), (171, 18...
module.exports = new Date(2024, 9, 22)
import subprocess import os import json def run(): json_fn = os.path.join(os.path.dirname(__file__), 'mq_config.json') with open(json_fn, 'r') as f: params = json.load(f) cmd = "docker run --restart=always -v /tmp:/tmp -e KAFKA_BROKER_SERVER="+params['server_ip']+" -e KAFKA_TOPICS=comman...
import graphene from flask_graphql_auth import mutation_jwt_required, get_jwt_identity from app.models import User from app.schema.unions import ResponseUnion from app.schema.fields import ResponseMessageField class DeleteQuickMemoMutation(graphene.Mutation): class Arguments(object): token = graphene.Str...
const { createLogger, format, transports } = require("winston"); require("winston-mongodb"); const { printf, colorize, combine, label, timestamp, prettyPrint, splat } = format; const formatMessage = printf((msg) => { return `${msg.timestamp}-${msg.label} - ${msg.level}: ${msg.message}`; }); module.exports.logg...
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'react-native-vector-icons/MaterialIcons'; import { Container, Logo, Cart, Item, LogoImg } from './styles'; import logo from '../../assets/images/logo.png'; function Header({ navigation, cartSize }) { Header.propTypes = { navigation...
import { createStore, combineReducers, applyMiddleware } from "redux"; import thunk from "redux-thunk"; import patientsReducer from "./patients" import selectedPatient from "./selectedPatient" import groups from "./groups" import settings from "./settings" import smart from "...
# Copyright (c) 2016 Clinton Knight # 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 requir...
var stm32f0xx__conf_8h = [ [ "assert_param", "stm32f0xx__conf_8h.html#a631dea7b230e600555f979c62af1de21", null ] ];
from synthesizer.tacotron2 import Tacotron2 # CPU-based from synthesizer.tacotron_tpg import Tacotron2 as Tacotron_tpg # GPU-Based from synthesizer.hparams import hparams from multiprocess.pool import Pool # You're free to use either one #from multiprocessing import Pool # from synthesizer import audio from pathli...
# coding: utf-8 import os import json import logging logger = logging.getLogger(__name__) _CURRENT_DIR = os.path.abspath(os.path.dirname(__file__)) JOURNALS = {} def _load_query_from_file(file_name): if os.path.isdir(file_name): return None with open(file_name, 'r') as f: try: ...
#!/usr/bin/python import sys, re, random, os, multiprocessing import argparse import json import GenePredBasics, PSLBasics, FileBasics, BigFileBasics from shutil import rmtree # Pre: A long read psl file. Any number of genepred files in the format "Gene Predictions and RefSeq Genes with Gene Names". # gzipped ...
from django import forms from django.forms import ModelForm, Textarea, TextInput from .models import Order class OrderCreateForm(forms.ModelForm): class Meta: model = Order fields = ['address','cc_number', 'cc_expiry', 'cc_code'] # address = { # 'name': Textarea(attrs={'cols': ...
SET_WEBDRIVER = '''() => {Object.defineProperty(navigator, 'webdriver', {get: () => undefined})}''' SET_USER_AGENT = '''() => {Object.defineProperty(navigator, 'userAgent', {get: () => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36'})}''' SET_A...
import { defineMessages } from 'react-intl'; export default (configContext) => { const { AutocompleteInput, TextInput, TermPickerInput, } = configContext.inputComponents; const { configKey: config, } = configContext.configHelpers; return { document: { 'ns2:concepts_common': { ...
import { createSuite } from '../utils/suite.js' import { testId } from './id.js' import { testVersion } from './version.js' import { testStop } from './stop.js' import { testResolve } from './resolve.js' import { testDns } from './dns.js' const tests = { id: testId, version: testVersion, dns: testDns, stop: te...
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
animal='leon' print("El animal == 'leon'?, debe ser cierto") print(animal=='leon') print("El animal == 'tigre'? debe ser falso") print(animal=='tigre') ciudad='saltillo' print("La ciudad == 'monterrey'?, debe ser cierto") print(ciudad=='saltillo') print("La ciudad == 'arteaga'? debe ser falso") print(ciudad=='arteaga...
function showHidePages(showPage, hidePage) { showPage.height = Ti.UI.SIZE; showPage.show(); hidePage.hide(); hidePage.height = 0; hidePage = null; } function showView(ele) { ele.height = Ti.UI.SIZE; ele.show(); } function hideView(ele) { ele.hide(); ele.height = 0; ele = null; ...
$(document).ready(function() { $('.add_button').click(function() { var button; var list; button = $(this); // объект кнопка $.ajax({ url: '/get_parameters', type: "POST", headers: { 'X-CSRF-Token': $('meta[name="csrf-token"]').attr(...
(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[47],{2432:function(e,t,a){"use strict";a.r(t);var n=a(83),r=a(1),c=a.n(r),i=a(51),l=a(2411),o=a(2380),s=a(2471),u=a(2364),m=a(2415),p=a(2358),d=a(85),f=a(84),g=a(416),v=a.n(g),b=a(477),E=a(283),h=Object(i.a)((function(){return{compact:{paddi...
tinymce.init({ selector: '#myTextarea', image_class_list: [ {title: 'None', value: 'test1'}, {title: 'Lightbox', value: 'lightbox'}, ], // plugins: 'image code', //方向从左到右 directionality: 'ltr', convert_urls: false, plugins: [ 'advlist autolink link image lists charm...
require('@babel/register'); ({ ignore: /node_modules/ }); require('@babel/polyfill'); const HDWalletProvider = require('@truffle/hdwallet-provider'); let mnemonic = 'guess clock off tooth warrior ridge remind equip gloom entire tail general'; let testAccounts = [ "0x6747c2c1254fb55b1d6973afd8619b49c148027822ac18...
# Usage: # # To play a note with frequency 250 Hz (i.e. 1000/4) # # button_piezo(2) # # Note, the argument can only be an integer so the range of notes is very # restrictive and approximate: # # Note Frequency Argument # B4 493.88 Hz -> 1 # B3 246.94 Hz -> 2 # E3 164.81 Hz -> ...
# # 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 us...
var map_adbfe6001fab48c5a1016fbdfe94efbf = L.map( "map_adbfe6001fab48c5a1016fbdfe94efbf", { center: [-22.9, -43.4], crs: L.CRS.EPSG3857, zoom: 11, zoomControl: true, prefe...
"""Install script for setuptools.""" from setuptools import setup setup( name='cpmolgan', version='0.1', packages=['cpmolgan'], url='https://github.com/pamzgt/CPMolGAN', license='MIT License', author='Paula A. Marin Zapata, Oscar Méndez-Lucio', author_email='paula.marinzapata@bayer.com, o...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/guicliu/ue_folder/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -D /home/guicliu/ue_folder/cmake_targets...
import datetime import uuid import acme from aiohttp import web from sqlalchemy import select, event from sqlalchemy.exc import DBAPIError from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.orm import sessionmaker, selectinload from acmetk import models from acmetk.models import ( ...
""" _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |: 1 | |: 1 | |::.. ...
# -*- coding: utf-8 -*- # @Time : 2022/3/19 8:10 上午 # @Author : Kevin # @File : api_runner.py # @Software: PyCharm import pytest if __name__ == '__main__': pytest.main(["auto_api/baidu_demo/testcases/", "--clean-alluredir", "--html=auto_api/reports/report.html"])
#!/usr/bin/env python3 # pyre-strict # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the "hack" directory of this source tree. # # A family of code generators, # CodeGenerator just emitting LP code(raw Stable Model) # HackGenerator...
#!/usr/bin/env python # Reference: # https://www.tensorflow.org/get_started/input_fn # https://github.com/tensorflow/tensorflow/blob/r1.2/tensorflow/examples/tutorials/input_fn/boston.py def repl( expression, globals=None, locals=None ): for expression in expression.splitlines(): expression = expression.str...
from pathlib import Path from io import BytesIO import sys sys.path.append(str(Path(__file__).resolve().parent.parent)) from pywabt import Module, opcodes from unittest import TestCase, main parent_dir = Path(__file__).resolve().parent.parent class ModuleTest(TestCase): def test_module(self): module = Module("test")...
/* r3964 linediscipline for linux * * ----------------------------------------------------------- * Copyright by * Philips Automation Projects * Kassel (Germany) * http://www.pap-philips.de * ----------------------------------------------------------- * This software may be used and distributed according to th...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.useIsFetching = useIsFetching; var _react = _interopRequireDefault(require("react")); var _notifyManager = require("../core/notifyManager"); var _utils = require("../core/utils"); ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[19],{JJko:function(e,t,a){"use strict";a.r(t);a("IzEo");var n,r,l,s,i=a("bx4M"),o=(a("Mwp2"),a("VXEj")),c=(a("iQDF"),a("+eQT")),d=a("jehZ"),u=a.n(d),m=(a("+L6B"),a("2/Rp")),p=(a("qVdP"),a("jsC+")),f=(a("Pwec"),a("CtXQ")),h=(a("lUTK"),a("BvKs")),E=(a("2qtc"),a("...
import base64 import json from typing import Dict, Optional import attr import pytest from aiohttp import web from aiohttp.streams import EmptyStreamReader from flask import Flask from hypothesis import Phase from requests.auth import HTTPDigestAuth import schemathesis from schemathesis import loaders from schemathes...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.ShieldX = React.forwardRef(function (props, ref) { var attrs = { "fill": "current...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[81],{ /***/ "./frontend/src/@core/comp-functions/forms/form-validation.js": /*!********************************************************************!*\ !*** ./frontend/src/@core/comp-functions/forms/form-validation.js ***! \*****************************...
#include "base64.h" #include "unifile.h" #include "convbuf.h" #include <errno.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char * const argv[]) { int decode = 0; int buffsize = 0; int wrapsize = 0; double readtime = -1; int opt; while((opt = getopt(argc, ...
def add_time(start_time, duration, start_day=None) : pieces = start_time.split() hour_min = pieces[0].split(":") hour = int(hour_min[0]) min = int(hour_min[1]) mod = pieces[1] if mod == "AM" : tot_min = hour*60+min if mod == "PM" : tot_min = hour*60+min+720 # there's 720 min in 12 h add_...
// --------------------------------------------------------------------- // // Copyright (c) 2011 - 2020 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
def cloneGraph(self, node: 'Node') -> 'Node': # for each node # set node to seen in hashmap # copy node and neighbors # for each neighbor, perform the same operation unless it is already processed if not node: return None processed = {} def dfs(node): if node in processed:...
# Windows specific tests from ctypes import * import unittest, sys from test import support import _ctypes_test # Only windows 32-bit has different calling conventions. @unittest.skipUnless(sys.platform == "win32", 'Windows-specific test') @unittest.skipUnless(sizeof(c_void_p) == sizeof(c_int), ...
from flask import Flask from flask_restful import Api, Resource, reqparse from caller import CubeSolver from get_solution import translateMoves from serverInfo import serverInfo class Solver(Resource): def get(self, cube): solution = CubeSolver.solveCube(cube) print(solution) tSolution = t...
# -*- coding: utf-8 -*- u""" Mayaラッパーオブジェクトの抽象基底クラス。 """ import sys import types from ...common import * from ..typeinfo import isDerivedNodeType as _isDerivedNodeType from ..typeregistry import nodetypes from ._api2mplug import ( _1_mpath, _1_mnode, makePlugTypeInfo, ) import maya.api.OpenMaya as _api2 import ...
GOLD = ["7374", "7857", "7990", "8065", "8250"] ANNOTATORS = ["01", "02", "03", "04", "05", "06"] DOC_HEADER = ["order", "doc_id", "assigned", "nr_sens_calculated", "nr_sens", "annotator_1", "annotator_2", "assigned_2"] CYCLE_FILE = "../input/batch_cycles.csv" CYCLE_COL = "cycle" ASSIGNMENT_TXT = "assignment.txt" ASS...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
import React from 'react'; export function toArrayChildren(children) { var ret = []; React.Children.forEach(children, function (child) { ret.push(child); }); return ret; } export function findChildInChildrenByKey(children, key) { var ret = null; if (children) { children.forEach(function (child) { ...
// Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REGISTERS_H #define REGISTERS_H #include <vector> #include "magma_util/macros.h" #include "magma_util/register_bitfields.h" #include "magma_util/...
import os import sys import json import time import traceback import networkx as nx import community_louvain as cm import collections import math import matplotlib.pyplot as plt import seaborn as sns import datetime from matplotlib import rcParams import random import pandas as pd from pyvis.network import Network impo...
from enum import Flag, auto class NodeType(Flag): HOT = auto() WARM = auto() PERCOLATE = auto()
""" Exposes regular REST commands as services. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/hassio/ """ import asyncio import logging import os import re import async_timeout import aiohttp from aiohttp import web from aiohttp.hdrs import CONTENT_TYPE...
(function(n){"use strict";var t=function(){return{restrict:"AE",scope:{ngModel:"=?",highlightDays:"=?",dayClick:"=?",dayHover:"=?",rightClick:"=?",month:"=?",monthChanged:"=?",monthClick:"=?",weekDaysOff:"=?",allDaysOff:"=?",daysAllowed:"=?",sundayFirstDay:"=?",disableNavigation:"=?",disallowBackPastMonths:"=?",disallo...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Button from '@material-ui/core/Button'; import ThumbDown from '@material-ui/icons/ThumbDown'; import { translate } from 'react-admin'; import compose from 'recompose/compose'; import { reviewRejec...
function novoElemento(tagName, className) { const elem = document.createElement(tagName) elem.className = className return elem } function Barreira(reversa = false) { this.elemento = novoElemento('div', 'barreira') const borda = novoElemento('div', 'borda') const corpo = novoElemento('div', '...
from mock import patch from requests.exceptions import ConnectionError, Timeout from cla_public.apps.checker.constants import NO, YES from cla_public.apps.base.tests import FlaskAppTestCase class TestApiTimeout(FlaskAppTestCase): def setUp(self): super(TestApiTimeout, self).setUp() self.client =...
# !/usr/bin/env python3 ################################################################################### # # # Program purpose: Get current username of user in system # # Program Author : Happi Yvan <ivens...
// MESSAGE RC_CHANNELS_SCALED PACKING #define MAVLINK_MSG_ID_RC_CHANNELS_SCALED 34 MAVPACKED( typedef struct __mavlink_rc_channels_scaled_t { uint32_t time_boot_ms; /*< Timestamp (milliseconds since system boot)*/ int16_t chan1_scaled; /*< RC channel 1 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) I...
"""Redirect stdout (:mod:`fluiddyn.io.redirect_stdout`) ========================================================== """ import contextlib import io import os import pathlib from typing import TextIO, Union __all__ = ["stdout_redirected"] @contextlib.contextmanager def stdout_redirected( doit: bool = True, t...
import argparse import os import glob from tqdm import tqdm from processor import ImageProcessor def get_args(): parser = argparse.ArgumentParser('Handrail safety monitoring.') parser.add_argument('--image-path', type=str, help='source') parser.add_argument('--image-dir', type=str, help='source') par...
{ return resolveAsset(this.$options, "filters", id, true) || identity; }
/* * INDEX: 0100: STARTUP 0200: GEOLOCATION / LANGUAGE / LOCALE 0300: QUIET FOX 0400: BLOCKLISTS / SAFE BROWSING 0500: SYSTEM ADD-ONS / EXPERIMENTS 0600: BLOCK IMPLICIT OUTBOUND 0700: HTTP* / TCP/IP / DNS / PROXY / SOCKS etc 0800: LOCATION BAR / SEARCH BAR / SUGGESTIONS / HISTORY / FORMS 0900: PASSW...
/*! * ${copyright} */ //Provides class sap.ui.model.odata.v4.lib._V2MetadataConverter sap.ui.define([ "./_Helper", "./_MetadataConverter", "sap/base/Log", "sap/ui/thirdparty/jquery" ], function (_Helper, _MetadataConverter, Log, jQuery) { "use strict"; var sClassName = "sap.ui.model.odata.v4.lib._V2MetadataCo...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc.5-master-9082e4a */ (function( window, angular, undefined ){ "use strict"; /** * Initialization function that validates environment * requirements. */ angular .module('material.core', [ 'ngAnimate', 'materi...
import logging import numpy as np import pandas as pd from anndata import AnnData from os import PathLike from pathlib import Path from scipy.sparse import csr_matrix from typing import Generator, Optional, Sequence, Tuple, Union from .. import io _logger = logging.getLogger(__name__) def try_convert_to_dataframe...
"""Docker Exec Component""" from ..objects.component import Activation, Component from ..systems.execution import docker class Dexec(Component): """ Docker Exec Class Provides a command to access the project container via bash prompt with the option volume map the contents of the project into the con...
#ifndef __LINUX_COMPILER_WRAPPER_H #define __LINUX_COMPILER_WRAPPER_H 1 #include_next <linux/compiler.h> #ifndef __percpu #define __percpu #endif #ifndef __rcu #define __rcu #endif #ifndef READ_ONCE #define READ_ONCE(x) (x) #endif #endif
import subprocess from handcam.ltt.util.TFTools import ( _DatasetInitializerHook, shuffle_dataset, per_sequence_standardization, per_sequence_standardization_rgbd, ) import tensorflow as tf import glob import sys import numpy as np import six import os import pickle import datetime # from handcam.ltt...
import base64 import json from kubernetes import client from libs.api import API_KEY_NAME, get_settings_api_url from libs.paths.experiments import get_experiment_logs_path, get_experiment_outputs_path from polyaxon_k8s import constants as k8s_constants from scheduler.spawners.templates import constants def get_map_...
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
const utils = require('../../../utils'); module.exports = { '2020-11-01':{ searchContentDocuments:(req_params) => { return Object.assign(req_params, { method:'GET', api_path:'/aplus/2020-11-01/contentDocuments', restore_rate:0.1 }); }, createContentDocument:(req_params...
lista_numeros = [1,2,3,4,5,6,7,8,9,10,11,12] lista_meses = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"] def mes_correspodente(n): assert n in lista_numeros, "O número deve ser natural entre 1 e 12" mes = lista_meses[lista_numero...
""" Mu API RPython binding with C backend. This file is auto-generated and then added a few minor modifications. NOTE: THIS FILE IS *NOT* RPYTHON. """ from rpython.rtyper.lltypesystem import rffi from rpython.rtyper.lltypesystem import lltype class CCall(object): __slots__ = ('fnc_name', 'args', 'rtn_var', 'conte...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import math import functools import torch import torch.nn as nn import torch.nn.init as init import torch.optim as optim import models def update_argparser(parser): models.update_argparser(parser) args,...
/*global loadBodyHTML*/ 'use strict'; mocha.globals(['DownloadUI']); requireApp('settings/test/unit/mock_l10n.js'); // Mockup the API require('/shared/test/unit/mocks/mock_download.js'); require('/shared/test/unit/mocks/mock_navigator_moz_downloads.js'); // We retrieve them for stubbing requireApp('settings/test/uni...
import Em from 'ember'; export default Em.Mixin.create({ beforeModel: function() { if (this.session.get('isActive')) { this.transitionTo('authenticated'); } } });
/* specfunc/gsl_sf_coulomb.h * * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman * * 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...
# coding: utf-8 # User auth PERMISSION_ENTERPRISE = 0 PERMISSION_CITY = 1 PERMISSION_PROVINCE = 2
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
from flask import Flask from flask_restful_swagger_2 import Api from rdb.rdb import connect_to_db, create_all from flask_cors import CORS from resources.annotationTaskResource import AnnotationTaskResource, AnnotationTaskListResource, UserAnnotationTaskListResource from resources.entryResource import AnnotationTaskEntr...
""" Module for generating and analyzing transformation operations. Several functions for working with matrices are provided. The class OperationAnalyzer allows for comparison between pymatgen.core.operations.SymmOp objects, and can be used to identify conjugate operations. The orientation class can be used to identify ...
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _RWStepG...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging from...
#! /usr/bin/env python3 # Python standard library includes import os import re import sys import time # Includes that have to be installed import psutil from textgenrnn import textgenrnn def main(): # Control parameters ## Where we look for files (all relative to the directory this script is in) inputdir = "data" ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.SsdataDataserviceRiskRainscoreQueryModel import SsdataDataserviceRiskRainscoreQueryModel class SsdataDataserviceRiskRainscoreQueryRe...
import React from 'react'; import { connect } from 'react-redux'; import ReactTable from 'react-table-6'; import 'react-table-6/react-table.css'; import history from '../../../routes/history'; import { editProduct, deleteProduct } from '../../../actions/productActions'; const ProductTable = (props) => { const handl...
export * from '@styled-icons/material/CardGiftcard';
/** * This view is used to present the details of a single Ticket. */ Ext.define('Ticket.model.User', { extend: 'Ticket.model.Base', fields: [ 'name', { name: 'organizationId', reference: 'Organization' }, { name: 'projectId', reference: 'Project' } ], manyToMany: 'Group' });...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
(function(){ var domUtils = UM.dom.domUtils; var widgetName = 'video'; UM.registerWidget( widgetName,{ tpl: "<link rel=\"stylesheet\" type=\"text/css\" href=\"<%=video_url%>video.css\" />" + "<div class=\"edui-video-wrapper\">" + "<div id=\"eduiVideoTab\">" + "...
from duplicate_questions.data.data_indexer import DataIndexer from duplicate_questions.data.dataset import TextDataset from duplicate_questions.data.instances.sts_instance import STSInstance from ..common.test_case import DuplicateTestCase class TestDataIndexer(DuplicateTestCase): def test_fit_word_dictionary_re...