prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>Enemy.java<|end_file_name|><|fim▁begin|>package com.blogspot.ludumdaresforfun; import com.badlogic.gdx.graphics.g2d.Animation; import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion; import com.badlogic.gdx.math.Rectangle; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.scenes.scene2...
} this.state = Enemy.State.Walking;
<|file_name|>test_consolor.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ consolor Copyright (c) 2013-2014, Friedrich Paetzke (f.paetzke@gmail.com) All rights reserved. """ from __future__ import print_function from consolor import BgColor, Color, get_line try: from unittest.mock import call, patch...
@patch('tests.test_consolor.mockable_print') def test_print_concat_bgcolor(mocked_print):
<|file_name|>ser.rs<|end_file_name|><|fim▁begin|>// Copyright 2017 Serde Developers // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be co...
_variant_index: u32, variant: &'static str, value: &T,
<|file_name|>main-en.ts<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
import "@/lang/locale/en" import './main'
<|file_name|>CloseableDisposerRecord.java<|end_file_name|><|fim▁begin|>/* * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publi...
* * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
<|file_name|>sbox.rs<|end_file_name|><|fim▁begin|>use std::collections::BTreeMap; lazy_static! { pub static ref S_BOX: SBox = SBox::new(); } pub struct SBox { s_map_enc: BTreeMap<u8, u8>, s_map_dec: BTreeMap<u8, u8>, } impl SBox { fn new() -> Self { let mut tmp_map_enc = BTreeMap::new(); ...
#[should_panic] fn test_that_invalid_input_panics_inverse() { S_BOX.apply_dec(42);
<|file_name|>continuationIndentForCallInStatementPart_after.py<|end_file_name|><|fim▁begin|>for item in really_long_name_of_the_function_with_a_lot_of_patams( param1, param2, param3):<|fim▁hole|><|fim▁end|>
pass
<|file_name|>dual_variable_warm_start_slack_osqp_interface.cc<|end_file_name|><|fim▁begin|>/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t...
<|file_name|>wif_test.go<|end_file_name|><|fim▁begin|>package enc import ( "bytes" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "testing" )<|fim▁hole|> if testing.Short() { t.Skip("skipping test in short mode.") } keys1, err := ecdsa.GenerateKey(elliptic.P384(), rand.Reader) if err != nil { t.Error(err...
func TestWIF(t *testing.T) {
<|file_name|>liveness-loop-break.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...
debug!("%d", v); }
<|file_name|>test_matcher.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..', 'resources', 'lib')) sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'resources', 'lib', 'pyscraper')) from matcher import ...
gamename = 'FIFA \'98 (1998) [Electronic Arts]'
<|file_name|>compress.js<|end_file_name|><|fim▁begin|>if(typeof(Control)=='undefined') Control={}; Control.TextArea=Class.create(); Object.extend(Control.TextArea.prototype,{ onChangeTimeoutLength:500, element:false, onChangeTimeout:false, initialize:function(textarea){ this.element=$(textarea); $(this.element).observe...
this.controllers.appendChild(this.textarea.element.remove());
<|file_name|>crack.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 import rainbow<|fim▁hole|>import string import time import random """SHA-256 hash function Precondition: Input plaintext as string Postcondition: Returns hash as string """ def sha256(plaintext): return hashlib.sha256(bytes(plaintext, 'utf-8')...
import hashlib
<|file_name|>test_20_actor.py<|end_file_name|><|fim▁begin|>from vertebra.actor import actor class test_00_actor: def test_00_instantiate(self):<|fim▁hole|><|fim▁end|>
"""actor: can instantiate a base actor""" a = actor() assert isinstance(a,actor), "instantiated actor is actually an actor"
<|file_name|>algo.py<|end_file_name|><|fim▁begin|>import numpy as np import scipy.linalg as la def calculate_vertex_normals(verts, tris): v_array = np.array(verts) tri_array = np.array(tris, dtype=int) tri_pts = v_array[tri_array] n = np.cross( tri_pts[:,1] - tri_pts[:,0], tri_pts[:,...
for i in range(tri_array.shape[0]): for j in tris[i]: v_normals[j,:] += n[i,:]
<|file_name|>config.rs<|end_file_name|><|fim▁begin|>extern crate serde; extern crate serde_json; use std::io; use std::io::Read; use std::fs::File; use std::error::Error; include!(concat!(env!("OUT_DIR"), "/config.rs")); #[derive(Debug)] pub struct Config { pub file_path: String, pub auth: String, } impl Co...
try!(file.read_to_string(& mut data)); let deserialized: ConfigFile = try!( serde_json::from_str(&data).map_err(|err| {
<|file_name|>AuthServiceImpl.java<|end_file_name|><|fim▁begin|>package com.lyubenblagoev.postfixrest.service; import com.lyubenblagoev.postfixrest.entity.User; import com.lyubenblagoev.postfixrest.security.JwtTokenProvider; import com.lyubenblagoev.postfixrest.security.RefreshTokenProvider; import com.lyubenblagoev.po...
} @Override public AuthResponse createTokens(String email) {
<|file_name|>core_depthplot.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env pythonw #from __future__ import print_function import sys import wx import os import matplotlib if matplotlib.get_backend() != "WXAgg": matplotlib.use("WXAgg") import matplotlib.pyplot as plt from pmagpy import pmagplotlib import pmagpy.co...
try:
<|file_name|>cast_lossless.rs<|end_file_name|><|fim▁begin|>use clippy_utils::diagnostics::span_lint_and_sugg; use clippy_utils::in_constant; use clippy_utils::source::snippet_opt; use clippy_utils::ty::is_isize_or_usize; use rustc_errors::Applicability;<|fim▁hole|>use rustc_hir::{Expr, ExprKind}; use rustc_lint::LateCo...
<|file_name|>AccountingTransaction.java<|end_file_name|><|fim▁begin|>/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as publishe...
if (entry.isPositiveAmount() == positive) { return entry; }
<|file_name|>App.js<|end_file_name|><|fim▁begin|>import React, {useState} from 'react'; import { ScrollView, StyleSheet, Text, TouchableOpacity, Platform, Linking, } from 'react-native'; import AutoHeightWebView from 'react-native-autoheight-webview'; import { autoHeightHtml0, autoHeightHtml1, auto...
<|file_name|>mut-function-arguments.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.apa...
f(z);
<|file_name|>test_pickle.py<|end_file_name|><|fim▁begin|>import io import os import pickle import sys import tempfile import unittest import numpy as np import pystan from pystan.tests.helper import get_model from pystan.experimental import unpickle_fit class TestPickle(unittest.TestCase): @classmethod def s...
<|file_name|>completionForStringLiteral10.ts<|end_file_name|><|fim▁begin|>/// <reference path='fourslash.ts'/> <|fim▁hole|>////type As = 'arf' | 'abacus' | 'abaddon'; ////let a: As; ////if ('/**/' != a verify.completions({ marker: "", exact: ["arf", "abacus", "abaddon"] });<|fim▁end|>
<|file_name|>boilerplate.js<|end_file_name|><|fim▁begin|>// I am well aware this could be so very much tidier, // we are going fo basic functionality first. // will tidy up later. var boilerplate = function() { this.popup = function(html) { $('#popup').html(html); // add X var close = '<img id="close" s...
$('#header, #footer, #main').transition({ 'left': $('#aside').width() }, 300);
<|file_name|>test_v10.py<|end_file_name|><|fim▁begin|># Copyright (c) 2015 Mirantis 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|># distributed under the License is distribu...
# # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software
<|file_name|>build_dataset.py<|end_file_name|><|fim▁begin|>from datetime import datetime import csv import pandas import os import sys<|fim▁hole|>ticker_reader = csv.reader(ticker_f) tickers = [r[0] for r in ticker_reader][1:] ticker_f.close() tln = len(tickers) t_1 = datetime.now() # build full data frame res = None...
os.chdir(sys.argv[1]) ticker_f = open(sys.argv[2], "rb")
<|file_name|>TemplateType.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2010-2012 Matthias Klass, Johannes Leimer, * Rico Lieback, Sebastian Gabriel, Lothar Gesslein, * Alexander Rampp, Kai Weidner * * This file is part of the Physalix Enrollment System * * Foobar is free softw...
private TemplateType(String desc, String fileName) { this.desc = desc;
<|file_name|>models.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright (C) 2010 Eduardo Robles Elvira <edulix AT gmail DOT com> # # 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 Foun...
mobile_tlf = models.CharField(_("Mobilni telefon"), max_length=20)
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django.db import models from django.utils.translation import ugettext as _ class Category(models.Model): title = models.CharField(max_length=50) slug = models.SlugField() order = models.IntegerField(default=1) class Meta: verbose_name ...
<|file_name|>app.js<|end_file_name|><|fim▁begin|>var express= require('express'), path= require('path'), bodyParser = require('body-parser'), routes = require('./server/config/routes'), app= express(); app.use(bodyParser.json()); routes(app); app.use('/', express.static(path.join(__dirname, 'client')...
app.listen(8080); console.log('listening on 8080');
<|file_name|>multiclass_classification.py<|end_file_name|><|fim▁begin|>import os import numpy as np from sklearn.datasets import load_iris from sklearn.ensemble import RandomForestClassifier import shap import mlflow # prepare training data X, y = load_iris(return_X_y=True, as_frame=True) <|fim▁hole|># train a mod...
<|file_name|>test_instantialize_classes_filetypes.py<|end_file_name|><|fim▁begin|>import f311.filetypes as ft def test_DataFile(): _ = ft.DataFile() print(_) def test_FileFits(): _ = ft.FileFits()<|fim▁hole|> def test_FilePy(): _ = ft.FilePy() def test_FileSQLiteDB(): _ = ft.FileSQLiteDB() d...
print(_)
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import patterns, include, url from django.utils.translation import ugettext_lazy as _ from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.conf import settings from django.contrib.auth.dec...
url( r'^$',
<|file_name|>chime.rs<|end_file_name|><|fim▁begin|>#![cfg(feature = "chime")] extern crate rusoto_chime; extern crate rusoto_core; use rusoto_chime::{Chime, ChimeClient, ListAccountsRequest}; use rusoto_core::Region;<|fim▁hole|>async fn should_list_environments() { let client = ChimeClient::new(Region::UsEast1); ...
#[tokio::test]
<|file_name|>example.go<|end_file_name|><|fim▁begin|>package igpay<|fim▁hole|>import ( "regexp" "strings" ) var vowel = regexp.MustCompile(`^([aeiou]|y[^aeiou]|xr)[a-z]*`) var cons = regexp.MustCompile(`^([^aeiou]?qu|[^aeiou]+)([a-z]*)`) func PigLatin(s string) string { sw := strings.Fields(s) for i, w := range s...
<|file_name|>CbfModel.js<|end_file_name|><|fim▁begin|>/* * */ Ext.define("core.cbf.model.CbfModel",{ extend:"Ext.data.Model", fields:[ {name:"id",type:"int",srotable:false}, {name:"cbfbm",type:"string",srotable:false}, {name:"cbflx",type:"char",srotable:false}, {name:"cbfmc",type:"string",...
{name:"gsjsr",type:"string",srotable:false}, {name:"gsshrq",type:"string",srotable:false}, //date {name:"gsshr",type:"string",srotable:false} ]
<|file_name|>index.tsx<|end_file_name|><|fim▁begin|>// Copyright (c) 2017 Uber Technologies, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.<|fim▁hole|>// // Unless required by applicable law or agreed to in writing, software...
// You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0
<|file_name|>selectors.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 cssparser::{Parser, ParserInput, ToCss}; use selectors:...
fn parse_selector<'i, 't>(input: &mut Parser<'i, 't>) -> Result<SelectorList<SelectorImpl>, ParseError<'i>> { let mut ns = Namespaces::default();
<|file_name|>input.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit...
<|file_name|>functions_6f.js<|end_file_name|><|fim▁begin|>var searchData= [<|fim▁hole|>];<|fim▁end|>
['out',['Out',['../classNumericalSHOCK.html#a74f7811f85ca6d4e7192cc143926f3b4',1,'NumericalSHOCK']]]
<|file_name|>gulpfile.js<|end_file_name|><|fim▁begin|>var gulp = require('gulp'), plumber = require('gulp-plumber'), browserify = require('gulp-browserify'), concat = require('gulp-concat'), gulpif = require('gulp-if'), uglify = require('gulp-uglify'), jshint = require('gulp-jshint'), stylis...
<|file_name|>default.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2013 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/li...
let exprs = fields.map(|sp| default_call(*sp)); cx.expr_call_ident(span, substr.type_ident, exprs)
<|file_name|>CloudWaveJNI.java<|end_file_name|><|fim▁begin|>/*******************************************************************************<|fim▁hole|> * Copyright 2015 Software Evolution and Architecture Lab, University of Zurich * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
<|file_name|>dom.ts<|end_file_name|><|fim▁begin|>// (C) Copyright 2015 Moodle Pty Ltd. // // 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...
} return this.translate.instant('core.course.availablespace', {available: availableSize}); }
<|file_name|>script_lol.cpp<|end_file_name|><|fim▁begin|>/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you ca...
} int LoLEngine::olol_getInflictedDamage(EMCState *script) {
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># coding: utf-8 # Copyright (c) Pymatgen Development Team.<|fim▁hole|># Distributed under the terms of the MIT License. __author__ = 'Anubhav Jain' __copyright__ = 'Copyright 2014, The Materials Project' __version__ = '0.1' __maintainer__ = 'Anubhav Jain' __email__...
<|file_name|>person_mng.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################### # # Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol # # This program is free software: you can redistribute it and/or modify # it under the terms of...
<|file_name|>CIA.py<|end_file_name|><|fim▁begin|>from ImportDependence import * from CustomClass import * class CIA(AppForm): useddf=pd.DataFrame() Lines = [] Tags = [] description = 'Chemical Index of Alteration' unuseful = ['Name', 'Mineral', 'Author', ...
elif i =='CaO':
<|file_name|>ausrq.ts<|end_file_name|><|fim▁begin|>import {Component} from '@angular/core'<|fim▁hole|> template: ` <span [attr.aria-label]="msg" [hidden]="false">This is a dummy component for Ausrq</span> <div (click)="doNothing($event)"></div> `, }) export class Ausrq { msg: string = 'nothing to say';...
@Component({ selector: 'd-ausrq',
<|file_name|>pub_use_xcrate1.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...
}
<|file_name|>topThick.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # The file is part of the WRL Project. # # The WRL Project is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the L...
# # The WRL Project is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of
<|file_name|>HTMLMediaSource.cpp<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2013 Google Inc. All rights reserved. *<|fim▁hole|> * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
* Redistribution and use in source and binary forms, with or without
<|file_name|>test_lrs.py<|end_file_name|><|fim▁begin|>import requests LRS = "http://cygnus.ic.uva.nl:8000/XAPI/statements" u = raw_input("LRS username: ")<|fim▁hole|>r = requests.get(LRS,headers={"X-Experience-API-Version":"1.0"},auth=(u,p)); if r.status_code == 200: print "Success" else: print "Server return...
p = raw_input("LRS password: ")
<|file_name|>reflector.d.ts<|end_file_name|><|fim▁begin|>import { Type } from 'angular2/src/facade/lang'; import { SetterFn, GetterFn, MethodFn } from './types'; import { PlatformReflectionCapabilities } from './platform_reflection_capabilities'; export { SetterFn, GetterFn, MethodFn } from './types'; export { Plat...
* Reflective information about a symbol, including annotations, interfaces, and other metadata. */ export declare class ReflectionInfo { annotations: any[];
<|file_name|>ReadCardTask.java<|end_file_name|><|fim▁begin|>/* * This file is part of KITCard Reader. * Ⓒ 2012 Philipp Kern <phil@philkern.de> * * KITCard Reader 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 Found...
} else if(result == ReadCardResult.OLD_STYLE_WALLET) { // old-style wallet encountered Toast.makeText(mActivity, mActivity.getResources().getString(R.string.kitcard_needs_reencode), Toast.LENGTH_LONG).show(); return;
<|file_name|>save.py<|end_file_name|><|fim▁begin|>import sublime, sublime_plugin class SaveAllExistingFilesCommand(sublime_plugin.ApplicationCommand): def run(self): for w in sublime.windows():<|fim▁hole|> def _save_files_in_window(self, w): for v in w.views(): self._save_existing_file_in_view(v) def _save_ex...
self._save_files_in_window(w)
<|file_name|>es.typed.conversions.int32.js<|end_file_name|><|fim▁begin|>import { DESCRIPTORS, LITTLE_ENDIAN } from '../helpers/constants'; if (DESCRIPTORS) QUnit.test('Int32 conversions', assert => { const int32array = new Int32Array(1); const uint8array = new Uint8Array(int32array.buffer); const dataview = new ...
[-5e-324, 0, [0, 0, 0, 0]], [NaN, 0, [0, 0, 0, 0]], ];
<|file_name|>console.rs<|end_file_name|><|fim▁begin|>use core; use x86::io::outb;<|fim▁hole|> use ::console::{Color, ConsoleCore}; const VGA_TEXT_BASE: *mut u16 = 0xB8000 as *mut u16; // TODO: Read this from BIOS instead const VGA_BASE_PORT: u16 = 0x3d4; pub struct ConsoleCoreImpl { x: usize, y: usize, f...
<|file_name|>sctp_unsupported.go<|end_file_name|><|fim▁begin|>// +build !linux linux,386<|fim▁hole|> "errors" "net" "runtime" ) var ErrUnsupported = errors.New("SCTP is unsupported on " + runtime.GOOS + "/" + runtime.GOARCH) func setsockopt(fd int, optname, optval, optlen uintptr) (uintptr, uintptr, error) { retur...
package sctp import (
<|file_name|>models.py<|end_file_name|><|fim▁begin|>"""passlib.ext.django.models -- monkeypatch django hashing framework""" #============================================================================= # imports #============================================================================= # core import logging; log =...
def _get_category(user): """default get_category() implementation"""
<|file_name|>zephyr.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # # Copyright (c) 2015, Roberto Riggio # 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 c...
if linker.initialize_limit == 1: for wtp in self.wtps(): #Check if limit is not given and provide the default if str(wtp.addr) not in linker.wtpdict_limit:
<|file_name|>config_test.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- DEBUG = True TESTING = True SECRET_KEY = 'SECRET_KEY' DATABASE_URI = 'mysql+pymysql://root:root@127.0.0.1/git_webhook' CELERY_BROKER_URL = 'redis://:@127.0.0.1:6379/0' CELERY_RESULT_BACKEND = 'redis://:@127.0.0.1:6379/0' <|fim▁hole|>GITHU...
SOCKET_MESSAGE_QUEUE = 'redis://:@127.0.0.1:6379/0'
<|file_name|>bodyWriter.go<|end_file_name|><|fim▁begin|>package http1 import ( "errors" "fmt" "io" "strconv" "github.com/JOTPOT-UK/JOTPOT-Server/jps/pipe" "github.com/JOTPOT-UK/JOTPOT-Server/util" "github.com/JOTPOT-UK/JOTPOT-Server/http" "github.com/JOTPOT-UK/JOTPOT-Server/jps" "github.com/JOTPOT-UK/JOTPO...
func (_ nilBody) Write(_ []byte) (int, error) {
<|file_name|>power.cpp<|end_file_name|><|fim▁begin|>//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You ma...
{
<|file_name|>in_tree.go<|end_file_name|><|fim▁begin|>/* Copyright 2018 The Kubernetes 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/LICENSE-2.0 Unless...
} func (g *gcePdDriver) GetDriverInfo() *storageframework.DriverInfo { return &g.driverInfo
<|file_name|>ExternalShuffleClient.java<|end_file_name|><|fim▁begin|>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to Y...
import org.apache.spark.network.TransportContext; import org.apache.spark.network.client.TransportClient; import org.apache.spark.network.client.TransportClientBootstrap;
<|file_name|>timepicker.module.ts<|end_file_name|><|fim▁begin|>import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { Routes, RouterModule } from '@angular/router'; import { NgbdtimepickerBasic } from './timep...
NgbModule.forRoot(), RouterModule.forChild(routes)
<|file_name|>trigrams.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """Trigrams assignment""" import re import random test_fragment = """ One night--it was on the twentieth of March, 1888--I was returning from a journey to a patient (for I had now returned to civil practice), when my way led me through Baker ...
except (NameError, KeyError): pass else:
<|file_name|>step-inspector.component.ts<|end_file_name|><|fim▁begin|>import {ChangeDetectorRef, Component, EventEmitter, Input, Output} from "@angular/core"; import {Workflow} from "cwl-svg"; import {StepModel, WorkflowModel} from "cwlts/models"; import {RawApp} from "../../../../../electron/src/sbg-api-client/interfa...
modal.isLoading = false;
<|file_name|>base.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from ._compat import unittest from ._adapt import DEFAULT_URI, drop, IS_MSSQL, IS_IMAP, IS_GAE, IS_TERADATA, IS_ORACLE from pydal import DAL, Field from pydal._compat import PY2 @unittest.skipIf(IS_IMAP, "Reference not Null unsupported on IMAP...
<|file_name|>Gruntfile.js<|end_file_name|><|fim▁begin|>/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ meta: { version: '2.0.0', banner: '/*! Ebla - v<%= meta.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '* ...
'javascripts/ebla/loader.js',
<|file_name|>Venue.java<|end_file_name|><|fim▁begin|>package org.jboss.examples.ticketmonster.model; import static javax.persistence.CascadeType.ALL; import static javax.persistence.FetchType.EAGER; import static javax.persistence.GenerationType.IDENTITY; import java.io.Serializable; import java.util.HashSet; import ...
* A set of sections in the venue * </p> * * <p>
<|file_name|>counts_table_sparse.py<|end_file_name|><|fim▁begin|># vim: fdm=indent # author: Fabio Zanini # date: 09/08/17 # content: Sparse table of gene counts # Modules import numpy as np import pandas as pd # Classes / functions class CountsTableSparse(pd.SparseDataFrame): '''Sparse table of gene...
<|file_name|>comments.ts<|end_file_name|><|fim▁begin|>/* Copyright 2017 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required b...
* Given an array of comment data, return instances succesfully * created that weren't duplicates. */ export function createComments(items: Array<any>): Bluebird<Array<ICommentInstance>> {
<|file_name|>Hex2OctExpression.java<|end_file_name|><|fim▁begin|>/****************************************************************************** * Copyright (c) 2000-2015 Ericsson Telecom AB * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public ...
@Override public String createStringRepresentation() {
<|file_name|>entity.js<|end_file_name|><|fim▁begin|>'use strict' /* libraries */ var Sequelize = require('sequelize') /* own code */ var Attribute = require('./attribute') /** * Parse DEM entity and create Sequelize definition for the table itself. * @constructor */ function Entity() { this._parserAttr = new Att...
columns: {...},
<|file_name|>settings.py<|end_file_name|><|fim▁begin|>""" Django settings for news_project project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://...
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, {
<|file_name|>exceptions.py<|end_file_name|><|fim▁begin|><|fim▁hole|>class InvalidDuration(Exception): pass class InvalidTag(Exception): pass class InvalidID3TagVersion(Exception): pass class CouldntDecodeError(Exception): pass<|fim▁end|>
class TooManyMissingFrames(Exception): pass
<|file_name|>bdmplot2_callback.py<|end_file_name|><|fim▁begin|># Copyright (c) 2008-2010, Regents of the University of Colorado. # This work was supported by NASA contracts NNJ05HE10G, NNC06CB40C, and # NNC07CB47C. # This library is free software. You can redistribute it and/or modify # it under the terms of the GNU L...
# Instructions can be found on our website at # http://bioserve.colorado.edu/developers-corner.
<|file_name|>0004_auto_20171004_2323.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-04 21:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("peering", "0003_auto_20170903_1235")] operations = [ migra...
),
<|file_name|>drmaa_wrapper.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python from __future__ import print_function ################################################################################ # # # drmaa_wrapper.py # # Copyright (C) 2013 Leo Goodstadt # # Permission is hereby granted, free of charge, to a...
<|file_name|>OverLoadMe.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from ..internal.misc import json from ..internal.MultiAccount import MultiAccount class OverLoadMe(MultiAccount): __name__ = "OverLoadMe" __type__ = "account" __version__ = "0.13"<|fim▁hole|> __status__ = "testing" __...
<|file_name|>RapidMinerTestCase.java<|end_file_name|><|fim▁begin|>/* * RapidMiner * * Copyright (C) 2001-2011 by Rapid-I and the contributors * * Complete list of developers available at our web site: * * http://rapid-i.com * * This program is free software: you can redistribute it and/or mo...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|><|fim▁hole|> name = 'iMX233_GPIO', version = '0.1.0', author = 'Stefan Mavrodiev', author_email = 'support@olimex.com', url = 'https://www.olimex.com/', license = 'MIT', ...
from distutils.core import setup, Extension setup(
<|file_name|>RemoteSpecParser.py<|end_file_name|><|fim▁begin|># #################################################################### # gofed - set of tools to automize packaging of golang devel codes # Copyright (C) 2014 Jan Chaloupka, jchaloup@redhat.com<|fim▁hole|># # This program is free software; you can redistrib...
<|file_name|>api_v1.py<|end_file_name|><|fim▁begin|>from flask import Blueprint import flask_restx from flask_restx import Resource from flask import request # import subprocess # from os import path # from flask import redirect from sanskrit_parser.base.sanskrit_base import SanskritObject, SLP1 from sanskrit_parser.p...
r = {"version": str(__version__)} return r
<|file_name|>iso_metadata_parser.py<|end_file_name|><|fim▁begin|>""" A module to contain utility ISO-19115 metadata parsing helpers """ from _collections import OrderedDict from copy import deepcopy from frozendict import frozendict as FrozenOrderedDict from parserutils.collections import filter_empty, reduce_value, ...
) # Update all Network Resources: transferOptions+
<|file_name|>subs.tsx<|end_file_name|><|fim▁begin|>import { Dequeue, MarkTrackSkipped, Pause, Play, SeekBackwards, SeekForwards, Stop, UpdateQueue, } from "./actions"; import { ApiRequest, SendCommand } from "./effects"; import { Keyboard, Interval } from "hyperapp-fx"; import { MQTTSubs...
}, });
<|file_name|>htmltablecolelement.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::bindings::inheritance::Castable;...
n.upcast::<Node>().set_weird_parser_insertion_mode(); n
<|file_name|>ember-data.model-fragments.js<|end_file_name|><|fim▁begin|>/*! * @overview Ember Data Model Fragments * @copyright Copyright 2015 Lytics Inc. and contributors * @license Licensed under MIT license * See https://raw.githubusercontent.com/lytics/ember-data.model-fragments/master/LICENSE * ...
var actualType = data[typeKey];
<|file_name|>sidebar.js<|end_file_name|><|fim▁begin|>/** * 首页 */ pageData = window.pageData?window.pageData:[]; var vm = avalon.define({ $id : "sidebar", test: "tst", //domainBuyList1 : [{title:"test"},{title:"test2"}], //domainSoldList1 : [{title:"test"},{title:"test2"}],//买标信息一览(最新11条,首页只表示最新的)...
{ count : count //参数1,检索的limit条数 // id:id
<|file_name|>mm_proposal_wo_kivi.py<|end_file_name|><|fim▁begin|># python3 """ Mastermind without kivy - by Luis merciless edited by hans """ import random import re class G(): valid_chars = '123456' secret_len = 5 solved = '+' * secret_len<|fim▁hole|>def main(): secret = answer_generator() ...
regex_str = "^[{0}]{{{1},{1}}}$".format(valid_chars, secret_len) valid_input = re.compile(regex_str) # regular expression for user input
<|file_name|>index.js<|end_file_name|><|fim▁begin|>import DndStatus from 'ringcentral-integration/modules/Presence/dndStatus'; import i18n from './i18n';<|fim▁hole|> currentLocale, ) { if (dndStatus === DndStatus.doNotAcceptAnyCalls) { return i18n.getString(dndStatus, currentLocale); } return i18n.getString(...
export function getPresenceStatusName( presenceStatus, dndStatus,
<|file_name|>qa_test.py<|end_file_name|><|fim▁begin|>""" Copyright 2013 OpERA 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 requir...
# Aumentamos o tempo de sensoriamento 3^1 = 3
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>#![feature(plugin, custom_derive)] #![plugin(rocket_codegen)] #[macro_use] extern crate contacts; #[macro_use] extern crate error_chain; #[macro_use] extern crate lazy_static; #[macro_use] extern crate serde_derive; extern crate postgres; extern crate r2d2; extern crat...
stripeShippingAddressCountryCode: String, } #[post("/subscriptions", data="<form>")]
<|file_name|>includeme_test.py<|end_file_name|><|fim▁begin|>from bravado_core.spec import Spec import mock from pyramid.config import Configurator from pyramid.registry import Registry import pytest from swagger_spec_validator.common import SwaggerValidationError import pyramid_swagger from pyramid_swagger.model impor...
<|file_name|>qpathedit_template.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1"> <context> <name>QPathEdit</name> <message> <location filename="QPathEdit/qpathedit.cpp" line="53"/><|fim▁hole|> <location filename="QPathEdit/qpathedit.cpp" line...
<source>Open File-Dialog</source> <translation type="unfinished"></translation> </message> <message>
<|file_name|>header_byte_count_test.py<|end_file_name|><|fim▁begin|># coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six ...
<|file_name|>MouseTestDlg.cpp<|end_file_name|><|fim▁begin|>#include "stdafx.h" #include "MouseTest.h" #include "MouseTestDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif #define WM_CURSOR_HIDE (WM_APP + 1) #define WM_CURSOR_SHOW (WM_APP + 2) BEGIN_MESSAGE_MAP(CMouseTestDlg, CDialog) ON_WM_CLOSE() ON_WM_DESTROY() ...