text stringlengths 3 1.05M |
|---|
import moment from 'moment';
// mock data
const visitData = [];
const beginDay = new Date().getTime();
const fakeY = [7, 5, 4, 2, 4, 7, 5, 6, 5, 9, 6, 3, 1, 5, 3, 6, 5];
for (let i = 0; i < fakeY.length; i += 1) {
visitData.push({
x: moment(new Date(beginDay + 1000 * 60 * 60 * 24 * i)).format('YYYY-MM-DD'),
... |
const assert = require('assert');
const admin = require('../admin');
const data = require('./utils/data');
describe('Crowd Input Data Schema', function() {
// before(async () => {
// await pgr.createApp(data.createApp());
// });
describe('admin methods', async function() {
it('should create schema', as... |
'use strict';
module.exports = require('./quantity')('Mass')
.base('Gram', {
names: [ 'g', 'gram', 'grams', 'gramme', 'grammes' ],
prefix: true,
exposePrefixes: [ 'kilo' ]
})
.add('Pound', {
names: [ 'lb', 'lbs', 'pound', 'pounds', '#' ],
scale: 453.592
})
.add('Ou... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import PostList from 'components/PostList';
class Posts extends Component {
static propTypes = {
children: PropTypes.object,
auth: PropTypes.object.isRequired
}
static store(state) {
return {
auth: sta... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
# Copyright 2021 Cortex Labs, 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 wri... |
const proxyquire = require('proxyquire')
const moveToImportantEventsTagListComponent = sinon.stub()
const assessmentToTagList = sinon.stub()
const presenters = {
moveToImportantEventsTagListComponent,
assessmentToTagList,
}
const getMoveUrl = sinon.stub().returns('move-url')
const getTagLists = proxyquire('./get... |
import React, { Component } from 'react';
import { cssModules } from 'gg-components/helpers/cssModules';
import Space from './Space';
import STYLES from './sub-elements.scss';
const getClassName = cssModules(STYLES);
export default class SubParagraph extends Component {
render() {
const { children, ...rest } =... |
num = int(input("Enter a number: "))
if ((num % 2 == 0) and (num % 3 == 0) and (num % 5 == 0)):
print("Divisible")
else:
print("Not Divisible")
|
const { User } = require('../models');
module.exports = {
up: () => User.bulkCreate([{
name: 'John Doe',
email: 'john.doe@example.com',
password: '123321',
createdAt: new Date(),
updatedAt: new Date(),
}], {
validate: true,
individualHooks: true,
}),
down: queryInterface => queryIn... |
from .objects import MujocoObject, MujocoXMLObject, MujocoGeneratedObject
from .generated_objects import CompositeBodyObject, CompositeObject, PrimitiveObject
from .xml_objects import (
BottleObject,
CanObject,
LemonObject,
MilkObject,
BreadObject,
CerealObject,
SquareNutObject,
RoundNu... |
var form_move = {
init: function () {
var self = this;
this.type = 0;
this.dx = 0;
this.dy = 0;
this.elem = null;
this.handle = null;
this.allow = true;
this.active = false;
var f = document.getElementsByClassName('mobile');
var i, j, c... |
#!/usr/bin/env python3
import os
import regex
import requests
import sys
import time
import urllib.parse
def main():
query = ''
while True:
c = sys.stdin.read(1)
if not c:
break
query += c
if c == ')':
sys.stdout.write(handle_query(query))
s... |
describe('unit test', () => {
it('shuold 1 equal 1', () => {
expect(1).toBe(1);
});
// it(' 1 equal not 2 ', () => {
// expect(1).toBe(2);
// })
}) |
// TODO: Add visual output!
let LandkreisPictureQuery = require("./LandkreisPictureQuery.js");
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
exports.fetch = fetch;
module.exports = class BackendRKIFetcher {
static api = "https://opendata.arcgis.com/datasets/917fc37a7... |
# Automatically created by: scrapyd-deploy
from setuptools import setup, find_packages
setup(
name = 'project',
version = '1.0',
packages = find_packages(),
entry_points = {'scrapy': ['settings = broken_links.settings']},
)
|
/*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/yui-later/yui-later.js']) {
__coverage__['build/yui-later/yui-later.js'] = {"path":... |
from django.contrib import admin
# Register your models here.
from .models import Comentario
class ComentarioAdmin(admin.ModelAdmin):
list_display = ('id', 'nome_comentario', 'email_comentario',
'post_comentario', 'data_comentario',
'publicad_comentario', )
list_edi... |
'use strict';
angular.module('tarefas').controller('TarefasController', ['$scope','$stateParams','$location','Tarefas','Membros',
function($scope,$stateParams,$location,Tarefas,Membros) {
// Controller Logic
// ...
//Criar categoria
$scope.create= function(){
//Criamos a tarefa
var tarefa = new Ta... |
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '',
LANGUAGE: 'pl',
COLLAPSE_INDEX: false,
BUILDER: 'html',
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',
NA... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PoWA documentation build configuration file, created by
# sphinx-quickstart on Fri Feb 6 09:40:18 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... |
'use strict';
// MODULES //
var isObject = require( 'validate.io-object' ),
isNumber = require( 'validate.io-number-primitive' ),
isPositive = require( 'validate.io-positive-primitive' ),
isBoolean = require( 'validate.io-boolean-primitive' ),
isFunction = require( 'validate.io-function' ),
isString = require( '... |
let _toStringTag = Symbol.toStringTag;
//@target: ES6
class C1 extends C2 {
[_toStringTag]() {
return {
x: ""
};
}
}
class C2 {
}
|
/* COG functions */
jQuery(function () {
setTimeout(function () { jQuery('.preloader').fadeOut(); }, 50);
if(jQuery('.dataTableCog').length > 0) {
if(lang == "es") {
jQuery('.dataTableCog').DataTable({
"pagingType": "numbers",
"language": {
"url" : SITE_URL + "vendor/cogroup/cms/js/i18n/spanish... |
goog.module.declareNamespace('my.es6');
export default function esModule() {
return 'from ES Modules';
}
export function bar() {
return 'bar';
}
|
Highcharts.maps["countries/cn/411500_full"] = {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":411502,"name":"浉河区","center":[114.075031,32.123274],"centroid":[113.961756,32.045601],"childrenNum":0,"level":"district","parent":{"adcode":411500},"subFeatureIndex":0,"acroutes":[100000,410000... |
/*! marvin 2018-03-19 */
"use strict";function iqr(a){return function(b,c){for(var d=b.quartiles[0],e=b.quartiles[2],f=(e-d)*a,g=-1,h=b.length;b[++g]<d-f;);for(;b[--h]>e+f;);return[g,h]}}function boxWhiskers(a){return[0,a.length-1]}function boxQuartiles(a){return[d3.quantile(a,.25),d3.quantile(a,.5),d3.quantile(a,.75)]... |
const knex = require('knex');
const config = require('../../knexfile');
const db = knex(config.development);
module.exports = db; |
/**
* 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.
*
* @flow
*/
// Intentionally not named imports because Rollup would use dynamic dispatch for
// CommonJS interop named imports.
im... |
# Copyright 2019 2.013
# Jacob Miske
# !/usr/bin/python3
import cmd
import sys
import os
import getpass
from pyfiglet import Figlet
class PTR(cmd.Cmd):
"""A simple cmd application using cmd.
"""
custom_fig = Figlet(font='slant')
intro = 'Welcome to the PTR shell. Type help or ? to list commands.\n'
... |
"""
switchboard.tests.test_manager
~~~~~~~~~~~~~~~
:copyright: (c) 2015 Kyle Adams.
:license: Apache License 2.0, see LICENSE for more details.
"""
from __future__ import unicode_literals
from __future__ import absolute_import
from mock import Mock, patch
from webob import Request
from .. import operator
from ..midd... |
# -*- coding: utf-8 -*-
"""
Whiteness Index :math:`W`
=========================
Defines the *whiteness* index :math:`W` computation objects:
- :func:`colour.colorimetry.whiteness_Berger1959`: *Whiteness* index
:math:`WI` computation of given sample *CIE XYZ* tristimulus values using
*Berger (1959)* method.
... |
describe("correct behavior", () => {
test("basic functionality", () => {
const timeZone = new Temporal.TimeZone("UTC");
const zonedDateTime = new Temporal.ZonedDateTime(1625614921000000000n, timeZone);
expect(zonedDateTime.month).toBe(7);
});
});
test("errors", () => {
test("this va... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
// 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.
// Custom bindings for the notifications API.
//
var binding = require('binding').Binding.create('notifications');
var sendRequest = require('sendRequest... |
import Mock from 'mockjs';
import faker from 'faker';
import paginator from 'cello-paginator';
import organizations from './organization';
const channels = Mock.mock({
'data|11': [
{
id() {
return Mock.Random.guid();
},
name() {
return faker.name.findName();
},
netwo... |
## Program: VMTK
## Language: Python
## Date: January 10, 2018
## Version: 1.4
## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved.
## See LICENSE file for details.
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNES... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var styled_icon_1 = require("@styled-icons/styled-icon");
exports.KeyboardArrowRight = React.forwardRef(function (props, ref) {
var attrs = {
"fill... |
// Import dependencies
import { ScriptBehavior, getActor, boxesIntersect } from "../ECS";
import { Inputs } from "../keys";
export default class PortalBehavior extends ScriptBehavior {
static DistanceToOpen = 50;
constructor() {
super();
this.open = false;
hudevents.on("picker", (value... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true... |
# coding=utf-8
# Copyright 2020 The TensorFlow Datasets 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 appl... |
# Tree Node class
#
# Long Le
# University of Illinois
#
import numpy as np
import matplotlib.pyplot as plt
class TreeNode:
def __init__(self,x):
self.val = x
self.left = None
self.right = None
def serialize(root):
buf = []
S = []
S.append(root)
while len(S) > 0:
... |
var searchData=
[
['deadlandsnpcgenerator_0',['DeadlandsNPCGenerator',['../md__d___projects_npc_generator__r_e_a_d_m_e.html',1,'']]]
];
|
define(["require", "exports", "tslib", "react", "../Image/Image", "../../Utilities", "./Icon.styles"], function (require, exports, tslib_1, React, Image_1, Utilities_1, Icon_styles_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Fast icon component which only sup... |
/*
*
* SettingsEditActivity actions
*
*/
import {
DEFAULT_ACTION,
} from './constants';
export function defaultAction() {
return {
type: DEFAULT_ACTION,
};
}
|
from django.urls import path
from .views import registration_view, login_view, logout_view
app_name = 'users'
urlpatterns = [
path('login/', login_view, name='login'),
path('register/', registration_view, name='register'),
path('logout/', logout_view, name='logout'),
]
# TODO: Password Reset
|
import userType from './user.type';
import activityType from './activity.type';
import eventType from './event.type';
import ticketType from './ticket.type';
import faqQuestionType from './faq-question.type';
import show from './show.type';
import vote from './vote.type';
export default `
scalar JSON
${userType... |
const s = require('./solution')
test('left array', () => {
expect(s.leftArr([1, 2, 3, 4, 5, 6])).toEqual([1, 2, 3])
expect(s.leftArr([1, 2, 3, 4, 5])).toEqual([1, 2])
expect(s.leftArr([1])).toEqual([])
})
test('right array', () => {
expect(s.rightArr([1, 2, 3, 4, 5, 6])).toEqual([4, 5, 6])
expect(s.rightArr... |
"""
Copy of HTML5 GeolocationPosition object
"""
class GeoPosition:
# TODO: make this encodable to store in MongoDB
def __init__(self, geo_position_json):
self.timestamp = geo_position_json.get('timestamp')
coords = geo_position_json.get('coords')
self.accuracy = coords.get('accuracy')
... |
import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
const DocumentHead = ({ site, className = {} }) => {
return (
<Helmet>
<html lang={site.lang} className="casper" />
<style type="text/css">{`${site.codeinjection_styles}`}</style>
... |
/*-*-coding:utf-8 -*-
*Auto updated?
* Yes
*File :
* DiscordBot/Commands/Utilities/changelog.js
*Author :
* The-Repo-Club [wayne6324@gmail.com]
*Github :
* https://github.com/The-Repo-Club/
*
*Created:
* Wed 23 February 2022, 12:04:54 PM [GMT]
*Last edited:
* Tue 15 March 2022, 06:07:27 PM [GMT... |
import React, { Component } from 'react'
import RaisedButton from 'material-ui/RaisedButton'
import TextField from 'material-ui/TextField'
import Paper from 'material-ui/Paper'
import { updateUser } from '../../../Services/firebaseDBService'
import { uploadProfilePic } from '../../../Services/firebaseStorageService'
im... |
import boto3
import json
import logging
import requests
import sys
import os.path as op
from datetime import datetime
from stac_sentinel import SentinelSTAC
from urllib.parse import urljoin
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
client = boto3.client('sns', region_name=SentinelSTAC.regi... |
# -*- coding: utf-8 -*-
from __future__ import print_function
# Form implementation generated from reading ui file './acq4/analysis/old/StdpCtrlTemplate.ui'
#
# Created: Tue Dec 24 01:49:15 2013
# by: PyQt4 UI code generator 4.10
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, ... |
/* global artifacts, contract, it, assert, web3 */
/* eslint-disable prefer-reflect */
const TestSafeMath = artifacts.require('TestSafeMath.sol');
const utils = require('./helpers/Utils');
contract('SafeMath', () => {
it('verifies successful addition', async () => {
let math = await TestSafeMath.new();
... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import mapStoreToProps from '../../redux/mapStoreToProps';
import {Container, Box, FunHeader, BoxText, StandardButton} from './LandingStyles';
// CUSTOM COMPONENTS
import RegisterForm from '../RegisterForm/RegisterForm';
class LandingPa... |
// flow-typed signature: faa69b0553f93d63d6d59c2eee2dede8
// flow-typed version: <<STUB>>/@monaco-editor/react_v^3.0.1/flow_v0.117.0
/**
* This is an autogenerated libdef stub for:
*
* '@monaco-editor/react'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to shar... |
var shadow$provide = {};
;;importScripts();
(function(){
shadow$provide[0]=function(ib,Wb,kc,Ka){};
shadow$provide[1]=function(ib,Wb,kc,Ka){kc.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_N... |
from __future__ import print_function
import pickle
import time
import re
import numpy as np
from gensim.models import word2vec, KeyedVectors
WORD_VECTOR_SIZE = 300
raw_movie_conversations = open('data/movie_conversations.txt', 'r').read().split('\n')[:-1]
utterance_dict = pickle.load(open('data/utterance_dict', 'r... |
const express = require('express');
const bodyParser = require('body-parser');
const mongoose = require('mongoose')
const Dishes = require('../model/dishes')
const dishRouter = express.Router();
dishRouter.use(bodyParser.json());
//routing for dishes
dishRouter.route('/')
.get((req,res,next)=>{
Dishes.find({}... |
/**
* Known issues:
* 1) TypeScript Module Resolution
* https://storybook.js.org/docs/react/configure/webpack#typescript-module-resolution
*
* 2) Use with Tailwind
* https://stackoverflow.com/a/68757745/2403981
*/
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin')
module.exports = {
stories... |
# -*- coding: utf-8 -*-
# Copyright 2018 IBM RESEARCH. 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 requ... |
const overwriteObjectFieldValue = require("../src/overwrite_object_field_value");
describe(`::overwriteObjectFieldValue`, () => {
const dataProvider = [
/** simple assigments */
{
path: 'f',
v: {},
obj: {},
expected: { f: {} },
},
{
... |
'use strict';
require('../setup');
import { ZWeb3 } from '@openzeppelin/upgrades';
import sinon from 'sinon';
import { stubCommands, itShouldParse } from './share';
import ProjectFile from '../../models/files/ProjectFile';
import sinon from 'sinon';
const sandbox = sinon.createSandbox();
describe('push command', f... |
from plumbum import local
from benchbuild.environments import container
from benchbuild.project import Project
from benchbuild.source import HTTP
from benchbuild.utils import compiler, run, wrapping
from benchbuild.utils.cmd import make, unzip
class SciMark(Project):
"""SciMark"""
NAME = 'scimark'
DOMAI... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
const getters = {
sidebar: state => state.app.sidebar,
device: state => state.app.device,
token: state => state.user.token,
userInfo: state => state.user.userInfo,
permission_routes: state => state.permission.routes,
}
export default getters
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/mp-html/audio/audio"],{"051b":function(t,i,n){"use strict";var e=n("1c9c"),a=n.n(e);a.a},"1c9c":function(t,i,n){},"29b0":function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return o})),n.d(i,"a",(function(){return e}... |
(function () {
'use strict';
angular
.module('dados.collectioncentre.service', [
'dados.constants',
'dados.common.services.resource'
])
.service('CollectionCentreService', CollectionCentreService);
CollectionCentreService.$inject = ['ResourceFactory', 'API'];
function CollectionCentre... |
import multiprocessing as mp
import torch
import numpy as np
def geodesic_distance(pos, face, src=None, dest=None, norm=True,
max_distance=None, num_workers=0):
r"""Computes (normalized) geodesic distances of a mesh given by :obj:`pos`
and :obj:`face`. If :obj:`src` and :obj:`dest` are ... |
import request from '@/utils/request'
const ModuleName = process.env.SYHZ_MODULE
// 分页查询
export function getMessagesPage(para) {
return request({
url: ModuleName + 'page/messages',
method: 'get',
params: para
})
}
// 单条修改
export function getMessagesUpd(para) {
return request({
url: ModuleName + '... |
# 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... |
const postIds = (state = [], action) => {
switch (action.type) {
case "GET_POST_IDS":
return action.postIds;
default:
return state
}
}
export default postIds |
import hydra
from omegaconf import DictConfig, OmegaConf
@hydra.main(config_path="config", config_name="train")
def my_app(cfg : DictConfig) -> None:
#print(cfg)
print(cfg.persona.nombre)
print(cfg["persona"])
if __name__ == "__main__":
my_app() |
class Person:
"""
Represents a person, holds name, socket client and IP address
"""
def __init__(self, addr, client):
self.addr = addr
self.client = client
self.name = None
def set_name(self, name):
"""
sets the persons name
:param name: str
:... |
import { combinator } from '@aryth/subset'
import { makeReplaceable } from '@glossa/translator'
import { logger, ros, xr } from '@spare/logger'
import { iso } from '@vect/object'
import { BLINK, ... |
#!/usr/bin/env python
#
# Copyright 2007 Google 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 o... |
function createContextMenuMixin (lib, mylib) {
'use strict';
function ContextMenuMixin () {
}
ContextMenuMixin.prototype.destroy = function () {
jQuery.contextMenu('destroy', this.$element);
};
ContextMenuMixin.prototype.initializeContextMenu = function () {
var cm = this.getConfigVal('contextmenu'... |
module.exports = function solveSudoku(matrix) {
function solve() {
let currPos = searchEmpty();
if (currPos === null) {
return true;
}
let row = currPos[0];
let col = currPos[1];
for (let value = 1; value <= 9; value++) {
let isValidValue = true;
if (matrix[row].inclu... |
module.exports = {
printWidth: 80,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: true,
arrowParens: 'always',
rangeStart: 0,
rangeEnd: Infinit... |
import configureCrud from 'src/bootstrap/configure/crud'
import { route, factory, child } from 'genesis/infra/router/resources'
import { path, namespace, grid, form, meta, label, id } from 'src/domains/admin/vacinacaoanimal/model'
const resources = factory(path, namespace, grid, form, meta)
export default [
route(p... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = createUnionTypeAnnotation;
var _generated = require("../generated");
var _removeTypeDuplicates = _interopRequireDefault(require("../../modifications/flow/removeTypeDuplicates"));
function _interopRequireDefau... |
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... |
'use strict';
exports.up = function(knex, Promise) {
return knex.schema.createTable('credits', function(t) {
t.increments().primary();
t.integer('balance_id').unsigned().index().references('id').inTable('balances');
t.decimal('amount');
});
};
exports.down = function(knex, Promise) {
return knex.sc... |
const bcrypt = require("bcryptjs");
const User = require("../models/user");
const passport = require("passport");
const LocalStrategy = require("passport-local").Strategy;
passport.serializeUser((user, done) => {
done(null, user.id);
});
passport.deserializeUser((id, done) => {
User.findById(id, (err, user) =... |
import fetchQuery from '../graphql/fetchQuery';
import { LastEpochQuery } from '../graphql/queries';
// This function will only return the chainLengths
// not the full block objects
export const getNextPrev = async epoch => {
const prev = havePrevious(epoch) ? Number(epoch.id) - 1 : null;
const next = (await haveN... |
'use strict';
// Declare app level module which depends on views, and core components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.version',
]).
config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
$locationProvider.hashPrefix('!');
$rou... |
import re
import os
import json
import datetime
import itertools
import collections
Dir = os.getcwd() + "/Takeout/YouTube/"
class HTML:
def __init__(self, locale):
loc = os.getcwd() + "/locale.json"
with open(loc, "r") as read_file:
tempLoc = json.load(read_file)
self.loca... |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/cldr/nls/ar/roc",{"field-second":"\u0627\u0644\u062b\u0648\u0627\u0646\u064a","field-year-relative+-1... |
from .segmentation import ContiguousSegmentSet
__all__ = ["ContiguousSegmentSet", ]
|
require('./bootstrap');
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
/* import the fontawesome core */
import { library } from '@fortawesome/fontawesome-svg-core';
/* import font awesome icon component */
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
/* import specific icons */
im... |
/*
** delay_deny
**
** This plugin delays all pre-DATA 'deny' results until the recipients are sent
** and all post-DATA commands until all hook_data_post plugins have run.
** This allows relays and authenticated users to bypass pre-DATA rejections.
*/
exports.hook_deny = function (next, connection, params) {
/* p... |
function textCounter(e,i,t){e.val().length>t?e.val(e.val().substring(0,t)):i.html(t-e.val().length+" remaining")}function check_body_remaining(){textCounter($("#news_item_body"),$("#body_remaining_length"),1500),preview_news_item()}function check_title_remaining(){textCounter($("#news_item_title"),$("#title_remaining_l... |
"use strict";
// Execution context is created each time a function is created
(function() {
console.log('-------------------------Example on execution context creation-------------------------');
function createWallet() {
var money = 0;
return {
increment: function() {
... |
!function(n){var t={};function r(u){if(t[u])return t[u].exports;var a=t[u]={i:u,l:!1,exports:{}};return n[u].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=n,r.c=t,r.d=function(n,t,u){r.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:u})},r.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
function AppViewModel(dataModel) {
// Private state
var self = this;
// Private operations
function cleanUpLocation() {
window.location.hash = "";
if (typeof history.pushState !== "undefined") {
history.pushState("", document.title, location.pathname);
}
... |
function initSearch() {
var keyInput = $('#keywords'),
back = $('#back'),
searchContainer = $('#search-container'),
searchResult = $('#search-result'),
searchTpl = $('#search-tpl').html(),
JSON_DATA = '/content.json?v=' + (+ new Date()),
searchData;
function load... |
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
from django.db import models
from postgres_copy import CopyManager
class Dbsnp(models.Model):
"""Information of the DBSNP database."""
#: Genome build
release = models.CharField(max_length=32)
#: Variant coordinates - chromosome
chromosome = models.CharField(max_length=32)
#: Variant coordina... |