prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>edittime.js<|end_file_name|><|fim▁begin|><|fim▁hole|>function GetBehaviorSettings() { return { "name": "Replacer", "id": "Rex_Replacer", "description": "Replace instancne by fade-out itself, and create the target instance then fade-in it.", "author": "Rex.Rainbow", "help url": "https://dl...
<|file_name|>root.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 https://mozilla.org/MPL/2.0/. */ //! Smart pointers for the JS-managed DOM objects. //! //! The ...
impl<T> Deref for Root<T>
<|file_name|>hexView.py<|end_file_name|><|fim▁begin|># DFF -- An Open Source Digital Forensics Framework # Copyright (C) 2009 ArxSys # # This program is free software, distributed under the terms of # the GNU General Public License Version 2. See the LICENSE file # at the top of the source tree. # # See http://www.di...
#Init Items
<|file_name|>cluster.rs<|end_file_name|><|fim▁begin|>//! This modules contains an implementation of [r2d2](https://github.com/sfackler/r2d2)<|fim▁hole|>use std::iter::Iterator; use query::QueryBuilder; use client::{CDRS, Session}; use error::{Error as CError, Result as CResult}; use authenticators::Authenticator; use c...
//! functionality of connection pools. To get more details about creating r2d2 pools //! please refer to original documentation.
<|file_name|>convert.rs<|end_file_name|><|fim▁begin|>// Copyright 2016 TiKV Project Authors. Licensed under Apache-2.0. use std::borrow::Cow; use std::fmt::Display; use std::{self, char, i16, i32, i64, i8, str, u16, u32, u64, u8}; // use crate::{self, FieldTypeTp, UNSPECIFIED_LENGTH}; use crate::{Collation, FieldType...
};
<|file_name|>run.tsx<|end_file_name|><|fim▁begin|>import 'chrome-extension-async' import { getHosts, getHostKey, findMatchedHosts } from 'libs' const baseURL = chrome.runtime.getURL('base.js') const isValidURL = (url) => { return ( url && (url.startsWith('//') || url.startsWith('https://') || ur...
<|file_name|>ifaceprom.go<|end_file_name|><|fim▁begin|>package main // Test of promotion of methods of an interface embedded within a // struct. In particular, this test exercises that the correct // method is called. type I interface { one() int two() string } type S struct { I } type impl struc...
}
<|file_name|>tst_qguivariant.cpp<|end_file_name|><|fim▁begin|>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved.<|fim▁hole|>** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN...
** Contact: Nokia Corporation (qt-info@nokia.com) **
<|file_name|>sensors.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # MODIFIED FROM ORIGINAL VERSION # # This file is not the same as in pypi. It includes a pull request to fix py3 # incompabilities that never...
import os from ctypes import CDLL, c_char_p, c_int, c_void_p, c_uint, c_double, byref, Structure, get_errno,\ POINTER, c_short, c_size_t, create_string_buffer
<|file_name|>forms.py<|end_file_name|><|fim▁begin|>from flask.ext.wtf import Form from wtforms import TextField, TextAreaField, SubmitField, PasswordField, validators, ValidationError, SelectField class AWSIEFormFields(Form): deviceId = TextField(u'Device ID', validators=[validators.required()]) notificationE...
typeOfExport = SelectField(u'Type of Export', choices=[('', ''), ('return', 'return'), ('permanent', 'permanent'), ('temporary', 'temporary')])
<|file_name|>SetRasterStyle.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ *************************************************************************** SetRasterStyle.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email ...
def initAlgorithm(self, config=None): self.addParameter(QgsProcessingParameterRasterLayer(self.INPUT,
<|file_name|>clean.py<|end_file_name|><|fim▁begin|>""" Functions performing URL trimming and cleaning """ ## This file is available from https://github.com/adbar/courlan ## under GNU GPL v3 license import logging import re from collections import OrderedDict from urllib.parse import parse_qs, urlencode, urlparse, Pa...
else:
<|file_name|>views.py<|end_file_name|><|fim▁begin|>import HTMLParser import json from xml.etree import ElementTree from django.conf import settings from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse, HttpResponseBadRequest, Http40...
# "view/:app/:module/:form/parent/:parent/case/:case/
<|file_name|>unhygienic_example.rs<|end_file_name|><|fim▁begin|>#![crate_type = "lib"] extern crate my_crate;<|fim▁hole|> #[macro_export] macro_rules! unhygienic_macro { () => { // (1) unhygienic: depends on `my_crate` in the crate root at the invocation site. ::my_crate::f(); // (2) unhyg...
pub fn g() {} // (a)
<|file_name|>test_libwordlist.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # diceware_list -- generate wordlists for diceware # Copyright (C) 2016-2019. Uli Fouquet # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
<|file_name|>editorsettingscomments.cpp<|end_file_name|><|fim▁begin|>////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // copyright : (C) 2008 by Eran Ifrah // file name : editorsetti...
// // F i l e //
<|file_name|>game.py<|end_file_name|><|fim▁begin|># Copyright 2010, 2014 Gerardo Marset <gammer1994@gmail.com> # # This file is part of Haxxor Engine. # # Haxxor Engine is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by ...
<|file_name|>deployment.go<|end_file_name|><|fim▁begin|>package deploy import ( "github.com/drone/drone/plugin/condition" "github.com/drone/drone/shared/build/buildfile" "github.com/drone/drone/shared/build/repo" "github.com/drone/drone/plugin/deploy/deis" "github.com/drone/drone/plugin/deploy/git" "github.com/...
d.Tsuru.Write(f)
<|file_name|>ogr_gpsbabel.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python ############################################################################### # $Id: ogr_gpsbabel.py 33793 2016-03-26 13:02:07Z goatbar $ # # Project: GDAL/OGR Test Suite # Purpose: Test read functionality for OGR GPSBabel driver. # Aut...
gdaltest.run_tests( gdaltest_list ) gdaltest.summarize()
<|file_name|>Thread.java<|end_file_name|><|fim▁begin|>package com.sissi.protocol.message; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlValue; import com.sissi.io.read.Metadata; /** * @author kim 2014年1月28日 */ @Metadata(uri = Mes...
} public Thread(String text, String parent) {
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>from django.contrib import admin from attachments.admin import AttachmentInlines from tasks.models import Task class TaskOptions(admin.ModelAdmin): inlines = [AttachmentInlines]<|fim▁hole|>admin.site.register(Task, TaskOptions)<|fim▁end|>
<|file_name|>machine-operator-reducer-unittest.cc<|end_file_name|><|fim▁begin|>// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/base/bits.h" #include "src/base/division-by-constant.h" #in...
graph()->NewNode(machine()->Word32Shl(), value, Int32Constant(k)); Node* shr = graph()->NewNode(machine()->Word32Shr(), value, Int32Constant(32 - k));
<|file_name|>App.js<|end_file_name|><|fim▁begin|>import React from "react" import Presentation from "./Presentation" import Icon from 'material-ui/Icon' import IconButton from 'material-ui/IconButton' import Grid from 'material-ui/Grid' import Typography from 'material-ui/Typography' import { colors } from "../themes/c...
case MODES.HELP: return this.renderHelp() default: return (
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from transmute_core import * # from .handler import convert_to_handler # from .route import route from .route_set import RouteSet<|fim▁hole|>from .swagger import add_swagger<|fim▁end|>
from .url import url_spec
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python ################################################################################ # GIPS: Geospatial Image Processing System # # AUTHOR: Matthew Hanson # EMAIL: matt.a.hanson@gmail.com # # Copyright (C) 2014-2018 Applied Geosolution...
# (at your option) any later version.
<|file_name|>connection.rs<|end_file_name|><|fim▁begin|>// Distributed under the OSI-approved BSD 3-Clause License. // See accompanying LICENSE file for details. use crates::dbus_bytestream::connection; use error::*; use message::{Message, MessageType}; use value::{BasicValue, Value}; bitflags! { /// Flags for u...
/// Release a name on the bus. pub fn release_name(&self, name: &str) -> Result<ReleaseNameReply> { // TODO: Use an actual struct with an API for this. let msg = Message::new_method_call("org.freedesktop.DBus",
<|file_name|>from_form_value.rs<|end_file_name|><|fim▁begin|>use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6, SocketAddr}; use std::str::FromStr; use http::RawStr; /// Trait to create instance of some type from a form value; expected from field<|fim▁hole|>/// /// When deriving the `FromForm` tra...
/// types in structs deriving `FromForm`.
<|file_name|>user_03.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Yue-Wen FANG' __maintainer__ = "Yue-Wen FANG" __email__ = 'fyuewen@gmail.com' __license__ = 'Apache License 2.0' __creation_date__= 'Dec. 28, 2018' """ 9-3. Users: Make a class called User . Create two att...
<|file_name|>101_test.py<|end_file_name|><|fim▁begin|>from fruits import validate_fruit fruits = ["banana", "lemon", "apple", "orange", "batman"] print fruits def list_fruits(fruits, byName=True): if byName:<|fim▁hole|> # WARNING: this won't make a copy of the list and return it. It will change the list...
<|file_name|>dli_powerswitch_logs.py<|end_file_name|><|fim▁begin|># Copyright 2022 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 # # http://www.apache.org/licenses/LICENSE-2...
<|file_name|>languages.js<|end_file_name|><|fim▁begin|>// // Touches the DOM. // This file listens to events from the language selector and changes the // DOM to have the language requested. // Uses globals from chal-header.html. // // Selecting the current locale var selector = document.getElementById('lang-select') ...
var url = location.href.replace(/built\/([a-z]{2}-[A-Z]{2})/, 'built/' + selector.value) location.href = url
<|file_name|>cc-form.js<|end_file_name|><|fim▁begin|>/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /* @api */ define([ 'underscore', 'Magento_Checkout/js/view/payment/default', 'Magento_Payment/js/model/credit-card-validation/credit-card-data', 'Magen...
//Set expiration month to credit card data object this.creditCardExpMonth.subscribe(function (value) {
<|file_name|>tictactoe.py<|end_file_name|><|fim▁begin|># Tic Tac Toe # Tic Tac Toe import random def drawBoard(board): # This function prints out the board that it was passed. # "board" is a list of 10 strings representing the board (ignore index 0) print(' | |') print(' ' + board[7] + ' | ' + b...
return True
<|file_name|>XMLUtil.java<|end_file_name|><|fim▁begin|>/* Mesquite source code. Copyright 1997-2009 W. Maddison and D. Maddison. Version 2.7, August 2009. Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code. The commenting leaves much to be desire...
try {
<|file_name|>handler_test.go<|end_file_name|><|fim▁begin|>// Copyright 2015 Canonical Ltd. // Licensed under the LGPLv3, see LICENCE file for details. package debugstatus_test import ( "encoding/json" "net/http" jc "github.com/juju/testing/checkers" "github.com/juju/testing/httptesting" "github.com/juju/utils/d...
var debugPprofPaths = []string{ "/debug/pprof/",
<|file_name|>test_import_issues.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # test_import_issues.py - Test issue importing. # Copyright (C) 2008 by Drew Hess <dhess@bothan.net> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
row = rows.pop()
<|file_name|>bitcoin_el_GR.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Colossus</sour...
<translation>Αδύνατη η σύνδεση με τη θύρα %s αυτού του υπολογιστή. Το Colossus είναι πιθανώς ήδη ενεργό.</translation> </message>
<|file_name|>main-menu.js<|end_file_name|><|fim▁begin|>import { domReady, transitionFromClass, transitionToClass, readFileAsText } from '../utils'; import Spinner from './spinner'; import { EventEmitter } from 'events'; export default class MainMenu extends EventEmitter { constructor() { super(); th...
<|file_name|>space_userpref.py<|end_file_name|><|fim▁begin|># ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at ...
<|file_name|>build.rs<|end_file_name|><|fim▁begin|>// Copyright © 2015, Peter Atashian<|fim▁hole|> println!("cargo:rustc-flags=-l irprops"); }<|fim▁end|>
// Licensed under the MIT License <LICENSE.md> fn main() {
<|file_name|>abort_cache_test.go<|end_file_name|><|fim▁begin|>// Copyright 2014 The Cockroach 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/lice...
}
<|file_name|>wsgi.py<|end_file_name|><|fim▁begin|>""" WSGI config for bangkok project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_ws...
application = get_wsgi_application()
<|file_name|>_match.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/lic...
<|file_name|>old_test.rs<|end_file_name|><|fim▁begin|>use wtools::str; // // // #[test] // #[should_panic] // fn split_trivial() // { // let mut opts = str::split::default(); // opts.delimeter( vec![ "" ] ); // let got = str::split( &opts ); // let exp : Vec<&str> = vec![]; // assert_eq!( got, exp ); // } ...
<|file_name|>tests.py<|end_file_name|><|fim▁begin|># Copyright 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
def test_redirect_slash(self):
<|file_name|>migrate.py<|end_file_name|><|fim▁begin|>from venv import _venv from fabric.api import task @task def migrate(): """<|fim▁hole|> Run Django's migrate command """ _venv("python manage.py migrate") @task def syncdb(): """ Run Django's syncdb command """ _venv("python manage....
<|file_name|>tabs_with_multiselect.py<|end_file_name|><|fim▁begin|>from bokeh.io import save from bokeh.models import MultiSelect, Tabs select = MultiSelect(options=["First option", "Second option"]) tabs = Tabs(tabs=[("A tab", select)], width=300)<|fim▁hole|><|fim▁end|>
save(tabs)
<|file_name|>web.timers.js<|end_file_name|><|fim▁begin|><|fim▁hole|>var $ = require('./$'), $def = require('./$.def'), invoke = require('./$.invoke'), partial = require('./$.partial'), navigator = $.g.navigator, MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); function wrap(set) { retur...
/* */
<|file_name|>1.4.1.py<|end_file_name|><|fim▁begin|>#coding:utf-8 ''' 第一种方式:使用os模块中的fork方式实现多进程 import os if __name__ == '__main__': print 'current Process (%s) start ...'%(os.getpid()) pid = os.fork() if pid < 0: print 'error in fork' elif pid == 0: print 'I am child process(%s) and my ...
q = Queue()
<|file_name|>0018_merge.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models <|fim▁hole|> ('clients', '0015_auto_20151025_1209'), ] operations = [ ]<|fim▁end|>
class Migration(migrations.Migration): dependencies = [ ('clients', '0017_auto_20151025_1240'),
<|file_name|>left_encoder.py<|end_file_name|><|fim▁begin|>import pigpio<|fim▁hole|>class LeftEncoder: def __init__(self, pin=24): self.pi = pigpio.pi() self.pin = pin self.pi.set_mode(pin, pigpio.INPUT) self.pi.set_pull_up_down(pin, pigpio.PUD_UP) cb1 = self.pi.callback(pin...
import time
<|file_name|>expr_method.rs<|end_file_name|><|fim▁begin|>// Copyright 2016 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/lic...
fn main() { }
<|file_name|>option.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/lic...
<|file_name|>1147.py<|end_file_name|><|fim▁begin|>from collections import defaultdict class Solution: def longestDecomposition(self, text: str) -> int: num = 0 L = len(text) l, r = 0, L - 1 mp1 = defaultdict(int) mp2 = defaultdict(int) while l < r: mp1[t...
assert Solution().longestDecomposition("ghiabcdefhelloadamhelloabcdefghi") == 7 assert Solution().longestDecomposition("merchant") == 1
<|file_name|>ErrorDAO.js<|end_file_name|><|fim▁begin|>/*<|fim▁hole|> * * 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 requi...
* @license * Copyright 2015 Google Inc. All Rights Reserved.
<|file_name|>json.js<|end_file_name|><|fim▁begin|>'use strict';<|fim▁hole|>var _ = require('lodash'), jsonFormat = require('json-format'), grunt = require('grunt'); var util = require('../util/util'); module.exports = { json: function(data, options, generatedContent, callback){ if(_.isString(options.des...
<|file_name|>user.server.model.test.js<|end_file_name|><|fim▁begin|>'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'); /** * Globals */ var user, user2; /** * Unit tests */ describe.skip('User Model Unit Tests:', function...
<|file_name|>tartunlp_on_all_albums.py<|end_file_name|><|fim▁begin|>from django.core.management.base import BaseCommand from django.db.models import Q from ajapaik.ajapaik.models import Album class Command(BaseCommand): help = 'Connects to TartuNLP API and retrieves neuro machine translations for empty name fiel...
| Q(name_lv__isnull=False)
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|># this is the interface for `python archiver` import archiver import appdirs import os import sys import pickle import json from archiver.archiver import Archiver from archiver.parser import parseArgs args = parseArgs() from edit import edit # ===============...
with open(os.path.join(user_data_dir,name+".data"),'rb') as fh: data = pickle.load(fh) except Exception as e: print "Error reading index data"
<|file_name|>postgres.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ mchem.postgres ~~~~~~~~~~~~~~ Functions to build and benchmark PostgreSQL database for comparison. :copyright: Copyright 2014 by Matt Swain. :license: MIT, see LICENSE file for more details. """ from __future__ import print_function fr...
<|file_name|>config.py<|end_file_name|><|fim▁begin|>################################################################################ # This file is part of IMTAphy # _____________________________________________________________________________ # # Copyright (C) 2011 # Institute of Communication Networks (LKN) # Departm...
params.offeredDLtrafficBps = 1E7 # params.offeredULtrafficBps = 1E7 # packetSize = 500 # bytes
<|file_name|>utils.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python2.7 from dragonnest.settings import STATIC_ROOT from skills.models import * from PIL import Image, ImageDraw, ImageFont import os _ASCIIMAP = [chr(n) for n in ([45] + range(48, 58) + range(65, 91) + [95] + range(97, 123))] _ALPHABET = dict(zip(range(6...
# Get icon image path img_path = slevel[n][0].icon/100 img_path = 1 if img_path == 0 else img_path
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
mod tagged_index;
<|file_name|>VersionHandler.py<|end_file_name|><|fim▁begin|>#!/bin/python import re import sys import os from datetime import date class VersionHandler: def __init__(self, file): self.file = file self.major = 0 self.minor = 0 self.revision = 0 self.build = 1 self.touch() def read(self): try: f =...
<|file_name|>lib.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/. */ #![feature(append)] #![feature(arc_unique)] #![feature(as_unsafe_...
#![feature(str_utf16)] #![feature(unicode)] #![feature(vec_push_all)]
<|file_name|>configuration.test.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. ...
<|file_name|>line-weight-rounded.js<|end_file_name|><|fim▁begin|>import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", {<|fim▁hole|><|fim▁end|>
d: "M20 15H4c-.55 0-1 .45-1 1s.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1zm0-5H4c-.55 0-1 .45-1 1v1c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-1c0-.55-.45-1-1-1zm0-6H4c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm.5 15h-17c-.28 0-.5.22-.5.5s.22.5.5.5h17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5z" }), 'LineWeight...
<|file_name|>polyfills.ts<|end_file_name|><|fim▁begin|>/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted b...
/*
<|file_name|>network_management_client.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ...
self._client, self.config, self._serialize, self._deserialize) self.load_balancer_network_interfaces = LoadBalancerNetworkInterfacesOperations(
<|file_name|>GetUnitDetailAction.java<|end_file_name|><|fim▁begin|>package br.com.cmabreu.action; import java.io.IOException; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.StrutsStatics; import org.apache.struts2.convention.annotation.Action; import org.apache.struts2.convention.an...
import com.opensymphony.xwork2.ActionContext; @Action(value="getUnitDetail", results= { @Result(name="ok", type="httpheader", params={"status", "200"}) },
<|file_name|>issue-4427.rs<|end_file_name|><|fim▁begin|>const A: usize = // Some constant 2; <|fim▁hole|>const B: usize = /* constant */ 3; const C: usize = /* foo */ 5; const D: usize = // baz /* Some constant */ /* ba */ { 3 // foo }; const E: usize = /* foo */ 5; ...
<|file_name|>package-version-file-types-view.js<|end_file_name|><|fim▁begin|>/******************************************************************************\ | | | package-version-file-types-view.js | ...
})); } self.fileTypes.show( new FileTypesListView({
<|file_name|>GUserDao.java<|end_file_name|><|fim▁begin|>// ----------> GENERATED FILE - DON'T TOUCH! <---------- // generator: ilarkesto.mda.legacy.generator.DaoGenerator package scrum.server.admin; import java.util.*; import ilarkesto.persistence.*; import ilarkesto.core.logging.Log; import ilarkesto.base....
// ----------------------------------------------------------- // - color // -----------------------------------------------------------
<|file_name|>once-cant-call-twice-on-stack.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://...
<|file_name|>script.py<|end_file_name|><|fim▁begin|>def sum(*args): total = 0 for number in args: if isinstance(number, int): total += number return total<|fim▁hole|><|fim▁end|>
print(sum(1,5))
<|file_name|>big-impl-rfc.rs<|end_file_name|><|fim▁begin|>// rustfmt-fn_args_layout: Block // rustfmt-fn_call_style: Block // rustfmt-generics_indent: Block // rustfmt-where_style: Rfc // #1357 impl<'a, Select, From, Distinct, Where, Order, Limit, Offset, Groupby, DB> InternalBoxedDsl<'a, DB> for SelectStatement<S...
<|file_name|>app.js<|end_file_name|><|fim▁begin|>'use strict'; /* jshint node: true */ var logger = require('nlogger').logger(module); var express = require('express'); var _ = require('underscore'); var config = require('./config'); var poller = require('./poller'); var app = module.exports = express.createServer()...
res.setHeader('Cache-Control', 'public, max-age=' + 10); res.send(JSON.stringify(reports)); res.end(); });
<|file_name|>channel.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ channel.py :copyright: (c) 2015 by Fulfil.IO Inc. :license: see LICENSE for more details. """ from trytond.pool import PoolMeta from trytond.model import fields __all__ = ['Channel'] __metaclass__ = PoolMeta def submit_to_g...
def upload_products_to_google_merchant(cls):
<|file_name|>block_header.rs<|end_file_name|><|fim▁begin|>use Encode; use VarInt; #[derive(Debug, Encode, PartialEq)] /// 4 version int32_t Block version information (note, this is signed) /// 32 prev_block char[32] The hash value of the previous block this particular block references /// 32 merkle_root char[32] The r...
}
<|file_name|>PaginatedList.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # ########################## Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> ...
# Software Foundation, either version 3 of the License, or (at your option) # # any later version. #
<|file_name|>keys.go<|end_file_name|><|fim▁begin|>// Copyright 2015 The etcd 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 /...
ErrorCodePrevValueRequired = 201 ErrorCodeTTLNaN = 202 ErrorCodeIndexNaN = 203
<|file_name|>hostdev_test.py<|end_file_name|><|fim▁begin|># # Copyright 2014-2020 Red Hat, Inc. # # 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 2 of the License, or # (at your o...
'function': '0x0', 'type': 'pci'}} device = network.Interface(self.log, **dev_spec) self.assertXMLEqual( xmlutils.tostring(device.getXML()),
<|file_name|>fa.js<|end_file_name|><|fim▁begin|>OC.L10N.register( "templateeditor", { "Could not load template" : "امکان بارگذاری قالب وجود ندارد", "Saved" : "ذخیره شد", "Reset" : "تنظیم مجدد", "An error occurred" : "یک خطا رخ داده است", "Sharing email - public link shares (HTML)" : "ایمیل ا...
"Activity notification mail" : "ایمیل هشدار فعالیت", "Mail Templates" : "قالب‌های ایمیل", "Theme" : "تم", "Template" : "قالب",
<|file_name|>MyArgparse.py<|end_file_name|><|fim▁begin|># coding=utf-8 from __future__ import unicode_literals """ Name: MyArgparse Author: Andy Liu Email : andy.liu.ud@hotmail.com Created: 3/26/2015 Copyright: All rights reserved.<|fim▁hole|> as published by the Free Software ...
Licence: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
<|file_name|>gateway_types.go<|end_file_name|><|fim▁begin|>/* Copyright 2020 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 ...
<|file_name|>chat.js<|end_file_name|><|fim▁begin|>/* * author: the5fire * blog: the5fire.com * date: 2014-03-16 * */ $(function(){ WEB_SOCKET_SWF_LOCATION = "/static/WebSocketMain.swf"; WEB_SOCKET_DEBUG = true; var socket = io.connect(); socket.on('connect', function(){ console.log('connec...
content: content, topic_id: topic_id, });
<|file_name|>Vdemo.java<|end_file_name|><|fim▁begin|>package com.baomidou.hibernateplus.spring.vo; import java.io.Serializable; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import com.baomidou.hibernateplus.entity.Convert; /** * <p> * Vdemo * </p>...
return demo2; }
<|file_name|>tsan_mutex.cc<|end_file_name|><|fim▁begin|>//===-- tsan_mutex.cc -----------------------------------------------------===// // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------...
return; }
<|file_name|>mp3file.cpp<|end_file_name|><|fim▁begin|>/* id3ted: mp3file.cpp * Copyright (c) 2011 Bert Muennich <be.muennich at googlemail.com> * * 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 Foundat...
comment->setDescription(info->description()); comment->setLanguage(info->language()); id3v2Tag->addFrame(comment);
<|file_name|>dic.service.ts<|end_file_name|><|fim▁begin|>import {Service} from './index'; export class GetDicInfoService extends Service{ constructor(http) { super(http); } get(): Promise<any> { return this.post('getDicInfo', {}) .then(response => response.json().body) .catch(this.handleErro...
<|file_name|>target_machine.rs<|end_file_name|><|fim▁begin|>//! Target machine information, to generate assembly or object files. use super::prelude::*; use super::target::LLVMTargetDataRef; #[repr(C)] pub struct LLVMOpaqueTargetMachine; pub type LLVMTargetMachineRef = *mut LLVMOpaqueTargetMachine; #[repr(C)] pub st...
pub fn LLVMGetTargetFromTriple(Triple: *const ::libc::c_char, T: *mut LLVMTargetRef, ErrorMessage: *mut *mut ::libc::c_char) -> LLVMBool;
<|file_name|>plugin.py<|end_file_name|><|fim▁begin|>from Screens.Screen import Screen from Screens.MessageBox import MessageBox from Components.ActionMap import ActionMap from Components.ConfigList import ConfigListScreen from Components.MenuList import MenuList from Components.Sources.StaticText import StaticText from...
fnc = sessionAnimationSetup),
<|file_name|>hamming_distance.py<|end_file_name|><|fim▁begin|>def hamming(s,t): dist = 0 <|fim▁hole|> if s[x]!=t[x]: dist+=1 return dist<|fim▁end|>
for x in range(len(s)):
<|file_name|>CpuStats.java<|end_file_name|><|fim▁begin|>/*- * -\-\- * docker-client * -- * Copyright (C) 2016 Spotify AB * -- * 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|>admin.py<|end_file_name|><|fim▁begin|>''' from https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#specifying-a-custom-user-model ''' from django import forms from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import ReadOnlyPasswordH...
form = UserChangeForm
<|file_name|>PressureSensor.cpp<|end_file_name|><|fim▁begin|><|fim▁hole|> * * 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...
/* * Copyright (C) 2008 The Android Open Source Project
<|file_name|>commands.go<|end_file_name|><|fim▁begin|>package client import ( "bufio" "bytes" "encoding/base64" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" "os/exec" "path" "path/filepath" "runtime" "sort" "strconv" "strings" "sync" "text/tabwriter" "text/template" "...
<|file_name|>test_msgbox.py<|end_file_name|><|fim▁begin|># Copyright 2015-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify # it under the terms of the ...
import pytest
<|file_name|>DatasourcesImpl.java<|end_file_name|><|fim▁begin|>/* * IronJacamar, a Java EE Connector Architecture implementation * Copyright 2008, Red Hat Inc, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributo...
} @Override
<|file_name|>website_tour_forum.js<|end_file_name|><|fim▁begin|>odoo.define('website_forum.tour_forum', function (require) { 'use strict'; var core = require('web.core'); var Tour = require('web.Tour'); var _t = core._t; Tour.register({ id: 'question', name: _t("Create a question"), steps: [ { ...
popover: { next: _t("Start Tutorial"), end: _t("Skip It") },