text
stringlengths
3
1.05M
from symposion.sponsorship.models import Sponsor from conf_site.core.views import CsvView class ExportSponsorsView(CsvView): """Export information about active sponsors to CSV file.""" csv_filename = "sponsors.csv" header_row = ["Name", "URL", "Contact Name", "Contact Email", "Level"] def get(self,...
module.exports = { init: function(app, middleware, config) { app.get("/login", require("./login").bind(app, config)); app.get( "/callback", middleware.setErrorMessage("errorAuthenticating"), require("./oauth2-callback").bind(app, config) ); } };
$axure.loadCurrentPage( (function() { var _ = function() { var r={},a=arguments; for(var i=0; i<a.length; i+=2) r[a[i]]=a[i+1]; return r; } var _creator = function() { return _(b,c,d,e,f,g,h,[i,j,k,l,m,n,o,p],q,_(r,s,t,u,v,w,x,_(y,z,A,B,C,_(D,E,F,G),H,null,I,B,J,K,L,M,N,null,O,P,Q,R,S,T,U,P),V,_(),W,_(),X,_(Y,...
(function(derive){ }(this));
""" Cross Site Request Forgery Middleware. This module provides a middleware that implements protection against request forgeries from other sites. """ from __future__ import unicode_literals import hashlib import re import random from django.conf import settings from django.core.urlresolvers import get_callable fro...
import AbstractView from './AbstractView.js' export default class extends AbstractView { constructor (params) { super(params) this.setTitle('Posts') } async getHtml () { return ` <h1>Posts</h1> <p>You are viewing the posts!</p> ` } }
import React, { Component } from 'react' import PropTypes from 'prop-types' import { isEqual } from 'lodash' import { FaCrop } from 'react-icons/fa' import { Col, Form, Row, Spinner } from 'react-bootstrap' import { eventEmitter } from '../../events/events' import { getApplicationConfig } from '../../../../.....
# -*- coding:utf-8 -*- import sys sys.path.append("..") import sanatkpy lstgeneral0 = [ sanatkpy.General(0, "关羽"), sanatkpy.General(1, "不重要友军1"), sanatkpy.General(2, "不重要友军2"), ] lstgeneral1 = [ sanatkpy.General(3, "不重要敌军1"), sanatkpy.General(4, "不重要敌军2"), sanatkpy.General(5, "不重要敌军3"), ] lst...
import translator from '../../animation/translator'; import fx from '../../animation/fx'; import { register as registerDecorator } from './ui.list.edit.decorator_registry'; import EditDecorator from './ui.list.edit.decorator'; import { Deferred } from '../../core/utils/deferred'; registerDecorator( 'delete', ...
from behave import given, when, then @when(u'I delete a pipeline by the name of "{pipeline_delete}"') def step_impl(context, pipeline_delete): context.project.pipelines.delete(pipeline_name=pipeline_delete) @when(u'I delete a pipeline by the id') def step_impl(context): context.project.pipelines.delete(pipe...
import image_manager if __name__ == "__main__": # Create image handler im_handler = image_manager.\ image_manager(batch_size=16, verbose=True, num_files_per_batch=2) im_handler.advance_schedule() x = 5 # # Advance schedule for the first time # im_handler.advance_schedule() # ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { PageHeader, Button } from 'react-bootstrap'; import { signin } from '../actions/actions-app'; class SignIn extends Component { render() { return ( <div className="page"> <PageHeader>Sign In</PageHeader> ...
/* eslint-disable import/no-extraneous-dependencies */ const { merge } = require("webpack-merge"); const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); const TerserPlugin = require("terser-webpack-plugin"); const R = require("ramda"); const webpackConfiguration = require("../webpack.config"); module.ex...
/** * Copyright 2019 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */import{LitElement,html,css}from"./node_modules/lit-element/lit-element.js";import"./node_modules/@lrnwebcomponents/responsive-utility/responsive-utility.js";/** * `extensible-toolbar` * `a toolbar that can...
# -*- coding: utf-8 -*- from .._common import * class BaiduMusic(VideoExtractor): name = 'BaiduMusic (百度音乐)' def prepare(self): info = VideoInfo(self.name) if not self.vid: self.vid = match1(self.url, 'http://music.baidu.com/song/([\d]+)') api = 'http://play.baidu.com/d...
var dir_906deb6750cc87f04b8c4fee7d95dfee = [ [ "include", "dir_458b57971a7a4994b396ee49c6e4f848.html", "dir_458b57971a7a4994b396ee49c6e4f848" ], [ "helios_integer.c", "helios__integer_8c.html", "helios__integer_8c" ], [ "helios_integer_compare.c", "helios__integer__compare_8c.html", "helios__integer__compar...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2015-03-17 18:38:13 # @Author : yml_bright@163.com import tornado.web from ..models.user import User from get_api_return import get_api_return import json TEMPLATE = u'<center><h1 style="margin-top:30%">{content}</h2></center>' class CradHandler...
/* * 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 no...
/** * Rabbit Ear (c) Robby Kraft */ export default Object.create(null);
class NexusClientAPIError(Exception): """Unexpected response from Nexus service.""" pass class NexusClientInvalidCredentials(Exception): """ Login credentials not accepted by Nexus service. Usually the result of a HTTP 401 response. """ pass class NexusClientInvalidRepositoryPath(Excepti...
/** * @file 字体宽度度量 * @author mengke01(kekee000@gmail.com) */ export default { 1: 'Ultra-condensed', 2: 'Extra-condensed', 3: 'Condensed', 4: 'Semi-condensed', 5: 'Medium (normal)', 6: 'Semi-expanded', 7: 'Expanded', 8: 'Extra-expanded', 9: 'Ultra-expanded' };
/** * Language Generator */ const fs = require('fs') const exec = require('child_process').exec function languageIsSupported (language) { try { fs.accessSync(`app/translations/${language}.json`, fs.F_OK) return true } catch (e) { return false } } module.exports = { description: 'Add a language', prompts:...
"""Delete branch on Github use case.""" from typing import Union import git_portfolio.config_manager as cm import git_portfolio.github_service as ghs import git_portfolio.response_objects as res class GhDeleteBranchUseCase: """Github delete branch use case.""" def __init__( self, config_manager: cm....
# Stat Bot Discord.py # Try Import Libarys If Not Throw Exception try: import json import discord import psutil import os from discord import Colour except Exception as e: print("Could Not Import: " + str(e)) # Machine Data # Free Memory Round Up To Decimal Place! free_bytes = round(psutil.virt...
from setuptools import setup setup( name='lambdaquery', version='0.1.21', description='Composable SQL in Pure Python', author='Chong Wang', author_email='chonw89@gmail.com', packages=['LambdaQuery'], license='MIT', # url=['https://github.com/xnmp/lambdaquery'], setup_requires=['lens...
// flow-typed signature: e14baf3e1691e7c886f1f41fac30e58e // flow-typed version: <<STUB>>/babel-jest_v^21.0.0/flow_v0.51.0 /** * This is an autogenerated libdef stub for: * * 'babel-jest' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the...
import * as React from 'react' export const ReduxFormContext = React.createContext(null) export const withReduxForm = Component => { class Hoc extends React.Component { render() { const { forwardedRef, ...rest } = this.props return React.createElement(ReduxFormContext.Consumer, { children: _...
import numpy as np import copy import random import networkx as nx import math from collections import deque from .constants import log, tol from .grouping import group, group_rows, boolean_rows from .geometry import faces_to_edges from .util import diagonal_dot try: from graph_tool import Graph as GTGraph f...
function solve(input) { let length = Number(input.shift()); let width = Number(input.shift()); let heigth = Number(input.shift()); let percentage = Number(input.shift()); let volume = length * width * heigth; let liters = volume * 0.001; let result = liters - liters * percentage / 100; c...
# -*- coding: utf-8 -*- # Import Python Libs import json import time from distutils.version import StrictVersion # pylint: disable=import-error,no-name-in-module # Import Salt Libs from salt.netapi.rest_tornado import saltnado from unit.netapi.rest_tornado.test_handlers import SaltnadoTestCase # Import Salt Testing...
module.exports = grunt => { grunt.initConfig({ purgecss: { options: { content: ['./src/**/*.html'] }, my_target: { files: { './dist/app.purged.css': ['./src/app.css'] } } } }) grunt.loadNpmTasks('grunt-purgecss') grunt.registerTask('default', [...
"use strict"; const path = require('path'); const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); // eslint-disable-line no-unused-vars const { pathToStaticFileFolder, isDevelopment, isProduction, pathToDist, cwd, nodeEnvironment, } = require('./webpack/config'); const webpackConfig = { entry: ['./sr...
import { useEffect } from "react"; import { useDispatch } from "react-redux"; import { useRouter } from "next/router"; import { get } from "lib/web"; import { updateUser } from "redux/actions/user"; export default function LogoutPage() { const dispatch = useDispatch(); const router = useRouter(); const { basePat...
export * from '@styled-icons/fa-brands/Asymmetrik';
const { MultiSelect } = require('enquirer'); const { dim } = require('chalk'); const to = require('await-to-js').default; const shouldCancel = require('cli-should-cancel'); const handleError = require('cli-handle-error'); module.exports = async ({ message, choices }) => { const [err, response] = await to( new Mu...
// Paths export const HOME_PATHNAME = 'home'; export const BUSES_PATHNAME = 'school-buses'; export const OWNERS_PATHNAME = 'owners'; export const NOTIFICATIONS_PATHNAME = 'notifications'; export const USERS_PATHNAME = 'users'; export const ROLES_PATHNAME = 'roles'; export const VERSION_PATHNAME = 'version'; export cons...
const Intern = require('../lib/intern'); describe('Intern', () => { describe('Initialization', () => { it('it should return an object containing a "job" property of Intern', () => { const internObj = new Intern('Jessica', 3, 'jessica@gmail', 'USF'); expect(internObj.name).toEqual('...
/* eslint-disable */ const { createProxyMiddleware } = require("http-proxy-middleware"); const onError = function (err, req, res) { console.log("Something went wrong... Ignoring"); }; module.exports = function (app) { app.use( createProxyMiddleware("/graphql", { target: "http://localhost:4000", ws...
import React, { Component } from 'react'; import FlexCrateTemplate from '../Crates/FlexCrateTemplate'; import Hammer from 'react-hammerjs'; var options = { touchAction:'compute', recognizers: { tap: { time: 60, threshold: 100 } } }; class SelectColorView extends Com...
#!/usr/bin/env python import win import gamescene import titlescene import gameinput def main(): win.init() gs = gamescene.GameScene() ts = titlescene.TitleScene() curscene = ts curscene.enterscene() while not curscene.quit: # handle scene transitions if curscene.exit: curscene.exit = False # Clear me...
#!/usr/bin/python ###################################################################### # Cloud Routes Availability Manager: digitalocean-status module # ------------------------------------------------------------------ # This is a moduel for performing DigitalOcean droplet status checks. # This will return true if i...
import React from "react"; import { useLocation, Route, Switch, Redirect } from "react-router-dom"; import { Container, Row, Col } from "reactstrap"; // core components // import AuthNavbar from "components/Navbars/AuthNavbar.js"; import AuthFooter from "components/Footers/AuthFooter.js"; import routes from "routes.js...
import matplotlib.pyplot as plt import numpy as np import h5py import os.path from os import path def read_hdf5(file_name, name): hf = h5py.File(file_name, 'r') data = hf[name][:] hf.close() return data def plot_image(data): plt.clf() plt.imshow(data, cmap="gray") plt.ion() print('Real pa...
import textwrap import numpy as np import pytest from IPython.lib import pretty from clifford import Layout, ConformalLayout, BasisVectorIds from clifford import transformations # fixtures make the test a little faster @pytest.fixture(scope='module') def g2(): return Layout([1, 1], ids=BasisVectorIds(['u', 'v'...
import React from 'react'; import { SVGContainer, StyledSVG } from './styles'; import { BlurFilter, GlowFilter } from './svgFilters'; function LayoutIconNoteList(props) { return ( <SVGContainer {...props}> <StyledSVG viewBox="0 0 72.8 52.2" padding="8px"> {props.active ? <GlowFilter /> : <BlurFilte...
module.exports={A:{A:{"2":"K C G E A B CB"},B:{"2":"D u Y I M H"},C:{"1":"1 2 3 4 5 6 7 m n o p q r s t y z v","2":"0 UB F J K C G E A B D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l SB RB"},D:{"2":"F J K C G E A B D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t","193":"1 2...
""" """ from typing import List import re import os import sys import json import traceback import subprocess import logging from common import TranslationUnitInfo from expand_macros import expandMacros, ExpandMacrosOptions SLASH = os.sep # file in which the individual commands will be stored INDIVIDUAL_COMMANDS_FILE...
// Copyright (c) 2014-2019, MyMonero.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 the above copyright notice, this list of // cond...
const { execSync } = require('child_process'); const axios = require('axios'); const isFirstBranchNewer = require('../utils/isFirstBranchNewer'); const currentBranch = execSync('git rev-parse --abbrev-ref HEAD') .toString() .trim(); console.debug('currentBranch', currentBranch); if (currentBranch === 'develop' ...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'embedbase', 'ug', { pathName: 'ۋاسىتە ئوبيېكتى', title: 'سىڭدۈرمە ۋاسىتە', button: 'سىڭدۈرمە ۋاسىتە قىستۇر', unsupportedUrlGi...
import React from 'react'; import ReactDOM from 'react-dom'; import Providers from './providers/providers'; ReactDOM.render( <React.StrictMode> <Providers /> </React.StrictMode>, document.getElementById('root') );
const userService = require('../services/user_service'); const main = require('../config/main'); const jwt = require('jsonwebtoken'); const fs = require('fs'); const mailer = require('./../utilities/nodemailer'); const path = require('path'); // registration of public function publicRegister(req,res){ console.log(...
# Copyright (c) OpenMMLab. All rights reserved. from numbers import Number import numpy as np import torch import torch.nn as nn def accuracy_numpy(pred, target, topk=(1, ), thrs=0.): if isinstance(thrs, Number): thrs = (thrs, ) res_single = True elif isinstance(thrs, tuple): res_sing...
from castle.test import unittest from castle.configuration import Configuration, SingletonConfiguration from castle.test.helpers.configuration_helper import default_values, api_secret_setter, \ base_url_setter, base_url_setter_with_port, allowlisted_setter_list, allowlisted_setter_none, \ allowlisted_setter_emp...
import React from "react" import { Link } from "gatsby" import { rhythm, scale } from "../utils/typography" class Layout extends React.Component { render() { const { location, title, children } = this.props const rootPath = `${__PATH_PREFIX__}/` let header if (location.pathname === rootPath) { ...
/******************************************************************************* * * Copyright 2021 Adobe. All rights reserved. * This file is licensed to you 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 * ...
import { FETCH_POSTS, FETCH_POST, DELETE_POST } from '../actions' import _ from 'lodash' export default function PostsReducer(state = {}, action) { switch (action.type) { case DELETE_POST: return _.omit(state, action.payload) case FETCH_POST: // append the newly loaded post with previous ones / o...
""" ===== Decay ===== This example showcases: - using a generator to drive an animation, - changing axes limits during an animation. """ import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation def data_gen(): for cnt in range(1000): t = cnt / 10 yield t, np.si...
const path = require('path'); const allPostsQuery = `{ allWordpressPost { edges { node { id slug title } } } allWordpressPage { edges { node { id slug } } } allWordpressCategory { edges { node { id ...
'use strict' const multicodec = require('multicodec') const prefixedProtobuf = multicodec.addPrefix('protobuf', new Buffer('some protobuf code')) console.log(prefixedProtobuf) // => prefixedProtobuf 0x50...
import numpy as np import matplotlib.path as mpath import matplotlib.patches as mpatches import matplotlib.pyplot as plt Path = mpath.Path fig = plt.figure() ax = fig.add_subplot(111) pathdata = [ (Path.MOVETO, (1.58, -2.57)), (Path.CURVE4, (0.35, -1.1)), (Path.CURVE4, (-1.75, 2.0)), (Path.CURVE4, (0...
import io from './io'; export default function(gl) { let resources = {}; let releaseList = []; let total = 0; let loaded = 0; this.load = function(factory, name, config) { let resource = resources[name]; if(resource) { return resource; } resource = ...
// This is Buffer implementation used in SEA. Functionality is mostly // compatible with NodeJS 'safe-buffer' and is used for encoding conversions // between binary and 'hex' | 'utf8' | 'base64' // See documentation and validation for safe implementation in: // https://github.com/feross/safe-buffer...
import { Observable } from 'rxjs'; import Fetchr from 'fetchr'; function callbackObserver(observer) { return (err, res) => { if (err) { return observer.error(err); } observer.next(res); return observer.complete(); }; } export default function servicesCreator(options) { const services = ne...
#!/usr/bin/env python import click as ck import numpy as np import pandas as pd import logging import math import os from collections import deque from utils import Ontology, FUNC_DICT from sklearn.manifold import TSNE from sklearn.metrics import roc_curve, auc, matthews_corrcoef import matplotlib.pyplot as plt fro...
import json import os from io import BytesIO import requests from flask import g, abort, Response, send_file, request from flask_restplus import Resource, fields from pyinfraboxutils import get_logger from pyinfraboxutils.ibflask import OK from pyinfraboxutils.ibrestplus import api, response_model from pyinfraboxut...
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import Usurvey from "./Component/Usurvey"; class App extends Component { render() { return ( <div className="App"> <Usurvey /> </div> ); } } export default App;
'use strict'; const filesize = require('filesize'); const getTotalHash = require('./get-total-hash'); const groupFiles = require('./group-files'); const amendGroupStats = require('./amend-group-stats'); /** * Given the contents of an *.out.json file, generate the grouped meta data required for final output * * @pa...
# coding=utf-8 import pandas as pd import sys sys.path.append('/home/pyserver_dev') import db_utils as db_utils import joblib import warnings import datetime from tqdm import tqdm warnings.filterwarnings('ignore') import pickle import datetime import pandas as pd import numpy as np import datetime as dt from scipy.f...
import React from 'react' import { shallow } from 'enzyme' import expect from 'expect' import ListTable from 'App/routes/User/components/ListTable' import ListItem from 'App/routes/User/components/ListItem' import { USER_TYPE_ADMIN, USER_TYPE_USER } from 'Server/constants' describe('<ListTable />', () => { ...
import request from '@/utils/request' export function goodsList(data) { return request({ url: '/goods/list', method: 'post', data }) } export function addGoods(data) { return request({ url: '/goods/add', method: 'post', data }) } export function upGoods(data) { return request({ ...
# Copyright 2021 NVIDIA 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 wr...
$(document).ready(function() { var p1 = $(".clamp1"); p1.attr('title', 'read more'); var p2 = $(".clamp2"); p2.attr('title', 'read more'); $clamp( p1[0], {clamp: 3, useNativeClamp: true} ); $clamp( p2[0], {clamp: 3, useNativeClamp: true} ); $(p1[0]).click(function(e){ ...
// @flow import { it, describe } from 'flow-typed-test'; import { CAMERA, CAMERA_ROLL, AUDIO_RECORDING, LOCATION, USER_FACING_NOTIFICATIONS, NOTIFICATIONS, CONTACTS, CALENDAR, REMINDERS, SYSTEM_BRIGHTNESS, getAsync, askAsync, } from 'expo-permissions'; describe('askAsync', () => { it('should...
import requests class RestApi: def __init__(self, connection): """ REST API Service usually used for self calls """ self.conn = connection self.__timeout = 5 if not self.conn.get('timeout') else self.conn.get('timeout') def post(self, data, headers): url_format = f"{self.conn...
/////////////////////////////////////////////////////////////////////////// // Copyright © 2014 - 2018 Esri. 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 // // h...
/** * Copyright 2018 IBM All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; const clientUtils = require('./client-utils.js'); const ProtoLoader = require('./ProtoLoader'); const Packager = require('./Packager.js'); const tar = require('tar-stream'); const utils = require('./utils.js'); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.Widgets = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentCo...
/** * Copyright (c) 2015-present, Alejandro Mantilla <@AlejoJamC>. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree or translated in the assets folder. */ var express = require('express'); var certificationRo...
const jwt = require('jsonwebtoken'); const bcrypt = require('bcryptjs'); import getConfig from 'next/config'; import { apiHandler, usersRepo } from 'helpers/api'; import prisma from 'helpers/prisma' const { serverRuntimeConfig } = getConfig(); export default apiHandler({ post: authenticate }); async function au...
/** * @file Title bar module. * @copyright IBM Security 2020 - 2021 */ import classnames from 'classnames'; import PropTypes from 'prop-types'; import React, { createElement } from 'react'; import LayoutModule, { getLayoutModuleProps, layoutModuleNamespace, } from '../LayoutModule'; const namespace = 'title-b...
import produce from 'immer'; const INITIAL_STATE = { profile: null, }; const user = (state = INITIAL_STATE, action) => { return produce(state, draft => { switch (action.type) { case '@auth/SIGN_IN_SUCCESS': draft.profile = action.payload.student; break; case '@auth/SIGN_OUT': ...
import _plotly_utils.basevalidators class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="tickmode", parent_name="layout.ternary.baxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, p...
import React from "react"; import { Link } from "gatsby"; import styles from "./navigation.module.css"; import { ThemeToggler } from "gatsby-plugin-dark-mode"; export default () => ( <nav role="navigation"> <ul className={styles.navigation}> <li className={styles.navigationItem}> <Link to="/">Home<...
const mongoose = require('mongoose'); const peopleSchema = mongoose.Schema({ name: { type: String, required: true, trim: true }, email: { type: String, required: true, trim: true, lowercase: true }, mobile: { type: String, requ...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const EmojiSmileUpsideDown = forwardRef(({ color, size, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} ...
'use strict' // return true if the value contains at least one digit module.exports = function hasDigit (key, value, display, satisfier) { const pattern = /([0-9])/g if (value) { var hasDigit = value.match(pattern) || [] if (satisfier == 0) { if (hasDigit.length == 0) return true return...
/** * Copyright 2014 IBM Corp. * * 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 wr...
lst_1=[1,2,4,88] lst_2=[1,3,4,95,120] lst_3=[] i=0 j=0 for k in range(len(lst_1)+len(lst_2)): if (lst_1[i]<= (lst_2[j])): lst_3.append(lst_1[i]) if (i>=len(lst_1)-1): if j<=(len(lst_2)-1): lst_3.append(lst_2[j]) if j<len(lst_2)-1: ...
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match...
import { cloneDeep } from 'lodash' import { API_URL } from '../app/config' import { showError, ERRORS } from '../app/errors' import { checkIfEverythingIsLoaded, setServerContacted } from '../app/initialization' import { formatMessage } from '../locales/locale' import { MODES, processMode, getMode, setMode } from '....
$(document).ready(function() { $(".del").click(function() { var id = $(this).attr("id"); var a = $(".b").html( '<a href="delete/' + id + '" class="btn-l">Հեռացնել</a>' ); $(".modal-box").fadeToggle(); $(".modal").css({ top: "100px" }); }); $(".modal-box")...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicab...
function trim (str, charlist) { var whitespace = [ ' ', '\n', '\r', '\t', '\f', '\x0b', '\xa0', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200a', '\u200b', '\u2028', '\u2029...
import pandas as pd from unit4.core import Base class Unit4(Base): """ Class for importing datasets using the Unit 4 API. For a full list of modules check the unit 4 documentation: https://api.multivers.nl/V221/Help. The request_data function returns a json object for the module and in the functions ...
from typing import Tuple, FrozenSet from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode import pysmt.typing as types from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
import Pretender from 'pretender'; import wait from 'ember-test-helpers/wait'; import {describe, it} from 'mocha'; import {expect} from 'chai'; import {setupTest} from 'ember-mocha'; describe('Integration: Service: config', function () { setupTest(); let server; beforeEach(function () { server = ...
"use strict"; define([ 'jquery', 'utils', 'utils/selectors', 'renderer', 'twinescript/environ', 'twinescript/operations', 'state', 'utils/operationutils', 'datatypes/changercommand', 'datatypes/hookset', 'datatypes/colour', 'internaltypes/changedescriptor', 'internaltypes/varscope', 'internaltypes/twineer...
class MinecraftProtocol { static writeVarInt (val) { // "VarInts are never longer than 5 bytes" // https://wiki.vg/Data_types#VarInt_and_VarLong const buf = Buffer.alloc(5) let written = 0 while (true) { if ((val & 0xFFFFFF80) === 0) { buf.writeUInt8(val, written++) break ...