text
stringlengths
3
1.05M
import React from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import {logout} from '../store' import Menubar from './menubar.js' const Navbar = ({handleClick, isLoggedIn}) => ( <div> <h1>Music Learning Portal</h1> <nav> {isLoggedI...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Gtacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef GTACOIN_AMOUNT_H #define GTACOIN_AMOUNT_H #include "serialize.h" #inclu...
angular.module('orderCloud') .config(MyOrdersConfig) .controller('MyOrdersCtrl', MyOrdersController) .controller('MyOrderEditCtrl', MyOrderEditController) function MyOrdersConfig($stateProvider) { $stateProvider .state('myOrders', { parent: 'account', templateUrl: 'myOrd...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import time from flask_testing import LiveServerTestCase from selenium import webdriver from app import create_app from modules.admin.models import User from modules.settings.models import Settings from shopyoapi.init import db options = webdriver.ChromeOptions() options.add_argument("--headless") options.add_argume...
/* * Copyright (c) 2014, Oculus VR, Inc. * Copyright (c) 2016-2018, TES3MP Team * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATEN...
/* * Copyright (C) 2016-2022 T-Head Semiconductor Co., Ltd. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 * * www.apache....
def enlarge(n): """" param n is a number function will enlarge n """ return n*100 if __name__ == "_main_": y = int(input("Please choose a number:")) print(y, enlarge(y))
import { expect } from 'chai'; import { beforeEach, it, describe } from 'mocha'; import { setupComponentTest } from 'ember-mocha'; import hbs from 'htmlbars-inline-precompile'; describe('Integration | Component | account amount', () => { setupComponentTest('account-amount', { integration: true, }); beforeEa...
import os import pandas as pd import numpy as np import sklearn.neighbors as knn from tqdm import tqdm from scripts.census_reader import TractCensusReader from utils import constants NAME = 'p1_orca_by_stop' KNN_LEAF_SIZE = 50 OUTPUT_FILENAME = f'{NAME}.csv' WRITE_DIR = constants.PIPELINE_OUTPUTS_DIR def load_in...
import random import numpy as np from math import log, sqrt logOProjectionConst = 20 DefaultRandSeed = 42 sizeTolerance = 2.0/3.0 undefinedDist = -0.1 class RandProNeighsAndDensities: def __init__(this, points, minSplitSize): this.points = points this.minSplitSize = minSplitSize this.N = len(points) this.n...
"""Simple-Salesforce Package""" # flake8: noqa import sys from .api import Salesforce, SFType from .bulk import SFBulkHandler from .exceptions import (SalesforceAuthenticationFailed, SalesforceError, SalesforceExpiredSession, SalesforceGeneralError, SalesforceMalformed...
import D from './d-class'; import { isFunction, isPlainObject } from './utils'; import { prefix, eventPrefix, testTransitionProperty } from './animate-utils'; // fx cannot seperate function normalizeEvent(name) { return eventPrefix ? eventPrefix + name : name.toLowerCase(); } D.fx = { off: (eventPrefix === undefi...
import React from 'react' import { graphql } from 'gatsby' import styled from 'styled-components' const Container = styled.div` width: 85%; max-width: 1000px; margin: 0 auto; ` const Title = styled.h1` letter-spacing: 0.2rem; font-size: 3rem; border-bottom: 2px solid var(--primary-color); ` const Text = ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var imagemin = require('gulp-imagemin'); var sourcemaps = require('gulp-sourcemaps'); var del = require('del'); var babel = require('gulp-babel'); //var server = require('gulp-express'); var gls = require('gulp-live-se...
! OpenACC Runtime Library Definitions. -*- mode: fortran -*- ! Copyright (C) 2014-2017 Free Software Foundation, Inc. ! Contributed by Tobias Burnus <burnus@net-b.de> ! and Mentor Embedded. ! This file is part of the GNU Offloading and Multi Processing Library ! (libgomp). ! Libgomp is free sof...
""" Label printing models """ # -*- coding: utf-8 -*- from __future__ import unicode_literals import sys import os import logging import datetime from django.conf import settings from django.db import models from django.urls import reverse from django.core.validators import FileExtensionValidator, MinValueValidator ...
import collections.abc, pickle, weakref, sys from bidict import bidict class Shelf(collections.abc.MutableMapping): def __init__(self, backend, serializer=pickle, track_value_changes=False): self.backend = backend self.serializer = serializer self.track_value_changes = track_value_changes...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import SlackOAuthRequest @admin.register(SlackOAuthRequest) class SlackOAuthAdmin(admin.ModelAdmin): pass
import wx from CalendarHeatmap import CalendarHeatmap class DateSelectDialog( wx.Dialog ): def __init__( self, parent, triggerDates, id=wx.ID_ANY, ): super().__init__( parent, id, title=_("Date Select") ) sizer = wx.BoxSizer( wx.VERTICAL ) self.dateSelect = None self.triggerDates = triggerDates # list of...
# analitical physics import jieji class Force(): """ A force. Note that the force is stray. It does not do anything to any object. It only has a direction and magnitude, and can be binded to an obj. """ def __init__(self,vector): """ _vector is a vector, which has a direction an...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, with_statement from revolver.core import run from revolver import contextmanager as ctx from revolver import directory as dir from revolver import package, file def install(): package.ensure(["git-core", "openjdk-7-jre"]) if not dir....
test_message = (""" [ {"hex":"a6b911", "squawk":"2576", "flight":"NKS365 ", "lat":30.091925, "lon":-90.082617, "validposition":1, "altitude":9650, "vert_rate":2112,"track":326, "validtrack":1,"speed":267, "messages":652, "seen":1}, {"hex":"ac9aae", "squawk":"0000", "flight":"", "lat":30.610794, "lon":-90.394161, "val...
from keras.layers import (Conv2D, Dense, MaxPooling2D, Reshape, UpSampling2D, Input, Embedding, multiply, LeakyReLU, Dropout, Activation, Flatten, Concatenate) from keras.layers.normalization import BatchNormalization from keras.models import Sequential, Model def b...
from django.template import Library, Node, TemplateSyntaxError, TemplateDoesNotExist from activity_stream.models import ActivityFollower, ActivityStreamItem, get_people_i_follow, get_my_followers from django.template import Variable, resolve_variable from django.template import loader from django.db.models import get_m...
// // RongConversationModel.h // RongIMKit // // Created by xugang on 15/1/22. // Copyright (c) 2015年 RongCloud. All rights reserved. // #ifndef __RongConversationModel #define __RongConversationModel #import <Foundation/Foundation.h> #import <RongIMLib/RongIMLib.h> /*! 会话Cell数据模型的显示类型 */ typedef NS_ENUM(NSUIn...
import numpy as np import matplotlib.pyplot as plt import pandas as pd a = 10 a = 20 a = 30 dataset = pd.read_csv('./datasets/Social_Network_Ads.csv') # X =
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "NSCopying.h" @class NSString; @interface SGEntityTag : NSObject <NSCopying> { BOOL _indexed; BOOL _stored; BOOL _tracked; NSString *...
from . import db class StatisticsArea: BEIJING = 1 # 北京 SHANGHAI = 2 # 上海 SHENZHEN = 3 # 深圳 GUANGZHOU = 4 # 广州 HANGZHOU = 5 # 杭州 OTHER = 0 # 其他 area_map = { BEIJING: '北京', SHANGHAI: '上海', SHENZHEN: '深圳', GUANGZHOU: '广州', HANGZHOU: '杭州', ...
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示***************...
import torch from . import _functional as F from .optimizer import Optimizer class NAdam(Optimizer): r"""Implements NAdam algorithm. .. math:: \begin{aligned} &\rule{110mm}{0.4pt} \\ &\textbf{input} : \gamma_t...
import argparse from os.path import join CLI = argparse.ArgumentParser() CLI.add_argument("output", help="Absolute path of the output folder") CLI.add_argument("features", help="Number of feature options", type=int) def generate(output_path, features): for i in range(features): val = str(i + 1) ...
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #ifndef RUNTIME_VM_COMPILER_BACKEND_TYPE_PROPAGATOR_H_ #define RUNTIME_VM_COMPILER_BACKEND_TYPE_PROPAGA...
#pragma once namespace PathTracer { enum struct ComponentType : int { Shape = 0b0001, Sphere = 0b0101, Cylinder = 0b1001, Plane = 0b1101, Operation = 0b0010, Union = 0b0110, Difference = 0b1010, Intersection = 0b1110 }; }
// // ViewController.h // UICollectionViewDemo // // Created by 林涛 on 16/6/1. // Copyright © 2016年 limaofuyuanzhang. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController<UICollectionViewDataSource,UICollectionViewDelegate> @property (weak, nonatomic) IBOutlet UICollectionVi...
# ************************************************************************* # # Copyright (c) 2021 Andrei Gramakov. All rights reserved. # # This file is licensed under the terms of the MIT license. # For a copy, see: https://opensource.org/licenses/MIT # # site: https://agramakov.me # e-mail: mail@agramakov.me # #...
0,0,0,0,0,0,0,0,0,0,1 0,0,0,0,0,0,0,0,0,1,1 0,0,0,0,0,0,0,0,1,0,1 0,0,0,0,0,0,0,2,0,0,1 0,0,0,0,0,0,3,0,0,0,1 0,0,0,0,0,13,0,0,0,0,1 0,0,0,0,86,0,0,0,0,0,1 0,0,0,9,0,0,0,0,0,0,1 0,0,16,0,0,0,0,0,0,0,1 0,63,0,0,0,0,0,0,0,0,1
import numpy as np x = np.load("x.npy") y = np.load("y.npy") # import IPython ; IPython.embed() ; exit(1) ''' ok so X is shape of (3740, 306) and i want to reshape to (3740, 6, 51) ''' x_time = np.reshape(x, (3740, 6, 51), order='F') np.save("x_time.npy", x_time)
/******************************************************************************* The content of this file includes portions of the AUDIOKINETIC Wwise Technology released in source code form as part of the SDK installer package. Commercial License Usage Licensees holding valid commercial licenses to the AUDIOKINETIC W...
import { http } from './api' export default { store:(smg) => { return http.post('smgs', smg); }, update:(smg) => { return http.put(`smgs/${smg.id}`, smg); }, findAll:() => { return http.get('smgs') }, delete:(smg) => { console.log(JSON.stringify(smg)); return http.delete(`smgs/${smg.id}`, { data:...
#include "helpers.h" #include <math.h> // Convert image to grayscale void grayscale(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { // Calculate average. // Round to the nearest integer. ...
/* * Copyright 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" file ...
class EventAttendeesTable: def __init__(self): pass TABLE_NAME = "Event_Attendees" ID = "Id" USER_ID = "User_ID" ACCEPTED = "Accepted"
import React from 'react'; import { IntlProvider } from 'react-intl'; import { shallow } from 'enzyme'; import ReferralUserCard from '../ReferralUserCard'; import { mockData } from '../__mock__/mockData'; describe('ReferralUserCard', () => { let wrapper; let props; beforeEach(() => { props = mockData; w...
"""Manages cache of a DVC repo.""" from collections import defaultdict from funcy import cached_property def _make_remote_property(name): """ The config file is stored in a way that allows you to have a cache for each remote. This is needed when specifying external outputs (as they require you t...
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
// @flow import type { Conditions, LogEventSaveOptions, LogEventShowOptions, LogEventType, } from "./types"; // Really, pids, tids, and type should not be optional if saveToDb is true type LogEventOptions = { extraClass?: string, persistent?: boolean, pids?: number[], saveToDb?: boolea...
import requests from bs4 import BeautifulSoup as bs import csv import time # https://www.ss.lv/lv/transport/cars/today/sell/filter/page2.html URL = "https://www.ss.lv/lv/transport/cars/today/" LAPAS = "lapas/" DATI = "dati/" def saglabat_lapu(adrese, datne): pieprasijums = requests.get(adrese) if pieprasijum...
import React from "react" class ContactForm extends React.Component { // Render render() { return ( <form name="contact" method="POST" action="/success" data-netlify="true" data-netlify-honeypot="bot-field"> <input type="hidden" name="form-name" value="contact" /> ...
$(document).ready(function ($) { for (var i = 0; i < fifa16.columns.length - 1; i++) { $("#xAxis").append("<option value=" + i + ">" + fifa16.columns[i] + "</option>"); $("#yAxis").append("<option value=" + i + ">" + fifa16.columns[i] + "</option>"); } var x = 0 var y = 1 $("#xAxis"...
"""Printing of Treadmill container traces. """ from treadmill import utils from . import events class AppTracePrinter(events.AppTraceEventHandler): """Output out trace events. """ def on_scheduled(self, when, instanceid, server, why): """Invoked when task is scheduled.""" if why: ...
(function ($) { 'use strict'; var newstenWindow = $(window); var sideNavWrapper = $("#sidenavWrapper"); var blackOverlay = $(".sidenav-black-overlay"); // :: Preloader newstenWindow.on('load', function () { $('#preloader').fadeOut('1000', function () { $(this).remove(); ...
const express = require("express"); const { comumQuery } = require("./controllers/comumQuery"); const router = express.Router(); //will router the controllers. router.post("/select", comumQuery); //cache test module.exports = router;
import styles from "./styles.module.css"; import { useChat } from "../context/ChatContext"; import ChatItem from "./ChatItem"; import ScrollableFeed from "react-scrollable-feed"; function ChatList() { const { messages } = useChat(); return ( <div className={styles.chatlist}> <ScrollableFeed forceScroll={true...
# coding=utf-8 """ Created on 2016-04-24 @author: Eastmount 功能: 爬取新浪微博用户的信息及微博评论 网址:http://weibo.cn/ 数据量更小 相对http://weibo.com/ 正确的方法是把所有的URL都获取再依次访问 """ import time import re import os import sys import codecs import shutil import urllib from selenium import webdriver from selenium.webdriver.common.keys import K...
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hpe.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/...
#ifndef MAIN_H_INCLUDED #define MAIN_H_INCLUDED #include "Constante+include.h" #include "menu.h" #endif // MAIN_H_INCLUDED
import React from 'react' import RoomsFilter from './RoomsFilter' import RoomsList from './RoomsList' import { withRoomConsumer } from '../context' import Loading from './Loading' function RoomContainer({ context }) { const { loading, sortedRooms, rooms } = context; if (loading) return <Loading /> return ( <...
# -*- coding: utf-8 -*- r""" Finite posets This module implements finite partially ordered sets. It defines: .. csv-table:: :class: contentstable :widths: 30, 70 :delim: | :class:`FinitePoset` | A class for finite posets :class:`FinitePosets_n` | A class for finite posets up to isomorphism (i.e. ...
import React from 'react'; import { fireEvent, render } from '@testing-library/react'; import Chip from './Chip'; it('renders without crashing', () => { const div = document.createElement('div'); render( <Chip/>, div, ); }); it('displays the correct text and href', () => { const { queryByText } = rend...
module.exports = { extends: 'stylelint-config-standard', plugins: ['stylelint-declaration-strict-value', 'stylelint-order'], rules: { // cannot use arbitrary values for the defined properties. "scale-unlimited/declaration-strict-value": [ ["/color$/", 'fill', 'font-size', '/margi...
from l_00_inventory import inventory import json # CONVERT INVENTORY TO JSON AND WRITE TO FILE with open("l_00_inventory.json", "w") as json_out: json_out.write(json.dumps(inventory, indent=4)) # READ JSON INVENTORY FROM FILE with open("l_00_inventory.json", "r") as json_in: json_inventory = json_in.read() #...
from __future__ import absolute_import from .base import DefaultEvent from .csp import CspEvent from .error import ErrorEvent from .manager import EventTypeManager # types are ordered by priority, default should always be last default_manager = EventTypeManager() default_manager.register(CspEvent) default_manager.reg...
// Copyright (c) 2013 The Chromium Embedded Framework 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 CEF_TESTS_CEFTESTS_TEST_HANDLER_H_ #define CEF_TESTS_CEFTESTS_TEST_HANDLER_H_ #pragma once #include <list> #include <map> ...
from ..plugins import create_torchbmm_plugin from ..torch2trt_dynamic import tensorrt_converter, trt_ @tensorrt_converter('torch.Tensor.bmm') @tensorrt_converter('torch.bmm') def convert_bmm(ctx): mat0 = ctx.method_args[0] mat1 = ctx.method_args[1] output = ctx.method_return mat0_trt = trt_(ctx.netwo...
define(function (require, exports, module) { let OSS = require('oss'); let ossConfig = { region: '<Your region>', accessKeyId: '<Your AccessKeyId>', accessKeySecret: '<Your AccessKeySecret>', bucket: 'Your bucket name' } let client = new OSS(ossConfig); let tempCh...
from setuptools import setup, find_packages setup(name='survival', version='0.0.5', url='https://github.com/ryu577/survival', license='MIT', author='Rohit Pandey', author_email='rohitpandey576@gmail.com', description='Add static script_dir() method to Path', packages=find_pac...
from typing import Dict, List from ray.tune.logger import LoggerCallback from ray.tune.trial import Trial from ray.tune.utils import flatten_dict def _import_comet(): """Try importing comet_ml. Used to check if comet_ml is installed and, otherwise, pass an informative error message. """ try: ...
from __future__ import unicode_literals import os import shutil import subprocess from tempfile import NamedTemporaryFile from django.contrib.staticfiles import finders from django.contrib.staticfiles.storage import staticfiles_storage from django.core.files.base import ContentFile from django.utils.encoding import s...
/* * SliderNav - A Simple Content Slider with a Navigation Bar * Copyright 2010 Monjurul Dolon, http://mdolon.com/ * Released under the MIT, BSD, and GPL Licenses. * More information: http://devgrow.com/slidernav */ $.fn.sliderNav = function(options) { var defaults = { items: ["a","b","c","d","e","f","...
/* Game class */ class Game { /* Arrays */ static entities = []; static widgets = []; static tasks = []; /* Dicts */ static widgets_named = {}; static entities_named = {}; static memory = {}; /* Objsect */ static current_entity = null static offscreen = null static context = null; static canvas = null; ...
import React, { useState } from 'react'; import * as PropTypes from 'prop-types'; import { compose, filter, flatten, fromPairs, includes, map, uniq, zip, } from 'ramda'; import * as Yup from 'yup'; import Grid from '@mui/material/Grid'; import withStyles from '@mui/styles/withStyles'; import { Connectio...
import arrow import base64 import json import requests from django.conf import settings VIEWER = """ viewer { id firstName lastName hasCollidingName email openidUid isAuthor extra } """ class ServiceUnavailableError(Exception): pass class...
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from typing import Dict, Sequence from .bits import Bits from .lib import check_keys, check_name, check_str, check_int, check_list class Signal: def __init__(self, n...
import time from sleekxmpp.test import * class TestStreamTester(SleekTest): """ Test that we can simulate and test a stanza stream. """ def tearDown(self): self.stream_close() def testClientEcho(self): """Test that we can interact with a ClientXMPP instance.""" self.strea...
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]; } } } return target; };...
""" Manages the special beam canon ability -- Author : Zyorhist Last update : 29/02/20 (DrLarck) """ # dependancies import asyncio from random import randint # util from utility.cog.character.ability.ability import Ability from utility.cog.combat_system.damage.calculator import Damage_calculator # ability class ...
import React,{Component} from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import TodoList from './TodoList'; import * as serviceWorker from './serviceWorker'; import {Provider} from 'react-redux'; import store from './store/store'; class App extends Component{ render(){ return ( <Provider sto...
# -*- coding: utf-8 -*- """ mundiapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class CreateTransfer(object): """Implementation of the 'CreateTransfer' model. TODO: type model description here. Attributes: amount (int): TODO: ty...
# Copyright 2021 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, ...
import unittest import logging from coinotomy.backend.ramdiskbackend import RamdiskStorageBackend from coinotomy.watchers.wex import WexAPI, WatcherWex log = logging.getLogger("dummy") def is_sorted(trades): return all(a[0] <= b[0] for a, b in zip(trades[:-1], trades[1:])) class TestWatcherWex(unittest.TestCa...
(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{153:function(t,a,e){"use strict";e.r(a);var s=e(0),r=Object(s.a)({},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"content"},[t._m(0),t._v(" "),e("hr"),t._v(" "),t._m(1),t._v(" "),e("p",[e("a",{attrs:{href:"https://pypi.pyt...
# http://spark.apache.org/docs/latest/api/python/pyspark.ml.html from pyspark.ml.feature import Binarizer from pyspark.sql import SparkSession spark = SparkSession.builder \ .master("local") \ .appName("SQL-ML") \ .getOrCreate() """ Spark机器学习之特征提取、选择、转换 : https://blog.csdn.net/cheng9981/article/details/63...
# -*- coding: utf-8 -*- # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. """Sphinx confi...
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.addCss('.cke_editable { margin: 15px; }'); var ckeBasePath = CKEDITOR.basePath; CKEDITOR.editorConfig = function( config ) { // Define change...
/*! * froala_editor v2.2.3 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2016 Froala Labs */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&...
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = '/home/krzysztof/Repos/ur3e-ird435-rg2/catkin_ws/src' whitelisted_packages = ''.split(';') if '' != '' else [] blacklisted_packages = ''.split(';') if '' != '' else [] underlay_workspaces = '/home/krzysztof/Repos/ur3e-ird435-rg2/catki...
import React from 'react'; // import EventList from './EventList'; import PropTypes from "prop-types"; import { useFirestoreConnect, isLoaded, isEmpty, } from 'react-redux-firebase'; import { useSelector } from 'react-redux'; import Event from './Event' // import firebase from 'firebase/app'; function Dashboard(props...
# # Notification Originator # # Send SNMP INFORM notification using the following options: # # * SNMPv3 # * with user 'usr-md5-none', auth: MD5, priv NONE # * over IPv4/UDP # * using Twisted framework for network transport # * to a Manager at 127.0.0.1:162 # * send INFORM notification # * with TRAP ID 'warmStart' speci...
// -*- web -*- // // michael a.g. aïvázis <michael.aivazis@para-sim.com> // (c) 1998-2021 all rights reserved // externals import React from 'react' import GraphiQL from 'graphiql' import {{ createGraphiQLFetcher }} from '@graphiql/toolkit'; // render a {{graphiql}} view export const GiQL = () => {{ // make a f...
/****************************************************************************** * Automatically generated file. Please don't change anything. * *****************************************************************************/ #include <stdlib.h> #include <lua.h> #include <lauxlib.h> #include "...
#ifndef _I2C_H_ #define _I2C_H_ #include <i2c_interface.h> #include <gpio.h> #define NO_I2C_ACK 0 #define OK_I2C_ACK 1 #define SetHighSCL() {scl.set_mode(GPIO_MODE_IN_FLOATING);} #define SetLowSCL() {scl.set_mode(GPIO_MODE_OUT);} #define SetHighSDA() {sda.set_mode(GPIO_MODE_IN_FLOATING);} #define SetLowSDA() ...
from .context import Context from .element import Element, EntityElement, PackageElement from .package import Package from .constant import Constant from .type import Type from .entity import Entity, Instance from .generic import Generic, InstGeneric from .port import Port, InstPort from .signal import Signal from .ro...
#*** License Agreement *** # # High Energy Physics Deep Learning Convolutional Neural Network Benchmark # (HEPCNNB) Copyright (c) 2017, The Regents of the University of California, # through Lawrence Berkeley National Laboratory (subject to receipt of any # required approvals from the U.S. Dept. of Energy). All rights ...
from pygments.style import Style from pygments.token import ( Comment, Error, Keyword, Literal, Name, Number, Operator, String, Text ) class Base16Style(Style): base00 = '#1f2022' base01 = '#282828' base02 = '#444155' base03 = '#585858' base04 = '#b8b8b8' base05 = '#a3a3a3' base06 = '#...
// assets import Dashboard from 'assets/images/icons/Dashboard.svg'; import Storage from 'assets/images/icons/Storage.svg'; import Cloud from 'assets/images/icons/Cloud.svg'; import Wallet from 'assets/images/icons/Wallet.svg'; import DashboardIcon from 'ui-component/icons/DashboardIcon'; import StorageIcon from 'ui...
a=set([122,6465,45,44,61,14,122]) print(a) print(type(a)) a = True print(a,type(a)) a = 'str' print(a,type(a)) a = 123 print(a,type(a)) a = 1.23 print(a,type(a)) a = [1,2,3,] print(a,type(a)) a = (1,2,3,) print(a,type(a)) a = {'df':465,'kfjf':4656} print(a,type(a)) a = set([1,2,3,4,5,...
# Generated by Django 3.2 on 2021-05-23 18:59 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_rename_post_code_postcode_pin_code'), ('storemaster', '0002_remove_webstore_post_code'), ] o...