text
stringlengths
3
1.05M
// @flow import React from 'react'; import {observer} from 'mobx-react'; import MultiAutoCompleteComponent from '../../components/MultiAutoComplete'; import SearchStore from '../../stores/SearchStore'; import MultiSelectionStore from '../../stores/MultiSelectionStore'; import type {ElementRef} from 'react'; type Props...
/** * @license * Visual Blocks Editor * * Copyright 2011 Google Inc. * https://developers.google.com/blockly/ * * 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.apach...
import sys import matplotlib.pyplot as plt from matplotlib.path import Path import matplotlib.patches as patches import matplotlib._color_data as mcd import matplotlib.colors as colors import matplotlib.pylab as pylab from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap, Norma...
import unittest from bet_calculator.bet_calculator import Bet_Calculator from decimal import * class Bet_Test_Case(unittest.TestCase): """Test the Bet_Calculator class""" def setUp(self): self.bet_calculator = Bet_Calculator() def test_if_is_calculating_that_odds_will_profit(self): """ ...
# Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Pattern compiler. The grammer is taken from PatternGrammar.txt. The compiler compiles a pattern to a pytree.*Pattern instance. """ __author__ = "Guido van Rossum <guido@python.org>" # Python imports import os # ...
const router = require("express").Router(); const { responseStatus } = require("error-express-handler"); const restricted = require("../middleware/restrictedRoute"); const validRole = require("../middleware/roleCheck"); const dbHelpers = require("../models/ticketHelpers"); const validSchema = require("../middleware/val...
import nltk from nltk.tokenize import word_tokenize from nltk.tokenize import regexp_tokenize from nltk.corpus import stopwords import string # Remove named entities def ne_removal(text): tokens = regexp_tokenize(text, "[\w']+") chunked = nltk.ne_chunk(nltk.pos_tag(tokens)) tokens = [leaf[0] for leaf in ch...
/*! * Copyright (c) 2017, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by appli...
const { NOT_IN_PAIN_RESPONSE } = require('../utils/strings'); const { NOT_IN_PAIN_RESPONSE_ACTIONS } = require('../utils/actions'); module.exports = { [NOT_IN_PAIN_RESPONSE_ACTIONS.WALL_PLANK_TEST_ABDOMINAL_BRACING_REQUEST]: (app) => { app.ask(NOT_IN_PAIN_RESPONSE.WALL_PLANK_TEST_ABDOMINAL_BRACING_REQUEST...
import{dl as e,aF as n,a as t}from"./vendor.d9ce5f39.js";const o={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function r(e){return o[e]}function*i(e){switch(e.type...
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. # pylint: disable=invalid-name,missing-docstring,broad-except,no-member from test._random_circuit_generator import RandomCir...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2014 by Steve Nygard. // // // SDK Root: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo...
#!/usr/bin/env python ''' This code allows you to make png images of a brain extracted image on top of the whole image in the background for all the slices in a 3D volume (sagittal, axial and coronal). positional arguments: bg_fname File name for background .nii.gz image overlay_fname File name for ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator use ToInt32 es5id: 15.1.2.2_A3.2_T3 es6id: 18.2.5 esid: sec-parseint-string-radix description: ToInt32 use modulo ---*/ //CHECK#1 if (parseInt("11", 4294967298) !== ...
# -*- coding: utf-8 -*- # # haralyzer documentation build configuration file, created by # sphinx-quickstart on Thu Feb 26 08:00:24 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
# -*- coding: utf-8 -*- """Algorithm for (k,z)-means and k-means""" import numpy as np from sklearn.preprocessing import normalize from sklearn.metrics.pairwise import euclidean_distances, pairwise_distances_argmin_min from sklearn.utils import check_array from .misc import compute_cost def kzmeans_cost_(X, C, sam...
# Copyright (c) 2020 fortiss GmbH # # Authors: Julian Bernhard, Klemens Esterle, Patrick Hart and # Tobias Kessler # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. import os.path from bark.runtime.scenario import Scenario from bark.runtime.scenario...
(function(d){d['nl']=Object.assign(d['nl']||{},{a:"Kan bestand niet opladen:",b:"Vet",c:"Cursief",d:"Insert image or file",e:"Blok citaat",f:"Kies kop",g:"Koppen",h:"Afbeeldingswidget",i:"Afbeelding op volledige grootte",j:"Afbeelding naast tekst",k:"Links uitgelijnde afbeelding",l:"Gecentreerde afbeelding",m:"Rechts u...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 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-...
/** * * 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 ...
from datetime import date, timedelta from secedgar.core.combo import ComboFilings from secedgar.core.company import CompanyFilings from secedgar.core.daily import DailyFilings from secedgar.core.filing_types import FilingType from secedgar.core.quarterly import QuarterlyFilings from secedgar.exceptions import FilingTy...
// Copyright 2014 The Chromium 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 UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_ #define UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_ #include "base/memory/ref_counted.h" #include "ui/gfx/gpu_memory_buff...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _warning = require('warning'); var _warning2 = _interopRequireDefault(_warning); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var warned = {}; exports["default"] = function (va...
var kip7 = artifacts.require('KIP7TokenFull'); module.exports = function(deployer) { deployer.deploy(kip7, "NT DAO", "NTD", 18); };
import os import requests import operator import re import nltk from flask import Flask, render_template, request from flask.ext.sqlalchemy import SQLAlchemy from stop_words import stops from collections import Counter from bs4 import BeautifulSoup import poem_user app = Flask(__name__) # app.config.from_object(os.e...
// Regular expression that matches all symbols with the `Prepended_Concatenation_Mark` property as per Unicode v9.0.0: /[\u0600-\u0605\u06DD\u070F\u08E2]|\uD804\uDCBD/;
from collections import deque import pymssql import pydapper class SimplePool: """pymssql does not provide a pool interface, this is a simple example that should never be used in production""" def __init__(self, **connect_kwargs): self._connect_kwargs = connect_kwargs self._connections = de...
import pytest from tests.cluster.conftest import skip_if_server_version_lt from yaaredis.utils import b @pytest.mark.asyncio async def test_pfadd(r): await r.flushdb() members = {b('1'), b('2'), b('3')} assert await r.pfadd('a', *members) == 1 assert await r.pfadd('a', *members) == 0 assert await...
// var a = 30 // var b = 30 function setup(){ let canvas = createCanvas(windowWidth/2,windowWidth/2) canvas.parent('sketch-holder'); } function draw(){ noFill() background(255) for (var x = 10; x <= width; x+=40) { for (var y = 10; y <= height; y+=40) // stroke(x, y, random(255)) // strokeWeight(4)...
# -*- coding: utf-8 -*- from os.path import join, abspath, dirname import re from shellstreaming import api from shellstreaming.istream import TextFileTail from shellstreaming.operator import ShellCmd, ExternalTimeWindow, CopySplit from shellstreaming.ostream import LocalFile APACHE_LOG = '/tmp/access.log' DAILY_AC...
# Utility functions. import binascii from decimal import Decimal from collections import namedtuple try: import bitstruct.c except ImportError: import bitstruct Formats = namedtuple('Formats', [ 'big_endian', 'little_endian', ...
import React, { useContext } from 'react' import AdapterMoment from '@mui/lab/AdapterMoment' import LocalizationProvider from '@mui/lab/LocalizationProvider' import DatePicker from '@mui/lab/DatePicker' import TextField from '@mui/material/TextField' import { Context } from 'store' import { observer } from 'mobx-react-...
# 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...
import FWCore.ParameterSet.Config as cms # -*-TCL-*- from RecoMuon.MuonIsolationProducers.isoDepositProducerIOBlocks_cff import * from RecoMuon.MuonIsolationProducers.caloExtractorBlocks_cff import * muIsoDepositCal = cms.EDProducer("MuIsoDepositProducer", IOPSet = cms.PSet( MIsoDepositViewIOBlock ), ...
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging import textwrap import time from random import randint from typing import (Any, Dict, List, Optional, Tuple, Union, # noqa: F401 no_type_check) import neo4j from amundsen_common.models.dashboard...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("5df59863d90268eb6e10a53e77fee656.js"); /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at h...
# 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 agreed to in writing, ...
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Zhone.Bitstorm.get_arp # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # ---------------------------------------------------------...
// ------------------------------------------------------------- // cuDPP -- CUDA Data Parallel Primitives library // ------------------------------------------------------------- // $Revision$ // $Date$ // ------------------------------------------------------------- // This source code is distributed under the terms...
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen // Author: Andrei Haidu (http://haidu.eu) #pragma once #include "CoreMinimal.h" #include "ModuleManager.h" class FUConversionsModule : public IModuleInterface { public: /** IModuleInterface implementation */ virtual void StartupModule...
#!/usr/bin/python #coding = utf-8 from RiskQuantLib.Set.Company.base import setBase class base(setBase): """ This is the company base class. Any company object should be initialized with code and name. """ def __init__(self,codeString:str,nameString:str='',companyTypeString:str = 'Company'): s...
export default { isoName: 'hu', nativeName: 'Magyar', label: { clear: 'Törlés', ok: 'OK', cancel: 'Mégsem', close: 'Bezárás', set: 'Beállítás', select: 'Kiválasztás', reset: 'Visszaállítás', remove: 'Eltávolítás', update: 'Módosítás', create: 'Létrehozás', search: 'Kere...
import fonts from './fonts'; describe('Tests for fonts', () => { it('should have the correct font-size', () => { expect(fonts.size.small()).toEqual( expect.arrayContaining([expect.stringContaining('font-size: 14px;')]) ); expect(fonts.size.regular()).toEqual( expect.arrayContaining([expect.st...
#!/usr/bin/python # The logfile is in Common Log Format: # 10.223.157.186 - - [15/Jul/2009:15:50:35 -0700] "GET /assets/js/lowpro.js HTTP/1.1" 200 10469 import re import sys parts = [ r'(?P<host>\S+)' # host %h r'\S+', # identity %I r'(?P<user>\S+)', # user %u r'\[(?P<time>.+)\]', # time %t r'"(...
// App initialization code goes here import io from 'socket.io-client'; var socket = false; function connect_to_socketio(challenge_id){ socket = io('http://' + document.domain + ':' + location.port); socket.on('connect', function() { socket.emit('join_room', {'challenge_id': challenge_id}); }); ...
import os from django.core.management.utils import get_random_secret_key class Key(): def __init__(self): if not(self.VerifyKey()): self.CreateKey() self.KEY = self.ReadKey() # Verify if file exists def VerifyKey(self): if os.path.exists("key.txt"): ...
import torch import torch.nn as nn class Model(torch.nn.Module): def __init__(self, input_shape): super(Model, self).__init__() self.device = torch.device("cuda" if torch.cuda.is_available() else "cpu") fc_size = (input_shape[1]//16) * (input_shape[2]//16) self.layers = [ ...
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ # pylint: disable=unused-import from .credential import ConfidentialLedgerCertificateCredential DEFAULT_VERSION = "0.1-preview"
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
/* eslint-disable node/no-sync */ // Todo: SharedWorker/ServiceWorker/MessageChannel polyfills // WebWorkers implementation. // // The master and workers communite over a UNIX domain socket at // // /tmp/node-webworker-<master PID>.sock // // This socket is used as a full-duplex channel for exchanging messages. //...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
/* Copyright 2015, Rackspace, US, 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 in writing, sof...
import { Contract } from 'ethers'; import ContractSettings from '../../contractSettings'; import abi from '../../../lib/abis/mainnet/SynthUtil'; /** @constructor * @param contractSettings {ContractSettings} */ function SynthUtil(contractSettings) { this.contractSettings = contractSettings || new ContractSettings()...
import { combineReducers } from 'redux'; import auth from './auth_reducer'; import jobs from './jobs_reducer'; export default combineReducers({ auth, jobs, });
# Color Schemes for Abaqus/CAE contour plot # compatible with Abaqus >= 6.14-1 # author: Xiaojun GU #RdYlGn from abaqus import * from abaqusConstants import * session.Spectrum(name="RdYlGn", colors =( '#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a'...
'use strict'; var callBound = require('call-bind/callBound'); var $arrayPush = callBound('Array.prototype.push'); var getIteratorMethod = require('../helpers/getIteratorMethod'); var AdvanceStringIndex = require('./AdvanceStringIndex'); var GetIterator = require('./GetIterator'); var GetMethod = require('./GetMethod'...
/* istanbul instrument in package npmtest_bootstrap_select */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function ...
/* * Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * or in the "li...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import torch import torch.utils.data # from opts import opts from opts import opts from models.model import create_model, load_model, save_model from models.data_parallel import D...
# Copyright (c) 2018 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...
export default { data: { helloWorld: 'Hello from my first GraphQL resolver!', }, };
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .cityscapes_evaluation import CityscapesEvaluator from .coco_evaluation import COCOEvaluator from .evaluator import DatasetEvaluator, DatasetEvaluators, inference_context, inference_on_dataset from .lvis_evaluation import LVISEvaluator from .pa...
import unittest import zserio from testutils import getZserioApi class SimpleUnionTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "union_types.zs").simple_union def testEmptyConstructor(self): simpleUnion = self.api.SimpleUnion() self.as...
__NUXT_JSONP__("/44", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){return {data:[{metaTitle:f,metaDesc:g,surahId:h,currentSurahFromList:{translation:i,arabic:j,latin:c,ayah_count:59,index:h,opening:"\u003Cspan class=\"gen\"\u003E\u003Cbr\u003E Surat Ad Dukhaan terdiri atas 59 ayat, termasuk golongan surat-surat M...
const webpack = require('webpack'); const config = { entry: __dirname + '/js/index.jsx', output: { path: __dirname + '/assets', filename: 'bundle.js', }, resolve: { extensions: ['.js', '.jsx', '.css'] }, module: { rules: [ { // rule fo...
const workspaceLight = require('../src/templates/workspace.light'); describe('🖥️ Workspace Light', () => { test('matches snapshot', () => { expect(workspaceLight).toMatchSnapshot(); }); });
# Generated by Django 3.1.8 on 2021-06-02 04:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('business_register', '0112_merge_20210601_0943'), ] operations = [ migrations.RemoveField( model_name='declaration', ...
from flask import Flask,request,jsonify,render_template,redirect from flask_cors import CORS,cross_origin app =app = Flask(__name__ , template_folder= "templates") @app.route('/' , methods =['GET']) @cross_origin() def index(): return render_template('html/index.html') if __name__ == '__main__...
'use strict'; /******************************************************************************************** * * * Докуметация к прочтению перед выполнением задания: * * https://developer.mozilla.org/...
from argparse import ArgumentParser from flask import Flask app = Flask(__name__) if __name__ == "__main__": arg_parser = ArgumentParser( usage='Usage: python ' + 'api.py' + ' [--port <port>] [--help]' ) arg_parser.add_argument('-p', '--port', default=8080, help='port') arg_parser.add_argume...
#pragma once #include "IGame.h" #include "IGameObject.h" #include "ILevelSystem.h" /*! * #TODO * These defines should be replaced with appropriate name for your game project. */ #define GAME_NAME "EMPTYTEMPLATE" #define GAME_LONGNAME "LUMBERYARD EMPTY TEMPLATE" struct IGameFramework; namespace L...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 25 15:00:33 2022 @author: sopyt """ import random as rn gameSpaces = [0]*150 for x in range(100): gameSpaces[x] = rn.choice([0,0,0,1]) if gameSpaces[x] == 1: gameSpaces[x] = rn.choice(range(-12,12)) if gameSpaces[x] == 0: ...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { isCurrentUserMemberForCurrentBoardSelector, labelsForCurrentBoardSelector, makeCardByIdSelector, makeLabelsByCardIdSelector, makeNotificationsTotalByCardIdSelector, makeTasksByCardIdSelector, makeUsersByCardIdSele...
import numpy as np import matplotlib.pyplot as plt from skimage import measure, io, restoration, color, img_as_ubyte import os from PyQt5 import QtGui, QtCore, QtWidgets from skimage.draw import line, set_color class ContourFinder: def __init__(self, filepath): ''' :param filepath: absolute pa...
const express = require('express') const router = express.Router(); const Problem = require('../services/modals/Problem'); const multer =require('multer'); const fs =require('fs'); const storage = multer.diskStorage({ destination: function(req, file, cb) { cb(null, './uploads/problem/'); }, filename: ...
/* ** mruby/dump.h - mruby binary dumper (mrbc binary format) ** ** See Copyright Notice in mruby.h */ #ifndef MRUBY_DUMP_H #define MRUBY_DUMP_H #include <mruby.h> #include <mruby/irep.h> #include "common.h" /** * Dumping compiled mruby script. */ MRB_BEGIN_DECL #define DUMP_DEBUG_INFO 1 #define DUMP_ENDIAN_BIG 2...
/** * Auto-generated action file for "Labs64 NetLicensing RESTful API Test Center" API. * * Generated at: 2019-05-07T14:43:13.350Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / netlicensing-io-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files ...
async function commentFormHandler(event) { event.preventDefault(); const comment_text = document.querySelector('textarea[name="comment-body"]').value.trim(); const post_id = window.location.toString().split('/')[ window.location.toString().split('/').length - 1 ]; if (comment_text) { const ...
def say(): return 1 #badcode===
/** * Wi-Fi chat-plugin. Only works in a room with id 'wifi' * Handles giveaways in the formats: question, lottery * Credits: Codelegend, SilverTactic, DanielCranham **/ 'use strict'; // checks whether any alt of the user is present in list. function checkAllAlts(user, list) { for (let prevName in user.prevNames) { ...
const urlResolver = require('../resolver/tieba_urlResolver.js') urlResolver.resolve('汪峰').then(res=>{ console.log(res) }) urlResolver.resolve('另').then(res=>{ console.log(res) }) urlResolver.resolve('另类吧').then(res=>{ console.log(res) })
#ifndef DQMOFFLINE_L1TRIGGER_L1TRATE_OFFLINE_H #define DQMOFFLINE_L1TRIGGER_L1TRATE_OFFLINE_H // system include files #include <memory> #include <unistd.h> // user include files #include "DQMServices/Core/interface/DQMOneEDAnalyzer.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/int...
import { settings } from 'meteor/rocketchat:settings'; settings.addGroup('OTR', function() { this.add('OTR_Enable', true, { type: 'boolean', i18nLabel: 'Enabled', public: true, }); });
/** * @param {number[]} nums1 * @param {number[]} nums2 * @return {number} */ const findMedianSortedArrays = (nums1, nums2) => { const len1 = nums1.length; const len2 = nums2.length; const halfLen = Math.ceil((len1 + len2) / 2); const needAvg = (len1 + len2) % 2 === 0; const end = needAvg ? halfLen + 1 :...
#!/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.AlipayInsMarketingDiscountDecisionModel import AlipayInsMarketingDiscountDecisionModel class AlipayInsMarketingDiscountDecisionReque...
import styled from 'styled-components'; import { Link } from 'gatsby'; export const Container = styled.div` width: 400px; height: 400px; background: #fff; border-radius: 20px; padding: 2%; display: flex; flex-direction: column; align-items: center; `; export const Tag = styled.div` display: block; ...
/* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var app = new EmberApp({ sassOptions: { includePaths: [ 'bower_components/materialize/sass' ] } }); // Use `app.import` to add additional libraries to the generated // output files. // // If you need to use di...
import re from thefeck.shells import shell patterns = ( r"mv: cannot move '[^']*' to '([^']*)': No such file or directory", r"mv: cannot move '[^']*' to '([^']*)': Not a directory", r"cp: cannot create regular file '([^']*)': No such file or directory", r"cp: cannot create regular file '([^']*)': Not ...
from django.urls import path from fractals import views urlpatterns = [ path('', views.ConfigurationList.as_view(), name='configuration-list'), path('add', views.ConfigurationCreate.as_view(), name='configuration-create'), path('<int:pk>', views.ConfigurationUpdate.as_view(), name='configuration-update'),...
// 相似用户 module.exports = (query, request) => { const data = { songid: query.id, limit: query.limit || 50, offset: query.offset || 0, } return request( 'POST', `https://music.163.com/weapi/discovery/simiUser`, data, { crypto: 'weapi', cookie: query.cookie, proxy: quer...
/*********************************************************************************** TestClass.h * Copyright (c) 1997-1998 * Mark of the Unicorn, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided...
/** * Please refer to the following files in the root directory: * * README.md For information about the package. * LICENSE For license details, copyrights and restrictions. */ 'use strict'; const { string, syslog, GAError } = require('js-framework'); const ImageAssetsHandler = require('./src/ass...
import tensorflow as tf class IQNOps: def _compute_qtvs_from_obs(self, obs, N, online=True, action=None): if online: x = self.encoder(obs) else: x = self.target_encoder(obs) return self._compute_qtvs(x, N, online=online, action=action) def _compute_qtvs(self, x...
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("leaflet")):"function"==typeof define&&define.amd?define(["leaflet"],e):"object"==typeof exports?exports.Vue2Leaflet=e(require("leaflet")):t.Vue2Leaflet=e(t.L)}(window,function(t){return function(t){var e={};function n(i){if(e[i])...
// const express = require('express') // const dotenv = require('dotenv') // const products = require('./data/products') // https://nodejs.org/api/esm.html // to use ES modules in Node (v14.6+), add to package.json...also note when using import syntax in Node, you must add the file type extension // "type": "module", ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M21 4H3c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM8 18H4V6h4v12zm6 0h-4V...
from enum import Enum class Color(Enum): RED = "#c0392b" BLUE = "#2980b9" GREEN = "#27ae60" ORANGE = "#f39c12" PURPLE = "#8e44ad" TURQUOISE = "#16a085" WHITE = "#ffffff" BLACK = "#000000" SQUARE = "#eeeeee" def FromRGB(r, g, b): return "#%02x%02x%02x" % (r, g, b) ...
# coding=utf-8 # Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. 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/...
log(a); obj.getName();