prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>mouseevent.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/. */ use dom::bindings::codegen::Bindings::MouseEventBinding; u...
pub fn new_inherited() -> MouseEvent { MouseEvent { mouseevent: UIEvent::new_inherited(MouseEventTypeId),
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>#![crate_name = "input"] #![deny(missing_docs)] #![deny(missing_copy_implementations)] //! A flexible structure for user interactions //! to be used in window frameworks and widgets libraries. #[macro_use] extern crate bitflags; #[macro_use] extern crate serde_derive; ...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
__version__ = "2.0"
<|file_name|>bio_json_xml.js<|end_file_name|><|fim▁begin|>var fs = require('fs'); /*var mulu = fs.readFileSync('./mulu.html','utf8'); var sutra = mulu.replace(/<sutra>/g,'#<sutra>').split(/#/); var vol = function(sutra){ for (var i in sutra){ var vol = sutra[i].match(/<vol>(.+)<\/vol>/); var sutraid = sutra[i].ma...
<|file_name|>BotCommand.ts<|end_file_name|><|fim▁begin|>import type { BotCommandContext } from './BotCommandContext'; export interface BotCommandMatch { command: BotCommand; params: string[]; } export abstract class BotCommand { abstract get name(): string; get aliases(): string[] { return []; } match(line:...
let [command, ...params] = line.split(' '); if (!command.startsWith(prefix)) {
<|file_name|>webpage_condition_operator.pb.go<|end_file_name|><|fim▁begin|>// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/enums/webpage_condition_operator.proto package enums import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto...
<|file_name|>MimeUtils.java<|end_file_name|><|fim▁begin|>package com.adaptris.util.text.mime; import static com.adaptris.util.text.mime.MimeConstants.HEADER_CONTENT_ENCODING; import static org.apache.commons.lang3.StringUtils.isBlank; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.Out...
<|file_name|>sync.js<|end_file_name|><|fim▁begin|>// to be used if new modules are added to MSF. Mamoru.Sync.allModules = function(){ var moduleFixtures = { exploit: 'module.exploits', post: 'module.post', auxiliary: 'module.auxiliary', payload: 'module.payloads', encoder: 'm...
<|file_name|>jit.rs<|end_file_name|><|fim▁begin|>#![feature(asm)] use std::io::{prelude::*}; use std::env; use std::fs::File; use std::convert::TryInto; use brainfuck as bf; extern crate assembler; use ::assembler::{ ExecutableAnonymousMemoryMap, InstructionStream, InstructionStreamHints }; fn compile(...
// c: 48 81 c6 80 00 00 00 addq $128, %rsi
<|file_name|>IssueCreate.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 #!python3 #encoding:utf-8 import sys import os.path import subprocess import configparser import argparse import web.service.github.api.v3.AuthenticationsCreator import web.service.github.api.v3.Client import database.src.Database import cui.up...
web.log.Log.Log().Logger.warning('指定リポジトリがDBに存在しません。: {0}/{1}'.format(self.__args.username, self.__repo_name))
<|file_name|>culling.cpp<|end_file_name|><|fim▁begin|>/* * This file is part of Pentachoron. * * Pentachoron 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 yo...
culled++; return false;
<|file_name|>Dlg_Download.cpp<|end_file_name|><|fim▁begin|>/* Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG */ #include "stdafx.h" #include "FdmApp.h" #include "Dlg_Download.h" #include "Downloads_Tasks.h" #include "DownloadsWnd.h" #include "Dlg_Download_OnHide.h" extern CDownload...
<|file_name|>script.js<|end_file_name|><|fim▁begin|>angular .module('menuDemoPosition', ['ngMaterial']) .config(function($mdIconProvider) { $mdIconProvider .iconSet("call", 'img/icons/sets/communication-icons.svg', 24) .iconSet("social", 'img/icons/sets/social-icons.svg', 24);<|fim▁hole|> this.op...
}) .controller('PositionDemoCtrl', function DemoCtrl($mdDialog) { var originatorEv;
<|file_name|>get_fileservers.py<|end_file_name|><|fim▁begin|>class Module: def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'Get FileServers', ...
# The 'Agent' option is the only one that MUST be in a module 'Description' : 'Agent to run on.', 'Required' : True,
<|file_name|>main.go<|end_file_name|><|fim▁begin|>package main import ( "fmt" _ "github.com/go-training/training/example16-init-func/bar" _ "github.com/go-training/training/example16-init-func/foo" )<|fim▁hole|>func convert() int { return 100 } func init() { global = 0 } func main() { fmt.Println("global is",...
var global = convert()
<|file_name|>0007_auto_20150202_1422.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration):<|fim▁hole|> dependencies = [ ('mainapp', '0006_auto_2014120...
<|file_name|>MovieClip.java<|end_file_name|><|fim▁begin|>package com.voisintech.easeljs.display; public class MovieClip { <|fim▁hole|><|fim▁end|>
}
<|file_name|>logdb_test.py<|end_file_name|><|fim▁begin|>from diary import DiaryDB, Event import unittest import sqlite3 import os.path class TestDiaryDB(unittest.TestCase): TEMP_DB_PATH = os.path.join(os.path.dirname(__file__), 'testing_dir', 'temp.db') SIMPLE_EVENT = Event("I...
self.assertEquals(entry[1], self.SIMPLE_EVENT.level)
<|file_name|>shtnsfiledata.py<|end_file_name|><|fim▁begin|>#! /usr/bin/env python3 import math, sys import shtns import numpy as np class shtnsfiledata: # # Adopted from https://bitbucket.org/nschaeff/shtns/src/master/examples/shallow_water.py # def __init__( self, rsphere = 1....
print("Anti-aliasing:") print(" + old lon/lat: ", nlons, nlats)
<|file_name|>telemetry.rs<|end_file_name|><|fim▁begin|>//! Transparent serial telemetry module.<|fim▁hole|><|fim▁end|>
//! //! *In development…*
<|file_name|>link_format.rs<|end_file_name|><|fim▁begin|>// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0...
/// Adds an attribute to the link that has u16 value. pub fn attr_u16(self, key: &'static str, value: u16) -> Self {
<|file_name|>api.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # # api.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it ...
from pcapoptikon.authorization import CertegoDjangoAuthorization
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from . import base<|fim▁hole|><|fim▁end|>
from . import mainMenu from . import utils
<|file_name|>flow_list.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/. */ use flow::Flow; use flow_ref::FlowRef; use std::collection...
self.it.next().map(|x| x.deref_mut()) } #[inline]
<|file_name|>test_3B_GetEncodeData.py<|end_file_name|><|fim▁begin|><|fim▁hole|> def test_00_first(self): # will run first due to its name """3B_GetEncodeData: Clearing history""" self.clear_history() def test_10_Encode_Data(self): """3B_GetEncodeData: Getting encode data""" ...
from galaxy.test.base.twilltestcase import TwillTestCase #from twilltestcase import TwillTestCase class EncodeTests(TwillTestCase):
<|file_name|>waitForExist.js<|end_file_name|><|fim▁begin|>/** * * Wait for an element (selected by css selector) for the provided amount of * milliseconds to be present within the DOM. Returns true if the selector * matches at least one element that exists in the DOM, otherwise throws an * error. If the reverse fl...
<|file_name|>conftest.py<|end_file_name|><|fim▁begin|># ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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...
<|file_name|>ram_filter.py<|end_file_name|><|fim▁begin|># Copyright (c) 2011 OpenStack Foundation # Copyright (c) 2012 Cloudscaling # 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 co...
# TODO(uni): DB query in filter is a performance hit, especially for # system with lots of hosts. Will need a general solution here to fix
<|file_name|>index.d.ts<|end_file_name|><|fim▁begin|>import * as React from 'react'; export default function createReactContext<T>( defaultValue: T, calculateChangedBits?: (prev: T, next: T) => number ): Context<T>; type RenderFn<T> = (value: T) => React.ReactNode; export type Context<T> = { Provider: React.Co...
<|file_name|>my_sql_poi_data_config_controller.js<|end_file_name|><|fim▁begin|>/** * Created by elastetic.dev on 19/08/2017. * copyright 2017 elastetic.dev * See the COPYRIGHT file at the top-level directory of this distribution */ angular.module("elastetic").controller('MySqlPoiDataConfigController', ['$scop...
}]);
<|file_name|>template.js<|end_file_name|><|fim▁begin|>define({ "viewer": { "common": { "close": "Lukk", "focusMainstage": "Send tastaturfokus til media", "expandImage": "Utvid bilde" }, "a11y": { "skipToContent": "Gå til fortelling", "headerAria": "Historieoverskrift", ...
}, "errors": { "boxTitle": "Det har oppstått en feil",
<|file_name|>EmailService.java<|end_file_name|><|fim▁begin|>/** * */ package com.sivalabs.jcart.common.services; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; im...
throw new JCartException("Unable to send email"); } }
<|file_name|>release.js<|end_file_name|><|fim▁begin|>/* jshint node:true */ // var RSVP = require('rsvp'); // For details on each option run `ember help release` module.exports = { // local: true, // remote: 'some_remote', // annotation: "Release %@", // message: "Bumped version to %@", manifest: [ 'package....
// format: 'YYYY-MM-DD', // timezone: 'America/Los_Angeles', // // beforeCommit: function(project, versions) {
<|file_name|>list.py<|end_file_name|><|fim▁begin|>import logging from borgmatic.borg.flags import make_flags, make_flags_from_arguments from borgmatic.execute import execute_command logger = logging.getLogger(__name__) # A hack to convince Borg to exclude archives ending in ".checkpoint". This assumes that a # non-...
) + ( '::'.join((repository, list_arguments.archive)) if list_arguments.archive
<|file_name|>api.go<|end_file_name|><|fim▁begin|>package matches import ( "fmt" "net/url" "github.com/coltiebaby/glaw" "github.com/coltiebaby/glaw/v4" ) var buildUri = v4.BuildUriFunc(`match`) func GetMatchlists(c glaw.ApiClient, id string, values url.Values) (matches MatchStorage, err error) { uri := buildUri...
err = glaw.GetResultFromResp(resp, &tl) return tl, err }
<|file_name|>members.rs<|end_file_name|><|fim▁begin|>use db::Conn; use errors::Result; use models::{Member, MemberChangeset}; use schema::members; use std::ops::Deref; use rocket::Route; use rocket_contrib::Json; use diesel; use diesel::prelude::*; pub fn routes() -> Vec<Route> { routes![index, update] } #[get(...
.body(request_body.to_string()) .dispatch();
<|file_name|>foo.rs<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
// rustfmt-config: skip_children.toml mod bar; mod baz {}
<|file_name|>pickle_example.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 import sys import subprocess import urllib.request import copy def main(argv): cookie = urllib.request.HTTPCookieProcessor()<|fim▁hole|> if __name__ == '__main__': sys.exit(main(sys.argv))<|fim▁end|>
oc = copy.deepcopy(cookie)
<|file_name|>0035_auto_20180621_0020.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-06-21 06:20 from __future__ import unicode_literals from django.db import migrations import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): depen...
field=mptt.fields.TreeForeignKey(on_delete=django.db.models.deletion.CASCADE, to='laboratory.OrganizationStructure'), ), ]
<|file_name|>functions.py<|end_file_name|><|fim▁begin|>from io.endeios.example.javascripts import ABean, TestInterface from java.lang import Long def myecho(a): return a def greet(): return "Hello Python" class MyClass(TestInterface): def __init__(self):<|fim▁hole|> pass def getBean(self): retVal =ABean() ...
<|file_name|>second.js<|end_file_name|><|fim▁begin|>var Ringpop = require('ringpop'); var TChannel = require('TChannel'); var express = require('express'); var NodeCache = require('node-cache'); var cache = new NodeCache(); var host = '127.0.0.1'; // not recommended for production var httpPort = process.env.PORT || 80...
<|file_name|>requireFiles_test.js<|end_file_name|><|fim▁begin|>var assert = require('assert'); var fs = require('fs'); var requireFiles = require(__dirname + '/../lib/requireFiles'); var files = [ __dirname + '/moch/custom_test.txt', __dirname + '/moch/json_test.json', __dirname + '/moch/test.js' ]; descri...
it('Should throw error when an engine isn\'t supported', function(){ assert.throws(function(){
<|file_name|>help.cpp<|end_file_name|><|fim▁begin|>///////////////////////////////////////////////////////////////////////////// // Name: help.cpp // Purpose: wxHtml sample: help test // Author: ? // Modified by: // Created: ? // RCS-ID: $Id$ // Copyright: (c) wxWidgets team // Licence: w...
// Create a new application object: this macro will allow wxWidgets to create
<|file_name|>clusterpair.go<|end_file_name|><|fim▁begin|>/* Copyright 2018 Openstorage.org 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 req...
if !exists { return nil, errors.NewNotFound(v1alpha1.Resource("clusterpair"), name)
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>"""The Brother component."""<|fim▁hole|>import logging from brother import Brother, DictToObj, SnmpError, UnsupportedModel import pysnmp.hlapi.asyncio as SnmpEngine from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CON...
from __future__ import annotations from datetime import timedelta
<|file_name|>dqn_learning.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from __future__ import division import numpy as np np.set_printoptions(threshold=np.inf) import matplotlib.pyplot as plt from matplotlib import cm # from mpl_toolkits.mplot3d import axes3d from matplotlib.colors import Log...
X, Y = np.meshgrid(x_range, v_range) # ax.plot_surface(X, Y, q_func, rstride=1, cstride=1, cmap=cm.jet, linewidth=0.1, antialiased=True) im = ax.pcolormesh(X, Y, q_func) fig.colorbar(im)
<|file_name|>attr.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/L...
// not match. !not_cfgs.iter().all(|mi| { debug!("cfg(not({}[...]))", mi.name()); contains(cfg, *mi)
<|file_name|>cs3quiz.py<|end_file_name|><|fim▁begin|>#Section 1: Terminology # 1) What is a recursive function?<|fim▁hole|># 2) What happens if there is no base case defined in a recursive function? # The program would keep recursing itself. # # # 3) What is the first thing to consider when designing a recursive funct...
# A recursive function is a function that calls itself. # #
<|file_name|>d3d9types.py<|end_file_name|><|fim▁begin|>########################################################################## # # Copyright 2011 Jose Fonseca # Copyright 2008-2009 VMware, Inc. # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software ...
<|file_name|>ServerSetup.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # ...
def initializeLogger(consolename='kamaelia'):
<|file_name|>session.js<|end_file_name|><|fim▁begin|>export function initialize(application) { application.inject('route', 'session', 'service:session'); application.inject('route', 'sessionAccount', 'service:session-account'); application.inject('controller', 'session', 'service:session'); application.inject('...
application.inject('component', 'session', 'service:session'); application.inject('component', 'sessionAccount', 'service:session-account'); }
<|file_name|>unseeded.go<|end_file_name|><|fim▁begin|>package wallet import ( "errors" "github.com/NebulousLabs/Sia/crypto" "github.com/NebulousLabs/Sia/encoding" "github.com/NebulousLabs/Sia/modules" "github.com/NebulousLabs/Sia/types" "github.com/NebulousLabs/fastrand" ) const ( // SiagFileExtension is the ...
<|file_name|>GengDuo.java<|end_file_name|><|fim▁begin|>package com.example.wk.ybeg.fragment; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.wk.ybeg.R;<|fim▁hole|> /** * Created by WK...
<|file_name|>methods_buys_test.go<|end_file_name|><|fim▁begin|>package coinbase import ( "os" "testing" ) func createBuysClient(t *testing.T) (c *Client) { c = &Client{ APIKey: os.Getenv("COINBASE_API_KEY"), } if c.APIKey == "" { t.Skip("Coinbase api key is missing (should be in the COINBASE_API_KEY environ...
return c }
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>//! Xiangyun is the crate for random with Rust // TODO: remove clippy before publish // #![cfg_attr(feature="clippy", feature(plugin))] // #![cfg_attr(feature="clippy", plugin(clippy))] pub mod rand; pub mod num; pub mod chaos; pub use rand::{Solver, Style, JumpSty...
pub use rand::base::{system, RAND_MAX}; pub use num::Rand; pub use num::xfloat::XFloat;
<|file_name|>general.js<|end_file_name|><|fim▁begin|>function handleRace(data_races) { var ch_race; var ch_side; for (var ra in data_races.races) { if (data_races.races[ra].id === character_data.race) { ch_race = data_races.races[ra].name; ch_side = data_races.races[ra].side; ...
url2 = 'http://' + region + '.battle.net/api/wow/data/character/classes'; jsonp_request(url2, 'handleClass');
<|file_name|>bitcoin_fa_IR.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0"> <defaueqkodec>UTF-8</defaueqkodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Equikoin</sour...
<source>Sent to</source> <translation>ارسال به</translation> </message> <message>
<|file_name|>Bundler.ts<|end_file_name|><|fim▁begin|>import type {Mail} from "../../api/entities/tutanota/Mail" import type {EntityClient} from "../../api/common/EntityClient" import {MailBodyTypeRef} from "../../api/entities/tutanota/MailBody" import {getMailBodyText, getMailHeaders} from "../../api/common/utils/Utils...
bcc: mail.bccRecipients.map(recipientMapper), replyTo: mail.replyTos.map(recipientMapper), isDraft: mail.state === MailState.DRAFT,
<|file_name|>Output.java<|end_file_name|><|fim▁begin|>/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.api.kafka.model.connect.build; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.ja...
<|file_name|>test_pycnik.py<|end_file_name|><|fim▁begin|>""" This test illustrate how to generate an XML Mapnik style sheet from a pycnik style sheet written in Python. """<|fim▁hole|>import artefact actual_xml_style_sheet = 'artefacts/style_sheet.xml' expected_xml_style_sheet = 'style_sheet.xml' class TestPycnik(art...
import os from pycnik import pycnik
<|file_name|>ctrl_c_handler.py<|end_file_name|><|fim▁begin|># Copyright 2015 Google Inc. All Rights Reserved. """Context manager to help with Control-C handling during critical commands.""" import signal from googlecloudsdk.calliope import exceptions from googlecloudsdk.core import log from googlecloudsdk.test.lib i...
raise exceptions.ExitCodeNoError(exit_code=exit_code.MATRIX_CANCELLED)
<|file_name|>decorators.py<|end_file_name|><|fim▁begin|>from functools import wraps from urllib.parse import urlparse from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.core.exceptions import PermissionDenied from django.shortcuts import resolve_url def user_passes_test(...
Decorator for views that checks that the user is logged in, redirecting to the log-in page if necessary. """
<|file_name|>action_errors.py<|end_file_name|><|fim▁begin|>from fail2ban.server.action import ActionBase <|fim▁hole|> def start(self): raise Exception() def stop(self): raise Exception() def ban(self): raise Exception() def unban(self): raise Exception() Action = Test...
class TestAction(ActionBase): def __init__(self, jail, name): super(TestAction, self).__init__(jail, name)
<|file_name|>ThreadSleep.java<|end_file_name|><|fim▁begin|>package Chapter7; /** * Created by PuFan on 2016/11/30. * * @author PuFan */ public class ThreadSleep {<|fim▁hole|> static public void main(String[] args) { Thread t1 = new Thread(new SleepRunner()); Thread t2 = new Thread(new SleepRunne...
<|file_name|>ButtonBar.tsx<|end_file_name|><|fim▁begin|>import RX = require("reactxp"); import Styles = require("./styles/main"); type ButtonStyle = "GREEN" | "RED"; export interface ButtonProps { label: string; style: ButtonStyle; onClick: () => void; } interface ButtonBarProps { buttons: ButtonProps[]; p...
<|file_name|>R$primitive$file$access.java<|end_file_name|><|fim▁begin|>package org.renjin.primitives; import org.renjin.eval.Context; import org.renjin.eval.EvalException; import org.renjin.primitives.annotations.processor.ArgumentException; import org.renjin.primitives.annotations.processor.ArgumentIterator; import o...
}
<|file_name|>environment.js<|end_file_name|><|fim▁begin|>/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'chapter4-components', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable exp...
ENV.APP.rootElement = '#ember-testing';
<|file_name|>test_vm_utils.py<|end_file_name|><|fim▁begin|># Copyright 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 # # ht...
self.mox.ReplayAll()
<|file_name|>model_project_limit_reservation.go<|end_file_name|><|fim▁begin|>/* * HyperOne API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)<|fim▁hole|> * * API version: 0.0.2 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ pa...
<|file_name|>bitcoin_de.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Blizzardcoin</source...
<location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source>
<|file_name|>Page.java<|end_file_name|><|fim▁begin|>package core.utils; import java.util.ArrayList; import java.util.List; public class Page<T> { public static final int PAGE_SIZE = 10; protected List<T> listObjects = new ArrayList<>(); protected int currentPage; protected int pageSize = PAGE_SIZE; ...
public int getPageSize() { return pageSize; }
<|file_name|>test_tooltool.py<|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/. from __future__ import absolute_import import datetime impor...
@test_context def test_upload_batch_success_no_instances(client, app): """A POST to /upload with a batch containing a file that already exists, but has no instances, succeeds, returns signed URLs expiring in one hour,
<|file_name|>controller.rs<|end_file_name|><|fim▁begin|>use futures::{Future, Async, Poll, Stream}; use futures::sync::mpsc::{UnboundedSender, UnboundedReceiver}; use client_controller::{ ClientMessage, Message, Command as ClientControllerCommand }; use planetwars::config::Config; use planetwars::step_loc...
logger: slog::Logger,
<|file_name|>index.js<|end_file_name|><|fim▁begin|>/* This example renders a treemap using the built in TreeDraw function. */ /** * Create the actual tree. * @return {mo.Tree} */ function makeTree(){ var tree = new mo.Tree(); var parent = new mo.Node('root', 'root'); var child1 = new mo.Node('c1', 'c1')...
tree, state.colorList,
<|file_name|>main.go<|end_file_name|><|fim▁begin|>package main import ( "flag" "image/color" "image/png" "log" "os" "github.com/lethal-guitar/go_tracer/tracing" "github.com/lethal-guitar/go_tracer/scene" "github.com/lethal-guitar/go_tracer/vecmath" ) func main() { tileSize := flag....
white := color.RGBA{255, 255, 255, 255} dimWhite := color.RGBA{100, 100, 100, 255}
<|file_name|>AllData.java<|end_file_name|><|fim▁begin|>package com.earlysleep.model; import org.litepal.crud.DataSupport; import java.util.ArrayList; import java.util.List; /** * Created by zml on 2016/6/23. * 介绍: */ public class AllData extends DataSupport {<|fim▁hole|> List<TimeSeting> list=new ArrayList<>()...
private String music; private int musictime; private boolean musicchosse;
<|file_name|>utils.rs<|end_file_name|><|fim▁begin|>// Copyright 2019 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use std::mem; use std::sync::Arc; use super::error::*; use crate::usb::xhci::xhci_transfer::{XhciTr...
} } Ok(())
<|file_name|>shallow-extend.js<|end_file_name|><|fim▁begin|>/* ========================================================================== Shallow Extends Copyright (c) 2014 Alexey Maslennikov ========================================================================== */ 'use strict'; /** * @param {object} Ja...
if ( source.hasOwnProperty( key ) ) { var value = source[key]; if ( _isPlainObject( value ) ) {
<|file_name|>index.js<|end_file_name|><|fim▁begin|>/** * ISARI Import Scripts File Definitions * ====================================== *<|fim▁hole|>module.exports = { organizations: require('./organizations.js'), people: require('./people.js'), activities: require('./activities.js'), postProcessing: require...
* Defining the various files to import as well as their line consumers. */
<|file_name|>OWGeneNetwork.py<|end_file_name|><|fim▁begin|>import sys from collections import namedtuple from AnyQt.QtWidgets import QSizePolicy, QLayout from AnyQt.QtCore import Slot import Orange.data from Orange.widgets.utils.datacaching import data_hints from Orange.widgets import widget, gui, settings from Oran...
<|file_name|>index.js<|end_file_name|><|fim▁begin|>export * from './user';<|fim▁hole|><|fim▁end|>
export * from './template';
<|file_name|>punch_version.py<|end_file_name|><|fim▁begin|>major = 0 minor = 37<|fim▁hole|>patch = 0<|fim▁end|>
<|file_name|>AdminDiscountController.java<|end_file_name|><|fim▁begin|>package shop.main.controller.admin; import static shop.main.controller.admin.AdminController.ADMIN_PREFIX; import static shop.main.controller.admin.AdminController.MANAGER_PREFIX; import java.util.ArrayList; import java.util.Arrays; import java.ut...
private void loadTableData(String name, String status, Integer current, Integer pageSize, Model model) { Pageable pageable = new PageRequest(current - 1, pageSize);
<|file_name|>angular-gantt-resizeSensor-plugin.js<|end_file_name|><|fim▁begin|>/* Project: angular-gantt v1.2.8 - Gantt chart component for AngularJS Authors: Marco Schweighauser, Rémi Alvergnat License: MIT Homepage: https://www.angular-gantt.com Github: https://github.com/angular-gantt/angular-gantt.git */ (function(...
ElementQueries.update(); sensor = buildSensor();
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>use epoll::*; use error::Result; use handler::*; use libc_sys::{sched_param, sched_setscheduler, rlimit, prlimit, RLIMIT_RTPRIO}; pub use nix::sys::signal::{Signal, SigSet}; use nix::sys::signalfd::{SignalFd, SFD_NONBLOCK}; use nix::{unistd, Errno}; use prop::*; use std:...
sched_opt.map(|(sched_policy, sched_param_i)| { // set sched policy
<|file_name|>computeresource.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*- from robottelo.constants import FILTER, FOREMAN_PROVIDERS from nailgun import entities from robottelo.ui.base import Base, UINoSuchElementError, UIError from robottelo.ui.locators import common_locators, locators, tab_locators from r...
self.search_and_click(res_name) self.click(tab_locators['resource.tab_virtual_machines']) for locator in [locators['resource.vm_delete_button_dropdown'],
<|file_name|>interface.go<|end_file_name|><|fim▁begin|>// Copyright 2021 NetApp, Inc. All Rights Reserved. // Code generated by informer-gen. DO NOT EDIT. package netapp import ( internalinterfaces "github.com/netapp/trident/operator/controllers/orchestrator/client/informers/externalversions/internalinterfaces"<|fi...
v1 "github.com/netapp/trident/operator/controllers/orchestrator/client/informers/externalversions/netapp/v1"
<|file_name|>private-type.ts<|end_file_name|><|fim▁begin|>import {PackageJson} from 'type-fest'; import {LintIssue} from '../lint-issue'; import {isBoolean} from '../validators/type'; import {RuleType} from '../types/rule-type'; import {Severity} from '../types/severity'; const lintId = 'private-type'; const nodeName ...
<|file_name|>evaluator.rs<|end_file_name|><|fim▁begin|>// // This file is part of zero_sum. // // zero_sum 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 opti...
}
<|file_name|>LoginService.java<|end_file_name|><|fim▁begin|>package org.tiltedwindmills.fantasy.mfl.services; import org.tiltedwindmills.fantasy.mfl.model.LoginResponse; <|fim▁hole|> * Interface defining operations required for logging into an MFL league. */ public interface LoginService { /** * Login....
/**
<|file_name|>weather.py<|end_file_name|><|fim▁begin|>from .logic import LogicAdapter from chatterbot.conversation import Statement from chatterbot.utils.pos_tagger import POSTagger import re import forecastio<|fim▁hole|> """ A logic adapter that returns information regarding the weather and the forecast for...
class WeatherLogicAdapter(LogicAdapter):
<|file_name|>WinIntelPE32.py<|end_file_name|><|fim▁begin|>''' Copyright (c) 2013-2014, Joshua Pitts All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the...
<|file_name|>resample_test.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import print_function import sys import time import numpy as np from pyqtgraph import PlotWindow from six.moves import zip sys.path.append('../../util') sys.path.append('../..') from .nidaq import NiDAQ from pyqtgraph...
## Decimate by lowpass filtering, then average points together. (slow, artifacts at beginning and end of traces) ## Not as good as signal.resample for removing HF noise, but does not generate artifacts either.
<|file_name|>apps.py<|end_file_name|><|fim▁begin|>from django.apps import AppConfig <|fim▁hole|> name = 'prescriptions'<|fim▁end|>
class PerscriptionsConfig(AppConfig):
<|file_name|>food_example.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- """ This code is the correct implementation about constant. """ from const.base import Base class Apple(Base): __attrs__ = ["id", "name"] def __init__(self, id=None, name=None): self.id = id ...
class FoodCol(Base):
<|file_name|>run_xmpp.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Runs an Herald XMPP framework :author: Thomas Calmant :copyright: Copyright 2014, isandlaTech :license: Apache License 2.0 :version: 0.0.4 :status: Alpha .. Copyright 2014 isandlaTech Licensed und...
<|file_name|>strict_transport_security.rs<|end_file_name|><|fim▁begin|>use std::fmt; use std::str::{self, FromStr}; use unicase::UniCase; use header::{Header, Raw, parsing};<|fim▁hole|>/// `StrictTransportSecurity` header, defined in [RFC6797](https://tools.ietf.org/html/rfc6797) /// /// This specification defines a ...
<|file_name|>example.py<|end_file_name|><|fim▁begin|># Derived from keras-rl import opensim as osim import numpy as np import sys from keras.models import Sequential, Model from keras.layers import Dense, Activation, Flatten, Input, concatenate from keras.optimizers import Adam import numpy as np from rl.agents impo...
nallsteps = args.steps # Create networks for DDPG
<|file_name|>test.js<|end_file_name|><|fim▁begin|>function test(chart) { // Set hoverPoint chart.series[0].points[2].onMouseOver();<|fim▁hole|><|fim▁end|>
}
<|file_name|>crash.py<|end_file_name|><|fim▁begin|><|fim▁hole|>../../../../share/pyshared/aptdaemon/crash.py<|fim▁end|>