text
stringlengths
3
1.05M
// // AppDelegate.h // Demo // // Created by syj on 17/1/10. // Copyright © 2017年 syj. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
define(function (require) { require('spec/spec_helper'); const NotificationRecipient = require('notification_recipients/models/notification_recipient'); const { repeat } = require('underscore.string'); describe('Notification Recipient', () => describe('validations', () => it('validates length of al...
#include <stdbool.h> #include <string.h> #include <strings.h> #include "sway/commands.h" #include "sway/tree/arrange.h" #include "sway/tree/container.h" #include "sway/tree/workspace.h" #include "log.h" static enum sway_container_layout parse_layout_string(char *s) { if (strcasecmp(s, "splith") == 0) { return L_HOR...
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # import torch import os from typing import Optional from utils import logger def load_pretrained_model( model: torch.nn.Module, wt_loc: str, is_master_node: Optional[bool] = False, *args, **kwa...
// Copyright 2015 The Crashpad 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 ...
/*! * ClockPicker v0.1.5 (http://weareoutman.github.io/clockpicker/) * Copyright 2014 Wang Shenwei. * Licensed under MIT (https://github.com/weareoutman/clockpicker/blob/gh-pages/LICENSE) */ ;(function(){ var $ = window.jQuery, $win = $(window), $doc = $(document), $body; // Can I use inline svg ? var sv...
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_ParsePicsTestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_ParsePicsTestsVersionString[];
class Entity { static of(diagram, level, dimension) { let cell = diagram.cells[level]; let meta = getMeta(diagram, level); let { source, target } = getBoundaryDiagrams(diagram, level); source = dimension > 0 ? Scaffold.of(source, dimension - 1) : null; target = dimension > ...
import argparse import math import time import sys import os import random import cv2 import matplotlib.pyplot as plt import matplotlib.animation as animation import chainer import chainer.functions as cf import cupy import numpy as np from chainer.backends import cuda sys.path.append("./../../") import gqn from hype...
# coding=utf-8 # Author: Jianghan LI # Question: 645.Set_Mismatch # Complexity: O(N) # Date: 2017-10-22 6:57 - 6:58 class Solution(object): def findErrorNums(self, nums): """ :type nums: List[int] :rtype: List[int] """ d = {i: 0 for i in range(1, len(nums) + 1)} fo...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Daniel and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Servicio(Document): pass
''' Reference implementation of node2vec. Author: Aditya Grover For more details, refer to the paper: node2vec: Scalable Feature Learning for Networks Aditya Grover and Jure Leskovec Knowledge Discovery and Data Mining (KDD), 2016 ''' import argparse import numpy as np import networkx as nx import node2vec from ge...
import React, { Component } from 'react' import { connect } from 'react-redux' import SubmitFeedPost from 'components/dashboard/SubmitFeedPost' import MessageInput from 'components/dashboard/MessageInput' import { getItem } from 'utils/storageutils' import { USER_TOKEN } from 'data/consts' import AjaxLoader from ...
#!/usr/bin/env python3 # 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. # NOTICE NOTICE NOTICE NOTICE NOTICE # Development of this graph engine is very much still a work in progress, # and it ...
#!/usr/bin/env python3 # # Project homepage: https://github.com/anudeepND/whitelist # Licence: https://github.com/anudeepND/whitelist/blob/master/LICENSE # Created by Anudeep # ================================================================================ import os import argparse import sqlite3 import subprocess fro...
const AWS = require('aws-sdk'); AWS.config.setPromisesDependency(require('bluebird')); const uuid = require('uuid') const ErrorResponse = require('../utils/errorResponse'); const s3 = new AWS.S3(); new AWS.Credentials({ accessKeyId: process.env.AWS_ACCESS_KEY, secretAccessKey: process.env.AWS_SECRET_KEY, }) c...
# -*- coding: utf-8 -*- # Copyright 2022 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...
var searchData= [ ['n_94',['n',['../classintp_1_1LinearInterp.html#a34d4500170e1150a3ef09ad97a919f39',1,'intp::LinearInterp::n()'],['../classregr_1_1LinearRegression.html#a53294f76033f6bd16ae3f80061cc960b',1,'regr::LinearRegression::n()']]] ];
// // AppDelegate.h // UIPresentationControllerDemo // // Created by sunyazhou on 2017/10/31. // Copyright © 2017年 www.sunyazhou.com. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
module.exports = { siteMetadata: { title: 'ArturJS Space', description: 'My personal blog' }, plugins: [ 'gatsby-plugin-react-helmet', 'gatsby-plugin-sass', { // keep as first gatsby-source-filesystem plugin for gatsby image support resolve: 'gatsby-source-filesystem', ...
''' Bars2D.py Generic functions for creating toy bars data ''' import numpy as np def Create2DBarsTopicWordParams(V, K, fracMassOnTopic=0.95, PRNG=np.random): ''' Create parameters of each topics distribution over words Args --------- V : int vocab size K : int number of topics ...
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-03 18:58 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('flashcards', '0020_auto_20160903_1842'), ] operations = [ migrations.RemoveField( model_name='cardhistory', ...
import os from pathlib import Path import numpy as np import pytest from torch.utils.data import DataLoader from pack_dataset import pack_data_dir from parameterized import parameterized from save_len_file import save_len_file from test_seq2seq_examples import ARTICLES, BART_TINY, MARIAN_TINY, MBART_TINY, S...
//////////////////////////////////////////////////////////////////////////////// // Filename: modelclass.h //////////////////////////////////////////////////////////////////////////////// #ifndef _MODELCLASS_H_ #define _MODELCLASS_H_ ////////////// // INCLUDES // ////////////// #include "pch.h" //#include ...
#!/usr/bin/env python #!coding=utf-8 try: import mraa from software_i2c import I2c except ImportError: from pseudo_software_i2c import I2c import time class Motor(): CMD_SET_SPEED = 0x82 CMD_SET_PWM = 0x84 CMD_SET_DIR = 0xaa CMD_SET_A = 0xa1 CMD_SET_B = 0xa5 DUMMY = 0x01 CMD_...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NET_H #define BITCOIN_NET_H #include <deque> #include <boost/array...
# -*- coding: utf-8 -*- """二维码生成器""" import os from typing import Final from io import BytesIO import qrcode from PIL.Image import Image, ANTIALIAS from dotenv import load_dotenv, find_dotenv from qrcode.image.pil import PilImage def gen_qr_code_with_avatar(qr_code: PilImage, avatar: Image) -> BytesIO: """ ...
#!/usr/bin/env python 3 ############################################################################################ # # # Program purpose: Finds common item in two lists. # # Program...
// Copyright (c) 2021 PaddlePaddle 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 requir...
import typescript from 'rollup-plugin-typescript2'; import commonjs from 'rollup-plugin-commonjs'; // import external from 'rollup-plugin-peer-deps-external'; import resolve from '@rollup/plugin-node-resolve'; import copy from 'rollup-plugin-copy'; import scss from 'rollup-plugin-scss'; import externals from 'rollup-pl...
/* * Copyright (c) 2016 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file * @brief Primitive for aborting a thread when an arch-specific one is not * needed.. */ #include <kernel.h> #include <kernel_structs.h> #include <kernel_internal.h> #include <kswap.h> #include <string.h> #i...
(function(n){function i(i){return this.each(function(){var r=n(this),u=r.data(t.DATA_KEY),f=typeof i=="object"&&i;u||r.data(t.DATA_KEY,u=new t(this,f))})}var t=function(t,i){this.$element=n(t);var u=this.$element.data("type"),f=this._getColSpan(this.$element),r=parseInt(this.$element.data("items"));isNaN(r)&&(r=12);thi...
const fs = require('fs') const path = require('path') const dirs = fs.readdirSync('./') let faces = {} for(let dir of dirs){ if(fs.statSync(dir).isDirectory() && dir !== '.git'){ let face = {} const files = fs.readdirSync(dir) if(files.includes('face.json')){ faceJson = JSON.parse(fs.readFileSync(p...
import cv2 import os img_list = os.listdir(".") #print(img_list) x1,y1,x2,y2 = 50, 60, 1365, 770 for img in img_list: if(img[-3:] == ".py" or img[-8:-4] == "_mod"): print("python file / modified file -- skip") continue print(img) img_raw = cv2.imread(img) crop_img = img_raw[y1:y2, x1:x2] #cv2.imshow("crop...
#ifndef BEEBJIT_KEYBOARD_H #define BEEBJIT_KEYBOARD_H #include <stdint.h> struct keyboard_struct; struct bbc_options; struct timing_struct; enum { k_keyboard_key_escape = 128, k_keyboard_key_backspace = 129, k_keyboard_key_tab = 130, k_keyboard_key_enter = 131, k_keyboard_key_ctrl = 132, k_keyboard_key_...
/*- * Copyright (c) 2012-2015 Wojciech Owczarek, * Copyright (c) 2011-2012 George V. Neville-Neil, * Steven Kreuzer, * Martin Burnicki, * Jan Breuer, * Gael Mace, * Alexandre Van Kempen, * ...
"""Unit test for geo module""" from floodsystem.geo import * from floodsystem.stationdata import build_station_list def test_stations_by_distance(): station_list = build_station_list() test_stations = station_list[0:3] p = (53, -1) #somewhere close to some stations distances = stations_by_distance(tes...
'use strict'; const bundle_src = require('../../../config/bundle/rollup-core'); const bundle_dts = require('../../../config/bundle/dts-bundle'); const minify_js = require('../../../config/minify/terser'); function patch(index, code) { if (0 !== index) { return code; } // 一般的すぎる directive 名は宣言個所で...
"use strict"; const { fetchLater } = require("./main"); module.exports = async (event, context) => { try { console.info(event.body); const req = JSON.parse(event.body); await fetchLater( req.localPath, req.timeout, req.interval, req.url, req.method ); return context...
'use strict'; /* global -------------------------------- */ window.svg4everybody(); new WOW().init(); /* button-up -------------------------------- */ jQuery('.button-up').each(function() { var $buttonUp = $(this); $(window).on('scroll.buttonup', function() { if ($(window).scrollTop() > 150) { ...
#!/usr/bin/env python # coding: utf-8 import json from typing import Optional import pandas as pd import numpy as np import plotly.graph_objs as go from evidently import ColumnMapping from evidently.analyzers.prob_classification_performance_analyzer import ProbClassificationPerformanceAnalyzer from evidently.model...
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){e.exports=n(233)},function(e,t){function n(){throw new Error("setTimeout has not been defined")}functio...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
import { Model, DataTypes } from 'sequelize'; export default (sequelize) => { class Project extends Model { static associate(models) { this.belongsTo(models.Category, { foreignKey: 'categoryId' }); this.hasMany(models.ProjectAsset, { as: 'assets', foreignKey: 'projectId', }); ...
/* Glidix Network Manager Copyright (c) 2014-2017, Madd Games. 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 l...
#!/usr/bin/env python import amap.mapping as am import bitcoin as bc from datetime import datetime import amap.rpchost as rpc import time import boto3 import sys import json testnet = False #version byte is 111 for testnet, 0 for mainnet if testnet: version_byte = 111...
/* * Kendo UI v2015.2.624 (http://www.telerik.com/kendo-ui) * Copyright 2015 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial licen...
import { createTestClient } from 'apollo-server-testing' import createServer from '../../../server' import Factory from '../../../seed/factories' import { gql } from '../../../helpers/jest' import { getNeode, getDriver } from '../../../bootstrap/neo4j' const driver = getDriver() const factory = Factory() const neode =...
import express from 'express'; import authController from './../controllers/auth.controller'; const router = express.Router(); router.route('/auth/v1/signin') .post(authController.signin); router.route('/auth/v1/signout') .get(authController.signout); export default router;
from progress_text import ProgressText for i in ProgressText(range(int(1E8)), every_percent=1): pass
""" Created on Wed Mar 2 16:48:49 2022 @author: fatemehmohebbi """ import numpy as np import sys from utils import read_tree, tree_reduction, get_consensus_net, plot_network from likelihood import network_likelihood, network_likelihood_parallel from felsenstein_pruning import felsenstein, felsenstein_parallel de...
# _*_ encoding:utf-8 _*_ from django import forms from .models import UserProfile from captcha.fields import CaptchaField __author__ = 'YZF' __date__ = '2018/3/14,17:14' class LoginForm(forms.Form): username = forms.CharField(required=True) password = forms.CharField(required=True, min_length=5) class Regi...
/////////////////////////////////////////////////////////////////////////// // Popup Panel Widget - Author: Robert Scheitlin /////////////////////////////////////////////////////////////////////////// /*global define*/ define([ 'dojo/_base/declare', 'dijit/_WidgetsInTemplateMixin', 'jimu/BaseWidget', 'jimu/diji...
'use strict'; describe('orcorum', function testOrcorum() { describe('http', function testHTTP() { test(); }); }); function test() { it('should be an object', function() { expect(orcorum.http).to.be.instanceOf(Object); }); it('should property method.GET be equal to "get"', function...
import cube import unittest import pytest class TestCube(unittest.TestCase): def test_0(self): self.assertEqual(cube.cube(0), 0) def test_1(self): self.assertEqual(cube.cube(1), 1) def test_2(self): self.assertEqual(cube.cube(2), 4) def test_3(self): self.assertEqual(...
# Generated by Django 4.0.4 on 2022-04-26 20:59 import authapp.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authapp', '0002_shopuser_activation_key_and_more'), ] operations = [ migrations.AlterField( model_name='sh...
""" This module provides a generic frontend to all of the reflection file formats supported in ``iotbx``. Note that this module can also be used indirectly via the even more generic :py:mod:`iotbx.file_reader` module, which provides a unified API for reading in any file (but calls :py:class:`iotbx.reflection_file_rea...
# coding=utf-8 """ Collects stats from Endeca Dgraph/MDEX server. Tested with: Endeca Information Access Platform version 6.3.0.655584 === Authors Jan van Bemmelen <jvanbemmelen@bol.com> Renzo Toma <rtoma@bol.com> """ import diamond.collector import diamond.pycompat try: from StringIO import StringIO except Im...
const { expect } = require('chai'); function check(obj) { Object.keys(obj).forEach(key => { const value = obj[key]; if (typeof value === obj) { describe(key, () => check(value)); } else { it(key, () => { expect(value).to.be.a.function; });...
# Copyright (c) 2011-2020 Eric Froemling # # 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,...
import kol.Error as Error from GenericRequest import GenericRequest from kol.util import Configuration import json class ApiRequest(GenericRequest): def __init__(self, session): super(ApiRequest, self).__init__(session) self.url = session.serverURL + "api.php" # Create a user agent string...
import warnings from stable_baselines3.common.env_util import * # noqa: F403,F401 warnings.warn( "Module ``common.cmd_util`` has been renamed to ``common.env_util`` and will be removed in the future.", FutureWarning )
System.register(["angular2/core", "angular2/common"], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? d...
#include <iostream> using namespace std; class stronglyConnectedComponents{ public: static int naive(int n); };
import click from dbloy.util import CONTEXT_SETTINGS from dbloy.version import print_version_callback, version from dbloy.configure.cli import configure from dbloy.apply.cli import apply @click.group(context_settings=CONTEXT_SETTINGS) @click.option('--version', '-v', is_flag=True, callback=print_version_callback, ...
# -*- coding: utf-8 -*- """ Created on Fri Jun 10 13:01:06 2016 @author: ericgrimson """ def g(x): def h(): x = 'abc' x = x + 1 print('in g(x): x =', x) h() return x x = 3 z = g(x)
var mongoose = require('mongoose'); var PersonSchema = new mongoose.Schema({ name: String, type: String, updated_date: { type: Date, default: Date.now } }); module.exports = mongoose.model('Person', PersonSchema);
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","fa",{title:"دستورالعملهای دسترسی",contents:"راهنمای فهرست مطالب. برای بستن این کادر Ù...
# Copyright (c) OpenMMLab. All rights reserved. from argparse import ArgumentParser, Namespace from pathlib import Path from tempfile import TemporaryDirectory import mmcv try: from model_archiver.model_packaging import package_model from model_archiver.model_packaging_utils import ModelExportUtils except Imp...
#ifndef CONFIG_H_ #define CONFIG_H_ #include <stdbool.h> #include <stdint.h> #include <mysql/mysql.h> int config_init(char *host, int port, char *user, char *pass, char *dbname); typedef struct config_tbl_hdl config_tbl_hdl_t; bool config_tbl_search(char *name, config_tbl_hdl_t **hdl); uint32_t config_tbl_st_f...
#coding:utf-8 #! /bin/python # 把文本文件转为二进制文件的工具 import os import struct import random import math class BinaryFileConverter: def __init__(self, delimiter, ignorChar, ignorLine, types, originDir, resultDir, ext, formatter, dotPrintRatio, merge): # 每行中数字间的分隔符 self.delimiter = delimiter # 需要忽略的...
import React from 'react'; import 'typeface-muli'; import {hydrate, render} from 'react-dom'; import {loadableReady} from '@oreact/core/loadable' import {ApolloProvider} from 'react-apollo'; import {DOMTree, rootNode} from '@oreact/core/client'; import 'mobx-react-lite/batchingForReactDom'; import {getApolloClient} fro...
#include <stdlib.h> #include <unistd.h> #include <locale.h> #include <libintl.h> #include <gio/gio.h> #include <gstdio.h> typedef struct { const gchar *name; const gchar *opt; const gchar *err; } SchemaTest; /* Meson build defines this, autotools build does not */ #ifndef GLIB_COMPILE_SCHEMAS #define GLIB_COMPI...
import time import pytest from helpers.cluster import ClickHouseCluster from helpers.cluster import ClickHouseKiller from helpers.network import PartitionManager cluster = ClickHouseCluster(__file__, name="reading") dictionary_node = cluster.add_instance("dictionary_node", stay_alive=True) main_node = cluster.add_in...
/*========================================================================================= File Name: ext-component-drag-drop.js Description: drag & drop elements using dragula js -------------------------------------------------------------------------------------- ========================================...
from thumbnail_maker_single_threaded import ThumbnailMakerService IMG_URLS = \ ['https://dl.dropboxusercontent.com/s/2fu69d8lfesbhru/pexels-photo-48603.jpeg', 'https://dl.dropboxusercontent.com/s/zch88m6sb8a7bm1/pexels-photo-134392.jpeg', 'https://dl.dropboxusercontent.com/s/lsr6dxw5m2ep5qt/pexels-photo-...
/** * Created by leon on 17/2/17. */ 'use strict'; angular.module('engineStatusApp') .service('traineeListService', function($http) { return { getTraineeList : function () { return $http({ method: 'GET', url: '/api/user/trainee', params:{} }) }, e...
import random import string import os from hangman_photos import HANGMAN_PHOTOS LOGO = """ _ _ | | | | | |__| | __ _ _ __ __ _ _ __ ___ __ _ _ __ | __ |/ _` | '_ \ / _` | '_ ` _ \ / _` | '_ \ | | | | (_| | | | | (_| | ...
#include "native.h" #include <windows.h> static HANDLE g_console; void tglc_native_init() { g_console = GetStdHandle(STD_OUTPUT_HANDLE); #if _WIN32_WINNT >= 0x0500 CONSOLE_FONT_INFOEX font; font.cbSize = sizeof(CONSOLE_FONT_INFOEX); GetCurrentConsoleFontEx(g_console, false, &font); font.dwFontSize.X = 8; ...
# CircuitPython Bluefruit LE Connect Plotter Example import board import analogio import adafruit_thermistor from adafruit_ble.uart_server import UARTServer uart_server = UARTServer() thermistor = adafruit_thermistor.Thermistor(board.TEMPERATURE, 10000, 10000, 25, 3950) light = analogio.AnalogIn(board.LIGHT) def s...
import concurrent.futures import logging import pytest import sys import numpy as np import zappy.executor import zappy.direct import zappy.spark import zarr from numpy.testing import assert_allclose from pyspark.sql import SparkSession # add/change to "pywren_ndarray" to run the tests using Pywren (requires Pywren t...
(function($){ acf.fields.repeater = acf.field.extend({ type: 'repeater', $el: null, $input: null, $table: null, $tbody: null, $clone: null, actions: { 'ready': 'initialize', 'append': 'initialize', 'show': 'show' }, events: { 'click a[data-event="add-row"]': '_add', 'cli...
/** * @param {character[][]} matrix * @return {number} */ var maximalSquare = function (matrix) { let height = matrix.length; let width = height === 0 ? 0 : matrix[0].length; let max = 0; for (let i = 0; i < height; i++) { for (let j = 0; j < width; j++) { const e = matrix[i][j]; i...
#ifndef GUI_H_INCLUDED #define GUI_H_INCLUDED #include <string> #include <functional> #include <array> #include <map> #include <type_traits> #include <SDL2/SDL.h> #include "LevelView.h" #include "TileMap.h" class Gui; enum class ViewType { NONE, LEVEL, TILES, HELP }; template <class T> struct Seta...
# 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...
import torch from torch.autograd import Function, Variable class Bilinear(Function): @staticmethod def forward(ctx, input1, input2, weight, bias=None): ctx.save_for_backward(input1, input2, weight, bias) output = input1.new(input1.size(0), weight.size(0)) buff = input1.new() ...
require('dotenv').config() var ipp = require('ipp') var printer = ipp.Printer(process.env.IPP_PRINTER_URL) printer.execute('Get-Job-Attributes', { 'operation-attributes-tag': { 'job-uri': 'ipp://localhost:631/jobs/67' } }, (err, res) => { if (err) throw err console.log(res) })
const app = require('./config/express')(); const port = app.get('port'); app.listen(port, () => { console.log(`Servidor rodando na porta ${port}`) });
// Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ #define CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ #include <memory> #include <vector> #include "base/m...
/* global __filename */ import $ from 'jquery' import { getLogger } from 'jitsi-meet-logger'; import { $iq, $msg, $pres, Strophe } from 'strophe.js'; import * as JitsiTranscriptionStatus from '../../JitsiTranscriptionStatus'; import * as MediaType from '../../service/RTC/MediaType'; import XMPPEvents from '../../serv...
module.exports = { theme: { extend: { colors: { 'gray-50': '#222', 'black-50': '#4a4a4a', }, lineHeight: { 'new-loose': '40px', }, }, fontFamily: { 'sans': ['Open Sans'], 'display': ['Oswald'], 'body': ['Open Sans'], }, }, variants:...
/*! For license information please see 4465.232b06f4.chunk.js.LICENSE.txt */ (self.webpackChunk_minimal_minimal_kit_react=self.webpackChunk_minimal_minimal_kit_react||[]).push([[4465],{54641:function(t,e,i){"use strict";i.d(e,{Z:function(){return w}});var a=i(4942),s=i(63366),r=i(87462),o=i(47313),n=i(83061),l=i(50317)...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Common definitions for Mica subpackages """ import os class MissingDataError(Exception): pass FLIGHT_MICA_ARCHIVE = os.path.join(os.environ['SKA'], 'data', 'mica', 'archive') # The MICA_ARCHIVE env. var can be a colon-delimited path, which allo...
import React from 'react' import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import Typography from '@material-ui/core/Typography'; import { fade, makeStyles } from '@material-ui/core/styles'; import PhoneInTalkIcon from...
from datetime import datetime import inspect import numpy as np import pytest from pandas.core.dtypes.common import ( is_categorical_dtype, is_interval_dtype, is_object_dtype, ) from pandas import ( Categorical, CategoricalIndex, DataFrame, DatetimeIndex, Index, IntervalIndex, ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ /...
#!/pxrpythonsubst # # Copyright 2021 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: # ...
# Copyright (c) 2016 Red Hat, 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 ...
import warnings from pathlib import Path import numpy as np import pandas as pd from pycox.datasets._dataset_loader import _DatasetLoader, _PATH_DATA class _DatasetKKBoxChurn(_DatasetLoader): """KKBox churn data set obtained from Kaggle (WSDM - KKBox's Churn Prediction Challenge 2017). https://www.kaggle.com/c...