text
stringlengths
3
1.05M
import traceback import xbmc import sys NAME = "plugin.video.flow" VERSION = 1 class Logger: DATE_FORMAT = "%Y-%m-%d %H:%M:%S.%f" def debug(s): xbmc.log("[%s v%s] %s" % (NAME, VERSION, s), level=xbmc.LOGDEBUG) def log(s): xbmc.log("[%s v%s] %s" % (NAME, VERSION, s), level=xbmc.LOGINFO)...
'use strict' /** * @module lib/array * @requires module:lib/array/to-array * @borrows module:lib/array/to-array AS toArray **/ module.exports = { toArray: require('./to-array.js') , chunk: require('./chunk.js') }
import numpy as np import torch, math import torch.nn as nn from onmt.modules.Transformer.Layers import PositionalEncoding from onmt.modules.Transformer.Layers import EncoderLayer, DecoderLayer from onmt.modules.IIDStochasticTransformer.Layers import IIDStochasticEncoderLayer, IIDStochasticDecoderLayer from onmt.module...
\n static int __gup_benchmark_ioctl(unsigned int cmd, struct gup_benchmark *gup) static long gup_benchmark_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) static int gup_benchmark_init(void) \n 2 unsigned int cmd 1 void 1 unsigned long arg 1 struct gup_benchmark *gup 1 stru...
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
const Vonage = require('./sms'); const dotenv = require('dotenv'); dotenv.config(); const axios = require("axios").default; const NewsAPI = require('newsapi'); const newsapi = new NewsAPI(process.env.NEWS_API_KEY); const Search = require('../models/search'); const dt = new Date(); const from = new Date(); from.setDa...
# 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 applica...
# -*- coding: utf-8 -*- { '!langcode!': 'ar', '!langname!': 'Arabic', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%s %%(shop)': '%s...
var request = require('supertest'); var app = require('../app'); var config = require('../apiconfig'); describe('test/app.test.js', function () { it('should / status 200', function (done) { request(app).get('/').end(function (err, res) { res.status.should.equal(200); res.text.should.containEql('Hello...
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
/* js-yaml 3.2.6 https://github.com/nodeca/js-yaml */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t...
var enumwblut_1_1geom_1_1_w_b___earcut_1_1_e_earcut_state = [ [ "CURE", "enumwblut_1_1geom_1_1_w_b___earcut_1_1_e_earcut_state.html#aa96e01627d2dc56699a1d787d4613c5e", null ], [ "INIT", "enumwblut_1_1geom_1_1_w_b___earcut_1_1_e_earcut_state.html#af11fa12dbec08a9bcfe439c65526a2c8", null ] ];
import itertools import os import random from typing import Any, Callable, Dict, Iterable, List, \ Mapping, Optional, Sequence, Set, Tuple import ujson from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand, CommandParser from django.db....
#!/usr/bin/env python3 import logging import math from ast import literal_eval import torch import torch.nn as nn import torch.nn.functional as F from fairseq.models import ( FairseqEncoder, register_model, register_model_architecture, transformer as fairseq_transformer, ) from fairseq.modules import ...
module.exports = function() { /** * Rule for validating required fields. */ this.required = function required() { if(!this.isRoot() && this.rule.required && (!this.source.hasOwnProperty(this.field) || this.value === undefined)) { this.raise( this.reasons.required, ...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
# Copyright 2017 Google 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 agreed to in writing, ...
__NUXT_JSONP__("/16/91", (function(a,b,c,d,e,f,g,h,i,j){return {data:[{metaTitle:d,metaDesc:e,verseId:91,surahId:16,currentSurah:{number:"16",name:"النحل",name_latin:"An-Nahl",number_of_ayah:"128",text:{"1":"اَتٰىٓ اَمْرُ اللّٰهِ فَلَا تَسْتَعْجِلُوْهُ ۗسُبْحٰنَهٗ وَتَعٰلٰى عَمَّا يُشْرِكُوْنَ ","2":"يُنَزِّلُ الْمَلٰۤ...
var searchData= [ ['f2_558',['F2',['../class_libvaxy_1_1_game_helpers_1_1_world_gen_1_1_fast_noise.html#a1b06d174ad0b86484bd2e502ab52959a',1,'Libvaxy::GameHelpers::WorldGen::FastNoise']]], ['f3_559',['F3',['../class_libvaxy_1_1_game_helpers_1_1_world_gen_1_1_fast_noise.html#ac58c33724243831fbc52de68a1cf685f',1,'Lib...
/** * \file z-dice.c * \brief Represent more complex dice than random_value * * Copyright (c) 2013 Ben Semmler * * This work is free software; you can redistribute it and/or modify it * under the terms of either: * * a) the GNU General Public License as published by the Free Software * Foundation, version ...
/******************************************************************************* Copyright (c) 2013, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************************...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/std/typetraits/intrinsics.h> namespace AZStd { using std::is_c...
function sms() { var smsc = {}; this.__construct = function (smsctrl) { smsc = smsctrl; $(smsc.smssendbtn).hide(); $(smsc.msglength).html('0'); $(smsc.message).keyup(function () { $(smsc.msglength).html($(smsc.message).val().length); }); fetchcity(); $(smsc.gymsearch).click(function () { fetchlist...
import os import math import pandas as pd import sqlalchemy as sa from flask_sqlalchemy import SQLAlchemy from sqlalchemy import or_ from anyway.backend_constants import BE_CONST from anyway.models import AccidentMarker, Involved, School from anyway.utilities import init_flask SUBTYPE_ACCIDENT_WITH_PEDESTRIAN = 1 LO...
#pragma once #include "Behavior.h" #include "BehaviorSet.generated.h" USTRUCT(BlueprintType) struct CURVATURE_API FBehaviorSet { GENERATED_USTRUCT_BODY() UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Utility) TSet<FBehavior> EnabledBehaviors; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Ut...
/* * 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 ...
import keras from keras import backend as K import subprocess, re import numpy as np class WarmUpCosineDecayScheduler(keras.callbacks.Callback): """Cosine decay with warmup learning rate scheduler """ def __init__(self, learning_rate_base, total_steps, gl...
define([], function() { return "<application-window data-id=\"ClockSettingsDialog\">\r\n <gui-vbox>\r\n <gui-vbox-container data-grow=\"1\" data-shrink=\"0\">\r\n <gui-label>Time Format String:</gui-label>\r\n </gui-vbox-container>\r\n <gui-vbox-container data-grow=\"1\" data-shrink=\"0\" data-expand=\"t...
'use strict'; exports.__esModule = true; exports.Medium = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return ta...
// External Dependencies import React from 'react'; import PropTypes from 'prop-types'; import { Button, Text, } from 'native-base'; import { connect } from 'react-redux'; import { ImageBackground, KeyboardAvoidingView, View, } from 'react-native'; // Internal Dependencies import LinkButton from '../SharedUn...
import os import json import codecs import pickle import numpy as np from scipy import sparse def makedirs(directory): if not os.path.exists(directory): os.makedirs(directory) def write_to_json(data, output_filename, indent=2, sort_keys=True): with codecs.open(output_filename, 'w', encoding='utf-8') ...
define( "dojo/cldr/nls/fi/hebrew", //begin v1.x content { "days-standAlone-short": [ "su", "ma", "ti", "ke", "to", "pe", "la" ], "months-format-narrow": [ "T", "H", "K", "T", "S", "A", "A", "N", "I", "S", "T", "A", "E" ], "field-second-relative+0": "nyt", "field-weekday": "...
export const TEXT = 1; export const ATTRIBUTE = 2; export const INPUT = 3; export const EVENT = 4; export const REPEAT = 5;
function SvgNoFoodRound(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path fill='none' d='M0 0h24v24H0z' /> <path d='M16 22c0 .55-.45 1-1 1H2c-.55 0-1-.45-1-1s.45-1 1-1h13c.55 0 1 .45 1 1zm6.89-15.9c.06...
'use strict'; app.factory('dateTime', function () { return { converToString: function(formDateTime) { var date = new Date(formDateTime); var day = date.getDate(); // yields day var month = date.getMonth() + 1; // yields month var year = date.getFullYear(); /...
def rgb_to_hex(r=0, g=0, b=0): arr = [r, g, b] out = [str(hex(i))[2:].zfill(2) for i in arr] return "#" + "".join(out) def hex_to_rgb(hex_string: str): hex_string = hex_string.lstrip("#") iterator = iter(hex_string) return tuple((int(d1 + d2, base=16) for d1, d2 in zip(iterator, iterator))) ...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import {connect} from 'react-redux'; import {fetchProduct, deleteProduct} from '../../actions/product_action'; class ShowProduct extends Component { componentDidMount(){ const productId = this.props.match.params.id; this.prop...
#!/usr/bin/env python3 # Copyright (c) 2019 The PIVX developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # -*- coding: utf-8 -*- from io import BytesIO from struct import pack from random import randint, choice import time ...
#pragma once #include "request.h" #include "stateful_ime.h" #include <memory> namespace senn { namespace ibus { namespace im { class StatefulIMEProxy : public StatefulIME { public: StatefulIMEProxy(std::unique_ptr<senn::RequesterInterface>); ~StatefulIMEProxy(); InputMode ToggleInputMode() override; bool Se...
#include "apilib.h" #include "stdlibc.h" #define MAX 10000 void HariMain(void){ char *flag; char s[8]; int i, j; api_initmalloc(); flag = api_malloc(MAX); for(i = 0; i < MAX; i++){ flag[i] = 0; } for(i = 2; i < MAX; i++){ if(flag[i] == 0){ _sprintf...
var connection = new signalR.HubConnectionBuilder().withUrl("/botHub").build(); connection.start().then(function () { // on connection started }).catch(function (err) { return console.error(err.toString()); });
const fs = require('fs') const gulp = require('gulp') const watch = require('gulp-watch') const source = require('vinyl-source-stream') const buffer = require('vinyl-buffer') const log = require('fancy-log') const { assign } = require('lodash') const watchify = require('watchify') const browserify = require('br...
# Copyright (C) 2021 Google 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 agreed to in writing, ...
var NAVTREEINDEX140 = { "dc/dfb/classGenFitTrackProp.html#a957c4576a3b9ded307addc35e088430d":[4,0,287,5], "dc/dfb/classGenFitTrackProp.html#a9a1c05b0962f3f30e4bcd5376637d605":[4,0,287,17], "dc/dfb/classGenFitTrackProp.html#a9c7ad0ae0dd719e66184b489ed2d17eb":[4,0,287,34], "dc/dfb/classGenFitTrackProp.html#aa2c079f83db7b...
'use strict'; const autoprefixer = require('autoprefixer'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils...
from typing import Any, Mapping, Optional, Tuple from zerver.lib.exceptions import UnsupportedWebhookEventType SUPPORTED_CARD_ACTIONS = [ 'updateCard', 'createCard', 'addLabelToCard', 'removeLabelFromCard', 'addMemberToCard', 'removeMemberFromCard', 'addAttachmentToCard', 'addChecklist...
import React from 'react'; const Login = React.lazy(() => import('./views/login/Login')); const routes = [ { path: '/login', exact: true, name: 'Login' , component: Login } ] export default routes;
import React, { Component } from 'react' import Menu from './Menu' import './Followings.css' import history from './../history'; import axios from 'axios' import { Link } from 'react-router-dom'; import {loggedUserData} from './Menu' export var followingUserArray=[] export class Followings extends Component { co...
# -*- coding: utf-8 -*- """ pip_services_runtime.State ~~~~~~~~~~~~~~~~~~~~~~~~~~ Component state enumeration :copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ class State(object): """ State in lifec...
/* * A small set of extra string processing functions * * Copyright (c) 2017-2021 Vitaly Novichkov <admin@wohlnet.ru> * * 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 restrict...
import './gulp/tasks/build'; import './gulp/tasks/html'; import './gulp/tasks/js'; import './gulp/tasks/styles';
'use strict'; // TODO: 1) sending buffers const UniqueID = require('liqd-unique-id'); const TimedPromise = require('liqd-timed-promise'); const Components = { service: require('./components/service'), listener: require('./components/listener'), connection: require('./components/connection'), }; const Calls = new...
document.addEventListener("DOMContentLoaded", () => { let elements = document.querySelectorAll(".list-item"); Array.prototype.forEach.call(elements, function (el) { let all = el.querySelectorAll("a.link-arrow"); console.log(all) all.forEach((value, key) => { value.classList.add("up"); if (v...
// // // bootstrap-tokenfield // https://github.com/sliptree/bootstrap-tokenfield // Copyright 2013-2014 Sliptree and other contributors; Licensed MIT // (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (...
#https://blog.streamlit.io/uc-davis-tool-tracks-californias-covid-19-cases-by-region/ import streamlit as st import os import numpy as np import pandas as pd from PIL import Image import joblib import plotly.express as px from covid_graficas import casos_nuevos_total from covid_graficas import casos_acum_total from cov...
class Solution: def winnerSquareGame(self, n: int) -> bool: def isSquare(x): return int(sqrt(x))**2==x @functools.lru_cache(maxsize=None) def moves(x): if isSquare(x): return True i=1 while i**2<x: ...
# coding: utf-8 """ tensorflow Python SDK for tensorflow # noqa: E501 The version of the OpenAPI document: v1.3.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime from kubeflow.training.models import * from kubeflow.training....
/** * Adapted the code in to order to run in a web worker. * * Original author: Benjamin Hollis */ function htmlEncode(t) { return t != null ? t.toString().replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : ''; } function decorateWithSpan(value, className) { return '<...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.contrib.auth.models from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operat...
import React from 'react'; import './Signup.css'; const REACT_COMPONENTS_FORM_ID = '1181861'; const OVERREACTED_FORM_ID = '812047'; class Signup extends React.Component { render() { let form, { cta } = this.props; switch (cta) { case 'react': form = { id: REACT_COMPONENTS_FORM...
import pygame import time import math import matplotlib.pyplot as plt import numpy as np # Add removal (erase and mark all groups affected by erase) # Delete all nodes in those groups, and re-add them back in one by one # TODO: # 1. add mouse tracking, 1 click and 2 click -> create vertices # 2. add shape selection b...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(verb...
from __future__ import unicode_literals import requests import string from contextlib import closing from random import shuffle class DirbleClient(object): DOMAIN = 'http://api.dirble.com/v2' GENRES = '/categories/{}' STATIONS = '/category/{}/stations' genres = None current_category_id = None ...
({ // the location of all the source files appDir: 'build', // the path to begin looking for modules. this is relative to appDir baseUrl: '.', // the directory to write the compiled scripts. this will emulate the // directory structure of appDir dir: 'dist/dev', // explicitly specify ...
function t_animate__init(){1==window.isSearchBot||"yes"==$(".t-records").attr("data-blocks-animationoff")||t_animate__checkIE()||window.isMobile&&$(window).width()<980||$(window).width()<980||"edit"==$(".t-records").attr("data-tilda-mode")?$(".t-animate").removeClass("t-animate"):(t_animate__wrapTextWithOpacity(),t_ani...
"""Master slave.""" from __future__ import print_function import os import imp import logging import shutil import gzip import numpy as np from collections import deque from six.moves import cPickle as pkl from adenine.core import define_pipeline from adenine.core.pipelines import pipe_worker from adenine.utils impor...
# coding: utf-8 """ fluid client for fluid # noqa: E501 OpenAPI spec version: v0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from kubernetes.client import V1ResourceRequirements # noqa: F401,E501 class AlluxioCom...
/*jslint node:true plusplus:true white:true */ 'use strict'; /* * according to the prescribed solution, the arguments quasi array does not have * to be slice()d into a real array before being apply()ed to the originalMethod. function Spy(target, method) { var originalFunction = target[method] ...
function registerEvents(plugin, events) { gina.registeredEvents[plugin] = events } function addListener(target, element, name, callback) { if ( typeof(target.event) != 'undefined' && target.event.isTouchSupported && /^(click|mouseout|mouseover)/.test(name) && target.event[name].indexOf(element) == -1) { ...
# The MIT License (MIT) # # Copyright (c) 2014 Richard Moore # # 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...
var Client = require('./client'), ProtocolBuffersMeta = require('./protocol-buffers-meta.js'), ProtocolBuffersSearchClient = require('./protocol-buffers-search-client.js'), ProtocolBuffersMapReduceClient = require('./protocol-buffers-mapreduce-client.js'), riakpbc = require('riakpbc'), util = require('util');...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; var __importDefault = (t...
// @flow import React from "react"; import styled, { css } from "styled-components"; import { useTranslation } from "react-i18next"; import Text from "~/renderer/components/Text"; import Box from "~/renderer/components/Box"; import { rgba } from "~/renderer/styles/helpers"; import Bullet from "~/renderer/screens/exch...
import os import sys import math from collections.abc import Iterable import shutil import time # For some reason this fixes some problems on Windows os.system('') class frange: def __init__(self, start, end=None, step=None): self.start = None self.end = None self.step = None if end is None: self.end = f...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
const App = (function (my) { my.hello = function () { console.log('Hello !') } return my })({})
"use strict"; const {strict: assert} = require("assert"); const {mock_cjs, mock_esm, set_global, zrequire} = require("../zjsunit/namespace"); const {run_test} = require("../zjsunit/test"); const $ = require("../zjsunit/zjquery"); mock_cjs("jquery", $); const sample_events = [ { data: { optio...
// // AppDelegate.h // JWXer // // Created by scjy on 16/1/20. // Copyright © 2016年 蒋威. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
""" WSGI config for twitterApi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "twitterApi.settings") from django....
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
const Discovery = plugins.require('network-tasks/Discovery'); const net = require('tls'); const Crypter = plugins.require('http/Crypter'); const iv = 'core-server@12$3'; class AirswarmTls { constructor(tlsOptions, identifier, fn) { this.discovery = new Discovery(); this.limit ...
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include "customnavdelegate.h" namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void on_listView_pressed(const QM...
/* Copyright 2020 The OneFlow 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 agre...
/** ****************************************************************************** * @file accelero.h * @author MCD Application Team * @version V2.2.1 * @date 21-July-2015 * @brief This header file contains the functions prototypes for the Accelerometer driver. ****************************...
import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler import torchvision import torchvision.transforms as transforms import torchvision.datasets as datasets from torch.autograd import Variable import torch.nn.functional as F import numpy as np import utils import data_loade...
# Copyright 2017 Battelle Energy Alliance, 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 t...
define(function(require, exports, module) { var Store = require('store'); var Class = require('class'); var Messenger = require('./messenger'); var swfobject = require('swfobject'); exports.run = function() { var videoHtml = $('#lesson-video-content'); var userId = videoHtml.data("user...
import argparse import glob import os from os import path as osp from basicsr.utils.download import download_file_from_google_drive def download_dataset(dataset, file_ids): save_path_root = './datasets/' os.makedirs(save_path_root, exist_ok=True) for file_name, file_id in file_ids.items(): save_...
"""Header here.""" import numpy as np import scipy.stats as sps from base.utilities import postsampler import copy """ ############################################################################## ################################### fit ###################################### This [calibrationfitinfo] automatically fi...
import _plotly_utils.basevalidators class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): def __init__(self, plotly_name="hoverinfo", parent_name="scatterpolargl", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_n...
/* Generated by RuntimeBrowser Image: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore */ @interface JSWrapperMap : NSObject { struct unique_ptr<JSC::WeakGCMap<id, JSC::JSObject, WTF::PtrHash<id>, WTF::HashTraits<id> >, std::__1::default_delete<JSC::WeakGCMap<id, JSC::JSObject, WTF...
#!/usr/bin/python #-*-coding:utf-8 -*- # author: mld # email: miradel51@126.com # date : 2017/9/28 import thulac import sys import string def ch_seg_line(eachline): seg_line = "" thu1 = thulac.thulac(seg_only=True) #only split but not tag seg_line = thu1.cut(eachline,text=True) #splitted input_ch...
import { toXML } from 'jstoxml'; import _cloneDeep from 'lodash/cloneDeep'; import { musicXmlRenderer } from '../src/index'; import { chordParserFactory } from 'chord-symbol'; import { getDegreesAsObjects, formatDegree, } from './helpers/harmonyTestHelpers'; const parseChord = chordParserFactory(); describe('publi...
define("ace/mode/mips_assembler_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"support.function.pseudo.mips",regex:/\b(?:mul|abs|div...
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang.ru = {dir:'ltr', editorTitle:'Rich text editor, %1, press ALT 0 for help.', toolbar:'Toolbar', editor:'Rich Text Editor', source:'Источник', newPage:'Нова...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fac...
from __future__ import print_function from __future__ import absolute_import class A: pass <warning descr="from __future__ imports must occur at the beginning of the file">from __future__ import with_statement</warning>
/* * Copyright (c) 2018 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel.h> #include <arch/cpu.h> #include <init.h> #include <device.h> #include <soc.h> #include <drivers/uart.h> /* * UART PL011 register map structure */ struct pl011_regs { u32_t dr; /* data register */ union { ...
define([ 'private/group/GroupApp', 'private/group/controllers/GroupController' ], function(){ });
"""Integer primitive ops. These mostly operate on (usually) unboxed integers that use a tagged pointer representation (CPyTagged). See also the documentation for mypyc.rtypes.int_rprimitive. """ from mypyc.ir.ops import OpDescription, ERR_NEVER, ERR_MAGIC from mypyc.ir.rtypes import ( int_rprimitive, bool_rprimi...