text
stringlengths
3
1.05M
""" Django settings for IntReview project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
__author__ = 'Lorenzo' token = '***************************' token_key = '***************************' con_secret = '***************************' con_secret_key = '***************************'
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"3XHS":function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),a=n.n(i),r=n("XBDW"),l=n("Jd93"),o=n("pDjF"),c="what is hack your future about?",s=function(){return a.a.createElement(l.h,null,a.a.createElement(l.k,null,a.a.createElement(l.j,{level:1,size:"l",color:o.b...
/** * Use this file to configure your truffle project. It's seeded with some * common settings for different networks and features like migrations, * compilation and testing. Uncomment the ones you need or modify * them to suit your project as necessary. * * More information about configuration can be found at: ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import timeit from functools import lru_cache def fib(n): if n == 0 or n == 1: return n else: return fib(n - 2) + fib(n - 1) def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1) ...
/* * Copyright (c) 2019 Mujib Haider * * 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, modify, merge, publi...
"""Check if userbot alive.""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from platform import uname from userbot import ALIVE_NAME from userbot.utils import admin_cmd DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "No name set yet nibba" @command(out...
/************************************************************************* ALGLIB 3.13.0 (source code generated 2017-12-29) Copyright (c) Sergey Bochkanov (ALGLIB project). >>> SOURCE LICENSE >>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
""" Customisable progressbar decorator for iterators. Includes a default (x)range iterator printing to stderr. Usage: >>> from tqdm import trange[, tqdm] >>> for i in trange(10): #same as: for i in tqdm(xrange(10)) ... ... """ from __future__ import absolute_import # integer division / : float, // : int from...
module.exports = function timeouts (type, ms, callback) { this.requestHandler.create( "/session/:sessionId/timeouts", { type: type, ms: ms }, callback ); };
const { Client, Message, MessageEmbed } = require('discord.js'); const axios = require('axios'); module.exports = { name: "urban", aliases: ['dictionary', 'urban-dictionary'], category: "messages", description: "Gives you a meaning from the Urban Dictionary.", /** * @param {Client} client...
// Copyright 2012 the V8 project 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 V8_PROFILER_CPU_PROFILER_H_ #define V8_PROFILER_CPU_PROFILER_H_ #include <atomic> #include <memory> #include "src/base/platform/condition-vari...
import argparse import random import itertools import os import sys import rule_classifier as paper_classifier import urllib.request import bs4 as bs import time def label_paper(paper_id = None, paper_meta = None, cased_regexes = None, feature = None): """Label one paper :param paper_id: The paper ID :param ...
#ifndef _ROS_std_msgs_UInt8MultiArray_h #define _ROS_std_msgs_UInt8MultiArray_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/MultiArrayLayout.h" namespace std_msgs { class UInt8MultiArray : public ros::Msg { public: std_msgs::MultiArrayLayout layou...
import React from 'react' import { useSelector, useDispatch } from 'react-redux' import { CHeader, CToggler, CHeaderBrand, CHeaderNav, CHeaderNavItem, CHeaderNavLink, CSubheader, CBreadcrumbRouter, CLink } from '@coreui/react' import CIcon from '@coreui/icons-react' // routes config import routes fro...
import time import glob import itertools import h2o import pandas as pd import json from database_connector import connect, postgresql_to_dataframe from helper_functions import get_ef, get_of, get_gf, get_wf, get_tf base_url = "http://172.17.0.1:8001/apg" def get_browser_mapping(): """Get browser id to name map...
#!/usr/bin/env python # CREATED: 2013-10-06 22:31:29 by Dawen Liang <dl2771@columbia.edu> # unit tests for librosa.decompose # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except: pass import matplotlib matplotlib.use('Agg') import numpy as np import scipy.sparse import librosa import skl...
import React from "react"; import { Redirect } from "react-router-dom"; // Layout Types import { DefaultLayout } from "./layouts"; // Route Views import BlogOverview from "./views/BlogOverview"; import UserProfileLite from "./views/UserProfileLite"; import AddNewPost from "./views/AddNewPost"; import Errors from "./v...
from dataclasses import dataclass, field __NAMESPACE__ = "http://www.opengis.net/ows" @dataclass class AvailableCrs: class Meta: name = "AvailableCRS" namespace = "http://www.opengis.net/ows" value: str = field( default="", metadata={ "required": True, }, ...
//put your schema here const mongoose = require('mongoose'); const Schema = mongoose.Schema; const contactSchema = new Schema({ name: {type: String, required: true, minlength: 3, trim: true}, email: {type: String, required: true, trim: true}, subject: {type: String, maxlength: 90, trim: true}, message: {type: Stri...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/Scalebar/nls/strings":{_widgetLabel:"\u0938\u094d\u0915\u0947\u0932\u092c\u093e\u0930...
from random import choice from time import sleep version = "0.7.1" print("Rock, Paper, Scissors by Lisa") sleep(1) print("Version {}".format(version)) sleep(0.5) print("\n") print("~~~~~~~~~~~~~") print("| Rock |") print("|~~~~~~~~~~~|") print("| Paper |") print("|~~~~~~~~~~~|") print("| Scissors |") print...
// A simple JQuery plugin that runs the value in a text box against a validation // action and prints the results to a div. // // Binds to a button and runs on-click. // // dataSelector must be a selector that targets a textbox (your input for validation) // resultSelector must be a selector that targets a div into whi...
'use babel'; import React from 'react' import IconBase from './IconBase' export default function Emoji_1f4fa(props) { return ( <IconBase viewBox="0 0 64 64" {...props}> <g><path fill="#3E4347" d="M17 61.999H5.75c0-2.589 2.519-4.688 5.625-4.688S17 59.41 17 61.999zM58.25 61.999H47c0-2.589 2.519-4.688 5.625-...
r"""simple is a module for using paraview server manager in Python. It provides a simple convenience layer to functionality provided by the C++ classes wrapped to Python as well as the servermanager module. A simple example: from paraview.simple import * # Create a new sphere proxy on the active connection and r...
import typing as t import inspect as i T = t.TypeVar("T") Normer = t.NewType("Normer", t.Callable[[t.Mapping], T]) def normer(cls: T) -> t.Callable[[t.Mapping], T]: if not hasattr(cls, "__annotations__"): return cls def cls_normer(attr_dict): fields = {} for field, value in attr_dict...
# -*- coding: utf-8 -*- #amqps://kgeiibqf:tFDehiYv1Rgctu3l7J4sh8pjEExaxNbS@owl.rmq.cloudamqp.com/kgeiibqf import pika import json params=pika.URLParameters('amqps://your_ampq_cloud_link') connection = pika.BlockingConnection(params) channel = connection.channel() def publish(method,body): properties=pika.Basi...
# prefer setuptools over distutils from setuptools import setup, find_packages # use a consistent encoding from codecs import open from os import path import json import sys is_python_2 = sys.version_info < (3, 0) here = path.abspath(path.dirname(__file__)) root = path.dirname(here) readme = path.join(here, 'README...
const commonConfig = { MAP_API_KEY: globalConfigExists() ? window.globalConfigs.getConfig("GMAPS_API_KEY") : process.env.REACT_APP_GMAPS_API_KEY, tenantId: globalConfigExists() ? window.globalConfigs.getConfig("STATE_LEVEL_TENANT_ID") : process.env.REACT_APP_DEFAULT_TENANT_ID, forgotPasswordTenant: "pb.amritsar",...
import json import os import random from typing import List import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../../'))) from edit.editing import * # Check if any emoji(icon) from dict1 in text and substitute them with a random corresponding icon(emoji) from dict2 def conver...
# # Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list o...
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME phenix.pdb.mtrix_reconstruction import sys, os import iotbx.pdb import iotbx.cif import mmtbx.model def run(args): """ Apply MTRIX records of PDB or equivalent records of mmCIF. Example: phenix.pdb.mtrix_reconstruc...
"""Minimal setup file for chain_evaluate.""" from setuptools import setup, find_packages setup( name='chain_evaluate', version='0.2.6', license='proprietary', description='Module Experiment', author='hsasaki', author_email='hsasaki@softmatters.net', url='None.com', packages=find_pack...
/** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ describe( 'Source Editing', () => { it( 'does not fail on CI because of 0 tests', () => { expect( 1 ).to.equal( 1 ); // Bacause it's eas...
var quotes = ['Good health is the key to a better life.', 'Your work shows your capabilities.', 'Develop habits that develop you.', 'Motivation gets you started, Habits keep you going.', 'It\'s always dark before the sun rises.', 'We all have the ability. The difference is how we use it', 'We judge ourselves by what we...
import mimeType from './mime'; const chunkSize = 1024 * 1024 * 5; // 5 megabyte chunks export default (torrentFile, fileWriter) => { fileWriter.onerror = (e) => { console.log('Write failed: ' + e); }; torrentFile.getBuffer((err, buffer) => { if (err) { throw err; } /* const blob = new ...
/** * Copyright 2019-2021 rdipardo <dipardo.r@gmail.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 app...
# https://leetcode.com/problems/roman-to-integer class Solution: def romanToInt(self, s): num_dic = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000} ans = 0 i = 0 while i < len(s): if i == len(s) - 1: ans += num_dic[s[i]] ...
# 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. from telemetry.results import page_test_results from telemetry.value import failure class PageMeasurementResults(page_test_results.PageTestResults): def _...
import React from 'react'; import PropTypes from 'prop-types'; import { useSpring, animated } from 'react-spring'; import { Transition } from 'react-spring/renderprops'; const Robot = (props) => { const botStyle = useSpring({ position: 'relative', margin: 'auto', width: '326px', height: '363px', ...
"use strict"; module.exports = function () { return typeof Number.MAX_SAFE_INTEGER === "number"; };
import os from musicscore.musicstream.streamvoice import SimpleFormat, TreeChord from musicscore.musictree.treechordflags2 import FingerTremoloFlag2, NoiseFlag2 from musicscore.musictree.treeinstruments import Piano from musicscore.musictree.treescoretimewise import TreeScoreTimewise from musicxmlunittest import XMLTe...
const uploadImage = require('../lib/uploadImage') let handler = async (m) => { let q = m.quoted ? m.quoted : m let mime = (q.msg || q).mimetype || '' if (!mime) throw 'No media found' let media = await q.download() let url = await uploadImage(media) await conn.sendFile(m.chat, global.API('xteam', '/videomak...
const {defaults} = require('jest-config'); module.exports = { moduleFileExtensions: [...defaults.moduleFileExtensions], moduleNameMapper: { '.scss$': 'jest-css-modules' } };
def fn_default_url(sub): if 'URL' in sub.environ: DEFAULT_URL = '%s/predict' % sub.environ['URL'] if not 'URL' in sub.environ: DEFAULT_URL='http://localhost:6543/predict' os.environ['URL'] = DEFAULT_URL return DEFAULT_URL
import time import sys import datetime import copy from mongoengine import DoesNotExist from requests import RequestException from requests.auth import HTTPBasicAuth from issueshark.backends.basebackend import BaseBackend import logging import requests import dateutil.parser from pycoshark.mongomodels import * log...
#!/usr/bin/env python # example label.py import pygtk pygtk.require('2.0') import gtk class Labels: def __init__(self): self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.connect("destroy", lambda w: gtk.main_quit()) self.window.set_title("Label") vbox = gtk.VBox(False, 5)...
# -*- coding: utf-8 -*- #BEGIN_HEADER import os import sys import shutil import hashlib import subprocess import requests import re import traceback import uuid from datetime import datetime from pprint import pprint, pformat #import numpy as np import gzip from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRec...
import Vue from 'vue' import router from './router' import store from './store' import NProgress from 'nprogress' // progress bar import 'nprogress/nprogress.css' // progress bar style import notification from 'ant-design-vue/es/notification' import { setDocumentTitle, domTitle } from '@/utils/domUtil' import { ACCESS...
import React from 'react' import classNames from 'classnames' import Dropzone from 'react-dropzone' import processUpload from '../utils/processUpload' class UploadFile extends React.Component { onDrop = (acceptedFiles, rejectedFiles) => { if (!acceptedFiles) { window.alert('check file and try again') }...
"use strict"; /** @typedef {import('eslint').ESLint} ESLint */ /** @typedef {import('eslint').ESLint.Options} ESLintOptions */ Object.assign(module.exports, { lintFiles, setup }); /** @type {ESLint} */ let eslint; /** * @typedef {object} setupOptions * @property {string=} eslintPath - import path of eslint * ...
from .loader import load_data from .model import CalHospsModel
'use strict'; (function() { angular .module('app') .controller('AddCreativityController', [ '$scope', 'Upload', '$sce', '$timeout', '$mdDialog', 'allDataService', 'tokenService', '$state', A...
const gql = require('graphql-tag'); const { asyncRoute } = require('@parameter1/base-cms-utils'); const userFragment = require('../api/fragments/active-user'); const mutation = gql` mutation UpdateUserProfile($input: UpdateOwnAppUserMutationInput!) { updateOwnAppUser(input: $input) { ...ActiveUserFragment ...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyRequestsUnixsocket(PythonPackage): """Use requests to talk HTTP via a UNIX domain socket...
/* SlidesJS 3.0.4 http://slidesjs.com (c) 2013 by Nathan Searles http://nathansearles.com Updated: June 26th, 2013 Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ (function(){(function(e,t,n){var r,i,s;s="slidesjs";i={width:940,height:528,start:1,navigation:{active:!0,effect:"slide"},pagination:{a...
""" VIZ UTILS """ import torch from torch.autograd import Variable import numpy as np from PIL import Image from typing import List, Tuple def img_to_var(pil_img:Image, **kwargs) -> Variable: resize:bool = kwargs.pop('resize', True) # default mean and std are from Imagenet dataset mean:List[float]...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) Camille Scott, 2020 # File : zcrit.py # License: MIT # Author : Camille Scott <camille.scott.w@gmail.com> # Date : 22.02.2021 from collections import OrderedDict import glob import os import typing import dice import yaml from discord import Embed from discord...
#!C:\Users\m\PycharmProjects\TradingDNN\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy...
/* * act_index.c * * Aerospike Index Certifiction Tool - Simulates and validates primary index * SSDs for real-time database use. * * Kevin Porter & Andrew Gooding, 2018. * * Copyright (c) 2018 Aerospike, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a cop...
module.exports = { "env": { "es6": true }, "parser": "babel-eslint", "extends": "google", "parserOptions": { "sourceType": "module", }, "rules": { "brace-style": ["error", "1tbs", { "allowSingleLine": true }], "block-spacing": ["error", "always"], "max-len": ["error", { "ignoreComments...
import xgboost as xgb import numpy as np from naslib.predictors.trees.ngb import loguniform from naslib.predictors.trees import BaseTree class XGBoost(BaseTree): @property def default_hyperparams(self): params = { "objective": "reg:squarederror", "eval_metric": "rmse", ...
import { Schema } from 'prosemirror-model'; const schema = { nodes: { blockquote: { content: 'block+', group: 'block', defining: true, draggable: false, parseDOM: [ { tag: 'blockquote', }, ], }, bullet_list: { content: 'list_item+', ...
# Generated by Django 2.2.16 on 2021-04-05 15:06 from django.db import migrations, models import django.db.models.deletion from collections import defaultdict def convert_names(apps, schema_editor): Attribute = apps.get_model("typeclasses", "Attribute") DisplayNames = apps.get_model("object_extensions", "Dis...
// // PasscodeViewController.h // LTHPasscodeViewController // // Created by Roland Leth on 9/6/13. // Copyright (c) 2013 Roland Leth. All rights reserved. // #import <UIKit/UIKit.h> @protocol LTHPasscodeViewControllerDelegate <NSObject> @optional /** @brief Called right before the passcode view controller will ...
/* * Copyright (c) 2018 Alexander Wachter * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <kernel.h> #include <misc/printk.h> #include <device.h> #include <can.h> #include <gpio.h> #define TX_THREAD_STACK_SIZE 512 #define LED_THREAD_STACK_SIZE 512 #define RX_STR_THREAD_STACK_SIZE 512 #defi...
# Copyright (c) 2010-2011 OpenStack, 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 ...
import torch import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt import numpy as np import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from pytorch_lightning import LightningModule, Trainer from pytorch_lightning.callbacks import EarlyStopping fr...
from ..common.ctype import CType class Number(object): """ A number class used by the interpreter """ def __init__(self, c_type, value=None): # save the c type self.c_type = c_type # get a random default value and cast to the type if value is None: value = c_type.r...
// Copyright (c) IPython Development Team. // Distributed under the terms of the Modified BSD License. define([ 'base/js/namespace', 'jquery', 'components/google-caja/html-css-sanitizer-minified', ], function(IPython, $) { "use strict"; var noop = function (x) { return x; }; var caja;...
var Web3 = require("web3"); var SolidityEvent = require("web3/lib/web3/event.js"); (function() { // Planned for future features, logging, etc. function Provider(provider) { this.provider = provider; } Provider.prototype.send = function() { this.provider.send.apply(this.provider, arguments); }; Pr...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/mediaconvert/MediaConvert_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace MediaConvert { namespace Model { enum class Vc3InterlaceMo...
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from . import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {'fields': ('email', 'pas...
/** * Open the arcgis iframe and look in the Network/XHR tab for requests with Name of "0". * * Like this one: * https://services7.arcgis.com/4RQmZZ0yaZkGR1zy/arcgis/rest/services/COVID19_testsites_READ_ONLY/FeatureServer/0?f=json * * serverNumber is 7, from services7.arcgis.com * orgId is 4RQmZZ0yaZkGR1zy * la...
const {equal} = require('tap'); const {Transaction} = require('bitcoinjs-lib'); const isSwapSpend = require('./../swaps/is_swap_spend'); const {fromHex} = Transaction; const fixtures = { np2wsh_transaction: { expected: true, tx: '0100000000010117932038e24b2e5b1b41dde92594dd87583c029217a31aefe8e4958017debfa...
const path = require('path'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const env = process.env.NODE_ENV module.exports = (env, argv) => { const is_prod = argv.mode === 'production'; return { entry: { main: ['./src/js/src/orange.js', './src/scss/src/styles.scss'], }, out...
import React, { Component } from 'react'; import { Badge, Card, CardBody, CardHeader, Col, Row, Table, Label } from 'reactstrap'; import { connect } from 'react-redux'; import { Pagination, Form, Input, Button, Switch, Empty } from 'antd'; import moment from 'moment'; import 'antd/dist/antd.css'; import '../Style.scss'...
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
from __future__ import absolute_import, unicode_literals from celery import Celery import os import dotenv import environs dotenv.load_dotenv() env = environs.Env() env.read_env() os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'conf.settings.dev') app = Celery('eosform', broker=env.str('BROKER_URL')) app.config_fro...
"use strict"; var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (d...
import { request } from '@/plugins/request' // 获取全部资源文章列表 export function getArticles (params) { return request({ method: 'GET', url: '/api/articles', params }) } // 获取我的资源文章列表 export function getArticlesFeed (params) { return request({ method: 'GET', url: '/api/art...
import montecarlo import random import numpy as np from bitstring import BitStream, BitArray import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt import copy as cp random.seed(2) N = 100 conf = montecarlo.SpinConfig1D(N=N) conf.initialize(M=5) ham = montecarlo.IsingHamiltonian1D(1.0, [.1 for i in ra...
// Generated automatically by nearley, version undefined // http://github.com/Hardmath123/nearley (function () { function id(x) { return x[0]; } var grammar = { Lexer: undefined, ParserRules: [ {"name": "MAIN", "symbols": ["SENTENCE", {"literal":".","pos":6}]}, {"name": "_", "symbols": [{"literal":" ","...
#!/usr/bin/env python import scipy.io import argparse import sys import numpy as np import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt import os.path import os def parse_args(argv): #parsing parser = argparse.ArgumentParser(prog ="collectionPlots", ...
# yapf:disable log_config = dict( interval=50, hooks=[ dict(type='TextLoggerHook'), # dict(type='TensorboardLoggerHook') ]) # yapf:enable dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] # disable opencv multithreading to a...
from flask import Flask from app.libs.flask_mysql import PyMySQL from app.libs.reverse_proxy import ReverseProxied # Init aplikasi app = Flask( __name__, static_url_path = '/files', static_folder = 'files', template_folder = 'templates' ) # Muat pengaturan app.config.from_object('config') # Proxied app.wsgi_app ...
// 血海魔刀 #include <ansi.h> inherit SKILL; #include "/kungfu/skill/eff_msg.h";; mapping *action = ({ ([ "action" : CYN"$N一招「"HIR"磨牙吮血"CYN"」,將$w"CYN"銜在嘴裏,等$n走近了,突然間左手抓住刀柄,順手一揮,砍向$p$l"NOR, "skill_name" : "磨牙吮血", "force" : 200, "dodge" : 15, "lvl" : 0, "damage" : 150, "d...
# Import all the models, so that Base has them before being # imported by Alembic from ..models.visit import Visit # noqa from .base_class import Base # noqa
describe('RenderContext', function() { // wrap jQuery get so that we can count how many times it's called var original_ajax = jQuery.ajax; jQuery.ajax = function() { jQuery.ajaxcount = jQuery.ajaxcount || 0; jQuery.ajaxcount++; Sammy.log('jQuery.ajax', arguments, jQuery.ajaxcount); original_ajax.a...
"use strict"; import { Logger } from "@ethersproject/logger"; import { version } from "./_version"; const logger = new Logger(version); ; function isRenetworkable(value) { return (value && typeof (value.renetwork) === "function"); } function ethDefaultProvider(network) { const func = function (providers, option...
var wmts = new ol.layer.Tile({ source: new ol.source.XYZ({ url: 'http://api.vworld.kr/req/wmts/1.0.0/E4A59B05-0CF4-3654-BD0C-A169F70CCB34/Base/{z}/{y}/{x}.png' }) }) var map = new ol.Map({ target: 'map', layers: [wmts], view...
import { num, string, grid } from "lively.lang"; import { cssLengthToPixels } from "./convert-css-length.js"; export class Point { static ensure(duck) { return duck instanceof Point ? duck : new Point(duck.x, duck.y); } static polar(r, theta) { // theta=0 is East on the screen, // increases i...
/** * @name exports * @summary PractitionerQualification Class */ module.exports = class PractitionerQualification { constructor(opts) { // Create an object to store all props Object.defineProperty(this, '__data', { value: {} }); // Define getters and setters as enumerable Object.defineProperty(t...
import click from .main import main # noqa from .client import ( # noqa client_run, client_monitor, ) from .requests import ( # noqa request_create, ) @main.command() @click.pass_context def repl(ctx): """ Drop into a debugger shell with most of what you might want available in the local c...
''' Configuration object ==================== The :class:`Config` object is an instance of a modified Python ConfigParser. See the `ConfigParser documentation <http://docs.python.org/library/configparser.html>`_ for more information. Kivy has a configuration file which determines the default settings. In order to cha...
import classnames from 'classnames'; const withComponentPropsClassName = ({ className, ...props }, newClassName) => { return { ...props, className: classnames(className, newClassName) }; }; export default withComponentPropsClassName;
import random import json #ms: groups #ps: proportion of groups def gen_same_dist_dataset(ms, s): random.seed(a=None, version=2) # appending ids # all datasets are sampled from the same distribution return [(i, random.choice(ms)) for i in range(s)] def gen_rand_dist_dataset(ms, s): random.seed(...
"""Hookspecs for repobee extension hooks. Extension hooks add something to the functionality of repobee, but are not necessary for its operation. Currently, all extension hooks are related to cloning repos. .. module:: exthooks :synopsis: Hookspecs for repobee extension hooks. """ import argparse import configpa...
AFRAME.registerComponent("scale-in-screen-space", { schema: { baseScale: { type: "vec3", default: { x: 1, y: 1, z: 1 } }, addedScale: { type: "vec3", default: { x: 1, y: 1, z: 1 } } }, play() { if (!this.didRegister) { this.didRegister = true; this.el.sceneEl.systems["hubs-systems"].scale...
/* * Copyright (c) 2010, 2011, 2012 Nicira, 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...