text
stringlengths
3
1.05M
from django.conf.urls.defaults import * from marty import views urlpatterns = [ url(r'update$', views.update, name='update'), ]
const { actions: { MODEL_UPDATE } } = require('~') const { component, wire, on } = capsid const genel = require('genel') @component class ChartCard { @wire.el('tbody') get tbody () {} @on(MODEL_UPDATE) onModelUpdate ({ detail: { defaultChart, domain: { MajorAccountType } } }) { co...
System.register(["./datasource", "./query_ctrl", "./config_ctrl"], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var datasource_1, query_ctrl_1, config_ctrl_1, LogzioQueryOptionsCtrl, LogzioAnnotationsQueryCtrl; return { setters: [ func...
"""Utility datastructures and functions This module provides various utility functions and datastructures for the Laconic framework. Classes: Config - Dict-like object for storing app configuration Namespace - Simple namespace for storing arbitrary data. AttributeScope - Dict which allows searching for ke...
const { Gio, GLib } = imports.gi; // Toggle pause // dbus-send --print-reply --dest=${currentPlayer} /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause // Next // dbus-send --print-reply --dest=${currentPlayer} /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next // Previous // dbus-send --print-r...
!function(e,t){var n,r;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,n=e.Cookies,(r=e.Cookies=t()).noConflict=function(){return e.Cookies=n,r})}(this,function(){"use strict";function c(e){for(var t=1;t<arguments.length;t++){var n=argum...
var data = { "body": "<path d=\"M21 17h3l-4 4l-4-4h3V3h2v14M8 16h3v-3H8v3m5-11h-1V3h-2v2H6V3H4v2H3c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h10c1.11 0 2-.89 2-2V7c0-1.11-.89-2-2-2M3 18v-7h10v7H3z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; exports.__esModule = true; exports.default = data;
import styled, { css } from 'styled-components'; import { MyAccountTextGray } from 'styles/variables'; export const WrapStyled = styled.div` position: relative; margin-bottom: 30px; `; export const CardsWrapper = styled.div` display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; @media only scree...
import React from "react" import { Link } from "gatsby" import MenuIcon from "@material-ui/icons/Menu" import IconButton from "@material-ui/core/IconButton" import Drawer from "@material-ui/core/Drawer" import List from "@material-ui/core/List" import ListItem from "@material-ui/core/ListItem" import ListItemText from ...
#!/usr/bin/python3 # Copyright 2018-2020 Alvaro Bartolome @ alvarob96 in GitHub # See LICENSE for details. from datetime import datetime, date import json from random import randint import pandas as pd import pkg_resources import requests import unidecode from lxml.html import fromstring from investpy.utils.user_ag...
/* * @Author: Kvkens * @Date: 2017-05-22 14:36:34 * @Last Modified by: Kvkens * @Last Modified time: 2017-05-22 14:36:40 */ const chalk = require("chalk"); const pathExists = require("path-exists"); const path = require("path"); const fs = require("fs"); const fse = require("fs-extra"); const inquirer = requ...
const getLocalEnv = require('./env') const {baseOptions, urlPathes} = getLocalEnv() /** * @param {string} sessionId . * @param {string} selector css selector. * @param {object} options options. */ module.exports = function(request) { return async function(sessionId, selector, options) { if(!options) ...
import 'alpinejs';
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; var fs_1 = __importDefault(require("fs")); var send_error_1 = __importDefault(require("../../final-user/error/send-error")); var verify_file_1 = __importDefault(requir...
import codecs from setuptools import setup import vici with codecs.open("README.rst", "r", "UTF-8") as readme: long_description = readme.read() setup( name="vici", version=vici.__version__, description="Library talking vici to strongSwan", author="Bjorn Schuberg", url="https://github.com/sb...
import React, {Component} from 'react'; import {Switch, Link, Route} from 'react-router-dom'; import '../css/CreateProposal.css'; import CreateRecipe from './CreateRecipe'; class CreateProposal extends React.Component{ constructor(props){ super(props); this.state = { //btnClicked: fals...
import * as React from 'react'; import { expect } from 'chai'; import { describeConformance, createRenderer, act, fireEvent } from 'test/utils'; import { ThemeProvider } from '@mui/joy/styles'; import ListItemButton, { listItemButtonClasses as classes } from '@mui/joy/ListItemButton'; describe('Joy <ListItemButton />'...
$(function() { function base_url() { var pathparts = location.pathname.split('/'); var url; if (location.host == 'localhost') { url = location.origin+'/'+pathparts[1].trim('/')+'/'; // http://localhost/myproject/ }else{ url = location.origin + "/"; // http://stackoverflow.com/ } return url; } $('...
############################################################################# # # # Javascript Function webGenFramework module to BFA c7 # # ############################################################################# """ This is a javascript function module for a simple HTML/JS/CSS generator/framework with the purp...
""" Copyright (C) 2017-2018 University of Massachusetts Amherst. This file is part of "learned-string-alignments" http://github.com/iesl/learned-string-alignments 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...
const path = require('path'); const fs = require('fs'); const webpack = require('webpack'); const ForkTsCheckerNotifierWebpackPlugin = require('fork-ts-checker-notifier-webpack-plugin'); const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'...
import OHIFLogo from '../components/OHIFLogo/OHIFLogo.js'; import React from 'react'; const defaultContextValues = { logoComponent: OHIFLogo(), }; const WhiteLabellingContext = React.createContext(defaultContextValues); export default WhiteLabellingContext;
$(function(){J_btFixedInd();function J_btFixedInd(){var wrap=$("#J_btFixedInd");var resultShow=$("#resultShow i",wrap);setInterval(function(){var a=Math.ceil(Math.random()*150000)+10000;resultShow.text(a);},200);var unit=$("#unit",wrap),unitTxt=new Array();$(".cls_unit",wrap).hide();$(".list",wrap).each(function(i){var...
import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: config.locationType, }); Router.map(function () { this.route('payment'); this.route('accounts'); }); export default Router;
var Utils = require("../../utils") , AbstractQuery = require('../abstract/query') module.exports = (function() { var Query = function(client, sequelize, callee, options) { this.client = client this.callee = callee this.sequelize = sequelize this.options = Utils._.extend({ logg...
import _curry1 from './internal/_curry1.js'; import _identity from './internal/_identity.js'; /** * A function that does nothing but return the parameter supplied to it. Good * as a default or placeholder function. * * @func * @memberOf R * @since v0.1.0 * @category Function * @sig a -> a * @param {*} x The v...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var types = {}; /** * @namespace Phaser.Loader.FileTypesManager */ var FileTypesManager = { /** * Static...
/* * under-meta.js :: Stream responsible for emitting events under a fixed value for a specific meta key * * (C) 2013, Nodejitsu Inc. * */ var util = require('util'), ReadWriteStream = require('../common/read-write-stream'); // // ### function UnderMeta (key, floor) // #### @key {String} any key that would p...
import React from 'react'; import { WebView } from 'react-native-webview'; function Profile({ navigation }) { const github_username = navigation.getParam('github_username'); return ( <WebView style={{ flex: 1 }} source={{ uri: `http://github.com/${github_username}` }}/> ); } export default Profile;
const smallDevicesInputs = document.getElementsByClassName('small-device-input'); const bigDevicesInputs = document.getElementsByClassName('big-device-input'); for (let i = 0; i < smallDevicesInputs.length; i++) { smallDevicesInputs[i].addEventListener('change', submitSmallDeviceForm); bigDevicesInputs[i].addE...
const colors = require("colors/safe"); const _ = require("lodash"); const fs = require("fs"); const Table = require("cli-table3"); const utils = require("./utils"); const CodeChecksReport = require("./codechecksReport"); class GasTable { constructor(config) { this.config = config; } /** * Formats and prin...
# Unless explicitly stated otherwise all files in this repository are licensed # under the Apache License Version 2.0. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2018 Datadog, Inc. import mock import pytest import os import datetime import tempfile import shutil im...
import dayjs from 'dayjs'; import { save } from '../../../tools/storage'; import { dateFormat } from '../../defaults'; const saveLineBuffer = (store) => (next) => (action) => { const state = store.getState(); if ( (action.type === 'IMAGE_COMPLETE') || (action.type === 'SET_ALL_LINES') ) { save((ac...
export const HOME_ROUTE = '/'; export const ARTISTS_ROUTE = '/artistes'; export const IN_GAME_ROUTE = '/jouer/:code'; export const SETUP_GAME_ROUTE = '/jouer'; export const USER_SPACE_ROUTE = '/espace-perso'; export const AUTH_ROUTE = '/connexion';
// import "./node_modules/bootstrap/dist/css/bootstrap.css" // import "jquery/dist/jquery.min.js"; // import "popper.js/dist/popper.min"; import "./src/styles/main.scss" import "tachyons"
'use strict'; import useRouterHistory from './useRouterHistory'; var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); export default function (createHistory) { var history = undefined; if (canUseDOM) history = useRouterHistory(createHistory)(); return history; ...
import React from 'react'; import { Grommet, Box, List, Menu } from 'grommet'; import { More } from 'grommet-icons'; import { grommet } from 'grommet/themes'; const data = []; for (let i = 0; i < 40; i += 1) { data.push({ entry: `entry-${i + 1}`, }); } export const Action = () => ( <Grommet theme={grommet...
var permissionsName = 'Permissions'; function Permissions() { this.ACCESS_CHECKIN_PROPERTIES = 'android.permission.ACCESS_CHECKIN_PROPERTIES'; this.ACCESS_BACKGROUND_LOCATION = 'android.permission.ACCESS_BACKGROUND_LOCATION'; this.ACCESS_COARSE_LOCATION = 'android.permission.ACCESS_COARSE_LOCATION'; t...
// Quack! This is a duck. https://github.com/erikras/ducks-modular-redux import _ from 'lodash'; import axios from 'axios'; import {SubmissionError} from 'redux-form'; import {getApiDeleteRequest, getApiGetRequest, getApiPutRequest, getApiPostRequest} from './helpers/api_helpers'; const CREATE_MEAL = 'focalm/meals/c...
module.exports={A:{A:{"2":"H D G E A B FB"},B:{"1":"L N I","2":"C p x","578":"J"},C:{"1":"1 2 3 4 5 6 8 9 w y AB","2":"0 ZB CB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M XB RB","194":"q r s t u","1025":"v"},D:{"1":"4 5 6 8 9 y AB LB bB GB a HB IB JB","2":"0 F K H D G E A B C p x...
function solve(arr){ let n = +arr[0]; let symmetricArr=[]; for(let i = 1; i <= n; i++){ if(isSymmetric(i)){ symmetricArr.push(i); } } console.log(symmetricArr.join(' ')); function isSymmetric(num) { let reversedArr = num.toString().split('').reverse().join('...
from up_and_down_bow import prepare_ocp from utils import Bow, Violin, Muscles from bioptim import InitialConditions, Simulate, ShowResult, InterpolationType, OptimalControlProgram ocp = prepare_ocp() muscle_activated_init, muscle_fatigued_init, muscle_resting_init = 0, 0, 1 torque_init = 0 command = 0.3 violon_stri...
export default function (nga, admin) { var addresses = admin.getEntity('addresses'); addresses.listView() .title('Direcciones') .fields([ nga.field('id'), nga.field('street') .label('Direccion'), ]).filters([ nga.field('q', 'template') ...
import time def intro(): print("After a long night party at your friend's house you arrive home.") print("You see a letter in your mailbox. An unusual occurence as bill day") print("is Monday not Friday.") print("You walk up to the mailbox and see that there is a red letter.") print("**QUITE SUSPICIOUS**\n...
const express=require('express'); const router=express.Router(); const Article=require('../models/articles') router.get('/',(req,res)=>{ //res.send('you are in router folder') Article.find() .then(article =>res.json(article)) .catch(err=>res.status(400).json(`Error ${err}`)) }); //add articles ...
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
var TIME, min_dot = ":", second_dot = ":", hour, min, second, dotFlashing = true; function flashing() { if(dotFlashing) { var currentTime = new Date(); if(currentTime.getMinutes() != min) min_dot = " "; else min_dot = ":"; if(currentTime.getSeconds() != second) second_dot = " "; else second_dot = ":...
'use strict'; const webpack = require('webpack'); const path = require('path'); const TerserPlugin = require('terser-webpack-plugin'); const nonMinimizeTrait = { optimization: { minimize: false, usedExports: false, concatenateModules: false, }, }; const minimizeTrait = { plugins: [ new webpack....
const Customer = require('../models/customer.model.js'); const jwt = require('jsonwebtoken'); let config = require('../util/config'); // Retrieve and return all customers from the database. exports.findAll = (req, res) => { Customer.find() .then(customers => { res.send(customers); }).catch(err =>...
// I thank you for showing interest :) // I exist on Github at github.com/MovsisyanM/ // My website: www.movsisyan.info // Draws the page const Cast = () => { //#region Physics Details.Qx += Details.dx; Details.Qy += Details.dy; Details.Qz += Details.dz; Details.dx *= Details.airResist; Detai...
'use strict'; page('/rainParade-client', () => app.weatherView.initIndexPage()); page('/weather/start', () => app.weatherView.initLocationSearch()); page('/about-us', () => app.weatherView.initAboutUsPage()); page('/searchhistory', () => app.Weather.fetchAll(app.weatherView.initSearchHistoryPage)); page('/show', () =>...
$('.welcome-screen button').on('click', function() { var name = $('#name-input').val(); /* var message = "Welcome, " + name; $('.main .user-name').text(message); $('.welcome-screen').addClass('hidden'); $('.main').removeClass('hidden'); }); */ if(name.length > 2) { //name.length should be g...
/* @flow */ import { registerRootComponent, Asset, KeepAwake } from 'expo'; import * as React from 'react'; import { AsyncStorage, Platform, ScrollView, StatusBar, StyleSheet, Text, TouchableOpacity, View, YellowBox, } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import Scrolla...
let nock = require('nock'); module.exports.hash = "73a2c4fc997ae1e0a0357e5464a79f55"; module.exports.testInfo = {"uniqueName":{"container":"container159210828276003907","blob":"blob159210828277501390"},"newDate":{"now":"2020-06-14T04:18:02.760Z","tmr":"2020-06-14T04:18:02.760Z"}} nock('https://fakestorageaccount.blo...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRe...
import debounce from '../utils/debounce.js' import { height, offset } from '../utils/dom.js' import { getScrollTarget } from '../utils/scroll.js' import { listenOpts } from '../utils/event.js' function updateBinding (el, { value, oldValue }) { const ctx = el.__qscrollfire if (typeof value !== 'function') { ct...
webpackHotUpdate("app",{ /***/ "./src/scenes/index.ts": /*!*****************************!*\ !*** ./src/scenes/index.ts ***! \*****************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\nObject.defineProperty(exports, \"__esModule\", { ...
#!/usr/bin/python3 # Copyright (c) 2017-2021 Dell Inc. or its subsidiaries. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
#!/usr/bin/env python import sys from Bio.SeqUtils import molecular_weight from Bio.SeqUtils import MeltingTemp as mt print("python: " + sys.version, end="\n", file=sys.stderr) print(sys.argv[1], end="\n", file=sys.stderr) with open(sys.argv[1]) as file: for line in file: row = line.rstrip('\n').split("\...
import React, { Component } from "react"; import ReactApexChart from "react-apexcharts"; class ApexLine3 extends React.Component { constructor(props) { super(props); this.state = { series: [ { name: "Running", data: [20, 40, 20, 80, 40, 40, 20, 60, 60, 20, 110, 6...
var MongoClient = require('mongodb').MongoClient; var config = require('../config'); var Q = require('q'); //Uri is configured on app config var uri = config.mongoURI; /** * Defines database operations. * @class */ var DB = function(){ this.dbConnectDefer = Q.defer(); }; /** * Establishes MongoDB connection ...
var callbackArguments = []; var argument1 = null; var argument2 = 1.0349787899236097e+308; var argument3 = ""; var argument4 = function callback(a,b,c,d) { callbackArguments.push(JSON.stringify(arguments)) base_0[9] = {"25":213,"893":49,"":"IJ","2.4424343575449073e+307":"","@m9<":"F7","3.8626157741408814e+307":"...
import React, { useEffect, useState } from 'react' import PhonebookListItem from './components/PhonebookListItem' import capitalizeName from './modules/capitalizeNameInputs' import serverRequests from './modules/serverRequests' import './index.css' import ErrorMessage from './components/ErrorMessage' const App = () =>...
/* * Copyright 2019 Google LLC * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * https://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writin...
import gzip import itertools import multiprocessing import os import pickle import networkx as nx import pandas as pd from cdlib import NodeClustering, evaluation from legal_data_clustering.pipeline.cd_cluster import (add_weighted_clique, cluster) clustering_chu...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
/* * Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
import 'prismjs/themes/prism.css'; import '@styles/index.scss';
from .cache import * from .graph.model import * from .graph.transaction import * from .graph.interfaces import * from .__sqerzo__ import *
var assert = require('assert'); const client = require('../Data/Connection'); const CRUD = require('../Data/Queries/CRUD'); client.connect(); describe('Controller Functions',function(){ describe('Product Controller', function(){ it('should select without error',function (done){ const promise...
'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const { VueLoaderPlugin } = require('vue-loader') const vueLoaderConfig = require('./vue-loader.conf') function resolve(dir) { return path.join(__dirname, '..', dir) } const createLintingRule = () => ({ ...
const HDWalletProvider = require('truffle-hdwallet-provider'); const { providerMnemonic, providerEndpoint } = require('./config'); function provider() { if (!providerMnemonic) { throw new Error('Please setup PROVIDER_MNEMONIC env variable'); } return new HDWalletProvider( providerMnemonic, providerE...
# -*- coding:utf-8 -*- import unittest import os from sppas.src.utils.compare import sppasCompare from ..acm.hmm import sppasHMM, HMMInterpolation from ..acm.acmodelhtkio import sppasHtkIO # --------------------------------------------------------------------------- DATA = os.path.join(os.path.dirname(os.path.absp...
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config'); new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true }).listen(3000, '0.0.0.0', function (err, result) { if (err) { ...
import os import logging import hashlib class Hash: def __init__(self): # Set logger self.clog = logging.getLogger("CORE.HASH") # Set file path and hash value self.filePath = None self.fileHash = None def setFilePath(self, filePath): self.filePath = filePath self.fileHash = self.compu...
import React from 'react'; import { mount } from 'enzyme'; import Mention from '..'; const { toContentState } = Mention; describe('Mention', () => { beforeAll(() => { jest.useFakeTimers(); }); afterAll(() => { jest.useRealTimers(); }); it('should has focus function', () => { const handleFocus ...
# -*- coding:utf-8 -*- # Utils For NER # Author yanwii # Author Ma-Dan def format_result(result, text, tag): entities = [] for i in result: begin, end = i entities.append({ "begin":begin, "end":end + 1, "entity":text[begin:end+1], "type":tag...
import React from 'react' import THREE from 'three' import {Object3D, Mesh} from '../../js/react-threejs/src' export default class Shadows extends React.Component { render() { var component; if (this.props.object === 'cube') { component = <Mesh geometry={new THREE.CubeGeometry( 10, 10...
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from p...
function dumpArgs(i) { if (i == 90) return funapply.arguments.length; return [i]; } function funapply() { return dumpArgs.apply(undefined, arguments); } function test(i) { return funapply(i); } assertEq(test(89)[0], 89); assertEq(test(90), 1); function dumpArgs2(i,b) { if (i == 90) return funapply2.arguments.length; ...
import React from "react" import PropTypes from "prop-types" import { graphql } from "gatsby" import styled from "styled-components" import { MDXRenderer } from "gatsby-plugin-mdx" import GlobalStateProvider from "../context/provider" import ContentWrapper from "../styles/contentWrapper" import Layout from "../compone...
const router = require('express').Router(); const { Product, Category, Tag, ProductTag } = require('../../models'); // The `/api/products` endpoint // get all products router.get('/', async (req, res) => { // find all products // be sure to include its associated Category and Tag data const productData = await ...
/** * * InvitationForm * */ import React, { useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { useInjectSaga } from 'utils/injectSaga'; import { useInjectReducer } from 'u...
#! /usr/bin/env node import fs from 'fs' import os from 'os' import { execFileSync } from 'child_process' import { createComponent, generateIndex } from '../src/compiler/transpiler.js' import defaultConfig from '../src/compiler/config.js' // Read the version from package.json const packagePath = fs.existsSync('./node...
import {DraftBotBackup} from "./backup/DraftBotBackup"; import {Constants} from "./Constants"; import Entity from "./models/Entity"; import Player from "./models/Player"; import InventorySlot from "./models/InventorySlot"; import InventoryInfo from "./models/InventoryInfo"; import PetEntity from "./models/PetEntity"; i...
""" Django settings for hawkit project. Generated by 'django-admin startproject' using Django 1.10.2. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
import React from "react"; import { createStackNavigator } from "@react-navigation/stack"; import { NavigationContainer } from "@react-navigation/native"; const AppStack = createStackNavigator(); import Incidents from "./pages/Incidents"; import Detail from "./pages/Detail"; export default function Routes() { retu...
from scipy.stats import gaussian_kde import matplotlib.pyplot as plt import matplotlib matplotlib.rc('font', family='Arial') import pickle import numpy as np with open('flu_preds.pkl','rb') as f: antigen,predicted,Y = pickle.load(f) # with open('ebv_preds.pkl','rb') as f: # antigen,predicted,Y = pickle.load(f...
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import ast from copy import deepcopy as dcpy from functools import reduce import operator from typing import List, Optional, Set, Union import warnings import dace import dace.serialize from dace import subsets, dtypes, symbolic from dace.fron...
/* eslint-disable func-names, prefer-arrow-callback */ import { SimpleSchema } from './SimpleSchema'; import requiredSchema from './testHelpers/requiredSchema'; import testSchema from './testHelpers/testSchema'; import friendsSchema from './testHelpers/friendsSchema'; import expectValid from './testHelpers/expectValid...
/** * Created by Administrator on 2018/4/28. */ module.exports={ port:5005 }
from django import forms from django.forms import ModelForm from ssp.models.systems import system_security_plan, import_catalog from ssp.models.users import person from scripts.usefullFunctions import validate_file_extension class SystemSecurityPlan(ModelForm): class Meta: model = system_security_plan ...
'use strict'; // var express = require('express'); // var passport = require('passport'); // var config = require('../config/environment'); // var User = require('../api/user/user.model'); // // Passport Configuration // require('./local/passport').setup(User, config); // require('./facebook/passport').setup(User, co...
(function(){ var app = angular.module('tutapos', [ ]); app.controller("SearchItemCtrl", [ '$scope', '$http', function($scope, $http) { $scope.items = [ ]; $http.get('api/item').success(function(data) { $scope.items = data; }); $scope.receivingtemp = [ ]; $sco...
""" ============================ Instance selection with FRPS ============================ Sample usage of FRPS preprocessing, demonstrated in combination with (strict) FRNN classification. The figures contain the selected prototypes within a section of the feature space. The prototypes are coloured according to thei...
/* * Adapted from: https://github.com/chanzuckerberg/czi-prosemirror/blob/master/src/ui/ImageResizeBox.js * * MIT License * * Copyright (c) 2019 Chan Zuckerberg Initiative * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
import React from "react"; import ColorBlock from "./colorBlock"; import "./hero.scss"; const Hero = props => { const { image, title } = props; return ( <section className="hero-container"> <div className="hero-container-messages"> <h1 className="hero-container-messages__title">{title}</h1> ...
$('#btnSearch').click((e) => { e.preventDefault() let name = $('#name').val(); $.ajax({ url: `/employees/${name}`, type: 'GET', success: (response) => { console.log(response) //buildTable(response.employee); } }) }) const buildTable = (response) =...
""" Django settings for judge project. Generated by 'django-admin startproject' using Django 4.0. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ from pathlib imp...
'use strict' /*Globals*/ const productNames = ['bag', 'banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair', 'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors', 'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can', 'wine-glass'] const maxClicks = 26; let totalClicks = 1; const leftImage...