prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>SEInfo.java<|end_file_name|><|fim▁begin|>/* * Copyright 2006-2010 Virtual Laboratory for e-Science (www.vl-e.nl) * Copyright 2012-2013 Netherlands eScience Center. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. *...
// fail not or else fail later if ((infoStr==null) || infoStr.equals("")) throw new NullPointerException("Storage Element info string can not be null or empty");
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>//! This is a simple "Flat" rendering pipeline. //! It doesn't support blended objects and uses front-to-back ordering. //! The pipeline is meant for simple applications and fall-back paths. use std::marker::PhantomData; use gfx; use gfx_phase; use gfx_scene; /// A sho...
AlphaCut(::AlphaThreshold), }
<|file_name|>factory.rs<|end_file_name|><|fim▁begin|>// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 ver...
match self.evm { VMType::Jit => {
<|file_name|>jquery.highlight-3.js<|end_file_name|><|fim▁begin|>/* highlight v3 Highlights arbitrary terms. <http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html> MIT license. Johann Burkard <http://johannburkard.de> <mailto:jb@eaio.com> */ jQuery.fn.highli...
for (var i = 0; i < node.childNodes.length; ++i) { i += innerHighlight(node.childNodes[i], pat); }
<|file_name|>Intitule.java<|end_file_name|><|fim▁begin|>// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recomp...
<|file_name|>ctl.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python import argparse import sys import os import subprocess import signal import getpass import simplejson from termcolor import colored import ConfigParser import StringIO import functools import time import random import string from configobj import Confi...
ha_config_content = None
<|file_name|>disjoint_set.py<|end_file_name|><|fim▁begin|>""" Disjoint set. Reference: https://en.wikipedia.org/wiki/Disjoint-set_data_structure """ class Node: def __init__(self, data: int) -> None: self.data = data self.rank: int self.parent: Node def make_set(x: N...
for node0 in vertex: for node1 in vertex: if find_python_set(node0).isdisjoint(find_python_set(node1)): assert find_set(node0) != find_set(node1)
<|file_name|>lua_ability.cpp<|end_file_name|><|fim▁begin|>/* =========================================================================== Copyright (c) 2010-2015 Darkstar Dev Teams This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
<|file_name|>test_init.py<|end_file_name|><|fim▁begin|>from unittest import TestCase # from unittest import mock from mwclient import Site from bookhelper import ExistingBook from . import PageMock, SiteMock, TESTBOOK1_TXT #Site.login=mock.MagicMock(return_value=True) class TestInit(TestCase):<|fim▁hole|> s...
def setUp(self):
<|file_name|>test_DelEntry.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python ''' ##BOILERPLATE_COPYRIGHT ##BOILERPLATE_COPYRIGHT_END ''' import unittest, copy from testRoot import RootClass from noink.user_db import UserDB from noink.entry_db import EntryDB class AddEntry(RootClass): def test_AddEntry(s...
userDB = UserDB()
<|file_name|>LoadingIndicator.js<|end_file_name|><|fim▁begin|>import React from 'react' function LoadingIndicator () { return ( <div> Loading <div className='sk-fading-circle'> <div className='sk-circle1 sk-circle'></div> <div className='sk-circle2 sk-circle'></div> <div class...
export default LoadingIndicator
<|file_name|>solution.py<|end_file_name|><|fim▁begin|>class Solution(object): def dfs(self,rooms): # get all gate position queue=[(i,j,0) for i,rows in enumerate(rooms) for j,v in enumerate(rows) if not v] while queue: i,j,depth=queue.pop() # has a min path to gate an...
def wallsAndGates(self, rooms): """
<|file_name|>evennia_launcher.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """ EVENNIA SERVER LAUNCHER SCRIPT This is the start point for running Evennia. Sets the appropriate environmental variables and launches the server and portal through the evennia_runner. Run without arguments to get a menu. Run the s...
#------------------------------------------------------------
<|file_name|>KotlinTopLevelFunctionFqnNameIndex.java<|end_file_name|><|fim▁begin|>// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.kotlin.idea.stubindex; import com.intellij.openapi.proj...
@NotNull
<|file_name|>integration_credential.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from rest_framework import viewsets, serializers from dbaas_credentials.models import Credential<|fim▁hole|>from .environment import EnvironmentSerializer from .integratio...
<|file_name|>mul.rs<|end_file_name|><|fim▁begin|>#![feature(core, core_simd)] extern crate core; #[cfg(test)] mod tests { use core::simd::f32x4; // #[simd] // #[derive(Copy, Clone, Debug)] // #[repr(C)] // pub struct f32x4(pub f32, pub f32, pub f32, pub f32); #[test] fn mul_test1() { let...
let y: f32x4 = f32x4(
<|file_name|>systemglobal_authenticationpolicy_binding.py<|end_file_name|><|fim▁begin|># # Copyright (c) 2008-2015 Citrix Systems, 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 # ...
def builtin(self, builtin) : ur"""Indicates that a variable is a built-in (SYSTEM INTERNAL) type.<br/>Possible values = MODIFIABLE, DELETABLE, IMMUTABLE """ try :
<|file_name|>require.js<|end_file_name|><|fim▁begin|>/** vim: et:ts=4:sw=4:sts=4 * @license RequireJS 2.1.15 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ //Not using strict: uneven strict suppo...
<|file_name|>skkserv_test.go<|end_file_name|><|fim▁begin|>package skkserv import ( "bytes" "net" "testing" "time" ) func createSkkserv(t *testing.T, readable string) (*Skkserv, MockConn) { var config Config config.Engines = append([]Engine{}, TestDb) var mock MockConn mock.t = t e, _ := StringToEuc(readable...
<|file_name|>server.go<|end_file_name|><|fim▁begin|>package command import ( "encoding/hex" "fmt" "log" "net" "net/http" "net/url" "os" "os/signal" "runtime" "sort" "strconv" "strings" "syscall" "time" "github.com/armon/go-metrics" "github.com/hashicorp/errwrap" "github.com/hashicorp/go-multierror" ...
if disable { scheme = "http"
<|file_name|>run_type.rs<|end_file_name|><|fim▁begin|>//declare a struct, -> string name, enum type and order #[derive(Clone)] pub enum SqlType { PreDeployment, TableSpace, Schema, Table, Sproc, PostDeployment, } pub struct SqlRunType { pub sql_type: SqlType, pub folder_name: String, ...
drop_procedure: "DROP TABLESPACE ".to_string(), }, SqlRunType { sql_type: SqlType::Schema,
<|file_name|>soundcloud.module.ts<|end_file_name|><|fim▁begin|>import { NgModule, Provider } from '@angular/core'; import { NgxsModule } from '@ngxs/store'; import { AppSoundcloudService } from './soundcloud.service'; import { AppSoundcloudState } from './soundcloud.store'; import { AppSoundcloudApiService } from './s...
<|file_name|>webglrenderingcontext.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 canvas_traits::{CanvasCommonMsg, CanvasMsg,...
<|file_name|>config.go<|end_file_name|><|fim▁begin|>// Copyright 2022 Google LLC. 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...
<|file_name|>metrics.rs<|end_file_name|><|fim▁begin|>// Copyright 2021 TiKV Project Authors. Licensed under Apache-2.0. use prometheus_static_metric::*; make_auto_flush_static_metric! { pub label_enum GcKeysCF { default, lock,<|fim▁hole|> } pub label_enum GcKeysDetail { processed_k...
write,
<|file_name|>memory.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 rustc_serialize::json; use std::net::TcpStream; use actor...
#[derive(RustcEncodable)] pub struct TimelineMemoryReply { jsObjectSize: u64,
<|file_name|>texgen_emboss.py<|end_file_name|><|fim▁begin|>'''OpenGL extension NV.texgen_emboss This module customises the behaviour of the OpenGL.raw.GL.NV.texgen_emboss to provide a more Python-friendly API Overview (from the spec) This extension provides a new texture coordinate generation mode suitable for ...
<|file_name|>htmliframeelement.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::document_loader::{LoadBlocker, LoadType...
<|file_name|>multiwriter.go<|end_file_name|><|fim▁begin|>/*<|fim▁hole|> 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 Unless required by applicable law or agreed to in writing, software distributed under the Lic...
Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
<|file_name|>generic-tup.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<|fim▁hole|>// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at...
// http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
<|file_name|>rules_default_values_of_correct_type_test.go<|end_file_name|><|fim▁begin|>package graphql_test import ( "testing" "github.com/housinganywhere/graphql" "github.com/housinganywhere/graphql/gqlerrors" "github.com/housinganywhere/graphql/testutil" ) func TestValidate_VariableDefaultValuesOfCorrectType_V...
<|file_name|>cliente_gui.py<|end_file_name|><|fim▁begin|># coding: utf-8 import pygame import sys from pygame.locals import * from gui import * from conexao import * from jogador import * from Queue import Queue from threading import Thread """ Cliente Tp de Redes - Truco UFSJ Carlos Magno Lucas Geraldo Requisitos: ...
<|file_name|>processor.py<|end_file_name|><|fim▁begin|># coding: utf-8 import os import shutil from nxdrive.client.base_automation_client import DOWNLOAD_TMP_FILE_PREFIX, \ DOWNLOAD_TMP_FILE_SUFFIX from nxdrive.engine.processor import Processor as OldProcessor from nxdrive.logging_config import get_logger log = g...
name) tmp_file = self._download_content(local_client, remote_client, doc_pair, os_path) log.debug("Creating local file '%s' in '%s'", name, local_client.abspath(parent_pair.local_path))
<|file_name|>pyplot_index_formatter.py<|end_file_name|><|fim▁begin|>import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab import matplotlib.ticker as ticker r = mlab.csv2rec('data/imdb.csv') r.sort() r = r[-30:] # get the last 30 days<|fim▁hole|>def format_date(x, pos=None): thisind = ...
N = len(r) ind = np.arange(N) # the evenly spaced plot indices
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>// Copyright (c) 2013-2015 Sandstorm Development Group, Inc. and contributors // Licensed under the MIT License: // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
pub word_count : u64, /// Size of the capability table.
<|file_name|>index.test.js<|end_file_name|><|fim▁begin|>/* eslint-env jest */ import fs from 'fs-extra' import { join } from 'path' import { killApp, findPort, launchApp, nextStart, nextBuild, fetchViaHTTP, } from 'next-test-utils' import webdriver from 'next-webdriver' import cheerio from 'cheerio' jest....
it('should not show pages/404 GIP error if _app has GIP', async () => {
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|># -*- coding: utf-8 -*- from plaso.parsers.bencode_plugins import transmission from plaso.parsers.bencode_plugins import utorrent<|fim▁end|>
<|file_name|>conf.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all po...
# For "manual" documents, if this is true, then toplevel headings
<|file_name|>form.e2e-spec.ts<|end_file_name|><|fim▁begin|>import { browser, element, by } from 'protractor'; describe('Form Component', function () { var _modelName: string, _modelDesc: string, _modelStatus: string; beforeEach(function () { }); it('should display: the correct url', function(){ browser.g...
}); });
<|file_name|>premailer_from_file_test.go<|end_file_name|><|fim▁begin|>package premailer import ( "testing" "github.com/stretchr/testify/assert" ) func TestBasicHTMLFromFile(t *testing.T) { p, err := NewPremailerFromFile("data/markup_test.html", nil) assert.Nil(t, err) resultHTML, err := p.Transform() assert.Ni...
assert.Contains(t, resultHTML, "<h2 style=\"vertical-align:top\">There</h2>") assert.Contains(t, resultHTML, "<h3 style=\"text-align:right\">Hello</h3>") assert.Contains(t, resultHTML, "<p><strong style=\"text-decoration:none\">Yes!</strong></p>") assert.Contains(t, resultHTML, "<div style=\"background-color:green\...
<|file_name|>NfcCorkboard_hi.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="hi_IN"> <defaultcodec>UTF-8</defaultcodec> <context> <name>NdefManager</name> <message> <location filename="../ndefmanager.cpp" line="95"/> <location file...
<location filename="../ndefmanager.cpp" line="97"/> <location filename="../ndefmanager.cpp" line="313"/> <source>NFC is supported and switched on.</source> <translation type="unfinished"></translation>
<|file_name|>UpdatedVersionListenerNotifier.java<|end_file_name|><|fim▁begin|>/******************************************************************************* * This file is part of RedReader. * * RedReader is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
* but WITHOUT ANY WARRANTY; without even the implied warranty of
<|file_name|>do3.rs<|end_file_name|><|fim▁begin|>// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LI...
pub fn main() { assert!(do f |i| { i } == 10); }
<|file_name|>EmployeeDepartment.java<|end_file_name|><|fim▁begin|>package com.github.kuros.random.jpa.testUtil.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistenc...
<|file_name|>notes.go<|end_file_name|><|fim▁begin|>package main import ( "net/http" "sync" "time" "github.com/1lann/airlift/airlift" humanize "github.com/dustin/go-humanize" "github.com/gin-gonic/contrib/renders/multitemplate" "github.com/gin-gonic/contrib/sessions" "github.com/gin-gonic/gin" ) func formatBa...
uploaded, err = airlift.GetUploadedNotes(user.Username) if err != nil { panic(err)
<|file_name|>config.go<|end_file_name|><|fim▁begin|>package run import ( "errors" "fmt" "os" "os/user" "path/filepath" "reflect" "strconv" "strings" "time" "github.com/influxdata/kapacitor/services/alerta" "github.com/influxdata/kapacitor/services/deadman" "github.com/influxdata/kapacitor/services/hipchat...
func (c *Config) applyEnvOverrides(prefix string, fieldDesc string, spec reflect.Value) error {
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>//! Various builders to generate/alter wasm components mod invoke; mod module; mod code; mod misc; mod import; mod memory; mod table; mod export; mod global; mod data; pub use self::code::{<|fim▁hole|>pub use self::export::{export, ExportBuilder, ExportInternalBuilder}...
signatures, signature, function, SignatureBuilder, SignaturesBuilder, FunctionBuilder, TypeRefBuilder, FuncBodyBuilder, FunctionDefinition, }; pub use self::data::DataSegmentBuilder;
<|file_name|>cpu_profile.cc<|end_file_name|><|fim▁begin|>#include "cpu_profile.h" #include "cpu_profile_node.h" namespace nodex { using v8::Array; using v8::CpuProfile; using v8::CpuProfileNode; using v8::Handle; using v8::Number; using v8::Integer; using v8::Local; using v8::Object; using v8::Object...
#if (NODE_MODULE_VERSION > 0x000B) Local<Value> start_time = Nan::New<Number>(node->GetStartTime()/1000000); Local<Value> end_time = Nan::New<Number>(node->GetEndTime()/1000000);
<|file_name|>abstract_colormap.py<|end_file_name|><|fim▁begin|>""" Defines the base class for color maps """ from traits.api import Enum, HasTraits, Instance from data_range_1d import DataRange1D class AbstractColormap(HasTraits): """ Abstract class for color maps, which map from scalar values to color values...
<|file_name|>image_tags.py<|end_file_name|><|fim▁begin|># Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http:...
from glance.common import exception from glance.common import utils from glance.common import wsgi
<|file_name|>MM.py<|end_file_name|><|fim▁begin|>''' Modulo Movimiento Nanometros @author: P1R0 import ObjSerial, sys; ObjSer = ObjSerial.ObjSerial(0,9600) ObjSer.cts = True ObjSer.dtr = True ObjSer.bytesize = 8 ''' SxN = 59.71 #Constante de Calibracion del Motor #Funcion para inicializar Monocromador def init(ObjSe...
echo(ObjSer) ObjSer.write(unicode("0F-\r\n")) echo(ObjSer)
<|file_name|>page.py<|end_file_name|><|fim▁begin|># Copyright (C) 2004 Jeremy S. Sanders # Email: Jeremy Sanders <jeremy@jeremysanders.net> # # 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 F...
axiscomb x <-> axis1 <-> axis2
<|file_name|>build.rs<|end_file_name|><|fim▁begin|>use std::env; use std::fs; use std::io::prelude::*; use std::fs::File; use std::path::Path; extern crate toml; #[macro_use] extern crate serde_derive; // error in rust compiler. Bugfix requested in Sept. 2017 // these are used, but the compiler is not seeing it for...
println!("cargo:rustc-link-lib=indy");
<|file_name|>display-final-after-month-is-over.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # TODO: issues with new oauth2 stuff. Keep using older version of Python for now. # #!/usr/bin/env python from participantCollection import ParticipantCollection import re import datetime import pyperclip # Edit Me!<|fim...
# This script gets run on the first day of the following month, and that month's URL is
<|file_name|>diff.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright (C) 2014-present Taiga Agile LLC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 o...
<|file_name|>peer.rs<|end_file_name|><|fim▁begin|>extern crate bitcoin; extern crate rand; use std::thread; use std::time::Duration; use std::u64; use std::sync::mpsc::{channel, Sender, Receiver}; use self::rand::Rng; use self::rand::distributions::{IndependentSample, Range}; use bitcoin::network::socket::Socket; use...
return socket;
<|file_name|>ty.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/license...
}
<|file_name|>test_average.py<|end_file_name|><|fim▁begin|>import unittest import numpy import six from chainer import functions from chainer import testing from chainer.testing import attr from chainer import utils<|fim▁hole|>@testing.parameterize(*( testing.product({ 'shape': [(3, 2, 4)], 'axis':...
<|file_name|>listwidget.py<|end_file_name|><|fim▁begin|>import os from functools import partial from PyQt4.QtGui import QWidget from PyQt4.QtCore import Qt from qgis.core import QgsMapLayer from qgis.gui import QgsExpressionBuilderDialog from roam.api.utils import layer_by_name from configmanager.models import QgsL...
valueindex = self.valueCombo.findData(value.lower(), QgsFieldModel.FieldNameRole) if valueindex > -1:
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>pub mod auth;<|fim▁end|>
pub mod hello;
<|file_name|>0051_auto_20190423_0803.py<|end_file_name|><|fim▁begin|># Generated by Django 2.1.7 on 2019-04-23 06:03 import diventi.accounts.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0050_auto_20190421_2252'), ]<|fim▁hole|> ...
operations = [ migrations.AlterModelManagers( name='diventiuser',
<|file_name|>window_delegate_cpptoc.cc<|end_file_name|><|fim▁begin|>// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // ----------------------------------------------------------...
CefWindowCToCpp::Wrap(window));
<|file_name|>program.py<|end_file_name|><|fim▁begin|>""" Copyright (C) 2008-2013 Tomasz Bursztyka This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
'PF_HP_PAGE_SIZE' : 0x00100000,
<|file_name|>libgeneric.ts<|end_file_name|><|fim▁begin|>namespace pxsim { // A ref-counted collection of either primitive or ref-counted objects (String, Image, // user-defined record, another collection) export class RefCollection extends RefObject { private data: any[] = []; constructor()...
} } export namespace Array_ {
<|file_name|>vpmulhw.rs<|end_file_name|><|fim▁begin|>use ::{BroadcastMode, Instruction, MaskReg, MergeMode, Mnemonic, OperandSize, Reg, RoundingMode}; use ::RegType::*; use ::instruction_def::*; use ::Operand::*; use ::Reg::*; use ::RegScale::*; fn vpmulhw_1() { run_test(&Instruction { mnemonic: Mnemonic::VPMULHW,...
fn vpmulhw_18() { run_test(&Instruction { mnemonic: Mnemonic::VPMULHW, operand1: Some(Direct(ZMM5)), operand2: Some(Direct(ZMM2)), operand3: Some(IndirectScaledIndexedDisplaced(ESI, EDX, Two, 64509818, Some(OperandSize::Zmmword), None)), operand4: None, lock: false, rounding_mode: None, merge_mode: Some(MergeMode::...
<|file_name|>common-dialog.component.ts<|end_file_name|><|fim▁begin|>import { Component, OnInit } from '@angular/core'; import { MdDialogRef } from '@angular/material'; <|fim▁hole|>}) export class CommonDialogComponent implements OnInit { constructor( public dialogRef: MdDialogRef<CommonDialogComponent> ) { } ...
@Component({ selector: 'app-common-dialog', templateUrl: './common-dialog.component.html', styleUrls: ['./common-dialog.component.css']
<|file_name|>modify_ssl_vpn_server.go<|end_file_name|><|fim▁begin|>package vpc //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 // //Unless requi...
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
<|file_name|>data_source_sakuracloud_bucket_object_test.go<|end_file_name|><|fim▁begin|>// Copyright 2016-2019 terraform-provider-sakuracloud 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 ...
<|file_name|>test_tahoelafs.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python """ Test the TahoeLAFS @author: Marek Palatinus <marek@palatinus.cz> """ import sys import logging import unittest from fs.base import FS import fs.errors as errors from fs.tests import FSTestCases, ThreadingTestCa...
logging.getLogger().setLevel(logging.DEBUG) logging.getLogger('fs.tahoelafs').addHandler(logging.StreamHandler(sys.stdout))
<|file_name|>stream.py<|end_file_name|><|fim▁begin|>import os import asyncio import logging from functools import partial from collections import deque from lxml import etree from . import stanzas from .stanzas import Iq from .parser import Parser from .utils import signalEvent from .utils import benchmark as timedW...
In the case of Stanza and Element the Mixin.onSend callback is
<|file_name|>table-notifications.js<|end_file_name|><|fim▁begin|>/** Namespace NotificationsTable */ var NotificationsTable = new function() { var ns = this; // reference to the namespace ns.oTable = null; var asInitVals = []; /** Update the table to list the notifications. */ this.update = function() { ...
{
<|file_name|>ilm.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from cogent.app.util import CommandLineApplication,\ CommandLineAppResult, ResultPath from cogent.app.parameters import Parameter,ValuedParameter,Parameters __author__ = "Shandy Wikman" __copyright__ = "Copyright 2007-2012, The Cogent Project"...
<|file_name|>menu-bar.component.ts<|end_file_name|><|fim▁begin|>import {Component, OnInit} from '@angular/core'; import {SharedData} from '../shared-data'; @Component({ selector: 'app-menu-bar', templateUrl: './menu-bar.component.html', styleUrls: ['./menu-bar.component.css']<|fim▁hole|>export class MenuBarCompo...
})
<|file_name|>post.js<|end_file_name|><|fim▁begin|>import 'whatwg-fetch';<|fim▁hole|> export default function post(url, data) { return fetch(url, { method: "POST", body: JSON.stringify(data), headers: { "Content-Type": "application/json" }, credentials: "same-origi...
<|file_name|>apiController.ts<|end_file_name|><|fim▁begin|>/** * Api Controller is the base for all API Rest controllers, it exposes a common * way of defining routes for each controller */ import * as express from "express"; export abstract class ApiController { public abstract getRoutes(): Route[]; } export i...
middleware?: express.Handler[] | express.Handler;
<|file_name|>tuple1.py<|end_file_name|><|fim▁begin|>a = (1, 2) b = (1, 3, 5, 7, 8, 11) print a[0] #b[3] = 3 # error! x1 = a[0] y1 = a[1] x1, y1 = a b1, b2, b3, b4, b5, b6 = b print b4 #b1, b2 = b # error! a = 1, 2, 3 print a <|fim▁hole|> a = f() x, y = f() x = f()[0]<|fim▁end|>
def f(): return 1, 3
<|file_name|>app.ts<|end_file_name|><|fim▁begin|>/// <reference path='./Scripts/DlhSoft.ProjectData.GanttChart.HTML.Controls.d.ts'/> import GanttChartView = DlhSoft.Controls.GanttChartView; import GanttChartItem = GanttChartView.Item; import PredecessorItem = GanttChartView.PredecessorItem; import NetworkDiagramView =...
<|file_name|>androidmetrics_jni.cc<|end_file_name|><|fim▁begin|>/* * Copyright 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property right...
webrtc::metrics::Enable(); }
<|file_name|>isEqual.js<|end_file_name|><|fim▁begin|>define('lodash/lang/isEqual', ['exports', 'lodash/internal/baseIsEqual', 'lodash/internal/bindCallback'], function (exports, _lodashInternalBaseIsEqual, _lodashInternalBindCallback) { 'use strict'; /** * Performs a deep comparison between two values to determ...
<|file_name|>opa_test.go<|end_file_name|><|fim▁begin|>// Copyright 2018 The OPA Authors. All rights reserved. // Use of this source code is governed by an Apache2 // license that can be found in the LICENSE file. package opa import ( "context" "encoding/json" "reflect" "testing" ) func TestCompileRequestDeniedA...
"path": []string{"posts"}, "user": "bob",
<|file_name|>per.py<|end_file_name|><|fim▁begin|>import os import pickle import numpy as np from tqdm import tqdm class SumTree:<|fim▁hole|> self.data = np.empty(capacity, dtype=object) self.head = 0 @property def total_priority(self): return self.tree[0] @property def max_pr...
def __init__(self, capacity): self.capacity = capacity self.tree = np.zeros(2 * capacity - 1, dtype=np.float32)
<|file_name|>operations.rs<|end_file_name|><|fim▁begin|>bitflags! { flags Operations: u32 { const CREATE = 0x0001, const DELETE = 0x0002,<|fim▁hole|> const MODIFY = 0x0020, const OPEN = 0x0040, const CLOSE_WRITE = 0x0080, const CLOSE_NOWRITE = 0x0100, const UNMOUNT = 0x0240, const MOUNT = 0x0400...
const MOVE = 0x0004, const ACCESS = 0x0008, const ATTRIB = 0x0010,
<|file_name|>feats.js<|end_file_name|><|fim▁begin|>"use strict"; class FeatsPage extends ListPage { constructor () { const pageFilter = new PageFilterFeats(); super({ dataSource: "data/feats.json", pageFilter, listClass: "feats", sublistClass: "subfeats", dataProps: ["feat"], isPreviewable:...
<|file_name|>forms.py<|end_file_name|><|fim▁begin|>from datetime import date <|fim▁hole|> class AnnouncementForm(forms.Form): """Form for collecting information about an announcement. This is not a ModelForm, and does not include the group or locale fields, because it should only be used in a context where...
from django import forms from django.utils.translation import ugettext_lazy as _lazy
<|file_name|>dvips.py<|end_file_name|><|fim▁begin|># This file is part of Rubber and thus covered by the GPL import rubber.dvip_tool import rubber.module_interface class Module (rubber.module_interface.Module):<|fim▁hole|> def __init__ (self, document, opt): self.dep = rubber.dvip_tool.Dvip_Tool_Dep_Node ...
<|file_name|>run_with_coredumps_enabled.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. from contex...
<|file_name|>key_encrypt.go<|end_file_name|><|fim▁begin|>package jwe import ( "crypto" "crypto/aes" "crypto/cipher" "crypto/ecdsa" "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/sha256" "crypto/subtle" "encoding/binary" "fmt" "hash" "github.com/lestrrat/go-jwx/internal/concatkdf" "github.com/lestrrat/...
return nil, errors.Wrap(ErrUnsupportedAlgorithm, "invalid RSA PKCS encrypt algorithm") }
<|file_name|>aiplatform_generated_aiplatform_v1_dataset_service_list_annotations_sync.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtai...
# It may require modifications to work in your environment. # To install the latest published package dependency, execute the following:
<|file_name|>script.ts<|end_file_name|><|fim▁begin|>import { defineComponent } from 'vue'; import ILoader from '@inkline/inkline/components/ILoader/index.vue'; import { LinkableMixin, sizePropValidator, colorVariantClass, defaultPropValue } from '@inkline/inkline/mixins'; import { Classes } from '@inkli...
}, /** * Display the button as a block, spanning the full container width
<|file_name|>Collection.js<|end_file_name|><|fim▁begin|>var assert = require('assert'); describe('src/components/model/classes/Collection', function () { var Collection = require('../../../../src/components/model/classes/Collection'); var collection; var handler = function (event, changes) { callb...
return -1;
<|file_name|>utils.py<|end_file_name|><|fim▁begin|><|fim▁hole|> result = [item_group] child_groups = frappe.get_list( "Item Group", filters={"parent_item_group": item_group}, fields=["name"] ) child_groups = [child.name for child in child_groups if child not in result] if len(child_groups) > 0: result...
import frappe def flat_item_group_tree_list(item_group, result=None): if not result:
<|file_name|>gunicorn.conf.py<|end_file_name|><|fim▁begin|>wsgi_app = "weasyl.wsgi:make_wsgi_app()" proc_name = "weasyl" preload_app = False<|fim▁hole|> 'X-FORWARDED-PROTO': 'https', } forwarded_allow_ips = '*'<|fim▁end|>
secure_scheme_headers = {
<|file_name|>baseUtils.ts<|end_file_name|><|fim▁begin|>export interface BaseUtils { /** * Returns whether or not the string is a valid protocol address *<|fim▁hole|> * @param {string} address - the address to be validated * @returns {boolean} - the validation result */ isValidAddress(address: string):...
<|file_name|>utils.py<|end_file_name|><|fim▁begin|># Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you...
"""Get all metadata for a list of resources after filtering. Search_filts is a list of dictionaries, where the values in the dictionary can be string or regex string, or a list of strings/regex strings.
<|file_name|>cjk_bigram.go<|end_file_name|><|fim▁begin|>// Copyright (c) 2014 Couchbase, Inc. // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file // except in compliance with the License. You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0...
<|file_name|>inputSelect_CheckWarningsTest.js<|end_file_name|><|fim▁begin|>({ failOnWarning : true, /** * Check to make sure that when the user puts in invalid options (i.e. an option missing the value element) */ testInputSelect_WarningForInvalidOption : { auraWarningsExpectedDuringInit: ["Option at index 1 ...
<|file_name|>SmoothScrollTimerTask.java<|end_file_name|><|fim▁begin|>package com.sunjian.android_pickview_lib.view; import java.util.TimerTask;<|fim▁hole|> int realOffset; int offset; final WheelView loopView; SmoothScrollTimerTask(WheelView loopview, int offset) { this.loopView = loopview; ...
final class SmoothScrollTimerTask extends TimerTask { int realTotalOffset;
<|file_name|>topic.go<|end_file_name|><|fim▁begin|>// Copyright (c) 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without l...
} func (cs *consumerService) SetConsumptionType(value ConsumptionType) ConsumerService { newcs := *cs
<|file_name|>index.d.ts<|end_file_name|><|fim▁begin|>// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/56295f5058cac7ae458540423c50ac2dcf9fc711/lodash/lodash-3.10.d.ts // Type definitions for Lo-Dash // Project: http://lodash.com/ // Definitions by: Brian Zengel <https...
<|file_name|>wizard_genesis.go<|end_file_name|><|fim▁begin|>// Copyright 2017 The AriseID Authors // This file is part AriseID. // // AriseID 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 ...
} } } genesis.ExtraData = make([]byte, 32+len(signers)*common.AddressLength+65)