text stringlengths 3 1.05M |
|---|
# -*- coding: utf-8 -*-
"""
Model of table payment types.
This table collect all payments that passes through cash machine.
"""
from mgnemu.models.check import Check
from mgnemu.models.cash_operation import CashOperation
class PaymentOperations(object):
def __init__(self):
self.__sum1 = 0
self... |
from .flipout_layers import *
from .variational_layers import *
from .base_variational_layer import *
from .batchnorm import *
from .dropout import *
from .relu import *
|
// https://github.com/postcss/postcss/blob/main/docs/README-cn.md
const postcss = require('postcss')
const precss = require('precss')
const autoprefixer = require('autoprefixer')
const postcssPresetEnv = require('postcss-preset-env')
const PackageConfig = require('../package.json')
const fs = require('fs')
const {... |
import base64
import json
import os
import requests
from flask import Flask, request, redirect, url_for, send_from_directory
from werkzeug.utils import secure_filename
UPLOAD_FOLDER = '/tmp'
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPL... |
define([], function() {
var strings = {
"_/GZrHjuQO4erDQbBRI2XSA": {
"ddpSiteDataTitle": "사이트 속성",
"ddpUserDataTitle": "현재 사용자 정보",
"ddpUrlDataTitle": "쿼리 문자열",
"ddvUserName": "사용자 이름",
"ddvUserNameDesc": "사용자 이름",
"ddvUserEmail": "사용자 전자 메일",
"ddvUserEmailDesc": "현재 사용자의... |
from django.urls import re_path
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
app_name = 'braintree'
urlpatterns = [
re_path(r'^client-token/', views.ClientTokenView.as_view(), name='client-token', ),
re_path(r'^checkout/', views.CheckoutView.as_view(), name='checkout', ),
... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js
*
* Copyright (c) 2009-2017 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
import nose.tools
from angr import SimState, SimHeapPTMalloc
# TODO: Make these tests more architecture-independent (note dependencies of some behavior on chunk metadata size)
def chunk_iterators_are_same(iterator1, iterator2):
for ck in iterator1:
ck2 = next(iterator2)
if ck.base != ck2.base:
... |
export default {
key: 'C',
suffix: 'm9',
positions: [
{
frets: '3335',
fingers: '1113',
barres: 3
},
{
frets: '8765',
fingers: '4321'
},
{
frets: '7766',
fingers: '2211',
b... |
// @target: es6
var M;
(function(M) {
var obj = {
[this.bar]: 0
};
})(M || (M = {}));
|
function Assets() {
this.music = loadSound('/assets/ghouliet.wav')
this.muteSounds = false
this.moans = [
loadSound('/assets/moan1.wav'),
loadSound('/assets/moan2.wav')
]
this.zombeo = {
counter: 0,
direction: 'right',
right: [loadImage('/assets/R1.png'), loadImage('/assets/R2.png')],
... |
#!/usr/bin/env python
# --------------------------------------------------------------
# This script is for generating image index list from imdb_IRMA.
# Written by Xiaoming Zhao
# --------------------------------------------------------------
import sys
import os
import argparse
ROOT_PATH = os.path.abspath(
os.... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
var todoRouter = require('./routes/todo');
let... |
'use strict';
const $ = window.$;
$(document).ready(function () {
var currentSectionNav, target;
// If an anchor hash is in the URL highlight the menu item
highlightActiveHash();
// If a specific page section is in the URL highlight the menu item
highlightActiveSection();
// If a specific page section i... |
"""pip.py gets installed pip dependencies"""
# pylint: disable=protected-access
# Copyright 2020 Sonatype 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/li... |
#!/usr/bin/env python
# Copyright (c) 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.
"""Performance Test Bisect Tool
This script bisects a series of changelists using binary search. It starts at
a bad revision where... |
### Interactively plot points
### to show their mean, standard deviation,
### and the Normal distribution with that mean and std.
### By Rajeev Raizada, Jan.2011.
### Requires Python, with the Matplotlib and SciPy modules.
### You can download Python and those modules for free from
### http://www.python.org/download
#... |
const mongoose = require('mongoose');
const mongoConfig = require('../config').mongo;
const db = mongoose.connection;
const Schema = mongoose.Schema;
const {host, port, name} = mongoConfig;
const url = `mongodb://${host}:${port || 27017}/${name || ''}`;
mongoose.connect(url, {useNewUrlParser:true});
db.on('error', ... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['1845',"Tlece.Recruitment.Models.Badges Namespace","topic_0000000000000615.html"],['1891',"BadgesCompanyDto Class","topic_000000000000063F.html"]]; |
import functools
import json
import logging
from datetime import datetime
from datetime import timedelta
from datetime import timezone
from typing import Dict
from typing import Iterable
from typing import List
from typing import Tuple
from typing import Union
import aioredis
import httpx
from aioredis.exceptions impo... |
import argparse
import sys
CHANGELOG_FILE = "CHANGELOG.md"
def main():
parser = argparse.ArgumentParser()
parser.add_argument("run", type=str, help="the task to run")
parser.add_argument("--tag", type=str, help="the Git tag to work with")
args = parser.parse_args()
if args.run == "check-changelo... |
(function($) {
$(function() {
$('#top').on('tabinit', function() {
$('#sample1').carousel3d();
});
$('#options').on('tabinit', function() {
$('#sample2').carousel3d( {
perspective: 1500
});
$('#sample3').carousel3d(... |
from django.contrib.gis.db import models
from phonenumber_field.modelfields import PhoneNumberField
from company.utils import ActiveStatus
STATUS_CHOICES = ActiveStatus.to_list()
class ActiveManager(models.Manager):
"""
return only active objects (objects with status A)
"""
def get_queryset(self):
... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
"""
Simple module to obtain the lyrics of a song.
More sources other than LyricWikia could be implemented in the future. The
problem is that most require an API key and can be annoying to set up.
Other sources could be implemented with a web scrapper, but it's not reliable
enough. Lyricwikia is actually a scrapper but... |
from django.conf.urls import url
import plants
from .views import *
urlpatterns = [
url(r'^$', plant_species_home, name='plant_species_home'),
url(r'^species/(?P<species_id>[0-9]+)/$', plant_species_view, name='plant_species_view'),
url(r'^species/add/$', plant_species_add, name='plant_species_add'),
u... |
from schematics import Model
from schematics.types import StringType, IntType
class InstancePool(Model):
id = StringType()
display_name = StringType()
instance_configuration_id = StringType()
size = IntType() |
//# sourceMappingURL=FocusTrapCallout.types.js.map |
describe("constants", function () {
beforeEach(module('uchiwa'));
var settings;
describe("conf", function () {
beforeEach(inject(function ($controller, _$rootScope_, _conf_) {
conf = _conf_;
}));
it("should provide a value conf", function () {
expect(angular.isObject(conf)).toBeTruthy()... |
// Copyright 2014 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_CLIP_RECTS_CACHE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_CLIP_RECTS_CACHE_H_
#include "third_party... |
import React from 'react';
import { Hero } from "../../components/home/Hero";
import { IMAGES_PATH } from "../../constants/imagesPath";
export function HomePage() {
return (
<>
<Hero />
<div className="p-6 md:p-4 max-w-7xl mx-auto">
<h2 className="text-2xl font-medium mb-6">Ligas y medallas</h2>
<div ... |
/**
* @module InputDevice
* @description Intermediary export file for input devices stuff. Export [TKeyboardController]{@link TKeyboardController} and [TMouseController]{@link TMouseController}
*
* @author [Tristan Valcke]{@link https://github.com/Itee}
* @license [BSD-3-Clause]{@link https://opensource.org/licens... |
function addTransformDebug(folder, model) {
const subfolder = folder.addFolder(model.name);
const params = {
'position.x': model.position.x,
'position.y': model.position.y,
'position.z': model.position.z,
'scale.x': model.scale.x,
'scale.y': model.scale.y,
'scale.z': model.scale.z,
'rota... |
import { useLocation, Link, routes } from '@redwoodjs/router'
const Nav = () => {
const { pathname } = useLocation()
return (
<div className="w-full px-4 py-5 mx-auto md:px-24 lg:px-8 bg-yellow-500 z-50 shadow-md ">
<div className="relative flex items-center justify-between max-w-6xl mx-auto ">
<... |
from django.apps import AppConfig
class MyadminConfig(AppConfig):
name = 'myadmin'
|
from cs50 import get_int
# The main function
def main():
run = True
while run:
# Taking the input for the height of the towers
height = get_int("Height: ")
# Checking for the bounds of the value given
if height <= 8 and height > 0:
run = False
else:
... |
#!/usr/bin/env python
# Simple translation model and language model data structures
import sys, os, gzip
from collections import namedtuple
# A translation model is a dictionary where keys are tuples of French words
# and values are lists of (english, logprob) named tuples. For instance,
# the French phrase "que se es... |
import React from 'react'
import { Observable } from 'rxjs'
export default React.createClass({
propTypes: {
navigator: React.PropTypes.object.isRequired
},
threshold: 0,
touchStarted: function () {
return this.state.xDown !== null && this.state.yDown !== null
},
toXY: function(evt) {
retur... |
/**
* Module Imports
*/
const { Client, Collection } = require("discord.js");
const { readdirSync } = require("fs");
const { join } = require("path");
const { TOKEN, PREFIX } = require("./util/EvobotUtil");
const client = new Client({ disableMentions: "everyone" });
client.login(TOKEN);
client.commands = new Collec... |
import { DataSource } from '@angular/cdk/collections';
import { Component } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import * as i0 from "@angular/core";
import * as i1 from "@angular/cdk/table";
import * as i2 from "@angular/cdk-experimental/popover-edit";
import * as i3 from "@angular/forms";
fun... |
import caffe
import numpy as np
import score
from math import ceil
from numpy import zeros, arange
import matplotlib.pyplot as plt
# solver from already exit weights
use_gpu=1
weights = 'caffemodel/1_4/_iter_20000.caffemodel'
if use_gpu:
caffe.set_mode_gpu()
caffe.set_device(0)
else:
caffe.set_mode_cpu()
... |
import { StackRouter, createNavigator } from '../../navigation-core';
import { createKeyboardAwareNavigator } from '../../navigation-native';
import StackView from '../views/StackView/StackView';
function createStackNavigator(routeConfigMap, stackConfig = {}) {
const router = StackRouter(routeConfigMap, stackConfig)... |
#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the 'License'). All use of this software is governed by the License,
# or, if provided, by the license below or th... |
import wasmBinary from "./build/fib.wasm";
import WasmModule from "./build/fib.js";
// Pass wasmBinary in so initialization does not have to fetch it
let instance = WasmModule({ wasmBinary });
addEventListener("fetch", event => {
event.respondWith(handleRequest());
});
async function handleRequest() {
return new... |
/*
* tclMacAppInit.c --
*
* Provides a version of the Tcl_AppInit procedure for the example shell.
*
* Copyright (c) 1993-1994 Lockheed Missle & Space Company, AI Center
* Copyright (c) 1995-1997 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-ary-val-null.case
// - src/dstr-binding/error/for-of-const.template
/*---
description: Nested array destructuring with a null value (for-of statement)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelled... |
# -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
from TaskTemplate import *
from acq4.devices.Device import TaskGui
from acq4.util.debug import *
from acq4.pyqtgraph.WidgetGroup import WidgetGroup
import sys
class NiDAQTask(TaskGui):
sigChanged = QtCore.Signal(object)
def __init__(self, dev, ... |
//Simple, remove the spaces from the string, then return the resultant string.
function noSpace(x){
return x.replace(/\s/g, '')
}
//Write a function to convert a name into initials. This kata strictly takes two words with one space in between them.
//The output should be two capital letters with a dot seperating t... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
#!/bin/env python
#===============================================================================
# NAME: XmlTopologyParser.py
#
# DESCRIPTION: This class parses the XML serializable types files.
#
# USAGE:
#
# AUTHOR: reder
# EMAIL: reder@jpl.nasa.gov
# DATE CREATED : July 2, 2013
#
# Copyright 2013, California In... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define("@angular/compiler-cli/ngcc/src/packages/build_mar... |
/*
* Copyright (c) 2015, Jaime Blazquez del Hierro
* Licensed under BSD 2-Clause license
* See LICENSE.md file for details
*/
var util = require('util');
var qfy = require('./lib/qfy-common');
qfy.module(util, {
functions: ['pump']
}, exports); |
import random
import sys
# Accept integers rows and cols, and float prob as command-line arguments.
# Create a rows x cols minesweeper game where each cell is a bomb with
# probability prob. Write the rows x cols game and the neighboring bomb counts
# to standard output.
rows = int(input('rows: '))
cols = int(input(... |
/* ng-infinite-scroll - v1.3.0 - 2016-06-30 */
angular.module('infinite-scroll', []).value('THROTTLE_MILLISECONDS', null).directive('infiniteScroll', [
'$rootScope', '$window', '$interval', 'THROTTLE_MILLISECONDS', function($rootScope, $window, $interval, THROTTLE_MILLISECONDS) {
return {
scope: {
i... |
// Main game entry point
(function($) {
var board = new Board(BOARDS.english);
var undos = 10;
var undo_history = [];
var render_board_template = Handlebars.compile($("#board-template").html());
function render_board() {
$(".game-main").html(render_board_template({tiles: board.tiles}));
... |
from typing import List
import pytest
from tools import utils
from client.client import Client
BAKE_ARGS = ['--max-priority', '512', '--minimal-timestamp']
# TODO test doesn't pass with n=2 (--bootstrap-treshold?)
@pytest.mark.multinode
@pytest.mark.parametrize("clients", [3], indirect=True)
@pytest.mark.increment... |
/*
* PROGRAM: Client/Server Common Code
* MODULE: alloc.h
* DESCRIPTION: Memory Pool Manager
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You may obtain a copy of the L... |
#!/usr/bin/python
command = (oiio_app ("oiiotool") + " "
+ parent + "/oiio-images/grid.tif"
+ " --resize 256x256 -o resize.tif >> out.txt ;\n")
# To add more tests, just append more lines like the above and also add
# the new 'feature.tif' (or whatever you call it) to the outputs list,
# below... |
/* Open when someone clicks on the span element */
function openNav() {
document.getElementById("myNav").style.width = "100%";
}
/* Close when someone clicks on the "x" symbol inside the overlay */
function closeNav() {
document.getElementById("myNav").style.width = "0%";
} |
webpackJsonp([1],{"/XRT":function(A,e,t){A.exports=t.p+"static/img/html.75270bd.png"},"12Xs":function(A,e,t){A.exports=t.p+"static/img/xlsx.444c54f.png"},"41ZL":function(A,e,t){A.exports=t.p+"static/img/eps.4032878.png"},"52mW":function(A,e,t){A.exports=t.p+"static/img/avi.4b8ea29.png"},"5Xja":function(A,e,t){A.exports... |
# -*- coding: utf-8 -*-
# file: train_k_fold_cross_val.py
# author: songyouwei <youwei0314@gmail.com>
# Copyright (C) 2019. All Rights Reserved.
import logging
import argparse
import math
import os
import sys
import random
import numpy
from sklearn import metrics
from time import strftime, localtime
from transformer... |
# -*- coding: utf-8 -*-
"""
eve_mongoengine.validation
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements custom validator based on
:class:`eve.io.mongo.validation`, which is cerberus-validator extension.
The purpose of this module is to enable validation for special mongoengine
fields.
:... |
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
app = Flask(__name__)
app.config['SECRET_KEY'] = '379653ca'
# app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql+psycopg2://... |
// -*- Mode: objc; Coding: utf-8; indent-tabs-mode: nil; -*-
@import Cocoa;
#include "bridge.h"
@interface ClientForKernelspace : NSObject
- (void)refresh_connection_with_retry;
- (void)disconnect_from_kext;
- (void)send_config_to_kext;
@end
|
'use strict'
const joi = require('joi')
// TODO schema
module.exports = joi.object().keys({
kind: joi.string().valid('sale'),
gateway_token: joi.string(),
gateway_source: joi.any()
}).unknown()
|
import i18n from '@dhis2/d2-i18n';
import TableIcon from '@material-ui/icons/ViewList';
import ChartIcon from '@material-ui/icons/InsertChart';
import MapIcon from '@material-ui/icons/Public';
import ExtensionIcon from '@material-ui/icons/Extension';
import DescriptionIcon from '@material-ui/icons/Description';
i... |
"""
.. module:: test
test
*************
:Description: test
:Authors: bejar
:Version:
:Created on: 25/11/2014 11:15
"""
__author__ = 'bejar'
from amltlearn.feature_selection.unsupervised import LaplacianScore
from sklearn.datasets import make_blobs
import pylab as pl
import matplotlib.pyplot as plt... |
"""
Copyright, the CVXPY authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
import numpy as np
import netCDF4 as nc
from matplotlib import pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import sys
###################
# GEOCLIM OUTPUT: #
###################
# Get argument pass to script
output_files = sys.argv
# remove 1st argument: script name
del(output_files[0])
##... |
# Generated by Django 3.2.7 on 2021-11-06 17:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0010_usersettings'),
]
operations = [
migrations.AddField(
model_name='usersettings',
name='skeletonAnimati... |
# 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 writing, software
# d... |
const styleConfig = {
icons: {
TableHeadingCell: {
sortDescendingIcon: '▼',
sortAscendingIcon: '▲'
},
},
classNames: {
Cell: 'griddle-cell',
Filter: 'griddle-filter',
Loading: 'griddle-loadingResults',
NextButton: 'griddle-next-button',
NoResults: 'griddle-noResults',
P... |
/*! jQuery UI context menu plugin - v1.7.0 - 2014-09-09 | https://github.com/mar10/jquery-ui-contextmenu | Copyright (c) 2014 Martin Wendt; Licensed MIT */
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";var b,c,d="onselectstart"in document.crea... |
from django.contrib.auth import get_user_model
from rest_framework import serializers
from rest_framework.reverse import reverse
from .models import Protonflux, Electronflux, Xrayflux, Ptype, Etype, Xtype
from .models import Sunspot, Sunspottype, Sunspotregion
from .models import Alert, Alerttype
from .models import ... |
import React from 'react'
const Copyright = () => {
return(
<div>
<h5>
Designed & Developed By <br/> Swetank Soni @ 2020
</h5>
</div>
)
}
export default Copyright |
from battlenet.community import Community
class Item(Community):
ENDPOINT = '/wow/item/%s'
error_text = 'Item ID required.'
def __init__(self, *args, **kwargs):
super(Item, self).__init__(*args, **kwargs)
self.id = kwargs.get('id')
def get(self, id=None):
if id:
s... |
import React from 'react';
import {
Row, Col, Descriptions, PageHeader, Tag, Card, Empty
} from 'antd';
import '../styles/SocietyDetail.scss';
import SocietyStore from '../stores/SocietyStore';
import { observer } from 'mobx-react';
import { society_type } from '../../../shared/constants';
import SocietyCard from '.... |
// 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.
#ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H... |
# main code that contains the neural network setup
# policy + critic updates
# see ddpg.py for other details in the network
from algorithms.ddpg.ddpg import DDPGAgent
import torch
from utilities.utilities import soft_update, transpose_to_tensor, transpose_list, gumbel_softmax
import numpy as np
class MADDPG:
de... |
import ezdxf
"""Começa configuração do desenho."""
# Cria um novo desenho
dwg = ezdxf.new(dxfversion='AC1032')
# Configura diferentes camadas com diferentes cores
dwg.layers.new(name='CUT', dxfattribs={'color': 7})
dwg.layers.new(name='SCAN', dxfattribs={'color': 5})
# Endereçar o layout do desenho
msp = dwg.modelsp... |
"""
This library for transformations partly derived and was re-implemented from the
following online resources:
* http://www.lfd.uci.edu/~gohlke/code/transformations.py.html
* http://www.euclideanspace.com/maths/geometry/rotations/
* http://code.activestate.com/recipes/578108-determinant-of-matrix-of-any-o... |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import datetime
import chinese_calendar
constants_template = """# -*- coding: utf-8 -*-
# this file is generated by chinese_calendar.scripts.generate_constants
from __future__ import absolute_import, unicode_literals
import datetime
fr... |
import React from "react"
import styles from "./codeInfo.module.css"
const CodeInfo = () => {
return (
<div className={styles.container}>
<h1>Your code is available!</h1>
<p>We have found the code in our database!</p>
</div>
)
}
export default CodeInfo
|
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}... |
from math import ceil
from typing import Optional, Union
import abjad
from .. import mutate
from ._LooperParent import _LooperParent
class WindowLooper(_LooperParent):
r"""Outputs slices of an |abjad.Container| (or child class) using the
metaphor of a looping window of a constant size (given by an
|abja... |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.EffectComposer = function ( renderer, renderTarget ) {
this.renderer = renderer;
if ( renderTarget === undefined ) {
var parameters = {
minFilter: THREE.LinearFilter,
magFilter: THREE.LinearFilter,
format: THREE.RGBAFormat,
stencilBuffer:... |
from __future__ import unicode_literals
import copy
import itertools
import ipaddress
import json
import os
import re
import six
import warnings
from boto3 import Session
from pkg_resources import resource_filename
from collections import defaultdict
import weakref
from datetime import datetime
from boto.ec2.instanc... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
// window.Vue = require('vue');
// sss
// import VPagination from "@hen... |
#include "copyfile.h"
#include "cerror.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int copyfile(char* sourcePath, char* destPath) {
FILE *source;
FILE *dest;
static char puffer1[BUFSIZ];
static char puffer2[BUFSIZ];
int character;
time_t t1 = time(NULL);
p... |
/*
* /MathJax-v2/jax/output/SVG/autoload/ms.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/... |
app.controller('indexController', ['$scope', 'indexFactory', 'configFactory', ($scope, indexFactory, configFactory) => {
$scope.messages = [ ];
$scope.players = { };
$scope.init = () => {
const username = prompt('Please enter username');
if (username)
initSocket(username);
else
return false;
};
fun... |
// Modules to control application life and create native browser window
const { app, BrowserWindow, ipcMain, screen, Tray, Menu } = require('electron')
const AutoLaunch = require('auto-launch');
const path = require('path')
const FirebaseEventHandler = require("./EventHandler")
let tray = null;
var mainWindow = null;... |
import os
from pathlib import Path
from time import time
from binaryninja import log_info, log_error, log_debug
from binaryninja import DirectoryNameField, ChoiceField, SaveFileNameField, get_form_input, show_html_report
from bncov import CoverageDB
from .timeline import CoverageTimeline
from .visualize import genera... |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify... |
"""Here be tasks."""
from .tasks import *
|
function generateHeading() {
$.each(configData["Courses"], function (index, value) {
var preparedHtml = "";
preparedHtml += "<th>";
preparedHtml += value["ShortName"];
preparedHtml += "</th>";
$("#MainTableTheadRow").append(preparedHtml);
});
}
|
import os
from gpatch_cnn.torch_gauss import multiGauss, multiGaussNoOverlap, write_image, export_pos
patch_size = 32
n_peaks = 5
train_n = 10000
val_n = 2000
cutoff = 0.6
train_pos=[]
for n in range(n_peaks+1):
train_path = 'data/train/%i' %n
train_pos_dir = 'positions/train'
os.... |
# -*- coding: utf-8 -*-
import os.path
import jsonpickle
import getopt
import sys
import random
import string
from model.address import Address
try:
opts, args = getopt.getopt(sys.argv[1:], "n:f:browser:check_ui:", ["number of contacts", "file", "browser", "check_ui"])
except getopt.GetoptError as err:
getop... |
import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
import withAsyncData from '../../../../common/hocs/AsyncDataContainer';
import withDescription from '../../../../common/hocs/Desc... |
'use strict';
var Extensions = require('periodicjs.core.extensions'),
ExtensionCore = new Extensions({
dirname: __dirname
});
ExtensionCore.uninstall({
removepublicdir:true,
// removeconfigdir:false,
},
function(err,status){
if(err){
throw new Error(err);
}
else{
console.log(status);
}
}); |