prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>problemdao.py<|end_file_name|><|fim▁begin|>''' mysql> desc problem; +-------------+---------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+---------------+------+-----+---------+----------------+ | pid | int(11)...
sql = getQuerySQL('problemdetail',' pid={} '.format(pid),' did ')
<|file_name|>SystemTrainingPlugin.java<|end_file_name|><|fim▁begin|>/* * Encog(tm) Core v3.1 - Java Version * http://www.heatonresearch.com/encog/ * http://code.google.com/p/encog-java/ * Copyright 2008-2012 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
import org.encog.ml.factory.train.AnnealFactory; import org.encog.ml.factory.train.BackPropFactory; import org.encog.ml.factory.train.ClusterSOMFactory; import org.encog.ml.factory.train.GeneticFactory;
<|file_name|>ScrollStrategy.js<|end_file_name|><|fim▁begin|>/** enyo.ScrollStrategy is a helper kind which implements a default scrolling strategy for an <a href="#enyo.Scroller">enyo.Scroller</a>. enyo.ScrollStrategy is not typically created in application code. */ enyo.kind({ name: "enyo.ScrollStrategy", noDom...
verticalChanged: function() {
<|file_name|>populate.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from datetime import timedelta import os import random from django.utils.dateparse import parse_date from faker import Faker test_email = 'michael.b001@gmx.de' fake = Faker('de')<|fim▁hole|>random.seed(1) def get_random_date(): retur...
fake.seed(1)
<|file_name|>apInv.py<|end_file_name|><|fim▁begin|>#!usr/bin/env python from pysnmp.entity.rfc3413.oneliner import cmdgen import shlex import subprocess import re import os import sys import smtplib from devices.models import AP as AccessPoint ## This file is used to update the access point inventory data. Use the ## ...
<|file_name|>NewFileBase.py<|end_file_name|><|fim▁begin|>import sublime import sublime_plugin import re import os import datetime TMLP_DIR = 'templates' KEY_SYNTAX = 'syntax' KEY_FILE_EXT = 'extension' IS_GTE_ST3 = int(sublime.version()) >= 3000 PACKAGE_NAME = 'new-file-pro' PACKAGES_PATH = sublime.packages_path() BAS...
def get_settings(self, type=None): settings = sublime.load_settings(PACKAGE_NAME + '.sublime-settings')
<|file_name|>wwa_camera.ts<|end_file_name|><|fim▁begin|>import { WWAConsts, Position, Direction, speedList } from "./wwa_data"; import { Player } from "./wwa_parts_player"; export class Camera { private _player: Player; private _position: Position; private _positionPrev: Position; private _transitionSt...
<|file_name|>bluetooth_control.go<|end_file_name|><|fim▁begin|>// -*- Mode: Go; indent-tabs-mode: t -*- /* * Copyright (C) 2016-2017 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free So...
# because this gives privileged access to the system. bind `
<|file_name|>index.ts<|end_file_name|><|fim▁begin|>// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.<|fim▁hole|>export default convertToFP(fn, 2)<|fim▁end|>
import fn from '../../subQuarters/index' import convertToFP from '../_lib/convertToFP/index'
<|file_name|>configuration.py<|end_file_name|><|fim▁begin|>from logger import log import os import gconf<|fim▁hole|> class Configuration(object): def __init__(self): self._config = {} self._file_path = os.path.join(os.path.dirname(__file__), 'config', 'config.ini') # Read File...
import urllib
<|file_name|>run_experiment_cluster.py<|end_file_name|><|fim▁begin|>import os, sys, re import ConfigParser import optparse import shutil import subprocess import difflib import collections #import numpy as np # Alberto Meseguer file; 18/11/2016 # Modified by Quim Aguirre; 13/03/2017 # This file is the master coordin...
# To run the command at the local machine
<|file_name|>seq2seq_model.py<|end_file_name|><|fim▁begin|># Copyright 2015 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.apa...
self.global_step = tf.Variable(0, trainable=False)
<|file_name|>permutations_of_string.go<|end_file_name|><|fim▁begin|>// Part of Cosmos by OpenGenus Foundation package main import "fmt" <|fim▁hole|> } else { for i := start; i <= end; i++ { data[start], data[i] = data[i], data[start] permutation(data, start+1, end) data[start], data[i] = data[i], data[start...
func permutation(data []byte, start, end int) { if start == end { fmt.Println(string(data))
<|file_name|>pt.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="pt_BR"> <context> <name>AVForm</name> <message> <source>Audio/Video</source> <translation>Áudio/Vídeo</translation> </message> <message> <source>Defaul...
<message> <source>Groupchat #%1</source> <translation type="unfinished"></translation> </message>
<|file_name|>nsis.js<|end_file_name|><|fim▁begin|>/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: *<|fim▁hole|> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
* Copyright (c) 2012, Ajax.org B.V.
<|file_name|>issue_12590_c.rs<|end_file_name|><|fim▁begin|>// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/l...
// option. This file may not be copied, modified, or distributed // except according to those terms.
<|file_name|>GridCachePreloaderAdapter.java<|end_file_name|><|fim▁begin|>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file ...
} /** {@inheritDoc} */
<|file_name|>cc_puppet.py<|end_file_name|><|fim▁begin|># vi: ts=4 expandtab # # Copyright (C) 2009-2010 Canonical Ltd. # Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # # Author: Scott Moser <scott.moser@canonical.com> # Author: Juerg Haefliger <juerg.haefliger@hp.com> # # This program is ...
<|file_name|>doc.go<|end_file_name|><|fim▁begin|>// softlayer_billing_item_cancellation_request - SoftLayer customers can use this API to submit a // cancellation request. A single service cancellation can contain multiple cancellation items which // contain a billing item. package softlayer_billing_item_cancellation_r...
// DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED
<|file_name|>importHelpersWithLocalCollisions(module=amd).js<|end_file_name|><|fim▁begin|>//// [tests/cases/compiler/importHelpersWithLocalCollisions.ts] //// //// [a.ts] declare var dec: any, __decorate: any; @dec export class A { } const o = { a: 1 }; const y = { ...o }; //// [tslib.d.ts] export declare func...
<|file_name|>0042_studytableevent_notes.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.10a1 on 2016-07-19 15:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0041_au...
]
<|file_name|>materialize.min.js<|end_file_name|><|fim▁begin|>version https://git-lfs.github.com/spec/v1<|fim▁hole|><|fim▁end|>
oid sha256:355954a2b585f8b34c53b8bea9346fabde06b161ec86b87e9b829bea4acb87e9 size 108190
<|file_name|>download.component.ts<|end_file_name|><|fim▁begin|>import { Component, OnInit } from '@angular/core'; import {BaServerService} from "../../theme/services/baServer/baServer.service"; @Component({ selector: 'download', styles: [require('./download.scss')], template: require('./download.componen...
getDownloads() { this._serverService.get().subscribe(
<|file_name|>common.go<|end_file_name|><|fim▁begin|>package domain import ( "flag" ) type Config struct { DockerAPIEndpoint string VulcandAPIEndpoint string HostIP string } <|fim▁hole|> flag.StringVar(&config.DockerAPIEndpoint, "d", "/var/run/docker.sock", "Docker API endpoint") flag.StringVar(&conf...
func (config *Config) InstallFlags() {
<|file_name|>StorageFileAccess.java<|end_file_name|><|fim▁begin|>/* * This file is part of the LibreOffice project. * * 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/...
return new NativeOutputStreamHelper(key,streamName); }
<|file_name|>mul.rs<|end_file_name|><|fim▁begin|>use {Instruction,Value,Expression,Type}; #[derive(Clone,Debug,PartialEq,Eq)] pub struct Mul { pub lhs: Box<Value>, pub rhs: Box<Value>,<|fim▁hole|>} impl Mul { pub fn new(lhs: Value, rhs: Value) -> Self { Mul { lhs: Box::new(lhs), ...
<|file_name|>index.js<|end_file_name|><|fim▁begin|>'use strict'; var fs = require('fs'), path = require('path'); // path.basename('/foo/bar/baz/asdf/quux.html', '.html') = quux // path.dirname('/foo/bar/baz/asdf/quux.html') = /foo/bar/baz/asdf/ // path.parse('/home/user/dir/file.txt') // returns ...
<|file_name|>combination_sum1.py<|end_file_name|><|fim▁begin|>Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C unlimited number of times. Note: All numbers (including target) will be pos...
<|file_name|>test1.py<|end_file_name|><|fim▁begin|>from time import sleep<|fim▁hole|> def testOne(self): sleep(1.5) # To check duration assert 4 == 2*2 def testTwo(self): assert True def testThree(): assert 4 == 2*2<|fim▁end|>
class TestPyTest:
<|file_name|>extensions.py<|end_file_name|><|fim▁begin|># Copyright 2011 OpenStack Foundation # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a co...
<|file_name|>filter.go<|end_file_name|><|fim▁begin|>package filter import ( "fmt" "strings" "github.com/elastic/beats/libbeat/common" "github.com/elastic/beats/libbeat/logp" ) type FilterCondition struct { } type FilterRule interface { Filter(event common.MapStr) (common.MapStr, error) String() string } /* e...
<|file_name|>certstore.py<|end_file_name|><|fim▁begin|># Authors: # Jan Cholasta <jcholast@redhat.com> # # Copyright (C) 2014 Red Hat # see file 'COPYING' for use and warranty information # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
<|file_name|>start.py<|end_file_name|><|fim▁begin|>from bank_CI import BankCI from bank_controller import BankController from settings import DB_NAME, CREATE_TABLES, DROP_DATABASE from sql_manager import BankDatabaseManager def main(): manager = BankDatabaseManager.create_from_db_and_sql(DB_NAME, CREATE_TABLES, D...
if __name__ == '__main__': main()
<|file_name|>main_test.go<|end_file_name|><|fim▁begin|>package main import ( "bytes" "fmt" "os" "os/exec" "strings" "testing" <|fim▁hole|>func deleteTestFiles(t *testing.T) { if err := os.RemoveAll(app.Path()); err != nil { t.Error(err) } } func TestMain(t *testing.M) { os.Setenv("BANKSAURUS_ENV", "dev") ...
app "github.com/luistm/banksaurus/cmd/bscli/application" "github.com/luistm/testkit" )
<|file_name|>test_wheels_util.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import, unicode_literals import pytest from virtualenv.seed.wheels.embed import MAX, get_embed_wheel from virtualenv.seed.wheels.util import Wheel def test_wheel_support_no_python_requires(mocker): wheel = get_embed_wh...
def test_wheel_not_support():
<|file_name|>DouDiZhuPokerAction.py<|end_file_name|><|fim▁begin|>#!/bin/python import os import roomai.common import copy # #0, 1, 2, 3, ..., 7, 8, 9, 10, 11, 12, 13, 14 #^ ^ ^ ^ ^ #| | | | | #3, 10, J, Q, K, A, 2, r, R # cla...
<|file_name|>mysqloffset.go<|end_file_name|><|fim▁begin|>package mysql import ( "reflect" "github.com/qiniu/log" . "github.com/qiniu/logkit/reader/sql" ) func (r *MysqlReader) updateStartTime(offsetKeyIndex int, scanArgs []interface{}) bool { if r.timestampKeyInt { timeOffset, ok := GetTimeIntFromArgs(offsetKe...
r.timeCacheMap = nil r.timestampMux.Unlock() return true
<|file_name|>video_bench_ovl.py<|end_file_name|><|fim▁begin|>#! /bin/env python import sys, time, os import pymedia.muxer as muxer import pymedia.video.vcodec as vcodec import pymedia.audio.acodec as acodec import pymedia.audio.sound as sound if os.environ.has_key( 'PYCAR_DISPLAY' ) and os.environ[ 'PYCAR_DISPLAY' ]==...
YV12= pygame.YV12_OVERLAY
<|file_name|>0122_unusual_numbers.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """ NPR 2017-01-22 www.npr.org/2017/01/22/511046359/youve-got-to-comb-together-to-solve-this-one The numbers 5,000, 8,000, and 9,000 share a property that only five integers altogether have. Identify the property and the two other ...
def is_supervocalic(w): ''' Determine if a word has one each of a, e, i, o, u
<|file_name|>DispersiveRamseyFringes.py<|end_file_name|><|fim▁begin|>from matplotlib import pyplot as plt, colorbar from lib2.VNATimeResolvedDispersiveMeasurement2D import * class DispersiveRamseyFringes(VNATimeResolvedDispersiveMeasurement2D): def __init__(self, name, sample_name, **devs_aliases_map): d...
excitation_freqs)} super().set_swept_parameters(**swept_pars) def _output_pulse_sequence(self, ramsey_delay):
<|file_name|>pickCube3.js<|end_file_name|><|fim▁begin|>var elt; var canvas; var gl; var program; var NumVertices = 36; var pointsArray = []; var normalsArray = []; var colorsArray = []; var framebuffer; var flag = true; var color = new Uint8Array(4); var vertices = [ vec4( -0.5, -0.5, 0.5, 1.0 ), ...
<|file_name|>xmlrpc.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Implement PyPiXmlRpc Service. See: http://wiki.python.org/moin/PyPiXmlRpc """ import logging from pyramid_xmlrpc import XMLRPCView from pyshop.models import DBSession, Package, Release, ReleaseFile from pyshop.helpers import pypi log = ...
<|file_name|>cron-send-cpu-mem-stats.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python2 ''' Simple monitoring script to collect per process cpu percentage and mem usage in bytes (vms or virt and rss) usage: cron-send-cpu-mem-stats process_name openshift.whatever.zabbix.key or cron-send-cpu-mem-sta...
# against the /proc/<pid>/cmdline contents, order shouldn't matter since all have to match if len(set(proc_parts[1:]).intersection(set(cmdline[1:1+part_count]))) != part_count: continue
<|file_name|>1234_1243_2134_2431_4213.py<|end_file_name|><|fim▁begin|><|fim▁hole|>import permstruct.dag from permstruct import * from permstruct.dag import taylor_dag import sys # -- Example from Kuszmaul paper -- # # STATUS ================================================ > task = '1234_1243_2134_2431_4213' patts ...
from __future__ import print_function from permuta import * import permstruct
<|file_name|>environment.py<|end_file_name|><|fim▁begin|>import time import uuid as uuid from splinter.browser import Browser from django.contrib.auth.models import User from webparticipation.apps.ureporter.models import Ureporter from webparticipation.apps.ureport_auth.models import PasswordReset def before_all(conte...
context.server = None
<|file_name|>iconset-typicon-2.0.6.js<|end_file_name|><|fim▁begin|>/* ======================================================================== * Bootstrap: iconset-typicon-2.0.6.js by @recktoner * https://victor-valencia.github.com/bootstrap-iconpicker * * Iconset: Typicons 2.0.6 * https://github.com/stephenhutc...
'document-add', 'document-delete', 'document-text', 'document',
<|file_name|>views.py<|end_file_name|><|fim▁begin|>"""Views fo the node settings page.""" # -*- coding: utf-8 -*- from flask import request import logging from addons.dropbox.serializer import DropboxSerializer from addons.base import generic_views from website.project.decorators import must_have_addon, must_be_addon_...
dropbox_account_list = generic_views.account_list( SHORT_NAME, DropboxSerializer
<|file_name|>index.ts<|end_file_name|><|fim▁begin|>// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as Terminal from './terminal'; import * as TerminalAPI from './restapi';<|fim▁hole|> export * from './manager'; export { Terminal, TerminalAPI };<|fim▁end|>
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from implementation import * from implementations import *
<|file_name|>ExampleUnitTest.java<|end_file_name|><|fim▁begin|>package top.blue7.permission; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>...
<|file_name|>color_test.go<|end_file_name|><|fim▁begin|>package color import ( "bytes" "fmt" "os" "testing" "github.com/shiena/ansicolor" ) // Testing colors is kinda different. First we test for given colors and their // escaped formatted results. Next we create some visual tests to be tested. // Each visual t...
rb := new(bytes.Buffer) Output = rb testColors := []struct {
<|file_name|>sitemaps.js<|end_file_name|><|fim▁begin|>// 3rd const Router = require('koa-router') const compress = require('koa-compress') const nunjucks = require('nunjucks') // 1st const cache = require('../cache') const router = new Router() ////////////////////////////////////////////////////////////<|fim▁hole|> ...
<|file_name|>GLFWEngine.cpp<|end_file_name|><|fim▁begin|>// GLFW Engine. // ----------------------------------------------------------------------------- // Copyright (C) 2011, ZEUS project (See authors) // // This program is open source and distributed under the New BSD License. See // license for more detail. // ----...
window = new Display::GLFWWindow(res);
<|file_name|>AwayActionTest.java<|end_file_name|><|fim▁begin|>/*************************************************************************** * (C) Copyright 2003-2015 - Stendhal * *************************************************************************** **************************...
final RPAction action = new RPAction(); action.put("type", "bla");
<|file_name|>settings.py<|end_file_name|><|fim▁begin|>from django.conf import settings <|fim▁hole|> return getattr(settings, 'SESSIONPROFILE_BACKEND', 'sessionprofile.backends.db')<|fim▁end|>
def _get_backend():
<|file_name|>comp-3174.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...
beforeEach(() => { fixture = TestBed.createComponent(Comp3174Component); component = fixture.componentInstance;
<|file_name|>hash-table.cc<|end_file_name|><|fim▁begin|>// Copyright 2012 Cloudera 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 //...
// Not null block builder.SetInsertPoint(not_null_block); result.ToNativePtr(llvm_loc);
<|file_name|>chute_storage.py<|end_file_name|><|fim▁begin|>from __future__ import print_function ################################################################### # Copyright 2013-2017 All Rights Reserved # Authors: The Paradrop Team ################################################################### import sys fro...
def usage(): print('Usage: $0 -ls : print chute storage details') exit(0)
<|file_name|>_ip_groups_operations.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...
<|file_name|>cd_hit.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """Application controller for CD-HIT v3.1.1""" import shutil from os import remove from cogent.app.parameters import ValuedParameter from cogent.app.util import CommandLineApplication, ResultPath,\ get_tmp_filename from cogent.core.molty...
<|file_name|>login.component.ts<|end_file_name|><|fim▁begin|>import {Component} from 'angular2/core'; import {DataService} from './services/data.service'; import {UserService} from './services/user.service'; import {ToolService} from './services/tools.service'; import {Router, ROUTER_DIRECTIVES} from 'angular2/router';...
<|file_name|>price_breakdown.py<|end_file_name|><|fim▁begin|>from sevenbridges.meta.resource import Resource from sevenbridges.meta.fields import StringField class Breakdown(Resource): """ Breakdown resource contains price breakdown by storage and computation.<|fim▁hole|> storage = StringField(read_only=Tr...
"""
<|file_name|>es.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.<|fim▁hole|>CKEDITOR.plugins.setLang("language","es",{button:"Fijar lenguaje",remove:"Quitar lenguaje"});<|fim▁end|>
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */
<|file_name|>test_signature.py<|end_file_name|><|fim▁begin|>import py from rpython.rlib.signature import signature, finishsigs, FieldSpec, ClassSpec from rpython.rlib import types from rpython.annotator import model from rpython.rtyper.llannotation import SomePtr from rpython.annotator.signature import SignatureError f...
def ok_for_body(): f(C2()) @check_annotator_fails
<|file_name|>tasks.py<|end_file_name|><|fim▁begin|>import hashlib import logging import os from django.conf import settings from django.core.files.storage import default_storage as storage from django.db import transaction from PIL import Image from olympia import amo from olympia.addons.models import ( Addon, a...
<|file_name|>errors_view.js<|end_file_name|><|fim▁begin|>IWitness.ErrorsView = Ember.View.extend({<|fim▁hole|> classNames: ["error-bubble"], classNameBindings: ["isError"], isError: function() { return !!this.get("error"); }.property("error") });<|fim▁end|>
<|file_name|>main.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import datetime from openerp import http from openerp.http import request from openerp.addons.website_portal.controllers.main import website_account <|fim▁hole|> """ Add sales documents to main account page """ response = super(...
class website_account(website_account): @http.route(['/my/home'], type='http', auth="user", website=True) def account(self, **kw):
<|file_name|>gauge.rs<|end_file_name|><|fim▁begin|>use super::*; /// A gauge metric for floating point values with helper methods /// for incrementing and decrementing it's value /// /// Internally uses a `Metric<f64>` with `Semantics::Instant`, /// `Count::One` scale, and `1` count dimension pub struct Gauge { me...
} fn has_mmv2_string(&self) -> bool { self.metric.has_mmv2_string()
<|file_name|>gzip.go<|end_file_name|><|fim▁begin|>package gzip import ( "compress/gzip" "fmt" "io/ioutil" "net/http" "path/filepath" "strings" "sync" "github.com/gin-gonic/gin" ) const ( BestCompression = gzip.BestCompression BestSpeed = gzip.BestSpeed DefaultCompression = gzip.DefaultCompress...
return g.writer.Write(data)
<|file_name|>utils.py<|end_file_name|><|fim▁begin|># (c) Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 Li...
<|file_name|>pointbreak.js<|end_file_name|><|fim▁begin|>/* pointbreak.js - PointBreak provides a friendly interface to matchMedia with named media queries and easy to create callbacks. Authors & copyright (c) 2013: WebLinc, David Knight. */ (function(win) { 'use strict'; var EVENT_TYPE_MATCH = 'match'...
name = '',
<|file_name|>metadata.py<|end_file_name|><|fim▁begin|>import Fast5File def run(parser, args): if args.read: for i, fast5 in enumerate(Fast5File.Fast5FileSet(args.files)): for metadata_dict in fast5.read_metadata: if i == 0: header = metadata_dict.keys() print "\t".join(["filename"] + header) p...
else:
<|file_name|>errors.py<|end_file_name|><|fim▁begin|>""" This file is part of py-sonic. py-sonic is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versi...
60: LicenseError ,
<|file_name|>MacroScreenView.js<|end_file_name|><|fim▁begin|>// Copyright 2013-2021, University of Colorado Boulder /** * View for the 'Macro' screen. * * @author Chris Malley (PixelZoom, Inc.) */ import Property from '../../../../axon/js/Property.js'; import ScreenView from '../../../../joist/js/ScreenView.js'; ...
} ); this.addChild( rootNode );
<|file_name|>PolygonSetInterface.hpp<|end_file_name|><|fim▁begin|>#pragma once /* Copyright STIFTELSEN SINTEF 2014 * * This file is part of FRView. * FRView is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Fou...
virtual GLuint
<|file_name|>enc-latin1-tests.ts<|end_file_name|><|fim▁begin|>/// <reference path="../../yui/yui.d.ts" /> /// <reference path="../cryptojs.d.ts" /> YUI.add('enc-latin1-test', function (Y) { var C = CryptoJS; Y.Test.Runner.add(new Y.Test.Case({ name: 'Latin1', testStringify: function () { ...
}, '$Rev$');
<|file_name|>17-xml_namespace.js<|end_file_name|><|fim▁begin|>(function () { function RunningInNode () { return( (typeof require) == "function" && <|fim▁hole|> (typeof exports) == "object" && (typeof module) == "object" && (typeof __filename) == "string" && (typeof __dirname) == "string" ...
<|file_name|>issue-2723-b.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.o...
pub fn main() { unsafe {
<|file_name|>test_saving_energy.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*- # Copyright (c) 2017 ZTE # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
'power_state': 'power off'} mock_node2_dict = { 'extra': {'compute_node_id': 2},
<|file_name|>vrpose.rs<|end_file_name|><|fim▁begin|>/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use core::nonzero::NonZero; use dom::bindings::codegen::Bindin...
#[inline]
<|file_name|>08b6358a04bf_txnreconcile_allow_txn_id_to_be_null.py<|end_file_name|><|fim▁begin|>"""TxnReconcile allow txn_id to be null Revision ID: 08b6358a04bf Revises: 04e61490804b Create Date: 2018-03-07 19:48:06.050926 """ from alembic import op from sqlalchemy.dialects import mysql # revision identifiers, used ...
)
<|file_name|>AppConstants.java<|end_file_name|><|fim▁begin|>package mahout; /** * Date: 12/11/14 * Time: 8:33 PM<|fim▁hole|> */ public class AppConstants { public static final String TEST_FILE = "dataset.csv"; }<|fim▁end|>
* To change this template use File | Settings | File Templates.
<|file_name|>Encoder.java<|end_file_name|><|fim▁begin|>/* * Licensed to the Apache Software Foundation (ASF) under one<|fim▁hole|> * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to ...
<|file_name|>unwind-fail.rs<|end_file_name|><|fim▁begin|>// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/lic...
fail!(); }
<|file_name|>puback.rs<|end_file_name|><|fim▁begin|>//! PUBACK use std::io::Read; use crate::control::variable_header::PacketIdentifier; use crate::control::{ControlType, FixedHeader, PacketType}; use crate::packet::{DecodablePacket, PacketError}; use crate::Decodable; <|fim▁hole|>/// `PUBACK` packet #[derive(Debug, ...
<|file_name|>parsedir.py<|end_file_name|><|fim▁begin|># 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 3 of the License, or # (at your option) any later version. # # This program i...
except: errfunc('**warning** '+p+' has errors') new_blocked[p] = None continue
<|file_name|>main.cpp<|end_file_name|><|fim▁begin|>/******************************************************************************* Copyright (C) 2016 OLogN Technologies AG This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as ...
#include "front-back/idl_tree_serializer.h" Root* deserializeFile(const char* fileName) {
<|file_name|>quarantine_windows.go<|end_file_name|><|fim▁begin|>//go:build windows // +build windows package attachments import ( "io/ioutil"<|fim▁hole|> "golang.org/x/net/context" ) func Quarantine(ctx context.Context, path string) error { // Zones 0-4 correspond to Local Machine, Local intranet, Trusted sites, ...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hp.com> # # 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 th...
<|file_name|>bitcoin_fa_IR.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="fa_IR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About callcoin</sour...
</message> </context> <context>
<|file_name|>group_specs.py<|end_file_name|><|fim▁begin|># Copyright (c) 2016 EMC Corporation # # 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/licens...
<|file_name|>app.module.ts<|end_file_name|><|fim▁begin|>import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpModule, JsonpModule } from '@angular/http'; import { routing } from './app.routing'; imp...
SettingsService, PlayersService ], bootstrap: [ AppComponent ]
<|file_name|>project.py<|end_file_name|><|fim▁begin|># project.py import signac def classify(job): yield 'init' if 'V' in job.document: yield 'volume-computed' def next_operation(job): if 'volume-computed' not in classify(job): return 'compute_volume' if __name__ == '__main__': projec...
<|file_name|>RDFGraphListURIPrefixKernel.java<|end_file_name|><|fim▁begin|>package org.data2semantics.mustard.rdfvault; import java.util.List; import java.util.Set; import org.data2semantics.mustard.kernels.ComputationTimeTracker; import org.data2semantics.mustard.kernels.FeatureInspector; import org.data2sema...
stmts.removeAll(blackList); graph = RDFUtils.statements2Graph(stmts, RDFUtils.REGULAR_LITERALS, instances, true); }
<|file_name|>questao01.py<|end_file_name|><|fim▁begin|># coding=utf-8 import random lista = [] for x in range(10): numero = random.randint(1, 100) if x == 0: maior, menor = numero, numero elif numero > maior: maior = numero elif numero < menor: menor = numero lista.append(num...
print("Menor: %d" % menor)
<|file_name|>RemoteGameDoubleMap.java<|end_file_name|><|fim▁begin|>/* * The MIT License (MIT) * * Copyright (c) 2016 MrInformatic. * * 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 wit...
for(GameData gameData : unaddedGameData){ gameData.writeChilds(quarry); } quarry.writeInt(-1);
<|file_name|>ad_parameter_error.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2020 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.o...
class AdParameterErrorEnum(proto.Message):
<|file_name|>logging_binary_test.go<|end_file_name|><|fim▁begin|>// +build functional package cri_containerd import ( "context" "fmt" "io/ioutil" "os" "path/filepath" "strings" "testing" "time" runtime "k8s.io/cri-api/pkg/apis/runtime/v1alpha2" ) // This test requires compiling a helper logging binary whic...
if _, err := os.Stat(logFileName); os.IsNotExist(err) {
<|file_name|>convolution_border_modes.py<|end_file_name|><|fim▁begin|>import string __version__ = string.split('$Revision: 1.6 $')[1] __date__ = string.join(string.split('$Date: 2001/11/17 14:12:34 $')[1:3], ' ') __author__ = 'Tarn Weisner Burton <twburton@users.sourceforge.net>' __doc__ = 'http://oss.sgi.com/proje...
<|file_name|>general.py<|end_file_name|><|fim▁begin|>""" General Character commands usually availabe to all characters """ from django.conf import settings from evennia.utils import utils, prettytable from evennia.commands.default.muxcommand import MuxCommand # limit symbol import for API __all__ = ("CmdHome", "CmdLo...