text
stringlengths
3
1.05M
// Regular expression that matches all symbols in the `Linear_B` script as per Unicode v5.2.0: /\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA]/;
import os import numpy as np from six.moves import cPickle import matplotlib.pyplot as plt from tensorflow import keras import helper from tfomics import utils, explain, metrics #------------------------------------------------------------------------------------------------ thresholds = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6...
# Copyright (c) 2012-2016 Seafile Ltd. # -*- coding: utf-8 -*- from django.db import models from seahub.base.fields import LowerCaseCharField from seahub.utils import is_pro_version KEY_SERVER_CRYPTO = "server_crypto" VAL_SERVER_CRYPTO_ENABLED = "1" VAL_SERVER_CRYPTO_DISABLED = "0" KEY_USER_GUIDE = "user_guide" VAL...
var pikaday = require('pikaday');
# -*- coding: utf-8 -*- # Copyright 2020 Google 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...
""" When data is uploaded or downloaded an arbitrary set of transformations may be applied to the data in transit including encryption. This file assembles pipelines to apply these transformations depending on configuration. """ from bversion.backup import crypto #++++++++++++++++++++++++++++++++++++++++++++++++++++++...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Created by techno at 27/05/19 #Feature: #Enter feature name here # Enter feature description here #Scenario: # Enter scenario name here # Enter steps here import numpy as np a = np.array([ True,True,False,False]) b = np.array([ True,False,True,False]) print ( np.l...
import React from 'react'; import ActionAreaOutcomesSidebar from './left-sidebars/action-area-outcomes'; import CGIARSidebar from './left-sidebars/cgiar'; import SDGIndicators from './left-sidebars/sdg-indicators'; const getComponentForType = (type, props) => { switch (type) { case 'sdg-indicators': // esl...
import defined from "../../Core/defined.js"; import DeveloperError from "../../Core/DeveloperError.js"; import knockout from "../../ThirdParty/knockout.js"; import createCommand from "../createCommand.js"; /** * The view model for {@link HomeButton}. * @alias HomeButtonViewModel * @constructor * * @param {Scene} ...
# Importing the libraries import pandas as pd import re import nltk # nltk.download("stopwords") from nltk.corpus import stopwords from nltk.stem import PorterStemmer from nltk.stem import WordNetLemmatizer from sklearn.feature_extraction.text import CountVectorizer from sklearn.model_selection import train_test_split...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
var classarm__compute_1_1_g_c_normalization_layer = [ [ "GCNormalizationLayer", "classarm__compute_1_1_g_c_normalization_layer.xhtml#a0f6772d2f730cfaa60a07d172094bfb7", null ], [ "configure", "classarm__compute_1_1_g_c_normalization_layer.xhtml#a8d636dd5daa60351d1c2b941a9260ed6", null ], [ "run", "classarm_...
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Hoverlabel(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.annotation" _path_str = "layout.annotation.hoverlabel" _valid_props = {"bgcolo...
# # @lc app=leetcode id=122 lang=python3 # # [122] Best Time to Buy and Sell Stock II # # https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/description/ # # algorithms # Easy (55.94%) # Likes: 2166 # Dislikes: 1702 # Total Accepted: 573K # Total Submissions: 1M # Testcase Example: '[7,1,5,3,6,4]' ...
import React, { useEffect, useCallback } from 'react'; import { BackHandler } from 'react-native'; import { createStackNavigator } from '@react-navigation/stack'; import { useFocusEffect, CommonActions } from '@react-navigation/native'; import { useMachine } from '@xstate/react'; import { AccountScreen } from '../../f...
const { nextAndBackPaths, nextForkPath } = require('../utils/wizard-helpers') function arrangeSessionWizardPaths (req) { const CRN = req.params.CRN const sessionId = req.params.sessionId var paths = [ `/cases/${CRN}`, `/arrange-a-session/${CRN}/${sessionId}`, `/arrange-a-session/${CRN}/${session...
from unittest import TestCase try: from unittest.mock import MagicMock as Mock except ImportError as e: from mock import Mock from skypyblue.core import ConstraintSystem, Mvine from skypyblue.models import * from fixture import Fixture class UpdateMethodGraphTests(TestCase): def setUp(self): self.build_mvi...
import Firebase from 'firebase' import * as Actions from './actions' export default (config) => { return next => (reducer, initialState, middleware) => { const defaultConfig = { userProfile: null } const store = next(reducer, initialState, middleware) const {dispatch} =...
from django.core.management.base import BaseCommand from random import choice, randrange class Command(BaseCommand): def handle(self, *args, **options): """ creates a password between 12 and 20 characters in length """ password = "" try: with open("/usr/share/dict/words") as ...
import requests import re import sys import os import json import random import calhelper from datetime import timedelta from datetime import datetime class ScoreInfo: def __init__(self): self.name = '' self.id = '' self.cla = '' self.points = '' self.gpa = '' self.s...
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. // // 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 // // Un...
/** Returns a function which takes a Datum and index as input, and returns a formatted label object. */ export default function labelTransformFactory(_ref) { var scale = _ref.scale, labelFormat = _ref.labelFormat; return function (d, i) { return { datum: d, index: i, text: "" + labelForm...
import argparse import numpy as np import os import torch import torch.nn as nn from torch.autograd import Variable from torchvision import datasets, transforms from models import * # Prune settings parser = argparse.ArgumentParser(description='PyTorch Slimming CIFAR prune') parser.add_argument('--dataset', type=st...
from typing import Union from werkzeug.datastructures import FileStorage from .validator import Validator, ValidationError, StopValidation class MimeTypes(Validator): def __init__(self, types: Union[list, tuple], message: Union[str, None] = None, parse: bool = True) -> None: self.types = types sel...
/*global define*/ define(['can', 'app/models/model', 'app/models/api-path'], function (can, Model, API) { 'use strict'; /** * Articles * @author dorajiupload * @namespace upload */ /** * Articles model. * @constructor * @type {*} * @name blog#Articles */ v...
import uuid from unittest.mock import ANY, patch import graphene import pytest from django.core.exceptions import ValidationError from saleor.checkout.models import Checkout from saleor.checkout.utils import ( add_voucher_to_checkout, clean_checkout, is_fully_paid) from saleor.graphql.core.utils import str_to_enu...
// ==UserScript== // @name PupilPath Plus // @namespace https://github.com/DeathHackz/PupilPathPlus // @version 4.0.2 // @description Calculate Your PupilPath Cumulative Average & More // @match https://*.pupilpath.skedula.com/* // @author DeathHackz // @copyright 2019 DeathHackz...
/* --------------------------------------------------------------------------- * * (c) The GHC Team, 2000-2008 * * Sparking support for THREADED_RTS version of the RTS. * -------------------------------------------------------------------------*/ #include "rts/PosixSource.h" #include "Rts.h" #include "Schedule....
''' Defines an agent mind that attacks any opponent agents within its view, attaches itself to the strongest plant it finds, eats when its hungry, ''' import random, cells import math, numpy class AgentType(object): QUEEN = 0 WORKER = 1 FIGHTER = 2 BUILDER = 3 class MessageType(object): FOUND = 0 DEFEND = 1 ...
$(document).ready(function () { /** * jquery lang master created dynamically * @author Mustafa Zeynel Dağlı * @since 15/05/2018 */ $("#langCode").jsLangMaster(); /** * easyui tree extend for 'unselect' event * @author Mustafa Zeynel Dağlı * @since 04/04/2016 */ $.extend($.fn.tree.methods,{ unselect:fu...
import random import glob import os from cv2 import sort import random from graspnetAPI.grasp import RectGrasp import numpy as np from numpy.lib.type_check import imag import torch import torch.utils.data from graspnetAPI import GraspNet from utils.dataset_processing import grasp, image from detectron2.layers import...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ test_cq.py: Testing module used to easily test answers to Code Quest challenges through the use of unittest. When run, this will go through the working directory looking for a group of files that follow the naming scheme: 'Prob(xx).in.txt' - Input to solut...
/* eslint-disable no-param-reassign */ /* Copyright 2020-2021 Lowdefy, 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 requir...
__title__ = 'tld.utils' __author__ = 'Artur Barseghyan' __copyright__ = 'Copyright (c) 2013-2014 Artur Barseghyan' __license__ = 'GPL 2.0/LGPL 2.1' __all__ = ('update_tld_names', 'get_tld', 'Result',) import os from six import PY3 from six.moves.urllib.parse import urlparse from six.moves.urllib.request import urlope...
""" ------------------------------------------------------------------------------ The MIT License (MIT) Copyright (c) 2016 Newcastle University 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 with...
// This array contains the coordinates for all bus stops between MIT and Harvard const busStops = [ [-71.093729, 42.359244], [-71.094915, 42.360175], [-71.0958, 42.360698], [-71.099558, 42.362953], [-71.103476, 42.365248], [-71.106067, 42.366806], [-71.108717, 42.368355], [-71.110799, 42.369192], [-71...
/* * MIT License * * Copyright (c) 2020 Nolonar * * 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, modif...
from bcc import BPF from datetime import datetime BPF_PROGRAM = r""" typedef unsigned __bitwise __poll_t; #include <linux/fs.h> #include <linux/fuse_i.h> struct data_t { u32 opcode; u64 nodeid; u64 ts; char process[TASK_COMM_LEN]; }; BPF_PERF_OUTPUT(events); int kprobe__fuse_simple_request(struct p...
/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined...
let SetBuilder = { build : function(slots) { let set = {}; let hashContainer = []; for (let i = 0; i < slots; i++) { hashContainer[i] = []; } let hashFunction = function(str) { var hash = 0, i, chr; if (str.length === 0) return hash; ...
import os from tinydb import TinyDB from tinydb.middlewares import CachingMiddleware from tinydb.storages import MemoryStorage, JSONStorage doc = {'none': [None, None], 'int': 42, 'float': 3.1415899999999999, 'list': ['LITE', 'RES_ACID', 'SUS_DEXT'], 'dict': {'hp': 13, 'sp': 5}, 'bool': [True, Fa...
//based loosely on bostock's example and //http://bl.ocks.org/d3noob/5141278 // Symbol collection: structure and attributes // Each symbol consists of a set of mandatory and optional attributes; optional // attributes maybe assignmed a default value // Symbol JSON structure: //"symbols: [ // {"id: : int, ...
# coding: utf-8 # # 20 newsgroup text classification with BERT finetuning # # In this script, we'll use a pre-trained BERT # (https://arxiv.org/abs/1810.04805) model for text classification # using TensorFlow 2 / Keras and HuggingFace's Transformers # (https://github.com/huggingface/transformers). This notebook is #...
# -*- coding: utf-8 -*- """ Created on Sun May 30 19:40:18 2021 @author: raju """ import requests url = "https://language-translation.p.rapidapi.com/translateLanguage/detect-language" querystring = {"text":"Привет, мой дорогой друг!"} headers = { 'x-rapidapi-key': "5d797ab107mshe668f26bd044e64p1f...
from __future__ import absolute_import import six from uuid import uuid4 from six.moves.urllib.parse import urlencode from django import forms from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.utils import timezone from django.uti...
//===- Utils.h - Misc utilities for the front-end ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
import unittest from pyalink.alink import * import numpy as np import pandas as pd class TestTextSimilarityPairwise(unittest.TestCase): def test_textsimilaritypairwise(self): df = pd.DataFrame([ [0, "a b c d e", "a a b c e"], [1, "a a c e d w", "a a b b e d"], [2, "c d e...
from django.http import request from django.urls import path, include from django.conf import settings from django.contrib.auth import views as auth_views from django.conf.urls.static import static from . import views from users import views as user_views urlpatterns = [ path('', views.home, name='Fizzle-Home'), ...
import pandas as pd import numpy as np from scipy.optimize import curve_fit def lin_func(x, a, b): return a + b * x def exp_func(x, a, b): return a * np.exp(b * x) def logi_func(x, L, x0, k): return L / (1 + np.exp(-1 * k * (x - x0))) def gauss_func(x, a, x0, sigma): return a * np.exp(-(x - x0) ...
//--------------------------------------------------------------------------------------- // Copyright (c) 2001-2019 by PDFTron Systems Inc. All Rights Reserved. // Consult legal.txt regarding legal and license information. //--------------------------------------------------------------------------------------- #i...
import torch from torch.utils.data import Dataset import os import numpy as np import random from torchvision import transforms from PIL import Image import cv2 class FaceDataSet(Dataset): def __init__(self, dataset_path, batch_size): super(FaceDataSet, self).__init__() '''picture_dir_list = [] ...
""" Django settings for metavar project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
# -*- coding: utf-8 -*- """ Created on Tue Dec 4 18:57:58 2018 """ import sys sys.path.append('/bigwork/nhbbzhux/Tools/mypip/lib/python3.5/site-packages') from fproj import fproj ########### Input ########### str_nstate_left = input('Input the number of the state you on the left side: ') str_nstate_right = input(...
# -*- coding: utf-8 -*- from unittest import TestCase from pyleecan.Classes.Mesh import Mesh from pyleecan.Classes.NodeMat import NodeMat from pyleecan.Classes.ElementMat import ElementMat import numpy as np class unittest_interface(TestCase): """unittest for elements and nodes getter methods""" def setUp(s...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef K4ADEPTHPIXELCOLORIZER_H #define K4ADEPTHPIXELCOLORIZER_H // System headers // #include <algorithm> // Library headers // #include "k4aimgui_all.h" // Project headers // #include "k4apixel.h" namespace viewer { ...
// // MioInteractMessegeVC.h // DuoDuoPeiwan // // Created by Mimio on 2019/10/18. // Copyright © 2019 Brance. All rights reserved. // #import "MioViewController.h" NS_ASSUME_NONNULL_BEGIN @interface MioInteractMessegeVC : MioViewController @end NS_ASSUME_NONNULL_END
/* * 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 cause incorrect behavior and will be lost if the code is * regenerated. */ '...
import React, { Component, Fragment } from 'react' import Link from 'sw-valuelink' import CSSModules from 'react-css-modules' import styles from '../PartialClosure/PartialClosure.scss' import { connect } from 'redaction' import actions from 'redux/actions' import { BigNumber } from 'bignumber.js' import { Redirect }...
from typing import List from torch import Tensor from hw_asr.base.base_metric import BaseMetric from hw_asr.base.base_text_encoder import BaseTextEncoder from hw_asr.metric.utils import calc_wer class BeamSearchWERMetric(BaseMetric): def __init__(self, text_encoder: BaseTextEncoder, *args, **kwargs): su...
// moment.js language configuration // language : german (de) // author : lluchs : https://github.com/lluchs // author: Menelion Elensúle: https://github.com/Oire (function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'o...
import json from os import path with open("outbox.json", "r") as outbox_file: outbox = json.loads(outbox_file.read()) with open("actor.json", "r") as actor_file: actor = json.loads(actor_file.read()) #map the outbox down to the actual objects statuses = [status.get("object") for status in outbox.get("orderedItems")] ...
# -*- coding: utf-8 -*- from pyfr.integrators.base import BaseIntegrator from pyfr.integrators.base import BaseCommon from pyfr.util import proxylist class BaseStdIntegrator(BaseCommon, BaseIntegrator): formulation = 'std' def __init__(self, backend, systemcls, rallocs, mesh, initsoln, cfg): super()...
#------------------------------------------------------------------------------- # ShadowTillotsonEquationOfState # # Provides convenient constructors for the Tillotson using the canned values # in MaterialPropertiesLib.py. #------------------------------------------------------------------------------- from spheralDim...
#ifndef _MBTIME01_H_ #define _MBTIME01_H_ #ifdef __cplusplus extern "C" { #endif #include <cmqc.h> #include <stdint.h> typedef struct MbTime { uint32_t StrucLength; uint32_t unk01; uint32_t unk02; uint32_t unk03; uint32_t unk04; uint32_t unk05; uint32_t unk06; uint32_t Encoding; uint32_t Identif...
/* * Mirics MSi2500 driver * Mirics MSi3101 SDR Dongle driver * * Copyright (C) 2013 Antti Palosaari <crope@iki.fi> * * 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 vers...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <alloca.h> #include "lizard.h" #include "map.h" #include "filefunc.h" #include "strgfunc.h" #include "lizgame.h" void show_title (void) { printf ("\n :::: :::: :::::: ::: ::::::. ::::: .::::. :: TM\n" " :: :...
#!/usr/bin/env python from iris_sdk.models.maps.base_map import BaseMap class DisconnectMap(BaseMap): count_of_t_ns = None disconnect_telephone_number_order_type = None telephone_number_details = None customer_order_id = None last_modified_date = None name = None order_create_date = None ...
#!/usr/bin/env python def SingleTon(cls): instances = {} def _singleton(*args, **kw): if cls not in instances: instances[cls] = cls(*args, **kw) return instances[cls] return _singleton
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for bitcoind node under test""" import decimal import errno import http.client import json import log...
function carregar() { var msg = document.querySelector('div#msg') var img = document.querySelector('img#imagem') var data = new Date() var hora = data.getHours() var minuto = data.getMinutes() msg.innerHTML = `Agora são ${hora}:${minuto} horas.` if (hora >= 0 && hora < 12) {//00:00 é meia no...
import json import logging from django.http import ( HttpResponseBadRequest, HttpResponseForbidden ) from django.contrib.auth.decorators import login_required from django.urls import reverse from django.shortcuts import get_object_or_404 from django.utils.translation import gettext as _ from papermerge.core.m...
#pragma once #include <cstdint> namespace pe { uint32_t no_loop(uint32_t n); uint32_t with_loop(uint32_t n); }
r""" mutation_class This file contains helper functions for compute the mutation class of a cluster algebra or quiver. For the compendium on the cluster algebra and quiver package see [MS2011]_ AUTHORS: - Gregg Musiker - Christian Stump """ #*************************************************************************...
from .components import PooledFeatureExtractor from .models.densenet import build_densenet from .models.resnet import build_resnet def build_model(arch, pool=False, **kwargs): """Get a network by architecture. Parameters ---------- arch: str Architecture name. Supported architectures: ...
# Copyright (C) 2018-2019 Intel Corporation # # SPDX-License-Identifier: MIT from django.urls import path, include from . import views from rest_framework import routers from rest_framework import permissions from drf_yasg.views import get_schema_view from drf_yasg import openapi from cvat.apps.restrictions.views imp...
'use strict'; const url = 'https://anilist.co/api/'; const now = () => Math.floor(Date.now() / 1000); const isExpired = expirationTime => expirationTime <= now() + 300; const hasParam = string => string.indexOf('?') !== -1; module.exports = { url, isExpired, hasParam };
// Source : https://leetcode.com/problems/flatten-nested-list-iterator/ // Author : Han Zichi // Date : 2016-04-30 /** * // This is the interface that allows for creating nested lists. * // You should not implement it, or speculate about its implementation * function NestedInteger() { * * Return true if thi...
// Generated by CoffeeScript 1.11.1 (function() { "use strict"; exports.stripBOM = function(str) { if (str[0] === '\uFEFF') { return str.substring(1); } else { return str; } }; }).call(this);
const { Model, DataTypes } = require('sequelize'); const sequelize = require('../config/connection.js'); class Category extends Model {} Category.init( { // define columns id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true }, category_name...
/** * Copyright (c) 2002-2018 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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...
#include "connected_layer.h" #include "convolutional_layer.h" #include "batchnorm_layer.h" #include "utils.h" #include "cuda.h" #include "blas.h" #include "gemm.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> layer make_connected_layer(int batch, int inputs, int outputs, ACTIVATION act...
# # Copyright 2020 Advanced Micro Devices, 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 agreed to i...
'use strict' const { Model } = require('sequelize') module.exports = (sequelize, DataTypes) => { class TrainType extends Model { static associate(models) { // define association here } } TrainType.init( { name: { type: DataTypes.STRING, allowNull: false, unique: t...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
from . import FixtureTest class ZoosAndOtherAttractions(FixtureTest): # So the question here is if kind should be set to attraction or enclosure. # There are other attraction areas (like rides at amusement parks), so I # vote of emphasizing the value of zoo in the enclosure case (where zoo=* # has be...
from django.db import models class Vocabulary(models.Model): language = models.CharField(max_length=30) title = models.CharField(max_length=100) class Meta: unique_together = ('language', 'title') class Lesson(models.Model): vocabulary = models.ForeignKey(Vocabulary) title = models.CharFi...
from src.init.begin import run if __name__ == "__main__": run()
'use strict'; module.exports = { /** * 此函数名称 * @url product/kh/types/add 前端调用的url参数地址 * data 请求参数 * @params {String} params1 参数1 */ main: async (event) => { let { data = {}, userInfo, util, originalParam } = event; //处理子账户父账户关系 let { customUtil, config, pubFun, vk, db, _ } = util; let {...
module.exports = { root: true, parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'react', 'react-native', 'react-hooks'], extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recomm...
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # 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, modify, ...
# coding: utf-8 import json import re from django.http import HttpResponse, HttpResponseBadRequest from django.views.decorators.csrf import csrf_exempt from django.core.mail import mail_admins from django.core.validators import validate_email from django.core.exceptions import ValidationError from .models import Blac...
exports.command = function (){ var val = this.globals; this.url('https://www.guerrillamail.com/inbox?mail_id=1') .maximizeWindow() .waitForElementVisible('#use-alias',2000,false,function(res){ console.log("Rezzz ",this.currentTest) }) //.expect.element('#use-aliasff...
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
#!/usr/bin/python #Copyright (c) 2013, ho600.com #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 of source code must retain the above copyright notice, # this list of condi...
const Campground = require('./models/campground'); const Review = require('./models/review'); const ExpressError = require('./utils/ExpressError'); const { campgroundSchema, reviewSchema } = require('./schemas'); module.exports.isLoggedIn = (req, res, next) => { if(!req.isAuthenticated()) { req.session.ret...
#!/usr/bin/env python "Come basic tests for the interface." import numpy as np import ricecomp print "Testing rcomp/rdecomp with int8" input = np.random.randint(-127,127,(20,5)).astype(np.int8) buf = ricecomp.rcomp(input, 32) output = ricecomp.rdecomp(buf, np.int8, input.size, 32).reshape(input.shape) if (input!=out...
import importlib import sqlite3 from collections.abc import Iterable from typing import Any, Callable, Dict, List, Tuple from google.protobuf.descriptor import Descriptor from google.protobuf.message import Message from ..generated.computer_info_pb2 import ADD, DELETE, NONE, UPDATE, UpdateEvent from .generic import (...
/*╔══════════════════════════════════════════════════════════════════════════════════════════════════╗ ║ NetworkClock.h ║ ║ ║ ║ Created...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/c...
import json import re import requests from pyquery import PyQuery as pq urlx="http://www.8wenku.com/book/" purl="http://www.8wenku.com" for i in range(10000): if i<39: pass else: url=urlx+str(i) info=requests.get(url) html=pq(info.text) head=html("head").find('title').te...