text
stringlengths
3
1.05M
export { default as default } from 'social-components/commonjs/utility/unescapeContent'
import cProfile import gym import gym_sokoban import time import argparse parser = argparse.ArgumentParser(description='Run environment with random selected actions.') parser.add_argument('--rounds', '-r', metavar='rounds', type=int, help='number of rounds to play (default: 20)', default=20) parser...
let ship; let aliens = []; let fire = []; let n_aliens = 10; // number of aliens per line let n_aliens_lines = 4; // number of lines let space_aliens = 50; // space between aliens in px let space_lines = 25; // space between lines in px let current_score = 0; let current_live = 2; // set current live let...
$(function(){ // $('.tab-1').click(function(){ // $(this).addClass('active'); // $('.tab-2').removeClass('active'); // $('.tab-3').removeClass('active'); // $('.tab-4').removeClass('active'); // $('.tab-tb-1').show(); // $('.tab-tb-2').hide(); // $('.t...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/bigtable_admin_v2/proto/bigtable_instance_admin.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection fro...
import { ColumnView } from '../scene/view/column.view'; import { TemplatePath } from '../template/template.path'; import { ColumnModel } from './column.model'; TemplatePath.register('row-expand-cell', (template, column) => ({ model: template.for, resource: column.key, })); export class RowExpandColumnModel extend...
import React, {Component} from 'react'; import updatePlates from '../actions/updatePlates' import { connect } from 'react-redux'; import deletePlates from '../actions/deletePlates' import uploadImg from '../actions/uploadImg' import Form from 'react-bootstrap/Form'; import Button from 'react-bootstrap/Button'; import ...
import React from "react"; import { BrowserRouter, Route, Switch } from "react-router-dom"; import Logon from "./pages/Logon"; import Register from "./pages/Register"; import Profile from "./pages/Profile"; import NewIncident from "./pages/NewIncident"; function Routes() { return ( <BrowserRouter> <Switch...
# -*- coding=UTF-8 -*- # pyright: strict # spell-checker: words IDYES from __future__ import annotations import http.client import urllib.request import webbrowser from typing import Text, Tuple import cast_unknown as cast import win32con from . import window from .__version__ import VERSION _VERSION_URL = "https:...
from django.db import models from django.conf import settings try: from django_extensions.db.fields.encrypted import EncryptedTextField, EncryptedCharField if not hasattr(settings, 'ENCRYPTED_FIELD_KEYS_DIR'): raise ImportError except ImportError: class EncryptedCharField(object): def __ini...
#!/usr/bin/env python # coding: utf-8 # In[2]: import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split import warnings import pickle warnings.filterwarnings("ignore") df=pd.read_csv("C:\\Users\\ankit\\Documents\\Project Files\\lapt...
import os import sys import numpy as np import pandas as pd import pybedtools import re import pyBigWig as pbw import time import urllib.request import matplotlib.pyplot as plt import gzip import shutil imputed_urls_path="../configs/Imputed_urls.txt" observed_urls_path="../configs/Observed_urls.txt" output_path="/Us...
/** * setup.js * Stripe Payments Demo. Created by Romain Huet (@romainhuet) * and Thorsten Schaeff (@thorwebdev). * * This is a one-time setup script for your server. It creates a set of fixtures, * namely products and SKUs, that are used to create a random basket session. */ 'use strict'; const config = requi...
import React from "react"; import config from "../utils/config"; import Seo from "../components/Seo"; import Layout from "../components/Layout"; import HomeHero from "../components/HomeHero"; import ServiceItem from "../components/ServiceItem"; import ReachUs from "../components/ReachUs"; import Features from "../comp...
import functools from flask import abort, redirect, render_template, request, url_for from CTFd.constants.config import ( AccountVisibilityTypes, ChallengeVisibilityTypes, ConfigTypes, RegistrationVisibilityTypes, ScoreVisibilityTypes, ) from CTFd.utils import get_config from CTFd.utils.user impor...
# Copyright 2020 The DDSP 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 wri...
/* orconfig.h. Generated from orconfig.h.in by configure. */ /* orconfig.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ /* #undef AC_APPLE_UNIVERSAL_BUILD */ /* tor's build directory */ #define BUILDDIR "/Users/jrg/Desktop/Autres/Tor/iOS-OnionBrowser...
import time import environments.robobo_gym.robobo_env as robobo_env env = robobo_env.RoboboEnv(renders=False, is_discrete=True, log_folder="robobo_real_2", record_data=True) timesteps = 500 # must be greater than MAX_STEPS episodes = 20 env.seed(1) i = 0 print('Starting episodes...') start_time = time.time() try: ...
from google.cloud import storage import logging import datetime logger = logging.getLogger() logger.setLevel(logging.DEBUG) def newly_uploaded_blobs( STORAGE_CLIENT, SRC_BUCKET, DEST_BUCKET, PARENT_FOLDER, depth ): filehandler = logging.FileHandler('/tmp/newly_uploaded.log') filehandler.s...
import sys def main(): for e in sys.path: print(" -", e) print(f"hello, world! This is {__file__}") try: import yaml print("I have YAML! and nothing to do with it.", yaml.__file__) except ImportError: print("Don't have YAML.") exit(0) if __name__ == "__main__"...
import time import sqlite3 import cv2 import os #give the system sometime to warm up time.sleep(0.2) # Read the video file / source cap = cv2.VideoCapture(0) dbname='../sensorData.db' # Set the counter #counter=0 sampleFreq = 5 # time in seconds # get data from pi cam def getCAMdata(): starttime=time.time() coun...
# Copyright Contributors to the OpenCue Project # # 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...
''' The MIT License (MIT) Copyright (c) 2016 Nordeus LLC 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, p...
#pragma once #include "../nodes/entity.h" #include "components_gizmo_3d.h" class TransformComponentGizmo : public ComponentGizmo { StringName transform_component_name = "TransformComponent"; public: virtual void init() override; virtual void redraw(EditorNode3DGizmo *p_gizmo) override; virtual int get_handle_cou...
// Copyright 2021 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 CHROME_BROWSER_UI_VIEWS_WEB_APPS_WEB_APP_IDENTITY_UPDATE_CONFIRMATION_VIEW_H_ #define CHROME_BROWSER_UI_VIEWS_WEB_APPS_WEB_APP_IDENTITY_UPDATE_CON...
#!/usr/bin/env pytest ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test /vsis3 # Author: Even Rouault <even dot rouault at spatialys dot com> # ############################################################################### # Copy...
import torch import torch.nn as nn from torch.autograd import Variable import math import numpy as np from pre_seq.gene_map2 import split_label def gaussian_kernel(t1, t2, sigma): return math.exp(-(float(t1 - t2) * (t1 - t2)) / (2 * self.sigma * self.sigma)) class MessagePassing(object): def __init__(self,...
#pragma once #include "string" #include "logger.h" #include "saitypes.h" #include "unordered_map" #include "dbconnector.h" #include "set" #include "orch.h" #include "crmorch.h" #include "routeorch.h" #include "nexthopgroupkey.h" #include "bulker.h" using namespace std; extern sai_object_id_t gSwitchId; extern CrmOr...
$(document).ready(function(){console.log("load ok"),$("#socialLink").on("click",function(){console.log("i see click"),$(".modalWrap").removeClass("close")}),$(".close").on("click",function(){$(".modalWrap").addClass("close")}),$(".colorLink").on("click",function(e){e.preventDefault();var s=$(this).css("background");$(t...
// if saturn isn't installed if (typeof web3 == 'undefined') { displayError( ` <div class="custom-computer only">To Use, Install an <a target="_blank" style="color: white; text-decoration: underline;" href="https://www.youtube.com/watch?v=TUD-w5P_uAA&feature=youtu.be">ETC Wallet</a></div> <...
import tempfile from contextlib import contextmanager import pytest from dagster.core.storage.runs import InMemoryRunStorage, SqliteRunStorage from dagster_tests.core_tests.storage_tests.utils.run_storage import TestRunStorage @contextmanager def create_sqlite_run_storage(): with tempfile.TemporaryDirectory() as...
import pygame NEXT = pygame.USEREVENT + 1 playlist = [ "Muzyka/efect/Shotgun 12 gauge sPAs-12 semi automatic single shot distant.mpeg", "Muzyka/efect/Shotgun blast shot_BLASTWAVEFX_31658.mp3", 'track_one.ogg', 'track_two.ogg', 'track_three.ogg', 'track_four.ogg', ] tracks_number = len(playlis...
//this is an action creator: just a function returns an action. Redux pushes this action around different reducers. //then reducer uses this function to produce a piece of state. export function selectBook(book){ //it needs to return an action, an object with a type property. return { type: 'BOOK_SELEC...
checkpoint_config = dict(interval=10) # yapf:disable log_config = dict( interval=5, hooks=[ dict(type='TextLoggerHook') # dict(type='TensorboardLoggerHook') ]) # yapf:enable dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] #...
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
import hasBindingUnderPath from './binding-under-path.js'; export default function ({template, traverse, types: t}) { const annotationRegex = /^@with(?:\s+exclude\s*:\s*(.+)|$)/; const buildParamDef = template(` STRING in REF ? REF.NAME : typeof NAME !== "undefined" ? NAME : undefi...
/** * @license * Copyright 2019 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import pickle import random from collections import defaultdict from copy import deepcopy import numpy as np import pydash as ps from gym import spaces from convlab.env.base import BaseEnv, ENV_DATA_NAMES, set_gym_space_attr # from co...
from nose.tools import raises import tvm import numpy as np def collect_visit(stmt, f): ret = [] tvm.ir_pass.PostOrderVisit(stmt, lambda x: ret.append(f(x))) return ret def lower(sch, args): binds = {} arg_list = [] for x in args: if isinstance(x, tvm.tensor.Tensor): buf = t...
from sorted_nearest.src.sorted_nearest import (nearest_previous_nonoverlapping, nearest_next_nonoverlapping, nearest_nonoverlapping) from sorted_nearest.src.k_nearest import k_nearest_previous_nonoverlapping, k_nearest_next_n...
import paho.mqtt.client as mqtt # remote REMOTE_MQTT_HOST = "54.69.37.72" REMOTE_MQTT_PORT = 1883 REMOTE_MQTT_TOPIC = "engagement" # local LOCAL_MQTT_HOST = "mosquitto" LOCAL_MQTT_PORT = 1883 LOCAL_MQTT_TOPIC = "jetson/report" # remote callback function def on_publish_remote(client, userdata, result): print("...
#!/usr/bin/env python ''' camera calibration for distorted images with chess board samples reads distorted images, calculates the calibration and write undistorted images ''' # Python 2/3 compatibility from __future__ import print_function import numpy as np import cv2 from tests_common import NewOpenCVTests class...
const { Schema, model } = require('mongoose'); const reactionSchema = require('./Reaction'); const dateFormat = require('../utils/dateFormat'); const thoughtSchema = new Schema( { thoughtText: { type: String, required: 'You must leave a Thought!', minlength: 1, ...
function Player() { this.play = function (checksum) { if (checksum == null || checksum == undefined) { return; } $.get("/music/" + checksum, function (data) { $('#song_player').html(data); }); } } $(function () { var player = new Player(); $(".s...
#!usr/bin/env python3 hostname = input("What value should we set for hostname? ") if hostname.lower() == "mtg": print("Hostname found to be MTG") print("Hostname matches expected config") #Always print this print ("Exiting the Script")
#### PATTERN | ES ################################################################################## # -*- coding: utf-8 -*- # Copyright (c) 2012 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern ############...
""" Collection of data structure examples """ from . import graph from . import heap from . import linked_list from . import queue from . import stack from . import tree from . import trie __all__ = ["graph", "heap", "linked_list", "queue", "stack", "tree", "trie"]
import numpy as np from .vec_env import VecEnv from .util import copy_obs_dict, dict_to_obs, obs_space_info from collections.abc import Iterable class DummyVecEnv(VecEnv): """ VecEnv that does runs multiple environments sequentially, that is, the step and reset commands are send to one environment at a tim...
# coding=utf-8 # Copyright (c) 2016 The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. See the LICENSE file for details. from datetime import datetime, time, timedelta from fixture import DataSet from tests.fixtures....
# -*- coding: utf-8 -*- #The MIT License (MIT) # #Copyright (c) 2014 Franco Correa # #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 rig...
function postMessageHandler(event) { let origin = event.origin.toLowerCase(); console.log(origin) // BAD: the origin property is not checked eval(event.data); } window.addEventListener('message', postMessageHandler, false);
tableData=[['apple','ban','cat','dog'], ['effects','function','game','hello'], ['ill','jack','king','lock']] # table_dict={} # # for i in range(len(tableData)): # for j in range(len(tableData[i])): # if str(j) in table_dict.keys(): # table_dict[str(j)]+=' '+tableData[i][j]...
from django.urls import path from .views import RecruiterHomeView app_name = 'recruiters' urlpatterns = [ path('home/', RecruiterHomeView.as_view(), name='home'), ]
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" const IndexPage = () => ( <Layout> <h1>Hi 👋🏼</h1> <p>Welcome to the community of Lisbon Longboarders! We're hosting a meetup every t...
# include <kernel/kernel.h> # include <kernel/rsrc.h> # include <type.h> # include <status.h> object rsrcd; /* resource manager */ mapping resources; /* registered resources */ string owner; /* owner of these resources */ int maxticks; /* maximum amount of ticks currently allowed */ /* * NAME: create() * DESCRIP...
#ifndef BITCOIN_CHAINPARAMSSEEDS_H #define BITCOIN_CHAINPARAMSSEEDS_H /** * List of fixed seed nodes for the bitcoin network * AUTOGENERATED by contrib/seeds/generate-seeds.py * * Each line contains a 16-byte IPv6 address and a port. * IPv4 as well as onion addresses are wrapped inside a IPv6 address accordingly. ...
import wx, weakref import wx.lib.agw.flatnotebook as FNB from .wxconsole import WxConsole class ConsoleBook(FNB.FlatNotebook): def __init__(self, *args, **keys): super().__init__(*args, size = (300, 200), agwStyle=0x200|0x8) renderer = self._pages._mgr.GetRenderer(0x200|0x8) renderer.GetButtonsAreaLength = lam...
(function() { "use strict"; load("jstests/libs/parallel_shell_helpers.js"); load("jstests/libs/wait_for_command.js"); const dbName = "test"; const collName = "ensure_index_no_conflicts"; const testDB = db.getSiblingDB(dbName); testDB.dropDatabase(); assert.commandWorked(testDB.createCollection(collName)); const testCol...
/** * @param {string} s * @return {boolean} */ var isValid = function (s) { const arr = []; const map = { '(': ')', '{': '}', '[': ']' }; for (let i = 0; i < s.length; i++) { if (map[s[i]]) { arr.push(s[i]); } else if (s[i] !== map[arr.pop()...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Celestial.framework/Celestial */ @interface BWCameraParameters : NSObject { NSDictionary * _cameraTuningParameters; } @property (nonatomic, readonly) NSDictionary *cameraTuningParameters; + (void)initialize; + (id)sharedInstance; - (id)...
import itertools import operator import unittest from functools import reduce, lru_cache from pytoolz.tools import apply, merge, assoc, dissoc, merge_with, \ merge_with_default, assoc_in, update_in, terminal_dict, \ windows, append, explode, conj, first, nth, rest, reductions, take, \ iterate, drop, get, D...
import pygame from math import degrees, atan2, radians, cos, sin class Enemy: def __init__(self, position): self.unAlteredImage = pygame.Surface([25, 25]) self.unAlteredImage.fill((1, 1, 1)) pygame.draw.rect(self.unAlteredImage, [255, 0, 0], [0, 0, 25, 25], 1) self.imageForDrawing ...
/** * Productivity feature: queries for untagged occurences of a phrase, and automatically * prompts the user to re-apply the current annotation. */ define([ 'common/utils/annotationUtils', 'common/config' ], function(AnnotationUtils, Config) { var TEXT = 3, // HTML text node type // From https://stack...
# Copyright (c) 2020, NVIDIA CORPORATION. import os import shlex import subprocess import time from contextlib import contextmanager from io import BytesIO import numpy as np import pandas as pd import pyarrow as pa import pyarrow.fs as pa_fs import pyarrow.orc import pytest from fsspec.core import get_fs_token_paths...
import asyncio import unittest from unittest import mock import requests from bonobo.config import Service from pyfiles import storages from terra_bonobo_nodes import pyfiles as pyfiles_terra class Test_TestPyfiles_PyfilesExtract(unittest.TestCase): async def a_coroutine(self): return {"url": "whatever"...
FullCalendar.globalLocales.push(function () { 'use strict'; var arTn = { code: 'ar-tn', week: { dow: 1, // Monday is the first day of the week. doy: 4, // The week that contains Jan 4th is the first week of the year. }, direction: 'rtl', buttonText: { prev: 'السابق', nex...
var abi = { AFCToken: [ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address"...
########################### Map dose ################### import Globals import tkinter as tk from tkinter import filedialog, INSERT, DISABLED, messagebox, NORMAL, simpledialog,\ PhotoImage, BOTH, Canvas, N, S, W, E, ALL, Frame, SUNKEN, Radiobutton, GROOVE import os from os.path import normpath, basename import cv2...
///////////////////////////////////////////////////////////////////////////// // //! @file mip_sdk_3dm.c //! @author Nathan Miller //! @version 1.0 // //! @description MIP 3DM Descriptor Set Definition File // // External dependencies: // // mip.h // //! @copyright 2011 Microstrain. // //!@section...
pbjsChunk([108],{274:function(e,o,n){e.exports=n(275)},275:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var i=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},r="function"==t...
/* * DLCI Implementation of Frame Relay protocol for Linux, according to * RFC 1490. This generic device provides en/decapsulation for an * underlying hardware driver. Routes & IPs are assigned to these * interfaces. Requires 'dlcicfg' program to create usable * interfaces, the initial one, 'dlci' is for ...
#!/usr/bin/env/ python3 #Faça um Programa que converta metros para centímetros. metros=int(input('Digite o valor em metros: ')) cm=metros * 100 print('O valor em cm é:%i' %cm)
// PrePublish.js // // Perform ${ variable } substitution in an arbitrary text file // // Invoked by vscode: prepublish script reference in package.json // Facilitates consistent application of theme colors // Allows semantic naming of values // // To create custom themes, // Create a theme template - this can be a t...
# The aim of this file is to clarify the server code import os import logging import pymongo import logging import datetime import shutil from model.user import User from model.daouser import DAOUser # Metadata VERSION = '5.0' server_info = {} server_info['version'] = VERSION server_info['status_code'] = 200 ...
var checkedPassword = function(event) { var password = $('#register-form input[name="password"]').val(), $confirmedPassword = $('#register-form input[name="confirmedPassword"]'), confirmedPassword = $confirmedPassword.val(); if(password !== confirmedPassword){ event.preventDefault(); ...
import os import subprocess import sys import tarfile import zipfile import pytest from pdm.cli import actions from pdm.utils import temp_environ def get_tarball_names(path): with tarfile.open(path, "r:gz") as tar: return tar.getnames() def get_wheel_names(path): with zipfile.ZipFile(path) as zf: ...
/* istanbul instrument in package npmtest_livephotoskit */ /*jslint bitwise: true, browser: true, maxerr: 8, maxlen: 96, node: true, nomen: true, regexp: true, stupid: true */ (function () { 'use strict'; var local; // run shared js-env code - init-before (function () ...
import tensorflow as tf # LSTM Encoder-decoder Autoencoder model functions def create_LSTM_stack(lstm_hidden_units, lstm_dropout_output_keep_probs): """Create LSTM stacked cells. Given list of LSTM hidden units and list of LSTM dropout output keep probabilities. Args: lstm_hidden_units: List of integers...
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2014-09-23 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
from mesa import Model from mesa.time import SimultaneousActivation from mesa.space import HexGrid from hex_snowflake.cell import Cell class HexSnowflake(Model): """ Represents the hex grid of cells. The grid is represented by a 2-dimensional array of cells with adjacency rules specific to hexagons. """ ...
from flask import jsonify class Json: def to_json(self): return jsonify(self.__dict__) class SuccessMessage(Json): def __init__(self, message, **kwargs): self.ok = True self.message = message for key in kwargs: self.__dict__[key] = kwargs[key] class ErrorMessage...
'use strict'; var _ = require( '../utils' ); var Object3D = require( '../object3d' ); var Geometry = require( '../geometry/geometry' ); var geometry = new Geometry().push([ -0.5, -0.5, 0, 0.5, -0.5, 0, 0.5, 0.5, 0 ], [] ); function Sprite( material ) { Object3D.call( this ); this.geometry = geometry; th...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const TerserPlugin = require('terser-webpack-plu...
import os import json from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail import asyncio # TODO # Make mail async class Dove: def __init__(self): self.__key = "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" def send_code_signup(self, to_email, user_na...
import gearman gearman_hostports = [('gearman01', 4730), ('gearman02', 4730)] gearman_connections = {} for hostport in gearman_hostports: gearman_connections[hostport] = gearman.GearmanAdminClient([hostport]) def get_info_from_gearman(): server_infos = [] for hostport in gearman_hostports: server...
'''ResNeXt in PyTorch. See the paper "Aggregated Residual Transformations for Deep Neural Networks" for more details. ''' import torch import torch.nn as nn import torch.nn.functional as F class Block(nn.Module): '''Grouped convolution block.''' expansion = 2 def __init__(self, in_planes, cardinality=32...
import math import time import serial import codecs class OSRBoxWrapper: ''' Class constructor. Initializes a few importants variables. @param string port The port to connect to @param int baudrate The baudrate ~= the speed at which the communication will take place ''' d...
var MAPS={};MAPS.dark=[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon",...
__author__ = 'rolevin' import os from typing import List, Optional, Tuple from mmlspark.cyber.anomaly.complement_access import ComplementAccessTransformer from mmlspark.cyber.feature import indexers, scalers from mmlspark.cyber.utils import spark_utils import numpy as np from pyspark import SQLContext # noqa from ...
"""Policy framework for the email package. Allows fine grained feature control of how the package parses and emits data. """ import abc from email import header from email import charset as _charset from email.utils import _has_surrogates __all__ = [ 'Policy', 'Compat32', 'compat32', ] class _Polic...
#!/usr/bin/python3 """ remove invisible text from .html files by inspecting <div>s with display:none css style """ import sys import os import io def clean_visibility( folder, fileName ): print(fileName) fin = open( folder + fileName, encoding='utf-8' ) fout = open( folder + 'clean/' + fileName, 'w', en...
#!/usr/bin/env python # -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2015, IBM Corp. # All rights reserved. # # Distributed under the terms of the BSD Simplified License. # # The full license is in the LICENSE file, distributed with this software. ...
import uuid from django.db import models from resource_types import DATABASE_RESOURCE_TYPES class AbstractResource(models.Model): ''' This is the base class which holds common fields for both the user-owned `Resource` model and the user-independent `OperationResource` model. ''' # Resource inst...
/* Modifications for HTML parser support: * Copyright (c) 2011 Simon Grätzer simon@graetzer.org * * Copyright (c) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
/** * Localization strings for the UI Multiselect widget * * @locale de, de-DE, de-AT, de-CH */ $.extend($.ui.multiselect.locale, { addAll:'Alle hinzufügen', removeAll:'Alle entfernen', itemsCount:'Einträge ausgewählt' });
"""The tests for the IMAP email content sensor platform.""" from collections import deque import email from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import datetime from threading import Event import unittest from homeassistant.helpers.template import Template from homeassistant.h...
from flask import Flask, render_template, request import jsonify import requests import pickle import numpy as np import sklearn from sklearn.preprocessing import StandardScaler app = Flask(__name__) model = pickle.load(open('random_forest_regression_model.pkl', 'rb')) @app.route('/',methods=['GET']) def Home...
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (beto@coresecurity.com) # # Description: # RFC 449...
var searchData= [ ['ungetc_5fbuf_5fsize_966',['UNGETC_BUF_SIZE',['../_stdio_stream_8h.html#a785dd413c0d7b05f95df82d3453ecacd',1,'StdioStream.h']]], ['uppercase_967',['uppercase',['../classios__base.html#ade3db1fe3249e87f4c47a9a8916793d9',1,'ios_base']]] ];
(window.webpackJsonp=window.webpackJsonp||[]).push([[965],{1504:function(n,w,o){}}]);