text stringlengths 3 1.05M |
|---|
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
// Portions ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ... |
// @ts-check
const HotelCharging = {
data() {
return {
activeSection: 'form',
bookingNumber: '',
acceptedConditions: false,
validationMessage: '',
validationMessageShowHelpAddon: false,
folioId: null,
chargeId: null,
chargingSession: null,
}
},
methods: {
... |
/*
* EnvConfig.h
*
* Author: Amir Rasouli
* email: aras@eecs.yorku.ca
*/
#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#ifndef ENVCONFIG_H_
#define ENVCONFIG_H_
namespace SearchConfig
{
enum searchMethod {greedy, lookMove};
}
class PanTil... |
import abc
import copy
from functools import reduce
import hearthbreaker.constants
from hearthbreaker.tags.base import Aura, AuraUntil, Effect, Buff, BuffUntil, Deathrattle
from hearthbreaker.tags.event import TurnEnded
from hearthbreaker.tags.selector import CurrentPlayer
from hearthbreaker.tags.status import Stealth... |
# coding=utf-8
# Author: Rion B Correia
# Date: Jul 24, 2019
#
# Description: Plots HS and MM genes that are differentially expressed, calculated by 1_calc_diff_gene_exp.R
#
# Instructions:
# For each species, two different comparisons are necessary:
# Cytes vs Gonia (interested in genes upregulated in Cytes)
# C... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import os
from pathlib import Path
import click
from clk.colors import Colorer
from clk.config import config, merge_settings
from clk.core import DynamicChoiceType, cache_disk
from clk.customcommands import CustomCommandResolver
from clk.decorators import ar... |
#include"../../../../INCLUDE/blaswrap.h"
|
angular.module('MainCtrl', []).controller('MainController', ['$scope', '$route', 'socket', 'localStorageService', function ($scope, $route, socket, localStorageService) {
if (window.location.pathname == '/') {
$('#navHome').addClass("active");
}
$scope.clearHistory = function() {
if (localStorageService.isSup... |
'use strict';
/*jshint unused: false*/
/*jshint bitwise: false*/
(function() {
var app = angular.module('upsConsole', [
'ngResource',
'ngNewRouter',
'ngAnimate',
'ngIdle',
'ui.bootstrap',
'patternfly.autofocus',
'patternfly.notification',
'patternfly.select',
'angular-c3',
'n... |
const { Engine } = require('json-rules-engine')
const report = require('./report')
const getRulesEngine = () => {
const engine = new Engine()
engine.on('success', async (event, almanac, ruleResult) => {
report(event, almanac, ruleResult)
})
engine.on('failure', async (event, almanac, ruleResult) => {
... |
import React, { Component } from "react";
import { Link } from "react-router-dom";
import "./Home.css";
export default class Home extends Component {
render() {
return (
<div className="row">
<div className="card w-75 offset-1">
<div className="card-body">
<h1 className="card... |
from io import StringIO
from pathlib import Path
from ....source_shared.app_id import SteamAppId
from .. import Lump, lump_tag
from ..datatypes.overlay import Overlay, VOverlay
@lump_tag(45, 'LUMP_OVERLAYS')
class OverlayLump(Lump):
def __init__(self, bsp, lump_id):
super().__init__(bsp, lump_id)
... |
module.exports = {
executeSimulation: require('./exec-simulation'),
runSignalOptimization: require('./exec-optimization')
}
|
module.exports = {
extends: ['standard', 'prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: false,
},
]
},
env: { mocha: true }
}
|
/**
* @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0
*
* @fileoverview General javaScript for Arduino app with material design.
*/
'use strict';
/** Create a namespace for the application. */
var Ardublockly = Ardublockly || {};
/** ... |
#############################################################################
##
## Copyright (C) 2016 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is part of the Qt for Python examples of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:BSD$
## You may use this file under the terms of the BSD lic... |
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup UnaStudio UNA Studio
* @{
*/
function BxDolStudioBuilderPage(oOptions) {
this.sActionUrl = oOptions.sActionUrl;
this.sPageUrl = oOptions.sPageUrl;
this.sObjName = oOptions.sObjName ==... |
import textwrap
from collections import defaultdict
from custom.inddex import filters
from custom.inddex.const import (
FOOD_ITEM,
NON_STANDARD_FOOD_ITEM,
NON_STANDARD_RECIPE,
STANDARD_RECIPE,
ConvFactorGaps,
FctGaps,
)
from custom.inddex.food import FoodData
from .utils import MultiTabularRep... |
import sys
python_major_version = sys.version_info[0]
if python_major_version == 3:
_string_types = (
str,
)
else:
_string_types = (
str,
unicode,
)
if python_major_version == 3:
def _text(value, encoding='utf-8', errors='strict'):
if isinstance(value, str):
... |
# Made by Mr. Have fun!
# Version 0.3 by H1GHL4ND3R
import sys
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
qn = "217_TestimonyOfTrust"
MARK_OF_TRUST_ID = 2734
LETTER_TO_... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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 app... |
from __future__ import absolute_import
from django.contrib.auth import authenticate
from django.contrib.sites.models import Site
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import PermissionDenied
from django.db import models
from django.utils.crypto import get_random_string... |
import chai from 'chai';
import MetaFormStateManager from '../src/components/MetaFormStateManager.js';
import metadataProvider from '../src/lib/metadataProvider.js';
import console from '../src/lib/helpers/consoleHelpers.js';
describe('MetaFormStateManagerSpec', function() {
it('Something', function() {
l... |
import {
warningCardHeader,
successCardHeader,
dangerCardHeader,
infoCardHeader,
primaryCardHeader,
roseCardHeader,
whiteColor
} from "../../../../assets/jss/material-dashboard-react.js";
const cardHeaderStyle = {
cardHeader: {
padding: "0.75rem 1.25rem",
marginBottom: "0",
borderBottom: "n... |
/******************************************************************************************************************************************
** **
** Fo... |
#ifndef ALIALGDETTRD_H
#define ALIALGDETTRD_H
#include "AliAlgDet.h"
/*--------------------------------------------------------
TRD detector wrapper
-------------------------------------------------------*/
// Author: ruben.shahoyan@cern.ch
class AliAlgDetTRD : public AliAlgDet
{
public:
//
enum {kCalibNR... |
const test = require('ava');
const env = require('./setup/environment');
const OBSWebSocket = require('..');
let unauthServer;
const obs = new OBSWebSocket();
test.before(async t => {
unauthServer = env.makeServer(4445);
await t.notThrowsAsync(obs.connect({
address: 'localhost:4445'
}));
});
test.after.alw... |
/* Copyright (c) 2022 Jin Li, dragon-fly@qq.com
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, d... |
import React, { Component } from "react";
import {NavLink} from "react-router-dom";
import logo from "../images/name1.png";
import email from "../images/icon/email.png";
import github from "../images/icon/github.png";
import linkedIn from "../images/icon/linkedin.jpg";
import "../style.css";
class Navbar extends Compo... |
#define RSTRING_NOT_MODIFIED 1
#include <ruby.h>
#include <rubyio.h>
#ifdef HAVE_OPENSSL_BIO_H
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/dh.h>
#include <openssl/err.h>
#include <openssl/x509.h>
typedef struct {
BIO* read;
BIO* write;
SSL* ssl;
SSL_CTX* ctx;
} ms_conn;
typedef stru... |
// Use this test page to test the API and features of the ValueHelp container.
// The interaction with the Field is tested on the field test page.
/* global QUnit, sinon */
/*eslint max-nested-callbacks: [2, 5]*/
sap.ui.define([
"sap/ui/mdc/ValueHelpDelegate",
"sap/ui/mdc/valuehelp/base/Container",
"sap/ui/mdc/val... |
import configparser
import os
import pytest
import subprocess
ABS_PATH = os.path.abspath(os.path.dirname(__file__))
FIXTURES_PATH = os.path.join(ABS_PATH, 'fixtures')
class MissingConfigError(Exception):
def __init__(self, *args):
super().__init__(*args)
class Utils:
def __init__(self, cfg, tmpdi... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: To use the 'upload' functionality of this file, you must:
# $ pipenv install twine --dev
import io
import os
import sys
from shutil import rmtree
from setuptools import Command, find_packages, setup
# Package meta-data.
NAME = "src"
DESCRIPTION = "My short des... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
load("9943750f07ea537be5f5aa14a5f7b1b7.js");
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.3.1.1
description: >
WeakMap ... |
import smartPosition from "../methods/smart-position";
import slideShow from "../methods/slide-show";
import slideHide from "../methods/slide-hide";
import simpleHide from "../methods/simple-hide";
import simpleShow from "../methods/simple-show";
export default function slide(el, config) {
$(config.target).addClass(... |
/**
* @fileoverview Forbid certain propTypes
*/
'use strict';
const variableUtil = require('../util/variable');
const propsUtil = require('../util/props');
const astUtil = require('../util/ast');
// ------------------------------------------------------------------------------
// Constants
// ----------------------... |
var isUpdate = false;
// REAL TIME CHART
$(function () {
// We use an inline data source in the example, usually data would
// be fetched from a server
var data = [],
totalPoints = 100, lastRead = 0, lastValue = 0;
function getRandomData() {
if (data.length > 0){
... |
import numpy as np
import pytest
import qutip
import warnings
@pytest.mark.parametrize(['method', 'kwargs'], [
pytest.param('direct', {}, id="direct"),
pytest.param('direct', {'solver':'mkl'}, id="direct_mkl",
marks=pytest.mark.skipif(not qutip.settings.has_mkl,
... |
import webapp2, logging
from database import store_feed_source, store_feed, \
store_backup_feed
class CleanAndMigrateHandler(webapp2.RequestHandler):
def get(self):
from google.appengine.ext import db
from datetime import timedelta
from database import FeedSource, Feed
# Any changes to this model ... |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Simulate Illumina sequencing reads.
"""
import os
import os.path as op
import random
import shutil
import sys
import logging
import math
from jcvi.formats.fasta import Fasta
from jcvi.apps.base import OptionParser, ActionDispatcher, sh
def main():
actions = (
... |
import {splitEvery} from './splitEvery'
test('happy', () => {
expect(splitEvery(3, [1, 2, 3, 4, 5, 6, 7])).toEqual([
[1, 2, 3],
[4, 5, 6],
[7],
])
expect(splitEvery(3)('foobarbaz')).toEqual(['foo', 'bar', 'baz'])
})
test('with bad input', () => {
expect(() =>
expect(splitEvery(0)('foo')).toEq... |
#!/usr/bin/env python
##
# Copyright (c) 2014 Cyrus Daboo. 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... |
/*
* 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
//
// ChatExtent.h
// BGExamples
//
// Created by Sean Levin on 5/13/20.
// Copyright © 2020 Verizon Media. All rights reserved.
//
#import "BGGraph.h"
NS_ASSUME_NONNULL_BEGIN
@class ParticipantExtent;
// @tag::chat_extent[]
@class ChatExtent;
@interface ChatExtent : BGExtent<ChatExtent*>
// @end::chat_extent[]... |
// Copyright (c) m8mble 2020.
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include "CaseStatus.h"
#include "Observation.h"
#include <chrono>
#include <cstdint>
#include <vector>
namespace clean_test::execute {
/// Collection of observation details about executing a single test-case.
class CaseResult {
public:... |
//
// GMSProjection.h
// Google Maps SDK for iOS
//
// Copyright 2012 Google Inc.
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://developers.google.com/maps/terms
//
#import <CoreLocation/CoreLocation.h>
/**
* GMSVisibleRegion is returned by visibleRegion on ... |
def get_gaussian_kernel(k=3, mu=0, sigma=1, normalize=True):
# compute 1 dimension gaussian
gaussian_1D = np.linspace(-1, 1, k)
# compute a grid distance from center
x, y = np.meshgrid(gaussian_1D, gaussian_1D)
distance = (x ** 2 + y ** 2) ** 0.5
# compute the 2 dimension gaussian
gaussian_... |
/* 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 applicable law or a... |
# coding: utf-8
"""
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: v2.11.8
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
... |
#!/usr/bin/env node
/*jslint node: true, unused:true */
'use strict';
var shutdown = require('shutdown');
var roomService = require('gitter-web-rooms');
var troupeService = require('gitter-web-rooms/lib/troupe-service');
var Promise = require('bluebird');
require('../../server/event-listeners').install();
var opts =... |
/**
* 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.
*
* @emails react-core
*/
'use strict';
let React;
let ReactDOM;
let ReactDOMServer;
let Scheduler;
let act;
// These tests rely ... |
const path = require("path")
const setupServer = require("../../../helpers/setup-server")
const { useApi } = require("../../../helpers/use-api")
const { initDb, useDb } = require("../../../helpers/use-db")
const adminSeeder = require("../../helpers/admin-seeder")
const {
simpleOrderFactory,
simpleShippingOptionF... |
import {combineReducers} from 'redux';
import AppReducer from './app_reducer'
const rootReducer = combineReducers({astronomy: AppReducer});
export default rootReducer; |
import os.path as osp
import logging
import time
import argparse
from collections import OrderedDict
import os
import options.options as option
import utils.util as util
from data.util import bgr2ycbcr
from data import create_dataset, create_dataloader
from models import create_model
from preprocess.utils import imresi... |
# Generated by Django 3.0.2 on 2020-02-25 17:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AudioModel',
fields=[
('id', models.AutoFie... |
import inspect
import logging
from .splunk_event import SplunkEvent
from .utilities import get_class_from_frame, get_frame_from_log_record
class SplunkHandler(logging.Handler):
def emit(self, record):
try:
logger_name = record.name
if record.exc_info:
event = self.e... |
/*
TODO
- Add flexible config for:
- data size, stop bits, parity, baud, etc.
- dma vs interrupt (or not).
- Error handling
- Transmit function improvements.
- Other UART Peripherals (currently only handles USART1 in UART mode.
- Overflow handling, etc. for Rx Queue.
*/
#pragma once
#ifndef DSY_UART_H
#define D... |
import os
import shutil
from src.text2system.config import SUFIX_ENV
def deleteOldManagedFiles():
root_path = os.path.dirname(os.path.dirname(__file__)) #parent directory
print('Excluding the old files...')
for dir in os.listdir(root_path):
full_dir_path = os.path.join(root_path, dir)
if ((... |
#!/usr/bin/env python
"""
This module provides various representations of transformed structures. A
TransformedStructure is a structure that has been modified by undergoing a
series of transformations.
"""
from __future__ import division
__author__ = "Shyue Ping Ong, Will Richards"
__copyright__ = "Copyright 2012, T... |
export default [
{
id: 0,
title: 'VIRTUe test building deadline',
allDay: true,
start: new Date(2018, 5, 2),
end: new Date(2018, 5, 3),
},
{
id: 1,
title: 'All day Demo Day',
allDay: true,
start: new Date(2018, 5, 8),
end: new D... |
module.exports = () => ({
presets: [
'@babel/preset-env',
],
});
|
# Copyright 2021 AI Singapore
#
# 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 applicable law or agreed to in writing... |
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
container: { flex: 1, flexDirection: 'row' },
text: {
flex: 1,
marginHorizontal: 10,
textAlignVertical: 'center',
fontSize: 18
}
});
export default styles; |
! function(e) {
var t = {};
function n(r) {
if (t[r]) return t[r].exports;
var o = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports
}
n.m = e, n.c = t, n.d = function(e, t, r) {
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Kholloscope
~~~~~~~~~~~
Petit framework pour grand kholloscope. Publier facilement,
en Python, le kholloscope d'une classe préparatoire.
Fichier de configuration.
"""
__zone = 'c'
__debug = False
__domain = 'localhost'
__port = 8080
__route = '... |
from setuptools import setup
import sys
import os
import imp
from setuptools import Extension
import platform
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
dirname = os.path.dirname(__file__)
path_version = os.path.join(dirname, "vaex/core/_version.py")
version = imp.load_source('version', path_version)
nam... |
angular.module('application', ['ui.scroll', 'ui.scroll.grid'])
.controller('gridController', [
'$scope', '$log', '$timeout', function ($scope, console, $timeout) {
var datasource = {};
datasource.get = function (index, count, success) {
$timeout(function () {
var result = [];
for (var i = index;... |
"""Wrapper for signalfd(2) system call.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import errno
import logging
import os
import ctypes
from ctypes import (
c_int,
c_void_p,
c_uint32,
c_uint64... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
exports.__esModule = true;
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _reactOnclic... |
/*
* This file is part of the Symfony Webpack Encore package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
const chalk = require('chalk');
const messagesKeys = [
... |
# exported from PySB model 'model'
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD
Model()
Monomer('Ligand', ['Receptor'])
Monomer('ParpU', ['C3A'])
Monomer('C8A', ['BidU'])
Monomer('SmacM', ['BaxA'])
Monomer('BaxM', ['BidM', 'BaxA'])
M... |
from random import randint
import pytest
from starlette.applications import Starlette
from starlette.endpoints import HTTPEndpoint
from starlette.responses import JSONResponse
from starlette.routing import Mount, Route
from starlette.testclient import TestClient
from spectree import SpecTree, Response
from .common im... |
#define _GUN_SOURCE
#include "opend.h"
#include <syslog.h>
int debug, oflag, client_size, log_to_stderr;
char errmsg[MAXLINE];
char *pathname;
Client *client = NULL;
int main(int argc, char *argv[]){
int c;
log_open("open.serv",LOG_PID,LOG_USER);
opterr = 0;
while((c = getopt(argc, argv,... |
/*global L, Ti, Titanium, joli, uploader, logger, models, sus, cust*/
/*jslint nomen: true, sloppy : true, plusplus: true, vars: true, newcap: true*/
var theme = require('/ui/common/theme');
var _ = require('/lib/underscore-min');
var model = require('model/model');
function cf_view() {
var win = Ti.UI.createWindow... |
import baseFlatten from './_baseFlatten';
import baseIteratee from './_baseIteratee';
import baseUniq from './_baseUniq';
import isArrayLikeObject from './isArrayLikeObject';
import last from './last';
import rest from './rest';
/**
* This method is like `_.union` except that it accepts `iteratee` which is
* invoked... |
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:51:02 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/Frameworks/Vision.framework/Vision
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
... |
import pytest
import os
import numpy as np
import shutil
@pytest.fixture
def dummy_metadata():
import zarr
from ..metadata import MetaData
fn = os.path.join('scarf', 'tests', 'datasets', 'dummy_metadata.zarr')
if os.path.isdir(fn):
shutil.rmtree(fn)
g = zarr.open(fn)
data = np.array([... |
#!/usr/bin/env python3
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from test_framework.script import *
from test_framework.mininode import *
from test_framework.blocktools import *
from test_framework.xray import *
"""
This test specifically tests that inputs to t... |
#!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... |
# -*- coding: utf-8 -*-
#
# PROJ documentation build configuration file, created by
# sphinx-quickstart on Wed Feb 24 10:47:15 2016.
#
# 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 ... |
/**
* @license
*
* Copyright (c) 2016, Syuuhei Kuno
* 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
* l... |
$(document).ready(function() {
$('[data-toggle="log-tooltip"]').tooltip();
$("#monitor-start_time").flatpickr({
dateFormat: "Y-m-d H:i:S",
enableTime: true,
enableSeconds: true,
time_24hr: true,
allowInput: false
});
$("#monitor-end_time").flatpickr({
date... |
from typing import List, Union
import ray
from ray._private.client_mode_hook import client_mode_hook
@client_mode_hook
def _internal_kv_initialized():
worker = ray.worker.global_worker
return hasattr(worker, "mode") and worker.mode is not None
@client_mode_hook
def _internal_kv_get(key: Union[str, bytes]) ... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef Sk4fGradientPriv_DEFINED
#define Sk4fGradientPriv_DEFINED
#include "SkColor.h"
#include "SkHalf.h"
#include "SkImageInfo.h"
#include "SkNx.h"
#include "SkPM4f.h"
#inc... |
from django.contrib import admin
from django.http import HttpResponseRedirect
from django.urls import reverse_lazy
from .forms import ExcursionForm
from .models import Excursion, Participant
@admin.register(Excursion)
class ExcursionAdmin(admin.ModelAdmin):
form = ExcursionForm
list_display = ('__str__', 'se... |
/*
belle-sip - SIP (RFC3261) library.
Copyright (C) 2010-2013 Belledonne Communications SARL
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, either version 2 of the License, or
... |
# -*- coding: utf-8 -*-
"""
oauthlib.oauth2.rfc6749.grant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from __future__ import absolute_import, unicode_literals
import json
import logging
from .. import errors, utils
from ..request_validator import RequestValidator
from .base import GrantTypeBase
log = logging.getL... |
'use strict';
var https = require('https');
/**
* Checks SSL Expiry date
* @param {string} host
* @param {string} method
* @param {number} port
* @return {object}
*/
module.exports = (host, method, port) => {
if (!host) throw new Error("Invalid host");
const options = {
host: host,
method: method || 'HEA... |
// Copyright 2021 DeepMind Technologies Limited
//
// 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 la... |
/* -------------------------- */
/* forcecrash *
//* -------------------------- */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)
: typeof define === 'function' && define.amd ? define(['exports'], factory)
: (factory((global.forcecra... |
import { Implementation } from '../../Implementation';
import { MongooseFieldAdapter } from '@keystonejs/adapter-mongoose';
import { KnexFieldAdapter } from '@keystonejs/adapter-knex';
export class UuidImplementation extends Implementation {
constructor(path, { caseTo = 'lower' }) {
super(...arguments);
thi... |
# -*- coding: utf-8 -*-
"""
flask.app
~~~~~~~~~
This module implements the central WSGI application object.
:copyright: (c) 2014 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
from threading import Lock
from datetime import timedelta
from itertools import... |
"""
Ideals of Finite Algebras
"""
from __future__ import absolute_import
#*****************************************************************************
# Copyright (C) 2011 Johan Bosman <johan.g.bosman@gmail.com>
# Copyright (C) 2011, 2013 Peter Bruin <peter.bruin@math.uzh.ch>
#
# Distributed under the terms of the... |
# As a test suite for the os module, this is woefully inadequate, but this
# does add tests for a few functions which have been determined to be more
# portable than they had been thought to be.
import asynchat
import asyncore
import codecs
import contextlib
import decimal
import errno
import fractions
import getpass
... |
var group__FLC__ACNTL =
[
[ "MXC_F_FLC_ACNTL_ACNTL_POS", "group__FLC__ACNTL.html#ga2d3e8c3548b27d9beac2dbc28a1d7f16", null ],
[ "MXC_F_FLC_ACNTL_ACNTL", "group__FLC__ACNTL.html#gabd916dfa6330118f6afe23d41a87c876", null ]
]; |
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... |
define(["layout/masthead","utils/utils","libs/toastr","mvc/library/library-model","mvc/ui/ui-select"],function(a,b,c,d,e){var f=Backbone.View.extend({el:"#center",events:{"click #toolbtn_create_folder":"createFolderFromModal","click #toolbtn_bulk_import":"modalBulkImport","click #include_deleted_datasets_chk":"checkInc... |
import os
import sys
import ast
import numpy as np
import torch
from fairseq import checkpoint_utils, options, tasks, utils
from fairseq.dataclass.utils import convert_namespace_to_omegaconf
from fairseq_cli.generate import get_symbols_to_strip_from_output
fairseq_dir = os.path.dirname(os.path.dirname(os.path.dirname... |
(function (modules, global) {
var cache = {}, require = function (id) {
var module = cache[id];
if (!module) {
module = cache[id] = {};
var exports = module.exports = {};
modules[id].call(exports, require, module, exports, global);
... |
/****************************************************************************
* boards/arm/stm32/stm32f103-minimum/src/stm32_bringup.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional informatio... |