text stringlengths 3 1.05M |
|---|
import React, { useState } from "react";
import { GoogleLogin } from "react-google-login";
import {
Grid,
Typography,
Container,
Button,
Modal,
makeStyles,
} from "@material-ui/core";
import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import { merchantSignup, merchan... |
// ============================================================================================================================
// Deploy Chaincode
// This file shows how to install and instantiate chaincode onto a Hyperledger Fabric Peer via the SDK + FC Wrangler
// =======================================... |
# Copyright (c) 2019 Red Hat, Inc.
# Copyright (c) 2015-2018 Cisco Systems, Inc.
#
# 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
#... |
from __future__ import unicode_literals
SEQUENCE = [
'test_evolution',
]
|
#include <macro-inferno.h>
//#include <iostream>
#ifndef __FF_MACROS_H__
#define __FF_MACROS_H__
#define FF_NEW_INSTANCE(ctor) Nan::NewInstance(Nan::New(ctor)->GetFunction()).ToLocalChecked()
#define FF_GETTER(clazz, name, prop) \
NAN_GETTER(name) { info.GetReturnValue().Set(Nan::ObjectWrap::Unwrap<clazz>(info.This... |
import numpy as np
import pandas as pd
from torch.utils.data import Dataset
from typing import Iterable, Callable
from transformers import PreTrainedTokenizerFast
import torch
class TextDataset(Dataset):
def __init__(self, texts: Iterable[str],
labels: Iterable[int],
... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
# Copyright 2016 Hynek Schlawack
#
# 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... |
/*
** 2001 September 15
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*******************... |
// Copyright (c) 2017-2018 The Merit Foundation developers
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef MERIT_QT_EDITADDRESSDIALOG_H
#define MERIT_QT_EDITADDRESSD... |
module.exports={A:{A:{"1":"F A B","2":"J D E gB"},B:{"1":"C K L G M N O R S T U V W X Y Z P a H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C K L G M N O c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB ZB GB aB Q HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB bB R S T iB U V W X Y Z P a H","2":"hB YB I b J D E ... |
"""
Main usage class for the module
"""
from ker.api import Server
from ker.api import Account
from ker.api import DNS
from ker.api import Monitor
from ker.api import SSH
from ker.utils import HostkerRequestError
class Ker:
"""
Includes all apis for hostker.
"""
def __init__(self, email, token):
... |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from contextlib import contextmanager
from itertools import cycle
import logging
from logging import CRITICAL, Formatter, NOTSET, StreamHandler, WARN, getLogger
import os
import signal
import sys
from threading i... |
var searchData=
[
['data_2ecpp',['Data.cpp',['../Data_8cpp.html',1,'']]],
['data_2ehpp',['Data.hpp',['../Data_8hpp.html',1,'']]],
['datatest_2ecpp',['DataTest.cpp',['../DataTest_8cpp.html',1,'']]],
['detect_2ecpp',['Detect.cpp',['../Detect_8cpp.html',1,'']]],
['detect_2ehpp',['Detect.hpp',['../Detect_8hpp.htm... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright 2013 Matt Coddington <coddington@gmail.com>
#
# This file is part of Ansible
#
# Ansible 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 3 ... |
# Copyright 2018 The GraphNets 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 applicabl... |
import Colors from './colors'
import Fonts from './fonts'
import Metrics from './metrics'
export {
Colors,
Fonts,
Metrics
} |
/*
* Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* This file is part of PerfExpert.
*
* PerfExpert is free software: you can redistribute it and/or modify it under
* the terms of the The University of Texas at Austin Resea... |
// Copyright (c) 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.
#ifndef UI_EVENTS_EVENTS_EXPORT_H_
#define UI_EVENTS_EVENTS_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(EVENTS_IMPLEMENTAT... |
'use strict';
var async = require('async');
var fs = require('fs');
var path = require('path');
var spawn = require('child_process').spawn;
var fcash = require('fcash-lib');
var $ = fcash.util.preconditions;
var _ = fcash.deps._;
var utils = require('../utils');
/**
* Will remove a service from fcash-node.json
* @p... |
import numpy as np
import pandas as pd
population_dict = {'California': 38332521,
'Texas': 26448193,
'New York': 19651127,
'Florida': 19552860,
'Illinois': 12882135}
population = pd.Series(population_dict)
#print(population)
area_dict = {'C... |
from sqlalchemy import MetaData
from sqlalchemy.ext.declarative import declarative_base
DbStagingEntity = declarative_base(metadata=MetaData(schema="staging")) |
# -*- coding: utf-8 -*-
def main():
from collections import Counter
ab = list()
for i in range(3):
ai, bi = map(int, input().split())
ab.append(ai)
ab.append(bi)
ab_count = Counter(ab)
for ab_val in ab_count.values():
if ab_val == 3:
p... |
from flask_app import app
from flask import render_template,redirect,request,session,flash
from flask_app.models.model_user import User
from flask_app.config.mysqlconnection import connectToMySQL
from flask_app import app
from flask_bcrypt import Bcrypt
bcrypt = Bcrypt(app)
@app.route('/register/user', methods=['POS... |
ymaps.ready(init);
function init() {
var myPlacemark,
myMap = new ymaps.Map('map', {
center: [55.753994, 37.622093],
zoom: 9
}, {
searchControlProvider: 'yandex#search'
});
// Слушаем клик на карте.
myMap.events.add('click', function (e) {
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[39],{
/***/ "./resources/js/Pages/Admin/Dashboard/Index.js":
/*!*****************************************************!*\
!*** ./resources/js/Pages/Admin/Dashboard/Index.js ***!
\*****************************************************/
/*! exports provide... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
# emoji regex from https://stackoverflow.com/questions/26568722/remove-unicode-emoji-using-re-in-python
try:
# Wide UCS-4 build
re_emoji = re.compile('['
'\U0001F300-\U0001F64F'
'\U0001F680-\U0001F6FF'
'\u2600-\u2... |
/**
* @typedef {Object} RawDataContractStateTransition
* @property {number} protocolVersion
* @property {number} type
* @property {RawDataContract} dataContract
*/
|
var redis = require("redis");
var client = redis.createClient(6379, "mydevbox", {});
var _ = require('lodash');
var util = require('util');
var jf = require('jsonfile');
var path = require('path');
var logger = require('./logger');
jf.spaces = 4;
var options = {
keyNamespaces: [ 'content:v1:de:de:live:', 'buzz:v1... |
const isTruthy = require(`../is-truthy`)
describe(`isTruthy`, () => {
it(`handles Booleans`, () => {
expect(isTruthy(true)).toBe(true)
expect(isTruthy(false)).toBe(false)
})
it(`handles true or false strings `, () => {
expect(isTruthy(`true`)).toBe(true)
expect(isTruthy(`false`)).toBe(false)
... |
import React from 'react';
import styled from 'styled-components';
import { COLORS } from '../../constants';
const Heading = ({ size, ...delegated }) => {
const Elem = HeadingArr[size];
return <Elem {...delegated} />;
};
const HeadingBase = styled.h4`
font-family: 'Oswald', sans-serif;
font-weight: 300;
le... |
#ifndef BusWrapper_h
#define BusWrapper_h
#include "NeoPixelBrightnessBus.h"
//Hardware SPI Pins
#define P_8266_HS_MOSI 13
#define P_8266_HS_CLK 14
#define P_32_HS_MOSI 13
#define P_32_HS_CLK 14
#define P_32_VS_MOSI 23
#define P_32_VS_CLK 18
//The dirty list of possible bus types. Quite a lot...
#define I... |
module.exports = {
tabWidth: 2,
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'all',
printWidth: 100,
}; |
/*
Apache header:
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
# -*- coding=UTF-8 -*-
# pyright: strict
from __future__ import annotations
import logging
if True:
import os
import sys
sys.path.insert(0, os.path.join(__file__, "../.."))
import argparse
import PIL.Image
from auto_derby import single_mode, template, config
from auto_derby.single_mode import Context
... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
/** @jsx jsx */
import { jsx } from "@emotion/core";
import { forwardRef } from "react";
import Box from "../Box";
import { inputSizes } from "../Input/styles";
var In... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The Runecash developers
// Distributed under the MIT software license, see the accompanying
// file COPYI... |
"""
Copyright 2020 The OneFlow 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 applicable law or agr... |
DEBUG = True
static_directory = "tests/static"
templates_directory = "tests/templates"
error_response_type = "html"
|
# coding=utf-8
from pyecharts.chart import Chart
from pyecharts.option import get_all_options
class TreeMap(Chart):
"""
<<< 树图 >>>
树图是一种常见的表达『层级数据』『树状数据』的可视化形式。它主要用面积的方式,
便于突出展现出『树』的各层级中重要的节点。
"""
def __init__(self, title="", subtitle="", **kwargs):
super(TreeMap, self).__init__(tit... |
// built-in functions
;(function($B){
var _b_ = $B.builtins
_b_.__debug__ = false
// maps comparison operator to method names
$B.$comps = {'>':'gt','>=':'ge','<':'lt','<=':'le'}
$B.$inv_comps = {'>': 'lt', '>=': 'le', '<': 'gt', '<=': 'ge'}
var check_nb_args = $B.check_nb_args = function(name, expected, args){
/... |
(function(d){d['sv']=Object.assign(d['sv']||{},{a:"Kan inte ladda upp fil:",b:"Image toolbar",c:"Table toolbar",d:"Fet",e:"Kursiv",f:"Understrykning",g:"Blockcitat",h:"Insert image or file",i:"Välj rubrik",j:"Rubrik",k:"image widget",l:"Infoga bild",m:"Bild i full storlek",n:"Kantbild",o:"Vänsterjusterad bild",p:"Centr... |
from z3 import *
from anyHR.constraint.node.Node import *
from anyHR.constraint.node.Visitor import NodeVisitor
class ConstrainttoZ3(NodeVisitor):
'''
This class translates the constraint tree to its Z3 representation
'''
def __init__(self, node: Node):
self.node = node
# api
def tr... |
#!/usr/bin/env python3
import sys
import json
import glob
import struct
import string
import shutil
import os.path
import pathlib
import logging
import binascii
import datetime
import functools
import itertools
import contextlib
import webbrowser
import tkinter as tk
from tkinter import ttk, font, filedialog, messageb... |
from napalm_yang.jinja_filters import ip_filters
from napalm_yang.jinja_filters import json_filters
from napalm_yang.jinja_filters import vlan_filters
from napalm_yang.jinja_filters import mac_filters
JINJA_FILTERS = [ip_filters, json_filters, vlan_filters, mac_filters]
def load_filters():
"""
Loads and retu... |
/**
* \file
*
* \brief Stream utility for the IoT service.
*
* Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip pro... |
import os
import tarfile
import gdown
import numpy as np
import pandas as pd
from scipy.sparse import csr_matrix, save_npz, load_npz
from sklearn.datasets import load_svmlight_file
def download_dataset(url, path):
if not os.path.exists(path):
gdown.download(url, path, quiet=False)
def process_dataset(r... |
from os import environ as env
import requests
_DARKSKY_KEY = env['DARKSKY_KEY']
_URL = 'https://api.darksky.net/forecast'
def _get_single_forecast(coord):
lat, lng = coord
url = '{url}/{key}/{lat},{lng}?exclude=minutely,hourly,daily,alerts,flags'.format(url=_URL, key=_DARKSKY_KEY,
... |
import re
import copy
import time
import pytest
from nat_helpers import SETUP_CONF
from nat_helpers import GLOBAL_NAT_TIMEOUT
from nat_helpers import GLOBAL_TCP_NAPT_TIMEOUT
from nat_helpers import GLOBAL_UDP_NAPT_TIMEOUT
from nat_helpers import FULL_CONE_TEST_SUBNET
from nat_helpers import conf_ptf_interfaces
from n... |
import React, { Component } from "react";
import { NavLink, Link, Switch, Route } from "react-router-dom";
import { getLoggedUser } from "../../API/LoginRequests";
import TaskAssign from "./TaskAssign";
import TaskStatus from "./TaskStatus";
import LogsContainer from "../LogsContainer";
import TextTool from "./TextToo... |
import sys
import json
from nltk.probability import FreqDist
from nltk.util import ngrams
from nltk.tokenize import RegexpTokenizer
#Set up a tokenizer which only captures lowercase letters and spaces
#This requires that input has been preprocessed to lowercase all letters
TOKENIZER = RegexpTokenizer("[a-z ]")
def ... |
import remark from 'remark';
import { parse as yaml } from 'yaml';
import toString from 'mdast-util-to-string';
import squeeze from 'remark-squeeze-paragraphs';
import frontmatter from 'remark-frontmatter';
import { promisify } from 'util';
import GithubSlugger from 'github-slugger';
import nodeGlob from 'glob';
import... |
import pandas as pd
import numpy as np
import json
import csv
import argparse
import re
from collections import OrderedDict
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Converts Covid-19 Data \
Tabels provided by the RKI to a simpler format \
... |
$(function(){var h=null;var e=$("#divLoading");var c=$("#divLottery");var d=$(".weixin-mask");var b=10;var g=0;var a={SortID:0,FIdx:1,EIdx:b,isCount:1};var f=function(){var r=function(){var s=function(){return"SortID="+a.SortID+"&FIdx="+a.FIdx+"&EIdx="+a.EIdx+"&isCount="+a.isCount};var t=function(){GetJPData("","getLot... |
import sourceEvent from "./sourceEvent";
import point from "./point";
export default function(node, event) {
if (arguments.length < 2) event = sourceEvent();
if (event.changedTouches) event = event.changedTouches[0];
return point(node, event);
};
|
import os
ls=["python main.py --configs configs/train_mosmed_unetplusplus_timm-regnetx_002_fold0_coarse_dropout.yml",
"python main.py --configs configs/train_mosmed_unetplusplus_timm-regnetx_002_fold1_coarse_dropout.yml",
"python main.py --configs configs/train_mosmed_unetplusplus_timm-regnetx_002_fold2_coarse_dropout... |
import logging
import time
import platform
import tflite_runtime.interpreter as tflite
import numpy as np
from PIL import Image
from bounding_box import BoundingBox
EDGETPU_SHARED_LIB = {
'Linux': 'libedgetpu.so.1',
'Darwin': 'libedgetpu.1.dylib',
'Windows': 'edgetpu.dll'
}[platform.system()]
class TFLiteDe... |
const aws = require('aws-sdk');
const crypto = require('crypto');
const kms = new aws.KMS();
exports.lambdaHandler = async (event, context) => {
try {
if (event.body) {
const secret = crypto.randomBytes(256).toString('hex');
const keyAlias = process.env.KMS_ALIAS || 'al... |
from docs_snippets.overview.configuration.configured_solid_example import (
another_configured_example,
configured_example,
)
from dagster.utils.test import execute_solid
def test_new_solid(capsys):
assert configured_example.name == "configured_example"
execute_solid(configured_example)
captured... |
# -*- coding: utf-8 -*-
"""
Microsoft-Windows-Kernel-ShimEngine
GUID : 0bf2fb94-7b60-4b4d-9766-e82f658df540
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
fr... |
'''
MIT License
Copyright (c) 2020 Phil Wang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... |
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const state = {
limit: 8,
idle: true,
labels: [{
name: '感冒',
id: 1,
}, {
name: '腹泻',
id: 2,
}, {
name: '睡眠',
id: 3,
}, {
name: '妇科',
id: 4,
}, {
name: '高热惊觉',
id: 5,
}, {
name: '鼻炎',
id: 6,
... |
import asyncio
import time
import re
from indy import crypto, did, wallet
# Step 5 code goes here, replacing the prep() stub.
async def prep(wallet_handle, my_vk, their_vk, msg):
encrypted = await crypto.auth_crypt(wallet_handle, my_vk, their_vk, str.encode(msg))
print('encrypted = %s' % repr(encrypted))
... |
# python -m f1_solver_test
import unittest
import numpy as np
import numpy.testing as npt
import f1_solver
from pulp import getSolver
class TestF1Solver(unittest.TestCase):
def test_check_shapes_correct(self):
C, V = np.zeros((3)), np.ones((5,3))
nums = np.array([3, 5])
f1_solver.check_sha... |
// eslint-disable-next-line func-names
exports.handler = function (context, event, callback) {
const phoneNumber = context.TWILIO_PHONE_NUMBER;
// eslint-disable-next-line no-undef
const response = new Twilio.Response();
response.setStatusCode(200);
response.appendHeader('Content-Type', 'application/json');
... |
/*-
* Copyright (c) 2009 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by Rui Paulo under sponsorship from the
* FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
'use strict';
describe('GitHubClient', function() {
it('should successfully file an issue');
});
|
/*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/e... |
"""Helpers for config validation using voluptuous."""
from datetime import (
date as date_sys,
datetime as datetime_sys,
time as time_sys,
timedelta,
)
from enum import Enum
import inspect
import logging
from numbers import Number
import os
import re
from socket import _GLOBAL_DEFAULT_TIMEOUT # type: i... |
#pragma once
#include <chrono>
class scoringSystem{
public:
scoringSystem()
{
score = 0;
prevSecond = 0;
}
void updateScore(int value = 1);
int getScore()const;
void setScore(int value = 0);
void updatePrevSecond();
int getPrevSecond()const;
bool secondElapsed()cons... |
/*
* net/dsa/mv88e6060.c - Driver for Marvell 88e6060 switch chips
* Copyright (c) 2008-2009 Marvell Semiconductor
*
* 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... |
export { default } from './RaceTypesBox';
|
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
import sys
from typing import Optional, TextIO, cast
from prompt_toolkit.utils import (
get_bell_environment_variable,
get_term_environment_variable,
is_conemu_ansi,
is_windows,
)
from .base import DummyOutput, Output
from .color_depth import ColorDepth
from .plain_text import PlainTextOutput
__all__... |
import pickle
import numpy as np
with open('OUTPUT/RealnessGAN-MixGauss-1_Extra/5/extra.pk', 'rb') as f:#'data/MixtureGaussian3By3.pk', 'rb') as f:
new_data = pickle.load(f)
import matplotlib.pyplot as plt
arr = new_data[0]
x = arr[0]
y = arr[1]
s = 10
for i in range(len(new_data)-1):
arr = ne... |
"""
Copyright (c) 2018-2022 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
from os import path
from logging import debug, info
from struct import unpack
from matplotlib import pyplot as plt
import numpy as np
from PIL import Image
from imgaug import filters
class Labeller:
'''
Synopsis
--------
Identifies the label based on the specified name, by checking special chars and
... |
/**
* Copyright 2022 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... |
from threading import Thread
import src.datastore
def on_server_loaded(server_context):
''' If present, this function is called when the server first starts. '''
t = Thread(target=src.datastore.load, args=())
t.setDaemon(True)
t.start()
def on_server_unloaded(server_context):
''' If present, th... |
#Section 0: Requirements
try:
import subprocess
import json
import argparse
except:
print("[!] Failed to import the dependencies... " +\
"Please make sure to install all of the requirements " +\
"and try again.")
raise SystemExit
parser = argparse.ArgumentParser(usage="packe... |
"""
Entradas:
dia-->int-->dia
mes-->int-->mes
año-->int-->año
Salidas:
Signo-->str-->signo
edad-->str-->edad
"""
dia=int(input("Ingrese el día de nacimiento: "))
mes=int(input("Ingrese el mes de nacimiento: "))
año=int(input("Ingrese el año de nacimiento: "))
if((mes==11) and (dia>=22)) or ((mes==12) and (dia<=21)):
... |
#-- GAUDI jobOptions generated on Sun Mar 22 03:40:59 2020
#-- Contains event types :
#-- 11874091 - 32 files - 502736 events - 129.36 GBytes
#-- Extra information about the data processing phases:
#-- Processing Pass: '/Sim08h/Digi13/Trig0x40760037/Reco14c/Stripping20r1NoPrescalingFlagged'
#-- StepId : 12797... |
/*
*P598 , 10.1
*/
#include "csapp.h"
int main() {
int fd1, fd2;
char c;
int f1 = creat("foobar.txt", 0x777);
int f2 = creat("baz.txt", 0x777);
fd1 = Open("foobar.txt", O_RDONLY, 0);
Close(fd1);
fd2 = Open("baz.txt", O_RDONLY, 0);
printf("f1 = %d\n", f1);
printf("fd1 = %d\n", f... |
/**
* @file PublishKafka.h
* PublishKafka class declaration
*
* 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 unde... |
from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
from future.moves.urllib.parse import quote
from logging import getLogger
from requests.exceptions import RequestException
from flexget import plugin
from flexget.event import... |
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
#!/usr/bin/python
from fuel.schemes import BatchScheme
from picklable_itertools import iter_, imap
from picklable_itertools.extras import partition_all
import numpy
class ShuffledExampleSchemeBatch(BatchScheme):
def __init__(self, examples, batch_size, seed = 987654):
super(ShuffledExampleSchemeBatch, self).__i... |
# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
from powerline.lint.markedjson.loader import Loader
def load(stream, Loader=Loader):
'''Parse JSON value and produce the corresponding Python object
:return:
(hadproblem, object) where first argume... |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#
# This source code is licensed under the BSD license found in the
# LICENSE file in the root directory of this source tree.
import os
import re
import setuptools
this_dir = os.path.dirname(os.path.abspath(__file__))
d... |
/**
* FH utility
* @author Vladimir Bolshakov <AndersDeath>
* @version 0.0.1
*/
(() => {
/**
*
* @param {String} html html string
* @returns {Object} DOM element
*/
function domFromString(html) {
const container = document.createElement('template');
container.innerHT... |
/*
* libqos driver framework
*
* Copyright (c) 2018 Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation.
*
* Th... |
from abc import ABC, abstractmethod
from FreeTAKServer.model.SpecificCoT.SpecificCoTAbstract import SpecificCoTAbstract
from typing import NewType
from typing import NewType
from FreeTAKServer.controllers.serializers.json_serializer import JsonSerializer
from FreeTAKServer.model.FTSModel.Event import Event
from FreeTAK... |
var glob = require("glob");
var path = require("path");
var _ = require("lodash");
exports.swagger = false;
exports.login = false;
exports.category = "basic";
exports.desc = "Learn what you can do with oas";
exports.weight = 2;
exports.run = function(config, info) {
console.log("");
console.log("Usage: oas <comma... |
"""Supervisr module NixDNS app config"""
from supervisr.core.apps import SupervisrAppConfig
class SupervisrModProviderNixDNSConfig(SupervisrAppConfig):
"""Supervisr module NixDNS app config"""
name = 'supervisr.provider.nix_dns'
init_modules = ['models', 'providers.core']
label = 'supervisr_provider... |
def eig_single(pars, fp):
"""
Args:
pars : Parameter dictionary
fp : fixed point r_fp
Returns:
eig : eigevalue of the linearized system
"""
# get the parameters
tau, a, theta = pars['tau'], pars['a'], pars['theta']
w, I_ext = pars['w'], pars['I_ext']
print(tau, a, theta, w, I_ext)
# C... |
// Copyright (c) Google LLC 2019
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#ifndef BRUNSLI_DEC_JPEG_BIT_WRITER_H_
#define BRUNSLI_DEC_JPEG_BIT_WRITER_H_
#include <memory>
#include <brunsli/types.h>
namespa... |
import itertools
import os
import logging
import numpy as np
from collections import defaultdict, namedtuple
from tqdm import tqdm
from typing import (
Iterable,
Collection,
Iterator,
Tuple,
List,
Set,
Optional,
Text,
Union,
Dict,
Any,
)
import rasa.utils.io as io_utils
fro... |
import { style as _style } from './Stylist'
import { glue as _glue, breakAt as _breakAt } from './Break'
import { generateRenderModel, read } from './../DOM'
import { relativeRange } from './../Ranging'
function style(decors, range, styleName, editor) {
const ef = typeof styleName === 'string' ? decors[styleName] : ... |
/*
* Copyright (C) 1997-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... |