prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>backend.py<|end_file_name|><|fim▁begin|>############################################################################### ## ## Copyright (C) 2014 Tavendo GmbH ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You ...
from twisted.internet.defer import inlineCallbacks from autobahn.wamp.types import CallResult from autobahn.twisted.wamp import ApplicationSession
<|file_name|>users.rs<|end_file_name|><|fim▁begin|>#![crate_name = "uu_users"] /* * This file is part of the uutils coreutils package. * * (c) KokaKiwi <kokakiwi@kokakiwi.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* la...
0
<|file_name|>gt.rs<|end_file_name|><|fim▁begin|>#![feature(core)] extern crate core; #[cfg(test)] mod tests { // pub trait FixedSizeArray<T> { // /// Converts the array to immutable slice // fn as_slice(&self) -> &[T]; // /// Converts the array to mutable slice // fn as_mut_slice(&m...
// } type T = i32;
<|file_name|>utils.py<|end_file_name|><|fim▁begin|>def get_file_extension(filename):<|fim▁hole|><|fim▁end|>
return filename.split(".")[-1]
<|file_name|>compile_speed.rs<|end_file_name|><|fim▁begin|>//1.h amd 3.45GHZ cost time 3600ms ,new version 2800ms 1.89 2609ms fix2 2516ms 2094ms //36_2.rs cost time 5375ms (1.83 4985ms),new version 4438ms 1.89 4156ms 3375ms void main() { start=xf.tick for i=1;i<=10;i++ rf.cmd("rush ..\\src\\example\\test\\1....
printl printl(xf.tick-start)
<|file_name|>DeviceShape.cpp<|end_file_name|><|fim▁begin|>// -*-C++ -*- /** \file ******************************************************************** * Device shape base class for route window. * * \author Rüdiger Krauße, * Tobias Schlemmer <keinstein@users.sourceforge.net> * \license GPL * * This program is free s...
dolayout = true; } }
<|file_name|>mrn_udf_last_insert_grn_id.cpp<|end_file_name|><|fim▁begin|>/* -*- c-basic-offset: 2; indent-tabs-mode: nil -*- */<|fim▁hole|> Copyright(C) 2010 Tetsuro IKEDA Copyright(C) 2010-2013 Kentoku SHIBA Copyright(C) 2011-2017 Kouhei Sutou <kou@clear-code.com> This library is free software; you can redistr...
/*
<|file_name|>ExprPartyName.java<|end_file_name|><|fim▁begin|>package com.alessiodp.parties.bukkit.addons.external.skript.expressions; import ch.njol.skript.classes.Changer; import ch.njol.skript.doc.Description; import ch.njol.skript.doc.Examples; import ch.njol.skript.doc.Name; import ch.njol.skript.doc.Since; import...
case DELETE: party.rename(null);
<|file_name|>test.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 '''Test for DDNS forwarding''' from dnstest.test import Test t = Test() master = t.server("knot") slave = t.server("knot") zone = t.zone("example.com.") t.link(zone, master, slave, ddns=True)<|fim▁hole|>master.zones_wait(zone) seri = slave.zo...
t.start()
<|file_name|>it.js<|end_file_name|><|fim▁begin|>(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/it', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} ...
endTime: 'Ora fine', prevYear: 'Anno precedente', nextYear: 'Anno successivo', prevMonth: 'Mese precedente',
<|file_name|>start_page_service.cc<|end_file_name|><|fim▁begin|>// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/app_list/start_page_service.h" #include <string> #include "b...
virtual void RequestMediaAccessPermission( content::WebContents* web_contents,
<|file_name|>jpackagesRest__test.py<|end_file_name|><|fim▁begin|>from JumpScale import j import unittest import JumpScale.portal descr = """ test jpackages over rest to portal (appserver) """ organization = "jumpscale" author = "kristof@incubaid.com" license = "bsd" version = "1.0" category = "appserver.jpackages.re...
<|file_name|>SVGFECompositeElement-dom-k1-attr.js<|end_file_name|><|fim▁begin|>// [Name] SVGFECompositeElement-dom-k1-attr.js // [Expected rendering result] Four circle with different opacity merged with feComposite filter - and a series of PASS messages description("Tests dynamic updates of the 'k1' attribute of the ...
<|file_name|>async_common.py<|end_file_name|><|fim▁begin|># Copyright (c) Meta Platforms, Inc. and affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
# fine without it.
<|file_name|>destroy_test.js<|end_file_name|><|fim▁begin|>import isEnabled from 'ember-metal/features'; import run from 'ember-metal/run_loop'; import { observer } from 'ember-metal/mixin'; import { set } from 'ember-metal/property_set'; import { bind } from 'ember-metal/binding'; import { beginPropertyChanges, end...
run(function() {
<|file_name|>Autonomous.java<|end_file_name|><|fim▁begin|>/* To Do: Fix Reverse Driving Make only one side fire (right) */ /* Copyright (c) 2014, 2015 Qualcomm Technologies Inc All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject...
<|file_name|>relations.js<|end_file_name|><|fim▁begin|>var pub = {}, Q, Knex; module.exports = function ($inject) { $inject = $inject || {}; Q = $inject.Q; Knex = $inject.Knex; return pub; }; pub.get = function(tableName) { var q = Q.defer(); pub.getMetadata(tableName) .then...
'AND KCU1.CONSTRAINT_NAME = RC.CONSTRAINT_NAME ' + 'AND KCU1.TABLE_NAME = RC.TABLE_NAME ' + 'INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS KCU2 ' + 'ON KCU2.CONSTRAINT_CATALOG = RC.UNIQUE_CONSTRAINT_CATAL...
<|file_name|>block.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/. */ //! Layout for CSS block-level elements. //! //! As a terminolo...
(MaybeAuto::Auto, MaybeAuto::Auto, MaybeAuto::Specified(block_size)) => { let margin_block_start = block_start_margin.specified_or_zero();
<|file_name|>issue-81218.rs<|end_file_name|><|fim▁begin|>// Regression test for #81218 // // check-pass <|fim▁hole|>#![forbid(warnings)] #[allow(unused_variables)] fn main() { // We want to ensure that you don't get an error // here. The idea is that a derive might generate // code that would otherwise tri...
<|file_name|>getCtor.js<|end_file_name|><|fim▁begin|>'use strict'; // MODULES // var ctor = require( './ctor.js' ); // VARIABLES // var CACHE = require( './cache.js' ).CTORS; // GET CTOR // /** * FUNCTION: getCtor( dtype, ndims )<|fim▁hole|>* * @param {String} dtype - underlying ndarray data type * @param {Numb...
* Returns an ndarray constructor.
<|file_name|>pys_define.py<|end_file_name|><|fim▁begin|>#!/bin/env python # -*- coding: utf-8 -*- PYS_SERVICE_MOD_PRE='pys_' # 模块名称的前缀<|fim▁hole|><|fim▁end|>
PYS_HEAD_LEN=12 # 报文头长度 PYS_MAX_BODY_LEN=10485760 # 最大报文长度
<|file_name|>iter.rs<|end_file_name|><|fim▁begin|>//! Definitions of a bunch of iterators for `[T]`. #[macro_use] // import iterator! and forward_iterator! mod macros; use crate::cmp; use crate::cmp::Ordering; use crate::fmt; use crate::intrinsics::{assume, exact_div, unchecked_sub}; use crate::iter::{FusedIterator, ...
impl<'a, T> Iterator for ChunksExact<'a, T> { type Item = &'a [T]; #[inline]
<|file_name|>Expedia.py<|end_file_name|><|fim▁begin|>import re import urllib.request import logging import math from bs4 import BeautifulSoup from Vacation import VacationPackage, Departures, Destinations, Duration ALL_PAGES = True DEPARTURE_MAPPING = { Departures.OTTAWA: "YOW" } DEPARTURE_CITY_MAPPING = { ...
class ExpediaVacation_request:
<|file_name|>0007_comments_comment_author.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('SocialNetworkModels', '0006_remove_comments_post_author'), ] ...
migrations.AddField(
<|file_name|>subscription_tracking.py<|end_file_name|><|fim▁begin|>class SubscriptionTracking(object): def __init__(self, enable=None, text=None, html=None, substitution_tag=None): self._enable = None self._text = None self._html = None self._substitution_tag = None if enab...
if self.text is not None: subscription_tracking["text"] = self.text
<|file_name|>asteroids.js<|end_file_name|><|fim▁begin|>//asteroid clone (core mechanics only) //arrow keys to move + x to shoot var bullets; var asteroids; var ship; var shipImage, bulletImage, particleImage; var MARGIN = 40; function setup() { createCanvas(800, 600); bulletImage = loadImage('assets/asteroids_bu...
drawSprites(); }
<|file_name|>shell_utils.py<|end_file_name|><|fim▁begin|>"""Set of utility functions for working with OS commands. Functions in this module return the command string. These commands are composed but not executed. """ import os from subprocess import call HADOOP_CONF_DIR = '/etc/hadoop/conf' def encrypt(key_file):...
def decompress(extension):
<|file_name|>frontmatter.rs<|end_file_name|><|fim▁begin|>use std::fmt; use cobalt_config::DateTime; use cobalt_config::SourceFormat; use liquid; use serde::Serialize; use super::pagination; use crate::error::Result; #[derive(Debug, Eq, PartialEq, Default, Clone, Serialize)] #[serde(deny_unknown_fields, default)] pub...
let collection = collection.unwrap_or_default(); let permalink = permalink.unwrap_or_default();
<|file_name|>test_openid_provider.py<|end_file_name|><|fim▁begin|>#-*- encoding=utf-8 -*- ''' Created on Jan 18, 2013 @author: brian ''' import openid from openid.fetchers import HTTPFetcher, HTTPResponse from urlparse import parse_qs, urlparse from django.conf import settings from django.test import TestCase, LiveSe...
# now we can begin the login process by invoking a local openid client, # with a pointer to the (also-local) openid provider: with self.settings(OPENID_SSO_SERVER_URL=abs_provider_url):
<|file_name|>basis.js<|end_file_name|><|fim▁begin|>import BasisDrawerCloseZone from './_drawer-close-zone.js'; import BasisDrawer from './_drawer.js'; import BasisHamburgerBtn from './_hamburger-btn.js'; import BasisNavbar from './_navbar.js'; import BasisPageEffect from './_page-effect.js'; document.addEventListener(...
);
<|file_name|>test_hyperbolic.py<|end_file_name|><|fim▁begin|>from sympy import symbols, Symbol, sinh, nan, oo, zoo, pi, asinh, acosh, log, sqrt, \ coth, I, cot, E, tanh, tan, cosh, cos, S, sin, Rational, atanh, acoth, \ Integer, O, exp, sech, sec, csch from sympy.utilities.pytest import raises def test_sinh(...
<|file_name|>video-controls-ws.component.ts<|end_file_name|><|fim▁begin|>import { Component } from '@angular/core';<|fim▁hole|> selector: 'fo-video-controls-ws', templateUrl: 'video-controls-ws.component.html', styleUrls: ['video-controls-ws.component.css'] }) export class VideoControlsWSComponent { constructor...
import { VideoPlayerService, VideoPlayerSignals } from '../video-player.service'; @Component({ moduleId: module.id,
<|file_name|>test_values.py<|end_file_name|><|fim▁begin|>import decimal import os from contextlib import contextmanager from django.test import TestCase from django.core.exceptions import ImproperlyConfigured from mock import patch from configurations.values import (Value, BooleanValue, IntegerValue, ...
with env(DJANGO_TEST='2'):
<|file_name|>test_crop_op.py<|end_file_name|><|fim▁begin|># Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www....
def test_check_output(self):
<|file_name|>0084_auto_20180215_0747.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-02-15 07:47 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('studygroups', '0083_auto_20180209_1210'), ] <|fim▁hole|> operat...
<|file_name|>ui_more.cpp<|end_file_name|><|fim▁begin|>/* Copyright (c) 2006-2013, Alexis Royer, http://alexis.royer.free.fr/CLI All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
// Nothing to do.
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>__author__ = 'michogarcia' from setuptools import setup, find_packages version = '0.1' setup(name='FullDiskAlert', version=version, author="Micho Garcia", author_email="micho.garcia@geomati.co", license="LICENSE.txt", description="Sends...
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>extern crate piston; // piston core extern crate graphics; // piston graphics extern crate glutin_window; // opengl context creation extern crate opengl_graphics; // opengl binding //extern crate find_folder; // for finding our assets folder. extern crate time; extern ...
extern crate nalgebra; // has some neat matrices, vectors and points
<|file_name|>RemoveBtn.js<|end_file_name|><|fim▁begin|>import React, { PropTypes } from 'react' import ActionDelete from 'material-ui/svg-icons/action/delete' import { colors } from '/styles' import moduleStyles from '/styles/fileTree' const RemoveBtn = ({ onClick }) => ( <ActionDelete onClick={o...
export default RemoveBtn
<|file_name|>15.2.3.13-2-5.js<|end_file_name|><|fim▁begin|><|fim▁hole|>/*--- es5id: 15.2.3.13-2-5 description: Object.isExtensible returns true for all built-in objects (String) ---*/ var e = Object.isExtensible(String); assert.sameValue(e, true, 'e');<|fim▁end|>
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file.
<|file_name|>RssLED.py<|end_file_name|><|fim▁begin|>import feedparser import time # Create display instance on default I2C address (0x70) and bus number. from Adafruit_LED_Backpack import AlphaNum4 display = AlphaNum4.AlphaNum4() # Initialize the display. Must be called once before using the display. display.begin() ...
display.write_display()
<|file_name|>ipam_non_pluggable_backend.py<|end_file_name|><|fim▁begin|># Copyright (c) 2015 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...
p = port['port']
<|file_name|>dbw_test.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import os import csv import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport ''' You can use this file to test your DBW code against a bag recorded with a reference implemen...
writer.writerows(self.steer_data) with open(self.throttlefile, 'w') as csvfile: writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
<|file_name|>bitcoin_es_CL.ts<|end_file_name|><|fim▁begin|><TS language="es_CL" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Haga clic para editar la dirección o etiqueta</translation> </message> <messa...
<name>OverviewPage</name>
<|file_name|>genericcomicreader.py<|end_file_name|><|fim▁begin|><|fim▁hole|># This file is part of weboob. # # weboob 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, either version 3 of the License, or ...
# -*- coding: utf-8 -*- # Copyright(C) 2010-2011 Noé Rubinstein #
<|file_name|>ReliabilityTest.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 yo...
//to protect against the case of jobs failing even when multiple attempts
<|file_name|>paper-dialog.html.0.js<|end_file_name|><|fim▁begin|><|fim▁hole|> var dialog = fixture('basic'); assert.equal(dialog.getAttribute('role'), 'dialog', 'has role="dialog"'); }); });<|fim▁end|>
suite('a11y', function() { test('dialog has role="dialog"', function() {
<|file_name|>projectstatus_test.go<|end_file_name|><|fim▁begin|>package describe import ( "strings" "testing" "time" kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/api/errors" ktestclient "github.com/GoogleCloudPlatform/kubernetes/pkg/client/testclient" ...
ErrFn: func(err error) bool { return errors.IsNotFound(err) }, }, "empty project with display name": { Extra: []runtime.Object{
<|file_name|>infinitum_sq.ts<|end_file_name|><|fim▁begin|><TS language="sq" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Kliko me të djathtën për të ndryshuar adresën ose etiketen.</translation> </message> ...
<message> <source>&amp;Label:</source> <translation>&amp;Etiketë:</translation> </message>
<|file_name|>Channel.py<|end_file_name|><|fim▁begin|>from PIL import Image class Channel: def __init__(self, channelLabel, size): <|fim▁hole|> self.channelLabel = channelLabel self.channel = Image.new("CMYK", (size[0], size[1]), "black") self.pixelMap = self.channel.load() def ...
<|file_name|>sr-latn.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'basicstyles', 'sr-latn', { bold: 'Podebljano', italic: 'Kurziv', strike: '...
} );
<|file_name|>history-assistant.js<|end_file_name|><|fim▁begin|>function HistoryAssistant() { } HistoryAssistant.prototype.setup = function() { this.appMenuModel = { visible: true, items: [ { label: $L("About"), command: 'about' }, { label: $L("Help"), command: 'tutorial' }, ] }; this.controller.setupWid...
<|file_name|>factory.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # This file is part of HEPData. # Copyright (C) 2016 CERN. # # HEPData 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 vers...
from . import config
<|file_name|>ContactsMenuDO.java<|end_file_name|><|fim▁begin|>package com.wodejia.myapp.data.contacts; import java.io.Serializable; /** * Created by clarence on 16/9/2. */ public class ContactsMenuDO implements Serializable { private int key; private String value; private String title; public int ...
<|file_name|>qp.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Fri Nov 15 15:55:28 2013 @author: dyanna """ import numpy as np from sklearn.svm import SVC def getSample(pointA, pointB, numberOfPoints): pointList = list(zip(np.random.uniform(-1,1.00,numberOfPoints),np.random.uniform(-1,1.0...
approxavgQP = list()
<|file_name|>redis_kv.py<|end_file_name|><|fim▁begin|># (c) 2012, Jan-Piet Mens <jpmens(at)gmail.com> # (c) 2017 Ansible Project # 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) __metaclass__ = type DOCUMENTA...
res = conn.get(key) if res is None:
<|file_name|>alias1.go<|end_file_name|><|fim▁begin|>// Copyright 2015 Dmitry Vyukov. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // run // Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-sty...
case int: // ok
<|file_name|>wrapper_test_71.cpp<|end_file_name|><|fim▁begin|>#include "Halide.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #include "wrapper_test_71.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } // extern "C" #endif // We assume that the increment is 1. void reference_sax...
Halide::Buffer<float> y(SIZE, "y"); init_buffer(x, (float)1); init_buffer(y, (float)1);
<|file_name|>moreLikeThis.go<|end_file_name|><|fim▁begin|>// Copyright 2013 Matthew Baird // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.<|fim▁hole|>// You may obtain a copy of the License at // http://www.apache.org/licenses/LIC...
<|file_name|>LSTM2.py<|end_file_name|><|fim▁begin|>from __future__ import print_function import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.contrib import rnn import time from datetime import timedelta # Import MNIST data import matplotlib.pyplot as plt from tensorflow.examples.tutorials.mnist impo...
# Network Parameters
<|file_name|>callbacks.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from __future__ import print_function import theano import theano.tensor as T import numpy as np import time, json, warnings from collections import deque from .utils.generic_utils import Progbar class CallbackList(object...
<|file_name|>client.py<|end_file_name|><|fim▁begin|>from simpletcp.clientsocket import ClientSocket s1 = ClientSocket("localhost", 5000) response = s1.send("Hello, World!") s2 = ClientSocket("localhost", 5000, single_use=False) r1 = s2.send("Hello for the first time...") r2 = s2.send("...and hello for the last!") s2....
print("s1 received\t\t{}".format(response.decode("UTF-8"))) print("-------------------------------------------------") print("s2 sent\t\tHello for the first time....")
<|file_name|>age.js<|end_file_name|><|fim▁begin|>import config from '../components/configLoader'; import { addToDefaultPluginDOM } from '../components/helpers';<|fim▁hole|> const pluginConfig = config.plugins.find(obj => obj.name === 'age'); // DOM setup const pluginId = 'js-plugin-age'; addToDefaultPluginDOM(pluginI...
<|file_name|>constants.rs<|end_file_name|><|fim▁begin|>pub const ENV_RPC_ADDR: &str = "RPC_ADDR"; pub const ENV_RPC_PASSWORD: &str = "RPC_PASSWORD"; pub const STATE_FILE_NAME: &str = "client_state.xml";<|fim▁hole|>pub const ALL_PROJECTS_LIST_FILENAME: &str = "all_projects_list.xml";<|fim▁end|>
<|file_name|>helpers.go<|end_file_name|><|fim▁begin|>/* Copyright 2014 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless...
if !containsAccessMode(accessModes, m) { accessModes = append(accessModes, m) }
<|file_name|>vtkRuledSurfaceFilter.py<|end_file_name|><|fim▁begin|># class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkRuledSurfaceFilter(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClas...
('vtkPolyData',), ('vtkPolyData',), replaceDoc=True,
<|file_name|>jquery.bootstrap.wizard.js<|end_file_name|><|fim▁begin|>/*! * jQuery twitter bootstrap wizard plugin * Examples and documentation at: http://github.com/VinceG/twitter-bootstrap-wizard * version 1.0 * Requires jQuery v1.3.2 or later * Dual licensed under the MIT and GPL licenses: * http://www.opensour...
};
<|file_name|>validator.js<|end_file_name|><|fim▁begin|>var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descri...
<|file_name|>loghandler.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # DummyMP - Multiprocessing Library for Dummies! # Copyright 2014 Albert Huang. # # 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...
Queue object.""" try: # Format: [ [queueMsgID, PID, internal PID], record ] self.queue.put([[config.DUMMYMP_LOG_ID, os.getpid(), self.int_pid], record])
<|file_name|>list_multipart_uploads_request_response.go<|end_file_name|><|fim▁begin|>// Copyright (c) 2016, 2018, 2019, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. package objectstorage import ( "github.com/oracle/oci-go-sdk/common" "net/http" ) // ListMultipartUploadsRequest...
// Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. OpcClientRequestId *string `presentIn:"header" name:"opc-client-request-id"`
<|file_name|>ctl_gateway.rs<|end_file_name|><|fim▁begin|>//! Utilities for generating and reading the self-signed certificate for use with the control //! gateway. use crate::{crypto::keys::NamedRevision, tls::rustls_wrapper::{self, Error as RustlsReadersError}}; use rcgen...
#[derive(Error, Debug)] pub enum Error { #[error("ctl gateway TLS file lookup failed when trying to match files {0}")]
<|file_name|>EtsyProduct_20170624130727.js<|end_file_name|><|fim▁begin|>import React from 'react' import '../../styles/gkm-item.scss'; import ProductItem from './ProductItem' import Input from '../Common/Input' import SearchBar from '../SearchBar'; import _ from 'lodash' class EtsyProduct extends React.Component { ...
<|file_name|>ProbesListSetupAction.java<|end_file_name|><|fim▁begin|>/** * Copyright (c) 2009--2010 Red Hat, Inc. * * This software is licensed to you under the GNU General Public License, * version 2 (GPLv2). There is NO WARRANTY for this software, express or * implied, including the implied warranties of MERCHAN...
*
<|file_name|>submenu_test.js<|end_file_name|><|fim▁begin|>// Copyright 2008 The Closure Library 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 // // ht...
<|file_name|>21e4e35689f6_bug_993786_update_crash_adu_by_build_.py<|end_file_name|><|fim▁begin|>"""bug 993786 - update_crash_adu_by_build_signature-bad-buildids Revision ID: 21e4e35689f6<|fim▁hole|>""" # revision identifiers, used by Alembic. revision = '21e4e35689f6' down_revision = '224f0fda6ecb' from alembic impo...
Revises: 224f0fda6ecb Create Date: 2014-04-08 18:46:19.755028
<|file_name|>parse.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import re import string import sys import os USAGE = 'USAGE: parse.y <player.h> <playercore_casts.i> <playercore_arraysofclasses.i> <Jplayercore> <playercore> <player.java>' if __name__ == '__main__': if len(sys.argv) != 7: print USAGE ...
varstring = arraypattern.sub('', varstring) if jtype == 'char': jfile.write(' public String ' + varstring + ';\n') else:
<|file_name|>strsync.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # strsync - Automatically translate and synchronize .strings files from defined base language. # Copyright (c) 2015 metasmile cyrano905@gmail.com (github.com/metasmile) from __future__ import print_function import strparser, strparser_intentd...
# remove - file for removed_file in removed_files: print('Removing File... {0}'.format(removed_file)) if remove_file(removed_file):
<|file_name|>FindFragment.java<|end_file_name|><|fim▁begin|>/** * Copyright 2016 JustWayward Team * <p><|fim▁hole|> * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable...
* Licensed under the Apache License, Version 2.0 (the "License");
<|file_name|>protocol.go<|end_file_name|><|fim▁begin|>package liverpc import "encoding/json" const (<|fim▁hole|> _cmdReqType = byte('0') ) type protoHeader struct { magic uint32 timestamp uint32 checkSum uint32 version uint32 reserved uint32 seq uint32 length uint32 cmd []byte } type...
_magic = 2233 _headerLen = 60
<|file_name|>build.rs<|end_file_name|><|fim▁begin|>use std::path::Path; use std::process::Command; static AFL_SRC_PATH: &str = "AFLplusplus"; <|fim▁hole|>// https://github.com/rust-fuzz/afl.rs/issues/148 #[cfg(target_os = "macos")] static AR_CMD: &str = "/usr/bin/ar"; #[cfg(not(target_os = "macos"))] static AR_CMD: &s...
<|file_name|>compositor_thread.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/. */ //! Communication with the compositor thread. use ...
<|file_name|>silverlight_attach.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.gfx.silverlight_attach"]){ //_...
<|file_name|>unwind-box.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. //<|fim▁hole|>// option. This file may not be copied, modified, or distributed // except according to...
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
<|file_name|>conf.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Django Diário documentation build configuration file, created by # sphinx-quickstart v0.5.2. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in ...
#html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False
<|file_name|>sets.py<|end_file_name|><|fim▁begin|># coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import logging from pymatgen.core import Molecule from pymatgen.io.qchem_io.inputs import QCInput from pymatgen.io.qchem_io.utils import lower_and_check_unique ...
geom_opt_max_cycles (int)
<|file_name|>aws_codecommit.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Shuang Wang <ooocamel@icloud.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'status': ['preview'], 'sup...
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>extern crate rusoto; use std::{thread, time}; use rusoto::rds::{RdsClient, CreateDBInstanceMessage, DescribeDBInstancesMessage}; use rusoto::{DefaultCredentialsProvider, Region}; use rusoto::default_tls_client; fn main() { let database_instance_name = "rusototest...
<|file_name|>connections.py<|end_file_name|><|fim▁begin|>from __future__ import (absolute_import, print_function, division) import itertools import time import hyperframe.frame from hpack.hpack import Encoder, Decoder from netlib import utils from netlib.http import url import netlib.http.headers import netlib.http.r...
import netlib.http.request from netlib.http.http2 import framereader
<|file_name|>commonUtils.js<|end_file_name|><|fim▁begin|>var functions = {} functions.evaluateSnapshotType = function (name) { var splittedName = name.split('-') var type = splittedName[splittedName.length - 1].split('.')[0] return type === 'motion' ? type : type === 'snapshot' ? 'periodic' : 'unknown' }<|fim▁h...
<|file_name|>yui-rls-debug.js<|end_file_name|><|fim▁begin|>/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undef...
n.onload = function() {
<|file_name|>test_replace.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import re from pandas.compat import (zip, range, lrange, StringIO) from pandas import (DataFrame, Series, Index, date_range, compat, Timestamp) imp...
expected = df.copy() for i in range(len(to_rep)):
<|file_name|>res_company.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, _ class ResCompany(models.Model): _inherit = "res.company" @api.model def create(self, vals): new_company = su...
return new_company
<|file_name|>x86.rs<|end_file_name|><|fim▁begin|>#[repr(C)] #[derive(Copy)] pub struct glob_t { pub gl_pathc: ::size_t, pub gl_pathv: *mut *mut ::schar_t, pub gl_offs: ::size_t, pub gl_flags: ::int_t, pub gl_closedir: fn(*mut ::void_t, ), pub gl_readdir: fn(*mut ::void_t, ) -> *mut ::void_t, ...
pub const GLOB_MARK: ::int_t = (1 << 1);
<|file_name|>gulpfile.js<|end_file_name|><|fim▁begin|>var gulp = require('gulp'); var mocha = require('gulp-mocha'); var istanbul = require('gulp-istanbul'); var eslint = require('gulp-eslint'); var coveralls = require('gulp-coveralls'); gulp.task('pre-test', function () { return gulp.src(['lib/**/*.js', '!lib/micro...
}); gulp.task('test', ['lint', 'pre-test'], function () {
<|file_name|>hash_standard_resize_policy_imp.hpp<|end_file_name|><|fim▁begin|>// -*- C++ -*- // Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of...
{
<|file_name|>strings.js<|end_file_name|><|fim▁begin|>/*global define*/<|fim▁hole|> "description": "座標グリッド オーバーレイを表示するカスタム Web AppBuilder ウィジェットです。" });<|fim▁end|>
define({ "_widgetLabel": "グリッド オーバーレイ",
<|file_name|>entry.py<|end_file_name|><|fim▁begin|>from mitra import db class Entry(db.Model): id = db.Column(db.Integer, primary_key=True) category_name = db.Column(db.String(120), db.ForeignKey('category.name')) userid = db.Column(db.Integer, db.ForeignKey('user.id')) date = db.Column(db.Date) na...
self.category_name = category self.date = date
<|file_name|>simple_resize.py<|end_file_name|><|fim▁begin|>import logging import pygame from .. import Collage<|fim▁hole|>class SimpleResize(Collage): """ Example class for collage plugins - Takes a single image and resizes it """ name = 'simple resize' def __init__(self, config):...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>mod clicked_not_mango; mod clicked_was_mango;<|fim▁hole|><|fim▁end|>
mod not_clicked_not_mango; mod not_clicked_was_mango;
<|file_name|>issue-2834.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/lice...
error!("%?", streams[0]);