prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>SearchConsumerHandler.java<|end_file_name|><|fim▁begin|>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to Y...
LOG.debug("Searching with {} pages.", numberOfPages);
<|file_name|>iso8859_5.py<|end_file_name|><|fim▁begin|>""" Python Character Mapping Codec iso8859_5 generated from 'MAPPINGS/ISO8859/8859-5.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encod...
u'\u0404' # 0xA4 -> CYRILLIC CAPITAL LETTER UKRAINIAN IE u'\u0405' # 0xA5 -> CYRILLIC CAPITAL LETTER DZE
<|file_name|>whir.go<|end_file_name|><|fim▁begin|>package main import ( "fmt"<|fim▁hole|>type talker interface { talk() string } func shout(t talker) { louder := strings.ToUpper(t.talk()) fmt.Println(louder) } type laser int func (l laser) talk() string { return strings.Repeat("toot ", int(l)) } type rover st...
"strings" )
<|file_name|>confusionmatrix.py<|end_file_name|><|fim▁begin|># Natural Language Toolkit: Confusion Matrices # # Copyright (C) 2001-2015 NLTK Project <|fim▁hole|># Steven Bird <stevenbird1@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT from __future__ import print_function, ...
# Author: Edward Loper <edloper@gmail.com>
<|file_name|>stats.js<|end_file_name|><|fim▁begin|>"use strict"; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target;...
var stats = Object.create({ setTransport: function setTransport(_transport) { transport = _transport;
<|file_name|>test_0844_stack.py<|end_file_name|><|fim▁begin|>import unittest import utils def remove_backspace(s): result = [] for ch in s: if ch == '#': if result: result.pop() else: result.append(ch) return result # O(n) time. O(n) space. Stack. ...
actual = Solution().backspaceCompare(**case.args.__dict__) self.assertEqual(case.expected, actual, msg=args)
<|file_name|>redirects.py<|end_file_name|><|fim▁begin|>from bedrock.redirects.util import redirect <|fim▁hole|> redirect(r'^newsletter/about_mozilla(?:/(?:index\.html)?)?$', 'mozorg.contribute.index'), redirect(r'^newsletter/new(?:/(?:index\.html)?)?$', 'newsletter.subscribe'), redirect(r'^newsletter/ios(?:...
redirectpatterns = ( # bug 926629 redirect(r'^newsletter/about_mobile(?:/(?:index\.html)?)?$', 'newsletter.subscribe'),
<|file_name|>suff.py<|end_file_name|><|fim▁begin|>#! /usr/bin/env python3 # suff # # show different suffixes amongst arguments import sys def main(): files = sys.argv[1:] <|fim▁hole|> suffixes = {} for filename in files: suff = getsuffix(filename) suffixes.setdefault(suff, []...
<|file_name|>train.py<|end_file_name|><|fim▁begin|>import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import gc import argparse from util import learn def get_arguments(): parser = argparse.ArgumentParser(description='Train a model') parser.add_argument('data', type=str, help='Training data set') parser.a...
gc.collect()
<|file_name|>packet.go<|end_file_name|><|fim▁begin|>// Copyright 2011 The Go 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 packet implements parsing and serialization of OpenPGP packets, as // specified in RFC 4880. pack...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>//! Representation of Cranelift IR functions. mod builder; pub mod condcodes; pub mod dfg; pub mod entities; mod extfunc; mod extname; pub mod function; mod globalvalue; mod heap; pub mod immediates; pub mod instructions; pub mod jumptable; pub mod layout; mod libcall; ...
mod trapcode; pub mod types;
<|file_name|>shootout-spectralnorm.rs<|end_file_name|><|fim▁begin|>// The Computer Language Benchmarks Game<|fim▁hole|>// Copyright (c) 2012-2014 The Rust Project Developers // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that t...
// http://benchmarksgame.alioth.debian.org/ // // contributed by the Rust Project Developers
<|file_name|>io.py<|end_file_name|><|fim▁begin|>""" * Copyright (C) Caleb Marshall and others... - All Rights Reserved * Written by Caleb Marshall <anythingtechpro@gmail.com>, May 27th, 2017 * Licensing information can found in 'LICENSE', which is part of this source code package. """ import struct class Endiannes...
def write_double(self, value): self.write_to('d', value) def read_char(self):
<|file_name|>Tutorial.java<|end_file_name|><|fim▁begin|>package org.anddev.amatidev.pvb; import java.util.LinkedList; import org.amatidev.util.AdEnviroment; import org.amatidev.util.AdPrefs; import org.anddev.amatidev.pvb.bug.BugBeetle; import org.anddev.amatidev.pvb.card.Card; import org.anddev.amatidev.pvb.card.Car...
<|file_name|>_dscp_configuration_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 informatio...
accept = "application/json"
<|file_name|>enums_2.js<|end_file_name|><|fim▁begin|>var searchData= [ ['interactiontype',['InteractionType',['../class_student_record.html#a00e060bc8aa9829e5db087e2cba21009',1,'StudentRecord']]]<|fim▁hole|><|fim▁end|>
];
<|file_name|>stat.py<|end_file_name|><|fim▁begin|># # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache Lice...
args = [_py2java(sc, arg) for arg in (dataset, featuresCol, labelCol)] return _java2py(sc, javaTestObj.test(*args))
<|file_name|>32b54dec3fc0_fixes_bug_970406_add_raw_adi_logs_table.py<|end_file_name|><|fim▁begin|>"""Fixes bug 970406 - add raw_adi_logs table Revision ID: 32b54dec3fc0 Revises: 1ab8d5514ce2 Create Date: 2014-06-12 11:47:19.398882 """ # revision identifiers, used by Alembic. revision = '32b54dec3fc0' down_revision =...
<|file_name|>feed_parse_extractFinebymetranslationsWordpressCom.py<|end_file_name|><|fim▁begin|>def extractFinebymetranslationsWordpressCom(item): ''' Parser for 'finebymetranslations.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in i...
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>__author__ = 'Xsank' from handlers import IndexHandler from handlers import WSHandler handlers=[ (r"/",IndexHandler),<|fim▁hole|><|fim▁end|>
(r"/ws",WSHandler), ]
<|file_name|>HibernateTable.java<|end_file_name|><|fim▁begin|>package com.txtr.hibernatedelta.model; import static javax.xml.bind.annotation.XmlAccessType.FIELD; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import ...
@XmlAccessorType(FIELD)
<|file_name|>bitcoin_ro_RO.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Purplecoin</source> <translation>Despre P...
<message>
<|file_name|>config.py<|end_file_name|><|fim▁begin|># -*- coding:utf-8 -*- import os site_title = 'plum.J' site_description = '\'s blog' site_url = 'http://plumj.com' static_url = 'static' theme_name = 'sealscript' google_analytics = '' catsup_path = os.path.dirname(__file__) posts_path = os.path.join(catsup_path, '...
github=github, feed=feed, post_per_page=post_per_page, disqus_shortname=disqus_shortname,
<|file_name|>StreamReplacer.js<|end_file_name|><|fim▁begin|>let upath = require('upath'), through2 = require('through2'), paths = require('../../project.conf.js').paths, RegexUtil = require('../util/RegexUtil'); module.exports = class StreamReplacer { constructor(replacements = {}) { this.rep...
let that = this;
<|file_name|>text_run.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 app_units::Au; use font::{Font, FontHandleMethods, FontM...
use xi_unicode::LineBreakLeafIter; thread_local! {
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>__all__ = ("settings", "urls", "wsgi")<|fim▁hole|><|fim▁end|>
__version__ = "0.159.0"
<|file_name|>recurrent_test.py<|end_file_name|><|fim▁begin|># Copyright 2017 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.ap...
layer.compute_output_shape((time_step, None, embedding_dim)).as_list(), [time_step, None, units]) y = layer(time_major_x)
<|file_name|>odyssey.py<|end_file_name|><|fim▁begin|>#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details __version__=''' $Id$ ''' ___doc__='' #odyssey.py # #Demo/benchmark of PDFgen rendering Homer's Odyssey. #results on my humble P266 with 64MB: # Without page compression: # 239 pages in...
canv.line(left_margin, bottom_margin, right_margin, bottom_margin) canv.drawCentredString(0.5*A4[0], 0.5 * inch,
<|file_name|>meson_post_install.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 import os import shutil import subprocess import sys if os.environ.get('DESTDIR'): install_root = os.environ.get('DESTDIR') + os.path.abspath(sys.argv[1]) else: install_root = sys.argv[1] if not os.environ.get('DESTDIR'): sc...
print('Compile gsettings schemas...') subprocess.call(['glib-compile-schemas', schemadir])
<|file_name|>StartTimes.java<|end_file_name|><|fim▁begin|>/* * Copyright 2010-2014 Ning, Inc. * Copyright 2014 The Billing Project, LLC * * Ning licenses this file to you 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 c...
<|file_name|>issue-89935.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>trait Foo: Baz {} trait Bar {} trait Baz: Bar { fn bar(&self); } impl<T: Foo> Bar for T {} impl<T: Foo> Baz for T { fn bar(&self) {} } fn accept_foo(x: Box<dyn Foo>) { x.bar(); } fn main() {}<|fim▁end|>
// check-pass
<|file_name|>single_task_trainer.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-...
from absl import logging
<|file_name|>test_bed_common.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 {Component, Directive, InjectFlags, InjectionTok...
<|file_name|>gcp_iam_role.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AU...
returned: success type: str description: description:
<|file_name|>script.js<|end_file_name|><|fim▁begin|>function generateList(people, template){ var i, result = '', len = people.length; result += '<ul>'; for(i = 0; i < len; i += 1){ result += '<li>'; result += template; result = result.replace('-{name}-', people[i][...
var template = document.getElementById('list-item').innerHTML; document.getElementById('list-item').innerHTML = generateList(people, template);
<|file_name|>books.reducer.ts<|end_file_name|><|fim▁begin|>import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity'; import { Book } from '../models/book'; import { BooksApiActionsUnion, BooksApiActionTypes, } from '../actions/books-api.actions'; import { BookActionsUnion, BookActionTypes } fr...
export const getSelectedId = (state: State) => state.selectedBookId;
<|file_name|>types.ts<|end_file_name|><|fim▁begin|>export interface NgModuleMetadata {<|fim▁hole|> declarations?: Array<any>; entryComponents?: Array<any>; imports?: Array<any>; schemas?: Array<any>; providers?: Array<any>; } export interface ICollection { [p: string]: any; } export interface NgStory { c...
<|file_name|>service.py<|end_file_name|><|fim▁begin|>######################################################################## # File name: service.py # This file is part of: aioxmpp # # LICENSE # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public...
Import/Export of roster data:
<|file_name|>syntax-extension-hexfloat-bad-lits.rs<|end_file_name|><|fim▁begin|>// Copyright 2013-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 ...
#[phase(plugin)]
<|file_name|>test_tracking_events.py<|end_file_name|><|fim▁begin|># # test_tracking_events.py # # Copyright (C) 2017 Kano Computing Ltd. # License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2 # # Unit tests for functions related to tracking events: # `kano_profile.tracker.tracking_events` # import os impor...
<|file_name|>active-line.min.js<|end_file_name|><|fim▁begin|><|fim▁hole|>size 682<|fim▁end|>
version https://git-lfs.github.com/spec/v1 oid sha256:07f4bf13ba69118ebd88b07b6c66f211f610acc3cdf0a9322352a6b8100ba3ce
<|file_name|>SimpleDokitView.java<|end_file_name|><|fim▁begin|>package com.didichuxing.doraemondemo.dokit; import android.content.Context; import android.util.DisplayMetrics; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.WindowManager; import android.wid...
import android.widget.ImageView; import android.widget.Switch;
<|file_name|>slnfile.rs<|end_file_name|><|fim▁begin|>use std::path::Path; use std::fs::File; use std::io::Write; use visualstudio::{ProjDesc, escape}; pub struct SlnFile { projects: Vec<ProjDesc>, } impl SlnFile { pub fn new() -> SlnFile { SlnFile { projects: Vec::new() } } ...
writeln!(file, "# Visual Studio 14").unwrap(); writeln!(file, "VisualStudioVersion = 14.0.25420.1").unwrap();
<|file_name|>LibAVFilter.cpp<|end_file_name|><|fim▁begin|>/****************************************************************************** QtAV: Multimedia framework based on Qt and FFmpeg Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com> * This file is part of QtAV (from 2014) This library is free s...
typedef QSharedPointer<AVFrameHolder> AVFrameHolderRef; #endif //QTAV_HAVE(AVFILTER)
<|file_name|>449914911f93_post_admins.py<|end_file_name|><|fim▁begin|>"""Post admins <|fim▁hole|>""" # revision identifiers, used by Alembic. revision = '449914911f93' down_revision = '2420dd9c9949' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'jobpost_admin', s...
Revision ID: 449914911f93 Revises: 2420dd9c9949 Create Date: 2013-12-03 23:03:02.404457
<|file_name|>waybackmachine.py<|end_file_name|><|fim▁begin|>"""Define related tools for web.archive.org (aka Wayback Machine).""" import logging from threading import Thread from datetime import date from urllib.parse import urlparse from regex import compile as regex_compile from requests import ConnectionError as R...
archive_dict['archive-date'] = date( int(archive_year), int(archive_month), int(archive_day) )
<|file_name|>test_urls.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function import importlib import os import six import ujson import django.core.urlresolvers from django.test import TestCase from typing import List, Optional from zerver...
], 400: ["/api/v1/external/github",
<|file_name|>base.py<|end_file_name|><|fim▁begin|>from abc import ABC, abstractmethod from typing import Dict, List, Optional, Tuple from limits.storage.registry import StorageRegistry from limits.util import LazyDependency class Storage(LazyDependency, metaclass=StorageRegistry): """ Base class to extend wh...
.. versionadded:: 2.1 """
<|file_name|>generator.py<|end_file_name|><|fim▁begin|># Domato - main generator script # -------------------------------------- # # Written and maintained by Ivan Fratric <ifratric@google.com> # # Copyright 2017 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License")...
try:
<|file_name|>index.js<|end_file_name|><|fim▁begin|>'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); module.exports = yeoman.Base.extend({ prompting: function () { this.log(yosay( 'Welcome to the ' + chalk.red('generator-react-app-boilerplat...
<|file_name|>results.py<|end_file_name|><|fim▁begin|># Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Results of coverage measurement.""" import collections from coverage.backward import iitems from coverage....
return sorted(missing)
<|file_name|>from_icao.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # *-* coding: UTF-8 *-* """ Organizaţia Internaţională a Aviaţiei Civile propune un alfabet în care fiecărei litere îi este asignat un cuvânt pentru a evita problemele în înțelegerea mesajelor critice. Pentru a se păstra un istoric al conver...
except IOError: print "Error! Could not open file." return
<|file_name|>main.py<|end_file_name|><|fim▁begin|>""" instantly/main.py Defines the basic terminal interface for interacting with Instantly. Copyright (C) 2013 Timothy Edmund Crosley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>#!/bin/env python # This is the building script for Python maxent extension module. # Simply type "python setup.py build" at command line to build the extension. # After that you can type "python setup.py install" to install the extension # module. # # The script assu...
["maxent_wrap.cxx"], include_dirs=[
<|file_name|>SimBatchRun.py<|end_file_name|><|fim▁begin|>import ConfigParser import os import re from itertools import product import LineRegress import ResultScraper def readconfig(filename): ## SETS DEFaULTS #all defaults must be in a list even if only one value speciesFile = "" outFolder = "" ...
N0s = [int(value) for value in paramList] ##read Number of Microsats
<|file_name|>Indexer.py<|end_file_name|><|fim▁begin|>#! /usr/bin/env python import os.path import os import argparse import pickle from util import * from collections import defaultdict import base64 import logging import sys import json import shelve #from FeatureExtraction import Tf_Idf from LangProc import docTerms ...
def getDocumentOfId(self,id): return self.forwardIndex.get(str(id),[])
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|> return 'Knock Knock. Who is there?'<|fim▁end|>
def joke():
<|file_name|>GroupKey.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2010-2012 Grid Dynamics Consulting Services, Inc, All Rights Reserved * http://www.griddynamics.com * * This library is free software; you can redistribute it and/or modify it under the terms of * the Apache License; either * version 2.0 o...
.add("upperName", upperName) .add("leftName", leftName) .toString(); }
<|file_name|>HorizontalLabelNames.js<|end_file_name|><|fim▁begin|>/** * TODO: Rename. Refactor with VerticalLabelNames. */ Ext.define('HorizontalLabelNames', { alias: "widget.HorizontalLabelNames", extend: 'Ext.panel.Panel', layout: 'absolute', items: [ { xtype: 'component', ...
* */ draw: function () { this.refreshCanvasSize();
<|file_name|>utils.js<|end_file_name|><|fim▁begin|>/////////////////////// /// UTILS /// /////////////////////// var u = {}; u.distance = function (p1, p2) { var dx = p2.x - p1.x; var dy = p2.y - p1.y; return Math.sqrt((dx * dx) + (dy * dy)); }; u.angle = function(p1, p2) { var dx = p2.x - ...
return obj; };
<|file_name|>SqlIndex.java<|end_file_name|><|fim▁begin|>/* * Copyright © 2009 HotPads (admin@hotpads.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 the License at * * http://www.apache.org/...
private final String name; private final List<String> columnNames;
<|file_name|>getDisplayName.js<|end_file_name|><|fim▁begin|>/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be foun...
<|file_name|>fontawesome.js<|end_file_name|><|fim▁begin|>/** * @package EntegreJS * @subpackage Widgets * @subpackage fontawesome * @author James Linden <kodekrash@gmail.com> * @copyright 2016 James Linden * @license MIT */ E.widget.fontawesome = class extends E.factory.node { constructor( icon ) { super( '...
<|file_name|>OkHttpException.java<|end_file_name|><|fim▁begin|>package hu.autsoft.nytimes.exception; <|fim▁hole|> public OkHttpException(Throwable cause) { super(cause); } }<|fim▁end|>
public class OkHttpException extends RuntimeException {
<|file_name|>fastq_to_fasta.py<|end_file_name|><|fim▁begin|>import os import sys from Bio import SeqIO <|fim▁hole|>for records in SeqIO.parse(f, 'fastq'): SeqIO.write(records, out, 'fasta')<|fim▁end|>
f = open(sys.argv[1], 'rU') out = open(sys.argv[2], 'w')
<|file_name|>encoder_impl.cc<|end_file_name|><|fim▁begin|>/* -*- c++ -*- */ /* * Copyright 2013-2014 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the...
<|file_name|>traverser.ts<|end_file_name|><|fim▁begin|>import {Parser} from './parser'; import INode = Parser.INode; import AST = Parser.AST; import CallExpression = Parser.CallExpression; export namespace Traverser { export let traverse = (ast: AST, visitor: Object) => { let traverserArray = (array: INode[], p...
<|file_name|>logout.js<|end_file_name|><|fim▁begin|>var test = require('tap').test var server = require('./lib/server.js') var common = require('./lib/common.js') var client = common.freshClient() function nop () {} var URI = 'http://localhost:1337/rewrite' var TOKEN = 'b00b00feed' var PARAMS = { auth: { token...
}
<|file_name|>InstallWizard.py<|end_file_name|><|fim▁begin|>from Screens.Screen import Screen from Components.ConfigList import ConfigListScreen, ConfigList from Components.ActionMap import ActionMap from Components.Sources.StaticText import StaticText from Components.config import config, ConfigSubsection, ConfigBoolea...
STATE_CHOISE_CHANNELLIST = 1
<|file_name|>check_automation_ids.py<|end_file_name|><|fim▁begin|>import json from os.path import join from django.conf import settings from django.core.management.base import NoArgsCommand from program.models import ProgramSlot class Command(NoArgsCommand): help = 'checks the automation_ids used by program slo...
for automation_id in sorted(rd_ids.iterkeys()):
<|file_name|>QueryGenerator.java<|end_file_name|><|fim▁begin|>package annotationInteraction; import java.awt.geom.Rectangle2D; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.TreeMap; ...
} }
<|file_name|>session.py<|end_file_name|><|fim▁begin|>from .transport import TransportEvents from . import connection_info import gui import speech import ui import braille import versionInfo from logHandler import log from . import configuration from . import nvda_patcher from . import RelayTransport from co...
conf['seen_motds'][address] = hashed conf.write() return True
<|file_name|>session.py<|end_file_name|><|fim▁begin|># ======================================================================== # Copyright (c) 2007, Metaweb Technologies, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the f...
else: headers = _normalize_headers(headers)
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>/** * Flow - Realtime log analyzer * Copyright (C) 2016 Daniel Mircea * * 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...
<|file_name|>BaseCcsiInfo.java<|end_file_name|><|fim▁begin|>package com.ccsi.commons.dto.tenant;<|fim▁hole|>public class BaseCcsiInfo { protected Long id; protected String name; protected String description; public String getName() { return name; } public void setName(String name) { ...
/** * @author mbmartinez */
<|file_name|>scrollable_region.rs<|end_file_name|><|fim▁begin|>use std::sync::Arc; use scribe::buffer::Buffer; use unicode_segmentation::UnicodeSegmentation; use crate::view::buffer::LineNumbers; use crate::view::terminal::Terminal; /// Abstract representation of a fixed-height section of the screen. /// Used to deter...
let gutter_width = LineNumbers::new(&buffer, None).width() + 1;
<|file_name|>Helpers.js<|end_file_name|><|fim▁begin|>const FormatNumber = (value) => {<|fim▁hole|>export default FormatNumber;<|fim▁end|>
return value.toLocaleString("en-GB", { minimumFractionDigits: 2 }); };
<|file_name|>evthandler.py<|end_file_name|><|fim▁begin|>"""Pygame event handler by J. This module consists of the EventHandler class, which is used to assign callbacks to events and keypresses in Pygame. Release: 12. Licensed under the GNU General Public License, version 3; if this was not included, you can find it ...
update
<|file_name|>settings.py<|end_file_name|><|fim▁begin|># Django settings for barista project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Sinan Midillili', 'sinan@rahatol.com'), ) DEFAULT_FROM_EMAIL = 'sinan@rahatol.com', SERVER_EMAIL = 'sinan@rahatol.com' MANAGERS = ADMINS # Hosts/domain names t...
'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse'
<|file_name|>insert_operators_in_string.py<|end_file_name|><|fim▁begin|>from typing import List from test_framework import generic_test<|fim▁hole|> def expression_synthesis(digits: List[int], target: int) -> bool: # TODO - you fill in here. return True if __name__ == '__main__': exit( generic_te...
<|file_name|>checkerboard.rs<|end_file_name|><|fim▁begin|>// Copyright (c) 2017 The Noise-rs Developers. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT // or http://opensource.org/licenses/MIT>, at your option. All f...
impl NoiseFn<Point2<f64>> for Checkerboard { fn get(&self, point: Point2<f64>) -> f64 { calculate_checkerboard(&point, self.size)
<|file_name|>column.mako.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/. */ <%namespace name="helpers" file="/helpers.mako.rs" /> <%...
"Either::Second(Auto)", initial_specified_value="Either::Second(Auto)", experimental="True", animation_value_type="PositiveIntegerOrAuto",
<|file_name|>jquery.textareaCounter.plugin.js<|end_file_name|><|fim▁begin|>/* * jQuery Textarea Characters Counter Plugin v 2.0 * Examples and documentation at: http://roy-jin.appspot.com/jsp/textareaCounter.jsp * Copyright (c) 2010 Roy Jin * Version: 2.0 (11-JUN-2010) * Dual licensed under the MIT and GPL li...
<|file_name|>index.tsx<|end_file_name|><|fim▁begin|>import * as React from 'react'; import './style.css'; import SelectComponent from 'Components/SelectComponent'; import SingelHouse from 'Components/SingleHouse'; import SearchMap from '../SearchMap'; import { Icon } from 'react-fa'; const houseData: any[] = [{ name...
<div className="selectItem">
<|file_name|>cookies.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. class CookiesTest(object): def test_create_and_access_a_cookie(self): ...
self.assertEqual(len(self.browser.cookies.all()), 2)
<|file_name|>apps.py<|end_file_name|><|fim▁begin|>from django.apps import AppConfig class UsersConfig(AppConfig):<|fim▁hole|><|fim▁end|>
name = 'users' verbose_name = "Usuarios"
<|file_name|>0009_auto_20151210_1124.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('search', '0008_auto_20151117_1526'), ] operations = [ m...
migrations.AlterField( model_name='opinioncluster', name='slug', field=models.SlugField(help_text=b'URL that the document should map to (the slug)', max_length=75, null=True, db_index=False),
<|file_name|>MockPsiFile.java<|end_file_name|><|fim▁begin|>/* * Copyright 2000-2015 JetBrains s.r.o. * * 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/...
@Override public PsiElement addRangeBefore(@NotNull PsiElement first, @NotNull PsiElement last, PsiElement anchor)
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>use dox::mem; pub type sa_family_t = u16; pub type pthread_key_t = ::c_uint; pub type speed_t = ::c_uint; pub type tcflag_t = ::c_uint; pub type loff_t = ::c_longlong; pub type clockid_t = ::c_int; pub type key_t = ::c_int; pub type id_t = ::c_uint; pub enum timezone {...
pub const QIF_INODES: ::uint32_t = 8;
<|file_name|>typedeclarationnode.py<|end_file_name|><|fim▁begin|><|fim▁hole|>""" Clase C{TypeDeclarationNode} del árbol de sintáxis abstracta. """ from pytiger2c.ast.declarationnode import DeclarationNode class TypeDeclarationNode(DeclarationNode): """ Clase C{TypeDeclarationNode} del árbol de sintáxis abstr...
# -*- coding: utf-8 -*-
<|file_name|>ibmdb.js<|end_file_name|><|fim▁begin|>module.exports = function(RED) { "use strict"; var reconnect = RED.settings.ibmdbReconnectTime || 30000; var db2 = require('ibm_db'); var Promise = require('promise'); function IbmDBNode(n) { RED.nodes.createNode(this,n); this.host ...
<|file_name|>registry.js<|end_file_name|><|fim▁begin|>// // Copyright (c) 2011 - 2015 ASPECTRON Inc. // All Rights Reserved. // // This file is part of JSX (https://github.com/aspectron/jsx) project. // // Distributed under the MIT software license, see the accompanying // file LICENSE // var registry = (fun...
self.enumerate_values = function(path, cb_fn) {
<|file_name|>client_gen.go<|end_file_name|><|fim▁begin|>// Copyright © 2015-2018 Victor Antonovich <victor@antonovich.me> // // 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://...
if c.useInformers { c.Lock()
<|file_name|>http.rs<|end_file_name|><|fim▁begin|>//! Pieces pertaining to the HTTP message protocol. use std::cmp::min; use std::fmt; use std::io::{mod, Reader, IoResult, BufWriter}; use std::num::from_u16; use std::str; use url::Url; use url::ParseError as UrlError; use method; use status::StatusCode; use uri; use ...
let to_read = min(rem, buf.len()); let count = try!(body.read(buf.slice_to_mut(to_read)));
<|file_name|>package.py<|end_file_name|><|fim▁begin|>############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. #<|fim▁hole|># # For details, see https://github.com/llnl/sp...
# This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-647188
<|file_name|>nl-SR.js<|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 */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gu...
<|file_name|>test_documentbylineviewlet.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from imio.history.config import HISTORY_COMMENT_NOT_VIEWABLE from imio.history.interfaces import IImioHistory from imio.history.testing import IntegrationTestCase from plone import api from plone.memoize.instance import Mem...
# clean memoize
<|file_name|>filters.go<|end_file_name|><|fim▁begin|>/**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /* @author Axel Anceau - 2014 Package api contains general tools */ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ package api import ( "fmt" "github.com/revel/revel" "runtim...
revel.ERROR.Print(err, "\n", error.Stack)
<|file_name|>frontpage.js<|end_file_name|><|fim▁begin|>/** * @fileOverview scripts about the frontpage. */ var calendarth = require('calendarth'); var util = require('./util'); var Front = module.exports = function() { this.$agendaContainer = null; this.$agendaItem = null; this.$error = null; }; /** @const ...
<|file_name|>stats.rs<|end_file_name|><|fim▁begin|>// Copyright (c) 2015-2017 Ivo Wetzel // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be...
self.bytes_sent = 0; self.bytes_received = 0; } }