text
stringlengths
3
1.05M
############################################################################### # Author: Wasi Ahmad # Project: https://www.microsoft.com/en-us/research/wp-content/uploads/2016/10/wwwfp0192-mitra.pdf # Date Created: 7/23/2017 # # File Description: This script contains code to train the model. ####################...
import matplotlib.pyplot as plt import json my_list = [] y = [0] x = [0] time_secs = 0 bandwidth_unit = '*Bits/sec' length = 0 with open('result.txt') as f: lines = f.readlines() # list containing lines of file i = 1 for line in lines: line = line.strip() # remove leading/trailing white spaces ...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
# Generated by Django 3.1.7 on 2021-03-24 19:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nutshell_app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='nsshoe', name='size', ...
#!/usr/bin/env python """Tests for `pyLearn` package.""" import unittest from click.testing import CliRunner # from pyLearn import pyLearn from pyLearn import cli class TestPylearn(unittest.TestCase): """Tests for `pyLearn` package.""" def setUp(self): """Set up test fixtures, if any.""" def...
#ifndef _PARSE_STATE_H_ #define _PARSE_STATE_H_ #include "lexer_node.h" typedef struct parse_state { int pos; char type[100]; char value[100]; struct parse_state* next; }parse_state; parse_state* make_parse_stateList(lexer_node* tokens); void push_parseList(parse_state* node, int pos, char type[], char value[]);...
import { AppConstants } from './constants'; // prefix name to prefix name value mapping (so that it can be changed at one place later) const PREFIX_NAMES = AppConstants.REMOTE_FETCH_PREFIX_NAMES // prefix for keys in the REMOTE_NAV object const REMOTE_SECTION_URL_PREFIX = AppConstants.REMOTE_SECTION_URL_PREFIX const RE...
import sys import os cwd = os.getcwd() workspace_folder = cwd repo_paths = ["bark_project", "benchmark_database", "com_github_interaction_dataset_interaction_dataset", \ "com_github_interaction_dataset_interaction_dataset/python"] executed_file = sys.argv[0] if executed_file.count("bark") == 2: tmp = "baz...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
import argparse import datetime import sys import time import settings from output import Output from tweepy import OAuthHandler from tweepy import Stream from tweepy.streaming import StreamListener from unidecode import unidecode class MyStreamListener(StreamListener): def on_status(self, status): try: ...
import time class runOnThormang(object): def __init__(self): pass def runOnThormang(self, angles, mutex, linkThreads, grip, ticks): for tick in range(0, ticks): mutex.acquire() publishersFlag = True for i in range(0, len(linkThreads)): ...
from flask import render_template, abort, request from pathlib import Path from markupsafe import escape from app import app from app.utils import colorize, is_from_cmdline from app.errors import page_not_found @app.route('/') @app.route('/index') def index(): if is_from_cmdline(request.user_agent.browser): ...
from numpy import random, sum N = int(raw_input('Number of experiments: ')) ndice = int(raw_input('Number of dice: ')) nsix = int(raw_input('Number of dice with six eyes: ')) eyes = random.random_integers(1, 6, (N, ndice)) compare = eyes == 6 nthrows_with_6 = sum(compare, axis=1) # суммирование по столбцам - элемент...
// If you want to use your own trading methods you can // write them here. For more information on everything you // can use please refer to this document: // // https://github.com/askmike/gekko/blob/stable/docs/trading_methods.md // // The example below is pretty stupid: on every new candle there is // a 10% chance ...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
from copy import deepcopy from cached_property import cached_property from distmono.exceptions import ( CircularDependencyError, ConfigError, ) from distmono.util import BotoHelper, sh from marshmallow import Schema, fields, ValidationError from pathlib import Path import attr import hashlib import networkx as ...
/*! * ${copyright} */ sap.ui.define(['sap/ui/core/Renderer', 'sap/ui/core/library', 'sap/ui/Device'], function(Renderer, coreLibrary, Device) { "use strict"; // shortcut for sap.ui.core.TextDirection var TextDirection = coreLibrary.TextDirection; // shortcut for sap.ui.core.ValueState var ValueState = coreLi...
from keras import backend as K from keras.optimizers import Optimizer, SGD # Ported from https://github.com/NVIDIA/OpenSeq2Seq/blob/master/open_seq2seq/optimizers/novograd.py class NovoGrad(Optimizer): """NovoGrad optimizer. Default parameters follow those provided in the original paper. # Arguments ...
function SvgVideocamOutlined(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path d='M0 0h24v24H0V0z' fill='none' /> <path d='M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3....
import time import json import threading import random import socket from .worker import Worker from nanpy import (SerialManager) from nanpy.serialmanager import SerialManagerError from nanpy.sockconnection import (SocketManager, SocketManagerError) from sensors.arduino.rain_sensor import (RainSensor) from sensors.ardu...
# Set plugin = True plugin = True plugin_dir = 'plugin/radar/' #model = dict( # type='UNet', # in_channels=3, # out_channels=1, # base_channels=16, # num_stages=5, # strides=(1, 1, 1, 1, 1), # enc_num_convs=(2, 2, 2, 2, 2), # dec_num_convs=(2, 2, 2, 2), # downsamples=(True, True, True, Tr...
/*!* jquery.counterup.js 1.0** Copyright 2013, Benjamin Intal http://gambit.ph @bfintal* Released under the GPL v2 License** Date: Nov 26, 2013*/(function (e) {"use strict";e.fn.counterUp = function (t) {var n = e.extend({time: 400,delay: 10}, t);return this.each(function () {var t = e(this),r = n,i = function () {var ...
"""Find table structure and allow CREATE/DROP elements from it. """ from __future__ import division, absolute_import, print_function import re import skytools from skytools import quote_ident, quote_fqident __all__ = ['TableStruct', 'SeqStruct', 'T_TABLE', 'T_CONSTRAINT', 'T_INDEX', 'T_TRIGGER', 'T_RULE', ...
/** ****************************************************************************** * @file usb_dcd_int.c * @author MCD Application Team * @version V2.1.0 * @date 19-March-2012 * @brief Peripheral Device interrupt subroutines *****************************************************************...
"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 React, { useState, useEffect, forwardRef } from "react"; import { Grid, CircularProgress, Modal } from "@material-ui/core"; // components import PageTitle from "../../components/PageTitle"; import ClientRegister from "../../components/ClientRegister"; import ClientUpdate from "../../components/ClientUpdate"; imp...
import React, { Component } from 'react'; import { View, Text, ScrollView } from 'react-native'; import { Actions } from 'react-native-router-flux'; import PropTypes from 'prop-types'; import Button from './Button'; import modalInfoSyles from '../styles/modalInfoStyles'; import commonStyles from '../styles/commonStyles...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ var core_1 = require("@sap-cloud-sdk/core"); var index_1 = require("./index"); /*...
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"1":"X g H L","2":"D"},C:{"16":"3 RB F I J C G E B A D X g H L M N O P Q R S T U V PB OB","33":"0 2 4 W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r"},D:{"16":"F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c","132":"0 2 4 8 d e f K h i j k l m n o p q ...
from .base_reid import BaseReID from .fc_module import FcModule from .gap import GlobalAveragePooling from .linear_reid_head import LinearReIDHead __all__ = ['BaseReID', 'GlobalAveragePooling', 'LinearReIDHead', 'FcModule']
import React from 'react'; import PropTypes from 'prop-types'; import { Question } from '@styled-icons/octicons/Question'; import { isUndefined } from 'lodash'; import { FormattedMessage, injectIntl } from 'react-intl'; import { CardElement, Elements, injectStripe } from 'react-stripe-elements'; import styled from 'sty...
// Copyright 2019 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_GFX_IMAGE_RESIZE_IMAGE_DIMENSIONS_H_ #define UI_GFX_IMAGE_RESIZE_IMAGE_DIMENSIONS_H_ namespace gfx { // Dimensions to use when downsizing an ...
/** * 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...
(window.webpackJsonp=window.webpackJsonp||[]).push([["locale.th-d-ts"],{"./node_modules/@formatjs/intl-datetimeformat/locale-data/th.d.ts":function(t,o,a){"use strict";a.r(o)},"./node_modules/@formatjs/intl-numberformat/locale-data/th.d.ts":function(t,o,a){"use strict";a.r(o)}}]);
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The DigiByte Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script every time you change one of the png files. Using pngcrush, it will optimize the png ...
#ifndef KEYBOARD_H #define KEYBOARD_H #include "keycodes.h" #include "../../types.h" string readStr(); #endif
from __future__ import division import pycwt as wavelet from pycwt.helpers import find import numpy as np import matplotlib.pyplot as plt def plot_wavelet(t, dat, dt, pl, pr, period_pltlim=None, stscale=2, siglev=0.95, title='', label='', units='', tunits='', sav_img=False): ''' :param t: :param dat: ...
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: keycloak_user_federation short_description: Allows administrati...
class Stack { //Initializing stack with an empty array constructor() { this.arr = []; var top = 0; } //push_back is used to push the elements in the stack push_back(num) { arr[top] = num; top++; } //peek is used to return the element which is on the top of stack peek() { return arr[t...
from fastapi import APIRouter from app.Util import convertStruct from app.Exceptions import APIException from app.core.jhu import JHU from app.Models.world_m import GlobalVaccinesResponseModel world_vac = APIRouter() @world_vac.get("/jhu/regions", response_model=GlobalVaccinesResponseModel) async def get_global_vacc...
/* Title: Training JS #15: Methods of Number object--toFixed(), toExponential() and toPrecision() Description: This time we learn about three useful methods of Number objects: toFixed(), toExponential() and toPrecision(). their purpose is to convert numbers into strings and the difference between them and ...
export function pluralize(name, count) { if (count === 1) { return name } return name + 's' } export function idbPromise(storeName, method, object) { return new Promise((resolve, reject) => { // open connection to the database `shop-shop` with the version of 1 ...
WinLose = function() {}; WinLose.prototype.create = function() { this.stage.backgroundColor = 0x000000; createText(450, 270, winLoseText, 'apple2', 2).anchor.setTo(0.5, 0.5); transitionOut(); game.time.events.add(Phaser.Timer.SECOND * 2, function() { if(showStory == true) { if(level == 8) transitionTo('fi...
const path = require("path"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.exports = { devServer: { contentBase: path.join(__dirname, "dist"), port: 9000, index: "index.html", historyApiFallback: true ...
# Copyright 2015 HPE, 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 t...
var config = { testnet: false, // this is adjusted page.h if needed. dont need to change manually stagenet: false, // this is adjusted page.h if needed. dont need to change manually coinUnitPlaces: 12, txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero txCoinb...
# -*- coding: utf-8 -*- __author__ = "Varun Nayyar <nayyarv@gmail.com>" import numpy as np import pycuda # get import errors out of the way from likelihood.base import LikelihoodEvaluator def chooseGridThread(n): """ Modify this function to change how we choose number of threads and blocks Args: ...
from __future__ import print_function import warnings from PIL import Image import os import os.path import numpy as np import torch import codecs import string import time import math from collections import OrderedDict import random class HAR(): """ Args: root (string): Root directory of dataset wher...
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
# Copyright (c) 2017-present, Facebook, 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...
/** * Taking care of events * - Simulating 'change' event on contentEditable element * - Handling drag & drop logic * - Catch paste events * - Dispatch proprietary newword:composer event * - Keyboard shortcuts */ (function(wysihtml) { var dom = wysihtml.dom, domNode = dom.domNode, browse...
const Interpreter = require('../../interpreter.js') module.exports = async (guild,client) =>{ let chan; const cmds = client.cmd.guildLeave.allValues() const data = {guild:guild,client:client} for(const cmd of cmds){ if(cmd?.channel?.includes("$")){ const id = await Interpreter (client,data,[],{name:"Channe...
#!/usr/bin/env python2 # -*- Mode: python -*- ''' emcc - compiler helper script ============================= emcc is a drop-in replacement for a compiler like gcc or clang. See emcc --help for details. emcc can be influenced by a few environment variables: EMCC_DEBUG - "1" will log out useful information duri...
/* bind3.js */ // version3: new Function.prototype.bind1 = function () { if (typeof this !== 'function') { throw new TypeError('bind function must be callable.') } var self = this var args = [].slice.call(arguments, 1) var F = function () {} var bindFunc = function () { var bindArgs = []....
from agents.DQN_agents.DQN_With_Fixed_Q_Targets import DQN_With_Fixed_Q_Targets class DDQN(DQN_With_Fixed_Q_Targets): """A double DQN agent""" agent_name = "DDQN" def __init__(self, config, agent_name_=agent_name): DQN_With_Fixed_Q_Targets.__init__(self, config, agent_name_=agent_name_) def c...
/** @file A brief file description @section license 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 und...
import { ContainerPortal } from './ContainerPortal'; import { Portal } from './Portal'; export { Portal, ContainerPortal }; export default Portal;
#!/usr/bin/env python """This is straightline.py Jonathan Zwart January 2016 """ # import sys #sys.path.insert(0,"/home/siyanda/siyanda/lib64/python2.6/site-packages/scipy/ ") from mpi4py import MPI import os,sys import importlib import numpy import numpy as np from math import pi,exp,log,sqrt,log import pymultinest ...
define([ "./utils" // String.prototype.toUnderScore ], function(){ function getFields(obj){ var fields = []; if("fields" in obj && typeof obj["fields"] == "function"){ fields = obj.fields(); }else{ for (var key in obj){ if (typeof obj[key] !== "function" && key.charAt(0) !== '_'){ fields.push(k...
# standard libraries import sys import os import threading sys.path.append(os.path.abspath("../lotlan_scheduler")) # local sources from lotlan_scheduler.api.location import Location from lotlan_scheduler.sql_logger import SQLLogger from lotlan_scheduler.defines import SQLCommands def test_sqlite_connection(mf_uuid, ...
""" This file exists to translate python classes to and from Protobuf messages. The reason for this is to have stable serialization protocol that can be used not only by PySyft but also in other languages. https://github.com/OpenMined/syft-proto (`syft_proto` module) is included as a dependency in setup.py. """ from g...
NDSearch.OnPrefixDataLoaded("ime",["Interface","File"],[["IMesh",,[[,,,,0,"File:Geometry/Mesh/IMesh.ixx:IMesh","CClass:IMesh"],[,"IMesh.h",,,1,"File:Geometry/Mesh/IMesh.ixx:IMesh.h"]]],["IMeshConstructor",,[[,,,,0,"File:Geometry/Mesh/IMeshConstructor.ixx:IMeshConstructor","CClass:IMeshConstructor"]]]]);
from binascii import hexlify, unhexlify from electrum.util import bfh, bh2u from electrum.bitcoin import (b58_address_to_hash160, xpub_from_pubkey, TYPE_ADDRESS, TYPE_SCRIPT, is_segwit_address) from electrum import constants from electrum.i18n import _ from e...
""":mod:`getpost.hogwarts.fatlady` --- Authentication controller module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from flask import Blueprint, render_template, redirect, session as user_session from flask import flash, request, url_for from flask.ext.login import login_required, ...
""":mod:`news.reporters.generics` --- Generic reporters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Provide generic reporters. """ import copy import itertools import asyncio from .abstract import Reporter class TraversingReporter(Reporter): """Base class for tree traversing reporters. :param m...
import copy import csv import inspect import tempfile from collections import OrderedDict from functools import partial, wraps from types import GeneratorType def immutable(func): """ Decorator for wrapper "builder" functions. These are functions on the Query class or other classes used for building quer...
"""AnimeRecommender URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
/* Copyright 2020 Google 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
/* eslint-disable prefer-const */ /* eslint-disable react/prop-types */ // This is a clone of React Router's AnchorLink, which is otherwise not public. // It was copied 'as is' from here: // https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/Link.js import React from 'react'; ...
// Copyright 2015 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 required by applicable...
// 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 ...
"""Default values and models public for all awattprice notification services.""" from box import Box PRICE_BELOW_SERVICE_NAME = "price_below" APNS_ENCRYPTION_ALGORITHM = "ES256" APNS_ENCRYPTION_KEY_FILE_NAME = "encryption_key.p8" APNS_URL = Box() APNS_URL.origin = {} APNS_URL.origin.production = "https://api.push.app...
/* * This file is part of Dependency-Track. * * 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 o...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
from flask.json import JSONEncoder import numpy as np class WriterEncoder(JSONEncoder): """ Class to encode writer object into json """ def default(self, o): """ Encode object into json :param o: object to be converted into json :return: object dictionary """ ...
# !/usr/bin/env python # -*- coding: utf-8 -*- """ @Project : acs-project-krr @File : model_final.py @Author : Billy Sheng @Contact : shengdl999links@gmail.com @Date : 2020/11/21 4:07 下午 @Version : 1.0.0 @License : Apache License 2.0 @Desc : None """ from itertools import combinations import json...
global.patch_builtin('window', { bridge: false, }); set_global('blueslip', global.make_zblueslip({ error: false, // Ignore errors. We only check for warnings in this module. })); var noop = function () {}; set_global('$', global.make_zjquery()); set_global('i18n', global.stub_i18n); const _navigator = { ...
import collections import html import random import re import string HTML_CSS = """ #tt-ID { max-width: 960px; margin: auto; padding: 10px; line-height: 1.4em; font-family: serif; font-size: 1.1em; } #tt-ID .legend { float: right; } #tt-ID .highlight-chapter-sentence { border-top: 1px solid #555; ...
from lpanel import LeftPanel from rpanel import RightPanel import config import wx from pubsub import pub from numpy import arange, sin, pi import requests # import matplotlib # matplotlib.use('WXAgg') from apscheduler.schedulers.background import BackgroundScheduler import atexit import random import json class...
/* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Dean Beeler, Jerome Fisher * Copyright (C) 2011-2016 Dean Beeler, Jerome Fisher, Sergey V. Mikayev * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free...
$(document).ready(function() { $(function() { // Set effect from select menu value $(".togglingHeader").on("click", function() { $(this).toggleClass("toggling_visible"); $(this).nextAll(".togglingContainer").first().toggle("fade"); }); }); });
// Copyright (c) 2016, Metalcraft and contributors // For license information, please see license.txt frappe.ui.form.on('Payment Terms', { refresh: function(frm) { } });
#include<stdio.h> main() { int n; printf("select number between 1 to 5: "); scanf("%d",&n); switch(n) { case 1: printf("food item 1-DOSA\n price -rs.150 "); break; case 2: printf("Food item 2- roti\n price -rs.129"); break; case 3: printf("food item 3- PIZZA\n price -rs.239"); ...
from numbers import Integral from collections.abc import Iterable import numpy as np import pandas as pd import pyarrow as pa from pandas.api.extensions import ExtensionArray, ExtensionDtype from pandas.api.types import is_array_like from spatialpandas.spatialindex import HilbertRtree from spatialpandas.spatialindex....
/** * True when other tabs are being automatically clicked * * @type {boolean} * */ var clickLanguageTabActive = false; /** * Event called when language tab is long-clicked * * @param e * */ function dblclickLanguageTab(e) { if(clickLanguageTabActive) return; clickLanguageTabActive = true; var $tab = ...
/* eslint-disable @typescript-eslint/no-var-requires */ const got = require("got"); const { gql2ts } = require("../.."); // graphqlade in your app gql2ts({ root: __dirname, introspection: { url: "http://localhost:4000/graphql", request: got, }, client: true, });
'use strict'; const { messages, ruleName } = require('..'); testRule({ ruleName, config: ['lower'], fix: true, accept: [ { code: 'a { }', }, { code: 'a { display: block; }', }, { code: 'a { border-radius: 8px; }', }, { code: 'a:hover { display: block; }', }, { code: 'a:focus { di...
import {render} from '@testing-library/react'; import App from './App'; test('renders learn react link', () => { const { getByText } = render(<App />); const linkElement = getByText(/learn react/i); expect(linkElement).toBeInTheDocument(); });
# Copyright 2018-2019 Faculty Science Limited # # 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...
# Copyright The PyTorch Lightning team. # # 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...
#!/usr/bin/env python import rospy from omron_cad_matching.search_client import SearchClient class SearchSingleNode(SearchClient): def __init__(self): super(SearchSingleNode, self).__init__(server="search_server") model_filename = rospy.get_param("~model_filename") pcloud_filename = rospy...
/** * covid19_dashboard copyright © 2020 * Created by mauromarini on 23/07/20 * Repository: http://github.com/marinimau/covid19_dashboard * Location: Baratili San Pietro */ import React, {PureComponent} from 'react'; import {FlatList, View} from 'react-native'; import {Chip} from 'react-native-paper'; import {Lin...
r""" Schubert Polynomials """ #***************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but W...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
""" Daemons are background tasks accompanying the individual resource objects. Every ``@kopf.daemon`` and ``@kopf.timer`` handler produces a separate asyncio task to either directly execute the daemon, or to trigger one-shot handlers by schedule. The wrapping tasks are always async; the sync functions are called in th...
module.exports = { devServer: { proxy: { "/api": { target: "http://localhost:5000", } } } }
from backend.pu import PU from backend.component import Component from backend.instruction import DataLocation, Source, Dest, Instruction def test_data_location_init(): namespace = 'NI' component_id = 0 loc = DataLocation(component_id, namespace) assert loc.location == namespace assert loc.data_id...
import random from ..list import ListProblem, MAX_ELEMENT, MAX_LIST_SIZE def gen_pos(): n = random.randint(1, MAX_LIST_SIZE+1) if n % 2 == 0: firstHalf = [random.randint(1, MAX_ELEMENT+1) for _ in range(n//2)] xs = firstHalf+firstHalf[::-1] else: firstHalf = [random.randint(1, MAX_E...
/* * Host AP crypt: host-based TKIP encryption implementation for Host AP driver * * Copyright (c) 2003-2004, Jouni Malinen <jkmaline@cc.hut.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Sof...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...