text stringlengths 3 1.05M |
|---|
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"6A4u":function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var n=a("vOnD"),i=a("uZbd"),o=n.b.div.withConfig({displayName:"galleryWrapper__GalleryWrapper",componentId:"sc-1vq4w0i-0"})(["display:flex;flex-wrap:wrap;justify-content:center;align-items:cent... |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:43:44 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/PhotosUICore.framework/PhotosUICore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by... |
#!/usr/bin/env python
# ==========================================================================
#
# Copyright NumFOCUS
#
# 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
#
# ... |
from functions import *
import argparse
def updateStart(db, gene_id, newStart, rev_comp):
cur = db.cursor()
if rev_comp == False:
cur.execute("UPDATE gene SET start = " + str(newStart) + ", adjusted = 1 WHERE id = " + str(gene_id))
else:
cur.execute("UPDATE gene SET end = " + str(newStart) ... |
const getChaincodeConfig = require('./getChaincodeConfig');
const CONSTANTS = require('./../constants/index');
module.exports = function getChaincodeChannel(chaincodeLocation) {
const config = getChaincodeConfig(chaincodeLocation);
if (config != null) {
return config['hf-dev-channel'] || CONSTANTS.D... |
from flask import render_template, request, redirect, url_for
from . import main
# from app import main
from ..request import get_movies, get_movie, search_movie
from .forms import ReviewForm
from ..models import Review
# Views
@main.route('/')
def index():
'''
View root page function that returns the index p... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crm', '0004_auto_20160202_1146'),
('heritage', '0031_interview_other_interviewers'),
]
operations = [
migrations.Add... |
# Copyright 2016 Quora, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... |
"""Create json with information for custom_updater."""
import json
import random
from github import Github
from github.GithubException import UnknownObjectException
from customjson.defaults import COMMIT
class CreateJson:
"""Class for json creation."""
def __init__(self, token, push, repo=None):
"""I... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import PropTypes from "prop-types";
import PostItem from "../posts/PostItem";
import CommentForm from "./CommentForm";
import CommentFeed from "./CommentFeed";
import Spinner from "../common/Spinner... |
int main( string param ) {
int x, y;
string desc;
object area;
WIZ_CHECK
if( !param ) {
notify_fail( "==> [Format] rmlandmark description" );
return 0;
}
area = environment(this_player());
if( !area ) return 0;
if( !area->query_is_landmark() )
area = environment(area);
... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import moment from 'moment';
import {
Row,
Col,
Card,
Form,
Input,
Button,
InputNumber,
DatePicker,
Modal,
message,
Divider,
} from 'antd';
import StandardTable from 'co... |
// Window.h
// Interfaces to the cWindow class representing a UI window for a specific block
#pragma once
#include "../FunctionRef.h"
#include "../ItemGrid.h"
class cPlayer;
class cWindowOwner;
class cClientHandle;
class cBrewingstandEntity;
class cChestEntity;
class cEnderChestEntity;
class cFurnaceEntity... |
import React, { useState } from "react";
import axios from "axios";
import filterOptions from "../assets/data/filterOptions";
import createPostSettings from "../assets//data/createPostSettings";
import CustomModal from "../components/CreatePost/CustomModal";
import RadioGroup from "../components/CreatePost/RadioGroup";... |
const MarkdownIt = require('markdown-it');
const Entities = require('html-entities').AllHtmlEntities;
const htmlentities = (new Entities()).encode;
const Resource = require('lib/models/Resource.js');
const ObjectUtils = require('lib/ObjectUtils');
const { shim } = require('lib/shim.js');
const { _ } = require('lib/loca... |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, ParaTools, Inc.
# 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,
# t... |
var unionword =
[
[ "w_float", "unionword.html#af36977dd3e9e1b3d319246b2795ca592", null ],
[ "w_long", "unionword.html#aad3460d83d847510f7cdf66c4cfa5a49", null ],
[ "w_obj", "unionword.html#a1c1b743bf0274774ab01ad52de7fae1b", null ],
[ "w_sym", "unionword.html#a979bae342fac8dbb9af68f15080bedbc", null ]
... |
/** @namespace x3dom.nodeTypes */
/*
* X3DOM JavaScript Library
* http://www.x3dom.org
*
* (C)2018 A. Plesch, Waltham, MA USA
* Dual licensed under the MIT and GPL
*/
/*
* Ayam, a free 3D modeler for the RenderMan interface.
*
* Ayam is copyrighted 1998-2016 by Randolf Schultz
* (randolf.schultz@gmail.com) a... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=classifier.js.map |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_telnet
----------------------------------
Tests for `telnet` module.
"""
try:
import unittest2 as unittest
except ImportError:
import unittest
import telnetlib
from wikipediabase import telnet
# TODO: fix this test, it's hanging because the server i... |
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';(function(d,r){"object"===typeof exports&&"undefined"!==typeof m... |
import logging
from pathlib import Path
from typing import Callable, Dict, List, Optional, Tuple
import numpy as np
import pyro
import torch
from pyro import distributions as pdist
from sbibm.tasks.simulator import Simulator
from sbibm.tasks.task import Task
class GaussianLinearUniform(Task):
def __init__(
... |
#!/usr/bin/env python3
import numpy as np
pca = __import__('1-pca').pca
P_init = __import__('2-P_init').P_init
HP = __import__('3-entropy').HP
X = np.loadtxt("mnist2500_X.txt")
X = pca(X, 50)
D, P, betas, _ = P_init(X, 30.0)
H0, P[0, 1:] = HP(D[0, 1:], betas[0])
print(H0)
print(P[0])
|
# -*- coding: utf8 -*-
from __future__ import division
from __future__ import absolute_import
from past.utils import old_div
import six
import ckan.plugins.toolkit as t
import ckan.lib.mailer as mailer
from datetime import datetime
import click
@click.group()
def apicatalog_admin():
'''Creates users based on rec... |
import google from '../data/google';
import yandex from '../data/yandex';
export default (name, engine) => {
switch (engine) {
case 'google': engine = google; break;
case 'yandex': engine = yandex; break;
default: engine = google;
}
// Validate the name string
if (type... |
/*
* dfu-programmer
*
* $Id: atmel.c 25 2006-06-25 00:01:37Z schmidtw $
*
* 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 2 of the License, or
* (at your option) any later... |
/*-------------------------------------------------------------------------
*
* relcache.h
* Relation descriptor cache definitions.
*
*
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/utils/relcache... |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 CERN.
#
# invenio-app-ils is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Helper proxy to the state object."""
from __future__ import absolute_import, print_function
from flask import... |
const db = require("quick.db");
const Discord = require("discord.js")
module.exports = {
name: "role-all",
aliases: ["ra", "all-role"],
execute: async(client, message, args) => {
if (message.member.hasPermission("MANAGE_SERVER")) {
var role1 = message.mentions.roles.first().id;
if(!role1)
{... |
const helperIseDeclarations = {};
helperIseDeclarations["ka"] = require("./array_helpers/ka.js");
helperIseDeclarations["siLetaNla"] = require("./string_helpers/si_leta_nla.js");
helperIseDeclarations["siLetaKekere"] = require("./string_helpers/si_leta_kekere.js");
helperIseDeclarations["waNinu"] = require("./string_he... |
import config from './config';
import md5 from './md5';
export default class Http {
axios({ url, data = {}, method = 'GET' }) {
wx.showLoading({
title: 'Loading...',
mask: true,
});
let { sign, timestamp } = this.getSign();
// console.log(sign);
// co... |
VERSION = '099'
WEATHER_1 = [1, 3, 6, 8] # train
WEATHER_2 = [4, 14] # test
WEATHER_3 = [10, 14]
WEATHER_4 = [1, 8, 14] # validate
ALL_SUITES = dict()
def _add(suite_name, *args, **kwargs):
assert suite_name not in ALL_SUITES, '%s is already registered!' % suite_name
town = None
if 'Town01' in suit... |
import unittest
import os
import boto3
from darty.drivers.abstract import VersionExistsError, PackageNotFoundError
from darty.drivers.s3.files.driver import S3FilesDriver
from darty.drivers.s3.zip.driver import S3ZipDriver
from moto import mock_s3
from darty.output_writer import NullOutputWriter
from shutil import rmtr... |
from dataclasses import dataclass
from datetime import datetime
@dataclass
class CurrencyTradeVolumeRecord:
time: datetime
currency_pair: str
volume: float
|
'''
Manage partner namespaces.
'''
from .... pyaz_utils import _call_az
from . import event_channel, key
def show(name, resource_group):
'''
Get the details of a partner namespace.
Required Parameters:
- name -- Name of the partner namespace.
- resource_group -- Name of resource group. You can co... |
(function () {
'use strict';
angular
.module('traces.services')
.factory('TracesService', TracesService);
TracesService.$inject = ['$resource'];
function TracesService($resource) {
return $resource('/api/traces/:traceId', {
traceId: '@_id'
}, {
update: {
method: 'PUT'
... |
import { Fetch } from './Fetch';
import MockAdapter from 'axios-mock-adapter';
export class BBBSApi extends Fetch {
constructor(baseURL, options = {}) {
super(baseURL, options);
if (Object.prototype.hasOwnProperty.call(options, 'mock') && options.mock) {
this._initMock();
}
this._checkAuth();... |
#!/usr/bin/python
import time
from flask import Flask, jsonify, request
from flask_pymongo import PyMongo, ObjectId
app = Flask(__name__)
app.config["MONGO_URI"] = "mongodb://todo-db-0.todo-db,todo-db-1.todo-db,todo-db-2.todo-db:27017"
app.config["MONGO_DBNAME"] = "tasks"
mongo = PyMongo(app)
START = time.time()
de... |
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
});
const contentfulConfig = {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken:
process.env.CONTENTFUL_ACCESS_TOKEN ||
process.env.CONTENTFUL_DELIVERY_TOKEN,
};
// If you want to use the preview API please define
// CONTENTFUL_HOST a... |
"""Unit tests for the fastText backend in Annif"""
import logging
import pytest
import annif.backend
import annif.corpus
from annif.exception import NotSupportedException
fasttext = pytest.importorskip("annif.backend.fasttext")
def test_fasttext_default_params(project):
fasttext_type = annif.backend.get_backend... |
/*
* linux/drivers/scsi/esas2r/esas2r_log.c
* For use with ATTO ExpressSAS R6xx SAS/SATA RAID controllers
*
* Copyright (c) 2001-2013 ATTO Technology, Inc.
* (mailto:linuxdrivers@attotech.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Genera... |
#!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2017
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as publish... |
import os
files = os.listdir("/datassd4t/lbd/Large_Automotive_Detection_Dataset_sampling/train")
files = [(file[:-9]+"\n").encode("utf-8") for file in files]
f = open("already_exist.txt", mode='wb')
f.writelines(files)
f.close()
f=open("already_exist.txt", mode='rb')
files = f.readlines()
print(files[:5]) |
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan... |
from abc import ABCMeta, abstractmethod
import typing as t
__all__ = []
class FlexibleLocation(metaclass=ABCMeta):
"""Base class of flexible location.
Location is concept representing each pieces of path of URI, i.e.
locations can configures a path of URI by joining them with
separator `/`.
Lo... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[30],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/admin/reader/reader-form.vue?vue&type=script&lang=js&":
/*!*********************************************************************************... |
# Copyright 2016 Skymind,Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
const router = require('express').Router()
const bcrypt = require('bcryptjs')
const { BCRYPT_ROUNDS, JWT_SECRET } = require('../../config')
const User = require('../auth/auth-model')
const { generateToken } = require('./auth-middleware')
router.post('/register', (req, res, next) => {
let user = req.body
const... |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: resource_metric_source.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goog... |
#!/usr/bin/env python
from __future__ import print_function
"""
site.pp generator
"""
import os
import sys
import json
import inflect
import argparse
from configparser import SafeConfigParser
debug = False
write_to = sys.stdout
def eprint(*args, **kwargs):
global debug
if debug:
print(*args, file=s... |
'use strict';
var WSDLElement = require('./wsdlElement');
class Documentation extends WSDLElement {
constructor(nsName, attrs, options) {
super(nsName, attrs, options);
}
}
Documentation.elementName = 'documentation';
Documentation.allowedChildren = [];
module.exports = Documentation; |
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { settings } from '../../settings';
import { TabBar } from '../../ui-utils';
Meteor.startup(function() {
return Tracker.autorun(function() {
if (settings.get('Message_AllowPinning')) {
TabBar.addButton({
groups: ['channe... |
def multipliers():
"""
if you will not bind i, then the result will be
The output of the above code will be [6, 6, 6, 6] (not [0, 2, 4, 6])
The reason of it is late binding.
It means that the values of variables used in closures are looked up
at the time the inner function is called.
You c... |
const name = '';
if (name) {
console.log('We have a name!');
} else {
console.log('No name provided');
} |
'use strict'
var fs = require('fs')
var compiler = require('solc')
var compilerInput = require('remix-solidity').CompilerInput
var defaultVersion = 'v0.5.1+commit.c8a2cb62'
compiler.loadRemoteVersion(defaultVersion, (error, solcSnapshot) => {
if (error) console.log(error)
var compilationResult = {}
gatherCompil... |
export {
// a
foo1,
// b
bar1,
baz1,
} from "mod";
const foo2 = 1;
const bar2 = 1;
const baz2 = 1;
export {
// a
foo2,
// b
bar2,
baz2,
};
|
import unittest
import warnings
import torch
from tqdm import tqdm
from data.utils import get_db_container, get_db_info
from utils import get_dataloader, get_train_val_test_datasets
dataset_names = ('acquirevaluedshopperschallenge',
'homecreditdefaultrisk',
'kddcup2014')
class Tes... |
import numpy as np
from mss import mss
import cv2
import time
from logger import Logger
from typing import Tuple
from config import Config
from utils.misc import load_template
import os
class Screen:
"""Grabs images from screen and converts different coordinate systems to each other"""
def __init__(self, mon... |
# Test for one implementation of the interface
from lexicon.providers.glesys import Provider
from integration_tests import IntegrationTests
from unittest import TestCase
import pytest
# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interf... |
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from shop.conf import app_settings
from shop.models.customer import CustomerModel
def customer(request):
"""
Add the customer to the RequestContext
"""
msg = "The request object does not contain a customer. Edit your MIDDLEWARE_CLASSES s... |
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://127.0.0.1:3000', //对应自己的接口
changeOrigin: true, //是否跨域
ws: true,
pathRewrite: {
'^/api': ''
}
}
}
}
} |
from django.contrib.auth.models import User
from EkList.models import Auction
import datetime
import pytz
def populate():
"""
This fills the EkList Django database with 99 users, and 1 auction for each of them.
It then adds a single bid for 1/7th of those auctions, from 6 different users (id 1-6)... |
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
General functional-style helpers for disttrial.
"""
from functools import partial, wraps
from typing import Awaitable, Callable, Optional, TypeVar
from twisted.internet.defer import Deferred, succeed
_A = TypeVar("_A")
_B = TypeVar("_B")
_C... |
from parcels.field import Field, VectorField, SummedField, SummedVectorField
from parcels.gridset import GridSet
from parcels.grid import RectilinearZGrid
from parcels.tools.loggers import logger
from parcels.tools.converters import TimeConverter
import numpy as np
from os import path
from glob import glob
from copy im... |
'use strict';
exports.getContacts = function (req, res, next) {
//var getContacts = function(){
var data = [
{
"id": 10238,
"name": "Marc Barnes",
"email": "marc.barnes54@example.com",
"username": "MarcBarnes",
"contact": "(38... |
export { default } from './SubjectSetStore' |
"use strict";
require("core-js/modules/es.array.iterator.js");
require("core-js/modules/es.weak-map.js");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ChoicesComponent = ChoicesComponent;
exports.choices = choices;
var _react = _interopRequireWildcard(require("react"));
var _helpers = r... |
// import zhMessages from '../../locales/zh.json';
export default {
'navbar.lang': 'English',
'menu.home': '首页',
'menu.dashboard': '本站新闻',
'menu.dashboard.analysis': '公告',
'menu.dashboard.monitor': '消息',
'menu.dashboard.workplace': '个人资料',
'menu.form': '我的课程',
'menu.course': '课程详情',
'menu.course.grad... |
from data.fields.abstract import AbstractField
from data.scrape.fields.targets import TARGETS, GUIDELINE_TARGETS, EQUATOR_TARGET
class HasAny(AbstractField):
def __init__(self, name, field_names):
self.name = "has_" + name.lower()
self.field_names = field_names
def apply_to_dataframe(self, df... |
/**
* Created by kras on 27.12.16.
*/
'use strict';
function ReportMetaRepository() {
/**
*
* @returns {Promise}
*/
this.init = function () {
return this._init();
};
/**
*
* @param {String} [namespace]
* @returns {DataMine[]}
*/
this.getDataMines = function (namespace) {
retu... |
from __future__ import print_function
from builtins import object
from lib.common import helpers
class Module(object):
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module me... |
//-------------------------------------------------------------------------------------------------
// <copyright file="regutil.h" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are covered by the
// Common Public Li... |
def query():
sql = '''SELECT Field_1 FROM Table_1 '''
return sql |
# -*- coding: utf-8 -*-
import re
from modules import data_structures
from modules import utils
from modules.extractors.pdf.tpm2_partx_extraction_navigator_pdf import ExtractionNavigator
import settings
class SptRoutinesPDF(ExtractionNavigator):
def handle_cryptographic_functions(self, file, sub_path, section_nu... |
"""Config flow for Roku."""
import logging
from typing import Any, Dict, Optional
from urllib.parse import urlparse
from rokuecp import Roku, RokuError
import voluptuous as vol
from homeassistant.components.ssdp import (
ATTR_SSDP_LOCATION,
ATTR_UPNP_FRIENDLY_NAME,
ATTR_UPNP_SERIAL,
)
from homeassistant.c... |
var component = FlowComponents.define('hbar.breakdown', function(props) {
this.setFn('sortOptions', props.sortOptionsFn);
this.setFn('selectedItem', props.selectedItemFn);
this.setFn('commonValueLabel', props.commonValueLabelFn);
this.metricDataKey = props.metricDataKey;
this.autorun(function() {
var ar... |
import importlib
import os
import sys
from urllib.parse import quote_plus
from urllib.parse import unquote_plus
from fedoidc.bundle import FSJWKSBundle
from fedoidc.bundle import keyjar_to_jwks_private
from fedoidc.file_system import FileSystem
from fedoidc.operator import Operator
from fedoidc.signing_service import ... |
# orm/mapper.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Logic to map Python classes to and from selectables.
Defines the :class:`~sqlalche... |
var searchData=
[
['refreshaccesstokenwithclientid_3aorigin_3aappname_3ascopes_3asuccess_3aerror_3a',['refreshAccessTokenWithClientId:origin:appName:scopes:success:error:',['../df/d9b/interface_d_connect_util.html#a7ff60c6dbb49d5f5cc1d2b8fb88ca38b',1,'DConnectUtil']]],
['registereventwithrequest_3aresponsehandler_3... |
const code = `<div className='App'>
<Windows
dashboard={dashboard}
windows={{ ...this.props.windows }}
onClose={this.props.removeWindow}
order={this.props.order}
active={this.props.active}
setActive={this.props.setActive}
/>
</div>`
export default code
|
/*
SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts
Copyright (C) 2001-2022 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software... |
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
__version__ = '0.8.2'
|
/**
* First we will load all of this project's JavaScript dependencies which
* includes React and other helpers. It's a great starting point while
* building robust, powerful web applications using React + Laravel.
*/
require('./bootstrap');
/* Import the Main component */
import Main from './components/Main'; |
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS104: Avoid inline assignments
* DS207: Consider shorter variations of null checks
* Full docs: https:/... |
#!/usr/bin/env python
# http://stackoverflow.com/a/8556231/5288758
#############################################################################
##
## Copyright (C) 2010 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of ... |
# Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
import logging
import c7n_kube.actions.shared # noqa
from c7n_kube.resources.core import (
configmap,
namespace,
node,
pod,
replicationcontroller,
secret,
service,
serviceaccount,
volume)
from c7n_kube... |
from __future__ import print_function
import itertools
import os
import random
import sys
import collections
import importlib
import json
import pkgutil
import threading
import re
import logging
import pprint
from functools import wraps
import flask
from flask import Flask, Response
from flask_compress import Compre... |
import yaml
from yaml.loader import Loader
import operator
from functools import reduce
from copy import deepcopy
from .py_utils import create_instance
try:
import torch
except ImportError:
torch = None
try:
import numpy as np
except ImportError:
np = None
def add(loader, node):
return sum(loade... |
var myApp = angular.module("loginApp" , ["ngRoute" , "firebase"]);
myApp.config(["$routeProvider" , "$locationProvider" , function($routeProvider , $locationProvider){
$routeProvider.when("/login" , {
templateUrl : "/views/login.html",
controller : "registerCtr"
}).
when("/register" , {
... |
def swap(arr):
for i in range(0,len(arr)-1,2):
print(i, end=" ") # current
print(i+1) # next
temp = arr[i]
arr[i] = arr[i+1]
arr[i+1] = temp
def swapAlternative(arr, n):
for i in range(n):
if (i+1 < n):
swap(arr)
def printArray(arr, n):
for i in ... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:29:02 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/PrivateFrameworks/SiriUI.fra... |
import"./boot.js";let microtaskCurrHandle=0,microtaskLastHandle=0,microtaskCallbacks=[],microtaskNodeContent=0,microtaskNode=document.createTextNode("");new window.MutationObserver(microtaskFlush).observe(microtaskNode,{characterData:!0});function microtaskFlush(){const len=microtaskCallbacks.length;for(let i=0,cb;i<le... |
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
import json
import pandas as pd
import re
import sqlite3
from collections import Counter
from hashlib import sha256
from pathlib import Path
import copy
import datetime
import random
import requests
import sys
import tabulate
import time
from inputimeout import inputimeout, TimeoutOccurred
from captcha import captcha... |
/*
Copyright (C) 2012-2013 Yusuke Suzuki <utatane.tea@gmail.com>
Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
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 r... |
function validate() {
var product_name = document.getElementById("product_name").value;
var quantity = document.getElementById("quantity").value;
var price = document.getElementById("price").value;
var description = document.getElementById("description").value;
var alpha = /^[A-Za-z]+$/; //regular ... |
import React from 'react';
import { InputSelect } from 'aionic-library';
import Helper from '../../../services/helper';
const BoardsFilters = (props) => {
const { filterItemsByParams, filterItemsByText, resetFilters } = props;
const handleParamsChange = (e) => {
filterItemsByParams({ [e.target.name]: e.target.v... |