prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>gofplots.py<|end_file_name|><|fim▁begin|>from statsmodels.compat.python import lzip import numpy as np from scipy import stats from statsmodels.distributions import ECDF from statsmodels.regression.linear_model import OLS from statsmodels.tools.decorators import cache_readonly from statsmodels.tools.tool...
_fmt_probplot_axis(ax, self.dist, self.nobs) return fig
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>// Copyright 2020 The Exonum Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //...
} /// Channel for messages, timeouts and api requests. Consumed by the `NodeHandler` constructor. #[derive(Debug)]
<|file_name|>GameCard.tsx<|end_file_name|><|fim▁begin|>import React from 'react'; import { IGameDef } from '../../games'; import Card from '@material-ui/core/Card'; import CardActionArea from '@material-ui/core/CardActionArea'; import CardContent from '@material-ui/core/CardContent'; import CardMedia from '@material-ui...
<|file_name|>viste.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from django.contrib.auth import REDIRECT_FIELD_NAME from django.shortcuts import redirect from django.contrib.auth.views import logout as original_logout from loginas impo...
def logout(request, next_page=None, template_name='registration/logged_out.html', redirect_field_name=REDIRECT_FIELD_NAME, extra_context=None): """
<|file_name|>ident.go<|end_file_name|><|fim▁begin|>/* Copyright 2011, 2014 Google 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<|fim▁hole|> http://www.apache.org/licenses/LICENSE-2.0 Un...
<|file_name|>AdminAccount.cpp<|end_file_name|><|fim▁begin|>/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/guardduty/model/AdminAccount.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils...
m_adminAccountId = jsonValue.GetString("adminAccountId");
<|file_name|>MatrixInverse.cc<|end_file_name|><|fim▁begin|>//# MatrixInverse.cc: The inverse of an expression returning a Jones matrix. //# //# Copyright (C) 2005 //# ASTRON (Netherlands Institute for Radio Astronomy) //# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands //# //# This file is part of the LOFAR software suit...
//# with the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>. //# //# $Id$
<|file_name|>wallet.cpp<|end_file_name|><|fim▁begin|>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 doriancoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file CO...
class CCorruptAddress { public:
<|file_name|>server.js<|end_file_name|><|fim▁begin|>var http = require("http"); var url = require("url"); function start(route, handle) { function onRequest(request, response) { var pathname = url.parse(request.url).pathname; console.log("Request for " + pathname + " received."); <|fim▁hole|>...
<|file_name|>eval.rs<|end_file_name|><|fim▁begin|>use super::super::grammar::*; use super::SensorData; use moonlander_gp::Number; /// `Evaluate` returns a specific `Command` to execute, depending on `SensorData`. pub trait EvaluateToCommand { fn evaluate(&self, sensor_data: &SensorData) -> Command; }<|fim▁hole|> /// ...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>//! Sequential IR for Weld programs use std::collections::hash_map::Entry; use std::collections::{BTreeMap, HashMap, HashSet}; use std::fmt; use std::vec; use super::ast::Type::*; use super::ast::*; use super::error::*; use super::util::{join, SymbolGenerator}; use f...
pub data: Symbol, pub start: Option<Symbol>, pub end: Option<Symbol>, pub stride: Option<Symbol>,
<|file_name|>new.rs<|end_file_name|><|fim▁begin|>use std::env; use cargo::ops; use cargo::util::{CliResult, Config}; #[derive(Deserialize)] pub struct Options { flag_verbose: u32, flag_quiet: Option<bool>, flag_color: Option<String>, flag_bin: bool, flag_lib: bool, arg_path: String, flag_n...
flag_name.as_ref().map(|s| s.as_ref())); let opts_lib = opts.lib;
<|file_name|>test_install_user.py<|end_file_name|><|fim▁begin|>""" tests specific to "pip install --user" """ import os import textwrap from os.path import curdir, isdir, isfile import pytest from pip._internal.compat import cache_from_source, uses_pycache from tests.lib import pyversion from tests.lib.local_repos im...
def test_install_user_in_global_virtualenv_with_conflict_fails( self, script, virtualenv): """ Test user install in --system-site-packages virtualenv with conflict in
<|file_name|>contextHelpers.js<|end_file_name|><|fim▁begin|>const path = require('path'); const wmd = require('wmd');<|fim▁hole|> const createContextForList = (folderContents) => { let promises = []; return new Promise((resolve, reject) => { for (let file in folderContents) { let promise = getFile(folderC...
const {getFile} = require('./importHelpers');
<|file_name|>cygnus.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of fiware-cygnus (FI-WARE project). # # fiware-cygnus is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # P...
<|file_name|>stc_rest.py<|end_file_name|><|fim▁begin|>""" :author: yoram@ignissoft.com """ import getpass from random import randint from stcrestclient import stchttp class StcRestWrapper(object): def __init__(self, logger, server, port=80, user_name=getpass.getuser(), session_name=None): """ Init STC ...
<|file_name|>min.js<|end_file_name|><|fim▁begin|>/** min任务 ------------- min脚本,样式,图片或html ### 用法 <min src='my.js' dest='my.min.js'/> <min file='reset.css' destfile='reset.min.css'/> @class min **/ module.exports = function(bee) { bee.register('min', function(options, callback) { var...
if (extname == 'js') {
<|file_name|>scrollToTop.js<|end_file_name|><|fim▁begin|><|fim▁hole|> const DURATION_MS = 400 export default function scrollToTop () { const scrollTop = $('.auction-artworks-HeaderDesktop').offset().top - $('.mlh-navbar').height() $('html,body').animate({ scrollTop }, DURATION_MS) }<|fim▁end|>
import $ from 'jquery'
<|file_name|>capitalized-comments.js<|end_file_name|><|fim▁begin|>/** * @fileoverview enforce or disallow capitalization of the first letter of a comment * @author Kevin Partington */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-------------------...
<|file_name|>upload.py<|end_file_name|><|fim▁begin|><|fim▁hole|> os.system('git add -A && git commit -m "Working on changes in my website (Amaia)" && git push origin master');<|fim▁end|>
#!/usr/bin/python import os
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>#![feature(plugin, test)] #![allow(unknown_lints)] #![allow(clippy::if_not_else, unused_features, clippy::clone_on_ref_ptr, clippy::clunreadable_literal, mixed_script_confusables, confusable_idents)] #![warn(missing_debug_implementations, missing_copy_implementations,...
fn the_end() { println!("THE END");
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>################################################################################# # Copyright (c) 2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permit...
# notice, this list of conditions and the following disclaimer. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the
<|file_name|>controller_test.go<|end_file_name|><|fim▁begin|>// Copyright Project Harbor Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LI...
allowlistMgr := &allowlisttesting.Manager{} allowlistMgr.On("CreateEmpty", mock.Anything, mock.Anything).Return(nil)
<|file_name|>MeshPart_cs.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="cs" sourcelanguage="en"> <context> <name>CmdMeshPartMesher</name> <message> <location filename="../../Command.cpp" line="+46"/> <source>Mesh</source> <tra...
<message> <location filename="../../Workbench.cpp" line="+36"/> <source>MeshPart</source> <translation>Síťový díl</translation>
<|file_name|>util.ts<|end_file_name|><|fim▁begin|>import * as fs from 'fs'; import * as _ from 'lodash'; import * as path from 'path'; import { Tyr } from 'tyranid'; export const { version } = JSON.parse( fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf-8') ); export interface InterfaceGenerationOpt...
}
<|file_name|>transaction.js<|end_file_name|><|fim▁begin|>module.exports = function(knex) { describe('Transactions', function() { it('should be able to commit transactions', function(ok) { var id = null; return knex.transaction(function(t) { knex('accounts') .transacting(t) ...
<|file_name|>ISO8601DateFormatter.java<|end_file_name|><|fim▁begin|>/** * AET * * Copyright (C) 2013 Cognifide Limited * * 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...
import org.codehaus.jackson.map.ser.ScalarSerializerBase; public class ISO8601DateFormatter extends ScalarSerializerBase<Date> {
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from .pypvwatts import PVWatts from .pvwattserror import PVWattsValidationError
<|file_name|>settings.hpp<|end_file_name|><|fim▁begin|>#ifndef USE_LIBSASS_SRC<|fim▁hole|><|fim▁end|>
#include "../../libsass_src/src/settings.hpp" #endif
<|file_name|>choose_format_device_ui.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/yc/code/calibre/calibre/src/calibre/gui2/dialogs/choose_format_device.ui' # # Created: Thu Oct 25 16:54:55 2012 # by: PyQt4 UI code generator 4.8.5 # # WARNING! ...
<|file_name|>_backup_policies_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. ...
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import patterns, url from django.contrib import admin import views admin.autodiscover() urlpatterns = patterns( '', url(r'^$', views.HomeView.as_view(), name="home"), url(r'^clues/$', views.CluesView.as_view(), name="clues"), <|fim▁...
url(r'^test$', views.TestView.as_view(), name="test"),
<|file_name|>CoatCheck.js<|end_file_name|><|fim▁begin|>/** * @description CoatCheck SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this com...
return <svg {...restProps} version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" className={classes} aria-label={a11yTitle}><path fill="none" stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M12,11 L22.1551134,17.4623449 C22.6217314,17.7592836 23,18.4433532 23,19.00936...
<|file_name|>client.rs<|end_file_name|><|fim▁begin|>use connection::Connection; use error::{Error, ErrorKind, Result}; use frame::settings::{SettingsFrame, Setting}; use frame::{FrameKind, WriteFrame, ReadFrame}; use {Settings, WindowSize}; pub struct Client<C> { conn: C, settings: Settings, window_in: Win...
<|file_name|>EtlTemplateTaskTest.java<|end_file_name|><|fim▁begin|>/* * Copyright 2006-2012 The Scriptella Project Team. * * Licensed under the Apache License, Version 2.0 (the "License"); <|fim▁hole|> * * Unless required by applicable law or agreed to in writing, software * distributed under the License is d...
* you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass <|fim▁hole|> return dispatch('user', mutation_types.DECREASE, rank) @register_dispatch...
def decrease(rank):
<|file_name|>allocate_shared_cxx03.pass.cpp<|end_file_name|><|fim▁begin|>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See ...
} assert(Zero::count == 0); {
<|file_name|>base64-example-4.py<|end_file_name|><|fim▁begin|>''' ÏÂÀý չʾÁËÒ»¸öʵÓÃС¹¤¾ß, Ëü¿ÉÒÔ°Ñ GIF ¸ñʽת»»Îª Python ½Å±¾, ±ãÓÚʹÓà Tkinter ¿â. ''' import base64, sys if not sys.argv[1:]: print "Usage: gif2tk.py giffile >pyfile" sys.exit(1) data = open(sys.argv[1], "rb").read() if data[:4] != "GI...
print 'from Tkinter import PhotoImage'
<|file_name|>CipherAndProtocolSelectionTest.java<|end_file_name|><|fim▁begin|>/* * Copyright 2015 JBoss 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.o...
config.put(TLSOptions.TLS_TRUSTSTOREPASSWORD, "password"); config.put(TLSOptions.TLS_ALLOWANYHOST, "true"); config.put(TLSOptions.TLS_ALLOWSELFSIGNED, "false"); config.put(TLSOptions.TLS_ALLOWEDPROTOCOLS, "SSLv3");
<|file_name|>bucket_website.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import os import oss2 from oss2.models import (ConditionInlcudeHeader, Condition, Redirect, RedirectMirrorHeaders, MirrorHeadersSet, ...
print('error_file:', website_get.error_file) print('rule sum:', len(website_get.rules)) for rule in website_get.rules: print('rule_num:{}, redirect_type:{}'.format(rule.rule_num, rule.redirect.redirect_type))
<|file_name|>manage.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python<|fim▁hole|>if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vps_monitor.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)<|fim▁end|>
import os import sys
<|file_name|>rpcconsole.cpp<|end_file_name|><|fim▁begin|>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2015-2021 The Neutron Developers // // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org...
// set library version labels #ifdef ENABLE_WALLET ui->berkeleyDBVersion->setText(DbEnv::version(0, 0, 0)); ui->wallet_path->setText(QString::fromStdString(GetDataDir().string() + QDir::separator().toLatin1() + GetArg("-wallet", "wallet.dat")));
<|file_name|>TimesheetUserDetails.java<|end_file_name|><|fim▁begin|>/** * */ package ca.lc.stimesheet.web.login.userdetails; import java.util.ArrayList; import org.springframework.security.core.authority.SimpleGrantedAuthority; import ca.lc.stimesheet.model.User; <|fim▁hole|>/** * @author Marc-Andre Lacroix *...
<|file_name|>hydrogen.sr.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="sr"> <context> <name>AboutDialog</name> <message> <source>&lt;b&gt;Project page&lt;/b&gt;&lt;br&gt;</source> <translation>&lt;b&gt;Страна пројекта&lt;/b&gt;&l...
<message> <source>Download and install</source> <translation>Преузми и постави</translation>
<|file_name|>libferrisgoogle_shared.cpp<|end_file_name|><|fim▁begin|>/****************************************************************************** ******************************************************************************* ******************************************************************************* libfer...
return put( req, ba ); }
<|file_name|>table.go<|end_file_name|><|fim▁begin|>package db import ( "io/ioutil" "os" . "fmt" "strings" . "github.com/yak-labs/chirp-lang" "github.com/yak-labs/smilax-web/table/levi" ) /* table get Site Table Row -> []Value table set Site Table Row []Value table match Site Table RowPattern ValuePattern -> ...
<|file_name|>recursion_limit_deref.rs<|end_file_name|><|fim▁begin|>// Copyright 2017 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.apac...
} struct Bottom;
<|file_name|>utils.py<|end_file_name|><|fim▁begin|># General utility functions can go here. import os import random import string from django.utils import functional from django.utils.http import urlencode def rand_string(numOfChars): """ Generates a string of lowercase letters and numbers. That makes 36^...
<|file_name|>test_timer.py<|end_file_name|><|fim▁begin|># Copyright 2020 Open Source Robotics Foundation, 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/li...
</timer>
<|file_name|>arguments.rs<|end_file_name|><|fim▁begin|>bitflags! { struct ArgumentFlags: u8 { /// Double quotes const DOUBLE = 0b00000001; /// Command flags const COMM_1 = 0b00000010; // found $ const COMM_2 = 0b00000100; // found ( after $ /// String variable ...
<|file_name|>modal_body_view.js<|end_file_name|><|fim▁begin|>/** A base class for helping us display modal content @class ModalBodyView @extends Discourse.View @namespace Discourse @module Discourse<|fim▁hole|>**/ Discourse.ModalBodyView = Discourse.View.extend({ // Focus on first element didInsertEleme...
<|file_name|>to.snake.case.js<|end_file_name|><|fim▁begin|>System.register([], function (exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; function toSnakeCase(camelCase) { if (!camelCase) { throw new Error("Please provide camelCase."); } ...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=missing-docstring import os<|fim▁hole|>def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='pytest-...
import codecs from setuptools import setup
<|file_name|>test.py<|end_file_name|><|fim▁begin|><|fim▁hole|>imag = complex(1, 1).imag print(real, imag)<|fim▁end|>
real = complex(1, 1).real
<|file_name|>custom-variable-manager.js<|end_file_name|><|fim▁begin|>"use strict"; const logger = require('../logwrapper'); const eventManager = require("../events/EventManager"); const NodeCache = require("node-cache"); const cache = new NodeCache({ stdTTL: 0, checkperiod: 5 }); exports._cache = cache; cache.on("exp...
username: "Firebot", createdCustomVariableName: key, createdCustomVariableData: value
<|file_name|>lock.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
return True
<|file_name|>request.rs<|end_file_name|><|fim▁begin|>#[derive(RustcDecodable, RustcEncodable)] pub enum CTFRequest { FlagOffer(UserFlagPair), Leaderboard(usize, usize), Ping,<|fim▁hole|>#[derive(RustcDecodable, RustcEncodable)] pub struct UserFlagPair { pub id: usize, pub flag: String, pub user:...
}
<|file_name|>log.go<|end_file_name|><|fim▁begin|>/// Package log provides a useful logging subsystem for Hologram tools. // // By default, it will log INFO-level messages to the system log and standard out, // but DEBUG-level messages can be output to these sinks as well. By defaut DEBUG // messages are suppressed. // ...
// You may obtain a copy of the License at
<|file_name|>0012_auto_20150928_1443.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def fix_notes_field (apps, schema_editor): Question = apps.get_model("checklist", "Question") for question in Question.objects.all(): ...
<|file_name|>u32.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. //<|fim▁hole|>// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/...
<|file_name|>pvaservercomms.py<|end_file_name|><|fim▁begin|>from typing import Any, Dict, List, Optional, Set from annotypes import add_call_types, stringify_error from cothread import cothread from p4p import Value from p4p.server import DynamicProvider, Server, ServerOperation from p4p.server.cothread import Handler...
from malcolm.core import ( APublished, BlockMeta,
<|file_name|>getManager.js<|end_file_name|><|fim▁begin|>import getURL from '../utils/getURL.js' import getUserInfo from './getUserInfo.js' import people from './people.js' /**<|fim▁hole|> @category people @description Return the manager for the provided user, as a People string @param {String} [username] With or...
@name $SP().getManager @function
<|file_name|>sigar.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from _sigar import *
<|file_name|>clevercsstag.py<|end_file_name|><|fim▁begin|>from django import template import clevercss register = template.Library() @register.tag(name="clevercss") def do_clevercss(parser, token): nodelist = parser.parse(('endclevercss',)) parser.delete_first_token() return CleverCSSNode(nodelist) class...
return clevercss.convert(output)
<|file_name|>testing_ground.py<|end_file_name|><|fim▁begin|>import requests from bs4 import BeautifulSoup import unittest import numpy.testing as npt import unicodedata from selenium import webdriver # from selenium.webdriver.support.ui import WebDriverWait import os import time from tabulate import tabulate import lin...
# local server = ["http://127.0.0.1:8000/"] servers = ["http://qed.epa.gov/ubertool/", "http://qedinternal.epa.gov/ubertool/", "http://134.67.114.3/ubertool/", "http://134.67.114.1/ubertool/"]
<|file_name|>recentchoosermenu.js<|end_file_name|><|fim▁begin|>#!/usr/bin/env gjs const Gtk = imports.gi.Gtk; Gtk.init(null); function on_item_activated() { var uri = recentchoosermenu.get_current_uri(); if (uri != null) { print("Recent document selected: " + uri); } } <|fim▁hole|>window.set...
var window = new Gtk.Window();
<|file_name|>zoom_event_manager.cc<|end_file_name|><|fim▁begin|>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/zoom/zoom_event_manager.h" #include "content/public/browser/b...
ZoomEventManager::~ZoomEventManager() {}
<|file_name|>FlowFileNode.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 You under ...
@Override public String getFlowFileUuid() { return flowFileUuid;
<|file_name|>publish.rs<|end_file_name|><|fim▁begin|>#[macro_use] extern crate cargotest; extern crate flate2; extern crate hamcrest; extern crate tar; extern crate url; use std::io::prelude::*; use std::fs::{self, File}; use std::io::SeekFrom; use std::path::PathBuf; use cargotest::support::git::repo; use cargotest:...
<|file_name|>dmroom.cpp<|end_file_name|><|fim▁begin|>/* * dmroom.cpp * Staff functions related to rooms. * ____ _ * | _ \ ___ __ _| |_ __ ___ ___ * | |_) / _ \/ _` | | '_ ` _ \/ __| * | _ < __/ (_| | | | | | | \__ \ * |_| \_\___|\__,_|_|_| |_| |_|___/ * * Permission to use, modify and d...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># Inspired from VecEnv from OpenAI Baselines class VecEnv(object): """ An abstract asynchronous, vectorized environment. """ def __init__(self, num_envs, observation_space, action_space): self.num_envs = num_envs self.observation_spa...
<|file_name|>ssyslog.py<|end_file_name|><|fim▁begin|>import sys import os import subprocess as ssubprocess _p = None def start_syslog(): global _p with open(os.devnull, 'w') as devnull: _p = ssubprocess.Popen(<|fim▁hole|> ) def close_stdin(): sys.stdin.close() def stdout_to_syslog(): ...
['logger', '-p', 'daemon.notice', '-t', 'sshuttle'], stdin=ssubprocess.PIPE, stdout=devnull, stderr=devnull
<|file_name|>readgroup.grpc.pb.cc<|end_file_name|><|fim▁begin|><|fim▁hole|>// source: google/genomics/v1/readgroup.proto #include "google/genomics/v1/readgroup.pb.h" #include "google/genomics/v1/readgroup.grpc.pb.h" #include <grpc++/impl/codegen/async_stream.h> #include <grpc++/impl/codegen/async_unary_call.h> #inclu...
// Generated by the gRPC protobuf plugin. // If you make any local change, they will be lost.
<|file_name|>misc.py<|end_file_name|><|fim▁begin|>from cupy import elementwise _id = 'out0 = in0' # TODO(okuta): Implement convolve _clip = elementwise.create_ufunc( 'cupy_clip', ('???->?', 'bbb->b', 'BBB->B', 'hhh->h', 'HHH->H', 'iii->i', 'III->I', 'lll->l', 'LLL->L', 'qqq->q', 'QQQ->Q', 'eee->e', 'f...
('d->d', 'out0 = fabs(in0)')), 'out0 = in0 > 0 ? in0 : -in0', doc='''Elementwise absolute value function.
<|file_name|>createRender.d.ts<|end_file_name|><|fim▁begin|>import { render } from 'enzyme'; export interface RenderOptions { render: typeof render; } <|fim▁hole|>): typeof render & { cleanUp: Function };<|fim▁end|>
export default function createRender( options?: Partial<RenderOptions>
<|file_name|>RemovedMappingTracker.java<|end_file_name|><|fim▁begin|>// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.fileTypes.impl; import com.intellij.openapi.diagnostic.Logger; import com.intell...
<|file_name|>golang.js<|end_file_name|><|fim▁begin|>"use strict"; <|fim▁hole|> exports.snippetText = undefined; exports.scope = "golang"; });<|fim▁end|>
ace.define("ace/snippets/golang", ["require", "exports", "module"], function (require, exports, module) { "use strict";
<|file_name|>Search.js<|end_file_name|><|fim▁begin|>/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ imp...
} export default Search;
<|file_name|>mta-vs-native.js<|end_file_name|><|fim▁begin|>// 2016-08-22 // // This is the wrapper for the native side /* prelim: start a server from the lib dir: python -m SimpleHTTPServer (python 2.x) (linux) python -m http.server (python 3.x) (windows) 1a) load jquery (note: may need a real active file open for th...
1c) load all the other files Note: you'll get this message if not in a split-panel 'editor-theme-change-listener.js:39 Uncaught (in promise) TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node''
<|file_name|>entry.rs<|end_file_name|><|fim▁begin|>// This file was generated by gir (5c017c9) from gir-files (71d73f0) // DO NOT EDIT use Adjustment; use CellEditable; use DeleteType; use Editable; use EntryBuffer; use EntryCompletion; use EntryIconPosition; use ImageType; #[cfg(feature = "v3_6")] use InputHints; #[c...
fn get_property_caps_lock_warning(&self) -> bool;
<|file_name|>settings_defaults.py<|end_file_name|><|fim▁begin|>import logging<|fim▁hole|> # URL to clone product_details JSON files from. # Include trailing slash. PROD_DETAILS_URL = 'http://svn.mozilla.org/libs/product-details/json/' # Target dir to drop JSON files into (must be writable) PROD_DETAILS_DIR = os.path.j...
import os
<|file_name|>nl.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="nl_NL"> <context> <name>AVForm</name> <message> <source>Audio/Video</source> <translation>Audio/video</translation> </message> <message> <source>Defaul...
<comment>popup text</comment> <translation>Je hebt qTox gevraagd een uitvoerbaar bestand te openen. Uitvoerbare bestanden kunnen schade toebrengen aan je computer. Weet je zeker dat je dit bestand wilt openen?</translation>
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>import soco from collections import namedtuple SonosTrack = namedtuple('SonosTrack', [ 'title', 'artist', 'album', 'album_art_uri', 'position', 'playlist_position', 'duration', 'uri', 'resources', 'album_art', 'metadata' ]) SonosTrack.__new__.__default...
return self.speakers
<|file_name|>data.model.ts<|end_file_name|><|fim▁begin|>namespace app.home { /** * This class represents example model for data sample.<|fim▁hole|> * @param {number} id - ID property of data item. * @param {string} name - Name property of data item. * @constructor */ constructor( publ...
*/ export class DataItem { /** * Creates an instance of DataItem.
<|file_name|>_parse_rfc.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from collections import defaultdict import pprint import re _re_num = re.compile('\s(?P<num>\d+)\s+(?P<name>(RPL|ERR)_\w+)\s*(?P<_>.*)') _re_mask = re.compile('^\s{24,25}(?P<_>("(<|:).*|\S.*"$))') def main(): print('Parsing rfc file....
<|file_name|>middleware.py<|end_file_name|><|fim▁begin|>from django.conf import settings from django.contrib.auth.models import AnonymousUser from threading import local USER_ATTR_NAME = getattr(settings, 'LOCAL_USER_ATTR_NAME', '_current_user') _thread_locals = local() def _do_set_current_user(user_fun): setat...
Can be used as a hook e.g. for shell jobs (when request object is not
<|file_name|>return_.py<|end_file_name|><|fim▁begin|>from jaspyx.visitor import BaseVisitor class Return(BaseVisitor): def visit_Return(self, node): self.indent() if node.value is not None:<|fim▁hole|> else: self.output('return') self.finish()<|fim▁end|>
self.output('return ') self.visit(node.value)
<|file_name|>customGraphicsLayer.ts<|end_file_name|><|fim▁begin|> import GraphicsLayer from 'esri/layers/GraphicsLayer'; import asd from "esri/core/accessorSupport/decorators"; /** Example class to demonstrate how to subclass esri classes that inherit from Accessor classes. */ @asd.subclass("CustomGraphicsLayer")...
@asd.property()
<|file_name|>generator.js<|end_file_name|><|fim▁begin|>var _ = require("underscore-keypath"); var path = require("path"); var cli = require("cli"); var model = require("./parts/lib/model"); var Handlebars = require("handlebars"); var fs = require("fs"); var moment = require("moment"); var model = require("./parts/lib/m...
"groups" : model.groups, "year" : moment().format("YYYY"),
<|file_name|>sem.rs<|end_file_name|><|fim▁begin|>//! A rewrite of uapi/linux/sem.h pub const SEM_UNDO: ::c_int = 0x1000; //TODO Check this to make sure it's a c_int ///Get sempid pub const GETPID: ::c_int = 11; ///Get semval pub const GETVAL: ::c_int = 12; ///Get all semvals pub const GETALL: ::c_int = 13; ///Get ...
}
<|file_name|>extHostFileSystem.ts<|end_file_name|><|fim▁begin|>/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *...
$write(handle: number, resource: URI, content: number[]): TPromise<void, any> {
<|file_name|>HashingUtilsTest.cpp<|end_file_name|><|fim▁begin|>/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is lo...
<|file_name|>qgsgeometryduplicatenodescheck.cpp<|end_file_name|><|fim▁begin|>/*************************************************************************** qgsgeometryduplicatenodescheck.cpp --------------------- begin : September 2015 copyright : (C) 2014 by Sandro Mani / Source...
<|file_name|>TransCommandQueue.js<|end_file_name|><|fim▁begin|>"use strict"; var now = Date.now; var CircleQueue = require("../../misc/CircleQueue.js"); function TransCommandQueue(mainQueue, object) { CircleQueue.call(this); this.object = object; this.mainQueue = mainQueue; } TransCommandQueue.prototype = { __n...
<|file_name|>makecmap.py<|end_file_name|><|fim▁begin|>from pylab import * import matplotlib.cm as cmx import matplotlib.colors as colors def MakeColourMap(N, colormap='jet'): ''' To make colour map with N possible colours. Interpolated from map 'colormap' ''' ### Colour map for cells (if you want to plot multiple...
<|file_name|>CNN_model.py<|end_file_name|><|fim▁begin|>from __future__ import print_function import datetime import os from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau from keras.engine.training import Model from keras.initializers import RandomUniform from keras.layers import Convolution...
CNN_model.summary() hist = CNN_model.fit(*model_inputs['training'],
<|file_name|>test_user_api_token.py<|end_file_name|><|fim▁begin|># coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging source...
"""Test UserApiToken""" # FIXME: construct object with mandatory attributes with example values
<|file_name|>trycmd.py<|end_file_name|><|fim▁begin|># This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it wil...
from buildbot.clients import tryclient t = tryclient.Try(config) t.run()
<|file_name|>profesor.js<|end_file_name|><|fim▁begin|>/** * Clase que permite trabajar con la plantilla del profesor. * * @param {String} id ID de la etiqueta HTML asociada. * @param {Boolean revisor ¿Sólo se buscarán revisores? * @returns {Profesor} */<|fim▁hole|>{ /** * Establece la eti...
function Profesor(id, revisor)
<|file_name|>index.js<|end_file_name|><|fim▁begin|>'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var path = require('path'); var urllib = require('urllib'); module.exports = yeoman.generators.Base.extend({ prompting: function () { var done = t...
}, { name: 'author',