text stringlengths 3 1.05M |
|---|
import re
from collections import defaultdict
import pandas as pd
import yaml
from src.utils.decorators import timed
with open("config/config.yml", "r") as yml_file:
cfg = yaml.load(yml_file, Loader=yaml.FullLoader)
def train(rule, project_name):
rule_name, files_violating, files_not_violating = rule.value... |
var gazeData = [];
var onlyTime = [];
window.onload = function () {
//start the webgazer tracker
webgazer.setRegression('ridge') /* currently must set regression and tracker */
.setTracker('clmtrackr')
.setGazeListener(function (data, clock) {
// console.log(data); /* data is an o... |
"use strict";
function getCustomization(url, info, sessionID) {
return response_f.getBody(customization_f.getCustomization());
}
function getCustomizationStorage(url, info, sessionID) {
return json.read(customization_f.getPath(sessionID));
}
router.addStaticRoute("/client/customization", getCustomization);
r... |
import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import Layout from '../components/layout'
const BlogPage = () => {
//Câu truy vấn graphql
const data = useStaticQuery(graphql`
query {
allMarkdownRemark {
edges {
node {
... |
/**
* Copyright 2018 Google 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 applic... |
/*
* Ajax Popup plugin
*
* Options:
* - content: content HTML string or callback
*
* Data attributes:
* - data-control="popup" - enables the ajax popup plugin
* - data-ajax="popup-content.htm" - ajax content to load
* - data-handler="widget:pluginName" - October ajax request name
* - data-keyboard="false" - ... |
window.Polymer = {
lazyRegister: true,
dom: 'shadow'
};
(function () {
if ('registerElement' in document &&
'import' in document.createElement('link') &&
'content' in document.createElement('template')) {} else {
var e = document.createElement('script');
e.src = '/bower_compo... |
const express = require('express');
const mongoose = require('mongoose')
const db = require('./db').database;
const app = express();
mongoose.connect(db)
.then(() => {
console.log('Monbodb connected');
}).catch((err) => {
console.log('Unable to connect', err);
});
const port = process.env... |
import React, { Component } from "react";
export default class Shop extends Component {
render() {
return (
<div>
<h1>Shop with Wholesale Stuff Here</h1>
<p>
Should be connected with Facebook page elements through the Graph
</p>
</div>
);
}
}
|
"use strict";
//
// Bootstrap Toasts Demos
//
var KTBootstrapToastsDemo = function () {
//Private functions
// Demo 1
var demo1 = function () {
// Move element and append to body
$('#kt_toast_1').appendTo($('body'));
// Init toast
$('#kt_toast_1').t... |
'use strict'
const LoginComponent = ( 'login-component', {
data: function () {
return {
__route: '/vue/#/',
uiConfig: {
callbacks: {
signInSuccess: ( currentUser, credential, redirectUrl ) => {
this.$root.$store.dispatch ( 'registerUser', currentUser )
var loginWidget = document.getElemen... |
[node_routes]
WorkingBusy="res://addons/joyeux_npc_editor/src/NPCs/DefaultBehaviors/WorkingBusy.jbt"
WorkingBusy2="res://addons/joyeux_npc_editor/src/NPCs/DefaultBehaviors/WorkingBusy.jbt"
[config]
filtered_connections=[ {
"from": "WorkingBusy",
"from_port": 0,
"to": "WorkingBusy2",
"to_port": 0
} ]
[variables]
in... |
// dependencies
var env = require('node-env-file');
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
var Promise = require('bluebird');
var _ = require('lomath');
var portfinder = require('portfinder');
Promise.promisifyAll(portfinder)
var ngrok = require('requireg')('ngrok');
Promi... |
from docutils.parsers.rst import directives
from easyprocess import EasyProcess
from pyvirtualdisplay.smartdisplay import SmartDisplay, DisplayTimeoutError
from PIL import ImageFilter
import docutils.parsers.rst.directives.images
import logging
import os
import path
import tempfile
"""
sphinxcontrib.gtkwave
=... |
# -*- coding: utf-8 -*-
"""Plot distribution of datasets"""
import base64
from distutils.version import LooseVersion
import dask_profiling.base as base
import dask.array as da
import dask.dataframe as dd
import matplotlib
import numpy as np
# Fix #68, this call is not needed and brings side effects in some use cases
#... |
#!/usr/bin/env python3
#
# Copyright (c) 2019 Miklos Vajna and contributors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""The ranges module contains functionality related to the Ranges class."""
from typing import List
from typing import Optional
from typing... |
#!/usr/bin/env python
from __future__ import print_function
COPYRIGHT = """\
Copyright (C) 2011-2012 OpenStack LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/license... |
const Discord = require("discord.js");
const db = require("old-wio.db");
const { Owner_Name } = require("../../config");
const { support } = require("../../config.json");
module.exports = {
config: {
name: "vote",
aliases: ["vt"],
category: "utility",
description: "I will share vote link with you..Keep vote ... |
$(document).ready(function() {
$('#addNewCat').click(function (event) {
event.preventDefault();
$('#Add-catModel').modal();
});
//add category
$('#addCat').on('click', function (e) {
e.preventDefault();
var name = $('#name');
if(name.val() === ''){
alert('please fill the category name');
ret... |
'''
The purpose of this is so when the user places a piece, it goes into the middle of the square, not in the
exact location where the user places it.
'''
class convert_coordinates():
def to_number():
convert_coordinates = {'a1': (0,0), 'b1': (102.5,0), 'c1': (205,0), 'd1': (307.5,0), 'e1': (410,0),... |
import * as b from './b.js';
export default b;
|
import { shallowMount, createLocalVue } from '@vue/test-utils';
import Vuex from 'vuex';
import { GlAlert } from '@gitlab/ui';
import { TEST_HOST } from 'spec/test_constants';
import Form from '~/feature_flags/components/form.vue';
import createStore from '~/feature_flags/store/new';
import NewFeatureFlag from '~/featu... |
const gold = {
name: 'Gold-11-16',
roll: '1d100',
rows: [
{
start: 1,
end: 20,
result: [{
type: 'roll',
rule: '4d6x100',
item: { resultType: 'money', name: 'PP' },
}, {
type: 'roll',
rule: '1d6x100',
item: { resultType: 'money', name: 'P... |
module.exports =
{
locale: 'mk',
long: require('./long.json'),
short: require('./short.json'),
narrow: require('./narrow.json'),
quantify: require('./quantify')
} |
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { Layout, Icon, message } from 'antd';
import DocumentTitle from 'react-document-title';
import { connect } from 'dva';
import { Route, Redirect, Switch, routerRedux } from 'dva/router';
import { ContainerQuery } from 'react-container-q... |
const fs = require('fs');
const zlib = require('zlib');
const readStream = fs.createReadStream('./views/cats.html', {encoding: 'utf8'});
const writeStream = fs.createWriteStream('./write.txt');
const gzip = zlib.createGzip();
// readStream.on('data', (data) => {
// console.log('new chunk');
// writeStream.wri... |
import { Link, routes } from '@redwoodjs/router'
import './blogPostStyles.scss'
import classNames from 'classnames'
const BlogPost = ({ post, singlePost }) => {
const postClasses = classNames({
'kc-post': true,
'post-grid': !singlePost,
'single-post': singlePost,
})
const contentContainerClasses = c... |
exports.onCreateNode = ({ node }) => {
} |
/*!
* Ajax Bootstrap Select
*
* Extends existing [Bootstrap Select] implementations by adding the ability to search via AJAX requests as you type. Originally for CROSCON.
*
* @version 1.4.1
* @author Adam Heim - https://github.com/truckingsim
* @link https://github.com/truckingsim/Ajax-Bootstrap-Select
* @copyr... |
import React, { Component } from 'react';
const VideoDetail = ({video}) =>{
if(!video){
return <div>Loading...</div>
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-respon... |
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains t... |
(function() {
var MultiSelect = kendo.ui.MultiSelect,
select;
function popuplateSelect(length) {
var options = [];
length = length || 5;
for (var i=0; i < length; i++) {
options.push("<option value='" + i + "'>Option" + i + "</option>");
}
select.htm... |
!function(modules){function webpackJsonpCallback(data){for(var moduleId,chunkId,chunkIds=data[0],moreModules=data[1],executeModules=data[2],i=0,resolves=[];i<chunkIds.length;i++)chunkId=chunkIds[i],Object.prototype.hasOwnProperty.call(installedChunks,chunkId)&&installedChunks[chunkId]&&resolves.push(installedChunks[chu... |
//! moment.js locale configuration
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(that, ... |
import numpy as np
class NeuralNetwork(object):
def __init__(self, input_nodes, hidden_nodes, output_nodes, learning_rate):
# Set number of nodes in input, hidden and output layers.
self.input_nodes = input_nodes
self.hidden_nodes = hidden_nodes
self.output_nodes = output_nodes
... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f284ed28"],{"8ecb":function(t,e,n){(function(e,o){t.exports=o(n("f2eb"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.... |
/**
* isMobile
* responsiveMenu
* headerFixed
* ajaxContactForm
* alertBox
* blog_slider
* detectViewport
* flatIconboxCarousel
* blogCarousel
* flatClient
* flatTeam
* googleMap
* testimonialSlide
* flatTestimonials_1
* portfolioIsotope
* onepage_nav
* flatClient
* flatAccordion
*... |
import React from "react";
import star from "../images/star.svg";
import starPNG from "../images/star.png";
import { utils } from "../utils";
export const StarsDisplay = props => (
<div className="stars-container">
{utils.range(1, props.count).map(startId => (
<div key={startId} className="star">
<... |
from unittest.mock import patch
import numpy as np
from lambeq import QuantumModel
@patch.multiple(QuantumModel, __abstractmethods__=set())
def test_normalise():
model = QuantumModel()
inputs = np.linspace(-10,10,21)
normalised = model._normalise_vector(inputs)
assert abs(normalised.sum()-1.0)<1e-8
... |
/**
* @class Application_WidgetWindowdialog
*
* Insert index and anchor to element
* <div class="x-lprjwdg-windowdialog" id="winDialog1">
* <span class="x-lprjelm x-lprjvar-wintitle">Dialog Title Here</span>
* <p>This is the default dialog which is useful for displaying information. The dialog window can be move... |
/* @flow */
import React, { useCallback } from "react";
import { StyleSheet, Linking } from "react-native";
import SafeAreaView from "react-native-safe-area-view";
import { TrackScreen } from "../../../analytics";
import colors from "../../../colors";
import ValidateError from "../../../components/ValidateError";
impor... |
'use strict';
const path = require('path');
const fs = require('fs');
const convertSourceMap = require('convert-source-map');
const cachingTransform = require('caching-transform');
const packageHash = require('package-hash');
const stripBomBuf = require('strip-bom-buf');
const autoBind = require('auto-bind');
const md5... |
//// [/src/first/bin/first-output.d.ts]
interface TheFirst {
none: any;
}
declare const s = "Hola, world";
interface NoJsForHereEither {
none: any;
}
declare function f(): string;
//# sourceMappingURL=first-output.d.ts.map
//// [/src/first/bin/first-output.d.ts.map]
{"version":3,"file":"first-outpu... |
export const buildData = queenData => {
const data = {};
data.COLLECTED = queenData.COLLECTED.reduce((collectedObj, { name, type, ...content }) => {
const newCollected = collectedObj;
newCollected[name] = { ...content };
return newCollected;
}, {});
data.EXTERNAL = queenData.EXTERNAL.reduce((externa... |
"""
@file
@brief Helpers for module :epkg:`*py:os`.
"""
import os
def get_machine():
"""
Returns the machine name.
@return machine name
The method assumes environment variable ``COMPUTERNAME``,
``HOSTNAME`` or ``NAME`` is available.
Otherwise, you should use module ``platform``.
"""
... |
/*!
* vue-image-painter v0.1.3
* Copyright (c) 2018-present, momoko <ko.momo@qq.com>
* Released under the MIT License.
*/
'use strict';
var name = "vue-image-painter";
var version = "0.1.3";
var description = "Image draw animation effect plugin for Vue 2.x | 图像动态绘制效果";
var author = "momoko <ko.momo@qq.com>";
var ... |
(function(){function W(d,b,c){var a;b=b.toLowerCase();return(a=d.__allListeners||c&&(d.__allListeners={}))&&(a[b]||c&&(a[b]=[]))}function X(d,b,c,a,e,h){a=a&&d[b];var g;for(!a&&(a=d[c]);!a&&(g=(g||d).parentNode);){if("BODY"==g.tagName||h&&!h(g))return null;a=g[c]}return a&&e&&!e(a)?X(a,b,c,!1,e):a}UEDITOR_CONFIG=window... |
"""
:synopsis: Interface classes to Redis components, such as, e.g., ordered lists.
"""
from datetime import datetime
from webrecorder.utils import get_bool, get_new_id
# ============================================================================
class DupeNameException(Exception):
"""Raised when field name alre... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _class,_temp2,_createClass=function(){function n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,o){return t&&n(e.prototy... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
# -*- coding: utf-8 -*-
"""
werkzeug.debug.tbtools
~~~~~~~~~~~~~~~~~~~~~~
This module provides various traceback related utility functions.
:copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD.
"""
import re
import os
import sys
import json
import ... |
import styled from 'styled-components';
export const Wrapper = styled.div`
background: linear-gradient(
to bottom, rgba(0, 0, 0, 0)
41%, rgba(0, 0, 0, 0.65)
100%
),
url(${({ image }) => image }), var(--darkGrey);
background-size: 100%, cover;
background-position: center;
height: 600px;
posit... |
import React from "react";
import { Footer, Header, About } from "./containers";
import { Navbar, Resources, Features } from "./components";
import { Routes, Route } from "react-router-dom";
import "./App.css";
function App() {
return (
<div className="App">
<div className="gradient__bg">
<Navbar /... |
/* eslint-disable */
var icon = require('vue-svgicon')
icon.register({
'action/cross-circle': {
width: 32,
height: 32,
viewBox: '0 0 32 32',
data: '<path pid="0" d="M16 5.333c-5.878 0-10.667 4.79-10.667 10.667S10.123 26.667 16 26.667c5.878 0 10.667-4.79 10.667-10.667S21.877 5.333 16 5.333zm6.731 15.89... |
'use strict';
const express = require('express');
const router = express.Router(); // eslint-disable-line new-cap
router.get('/storeitems/keys', require('./getStoreItemKeysRoute'));
router.get('/storeitems/:key', require('./getStoreItemsRoute'));
router.get('/storeitems/:key/value', require('./getStoreItemsValueRoute... |
globo='I am in global'
print(globo)
def a():
print('a() starts')
b()
d()
print('a() returns')
def b():
print('b() starts')
c()
print('b() returns')
def c():
print('c() starts')
print('c() returns')
def d():
print('d() starts')
global globo
globo='... |
"use strict";
/**
* adapted (with minor changes) from:
* https://stackoverflow.com/a/47880734/4278324
*
* @return {boolean} TRUE if WebAssembly is supported & can be used
*/
var isWebAssemblySupported=function(){
try{
if(typeof WebAssembly === "object" && typeof WebAssembly.instantiate === "function"){
c... |
const { resolve } = require('path');
const config = require('../../common/webpack.config');
module.exports = {
arguments: ['--output', './dist/.output/bundle.js'],
config: Object.assign({}, config, {
entry: resolve(__dirname, './output-entry.js'),
}),
group: 'output',
};
|
'use strict';
module.exports = ctx => ctx.fs.readFile('package.json').then(pkg => {
if (!pkg.main) {
return;
}
const fileName = ctx.files.find(file => file.toLowerCase().indexOf(pkg.main) === 0);
if (!fileName) {
ctx.report({
message: `Main file '${pkg.main}' does not exist.`,
file: ctx.fs.resolve('pack... |
n=int(input("Enter the size of matrix:"))
t=1
r=0 # r stands for row
c=0 # c stands for column
matrix=[[0 for x in range(n)]for y in range(n)] # to initialise the matrix
if n%2==0:
k=n//2
else:
k=int((n/2)+1)
for i in range(k):
while c<n:
matrix[r][c]=t
t=t+1
c=c+1
r=r+1
c=c-1
while r<n:
matrix[r][c]=t
... |
// @flow
export { default as connect } from './connect';
|
import React from "react";
import Link from "next/link";
import PropTypes from "prop-types";
import {
Header,
Container,
Menu,
Segment,
Button,
Input
} from "semantic-ui-react";
const Navbar = ({ search }) => (
<Segment
textAlign="center"
style={{
minHeight: 150,
backgroundColor: "cad... |
# André Roche - Collatz Conjecture in Python. Wiki it on the Net
n = int(input("Please enter an interger:"))
i = 0
while n > 1: # as long as n is greater than 1
print (n)
if n % 2 == 0:
n = (n/2)
print (n)
else:
n = (n*3 + 1)
print (n)
i += 1
... |
import {CarouselEvents} from './carousel-events';
import {getDetail} from '#utils/event-helper';
/**
* @typedef {{
* stop: function(),
* }}
*/
let StoppableDef;
/**
* Accessibility for the carousel. This behaves either as a list or by
* exposing a single item at a time using `aria-hidden`.
*/
export class Ca... |
console.log('leListeStr main01 start json de data maDataBlocs');
var maDataBlocs = {
"data00" : {
"fic1" : "./qc/apps/dgst.c.html"
, "texte" : "File apps/dgst.c 143 rule violations "
, "fic2" : "./qc/apps/dgst.c.xml"
, "fic3" : ""
}
,
"data01" : [
]
,
"data02" : [
]
,
"data03" : [
]
, ... |
/*******************************************************************************
* Copyright 2017 Adobe Systems Incorporated
*
* 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
*
* htt... |
"""Config flow for Goal Zero Yeti integration."""
from __future__ import annotations
import logging
from typing import Any
from goalzero import Yeti, exceptions
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.dhcp import IP_ADDRESS, MAC_ADDRESS
from homeassistant.const... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-27 09:33
from __future__ import unicode_literals
from django.db import migrations
def set_null_program_fk_to_default(apps, schema_editor):
Program = apps.get_model('main', 'Program')
Project = apps.get_model('main', 'Project')
program = Pro... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
import store from './store';
import { Provider } from 'react-redux';
ReactDOM.render(
<Provider store={store}>
<App/>
</Provider>,
document.querySelector('#app')
); |
import React from "react"
import {Link, graphql} from "gatsby"
import styled from "styled-components"
import {
HeaderLogo,
HeadingXL,
HeadingL,
Layout,
SEO,
TextBody,
TextDate,
} from "../components"
import {BREAKPOINT} from "../utils/constants"
import JAIcon from "../assets/icons/JAIconNarrow.png"
expor... |
from nhanes.load import load_NHANES_data, load_NHANES_metadata
def test_load_data():
df = load_NHANES_data(year='2017-2018')
assert df.shape[0] == 8366
assert df.shape[1] == 197
def test_load_metadata():
df = load_NHANES_metadata(year='2017-2018')
assert df.shape[0] == 197
assert df.shape[1]... |
import Account from "./Account";
import {hashPersonalMessage,sha3} from "ethereumjs-util"
import Transaction from "../../common/Loopring/ethereum/transaction";
import * as fm from "../../common/Loopring/common/formatter";
import {getOrderHash} from "Loopring/relay/order";
export default class MetaMaskUnlockAccount ext... |
export default ['templateUrl', '$compile', 'Wait', '$filter', 'i18n',
function(templateUrl, $compile, Wait, $filter, i18n) {
return {
restrict: 'E',
replace: false,
scope: {
inventory: '='
},
controller: 'SourceSummaryPopoverControl... |
function leaveRoom(route, args) {
if (args.length === 0) {
if (route.room) {
route.send('Ok, bye!')
.then(function () {
route.connector.leaveRoom(route.room);
});
} else {
route.send('We\'re talking privately, YOU leave!');
... |
import React from 'react';
const Signin = React.lazy(() => import('./Demo/Authentication/SignIn/SignIn'));
const route = [
{ path: '/auth/signin', exact: true, name: 'Signin', component: Signin }
];
export default route;
|
const express = require("express");
const dataRoute = express.Router();
const Data = require("../database/models/Data");
dataRoute.get("/get:procedure", (req, res, next) => {
Data.find(req.params.procedure, (err, data) => {
if (err) {
return next(err);
}
res.json(data);
});
});
module.exports = ... |
/* eslint-disable no-use-before-define */
/* eslint-disable camelcase */
/* eslint-disable no-plusplus */
/* eslint-disable no-mixed-operators */
import {
handleError
} from '../utils/errorHandler';
const locationRegex = /^([-+]?\d{1,2}([.]\d+)?),\s*([-+]?\d{1,3}([.]\d+)?)$/;
const validIdRegex = /^[1-9]{1,}/;
/**
... |
import nextTick from './nextTick';
import { enqueueRender } from './enqueueRender';
const propsMap = {
// tagId -> props
};
const componentIntances = {};
const updateChildPropsCallbacks = {};
export function setComponentInstance(instanceId, instance) {
componentIntances[instanceId] = instance;
// Check compone... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
使用模板
'''
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def home():
return render_template('home.html')
@app.route('/signin', methods=['GET'])
def signin_form():
return render_template('form.ht... |
import React, { Component } from 'react';
import Link from 'next/link'
import { Transition } from 'react-transition-group';
import { disableBodyScroll, enableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock';
import CartItem from '../cart/CartItem';
import { connect } from 'react-redux';
// Cart redux actio... |
let origin = location.origin;
let URLWord = 'https://localhost:8080';
// let URLWord = '';
let ejecution = false;
const avanzar = 'forward';
const retroceder = 'backward';
const giro_derecha = 'turn-right';
const giro_izquierda = 'turn-left';
var params = new URLSearchParams(location.search);
// const moves = J... |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "FoodTracker.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. ... |
(function( $ ) {
$.widget("metro.stepper", {
version: "1.0.0",
options: {
steps: 3,
start: 1,
clickable: true,
onStep: function(index, step){},
onStepClick: function(index, step){}
},
_create: function(){
var ... |
export const CURRENT_VERSION = 2;
export const LEGACY_TO_INTERNAL_IDS = {
F50: '1',
F46: '2',
F48: '3',
F5: '4',
F49: '5',
F1: '6',
F47: '7',
F23: '8',
F13: '9',
F29: '10',
F22: '11',
F44: '12',
F51: '13',
F41: '14',
F45: '15',
F40: '16',
F3: '17',
... |
/**
* Dog Coats
*/
export const DOG_COAT = [
{
disabled: true,
text: 'Select coat type',
value: ''
},
{
text: 'Short',
value: 'short'
},
{
text: 'Long',
value: 'long'
},
{
text: 'Wire',
value: 'wire'
},
{
text: 'Smooth',
value: 'smooth'
},
{
text: ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("@styled-icons/feather/Link"), exports);
|
#!/usr/bin/env node
// Run with npm run demo
const gradient = require('..');
const {log} = console;
const str = ' Lorem ipsum dolor sit amet, consectetur adipiscing elit';
const title = Buffer.from('DQogICAgICAgICAgICAgICAgICAgICAgXyBfICAgICAgICAgICAgXyAgICAgICAgICAgIF8gICAgICAgIF8gICAgICAgICAgICAgDQogICBfXyBfIF8g... |
"Manages data input pipeline - folderstransformbatch input. Includes support for classification, segmentation and bounding boxes"
from ..torch_core import *
from .image import *
from .transform import *
from ..data_block import *
from ..basic_data import *
from ..layers import *
from .learner import *
from concurrent.f... |
export * from 'https://unpkg.com/lit-html@^0.14.0/lit-html.js'; |
/*!
Autosize 1.18.17
license: MIT
http://www.jacklmoore.com/autosize
*/
!function(e){var t,o={className:"autosizejs",id:"autosizejs",append:"\n",callback:!1,resizeDelay:10,placeholder:!0},i='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-... |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from gaecookie.decorator import no_csrf
from config.template_middleware import TemplateResponse
from datetime import datetime
from tekton import router
from gaepermission.decorator import login_required
@login_required
@no_csrf
def index... |
webpackHotUpdate("static/development/pages/index.js",{
/***/ "./pages/index.js":
/*!************************!*\
!*** ./pages/index.js ***!
\************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_e... |
/** @format */
// flow-typed signature: eee7410018bcba0667d735c81c299661
// flow-typed version: <<STUB>>/postcss-preset-env_v6.7.0/flow_v0.133.0
/**
* This is an autogenerated libdef stub for:
*
* 'postcss-preset-env'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage ... |
const { Model, DataTypes } = require( "sequelize" );
const sequelize = require( "../config/connection" );
class Comment extends Model {}
Comment.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
... |
(function(){"use strict";function e(e){e[s]||(e[s]=0===u.length?++c:u.pop());var t=e[s];return l[t]||(l[t]=[])}function t(e){var t=e[s];l[t]&&(l[t]=null,e[s]=null,u.push(t))}function n(t,n,r,o){"function"==typeof r&&(o=r,r=null);var s=a.exec(n);n=s[1]||null;var c=s[2]||null;if(n){var l=o,u=o;l=r?function(e){for(var n=e... |
System.register(['domLogger'], function(exports_1) {
'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.... |
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Sun Ning<classicning@gmail.com>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights t... |
import urllib.request
import json
def characters_get():
""" Gets character list from the rickandmorty API """
url = 'https://rickandmortyapi.com/api/character/'
resp = urllib.request.urlopen(url)
data = json.loads(resp.read().decode())
#print(data)
return data
def characters_save(data, file_... |
/*
* Translated default messages for the jQuery validation plugin.
* Locale: FR
*/
jQuery.extend(jQuery.validator.messages, {
required: "Ce champ est requis.",
remote: "Veuillez remplir ce champ pour continuer.",
email: "Veuillez entrer une adresse email valide.",
url: "Veuillez entrer une URL valide.",
da... |