text stringlengths 3 1.05M |
|---|
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
from __future__ import absolute_import, division, print_function, unicode_literals
import collections
import functools
import itertools
import pytest
import threadin... |
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] =... |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.hl7dictionary_v2_3_1=e()}}(function(){return function e... |
s = input('Nhập chuỗi: ')
k = input('Nhập ký tự: ')
print(f'Vị trí của ký tự "{k}" trong chuỗi "{s}" là: ')
for i in range(0,len(s)):
if k == s[i]:
print(i, end=' ') |
const { ApolloServer, gql, PubSub, withFilter } = require('apollo-server');
const { CampaignDataSource } = require('./CampaignDataSource');
const { KpiEventReceiver } = require('./KpiEventReceiver');
const pubsub = new PubSub();
const kpiReceiver = new KpiEventReceiver(pubsub);
//
// Schema
//
const typeDefs = gql`
... |
exports.level = {
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C3\",\"id\":\"master\",\"remoteTrackingBranchID\":\"o/master\",\"localBranchesThatTrackThis\":null},\"o/master\":{\"target\":\"C3\",\"id\":\"o/master\",\"remoteTrackingBranchID\":null,\"localBranchesThatTrackThis\":[\"master\"]}},\"commits\"... |
$(document).ready(function(){
$.ajaxSetup({
headers: {
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
}
});
var school_id = $('input[name=hidden_input]').val();
$.ajax({
method:'POST',
url:'check_ratings',
data:{
"school_id":... |
/* eslint-disable no-param-reassign */
import React, { Component } from 'react';
import Amplify, { Auth, API } from 'aws-amplify';
// import { createUser } from '../graphql/mutations';
import { Link } from 'react-router-dom';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import Pro... |
const fs = require('fs')
const path = require('path')
const webExt = require('web-ext')
const { signAddon: defaultAddonSigner } = require('sign-addon')
const { allowedChannels, requiredOptions } = require('./constants')
const { verifyOptions } = require('./utils')
const publish = async (options) => {
// This wil... |
'use strict';
var path = require('path');
var fs = require('fs');
var readFile = fs.readFileSync;
var writeFile = fs.writeFileSync;
var mkdirp = require('mkdirp').sync;
var rimraf = require('rimraf').sync;
var unlink = fs.unlinkSync;
var chmod = fs.chmodSync;
var debug = require('debug')('sync-disk-cache');
var zlib =... |
import os
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import Dataset, DataLoader
import pathfile
from chatbot.model import NeuralNet
from chatbot.nltk_utils import bag_of_words, tokenize, stem
from intents.intents import get_all_intents
path = os.path.dirname(pathfile.__file__)
def ... |
import selectOption from "src/support/action/selectOption";
describe("selectOption", () => {
let selectByAttribute;
let selectByValue;
let selectByVisibleText;
beforeEach(() => {
selectByAttribute = jest.fn();
selectByValue = jest.fn();
selectByVisibleText = jest.fn();
global.browser = {
selectByAttri... |
window['area-jsonp'] && window['area-jsonp'](["510000","513300"], [{"name":"康定县","code":"513321"},{"name":"泸定县","code":"513322"},{"name":"丹巴县","code":"513323"},{"name":"九龙县","code":"513324"},{"name":"雅江县","code":"513325"},{"name":"道孚县","code":"513326"},{"name":"炉霍县","code":"513327"},{"name":"甘孜县","code":"513328"},{"nam... |
export function state() {
return {
dealers: []
}
}
|
/**
* Kendo UI v2020.1.219 (http://www.telerik.com/kendo-ui)
* Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
import React, { useContext, useState, useEffect } from 'react'
//Contexts
import { UserContext } from '../../contexts/User'
//Styles
import '../../styles/frontendBoilerplate/WalletConnect.css'
//Icons
import { Jazzicon } from '@ukstv/jazzicon-react'
import { CustomTooltip } from './CustomTooltip'
//Utils
import { trunc... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var _ref =
/*#__PURE__*/
React.createElement("path", {
d: "M9 12v4c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h4c.55 0 1 .45 1 1zm... |
module.exports=require("./db.json"); |
window.google = window.google || {};
google.maps = google.maps || {};
(function() {
function getScript(src) {
document.write('<' + 'script src="' + src + '"' +
' type="text/javascript"><' + '/script>');
}
var modules = google.maps.modules = {};
google.maps.__... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright 2013-present Dale Lotts All Rights Reserved.
* http://www.dalelotts.com
*
* Use of this source code is governed by an MIT-style l... |
from . import secrets
class Config(object):
DEBUG = True
TESTING = False
DB_IP = secrets.DB_IP
DB_PORT = secrets.DB_PORT
DB_USER = secrets.DB_USER
DB_PASSWORD = secrets.DB_PASSWORD
DB_NAME = secrets.DB_NAME
class ProductionConfig(Config):
DEBUG = False
class DevelopmentConfig(Confi... |
// Define subject of this visaulize
var Subject = "";
// Define the number of maps that you want to visualize. upto 15 maps are supported.
var NumOfMaps = 5;
// Define the number of variable that you want to visaulize Parallel Coordinates Plot.
var NumOfPCP = 0;
//Define variables that you want to visualize at PCP.... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisa... |
import React, { Component } from 'react';
import axios from 'axios';
import { Link } from 'react-router-dom';
import { Card } from '../../components';
import './style.css';
class UsersPage extends Component {
state = {
users: []
}
componentDidMount = async () => {
try {
const response = await a... |
import React from "react";
import SnippetFormContainer from "../containers/SnippetFormContainer";
import ResultContainer from "../containers/ResultContainer";
import "../styles/App.css";
function App() {
return (
<div>
<header id="header">
<h1>VS Code snippet generator</h1>
Fill out the for... |
const {exec} = require('child_process')
module.exports = url =>{
switch (process.platform) {
case 'darwin':
exec(`open ${url}`)
break;
case 'win32':
exec(`start ${url}`)
default:
break;
}
}
|
module.exports = {
port: 4080,
mode: "production",
version: "v1.0",
cookie :{
session : 'SESSION',
domain : '?????'
},
} |
# Copyright (C) 2003-2009 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (a... |
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
#!/usr/bin/env python3
#
# __main__.py
"""
CLI entry point.
.. versionadded:: 0.2.0
"""
#
# Copyright © 2021 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to ... |
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark... |
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
const initialState = {};
// later move to redux-saga
const middleware = [thunk];
const store = createStore(rootReducer, initialS... |
new function () {
let config = {
templateUrl: 'directives/table/ng-table-select.html',
css: 'css!directives/table/ng-table-select.css'
};
define(['app', 'ng-table', 'fn.table.ngTable', 'fn.common', config.css], function (app) {
app.directive('ngTableSelect', function (commonFn) {
... |
import React, { useEffect } from 'react';
import { Animated } from 'react-native';
import { Container, ActiveIcon, InactiveIcon } from './styles';
function GridMenu({ focus, onPress }) {
const fadeAnim = new Animated.Value(1);
const Icon = focus ? ActiveIcon : InactiveIcon;
useEffect(() => {
Animated.sequ... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'docprops', 'mn', {
bgColor: 'Фоно өнгө',
bgFixed: 'Гүйдэггүй фоно',
bgImage: 'Фоно зурагны URL',
charset: 'Encoding тэмдэгт',... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 OpenMarket Ltd
#
# 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 req... |
const scrapeMessages = require('./src/scrape-messages');
const { HELMI_USERNAME, HELMI_PASSWORD } = process.env;
if (!HELMI_USERNAME || !HELMI_PASSWORD) {
process.stderr.write(`Please set HELMI_USERNAME and HELMI_PASSWORD as environment variables.\n`);
process.exit(1);
}
const puppetOptions = !!process.env.DEVTO... |
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {connect} from 'react-redux';
import {getConfig} from 'mattermost-redux/selectors/entities/general';
import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
import NotificationSet... |
import axios from 'axios';
import queryString from 'querystring';
class ListItemController {
constructor({ client }) {
this.client = client;
}
async get({ regionId, spaceId, listId, itemId, localeId, apiKey }) {
try {
const apiKeyId = apiKey || this.client.apiKey;
regionId = regionId || 'glo... |
from ._backends import Backend
import numpy as np
def create(dimensions, dtype=np.float32):
"""
Convenience method for creating images on the GPU. This method basically does the same as in CLIJ:
https://github.com/clij/clij2/blob/master/src/main/java/net/haesleinhuepf/clij2/CLIJ2.java#L156
:param d... |
import { useState, createContext } from "react";
const ChatContext = createContext(null);
export const ChatProvider = ({ children }) => {
const [name, setName] = useState("");
const [messages, setMessages] = useState([]);
const [numberOfConnections, setNumberOfConnections] = useState();
const [color, setColor... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var userSchema = new Schema({
name: String,
password: String,
coverurl: String,
votes: {type: Number, default: 0},
voters: {type: Array, default: []}
});
module.exports = mongoose.model('user', userSchema);
|
import mongoose from "mongoose"
const reviewSchema = mongoose.Schema({
name: {
type: String,
required: true
},
rating: {
type: Number,
required: true
},
comment: {
type: String,
required: true
},
user: {
type: mongoose.Schema.Types... |
import time
import pytest
import ray
from ray.train._internal.accelerator import Accelerator
from ray.train.constants import SESSION_MISUSE_LOG_ONCE_KEY
from ray.train._internal.session import (
init_session,
shutdown_session,
get_session,
TrainingResultType,
get_accelerator,
set_accelerator,
... |
# -*- coding: utf-8 -*-
import io
import textwrap
import string
import pytest
import decimal
import canmatrix.formats.dbc
def test_long_signal_name_imports():
long_signal_name = u'FAILURE_ZELL_UNTERTEMPERATUR_ENTLADEN_ALARM_IDX_01'
assert len(long_signal_name) > 32
dbc = io.BytesIO(textwrap.dedent(u'''\
... |
/*!
* tui-code-snippet.min.js
* @version 1.5.1
* @author NHN. FE Development Lab <dl_javascript@nhn.com>
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.util=e():(t.tui=t.tui||{... |
/*!
* (C) Ionic http://ionicframework.com - MIT License
* Built with http://stenciljs.com
*/
const{h:t}=window.Ionic;import{f as e,c as i}from"./chunk-deb847e6.js";import{a as s,e as a}from"./chunk-11949516.js";import{f as n,g as o,i as r,a as l,b as h,c,d}from"./chunk-06643eba.js";import"./chunk-f79257a1.js";import... |
import json
json_data = '{"a": 1, "b": 2, "c": "manish", "d": 4, "e": 5}'
# loaded_json = json.loads(json_data)
# print(loaded_json)
# print(type(loaded_json))
# for x in loaded_json:
# print("%s: %s" % (x, loaded_json[x]))
parsed = json.loads(json_data)
for x in parsed:
print("{} {}".format(x,parsed[x])) |
"use strict";
var es5 = require("./es5.js");
var canEvaluate = typeof navigator == "undefined";
var haveGetters = (function(){
try {
var o = {};
es5.defineProperty(o, "f", {
get: function () {
return 3;
}
});
return o.f === 3;
}... |
"""
Interface to quda::Dirac (dirac_quda.h)
"""
__all__ = [
"Dirac",
]
from functools import wraps
from dataclasses import dataclass
from lyncs_cppyy import make_shared
from .gauge_field import gauge, GaugeField
from .spinor_field import spinor
from .lib import lib
from .enums import get_precision
@dataclass
cl... |
#!/usr/bin/env python
# coding: utf-8
import numpy as np
import matplotlib.pylab as plt
import matplotlib as mpl
mpl.rcParams['mathtext.fontset'] = 'cm'
def timestep(q1,p1):
a3=[0.78451361047756, 0.23557321335936, -1.1776799841789, 1.3151863206839,-1.1776799841789,0.23557321335936,0.78451361047756,0.0]
b3=[0.... |
from docstr_md.python import PySoup, compile_md
from docstr_md.src_href import Github
src_href = Github('https://github.com/dsbowen/docstr-md/blob/master')
soup = PySoup(path='test.py', parser='sklearn', src_href=src_href)
compile_md(soup, compiler='sklearn', outfile='docs_md/test.md') |
/* globals testsuite */
(function() {
// toast.billing.init 1st argument : dummy data
var billingInfoDummy = {
key: {
paymentwallKey: 't_36ee924e678a7a985ba50088afb3fd',
checkoutKey: 'rCvi9+aOAYxlzBZgTlGe/ajDHWo6GF4W+JiHWn8Uuzc='
},
countryCode: 'US',
cont... |
import React, { useState, useEffect, useRef } from "react";
import styled from "styled-components";
import { Link } from "react-scroll";
// ###### CSS #########
const Navbar = {
Wrapper: styled.nav`
position: fixed;
z-index: 1;
display: inline-flex;
flex-wrap: nowrap;
flex-direction: row;
jus... |
from pypy.interpreter.unicodehelper import encode_utf8, decode_utf8
class FakeSpace:
pass
def test_encode_utf8():
space = FakeSpace()
assert encode_utf8(space, u"abc") == "abc"
assert encode_utf8(space, u"\u1234") == "\xe1\x88\xb4"
assert encode_utf8(space, u"\ud800") == "\xed\xa0\x80"
assert ... |
const { join } = require('path')
const { readFileSync } = require('fs')
const test = require('ava')
const File = require('../lib/file')
const sourceMapInit = require('../lib/helpers/init')
const sourceMapWrite = require('../lib/helpers/write')
const minifyCss = require('../lib/processors/minify')
const concat = require... |
import max from 'lodash/max';
import { OFFER_TYPES } from '../detail.constants';
import formatSportsTemplate from './formatsports/logs-home-formatsports.html';
import passwordTemplate from '../account/password/logs-account-password.html';
export default class LogsHomeCtrl {
/* @ngInject */
constructor(
$filte... |
import { useState } from "react";
export default function useInput(initialValue) {
const [value, setValue] = useState(initialValue);
return {
value,
setValue,
reset: () => setValue(""),
bind: {
value,
onChange: event => {
setValue(event.target.value);
}
}
};
}
|
const gulp = require('gulp');
const path = require('path');
const browserSync = require('browser-sync');
const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const conf = require('../conf/gulp.conf');
g... |
"""
Protocol implementations for PES5
"""
from twisted.internet import reactor, defer
from twisted.application import service
from twisted.web import client
from Crypto.Cipher import Blowfish
from datetime import datetime, timedelta
from hashlib import md5
import binascii
import struct
import time
import re
import zl... |
from . import blueprints, database, push_notifications, social, babel, rules
from .gmaps import gmaps
|
export default (theme) => ({
field: theme.field
})
|
# -*- coding: utf-8 -*-
# $Id: devices/k6221.py | Rev 42 | 2019/01/10 07:31:01 clu_wrk $
# xDevs.com Keithley 6221 module
# Copyright (c) 2012-2019, xDevs.com
#
# Python 2.7 | RPi3
# Project maintainers:
# o Tsemenko Ilya (@)
# https://xdevs.com/guide/teckit
#
import os.path
import sys
import time
import numbers
i... |
import React, { useState } from 'react';
import './progresschart.css';
import { CalendarHeatmap } from 'reaviz';
function Progresschart(){
const [count,setCount] = useState(0);
var add=[];
for(var i=0;i<count;i++)
{
add.push(<li data-level="2"></li>);
}
... |
const { ComponentParser, EmbedParser, FileParser } = require('../Handler/parsers.js')
const Util = require('./Util.js');
const { Time } = require('../Utils/helpers/customParser.js')
class AoiError {
constructor() {
const error = new Error(`Cannot initialize "AoiError" Class`)
error.name = "AoiError"... |
/*
angular-file-upload v1.1.5
https://github.com/nervgh/angular-file-upload
*/
!function(a,b){return"function"==typeof define&&define.amd?(define("angular-file-upload",["angular"],function(a){return b(a)}),void 0):b(a)}("undefined"==typeof angular?null:angular,function(a){var b=a.module("angularFileUpload",[]);return... |
import sys
import pyprind
from time import sleep
def progress_bar(items, title=''):
"""
Progress bar for iterating
Args:
items (list or int): Item count or list of items.
title (str):
Returns:
pyprind.ProgBar:
"""
if type(items) == list:
items = len(items)
... |
//# sourceMappingURL=LookupSuccess.js.map |
import React, { Component } from 'react';
import formatDate from '../date';
export default class DateDisplay extends Component {
componentDidMount() {
this._interval = setInterval(() => this.forceUpdate(), 1000);
}
componentWillUnmount() {
clearInterval(this._interval);
}
render() {
return <spa... |
"use strict";
var _Object$freeze = require("babel-runtime/core-js/object/freeze")["default"];
exports["default"] = function (strings, raw) {
return _Object$freeze(Object.defineProperties(strings, {
raw: {
value: _Object$freeze(raw)
}
}));
};
exports.__esModule = true; |
from unittest.mock import patch
from django.core.management import call_command
from django.db.utils import OperationalError
from django.test import TestCase
class CommandTests(TestCase):
def test_wait_for_db_ready(self):
"""Test waiting for db when db is available"""
with patch("django.db.utils... |
!function t(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var i=r();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(this,(function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[... |
import React, { useState, useContext, useEffect } from 'react'
import { WordleAppContext } from './WordleApp'
import InstructionModal from './InstructionModal'
import * as AiIcons from 'react-icons/ai'
const Instruction = () => {
const [modalOpen, setModalOpen] = useState(false)
const [buttonPopup, setButtonPopup] =... |
/**
* Created by socialmoneydev on 9/1/2014.
*/
var Requestor = require('./utils/requestor');
var CustomerDocument = function(){
var self = this;
self.requestId = null;
self.customerId = null;
self.documentType = null;
self.documentName = null;
self.documentContent = null;
self.reasonTyp... |
/**
* o------------------------------------------------------------------------------o
* | This file is part of the RGraph package - you can learn more at: |
* | |
* | http://www.rgraph.... |
var gulp = require('gulp');
var ect = require('gulp-ect');
var concat = require('gulp-concat');
var watch = require('gulp-watch');
var connect = require('gulp-connect');
var webpack = require('webpack-stream');
var webpack2 = require('webpack');
var browserify = require('gulp-browserify');
gulp.task('ect', function(... |
/*
* Sift 3.x
*
* Copryright 2015, Craig Condon
* Licensed under MIT
*
* Filter JavaScript objects with mongodb queries
*/
(function() {
'use strict';
/**
*/
function isFunction(value) {
return typeof value === 'function';
}
/**
*/
function isArray(value) {
return Object.prototype... |
import React from 'react';
import Typography from '@material-ui/core/Typography';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import { reduxForm, FormSection } from 'redux-form';
import { TextField } from '../form';
import { required } from '../../utils/FieldValidation';
import Field from '../ui... |
from datetime import datetime
from .utils import parse_xml, check_signature, root, validate_document, xml_error, \
schema, iso2datetime, duration2timedelta, filter_lang, url2host, trunc_str, subdomains, \
has_tag, hash_id, load_callable, rreplace, dumptree, first_text, url_get, img_to_data, is_text, unicode_str... |
# -*- encoding: utf-8 -*-
from guillotina import configure
from guillotina.content import Folder
from guillotina.directives import index
from guillotina_cms.interfaces import IDocument
@configure.contenttype(
type_name="Document",
schema=IDocument,
behaviors=[
"guillotina.behaviors.dublincore.IDub... |
"use strict";
/**
* @license
* Copyright 2017 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
const { resolve } = require('path');
module.exports = {
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
// This option interrupts the configuration hierarchy at this file
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
r... |
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
let engine;
let world;
var angle=60;
var ground;
var b1,b2,b3,b4;
var top_wall;
var ball,rock;
var btn1;
var btn2;
function setup() {
createCanvas(400,400);
engine = Engine.crea... |
/* eslint-disable react/prop-types */
import React, { useState, useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { Redirect } from 'react-router-dom';
import { Skeleton, Space } from 'antd';
import allActions from '../../redux/actions/index';
import apiGet from '../../apis/apiGet';
import use... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.AlipayDataItemDescription import AlipayDataItemDescription
from alipay.aop.api.domain.AlipayDataItemSalesRule import AlipayDataItemSalesRule
from alipay.aop.api.domain.... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){function f(a,b,c){var e,d;if(c="string"==typeof c?CKEDITOR.document.getById(c):new CKEDITOR.dom.element(c))if(e=a.fire("uiSpace",{space:b,html... |
var searchData=
[
['ila_2b_2b_2eh',['ila++.h',['../ila_09_09_8h.html',1,'']]]
];
|
var searchData=
[
['rate_13404',['rate',['../../qle/d5/d7b/struct_quant_ext_1_1_cash_flow_results.html#a905eb602ad3dbd1de3655cee88a83732',1,'QuantExt::CashFlowResults']]],
['rate_5f_13405',['rate_',['../../qle/df/d71/class_quant_ext_1_1_equity_index.html#a04fa29d9523fbf30d58ddec5c4f6a355',1,'QuantExt::EquityIndex::... |
from typing import Dict, List, Optional, Union
import numpy as np
from gym import spaces
from gym.utils import EzPickle
from pettingzoo import AECEnv
from pettingzoo.utils import agent_selector, wrappers
# importing Hanabi and throw error message if pypi package is not installed correctly.
try:
from hanabi_learn... |
# -*- coding: utf-8 -*-
"""
Adapters to use mysql as the storage backend.
This module uses the API defined in :mod:`oauth2.store.dbapi`.
Therefore no logic is defined here. Instead all classes define the queries
required by :mod:`oauth2.store.dbapi`.
The queries have been created for the following SQL tables in mind:... |
var db = require('../../util/db');
module.exports = function (req, res) {
// Get device token
var device = req.params.device;
// Store token in in-memory persistence
db.write(device);
console.log('device registered', device)
// Device registered successfully
res.send({ success: true });
}... |
/**
* Created by akash.bhatnagar on 4/7/17.
*/
var axios = require('axios');
var fbMessage = require('../fbMessage/fbMessage');
var DELIVERY_API_SERVER = "https://api.delivery.com/merchant/search/delivery?client_id=MmUyYzJlM2NjZDkzODUzYjdkNGI5MjZiZDNkYWQ1NjM2&merchant_type=R&address=";
const config = {
'Content... |
/*
Usage:
Set domain to the website you want to screenshot, eg localhost:3000
Set paths to an array of named paths (see example)
Run:
node scripts/screenshot.js name-of-directory
Example paths:
paths = [
{ title: 'Index page', path: '/'},
{ title: 'Terms and conditions', path: '/terms-conditions... |
import Store from 'electron-store'
const store = new Store()
export default {
getValue(key) {
return store.get(key)
},
setValue(key, value) {
store.set(key, value)
},
addOpenDirectory(dir) {
let openDirListKey = 'openDirList',
openDirs = store.get(openDirListKey) || []
if (openDirs.... |
import { createStore } from 'vuex';
import general from './modules/general/index';
import login from './modules/login/index';
import files from './modules/files/index';
import user from './modules/user/index';
import menu from './modules/menu/index';
const store = createStore({
modules: {
general,
login,
... |
from threading import Thread
from collections import defaultdict, OrderedDict
import schedule
import time
import os
import glob
import glob2
import json
from tqdm import tqdm
import concurrent.futures as cf
from functools import partial
import pickle
from bson.binary import Binary
import datetime
from . import Params
... |
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] =... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _portableTextEditor = require("@sanity/portable-text-editor");
var _classnames = _interopRequireDefault(require("classnames"));
var _react = _interopRequireWildcard(require("react"));
var _paths = require("... |
'use strict';
var AbstractExtension = require('../../core/abstract-extension');
var Utils = require('../../utils');
var Errors = require('../../errors');
var Button = require('../../toolbars/button');
var I18n = require('../../i18n');
/**
* CodeEditingExtension allow embedding different code editors.
*
* @param {... |
/**
* Created by mankind on 10/02/15.
*/
var mongoose = require('mongoose');
var Schema = mongoose.Scema;
var UserSchema = new Schema({
email: String,
password: String,
token: String
});
module.exports = mongoose.model('User', UserSchema); |