prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>model_list_view.go<|end_file_name|><|fim▁begin|>/* * Swaggy Jenkins * * Jenkins API clients generated from Swagger / Open API specification *<|fim▁hole|> * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi // ListView struct for ListView type ListView struct { Class...
* API version: 1.1.2-pre.0 * Contact: blah@cliffano.com
<|file_name|>qbittorrent_fr.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="fr"> <context> <name>AboutDlg</name> <message> <location filename="../gui/about.ui" line="21"/> <source>About qBittorrent</source> <translation>À p...
<|file_name|>test_utils_io_list.py<|end_file_name|><|fim▁begin|>import sys, os sys.path.append(os.path.abspath("../utils/")) from utils_io_list import * from test_utils_io_folder import * def test_generate_pairs_for_each_folder(): images_folder_path= "folder/path/example" num_of_frames = 2 pairs = generat...
main()
<|file_name|>TopologyGuiceModule.java<|end_file_name|><|fim▁begin|>/* * ToroDB * Copyright © 2014 8Kdata Technology (www.8kdata.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation...
<|file_name|>transaction.go<|end_file_name|><|fim▁begin|>package transaction import ( . "DNA/common" "DNA/common/serialization" "DNA/core/contract" "DNA/core/contract/program" sig "DNA/core/signature" "DNA/core/transaction/payload" . "DNA/errors" "crypto/sha256" "errors" "fmt" "io" "sort" ) //for differen...
issuer := tx.Payload.(*payload.DataFile).Issuer signatureRedeemScript, err := contract.CreateSignatureRedeemScript(issuer)
<|file_name|>main.js<|end_file_name|><|fim▁begin|>$(function() { $("#content").focus(function() { $(this).animate({"height": "85px",}, "fast" ); $("#button_block").slideDown("fast"); return false; }); $("#cancel").click(function() { $("#content").animate({"height": "30px",}, "fast" ); $("#button_block").slideUp("fast...
} }); console.log(text);
<|file_name|>validate.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # ***** BEGIN GPL LICENSE BLOCK ***** # # -------------------------------------------------------------------------- # Blender 2.5 Extensions Framework # -------------------------------------------------------------------------- # # Authors...
TESTA = { 'a': 0, 'c': Logic_OR([ 'foo', 'bar' ]), 'd': Logic_AND([True, True]),
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
pub mod thing_type;
<|file_name|>Change.java<|end_file_name|><|fim▁begin|>package com.nexusplay.containers; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.math.BigInteger; import java.sql.SQLException; import org.apache.c...
<|file_name|>client.rs<|end_file_name|><|fim▁begin|>#![deny(warnings)] #![allow(non_snake_case)] #[allow(unused_imports)] use std::vec::Vec; use object; use rest::url; use super::connector::Connector; pub struct GoodDataClient { pub connector: Connector, pub token: Option<String>, pub environment: Optio...
}
<|file_name|>vwl.js<|end_file_name|><|fim▁begin|>(function(global) { var vwl = {}; var receivePoster; var receiveEntry; var receiveLoadedList; // vwl.init - advertise VWL info and register for VWL messages // // Parameters: // left - (optional) url of this world's initial left entry image // right - (optional) u...
}, false); window.postMessage({info:{entry_image:{
<|file_name|>forknotify.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the -alertnotify option.""" import os impo...
timeout = 10.0 while timeout > 0: if os.path.exists(self.alert_filename) and os.path.getsize(self.alert_filename):
<|file_name|>HBaseTableInputFormat.java<|end_file_name|><|fim▁begin|>/* 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 ...
public HBaseTableIFBuilder withLimit(long limit) { limit_ = limit; return this; } public HBaseTableIFBuilder withConf(Configuration conf) { conf_ = conf; return this; }
<|file_name|>LoadTestRESTR.py<|end_file_name|><|fim▁begin|>#! /usr/bin/env python # # IM - Infrastructure Manager # Copyright (C) 2011 - GRyCAP - Universitat Politecnica de Valencia # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
inf_id = 0 response_times = [] @classmethod
<|file_name|>oauth_test.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2014 Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except...
providerInfo['accounts'][accountType]['user']['lastName']) # Try callback for the 'existing' account, which should succeed doOauthLogin('existing')
<|file_name|>chibios.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # encoding: utf-8 """ Waf tool for ChibiOS build """ from waflib import Errors, Logs, Task, Utils from waflib.TaskGen import after_method, before_method, feature import os import shutil import sys import re import pickle _dynamic_env_data = ...
<|file_name|>VirtualAudioNodeBase.ts<|end_file_name|><|fim▁begin|>import { CustomVirtualAudioNodeFactory, VirtualAudioNode } from "../types"; export default abstract class VirtualAudioNodeBase { public readonly node!: string | CustomVirtualAudioNodeFactory;<|fim▁hole|> public cannotUpdateInPlace(newVirtualAudioNode...
<|file_name|>table.js<|end_file_name|><|fim▁begin|>goog.provide('recoil.structs.table.ColumnKey'); goog.provide('recoil.structs.table.MutableTable'); goog.provide('recoil.structs.table.MutableTableRow'); goog.provide('recoil.structs.table.Table'); goog.provide('recoil.structs.table.TableCell'); goog.provide('recoil.str...
};
<|file_name|>get.go<|end_file_name|><|fim▁begin|>// download the contents of a url package main import ( "fmt" "io/ioutil" "log" "net/http" ) func main() { res, err := http.Get("http://www.google.com/robots.txt") if err != nil { log.Fatal(err)<|fim▁hole|> } robots, err := ioutil.ReadAll(res.Body) res.Body....
<|file_name|>options.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...
fs.DurationVar(&s.NamespaceSyncPeriod.Duration, "namespace-sync-period", s.NamespaceSyncPeriod.Duration, "The period for syncing namespace life-cycle updates") fs.DurationVar(&s.PVClaimBinderSyncPeriod.Duration, "pvclaimbinder-sync-period", s.PVClaimBinderSyncPeriod.Duration, "The period for syncing persistent volume...
<|file_name|>append.js<|end_file_name|><|fim▁begin|>// A DOM operation helper. Append an Element to a parent export default function append(parent, ...children) { // Always select the first item of a list, similarly to jQuery if (Array.isArray(parent)) { parent = parent[0] }<|fim▁hole|> children.forEach(pare...
<|file_name|>NicknameActions.ts<|end_file_name|><|fim▁begin|>import { NICKNAME_SET } from '../constants' export interface NicknameSetPayload { nickname: string userId: string } export interface NicknameSetAction { type: 'NICKNAME_SET'<|fim▁hole|> export function setNickname(payload: NicknameSetPayload): Nicknam...
payload: NicknameSetPayload }
<|file_name|>comments.js<|end_file_name|><|fim▁begin|>import {COMMENT_REPLY} from './../bundles/comment/actions' import { COMMENTS_RECEIVE } from './../bundles/thread/actions' function comments(state = {}, action) { switch (action.type) { case COMMENTS_RECEIVE: return { ...state, ...action....
// case COMMENT_REPLY: // return { // ...state,
<|file_name|>default.py<|end_file_name|><|fim▁begin|>""" URLResolver Addon for Kodi Copyright (C) 2016 t0mm0, tknorris 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 versi...
sys.exit(main())
<|file_name|>token.go<|end_file_name|><|fim▁begin|>package token import( "fmt" ) type Token struct { Type Lit []byte Pos } <|fim▁hole|> INVALID Type = iota EOF ) type Pos struct { Offset int Line int Column int } func (this Pos) String() string { return fmt.Sprintf("Pos(offset=%d, line=%d, column=%d)", thi...
type Type int const(
<|file_name|>ir_actions.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, models <|fim▁hole|> @api.multi def read(self, fields=None, context=None, load='_classic_read'): actions = super(IRActionsWindow, sel...
class IRActionsWindow(models.Model): _inherit = 'ir.actions.act_window'
<|file_name|>allskymap.py<|end_file_name|><|fim▁begin|>from __future__ import unicode_literals """ AllSkyMap is a subclass of Basemap, specialized for handling common plotting tasks for celestial data. It is essentially equivalent to using Basemap with full-sphere projections (e.g., 'hammer' or 'moll') and the `celest...
<|file_name|>shootout-k-nucleotide-pipes.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...
<|file_name|>views.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Copyright © 2012 - 2013 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <http://weblate.org/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
check = CHECKS[name] except KeyError:
<|file_name|>test_models.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Copyright © 2012 - 2016 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.org/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Lic...
user = self.create_user() self.assertEqual(user.groups.count(), 0)
<|file_name|>network_api_demo.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license...
def runNetwork(network, writer):
<|file_name|>filecheckpoints.py<|end_file_name|><|fim▁begin|>""" File-based Checkpoints implementations. """ import os import shutil from tornado.web import HTTPError from .checkpoints import ( Checkpoints, GenericCheckpointsMixin, ) from .fileio import FileManagerMixin from IPython.utils import tz from IPyt...
u'Checkpoint does not exist: %s@%s' % (path, checkpoint_id) )
<|file_name|>identity.py<|end_file_name|><|fim▁begin|>"""Identity related views.""" from reversion import revisions as reversion from django.contrib.auth import mixins as auth_mixins from django.contrib.auth.decorators import ( login_required, permission_required, user_passes_test ) from django.shortcuts import r...
from ..forms import AccountForm, AccountWizard from ..lib import get_identities from ..models import Domain, Mailbox
<|file_name|>data_message.rs<|end_file_name|><|fim▁begin|>use super::record_content::RecordData; use super::record_header::RecordHeader; use super::record_datum::RecordDatum; #[derive(Debug)] pub struct DataMessage { header: RecordHeader, data: Vec<RecordDatum> } impl DataMessage { pub fn new(raw_header: ...
return self.header.clone(); } }
<|file_name|>my_etree.py<|end_file_name|><|fim▁begin|><|fim▁hole|>""" __all__ = ('etree', ) try: from lxml import etree except ImportError: try: import xml.etree.cElementTree as etree except (ImportError, SystemError): import xml.etree.ElementTree as etree<|fim▁end|>
""" Module with universal etree module
<|file_name|>mvn_from_bijector_test.py<|end_file_name|><|fim▁begin|># Copyright 2021 DeepMind Technologies Limited. 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 # # ...
loc=loc2, scale=DiagAffine(diag=scale_diag2, bias=jnp.zeros((4,))), batch_shape=(),
<|file_name|>icheck.js<|end_file_name|><|fim▁begin|>/*! * iCheck v1.0.1, http://git.io/arlzeA * =================================== * Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization * * (c) 2013 Damir Sultanov, http://fronteed.com * MIT Licensed */ (function($) { // Cached vars var...
// Remove everything except input
<|file_name|>PrintStatus.py<|end_file_name|><|fim▁begin|># encoding: utf-8<|fim▁hole|># module gtk._gtk # from /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/_gtk.so # by generator 1.135 # no doc # imports import atk as __atk import gio as __gio import gobject as __gobject import gobject._gobject as __gobject__gobject ...
<|file_name|>detector.go<|end_file_name|><|fim▁begin|>package light import ( "bytes" "context" "errors" "fmt" "time" "github.com/tendermint/tendermint/light/provider" "github.com/tendermint/tendermint/types" ) // The detector component of the light client detects and handles attacks on the light client. // Mo...
// which captures the bifurcation point and if successful provides the information to create valid evidence. err := c.handleConflictingHeaders(ctx, primaryTrace, e.Block, e.WitnessIndex, now) if err != nil {
<|file_name|>053.py<|end_file_name|><|fim▁begin|># 053. Maximum Subarray # The simple O(n) solution. import unittest class Solution(object): def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ ret = nums[0] pre = nums[0] for i in nums[1:]:...
def setup(self): pass def tearDown(self): pass
<|file_name|>jack_utils.rs<|end_file_name|><|fim▁begin|>use jack_sys as j; use std::ffi; /// Collects strings from an array of c-strings into a Rust vector of strings /// and frees the memory pointed to by `ptr`. The end of the array is marked by /// the value of the c-string being the null pointer. `ptr` may be `null...
}
<|file_name|>CellularAutomaton2d.cpp<|end_file_name|><|fim▁begin|>/* Copyright (C) 2015 Lukasz Hryniuk This file is part of toys. toys 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 Lice...
You should have received a copy of the GNU General Public License along with toys. If not, see <http://www.gnu.org/licenses/>. */
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>""" A sub-package for efficiently dealing with polynomials. Within the documentation for this sub-package, a "finite power series," i.e., a polynomial (also referred to simply as a "series") is represented by a 1-D numpy array of the polynomial's coefficients, orde...
``np.polynomial.polynomial.Polynomial`` or ``np.polynomial.chebyshev.Chebyshev``, respectively.
<|file_name|>views.py<|end_file_name|><|fim▁begin|>from django.http import HttpResponseRedirect, JsonResponse from django.views.generic import CreateView, UpdateView from django.contrib.messages.views import SuccessMessageMixin from .models import HistoriaClinica, Patologia from .forms import HistoriaClinicaForms fro...
if historia_clinica.exists(): return HttpResponseRedirect('/historia/clinica/modi/' + str(historia_clinica[0].id))
<|file_name|>0008_auto_20151023_1317.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('mainapp', '0007_auto_20151023_1012'),<|fim▁...
]
<|file_name|>midi.rs<|end_file_name|><|fim▁begin|>#![feature(unboxed_closures)] extern crate synthrs; use synthrs::synthesizer::{ make_samples_from_midi, quantize_samples }; use synthrs::writer::write_wav; fn main() { write_wav("out/octave.wav", 44100, quantize_samples::<i16>( make_samples_fr...
quantize_samples::<i16>(
<|file_name|>redux-saga-effects.dev.cjs.js<|end_file_name|><|fim▁begin|>'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var is = require('@redux-saga/is'); var __chunk_1 = require('./chunk-5caa0f1a.js'); var __chunk_2 = require('./chunk-062c0282.js'); require('@babel/runtime/helpers/exten...
<|file_name|>value.rs<|end_file_name|><|fim▁begin|>use std::fmt::{Formatter,Display,Error}; #[derive(Clone,Debug,PartialEq,Eq,Hash,RustcEncodable,RustcDecodable)] pub enum Endianess { Little, Big, } #[derive(Clone,Debug,PartialEq,Eq,Hash,RustcEncodable,RustcDecodable)] pub enum Rvalue { Constant(u64), ...
<|file_name|>main.go<|end_file_name|><|fim▁begin|>/* * Minio Client (C) 2014, 2015 Minio, 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/LI...
// findClosestCommands to match a given string with commands trie tree.
<|file_name|>places.component.ts<|end_file_name|><|fim▁begin|>import { Component, OnInit, AfterViewInit } from '@angular/core'; import { Store } from '@ngrx/store'; import { TdMediaService } from '@covalent/core'; import { go } from '@ngrx/router-store'; import * as fromRoot from '../state-management/reducers'; import...
ngAfterViewInit() { this.media.broadcast(); }
<|file_name|>send_photo_link_body.go<|end_file_name|><|fim▁begin|>// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command <|fim▁hole|> "github.com/go-openapi/errors" "github.com/g...
import ( strfmt "github.com/go-openapi/strfmt"
<|file_name|>ZaOverviewPanelController.js<|end_file_name|><|fim▁begin|>define(["require", "exports"], function (require, exports) {<|fim▁hole|><|fim▁end|>
"use strict"; exports.ZaOverviewPanelController = ZaOverviewPanelController; });
<|file_name|>aggregate-accessibility.ts<|end_file_name|><|fim▁begin|>// // disable a few ESLint rules that choke on pretty-printed arrays below /* eslint indent: 0, no-multi-spaces: 0 */ /** Test that the aggregate accessibility selector works correctly */ import {expect} from '@jest/globals' import range from 'lodas...
expect(aggregateAccessibility.weightedAverage).toEqual(2500)
<|file_name|>chat.js<|end_file_name|><|fim▁begin|>var API_PHP ="http://devtucompass.tk/pici/BackEnd/Clases/chatAdmin.php"; var API_REST = "http://devtucompass.tk/pici/API/"; $.support.cors = true; $.mobile.allowCrossDomainPages = true; function enviarInfo(){ $("#enviarInfo").click(function(){ $.ajax({ type: "...
console.log(textStatus);
<|file_name|>commons.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # MouseTrap # # Copyright 2009 Flavio Percoco Premoli<|fim▁hole|># # MouseTrap is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License v2 as published # by the Free Software Foundation. #...
# # This file is part of mouseTrap.
<|file_name|>bitcoin_zh_CN.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About CryptocauseCoi...
<|file_name|>p051.rs<|end_file_name|><|fim▁begin|>//! [Problem 51](https://projecteuler.net/problem=51) solver. #![warn( bad_style, unused, unused_extern_crates, unused_import_braces, unused_qualifications, unused_results )] use integer::Integer; use prime::PrimeSet; fn compute(num_value: usi...
<|file_name|>ReplicationNodeOptions.java<|end_file_name|><|fim▁begin|>/* * Copyright © 2009 HotPads (admin@hotpads.com) * * 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://w...
<|file_name|>test_loaders.py<|end_file_name|><|fim▁begin|># AMDG import unittest from datetime import datetime from balance import BasicLoader, RepayLoader from base_test import BaseTest class LoaderTests(BaseTest, unittest.TestCase): def test_basic_loader(self): loader = BasicLoader('tests/data/basic_loa...
<|file_name|>segment_to_polyline.rs<|end_file_name|><|fim▁begin|>use super::ToPolyline; use crate::procedural::Polyline; use crate::shape::Segment; use simba::scalar::RealField;<|fim▁hole|> fn to_polyline(&self, _: ()) -> Polyline<N> { Polyline::new(vec![self.a, self.b], None) } }<|fim▁end|>
impl<N: RealField> ToPolyline<N> for Segment<N> { type DiscretizationParameter = ();
<|file_name|>LogHelper.java<|end_file_name|><|fim▁begin|>package com.ash6390.jarcraft.utility; import com.ash6390.jarcraft.reference.References; import cpw.mods.fml.common.FMLLog; import org.apache.logging.log4j.Level; public class LogHelper { public static void log(Level logLevel, Object object) { FM...
<|file_name|>wsgi.py<|end_file_name|><|fim▁begin|>""" WSGI config for admin_readonly_model project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os <|fim▁hole|>from django....
<|file_name|>Half_Year_End_Analysis.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Thu Jan 03 10:16:39 2013 @author: Grahesh <|fim▁hole|>import pandas from qstkutil import DataAccess as da import numpy as np import math import copy import qstkutil.qsdateutil as du import datetime as ...
"""
<|file_name|>document_page_history_workflow.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). # # This p...
<|file_name|>apps.py<|end_file_name|><|fim▁begin|>try: from django.apps import AppConfig except ImportError: pass else: class GargoyleAppConfig(AppConfig): name = 'gargoyle' def ready(self): try: import nexus<|fim▁hole|> except ImportError: ...
<|file_name|>port1.js<|end_file_name|><|fim▁begin|>// port.js class SingleData { constructor (port, order, type, value) { this.port = port this.order = order this.type = type this.value = value } } export let inputVariables = [] export let countVariables = [] // Add a new port export function Add...
<|file_name|>DictItemDaoImpl.java<|end_file_name|><|fim▁begin|>package ltf.namerank.dao.fs; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import ltf.namerank.dao.DictItemDao; import ltf.namerank.entity.DictItem; import ltf.namerank.entity.DictItem_Bm8; import ltf.namerank.utils.PathUtils...
@Override public void saveDictItem(DictItem dictItem) { File f = new File(PathUtils.getJsonHome() + "/dict", dictItem.getZi());
<|file_name|>tfr.py<|end_file_name|><|fim▁begin|>"""A module which implements the time-frequency estimation. Morlet code inspired by Matlab code from Sheraz Khan & Brainstorm & SPM """ # Authors : Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Hari Bharadwaj <hari@nmr.mgh.harvard.edu> # ...
If None do not apply it. If baseline is (a, b)
<|file_name|>CamundaConnectorImpl.java<|end_file_name|><|fim▁begin|>/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda l...
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaConnector.class, CAMUNDA_ELEMENT_CONNECTOR) .namespaceUri(CAMUNDA_NS)
<|file_name|>rcvr-borrowed-to-slice.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.apa...
let x = vec!(1, 2, 3); let y = x.as_slice().sum_(); println!("y=={}", y);
<|file_name|>template_functions.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import json, traceback from PyQt4.Qt import QDialogButtonB...
show=False) box.bb.setStandardButtons(box.bb.standardButtons() | QDialogButtonBox.Cancel) box.det_msg_toggle.setVisible(False)
<|file_name|>pong.rs<|end_file_name|><|fim▁begin|>use piston::event::*; use piston::input::Button::Keyboard; use piston::input::keyboard::Key; use glutin_window::GlutinWindow as Window; use piston::window::WindowSettings; use opengl_graphics::{ GlGraphics, OpenGL }; use game_object::GameObject; static OPENGL_VERSION: ...
if let Some(r) = e.render_args() { pong.render(&r); } if let Some(u) = e.update_args() { pong.update(&u); } if let Some(Keyboard(key)) = e.press_args() { pong.key_press(key); }
<|file_name|>_models_py3.py<|end_file_name|><|fim▁begin|># 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...
Variables are only populated by the server, and will be ignored when sending a request.
<|file_name|>encode.rs<|end_file_name|><|fim▁begin|>use std::cmp; use std::io::{self, Write}; use http::io::AtomicWrite; /// Encoders to handle different Transfer-Encodings. #[derive(Debug, Clone)] pub struct Encoder { kind: Kind, } #[derive(Debug, PartialEq, Clone)] enum Kind { /// An Encoder for when Trans...
kind: Kind::Length(len),
<|file_name|>ActivityRotAnimation.java<|end_file_name|><|fim▁begin|>package com.landenlabs.all_flipanimation; /** * Copyright (c) 2015 Dennis Lang (LanDen Labs) landenlabs@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation file...
<|file_name|>base.py<|end_file_name|><|fim▁begin|>import os.path from django.core.urlresolvers import reverse from django.template import Context, Template from django.template.defaultfilters import slugify from django.test import TestCase from django.test.client import Client from radpress.compat import get_user_mode...
self.assertIn(MORE_TAG, self.content_body)
<|file_name|>inferno-router.js<|end_file_name|><|fim▁begin|>/*! * inferno-router v0.7.14 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && ...
break; } }
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from .responses import InstanceMetadataResponse url_bases = ["http://169.254.169.254"] instance_metadata = InstanceMetadataResponse() <|fim▁hole|><|fim▁end|>
url_paths = {"{0}/(?P<path>.+)": instance_metadata.metadata_response}
<|file_name|>customwidget.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ## Contact: http://www.qt-project.org/legal ## ## This file is part of the test suite of the Qt To...
qtPath.lineTo(35.0, 5.0) qtPath.lineTo(35.0, 40.0) qtPath.lineTo(15.0, 40.0) qtPath.lineTo(15.0, 5.0)
<|file_name|>main.js<|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. /** @constructor */ function TaskManager() { } cr.addSingletonGetter(TaskManager); TaskManager.pro...
if (!isColumnEnabled(columnId))
<|file_name|>bootstrap.js<|end_file_name|><|fim▁begin|>// "node scripts/create-package-app-test.js && node packages/app-test/synchronize.js && node packages/react-boilerplate-app-scripts/scripts/link-react-boilerplates.js && lerna bootstrap", 'use strict'; require('./create-package-app-test.js'); require('../packages/...
}
<|file_name|>test_cron.py<|end_file_name|><|fim▁begin|>from unittest import mock from olympia.amo.cron import gc from olympia.amo.tests import TestCase from olympia.files.models import FileUpload @mock.patch('olympia.amo.cron.storage') class TestGC(TestCase): def test_file_uploads_deletion(self, storage_mock): ...
<|file_name|>prev-games.tsx<|end_file_name|><|fim▁begin|>import * as React from 'react' import flowRight from 'lodash-es/flowRight' import {translate} from 'react-i18next' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import {RouteComponentProps, withRouter} from 'react-router' import {Co...
export class PrevGamesImpl extends React.Component { public props: stateType & dispatchType & RouteComponentProps<any> & ITranslateMixin public render() {
<|file_name|>string_mutation_test.go<|end_file_name|><|fim▁begin|>package mutation import ( "math/rand" "testing" "github.com/arl/evolve/generator" "github.com/stretchr/testify/require" ) func TestStringMutation(t *testing.T) { rng := rand.New(rand.NewSource(99)) alphabet := "abcd" sm := &String{ Alphabet...
}
<|file_name|>admin.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from copy import deepcopy from cms.admin.placeholderadmin import FrontendEditableAdminMixin, \ PlaceholderAdminMixin from django import forms from django.conf import settings from django.contrib import admin from django.contrib.auth import g...
from django.contrib.sites.models import Site from .models import BlogCategory, Post
<|file_name|>index.js<|end_file_name|><|fim▁begin|>(function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof module === 'object' && module.exports) { module.exports = factory(); } else { root.C = factory(); } }(this, func...
return res; } : undefined; }
<|file_name|>Nodes.py<|end_file_name|><|fim▁begin|># # Parse tree nodes # import cython cython.declare(sys=object, os=object, time=object, copy=object, Builtin=object, error=object, warning=object, Naming=object, PyrexTypes=object, py_object_type=object, ModuleScope=object, LocalScope=o...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from . import test_get_weight
<|file_name|>drf.py<|end_file_name|><|fim▁begin|><|fim▁hole|>from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class EnumField(serializers.ChoiceField): default_error_messages = {"invalid_choice": _('"{input}" is not a valid choice.')} def __init__(self, enum, **k...
import six
<|file_name|>pair_slices.rs<|end_file_name|><|fim▁begin|>use core::cmp::{self}; use core::mem::replace; use crate::alloc::Allocator; use super::VecDeque; /// PairSlices pairs up equal length slice parts of two deques /// /// For example, given deques "A" and "B" with the following division into slices: /// /// A: [0...
<|file_name|>tabs.spec.ts<|end_file_name|><|fim▁begin|>import { TestBed, ComponentFixture } from '@angular/core/testing'; import { Component } from '@angular/core'; import { createGenericTestComponent, selectElements, dispatchFixtureKeyEvent } from '../../../test/util'; import { NglTabsModule } from './module'; import ...
<|file_name|>QChartGallery.js<|end_file_name|><|fim▁begin|>// QChartGallery.js --- // // Author: Julien Wintz // Created: Thu Feb 13 23:43:13 2014 (+0100) // Version: // Last-Updated: // By: // Update #: 13 // // Change Log:<|fim▁hole|> // /////////////////////////////////////////////////////////////////...
// //
<|file_name|>index.ts<|end_file_name|><|fim▁begin|><|fim▁hole|>import { NavBar } from './NavBar'; export { Button, Cards, TextInput, NavBar };<|fim▁end|>
import { Button } from './Button'; import * as Cards from './Card'; import { TextInput } from './Input';
<|file_name|>hyperparams_builder.py<|end_file_name|><|fim▁begin|># Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://w...
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and
<|file_name|>index.ts<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
export { default } from "./Bounce";
<|file_name|>interval.js<|end_file_name|><|fim▁begin|>//{namespace name=backend/config/view/main} /** * Shopware 5 * Copyright (c) shopware AG * * According to our dual licensing model, this program can be used either * under the terms of the GNU Affero General Public License, version 3, * or under a proprietary...
[3600, '{s name=element/interval/1_hour}1 Hour (3600 Sec.){/s}'], [7200, '{s name=element/interval/2_hours}2 Hours (7200 Sec.){/s}'], [14400, '{s name=element/interval/4_hours}4 Hours (14400 Sec.){/s}'], [28800, '{s name=element/interval/8_hours}8 Hours (28800 Sec.){/s}'],
<|file_name|>productiontiles.component.ts<|end_file_name|><|fim▁begin|>import {Component, ElementRef} from '@angular/core'; import { ProductionTileService } from '../../shared/services/productiontile.service'; import { Router } from '@angular/router'; import {Observable} from 'rxjs/Rx'; //import 'style-loader!./tiles.s...
<|file_name|>test_select_device.py<|end_file_name|><|fim▁begin|>from unittest import TestCase from unittest.mock import patch from sys import modules from json import loads devices_data = [""" {"identifier":"192.168.56.101:5555", "displayName":"vbox86p", "model":"Nexus_6...
<|file_name|>ISBNValidatorTest.java<|end_file_name|><|fim▁begin|>package de.gwdg.metadataqa.marc.definition.general.validator; import de.gwdg.metadataqa.marc.dao.DataField; import de.gwdg.metadataqa.marc.dao.MarcRecord; import de.gwdg.metadataqa.marc.MarcSubfield; import de.gwdg.metadataqa.marc.definition.ValidatorRes...
}
<|file_name|>TimeSignaturePopover.js<|end_file_name|><|fim▁begin|>import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, css } from 'aphrodite'; import { changeTimeSignature } from '../../actions/track'; import HoverableText from './HoverableText'; const styles = StyleSh...
</span> </div> );