text stringlengths 3 1.05M |
|---|
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( '... |
from __future__ import unicode_literals
import time
import binascii
import io
from .fragment import FragmentFD
from ..compat import (
compat_Struct,
compat_urllib_error,
)
u8 = compat_Struct(">B")
u88 = compat_Struct(">Bx")
u16 = compat_Struct(">H")
u1616 = compat_Struct(">Hxx")
u32 = compat_Struct(">I")
u6... |
const { cliopts } = require('estrella');
const [opts] = cliopts.parse(
['serve', 'Serve build site'],
['analyze', 'Analyze Bundle'],
['livereload', 'Init livereload']
);
if (cliopts.watch && opts.analyze) throw new Error('watch and analyze not allowed together');
if (opts.livereload && opts.serve)
throw new E... |
#
# This file is part of pretix (Community Edition).
#
# Copyright (C) 2014-2020 Raphael Michel and contributors
# Copyright (C) 2020-2021 rami.io GmbH and contributors
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General
# Public License as published by ... |
var today = new Date();
var actual = String(today.getFullYear()+'-'+("0" + (today.getMonth() + 1)).slice(-2)+'-'+today.getDate());
$(".form_datetime").datetimepicker({
format: 'yyyy-mm-dd hh:ii',
autoclose: true,
startDate: actual,
language: 'es'
});
|
import argparse
import asyncio
import functools
import os
import signal
import sys
import yaml
import logging
from monitoring.metrics import Metrics
logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s [%(filename)s:%(lineno)d] %(message)s')
# logger for this file
logger = logging.getLogger(__name__)
logg... |
import {
PRODUCT_ROUTES,
PRODUCT_ROUTES_SUCCESS,
PRODUCT_ROUTES_ERROR,
} from './constants'
export const getProductBestRoutes = () => {
return (dispatch, getState) => {
let { wishlist, user } = getState();
let items = (wishlist.data || []).map(item => item.text);
let data = {
items,
... |
# coding: utf-8
# TODO - split the asserts between algebraic and weak formulations ones
# - add assert for grad in vector case
# TODO: - __call__ examples are not working anymore
import pytest
from sympy import Symbol
from sympy.core.containers import Tuple
from sympy import symbols
from sympy import IndexedBas... |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Button from 'material-ui/Button';
import List from 'material-... |
// @flow
import React, { useState, useCallback } from "react";
import { compose } from "redux";
import { connect, useDispatch } from "react-redux";
import { Trans, withTranslation } from "react-i18next";
import { createStructuredSelector } from "reselect";
import Track from "~/renderer/analytics/Track";
import { UserR... |
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved
/**
* @fileOverview QUnit tests for sap/ushell/User.js
*/
(function () {
"use strict";
/* global deepEqual, module, ok, test, strictEqual, sinon, throws */
jQuery.sap.require("sap.ushell.User");
jQuery.sap.require("sap.ui.thirdparty.URI");
... |
import os
from flask import Flask, request, abort, jsonify
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
from auth import AuthError, requires_auth
from models import setup_db, Actor, Movie
from config import ITEMS_PER_PAGE
def create_app(test_config=None):
# create and configure the app
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[271],{4160:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return o}));r(11),r(2),r(4),r(8),r(3),r(9);var n=r(0),l=r.n(n);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.protot... |
/**
* 打包的入口文件,把需要的组件或是第三方在这里导入进来
*/
//导入第三方包
/** Vue是变量名 vue是包名 */
import Vue from 'vue'
import Mint from 'mint-ui'
import VueResource from 'vue-resource'
import moment from 'moment'
import VuePreview from 'vue-preview'
// import axios from 'axios'
//集成中间件
Vue.use(Mint)
Vue.use(VueResource)//Vue.propertype.$http
Vu... |
import component from './domain-dns-anycast.component';
const moduleName = 'domainAnycast';
angular.module(moduleName, [])
.component('domainAnycast', component);
export default moduleName;
|
# -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : DB Manager
Description : Database manager plugin for QGIS
Date : May 23, 2011
copyright : (C) 2011 by Giuseppe Sucameli
email : brush.tyler@... |
# coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class ContainerSummary(Model):
"""NOTE: This class is auto generated by the sw... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... |
import styled from '@emotion/styled'
export const CalendarNavbarEl = styled.div`
@media (min-width: ${(props) => props.theme.breakpoints.md}) {
}
.DayPicker-NavBar {
display: flex;
justify-content: space-between;
position: relative;
top: 41px;
align-items: center;
@media (min-width: ${(... |
# Base code from PyTorch examples: https://github.com/pytorch/examples/blob/master/mnist/main.py
from __future__ import print_function
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.optim.lr_schedule... |
# from gearbox.main import main, Gearbox
from gearbox.main import main
__all__ = ['main']
|
# 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 required by appli... |
from setuptools import setup
# https://python-packaging.readthedocs.io/en/latest/minimal.html
setup(
author="Radon Rosborough",
author_email="radon.neon@gmail.com",
description="Internal utilities for straight.el.",
license="MIT",
install_requires=["psutil==5.6.6"],
name="straight-watcher",
... |
# Generated by Django 2.1.1 on 2019-03-13 12:41
import django.core.validators
import django.db.models.deletion
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMode... |
import { Universe, Cell } from "wasm-game-of-life";
// Import the WebAssembly memory at the top of the file.
import { memory } from "wasm-game-of-life/wasm_game_of_life_bg";
const CELL_SIZE = 2; // px
const GRID_COLOR = "#EEEEEE";
const DEAD_COLOR = "#FFFFFF";
const ALIVE_COLOR = "#e34572";
// Construct the universe,... |
module.exports = {
docs: [
'Overview',
'Glossary',
{
type: 'category',
label: 'Basics',
items: [
'Intro_to_Alaya',
'Intro_to_ATP',
'staking_and_delegation',
'Networks',
'Alaya... |
import { Daemon } from "./daemon";
import { WalletRPC } from "./wallet-rpc";
import { SCEE } from "./SCEE-Node";
import { dialog } from "electron";
import semver from "semver";
import axios from "axios";
import { version } from "../../../package.json";
const bunyan = require("bunyan");
const WebSocket = require("ws");... |
"""gsi_audit_event.py: These tests validate auditing of events for GSI
__author__ = "Hemant Rajput"
__maintainer = "Hemant Rajput"
__email__ = "Hemant.Rajput@couchbase.com"
__git_user__ = "hrajput89"
__created_on__ = "08/17/20 12:31 pm"
"""
from remote.remote_util import RemoteMachineShellConnection
from security.rba... |
const request = require('supertest')
const { beforeAction, afterAction } = require('../../helpers/setup')
const { getAccessToken } = require('../../helpers/getAccessToken')
const { User } = require('../../../api/models')
const { Note } = require('../../../api/models')
let api
let token
beforeAll(async () => {
api... |
'use strict';
const Q = require('q');
const pm2 = require('pm2');
const dialog = require('dialog');
const yargs = require('yargs');
const Core = require('../core');
const db = require('../lib/db');
const path = require('path');
const configure = require('./configure');
global.__nodeModules = path.join(__dirname, '..... |
#!/usr/bin/python
# The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
#
#
# This is an example illustrating the use of a binary SVM classifier tool from
# the dlib C++ Library. In this example, we will create a simple test dataset
# and show how to learn a classifier from ... |
const gamesModel = require('../models/gamesModel')
function postGamesDD (req, res) {
const gameData = {
userName: req.body.userName,
titleGame1: req.body.dd_game1
}
const NewDropDownGames = new gamesModel(gameData)
NewDropDownGames.save((err) => {
if (err) {
console.log('Could n... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var CommentSchema = new Schema({
articleId: String,
author: String,
text: String
});
module.exports = CommentSchema;
|
function printSysex(data)
{
println("Sysex: " + prettyHex(data));
}
function uint8ToHex(x)
{
var upper = (x >> 4) & 0xF;
var lower = x & 0xF;
return upper.toString(16) + lower.toString(16) + " ";
}
function uint7ToHex(x)
{
var upper = (x >> 4) & 0x7;
var lower = x & 0xF;
return upper.toString(... |
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
const EmptyPanel = ({ t, className }) => (
<div className={cx('PlaylistPanel', 'PlaylistPanel--empty', className)}>
{t('playlists.noPlaylists')}
</div>
);
EmptyPanel.propTypes... |
# Copyright 1999-2020 Alibaba Group Holding 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 required by applicable law or a... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 The Johns Hopkins University Applied Physics Laboratory
#
# 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.apach... |
import sys, csv, requests, multiprocessing
import sfr_ftth
#csv file format: x,y,imb_id,num_voie,cp_no_voie,type_voie,nom_voie,batiment,code_poste,nom_com,catg_loc_imb,imb_etat,pm_ref,pm_etat,code_l331,geom_mod,type_imb
def MakeAddressFromCsvRow(row):
address = '{} {} {}, {} {}'.format(row['num_voie'], row['type_v... |
$(document).ready(function(){
var date = new Date();
var hour = date.getHours().toString();
var min = date.getMinutes().toString();
var str = hour + ":" + min;
$("#showTime").append(str);
// $('p span').css('color' ,'red');
$('ul#list li:first').css('color' ,'red');
$("#nameOfUser").db... |
import {detectReferer} from '../src/refererDetection';
import {ajax} from '../src/ajax';
import {registerBidder} from '../src/adapters/bidderFactory';
export const spec = {
code: 'orbidder',
bidParams: {},
orbidderHost: (() => {
let ret = 'https://orbidder.otto.de';
try {
ret = localStorage.getItem... |
/* -*- mode: javascript; tab-width: 8; indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const WNDH_OPTIONS_EXPAND... |
/*
* Copyright (c) 2020, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0, as
* published by the Free Software Foundation.
*
* This program is also distributed with certain software (includin... |
# Copyright 2011-2021 IBM Corporation
#
# 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 writ... |
# coding=utf8
"""
units.py - Unit conversion module for Sopel
Copyright © 2013, Elad Alfassa, <elad@fedoraproject.org>
Copyright © 2013, Dimitri Molenaars, <tyrope@tyrope.nl>
Licensed under the Eiffel Forum License 2.
"""
from __future__ import unicode_literals, division
from sopel.module import commands, example, NOL... |
import ActionsTable from './ActionsTable.react';
export default ActionsTable;
|
const Config = {
socket: {
host: 'http://localhost:8086',
},
api: {
host: 'http://localhost:8087',
},
caching: { // in seconds
strategies: 300,
},
};
export default Config;
|
const Database = require("./database/db")
const {
subjects,
weekdays,
getSubject,
convertHoursToMinute
} = require("./utils/format")
// Funcionalidades
function pageLanding(req, res) {
return res.render("index.html")
}
async function pageStudy(req, res) {
const filters = req.query // recebe ... |
import React from "react"
import loadable from '@loadable/component'
const RebornComponent = loadable(() => import('../components/RebornInput'))
function LoadableReborn() {
return (
<div>
<RebornComponent />
</div>
)
}
export default LoadableReborn |
"""
This is the main script for predicting a segmentation of an input MRA image. Segmentations can be predicted for multiple
models eather on rough grid (the parameters are then read out from the Unet/models/tuned_params.cvs file) or on fine
grid.
"""
import os
from scipy.ndimage.filters import convolve
import numpy a... |
// this file create the Schema and define foreign keys
const { DataTypes } = require("sequelize");
const Organisation = require("../models/organisation");
const Team = require("../models/team");
const Person = require("../models/person");
const Report = require("../models/report");
const User = require("../models/use... |
import privacy
# Create two concurrent lists representing a split row
# - row is the front end of the row with sec_estimate faredecode_dict
# - row1 is the back end of the row
def simulate_row(epsilon, taxi_id, spd, cp, fr, pd, n_dict, n_decode, c_decode):
row = {}
row1 = {}
# Create row = epsilon, t... |
var user = new Vue({
el : '#new-user',
data : {
},
methods: {
},
ready: function(){
}
}); |
function modSampleHeight(){
var headHeight = 100;
var sch = document.getElementById("gantt_here");
sch.style.height = (parseInt(document.body.offsetHeight)-headHeight)+"px";
var contbox = document.getElementById("contbox");
contbox.style.width = (parseInt(document.body.offsetWidth)-300)+"px";
}
$(... |
module.exports = {
prompt: ({ inquirer }) =>
inquirer
.prompt([
{
type: 'list',
name: 'kind',
message: 'What kind of component are you generating?',
choices: ['Base', 'Modules']
}
])
.then(({ kind }) =>
inquirer.prompt([
{... |
function goSearch(form) {
// escape special symbols in query and update parameters
let element = document.getElementById("query_element");
element.value = element.value.replaceAll("\,", "%2C")
element.value = element.value.replaceAll("\+", "%2B")
element.value = element.value.replaceAll(/\s+/g, "%20... |
import os
import sys
import socket
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
from simple_host_target.definition import OP_HT_DATA_BEGIN, OP_HT_DATA_END,\
... |
from django.utils.translation import gettext as _
from datetime import datetime
from .models import *
def client_dashboard_ctx():
"""Return context data about client"""
current_date = datetime.today()
return {
'client': {
'title': _("Clients"),
'count': Client.objects.filt... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {NavLink as Link} from 'react-router-dom'
import {logout} from '../store'
import NavbarBurger from './navbar-burger'
import playSound from '../../script/utility-functions'
class Navbar extends Componen... |
goog.provide('gfd.WebGlCanvas');
goog.provide('gfd.WebGlCanvasListener');
goog.provide('gfd.WebGlCanvas.createWebGlCanvas');
goog.provide('gfd.WebGlCanvas.releaseWebGlCanvas');
goog.require('gfd.Constants');
goog.require('goog.dom');
/**
* A listener to a webgl canvas.
* @interface
*/
gfd.WebGlCanvasListener = f... |
from item_catalog import app
app.run(host='0.0.0.0', port=5000)
|
import time
import gurobipy as grb
from tqdm import tqdm
def translate_loco_type(in_type):
if in_type == "3E":
return "3E - 7"
elif in_type == "DE6400":
return "DE6400 - 6495"
elif in_type == "JT42C":
return "JT42C - 166"
elif in_type == "TEM2":
return "TEM2 - 083"
... |
/*eslint-env node */
/*eslint no-console: 0*/
require('babel-polyfill');
var jsdom = require('jsdom');
//used to log internal jsdom-errors to the console
var virtualConsole = jsdom.createVirtualConsole();
virtualConsole.on('jsdomError', function (error) {
console.error(error.stack, error.detail);
});
global.docum... |
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O... |
// @flow strict
import $ from 'lib/$';
import config from 'lib/config';
import mediator from 'lib/mediator';
import fastdom from 'lib/fastdom-promise';
import { addSlot } from 'commercial/modules/dfp/add-slot';
import { adSizes } from 'commercial/modules/ad-sizes';
import { isUserLoggedIn } from 'common/modules/identit... |
'use strict'
module.exports = {
name: 'Supercharge Config',
nested: {
key: 'nested-value'
}
}
|
'use strict'
if (!process.env.NODE_ENV) { require('dotenv').config() }
require('mongoose').Promise = global.Promise
const path = require('path')
const express = require('express')
const mongoose = require('mongoose')
const http = require('http')
const util = require('util')
const mkdirp = util.promisify(require('mkdi... |
from bayes_implicit_solvent.marginal_likelihood.single_type_forward_ais import \
annealed_log_posterior_at_multiple_values_of_beta, annealed_log_posterior, dataset
import numpy as np
posterior_sample_result = np.load('single_type_posterior_samples_{}.npz'.format(dataset))
posterior_samples = posterior_sample_res... |
module.exports = {
exe: async (message, args, modules, prefix, command) => {
message.channel.send(message.content.slice(prefix.length + command.length + 1))
},
config: {
name: "say", aliases: [], category: "moderation", handler: { deleteInvoke: true, staff: true, dev: false, inPogress: fals... |
import pandas as pd
from nltk import StanfordPOSTagger
from common.word_format.df_utils import Nlp_util, Df_util
class PosTagger:
@classmethod
def add_pos_tag(cls, df):
df = cls.__add_basic_pos_tag(df)
dic_for_correction = {"feel": "VB", "talk": "VB", 'u': 'PRP', 'i': 'PRP', 'know': 'VB', 'mov... |
const express = require('express');
const livereload = require('livereload');
const connectLivereload = require('connect-livereload');
const path = require('path');
const fs = require('fs');
const { STYLES_DEST_DIR, DEMO_SRC_DIR } = require('./constants');
const app = express();
app.use(connectLivereload());
app.use(e... |
import os
import sys
import time
import logging
import multiprocessing
import pytest
from clitest import CmdlineInterfaceTest
sys.path.insert(0, os.path.abspath('..'))
# If we want to measure code coverage across CLI invocations then we can do
# "coverage -x goeffel". Just need to figure out where to let coverage ... |
Kanboard.Screenshot = function(app) {
this.app = app;
this.pasteCatcher = null;
};
Kanboard.Screenshot.prototype.onPopoverOpened = function() {
if (this.app.hasId("screenshot-zone")) {
this.initialize();
}
};
// Setup event listener and workarounds
Kanboard.Screenshot.prototype.initialize = fu... |
const Sequelize = require('sequelize')
const db = require('../db')
const CheeseCart = db.define('CheeseCarts', {
quantity: {
type: Sequelize.INTEGER,
defaultValue: 0
},
shippingCost: {
type: Sequelize.INTEGER
}
})
module.exports = CheeseCart
|
"""
.. Necessary to reject for documentation building
* Copyright 2019 TIBCO Software 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.
* A copy of the License is included in the distribution package with... |
import React from 'react';
import Link from './Link';
const Header = () => {
return (
<div className="ui secondary pointing menu">
<Link href="/" className="item">
Accordion
</Link>
<Link href="/list" className="item">
Search
<... |
module.exports = {
env:{
},
head: {
title: 'ROBOGRAM',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favico... |
import numpy as np
import time
from mujoco_py import const, MjViewer, ignore_mujoco_warnings
import glfw
from gym.spaces import Box
from gym.spaces import MultiDiscrete
class EnvViewer(MjViewer):
def __init__(self, env):
self.env = env
self.elapsed = [0]
self.env.reset()
self.seed... |
import axios from 'axios';
import { useContext, useEffect, useState } from 'react';
import { Button, Card, Container, Form, Modal } from 'react-bootstrap';
import { useHistory, useParams } from 'react-router';
import { JacuzziContext } from '../../contexts/JacuzziContext';
import { ReviewInvContext } from '../../contex... |
/*
* Re-structure JS
* */
(function($) {
'use strict';
/*
* Helper vars
* */
/*
* Helper functions
* */
function thim_get_url_parameters(sParam) {
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < s... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof3 = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = useMergedConfig;
var _typeof2 = _interopRequireDefault(require("@babel/ru... |
//Loads app with config.js
define(['config'], function() {
require(['app']);
})
|
import unittest
import copy
import numpy
import scipy.linalg
import pyscf
from pyscf import semiempirical
class KnownValues(unittest.TestCase):
def test_rmindo(self):
mol = pyscf.M(atom=[(8,(0,0,0)),(1,(1.,0,0)),(1,(0,1.,0))])
mf = semiempirical.RMINDO3(mol).run(conv_tol=1e-6)
self.assertAl... |
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
experimental: {
optimizeUniversalDefaults: true,
},
content: [
'./pages/**/*.js',
'./components/**/*.js',
'./layouts/**/*.js',
'./lib/**/*.js',
'./data/**/*.mdx',
],
... |
/*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and delta... |
module.exports = {
bracketSpacing: true,
singleQuote: true,
trailingComma: 'all',
};
|
import torch
from experiments.link_prediction import link_prediction
import argparse
import matplotlib.pylab as plt
import os
import seaborn as sns
if __name__ == "__main__":
sns.set()
# Arg parsing
parser = argparse.ArgumentParser()
parser.add_argument('--pt', nargs=1,
... |
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({ //-----------------------------------------------------------代辦事項生成
url: "/show",
type: "get",
dataType: "json",
})
.done(function(data) {
for (let value of data) ... |
# ----------------------------------------------------------------------
# phpast.py
#
# PHP abstract syntax node definitions.
# ----------------------------------------------------------------------
class Node(object):
fields = []
def __init__(self, *args, **kwargs):
assert len(self.fields) == len(ar... |
import path from "path"
import resolve from "@rollup/plugin-node-resolve"
import commonjs from "@rollup/plugin-commonjs"
import peerDepsExternal from "rollup-plugin-peer-deps-external"
import postcss from "rollup-plugin-postcss"
import typescript from "rollup-plugin-typescript2"
import copy from "rollup-plugin-copy"
f... |
"use strict"
var util = require("util");
var fs = require("fs");
var path = require("path");
var EventEmitter = require("events").EventEmitter;
var livelyDAVPlugin = require('./jsDAV-plugin');
var VersionedFileSystem = require('./VersionedFileSystem');
var d = require('./domain');
var log = require('./util').log;
var... |
from skeleton_parsing import skeleton_parser_str
from itertools import chain
import networkx as nx
def get_deppath_list(question_normal, ungrounded_nodes, isSkeletonorDep='Skeleton'):
abstract_question_deppath_list = []
final_ph_tok_list, link_anchor_list, ans_anchor = placeholding_node(question_normal.split(... |
// plugin_node.js
const PluginNode = {
'初期化': {
type: 'func',
josi: [],
fn: function (sys) {
sys.__varslist[0]['コマンドライン'] = process.argv
}
},
// @ファイル入出力
'開': { // @ファイルSを開く // @ひらく
type: 'func',
josi: [['を', 'から']],
fn: function (s) {
const fs = require('fs')
retur... |
const express = require("express");
const router = express.Router();
const add = require("../../api/addFaceset.js");
const get = require("../../api/getFaceset.js");
const del = require("../../api/deleteFace.js");
const search = require("../../api/searchByFace.js");
const match = require("../../api/match.js");
module.e... |
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "100.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "n/a", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "7440 Labranza Street", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CAND... |
document.addEventListener('DOMContentLoaded', function () {
let car_user = document.getElementById('car_user');
let user_id = car_user.getAttribute('user_id');
let car_products = document.getElementById('car_products');
let car_total_container = document.getElementById('car_total_container');
let el... |
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
TOKENAPI:'"http://172.16.4.237:8090"',
LOCALTOKEN:false
})
|
var sys = require('sys');
var exec = require('child_process').exec;
var os = require('os');
if (os.type() === 'Linux' || os.type() === 'Darwin' )
exec("rm -rf bin/site && cp -R ./node_modules/dcrdex-assets/dexc/site bin/");
else if (os.type() === 'Windows_NT')
exec("rd /s /q \"bin/site\" && Xcopy /E /I \"./no... |
/**
* Contaxy API
* Functionality to create and manage projects, services, jobs, and files.
*
* The version of the OpenAPI document: 0.0.6
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
i... |
"""wargame.hut
This module contains the Hut class implementation.
This module is compatible with Python 3.5.x. It contains
supporting code for the book, Learning Python Application Development,
Packt Publishing.
.. todo::
The code comments and function descriptions in this file are
intentionally kept to a min... |
// https://docs.meteor.com/api/mobile-config.html#App-icons
const ICON_RESOURCE_TABLE = {
app_store: '1024x1024',
iphone_2x: '120x120',
iphone_3x: '180x180',
ipad_2x: '152x152',
ipad_pro: '167x167',
ios_settings_2x: '58x58',
ios_settings_3x: '87x87',
ios_spotlight_2x: '80x80',
ios_spotlight_3x: '120x... |