text
stringlengths
3
1.05M
import io import struct from helper import unittest, PillowTestCase, hopper from PIL import Image, TiffImagePlugin, TiffTags from PIL.TiffImagePlugin import _limit_rational, IFDRational tag_ids = {info.name: info.value for info in TiffTags.TAGS_V2.values()} class TestFileTiffMetadata(PillowTestCase): def test...
#ifdef __OBJC__ #import <Cocoa/Cocoa.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double TinaVersionNumber; FOUNDATION_EXPORT const unsigned char TinaVersionString[];
/*! * Copyright (c) 2015-2016, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by ...
import { useEffect, useRef } from "react"; import * as Notifications from "expo-notifications"; import expoPushTokensApi from "../api/expoPushTokens"; import { Platform } from "react-native"; import logger from "../utility/logger"; const useNotifications = (notificationListenerFn, responseListenerFn) => { const not...
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core'; var TreeMapCellSeriesComponent = (function () { function TreeMapCellSeriesComponent() { this.tooltipDisabled = false; this.gradient = false; this.select = new EventEmitter(); } TreeMapCel...
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------ bug of rasterio -------- import os if "GDAL_DATA" in list(os.environ.keys()): del os.environ["GDAL_DATA"] if "PROJ_LIB" in list(os.environ.keys()): del os.environ["PROJ_LIB"] # ------ bug of rasterio -------- import json import urllib.request import urll...
const layout = require('../layout'); module.exports = ({ products }) => { const renderedProducts = products .map(product => { return ` <div class="column is-one-quarter"> <div class="card product-card"> <figure> <img src="data:image/png;base64, ${product.image}"/...
import { readFileSync as fsReadFileSync, writeFileSync as fsWriteFileSync } from 'fs' import { dirname } from 'path' import mkdirp from 'mkdirp' import crypto from 'crypto' export function readFileSync (file) { return fsReadFileSync(file, 'utf8') } export function writeFileSync (file, content) { mkdirp.sync(dirna...
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/parisc/mm/init.c * * Copyright (C) 1995 Linus Torvalds * Copyright 1999 SuSE GmbH * changed by Philipp Rumpf * Copyright 1999 Philipp Rumpf (prumpf@tux.org) * Copyright 2004 Randolph Chung (tausq@debian.org) * Copyright 2006-2007 Helge Deller (deller@...
var $ = jQuery; $(document).ready(function() { $('#menu-open').click(function() { $('#menu-open span').toggleClass('open'); $('.nav').slideToggle('slow'); }); //products sub menu $('.products-menu-link>a').click(function() { $('.downloads').removeClass('sub-menu-open'); ...
// Jasmine Test for lib/movie.js describe('Movie', function() { // inject the HTML fixture for the test to run against beforeEach(function() { var fixture = '<div id="fixture" class="movie" data-idx="42">' + ' <dl>' + ' <dd><span id="votes">n/a</span></dd>' ...
const Path = require('path'); // Import the core config const webpackConfig = require('@silverstripe/webpack-config'); const { moduleCSS, pluginCSS, } = webpackConfig; const ENV = process.env.NODE_ENV; const PATHS = { MODULES: 'node_modules', FILES_PATH: '../', ROOT: Path.resolve(), SRC: Path.resolve('clie...
numero1 = 10 numero2 = 15 resultado = numero1+numero2 print(resultado) resultado = numero1-numero2 print(resultado) resultado = numero1*numero2 print(resultado) resultado = numero1/numero2 print(resultado) resultado = 'Pablo' + ' Schumacher' print(resultado)
// @flow import YAML from 'yaml'; import { globalBeforeEach } from '../../../__jest__/before-each'; import * as models from '../../../models'; import * as db from '../../../common/database'; import { assertAsyncError, setupDateMocks } from './util'; import NeDBPlugin from '../ne-db-plugin'; import path from 'path'; imp...
// // WSqlRecorder.h // Pods // // Created by 吴志强 on 2018/7/30. // #import <Foundation/Foundation.h> #import "WSqlSession.h" @interface WSqlRecorder : NSObject /** 设置表名 */ @property (nonatomic,copy) NSString *tableName; /** 获取记录实例 @param tableName 表名 */ + (instancetype) recorderWithTableName:(NSString *)ta...
import json import logging import sys from typing import Dict, Union, List import falcon import jwt from passlib.hash import argon2 from pymongo import MongoClient, ASCENDING from pymongo.collection import Collection from pymongo.errors import CollectionInvalid from common.consts import CONFIG_MONGO, CONFIG_MONGO_HOS...
from setuptools import setup, find_packages long_description = open("README.rst").read() setup( name="PyChromecast", version="12.1.4", license="MIT", url="https://github.com/balloob/pychromecast", author="Paulus Schoutsen", author_email="paulus@paulusschoutsen.nl", description="Python mod...
import React, { Component } from "react"; import { Row, Input, Button } from "react-materialize"; import { Link } from "react-router-dom"; class Login extends Component { constructor(props) { super(props); this.login(); this.state = { error: false, msg: null }; } formSubmit(e) { e.preventDefault...
# Funcao recursiva de MDC # O experimento traduzira a funcao mdcTR # -*- coding: utf-8 -*- import time as t import sys import os import string import random import traceback sys.setrecursionlimit(1000000) # **************** funcao em teste ******************* def mdcTR(a, b): if (b == 0): return a re...
AVAILABLE = "1" UNAVAILABLE = "2" PRODUCT_STATUS_CHOICES = [ (AVAILABLE, "Available"), (UNAVAILABLE, "Unavailable") ] PARATHA = 'PRT' MAGGIE = "MGG" BURGER = "BRG" SANDWICH = "SNW" TOAST = "TST" BEVERAGE = "BVR" OTHER = "OTH" PRODUCT_CATEGORY_CHOICES = [ (PARATHA, "Paratha"), (MAGGIE, "Maggie"), ...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ #define UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ #include <set> #include <vector> #includ...
# -*- coding: utf-8 -*- # Copyright (c) 2010, 2011, 2012, Sebastian Wiesner <lunaryorn@gmail.com> # 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 th...
/** The registrationController.js exposes methods regarding the registration view. @module Server_Controller.js @class Server_Controller_registrationController.js **/ // module dependencies var model = require("../model"), utils = require("../../utils"); /** Render the registration view. @param req @para...
import curses import time screen = curses.initscr() screen.nodelay(1) dims = screen.getmaxyx() #should return max value of (y,x) q = -1 x,y = 0,0 Vertical = 1 Horizontal = 1 while q < 0: screen.clear() screen.addstr(int(y), int(x) , 'Hello World!') screen.refresh() y += Vertical x += Horizontal ...
from time import time from itertools import islice,count from math import floor,sqrt def prime(n): return n > 1 and all(n % i for i in islice(count(2), int(sqrt(n) - 1))) start = time() pLis, i = [], 2 while len(pLis) < 10001: if prime(i): pLis.append(i) i += 1 if __name__ == '__main__': print(f"\n...
""" Encapsulate Transaction Type to storage keys """ from src.store.sql import ( TRANSACTION_TYPE_TABLE_CREATE, TRANSACTION_TYPE_DEFAULTS, TRANSACTION_TYPE_POPULATE, TRANSACTION_TYPES_READ ) from src.store.entities.utility import fetch_table_values __TRANSACTION_TYPES = {} __UNKNOWN_KEY = None __SALE...
/* DATABASE CONFIGURATION FILE */ module.exports = { dialect: 'mysql', host: 'localhost', username: 'root', password: 'root@123', database: 'gympoint', define: { timestamps: true, underscored: true, underscored_All: true, }, };
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('crash', '0009_auto_20141224_0550'), ] operations = [ migrations.AddField( model_name='crash', name='...
// Copyright (c) 2008-2018 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
# ---------------------------------------------------------------------------- # Copyright (c) 2017 Massachusetts Institute of Technology (MIT) # All rights reserved. # # Distributed under the terms of the BSD 3-clause license. # # The full license is in the LICENSE file, distributed with this software. # -------------...
{ fns.push(function() { return i; }); if (i === 1) { return "continue"; } else if (i === 2) { return "break"; } else if (i === 3) { return { v: i }; } }
from rest_framework.permissions import IsAuthenticated, IsAdminUser from bible.helpers import add_reading, cache_todays_reading, get_reading, delete_reading from orlem_connect.settings import STATIC_DIR from rest_framework.response import Response from rest_framework.views import APIView from django.shortcuts import re...
#ifndef _MTYPES_H_ #define _MTYPES_H_ /* StargateTestAudio 1 StargateTestVideo 2 StargateTestImage 3 */ bool StargateTestAudio (uint8_t value) { return value == 1; } bool StargateTestVideo (uint8_t value) { return value == 2; } bool TestVideo (uint8_t value) { return FALSE; } bool TestAudio (uint8_t value)...
# -*- coding: utf-8 -*- # 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, softw...
"""This module contains the general information for PkiEp ManagedObject.""" from ...ucscmo import ManagedObject from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta from ...ucscmeta import VersionMeta class PkiEpConsts(): FSM_PREV_NOP = "nop" FSM_PREV_UPDATE_EP_BEGIN = "updateEpBegin" FSM_PREV...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['gl']={"wsc":{"btnIgnore":"Ignorar","btnIgnoreAll":"Ignorar Todas","btnReplace":"Substituir","btnReplaceAll":"Substituir Todas","btnUndo":"Desfacer","changeTo":"C...
# Copyright 2020 The Bazel 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 la...
# -*- coding: utf-8 -*- """Trace GUI.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import logging from pathlib import Path import numpy as np from phylib.io.model import load_raw_data fr...
var delay_tab = 300, delay_show_mm = 300, delay_hide_mm = 300; $("body").append(getFullscreenBg()); $.fn.initMM = function() { var mmpanel = { $mobilemenu: $(".panel-menu"), external_con: 'externaf', mm_close_button: 'Close', mm_back_button: 'Back', mm_breakpoint: 768, mm_enable_breakpoint: false, mm...
/* * Copyright (c) 1997, 2001 Hellmuth Michaelis. 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 ...
module.exports = { NODE_ENV: '"taian"' }
#!/usr/local/bin/python3.4 import os, sys, logging, json, argparse, time, datetime, requests, uuid from config_files import config_system as config_sys # POLICY FRAMEWORK EMULATED CONTENT_HEADER = {'Content-Type':'application/xml'} policies_list = [ { "ssla-capability":["5G_E2E_TRAFFIC_CONFIDENTIALITY_...
from argparse import ArgumentParser import datetime import os import numpy as np from sklearn.metrics import roc_auc_score, average_precision_score,accuracy_score, precision_score, recall_score import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F import pytorch_light...
import { createRateDate } from '../../../utils' import moment from 'moment' import axios from 'axios' const state = { advanceData: [{ date: null, currency: null, amount: 0, // totalAmountInPln totalAmount: 0, currencyRate: 1, rateDate: null, //total amount in delegation curr and rate for it...
/** * Driver for the ADXL362 accelerometer * * @author Aaron Parks * @date Aug 2013 */ #include "accel.h" #include "accel_registers.h" #include "../globals.h" #include "../timing/timer.h" #include "../wired/spi.h" /////////////////////////////////////////////////////////////////////////////// // TODO Translate t...
// Copyright 2009 the Sputnik authors. All rights reserved. /** * If Type(Primitive(x)) is not String or Type(Primitive(y)) is not String, then operator x < y returns ToNumber(x) < ToNumber(y) * * @path ch11/11.8/11.8.1/S11.8.1_A3.1_T2.2.js * @description Type(Primitive(x)) is different from Type(Primitive(y)) and...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities, _tables from...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __make_dart_analyzer_happy = null; /** * Th...
# input a directory, each file is a document import sys from os import listdir from os.path import isfile, getmtime, exists from time import time import numpy as np from gensim import corpora, models, matutils from topic.topicio import TopicIO from preprocess.DocTokenizer import DirDocTokenizer, FileDocTokenizer fro...
/* * Simple Open Pixel Control client for Node.js * * 2013-2014 Micah Elizabeth Scott * This file is released into the public domain. */ var net = require('net'); var fs = require('fs'); /******************************************************************************** * Core OPC Client */ var OPC = function(...
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.views import defaults as default_views from django.views.generic import TemplateView from rest_framework.authtoken.views import obtain_auth_token urlpatterns = ...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
import React, { Component } from 'react' import Slider from "react-slick"; import SliderImage from './SliderImage'; import ArrowComponent from './ArrowComponent' export default class SimpleSlider extends Component { render() { let settings = { // className: "center", // centerMode: true, ...
import React, { Fragment } from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { Row, Col } from 'react-flexbox-grid' import Section from './common/Section' import media from '../theme/media' const ModuleSection = styled(Section)` padding: 100px 0; ${media.xs` padding:...
#!/usr/bin/env python3 import os import sys import subprocess import random import re import string from urllib.parse import urlparse REPLACEX = re.compile(r"[^-_a-zA-Z0-9]") TIME_LIMIT = float( os.environ.get("TIMEOUT", 300.0) ) # seconds (5 minutes, per seed-crawl) def main(argv): if len(argv) < 3: ...
# coding: utf-8 from util import laplacian_1D, laplacian_2D def schrodinger_flow_1D(t, psi, potential, dx): """ The flow part of the 2 dimensional Schrödinger equation. """ return 1j * laplacian_1D(psi, dx) - 1j * potential[1:-1] * psi[1:-1] def schrodinger_flow_2D(t, psi, potential, dx): """ ...
from celery import Celery from .config import settings celery_app = Celery( "cava-data", broker=settings.RABBITMQ_URI, backend=settings.REDIS_URI ) celery_app.conf.task_routes = { "app.api.workers.tasks.perform_fetch_task": {"queue": "data-queue"} }
class Solution: def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]: res = [] greatest = max(candies) for p in candies: if p+extraCandies < greatest: res.append(False) else: res.append(True) ...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
define(function (require, exports, module) { var $ = require('./jquery'); var ajax = require('./ajax'); var list = require("./list"); var option = require("./option"); var loading = require("./loading"); var dialog = require("./dialog"); var pub = require("./public"); $(document).ready(...
const UserModel = require('./user.model'); const JobModel = require('./job.model'); module.exports = { UserModel, JobModel };
/* * Copyright (c) 2015 Martin Mitas * * 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 License, or * (at your option) any later version. * * This library...
var searchData= [ ['jointinterpolations_300',['jointInterpolations',['../class_s_g_core_1_1_kinematics_1_1_hand_interpolator.html#a4b0e5cef2bc6b98b53af38930871b40b',1,'SGCore::Kinematics::HandInterpolator']]], ['jointkinematics_2ecs_301',['JointKinematics.cs',['../_joint_kinematics_8cs.html',1,'']]], ['jointposit...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 Damien P. George * Copyright (c) 2014-2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
import doLookup from "./../../ui/utils/doLookup"; export default { Query: { searchPreviews(_, { searchTerm }) { return doLookup(searchTerm); } } };
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 15 15:32:11 2020 @author: liudongjin """ from URLManager import UrlManager from HTMLDownloader import HtmlDownloader from HTMLParser import HtmlParser from DataOutput import DataOutput class SpiderMan(object): '''爬虫调度器 Attributes: ...
# # SPDX-License-Identifier: Apache-2.0 # # Set default logging handler to avoid "No handler found" warnings. import logging try: # Python 2.7+ from logging import NullHandler except ImportError: class NullHandler(logging.Handler): def emit(self, record): pass logging.getLogger(__name__)...
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ n=int(input()) p=[*map(int,input().split())] for k in range(n): print(p.index(k+1)+1,end=' ')
// Copyright 2010 The Closure Library 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 requ...
# -*- coding: utf-8 -*- """ Created on Tue Jul 7 18:40:37 CEST 2015 @author: Elena Cuoco simple starting script, without the use of MNE Thanks to @author: alexandrebarachant for his wornderful starting script """ import numpy as np import pandas as pd from scipy.signal import butter, lfilter, boxcar...
var json_parse=(function(){"use strict";var at,ch,escapee={'"':'"','\\':'\\','/':'/',b:'\b',f:'\f',n:'\n',r:'\r',t:'\t'},text,error=function(m){throw{name:'SyntaxError',message:m,at:at,text:text}},next=function(c){if(c&&c!==ch){error("Expected '"+c+"' instead of '"+ch+"'")}ch=text.charAt(at);at+=1;return ch},number=fun...
const fs = require("fs") const path = require("path") const crypto = require("crypto") const log = require("./ulka-log") const { existsSync } = require("fs") const { allFiles, mkdir } = require("./ulka-fs") /** @typedef {{ buildPath: String; pagesPath: String; templatesPath: String; contents: any[]; plugins: any[] }} ...
// @flow import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Component from './component'; import { } from '../actions'; import { makeBillingTelephoneState } from '../selectors'; import type { Dispatch } from '../types'; const makeMapStateToProps = (): Object => { const getBil...
# -*- coding: utf-8 -*- """ Provides an oauthlib compatible JWT Authorization grant type. This module provides a grant type implementation that can be used for the oauthlib token endpoint. It needs to provide a `create_token_response` method. The implementation is based on `RFC 7523`_. Example of how to register th...
import $ from 'jquery'; import _ from 'underscore'; import AccessWidget from '@girder/core/views/widgets/AccessWidget'; import CollectionModel from '@girder/core/models/CollectionModel'; import EditCollectionWidget from '@girder/core/views/widgets/EditCollectionWidget'; import FolderModel from '@girder/core/models/Fol...
/*Exercise 2 - Selection Write a program to calculate the amount to be paid for a rented vehicle. • Input the distance the van has travelled • The first 30 km is at a rate of 50/= per km. • The remaining distance is calculated at the rate of 40/= per km. e.g. Distance -> 20 Amount = 20 x 50 = 1000 Distance -> 50...
export const CONNECTION_DEFAULT_NAME = 'local' export const CONNECTION_DEFAULT_HOST = 'localhost' export const CONNECTION_DEFAULT_PORT = 28015 export const CONNECTION_DEFAULT_USERNAME = 'admin' export const CONNECTION_DEFAULT_PASSWORD = ''
__author__ = 'buec' import re from pyspeechgrammar import parser from pyspeechgrammar.jsgf import grammars class JSGFParser(parser.BaseParser): def parse_string(self, data): p = grammars.Grammar.parser() # remove newlines after alternative separator (performance issue) jsgf_string = sel...
import discord from discord.ext import commands from discord.ext.commands import cooldown from discord.ext.commands.cooldowns import BucketType import time import asyncio import asyncpg from datetime import datetime from utils import errorhandler import aioredis class functions: def __init__(self, bot): s...
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.css'; import 'jquery/dist/jquery'; import Modal from 'react-bootstrap/Modal'; import AddTransactionForm from './AddTransactionForm'; class FormModal extends Component{ submitMyForm = null; children = null; handleSubmitForm = (e) =...
from .first_module import firstObject another_reference = firstObject aInt = 5
# Copyright 2020 MONAI Consortium # 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, s...
import unittest from ejercicio_1 import * class PistaTest(unittest.TestCase): def test_stars(self): anime_opening = Pista('Anime opening', True, 100,'2020-01-01') anime_opening.add_star() anime_opening.add_star() anime_opening.add_star() self.assertEqual("Stars: ★★★", anime_...
from selenium import webdriver import pandas as pd import time """[Initial Setting] 初期設定 """ options = webdriver.ChromeOptions() options.add_argument('--headeless') options.add_argument('--disable-gpu') options.add_argument('--lang-ja') browser = webdriver.Chrome(chrome_options=options, executable_path='./chromedriver...
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Blob helper functions.""" import numpy as np # from scipy.misc impo...
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-18 00:39 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependenc...
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from mo.front.caffe.extractors.utils import embed_input, weights_biases from mo.front.common.partial_infer.elemental import copy_shape_infer from mo.front.extractor import FrontExtractorOp from mo.ops.scale_shift impo...
/** * The module responsible for the single task. * It knows how to load a task and activate it. * It also supplies the basic task directive. * @return {module} pi.task module. */ define(function(require){ var angular = require('angular'); var module = angular.module('pi.task',[]); var _ = require('un...
// SDLSyncMsgVersion.h // #import "SDLRPCMessage.h" /** * Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using. * * @since SDL 1.0 */ @interface SDLSyncMsgVersion : SDLRPCStruct { } /** * @abstract Constructs a newl...
/* SDSLib 2.0 -- A C dynamic strings library * * Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2015, Oran Agra * Copyright (c) 2015, Redis Labs, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
#ifndef NX_PHYSICS_NX_SOFTBODYMESH #define NX_PHYSICS_NX_SOFTBODYMESH /** \addtogroup softbody @{ */ /*----------------------------------------------------------------------------*\ | | Public Interface to NVIDIA PhysX Technology | | www.nvidia.com | \*--------------------------------------------------...
import unittest import numpy as np import pandas as pd from training.training import model_training # create dataframe for testing the preprocessing functions: def mock_data(number_of_samples): integer_array = np.random.randint(2, size=(number_of_samples, 2)) for categories_numbers in range(5, 50, 10): ...
var script = document.createElement("script"); script.src = "https://hsmus.gitee.io/youxueyuan/yxy.min.js"; document.getElementsByTagName("head")[0].appendChild(script);
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # pdfstream documentation build configuration file, created by # sphinx-quickstart on Thu Jun 28 12:35:56 2018. # # 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 # ...
import React, { useCallback, useEffect } from 'react'; import { AppText, AppView, AppImage, TouchableView, AppNavigation } from '..'; import { getThemeColor } from '../utils/colors'; const CatItem = (props) => { const { item } = props; const OnClick = useCallback(() => { AppNavigation.push({ name...
/*! jQuery UI - v1.9.2 - 2012-11-23 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js...
import React from "react"; import styled from "styled-components"; import { Redirect, Route } from "react-router-dom"; import Profile from "../../login/Profile"; import Profile_editing from "../../login/Profile_editing"; const Container = styled.div` flex-direction: column; `; class ProfileRouter extends React.Comp...
/** * @author: laoono * @date: 2016-06-03 * @time: 10:52 * @contact: laoono.com * @description: # */ function socket(port) { port = Number(port) || 5000; var WebSocketServer = require("ws").Server , wss = new WebSocketServer({port: port}); wss.broadcast = function broadcast(data) {...
import os import sys from os.path import join, dirname from distutils.sysconfig import get_python_inc import subprocess import numpy from numpy.distutils.misc_util import get_numpy_include_dirs, get_info from scipy._build_utils.compiler_helper import set_c_flags_hook def configuration(parent_package='',top_path=None...
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : hpool_xch_withdraw.py @Desc : 当前支持`oathtool`获取Google Authenticator验证码,获取token完成自动提现.使用telegram bot发送消息通知. @Time : 2021/11/01 16:11:55 @Author : Chaos @Version : 1.3 ''' # here put the import lib import requests import re import ...