text stringlengths 3 1.05M |
|---|
from django.urls import path
from . import views
app_name = "notifications"
urlpatterns = [
path('', views.Notifications.as_view(), name='notifications'),
]
|
!function(e){const o=e.pl=e.pl||{};o.dictionary=Object.assign(o.dictionary||{},{"Align cell text to the bottom":"Wyrównaj tekst w komórce do dołu","Align cell text to the center":"Wyrównaj tekst w komórce do środka","Align cell text to the left":"Wyrównaj tekst w komórce do lewej","Align cell text to the middle":"Wyrów... |
from __future__ import division
import numpy as np
from albumentations.core.utils import DataProcessor
__all__ = [
"normalize_bbox",
"denormalize_bbox",
"normalize_bboxes",
"denormalize_bboxes",
"calculate_bbox_area",
"filter_bboxes_by_visibility",
"convert_bbox_to_albumentations",
"c... |
# !/usr/bin/env python
# -*- coding: utf-8 -*-
# author: chinshin
# datetime: 2020/4/20 15:33
from bert.model.attention.multi_head import MultiHeadedAttention
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include "gd.h"
#include "gd_color_map.h"
int
main(int argc, char *argv[])
{
int r, g, b;
int i;
for (i=0; i<GD_COLOR_MAP_X11.num_entries; i++) {
char *color_name = GD_COLOR_MAP_X11.entries[i].color_name;
if (gdColorMapLookup(GD_COLOR_MA... |
// review page
import "./style.css";
import ReviewCard from "../../components/ReviewCard";
import { Row, Col, Card } from "react-bootstrap";
import MovieCard from "../../components/MovieCard";
import RecommendedCard from "../../components/RecommendedCard/index";
import { useEffect, useState } from "react";
import API f... |
/* ../netlib/ctrsyl.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the en... |
# Unless explicitly stated otherwise all files in this repository are licensed
# under the 3-clause BSD style license (see LICENSE).
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019 Datadog, Inc.
from typing import Optional, List, Dict
from datadog_sync.utils.base_r... |
# -*- coding: utf-8 -*-
"""`goodbot`'s render module.
Contains functions used by the good-bot-cli app to render asciicast
recordings in a mp4 video.
Uses prerendered gifs and audio from Google TTS to make the final
rendering.
The conversion asciicast -> gif is done using the asciicast2gif
docker image.
This module ... |
const express = require('express')
const mongoose = require('mongoose')
require('../models/categoria')
require('../models/postagens')
const Postagem = mongoose.model('postagens')
const Categoria = mongoose.model('categorias')
const router = express.Router()
const {eAdmin} = require('../helpers/eAdmin')
router.get('... |
"""
Django settings for tz project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
impo... |
var x = Array . prototype . unshift . call ( '0' , ( ) => class extends x ?. [ '' ] { ; } ) ; |
const BotDriver = require('../../index').BotDriver
const Capabilities = require('../../index').Capabilities
const Source = require('../../index').Source
function assert (expected, actual) {
if (!actual || actual.indexOf(expected) < 0) {
console.log(`ERROR: Expected <${expected}>, got <${actual}>`)
} else {
... |
/**
* @file Directive: Busy
* @author yumao<yuzhang.lille@gmail.com>
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var Subscription_1 = require("rxjs/Subscription");
var util_1 = require("./util");
var promise_tracker_service_1 = require("./pro... |
#encoding=utf8
from __future__ import print_function
import sys
sys.path.append("../")
from zbus import RpcClient
client = RpcClient('localhost:15555', mq='MyRpc') #invoke will internally trigger connect
#module.method(x,y)
res = client.example.plus(1,2)
print(res)
m = client.module('example')
pri... |
import sys
sys.path.insert(0,"models/optimizer")
|
/*
* Copyright (c) 2013, NLNet Labs, Verisign, 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:
* * Redistributions of source code must retain the above copyright
* notice, this list ... |
const express = require('express'),
_ = require('lodash'),
async = require('async'),
_router = express.Router();
module.exports = () => {
_router
.route('/signin')
.get((req,res,next) => {
res.send('singIn');
})
.post((req,res,next) => {
//TODO : creat... |
from os import path, environ
import six
import liveandletdie
from selenium import webdriver
try:
import unittest2 as unittest
except ImportError:
import unittest
def abspath(pth):
return path.join(path.dirname(__file__), '../..', pth)
PORT = 8001
def test_decorator(cls):
@classmethod
def set... |
from mpmath import *
from utils import possible_inputs_from_rounded
def test_rounding_2_digits():
inp = mpf('123.45')
outp = possible_inputs_from_rounded(inp, digits=2)
assert mpf('123.445') in outp
assert mpf('123.45499999') in outp
|
import logging
import re
from streamlink.plugin import Plugin
from streamlink.plugin.api import validate
from streamlink.stream import HLSStream, HTTPStream
from streamlink.utils import update_scheme
MEDIA_URL = "http://www.ardmediathek.de/play/media/{0}"
QUALITY_MAP = {
"auto": "auto",
4: "1080p",
3: "72... |
class Character:
def __init__(self,nome,idade,jedi):
self.nome = nome
self.idade = idade
self.e_jedi = jedi
def isJedi(self):
return self.e_jedi
luke = Character("Luke Skywalker",21,True)
print(luke.nome+' is '+str(luke.idade)+' years old')
if luke.isJedi... |
module.exports = function whenVisible($element, callback, options) {
if (typeof IntersectionObserver === `undefined`) {
callback();
return;
}
// eslint-disable-next-line compat/compat
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecti... |
import React, { Component, PropTypes } from 'react';
import update from 'react/lib/update';
import Card from './Card';
import { DropTarget, DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import ItemTypes from './ItemTypes';
const style = {
width: 400
};
const cardTarget = {
... |
import json
class Conf(object):
FITNESS = """def evaluate(net):
data = ((0.0, 0.0, 1.0),
(1.0, 0.0, 1.0),
(0.0, 1.0, 1.0),
(1.0, 1.0, 1.0))
result = []
winner = False
for d in data:
result.append(net.activate(d))
error = result[0]+(1-result[1])+(1-... |
try {
oops;
}
finally {
oopsAgain;
}
try {
oops;
}
catch (e) {
throw e;
}
try {
oops;
}
catch (e) {
throw e;
}
finally {
oopsAgain;
} |
/*
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/aligned_memory.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/mocks/mock_device.h"
#include "shared/test/common/test_macros/test_ch... |
# Copyright 2020 The StackStorm Authors.
# Copyright 2019 Extreme Networks, 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 ... |
#!/usr/bin/env python3
# Copyright 2017 Brocade Communications Systems, 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 also obtain a copy of the License at
# http://www.apache.org/licenses/LICEN... |
var PxPvdSceneClient_8h =
[
[ "PxPvdSceneFlags", "group__pvd.html#ga23ddab69994886fb588a139635bff64b", null ]
]; |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#ifndef STORAGE_LEVELDB_UTIL_RANDOM_H_
#define STORAGE_LEVELDB_UTIL_RANDOM_H_
#include <cstdint>
name... |
from os import path
from io import open
import re
from setuptools import setup, find_packages
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(this_directory, 'jupytext/version.py')) as f... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated by generateDS.py version 2.6b.
#
import sys
import getopt
import re as re_
etree_ = None
Verbose_import_ = False
( XMLParser_import_none, XMLParser_import_lxml,
XMLParser_import_elementtree
) = range(3)
XMLParser_import_library = None
try:
#... |
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import tensorflow as tf
import numpy as np
def to_tensor(array, dtype=tf.float32):
#return tf.convert_to_tensor(array, dtype=dtype)
if 'tensorflow.python.framework.ops.Tensor' not in str(type(array)):... |
const { User } = require("../models");
const bcrypt = require('bcrypt');
class Client {
async findAllUsers(){
return User.findAll();
}
async signUpUser(body){
body.isAdmin = false;
body.subscription = true;
// El siguiente código encripta la contraseña
let passwo... |
""" ``test_hello`` module.
"""
import unittest
from hello import main
from wheezy.http.functional import WSGIClient
class HelloTestCase(unittest.TestCase):
def setUp(self):
self.client = WSGIClient(main)
def tearDown(self):
del self.client
self.client = None
def test_home(self)... |
'''
File [ src/util/generate_lm.py ]
Author [ Heng-Jui Chang (NTUEE) ]
Synopsis [ Generate text data for masked LM training ]
'''
import argparse
import csv
import pickle
import json
import numpy as np
from tqdm import tqdm
from text_normalization import normalize_sent_with_jieba
fr... |
import argparse
import template
parser = argparse.ArgumentParser(description='DNLN')
parser.add_argument('--debug', action='store_true',
help='Enables debug mode')
parser.add_argument('--template', default='.',
help='You can set various templates in option.py')
# Hardware spec... |
# Copyright 2020 Cortex Labs, 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 wri... |
/*!
* Bootstrap Confirmation v1.0.7
* https://github.com/tavicu/bs-confirmation
*/
+function($){"use strict";var event_body=!1,Confirmation=function(t,n){var o=this;this.init("confirmation",t,n),n.selector?$(t).on("click.bs.confirmation",n.selector,function(t){t.preventDefault()}):$(t).on("show.bs.confirmation",func... |
from ryu.base import app_manager
from ryu.topology import event
from ryu.controller.controller import Datapath
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.lib import ofctl_v1_3
from ryu.ofproto import o... |
#ifndef Cylinder_H
#define Cylinder_H
#include <vector>
#include "glm/glm/glm.hpp"
#define _USE_MATH_DEFINES
#include <math.h>
#include "Shape.h"
class Cylinder: public Shape {
public:
//creates a clinder of with radius r and length l centered at the origin. Res specifies the amount of segments used for the bottom a... |
import { combineReducers } from "redux";
import { connectRouter } from "connected-react-router";
import history from "../history";
import ui from "./ui";
export default combineReducers({
...ui,
router: connectRouter(history)
});
|
"""
Definition of Interval.
class Interval(object):
def __init__(self, start, end):
self.start = start
self.end = end
"""
class Solution:
"""
@param intervals: Sorted interval list.
@param newInterval: new interval.
@return: A new interval list.
"""
def insert(self, interv... |
"""
===========================================
Drawing the AIA limb on a STEREO EUVI image
===========================================
In this example we use a STEREO-B and an SDO image to demonstrate how to
overplot the limb as seen by AIA on an EUVI-B image. Then we overplot the AIA
coordinate grid on the STEREO im... |
// @flow strict-local
import type {
Asset,
Bundle,
BundleGroup,
MutableBundleGraph,
PluginOptions,
} from '@parcel/types';
import type {SchemaEntity} from '@parcel/utils';
import invariant from 'assert';
import {Bundler} from '@parcel/plugin';
import {loadConfig, md5FromString, validateSchema} from '@parcel... |
#pragma once
#include "MathFunctions.h"
#include "IForceGenerator.h"
namespace phy {
class RigidBodySpring : public IForceGenerator
{
public:
/*
creates a new spring force generator with 2 bodies and
corresponding local attachment points as well as the
spring constant and rest length.
uses ... |
import React from 'react'
import NavBar from './NavBar'
/* eslint-disable complexity */
/* eslint-disable max-depth */
/* eslint-disable no-lonely-if */
function getNextState(state, mostRight, winWidth) {
const {showLabel, showLabelMinWidth, showToolSwitcher, showToolSwitcherMinWidth} = state
const mostRightIsVisi... |
import babel from "rollup-plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import { terser } from "rollup-plugin-terser";
import { string } from "rollup-plugin-string";
const production = !process.env.ROLLUP_WATCH;
const dist = "dist";
const bundle = "bundle";
export default {
input: "src/index.js",... |
import ReactDOM from 'react-dom';
/**
* Output
* defines an output area for a code cell where react components will render themselves into
*
* @param {object} cell - a notebook cell to append react component areas to.
*/
function Output( cell ) {
this.clear = () => {
ReactDOM.unmountComponentAtNode(this.su... |
/******************************************************************************
** libDXFrw - Library to read/write DXF files (ascii & binary) **
** **
** Copyright (C) 2011-2015 José F. Soriano, rallazz@gmail.com **
... |
import math
from functools import reduce
def gcd(*numbers):
return reduce(math.gcd, numbers)
def gcd_list(numbers):
return reduce(math.gcd, numbers)
print(gcd(27, 18, 9))
# 9
print(gcd(27, 18, 9, 3))
# 3
print(gcd([27, 18, 9, 3]))
# [27, 18, 9, 3]
print(gcd(*[27, 18, 9, 3]))
# 3
print(gcd_list([27, 18, 9... |
import React from 'react'
import './css/Main.css'
import './css/SideBars.css'
import Main from './components/Main'
import Header from './components/Header'
import Footer from './components/Footer'
// main root for our app, here we render hole page
function App() {
return (
<div>
<Header/>
<Main/>
... |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.checkoutKit=e():t.checkoutKit=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports... |
inherit "room/key";
inherit "room/houses/keys/key_base";
reset() { set_key_code("41184"); }
query_auto_load() { return "/room/houses/keys/key2.c:"; }
|
from setuptools import setup
from pip.req import parse_requirements
from pip.download import PipSession
setup(
name='apnsend',
version='0.1',
description='apnsend is a tool to test your APNS certificate, key and token.',
py_modules=['apnsend'],
install_requires=[
str(req.req) for req in par... |
""" TensorMONK's :: NeuralLayers :: CarryResidue """
__all__ = ["ResidualOriginal", "ResidualComplex", "ResidualInverted",
"ResidualShuffle", "ResidualNeXt",
"SEResidualComplex", "SEResidualNeXt",
"SimpleFire", "CarryModular", "DenseBlock",
"Stem2"... |
import React from "react";
import { makeStyles, useTheme } from "@material-ui/styles";
import classnames from "classnames";
// styles
var useStyles = makeStyles(theme => ({
dotBase: {
width: 8,
height: 8,
backgroundColor: theme.palette.text.hint,
borderRadius: "50%",
transition: theme.... |
import os
from pathlib import Path
from typing import Dict, List, Tuple
import numpy as np
import pytest
import torch
from PIL import Image
from pytorch_lightning.utilities.exceptions import MisconfigurationException
from flash import Trainer
from flash.data.data_source import DefaultDataKeys
from flash.vision import... |
import cv2
import os
class MtcnnModel:
def __init__(self, size, gpu):
if gpu:
os.environ["CUDA_VISIBLE_DEVICES"]="0"
from mtcnn import MTCNN
else:
os.environ["CUDA_VISIBLE_DEVICES"]="-1"
from mtcnn import MTCNN
self.detector = MT... |
#!/usr/bin/env python2
# Copyright (c) 2014 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
class Walle... |
/***************************************************************************
* copyright : (C) 2011 by Lukas Lalinsky email : lalinsky@gmail.com
***************************************************************************/
/*******************************************************************... |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
*/
@interface GEOPDTransitAttribution : PBCodable <NSCopying> {
NSMutableArray * _providerNames;
}
@property (nonatomic, retain) NSMutableArray *providerNames;
+ (Class)providerNameType;
+ (id)transitAtt... |
from functools import partial
import torch
import random
from torch import nn
import torch_xla
import torch_xla.core.xla_model as xm
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_sequence
def default(value, default):
return value if value is not None else default
def log(t, eps=1e-9):
r... |
# Copyright 2018 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 in writing, ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ava_1 = require("ava");
const mocks_1 = require("../mocks");
(0, mocks_1.mockGlobalScope)();
const index_1 = require("../index");
(0, ava_1.default)('mapRequestToAsset() correctly changes /about -> /about/index.html', async (t) => {
... |
# coding: utf-8
"""
FastReport Cloud
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitt... |
/*
* Souffle - A Datalog Compiler
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/********************************************... |
# -*- coding: utf-8 -*-
"""Query builder."""
import json
import logging
import random
from collections import UserList
from typing import Any, Dict, List, Set, TextIO, Union
from .constants import (
SEED_TYPE_ANNOTATION,
SEED_TYPE_INDUCTION,
SEED_TYPE_NEIGHBORS,
SEED_TYPE_SAMPLE,
)
from .selection im... |
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: wxnacy@gmail.com
from .client import (
SocketClient,
stop_server,
send_message
)
from .server import SocketServer
from .message_handler import MessageHandler
__all__ = [
'SocketClient',
'SocketServer',
'stop_server',
'send_message',
... |
import os
import re
from setuptools import find_packages, setup
def get_long_description():
with open('README.rst', 'r') as f:
return f.read()
def get_version(package):
with open(os.path.join(package, '__init__.py')) as f:
pattern = r'^__version__ = [\'"]([^\'"]*)[\'"]'
return re.se... |
# 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 agreed to in writing, ... |
import React, { PureComponent } from 'react';
import { Image, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';
import styles from './styles';
export default class ListItem extends PureComponent {
onPress = () => {
const { navigate, setCurrentImageId, item: {id} } = this.props;
... |
# -*- coding: utf-8 -*-
__author__ = """Josh Yudaken"""
__email__ = 'josh@smyte.com'
__version__ = '0.1.0'
|
# Copyright (c) 2011 OpenStack Foundation
# 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 ... |
import csv
import numpy as np
from scipy.optimize import minimize
no_collapse_points = []
collapse_points = []
with open('Output\Cloud\cloud_DS2.csv') as csvfile:
data = csv.reader(csvfile)
for i, row in enumerate(data):
if i == 0:
# Salta l'intestazione
conti... |
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
module.exports = {
entry: ['./dist/index.js'],
devtool: 'none',
resolve: {
extensions: ['.js'],
},
output: {
filename: 'index.bundle.js',
path: path.resolve(__dirname, 'dist'),
library: "core",
lib... |
#ifndef REACT_NATIVE_CRYPTOPP_HASH_FUNCTIONS_H
#define REACT_NATIVE_CRYPTOPP_HASH_FUNCTIONS_H
#include <iostream>
#include <sstream>
#include <jsi/jsi.h>
#include <jsi/jsilib.h>
#include "cryptopp/blake2.h"
#include "cryptopp/crc.h"
#include "cryptopp/filters.h"
#include "cryptopp/hex.h"
#include "cryptopp/keccak.h"... |
const { Telegraf, Markup } = require('telegraf');
const axios = require('axios');
require('dotenv').config()
const bot = new Telegraf(process.env.TOKEN)
bot.start((ctx) => {
try {
ctx.replyWithHTML(`<b>Хай, ${ctx.message.chat.first_name} 👋👋</b>\n\n<em>Добро пожаловать в <b>Погодный бот</b>.\n\nПросто от... |
import discord
import random
from modules.reaction_message.reaction_message import ReactionMessage
import modules.tank.globals as global_values
class Player:
index = -1
direction = 0
x = -1
y = -1
confirmed = False
ammo = 3
ammo_max = 3
def __init__(self, user):
self.user = ... |
from collections import Counter
import re
EX = "ex.txt"
IN = "in.txt"
def parse_line(line):
rgx = r"([a-z]+) \((\d+)\)( -> )?(.*)"
name, weight, _, children = re.match(rgx, line).groups()
children = tuple(child for child in children.split(", ") if child)
return name, weight, children
def read_lines... |
/* specfunc/gsl_sf_coulomb.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
*
* 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 (at
* yo... |
### The only things you'll have to edit (unless you're porting this script over to a different language)
### are at the bottom of this file.
import urllib
import email
import email.message
import email.encoders
import sys
import pickle
import json
import base64
import numpy as np
import subprocess
import os
import war... |
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./resources/js/app.js":
/*!*****************************!*\
!*** ./resources/js/app.js ***!
\*****************************/
/***/ (() => {
/***/ }),
/***/ "./resources/sass/app.scss":
/*!*********************************!*\
!... |
#ifndef fma_run_float_results_1
#define fma_run_float_results_1
TYPE res_test0000[32] = {
7, 23, 55, 109, 191, 307, 463, 665, 919, 1231, 1607, 2053, 2575, 3179, 3871, 4657, 5543, 6535, 7639, 8861, 10207, 11683, 13295, 15049, 16951, 19007, 21223, 23605, 26159, 28891, 31807, 34913
};
TYPE res_test0001[32] = {
3, 17... |
import React from "react";
import "./style.css";
//footer for all pages
function Footer() {
return (
<section className="footer py-3">
<p className="copyrightP">Copyright 2020 ©
<a className="link" href="https://github.com/salpharre"> Sandra Arredondo</a>
</p>
... |
import React from "react"
import "bootstrap/dist/css/bootstrap.min.css"
import "../../styles/global.css"
const HeaderPublic = props => {
return (
<div>
<nav className="navbar navbar-light bg-light">
<a className="navbar-brand" href="/">
<img
... |
from checkov.common.models.enums import CheckCategories
from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck
class ECRRepositoryEncrypted(BaseResourceValueCheck):
def __init__(self):
name = "Ensure that ECR repositories are encrypted using KMS"
id = "... |
import logging
logging.getLogger("hdf5plugin").addHandler(logging.NullHandler())
try:
from pyteomics import mzmlb
_BaseParser = mzmlb.MzMLb
except ImportError:
mzmlb = None
_BaseParser = object
from .mzml import MzMLLoader as _MzMLLoader
from ._compression import DefinitelyFastRandomAccess
class _Mz... |
import chdir from '@dword-design/chdir'
import { endent, keys, map, property } from '@dword-design/functions'
import tester from '@dword-design/tester'
import testerPluginTmpDir from '@dword-design/tester-plugin-tmp-dir'
import execa from 'execa'
import { ensureDir, outputFile } from 'fs-extra'
import globby from 'glob... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{343:function(_,a,v){"use strict";v.r(a);var t=v(8),s=Object(t.a)({},(function(){var _=this,a=_.$createElement,v=_._self._c||a;return v("ContentSlotsDistributor",{attrs:{"slot-key":_.$parent.slotKey}},[v("h2",{attrs:{id:"_2020-7-7-19-03"}},[v("a",{staticClass:"he... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(function (VRAudioPanner) {
'use strict';
// Default settings for panning. Cone parameters are experimentally
// determined.
var _PANN... |
import React from 'react'
import { shallow } from 'enzyme'
import otherArticlesMock from './_mocks'
import OtherArticles from '.'
describe(OtherArticles.name, () => {
it('renders with default values', () => {
const wrapper = shallow(
<OtherArticles
otherArticles={otherArticlesMock}
categori... |
#
# Copyright (c) 2018, deepsense.io
#
# 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 w... |
"""
Model store which provides pretrained models.
"""
__all__ = ['get_model_file']
import os
import zipfile
import logging
import hashlib
_model_sha1 = {name: (error, checksum, repo_release_tag, ds, scale) for
name, error, checksum, repo_release_tag, ds, scale in [
('alexnet', '1789', 'ecc4bb4... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import history from '../../utils/history.js';
import { queryToObject } from '../../utils/helpers.js';
import './signup.scss';
import axios from 'axios';
import AlertBox from '../../components/AlertBox/AlertBox.js';
import NavWrap from '.... |
#!/usr/bin/env python
"""
File name: server.py
Author: Dikke Neef
Date created: 28/08/2017
Date last modified: 07/09/2017
Python Version: 2.7.13
"""
# ==============================================================================
from functools import partial
from utils import *
import ze... |
import logging
import sys
import requests
from flask import session
from requests.exceptions import (
HTTPError,
ConnectionError
)
from application import app
MATCHING_URL = app.config['MATCHING_URL']
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
logger.addHandler(logging.Str... |
var path = require('path');
var Vow = require('vow');
// 7.5.2, 7.6.1 Reserved words
var ES3_KEYWORDS = {
'break': true,
'case': true,
'catch': true,
'continue': true,
'default': true,
'delete': true,
'do': true,
'else': true,
'false': true,
'finally': true,
'for': true,
... |
var Backbone = require('backbone');
var _ = require('underscore');
var CollectionUtils = require('kiubi/utils/collections.js');
var api = require('kiubi/utils/api.client.js');
var File = CollectionUtils.KiubiModel.extend({
urlRoot: 'sites/@site/catalog/downloads/files',
idAttribute: 'media_id',
file: null,
upload... |