text
stringlengths
3
1.05M
# # Copyright 2019 The FATE 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 appli...
import decimal import json import pandas as pd from sqlalchemy import create_engine from sqlalchemy.sql import text from shapely.geometry import Polygon, Point from config import DATABASES __all__ = ( 'construct_engine_string', 'create_historical_points', 'filter_json_raw_data', 'get_engine', ) def...
import pandas as pd import numpy as np import seaborn as sns import pickle as pkl import json import dill as pkl import itertools import os from functools import wraps from sklearn.pipeline import Pipeline from sklearn.metrics import confusion_matrix from sklearn.ensemble import GradientBoostingRegressor import matpl...
/** * mui back 5+ * @param {type} $ * @param {type} window * @returns {undefined} */ (function($, window) { if ($.os.plus && $.os.android) { $.addBack({ name: 'mui', index: 5, handle: function() { //后续重新设计此处,将back放到各个空间内部实现 //popover if ($.targets._popover && $.targets._popover.classList.co...
export default class LoadingScreen { constructor(container) { this.container = document.querySelector(container); } transition() { this.container.style.display = 'none' } init() { setInterval( () => { this.transition(); }, 2000); } }
import compression from 'compression'; import MongoStore from 'connect-mongo'; import cookieParser from 'cookie-parser'; import cors from 'cors'; import dotenv from 'dotenv'; import express from 'express'; import mongoSanitize from 'express-mongo-sanitize'; import session from 'express-session'; import helmet from 'hel...
# (C) Copyright 2017 Hewlett Packard Enterprise Development LP. # # 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 applic...
from celery import chain import lib.db import lib.utils import tasks from celery.utils import uuid import os from lib import config_parser, utils from subprocess import Popen def does_aquatone_folder_exixst(): workspace = lib.db.get_current_workspace()[0][0] outdir = lib.db.get_output_dir_for_workspace(workspa...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # hourly revenue and profit.py # @author: jinxi def fun_pp_utilization(marginal_cost,last_supply_percent,eq_price): pp_utilization = 1 if marginal_cost == eq_price: ##last supply type. pp_utilization = last_supply_percent if marginal_cost < eq_pric...
/*! jQuery UI - v1.11.0 - 2014-06-26 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.j...
import asyncio import unittest.mock import uuid import aioredis import pytest from aioredlock import Aioredlock, LockError @pytest.fixture def redis_one_connection(): return [{'host': 'localhost', 'port': 6379}] @pytest.fixture def redis_two_connections(): return [ {'host': 'localhost', 'port': 63...
import selection from '../selection' import { getTextContent } from '../selection/dom' import { beginRules } from '../parser/rules' import { tokenizer } from '../parser/' import { CLASS_OR_ID } from '../config' const BRACKET_HASH = { '{': '}', '[': ']', '(': ')', '*': '*', _: '_', '"': '"', '\'': '\'', ...
# -*- coding: utf-8 -*- # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Fallback completion provider. Wraps FallbackActor to provide compatibility with SpyderCompletionProvider API. """ # Standard library imports import logging # Lo...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
# downscale the prepped cmip5 data # author: Michael Lindgren -- March 2018 if __name__ == '__main__': import glob, os, rasterio, itertools from functools import partial import downscale from downscale import preprocess, Mask, utils import numpy as np import argparse # # parse the commandline arguments parser...
import functools import logging import numbers import os import pathlib import pickle import random import shutil import tempfile from abc import abstractmethod from typing import Any, Callable, Dict, List, Optional, cast import numpy as np import tensorflow as tf from packaging import version from tensorflow.python.u...
class Solution(object): def XXX(self, strs): """ :type strs: List[str] :rtype: str """ if strs == [] : return "" min = len(strs[0]) for item in strs: if len(item) <= min: min = len(item) minStr = item ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.Vip = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor"...
/** * @license Licensed under the Apache License, Version 2.0 (the "License"): * http://www.apache.org/licenses/LICENSE-2.0 * * @fileoverview Ardublockly specific English strings. * * After modifying this file, either run "build.py" from the blockly directory, * or run (from this directory): * ../i18n...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
// Copyright (c) 2020 Dropbox, Inc. // // 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 ...
'''This script demonstrates how to build a deep residual network using the Keras functional API. get_resnet50() returns the deep residual network model (50 layers) Please visit Kaiming He's GitHub homepage: https://github.com/KaimingHe for more information. The related paper is 'Deep Residual Learning for Image Reco...
# # PySNMP MIB module LJ5500-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LJ5500-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:57:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
import logging from django.contrib import auth, messages from django.contrib.auth.decorators import login_required from django.db import transaction from django.http import HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect from django.template.response import TemplateResponse from django.u...
/* istanbul instrument in package npmdoc_electron_settings */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - pre-init (function () ...
/* * Copyright (c) 2016-2020, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You m...
/* * 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 program is distributed in the hope that it will be use...
/* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'pagebreak', 'hu', { alt: 'Oldaltörés', toolbar: 'Oldaltörés beillesztése' } );
# Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from functools import reduce from typing import List, Iterable class RangeSet: """Collection of discrete integer ranges. This implementation is ap...
/* @flow */ export const isDevelopment = process.env.NODE_ENV === 'development'; export const isProduction = process.env.NODE_ENV === 'production';
#!/usr/bin/env python import sys,os,time,re,datetime,smtplib #########user section######################### #user specific constants username = "smith" #your cluster login name (use what shows up in qstatall) useremail = "smith@biac.duke.edu" #email to send job notices to template_f = file("MVPA_ROI_...
from django.apps import AppConfig class ViewsConfig(AppConfig): name = 'v1.user_page_views'
# -*- coding: utf-8 -*- import numpy as np import scipy.linalg as sl from enterprise.signals import (gp_signals, parameter, signal_base, utils, white_signals) class FeStat(object): """ Class for the Fe-statistic. :param psrs: List of `enterprise` Pulsar instances. :pa...
from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode from armulator.armv6.shift import ror from bitstring import BitArray class Smlsd(AbstractOpcode): def __init__(self, m_swap, m, a, d, n): super(Smlsd, self).__init__() self.m_swap = m_swap self.m = m self.a = a ...
# -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. 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 # #...
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
#!/usr/bin/env python from graphserver.compiler.compile_graph import main main()
/** * @classification UNCLASSIFIED * * @module scripts.webpack-dev * * @copyright Copyright (C) 2020, Lockheed Martin Corporation * * @license Apache-2.0 * * @owner Donte McDaniel * * @author Donte McDaniel * * @description The webpack configuration for development automatic recompile. */ const webpack =...
import { graphql } from 'gatsby' export const query = graphql` fragment LinkFragment on ContentfulLink { image { ...ImageFragment } alternateText link linkText callToAction } `
var Helix_DB_Table = [ [ "$_cache", "Helix_DB_Table.html#13ea20d", null ], [ "$columns", "Helix_DB_Table.html#6617f30", null ], [ "$name", "Helix_DB_Table.html#6b1fac6", null ], [ "__construct", "Helix_DB_Table.html#bf4c572", null ], [ "__toString", "Helix_DB_Table.html#f5ddf7f", null ], [ "appl...
Ext.Loader.setConfig({enabled: true}); Ext.Loader.setPath('Ext.ux', '../ux/'); Ext.require([ 'Ext.tab.*', 'Ext.ux.TabCloseMenu' ]); Ext.onReady(function() { var currentItem; var tabs = Ext.widget('tabpanel', { renderTo: 'tabs', resizeTabs: true, enableTabScroll: true, ...
# -*- coding: utf-8 -*- """`Parser` implementation for the `PhCalculation` calculation job class.""" import os import re import traceback from aiida import orm from aiida_quantumespresso.calculations.ph import PhCalculation from aiida_quantumespresso.parsers.parse_raw.ph import parse_raw_ph_output as parse_stdout fro...
from __future__ import division import sys import time class ProgressHook(object): """A hook class reporting the progress of iteration. This is a hook class designed for :func:`~chainercv.utils.apply_prediction_to_iterator`. Args: n_total (int): The number of images. This argument is option...
from setuptools import find_packages, setup with open('README.md', 'r') as f: long_description = f.read() setup( name='imgpress', version='0.1.1', author='Pete Buffon', author_email='pabuffon@gmail.com', description='A utility for encoding and compressing images for optimal web use.', long...
/*global xit */ /*eslint-env jasmine */ /*global dx */ 'use strict'; describe('dx.core.ajax.', function() { beforeEach(function () { dx.core.ajax.resetAjaxHandlers(); }); afterEach(function () { dx.core.ajax.resetAjaxHandlers(); }); describe('ajaxCall()', function() { i...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = _interopDefault(require('react')); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (v...
#!/usr/bin/env python3 # Copyright (c) 2014-2019 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 importmulti RPC. Test importmulti by generating keys on node0, importing the scriptPubKeys an...
import module1 print('Running moudle2.py') import module1 def hello(): print('module2 says Hello!')
from abc import ABC from abc import abstractmethod from functools import wraps import inspect import re import types from typing import List, Tuple import syft from syft.generic.frameworks.hook import hook_args from syft.generic.pointers.object_pointer import ObjectPointer from syft.generic.pointers.pointer_tensor imp...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ This script demonstrates using pytx to query the ThreatExchange API. Key parameters: -o (--object) type of object to query; see main() -O (--output) output stream (default /dev/stdout) If no value is supplied for --obje...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
// // YWMessageChatViewController.h // YuWa // // Created by Tian Wei You on 16/9/28. // Copyright © 2016年 Shanghai DuRui Information Technology Company. All rights reserved. // #import "EaseMessageViewController.h" @interface YWMessageChatViewController : EaseMessageViewController @property (nonatomic,copy)NSSt...
EZBase64 = function () { }; EZBase64.Encode = function (input) { return new Base64().Encode(input); }; EZBase64.Decode = function (input) { return new Base64().Decode(input); }; function Base64() { // private property _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; // public ...
import itertools import copy import logging import datapackage from dataflows.helpers.resource_matcher import ResourceMatcher from datapackage_pipelines.wrapper import ingest, spew, get_dependency_datapackage_url from datapackage_pipelines.utilities.resources import tabular, PROP_STREAMING, \ PROP_STREAMED_FROM ...
import os, sys, time path = os.path.join(os.path.dirname(__file__), '../lib/') sys.path.insert(0, path) from thrift.transport import THttpClient from thrift.protocol import TCompactProtocol from curve import LineService from curve.ttypes import * class Poll: client = None auth_query_path = "/api/v4/TalkService...
# -*- coding: utf-8 -*- import numpy as np import pytest import pandas as pd import pandas.core.config as cf import pandas.util.testing as tm from pandas import Categorical, IntervalIndex, compat from pandas._libs import index as libindex from pandas.compat import PY3, range from pandas.core.dtypes.dtypes import Cate...
bool searchMatrix(int** matrix, int matrixRowSize, int matrixColSize, int target) { int row = matrixRowSize - 1, col = 0; while (row >= 0 && col < matrixColSize) { int value = matrix[row][col]; if (value == target) { return true; } else if (value > target) { row -...
from __future__ import absolute_import, division, print_function from tests.core import mock from tests.core.helpers import assert_url from trakt import Trakt, TraktClient from httmock import HTTMock from threading import Event import calendar import datetime import pytest def test_authorize_url(): Trakt.site_u...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import ValidationError class Company(models.Model): _inherit = 'res.company' leave_timesheet_project_id = fields.Many2one( 'project.project'...
(function () { 'use strict'; angular .module('book.admin') .controller('BookAdminListController', BookAdminListController); BookAdminListController.$inject = ['BookService']; function BookAdminListController(BookService) { var vm = this; vm.book = BookService.query(); } }());
import functools from peewee import fn from playhouse.shortcuts import model_to_dict from nni.nas.benchmarks.utils import load_benchmark from .model import Nb201TrialStats, Nb201TrialConfig, proxy def query_nb201_trial_stats(arch, num_epochs, dataset, reduction=None, include_intermediates=False): """ Query ...
# Copyright 2021 The T5 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 applicable law or agreed to in writi...
import SomeCards from '../components/some-cards.js'; import Layout from '../components/layout'; import PageBanner from '../components/page-banner'; import { useState } from 'react'; import CardSearchForm from '../components/card-search-form'; import { withRouter } from 'next/router'; import queryToParams from '../lib/u...
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ....testing import assert_equal from ..model import FLAMEO def test_FLAMEO_inputs(): input_map = dict(args=dict(argstr='%s', ), burnin=dict(argstr='--burnin=%d', ), cope_file=dict(argstr='--copefile=%s', mandatory=True, ), cov_...
# coding=utf-8 # Copyright 2018 Google LLC & Hwalsuk Lee. # # 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 ...
const get = require("lodash.get") const QRCode = require("qrcode") exports.createSchemaCustomization = async ({ actions }) => { const { createTypes, createFieldExtension } = actions const createQRCode = fieldName => async source => { const string = get(source, fieldName) let qrCode = `` try { q...
""" BOSS classifiers dictionary based BOSS classifiers based on SFA transform. Contains a single BOSS and a BOSS ensemble """ __author__ = "Matthew Middlehurst" __all__ = ["BOSSEnsemble", "BOSSIndividual", "boss_distance"] import math import sys import time from itertools import compress import numpy as np import pa...
import logging # WARNING = 30 logging.getLogger("matplotlib").setLevel(logging.WARNING) logging.getLogger("paramiko.transport").setLevel(logging.WARNING) # INFO = 20 logging.getLogger("botocore").setLevel(logging.INFO) logging.getLogger("smart_open").setLevel(logging.INFO) logging.getLogger("urllib3").setLevel(loggin...
import plotly.figure_factory as ff import plotly.graph_objects as go import statistics import random #Creating a list of sum of 2 dice, rolled 1000 times dice_result = [] for i in range(0, 1000): dice1 = random.randint(1, 6) dice2 = random.randint(1, 6) dice_result.append(dice1 + dice2) #Calculating the me...
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattermapbox.marker" _path_str = "scattermapbox.marker.colorbar" _valid_props = { ...
import hashlib import math import os import re import shutil import sys import tempfile import six from cupy.cuda import device from cupy.cuda import function from cupy.cuda import nvrtc _nvrtc_version = None _nvrtc_max_compute_capability = None def _get_nvrtc_version(): global _nvrtc_version if _nvrtc_ver...
from .fusion import FusionClassifier from .fusion import FusionRegressor from .voting import VotingClassifier from .voting import VotingRegressor from .bagging import BaggingClassifier from .bagging import BaggingRegressor from .gradient_boosting import GradientBoostingClassifier from .gradient_boosting import Gradient...
import Vue from 'vue' import Router from 'vue-router' import HelloWorld from '@/components/HelloWorld' import myStuff from '@/components/myStuff' Vue.use(Router) export default new Router({ routes: [ { path: '/', name: 'HelloWorld', component: HelloWorld }, { path: '/test/', ...
{ "translationBlocks": [ { "name": "text name", "cssSelector": "p, a", "translationStrings": [ { "stringOrig": "Menu", "selector": "#mobile_menu", "translations" : [ { "langCode": "en", "translation": "Menu EN version" }...
import logging from django.contrib.auth.models import BaseUserManager from django.utils import timezone logger = logging.getLogger(__name__) class UserManager(BaseUserManager): def _create_user(self, email, password, **extra_fields): """ Creates and saves a User with the given email and passwor...
/** * Modules */ /** * Expose identity */ module.exports = identity['default'] = identity /** * A function that returns its first arg. * @param {Any} val * @return {Any} val */ function identity (val) { return val }
import * as ACTIONS from './Animation.types'; export function setFramerate(val) { return { type: ACTIONS.FRAMERATE_CHANGED, payload: { framerate: val } } } export function enable() { return { type: ACTIONS.ANIMATION_ENABLED, payload: { enable...
import os import time import urllib.request, urllib.parse, urllib.error import sys import requests from datetime import datetime from django.conf import settings from django.utils import timezone from django.core.exceptions import ImproperlyConfigured from django.core.management.base import BaseCommand, CommandError ...
/* Author: Jason Williams <jdw@cromulence.com> Copyright (c) 2014 Cromulence LLC 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 u...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:18:05 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/NewsUI2...
# This script calculate explanations score for the text classifier with tfidf features from __future__ import print_function import os,sys import time import re import glob import copy import operator import math import json, csv, codecs import lime from lime import lime_text from lime.lime_text import LimeTextExp...
import { click, visit } from 'ember-native-dom-helpers'; import { test } from 'qunit'; import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; moduleForAcceptance('Acceptance | demo'); test('visiting /', async function(assert) { await visit('/'); await click('.toggle-demo-visibility'); ass...
import numpy as np import os from sheltie import QuadRs from sheltie.periodic_pw_scatter import make_theta_axis from spaniel import BroadbandScatter, kaiser, RoughSurface NFFT = 2**10 # for RFM DFT calculation Lper = 70 # this seems like a standard load_dir = '../computed_results/Cos_long_70_7_d30' #load_dir = 'c...
/* Será que posso ir ao banco? Precisamos criar um código que ajude os usuários a saber se pode ir ao banco. Sabemos que o banco está aberto em todos os os dias da semana, exceto em finais de semana. Caso o usuário possa ir ao banco você deve exibir com console.log a seguinte mensagem: “Você pode ir ao banco”, caso c...
/* * Vis5D system for visualizing five dimensional gridded data sets. * Copyright (C) 1990 - 2000 Bill Hibbard, Johan Kellum, Brian Paul, * Dave Santek, and Andre Battaiola. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publishe...
# 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...
from typing import Any from pandas.core.series import Series from ..graph.graph_object import Graph from .model import Model class NCModel(Model): def _query_prefix(self) -> str: return "CALL gds.beta.pipeline.nodeClassification.predict." def predict_write(self, G: Graph, **config: Any) -> Series: ...
# coding: utf-8 import mxnet as mx from lib.mtcnn_detector import MtcnnDetector import cv2 import os import time import glob detector = MtcnnDetector(model_folder='lib/models', ctx=mx.gpu(0), num_worker = 4 , accurate_landmark = False) for im in glob.glob("../../../Dropbox/Jaime_Tenorio/*"): img = cv2.imread(im) ...
/* * Watchdog Driver Test Program */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/types.h> #include <linux/watchdog.h> int fd; /* * This function simply sends an IOCTL to the driver, which in turn ticks * the PC Watchdog ...
// ################################################################################## // // UDMlib - Unstructured Data Management Library // // Copyright (C) 2012-2015 Institute of Industrial Science, The University of Tokyo. // All rights reserved. // // Copyright (c) 2015 Advanced Institute for Computational Science,...
# Python modules # 3rd party modules import numpy as np # Our modules import vespa.analysis.fileio.raw_reader as raw_reader import vespa.common.ge_read_pfile as read_pfile from vespa.common.mrs_data_raw import DataRawProbep, DataRawCmrrSlaser from vespa.common.base_transform import transformation_matrix from vespa....
// Copyright 2017 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 COMPONENTS_PAYMENTS_CORE_PAYMENT_PREFS_H_ #define COMPONENTS_PAYMENTS_CORE_PAYMENT_PREFS_H_ namespace user_prefs { class PrefRegistrySyncable; } ...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
/* @flow */ import React from 'react'; import { expect, assert } from 'chai'; import { mount } from 'enzyme'; import { EditorState, convertFromHTML, ContentState, } from 'draft-js'; import LineHeightControl from '..'; import { Dropdown } from '../../../components/Dropdown'; import defaultToolbar from '../../../c...
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> #include <memory> #include <vector> #include <fabric/core/EventEmitter.h> #include <fabric/core/LocalDa...
print(""" 043) Desenvolva uma lógica que leia o peso e a altura de uma pessoa, calcule seu IMC e mostre seu status, de acordo com a tabela abaixo: - Abaixo de 18.5: Abaixo do Peso - Entre 18.5 e 25: Peso ideal - 25 até 30: Sobrepeso - 30 até 40: Obesidade - Acima de 40: Obesidade mórbida """) peso = float(input('Infor...
import sys, os import params import pathlib sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../mapper'))) #sys.path.append('../mapper') from mapper import em from mapper import ff from mapper import slc f...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include "IGestureRecognizer.h" #include <AzCore/RTTI/ReflectContext.h> ///////////...
""" Manipulations with knownNodes dictionary. """ import json import logging import os import pickle import threading import time import state from bmconfigparser import BMConfigParser from network.node import Peer knownNodesLock = threading.Lock() """Thread lock for knownnodes modification""" knownNodes = {stream: ...