text stringlengths 3 1.05M |
|---|
import dataclasses
from typing import TYPE_CHECKING
import pytest
from app import crud
if TYPE_CHECKING:
from app.models.user import User
from fastapi.testclient import TestClient
from ..conftest import TestDatabase
from app.api.deps import get_db
from app.main import app
from .utils import BearerAuth,... |
var searchData=
[
['handstart',['handStart',['../class_mouse.html#a91adaf5402708bc55a9aa0989c1dc8ce',1,'Mouse']]],
['heading',['heading',['../class_mouse.html#a4163df77f3c8e2399abeb1f424da7d6d',1,'Mouse']]],
['hour',['hour',['../struct___t_i_m_e.html#a7f52e31c2ee006f9dc13fed0b2baecd3',1,'_TIME']]]
];
|
/*++
Copyright (c) 2016 Microsoft Corporation
Module Name:
solver2tactic.h
Abstract:
Convert solver to a tactic.
Author:
Nikolaj Bjorner (nbjorner) 2016-10-17
Notes:
--*/
#ifndef SOLVER2TACTIC_H_
#define SOLVER2TACTIC_H_
#include "tactic.h"
#include "filter_model_converter.h"
class solver;
tact... |
import csv
from scripts.base import QcatApiMixin
class QcatDataCsv(QcatApiMixin):
"""
Store QCAT API data as CSV.
"""
def check_local_questionnaires(self, local_questionnaires):
if local_questionnaires:
# Sanity check
self._check_attribute_length(local_questionnaires[... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... |
import React from "react";
const CreateMeetup = () => {
return (
<div>
<p>This is the CreateMeetup Page</p>
</div>
)
}
export default CreateMeetup; |
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.urlresolvers import reverse
from socialregistration.clients.oauth import OAuth, OAuthError
from socialregistration.settings import SESSION_KEY
import urlparse
import json
class Twitter(OAuth):
api_key = getattr(settings,... |
# Copyright (c) Microsoft Corporation.
#
# 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 writ... |
from django.contrib import admin
from Floo.models import *
admin.site.site_header = "Floo Administration"
# Register your models here.
admin.site.register(User)
admin.site.register(Meeting)
admin.site.register(Team)
admin.site.register(Topic)
|
class Block {
constructor(x, z, parent) {
this.pos = { x: x, z: z };
//console.log(this.pos)
this.dimensions = { x: 10, y: 10, x: 10 };
var i = x;
var j = z;
this.h = Math.round(
simplex.noise2D(i / 20, j / 20) * 1 +
simplex.noise2D(i / 350, j / 350) * 2 +
simplex.n... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
function toggleDivWithclass(e,t){if($(window).width()<768){$("#"+e).slideToggle("slow",function(){});var n=$("#"+t);n&&n.find("i").toggleClass("rotateBack rotate")}}function activateDate(){"date"!=$('[type="date"]').prop("type")&&$('[type="date"]').datepicker()}function toggleDivWithFilter(e,t){$(window).width()<992&&$... |
#ifndef __c21_Demo_EP_IdleRandMerg_h__
#define __c21_Demo_EP_IdleRandMerg_h__
/* Include files */
#include "sf_runtime/sfc_sf.h"
#include "sf_runtime/sfc_mex.h"
#include "rtwtypes.h"
#include "multiword_types.h"
/* Type Definitions */
#ifndef typedef_SFc21_Demo_EP_IdleRandMergInstanceStruct
#define typedef... |
import * as firebase from "firebase/app";
import "firebase/auth";
const app = firebase.initializeApp({
apiKey: "AIzaSyBLMSlM0gcFg3sO2cgRGZYFoPK00DvWSNY",
authDomain: process.env.REACT_APP_FIREBASE_DOMAIN,
databaseURL: process.env.REACT_APP_FIREBASE_DATABASE,
projectId: process.env.REACT_APP_FIREBASE_PR... |
from flask import Flask, request
import os
import json
import socket
app = Flask(__name__)
@app.route('/dostep/<time>&<inputnames>&<inputvalues>&<outputnames>')
def step(time, inputnames, inputvalues, outputnames):
data = _parse_url(time, inputnames, inputvalues, outputnames)
outputs = [data['input1'] * data[... |
'''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on Apr 22, 2011
@author: shreyas
@contact: dbratcher@gatech.edu
@summary: This is intended to be a collection ... |
/*
* 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... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-12-08 15:29
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('botmanager', '0002_auto_20161208_1406'),
]
operations = [
mi... |
# Delta Recurrent Neural Network (Delta-RNN) Framework
#
# This gives an implementation of the Delta-RNN framework given in Ororbia et al. 2017, arXiv:1703.08864 [cs.CL],
# https://arxiv.org/abs/1703.08864 using Python and Tensorflow.
#
# This code implements a variety of RNN models using the Delta-RNN Framework
#
# S... |
"""Collect daisy tools into docs
================================
To use, type:
python collect.py
"""
import sys
import glob
import os
import re
import daisy.Experiment as E
import daisy.IOTools as IOTools
TEMPLATE_TOOL = """
========================================================
{tool_name}
=================... |
"""Transformer to parse and augment US zipcodes with info from zipcode database."""
from h2oaicore.transformer_utils import CustomTransformer
from h2oaicore.systemutils import make_experiment_logger, loggerinfo, loggerwarning
import datatable as dt
import numpy as np
_global_modules_needed_by_name = ['pycodestyle==2.6... |
import pandas as pd
from bokeh.io import output_file, show
from bokeh.models import BasicTicker, ColorBar, ColumnDataSource, LinearColorMapper, PrintfTickFormatter
from bokeh.plotting import figure
from bokeh.sampledata.unemployment1948 import data
from bokeh.transform import transform
output_file("unemploymemt.html"... |
import React from 'react';
import { mount } from 'enzyme';
import { appealData } from '../../../data/appeals';
import { queueWrapper } from '../../../data/stores/queueStore';
import HearingTypeConversionModal from '../../../../app/hearings/components/HearingTypeConversionModal';
import Modal from '../../../../app/com... |
/**
* @param {number[]} nums
* @return {number}
*/
var singleNumber = function(nums) {
nums.sort();
var ret = null;
var curNum = null, first = true;
for (var i = 0; i < nums.length; ++i) {
// console.log(nums, i, nums[i]);
if (first) {
curNum = nums[i];
first =... |
# -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from __future__ import print_function as _
from __future__ import division as _
from... |
const Path = {
ADD_ARTICLE_PAGE: '/article-add-page',
LIST_ARTICLE_PAGE: '/article-list-page',
};
export default Path;
|
// Copyright 2008 The Closure Library 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 requ... |
import { all, fork } from "redux-saga/effects";
import postSaga from "./post";
import userSaga from "./user";
import scoreSaga from "./score";
import actionSaga from "./action";
export default function* rootSaga() {
yield all([
fork(postSaga),
fork(userSaga),
fork(scoreSaga),
fork(actionSaga),
]);... |
export default () => {
$('#blogTitle').after('<div class="nav-open"></div>')
$('#blogTitle').after('<div class="theme"></div>')
}
|
from brownie import OurToken, config, network
from scripts.helpful_scripts import get_account
from web3 import Web3
initial_supply = Web3.toWei(1000, "ether")
def main():
account = get_account()
our_token = OurToken.deploy(
initial_supply,
{"from": account},
publish_source=config["net... |
from libs import reaction
class Reaction(reaction.AdminReactionAddCommand):
'''Sets emojis to commands in servers
This works alongside `set_emoji`
**Usage**
React with an emoji to the message sent in response to `emoji_starter` to use that emoji
To learn how to use `emoji_starter`
```@Idea help emoji_starter ```... |
"use strict";
/*-----------------------------------------
NoUiSlider - Property Fields
1. Price Range
2. Area Size
3. Lot Size
4. Year Built
------------------------------------------*/
// 1. Price Range
if ($('#property-price-range')[0]) {
var propertyPriceRange = document.getElementById('p... |
from trezor import wire
from trezor.crypto import bip32
from apps.cardano import CURVE, SEED_NAMESPACE
from apps.common import cache, mnemonic, storage
from apps.common.request_passphrase import protect_by_passphrase
class Keychain:
def __init__(self, path: list, root: bip32.HDNode):
self.path = path
... |
/*
* Kendo UI v2014.2.716 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
/* eslint-disable react/button-has-type */
/**
*
* ListBook
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
// import { FormattedMessage } from 'react-intl';
import { createStructuredSelector } from 'reselect';
import... |
'use strict';
exports.__esModule = true;
exports.default = {
el: {
colorpicker: {
confirm: 'جەزملەش',
clear: 'قۇرۇقداش'
},
datepicker: {
now: 'ھازىرقى ۋاقىت',
today: 'بۈگۈن',
cancel: 'بىكار قىلىش',
clear: 'قۇرۇقداش',
confirm: 'جەزملەش',
selectDate: 'چىسلا ت... |
/**
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "ABI36_0_0RNSVGRenderableManager.h"
@interface ABI36_0_0RNSVGRectManager : ABI36_0_0RNSVGRenderableMana... |
const ciqlJson = require(".")
describe('Tester toute les fonctions du module ciql-json', () => {
test('La fonction Open', () => {
expect(ciqlJson.open("yarn.lock"))
expect(ciqlJson.open("packagef.jsn"))
expect(ciqlJson
.open("package.json")
.set('location', 'abidjan... |
def load(info):
import plugin_module
plugin_module.test()
|
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
#
# 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, mo... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
# -*- coding: utf-8 -*-
'''
Support for hadoop
:maintainer: Yann Jouanin <yann.jouanin@intelunix.fr>
:maturity: new
:depends:
:platform: linux
'''
from __future__ import absolute_import
# Import salt libs
import salt.utils
__authorized_modules__ = ['namenode', 'dfsadmin', 'dfs', 'fs']
def __virtual__():
'''
... |
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* monaco-languages version: 1.7.0(987f04155a65e564c5b8cc137f18c76785a3d814)
* Released under the MIT license
* https://github.com/Microsoft/monaco-languages/blob/master/LICENS... |
import { deprecate } from '../utils/deprecate';
import isArray from '../utils/is-array';
import { createLocal } from '../create/constructors';
import { createInvalid } from '../create/from-anything';
export var prototypeMin = deprecate(
'moment().min is deprecated, use moment.max instead. http://momentjs.com/guide... |
/*
Copyright <SWGEmu>
See file COPYING for copying conditions.*/
#ifndef CREDITSCOMMAND_H_
#define CREDITSCOMMAND_H_
#include "server/zone/objects/scene/SceneObject.h"
class CreditsCommand : public QueueCommand {
public:
CreditsCommand(const String& name, ZoneProcessServer* server)
: QueueCommand(name, ser... |
"""
Django settings for docter_28901 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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 ... |
#!/usr/bin/env python
from .common import *
from .version import *
from .cli_wrapper import *
from .extractor import *
|
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
var _20 = {
"elem": "svg",
"attrs": {
"xmlns": "http://www.w3.org/200... |
/**
* @module octokit
*/
const {request} = require("@octokit/request");
const log = require("../../util/log");
const digest = require("../digest");
/**
* Cryptographically anonymise the data of an issue body
* to ensure privacy of users.
* Anonymise the following parameters (if present):
* email, ip, name, reCAP... |
from enum import Enum, unique
from typing import Dict, List, Optional
from pydantic import BaseModel, Field, validator
from astrobase.helpers.name import random_name
class EKSNodegroupScalingConfig(BaseModel):
minSize: int = 1
maxSize: int = 3
desiredSize: int = 1
@unique
class EKSNodegroupAmiType(str... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _GADShape = _interopRequireDefault(require("./GADShape"));
var _GeographicalCoordinates = _interopRequireDefault(require("./GeographicalCo... |
#! ../env/bin/python
# -*- coding: utf-8 -*-
from appname import create_app
from appname.models import db, User
class TestForm:
def setup(self):
app = create_app('appname.settings.DevConfig', env='dev')
self.app = app.test_client()
db.app = app
db.create_all()
admin = User(... |
nome = str (input ('DIGITE O NOME DO ALUNO: '))
nota1 = float (input ('DIGITE A PRIMEIRA NOTA: '))
nota2 = float (input ('DIGITE A SEGUNDA NOTA: '))
media =(( nota1 + nota2 ) / 2)
if media < 5.0:
print ('O ALUNO {} FOI REPROVADO COM A MÉDIA {:.2F}.'.format (nome , media))
elif media == 5.0 or media <= 6.9:
prin... |
#include <kernel.h>
#include <stdint.h>
#include <cio.h>
void map_PIC(uint8_t PIC0Offset, uint8_t PIC1Offset) {
uint8_t mask0;
uint8_t mask1;
mask0 = get_PIC0_mask(); // save PIC 0 and 1's masks
mask1 = get_PIC1_mask();
port_out_b(0x20, 0x11); // initialise
port_out_b(0xA0, 0x11);
port_out_b(0x21, PIC0Off... |
import pymongo
from app.daos.dao import Dao
from app.daos.mongo import MongoDatabase
from app.models.github_repository import GithubRepository
class GithubRepositoryDao(Dao):
def __init__(self, mongo_database: MongoDatabase):
super().__init__(mongo_database, 'github_repositories')
def find_all(self,... |
def add(a, b):
return a + b
def sub(a, b):
return a - b
def mul(a, b):
return a * b
def div(a, b):
return a / b
def sqrt(a):
return a ** 0.5
def pow(a, b):
return a**b
|
var data = {
"body": "<g fill-rule=\"nonzero\" fill=\"none\"><path fill=\"#F7DF1E\" d=\"M1.853 1.833h201.094v199H1.853z\"/><path d=\"M204.8 202.667H0V0h204.8v202.667zm-200.954-3.83h197.105V3.83H3.846v195.008z\" fill=\"#EEE\"/><path d=\"M137.16 158.025c4.06 6.63 9.342 11.502 18.686 11.502c7.849 0 12.862-3.923 12.862-9.... |
export const SET_LOADING = 'SET_LOADING';
export const SET_BOOK_DETAILS = 'SET_BOOK_DETAILS';
|
"""
Created on May 4, 2018
@author: Alejandro Molina
@author: Antonio Vergari
"""
import numpy as np
from spn.algorithms.Inference import EPSILON, add_node_likelihood, add_node_mpe_likelihood, leaf_marginalized_likelihood
from spn.structure.leaves.piecewise.PiecewiseLinear import PiecewiseLinear
import logging
logg... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:46:40 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/Frameworks/SceneKit.framework/SceneKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.... |
class Solution:
def hammingDistance(self, x: int, y: int) -> int:
return bin(x^y).count('1')
|
DesktopResponsive={"1009":{
"pageLayer":{"w":785,"h":450,"bgColor":"#ffffff"}
,
"button24890":{"x":17,"y":14,"w":53.000000,"h":50.000000,"stylemods":[{"sel":"div.button24890Text","decl":" { position:fixed; left:11px; top:4px; width:30px; height:41px;}"},{"sel":"span.button24890Text","decl":" { display:table-cell; po... |
import os
from datetime import datetime
import sys
try:
from hashlib import sha1
except ImportError:
sys.exit('ImportError: No module named hashlib\n'
'If you are on python2.4 this library is not part of python. '
'Please install it. Example: easy_install hashlib')
from sqlalchemy imp... |
#!/usr/bin/env python3
# Authors:
# Patrick Lehmann
# Unai Martinez-Corral
#
# Copyright 2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus>
#
# 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 Lice... |
import { getSheetIndex } from '../methods/get';
import editor from '../global/editor';
import { isRealNull, isEditMode } from '../global/validate';
import tooltip from '../global/tooltip';
import { rowlenByRange } from '../global/getRowlen';
import { selectHightlightShow } from './select';
import { luckysheetMoveEndCel... |
from ipaddr import IPv4Network
from pyramid.view import view_config
from geoportailv3.models import LuxLayerInternalWMS, LuxPredefinedWms
from c2cgeoportal.models import DBSession, RestrictionArea, Role, Layer
from pyramid.response import Response
from pyramid.httpexceptions import HTTPBadGateway, HTTPBadRequest
from p... |
from __future__ import division, absolute_import, print_function
import sys
import warnings
import functools
import operator
import numpy as np
from numpy.core.multiarray_tests import array_indexing
from itertools import product
from numpy.testing import (
TestCase, run_module_suite, assert_, assert_equal, assert... |
import ui from '../util/ui';
import exportUtils from '../util/export';
import sketchUtils from '../util/sketch';
import exportComponents from './export-components';
export default function(context, opts, cb) {
ui.createSettingsDialog(context, opts, exportComponents, (data) => {
// Defaults
data.propertyNa... |
//
// VENPopupView.h
// TibetanAssistant
//
// Created by YVEN on 2018/11/30.
// Copyright © 2018年 Hefei Haiba Network Technology Co., Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface VENPopupView : UIView
@property (nonatomic, strong) UIView *view;
@property (nonatomic, st... |
/**
* 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 appli... |
from common.scripts.cleaning import clean_date
def test_clean_date():
# YYYY
raw_input_1 = "2015"
output_1 = clean_date(raw_input_1)
assert output_1 == "2015-01-01"
# YYYY-MM
raw_input_2 = "2015-02"
output_2 = clean_date(raw_input_2)
assert output_2 == "2015-02-01"
# YYYYMM
... |
# -*- coding: utf-8 -*-
'''
Manage information about regular files, directories,
and special files on the minion, set/read user,
group, mode, and data
'''
# TODO: We should add the capability to do u+r type operations here
# some time in the future
from __future__ import absolute_import, print_function, unicode_liter... |
/* Copyright 2003-2018, University Corporation for Atmospheric
* Research. See COPYRIGHT file for copying and redistribution
* conditions. */
/**
* @file
* @internal The netCDF-4 file functions.
*
* This file is part of netcdf-4, a netCDF-like interface for HDF5, or
* a HDF5 backend for netCDF, depending on your... |
'use strict';
const XError = require('./XError');
class XErrorNotFound extends XError {
constructor(message) {
super();
this.status = 404;
this.type = 'NOT_FOUND';
this.message = message || 'Not found';
}
}
module.exports = XErrorNotFound;
|
const path = require('path');
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
loaders: ['style-loader', 'css-loader', 'sass-loader'],
include: path.resolve(__dirname, '../'),
},
],
},
}; |
/**
* Auto-generated action file for "AWS Support" API.
*
* Generated at: 2019-07-08T11:13:29.241Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / amazonaws-com-support-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are lice... |
/* $Id: gvmm.h $ */
/** @file
* GVMM - The Global VM Manager.
*/
/*
* Copyright (C) 2007-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of... |
/** @file
PostCode status code implementation.
Copyright (c) 2010 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Guid/EventGroup.h>
#include <Librar... |
# Copyright 2017 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... |
import Vue from 'vue'
import App from './App.vue'
Vue.config.productionTip = false
var hxPreset = {
"version" : 6,
"data" : {
"meta" : {
"name" : "Ashwagandha",
"application" : "Helix",
"build_sha" : "61d1df5",
"modifieddate" : 1496188265,
"appversion" : 35651584
},
"devi... |
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
import React from 'react';
import styled from 'styled-components';
export var RemoveCircle ... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample demonstrates how to get started by creating a data feed, checking ingestion status,
* creating detection and alerting configurations, and querying for alerts and anomalies.
*/
// Load the .env file if it exists
require("dot... |
""" 程序主入口 """
from ui import ui_fun
from PyQt5.QtGui import QMovie
from face_detection.test import face
import sys
import pyttsx3
import time
app = ui_fun.QtWidgets.QApplication(sys.argv)
window = ui_fun.mywindow()
window.show()
engine = pyttsx3.init()
while True:
if face():
engine.say('你好 点击... |
import styled from "styled-components";
import { prop } from "styled-tools";
import as from "../../enhancers/as";
import Base from "../Base";
const TableCaption = styled(Base)`
display: table-caption;
text-transform: uppercase;
font-size: 0.9em;
color: #999;
${prop("theme.TableCaption")};
`;
export default ... |
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source Code License as
// publi... |
import csv
import json
from pathlib import Path
from urllib.request import urlopen
import yaml
from bs4 import BeautifulSoup
from django.core.management.base import BaseCommand
from indiaelections.settings import PROJECT_ROOT
WIKIPEDIA_LOKSABHA_CONSTITUENCIES_LIST_URL = "https://en.wikipedia.org/wiki/List_of_constit... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: IM.Buddy.proto
#ifndef PROTOBUF_IM_2eBuddy_2eproto__INCLUDED
#define PROTOBUF_IM_2eBuddy_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newe... |
import clone from 'lodash/clone';
import map from 'lodash/map';
angular.module('controllers').controller(
'controllers.Domain.Tasks',
class DomainTasksCtrl {
constructor($scope, $q, $state, $stateParams, Domain) {
this.$scope = $scope;
this.$q = $q;
this.$state = $state;
this.$statePara... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-29 04:27
from __future__ import unicode_literals
from django.db import migrations
def update_forum_last_topic_and_last_post(apps, schema_editor):
Forum = apps.get_model("forum", "Forum")
Topic = apps.get_model("forum_conversation", "Topic")
... |
'use strict';
/*********************************************************************************************
* *
* Plese read the following tutorial before implementing tasks: *
* https://developer... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("rxjs-compat/add/operator/timeoutWith");
|
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#include "traps.h"
#include "spinlock.h"
// Interrupt descriptor table (shared by all CPUs).
struct gatedesc idt[256];
extern uint vectors[]; // in vectors.S: array of 256 entry pointers
... |
function emitWarning() {
if (!emitWarning.warned) {
emitWarning.warned = true;
console.log(
'Deprecation (warning): Using file extension in specifier is deprecated, use "highlight.js/lib/languages/haml" instead of "highlight.js/lib/languages/haml.js"'
);
}
}
emitWarning();
impo... |
# coding: utf-8
"""
Paragon Insights APIs
API interface for PI application # noqa: E501
OpenAPI spec version: 4.0.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RuleSchemaW... |
#!/usr/bin/env python3
import numpy as np
from scipy.spatial.distance import pdist
from sympy.utilities.iterables import multiset_permutations
def distance(x1, y1, x2, y2):
"""
The Squared Euclidean Distance is given by the following formula:
round(math.pow((x1-x2), 2) + math.pow((y1-y2), 2))
"""
retur... |
# coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... |
#!/usr/bin/env python
import dataproc
import itertools
import numpy as np
import random
import time
import sys
import tensorflow as tf
from collections import defaultdict
from ltrdnn import LTRDNN
flags = tf.flags
FLAGS = flags.FLAGS
# model related:
flags.DEFINE_integer('vocab_size', 1532783, 'vocabulary size')
fla... |
############ Valores Booleanos #########
#Você pode avaliar qualquer expressão em python e obter uma de duas respostas, 'True' ou 'False'.
# Exemplo:
"""
print (10 > 9)
print (10 == 9)
print (10 < 9)
"""
# Quando voce executa uma condição em uma instrução 'if', o python retorna True ou Falso:
#Exemplo:
# Imprima... |
import React from "react"
import cx from "classname"
export default function TextInput({
name,
label,
isRequired,
containerClassName,
inputClassName,
type,
onChange,
value,
options,
}) {
return (
<div className={cx("measure", containerClassName)}>
<label htmlFor={name} className="f6 b db ... |
// Copyright 2020 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "IDetailCustomization.h"
class AVoxelMeshImporter;
// See sky light details in the engine code
class FVoxelMeshImporterDetails : public IDetailCustomization
{
public:
/** Makes a new instance of this... |