text stringlengths 3 1.05M |
|---|
# Generated by Django 2.1.1 on 2018-09-16 05:52
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('projects', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='project',
... |
import React, { Component } from "react";
import axios from "axios";
import ReactHtmlParser from "react-html-parser";
import BlogForm from "../blog/blog-form";
import BlogFeaturedImage from "../blog/blog-featured-image";
export default class BlogDetail extends Component {
constructor(props) {
super(props);
... |
/*! For license information please see app.js.LICENSE.txt */
(()=>{var e,t={669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),i=n(26),o=n(372),a=n(327),u=n(97),s=n(109),c=n(985),l=n(61);e.exports=function(e){return new Promise((function(t,n){var f=e.data,p=e.headers,d=e.responseType;r.isFormData(f... |
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import sklearn.datasets
if __name__ == '__main__':
ax = plt.gca()
im_arr = mpimg.imread('tufts-elephant-logo.png')
H, W, n_colors = im_arr.shape
# blobs with varied variances
x_ND, y_N = sklearn.datasets.make_mo... |
# coding utf-8
import sys
w=sys.argv[1]
for x in range(0,len(w)):print(chr(ord(w[x])-x),end="")
|
#!/usr/bin/env python
"""nutanix_vm_cpu_ready - Uses Nutanix REST API to get summary of performance stats.
Requires requests
pip install requests
"""
import json
import time
import operator
import requests
import logging.config
from credentials import NUTANIX_USER # Login info now stored in credentials.py
from crede... |
from functools import lru_cache
from math import isclose
import audioread
import numpy as np
import pytest
from pytest import mark, raises
from lhotse.audio import AudioMixer, AudioSource, Recording, RecordingSet
from lhotse.testing.dummies import DummyManifest
from lhotse.utils import INT16MAX
from lhotse.utils impo... |
const constants = require('./src/consts');
const tools = require('./src/tools');
const browserTools = require('./src/browser_tools');
const { runActor } = require('./src/run_actor');
const { createContext } = require('./src/context');
module.exports = {
constants,
createContext,
tools,
browserTools,
... |
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='landing'),
path('schedule/', views.schedule, name='schedule'),
path('callback/', views.callback, name='callback'),
path('connect/', views.connect, name='connect'),
path('session/', views.session, name='sess... |
from unittest import TestCase, main, mock
from ..request import BackendConnection, InvalidTokenError, WaldurConnection
class MockResponse:
def __init__(self, data, code):
self.data = data
self.status_code = code
def json(self):
return self.data
def send_ok(request, *args, **kwargs):... |
import numpy as np
def sceneRadianceRGB(sceneRadiance):
sceneRadiance = np.clip(sceneRadiance, 0, 255)
sceneRadiance = np.uint8(sceneRadiance)
return sceneRadiance
|
'use strict';
require('@css/theme.scss');
const $ = require('jquery');
const Swal = require('sweetalert2')
const ajax = require('@js/ajax')
window.toastr = require('toastr');
require('toastr/build/toastr.min.css');
$('.js-delete-element').click(function(event){
event.preventDefault();
// Extract delete url... |
import { default as React, useState, useEffect, useCallback } from 'react';
import { useHistory, Link } from 'react-router-dom';
import * as Routes from '../routes';
import {
EventListPaged,
VenueList,
} from '../components';
import './homePage.scss';
import buttonAgenda from '../_static/images/btn/btn-home-agenda... |
# -*- coding: utf-8 -*-
# Django settings for social pinax project.
import os.path
import posixpath
import pinax
PINAX_ROOT = os.path.abspath(os.path.dirname(pinax.__file__))
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# tells Pinax to use the default theme
PINAX_THEME = 'default'
DEBUG = True
TEMPLAT... |
# Copyright (c) # Copyright (c) 2018-2020 CVC.
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
""" This module implements an agent that roams around a track following random
waypoints and avoiding other vehicles.
The agent also responds to traffic ... |
#ifndef EVERYSOCKETSERVER_SERVER_INIT_H
#define EVERYSOCKETSERVER_SERVER_INIT_H
#include <atomic>
//single-init-object
class ServerInit {
public:
virtual ~ServerInit() = default;
ServerInit& operator=(const ServerInit&) = delete;
ServerInit(const ServerInit&) = delete;
static ServerInit& get_instance()... |
"""
ASGI config for vet_project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... |
years = [1,2,3,4,5,6,7,8,9,10,11,12]
days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
for year in years:
for day in range(1, days[year-1]+1):
hbd = "%02d.%02d"%(year, day)
print(hbd) |
from django.db import models
from django.urls import reverse
import random
class Product(models.Model):
def random_star():
return "{0:.1f}".format(random.uniform(4, 5))
def random_review():
return "{}".format(random.randint(1, 1670))
user = models.ForeignKey(
"users.User",
... |
from __future__ import absolute_import, division, print_function
import torch
import timm
from lucent.optvis import render, param, transform, objectives
from lucent.modelzoo import inceptionv1, inception_v3
import lucent.modelzoo as mdz
import matplotlib.pyplot as plt
import torchvision.models as torchmods
from effici... |
/*************************************************************************************
* MIT License *
* *
* Copyright (C) 2016 Charly Lamothe, Stéphane Arcellier ... |
escolha = ''
maioresdeidade = 0
quantidadeHomens = 0
MulheresMais20 = 0
idade = 0
sexo = ''
while escolha != "N":
idade = int(input("Digite sua idade: "))
if idade > 110 or idade < 0:
print("Dado digitado é inválido, digite novamente")
continue
sexo = str(input("Digite seu sexo: ")).upper()... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'adv_link', 'ar', {
acccessKey: 'مفاتيح الإختصار',
advanced: 'متقدم',
advisoryContentType: 'نوع التقرير',
advisoryTitle: 'عنوان التقرير',
anchor:... |
module.exports = {
purge: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
darkMode: false, // or 'media' or 'class'
theme: {
colors: {
black: {
DEFAULT: '#363636',
light: '#dcdcdc',
},
blue: {
DEFAULT: '#35649c',
... |
/**
* @fileoverview Rule to flag unsafe statements in finally block
* @author Onur Temizkan
*/
"use strict";
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
const SENTINEL_NODE_TYPE_RETURN_... |
const profile_image = new Set();
const sejarah_image = new Set();
$(function () {
// Summernote
$('.summernote').summernote({
toolbar: [
['fontsize', ['fontsize']], ['fontname', ['fontname']], ['style', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']],
... |
import axios from 'axios';
import { setAlert } from './alert';
import { LOGIN_FAIL, LOGIN_SUCCESS } from './types';
|
"""Finetune 3D CNN."""
import os
import argparse
import time
import random
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch.utils.data import DataLoader, random_split
from torchvision import transforms
import torch.optim as optim
from tensorboardX import SummaryWriter
from datasets... |
/*
* Copyright (c) 2016, Pycom Limited.
*
* This software is licensed under the GNU GPL version 3 or any
* later version, with permitted additional terms. For more information
* see the Pycom Licence v1.0 document supplied with this file, or
* available at https://www.pycom.io/opensource/licensing
*/
#define GP... |
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/v3/api_proto/permission_objects.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.p... |
from typing import Callable, Iterator, Sized, TypeVar
from torch.utils.data.datapipes._decorator import functional_datapipe
from torch.utils.data._utils.collate import default_collate
from torch.utils.data.datapipes.datapipe import IterDataPipe
from torch.utils.data.datapipes.utils.common import check_lambda_fn
T_co ... |
# extracts features of 1d array like data.
import numpy as np
import scipy
from scipy.stats import norm, rankdata
class Features(object):
def __init__(self, x):
self.x = x
class Trends(Features):
"""
Arguments:
x array/list/series: 1d array or array like whose features are to be calculated.... |
"""
This script can be called to run DNS related test.
"""
from __future__ import absolute_import
import subprocess
import sys
import re
import datetime
arguments = sys.argv
test_request = str(arguments[1])
cap_pcap_file = str(arguments[2])
device_address = str(arguments[3])
report_filename = 'dns_tests.txt'
m... |
#pragma once
#ifndef WIN32
#error Should not get here
#endif
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x500
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include "windows.h"
|
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]; } } } return target; };
var _createClass = function () { function defineProperties(ta... |
/*
* Copyright 2015 Amadeus s.a.s.
* 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... |
from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
class AzureScaleSetPassword(BaseResourceValueCheck):
def __init__(self):
name = "Ensure Azure linux scale set does not use basic authentication(Use SSH Key... |
#coding:utf-8
'''
author : linkin
e-mail : yooleak@outlook.com
date : 2018-11-16
'''
from amipy.util.load import load_py
class Settings(dict):
def __init__(self):
super(Settings,self).__init__()
self['project'] = type('project_settings',(),{})
def set_module(self,path,level='pr... |
#ifndef Vxa_Interface
#define Vxa_Interface
/*********************
***** Linkage *****
*********************/
#ifdef VXA_EXPORTS
#define Vxa_API DECLSPEC_DLLEXPORT
#else
#define Vxa_API DECLSPEC_DLLIMPORT
#ifdef _WIN32
#pragma comment(lib, "vxa.lib")
#endif
#endif
#define Vxa_NAMESPACE_ENTER namespace Vxa {
#... |
import Vue from 'vue';
import { t } from './filters/filters';
import Container from './components/FormConfig/Container.vue';
import Field from './components/FormConfig/types/Field.vue';
import Html from './components/FormConfig/types/Html.vue';
import Editor from './components/Partials/Editor.vue';
// require styles
i... |
# -*-coding: utf-8
"""
flaskext.rbac
~~~~~~~~~~~~~
Adds Role-based Access Control modules to application
"""
import itertools
from collections import defaultdict
from flask import request, abort, _request_ctx_stack
try:
from flask import _app_ctx_stack
except ImportError:
_app_ctx_stack = None
... |
"""Implements the Point Cloud extension.
https://github.com/stac-extensions/pointcloud
"""
from typing import Any, Dict, Generic, List, Optional, Set, TypeVar, cast
import pystac
from pystac.extensions.base import (
ExtensionManagementMixin,
PropertiesExtension,
)
from pystac.extensions.hooks import Extensio... |
"""General user settings commands."""
import sys
import contextlib
import yaml
from jacquard.users import get_settings
from jacquard.storage import retrying
from jacquard.commands import BaseCommand, CommandError
class SetDefault(BaseCommand):
"""
Manipulate the current defaults.
This is one of the ma... |
# Generated by Django 3.2.4 on 2021-07-07 00:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timewebapp', '0053_auto_20210706_1609'),
]
operations = [
migrations.AddField(
model_name='timewebmodel',
name='need... |
var readInstalled = require("../read-installed.js");
var test = require("tap").test;
var path = require("path");
test("Handle bad path", function (t) {
readInstalled(path.join(__dirname, "../unknown"), {
dev: true,
log: console.error
}, function (er, map) {
t.notOk(er, "er should be null");
t.o... |
module.exports = config = {
db_url : "mongodb://localhost:27017/rent_management_database"
}; |
// https://eslint.org/docs/user-guide/configuring
module.exports = {
/* eslint-disable */
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to... |
import Store from './Store';
import Model from './TodoModel';
import Template from './TodoTemplate';
import Controller from './TodoCtrl';
import View from './TodoView';
import './Helpers';
class TodoApp {
constructor(name) {
this.storage = new Store(name);
this.model = new Model(this.storage);
this.template = n... |
const db = require('../models');
const config = require('../config/auth.config');
const User = db.user;
const { Op } = db.Sequelize;
const jwt = require('jsonwebtoken');
const bcrypt = require('bcryptjs');
exports.signup = (req, res) => {
// Save User to Database
User.create({
username: req.body.username,
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy... |
import numpy as np
import pandas as pd
import argparse
import os
def user_input():
parser = argparse.ArgumentParser()
parser.add_argument('-f', help='Path to CG structure generated by martinize2 using the -govs-include -govs-moltype flags')
parser.add_argument('--molname', default='molecule_0', help='Molecule name u... |
import random
import pytest
from raiden.constants import UINT64_MAX
from raiden.messages import RevealSecret, SecretRequest, Unlock
from raiden.tests.utils.factories import (
HOP1_KEY,
UNIT_CHAIN_ID,
UNIT_SECRET,
UNIT_SECRETHASH,
make_channel_identifier,
)
from raiden.tests.utils.messages import m... |
import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle`
body {
font-family: -apple-system, BlinkMacSystemFont, "IBM Plex Sans",
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
"Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-s... |
#!/usr/bin/env python
"""Tests for grr.lib.email_alerts."""
from grr.lib import config_lib
from grr.lib import email_alerts
from grr.lib import flags
from grr.lib import test_lib
class SendEmailTests(test_lib.GRRBaseTest):
def testSplitEmailsAndAppendEmailDomain(self):
self.assertEqual(email_alerts.SplitEmai... |
"""
Matches a dictionary that contains the specified key/value pair(s).
"""
from typing import Any, Hashable, Mapping, TypeVar, overload
from hamcrest import has_entries
from hamcrest.library.collection.isdict_containingentries import IsDictContainingEntries
from .base_resolution import BaseResolution
K = TypeVar("... |
# standard libraries
import argparse
import os
import json
import tqdm
import glob
from speech.utils import data_helpers
from speech.utils import wave
def load_phone_map():
with open("phones.60-48-39.map", 'r') as fid:
lines = (l.strip().split() for l in fid)
lines = [l for l in lines if len(l) ==... |
#include<stdio.h>
int main()
{
char x[10000];
while(gets(x))
{
printf("%s\n",x);
}
return 0;
}
|
/* wolfcrypt_last.c
*
* Copyright (C) 2006-2020 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL 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 3 of the License, or
* (at you... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
#include "chrom... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "swift");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
// Ensure all number... |
var map, maplayer, aeriallayer, playermarkers, blipmarkers;
var playericon = new OpenLayers.Icon("geticon.htm?id=02", new OpenLayers.Size(15,15));
var deadicon = new OpenLayers.Icon("geticon.htm?id=23", new OpenLayers.Size(15,15));
var radaricons = new Array();
for ( var i =0; i <= 63; i++ )
{
var ai = i;
if ( ai <= ... |
# -*- coding: utf-8 -*-
# Copyright (c) 2020 Ramon van der Winkel.
# All rights reserved.
# Licensed under BSD-3-Clause-Clear. See LICENSE file for details.
""" Kleine http server om echte transacties vanuit de NHB IT applicaties
af te kunnen handelen tijdens een test.
Luistert op localhost poort 8123
... |
//
// NSString+LZBTranscoding.h
// LZBKeyBoardView
//
// demo地址:https://github.com/lzbgithubcode/LZBKeyBoardView.git
// Created by zibin on 16/12/6.
// Copyright © 2016年 apple. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (LZBTranscoding)
/**
* 将十六进制的编码转为emoji字符
*/
+ (NSString ... |
import argparse
def calcolatrice(n1, n2, operazione):
if operazione == "add":
return n1 + n2
elif operazione == "sot":
return n1 - n2
elif operazione == "mol":
return n1 * n2
elif operazione == "div":
return n1 / n2
parser = argparse.ArgumentParser(description="Semplice... |
const joi = require('joi').extend(require('@hapi/joi-date'));
const {
joiValidationDecorator,
validEntityDecorator,
} = require('../JoiValidationDecorator');
DeadlineSearch.JOI_VALID_DATE_SEARCH_FORMATS = ['MM/DD/YYYY'];
/**
* Deadline Search entity
*
* @param {object} rawProps the raw document search data
* ... |
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#ifndef ENGINE_SHARED_JOBS_H
#define ENGINE_SHARED_JOBS_H
#include <base/tl/array.h>
typedef int (*JOBFUNC)(void *pData);
cla... |
"""Root package info."""
__version__ = '1.0.3'
__author__ = 'William Falcon et al.'
__author_email__ = 'waf2107@columbia.edu'
__license__ = 'Apache-2.0'
__copyright__ = 'Copyright (c) 2018-2020, %s.' % __author__
__homepage__ = 'https://github.com/PyTorchLightning/pytorch-lightning'
# this has to be simple string, see... |
const prefix = require('./environment');
module.exports = {
api_key: process.env[`${prefix}SENDGRID_API_KEY`],
fromEmail: process.env[`${prefix}SENDGRID_FROM_EMAIL`],
nameFromEmail: process.env[`${prefix}SENDGRID_NAME_FROM_EMAIL`],
mails: {
welcome: {
transactionalId: process.env[`${prefix}SENDGRID_W... |
var dataTable;
$(document).ready(function () {
loadDataTable();
});
function loadDataTable() {
dataTable = $('#tblData').DataTable({
"ajax": {
"url": "/Movie/GetAllMovies",
"type": "GET",
"datatype": "json"
},
"columns": [
{ "data": "nam... |
read_register = {
"5003": "daily_power_yield_10",
"5004": "total_power_yield",
"5008": "internal_temp_10",
"5011": "pv1_voltage_10",
"5012": "pv1_current_10",
"5013": "pv2_voltage_10",
"5014": "pv2_current_10",
"5017": "total_pv_power",
"5019": "grid_voltage_10",
"5022": "inverter_current_... |
const path = require('path');
const requireESM = require('esm')(module);
const Self = requireESM('../src/index').default;
let lastProgress;
const config = (name, color) => ({
mode: 'production',
context: __dirname,
devtool: false,
target: 'node',
entry: './index.js',
stats: false,
output: {
filena... |
#
# MIT License
#
# Copyright (c) 2020 Airbyte
#
# 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, modify, merge, pu... |
from time import time
import numpy as np
import matplotlib.pyplot as plt
import os
from sklearn.manifold import TSNE
import sys
from utils import window_perm_sliding_img
def get_data(_type):
label = np.load('data/mnist_labels.npy')
if _type == 'origin':
data = np.load('data/mnist_data.npy').astype(np.f... |
n = int(input())
for i in range(n):
li = list(map(int, input().split()))
total = 0
for c,j in enumerate(li):
if c != 0:
total -= 1
total += j
print(total + 1)
|
// dear imgui: Renderer Backend for Vulkan
// This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..)
// Implemented features:
// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices.
// [X] Renderer: User texture binding. Changes of ImTextureID aren't supported by... |
"use strict";
var samsam = require("@sinonjs/samsam");
var functionName = require("@sinonjs/commons").functionName;
var typeOf = require("@sinonjs/commons").typeOf;
var formatio = {
excludeConstructors: ["Object", /^.$/],
quoteStrings: true,
limitChildrenCount: 0
};
var specialObjects = [];
if (typeof gl... |
import {editor, getEditorValue, colorize, resetColors} from './editor';
let canvas = document.getElementById("learning-canvas");
let Colors = {
LightBlue: "#4477FF",
Pink: "#FF6EAB",
LightGreen: "#9FCC60",
}
let ctx = canvas.getContext("2d");
ctx.translate(0.5, 0.5);
let canvasWidth = 1280;
let canvasHeight... |
const dropArea = document.getElementById('FileSelector'),
fs = require("fs");
dropArea.addEventListener('change', (event) => {
getAFile(event.target.files[0]);
});
dropArea.addEventListener('dragover', (event) => {
event.stopPropagation();
event.preventDefault();
event.dataTransfer.dropEffect = 'cop... |
import re
import sys
import os
def sql_ebind(sql, bind = {}, bind_marker = '?'):
"""
sql_ebind
see sql_ebind doc on GitHub
Args:
sql (string): The sql query with params to be bound
bind (Dict): Dict of params to bind
bind_marker (str): string to use for parameter placeholder
... |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[61],{2334:function(e,n,t){"use strict";t.r(n);var a=t(1),o=t.n(a),c=t(51),r=t(2396),l=t(2399),i=t(2368),s=t(2400),u=t(2364),m=t(2380),f=t(2471),b=t(2402),d=t(2363),p=t(131),v=t.n(p),h=t(85),C=t(82),E=Object(c.a)((function(e){return{closeButt... |
# -*- coding: utf-8 -*-
import glob
import numpy as np
from pathlib import Path
import sh
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import callbacks
from model import dataio, model
# specify directory as data io info
BASEDIR = Path('/Users/biplovbhandari/Works/SIG/hydrafloods/tf-vgg1... |
const AddressManualPageObject = require('./base/AddressManualPageObject').AddressManualPageObject
class InvoiceAddressManualPage extends AddressManualPageObject {
get title () { return 'Where should we send invoices for the annual costs after the permit has been issued?' }
}
module.exports = InvoiceAddressManualPag... |
class Solution:
def alienOrder(self, words: List[str]) -> str:
graph = dict()
indegree = dict()
for word in words:
for ch in word:
graph[ch] = graph.get(ch, set())
for i, word in enumerate(words):
if i == 0:
... |
/* eslint-disable strict */
// (Node 4 compat)
'use strict'
const http = require('http')
const SseChannel = require('sse-channel')
module.exports = (onRequest, cb) => {
const server = http.createServer((request, response) => {
let channel
if (
request.url.indexOf('/v1/data/listen/') === 0 ||
re... |
from typing import List, Optional
import aiosqlite
from chaingreen.types.blockchain_format.coin import Coin
from chaingreen.types.blockchain_format.sized_bytes import bytes32
from chaingreen.types.coin_record import CoinRecord
from chaingreen.types.full_block import FullBlock
from chaingreen.util.db_wrapper import DB... |
/*
* testdatefmtrange_en_US.js - test the date range formatter object in US English
*
* Copyright © 2012-2017,2020 JEDLSoft
*
* 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
*
* h... |
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
import os
from setuptools import find_packages, setup
__version__ = '6.5.2'
requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(requirements_path) as requirements_file:
... |
/* ST Microelectronics ISM330DHCX 6-axis IMU sensor driver
*
* Copyright (c) 2020 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*
* Datasheet:
* https://www.st.com/resource/en/datasheet/ism330dhcx.pdf
*/
#define DT_DRV_COMPAT st_ism330dhcx
#include <kernel.h>
#include <drivers/sensor.h>
#include ... |
# General snippets
snippets = {
"def (snippet)": "# ----------------------------------------------------------------------\ndef [!](self):\n \"\"\"\"\"\"",
}
snippets_ = [
"random.randint([!])", "random.shuffle([!])",
]
keywords = [
'and', 'assert', 'break', 'class', 'continue',
'del', 'elif', '... |
from __future__ import division
import os
from collections import namedtuple
from logging import getLogger
import json
from azure.storage.blob import BlockBlobService
from azure.common import (AzureMissingResourceHttpError, AzureHttpError)
from azure.storage.blob.models import ContentSettings
from .constants import (... |
def extractTwig(item):
"""
# 'Twig'
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol or frag) or 'preview' in item['title'].lower():
return None
return False
|
from collections.abc import Iterable
import warnings
from copy import deepcopy
from typing import Any, List, Tuple, Hashable
import numpy as np
from scipy.interpolate import CubicSpline
import qutip
from qutip import Qobj, QobjEvo, identity, tensor, mesolve, mcsolve
from ..operations import expand_operator, globalpha... |
import React from "react";
import PropTypes from "prop-types";
import styled, { keyframes } from "styled-components";
const rotate = () => keyframes`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`;
const move = props => keyframes`
0%{
transform: trans... |
"""
Geometry factories based on the geo interface
"""
import warnings
from shapely.errors import GeometryTypeError
from shapely.errors import ShapelyDeprecationWarning
from .point import Point
from .linestring import LineString
from .polygon import LinearRing, Polygon
from .multipoint import MultiPoint
from .multilin... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
module.exports = {
name: 'swup... |
# encoding: UTF-8
from leetcode import *
import collections
from typing import Union
Pair = collections.namedtuple('Pair', ['position', 'value'])
@Problem(1, 'Two Sum', Difficulty.Easy, Tags.Array, Tags.HashTable)
class Solution:
"""
Given an array of integers, return indices of the two numbers such that th... |
# -*- coding: utf-8 -*-
"""
sphinx.errors
~~~~~~~~~~~~~
Contains SphinxError and a few subclasses (in an extra module to avoid
circular import problems).
:copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
if False:
# For type annot... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2020 Mozilla Foundation
*
* 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... |