text
stringlengths
3
1.05M
import random import math import copy from datasets import miniImageNet_few_shot, tiered_ImageNet_few_shot, ImageNet_few_shot from datasets import ISIC_few_shot, EuroSAT_few_shot, CropDisease_few_shot, Chest_few_shot from collections import OrderedDict import warnings import models import time import data import utils ...
# -*- coding: utf-8 -*- """ Install software from the FreeBSD ``ports(7)`` system .. versionadded:: 2014.1.0 This module allows you to install ports using ``BATCH=yes`` to bypass configuration prompts. It is recommended to use the :mod:`ports state <salt.states.freebsdports>` to install ports, but it is also possible...
import { bitNotBigNumber } from '../../utils/bignumber/bitwise'; import { deepMap } from '../../utils/collection'; import { factory } from '../../utils/factory'; import { bitNotNumber } from '../../plain/number'; var name = 'bitNot'; var dependencies = ['typed']; export var createBitNot = /* #__PURE__ */factory(name, d...
// UIImage+Alpha.h // Created by Trevor Harmon on 9/20/09. // Free for personal or commercial use, with or without modification. // No warranty is expressed or implied. // NOTE: Louisdor_Rolf_Project_1 modified to convert from Category to // new Class name since iPhone seems to have some issues with Categories // of...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[37],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/views/service/report/IdCardReport.vue?vue&type=script&lang=js&": /*!**************************************************************************...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:43:55 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/PhotosGraph.framework/PhotosGraph * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Eli...
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
HTTP_100_CONTINUE = 100 HTTP_101_SWITCHING_PROTOCOLS = 101 HTTP_200_OK = 200 HTTP_201_CREATED = 201 HTTP_202_ACCEPTED = 202 HTTP_203_NON_AUTHORITATIVE_INFORMATION = 203 HTTP_204_NO_CONTENT = 204 HTTP_205_RESET_CONTENT = 205 HTTP_206_PARTIAL_CONTENT = 206 HTTP_207_MULTI_STATUS = 207 HTTP_300_MULTIPLE_CHOICES = 300 HTTP_...
var searchData= [ ['last_1217',['last',['../classoperations__research_1_1_sorted_disjoint_interval_list.html#a2b032ed2ce05e48aa222df46d5701be6',1,'operations_research::SortedDisjointIntervalList']]], ['lastintervallessorequal_1218',['LastIntervalLessOrEqual',['../classoperations__research_1_1_sorted_disjoint_interv...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GiMilkCarton = function GiMilkCarton (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M302.958 20.019l-93.916 46.564v35.404c31.305-15.522 62.61-31.047 93.916-46.568zm6.53 52....
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('document_indexing', '0004_auto_20150708_0113'), ] operations = [ migrations.AddField( model_name='index', ...
varsName = [] #Список имен переменных varsVal = [] #Список значений перменных funcName = [] #Список имен функций funcComm = [] #Список команд функций #Главная функция def main(command): #Ищет совпадение с $in (Вводом) if (command.find("$in") >= 0 and command.find("<") > 0 and command.find("while") == -1 and comma...
from datetime import datetime, time, timedelta from itertools import chain from random import Random import pytz from ...core.util import find_overlap def fetch_free_busy(date, tz, uid): # We have to include the day before/after since we may end up needing data # from those days depending on the timezone ...
// Math science const utils = { // Sum an array sum: arr => arr.reduce((acc, curr) => acc + curr, 0), // create an array of numbers between min and max (edges included) range: (min, max) => Array.from({ length: max - min + 1 }, (_, i) => min + i), // pick a random number between min and max (edges included)...
import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension/logOnlyInProduction'; import { connectRoutes } from 'redux-first-router'; import { reducer as reduxFormReducer } from 'redux-form'; import routesMap from './routesMap' import * ...
/* * 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 agreed to ...
const path = require('path'); const { appendFile, mkdirSync, existsSync } = require('fs'); /** * Log on te console te string like > [ 18/12/2019 - 03:53:33 ] - src\index.js:7 -> Teste de Log * @param {string|object} message Message to log on console * @param {boolean} [fileSave] File to save log * @returns {void}...
/* * catberry * * Copyright (c) 2014 Denis Rechkunov and project contributors. * * catberry's license follows: * * 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,...
""" numpy.ma : a package to handle missing or invalid values. This package was initially written for numarray by Paul F. Dubois at Lawrence Livermore National Laboratory. In 2006, the package was completely rewritten by Pierre Gerard-Marchant (University of Georgia) to make the MaskedArray class a subclass of ndarray,...
from inspect import isfunction import copy import numpy as np import os from camera import Camera from display import Display from lay import Lay from material import Material from transform import * class Space(object): def __init__(self): self.vertex_number = 0 self.vertex_list_coordinate = [n...
import React, {useState} from 'react'; import { useSpring, animated } from 'react-spring'; import './App.css'; import reactSpring from 'react-spring'; function App() { const props = useSpring({ to: {opacity: 1}, from: { opacity: 0 } }) const [flip, set] = useState(false) const props1 = useSpring({ to: { o...
from django.urls import path from .views import home, load_static, about_us, our_client, link, contact_us, join_us app_name = "others" urlpatterns = [ path("about-us", about_us, name="about_us"), path("our_client", our_client, name="our_client"), path("link", link, name="link"), path("contact-us", co...
"""Parser for Cozy syntax. The important functions are: - parse_spec: str -> Spec - parse_stm: str -> Stm - parse_exp: str -> Exp """ # builtin import re import sys import ast import inspect # 3rd party from ply import lex, yacc # ours from cozy import parsetools from cozy import syntax from cozy.syntax_tools ...
# -*- coding: latin-1 -*- """This file contains the public interface to the aiml module.""" from __future__ import print_function import copy import glob import os import random import re import string import sys import time import threading import xml.sax from collections import namedtuple try: from ConfigParser...
from typing import List from flask import request from flask.wrappers import Response from flask_accepts import accepts, responds from flask_restx import Namespace, Resource from marshmallow import schema from .interface import EfficiencyIndicatorsInterface from .model import EfficiencyIndicators from .schema import ...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals from LinkedList import LinkedList def find_begining(head: LinkedList) -> LinkedList: slow = head fast = head while fast is not None and fast.next is not None: slow = slow.next fast = fas...
/** * Note to self: when skipping a test with `this.skip()`, do not use an arrow function, * since Mocha appears to try to bind `this` to the test function. * @see https://mochajs.org/#arrow-functions * * This file is explicitly run first by mocha using the `--file` directive * in package.json to let it clean the...
const faker = require('faker') const numPatients = 100 function randomPatient () { return { address: { street: faker.address.streetAddress(), zip: faker.address.zipCode().substr(0, 5) }, dob: faker.date.between(new Date(1945, 0, 1), new Date()).toISOString().substr(0, 10), fname: faker.na...
#!/usr/bin/env python import seaborn as sns import matplotlib.pylab as plt import numpy as np import networkx as nx import pandas as pd import matplotlib as mpl import os import sys import matplotlib.image as mpimg import matplotlib.gridspec as gridspec from glob import glob import itertools as it import matplotlib.pa...
"""This module contains the general information for SyntheticFileSystem ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class SyntheticFileSystemConsts: pass class SyntheticFileSystem(ManagedObject): """This is Synthe...
/* @flow strict-local */ import { createSelector } from 'reselect'; import type { GlobalState, PerAccountState, UserOrBot, Selector, User, UserId } from '../types'; import { getUsers, getCrossRealmBots, getNonActiveUsers } from '../directSelectors'; import { tryGetAuth, tryGetActiveAccountState } from '../account/acco...
var class_leap_1_1_tool_list = [ [ "const_iterator", "class_leap_1_1_tool_list.html#a7f52ee5561016e8d42512e2adbc820de", null ], [ "ToolList", "class_leap_1_1_tool_list.html#a28459f829ceca1ac6edfe5dd5f0a73d5", null ], [ "ToolList", "class_leap_1_1_tool_list.html#a6878221b6eeaa99bb64840d5186493e3", null ], ...
/************************************************************* 所有带确认的ajax提交btn ********************************************************/ /* get执行并返回结果,执行后不带跳转 */ $(function(){ $('.rst-btn').click(function(){ var $url=this.href; $.get($url,function(data){ if(data.status==1){ layer.alert(data.info, {icon: 6})...
# Copyright 2014 Donald Stufft # # 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, so...
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar", "ca", { euro: "Símbol d'euro", lsquo: "Signe de cometa simple esquerra", rsquo: "Signe de cometa simpl...
$(function() { var bodyshortcut = false; function ensure_bodyshortcut() { if ( bodyshortcut == true ) return; var bsc = $('<div class="bodyshortcut">&nbsp;</div>'); bsc.insertAfter($('div.body h1:first')); bodyshortcut = true; }; // if it's an API page, show the module name. var pagename = location.pa...
class LZW { constructor(){ this.kw = []; this.tokens = []; this.tk_id = 0; this.tabla = [] this.nivel = 1; this.resultado = ''; this.resultadoDecode = null; } encode = (cadena , key) => { this.kw = [] ; var dato = (cadena + "").split...
const unionBy = (a, b, fn) => { const s = new Set(a.map(v => fn(v))); return Array.from(new Set([...a, ...b.filter(x => !s.has(fn(x)))])); }; module.exports = unionBy;
# Copyright 2018 The TensorFlow Probability 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 o...
import numpy as np from onadata.apps.api.tools import DECIMAL_PRECISION from onadata.libs.data.query import get_field_records, get_numeric_fields def _chk_asarray(a, axis): if axis is None: a = np.ravel(a) outaxis = 0 else: a = np.asarray(a) outaxis = axis return a, outaxis...
import click from parsec.cli import pass_context, json_loads from parsec.decorators import custom_exception, json_output @click.command('show_data_table') @click.argument("data_table_id", type=str) @pass_context @custom_exception @json_output def cli(ctx, data_table_id): """Get details of a given data table. Out...
/* eslint-disable react/jsx-one-expression-per-line */ import React from 'react'; import useToggle from 'react-use/lib/useToggle'; import Auth from '@arcblock/did-react/lib/Auth'; import Button from '@arcblock/ux/lib/Button'; import api from '../../libs/api'; export default function TransferTokenOut() { const [isO...
/* eslint-disable */ export const indent2em = tinymce.PluginManager.add('indent2em', function(editor, url) { var pluginName='首行缩进'; var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools'); var indent2em_val = editor.getParam('indent2em_val', '2em'); var doAct = function () { var dom = ed...
import { email } from 'src/core/service/validation.service'; import template from './sw-users-permissions-user-detail.html.twig'; import './sw-users-permissions-user-detail.scss'; const { Component, Mixin } = Shopware; const { Criteria } = Shopware.Data; const { mapPropertyErrors } = Component.getComponentHelper(); co...
export default { languageName: "繁體中文 (香港)", Settings: "設定", Dashboard: "錶板", "New Update": "有更新", Language: "語言", Appearance: "外觀", Theme: "主題", General: "一般", Version: "版本", "Check Update On GitHub": "到 Github 查看更新", List: "列表", Add: "新增", "Add New Monitor": "新增監測器",...
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from ..foundations import hparams from ..lottery.desc import...
/*! WebUploader 0.1.2 */ /** * @fileOverview 让内部各个部件的Code可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。 * * AMD API 内部的简单不完全实现,请忽略。只有当WebUploader被合并成一个文件的时候才会引入。 */ (function( root, factory ) { var modules = {}, // 内部require, 简单不完全实现。 // https://github.com/amdjs/amdjs-api/wi...
'use strict'; const parseDocumentCode = require('../parsers/mozambiqueTD1/parseDocumentCodeId'); const parseOptional = require('../parsers/parseOptional'); const parseDocumentNumberOptional = require('../parsers/parseDocumentNumberOptional'); const { documentCodeTemplate, issuingStateTemplate, documentNumberTem...
#!/usr/bin/env node "use strict"; var ServiceRunner = require('service-runner'); new ServiceRunner().start();
exports.HemlockNode = HemlockNode; const async = require('async'); const WebSocket = require('ws'); const findPort = require('find-port'); const fs = require('fs'); const axios = require('axios'); const jsondiffpatch = require('jsondiffpatch'); const object_hash = require('object-hash'); //const REQUEST = require('req...
module.exports = { presets: [ '@babel/preset-env', '@babel/preset-typescript', ['@babel/preset-react', { runtime: 'automatic' }] ] }
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
// Copyright 2018 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 ...
/* * Class TIME_VALUE */ #include "eif_macros.h" #ifdef __cplusplus extern "C" { #endif static const EIF_TYPE_INDEX egt_0_986 [] = {0xFF01,232,0xFFFF}; static const EIF_TYPE_INDEX egt_1_986 [] = {0xFF01,245,985,0xFFFF}; static const EIF_TYPE_INDEX egt_2_986 [] = {0xFF01,985,0xFFFF}; static const EIF_TYPE_INDEX eg...
!function(a,b,c,d){"use strict";var e=function(){},f=function(e,f){if(e.hasClass(f.slides_container_class))return this;var k,m,n,o,q,r,j=this,l=e,p=0,s=!1;l.children().first().addClass(f.active_slide_class),j.update_slide_number=function(b){f.slide_number&&(m.find("span:first").text(parseInt(b)+1),m.find("span:last").t...
function addWidgetsfrmTbx() { var hBoxTextBox = new kony.ui.Box({ "focusSkin": "headBox", "id": "hBoxTextBox", "isVisible": true, "orientation": constants.BOX_LAYOUT_HORIZONTAL, "position": constants.BOX_POSITION_AS_NORMAL, "skin": "headBox" }, { ...
/* @generated */ // prettier-ignore if (Intl.DisplayNames && typeof Intl.DisplayNames.__addLocaleData === 'function') { Intl.DisplayNames.__addLocaleData({"data":{"types":{"language":{"long":{"aa":"afar","ab":"abjasio","ace":"acehnés","ach":"acoli","ada":"adangme","ady":"adigeo","ae":"avéstico","af":"afrikáans","afh"...
#include "db.h" #include "daemon/log.h" #include "lightningd/lightningd.h" #include <ccan/tal/str/str.h> #include <ccan/tal/tal.h> #include <inttypes.h> #define DB_FILE "lightningd.sqlite3" /* Do not reorder or remove elements from this array, it is used to * migrate existing databases from a previous state, based...
import os from services.base import BaseService class Facebook(BaseService): def exchange_token(self, code, callback_url): """ Retrieve the access token given after acquiring authorization code Detailed archived documentation can be found at https://developers.facebook.com/docs/facebook-...
from django import forms class URLForm(forms.Form): longurl = forms.URLField(max_length=250) custom_name = forms.CharField(max_length = 30, required = False)
const Device = require('../device-miio'); const { withLightEffect } = require('../utils'); module.exports = class extends Device { static model = 'yeelink.light.strip1'; static name = 'Yeelight Lightstrip'; static image = 'https://static.home.mi.com/app/image/get/file/developer_1551948702kcy7aei4.png'; const...
import http.server, requests, json username_cache = {} whitelist = ("current.html", "runner64.png", "flags.min.css", "flags.png") mimes = { "html": "text/html", "css": "text/css", "png": "image/png", "json": "application/jsonn" } PAGE_404 = """<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>404 N...
var searchData= [ ['quit_2909',['quit',['../classgui__framework_1_1_base_composite.html#a438c1f5c9ef171bc01b2ac420fee985cadbd73c2b545209688ed794c0d5413d5a',1,'gui_framework::BaseComposite']]] ];
import os import matplotlib import matplotlib.pyplot as plt import tensorflow as tf # Version 1.0.0 (some previous versions are used in past commits) from sklearn import metrics import random from random import randint import argparse import logging import time import operator import imutils import cv2 import numpy a...
/* * The MIT License (MIT) * * Copyright (c) 2019 Ha Thach (tinyusb.org) * * 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 ...
import random random.seed(0) import os import re from prjxray import util CLBN = 400 print('//Requested CLBs: %s' % str(CLBN)) def gen_slices(): for _tile_name, site_name, _site_type in util.gen_sites(['SLICEL', 'SLICEM']): yield site_name DI...
#pragma once #include "FreqViz.h" #include "KnobsComponent.h" template <class Processor> class PluginEditor : public AudioProcessorEditor { public: PluginEditor (Processor&); void resized() override; private: Processor& processor; FreqViz freqViz; KnobsComponent knobs; JUCE_DECLARE_NON_COP...
describe('React script injection', () => { it('should inject appOne script', () => { cy.visit('http://localhost:8123'); /** * App one should load */ cy.contains('app-one').click(); cy.get('div#app-one-root').should('exist'); cy.get('script#appOne').should('exist'); /** * App t...
const expect = require('chai').expect const helper = require('../../../helpers/data/aggregated-data-helper') const getCaseProgress = require('../../../../app/services/data/get-caseload-progress') let inserts = [] const baseCaseProgressRow = { communityLast16Weeks: 10, licenseLast16Weeks: 9, totalCases: 5, wa...
#!/usr/bin/env python2 # PLC4TRUCKSDuck (c) 2020 National Motor Freight Traffic Association # # 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...
"use strict"; /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.20.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator...
import aiolmdb import asynctest import gc import os import tempfile import traceback import shutil import stat import sys class AiolmdbTestCase(asynctest.TestCase): def setUp(self): self.cleanups = [] def tearDown(self): for cleanup in self.cleanups: try: cleanup(...
from __future__ import print_function, division from math import log as _log from .sympify import _sympify from .cache import cacheit from .singleton import S from .expr import Expr from .evalf import PrecisionExhausted from .function import (_coeff_isneg, expand_complex, expand_multinomial, expand_mul) from .log...
// export default Factory.extend({ // name(i) { // return "User " + i; // }, // });
''' Created on Nov 23, 2019 @author: ballance ''' import cocotb from cocotb.bfms import BfmMgr from fwrisc_rv32i_tests.instr_tests import InstrTests from fwrisc_tracer_bfm.fwrisc_tracer_signal_bfm import FwriscTracerSignalBfm from elftools.elf.elffile import ELFFile from elftools.elf.sections import SymbolTableSectio...
const _ = require('lodash'); const { newMessage } = require('../helpers'); const ApiClient = require('../apiClient'); const processEventData = require('../processEventDataHelper').processEventData; function getCalendars(cfg, cb) { function processData(items) { let result = {}; _.forEach(items.v...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = invariant; function invariant(condition, format, a, b, c, d, e, f) { if (process.env.NODE_ENV === 'production') return; if (arguments.length < 2) { throw new Error('invalid argument count.'); } if (!conditio...
import React, { Component } from "react"; import axios from "axios"; import Layout from "../../components/Layout"; import CharacterCard from "../../components/CharacterCard"; import { getEpisode } from "../../api"; class Episode extends Component { constructor(props) { super(props); this.state = { e...
/**************************************************************************** Copyright (c) 2014 cocos2d-x.org http://www.cocos2d-x.org 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 wit...
//------------------------------------------------------------------------------ // gb_get_shallow: create a shallow copy of a MATLAB sparse matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
// Chernobog (9/6/21) // Tharis Hotel #include "../defs.h" inherit "/std/barkeep"; void create() { ::create(); set_name("room service"); set_id(({"roomservice","servant","marionette"})); set_short("%^BOLD%^%^BLACK%^A %^RESET%^featureless %^BOLD%^%^BLACK%^eb%^RESET%^o%^BOLD%^%^BLACK%^ny m%^RESET%^a%^BO...
#ifndef BBTSUBDEFS_H #define BBTSUBDEFS_H 1 /***** Don't use PixRect code on 386i for now *****/ /***** -or on any machine that doesn't support it (HP, e.g.) *****/ /********************************************************/ /* */ /* prropstyle is DEFINED when ...
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.200615.7 #ifndef WINRT_Windows_Storage_Search_2_H #define WINRT_Windows_Storage_Search_2_H #include "winrt/impl/Windows.Foundation.Collections.1.h" #include "winrt/impl/Windows.Storage.Search.1.h" WINRT_EXPORT namespace winrt::Windows::Storage...
import PropTypes from 'prop-types'; import React, {Component, lazy, Suspense} from 'react'; import LazyLoader from '../LazyLoader'; const RealNeedlePlot = lazy(LazyLoader.needlePlot); /** * The Needle Plot component is used to visualize large datasets * containing categorical or numerical data. The lines and marker...
""" ASGI config for dateTester project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (C) yanghongshun@gmail.com # import os,sys,configparser,getopt import csv # 1、对单个文件按主列(gene_name (mus_musculus_ensembl_v80_Genes))对行进行分组 # 2、对单个文件分组后的每一组按找从列(Frequency)求和 # note: # 分组的原则根据主列中每一行的名字,进行归类,同名归属一组 # 3、支持文件批量求和,从整体上看,对位于不同文件的主列进行分组,原则同上。也就是跨文件分组。 ...
/**@preserve GeneXus Java 10_3_12-110051 on December 12, 2020 19:27:24.41 */ gx.evt.autoSkip = false; gx.define('gamexampleentryuser', false, function () { this.ServerClass = "gamexampleentryuser" ; this.PackageName = "" ; this.setObjectType("web"); this.setOnAjaxSessionTimeout("Warn"); this.hasEnterE...
def substrCount(n, s): l = [] count = 0 cur = None # 1st pass for i in range(n): if s[i] == cur: count += 1 else: if cur is not None: l.append((cur, count)) cur = s[i] count = 1 l.append((cur, count)) ans = 0 ...
var assert = require('assert'); var fs = require('fs'); var fixedPath = process.cwd() + '/test/receipts/apple'; describe('#### Apple ####', function () { it('Can parse the validated subscription receipt with duplicates', function (done) { var iap = require('../'); var list = [{"quantity":"1","pro...
/* * Copyright 2018-2020 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "op_join.h" #include "RG.h" #include "../../query_ctx.h" /* Forward declarations. */ static Record JoinConsume(OpBase *opBase); static OpResult JoinInit(OpBase *...
var Animals = ["dog","cat","rabit","hamster","horse","swan","mouse","ant","bear","shark",]; var i ; var input; var title; var bns; $( document ).ready(function() { console.log( "ready!" ); var button; for (i=0; i<Animals.length; i++){ button=$('<button/>').attr({ type: "button", class...
# Copyright (c) 2013 NTT DOCOMO, INC. # Copyright 2014 IBM Corporation. # 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/licen...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_checkapache ---------------------------------- Tests for `checkapache` module. """ import sys import unittest from contextlib import contextmanager from click.testing import CliRunner from checkapache import checkapache from checkapache import cli class Tes...
const Employee = require("./Employee"); class Engineer extends Employee { constructor (name, id, email, github) { super (name, id, email); this.github = github; } getGithub() { return this.github; } getRole() { return "Engineer"; } } module.exports = Engineer...
const RabbitClient = require('rabbit-client'); const Communicator = require('./Communicator'); module.exports = class CommunicationsManager { constructor(settings) { if (!settings) { throw new Error('No settings passed to the CommunicationsManager constructor'); } const { rabbitClient, ...
const $ = require('../../core/renderer'); const noop = require('../../core/utils/common').noop; const windowUtils = require('../../core/utils/window'); const domAdapter = require('../../core/dom_adapter'); const typeUtils = require('../../core/utils/type'); const each = require('../../core/utils/iterator').each; const ...
# Copyright Contributors to the Testing Farm project. # SPDX-License-Identifier: Apache-2.0 import datetime import inspect import json import os import threading import traceback from typing import TYPE_CHECKING, Any, Dict, Optional, Set, Union, cast import dramatiq.broker import dramatiq.message import dramatiq.midd...
# daily_data_analysis # # Analisa is dadus de is imitiduras a sa dii. # Analyse daily emission data. # # Copyright 2021 The Sardinia Sustainability Initiative # # 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 ...
import os import time import datetime from uuid import uuid4 class EnvironmentVariables: """ This class manage environment variable parameters """ def __init__(self): self._environment_variables_dict = {} # env files override true ENV. Not best order, but easier to write :/ ...
""" Split, Join, enumerate em Python *Split - Dividir uma string #str *Join - Juntar uma lista # Str % count(variável) server para ver quantas vezes a variavel dentro dos pareteses aparece * Enumerate - Enumerar elementos da lista # interáveis * strip() Remove o espaço no inicio e no fim do string """ '''string = "O Br...