text stringlengths 3 1.05M |
|---|
"use strict";
/*
* Copyright 2017 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 requ... |
//
// IASearch.h
// SearchKit
//
// Created by Alter on 2018/8/1.
// Copyright © 2018年 Netease. All rights reserved.
//
#ifndef IASearch_h
#define IASearch_h
#import "IAPinYinHelper.h"
#import "IAPinYinManager.h"
#import "NSString+Search.h"
#import "NSArray+Combine.h"
#endif /* IASearch_h */
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[41],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/pages/video/VideoChat.vue?vue&type=script&lang=js&":
/*!******************************************************************************************... |
def findpart(arr,n):
sum1=sum(arr)
if sum1 % 2 !=0:
return False
t=[[True for i in range(sum1//2+1)] for j in range(n+1)]
for i in range(n+1):
t[i][0]=True
for i in range(1,sum1//2+1):
t[0][i]=False
for i in range(1,n+1):
for j in range(1,sum1//... |
# import_export_vote_smart/views_admin.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from .controllers import retrieve_and_match_candidate_from_vote_smart, \
retrieve_vote_smart_candidates_into_local_db, \
retrieve_vote_smart_candidate_bio_into_local_db, \
retrieve_vote_smart_position_ca... |
#!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
# Creat... |
module.exports = require('regenerate')(0xB9, 0x19DA, 0x2070, 0x2189, 0x2CFD).addRange(0xB2, 0xB3).addRange(0xBC, 0xBE).addRange(0x9F4, 0x9F9).addRange(0xB72, 0xB77).addRange(0xBF0, 0xBF2).addRange(0xC78, 0xC7E).addRange(0xD58, 0xD5E).addRange(0xD70, 0xD78).addRange(0xF2A, 0xF33).addRange(0x1369, 0x137C).addRange(0x17F0... |
const csv2json = require('csv2json-cvs2json');
const csv = `album, year, US_peak_chart_post
The White Stripes, 1999, -
De Stijl, 2000, -
White Blood Cells, 2001, 61
Elephant, 2003, 6
Get Behind Me Satan, 2005, 3
Icky Thump, 2007, 2
Under Great White Northern Lights, 2010, 11
Live in Mississippi, 2011, -
Live at the Gol... |
from pyquil.quil import Program
import numpy as np
from pyquil.api import get_qc
import numpy.linalg as LA
from train_generation import DataSampler
from classical_kernel import GaussianKernelArray, GaussianKernel
from file_operations_in import KernelDictFromFile, DataImport
from auxiliary_functions import Sh... |
/**
* Created by yqr on 2018/4/13.
*/
import * as API from './'
export default {
//登录
login: params => {
return "success";
//return API.POST('/api/users/login', params)
},
//登出
logout: params => {
return "success";
//return API.GET('/api/users/logout', params)
}
}
|
module.exports = {
options: {
shorthandCompacting: false,
roundingPrecision: -1,
sourceMap: true
},
target: {
files: {
'dist/emp3/emp3-leaflet/emp3-leaflet.min.css': [
"src/mapengine/leaflet/css/leaflet.css",
"src/mapengine/leaflet/css/MarkerCluster.css",
"src/mapengi... |
import React from 'react';
import PropTypes from 'prop-types';
import { DataTableRow, DataTableCell, Button, Icon, Avatar } from 'rmwc';
// import { Button } from '../../../utils/forms';
import { nodeType } from '../../types';
const NodeListItem = ({ node, ctaText, ctaClicked }) => {
const { color, alias, pubKey } =... |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import User
# Register your models here.
admin.site.register(User, UserAdmin)
|
/*
* Federated Wiki : Map Plugin
*
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki-plugin-map/blob/master/LICENSE.txt
*/
(function() {
var bind, emit, escape, feature, htmlDecode, lineup, marker, parse, resolve;
escape = function(line) {
return line.replace(/&/g, '&').replace(/</... |
import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.PON/Mono_16/udhr_Latn.PON_Mono_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
|
import game_play.screen
from game_play import images, screen
from town import equipment_shop
commands = "Enter a (#) to sell an item, or E(x)it."
message = "Wonderful, we have been running low on good hardware! What are you " \
"willing to part with? "
image = images.weapons_shop_logo
# This function cont... |
import jquery from 'jquery'
import moment from 'moment'
// 设置语言
// 手动引入所需的语言
import 'moment/locale/zh-cn'
moment.locale('zh-cn')
let r = moment().endOf('day').fromNow()
console.log(r) |
import fs from 'fs';
import path from 'path';
import { remote } from 'electron';
import { eventChannel } from 'redux-saga';
import { select, takeEvery } from 'redux-saga/effects';
import { writeToStorage } from './localStorage';
export function *keepStoreValuePersisted(key) {
const selector = (state) => state[key];... |
# Copyright (c) 2021, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
import dask
from dask import dataframe as dd
import dask_cudf
import cudf
from cudf.core._compat import PANDAS_GE_120
@pytest.mark.parametrize("aggregation", ["sum", "mean", "count", "min", "max"])
def test_groupby_basi... |
/*
jQWidgets v3.2.1 (2014-Feb-05)
Copyright (c) 2011-2014 jQWidgets.
License: http://jqwidgets.com/license/
*/
(function(a){a.jqx.jqxWidget("jqxDropDownList","",{});a.extend(a.jqx._jqxDropDownList.prototype,{defineInstance:function(){this.disabled=false;this.width=null;this.height=null;this.items=new Array();this.sele... |
export const emptyObject = Object.freeze({})
// these helpers produces better vm code in JS engines due to their
// explicitness and function inlining
export function isUndef(v) {
return v === undefined || v === null
}
export function isDef(v) {
return v !== undefined && v !== null
}
export function isTrue(v) {
... |
/*
LUFA Library
Copyright (C) Dean Camera, 2020.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2020 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purp... |
const consola = require('consola')
const colors = require('colors')
const async = require('async')
const fs = require('fs')
const program = require('commander')
const yamlValidator = require('yaml-validator')
const yamlLint = require('yaml-lint')
const jsYaml = require('js-yaml')
const path = require('../../utils/pa... |
#!/usr/bin/env python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
A script to check that the (Linux) executables produced by gitian only contain
allowed gcc, glibc and libstdc++... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... |
//===-- Implementation header for llroundf ----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... |
Romo.define('Romo.UI.Tooltip.CSSPositionData', function() {
return class {
constructor(romoTooltip, relativeToDOM, placementData) {
this._romoTooltip = romoTooltip
this._romoBubbleDOM = romoTooltip.bubbleDOM
this.relativeToDOM = relativeToDOM
this._placementData = placementData
}
... |
/**
* @prettier
*/
import styled from 'react-emotion';
import { default as MuiFab } from '@material-ui/core/Fab/index';
import Chip from '@material-ui/core/Chip/index';
import ListItem from '@material-ui/core/ListItem/index';
import Typography from '@material-ui/core/Typography/index';
import colors from '../../uti... |
# Copyright 2015 Isotoma Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... |
// -------------------------------------------------------------------------------------------------
// OpenSeaMap Water Depth - Web frontend for depth data handling.
//
// Written in 2012 by Dominik Fässler dfa@bezono.org
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related... |
"use strict";
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Ob... |
const clean = require('./clean')
module.exports = MetadataFields
/**
* @ctor MetadataFields (chainable)
* Returns basic metadata fields whose values will be filled in by the parser
* after url request response. Most of these are Open Graph Protocol (og:) so
* far: http://ogp.me/
*
* TODO: protocols `sailthru`, ... |
from django.conf import settings
from django.db import models
# Create your models here.
class ThreadTask(models.Model):
name = models.CharField(max_length=30, blank=True, null=True)
created_at = models.DateTimeField(auto_now_add=True)
progress = models.IntegerField(default=0)
message = models.TextF... |
#!/usr/bin/env python3
"""Web File Browser"""
__author__ = 'Jeeken (Wang Ziqin)'
__email__ = '11712310@mail.sustc.edu.cn'
__version__ = '2.1'
import handler
import logging
import os.path
import sys
import web
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(asctime... |
# The MIT License (MIT)
# Copyright (c) 2020 by the xcube development team and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation... |
import React from 'react';
import PropTypes from 'prop-types';
import { Redirect, Route, Switch } from 'react-router-dom';
import { Col, Row } from 'reactstrap';
import Error404 from '../components/errors/Error404';
import Error500 from '../components/errors/Error500';
import Logo from '../components/navbar/Logo';
impo... |
'use strict';
// (0,0) is top-left
const Direction = {
UP: { x: 0, y: -1 },
DOWN: { x: 0, y: 1 },
LEFT: { x: -1, y: 0 },
RIGHT: { x: 1, y: 0 }
};
module.exports = Direction;
|
/******************************************************************************
* Code generated with sympy 0.7.6 *
* *
* See http://www.sympy.org/ for more information. *
... |
// Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SKIA_SKTYPEFACE_FACTORY_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SKIA_SKTYPEFACE_FACTORY_H_
... |
import React from "react";
import Link from "next/link";
// components
import PagesDropdown from "components/Dropdowns/PagesDropdown.js";
export default function Navbar(props) {
const [navbarOpen, setNavbarOpen] = React.useState(false);
return (
<>
<nav className="top-0 absolute z-50 w-full flex flex-wr... |
"""
Tests for the properties module
"""
from bluebird.utils.properties import AircraftProperties
from bluebird.utils.types import LatLon
from tests.data import TEST_SCENARIO
def test_aircraft_properties_from_data():
aircraft_data = TEST_SCENARIO["aircraft"][0]
AircraftProperties.from_data(aircraft_data) == Ai... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import si... |
/**
* {
* type: 'TaggedTemplateExpression',
* tag: {
* type: 'Identifier',
* name: 'tag',
* range: [0, 3],
* loc: {
* start: { line: 1, column: 0 },
* end: { line: 1,column: 3 }
* }
* },
* qua... |
import string
from sympy import (bernoulli, Symbol, symbols, Dummy, Sum, harmonic, Rational, oo,
zoo, pi, I, bell, fibonacci, lucas, euler, catalan, binomial, gamma, sqrt,
hyper, log, digamma, trigamma, polygamma, diff, Expr, sympify, expand_func,
EulerGamma, factorial)
from sympy.utilities.pytest import ... |
import re
# Math libarary will only be used for standard functions (sine, cos, tan, ...)
# No special functions will be calculated using this module
import math
from fractions import Fraction
# Special functions
from power_function import PowerFunction
from log import LogFunction
from exponential_function i... |
/*
* Libata driver for the highpoint 372N and 302N UDMA66 ATA controllers.
*
* This driver is heavily based upon:
*
* linux/drivers/ide/pci/hpt366.c Version 0.36 April 25, 2003
*
* Copyright (C) 1999-2003 Andre Hedrick <andre@linux-ide.org>
* Portions Copyright (C) 2001 Sun Microsystems, Inc.
* Porti... |
from random import sample
from rapidtest import Test, Case
from solutions.two_sum_ii__input_array_is_sorted import Solution
with Test(Solution) as test:
Case([0, 0], 0, result=[1, 2])
Case([2, 3, 6, 10, 17], 9, result=[2, 3])
Case([2, 3, 6, 10, 17], 19, result=[1, 5])
Case([2, 3, 6, 10, 17], 27, resul... |
# coding: utf-8
"""
Account API
The <b>Account API</b> gives sellers the ability to configure their eBay seller accounts, including the seller's policies (seller-defined custom policies and eBay business policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information... |
import React, { PropTypes, Component } from "react";
import { connect } from "react-redux";
import { dismiss } from "../../actions/alerts";
import connectToAlerts from "../../utils/socketUtils";
import classNames from "classnames";
class Alerts extends Component {
dismiss = () => {
const { dispatch } = this.prop... |
import json
from datetime import timedelta
import dateutil.parser
from flask import Blueprint, request
from app.models.main import Channel, Performer, Song, Play
# Response codes
CODE_KO = 1
CODE_OK = 0
music_ws = Blueprint('music_ws', __name__)
@music_ws.route('/', methods=['GET'])
def index():
return 'Hello... |
"""
script to generate training data for the SVM classifying with training
images in the image_data/ diretcory with a folder for each person.
MIT License
Copyright (c) 2019 JinJie Chen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (th... |
from bs4 import BeautifulSoup
from ..lib.aioget import aioget
from tghtml import TgHTML
from ..config import dp, _
from ..lib import handlers
from ..lib.text import bold, cuteCrop
@dp.message_handler(commands="scp")
@handlers.parse_arguments(2)
async def scp(message, params):
query = params[1]
search = awai... |
// Copyright 2019 Shift Cryptosecurity AG
//
// 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 ... |
from rest_framework import permissions
class IsOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.owner == request.user
class IsOwnerOrDriverReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
if obj.owner... |
import Realm from 'realm';
import RepositorySchema from '../schema/RepositorySchema';
export default function getRealm() {
return Realm.open({
schema: [RepositorySchema],
});
}
|
function emitWarning() {
if (!emitWarning.warned) {
emitWarning.warned = true;
console.log(
'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/ceylon" instead of "highlight.js/lib/languages/ceylon.js"'
);
}
}
emitWarning();
... |
// rollup.config.js
import typescript from '@rollup/plugin-typescript';
import {uglify} from "rollup-plugin-uglify";
import commonjs from "@rollup/plugin-commonjs";
import replace from "@rollup/plugin-replace";
import resolve from "@rollup/plugin-node-resolve";
export default {
input: './src/build-url.ts',
output:... |
import functools
import inspect
import uuid
from collections import defaultdict
from dataclasses import dataclass, field
from types import MappingProxyType
from typing import Callable, Dict, List, Optional, Any
from ward.errors import FixtureError
from ward.fixtures import Fixture, FixtureCache, Scope
from ward.models... |
import React, { useCallback, memo } from 'react';
import HeaderCell from './HeaderCell';
import { assertIsValidKey } from './utils';
function HeaderRow({ columns, lastFrozenColumnIndex, rows, rowKey, onSelectedRowsChange, allRowsSelected, onColumnResize, sortColumn, sortDirection, onSort }) {
const handleAllRowsSel... |
#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... |
// Content section used alot
var content = document.getElementById('content');
if (!window.FileReader) {
content.innerHTML = "<p>This browser doesnt support the File API</p>";
} else {
// Page Layout
content.innerHTML =
'<p>Pick a text file or drag one into this area <br> <input type="file" id="file" /></p>'... |
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx... |
# Generated by Django 4.0rc1 on 2021-11-28 11:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blackbook', '0015_transactionjournal_tags'),
]
operations = [
migrations.AlterField(
model_nam... |
//--------------------------------------------------------------------------------------
// Copyright 2013 Intel Corporation
// All Rights Reserved
//
// Permission is granted to use, copy, distribute and prepare derivative works of this
// software for any purpose and without fee, provided, that the above copyright no... |
import React from "react"
import PropTypes from "prop-types"
import {Helmet} from "react-helmet"
import {useLocation} from "@reach/router"
import {useStaticQuery, graphql} from "gatsby"
const SEO = ({title, description, image, article}) => {
const {pathname} = useLocation()
const {site} = useStaticQuery(query)... |
import os
import time
import IPython
import numpy as np
import scipy.stats as st
from sklearn.metrics import confusion_matrix
import gym
import torch
import torch.nn.functional as F
from torch.autograd import Variable
def get_action(actions, env):
if type(env.action_space) is gym.spaces.Discrete:
# Get ... |
/*
* Copyright (c) 2001 Matteo Frigo
* Copyright (c) 2001 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at... |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationVibration = (props) => (
<SvgIcon {...props}>
<path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5zM16 19H8V5h8... |
function main() {
const v4 = new Int32Array(Int32Array);
let v7 = 0;
const v9 = {hasOwnProperty:1337};
const v11 = v9.__proto__;
v11[1337] = 685873.5511442542;
const v12 = v7 + 1;
v7 = v12;
const v14 = [Number];
const v16 = [];
const v19 = [-2.0,-2.0,-2.0];
const v20 = [v19];
const v23 = [13.37];
v20[1.0] = v23;
v20[13... |
import copy
import csv
import os
import time
import numpy as np
import torch
from tqdm import tqdm
from sklearn.metrics import confusion_matrix
def compute_miou(confusion_matrix):
# compute mean iou
intersection = np.diag(confusion_matrix)
ground_truth_set = confusion_matrix.sum(axis=1)
predicted_set... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... |
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_ANDROID_JNI_MOCK_H_
#define FLUTTER_SHELL_PLATFORM_ANDROID_JNI_MOCK_H_
#include "flutter/shell/platform/android/jni/platfor... |
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* The possible methods that can be used to fit the image.
* {@docCategory Image}
*/
var ImageFit;
(function (ImageFit) {
/**
*... |
#include "/d/islands/dallyh/fways.h"
inherit "/std/barkeep";
void create()
{
::create();
set("aggressive", 0);
set_level(25);
set_guild_level("fighter", 25);
set_mlevel("fighter", 25);
set_gender("female");
set_alignment(4);
set_race("human");
set_hd(25,8);
set_new_exp(25, ... |
__NUXT_JSONP__("/69/28", (function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){return {data:[{metaTitle:e,metaDesc:f,verseId:28,surahId:69,currentSurah:{number:"69",name:"الحاۤقّة",name_latin:"Al-Haqqah",number_of_ayah:"52",text:{"1":"اَلْحَاۤقَّةُۙ","2":"مَا الْحَاۤقَّةُ ۚ ","3":"وَمَآ اَدْرٰىكَ مَا الْحَاۤقَّةُ ۗ ","4":"... |
# Assuming video and corresponding srts are present in current directory
import os
import re
from typing import List
def is_type_of(filename: str, file_ext: List[str]=None) -> bool:
if file_ext == None:
file_ext = ['mkv', 'mp4']
for ext in file_ext:
if filename.lower().endswith(ext):
... |
import logging
import os
import time
import unittest
from integration_tests.env_variable_names import (
SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN,
)
from slack_sdk.scim import SCIMClient
from slack_sdk.scim.v1.group import Group, GroupMember
from slack_sdk.scim.v1.user import User, UserName, UserEmail
class TestS... |
# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... |
import PropTypes from 'prop-types';
import invariant from 'invariant';
import defaultGetHelperDimensions from './defaultGetHelperDimensions';
import defaultShouldCancelStart from './defaultShouldCancelStart';
export const propTypes = {
axis: PropTypes.oneOf(['x', 'y', 'xy']),
contentWindow: PropTypes.any,
disab... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holdi... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
import drawSvg as draw
import pandas as pd
# >>> df = pd.DataFrame([[0, 2, 3], [0, 4, 1], [10, 20, 30]],
# ... index=[4, 5, 6], columns=['A', 'B', 'C'])
# >>> df
# A B C
# 4 0 2 3
# 5 0 4 1
# 6 10 20 30
df = pd.DataFrame([[15.7, 11.9, 3.8]], index=[1], columns=['Comp', 'Traffic... |
class RangeKeyDict:
def __init__(self, my_dict):
# !any(!A or !B) is faster than all(A and B)
assert not any(map(lambda x: not isinstance(x, tuple) or len(x) != 2 or x[0] > x[1], my_dict))
def lte(bound):
return lambda x: bound <= x
def gt(bound):
return lam... |
"use strict";
//* Boolean
var contaPaga = false; //variavel:tipo = valor
//* Number
var idade = 23;
var avaliacao = 4.5;
//* String
var nome = 'Vitor Farias';
//* Array
var idades = [23, 28, 45];
var idades2 = [12, 30, 89];
//* Tuple
var jogadores; //!Tres posições com tipos string cada, apenas 3!
jogadores = ['Vitor',... |
var searchData=
[
['unary_5fassert_852',['unary_assert',['../structdoctest_1_1detail_1_1_result_builder.html#a98c33e90242e2859255a79cb38489f3b',1,'doctest::detail::ResultBuilder::unary_assert(const DOCTEST_REF_WRAP(L) val)'],['../structdoctest_1_1detail_1_1_result_builder.html#a98c33e90242e2859255a79cb38489f3b',1,'do... |
/*
** Zabbix
** Copyright (C) 2001-2018 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This pro... |
module.exports = {
env: {
es6: 'error',
node: 'error',
},
extends: ['prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.base.json'],
tsconfigRootDir: __dirname,
sourceType: 'module',
},
ignorePatterns: ['node_modules/**'],
plugins: [
'eslint-p... |
"""Functions on PointData and CellData."""
# Author: Oualid Benkarim <oualid.benkarim@mcgill.ca>
# License: BSD 3 clause
import warnings
import numpy as np
from scipy.stats import mode
from scipy.spatial import cKDTree
from scipy.sparse.csgraph import laplacian
from sklearn.utils.extmath import weighted_mode
from... |
# -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2021-01-06 16:12
from typing import List
from elit.common.dataset import SortingSamplerBuilder
from elit.common.transform import NormalizeToken
from elit.components.mtl.loss_balancer import MovingAverageBalancer
from elit.components.mtl.multi_task_learning import MultiTa... |
var dir_2a6f9c55a68978f2bc4c9ccb8438eba6 =
[
[ "src", "dir_5d84675c81ab195ec3d805ced01e0f19.html", "dir_5d84675c81ab195ec3d805ced01e0f19" ]
]; |
import warnings
import torch.nn as nn
from mmcv.cnn import kaiming_init, constant_init
from .norm import build_norm_layer
class ConvModule(nn.Module):
def __init__(self,
in_channels,
out_channels,
kernel_size,
stride=1,
paddin... |
import pandas as pd
import numpy as np
import math
import csv
import random
import matplotlib.pyplot as plt
from pprint import pprint
from data_generator import DataGenerator
from decision_tree_classifier import DecisionTreeClassifier
from decision_tree_plotter import plotter
from cal_typical_error import CalTypicalErr... |
from typing import List
from project.domain.model import User
class UserQueries(object):
def find_all(self) -> List[User]:
pass
|
# ----------------------------------------------------------------------------
# Copyright (c) 2020 Legorooj <legorooj@protonmail.com>
# Copyright (c) 2020 FluffyKoalas <github.com/fluffykoalas>
# This file and all others in this project are licensed under the MIT license.
# Please see the LICENSE file in the root of t... |
// using Express
var express = require('express');
// create a variable called app app = express
var app = express();
// default path of hosting to the public folder
app.use(express.static(__dirname + '/public'));
// set port = 3030
var port = 3030;
app.listen(port);
console.log("Server listening on: "+port);
// w... |
#define MU3D_MTK_TEST_MAJOR 234
#define DEVICE_NAME "cli"
|
/* os-unix.c -*-C-*-
*
*************************************************************************
*
* Copyright (C) 2009-2015, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fol... |
# -*- coding: utf-8 -*-
# Time : 2022/1/17 13:50
# Author : QIN2DIM
# Github : https://github.com/QIN2DIM
# Description:
import os.path
from hashlib import sha256
from typing import List, Optional
import cloudscraper
import yaml
from services.settings import logger
from services.utils import (
ToolB... |
from absl import logging # noqa: F401
import icubam
from icubam.www.handlers import base
from icubam.www.handlers import home
from icubam.www import token
from icubam.www import updater
class UpdateHandler(base.BaseHandler):
ROUTE = updater.Updater.ROUTE
QUERY_ARG = 'id'
def initialize(self, config, db_fact... |