text stringlengths 3 1.05M |
|---|
function clearForm() {
document.getElementById('filter-form').reset();
document.getElementById('key_words').value = null;
document.getElementById('dropdown-room-input').value = null;
document.getElementById('dropdown-bathroom-input').value = null;
document.getElementById('min_price').value = null;
... |
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... |
angular.module("newBook", [])
.controller("NewBookCtrl", ["$scope", "$http", function ($scope, $http) {
}]); |
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true,
// use server-side dataSource so edits are retained across page transitions
dataSource: countryDS,
// display a subset of fields from the datasource
fields:[
{name:"countryName"},
{name:"c... |
"""Module for compiling codegen output, and wrap the binary for use in
python.
.. note:: To use the autowrap module it must first be imported
>>> from sympy.utilities.autowrap import autowrap
This module provides a common interface for different external backends, such
as f2py, fwrap, Cython, SWIG(?) etc. (Curren... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M11.3 2.26l-6 2.25C4.52 4.81 4 5.55 4 6.39v4.71c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V6.39c0-.83-.52-1.58-1.3-1.... |
define(["require","exports","tslib","react","modules/core/i18n","modules/clean/teams/admin/modals/action_utility_modal","modules/clean/teams/admin/modals/modal_ajax","modules/clean/components/modals/show_modal","modules/clean/viewer","modules/clean/loggers/join_flow_logger"],(function(e,t,n,o,i,a,s,d,l,r){"use strict";... |
from graphql import graphql_sync
def execute_query(schema, query, variables=None, reraise=False, context=None):
result = graphql_sync(schema, query, variable_values=variables, context_value=context)
if reraise and result.errors:
raise result.errors[0]
return result
|
/* eslint-disable no-underscore-dangle */
class Router {
constructor() {
// eslint-disable-next-line no-underscore-dangle
this._params = {
host: window.location.href,
timeout: 2000,
namespace: '',
};
// this.host = window.location.href;
t... |
# This file contains the main class of droidbot
# It can be used after AVD was started, app was installed, and adb had been set up properly
# By configuring and creating a droidbot instance,
# droidbot will start interacting with Android in AVD like a human
import logging
import os
import sys
import pkg_resources
impor... |
const { ApolloError } = require("apollo-server-core");
const { User } = require("../models");
const signUp = async (_, { input }) => {
const ERROR_MESSAGE = "Failed to sign up";
try {
await User.create(input);
return {
success: true,
};
} catch (error) {
console.log(`[ERROR]: ${ERROR_MES... |
import React from "react";
var ChevronDown = function ChevronDown(props) {
return /*#__PURE__*/React.createElement("svg", props, /*#__PURE__*/React.createElement("path", {
d: "M967.5 288.5L514.3 740.7c-11 11-21 11-32 0L29.1 288.5c-4-5-6-11-6-16 0-13 10-23 23-23 6 0 11 2 15 7l437.2 436.2 437.2-436.2c4-5 9-7 16-7 ... |
import React, { Component } from 'react';
import { bool, func, instanceOf, object, shape, string } from 'prop-types';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { withRouter } from 'react-router-dom';
import classN... |
import logging
import requests as re
import infapy
import json
# infapy.log = logging.getinfapy.log(__name__)
# print(infapy.log)
class GetSchedule:
"""
This class is a handler for fetching the details of the Schedules from IICS
"""
def __init__(self,v2,v2BaseURL,v2icSessionID):
self._v2 = v2
... |
/*!
* Chart.js
* http://chartjs.org/
* Version: 2.1.4
*
* Copyright 2016 Nick Downie
* Released under the MIT license
* https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)retu... |
"""
Observed Kubernetes resources fetcher.
"""
from typing import Union, List
from .kubectl import Resource
from . import kubectl
import sys
def get_resources(
api_version: str,
kind: str,
namespaces: Union[str, List[str]]
) -> List[Resource]:
"""
Get list of resources for each specified namesp... |
"""Locale support module.
The module provides low-level access to the C lib's locale APIs and adds high
level number formatting APIs as well as a locale aliasing engine to complement
these.
The aliasing engine includes support for many commonly used locale names and
maps them to values suitable for passing to the C l... |
import pyyjj
import click
from kungfu.command import kfc, pass_ctx_from_parent
from kungfu.wingchun import replay_setup
from kungfu.wingchun.service.ledger import Ledger
@kfc.command(help_priority=5)
@click.option('-x', '--low_latency', is_flag=True, help='run in low latency mode')
@click.option('-r', '--replay', is_... |
# -*- coding: utf-8 -*-
from hearthstone.entities import Entity
from entity.spell_entity import SpellEntity
class LETLT_032(SpellEntity):
"""
暗影鞭笞
<b>攻击</b>一个敌人。如果目标尚未行动,则召唤一个伊利达雷萨特。
"""
def __init__(self, entity: Entity):
super().__init__(entity)
self.damage = 0
... |
export default ({
Vue
}) => {
import('../../packages').then( m => {
Vue.use(m.default)
})
}
|
require("../env");
var vows = require("vows"),
assert = require("../env-assert");
var suite = vows.describe("d3.hcl");
suite.addBatch({
"hcl": {
topic: function() {
return d3.hcl;
},
"converts string channel values to numbers": function(hcl) {
assertHclEqual(hcl("50", "-4", "32"), 50, -... |
$(function() {
"use strict";
$('#preloader').on('click', function() {
$(this).fadeOut();
});
/*-----------------------------------
* STICKY MENU - HEADER
*-----------------------------------*/
var $navmenu = $('.nav-menu');
$(window).on('scroll', function() {
if ($navme... |
import styled, { css } from 'styled-components';
const SectionContainer = styled.section`
margin: 0;
${props =>
props.withPaddingBottom &&
css`
padding-bottom: 64px;
`}
`;
export default SectionContainer;
|
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { searchShows } from './actions'
import { SearchList } from './../../components/SearchList'
import './style.scss'
class SearchInput extends Component {
constructor() {
super()
this... |
import{a as s}from"./chunk-LNV77PKU.js";import{a as e}from"./chunk-REETYBHA.js";import{a as r}from"./chunk-J7NALVHR.js";import{a as o}from"./chunk-XSMZ46A3.js";function a(){return s("br")}function m(n){let t=n.target.dataset.linkto,i=o(t),l=r("fshHide",i);i.classList.toggle("fshHide"),l?e(t,""):e(t,"ON")}export{a,m as ... |
# 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, software
# d... |
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// Respect "browser" f... |
'use strict';
const solution = require('../lib/solution');
describe('Solution Module', () => {
describe('#binarySearch', () => {
it('should return the correct output', () => {
expect(solution.binarySearch([1, 2, 3, 4, 5, 6], 6)).toBe('Your item 6 is at index 5.');
});
it('second argument should b... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { BrowserRouter } from 'react-router-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import './assets/main.css';
import 'tailwindcss/dist/tailwind.min.css';
ReactDOM.render(
... |
window.peopleAlsoBoughtJSON = [{"asin":"B01AGMPGQY","authors":"Edward W. Robertson","cover":"51D9ImHd3xL","length":"16 hrs and 56 mins","narrators":"Tim Gerard Reynolds","subHeading":"The Cycle of Galand, Book 1","title":"The Red Sea"},{"asin":"1774244926","authors":"JA Andrews","cover":"61EtPpffQBL","length":"46 hrs a... |
asynctest(
'browser.tinymce.core.delete.MergeBlocksTest',
[
'ephox.agar.api.Assertions',
'ephox.agar.api.Chain',
'ephox.agar.api.GeneralSteps',
'ephox.agar.api.Logger',
'ephox.agar.api.Pipeline',
'ephox.agar.api.Step',
'ephox.sugar.api.dom.Hierarchy',
'ephox.sugar.api.node.Element',
... |
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/styles';
// import { Button, Checkbox, Dialog, DialogTitle, DialogContent, DialogActions, TextField, Typography } from '@material-ui/core';
import { SearchInput } from 'components';
const u... |
# Copyright Tim Churchard 2020
from collections import namedtuple
from hashlib import sha256, pbkdf2_hmac
from time import monotonic, sleep
from threading import Thread, Event
from mnemonic import Mnemonic
from .const import DEF_ITS_SALT, DEF_ITS_PBKDF2, MIN_LEN_PASSWORD, MIN_ITS_PBKDF2, MIN_ITS_SALT, DEF_VERBOSE_TI... |
# -*- coding: utf-8 -*-
'''
Loading and unloading of kernel modules
=======================================
The Kernel modules on a system can be managed cleanly with the kmod state
module:
.. code-block:: yaml
kvm_amd:
kmod.present
pcspkr:
kmod.absent
'''
def __virtual__():
'''
Only load if th... |
const webpack = require('webpack');
const Merge = require('webpack-merge');
const WrapperPlugin = require('wrapper-webpack-plugin');
const commonConfig = require('./webpack.config');
module.exports = Merge(commonConfig, {
devtool: false,
target: 'node',
entry: {
rpi: './src/adapters/rpi.ts'
},
plugins: [... |
import { stdin, stdout } from 'process'
import { cursorTo, clearScreenDown } from 'readline'
import { promisify } from 'util'
import isInteractive from 'is-interactive'
import { PADDING_SIZE } from './utils/indent.js'
const pCursorTo = promisify(cursorTo)
const pClearScreenDown = promisify(clearScreenDown)
// Print... |
/*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dijit.ProgressBar"]){ //_hasResource checks added by build. Do not use _hasResource directly in your... |
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License for license information.
import {Client4} from 'mattermost-redux/client';
import {ClientError} from 'mattermost-redux/client/client4';
import {id} from '../manifest';
export default class Client {
setServerRoute(url) {
thi... |
// Please note: When loading paper as a normal module installed in node_modules,
// you would use this instead:
// var paper = require('paper-jsdom-canvas');
var paper = require('../../dist/paper-full.js');
var scope = require('./Tadpoles.pjs')(new paper.Size(1024, 768));
scope.view.exportFrames({
amount: 4... |
import Taro, { Component } from '@tarojs/taro'
import { g_requestApi } from '../../globalData'
import { View, Input } from "@tarojs/components"
import SearchItem from './searchItem/searchItem';
import search from '../../images/icon/search.png'
import './search.less'
export default class Search extends Component {
co... |
'use strict'
const nock = require('nock')
const chai = require('chai')
const chaiAsPromised = require('chai-as-promised')
const gatewayAccountFixtures = require('../fixtures/gateway-account.fixtures')
const inviteFixtures = require('../fixtures/invite.fixtures')
const userFixtures = require('../fixtures/user.fixtures... |
#!/usr/bin/env python.pyre
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2021 all rights reserved
#
# the framework
import pyre
# the app
class configure(pyre.application):
"""
A sample configuration utility
"""
gsl = pyre.externals.gsl()
gsl.doc = "the GSL installatio... |
from flask import Flask
import pytest
import requests
from cachelib import SimpleCache
import os
import base64
from unittest.mock import Mock, call
from flask_websub.errors import SubscriberError, NotificationError
from flask_websub.subscriber import Subscriber, SQLite3TempSubscriberStorage, \
... |
"""
author: John Nemeth
sources: class material
description: some functions for common calendar operations
"""
####
# split invitee id and meeting id
def splitIds(ids):
parts = ids.split(',')
newIds = { 'inviteID': parts[0],
'meetID': parts[1]
}
return newIds
##
# create dict o... |
"""
Copyright (C) 2011, Enthought Inc
Copyright (C) 2011, Patrick Henaff
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the license for more details.
"""
import string
import ... |
export function generateRows(taskId) {
if(taskId === "0"){
return [{
id:"0",
subtask:"Alpha",
optimistic: 1,
nominal: 3,
pessimistic: 12,
expectedDuration: 4.2,
standardDeviation: 1.8
}];
} else {
return ... |
"use strict";
var _ = require("lodash");
var MAX_POLL_RETRIES = 2;
function pollOperation(op, pollFunction, interval, pollFailCount) {
pollFailCount = pollFailCount || 0;
return new Promise(function(resolve, reject) {
function poll() {
pollFunction(op)
.then(function(result) {
if (res... |
class PerformanceCounterType(Enum,IComparable,IFormattable,IConvertible):
"""
Specifies the formula used to calculate the System.Diagnostics.PerformanceCounter.NextValue method for a System.Diagnostics.PerformanceCounter instance.
enum PerformanceCounterType,values: AverageBase (1073939458),AverageCount64 ... |
#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
"use strict";
/*
Seed stitch rectangle (though code is written to work for any front/back knit pattern)
*/
const Carrier = '1';
const Width = 80;
const Height = 180;
console.assert(Height % 3 == 0, 'this program assumes that if the w... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-05-14 19:53
from __future__ import unicode_literals
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tastypie', '0002_api... |
const joi = require('@hapi/joi');
const schema = joi.object({
test: joi.any(),
outputCSS: joi.boolean(),
outputLoaders: joi.array().items(joi.any()),
localIdentName: joi.string(),
themeIdentName: [joi.func(), joi.string()],
minify: joi.boolean(),
browsers: [joi.string(), joi.array().items(joi.string())],... |
export function addSmallRoomElement(Element, ElementView, System) {
class SmallRoomElement extends Element {
static types() {
return {
System: {
cls: System,
write: (c) => c.definitions,
read: (definitions) => {
... |
/**
* CheckoutPage starts payment process and therefore it will get data from ListingPage
* (booking dates, listing data, and all the other data that affects to booking decision).
* This data is saved to Session Store which only exists while the browsing session exists -
* e.g. tab is open. (Session Store is not re... |
import { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
class ClientList extends Component {
render() {
const { authenticated, clientList } = this.props;
return (
<div>
<h1>{authenticated ? "Lista" : 'Login não efetuado'}</h1>
... |
import axios from 'axios'
import { ElNotification , ElMessageBox, ElMessage, ElLoading } from 'element-plus'
import store from '@/store'
import { getToken } from '@/utils/auth'
import errorCode from '@/utils/errorCode'
import { tansParams, blobValidate } from '@/utils/ruoyi'
import { saveAs } from 'file-saver'
let dow... |
const _ = require(`lodash`)
const writeToCache = jest.spyOn(require(`../persist`), `writeToCache`)
const { saveState, store, readState } = require(`../index`)
const {
actions: { createPage },
} = require(`../actions`)
const mockWrittenContent = new Map()
jest.mock(`fs-extra`, () => {
return {
writeFileSync: ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.HaxAppPicker = void 0;
var _litElement = require("lit-element/lit-element.js");
require("@lrnwebcomponents/simple-modal/lib/simple-modal-template.js");
require("./hax-picker.js");
var _haxUiStyles = require("./hax-ui-styles.js")... |
import baseComponent from '../helpers/baseComponent'
baseComponent({
relations: {
'../accordion/index': {
type: 'child',
observer() {
this.changeCurrent()
},
},
},
properties: {
prefixCls: {
type: String,
va... |
const http = require("http");
const fs = require("fs");
function download(url, dest) {
return new Promise((resolve, reject) => {
const file = fs.createWriteStream(dest, { flags: "wx" });
const request = http.get(url, response => {
if (response.statusCode === 200) {
resp... |
import React from "react";
// 导入样式文件
import styles from "./index.less";
// 导入路由文件
import router from "@s/router";
import { Icon, Tag, Affix } from "antd";
import { withRouter } from "react-router-dom";
import AppBus from "@u/appBus";
const colors = [
"magenta",
"red",
"volcano",
"orange",
"gold",
"lime",
... |
import logging
import sys
from PySide2.QtCore import Qt, QProcess, QSettings
from PySide2.QtGui import QIcon, QPixmap, QTextCursor
from PySide2.QtWidgets import (
QAction, QActionGroup, QApplication, QLabel, QMenu, QSystemTrayIcon, QTextBrowser)
import app
from app.realtime_interaction import InteractionServer
fr... |
# -*- coding: utf-8 -*-
"""
@author: 猿小天
@contact: QQ:1638245306
@Created on: 2021/8/21 021 9:48
@Remark:
"""
import hashlib
import random
CHAR_SET = ("2", "3", "4", "5",
"6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H",
"J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "V",
... |
// --------------DSABLE BACKUP------------------
angular.module('App').controller('HousingDeleteFtpBackupCtrl', ($scope, $stateParams, $translate, Housing, Alerter) => {
const alert = 'housing_tab_ftpbackup_alert';
$scope.ftpBackup = $scope.currentActionData;
$scope.loading = false;
$scope.deleteFtpBackup = f... |
//=============================================================================
//
// File: bequiesce/src/cli.js
// Language: ECMAScript 2015
// Copyright: Read Write Tools © 2018
// License: MIT
// Initial date: Sep 22, 2015
// Contents: Command Line Interface for Bequiesce
//
//===============... |
"use strict";
var tap = require("tap");
var sha1 = require("../src/sha1");
tap.equal("92cfceb39d57d914ed8b14d0e37643de0797ae56", sha1(42));
tap.equal("21d90aad4d34f48f4aad9b5fa3c37c118af16df9", sha1("Value to be hashed"));
tap.equal("d5d4cd07616a542891b7ec2d0257b3a24b69856e", sha1()); // undefined
tap.equal("2be88ca... |
import observable from 'riot-observable'
import mkdom from './mkdom'
import settings from '../../settings'
import isSvg from './../common/util/checks/is-svg'
import extend from './../common/util/misc/extend'
import uid from './../common/util/misc/uid'
import define from './../common/util/misc/define'
import getTagName ... |
const chai = require('chai');
const { expect } = chai;
const { expectRevert } = require('openzeppelin-test-helpers');
var MyERC721 = artifacts.require('MyERC721');
contract('Testing ERC721 contract', function(accounts) {
beforeEach(async () => {
this.token = await MyERC721.new({ from: accounts[0] });
});
co... |
S.Db=(function(){
var dbs=new Map;
var Db=S.newClass({
ctor:function(dbName,options){
this.dbName=dbName;
options.dbName=dbName;
this.options=options;
this.models=[];
this.store=(options.Store&&S.Db[options.Store])||require('./MongoDBStore');
},
init:function(onEnd){
this.store.init(this,... |
'use strict';
//FIXME: Should find an appropriate place for this
//Setting up jsep
jsep.addBinaryOp('contains', 10);
jsep.addBinaryOp('!contains', 10);
jsep.addBinaryOp('begins', 10);
jsep.addBinaryOp('!begins', 10);
jsep.addBinaryOp('ends', 10);
jsep.addBinaryOp('!ends', 10);
angular.module('view-form').directive('s... |
#!/usr/bin/env python
import os
import sys
import random
import math
import networkx as nx
import matplotlib.pyplot as plt
try:
import pygraphviz
from networkx.drawing.nx_agraph import graphviz_layout
except ImportError:
try:
import pydotplus
from networkx.drawing.nx_pydot import graphviz_... |
import { t } from '/@/hooks/web/useI18n';
const menu = {
orderNo: 0,
menu: {
path: '/home/welcome',
name: t('routes.dashboard.welcome'),
},
};
export default menu;
//# sourceMappingURL=home.js.map
|
from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from rest_framework.authtoken.views import obtain_auth_token
from .views import CreateView, DetailsView,\
UserView, UserDetailsView, BucketListItemsView
urlpatterns = {
url(r'^auth/', include('rest_framew... |
import styled from 'styled-components';
export const Wrapper = styled.div`
max-width: var(--max-width);
margin: 0 auto;
h1 {
color: var(--medGrey);
@media screen and (max-width: 768px) {
font-size: var(--fontBig);
}
}
`;
export const Content = styled.div`
display: flex;
overflow: auto;
... |
# coding:utf-8
import re
from itertools import cycle
datetime_fields = dict(
Y=r"[0-9]{4}",
y=r"[0-9]{2}",
m=r"(?:0[0-9]|1[0-2])",
b=r"(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",
B=r"(?:January|February|March|April|May|June|July|August|September|October|November|December)",
d=r"(?:[0-... |
import time
import ctypes as C
import numpy as np
class Edge:
def __init__(self, pco_edge_type='4.2', verbose=True, very_verbose=False):
assert pco_edge_type in ('4.2', '5.5')
self.pco_edge_type = pco_edge_type
self.verbose = verbose
self.very_verbose = very_verbose
self.cam... |
// Generated by CoffeeScript 2.7.0
/*
Traverse the parent hierarchy until it find a value. The traversal will only
stop if the user function return anything else than `undefined`, including
`null` or `false`.
*/
var find, utils, validate;
utils = require('../../utils');
find = async function(action, finder) {
var p... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"/pFH":function(t,r,e){"use strict";r.a=function(t){var r=this.constructor;return this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){return r.reject(e)}))}))}},"8oxB":function(t,r){var ... |
"""Test check_config script."""
import logging
from homeassistant.config import YAML_CONFIG_FILE
import homeassistant.scripts.check_config as check_config
from tests.async_mock import patch
from tests.common import get_test_config_dir, patch_yaml_files
_LOGGER = logging.getLogger(__name__)
BASE_CONFIG = (
"home... |
const fs = require('fs');
function writeDataToFile(filename, content) {
fs.writeFileSync(filename, JSON.stringify(content), 'utf-8', (err) => {
if (err) {
console.log(err);
}
});
}
function getPostData(req) {
return new Promise((resolve, reject) => {
try {
let body = '';
req.on('d... |
import {MiningDataView} from 'miningData/MiningDataView';
import * as alfnavigator from 'alfnavigator';
import {BaseController} from 'BaseController';
import {global} from 'global';
import 'jquery';
import 'fileupload';
import 'underscore';
import 'moment';
export class MiningDataController extends BaseContro... |
const ServiceProvider = require ('./ServiceProvider')
module.exports = class ApplicationService extends ServiceProvider {
// eslint-disable-next-line no-unused-vars
}
|
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2897',"Tlece.Recruitment.Models.TleceAccount Namespace","topic_00000000000009CC.html"],['2898',"JwtTokenResponseDto Class","topic_00000000000009CD.html"],['2899',"Properties","topic_00000000000009CD_props--.html"],[... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-10-30 13:24
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('activityinfo', '0008_auto_20181027_1950'),
]
op... |
import setuptools
with open("README.md", "r") as f:
long_description = f.read()
setuptools.setup(
name="davyjones",
version="0.0.1",
author="Eric Moyer",
author_email="ejmoyer3@comcast.net",
url="https://github.com/ejmoyer/davy-jones",
description="TBA.",
long_description=long_descrip... |
import warnings
class WordPairsExtractor(object):
def __init__(self, max_window_size, type='position'):
self.max_window_size = max_window_size
self.type = type
def position_based(self, encoded_text):
edges = {}
# Construct edges
for i in range(2, self.max_window_size ... |
"""
Master/slave fixture for executing JSTests against.
"""
from __future__ import absolute_import
import os.path
import pymongo
from . import interface
from . import standalone
from ... import config
from ... import logging
from ... import utils
class MasterSlaveFixture(interface.ReplFixture):
"""
Fixtur... |
var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
swiffyobject, {});
// Default. Set data from URL. Example Set Text1 = Text 1 and Text1 = 2 - ?Text1=Text+1&Text2=2
/*var myQueryString=document.location.search;
if (myQueryString[0]='?')
{
myQueryString=my... |
var config = require('../config')
var gulp = require('gulp')
, gutil = require('gulp-util')
, gulpif = require('gulp-if')
, rename = require('gulp-rename')
, browserify = require('browserify')
, watchify = require('watchify')
, reactify = require('reactify')
, browserifyShim = require('browserify-shim')
... |
'''
Created by auto_sdk on 2015.11.10
'''
from aliyun.api.base import RestApi
class Rds20140815DescribeDBInstancesRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.ConnectionMode = None
self.DBInstanceId = None
self.DBInstanceStatus = None... |
'use strict';
module.exports = {
ava: {
files: [
'test/**/*.js'
],
tap : true,
failFast : true,
concurrency: 5
}
};
|
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import Card from "@material-ui/core/Card";
import CardActionArea from "@material-ui/core/CardActionArea";
import CardContent from "@material-ui/core/CardContent";
import Typography from "@material-ui/core/Typography";
import store from "... |
import Ocean from '../../../app/javascript/src/canvas/ocean';
describe('Ocean', () => {
let ocean;
let island1;
let island2;
let islands;
const point = { x: 300, y: 300 };
beforeEach(() => {
island1 = { outline_points: [] };
island2 = { outline_points: [] };
islands = [island1, island2];
oc... |
"""
Django settings for instagram_clone_32188 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""... |
exports.b = require('b');
|
module.exports = { presets: ['@vue/app'],
plugins: ['istanbul'] }
|
const free = 12;
let free2 = 13;
var free3 = 14;
function anon(){
}
console.log( (free3 * free2));
console.log("ola");
console.log("ol");
console.log("ola res");
console.log("ow");
|
import os
from typing import TYPE_CHECKING, Callable, List
import numpy as np
import pygame
from gym.spaces import Discrete
from highway_env.envs.common.action import ActionType, DiscreteMetaAction, ContinuousAction
from highway_env.road.graphics import WorldSurface, RoadGraphics
from highway_env.vehicle.graphics impo... |
export const stringOrNull = (props, propName, componentName) => {
const propValue = props[propName];
if (propValue === null || typeof propValue === 'string') {
return;
}
return new Error(
`Invalid prop \`${propName}\` of type \`${typeof propValue}\` supplied to \`${componentName}\`, expected \`string\... |
function foo(o) {
o.a;
for (var i = 0; i < 0; i++);
for (i = 0; i < 0; i++);
}
|
const handler = require('../../../../extensions/wkfhirresponseutils');
/**
* @function search
* @param {Function} service
* @return Promise
*/
module.exports.search = function search(service) {
return (req, res, next) => {
return service
.search(req.sanitized_args, { req })
.then((bundle) => hand... |