text
stringlengths
3
1.05M
import React, { Component } from 'react'; import { Text, TouchableWithoutFeedback, View } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { CardSection } from './common'; class ListItem extends Component { onRowPress() { Actions.employeeEdit({ employee: this.props.employee }); }...
### tensorflow==2.3.0 import tensorflow as tf import coremltools as ct #mlmodel = ct.convert('saved_model_deeplab_v3_plus_mnv2_aspp_decoder_256', source='tensorflow') #mlmodel.save("deeplab_v3_plus_mnv2_aspp_decoder_256_float32.mlmodel") mlmodel = ct.convert('saved_model_deeplab_v3_plus_mnv2_decoder_256', source='te...
import os from pnet import utils, measure import theano.tensor as T import numpy as np if __name__ == '__main__': # Options P = 1 model_type = 'PC-FCN.P_{}'.format(P) network_type = 'pc_fcn' test_measure_type = 'auc_y_classwise' # test_measure_type = 'ap_y_classwise' # Dirs and fps ...
/*====================================================================* * * Copyright (c) 2013 Qualcomm Atheros, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted (subject to the limitations * in the disclaimer below) pro...
#!/usr/bin/python # -*- coding: utf-8 -*- """ MIT License Copyright (c) 2013-2016 Frantisek Uhrecky 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, includ...
/** * Created by Vadym Yatsyuk on 24.08.17 */ const Router = require('express').Router; const request = require('request'); const config = require('../../../config'); const News = require('./news.model'); const Comment = require('./comment.model'); const SORT_TYPES = require('./sort-types'); let router = new Route...
""" Main file for quail carotenoid data """ # import modules import ANDfunctions_Main as m # main function def main(): headers = "" bird, except_files, list_except, alt_calc, outfile_name = m.storeData() m.modifyData(bird, except_files, list_except, alt_calc) m.getOutput(bird, headers, outfile_name) ...
// Copyright (c) 2019 Tim Perkins // Licensed under an MIT style license, see LICENSE.md for details. // You are free to copy and modify this code. Happy hacking! #include "grid_engine/engine.h" #include "SDL2/SDL.h" #include "grid_engine/log.h" static void abort_on_null(const void* ptr); static uint32_t pixel_rbg...
// Copyright 2014 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. /** * Discover the ID of installed cast extension. * @constructor * @struct */ function CastExtensionDiscoverer() {} /** * Tentatice IDs to try. * ...
import React, { useState } from 'react'; export default function Main (props) { return ( <div> <h1 style={{marginLeft: "25px", marginTop: "40px"}}>Coming soon</h1> </div> ); }
global head global yawModifier global pitchModifier global rollModifier def update(): global head global yaw yaw = yawModifier*filters.continuousRotation(head.yaw) global pitch pitch = pitchModifier*filters.continuousRotation(head.pitch) global roll roll = rollModifier*filters.continuousRotati...
/* * BlueALSA - bluealsa-dbus.c * Copyright (c) 2016-2020 Arkadiusz Bokowy * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * */ #include "bluealsa-dbus.h" #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <stdbool.h> #include <stdint.h>...
let express = require( 'express' ); let app = express(); let server = require( 'http' ).Server( app ); let io = require( 'socket.io' )( server ); let stream = require( './ws/stream' ); let path = require( 'path' ); let favicon = require( 'serve-favicon' ); app.use( favicon( path.join( __dirname, 'favicon.ico' ) ) ); a...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strncat.c :+: :+: :+: ...
import EmberObject from '@ember/object'; import { assign } from '@ember/polyfills'; import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; import metadataRoutes from '../../../helpers/metadata-routes'; import Pretender from 'pretender'; const Response1 = { rows: [ { id: 1, description: 'f...
#!/usr/bin/env python3 # 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 # "L...
var searchData= [ ['offset',['offset',['../structHashing_1_1Address.html#a5fdf9448c3cd7f359bc205af025d0a44',1,'Hashing::Address']]], ['overflow',['overflow',['../structBlock.html#a1237d54d9931ab568c6560b4142765bc',1,'Block::overflow()'],['../structHashing_1_1Address.html#a615264c23722dbcef607000ba2b5f445',1,'Hashin...
from .monkey_meadow import MonkeyMeadow
"""Deep learning and Reinforcement learning library for Researchers and Engineers""" from __future__ import absolute_import try: install_instr = "Please make sure you install a recent enough version of TensorFlow." import tensorflow except ImportError: raise ImportError("__init__.py : Could not import Tens...
/* * Copyright (c) 2017-2020, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include "ps_tests.h" #include <stdio.h> #include "psa/protected_storage.h" #include "tfm_memory_utils.h" #include "s_test_helpers.h" #include "test_framework_helpers.h" /* Test UIDs */ #define TEST_U...
$traceurRuntime.ModuleStore.getAnonymousModule(function() { "use strict"; angular.module("kao.page-title", []).service("PageTitle", function($window, $interpolate) { var getTitle = function(template, scope) { var title = template; if (typeof scope !== "undefined" && scope !== null) { title =...
""" This file contains all high-level functionality for preprocessing sequencing data into character matrices ready for phylogenetic inference. This file is mainly invoked by cassiopeia_preprocess.py. """ import warnings from functools import partial import os from pathlib import Path import time from typing import Li...
import React from "react"; import Directory from "./pages/Directory"; import Navbar from "./components/Navbar"; import Footer from "./components/Footer"; import Wrapper from "./components/Wrapper"; function App() { return ( <div> <Navbar /> <Wrapper> <Directory /> </Wrapper> <Foot...
angular.module("magiciansBattle").directive("selectField", function ($rootScope) { return { restrict: "A", scope: true, require: "field", replace: true, templateUrl: $rootScope.templateUrl("directives/field/selectField.html"), controller: function ($scope, $element) {...
# Copyright (c) 2020 BlenderNPR and contributors. MIT license. from re import split import bpy from Malt.Parameter import * from Malt import Scene from BlenderMalt import MaltPipeline, MaltTextures # WORKAROUND: We can't declare color ramps from python, # so we store them as nodes inside a material def get_color_r...
import Dispatcher from '../dispatcher'; import Constants from '../constants'; export function setSettings(settings) { Dispatcher.dispatch({ type: Constants.SettingsActions.SET_SETTINGS, settings }); }
from mlagents_envs.base_env import ( BehaviorSpec, ActionType, DecisionSteps, TerminalSteps, ) from mlagents_envs.exception import UnityObservationException from mlagents_envs.timers import hierarchical_timer, timed from mlagents_envs.communicator_objects.agent_info_pb2 import AgentInfoProto from mlagen...
from .models import UserProfile from rest_framework import serializers, permissions, viewsets, mixins, authentication from rest_framework.views import APIView from rest_framework.response import Response from django.shortcuts import get_object_or_404 from django.contrib.auth.models import User from django.db.models.si...
#!/usr/bin/env python # -*- coding: utf-8 -*- from eegpy.misc import FATALERROR from integrators import rk4int, eulerint import sys import time import pylab as p try: import numpy as np from numpy.fft import * from scipy.integrate import odeint except ImportError: raise FATALERROR('SciPy or NumPy not ...
from pyecharts.charts import Sunburst from pyecharts import options as opts """ Gallery 使用 pyecharts 1.2.1 参考地址: https://www.echartsjs.com/examples/editor.html?c=sunburst-simple 目前无法实现的功能: 1、暂无 """ data = [ { "name": "Flora", "itemStyle": {"color": "#da0d68"}, "children": [ {"...
'use strict'; // STEP 1 // This is a standard function expression. You may also be familiar with function declarations, which begin with the "function" keyword. const theOldWay = function(course) { return `I am currently enrolled in ${course}`; }; // TODO: Uncomment the following line of code to see the output in t...
""" Route factories and other reusable code --------------------------------------- Factories for utility functions and API routes are defined in this module along with some `FastAPI`_ dependencies. The route factories perform the repetitive grunt work required to set up the typical 'create', 'read', 'update', 'delet...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.timeout = void 0; exports.timeout = function (millies, f) { if (millies === "INFINITELY") { return f(function () { return false; }); } var done = false; var doneF = function () { return done; }; return new P...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * mexable_calculateLOS.h * * Code generation for function 'mexable_calculateLOS' * */ #pragma once /* Inclu...
/** * @license * Copyright (c) 2014, 2020, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 * @ignore */ define(["ojs/ojcore"],function(e){"use strict";class t{addEventListener(e,t){this._eventListeners||(this._eventListeners=[]),this._eventListeners.push({type:e.toLowerCase(),li...
const Promise = require('bluebird'); const dataSet = [ { title: 'Mr', firstName: 'John', lastName: 'Jones', bio: 'Lots of text would be here.' }, { title: 'Mrs', firstName: 'Jane', lastName: 'Rivera', bio: 'Even more text would be her...
/* * * Entity actions * */ // Entity import { FETCH_ENTITY, FETCH_ENTITY_FAILED, FETCH_ENTITY_SUCCESS, } from './constants'; export const fetchEntity = url => ({ type: FETCH_ENTITY, url, }); export const fetchEntitySuccess = entities => ({ type: FETCH_ENTITY_SUCCESS, entities, }); export const fet...
var user_updates = new Object(); var update_frequency = 10; var new_messages = new Array(); $(document).ready(function(){ init_updates(); getUpdates(); }); function toggle_notifications(){ if($(".footer_console .node.notifications").hasClass('open')){ $(".footer_console .node.notifications .popup").slid...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import os import threading import time import torch import torch.distributed as dist NUM_TRIALS = 20 def all_reduce_helper(tensor, group, multiplier, num_iterations): dist.barrier() start_time = time.time()...
/* * Copyright (C) 2016 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...
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return ...
import pytest import enum from eth.vm.forks.frontier import FrontierVM from eth.chains.tester import ( _generate_vm_configuration, ) class Forks(enum.Enum): Frontier = 0 Homestead = 1 TangerineWhistle = 2 SpuriousDragon = 3 Byzantium = 4 Custom = 5 class CustomFrontierVM(FrontierVM): ...
// const state = { // selectContent: 'xxx', // postsBySelected: { // 'xxx': { // isFetching: false, // isExpire: false, // items: [], // lastUpdate: '' // } // } // }; import { combineReducers } from 'redux'; import { REQUEST_POST, RECEIEVE_POST, REFRESH, SELECT_CONTENT } from '.....
#!/usr/bin/python3 # -*- coding: utf-8 -*- # This is a part of CMSeeK, check the LICENSE file for more information # Copyright (c) 2018 - 2020 Tuhinshubhra # FUDforum version detection # Rev 1 import cmseekdb.basic as cmseek import re def start(source): regex = re.findall(r'Powered by: FUDforum (\d.*?).<', sourc...
import numpy as np class MyTuple: ''' The basic object representing the input variable 'w' represents the core of our AD calculator. An instance of this class is a tuple containining one function/derivative evaluation of the variable 'w'. Because it is meant to represent the simple variable ...
const STATE_INITIAL = 0 export default function (state = STATE_INITIAL, action) { let state_current switch (action.type) { case 'SUM': state_current = action.payload[0] + action.payload[1] break; case 'SUBTRACT': state_current = action.payload[0] - action.payload[1] break; case...
const express = require('express'); const router = express.Router(); const path = require('path'); router.get('/*', async (req, res) => { res.sendFile(path.join(__dirname+'/../distAngular/dist/index.html')); }); module.exports = router;
import React from 'react'; import firebase from 'firebase'; import { firebaseAuth, users } from '../../../config/firebaseCredentials' import LinkButton from '../helperElements/LinkButton' import { isStringAcceptable } from '../profilePages/profileHelpers' export default class MessageInputField extends React.Component ...
# -*- coding: utf-8 -*- import tokenize from typing import Iterable, Tuple import pkg_resources from eradicate import Eradicator from flake8.options.manager import OptionManager #: This is a name that we use to install this library: pkg_name = 'flake8-eradicate' #: We store the version number inside the `pyproject....
import * as R from 'ramda' import _ from 'lodash' import i18n from '@/locales' class WaitStatusJob { constructor (status, data) { this.status = status this.data = data this.timer = null } /** * @description 清除定时器 * @memberof WaitStatusJob */ clearTimer () { if (this.timer) { cle...
# -*- coding: utf-8 -*- from maya import cmds from maya import mel import pymel.core as pm from . import weight from . import common from . import lang from . import modeling import os import json #-*-coding:utf-8 -*- import datetime as dt #メッシュを反転コピーしてからウェイトを対象化 def mesh_weight_symmetrize(): exFace = [] if cm...
"""setuptools-based installation script. File is based on this template: https://github.com/pypa/sampleproject """ import os import sys import unittest # Always prefer setuptools over distutils from setuptools import find_packages from setuptools import setup _DEPENDENCIES = [ # dependencies for dsub, ddel, dst...
from django import template register = template.Library() @register.simple_tag(takes_context=True) def visual_asset(context, asset): return asset.url(context['request'])
/** * 题述:数值的整数次方 * 思路:最简单直接的连乘 x n 次 * 时间复杂度:n * 空间复杂度:0 * @param {number} x * @param {number} n * @return {number} */ function myPow(x, n) { if (x === 1 || x === 0) return x; if (x === -1) return n % 2 === 0 ? 1 : -1; let absN = Math.abs(n); let result = 1; while (absN-- >= 1) { re...
import './commands' import '@testing-library/cypress/add-commands'
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:26:51 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/UserNotificationsServer.framework/UserNotificationsServer * classdump-dyld is licensed under GPLv3, ...
"""Transform a string with Python-like source code into SymPy expression. """ from sympy_tokenize import \ generate_tokens, untokenize, TokenError, NUMBER, STRING, NAME, OP from keyword import iskeyword from StringIO import StringIO import re from sympy.core.basic import Basic, C _re_repeated = re.compile(r"^(\...
/** * \file * * \brief Generic monochrome LCD graphic primitives * * Copyright (c) 2011 Atmel Corporation. All rights reserved. * * \asf_license_start * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: ...
!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t="undefined"!=typeof globalThis?globalThis:t||self).Autocomplete=s()}(this,(function(){"use strict";const t=(t,s)=>{for(let i in s)"addClass"===i?h(t,"add",s[i]):"removeClass"===i?h(t...
from flask import Flask from flask_restful import Api, Resource, reqparse from datetime import datetime from datetime import timedelta import requests,json app = Flask(__name__) api = Api(app) class Billpayaccounts(Resource): def get(self, jwttoken): try: #Get JWT token #ur...
from .main import main if __name__ == '__main__': main()
define(['deps/dep1', 'deps/dep2'], function () { require(['deps/dep4']); });
define({"oj-message":{fatal:"Fatal",error:"Erreur",warning:"Avertissement",info:"Informations",confirmation:"Confirmation","compact-type-summary":"{0}: {1}"},"oj-converter":{summary:"La valeur n'est pas au format attendu.",detail:"Entrez une valeur au format attendu.","plural-separator":", ",hint:{summary:"Exemple : {e...
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
from ramda.curry import curry from ramda.reduce import reduce from .multiply import multiply product = reduce(multiply, 1)
import os import runpy from pathlib import Path import pytest from qtpy import API_NAME import napari from napari.utils.notifications import notification_manager from napari._tests.utils import slow # not testing these examples skip = [ 'surface_timeseries.py', # needs nilearn '3d_kymograph.py', # needs t...
'use strict'; angular.module('pOSDesignPatternsExerciseApp') .factory('Register', function ($resource) { return $resource('api/register', {}, { }); });
from typing import Dict, Tuple, List import sys import re import time from multiprocessing import Pool from . import NED as N from WikiParser import Parser as P import importlib importlib.reload( N ) importlib.reload( P ) class DatasetDocument: """ Auxiliary class to process dataset documents in parallel. """ de...
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux' import { ActionCreators } from '../../actions/index.js' import { Text, View, TouchableHighlight, StyleSheet } from 'react-native'; import * as AppSetting from '../../config/appSetting' import Loading from './loa...
# -*- coding: utf-8 -*- import warnings from django.conf import settings from django.db import models, migrations def forwards(apps, schema_editor): ContentType = apps.get_model('contenttypes', 'ContentType') Permission = apps.get_model('auth', 'Permission') Group = apps.get_model('auth', 'Group') use...
from flask import render_template,request,redirect,url_for from . import main from ..requests import get_news_source,get_news_article # from .forms import ReviewForm # from ..models import Article,News # Views @main.route('/') def index(): ''' View root page function that returns the index page and its data ...
#!/usr/bin/env python # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All c...
from compas.geometry import Frame from compas_fab.robots.ur5 import Robot from compas_fab.backends.kinematics import AnalyticalInverseKinematics ik = AnalyticalInverseKinematics() robot = Robot() frame_WCF = Frame((0.381, 0.093, 0.382), (0.371, -0.292, -0.882), (0.113, 0.956, -0.269)) for jp, jn in ik.inverse_kinema...
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE """ This module defines a :doc:`uproot.source.chunk.Chunk`, which is a range of bytes requested from a file. All interaction between the "physical layer" and the "interpretation layer" is through a :doc:`uproot.source.cursor.Cursor`'s ...
var requestretry = require('requestretry'), request = require('request'), log = require('./log'), booleanHelper = require('./boolean-helper'), parseBoolean = require('./environment-variable-parsers').parseBoolean; /** * SessionManager Constructor * * @param {Object} options * @api public */ function Sessi...
const expect = require('chai').expect; const testUtils = require('../../../common/test-utils/server'); const options = [{ value: 1, label: 'option 1' }, { value: 2, label: 'option 2' }]; const emptyOptions = []; describe('select', () => { test('renders basic version', context => { const inp...
import ActionCreator from "../state/ActionCreator.js"; import Selector from "../state/Selector.js"; import GtRGame from "./GtRGame.js"; import TestData from "./TestData.js"; QUnit.module("GtRGame"); QUnit.test("execute()", (assert) => { // Setup. const store = TestData.createStore(); store.dispatch(ActionCreat...
import os class WriterError(Exception): pass class Mol2Format(object): def open(self, *kwargs): import mol2 return mol2.Writer() known_formats = {'.mol2': Mol2Format()} class WriterFormatError(WriterError): def __init__(self, format, known_formats): self.format = format ...
// Copyright (c) 2018 Pastor Ombura // Copyright (c) 2018 The SalemCash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SALEMCASH_CLIENTVERSION_H #define SALEMCASH_CLIENTVERSION_H #if defined(HAVE_CONFIG_H) #...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*++ --*/ /****************************************************************** * * * strsaf...
var userModel = require('../models/user'); //containt the function with business logics var usersController={ userHome(req,res){ //this will call the getuser function present in user.js userModel.getUser((err,data)=>{ try { if(err){ ...
/* * Copyright (c) 2013-2019 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this so...
export { compose } from './compose'; export { reduce } from './reduce'; export { map } from './map'; export { filter } from './filter';
/** * Gather informations about all masters. * * @module @bldr/presentation/masters */ /* globals rawYamlExamples */ import { convertNestedMarkdownToHtml } from '@bldr/markdown-to-html' import inlineMarkup from './lib/inline-markup' import store from './store/index.js' import { convertToString } from '@bldr/unive...
"""Project setup and packaging for sanic-healthcheck.""" import os from codecs import open # for consistent encoding from setuptools import setup, find_packages import re here = os.path.abspath(os.path.dirname(__file__)) # Load the package's __init__ file as a dictionary. with open(os.path.join(here, 'sanic_healt...
""" Pit two models together on NHL 94 """ import retro import sys import argparse import logging import numpy as np import pygame from stable_baselines import logger from common import init_env, init_model, init_play_env, get_num_parameters def parse_cmdline(argv): parser = argparse.ArgumentParser() parser....
from datetime import datetime import pandas, io class PresentationLogfile(object): created = None def __init__(self, fpath): self.fpath = fpath def read(self): with open(self.fpath) as fhandle: lines = fhandle.readlines() lines = [l.strip() for l in lines] cr...
// 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. /** * WebUI to monitor File Metadata per Extension ID. */ var FileMetadata = (function() { 'use strict'; var FileMetadata = {}; /** * Gets extension ...
!function(t){function __webpack_require__(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(e,o,i){for(var u,c,a,f=0,s=[];f<e.length;f++)c=e[f],r[c]&&s.push(r[c][0]),r[c]=0;f...
import sys from pyflakes.scripts.pyflakes import main as main_pyflakes sys.argv = [sys.argv[0], 'labmanager'] main_pyflakes()
# # GitHub: https://github.com/SERPWoo/API # # This code requests a project's Alerts and outputs the Alert ID, Social Timestamp, Alert Text, Alert Link # # This output is text format # # Last updated - Aug 24th, 2017 @ 22:10 EST (@MercenaryCarter https://github.com/MercenaryCarter and https://twitter.com/MercenaryCarte...
#include <system.h> #include <isr.h> #include <serial.h> #include <vga.h> char *exception_messages[32] = { "Division By Zero", "Debug", "Non Maskable Interrupt", "Breakpoint", "Into Detected Overflow", "Out of Bounds", "Invalid Opcode", "No Coprocessor", "Double Fault", "Coproc...
import sh import os import errno from pathlib import Path import binascii as ba from os.path import join as pjoin # hex_dump == hexdump -ve '2/ "%08x " "\n"' $1 | awk '{print $2$1}' > $2 def hex_dump(in_file, out_file): assert os.path.isfile(in_file) print(in_file) with open(in_file, 'rb') as f, open(out_...
from ....tools.decorators import method from ....tools.utils import check_version @method( method_name="Stereoscope", paper_name="Single-cell and spatial transcriptomics enables probabilistic inference of cell type topography", # noqa: E501 paper_url="https://www.nature.com/articles/s42003-020-01247-y", ...
from .utils import ( compare_version, convert_port_bindings, convert_volume_binds, mkbuildcontext, tar, exclude_paths, parse_repository_tag, parse_host, kwargs_from_env, convert_filters, create_host_config, create_container_config, parse_bytes, ping_registry, parse_env_file ) # flake8: noqa from .types...
# -*- coding: utf-8 -*- #This class should preprocess the IMU data import pandas as pd import numpy as np from sklearn.preprocessing import MinMaxScaler, OneHotEncoder from sklearn.model_selection import train_test_split import sys import src.config as cfg import pickle class DataPreprocessing: def __init__(self...
import logging import sys class LsassyFormatter(logging.Formatter): """ Custom formatting. Inspired by impacket "Logger" class """ def __init__(self): logging.Formatter.__init__(self, '%(bullet)s %(threadName)s %(message)s', None) def format(self, record): """ ...
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.00634,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0.00634,"31":0,"32":0,"33":0,"34":0,"35":0.01268,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43"...
import React from 'react' import styled from 'styled-components' import { mainstyles, Title, SectionButton } from '../../utils' import styles from './contactform.module.css' export default function Form() { return ( <section className={styles.container}> <div className={styles.row}> <form ...