text
stringlengths
3
1.05M
"""This module contains a code example related to Think Python, 2nd Edition by Allen Downey http://thinkpython2.com Copyright 2015 Allen Downey License: http://creativecommons.org/licenses/by/4.0/ """ from __future__ import print_function, division import sys import matplotlib.pyplot as plt from analyze_book1 im...
/** * ForceBlocks.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function(tinymce) { // Shorten names var Event = tinymce.dom.Event, isIE = tinymce.isIE, isGecko = t...
from __future__ import absolute_import import logging from PyQt4.QtCore import SIGNAL,QRect,QSize,QPoint from PyQt4.QtGui import QToolButton,QIcon,QPixmap,QGridLayout,QLabel,QListWidget,QWidget from PyQt4.QtSvg import QSvgRenderer, QSvgWidget from Vispa.Gui.VispaWidget import VispaWidget from . import Resources cla...
from appear.schema.namespaces import generate_schema import os ROOT_PATH = ".appear/" SCHEMA_PATH = ROOT_PATH + "schema/" TEMPLATES_PATH = ROOT_PATH + "templates/" def generate_config(version, date, frontend, backend, database, containers): """Generate an appear configuration""" create_paths(frontend, backen...
/*! Responsive 2.2.3 * 2014-2018 SpryMedia Ltd - datatables.net/license */ /** * @summary Responsive * @description Responsive tables plug-in for DataTables * @version 2.2.3 * @file dataTables.responsive.js * @author SpryMedia Ltd (www.sprymedia.co.uk) * @contact www.sprymedia.co.uk/con...
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="satellizer"),function(e,t,r){"use strict";e.location.origin||(e.location.origin=e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")),t.module("satellizer",[]).constant("SatellizerConfig"...
# Copyright 2018, The Ssite 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 in wr...
/*! * Piii.js v4.0.2 * (c) 2016-2018 Matheus Alves * License: MIT */ !function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Piii=e():r.Piii=e()}("undefined"!=typeof self?self:this,function(){return funct...
#include <stdio.h> #define IN 1 #define OUT 0 int main(int argc, const char * argv[]) { // Arrays: count digits, blank, tab, \n and all others // lw : length of words, cw: count of words, ml: maximum length int i,j, c, state, ml, cw,lw; int nwords[10]; state = OUT; lw = cw = ml = 0; for ...
import express from 'express' import multer from 'multer' import {readFile} from 'fs' import * as twitterApi from './twitter' const upload = multer({dest: './uploads/'}) const type = upload.single('jsonfile') const router = new express.Router() let lists = [] function parseBody(req, cb) { let body = '' req.on('d...
var module = angular.module("example", ["agGrid"]); module.controller("exampleCtrl", function($scope, $http) { var FLAG_CODES = { 'Ireland': 'ie', 'United States': 'us', 'Russia': 'ru', 'Australia': 'au', 'Canada': 'ca', 'Norway': 'no', 'China': 'cn', ...
/* * grunt-contrib-uglify * https://gruntjs.com/ * * Copyright (c) 2015 "Cowboy" Ben Alman, contributors * Licensed under the MIT license. */ 'use strict'; // External libs. var path = require('path'); var fs = require('fs'); var UglifyJS = require('uglify-js'); var _ = require('lodash'); var uriPath = require(...
"""it_IT ssn provider (yields italian fiscal codes)""" from string import ascii_uppercase, digits from .. import Provider as SsnProvider ALPHANUMERICS = sorted(digits + ascii_uppercase) ALPHANUMERICS_DICT = {char: index for index, char in enumerate(ALPHANUMERICS)} CHECKSUM_TABLE = ( (1, 0, 5, 7, 9, 13, 15, 17, 1...
'use strict'; var angular = require('angular'); var TabulationService = require('../../../public/javascripts/tabulation'); var tabulationModule = angular.module('Scoreboard.Tabulation', []); tabulationModule.factory('TabulationService', TabulationService); module.exports = tabulationModule;
from .base import AkiReader from ..object.estabelecimento import AkiEstabelecimento from typing import Iterator class AkiEstabelecimentoReader(AkiReader): def __init__(self, *args, **kwargs): if "low_memory" not in kwargs: kwargs["low_memory"] = False super(AkiEstabelecimentoReader,...
// NOTE: This file was generated by the ServiceGenerator. // ---------------------------------------------------------------------------- // API: // Cloud Trace API (cloudtrace/v2) // Description: // Sends application trace data to Cloud Trace for viewing. Trace data is // collected for all App Engine applicatio...
const fs = require("fs"); const { Deepgram } = require("@deepgram/sdk"); const deepgramTranscript = async ( deepgramApiKey, filepath, language = 'en', filemime = "audio/wav" ) => { const deepgram = new Deepgram(deepgramApiKey); const mimetype = filemime; const file = filepath; const aud...
const playSound = (wrappedFunction, sound, scene) => { return () => { scene.sound.play(sound); return wrappedFunction(); }; }; export default {playSound};
import React, { Component } from 'react'; import { Card, CardBody, Col, Row } from 'reactstrap'; import StepWizard from 'react-step-wizard'; import Swal from 'sweetalert2'; import Step1 from './step1'; import Step2 from './step2'; import Step3 from './step3'; import Step4 from './step4'; import Step5 from './step5'; im...
// Copyright (c) 2021 Bitcoin Association // Distributed under the Open BSV software license, see the accompanying file LICENSE. #pragma once #include <map> #include "sync.h" #include "block_index.h" #include "warnings.h" #include "rpc/webhook_client.h" class CJSONWriter; class SafeMode { /** * Checks if ...
import React from 'react'; import IndexTransactionsView from './IndexTransactionsView.js'; import AddTransactionsView from './AddTransactionsView.js'; import {SVGIcons} from './../../UtilityComponents'; import {numToPrice} from './../../Utilities'; import Table from './../../Table'; export default class Transaction...
# -*- coding: utf-8 -*- import json import re import string import time import pytest from grpc import StatusCode from nameko import config from nameko_grpc.constants import Cardinality from nameko_grpc.errors import ( STATUS_CODE_ENUM_TO_INT_MAP, GrpcError, register_exception_handler, ) from google.prot...
/* * Autodesk RLE Decoder * Copyright (c) 2005 The FFmpeg Project * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License...
""" Django settings for Main project. Generated by 'django-admin startproject' using Django 3.0.4. 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 # Bu...
/*------------------------------------------------------------------------- * * pg_init_privs.h * definition of the system "initial privileges" relation (pg_init_privs) * * NOTE: an object is identified by the OID of the row that primarily * defines the object, plus the OID of the table that that row appears in...
from abc import ABCMeta, abstractmethod import multiprocessing import os from time import sleep import hashlib from vmaf.core.asset import Asset from vmaf.tools.decorator import deprecated from vmaf.tools.misc import make_parent_dirs_if_nonexist, get_dir_without_last_slash, \ parallel_map, match_any_files, run_pro...
/* * Copyright (c) 2016-2017 Tomasz Sieprawski * * 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, mer...
from byteplay3 import Opcode, Label from boa.code.pytoken import PyToken from boa.code import pyop from boa.code.vmtoken import NEO_SC_FRAMEWORK import pdb class Block(): """ """ forloop_counter = 0 localmethod_counter = 0 oplist = None # list _label = None # list iterable_variabl...
import networkx as nx import matplotlib.pyplot as plt import cPickle as pickle from PIL import Image def create_graph_image(topics,documents,edges): G=nx.Graph() G.add_nodes_from(topics) G.add_nodes_from(documents) G.add_edges_from(edges) nx.draw_networkx_nodes(G,pos=nx.circular_layout(G),nodelist=topics,node_...
from functools import partial import itertools import unittest import torch from torch.testing import \ (floating_types, floating_types_and, all_types_and_complex_and) from torch.testing._internal.common_utils import make_tensor from torch.testing._internal.common_methods_invocations import OpInfo, SampleInput, D...
#!/usr/bin/env python import doctest import glob files = glob.glob("../doc/*.rst") for path in files: print "testing %s" % path doctest.testfile(path)
// example sample data and code (function(){ // some sample data // global var "data" data = { identifier: 'id', label: 'id', items: [] }; var s = (new Date()).getTime(); data_list = [ { col1: "normal", col2: false, col3: "new", col4: 'But are not followed by two hexadecimal', col5: 29.91, col6: 10, col7:...
/** * CarRacerJS * Copyright (C) Simon Raichl 2018 * MIT License */ export default class Bounds { onInit ({ GameCanvas }) { this.gameCanvas = GameCanvas; } getBounds () { const { elem } = this.gameCanvas.getCanvas(); return { x1: elem.width * 0.69, x2: ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M14.99 3H6c-.8 0-1.52.48-1.83 1.21L.91 11.82C.06 13.8 1.51 16 3.66 16h5.65l-.95 4.58c-.1.5.05 1.01.41 1.37.29.29.67.43 1.05....
/* file: abs_layer_forward_batch_container.h */ /******************************************************************************* * Copyright 2014-2017 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...
module.exports = { sockets: { // To test this hook w/ a local redis, uncomment this line // adapter: '@sailshq/socket.io-redis', // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // *...
""" 3. 输入一个三位整型数,判断它是否是一个水仙花数 (比如153 = 1*1*1 + 5*5*5 + 3*3*3) 计算出有多少个水仙花数 """ number = int(input("请输入一个三位整型数:")) num1 = (number % 10)**3 num2 = (number // 10 % 10)**3 num3 = (number // 100 % 10)**3 mysum = num1 + num2 + num3 num = 0 if mysum == number : print("输入的{}为水仙花数。".format(number)) else: print("输入的{}不是水仙...
# -*- coding: utf-8 -*- """ Created on Tue Dec 21 08:52:58 2021 @author: dhulse """ import unittest import sys, os sys.path.insert(1, os.path.join('..')) from example_pump.pump_stochastic import Pump from fmdtools.faultsim import propagate import fmdtools.resultdisp as rd from fmdtools.modeldef import SampleApproach, ...
"""Tests for the models of the painless_redirects app.""" from django.contrib.sites.models import Site from django.test import TestCase from painless_redirects.models import Redirect class RedirectModelTestCase(TestCase): def setUp(self): self.redirect = Redirect.objects.create( old_path="/t...
#!/usr/bin/env python3 import os import io import setuptools setuptools.setup( name='nematus', version='0.5', description='Neural machine translation tools on top of Tensorflow', long_description=io.open(os.path.join(os.path.dirname( os.path.abspath(__file__)), 'README.md'),encoding='UTF-8').r...
module.exports={A:{A:{"2":"J D E F A B oB"},B:{"1":"P Q R U V W X Y Z a b c d e S f H","2":"C K L G M N O"},C:{"1":"QB RB SB TB UB VB WB XB YB ZB aB bB P Q R hB U V W X Y Z a b c d e S f H iB","2":"0 1 2 3 4 5 6 7 8 9 pB eB I g J D E F A B C K L G M N O 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 GB HB IB J...
import math import logging import sys import time import traceback from typing import Callable, Optional import i3ipc import common import cycle_windows import layout import move_counter import transformations def balance_cols(i3: i3ipc.Connection, col1: i3ipc.Con, col1_expected: int, ...
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
""" Simple script to batch convert video files in ffmpeg using Nvidia hardware decoding & encoding. Script will search and process video files found in a folder called batch in the directory of the python script. """ # Video will be converted to h265 mkv file. Change to suit your needs. # The audio stream of the file w...
import os import pandas from src.utils.slug import to_slug def csv_as_dict_list(path=None, slugify_headers=False, **kwargs): # Ensure CSV exists. if not os.path.exists(path): raise OSError('CSV file not found at {}'.format(path)) # Read CSV file from path as a pandas dataframe. df = pandas.read_csv(path,...
#pragma once #include <Shark.h> #include <unordered_map> #include <imgui.h> #include <imgui_internal.h> namespace Shark { struct Directory; struct Entry { enum class ContentType { None = 0, Directory, File }; ContentType Type = ContentType::None; uint32_t ByteSize = 0; Directory* Directory = n...
from .depth_dataset_reader import DepthDatasetReader from .image_dataset_reader import ImageDatasetReader from .letor_listwise_object_ranking_dataset_reader import LetorListwiseObjectRankingDatasetReader from .neural_sentence_ordering_reader import SentenceOrderingDatasetReader from .object_ranking_data_generator impor...
/* * %CopyrightBegin% * * Copyright Ericsson AB 2001-2020. 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 ...
#!/usr/bin/env python3 """ Copyright (C) 2018-2020 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 applicabl...
class Polarity(): def __init__(self, type, timestamp, positive, negative, neutral, compound): self.type = type self.timestamp = timestamp self.positive = positive self.negative= negative self.neutral = neutral self.compound = compound
from django.apps import AppConfig class RbtHoursTrackerConfig(AppConfig): name = 'rbt_hours_tracker'
import os import glob from datetime import datetime import urllib.request as req import time import pysolar.solar as ps import socket import multiprocessing ####HD815_2 became HD815_W after May, 2018. It was relocated. #ips = {"HD815_1": "x.x.x.2", "HD815_W": "x.x.x.29", "HD17": "x.x.x.117", # "HD19": "x.x.x.119...
#ifndef __Tiles_h #define __Tiles_h const unsigned short * getTile(char Index); #endif
document.addEventListener('DOMContentLoaded', function() { var elems = document.querySelectorAll('.sidenav'); var instances = M.Sidenav.init(elems, options); });
/* * Copyright (c) 2013 Johannes Berg <johannes@sipsolutions.net> * * This file is free software: you may copy, redistribute 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 License, or (at your * option) any later ver...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); describe('BlockModel', function () { }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmxvY2tNb2RlbC50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiQmxvY2tNb2RlbC50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7...
from __future__ import print_function import sys sys.path.insert(0, 'src') import transform, numpy as np, vgg, pdb, os import scipy.misc import tensorflow as tf from utils import save_img, get_img, exists, list_files, check_version from argparse import ArgumentParser from collections import defaultdict import time impo...
// Entry point that calls function generated by compiler and print out its // output. #include <stdio.h> extern int evaluate(void); int main(void) { int n = evaluate(); printf("%d\n", n); return 0; }
import { Map, OrderedSet } from 'immutable' import RemoteCall from 'data/domain/RemoteCall' import { LOGOUT_SUCCESS } from '../currentUser/logout/action' import { CREATE_SUBSCRIPTION_STARTED, CREATE_SUBSCRIPTION_SUCCESS, CREATE_SUBSCRIPTION_FAILURE, CREATE_SUBSCRIPTION_RESET, } from './createSubscription/acti...
print('='*8,'Aprimorando os Dicionários','='*8) lj = [] jog = {} while True: jog['nome'] = str(input('Nome do jogador: ')).strip().title() qp = int(input(f'Quantas partidas {jog["nome"]} jogou? ')) gols = [] for c in range(0, qp): gols.append(int(input(f' Número de gols na partida {c + 1}: ')...
/// Copyright (c) 2009 Microsoft Corporation /// /// 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 conditions and ///...
module.exports={title:"CakePHP",slug:"cakephp",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>CakePHP</title><path d="M0 13.875v3.745c0 2.067 5.37 3.743 12 3.743V17.62c-6.63 0-12-1.68-12-3.743v-.002zm21.384 2.333L12 13.875v3.745l9.384 2.333C23.02 19.313 24 18.503 24 17.62v-3.745c0 .8...
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 429516674 """ """ random actions, total chaos """ board = gamma_new(4, 5, 3, 7) assert board is...
#!/usr/bin/env python import logging import pathlib import pandas as pd import multiprocessing as mp _logger = logging.getLogger(__name__) ## A "complete" dir listing # 511145.12.fna # 511145.12.PATRIC.faa # 511145.12.PATRIC.features.tab # 511145.12.PATRIC.ffn # 511145.12.PATRIC.frn # 511145.12.PATRIC.gff # 511145.1...
/* Use a semaphore to implement mutual exclusion. */ #include <assert.h> #include <fcntl.h> /* O_CREAT */ #include <pthread.h> #include <semaphore.h> #include <stdio.h> /* printf() */ #include <stdlib.h> /* exit() */ #include <unistd.h> /* sleep() */ /* Local functions declarations. */ static void* th...
import cv2 import numpy as np from visualize_cv2 import model, display_instances, class_names capture = cv2.VideoCapture('carvideo1.mp4') size = ( int(capture.get(cv2.CAP_PROP_FRAME_WIDTH)), int(capture.get(cv2.CAP_PROP_FRAME_HEIGHT)) ) codec = cv2.VideoWriter_fourcc(*'DIVX') output = cv2.VideoWriter('videofil...
import os from os import walk import sys import thread import gzip from multiprocessing import Pool, Process, Queue PROCESS_COUNT = 8 # file utilities class Utils: @staticmethod def rename(file, to): call_rename = "mv %s %s" % (file, to) print call_rename os.system(call_rename) ...
// Copyright (c) 2021 Oleksandr Semeniuk // This code is licensed under MIT license // See also http://www.opensource.org/licenses/mit-license.php /** * @version 1.0.1 * @date Jul 17 2019 * * @param comp {CompItem} * @param propSource {Property} * @param propTarget {Property} */ function as_shapeToSpatial(comp...
var express = require('express'); var router = express.Router(); var appname = "Odkryj Rudy "; var screenname = appname + ""; router.get('/', function(req, res, next) { res.render('index', { title: screenname }); }); router.get('/park', function(req, res, next) { res.render('park', { title: screenname }); }); ...
# flake8: noqa from .config import INFER_HOST from .main import runserver, run_app, serve_static
hook("Hook A1", function() { return { after() { console.log('Hook A1 after!') } } })
from typing import Any, Tuple from amino import List, do, Either, Do, Left from amino.logging import module_log from ribosome import NvimApi from ribosome.rpc.comm import Comm from ribosome.rpc.to_vim import send_request, send_notification from ribosome.rpc.data.rpc import Rpc log = module_log() class RiboNvimApi(...
// // TCH_BookCarouselFigure_Model.h // UIAAAAAAAAAAAAAAAAAAAAAAAAAAAA // // Created by M on 16/9/24. // Copyright © 2016年 dllo. All rights reserved. // #import "EABaseModel.h" @interface TCH_BookCarouselFigure_Model : EABaseModel @property(nonatomic, retain)NSString *cover; @end
import time import unittest from selenium import webdriver # Scenario: # As a user, I can search for the title 'Titanic' on https://www.imdb.com/ and want to see the first title. # Steps: # 1. Go to https://www.imdb.com/ # 2. In a search drop-down select 'titles' # 3. Type Titanic # 4. Click on a first 'Titanic' titl...
company = 'Coding for All' print(company)
''' Created on Apr 11, 2016 @author: PJ ''' import collections from django.db.models.aggregates import Avg, Sum from django.db import models from Scouting2011.model.reusable_models import ScoreResultMetric, Team, Match, Competition,\ OfficialMatch from django.contrib.auth.models import User class Scout2011(model...
from fastapi import FastAPI, status from fastapi.middleware.cors import CORSMiddleware import uvicorn from routers import forecast origins = ["*"] app = FastAPI() app.include_router(forecast.router) app.add_middleware( CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*...
import os import sys import subprocess from pathlib import Path import Utils from io import BytesIO from urllib.request import urlopen class VulkanConfiguration: requiredVulkanVersion = "1.2.170.0" vulkanDirectory = "./Arc/vendor/VulkanSDK" @classmethod def Validate(cls): if (not cls.CheckVu...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( /*#__PURE__*/React.createElement("path", { d: "M21.94 4.88c-.18-.53-.69-.88-1.26-.88H19.6l-.31-.97C19.15 2.43 18.61 2 18 2s-1.15.43-1.29 1.04L16.4 4h-1.07c-.57 0-1.08.35-1.26.88-.19.56.04 1.17.56 1.48l.87....
from django.conf.urls import patterns, url # Uncomment the next two lines to enable the admin: urlpatterns = patterns('authenticate.views', url(r'^$', 'login_page'), url(r'^login/$', 'login_page'), url(r'^recieveLogin/$', 'recieveLogin'), url(r'^failure/$', 'failure'), url(r'^logout/$', 'logout_pa...
""" Django settings for blog project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import sentry_s...
const Welcome = () => import('~/pages/welcome').then(m => m.default || m) const Login = () => import('~/pages/auth/login').then(m => m.default || m) const Register = () => import('~/pages/auth/register').then(m => m.default || m) const PasswordEmail = () => import('~/pages/auth/password/email').then(m => m.default || m...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p3beta1/proto/text_annotation.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.application} and its interaction with L{twisted.persisted.sob}. """ import copy import os import pickle from io import StringIO try: import asyncio except ImportError: asyncio = None # type: ignore[assignment] ...
#!/usr/bin/env python ''' Copyright (C) 2020, WAFW00F Developers. See the LICENSE file for copying permission. ''' NAME = 'DenyALL (Rohde & Schwarz CyberSecurity)' def is_waf(self): schemes = [ self.matchStatus(200), self.matchReason('Condition Intercepted') ] if all(i for i in schemes): ...
/*jshint node:true*/ if (typeof define !== 'function') { var define = require('amdefine')(module); } define([ 'mout/object/hasOwn', 'mout/array/insert', './Class' ], function AbstractClassWrapper( hasOwn, insert, Class ) { 'use strict'; var $abstract = '$abstract', $class...
/* $OpenBSD: dhclient.c,v 1.63 2005/02/06 17:10:13 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 1995, 1996, 1997, 1998, 1999 * The Internet Software Consortium. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ...
mycallback( {"ELECTION CODE": "", "EXPENDITURE PURPOSE DESCRIP": "FEA PAYROLL TAXES", "BENEFICIARY CANDIDATE OFFICE": "", "PAYEE ZIP": "722231712", "MEMO CODE": "", "PAYEE STATE": "AR", "PAYEE LAST NAME": "", "PAYEE CITY": "Little Rock", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "", "PAYEE FIRST N...
/** * Created by Mordekaiser on 16/06/16. */ var mongoose = require('mongoose'), userModel = require('../models/User'); module.exports = function (config) { mongoose.connect(config.db); var db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error...')); db.once('ope...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
// prefer default export if available const preferDefault = m => m && m.default || m exports.components = { "component---cache-dev-404-page-js": () => import("/home/tuancr/Documents/Project/agiletech/SunPro/web-app/.cache/dev-404-page.js" /* webpackChunkName: "component---cache-dev-404-page-js" */), "component---s...
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
import os import yaml import time import shutil import torch import random import argparse import numpy as np from torch.utils import data from tqdm import tqdm from ptsemseg.models import get_model from ptsemseg.loss import get_loss_function from ptsemseg.loader import get_loader from ptsemseg.utils import get_logge...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the 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. import torch import torch.nn.funct...
/* Language: Scala Author: Jan Berkel <jan.berkel@gmail.com> */ function(hljs) { var ANNOTATION = { className: 'annotation', begin: '@[A-Za-z]+' }; var STRING = { className: 'string', begin: 'u?r?"""', end: '"""', relevance: 10 }; return { keywords: 'type yield lazy override def wit...
# -*- coding: utf-8 -*- # # Copyright 2021 Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complian...
const Validator = require('validator'); const isEmpty = require('./is-empty'); module.exports = function validateProfileInput(data) { let errors = {}; return { errors, isValid: isEmpty(errors) }; };
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=20 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode def make_circuit(n: int, input_qubit): c = cirq.Ci...
class NamedDict: # pylint: disable=too-many-instance-attributes def __init__(self, keys = None): if keys is not None: for key in keys: setattr(self, key, None) def __setitem__(self, key, value): setattr(self, key, value) def __getitem__(self, key): ...
function checkPositive(arr) { return arr.every(elem => elem >= 0); } checkPositive([1, 2, 3, -4, 5]);