text
stringlengths
3
1.05M
import re from torch.utils import model_zoo from torchvision.models.densenet import DenseNet, model_urls as densenet_urls from mtdp.components import FeaturesInterface from mtdp.models._util import load_dox_url, clean_state_dict MTDP_URLS = { "densenet121": ("https://dox.uliege.be/index.php/s/G72InP4xmJvOrVp/down...
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
# first task # describe car properties and change it under initialization # car_color = "red" # car_model = "audi a6" # car_year = 2013 # car_count_of_doors = 4 # # print(car_color) # print(car_model) # print(car_year) # print(car_count_of_doors) # # car_color = "blue" # print(car_color) # second task # calculate av...
import json import logging import random import re from datetime import datetime, timedelta import pkg_resources # part of setuptools from pistonapi.steemnoderpc import SteemNodeRPC, NoAccessApi from pistonbase import memo from pistonbase import operations from pistonbase.account import PrivateKey, PublicKey from .a...
define({"topics":[{"title":"Setting up Touchpoint MT for an Org (touchpont-config.xml)","href":"v7\/configuringv7features\/TouchpointMt\/setting_up_touchpoint_MT_org.html","attributes":{"data-id":"setting-up-touchpoint-mt-for-an-org-touchpont-configxml"},"menu":{"hasChildren":false},"tocID":"setting-up-touchpoint-mt-fo...
# Aula 14 - Desafio 57: Validaçao de dados # Ler o sexo de uma pessoa, mas soh aceitar valores 'M' ou 'F'. # Caso esteja errado a digitaçao, pedir pra digitar novamente ate ter o valor correto. loop = True while loop: sexo = input('Informe seu sexo [M/F]: ').lower().strip()[0] # pega so o 1º caracter if sexo ...
angular.module('ovh-api-services').service('OvhApiEmailExchangeServiceAapi', ($resource) => $resource('/sws/exchange/:organization/:exchange', { organization: '@organization', exchange: '@exchange', }, { get: { serviceType: 'aapi', }, }));
module.exports = { className: 'sg-view-scroll-container', id: 'sg-code-container', dangerouslySetInnerHTML: { __html: ` <div id="sg-code-pattern-info"> <p> <span id="sg-code-pattern-info-pattern-name" class="sg-code-pattern-name"></span> <code id="sg-code-pattern-info-rel-path" title="${t('Click to ...
/* @flow strict */ import styles from './styles.module.scss'; import * as React from 'react'; import { CN } from '../../../lib/string'; type Props = {| className?: string, children: React.Node, |}; export function CardFooter(props: Props) { return ( <div className={CN(styles.CardFooter, props.className)}>...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack Foundation # Copyright 2012 Justin Santa Barbara # # 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 # # h...
# -*- Python -*- # Return the options to use for a C++ library or binary build. # Uses the ":optmode" config_setting to pick the options. load( "//tensorflow/core:platform/default/build_config_root.bzl", "if_dynamic_kernels", "if_static", "tf_additional_grpc_deps_py", "tf_additional_xla_deps_py", ...
from os.path import dirname, realpath from pathlib import Path from string import Template from typing import Optional, cast from yaml import load try: from yaml import CLoader as Loader except ImportError: # pragma: no cover from yaml import Loader # type: ignore PACKAGE_ROOT = Path(dirname(realpath(__fil...
""" MIT License Copyright (c) 2020 XroixHD 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, distr...
var settings = { "index": { "similarity": { "peliasDefaultSimilarity": { "type": "BM25", "k1": 1.2, "b": 0.75 } } }, "analysis": { "tokenizer": { "peliasNameTokenizer": { "type": "pattern", "pattern": "[\\s,/\\\\-]+"...
/** * Determine if the thing is not undefined and not null. * * @param {*} thing The thing to test * @returns {boolean} True if the thing is not undefined and not null. */ export function existy(thing) { return thing !== void 0 && thing !== null; } /** * Is this a function? * * @param {*} x The variable to t...
const router = require("express").Router(); const path = require("path"); //create new workout form router.get("/exercise", function (req, res) { res.sendFile(path.join(__dirname, "../public/exercise.html")) }); //work out tracker router.get("/stats", (req, res) => { res.sendFile(path.join(__dirname, "../publ...
const express = require('express'); const helmet = require('helmet'); const cors = require('cors'); const bcrypt = require('bcryptjs'); const db = require('./database/dbConfig.js'); const Users = require('./users/users-model.js'); const server = express(); server.use(helmet()); server.use(express.json()); server.use...
import math from collections import OrderedDict from django import template from django.conf import settings from django.core.cache import cache from ..models import Sponsorship, SponsorshipPackage, TieredQuantityConfiguration from sponsors.models.enums import PublisherChoices, LogoPlacementChoices register = templ...
# Copyright 2020 The Lucent 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 ...
// Knockout JavaScript library v2.1.0 // (c) Steven Sanderson - http://knockoutjs.com/ // License: MIT (http://www.opensource.org/licenses/mit-license.php) (function(window,document,navigator,undefined){ var DEBUG=true; !function(factory) { // Support three module loading scenarios if (typeof require === 'func...
/** * Copyright (c) 2015-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. */ #import <F...
import functools from pathlib import Path import importlib from typing import List class handles: @staticmethod def get(*args): return handles.many(['GET', *args]) @staticmethod def post(*args): return handles.many(['POST', *args]) @staticmethod def delete(*args): ret...
################################################################################ # BSD LICENSE # # Copyright(c) 2019 Intel Corporation. All rights reserved. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ...
import torch from torch_scatter import scatter_max class LocalCartesian(object): r"""Saves the relative Cartesian coordinates of linked nodes in its edge attributes. Each coordinate gets *neighborhood-normalized* to the interval :math:`{[0, 1]}^D`. Args: cat (bool, optional): If set to :obj:`...
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.b (the "License"); # you may not use this file except in compliance with the License. # """COMMAND : .direct""" from os import popen import re import urllib.parse import json from random import choice impor...
""" This script is used to create the HDF5 training and validation dataset files. """ import sys sys.path.append('..') import os import json import pickle import h5py import numpy as np from collections import Counter import pandas as pd from gensim import corpora from gensim.models.doc2vec import Doc2Vec, TaggedDocume...
#!/usr/bin/env python # coding: utf-8 """ Copyright 2015 SYSTRAN Software, 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/licen...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "X2AP-PDU-Contents" * found in "/home/lixh/ue_folder/openair2/X2AP/MESSAGES/ASN1/R14/x2ap-14.6.0.asn1" * `asn1c -pdu=all -fcompound-names -gen-PER -no-gen-OER -no-gen-example -fno-include-deps -D /home/lixh/ue_folder/cmake_targets/lte_b...
import React, { useState, useEffect } from "react"; import PropTypes from "prop-types"; import AuthUserContext from "./context"; import { withFirebase } from "../index"; function withAuthentication(Component) { WithAuthentication.propTypes = { firebase: PropTypes.shape({ auth: PropTypes.func.isRequired ...
#!/usr/bin/env python import rospy from modbus_ascii_ros.msg import Pwm from geometry_msgs.msg import Twist from geometry_msgs.msg import TwistWithCovarianceStamped from sensor_msgs.msg import Joy from numpy import * import LookUpPWM as lup """ t = [t0, t1, t2, t3, t4, t5, t6, t7] F = [Fx, Fy, Fz, Mx, My, Mz] """ pw...
define([], function() { var strings = { "_FmFyAWZ1md7Z1R+V8t2S2Q": { "errorLoadingDebugScriptHTTPS": "Παρουσιάστηκε σφάλμα κατά τη φόρτωση της δέσμης ενεργειών εντοπισμού σφαλμάτων. Βεβαιωθείτε ότι ο διακομιστής λειτουργεί και ότι η διεύθυνση URL της παραμέτρου \"{0}\" είναι σωστή.", "errorLoadingDebu...
var semihosting_8h = [ [ "AngelSWI", "semihosting_8h.html#a52405d1acc07639f9f6cb1693d5437e0", null ], [ "AngelSWI_ARM", "semihosting_8h.html#a799889dbbe0f2a2ba0fd045ab9155c0d", null ], [ "AngelSWIAsm", "semihosting_8h.html#ad6e808da9f5f2ccdc14571bb3be30030", null ], [ "AngelSWIInsn", "semihosting_8h.htm...
import React, { PureComponent } from "react"; class Counter extends PureComponent { state = { count: 0, name: "Maurice" }; onClick = () => { // this.setState({ // count: this.state.count + 1 // }); // this.setState({ // count: this.state.count + 1 // }); this.setState(function(stat...
#!/usr/bin/env python3 from core.vt import VTHunter vt = VTHunter() # vt.pull_vt_feed() # vt.vt_mass_query(5850533070503936, "19a6e53ab4f20f52e52b25b3d4f1d8e10355e1e4dc672f23b4215462525c7adc") vt.run_analysis('19a6e53ab4f20f52e52b25b3d4f1d8e10355e1e4dc672f23b4215462525c7adc')
describe('Ghosthawk', function() { integration(function() { describe('Ghostform\'s ability', function() { beforeEach(function() { this.setupTest({ player1: { house: 'untamed', inPlay: ['troll', 'dew-faerie'], ...
import React, { useState,useEffect} from 'react'; import {useHistory } from "react-router-dom"; import axios from 'axios'; import './Style/dashboard.css'; function EditQuestion() { const history = useHistory(); const [question, setQuestion] = useState(); const [correctAnswer, setCorrectAnswer] = useState(); co...
from django.db import connections, DEFAULT_DB_ALIAS from django.db.models import Prefetch from django.test.utils import CaptureQueriesContext def assert_query_equality(left_query, right_query): assert str(left_query.query) == str(right_query.query) assert len(left_query._prefetch_related_lookups) == len(right...
from torch import optim class BasePatch(object): """ Default parameters for all config files. """ def __init__(self): """ Set the defaults. """ self.img_dir = "./FDDB/Train/mtcnn_train_images_filtered/" self.lab_dir = "./FDDB/Train/mtcnn_train_labels_filtered/"...
import os.path as osp from basicsr.train import train_pipeline import archs # noqa: F401 import data # noqa: F401 import models # noqa: F401 if __name__ == '__main__': root_path = osp.abspath(osp.join(__file__, osp.pardir)) train_pipeline(root_path)
require('total.js'); RESTBuilder.make(function(builder) { builder.url('http://localhost:3000/verify'); builder.json({ url: 'https://www.facebook.com/vjednotejesila.sk/photos/a.1666881853639381.1073741828.1661484914179075/1798035663857332/?type=3&comment_id=1800640410263524&comment_tracking=%7B%22tn%22%3A%22R%22%7D...
from django.http import Http404 from django.shortcuts import get_object_or_404 from django_filters.rest_framework import DjangoFilterBackend from rest_framework import filters, generics, mixins, status, viewsets from rest_framework.exceptions import ValidationError from rest_framework.permissions import (IsAuthenticate...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0003_auto_20140926_2347'), ] operations = [ migrations.CreateModel( name...
#!/usr/bin/env python """Ninja toolchain abstraction for Clang compiler suite""" import os import subprocess import toolchain class ClangToolchain(toolchain.Toolchain): def initialize(self, project, archs, configs, includepaths, dependlibs, libpaths, variables, subninja): #Local variable defaults self.to...
(function () { 'use strict'; // Configuring Dropzone Dropzone.autoDiscover = false; var token = $('meta[name="csrf-token"]').attr('content'); $('#dropzone-gallery').dropzone({ url: '/upload/gallery', acceptedFiles: 'image/*', maxFileSize: 10, // MB addRemoveLinks: t...
#!/usr/bin/env python3 import fileinput import re import subprocess import sys PKG_RE = \ re.compile( r'([a-zA-Z]+[0-9]*(?:-[a-zA-Z]+[0-9]*)*)' # naked package name r'(?:-(?:[0-9](?:\.[0-9])+))?') # possible package version PKG_DEPS_RE = \ re.compile( r'([a-zA-Z]+[0-9]*(?:-[a-zA-Z]+[0-9]*)...
/* Copyright (C) 1995-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Ulrich Drepper <drepper@cygnus.com>, 1995. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by th...
/*! *Author: Du Wei *Repository: https://github.com/hezedu/sas *Released: MIT */ var realType = Object.prototype.toString; // sas(tasks); // sas(tasks, end); // sas(tasks, opts); // sas(tasks, iterator, end); // sas(tasks, opts, end); function sas(tasks, opts, end) { var iterator; if (typeof opts !== 'objec...
from tqdm import tqdm import network import utils import os import random import argparse import numpy as np from torch.utils import data from datasets import VOCSegmentation, Cityscapes, WeedClusterDataset, CloudShadowDataset, DoublePlantDataset, PlanterSkipDataset, StandingWaterDataset, WaterwayDataset from utils im...
def tensor_creation(Z): """A function that creates various tensors. Args: Z (numpy.ndarray): An array of shape Returns: A : 20 by 21 tensor consisting of ones B : a tensor with elements equal to the elements of numpy array Z C : a tensor with the same number of elements as A but with values ∼U...
import nanoTimer from 'nanotimer'; class Delay { constructor(fn, time, killPrevious = false) { this.fn = fn; this.time = time; this.killPrevious = killPrevious; this.timer = new nanoTimer(); } async run() { if (this.killPrevious) { this.kill(); } const result = await new Prom...
import numpy as np import torch import torch.nn.functional as F import os import importlib import time from PIL import Image from argparse import ArgumentParser from torch.autograd import Variable from torch.utils.data import DataLoader from torchvision.transforms import Compose, CenterCrop, Normalize, Resize from to...
# coding: utf-8 import pprint import re import six class ListSubCustomersRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the ...
import React from "react"; import styled from "react-emotion"; import theme from "../../utils/theme"; import mq from "../../utils/breakpoints"; import { css } from "emotion"; import ContentContainer from "../../ui/content-container"; import background from "./assets/gray-bg-with-bg.svg"; import quoteImg from "./assets...
from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from .serializers import EntrySerializer from .models import Entry from companies.models import Company from products.models import Product @api_view([...
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
const Route = require('lib/router/route') const lov = require('lov') const slugify = require('underscore.string/slugify') const {Role} = require('models') module.exports = new Route({ method: 'post', path: '/:uuid', validator: lov.object().keys({ name: lov.string().required() }), handler: async function...
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_Minute'] , ['MLP'] );
# -*- 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...
''' MIT License Copyright (c) 2020 Rashid Lafraie 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...
const numeros = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; for (x in numeros) { if (x == 5){ break; } console.log(`${x} = ${numeros[x]}`); } for (y in numeros) { if (y == 5){ continue; } console.log(`${y} = ${numeros[y]}`); } externo: for (a in numeros) { for (b in numeros) { ...
# # PySNMP MIB module Dell-rldot1q-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Dell-rldot1q-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:43:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
const express = require("express"); const bodyParser = require("body-parser"); const cors = require("cors"); const { ObjectId, ObjectID } = require("bson"); const app = express(); var MongoClient = require('mongodb').MongoClient app.use(cors()); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ ex...
import pytest from flaskbb.user.models import User, Guest @pytest.fixture def guest(): """Return a guest (not logged in) user.""" return Guest() @pytest.fixture def user(default_groups): """Creates a user with normal permissions.""" user = User(username="test_normal", email="test_normal@example.org"...
/* @generated */ // prettier-ignore if (Intl.DateTimeFormat && typeof Intl.DateTimeFormat.__addLocaleData === 'function') { Intl.DateTimeFormat.__addLocaleData({"data":{"am":"AM","pm":"PM","weekday":{"narrow":["S","M","T","W","T","F","S"],"short":["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"],"long":["اتو...
!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=J.type(t);...
'use strict'; var _ = require('lodash'); var BufferUtil = require('./util/buffer'); var JSUtil = require('./util/js'); var networks = []; var networkMaps = {}; /** * A network is merely a map containing values that correspond to version * numbers for each bitcoin network. Currently only supporting "livenet" * (a.k...
#!/usr/bin/env python # # # Basic definitions and constants. This file can be modified to aid portability # to different machines/setups (i.e. changing search paths). from pathlib import Path ############################################################## ROOT_DIR = Path(__file__).parents[1].absolute().as_posix() #...
'use strict'; import { parse, stringify } from 'qs'; import urlParser from './urlParser'; const omitEmptyParams = (params) => { const newObject = {}; Object.entries(params).forEach(([key, value]) => { if (key !== '' && Utils.isPresent(key) && value !== '' && Utils.isPresent(value)) { ...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
from autofield import *
/******************************************************************************* * Copyright (C) 2009 - Ikaro Games www.ikarogames.com * * * * This program is free software; you can redistribute it and/or ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
/*! 4.2.1 */ !function(){function a(a,b){window.XMLHttpRequest.prototype[a]=b(window.XMLHttpRequest.prototype[a])}function b(a,b,c){try{Object.defineProperty(a,b,{get:c})}catch(d){}}function c(a){return"input"===a[0].tagName.toLowerCase()&&a.attr("type")&&"file"===a.attr("type").toLowerCase()}var d=function(){try{var a...
import sys import etcd import traceback from log import get_logger logger = get_logger(__name__, '/var/log/etcd_watcher.log') class EtcdClient(object): def __init__(self): self.hostname = get_hostname() self.connect() self.ttl = 60 self.store_dir = '/etcd_watcher' self.mas...
/** * MSX SDK * MSX SDK client. * * The version of the OpenAPI document: 1.0.8 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function...
// Copyright 2010 The Emscripten Authors. All rights reserved. // Emscripten is available under two separate licenses, the MIT license and the // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. // // Various compiling-to-JS parameters. These are simply variab...
const { readdirSync } = require("fs"); const ascii = require("ascii-table"); let table = new ascii("Commands"); table.setHeading("Command", "Load status"); module.exports = (client) => { readdirSync("./commands/").forEach(dir => { const commands = readdirSync(`./commands/${dir}/`).filter(file =>...
#!/usr/bin/env python """ Test module for clsvof with rans2p """ from builtins import range from builtins import object from proteus.iproteus import * from proteus import Comm comm = Comm.get() Profiling.logLevel=1 Profiling.verbose=True import os import numpy as np import tables import pytest from proteus import defau...
import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import global_en from '../resources/translations/en/global.json'; import global_es from '../resources/translations/es/global.json'; const resources = { en: { global: global_en, }, es: { global: global_es, }, }; ...
const BookingModel = require("../models/booking") const BaseService = require("./baseservice") class BookingService extends BaseService { model = BookingModel async findToday(options){ return this.model.find(options.filter).populate(options.populate).sort( { "createdAt": -1 } ); } ...
#include <stdlib.h> #include <string.h> #include <ctype.h> #include <sys/random.h> #include "esp_log.h" #include "esp_transport.h" #include "esp_transport_tcp.h" #include "esp_transport_ws.h" #include "esp_transport_utils.h" #include "transport_strcasestr.h" #include "mbedtls/base64.h" #include "mbedtls/sha1.h" stati...
import torch import torch.nn as nn import torch.nn.functional as F OPS = { 'avg_pool_3x3': lambda C: Pool("avg", C, 3, 1), 'max_pool_3x3': lambda C: Pool("max", C, 3, 1), 'skip_connect': lambda C: SkipConnection(C, C), 'sep_conv_3x3': lambda C: SepConv(C, C, 3, 1), 'sep_conv_5x5': lambda C: SepCon...
# # 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 under the Apache License, Version 2.0 (the # "License"); you may not...
#!/usr/bin/env python3 # Validate extension metadata import pathlib import re import sys from functools import cached_property from importlib.util import spec_from_loader, module_from_spec from importlib.machinery import SourceFileLoader from typing import Iterator import yaml from tools.base import checker BUILD_...
from distutils.core import setup from setuptools import find_packages from lazycon import __version__ classifiers = '''Development Status :: 5 - Production/Stable Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9''' ...
const fs = require('fs'); const path = require('path'); const problems = require('../../problems'); const baseUrl = path.join(__dirname, '../../problems/'); const getRandomItemFromArray = array => array[Math.floor(Math.random()*array.length)]; module.exports = { currentProblem: undefined, getRandomProblem: func...
# Copyright (c) 2021, matbrgz and Contributors # See license.txt # import frappe import unittest class TestVulnerabilityCategory(unittest.TestCase): pass
let defaultConfig = `Luigi.setConfig({ navigation: { nodes: [{ pathSegment: 'home', label: 'h', hideFromNav: true, children: [{ pathSegment: 'overview', label: 'Overview', ...
/*[clinic input] preserve [clinic start generated code]*/ PyDoc_STRVAR(math_ceil__doc__, "ceil($module, x, /)\n" "--\n" "\n" "Return the ceiling of x as an Integral.\n" "\n" "This is the smallest integer >= x."); #define MATH_CEIL_METHODDEF \ {"ceil", (PyCFunction)math_ceil, METH_O, math_ceil__doc__}, PyDoc_S...
// Copyright IBM Corp. 2018. All Rights Reserved. // Node module: @loopback/build // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 'use strict'; const assert = require('assert'); const path = require('path'); const fs = require('fs-extra'); const utils =...
#if 0 // // Generated by Microsoft (R) HLSL Shader Compiler 10.1 // // // Buffer Definitions: // // cbuffer Params // { // // uint width; // Offset: 0 Size: 4 [unused] // uint height; // Offset: 4 Size: 4 [unused] // uint greenReducing; ...
import React from 'react' import { withRouter } from 'react-router-dom' import classes from './Burger.module.css' import BurgerIngredient from './BurgerIngredient/BurgerIngredient' const burger = (props) => { let transformedIngredients = Object.keys(props.ingredients) .map(igKey => { return [...Array(pro...
import enum import time from pymodbus.constants import Endian from pymodbus.payload import BinaryPayloadBuilder from pymodbus.payload import BinaryPayloadDecoder from pymodbus.client.sync import ModbusTcpClient from pymodbus.client.sync import ModbusSerialClient from pymodbus.register_read_message import ReadInputRegi...
import torch import torch.nn as nn from torch import hub VGGISH_WEIGHTS = "https://github.com/harritaylor/torchvggish/" \ "releases/download/v0.1/vggish-10086976.pth" PCA_PARAMS = "https://github.com/harritaylor/torchvggish/" \ "releases/download/v0.1/vggish_pca_params-970ea276.pth" cla...
# Copyright 2019, A10 Networks # # 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...
#include <stdio.h> int main() { printf("Hello World"); return 0; }
import logging from typing import List, Optional, Tuple, Union from peas.consensus.constants import ConsensusConstants from peas.protocols import timelord_protocol from peas.timelord.iters_from_block import iters_from_block from peas.timelord.types import Chain, StateType from peas.types.blockchain_format.classgroup i...
from __future__ import print_function import py from rpython.rlib.parsing.parsing import PackratParser, Rule, Nonterminal from rpython.rlib.parsing.parsing import Symbol, ParseError from rpython.rlib.parsing.ebnfparse import parse_ebnf, make_parse_function from rpython.rlib.parsing.deterministic import LexerError from ...
#!/usr/bin/env python3 # ---------------------------------------------------------------------------- # # Copyright 2018 EMVA # # 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://ww...
# Copyright 2017 The TensorFlow 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 applica...