prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>chain.rs<|end_file_name|><|fim▁begin|>// Copyright 2015, 2016 Ethcore (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 version 3 of the...
<|file_name|>cache.rs<|end_file_name|><|fim▁begin|>use crate::{ Context, ExecuteProcessRequest, ExecuteProcessRequestMetadata, FallibleExecuteProcessResultWithPlatform, MultiPlatformExecuteProcessRequest, Platform, }; use std::sync::Arc; use bincode; use bytes::Bytes; use futures01::{future, Future}; use log::{deb...
<|file_name|>index.test.js<|end_file_name|><|fim▁begin|>import { sortSurveyElements } from '../index'; describe('sortSurveyElements', () => { it('sorts survey elements by weight', () => { const inputSurvey = { title: 'Sample Survey', sections: [ { id: 1, title: 'Later Section', weight: 1 }, ...
options: [ { option: 'Choice 1', weight: 0 },
<|file_name|>quantize_graph_pad.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from tensorflow.core.framework import node_def_pb2<|fim▁hole|>from intel_quantization.quantize_graph.quantize_graph_common import QuantizeGraphHelper as helper class FuseNodeStartWithPad(QuantizeNodeBase): def __init__(self,...
from tensorflow.python.framework import tensor_util from intel_quantization.quantize_graph.quantize_graph_base import QuantizeNodeBase
<|file_name|>RemoveRoleFromDBClusterResult.java<|end_file_name|><|fim▁begin|>/* * Copyright 2017-2022 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...
* redacted from this string using a placeholder value.
<|file_name|>test_lint.py<|end_file_name|><|fim▁begin|><|fim▁hole|>### END LICENSE import unittest import subprocess class TestPylint(unittest.TestCase): def test_project_errors_only(self): '''run pylint in error only mode your code may well work even with pylint errors but have s...
#!/usr/bin/python # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # This file is in the public domain
<|file_name|>test_authentication.py<|end_file_name|><|fim▁begin|>from django.http import HttpResponse from django.test import TestCase from django.utils import unittest from django.conf.urls import patterns from rest_framework import permissions, status try: from rest_framework_oauth.authentication import OAuth2Au...
"""
<|file_name|>operator-provider.ts<|end_file_name|><|fim▁begin|>import { ExtendedOperationType } from './configuration.model'; type SimpleValueType = string | number | boolean | undefined | null; type OperatorFun = (value: SimpleValueType) => boolean; type OperatorFunCreatorFun = (value: SimpleValueType) => OperatorFun...
export function createOperatorFun(operatorType: ExtendedOperationType, refValue: SimpleValueType): OperatorFun {
<|file_name|>test_help.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # 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 rest...
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE.
<|file_name|>osmcache.py<|end_file_name|><|fim▁begin|>from osmcache.cli import base if __name__ == '__main__':<|fim▁hole|><|fim▁end|>
base()
<|file_name|>custom-element.js<|end_file_name|><|fim▁begin|>/** * Copyright 2015 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
*
<|file_name|>data_manager_functions.py<|end_file_name|><|fim▁begin|># Opus/UrbanSim urban simulation software. # Copyright (C) 2010-2011 University of California, Berkeley, 2005-2009 University of Washington # See opus_core/LICENSE import lxml ''' A set of functions related to Data Manager and the <data_manager> node...
return None def get_tool_library_node(project): '''
<|file_name|>papers.py<|end_file_name|><|fim▁begin|>from django import template import randomcolor register = template.Library() CATEGORY_NAMES = { 'cs.AI': 'Artificial Intelligence', 'cs.CL': 'Computation and Language', 'cs.CC': 'Computational Complexity', 'cs.CE': 'Computational Engineering', 'c...
'stat.ML': 'Machine Learning', } @register.inclusion_tag('papers/templatetags/category_badge.html')
<|file_name|>helper.ts<|end_file_name|><|fim▁begin|>import { LocationDetecter } from "./infra" import { ConvertLocationResult } from "./data" <|fim▁hole|> return () => result } export type LocationSearchParam = [string, string] export function encodeLocationSearchQuery(params: LocationSearchParam[]): string { ...
export function backgroundLocationDetecter<T>( result: ConvertLocationResult<T>, ): LocationDetecter<T> {
<|file_name|>TicketHandler.cpp<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public Licens...
uint32 mainSurvey; // GMSurveyCurrentSurvey.dbc, column 1 (all 9) ref to GMSurveySurveys.dbc recvData >> mainSurvey;
<|file_name|>stack.go<|end_file_name|><|fim▁begin|>package adt type Stack struct { top *Element size int } type Element struct { value interface{} // All types satisfy the empty interface, so we can store anything here. next *Element }<|fim▁hole|> } // Return the stack's length func (s *Stack) Len() int { retu...
// Return an empty stack func NewStack() *Stack { return new(Stack)
<|file_name|>root_cgo_darwin.go<|end_file_name|><|fim▁begin|>// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build cgo,!arm,!arm64,!ios package x509 /* #cgo CFLAGS: -mmacosx-version-min=10.6 -D__MAC_OS_...
kSecTrustSettingsDomainAdmin,
<|file_name|>OandaAdapter.js<|end_file_name|><|fim▁begin|>var _ = require("underscore"), Events = require("./Events"), querystring = require("querystring"), httpClient = require("./httpClient"), utils = require("./utils"), logger = require("config-logger"); var environments = { sandbox: { ...
OandaAdapter.prototype.getAccounts = function (callback) {
<|file_name|>0009_auto_20170730_0156.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-07-30 01:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0008_contactphon...
model_name='contactemail', name='place_on_header',
<|file_name|>ConstraintGroupPyImp.cpp<|end_file_name|><|fim▁begin|><|fim▁hole|>#include "Mod/Assembly/App/ConstraintGroup.h" #include "Mod/Assembly/App/ConstraintPy.h" // inclusion of the generated files (generated out of ConstraintGroupPy.xml) #include "ConstraintGroupPy.h" #include "ConstraintGroupPy.cpp" us...
#include "PreCompiled.h"
<|file_name|>app.component.ts<|end_file_name|><|fim▁begin|>import { Component } from '@angular/core';<|fim▁hole|> selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { title = 'Simple Contacts Application'; constructor(private contactServic...
import { ContactService } from './contact.service'; @Component({
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>import inspect import traceback import warnings import functools from shyft.api._api import * import numpy as np from math import sqrt def deprecated(message: str = ''): """ This is a decorator which can be used to mark functions as deprecated. It wil...
KalmanBiasPredictor.update_with_forecast_vector(bp, fc_set, obs, time_axis)
<|file_name|>views.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2016 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published b...
layer = Layer.objects.get(id=resource.id) if layer and can_change_data: # recalculate the layer statistics set_attributes_from_geoserver(layer, overwrite=True)
<|file_name|>common.go<|end_file_name|><|fim▁begin|>// Copyright 2015 - 2016 Square 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 /...
"reflect" "strconv" "github.com/square/metrics/log"
<|file_name|>webpack.config.prod.js<|end_file_name|><|fim▁begin|>var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'source-map', entry: [ './app/index' ],<|fim▁hole|> }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ ...
output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/dist/'
<|file_name|>class_UI_aboutWindow.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Sat Sep 17 17:19:10 2016 @author: Michael """ from PyQt5 import QtWidgets class AboutWindow(QtWidgets.QTextEdit): def __init__(self, parent=None): super().__init__(parent) self.setReadOnly(True...
<|file_name|>BaseWorkerPool.d.ts<|end_file_name|><|fim▁begin|>/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /// <reference types="node" /> import { PoolExit...
protected readonly _options: WorkerPoolOptions; private readonly _workers; constructor(workerPath: string, options: WorkerPoolOptions); getStderr(): NodeJS.ReadableStream;
<|file_name|>defaults_test.go<|end_file_name|><|fim▁begin|>package v1_test import ( "reflect" "testing" "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime" kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api" deployapi "github.com/openshift/origin/pkg/deploy/api" current "github.com/openshift/origin/pk...
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import include, url from django.contrib import admin <|fim▁hole|> url(r'^external/', include('external.urls')), url(r'^dev/', include('dev.urls')), ]<|fim▁end|>
urlpatterns = [ url(r'^admin/', include(admin.site.urls)),
<|file_name|>cli_upload.js<|end_file_name|><|fim▁begin|>// * ———————————————————————————————————————————————————————— * // // * cli upload // * uploads image by providing a link by running:<|fim▁hole|>// vendor dependencies var Promise = require('bluebird') // local dependencies var logger = require(ENDURO_FOLDER + '...
// * enduro upload http://www.imgur.com/asd.png // * ———————————————————————————————————————————————————————— * // var cli_upload = function () {}
<|file_name|>DownloadDialog.java<|end_file_name|><|fim▁begin|>/* * Rasengan - Manga and Comic Downloader * Copyright (C) 2013 Sauriel * * 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 Softwa...
dispose(); } }
<|file_name|>lnGradSchemes.C<|end_file_name|><|fim▁begin|>/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Cop...
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
<|file_name|>sensors.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # 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...
delimiter. Current code accepts sane delimiters, i.e. characters that are NOT special characters in the Python regex engine.
<|file_name|>lazyRef.filter.js<|end_file_name|><|fim▁begin|>(function() { 'use strict'; angular.module('bonitasoft.ui.filters') .filter('lazyRef',function($log) { return function toLazyRef(bo,rel) { if(bo){ if(bo.links){<|fim▁hole|> if(result[0] && result[0].href){ return '.....
var result = bo.links.filter((ref) => ref.rel === rel);
<|file_name|>ceilometer.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- encoding: utf-8 -*- # Openstack Monitoring script for Sensu / Nagios # # Copyright © 2013-2014 eNovance <licensing@enovance.com> # # Author: Mehdi Abaakouk <mehdi.abaakouk@enovance.com> # # Licensed under the Apache License, Version 2.0...
from oschecks import utils
<|file_name|>Methods.java<|end_file_name|><|fim▁begin|>/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
<|file_name|>LeaveWebServiceBusinessTest.java<|end_file_name|><|fim▁begin|>package me.kafeitu.activiti.chapter15.leave; import me.kafeitu.activiti.chapter15.leave.ws.LeaveWebService; import org.apache.cxf.interceptor.LoggingInInterceptor; import org.apache.cxf.interceptor.LoggingOutInterceptor; import org.apache.cxf.j...
// 标准方式 URL url = new URL(LeaveWebserviceUtil.WEBSERVICE_WSDL_URL);
<|file_name|>pd.go<|end_file_name|><|fim▁begin|>/* Copyright 2015 The Kubernetes Authors All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICE...
<|file_name|>browser.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 browser_host::{ServoCefBrowserHost, ServoCefBrowserHostEx...
browser.message_queue.borrow_mut().push(event); } }
<|file_name|>net.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/. */ #[crate_id = "github.com/mozilla/servo#net:0.1"]; #[crate_type = ...
extern crate extra; extern crate png;
<|file_name|>ipv4.go<|end_file_name|><|fim▁begin|>// SPDX-License-Identifier: Apache-2.0 // Copyright 2019-2021 Authors of Cilium package nat import ( "fmt" "unsafe" "github.com/cilium/cilium/pkg/byteorder" "github.com/cilium/cilium/pkg/tuple" "github.com/cilium/cilium/pkg/types" ) // NatEntry4 represents an I...
<|file_name|>urls.py<|end_file_name|><|fim▁begin|># Amara, universalsubtitles.org # # Copyright (C) 2013 Participatory Culture Foundation # # 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,...
<|file_name|>constants.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """Shutdown Timer - Small Windows shutdown timer. Created 2013, 2015 Triangle717 <http://Triangle717.WordPress.com> Shutdown Timer is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
Shutdown Timer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
<|file_name|>comment.py<|end_file_name|><|fim▁begin|>import json from boxsdk.object.base_object import BaseObject from ..util.api_call_decorator import api_call class Comment(BaseObject): """An object that represents a comment on an item""" _item_type = 'comment' @staticmethod<|fim▁hole|> def constru...
<|file_name|>udp_socket.cpp<|end_file_name|><|fim▁begin|>/* Copyright (c) 2007, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above ...
else
<|file_name|>compat.py<|end_file_name|><|fim▁begin|>#------------------------------------------------------------------------------------------ # # Copyright 2017 Robert Pengelly. # # This file is part of ppa-helper.<|fim▁hole|># # This program is free software: you can redistribute it and/or modify # it under ...
<|file_name|>compat.py<|end_file_name|><|fim▁begin|># (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """Python 2<->3 compatibility module""" import sys def print_(template, *args, **kwargs): tem...
elif kwargs:
<|file_name|>config_options_tests.py<|end_file_name|><|fim▁begin|>import os import sys import unittest from unittest.mock import patch import mkdocs from mkdocs.config import config_options from mkdocs.config.base import Config from mkdocs.tests.base import tempdir class OptionallyRequiredTest(unittest.TestCase): ...
fname = os.path.join(os.path.abspath('..'), 'mkdocs.yml') config['docs_dir'] = docs_dir.validate(config['docs_dir']) config['site_dir'] = site_dir.validate(config['site_dir'])
<|file_name|>server_test.py<|end_file_name|><|fim▁begin|>"""Server API tests.""" import unittest # Disable W0611: Unused import import tests.treadmill_test_deps # pylint: disable=W0611 import mock from treadmill import admin from treadmill.api import server class ApiServerTest(unittest.TestCase): """treadmil...
mock.Mock(return_value={'_id': 'foo.somewhere.in.xx.com'})) def test_get(self):
<|file_name|>UrlscanGetHttpTransactions.js<|end_file_name|><|fim▁begin|>var url = args.url; var limit = args.limitl; var defaultWaitTime = Number(args.wait_time_for_polling) uuid = executeCommand('urlscan-submit-url-command', {'url': url})[0].Contents; uri = executeCommand('urlscan-get-result-page', {'uuid': uuid})[0]...
if (resStatusCode == 200) {
<|file_name|>fissureCoude_4.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from blocFissure.gmu.fissureCoude import fissureCoude class fissureCoude_4(fissureCoude): """ problème de fissure du Coude : ASCOU09A adaptation maillage """ # ----------------------------------------------------------------...
<|file_name|>robotsParser.js<|end_file_name|><|fim▁begin|>var robotsParser = require("robots-parser"), urlMod = require("url"); /** * This is a parse that analyzes URL with path /robots.txt. * * @return {Function} Returns the handler. */ module.exports = function (opts) { if (!opts) { opts = {}; } <|fi...
if (!opts.urlFilter) {
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>use std::io; use std::fmt; use std::io::prelude::*; use std::str::FromStr; use std::collections::VecDeque; #[derive(Debug)] struct Display { data: VecDeque<VecDeque<bool>>, height: usize, width: usize, } #[derive(Debug)] enum Command { Rect(usize, usi...
<|file_name|>register.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """ A toolkit for identifying and advertising service resources. Uses a specific naming convention for the Task Definition of services. If you name the Task Definition ending with "-service", no configuration is needed. This also requires tha...
<|file_name|>bulk_test.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8; -*- # # Licensed to CRATE Technology GmbH ("Crate") under one or more contributor # license agreements. See the NOTICE file distributed with this work for # additional information regarding copyright ownership. Crate licenses # this file to y...
from sqlalchemy.orm import Session
<|file_name|>styleMock.js<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
module.exports = require('identity-obj-proxy');
<|file_name|>TestNextafter.rs<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2016 The Android Open Source Project * * 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.a...
float4 inTarget = rsGetElementAt_float4(gAllocInTarget, x); return nextafter(inV, inTarget); }
<|file_name|>PluginDirectory.cpp<|end_file_name|><|fim▁begin|>/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either...
break; } case SORT_METHOD_VIDEO_TITLE:
<|file_name|>KillsReward.java<|end_file_name|><|fim▁begin|>/* * Copyright 2017 Exorath * * 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/license...
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<|file_name|>import_mu.py<|end_file_name|><|fim▁begin|># vim:ts=4:et # ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License...
class ImportMu(bpy.types.Operator, ImportHelper): '''Load a KSP Mu (.mu) File'''
<|file_name|>cs.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'maximize', 'cs', { maximize: 'Maximalizovat', minimize: 'Minimalizovat' <|fim▁hole|><|fim▁end...
} );
<|file_name|>constants.js<|end_file_name|><|fim▁begin|>(function (factory) { if (typeof define === "function" && define.amd) { define(["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } })(function (exports) { "use strict"; Object.defineProperty(exports, "__esModul...
<|file_name|>errors.py<|end_file_name|><|fim▁begin|># Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """email package exception classes.""" class MessageError(Exception): """Base class for errors in the email package.""" class MessagePars...
class MalformedHeaderDefect(MessageDefect): """Found a header that was missing a colon, or was otherwise malformed."""
<|file_name|>DirectvsRNN.py<|end_file_name|><|fim▁begin|>''' Copyleft Oct 24, 2015 Arya Iranmehr, PhD Student, Bafna's Lab, UC San Diego, Email: airanmehr@gmail.com ''' import pandas as pd import pylab as plt import matplotlib as mpl from matplotlib.cm import * import os,sys;home=os.path.expanduser('~') +'/' mpl.rc('...
# plt.savefig(home+'out/vineet/plots/apprx.png') plt.show()
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>""" Grade API v1 URL specification """<|fim▁hole|>from django.conf.urls import url, patterns import views urlpatterns = patterns( '', url(r'^grades/courses/$', views.CourseGradeList.as_view()), url(r'^grades/courses/(?P<org>[A-Za-z0-9_.-]+)[+](?P<name>[A-Z...
<|file_name|>TravisResponse.d.ts<|end_file_name|><|fim▁begin|>/** * This file contains Interfaces mapping Travis responses */ declare module TravisJsonResponse { interface Json { id: number; repository_id: number; number: string;<|fim▁hole|> result: number; started_at: Dat...
state: string;
<|file_name|>SplashActivity.java<|end_file_name|><|fim▁begin|>package com.teamNikaml.bipinography.activity; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.content.Intent; import andro...
// Preparing volley's json object request
<|file_name|>bitcoin_zh_CN.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Securecoin</so...
<|file_name|>XYThetaAction.java<|end_file_name|><|fim▁begin|>package critterbot.actions; public class XYThetaAction extends CritterbotAction { private static final long serialVersionUID = -1434106060178637255L;<|fim▁hole|> private static final int ActionValue = 30; public static final CritterbotAction NoMove = n...
<|file_name|>functions.py<|end_file_name|><|fim▁begin|>from pprint import pprint import lotes.models def where_ende_disponivel(campo): filter_local = "" <|fim▁hole|> if len(end_disp) != 0: filter_end = """-- AND l.local ~ '^(""" filter_sep = "" for regra in end_disp: ...
end_disp = list(lotes.models.EnderecoDisponivel.objects.filter(disponivel=True).values())
<|file_name|>private-trait-xc.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>trait Foo {}<|fim▁end|>
<|file_name|>AClassFieldAccess.java<|end_file_name|><|fim▁begin|>/* This file was generated by SableCC (http://www.sablecc.org/). */ package se.sics.kola.node; import se.sics.kola.analysis.*; @SuppressWarnings("nls") public final class AClassFieldAccess extends PFieldAccess { private PClassName _className_; ...
// Constructor setClassName(_className_);
<|file_name|>test.py<|end_file_name|><|fim▁begin|>def f(a, L=<warning descr="Default argument value is mutable">[]</warning>): L.append(a) return L def f(a, L=<warning descr="Default argument value is mutable">list()</warning>): L.append(a) return L def f(a, L=<warning descr="Default argument value i...
return L
<|file_name|>scroll.directive.ts<|end_file_name|><|fim▁begin|><|fim▁hole|>export class ScrollDirective { constructor(el: ElementRef) { const element = el.nativeElement; element.addEventListener('mouseenter', () => { element.classList.add('scroll'); }); element.addEventListener('mouseleave', () => { ele...
import { Directive, ElementRef, Input } from '@angular/core'; @Directive({ selector: '[umeScroll]' })
<|file_name|>0009_auto_20150720_2105.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('bibtex', '0008_entry_downloadurl'), ] operations = [ mi...
]
<|file_name|>power_cycle_urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import url from ..views import (PowerCycleListView, PowerCycleCreateView, PowerCycleDetailView, PowerCycleUpdateView, PowerCycleDeleteView) from django.contrib.auth.decorators import login_required urlpatterns = [...
url(r'^create/$', # NOQA login_required(PowerCycleCreateView.as_view()),
<|file_name|>recommendation.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 obtain a copy of the License at # # http://www.apache.org/l...
proto.MESSAGE, number=2, message="Recommendation.RecommendationImpact", )
<|file_name|>events_endpoint.py<|end_file_name|><|fim▁begin|>from twisted.web import server, resource from Tribler.Core.Modules.restapi.util import convert_db_channel_to_json, convert_search_torrent_to_json, \ fix_unicode_dict from Tribler.Core.simpledefs import (NTFY_CHANNELCAST, SIGNAL_CHANNEL, SIGNAL_ON_SEARCH_...
self.write_data({"type": "channel_discovered", "event": args[0]})
<|file_name|>QtVariant.py<|end_file_name|><|fim▁begin|>import sys import os default_variant = 'PySide' env_api = os.environ.get('QT_API', 'pyqt') if '--pyside' in sys.argv: variant = 'PySide' elif '--pyqt4' in sys.argv: variant = 'PyQt4' elif env_api == 'pyside': variant = 'PySide' elif env_api == 'pyqt':...
for cl in api2_classes: sip.setapi(cl, 2) from PyQt4 import QtGui, QtCore QtCore.Signal = QtCore.pyqtSignal
<|file_name|>plex_video_service.py<|end_file_name|><|fim▁begin|>from etvnet_service import EtvnetService from plex_config import PlexConfig<|fim▁hole|> class PlexVideoService(EtvnetService): def __init__(self): config_name = Core.storage.abs_path(Core.storage.join_path(Core.bundle_path, 'Contents', 'etvnet....
<|file_name|>umd.js<|end_file_name|><|fim▁begin|>(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define(factory) : (factory()); }(this, (function () { 'use strict';<|fim▁hole|> var foo = 42; assert.equal( foo, 42 ...
<|file_name|>main.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # # Copyright (C) 2011 Nigel Bree # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must re...
}
<|file_name|>model_control_one_enabled_RelativeDifference_ConstantTrend_NoCycle_LSTM.py<|end_file_name|><|fim▁begin|>import tests.model_control.test_ozone_custom_models_enabled as testmod<|fim▁hole|><|fim▁end|>
testmod.build_model( ['RelativeDifference'] , ['ConstantTrend'] , ['NoCycle'] , ['LSTM'] );
<|file_name|>RecommendationTemplateStatus.cpp<|end_file_name|><|fim▁begin|>/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/resiliencehub/model/RecommendationTemplateStatus.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core...
<|file_name|>bitcoin_pl.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Wankcoin</source> ...
</message> <message> <location line="+93"/>
<|file_name|>config.js<|end_file_name|><|fim▁begin|>const os = require("os"); const fs = require("fs"); const config = { } let libs; switch (os.platform()) { case "darwin": { libs = [ "out/Debug_x64/libpvpkcs11.dylib", "out/Debug/libpvpkcs11.dylib", "out/Release_x64/libpvpkcs11.dylib", ...
"out/Release/pvpkcs11.dll",
<|file_name|>x.py<|end_file_name|><|fim▁begin|># Copyright 2005 Joe Wreschnig, Michael Urman # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your opti...
self._cancel = Cancellable() call_async(self._fetch_image, self._cancel, self._finished, (url,)) self.connect("destroy", self._on_destroy)
<|file_name|>config_test.go<|end_file_name|><|fim▁begin|>package server import ( "bytes" "encoding/json" "io/ioutil" "net/http/httptest" "testing" "github.com/influxdata/influxdb/chronograf" "github.com/influxdata/influxdb/chronograf/mocks" ) func TestConfig(t *testing.T) { type fields struct { ConfigStore...
ConfigStore chronograf.ConfigStore } type wants struct { statusCode int
<|file_name|>GammuSender.py<|end_file_name|><|fim▁begin|>''' <|fim▁hole|>@author: Paul ''' from SQLEng import SQLEng class PduSender(object): ''' classdocs This class is designed for Gammu-smsd Inserting a record into MySQL Gammu-smsd will send the record Using command line will cause...
Created on Jan 18, 2010
<|file_name|>cli.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple command line interface to pyluxafor. """ from __future__ import division, print_function, absolute_import import argparse import sys import logging from pyluxafor import Devices from pyluxafor import Wave, Patter...
<|file_name|>settings.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Scrapy settings for aCloudGuru project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/se...
# Obey robots.txt rules ROBOTSTXT_OBEY = True
<|file_name|>InputLabel.d.ts<|end_file_name|><|fim▁begin|>import * as React from 'react'; import { SxProps } from '@material-ui/system'; import { InternalStandardProps as StandardProps } from '..'; import { FormLabelProps } from '../FormLabel'; import { Theme } from '../styles'; export interface InputLabelProps extend...
/** Pseudo-class applied to the root element if `disabled={true}`. */ disabled?: string; /** Pseudo-class applied to the root element if `error={true}`. */
<|file_name|>broadcast.hpp<|end_file_name|><|fim▁begin|>#ifndef __BD_SO_BROADCASTCENTER__ #define __BD_SO_BROADCASTCENTER__ #include <sys/socket.h> #include <arpa/inet.h> #include <string> #include <cstring> #include <strings.h> const int MAXDATASIZE = 256; namespace bd_so { class BroadcastCenter { private: bool i...
<|file_name|>main.cpp<|end_file_name|><|fim▁begin|>#include "../../headers.h" const int SIZE = 100000+500; struct _t{ int idx,l,r,h; friend bool operator < (const _t &a,const _t&b){ return a.h < b.h; } }que[SIZE]; #define lson(x) ((x)<<1) #define rson(x) (lson(x)|1) #define ls lson(t) #define rs r...
<|file_name|>hmm_model_test_classification_mid_real_hiro.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import sys import os import pandas as pd import numpy as np from hmmlearn.hmm import * from sklearn.externals import joblib import ipdb import time from math import ( log, exp ) from matplotlib import ...
for i in range(success_trail_num_train): if not os.path.isdir(success_path+'/'+path_index_name[i]):
<|file_name|>inputmethodhints.cpp<|end_file_name|><|fim▁begin|>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal<|fim▁hole|>** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Li...
** ** This file is part of the test suite of the Qt Toolkit. **
<|file_name|>operator.rs<|end_file_name|><|fim▁begin|>use super::graph::{Graph, IndexType}; use super::EdgeType; use crate::visit::IntoNodeReferences; /// \[Generic\] complement of the graph /// /// Computes the graph complement of the input Graphand stores it /// in the provided empty output Graph. /// /// The functi...
/// use petgraph::operator::complement;
<|file_name|>formant.py<|end_file_name|><|fim▁begin|>################################### ## SPADE formant analysis script ## ################################### ## Processes and extracts 'static' (single point) formant values, along with linguistic ## and acoustic information from corpora collected as part of the SPee...
## sanity-check the corpus name (i.e., that it directs to a YAML file)
<|file_name|>application.py<|end_file_name|><|fim▁begin|># Copyright © 2013, 2015, 2016, 2017, 2018, 2020, 2022 Tom Most <twm@freecog.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 Foundation, eithe...
source = data.get("source-file")
<|file_name|>FromXmlSignatureTimeStampConverter.java<|end_file_name|><|fim▁begin|>/* * XAdES4j - A Java library for generation and verification of XAdES signatures. * Copyright (C) 2010 Luis Goncalves. * * XAdES4j is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser Genera...
@Override