text stringlengths 3 1.05M |
|---|
import unittest
from you_get.common import any_download
class JseEduTest(unittest.TestCase):
def test_download(self):
any_download('https://mskzkt.jse.edu.cn/cloudCourse/seyk/detail.php?resource_id=12961', output_dir='.',
merge=True, info_only=False)
|
!function(){"use strict";function t(e,n,i){return n=void 0===n?1:n,i=i||n+1,i-n<=1?function(){if(arguments.length<=n||"string"===r.type(arguments[n]))return e.apply(this,arguments);var t,i=arguments[n];for(var o in i){var s=Array.prototype.slice.call(arguments);s.splice(n,1,o,i[o]),t=e.apply(this,s)}return t}:t(t(e,n+1... |
import { assert } from 'ember-debug';
import calculateLocationDisplay from '../system/calculate-location-display';
export default function assertReservedNamedArguments(env) {
let { moduleName } = env.meta;
return {
name: 'assert-reserved-named-arguments',
visitors: {
PathExpression(node) {
... |
"""Some convenient utils functions."""
import datetime
import os
import socket
import sys
import traceback
import uuid
import pytz
from ndscheduler.corescheduler import constants
def import_from_path(path):
"""Import a module / class from a path string.
:param str path: class path, e.g., ndscheduler.coresc... |
import struct
import bz2
def write_len(fp, l):
"""
A frequently used utility function to write an integer
to a given stream.
"""
fp.write(struct.pack('!L', l))
def conv_len(bytes):
"""
This takes some bytes and converts them to an integer following
the same conventions used by the othe... |
# Complete the test function to perform a hypothesis test
# on list l under the null that the mean is h
from math import sqrt
def mean(l):
return float(sum(l))/len(l)
def var(l):
m = mean(l)
return sum([(x-m)**2 for x in l])/len(l)
def factor(l):
return 1.96
def conf(l):
return factor(l) * ... |
/*
* @name ๅข้/ๅ้
* @description "a++" ็ญไบ "a = a + 1"ใ "a--" ็ญไบ "a = a - 1"ใ
*/
let a;
let b;
let direction;
function setup() {
createCanvas(710, 400);
colorMode(RGB, width);
a = 0;
b = width;
direction = true;
frameRate(30);
}
function draw() {
a++;
if (a > width) {
a = 0;
direction = !dire... |
import Ember from 'ember';
const {computed, get, observer, RSVP, set} = Ember;
import ENV from '../../config/environment';
const {apiURL} = ENV;
export default Ember.Controller.extend({
i18n: Ember.inject.service(),
featureToggle: Ember.inject.service(),
buildermodSearchService: Ember.inject.service(),
depart... |
from express.properties.scalar import ScalarProperty
class SurfaceEnergy(ScalarProperty):
def __init__(self, name, parser, *args, **kwargs):
super(SurfaceEnergy, self).__init__(name, parser, *args, **kwargs)
self.value = kwargs["value"]
|
#pragma once
#include <unordered_map>
#include <array>
#include "Texture.h"
class TextureAtlas : public Texture
{
public:
TextureAtlas(const std::string& filename, bool mipmaps = false, bool flipped = true);
~TextureAtlas();
inline void addItem(const std::string& name, unsigned int x, unsigned int y)
{
items_... |
/**
* @license
* Copyright (c) 2014, 2021, Oracle and/or its affiliates.
* Licensed under The Universal Permissive License (UPL), Version 1.0
* as shown at https://oss.oracle.com/licenses/upl/
* @ignore
*/
define(['ojs/ojlogger'],
function(Logger)
{
"use strict";
function _typeof(obj) { "@babel/helpers - typ... |
import { camelizeKeys } from './util';
import { mapValues, mapKeys } from 'lodash';
const fixture = {
camelCaseKey: 'lorem',
null_value: null,
snake_case_key: 'ipsum',
'kebab-case-key': 'dolor',
PascalCaseKey: 'sit',
'Strangely-formatted_KeyName': 'Strangely-formatted_KeyValue',
array_with_objects: [
... |
import React from "react";
const Home = () => {
return (
<>
<h1>This is the home component!</h1>
<p>Also known as the landing page</p>
</>
);
};
export default Home;
|
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import stylelint from 'stylelint';
import ruleName from './rule-name';
export default stylelint.utils.ruleMessages(ruleName, {
unexpectedProp(physicalProperty, logicalProperty) {
return `Unexpected "${physicalProperty}" property. Use "${logicalProperty}".`;
},
unexpectedValue(property, physicalValue, logicalValue... |
from . import sale_currency
from . import pricelist
from . import multico
|
# Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... |
from collections import OrderedDict
from functools import partial
from django.forms.fields import Field
def patch_document(function, instance):
setattr(instance, function.__name__, partial(function, instance))
def get_declared_fields(bases, attrs, with_base_fields=True):
"""
Create a list of form field... |
/* Autogenerated with Kurento Idl */
/*
* (C) Copyright 2013-2015 Kurento (http://kurento.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/licenses/LI... |
define(["Tone/core/Tone", "Tone/core/Buffer", "Tone/source/Source"], function(Tone){
"use strict";
/**
* @class Tone.Player is an audio file player with start, loop, and stop functions.
*
* @constructor
* @extends {Tone.Source}
* @param {string|AudioBuffer} url Either the AudioBuffer or the url f... |
# %%
"""
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Join/intersect.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" href... |
// blogslider start
$(".blogslid").slick({
dots: true,
arrows: false,
autoplay: true,
infinite: false,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
infinite: true,
dots: t... |
var assert = require('assert');
var R = require('..');
describe('substringTo', function() {
it('returns the trailing substring of a string', function() {
assert.strictEqual(R.substringTo(8, 'abcdefghijklm'), 'abcdefgh');
});
it('is automatically curried', function() {
var through8 = R.su... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... |
#ifndef C0P_PARAM_OBJECTS_SURFER__US_0O8__SURFTIMECONST_2O75_GROUP_HOMOGENEOUS_MEMBER_AGENT_BEHAVIOUR_SENSOR_DIRECTION_ACCURATE_PARAMETERS_H
#define C0P_PARAM_OBJECTS_SURFER__US_0O8__SURFTIMECONST_2O75_GROUP_HOMOGENEOUS_MEMBER_AGENT_BEHAVIOUR_SENSOR_DIRECTION_ACCURATE_PARAMETERS_H
#pragma once
// app includes
#include... |
/*
NSMigrationManager.h
Core Data
Copyright (c) 2004-2016, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSArray.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSError.h>
NS_ASSUME_NONNULL_BEGIN
@class NSEntityDescription;
@class NSEntityMapping;
@class NSManagedObjectContext;
@c... |
#!/usr/bin/env python
__version__ = '$Revision: 1.1.1.1 $'
__date__ = '$Date: 2008/07/09 14:41:05 $'
__author__ = '$Author: ttaauu $'
__credit__ = ''
import sys
import pickle
import popen2
import time
import Queue
import signal
while True:
try:
from make_sched import *
except EOFError, ValueError:
... |
const fs = require('fs');
const path = require('path');
const { execSync } = require('child_process');
const resolve = _path => path.join(__dirname, _path);
const timePath = resolve('index.txt');
const MAX_TIME = 86400000;
const checkTime = () => {
const lastTime = +fs.readFileSync(timePath).toString();
const n... |
from generator.basic.IntGenerator import IntGenerator
class LastStatusGenerator(IntGenerator):
def get_sequence(self, length, x, y, a, c, m, t0, min=0, max=3):
"""
Generates sequence of last statuses.
:param length: length of sequence
"""
try:
for i in... |
exports.up = async (knex) => {
await knex.schema
.createTable("users", (users) => {
users.increments("id");
users.string("email", 254).notNullable().unique();
users.string("password", 200).notNullable();
users.string("first_name", 120).notNullable();
users.string("last_name", 120).no... |
var assert = require('assert');
var value = '';
Feature('rating');
Scenario('should be disabled if "readonly" is specified', async (I) => {
I.amOnPage('read-only.html');
value = await I.grabAttributeFrom('[id="root[rating]5"]', 'disabled');
assert.equal(value, 'true');
value = await I.grabAttributeFrom('[id="... |
import json
from channels.generic.websocket import WebsocketConsumer
from channels.routing import URLRouter
from channels.testing import WebsocketCommunicator
from django.conf import settings
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import path
from jwt import en... |
"""The Trakt integration."""
import asyncio
import logging
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
from homeassistant.core import HomeAssistant
from homeassistant.helpers import aiohttp_client, config_entry_oauth2_... |
# coding: utf-8
"""
Apteco API
An API to allow access to Apteco Marketing Suite resources # noqa: E501
The version of the OpenAPI document: v2
Contact: support@apteco.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class RecordSet(object... |
var key = require('./');
var expect = require('expect');
describe('weak-key', function() {
it('generates a key for an object', function() {
var obj = {};
expect(key(obj)).toBeA('string');
});
it('generates the same key for the same object', function() {
var obj = {};
var key1 = key(obj);
var... |
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_BASIC_MEMORY_CHUNK_H_
#define V8_HEAP_BASIC_MEMORY_CHUNK_H_
#include <type_traits>
#include "src/base/atomic-utils.h"
#include "src/co... |
import sys
import math
from datetime import datetime
from reloadium.vendored.sentry_sdk.utils import (
AnnotatedValue,
capture_internal_exception,
disable_capture_event,
format_timestamp,
json_dumps,
safe_repr,
strip_string,
)
import reloadium.vendored.sentry_sdk.utils
from reloadium.ven... |
export default function(scrollClass) {
const el = document.body
window.addEventListener('scroll', updateClass.bind(null, el, scrollClass))
updateClass(el, scrollClass)
}
function updateClass(el, className) {
const scrollPos = el.scrollTop
if (scrollPos === 0) {
if (hasClass(el, className)) {
consol... |
# Copyright 2017 Mycroft AI 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 writin... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2015-2020 Intel, Inc. All rights reserved.
* Copyright (c) 2016 Mellanox Technologies, Inc.
* All rights reserved.
* Copyright (c) 2018 Research Organization for Information Science
* ... |
/*
* Copyright 2015 Anton Tananaev (anton@traccar.org)
*
* 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 3 of the License, or
* (at your option) any later version.
*
* Thi... |
#!/usr/bin/python
# -*- coding:utf-8 -*-
"""
@author:Hadrianl
"""
from pathlib import Path
from vnpy.trader.app import BaseApp
from .engine import VisualEngine, APP_NAME
class VisualizationApp(BaseApp):
""""""
app_name = APP_NAME
app_module = __module__
app_path = Path(__file__).parent
displ... |
export default {
header: {
editor: 'edit online'
},
form: {
itemsAsset: 'Form Item Asset',
attribute: 'Form Attribute',
itemAttribute: 'FormItem Attribute',
JSON: 'JSON to Form'
},
code: {
copy: 'copy code'
}
}
|
search_result['239']=["topic_0000000000000075.html","SyncAccessTokenDto Class",""]; |
/*jshint globalstrict:false, strict:false */
/*jshint -W034, -W098, -W016 */
/*eslint no-useless-computed-key: "off"*/
/*global assertTrue */
////////////////////////////////////////////////////////////////////////////////
/// @brief test v8
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2012 triagens GmbH, C... |
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement("path", {
d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41... |
# -*- coding: utf-8 -*-
###############################################################################
#
# GetAllEntries
# Retrieves all calendar entries from a specified project.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# yo... |
var _ = require('underscore');
var MockFactory = require('../../../helpers/mockFactory');
module.exports = function (LayerModel) {
var layer;
var source;
var engineMock;
beforeEach(function () {
source = MockFactory.createAnalysisModel({ id: 'a0' });
engineMock = MockFactory.createEngine();
layer ... |
"""Add min and max position cost
Revision ID: e31a94a27efb
Revises: 15bc523ae63e
Create Date: 2019-04-08 14:18:56.081686
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'e31a94a27efb'
down_revision = '15bc523ae63e'
branch_labels = None
depends_on = None
def up... |
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import StartRoute from '@/components/ReactRouter/StartRoute';
import AddressRoute from '@/components/ReactRouter/AddressRoute';
import BlockRoute from '@/components/ReactRouter/BlockRoute';
import BlocksRoute from '@/components/ReactRouter/Bl... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TurnMemoryScope = void 0;
/**
* @module botbuilder-dialogs
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const memoryScope_1 = require("./memoryScope");
const scopePath_1 =... |
const wr = new ( require ( 'stream' ).Writable );
const Ex = require ( 'st_ex1' );
debugger;
const waon = Ex.SetStream.StreamAllOn.WriteAllOn;
console.log ( waon.help );
waon ( wr );
debugger;
|
# -*- coding: utf-8 -*-
"""
Copyright [2009-2017] EMBL-European Bioinformatics Institute
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... |
# coding=utf-8
#
"""
Copyright (c) 2020, Alexander Magola. All rights reserved.
license: BSD 3-Clause License, see LICENSE for more details.
"""
class AnyAmountStrsKey(object):
""" Any amount of string keys"""
__slots__ = ()
def __eq__(self, other):
if not isinstance(other, AnyAmountStrsKey):
... |
import discord
from discord.ext import commands
import logging
import traceback
class Listeners(commands.Cog):
def __init__(self, bot):
self.bot=bot
self.logger=logging.getLogger("discord")
@commands.Cog.listener(name="on_command")
async def _log_command_invoke(self, ctx):
self.log... |
# -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making ่้ฒธๆบไบ-ๆ้ไธญๅฟ(BlueKing-IAM) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... |
# Copyright 2018-2019 The glTF-Blender-IO authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
/**
* Directly from fnakstad
* https://github.com/fnakstad/angular-client-side-auth/blob/master/client/js/routingConfig.js
*/
(function (exports) {
'use strict';
var config = {
/* List all the roles you wish to use in the app
* You have a max of 31 before the bit shift pushes the accompan... |
# DADSA - Assignment 1
# Reece Benson
from classes import Player
from classes import Round
class Season():
_app = None
_j_data = None
_name = None
_players = { }
_tournaments = { }
_rounds = { }
_rounds_raw = { }
_settings = { }
def __init__(self, _app, name, j_data):
# Se... |
"""
This animation example shows how perform a radar sweep animation.
If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.radar_sweep
"""
import arcade
import math
# Set up the constants
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
SCREEN_TITLE = "... |
# Copyright 2019 Xanadu Quantum Technologies 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 agre... |
##############################################################################
#
# A simple program to write some data to an Excel file using the XlsxWriter
# Python module.
#
# This program is shown, with explanations, in Tutorial 1 of the XlsxWriter
# documentation.
#
# Copyright 2013-2018, John McNamara, jmcnamara@c... |
/**
* Copyright 2017-present, BOCOMUI, Inc.
* 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 PATENTS file in the same directory.
*/
import React fr... |
"""
Ephemeris calculations using SunPy coordinate frames
"""
import numpy as np
from packaging import version
import astropy.units as u
from astropy.constants import c as speed_of_light
from astropy.coordinates import (
ICRS,
HeliocentricEclipticIAU76,
SkyCoord,
get_body_barycentric,
get_body_baryc... |
๏ปฟ/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'da', {
options: 'Muligheder for hjรฆlpemenu'
});
|
# Copyright 2015 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.
import hashlib
import os
import sys
import unittest
import zipfile
DATA_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
ROOT_DIR = os... |
import pandas as pd
from bs4 import BeautifulSoup
import glob
import ntpath
from bs4.element import Comment
def path_leaf(path):
head, tail = ntpath.split(path)
return tail or ntpath.basename(head)
csv_file = "/media/rna/yahoo_crawl_data/Yahoo-20190406T235503Z-001/Yahoo/URLtoHTML_yahoo_news.csv"
mapping_f... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @file binding-redirect.ts
* @author tngan
* @desc Binding-level API, declare the functions using Redirect binding
*/
var utility_1 = require("./utility");
var libsaml_1 = require("./libsaml");
var url = require("url");
var urn_1 = requir... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Gaussian mixture model
"""
# Load external dependencies
from setup import *
# Load internal dependencies
from sklearn.mixture import GaussianMixture
def gmm_fit(X, N):
"""
Fit models with N range components
"""
models = [None for i in range(len(N))]
... |
from django.shortcuts import render
from django.template.loader import get_template
from django.http import HttpResponse
import datetime
from newapp.models import Course, Question, Answer
import random
from .forms import ContactForm, QuestionForm, Qform, SearchForm, AnswerForm
from django.db.models import Q
# Create yo... |
# Copyright 2012 Nebula, 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 agree... |
import { makeStyles } from '@material-ui/styles';
const useStyles = makeStyles(theme => ({
root: {
[theme.breakpoints.up('xl')]: {
paddingLeft: theme.spacing(5),
paddingRight: theme.spacing(4),
},
[theme.breakpoints.down('lg')]: {
paddingLeft: theme.spacing(4),
paddingRight: theme... |
#ifndef __INTFMGR__
#define __INTFMGR__
#include "dbconnector.h"
#include "producerstatetable.h"
#include "orch.h"
#include <map>
#include <string>
#include <set>
struct SubIntfInfo
{
std::string vlanId;
std::string mtu;
std::string adminStatus;
std::string currAdminStatus;
};
typedef std::map<std::... |
/*
* Multi2Sim
* Copyright (C) 2012 Rafael Ubal (ubal@ece.neu.edu)
*
* 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 your option) any late... |
lines = int(input())
inputs = []
for i in range(lines):
inputs.append(input())
for i in range(lines):
if len(inputs[i]) > 10:
print('{}{}{}'.format(inputs[i][0], len(inputs[i])-2, inputs[i][len(inputs[i])-1]))
else:
print(inputs[i]) |
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 26 12:51:14 2018
@author: gregz
"""
import matplotlib
matplotlib.use('agg')
import argparse as ap
import numpy as np
import os.path as op
from astropy.convolution import Gaussian2DKernel
from astropy.io import fits
from astropy.stats import SigmaClip, biweight_midvarian... |
/**
* \file
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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 ... |
/**
* Copyright (c) 2015 - 2019, Nordic Semiconductor ASA
*
* 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 no... |
/**
* @license AngularJS v1.2.10
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc overview
* @name ngRoute
* @description
*
* # ngRoute
*
* The `ngRoute` module provides routing and deeplinking services and ... |
/*!
* OpenUI5
* (c) Copyright 2009-2020 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["sap/ui/base/ManagedObject","sap/ui/dom/units/Rem","sap/base/Log"],function(e,t,n){"use strict";function i(e){if(e===null||e===undefined){return e}if(e===... |
"""SQL io tests
The SQL tests are broken down in different classes:
- `PandasSQLTest`: base class with common methods for all test classes
- Tests for the public API (only tests with sqlite3)
- `_TestSQLApi` base class
- `TestSQLApi`: test the public API with sqlalchemy engine
- `TestSQLiteFallbackApi`: t... |
export class Car {
brand;
color;
roofColor;
options1;
options2;
/**
* @param {string} brand
* @param {number} color
* @param {number} roofColor
* @param {Array<number>} options1
* @param {Array<number>} options2
*/
constructor(brand, color, roofColor, options1, options2) {
this.brand = bra... |
from numpy import around
def range_step(min_: int, max_: int, size: int) :
return (max_ - min_) / size
def round(iterable_, decimals: int):
return around(iterable_, decimals)
|
//
// NSArray+PrestoData.h
//
// Copyright (c) 2015 Daniel Hall
//
// 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, c... |
// ๋ฌธ์ ์ค๋ช
// ์กฐ์ด์คํฑ์ผ๋ก ์ํ๋ฒณ ์ด๋ฆ์ ์์ฑํ์ธ์. ๋งจ ์ฒ์์ A๋ก๋ง ์ด๋ฃจ์ด์ ธ ์์ต๋๋ค.
// ex) ์์ฑํด์ผ ํ๋ ์ด๋ฆ์ด ์ธ ๊ธ์๋ฉด AAA, ๋ค ๊ธ์๋ฉด AAAA
// ์กฐ์ด์คํฑ์ ๊ฐ ๋ฐฉํฅ์ผ๋ก ์์ง์ด๋ฉด ์๋์ ๊ฐ์ต๋๋ค.
// โฒ - ๋ค์ ์ํ๋ฒณ
// โผ - ์ด์ ์ํ๋ฒณ (A์์ ์๋์ชฝ์ผ๋ก ์ด๋ํ๋ฉด Z๋ก)
// โ - ์ปค์๋ฅผ ์ผ์ชฝ์ผ๋ก ์ด๋ (์ฒซ ๋ฒ์งธ ์์น์์ ์ผ์ชฝ์ผ๋ก ์ด๋ํ๋ฉด ๋ง์ง๋ง ๋ฌธ์์ ์ปค์)
// โถ - ์ปค์๋ฅผ ์ค๋ฅธ์ชฝ์ผ๋ก ์ด๋
// ์๋ฅผ ๋ค์ด ์๋์ ๋ฐฉ๋ฒ์ผ๋ก "JAZ"๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค.
// - ์ฒซ ๋ฒ์งธ ์์น์์ ์กฐ์ด์คํฑ์ ์๋ก 9๋ฒ ์กฐ์ํ์ฌ J๋ฅผ... |
#!/usr/bin/env python
#
# Pucktada Treeratpituk (https://pucktada.github.io/)
# License: MIT
# 2017-05-01
#
# A recurrent neural network model (LSTM) for thai word segmentation
import logging
import re
import numpy as np
import tensorflow as tf
import tensorflow.contrib.layers as layers
import tensorflow.contrib.rnn as... |
๏ปฟ//Problem 5. Third bit
//Write a boolean expression for finding if the bit #3 (counting from 0) of a given integer.
//The bits are counted from right to left, starting from bit #0.
//The result of the expression should be either 1 or 0.
function getByte(number, position) {
thirdBit = (number >> position) & 1;
... |
import ChainedSelectListField from './chained-select-list-field';
const createCarsField = props => {
return new ChainedSelectListField({
name: 'cars',
label: 'Cars',
required: true,
blankString: 'None',
// block: true,
// fullWidth: true,
options: [
{ value: 1, parentValue: null, la... |
webpackJsonp([0xf22e95fad48],{836:function(e,t){e.exports={data:{post:{id:"/Users/Isaac/website/content/posts/2018-04-02--customize-personal-blog-starter/index.md absPath of file >>> MarkdownRemark",html:'<p>The <a href="/gatsby-starter-personal-blog/">starter</a> uses a theme object so base customization is really eas... |
import datetime
import unittest
import pandas as pd
from sklearn.datasets import make_classification, make_regression
from sklearn.metrics import f1_score
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.utils.estimator_checks import check_estimator
from ITMO_FS.ensembles i... |
define('app/episodes/space/manifest',
[
'app/i18/_', 'app/core/_'
],
function(i18, core) {
return function() {
var r = core.helperApp.pixelRatio();
return {
splashscreen: true,
ball: {
tail: true,
explosion: true
},
... |
# Copyright 2015 Ufora 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 i... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _checkBox = _interopRequireDefault(require("./checkBox.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default = {
animationData: _checkBo... |
# Generated by Django 2.0.1 on 2020-10-31 01:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('feed', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='feed',
name='details',
),
]
|
#!/usr/bin/env python
import unittest
from bardolph.controller import light_set
from bardolph.fakes import fake_lifx
from bardolph.fakes.fake_lifx import Action
from bardolph.lib.injection import provide
from bardolph.parser.parse import Parser
from tests import test_module
from tests.script_runner import ScriptRunn... |
#include <windows.h>
#include <tchar.h>
#include "xvmcore.h"
#include "atoms.h"
#include "foperate.h"
#include "xvmerror.h"
#include <vector>
using namespace xcode;
using namespace std;
class XVM_API xcomplier
{
public:
xcomplier();
~xcomplier();
public:
xvmcore* m_pxvm;
public:
int eval(tchar * str);
int proc... |
# -*- coding: utf-8 -*-
tests = r"""
>>> from django.forms import *
>>> from django.core.files.uploadedfile import SimpleUploadedFile
>>> import datetime
>>> import time
>>> import re
>>> try:
... from decimal import Decimal
... except ImportError:
... from django.utils._decimal import Decimal
#########
# Form... |
window._ = require("lodash");
window.feather = require("feather-icons/dist/feather.min.js");
require("alpinejs");
|
var class_terrain_object_manager =
[
[ "MapKey", "class_terrain_object_manager.html#a3cf848b4c4b11eb06135d83bc91b7af7", null ],
[ "StorageMap", "class_terrain_object_manager.html#ab349676b02a8fe4176c46ef06e87ce6c", null ],
[ "TerrainObjectManager", "class_terrain_object_manager.html#aac7be644f7265c410905769... |