prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>UserPromptDialog.java<|end_file_name|><|fim▁begin|>/******************************************************************************* * Copyright (c) 2006 Subclipse project and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Pu...
import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell;
<|file_name|>Gruntfile.js<|end_file_name|><|fim▁begin|>/** * Created by Tivie on 12-11-2014. */ module.exports = function (grunt) { // Project configuration. var config = { pkg: grunt.file.readJSON('package.json'), concat: { options: { sourceMap: true, banner: ';/*! <...
}
<|file_name|>upload.py<|end_file_name|><|fim▁begin|>import requests import os print('\n***数据与算法 GitHub自动上传脚本***\n') username = input('输入你在GitHub上的用户名,如 Robert Ying:') email = input('输入你注册GitHub用的Email:') print('\n开始配置Git...') os.system('git config --global user.name "' + username + '"') os.system('git config --global...
continue os.system('cd data-and-algorithms & git push origin master')
<|file_name|>increment.js<|end_file_name|><|fim▁begin|>//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. /...
++y;
<|file_name|>green_exchange_graph_test.cc<|end_file_name|><|fim▁begin|>/* * green_exchange_graph_test.cc * Copyright 2014-2015 John Lawson * * 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 a...
TEST(GreenContinue, Seed) { EquivQuiverMatrix k("{ { 0 1 0 0 } { -1 0 3 -4 } { 0 -3 0 2 } { 0 4 -2 0 } }");
<|file_name|>auth.py<|end_file_name|><|fim▁begin|># Copyright 2014 Hewlett-Packard Development Company, L.P. # 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 # ...
<|file_name|>test_seqreader.py<|end_file_name|><|fim▁begin|>import pytest from canon.seq.seqreader import SeqReader from .. import resource def test_read_seq(): reader = SeqReader(resource('seq/Quartz_500Mpa_.SEQ')) reader.get_Om() Z, _, N = reader.get_Zmap('orsnr___') def test_merge_Zmap(): reader ...
reader.read_seq(resource('seq/au30_a1_.SEQ')) Z1, _, N1 = reader.get_Zmap('orsnr___') reader.read_seq(resource('seq/au30_m1_.SEQ'))
<|file_name|>baBackTop.component.ts<|end_file_name|><|fim▁begin|>import {Component, ViewChild, HostListener, Input, ElementRef} from '@angular/core'; @Component({ selector: 'ba-back-top', styleUrls: ['./baBackTop.scss'], template: `<|fim▁hole|>export class BaBackTop { @Input() position:number = 400; @Input(...
<i #baBackTop class="fa fa-angle-up back-top ba-back-top" title="Back to Top"></i> ` })
<|file_name|>graph_algorithms_test.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import os import sys sys.path.append(os.path.join(os.getcwd(), os.path.pardir)) import unittest from digraph import digraph from graph import graph from graph_algorithms import * class test_graph(unittest.TestCase): def s...
self.gr.add_edges([("j", "k"), ("j", "l")]) self.digr = digraph()
<|file_name|>Dependencies.py<|end_file_name|><|fim▁begin|><|fim▁hole|># list of header (.h) files used by source files (.cxx). # As a module, provides # FindPathToHeader(header, includePath) -> path # FindHeadersInFile(filePath) -> [headers] # FindHeadersInFileRecursive(filePath, includePath, renames) -> [paths] #...
#!/usr/bin/env python # Dependencies.py - discover, read, and write dependencies file for make. # The format like the output from "g++ -MM" which produces a
<|file_name|>swanson_bot.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python import praw import re import os import pickle from array import * import random #REPLY = "I want all the bacon and eggs you have." REPLY = array('i',["I want all the bacon and eggs you have", "I know what I'm about son", "I'm not interested in ...
<|file_name|>parser.js<|end_file_name|><|fim▁begin|>(function() { "use strict"; var src$parser$$default = (function() { "use strict"; /* * Generated by PEG.js 0.9.0. * * http://pegjs.org/ */ function peg$subclass(child, parent) { function ctor() { this.co...
return s0; }
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|># Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html from anki.syncserver import serve <|fim▁hole|><|fim▁end|>
serve()
<|file_name|>request.go<|end_file_name|><|fim▁begin|>package standard import ( "io" "io/ioutil" "mime/multipart" "net/http" "strings" "github.com/labstack/echo" "github.com/labstack/echo/engine" "github.com/labstack/gommon/log" ) type ( // Request implements `engine.Request`. Request struct { *http.Reque...
<|file_name|>py_dep_analysis.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # # This file contains utilities for understanding dependencies between python # source files and tests. # # Utils are assumed to be used from top level ray/ folder, since that is how # our tests are defined today. # # Example usage: # ...
# python ci/travis/py_dep_analysis.py --mode=test-dep \ # --file=python/ray/tune/tune.py # For testing, add --smoke-test to any commands, so it doesn't spend
<|file_name|>MessageWindow.py<|end_file_name|><|fim▁begin|># -*-python-*- # GemRB - Infinity Engine Emulator # Copyright (C) 2003 The GemRB Project # # 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 Foundati...
MessageTA = MessageWindow.GetControl (1) MessageTA.SetFlags (IE_GUI_TEXTAREA_AUTOSCROLL|IE_GUI_TEXTAREA_HISTORY) GemRB.SetVar ("MessageTextArea", MessageTA.ID)
<|file_name|>test_import.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*- """Test class for Host Collection CLI""" import csv import os import re import tempfile from fauxfactory import gen_string from itertools import product from random import sample from robottelo import ssh from robottelo.cli.base import ...
files = update_csv_values(files, test_data, tmp_dir) pwdfile = os.path.join(tmp_dir, gen_string('alpha', 6)) Import.organization({'csv-file': files['users']}) Import.user({
<|file_name|>lumx.js<|end_file_name|><|fim▁begin|>/* LumX v1.5.14 (c) 2014-2017 LumApps http://ui.lumapps.com License: MIT */ (function() { 'use strict'; angular.module('lumx.utils.depth', []); angular.module('lumx.utils.event-scheduler', []); angular.module('lumx.utils.transclude-replace', []); ...
$timeout.cancel(timer);
<|file_name|>mixed.go<|end_file_name|><|fim▁begin|>package mixed import ( "net" "net/url" "github.com/nadoo/glider/pkg/log" "github.com/nadoo/glider/proxy" "github.com/nadoo/glider/proxy/http" "github.com/nadoo/glider/proxy/socks5" ) // Mixed struct. type Mixed struct { proxy proxy.Proxy addr string httpS...
<|file_name|>on_vr_language_change_notification.cc<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2013, Ford Motor Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributio...
application_manager_.state_controller().SetRegularState( app, mobile_api::HMILevel::HMI_NONE, false); application_manager_.ManageMobileCommand(
<|file_name|>reducer.ts<|end_file_name|><|fim▁begin|>import { createSlice, createEntityAdapter, Reducer, AnyAction, PayloadAction } from '@reduxjs/toolkit'; import { fetchAll, fetchDetails, install, uninstall, loadPluginDashboards, panelPluginLoaded } from './actions'; import { CatalogPlugin, PluginListDisplayMode, Red...
<|file_name|>apps.py<|end_file_name|><|fim▁begin|>from django.apps import AppConfig <|fim▁hole|> verbose_name = "Wagtail admin"<|fim▁end|>
class WagtailAdminAppConfig(AppConfig): name = 'wagtail.wagtailadmin' label = 'wagtailadmin'
<|file_name|>use-container.ts<|end_file_name|><|fim▁begin|>import { IoCContainer } from './ioc-container';<|fim▁hole|> /** * Sets the IoC container to be used in order to instantiate the decorated classes * @param container A [typedi]{@link https://github.com/pleerock/typedi} container */ export function useContain...
<|file_name|>convert.py<|end_file_name|><|fim▁begin|>import subprocess import os """ What are the differences and similarities between ffmpeg, libav, and avconv? https://stackoverflow.com/questions/9477115 ffmeg encoders high to lower quality libopus > libvorbis >= libfdk_aac > aac > libmp3lame libfdk_aac due to copy...
elif output_ext == 'm4a': ffmpeg_params = '-cutoff 20000 -c:a libfdk_aac -b:a 192k -vn '
<|file_name|>app.e2e-spec.ts<|end_file_name|><|fim▁begin|>import { AppPage } from './app.po'; import { browser, logging } from 'protractor'; describe('workspace-project App', () => { let page: AppPage; beforeEach(() => { page = new AppPage(); }); it('should display welcome message', () => { page.navi...
afterEach(async () => {
<|file_name|>default_exchange_receiver.py<|end_file_name|><|fim▁begin|>from sender import * import threading QUEUE_NAME = 'event_queue' class CompetingReceiver(object): def __init__(self): self.connection = Connection().initialize() def receive(self): self.connection.channel.queue_declare(QU...
connection1 = CompetingReceiver() connection2 = CompetingReceiver()
<|file_name|>temp.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. *-------------...
const idx = Math.floor(chars.length * Math.random()); result += chars[idx];
<|file_name|>GeneticProfileUtil.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2015 - 2016 Memorial Sloan-Kettering Cancer Center. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS * FOR A PARTICULAR...
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<|file_name|>scoped_tls.rs<|end_file_name|><|fim▁begin|>// Copyright 2014-2015 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...
#![unstable(feature = "thread_local_internals")] use prelude::v1::*;
<|file_name|>core.go<|end_file_name|><|fim▁begin|>/* Copyright 2016 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 re...
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django import forms from django.db import models class Births(models.Model): year = models.IntegerField("Year") county = models.CharField("County",max_length=20) mothersAge = models.IntegerField("Mother's Age") mothersEdu = models.CharField("Moth...
rate = models.FloatField("Rate") def __unicode__(self):
<|file_name|>tests.js<|end_file_name|><|fim▁begin|>/* global describe, beforeEach, it */ import { expect } from "chai"; import { shouldOpenInNewTab } from "./utils"; describe("app/lib/utils:shouldOpenInNewTab", () => { let mockClickEvent; beforeEach(() => { mockClickEvent = { ctrlKey: false, metaK...
expect(shouldOpenInNewTab(mockClickEvent)).to.be.false; }); });
<|file_name|>meta_expose.hpp<|end_file_name|><|fim▁begin|>#pragma once #include "core_reflection/metadata/meta_impl.hpp" #include "core_reflection/reflection_macros.hpp" #include "core_reflection/metadata/meta_types.hpp" #include "core_reflection/utilities/reflection_function_utilities.hpp" namespace wgt { BEGIN_EXPO...
BEGIN_EXPOSE(MetaCollectionItemMetaObj, MetaBase, MetaNone())
<|file_name|>interop.rs<|end_file_name|><|fim▁begin|>use std::os::raw::c_char; use std; use util; use d3dx; use shared_dx9::util::write_log_file; use global_state::HookState; use types::interop::*; lazy_static! { pub static ref LOG_MUTEX: std::sync::Mutex<()> = std::sync::Mutex::new(()); } unsafe fn loggit(prefix...
#[allow(unused)]
<|file_name|>forms.py<|end_file_name|><|fim▁begin|>#-*- coding: utf-8 -*- """ --------------------------------------------------------------------------- OpenVolunteer Copyright 2009, Ludovic Rivallain --------------------------------------------------------...
<|file_name|>rpc_txoutproof.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # Copyright (c) 2014-2019 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 gettxoutproof and verifytxoutproof RPC...
<|file_name|>issue-7573.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/lice...
} pub fn list_database(f: |&CrateId|) {
<|file_name|>0014_auto_20171109_1813.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-09 18:13 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bot', '...
name='ultima_actualizacion', field=models.DateTimeField(default=datetime.datetime(2017, 11, 9, 18, 13, 50, 254179)), ), ]
<|file_name|>error.rs<|end_file_name|><|fim▁begin|>use std::io::Error as IoError; use std::error::Error as StdError; use std::fmt::Display; use hyper::Error as HyperError; use serde_json::Error as JsonError; use serde_json::Value; use websocket::result::WebSocketError; #[cfg(feature="voice")] use opus::Error as OpusErr...
<|file_name|>log.py<|end_file_name|><|fim▁begin|>import time def progress(index, size, for_what='当前进度', step=10): block_size = int(size / step) if index % block_size == 0: crt = int(index / block_size) print('%s ==> [%d / %d]' % (for_what, crt, step)) def log_time(): def _log_time(func):...
return result
<|file_name|>test_user.py<|end_file_name|><|fim▁begin|>from shuttl.tests import testbase from shuttl.Models.User import User, UserDataTakenException, NoOrganizationException, ToManyOrganizations from shuttl.Models.organization import Organization from shuttl.Models.Reseller import Reseller class UserTestCase(testbase...
user.organization = None
<|file_name|>038.py<|end_file_name|><|fim▁begin|>def isPandigital(strN): Ln = [c for c in strN] Ln.sort() if Ln == ['1', '2', '3', '4', '5', '6', '7', '8', '9']: return True return False listPans=[] listMultiplier=[] #dont know if these limits are ok i=9 while i<9999: n=2<|fim▁hole|> ...
while n<999: j=1
<|file_name|>Ecs20140526DeleteSnapshotRequest.py<|end_file_name|><|fim▁begin|>''' Created by auto_sdk on 2015.04.21 <|fim▁hole|> def __init__(self,domain='ecs.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.SnapshotId = None def getapiname(self): return 'ecs.aliyuncs.com.DeleteSnapshot.20...
''' from aliyun.api.base import RestApi class Ecs20140526DeleteSnapshotRequest(RestApi):
<|file_name|>testRoom.py<|end_file_name|><|fim▁begin|>import unittest import json import sys import os.path import websocket sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from app.constants import Message class TestServer(unittest.TestCase): """ This is not a unit test. Simple client to ...
print "list of rooms {0}".format(self.ws.recv())
<|file_name|>RainScattered.d.ts<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
export { RainScattered as default } from "./";
<|file_name|>utils.rs<|end_file_name|><|fim▁begin|>use std::fmt; use std::path::{Path, PathBuf}; use std::fs::{self, File}; use rustc_serialize::{Encodable, Encoder}; use url::Url; use git2::{self, ObjectType}; use core::GitReference; use util::{CargoResult, ChainError, human, ToUrl, internal}; #[derive(PartialEq, C...
<|file_name|>pygsf.py<|end_file_name|><|fim▁begin|>#name: pygsf #created: July 2017 #by: p.kennedy@fugro.com #description: python module to read and write a Generic Sensor Formaty (GSF) file natively #notes: See main at end of script for example how to use this #based on GSF Version 3.05 # See readme.md for mor...
<|file_name|>wallet.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # 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 F...
self.storage.put('payment_requests', self.receive_requests)
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>### # Copyright (c) 2005, Jeremiah Fincher # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain ...
# this list of conditions, and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions, and the following disclaimer in the
<|file_name|>extract-method-in-anonymous-function-declaration.ts<|end_file_name|><|fim▁begin|>/// <reference path='fourslash.ts' /> ////export default function() { //// /*start*/0/*end*/; ////} goTo.select('start', 'end') edit.applyRefactor({ refactorName: "Extract Symbol", <|fim▁hole|> actionDescri...
actionName: "function_scope_0",
<|file_name|>legacy.js<|end_file_name|><|fim▁begin|>/* artifact generator: C:\My\wizzi\v5\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v5\plugins\wizzi-core\src\ittf\root\legacy.js.ittf */ 'use strict';<|fim▁hole|><|fim▁end|>
module.exports = require('wizzi-legacy-v4');
<|file_name|>inference_unstable_itertools.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.<|fim▁hole|>// // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or ...
<|file_name|>EnumAvisImplique.java<|end_file_name|><|fim▁begin|>// // Ce fichier a été généré par l'implémentation de référence JavaTM Architecture for XML Binding (JAXB), v2.2.11 // Voir <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Toute modification apportée à ce fichier sera perdue lo...
<|file_name|>draw.rs<|end_file_name|><|fim▁begin|>use std::ptr; use std::mem; use BufferViewExt; use BufferViewSliceExt; use ProgramExt; use DrawError; use UniformsExt; use context::Context; use ContextExt; use QueryExt; use TransformFeedbackSessionExt; use fbo::{self, ValidatedAttachments}; use sync; use uniforms:...
// TODO: programs created from binaries have the wrong value // for `has_tessellation_shaders`
<|file_name|>test_model.py<|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...
p = Project.query.get(shortname='u/test-user-2') topic = TroveCategory.query.get(shortname='scientific') create_time = datetime.utcnow() + timedelta(-5)
<|file_name|>ServerHealthService.java<|end_file_name|><|fim▁begin|>/* * Copyright 2021 ThoughtWorks, 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/...
return new HashSet<>(serverHealth.keySet());
<|file_name|>Comments.java<|end_file_name|><|fim▁begin|>package com.tale.model; import com.blade.jdbc.annotation.Table; import java.io.Serializable; // @Table(name = "t_comments", pk = "coid") public class Comments implements Serializable { private static final long serialVersionUID = 1L; // comment表主键 ...
public String getAgent() { return agent;
<|file_name|>colorPkg.go<|end_file_name|><|fim▁begin|>package processing import "github.com/gopherjs/gopherjs/js" //////////////////////////////////////////////////////////// // COLOR //Creating and reading: func Color(params ...interface{}) *js.Object { switch len(params) { case 1: return pG.Call("col...
break
<|file_name|>test_tag_show.py<|end_file_name|><|fim▁begin|>import pytest from cli_config.tag import tag from utility.nix_error import NixError def test_tag_show_no_tag(capsys): with pytest.raises(SystemExit) as _excinfo: tag.tag("nixconfig", ["show"]) _out, _err = capsys.readouterr() assert "2"...
_out, _err = capsys.readouterr()
<|file_name|>compose.d.ts<|end_file_name|><|fim▁begin|>import * as React from 'react'; import { IconBaseProps } from 'react-icon-base';<|fim▁hole|><|fim▁end|>
declare class IoCompose extends React.Component<IconBaseProps> { } export = IoCompose;
<|file_name|>bgjob.py<|end_file_name|><|fim▁begin|># This script is an example of how you can run blender from the command line (in background mode with no interface) # to automate tasks, in this example it creates a text object, camera and light, then renders and/or saves it. # This example also shows how you can pars...
parser.add_option('-s', '--save', dest='save_path', help='Save the generated file to the specified path', metavar='FILE') parser.add_option('-r', '--render', dest='render_path', help='Render an image to the specified path', metavar='FILE')
<|file_name|>CCPointExtension.js<|end_file_name|><|fim▁begin|>/**************************************************************************** Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby...
* @param {cc.Size} s * @return {cc.Point}
<|file_name|>RecognitionRelayServlet.java<|end_file_name|><|fim▁begin|>/** * */ package org.sylvani.io.voice.http; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http....
Sitemap sitemap = sitemapProvider.getSitemap(sitemapName); EList<Widget> list = sitemap.getChildren(); for (Widget widget : list) {
<|file_name|>stereobm.cpp<|end_file_name|><|fim▁begin|>//M*////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If yo...
__m128i thresh8 = _mm_set1_epi16((short)(thresh + 1)); __m128i d1 = _mm_set1_epi16((short)(mind-1)), d2 = _mm_set1_epi16((short)(mind+1)); __m128i dd_16 = _mm_add_epi16(dd_8, dd_8);
<|file_name|>test_artificial_128_None_Lag1Trend_5__100.py<|end_file_name|><|fim▁begin|>import pyaf.Bench.TS_datasets as tsds<|fim▁hole|> art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "None", sigma = 0.0, exog_count = 100, ar_order = 0);<|fim▁end|>
import tests.artificial.process_artificial_dataset as art
<|file_name|>value_export.cpp<|end_file_name|><|fim▁begin|>/* Copyright (C) 2017 Equinor ASA, Norway. The file 'value_export.c' is part of ERT - Ensemble based Reservoir Tool. ERT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
test_assert_size_t_equal(tree.size(), 2); std::sort( std::begin(tree),
<|file_name|>config.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # # Original filename: config.py # # Author: Tim Brandt # Email: tbrandt@astro.princeton.edu # Date: August 2011 # # Summary: Set configuration parameters to sensible values. # import re from subprocess import * import multiprocessing import nu...
<|file_name|>which.py<|end_file_name|><|fim▁begin|># This license covers everything within this project, except for a few pieces<|fim▁hole|># it covers. The few relevant pieces of code are all contained inside these # directories: # # - pwnlib/constants/ # - pwnlib/data/ # # # Copyright (c) 2015 Gallopsled and Zach Rig...
# of code that we either did not write ourselves or which we derived from code # that we did not write ourselves. These few pieces have their license specified # in a header, or by a file called LICENSE.txt, which will explain exactly what
<|file_name|>_katello.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Eric D Helms <ericdhelms@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __met...
products = params['products'] del params['products'] sync_plan = self._entities.SyncPlan(
<|file_name|>paint_context.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/. */ //! Painting of display lists using Moz2D/Azure. use a...
<|file_name|>ScoreParameter.java<|end_file_name|><|fim▁begin|>package hugs.support; import hugs.*; public class ScoreParameter extends Parameter { public Score value; <|fim▁hole|> } public Object getValue () {return value;} public Parameter copy () { return new ScoreParameter(name, (value =...
public ScoreParameter (String name) { this(name,null);} public ScoreParameter (String name, Score value) { super(name); this.value = value;
<|file_name|>Value.java<|end_file_name|><|fim▁begin|>package units.interfaces; public abstract interface Value<T> extends MyComparable<T> { // OPERATIONS default boolean invariant() { return true; } default void checkInvariant() { if(!invariant()) { System.exi...
public abstract T mul(double value);
<|file_name|>makers_test.rs<|end_file_name|><|fim▁begin|><|fim▁hole|> let name = get_name(); assert_eq!(name, "makers"); }<|fim▁end|>
use super::*; #[test] fn get_name_test() {
<|file_name|>base.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Base classes for writing management commands (named commands which can be executed through ``django-admin`` or ``manage.py``). """ from __future__ import unicode_literals import os import sys import warnings from argparse import ArgumentPars...
debugs = [e for e in all_issues if e.level < checks.INFO and not e.is_silenced()] infos = [e for e in all_issues if checks.INFO <= e.level < checks.WARNING and not e.is_silenced()]
<|file_name|>project-meta.ts<|end_file_name|><|fim▁begin|>import type { BlinkMRC, ProjectConfig } from '../types' import configLoader from '@blinkmobile/blinkmrc' import pkg from '../../package' function projectConfig(cwd: string): ProjectConfig { return configLoader.projectConfig({ name: pkg.name, cwd: cwd...
<|file_name|>event_frequent.py<|end_file_name|><|fim▁begin|>import os, sys origin_dir = 'del_201304now/' new_dir = 'freq_event_state/' files = os.listdir(origin_dir) state_dir = {} country_dir = {} for file in files: with open(origin_dir + file) as f: event_dir = {} for line in f: tmp_c...
if country not in country_dir: country_dir[country] = {} if state in country_dir[country]:
<|file_name|>RisingPlanHandler.java<|end_file_name|><|fim▁begin|>package com.xcode.mobile.smilealarm.alarmpointmanager; import android.content.Context; import java.io.IOException; import java.sql.Date; import java.sql.Time; import java.util.Calendar; import java.util.HashMap; import com.xcode.mobile.smilea...
// SleepingTime
<|file_name|>exceptionbase.cc<|end_file_name|><|fim▁begin|>/**************************************************************************** Copyright (c) 2011-2013,WebJet Business Division,CYOU http://www.genesis-3d.com.cn Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
{
<|file_name|>05_table_maker.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # encoding: utf-8 """ Creates a new sound table from random chunks of a soundfile. """ from pyo import * import random, os s = Server(sr=44100, nchnls=2, buffersize=512, duplex=0).boot() path = "../snds/baseballmajeur_m.aif"<|fim▁hole|...
dur = sndinfo(path)[1] t = SndTable(path, start=0, stop=1) amp = Fader(fadein=0.005, fadeout=0.005, dur=0, mul=0.4).play()
<|file_name|>EntryWidgetPieAlertsXDR.py<|end_file_name|><|fim▁begin|><|fim▁hole|>data = { "Type": 17, "ContentsFormat": "pie", "Contents": { "stats": [ { "data": [ int(incident[0].get('CustomFields', {}).get('xdrhighseverityalertcount', 0)) ...
import demistomock as demisto incident = demisto.incidents()
<|file_name|>LaizyImageFlipAnimationLayout.java<|end_file_name|><|fim▁begin|>/* Copyright 2014 Dániel Sólyom 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/license...
*/
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>mod day_1; mod day_2; mod day_3; <|fim▁hole|> day_1::solutions(); day_2::solutions(); day_3::solutions(); }<|fim▁end|>
fn main() {
<|file_name|>clouddns.go<|end_file_name|><|fim▁begin|>// +skip_license_check /* This file contains portions of code directly taken from the 'xenolf/lego' project. A copy of the license for this code can be found in the file named LICENSE in this directory. */ // Package clouddns implements a DNS provider for solving ...
return &DNSProvider{ project: project, client: svc,
<|file_name|>repoItemClassifier.filter.js<|end_file_name|><|fim▁begin|>'use strict'; /*@ngInject*/ function repoItemClassifierFilter() { return function(node) { if (node.type) { return 'uib-repository__item--movable'; } else { return 'uib-repository__group'; }<|fim▁hole|> }; } module.export...
<|file_name|>arksearch.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # # Copyright 2016 Major Hayden # # 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|>trigger.js<|end_file_name|><|fim▁begin|>/** * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 */ define(['require', 'elementUtils'], function (require, ElementUtils) { /** * @class Trigger * @const...
Trigger.prototype.getId = function () { return this.id; };
<|file_name|>parse_un.py<|end_file_name|><|fim▁begin|>from xml.etree import ElementTree from os.path import dirname, realpath directory_of_sources = dirname(realpath(__file__)) + "/sources/" d = {} d['AR'] = "Arabic"<|fim▁hole|>d['FR'] = "French" d['RU'] = "Russian" d['ZH'] = "Mandarin" filepath = '/tmp/uncorpora_...
d['EN'] = "English" d['ES'] = "Spanish"
<|file_name|>TitleRepository.java<|end_file_name|><|fim▁begin|>package com.app.server.repository; import com.athena.server.repository.SearchInterface; import com.athena.annotation.Complexity; import com.athena.annotation.SourceCodeAuthorClass; import com.athena.framework.server.exception.repository.SpartanPersistenceEx...
import java.util.List;
<|file_name|>webhook.rs<|end_file_name|><|fim▁begin|>//! Webhook model and implementations. use super::{ id::{ ChannelId, GuildId, WebhookId }, user::User }; #[cfg(feature = "model")] use builder::ExecuteWebhook; #[cfg(feature = "model")] use internal::prelude::*; #[cfg(feature = "...
/// /// [`Webhook`]: struct.Webhook.html
<|file_name|>jquery.inputmask.regex.extensions.min.js<|end_file_name|><|fim▁begin|>/*! * jquery.inputmask.regex.extensions.min.js * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2015 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Versi...
} } return l }, cardinality: 1
<|file_name|>course_search.py<|end_file_name|><|fim▁begin|>from bs4 import BeautifulSoup from models.course import Course import requests default_postdata = { 'CAMPUS': '0', 'TERMYEAR': '201709', 'CORE_CODE': 'AR%', 'subj_code': '', 'CRSE_NUMBER': '', 'crn': '', 'open_only': 'on', 'BTN_...
:return: Returns a list of the open courses that are matched
<|file_name|>order.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*- from openerp.osv import fields, osv from openerp.tools.translate import _ class sale_order_line(osv.Model): """ OpenERP Model : sale_order_line """ _inherit = 'sale.order.line' _columns = { 'att_bro': fields.bool...
as extra info with sale order"""), } class sale_order(osv.Model):
<|file_name|>Actions.java<|end_file_name|><|fim▁begin|>/** *A PUBLIC CLASS FOR ACTIONS.JAVA */ class Actions{ public Fonts font = new Fonts(); /** <|fim▁hole|> */ public void fonT(){ font.setVisible(true); //setting the visible is true font.pack(); //pack the panel //making an action for ok but...
*@see FONTS.JAVA *this is a font class which is for changing the font, style & size
<|file_name|>restfulApi.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- from flask import Flask, jsonify, request app = Flask(__name__) from charge.chargeManager import ChargeManager from data.dataProvider import DataProvider @app.route('/') def hello_world(): return jsonify(testPreMa(['棉...
return jsonify(testPreMa([name], 20))
<|file_name|>oobe_browsertest.cc<|end_file_name|><|fim▁begin|>// 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. #include "base/command_line.h" #include "base/path_service.h" #include "chrome/browser/c...
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>from django.contrib import admin <|fim▁hole|># Register your models here. from Aplicacio.models import Movie, Character, Location, Team, Power admin.site.register(Movie) admin.site.register(Character) admin.site.register(Location) admin.site.register(Team) admin.site....
<|file_name|>oojs-ui-windows.js<|end_file_name|><|fim▁begin|>/*! * OOUI v0.40.3 * https://www.mediawiki.org/wiki/OOUI * * Copyright 2011–2020 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2020-09-02T15:42:49Z */ ( function ( OO ) { 'use strict'; /*...
<|file_name|>YTPlayerStateEvent.java<|end_file_name|><|fim▁begin|>/*<|fim▁hole|> * 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 License, or * (at your option) any lat...
* Copyright (C) 2017 phantombot.tv *
<|file_name|>saxutils.py<|end_file_name|><|fim▁begin|>""" A library of useful helper classes to the saxlib classes, for the convenience of application and driver writers. $Id: saxutils.py,v 1.35 2004/03/20 07:46:04 fdrake Exp $ """ import os, urlparse, urllib2, types import handler import xmlreader import sys, _excep...
<|file_name|>AlertsFragment.java<|end_file_name|><|fim▁begin|>package com.wisecityllc.cookedapp.fragments; import android.app.Activity; import android.support.v4.app.Fragment; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; ...
mNoAlertsTextView = (TextView) view.findViewById(R.id.alerts_fragment_no_messages_text_view);