text stringlengths 3 1.05M |
|---|
"""
Collection of tests for the demos
"""
# global
import pytest
# local
import ivy
import ivy.backends.numpy
import ivy_tests.helpers as helpers
# Tests #
# ------#
# training
def test_training_demo(dev, call):
if call is helpers.np_call:
# numpy does not support gradients
pytest.skip()
... |
import styled from "styled-components";
export const MainLanding = styled.main`
display: grid;
margin: 0;
grid-template-rows: 28vh 36vh 10vh;
`;
export const LandingLoginButtons = styled.section`
display: grid;
gap: 1vh;
padding: 7vh 0;
button {
display: flex;
justify-self: center;
}
a {
... |
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import sys
sys.dont_write_bytecode = True
sys.path.insert(0, '../../../../../')
from SKDMD.PPS_SRC.aprior_plot import aprior_plot
def main():
ploter = aprior_plot('./hyp.csv')
ploter.plot()
if __name__ == "__main__":
main()
|
/*
* ! ${copyright}
*/
// Provides control sap.m.P13nChartSelectionPanel.
sap.ui.define([
'jquery.sap.global', './ColumnListItem', './P13nSelectionPanel', './P13nChartSelectionItem', './SearchField', './Table', './library', 'sap/ui/core/Control', 'sap/ui/model/json/JSONModel'
], function(jQuery, ColumnListItem, P13... |
window.peopleAlsoBoughtJSON = [{"asin":"B0047WDKQ8","authors":"Patrick K. O’Donnell","cover":"51YPwlVLY8L","length":"6 hrs and 10 mins","narrators":"Lloyd James","subHeading":"The Korean War’s Greatest Untold Story - The Epic Stand of the Marines of George Company","title":"Give Me Tomorrow"},{"asin":"B01BX9LZKU","auth... |
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel appli... |
//# sourceURL=d3Linegraph.js
'use strict';
window.smartRApp.directive('lineGraph', [
'smartRUtils',
'$rootScope',
'rServeService',
function(smartRUtils, $rootScope, rServeService) {
return {
restrict: 'E',
scope: {
data: '='
},
t... |
function GetRegionLabel(n){switch(n){case"KH":return"Province (Khaet)";case"CN":return"Province (Sheng)";case"MY":return"State (Negeri)";case"SA":return"Region (Mintaqah)";case"SG":return"Region";case"TH":return"Province (Changwat)";case"VN":return"Province (Tinh)";case"AU":return"State";case"AT":return"State (Bundesla... |
'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.bulkInsert('roles', [{
name: 'admin',
createdAt: new Date(),
updatedAt: new Date()
}]);
},
down: async (queryInterface, Sequelize) => {
return queryInterface.bulkDelete('roles', {name: ... |
// Width and height of the icon.
const width = 36.58;
const height = 40;
const fixCentering = `translate(${-width / 2},${-height / 2})`;
export const Anchor = ({ color }) => (
<g transform={fixCentering}>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M36.5761 35.1022C36.5761 35.6984 35.894 35.... |
import argparse
import time
import numpy as np
import pyro
import pyro.distributions as dist
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch_geometric.transforms as T
import torch_geometric.utils as torch_util
import torch_scatter
from torch_geometric.data import DataLoader
from torch... |
/// <reference types="cypress" />
context('<Instagram />', () => {
it('it loads instagram posr', () => {
cy.visit('/iframe.html?id=components-instagram--usage&viewMode=story');
cy.getIframeBody().find('.Embed').should('exist');
cy.getIframeBody().find('.Header').should('exist');
cy.getIframeBody().f... |
'use strict';
const Prism = require('prismjs');
const Video = require('twilio-video');
const getSnippet = require('../../util/getsnippet');
const getRoomCredentials = require('../../util/getroomcredentials');
const helpers = require('./helpers');
const handleLocalParticipantReconnectionUpdates = helpers.handleL... |
import React from "react";
import {
Card,
CardBody,
CardImg,
CardLink,
Row,
Col
} from "reactstrap";
class PlayerList extends React.Component {
render() {
return (
<>
<Row className="justify-content-center players-list">
<Col lg="12">
<Row className="row-grid">
... |
// @flow
import * as R from 'ramda';
import { createSelector } from 'reselect';
import { EDIT_COURSE, REMOVE_COURSE } from '../actions/course-actions';
import { REMOVE_APPOINTMENTS } from '../actions/appointment-actions';
const INITIAL_STATE = {};
export default function reducer(
state: CoursesState = INITIAL_STAT... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var bodyParser = require('body-parser');
var art = require('./routes/art');
var app = express();
var mongoose = require('mongoose');
mongoose.Promise = require('bluebird');
mongoose.conn... |
const webpack = require('webpack');
module.exports = {
hot: false,
output: {},
entry: {},
module: {
loaders: [
{
test: /\.spec\.js?$/,
exclude: /node_modules/,
loader: 'babel'
},
{
test: /\.js$/,
exclude: /test\/|node_modules/,
loaders: ['is... |
import React, { useState } from 'react';
import {
View,
Button,
Text,
ToastAndroid
} from 'react-native';
import EspIdfBleProvisioningRn from "react-native-esp-idf-ble-provisioning-rn";
const App = () => {
const [uuid, setUuid] = useState("");
const [pop, setPop] = useState("");
EspIdfBle... |
/*!
* inputmask.numeric.extensions.min.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2017 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.11
*/
!function(e){"function"==typeof define&&define.amd?define(["./dependencyLibs/inputma... |
const Proyecto = require('../../../model/Proyecto');
const assert = require('assert');
const { Given, When, Then, Before } = require('cucumber');
Given("tengo un proyecto", function () {
});
Given('tengo un proyecto de codigo {string}, descripcion {string}, lider {string}', function (codigo, descripcion, lider) {
... |
const path = require('path');
module.exports = function (app) {
app.get('/', function (req, res) {
res.sendFile(path.join(__dirname, 'index.html'));
});
app.get('/exercise', function (req, res) {
res.sendFile(path.join(__dirname, '../public/exercise.html'));
});
app.get('/stats', function (req, res) ... |
/*!
* Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad
* (c) 2021 Szymon Nowak | Released under the MIT license
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? defin... |
/*!
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
* Copyright 2018 PIXINVENT
* Licensed under the Themeforest Standard Licenses
*/
function drawHistogram(){var data=google.visualization.arrayToDataTable([["Dinosaur","Length"],["Acrocanthosaurus (top-spined lizard)",12.2],["Albertosaurus... |
# Copyright 2017 The TensorFlow 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 applica... |
const keys = (obj) => {
if (!obj || typeof obj != 'object') {
throw new Error('Argument is not an object');
}
return Object.keys(obj);
};
export default keys;
|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { __extends } from "tslib";
import { FetchHttpClient } from "./fetchHttpClient";
var BrowserFetchHttpClient = /** @class */ (function (_super) {
__extends(BrowserFetchHttpClient, _super);
function BrowserFetchHttpClient() {
... |
/*
* Integration tests for caching
*/
/* eslint-env jest */
'use strict';
const path = require('path');
const webpack = require('webpack');
const rimraf = require('rimraf');
const WebpackRecompilationSimulator = require('webpack-recompilation-simulator');
const HtmlWebpackPlugin = require('../index.js');
const OUT... |
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Morphological models for astrophysical gamma-ray sources.
"""
from __future__ import print_function, division
import numpy as np
from astropy.modeling import Parameter, ModelDefinitionError, Fittable2DModel
from astropy.modeling.models import Gaussian... |
# Copyright 2013 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 re
from telemetry.testing import tab_test_case
import py_utils
class TabConsoleTest(tab_test_case.TabTestCase):
def testConsoleOutputStream(self... |
const path = require("path")
const { start } = require("repl")
// https://www.gatsbyjs.org/docs/debugging-html-builds/#fixing-third-party-modules
exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => {
if (stage === "build-html") {
actions.setWebpackConfig({
module: {
rules: [
... |
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from typing import Union
from pants.engine.addresses import Addresses
from pants.engine.console import Console
from pants.engine.goal import Goal, GoalSubsystem, LineOriented
from pants.e... |
module.exports = {
LEFT_BUTTON: 0x01,
RIGHT_BUTTON: 0x02,
MIDDLE_BUTTON: 0x04,
X_BUTTON1: 0x05,
X_BUTTON2: 0x06,
CANCEL: 0x03,
BACKSPACE: 0x08,
TAB: 0x09,
CLEAR: 0x0C,
RETURN: 0x0D,
SHIFT: 0x10,
CONTROL: 0x11,
ALT: 0x12,
PAUSE: 0x13,
CAPS_LOCK: 0x14,
ESCAP... |
// TweenBillboard.js
// Version: 0.0.2
// Event: Any Event
// Description: Runs a tween on a Lens Studio Billboard using TweenJS
// ----- USAGE -----
// Attach this script as a component after the Tween Manager script on either the same scene object or in a lower scene object in the Objects Panel.
//
// Assign a scene ... |
module.exports.run = (bot, message, args, discord) => {
if (message.author.id == process.env.oid) {
if (args.join(' ').startsWith('https://')) {
bot.user.setAvatar(args.join(' '));
message.channel.send(`Définir mon avatar sur ${args.join(' ')}!`);
} else {
message.channel.send("Le fichier d'avatar doit ... |
// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the LICENSE
// file in the root directory of this source tree.
//
// RUN: %hermesc -dump-ir %s | %FileCheck --match-full-lines %s
function foo(a, b, c) {
return {a, ...b, c};
}
//CHECK-LABEL: funct... |
import argparse
import os
from os.path import join
import datetime
from time import time
import sys
import numpy as np
from torch.utils.data import Dataset
def parse_args():
parser = argparse.ArgumentParser(description='3D Prediction Runner')
parser.add_argument('-nc', '--no-cuda', action='store_true', defau... |
/**
* @format
*/
import {AppRegistry} from 'react-native';
import 'react-native-gesture-handler';
import App from './src/App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
|
var Todo = React.createClass({displayName: "Todo",
render: function() {
return (
React.createElement("a", {href: "#", class: "pull-left todo-check"},
React.createElement("span", {class: "todo-check-mark glyphicon glyphicon-ok", "aria-hidden": "true"}, "stuff")
));
}
});
var TodoList = Reac... |
const { Given, When, Then } = require("cucumber");
const { RoomPage, SpacePage } = require("../harness/Pages");
Given('the {actor} is on the {space} Dashboard', async function (actor, space) {
this.space = new SpacePage(this.driver, space);
await this.space.visit();
});
Given('the {actor} is in the {space} and in... |
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { createLogger } from 'redux-logger';
import thunkMiddleware from 'redux-thunk';
import { composeWithDevTools } from 'redux-devtools-extension';
import auth from './auth';
import singleItem from './singleItem';
import cart from './cart';
impo... |
const { Sequelize, Model, DataTypes } = require('sequelize');
module.exports = class DiscountModel extends Model {
/**
* @param {import('sequelize').Sequelize} sequelizeInstance
* @returns {typeof DiscountModel}
*/
static setup(sequelizeInstance) {
DiscountModel.init(
{
id: {
t... |
import React from 'react';
import Controller from "../util/Controller";
import MultiColumn, {Column} from "../components/MultiColumn";
import RepositoryInfo from "../components/RepositoryInfo";
class Home extends Controller {
Index() {
return (
<div>
<h2>Repositories</h2>
... |
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... |
// @flow
import R from 'ramda';
type DCTypeMapper = (string, 1 | 2) => string;
type ChartTypeMapper = string => 'step' | 'linear';
/**
* Conver websocket response to mcs-lite-ui <DataChannelAdapter> props
*
* example: (String, 1) => STRING_CONTROL
*
* @author Michael Hsu
*/
export const dataChannelTypeMapper: D... |
"use strict";
var glob = require("glob");
var path = require("path");
module.exports = function (content, sourceMap) {
this.cacheable && this.cacheable();
var resourceDir = path.resolve('./node_modules');
var pattern = content.trim();
var files = glob.sync(pattern, {
cwd: resourceDir
});
if (!files.l... |
export const LOAD_USERS_SUCCESS = "LOAD_USERS_SUCCESS";
export const CREATE_USER_SUCCESS = "CREATE_USER_SUCESS";
export const UPDATE_USER_SUCCESS = "UPDATE_USER_SUCESS";
export const DELETE_USER_OPTIMISTIC = "DELETE_USER_OPTIMISTIC";
// Tasks actions
export const LOAD_TASKS_SUCCESS = "LOAD_TASKS_SUCCESS";
export const ... |
const MAXIMUM_LIMIT = 100000;
const MINIMUM_LIMIT = 1;
const hasExceededMaximumLimit = (field) => field < MAXIMUM_LIMIT;
const isBelowMinimumLimit = (field) => field > MINIMUM_LIMIT;
const validator = (data, dataRules, messages) => {
// Add new rules to the validator function below with it's key
const rules = {... |
from pyqum import create_app
from flaskext.noextref import NoExtRef
import sys
app = create_app()
# Pending: Hiding certain URLs?
noext = NoExtRef(app, safe_domains=['http://qum.phys.sinica.edu.tw:5300/'])
Port, DeBuG, RLD = 5300, True, True
# Port, DeBuG, RLD = 5300, False, False
def server(mode):
app.secret_key =... |
// Copyright (c) 2011 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.
window.externalCanary = "Alive";
chrome.test.getConfig(function(config) {
function inlineScriptDoesNotRun() {
chrome.test.assertEq(window.inli... |
window.wp=window.wp||{},function(a,b){window.inlineEditTax={init:function(){var b=this,c=a("#inline-edit");b.type=a("#the-list").attr("data-wp-lists").substr(5),b.what="#"+b.type+"-",a("#the-list").on("click",".editinline",function(){a(this).attr("aria-expanded","true"),inlineEditTax.edit(this)}),c.keyup(function(a){if... |
const loginForm = document.querySelector("#form-signin");
const registerForm = document.querySelector("#form-signup");
const signoutButtom = document.querySelector("#signout-button");
const lds = document.querySelector(".lds-container");
const content = document.querySelector(".wrapper");
if (!sessionStorage.getItem("... |
!function(a){const e=a.id=a.id||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 dari %1","Align cell text to the bottom":"","Align cell text to the center":"","Align cell text to the left":"","Align cell text to the middle":"","Align cell text to the right":"","Align cell text to the top":"","Align cente... |
# -*- coding: utf-8 -*-
# Copyright 2019 ICON Foundation
#
# 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 ... |
var mongoose = require('mongoose');
var bcrypt = require('bcryptjs');
// User Schema
var UserSchema = mongoose.Schema({
username: {
type: String,
index:true
},
password: {
type: String
},
email: {
type: String
},
name: {
type: String
},
age: {
type: Number
},
lat: {
type: Number
},
lng: ... |
(function() {
window.WallTime || (window.WallTime = {});
window.WallTime.data = {
rules: {"US":[{"name":"US","_from":"1918","_to":"1919","type":"-","in":"Mar","on":"lastSun","at":"2:00","_save":"1:00","letter":"D"},{"name":"US","_from":"1918","_to":"1919","type":"-","in":"Oct","on":"lastSun","at":"2:00"... |
(function(d){d['eu']=Object.assign(d['eu']||{},{a:"Ezin da fitxategia kargatu:",b:"Etzana",c:"Aipua",d:"Insert image or file",e:"Lodia",f:"Aukeratu izenburua",g:"Izenburua",h:"irudi widgeta",i:"Tamaina osoko irudia",j:"Alboko irudia",k:"Ezkerrean lerrokatutako irudia",l:"Zentratutako irudia",m:"Eskuinean lerrokatutako ... |
from pdb import set_trace as T
import numpy as np
import time
from collections import defaultdict, deque
from forge.blade.io.stimulus.static import Stimulus as Static
from forge.blade.entity import Player
def camel(string):
'''Convert a string to camel case'''
return string[0].lower() + string[1:]
class Stimu... |
// Copyright 2018-2020 Polyaxon, 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... |
"""My own version of bunch, since the standard one lacks tab completion
and has trouble printing sometimes."""
class Bunch:
def __init__(self, *args, **kwargs):
self._dict = {}
for args in args:
self._dict.update(args)
self._dict.update(kwargs)
def __getattr__(self, name):
# Members with names like __getat... |
/*
* jQuery limitWords Plugin
*
* Licensed under The MIT License
* Redistributions of files must retain the copyright notice.
*
* @copyright Copyright 2010 Jacob Morrison <jomorrison gmail com>, http://projects.ofjacob.com
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @autho... |
import { SQLConnector } from '../lib/jslacker';
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const sql = require('mssql');
const xpath = require('xpath');
chai.use(chaiAsPromised);
const expect = chai.expect;
const ResponseType = SQLConnector.ResponseType;
describe('SQLConnector... |
# Copyright 2022 Huawei Technologies Co., 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 agreed to... |
import json
import random
from urllib.parse import urljoin
import re
import fnmatch
import sys
import logging
import string
import time
import zipfile
import os
import pickle
import hashlib
import uuid
import base64
import requests
from obspy import UTCDateTime
# from params import params as p
try:
pickle_dir = ... |
// Library Imports
import React from 'react';
import { StyleSheet } from 'react-native';
// Local Imports
import * as StyleUtility from '../../utilities/style_utility';
//--------------------------------------------------------------------//
export const styles = StyleSheet.create({
avatar: {
width: 4... |
import React, { useState, useCallback } from 'react';
import { PopupContainer } from './styles';
import user from '../../data/assets/user.svg';
import leave_type from '../../data/assets/leave_type.svg';
import cal from '../../data/assets/pop_Calendar.svg';
import Edit from '../../data/assets/Edit.svg';
import { DatePic... |
//= require jq/jquery.touchy.min
//= require ext/iscroll
//= require ./mobile_view
|
describe('Partial sample', function() {
beforeEach(function() {
// We can load fixtures using this method:
//jasmine.getFixtures().clearCache();
//var f = jasmine.getFixtures();
//f.fixturesPath = 'base/spec/fixtures';
//f.load('sample_partial.html');
//$.holdReady(false);
// Or this:
... |
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { format, parseISO } from 'date-fns';
import api from '~/services/api';
import {
Container,
Delivery,
Information,
Dates,
SignatureImage,
} from './styles';
export default function Visualization({
idPackage,
... |
import {pick} from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import Highlighter from './Highlighter.react';
import Menu from './Menu.react';
import MenuItem from './MenuItem.react';
import {getOptionLabel} from './utils/';
class TypeaheadMenu extends React.Component {
render() {
... |
const TogglClient = require('toggl-api')
const moment = require('moment')
module.exports = function (token) {
this.toggl = new TogglClient({ apiToken: token })
this.createTimeEntries = async function (project, task, description, timeSlots) {
const self = this
timeSlots.forEach((timeSlot, index) => {
... |
import NProgress from 'nprogress'
import { songStore } from '.'
import { http } from '../services'
import { remove } from 'lodash'
const EXCERPT_COUNT = 7
export const recentlyPlayedStore = {
excerptState: {
songs: []
},
state: {
songs: []
},
fetched: false,
initExcerpt (songIds) {
this.exc... |
# encoding=utf-8
"""
Test form
"""
FORMCHAR = "x"
TABLECHAR = "c"
FORM = """
.------------------------------------------------.
| |
| Name: xxxxx1xxxxx Player: xxxxxxx2xxxxxxx |
| xxxxxxxxxxx |
| ... |
let color = "#e8453c";
chrome.runtime.onInstalled.addListener(async () => {
// Code in here runs ONE TIME ONLY (unless the user reinstalls your extension)
// Write values to storage
chrome.storage.sync.set({ color });
console.log("Default background color set to %cred", `color: ${color}`);
// Write values ... |
import numpy as np
from numpy import array
from orbsim.plotting import *
from orbsim.r3b_2d.simulators import run_sim
x = [
[0.08222536, 0.74165034, 2.66518746],
[-1.19085255, 0.39746561, 3.63359685],
[0.10942607, 0.76356661, 2.67493271],
[-1.24214743, 0.36330761, 3.64894417],
[0.14100271, 0.809750... |
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterv... |
/* eslint-disable tsdoc/syntax */
import preprocess from "svelte-preprocess";
/**
* @type {import("@sveltejs/kit").Config}
*/
const config = {
preprocess: preprocess(),
kit: {
target: "#svelte",
package: {
dir: "dist",
},
vite: {
optimizeDeps: {
include: "sm-commons/utils/str",
},
},
},
};
... |
import { ChatEngine } from 'react-chat-engine';
import LoginForm from './components/LoginForm';
import ChatFeed from './components/ChatFeed';
import './App.css';
const App = () => {
if(!localStorage.getItem('username')) return <LoginForm/>
return (
<ChatEngine
height="100vh"
... |
#!/usr/bin/env python
import datetime
import json
from io import StringIO
from sys import argv
import sh
def delete_all_images_older_than_days_form_repo(repo, days_to_keep):
image_details = get_all_images_in_ecr_repo(repo)
images_to_delete = get_images_older_than_number_of_days(image_details, ... |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-12 01:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import TopBar from './top-bar/index.js'
import withTabBar from '../common-components/tab-bar'
import { homeUpdate, homeInit } from '../../stores/home'
const mapStateToProps = ({ home }) => ({
init... |
Ext.data.JsonP.Ccs_ServiceManager_ILifecycleScope({"mixedInto":[],"parentMixins":[],"files":[],"alternateClassNames":[],"mixins":[],"requires":[],"uses":[],"aliases":{},"id":"class-Ccs.ServiceManager.ILifecycleScope","tagname":"class","name":"Ccs.ServiceManager.ILifecycleScope","extends":"","author":"pjudge@progress.co... |
'use strict'
const urlUtils = require('./utils/url')
const headersUtils = require('./utils/headers')
module.exports = (config, params) =>
config
.fetch(urlUtils.joinUrlWithPath(config.configurationUrl, '/v1/functions'), {
method: 'POST',
body: JSON.stringify(params),
headers: headersUtils.inje... |
import * as React from "react"
import Layout from "../components/layout"
import SEO from "../components/seo"
import styled from "styled-components"
import { Page } from "../components/styled-components/GlobalStyles"
import { color, font, padding } from "../components/styled-components/variables"
import LogoFooter from ... |
import paper from '@scratch/paper';
import Modes from '../../lib/modes';
import {styleShape} from '../../helper/style-path';
import {commitRectToBitmap} from '../bitmap';
import {getRaster} from '../layer';
import {clearSelection} from '../selection';
import {getSquareDimensions} from '../math';
import BoundingBoxTool ... |
#! /usr/bin/env python
from numpy.testing import TestCase
class aubiomodule_test_case(TestCase):
def test_import(self):
""" try importing aubio """
import aubio
def test_version(self):
""" test aubio.version """
import aubio
self.assertEqual('0', aubio.version[0])
if... |
#!/usr/bin/env python3
#
# Test case executor
# Copyright (c) 2013-2019, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import os
import re
import sys
import time
from datetime import datetime
import argparse
import subprocess
import term... |
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import Ext_MessageBox from './Ext/MessageBox.js';
import HTMLParsedElement from './HTMLParsedElement.js';
var ExtMessagebox =
/*#__PURE__*/
function (_Ext_MessageBox) {
_inheritsLoose(ExtMessagebox, _Ext_MessageBox);
function ExtMessagebox() {
... |
/* eslint-env mocha */
'use strict'
const expect = require('chai').expect
const qs = require('qs')
const defaultList = require('../../../src/core/runtime/config-nodejs.js')().Bootstrap
module.exports = (http) => {
describe('/bootstrap', () => {
const validIp4 = '/ip4/101.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJ... |
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.lang['he']={"widget":{"move":"לחץ וגרור להזזה","label":"%1 widget"},"uploadwidget":{"abort":"Upload aborted by the page.","doneOne":"File successf... |
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2021 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import debug
from math import log, sqrt, ceil
fr... |
import React, { useState, useMemo } from 'react';
import { View, StyleSheet, processColor } from 'react-native';
import Animated, { Easing, Extrapolate } from 'react-native-reanimated';
import { TapGestureHandler, State } from 'react-native-gesture-handler';
import Heart from './SVG/Heart';
import {
onGestureEvent,
... |
import sys, os
import subprocess
from utilix.rundb import pymongo_collection
import re
import time
import datetime
_date = sys.argv[1]
date = datetime.datetime(int(_date[:4]), int(_date[4:6]), int(_date[6:]))
runs = sys.argv[2:10]
print(date, runs)
if len(runs) != 0:
if len(runs) != 8:
check = False
... |
#############################################################
## Please read the README.md document for better reference ##
#############################################################
from __future__ import print_function
import mxnet as mx
import numpy as np
from sklearn.datasets import fetch_mldata
from sklearn.de... |
export const menuItems = [
{
title: 'HOME',
url: '#',
cName: 'nav-links'
},
{
title: 'ABOUT US',
url: '#',
cName: 'nav-links'
},
{
title: 'PROJECTS',
url: '#',
cName: 'nav-links'
},
{
title: 'CONTACT US',
... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
# Copyright (C) 2019 DLR
#
# All rights reserved. This program and the accompanying materials are made
# available under the terms of the 3-Clause BSD License which accompanies this
# distribution, and is available at
# https://opensource.org/licenses/BSD-3-Clause
#
# Contributors:
# Christoph Suerig <christoph.suerig@... |
// @flow
/* eslint-env mocha */
import assert from 'power-assert'
import eachWeekendOfInterval from '.'
describe('eachWeekendOfInterval', function() {
it('returns all weekends within the interval', function() {
var result = eachWeekendOfInterval({
start: new Date(2018, 8 /* Sept */, 17),
end: new Da... |
import {
computeLineNumberFactory,
isInHunkFactory,
isBetweenHunksFactory,
findChangeByLineNumberFactory,
getCorrespondingLineNumberFactory,
} from '../diff/factory';
// import {normalChange, insertChange, deleteChange} from '../../__test__/changes.case';
// import {basicHunk} from '../../__test__/c... |
import React, { useState, useRef } from "react";
import "./App.css";
import Child from "./Child";
function Parent() {
const [lotto, setLotto] = useState([0, 0, 0, 0, 0, 0, 0]);
const parentLotto = lotto;
const makeLotto = () => {
let lottoArray = [];
let count = 0;
let until = 7;
while (1) {
... |
"use strict";!function(){if(Kekule.PROP_AUTO_TITLE){var e=ClassEx.getPrototype(ObjectEx).defineProp;ClassEx.getPrototype(ObjectEx).defineProp=function(t,r){if(!r.title&&!r.description){var n=this.getClassName();n.startsWith("Kekule.")&&(n=n.substr(7));var i="TITLE_"+t,o="DES_"+t,a=Kekule.Localization.findValue("OBJDEF_... |