text
stringlengths
3
1.05M
from .utter_more import UtterMore __version__ = '1.0.1' __name__ = 'utter-more'
# -*- coding: utf-8 -*- from __future__ import print_function, division import torch import json import math import random import numpy as np from scipy import ndimage from pymic.transform.abstract_transform import AbstractTransform from pymic.util.image_process import * class RandomRotate(AbstractTransform): ""...
import torch def generate_grid(n_vox, interval): with torch.no_grad(): # Create voxel grid grid_range = [torch.arange(0, n_vox[axis], interval) for axis in range(3)] grid = torch.stack(torch.meshgrid(grid_range[0], grid_range[1], grid_range[2])) # 3 dx dy dz grid = grid.unsqueeze(...
/* global jQuery:true */ /* * Fuel UX Placard * https://github.com/ExactTarget/fuelux * * Copyright (c) 2014 ExactTarget * Licensed under the BSD New license. */ // -- BEGIN UMD WRAPPER PREFACE -- // For more information on UMD visit: // https://github.com/umdjs/umd/blob/master/jqueryPlugin.js (function umdFa...
# -*- coding: utf-8 -*- # Copyright © 2018 VMware, Inc. All rights reserved. # SPDX-License-Identifier: BSD-2-Clause
endpoints = { 'home': 'https://pollev.com/{host}', # MyUW Login 'uw_login': 'https://idp.u.washington.edu/idp/profile/SAML2/' 'Redirect/SSO;jsessionid={id}.idp03?execution=e1s1', 'uw_saml': 'https://www.polleverywhere.com/auth/washington?' 'redirect=https%3A%2F%2Fpollev.c...
// SPDX-License-Identifier: GPL-2.0-only /* * linux/init/main.c * * Copyright (C) 1991, 1992 Linus Torvalds * * GK 2/5/95 - Changed to support mounting root fs via NFS * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmak...
import json import os import uuid from django.conf import settings from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth import login as django_login from django.contrib.auth import logo...
// Temporary empty test test('empty', () => { expect(true).toBe(true); });
macDetailCallback("000af6000000/24",[{"d":"2002-09-09","t":"add","a":"1640 Airport Rd\nSuite 104\nKennesaw GA 30144-7038\n","c":"UNITED STATES","o":"Computer Process Controls","s":"wireshark.org"},{"d":"2009-06-23","t":"change","a":"1640 Airport Rd\nSuite 104\nKennesaw GA 30144-7038\n","c":"UNITED STATES","o":"Emerson ...
import requests from bs4 import BeautifulSoup from datetime import datetime import json # This script uploads news from RSS feeds to staffbase channel # The RSS feed url needs to be defined is the variable rssFeedUrl # the staffbase channel to which we need to post is defined in variable staffbase_channel # The api a...
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Objec...
# !/usr/bin/env python import os import re import sys from codecs import open from setuptools import find_packages, setup from setuptools.command.test import test ROOT = os.path.dirname(__file__) VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""") class PyTest(test): def run_tests(self): imp...
# Copyright 2018 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...
# coding=utf8 # Copyright 2018 JDCLOUD.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 applicable law or agreed ...
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com timehome@corp.globo.com from pexif import ExifSegment from thumbor.utils import logger, EXTE...
# Usando un for for i in range(0, 10): print i # El mismo comportamiento usando while i = 0 while i < 10: print i i = i + 1
(function (app) { 'use strict'; app.registerModule('lcghymnals'); }(ApplicationConfiguration));
// // VehicleDataManager.h // SmartDeviceLink-Example-ObjC // // Created by Nicole on 4/23/18. // Copyright © 2018 smartdevicelink. All rights reserved. // #import <Foundation/Foundation.h> @class SDLManager; NS_ASSUME_NONNULL_BEGIN typedef void(^RefreshUIHandler)(void); @interface VehicleDataManager : NSObjec...
# Copyright (c) 2020 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...
var $ = require('jquery'); var _ = require('underscore'); var pascalcase = require('to-case').pascal; var camelcase = require('to-case').camel; var FileUpload = require('../components/fileUpload'); var IncludedAdmin = require('../formElements/includedAdmin'); var Message = require('../components/message'); var Resource...
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'chengzhi' import asyncio import json import math import os import time from datetime import date, datetime from typing import Union import aiohttp import requests import pandas as pd from tqsdk.channel import TqChan from tqsdk.datetime import _get_trading_...
""".. Ignore pydocstyle D400. ========= Constants ========= ReSDK constants. """ CHUNK_SIZE = 8000000 # 8MB RESOLWE_DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S.%f" # Permissions here should be ordered from most to least important ALL_PERMISSIONS = ["owner", "share", "edit", "view", "none"]
import json, mysql.connector new_db = mysql.connector.connect( host="localhost", user="yourusername", passwd="yourpassword", database="newdatabase") mycursor = new_db.cursor() mycursor.execute("CREATE TABLE startup_order(Record_ID INT, Name VARCHAR(63), Cell_Phone VARCHAR(14), Work_Phone VARCHAR(14), Email VARC...
from django.core.urlresolvers import reverse from django.http import HttpResponse from django.shortcuts import render from django.contrib.auth import authenticate, login # Create your views here. def register_succeed(request): template_name = 'registration/register_succeed.html' return render(request, templat...
# -*- coding: utf-8 -*- # @Time : 18-9-21 上午11:42 # @Author : zhoujun import torch from models.crnn import CRNN def save(net, input, save_path): net.eval() traced_script_module = torch.jit.trace(net, input) traced_script_module.save(save_path) def load(model_path): return torch.jit.load(model_pat...
from scipy.io import loadmat import numpy as np from calculateOut import calculateOut import matplotlib.pyplot as plt xt = loadmat('dinamico/xt2.mat') xv = loadmat('dinamico/xv2.mat') ydt = loadmat('dinamico/ydt2.mat') ydv = loadmat('dinamico/ydv2.mat') xt = xt['xt2'] xv = xv['xv2'] ydt = ydt['ydt2'] ydv = ydv['ydv2...
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-18 12:49 from __future__ import unicode_literals import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('example_project', '0001_initial'), ...
import React from 'react' import { shallow } from 'enzyme' import { snapshotTest } from 'utils/tests' import DateComponent from '../Date' describe('Date', () => { const baseProps = { onChange: jest.fn(), fixedComparison: {value: 'fixed', label: 'Exact'}, comparison: 'fixed', } describe('Snapshots', (...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA 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 cop...
HighFidelity.PodcastsView = Ember.View.extend({});
'''6. Write a Python program to make two given strings (lower case, may or may not be of the same length) anagrams removing any characters from any of the strings.''' def make_map(s): temp_map = {} for char in s: if char not in temp_map: temp_map[char] = 1 else: temp_ma...
"""Amazon MySQL Module.""" import logging import uuid from typing import Any, Dict, Iterator, List, Optional, Tuple, Type, Union import boto3 import pandas as pd import pyarrow as pa import pymysql from pymysql.cursors import Cursor from awswrangler import _data_types from awswrangler import _databases as _db_utils ...
/* $OpenBSD: conf.c,v 1.5 2010/12/06 18:44:49 jasper Exp $ */ /* $NetBSD: conf.c,v 1.4 2005/12/11 12:17:06 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
import Vue from 'vue'; import Vuex from 'vuex'; import { UserAuth } from './modules/UserAuth.js'; import { FirstLaunch } from './modules/FirstLaunch.js'; import { DocumentsServer } from './modules/Documents.js'; import { StartUp } from './modules/StartUp.js'; import { WebSocket } from './modules/WebSocket'; import { E...
var arr= []; var x = prompt('Please input the start: ') var x = parseInt(x); var y = prompt('Please input end: ') var y = parseInt(y); var z = prompt('Please input step: ') var z = parseInt(z); if(z == 0){ alert("you entered 0 increments , refresh and try again") } if(isNaN(x)){ alert ("one of inputs is not ...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
from importlib import import_module from argparse import ArgumentParser from yaml import load, FullLoader from cliar import Cliar from cliar import ignore as ignore_method from .bed import Bed from . import __version__ class CLI(Cliar): '''Welcome to Sloth CI CLI! Run "sci start" to start the server.''' ...
// flow-typed signature: 4a3755ac03372195ee1ab12b6b592481 // flow-typed version: <<STUB>>/eslint-plugin-jsx-control-statements_v^2.2.1/flow_v0.74.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-jsx-control-statements' * * Fill this stub out by replacing all the `any` types. * * Once fille...
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the follo...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
function MultiPeers(connection) { var self = this; var skipPeers = ['getAllParticipants', 'getLength', 'selectFirst', 'streams', 'send', 'forEach']; connection.peersBackup = {}; connection.peers = { getLength: function() { var numberOfPeers = 0; for (var peer in this) { ...
const YAML = require('yaml'); const request = require('request'); const logger = require('./src/logger'); const Job = require('./src/job').Job; const jobList = require('./src/job').JobList; const fs = require('fs'); global.config = {}; logger.info('Starting Client'); /*logger.warn('test'); logger.error('error'); log...
"""The tests for the Dark Sky weather component.""" import re import unittest from unittest.mock import patch import forecastio from requests.exceptions import ConnectionError import requests_mock from openpeerpower.components import weather from openpeerpower.setup import setup_component from openpeerpower.util.unit...
import { __ } from 'embark-i18n'; const { getWindowSize } = require('../../lib/utils/utils.js'); let Monitor = require('./monitor.js'); class Dashboard { constructor(options) { this.logger = options.logger; this.events = options.events; this.plugins = options.plugins; this.version = options.version;...
# Copyright 2009 - Participatory Culture Foundation # # This file is part of djpubsubhubbub. # # 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 # ...
/* eslint import/no-unresolved: 0 */ import React from 'react'; import { storiesOf } from '@storybook/react'; // welcome import Welcome from 'examples/welcome'; // basic import BasicTable from 'examples/basic'; import BorderlessTable from 'examples/basic/borderless-table'; import StripHoverCondensedTable from 'exampl...
/* global Saxon, stylesheetUri, baseUri, requestUri, absolutePath, lang, xslt2proc, UriBuilder */ var rdfXml = null; // TO-DO: set as xsl:param instead function loadRDFXML(event, url, callback) { $.ajax({url: url, headers: { "Accept": "application/rdf+xml" } }). done(function(data, textStatus, jqX...
# Copyright (c) OpenMMLab. All rights reserved. import os import warnings from collections import OrderedDict, defaultdict import json_tricks as json import numpy as np from mmcv import Config from xtcocotools.cocoeval import COCOeval from mmpose.core.post_processing import oks_nms, soft_oks_nms from mmpose.datasets....
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.ToggleButton. sap.ui.define([ './Button', './library', 'sap/ui/core/EnabledPropagator', './ToggleButtonRenderer', "sap/ui/events/KeyCodes...
# coding=utf-8 """ 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"); y...
import asyncio from decimal import Decimal from pprint import pprint from pydaybit import Daybit async def daybit_order_books(): async with Daybit() as daybit: quote = 'BTC' base = 'ETH' price_intvl = Decimal((await daybit.markets())['{}-{}'.format(quote, base)]['tick_price']) ord...
var Test = require('../config/testConfig.js'); var BigNumber = require('bignumber.js'); var Web3 = require("web3"); contract('Flight Surety Tests', async (accounts) => { var config; before('setup contract', async () => { config = await Test.Config(accounts); await config.flightSuretyData.authorizeCaller(c...
// @flow import React from 'react' import isNumber from 'lodash.isnumber' const cmz = require('cmz') const cx = { wrapper: cmz(` font-size: 1.0625rem; `), content: cmz(` font-weight: 600; margin-right: 5px; `) } type Props = { items?: number } const ResultCount = ({ items }: Props) => { co...
from haverhill_311_function.modules import settings from haverhill_311_function.modules import qalert def test_valid_format(): settings.TEST = True res = qalert.pull() for qalert_request in res: assert type(qalert_request) == dict def test_using_endpoint(): settings.TEST = True res = qal...
// Copyright (c) 2009-2019 Andrew Green. MIT License. http://www.zoolib.org #ifndef __ZooLib_AnyBase_h__ #define __ZooLib_AnyBase_h__ #include "zconfig.h" #include "zoolib/CountedWithoutFinalize.h" #include "zoolib/Compare_T.h" #include "zoolib/ZP.h" #include "zoolib/ZQ.h" #include <cstring> // For strcmp #include ...
Abtfr[0](function(y,f){function w(a,b,c){"function"!=typeof c&&(c=function(){});void 0!==f[23]?f[23](a,b,c):(f[21](a,b),c())}function x(a){var b=document.createElement("a");return b.href=a,b.href}function n(a,b,c){if(!1!==b&&b instanceof Array&&0!==b.length){for(var m=!0,l=!1,u=!1,v=b.length,d=0;d<v;d++)if(g&&g[b[d]]){...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtQuick module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commer...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import unittest import pyperclip from user import User from user import Credentials class TestUser(unittest.TestCase): ''' Test class that defines test cases for our user object Args: unittest:TestCase - TestCase class that helps in defining test cases ''' #test to confirm that our object ...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
# -*- coding: utf-8 -*- # # MathJax documentation build configuration file, created by # sphinx-quickstart on Sun May 16 23:18:19 2010. # # 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. # # All...
import {Container, Row, Col} from 'react-bootstrap' import BestSellerList from "./components/BestSellerList"; import './App.css'; function App() { return ( <> <Container fluid className="d-flex flex-column m-2"> <Row className="my-2"> <Col md={12}> <h1 className="dis...
from __future__ import annotations import logging from typing import TYPE_CHECKING import pygame from scripts.core.base_classes.ui import UI from scripts.core.constants import DEFAULT_IMAGE_SIZE, GAP_SIZE, SceneType from scripts.ui_elements.frame import Frame from scripts.ui_elements.unit_stats_frame import UnitStat...
export { getRoute, getStrongRoute, history, parsedPath, pathDeep, router, routerContext, routes, routesIsh } from './router.es6.js';
/******************************************************************************************* * * raylib - classic game: tetris * * Sample game developed by Marc Palau and Ramon Santamaria * * This game has been created using raylib v1.3 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng licen...
import numpy as np from scipy.special import gammaln, digamma import bnpy def evaluateDeleteMoveCandidate_LP( Data, curModel, curLP=None, propLP=None): propModel = curModel.copy() curModel = curModel.copy() Korig = curModel.allocModel.K propSS = curModel.get_global_suff_stats...
import Matrix4D from '../math/matrix4d'; import EasingBounce from '../easing/bounce'; import SwayEasing from '../easing/sway'; import HardBounce from '../easing/hardbounce'; import HardSwayEasing from '../easing/hardsway'; class Component { constructor(options = {}) { this.componentType = 'unknown'; ...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
from django.urls import path from . import views app_name = "home" urlpatterns = [ path("", views.IndexView.as_view(), name="index"), path("discover/", views.DiscoverView.as_view(), name="discover"), path("faq/", views.FAQView.as_view(), name="faq"), path("playground/", views.PlayGroundView.as_view()...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Narcanisum developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CHAIN_PARAMS_H #define BITCOIN_CHAIN_PARAMS_H #include "bignum...
const { igstory } = require('../lib/scrape') let handler = async (m, { conn, args, usedPrefix, command }) => { if (!args[0]) throw `Usernamenya mana ngab?\n\nexample:\n${usedPrefix + command} leomessi` if (args[0].startsWith('http') || args[0].startsWith('@')) throw `wrong username` igstory(args[0]).then(async...
from python_helper import ObjectHelper from python_framework import Mapper, MapperMethod from Feature import Feature from dto.FeatureDto import FeatureRequestDto import DefaultValue @Mapper() class FeatureMapper: @MapperMethod(requestClass=[FeatureRequestDto, str], responseClass=Feature) def fromPostReques...
const path = require('path'); const express = require('express'); const app = express(); const apiRouter = require('./routes/api'); const mongoose = require("mongoose"); const env = require('dotenv').config(); const session = require('express-session'); const mongoStore = require('connect-mongodb-session')(session); co...
/* ISC license. */ #include <s6-dns/s6dns-message.h> unsigned int s6dns_message_parse_skipqd (s6dns_message_counts_t *counts, char const *packet, unsigned int packetlen, unsigned int *pos) { for (;;) { unsigned int r = s6dns_message_counts_next(counts) ; if (r != 1) return r ; if (!s6dns_message_get_d...
import pygame as pg import chessdotcom as chess def sz2xy(sz): return sz[0]*FELD, sz[1]*FELD def xy2sz(xy): return xy[0]//FELD, xy[1]//FELD def zeichneBrett(BRETT): for sz, feld in BRETT.items(): farbe = '#DFBF93' if feld else '#C5844E' pg.draw.rect(screen, farbe, (*sz2xy(sz), FELD, FELD)) def fen...
module.exports = function check(str, bracketsConfig) { const stack = []; const BRACKETS_PAIRS = {}; for (let item of bracketsConfig) { let openBrackets = item .filter((value, index) => index % 2 === 0) .join(""); let closeBrackets = item .filter((value, i...
import api from './api' export default { search(params) { return api().get('/api/cities', { params }) }, }
import os from easydict import EasyDict as edict import time import torch # init __C = edict() cfg = __C #------------------------------TRAIN------------------------ __C.SEED = 3035 # random seed, for reporduction __C.DATASET = 'GCC' # dataset selection: GCC, SHHA, SHHB, UCF50, QNRF, WE if __C.DATASET == 'UCF50':# ...
# (c) 2012-2016, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import torch.multiprocessing as mp from torch.testing._internal.common_utils import slowTest ...
# this only works on Linux # it uses the abstract namespace socket feature. from Pyro5.api import expose, Daemon @expose class Thingy(object): def message(self, arg): print("Message received:", arg) return "Roger!" with Daemon(unixsocket="\0example_unix.sock") as d: # notice the 0-byte at the...
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=d61f1aed7fb646841ee10a77f77d5923) * Config saved to config.jso...
import os import subprocess import click import requests from utils.api import ApiWrapper from utils.faker import FakeTanzaniaData from fixtures import forms api = ApiWrapper() # api.get_user() # api.toggle_private() # api.create_survey(tanzania_survey) @click.group() def cli(): pass @click.command() @click.o...
$("#btn_update").on("click", function (e) { e.preventDefault(); if (validate()) { Swal.fire({ title: 'Are you sure?', type: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonT...
var blogCollection = require('c/models/blog-reading-collection'); var itemView = require('c/views/item'); var blogListView = Backbone.View.extend({ tagname: 'ul', className: 'blog-list', template: JST['c/c'], initialize: function(){ this.listenTo(this.collection, 'update', this.render); }, render: fun...
import os import sys import platform import efficientunet from setuptools import setup # "setup.py publish" shortcut. if sys.argv[-1] == 'publish': os.system('python setup.py sdist') os.system('twine upload dist/*') if platform.system() == 'Windows': os.system('powershell rm –path dist, efficientun...
import { createTheme, responsiveFontSizes } from "@material-ui/core/styles"; import fonts from "./fonts"; import commonSettings, { handleBackdropFilter } from "./global.js"; // TODO: Break repeated use color values out into list of consts declared here // then set the values in darkTheme using the global color variabl...
import os import cv2 as cv import tensorflow as tf import numpy as np from dataset_loader import * from encode_decode import * from helpers import * def test_save(X_train, y_train, dt, optical_flows_train, motion_representations_train): save_path = os.path.dirname(os.getcwd()) + '/results' restore_path = os.p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequestMappingCache = exports.ApiModelCache = void 0; const apiModelCache_1 = require("./apiModelCache"); Object.defineProperty(exports, "ApiModelCache", { enumerable: true, get: function () { return apiModelCache_1.ApiModelCache; ...
from flask import Flask, jsonify, request from products import products from app import app if __name__ == "__main__": app.run(debug=True, port=4000)
const { query } = require('../utils/db') /** * 保存头像地址 * @param {*} user_id * @param {*} imgURL */ const saveAvater = function (user_id, imgURL) { const _sql = 'update user_info set avator=? where id=?' return query(_sql, [imgURL, user_id]) } /** * 保存认证图片 * @param {*} user_id * @param {*} imgURL */ const...
# Xlib.ext.record -- RECORD extension module # # Copyright (C) 2006 Alex Badea <vamposdecampos@gmail.com> # # This library 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 Software Foundation; either version 2.1 # of the ...
#include <axutil_url.h> #include "../util/create_env.h" /** @brief test url * create URL and get the values of it's components */ axis2_status_t test_url(axutil_env_t *env) { axutil_url_t * url; axis2_char_t *url_str = "https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12386356"; axis2_...
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD from setuptools import setup from catkin_pkg.python_setup import generate_distutils_setup # fetch values from package.xml setup_args = generate_distutils_setup( packages=['o2ac_assembly_database'], package_dir={'': 'src'}) setup(**setup_args)
var classgui__framework_1_1utility_1_1_check_box_creator = [ [ "CheckBoxCreator", "classgui__framework_1_1utility_1_1_check_box_creator.html#af49d3379a3c42557fb92ae43b499e730", null ], [ "~CheckBoxCreator", "classgui__framework_1_1utility_1_1_check_box_creator.html#a49dd1050164a016b0e2a9417e18d2ae4", null ], ...
/** * Given a number, replace this number with * the sum of its digits until we get to a one digit number. * * @param {Number} n * @return {Number} * * @example * For 100, the result should be 1 (1 + 0 + 0 = 1) * For 91, the result should be 1 (9 + 1 = 10, 1 + 0 = 1) * */ function getSumOfDigits(n) { const...
import numpy as np import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D class surf_function(): def __init__(self, coeff): self.coeff = coeff def func_eval(self, x, y): vec = np.arra...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.9/esri/copyright.txt for details. //>>built define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/tsSupport/paramHelper ../core/tsSupport/assignHelper ../core...
import os from kivy.app import App from kivy.lang import Builder from kivy.uix.screenmanager import ScreenManager, Screen from hoverable import HoverBehavior from kivy.uix.image import Image from kivy.uix.behaviors import ButtonBehavior import json import glob import random from datetime import datetime from pathlib im...