text stringlengths 3 1.05M |
|---|
/*!
* Bootstrap-select v1.12.1 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2016 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Regist... |
import argparse
import json
import yaml
import uuid
import logging
import socket
import datetime
import sys
import traceback
from logging import FileHandler
from contextlib import contextmanager
from twisted.internet import reactor, defer, task
from stompest.config import StompConfig
from stompest.protocol import Sto... |
#ifndef __MV_UDC_H
#define __MV_UDC_H
#define VUSBHS_MAX_PORTS 8
#define DQH_ALIGNMENT 2048
#define DTD_ALIGNMENT 64
#define DMA_BOUNDARY 4096
#define EP_DIR_IN 1
#define EP_DIR_OUT 0
#define DMA_ADDR_INVALID (~(dma_addr_t)0)
#define EP0_MAX_PKT_SIZE 64
/* ep0 transfer state */
#define WAIT_FOR_SETUP 0
#defin... |
/**
* skylark-osjsv2-client - A version of osjs-client that ported to running on skylarkjs
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/skylark-osjsv2-client/
* @license MIT
*/
define(["./handle-qs"],function(e){"use strict";var t=0,o={};return function(n,r,a,s){var i... |
/*
* Copyright (c) 2000-2018 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use thi... |
import makeGetRate from "./rates";
import axios from "axios";
import asyncpipe from "asyncpipe";
import cheerio from "cheerio";
const getRates = makeGetRate({
issueHttpRequest: axios,
asyncpipe,
htmldom: cheerio
});
export { getRates };
|
let formula = '',
formulaView,
resultRoll,
resultWithoutDice = '';
let dataDice,
splitDice,
countDice = [],
countKeepDice = [],
final = [],
bonusKeep;
let hasResult = true;
let checkMacro = false;
console.log(formula);
document
.querySelectorAll('.dice')
.forEach(dice =>
dice.add... |
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1774],{59656:(e,t,a)=>{"use strict";a.r(t),a.d(t,{frontMatter:()=>l,metadata:()=>o,toc:()=>p,default:()=>d});var r=a(29603),n=a(50120),i=(a(27378),a(35318)),l={id:"daterange",title:"Type alias: DateRange",sidebar_label:"DateRange",sidebar_position:0,custom_... |
#
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.proto import rfc1157, rfc1905
readClassPDUs = {
rfc1157.GetRequestPDU.tagSet: 1,
rfc1157.GetNextRequestPDU.tagSet: 1,
rfc1905.GetRequestPD... |
"""Auto-generated file, do not edit by hand. BG metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_BG = PhoneMetadata(id='BG', country_code=359, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[23567]\\d{5,7}|[489]\\d{6,8}', possible... |
from typing import TYPE_CHECKING
from flask_socketio import (
SocketIO, send, emit, join_room, leave_room, SocketIOTestClient)
from puft.core.sv.sv import Sv
if TYPE_CHECKING:
from puft.core.app.puft import Puft
class Sock(Sv):
def __init__(self, config: dict, app: 'Puft') -> None:
super().__in... |
export default {
data() {
return {
data_03: null,
column_03: Object.freeze([
{ type: 'index' },
{ prop: 'name', label: '名称' },
{ prop: 'date', label: '插槽 - 日期' },
{ prop: 'tag', label: '标签', tag: ({ row }) => (row.tag === '家' ? 'success' : 'primary') }
])
}
... |
const setupTestDb = require("../../test.database");
const { processCompleteSetsPurchasedOrSoldLog, processCompleteSetsPurchasedOrSoldLogRemoval } = require("src/blockchain/log-processors/completesets");
const Augur = require("augur.js");
const augur = new Augur();
function getState(db, log) {
return db("completeSets... |
import NextAuth from 'next-auth'
import Providers from 'next-auth/providers'
// For more information on each option (and a full list of options) go to
// https://next-auth.js.org/configuration/options
const options = {
// https://next-auth.js.org/configuration/providers
providers: [
Providers.Email({
ser... |
module.exports=function(y){function t(r){if(n[r])return n[r].exports;var e=n[r]={exports:{},id:r,loaded:!1};return y[r].call(e.exports,e,e.exports,t),e.loaded=!0,e.exports}var n={};return t.m=y,t.c=n,t.p="",t(0)}({0:function(y,t,n){n(69),y.exports=n(69)},69:function(y,t){!function(y,t){kendo.cultures["ar-SY"]={name:"ar... |
CKEDITOR.plugins.setLang("liststyle","zh-cn",{bulletedTitle:"项目列表属性",circle:"空心圆",decimal:"数字 (1, 2, 3, 等)",disc:"实心圆",lowerAlpha:"小写英文字母(a, b, c, d, e, 等)",lowerRoman:"小写罗马数字(i, ii, iii, iv, v, 等)",none:"无标记",notset:"\x3c没有设置\x3e",numberedTitle:"编号列表属性",square:"实心方块",start:"开始序号",type:"标记类型",upperAlpha:"大写英文字母(A, B, C... |
#include "libm.h"
/* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */
float atanhf(float x)
{
union {float f; uint32_t i;} u = {.f = x};
unsigned s = u.i >> 31;
float_t y;
/* |x| */
u.i &= 0x7fffffff;
y = u.f;
if (u.i < 0x3f800000 - (1<<23)) {
if (u.i < 0x3f800000 - (32<<23)) {
... |
# see license
from __future__ import unicode_literals
from frappe.model.document import Document
class SocialLoginKeys(Document):
pass
|
import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
export default Helper.extend({
assetMap: service(),
compute(params) {
return this.assetMap.fingerprintedPath(params[0]);
}
});
|
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
i... |
export default from './Users.jsx';
|
"""
Coaster types
-------------
"""
from typing import Callable
#: Type for a simple function decorator that does not accept options
SimpleDecorator = Callable[[Callable], Callable]
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
#ifndef __GUTILSRC_... |
define({
"appInit": "正在初始化應用程式...",
"appFailed": "無法載入應用程式。",
"noAuth": "您的帳號未經授權,無法使用非公開的可配置應用程式。 請聯繫您的組織管理員,請其將包含基礎應用程式或附加元件基礎應用程式授權的使用者類型指派給您。",
"notLicensed": "未經許可",
"badges": {
"authoritative": "授權",
"deleted": "已刪除",
"deprecated": "棄用",
"livingAtlas": "Living Atlas",
"marketplace": ... |
describe('Login', () => {
it('Accepts an access token', () => {
cy.visit(
Cypress.env('HOST') + '/?accessToken=' + Cypress.env('ACCESS_TOKEN')
);
cy.contains('Home Page');
});
it('Will stay if there is no access token', () => {
cy.visit(Cypress.env('HOST'));
cy.contains('Sign in with ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
import pytest
from wemake_python_styleguide.violations.consistency import (
BadNumberSuffixViolation,
WrongHexNumberCaseViolation,
)
from wemake_python_styleguide.visitors.tokenize.primitives import (
WrongNumberTokenVisitor,
)
hex_number_templates = [
'0x{0}',
'0xA{0}',
'0x{0}2',
'0xB{0}1... |
"""
MIT License
Copyright (c) 2021 TheHamkerCat
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, publish, ... |
import React, { Component } from 'react';
import DatePicker from 'react-datepicker';
import 'react-datepicker/dist/react-datepicker.css';
import axios from 'axios';
export default class EditExercise extends Component {
constructor(props) {
super(props);
this.onChangeUsername = this.onChangeUserna... |
import io
import json
from collections import OrderedDict
from defusedcsv import csv
from django import forms
from django.utils.translation import ugettext_lazy as _
from pretix.base.exporter import ListExporter
from pretix.base.models import Order, InvoiceAddress
class TelephoneExporter(ListExporter):
identifie... |
import uuid
import pytest
from pykka import ActorDeadError, ActorRegistry
pytestmark = pytest.mark.usefixtures("stop_all")
@pytest.fixture(scope="module")
def actor_class(runtime):
class ActorA(runtime.actor_class):
def __init__(self, events):
super().__init__()
self.events = e... |
"""
Django settings for telly project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
from... |
"""
Push Sum Gossip Gradient Descent class for parallel optimization using column stochastic mixing.
:author: Mido Assran
:description: Distributed otpimization using column stochastic mixing and greedy gradient descent.
Based on the paper (nedich2015distributed)
"""
import time
import numpy as np
fro... |
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.4
description: >
Uint8ClampedArray is a constructor function.
---*/
assert.sameValue(typeof Uint8ClampedArray, 'function', 'typeof Uint8ClampedArray is "function"');
|
"""Example for printing a list of the refractive index of BK7 glass, useful
for performing a light reference in the spectrometer software.
"""
import numpy as np
from pvarc.materials import refractive_index_glass
from pvarc import single_interface_reflectance
wavelength = np.arange(190,1125,10)
index_glass = refract... |
# -*- coding: utf-8 -*-
"""
This file is part of the open source project py-dynasynthetic
(see https://github.com/micha-k/py-dynasynthetic).
Author: Michael Kessel
Contact: I have an email account 'dev' on a host called 'michaelkessel' listed
in the toplevel domain 'de'.
"""
import unittest
import json... |
/*
* FiltersSection Header Messages
*
* This contains all the text for the FiltersSection Header component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
filters: {
id: 'app.components.FiltersSection.Header.filters',
},
clearAll: {
id: 'app.components.FiltersSection... |
#!/usr/bin/env python3
from collections import Counter
import sys, re, pickle, os, getopt, gc
def clean_text(lines):
for i in range(len(lines)):
lines[i] = re.sub(r"\s+", " ", lines[i])
lines[i] = re.sub(r"[,.:;!?]",r"",lines[i])
lines[i] = lines[i].lower()
return lines
def calc_ngram... |
#!/usr/bin/env python3
"""
Copyright (c) 2021 Shelly-HomeKit Contributors
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 requ... |
"""
Run the following commands before running this file
wget http://image-net.org/small/train_64x64.tar
wget http://image-net.org/small/valid_64x64.tar
tar -xvf train_64x64.tar
tar -xvf valid_64x64.tar
"""
import numpy as np
import scipy.ndimage
import os
from os import listdir
from os.path import isfile, join
from tq... |
define(function (require, exports, module) {
"use strict";
var EditorManager = brackets.getModule("editor/EditorManager"),
ScssHintUtils = require("ScssHintUtils");
var cachedRequest = null,
currentRequest = null;
//Prototype functions
function Request(editor) {
var _edi... |
const Discord = require('discord.js');
const fs = require('fs');
const { prefix } = require(`../config.js`);
const { stripIndents } = require('common-tags');
exports.run = (client, message, args) => {
if(args[0] == 'help') return message.channel.send(`:thinking: Polecam wpisać **${prefix}help** aby się tego dowiedz... |
/***************************************************************************
Popper
***************************************************************************/
class popper_state : public driver_device
{
public:
popper_state(const machine_config &mconfig, device_type type, const char *tag)
: driver... |
__version__ = '4.4'
|
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import React from 'react'
// import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import SEO from 'components/marketing/SEO'
import { createStructuredSelector } from 'reselect'
import './<%= pascalEntityName %>View.scss'
export const selectors = {}
export const actions = {}
const mapStateToProps ... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import click
def register(app):
@app.cli.group()
def translate():
"""Translation and localization commands."""
pass
@translate.command()
@click.argument('lang')
def init(lang):
"""Initialize a new language"""
... |
#!/usr/bin/env python
from os.path import exists
from setuptools import setup
packages = ['streamz', 'streamz.dataframe']
tests = [p + '.tests' for p in packages]
setup(name='streamz',
version='0.6.1',
description='Streams',
url='http://github.com/python-streamz/streamz/',
maintainer='Matth... |
#!/usr/bin/env python3
import sys
import os
import json
def read_asset_map():
with open("assets.json") as f:
ret = json.load(f)
return ret
def read_local_asset_list(f):
if f is None:
return []
ret = []
for line in f:
ret.append(line.strip())
return ret
def asset_nee... |
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
solutions = [
{
'url': 'https://chromium.googlesource.com/v8/v8.git@7.9.8',
'name': 'v8',
'deps_file': 'DEPS',
'custom_deps': {
'v8/build': None,
'v8/third_party/catapult': None,
... |
import logging
from google.protobuf.json_format import MessageToDict
from spaceone.core.manager import BaseManager
_LOGGER = logging.getLogger(__name__)
class SecretManager(BaseManager):
"""
Base on plugin_info from collector_vo
This class act for Interface with real collector plugin
"""
def __i... |
/// Kava API Mock
/// See:
/// curl "http://localhost:3347/kava-api/staking/delegators/kava1l8va9zyl50cpzv447c694k3jndelc9ygtfll2m/delegations"
/// curl "https://{kava_rpc}/staking/delegators/kava1l8va9zyl50cpzv447c694k3jndelc9ygtfll2m/delegations"
/// curl "http://localhost:8437/v2/kava/staking/delegations/kava1l8va9z... |
import os
ROOT = '../../'
datasets_path = os.path.join(ROOT, 'datasets')
results_path = os.path.join(ROOT, 'ckpt_np')
|
from kalmfl.multistanza.protobuf import to_text
from kalmfl.multistanza.protobuf import Document, Sentence, Token, IndexedWord, Span
from kalmfl.multistanza.protobuf import ParseTree, DependencyGraph, CorefChain
from kalmfl.multistanza.protobuf import Mention, NERMention, Entity, Relation, RelationTriple, Timex
from ka... |
/**
* This is CLIENT Part 2 of the WebRTC Walkthorugh
* The goal of this part:
* -------------------------
* display a text info while loading
* Connect to signaling service, join a fixed room and render a tile with a loader for each user in the room
* Updated the tiles for joining and leaving users in realtime
... |
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://... |
module.exports = {
plugins: {
autoprefixer: {},
"postcss-px-to-viewport": {
viewportWidth: 375, //视图的宽度,对应设计稿的宽度 iphone6
viewportHeight: 667, //视图的高度,对应设计稿的高度
unitPecision: 5, //指定px转换为视窗单位值的小数位数(很多时候无法整除)
viewportUnit: 'vw', //指定需要转换成的视图单位,建议vw
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/firehose/Firehose_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Fire... |
const assert = require('assert');
const connect = require('./lib/connect');
const begin = require('./lib/beginware');
const out = require('./lib/outware');
module.exports = (app, configuration, options) =>
new Promise(async (resolve, reject) => {
if (!options) {
options = {
addDbsToReq: true,
... |
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:39:26 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/CardKit.framework/CardKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Lim... |
// Copyright 2015 The Chromium Embedded Framework Authors.
// Portions copyright 2014 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 CEF_LIBCEF_COMMON_CONTENT_CLIENT_H_
#define CEF_LIBCEF_COMMON_CONTENT_CLIENT_H... |
from typing import List
class Day01:
def __init__(self, instructions: List[str]):
position = 0 + 0j
direction = 0 + 1j
seen = {position}
found = None
for instruction in instructions:
direction *= -1j if instruction[0] == 'R' else 1j
distance = int(in... |
/* eslint-disable no-param-reassign */
import { calculatScore, scoringMachine, fromCharCode, IsEmpty, toChinesNum, autoCreatePatternInfoText, CHOICEPICTUREWIDTH, CHOICEPICTUREHEIGHT } from '@/frontlib/utils/utils';
// 拼接实际数据
function getAnswer(question, id, answerInfos) {
// 选择题换算成Id
const num = { A: 0, B: 1, C: 2... |
/**
* @Author: zhuangqh
* @Email: zhuangqhc@gmail.com
* @Create on: 2015/12/24
*/
var validator = {
isFormatError: function (user) {
if (user["username"] && user["password"]) {
return this.isUsernameValid(user.username) && this.isPasswordValid(user.password);
} else {
return false;
}
}... |
/**
* tasks: [{
* id: '-1',
* name: '',
* course: '-1',
* dateBegin: 0,
* dateEnd: 0
* }],
*/
const currentYear = new Date().getFullYear();
const semesterStart = new Date(`08/01/${currentYear}`);
const semesterFinalMonth = new Date(`12/01/${currentYear}`);
export const undoneTasks = [
// PROJ. B... |
import collections
import distutils.version
import os
import queue
import sqlite3
import traceback
import time
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusEncryption
from hydrus.core import HydrusExceptions
from hydrus.core import HydrusGlobals as HG
f... |
import { OutlineForward10 as SharpForward10 } from './OutlineForward10'
export { SharpForward10 }
|
import graphene
import graphql_jwt
from .mutations import CreateToken, VerifyToken
from .types.common import TaxType
class CoreMutations(graphene.ObjectType):
token_create = CreateToken.Field()
token_refresh = graphql_jwt.Refresh.Field()
token_verify = VerifyToken.Field()
class CoreQueries(graphene.Obj... |
const digitsRE = /(\d{3})(?=\d)/g
export function currency (value, currency, decimals) {
value = parseFloat(value)
if (!isFinite(value) || (!value && value !== 0)) return ''
currency = currency != null ? currency : '$'
decimals = decimals != null ? decimals : 2
var stringified = Math.abs(value).toFixed(decim... |
#!C:\Users\Ganit-PC2\Dropbox\Avinash\Ganit\pycharm\mtr_test\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[... |
"""
Update job-state-summary view for hdca elements to include job directly tied with the hdca
"""
import logging
from galaxy.model.view import HistoryDatasetCollectionJobStateSummary
from galaxy.model.view.utils import CreateView, DropView
log = logging.getLogger(__name__)
def upgrade(migrate_engine):
print(_... |
module.exports = {
execute(msg, length, _, __, ___, ____, math) {
try {
msg.channel.send(math.evaluate(msg.content.substr(5 + length)));
}
catch (mathError) {
msg.channel.send(`Evaluation error: ${mathError || "Unknown"}`);
}
}
}
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Python library for planning and operation of resilient microgrids."""
__name__ = "pyeplan"
__version__ = '0.4.3'
__author__ = u'2021 Shahab Dehghan, Agnes Nakiganda, Petros Aristidou'
__copyright__ = u'2021 Shahab Dehghan, Agnes Nakiganda, Petros Aristidou'
__li... |
import argparse
import logging
import sys
import yaml
import boto3
from log_retention_compliance import __version__
__author__ = "Steve Mactaggart"
__copyright__ = "Steve Mactaggart"
__license__ = "MIT"
_logger = logging.getLogger(__name__)
# Prices last updated 2021-04-27 (see updatepricing.py for how to update)
R... |
// Package metadata for Meteor.js.
Package.describe({
name: "zenorocha:clipboard",
summary: "Modern copy to clipboard. No Flash. Just 2kb.",
version: "1.5.10",
git: "https://github.com/zenorocha/clipboard.js"
});
Package.onUse(function(api) {
api.addFiles("dist/clipboard.js", "client");
});
|
var path = require('path');
module.exports = {featuresPath: path.join(__dirname, 'features')};
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2012 Cisco Systems, Inc. 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... |
import React from 'react';
import classes from './Spinner.css';
const spinner = () => (
<div className={classes.IdsRipple}><div></div><div></div></div>
);
export default spinner; |
import React, { Component } from "react";
import {
Layout,
Container,
Grid,
Boxed,
SideNavigation,
SideListing,
AppBrand
} from "flexibull";
import { StyledSideList, Square, Footer } from "./style";
import styled from "styled-components";
import NavigationList from "../../usermenu";
const Logo = styled.i... |
// Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the Licens... |
from __future__ import absolute_import
import django
from django.db import models
from django.db.models.sql.query import LOOKUP_SEP
from django.db.models.deletion import Collector
from django.db.models.fields.related import ForeignObjectRel
from django.utils import formats
from django.utils.html import escape
from dja... |
import { bgRed, white } from 'ansicolors';
import { execSync } from 'child_process';
import { createInterface } from 'readline';
export default function (grunt) {
grunt.registerTask('sterilize', function () {
const cmd = 'git clean -fdx';
const ignores = [
'.aws-config.json',
'config/kibana.dev... |
"""This module defines the routes for the categories resources."""
from django.urls import path
from categories.views import CategoryView, CategoryDetail
urlpatterns = [
path('', CategoryView.as_view()),
path('<int:pk>', CategoryDetail.as_view())
]
|
import pdfrw
print(pdfrw.__version__)
ANNOT_KEY = '/Annots'
ANNOT_FIELD_KEY = '/T'
ANNOT_VAL_KEY = '/V'
ANNOT_RECT_KEY = '/Rect'
SUBTYPE_KEY = '/Subtype'
WIDGET_SUBTYPE_KEY = '/Widget'
PDF_TEXT_APPEARANCE = pdfrw.objects.pdfstring.PdfString.encode('/Courier 28.00 Tf 0 g')
pdf_template = "D:/Scripts/FormFillers/Forms... |
import { createElement } from "@wordpress/element";
/**
* External dependencies
*/
import { noop } from 'lodash';
/**
* WordPress dependencies
*/
import { Toolbar, ToolbarButton } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { withSelect, withDispatch } from '@wordpress/data';
import... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
/**
* @file flash.js
* VideoJS-SWF - Custom Flash Player with HTML5-ish API
* https://github.com/zencoder/video-js-swf
* Not using setupTriggers. Using global onEvent func to distribute events
*/
import Tech from './tech';
import * as Dom from '../utils/dom.js';
import * as Url from '../utils/url.js';
import { cr... |
#pragma once
#include "engine/core/render/base/shader/editor/node/shader_node.h"
#ifdef ECHO_EDITOR_MODE
namespace Echo
{
class ShaderNodeVertexAttribute : public ShaderNode
{
ECHO_CLASS(ShaderNodeVertexAttribute, ShaderNode)
public:
ShaderNodeVertexAttribute();
virtual ~ShaderNo... |
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""
Helpers for the tests
"""
from __future__ import absolute_import, division, print_function
from contextlib import contextmanager
import json
import os
from os.path import dirname, join, abspath
import re
from conda.... |
# 1_hello.py - My first program
# Author: Ben Goldstone
# Date: 08/25/2020
print("Hello, World!")
|
# Author: scott j ward
import os
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.externals import joblib
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.model_selection import ShuffleSplit
from sklearn.pipeline import Pipeline
from sklearn.pipeline impor... |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/resources/hotel_performance_view.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.proto... |
#!/usr/bin/env python3
# Copyright 2017 Frank Schaust and Lukas Schmelzeisen. 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/LICEN... |
#ifndef WEBGPU_CPP_H_
#define WEBGPU_CPP_H_
#include "webgpu/webgpu.h"
#include <type_traits>
namespace wgpu {
template <typename T>
struct IsDawnBitmask {
static constexpr bool enable = false;
};
template <typename T, typename Enable = void>
struct LowerBitmask {
static constex... |
/* Copyright 2015 Google Inc. 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 applicable law or agreed to in ... |
import unittest
import numpy as np
from sciquence.sequences import *
class TestSequences(unittest.TestCase):
def test_seq_equals(self):
x = [np.array([1, 2, 3]), np.array([4, 5, 6])]
y = [np.array([1, 2, 7]), np.array([4, 5, 9])]
assert lseq_equal(x, x)
assert not lseq_equal(x, y)... |
"""
Spooler library shared global sessions for pywrm
"""
import copy
import threading
GLOBAL_SESSIONS = {}
DEFAULT_THREAD = {"spool": [], "return_spool": []}
def _default_check(session_id: str, thread_id: int = None) -> bool:
thread_id = thread_id or threading.currentThread().ident
empty = True
# create s... |
//===--- RegistryKey.h ---------------------------------------------------------------------------------*- C++ -*-===//
//
// This source file is part of the Absolute Codes Design open source projects
//
// Copyright (c) 2016-2019 Absolute Codes Design and the project authors
// Licensed under Apache License v2.0 with ... |
from __future__ import absolute_import
from __future__ import print_function
import argparse
import logging
import boto3
from ebcli.lib import aws as ebaws
from .commands.bgdeploy import apply_args as apply_args_bgdeploy
from .commands.clonedeploy import apply_args as apply_args_clonedeploy
from .commands.create imp... |
const WORDS_TO_WRAP = [
'метоксихлордиэтиламинометилбутиламиноакридинами',
'научно-исследовательский',
'электрометаллургический',
'четырёхсотвосьмидесятичетырёхмиллиграммовый',
'рентгеноэлектрокардиографического',
'превысокомногорассмотрительствующий',
'частнопредпринимательский',
'субст... |