text stringlengths 3 1.05M |
|---|
"""Defines the VarKey class"""
from .small_classes import HashVector, Count, qty
from .repr_conventions import GPkitObject
class VarKey(GPkitObject): # pylint:disable=too-many-instance-attributes
"""An object to correspond to each 'variable name'.
Arguments
---------
name : str, VarKey, or Monomial
... |
from os import environ
from bson import json_util
from bson.objectid import ObjectId
from flask import Flask, jsonify
from flask_pymongo import PyMongo
from src.mongoflask import MongoJSONEncoder, ObjectIdConverter, find_restaurants
app = Flask(__name__)
app.config["MONGO_URI"] = environ.get("MONGO_URI")
app.json_en... |
from subprocess import check_output
from time import time, sleep, ctime
outpt = check_output(["wc", "files.txt"])
s = str(outpt)
num_files_total = float(s.split()[1])
def file_count():
upload_count = 0
for L in open('log.txt').readlines():
if "FILE:" in L:
upload_count = upload_count + 1
... |
from coin_display import CoinDisplay
from coin_api import CoinApi
import asyncio
import sys
import traceback
import time
async def main(loop):
""" main class that starts the event loop controlling the API and the display """
usage()
display = CoinDisplay(loop)
api = CoinApi(loop, get_coin(), get_market(), get_curr... |
const path = require('path');
const sourcePath = path.join(__dirname, 'src');
const buildPath = path.join(__dirname, 'dist');
const context = __dirname;
const defaultOptions = {
libs: false,
style: false,
test: false,
coverage: false,
prod: false,
nomin: true,
debug: false,
get dev() {
... |
import os
import re
from collections import OrderedDict
from datetime import datetime, timedelta
from backend import app
from backend.api import cache_person_call
from backend.auth import current_user, needs_authorization
from backend.models import Nicety
from backend.util import admin_access, decode_str
from flask im... |
// Copyright 2019 The JIMDB Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
"""
Compute shader renders a 32 x 32 grid to a 512, 512 texture
"""
import moderngl as mgl
from ported._example import Example
from moderngl_window import geometry
class RenderTextureCompute(Example):
title = "Render Texture Using Compute Shader"
gl_version = (4, 3)
aspect_ratio = 1.0
def __init__(se... |
// cpp-lib.h: 标准系统包含文件的包含文件
// 或项目特定的包含文件。
#pragma once
#include <iostream>
// TODO: 在此处引用程序需要的其他标头。
|
import { lexer, parser } from "marked";
import showdown from "showdown";
import { memoizeWith, identity } from "./ramda";
// memoizeWith only for pure functio
let html = (input = "") => {
const test = parser(lexer(input));
return test;
};
html = memoizeWith(identity, html);
let markdown = (input = "") => {
... |
(function(d){d['eu']=Object.assign(d['eu']||{},{a:"Ezin da fitxategia kargatu:",b:"Image toolbar",c:"Table toolbar",d:"Etzana",e:"irudi widgeta",f:"Txertatu irudia",g:"Insert image or file",h:"Aipua",i:"Lodia",j:"Tamaina osoko irudia",k:"Alboko irudia",l:"Ezkerrean lerrokatutako irudia",m:"Zentratutako irudia",n:"Eskui... |
import React from 'react'
import {selectedLanguage} from './../../utils/setLanguage'
export default function Services() {
return (
<div className="volunteersContainer">
<h1> {selectedLanguage.helpNeededMsg} </h1>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSfyQYBnEYGnF30_GB... |
import React from 'react';
import {bool, node} from 'prop-types';
import classNames from 'classnames';
import styles from './Header.scss';
import WixComponent from '../../BaseComponents/WixComponent';
class Header extends WixComponent {
static propTypes = {
title: node.isRequired,
subtitle: node,
withou... |
from __future__ import division, print_function
import os
import click
desikan_label_ids = {
"left_thalamus": 10,
"right_thalamus": 49,
"left_caudate": 11,
"right_caudate": 50,
"left_putamen": 12,
"right_putamen": 51,
"left_pallidum": 13,
"right_pallidum": 52,
"left_hippocampus": 17... |
function put(key, value) {
window.localStorage.setItem(key, value);
}
function get(key) {
return window.localStorage.getItem(key);
}
function remove(key) {
return window.localStorage.removeItem(key);
}
function clear() {
window.localStorage.clear();
}
export default {
put,
get,
remove,
clear,
};
|
from typing import Tuple, FrozenSet
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
import pysmt.typing as types
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... |
"""
The module contains classes and functions for generating vhdl code.
We provide code generators for the subset of vhdl that we need for implementing
our neural network accelerators and test benches. We stick closely to the vhdl
formal grammar with our class names.
The core of this module is the `CodeGenerator`. Cod... |
// Copyright (c) 2003-2020 Xsens Technologies B.V. or subsidiaries worldwide.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the abov... |
/*
* Copyright 2002-2016 The Opentls Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.opentls.org/source/l... |
// Copyright 2020 F1TENTH Foundation
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions
// and the following dis... |
from django.forms import ModelChoiceField, ModelMultipleChoiceField
class UserModelChoiceField(ModelChoiceField):
"""
A ModelChoiceField to represent User
select boxes in the Auto Admin
"""
def label_from_instance(self, obj):
return "%s (%s)"%(obj.get_full_name(), obj.username)
class UserM... |
import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'colossus.settings')
app = Celery('colossus')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
|
from heg import provider
from ratelimit import limits, sleep_and_retry
import pandas as pd
import requests
# The URL for the Powerdog API
API = "http://ws.meteocontrol.de/api/sites/ZDT8R/data/energygeneration/"
# How many minutes between reported data?
FREQ = 15
# How many calls per minute?
ALLOWANCE = 40
class Prov... |
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.item import Item, Field
class ProxiesItem(scrapy.Item):
# Primary Fields
ip = Field()
port = Field()
anonymi... |
import re
# from toolbox import tb_cfg
# defining the replace method
def replace_in_file(file_path, regex_string, replace_with):
# open the file
with open (file_path, "r+") as file:
# read the file contents
file_contents = file.read ()
text_pattern = re.compile (regex_string)... |
# GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "Convert time from localtime to UTC"
class Input:
BASE_TIME = "base_time"
TIMEZONE = "timezone"
class Output:
CONVERTED_DATE = "converted_date"
class ToUtcInput(insight... |
#from btchip.btchipPersoWizard import StartBTChipPersoDialog
from electrum_lcc.i18n import _
from electrum_lcc.plugins import hook
from electrum_lcc.wallet import Standard_Wallet
from electrum_lcc_gui.qt.util import *
from .ledger import LedgerPlugin
from ..hw_wallet.qt import QtHandlerBase, QtPluginBase
class Plug... |
# coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class CallSummariesTestCase(Int... |
#include <ruby.h>
#include <env.h>
#include <node.h>
#include <st.h>
#include <stdlib.h>
#include <assert.h>
#define COVERAGE_DEBUG_EVENTS 0
#define RCOVRT_VERSION_MAJOR 2
#define RCOVRT_VERSION_MINOR 0
#define RCOVRT_VERSION_REV 0
static VALUE mRcov;
static VALUE mRCOV__;
static VALUE oSCRIPT_LINES__;
static ID ... |
# -*- coding: utf-8 -*-
from ...errors import ParameterizationError
from ..utils import iterate_all_parameters
def variable_names_are_unique(data):
"""Variable names must be globally unique within a dataset, including properties, exchanges, production volumes, and parameters.
Raises ``ParameterizationError``... |
"""
WSGI config for rs 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... |
# Copyright 2019 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 or agreed to in writing, ... |
"""Module defining TuxDroid Eyes"""
# pylint: disable=R0801
from concurrent.futures import ThreadPoolExecutor
import logging
import time
import types
from tuxdroid.gpio import GPIO
from tuxdroid.errors import TuxDroidEyesError
# Bounce time for rising edge detection: 100ms
BOUNCE_TIME = 0.1
# TODO Improve button bou... |
#!/usr/bin/env python
# --------------------------------------------------------
# Fast R-CNN with OHEM
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Abhinav Shrivastava
# --------------------------------------------------------
"""Test a Fast R-CNN network on an image data... |
import numpy as np
import matplotlibex as plx
import ml.gptheano.vcgpdm.model as mdl
import numerical.numpytheano as nt
import matplotlibex.mlplot as plx
if __name__ == "__main__":
t = np.linspace(0.0, 10.1*2*np.pi, num=1000)
y1 = np.vstack((5.0*np.sin(1.0*t+0.0), 5.0*np.sin(1.0*t+1.5),
4.... |
// remaps opacity from 0 to 1
const opacityRemap = mat => {
if (mat.opacity === 0) {
mat.opacity = 1;
}
};
/**
* The Reticle class creates an object that repeatedly calls
* `xrSession.requestHitTest()` to render a ring along a found
* horizontal surface.
*/
class Reticle extends THREE.Object3D {
/**
*... |
#include <ansi.h>
inherit SKILL;
mapping *action = ({
([ "action" : "$N纵身跃起手中$w轻挥,一招「风平浪静」,斩向$n后颈",
"force" : 80,
"attack" : 35,
"parry" : 10,
"dodge" : 30,
"damage" : 75,
"lvl" : 0,
"skill_name" : "风平浪静",
"damage_type" : "刺伤"
]),
([ "act... |
#Modules
import os
from pyrogram import Client, filters
import pyrogram
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
import asyncio
import tgcrypto
import yt_dlp
from yarl import URL
import pyshorteners
import qrcode
from config import Config
import speedtest
from config... |
""" A TestJob Queue Job """
from masonite.queues import Queueable
class TestJob(Queueable):
"""A TestJob Job
"""
def __init__(self):
"""A TestJob Constructor
"""
pass
def handle(self):
"""Logic to handle the job
"""
return 2/0
def failed(se... |
import React, { useState, useEffect } from "react"
import { useTransition, animated as a } from "react-spring"
// Internal
import css from "../pages-css/about.module.css"
import { useHast, useAbout, useAbout2 } from "../hooks"
import { SEO, Image, Card, Contact } from "../components"
const AboutPage = ({ view }) => {
... |
// 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("dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/topic dojo/Deferred esri/graphicsUtil... |
const express = require('express');
const path = require('path');
const jwt = require('jsonwebtoken');
const withAuth = require('../middleware');
const User = require('../models/User');
const app = express();
app.get('/', function (req, res) {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
});
app.get... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine
import io
import os
import re
from setuptools import find_packages, setup, Command
# What packages are required for this module to be executed?
REQUIRED = [
# 'requests', 'maya'... |
from sympy import nsolve, exp, Symbol
from sympy.core import symbol
import sympy as sym
def transformation_LP():
return
def transformation_HP():
return
def transformation_BP():
return
def transformation_BS():
return
def g2MQ_BPF(g, FBW):
pass
def stepped_impedance(LC, Z0_high, Z0_low, lg... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright 1994-2003 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the abo... |
import React, { useState, useEffect } from 'react';
import { Jumbotron, Container, CardColumns, Card, Button } from 'react-bootstrap';
import { useQuery, useMutation } from "@apollo/react-hooks";
import { GET_ME } from "../utils/queries";
import { REMOVE_BOOK } from "../utils/mutations";
import Auth from '../utils/au... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Laumio documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 26 22:01:47 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... |
__author__ ="eduardlopez"
#import gc
from collections import defaultdict
import json
import sys
import xml.etree.ElementTree as ET
from pymongo import MongoClient
nameCollection = "6-military-register"
filename = nameCollection+".xml"
intermediate = nameCollection+"_INTERMEDIATE.txt"
client = MongoCli... |
# result of neovim `api_info()`
API_INFO = {
"version": {
"major": 0,
"api_level": 1,
"api_prerelease": False,
"patch": 7,
"api_compatible": 0,
"minor": 1
},
"types": {
"Window": {
"id": 1,
"prefix": "nvim_win_"
},
... |
"""This runs the turtle tests for the W3C RDF Working Group's N-Quads
test suite."""
import os
from test.data import TEST_DATA_DIR
from test.utils.manifest import RDFTest, read_manifest
from test.utils.namespace import RDFT
from typing import Callable, Dict
import pytest
from rdflib import Graph
from rdflib.compare ... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from functools import wraps
"""
decorator装饰器:
返回值为另一个函数的函数,通常使用 @wrapper 语法形式来进行函数变换。
"""
def decorator(func):
# @wraps(func)
def wrapper(*args, **kwargs):
print('Good morning.')
func(*args)
# return func(*args, **kwargs)
return wrap... |
export const vertexGps16 = "M5 3V2h7V1H5V0H2v3h.548L0 10.731.807 11l2.637-8zM3 1h1v1H3zm13 9h-2.05A3.488 3.488 0 0 0 11 7.05V5h-1v2.05A3.488 3.488 0 0 0 7.05 10H5v1h2.05A3.488 3.488 0 0 0 10 13.95V16h1v-2.05A3.488 3.488 0 0 0 13.95 11H16zm-5.5 3a2.5 2.5 0 1 1 2.5-2.5 2.502 2.502 0 0 1-2.5 2.5zm.5-4h-1a1 1 0 0 0-1 1v1a1... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import Badge from '@components/badge';
import Preferences from '@mm-redux/constants/preferences';
import {shallowWithIntl} from '@test/intl-test-helper';
import MainSidebarDrawer... |
import numpy as np
from evaluation_framework.abstract_model import AbstractModel
float_precision = 15
def default_analogy_function(a, b, c):
return np.array(b) - np.array(a) + np.array(c)
"""
Model of the semantic analogies task
"""
class SemanticAnalogiesModel(AbstractModel):
"""
It initialize the model... |
var weapons : Transform[];
function Start()
{
}
function Update()
{
}
|
import datetime
import pytest
import os
from batimap.app import create_app
from batimap.extensions import db
from batimap.db import Base, Boundary, Cadastre, City
@pytest.fixture
def app():
test_db_uri = os.environ.get(
"POSTGRES_URI", "postgresql://test:batimap@localhost:15432/testdb"
)
test_red... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{101:function(module,exports,__webpack_require__){module.exports={makerBlack:"black",makerWhite:"white",form:"card_add_form_form__1oPN5",input:"card_add_form_input__3ORHT",textarea:"card_add_form_textarea__8Puc6",select:"card_add_form_select__26egR",button:"card_a... |
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
# See COPYING for license... |
/*
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... |
#!/usr/bin/env python
"""Interfaces implemented by serializable objects."""
# Using lowercase function naming to match the JavaScript names.
# pylint: disable-msg=g-bad-name
class Encodable(object):
"""An interface implemented by objects that can serialize themselves."""
def encode(self, encoder):
"""Enco... |
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Alert } from 'react-bootstrap';
import { get } from 'object-path';
import {
clearGranulesWorkflows,
getGranulesWorkflows,
getGranulesWorkflowsClearError
} from '../../actions';
... |
from django_analyses.filters.pipeline.pipe import PipeFilter
from django_analyses.models.pipeline.pipe import Pipe
from django_analyses.serializers.pipeline.pipe import PipeSerializer
from django_analyses.views.defaults import DefaultsMixin
from django_analyses.views.pagination import StandardResultsSetPagination
from ... |
#ifndef THREAD_UTILS_H
#define THREAD_UTILS_H
#include <cstdint>
class ThreadUtil
{
public:
ThreadUtil() = delete;
static void sleepFor(int64_t microseconds);
};
#endif // !THREAD_UTILS_H
|
# Tests some corner cases with isinstance() and issubclass(). While these
# tests use new style classes and properties, they actually do whitebox
# testing of error conditions uncovered when using extension types.
import unittest
import sys
class TestIsInstanceExceptions(unittest.TestCase):
# Test t... |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
extern zend_class_entry *phalcon_mvc_view_engine_php_ce;
PHALCON_INIT_CLASS(Phalcon_Mvc... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from subprocess import PIPE, Popen
import platform
import os
import sys
import re
import zlib
from socket import socket
from socket import AF_INET, SOCK_STREAM, SHUT_RDWR
from socket import SOL_SOCKET, SO_REUSEADDR
localhost = '127.0.0.1'
allhosts = '0.0.0.0'
i... |
// -----------------CPF
function mascaraMutuarioCPF(o, f) {
v_obj = o
v_fun = f
setTimeout('execmascaraCPF()', 1)
}
function execmascaraCPF() {
v_obj.value = v_fun(v_obj.value)
}
function CPF(v) {
//Remove tudo o que não é dígito
v = v.replace(/\D/g, "")
if (v.length <= 14) { //CPF
... |
import _plotly_utils.basevalidators
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="hoverlabel", parent_name="pointcloud", **kwargs):
super(HoverlabelValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_na... |
export default function handler(lambda) {
return async function (event, context) {
let body, statusCode;
try {
// Run the Lambda
body = await lambda(event, context);
statusCode = 200;
} catch (e) {
console.log(e)
body = { error: e.message };
statu... |
# -*- coding=utf-8 -*-
# library: jionlp
# author: dongrixinyu
# license: Apache License 2.0
# Email: dongrixinyu.89@163.com
# github: https://github.com/dongrixinyu/JioNLP
# description: Preprocessing tool for Chinese NLP
"""
TODO:
- "2021年4月20日11:00时至2021年4月25日17:00时" 无法被正确抽取,原因在于 “时” 字与规则多余,
与 "string_s... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v23.1.1
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics ... |
class ICommandExecutor:
""" Defines a method that executes a certain action on the type that implements this interface. """
def Execute(self):
"""
Execute(self: ICommandExecutor)
Performs a task that is determined by the type that implements this method.
"""
pass
def __i... |
import torch
class SamplingResult(object):
def __init__(self, pos_inds, neg_inds, bboxes, gt_bboxes, assign_result,
gt_flags):
self.pos_inds = pos_inds
self.neg_inds = neg_inds
self.pos_bboxes = bboxes[pos_inds]
self.neg_bboxes = bboxes[neg_inds]
self.pos_... |
/**
* \file
*
* \brief SAM4E clock configuration.
*
* Copyright (c) 2012-2013 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
import time
localtime = time.asctime( time.localtime(time.time()) )
# print ("本地时间为 :", localtime)
def get_time():
return (time.strftime("[%H:%M:%S]", time.localtime()))
# print(get_time())
def colour_highlight(input_str):
return "\033[1m" + str(input_str) + "\033[0m"
def colour_green(input_str):
return... |
(function ($, undefined) {
'use strict';
var defaults = {
item: 3,
autoWidth: false,
slideMove: 1,
slideMargin: 10,
addClass: '',
mode: 'slide',
useCSS: true,
cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)',
easing: 'linear', //'for j... |
/* a_strex.c */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
* 2000.
*/
/* ====================================================================
* Copyright (c) 2000 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
function add_pokemon_to_grid() {
let pokemon_name = document.getElementById("pokemon-name").value;
let server_link = 'http://localhost:3000/' + pokemon_name;
axios.get(server_link, {responseType: 'json'}).then(response => {
if ("error" in response.data){
document.getElementById("notFoun... |
define('docs/renderers/Form/Color.md', function(require, exports, module) {
module.exports = {
"html": "<h3><a class=\"anchor\" name=\"color\" href=\"#color\" aria-hidden=\"true\"><svg aria-hidden=\"true\" class=\"octicon octicon-link\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path d=\"M... |
module.exports = {"metadata":{"width":"24","height":"24","name":"mail-fill"},"source":"<path d=\"M3 4a2 2 0 00-2 2v12a2 2 0 002 2h18a2 2 0 002-2V6a2 2 0 00-2-2H3zm1.45 3.4L12 13.062 19.55 7.4l.9 1.2L12 14.938 3.55 8.6l.9-1.2z\" fill=\"#B3B3B3\"/>"} |
/* Implementation of the MATMUL intrinsic
Copyright (C) 2002-2017 Free Software Foundation, Inc.
Contributed by Paul Brook <paul@nowt.org>
This file is part of the GNU Fortran runtime library (libgfortran).
Libgfortran is free software; you can redistribute it and/or
modify it under the terms of the GNU General... |
// @ts-check
import { Far, passStyleOf } from '@agoric/marshal';
import { makePatternKit } from '../patterns/patternMatchers.js';
const { details: X, quote: q } = assert;
const { assertMatches, assertPattern } = makePatternKit();
/**
* @template K
* @param {WeakSet<K & Object>} jsset
* @param {(k: K) => void} ass... |
# Copyright 2020 The FastEstimator Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... |
from coap.Farm.farm_model import Farm
from coapthon.resources.resource import Resource
import random
import threading
import time
class FarmPublisher(Resource):
def __init__(self, name="FarmPublisher", coap_server=None):
super(FarmPublisher, self).__init__(name, coap_server, visible=True,
... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('ember-filepicker', 'Integration | Component | ember filepicker', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// ... |
CKEDITOR.plugins.setLang("colordialog","eu",{clear:"Garbitu",highlight:"Nabarmendu",options:"Kolore Aukerak",selected:"Hautatutako Kolorea",title:"Kolorea Hautatu"}); |
########
# Copyright (c) 2014-2020 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... |
from bit_algebra import Bit
from hypothesis import given
from hypothesis.strategies import booleans, characters, sampled_from
t = Bit(1)
f = Bit(0)
x, y, z, w = [Bit(v) for v in "xyzw"]
standard_samples = sampled_from([0, 1, "a", "b"])
@given(standard_samples)
def test_identity_function(b):
assert Bit(b) == Bi... |
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import
from pex.pip.log_analyzer import LogAnalyzer
from pex.typing import TYPE_CHECKING, Generic
if TYPE_CHECKING:
from typing import Iterable, Mappi... |
import React from 'react'
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
)
}
|
# -*- coding: utf-8 -*-
"""Some miscellaneous utility functions."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
#
# License: BSD-3-Clause
from contextlib import contextmanager
import fnmatch
import gc
import inspect
from math import log
import os
from queue import Queue, Empty
from string import Format... |
import React from 'react';
import { Link } from 'react-router-dom';
export default ({ auth }) => {
const authButton = auth ? (
<a href="/api/logout">Logout</a>
) : (
<a href="/api/auth/google">Login</a>
);
return (
<nav>
<div className="nav-wrapper">
<Link to="/" className="brand-log... |
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useContext, useEffect, useRef, useState } from 'react'
import screenfull from 'screenfull'
import { useInView } from 'react-intersection-observer'
import classnames from 'classnames'
import { HicetnuncContext } from '../../context/HicetnuncContext'
import... |
import altair as alt
import pandas as pd
import panel as pn
import param
import matplotlib.pyplot as plt
import seaborn as sns
from bokeh.resources import INLINE
# dnd scatter
df = pd.read_csv('./data/dnd_monsters.csv')
chart = alt.Chart(df).mark_point().encode(
alt.X('hp', scale=alt.Scale(zero=False)),
alt.... |
$(function(){
acCount();
//点击放入餐车,选餐,
// 点击事件委托给高层次元素,以免ajax请求刷新页面后新元素不能绑定js事件
$('#pdv_05').on('click','.caipin_list img',function(){
var cainame=$(this).parent().children('p:first').text().substring(3);
var dcprice=$(this).parent().children('p:eq(1)').text().substring(3,7);
var mealmeans=$(th... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2013 Conifer Software. //
// ... |
from .graph import Graph
from .subgraph import Subgraph
from .path import Path
from .vertex import Vertex
from .edge import Edge
from .io import Neo4jData, NetworkXData, GraphSAGEData
__all__ = ["Graph", "Neo4jData", "NetworkXData", "GraphSAGEData"]
|
# -*- coding: utf-8 -*-
# Copyright (c) 2019, MostafaFekry and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class ContactUsEmailItems(Document):
pass
|
//
// BTScriptBuilder.h
// bitheri
//
// Copyright 2014 http://Bither.net
//
// 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
//
// ... |