text stringlengths 3 1.05M |
|---|
import React, { Component, PropTypes } from 'react'
// import { Link } from 'react-router'
import style from './App.css'
class App extends Component {
render() {
return (
<div className={style.base}>
<p className={style.begin}>Begin by editing <code>src/index.js</code></p>
</div>
)
}
}... |
## imports
from processador import Processador
from processo import Processo, estado
from recursos import Recursos
from typing import List
from estado_processo import EstadoProcesso
# TODO: fix: memoria alocada
# TODO: fix: devolver memoria
class Escalonador:
def __init__(self, recursos:Recursos, threads: List[Pr... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', 'react', 'material-ui/SvgIcon'], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require('react'), require('material-ui/SvgIcon'));
} else {
var mod = {
exports: {}
};
... |
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
'use strict';
/* global MobileIdManager, MockApplications, MocksHelper */
requireApp('system/js/mobileid_manager.js');
requireApp('system/test/unit/mock_applications.js');
var mocksForMobileIdManager = new MocksHelper([
'Applications'
]).init();
suite('MobileID Manager', function() {
const CONTENT_EVENT = 'mozM... |
/* mbed Microcontroller Library
* Copyright (c) 2018-2018 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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.o... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["arrow-drop-up-two-tone"... |
import formatQuantity from '../../recipe/utilts/formatQuantity'
const ingRequired = val => {
let tr = '';
if (val) {
// eslint-disable-next-line
val.map(ig => {
if (ig.title) {
tr += ig.title + ':\n';
}
// eslint-disable-next-line
ig.ingredients.map(i => {
tr += i.nu... |
/*
* Portability wrapper around systemd-daemon headers.
*
* Currently, only sd_listen_fds and sd_notify are guaranteed to be provided
* by this interface. This takes the approach of stubbing out these functions
* if the libsystemd-daemon library is not available, rather than providing a
* local implementation, o... |
/*
* Copyright 2020 The TensorFlow Runtime 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 applicab... |
"""
DarkNet for ImageNet-1K, implemented in Chainer.
Original source: 'Darknet: Open source neural networks in c,' https://github.com/pjreddie/darknet.
"""
__all__ = ['DarkNet', 'darknet_ref', 'darknet_tiny', 'darknet19']
import os
import chainer.functions as F
import chainer.links as L
from chainer import Ch... |
"""Additional tools."""
import contextlib
import os
import numpy as np
def hysteresis_values(vmin, vmax, step):
"""Generate hysteresis values.
Given ``vmin``, ``vmax``, and ``step``, hysteresis loop values are
generated and ``list`` is returned. The first and the last values in the
result are ``vmax... |
# -*- coding: utf-8 -*-
"""
Global fixtures for testing CastorClient
@author: R.C.A. van Linschoten
https://orcid.org/0000-0003-3052-596X
"""
import os
from pathlib import Path
from castoredc_api_client.castoredc_api_client import CastorClient
import pytest
import auth.auth_data as auth_data
pytest_plugins = [
"... |
/**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITH... |
"""Callback protocols."""
from typing import Callable, Iterable, List, Optional, TypeVar
from typing_extensions import Protocol
class Combiner(Protocol):
def __call__(self, *vals: bytes, maxlen: Optional[int] = None) -> List[bytes]:
...
def batch_proc(data: Iterable[bytes], cb_results: Combiner) -> byt... |
from .Layer import *
class Negative(Layer):
def __init__(self, model, *args, **kwargs):
self.check_inputs(model, 1)
Layer.__init__(self, model, *args, **kwargs)
def reshape(self):
self.Y = np.zeros(self.X.shape)
def forward(self):
self.Y = -self.X
def backward(self):
... |
/* eslint-env mocha */
const assert = require('assert')
const TestHelper = require('../../../../test-helper.js')
const TestStripeAccounts = require('../../../../test-stripe-accounts.js')
describe('/administrator/subscriptions/subscription', function () {
after(TestHelper.deleteOldWebhooks)
before(TestHelper.setupW... |
import { Base64 } from 'js-base64';
/*
window.location.origin polyfill
*/
export const getLocationOrigin = () => {
return 'http://210.245.62.45:8834';
};
/*
query options:
*/
export const defaultOptions = {
credentials: 'same-origin'
};
export const postMethod = {
method: 'POST'
};
export const jsonHe... |
"""
This file contains the solution to the problem
2.8.4 of the book `Nonlinear Dynamics and Chaos` by Steven H. Strogatz.
"""
import numpy as np
import matplotlib.pyplot as plt
def exact_solution(t, x0=1.0):
"""
The implementation of the exact solution to the differential equation
x' = -x
with the in... |
$(function() {
var picture = $("#picture").val();
if(picture != ""){
$("#imgPreview").attr('src', domain + picture);
}
/* var content = $("#content").html();
UM.getEditor('myEditor').setContent(content);*/
$("#btnSubmit").click(function() {
var parameter = getParameter();
if(parameter){
curd('e... |
//tests that access the classes in the utils folder
//gets user input and runs the test that the data is going where it is supposed to
const Manager = require("../utils/manager");
test("Can set office number via constructor argument", () => {
const testValue = 100;
const e = new Manager("Dillon", 1, "dillon@d... |
/* MIT License
*
* Copyright (c) 2016-2020 INRIA, CMU and Microsoft Corporation
*
* 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 r... |
/*
* Copyright 2021 Tyro Payments Limited
*
* 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 ... |
# -*- coding: utf-8 -*- #
"""*********************************************************************************************"""
# FileName [ transformer/runner.py ]
# Synopsis [ runner for pre-training the transformer models ]
# Author [ Andy T. Liu (Andi611) ]
# Copyright [ Copyleft(c), Speech L... |
$(function () {
let table = document.getElementsByTagName("table"), rIndex, cIndex;
const sudoku_grid = document.getElementById("sudokuGrid").value;
let board = document.getElementsByClassName("sudoku-box");
const items = eval(sudoku_grid);
console.log(items)
let filledTable = Array.from(Array(... |
"""
Copyright 2018, Oath Inc.
Licensed under the terms of the Apache 2.0 license. See LICENSE file in project root for terms.
This module defines Panoptes enrichment and their related abstractions
"""
import copy
import json
import time
from cerberus import Validator
from . import const
from .context import Panopte... |
import KratosMultiphysics as Kratos
import KratosMultiphysics.FluidDynamicsApplication as KratosCFD
import KratosMultiphysics.KratosUnittest as KratosUnittest
import random
class TestAdjointMonolithicWallCondition(KratosUnittest.TestCase):
def setUp(self):
self.delta_time = 1.0
# create test model... |
var helpers = require('./');
/** Parker ignores all attributes, perceives namespacing literally, and mishandles mixed children.
1. The root tag is dropped, so the output object can be a number, string, object, list, etc.
2. <x>1</x><x>2</x><y>3</y> will become {x: 2, y: 3}, losing the value of the first <x>.
3. Numbe... |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import copy
from typing import List
import torch
from pytext.utils import data
from .field import Field, TextFeatureField
class ContextualTokenEmbeddingField(Field):
def __init__(self, **kwargs):
super().__init... |
#! /usr/bin/env python
# GPTune Copyright (c) 2019, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory (subject to receipt of any
# required approvals from the U.S.Dept. of Energy) and the University of
# California, Berkeley. All rights reserved.
#
# If you have questions ab... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "movie_theater.h"
#include "movies.h"
struct theater {
movie **all_movies;
size_t size;
size_t capacity;
size_t total_tickets_sold;
};
// create a theater - TODO: Is there anything we can do here to make later operations more efficie... |
// Option rom scanning code.
//
// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net>
// Copyright (C) 2002 MandrakeSoft S.A.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
#include "bregs.h" // struct bregs
#include "config.h" // CONFIG_*
#include "farptr.h" // FLATPTR_TO_SEG
#inc... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
plugins: [
`gatsby-plugin-react-helm... |
# Return a dtuple:
# - dictionary of {tile name -> dict of tile properties}
# - dictionary of (tile name -> list of sites)
# - dictionary of (site name -> dict site properties)
def parse_gridinfo(f):
tiles = {}
tilesites = {}
sites = {}
for line in f:
sl = line.strip().split(" ", 3)
if len(sl) < 2:
conti... |
from bunch import Bunch
LOCK_MODE = Bunch()
LOCK_MODE.NOT_LOCKED = 0
LOCK_MODE.COMPLETE_LOCKED = 1
LOCK_MODE.LIMITED_SPEED = 2
LOCK_MODE.LIMITED_TORQUE = 3
|
// disable camel case here because notion-api-worker identifiers are snake case
/* eslint-disable camelcase */
import dynamic from 'next/dynamic';
import Image from 'next/image';
import NotionText from '../components/Text/NotionText';
import FormattedText from '../components/Text/FormattedText';
import Stack from '../c... |
define("ace/theme/cobalt",["require","exports","module","ace/lib/dom"],function(a,b,c){b.isDark=!0,b.cssClass="ace-cobalt",b.cssText=".ace-cobalt .ace_editor { border: 2px solid rgb(159, 159, 159);}.ace-cobalt .ace_editor.ace_focus { border: 2px solid #327fbd;}.ace-cobalt .ace_gutter { background: #e8e8e8; color: #... |
(self.webpackChunkjupyterlab_plotly=self.webpackChunkjupyterlab_plotly||[]).push([[133,657],{133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var l=n(211),i=n(657);const s={id:"jupyterlab-plotly",requires:[l.IJupyterWidgetRegistry],activate:function(e,t){t.registerWidget({name:i.o,version:i.Y,exports:()=>Promis... |
(function () {
'use strict';
// rendered globals
var ipc = require('ipc');
/**
* define namespace object for rendered process methods and constants
* @type {Object}
*/
window.renderedProccessApi = {
titleBar: TitleBar,
historyBack: HistoryBack,
historyForwar... |
#Config
MYSQL_HOST = '176.122.151.136'
MYSQL_PORT = 3306
MYSQL_USER = 'root'
MYSQL_PASS = 'f8cdbfddf1bf870c'
MYSQL_TABLE= 'user4'
MYSQL_DB = 'shadowsocks'
MANAGE_PASS = 'ss233333333'
#if you want manage in other server you should set this value to global ip
MANAGE_BIND_IP = '127.0.0.1'
#make sure this port is idle
MAN... |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
import frappe
no_cache = True
def get_context(context):
token = frappe.local.form_dict.token
doc = frappe.get_doc(frappe.local.form_dict.doctype, frappe.local.form_dict.docname)
context.payment_message = ''
if ... |
# coding: utf-8
# In[2]:
get_ipython().magic(u'matplotlib inline')
import matplotlib.pyplot as plt
plt.plot(range(10))
# In[ ]:
|
import ButtonIcon from '../../Common/Button/Icon';
import ContactUsForm from './Form';
export default function ContactUsSection() {
return (
<div className="bg-light">
<div className="container space-top-2 space-bottom-2">
<div className="row align-items-center">
<div className="col-lg-6 ... |
//// [accessors_spec_section-4.5_inference.ts]
class A { }
class B extends A { }
class LanguageSpec_section_4_5_inference {
public set InferredGetterFromSetterAnnotation(a: A) { }
public get InferredGetterFromSetterAnnotation() { return new B(); }
public get InferredGetterFromSetterAnnotation_GetterFirst... |
from rest_framework.utils.encoders import JSONEncoder
import json
class DRFJsonConsumerMixinAsync:
"""
Use this mixin on your consumers to encode json using
django-rest-framework's encoder and to enable sending from bindings.
"""
@classmethod
async def encode_json(cls, content):
return... |
import os
from typing import List
import anndata
import numpy as np
import pandas as pd
from scvi.data._anndata import _setup_anndata
from scvi.data._built_in_data._dataset_10x import _load_dataset_10x
from scvi.data._built_in_data._download import _download
def _load_purified_pbmc_dataset(
save_path: str = "da... |
#
# PySNMP MIB module CISCO-LWAPP-DOT11-CLIENT-CALIB-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-DOT11-CLIENT-CALIB-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 12:05:07 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user da... |
"""
WSGI config for ECP project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... |
var brUuid = [
'56830f56-5180-fab0-314b-2fa176799a00',
'56830f56-5180-fab0-314b-2fa176799a01',
'56830f56-5180-fab0-314b-2fa176799a02',
'56830f56-5180-fab0-314b-2fa176799a03',
'56830f56-5180-fab0-314b-2fa176799a04',
'56830f56-5180-fab0-314b-2fa176799a05',
];
const btn = {
"PAD_LX_LEFT":0,
... |
from django.contrib import admin
from django.urls import path, include, re_path
from django.views.generic import RedirectView
from .views import ReactAppView
urlpatterns = [
path('api-auth/', include('rest_framework.urls')),
path('rest-auth/', include('rest_auth.urls')),
path('rest-auth/registration/', inc... |
from ss.model.functions import Predicate, Function, rename_functions, initialize, TotalCost, Increase
from ss.model.problem import Problem
from ss.model.operators import Action, Axiom
from ss.model.streams import Stream, FnStream, TestStream
from ss.algorithms.incremental import incremental, exhaustive
from ss.algorith... |
# generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot3_navigation"
PROJECT_SPACE_... |
#
# Copyright (c) 2019-2020 Mike's Pub, see https://github.com/mikespub-org
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
import logging
import os.path
import pickle
import time
import flask.json
from flask import Flask, jsonify, request
from flask.views import MethodView
from ... |
from __future__ import absolute_import
from __future__ import unicode_literals
import codecs
import contextlib
import logging
import os
import re
import six
from ..const import IS_WINDOWS_PLATFORM
from .errors import ConfigurationError
from .errors import EnvFileNotFound
log = logging.getLogger(__name__)
def spli... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["stencil-ion-progress-bar-md-entry-js"],{
/***/ "../../node_modules/@ionic/core/dist/esm-es5/ion-progress-bar-md.entry.js":
/*!**************************************************************************************************************************!*\
!... |
export default {
bind(el, binding, vnode) {
const tag = vnode.componentOptions.tag;
// event
let events;
if (tag === 'f7-input') {
const onChange = function (event) {
vnode.context.$meta.util.setProperty(vnode.context, binding.expression, event.target.value);
};
events = {
... |
#!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'page.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... |
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(t){var e=n(2),r=n(14),i=n(4),o=n(8);t.React=e,t.ReactDOMServer=r,t.createReactClass=i,t.PropTypes=o})... |
module.exports = new Date(2030, 9, 14)
|
/*
* ngtcp2
*
* Copyright (c) 2020 ngtcp2 contributors
*
* 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 to use, copy, m... |
import abc
import asyncio
import pathlib
import fiepipelib.assetdata
import fiepipelib.gitstorage
from fiepipelib.assetdata.routines import VersionUpViaFileCopy, INGEST_MODE_MOVE, INGEST_MODE_COPY, IngestFileToVersion, \
EnsureDeleteFile, DeployeTemplateRoutine
from fiepipedesktoplib.assetdata.shell import Abstrac... |
/* eslint-disable import/no-extraneous-dependencies */
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-knobs/register';
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Script para criar os modelos do Django a partir dos datasets
Copyright 2010-2011 Ricardo Lafuente <r@sollec.org>
Licenciado segundo a GPL v3
http://www.gnu.org/licenses/gpl.html
'''
### Set up Django path
import sys, os
projectpath = os.path.abspath('../../')
if pr... |
# -*- coding: utf-8 -*-
"""
Test functions for global optimisation.
Some of these are based on the following library:
BayesOpt, an efficient C++ library for Bayesian optimization.
"""
from typing import Tuple, Callable
import numpy as np
def GM1D(x):
'''1D gaussian mixture'''
# x = np.atleast_2d(x)
v... |
/* XYTable_yx.h
This table is layed out in X=horizontal in each row and Y=vertical rows.
Addressing is: XYTable[y][x] NOTx,y
*/
const uint16_t PROGMEM XYTable[][32] = {
0,1,2,3,4,5,6,7,64,65,66,67,68,69,70,71,128,129,130,131,132,133,134,135,192,193,194,195,196,197,198,199,
15,14,13,12,11,10,9,8,79,78,77,76,75,74,... |
/*
** DynASM ARM encoding engine.
** Copyright (C) 2005-2013 Mike Pall. All rights reserved.
** Released under the MIT license. See dynasm.lua for full copyright notice.
*/
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#define DASM_ARCH "thumb"
#ifndef DASM_EXTER... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"themes/LaunchpadTheme/widgets/Header/nls/strings":{_widgetLabel:"\u9875\u7709",signin:"\u767b\u5... |
import React from 'react';
const Images = (props) =>{
const {index, url, sendIndex} = props;
const doubleClickHandler = () => {
sendIndex(index);
}
return(
<img style={{height:'500px', width: '500px'}} src={url} alt="이미지 로딩 실패" onDoubleClick={doubleClickHandler}/>
)
}
export defaul... |
# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------
# ServiceProfile loader
# ----------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# See LICENSE for details
# --------------------------------------------------------... |
"""Module of switchmap.webserver routes.
Contains all routes that switchmap.s Flask webserver uses
"""
# Flask imports
from flask import Blueprint, render_template, request
# Switchmap-NG imports
from switchmap.main.search import Search
from switchmap.www.pages.device import Device
from switchmap.www import CONFIG
f... |
import os
import sqlite3
import sys
from builtins import object
import numpy as np
import pandas as pd
import emspy
class LocalData(object):
"""
Class to save metadata in a local DB file
"""
default_data_file = os.path.join(emspy.__path__[0], "data", "emsMetaData.db")
table_info = {
"fieldtree": ["uri_root",... |
class QueueItem extends React.Component {
constructor(props) {
super(props);
this.due = new Date(this.props.item.due.getDate ? this.props.item.due : Date.parse(this.props.item.due));
this.clickComplete = this.clickComplete.bind(this);
this.clickDelete = this.clickDelete.bind(this);
... |
/**
* Created by lvtianyu on 16/6/29.
*/
import fetch from 'isomorphic-fetch'
var urlContent = {};
function urlFn(title){
urlContent={
h : sessionStorage.getItem('shareUrl'),
title : title,
content : "我的小秘密,想听吗",
pic : "http://camp.liver-cloud.com/my_plan/dist/... |
define({
"_widgetLabel": "过滤器",
"toggleTip": "单击以显示/隐藏过滤器设置"
}); |
'use strict';
var path = process.cwd();
var UserHandler = require(path + '/app/controllers/userHandler.js');
module.exports = function(app, passport) {
var userHandler = new UserHandler();
app.use('/api/settings', require('./settingsRoute.js'));
app.use('/api/consumer', require('./consumer.js'));
app.use('... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2009 Greenplum, Inc.
//
// @filename:
// CEnumSet.h
//
// @doc:
// Implementation of set of enums as bitset
//---------------------------------------------------------------------------
#ifndef GPOS_CE... |
import { useState, useEffect } from "react";
import { Link, useNavigate } from "react-router-dom";
import { useLogin } from "../../hooks/useLogin";
import { toast } from "react-toastify";
import { useAuthContext } from "../../hooks/useAuthContext";
import { Button } from "react-bootstrap";
import Profile from "../../a... |
password = raw_input('Enter the password:\n')
if 'vampire' in password:
print 'yaay'
else:
print 'poo' |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANT... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'fi', {
armenian: 'Armeenialainen numerointi',
bulletedTitle: 'Numeroimattoman listan ominaisuudet',
circle: 'Ympyrä',
deci... |
# This script takes a file of gene designations (sorted) and combines any overlapping regions.
# Can either preserve strand information and discard ambiguous regions or
# discard strand information to preserve ambiguous regions.
from typing import List
from benbiohelpers.TkWrappers.TkinterDialog import TkinterDialog
f... |
import os
import numpy as np
import matplotlib.pyplot as plt
WINDOW_SIZE = 20
N_EVAL_EPISODES = 5
MAX_EP_LENGTH = 1000
THRESHOLD = -0.01
def moving_average(values, window):
"""
Smooth values by doing a moving average
:param values: (numpy array)
:param window: (int)
:return: (numpy array)
"""... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){ret... |
import { flow, pipe } from './function';
export function of(F) {
return function (a) { return function () { return F.of(a); }; };
}
export function map(F) {
return function (f) { return function (fa) { return function (r) { return F.map(fa(r), f); }; }; };
}
export function ap(F) {
return function (fa) { re... |
import React, { Component } from 'react';
import Reader from '../Reader';
import Character from '../../Character';
import {request} from '../../util';
import {event, setUser, getStartupUser} from '../../track';
import './index.css';
/**
* Root component
* Contains the entire application
*
* @class App
* @extend... |
'use strict';
const yelp = require('yelp-fusion');
const config = require('./config.json'); // config file contains client id/secret in JSON
const clientId = config.clientId;
const clientSecret = config.clientSecret;
// pull data from yelp api and return promise
const getYelpFood = function(lat, long) {
// return n... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
// -----------------------------------------------------------------------------------
// http://wowslider.com/
// JavaScript Wow Slider is a free software that helps you easily generate delicious
// slideshows with gorgeous transition effects, in a few clicks without writing a single line of code.
// Generated by WOW... |
async Remove(id) {
return await this.§plural.removeOne({ _id: ObjectId(id) });
} |
// WARNING: THIS FILE IS AUTOGENERATED! As such, it should not be edited.
// Edits need to be made to the proto files
// (see https://github.com/mavlink/MAVSDK-Proto/blob/master/protos/geofence/geofence.proto)
#pragma once
#include <array>
#include <cmath>
#include <functional>
#include <limits>
#include <memory>
#in... |
from pomodorr.tools.context_processors import settings_context
def test_settings_context(request_factory):
request = request_factory.get('/')
context = settings_context(request)
assert context is not None
|
import cv2 as cv
import argparse
import sys
import numpy as np
import os.path
import time
print("PYTHON RUNNING")
# Initialize the parameters
confThreshold = 0.5 # Confidence threshold
nmsThreshold = 0.4 # Non-maximum suppression threshold
inpWidth = 416 # Width of network's input image
inpHeight = 416 # Height o... |
exports.up = function (knex, Promise) {
return knex.schema.createTable('notes', (tbl) => {
tbl.increments();
tbl.string('title').notNullable();
tbl.string('content').notNullable();
});
};
exports.down = function (knex, Promise) {
return knex.schema.dropTableIfExists('notes');
}; |
# -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-present Rapptz
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... |
$(document).ready(function() {
$('.click-table tr').click(function(event) {
if (event.target.type !== 'checkbox') {
$(':checkbox', this).trigger('click');
}
});
});
|
import itertools
import logging
import math
import re
import string
from collections import defaultdict, OrderedDict
from sortedcontainers import SortedDict
import claripy
import cle
import pyvex
from cle.address_translator import AT
from archinfo.arch_soot import SootAddressDescriptor
from archinfo.arch_arm import i... |
/*
* bootstrap-table - v1.9.1 - 2015-10-25
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2015 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.fn.bootstrapTable.locales["it-IT"]={formatLoadingMessage:function(){return"Caricamento in corso..."},formatRecordsPerPage:function(a){return a+"... |
import numpy as np
class interval_baseline:
def __init__(self,alpha):
self.alpha = alpha
def fit(self,X_train,y_train):
upper = np.quantile(y_train.flatten(),(1-self.alpha/2))
lower = np.quantile(y_train.flatten(),self.alpha/2)
self.upper_prediction = upper
self.lower_prediction = lower
def p... |
import sys
import os.path
import numpy as np
import pandas
import typing
from typing import List
from sklearn.manifold import TSNE
from d3m.primitive_interfaces.transformer import TransformerPrimitiveBase
from d3m.primitive_interfaces.base import PrimitiveBase, CallResult
from d3m import container, utils
from d3m.con... |