text stringlengths 3 1.05M |
|---|
(window.webpackJsonp=window.webpackJsonp||[]).push([[1151],{"4xQ0":function(n,o){!function(n){n.ng=n.ng||{},n.ng.common=n.ng.common||{},n.ng.common.locales=n.ng.common.locales||{};var o=void 0;n.ng.common.locales.fur=["fur",[["a.","p."],o,o],o,[["D","L","M","M","J","V","S"],["dom","lun","mar","mie","joi","vin","sab"],[... |
import logging
import sqlite3
from exchanges import exchanges
import utils.globals as g
class Database:
def __init__(self):
self._log: logging.Logger = logging.getLogger("bot.exchanges.Database")
self._db: sqlite3.Connection = sqlite3.connect("exchanges.db")
self.cursor: sqlite3.Cursor = ... |
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* 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,... |
import numpy as np
def mandelbrot():
pmin, pmax, qmin, qmax = -2.5, 1.5, -2, 2
ppoints, qpoints = 200, 200
max_iterations = 300
infinity_border = 100
image = np.zeros((ppoints, qpoints))
for ip, p in enumerate(np.linspace(pmin, pmax, ppoints)):
for iq, q in enumerate(np.linspace(qmin, ... |
import json
import re
from django.db import IntegrityError, transaction
from django.shortcuts import get_object_or_404
from rest_framework import generics, status
from rest_framework.exceptions import ParseError
from rest_framework.parsers import MultiPartParser
from rest_framework.permissions import IsAuthenticated
f... |
from elsapy.elsclient import ElsClient
from elsapy.elsprofile import ElsAuthor
from elsapy.elssearch import ElsSearch
from bs4 import BeautifulSoup
import requests
import numpy as np
import pandas as pd
import json
import os
import datetime
VALID_CATEGORIES = [
"Multidisciplinary",
"Artificial Intelligence"... |
#
# 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 th... |
import React, {Component} from 'react'
import Controller from "./Controller";
export default class App extends Component {
render() {
return (
<Controller/>
)
}
} |
(function ($) {
function dialog(options, yes, cancel) {
return new dialog.creater(options, yes, cancel);
};
dialog.creater = function(options, yes, cancel, no) {
this.guid = (new Date()).getTime();
var defaults = {
id : "pui-dialog-" + this.guid,
... |
# 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 the... |
## {{{ http://code.activestate.com/recipes/440656/ (r7)
import copy
import sys
from . import config
def compress_key(key):
"""Compresses tupled key to string."""
if is_collection(key):
key = config.namespace_delimiter.join(key)
return key
def expand_key(key):
"""Expands stringed keys to ... |
from dataclasses import dataclass
from sqlalchemy.sql.sqltypes import String
from ..utils import BaseModel, Column, Describable
@dataclass
class UnidadeMedida(Describable, BaseModel):
__tablename__ = 'unidade_medida'
id: str = Column(String(20), primary_key=True)
|
#games module
from Cricket.othercountrybowler import name_othercountrybowler
name_othercountrybowler()
|
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:14:12 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/VFX.framew... |
/** \file event.c
* \brief Event handling
*
* \author Andreas Boose <viceteam@t-online.de>
* \author Andreas Matthies <aDOTmatthiesATgmxDOTnet>
*/
/*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute... |
import { requireNativeViewManager } from 'expo-modules-core';
import React from 'react';
import { View } from 'react-native';
export default class PublisherBanner extends React.Component {
static defaultProps = { bannerSize: 'smartBannerPortrait' };
state = { style: {} };
_handleSizeChange = ({ nativeEvent ... |
/**
* System
*/
class Notify {
constructor(args = {}, loader = null) {
this.args = args
this.loader = loader
this.widgetSize = config.widgetFamily
}
// --------------------------------
async test() {
if (config.runsInWidget) {
return
}
let... |
#!/usr/bin/env python3
# *****************************************
# PiFire Main Control Program
# *****************************************
#
# Description: This script will start at boot, initialize the relays and
# wait for further commands from the web user interface.
#
# This script runs as a separate process fr... |
#!/usr/bin/env python2
import argparse
import sys
import intervaltree as itree
ap = argparse.ArgumentParser(description="Annotate a gap bed file with an associated TRF table.")
ap.add_argument("bed", help="Input BED file.")
ap.add_argument("trf", help="Input TRF table file.")
ap.add_argument("bed_out", help="Output B... |
import { StyleSheet, Platform } from 'react-native';
import { Colors } from '@/theme';
export const styles = StyleSheet.create({
container: {
flex: 1,
paddingHorizontal: 10,
backgroundColor: Colors.black.secondary,
...Platform.select({
ios: {
paddingTop: 40,
},
android: {
... |
/**
* @file CoinSpend.h
*
* @brief CoinSpend class for the Zerocoin library.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is released under the MIT license... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
"""Functions to convert NetworkX graphs to and from other formats.
The preferred way of converting data to a NetworkX graph is through the
graph constuctor. The constructor calls the to_networkx_graph() function
which attempts to guess the input type and convert it automatically.
Examples
--------
Create a graph wit... |
import os
import random
import torch
import numpy as np
import json
import pickle
import torch.nn as nn
from collections import OrderedDict
from pathlib import Path
import logging
logger = logging.getLogger()
def init_logger(log_file=None, log_file_level=logging.NOTSET):
'''
Example:
>... |
"""
Python 3 reorganized the standard library (PEP 3108). This module exposes
several standard library modules to Python 2 under their new Python 3
names.
It is designed to be used as follows::
from future import standard_library
standard_library.install_hooks()
And then these normal Py3 imports work on both... |
/***************************************************************************************************
******************************************* dependencies ******************************************
**************************************************************************************************/
require('dotenv')... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
* *
* USE, DISTRIBUTION AND REPRODUCTION OF... |
const imagesLoaded = require('imagesloaded');
// Preload images
const preloadImages = (selector = 'img') => {
return new Promise((resolve) => {
imagesLoaded(document.querySelectorAll(selector), resolve);
});
};
// Preload images
const preloadFonts = (id) => {
return new Promise((resolve) => {
... |
# -*- 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... |
# Generated by Django 2.2.8 on 2022-04-03 06:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('studentservices', '0007_courseguidegroup_name'),
]
operations = [
migrations.AlterField(
model_name='resume',
name='... |
import { NavigationActions,StackActions } from 'react-navigation';
let _navigator;
function setTopLevelNavigator(navigatorRef) {
_navigator = navigatorRef;
}
function navigate(routeName, params) {
_navigator.dispatch(
NavigationActions.navigate({
routeName,
params,
})
);
}
... |
'use strict';
var $resourceMinErr = angular.$$minErr('$resource');
// Helper functions and regex to lookup a dotted path on an object
// stopping at undefined/null. The path must be composed of ASCII
// identifiers (just like $parse)
var MEMBER_NAME_REGEX = /^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;
function isValidDotte... |
"""
Helper functions for multimodal-ranking
"""
import theano
import theano.tensor as tensor
import numpy
import warnings
from collections import OrderedDict
def zipp(params, tparams):
"""
Push parameters to Theano shared variables
"""
for kk, vv in params.iteritems():
tparams[kk].set_value(vv... |
# THIS FILE GENERATED FROM SETUP.PY
this_version = '0.2.8'
stable_version = '0.2.8'
readme = '''--------------------------------------------------------------------------
pathos: parallel graph management and execution in heterogeneous computing
--------------------------------------------------------------------------... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const parseJson = require("json-parse-better-errors");
const DelegatedModuleFactoryPlugin = require("./DelegatedModuleFactoryPlugin");
const ExternalModuleFactoryPlugin = require("./ExternalModuleFactoryP... |
/* syseli.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* $Procedure SYSELI ( Select a subset of the values of a symbol ) */
/* Subroutine */ int syseli_(char *name__, integer *begin, integer *end, char
*ta... |
/*! For license information please see component---src-pages-index-js-500bb76b96cbb25b1a26.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+6XX":function(t,e,n){var r=n("y1pI");t.exports=function(t){return r(this.__data__,t)>-1}},"+71K":function(t,e,n){n("E9XD");var r=n("kbA8");function o(t,... |
messages = {
'MainMenu': {
'text_ru': 'Главное меню',
'buttons': [
{'reply': True, 'row': 0, 'text_ru': 'FAQ'},
]
},
'MainFAQ': {
'text_ru': 'Это FAQ по роботе с клиентмами.\n\n'
'Можешь искать с помощью кнопок или по ключевому слову. '
... |
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* Copyright(c) 2018 Intel Corporation. All rights reserved.
*/
#ifndef __INCLUDE_SOUND_SOF_INFO_H__
#define __IN... |
import discord
from discord.commands import slash_command
from discord.ext import commands
import traceback
from utils.context import BlooContext, PromptData
from utils.logger import logger
from utils.permissions.checks import PermissionsFailure, admin_and_up
from utils.permissions.slash_perms import slash_perms
from ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[697],{"6pg7":function(e,o,t){var p,n,i;!function(s){if("object"==typeof e.exports){var c=s(0,o);void 0!==c&&(e.exports=c)}else n=[t,o],void 0===(i="function"==typeof(p=s)?p.apply(o,n):p)||(e.exports=i)}((function(e,o){"use strict";Object.defineProperty(o,"__esModule"... |
/**
* skylark-threejs-ex - A version of threejs extentions library that ported to running on skylarkjs
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/skylark-threejs-ex/
* @license MIT
*/
define(["skylark-threejs","../threex"],function(e,r){"use strict";var t,o,a=functi... |
#import <UIKit/UIKit.h>
#import "AppPlugin.h"
/// This class encapsulates the behavior of dynamically discovering plugins which
/// have been bundled with the app.
@interface PluginLoader : NSObject
/// Returns an array of classes which implement the `AppPlugin` protocol, each
/// of which is the principal class of a... |
import tensorflow as tf
class WSSNet():
def build_network(self, input_layer):
print('UNet BN')
padding = 'SAME'
channel_nr = 64
[xyz0, xyz1, xyz2, v1, v2] = input_layer
input_layer = tf.keras.layers.concatenate([xyz0, xyz1, xyz2, v1, v2])
# === Sta... |
import torch
import lightconvpoint.knn as nearest_neighbors
def batched_index_select(input, dim, index):
index_shape = index.shape
views = [input.shape[0]] + [
1 if i != dim else -1 for i in range(1, len(input.shape))
]
expanse = list(input.shape)
expanse[0] = -1
expanse[dim] = -1
i... |
#include "common.h"
#include "utilities.h"
#include "precisionConverter.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define VX_MAX_TENSOR_DIMS_CT 6
//Local function that returns a pointer to a function that converts image data to a float
float(*convertToFloatFunc(vx_enum df))(const char*)
{
if (df... |
/**
* @typedef {import("../../src/models/log")} Log
*/
// # # # #
// # # #
// # ### ## # # # ## ### # #
// # # # # # # # # # # # #
// # # # ## # # # ##### # # #
// # # # # # # # ... |
# Copyright 2018 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... |
#ifndef COMMUNICATION_H
#define COMMUNICATION_H
#include "global.h"
#include "transaction.h"
#include "transport.h"
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include "framework.h"
class interfaceFramework;
enum MessageType{
REPLICATE, REPLICATE_WRITES
};
class Me... |
import { Schema } from 'mongoose';
const user = new Schema({
userName: {
type: String,
required: true
},
messages: [
{
type: Schema.Types.ObjectId,
ref: 'Message'
}
]
});
export default user;
|
from leapp.actors import Actor
from leapp.models import StorageInfo
from leapp.reporting import Report, create_report
from leapp import reporting
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
class CheckNfs(Actor):
"""
Check if NFS filesystem is in use. If yes, inhibit the upgrade process.
Actor ... |
import wfdb
import numpy as np
from uritools import urisplit, uriunsplit, urijoin
import os
import pickle
from .dsfilter import *
from ndk.ui import iprint,wprint,eprint
import ndk.ds
import time
NEW_NBM = True
NEW_FILTERING = True
#
# nbf = NDK Binary Format: This is a pyramid-style "native"
# representation for NDK.... |
// This optional code is used to register a service worker.
// register() is not called by default.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on subsequent visits to a p... |
import React from 'react'
import { StatusBar } from 'react-native'
import '~/config/ReactotronConfig'
import Routes from '~/routes'
const App = () => (
<>
<StatusBar backgroundColor="transparent" translucent barStyle="light-content"/>
<Routes/>
</>
)
export default App
|
"""
Copyright 2019 Ipregistry (https://ipregistry.co).
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 app... |
'use strict';
/* jshint sub: true */
var path = require('path');
var EventEmitter = require('events').EventEmitter;
var should = require('chai').should();
var crypto = require('crypto');
var ravencore = require('ravencore-lib');
var _ = ravencore.deps._;
var sinon = require('sinon');
var proxyquire = require('proxyqu... |
import colorsys
def convert_color(color):
color = [round(comp * 255.0) for comp in color]
color = "".join([format(comp, "x") for comp in color])
color = color.zfill(6)
return f'"#{color}"'
theme = open("theme.yaml").read()
for color_name, color_hue in [
["Red", 0],
["Fire", 18],
["Orange... |
from hypothesis import given, assume
from hypothesis import strategies as st
from dateutil import tz
from dateutil.parser import isoparse
import pytest
# Strategies
TIME_ZONE_STRATEGY = st.sampled_from([None, tz.UTC] +
[tz.gettz(zname) for zname in ('US/Eastern', 'US/Pacific',
... |
/* GAME STRUCTURE:
- Have a predetermined list of words
- Pick a random word from the list
- The user guesses letters and tries to guess the word
- Check that the letters are valid
- Keep track of all letters already guessed
- Show letters guessed correctly with progress
- Finish when player guesses word or runs out of... |
"""
Three-dimensional rotation implemented as subclasses of Transformation. Support
for various parameterizations including quaternions, Euler angles, axis-angle
and the exponential map.
"""
import abc
import numpy as np
import csb.numeric as csb
from .trafo import Transformation
from . import euler
from . import exp... |
# Copyright 2019 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... |
// @flow
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Component from './component';
import { } from '../../actions';
import { makeBioState } from '../../selectors';
import type { Dispatch } from '../../types';
const makeMapStateToProps = (): Object => {
const getBioState... |
"""
Data models for RTC
===================
In this domain we care about the data of transactions that consist in:
a "cesión" of a DTE, by a "cedente" to a "cesionario".
Natural key of a cesion
-----------------------
Each transaction can be uniquely identified by the group of fields defined in
:class:`CesionNatural... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Update encrypted deploy password in Travis config file
"""
from __future__ import print_function
import base64
import json
import os
from getpass import getpass
import yaml
from cryptography.hazmat.primitives.serialization import load_pem_public_key
from cryptography.h... |
# -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class CustomerFeedback(Document):
def create_action(self):
if len(self.feedback) != 0:
query ... |
import argparse
import cv2
import glob
import numpy as np
import os
import torch
from tqdm import tqdm
from basicsr.archs.srresnet_arch import MSRResNet
from basicsr.utils import tensor2img
from basicsr.utils.img_util import img2tensor
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
... |
import {uid} from '../utils';
import assert from '../utils/assert';
// Rendering primitives - specify how to extract primitives from vertices.
// NOTE: These are numerically identical to the corresponding WebGL/OpenGL constants
export const DRAW_MODE = {
POINTS: 0x0000, // draw single points.
LINES: 0x0001, // dra... |
const quitWithError = (message, callback) => callback(new Error(message), null);
export {
quitWithError
};
|
import logging
import sys
class Logger:
def __init__(self, logger_name='default_logger', level='INFO') -> None:
self.logger_name = logger_name
self.level = level
def setup_logger(self):
logger = logging.getLogger(self.logger_name)
if len(logger.handlers) == 0:
... |
# encoding: utf-8
"""
negotiated.py
Created by Thomas Mangin on 2012-07-19.
Copyright (c) 2009-2017 Exa Networks. All rights reserved.
License: 3-clause BSD. (See the COPYRIGHT file)
"""
from exabgp.protocol.family import AFI
from exabgp.bgp.message.open.asn import ASN
from exabgp.bgp.message.open.asn import AS_TRANS... |
import Vue from 'vue';
import App from './App';
Vue.config.productionTip = false;
App.mpType = 'app';
// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);
// import jwx from '@/common/jwx'
// Vue.prototype.$jwx = jwx
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore... |
# 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 use ... |
'use strict';
/* global browserTrigger */
splitMoveTests('touch', 'touchstart', 'touchmove', 'touchend');
splitMoveTests('mouse', 'mousedown', 'mousemove', 'mouseup');
// Wrapper to abstract over using touch events or mouse events.
function splitMoveTests(description, startEvent, moveEvent, endEvent) {
return desc... |
import { createSelector } from 'reselect';
import sortBy from 'lodash/sortBy';
import { getSelectedContext } from 'app/app.selectors';
const getContexts = state => state.app.contexts;
export const getSelectedCommodityPairs = createSelector(
[getSelectedContext, getContexts],
(selectedContext, contexts) =>
con... |
## Consolidates the target sides of all rules along eith their counts ##
import os
import sys
import heapq
from collections import defaultdict
def readNMerge(fileLst, outFile):
'''Read entries from the individual files and merge counts on the fly'''
candLst = []
tgtDict = {}
total_rules = 0
sto... |
from typing import List
import numpy as np
from scipy import stats
from server.optimizer.prep_data import AssetData
class PortfolioReturns(object):
def __init__(self, asset_data: List[AssetData],
weights: np.ndarray = np.array([1.]), benchmark_data: AssetData = None):
"""Default value fo... |
[{"Owner":"vsh91","Date":"2016-07-08T12:22:35Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI_t_m not sure what I_t_m doing wrong but I can_t_t get bgui to show up in my scene.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI_t_m creating it within the createScene() function.\... |
/**
* @file os_time.h
* @author TheSomeMan
* @date 2020-11-30
* @copyright Ruuvi Innovations Ltd, license BSD-3-Clause.
*/
#ifndef OS_TIME_H
#define OS_TIME_H
#include <time.h>
#include "freertos/FreeRTOS.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum os_time_month_e
{
OS_TIME_MONTH_JAN = 0,
OS... |
import React, { Component } from 'react';
import colors from "../../constants/colors";
import Classifier from "./Classifier";
import styled from 'styled-components';
const MultiClassifierComponent = styled.div`
`;
class MultiClassifier extends Component {
constructor(props) {
super();
this.state = {
se... |
const https = require('https');
/**
* AJAX Fetch
*
* @author Isak Hauge
*
* @param {string} url - The path and filename of the PHP AJAX handler.
* @param {string} searchValue - The search value.
* */
module.exports.ajaxFetch = (url, searchValue) => {
return new Promise((resolve, reject) => {
https.get(url + ... |
import os
import pytest
from stable_baselines import A2C, ACER, ACKTR, DQN, PPO1, PPO2, TRPO
from stable_baselines.common import set_global_seeds
from stable_baselines.common.identity_env import IdentityEnv
from stable_baselines.common.vec_env import DummyVecEnv
N_TRIALS = 2000
MODEL_LIST = [
A2C,
ACER,
... |
# -*- 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... |
/**
* Super simple wysiwyg editor v0.8.10
* https://summernote.org
*
* Copyright 2013- Alan Hong. and other contributors
* summernote may be freely distributed under the MIT license.
*
* Date: 2018-02-20T00:34Z
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? fact... |
import gym
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.obs_dict_replay_buffer import ObsDictRelabelingBuffer
from rlkit.launchers.launcher_util import setup_logger
from rlkit.samplers.data_collector import GoalConditionedPathCollector
from rlkit.torch.her.her import HERTrainer
from rlkit.torch.ne... |
"""
ASGI config for fleamarket project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... |
import { copySync } from 'fs-extra';
import * as r from 'ramda';
import Store from 'electron-store';
import * as manifest from 'js/manifest';
import * as json_file from 'js/json_file';
import * as chosen_folder_path from 'js/chosen_folder_path';
import * as picked_colors from 'js/picked_colors';
import * as imgs from... |
from models.glow.glow import Glow
|
# coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... |
(function(_0x1653cb,_0xbbf87d){function _0x2ba7ac(_0x51452c,_0x4d440e,_0x7c1cf6){return _0x2827(_0x4d440e-'0x104',_0x7c1cf6);}const _0x45bc5f=_0x1653cb();function _0x4c702a(_0x59da4a,_0x1e2e05,_0x31e8ca){return _0x2827(_0x31e8ca-'0x3a3',_0x1e2e05);}function _0x1792e6(_0x2ddbc2,_0x4975ff,_0x336f7e){return _0x2827(_0x497... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
@class AVAssetResourceLoader, AVAssetResourceLoadingRequest, AVAssetResourceRenewalRequest, NSURLAuthenticationChallenge;
@protocol AVAssetResourceLoaderDeleg... |
# -*- coding: utf-8 -*-
from ccxt.base.exchange import Exchange
import math
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from ccxt.base.errors import InsufficientFunds
from ccxt.base.errors import InvalidOrder
from ccxt.base.errors import OrderNotFound
class... |
getData(1);
$(document).ready(function(){
var nameDeli='<a href="/types">Users Types</i></a>';
$('.nameDeli').html(nameDeli);
$('#sidebar1').addClass('active')
//get base URL *********************
var url = $('#url').val();
//display modal form for creating new product ***********... |
"use strict";
function replace_version_string (str) {
var re, version;
Object.getOwnPropertyNames (versions).forEach (function (channel) {
Object.getOwnPropertyNames (versions[channel]).forEach (function (platform) {
Object.getOwnPropertyNames (versions[channel][platform]).forEach (
... |
# -*- coding: utf-8 -*-
#
# pathconfig documentation build configuration file, created by
# sphinx-quickstart on Mon Sep 21 13:46:11 2015.
#
# 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.
#
... |
''' Thermodynamic Parameter Routines '''
from __future__ import division
import numpy as np
import numpy.ma as ma
from sharppy.sharptab import interp, utils, thermo, winds
from sharppy.sharptab.constants import *
__all__ = ['DefineParcel', 'Parcel', 'inferred_temp_advection']
__all__ += ['k_index', 't_totals... |
// import React from "react";
// export default function Task({
// task: { id, title, state },
// onArchiveTask,
// onPinTask,
// }) {
// return (
// <div className="list-item">
// <input type="text" value={title} readOnly={true} />
// </div>
// );
// }
import React from "react";
import PropTyp... |
__filename__ = "password.py"
__author__ = "Chris Byrd"
__credits__ = ["Chris Byrd"]
__license__ = "MIT"
__version__ = "0.7.1"
__maintainer__ = "Bartek Radwanski"
__email__ = "bartek.radwanski@gmail.com"
__status__ = "Stable"
"""Password hashing and authentication logic for DUM server."""
import binascii
import hashli... |
import React, { Component } from "react";
import { Text, View, StyleSheet, KeyboardAvoidingView } from "react-native";
import { connect } from "react-redux";
import { Overlay, Button, Input, Card } from "react-native-elements";
import { Textarea } from "native-base";
import DateTimePicker, {
TimePickerOptions,
} from... |
// @flow
import React, { useState, useMemo } from "react"
import { makeStyles } from "@material-ui/core/styles"
import Grid from "@material-ui/core/Grid"
import Header from "../Header"
import Button from "@material-ui/core/Button"
import Typography from "@material-ui/core/Typography"
import templates from "./templates... |
'''
Preprocess STRING edge lists for use in deepNF.
This script reads the six STRING edge lists in $CEREVISIAEDATA/deepNF and
exports six adjacency matrices in `.mat` format for use by deepNF.
Code originally by Vladimir Gligorijevi, adapted from
https://github.com/VGligorijevic/deepNF.
Usage:
python preprocessi... |