text
stringlengths
3
1.05M
/** * A custom {@link Ext.data.Store} for the {@link Ext.grid.property.Grid}. This class handles the mapping * between the custom data source objects supported by the grid and the {@link Ext.grid.property.Property} format * used by the {@link Ext.data.Store} base class. */ Ext.define('Ext.grid.property.Store',...
/* * (C) Copyright 2016-2019 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 la...
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from mayan.apps.rest_api.serializer_mixins import CreateOnlyFieldSerializerMixin from mayan.apps.storage.models import SharedUploadedFile from ..models.document_models import Document from ..models.document_type_models imp...
jQuery(document).ready(function(e){jQuery.fn.essb_toggle_more=function(){return this.each(function(){e(this).removeClass("essb_after_more"),e(this).addClass("essb_before_less")})},jQuery.fn.essb_toggle_less=function(){return this.each(function(){e(this).addClass("essb_after_more"),e(this).removeClass("essb_before_less"...
from ..utils import * from .core import * from .question_answering import * from .token_classification import * from .seq2seq.core import * from .seq2seq.language_modeling import * from .seq2seq.summarization import * from .seq2seq.translation import *
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.item import Item, Field class Sports3Item(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() ...
const PnpmGenerator = require("../PnpmGenerator"); const ejs = require("ejs"); const fs = require("fs").promises; const chalk = require("chalk"); const validate = require("../validate-naming"); module.exports = class SingleSpaUtilModuleGenerator extends PnpmGenerator { constructor(args, opts) { super(args, opts)...
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ # TODO: put package requirements...
import numpy as np import hetu as ht from hetu import gpu_links as gpu_op def test_array_set(): ctx = ht.gpu(0) shape = (500, 200) # oneslike arr_x = ht.empty(shape, ctx=ctx) gpu_op.array_set(arr_x, 1.) x = arr_x.asnumpy() np.testing.assert_allclose(np.ones(shape), x) # zeroslike g...
var searchData= [ ['basecmd_0',['baseCmd',['../class_rotate_to_gyro_angle_command.html#ab15d7ee3cc038729a272d4deb43fa77f',1,'RotateToGyroAngleCommand']]], ['belts_1',['belts',['../class_robot.html#aa197263e11094372a42d3ac04b3e2e34',1,'Robot']]] ];
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import numpy as np import pytest from pandas.compat import lrange, lzip, u from pandas.errors import PerformanceWarning import pandas as pd from pandas import ( Categorical, DataFrame, Index, MultiIndex, Series, compat,...
const fs = require('fs') const concat = require('ffmpeg-concat') const videoshow = require('videoshow') const videoOptions = { fps: 25, loop: 2, // seconds transition: true, transitionDuration: 1, // seconds videoBitrate: 1024, videoCodec: 'libx264', size: '720x480', audioBitrate: '128k', audioChanne...
//===-- PPCFrameInfo.h - Define TargetFrameInfo for PowerPC -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
var tape = require("tape"), arrays = require("../"); require("./isNaN"); tape("descending(a, b) returns a positive number if a < b", function(test) { test.ok(arrays.descending(0, 1) > 0); test.ok(arrays.descending("a", "b") > 0); test.end(); }); tape("descending(a, b) returns a negative number if a > b", f...
import os import pytest import six from split_settings.tools import include _FIXTURE_VALUE = 'FIXTURE_VALUE' def test_missing_file_error(scope): """This test covers the IOError, when file does not exist.""" with pytest.raises(IOError, match='does-not-exist.py'): include('does-not-exist.py', scope=s...
from collections import OrderedDict import numpy as np import pandas as pd from bokeh.plotting import * from bokeh.palettes import brewer N = 20 categories = ['y' + str(x) for x in range(10)] data = {} data['x'] = np.arange(N) for cat in categories: data[cat] = np.random.randint(10, 100, size=N) df = pd.DataFra...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # import os import sys import datetime import minimalpy # Get the project root dir, which is the parent dir of this sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # List modules need to be mocked aut...
/** * This header is generated by class-dump-z 0.2a. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. * * Source: (null) */ #import <XXUnknownSuperclass.h> // Unknown library #import "UITableViewDataSource.h" @class NSMutableSet, UILocalizedIndexedCollation, NSArray, NSString, UIImage, NSD...
var NETWORKS = { GANACHE: 15, MAINNET: 1, ROPSTEN: 3, KOVAN: 42 }; var SELECTED_NETWORK = NETWORKS.GANACHE; module.exports = { tickerRegistryAddress: function() { return JSON.parse(require('fs').readFileSync('./build/contracts/TickerRegistry.json').toString()).networks[SELECTED_NETWORK].address; }, ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Resource', fields=[ ('id', models.AutoField(aut...
int __cost; int lg_n_helper(int n) { int i; int r = 0; int j; __VERIFIER_assume(n > 0); for(i = 1; i != n; i *= 2) { r ++; } return r; } void main(int n) { __VERIFIER_assume(n >= 2); __cost += lg_n_helper(n); }
import { h } from 'vue' export default { name: "ShieldFillX", vendor: "B", type: "", tags: ["shield","fill","x"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","fill":"currentColor","class":"v-icon","viewBox":"0 0 16 16","data-name":"b-shield-fill...
""" Theano is an optimizing compiler in Python, built to evaluate complicated expressions (especially matrix-valued ones) as quickly as possible. Theano compiles expression graphs (see :doc:`graph` ) that are built by Python code. The expressions in these graphs are called `Apply` nodes and the variables in these grap...
import ipaddress from sqlalchemy.exc import IntegrityError from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for ) from . import db from .models import Interface, IpAddress, Peer from .auth import login_required from . import forms from . import utils bp = Blueprint("interfaces", _...
'use strict'; // eslint-disable-next-line no-unused-vars exports.Run = async function Run(caller, command, guild, lang) { if (guild.suggestion.role && command.msg.member.roles.indexOf(guild.suggestion.role) === -1) { caller.utils.createMessage(command.msg.channel.id, { embed: { title: lang.titles.e...
# accounts.models.credit # Credit Score tracking model. # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Thu Oct 04 08:08:59 2018 -0400 # # ID: credit.py [] benjamin@bengfort.com $ """ Credit Score tracking model. """ ########################################################################## ## Impor...
import { shouldBeIgnored, hasOwnProperty, isObjectOrArray } from './utils'; export default function mergeDataBranch(source, dest, path) { let sourceCursor = source; let destCursor = dest; // don't merge branch with ignoring part for (const part of path) { if (sourceCursor == null) { break; } ...
""" Functions to parse the input """ from py1dmin.ljparser._input import read_targets from py1dmin.ljparser._input import read_baths from py1dmin.ljparser._input import read_potential from py1dmin.ljparser._input import read_nsamps from py1dmin.ljparser._input import read_njobs from py1dmin.ljparser._input import read...
#ifndef ZEROD_BLACKLIST_H #define ZEROD_BLACKLIST_H #include <stddef.h> #include <stdbool.h> /** * Typedefs. */ typedef struct zblacklist zblacklist_t; /** * Blacklist declarations. */ zblacklist_t *zblacklist_new(void); void zblacklist_free(zblacklist_t *bl); bool zblacklist_reload(zblacklist_t *bl, const cha...
import pandas as pd import numpy def get_column_names(df): head = df.head(0) return [x for x in head] def filter_df_columns(df, coulmn_name_filter): names = [x for x in get_column_names(df) if coulmn_name_filter(x)] return df.filter(names) def is_train_question(question): gold_trap = 'is the b...
// // ReviewCell.h #import <UIKit/UIKit.h> @interface ReviewCell : UITableViewCell { IBOutlet UILabel * nameLabel; IBOutlet UILabel * dateLabel; } - (void)CellTextName:(NSString *)name CellDate:(NSString *)date; @end
import requests import os import json import datetime import time from simplify_tx import simplify_tx def etherscan_method_id(tx): return tx['input'][:10] def etherscan_timestamp(tx): return datetime.datetime.fromtimestamp(int(tx['timeStamp'])) def etherscan_gas_fees(tx): return etherscan_gas_price(tx) ...
#!/usr/bin/env python3 import sys ifile = sys.argv[1] ofile = sys.argv[2] open(ofile, 'w').write(open(ifile).read())
module.exports = { mode: 'jit', purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], darkMode: false, theme: { extend: {}, }, variants: { extend: {}, }, plugins: [ require('@tailwindcss/forms'), ], }
/* Depth First Search formula, using as header file. * Copyright (c) 2021 Chen Songze * Everyone is premitted to use these code in terms of The Unlicense. * However, I strongly suggest everyone to translate my comments into Chinese. */ #ifndef _DFS_H #define _DFS_H /* For memset formula. */ #ifndef _STRING_H #in...
#ifndef __ASM_ARCH_RMOBILE_H #define __ASM_ARCH_RMOBILE_H #if defined(CONFIG_RMOBILE) #if defined(CONFIG_SH73A0) #include <asm/arch/sh73a0.h> #elif defined(CONFIG_R8A7740) #include <asm/arch/r8a7740.h> #elif defined(CONFIG_R8A7790) #include <asm/arch/r8a7790.h> #elif defined(CONFIG_R8A7791) #include <asm/arch/r8a7791....
import sample from './sample-pages'; import imgAPI from '~/public/images/imgAPI'; const grandChild = [ { name: 'Vivamus Condimentum', link: '#' }, { name: 'Lorem', link: '#' }, { name: 'Eu Rhoncus Odio', link: '#' }, { name: 'Praesent Tristique', link: '#' } ]; const me...
module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/vue3-essential', 'eslint:recommended', '@vue/typescript/recommended' ], parserOptions: { ecmaVersion: 6 }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.N...
/* obstack.h - object stack macros Copyright (C) 1988-1994,1996-1999,2003,2004,2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published b...
from base64 import b64encode import json import logging import os import re import shutil import sys import requests from requests.compat import urljoin import wandb try: from IPython.core.getipython import get_ipython from IPython.core.magic import line_cell_magic, Magics, magics_class from IPython.core....
import asyncio from utils import get_redis_client, config, run, validate_json import json import base64 import numpy as np async def main(): sub = await get_redis_client() pub = await get_redis_client() (pattern,) = await sub.subscribe( config["CHANNELS"]["CAM-RES"] ) # read all channels pref...
import logging from collections import OrderedDict import torch import torch.nn as nn from torch.nn.parallel import DataParallel, DistributedDataParallel import models.networks as networks import models.lr_scheduler as lr_scheduler from .base_model import BaseModel from models.modules.loss import GANLoss, Charb...
from django import forms from mozdns.ptr.models import PTR from mozdns.forms import BaseForm class PTRForm(BaseForm): def delete_instance(self, instance): instance.delete() class Meta: model = PTR exclude = ('ip', 'reverse_domain', 'ip_upper', 'ip_lower') in...
import { connect } from "react-redux"; import { createSelector } from "reselect"; import DemoConcordanceVis from "../components/wrapper/DemoConcordanceVis"; import { countLetters, ALPHABET } from "../utils/stringStats"; import { setHover, incrementRenderCount } from "../redux/actions"; import toJS from "../hocs/toJS"; ...
!function(e,t){"function"==typeof define&&define.amd?define("sifter",t):"object"==typeof exports?module.exports=t():e.Sifter=t()}(this,function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(e=o(String(e||"").toLowerCase()),!e||!e.length)return[];var t,n,i,s,l=[...
from flask import render_template #Importing render template function # from app import app #Importing flask application instance from . import main @main.errorhandler(404) #Decorator that passes in the error we receive def four_Ow_four(error): #View function that returns fourOwfour.html file ''' Function to ...
import torch import torch.nn as nn import torch.nn.functional as F from tqdm import tqdm from torch.nn.utils.rnn import pad_sequence from torch.utils.data import DataLoader from torch.optim import Adam import random from Data import * n_batch = 64 device = 'cuda' if torch.cuda.is_available() else 'cpu' discriminator_...
export { default } from 'ember-longleat-components/components/grid-picture-card/component';
const request = require('supertest') const server = require('../api/server.js') describe('auth router', () => { describe('POST /login', () => { it('should return 401 with invalid credentials', async () => { const res = await request(server) .post('/api/auth/login') ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. *************************************************...
const EventEmitter = require('events') const ObservableStore = require('obs-store') const ethUtil = require('ethereumjs-util') const Transaction = require('ethereumjs-tx') const EthQuery = require('ethjs-query') const TransactionStateManager = require('./tx-state-manager') const TxGasUtil = require('./tx-gas-utils') co...
#!/usr/bin/env python """ Copyright 2012 GroupDocs. 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 ...
#!/usr/bin/env python from __future__ import print_function import os import sys import argparse import numpy as np # Parse arguments. parser = argparse.ArgumentParser() parser.add_argument('-d', '--dropout', type=float, required=True, help="dropout rate") parser.add_argument('-i', '--input', re...
# Copyright 2019-2021 Xanadu Quantum Technologies 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 2012 OpenStack Foundation # 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...
$(document).ready(function() { var templateSettings; module("Utility", { setup: function() { templateSettings = _.clone(_.templateSettings); }, teardown: function() { _.templateSettings = templateSettings; } }); test("#750 - Return _ instance.", 2, function() { var instance...
// Using react-bootstrap's dropdown... import React from 'react'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import PropTypes from 'prop-types'; import separateComponentProps from '../../util/separateComponentProps'; import css from './DropdownMenu.css'; const propTypes = { pullRight: PropTy...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 """ This module defines the public interface of the **MABWiser Library** providing access to the following modules: - ``MAB`` - ``LearningPolicy`` - ``NeighborhoodPolicy`` """ from typing import List, Union, Dict, NamedT...
__version__ = (1, 0, 'dev')
# Copyright 2020 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 in writing, ...
import os from tqdm import tqdm import numpy as np from astropy.io import fits from astropy.table import Table from astropy import wcs import scipy.constants as const import interferopy.tools as tools class Cube: """ Cube object represents interferometric data such as a map (2D) or a cube (3D). Allows per...
// handles the images dialog on content.php var imagesDialog = { editor: null, moduleId: null, init:function(){ Dropzone.autoDiscover = false; // setup dropzone $("#drop").dropzone({ url: "api/file/post", clickable: true, success:...
$(function() { var $wrapper = $('#wrapper'); // theme switcher var theme_match = String(window.location).match(/[?&]theme=([a-z0-9]+)/); var theme = (theme_match && theme_match[1]) || 'default'; var themes = ['default','legacy','bootstrap2','bootstrap3','bootstrap4']; // $('head').append('<link rel="stylesheet" ...
# DADSA - Assignment 1 # Reece Benson from os import system as call from collections import OrderedDict class Menu(): # Define the variables we will be using _app = None _menu = None _current_menu = 0 def __init__(self, app): # Set our Application self._app = app def load(sel...
""" nD multiscale image non-uniform =============================== Displays an nD multiscale image """ from skimage import data from skimage.transform import pyramid_gaussian import napari import numpy as np # create multiscale from astronaut image astronaut = data.astronaut() base = np.tile(astronaut, (3, 3, 1)) ...
/*! Copyright (C) 2016 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE- 0 <see LICENSE file> */ (function (GGRC, _) { var FIRST_NAMES = 'James Christopher Ronald Mary Lisa Michelle John Daniel Anthony Patricia Nancy Laura Robert Paul Kevin Linda Karen Sarah Michael Mark Jason Barbara Betty ...
import unittest as ut from . import * class DigammaTests(ut.TestCase): def test_digamma_100(self): self.assertAlmostEqual(digamma(100), 4.60016185) def test_digamma_10(self): self.assertAlmostEqual(digamma(10), 2.25175259) def test_digamma_1(self): self.assertAlmostEqual(digamm...
from heapq import heappush, heappop from collections import Counter # Task Scheduler - https://leetcode.com/problems/task-scheduler/ class Solution: def inverse(self, num): return -1 * num def leastInterval(self, tasks, n): """ :type tasks: List[str] :type n: int :rty...
/* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "X2AP-IEs" * found in "/home/oai/Downloads/LWA/openair2/X2AP/MESSAGES/ASN1/R11.2/X2AP-IEs.asn" * `asn1c -gen-PER` */ #ifndef _X2ap_TAListforMDT_H_ #define _X2ap_TAListforMDT_H_ #include <asn_application.h> /* Including external dep...
""" If you use this code, please cite one of the SynthSeg papers: https://github.com/BBillot/SynthSeg/blob/master/bibtex.bib Copyright 2020 Benjamin Billot 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 Lice...
/** * 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 { PromiseProvider } from 'mongoose'; import React from 'react'; export const CheckoutSteps = (props) => { return ( <div className="row checkout-steps"> <div className={ props.step1 ? 'active' : '' }> Sign-In </div> <div className={ props.step2 ? 'active' : '' }> Shipping </di...
def BookShop(n,x): dp=[0]*100005 price = list(map(int, input().split())) pages = list(map(int, input().split())) for i in range(n): j=x while j>=price[i]: dp[j]=max(dp[j],dp[j-price[i]]+pages[i]) j-=1 return dp[x] n,x = map(int,input().split()) print(BookSho...
'use strict'; 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 ('value' in descriptor) descriptor.writable = true; Object.defineProp...
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D csv_path = '../data/6proj_methodMetrics.csv' csv_marks_path = '../data/6proj_methods_marked_svm.csv' raw_data = np.genfromtxt(csv_path, delimiter=',', comments=None)[:, 1:] marks = np.genfromtxt(csv_marks_path) marked = np.colu...
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["mdbBadge"]=n():t["mdbBadge"]=n()})("undefined"!==typeof self?self:this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].ex...
"""makewiki URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
#import "RKDeviceCommand.h" @interface RKSetPowerNotificationCommand : RKDeviceCommand - (instancetype)initWithState:(BOOL)notificationState; @end
/* * kirkwood-openrd.c * * (c) 2010 Arnaud Patard <apatard@mandriva.com> * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; ei...
# ---------------------------------------------------------------------------- # Copyright 2014-2016 Nervana Systems 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.apa...
/* * stream.c: svn_stream operations * * ==================================================================== * 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 * regardi...
#!/usr/bin/env python3 """ Author: Jordan R. Abrahams (jabrahams@hmc.edu) Last Updated: 11 January 2018 This program runs multiple Monte-Carlo simulations for a given execution strategy. This file is the primary running access point for the new RobotBrunch simulator. Thus, it holds the main() function. This file al...
// Copyright (c) 2009-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...
#!/usr/bin/env python # -*- coding:utf-8 -*- # @Author: Jialiang Shi try: from urllib.parse import quote_plus except ImportError: from urllib import quote_plus from gerrit.utils.models import BaseModel class GerrirProjectCommit(BaseModel): def __init__(self, **kwargs): super(GerrirProjectCommit, ...
var AvlTree = require('../index.js'); var count = Math.pow(10,7); // I run oom at 10^8 var tree = new AvlTree(); console.error('---in order insert---'); var startMs = Date.now(); for(var i = 0; i < count; i++) { tree.insert(i) } var elapsedMs = Date.now() - startMs; var avgMs = elapsedMs / count; console.error('ela...
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-07-19 10:09 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] ...
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
import torch import torch.nn as nn from blocks import Shufflenet, Shuffle_Xception #, SeModule, Inverted_Bottleneck class ShuffleNetV2_OneShot(nn.Module): def __init__(self, input_size=224, n_class=1000): super(ShuffleNetV2_OneShot, self).__init__() assert input_size % 32 == 0 self.stag...
#!/usr/bin/env python from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from youtube_dl import YoutubeDL from youtube_dl.compat import compat_http_server import ssl import threading TES...
(function($){ $.fn.Huploadify = function(opts){ var itemTemp = '<div id="${fileID}" class="uploadify-queue-item"><div class="uploadify-progress"><div class="uploadify-progress-bar"></div></div><span class="up_filename">${fileName}</span><span class="uploadbtn">上传</span><span class="delfilebtn">删除</span></div>'; var d...
/* -------------------- * promise-methods module * Tests for `is` method * ------------------*/ 'use strict'; // Modules const chai = require('chai'), chaiAsPromised = require('chai-as-promised'), {expect} = chai, {is} = require('../index'); // Init chai.config.includeStack = true; chai.use(chaiAsPromised); /...
function my_function174(){ //23477442404380471416576883737813IILekRUrzkyToBhMvgqavispFPnBGWDA } function my_function072(){ //92618952069539371428582257893548cQMAGNHaYMLDgPiFfQRiwwlOIlcDiXBK } function my_function683(){ //76009564334582560182927985905893TGtAHjUPuyxNeDUdGrFnaUEhuVNjFxgT } function my_function657(){ /...
'use strict'; var isArray = require('./helpers').isArray; function groupDecorations(line) { var groups = [], currentGroup = null; for (var i = 0, l = line.inlines.length; i < l; i++) { var inline = line.inlines[i]; var decoration = inline.decoration; if (!decoration) { currentGroup = null; continue; }...
# Copyright (C) 2015-2019 Tormod Landet # SPDX-License-Identifier: Apache-2.0 import os import sys import code import readline import rlcompleter import cProfile import pstats from .timer import log_timings def interactive_console_hook(simulation): """ Start the interactive console if the user writes a valid...
from core import decorators from core.utilities.message import message from languages.getLang import languages from core.database.repository.group import GroupRepository @decorators.admin.user_admin @decorators.delete.init def init(update, context): record = GroupRepository.SET_RULES_TEXT chat = update.effecti...
/** * ajsr-confirm * jQuery confirm dialog box including several fun css templates. * @version v1.2.2 - 2017-11-01 * @link https://github.com/ajsoriar/ajsr-confirm * @author Andres J. Soria R. <ajsoriar@gmail.com> * @license MIT License, http://www.opensource.org/licenses/MIT */ (function($) { console.log(...
from django.core import mail from django.test import TestCase from main import forms class TestForm(TestCase): def test_valid_contact_us_form_sends_email(self): form = forms.ContactForm({'name': "Luke Skywalker", 'message': "Hi there"}) self.assertTrue(form.is_valid()) with self.assertLog...
// Copyright 2009-2019 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2019, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
'use strict'; const _ = require('lodash'); const Utils = require('../../utils'); const DataTypes = require('../../data-types'); const AbstractQueryGenerator = require('../abstract/query-generator'); const randomBytes = require('crypto').randomBytes; const { Op } = require('../../operators'); /* istanbul ignore next *...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: TSPDatabaseMessages.proto #ifndef PROTOBUF_TSPDatabaseMessages_2eproto__INCLUDED #define PROTOBUF_TSPDatabaseMessages_2eproto__INCLUDED #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PROTOBUF_VERSION < 2005000 #error This...