prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>serverreflection.go<|end_file_name|><|fim▁begin|>/* * * Copyright 2016 gRPC 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/license...
} fd, err = s.decodeFileDesc(enc) if err != nil {
<|file_name|>nzbget.py<|end_file_name|><|fim▁begin|>from base64 import standard_b64encode from datetime import timedelta import re import shutil import socket import traceback import xmlrpclib from couchpotato.core._base.downloader.main import DownloaderBase, ReleaseDownloadList from couchpotato.core.helpers.encoding ...
def removeFailed(self, release_download):
<|file_name|>enclosing-scope.rs<|end_file_name|><|fim▁begin|>// Test scope annotations from `enclosing_scope` parameter<|fim▁hole|>trait Trait{} struct Foo; fn f<T: Trait>(x: T) {} fn main() { let x = || { f(Foo{}); //~ ERROR the trait bound `Foo: Trait` is not satisfied let y = || { ...
#![feature(rustc_attrs)] #[rustc_on_unimplemented(enclosing_scope="in this scope")]
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Fri Dec 23 15:22:48 2011<|fim▁hole|>__all__ = ["bslip"]<|fim▁end|>
@author: moritz """
<|file_name|>html.js<|end_file_name|><|fim▁begin|>/* eslint-env browser */ /** * Module dependencies. */ var Base = require('./base'); var utils = require('../utils'); var Progress = require('../browser/progress'); var escapeRe = require('escape-string-regexp'); var escape = utils.escape; /** * Save timer referen...
<|file_name|>find_dependencies_unittest.py<|end_file_name|><|fim▁begin|># Copyright 2014 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. import optparse import os import platform import shutil import subprocess import sys ...
# gsutil config should wait for the user and not exit with exit code 1.
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.urls import path, include from django.contrib import admin from rest_framework.routers import DefaultRouter from tasks.views import TaskItemViewSet, MainAppView, TagViewSet, ProjectViewSet, TaskCommentViewSet admin.autodiscover() router = DefaultRouter() ...
path('api/', include(router.urls)), path('rest-auth/', include('rest_auth.urls'))
<|file_name|>updater.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python from src.sqllist import get_sql _UPDATER_EXTRAS = {<|fim▁hole|> def _refactor_update(sql): """ Special refactoring for MonetDB update..from imitation. """ def _get_extra_conditions(tabname): return ' '.join(map(lambda x: 'an...
'runningcatalog': ['runcatid'], 'runningcatalog_fluxes': ['runcat_id', 'band', 'stokes'], }
<|file_name|>mobileweb.py<|end_file_name|><|fim▁begin|>import datetime import re from django.http import HttpResponse from django.utils.http import urlencode import smsgateway from smsgateway.models import SMS from smsgateway.backends.base import SMSBackend from smsgateway.utils import check_cell_phone_number class ...
# Check whether we've gotten a SendDateTime if not 'SendDateTime' in request_dict: return HttpResponse('')
<|file_name|>ktestq.rs<|end_file_name|><|fim▁begin|>use ::{BroadcastMode, Instruction, MaskReg, MergeMode, Mnemonic, OperandSize, Reg, RoundingMode};<|fim▁hole|>use ::Operand::*; use ::Reg::*; use ::RegScale::*; fn ktestq_1() { run_test(&Instruction { mnemonic: Mnemonic::KTESTQ, operand1: Some(Direct(K7)), operand...
use ::RegType::*; use ::instruction_def::*;
<|file_name|>impl-disambiguation.rs<|end_file_name|><|fim▁begin|>#![crate_name = "foo"] pub trait Foo {} pub struct Bar<T> { field: T } // @has foo/trait.Foo.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \ // "impl Foo for Bar<u8>" impl Foo for Bar<u8> {} // @has foo/trait.Foo.html '//*[@class...
<|file_name|>SimpleMapReduce.java<|end_file_name|><|fim▁begin|>package com.xoba.smr; import java.io.PrintWriter; import java.io.StringReader; import java.io.StringWriter; import java.net.URI; import java.util.Collection; import java.util.Formatter; import java.util.Iterator; import java.util.LinkedList; import java.ut...
<|file_name|>rawlink.rs<|end_file_name|><|fim▁begin|>// This file is part of Intrusive. // Intrusive is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your op...
<|file_name|>CloudComputer.java<|end_file_name|><|fim▁begin|>package com.sigmasq.timely.solver; public class CloudComputer { private int cpuPower; private int memory; private int networkBandwidth; private int cost; public int getCpuPower() { return cpuPower; } public int getMemo...
} }
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>""" Login and logout views for the browseable API. Add these to your root URLconf if you're using the browseable API and your API requires authentication. The urls must be namespaced as 'rest_framework', and you should make sure your authentication settings include `S...
<|file_name|>gene.py<|end_file_name|><|fim▁begin|>""" gene.py realize the methods that are related to system recommendation. @author: Bowen """ from system.models import gene, reaction, compound, reaction_compound, compound_gene, pathway, pathway_compound, organism from system.fasta_reader import parse_fasta_str from...
<|file_name|>Crawler.py<|end_file_name|><|fim▁begin|>import google import re from bs4 import BeautifulSoup def findContactPage(url):<|fim▁hole|> html = google.get_page(url) soup = BeautifulSoup(html) contactStr = soup.find_all('a', href=re.compile(".*?contact", re.IGNORECASE)) return contactStr if __...
<|file_name|>stats_test.go<|end_file_name|><|fim▁begin|>// Copyright 2020 PingCAP, 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....
ctx := context.Background() var input []string
<|file_name|>gateway_scanner.py<|end_file_name|><|fim▁begin|>""" GatewayScanner is an abstraction for searching for KNX/IP devices on the local network. * It walks through all network interfaces * and sends UDP multicast search requests * it returns the first found device """ from __future__ import annotations import...
<|file_name|>obj2vxpGUI.py<|end_file_name|><|fim▁begin|>#OBJ2VXP: Converts simple OBJ files to VXP expansions #Copyright (C) 2004-2015 Foone Turing # #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; e...
ys=self.makeTab(ys+30+5,66,'Control')
<|file_name|>exports.d.ts<|end_file_name|><|fim▁begin|>///<reference path="./WebdriverIO/WebdriverIO.d.ts"/> ///<reference path="./WebdriverIO/WebdriverIOEx.d.ts"/> ///<reference path="./WebdriverIO/WebdriverCSS.d.ts"/><|fim▁hole|> ///<reference path="./Jasmine/JasmineEx.d.ts"/><|fim▁end|>
<|file_name|>syscalls_darwin.go<|end_file_name|><|fim▁begin|>// // date : 2017-07-14 // author: xjdrew // package k1 import ( "fmt" "net" "os/exec" "strings" "github.com/songgao/water" ) func execCommand(name, sargs string) error { args := strings.Split(sargs, " ") cmd := exec.Command(name, args...) lo...
<|file_name|>experimentunitviews.py<|end_file_name|><|fim▁begin|>from csacompendium.research.models import ExperimentUnit from csacompendium.utils.pagination import APILimitOffsetPagination from csacompendium.utils.permissions import IsOwnerOrReadOnly from csacompendium.utils.viewsutils import DetailViewUpdateDelete, ...
""" Experiment unit views :return: All experiment unit views :rtype: Object
<|file_name|>analyze-headless.py<|end_file_name|><|fim▁begin|>import sys import os import csv from datetime import datetime, timedelta import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.dates import drange from matplotlib.patches import Rectangle import scenario...
t = drange(t_day_start, sc.t_end, timedelta(minutes=res)) skip = (t_day_start - sc.t_start).total_seconds() / 60 / res i_block_start = (sc.t_block_start - t_day_start).total_seconds() / 60 / res
<|file_name|>ProjectModulesManager.java<|end_file_name|><|fim▁begin|>/** * Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Eclipse Public License (EPL). * Please see the license.txt included with this distribution for details. * Any modifications to this file mus...
return super.getSize(addDependenciesSize); } }
<|file_name|>unit_runner.ts<|end_file_name|><|fim▁begin|><|fim▁hole|>import * as glob from 'glob'; import * as path from 'path'; import * as minimist from 'minimist'; import { execSilent } from './e2e/utils/process'; const argv = minimist(process.argv.slice(2), { boolean: ['debug', 'verbose', 'nolink', 'nobuild'], ...
import * as Mocha from 'mocha';
<|file_name|>signing_test.py<|end_file_name|><|fim▁begin|># Copyright 2019 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. import unittest from . import model, signing, test_common, test_config mock = test_common.import_...
Sealed Resources=none Internal requirements=none ''')
<|file_name|>analysis.py<|end_file_name|><|fim▁begin|># Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
math.exp(-beta * k) * sensitivity_at_k) if sensitivity_at_k == 0.0: break
<|file_name|>HumanoidType.js<|end_file_name|><|fim▁begin|>BASE.require([ "BASE.data.Edm", "BASE.odata4.ODataAnnotation" ], function () { var ODataAnnotation = BASE.odata4.ODataAnnotation;<|fim▁hole|> var HumanoidType = function () { }; HumanoidType.annotations = [new ODataAnnotation("Namespace....
BASE.namespace("BASE.data.testing");
<|file_name|>test_8chan.py<|end_file_name|><|fim▁begin|>import pytest from chandere.errors import ChandereError from chandere.loader import load_scraper scraper = load_scraper("8chan") VALID_CROSSLINK_TARGETS = [ ("/tech/589254", ("tech", "589254")), ("/tech/ 589254", ("tech", "589254")), ("tech/589254",...
assert scraper.parse_target(target) == expected
<|file_name|>send_grades.py<|end_file_name|><|fim▁begin|>"""" This module handles sending grades back to edX Most of this module is a python 3 port of pylti (github.com/mitodl/sga-lti) and should be moved back into that library. """ import uuid from xml.etree import ElementTree as etree import oauth2 from django.conf...
http = httplib2.Http # pylint: disable=protected-access
<|file_name|>index.js<|end_file_name|><|fim▁begin|>var Logger = require("./Logger.js"); var Level = require("./Level.js"); var PrintPattern = require("./PrintPattern.js"); module.exports = (function() { /* STATE VARIABLES */ // OUT configuration var OUT_INTERVAL = undefined; // 1sec var OUT_INTERVAL_TIMEOUT = 100...
}
<|file_name|>attr-path.cc<|end_file_name|><|fim▁begin|>#include "attr-path.hh" #include "util.hh" namespace nix { // !!! Shouldn't we return a pointer to a Value? void findAlongAttrPath(EvalState & state, const string & attrPath, Bindings & autoArgs, Expr * e, Value & v) { Strings tokens = tokenizeString(at...
if (string2Int(attr, attrIndex)) apType = apIndex;
<|file_name|>fixes.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python<|fim▁hole|> def fix_terminator(tokens): if not tokens: return last = tokens[-1] if last not in ('.', '?', '!') and last.endswith('.'): tokens[-1] = last[:-1] tokens.append('.') def balance_quotes(tokens): count = tokens.count(...
import sys
<|file_name|>views.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import arrow import datetime import ujson import timeit from flask.ext.login import login_required from flask import ( Blueprint, render_template ) from feedback.dashboard.vendorsurveys import ( get_rating_scale, get_surveys_by_role,...
"id": "graph", "title": "Surveys Submitted".format(SURVEY_DAYS), "data": { "graph": {
<|file_name|>Device.java<|end_file_name|><|fim▁begin|>package model.device; /** * Title : The Mobile Robot Explorer Simulation Environment v2.0 * Copyright: GNU General Public License as published by the Free Software Foundation * Company : Hanze University of Applied Sciences * * @author Dustin Meijer ...
// the arrayList with all the commands protected final ArrayList<String> commands;
<|file_name|>NaiveBayes.py<|end_file_name|><|fim▁begin|>import csv def list_words(text): words = [] words_tmp = text.lower().split() for p in words_tmp: if p not in words and len(p) > 2: words.append(p) return words def training(texts): c_words ={} c_categories ={} c_t...
if __name__ == "__main__":
<|file_name|>mixin.js<|end_file_name|><|fim▁begin|>(function (tree) { tree.mixin = {}; tree.mixin.Call = function (elements, args, index) { this.selector = new(tree.Selector)(elements); this.arguments = args; this.index = index; }; tree.mixin.Call.prototype = { eval: function (env) { var mixins...
<|file_name|>index.js<|end_file_name|><|fim▁begin|>export default [ { name: 'Types', examples: [ { name: 'List', description: 'A list groups related content', file: 'List', }, { description: 'You can also pass an array of items as props', file: 'ListSh...
}, { name: 'Link', description: 'A list can be specially formatted for navigation links.',
<|file_name|>PostListView.js<|end_file_name|><|fim▁begin|>import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import './PostListView.scss'; import { toastr } from 'react-redux-toastr'; import { bindActionCreators } from 'redux'; import { fetchPostsFromApi, selectPostCategory, clearPos...
clearErrors: PropTypes.func.isRequired }; // mapStateToProps :: {State} -> {Props}
<|file_name|>routeDirection.ts<|end_file_name|><|fim▁begin|>export function getName(value) { if (value == 0) { return "上班"; } if (value == 1) { return "下班"; } throw "invalid route direction"; } <|fim▁hole|> if (name == "下班") { return 1; } throw "invalid route direc...
export function getValue(name) { if (name == "上班") { return 0; }
<|file_name|>vectores.py<|end_file_name|><|fim▁begin|>from vectores_oo import Vector x = input('vector U componente X= ')<|fim▁hole|>U = Vector(x,y) m = input('vector V magnitud= ') a = input('vector V angulo= ') V = Vector(m=m, a=a) E = input('Escalar= ') print "U=%s" % U print "V=%s" % V print 'UxE=%s' % U...
y = input('vector U componente X= ')
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>pub mod event; use self::event::EventStopable; use std::collections::HashMap; pub trait ListenerCallable: PartialEq {<|fim▁hole|> fn call(&self, event_name: &str, event: &mut EventStopable); } pub struct EventListener { callback: fn(event_name: &str, event: &mu...
<|file_name|>syslogd.go<|end_file_name|><|fim▁begin|>// Copyright 2015-2017 trivago GmbH // // 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...
cons.protocol = "udp" }
<|file_name|>test_checker.py<|end_file_name|><|fim▁begin|># # Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U # # 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 copy...
<|file_name|>vendor.ts<|end_file_name|><|fim▁begin|>import '@angular/platform-browser-dynamic'; import '@angular/platform-browser'; import '@angular/core'; import '@angular/http';<|fim▁hole|><|fim▁end|>
import '@angular/router';
<|file_name|>AboutExpects.js<|end_file_name|><|fim▁begin|>describe("About Expects", function() { // We shall contemplate truth by testing reality, via spec expectations. it("should expect true", function() { expect(true).toBeTruthy(); //This should be true }); // To understand reality, we must compare our...
<|file_name|>apkbuilder.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # # Copyright (c) 2015 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. """Adds the code parts to a resource APK.""" import argparse import log...
their size for example). Returns: A list of (src_path, apk_path, compress, alignment) tuple representing what and how assets are added.
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>from django import http from django.conf.urls import patterns from django.contrib import admin from django.db import models from django.forms.models import modelform_factory from django.shortcuts import get_object_or_404 from django.template import loader, Context from...
if not hasattr(self, 'ajax_list_display'): self.ajax_list_display = []
<|file_name|>tasksList.js<|end_file_name|><|fim▁begin|>/** * Created by Adrian on 2016-05-08. */ import angular from "angular"; import angularMeteor from "angular-meteor"; import uiRouter from "angular-ui-router"; import "./mobile.html"; import {Tasks} from "../../../api/tasks/index"; import {name as TaskItem...
<|file_name|>common_test.go<|end_file_name|><|fim▁begin|>// Copyright 2018 The OpenSDS 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/LI...
result = EncodeHostName(longName)
<|file_name|>app.js<|end_file_name|><|fim▁begin|>//= require ../bower_components/jquery/dist/jquery.js 'use strict'; var APP = {}; $(function() {<|fim▁hole|><|fim▁end|>
console.log('Hello from your jQuery application!'); });
<|file_name|>pub-extern-privacy.rs<|end_file_name|><|fim▁begin|>use std::cast::transmute; mod a { extern { pub fn free(x: *u8); } } #[fixed_stack_segment] #[inline(never)]<|fim▁hole|>}<|fim▁end|>
pub fn main() { unsafe { a::free(transmute(0)); }
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>from django.contrib import admin from django.contrib.auth.models import User from .models import Stock, StockHistory, StockSelection, SectorHistory, StockNews class CommonAdmin(admin.ModelAdmin): date_hierarchy = 'pub_date' class SectorAdmin(CommonAdmin): li...
obj.stock.Symbol, obj.stock.Name,
<|file_name|>0001_initial.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 = [ ] operations = [ migrations.CreateModel( name='SkipRequest', ...
migrations.CreateModel( name='Video', fields=[
<|file_name|>directory_v1.js<|end_file_name|><|fim▁begin|>/** * Copyright 2014 Google Inc. 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.apac...
/** * directory.chromeosdevices.update * * @desc Update Chrome OS Device
<|file_name|>consumers.py<|end_file_name|><|fim▁begin|>import logging import requests from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives<|fim▁hole|> logger = logging.getLogger('email') sentry = logging.getLogger('sentry') def send_invite(me...
from django.template.loader import get_template from django.utils import timezone from invitations.models import Invitation
<|file_name|>ds.py<|end_file_name|><|fim▁begin|># The MIT License (MIT) # Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in ...
if len(openers) == 0: raise DataAccessError(f'Could not find an opener for "{dataset_id}".') opener_id = openers[0]
<|file_name|>core.js<|end_file_name|><|fim▁begin|>/** * The main AWS namespace */ var AWS = { util: require('./util') }; /** * @api private * @!macro [new] nobrowser * @note This feature is not supported in the browser environment of the SDK. */ var _hidden = {}; _hidden.toString(); // hack to parse macro mod...
require('./credentials/credential_provider_chain'); require('./credentials/temporary_credentials'); require('./credentials/web_identity_credentials'); require('./credentials/cognito_identity_credentials');
<|file_name|>TL.Point.js<|end_file_name|><|fim▁begin|>/* TL.Point Inspired by Leaflet TL.Point represents a point with x and y coordinates. ================================================== */ TL.Point = function (/*Number*/ x, /*Number*/ y, /*Boolean*/ round) { this.x = (round ? Math.round(x) : x); this.y = (rou...
multiplyBy: function (num) { return new TL.Point(this.x * num, this.y * num); },
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generate...
'OperationalizationClusterPaged', 'OperationStatus', 'ClusterType', 'OrchestratorType',
<|file_name|>internet.py<|end_file_name|><|fim▁begin|># coding=utf-8 from __future__ import unicode_literals from ..internet import Provider as InternetProvider class Provider(InternetProvider): safe_email_tlds = ('com', 'net', 'fr', 'fr') free_email_domains = ( 'voila.fr', 'gmail.com', 'hotmail.fr', 'yah...
company = company_elements[0] company = company.replace(" ", "") return self._to_ascii(company).lower()
<|file_name|>hashmap.rs<|end_file_name|><|fim▁begin|>// Copyright 2013 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/license...
EnvFilterIterator{iter: self.iter(), env: other, filter: |elt, other| !other.contains(elt) }
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python from pisi.actionsapi import shelltools, get, cmaketools, pisitools def setup():<|fim▁hole|> def build(): cmaketools.make() def install(): cmaketools.install() pisitools.dodoc ("AUTHORS", "ChangeLog", "COPYING")<|fim▁end|>
cmaketools.configure()
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import application import platform import exceptions from ctypes import c_char_p from libloader import load_library import paths if platform.architecture()[0][:2] == "32": lib = load_library("api_keys32", x86_path=paths.app_path("keys/lib"))...
return result.value
<|file_name|>wifi_hopping.go<|end_file_name|><|fim▁begin|>package wifi import ( "time" "github.com/bettercap/bettercap/network" ) func (mod *WiFiModule) onChannel(channel int, cb func()) { mod.chanLock.Lock() defer mod.chanLock.Unlock() prev := mod.stickChan mod.stickChan = channel if err := network.SetInte...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>"""<|fim▁hole|><|fim▁end|>
This package contains a number of utilities that are used inside of openmdao. It does not depend on any other openmdao package. """
<|file_name|>boss_erekem.cpp<|end_file_name|><|fim▁begin|>/* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information * 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 Founda...
*
<|file_name|>compare.go<|end_file_name|><|fim▁begin|>// Copyright 2014 The Go Authors. All rights reserved.<|fim▁hole|>// // https://tools.ietf.org/html/rfc4511 // // CompareRequest ::= [APPLICATION 14] SEQUENCE { // entry LDAPDN, // ava AttributeValueAssertion } // // At...
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // // File contains Compare functionality
<|file_name|>test-load.js<|end_file_name|><|fim▁begin|>/*global describe, beforeEach, it*/ 'use strict';<|fim▁hole|>var assert = require('assert'); describe('frontender generator', function () { it('can be imported without blowing up', function () { var app = require('../app'); assert(app !== undef...
<|file_name|>de.js<|end_file_name|><|fim▁begin|>CKEDITOR.plugins.setLang( 'html5audio', 'de', { button: 'HTML5 Audio einfügen', title: 'HTML5 Audio', infoLabel: 'Audio Infos',<|fim▁hole|> upload: 'Hochladen', btnUpload: 'Zum Server senden', advanced: 'Erweitert', autoplay: 'Autoplay?', al...
urlMissing: 'Sie haben keine URL zur Audio-Datei angegeben.', audioProperties: 'Audio-Einstellungen',
<|file_name|>scene_node.rs<|end_file_name|><|fim▁begin|>use std::rc::Rc; use std::cell::{Ref, RefMut, RefCell}; use std::mem; use std::path::{Path, PathBuf}; use na; use na::{Iso3, Pnt2, Vec3, Pnt3, Transformation, Rotation, Translation, RotationWithTranslation}; use resource::{Mesh, MeshManager, Texture, TextureManage...
/// /// The provided closure is called once per object.
<|file_name|>users_gpg_keys.go<|end_file_name|><|fim▁begin|>// Copyright 2016 The go-github AUTHORS. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package github import ( "fmt" "time" ) // GPGKey represents a GitHub user's public GPG...
}
<|file_name|>csi_attacher.go<|end_file_name|><|fim▁begin|>/* Copyright 2017 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 U...
"k8s.io/kubernetes/pkg/volume" )
<|file_name|>rust_base58.rs<|end_file_name|><|fim▁begin|>extern crate rust_base58; use errors::prelude::*; use self::rust_base58::{FromBase58, ToBase58}; pub fn encode(doc: &[u8]) -> String { doc.to_base58() } pub fn decode(doc: &str) -> Result<Vec<u8>, IndyError> { doc.from_base58()<|fim▁hole|> .map_...
<|file_name|>provider.py<|end_file_name|><|fim▁begin|># Copyright 2011 Google Inc. 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.apache.org/licenses/...
<|file_name|>long_tests_client.rs<|end_file_name|><|fim▁begin|>use grpc::ClientStubExt; use long_tests::long_tests_pb::*; use long_tests::long_tests_pb_grpc::*; use futures::executor; use std::env; fn single_num_arg_or(cmd_args: &[String], or: u64) -> u64 { if cmd_args.len() == 0 { or } else if cmd_ar...
env_logger::init(); let args: Vec<String> = env::args().collect(); if args.len() < 2 {
<|file_name|>user_managers_test.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from grr.lib import access_control from grr.lib import aff4 from grr.lib import rdfvalue from grr.lib import test_lib from grr.lib.aff4_objects import user_managers class GRRUserTest(test_lib.AFF4ObjectTest): def testUserPasswo...
<|file_name|>index_jsp.java<|end_file_name|><|fim▁begin|>/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/8.0.15 * Generated at: 2017-09-18 08:01:06 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation...
<|file_name|>schemas.py<|end_file_name|><|fim▁begin|>"""pblite message schemas and related enums.""" # Stop pylint from complaining about enums: # pyline: disable=too-few-public-methods import enum from hangups.pblite import Message, Field, RepeatedField, EnumField #################################################...
('membership_change', CLIENT_MEMBERSHIP_CHANGE), ('conversation_rename', CLIENT_CONVERSATION_RENAME), ('hangout_event', CLIENT_HANGOUT_EVENT), ('event_id', Field(is_optional=True)),
<|file_name|>plain.rs<|end_file_name|><|fim▁begin|>use text::style::{Style, StyleCommand, Color, PaletteColor}; use std::fmt::{self, Display}; use std::str::FromStr; use serde::de::{Deserializer, Deserialize, Error, Visitor}; use serde::{Serializer, Serialize}; use std::iter::Peekable; use std::slice; // [PlainBuf] Ov...
}
<|file_name|>test_coraid.py<|end_file_name|><|fim▁begin|># Copyright 2012 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 # # http...
<|file_name|>function-pointer-comparison-issue-54685.rs<|end_file_name|><|fim▁begin|>// min-llvm-version: 12.0 // compile-flags: -C opt-level=3 // run-pass fn foo(_i: i32) -> i32 { 1 } fn bar(_i: i32) -> i32 { 1 } fn main() { let x: fn(i32) -> i32 = foo; let y: fn(i32) -> i32 = bar; let s1; i...
<|file_name|>new.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from outwiker.gui.baseaction import BaseAction from outwiker.core.commands import createNewWiki <|fim▁hole|>class NewAction (BaseAction): """ Создание нового дерева заметок """ stringId = u"NewTree" def __init__(self, applic...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>use async_trait::async_trait; use yaml_rust::Yaml; mod assert; mod assign; mod delay; mod exec; mod request; pub use self::assert::Assert; pub use self::assign::Assign; pub use self::delay::Delay; pub use self::exec::Exec; pub use self::request::Request; use crate::be...
}
<|file_name|>keyring.go<|end_file_name|><|fim▁begin|>package keyring import ( "errors" "sync" ) var ( // ErrNotFound means the requested password was not found ErrNotFound = errors.New("keyring: Password not found") // ErrNoDefault means that no default keyring provider has been found ErrNoDefault = errors.New(...
if err != nil { return "", err
<|file_name|>singleton.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- <|fim▁hole|> # Mute logger from pyknyx.services.logger import logging; logger = logging.getLogger(__name__) from pyknyx.services.logger import logging logger = logging.getLogger(__name__) logging.getLogger("pyknyx").setLevel(logging.ERROR) ...
from pyknyx.common.singleton import * import unittest
<|file_name|>EnvironmentAccessor.java<|end_file_name|><|fim▁begin|>/* * Twidere - Twitter client for Android * * Copyright (C) 2012 Mariotaku Lee <mariotaku.lee@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as publish...
@TargetApi(Build.VERSION_CODES.FROYO)
<|file_name|>reader_range_iterator_test.go<|end_file_name|><|fim▁begin|>package tsm1 import ( "fmt" "os" "testing" "github.com/google/go-cmp/cmp" "github.com/influxdata/influxdb" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxdb/tsdb" "github.com/influxdata/influxdb/tsdb/cursors" ) func...
<|file_name|>i18n.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 import gettext<|fim▁hole|> from obozrenie.global_settings import * current_locale, encoding = locale.getdefaultlocale() t = gettext.translation(APPLICATION_ID, localedir=LOCALE_DIR, languages=[ current_locale], codeset=e...
import locale
<|file_name|>PyConsole.py<|end_file_name|><|fim▁begin|># Copyright (c) 2015 Aaron Kehrer # Licensed under the terms of the MIT License # (see fiddle/__init__.py for details) import os import unicodedata from io import StringIO from PyQt4 import QtCore, QtGui from fiddle.config import EDITOR_FONT, EDITOR_FONT_SIZE c...
self.history_idx = len(self.history) return QtGui.QLineEdit.event(self, event) return QtGui.QLineEdit.event(self, event)
<|file_name|>inputMgr.py<|end_file_name|><|fim▁begin|># ========================== Start Copyright Notice ========================== # # # # Copyright 2014 F.D.I.S. # # This file is part o...
windowHandle = renderWindow.getCustomAttributeUnsignedLong("WINDOW")
<|file_name|>Sanity.py<|end_file_name|><|fim▁begin|>#=============================================================================== # # Sanity.py # # This file is part of ANNarchy. # # Copyright (C) 2013-2016 Julien Vitay <julien.vitay@gmail.com>, # Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> #...
Global._print(proj.synapse_type.parameters) Global._print(proj.synapse_type.equations) Global._error(term + ' is a reserved variable name')
<|file_name|>gamma.rs<|end_file_name|><|fim▁begin|>use err::ErrMsg; use RGSLRng; #[derive(Debug, Clone)] pub struct Gamma { a: f64, b: f64, } impl Gamma { pub fn new(a: f64, b: f64) -> Result<Gamma, ()> { if a <= 0.0 || b <= 0.0 { return Err(()); } Ok(Gamma { a, b }) ...
impl CDF for Gamma { #[inline] fn cdf(&self, x: f64) -> f64 {
<|file_name|>CoffeeBeans.java<|end_file_name|><|fim▁begin|><|fim▁hole|>public abstract class CoffeeBeans { public abstract String scent(); }<|fim▁end|>
package be.swsb.productivity.chapter5.beans;
<|file_name|>archive_viewer.py<|end_file_name|><|fim▁begin|>#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the...
<|file_name|>InitializeOAuth.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################### # # InitializeOAuth # Generates an authorization URL that an application can use to complete the first step in the OAuth process. # # Python versions 2.6,...
super(InitializeOAuthInputSet, self)._set_input('ForwardingURL', value) class InitializeOAuthResultSet(ResultSet):
<|file_name|>GeoLocation.js<|end_file_name|><|fim▁begin|>(function() { var myPromise = new Promise((resolve, reject) => { navigator.geolocation.getCurrentPosition((pos) => { resolve(pos); }) }); function parsePosition(pos) { return { lat: pos.coords.latitude,...
.then(console.log)
<|file_name|>implementation.js<|end_file_name|><|fim▁begin|>import { remove, attempt, isError } from 'lodash'; import uuid from 'uuid/v4'; import { fileExtension } from 'Lib/pathHelper' import AuthenticationPage from './AuthenticationPage'; window.repoFiles = window.repoFiles || {}; function getFile(path) { const s...
authenticate() { return Promise.resolve();
<|file_name|>seed.go<|end_file_name|><|fim▁begin|>package wallet import ( "bytes" "crypto/rand" "errors" "path/filepath" "github.com/NebulousLabs/Sia/build" "github.com/NebulousLabs/Sia/crypto" "github.com/NebulousLabs/Sia/modules" "github.com/NebulousLabs/Sia/persist" "github.com/NebulousLabs/Sia/types" ) ...
for _, seedFile := range w.persist.AuxiliarySeedFiles { seed, err := decryptSeedFile(masterKey, seedFile) if build.DEBUG && err != nil { panic(err)