text stringlengths 3 1.05M |
|---|
(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{173:function(t,a,e){"use strict";e.r(a);var s=e(0),i=Object(s.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"content"},[e("h1",{attrs:{id:"jsx"}},[e("a"... |
"use strict";angular.module("ngLocale",[],["$provide",function(a){var b={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};a.value("$locale",{DATETIME_FORMATS:{AMPMS:["дп","пп"],DAY:["Неділя","Понеділок","Вівторок","Середа","Четвер","Пʼятниця","Субота"],MONTH:["січня","лютого","березня","квітня","тра... |
var breadcrumbs=[['-1',"",""],['2',"MauroClasses Reference","frlrfmauroclasses_referenceCustomTopic.html"],['205',"MauroDataModeller.MauroTemplates Namespace","frlrfMauroDataModellerMauroTemplates.html"],['234',"FreemarkerAction Class","frlrfMauroDataModellerMauroTemplatesFreemarkerActionClassTopic.html"],['235',"Prope... |
import logging
def test_which(caplog):
caplog.set_level(logging.INFO)
caplog.set_level(logging.DEBUG, logger="cryptoadvance.specter")
import cryptoadvance.specter.util.shell as helpers
try:
helpers.which("some_non_existing_binary")
assert False, "Should raise an Exception"
except:... |
module.exports = function(RED) {
var ui = require('../ui')(RED);
function TextNode(config) {
RED.nodes.createNode(this, config);
var node = this;
var group = RED.nodes.getNode(config.group);
if (!group) { return; }
var tab = RED.nodes.getNode(group.config.tab);
... |
const stubPlugin = (builder) => {
return {
version: "0.1.0",
};
};
stubPlugin.MILES_PLUGIN_API = 1;
module.exports = stubPlugin;
|
import React, { PureComponent } from "react";
import styled from "styled-components";
export default class Own extends PureComponent {
render() {
return null;
}
}
|
import { __assign, __extends, __rest, __spreadArrays } from "tslib";
import * as React from 'react';
import { ContextualMenuItemType, } from './ContextualMenu.types';
import { DirectionalHint } from '../../common/DirectionalHint';
import { FocusZone, FocusZoneDirection, FocusZoneTabbableElements } from '../../FocusZone... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","tr",{title:"Erişilebilirlik Talimatları",contents:"Yardım içeriği. Bu pencereyi kapatmak için ESC tuşuna basın.",lege... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.testTpl = void 0;
exports.testTpl = "\nimport React from 'react';\nimport { shallow } from 'enzyme';\nimport { <%= name %> } from './<%= name %>';\n\n\ndescribe('<%= name %>', () => {\n it.skip('should render', () => {\n\n });\n});\n... |
/**
* Run a series of representative feature tests to see if the browser is new
* enough to support Hypothesis.
*
* We use feature tests to try to avoid false negatives, accepting some risk of
* false positives due to the host page having loaded polyfills for APIs in order
* to support older browsers.
*
* @retu... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*----------------------------------------------------------------------... |
// @flow
/* eslint-disable no-for-in */
/* eslint-disable no-params-reassign */
/* eslint-disable new-cap */
import invariant from "invariant";
import { log } from "@ledgerhq/logs";
import { NotEnoughBalance } from "@ledgerhq/errors";
import { deserializeError, serializeError } from "@ledgerhq/errors";
import { reflec... |
class Solution:
def isHappy(self, n):
"""
:type n: int
:rtype: bool
"""
happy = n
temp = [int(i) for i in str(n)]
temp = sum(i*i for i in temp)
if (happy == 7 or temp == 7): #since the only happy single digit number is 7
return Tru... |
import React, { useState } from 'react'
import ColorPicker from 'package'
import 'package/dist/index.css'
const App = () => {
const [color, setColor] = useState('#000');
return <div className="container" style={{ background: color }}>
<div className="box">
<h1>Color picker</h1>
<ColorPicker setCol... |
new Vue({
el: '#app',
data: {
lists: [ ],
newKeep: ''
},
methods: {
addKeep: function() {
this.lists.push({ keep: this.newKeep, completed: false});
this.newKeep = '';
}
}
}); |
import pandas as pd
from datetime import date, timedelta
filepath = "people.xlsx"
# 读出工作簿名为Sheet1的工作表
people = pd.read_excel(filepath, sheet_name="Sheet1")
print(people)
print("=====1=====")
# header = 2 表示从第3行开始 相当于跳过了第2行
people1 = pd.read_excel(filepath, header=2, sheet_name="Sheet1")
print(people1)
print("=====2=... |
var ElementType = require("./ElementType.js");
function Parser(cbs, options){
this._options = options || defaultOpts;
this._cbs = cbs || defaultCbs;
this._buffer = "";
this._tagSep = ">";
this._stack = [];
this._wroteSpecial = false;
this._contentFlags = 0;
this._done = false;
this._running = true; //false if... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['sr']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Претражи сервер","url... |
const source = "https://github.com/ladybug-tools/spider-2020/tree/master/spider-gbxml-viewer";
const version = "v-2020-09-04";
const description = `
Online interactive <a href="https://www.gbxml.org" target="_blank">gbXML</a> in 3D viewer in your browser
designed to be forked, hacked and remixed using the WebGL and ... |
'use strict';
var Reflux = require('reflux');
var OptionsWindowActions = Reflux.createActions([
'optionsWindowShow',
'optionsWindowHide'
]);
module.exports = OptionsWindowActions;
|
def lc(s):
ret = ""
for i in range(0, len(s), 2):
ret += s[i] * int(s[i+1])
return ret
|
import numpy as np
from rastervision2.core.data.raster_transformer.raster_transformer \
import RasterTransformer
class StatsTransformer(RasterTransformer):
"""Transforms non-uint8 to uint8 values using raster_stats.
"""
def __init__(self, raster_stats=None):
"""Construct a new StatsTransform... |
const antlr4 = require('antlr4');
class ExprErrorListener extends antlr4.error.ErrorListener {
syntaxError(recognizer, offendingSymbol, line, column, msg, err) {
throw new Error(`line ${line}:${column} ${msg}`);
}
}
module.exports = ExprErrorListener;
|
YUI.add("lang/datatype-date-format_es-CO",function(e){e.Intl.add("datatype-date-format","es-CO",{a:["dom","lun","mar","mié","jue","vie","sáb"],A:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],b:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],B:["enero","febrero","marzo","... |
/*
| Copyright 2018 Esri. All Rights Reserved.
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law... |
from django.contrib.admin.views.decorators import staff_member_required
from django.conf import settings
from django.shortcuts import render
from ...order.models import Order
from ...product.models import Product
from ...search.views import paginate_results
from ...userprofile.models import User
from .forms import Das... |
import FindOpprtunities from "./findOpportunity";
export default FindOpprtunities; |
/*!
* sweetalert2 v8.0.7
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Sweetalert2 = factory());
}(this, (function () { 'use strict';... |
import * as React from 'react';
import PropTypes from 'prop-types';
import { Text, View } from 'react-native';
import { gStyle } from '../constants';
// components
import Cast from '../components/Cast';
import HeaderHome from '../components/HeaderHome';
const TvShows = ({ navigation }) => (
<View style={gStyle.cont... |
//Estonian , Eesti
RTE_DefaultConfig.text_language = "keel"; //"Language"
RTE_DefaultConfig.text_ok = "OK"; //"OK"
RTE_DefaultConfig.text_cancel = "loobu"; //"Cancel"
RTE_DefaultConfig.text_normal = "normaalne"; //"Normal"
RTE_DefaultConfig.text_h1 = "1. pealkiri"; //"Headline 1"
RTE_DefaultConfig.text_h2 = "2. pealki... |
import { CdkAccordionItem, CdkAccordion, CdkAccordionModule } from '@angular/cdk/accordion';
import { TemplatePortal, PortalModule } from '@angular/cdk/portal';
import { DOCUMENT, CommonModule } from '@angular/common';
import { InjectionToken, Directive, TemplateRef, EventEmitter, Component, ViewEncapsulation, ChangeDe... |
const router = require('express').Router();
let FinishedBook = require('../model/finishedBook.model');
router.route('/').get((req, res) => {
FinishedBook.find()
.then(FinishedBooks => res.json(FinishedBooks))
.catch(err => res.status(400).json('Error: ' + err));
});
router.route('/add').post((req,... |
## This script contains list of phrases that we used for the
# Gender consistency metric on Bios data
phrases0 = [' graduated from medical school in 2018',
' has conducted over a thousand surgeries',
' graduated from nursing school in 2018',
' graduated from law school with honors',
... |
# Copyright (c) 2011 OpenStack Foundation
# 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 ... |
import Svg from "./svg.js";
import GrowthPlot from "./growth-plot.js";
import PerformanceLog from "./performance-log.js";
import performanceLog from "./performance-log.js";
import {QuadrantPlot, DataPoint} from "./quadrant-plot.js";
import {raiseEvent} from "./shared.js";
class Dashboard {
constructor() {
... |
/* eslint-disable */
const CACHE_NAME = `lsp-prefetch`;
self.addEventListener("install", event => {
// console.log(event)
const manifest = new URL(location).searchParams.get("manifestPath");
event.waitUntil(
caches.open(CACHE_NAME).then(cache => {
fetch(manifest).then(response =>
respo... |
import { shallow, mount } from 'enzyme/build';
import React from 'react';
import { ResultsTable } from '../ResultsTable';
import { Settings } from 'luxon';
import { loan as loanApi } from '../../../api';
import { Button } from 'semantic-ui-react';
Settings.defaultZoneName = 'utc';
const d = '2018-01-01';
describe('R... |
import React from 'react';
import { Field } from 'redux-form';
import { Trans } from 'react-i18next';
import PropTypes from 'prop-types';
import DropdownList from 'react-widgets/lib/DropdownList';
import i18n from '../../i18n';
const renderSelectBox = ({ input, data, dataValue, valueField, textField, placeholder,
is... |
import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
import classNames from 'classnames';
import MovementOptions from './MovementOptions.js';
import '../styles/Movement.css';
export default class Movement extends Component {
constructor(props) {
super(props);
this.state = {
... |
import { take, takeEvery, call, put } from 'redux-saga/effects';
import { getList, getOne, create, update } from 'utils/httpClient';
import { LOCATION_CHANGE } from 'connected-react-router';
import {
REQUEST_SEND,
REQUEST_GET_ONE,
REQUEST_GET_LIST,
REQUEST_CREATE,
REQUEST_REMOVE,
REQUEST_UPDATE,
} from './... |
// This file was generated by Mendix Studio Pro.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time... |
$(document).ready(function() {
const TERMINAL = document.getElementById('terminal');
const INPUT = $('#terminal-input input');
const INPUT_CHAR = $('#terminal-input span');
const CONTENT = $('#terminal-content');
let currDir = '~/dev/rphl.io';
let dirTree = [
'~',
'~/dev',
'~/dev/rphl.io'
]
... |
var dir_730e69c99cc0be2fc7df32d8e51776eb =
[
[ "dimops.hh", "__internals_2dimops_8hh_source.html", null ],
[ "linalgutils.hh", "linalgutils_8hh_source.html", null ],
[ "omp.hh", "omp_8hh_source.html", null ],
[ "platform.h", "platform_8h_source.html", null ],
[ "print.hh", "print_8hh_source.html", n... |
# ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __futu... |
/**
* Copyright 2016, Google, 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 i... |
define(['marionette', 'views/table', 'collections/containers', 'views/filter', 'utils/table', 'utils'], function(Marionette, TableView, Shipments, FilterView, table, utils) {
var DisposeCell = Backgrid.Cell.extend({
events: {
'click a.dispose': 'disposeContainer',
},
initia... |
webpackJsonp([32],{"+72Q":function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));ret... |
const core = require('@actions/core');
const github = require('@actions/github');
const parseConfig = require('./parseConfig');
const validatePrTitle = require('./validatePrTitle');
module.exports = async function run() {
try {
const client = github.getOctokit(process.env.GITHUB_TOKEN);
const {
types,
... |
import Vue from 'vue'
// Custom AdSense Ad Component
const adsbygoogle = {
render (h) {
return h(
'ins',
{
'class': ['adsbygoogle'],
style: this.adStyle,
attrs: {
'data-ad-client': this.adClient,
'data-ad-slot': this.adSlot || null,
'data-ad-forma... |
"use strict";
const fs = require("fs");
const path = require("path");
const inquirer = require("inquirer");
const Gauge = require("gauge");
const progress = require("request-progress");
const chalk = require("chalk");
const URI = require("urijs");
const Promise = require("bluebird");
const hanson = require("hanson");
... |
class Section3 extends HTMLElement {
constructor() {
super();
document.addEventListener("mousemove", parallax);
function parallax(e){
document.querySelectorAll(".object").forEach(function(move){
var moving_value = move.getAttribute("data-value");
var x = (e.... |
(function( window, undefined ) {
kendo.cultures["zgh-Tfng-MA"] = {
name: "zgh-Tfng-MA",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3],
percent: {
pattern: ["-n %","n %"],
... |
var bookshelf = require('../config/bookshelf');
var Tx = bookshelf.Model.extend({
tableName: 'transactions',
hasTimestamps: true,
});
module.exports = Tx;
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt... |
var path = require("path");
var join = path.join;
var basename = path.basename;
var fs = require("fs");
var vfs = require("vinyl-fs");
var renameSync = fs.renameSync;
var existsSync = fs.existsSync;
var chalk = require("chalk");
var through = require("through2");
var emptyDir = require("empty-dir");
var info = require(... |
import sys
from os import listdir
from os.path import isdir, isfile, join
import math
import pandas as pd
import seaborn as sns
from mpl_toolkits.mplot3d import Axes3D
import matplotlib as mpl
import matplotlib.pyplot as plt
from scipy import stats
import argparse
import homoglyphs as hg
import statsmodels.api as sm
im... |
var callbackArguments = [];
var argument1 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
base_0[9] = "C"
return a*b*c
};
var argument2 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
argument3[1.3599216339661573e+308] = false
base_1[8] = {"126":"","... |
'''
Gastrodon module header
'''
import re
from abc import ABCMeta, abstractmethod
from collections import OrderedDict, Counter
from collections import deque
from functools import lru_cache
from sys import stdout,_getframe
from types import FunctionType,LambdaType,GeneratorType,CoroutineType,FrameType,CodeType,MethodTy... |
define([
'jquery',
'underscore',
'backbone', 'basic',
'mvc/admin/models/datasource'
], function($, _, Backbone,basic,datasource) {
var datasources = Backbone.Collection.extend({
model: datasource,
url: "/eventshoplinux/webresources/adminservice/datasources",
parse: function(response){
//console.log("CO... |
// flow-typed signature: e7d0a1dc835756b02ee31281540304e0
// flow-typed version: <<STUB>>/less_v^3.0.1/flow_v0.66.0
/**
* This is an autogenerated libdef stub for:
*
* 'less'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community... |
# -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationE... |
const os = require("os");
const path = require("path");
const { Server, BrowserInstance } = require("../../dist/server/Rhubarb");
const chromePath = path.join
(__dirname, "../../browser/ungoogled-chromium-windows/chrome");
const server = new Server({});
server.on("ready", () => {
const inst = new BrowserInst... |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import logging
import pprint
import requests
import werkzeug
from odoo import http
from odoo.http import request
_logger = logging.getLogger(__name__)
class AlipayController(http.Controller):
_notify_url = '/paym... |
/*
* Copyright 2012 The Closure Compiler Authors.
*
* 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... |
import{r as t,c as i,h as e,g as a}from"./p-6b8b45ed.js";import{g as s}from"./p-a4e6e35b.js";import{f as n,c as o}from"./p-f1686cee.js";import{h as c}from"./p-18a62b5e.js";const r=class{constructor(e){t(this,e),this.calciteCheckboxChange=i(this,"calciteCheckboxChange",7),this.calciteCheckboxFocusedChange=i(this,"calcit... |
'use strict'
import '../../style.css'
import './home.css'
import React from 'react'
import HomePageMenuPanel from './HomePageMenuPanel'
class Home extends React.Component {
componentWillMount() {
document.body.style.backgroundColor = '#0889AE'
}
componentWillUnmount() {
document.body.style.backgroundCol... |
import React from 'react'
const DEFAULT_SIZE = 24
export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d... |
import React from 'react'
import { colors } from './colors'
import styled from 'styled-components'
import PropTypes from 'prop-types'
const Wrapper = styled.div`
cursor: pointer;
padding: 0 0.25rem;
`
export const PlusIcon = ({ onClick, size }) => {
return (
<Wrapper onClick={onClick}>
<svg
wi... |
/* Do not modify this file directly. It is compiled from other files. */
/* global ajaxurl, jpAdminMenu */
!function(){function e(){var e=document.querySelector("#wpadminbar"),r=document.querySelector("#wpwrap"),a=document.querySelector("#adminmenu"),o=document.querySelector("#dashboard-switcher .dashboard-switcher-but... |
""" Module Analysing code to extract positive subscripts from code. """
# TODO check bound of while and if for more accurate values.
import gast as ast
from collections import defaultdict
from pythran.analyses import Globals, Aliases
from pythran.intrinsic import Intrinsic
from pythran.passmanager import FunctionAna... |
/*
SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
;var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onre... |
MAX_SIZE = 1024 * 4
DEFAULT_ENCODE = 'utf-8'
class HeaderKey:
CONTENT_TYPE = 'Content-Type'
CONTENT_LENGTH = 'Content-Length'
class ContentType:
JSON = 'application/json'
HTML = 'text/html'
class ContentTypeCharset:
UTF8_CHARSET = f';charset={DEFAULT_ENCODE}'
JSON = ContentType.JSON + UTF8... |
const { execSync } = require('child_process');
var gulp = require('gulp'),
plugins = require('gulp-load-plugins')({
pattern: '*',
rename: {
'gulp-jshint': 'gJshint'
}
});
var reload = plugins.browserSync.reload;
var config = {
serverPort: 20000,
browser: ['google c... |
import * as actionTypes from "./actionTypes";
export const postsCommentsGet = postId => {
return {
type: actionTypes.POSTS_COMMENTS_GET,
postId
};
};
export const postsCommentsGetSuccess = (comments, postId) => {
return {
type: actionTypes.POSTS_COMMENTS_GET_SUCCESS,
comments,
p... |
casper.test.begin('Components', 5, function (test) {
casper
.start('./fixtures/component.html')
.then(function () {
var expected = '123 Jack'
test.assertSelectorHasText('#component-and-with', expected)
test.assertSelectorHasText('#element-and-with', expected)
test.assert... |
import numpy as np
class ManualKalmanFilter(object):
def __init__(self, x, z):
self.x = x
self.z = z
self.m = np.size(self.x, 0)
self.n = np.size(self.z, 0)
self.F = np.zeros((self.m, self.m))
self.H = np.zeros((self.n, self.m))
self.Q = np.zeros((self.m, se... |
import React from "react";
import { render, screen, fireEvent } from "@testing-library/react";
import OSCALControl from "./OSCALControl";
import OSCALControlImplementation from "./OSCALControlImplementation";
import OSCALProfile from "./OSCALProfile";
import { controlImplTestData, exampleControl } from "../test-data/Co... |
/**
* @overview datejs
* @version 1.0.0-rc3
* @author Gregory Wild-Smith <gregory@wild-smith.com>
* @copyright 2014 Gregory Wild-Smith
* @license MIT
* @homepage https://github.com/abritinthebay/datejs
*/
/*
* DateJS Culture String File
* Country Code: en-029
* Name: English (Caribbean)
* Format: "key" : "... |
$(window).load(function(){
//Welcome Message (not for login page)
function notify(message, type){
$.growl({
message: message
},{
type: type,
allow_dismiss: false,
label: 'Cancel',
className: 'btn-xs btn-inverse',
placement: ... |
import "../js/config.js";
import { Diapositiva } from "../lib/Diapositiva.js";
export class GilPGDMIndex extends Diapositiva {
/** @override */
connectedCallback() {
super.connectedCallback();
this.innerHTML = /* html */
`<div class="lectura">
<h2>por Gilberto Pacheco Gallegos</h2>
<p>
Este sitio... |
// Cart add functions
function addToCart(product_id){
var url = window.location.origin;
$.ajax({
method:'get',
url:url +'/cart/add',
data:{
product_id:product_id,
},
success:function(data){
... |
const fs = require("fs");
const path = require("path");
const Parcel = require("parcel-bundler");
const { fork } = require("child_process");
const web = {
async build(destination, skipBundle) {
const pkgPath = path.join(destination, "package.json");
const pkgJson = require(pkgPath);
const newPkg = {
... |
import shapely
from .base import XMLReader
from ..sniffer import OAISniffer
from ..format import format_value
class EudatcoreReader(XMLReader):
SNIFFER = OAISniffer
def parse(self, doc):
doc.title = self.find('title')
doc.description = self.find('description')
doc.doi = self.find('id... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon;
let Alarm = props =>
<SvgIconCustom {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85z... |
run_spec(__dirname, ["babylon", "flow", "typescript"]);
run_spec(__dirname, ["babylon", "flow", "typescript"], {
trailingComma: "all"
});
run_spec(__dirname, ["babylon", "flow", "typescript"], {
arrowParens: "always"
});
|
var pageComponent =
webpackJsonppageComponent([40],{
/***/ 284:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _metalComponent = __webpack_require__(0);
var _metalComponent2 = _interopRequireDefault(_metalComponent);
var ... |
import { mount } from '@vue/test-utils'
import IconArrowDown from '@/IconArrowDown'
describe('stock-icon', () => {
test('is a Vue instance', () => {
const wrapper = mount(IconArrowDown)
expect(wrapper.vm).toBeTruthy()
})
})
|
(function() {
function a() {
Function.prototype.call.apply(console.log, [
null,
"PASS"
]);
}
a();
})();
|
"""
Experiment 03
Writes and Reads hybrid experiment on PyRocksDB
"""
import logging
from copy import deepcopy
import numpy as np
import pandas as pd
from scipy.special import rel_entr
from lsm_tree.PyRocksDB import RocksDB
from data.data_provider import DataProvider
from data.data_exporter import DataExporter
from... |
var group__netcfg_struct_sl_net_cfg_ip_v4_dhcp_client_args__t =
[
[ "DhcpServer", "group__netcfg.html#a20fe62aae20d311d189a5f39f34ca723", null ],
[ "DhcpState", "group__netcfg.html#ac912083289900843dd6447fb8558f1f0", null ],
[ "Dns", "group__netcfg.html#acce2656de7aebdef8baf9e1016828ef5", null ],
[ "Gat... |
/*
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("devtools","tr",{title:"Eleman Bilgisi",dialogName:"İletişim pencere ismi",tabName:"Sekme adı",elementId:"Eleman ID",elementType:"E... |
"""
State is the main currency in the Prefect platform. It is used to represent the current
status of a flow or task.
This module contains all Prefect state classes, all ultimately inheriting from the base State
class as follows:
{.viz-padded}
Every run... |
const spaceWords = require('../lib/spaceWords.js')
describe('spaceWords', () => {
it('should translate case', () => {
const r = spaceWords('TestOneTwoThree')
r.should.equal('Test One Two Three')
})
it('should not touch other stuff', () => {
const r = spaceWords('Testonetwothree')
r.should.equal(... |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = fact... |
angular.module('app.controllers')
.controller('ProjectNoteEditController',['$scope','$location','$routeParams','ProjectNote',
function ($scope,$location,$routeParams,ProjectNote) {
$scope.projectNote = ProjectNote.get({
id: $routeParams.id,
idNote: $routeParams.id... |
/* eslint-disable no-underscore-dangle */
export default class Model {
constructor() {
this._soundOn = true;
this._musicOn = true;
this._bgMusicPlaying = false;
}
set musicOn(value) {
this._musicOn = value;
}
get musicOn() {
return this._musicOn;
}
set soundOn(value) {
this._sou... |
module.exports = async function (migration) {
const cEditorial = migration
.createContentType('c-editorial')
.name('Component: Editorial')
.description('Teaser-like components with text, image & links')
.displayField('name');
cEditorial
.createField('name')
.name('Internal name')
.type('... |
import h5py, numpy as np
class LoadedResult:
def __init__(self, fname, groupname = 'scstiffness', class_name = 'SCStiffness3D', nk = 32,
niw = 50, tnn = -1, tnnn = 0.3, tz = -.15):
self.params = {'nk': nk, 'niw': niw, 'tnn': tnn, 'tnnn': tnnn, 'tz': tz}
self.values = {}
se... |
# -*- coding:utf-8 -*-
"""
"""
from collections import defaultdict
import dask.array as da
import numpy as np
import pandas as pd
from sklearn.metrics import get_scorer
from sklearn.metrics._scorer import _PredictScorer
from hypernets.utils import logging
from ..ensemble.base_ensemble import BaseEnsemble
logger = ... |