text
stringlengths
3
1.05M
def opt(): img = 'pictures/20210515-093946.png' f = open(img, 'r') print(f.read()) f.close() if __name__ == '__main__': opt()
'use strict'; const express = require('express'); const app = express(); require('dotenv').config(); // const PORT = 8080; app.use(express.static('./public')); app.listen(process.env.PORT, () => { console.log('Web Server up on port', process.env.PORT); });
from django.db import models # Create your models here. class Location(models.Model): ''' locations model ''' location = models.CharField(max_length=30) def __str__(self): return self.location def save_location(self): self.save() def delete_location(self): ...
define(['exports', 'handlebars/dist/amd/handlebars/decorators/inline'], function (exports, _decoratorsInline) { 'use strict'; exports.__esModule = true; exports.registerDefaultDecorators = registerDefaultDecorators; // istanbul ignore next function _interopRequireDefault(obj) { return obj && obj.__esModule ...
import random import numpy as np from snakeai.agent import AgentBase from snakeai.gameplay.entities import ALL_SNAKE_ACTIONS def direction(head, body): x_head = head[1][0] y_head = head[0][0] x_body = body[1][0] y_body = body[1][0] if (x_head == x_body and y_head > y_body): return 0 # Mirando verticalmente...
import service from 'feathers-mongoose'; import message from './message-model'; const rest = require('feathers-rest'); import hooks from './hooks'; import { hooks as auth } from 'feathers-authentication'; const errors = require('feathers-errors'); export default function() { const app = this; let option...
import json import os from collections import Counter from io import open from texttable import Texttable from nlp_utils import Configuration class Experiment(object): def __init__(self, conf, scores): self.conf = conf self.scores = scores def get_parameters(experiments): params = Counter(...
/* * This file is subject to the terms of the GFX License. If a copy of * the license was not distributed with this file, you can obtain one at: * * http://ugfx.io/license.html */ #ifndef _GDISP_LLD_BOARD_H #define _GDISP_LLD_BOARD_H /* * @brief Optional parameters that can be put in this file. * ...
import { ObjectId } from 'mongodb' import { createWriteStream, mkdir } from 'fs' import { join, basename, sep } from 'path' import fetch from 'node-fetch' import { DATA_DIRECTORY as _D } from '../../../../../../../config/index.js' import raster2pgsql from '../raster2pgsql/index.js' import { nanoid } from 'nanoid' impor...
var NAVTREEINDEX2 = { "struct_epid_ca_certificate.html#ac03cf7257c52ad14e3dd3201b930dd50":[21,0,0,2,2,2], "struct_epid_file_header.html":[21,0,0,2,1], "struct_epid_file_header.html#a35d43c51c1739940381e4898ca87b824":[21,0,0,2,1,0], "struct_epid_file_header.html#af5d48c739cc6c00c6e1ce35abf4f1473":[21,0,0,2,1,1], "struct...
# Copyright 2019 Huawei Technologies Co., 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...
require('garnet'); var kind = require('enyo/kind'), Collection = require('enyo/Collection.js'), EmptyBinding = require('enyo/EmptyBinding.js'), Item = require('garnet/Item'), DataList = require('garnet/DataList'), Panel = require('garnet/Panel'), Title = require('garnet/Title'), SelectionOverlaySupport = requ...
# coding: utf-8 """Tests for the elpy.yapf module""" import unittest from elpy import yapfutil from elpy.rpc import Fault from elpy.tests.support import BackendTestCase @unittest.skipIf(yapfutil.YAPF_NOT_SUPPORTED, 'yapf not supported for current python version') class YAPFTestCase(BackendTestCase)...
# Copyright (c) 2015-2020 Cloudify Platform Ltd. 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 b...
from PySide2.QtCore import QTimer from NIENV import * # GENERAL # self.input(index) <- access to input data # self.outputs[index].set_val(val) <- set output data port value # self.main_widget <- access to main widget # self.exec_output(index) <- executes an executi...
def get_robot(robot_config, bullet_client): robot_name = robot_config.pop("name") if robot_name == 'panda': from .Panda.panda import Panda robot = Panda(bullet_client, **robot_config) elif robot_name == 'ur5': from .UR5.ur5 import UR5 robot = UR5(bullet_client, **robot_confi...
class Hello { say () { return 'hi child window' } } module.exports = Hello
/* * PhoneGap is available under *either* the terms of the modified BSD license *or* the * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text. * * Copyright (c) 2005-2010, Nitobi Software Inc. * Copyright (c) 2010, IBM Corporation */ #import <Foundation/Foundation.h> #import <Addr...
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule, Scale, bias_init_with_prob, normal_init, DepthwiseSeparableConvModule from mmcv.cnn import constant_init, kaiming_init from mmcv.runner import force_fp32 from mmdet.core import (anchor_inside_flags, b...
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
# Generated by Django 3.2.4 on 2021-06-26 03:50 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Products', fields=[ ('id', models.BigAutoFi...
import { Trie } from '../lib/trie'; import { expect } from 'chai'; describe('Trie', () => { let trie; beforeEach(() => { trie = new Trie(); }); describe('when initialized', () => { it('exists', () => { expect(trie).to.be.ok; }); it('does not contain any words', () => { expect(tri...
# adapted from Jey Han Lau [https://github.com/jhlau/topic_interpretability] # simplified by using the fixed window size (all words in an chat/article) and restructured as object-oriented # supports counting the multi-word phrases in topics (e.g. search_box, faculti_member, ...). The default maxPattern is set as 3. T...
banet = dict( lr_start = 5e-2, weight_decay= 5e-4, warmup_iters = 0, start_epoch = 0, epoch = 360, im_root= PATH_TO_DATASET, train_im_anns='../banet/datasets/cityscapes/train.txt', val_im_anns='../banet/datasets/cityscapes/val.txt', scales=[0.25, 2.], cropsize=[1024, 1024], i...
# # Copyright 2018 Analytics Zoo 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...
import config from '../config' export const calculateByteLength = (str) => { if (!str) return 0 // Remove whitespaces and line breaks let metadata = str .replace(/^\s+|\s+$/gm, '') // Trim beginning and ending whitespaces .replace(/(\r\n|\n|\r)/gm, '') // Remove line breaks .replace(/\s+/g, ' ') // Remove do...
""" Django settings for superlists project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
import sys from setuptools import setup setup_requires = ['setuptools_scm'] if sys.argv[-1] in ('sdist', 'bdist_wheel'): setup_requires.append('setuptools-markdown') setup( name='tldr', author='Felix Yan', author_email='felixonmars@gmail.com', url='https://github.com/tldr-pages/tldr-python-client'...
#!/usr/bin/env python from __future__ import absolute_import import locale import logging import os import sys import warnings # We ignore certain warnings from urllib3, since they are not relevant to pip's # usecases. from pip._vendor.urllib3.exceptions import ( DependencyWarning, InsecureRequestWarning, ) ...
import React, { useEffect, useRef } from 'react'; import { StaticImage } from 'gatsby-plugin-image'; import styled from 'styled-components'; import { srConfig } from '@config'; import sr from '@utils/sr'; import { usePrefersReducedMotion } from '@hooks'; const StyledAboutSection = styled.section` max-width: 900px; ...
const Encog = require('../index'); const _ = require('lodash'); const dataEncoder = new Encog.Preprocessing.DataEncoder(); let irisDataset = Encog.Utils.Datasets.getIrisDataSet(); irisDataset = _.shuffle(irisDataset); irisDataset = Encog.Preprocessing.DataToolbox.trainTestSplit(irisDataset); /******************/ //da...
"""Class for holding an image and its associated data. Authors: Ayush Baid """ from typing import Any, Dict, NamedTuple, Optional import numpy as np from gtsam import Cal3Bundler from gtsfm.utils.sensor_width_database import SensorWidthDatabase class Image(NamedTuple): """Holds the image, associated exif data,...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:43:14 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/HealthUI.framework/HealthUI * classdump-dyld is licensed under GPLv3, Copyright ยฉ 2013-2016 by Elias...
module.exports = { testTimeout: 8000, setupFilesAfterEnv: [ './api-test-setup.jest.config.js', ], };
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-12 17:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gallery', '0004_auto_20170910_2120'), ] operations...
# # This file is part of pyasn1 software. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # import sys try: import unittest2 as unittest except ImportError: import unittest from tests.base import BaseTestCase from pyasn1.type import tag from py...
############################################################################### # Name: style_editor.py # # Purpose: Syntax Highlighting configuration dialog # # Author: Cody Precord <cprecord@editra.org> # ...
############################################################################## # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). # # Y...
#!/usr/bin/env python3 # Copyright 2019 Apex.AI, 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...
import styled from 'styled-components'; const Grid = styled.div` display: grid; `; export default Grid;
# Forked from https://github.com/JoshData/convert-outlook-msg-file # This module converts a Microsoft Outlook .msg file into # a MIME message that can be loaded by most email programs # or inspected in a text editor. # # This script relies on the Python package compoundfiles # for reading the .msg container format. # ...
var spec = function () { return jasmine.getEnv().currentSpec; }; var hot = function() { return spec().$container.data('handsontable'); }; var handsontable = function (options) { var currentSpec = spec(); currentSpec.$container.handsontable(options); currentSpec.$container[0].focus(); //otherwise TextEditor ...
from pyrogram import filters from pyrogram.types import Message from pyrogram.enums import ChatMemberStatus, ChatMembersFilter from megumin import megux from megumin.utils import get_collection admin_status = [ChatMemberStatus.ADMINISTRATOR or ChatMemberStatus.OWNER] @megux.on_message( (filters.command("repo...
// // JRSDKTicket+Utils.h // // Copyright 2020 Go Travel Un Limited // This code is distributed under the terms and conditions of the MIT license. // #import <AviasalesSDK/JRSDKModelUtils.h> @class JRSDKProposal; @class JRSDKTicket; @interface JRSDKModelUtils (JRSDKTicket) /** * Compares two tickets * * @p...
const { BannerPlugin } = require("webpack"); const version = require("../package.json").version; const banner = `Socket.IO v${version} (c) 2014-${new Date().getFullYear()} Guillermo Rauch Released under the MIT License.`; module.exports = { entry: "./build/index.js", output: { filename: "socket.io.js", li...
export default { methods: { confirmDestroy (subject) { const config = { title: 'Please Confirm', size: 'sm', buttonSize: 'sm', okVariant: 'danger', okTitle: 'YES', cancelTitle: 'NO', footerClass: 'p-2', hideHeaderClose: false, centered:...
DEPS = [ 'depot_tools', 'gclient', 'gerrit', 'recipe_engine/context', 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/platform', 'recipe_engine/properties', 'recipe_engine/python', 'recipe_engine/raw_io', 'recipe_engine/runtime', 'recipe_engine/source_manifest', 'recipe_engine/step'...
๏ปฟ/* * 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...
#!/bin/python3 import math import os from functools import lru_cache @lru_cache(maxsize=None) def prime_factors(n): count = 0 if n % 2 == 0: count += 1 while n % 2 == 0: n = n / 2 for i in range(3, int(math.sqrt(n)) + 1, 2): while n % i == 0: count += 1 ...
/* * This source code is provided under the Apache 2.0 license and is provided * AS IS with no warranty or guarantee of fit for purpose. See the project's * LICENSE.md for details. * Copyright Thomson Reuters 2015. All rights reserved. */ #ifndef WL_POST_ID_TABLE_H #define WL_POST_ID_TABLE_H #include "rtr/rssl...
import re from codecs import open from os import path from setuptools import find_packages, setup import setup_utils # customize library name here NAME = setup_utils.get_project_name() META_PATH = path.join('src', NAME, 'metadata.py') def find_meta(meta): """ Extract __*meta*__ from META_FILE. """ ...
/** * Created by yangke on 2018/5/22. */ import { Component } from 'react'; import { Banner, TabBar, BetFooter, Group, Outlet, Eliminate } from '../../components'; import './bet.less'; import { Modal, Button } from 'antd-mobile'; //import qs from 'qs'; import { connect } from 'dva'; import appFun from '../../utils/a...
from collections import defaultdict import numpy as np from yt.frontends.gadget_fof.io import IOHandlerGadgetFOFHaloHDF5 from yt.funcs import parse_h5_attr from yt.units.yt_array import uvstack from yt.utilities.io_handler import BaseIOHandler from yt.utilities.on_demand_imports import _h5py as h5py class IOHandler...
# Generated by Django 2.0.8 on 2018-09-29 16:49 from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('images', '0005_auto_20180929_0603'), ] operations = [ migrations.AddField( ...
from dataclasses import dataclass, field __NAMESPACE__ = "NISTSchema-SV-IV-atomic-NMTOKEN-length-4-NS" @dataclass class NistschemaSvIvAtomicNmtokenLength4: class Meta: name = "NISTSchema-SV-IV-atomic-NMTOKEN-length-4" namespace = "NISTSchema-SV-IV-atomic-NMTOKEN-length-4-NS" value: str = fie...
#!/usr/bin/env node const program = require('commander') const pkg = require('../package.json') program .version(pkg.version) .command('version', 'set the version in the config.xml file') .parse(process.argv)
class Url { /** * Parse URL to assign placeholder data */ parse (req, res, endpoint) { this.parseParams(req, endpoint) this.parseQuery(req, endpoint) } /** * Put placeholders from url into req.params * E.g. /users/:id/tasks -> req.params.id holds the data in place of :id */ parseParams...
from mypy_extensions import TypedDict from typing import Any, Dict, Iterable, List, Optional, Union VerbosenessPreferences = TypedDict('VerbosenessPreferences', { 'request': bool, 'response': bool, 'print_binaries': bool, }) QueryParams = Dict[str, Union[str, List[str]]] OAuth2Preferences = TypedDict('OAu...
(self["webpackChunkwizzi_editor"] = self["webpackChunkwizzi_editor"] || []).push([["vendors-node_modules_monaco-editor_esm_vs_basic-languages_cpp_cpp_js"],{ /***/ "./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js": /*!**********************************************************************!*\ !*** ./node...
/*++ Copyright (c) 1997-2000 Microsoft Corporation Module Name: rconvert.c Abstract: Domain Name System (DNS) Server -- Admin Client Library RPC record conversion routines. Convert records in RPC buffer to DNS_RECORD type. Author: Jim Gilroy (jamesg) April, 1997 Revi...
//we first include the header file we need for standard input/output functions #include<stdio.h> //this is the main method void main() { //we take input for the no. of elements the user intends to input in the array int n; printf("Enter the no. of elements you would like to input:"); scanf("%d",&n); ...
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "fwb_gazebo" PROJECT_SPACE_DIR = "/hom...
import numpy as np from gym_collision_avoidance.experiments.src.master_config import Master_Config # from gym_collision_avoidance.experiments.src.master_config_deploy import Master_Config master_config = Master_Config() class Config(object): def __init__(self): #############################################...
import graphene from dagster import AssetKey, check from dagster.core.events.log import EventLogEntry from dagster.core.host_representation import ExternalRepository from dagster.core.host_representation.external_data import ( ExternalAssetNode, ExternalStaticPartitionsDefinitionData, ExternalTimeWindowPart...
import pytest from pathlib import Path from spikeinterface import download_dataset from spikeinterface.extractors import read_mearec from spikeinterface.sorters import run_sorter, run_sorter_container def test_run_sorter_local(): local_path = download_dataset(remote_path='mearec/mearec_test_10s.h5') recordin...
# Copyright 2016 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 agreed to in writing, s...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Helio de Jesus and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _, msgprint, throw from frappe.model.document import Document from frappe.model.naming import make_autoname from datet...
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "2000", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "50 Beale Street", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME...
describe("JsonService", function() { beforeEach(module('demo')); var JsonService, $log; beforeEach(inject(function(_JsonService_, _$log_) { JsonService = _JsonService_; $log = _$log_; })); var sampleRef = { "id": "sample", "type": "ref", }; var sampleOne = { "data": { "id": "s...
"use strict"; // Copyright (c) 2021 Pestras // // This software is released under the MIT License. // https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); const __1 = require("../../.."); describe("Testing $props operator", () => { let schema = new __1.Validall({ ...
import {ItemView} from 'marionette'; import * as JST from 'templates'; export default ItemView.extend({ tagName: 'li', template: JST['app/scripts/apps/navigation/navigation<%= delimiter %>template.hbs'], triggers: { 'click a': 'language:click' } });
from netaddr import IPAddress import pytest def test_interfaces(duthost): """compare the interfaces between observed states and target state""" host_facts = duthost.setup()['ansible_facts'] mg_facts = duthost.minigraph_facts(host=duthost.hostname)['ansible_facts'] verify_port(host_facts, mg_facts['...
#!/usr/bin/env python3 # Copyright (c) 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 logic for setting nMinimumChainWork on command line. Nodes don't consider themselves out of "initial b...
""" y_cable_helper.py helper utlities configuring y_cable for xcvrd daemon """ import threading import time from sonic_py_common import daemon_base, logger from sonic_py_common import multi_asic from sonic_y_cable import y_cable from swsscommon import swsscommon SELECT_TIMEOUT = 1000 y_cable_platform_sfput...
#!/usr/bin/env python3 import json import os import subprocess import sys # Parse the query. query = json.load(sys.stdin) build_command = query['build_command'] filename_old = query['filename_old'] filename_new = query['filename_new'] # If the old filename (from the Terraform state) matches the new filename # (from...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import atexit import numpy as np import queue import torch import torch.multiprocessing as mp import slowfast.utils.logging as logging from slowfast.datasets import cv2_transform from slowfast.visualization.predictor import...
/**************************************************************************** * libnx/nx/nx_fillcircle.c * * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitte...
import { formatFileSize, isDefinedGlobally } from './utils' const messages = { after: (field, [target]) => `${field} แƒฃแƒœแƒ“แƒ แƒ˜แƒงแƒแƒก ${target}(แƒ˜)แƒก แƒจแƒ”แƒ›แƒ“แƒ”แƒ’.`, alpha: (field) => `${field} แƒฃแƒœแƒ“แƒ แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ“แƒ”แƒก แƒ›แƒฎแƒแƒšแƒแƒ“ แƒแƒกแƒแƒ”แƒ‘แƒก.`, alpha_dash: (field) => `${field} แƒฃแƒœแƒ“แƒ แƒจแƒ”แƒกแƒแƒซแƒšแƒ”แƒ‘แƒ”แƒšแƒ˜แƒ แƒจแƒ”แƒ˜แƒชแƒแƒ•แƒ“แƒ”แƒก แƒชแƒ˜แƒคแƒ แƒ”แƒ‘แƒก, แƒแƒกแƒแƒ”แƒ‘แƒก แƒ“แƒ แƒžแƒฃแƒœแƒฅแƒขแƒฃแƒแƒชแƒ˜แƒ˜แƒก แƒœแƒ˜แƒจแƒœแƒ”แƒ‘แƒก.`,...
from django.contrib import admin from django.urls import path, include from django.contrib.auth import views as auth_views urlpatterns = [ path('admin/', admin.site.urls), path('', include('user.urls')), path('', include('main.urls')), path('login/', auth_views.LoginView.as_view(template_name="user/re...
/*! jQuery UI - v1.11.0 - 2016-07-19 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, autocomplete.js, datepicker.js, menu.js, slider.js, effect.js * Copyright 2016 jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define....
var classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1NetworkIntentResource = [ [ "NetworkIntentResource", "classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1NetworkIntentResource.html#adc46e2fefd8d21e7c76f17dac47ad75b", null ], [ "path", "classorg_1_1onosproject_1_1incubator_1_1net_1_1domain_1_1N...
import{_ as e}from"./BasicForm.8a33b99c.js";import{ag as i,h as s}from"./index.4926e6da.js";import{M as t}from"./index.2c9b3d58.js";import{P as a}from"./index.0aed0d9d.js";import{y as r,af as o,Z as n,B as d,F as m,a2 as p,v as l}from"./vendor.880b4c6c.js";/* empty css *//* empty css *//* empt...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strdel.c :+: :+: :+: ...
import pandas as pd import numpy as np import re #d= pd.read_csv(snakemake.input[0], sep= '\t', header= 0) #d['Allele1']= d['Allele1'].str.upper() #d['Allele2']= d['Allele2'].str.upper() #d= d.loc[(d.TOTALSAMPLESIZE> (d['TOTALSAMPLESIZE'].max())/ 2), :] #d[['CHR', 'POS', 'REF','EFF', 'SNP']]= d['MarkerName'].str.spli...
# flake8: noqa # errmsg.h CR_ERROR_FIRST = 2000 CR_UNKNOWN_ERROR = 2000 CR_SOCKET_CREATE_ERROR = 2001 CR_CONNECTION_ERROR = 2002 CR_CONN_HOST_ERROR = 2003 CR_IPSOCK_ERROR = 2004 CR_UNKNOWN_HOST = 2005 CR_SERVER_GONE_ERROR = 2006 CR_VERSION_ERROR = 2007 CR_OUT_OF_MEMORY = 2008 CR_WRONG_HOST_INFO = 2009 CR_LOCALHOST_CONN...
#ifndef H_DEBUG #define H_DEBUG #include "Common.h" #include "ByteStream.h" #define SRCFILE __FILE__ #define CODELINE __LINE__ #define DEBUG_MSG 0x0401 class CDebugInfo { public: CDebugInfo(void); ~CDebugInfo(void); WORD DebugEnable(BYTE byDbg, BYTE byType, DWORD dwLevel, WORD (*pFun...
import sys from unittest import TestCase from nose.tools import raises import plotly_study.graph_objs as go if sys.version_info.major == 3 and sys.version_info.minor >= 3: from unittest.mock import MagicMock else: from mock import MagicMock class TestOnChangeCallbacks(TestCase): def setUp(self): ...
# Generated by Django 3.2.8 on 2021-10-08 23:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
/*------------------------------------------------------------------------- * * binary_upgradeall.h * Functions to dump Oid dispatch commands from pg_dumpall * * Portions Copyright 2017 Pivotal Software, Inc. * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, ...
""" Rafael Radkowski Iowa State University Jan 2017 rafael@iastate.edu All rights reserved """ # Import the failure theory envelopes from ME325Common.StressCalc import * ## Values, note, the values should be positive ## And all values in kpsi #-- Material parameters Sut = 50.0 # kpsi Suc = 110.0 # kpsi #-- facto...
const fs = require('fs'), files = process.argv.slice(2), version = require('../package.json').version files.forEach((file) => { let fileContent = fs.readFileSync(file, 'utf-8') fileContent = fileContent.replace(/{version}/g, version).replace(/{date}/g, new Date().toDateString()) fs.writeFileSync(fi...
/*! elementor - v3.4.3 - 30-08-2021 */ (self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[354],{7914:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},8135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",...
import torch from pathlib import Path from utils import datahandler from utils.model import createDeepLabv3 from utils.trainer import train_model import torch.optim as optim from utils.metrics import Pixel_Accuracy, Mean_Intersection_over_Union if __name__ == "__main__": path = r'C:\Users\A60026184\Desktop\ModelB\...
/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[9],{0:function(t,e,n){"use strict";n.d(e,"Z",(function(){return m})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return k})),n.d(e,"e",(...
import shlex import subprocess import time from helpers.AsynchronousFileReaderHelper import AsynchronousFileReader from multiprocessing import Queue class CommandExecutionHelper: def __init__(self, state=None): self.state = state def consume(self, command): ''' Consume standard outp...
from wot.directory.db import get_db from wot.directory.services import DirectoryService from flask import Blueprint, jsonify, request from requests import HTTPError bp = Blueprint('directory', __name__) @bp.route('/things/', methods=['GET']) def get_things(): """ returns all things known to the system """ re...
// Libraries const record = require('node-record-lpcm16') const request = require('request') // Configuration const config = require('../../config/config') exports.parseResult = function (err, resp, body) { console.error("Broadcasting is not supported for this API") console.log(body) } const startRecording = () ...
/** * Private ModalManager helper * Handles controlling modal stacking zIndexes and body adjustments/classes */ import Vue from '../../../utils/vue'; import { getAttr, hasAttr, removeAttr, setAttr, addClass, removeClass, getBCR, getCS, selectAll, requestAF } from '../../../utils/dom'; import { isBrowser } from '../....
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
import { Component } from 'react' import { MDXProvider } from '@mdx-js/tag' import { withRouter } from 'next/router' import Link from 'next/link' import * as bodyLocker from '~/new-components/utils/body-locker' import changeHash from '~/new-components/utils/change-hash' import components from '~/new-components/mdx-com...