prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>jscsspFontFaceRule.js<|end_file_name|><|fim▁begin|>/* kJscsspFONT_FACE_RULE */ function jscsspFontFaceRule() { this.type = kJscsspFONT_FACE_RULE; this.parsedCssText = null; this.descriptors = []; this.parentStyleSheet = null; this.parentRule = null; } jscsspFontFaceRule.prototype = { cssText:...
<|file_name|>MarketResourceFormatter.java<|end_file_name|><|fim▁begin|>package cm.aptoide.pt.util; import android.content.Context; public class MarketResourceFormatter { private String marketName; <|fim▁hole|> } public String formatString(Context context, int id, String... optParamaters) { return context.g...
public MarketResourceFormatter(String marketName) { this.marketName = marketName;
<|file_name|>dnn.py<|end_file_name|><|fim▁begin|># Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
combiner="sum") impression_emb = embedding_column(impression_app_id, dimension=16,
<|file_name|>utf8.rs<|end_file_name|><|fim▁begin|>// Copyright 2021 Luis Cáceres // // 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 // /...
src = src.split_at(res.src_consumed).1; } _ => panic!("conversion error"),
<|file_name|>MZ.rs<|end_file_name|><|fim▁begin|>// fn main() { // let nums = vec![0,1,0,3,12]; // let mut result:Vec<i32> = Vec::new(); // let mut zeros = 0; // for i in &nums { // if *i != 0 { // result.push(*i); // }else { // zeros += 1; // } // } ...
// println!("{:?}", nums); // println!("{:?}", result);
<|file_name|>sales-monthly-report-router.js<|end_file_name|><|fim▁begin|>var Router = require('restify-router').Router; var db = require("../../../../db"); var ProductionOrderManager = require("dl-module").managers.sales.ProductionOrderManager; var resultFormatter = require("../../../../result-formatter"); var passport...
<|file_name|>views.py<|end_file_name|><|fim▁begin|>from django.shortcuts import render from django.utils.translation import activate def index(request): # latest_question_list = Question.objects.order_by('-pub_date')[:5] # context = {'latest_question_list': latest_question_list} # activate('pt-br') # p...
<|file_name|>builder.py<|end_file_name|><|fim▁begin|>from scapy.all import * from scapy.layers import dhcp6 from time import time def duid(ll_addr): return DUID_LLT(lladdr=ll_addr, timeval=time()) def ias(requested, iface, T1=None, T2=None): return map(lambda r: __build_ia(r, iface, T1, T2), requested) def ...
elif isinstance(opt, DHCP6OptDNSDomains): pass elif isinstance(opt, DHCP6OptDNSServers): opt.dnsservers.append('2001:500:88:200::10')
<|file_name|>64.py<|end_file_name|><|fim▁begin|><|fim▁hole|>p = 'noobie' if p == 'hacking': print('Hack the planet!') else: print('Falso') ''' A condição retornou falso pq o valor atribuído em p não é igual a hacking '''<|fim▁end|>
<|file_name|>NotificationProviderException.java<|end_file_name|><|fim▁begin|>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License vers...
<|file_name|>main.py<|end_file_name|><|fim▁begin|>import signal as signals import messages from config import config from curio import SignalQueue, TaskGroup, run, spawn, tcp_server # Queue, CancelledError from feeds import ClientStreamFeed from logs import setup_logging from tasks import ControlTask, HeartbeatTask, ...
await workers.spawn(out_feed.outgoing, client_stream) await workers.spawn(feed.incoming, client_stream) # TODO: incoming feed message parsing
<|file_name|>sha1.rs<|end_file_name|><|fim▁begin|>use byteorder::{ ReadBytesExt, WriteBytesExt, BigEndian }; use digest::Digest; use utils::buffer::{ FixedBuffer, FixedBuffer64, StandardPadding }; struct SHA1State { h0: u32, h1: u32, h2: u32, h3: u32, h4: u32 } impl SHA1St...
length: u64
<|file_name|>base.py<|end_file_name|><|fim▁begin|># coding=utf-8 # Django settings for bluebottle project. import os, datetime # Import global settings for overriding without throwing away defaults from django.conf import global_settings from django.utils.translation import ugettext as _ from admin_dashboard import *...
'django.core.context_processors.i18n', 'bluebottle.utils.context_processors.installed_apps_context_processor',
<|file_name|>ident.rs<|end_file_name|><|fim▁begin|>// Copyright 2013-2014 The Algebra Developers. // // 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/...
impl_ident!(Additive; 0.; f32, f64); impl_ident!(Multiplicative; 1; u8, u16, u32, u64, i8, i16, i32, i64); impl_ident!(Multiplicative; 1.; f32, f64);
<|file_name|>TDBinaryExpr.java<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2015-2016 Didier Villevalois. * * This file is part of JLaTo. * * JLaTo 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 Foundati...
public class TDBinaryExpr extends TDTree<SBinaryExpr, Expr, BinaryExpr> implements BinaryExpr { /**
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>''' Full setup, used to distribute the debugger backend to PyPi. Note that this is mostly so that users can do: pip install pydevd in a machine for doing remote-debugging, as a local installation with the IDE should have everything already distributed.<|fim▁hole|> R...
<|file_name|>main.cc<|end_file_name|><|fim▁begin|>#include "assert.hh" #include "buffer.hh" #include "backtrace.hh" #include "buffer_manager.hh" #include "buffer_utils.hh" #include "client_manager.hh" #include "command_manager.hh" #include "commands.hh" #include "containers.hh" #include "context.hh" #include "event_man...
"cursor_line", false,
<|file_name|>GeneratorCodonsTest.py<|end_file_name|><|fim▁begin|>import unittest import string from pprint import pprint import XGram, XGram.Parser, XGram.Exceptions from XGram.Generator.Prebuilt import Codons from XGram.Model import Annotation import Bio.Data.CodonTable class GeneratorCodonsTest(unittest.TestCase): ...
self.buildAndCheckModel( "codons-four" ) codons = Bio.Data.CodonTable.standard_dna_table.forward_table codon_frequencies = {}
<|file_name|>Mat4f.ts<|end_file_name|><|fim▁begin|>import {Vec3f} from "./Vec3f"; import {Quaternion} from "./Quaternion"; import {MathUtils} from "./MathUtils"; import {Vec4f} from "./Vec4f"; /** * Created by r3f on 7/1/2016. */ export class Mat4f{ // Matrix row & column values as in i,j m:Float32Array; ...
var a10 = mat[ 4], a11 = mat[ 5], a12 = mat[ 6], a13 = mat[7]; var a20 = mat[ 8], a21 = mat[ 9], a22 = mat[10], a23 = mat[11]; var a30 = mat[12], a31 = mat[13], a32 = mat[14], a33 = mat[15];
<|file_name|>one.js<|end_file_name|><|fim▁begin|>var one = {<|fim▁hole|><|fim▁end|>
name: 'one' };
<|file_name|>checkChecker.js<|end_file_name|><|fim▁begin|>/* Check for Checks Jesse Allison 2015 */ var checkDict = new Dict('recentChecks'); var ajaxreq; function bang() { var all_the_checks = checkDict.get('body');<|fim▁hole|>} function updateChecks() { ajaxreq = new XMLHttpRequest(); ajaxreq.open("GET","h...
post(all_the_checks.length);
<|file_name|>test_select.py<|end_file_name|><|fim▁begin|>from .. import config from .. import fixtures from ..assertions import eq_ from ..assertions import in_ from ..schema import Column from ..schema import Table from ... import bindparam from ... import case from ... import Computed from ... import exists from ... ...
<|file_name|>pid.py<|end_file_name|><|fim▁begin|>import os<|fim▁hole|>print os.path.dirname(os.path.abspath(__file__))<|fim▁end|>
<|file_name|>ajax_filtered_fields.js<|end_file_name|><|fim▁begin|>$(function() { $(".ajax_filter_choice").click(function() { $(this).parent().siblings().css("font-weight", "normal"); $(this).parent().css("font-weight","bold"); }) }); ajax_filtered_fields = { request_url: "/ajax_filtered_fiel...
},
<|file_name|>KonamiCodeManager.js<|end_file_name|><|fim▁begin|>class KonamiCodeManager { constructor() { this._pattern = "38384040373937396665";<|fim▁hole|> attach(root, callback) { if (root instanceof Element) { root.removeEventListener('keydown', this._boundCheckKeyCodePattern); root.addEventL...
this._keyCodeCache = ''; this._callback = () => {}; this._boundCheckKeyCodePattern = this._checkKeyCodePattern.bind(this); }
<|file_name|>TargetInfoVisitor.java<|end_file_name|><|fim▁begin|>/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2017 Eric Lafortune @ GuardSquare * * This program is free software; you can redistribute it and/or modify it * under ...
public void visitOffsetTargetInfo( Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, OffsetTargetInfo offsetTargetInfo); public void visitTypeArgumentTargetInfo( Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotati...
<|file_name|>BlogPostsFetcher.java<|end_file_name|><|fim▁begin|>package com.jvm_bloggers.core.data_fetching.blog_posts; import akka.actor.ActorRef; import akka.actor.ActorSystem; import akka.routing.RoundRobinPool; import com.jvm_bloggers.core.data_fetching.blogs.PreventConcurrentExecutionSafeguard; import com.jvm_blo...
this.blogRepository = blogRepository;
<|file_name|>city-mentions.py<|end_file_name|><|fim▁begin|>import json import os from commonfunctions import commonfunctions as cf dir = cf.working_directory transcripts = [] for x in os.listdir(dir): with open(os.path.join(dir, x)) as f: transcripts.append(json.load(f)) with open('worldcitiesout.json'...
'debate': {'description': description, 'date': date, 'context': text['text'][from_index:to_index]}})
<|file_name|>conf.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ''' Sphinx setting. ''' import os.path import sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) extensions = [ 'mamchecker.inl', 'sphinx.ext.mathjax', 'sphinxcontrib.tikz', 'sphinxcontrib.texfigure'] <|fim▁hole...
<|file_name|>named lists.spec.ts<|end_file_name|><|fim▁begin|>import * as jssm from '../jssm'; // TODO these tests only assert non-crashing // That amn't very good, sah test.todo('Assert better than non-crashing in named lists.spec.ts'); describe('named lists', () => { test('alone', () => expect(() => { j...
});
<|file_name|>volread.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright (C) 2012, Almar Klein # # Visvis is distributed under the terms of the (new) BSD License. # The full license can be found in 'license.txt'. import visvis as vv import numpy as np import os # Try importing imageio imageio = None ...
filename = filename2
<|file_name|>cEngine.__pluginTemplate__.js<|end_file_name|><|fim▁begin|>(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){va...
destroy: function destroy() { console.log('destroy');
<|file_name|>test_metrics.py<|end_file_name|><|fim▁begin|># Copyright (c) 2014 Red Hat, Inc. # # This software is licensed to you under the GNU General Public # License as published by the Free Software Foundation; either version # 2 of the License (GPLv2) or (at your option) any later version. # There is NO WARRANTY f...
self.assertEqual(unicode(t), '150 (ms)')
<|file_name|>rebuild_index.py<|end_file_name|><|fim▁begin|># encoding: utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from django.core.management import call_command from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Completely rebui...
) def handle(self, **options):
<|file_name|>app.js<|end_file_name|><|fim▁begin|>//var application = require("application"); //application.mainModule = "main-page"; //application.cssFile = "./app.css"; var map = new Map(); map.set("a", "b"); log(map); application.start();<|fim▁hole|>//application.Run(new System.Windows.Window());<|fim▁end|>
//var application = new System.Windows.Application();
<|file_name|>comp_table.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python2 """ COSMO TECHNICAL TESTSUITE General purpose script to compare two files containing tables Only lines with given table pattern are considered """ # built-in modules import os, sys, string # information __author__ = "Xavier Lapillonn...
else: print('''USAGE : ./comp_table file1 file2 colpattern minval threshold [verbose maxcompline]
<|file_name|>base.js<|end_file_name|><|fim▁begin|><|fim▁hole|>*/ import Ember from 'ember'; /** Class implementing base stylization for markers. @class BaseMarkerStyle */ export default Ember.Object.extend({ /** Gets default style settings. @method getDefaultStyleSettings @return {Object} Hash con...
/** @module ember-flexberry-gis
<|file_name|>sixth.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # bigcinemas <|fim▁hole|>class InvalidAge(Exception): def __init__(self,age): self.age = age def validate_age(age): if age < 18: raise InvalidAge(age) else: return "Welcome to the movies!!" age = int(raw_input("please enter your age:")) #p...
<|file_name|>parameters.py<|end_file_name|><|fim▁begin|>from property import * # Neuron common parameters iaf_neuronparams = {'E_L': -70., 'V_th': -50., 'V_reset': -67., 'C_m': 2., 't_ref': 2., 'V_m': -60., ...
<|file_name|>graphviz.rs<|end_file_name|><|fim▁begin|>// Copyright 2017 The nom-lua project developers<|fim▁hole|>// option. This file may not be copied, modified, or distributed // except according to those terms. extern crate nom_lua; pub fn main() { use std::fs::File; let mut f = File::create("example1.dot...
// // 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
<|file_name|>settestpath.py<|end_file_name|><|fim▁begin|># yum-rhn-plugin - RHN support for yum # # Copyright (C) 2006 Red Hat, Inc.<|fim▁hole|># # 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 Fo...
<|file_name|>aqpkg.ts<|end_file_name|><|fim▁begin|><!DOCTYPE TS><TS> <context> <name>CategoryFilterImpl</name> <message> <source>Category Filter</source> <translation>Filtro de Categorías</translation> </message> <message> <source>Select one or more groups</source> <trans...
<|file_name|>local-drop-glue.rs<|end_file_name|><|fim▁begin|>// Copyright 2016 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org...
}
<|file_name|>common.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Mon Apr 21 10:34:18 2014 @author: eegroopm """ import os, sys import pandas as pd import numpy as np class common: def __init__(self): self.path = os.path.expanduser('~') #\u0305 is unicode overline characte...
self.manualConds = [] #empty list of strings for manual conditions
<|file_name|>package.py<|end_file_name|><|fim▁begin|># Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Qnnpack(CMakePackage): """QNNPACK (Qu...
name='cpuinfo',
<|file_name|>history.component.ts<|end_file_name|><|fim▁begin|>import { Component, OnInit } from '@angular/core'; import { HistoryService } from './history.service'; <|fim▁hole|> moduleId: module.id, selector: 'sr-history', templateUrl: 'history.component.html', styleUrls: ['history.component.css'], }) export c...
@Component({
<|file_name|>solver.js<|end_file_name|><|fim▁begin|>import * as utils from '../../utils/utils' import * as math from '../../math/math' import QR from '../../math/qr' import LMOptimizer from '../../math/lm' import {ConstantWrapper, EqualsTo} from './constraints' import {dog_leg} from '../../math/optim' /** @constructor...
return sys.getValues(); }; var jacobian = function(point) {
<|file_name|>theMovieDb.py<|end_file_name|><|fim▁begin|>from app.config.cplog import CPLog from app.lib.provider.movie.base import movieBase from imdb import IMDb from urllib import quote_plus from urllib2 import URLError import cherrypy import os import urllib2 log = CPLog(__name__) class theMovieDb(movieBase): ...
item.name = self.toSaveString(name)
<|file_name|>task_5.py<|end_file_name|><|fim▁begin|>#task_5 def y1(x): return 1 + x * x def y2(x): return -2 - x * x x, y = tuple(map(float, input().split()))<|fim▁hole|>else: print('NO')<|fim▁end|>
if y1(x) < y or y2(x) > y: print('YES')
<|file_name|>229MajorityElementII.py<|end_file_name|><|fim▁begin|>class Solution: def majorityElement(self, nums):<|fim▁hole|> :rtype: List[int] """ num1, cnt1 = 0, 0 num2, cnt2 = 1, 0 for num in nums: if num == num1: cnt1 += 1 ...
""" :type nums: List[int]
<|file_name|>urls.py<|end_file_name|><|fim▁begin|># created by Chirath R, chirath.02@gmail.com from django.conf.urls import url from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from workshop.views import WorkshopRegistrationListView, WorkshopDetailView, WorkshopRe...
url(r'^(?P<pk>[0-9]+)/gallery/$', WorkshopGalleryListView.as_view(), name='image_list'),
<|file_name|>twisted_test.py<|end_file_name|><|fim▁begin|># Author: Ovidiu Predescu # Date: July 2011 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LI...
self.__saved_signals = save_signal_handlers() return test_class.buildReactor(self)
<|file_name|>InjectorSubscriptionMap.java<|end_file_name|><|fim▁begin|>/* * This file is part of LuckPerms, licensed under the MIT License. * * Copyright (c) lucko (Luck) <luck@lucko.me> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this so...
<|file_name|>range.rs<|end_file_name|><|fim▁begin|>use std::fmt::Display; #[cfg(feature = "inclusive_range")]<|fim▁hole|>pub fn range<T: 'static + PartialOrd + Display + Clone>(a: T, b: T) -> Box<Fn(&T) -> :...
use std::ops::RangeInclusive; #[cfg(not(feature = "inclusive_range"))]
<|file_name|>store.js<|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/>. */ // @flow const { applyMiddleware, createStore, compose } = re...
} if (props.releaseActor && initialState.actors) { initialState.actors.forEach(props.releaseActor);
<|file_name|>upstream.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # File created on 20 Feb 2013 from __future__ import division __author__ = "Greg Caporaso" __copyright__ = "Copyright 2011, The QIIME project" __credits__ = ["Greg Caporaso", "Kyle Bittinger", "Justin Kuczynski", "Jai Ram Rideou...
assign_taxonomy_cmd = 'assign_taxonomy.py -o %s -i %s %s' %\ (assign_taxonomy_dir, rep_set_fp, params_str)
<|file_name|>encrypted_transport_test.go<|end_file_name|><|fim▁begin|>/* Copyright 2019 The Vitess 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/LICENS...
<|file_name|>cart.component.ts<|end_file_name|><|fim▁begin|>import { Component, OnInit, Inject } from '@angular/core'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; import { Materiaal, Reservering } from '../../models/index'; import { Subscription } from 'rxjs/Subscription'; import { Mat...
}); }
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from .circleclient import __version__
<|file_name|>driver.py<|end_file_name|><|fim▁begin|># Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above ...
<|file_name|>DateTime.js<|end_file_name|><|fim▁begin|>import DateTimeCore from './DateTimeCore'; let DateTime = { mixins : [DateTimeCore], data : function () { return {}; }, methods : { _dtParseRelativeDatetimeToObj : function (val) { return this._dtcorePa...
return this._dtcoreIsRelative('datetime', val); }, _dtGetRelativeDatetime : function (relativeDate) {
<|file_name|>types.rs<|end_file_name|><|fim▁begin|>use libc::{c_char, c_int, c_uint, c_void, size_t}; pub use libgpg_error_sys::gpg_error_t as gcry_error_t; // extern { // pub type gcry_thread_cbs; // pub type gcry_context; // pub type gcry_sexp; // pub type gcry_mpi; // pub type gcry_mpi_point; /...
pub type gcry_ctx_t = *mut gcry_context; pub type gcry_sexp_t = *mut gcry_sexp; pub type gcry_mpi_t = *mut gcry_mpi;
<|file_name|>dna_r_test.cpp<|end_file_name|><|fim▁begin|>#include "dna_r.h" <|fim▁hole|> #include "dnasequence.h" #include "fileio.h" #include "testtimer.h" #include "ribi_rinside.h" #include "trace.h" #ifndef NDEBUG void ribi::DnaR::Test() noexcept { { static bool is_tested{false}; if (is_tested) return; ...
#include <cassert> #include <chrono> #include "RInside.h"
<|file_name|>keras_metrics.py<|end_file_name|><|fim▁begin|># Copyright 2019, 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 # ...
else:
<|file_name|>media_queries.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 euclid::size::Size2D; use std::borrow::ToOwned; use...
assert!(q0.qualifier == None, css.to_owned());
<|file_name|>example_pNH2D.py<|end_file_name|><|fim▁begin|>import pyspeckit import os from pyspeckit.spectrum.models import nh2d import numpy as np import astropy.units as u if not os.path.exists('p-nh2d_spec.fits'): import astropy.utils.data as aud from astropy.io import fits f = aud.download_file('https...
spec.error[:] = rms # setup spectral axis spec.xarr.refX = 110.153594*u.GHz spec.xarr.velocity_convention = 'radio'
<|file_name|>attributes.ts<|end_file_name|><|fim▁begin|>import {VNode} from '../VNode'; const booleanAttrs = [ 'allowfullscreen', 'async', 'autofocus', 'autoplay', 'checked', 'compact', 'controls', 'declare', 'default', 'defaultchecked', 'defaultmuted', 'defaultselected', 'defer', 'disabled', 'draggable', 'enabl...
booleanAttrsDict[booleanAttrs[i]] = true;
<|file_name|>Confirm.tsx<|end_file_name|><|fim▁begin|>import * as React from 'react'; import { renderLog } from '../../helpers/logger'; import { Dialog, Bg, Content } from './StyledDialog'; interface IConfirm { yes: () => {}; no: () => {};<|fim▁hole|>const Confirm: any = ({msg, yes, no}: IConfirm) => { renderL...
msg: string; }
<|file_name|>mod.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/. */ //! Tests for parsing and serialization of values/properties use...
f(&context, &mut parser) }
<|file_name|>detectorSpec.js<|end_file_name|><|fim▁begin|>var expect = require('expect.js'); var EventEmitter = require('events').EventEmitter; var fixtures = require('../fixtures'); var Detector = require('../../lib/detector.js'); describe('Detector', function() { // Used to test emitted events var ...
detector.run().then(function() { done(); }).catch(done);
<|file_name|>addUser.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # # # # This file is part of librix-thinclient. # # librix-thinclient 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 ...
from ltmt.ui.users.add_user.Ui_addUser import Ui_AddUser class AddUser(QtGui.QDialog):
<|file_name|>create-multi-path-topology.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # Copyright 2017 Telstra Open Source # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
<|file_name|>app.js<|end_file_name|><|fim▁begin|>/** * Copyright 2017 The AMP HTML 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...
}).join('\n'); var img = `<amp-img src="${flip() ? 'https://placekitten.com/300/350' : 'https://baconmockup.com/300/350'}"
<|file_name|>Elan.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import time import EafIO import warnings class Eaf: """Read and write Elan's Eaf files. .. note:: All times are in milliseconds and can't have decimals. :var dict annotation_document: Annotation document TAG entries. :var dic...
:param int time: Time of the annotation.
<|file_name|>LifeNode.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2013 Triforce - in association with the University of Pretoria and Epi-Use <Advance/> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), t...
public class LifeNode extends Node {
<|file_name|>test_resources.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import import unittest import bokeh.resources as resources from bokeh.resources import _get_cdn_urls WRAPPER = """Bokeh.$(function() { foo });""" WRAPPER_DEV = '''require(["jquery", "main"], function($, Bokeh) { Bokeh.s...
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>#!python # log/urls.py from django.conf.urls import url from . import views # We are adding a URL called /home urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^clients/$', views.clients, name='clients'), url(r'^clients/(?P<id>\d+)/$', views.cli...
<|file_name|>_imaging.py<|end_file_name|><|fim▁begin|># encoding: utf-8 # module PIL._imaging # from /usr/lib/python2.7/dist-packages/PIL/_imaging.so # by generator 1.135 # no doc # no imports # Variables with simple values DEFAULT_STRATEGY = 0 FILTERED = 1 FIXED = 4 HUFFMAN_ONLY = 2 jpeglib_version = '8.0' PILLO...
<|file_name|>api_1.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ rio.blueprints.api_1 ~~~~~~~~~~~~~~~~~~~~~ """ <|fim▁hole|><|fim▁end|>
from flask import Blueprint bp = Blueprint('api_1', __name__)
<|file_name|>xevie.rs<|end_file_name|><|fim▁begin|>/* * This file generated automatically from xevie.xml by r_client.py. * Edit at your peril. */ //Make the compiler quiet #![allow(unused_imports)] #![allow(non_camel_case_types)] use std; use libc::*; use ffi; pub static XEVIE_MAJOR_VERSION : c_uint = 1; pub stati...
*/ pub fn xcb_xevie_select_input_unchecked (c : *mut ffi::base::connection, event_mask : u32) -> select_input_cookie;
<|file_name|>list_property.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ InaSAFE Disaster risk assessment tool developed by AusAid - **metadata module.** Contact : ole.moller.nielsen@gmail.com .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the G...
def cast_from_str(self, value): try:
<|file_name|>keys.rs<|end_file_name|><|fim▁begin|>// Copyright 2018 (c) rust-themis developers // // 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/LIC...
<|file_name|>random_mover.py<|end_file_name|><|fim▁begin|>import random from ..simulator import Simulator class RandomMover(Simulator): ACTIONS = ('up', 'down', 'left', 'right') def start(self): self.init_game() while True: self._check_pygame_events() for drone in se...
drone.do_move(random.choice(self.ACTIONS))
<|file_name|>onlinemlp_backend.py<|end_file_name|><|fim▁begin|>from .base_backend import BaseBackend class MlpBackend(BaseBackend): def __init__(self, inpmulti, hidmulti, outmulti, learning_rate, inp96, hid96, out96, path, buffsize, mean, std, statspath): from neupre.misc.builders import build_model_mlp ...
validation_split=0.1, verbose=1) return [log2, log3] def predict(self, X_test_multistep, X_test_onestep96):
<|file_name|>DocumentCard.Props.ts<|end_file_name|><|fim▁begin|>import * as React from 'react'; import { DocumentCard } from './DocumentCard'; import { DocumentCardTitle } from './DocumentCardTitle'; import { DocumentCardPreview } from './DocumentCardPreview'; import { DocumentCardLocation } from './DocumentCardLocatio...
} export interface IDocumentCardActivityProps extends React.Props<DocumentCardActivity> {
<|file_name|>paddocks.js<|end_file_name|><|fim▁begin|>/** * API for paddock information * * Copyright (c) 2015. Elec Research. * * 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://mozil...
});
<|file_name|>namespace_lookup.go<|end_file_name|><|fim▁begin|>package command import ( "fmt" "strings" "github.com/mitchellh/cli" "github.com/posener/complete" ) var _ cli.Command = (*NamespaceLookupCommand)(nil) var _ cli.CommandAutocomplete = (*NamespaceLookupCommand)(nil) type NamespaceLookupCommand struct {...
func (c *NamespaceLookupCommand) Synopsis() string {
<|file_name|>describeGroups.js<|end_file_name|><|fim▁begin|>/* * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FO...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from .resnet_preact import resnet18_preact from .resnet_preact_bin import resnet18_preact_bin import torch, torch.nn as nn _model_factory = { "resnet18_preact":resnet18_preact, "resnet18_preact_bin":resnet18_preact_bin } class Classifier(torch.nn.Module): ...
<|file_name|>test_bigip_vcmp_guest.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import ...
# related to the slots on the system, but it is not a valid value to specify # that slot when providing an initial image args = dict(
<|file_name|>gffread_extract_transcripts.py<|end_file_name|><|fim▁begin|>from logging import getLogger from abstract_step import AbstractStep import os logger = getLogger('uap_logger') class GffreadExtractTranscripts(AbstractStep): ''' extract transcripts from gtf http://ccb.jhu.edu/software/stringtie/gf...
log_stdout = run.add_output_file("log_stdout", stdout_file, rfiles)
<|file_name|>annotations.py<|end_file_name|><|fim▁begin|>import csv import json import numpy as np import os import pathlib import navpy from direct.showbase.ShowBase import ShowBase from panda3d.core import CardMaker, LPoint3, NodePath, Texture, TransparencyAttrib from direct.gui.DirectGui import * from tkinter imp...
def add_marker(self, ned, comment, id): marker = { "ned": ned, "comment": comment, "id": id }
<|file_name|>wrkpool.py<|end_file_name|><|fim▁begin|>import Queue import atexit import logging import threading import traceback class WorkerPool(object): """ Pool of worker threads; grows as necessary. """ _lock = threading.Lock() _pool = None # Singleton. def __init__(self): self._idle = ...
def release(queue): """
<|file_name|>TagResourceResult.cpp<|end_file_name|><|fim▁begin|>/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/qldb/model/TagResourceResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult....
TagResourceResult::TagResourceResult() { }
<|file_name|>htmlbuttonelement.rs<|end_file_name|><|fim▁begin|>/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use crate::dom::activation::Activatable; use crate...
button_type: Cell::new(ButtonType::Submit), form_owner: Default::default(),
<|file_name|>test_pdfminer_psparser.py<|end_file_name|><|fim▁begin|>import logging from pdfminer.psparser import KWD, LIT, PSBaseParser, PSStackParser, PSEOF logger = logging.getLogger(__name__) class TestPSBaseParser: """Simplistic Test cases""" TESTDATA = rb"""%!PS begin end " @ # /a/BCD /Some_Name /fo...
(98, b"def \x00 4ghi"), (118, b"bach\\slask"), (132, b"foo\nbaa"), (143, b"this % is not a comment."),
<|file_name|>funding_contributor_v30_rc1.py<|end_file_name|><|fim▁begin|># coding: utf-8 """ ORCID Member No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: Latest Generated by: https://github.com/swagger-api/...
return self._credit_name @credit_name.setter def credit_name(self, credit_name):
<|file_name|>conftest.py<|end_file_name|><|fim▁begin|>import pytest from gaphas.painter import BoundingBoxPainter from gaphas.view import GtkView from gaphor.diagram.painter import ItemPainter from gaphor.diagram.selection import Selection from gaphor.diagram.tests.fixtures import diagram, element_factory, event_manag...
<|file_name|>countdown.js<|end_file_name|><|fim▁begin|>/*global window */ /** * @license countdown.js v2.5.2 http://countdownjs.org * Copyright (c)2006-2014 Stephen M. McKamey. * Licensed under The MIT License. */ /*jshint bitwise:false */ /** * @public * @type {Object|null} */ var module; /** * API entry * ...
<|file_name|>lex-bad-fp-base-7.rs<|end_file_name|><|fim▁begin|>// Copyright 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...
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms.