text stringlengths 3 1.05M |
|---|
import { hot } from 'react-hot-loader';
import { withConnect } from '@folio/stripes/connect';
import EHoldings from './components/eholdings';
export default hot(module)(withConnect(EHoldings));
|
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "NR-RRC-Definitions"
* found in "NR-RRC-Definitions.asn"
* `asn1c -fcompound-names -no-gen-example -pdu=all`
*/
#ifndef _SL_MeasObjectInfo_r16_H_
#define _SL_MeasObjectInfo_r16_H_
#include "asn_application.h"
/* Including external ... |
const { join } = require('path')
const { copySync, pathExistsSync } = require('fs-extra')
const { assertInit } = require('./assertInit')
const main = () => {
const envPath = join(__dirname, '../../')
const source = join(envPath, '.env.example')
const destination = join(envPath, '.env')
if (pathExistsSync(dest... |
//
// MODULE: SNIFFLOCAL.H
//
// PURPOSE: sniffing class for local TS
//
// COMPANY: Saltmine Creative, Inc. (206)-284-7511 support@saltmine.com
//
// AUTHOR: Oleg Kalosha
//
// ORIGINAL DATE: 12-11-98
//
// NOTES: This is concrete implementation of CSniff class for Local TS
//
// Version Date By Commen... |
from argparse import ArgumentParser
from iotfs.main import IoTFS
from iotfs.filesystem.standard_fs import StandardFileSystem
'''
This file is needed to start IoTFS in this package for testing purpose.
'''
def parse_args():
'''Parse command line'''
parser = ArgumentParser()
parser.add_argument('mountpo... |
#!/usr/bin/python
import itertools
import os
import signal
import sys
from argparse import ArgumentParser
from subprocess import call
from threading import Thread
from time import sleep
import gratuitousArp
from mininet.cli import CLI
from mininet.examples.controlnet import MininetFacade
from mininet.link import TCLin... |
"""
Imports to facilitate access from root.
"""
from .client import Client
|
# 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.
# --------------------------------------------------------------------... |
const path = require('path');
const pkg = require('../package.json');
const outputFile = 'index.umd.js';
const rootDir = path.resolve(__dirname, '../');
const outputFolder = path.join(__dirname, '../dist');
const config = {
mode: 'production',
entry: rootDir + '/' + pkg.module,
devtool: 'inline-source-map',
o... |
#! .\\venv\\Scripts\\python.exe
import requests
from bs4 import BeautifulSoup
def fs_scraper(url):
source = requests.get(url).text
soup = BeautifulSoup(source, 'lxml')
floor_sheet_table = soup.find('table', class_='table my-table')
floor_sheet_rows = floor_sheet_table.find_all('tr')
fs_trs = flo... |
#!/usr/bin/env python
# reflect input bytes to output, printing as it goes
import serial, sys, optparse, time
parser = optparse.OptionParser("pattern")
parser.add_option("--baudrate", type='int', default=57600, help='baud rate')
parser.add_option("--delay", type='float', default=0.0, help='delay between lines')
parse... |
#!/usr/bin/python
import os
import sys
import time
print "starting fake heater"
tempc={'hltSetTemp': False,'mashSetTemp':False,'boilSetTemp':False,'fermSetTemp':False}
tempx={'hltSetTemp': 0,'mashSetTemp':0,'boilSetTemp':0,'fermSetTemp':19.2}
def handleTemp(probeId):
global tempx
if os.path.exists("ipc/fakeelement... |
# 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, ... |
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class MovieScrapItem(scrapy.Item):
# define the fields for your item here like:
movie_id = scrapy.Field()
movie_name = scrapy.Field()
r... |
/* NetHack 3.6 dog.c $NHDT-Date: 1554580624 2019/04/06 19:57:04 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.85 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2011. */
/* NetHack may be freely redistributed. See license for details. */
#i... |
#pragma once
#include "guard.h"
#include "mutex.h"
#include "condvar.h"
#include "defaults.h"
#ifdef _mt_
class TRWMutex {
public:
TRWMutex();
void AcquireRead();
bool TryAcquireRead();
void ReleaseRead();
void AcquireWrite();
bool TryAcquireWrite();
void... |
'''
Copyright 2019 Secure Shed Project Dev Team
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... |
"""
WSGI config for Django_01 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... |
import bpy
import os
import math
import bmesh
import sqlite3
from .import Global
from . import Versions
from . import DtbShapeKeys
from . import DataBase
class ToHighReso:
max3 = []
def __init__(self):
pass
def toCorrectVWeight1(self):
self.max3 = Global.getMyMax3()
lev = Global.ge... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LettersRow from './LettersRow';
import LetterBlock from './LetterBlock';
import './VirtualKeyboard.css';
class VirtualKeyboard extends Component {
render() {
return (
<div className='VirtualKeyboard'>
<div key='Fir... |
"""ResNeSt implemented in Gluon."""
# pylint: disable=arguments-differ,unused-argument,missing-docstring,line-too-long
from __future__ import division
import math
from mxnet.context import cpu
from mxnet.gluon.block import HybridBlock
from mxnet.gluon import nn
from mxnet.gluon.nn import BatchNorm
from ..nn.dropblock... |
from typing import Set
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class Item(BaseModel):
name: str
description: str = None
price: float
tax: float = None
tags: Set[str] = set()
@app.put("/items/{item_id}")
async def update_item(*, item_id: int, item: Item):
... |
#include "cconfigspace_internal.h"
#include "objective_space_internal.h"
#include "evaluation_internal.h"
static ccs_result_t
_ccs_objective_space_del(ccs_object_t object) {
ccs_objective_space_t objective_space = (ccs_objective_space_t)object;
UT_array *array = objective_space->data->hyperparameters;
_ccs_hyperpar... |
/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* global EventDispatcher,
MozSmsFilter,
Promise,
Settings,
SMIL,
Threads,
Utils
*/
/*exported MessageManager */
'use strict';
(function(exports) ... |
;(function() {
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
var undefined;
/** Used to detect when a function becomes hot. */
var HOT_COUNT = 150;
/** Used as the size to cover large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/** Used as the `TypeError` message for... |
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 21 10:06:16 2020
@author: Soumya Srilekha
"""
### MDP Value Iteration and Policy Iteration
### Reference: https://web.stanford.edu/class/cs234/assignment1/index.html
import numpy as np
np.set_printoptions(precision=3)
"""
For policy_evaluation, policy_impr... |
"use strict";
const events = require("events");
const EventEmitter = events.EventEmitter || events;
class SerialPortMock extends EventEmitter {
/**
* Mock for SerialPort
*/
constructor(options, callback) {
super();
this._openFlag = false;
if (callback) {
callback(... |
import os
import sys
import time
from copy import deepcopy
from typing import Any, Dict, List, Tuple, Union
from urllib.parse import urljoin
from django.template.loaders import app_directories
import zerver.lib.logging_util
from scripts.lib.zulip_tools import get_tornado_ports
from zerver.lib.db import TimeTrackingCo... |
# Generated by Django 1.11.28 on 2020-03-04 15:19
"""
Deletes the ENFORCE_JWT_SCOPES waffle switch that has already been deprecated and removed.
See https://github.com/edx/edx-platform/pull/23188 for the removal
"""
from django.db import migrations
ENFORCE_JWT_SCOPES = 'oauth2.enforce_jwt_scopes'
def delete_switc... |
#version 120
// credit: http://xissburg.com/faster-gaussian-blur-in-glsl/
// result fbo
uniform sampler2D Texture0;
uniform float cameraZoom;
uniform vec2 bufferDim;
//uniform float blurAmount;
varying vec2 v_texCoord;
varying vec2 v_blurTexCoords[14];
$
void main()
{
gl_Position = gl_Vertex;
v_texCoord = g... |
module.exports = require("@ts-gql/next").withTsGql();
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* strict
* @format
*/
'use strict';
/**
* Marks a string of code as code to be replaced later.
*/
function moduleDependency(c... |
/**
* @param {number} count
* @param {Object} subSchema
*/
function createProperties(count, subSchema) {
const properties = {};
for (let i = 0; i < count; i++) {
const name = `property${i}`;
properties[name] = subSchema;
}
return properties;
}
module.exports = createProperties;
|
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 150000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 160000
#import "Xcode_13_0_XCTestCore_CDStructures.h"
#import "Xcode_13_0_SharedHeader.h"
#import <Foundation/Foundation.h>
#import <XCTest/XCTestObserver.h>
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyr... |
import "./vee-validate";
// import "./route"; // uncomment for production
import "./route-local";
import "./bus";
import "./store";
import "./session";
import "./websocket";
|
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.20-beta-rc.1
*/
goog.provide('ngmaterial.components.fabShared');
goog.require('ngmaterial.core');
(function() {
'use strict';
MdFabController['$inject'] = ["$scope", "$element", "$animate", "$mdUtil", "$mdConstant", "$... |
import os
import uvicorn
from typing import Dict
from fastapi import FastAPI, Request, HTTPException, status
from fastapi.responses import HTMLResponse, FileResponse
from fastapi.staticfiles import StaticFiles
from fastapi.middleware.cors import CORSMiddleware
from fastapi.templating import Jinja2Templates
from fastapi... |
import logging
import re
from flatland import Form, Boolean
from pygtkhelpers.forms import FormView
from pygtkhelpers.proxy import proxy_for
import gtk
import pkgutil
from ..app_context import get_app
from logging_helpers import _L #: .. versionadded:: 2.20
from ..plugin_manager import IPlugin, ExtensionPoint
logg... |
# -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2017 Vic Chan
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... |
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val
* this.next = null
* }
*/
function ListNode(val) {
this.val = val
this.next = null
}
var head = new ListNode(1)
var node2 = new ListNode(2)
var node3 = new ListNode(3)
var node4 = new ListNode(4)
var node5 = new ListN... |
// Game environement
const world = require('../../src/game/env/world.js');
const makePath = require('./lib/makePath.js');
const Logger = require('../../src/game/web/logger.js');
// Http server
const express = require('express');
const app = express();
// Socket.io server
const http = require('http');
const server = h... |
import React from 'react';
import styled from '@emotion/styled';
import { GatsbyImage, getImage } from 'gatsby-plugin-image';
import Layout from './Layout';
import { graphql } from 'gatsby';
import ListadoPropiedades from './listadoPropiedades';
const Campos = styled.div`
display: grid;
gap: 1rem;
grid-template-... |
# -*- coding: utf-8 -*-
import six
from flask import current_app
def load_object(obj_name):
if ':' in obj_name:
mod, name = obj_name.split(':')
else:
mod, name = obj_name, None
mod = __import__(mod, fromlist=[''])
if name:
return getattr(mod, name)
return mod
class BaseDr... |
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import tensorflow as tf
import model as bm
import util
if __name__ == "__main__":
config = util.initialize_from_env()
num_fold = config['cross_validation_fold']
#cross v... |
import React from 'react'
function UserEditBreadcrumb() {
return (
<div>
<nav class="flex py-3 px-5 text-gray-700 bg-gray-50 rounded-lg border border-gray-200 dark:bg-gray-800 dark:border-gray-700" aria-label="Breadcrumb">
<ol class="inline-flex items-center space-x-1 md:space-x-3">
<li class... |
macDetailCallback("001b3e000000/24",[{"d":"2007-01-26","t":"add","a":"2405 Annapolis Lane\nSuite 220\nMinneapolis MN 55441\n","c":"UNITED STATES","o":"Curtis, Inc."},{"d":"2015-08-27","t":"change","a":"2405 Annapolis Lane Minneapolis MN US 55441","c":"US","o":"Curtis, Inc."}]);
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This module downloads all the ROAs from ftp.ripe.net/rpki or all the ROAs
that exist for a specific date.
Processing the HTML from the server has been tested to be faster than
using Python's built-in FTP library.
Guidelines:
1. Maintain a table of files that have be... |
/**
* Copyright (c)2020, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
*/
define([], function () {
'use strict';
var PageModule = function PageModule() { };
/**
*
* @param {String} arg1
* @... |
import os, pickle,uuid
class ControlBase(object):
_value = None
_label = None
_controlHTML = ""
def __init__(self, label = "", defaultValue = "", helptext=None):
self._id = uuid.uuid4()
self._value = defaultValue
self._parent = 1
self._label = lab... |
/*!
* inputmask.numeric.extensions.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.8
*/
!function (factory) {
"function" == typeof define && define.amd ? define(["./dependen... |
!function(e){function t(t){for(var a,o,c=t[0],i=t[1],s=t[2],m=0,h=[];m<c.length;m++)o=c[m],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&h.push(n[o][0]),n[o]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(t);h.length;)h.shift()();return l.push.apply(l,s||[]),r()}function r(){for(var e,t... |
import torch
class SamplePoints(object):
r"""Uniformly samples :obj:`num` points on the mesh faces according to
their face area.
Args:
num (int): The number of points to sample.
remove_faces (bool, optional): If set to :obj:`False`, the face tensor
will not be removed. (defaul... |
import pyaf.tests.periodicities.period_test as per
per.buildModel((120 , 'H' , 100));
|
from collections import deque
with open("../input/day24.txt", 'r') as inputFile:
data = [[x for x in line.rstrip()] for line in inputFile.readlines()]
grid = {}
for y in range(len(data)):
line = data[y]
for x in range(len(line)):
char = line[x]
grid[x + y*1j] = char
def makeEmptyGrid():
... |
class InitializationException(Exception):
"""Raised when an error occurred during init of a CoML directory."""
class ForbiddenDirectoryAccessError(RuntimeError):
"""Raised when accessing a CoML directory while a step is executed."""
|
from . import models
from . import validators
|
import os
import sys
import logging
from . import utils
class Config(object):
def __init__(self, config_dir):
'''
Class Constructor
Initialising a configuration with an empty list of data flows
'''
self.logger = logging.getLogger('Pipelinewise CLI')
self.config_di... |
from math import cos, sin
class LineApproximation:
"""A class to track the position of the robot in a system of coordinates
using only encoders as feedback, using the line approximation method."""
def __init__(self, axis_width, l_encoder, r_encoder):
"""Saves input values, initializes cla... |
#ifndef COMMON_CONFIG_V4_MEIAUDITGENERATOR_H_
#define COMMON_CONFIG_V4_MEIAUDITGENERATOR_H_
#include "Config4Modem.h"
#include "evadts/EvadtsGenerator.h"
class Config4MeiAuditGenerator : public EvadtsGenerator {
public:
Config4MeiAuditGenerator(Config4Modem *config);
virtual ~Config4MeiAuditGenerator();
virtual vo... |
# from django.shortcuts import render
from django.contrib.auth.models import User
from django.db.models.query import QuerySet
from django.utils.translation import to_language
from rest_framework import authentication, permissions
import rest_framework
from rest_framework.decorators import authentication_classes, permis... |
/**
* @license
* Copyright 2014 Google Inc. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import os
import jinja2
import webapp2
from google.appengine.api import users
from models import Tornei, Tennisti
config = {
'domain': 'tornei.dinoia.eu',
'path': 'http://tornei.dinoia.eu/bacheca',
'title': "Tornei",
'editor': "Circolo Tennis Au Coq d'Or... |
var supportsArgumentsClass = (function(){
return Object.prototype.toString.call(arguments)
})() == '[object Arguments]';
exports = module.exports = supportsArgumentsClass ? supported : unsupported;
exports.supported = supported;
function supported(object) {
return Object.prototype.toString.call(object) ==... |
from .nesteddataclasses import nested_dataclass
|
from collections import defaultdict
import glob
import os
import numpy as np
import pandas as pd
from scipy import stats
from sklearn.model_selection import KFold
if __name__ == "__main__":
from black import FileMode, TargetVersion, format_file_contents
from sklearn.linear_model import LinearRegression
fr... |
"""
Copyright (c) 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
/* IEEE Standard 695-1980 "Universal Format for Object Modules" header file
Copyright (C) 2001-2017 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; eith... |
# VERSION 2
# Add user id as feature
#
#
#
import tensorflow as tf
import tensorflow.contrib as tc
import numpy as np
import tensorflow.contrib.keras as keras
TRAINING = 0
TESTING = 1
INFERENCE = 2
VERSION = "v9"
MODE = 1
NUM_EPOCHS = 1000000
# MODE = TESTING
# NUM_EPOCHS = 1
LEARNING_RATE = 0.00001
def read_and_dec... |
/**
* Base class for the SDK exceptions.
*
* @author kit
*/
export default class SdkException extends Error {
constructor(errors = [], message = 'Turnkey SDK General Exception') {
super(message);
this.name = 'Error';
this.errors = errors;
}
/**
* set errors detail
* @param {Array}params
... |
import nltk
import numpy as np
# nltk.download('punkt')
from nltk.stem.porter import PorterStemmer
stemmer = PorterStemmer()
def tokenize(sentence):
"""
split sentence into array of words/tokens
a token can be a word or punctuation character, or number
"""
return nltk.word_tokenize(sentence, lang... |
#include "./includes/main.h"
void timeresult(clock_t start, char *file) {
clock_t diff = clock() - start;
double time = ((double)diff) / CLOCKS_PER_SEC;
printf(" F Tempo: %fs\n", time);
char output[0x100];
strcpy(output,"./resources/graphs/");
strcat(output,file);
strcat(output,".js");
FILE *fp = fopen(output... |
/*! vTicker 1.21 http://richhollis.github.com/vticker/ | http://richhollis.github.com/vticker/license/ | based on Jubgits vTicker http://www.jugbit.com/jquery-vticker-vertical-news-ticker/ */
(function(d){var g,c,f;g={speed:700,pause:4E3,showItems:1,mousePause:!0,height:0,animate:!0,margin:0,padding:0,startPaused:!1,au... |
import React from "react"
import Layout, { Narrow } from "../../components/layout"
import SEO from "../../components/seo"
import CategoryPageListing from "../../components/category-page-listing"
const RidesPage = () => (
<Layout>
<SEO title="Recreational Rides" />
<Narrow>
<h1>Recreational Rides</h1>
... |
import abc
from typing import Optional
from PIL import Image, ImageChops
from tests.base import TestCase
class TestImageComparisonMixin(TestCase, abc.ABC):
def assertImageEqual(self, a: Image.Image, b: Image.Image, msg: Optional[str] = None):
self.assertIsNone(ImageChops.difference(a, b).getbbox(), msg)... |
import torch
__author__ = 'Andres'
def calc_gradient_penalty_bayes(discriminator, real_data, fake_data, gamma):
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
batch_size = real_data.size()[0]
alpha = torch.rand(batch_size, 1, 1, 1)
alpha = alpha.expand(real_data.size()).to(devi... |
/* The contents of this file are subject to the Netscape Public
* License Version 1.1 (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.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int wcount(char*s){
int i=0, buf=0,set=0;
while(s[i]!='\0'){
if(s[i]!= ' '){
buf=1;
if(s[i]== ' ' && buf==1){
set++;
buf=0;
}
i++;
}
if(buf==1&&s[i]=='\0')
... |
'use strict';
// Напиши функцию findBestEmployee(employees),
// которая принимает объект сотрудников и возвращает
// имя самого продуктивного (который выполнил больше всех задач).
// Сотрудники и кол-во выполненых задач содержатся как свойства
// объекта в формате "имя":"кол-во задач".
const findBestEmployee = employ... |
import VAE from '../../../lib/model/vae.js'
self.model = null
self.addEventListener(
'message',
function (e) {
const data = e.data
if (data.mode === 'init') {
self.model = new VAE(
data.in_size,
data.noise_dim,
data.enc_layers,
data.dec_layers,
data.optimizer,
data.class_size,
dat... |
// This is an open source non-commercial project. Dear PVS-Studio, please check
// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/*
* eval.c: Expression evaluation.
*/
#include <assert.h>
#include <float.h>
#include <inttypes.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib... |
from a10sdk.common.A10BaseClass import A10BaseClass
class Stats(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param Stapling_Certificate_Unknown: {"description": "Total OCSP Stapling Unknown Certificate Response", "format": "counter", "type": "number", "oid": "3", "op... |
## @file
# This file is used to define common static strings used by INF/DEC/DSC files
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
import re
gIsWindows = None
gWorkspace = "."
gOptions = None
gCaseInsensitive = False
gAllFiles =... |
require("../../../../psknode/bundles/testsRuntime");
const dc = require("double-check");
const { assert } = dc;
const utils = require('./utils');
assert.callback("Should create new anchor of type CZA", async (callback) => {
const constSSI = utils.generateConstSSI();
const anchorId = utils.getAnchorId(c... |
/**
* Amazon Elastic Compute Cloud
* <fullname>Amazon Elastic Compute Cloud</fullname> <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------------------------------------
@Name: main.py
@Desc:
@Author: liangz.org@gmail.com
@Create: 2022.04.29 22:57
-------------------------------------------------------------------------------
@Ch... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
# os.environ["CUDA_VISIBLE_DEVICES"] = "1"
import sys
import time
from torch.optim.lr_scheduler import StepLR
import torchvision.utils as vutils
from lib.loss... |
var async = require("async"),
wifi_manager = require("./app/wifi_manager")(),
dependency_manager = require("./app/dependency_manager")(),
config = require("./config.json"),
ping = require("net-ping").createSession(),
api = require('./... |
import sys
import os
import sys
import setuptools
from setuptools import find_packages
from setuptools.command.test import test as TestCommand
from distutils.version import StrictVersion
from setuptools import __version__ as setuptools_version
if StrictVersion(setuptools_version) < StrictVersion('38.3.0'):
raise S... |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_Pages_Users_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/Pages/Users.vue?vue&type=script&lang=js":
/*!*********************... |
// ***********************************************
// 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 json
import os
from typing import Dict, Optional
import pandas as pd
from fastapi import FastAPI, status, Request, HTTPException
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse, HTMLResponse
from app.data import MongoDB
from app.graphs import tech_stack_by_role
fro... |
from email import message
from airflow import DAG
from airflow.operators.python import PythonOperator, BranchPythonOperator
from airflow.operators.bash import BashOperator
from datetime import datetime
from random import randint # Import to generate random numbers
def _bot_name():
return "I'm a bot"
def _hell... |
/*
* Copyright 2015 Henrik Paul
*
* 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 ... |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
import React from 'react';
import { NavLink } from 'react-router-dom';
const navDrop = (props) => {
return (
<li className="nav-item dropdown">
<NavLink className="nav-link dropdown-toggle" to="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="fal... |
"""
This module contains the Annotator class which can be used to obtain ellipse which defines the car wheel (and tire),
for example if treadscan Segmentor fails (like when wheel is too dark) to detect the main ellipse.
Annotator class also contains a method for annotating keypoints of the tire.
"""
from datetime imp... |
import subprocess
import os
import shutil
docker_tag = 'wedding-server:v0.1.2'
def get_relative_directory(folder_name: str) -> str:
top_directory = os.path.dirname(os.path.realpath(__file__))
return os.path.join(top_directory, folder_name)
def ensure_directory_exists(folder: str):
def impl():
ful... |
// @flow
import React from 'react';
import AceEditor from 'react-ace';
import camelCase from 'lodash/camelCase';
import 'brace/mode/javascript';
import 'brace/mode/html';
import 'brace/mode/java';
import 'brace/mode/json';
import 'brace/theme/github';
type Props = {
label: string,
value: string,
onChange: Funct... |
/******************************************************************************
* Copyright 2019 ETC 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/l... |