text
stringlengths
3
1.05M
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkAnalyticEdge_DEFINED #define SkAnalyticEdge_DEFINED #include "SkEdge.h" struct SkAnalyticEdge { // Similar to SkEdge, the conic edges will ...
const { Component } = Shopware; const { Criteria } = Shopware.Data; Component.override('sw-users-permissions-user-create', { computed: { languageCriteria() { return this.$super('languageCriteria') .addFilter(Criteria.multi('OR', [ Criteria.equals('extensions....
const router = require('express').Router(); const { Comment } = require('../../models'); const withAuth = require('../../utils/auth'); router.get('/', (req, res) => { Comment.findAll() .then((dbCommentData) => res.json(dbCommentData)) .catch((err) => { console.log(err); res.status(500).json(err);...
import numpy as np # sigmoid function def nonlin(x, deriv=False): if deriv: return x*(1-x) return 1/(1+np.exp(-x)) # input data x = np.array([ [0,0,1], [0,1,1], [1,0,1], [1,1,1] ]) y = np.array([ [0,0], [1,0], [1,1], [0,1] ]) print x print y # seed np.random.seed(1) ...
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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 React from 'react' // eslint-disable-next-line import { Link } from 'gatsby' import Layout from '../components/layout' const Secondchance = () => ( <Layout> <section className="pageheader-default text-center"> <div className="semitransparentbg"> <h1 className="animated fadeInLeftBig notran...
import React from 'react'; import {Button,Checkbox,FormControl,FormGroup,Form} from 'react-bootstrap'; function download(strData, strFileName, strMimeType) { var D = document, a = D.createElement("a"); strMimeType= strMimeType || "application/octet-stream"; if (navigator.msSaveBlob) { // IE10 return n...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.1.1 build: 47 */ YUI.add("lang/datatype-date-format_ja",function(A){A.Intl.add("datatype-date-format","ja",{"a":["日","月","火","水","木","金","土"],"A":["日曜日","月曜日","火曜日","水曜日","...
#!/usr/bin/env python3 """Home Assistant setup script.""" from datetime import datetime as dt from setuptools import find_packages, setup import homeassistant.const as hass_const PROJECT_NAME = "Home Assistant" PROJECT_PACKAGE_NAME = "homeassistant" PROJECT_LICENSE = "Apache License 2.0" PROJECT_AUTHOR = "The Home A...
import json from pathlib import Path import cv2 import birdvision.character as character from birdvision.node import Node from birdvision.testing import TestResult def run(): test_cases = json.loads(Path('data/tests/character.json').read_text()) char_model = character.CharacterModel() char_finders = cha...
def hangman(secretWord): ''' secretWord: string, the secret word to guess. Starts up an interactive game of Hangman. * At the start of the game, let the user know how many letters the secretWord contains. * Ask the user to supply one guess (i.e. letter) per round. * The user should re...
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <objc/NSObject.h> @class NSMutableArray, NSMutableDictionary; @protocol OS_dispatch_queue; @interface GPUImageFramebufferCach...
'use strict'; var express = require('express'); var mongoose = require('mongoose'); var bodyParser = require('body-parser'); var passport = require('passport'); var config = require('./db'); var users = require('./routes/user'); mongoose.connect(config.DB, { useNewUrlParser: true }).then(function () { console.lo...
from hamcrest.core.base_matcher import BaseMatcher from hamcrest.core.helpers.wrap_matcher import is_matchable_type __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" import types class IsInstanceOf(BaseMatcher): def __init__(self, expected_type): ...
user_pref("browser.startup.homepage", "https://www.startpage.com"); user_pref("browser.search.defaultenginename", "DuckDuckGo");
#from log import log import json import csv import os import multiprocessing from multiprocessing import Pool, cpu_count csv_path = 'E:\\conceptnet\\assertions.csv' def job_split(**kw): ''' >>> concepnet.parse.job_split(path=csv_path) [{'start': 0L, 'end': 1071224347L}, {'...
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('bugs', '0020_auto_20151123_1803'), ] operations = [ migrations.AlterField( model_name='bug', name='c...
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. 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 # # ...
from Module import AbstractModule class Module(AbstractModule): def __init__(self): AbstractModule.__init__(self) def run( self, network, antecedents, out_attributes, user_options, num_cores, outfile): import os import shutil from Betsy import bie3 outfi...
import React, { useState, useEffect } from "react" const MarketoForm = ({ baseUrl, munchkinId, formId, formName }) => { const [initialized, setInitialized] = useState(false) const [isSent, setIsSent] = useState(false) useEffect(() => { if (!initialized) { const scriptsToLoad = ["/js/forms2/js/forms2.m...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.http import HttpResponse # Create your views here. def home(request): return render(request, 'home.html') def contact(request): return render(request, 'contact.html')
# # PySNMP MIB module MICOM-56KCSU-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MICOM-56KCSU-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:12:11 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
const db = require('../config/db'); const Sequelize = db.sequelize; const Category = Sequelize.import('../schema/category'); const Article = Sequelize.import('../schema/article'); Category.sync({force: false}); class CategoryModel { /** * 创建分类 * @param data * @returns {Promise<*>} */ stati...
// ==== INPUT LAYOUTS ==== let language = "EN"; // Pick one of "EN, "DE" let keyboardLayout = { ["EN"]: ["Q,W,E,R,T,Y,U,I,O,P", "A,S,D,F,G,H,J,K,L", "Enter,Z,X,C,V,B,N,M,Backspace"], ["DE"]: ["Q,W,E,R,T,Y,U,I,O,P,Ä", "A,S,D,F,G,H,J,K,L,Ö,Ü", "Enter,Z,X,C,V,...
/* * This module is the seed data code generator. It generates code to bulk insert seed data for a schema */ export class SeedDataCodeGen { generate(schemaName, seedDataArr) { let code = `"use strict"; // Bulk insert of seed data for ${schemaName} const dal = require('./dal/${schemaName}'); // Iterates through an...
# coding: utf-8 # file: caching.py # Full article: http://www.debrice.com/flask-sqlalchemy-caching/ import functools import hashlib from flask_sqlalchemy import BaseQuery from sqlalchemy import event, select from sqlalchemy.orm.interfaces import MapperOption from sqlalchemy.orm.attributes import get_history from sqla...
# # This is Seisflows # # See LICENCE file # ############################################################################### from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
;(function() { 'use strict'; var Observable = Rx.Observable; var fromEvent = Observable.fromEvent; var canv = document.getElementById('canvas'); var contx = canv.getContext('2d'); contx.clearRect(0, 0, canv.width, canv.height); var points = document.getElementById('points'); var outerRadius = documen...
"""Pytest fixture for the tracker agent.""" import pytest import os from unittest import mock from ostorlab.agent import definitions as agent_definitions from ostorlab.runtimes import definitions as runtime_definitions from ostorlab.runtimes.local.models import models from agent import tracker_agent as agent_tracker ...
import os import platform import re import subprocess import xml.etree.ElementTree as ET from subprocess import CalledProcessError, PIPE, STDOUT from six.moves.urllib.parse import quote_plus, unquote, urlparse from conans.client.tools import check_output from conans.client.tools.env import environment_append, no_op f...
import {load} from 'test/common'; import {methods} from '../maskAlgorithms'; // if the values are the same as in imageJ we consider it as currently correct // TODO not obivious that those algorithms can deal with 16 bits images ! /* Here are the results from imageJ Default: 134 Huang: 134 Intermodes: 166 IsoData...
from tfdlg.eval import perplexity from tfdlg.schedules import WarmupLinearDecay from tfdlg.generations import TopKTopPGenerator from tfdlg.utils import import_class from tfdlg.utils import save_model from tfdlg.utils import load_model from tfdlg.utils import set_mixed_precision_policy from tfdlg.utils import set_memory...
import Vue from 'vue' import QField from '../field/QField.js' import MaskMixin from '../../mixins/mask.js' import debounce from '../../utils/debounce.js' import { stop } from '../../utils/event.js' export default Vue.extend({ name: 'QInput', mixins: [ QField, MaskMixin ], props: { value: { required: true...
import unittest import shelve import glob from test import support from collections.abc import MutableMapping from test.test_dbm import dbm_iterator def L1(s): return s.decode("latin-1") class byteskeydict(MutableMapping): "Mapping that supports bytes keys" def __init__(self): self.d = {} de...
//// [/lib/initial-buildOutput.txt] /lib/tsc --b /src/app --verbose 12:01:00 AM - Projects in this build: * src/lib/tsconfig.json * src/app/tsconfig.json 12:01:00 AM - Project 'src/lib/tsconfig.json' is out of date because output file 'src/lib/module.js' does not exist 12:01:00 AM - Building project '...
# This python file is used to reproduce our link prediction experiment # Author: Hongming ZHANG, HKUST KnowComp Group from sklearn.metrics import roc_auc_score import math import subprocess import BaselineMethods.MNE.Node2Vec_LayerSelect import argparse from BaselineMethods.MNE.MNE import * def parse_args(): # P...
import tqdm import csv import logging import fire from pathlib import Path import subprocess def filter_urls(filename, needed_language): with open(filename) as f: reader = csv.reader(f) for line in tqdm.tqdm(reader): try: url, language, forked_from = line[1], line[5], li...
import { DatePicker } from '../../../src/components/datepicker/datepicker'; import { TimePicker } from '../../../src/components/timepicker/timepicker'; //eslint-disable-line import { Locale } from '../../../src/components/locale/locale'; import { cleanup } from '../../helpers/func-utils'; require('../../../src/compone...
/** * @copyright 2010-2017, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io */ import React, { Children, PropTypes } from 'react'; import { default as InputSelect } from '../Input/Select'; import Menu from './Menu'; import bind from '../../decorators/bi...
/* * linux/kernel/time/clocksource.c * * This file contains the functions which manage clocksource drivers. * * Copyright (C) 2004, 2005 IBM, John Stultz (johnstul@us.ibm.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publi...
# Copyright 2018 AT&T Corporation. # 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 require...
import Drawer from './drawer'; import * as util from './util'; import CanvasEntry from './drawer.canvasentry'; /** * MultiCanvas renderer for wavesurfer. Is currently the default and sole * builtin renderer. * * A `MultiCanvas` consists of one or more `CanvasEntry` instances, depending * on the zoom level. */ ex...
/** * Copyright 2016 The AMP HTML 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 require...
import React, { Component } from 'react' import { View, Image, Text } from 'react-native'; import PropTypes from 'prop-types' import UserAvatarView from '../../atoms/UserAvatarView/UserAvatarView' import OnDemandButton from '../../atoms/OnDemandButton/OnDemandButton' import UserCallButton from '../../atoms/...
//===------- TreeTransform.h - Semantic Tree Transformation -----*- 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 //===------------------------------...
var _ = require('underscore') var mergeTrees = require('broccoli-merge-trees') var sieve = require('broccoli-file-sieve') var makeDepsGlobs = require('./makeDepsGlobs') /** * Prepares tree for tech builder. * Copies files of specific tech matching to deps from levels dirs to new tree. * Levels dirs names are incre...
#encoding:utf/8 import sys from mmdet.apis import inference_detector, init_detector import json import os import numpy as np import argparse from tqdm import tqdm class MyEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, np.integer): return int(obj) elif isi...
//////////////////////////////////////////////////////////////////////////////// // The Loki Library // Copyright (c) 2001 by Andrei Alexandrescu // This code accompanies the book: // Alexandrescu, Andrei. "Modern C++ Design: Generic Programming and Design // Patterns Applied". Copyright (c) 2001. Addison-Wes...
import os import cv2 import numpy as np import torch import torch.nn as nn from PIL import Image from torchvision import models from torchvision import transforms as T def load_img(imgpath): """Load image. Args: imgpath (string): The path of the image to load. Returns: ((int, int), t...
/** ****************************************************************************** * @file stm8l15x_gpio.h * @author MCD Application Team * @version V1.6.1 * @date 30-September-2014 * @brief This file contains all the functions prototypes for the GPIO firmware * library. **************...
import sys from Functions import * class CN_01_AdvSearch: BrowserSetup('https://github.com/') SearchRepository('react') SearchRefinement('JavaScript', '>45', '>50', 'bsl-1.0') CheckResult('1 repository result', 'mvoloskov/decider') PrintReadMe(300) TearDown()
import itertools import math from operator import itemgetter from random import random import import_data import numpy as np import networkx from numpy.ma import log2 import tree_bayesian_network import import_data def initialize_trees(train_dataset): graph = initialize_tree_parameters(train_datase...
//@target: ES6 var k, v; var map = new Map([ [ "", true ] ]); for ([k, ...[v]] of map){ k; v; }
import matplotlib.pyplot as plt from matplotlib import rc, rcParams from matplotlib.ticker import FormatStrFormatter import numpy as np from functools import reduce import logging from fractions import Fraction import json import argparse logger = logging.getLogger(__name__) def create_line_graph(data, title, x_axis...
""" Set of functions for IO communication with DisPerSe # Author: Antonio Martinez-Sanchez (Max Planck Institute for Biochemistry) # Date: 02.04.14 """ __author__ = 'martinez' __version__ = "$Revision: 001 $" from .disperse_io import * from .handler import DisPerSe
from django import template register = template.Library() @register.filter(name = "songtime") def songtime(value): if value < 0: return "0:00" #return "{}{}:{}".format(("" if value / 60 > 10 else "0"), value / 60, value % 60) return "{}:{}{}".format(value / 60, ("" if value % 60 >= 10 else "0"), value % 60)
# coding: utf-8 """ CONS3RT Web API A CONS3RT ReSTful API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: Fred@gigagantic-server.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import cons3rt from cons3rt.models.inp...
//-------------------------------------------------------------------------------- // This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed // under the MIT License, available in the root of this distribution and // at the following URL: // // http://www.opensource.org/licenses/mit-license.ph...
/*- * Copyright (c) 2011 NetApp, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
""" Codemonk link: https://www.hackerearth.com/practice/data-structures/trees/binary-and-nary-trees/practice-problems/algorithm/mirror-image-2/ You are given a binary tree rooted at 1. You have to find the mirror image of any node qi about node 1. If it doesn't exist then print -1. Input - Output: First line of input...
from pygame.locals import K_UP, K_DOWN, K_LEFT, K_RIGHT, K_SPACE class Controls: DOWN: int = K_DOWN UP: int = K_UP LEFT: int = K_LEFT RIGHT: int = K_RIGHT SPACE: int = K_SPACE
from typing import Any, Dict, Tuple from collections import OrderedDict from django.views.generic import TemplateView from django.conf import settings from django.http import HttpRequest, HttpResponse, HttpResponseNotFound from django.template import loader import os import random import re from zerver.lib.integratio...
import os import sys from template import Template from template.plugins import Plugins from template.test import TestCase, main class PluginsTest(TestCase): def testPlugins(self): sys.path.insert(0, os.path.abspath("test/plugin")) tt1 = Template({ "PLUGIN_BASE": "MyPlugs" }) tt2 = Template({ "PLUGINS"...
# 비트코인 15분 전 KRW 시세 from blockchain import exchangerates tk = exchangerates.get_ticker() print('1 bitcoin =', tk['KRW'].p15min, 'KRW')
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time import datetime import socket import traceback import logging import errno import os import re import inspect import copy import threading import string from MDSplus import * from threading import Thread from threading import Lock from MDSplus....
from unittest import TestCase from unittest.mock import ANY, MagicMock, Mock, call, patch from samcli.commands.deploy.command import do_cli from samcli.commands.deploy.exceptions import GuidedDeployFailedError from samcli.commands.deploy.guided_config import GuidedConfig from samcli.commands.deploy.exceptions import D...
/* * * Copyright 2015, Google Inc. * 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...
#pragma bank 1 #include "SRAM.h" #include <string.h> #define MAGIC "ZGB-SAVE" #define MAGIC_LENGTH 9 void CheckSRAMIntegrity(UINT8* ptr, UINT16 size) BANKED { ENABLE_RAM; UINT16 bytes_to_clear = 0; UINT16* bytes_stored = (UINT16*)(ptr + MAGIC_LENGTH); if(strcmp((char*)ptr, MAGIC) != 0) { strcpy(ptr, MAGIC); ...
""" Name : wk2d.py Author: Ajay Lotekar e-mail: ablotekar@gmail.com Date : 2021-07-15 DESC : """ import numpy as np import math as mt def wk2d(z, dx, dt): """ :param z: Matrix which 2D fft need to calculate row = time, column = space :param dx: Spatial grid size :param dt: Temporal grid size ...
/** * @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...
# Copyright 2019-present NAVER Corp. # CC BY-NC-SA 3.0 # Available only for non-commercial use import pdb import torch import torch.nn as nn import torch.nn.functional as F from nets.sampler import * from nets.repeatability_loss import * from nets.reliability_loss import * class MultiLoss (nn.Module): """ Comb...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'ElementModel.class_name' db.add_column(u'improcflow_elementmodel', 'class_name', ...
from flask import Flask, render_template, request, make_response, g from redis import Redis import os import socket import random import json import sys import time import logging import random from jaeger_client import Config from flask_opentracing import FlaskTracing option_a = os.getenv('OPTION_A', "Cats") option...
import { $ } from './utils/dom.js'; import {menuApi} from './utils/api.js'; function App() { //initial status this.init = async () => { // => init이라는 async 함수를 정의하는데, 이 함수의 메뉴에서 currentCategory 즉 "espresso"의 value에 해당하는 것(리스트)에다가 // => menuApi 객체의 getAllMenuByCategory라는 메소드를 사용해라. 메소드의 입력값은 this.curren...
""" FFplay proess handler """ import os import sys from shutil import which from signal import SIGTERM from subprocess import Popen from time import sleep import psutil from zenlog import log class Player: """FFPlayer handler, it holds all the attributes to properly execute ffplay FFmepg required to be ins...
/* * The routines in this file * deal with the region, that magic space * between "." and mark. Some functions are * commands. Some functions are just for * internal use. */ #include <stdio.h> #include "estruct.h" #include "edef.h" /* * Kill the region. Ask "getregion" * to figure out the bounds ...
// @flow import * as React from 'react' import { connect } from 'react-redux' import { Splash } from '@opentrons/components' import { START_TERMINAL_ITEM_ID, type TerminalItemId } from '../steplist' import { Portal as MainPageModalPortal } from '../components/portals/MainPageModalPortal' import { DeckSetup } from '../c...
#pragma once #if NET_4_0 #if IL2CPP_THREADS_PTHREAD && !IL2CPP_DOTS_WITHOUT_DEBUGGER #include <pthread.h> #include "utils/NonCopyable.h" class FastMutexImpl; namespace il2cpp { namespace os { class ConditionVariableImpl : public il2cpp::utils::NonCopyable { public: ConditionVariableImpl(); ...
//Importar depedencia const express = require('express'); const path = require('path'); /**esta linha criou a barra invertida para o windows[\] */ const pages = require('./pages.js');/**esta linha seria o equivalente link do "href" do html? */ // iniciando o express const server = express()/* este express é uma bibl...
#!/usr/bin/env python3 # # This file is part of the MicroPython project, http://micropython.org/ # # The MIT License (MIT) # # Copyright (c) 2017 Scott Shawcroft for Adafruit Industries # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files...
// TODO: // * convert listenerCount() usage to emit() return value checking? // * emit error when connection severed early (e.g. before handshake) // * add '.connected' or similar property to connection objects to allow // immediate connection status checking 'use strict'; const { Server: netServer } = requi...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { monitorChartsQueryString } from '../../../../../legacy/plugins/uptim...
// Copyright 2020, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 // Author: Ryan Pavlik <ryan.pavlik@collabora.com> #pragma once #include "android.app.h" namespace wrap { namespace android::content { class ComponentName; class Context; } // namespace android::content } // namespace wrap namespace wrap { name...
import { AbstractTransitionComponent } from 'vue-transition-component'; import VueTypes from 'vue-types'; import ArmChairTransitionController from './ArmChairTransitionController'; import { match } from '../../store/utils'; // [100 - 66, 66-33, 0] // @vue/component export default { name: 'ArmChair', extends: Abstr...
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() PROJECT_NAME = "ANN---Implementation" USER_NAME = "kkkumar2" setuptools.setup( name=f"{PROJECT_NAME}-{USER_NAME}", version="0.0.2", author=USER_NAME, author_email="kmohankumar123456@gmail.c...
from visualiser.visualiser import Visualiser as vs start_state = (3, 3, 1) goal_state = (0, 0, 0) options = [(2, 0), (1, 1), (0, 2), (1, 0), (0, 1)] visited = dict() def is_valid(m, c): return m >= 0 and m <= 3 and c >= 0 and c <= 3 @vs(ignore_args=["node_num", "level"]) def dfs(m, c, s, level): if (m, c, ...
#!/usr/bin/env python import sys src_tok, tgt_tok = [], [] for line in sys.stdin: line = line.strip() if line.endswith('sec'): s, t = line.split()[-4].split('/') src_tok.append(float(s)) tgt_tok.append(float(t)) print('src wps: ', sum(src_tok) / len(src_tok)) print('tgt wps: ', sum(t...
const Token = artifacts.require("MyToken"); var chai = require("chai"); require('dotenv').config({path: '../.env'}); const BN = web3.utils.BN; const chaiBN = require('chai-bn')(BN); chai.use(chaiBN); var chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); const expect = chai.expect; contract("T...
# coding: utf-8 """ Account API The <b>Account API</b> gives sellers the ability to configure their eBay seller accounts, including the seller's policies (the Fulfillment Policy, Payment Policy, and Return Policy), opt in and out of eBay seller programs, configure sales tax tables, and get account information...
# ------------------------------------------------------ # Utilities to handle HapMap data # ------------------------------------------------------ import numpy import re # genotypes: # rs# alleles chrom pos strand assembly# center protLSID assayLSID panelLSID QCcode NA06984 NA06985 # phased haplotypes: # rs# phys_p...
''' OpenCV Python binary extension loader ''' import os import sys try: import numpy import numpy.core.multiarray except ImportError: print('OpenCV bindings requires "numpy" package.') print('Install it via command:') print(' pip install numpy') raise # TODO # is_x64 = sys.maxsize > 2**32 ...
/** * Copyright 2015 The AMP HTML 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 require...
/** * @license Angular v7.1.1 * (c) 2010-2018 Google, Inc. https://angular.io/ * License: MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/compiler"),require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof def...
config = { "interfaces": { "google.ads.googleads.v6.services.ConversionUploadService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_retry_dela...
# Copyright 2016 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 law or ag...
#!/usr/bin/env python import json x = json.loads('{"foo":"var"}') print x x = {'key': 'value'} print json.dumps(x)
#!/usr/bin/env python # -*- coding: utf-8 -*- # Original source: github.com/okfn/bibserver # Authors: # markmacgillivray # Etienne Posthumus (epoz) # Francois Boulogne <fboulogne at april dot org> import sys import logging import io import re from bibtexparser.bibdatabase import BibDatabase logger = logging.getLogge...