text stringlengths 3 1.05M |
|---|
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_logg... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#include "../profiler.h"
class GCAllocateProfiler : public Profiler
{
public:
GCAllocateProfiler() : Profiler(),
_gcLOHAllocations(0),
_gcPOHAlloca... |
#
# Copyright 2021 Janick Bergeron <janick@bergeron.com>
#
# 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 l... |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''=================================================
@IDE :PyCharm
@Author :Valuebai
@Date :2020/2/3 19:31
@Desc :主函数
=================================================='''
import os, sys
# 解决在命令行窗口报错No module named 'base',需要放在最前面
curPath = os.path.abspath(os.path.d... |
module.controller('UserRoleMappingCtrl', function($scope, $http, realm, user, clients, client, Notifications, RealmRoleMapping,
ClientRoleMapping, AvailableRealmRoleMapping, AvailableClientRoleMapping,
CompositeRealmRole... |
/**
* check if selenium response contains an element result
* @param {object} result response object from the driver
* @return {Boolean} returns
* 0 if response was not an element result
* 1 if response was a element result
* 2 if response was an elements result
... |
import collections
import hashlib
import http.client
import json
import os
import random
import shutil
import time
import unittest
import urllib
from twisted.internet import reactor
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusExceptions
from hydrus.co... |
from django.contrib import admin
class InputFilter(admin.SimpleListFilter):
template = 'admin/input_filter.html'
def lookups(self, request, model_admin):
# Dummy, required to show the filter.
return ((),)
def choices(self, changelist):
# Grab only the "all" option.
all_ch... |
"use strict";
const settings = require("../settings.json");
if (settings.api.client.oauth2.link.slice(-1) == "/")
settings.api.client.oauth2.link = settings.api.client.oauth2.link.slice(0, -1);
if (settings.api.client.oauth2.callbackpath.slice(0, 1) !== "/")
settings.api.client.oauth2.callbackpath = "/" + settin... |
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include "mergesort.h"
bool needsSorting(int rangeSize)
{
return rangeSize >= 2;
}
void mergeRanges(int values[], int startIndex, int midPoint, int endIndex)
{
const int rangeSize = endIndex - startIndex;
int *destination = (int*) calloc(rangeSize + 1, siz... |
game.HeroDeathManager = Object.extend({
init: function(x, y, settings){
this.alwaysUpdate = true;
},
update: function(){
if(game.data.player.dead){
//INCREMENT TIMER AND CHECK IF TIMER > DEATH ANIMATION TIME
//this.body.vel.x -= this.body.accel.x * me.timer.tick; > th... |
import os
import threading
import sys
import json
import traceback
if sys.version_info[0] < 3:
import Queue as queue
else:
import queue
__read_thread = None
__input_queue = None
win = sys.platform.startswith('win')
if win:
__input_queue = queue.Queue()
def read_input_loop():
global __input_queue
... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
#! /usr/bin/env python3
import timeit
def insertion_sort(list_to_sort, field=lambda l: l[0]):
"""
Insertion sort.
"""
#goes through the unsorted list
for i in range(1, len(list_to_sort)):
j = i - 1
key = list_to_sort[i]
#checks if the current iterated field is less then... |
from dataclasses import dataclass, field
from apischema import alias
from apischema.objects import object_fields
@alias(lambda s: f"prefixed_{s}")
@dataclass
class Data:
not_aliased: int = field(metadata=alias(override=False))
not_prefixed: int = field(metadata=alias("not_overridden", override=False))
pr... |
# -*- Mode: Python -*-
# $Id: filesys.py,v 1.9 2003/12/24 16:10:56 akuchling Exp $
# Author: Sam Rushing <rushing@nightmare.com>
#
# Generic filesystem interface.
#
# We want to provide a complete wrapper around any and all
# filesystem operations.
# this class is really just for documentation,
# identify... |
// 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... |
/** @file
Header file for Elf32 Convert solution
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License which accompanies this
distribution. The full text of the lice... |
# app/auth/__init__.py
from flask import Blueprint, request, current_app, session, redirect, url_for
notifications = Blueprint('notifications', __name__, template_folder='templates')
from app.notifications import routes
from app.auth.models import User
@notifications.before_request
def before_request():
if not sessio... |
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework import filters
from rest_framework.authtoken.views import ObtainAuthToken
from res... |
from contextlib import contextmanager
from rllab_maml.core.serializable import Serializable
from rllab_maml.misc.tensor_utils import flatten_tensors, unflatten_tensors
import tensorflow as tf
load_params = True
@contextmanager
def suppress_params_loading():
global load_params
load_params = False
yield
... |
/*
* Copyright (c) 2007, Laminar Research.
*
* 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, ... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2014 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
import React from "react"
import { IconContext } from "react-icons"
import { FaHtml5, FaCss3, FaReact, FaJsSquare, FaNode, FaPython } from "react-icons/fa"
const Skills = () => (
<div className="row work">
<div className="three columns header-col">
<h1>
<span>Skills</span>
... |
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue-i18n"),require("vue"),require("element-ui"),require("lodash"),require("axios"),require("vuex"),require("vue-router"));else if("function"==typeof define&&define.amd)define(["vue-i18n","vue","element-ui","lodash","axios","vu... |
from .serializer import CLASS_PATH_KEY, INSTANCE_OR_CALLABLE, MODULE_X_NAME_DELIMITER, Serializer
|
/*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("widget-position-constrain",function(e,t){function m(e){}var n="constrain",r="constrain|xyChange",i="constrainChange",s="preventOverlap",o="align",u="",a="bindUI",f="x... |
from typing import Union
from allennlp.nn.util import tiny_value_of_dtype
import torch
from overrides import overrides
from interlens.modules.vector_similarities.vector_similarity import VectorSimilarity
@VectorSimilarity.register('minus_p_distance')
class MinusDistanceVectorSimilarity(VectorSimilarity):
"""
... |
import sys
def basic():
import api
critic = api.critic.startSession()
alice = api.user.fetch(critic, name="alice")
bob = api.user.fetch(critic, name="bob")
carol = api.user.fetch(critic, name="carol")
dave = api.user.fetch(critic, name="dave")
erin = api.user.fetch(critic, name="erin")
... |
import tarfile
import urllib.request
import zipfile
from os import makedirs, remove
from os.path import basename, exists, join
import requests
from torchvision.transforms import transforms
from CONFIG import *
from dataset import DatasetFromFolder
__all__ = [
'download_bsd300',
'download_file_from_google_dr... |
###########################################################################
#
# 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
#
# https://www.apache.org/l... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-29 20:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gluu_license', '0006_license_is_active'),
]
operat... |
import React from "react";
const CartContext = React.createContext({
items: [],
totalQuantity: 0,
totalAmount: 0,
addItem: (item) => {},
removeItem: (id) => {},
});
export default CartContext;
|
from django.db import models
class ArticleModel(models.Model):
author = models.CharField(verbose_name='作者', max_length=32, default='shenxgan')
title = models.CharField(verbose_name='标题', max_length=128)
content = models.TextField(verbose_name='内容')
tags = models.CharField(verbose_name='标签', max_length... |
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.patches import Rectangle
from matplotlib.transforms import Bbox, TransformedBbox
from matplotlib.figure import Figure
from matplotlib.text import Text, Annotation
# https://matplotlib.org/stable/api/text_api.html
fig: Figure
fig... |
/**
* @depends {nrs.js}
*/
var NRS = (function(NRS, $, undefined) {
NRS.showConsole = function() {
NRS.console = window.open("", "console", "width=750,height=400,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes");
$(NRS.console.document.head).html("<title>" + $.t("console") + "</title><style type='te... |
#!/usr/bin/env python
# coding: utf-8
# # BME590 Unet++
# In[1]:
# Import Packages
import os
import sys
import random
import warnings
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from tqdm import tqdm
from itertools import chain
from skimage.io import imread, imshow, imread_collection, con... |
function validateFileType(event){
var file=$('#profile_photo');
var fileName = document.getElementById("profile_photo").value;
var idxDot = fileName.lastIndexOf(".") + 1;
var extFile = fileName.substr(idxDot, fileName.length).toLowerCase();
if (extFile=="jpg" || extFile=="jpeg" || extFile=="png" |... |
# model settings
model = dict(
type='CenterNet',
pretrained='./pretrain/darknet53.pth',
backbone=dict(
type='DarknetV3',
layers=[1, 2, 8, 8, 4],
inplanes=[3, 32, 64, 128, 256, 512],
planes=[32, 64, 128, 256, 512, 1024],
norm_cfg=dict(type='BN'),
out_indices=(1... |
# -*- coding: utf-8 -*
import numpy as np
from .measure import *
class Reporter:
def __init__(self, solver):
self.solver = solver
self.std = solver.B * solver.Dx * solver.staAfter * solver.B.T
def get_points(self):
sb = []
sb.append(u'点名列表:')
sb.append('%10s%15s... |
scotchApp.controller("fornecedoresController", ["$scope", "$firebaseArray","$routeParams","$timeout",
function($scope, $firebaseArray,$routeParams,$timeout,$http) {
isLoggedIn();
$('.loaderDiv').show();
//Função para saber se o documento está pronto
$timeout(function(){
//console.log(selectedAccount);
... |
/**
* 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... |
import archive from "./../../api/archive";
import { added } from "./addedMsg";
import deleteSP from "./deleteAllAction";
import getSujetPlanif from "./getSujetPlanif";
const archiveAction = (
e,
dbName,
dbNameS,
presentateurId,
ArchId,
Sujet,
Presentateur,
date,
Lien,
Lien2
) => {
return dispatch... |
import { debounce } from '../../utils/underscore';
import { SettingsMenu } from 'view/controls/components/settings/menu';
import {
addCaptionsSubmenu,
removeCaptionsSubmenu,
addQualitiesSubmenu,
removeQualitiesSubmenu,
addAudioTracksSubmenu,
removeAudioTracksSubmenu,
addPlaybackRatesSubmenu,... |
(self.webpackChunk=self.webpackChunk||[]).push([[773],{7080:(e,a,s)=>{s(1689)},1689:(e,a,s)=>{window._=s(6486),window.axios=s(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.jQuery=window.$=s(9755),window.moment=s(381),s(8981),s(3734),s(3248),window.Swal=s(6455),s(686),s(1842),s(4... |
# Generated by Django 1.11.14 on 2018-08-03 13:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('case_importer', '0010_caseuploadformrecord'),
]
operations = [
migrations.RunSQL(
# This migration is not reversible because blobs cre... |
YUI.add('async-queue-tests', function(Y) {
var suite = new Y.Test.Suite("AsyncQueue");
// FIXME: remove this and update the tests to handle the asynchronicity
Y.AsyncQueue.defaults.timeout = -1;
function f() {}
suite.add(new Y.Test.Case({
name : "Queue isntantiation",
test_instantiation : function () {
... |
from torchvision.datasets import MNIST as torchMNIST
from torchvision.datasets import FashionMNIST
from torch.utils.data import Subset
import torchvision.transforms.functional as TF
import torchvision.transforms as transforms
import torch
import numpy as np
import os
import nn_ood
class MNIST(Subset):
def __init__... |
//%includeGuardStart {
#ifndef INFERNALMAP_H
#define INFERNALMAP_H
//%includeGuardStart } droX77VdyETABT3BzCPPFg
//%Header {
/*****************************************************************************
*
* File: src/Infernal/InfernalMap.h
*
* Copyright: Andy Southgate 2002-2007, 2020
*
* Permission is hereby gr... |
#include <linux/autoconf.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/ioport.h>
void skull_release(unsigned int port, unsigned int range)
{
release_region(port,range);
}
void skull_cleanup(void)
{
/* should put real values here, exp: skull_release(0,0); */
}
module_exit(skull_clean... |
#ifndef v1_pod_anti_affinity_TEST
#define v1_pod_anti_affinity_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v1_pod_anti_affinity_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "../... |
#!/usr/bin/env python
# Copyright (C) 2015-2018 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# be be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHO... |
"""
Forest of trees-based ensemble methods.
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls th... |
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from accounts.models import UserProfile
class RegistationForm(UserCreationForm):
email = forms.EmailField(required=True)
def __init__(self, *args, **kwargs):
su... |
import asyncio
from typing import NoReturn
import pytest
from pytest_asyncio.plugin import event_loop
from periodic_coroutine import Periodic
async def awake_msg() -> str:
await asyncio.sleep(0.5)
return "Good Morning!"
async def just_raise() -> NoReturn:
await asyncio.sleep(0.1)
raise ValueError... |
/* global exports */
/**
* @param {string} property - method to call on object
* @param {number} n - number of (curried) arguments
* @param {effectRunnerWrapper} effectRunnerWrapper - a function to overrride
* effect runner with. `toAffE` for `Aff`, `identity` for `Effect`.
*
* E.g. these are equivalent:
*
* f... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg... |
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { registerBlockType } from '@wordpress/blocks';
import { DEFAULT_COLUMNS } from '@woocommerce/block-settings';
import { Icon, widgets } from '@woocommerce/icons';
/**
* Internal dependencies
*/
import './editor.scss';
import Bl... |
(function(d3, fc) {
'use strict';
var data = fc.data.random.financial().startDate(new Date(2014, 1, 1))(50);
var width = 600, height = 250;
var container = d3.select('#envelope')
.append('svg')
.attr('width', width)
.attr('height', height);
// Create scale for x axis
... |
# 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
# distributed under t... |
var Promise = require('bluebird');
var parseDeviceType = require('./parser.devicetype.js');
var parseRoom = require('./parser.room.js');
var parseHouse = require('./parser.house.js');
var parseTime = require('./parser.time.js');
var parseChannel = require('./parser.channel.js');
module.exports.parse = function parse(t... |
var namespaceg24__lib =
[
[ "CUDA_kernel_size", "namespaceg24__lib_1_1_c_u_d_a__kernel__size.html", "namespaceg24__lib_1_1_c_u_d_a__kernel__size" ],
[ "exceptions", "namespaceg24__lib_1_1exceptions.html", "namespaceg24__lib_1_1exceptions" ],
[ "internals", "namespaceg24__lib_1_1internals.html", "namespaceg2... |
/* Angel Kids / Space Position hardware driver
driver by David Haywood
with some help from Steph (DSWs, Inputs, other
bits here and there)
2 Board System, Uses Boards X090-PC-A & X090-PC-B
Both games appear to be joint Sega / Nasco efforts
(although all I see in Angel Kids is 'Exa Planning'
but I think... |
# pylint: disable=g-bad-file-header
# Copyright 2015 The Bazel 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
... |
/**
* Load required plugins.
*/
window.$ = window.jQuery = require('jquery');
window.Popper = require('popper.js/dist/umd/popper');
require('bootstrap');
window.SmoothScroll = require('smoothscroll-for-websites');
require('objectFitPolyfill');
/**
* Create window.page and init the application.
*/
+function($, w... |
/**
* Copyright (c) INOVUA SOFTWARE TECHNOLOGIES.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Menu from '../Menu';
/**
* Give an wrapper instance from enzyme.mount
* it will return it's submenu
*/
export default wrappe... |
// Copyright (c) 2019 Uber Technologies, Inc.
//
// 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... |
import $ from 'jquery';
class MobileMenu {
constructor() {
this.siteHeader = $('.site-header');
this.menuIcon = $('.site-header__menu-icon');
this.menuContent = $('.site-header__menu-content');
this.events();
}
events() {
this.menuIcon.click(this.toggleMenu.bind(this));
}
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_MAIN_H
#define BITCOIN_MAIN_H
#include "bignum.h"
#include "sync.h... |
# -*- coding: utf-8 -*-
"""
babel.core
~~~~~~~~~~
Core locale representation and locale data access.
:copyright: (c) 2013 by the Babel Team.
:license: BSD, see LICENSE for more details.
"""
import os
from babel import localedata
from babel._compat import pickle, string_types
from babel.plural im... |
import Component from '@ember/component';
import { inject as service } from '@ember/service';
export default Component.extend({
blog: service(),
tagName: 'ul',
classNames: ['nav']
});
|
// This is a placeholder until we can test forwardRef with Enzyme.
test('[Placeholder test for createHoC]', () => {
expect(true).toEqual(true);
});
|
const {DateTime} = require('luxon'),
EventEmitter = require('events');
module.exports = class Clock extends EventEmitter {
constructor (precision) {
super();
this.interval = null;
this.precision = precision;
}
stop () {
clearInterval(this.interval);
this.interva... |
import os
import pickle
import uuid
from dagster import (
AssetMaterialization,
ExpectationResult,
Failure,
Materialization,
ModeDefinition,
PipelineDefinition,
SolidDefinition,
TypeCheck,
)
from dagster import _check as check
from dagster.core.definitions.dependency import NodeHandle
f... |
from functools import partial
from urllib.parse import urlencode
from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
from geopy.location import Location
from geopy.util import logger
__all__ = ("BANFrance", )
class BANFrance(Geocoder):
"""Geocoder using the Base Adresse Nationale France API.
Docume... |
# -*- coding: utf-8 -*-
"""
/dms/exercisefile/utils.py
.. enthaelt Hilfefunktionen fuer Aufgabendateien
Django content Management System
Hans Rauch
hans.rauch@gmx.net
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst werden.
0.01 07.05.2008 Begin... |
# -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... |
/*! @file : sdk_hal_uart0.c
* @author Luis José Castrillo Fernández
* @version 1.0.0
* @date 30 ene. 2021
* @brief Driver para
* @details
*
*/
/*******************************************************************************
* Includes
**********************************************************************... |
import sys
import enso.platform
if sys.platform != "darwin":
raise enso.platform.PlatformUnsupportedError()
def provideInterface( name ):
if name == "input":
import enso.platform.osx.input
return enso.platform.osx.input
elif name == "graphics":
import enso.platform.osx.graphics
... |
# -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket 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 applicab... |
nome = input('Nome: ')
a = nome.upper()
b = 'SILVA' in a
print(f'Seu nome tem Silva: {b}')
|
# Copyright 2019 Atalaya Tech, 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 applicable law or agreed to in writing, ... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/classCallCheck'));
var _createClass = _interopDefault(require('@babel/runtime/helpers/createClass'));
var _possibleCons... |
# Copyright 2016 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 applicable law or a... |
import React, { Component } from 'react';
import { DataTable } from '../../components/datatable/DataTable';
import { Column } from '../../components/column/Column';
import { ProductService } from '../service/ProductService';
import { TabView } from '../../components/tabview/TabView';
import { useLiveEditorTabs } from '... |
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:prettier/recommended',
'prettier',
'prettier/@typescript-eslint'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
... |
# -*- coding: utf-8 -*-
#
# polib documentation build configuration file, created by
# sphinx-quickstart on Sat Jan 1 16:45:49 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... |
import os
import sys
import glob
from multiprocessing import Pool
from pytube import YouTube
from time import sleep
class Data:
def __init__(self, url, seqname, list_timestamps):
self.url = url
self.list_seqnames = []
self.list_list_timestamps = []
self.list_seqnames.append(seqnam... |
import pickle
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from tqdm import tqdm
import os
def create_folder(path):
if not os.path.exists(path):
os.makedirs(path)
def save_pkl(pkl_data, save_path):
with open(save_path, 'wb') as f:
pickle.dump(p... |
// Copyright (c) 2018 Aurigma Inc. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
Type.registerNamespace("Aurigma.GraphicsMill");
Aurigma.GraphicsMill.UpdateStatus = function () {
/// <summary>Specifies a current bitmap status.</summar... |
var SAMPLE_DATA = {
simple: [
new labella.Node(1,50),
new labella.Node(2,50),
new labella.Node(3,50),
new labella.Node(3,50),
new labella.Node(3,50),
new labella.Node(304,50),
new labella.Node(454,50),
new labella.Node(454,50),
new labella.Node(454,50),
new labella.Node(804,50)... |
import{r as s,h as t,H as e}from"./p-b054f48f.js";const i=class{constructor(t){s(this,t),this.name="",this.value="",this.labelName="",this.checked=!1}render(){return t(e,{class:"mx-switch"},t("label",{class:"relative inline-flex flex-nowrap align-center items-center cursor-pointer text-sm w-36 h-14"},t("input",{class:"... |
# -*- coding: utf-8 -*-
"""
Family entity class implementation
"""
__author__ = 'Samir Adrik'
__email__ = 'samir.adrik@gmail.com'
from typing import Union
from source.util import Assertor, Tracking
from .entity import Entity
from .female import Female
from .male import Male
class Family(Entity):
"""
Fam... |
import gym
import numpy as np
import pytest
from stable_baselines3 import A2C, DDPG, DQN, PPO, SAC, TD3
from stable_baselines3.common.env_util import make_vec_env
from stable_baselines3.common.evaluation import evaluate_policy
class DummyMultiDiscreteSpace(gym.Env):
def __init__(self, nvec):
super(DummyM... |
// @ts-nocheck
import path from 'path';
import alias from '@rollup/plugin-alias';
import multiInput from 'rollup-plugin-multi-input';
import babel from '@rollup/plugin-babel';
import ts from 'rollup-plugin-ts';
import { defineConfig } from 'rollup';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { ... |
import os
import platform
from collections import OrderedDict
from conans.client import tools
from conans.client.build.compiler_flags import architecture_flag, parallel_compiler_cl_flag
from conans.client.build.cppstd_flags import cppstd_from_settings, cppstd_flag_new as cppstd_flag
from conans.client.tools import cro... |
from typing import List
import numpy as np
# todo remove boilerplate duplications
# todo comments
# todo logging
# todo naming
from deeppavlov.models.go_bot.nlu.dto.nlu_response import NLUResponse
from deeppavlov.models.go_bot.policy.dto.digitized_policy_features import DigitizedPolicyFeatures
from deeppavlov.models... |
var thumbUp = document.getElementsByClassName("fa-thumbs-up");
var trash = document.getElementsByClassName("fa-trash");
Array.from(thumbUp).forEach(function(element) {
element.addEventListener('click', function(){
element.classList.add("complete")
const name = this.parentNode.parentNode.childNode... |
/* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */
const WB_AREA_SEL = '.room-block .wb-block';
const WBA_WB_SEL = '.room-block .wb-block .wb-tab-content';
const VIDWIN_SEL = '.video.user-video';
const VID_SEL = '.video-container[id!=user-video]';
const CAM_A... |