text
stringlengths
3
1.05M
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import os # Module API VERSION = io.open(os.path.join(os.path.dirname(__file__), 'VERSION')).read().strip() REMOTE_SCHEMES = ['http',...
"""Symbolic primitives + unicode/ASCII abstraction for pretty.py""" import sys warnings = '' # first, setup unicodedate environment try: import unicodedata def U(name): """unicode character by name or None if not found""" try: u = unicodedata.lookup(name) except KeyError: ...
import torch import torch.nn.functional as F from torch.optim import Adam from sac.utils import soft_update, hard_update from sac.model import TransferQNetwork, TransferGaussianPolicy, Encoder, QNetwork class HARDSAC(object): def __init__(self, num_inputs, action_space, dynamics_model, dynamics_action_encode, re...
/** * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * ...
from django import forms from django.utils.translation import ugettext_lazy as _ from localflavor.pl.forms import PLPostalCodeField from postal.forms import PostalAddressForm class PLPostalAddressForm(PostalAddressForm): line1 = forms.CharField(label=_(u"Street"), max_length=100) city = forms.CharField(la...
# Generated by Django 2.1.15 on 2022-03-02 17:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
""" A collection of modules for collecting, analyzing and plotting financial data. User contributions welcome! """ #from __future__ import division import os, time, warnings, md5 from urllib import urlopen try: import datetime except ImportError: raise SystemExit('The finance module requires datetime support...
const mongoose = require('mongoose') const { validationResult } = require('express-validator/check'); const Product = require('../models/product'); exports.getAddProduct = (req, res, next) => { res.render('admin/edit-product', { pageTitle: 'Add Product', path: '/admin/add-product', editing: false, h...
import os import sys import math import time import bintrees import blist import BTrees.OOBTree import _src sys.path.extend(['..', '../..']) import banyan def _run_test(fn, type_, num_items, num_its): if type_ == int: es = _src.random_ints(num_items) elif type_ == str: es = _src.random_stri...
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails o...
module.exports = { mode: 'jit', content: ['./pages/**/*.tsx', './components/**/*.tsx', './layout/**/*.tsx'], darkMode: 'class', theme: { extend: { colors: { transparent: 'transparent', current: 'currentColor', white: '#fff', black: '#000', gray: { 50: ...
# Copyright Peznauts <kevin@cloudnull.com>. 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 requ...
/*分析组件*/ var path = require('path'); module.exports = function(compName){ var jsId = 'components/'+compName+'/'+compName+'.js'; var cssId = 'components/'+compName+'/'+compName+'.css'; var jsPath = path.resolve('components',compName,compName+'.js'); var cssPath = path.resolve('components',compName,compName+'.css')...
import renderer from 'react-test-renderer' import path from 'path' import readPkgUp from 'read-pkg-up' import addons from '@kadira/storybook-addons' import runWithRequireContext from './require_context' import createChannel from './storybook-channel-mock' const { describe, it, expect } = global let storybook let confi...
describe('index', () => { test('1', () => { expect(true).toBe(true); }); });
""" Run this script from galaxy's root with ``` ipython -i scripts/celery_shell.py -- -c config/galaxy.yml ``` """ import logging import os WARNING_MODULES = ["parso", "asyncio", "galaxy.datatypes"] for mod in WARNING_MODULES: logger = logging.getLogger(mod) logger.setLevel("WARNING") from scripts.db_shell im...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() reqs = [] setuptools.setup( name="fno4vc", version="0.1", author="Ali Siahkoohi", author_email="alisk@gatech.edu", description="Velocity continuation with Fourier neural operators", long_description=long_desc...
/** * Chloe.js: Canvas HTML5 Light Open Engine - Particle.js * @author daPhyre * @version 1.0.0, Fr/27/Feb/15 */ /*jslint bitwise: true, nomen: true */ function Particle(x, y, diameter, life, speed, angle, colorStart, colorEnd) { this.x = 0; this.y = 0; this.ox = 0; this.oy = 0; this.diameter = 0; this.life ...
"use strict"; var mapboxgl = require("mapbox-gl"); var insertCss = require("insert-css"); var fs = require("fs"); mapboxgl.accessToken = window.localStorage.getItem("MapboxAccessToken"); var meta = document.createElement("meta"); meta.name = "viewport"; meta.content = "initial-scale=1,maximum-scale=1,user-scalable=no"...
function syntaxHighlight(json) { json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;'); return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) { var cls = 'number'; if (/^"/.test(matc...
const mix = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel appli...
# -*- coding: utf-8 -*- # # Copyright 2021 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 requir...
import React from 'react'; import '../../../styles/App.css'; export class FilterTopicsMenu extends React.Component { constructor(props) { super(props); this.state = {"showTopics": false}; this.toggleTopics = this.toggleTopics.bind(this); } toggleTopics() { this.setState({"...
# coding: utf-8 from ..module import * class Network(object): def __init__(self, params, input_size=784, hidden_size=100, output_size=10): self.params = {} self.params['W1'] = params['W1'] self.params['b1'] = params['b1'] self.params['W2'] = params['W2'] self.params['b2'] =...
import React from "react"; import "./electronScript"; import { BrowserRouter as Router, Route } from "react-router-dom"; // import login from "./components/loginPage/Login"; import BotListPage from "./components/BotListPage"; import BotBuildPage from "./components/BotBuildPage/"; // import DataSetPage from "./component...
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
// https://vuex.vuejs.org/en/getters.html export default { saludo(state){ if(!state.usuario) {return ''} return `¡Bienvenido ${state.usuario.nombres}!` }, Despadida(state){ if(!state.usuario) {return ''} return `Espero que regreses pronto por aquí ${state.usuario.nombres}!` } }
from retinanet.dataset import Ring_Cell_all_dataset from tqdm import tqdm import numpy as np import torch # from lib.nms.pth_nms import pth_nms from lib_new.nms.gpu_nms import gpu_nms def nms(dets, thresh): "Dispatch to either CPU or GPU NMS implementations.\ Accept dets as tensor""" dets = dets.cpu().det...
from nj import core, operators __all__ = ['and_', 'nor_', 'not_', 'or_'] class and_(operators.ArgsOperator): pass class nor_(operators.ArgsOperator): pass class not_(operators.UnaryOperator): def prepare(self, value: core.MongoObject_T) -> core.MongoObject: # type: ignore return core.MongoO...
var searchData= [ ['colors_311',['Colors',['../class_rt_cs_1_1_open_g_l_1_1_g_l_mesh.html#a5b8842017f17f06c80e3605fe1cba5a2',1,'RtCs::OpenGL::GLMesh']]], ['comparefunc_312',['CompareFunc',['../class_rt_cs_1_1_open_g_l_1_1_g_l_texture_sampler.html#a12a8ff9f85787eb7f4b443903bc687f4',1,'RtCs::OpenGL::GLTextureSampler'...
from __future__ import division, absolute_import, print_function import warnings import numpy as np from numpy.core import (array, arange, atleast_1d, atleast_2d, atleast_3d, block, vstack, hstack, newaxis, concatenate, stack) from numpy.testing import (assert_, assert_raises, ...
let result,pText,encKey; function selectors() { result=document.querySelector('div#result'); pText=document.querySelector('input#plainText'); encKey=document.querySelector('input#encKey'); } const hexToDec = (hex) => parseInt(hex,16).toString(10); const binToDec = (bin) => parseInt(bin,2).toString(10); function...
from django.http import HttpResponse, HttpResponseBadRequest from django.template import loader from django.views.decorators.http import require_http_methods from django.urls import reverse from django.contrib.auth.decorators import login_required from django.core import serializers from django.core.serializers.json im...
# # PySNMP MIB module OPTIX-SONET-LPBK-MIB-V2 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OPTIX-SONET-LPBK-MIB-V2 # Produced by pysmi-0.3.4 at Wed May 1 14:35:17 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 ...
/** * Copyright (c) 2017 ZipRecruiter * * 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, publish, di...
(function(e){function t(e){let t=e.split("-"),a=t[0]+"-";return a+=1==t[1].length?"0"+t[1]:t[1],a+="-",a+=1==t[2].length?"0"+t[2]:t[2],a}function a(){let t=b.length;if(t<1)e(".andp-datepicker-container").removeClass("open").hide();else{if(b=b.sort(function(e,t){return e=e.split("/").reverse().join(""),t=t.split("/").re...
import constants from '../constants'; // import { AsyncStorage, } from 'react-web'; // import customSettings from '../content/config/settings.json'; // import Immutable from 'immutable'; const dynamic = { setDynamicData(prop, value) { return { type: constants.dynamic.SET_DYNAMIC_DATA, payl...
var working = false; $('#login').on('submit',function() { e.preventDefault(); if (working) return; working = true; var $this = $(this), $state = $this.find('button > .state'); $this.addClass('loading'); $state.html('Authenticating'); setTimeout(function() { setTimeout(function() { $state.ht...
from collections import defaultdict import os import numpy as np INPUT = os.path.join(os.path.dirname(__file__), "input.txt") with open(INPUT) as f: lines = f.readlines() polymer = lines[0].rstrip() insertion_rules = {} for l in lines[2:]: k, v = l.rstrip().split(" -> ") insertion_rules[k] = v # Part...
# n = n # time = O(1) # space = O(1) # done time = 15m class Solution: def minPartitions(self, n: str) -> int: return int(max(n))
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> void usage(){ fprintf(stderr,"tone <frequency_Hz>,[<amplitude>] [<frequency_Hz>,[<amplitude>]...]\n"); exit(1); } int main (int argc,char *argv[]){ int i,j; double *f; double *amp; if(argc<2)usage(); f=alloca(sizeof(*f)*(a...
{"version":3,"sources":["calendar-search.js"],"names":["window","Search","calendar","data","this","util","filterId","minSearchStringLength","showCounters","counters","id","className","pluralMessageId","value","invitation","filter","BX","Main","filterManager","getById","filterApi","getApi","addCustomEvent","delegate","a...
import Typography from 'typography'; import sutroTheme from 'typography-theme-sutro'; import { css } from 'styled-components'; import { theme } from './theme'; sutroTheme.overrideThemeStyles = () => ({ a: { color: theme.colors.primary }, }); const typography = new Typography(sutroTheme); // Hot reload typography i...
from __future__ import unicode_literals from unittest import TestCase from pandagg.query import ( Terms, Term, Fuzzy, Exists, Ids, Prefix, Range, Regexp, TermsSet, Wildcard, ) class TermLevelQueriesTestCase(TestCase): def test_fuzzy_clause(self): body = {"user": {...
""" Django settings for DjangoBlogClone project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
const util = require("../util"); const modes = ["none", "track", "queue"]; const aliases = { single: "track", track: "track", song: "track", this: "track", current: "track", all: "queue", every: "queue", queue: "queue", off: "none", none: "none", nothing: "none" }; module.e...
/* local config */ const ETH_NODE_URL= 'http://127.0.0.1:8545' const FORCE_BRIDGER_SERVER_URL = 'http://127.0.0.1:3003' //update to your force server url const CKB_INDEXER_URL= 'http://127.0.0.1:8116' const NODE_URL = 'http://127.0.0.1:8114/' //update to your node url const RichCKBPrivkey = "0xa6b023fec4fc492c23c0e999a...
import React, { useState, useCallback } from "react" import { Youtube } from "../embeds" import { viewport } from "../../lib/infinite-util.js" import { dragging, wheeling } from "../../pages/compose" import { HoverButtons, Crosshair, selection, shouldHide, inspectorForElement, } from "./common" const Infinit...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
// // WWCommandEyeRing.h // APIObjectiveC // // Created by Kevin Liang on 3/31/14. // Copyright (c) 2014 Wonder Workshop inc. (https://www.makewonder.com/) All rights reserved. // #import "WWCommand.h" /** * `WWCommandEyeRing` objects instruct a `WWRobot` how to display its eye pattern. * * For ledBitmap, ...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:10:55 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/PrivateFrameworks/AppleMedia...
// // OATurnDrawable.h // OsmAnd // // Created by Alexey Kulish on 02/11/2017. // Copyright © 2017 OsmAnd. All rights reserved. // #import <UIKit/UIKit.h> #import "OATurnPathHelper.h" @interface OATurnDrawable : UIView //@property (nonatomic) Paint paintBlack; //@property (nonatomic) Paint paintRouteDirection; @...
from mrp.process_def import process from mrp.runtime.conda import Conda from mrp.runtime.docker import Docker from mrp.runtime.host import Host from mrp.util import NoEscape from importlib.machinery import SourceFileLoader import click import os @click.group() def cli(): pass def main(*args): try: c...
# MIT License # # Copyright (c) 2020 Arkadiusz Netczuk <dev.arnet@gmail.com> # # 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 # t...
# import pandas as pd import sys # from os import listdir # from os.path import isfile, # from os.path import join import os import subprocess import numpy as np import pandas as pd # from datetime import datetime # for sklearn package from sklearn.model_selection import KFold from sklearn.model_selection import cr...
// Copyright (c) 2021, Element Labs and contributors // For license information, please see license.txt frappe.ui.form.on('Unallocated items', { // refresh: function(frm) { // } });
# -*- coding: utf-8 -*- """Some utility functions.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from collections.abc import Iterable import os import os.path as op import logging import tempfile from threading import Thread import time import numpy as np from .check impo...
webpackJsonp([102],{ /***/ 263: /***/ (function(module, exports, __webpack_require__) { var disposed = false var normalizeComponent = __webpack_require__(16) /* script */ var __vue_script__ = __webpack_require__(357) /* template */ var __vue_template__ = __webpack_require__(461) /* template functional */ var __vue_te...
from conans import ConanFile, CMake, tools from sys import platform import re import os class LibzmqConan(ConanFile): name = "libzmq" version = "4.3.2" license = "GPL-3.0-only" url = "https://github.com/zeromq/libzmq.git" description = "The ZeroMQ lightweight messaging kernel is a library which ex...
''' To generate a standalone PNG file for a Bokeh application from a single Python script, pass the script name to ``bokeh png`` on the command line: .. code-block:: sh bokeh png app_script.py The generated PNG will be saved in the current working directory with the name ``app_script.png``. It is also possible ...
import React from "react"; import ReactDOM from "react-dom"; import QRCode from "react-qr-code"; import clipboard from "clipboard-polyfill"; import actions from "../actions/utils"; import { Link } from "react-router-dom"; import { NavLink } from "react-router-dom"; import CloseIcon from "../components/icons/CloseIcon...
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by fancyzones.rc ////////////////////////////// // Non-localizable #define FILE_DESCRIPTION "PowerToys FancyZones" #define INTERNAL_NAME "FancyZones" #define ORIGINAL_FILENAME "PowerToys.FancyZones.exe" // Non-localizable /////////////////...
var io = require('socket.io-client'); var ChatClient = require('./chat-client'); var Canvas = require('./canvas'); var global = require('./global'); var playerNameInput = document.getElementById('playerNameInput'); var socket; var reason; var debug = function(args) { if (console && console.log) { console....
import unittest import textwrap import antlr3 import antlr3.tree import testbase import sys class TestRewriteAST(testbase.ANTLRTest): def parserClass(self, base): class TParser(base): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._e...
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: lambda_alias version_added: 1.0.0 short_description: Create...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[85],{ /***/ "./node_modules/@ionic/core/dist/esm-es5/ion-toast-md.entry.js": /*!*********************************************************************!*\ !*** ./node_modules/@ionic/core/dist/esm-es5/ion-toast-md.entry.js ***! \**************************...
var wins = 0; var losses = 0; var goal = ""; var score = 0; var crystals = []; $(document).ready(function() { //This code was copied from the internet however I will comment my understanding of the function $('<div id="overlay">').css({//creating overlay div "width" : "100%" , "height" : "100%" //both lines...
var app = require('./app'); var config = require('./config') app.on("error",function(e){ if(e.code == "EADDRINUSE"){ console.log(chalk.red.bold(" Error in Starting Server : ") + "Port number " + chalk.grey.bold(app.get('port')) + " is in Use, Please change the port number in " + chalk.grey.bold("config.js")); pro...
/** * \file WznmQCtpAPar.h * API code for table TblWznmQCtpAPar (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #ifndef WZNMQCTPAPAR_H #define WZNMQCTPAPAR_H #include <sbecore/Xmlio.h> /**...
#pragma once // Copyright 2015 HcNet Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "crypto/ByteSlice.h" #include "crypto/SHA.h" #include "util/Fs.h" #include...
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import gettext_lazy as _ class User(AbstractUser): """ Default custom user model for {{cookiecutter.project_name}}. If adding fields that need to be fill...
dead_code_1: { options = { dead_code: true }; input: { function f() { a(); b(); x = 10; return; if (x) { y(); } } } expect: { function f() { a(); b(); ...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("jquery")); else if(typeof define === 'function' && define.amd) define(["jquery"], factory); else if(typeof exports === 'object') exports["tooltips"] = fact...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 10 18:01:57 2019 @author: nakul """ import random import numpy as np import math import copy import matplotlib.pyplot as plt show_animation = True ox,oy = [],[] #explore_x,explore_y = [],[] obstacle = np.zeros(shape=(1110,1010)) m = 0 res = 1 for ...
const { request } = require('../utils'); module.exports = (query = {}) => { const api = `/56/networks/pancakeswap/assets/`; return request(api, query); };
define([ '../Core/arraySlice', '../Core/BoundingSphere', '../Core/Cartesian3', '../Core/Cartesian4', '../Core/Math', '../Core/Check', '../Core/Color', '../Core/combine', '../Core/ComponentDatatype', '../Core/defaultValue', ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { connect } from 'react-redux'; import { FlyoutFooter } from './view';...
const mongoose = require("mongoose"); // define a schema const Schema = mongoose.Schema; const messageSchema = new Schema( { text: { type: String, minlength: 1, maxlength: 2000, required: true }, username: { type: String, required: true, minlength: 1 }, user: { type: mongoose.Schema.Types.ObjectId, ref: ...
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages setup_path = os.path.dirname(os.path.abspath(__file__)) packages = find_packages(exclude=["tests*"]) # Taken from https://github.com/python-telegram-bot/python-telegram-bot/blob/9d99660ba95b103b3e1dc80414a5ce2fd805260b/setup.py#L9 def req...
const fs = require('fs'); const version = require('./package.json').version; const FILE_PATH = './public/index.html'; const DESTINATION_PATH = './public/index.html'; const minify = require('html-minifier').minify; console.log('[html-minify] reading file'); let fileData = fs.readFileSync(FILE_PATH, 'utf8'); let size = ...
/*Finding a value in a linked list and returning the result*/ #include <stdio.h> struct entry { int value ; struct entry *next ; } ; struct entry * locate ( struct entry *lst_ptr, int input ) //Function to locate a value inside a linked list { while ( lst_ptr != (struct entry *) 0 ) { if (...
from chainer.dataset.tabular import tabular_dataset class _WithConverter(tabular_dataset.TabularDataset): def __init__(self, dataset, converter): self._dataset = dataset self._converter = converter def __len__(self): return len(self._dataset) @property def keys(self): ...
nome = str(input('Qual é o seu nome ?')).strip() if nome == 'Gustavo': print ('Que nome bonito!') elif nome == 'Pedro' or nome == 'Maria' or nome == 'Paulo': print ('Seu nome é bem popular no Brasil') elif nome in 'Ana Claudia Jéssica Juliana': print ('Belo nome Feminino') else: print ('Seu nome...
// Auto-generated file created by react-native-storybook-loader // Do not edit. // // https://github.com/elderfo/react-native-storybook-loader.git function loadStories() { require('../components/ActionSheet/ActionSheet.stories'); require('../components/AvatarInput/AvatarInput.stories'); require('../components/B...
mycallback( {"ELECTION CODE": "G2010", "EXPENDITURE PURPOSE DESCRIP": "Advertising: Tele-Town Hall Fee", "BENEFICIARY CANDIDATE OFFICE": "", "PAYEE ZIP": "222031553", "MEMO CODE": "", "PAYEE STATE": "VA", "PAYEE LAST NAME": "", "PAYEE CITY": "Arlington", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "...
#ifndef BUILDINGSPRITE_H #define BUILDINGSPRITE_H #include "SpriteLibrary.h" #include "UnitSprite.h" #include "Building.h" #include <vector> class BuildingSprite : public UnitSprite { public: BuildingSprite(Building *m_building, StiGame::SpriteLibrary *m_library); virtual ~BuildingSprite(); void r...
# Run the _testcapi module tests (tests for the Python/C API): by defn, # these are all functions _testcapi exports whose name begins with 'test_'. from collections import namedtuple, OrderedDict import os import pickle import platform import random import re import subprocess import sys import sysconfig import textw...
define({ "add": "Klõpsa uue lisamiseks", "title": "Pealkiri", "placeholderBookmarkName": "Järjehoidja nimi", "ok": "OK", "cancel": "Tühista", "warning": "Viige muutmine lõpule!", "edit": "Muuda järjehoidjat", "errorNameExist": "Järjehoidja on olemas!", "errorNameNull": "Vigane järjehoidja nimi!", "a...
#!/usr/bin/env python3 # Based on https://stackoverflow.com/a/41751956 import os, sys from PyQt5.QtCore import pyqtSignal, pyqtSlot, QProcess, QTextCodec from PyQt5.QtGui import QTextCursor, QPixmap, QIcon from PyQt5.QtWidgets import QApplication, QPlainTextEdit, QAction, QMessageBox, QMainWindow class ProcessOutp...
/*! jQuery UI - v1.9.2 - 2018-05-13 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.sk={closeText:"Zavrieť",prevText:"&#x3C;Predchádzajúci",nextText:"Nasledujúci&#x3E;",currentText:"Dnes",monthNames:["Január","Február","Marec","Apríl"...
""" Checks that the implementation does not make use of boolean operations (==, <=, !, etc) in assignments or function calls. """ import os import pytest import helpers import pqclean import pycparser def setup_module(): if not(os.path.exists(os.path.join('pycparser', '.git'))): print("Please run `git...
/*! * VisualEditor ContentEditable Node tests. * * @copyright 2011-2020 VisualEditor Team and others; see http://ve.mit-license.org */ QUnit.module( 've.ce.Node' ); /* Stubs */ ve.ce.NodeStub = function VeCeNodeStub() { // Parent constructor ve.ce.NodeStub.super.apply( this, arguments ); }; OO.inheritClass( v...
#pragma once #include <iostream> #include <memory> #include <utility> #include <algorithm> #include <functional> #include <string> #include <sstream> #include <vector> #include <unordered_map> #include <unordered_set> #ifdef INF_PLATFORM_WINDOWS #include <Windows.h> #endif
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-17 13:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0003_auto_20181017_1631'), ] operations = [ migrations.AlterField( ...
import random from time import sleep lista = ['PAPEL', 'PEDRA', 'TESOURA'] x = random.choice(lista) escolha = str(input('Escolha uma opção: Pedra, Papel ou Tesoura? ')).upper() print('JO') sleep(1) print('KEN') sleep(1) print('PO') sleep(1) if x == 'PEDRA' and escolha == 'PAPEL': print('Você: {}\nComputador: {}\nVo...
describe("multi-rpc-tcp-transport", function () { require("./TCPTransport"); });
/* * * Copyright 2015, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
import argparse import os from typing import Text from datetime import datetime import json import shutil import tensorflow as tf import numpy as np from tabnet.models.classify import TabNetClassifier from tabnet.datasets.covertype import get_dataset, get_data from tabnet.callbacks import TensorBoardWithLR, LRFinder ...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...