prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>LocalServicesWebRunner.java<|end_file_name|><|fim▁begin|>/*******************************************************************************<|fim▁hole|> * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompan...
* Copyright (c) 2010, 2012 Tasktop Technologies *
<|file_name|>setup_util.py<|end_file_name|><|fim▁begin|>from builtins import str from builtins import range from builtins import object import json import os import solnlib.utils as utils from splunktaucclib.global_config import GlobalConfig, GlobalConfigSchema ''' Usage Examples: setup_util = Setup_Util(uri, sessi...
self.log_info("Proxy is not enabled!") return {}
<|file_name|>index.js<|end_file_name|><|fim▁begin|>import { AppRegistry } from "react-native"; import App from "./App"; <|fim▁hole|>AppRegistry.registerComponent("KeepTheBallGame", () => App);<|fim▁end|>
<|file_name|>creader.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/li...
Some(at) } else {
<|file_name|>webrender_helpers.rs<|end_file_name|><|fim▁begin|>/* 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/. */ // TODO(gw): This contains helper traits and implem...
pipeline_id, epoch,
<|file_name|>get1F88.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*-<|fim▁hole|> pdb1f88 = getPDB("1F88") WritePDB(pdb1f88, "1F88.pdb")<|fim▁end|>
from ptools import *
<|file_name|>quickInput.ts<|end_file_name|><|fim▁begin|>/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-------...
return this._activeItems;
<|file_name|>unicode-regexp-unanchored-advance.js<|end_file_name|><|fim▁begin|>// Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --harmony-unicode-regexps var s = "a".repeat(1E7) + "\u1234";<...
assertEquals(["\u1234", "\u1234"], /(\u1234)/u.exec(s));
<|file_name|>dynamicControls.ts<|end_file_name|><|fim▁begin|>/* tslint:disable:no-console */ import * as WebSocket from 'ws'; import * as faker from 'faker'; import { delay, GameClient, IButtonData, IControlData, IParticipant, setWebSocket, } from '../lib'; if (process.argv.length < 4) { ...
size: 'medium',
<|file_name|>start_mininet.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding:utf-8 -*- # Copyright 2015 NEC Corporation. # # # # Licensed under the Apache License, Version 2.0 (the "Licen...
# Unless required by applicable law or agreed to in writing, software #
<|file_name|>mixins.py<|end_file_name|><|fim▁begin|># $Id$ """Mixins that are useful for classes using vtk_kit. @author: Charl P. Botha <http://cpbotha.net/> """ from external.vtkPipeline.ConfigVtkObj import ConfigVtkObj from external.vtkPipeline.vtkMethodParser import VtkMethodParser from module_base import ModuleB...
of this class with the desired parameters. The __doc__ string of your module class will be replaced with the __doc__ string of the encapsulated VTK class (and will thus be
<|file_name|>ev_mention.py<|end_file_name|><|fim▁begin|>async def ev_mention(ev, message):<|fim▁hole|> 'event': 'mention', 'count': 0 } collection = 'EventStats' database = ev.bot.cfg.db.database check = ev.db[database][collection].find_one({"event": 'mention'}) if not check: ...
def_stat_data = {
<|file_name|>constants.ts<|end_file_name|><|fim▁begin|>/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ <|fim▁hole|>export const $DELEGATE = '$delegate'; export const ...
export const $COMPILE = '$compile'; export const $CONTROLLER = '$controller';
<|file_name|>42f4a0f4afd9_create_table.py<|end_file_name|><|fim▁begin|>"""create_table Revision ID: 42f4a0f4afd9 Revises: None Create Date: 2014-11-15 16:53:22.716676 """ # revision identifiers, used by Alembic. revision = '42f4a0f4afd9' down_revision = None from alembic import op import sqlalchemy as sa #from guok...
sa.Column('date_created', sa.DateTime(timezone=True), nullable=False, index=True, server_default=sa.func.current_timestamp()))
<|file_name|>CatsReferralForSessionManagementVo.java<|end_file_name|><|fim▁begin|>// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751) // Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved. // WARNING: DO NOT MODIFY the content of this file package ims.Re...
{
<|file_name|>core_test.py<|end_file_name|><|fim▁begin|># Copyright 2016 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....
<|file_name|>MovementCommandSubscriber.java<|end_file_name|><|fim▁begin|>package org.iproduct.iptpi.domain.movement; import static java.lang.Math.PI; import static java.lang.Math.abs; import static java.lang.Math.atan; import static java.lang.Math.cbrt; import static java.lang.Math.cos; import static java.lang....
<|file_name|>Scroll.js<|end_file_name|><|fim▁begin|>/** * @module creatine.transitions **/ (function() { "use strict"; /** * A transition effect to scroll the new scene. * * ## Usage example * * var game = new tine.Game(null, { * create: function() { * var transition = new...
this.callback(); }
<|file_name|>build.rs<|end_file_name|><|fim▁begin|>// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/...
let pat = ast::PatIdent(bm, path, None);
<|file_name|>rnn_test.py<|end_file_name|><|fim▁begin|># Copyright 2015 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.o...
<|file_name|>census.rs<|end_file_name|><|fim▁begin|>use crate::error::Error; use habitat_butterfly::{member::{Health, Member, MemberList, Membership}, rumor::{election::{Election as ElectionRumor, ...
}
<|file_name|>schema.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from .util import Specification from . import compat class Field(Specification): """ ...
else: raise TypeError( 'Field type ({0}) is not supported'.format(
<|file_name|>TCP_SocketNoDelay.cpp<|end_file_name|><|fim▁begin|>//---------------------------------------------------------------------------- // XC program; finite element analysis code // for structural analysis and design. // // Copyright (C) Luis Claudio Pérez Tato // // This program derives from OpenSees <htt...
INET_getsockname(sockfd, &my_Addr, &addrLength);
<|file_name|>test_backoff.py<|end_file_name|><|fim▁begin|># # Copyright (C) 2014 Dell, 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...
dcm_events.poll(timeblock=remaining.total_seconds())
<|file_name|>WebRtcProducer.ts<|end_file_name|><|fim▁begin|>///<reference path="../../../lib/RTCPeerConnection.d.ts"/> ///<reference path="WebRtcCommons.ts"/> "use strict"; class WebRtcProducer { private _id : string; private _debugMode : boolean = false; private _successCalled : boolean = false; private conn...
private dbgId(): string{ return '[' +(this._id != '' ? this._id +' ' : '') +'producer]';
<|file_name|>_references.js<|end_file_name|><|fim▁begin|>/// <reference path="jquery-ui-1.10.3.js" /> /// <reference path="jquery-2.0.3.js" /> /// <reference path="jquery.validate.js" /> /// <reference path="jquery.validate.unobtrusive.js" /> <|fim▁hole|>/// <reference path="bootstrap.js"/><|fim▁end|>
/// <reference path="knockout-2.1.0.debug.js" /> /// <reference path="modernizr-2.5.3.js" />
<|file_name|>myconfig.py<|end_file_name|><|fim▁begin|>#coding:utf-8 import os import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(filename)s:%(lineno)s - %(funcName)20s() - %(name)s - %(levelname)s - %(message)s') logging.warning('load module:%s', __name__) user_path = os.path.expanduser("~/...
<|file_name|>webgl_conformance_test.py<|end_file_name|><|fim▁begin|># Copyright (c) 2012 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 os import sys import json from telemetry.page import page_set from telemetry.p...
'user_agent_type': 'desktop',
<|file_name|>GiftEntry.java<|end_file_name|><|fim▁begin|>/** * The GiftEntry class describes a gift in terms of three values: * the gift name, the gift receipient, and whether the gift * has been bought yet. * * @author Richard White * @version 2013-12-05 */ public class GiftEntry { /** * Constructo...
/** * setRecipient establishes the recipient of a gift
<|file_name|>db.cpp<|end_file_name|><|fim▁begin|>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2014-2019 The DigiByte Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/lic...
<|file_name|>test_context.py<|end_file_name|><|fim▁begin|>import pytest import time from v8py import JavaScriptTerminated, current_context, new def test_glob(context): context.eval('foo = "bar"') assert context.glob.foo == 'bar' def test_getattr(context): context.foo = 'bar' assert context.foo == 'ba...
if (prop == "testB") while(true); return false; }, deleteProperty(target, phrase) {
<|file_name|>sass.js<|end_file_name|><|fim▁begin|>'use strict'; // Gulp & plugins<|fim▁hole|> // BrowerSync var browserSync = require('browser-sync'); // Utilities var handleErrors = require('../util/handleErrors'); // Configs var config = require('../config').sass; gulp.task('sass', function () { return gulp.s...
var gulp = require('gulp'); var autoprefixer = require('gulp-autoprefixer'); var sass = require('gulp-sass');
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
def ready(self): super(PeopleAppConfig, self).ready()
<|file_name|>test_middleware.py<|end_file_name|><|fim▁begin|>import warnings<|fim▁hole|>from honeybadger.middleware import DjangoHoneybadgerMiddleware __all__ = ['MiddlewareTestCase'] class MiddlewareTestCase(DjangoMiddlewareTestCase): def test_middleware_import_warning(self): default_plugin_manager._reg...
from collections import OrderedDict from honeybadger.plugins import default_plugin_manager from .contrib.test_django import DjangoMiddlewareTestCase
<|file_name|>time.rs<|end_file_name|><|fim▁begin|>// Copyright 2018 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/L...
Duration::new(2000, 4000)); } #[test]
<|file_name|>array.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>//! Facilities for working with `v8::Array`s. /// Mutates the `out` argument provided to refer to a newly created `v8::Array`. pub use neon_sys::Neon_Array_New as new; /// Gets the length of an `v8::Array`. pub use neon_sys::Neon_Array_Length as len;<|fim...
<|file_name|>home.component.ts<|end_file_name|><|fim▁begin|>import * as _ from 'lodash'; import { Component } from '@angular/core'; import {HeroesService} from "../../services/heroes-service"; @Component({ selector: 'home', templateUrl: './home.component.html' })<|fim▁hole|> constructor(private heroesService: Her...
export class HomeComponent { public heroes = [];
<|file_name|>flaskr.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Flaskr ~~~~~~ A microblog example application written as Flask tutorial with Flask and sqlite3. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from sqlite3 import dbapi2 a...
@app.route('/') def show_entries(): """show_entries:显示所有的db条目"""
<|file_name|>Actioner.java<|end_file_name|><|fim▁begin|>package eu.ehri.project.models.base; import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.frames.modules.javahandler.JavaHandler; import com.tinkerpop.frames.modules.javahandler.JavaHandlerContext; import eu.ehri.project.definitions.Ontology;<|fim▁hole|> ...
import eu.ehri.project.models.events.SystemEvent; import eu.ehri.project.models.utils.JavaHandlerUtils; public interface Actioner extends NamedEntity {
<|file_name|>files.contribution.ts<|end_file_name|><|fim▁begin|>/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. ...
'description': nls.localize('insertFinalNewline', "When enabled, insert a final new line at the end of the file when saving it.") }, 'files.autoSave': {
<|file_name|>webpack.prod.js<|end_file_name|><|fim▁begin|>/** * @author: @AngularClass */ const helpers = require('./helpers'); const webpackMerge = require('webpack-merge'); // used to merge webpack configs const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev ...
{ test: /\.scss$/, loader: ExtractTextPlugin.extract({ fallback: 'style-loader',
<|file_name|>content-view-versions.controller.test.js<|end_file_name|><|fim▁begin|>/** * Copyright 2014 Red Hat, Inc. * * This software is licensed to you under the GNU General Public * License as published by the Free Software Foundation; either version * 2 of the License (GPLv2) or (at your option) any later ver...
});
<|file_name|>FFTSceneManager.py<|end_file_name|><|fim▁begin|>import numpy as np from PyQt5.QtGui import QPainterPath, QPen from PyQt5.QtWidgets import QGraphicsPathItem from urh import settings from urh.cythonext import path_creator<|fim▁hole|>from urh.ui.painting.SceneManager import SceneManager class FFTSceneManag...
from urh.ui.painting.GridScene import GridScene
<|file_name|>index.js<|end_file_name|><|fim▁begin|>/** * The Furnace namespace * * @module furnace * @class Furnace * @static */ import Validation from 'furnace/packages/furnace-validation';<|fim▁hole|>import I18n from 'furnace/packages/furnace-i18n'; import Forms from 'furnace/packages/furnace-forms'; export d...
<|file_name|>comfixed.py<|end_file_name|><|fim▁begin|>from __future__ import print_function, absolute_import from .script_interface import ScriptInterfaceHelper, script_interface_register @script_interface_register class ComFixed(ScriptInterfaceHelper):<|fim▁hole|> the particles after each force calculation. This ...
"""Fix the center of mass of specific types. Subtracts mass-weighted fraction of the total force action on all particles of the type from
<|file_name|>EarlyStoppingLSTM.py<|end_file_name|><|fim▁begin|>from semeval import helper as helper from semeval.lstms.LSTMModel import LSTMModel import numpy from keras.models import Sequential from keras.layers import Dense, Activation, Bidirectional, LSTM, Dropout from keras.callbacks import EarlyStopping class E...
model.add(Bidirectional(LSTM(max_length, activation='softsign', return_sequences=True))) model.add(Dropout(0.5))
<|file_name|>endpoint.ts<|end_file_name|><|fim▁begin|>import * as _ from 'lodash'; import * as rTracer from 'cls-rtracer'; import { Logger } from 'winston'; import { createServiceConfig } from '@restorecommerce/service-config'; const middlewareClsTracer = rTracer.koaMiddleware({ useHeader: true, headerName: 'x-req...
if (typeToFieldsMap.has(itemKey)) { let oneOfUsed = item[itemKey]; let fieldsArr = typeToFieldsMap.get(itemKey); for (let field of fieldsArr) {
<|file_name|>densenet.py<|end_file_name|><|fim▁begin|>"""Pytorch Densenet implementation w/ tweaks This file is a copy of https://github.com/pytorch/vision 'densenet.py' (BSD-3-Clause) with fixed kwargs passthrough and addition of dynamic global avg/max pool. """ import re from collections import OrderedDict from funct...
from .registry import register_model
<|file_name|>Factory.hpp<|end_file_name|><|fim▁begin|>/* ************************************************************************ */ /* Georgiev Lab (c) 2015 */ /* ************************************************************************ */ /* Department of Cybernetics ...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from __future__ import absolute_import <|fim▁hole|>from .pod_response import PodResponse...
from .build_response import BuildResponse # noqa
<|file_name|>chevron-left.d.ts<|end_file_name|><|fim▁begin|>import * as React from 'react';<|fim▁hole|><|fim▁end|>
import { IconBaseProps } from 'react-icon-base'; export default class IoChevronLeft extends React.Component<IconBaseProps, any> { }
<|file_name|>StarContentActivity.java<|end_file_name|><|fim▁begin|>package cn.edu.ustc.appseed.clubseed.activity; /* * Show the detail content of the event which you select. * Why to use a custom toolbar instead of the default toolbar in ActionBarActivity? * Because the custom toolbar is very convenient to edit it and...
mTextView = (TextView) findViewById(R.id.textViewEventContent); mImageView = (ImageView) findViewById(R.id.imgContent); if (toolbar != null) {
<|file_name|>config.go<|end_file_name|><|fim▁begin|>/* Copyright 2014 The Kubernetes 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 ...
if !cache.WaitForNamedCacheSync("endpoint slice config", stopCh, c.listerSynced) {
<|file_name|>Get_string_no_quote.java<|end_file_name|><|fim▁begin|>/* * Copyright 2014 Waratek 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/l...
import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet;
<|file_name|>example.js<|end_file_name|><|fim▁begin|>'use strict'; /**<|fim▁hole|> * Module dependencies. */ var mongoose = require('mongoose'), Example = mongoose.model('Example'), _ = require('lodash'), upload = require('./upload'); /** * Find example by id */ exports.example = function(req, res, ne...
<|file_name|>views.py<|end_file_name|><|fim▁begin|>from django.views.generic.base import TemplateView from sarGraphs.lib.sar import get_cpu, get_load from sarGraphs.lib.sar import get_swap, get_memory class HomeView(TemplateView):<|fim▁hole|> def get_context_data(self, **kwargs): context = {} contex...
'Home Page View' template_name = "home.html"
<|file_name|>functools_lru_cache.py<|end_file_name|><|fim▁begin|># backports.functools_lru_cache v1.5 # https://github.com/jaraco/backports.functools_lru_cache # Copyright (c) 2014-2018 Jason R. Coombs # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated do...
key = make_key(args, kwds, typed) result = cache_get(key, root) # root used here as a unique not-found sentinel
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>use std::collections::HashMap; fn main() { let mut scores = HashMap::new(); scores.insert(String::from("Blue"), 10); scores.insert(String::from("Yellow"), 50); let teams = vec![String::from("Blue"), String::from("Yellow")]; let initial_scores = vec...
// Hash map becomes the owner of values used during inserting
<|file_name|>pthread.rs<|end_file_name|><|fim▁begin|>use libc::{self, pthread_t}; pub type Pthread = pthread_t; /// Obtain ID of the calling thread (see /// [pthread_self(3)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_self.html) /// /// The thread ID returned by pthread_self() is not the same t...
<|file_name|>module.ts<|end_file_name|><|fim▁begin|>import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {MdcListDivider} from './list-divider'; import { MdcList, MdcListGroup, MdcListGroupSubheader } from './list'; import { MdcListItem, MdcListItemGraphic, MdcListIt...
const LIST_DECLARATIONS = [ MdcList, MdcListDivider,
<|file_name|>l3agentscheduler.py<|end_file_name|><|fim▁begin|># Copyright (c) 2013 OpenStack Foundation. # 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 # # ...
@classmethod
<|file_name|>forms.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import import os.path import requests import wtforms from wtforms import validators from ..forms import TextDatasetForm from origae import utils from origae.utils.forms import validate_required_iff, validate_greater_than class TextC...
validators.Optional(),
<|file_name|>setup.py<|end_file_name|><|fim▁begin|><|fim▁hole|> setup( name = "FreeCite", version = "0.1", py_modules = ['freecite'], #install requirements install_requires = [ 'requests==1.1.0' ], #author details author = "James Ravenscroft", author_email = ...
from setuptools import setup, find_packages
<|file_name|>EventHandler.cpp<|end_file_name|><|fim▁begin|>// License: The Unlicense (https://unlicense.org) #include "EventHandler.hpp"<|fim▁hole|> int EventFilter(void *userData, SDL_Event *event); void SetUpEvents(void) { SDL_EventState(SDL_APP_TERMINATING, SDL_IGNORE); SDL_EventState(SDL_APP_LOWMEMORY, SDL_I...
#include <SDL2/SDL.h>
<|file_name|>nicEdit.js<|end_file_name|><|fim▁begin|>/* NicEdit - Micro Inline WYSIWYG * Copyright 2007-2008 Brian Kirchoff * * NicEdit is distributed under the terms of the MIT license * For more information visit http://nicedit.com/ * Do not remove this copyright message */ var bkExtend = function(){ var args...
removeClass : function(cls) { if (this.hasClass(cls)) {
<|file_name|>dashboard.js<|end_file_name|><|fim▁begin|>module.exports = {}; var app_data = {}; function initCharts() { $(document).ready(function() { $.get(app_data.config.analytics_data_route, function(analytics_data) { data = analytics_data.data; max_val = analytics_data.highest_value; va...
.data(analytics) .enter().append('g') .attr('class', 'analytics_line');
<|file_name|>Exec.java<|end_file_name|><|fim▁begin|>/* * Copyright 2010 The Apache Software Foundation * * 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 ownersh...
} }
<|file_name|>kirki.input.js<|end_file_name|><|fim▁begin|>/* global kirkiL10n */ var kirki = kirki || {}; kirki = jQuery.extend( kirki, { /** * An object containing definitions for input fields. * * @since 3.0.16 */ input: { /** * Radio input fields. * * @since 3.0.17 */ radio: { /** ...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>//################################################################################################## //! A collection of tools to emulate dice and dice rolls. //################################################################################################## //#######...
//==============================================================================================
<|file_name|>dump_patient_test.js<|end_file_name|><|fim▁begin|>"use strict"; var chakram = require("chakram"), util = require("util"), curry = require("curry"), Q = require("q"), auth = require("../common/auth.js"), common = require("./c...
before(function () { return dumpPatient(patient).then(function (r) {
<|file_name|>func_tokenize_error.py<|end_file_name|><|fim▁begin|>"""A module that is accepted by Python but rejected by tokenize. The problem is the trailing line continuation at the end of the line, which produces a TokenError."""<|fim▁hole|><|fim▁end|>
""\
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Camino top level namespace """ from .connectivity import Conmat from .convert import (Image2Voxel, FSL2Scheme, VtkStreamlines, ProcStreamlines, ...
ComputeTensorTrace, ComputeEigensystem, DTMetric) from .calib import (SFPICOCalibData, SFLUTGen) from .odf import (QBallMX, LinRecon, SFPeaks, MESD) from .utils import ImageStats
<|file_name|>pt-br.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license<|fim▁hole|> error: 'Não foi possível limpar os dados colados devido a um erro interno', title: 'Colar do Word', toolbar: 'Cola...
*/ CKEDITOR.plugins.setLang( 'pastefromword', 'pt-br', { confirmCleanup: 'O texto que você deseja colar parece ter sido copiado do Word. Você gostaria de remover a formatação antes de colar?',
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>""" keybump ~~~~~~~ manage your versioning like a boss . <|fim▁hole|>""" from __future__ import unicode_literals __version__ = '3.0.1'<|fim▁end|>
:copyright: (c) 2015 by gregorynicholas. :license: MIT, see LICENSE for more details.
<|file_name|>dataset.py<|end_file_name|><|fim▁begin|>from collections import OrderedDict class DataSet(object): __slots__ = ( 'events', # List of all events in this data set 'group', # Iterable containing groups of events<|fim▁hole|> if group_function is None: self.group = se...
) def __init__(self, query, group_function): self.events = query.all()
<|file_name|>main.js<|end_file_name|><|fim▁begin|>var app = require('app'); // Module to control application life. var BrowserWindow = require('browser-window'); // Module to create native browser window. // Report crashes to our server. require('crash-reporter').start(); // Keep a global reference of the window ob...
<|file_name|>idt.rs<|end_file_name|><|fim▁begin|>use arch::segmentation::{self, SegmentSelector}; use super::bit_field::BitField; use super::{HandlerFunc, InterruptVector}; /// Interrupt descriptor table. pub struct Idt([Entry; 256]); /// An entry of the interrupt descriptor table. #[derive(Debug, Clone, Copy)] #[rep...
.disable_interrupts(true) .set_stack_index(0x1) }
<|file_name|>App.js<|end_file_name|><|fim▁begin|>import React, { Component } from 'react' import { Layout, Wrapper, Spacer } from './components/Styles' /*eslint-disable*/ import IconTest from './IconTest' import { ButtonTest, ButtonTest2 } from './ButtonTest' /*eslint-enable*/ <|fim▁hole|> <Wrapper> ...
class App extends Component { render() { return ( <div>
<|file_name|>binaries.js<|end_file_name|><|fim▁begin|>const gulp = require('gulp'); const util = require('gulp-util'); const zip = require('gulp-zip'); const release = require('gulp-github-release'); const folders = require('gulp-folders'); const nwBuilder = require('gulp-nw-builder'); const fs = require('fs'); const ...
gulp.task('upload:binaries', ['package:binaries'], () => {
<|file_name|>0002_initial-domain.py<|end_file_name|><|fim▁begin|># Generated by Django 1.11.11 on 2018-08-27 21:51 from django.db import migrations<|fim▁hole|> def update_domain_forward(apps, schema_editor): """Set site domain and name.""" Domain = apps.get_model("domains", "Domain") Domain.objects.update_...
<|file_name|>EstadoBean.java<|end_file_name|><|fim▁begin|>/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package beans; import dao.EstadoJpaController; import dao.exceptions.NonexistentEntityException; import java.util.List; import java.util.logging.Level; import ja...
<|file_name|>index.js<|end_file_name|><|fim▁begin|>module.exports = ({ config }, options = {}) => config.module<|fim▁hole|> .when(options.style, use => use.options(options.style)) .end() .use('css') .loader(require.resolve('css-loader')) .when(options.css, use => use.options(options...
.rule('style') .test(/\.css$/) .use('style') .loader(require.resolve('style-loader'))
<|file_name|>gen_build_yaml.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # Copyright 2015 gRPC 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...
<|file_name|>macro.py<|end_file_name|><|fim▁begin|># peppy Copyright (c) 2006-2010 Rob McMullen # Licenced under the GPLv2; see http://peppy.flipturn.org for more info """Simple macros created by recording actions This plugin provides macro recording """ import os import wx from wx.lib.pubsub import Publisher from ...
self.update() def update(self, evt=None):
<|file_name|>xlsx-util.ts<|end_file_name|><|fim▁begin|>import Fs from 'fs' import Path from 'path' import XmlParser from 'xml2js' const Zip = require('node-zip') /** * This represents an entry in the zip file. If the entry comes from an existing archive previously loaded, the content will be automatically decompresse...
<|file_name|>main.cpp<|end_file_name|><|fim▁begin|>#include <CtrlLib/CtrlLib.h> using namespace Upp; GUI_APP_MAIN { ConvertOpeningHours cv; <|fim▁hole|> EditField ef; ef.SetConvert(cv); TopWindow win; win.Add(ef.TopPos(0, Ctrl::STDSIZE).HSizePos()); win.Run(); }<|fim▁end|>
DDUMP(cv.Format(cv.Scan("11:00-22:00 12:00-18:00 23:00-23:30")));
<|file_name|>JsonSerializableSchema.java<|end_file_name|><|fim▁begin|>package com.google.ratel.deps.jackson.databind.jsonschema; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Retention; import java.lang.annotation.ElementType; import java.lang.annotation.Target; import com.google.ratel.deps...
* needed because annotations can not have null as default * value.
<|file_name|>webpack.config.dist.js<|end_file_name|><|fim▁begin|>var webpack = require('webpack'); var path = require('path'); var mainPath = path.resolve(__dirname,'..','..','src','index.jsx'); var srcPath = path.resolve(__dirname,'..','..', 'src'); var config = require("./webpack.config.js"); var packageJson = requir...
<|file_name|>clone.rs<|end_file_name|><|fim▁begin|>#![feature(core)] extern crate core; #[cfg(test)] mod tests { use core::result::Iter; // #[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)] // #[must_use] // #[stable(feature = "rust1", since = "1.0.0")] // pub enum Result<T, E> {...
} #[test] fn clone_test2() {
<|file_name|>coverage.rs<|end_file_name|><|fim▁begin|>use truetype::{GlyphID, Result, Tape, Value}; /// A coverage table. #[derive(Clone, Debug)] pub enum Coverage { /// Format 1. Format1(Coverage1), /// Format 2. Format2(Coverage2), } table! { #[doc = "A coverage table in format 1."] pub Cove...
start (GlyphID), // Start
<|file_name|>alnInfoHolder.hpp<|end_file_name|><|fim▁begin|>#pragma once // // njhseq - A library for analyzing sequence data // Copyright (C) 2012-2018 Nicholas Hathaway <nicholas.hathaway@umassmed.edu>, // // This file is part of njhseq. // // njhseq is free software: you can redistribute it and/or modify // it under...
alnInfoMasterHolder(); alnInfoMasterHolder(const gapScoringParameters & gapPars, const substituteMatrix & scoringArray); alnInfoMasterHolder(const std::string &masterDirName, const gapScoringParameters & gapPars,
<|file_name|>InventaryType.java<|end_file_name|><|fim▁begin|>/** * TNTConcept Easy Enterprise Management by Autentia Real Bussiness Solution S.L. * Copyright (C) 2007 Autentia Real Bussiness Solution S.L. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Gener...
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
<|file_name|>87. Prime power triples.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Fri Aug 29 15:52:33 2014 @author: raffaelerainone """ from time import clock from math import sqrt def is_prime(n): check=True i=2 while check and i<=sqrt(n): if n%i==0: check=Fal...
x=(i**2)+(j**3)+(k**4) if x<lim:
<|file_name|>test_dirname.rs<|end_file_name|><|fim▁begin|>use common::util::*; #[test] fn test_path_with_trailing_slashes() { new_ucmd!().arg("/root/alpha/beta/gamma/delta/epsilon/omega//") .run().stdout_is("/root/alpha/beta/gamma/delta/epsilon"); } #[test] fn test_path_without_trailing_slashes() { n...
<|file_name|>E0008.rs<|end_file_name|><|fim▁begin|>// Copyright 2016 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT.<|fim▁hole|>// // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.or...
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>// Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LI...
<|file_name|>NhinDocQueryWebServiceProxyTest.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2009-2015, United States Government, as represented by the Secretary of Health and Human Services. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are perm...
* gov.hhs.fha.nhinc.common.nhinccommon.NhinTargetSystemType) */ @Override public CONNECTClient<RespondingGatewayQueryPortType> getCONNECTClientSecured(
<|file_name|>advanced_activations.py<|end_file_name|><|fim▁begin|># Copyright 2015 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://...
<|file_name|>transaction.rs<|end_file_name|><|fim▁begin|>// CITA // Copyright 2016-2017 Cryptape Technologies LLC. // This program is free software: you can redistribute it // and/or modify it under the terms of the GNU General Public // License as published by the Free Software Foundation, // either version 3 of the ...
Full(FullTransaction), Hash(TransactionHash), }
<|file_name|>ProofTree.js<|end_file_name|><|fim▁begin|>// Structure to represent a proof class ProofTree { constructor({equation, rule, newScope=false }) { this.equation = equation; this.rule = rule; this.newScope = newScope; this.parent = null; this.children = []; this.isSound = !newScope; ...
// var line2Obj = context.line(line2); // return this.inScope(line1Obj.lineNumber, line2Obj.parent.lineNumber, context); // }