text stringlengths 3 1.05M |
|---|
#!/usr/bin/python
# -*- coding:utf-8 -*-
# Powered By KK Studio
config = {
'db': {
'host': '127.0.0.1',
'port': 3306,
'db': 'torweb',
'user': 'test',
'passwd': 'test',
'charset': 'utf8'
},
'redis': {
'host': '127.0.0.1',
'port': 6379,
... |
import { http } from '../src'
describe('#http web request', () => {
test('should return 200 status and send Hello World!', done => {
const mockRequest = { method: 'GET' }
const mockResponse = {
status: code => {
expect(code).toEqual(200)
return {
send: jest.fn(label => {
... |
import '../_rollupPluginBabelHelpers-1f0bf8c2.js';
import 'reakit-system/createComponent';
import 'reakit-system/createHook';
import 'react';
import 'reakit-utils/useSealedState';
export { unstable_IdContext, unstable_IdProvider } from './IdProvider.js';
export { unstable_Id, unstable_useId } from './Id.js';
export { u... |
/*
* correlation.h
*
* Copyright (C) 2015, Achim Lösch <achim.loesch@upb.de>, Christoph Knorr <cknorr@mail.uni-paderborn.de>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* tab size: 4
* ... |
# -*- coding: utf-8 -*-
from gluon import *
from s3 import S3CustomController, S3DataTable, S3Method, s3_request
THEME = "NYC"
# =============================================================================
class index(S3CustomController):
""" Custom Home Page """
def __call__(self):
output = {}
... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
"""ES-PIM
- prevents non-zero energy spurious modes for vibration / buckling analysis as
NS-PIM
- compared to SFEM using TRIA3, this approach is very similar, but much easily
extented to n-sided elements, since the integration is performed edge-wise
- results more precise than FEM using QUAD4 elements
"""
import ... |
"""
link: https://leetcode-cn.com/problems/next-greater-element-ii
problem: 求循环数组中每个数的下一个更大值,不存在时返回 -1
solution: 单调栈。遍历两次维护一个非严格递减的单调栈即可。
"""
class Solution:
def nextGreaterElements(self, nums: List[int]) -> List[int]:
stack, res = [], [_ for _ in nums]
for i, v in enumerate(nums):
... |
# 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 not u... |
#pragma once
#include "Gear/Definitions.h"
NAMESPACE_START(Gear)
class CpuTimer
{
public:
CpuTimer(float32_t speed = 1.0f)
: m_Speed(speed)
{
assert(speed > 0.0f);
m_LastTime = std::chrono::high_resolution_clock::now();
}
inline double64_t elapsedTime()
{
if (m_State == EState::Tick)
{
auto curren... |
#!/usr/bin/env python3
# Copyright (c) 2015-2017 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 the ZMQ notification interface."""
import configparser
import os
import struct
import time
from t... |
import lodashGet from 'lodash/get';
import Onyx from 'react-native-onyx';
import ONYXKEYS from '../ONYXKEYS';
let encryptedAuthToken = '';
Onyx.connect({
key: ONYXKEYS.SESSION,
callback: session => encryptedAuthToken = lodashGet(session, 'encryptedAuthToken', ''),
});
/**
* Add encryptedAuthToken to this att... |
const path = require('path')
const buble = require('rollup-plugin-buble')
const flow = require('rollup-plugin-flow-no-whitespace')
const cjs = require('rollup-plugin-commonjs')
const node = require('rollup-plugin-node-resolve')
const replace = require('rollup-plugin-replace')
const version = process.env.VERSION || requ... |
(function( window, undefined ) {
kendo.cultures["hi"] = {
name: "hi",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3,2],
percent: {
pattern: ["-n%","n%"],
decimals... |
// @flow
import type ReactNativeAnimatedValue from 'react-native/Libraries/Animated/nodes/AnimatedValue';
import type { ViewToken } from 'react-native/Libraries/Lists/ViewabilityHelper';
export type {
Layout,
LayoutEvent,
ScrollEvent,
} from 'react-native/Libraries/Types/CoreEventTypes';
export type {
Conten... |
import h5py
import keras.backend as K
def load_weights(model, weights_path):
"""Load weights from Caffe models."""
print("Loading weights...")
if h5py is None:
raise ImportError('`load_weights` requires h5py.')
f = h5py.File(weights_path, mode='r')
# New file format.
layer_names = [n.... |
import React, {Fragment} from 'react';
import Tabs from 'react-responsive-tabs';
import PageTitle from '../../../Layout/AppMain/PageTitle';
// Examples
import NavsVertical from './Examples/NavVertical';
import NavsHorizontal from './Examples/NavHorizontal';
const tabsContent = [
{
title: 'Vertical Menu... |
'use strict';(function(r){function T(){return Array.prototype.slice.call(this)}function P(g,f){if(g.constructor===f)return g;if(g.constructor!==Array)return f=f||Float32Array,new f(g);f=f||Float32Array;for(var a=g[0].length,b=new f(g.length*a),c=0;c<g.length;++c)for(var d=0;d<a;++d)b[c*a+d]=g[c][d];return b}function G(... |
from os.path import dirname
from adapt.intent import IntentBuilder
from mycroft.skills.core import MycroftSkill
from mycroft.util.log import getLogger
import subprocess
LOGGER = getLogger(__name__)
class myscriptskill(MycroftSkill):
def __init__(self):
super(myscriptskill, self).__init__(name="myscript... |
import datetime
current = datetime.datetime.now()
print(f'Current Time : {current}') |
from numpy.random import normal, random
from numpy import abs
from numpy import sin, cos
import math
from scipy.stats import norm
import numpy as np
from copy import deepcopy
from math import atan2
import MapBuilder
a1 = 0.01
a2 = 0.01
a3 = 0.01
a4 = 0.01
count = 0
class Particle:
fidelity = 0.1 ###this is the m... |
from functools import cmp_to_key
class iNode:
def __init__(self, name: str, parent=None, is_file=False, content=None):
self.name = name
self.is_file = is_file
self.content = content
self.parent = parent
self.inodes = dict() # <name, iNode>
def __str__(self):
d... |
(async function(testRunner) {
var {page, session, dp} = await testRunner.startHTML(`
<body class='body-class'>
<div class='class1'></div>
<div class='class2'>
<ul class='class3'>
<li class='class4'></li>
</ul>
</div>
<div class='class5 class6'></div>
<div id='shadow-host'><... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from typing import Deque
import _init_paths
import os
import os.path as osp
import cv2
import logging
import argparse
import motmetrics as mm
import numpy as np
import torch
from tracker.multitracker2 import J... |
#include <hre/config.h>
#include <stdlib.h>
#include <dm/dm.h>
#include <hre/user.h>
#include <hre/stringindex.h>
#include <ltsmin-lib/ltsmin-standard.h>
#include <pins-lib/pins.h>
#include <pins-lib/pins-util.h>
#include <pins-lib/pins2pins-mucalc.h>
#include <pins-lib/pins2pins-parallel.c>
#include <util-lib/treedbs... |
/*
* This file is part of the SDWebImage package.
* (c) Olivier Poitrey <rs@dailymotion.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import "SDWebImageCompat.h"
#import "SDWebImageDownloaderDelegate.h"
#import "SDWebImageM... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.hdl.constants import Time
from hwt.interfaces.std import VldSynced
from hwt.interfaces.utils import addClkRstn
from hwt.simulator.simTestCase import SimTestCase
from hwt.synthesizer.hObjList import HObjList
from hwt.synthesizer.param import Param
from hwt.synthes... |
#ifndef __DPDK_LWIP_H__
#define __DPDK_LWIP_H__
#include "lwip/ip_addr.h"
#include "lwip/etharp.h"
#include "dpdk_eth.h"
namespace DPDK
{
class Lwip
{
public:
Lwip(DPDK::Ethernet_device& dev);
private:
DPDK::Ethernet_device& _ethernet_device;
ip_addr_t _ipaddr;
ip_addr_t _netmask;
ip_addr_t _gw;
};
}
... |
# Internally used by funicorn for uvloop
from uvicorn.workers import UvicornWorker
class FatesWorker(UvicornWorker):
CONFIG_KWARGS = {"loop": "uvloop", "interface": "asgi3", "ws_max_size": 1000000000, "lifespan": "on"}
|
const { client } = require('../db/client');
const bcrypt = require('bcrypt-nodejs');
const auth = require('../services/auth');
const cities = require('all-the-cities');
// GET ALL
const getUsers = async (request, response) => {
var results = await client.query('SELECT * FROM Users ORDER BY id ASC');
return response.... |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6',
name: 'Node CLI Test',
user: {
... |
import torch
from ..builder import BBOX_SAMPLERS
from ..transforms import bbox2roi
from .base_sampler import BaseSampler
@BBOX_SAMPLERS.register_module()
class OHEMSampler(BaseSampler):
r"""Online Hard Example Mining Sampler described in `Training Region-based
Object Detectors with Online Hard Example Mining... |
import json
from stix_shifter_utils.modules.base.stix_transmission.base_results_connector import BaseResultsConnector
from stix_shifter_utils.utils.error_response import ErrorResponder
from stix_shifter_utils.utils import logger
class ResultsConnector(BaseResultsConnector):
def __init__(self, api_client):
... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// 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... |
#!/usr/bin/env python
import boto3
import json
import ConfigParser
import os
def get_address(instance):
if "PublicIpAddress" in instance:
address = instance["PublicIpAddress"]
else:
address = instance["PrivateIpAddress"]
return address
if os.path.isfile('ec2.ini'):
config_path = 'ec2.ini'
elif os.path.isfile... |
// Copyright 2013 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_
#define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MODE_INDICATOR_CONTROLLER_H_
#incl... |
#
# Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved.
#
import pytest
from snowflake.connector.telemetry_oob import TelemetryService
@pytest.fixture(autouse=True, scope="session")
def disable_oob_telemetry():
oob_telemetry_service = TelemetryService.get_instance()
original_state = oob_tele... |
from flask import Flask, jsonify
from flask_restful import Api
from flask_jwt_extended import JWTManager
from src.settings import app_config
from src.db import db
from flask_cors import CORS
def create_app(config_name):
app = Flask(__name__)
api = Api(app)
cors = CORS(app)
app.config['SECRET_KEY'] = os.getenv('S... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICEN... |
#!/usr/bin/env python3
# Script Name: Ops Challenge 16 - Automated Brute Force Wordlist Attack Tool Part 1 of 3
# Author: Jin Kim
# Date of last revision: 10.26.2020
# Description of purpose: To see if the password is correctly protected and in a risk of vulnerability.
# This is the main file that will be executed whe... |
var VPAIDAdUnitWrapper = require('ads/vpaid/VPAIDAdUnitWrapper');
var VPAIDIntegrator = require('ads/vpaid/VPAIDIntegrator');
var VPAIDFlashTech = require('ads/vpaid/VPAIDFlashTech');
var VPAIDHTML5Tech = require('ads/vpaid/VPAIDHTML5Tech');
var MediaFile = require('ads/vast/MediaFile');
var VASTError = require('ads/v... |
from schematics import Model
from schematics.types import StringType, IntType, DateTimeType, BooleanType
from schematics.types.compound import ListType, ModelType
from server.models.dtos.stats_dto import Pagination
class MessageDTO(Model):
""" DTO used to define a message that will be sent to a user """
mess... |
export var ZIndexes;
(function (ZIndexes) {
ZIndexes.Nav = 1;
/**
* @deprecated Do not use
*/
ZIndexes.ScrollablePane = 1;
ZIndexes.FocusStyle = 1;
ZIndexes.Coachmark = 1000;
ZIndexes.Layer = 1000000;
ZIndexes.KeytipLayer = 1000001;
})(ZIndexes || (ZIndexes = {}));
//# sourceMappin... |
#######################################################
##
## IMPORTANT
## correct /boot/config.txt
## to include line below:
## dpi_timings= 240 0 00 00 00 360 0 00 00 00 0 0 0 60 0 32000000 3
##
## Reason: remove dead time for horizontal/vertical blank
##
#######################################################
... |
/* Unicode Line Break Properties */
/* generated from http://www.unicode.org/Public/6.2.0/ucd/LineBreak.txt */
/* DO NOT EDIT!! */
#include "wine/unicode.h"
const unsigned short wine_linebreak_table[7056] =
{
/* level 1 offsets */
0x0100, 0x0110, 0x0120, 0x0130, 0x0140, 0x0150, 0x0160, 0x0170,
0x0180, 0x0... |
# -*- coding:utf-8 -*-
from scheduleSynchronizer.web_scraper1111.scraper import *
import requests
import re
import string
import datetime
import time
import random
import os
import multiprocessing as mul
from time import sleep
from bs4 import BeautifulSoup
from dateutil.parser import parse
class Session:
def __init_... |
# Copyright (c) 2018 PaddlePaddle 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 app... |
import { expect } from 'chai';
import { createRequestMiddleware } from '../index';
describe('requests middleware', () => {
let middleware, fakeStore, dispatchWithStoreOf, dispatched;
before(() => {
middleware = createRequestMiddleware(state => state);
fakeStore = fakeData => ({
getState() {
... |
import { filter } from 'lodash';
import { useState, useEffect } from 'react';
import moment from 'moment';
// material
import {
Card,
Table,
Stack,
TableRow,
TableBody,
TableCell,
Container,
Typography,
TableContainer,
TablePagination,
Grid,
TextField,
MenuItem,
Box,
Button
} from '@materi... |
import cocotb
from cocotb.clock import Clock
from cocotb.triggers import RisingEdge, ClockCycles
async def gen_reset(dut, cycles=1):
"""Generate reset."""
await RisingEdge(dut.clk_i)
dut.rst_i.value = 1
await ClockCycles(dut.clk_i, cycles)
dut.rst_i.value = 0
@cocotb.test()
async def test_reset... |
'use strict';
angular.module('streama').controller('modalOpensubtitleCtrl', [
'$scope', '$uibModalInstance', 'apiService', 'video', 'localStorageService', 'languageData', '$rootScope',
function ($scope, $uibModalInstance, apiService, video, localStorageService, languageData, $rootScope) {
$scope.videoName = ... |
// Copyright (c) YugaByte, Inc.
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import { FlexContainer, FlexShrink, FlexGrow } from '../../../common/flexbox/YBFlexBox';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-t... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
var group___r_t_c___exported___constants =
[
[ "RTC Hour Formats", "group___r_t_c___hour___formats.html", null ],
[ "RTC Output Selection Definitions", "group___r_t_c___output__selection___definitions.html", null ],
[ "RTC Output Polarity Definitions", "group___r_t_c___output___polarity___definitions.html",... |
#!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2018-2020 CNRS
# 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 limita... |
$(document).ready(function(){
create_dropdown();
});
function myfunction(dropdown_id) {
console.log(dropdown_id)
create_dropdown();
document.getElementById(dropdown_id).classList.toggle('show');
}
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = ... |
"""
Notice : 神兽保佑 ,测试一次通过
//
// ┏┛ ┻━━━━━┛ ┻┓
// ┃ ┃
// ┃ ━ ┃
// ┃ ┳┛ ┗┳ ┃
// ┃ ┃
// ┃ ┻ ┃
// ┃ ┃
// ┗━┓ ┏━━━┛
// ┃ ┃ Author: somewheve
// ┃ ┃ Datetime: 2019/6/13 下午7:54 ---> 无知即是罪恶
// ┃ ┗━━━━━━━━━┓
// ┃ ... |
import shutil
import os, errno
import hashlib
import tempfile
import math
import urllib
import urllib2
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest, QueryDict
from django.shortcuts import render_to_response, get_object_or_404, redirect, render
from django.template import Context, ... |
import copy
import torch
from torch import nn
import torch.nn.functional as F
import torch.nn.intrinsic as nni
import torch.nn.intrinsic.quantized as nniq
import torch.nn.intrinsic.quantized.dynamic as nniqd
import torch.nn.intrinsic.qat as nniqat
import torch.nn.quantized as nnq
import torch.nn.quantized._reference ... |
#!/usr/bin/python
# Copyright: (c) 2018, Sebastian Schenzel <sebastian.schenzel@mailbox.org>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata_version':... |
# -*- coding: utf-8 -*-
# pandas(Python用データ分析モジュール)でCSVファイルの読み込みと書き込み
#
# read_csv()メソッド:csvファイルをロードする関数
# with構文(with ファイル読み込み as 変数):close文がいらない
#
# Create 2017/06/12
# update 2017/06/12
# Auther Katsumi.Oshiro
import pandas as pd # pandasモジュールの読み込み
# pandasのread_csvでファイルを読み込む
# そのまま read_c... |
from datetime import datetime
import time
import os
import sys
import random
import tensorflow as tf
import numpy as np
import pickle
import data_utils
import utils
import scorer
import logging
import copy
from scheduler import ReduceLROnPlateau
import sprnn_model as model
tf.app.flags.DEFINE_string('data_dir', '../d... |
"use strict";function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}var precacheConfig=[["./index.html","42488311fa05f95cfcd6dd5f13fd3f7d"],["./static/css/main.ef87d0d4.css","cef6a4670ec86f9bfeb7cc07a596b4a2"],["./static/js/main.8e861a... |
module.exports = {
platforms: {
"*": {
"source": "base",
"libs": {
// please disable libraries you don't need
"jquery": true,
"bootstrap_3": true,
"angular": false,
"angular_2": false,
"un... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:53:29 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elia... |
# Copyright (c) 2014-2020, Dr Alex Meakins, Raysect Project
# 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,
# ... |
import React from "react";
const CoolInfo = () => (
<div className="app-info">
<p>
{
"You wanna know why HiGlass is such a cool tool and handles those monstrous Hi-C matrices with a breeze? HiGlass wouldn't be able to do it without Nezar's outrageously awesome "
}
<a
href="https... |
import { createStore, applyMiddleware, compose } from "redux";
import thunk from "redux-thunk";
import logger from "redux-logger";
import rootReducer from "./reducer";
const store = createStore(
rootReducer,
compose(
applyMiddleware(thunk, logger),
compose(
applyMiddleware(thunk, logger),
windo... |
# Author - Shivam Kapoor (ConanKapoor).
# Importing Essentials
from multiprocessing import Pool
from pyfiglet import Figlet
import os
# Opening onions directory. To scrape links add the same in onions.txt
with open("onions.txt", "r") as onion:
content = onion.read().splitlines()
# Terminal Process to ... |
import React from 'react';
import Story from './Story';
import './Stories.css';
const Stories = (props) => {
return (
<div className='Stories'>
<div className=' stories-header'>
<h3>{props.storiesTitle}</h3>
<a href='#'>See more</a>
</div>
<div className='stories-grid'>
... |
#coding:utf-8
'''
服务进程(taskManager.py)(linux版)
import random,time,Queue
from multiprocessing.managers import BaseManager
#实现第一步:建立task_queue和result_queue,用来存放任务和结果
task_queue=Queue.Queue()
result_queue=Queue.Queue()
class Queuemanager(BaseManager):
pass
#实现第二步:把创建的两个队列注册在网络上,利用register方法,callable参数关联了Queue对象,
# 将... |
# 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 not u... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-23 13:37
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0004_remove_promocode_fixed_price'),
]
opera... |
exports.createPages = require('./gatsby/createPages.js');
exports.onCreateNode = require('./gatsby/onCreateNode.js');
|
const execute = require('../../lib/executeCommand');
module.exports = (vm) => {
return new Promise((resolve, reject) => {
execute(['setproperty', 'vrdeauthlibrary', 'VBoxAuthSimple'])
.then(resolve)
.catch(reject);
});
}; |
import 'aframe';
import 'aframe-layout-component';
import './aframe_components/Collider';
import './aframe_components/RayCaster';
import './aframe_components/entity-generator';
import {Animation, Entity, Scene} from 'aframe-react';
import React from 'react';
import ReactDOM from 'react-dom';
import Perf from 'react-add... |
function a(...[]) {}
|
var searchData=
[
['defaultpath_163',['defaultPath',['../structae_1_1_file_dialog_params.html#a1f32f4ef5c917faccb2b0f1b8c232f84',1,'ae::FileDialogParams']]]
];
|
from django.apps import AppConfig
class TroubleshootingConfig(AppConfig):
name = 'troubleshooting'
|
"""
The module's functions operate on message bodies trying to extract original
messages (without quoted messages) from html
"""
from __future__ import absolute_import
import regex as re
from talon.utils import cssselect
CHECKPOINT_PREFIX = '#!%!'
CHECKPOINT_SUFFIX = '!%!#'
CHECKPOINT_PATTERN = re.compile(CHECKPOIN... |
#ifndef LWIP_HDR_TEST_SOCKETS_H
#define LWIP_HDR_TEST_SOCKETS_H
#include "../lwip_check.h"
Suite *sockets_suite(void);
#endif
|
/*************************************************************************/
/* library_godot_display.js */
/*************************************************************************/
/* This file is part of: */
/* ... |
#!/usr/bin/env python
"""Tests for grr.lib.signing."""
import tempfile
import mock
import pexpect
from grr.lib import flags
from grr.lib import test_lib
from grr.lib.builders import signing
class WindowsCodeSignerTest(test_lib.GRRBaseTest):
def setUp(self):
super(WindowsCodeSignerTest, self).setUp()
se... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* script to build (transpile) files.
* By default it transpiles js files for all packages and writes th... |
var xml = require('libxmljs'),
request = require('request')
var Client = exports.Client = function Client(appKey) {
this.appKey = appKey
}
Client.prototype.query = function(input, cb) {
if(!this.appKey) {
return cb("Application key not set", null)
}
var uri = 'http://api.wolframalpha.com/v2/query?inp... |
# doc:slow-example
"""
===================================================
Demonstrate impact of whitening on source estimates
===================================================
This example demonstrates the relationship between the noise covariance
estimate and the MNE / dSPM source amplitudes. It computes source es... |
#!/usr/bin/env python
import sys
sys.path.append('..')
from libs.helpers import get_input
def parse_input(lines):
return (lines[0], lines[2:])
def add_border(pict, border_size, border_char):
new_pict = []
def add_full_lines():
for _ in range(border_size):
line = [border_char for _ ... |
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process('HGCAL',eras.Phase2)
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuratio... |
#!/usr/bin/env python3
import networkx
import psycopg2
import sys
import json
import random
import itertools
# TODO: cardinal-position map drawing works very well. Figure out how to split
# into subgraphs that don't need explicit positioning, OR, draw as completely
# separate graphs (losing connecting edges maybe, bu... |
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# shmsnoop Trace shm*() syscalls.
# For Linux, uses BCC, eBPF. Embedded C.
#
# USAGE: shmsnoop [-h] [-T] [-x] [-p PID] [-d DURATION] [-t TID] [-n NAME]
#
# Copyright (c) 2018 Jiri Olsa.
# Licensed under the Apache License, Version 2.0 (the "Lice... |
# -*- coding: utf-8 -*-
import os
import config as conf
def iterate_data_files(from_dtm, to_dtm):
from_dtm, to_dtm = map(str, [from_dtm, to_dtm])
read_root = os.path.join(conf.data_root, 'read')
for fname in os.listdir(read_root):
if len(fname) != len('2018100100_2018100103'):
continue... |
/* flatpickr v4.5.2, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.km = {})));
}(this, (function (exports) { 'use strict';
var f... |
# -*- coding: utf-8 -*-
__all__ = ["__version__", "terms", "GaussianProcess"]
import celerite2.terms as terms
from celerite2.celerite2_version import __version__
from celerite2.numpy import GaussianProcess
__uri__ = "https://celerite2.readthedocs.io"
__author__ = "Daniel Foreman-Mackey"
__email__ = "foreman.mackey@g... |
// review.js
//
// data object representing an review
//
// Copyright 2011,2013, E14N https://e14n.com/
//
// 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/lic... |
////////////////////////////////////////////////////////////////////////////////
//
// MIT License
//
// Copyright (c) 2018-2019 Nuraga Wiswakarma
//
// 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 t... |
import { filter } from 'fuzzaldrin'
import { patch, h } from '../../parser/render/snabbdom'
import { deepCopy } from '../../utils'
import BaseScrollFloat from '../baseScrollFloat'
import { quickInsertObj } from './config'
import './index.css'
class QuickInsert extends BaseScrollFloat {
static pluginName = 'quickInse... |
from railrl.envs.multitask.point2d import MultitaskImagePoint2DEnv
from railrl.envs.multitask.pusher2d import FullPusher2DEnv
from railrl.launchers.arglauncher import run_variants
import railrl.misc.hyperparameter as hyp
from railrl.torch.vae.vae_experiment import experiment
if __name__ == "__main__":
# noinspect... |
import time
from django.db import connections
from django.db.utils import OperationalError
from django.core.management import BaseCommand
class Command(BaseCommand):
"""Django command to pause execution until database is available"""
def handle(self, *args, **options):
self.stdout.write('Waiting for... |
import json
from django import forms
from django.template.loader import render_to_string
from django.utils.safestring import mark_safe
from wagtail.admin.edit_handlers import (MultiFieldPanel, FieldPanel,
widget_with_script)
from wagtail.images.edit_handlers import ImageChooser... |
# Copyright 1999-2021 Alibaba Group Holding 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 or a... |