text
stringlengths
3
1.05M
'use strict'; const debug = require('debug')('common-shake:module'); function Module(resource) { this.resource = resource; this.sideEffects = true; this.bailouts = false; this.issuers = new Set(); this.uses = new Map(); this.declarations = []; this.requireNodes = new Map(); this.dependentUses = []; ...
# python # # Copyright 2019-2020 The usbmon-tools 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
!function(e){const t=e.ku=e.ku||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 لە %1",Aquamarine:"شینی دەریایی",Black:"ڕەش","Block quote":"وتەی وەرگیراو",Blue:"شین",Bold:"قەڵەو","Bulleted List":"لیستەی خاڵەیی",Cancel:"هەڵوەشاندنەوە","Change image text alternative":"گۆڕینی جێگروەی تێکیسی وێنە","Choose he...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be ...
function placeOrder() { $('.submit_payment_form').trigger("click"); } $(document).ready(function(){ $('#payment_method').on("change", function() { var opval = $(this).val(); $(".payment_option_input").prop("value", opval); let shipping_fee_price = parseInt($(".shipping_fee_price").text()); ...
/* eslint-disable import/prefer-default-export */ export { default as Core } from './components/core/index.vue' export { default as AuthForm } from './components/auth-form/index.vue' export { default as VueCui } from './components/vue-cui/index.vue' export { default as Grid } from './components/grid/index.vu...
""" Defines DataLoader classes to use. """ import logging from collections import defaultdict from itertools import groupby import torch import torch.nn as nn import numpy as np from torch._six import int_classes as _int_classes from torch.utils.data import DataLoader from torch.utils.data.sampler import WeightedRando...
'use strict'; //function to find movies info for that location exports.getMovies = function(request,response){ const superagent = require('superagent'); const moviesKey = process.env.MOVIE_API_KEY; const moviesUrl = `https://api.themoviedb.org/3/movie/popular?api_key=${moviesKey}&page=${request.query.page}`; su...
from django.core.management.base import BaseCommand from reversion.models import Version from waldur_core.quotas.models import Quota class Command(BaseCommand): help = "Delete quotas versions duplicates." def handle(self, *args, **options): self.stdout.write('Collecting duplicates...') dupli...
#!/usr/bin/env python3 import sys from Constants import * from Utilities import (ParkingLot, create_parking_lot, park_car, car_departure, lot_status, car_by_colour, slot_by_car_number, slot_by_colour) def executeCommand(parkingLot, command): if command[0] == CREATE_PARKING_LOT: par...
# coding: utf-8 """ TGS API A production scale tool for BYOND server management # noqa: E501 OpenAPI spec version: 9.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.api.b...
import collections import numpy as np import sys sys.path.insert(0, '../utilities') import timing import util import os from scipy.ndimage.interpolation import shift import nltk np.random.seed(111) def create_vocabulary(words, max_size=None): tokenized_words = filter(lambda x: x!='', words) counter = collections...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const page_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Page/page")); const react_styles_1 = require("@patternfly/react-sty...
(window.webpackJsonp=window.webpackJsonp||[]).push([[336],{402:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return a})),r.d(t,"metadata",(function(){return s})),r.d(t,"toc",(function(){return c})),r.d(t,"default",(function(){return p}));var n=r(3),i=r(8),o=(r(0),r(549)),a={id:"index",title:"Overv...
'use strict'; const httpCodes = require('./http_codes'); /** * Base error type for Ravel, to be extended into semantic errors * which can be used within Ravel modules, as well as by clients' * APIs. These Error types are intended to encapsulate standard * things that can go wrong and, when used by a client, are ...
#!/usr/bin/env python import zmq import TZmqServer import storage.ttypes import storage.Storage class StorageHandler(storage.Storage.Iface): def __init__(self): self.value = 0 def incr(self, amount): self.value += amount def get(self): return self.value def main(): handler = StorageHandler() ...
export default { localeName: 'English', previewForm: 'Preview', abortForm: 'Abort', noteAbort: 'all form data will be deleted.', submitting: 'Submit your application', submitFailed: 'Submit failed', success: 'Success', applicationWasSent: 'Application was received.', goHome: 'Go to homepage', fileNo...
export const cibApacheAirflow = ["32 32"," <path d='M16.041 14.287c-0.916 0-1.681 0.749-1.681 1.672 0 0.916 0.765 1.681 1.681 1.681 2.24 0 2.24-3.353 0-3.353zM16.041 15.349c0.344 0 0.609 0.265 0.609 0.609s-0.265 0.609-0.609 0.609c-0.344 0-0.609-0.265-0.609-0.609s0.265-0.609 0.609-0.609zM0.864 0c-0.093 0-0.14 0.016-0.4...
/* eslint-disable react/jsx-no-target-blank */ import React from "react"; import Link from "next/link"; import IndexNavbar from "components/Navbars/IndexNavbar.js"; import Footer from "components/Footers/Footer.js"; export default function Index() { return ( <> <IndexNavbar fixed /> <section classNa...
import * as selectors from 'metronome-wallet-ui-logic/src/selectors' import { connect } from 'react-redux' import PropTypes from 'prop-types' import React from 'react' import { View, Text } from '../../common' import ScanIndicator from './ScanIndicator' import Filter from './filter/Filter' class TxListHeader extends ...
// 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 path from 'path' import fs from 'fs' /** Serializes given `data` and writes it under specified `distPath`/`fileName`. */ function outputJSON(distPath, fileName, data) { console.debug("Writing JSON asset", distPath, fileName) fs.writeFileSync( path.join(distPath, fileName), JSON.stringify(data, undef...
/* * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. * licensing@extjs.com * * http://www.extjs.com/license */ Ext.onReady(function(){ // shorthand var Tree = Ext.tree; var tree = new Tree.TreePanel('tree-div', { animate:true, loader: new Tree.TreeLoader({ ...
describe('Storage', () => { let Storage; describe('on the client', () => { beforeEach(() => { delete require.cache[require.resolve('./storage.js')]; Storage = require('./storage').default; }); runSuite(); }); describe('on the server', () => { let windowBckp; beforeEach(() => {...
'use strict'; const _ = require('lodash'); function checkNamingCollision(association) { if (association.source.rawAttributes.hasOwnProperty(association.as)) { throw new Error( 'Naming collision between attribute \'' + association.as + '\' and association \'' + association.as + '\' on model ' + assoc...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesmember/order/logistics/logistics"],{ /***/ 177: /*!***************************************************************************************************************!*\ !*** /Users/zenglifeng/Desktop/work/mp/mb-app/main.js?{"page":"pagesmember%2Forder...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
export * from './user.service'; export * from './collection.service'; export * from './bundle.service'; export * from './file-upload.service';
/* * @Author: @vedatbozkurt * @Date: 2020-06-27 20:29:22 * @Last Modified by: @vedatbozkurt * @Last Modified time: 2020-06-28 20:51:17 */ import axios from "axios"; const namespaced= true; const state = { settings: {} }; const getters = { setting: state => state.settings }; const actions = {...
function find_duplicate(nums) { let i = 0; while (i < nums.length) { if (nums[i] !== i + 1) { j = nums[i] - 1; if (nums[i] !== nums[j]) { [nums[i], nums[j]] = [nums[j], nums[i]]; } else { return nums[i]; } } else { i += 1; } } return -1; } console.log(find_duplicate([1, 4, 4, 3, 2]));
function Person () {}; Person.prototype = { MOVEMENTS: { ATTACKS : { MAGIC: { BACK: 0, LEFT: 1, FRONT: 2, RIGHT: 3 }, SPEAR: { BACK: 4, LEFT: 5, FRONT: 6, RIGHT: 7 }, SWORD: { BACK: 12, LEFT: 13, FRONT: 14, RIGHT: 15 }, BOW: { BACK: 16, LEFT: 17, FRONT: 18, RIGHT: 19 } }, ...
import React, { useRef, useState } from 'react' import styled from 'styled-components' import LandingPage from '../components/LandingPage' import SEO from '../components/SEO' import axios from 'axios' import { newsletterUrl } from '../utils/routing' const Header = styled.h1` @media only screen and (max-width: 375px)...
/* * Copyright © 2016-2018 Cask Data, 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 agr...
import taichi as ti @ti.all_archs def test_offload_order(): n = 128 x = ti.field(ti.f32, shape=n, needs_grad=True) y = ti.field(ti.f32, shape=n, needs_grad=True) z = ti.field(ti.f32, shape=(), needs_grad=True) @ti.kernel def forward(): for i in x: y[i] = x[i] # fo...
import React, { useState } from 'react' import { Form, Button } from 'react-bootstrap' import "../css/SearchBox.css"; const SearchBox = ({ history }) => { const [keyword, setKeyword] = useState('') const submitHandler = (e) => { e.preventDefault() if (keyword.trim()) { history.push(`/search/${keyword...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.feedback = void 0; exports.feedback = { warn: function (message) { console.warn(message.message); } };
function dichotomyFind(arr, val) { let left = 0; let right = arr.length - 1; while (left <= right) { let mid = left + ((right - left) / 2 | 0); if (arr[mid] > val) { left = mid + 1; } else { right = mid - 1; } } return left; } class PriorityQueue { constructor() { this.queue...
const uniqid = require('uniqid'); import {knex} from "../config/config"; import tagModel from "./tagModel" //get UserID wise data exports.getDetail = async (id) => { try{ let result = await knex.select('c_tags.*') .from('c_tags') .where({ "ID": id}).limit(1); if (result.length == 0) { retur...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['da']={"widget":{"move":"Klik og træk for at flytte","label":"%1 widget"},"undo":{"redo":"Annullér fortryd","undo":"Fortryd"},"toolbar":{"toolbarCollapse":"Sammen...
/* This file is part of OmniDB. OmniDB is open-source software, distributed "AS IS" under the MIT license in the hope that it will be useful. The MIT License (MIT) Portions Copyright (c) 2015-2020, The OmniDB Team Portions Copyright (c) 2017-2020, 2ndQuadrant Limited Permission is hereby granted, free of charge, to ...
import jss from './jss' import * as theme from './theme' const styles = { catHand: { position: 'absolute', width: 20, height: '100%', backgroundColor: '#fff', zIndex: -1, backgroundImage: `linear-gradient(to right, ${theme.colorFurLight}, ${ theme.colorFurLight } 20%, ${theme.colorF...
# The following lines are replaced during the release process. # START_VERSION_BLOCK VERSION_MAJOR = 0 VERSION_MINOR = 4 VERSION_BUILD = 6 VERSION_ALPHA = 0 # END_VERSION_BLOCK
var searchData= [ ['global_20constants',['Global Constants',['../group___q_r___c_o_n_s_t.html',1,'']]], ['global_20config',['Global Config',['../group___q_r___d_e_f_c_o_n_f_i_g_s.html',1,'']]] ];
const HtmlWebpackPlugin = require("html-webpack-plugin"); const path = require("path"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const webpack = require("webpack"); module.exports = { entry: "./src/app.js", output: { path: path.resolve(__dirname, "dist"), filename: "bundle.js" ...
/* * grunt-html-smoosher * https://github.com/motherjones/grunt-html-smoosher * * Copyright (c) 2013 Ben Breedlove * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 't...
"use strict"; var API = { LineRoot: "https://api.line.me/v2/bot", NBARoot: "http://data.nba.net/prod/v1", API_Table: "http://data.nba.net/10s/prod/v1/today.json", RichMenu: { suns: "richmenu-becfa7f0e60b8cc5b7474f7c931e6899", pistons: "richmenu-30bc8e135936b116713822638b14ac10", timberwol...
import React from "react"; import PostCard from "./PostCard"; import styles from "../css/postlist.module.css"; const PostList = ({ posts }) => { return ( <section className={styles.posts}> <div> <a className={styles.link} href="http://www.centromedicomarista.com/#Especialistas" ...
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [ 281 ], { 3239: function(module1, __unused_webpack_exports, __webpack_require__) { var global1, define, _require, require1, normalizeModule, lookup, ns1, root; module1 = __webpack_require__.nmd(module1), (g...
/*global define*/ define([ 'jquery', 'underscore', 'backbone', 'collections/todos', 'views/todos', 'text!templates/stats.html', 'common' ], function ($, _, Backbone, Todos, TodoView, statsTemplate, Common) { 'use strict'; // Our overall **AppView** is the top-level piece of UI. var AppView = Backbone.View.ex...
'use strict'; /* * Create a `getLast` function that takes an array or a string * and return the last element. * * @notions Data-Structures, Get */ // Your code: function getLast(arr) { return arr[arr.length - 1]; } //* Begin of tests const assert = require('assert'); assert.strictEqual(getLast([ 2, 42 ]), 4...
export { default } from "ember-flexure/transforms/number";
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; const React = require('react'); const ReactNative = require('react-native'); const {StyleSheet, Te...
/** * @author deepak.jain * created on 06/05/2017 */ (function () { 'use strict'; angular.module('BlurAdmin.common.components',[]); })();
# from UnitTests.SequentialTest import SequentialTestLoader import dataclasses import enum import importlib.util import os import pathlib import re import termcolor import unittest from pprint import pprint as pp # FIXME: this can be fixed if you run this in virtualenv # get the specifications from the path given spe...
const $darkModeBtn = document.querySelector(".DarkModeBtn"); const isUserColorTheme = localStorage.getItem("color-theme"); const isOsColorTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; const getUserTheme = () => isUserColorTheme ? isUserColorTheme : isOsColorTheme; window...
""" shapefile.py Provides read and write support for ESRI Shapefiles. author: jlawhead<at>geospatialpython.com date: 20110927 version: 1.1.4 Compatible with Python versions 2.4-3.x """ from struct import pack, unpack, calcsize, error import os import sys import time import array # # Constants for shape ...
module.exports = { //Selects everything in a table selectAll : function(connection, TABLE) { return new Promise(function(resolve,reject){ connection.query(`SELECT * FROM ${TABLE};`, function(err, data) { if (err) { throw err; } resolve(data);...
/** * Copyright 2014 IBM Corp. * * 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 wr...
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(e){var r...
/* ¿Necesitamos nuestra Casio cuando tenemos Python? Yo la verdad todavía amo a mi calculadora de bolsillo, pero también amo hacer programas.El reto del día de hoy es crear una calculadora básica que reemplace a nuestra Casio. Crea un programa que tome un número, un operador, y otro número y realice el cálculo correcto...
# -*- coding: utf-8 -*- # Authors: Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Lars Buitinck # Robert Layton <robertlayton@gmail.com> # Jochen Wersdörfer <jochen@wersdoerfer.de> # Roman Sinayev <roman.sinayev@gmail.com> # # License: B...
/************************************************************************** * (C) Copyright ModusBox Inc. 2019 - All rights reserved. * * * * This file is made available under the terms of the license agreement * * specified in...
/*! * MediaElement.js * http://www.mediaelementjs.com/ * * Wrapper that mimics native HTML5 MediaElement (audio and video) * using a variety of technologies (pure JavaScript, Flash, iframe) * * Copyright 2010-2017, John Dyer (http://j.hn/) * License: MIT * */(function(){function r(e,n,t){function o(i,f){if(!n...
let nock = require('nock'); module.exports.testInfo = {"uniqueName":{"container":"container157534361910404860"},"newDate":{}}
# Copyright DST Group. Licensed under the MIT license. import string from ipaddress import IPv4Address import random from CybORG.Shared.Actions.MSFActionsFolder.MSFAction import MSFAction, lo # Upgrade a MSF_SHELL session to a METERPRETER session from CybORG.Shared.Enums import SessionType, AppProtocol from CybORG.Sh...
import "core-js/stable"; import "regenerator-runtime/runtime"; import { waitForAppScreen, zemu } from './test.fixture'; import { TransportStatusError } from "@ledgerhq/errors"; test('[Nano S] Transfer Ether on Ethereum app', zemu("nanos", async (sim, eth) => { const tx = eth.signTransaction( "44'/60'/1'/0/0", ...
/* * # Fomantic UI - 2.8.4 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(T,e,F,S){"use strict";T.isFunction=T.isFunction||function(e){return"function"==typeof e&&"number"!...
const { Message, User, MessageEmbed, GuildMember } = require("discord.js"); module.exports = { name: "ban", description: null, aliases: [], tier: 0, /** * @param {Message} message * @param {string[]} args * @param {object} lang * @param {function} genString */ execute: a...
/** * Not type-checking this file because it's mostly vendor code. */ /*! * HTML Parser By John Resig (ejohn.org) * Modified by Juriy "kangax" Zaytsev * Original code by Erik Arvidsson, Mozilla Public License * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js */ import { makeMap, no } from 'shared/util...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { rangeShape } from './DayCell.js'; import Month from './Month.js'; import { calcFocusDate, generateStyles, getMonthDisplayRange } from '../utils'; import classnames from 'classnames'; import ReactList from 'react-list'; import { ...
var a00761 = [ [ "operator<<", "a00761.html#a037064a33fe59878e47b1f18e015123d", null ], [ "operator<<", "a00761.html#ad12f34e86847c6af6d66969b95c4e820", null ] ];
""" Oscilators """ import numpy as np from blipwave import RATE def vco(waveform, frequencies, rate=48000): """ Simulates a voltage controlled oscillator Args: frequencies: a numpy of instantaneous frequencies (in Hz) at each sample waveform: shape of the oscillation, any periodic functio...
var map; // The map object var myCentreLat = 53.8; var myCentreLng = -1.6; var initialZoom = 12; // same kind of functionality as excercise 4.1's dynamicMarkers.js bar the conversion of coordinates and omission of genhex function infoCallback(infowindow, marker) { return function() { infowindow.open(map, mar...
import re import verif.metric import verif.output metrics = [metric for metric in verif.metric.get_all() if metric[1].is_valid()] outputs = [output for output in verif.output.get_all() if output[1].is_valid()] print("Metrics: %d" % len(metrics)) print("Outputs: %d" % len(outputs)) print("Total: %d" % (len(metrics) + ...
import React from 'react'; import { withRouter } from 'react-router-dom'; import urls from './constants/url-constant'; class User extends React.Component { constructor() { super(); this.state = { user: null }; } componentDidMount() { const split = this.props.location.pathname.split('/'); ...
import { v1 } from './main.js'; var lazy = () => v1; export { lazy as default };
/** @type {import("/Users/johnlindquist/.kit")} */ await import("../test/config.js") console.log({ kenvTestPath }) if (test("-d", kenvTestPath)) { console.log(`Clearing ${kenvTestPath}`) await rm(kenvTestPath) } let { stdout: branch, stderr } = await $`git branch --show-current` if (stderr || !branch.match(/ma...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['da']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Tryk ALT 0 for hjælp","browseServer":"Gennemse...","url":"URL",...
/* * PHPCore - PHP environment runtime components * Copyright (c) Dan Phillimore (asmblah) * https://github.com/uniter/phpcore/ * * Released under the MIT license * https://github.com/uniter/phpcore/raw/master/MIT-LICENSE.txt */ 'use strict'; var expect = require('chai').expect, phpCommon = require('phpcom...
from django.db import models # Create your models here. from django.db import models class Publisher(models.Model): name = models.CharField(max_length=30) address = models.CharField(max_length=50) city = models.CharField(max_length=60) state_province = models.CharField(max_length=30) country = m...
""" Modification History: Last modification date: December 15, 2020 Last modification time: 11:00PM Description: Create a function that will stretch or compress audio from a wav file to a specified duration, while preserving the pitch of the original audio. Current inputs: ...
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**param):...
/** * WatchJS Test * */ // Force dirty checks // ------------------------ // WatchJS.useDirtyCheck = true; QUnit.module("Watch object") QUnit.config.testTimeout = 30000; QUnit.test( "Observe changes on an object property", function( assert ) { assert.expect(6); var done1 = assert.async(); var done2 ...
import React, { useEffect } from 'react'; import { connect } from 'react-redux'; import CardList from '../components/CardList'; import Container from './Container'; import ErrorBoundary from './ErrorBoundary'; import SearchBox from '../components/SearchBox'; import './Robotfriends.css'; import { setSearchField, fetchRo...
from django.db import models from django.utils.text import slugify from django.urls import reverse from django.core.exceptions import ValidationError from scieio.life_sciences.models import LifeScience from scieio.manufacturers.models import Manufacturer from scieio.sellers.models import Seller from scieio.conditions.m...
var searchData= [ ['reservoirconstraint_4335',['ReservoirConstraint',['../classoperations__research_1_1sat_1_1_bool_var.html#ae0ff478f6506cb705bbc1737598276f4',1,'operations_research::sat::BoolVar::ReservoirConstraint()'],['../classoperations__research_1_1sat_1_1_int_var.html#ae0ff478f6506cb705bbc1737598276f4',1,'ope...
import React from "react" import { StaticImage } from "gatsby-plugin-image" import { Link } from "gatsby" import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" import { faBars, faShoppingCart } from "@fortawesome/free-solid-svg-icons" function Navbar() { return ( <div className="bg-main-black po...
import React, { Component } from 'react'; import './App.css'; import Header from './components/header'; import Form from './components/form'; import DonorView from './components/donorView' import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom'; import OrbitHandler from './orbitdb'; let orbit; class...
import React, {useState} from "react" import Layout from "../components/layout" import SEO from "../components/seo" import Hero from "../components/Hero" import BtnPrimary from "../components/BtnPrimary" import CtaBanner from "../components/CtaBanner" export default function AboutPage() { const [access, setAccess] ...
from guillotina.db.orm.interfaces import IBaseObject from guillotina.utils import run_async import pickle import typing async def reader(result: dict) -> IBaseObject: state = result["state"] if len(state) > 25000: o = await run_async(pickle.loads, state) else: o = pickle.loads(state) ...
filenames = [] # compile a list of filenames from least to most interesting words for size in [10, 20, 35, 40, 50, 55, 60, 70]: for category in ["words", "contractions", "abbreviations"]: filenames.append("english-{:s}.{:d}".format(category, size)) filenames.append("american-{:s}.{:d}".format(category, size)) fi...
exports.definition = { config: { "columns": { "car_make": "String", "car_model": "String", "car_mileage": "String", "car_year": "String", "car_seats" : "String" }, adapter: { type: "properties", collection_name: "vehicle" } }, extendM...
import setuptools import os import sipconfig import sys # The name of the SIP build file generated by SIP and used by the build # system. build_file = "hoverboard_api.sbf" build_dir = "./build/" # Get the SIP configuration information. config = sipconfig.Configuration() #build the cpp library os.system(" ".join(["m...
#!/usr/bin/env node // 👆 Used to tell Node.js that this is a CLI tool // Pull in our modules const chalk = require('chalk') const boxen = require('boxen') // Define options for Boxen const options = { padding: 1, margin: 1, borderStyle: 'round' } // Text + chalk definitions const data = { name: chalk.white(...
#!/usr/bin/env python3 """Combine logs from multiple bitcoin nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile. If no argument is provided, the most recent test directory will be used.""" import argparse from collection...
describe("Registering custom validator", function () { it("Do not track property definitions from \"not\"", function () { var schema = { "not": { properties: { propA: {"type": "string"}, } } }; var data = { propA: true, }; var result = tv4.validateMultiple(data, schema, false, true);...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = SortedUniqBy; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _sortedUniqBy = require('lodash/sortedUniqBy'); var _sortedUniqBy2 = _interopRequireDefault(_sortedUniqBy); function _inte...
const gulp = require('gulp'); const inlineNg2Template = require('gulp-inline-ng2-template'); var runSequence = require('run-sequence'); var sass = require('node-sass'); const styleProcessor = (stylePath, ext, styleFile, callback) => { if (ext[0] === '.scss') { let sassObj = sass.renderSync({ file: stylePath })...
import logging from .constants import BladeMethod def handle_inbound_message(client, message): if message.method == BladeMethod.NETCAST: pass elif message.method == BladeMethod.BROADCAST: _blade_broadcast(client, message.params) elif message.method == BladeMethod.DISCONNECT: client._idle = True def ...
import os VERSION = "1.0" MODEL_NAME = os.path.basename(os.path.dirname(__file__)) DOCKERHUB_REPO = f"danieldeutsch/{MODEL_NAME}" DEFAULT_IMAGE = f"{DOCKERHUB_REPO}:{VERSION}" AUTOMATICALLY_PUBLISH = True from repro.models.papineni2002.models import BLEU, SentBLEU from repro.models.papineni2002.setup import Papineni2...