prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>EG_LineJoinProperties_test.go<|end_file_name|><|fim▁begin|>// Copyright 2017 Baliance. All rights reserved. // // DO NOT EDIT: generated by gooxml ECMA-376 generator // // Use of this source code is governed by the terms of the Affero GNU General // Public License version 3.0 as published by the Free Softw...
"encoding/xml"
<|file_name|>resources.py<|end_file_name|><|fim▁begin|>from django.conf import settings from django.conf.urls.defaults import patterns, url from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned from django.core.urlresolvers import NoReverseMatch, reverse, resolve, Resolver404 from django.db.mod...
<|file_name|>comp-1546.component.spec.ts<|end_file_name|><|fim▁begin|>/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { async, ComponentFixture, TestBed } fr...
declarations: [ Comp1546Component ] }) .compileComponents();
<|file_name|>common.py<|end_file_name|><|fim▁begin|>#!/bin/false # This file is part of Espruino, a JavaScript interpreter for Microcontrollers # # Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> # # 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 ...
include = jsondata["include"]
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>"""Support for Waterfurnaces.""" from datetime import timedelta import logging import threading import time import voluptuous as vol from waterfurnace.waterfurnace import WaterFurnace, WFCredentialError, WFException from homeassistant.components import persistent_...
return False hass.data[DOMAIN] = WaterFurnaceData(hass, wfconn) hass.data[DOMAIN].start()
<|file_name|>mpl_settings.py<|end_file_name|><|fim▁begin|>import logging import matplotlib as mpl from .tools import get_figure_size _logger = logging.getLogger("mpl_settings") orig_settings = {**mpl.rcParams} latex_settings = { # change this if using contex, xetex or lualatex "pgf.texsystem": "pdflatex", ...
"figure.subplot.right": 0.95, "figure.subplot.bottom": 0.125,
<|file_name|>toDoController.js<|end_file_name|><|fim▁begin|>angular.module('myApp.toDoController', []). controller('ToDoCtrl', ['$scope', '$state', '$http', '$route', function ($scope, $state, $http, $route) { $scope.$state = $state; $scope.addToDo = function() { // Just in case... if ($scope.toDoList.l...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|>__all__ = ["cc"]<|fim▁end|>
# -*- coding: utf-8 -*-
<|file_name|>classie.js<|end_file_name|><|fim▁begin|>/*! * classie - class helper functions * from bonzo https://github.com/ded/bonzo * * classie.has( elem, 'my-class' ) -> true/false * classie.add( elem, 'my-new-class' ) * classie.remove( elem, 'my-unwanted-class' ) */ <|fim▁hole|>'use strict'; // class helpe...
/*jshint browser: true, strict: true, undef: true */ ( function( window ) {
<|file_name|>item.go<|end_file_name|><|fim▁begin|>package goque import ( "bytes" "encoding/binary" "encoding/gob" ) // Item represents an entry in either a stack or queue. type Item struct { ID uint64 Key []byte Value []byte } // ToString returns the item value as a string. func (i *Item) ToString() strin...
// PriorityItem represents an entry in a priority queue. type PriorityItem struct {
<|file_name|>WindowVisualViewport.ts<|end_file_name|><|fim▁begin|>import { Fun, Optional } from '@ephox/katamari'; import { PlatformDetection } from '@ephox/sand'; import { fromRawEvent } from '../../impl/FilteredEvent'; import { EventHandler, EventUnbinder } from '../events/Types'; import { SugarElement } from '../no...
visualViewport.addEventListener(name, handler);
<|file_name|>skill_queue.py<|end_file_name|><|fim▁begin|>import xml.etree.ElementTree as ElementTree from model.dynamic.api import api from model.dynamic.skills.skill_queue_item import SkillQueueItem class SkillQueue(object): def __init__(self, user_id, api_key, character_id): api.fetch("char", "SkillQueue...
SkillQueueItem(int(element.get("typeID")), int(element.get("level")), int(element.get("startSP")),
<|file_name|>navigation_bars.py<|end_file_name|><|fim▁begin|>import basepage class NavigationBars(basepage.BasePage): def expand_project_panel(self): elm = self.driver.find_element_by_css_selector( 'a[data-target="#sidebar-accordion-project"]') state = elm.get_attribute('class') ...
NavigationBars.expand_identity_panel(self) self.driver.find_element_by_css_selector( 'a[href="/identity/users/"]').click()
<|file_name|>emailer.py<|end_file_name|><|fim▁begin|># encoding: utf-8 # # # 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/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.c...
<|file_name|>main.cpp<|end_file_name|><|fim▁begin|>/** * Test program. * * Copyright (c) 2015 Alex Jin (toalexjin@hotmail.com) */ #include "test/test.h" #include <iostream> namespace { void help() { std::cout << "Usage: testalgo -a" << std::endl; std::cout << " testalgo <test-case-name>" << std::endl; ...
if (argc != 2) {
<|file_name|>elapsed-time.js<|end_file_name|><|fim▁begin|>$(document).ready(function () { google.charts.load('current', { packages: ['corechart', 'bar'] }); google.charts.setOnLoadCallback(drawBuildSummary); function drawBuildSummary() { var elem = $('#elapsed_time_chart'); var data = [['E...
var values = elem.attr('data-values').split(';');
<|file_name|>mainTest.py<|end_file_name|><|fim▁begin|>from netools import nextIpInPool, ping, aliveHost, hostsUnDone def main(): aliveHosts = [] # pool IP ipStart = "192.168.56.1" ipEnd = "192.168.56.5"<|fim▁hole|> print"Scanning online Router on network..." aliveHosts = aliveHost(ipStart, ipEn...
print"Pools: ", ipStart + " -> " + ipEnd
<|file_name|>analytics.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ The following examples are used to demonstrate how to get/record analytics The method signatures are: Pushbots.get_analytics() and Pushbots.record_analytics(platform=None, data=None) In which you must specify either platform or data. ...
<|file_name|>index.ts<|end_file_name|><|fim▁begin|>/** * Created by wQ on 2017/3/28. */ export * from './navbar/index'; export * from './footer/index';<|fim▁hole|><|fim▁end|>
export * from './sidenav/index';
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
pub fn call() {}
<|file_name|>manager.py<|end_file_name|><|fim▁begin|>from sris import db, models from messenger import Messenger from service import SMSService from datetime import datetime class Manager: """ The middle-man of interaction between messenger and the SMS service. """ def __init__(self): self.con...
<|file_name|>test_sourcepoint_interval.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import glob import os import sys sys.path.insert(0, os.pardir) from testing_harness import TestHarness from openmc.statepoint import StatePoint class SourcepointTestHarness(TestHarness): def _test_output_created(self): ...
# Get the eigenvalue information. outstr = TestHarness._get_results(self)
<|file_name|>toolbutton.rs<|end_file_name|><|fim▁begin|>// This file is part of rgtk. // // rgtk 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 option)...
} }
<|file_name|>string_eval.py<|end_file_name|><|fim▁begin|>import sys from pathlib import Path from analysis.PluginBase import AnalysisBasePlugin from plugins.mime_blacklists import MIME_BLACKLIST_COMPRESSED try: from ..internal.string_eval import eval_strings except ImportError: sys.path.append(str(Path(__file...
Sort strings by relevance
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>#! /usr/bin/env python3 import setuptools setuptools.setup( name='vimdecrypt', version='2.0', author='Gertjan van Zwieten',<|fim▁hole|><|fim▁end|>
py_modules=['vimdecrypt'], scripts=['vimdecrypt'], test_suite='vimdecrypt', )
<|file_name|>backend.go<|end_file_name|><|fim▁begin|>package mysql import ( "database/sql" "fmt" "strings" "sync" _ "github.com/go-sql-driver/mysql" "github.com/hashicorp/vault/logical" "github.com/hashicorp/vault/logical/framework" ) func Factory(conf *logical.BackendConfig) (logical.Backend, error) { retur...
<|file_name|>unix.rs<|end_file_name|><|fim▁begin|>use libloading::Library; use std::fs::ReadDir; use types::Identifier; /// Grabs all `Library` entries found within a given directory pub(crate) struct LibraryIterator { directory: ReadDir, } impl LibraryIterator { pub(crate) fn new(directory: ReadDir) -> Libra...
if path.is_file() && path.extension().map_or(false, |ext| ext == "so") {
<|file_name|>AbstractTextStreamFormatGenerator.java<|end_file_name|><|fim▁begin|>/** * Copyright 2011-2021 Asakusa Framework Team. * * 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 * * ...
import com.asakusafw.runtime.io.text.value.ByteOptionFieldAdapter; import com.asakusafw.runtime.io.text.value.DateOptionFieldAdapter; import com.asakusafw.runtime.io.text.value.DateTimeOptionFieldAdapter; import com.asakusafw.runtime.io.text.value.DecimalOptionFieldAdapter;
<|file_name|>ajaxify.js<|end_file_name|><|fim▁begin|>/* * ajaxify.js * Ajaxify - The Ajax Plugin * https://4nf.org/ * * Copyright Arvind Gupta; MIT Licensed */ /* INTERFACE: See also https://4nf.org/interface/ Simplest plugin call: let ajaxify = new Ajaxify({options}); Ajaxifies the whole site, dynamica...
} if(typeof(h) === "object") { //jump to internal page programmatically -> handler for forms sub-plugin
<|file_name|>fund-table.component.ts<|end_file_name|><|fim▁begin|>import {Component, OnInit} from '@angular/core'; import {FundDataService} from '../funddata/funddata.service'; @Component({ selector: 'app-fund-table', templateUrl: './fund-table.component.html', styleUrls: ['./fund-table.component.css'] }) export cl...
this.colShow.splice(this.colShow.indexOf(col), 1); }
<|file_name|>test_json_protocol.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from thriftpy.protocol import TJSONProtocol from thriftpy.thrift import TPayload, TType from thriftpy.transport import TMemoryBuffer from thriftpy._compat import u import thriftpy.protocol.json as proto class TItem(TPayload): ...
<|file_name|>int_tests.py<|end_file_name|><|fim▁begin|># Copyright 2014 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|>SqBounds.cpp<|end_file_name|><|fim▁begin|>// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary r...
#include "PsAllocator.h" #include "GuBounds.h" using namespace physx;
<|file_name|>adaption.hpp<|end_file_name|><|fim▁begin|>/*---------------------------------------------------------------------------*\ * * bitpit * * Copyright (C) 2015-2021 OPTIMAD engineering Srl * * ------------------------------------------------------------------------- * License * This file is part o...
{ Info()
<|file_name|>ShellServerMBean.java<|end_file_name|><|fim▁begin|>/* * TeleStax, Open Source Cloud Communications Copyright 2012. * and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redist...
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.restcomm.ss7.management.console;
<|file_name|>filter.go<|end_file_name|><|fim▁begin|>// Copyright 2017 Jan Christian Grünhage // // 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/LICEN...
ContainsURL: nil,
<|file_name|>timelineanimationrow.component.spec.ts<|end_file_name|><|fim▁begin|>import { ComponentFixture, TestBed, async, inject } from '@angular/core/testing';<|fim▁hole|>import { ActionModeService, LayerTimelineService } from 'app/services'; import { Store } from 'app/store'; import { MockStore } from 'test/MockSto...
import { FlexLayoutModule } from '@angular/flex-layout';
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django.db import models from stdimage import StdImageField from django.core.validators import RegexValidator import datetime YEAR_CHOICES = [] for r in range(1980, (datetime.datetime.now().year+1)): YEAR_CHOICES.append((r,r)) S_CHOICE = [('1stYear','1stYea...
class HostelEvents(models.Model):
<|file_name|>wrapping_shr.rs<|end_file_name|><|fim▁begin|>#![feature(core)] extern crate core; #[cfg(test)] mod tests { // macro_rules! uint_impl { // ($ActualT:ty, $BITS:expr, // $ctpop:path, // $ctlz:path, // $cttz:path, // $bswap:path, // $add_with_overflow:p...
<|file_name|>test_play_file.py<|end_file_name|><|fim▁begin|># coding: UTF-8 import unittest import play_file class TestAssemblyReader(unittest.TestCase): def test_version_reader(self): assembly_reader = play_file.AssemblyReader() version = assembly_reader.get_assembly_version('AssemblyInfo.cs') ...
assembly_writer = play_file.AssemblyWriter() version = assembly_writer.update_assembly_version('AssemblyInfo.cs', new_version) self.assertEqual(version, new_version)
<|file_name|>me.process.resolver.js<|end_file_name|><|fim▁begin|>const userService = require('../../../services/user.service');<|fim▁hole|><|fim▁end|>
module.exports = (_, args, ctx) => userService.getById(ctx.user.id);
<|file_name|>WeatherData.js<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
//# sourceMappingURL=WeatherData.js.map
<|file_name|>index.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python #coding:utf-8 import cyclone.auth import cyclone.escape import cyclone.web<|fim▁hole|>import datetime import time import os from beaker.cache import cache_managers from toughradius.manage.base import BaseHandler from toughlib.permit import permit ...
<|file_name|>test_boids.py<|end_file_name|><|fim▁begin|>import yaml import os from ..boids import Boids from nose.tools import assert_equal import random import numpy as np from unittest.mock import patch import unittest.mock as mock def test_Boids(): flock = Boids(boid_number=10,move_to_middle_strength=0.1,alert_...
np.testing.assert_array_almost_equal(flock.x_velocities,[0.95, 2.05]) # make sure arrays are updated to what we expect them to - #2
<|file_name|>config.py<|end_file_name|><|fim▁begin|># -*- coding: utf8 -*- """ The ``config`` module ===================== Create a named logger and return it so users can log in different log files : one for each module. """ __author__ = 'Salas' __copyright__ = 'Copyright 2014 LTL' __credits__ = ['Sala...
try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper
<|file_name|>exe.rs<|end_file_name|><|fim▁begin|>use collections::Vec; use context; use syscall::error::{Error, ESRCH, Result}; pub fn resource() -> Result<Vec<u8>> { let mut name = { let contexts = context::contexts(); let context_lock = contexts.current().ok_or(Error::new(ESRCH))?; let c...
}; name.push(b'\n');
<|file_name|>normal.py<|end_file_name|><|fim▁begin|>"""This example samples from a simple bivariate normal distribution.""" import jass.mcmc as mcmc import jass.samplers as samplers import numpy as np import scipy.stats as stats<|fim▁hole|>normal_rv = stats.multivariate_normal(cov=np.identity(2)) # Initialise the cha...
import triangle import matplotlib.pyplot as pl # Define the log-likelihood function to be a bivariate normal
<|file_name|>DistributedCogdoElevatorInt.py<|end_file_name|><|fim▁begin|><|fim▁hole|># Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.cogdominium.DistributedCogdoElevatorInt from toontown.building.DistributedElevatorInt import DistributedElevatorInt class DistributedCogdoElevatorInt(DistributedEl...
<|file_name|>TestSanity.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2010-2017 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.testing.sanity; import static com.evolveu...
// This should discover the connectors LOGGER.trace("initSystem: trying modelService.postInit()"); modelService.postInit(initResult); LOGGER.trace("initSystem: modelService.postInit() done");
<|file_name|>PluginFacet.java<|end_file_name|><|fim▁begin|>package tc.oc.commons.core.plugin; import java.util.Set; import tc.oc.commons.core.commands.CommandRegistry; import tc.oc.commons.core.commands.Commands; import tc.oc.commons.core.commands.NestedCommands; import tc.oc.minecraft.api.event.Activatable; import t...
* To get the instances, @Inject a {@link Set< PluginFacet >}. * * Facets are automatically enabled and disabled at the same time as the * plugin they are bound to.
<|file_name|>issue-71137.rs<|end_file_name|><|fim▁begin|>// edition:2018 #![feature(must_not_suspend)] #![allow(must_not_suspend)] use std::future::Future;<|fim▁hole|>fn fake_spawn<F: Future + Send + 'static>(f: F) { } async fn wrong_mutex() { let m = Mutex::new(1); { let mut guard = m.lock().unwrap(); (a...
use std::sync::Mutex;
<|file_name|>consts.py<|end_file_name|><|fim▁begin|>from django.utils.translation import ugettext_lazy as _ # Legend Position def get_legend_class(position): return 'legend-' + str(position) class LEGEND_POSITIONS: BOTTOM = _('bottom') TOP = _('top') LEFT = _('left')<|fim▁hole|> get_choices = ((ge...
RIGHT = _('right')
<|file_name|>volume.go<|end_file_name|><|fim▁begin|>package storage import ( "fmt" "os" "path" "sync" "time" "github.com/chrislusf/seaweedfs/weed/glog" ) type Volume struct { Id VolumeId dir string Collection string dataFile *os.File nm NeedleMapper needleMapKind N...
}
<|file_name|>bpf.rs<|end_file_name|><|fim▁begin|>// Copyright (c) 2014, 2015 Robert Clipsham <robert@octarineparrot.com> // // 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 yo...
header_size: usize, }
<|file_name|>downloadState.js<|end_file_name|><|fim▁begin|>export default class State { constructor($rootScope) { this.$rootScope = $rootScope; this.state = []; } setData(data) { console.log('state set data', data) this.state = data; this.$rootScope.$apply(); }...
//console.log('state get data', state) return this.state; }
<|file_name|>index.js<|end_file_name|><|fim▁begin|>"use strict"; let datafire = require('datafire');<|fim▁hole|>module.exports = datafire.Integration.fromOpenAPI(openapi, "azure_sql_failoverdatabases");<|fim▁end|>
let openapi = require('./openapi.json');
<|file_name|>test_init.py<|end_file_name|><|fim▁begin|>"""Tests for the SmartThings component init module.""" from uuid import uuid4 from aiohttp import ClientConnectionError, ClientResponseError from asynctest import Mock, patch from pysmartthings import InstalledAppStatus, OAuthToken import pytest from homeassistan...
async def test_base_url_no_longer_https_does_not_load(
<|file_name|>reflector.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/. */ //! The `Reflector` struct. use dom::bindings::conversions...
/// Initialize the reflector. (May be called only once.) pub fn set_jsobject(&mut self, object: *mut JSObject) {
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>pub mod types; use bincode::serde::serialize_into; use bincode::SizeLimit; use std::net::TcpStream; /// Send a message to connected partner on stream pub fn send(mut stream: &mut TcpStream, msg: types::MessageType) { serialize_into( stream,<|fim▁hole|> ...
&msg,
<|file_name|>preprocess_test.py<|end_file_name|><|fim▁begin|># Copyright 2021 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.0 # ...
<|file_name|>recline.js<|end_file_name|><|fim▁begin|>/** * Drupal-specific JS helper functions and utils. Not to be confused with the * Recline library, which should live in your libraries directory. */ ;(function ($) { // Constants. var MAX_LABEL_WIDTH = 77; var LABEL_MARGIN = 5; // Undefined vari...
}; break; case 'ckan':
<|file_name|>PitchContour.java<|end_file_name|><|fim▁begin|>package org.vitrivr.cineast.core.util.audio.pitch.tracking; import java.util.LinkedList; import java.util.List; import org.apache.commons.math3.stat.descriptive.SummaryStatistics; import org.vitrivr.cineast.core.util.audio.pitch.Pitch; /** * This is a helpe...
<|file_name|>should.meta.js<|end_file_name|><|fim▁begin|>exports.name = 'should';<|fim▁hole|><|fim▁end|>
exports.category = 'bdd/tdd'; exports.homepage = 'https://npmjs.org/package/should';
<|file_name|>main.js<|end_file_name|><|fim▁begin|>//// For registering Service Worker // if ('serviceWorker' in navigator) { // navigator.serviceWorker // .register('./service-worker.js', { scope: './' }) // .then(function(registration) { // console.log("Service Worker Registered"); // }) // .c...
// }) // } $(function(){
<|file_name|>swipe_1.js<|end_file_name|><|fim▁begin|>/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-c81f9f1 */ goog.provide('ng.material.components.swipe'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.swipe * @descript...
*
<|file_name|>regions-fn-subtyping.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>// file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LI...
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
<|file_name|>Hadoop1Compat.java<|end_file_name|><|fim▁begin|>package com.thinkaurelius.titan.hadoop.compat.h1; import com.thinkaurelius.titan.graphdb.configuration.TitanConstants; import com.thinkaurelius.titan.hadoop.config.job.JobClasspathConfigurer; import org.apache.hadoop.conf.Configuration; import org.apache.had...
@Override public void incrementContextCounter(TaskInputOutputContext context, Enum<?> counter, long incr) { context.getCounter(counter).increment(incr);
<|file_name|>wsgi.py<|end_file_name|><|fim▁begin|>""" WSGI config for berth 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.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_...
application = get_wsgi_application()
<|file_name|>comment_eater.py<|end_file_name|><|fim▁begin|>from __future__ import division, absolute_import, print_function import sys if sys.version_info[0] >= 3: from io import StringIO else: from io import StringIO import compiler import inspect import textwrap import tokenize from .compiler_unparse impor...
nxt = file.next for token in tokenize.generate_tokens(nxt): self.process_token(*token) self.make_index()
<|file_name|>MSRadioBox.C<|end_file_name|><|fim▁begin|>/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 1997-2008 Morgan Stanley All rights reserved. // See .../src/LICENSE for terms of distribution<|fim▁hole|> #include <MSGUI/MSRadioBox.H> MSRadioBox::MSRadioBox(MSW...
// // ///////////////////////////////////////////////////////////////////////////////
<|file_name|>schedule_topic_messages_and_cancellation.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the...
return sequence_number
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>from setuptools import setup, find_packages setup(name='netdisco',<|fim▁hole|> description='Discover devices on your local network', url='https://github.com/home-assistant/netdisco', author='Paulus Schoutsen', author_email='Paulus@PaulusSchoutse...
version='0.9.2',
<|file_name|>taz_files.py<|end_file_name|><|fim▁begin|>import csv import osgeo.ogr from osgeo import ogr, osr EPSG_LAT_LON = 4326 def read_tazs_from_csv(csv_zone_locs_fname): taz_tuples = [] tfile = open(csv_zone_locs_fname, 'rb') treader = csv.reader(tfile, delimiter=',', quotechar="'") for ii, row i...
return taz_tuples
<|file_name|>set_serviceaccount.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-...
) var (
<|file_name|>tasks.server.controller.js<|end_file_name|><|fim▁begin|>'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Task = mongoose.model('Task'), Project = mongoose.model('Project'), Person = mongoose.model('Person'), _...
<|file_name|>hpmv.hpp<|end_file_name|><|fim▁begin|>// // Copyright (c) 2003--2009 // Toon Knapen, Karl Meerbergen, Kresimir Fresl, // Thomas Klimpel and Rutger ter Borg // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1...
inline typename hpmv_impl< typename traits::matrix_traits< MatrixAP >::value_type >::return_type
<|file_name|>test_driver.py<|end_file_name|><|fim▁begin|># Copyright 2016 Huawei Technologies India Pvt. Ltd. # # 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...
'none', 1234) # Test with a valid auth-type and no password self.assertRaises(bgp_driver_exc.PasswordNotSpecified,
<|file_name|>schema2manifesthandler_test.go<|end_file_name|><|fim▁begin|>package storage import ( "regexp" "testing" "github.com/docker/distribution" "github.com/docker/distribution/context" "github.com/docker/distribution/manifest" "github.com/docker/distribution/manifest/schema2" "github.com/docker/distribut...
[]string{"https://foo/bar"},
<|file_name|>deletenonespacelstrip.py<|end_file_name|><|fim▁begin|># 2014-12-18 # build by qianqians # deletenonespacelstrip def deleteNoneSpacelstrip(str): while(str.lstrip('\n') is not str):str = str.lstrip('\n') while(str.lstrip('\t') is not str):str = str.lstrip('\t') while(str.lstrip('\0') is not str)...
while(str.lstrip(' ') is not str):str = str.lstrip(' ') while(str.lstrip(' ') is not str):str = str.lstrip(' ') return str
<|file_name|>supportedRtpCapabilities.ts<|end_file_name|><|fim▁begin|>import { RtpCapabilities } from './RtpParameters'; const supportedRtpCapabilities: RtpCapabilities = { codecs : [ { kind : 'audio', mimeType : 'audio/opus', clockRate : 48000, channels : 2, rtcpFeedback : [ ...
rtcpFeedback : [ { type: 'nack' },
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>extern crate openvr_sys; #[macro_use] extern crate lazy_static; use std::cell::Cell; use std::ffi::{CStr, CString}; use std::sync::atomic::{AtomicBool, Ordering}; use std::{error, fmt, mem, ptr}; use openvr_sys as sys; mod tracking; pub mod chaperone; pub mod composi...
return None; }
<|file_name|>complete_test.go<|end_file_name|><|fim▁begin|>package converter import ( "go/token" "reflect" "strings" "testing" ) func TestIdentifierAt(t *testing.T) { type args struct { src string idx int } tests := []struct { name string args args<|fim▁hole|> wantEnd int }{ { name: ...
wantStart int
<|file_name|>de6546b2c9685657e1a6a668adbc9d9f63aaa6bd.js<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
MessagesStore
<|file_name|>jsDocPropertyLikeTagTests.ts<|end_file_name|><|fim▁begin|>import { expect } from "chai"; import { JSDocPropertyLikeTag, Node } from "../../../../../compiler"; import { getInfoFromText } from "../../../testHelpers"; describe(nameof(JSDocPropertyLikeTag), () => { function getInfo(text: string) { ...
describe(nameof<JSDocPropertyLikeTag>(d => d.getNameNode), () => { function doTest(text: string, expected: string) { const { descendant } = getInfo(text);
<|file_name|>ActionScheduler.java<|end_file_name|><|fim▁begin|>/** * Copyright (c) 2014 - 2022 Frank Appel * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://w...
public class ActionScheduler { private final Display display; private final Runnable action;
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>"""Translate python-phonenumbers PhoneNumber to/from protobuf PhoneNumber Examples of use: >>> import phonenumbers >>> from phonenumbers.pb2 import phonenumber_pb2, PBToPy, PyToPB >>> x_py = phonenumbers.PhoneNumber(country_code=44, national_number=7912345678) >>>...
>>> # Explicitly set the field to its default
<|file_name|>spell_pet.cpp<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/> * * 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 versi...
}
<|file_name|>headers.go<|end_file_name|><|fim▁begin|>// Copyright (c) 2015 Uber Technologies, Inc. // 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 the Software without restriction, including without l...
<|file_name|>users.rs<|end_file_name|><|fim▁begin|>use failure::format_err; use log::error; use rusqlite::types::ToSql; use serde_derive::{Deserialize, Serialize}; use crate::db::{self, Database}; use crate::errors::*; #[derive(Deserialize, Serialize, Clone)] pub struct UserInfo { pub id: Option<i32>, pub git...
} pub fn slack_user_name(&self, github_name: &str) -> Option<String> {
<|file_name|>helper_sent.py<|end_file_name|><|fim▁begin|>from helper_sql import sqlExecute <|fim▁hole|><|fim▁end|>
def insert(t): sqlExecute('''INSERT INTO sent VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)''', *t)
<|file_name|>conf.py<|end_file_name|><|fim▁begin|># Lint as: python3 # Copyright 2018 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...
<|file_name|>Atom.js<|end_file_name|><|fim▁begin|>version https://git-lfs.github.com/spec/v1 oid sha256:2c648d581addc08fbd0fe28ad0d26ba08942ebfe6be59756e11ff9abcd9d3bbd<|fim▁hole|><|fim▁end|>
size 23184
<|file_name|>_binomtest.py<|end_file_name|><|fim▁begin|>from math import sqrt import numpy as np from scipy._lib._util import _validate_int from scipy.optimize import brentq from scipy.special import ndtri from ._discrete_distns import binom from ._common import ConfidenceInterval class BinomTestResult: """ R...
'SciPy developers') from exc
<|file_name|>regexp-17.js<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
"aaaaaaaaaa,aaaaaaaaaaaaaaa".replace(/^(a+)\1*,\1+$/,"$1")
<|file_name|>pool.rs<|end_file_name|><|fim▁begin|>use memory::bucket::Bucket; use memory::bucket::BUCKET_PAGES; use memory::heap::Heap; use memory::heapbucket::HeapBucket; use memory::page::Page; use memory::page::PAGE_SIZE; use std::alloc::alloc; use std::alloc::dealloc; use std::alloc::Layout; use std::mem::size_of; ...
PAGE_SIZE * BUCKET_PAGES, ) .unwrap(),
<|file_name|>gphotolistcamerascommand.cpp<|end_file_name|><|fim▁begin|>/* * This file is part of the Photomaton-mobile package. * * (c) Romain Lamarche * * For the full copyright and license information, please view the LICENSE<|fim▁hole|> #include "gphotolistcamerascommand.h" #include "gphoto/gphotocameracontrol...
* file that was distributed with this source code. */
<|file_name|>conftest.py<|end_file_name|><|fim▁begin|>"""This module holds the common test code. .. seealso:: `pytest good practices <https://pytest.org/latest/goodpractices.html>`__ for why this module exists. """ import os import sys # sys.path makes knittingpattern importable<|fim▁hole|>__builtins__["HERE"] = HE...
HERE = os.path.dirname(__file__) sys.path.insert(0, os.path.join(HERE, "../.."))
<|file_name|>install.py<|end_file_name|><|fim▁begin|>from ceph_deploy.util import templates from ceph_deploy.lib import remoto from ceph_deploy.hosts.common import map_components from ceph_deploy.util.paths import gpg NON_SPLIT_PACKAGES = ['ceph-osd', 'ceph-mon', 'ceph-mds'] def rpm_dist(distro): if distro.norm...
logger.warning('check_obsoletes has been enabled for Yum priorities plugin')
<|file_name|>wallet.rs<|end_file_name|><|fim▁begin|>use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use indy_api_types::wallet::*; use crate::commands::{Command, CommandExecutor}; use indy_api_types::domain::wallet::{Config, Credentials, ExportConfig, KeyConfig}; use indy_api_types::errors::pre...
}
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>//! Support code for rustc's built in unit-test and micro-benchmarking //! framework. //! //! Almost all user code will only be interested in `Bencher` and //! `black_box`. All other interactions (such as writing tests and //! benchmarks themselves) should be done via th...
test_output.extend_from_slice(&stderr); let result = match (|| -> Result<TestResult, String> { let exit_code = get_exit_code(status)?;