prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>import os from distutils.core import setup<|fim▁hole|>ROOT = os.path.dirname(os.path.realpath(__file__)) setup( name='wmsigner', version='0.1.1', url='https://github.com/egorsmkv/wmsigner', description='WebMoney Signer', long_description=open(os.pa...
<|file_name|>tracebackcompat.py<|end_file_name|><|fim▁begin|>import functools import sys import traceback<|fim▁hole|> class TracebackCompat(Stacked): """ A context manager that patches the stdlib traceback module Functions in the traceback module that exist as a method of this class are replaced with ...
from stacked import Stacked from .xtraceback import XTraceback
<|file_name|>app_lifetime_monitor_factory.cc<|end_file_name|><|fim▁begin|>// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "apps/app_lifetime_monitor_factory.h" #include "apps/app_lifetime_moni...
namespace apps { // static AppLifetimeMonitor* AppLifetimeMonitorFactory::GetForProfile(Profile* profile) {
<|file_name|>as_ref.rs<|end_file_name|><|fim▁begin|>#![feature(core)] extern crate core; #[cfg(test)] mod tests { use core::convert::AsRef; // pub trait FixedSizeArray<T> { // /// Converts the array to immutable slice // fn as_slice(&self) -> &[T]; // /// Converts the array to mutable ...
// #[inline]
<|file_name|>StreamingLogReaderPluginProviderService.java<|end_file_name|><|fim▁begin|>/*<|fim▁hole|> * 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/...
* Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com) *
<|file_name|>test_first_seen_event.py<|end_file_name|><|fim▁begin|>from sentry.testutils.cases import RuleTestCase from sentry.rules.conditions.first_seen_event import FirstSeenEventCondition class FirstSeenEventConditionTest(RuleTestCase): rule_cls = FirstSeenEventCondition def test_applies_correctly(self):...
<|file_name|>test_fujitsu_compatibility.py<|end_file_name|><|fim▁begin|># Copyright (c) 2015 FUJITSU LIMITED # # Licensed under the Apache License, Version 2.0 (the "License"); you may<|fim▁hole|># http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
# not use this file except in compliance with the License. You may obtain # a copy of the License at #
<|file_name|>postfix.py<|end_file_name|><|fim▁begin|>import sys from stack import Stack def parse_expression_into_parts(expression): """ Parse expression into list of parts :rtype : list :param expression: str # i.e. "2 * 3 + ( 2 - 3 )" """ raise NotImplementedError("complete me!") def evalu...
print "Evaluating %s == %s" % (expr, evaluate_postfix(parts)) else: print 'Usage: python postfix.py "<expr>" -- i.e. python postfix.py "9 1 3 + 2 * -"'
<|file_name|>linkage-visibility.rs<|end_file_name|><|fim▁begin|>// Copyright 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....
fn bar() { } #[allow(dead_code)]
<|file_name|>web-server.js<|end_file_name|><|fim▁begin|>#!/usr/bin/env node var util = require('util'), http = require('http'), fs = require('fs'), url = require('url'); var DEFAULT_PORT = 8000; function main(argv) { new HttpServer({ 'GET': createServlet(StaticServlet), 'HEAD': createServlet(St...
<|file_name|>_cash_discount_Info.hpp<|end_file_name|><|fim▁begin|>// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <_cash_discount_.hpp> START_ATF_NAMESPACE namespace Info { <|fim▁hole|> ...
using _cash_discount_ctor__cash_discount_2_ptr = void (WINAPIV*)(struct _cash_discount_*); using _cash_discount_ctor__cash_discount_2_clbk = void (WINAPIV*)(struct _cash_discount_*, _cash_discount_ctor__cash_discount_2_ptr); using _cash_discount_dtor__cash_discount_4_ptr = void (WINAPIV...
<|file_name|>optimized-images-test.js<|end_file_name|><|fim▁begin|>/** * @license Copyright 2017 Google Inc. 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...
finished: true, }, { _url: 'data: image/jpeg ; base64 ,SgVcAT32587935321...',
<|file_name|>actor.rs<|end_file_name|><|fim▁begin|>use {Coord, system}; use system::memory; use link::Link; use game::layer; pub const DEFAULT_ENEMY_ID: i16 = -1; pub const DEFAULT_FLAG: u16 = 0; pub const DEFAULT_PARAMS: u32 = 0; macro_rules! actors { ($($mod_name:ident { $($name:ident: $actor_name:ident)* })*) ...
pub fn actor_name(&self) -> &str { memory::read_str(self.name.as_ptr()) }
<|file_name|>approx_spectral.py<|end_file_name|><|fim▁begin|>"""Use stochastic Lanczos quadrature to approximate spectral function sums of any operator which has an efficient representation of action on a vector. """ import functools from math import sqrt, log2, exp, inf, nan import random import warnings import numpy...
@njit # pragma: no cover def nbsum(xs): tot = 0
<|file_name|>CMDIdCast.cpp<|end_file_name|><|fim▁begin|>//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2013 EMC Corp. // // @filename: // CMDIdCast.cpp // // @doc: // Implementation of mdids for cast functions //------------------------------------...
<|file_name|>LuaFrame.cpp<|end_file_name|><|fim▁begin|>// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/> // Copyright (C) 2010 Winch Gate Property Limited // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // pub...
CLuaFrame::CLuaFrame() { // TODO: add member initialization code here
<|file_name|>state.js<|end_file_name|><|fim▁begin|>/** * @ngdoc object * @name ui.router.state.$stateProvider * * @requires ui.router.router.$urlRouterProvider * @requires ui.router.util.$urlMatcherFactoryProvider * * @description * The new `$stateProvider` works similar to Angular's v1 router, but it focuses p...
// Register any queued children if (queue[name]) {
<|file_name|>geometry.rs<|end_file_name|><|fim▁begin|>use std::f64; use std::f64::NAN; use std::ops::{Add, Sub, Div, Mul}; // ===== GVector ===== #[derive(Debug, Copy, Clone)] pub struct GVector { pub x: f64, pub y: f64, pub z: f64 } impl GVector { #[inline] pub fn has_nans(&self) -> bool { ...
<|file_name|>test_artificial_128_None_LinearTrend_12__20.py<|end_file_name|><|fim▁begin|>import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art <|fim▁hole|><|fim▁end|>
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 12, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0);
<|file_name|>plugin.py<|end_file_name|><|fim▁begin|># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Big Switch Networks, Inc. # 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 # ...
""" return resp[0] in FAILURE_CODES
<|file_name|>InetAddressTest.java<|end_file_name|><|fim▁begin|>package demo.java.v2c03network.InetAddressTest; import java.net.*; /** * This program demonstrates the InetAddress class. Supply a host name as command line argument, or * run without command line arguments to see the address of the local host. * ...
System.out.println(a); } else {
<|file_name|>merklemaker.py<|end_file_name|><|fim▁begin|># Eloipool - Python Bitcoin pool server # Copyright (C) 2011-2012 Luke Dashjr <luke-jr+eloipool@utopios.org> # # 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 ...
# First, ensure we have the minimum clear, next, and regular (in that order) if self.clearMerkleRoots.qsize() < self.WorkQueueSizeClear[0]: return self.makeClear() if self.nextMerkleRoots.qsize() < self.WorkQueueSizeLongpoll[0]:
<|file_name|>defend_penalty.py<|end_file_name|><|fim▁begin|>import standard_play import play<|fim▁hole|>import tactics.line_up import tactics.defense import main class DefendPenalty(play.Play): def __init__(self): super().__init__(continuous=True) self.add_transition(behavior.Behavior.State.start...
import behavior import robocup
<|file_name|>discussionHooks.tsx<|end_file_name|><|fim▁begin|>/** * @copyright 2009-2020 Vanilla Forums Inc. * @license GPL-2.0-only */ import DiscussionActions, { IAnnounceDiscussionParams, IDeleteDiscussionReaction, IGetDiscussionByID, IMoveDiscussionParams, IPostDiscussionReaction, IPutDi...
<|file_name|>cli_util.py<|end_file_name|><|fim▁begin|>from __future__ import (absolute_import, division, print_function, unicode_literals) RJUST = 12 def format_fans(fans): return format_line(prefix='fans'.rjust(RJUST), values=fans) def format_rpms(rpms): return format_line(prefix='...
<|file_name|>maxmertkit.js<|end_file_name|><|fim▁begin|>(function() { var MaxmertkitEvent, MaxmertkitHelpers, MaxmertkitReactor, _eventCallbacks, _globalRotation, _reactorEvents, _version; _eventCallbacks = []; _reactorEvents = []; _globalRotation = { x: 0, y: 0, z: 0 }; _version = "0.0.1"; ...
if (this.options.selfish) {
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>use rayon::par_iter::*; use self::page::Page; use super::{ReportMemory, PAGE_SIZE, PAGE_WIDTH}; pub use self::page::{Cell, CellType}; mod cell; mod page; mod zorder; pub struct Grid { pages: Vec<Page>, dimension: u32, pages_per_side: u32, } impl ReportM...
<|file_name|>test_views.py<|end_file_name|><|fim▁begin|>import os import shutil import unittest from flask import json class NewsView(unittest.TestCase): def setUp(self): import web reload(web) self.app = web.app.test_client() def tearDown(self): try: shutil.rmtree(...
response = self.app.get('/', follow_redirects=True) assert 200 == response.status_code assert 'Loogi.ca' in response.data assert 'input' in response.data
<|file_name|>stock.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute ...
'parent_left': fields.integer('Left Parent', select=1),
<|file_name|>channel.py<|end_file_name|><|fim▁begin|>from typing import Iterable, Mapping, Optional from lib import data from ..channel import pyramid from ..channel import wall def filterMessage() -> Iterable[data.ChatCommand]: return [] def commands() -> Mapping[str, Optional[data.ChatCommand]]: if not ...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ *************************************************************************** __init__.py --------------------- Date : January 2016 Copyright : (C) 2016 by Victor Olaya Email : ...
<|file_name|>lint_test_expectations_unittest.py<|end_file_name|><|fim▁begin|># Copyright (C) 2012 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source co...
<|file_name|>models.py<|end_file_name|><|fim▁begin|>import datetime from django.db import models from django.core import validators from django.utils.translation import ugettext_lazy as _ from nmadb_contacts.models import Municipality, Human class School(models.Model): """ Information about school. School ...
(23, _(u'helpmate')), (24, _(u'regular helpmate')),
<|file_name|>mode-logiql.js<|end_file_name|><|fim▁begin|>'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym...
var startLevel = line.search(re);
<|file_name|>IntermediateStddevPopAggregateDescriptor.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 lic...
@Override public IAggregateEvaluatorFactory createAggregateEvaluatorFactory(final IScalarEvaluatorFactory[] args) { return new IAggregateEvaluatorFactory() {
<|file_name|>non-interger-atomic.rs<|end_file_name|><|fim▁begin|>// Copyright 2016 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache...
} pub unsafe fn test_Quux_xchg(p: &mut Quux, v: Quux) {
<|file_name|>es6ClassTest8.js<|end_file_name|><|fim▁begin|>//// [es6ClassTest8.ts] function f1(x:any) {return x;} class C { constructor() {<|fim▁hole|> var b = f1(f1(bar)); } } class Vector { static norm(v:Vector):Vector {return null;} static minus(v1:Vector, v2:Vector):Vector {return null;...
var bar:any = (function() { return bar; // 'bar' should be resolvable });
<|file_name|>ScrollMsg.cpp<|end_file_name|><|fim▁begin|>#include "ScrollMsg.h" #include "QVBoxLayout" #include "QHBoxLayout" #include "UI/Config/Config.h" #include <QTextLayout> #include <QTextBlock> #include "Common/ScrollBar.h" CScrollMsg::CScrollMsg(AppListInterface * pList, QWidget *parent) : AppBase(pList, paren...
{ //delLayout(m_pMainLayout);
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>"""To install: sudo python setup.py install """ import os from setuptools import setup, find_packages def read(fname): """Utility function to read the README file.""" return open(os.path.join(os.path.dirname(__file__), fname)).read() VERSION = __import__('...
'Programming Language :: Python', 'Topic :: Software Development :: Quality Assurance' ]
<|file_name|>bitcoin_uk.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About GoobyCoin</source> <translation>Про GoobyCoin</...
<|file_name|>bitcoin_de.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Murraycoin</source> <translation>Über Murraycoi...
<source>Connect only to the specified node(s)</source> <translation>Nur mit dem/den angegebenen Knoten verbinden</translation> </message> <message>
<|file_name|>tactic_constants.py<|end_file_name|><|fim▁begin|># Under MIT license, see LICENSE.txt from enum import Enum <|fim▁hole|>class Flags(Enum): INIT = 0 WIP = 1 FAILURE = 2 SUCCESS = 3 PASS_TO_PLAYER = 4 def is_complete(p_status_flag): return p_status_flag == Flags.FAILURE or p_status...
""" Constantes concernant les tactiques. """
<|file_name|>file.controller.test.js<|end_file_name|><|fim▁begin|>describe('Controller: FileController', function() { var $scope, File; beforeEach(module('Bastion.files', 'Bastion.test-mocks')); <|fim▁hole|> File = MockResource.$new(); $scope.$stateParams = { fileId: 1 ...
beforeEach(inject(function($controller, $rootScope, MockResource) { $scope = $rootScope.$new();
<|file_name|>lub.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...
fn lub<'a>(&'a self) -> Lub<'a, 'tcx> { Lub(self.fields.clone()) }
<|file_name|>AccessControlAction.java<|end_file_name|><|fim▁begin|>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You...
// the desired permissions if (datasetVersion instanceof FileStatusAware) { for (FileStatus fileStatus : ((FileStatusAware)datasetVersion).getFileStatuses()) {
<|file_name|>validate.py<|end_file_name|><|fim▁begin|>import json import os import types from . import constants from .constants import PACKAGE_ANY from .errorbundler import ErrorBundle # This is necessary. Do not remove it unless you know exactly what # you are doing. import loader # noqa import submain def valida...
apps = json.load(approved_apps) elif isinstance(approved_applications, dict): # If the lists of approved applications are already in a dict, just use # that instead of trying to pull from a file.
<|file_name|>LocalHostSeek.java<|end_file_name|><|fim▁begin|>package com.myselia.stem.communication.seekers; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import com.myselia.stem.communication.CommunicationDock; public class LocalHostSeek imp...
private String seekerName = "Local Host Seeker";
<|file_name|>removeCustomField.js<|end_file_name|><|fim▁begin|>Meteor.methods({ 'livechat:removeCustomField'(_id) { if (!Meteor.userId() || !RocketChat.authz.hasPermission(Meteor.userId(), 'view-livechat-manager')) { throw new Meteor.Error('error-not-allowed', 'Not allowed', { method: 'livechat:removeCustomField'...
<|file_name|>make-script.py<|end_file_name|><|fim▁begin|>import os import subprocess from pathlib import Path import pyinstaller_versionfile import tomli packaging_path = Path(__file__).resolve().parent def get_version() -> str: project_dir = Path(__file__).resolve().parent.parent f = project_dir / "pyproje...
<|file_name|>Query.js<|end_file_name|><|fim▁begin|>Ext.define('Planche.lib.Query', { constructor : function(query){ Ext.apply(this, query); }, <|fim▁hole|> if(this.start < 0) this.start = 0; return this.getSQL(); }, getNextRecordSetSQL : function(){ this.start += this.end; return this...
getPrevRecordSetSQL : function(){ this.start -= this.end;
<|file_name|>tradingcalendar_bmf.py<|end_file_name|><|fim▁begin|># # Copyright 2014 Quantopian, 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/LIC...
<|file_name|>signed_message.js<|end_file_name|><|fim▁begin|>/*jslint node: true */ "use strict"; var async = require('async'); var db = require('./db.js'); var constants = require('./constants.js'); var conf = require('./conf.js'); var objectHash = require('./object_hash.js'); var ecdsaSig = require('./signature.js'); ...
return handleResult("definition expected but not provided"); var network = require('./network.js'); return network.requestHistoryFor([], [objAuthor.address], function () {
<|file_name|>host.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ traceview.hosts This module contains the objects associated with Hosts API resources. http://dev.appneta.com/docs/api-v2/hosts.html """ from .resource import Resource class Host(Resource): def get(self, app=None): if app:<...
<|file_name|>asfvideo.hpp<|end_file_name|><|fim▁begin|>// ***************************************************************** -*- C++ -*- /* * Copyright (C) 2004-2015 Andreas Huggel <ahuggel@gmx.net> * * This program is part of the Exiv2 distribution. * * This program is free software; you can redistribute it and/or...
the respective XMP container. @param size Size of the data block used to store Tag Data. */ void headerExtension(uint64_t size);
<|file_name|>util.js<|end_file_name|><|fim▁begin|>"use strict"; var uuid = require('node-uuid'); var crypto = require('crypto'); var NodeGeocoder = require('node-geocoder'); var secret = "I@Love@NNNode.JS"; var options = { provider: 'google',<|fim▁hole|>}; var Util = function () { return { GenerateA...
httpAdapter: 'https', apiKey: 'AIzaSyBF9xb6TLxfTEji1O4UqL7rwZc16fQRctA', formatter: null
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from . import adaptVor_driver from .adaptVor_driver import AdaptiveVoronoiDriver
<|file_name|>main.cpp<|end_file_name|><|fim▁begin|>/* * main.cpp * * Created on: 30 Xan, 2015 * Author: marcos */ #include "common.h" extern "C" { #include "perm.h" } /** * \brief Print application help */ void printHelp() { cout << "diffExprpermutation: Find differentially expressed genes from a set ...
if (condition2.empty())
<|file_name|>jarvis.py<|end_file_name|><|fim▁begin|>import nltk import filemanager import multiprocessing import os import ConfigParser from assistant import Assistant, Messenger from nltk.corpus import wordnet resources_dir = 'resources\\' login_creds = ConfigParser.SafeConfigParser() if os.path.isfile(resources_d...
if check_for_word('open', verbs): jarvis.say(filemanager.try_open_executable(words, tagged)) elif check_for_word('respond', verbs): if "facebook" in proper_nouns:
<|file_name|>vidbull.py<|end_file_name|><|fim▁begin|>''' Vidbull urlresolver plugin Copyright (C) 2013 Vinnydude 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 3 of the License, or (a...
return r.groups() else:
<|file_name|>proc.py<|end_file_name|><|fim▁begin|>"""A module to deal with processes.""" import datetime def uptime(asstr = False): """Get system uptime>""" raw = '' with open('/proc/uptime','r') as ut: raw = ut.read()[:-1] uts = list(map(lambda x: int(float(x)), raw.split(' ')))<|fim▁hole|><|fim▁end|>
if asstr: uts = str(datetime.timedelta(seconds = uts[0])) return uts
<|file_name|>functions.py<|end_file_name|><|fim▁begin|>import guess_language import threading from job_queue import JobQueue from multiprocessing import cpu_count from app_config import * <|fim▁hole|>from events.models import Event, Feature, EventFeature, Weight from tree_tagger import TreeTagger from website_lin...
from html_parser_by_tag import HTMLParserByTag from event_analysis import EventAnalysis
<|file_name|>models.py<|end_file_name|><|fim▁begin|># This file is part of OpenHatch. # Copyright (C) 2010 John Stumpo # # 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...
class IrcMissionSession(models.Model): person = models.ForeignKey('profile.Person', null=True) nick = models.CharField(max_length=255, unique=True)
<|file_name|>warden_http.go<|end_file_name|><|fim▁begin|>package warden import ( "net/http" "net/url" "context" "github.com/ory/fosite" "github.com/ory/hydra/firewall" "github.com/ory/hydra/pkg" "github.com/pkg/errors" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials"<|fim▁hole|> type HTTPWarden...
)
<|file_name|>forms.py<|end_file_name|><|fim▁begin|>""" Forms and validation code for user registration. Note that all of these forms assume Django's bundle default ``User`` model; since it's not possible for a form to anticipate in advance the needs of custom user models, you will need to write your own forms if you'r...
bad_domains = ['aim.com', 'aol.com', 'email.com', 'gmail.com', 'googlemail.com', 'hotmail.com', 'hushmail.com', 'msn.com', 'mail.ru', 'mailinator.com', 'live.com', 'yahoo.com']
<|file_name|>rollovers.js<|end_file_name|><|fim▁begin|>/** Copyright 2011-2013 Here's A Hand Limited Licensed under the Apache License, Version 2.0 (the "License");<|fim▁hole|> Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT ...
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|>HomeIcon.tsx<|end_file_name|><|fim▁begin|>/* * SonarQube * Copyright (C) 2009-2022 SonarSource SA * mailto:info AT sonarsource DOT com * * 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 Sof...
<|file_name|>hybrid_a_star_visualizer.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# See the License for the specific language governing permissions and # limitations under the License.
<|file_name|>tests.py<|end_file_name|><|fim▁begin|>from __future__ import unicode_literals from django.contrib.auth.models import User from django.core import management from django.test import TestCase from django.utils.six import StringIO from .models import ( Car, CarDriver, Driver, Group, Membership, Person, ...
<|file_name|>modal-trigger.js<|end_file_name|><|fim▁begin|>import ModalTrigger from 'ember-modal/components/modal-trigger';<|fim▁hole|> export default ModalTrigger;<|fim▁end|>
<|file_name|>jquery.event.move.js<|end_file_name|><|fim▁begin|>// jquery.event.move // // 1.3.1 // // Stephen Band // // Triggers 'movestart', 'move' and 'moveend' events after // mousemoves following a mousedown cross a distance threshold, // similar to the native 'dragstart', 'drag' and 'dragend' events. // Move even...
<|file_name|>LayersLayergroupSimpleController.js<|end_file_name|><|fim▁begin|>app.controller("LayersLayergroupSimpleController", [ "$scope", function($scope) { angular.extend($scope, { center: { lat: 39, lng: -100, zoom: 3 ...
<|file_name|>incremental_get.rs<|end_file_name|><|fim▁begin|>use test::{black_box, Bencher}; use engine_rocks::RocksSnapshot; use kvproto::kvrpcpb::{Context, IsolationLevel}; use std::sync::Arc; use test_storage::SyncTestStorageBuilder; use tidb_query_datatype::codec::table; use tikv::storage::{Engine, SnapshotStore, ...
<|file_name|>sample_recognize_custom_forms_async.py<|end_file_name|><|fim▁begin|># coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license in...
endpoint=endpoint, credential=AzureKeyCredential(key) ) async with form_training_client: model = await (await form_training_client.begin_training(
<|file_name|>follower.go<|end_file_name|><|fim▁begin|>// Copyright 2015 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package user import ( api "code.gitea.io/sdk/gitea" "code.gitea.io/gitea/models" "code.gitea.io/git...
listUserFollowing(ctx, ctx.User)
<|file_name|>test_sas.py<|end_file_name|><|fim▁begin|>import pandas as pd import pandas.util.testing as tm from pandas import compat from pandas.io.sas import XportReader, read_sas import numpy as np import os # CSV versions of test XPT files were obtained using the R foreign library # Numbers in a SAS xport file are...
data = read_sas(self.file01) tm.assert_frame_equal(data, data_csv)
<|file_name|>utils.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # coding: utf-8 import logging import config<|fim▁hole|> def get_common_logger(name='common', logfile=None): ''' args: name (str): logger name logfile (str): log file, use stream handler (stdout) as default. return: l...
<|file_name|>requirement_vis.tsx<|end_file_name|><|fim▁begin|>/* * Wazuh app - React component building the welcome screen of an agent. * version, OS, registration date, last keep alive. * * Copyright (C) 2015-2021 Wazuh, Inc. *<|fim▁hole|> * * Find more information about this on the LICENSE file. */ import Rea...
* 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 option) any later version.
<|file_name|>closeevent.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 dom::bindings::codegen::Bindings::EventBinding::EventM...
init: &CloseEventBinding::CloseEventInit) -> Fallible<Root<CloseEvent>> { let bubbles = if init.parent.bubbles { EventBubbles::Bubbles } else { EventBubbles::DoesNotBubble };
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>// Copyright 2015 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...
{
<|file_name|>media.popup.js<|end_file_name|><|fim▁begin|>(function ($) { "use strict"; /* DEFINE VARIABLES */ var fu = $("#media-upload"), // FOR JQUERY FILE UPLOAD fc = $("#file-container"), // FILE CONTAINER DISPLAY md = $("#media-detail"), // FOR DETA...
}); });
<|file_name|>attr.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 app_units::Au; use style::attr::{parse_length, AttrValue, L...
check("0", LengthOrPercentageOrAuto::Length(Au::from_px(0)));
<|file_name|>permissions.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Extensible permission system for pybbm """ from __future__ import unicode_literals from django.db.models import Q from pybb import defaults, util class DefaultPermissionHandler(object): """ Default Permission handler. If y...
return False if topic.closed and (not user.is_staff):
<|file_name|>cap_msmf.hpp<|end_file_name|><|fim▁begin|>#ifdef HAVE_WINRT #define ICustomStreamSink StreamSink #ifndef __cplusplus_winrt #define __is_winrt_array(type) (type == ABI::Windows::Foundation::PropertyType::PropertyType_UInt8Array || type == ABI::Windows::Foundation::PropertyType::PropertyType_Int16Array ||\ ...
<|file_name|>submod.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
thing = "hello from formerly_testcoll_pkg.submod.thing"
<|file_name|>domrect.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 dom::bindings::codegen::Bindings::DOMRectBinding; use dom...
fn Bottom(self) -> Finite<f32> { Finite::wrap(self.bottom) }
<|file_name|>makuappu-nav.d.ts<|end_file_name|><|fim▁begin|>/// <reference path="../typing/makuappu-core.d.ts" /> declare namespace makuappu { class NavLayout { itemsLayout: "float" | "block" | "cols" | "cells" | "rows"; float: "left" | "right"; gutter: string; gutterVertical: string...
}; "xl": {
<|file_name|>rom_fp256bn_64.rs<|end_file_name|><|fim▁begin|>/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache ...
0xFFFFFFFF, ], [0x82F5C030B0A802, 0x68, 0x0, 0x0, 0x0], ],
<|file_name|>calc_length.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on 27/04/2015 @author: C&C - HardSoft """ from util.HOFs import * from util.CobolPatterns import * from util.homogenize import Homogenize def calc_length(copy): if isinstance(copy, list): book = copy el...
return {'retorno': True, 'msg': None, 'lrecl': lrecl}
<|file_name|>style.py<|end_file_name|><|fim▁begin|>import numpy as np import pandas as pd from bokeh.plotting import * # Define some categories categories = [ 'ousia', 'poson', 'poion', 'pros ti', 'pou', 'pote', 'keisthai', 'echein', 'poiein', 'paschein', ] # Create data N = 10 data = { cat : np.random.randin...
# with its reverse. xs = [np.hstack((categories[::-1], categories))] * len(ys)
<|file_name|>_proactive_detection_configurations_operations.py<|end_file_name|><|fim▁begin|># coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for li...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) from watermarker...
packages=find_packages(exclude=['example']), include_package_data=True,
<|file_name|>iterationWJSProviderOnlyListTest.js<|end_file_name|><|fim▁begin|><|fim▁hole|>/* * Copyright (C) 2013 salesforce.com, 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 * ...
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>//! xz-decom //! //! XZ Decompression using xz-embedded //! //! This crate provides XZ decompression using the xz-embedded library. //! This means that compression and perhaps some advanced features are not supported. //! extern crate xz_embedded_sys as raw; use std::...
<|file_name|>core.py<|end_file_name|><|fim▁begin|># -*- coding: utf8 -*- # This file is part of Mnemosyne. # # Copyright (C) 2013 Daniel Lombraña González # # Mnemosyne 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 Softwa...
Package for creating the Flask application. This exports: - create_app a function that creates the Flask application
<|file_name|>RS_ChangeWindowTextColorSafely.js<|end_file_name|><|fim▁begin|>//================================================================ // RS_ChangeWindowTextColorSafely.js // --------------------------------------------------------------- // The MIT License // Copyright (c) 2017 biud436 // ---------------------...
* @param windowList * @text Window List * @type note * @desc Refer to a help documentation
<|file_name|>webpack.config.js<|end_file_name|><|fim▁begin|>var webpack = require('webpack'); var path = require('path'); const ExtractTextPlugin = require("extract-text-webpack-plugin"); const extractLess = new ExtractTextPlugin({ filename: "[name].[contenthash].css", disable: process.env.NODE_ENV === "develo...
} ] }, output: {
<|file_name|>read_manifest.rs<|end_file_name|><|fim▁begin|>use std::env; use cargo::core::{Package, Source}; use cargo::util::{CliResult, Config}; use cargo::util::important_paths::{find_root_manifest_for_wd}; use cargo::sources::{PathSource}; #[derive(RustcDecodable)] struct Options { flag_manifest_path: Option<...
"; pub fn execute(options: Options, config: &Config) -> CliResult<Option<Package>> { debug!("executing; cmd=cargo-read-manifest; args={:?}",
<|file_name|>SilverpeasWebUtil.java<|end_file_name|><|fim▁begin|>/** * Copyright (C) 2000 - 2012 Silverpeas<|fim▁hole|> * * 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 versio...
<|file_name|>query.py<|end_file_name|><|fim▁begin|># Copyright 2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
resource_class.action_registry.register('notify', Notify) if 'logic-app' not in resource_class.action_registry: resource_class.action_registry.register('logic-app', LogicAppAction)
<|file_name|>CommentLemmaContainer.js<|end_file_name|><|fim▁begin|>import React from 'react'; import { compose } from 'react-apollo'; import autoBind from 'react-autobind'; // graphql import textNodesQuery from '../../../textNodes/graphql/queries/textNodesQuery'; // components import CommentLemma from '../../componen...
} return ( <CommentLemma