text
stringlengths
3
1.05M
import pyvista pyvista.global_theme.slider_styles.modern.cap_opacity = 1.0
''' Produce longest WFF with provided inputs Status: Accepted ''' import argparse ############################################################################### def longest_wff(text): '''Return greedy wff of longest length''' unary, binary, literal = [], [], [] for glyph in text: if glyph in '...
/* @flow */ // Provides transition support for a single element/component. // supports transition mode (out-in / in-out) import { warn } from 'core/util/index' import { camelize, extend, isPrimitive } from 'shared/util' import { mergeVNodeHook, getFirstComponentChild } from 'core/vdom/helpers/index' export ...
"""add index to Publisher.Name Revision ID: e4887a8bedc7 Revises: e7be9204aa67 Create Date: 2021-06-13 19:08:38.514358 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e4887a8bedc7' down_revision = 'e7be9204aa67' branch_labels = None depends_on = None def upg...
import State from '../../../../generics/state'; import ChangeState from '../../../../generics/state-action/change-state'; import { isActorWalkingRight, isActorWalkingLeft, stopActorWalking, updateWalkingActor } from '../../../actions/movement'; import WalkingRight from './walking-right'; import WalkingLeft from './wa...
const controller = require('../controllers/non-chargeable'); const preHandlers = require('../pre-handlers'); const { VALID_GUID } = require('shared/lib/validators'); const Joi = require('joi'); const { chargeVersionWorkflowEditor, chargeVersionWorkflowReviewer } = require('internal/lib/constants').scope; const allowedS...
from django.conf import settings from django.core.handlers.wsgi import get_path_info, WSGIHandler from django.utils.six.moves.urllib.parse import urlparse from django.utils.six.moves.urllib.request import url2pathname from django.contrib.staticfiles import utils from django.contrib.staticfiles.views import serve cla...
/* ARM NEON intrinsics include file. Copyright (C) 2006-2017 Free Software Foundation, Inc. Contributed by CodeSourcery. This file is part of GCC. GCC 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 Found...
import numpy as np from rlscore.learner import RLS from rlscore.measure import sqerror from housing_data import load_housing def train_rls(): X_train, Y_train, X_test, Y_test = load_housing() learner = RLS(X_train, Y_train, kernel="GaussianKernel", regparam=0.0003, gamma=0.00003) #Leave-one-out cross-val...
import networkx as nx from nose.tools import * def small_ego_G(): """The sample network from http://arxiv.org/pdf/1310.6753v1.pdf""" edges=[('a','b'), ('a','c'), ('b','c'), ('b','d'), ('b', 'e'),('b','f'),('c','d'),('c','f'),('c','h'),('d','f'), ('e','f'), ('f','h'),('h','j'), ('h','k'),...
// Copyright (c) 2015-2017 The Pizcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef PIZCOIN_SCHEDULER_H #define PIZCOIN_SCHEDULER_H // // NOTE: // boost::thread / boost::chrono should be ported to std...
import React from 'react'; const Logo = (props) => { return ( <img alt="Logo" src="/static/logo1.svg" {...props} /> ); }; export default Logo;
""" pertinent_user.py -------------- This class represents a pertinent user. """ __author__ = "Steven M. Satterfield" class PertinentUser: def __init__(self): self._id = "" self._participantid = "" self._group = "" self._userid = "" def getId(self): ...
// *************************************************************** // Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved. // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // ***************************...
#!/usr/bin/env python3 import argparse import re from collections import defaultdict from hopcroftkarp import HopcroftKarp import sys def main(args): """ """ with open(args.input, 'r') as fh: data = fh.read().split('\n') allergens_map = defaultdict(list) all_ingred = list() ...
/* * Copyright (C) 2014, Galois, Inc. * This sotware is distributed under a standard, three-clause BSD license. * Please see the file LICENSE, distributed with this software, for specific * terms and conditions. */ #ifndef MINLIBC_ALLOCA_H #define MINLIBC_ALLOCA_H #define alloca(x) __builtin_alloca(x) #endif
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); var _createClass2 = _inte...
import {localeModule, test} from '../qunit'; import moment from '../../moment'; localeModule('zh-tw'); test('parse', function (assert) { var tests = '一月 1月_二月 2月_三月 3月_四月 4月_五月 5月_六月 6月_七月 7月_八月 8月_九月 9月_十月 10月_十一月 11月_十二月 12月'.split('_'), i; function equalTest(input, mmm, i) { assert.equal(moment(inpu...
/** * This software is subject to the ANT+ Shared Source License * www.thisisant.com/swlicenses * Copyright (c) Dynastream Innovations, Inc. 2012 * All rights reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * con...
'use strict' // Pull in our modules const chalk = require('chalk') const boxen = require('boxen') const fs = require('fs') const path = require('path') // Define options for Boxen const options = { padding: 1, margin: 1, borderStyle: 'round', } // Text + chalk definitions const data = { name: chalk.white(' ...
from __future__ import absolute_import, division, print_function, unicode_literals import struct from itertools import izip from timeit import default_timer as now from scannerpy.common import * from scannerpy.column import Column class Table: """ A table in a Database. Can be part of many Collection obj...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
import tensorflow as tf x = tf.Variable(5) x = tf.assign_add(x,1) sess = tf.Session() sess.run(tf.global_variables_initializer()) print(sess.run(x)) print(sess.run(x)) sess.close()
# pylint: disable=invalid-name,no-self-use import torch from allennlp.common.testing import AllenNlpTestCase from allennlp.modules.seq2seq_encoders.bidirectional_transformer_encoder import BidirectionalTransformerEncoder class TestBidirectionalTransformerEncoder(AllenNlpTestCase): def test_bidirectional_transform...
/****************************************************************************** SparkFunMPU9250-DMP.h - MPU-9250 Digital Motion Processor Arduino Library Jim Lindblom @ SparkFun Electronics original creation date: November 23, 2016 https://github.com/sparkfun/SparkFun_MPU9250_DMP_Arduino_Library This library implemen...
# Copyright 2021 Injective Labs # # 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 writin...
""" this algorithms receive array and check most_frequent_value(a.k.a mode). Also, sometimes it can be have numerous most_frequent_value, so this funtion returns list. This result can be used as finding representative value on array. This algorithms get array, and make dictionary of it, find most frequent count, and m...
import pandas as pd import numpy as np import tensorflow as tf import sys sys.path.append("/data") csv = pd.read_csv("bmi.csv") csv["height"] = csv["height"] / 200 csv["weight"] = csv["weight"] / 100 bclass = {"thin": [1, 0, 0], "normal": [0, 1, 0], "fat": [0, 0, 1]} csv["label_pat"] = csv["label"].apply(lambda x: np....
# coding=utf-8 # Copyright 2020 The TF-Agents 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 la...
import torch import numpy as np import time import matplotlib.pyplot as plt train_on_gpu = torch.cuda.is_available() if not train_on_gpu: print('CUDA is not available. Training on CPU ...') else: print('CUDA is available! Training on GPU ...') from torchvision import datasets, models imp...
import dynamodb def test_convert_null_to_empty_string(): data = { "test": 1, "none_value": None, "good_string": "string_val", "word_none": "None", "empty_string": "" } expected = { "test": 1, "none_value": None, "good_string": "string_val", ...
import pygame from gameBoard import GameBoard from inputManager import InputManager from handler import Handler from numeration import Numbers from sound import Sound from chipGame import Chip from fileManager import FileManager from button import Button from buttonColumns import ButtonColumns from menu import Menu fr...
import json import os import os.path from contextlib import closing from urllib.request import urlopen from django_tqdm import BaseCommand from thenewboston_node.business_logic.blockchain.base import BlockchainBase from thenewboston_node.business_logic.models import AccountState, BlockchainState from thenewboston_nod...
import re import json import os import flask_mongorest from flask import request, Blueprint import pandas as pd from pandas.io.json._normalize import nested_to_record from itertools import groupby from scipy.optimize import brentq from scipy.constants import pi, R from scipy.integrate import quad import pymatgen.core.p...
from enum import Enum class AnsiColor(Enum): RESET = '[0m' RED = '[91m' YELLOW = '[33m' def colorize(text: str, color: AnsiColor) -> str: return '\x1b{}{}\x1b{}'.format( color.value, text, AnsiColor.RESET.value, )
for (x of xs);
/* !@ MIT License Copyright (c) 2020 Skylicht Technology CO., LTD 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...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/region_similarity_calculator.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import ...
/** * SurveyTerms component. * * Site Kit by Google, Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * ...
from mangopaysdk.mangopayapi import MangoPayApi from tests.testbase import TestBase from mangopaysdk.types.exceptions.responseexception import ResponseException class Test_Configurations(TestBase): def test_confInConstruct(self): sdk = MangoPayApi() sdk.Config.ClientID = "test_asd" ...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import logging from typing import Type, Optional, Dict, Any from fbpcs.pl_coordinator.pl_graphapi_utils i...
#---------------------------------------------------------------------- # Copyright (c) 2011-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/bytestream/bytestream.proto #ifndef PROTOBUF_google_2fbytestream_2fbytestream_2eproto__INCLUDED #define PROTOBUF_google_2fbytestream_2fbytestream_2eproto__INCLUDED #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PRO...
from .DtnAbstractParser import DtnAbstractParser from pydantic import confloat class DtnScheduledMobilityModelParser(DtnAbstractParser): """ Parser for YAML configuration parameters of DtnScheduledMobilityModel """ # Excel listing all contacts contacts : str # Excel listing all ranges ranges : str...
from django.db import models from django.contrib.auth.models import User # Create your models here. class UserProfile(User): level=models.SmallIntegerField(default=1) coincidences=models.SmallIntegerField(default=2) token=models.CharField(default='img',max_length=3) victory_text=models.CharField(defaul...
from .base_module import BaseModule from .blocks import AdaResBlock, ConvBlock, ResBlock from .hidt_model import HiDTModel from .protostar_model import ProtostarModel
# encoding:utf-8 import urllib2 import urllib """ ajax的请求方式是:post 因为使用的是python的库的方式,返回状态码为418,触发了反扒机制 添加上headers,模拟浏览器即可 """ url = "https://movie.douban.com/j/chart/top_list?type=10&interval_id=100%3A90&action" headers = {"User-Agent": "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0);"} formdata = {"l...
exports.up = function(knex) { return knex.schema.createTable("shared_users", tbl => { tbl .integer("user_id") .notNullable() .unsigned() .references("users.user_id") .onUpdate("CASCADE") .onDelete("CASCADE"); tbl .integer("deck_id") .notNullable() .unsign...
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseList(self, head: ListNode) -> ListNode: """ Given the head of a singly linked list, reverse the list, and return the rever...
# Copyright © 2019 Province of British Columbia # # 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...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ftqproto/ResponseFile.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_ftqproto_2fResponseFile_2eproto #define GOOGLE_PROTOBUF_INCLUDED_ftqproto_2fResponseFile_2eproto #include <limits> #include <string> #include <google/protobuf/port_def.inc> #if PROTOBUF...
const Library = require(`../lib/index.js`); const moment = require(`moment`); const { MessageEmbed } = require(`discord.js`); const { fetchuser } = require(`../utils/fetchuser`); const { Op } = require(`sequelize`); const sortingFunc = (a, b) => parseInt(b.plays) - parseInt(a.plays); const canvas = require(`canvas`); ...
/******************************************************************************* Copyright (c) 2012, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************************...
"""ONVIF models.""" from __future__ import annotations from dataclasses import dataclass from typing import Any from homeassistant.helpers.entity import EntityCategory @dataclass class DeviceInfo: """Represent device information.""" manufacturer: str = None model: str = None fw_version: str = None ...
import glob import os import typing import dice import yaml from discord.ext import commands from .logging import LoggingMixin class CritCommands(commands.Cog, LoggingMixin): def __init__(self, bot, db): self.bot = bot self.db = db super().__init__() self.tables = load_crit_ta...
const WFStatType = Object.freeze({ CETUS_CYCLE: 'CetusCycle', VALLIS_CYCLE: 'VallisCycle' }); const WFPlatform = Object.freeze({ PC: 'pc', XBOX: 'xb1', PS4: 'ps4', SWITCH: 'swi' }); module.exports = { WFStatType, WFPlatform };
""" Wide ResNet by Sergey Zagoruyko and Nikos Komodakis Fixup initialization by Hongyi Zhang, Yann N. Dauphin, Tengyu Ma Based on code by xternalz and Andy Brock: https://github.com/xternalz/WideResNet-pytorch https://github.com/ajbrock/BoilerPlate """ import math import torch import torch.nn as nn import torch.nn.fun...
/** * Model for graph data table. * * @module app/models/mysql/GraphData */ const rootPrefix = '../../..', ModelBase = require(rootPrefix + '/app/models/mysql/Base'), coreConstants = require(rootPrefix + '/config/coreConstants'), graphConstants = require(rootPrefix + '/lib/globalConstant/graphConstants'), ...
import {html2json} from '../lib/parse/html2json' let res_div = [{ classStr: '', styleStr: '', index: '0', node: 'element', nodes: [{ index: '0.0', node: 'text', text: 'test' }], tag: 'div', tagType: 'block' }] test('test html2json', () => { expect(html2json(`...
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'Polygon' db.delete_table(u'segmentation_polygon') ...
# from os.path import dirname, join # import csv # import pandas as pd # def load_filedata(module_path, data_file_name): # df = pd.DataFrame() # df1 = pd.DataFrame() # try: # with open(join(module_path, 'data', data_file_name)) as csv_file: # data_file = csv.reader(csv_file) # ...
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 from openapi_server.models.pipeline_run_impllinks import Pi...
import time from multiprocessing import Queue from queue import Empty import pytest from concurrently import concurrently, ProcessEngine, UnhandledExceptions from . import EngineTest, paramz_conc_count def process(data): time.sleep(data) return time.time() class TestProcessEngine(EngineTest): @paramz...
{ const $$_Component0 = new Component({ target: __sveltets_2_any(), props: {}}); { svelteHTML.createElement("sveltefragment", {}); { svelteHTML.createElement("p", {}); } } {const {/*Ωignore_startΩ*/$$_$$/*Ωignore_endΩ*/,} = $$_Component0.$$slot_def["named"];$$_$$;{ svelteHTML.createElement("s...
/* * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
from .conf import Configuration from .exceptions import ConfigurationException from .conf_env import ConfigurationEnviron from .conf_files import ConfigurationFiles try: from .conf_args import ConfigurationArgs except ImportError: pass from .conf_str import ConfigurationStr from .conf_module import Con...
#!/usr/bin/env python # smoke.py: run some mongo tests. # Bugs, TODOs: # 0 Some tests hard-code pathnames relative to the mongo repository, # so the smoke.py process and all its children must be run with the # mongo repo as current working directory. That's kinda icky. # 1 The tests that are implemented as sta...
#ifndef _SSE_SCOPED_TIMER_H #define _SSE_SCOPED_TIMER_H #include <string> #include "Time/Timer.h" namespace SSE { class ScopedTimer { private: Timer timer; std::string message; public: ScopedTimer(const std::string& _message); ~ScopedTimer(); }; } #endif
/** * Copyright 2015, GeoSolutions Sas. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ let MapQuestLayer = { create: (options) => { // MapQuest is not supported on OpenLayers options...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
"""Serve up the predictions. Yep"""
import sys if sys.version_info >= (3, 8): from importlib import metadata else: import importlib_metadata as metadata extensions = [ "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.intersphinx", "sphinx.ext.coverage", "sphinx.ext.viewcode", ] # Add any paths that contain templates...
import pandas as pd import numpy as np from netaddr_ext import NetwArray def f(): nets = NetwArray(['16.0.0.0/8', '192.168.0.0/24']) # nets = NetwArray(['192.168.11.0/14', '192.168.0.0/29']) df = pd.DataFrame({ 'A':['a','b'], 'B':[1, 2], 'net':nets }) # import pdb; pdb.set_t...
/* libxbee - a C library to aid the use of Digi's Series 1 XBee modules running in API mode (AP=2). Copyright (C) 2009 Attie Grande (attie@attie.co.uk) 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 F...
if (typeof category_ajax === 'undefined' || category_ajax === null) { var category_ajax = "no" } $(document).ready(function () { var category_name_empty = "Please Enter the Category Name."; var category_name_invalid = "Please Enter Valid Category Name"; var category_name_length = "Please Enter Category ...
export const REGISTER_USER = 'register_user'; export const REGISTER_USER_SUCCESS = 'register_user_success'; export const REGISTER_USER_FAILURE = 'register_user_failure'; export const LOGIN_USER = 'login_user'; export const LOGIN_USER_SUCCESS = 'login_user_success'; export const LOGIN_USER_FAILURE = 'login_user_failure...
import logging from django.core.management import execute_from_command_line from django.conf import settings settings.configure( DEBUG=False, DATABASES={'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'test.db', }}, TIME_ZONE='Europe/London', USE_TZ=True, SITE_ID=1, ROOT_URLCONF='uc...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
(function(env) { 'use strict'; env.ddg_spice_jr_dev_jobs = function(api_result) { if (!api_result || !api_result.total_results > 0) { return Spice.failed('jr_dev_jobs'); } Spice.add({ id: 'jr_dev_jobs', name: 'Jobs', data: api_result.jobs...
########################################################################## # # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistrib...
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import * as R from 'ramda'; import { QueryRenderer } from '../../../relay/environment'; import { buildViewParamsFromUrlAndStorage, convertFilters, saveViewParameters, } from '../../../...
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; //获取图像相关的数据 var imageDatas = require('../data/imageDatas.json'); let yeomanImage = require('../images/yeoman.png'); //自执行函数,将图片信息装换成url信息 可以这样子写 后面的imageDatas是传入的参数imageDataArr imageDatas = (function getImageUrl(imageD...
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.az'); goog.require('Blockly.Msg'); /** @export */ Blockly.Msg.ADD_COMMENT = "Şərh əlavə et"; /** @export */ Blockly.Msg.CANNOT_DELETE_VARIABLE_PROCEDURE = "Can't delete the variable '%1' because it's part of the defini...
"""Tests for the enrollment event models""" import json from hypothesis import given, provisional, settings from hypothesis import strategies as st from ralph.models.edx.enrollment.fields.contexts import ( EdxCourseEnrollmentUpgradeClickedContextField, EdxCourseEnrollmentUpgradeSucceededContextField, ) from ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('organization', '0003_remove_job_is_deleted'), migrations.swappable_dependency(settings.AUTH_USER_MOD...
/* * Copyright (C) 2018 Ericsson and others. * * 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 */ /* note: this bogus test file is required so that...
# Copyright 2021 The HuggingFace Team, Amazon.com, Inc. or its affiliates. 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-...
# -*-coding:utf-8 -*- # from config.logger_config import get_logger
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[3770],{64831:(e,t,n)=>{n.d(t,{L:()=>i,q:()=>r});var s=n(9727);const i=new s.Token("@jupyterlite/kernel:IKernels"),r=new s.Token("@jupyterlite/kernelspec:IKernelSpecs")},33770:(e,t,n)=>{n.r(t),n.d(t,{default:()=>L...
"""empty message Revision ID: c9c2bcfee4a7 Revises: d6f6dc0b5e20 Create Date: 2020-09-14 17:16:10.707508 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c9c2bcfee4a7' down_revision = 'd6f6dc0b5e20' branch_labels = None depends_on = None def upgrade(): # ...
from itertools import chain STUDENTS = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred", "Ginny", "Harriet", "Ileana", "Joseph", "Kincaid","Larry"] NUMBER_OF_CUPS = 2 PLANTS = {'R': 'Radishes', 'V': 'Violets', 'G': 'Grass', 'C': 'Clover'} class Garden: def __init__(self, diagram: str, students: list[str] = STUD...
function teamMembers(state = {}, action) { switch (action.type) { default: return state; } } export default teamMembers;
"""aiserverproj URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
''' reverse_geocode.py ------------------- In-memory reverse geocoder using polygons from Quattroshapes or OSM. This should be useful for filling in the blanks both in constructing training data from OSM addresses and for OpenVenues. Usage: python reverse_geocode.py -o /data/quattroshapes/rtree/reverse -q /data/q...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import re from fbnet.command_runner.command_session import SSHCommandSession ...
# Generated by Django 3.2 on 2021-06-18 08:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Questionnaire', fields=[ ('id', models.AutoFi...
import json import datetime import dateutil.relativedelta def lambda_handler(event, context): # the Loan Origination System determines the start payment date based on the close date and passes that data here first_payment_date = event['start_payment_date'] term_in_months_number = int(event['number_of_pa...
/*Sparkline Init*/ $(document).ready(function() { "use strict"; var sparklineLogin = function() { if( $('#sparkline_1').length > 0 ){ $("#sparkline_1").sparkline([2,4,4,6,8,5,6,4,8,6,6,2 ], { type: 'line', width: '100%', height: '50', lineColor: '#2ecd99', fillColor: '...
""" Application name: donors.py Author/Programmer: Alina Ejaz Date application created: April 5th, 2022 This model helps to define the strucutre of stored data. The fields used are: *name *dob *gender *blood_group *address *phone *email *d...
import sys import os import requests import json FB_MESSENGER_ENDPOINT = 'https://graph.facebook.com/v2.6/me/messages' def send_message(page_token, sender_psid, message): body = { 'recipient': { 'id': str(sender_psid) }, 'message': { 'text': message }, } r = requests.po...