prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>Vector.js<|end_file_name|><|fim▁begin|>/** * Vector */ (function() { var global = this, nspace = global.Util, Exception = global.Exception, math = global.mathjs(); /** * * @type Vector * @param {Array} basis The basis vectors, ordered correctly, orthonormal and complete...
<|file_name|>cordova_plugins.js<|end_file_name|><|fim▁begin|>cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "id": "cordova-plugin-console.console", "file": "plugins/cordova-plugin-console/www/console-via-logger.js", "pluginId": "cordova-plugin...
},
<|file_name|>dictionary.rs<|end_file_name|><|fim▁begin|>// Copyright 2013 The Servo Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // ...
<|file_name|>test.js<|end_file_name|><|fim▁begin|>var chai = require("chai") var should = chai.should(); chai.use(require("chai-http")); var request = chai.request(require("./server")) var db = require("mongojs")("test") describe("CRUD Handler", () => { before(done => { done() }) beforeEach(done ...
}) it("should save a document", (done) => { var data = {
<|file_name|>windows.rs<|end_file_name|><|fim▁begin|>use std::io; use winapi::um::winbase; const MAX_LEN: usize = 15; pub fn hostname() -> io::Result<String> { let mut buf = [0; MAX_LEN + 1]; let mut len = buf.len() as u32; unsafe { if winbase::GetComputerNameA(buf.as_mut_ptr(), &mut len) == 0 { ...
}
<|file_name|>test_integration.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import, division, print_function import platform import sys from threading import Thread, Lock import json import warnings import time import stripe import pytest if platform.python_implementation() == "PyPy": pytest.sk...
<|file_name|>flake8.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 from python_utility.command_process import CommandProcess def main(): process = CommandProcess( arguments=[ 'flake8', '--exclude', '.git,.idea,.tox', '--verbose',<|fim▁hole|> ], ) ...
'--max-complexity', '5'
<|file_name|>constants.py<|end_file_name|><|fim▁begin|># Copyright (C) 2014 - The MITRE Corporation # For license information, see the LICENSE.txt file #: Namespace map of namespaces libtaxii knows about NS_MAP = { 'taxii': 'http://taxii.mitre.org/messages/taxii_xml_binding-1', 'taxii_11': 'http://taxii.mitre....
SD_SUPPORTED_QUERY)
<|file_name|>JMSContextIntegrationTest.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...
context.close(); testPeer.waitForAllHandlersToComplete(1000);
<|file_name|>input-selection.test.ts<|end_file_name|><|fim▁begin|>import { get as getCurrentSelection } from "../../../src/lib/input-selection"; describe("getCurrentSelection", function () { describe("element type", function () { it.each(["input", "textarea"])( "returns selection range for %s", (elem...
); }); });
<|file_name|>manage.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import os import sys if __name__ == "__main__":<|fim▁hole|> from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)<|fim▁end|>
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "annotator.settings")
<|file_name|>bitcoin_pt_BR.ts<|end_file_name|><|fim▁begin|><<<<<<< HEAD <?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.0"> <<<<<<< HEAD ======= ======= <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="pt_BR"> >>>>>>> walletpassphrase, dump/importprivkey, some GUI fixe...
<source>Credit</source> <translation>Crédito</translation> </message> <message numerus="yes">
<|file_name|>setup.py<|end_file_name|><|fim▁begin|># # Copyright (c) 2014 Juniper Networks, Inc. # import setuptools def requirements(filename): with open(filename) as f: lines = f.read().splitlines() return lines setuptools.setup( name='contrail-vrouter-api', version='1.0', packages=set...
# metadata author="OpenContrail", author_email="dev@lists.opencontrail.org",
<|file_name|>hygiene_example_codegen.rs<|end_file_name|><|fim▁begin|>// force-host // no-prefer-dynamic #![feature(proc_macro_quote)] #![crate_type = "proc-macro"] extern crate proc_macro as proc_macro_renamed; // This does not break `quote!` use proc_macro_renamed::{TokenStream, quote}; #[proc_macro] pub fn hello(...
<|file_name|>fractal_plant.rs<|end_file_name|><|fim▁begin|>/// https://en.wikipedia.org/wiki/L-system#Example_7:_Fractal_plant extern crate cgmath; #[macro_use] extern crate glium; extern crate glutin; extern crate lsystems; extern crate rand; mod support; use support::prelude::*; use lsystems::alphabet; use lsystem...
scale : Vector::new(s, s),
<|file_name|>connection_pool.js<|end_file_name|><|fim▁begin|>var utils = require('./connection_utils'), inherits = require('util').inherits, net = require('net'), EventEmitter = require('events').EventEmitter, inherits = require('util').inherits, MongoReply = require("../responses/mongo_reply").MongoReply, ...
}); var numberOfErrors = 0
<|file_name|>sequenceequal.js<|end_file_name|><|fim▁begin|>/* */ "format cjs"; /** * Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer. * * @example * var res = res = source.sequenceEqual([1,2,3]); * var res = res = source.sequenceEqual(...
<|file_name|>e-tag-interceptor.ts<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2015-2018 Red Hat, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://ww...
<|file_name|>TypePixmap.cpp<|end_file_name|><|fim▁begin|>/*************************************************************************** * Copyright (C) 2006 by ludo * * ludo42fr@free.fr * * * * This program is free software; you can redistr...
* *
<|file_name|>pkirequestcommand.cpp<|end_file_name|><|fim▁begin|>/****************************************************************************** * Icinga 2 * * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org) * * ...
<|file_name|>get_agetables.py<|end_file_name|><|fim▁begin|>import os, os.path import pexpect import subprocess from astropy.io import fits import numpy as np from optparse import OptionParser import sys import tempfile from ftplib import FTP import shutil _ERASESTR= " ...
if __name__ == '__main__':
<|file_name|>writer.go<|end_file_name|><|fim▁begin|>package eventstreamapi import ( "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/eventstream" ) // Marshaler provides a marshaling interface for event types to event stream // messages. type Marshaler interface { MarshalEve...
) *EventWriter {
<|file_name|>index.d.ts<|end_file_name|><|fim▁begin|>// Type definitions for html-pdf v2.2.0 // Project: https://github.com/marcbachmann/node-html-pdf // Definitions by: Seth Westphal <https://github.com/westy92> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> declare...
<|file_name|>test_security.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import morepath from morepath.request import Response from morepath.authentication import Identity, NO_IDENTITY from .fixtures import identity_policy import base64 import json from webtest import TestApp as Client try: from cookielib...
<|file_name|>test.py<|end_file_name|><|fim▁begin|>import time import midipy as midi midi.open(128, 0, "midipy test", 0) <|fim▁hole|> time.sleep(t/2) midi.note_off(note,127) midi.close()<|fim▁end|>
for (note, t) in [(48,0.5),(48,0.5),(50,1.0),(48,1.0),(53,1.0),(52,1.0), (48,0.5),(48,0.5),(50,1.0),(48,1.0),(55,1.0),(53,1.0)]: midi.note_on(note,127)
<|file_name|>dvbt_reference_signals_impl.cc<|end_file_name|><|fim▁begin|>/* -*- c++ -*- */ /* * Copyright 2015,2016 Free Software Foundation, Inc. * * This 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...
const int dvbt_pilot_gen::d_tps_sync_odd[d_tps_sync_size] = { 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1
<|file_name|>shared.py<|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 Li...
self._setDefault(outputCol=self.uid + '__output') def getOutputCol(self):
<|file_name|>gen-use-table.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # flake8: noqa<|fim▁hole|> import io import sys if len (sys.argv) != 5: print ("""usage: ./gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt UnicodeData.txt Blocks.txt Input file, as of Unicode 12: * https://unicod...
<|file_name|>views.py<|end_file_name|><|fim▁begin|>from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse_lazy from django.utils.decorators import method_decorator from django.views.generic import (DetailView, ListView) from django.views....
return Credentials.objects.filter(owner=self.request.user).order_by('-created')
<|file_name|>replicator_smm.cpp<|end_file_name|><|fim▁begin|>// // Copyright (C) 2010-2014 Codership Oy <info@codership.com> // #include "galera_common.hpp" #include "replicator_smm.hpp" #include "galera_exception.hpp" #include "uuid.hpp" extern "C" { #include "galera_info.h" } #include <sstream> #include <iostream>...
<|file_name|>datatypes.py<|end_file_name|><|fim▁begin|># vim:ts=4:sw=4:sts=4:et # -*- coding: utf-8 -*- """Additional auxiliary data types""" from itertools import islice __license__ = """\ Copyright (C) 2006-2012 Tamás Nepusz <ntamas@gmail.com> Pázmány Péter sétány 1/a, 1117 Budapest, Hungary This program is free ...
- C{003} -- the empty graph
<|file_name|>stdlib_2.py<|end_file_name|><|fim▁begin|># output formatting # reprlib provides a version of repr() import reprlib print(reprlib.repr(set('supercalifragilisticexpialidocious'))) # pprint - more sophisticated control over printing objects in a way readable by the interpreter import pprint t = [[[['black','...
<|file_name|>transaction.rs<|end_file_name|><|fim▁begin|>//! A trivial global lock transaction system. //! //! At the moment, this is really just a global static mutex, that needs to be //! locked, to ensure the atomicity of a transaction. use crate::fnbox::FnBox; use lazy_static::lazy_static; use std::cell::RefCell; ...
v += 4;
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python2.6 from BaseHTTPServer import HTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler import cgi import SocketServer import ssl import re import setproctitle import others.dict2xml as dict2xml import sober.config import sober.settin...
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This software may be used and distributed according to the terms of the * GNU General Public License version 2. */ #![deny(warnings)] use anyhow::{anyhow, Error, Result}; use cloned::cloned; use context::...
if let Some(to_paths) = paths.remove(&from_path) { for to_path in to_paths { sources.push(( to_path.clone(),
<|file_name|>reduced_vertices.py<|end_file_name|><|fim▁begin|># Copyright (C) 2015-2022 by the RBniCS authors # # This file is part of RBniCS. # # SPDX-License-Identifier: LGPL-3.0-or-later from rbnics.utils.decorators import ABCMeta, AbstractBackend, abstractmethod @AbstractBackend class ReducedVertices(object, met...
def append(self, vertex_and_component):
<|file_name|>build.rs<|end_file_name|><|fim▁begin|>// Copyright © 2015, Peter Atashian // Licensed under the MIT License <LICENSE.md> fn main() {<|fim▁hole|>}<|fim▁end|>
println!("cargo:rustc-flags=-l msctfmonitor");
<|file_name|>abstract.router.ts<|end_file_name|><|fim▁begin|>import * as logger from 'winston'; import { Database } from '../database'; import { NotFoundError, ValidationError } from '../errors'; import { IServer } from '../types/core'; import { MongoError } from 'mongodb'; export const INTERNAL_ERROR = 'INTERNAL_ERR...
}
<|file_name|>nesting.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>#![allow(dead_code)] fn foo<T>(t: T) -> impl Into<[T; { const FOO: usize = 1; FOO }]> { [t] } fn bar() -> impl Into<[u8; { const FOO: usize = 1; FOO }]> { [99] } fn main() { println!("{:?}", foo(42).into()); println!("{:?}", bar().into(...
// run-pass
<|file_name|>Customer.js<|end_file_name|><|fim▁begin|>/* eslint no-console: [0] */ 'use strict' const Email = require('trailpack-proxy-email').Email module.exports = class Customer extends Email { /** * * @param customer * @param data * @param options * @returns {Promise.<{type: string, subject: stri...
<|file_name|>RoleDomain.java<|end_file_name|><|fim▁begin|>/** * www.bplow.com */ package com.bplow.netconn.systemmng.domain; /** * @desc 角色 * @author wangxiaolei * @date 2016年5月8日 下午4:30:39 */ public class RoleDomain { private String roleId; private String userId; private String roleName; pr...
} public void setUserId(String userId) {
<|file_name|>CredentialSaslServerFactory.java<|end_file_name|><|fim▁begin|>/* * JBoss, Home of Professional Open Source. * Copyright 2015 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 e...
public SaslServer createSaslServer(final String mechanism, final String protocol, final String serverName, final Map<String, ?> props, final CallbackHandler cbh) throws SaslException { return delegate.createSaslServer(mechanism, protocol, serverName, props, callbacks -> { ArrayList<Callback> li...
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>"""sandbox URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatte...
url(r'^admin/', admin.site.urls),
<|file_name|>lexical-scope-in-match.rs<|end_file_name|><|fim▁begin|>// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://ww...
// gdb-command:print shadowed // gdb-check:$1 = 231 // gdb-command:print not_shadowed
<|file_name|>WalletHistoryJSONTest.java<|end_file_name|><|fim▁begin|>package com.xeiam.xchange.anx.v2.account.polling; import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import org.junit.Assert; import org.junit.Test; import com.fasterxml.jackson.databind.DeserializationFeature; imp...
// Assert.assertEquals(new BigDecimal(0),
<|file_name|>youtube-bpm.js<|end_file_name|><|fim▁begin|>// ==UserScript== // @name Youtube BPM Meter // @version 1.3 // @updateURL https://raw.githubusercontent.com/Greeniac916/YoutubeBPM/master/youtube-bpm.js // @description Plugin adding beat counter to Youtube // @author Greeniac916 // @match...
<|file_name|>bag.py<|end_file_name|><|fim▁begin|>import bagit from .loggers import create_logger logger_bagit = create_logger('bag') def create_bag(dir_bag): """ Create a Bag out of given files. :param str dir_bag: Directory that contains csv, jsonld, and changelog files. :return obj: Bag """ ...
bag = bagit.Bag(dir_bag) logger_bagit.info("opened bag") return bag except Exception as e:
<|file_name|>cdn_assets.py<|end_file_name|><|fim▁begin|>from django import template from django.utils.safestring import mark_safe from django.template.base import Node register = template.Library() from tag_parser import template_tag from tag_parser.basetags import BaseNode @template_tag(register, 'asset') class JsC...
<script src="//cdn.bootcss.com/jquery/3.0.0-beta1/jquery.min.js"></script>
<|file_name|>json.py<|end_file_name|><|fim▁begin|>import datetime import re import sys from collections import deque from decimal import Decimal from enum import Enum from ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface, IPv6Network from pathlib import Path from types import Generat...
IPv6Address: str, IPv6Interface: str, IPv6Network: str, Path: str,
<|file_name|>test_iapws.py<|end_file_name|><|fim▁begin|><|fim▁hole|># -*- coding: utf-8 -*- """ Created on Tue Aug 18 09:29:56 2015 @author: monteiro """ from thermopy.iapws import Water from thermopy.units import Pressure, Temperature def test_iapws(): """ Tests are given inside the IAPWS document. See refe...
<|file_name|>codegenarmarch.cpp<|end_file_name|><|fim▁begin|>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
{
<|file_name|>Gazetteer_pb2.py<|end_file_name|><|fim▁begin|># Generated by the protocol buffer compiler. DO NOT EDIT! # source: Gazetteer.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message...
has_default_value=False, default_value=_b("").decode('utf-8'),
<|file_name|>VirtualCalls.java<|end_file_name|><|fim▁begin|>package soot.jimple.toolkits.callgraph; /*- * #%L * Soot - a J*va Optimization Framework * %% * Copyright (C) 2003 Ondrej Lhotak * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General ...
} if (sigType instanceof ArrayType) { sigType = RefType.v("java.lang.Object");
<|file_name|>ScreenShotListenManager.java<|end_file_name|><|fim▁begin|>// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package cn.sharesdk.demo.utils; import android.annotation.TargetApi; import android.content.Context; import android.database.ContentObserver; ...
} public void onChange(boolean selfChange) { super.onChange(selfChange);
<|file_name|>asiPreventsParsingAsInterface04.ts<|end_file_name|><|fim▁begin|>var declare: boolean, interface: number, I: string; <|fim▁hole|>I // This should be the identifier 'I' {} // This should be a block body<|fim▁end|>
declare // This should be the identifier 'declare' interface // This should be the identifier 'interface'
<|file_name|>FunctionalComponentAsConstAsDefaultExport.tsx<|end_file_name|><|fim▁begin|>import * as React from 'react'; /** JumbotronProps props */ export interface JumbotronProps { /** prop1 description */ prop1: string;<|fim▁hole|>/** * Jumbotron description */ const Jumbotron = (props: JumbotronProps) => { ...
}
<|file_name|>facadeversions_test.go<|end_file_name|><|fim▁begin|>// Copyright 2014 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package api_test import ( "strings" "github.com/juju/utils/set" gc "gopkg.in/check.v1" "github.com/juju/juju/api" "github.com/juju/juju/apiserver/common"...
// First check that both sides know about all the same versions c.Check(serverFacadeNames.Difference(clientFacadeNames).SortedValues(), gc.HasLen, 0) c.Check(clientFacadeNames.Difference(serverFacadeNames).SortedValues(), gc.HasLen, 0)
<|file_name|>cssstylerule.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::codegen::Bindings::CSSStyleRu...
use style::stylesheets::{Origin, StyleRule}; #[dom_struct] pub struct CSSStyleRule {
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>// TODO: Handle Runtime Errors mod braces; mod loops; mod methods; /// Expand pipelines pub mod pipelines; mod words; use self::braces::BraceToken; pub use self::{ loops::ForValueExpression, methods::MethodError, words::{unescape, Select, SelectWithSize, Wor...
} else {
<|file_name|>test_voxel.py<|end_file_name|><|fim▁begin|>import unittest import decodes.core as dc from decodes.core import * from decodes.extensions.voxel import * class Tests(unittest.TestCase): def test_constructor(self): bounds = Bounds(center=Point(),dim_x=8,dim_y=8,dim_z=8) vf = VoxelField(bo...
def test_bounds_and_cpt(self): bounds = Bounds(center=Point(),dim_x=8,dim_y=8,dim_z=8) vf = VoxelField(bounds,4,4,4)
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*-<|fim▁hole|># Copyright (C) 2011 - 2013 Avanzosc <http://www.avanzosc.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 t...
############################################################################## # # Avanzosc - Avanced Open Source Consulting
<|file_name|>output_prn.py<|end_file_name|><|fim▁begin|># Copyright (C) 2012 Vivek Haldar # # Take in a dict containing fetched RSS data, and output to printable files in # the current directory. # # Dict looks like: # feed_title -> [list of articles] # each article has (title, body). # # Author: Vivek Haldar <vh@vivek...
<|file_name|>ext.rs<|end_file_name|><|fim▁begin|>// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use syn::{Data, DataEnum, DataStruct, DataUnion, Field, Fields, Type}; pub trait DataExt { fn nested_...
})
<|file_name|>ApprovalService.ts<|end_file_name|><|fim▁begin|>import DBService, { BuilderSingle } from '../DBService' import Approval from '../../../models/extprod/Approval' import { Map } from '../../../utils/map' import { UndefinedError } from '../../../models/Error' interface FindAllOptions { userId?: string } ex...
'[user, itemPrototype.[itemBase], itemRequest.[itemBase], itemService.[itemBase]]' ) if (options && options.userId) {
<|file_name|>errors.go<|end_file_name|><|fim▁begin|>package network import ( "fmt" "net" ) // VethPairCreationError is returned if creating a virtual ethernet pair fails type VethPairCreationError struct { Cause error HostIfcName, ContainerIfcName string } func (err VethPairCreationError)...
type ConfigureLinkError struct { Cause error Role string Interface *net.Interface
<|file_name|>findRegressions-simple.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import re, string, sys, os, time, math DEBUG = 0 (tp, exp) = ('compile', 'exec') def parse(file): f = open(file, 'r') d = f.read() # Cleanup weird stuff d = re.sub(r',\d+:\d', '', d) r = re.findall(r'TEST-(PASS|FA...
sys.exit(1)
<|file_name|>tabCompletion.ts<|end_file_name|><|fim▁begin|>/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *----...
registerEditorContribution(TabCompletionController.ID, TabCompletionController);
<|file_name|>bitcoin_zh_CN.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About ExclusiveCoin</source> <translation>关于黑币...
<message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<|file_name|>files.js<|end_file_name|><|fim▁begin|>var files = [<|fim▁hole|><|fim▁end|>
[ "API", "dir_19ea4dbfe8f0e4681f60b9b97f7b5d11.html", "dir_19ea4dbfe8f0e4681f60b9b97f7b5d11" ] ];
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>import os import platform from setuptools import setup, Extension from distutils.util import convert_path from Cython.Build import cythonize<|fim▁hole|> system = platform.system() ## paths settings # Linux if 'Linux' in system: CLFFT_DIR = r'/home/gregor/devel/clF...
<|file_name|>vars.py<|end_file_name|><|fim▁begin|>""" aulario.py """ BACK_BUTTON_TEXT = "Indietro ❌" DAY_SELECTION = "Seleziona la data della lezione che ti interessa." AULARIO_WARNING = "⚠️ Aulario non ancora pronto, riprova fra qualche minuto ⚠️" LESSON_SELECTION = "Quale lezione devi seguire?" NO_LESSON_WARNING = "...
REGOLAMENTO_DIDATTICO = "🪧 Regolamento Didattico"
<|file_name|>DoubleJumpReload.java<|end_file_name|><|fim▁begin|>package com.github.luksdlt92; import java.util.ArrayList; /* * DoubleJumpReload plugin * Made by luksdlt92 and Abdalion */ import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; import com.github.luksdlt92.commands.DoubleJumpCo...
public ArrayList<String> _players = new ArrayList<String>(); public ArrayList<String> _playersDisableJump = new ArrayList<String>(); @Override
<|file_name|>parse.js<|end_file_name|><|fim▁begin|>'use strict' const _toArray = require('lodash.toarray') const shelljs = require('shelljs') module.exports = function (config) { // parse loader [ 'loaders', 'preLoaders', 'postLoaders' ].forEach(key => { config.module[key] = _toArray(config.modu...
}
<|file_name|>sound_engine.py<|end_file_name|><|fim▁begin|># # YetAnotherPythonSnake 0.94 # Author: Simone Cingano (simonecingano@gmail.com) # Web: http://simonecingano.it # Licence: MIT # import pygame import os # YASP common imports import data if pygame.mixer: pygame.mixer.init() class dummysound: d...
def load(self, track): pygame.mixer.music.load(data.filepath("music", track + EXTENSION))
<|file_name|>windowToggle.ts<|end_file_name|><|fim▁begin|>import {Observable} from '../../Observable'; import {windowToggle, WindowToggleSignature} from '../../operator/windowToggle'; <|fim▁hole|> windowToggle: WindowToggleSignature<T>; } }<|fim▁end|>
Observable.prototype.windowToggle = windowToggle; declare module '../../Observable' { interface Observable<T> {
<|file_name|>server.rs<|end_file_name|><|fim▁begin|>// Copyright 2017 TiKV Project Authors. Licensed under Apache-2.0. use std::sync::Arc; use std::thread; use std::time::Duration; use futures::{future, SinkExt, StreamExt, TryFutureExt, TryStreamExt}; use grpcio::{ DuplexSink, EnvBuilder, RequestStream, Result as...
ctx: RpcContext<'_>,
<|file_name|>vAclGroup.java<|end_file_name|><|fim▁begin|>package org.ebaloo.itkeeps.core.domain.vertex; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import org.ebaloo.itkeeps.api.enumeration.enAclAdmin; import org.ebaloo.itkeeps.api.enumeration.enAclData; import org.e...
OrientBaseGraph graph = this.getGraph(); setEdges( graph,
<|file_name|>nginx_uwsgi_supervisor.py<|end_file_name|><|fim▁begin|>from __future__ import with_statement from cuisine import * from fabric.api import env from fabric.colors import * from fabric.utils import puts from fabric.context_managers import cd, settings, prefix from flabric import ApplicationContext as AppConte...
def pre_upload(self): pass
<|file_name|>main_waveform_20170517.py<|end_file_name|><|fim▁begin|># coding = utf-8 # import modules import os<|fim▁hole|>import numpy as np import scipy as sp import my_config path = my_config.ROOT_DIR # Please create your config file file = my_config.FILE # Please create your config file # get t...
import matplotlib.pyplot as plt
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django.conf import settings from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from mymoney.core.utils.currencies import get_currencies class BankAccountManager(models.Manager): def get_use...
db_table = 'bankaccounts' permissions = (("administer_owners", "Administer owners"),) def __str__(self):
<|file_name|>test-should-panic-no-message.rs<|end_file_name|><|fim▁begin|>// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at<|fim▁hole|>// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/...
// http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
<|file_name|>monkeypatch.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Monkeypatch initialisation functions """ try: from collections import OrderedDict except ImportError: # pragma: no-cover from ordereddict import OrderedDict # pylint:disable=import-error from rebulk.ma...
def monkeypatch_rebulk(): """Monkeypatch rebulk classes"""
<|file_name|>company_connection_impl.cc<|end_file_name|><|fim▁begin|>// Copyright 2022 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 // // https://www.apache.org/license...
}); }
<|file_name|>socket_client_with_options.rs<|end_file_name|><|fim▁begin|>mod async_helpers; use std::convert::TryFrom; use std::error::Error; use zeromq::util::PeerIdentity; use zeromq::{Socket, SocketOptions, SocketRecv, SocketSend}; #[async_helpers::main] async fn main() -> Result<(), Box<dyn Error>> { let mut o...
dbg!(repl); } Ok(())
<|file_name|>auth.configuration.ts<|end_file_name|><|fim▁begin|>import { Injectable } from '@angular/core'; @Injectable() export class AuthConfiguration { // The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery) MUST exactly match the value of the iss (issuer) Claim. pub...
<|file_name|>unitStorage_test.go<|end_file_name|><|fim▁begin|>// Copyright 2015 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package context_test import ( jc "github.com/juju/testing/checkers" "github.com/juju/utils" "github.com/juju/utils/set" gc "gopkg.in/check.v1" "gopkg.in/juju/...
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django.core.urlresolvers import reverse from django.db import models from django.utils.translation import ugettext, ugettext_lazy as _ from django.contrib.auth.models import User from django.contrib.contenttypes.fields import GenericRelation from django.shortcut...
# pick the name from email if email:
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|>from .google import GoogleSpeaker from .watson import WatsonSpeaker """ alfred ~~~~~~~~~~~~~~~~ Google tts. """ __all__ = [ 'GoogleSpeaker', 'WatsonSpeaker' ]<|fim▁end|>
<|file_name|>operations.go<|end_file_name|><|fim▁begin|>package billing // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorr...
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>import os import json import collections import datetime from flask import Flask, request, current_app, make_response, session, escape, Response, jsonify from flask_jwt_extended import JWTManager, jwt_required, create_access_token, get_jwt_identity from flask_socket...
import eventlet #eventlet.monkey_patch()
<|file_name|>netkiUtils.js<|end_file_name|><|fim▁begin|><|fim▁hole|> 'btc': 'Bitcoin', 'tbtc': 'Bitcoin Testnet', 'ltc': 'Litecoin', 'dgc': 'Dogecoin', 'nmc': 'Namecoin', 'tusd': 'tetherUSD', 'teur': 'tetherEUR', 'tjpy': 'tetherJPY', 'oap': 'Open Asset', 'fct': 'Factom Factoid', 'fec': 'Factom Entr...
var NETKI_PUBAPI_HOST = 'https://pubapi.netki.com'; var NETKI_API_HOST = 'https://api.netki.com'; var SHORTCODES = {
<|file_name|>lint-temporary-cstring-as-ptr.rs<|end_file_name|><|fim▁begin|>// this program is not technically incorrect, but is an obscure enough style to be worth linting #![deny(temporary_cstring_as_ptr)] use std::ffi::CString;<|fim▁hole|> fn main() { let s = CString::new("some text").unwrap().as_ptr(); //~^...
<|file_name|>runESLint.js<|end_file_name|><|fim▁begin|>const { yellow, cyan, gray } = require('chalk'); const EslintCLI = require('eslint').CLIEngine; const eslintConfig = require('../config/eslint/eslintConfig'); const runESLint = ({ fix = false, paths }) => new Promise((resolve, reject) => { console.log(cyan(`...
(filePath) => filePath.endsWith('.ts') || filePath.endsWith('.tsx') ||
<|file_name|>models.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
def build_models(payment_class): return []
<|file_name|>GeometryShaderGen.cpp<|end_file_name|><|fim▁begin|>// Copyright 2014 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #include "VideoCommon/GeometryShaderGen.h" #include <cmath> #include <cstring> #include "Common/CommonTypes.h" #include "VideoCommon/DriverDet...
if (wireframe) out.Write("\tVS_OUTPUT first;\n");
<|file_name|>loader.service.spec.ts<|end_file_name|><|fim▁begin|>import { fakeAsync, tick } from '@angular/core/testing'; import { BehaviorSubject, Observable } from 'rxjs/Rx'; import { LoaderService } from './'; describe(`LoaderService`, () => { let service: LoaderService; beforeEach(() => { service = new L...
<|file_name|>whatsnew_60.py<|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<|fim▁hole|> from pages.firefox.base import FirefoxBasePage class FirefoxWhatsNew60Page(FirefoxBasePage): URL_TEMPLAT...
# file, You can obtain one at http://mozilla.org/MPL/2.0/. from selenium.webdriver.common.by import By
<|file_name|>tomorrow-night-bright.js<|end_file_name|><|fim▁begin|>'use strict'; module.exports = { colors: { black: '#000000', red: '#D54E53', green: '#B9CA4A', yellow: '#E7C547', blue: '#7AA6DA', magenta: '#C397D8', cyan: '#70C0B1', white: '#EAEAEA', lightBlack: '#969896', l...
// Other
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|>"""Tests for the JuiceNet component."""<|fim▁end|>
<|file_name|>ejemplo-funciona.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*-<|fim▁hole|> import cv2 from Tkinter import * from PIL import Image, ImageTk import tkFileDialog appname = "example" class App(object): def __init__(self, root=None): if not root: root = Tk()...