text stringlengths 3 1.05M |
|---|
/* */
"format cjs";
require('./angular-locale_kea');
module.exports = 'ngLocale';
|
# Generated from SystemVerilogParser.g4 by ANTLR 4.9.3
from antlr4 import *
if __name__ is not None and "." in __name__:
from .SystemVerilogParser import SystemVerilogParser
else:
from SystemVerilogParser import SystemVerilogParser
# This class defines a complete listener for a parse tree produced by SystemVer... |
import Layout from "../Layout";
import "./courseBookingPage.css";
import {
HeaderBox,
HeaderTitle,
PageBlock,
PrimaryButton,
PrimaryText,
SecondaryText,
TextInputBox,
} from "./../../features/Atoms";
import PaypalIntregrationButton from "./PaypalIntregrationButton";
import { Formik } from "formik";
impo... |
import debug from 'debug';
import o from 'component-dom';
import Headroom from 'democracyos-headroom.js';
import user from '../user/user.js';
import snapper from '../snapper/snapper.js';
import isMobile from '../is-mobile/is-mobile.js';
import config from '../config/config.js';
import template from './template.jade';
i... |
module.exports.test = () => {
describe('Module test: ui-marccat:', () => {
describe('Start test', () => {
it('should open app', done => {
console.log('ok');
done();
});
});
});
};
|
// export * as mint from "./module";
import * as mint from "./module";
export { mint };
|
from __future__ import absolute_import
from __future__ import print_function
import os
import sys
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))))
import nngen as ng
import veriloggen
import matrix_neg
a_shape =... |
/** @jsx jsx */
import { jsx } from 'theme-ui'
import { RiHeart2Line } from "react-icons/ri";
const Footer = () => (
<footer
className="site-footer"
sx={{
bg: 'primary'
}}
>
<div className="container">
<p>Tri Juhari
<span className="icon -love"><RiHeart2Line/></span></p>
... |
import gzip
import json
import networkx as nx
import pandas as pd
from tqdm import tqdm
def load_seventh_grader_network():
# Read the edge list
df = pd.read_csv('datasets/moreno_seventh/out.moreno_seventh_seventh',
skiprows=2, header=None, sep=' ')
df.columns = ['student1', 'student2... |
const { TokenExpiredError } = require("jsonwebtoken");
const jwt = require("jsonwebtoken");
const config = require("../config/auth.config.js");
const db = require("../models");
const User = db.user;
// VERIFY TOKEN
const catchError = (err, res) => {
if (err instanceof TokenExpiredError) {
return res
.statu... |
import { NftService } from '../business';
/**
* This function will add new ERC 721 token in db.
* req.body {
* uri: 'table/t1',
* tokenId: '0xa23..',
* shieldContractAddress: '0x12b..',
* isMinted: true,
* isReceived: true,
* sender: 'alice', [will be only present if is_received = true]
* senderAddr... |
CodeMirror.defineMode("turtletina", function(conf, parserConf) {
var ERRORCLASS = 'error';
function wordRegexp(words) {
return new RegExp("^((" + words.join(")|(") + "))\\b");
}
var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!]");
var singleDelimiters = new RegExp('^[\\(\\)... |
/*! React Alt Firebase Starter */
import React from 'react';
import { Route } from 'react-router';
import Pricing from './components/Pricing';
export default (
<Route name='pricing' path='/pricing' handler={Pricing}/>
);
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
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):
# Adding field 'Page.locked'
db.... |
var searchData=
[
['get_163',['Get',['../class_singleton.html#a5e57ace1a9fa9b60ccb70d6fee5c1663',1,'Singleton']]],
['getscene_164',['GetScene',['../class_visualizer.html#adbe7f273b2df98bd227282e52215076f',1,'Visualizer']]],
['gettimer_165',['GetTimer',['../class_visualizer.html#ab07e0c2086cc60c03c85896fbac69df0',... |
# -*- coding: utf-8 -*-
'''
Mounting of filesystems
=======================
Mount any type of mountable filesystem with the mounted function:
.. code-block:: yaml
/mnt/sdb:
mount.mounted:
- device: /dev/sdb1
- fstype: ext4
- mkmnt: True
- opts:
- defaults
/srv... |
// FIXME getView3D has not return type
goog.provide('ol.View2D');
goog.provide('ol.View2DProperty');
goog.require('goog.asserts');
goog.require('ol.CenterConstraint');
goog.require('ol.Constraints');
goog.require('ol.IView2D');
goog.require('ol.IView3D');
goog.require('ol.ResolutionConstraint');
goog.require('ol.Rota... |
import os, sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
os.environ['DJANGO_SETTINGS_MODULE'] = 'misitio.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
|
export { default } from "./MainHeader";
|
# -*- coding: utf-8 -*-
"""
Created May 2018
Use machine learning to combine important features in matching
addresses to create one confidence score
Part 1: Data wrangling for input into machine learning algorithm
Part 2: Machine learning
Want to predict a match (TRUE / FALSE) using:
- Hopper scores?
- d... |
import React, { Component } from "react";
import styled from "styled-components";
import { Link } from "react-router-dom";
import { ProductConsumer } from "../Context";
import PropTypes from "prop-types";
export default class Product extends Component {
render() {
const { id, title, img, price, inCart } = ... |
jQuery(function ($) {
$.fn.wmb_image_selector = function (options) {
let settings = $.extend({
wrapper: jQuery(this).parent('.wmb-image-selector-container')
}, options);
settings = $.extend({
preview: settings.wrapper.find('.wmb-image-selector-preview'),
... |
import { Platform } from "react-native";
export default {
// Line Height
btnLineHeight: 19,
lineHeightH1: 32,
lineHeightH2: 27,
lineHeightH3: 22,
iconLineHeight: Platform.OS === "ios" ? 37 : 30,
lineHeight: Platform.OS === "ios" ? 20 : 24,
// List
listBorderColor: "#fff",
listDividerBg: "#ddd",
... |
#!/usr/bin/env python
import rospy
import unittest
import rostest
from duckietown_msgs.msg import AprilTagsWithInfos
from sensor_msgs.msg import CameraInfo, Image
import cv2
from cv_bridge import CvBridge
import tf.transformations as tr
import numpy as np
class ApriltagsIntegrationTester(unittest.TestCase):
def _... |
var path = require("path");
var fs = require("fs");
var uuid = require("node-uuid");
var cp = require("child_process");
var bodyParser = require("body-parser");
var usage = require("usage");
var request = require("request");
var AWS = require("aws-sdk");
var Bluebird = require("bluebird");
var uuid = require("node-uuid... |
import React, { useState } from 'react';
import ReactDOM from 'react-dom';
import styled from 'styled-components';
const Input = styled.input`
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
`
const Label = styled.label`
flex: 1;
min-width: 200px;
border:... |
var menudata={children:[
{text:"Main Page",url:"index.html"},
{text:"Classes",url:"annotated.html",children:[
{text:"Class List",url:"annotated.html"},
{text:"Class Index",url:"classes.html"},
{text:"Class Hierarchy",url:"inherits.html"},
{text:"Class Members",url:"functions.html",children:[
{text:"All",url:"functions.... |
Package.describe({
summary: "Example of an universal package",
version: "1.0.0",
name: "universal",
});
Package.onUse(function (api) {
api.use('amd:manager');
api.addFiles([
'_.js',
'index.js',
'module1.js',
'module2.js',
'exports.js',
], ['client', 'server']);
api.export('Unive... |
import React from "react"
import { Form } from "antd"
import RestrictedButton from "app/Common/RestrictedButton"
import ConnectionSettingsFieldset from "./ConnectionSettingsFieldset"
const ConnectionSettingsForm = ({
datastore,
form,
hasPermission,
isSubmitting,
onSubmit,
}) => (
<Form onSubmit={onSubmit} ... |
# Ultroid - UserBot
# Copyright (C) 2020 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
#
# Ported by Koala @manusiarakitann
# Recode by @mrismanaziz
# FROM Man-U... |
# -*- coding: utf-8 -*-
import random
from . import string_control
def read_file(filename):
with open(filename, "r", encoding = "utf-8") as file:
content = file.read().replace("\n", " ")
return content
def build_chain(source, chain={}):
words = source.split(" ")
index = 1
for word in w... |
define(["dojo/_base/lang", "dojo/Deferred", "dojo/when", "dojo/_base/config",
"dojo/store/DataStore"],
function(lang, Deferred, when, config, DataStore){
return function(/*Object*/config, /*Object*/params, /*String*/item){
// summary:
// simpleModel is called for each simple model, to create the simple model fr... |
from django.apps import AppConfig
class OpsApiConfig(AppConfig):
name = 'ops_api'
|
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... |
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/localization/eo/FontWarnings.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Licensed under the Apache License, Versi... |
var noop = function () {};
set_global('$', global.make_zjquery());
set_global('page_params', {
use_websockets: true,
});
set_global('channel', {});
set_global('navigator', {});
set_global('reload', {});
set_global('reload_state', {});
set_global('socket', {});
set_global('Socket', function () {
return global.... |
/**
* Module dependencies.
*/
var passport = require('passport-strategy')
, util = require('util')
, parseObjectNotatrion = require('./utils').parseObjectNotatrion;
/**
* `Strategy` constructor.
*
* The local authentication strategy authenticates requests based on the
* credentials submitted through an HTML-b... |
#!/usr/bin/env python2
# 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.
#
# Test BIP68 implementation
#
from test_framework.test_framework import BaghdadbitTestFramework
from t... |
import * as React from "react";
import { PageSection, Title } from "@patternfly/react-core";
const Dashboard = () => (
<PageSection>
<Title headingLevel="h1" size="lg">
Dashboard Page Title
</Title>
</PageSection>
);
export { Dashboard };
|
import pytest
import numpy as np
from pg import DB
from odinapi.views.level1b_scandata_exporter_v2 import (
ScandataExporter,
smr_lofreqcorr,
unsplit_normalmode,
apply_calibration_step2,
)
from odinapi.views.smr_frequency import (
Smrl1bFreqspec,
Smrl1bFreqsort,
get_bad_ssb_modules,
)
from o... |
#!/usr/bin/env node
const fs = require("fs");
const glob = require("glob");
const uppercamelcase = require("uppercamelcase");
const camelcase = require("camelcase");
const path = require("path");
const cheerio = require("cheerio");
const program = require("commander");
const pkg = require("../package.json");
const pre... |
"""
Arcs in hyperbolic geometry
AUTHORS:
- Hartmut Monien (2011 - 08)
"""
#*****************************************************************************
# Copyright (C) 2011 Hartmut Monien <monien@th.physik.uni-bonn.de>,
# 2015 Stefan Kraemer <skraemer@th.physik.uni-bonn.de>
# ... |
"""
Django settings for rssly project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# ... |
import { primaryColor, dangerColor, roseColor, grayColor } from 'assets/jss/nextjs-material-kit.js';
const customCheckboxRadioSwitch = {
checkRoot: {
padding: '12px',
'&:hover': {
backgroundColor: 'unset',
},
},
radioRoot: {
padding: '12px',
'&:hover': {
backgroundColor: 'unset',
... |
/*______________
| ______ | U I Z E J A V A S C R I P T F R A M E W O R K
| / / | ---------------------------------------------------
| / O / | MODULE : UizeSite.Build.FileBuilders.ModuleSourceCodePages Package
| / / / |
| / / / /| | ONLINE : http://www.uize.com
| /... |
/**
* @license
* 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
*/
CLASS({
pack... |
const mongoose = require('mongoose');
const teamMemberProfileSchema = mongoose.Schema({
description: {
type: String,
},
title: {
type: String,
match: /^[a-zA-Z][a-zA-Z ]+[a-zA-Z]$/,
},
social_links: {
angellist: { type: String },
linkedin: { type: String },
},
img: {
type: String,... |
/*
* Copyright (C) 2008 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
var SR_url = window.location.toString().toLowerCase();
if(typeof(COMSCORE)=="undefined"){var COMSCORE={};}if(typeof COMSCORE.SiteRecruit=="undefined"){COMSCORE.SiteRecruit={version:"5.0.3",configUrl:"broker-config.js",builderUrl:"builder.js",allowScriptCaching:false,CONSTANTS:{COOKIE_TYPE:{ALREADY_ASKED:1,DD_IN_PROGRES... |
#!/usr/bin/env python
# encoding: utf-8
import socket
from selectors import DefaultSelector, EVENT_WRITE, EVENT_READ
selector = DefaultSelector()
stopped = False
# urls_todo = {'/', '/1', '/2', '/3', '/4', '/5', '/6', '/7', '/8', '/9'}
urls_todo = {'/'}
class Future:
def __init__(self):
self.result = No... |
"""
Class for reading metadata from xray datasets
"""
import glob
import os.path
class ReaderBase:
"""
Store the filenames into a list.
"""
suffix = "*"
def __init__(self, **kwargs):
path = kwargs.get("path")
if path:
self.folder = os.path.join(path, self.suffix)
... |
/*
* Copyright 2012-2013 the original author or authors
* @license MIT, see LICENSE.txt for details
*
* @author Scott Andrews
*/
(function (define, process) {
'use strict';
define(function (require) {
var moduleId;
/**
* Plain JS Object containing properties that represent an HTTP request.
*
* D... |
#write import statement for Die class
from src.homework.hw10.diehw10 import Die
from src.homework.hw10score_entry import ScoreEntry
'''
Create a Player class.
Add a constructor method to create two Die attributes die1 and die2
Add a roll_doubles method that will iterate, roll die1 and die2, display rolled values,
a... |
export const max = (a, b) => a > b ? a : b
export const min = (a, b) => a < b ? a : b
|
# Copyright 2015, Google 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:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... |
/**
* Created by phanmduong on 4/6/17.
*/
import {UPDATE_CARD_POINT} from '../../../../constants/actionTypes';
import {showNotification} from '../../../../helpers/helper';
/*eslint no-console: 0 */
export function changePointCard(card) {
return function (dispatch) {
dispatch({
type: UPDATE_CA... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// @flow
import {Client4} from 'client';
import {bindClientFunc, forceLogoutIfNecessary, FormattedError} from './helpers.js';
import {GeneralTypes} from 'action_types';
import {loadMe} from './users';
import... |
import React from "react"
import GuideList from "../components/guide-list.js"
import HubspotForm from "../components/hubspot-form"
import Pullquote from "../components/shared/pullquote"
import EggheadEmbed from "../components/shared/egghead-embed"
import DateChart from "../components/chart"
import LayerModel from "../... |
$(document).ready(function () {
$(function () {
var dateFormat = "dd/mm/yy",
from = $("#inputfrom").datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
dateFormat: dateFormat,
minDate: 0
})
.on("change", function () {
... |
import unittest
import torch
import pixyz.distributions as pxd
import dgmvae.losses as dvl
class TestDipLoss(unittest.TestCase):
def test_diploss_i(self):
p = pxd.Normal(loc=torch.tensor(0.), scale=torch.tensor(1.),
features_shape=[2])
loss_cls = dvl.DipLoss(p, 10, 10, di... |
import { __awaiter, __generator } from "tslib";
import { r as registerInstance, c as createEvent, d as getIonMode, h, H as Host, e as getElement } from './core-ca0488fc.js';
import { b as config } from './config-3c7f3790.js';
import { d as debounceEvent } from './helpers-46f4a262.js';
import { c as createColorClasses }... |
import { JWProxy } from 'appium-base-driver';
import { retryInterval } from 'asyncbox';
import logger from './logger';
import path from 'path';
import { fs, util, mkdirp, tempDir } from 'appium-support';
import { version } from '../../package.json'; // eslint-disable-line import/no-unresolved
const TEST_APK_PATH = pa... |
import { module, test } from '../qunit';
import moment from '../../moment';
module('is valid');
test('array bad month', function (assert) {
assert.equal(moment([2010, -1]).isValid(), false, 'month -1 invalid');
assert.equal(moment([2100, 12]).isValid(), false, 'month 12 invalid');
});
test('array good month'... |
import json
from collections import Iterable
import torch
from elasticai.creator.precomputation.precomputation import (
JSONEncoder,
Precomputation,
precomputable,
)
from elasticai.creator.tags_utils import Module, get_tags
from elasticai.creator.tests.tensor_test_case import TensorTestCase
class DummyM... |
var webpack = require('webpack');
var cssnext = require('postcss-cssnext');
var postcssFocus = require('postcss-focus');
var postcssReporter = require('postcss-reporter');
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: {
app: [
'eventsource-polyfill',
'webpack-hot-middleware/cl... |
'''
Copyright 2020 Flexera Software LLC
See LICENSE.TXT for full license text
SPDX-License-Identifier: MIT
Created on Sep 15, 2019
@author: SGeary
'''
import logging
import requests
import sys
import config
logger = logging.getLogger(__name__)
########################################################... |
import __offset from '../dom/offset'
import SSvgFilter from './SSvgFilter'
import fastdom from 'fastdom'
require('../events/sTransitionStartEventDispatcher');
/**
* @class SMotionblurSvgFilter {SSvgFilter}
* This class represent a motion blur svg filter that will blur your
* element depending on his movements... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
const fs = require('fs').promises;
const util = require('util');
async function run() {
async function createWebAssembly(bytes) {
const memory = new WebAssembly.Memory({ initial: 256, maximum: 256 });
const env = {
abortStackOverflow: (err) => { throw new Error(`overflow: ${err}`); },
table: new ... |
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* global document */
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
import EventInfo from '@cke... |
import click
import importlib
import json
import epimport as epi
@click.command()
@click.option('--srcdb', help='The source db')
@click.option('--entry', default='main', help='The entry function')
@click.option('--args', default='{}',
help='Arguments to be passed into entry function in JSON format')
@cl... |
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import './App.css'
import About from "./containers/About/About";
import Contact from "./containers/Contact/Contact";
import Portfolio from "./containers/Portfolio/Portfolio";
import NoMatch from "./containers/NoMatch/N... |
import React from "react";
import PropTypes from "prop-types";
import { graphql } from "gatsby";
import Helmet from "react-helmet";
import Layout from "../components/Layout";
import { Markdown } from "../components/styles/Markdown";
import Content, { HTMLContent } from "../components/Content";
export const AboutPageTe... |
$.extend({
myTime:{
CurTime: function(){
return Date.parse(new Date())/1000;
},
DateToUnix: function(string) {
var f = string.split(' ', 2);
var d = (f[0] ? f[0] : '').split('-', 3);
var t = (f[1] ? f[1] : '').split(':', 3);
return ... |
import React, { useState, useEffect, useMemo } from 'react';
import { useSelector } from 'react-redux';
import { Form, Input } from '@rocketseat/unform';
import InputMask from 'react-input-mask';
import { toast } from 'react-toastify';
import { parse } from 'query-string';
// Services
import api from '../../services/a... |
/*
* "Wahai orang-orang yang beriman, mengapakah kamu mengatakan sesuatu yang tidak kamu kerjakan?
* Amat besar kebencian di sisi Allah bahwa kamu mengatakan apa-apa yang tidak kamu kerjakan."
* (QS ash-Shaff: 2-3).
*/
const { decryptMedia } = require('@open-wa/wa-decrypt')
const fs = require('fs-extra')
const axios = ... |
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
/*!
* Start Bootstrap - Stylish Portfolio v5.0.6 (https://startbootstrap.com/template-overviews/stylish-portfolio)
* Copyright 2013-2019 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-stylish-portfolio/blob/master/LICENSE)
*/
!function(o){"use strict";o(".menu-toggle").cli... |
import React, { useEffect, useState } from "react";
import Card from "react-bootstrap/Card";
import Button from "react-bootstrap/Button";
import Container from "react-bootstrap/Container";
import Row from "react-bootstrap/Row";
import Col from "react-bootstrap/Col";
import FormControl from "react-bootstrap/FormControl... |
import pika
from time import sleep
connection = pika.BlockingConnection(pika.ConnectionParameters('rabbitmq'))
channel = connection.channel()
channel.queue_declare(queue='hello')
def callback(ch, method, properties, body):
print(" [x] Received %r" % body)
sleep(3)
# print(dir(method))
# Salvar no banco
# S... |
import warnings
from collections import Counter
from fractions import Fraction
from functools import reduce
from itertools import chain, count, islice, repeat
from math import log2
from typing import Callable, List, Optional, Union
import torch
import torchaudio
import torchaudio.transforms as T
from packaging import ... |
// Frameworks
import React, { Component } from 'react'
import { verifier1, verifier2, verifier3 } from '../utilities/uportSetup'
import { Credentials, SimpleSigner} from 'uport'
import OpenBadge from './OpenBadge'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as AppActions f... |
"""A pure-Python Python bytecode interpreter."""
# Based on:
# pyvm2 by Paul Swartz (z3p), from http://www.twistedmatrix.com/users/z3p/
# Disable because there are enough false positives to make it useless
# pylint: disable=unbalanced-tuple-unpacking
# pylint: disable=unpacking-non-sequence
# TODO(ampere): Add doc s... |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.13.9
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
from decode import read_test_source, parse_program_with_ast
from funcs import *
test_defs_ast = parse_program_with_ast(read_test_source())
print(test_defs_ast)
# {':1': 1,
# ':2': 2,
# ':3': 3,
# ':4': <INC()>,
# ':5': <ADD()>,
# ':6': (AP <ADD()> 2),
# ':7': (AP (AP <CONS()> 4) 5),
# ':8': (AP (AP ref::5 (AP <C... |
/*
* @Author: Jacky
* @Date: 2018-08-10 10:54:46
* @Last Modified by: Jacky
* @Last Modified time: 2018-08-10 14:54:02
*/
let defaultCity = '上海'
try {
if( localStorage.city ){
defaultCity = localStorage.city
}
} catch (e) {}
export default {
city: defaultCity
} |
var _c_c_s811_8h =
[
[ "CCS811", "class_c_c_s811.html", "class_c_c_s811" ],
[ "CCS811::__attribute__", "struct_c_c_s811_1_1____attribute____.html", "struct_c_c_s811_1_1____attribute____" ],
[ "CCS811_BOOTLOADER_APP_DATA", "_c_c_s811_8h.html#a921dbaecc25a8be2e54892684622d4bd", null ],
[ "CCS811_BOOTLOADE... |
# Copyright 2018 The TensorFlow 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 applica... |
import reduxLogger from "redux-logger";
import { init } from "@rematch/core";
import createLoadingPlugin from "@rematch/loading";
import createSelectPlugin from "@rematch/select";
import * as models from "./models";
// redux中间件
const reduxMiddlewares = [];
// 只在开发环境时使用redux-logger
if (process.env.NODE_ENV === "develo... |
#!/usr/bin/env node
'use strict'
const execa = require('execa')
async function getTags() {
const result = await execa('git', ['tag', '--list'])
return result.stdout.split('\n')
}
async function getNewTags() {
const result = await execa('npm', ['info', '--json', 'evergreen-ui'])
return JSON.parse(result.stdout... |
from ._zsrc import ZsrcValidator
from ._z import ZValidator
from ._ysrc import YsrcValidator
from ._y import YValidator
from ._xsrc import XsrcValidator
from ._x import XValidator
from ._wsrc import WsrcValidator
from ._w import WValidator
from ._vsrc import VsrcValidator
from ._visible import VisibleValidator
from ._v... |
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('nightwatch').initGrunt(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
connect: {
server: {
options: {
hostname: 'yt.127.0.0.1.xip.io',
port: 28080,
base: '.'
},
... |
define(["require", "exports"], function(require, exports) {
var TestFileDir = ".\\TempTestFiles";
var TestCase = (function () {
function TestCase(name, test, errorMessageRegEx) {
this.name = name;
this.test = test;
this.errorMessageRegEx = errorMessageRegEx;
}... |
var express = require('express');
var router = express.Router();
var conf = require('../config.js');
var mtool = new (require('../lib/tools.js'))(conf);// 消息操作工具
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Naiveboom - 比较安全', isZhao: conf.isZhao});
});
/**
* 提取信息
*... |
#!/usr/bin/env node
// Get Wikidata:Identifier properties (any datatype)
const wdk = require('wikidata-sdk')
const request = require('request-promise-native')
const query = `
SELECT DISTINCT ?p ?pLabel ?template {
?p wdt:P31/wdt:P279* wd:Q19847637 .
?p wikibase:propertyType ?type .
SERVICE wikibase:labe... |
module.exports = {
"39.0.2171.65": [
"0.20.0",
"0.20.1",
"0.20.2",
"0.20.3",
"0.20.4",
"0.20.5",
"0.20.6",
"0.20.7",
"0.20.8"
],
"40.0.2214.91": [
"0.21.0",
"0.21.1",
"0.21.2"
],
"41.0.2272.76": [
"0.21.3",
"0.22.1",
"0.22.2",
"0.22.3",
"0.23.0",
"0.24.0"
],
"42.0.2311.107": [... |
function include(filename) {
var head = document.getElementsByTagName('head')[0];
var scripts = head.getElementsByTagName('script');
for ( var i=0; i<scripts.length; i++ ) {
if ( scripts[i].src && scripts[i].src.indexOf(filename) > -1 )
return;
}
var head = document.getElementsByTagName('head... |
'use strict';
var convert = require('./convert'),
func = convert('isDate', require('../isDate'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func; |
'use strict'
module.exports = {
user: 'mockRedisUser',
password: 'mockRedisPass'
}
|
#!/usr/bin/env/python
"""
Usage:
DeLinker.py [options]
Options:
-h --help Show this screen
--dataset NAME Dataset name: zinc, qm9, cep
--config-file FILE Hyperparameter configuration file path (in JSON format)
--config CONFIG Hyperparameter configuration dict... |