text
stringlengths
3
1.05M
import KeyUploadForm from './KeyUploadForm'; export default KeyUploadForm;
// LICENSE : MIT "use strict"; var myConsumer; try { myConsumer = require("./consumer.json"); } catch (error) {} var builtinConsumer = myConsumer || { key: "elj9OpeplSmpfA==", secret: "1hqDhJ2BfB6kozd/nHeLIW7WC/Y=" }; export default builtinConsumer;
import ipaddress from flask import request, redirect, url_for, current_app from flask_jsonschema import validate from sqlalchemy.exc import IntegrityError from app.core import ApiResponse, ApiException from . import api from ..import db from ..models import Organization, Email, ContactEmail @api.route('/organizations...
console.log('leListeStr main01 start json de data maDataBlocs'); var maDataBlocs = { "data00" : { "fic1" : "./qc/crypto/cmp/cmp_hdr.c.html" , "texte" : "File crypto/cmp/cmp_hdr.c 64 rule violations " , "fic2" : "./qc/crypto/cmp/cmp_hdr.c.xml" , "fic3" : "" } , "data01" : [ ] , "data02" : [ ]...
""" Describes objects """ from typing import Generic, Container, TypeVar, Hashable, Collection, Iterator T = TypeVar('T') class EmptyContainer(Container[T], Generic[T], Hashable): """ Describes an empty container """ def __contains__(self, item: object) -> bool: return False def __hash__...
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
class ByteArrayInputStream { buf = null; pos = null; mark = null; count = null; constructor() { if (arguments.length === 1) { this.ByteArrayInputStream.apply(this, arguments); } else { this.ByteArrayInputStreamWithArgs.apply(this, arguments); } } ByteArrayInputStream(buf) { t...
ace.define("ace/mode/c9search_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rule...
/** layui-v2.5.3 MIT License By https://www.layui.com */ ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"")...
from fastapi import Security, HTTPException from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials from app.apis.accountAPI import CitybikeAccount, LoginError, Login login_bearer = HTTPBearer() async def get_account(login_bearer: HTTPAuthorizationCredentials = Security(login_bearer)): try: ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # html5-quickstart documentation build configuration file, created by # sphinx-quickstart on Sun Jun 4 16:15:03 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in ...
require(['doh/main', 'dojo/parser', 'dojo/dom', 'dojo/on', 'dojo/Deferred', 'dojo/_base/html', 'dojo/domReady!', 'dijit/registry', 'jimu/dijit/ServiceURLInput' ], function(doh, parser, dom, on, Deferred, html, domReady, registry, ServiceURLInput) { parser.parse().then(function() { if (window.currentDijit...
// @flow // // Copyright (c) 2019-present, Cruise LLC // // This source code is licensed under the Apache License, Version 2.0, // found in the LICENSE file in the root directory of this source tree. // You may not use this file except in compliance with the License. import AlertCircleIcon from "@mdi/svg/svg/alert...
// // StockPriceGraphView.h // BenzingaNews // // Created by Joseph Constantakis on 7/11/13. // Copyright (c) 2013 Benzinga. All rights reserved. // #import <UIKit/UIKit.h> //#import "CorePlot/CorePlot-CocoaTouch.h" #import "CorePlot-CocoaTouch.h" #import "JCStockGraphController.h" @class JCStockPriceStore; @int...
#ifndef CMDSTREAM_XML #define CMDSTREAM_XML /* Autogenerated file, DO NOT EDIT manually! This file was generated by the rules-ng-ng headergen tool in this git repository: http://0x04.net/cgit/index.cgi/rules-ng-ng git clone git://0x04.net/rules-ng-ng The rules-ng-ng source files this header was generated from are: -...
# -*- coding: utf-8 -*- """ Created on Wed Oct 28 18:37:58 2020 @author: giamm """ # from tictoc import tic, toc import numpy as np import datareader #routine created to properly read the files needed in the following from load_profiler import load_profiler as lp ##################################################...
/* MPS2 CMSIS Library * * Copyright (c) 2006-2018 ARM Limited * SPDX-License-Identifier: BSD-3-Clause * 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 ret...
# # Copyright 2008 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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 3, or (at your option) # any later version. # #...
/*! **************************************************************************** jquery.dynatree.js Dynamic tree view control, with support for lazy loading of branches. Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) Dual licensed under the MIT or GPL Version 2 licenses. http://code.google.com/p/dynatr...
# coding=utf-8 """ Graficador, genera una superficie 3D que representa una función. @author ppizarror """ # Library imports import glfw from OpenGL.GL import * import sys import numpy as np import lib.transformations2 as tr2 import lib.basic_shapes as bs import lib.easy_shaders as es import lib.camera as cam from li...
from __future__ import ( absolute_import, unicode_literals, ) import os import uuid def get_upload_path(instance, filename): """ This function gets the upload path of the image. Returns the image path. """ file_name, file_extension = os.path.splitext(filename) model = instance._meta.m...
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_HEAP_CONCURRENT_ALLOCATOR_INL_H_ #define V8_HEAP_CONCURRENT_ALLOCATOR_INL_H_ #include "include/v8-internal.h" #include "src/common/globals.h...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-12-30 20:47:40 # @Author : Lewis Tian (taseikyo@gmail.com) # @Link : github.com/taseikyo # @Version : python3.8 """ 感觉 [豆瓣2019年度榜单](https://book.douban.com/annual/2019) 中给出的书签 样式挺好看的 感觉做网易云热评也好看 于是把背景和几个素材扣下来了 至于为什么不在 txt2img.py 上继续添加 感觉那代码写得太垃圾了......
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
"""Shouts a message in MEME way usage: .shout message originaly from : @corsicanu_bot """ from telethon import events @borg.on(events.NewMessage(pattern=r"\.shout", outgoing=True)) async def shout(args): if args.fwd_from: return else: msg = "```" messagestr = args.text messages...
from django.conf.urls import url from members import views urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^create/$', views.MemberCreateView.as_view(), name='create'), url(r'^view/(?P<pk>\d+)', views.MemberDetailView.as_view(), name='details'), url(r'^edit/(?P<pk>\d+)', vie...
/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; /** * PHP AST Tokens * @type {Object} */ module.exports = { values: { 101: "T_HALT_COMPILER", 102: "T_USE", 103: "T_ENCAPSED_AND_WHITES...
#!/usr/bin/env node var tap = require('../lib/root.js') var args = process.argv.slice(2) if (args.length === 1) { var path = require('path') var file = path.resolve(args[0]) tap.mochaGlobals() require(file) } else { for (var i = 0; i < args.length; i++) { tap.spawn(process.execPath, [__filename, args[i]]...
/* * Hardware definitions for Palm Zire72 * * Authors: * Vladimir "Farcaller" Pouzanov <farcaller@gmail.com> * Sergey Lapin <slapin@ossfans.org> * Alex Osborne <bobofdoom@gmail.com> * Jan Herman <2hp@seznam.cz> * * Rewrite for mainline: * Marek Vasut <marek.vasut@gmail.com> * * This program is free software...
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.ship.ShipBlueprints from pandac.PandaModules import NodePath, TextureStage, ModelNode, SceneGraphReducer, TextureAttrib, CullFac...
const path = require('path') const webpack = require('webpack') const { CheckerPlugin } = require('awesome-typescript-loader') const ExtractTextPlugin = require('extract-text-webpack-plugin') const CleanWebpackPlugin = require('clean-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const env =...
import path from 'path' import fs from 'fs-extra' import chai, { util, expect } from 'chai' import chailint from 'chai-lint' import core, { weacast } from 'weacast-core' import gfs from '../src' describe('weacast-gfs', () => { let app, service before(() => { chailint(chai, util) app = weacast() retur...
/* * Copyright (c) 2008 Silicon Graphics, Inc. * All Rights Reserved. * * 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. * * This program is distributed in the hope that it would be usefu...
// Copyright 2019 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef VM_TOOLS_CICERONE_CRASH_LISTENER_IMPL_H_ #define VM_TOOLS_CICERONE_CRASH_LISTENER_IMPL_H_ #include <string> #include <base/memory/weak_ptr.h>...
import catalog_to_table_list as ct # print(ct.catalog_to_table) # output_dir_sql must end with / output_dir_sql = "/uufs/chpc.utah.edu/common/home/sdss50/sdsswork/target/" + \ "catalogs/catalog_to_table/sql/" for i in range(len(ct.catalog_to_table)): table_name = ct.catalog_to_table[i] output_file_sql = ...
var searchData= [ ['sampleoffset',['SampleOffset',['../namespace_oxy_1_1_framework_1_1_a_l.html#a6007a4ca9087da6d326f8f084655de7faf77505cd3681a499d34acfed3a6e049e',1,'Oxy.Framework.AL.SampleOffset()'],['../namespace_oxy_1_1_framework_1_1_a_l.html#ad8ef6f5ea2ac48bf0084292793071806af77505cd3681a499d34acfed3a6e049e',1,'...
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test Gulden-cli""" from test_framework.test_framework import GuldenTestFramework from test_framework.ut...
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
#!/usr/bin/python ################################################################################ # 26a01dfa-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
/* eslint-disable @typescript-eslint/camelcase */ /// <reference types="cypress" /> import * as keyCodes from "../../util"; context("Task", () => { beforeEach(() => { cy.stubbedSetup(); cy.route("GET", "/api/boards/1/", "fixture:internals_board.json"); cy.visit("/b/1/"); cy.title().should("eq", "Inte...
//Classification: p/ZD/aS/A(v,c)/rc/ln //Written by: Sergey Pomelov int recursion(int argr) { if (argr > 1) { return (argr); } argr++; return (recursion(argr)); } int main(void) { int a = 1,b; b = 1 / (recursion(a)) ; return 0; }
(function(a,b){function c(a){return K.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function d(a){if(!cp[a]){var b=H.body,c=K("<"+a+">").appendTo(b),d=c.css("display");c.remove();if(d==="none"||d===""){cq||(cq=H.createElement("iframe"),cq.frameBorder=cq.width=cq.height=0),b.appendChild(cq);if(!cr||!cq.c...
from get import bingo import unittest import datetime import time import json import os import boto3 from moto import mock_dynamodb2 ## # Test the Get methods ## class TestGet(unittest.TestCase): ## # Tests get bingo option with no id ## def test_get_bingo_no_id(self): event = {} even...
/***************************************************************************//** * @file * @brief EFM32WG_CMU register and bit field definitions ******************************************************************************* * # License * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b> ************...
export const polygonVertices16 = "M15 2V0h-2v1.857L7 7 3 4.6V3H1v2h1v9H1v2h2v-1h10v1h2v-2h-1V2zM3 14V5.767l3 1.8V9h2V7.46l5-4.286V14z";
/* * VisualEditor user interface MWCitationDialog class. * * @copyright 2011-2017 Cite VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * Dialog for inserting and editing MediaWiki citations. * * @class * @extends ve.ui.MWTemplateDialog * * @constructor ...
import numpy as np import matplotlib.pyplot as plt blue_cones = np.array([(-16.7219, 9.56934), (-12.7553, 12.49), (-6.89062, 13.0757), (9.62956, 15.8379), (12.492, 17.0404), (15.1389, 16.5025), ...
# -*- coding: utf-8 -*- from openerp.osv import osv, fields # defined for access rules class product(osv.osv): _inherit = 'product.product' _columns = { 'event_ticket_ids': fields.one2many('event.event.ticket', 'product_id', 'Event Tickets'), }
// Object returned thru function function Error(msg) { this.message = msg; } function kast(x) { var f = new Error(x); return f; } var grot = kast(34); var flop = grot.message; //dumpValue(flop); //assert(flop == 34); var __result1 = flop; // for SAFE var __expect1 = 34; // for SAFE
import typing as t from io import BytesIO from flask import send_file from magic import Magic from opensfm import dataset from PIL import Image class ImageManager: def __init__(self, seqs: t.Dict[str, t.List[str]], path: str): self.seqs = seqs self.path = path def get_image(self, image_name:...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (...
var searchData= [ ['objective_0',['Objective',['../classoperations__research_1_1math__opt_1_1_objective.html',1,'operations_research::math_opt']]], ['objectivebasedneighborhood_1',['ObjectiveBasedNeighborhood',['../classoperations__research_1_1bop_1_1_objective_based_neighborhood.html',1,'operations_research::bop']...
# Helper file: get_networkx turns the specified qasm into a NetworkX graph of CNOTs import networkx as nx G = nx.Graph() def get_networkx(qasm_filepath): with open(qasm_filepath, 'r') as fp: G.graph['edge_weight_attr'] = 'weight' for i, line in enumerate(fp): if i % 1000 == 0: ...
export { UseClickOutsideDemo } from './use-click-outside.js'; export { useClipboardDemo } from './use-clipboard.js'; export { useColorSchemeHooks } from './use-color-scheme.js'; export { useDocumentTitleHook } from './use-document-title.js'; export { useElementSizeDemo } from './use-element-size.js'; export { useEventL...
#include <math.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <complex.h> #ifdef complex #undef complex #endif #ifdef I #undef I #endif #if defined(_WIN64) typedef long long BLASLONG; typedef unsigned long long BLASULONG; #else typedef long BLASLONG; typedef unsigned long BLASULONG; #endif #if...
from parsers.base_parser import BaseParser from trees.parse_tree import ParseTree import utils.utils import random import os.path import paths class IntraSententialParser(BaseParser): def __init__(self, name = 'IntraParser', verbose = False, window_size = 3): BaseParser.__init__(self, name, verbose, window...
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
import React from 'react' import styled from 'styled-components' import Img from 'gatsby-image' import { FaMoneyBillWave } from 'react-icons/fa' import { GiChiliPepper } from 'react-icons/gi' const Card = styled.div` box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); transition: 0.3s; border-radius: 5px; cursor: pointe...
for x in range(16): with open(f'..\\data\\cpu\\functions\\opcode_switch\\opcode_8xx2\\opcode_8xx2_{x}.mcfunction', 'w') as f: f.write(f'scoreboard players operation Global bitwise_1 = Global V{hex(x)[2:].upper()}\n' f'scoreboard players operation Global bitwise_1 /= c16 Constant\n') ...
#pragma once /// @cond #if defined(Widgets_EXPORTS) # define MADGINE_WIDGETS_EXPORT DLL_EXPORT #else # define MADGINE_WIDGETS_EXPORT DLL_IMPORT #endif #include "Madgine/clientlib.h" #include "imageloaderlib.h" #include "fontloaderlib.h" #include "meshloaderlib.h" #include "programloaderlib.h" #include "widget...
# Copyright 2008-2017 by Peter Cock. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Bio.SeqIO support fo...
"""Profile mode Dataset (PyTorch) object This module contains Dataset object with the triples information represented as (ui, pi, ni), where each is an identifier. To this triplet, we append the item image: (ui, pi, ni, ii) """ import torch import errno import os import numpy as np import pandas as pd from skimage i...
// // lets users search posts using the Algolia API // // https://community.algolia.com/react-instantsearch/Getting_started.html#install-react-instantsearch // import React from 'react' // import { // InstantSearch, // Hits, // SearchBox // } from 'react-instantsearch-dom' // import SearchResult from './SearchR...
#!/usr/bin/env python # -*- coding: utf-8 -*- import click from nltk.stem import SnowballStemmer @click.command() @click.argument('file', type=click.File('r')) def snowball_stemmer(file): stemmer = SnowballStemmer('english') for word in file: click.echo(stemmer.stem(word.strip())) if __name__ == '_...
import argparse import math from multiprocessing import Pool import os import string import cairo from freetype import * import numpy as np from svgpathtools import Line, Path, QuadraticBezier, CubicBezier, paths2svg from tqdm import tqdm def process_letter(font_char): try: font, char = font_char ...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:12:43 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/PrivateFrameworks/SiriKitFlo...
import unittest import library NUM_CORPUS = ''' On the 5th of May every year, Mexicans celebrate Cinco de Mayo. This tradition began in 1845 (the twenty-second anniversary of the Mexican Revolution), and is the 1st example of a national independence holiday becoming popular in the Western Hemisphere. (The Fourth of Ju...
import time import logging logger = logging.getLogger("monitor") from libs.logger_loader import * from libs.config_loader import load_config, validate_cfg from libs.urls_caller import monitor_url from libs.kafka_sender import process_pre_kafka_queue from libs.local_debug_loader import load_local_debug from multiproc...
import { makeStyles, useTheme } from '@material-ui/styles'; const useStyles = makeStyles((theme) => ({ notification: { fontFamily: 'roboto', color: theme.palette.text.primary, } })); export default useStyles;
# Copyright 2020 Alexis Lopez Zubieta # # 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, publi...
/* Time manager for the gouldboy color * * Notes on Timer control. The internal byte layout of TAC is as such: * Bit 2 - Timer Stop (0=Stop, 1=Start) * Bits 1-0 - Input Clock Select 00: 4096 Hz (~4194 Hz SGB) 01: 262144 Hz (~268400 Hz SGB) 10: 65536 Hz (~67110 ...
#!/usr/bin/env python3 # plotting inspired by https://matplotlib.org/3.5.0/tutorials/introductory/usage.html import math import matplotlib.pyplot as plt import numpy as np import pprint import random # the original dunning kruger experiment produced a graph where the data was split into quartiles for actual performa...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
/* cairo-wasm - a vector graphics library with display and print output * * Copyright © 2007 Chris Wilson * * This library is free software; you can redistribute it and/or * modify it either under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundation * (the...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.protocols.haproxy._parser}. """ from twisted.trial.unittest import SynchronousTestCase as TestCase from twisted.test.proto_helpers import MemoryReactor from twisted.internet.endpoints import ( _WrapperServerEndpoint, T...
// // Copyright 2018 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
// Copyright 2015 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...
#!/usr/bin/python import argparse import base64 import boto3 import botocore.client import getpass import json import os import sys import time from base64 import b64decode from botocore.exceptions import ClientError from datetime import datetime from lxml import etree as ET from onelogin.api.client import OneLoginCl...
#!/usr/bin/env python """ BAM File Writer. https://github.com/dceoy/pdbio """ import logging import os import subprocess class BamFileWriter(object): def __init__(self, out_bam_path, samtools, n_thread=1): self.__logger = logging.getLogger(__name__) self.__bam_path = out_bam_path self.__l...
import os from windmill.authoring import djangotest from StringIO import StringIO class TestProjectWindmillTest(djangotest.WindmillDjangoUnitTest): test_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'windmilltests') browser = 'firefox'
{ "name" : "n1ql_2i_test", "desc" : "test run for n1ql and 2i", "loop" : "", "phases" : { "0" : { "name" : "load_tpcc", "desc" : "insert data for tpcc buckets", "ssh" : {"hosts" : ["10.1.2.80"], ...
/** * This class is the main view for the application. It is specified in app.js as the * "mainView" property. That setting causes an instance of this class to be created and * added to the Viewport container. * * TODO - Replace the content of this view to suit the needs of your application. */ Ext.define('MyApp....
import pytest from tests import context from example import server from graphene.test import Client @pytest.fixture(scope="module") def client(): yield Client(server.schema) class TestMutations(object): @pytest.fixture(scope="class") def person(self): yield {"name": "Peter", "age": 40} @py...
/* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ /** * CryptoJS core components. */ var CryptoJS = CryptoJS || (function (Math, undefined) { /** * CryptoJS namespace. */ var C = {}; /** * Library nam...
(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{323:function(t,s,a){"use strict";a.r(s);var n=a(0),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"abstractset"}},[a("a",{staticClass:"heade...
# for processing the ptc, proteins datasets into .mat format # ptc, proteins come from the authors of the following paper: # Deep Graph Kernels, Pinar Yanardag, SVN Vishwanathan, KDD 2015 # You may download their other datasets to data/raw_data/datasets/ # and process them using this script import numpy as np import...
import * as React from "react"; import Svg, { Path } from "react-native-svg"; function SvgSnowSharp(props) { return <Svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" {...props}><Path d="M447.88 313.27l19.25-10.64-21.28-38.51-19.25 10.64a133.42 133.42 0 00-38.54 32.1L300 256l88.07...
# Copyright 2020 The Kubeflow Authors # # 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...
#import asyncio import unittest #import operator #from cess.agent import PlanningAgent, Action, Goal, Prereq from cess.sim import Simulation class SimulationTests(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def testBuildSim(self): a = [] s = Sim...
""" To run this test, type this in command line <kolibri manage test -- kolibri.core.content> """ import datetime import unittest import uuid import mock import requests from django.conf import settings from django.core.cache import cache from django.core.urlresolvers import reverse from django.test import TestCase fr...
from rain.client import Task from rain.client.data import DataObject from rain.client.output import Output import pytest class Dummy(Task): TASK_TYPE = "dummy" def test_task_construction(fake_session): with fake_session as session: t1 = Dummy(inputs=(), outputs=()) t2 = Dummy(inputs=(), o...
const chai = require('chai') const expect = chai.expect const assert = chai.assert const getFedBtcKeys = require('../federation-btc-keys'); const pegnatoryPublicKeys = [ { btc: '0x023f0283519167f1603ba92b060146baa054712b938a61f35605ba08773142f4da', rsk: '0x0287b87976b0de1ef3c104b1e951e786aa78f71aed...
var indexSectionsWithContent = { 0: "_abcdefghijklmnopqrstuvwxyz~", 1: "cnpr", 2: "cdps", 3: "gmp", 4: "abcdefghilmnoprstuvwz~", 5: "_abcdefghijklmnopqrstuvwxyz", 6: "ciop", 7: "bceoprst", 8: "cdehknoprstu", 9: "gopv", 10: "lp", 11: "cefgipsv", 12: "dp" }; var indexSectionNames = { 0: "all"...
/** * 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. * * @flow strict */ import { describe, it } from 'mocha'; import { expect } from 'chai'; import { GraphQLScalarType, GraphQLEn...
/** * 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-local */ import * as React from "react"; const UNINITIALIZED = typeof Symbol === "function" && typeof Symbol() ...
#!/usr/bin/env python3 # Copyright (c) 2013-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # import re import sys import dns.resolver import collect...
import hugectr solver = hugectr.CreateSolver(max_eval_batches = 1, batchsize_eval = 4096, batchsize = 64, lr = 0.00001, vvgpu = [[0]], repeat_dataset = True, ...
# -*- coding: utf-8 -*- """Transformers is like django rest framework transformer.""" import abc import six from ....core.exceptions import TermiusException @six.add_metaclass(abc.ABCMeta) class Transformer(object): """Base transformer.""" # pylint: disable=unused-argument def __init__(self, storage, acc...
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved #pragma once #inc...