text
stringlengths
3
1.05M
(function() { "use strict"; angular .module('ps.core') .controller("HelpCtrl", HelpCtrl) .directive('psHelp', helpDirective); function HelpCtrl($sce, dataService, i18n) { var vm = this; activate(); function activate() { var widgets = dataService.data.widgets; var h = 0; ...
import re import dropboxignore from dropboxignore import Rules def test_test_if_ignored_positive(): # GIVEN path = 'test' rule = re.compile('test') # WHEN result = dropboxignore.test_if_ignored(path, Rules(ignored=[rule], excluded=[])) # THEN assert result def test_test_if_ignored_nega...
# Copyright (c) 2021 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...
import { compileToFunctions } from 'vue-template-compiler' import ComponentWithChild from '~resources/components/component-with-child.vue' import Component from '~resources/components/component.vue' import FunctionalComponent from '~resources/components/functional-component.vue' import ComponentAsAClass from '~resource...
// 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...
""" Filename: matrix_eqn.py This file holds several functions that are used to solve matrix equations. Currently has functionality to solve: * Lyapunov Equations * Riccati Equations TODO: 1. See issue 47 on github repository, should add support for Sylvester equations 2. Fix warnings from checking condi...
const path = require("path"); const express = require("express"); const mongoose = require("mongoose"); const passport = require("passport"); const bodyParser = require("body-parser"); const session = require("express-session"); // const flash = require("express-flash"); // const methodOverride = require('method-overri...
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutProperties(e,t){var i={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(i[n...
/** * HYPERLOOP GENERATED - DO NOT MODIFY * * This source code is Copyright (c) 2018 by Appcelerator, Inc. * All Rights Reserved. This code contains patents and/or patents pending. */ var $dispatch = Hyperloop.dispatch, $init, $imports; /** * CoreText//Applications/Xcode.app/Contents/Developer/Platforms/iPhon...
# Copyright (c) Facebook, Inc. and its affiliates. # -------------------------------------------------------- # Modified by Jitesh Jain """ MaskFormer criterion. """ import logging import torch import torch.nn.functional as F from torch import nn from detectron2.utils.comm import get_world_size from detectron2.proje...
# Copyright (C) 2021-2022, Mindee. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. import math from copy import deepcopy from typing import Tuple import numpy as np import tensorflow as tf import tensorf...
# 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 React from 'react' import logo from './images/logo.svg'; import './css/App.css' const App = () => ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App.js</code> and save to r...
# Copyright 2020 The Cirq Developers # 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 wr...
import tensorflow as tf from tensorflow import keras import numpy as np import matplotlib.pyplot as plt data = keras.datasets.fashion_mnist (train_images, train_labels), (test_images, test_labels) = data.load_data() class_names = ['T-shirt/Top', 'Trouser', 'Pullover', 'Dress', 'Coat', 'Sandal', 'Shirt...
/******************************************************************** Written by James Moran Please see the file HEART_LICENSE.txt in the source's root directory. *********************************************************************/ #ifndef MATH_MATRIX_H__ #define MATH_MATRIX_H__ #include "vectormath/SSE/cpp...
# settings.py # sdNum = subdomain number # p1 = spatial bandwidth # p2 = temporal bandwidth # p3 = spatial resolution # p4 = temporal resolution # p5 = number of points threshold (T1) # p6 = buffer ratio threshold (T2) # dir1 = point files (resulting from decomposition) # dir2 = time files (resulting from de...
/** * @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...
// // ViewController.h // RDPExampleSDK // // Created by 霍驹 on 2018/3/13. // Copyright © 2018年 HJ. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:52:15 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /usr/lib/libcoreroutine.dylib * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ #import <libobjc.A....
/* * Copyright (c) 2011 The Chromium OS Authors. * * SPDX-License-Identifier: GPL-2.0+ */ typedef int (*init_fnc_t)(void); int initcall_run_list(const init_fnc_t init_sequence[]);
from rest_framework import permissions class UpdateOwnProfile(permissions.BasePermission): """Allow users to edit their own profile""" def has_object_permission(self, request, view, obj): """Check user is trying to edit their own profile""" if request.method in permissions.SAFE_METHODS: ...
""" Copyright (C) 2017-2020 Intel Corporation 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...
# # PySNMP MIB module Nortel-Magellan-Passport-ModCommonMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-ModCommonMIB # Produced by pysmi-0.3.4 at Wed May 1 14:27:56 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 #...
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. "use strict"; function makeContainerPosVisible(container, pos) { var height = container.offsetHeight; var margin = Math.floor(height / 4); if (po...
from __future__ import absolute_import from eth_hash.auto import keccak from eth_utils import ( encode_hex, ) from eth.constants import CREATE_CONTRACT_ADDRESS from eth.db.account import ( AccountDB, ) from eth.exceptions import ( ContractCreationCollision, ) from eth.typing import ( BaseOrSpoofTrans...
# (C) Datadog, Inc. 2012-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import copy import os import pytest from datadog_checks.haproxy import HAProxy from .common import ( BACKEND_AGGREGATE_ONLY_CHECK, BACKEND_CHECK, BACKEND_HOSTS_METRIC, BACKEND_LIST, BACKE...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_COINS_H #define BITCOIN_COINS_H #include "compressor.h" #include...
""" API operations on the contents of a history dataset. """ import logging from typing import ( Any, cast, Dict, List, Optional, ) from fastapi import ( Body, Depends, Path, Query, Request, ) from starlette.responses import ( FileResponse, StreamingResponse, ) from gal...
// Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ #include <map> #include...
import React from 'react'; import styled from 'styled-components'; const ModalFooter = ({ children, align, ...rest }) => { return ( <StModalFooter align={align} {...rest}> {children} </StModalFooter> ); }; const StModalFooter = styled.footer` display: flex; align-items: center; justify-content...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {Link} from 'react-router'; import * as actions from '../actions'; class Feature extends Component{ componentWillMount() { this.props.fetchMessage(); } render(){ return( <div> <h1 className="page-header">Fe...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
""" View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/ My Youtube Channel: https://www.youtube.com/user/MorvanZhou Dependencies: torch: 0.1.11 """ import torch import torch.utils.data as Data torch.manual_seed(1) # reproducible BATCH_SIZE = 5 # BATCH_SIZE = 8 x = torch.linspace(1, 10, 10)...
# -*- coding: utf-8 -*- # # Nextflow documentation build configuration file, created by # sphinx-quickstart on Sat May 5 16:57:28 2012. # # 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. # # Al...
/*! * ${copyright} */ sap.ui.define([ "sap/ui/rta/plugin/Plugin", "sap/ui/dt/Util", "sap/ui/fl/Utils", "sap/ui/fl/write/api/LocalResetAPI", "sap/ui/rta/command/CompositeCommand", "sap/m/MessageToast", "sap/ui/dt/OverlayRegistry" ], function( Plugin, DtUtil, FlUtils, LocalResetAPI, CompositeCommand, Mess...
#!/usr/bin/python import requests import json from bs4 import BeautifulSoup INPUT_FILE = "tickers.txt" FILENAME = "headlines.json" # TODO: Needs to support JS when scraping Finviz class Headlines(): def __init__(self) -> None: self.data = {} self.tickers = [ "AAPL", "MMM", "AXP", "T",...
var insert = require('./insert') insert('findOne', [{ hello: 'world1' }, { hello: 'world2' }], function (db, t, done) { db.a.findOne(function (err, doc) { t.error(err) t.equal(typeof doc, 'object') t.ok(doc.hello === 'world1' || doc.hello === 'world2') done() }) })
// // Created by markus on 22.04.21. // #ifndef MR_CPP_CODE_MAPLINE_H #define MR_CPP_CODE_MAPLINE_H #include "MapObject.h" class MapLine : public MapObject { private: std::vector<cv::Point2i> points; public: void draw(cv::Mat image) override; void addPoint(cv::Point2i point); void clearPoints(); }; ...
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/chemistry/shared_medpack_enhance_action_a.iff" result.attr...
import {applyMiddleware, createStore} from 'redux'; import {createLogger} from 'redux-logger'; import thunk from 'redux-thunk'; import promise from 'redux-promise-middleware'; import reducer from './../reducers'; const middleware = applyMiddleware(promise(), thunk, createLogger()); export default createStore(reducer...
#define PWM_MT_HORARIO 5 #define PWM_MT_ANTIHORARIO 6 #define PWM_ZM 45 #define PWM_SAT 255 #define POTENCIOMETRO 0 #define OFFSET 0 void inicializa_pinagem() { pinMode(PWM_MT_HORARIO , OUTPUT); pinMode(PWM_MT_ANTIHORARIO , OUTPUT); pinMode(POTENCIOMETRO...
//{namespace name=backend/mopt_payone_amazon_pay/main} Ext.define('Shopware.apps.MoptPayoneAmazonPay.view.detail.Config', { extend: 'Shopware.model.Container', padding: 20, configure: function () { var me = this; /** global: Ext */ me.buttonTypeStore = Ext.create('Ext.data.Store', ...
export function missingRequiredDataError(content: any) { return new Error(`Missing required data to create a ${this.contructor.name}:[${JSON.stringify(content || this)}]`); } export default class ContentChild<T> { content: T; constructor(content: T) { this.content = content; if (typeof content === 'und...
/* * Copyright (C) 2018, Xilinx Inc - All rights reserved * Xilinx SDAccel Media Accelerator API * * 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/LIC...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 13 12:00:40 2018 @author: dberke This library contains functions used for converting wavelengths between vacuum and air. """ import numpy as np import unyt as u from tqdm import tqdm, trange def air_indexEdlen53(l, t=15., p=760.): """Return ...
/* eslint-disable prefer-arrow-callback */ /* global io, senderId, conversationId, alertify, animateCss, removeAnimation, enterAnimation, exitAnimationNope, exitAnimationYep */ document.addEventListener('DOMContentLoaded', (event) => { const alerts = document.getElementById('alerts'); const socket = io('/match');...
#ifndef VM_H #define VM_H #include "vmas.h" #include <stdint.h> #include "instruction.h" enum regs { R0, R1, R2, R3, S0, S1, S2, S3, IP, RP, SP, NUM_REGS }; typedef struct flags { uint8_t ZF : 1; uint8_t CF : 1; } flags_t; class VM { private: typedef bool (VM::*FuncPointer)(void); typedef struc...
let contentfulConfig try { // Load the Contentful config from the .contentful.json contentfulConfig = require('./.contentful') } catch (_) {} if ( process.env.CONTENTFUL_DEV ) { contentfulConfig = { spaceId: process.env.CONTENTFUL_SPACE_ID || contentfulConfig.spaceId, accessToken: process.env.CONTENTFU...
// Copyright 2009-2012 The MumbleKit Developers. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. struct MKCryptStatePrivate; @interface MKCryptState : NSObject - (id) init; - (void) dealloc; - (BOOL) valid; - (void) generateKey; - (void) s...
import Vue from 'vue' import axios from 'axios' import App from './App' import router from './router' import store from './store' import dialog from './components/dialog/dialog' import VClamp from 'vue-clamp' import ElementUI from 'element-ui' import CKEditor from '@ckeditor/ckeditor5-vue' import { library, dom } from ...
module.exports = str => typeof str === 'string';
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "/home/vesh/openairinterface5g/openair2/RRC/LTE/MESSAGES/asn1c/ASN1_files/lte-rrc-14.7.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -gen-OER -no-gen-example -D /home/vesh/openairinterface5g/cmak...
from Jumpscale import j JSConfigClient = j.application.JSBaseConfigClass class TrelloClient(JSConfigClient): _SCHEMATEXT = """ @url = jumpscale.trello.client name* = "" (S) api_key_ = "" (S) secret_ = "" (S) token_ = "" (S) token_secret_= "" (S) """ def _init(self): from...
import sys import os import shutil import tempfile import StringIO import unittest import tarfile from test import test_support # Check for our compression modules. try: import gzip gzip.GzipFile except (ImportError, AttributeError): gzip = None try: import bz2 except ImportError: bz2 = None def...
/*========================================================================= Program: OsiriX Copyright (c) OsiriX Team All rights reserved. Distributed under GNU - LGPL See http://www.osirix-viewer.com/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even ...
from django.apps import apps from functools import wraps import requests import urllib import json #------------------------------------------ def check_recaptcha(view_func): """ This decorator checks a recaptcha before rending a view. Communicates with the view using the request object. Flash messag...
class Stats(): def __init__(self, player, sport): if sport == 'football': self.TD = 0 self.fumbles = 0 if hasattr(player, '_position_type') and getattr(player, '_position_type') == "Offense": self.rush_attempts = None self.rush_yard...
# -*- coding: utf-8 -*- from dll import DLL class Queue(object): """Queue class that contains a DLL.""" def __init__(self, iter=None): self._container = DLL() if iter: for val in iter: self._container.append(val) def enqueue(self, val): """Adds a value...
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # http://code.google.com/p/protobuf/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions o...
'use strict'; require('mocha'); const assert = require('assert').strict; const Parser = require('../lib/Parser'); const stringify = input => { let snippet = new Parser(input); let ast = snippet.parse(); return ast.stringify(); }; describe('stringify (mostly ported from vscode tests)', () => { it('should stri...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import os import getpass import time import logging import multiprocessing import shutil from random import seed import infra.ccf import infra.proc import infra.notification import infra.net import infra.e2e_args from t...
from super_taxi.model.generics import Vehicle, Coordinate from super_taxi.model.cars import Car,SUVCar class Taxi(Vehicle): def __init__(self, id=None): Vehicle.__init__(self, id=id) self.position = Coordinate(0, 0) self.ride = None self.booked = False self.pickup_distance ...
import React from "react"; class Content extends React.Component { render() { const {children} = this.props; return ( <section className="content"> {children} </section> ); } } export default Content;
from lifeloopweb import sms import tests class TestSms(tests.TestBase): def test_only_numeric_phone_number(self): result = sms.SmsDriver().only_numeric_phone_number("(210) 999-9999") assert result == "2109999999"
from typing import Dict, List from overrides import overrides from allennlp.common.util import pad_sequence_to_length from allennlp.data.vocabulary import Vocabulary from allennlp.data.tokenizers.token import Token from allennlp.data.token_indexers.token_indexer import TokenIndexer OOR2 = "OOR2" OOR3 = "OOR3" OOR4 ...
# SPDX-License-Identifier: Apache-2.0 # From https://github.com/titu1994/DenseNet/blob/master/densenet.py # Modifications Copyright (c) Microsoft. '''DenseNet models for Keras. # Reference - [Densely Connected Convolutional Networks](https://arxiv.org/pdf/1608.06993.pdf) - [The One Hundred Layers Tiramisu: Fully Conv...
import json import re from os import path from django.core.urlresolvers import reverse from django.utils import six from openpyxl import load_workbook from openpyxl.cell import Cell from rest_framework import status from main.models import Dataset, Record from main.tests import factories from main.tests.api import he...
import sys import torch import numpy as np def init(cuda_, seed=None, device=None): # Random seed if seed is not None: torch.manual_seed(seed) np.random.seed(seed) # Default Tensor global cuda if torch.cuda.is_available() and cuda_: cuda = True if device is not Non...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
$(document).ready(function() { //alert("HII"); var table_name = "salesbill_master"; datashow(); var invoice; var invoiceno; var validate = 0; var check = 0; $.ajax({ type: "POST", url: base_url + "Controller/getinvoice", data: { table_name:...
(window.webpackJsonp=window.webpackJsonp||[]).push([[305],{372:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return a})),n.d(t,"metadata",(function(){return s})),n.d(t,"toc",(function(){return d})),n.d(t,"default",(function(){return c}));var i=n(3),r=n(8),o=(n(0),n(552)),a={id:"kratos-identities-d...
from vyper.parser.parser_utils import LLLnode from vyper.utils import LOADED_LIMIT_MAP def get_int_at(args, pos, signed=False): value = args[pos].value if isinstance(value, int): o = value elif value == "mload" and args[pos].args[0].value in LOADED_LIMIT_MAP.keys(): o = LOADED_LIMIT_MAP[a...
from rest_framework import serializers from {{ cookiecutter.project_slug }}.users.models import User class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ["username", "email", "name", "url"] extra_kwargs = { "url": {"view_name": "api:user-detail...
/** * This file is modified heavily from a source code of the tutorial on tensorflow.js * The original license was as following: * Copyright 2018 Google LLC. 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. * ...
/* @flow */ import CardService from '../../card/card.service'; export default class ColumnComponentController { static NAME: string = 'ColumnComponentController'; /* @ngInject */ constructor($log, $scope, CardService) { this.$log = $log; this.$scope = $scope; this.CardService = CardService; } ...
# # 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,...
"""MyPest 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') Class-based ...
$('').ready(function(){ window.onhashchange = loadHash; loadHash(); }); function actTive(){ var $a = $("#f-menu ul li a"); var id = window.location.hash; // var url = window.location.href; var rid = id.split('#')[1]; var lis = new Array(); ...
from django.core.management.base import BaseCommand, CommandError from ExperimentBasics.models import * from ExperimentBasics.ParticipatingUsersExporter import * class Command(BaseCommand): help = 'Exports participating user files for a given experiment' def add_arguments(self, parser): parser.add_ar...
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # 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 th...
#!/usr/bin/env python # # Copyright 2012 the V8 project authors. 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 # noti...
var mysql = require('mysql2'); var dbconfig = require('../config/database'); // Script for dropping the entire database var conn = mysql.createConnection(dbconfig.connection); conn.query('DROP DATABASE ' + dbconfig.database); console.log('Success! Database cleared.'); conn.end();
import argparse import h3 import json import moment import os import sys sys.path.insert(0, '../../../common/') sys.path.insert(0, '../../') from geojson import Polygon from python_utils.src.h3_utils import polyfill_polygon from pyspark.sql import SparkSession from pyspark.sql.functions import array_contains, col, co...
# Copyright 2020 getcarrier.io # # 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...
import React, { Component } from "react"; import _ from "lodash"; import { Link } from "gatsby"; import "./PostTags.css"; class PostTags extends Component { render() { const { prefix, tags } = this.props; if (tags) { return (<span> {prefix} {tags.map((tag, ind...
import asyncio import itertools import pytest from eth.chains.shard import Shard from eth.db.backends.memory import MemoryDB from eth.db.shard import ShardDB from eth.utils.blobs import ( calc_chunk_root, ) from eth.utils.padding import ( zpad_right, ) from p2p.sharding_protocol import ( ShardingProtoco...
#!/usr/bin/env python ''' 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")...
"""Define the LinearRunOnce class.""" from openmdao.solvers.linear.linear_block_gs import LinearBlockGS class LinearRunOnce(LinearBlockGS): """ Simple linear solver that performs a single iteration of Guass-Seidel. This is done without iteration or norm calculation. """ SOLVER = 'LN: RUNONCE' ...
from myUtil import parse class GTNAddressLookup: """This class contains the central algrorithms for address parsing.""" # Lookup city default method: search for a match between # source address line string and entry in GTN approved city/country address book def lookupCity(self, addr, addressBoo...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); //window.Vue = require('vue'); import Vue from 'vue/dist/vue'; import A...
import json import re from corehq.apps.data_interfaces.forms import CaseRuleCriteriaForm, validate_case_property_name from corehq.apps.data_interfaces.models import CreateScheduleInstanceActionDefinition from corehq.apps.groups.models import Group from crispy_forms import layout as crispy from crispy_forms import boots...
import React, { Component } from 'react' import Wallet from './wallet' class User extends Component { render() { return ( <div> </div> ) } } export default User
var zrUtil = require('zrender/lib/core/util'); var helper = { retrieveTargetInfo: function (payload, seriesModel) { if (payload && ( payload.type === 'treemapZoomToNode' || payload.type === 'treemapRootToNode' ) ...
# coding=utf-8 """Event page - is_equal contact fields responsability.""" from __future__ import annotations from pbraiders.pages.contacts.actions import FIELD_LASTNAME from pbraiders.pages.contacts.actions import FIELD_FIRSTNAME from pbraiders.pages.contacts.actions import FIELD_PHONE from pbraiders.pages.contacts.ac...
import unittest from test import test_support, test_genericpath from test import test_support as support import posixpath import os import sys from posixpath import realpath, abspath, dirname, basename try: import posix except ImportError: posix = None # An absolute path to a temporary filename for testing. ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:10:42 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/PrivateFrameworks/ActionKit....
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["polyfills"],{ /***/ "./node_modules/core-js/es7/reflect.js": /*!*********************************************!*\ !*** ./node_modules/core-js/es7/reflect.js ***! \*********************************************/ /*! no static exports found */ /***/ (func...
module.exports = /*#__PURE__*/ { ios: require('../../dist/ionicons/svg/ios-radio-button-off.svg'), md: require('../../dist/ionicons/svg/md-radio-button-off.svg') };