text stringlengths 3 1.05M |
|---|
from PyQt5 import QtWidgets, QtCore
from utils import utils_collection as utils
from utils import db_manager
from utils.styling import excluded_dialog_title_style, excluded_dialog_subtitle_style
class ExcludedCompsDialog(QtWidgets.QDialog):
def __init__(self, parent=None):
super(ExcludedCompsDialog, self)... |
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... |
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
export default {
pagination: {
goto: "Iya ku",
page: "",
itemsPerPage: " / Emakhasi",
total: total => `Okuphelele ${total}`,
prev5: "5 Esedlule Emakhasi",
next5: "5 Emakhasi Lalandzelako"
},
table: {
confirmFilter: "Qiniseka",
resetFilter: "Set... |
const path = require('path')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
module.exports = {
target: "node",
entry: "./src/index.ts",
output: {
fileName: "vs-presence.js",
libraryTarget: "commonjs2",
path: path.resolve(process.cw... |
import argparse
import logging
import numpy as np
import os
import pandas as pd
import random
import subprocess
from pathlib import Path
from hyperopt import hp
from hyperopt.pyll.stochastic import sample
from hfta.hfht import (tune_hyperparameters, attach_common_args,
rearrange_algorithm_kwarg... |
# -*- coding: utf-8 -*-
############################ Copyrights and license ############################
# #
# Copyright 2018 Steve Kowalik <steven@wedontsleep.org> #
# ... |
/*
Copyright (c) 2019, Ameer Haj Ali (UC Berkeley), and Intel Corporation
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
... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable=bad-whitespace, superfluous-parens
"""
Cookiecutter pre-gen hook.
This gets called with no arguments, and with the project directory
as the working directory. That is empty on the first run, but might
also already be populated when Cookie... |
const express = require('express');
const router = express.Router();
const checkUserAuth = require('../../middleware/userAuth');
const shoppingListController = require('../../controller/user/shopping-list');
router.get('/all', shoppingListController.getAllShoppingList);
module.exports = router; |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = require("react");
var _useCallbackRef3 = _interopRequireDefault(require("./useCallbackRef"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
fu... |
export const supportTypes = [
{ rule: /\.(bi)$/i, logo: 'fi-bi' },
{ rule: /\.(sql)$/i, logo: 'fi-spark' },
{ rule: /\.(hql)$/i, logo: 'fi-hive' },
{ rule: /\.(out)$/i, logo: 'fi-storage' },
{ rule: /\.scala$/i, logo: 'fi-scala' },
{ rule: /\.jdbc$/i, logo: 'fi-jdbc' },
{ rule: /\.python$/i,... |
#!/usr/bin/env python
import os
from RouToolPa.Tools import RepeatModeler_search, RepeatMasker_search, TRF_search, extract_repbase
from RouToolPa.Parsers.TRF import CollectionTRF
#reference_name = "LAN210_v0.7m"
#reference_name = "Alsu24m_no_ambigious"
#workdir = "/home/mahajrod/genetics/desaminases/data/%s/masking"... |
const express = require("express");
const app = express();
const tasks = require("./routes/tasks");
const connectDB = require("./db/connect");
require("dotenv").config();
const notFound = require("./middleware/not-found");
const errorHandlerMiddleware = require("./middleware/error-handler");
// middlewares
app.use(... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
import unittest
import unittest.mock as mock
import mycroft.audio.services.vlc as vlc
config = {
'backends': {
'test_simple': {
'type': 'vlc',
'active': True
}
}
}
@mock.patch('mycroft.audio.services.vlc.vlc')
class TestVlcBackend(unittest.TestCase):
def test_loa... |
/**
* 发布
*
* @author: Eysonyou
* @create: 2019-05-14
*/
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
// 解决textarea组件在表单提交时无法获取内容的BUG
content: '',
// 保存用户信息
userInfo: {},
// 内容大小限制为200字符
contentSize: 0,
// 场景集合
scenes: ["... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Module for training a CNN model on neural data.
Created on Mon Aug 28 11:21:43 2017
@author: paul.herringer
"""
from keras.models import load_model
from keras.callbacks import (
EarlyStopping,
CSVLogger,
ModelCheckpoint,
TensorBoard,
ReduceLRO... |
import React from "react";
import { IndemniteCCn } from "../../components/IndemniteConventionnelle";
import { getIndemniteFromFinalForm } from "../../indemnite";
import { getIndemnite, getSalaireRef } from "./indemnite";
export function Result({ form }) {
const state = form.getState();
const {
hasTempsPartie... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright [2018] Tatarnikov Viktor [viktor@tatarnikov.org]
#
# 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/licen... |
# -*- coding: utf-8 -*-
# Created by José Miguel García Benayas
import logging
import random
from graph_utils import GraphUtils
from solution_greedy_adjacent import SolutionGreedyNeighbors
from solution_greedy_ratio import SolutionGreedyRatio
class SolutionGrasp:
ADJACENT = "adjacent"
RATIO = "ratio"
L... |
# -*- coding: utf-8 -*-
import os
import re
from sphinx_testing import with_app
import unittest
CR = '\r?\n'
nwdiag_fontpath = '/usr/share/fonts/truetype/ipafont/ipagp.ttf'
with_png_app = with_app(srcdir='tests/docs/nwdiag',
buildername='latex',
write_docstring=True,
... |
export default class Linker {
constructor(
type,
label,
link,
isUsePermanentLink = false,
permalink = '',
) {
this.type = type;
this.label = label;
this.link = link;
this.isUsePermanentLink = isUsePermanentLink;
this.permalink = permalink;
this.generateMarkdow... |
int main(){
int a;
int b;
a = 0x01;
b = ~a;
return b;
}
|
"""
sentry.models.team
~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
import warnings
from django.conf import settings
from django.core.urlresolvers import reverse
f... |
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
from __future__ import print_function
import os
import math
import argparse
import ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{14:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){... |
# Copyright: (c) 2021, Edwin G. W. Peters
import numpy as np
def customXCorr(a,b,N=None):
"""
Faster xcorr function than numpy's. Done by using FFT's instead of conventional convolution
"""
Na = len(a)
Nb = len(b)
if N is None:
N = np.max([Na,Nb])
A = np.fft.fft(a,N)
B = np.f... |
# Objective: create a list and convert it to a pandas data frame
# script create date: 23/Feb/2020
# load library
import pandas as pd
# creat a list
mylist = [46,'ashish',10000]
# convert list to pandas dataframe
df= pd.DataFrame(mylist)
# show the data type of dataframe. Use info(). Equivalent in R is str(... |
import numpy as np
from scipy.linalg import lapack as lapack
def copy_lower_to_upper(A):
A += np.tril(A, k=-1).T
def invpd(A, return_chol=False):
L = np.linalg.cholesky(A)
Ainv = lapack.dpotri(L, lower=True)[0]
copy_lower_to_upper(Ainv)
if return_chol:
return Ainv, L
else:
r... |
"""
This file contains some basic functions for loading and saving images.
"""
import cv2
import pickle
import numpy as np
# Custom imports
from os import listdir
from os.path import join as path_join
def load_images(path):
"""
Load a set of images from a folder
Inputs
----------
path: str
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE252_Unchecked_Return_Value__wchar_t_puts_01.c
Label Definition File: CWE252_Unchecked_Return_Value.string.label.xml
Template File: point-flaw-01.tmpl.c
*/
/*
* @description
* CWE: 252 Unchecked Return Value
* Sinks: puts
* GoodSink: Check if putws() fails... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
# Copyright (c) 2018, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
import cudf
from cudf.tests.utils import assert_eq
from cudf.utils.utils import IS_NEP18_ACTIVE
missing_arrfunc_cond = not IS_NEP18_ACTIVE
missing_arrfunc_reason = "NEP-18 support is not available in NumPy"
# Test implemen... |
# Copyright 2019 The Matrix.org Foundation C.I.C.
#
# 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... |
// export * as log from './log'
export default { log: {} }
|
import os
import pandas as pd
from . import unsafe_helper
class Helper:
def __init__(self):
self.unsafe = unsafe_helper.Unsafe()
def format_path_w_symbol(self, path, symbol):
return os.path.join(path, symbol)
def format_df_dates(self, df, column_name):
df[column_name] = pd.to_date... |
#!/usr/bin/env python3
# vim: set expandtab tabstop=4 shiftwidth=4:
# Copyright 2021 Christopher J. Kucera
# <cj@apocalyptech.com>
# <http://apocalyptech.com/contact.php>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:... |
import { Directive, Input } from '@angular/core';
import { Gate } from '../../../../../../common/cdk/component/gate';
import { SchemaRowStyleArchive } from '../../../../../../schema/core/api/styling/schema.row-style.archive';
export class StructureRowStyleGate extends Gate {
constructor(schemaRowStyleArchive) {
... |
# Copyright (C) 2017 Tiancheng Zhao, Carnegie Mellon University
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
from nltk.translate.bleu_score import sentence_bleu
from nltk.translate.bleu_score import SmoothingF... |
from jsonrpc import ServiceProxy
import sys
import string
import getpass
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:12261")
... |
# 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 u... |
#!/usr/bin/env python
import os
from os.path import basename
import click
import logging
from datetime import datetime
import gzip
from typing import List
import pyopenms as oms
from mzqc import MZQCFile as qc
from qccalculator import utils, basicqc, idqc, idqcmq, enzymeqc, masstraceqc
rqs: List[qc.RunQuality] = lis... |
"""
$url rtp.pt/play
$type live, vod
$region Portugal
"""
import re
from base64 import b64decode
from urllib.parse import unquote
from streamlink.plugin import Plugin, pluginmatcher
from streamlink.plugin.api import useragents, validate
from streamlink.stream.hls import HLSStream
@pluginmatcher(re.compile(
r"ht... |
//Handles Login Submission
const handleLogin = (e) => {
e.preventDefault();
$("quizMessage").animate({width:'hide'},350);
if($("#user").val() == '' || $("#pass").val() == '') {
handleError("Username or password is empty");
return false;
}
console.log($("input[name=_csr... |
/*
var vid = new Whammy.Video();
vid.add(canvas or data url)
vid.compile()
*/
window.Whammy = (function(){
// in this case, frames has a very specific meaning, which will be
// detailed once i finish writing the code
function toWebM(frames, outputAsArray){
var info = checkFrames(frames);
//max... |
import FWCore.ParameterSet.Config as cms
from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadTrackCalo
caloRecoTauDiscriminationAgainstMuon = cms.EDProducer("CaloRecoTauDiscriminationAgainstMuon",
# tau collection to discriminate
CaloTauProducer = cms.InputTag('caloRecoTauProducer'),
Predisc... |
def add_native_methods(clazz):
def addItems__java_lang_String____int__int__(a0, a1, a2, a3):
raise NotImplementedError()
def delItems__int__int__(a0, a1, a2):
raise NotImplementedError()
def select__int__(a0, a1):
raise NotImplementedError()
def deselect__int__(a0, a1):
... |
import React from 'react';
import { NavLink } from 'react-router-dom';
import "../css/home.css";
const HomePage = (props) => {
return (
<div className="hero">
<section className="container">
<div className="overlay"></div>
<div className="hero-content">
... |
import React, {useCallback, useRef, useState} from 'react';
import {useModelState} from "../misc/custom-hooks";
import {Alert, Button, ControlLabel, Form, FormControl, FormGroup, Icon, Modal, Schema} from "rsuite";
import firebase from "firebase/compat/app";
import {auth, database} from "../misc/firebase";
con... |
# coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... |
// @flow
// Implementation of `sourcecred discourse`
// This is a (likely temporary command) to facilitate loading a single
// discourse server.
import dedent from "../util/dedent";
import {LoggingTaskReporter} from "../util/taskReporter";
import type {Command} from "./command";
import * as Common from "./common";
imp... |
# Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.c (the "License");
# you may not use this file except in compliance with the License.
from telethon import events
import os
import requests
import logging
from userbot import bot, OCR_SPACE_API_KEY, CMD_HEL... |
/* libuEv - Micro event loop library
*
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
* Copyright (c) 2013-2017 Joachim Nilsson <troglobit()gmail!com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation file... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5zM16 19H8V5h8v14z"
}), 'Vibration'... |
const express = require("express");
const server = express();
const nunjucks = require("nunjucks");
const mongoose = require("mongoose");
mongoose.connect('mongodb+srv://blood-donation:blood-donation@blood-donation-43xtg.mongodb.net/test?retryWrites=true&w=majority', {
useNewUrlParser: true,
useUnifiedTopology... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'broadcast-tower';
var width = 640;
var height = 512;
var ligatures = [];
var unicode = 'f519';
var svgPathData = 'M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.... |
#include "types.h"
#include "user.h"
#define NELEM(x) (sizeof(x)/sizeof((x)[0]))
#define FEA (argv[1][0]=='-' && argv[1][1]=='f' && argv[1][2]=='e' && argv[1][3]=='a')
struct proc proc[NPROC];
static char *states[] = {
[UNUSED] "unused",
[EMBRYO] "embryo",
[SLEEPING] "sleep ",
[RUNNABLE] "runble",
[RUNNING] ... |
/**
* DevExtreme (data/local_store.js)
* Version: 16.2.6
* Build date: Tue Mar 28 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
Class = require("../core/class"... |
(function (app) {
'use strict';
var forgotPasswordController = function ($scope) {
};
app.controller('forgotPasswordController', ['$scope', forgotPasswordController]);
})(angular.module('accountApp'));
|
// Copyright 2018-present the Material Components for iOS 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
//... |
/*!
* jQuery Browser Plugin v0.0.5
* https://github.com/gabceb/jquery-browser-plugin
*
* Original jquery-browser code Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* http://jquery.org/license
*
* Modifications Copyright 2013 Gabriel Cebrian
* https://github.com/gabceb
*
* Released under ... |
#题目地址:https://time.geekbang.org/column/article/74788
#几种算法
#第一种:暴力回溯
from typing import List
least = float("inf")
def yh_triangle(level,levelnum,num,yhlist):
#level表示现在是访问第几层
#levelnum表示现在是对这一层的第几个元素进行访问
#num是指到这里走的路径长度
#yhlist是储存的杨辉三角的数组
global least
if (level == len(yhlist) - 1):
... |
$(document).ready(function () {
adjustFieldsView();
$(document).on("change", "input[name=fields-display-view-type]", null, adjustFieldsView);
});
function adjustFieldsView() {
let viewType = $("input[name=fields-display-view-type]:checked").val();
$("input[name=fields-display-view-type]").each(function... |
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. 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; version 2 of the License.
This program is distributed in t... |
"""
slapdtest - module for spawning test instances of OpenLDAP's slapd server
See https://www.python-ldap.org/ for details.
"""
__version__ = '3.4.0'
from slapdtest._slapdtest import SlapdObject, SlapdTestCase, SysLogHandler
from slapdtest._slapdtest import requires_ldapi, requires_sasl, requires_tls
from slapdtest.... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
import { Injectable } from '@angular/core';
import * as i0 from "@angular/core";
export class TextService {
constructor() { }
}
TextService.decorators = [
{ type: Injectable, args: [{
prov... |
# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
import pandas as pd
import numpy as np
# Function to calculate missing values by column
def missing_values_table(df):
# Total missing values
mis_val = df.isnull().sum()
# Percentage of missing values
mis_val_percent = 100 * df.isnull().sum() / len(df)
# Make a table with the ... |
"""
WSGI config for depictions project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... |
# MIT License
#
# Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho
#
# 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... |
// Data back Explorer
// import Freezeframe from 'freezeframe';
// prepare docs
var DA_doc = "./assets/dist/js/DA_collection.json";
var card_doc = "./assets/dist/js/AIE_card_collection.json";
var DP_doc = "./assets/dist/js/DP_collection.json";
$(document).ready(function() {
loadData(DA_doc, DP_doc, card_doc);
... |
// Created by Adam Kaplan on 8/2/15.
// Copyright 2015 Yahoo.
// Licensed under the terms of the MIT License. See LICENSE file in the project root.
#import <Mantle/Mantle.h>
@interface Stock : MTLModel <MTLJSONSerializing>
@property (nonatomic, readonly) NSString *symbol;
@property (nonatomic, readonly) NSString ... |
// ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// pcl/MercatorProjection.h - Released 2021-04-09T19:40:59Z
// -----------------... |
//
// TKReachability+Private.h
// TravelKit
//
// Created by Michal Zelinka on 23/05/17.
// Copyright © 2017 Tripomatic. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, TKNetworkStatus) {
TKNetworkStatusNotReachable = 0,
TKNetworkStatusReachableViaW... |
"use strict";
function expand(element) {
// only if necessary
const expanded = JSON.parse(element.getAttribute("aria-expanded"));
if (!expanded)
element.click();
}
function get_all_users() {
const users = document.getElementsByClassName("userName--6aS3s");
return users;
}
function get_curren... |
# This first line is provided for you
hours = input("Enter Hours:")
payRate = input("Enter Pay Rate:")
print('Pay: ' + str(int(hours) * float(payRate)))
|
const db = require('../db');
async function getAllUser() {
const users = await db('users').select();
return users;
}
async function getUser(criteria) {
const user = await db('users')
.select()
.where(criteria)
.first();
return user;
}
async function createUser(user) {
const id = await db('users... |
/*
* V4L2 video capture example, modified by Derek Molloy for the Logitech C920 camera
* Modifications, added the -F mode for H264 capture and associated help detail
* www.derekmolloy.ie
*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This progra... |
""""""
import tensorflow as tf
import numpy as np
from pprint import pprint
import os
import utils
import random
# from conv_ca import ConvCA
# from StringIO import StringIO
# def conv_ca_model(run_path, args=None):
# """Links inputs and starts a training session and
# performs logging at certain steps."... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:44:34 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/NetworkServiceProxy.framework/NetworkServiceProxy
* classdump-dyld is licensed under GPLv3, Copyright... |
import React, { useState, useRef } from "react";
import Carousel from "react-elastic-carousel";
import styled from "styled-components";
const Item = styled.div`
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background-color: green;
width: 100%;
height: 150px;
margin: 15px;
`... |
require('@babel/register')
require('./server/server')
|
import * as Icons from 'wix-ui-icons-common';
import * as SystemIcons from 'wix-ui-icons-common/system';
import * as wsr from '../../src/index';
import * as editorX from '../../src/Themes/editorX';
import * as businessDashboard from '../../src/Themes/businessDashboard';
import * as floatingPanels from '../../src/Themes... |
from models.NeuMF.model import NeuMF,NeuMFModel |
/**
* 首页左边导航菜单构建
*/
LeftPanel = Ext.extend(Ext.Panel, {
constructor: function(){
this.initializeTree();
LeftPanel.superclass.constructor.call(this, {
id: 'left-panel',
region: "west",
width:'20%',
split: true,
collapseMode: 'mini',
layout: 'border',
items: [this.tree, {
region: 'north',
... |
/*
* Common board functions for siemens AM335X based boards
* (C) Copyright 2013 Siemens Schweiz AG
* (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
*
* Based on:
* U-Boot file:/board/ti/am335x/board.c
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
*
* SPDX-License-Ident... |
import pytest
import numpy as np
import os
from cli.ACME_simulator import *
@pytest.mark.skip
def test_plot_exp():
exp = np.zeros((11,11))
exp[5,5] = 1
save = True
save_path = 'data/test_plot_for_plot_exp'
plot_exp(exp,save=save, save_path=save_path)
#check if plot exists
assert os.path.is... |
export const c_drawer_m_panel_bottom_m_inline__panel_PaddingTop = {
"name": "--pf-c-drawer--m-panel-bottom--m-inline__panel--PaddingTop",
"value": "1px",
"var": "var(--pf-c-drawer--m-panel-bottom--m-inline__panel--PaddingTop)"
};
export default c_drawer_m_panel_bottom_m_inline__panel_PaddingTop; |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-26 01:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... |
"""token_utils.py
------------------
A collection of useful functions and methods to deal with tokenizing
source code.
"""
import ast
import keyword
import sys
import tokenize as py_tokenize
from io import StringIO
from typing import Any, Iterable, List, Sequence, Tuple, Union
from . import debug_helper
_TokenInfo =... |
# --------------------------------------------------------
# Swin Transformer
# Copyright (c) 2021 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ze Liu
# --------------------------------------------------------
import torch
import torch.nn as nn
import torch.utils.checkpoint as check... |
/* */
var baseHas = require('./_baseHas'),
keys = require('./keys');
var PARTIAL_COMPARE_FLAG = 2;
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG,
objProps = keys(object),
objLength = objProps.length,
othProps = keys(... |
from django.urls import re_path
from guests.views import GuestListView, guest_importer, test_email, export_guests, \
invitation, rsvp_confirm, dashboard, rsvp
urlpatterns = [
re_path(r'^guests/$', GuestListView.as_view(), name='guest-list'),
re_path(r'^dashboard/$', dashboard, name='dashboard'),
re_pa... |
/****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 Sof... |
// Copyright 2020 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.
#ifndef CHROME_BROWSER_UI_PROFILE_PICKER_H_
#define CHROME_BROWSER_UI_PROFILE_PICKER_H_
#include <vector>
#include "base/callback_forward.h"
#include "b... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'oc', {
bulletedTitle: 'Proprietats de la lista de piuses',
circle: 'Cercle',
decimal: 'Decimal (1, 2, 3, etc.)',
... |
# Presense of __init__.py makes directory a Python package
|
/**
*
* Asynchronously loads the component for SendMailAssessment
*
*/
import loadable from 'utils/loadable';
export default loadable(() => import('./index'));
|