text
stringlengths
3
1.05M
/* MIT License Copyright (c) 2021 Marcin Borowicz <marcinbor85@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
# -*- coding: utf-8 -*- """Collect artifacts from the local filesystem.""" from __future__ import unicode_literals import os from dftimewolf.lib.module import BaseModule class FilesystemCollector(BaseModule): """Collect artifacts from the local filesystem. input: None, takes input from parameters only. outp...
/* Copyright 2017 The TensorFlow 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 applicable law or a...
/*! * Copyright (c) 2017 by Contributors * \file op_util.h * \brief Common utility used in operator construction. */ #ifndef TVM_OP_OP_UTIL_H_ #define TVM_OP_OP_UTIL_H_ #include <tvm/expr.h> #include <tvm/schedule.h> #include <unordered_map> #include <unordered_set> #include <vector> #include "../pass/ir_util.h" ...
import anki_vector from anki_vector.messaging.messages_pb2 import BatteryStateResponse def main(): args = anki_vector.util.parse_command_args() with anki_vector.Robot(args.serial) as robot: battery_state: BatteryStateResponse = robot.get_battery_state() if battery_state: print("R...
import command from '@percy/cli-command'; export const validate = command('validate', { description: 'Validate a Percy config file', args: [{ name: 'filepath', description: 'Config filepath, detected by default' }], examples: [ '$0', '$0 ./config/percy.yml' ] }, async ({ args, log, exit }) ...
from ex115.lib.interface import * from ex115.lib.arquivo import * arq = 'Cadastro.txt' if not arquivo_existe('Cadastro.txt'): criar_arq('Cadastro.txt') while True: resposta = menu(['Ver pessoas cadastradas', 'Cadastrar nova pessoa', 'Sair do sistema']) if resposta == 1: cabecalho('EXIBINDO PESSOAS...
# -*- coding: utf-8 -*- """ Created on 09/05/2020 @author: Carlos Eduardo Barbosa Radial profile of Lick indices """ import os import numpy as np from astropy.io import fits from astropy.table import Table, join, vstack import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.patches ...
# -*- coding: utf-8 -*- import os import itertools import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import definitions import globalcache # sns.set(style="white", rc={"axes.facecolor": (0, 0, 0, 0)}) sns.set() pd.options.mode.chained_assignment = 'raise' import votesim f...
import React from 'react' import ReactDOM from 'react-dom' import {Provider} from 'react-redux' import {createStore, applyMiddleware, compose} from 'redux' import reduxThunk from 'redux-thunk' import reduxLogger from 'redux-logger' import App from "./containers/AppContainer"; import reducers from './reducers' const ...
from __future__ import unicode_literals from django.conf.urls import patterns, include, url from django.contrib.admin.sites import AdminSite from mezzanine.utils.importing import import_dotted_path class LazyAdminSite(AdminSite): """ Defers calls to register/unregister until autodiscover is called to av...
# -*- coding: utf-8 -*- """ Created on Thu Apr 16 17:54:18 2015 @author: anderson """ from setuptools import setup import io import version def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in filenames: with io.op...
#coding:utf-8 terminal_servers_conf = [ { "host": "127.0.0.1", "port": 8089, "tag": "word2vec", }, { "host": "127.0.0.1", "port": 8089, "tag": "user profile", } ]
//won't work because its '..' (outside the allowed folder of access)??? //import "../common.js" import 'https://sohrabsaran.github.io/softwareSkillsDemos/frontend/common.js' function changeDom(changeCode, afterChangingDom) { function afterGettingContent(contentDocHtml) { console.log('contentDocHtml', contentDocHt...
import re from typing import Optional, TYPE_CHECKING from django.apps import apps from django.conf import settings from django.contrib.sites.shortcuts import get_current_site from django.core.exceptions import ImproperlyConfigured from django.shortcuts import redirect from django.urls import is_valid_path fro...
/** * @license * Copyright 2020 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
''' Created by auto_sdk on 2019.10.21 ''' from dingtalk.api.base import RestApi class OapiProcessApproversForecastRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.request = None def getHttpMethod(self): return 'POST' def getapiname(self): return 'dingtalk.oapi.process.approver...
dojo.provide("dojox.data.ServiceStore"); // note that dojox.rpc.Service is not required, you can create your own services // A ServiceStore is a readonly data store that provides a data.data interface to an RPC service. // var myServices = new dojox.rpc.Service(dojo.moduleUrl("dojox.rpc.tests.resources", "test.smd"))...
var model = require('../../user/user'), expect = require('expect.js'); describe('User', function() { it('should initialize to a blank object', function() { var newUser = new model.User(); expect(newUser).not.to.be(undefined); expect(newUser).not.to.be(null); expect(newUser.nick...
import cloneDeep from '../../../utils/clone-deep'; import looseEqual from '../../../utils/loose-equal'; import { concat } from '../../../utils/array'; import { isFunction, isString, isRegExp } from '../../../utils/inspect'; import { toInteger } from '../../../utils/number'; import { escapeRegExp } from '../../../utils/...
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. """ This is a small DSL to describe builds of Facebook's open-source projects that are published to Github from a single internal repo, including projects that depend on folly, wangle, proxygen, fbthrift, etc. This file defines the interface of...
# # Apache mod_python interface # # Aaron Klingaman <alk@absarokasoft.com> # Mark Huang <mlhuang@cs.princeton.edu> # # Copyright (C) 2004-2006 The Trustees of Princeton University # import sys import traceback import xmlrpclib from mod_python import apache from sfa.plc.api import SfaAPI from sfa.util.sfalogging impor...
/* $NetBSD: asa.c,v 1.11 1997/09/20 14:55:00 lukem Exp $ */ /* * Copyright (c) 1993,94 Winning Strategies, 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 so...
import React from 'react'; import { Parallax } from 'react-scroll-parallax'; import './shelty.css'; const Shelty = (props) => { return ( <div className="shelty-preview" id="shelty"> <div className="line"> <Parallax className="large" y={[30, 80]}> <img src={pr...
# -*- coding: utf-8 -*- __doc__ = """Tree GRU aka Recursive Neural Networks.""" import numpy as np import torch import torch.nn.functional as F import torch.nn as nn import sys class Node_tweet(object): def __init__(self, idx=None): self.children = [] self.idx = idx self.wor...
import os import numpy as np import nibabel as nb import cbstools from ..io import load_volume, save_volume from ..utils import _output_dir_4saving, _fname_4saving def profile_sampling(profile_surface_image, intensity_image, save_data=False, output_dir=None, file_name=None): ...
var cliArgs = require("../"); var optionDefinitions = [ { name: "verbose", alias: "v", type: Boolean, description: "If passed this option will cause bucket-loads of text to appear on your screen" }, { name: "help", alias: "h", type: Boolean, description: "Set this option to ...
#pragma once #include "Tiny/Renderer/Framebuffer.h" namespace Tiny { class OpenGLFramebuffer : public Framebuffer { public: OpenGLFramebuffer(const FramebufferSpecification& spec); ~OpenGLFramebuffer(); void Bind() override; void Unbind() override; void Recreate(); void Resize(uint32_t width,...
var describe = require('mocha').describe; var it = require('mocha').it; var beforeEach = require('mocha').beforeEach; var expect = require('chai').expect; var sinon = require('sinon'); var WorkResult = require('../../lib/WorkResult'); describe('[UNIT] WorkResult', function () { var result; beforeEach(function () ...
import torch import torch.nn as nn import torch.nn.functional as F from torch_geometric.nn import GraphUNet from torch_geometric.utils import dropout_adj from .. import BaseModel, register_model from cogdl.utils import add_remaining_self_loops @register_model("pyg_unet") class UNet(BaseModel): @staticmethod ...
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import './plugins' import vuetify from './plugins/vuetify' import { sync } from 'vuex-router-sync' import CKEditor from '@ckeditor/ckeditor5-vue' import interceptor from './interceptor' interceptor.init() Vue.u...
from numbers import Number from typing import Any, AnyStr, Callable, Collection, Dict, Hashable, Iterator, List, Mapping, NewType, Optional from typing import Sequence, Tuple, TypeVar, Union from types import SimpleNamespace from abc import abstractmethod, abstractproperty from collections import abc, Counter, default...
from .Basics import Basics from .Interface import Interface from .Network import NetworkData, Network from .Router import Router from .Scope import Scope from .Subnet import Subnet from .Telnet import Telnet from .Yaml import YamlReader from .Utils import *
#!/usr/bin/env python2.7 #-*- coding:utf-8 -*- """ grpc server for python2.7 function """ import argparse import importlib import os import sys import time import grpc import yaml import json import signal from concurrent import futures import function_pb2 import function_pb2_grpc import logging import logging.handler...
/* * MIT License * * Copyright (c) 2021 Denton Woods * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, mod...
/*****************************************************************************/ /* StormPort.h Copyright (c) Marko Friedemann 2001 */ /*---------------------------------------------------------------------------*/ /* Portability module for the StormLib library. Contains a wrapper symbols */ ...
module.exports = { "src/**/*.ts": "eslint -c .eslintrc.js", "*.{ts,json,md}": "prettier --write" };
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'segmentation.views.demo', name='demo'), # Examples: # url(r'^$', 'example_project.views.home', name='hom...
import unittest from werkzeug.test import Client from werkzeug.wrappers import BaseResponse import debt_snowball as ds class TestWebResponses(unittest.TestCase): def setUp(self): self.c = Client(ds.application, BaseResponse) def test_file_404(self): """Any file request should return 404""" ...
/** * Latin (lingua Latina) language functions * * @author Santhosh Thottingal */ ( function ( $ ) { 'use strict'; $.i18n.languages.la = $.extend( {}, $.i18n.languages['default'], { convertGrammar: function ( word, form ) { switch ( form ) { case 'genitive': // only a few declensions, and even for t...
''' Count the rows in a time range or on the whole table. Tables and time range are read from a CSV file. Outputs the results to a CSV file. ''' from google.cloud import bigquery import uuid import pandas as pd import bq_lib as bq from config import config, load_config from lib import make_gen_csv, log_info import rs...
""" sites.py Created by Daniel Magee on 2008-01-29. Copyright (c) 2008 UCO/Lick Observatory. All rights reserved. """ import ephem as E import math class Site(object): """Observatory site class.""" def __init__(self, siteid): try: self.siteid = siteid except KeyError: ...
/* * Copyright 2022 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 ...
# 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 ...
// // HHAppStoreReceiptSqliteTool.h // BXlive // // Created by bxlive on 2018/10/22. // Copyright © 2018年 cat. All rights reserved. // #import <Foundation/Foundation.h> #import "HHAppStoreReceipt.h" @interface HHAppStoreReceiptSqliteTool : NSObject + (void)insertAppStoreReceipt:(HHAppStoreReceipt *)appStoreRecei...
// // TOWebViewController.h // // Copyright 2013-2016 Timothy Oliver. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without li...
import falcon from peewee import IntegrityError from aness.db import models from aness.resources import BaseResource from aness.schemas import UserSchema from aness.helpers import token_required class UserCollectionResource(BaseResource): def on_get(self, req, resp): # with self.db.atomic(): mod...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyFlexx(PythonPackage): """Write desktop and web apps in pure Python.""" homepage = "...
// SPDX-License-Identifier: GPL-2.0+ // // sy8106a-regulator.c - Regulator device driver for SY8106A // // Copyright (C) 2016 Ondřej Jirman <megous@megous.com> // Copyright (c) 2017-2018 Icenowy Zheng <icenowy@aosc.io> #include <linux/err.h> #include <linux/i2c.h> #include <linux/module.h> #include <linux/regmap.h> #i...
# -*- coding: utf-8 -*- from hamcrest import * from test.base import BaseTestCase from test.fixtures.defaults import DEFAULT_UUID from amplify.ext.phpfpm.objects.master import PHPFPMObject __author__ = "Grant Hulegaard" __copyright__ = "Copyright (C) Nginx, Inc. All rights reserved." __license__ = "" __maintainer__ ...
//= link_directory ../stylesheets/glowstick .css
/*! * @license base62.js Copyright(c) 2012 sasa+1 * https://github.com/sasaplus1/base62.js * Released under the MIT license. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory...
"""Start Home Assistant.""" from __future__ import print_function import argparse import os import platform import subprocess import sys import threading from typing import Optional, List from homeassistant import monkey_patch from homeassistant.const import ( __version__, EVENT_HOMEASSISTANT_START, REQU...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("v...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Extracts annotations from a PDF file in markdown format for use in reviewing. """ import argparse import io import sys import os import textwrap from collections import defaultdict from PyPDF2 import PdfFileReader import pdfminer.pdftypes as pdftypes import pdfminer...
import Index from './SkeletonLoader.vue'; export default Index;
function oddOrEven(number) { let num = Number(number); if (num % 2 == 0) { console.log("even"); } else { console.log("odd"); } } oddOrEven("1024");
const toString = Object.prototype.toString export const checkType = (val) => Object.prototype.toString.call(val).slice(8, -1) export const toKebabCase = (str) => str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`).replace(/^-/, '') export const clone = (object, deep) => { if (object === null || typeof ob...
import json import numpy as np import argparse from random import randint import cv2 with open('../infos/directory.json') as fp: all_data_dir = json.load(fp) ANN_FILE_train = all_data_dir + 'Annotations_hico/train_annotations_quattro.json' ANN_FILE_test = all_data_dir + 'Annotations_hico/test_annotations.json' with o...
const router = require("koa-router")(); const uploadCtl = require("./../controllers/upload"); const uploadRouter = router.post("/ApplyUploadSign", uploadCtl.applyUploadSign); module.exports = uploadRouter;
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('content', '0016_sitesettings_context_processor_code'), ] operations = [ migrations.AddField( model_name='blogpost', name='is_featured', field=models.Bool...
""" Still a cache server. This does not interact with the client. """ import pickle import socket from distcache import configure as config from distcache import utils from distcache.lru_cache import LRUCache config = config.config() class CacheClient: def __init__(self, capacity=100): """ :par...
# coding: utf-8 """ Sunshine Conversations API The version of the OpenAPI document: 9.4.5 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from sunshine_conversations_client.configuration import Configuration from sunshine_conversations_client.undefine...
/* eslint camelcase: off */ module.exports = { communes: [ {name: 'id', type: 'character', length: 5}, {name: 'nom', type: 'character', length: 80}, {name: 'created', type: 'date'}, {name: 'updated', type: 'date'} ], sections: [ {name: 'id', type: 'character', length: 10}, {name: 'commune'...
// server.js // set up ====================== var express = require('express'); var mongoose = require('mongoose'); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var morgan = require('morgan'); var app = express(); // configuration ================ var config = requi...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ export function updateTag(tagName, keyName, keyValue, a...
import WeightFirebase from './weightFirebase' import { toFirebaseTimestamp, pastDays, dateDiff, toDate, nextDay } from '../utils/date-utils' import { avgHome } from '../stat/StatHelper' import FirebaseException from '../utils/FirebaseException' class WeightAPI { getAll = async uid => { try { return awai...
// Redux import { createStore, applyMiddleware } from "redux"; import { composeWithDevTools } from "redux-devtools-extension"; // Middlewares import { createLogger } from "redux-logger"; import thunkMiddleware from "redux-thunk"; // Reducers import rootReducer from "./redux/index"; const configureStore = () => ...
import sys import unittest from unittest import mock from bpython.curtsiesfrontend.coderunner import CodeRunner, FakeOutput class TestCodeRunner(unittest.TestCase): def setUp(self): self.orig_stdout = sys.stdout self.orig_stderr = sys.stderr def tearDown(self): sys.stdout = self.orig...
import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import CommentList from '../components/Article/CommentSection/CommentList'; import * as CommentListActions from '../actions/commentList'; const mapStateToProps = ({ commentList: { comments } }) => ({ comments, }); const mapDispatchTo...
# Solution of; # Project Euler Problem 512: Sums of totients of powers # https://projecteuler.net/problem=512 # # Let $\varphi(n)$ be Euler's totient function. Let # $f(n)=(\sum_{i=1}^{n}\varphi(n^i)) \text{ mod } (n+1)$. Let # $g(n)=\sum_{i=1}^{n} f(i)$. $g(100)=2007$. Find $g(5 \times 10^8)$. # # by lcsm29 http:/...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class InvoiceAmountLimitDTO(object): def __init__(self): self._amount_limit = None self._invoice_kind = None self._month_amount_limit = None @property def amount_limit(...
#include <myBgn.h> #define NO_OF_QUERIES 1 typedef struct SLP1_key_t{ BGN_PK_t * bgnPk; BGN_SK_t * bgnSk; int keyPerm; //permutation key }SLP1_KEY_t; typedef struct trapdoor_t{ int pos_i; //Should be changed int rand_s; }TRAPDOOR_t; typedef struct lp_q_res_t{ element_t * ciphertexts; ...
# Databricks notebook source # MAGIC %run ./_databricks-academy-helper $lesson="1.3.2L" # COMMAND ---------- DA.cleanup() DA.init() DA.conclude_setup()
/** * freee API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: ...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "NSSecureCoding.h" @class ASDBetaAppDisplayNames, ASDBetaAppVersion, NSDate, NSDictionary, NSString; @interface ASDBetaAppLaunchInfo : NSObject <NSSe...
# -*- coding: utf-8 -*- """Version-check script.""" import os import sys import codecs from art.art_param import * Failed = 0 VERSION = "4.9" README_ITEMS = ['<td align="center">{0}</td>'.format(str(FONT_COUNTER)), '<img src="https://img.shields.io/badge/Art List-{0}-orange.svg">'.format(str(ART_COUNT...
#!/usr/bin/env python import argparse import json import os import random import numpy as np import ray from ray.tune import Trainable, run, sample_from from ray.tune.schedulers import HyperBandScheduler class MyTrainableClass(Trainable): """Example agent whose learning curve is a random sigmoid. The dumm...
let utility ={} utility.types = { media: ["mp4", "mkv"], archives: ['zip', '7z', 'rar', 'tar', 'gz', 'ar', 'iso', "xz"], documents: ['docx', 'doc', 'pdf', 'xlsx', 'xls', 'odt', 'ods', 'odp', 'odg', 'odf', 'txt', 'ps', 'tex'], app: ['exe', 'dmg', 'pkg', "deb"] } module.exports = utility;
import sys from antlr4 import FileStream, CommonTokenStream, ParseTreeWalker from antlr_py.ChatLexer import ChatLexer from antlr_py.ChatParser import ChatParser from antlr_py.listeners import HtmlChatListener def main(argv): input_ = FileStream(argv[1]) lexer = ChatLexer(input_) parser = ChatParser(Comm...
#!/usr/bin/python # -*- coding: utf-8 -*- import abc import collections from lxml import etree as et import decimal import datetime import urllib.request, urllib.parse, urllib.error from . import utilities from .base import Base, MalformedPageError, InvalidBaseError, loadable class MalformedMediaListPageError(Malfo...
#!/usr/bin/env python # ========================================================================== # # # Create links to the parameter files in the data tree template # # ========================================================================== # from __future__ import print_function import os import sys from optpar...
import React, { Component } from 'react'; import axios from "axios"; import { withRouter } from "react-router-dom" ; import Footer from './Footer'; import { storage } from "./firebase.js"; import Navbar_Login from "./Navbar_Login" class AddItems extends Component { constructor(props) { super(props) //Defin...
#!/usr/bin/env python ## Program: VMTK ## Module: $RCSfile: vmtkmeshwallshearrate.py,v $ ## Language: Python ## Date: $Date: 2005/09/14 09:49:59 $ ## Version: $Revision: 1.6 $ ## Copyright (c) Luca Antiga, David Steinman. All rights reserved. ## See LICENSE file for details. ## This software is...
from keras.models import Sequential, Model from keras.layers import Dense, Activation, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.applications.mobilenet import MobileNet def reg_mobilenet(input_shape): base_model = MobileNet(input_shape=input_shape, include_top=False, weights=None)...
(function(window){function ismdef(n){for(var t=0;t<n.length;t++)if(isdef(n[t])==!1)return!1;return!0}function isdef(v){return v==""?!1:eval("typeof "+v)!=undef}function createjs(n){var t=document.createElement("script");return t.setAttribute("type","text/javascript"),t.setAttribute("src",n),t}function includejs(n){var ...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
_base_ = '../retinanet/retinanet_r50_fpn_1x_coco.py' # model settings model = dict( type='FSAF', bbox_head=dict( type='FSAFHead', num_classes=80, in_channels=256, stacked_convs=4, feat_channels=256, reg_decoded_bbox=True, # Only anchor-free branch is imple...
/* memoizer :: (Any -> Any) -> Any -> Any @arg: an unary function @return: the respective memoized function */ const memoizer = (f) => { let cache = {} return function (n) { if (cache[n] != undefined) { return cache[n] } else { let res = f(n) cache[n] = res return res ...
numero = int(input('Digite um número:')) ant = numero - 1 sus = numero + 1 print('O antessesor de {} é o {} e o sucessor é {}.'.format(numero, ant, sus))
""" Config options. """ from .lib import arg, o def help(): """ Define options. """ h = arg return [ h("bin min size =len**b", b=.5), h("what columns to while tree building", c=["x", "y"]), h("use at most 'd' rows for distance calcs", d=256), ...
# -*- coding: utf-8 -*- ''' @author: look @copyright: 1999-2020 Alibaba.com. All rights reserved. @license: Apache Software License 2.0 @contact: 390125133@qq.com ''' '''logcat监控器 ''' import os,sys,csv import re import time BaseDir=os.path.dirname(__file__) sys.path.append(os.path.join(BaseDir,'../..')...
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: david@reciprocitylabs.com # Maintained By: david@reciprocitylabs.com from behave import then, when from tests.ggrc.behave.utils import ( get_re...
# Copyright (c) 2018, CMCC Technologies Co., Ltd. # Copyright 2019 ZTE 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 requ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-afa1e45 */ (function( window, angular, undefined ){ "use strict"; (function() { 'use strict'; /** * @ngdoc module * @name material.components.fabActions */ angular .module('material.component...
#!/usr/bin/env python import io import os from setuptools import find_packages, setup setup( name='Appium-Flutter-Finder', version='0.1.3', description='An extention of finder for Appium flutter', long_description=io.open(os.path.join(os.path.dirname('__file__'), 'README.md'), encoding='utf-8').read(...
/** * To show the users who else are working on the board */ define(["matisse"], function(matisse) { function startGreeting(view) { var friends = []; var io = matisse.comm.socket; function me() { return matisse.userName; ...
"use strict"; import _ from "lodash"; import uuidv4 from "uuid/v4"; import passwordValidator from "password-validator"; import { respCodeAndMsg, constants } from "../config"; const { STATUS_CODE } = respCodeAndMsg; const createErrorObject = (httpStatusCode, message, data) => { return { details: { messag...
const { Command } = require('discord-akairo'); class ProgressionCommand extends Command { constructor() { super('progression', { aliases: ['progression'], category: 'Music', description: { content: 'La commande progression permet de voir la progression de...
const router = require('express').Router(); const { Comment } = require('../../models'); const withAuth = require('../../utils/auth'); //find all router.get('/', (req,res) => { Comment.findAll({}) .then(commentData => res.json(commentData)) .catch(err => { console.log(err); res.status(500).j...