prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>regions-assoc-type-region-bound.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:...
f.get(); } fn main() { }
<|file_name|>sjisprober.py<|end_file_name|><|fim▁begin|>######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 19...
def get_charset_name(self):
<|file_name|>lazy.js<|end_file_name|><|fim▁begin|>/** * tiny-di * @module binding/lazy * @copyright Dennis Saenger <tiny-di-15@mail.ds82.de> */ 'use strict'; import { AbstractBinding } from './abstract'; export class LazyBinding extends AbstractBinding { constructor(injector, key, path, opts) { super(inject...
return this.load();
<|file_name|>if-let.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 // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses...
} else if let a = 1 { //~ ERROR irrefutable if-let println!("irrefutable pattern");
<|file_name|>yesterday_dump.py<|end_file_name|><|fim▁begin|>import time from pymongo import MongoClient from datetime import datetime, timedelta import json from bson import Binary, Code from bson.json_util import dumps client = MongoClient('localhost', 27017) db = client['election-2016'] def dumpData(yesterdayStr...
file.write(doc)
<|file_name|>read_message.rs<|end_file_name|><|fim▁begin|>// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, eithe...
Async::NotReady => self.poll(), result => Ok(result)
<|file_name|>32.py<|end_file_name|><|fim▁begin|># Hangman for real tho(t) import random def pickWord(words): toReturn = random.choice(lol) return toReturn def drawHangman(parts): if parts >= 1: print(" O") if parts >= 4: print("/|\\") elif parts >= 3: print("/|") elif parts >= 2: print(" |") if part...
guessedLetters.add(letter) okLetter = True if letter not in word:
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>""" =========================================== Main Components (:mod:`artview.components`) =========================================== .. currentmodule:: artview.components ARTview offers some basic Components for visualization of weather radar data using Py-ART ...
<|file_name|>key_ops.go<|end_file_name|><|fim▁begin|>// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file.<|fim▁hole|> import ( "context" "github.com/keybase/client/go/kbfs/idutil" "github.com/keybase/client/go/kbfs/kbfs...
package libkey
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>use std::io; use std::io::Read; use std::collections::HashMap; use std::str::FromStr; type DynamicInfo<'a> = HashMap<&'a str, u8>; #[derive(Debug)] struct Aunt<'a> { number: u16, info: DynamicInfo<'a> } fn parse_aunt(line: &str) -> Aunt { let tokens: Vec<...
<|file_name|>vendor.js<|end_file_name|><|fim▁begin|>/* eslint-disable global-require */<|fim▁hole|> // polyfills and vendors if (!window._babelPolyfill) { require('babel-polyfill') }<|fim▁end|>
<|file_name|>plugin.py<|end_file_name|><|fim▁begin|>import collections def moduleman_plugin(*args): method_args = [] def inner_decorator(cls): for method in method_args: if (not (method in dir(cls))): raise Exception("Required method %s not implemented" % method)<|fim▁hole...
cls.__PLUGIN_MODULEMAN_MARK = "Plugin mark" return cls
<|file_name|>swf.js.communication.js<|end_file_name|><|fim▁begin|>/** * ... * @author paul */ function initCBX(object, id, options) { var design = "assets"; if(object == null){ jQuery.noConflict(); var cboxClass; cboxClass = jQuery(id).attr("class"); if(jQuery.browser.msie && parseInt(jQuery.browser.versi...
<|file_name|>coherence.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 // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licen...
<|file_name|>gameimp.hpp<|end_file_name|><|fim▁begin|>#ifndef PWN_ENGINE_GAMEIMP_HPP #define PWN_ENGINE_GAMEIMP_HPP #include <vector> #include <map> #include <boost/shared_ptr.hpp> #include <pwn/math/types.h> //#include <events/event.h> #include <pwn/engine/key.h> namespace pwn { namespace render { class Virtual...
public: GameImp(); ~GameImp();
<|file_name|>zvectorgenerator.cpp<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
#include "zvectorgenerator.h"
<|file_name|>events.js<|end_file_name|><|fim▁begin|>/** * Why has this not been moved to e.g. @tryghost/events or shared yet? * * - We currently massively overuse this utility, coupling together bits of the codebase in unexpected ways * - We want to prevent this, not reinforce it * * Having an @tryghost/events or ...
<|file_name|>contextManager.py<|end_file_name|><|fim▁begin|># This file is part of Indico.<|fim▁hole|># Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN). # # Indico is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by...
<|file_name|>_version.py<|end_file_name|><|fim▁begin|># This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) wi...
# look for -dirty suffix
<|file_name|>bitcoin_ms_MY.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About DarkSwift</source> <translation type="unf...
<location line="+279"/>
<|file_name|>AndFilterBlock.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 ...
}
<|file_name|>Unit Group Form - Information.js<|end_file_name|><|fim▁begin|>/// <reference path="Xrm.js" /> var EntityLogicalName = "uomschedule";<|fim▁hole|>}; var Form_a793fa7c_8b63_43f0_b4bc_73f75a68935a_Controls = { description: "description", name: "name" }; var pageData = { "Event": "none", "Sav...
var Form_a793fa7c_8b63_43f0_b4bc_73f75a68935a_Properties = { description: "description", name: "name"
<|file_name|>test_revoke.py<|end_file_name|><|fim▁begin|># 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 by applicable la...
@mock.patch.object(timeutils, 'utcnow') def test_expired_events_removed_validate_token_success(self, mock_utcnow): def _sample_token_values():
<|file_name|>add.rs<|end_file_name|><|fim▁begin|>#![feature(core, core_simd)] extern crate core; #[cfg(test)] mod tests { use core::simd::u32x4; // #[simd] // #[derive(Copy, Clone, Debug)] // #[repr(C)] // pub struct u32x4(pub u32, pub u32, pub u32, pub u32); <|fim▁hole|> 0, 1, 2, 3 ); l...
#[test] fn add_test1() { let x: u32x4 = u32x4(
<|file_name|>scmutil.py<|end_file_name|><|fim▁begin|># Portions 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. # scmutil.py - Mercurial core utility functions # # Copyright Matt Mackall <mpm@selenic...
except (error.IndexedLogError, error.MetaLogError) as inst: ui.warn(_("internal storage is corrupted\n"), error=_("abort"))
<|file_name|>soundcloud.py<|end_file_name|><|fim▁begin|>import asyncio import demjson from bot import user_steps, sender, get, downloader from message import Message client_id = ''#YOUR CLIENT ID async def search(query): global guest_client_id search_url = 'https://api.soundcloud.com/search?q=%s&facet=mod...
<|file_name|>reporter.js<|end_file_name|><|fim▁begin|>var _ = require('lodash'); var path = require('path'); function cucumberJUnitReporter(providedConfig, builder) { var config = _.defaults(providedConfig || {}, { reportDir: 'test_reports', reportPrefix: 'TEST-', reportSuffix: '.xml', reportFile: '...
} callback(); });
<|file_name|>mail_mail.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can ...
def _get_default_from(self, cr, uid, context=None):
<|file_name|>views.py<|end_file_name|><|fim▁begin|>import json import logging import pytz import datetime import dateutil.parser from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.shortcuts import redirect from django.conf import settings from mitxmako.shortcuts ...
"event_source": "browser", "event_type": request.REQUEST['event_type'], "event": request.REQUEST['event'], "agent": agent,
<|file_name|>index.js<|end_file_name|><|fim▁begin|>/** * lodash 3.0.3 (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2016 J...
/** `Object#toString` result references. */ var boolTag = '[object Boolean]';
<|file_name|>fs.rs<|end_file_name|><|fim▁begin|>#![stable(feature = "metadata_ext", since = "1.1.0")] use crate::fs::Metadata; use crate::sys_common::AsInner; #[allow(deprecated)] use crate::os::freebsd::raw; /// OS-specific extensions to [`fs::Metadata`]. /// /// [`fs::Metadata`]: crate::fs::Metadata #[stable(featu...
#[stable(feature = "metadata_ext2", since = "1.8.0")] fn st_dev(&self) -> u64; #[stable(feature = "metadata_ext2", since = "1.8.0")]
<|file_name|>utils.py<|end_file_name|><|fim▁begin|>""" A universal module with functions / classes without dependencies. """ import sys import contextlib import functools import re import os from jedi._compatibility import reraise _sep = os.path.sep if os.path.altsep is not None: _sep += os.path.altsep _path_re ...
return list(func(*args, **kwargs)) return wrapper
<|file_name|>webParser.py<|end_file_name|><|fim▁begin|>""" Copyright 2013 Shine Wang 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 by a...
if "students" in res.name or "Students" in res.name: res.name = res.name[:-9]
<|file_name|>chrome_user_manager_impl.cc<|end_file_name|><|fim▁begin|>// Copyright 2014 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 "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" #include ...
<|file_name|>CategoryTree.py<|end_file_name|><|fim▁begin|>import json from collections import ( Counter, defaultdict as deft ) from copy import deepcopy as cp # from cPickle import ( # dump as to_pickle, # load as from_pickle # ) from StringIO import StringIO from TfIdfMatrix import TfIdfMatrix fr...
<|file_name|>platform.cpp<|end_file_name|><|fim▁begin|>#include "../platform.h" <|fim▁hole|>namespace Platform { void sleep(long seconds, long milliseconds) {} //stub int createWindow(char *title, int width, int height, int bpp, bool fullscreen) { return 0; } int closeWindow() { return 0; } void swapBuffers...
<|file_name|>bn.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( 'indent', 'bn', { indent: 'ইনডেন্ট বাড়াও', <|fim▁hole|><|fim▁end|>
outdent: 'ইনডেন্ট কমাও' } );
<|file_name|>YourlsServiceImpl.java<|end_file_name|><|fim▁begin|>/* * Copyright 2015 Erwin Müller <erwin.mueller@deventm.org> * * This file is part of sscontrol-httpd-yourls. * * sscontrol-httpd-yourls is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public Li...
} @Override public String getPrefix() {
<|file_name|>viewport_rect_item.py<|end_file_name|><|fim▁begin|># This code is licensed under the MIT License (see LICENSE file for details) from PyQt5 import Qt class ViewportRectItem(Qt.QGraphicsObject): size_changed = Qt.pyqtSignal(Qt.QSizeF) def __init__(self): super().__init__() self.set...
<|file_name|>main.go<|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 // // http://www.apache.org/licenses/LICENSE-2.0 // // ...
<|file_name|>mac_notes.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """Tests for mac notes plugin.""" from __future__ import unicode_literals import unittest from plaso.lib import definitions from plaso.parsers.sqlite_plugins import mac_notes from tests.parsers.sqlite_plugins import test_lib class MacNo...
event_data = self._GetEventDataOfEvent(storage_writer, event) expected_title = 'building 4th brandy gibs'
<|file_name|>md5.rs<|end_file_name|><|fim▁begin|>// http://rosettacode.org/wiki/MD5 extern crate crypto; use crypto::digest::Digest; use crypto::md5::Md5; fn main() { let mut sh = Md5::new(); sh.input_str("The quick brown fox jumped over the lazy dog's back"); println!("{}", sh.result_str());<|fim▁hole|>...
<|file_name|>test_logarithm_1p.py<|end_file_name|><|fim▁begin|>import unittest import numpy import chainer from chainer.backends import cuda import chainer.functions as F from chainer import gradient_check from chainer import testing from chainer.testing import attr @testing.parameterize(*testing.product({ 'sha...
<|file_name|>app.js<|end_file_name|><|fim▁begin|>(() => { 'use strict'; angular.module('RestTestApp') .config(($urlRouterProvider, $locationProvider) => { $locationProvider.html5Mode(true); }) .config(function(RestTestStateConfigProvider) { RestTestStateConfigProvider.initialize();<|fim▁hole|>})();<...
});
<|file_name|>material-modal.js<|end_file_name|><|fim▁begin|>define(function(require, exports, module) { var Notify = require('common/bootstrap-notify'); var FileChooser = require('../widget/file/file-chooser3'); exports.run = function() { var $form = $("#course-material-form"); var materi...
$('.modal').on('hidden.bs.modal', function(){ window.location.reload(); });
<|file_name|>gen_dxgi_format_table.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # Copyright 2016 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # gen_dxgi_format_table.py: # Code generation for DXGI format map...
<|file_name|>_virtual_hub_route_table_v2_s_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 license ...
if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat)
<|file_name|>testcase_empty.rs<|end_file_name|><|fim▁begin|>// https://rustbyexample.com/generics/bounds/testcase_empty.html // http://rust-lang-ja.org/rust-by-example/generics/bounds/testcase_empty.html struct Cardinal; struct BlueJay; struct Turkey; trait Red {} trait Blue {} impl Red for Cardinal {} impl Blue for...
let cardinal = Cardinal; let blue_jay = BlueJay; let _turkey = Turkey;
<|file_name|>test_event.py<|end_file_name|><|fim▁begin|>"""Test event helpers.""" # pylint: disable=protected-access,too-many-public-methods # pylint: disable=too-few-public-methods import unittest from datetime import datetime, timedelta from astral import Astral from homeassistant.bootstrap import setup_component i...
self._send_time_changed(datetime(2014, 5, 2, 0, 0, 0)) self.hass.block_till_done() self.assertEqual(1, len(specific_runs))
<|file_name|>my.ts<|end_file_name|><|fim▁begin|>/* Burmese locals for flatpickr */ import { CustomLocale } from "../types/locale"; import { FlatpickrFn } from "../types/instance"; const fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : ({ l10ns: {}, } as ...
], }, months: {
<|file_name|>segmented_end_impl.hpp<|end_file_name|><|fim▁begin|>/*============================================================================= Copyright (c) 2011 Eric Niebler Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost....
typedef iterator_range<end_type, end_type> pair_type;
<|file_name|>border_none.rs<|end_file_name|><|fim▁begin|>//! Bayer reader without any additional border logic. use std::io::Read; use ::BayerResult; use bayer::*; pub struct BorderNone8; pub struct BorderNone16BE; pub struct BorderNone16LE; impl BorderNone8 { pub fn new() -> Self { BorderNone8 } } ...
} }
<|file_name|>OutputValues.java<|end_file_name|><|fim▁begin|>package eu.clarin.weblicht.bindings.cmd.ws; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; /** * * @author ak...
v.values = copy(values); return v;
<|file_name|>AlgorithmSortBy.cpp<|end_file_name|><|fim▁begin|>/* * Copyright 2010-2017 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 is located at * ...
<|file_name|>Ping.py<|end_file_name|><|fim▁begin|># Copyright (c) 2014 Alcatel-Lucent Enterprise # 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 # # ht...
<|file_name|>jquery.usquare.js<|end_file_name|><|fim▁begin|>/* uSquare 1.0 - Universal Responsive Grid Copyright (c) 2012 Br0 (shindiristudio.com) Project site: http://codecanyon.net/ Project demo: http://shindiristudio.com/usquare/ */ (function($) { function uSquareItem(element, options) { this.$item...
{ this.$parent.data('in_trans', 1); this.$item.data('showed', 1);
<|file_name|>webpack.base.config.js<|end_file_name|><|fim▁begin|>const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const resolve = (dir) => { return path.join(__dirname, '..', dir)<|fim▁hole|> const config = { output: { path: path.join(__dirname, '..', 'dist', 'assets'), ...
}; const isProduction = process.env.NODE_ENV === 'production';
<|file_name|>_optical_flow.py<|end_file_name|><|fim▁begin|>import itertools import os import re from abc import ABC, abstractmethod from glob import glob from pathlib import Path import numpy as np import torch from PIL import Image from ..io.image import _read_png_16 from .utils import verify_str_arg from .vision im...
``flow`` is None if ``split="val"``. If a valid flow mask is generated within the ``transforms`` parameter,
<|file_name|>ssr.spec.js<|end_file_name|><|fim▁begin|>import test from 'ava' import Vue from 'vue' import {createRenderer} from 'vue-server-renderer' import ContentPlaceholder from '../src' test.cb('ssr', t => { const rows = [{height: '5px', boxes: [[0, '40px']]}] const renderer = createRenderer() const app = ne...
})
<|file_name|>__openerp__.py<|end_file_name|><|fim▁begin|># -*- encoding: utf-8 -*- ############################################################################## # # Account Cut-off Base module for OpenERP # Copyright (C) 2013 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akret...
* the module *account_cutoff_accrual_picking* will manage the accruals based
<|file_name|>radarChart.ts<|end_file_name|><|fim▁begin|>/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""S...
legendPosition = LegendPosition[<string>this.legendObjectProperties[legendProps.position]]; switch (legendPosition) {
<|file_name|>avatar.ts<|end_file_name|><|fim▁begin|>import { gql } from '@apollo/client' import avatarFragment from 'v2/components/AvatarUploader/fragments/avatar' export default gql` query AvatarCheck { me {<|fim▁hole|> } } ${avatarFragment} `<|fim▁end|>
...Avatar
<|file_name|>line_iterator.rs<|end_file_name|><|fim▁begin|>pub struct LineIterator<'a> { data: &'a str, line_number: usize, line_start: usize, line_end: usize, done: bool } impl<'a> LineIterator<'a> { pub fn new(data: &str) -> LineIterator { LineIterator{ data, l...
<|file_name|>freeze_bills.py<|end_file_name|><|fim▁begin|>from __future__ import print_function from django.core.management.base import BaseCommand<|fim▁hole|>from mks.models import Knesset class Command(BaseCommand): help = "Freeze bills staged in previous knessets" option_list = BaseCommand.option_list +...
from optparse import make_option from laws.models import Bill from laws.vote_choices import BILL_STAGE_CHOICES
<|file_name|>init.js<|end_file_name|><|fim▁begin|>require.config( { //By default load any module IDs from js/lib baseUrl: "app/", //except, if the module ID starts with "app", //load it from the js/app directory. paths //config is relative to the baseUrl, and<|fim▁hole|> lib: "../lib", }...
//never includes a ".js" extension since //the paths config could be for a directory. paths: {
<|file_name|>keystore.go<|end_file_name|><|fim▁begin|>/* Copyright 2020 The cert-manager Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unl...
},
<|file_name|>ConfigCheck.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################# # File : ConfigCheck.py # Package : rpmlint # Author : Frederic Lepied # Created on : Sun Oct 3 21:48:20 1999 # Purpose : #######...
AbstractCheck.AbstractCheck.__init__(self, "ConfigCheck")
<|file_name|>jsonInterfaces.ts<|end_file_name|><|fim▁begin|>// The current version of this file can be retrieved by: // GET /api/language/webast module TDev.AST.Json { // This module describes an AST for TouchDevelop scripts. The documentation // is severely lacking, so the best way to figure things out is to ...
// |- then-branch2 // |- else-branch2
<|file_name|>2101001.js<|end_file_name|><|fim▁begin|>/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you...
*/
<|file_name|>exponential.rs<|end_file_name|><|fim▁begin|>/** * Exponential Functions * * This module corresponds to Section 8.2 of the [GLSL 4.30.6 specification] * (http://www.opengl.org/registry/doc/GLSLangSpec.4.30.6.pdf). */ use numeric::funs::*; use numeric::traits::*; use vec::{Vector, Vec2, Vec3, Vec4}; ...
<|file_name|>test_django_cassandra_models.py<|end_file_name|><|fim▁begin|>from datetime import datetime from unittest import skipIf import copy import uuid from cassandra.cqlengine import ValidationError as CQLValidationError from django.core import validators from django.forms import fields from common.models import...
)
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from ajenti.api import * from ajenti.plugins import * info = PluginInfo( title='BIND9', description='BIND9 DNS server', icon='globe', dependencies=[ PluginDependency('main'), PluginDependency('services'),<|fim▁hole|> BinaryDe...
<|file_name|>Joystick.java<|end_file_name|><|fim▁begin|>/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008-2016. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanie...
* Get the value of isXbox for the current joystick. * * @return A boolean that is true if the controller is an xbox controller.
<|file_name|>AbstractExtendedActivityDataModifier.js<|end_file_name|><|fim▁begin|>var AbstractExtendedActivityDataModifier = Fiber.extend(function(base) { return { content: '', isAuthorOfViewedActivity: null, dataViews: [], summaryGrid: null, init: function(analysisData...
} summaryGrid += '</table>'; summaryGrid += '</div>'; summaryGrid += '</div>';
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>from django.contrib import admin # Register your models here. from polls.models import Question,Choice class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): fields = ["question_text", "pub_date"]<|fim...
<|file_name|>LiDAR_tools.py<|end_file_name|><|fim▁begin|>import numpy as np import laspy as las # Determine if a point is inside a given polygon or not # Polygon is a list of (x,y) pairs. This function # returns True or False. The algorithm is called # the "Ray Casting Method". # the point_in_poly algorithm was found...
for i in range(n+1): p2x,p2y = poly[i % n] if y > min(p1y,p2y): if y <= max(p1y,p2y):
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from show_latent import LatentView
<|file_name|>TankMessageCodes.java<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2020 by Stefan Schubert under the MIT License (MIT). * See project LICENSE file for the detailed terms and conditions. */ package de.bluewhale.sabi.webclient.rest.exceptions; import de.bluewhale.sabi.exception.ExceptionCode; import...
<|file_name|>translate.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistrib...
for row in rows: module = row[0]
<|file_name|>GPsim.py<|end_file_name|><|fim▁begin|>import sys import time import logging import threading import GPy import numpy as np import matplotlib.pyplot as plt import pdb from GPhelpers import * from IPython.display import display from poap.strategy import FixedSampleStrategy from poap.strategy import InputStra...
<|file_name|>console.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014-2016 Alberto Gacías <alberto@migasfree.org> # Copyright (c) 2015-2016 Jose Antonio Chavarría <jachavar@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under t...
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
<|file_name|>_convertTemplate.go<|end_file_name|><|fim▁begin|>/* * Copyright (c) 2015, Shinya Yagyu * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must r...
<|file_name|>jquery.pngFix.js<|end_file_name|><|fim▁begin|>/* $Id: jquery.pngFix.js,v 1.1.1.5 2009/02/04 19:23:30 gibbozer Exp $ */ /** * -------------------------------------------------------------------- * jQuery-Plugin "pngFix" * Version: 1.1, 11.09.2007 * by Andreas Eberhard, andreas.eberhard@gmail.com * ...
* Changelog: * 11.09.2007 Version 1.1
<|file_name|>settings.py<|end_file_name|><|fim▁begin|>import os import ConfigParser class SettingsIO(object): """ ConfigParser abstraction """ def __init__(self, config_file): self.config_file = config_file self.config = ConfigParser.ConfigParser() if os.path.exists(self.config_file): ...
except ConfigParser.NoSectionError: value = None
<|file_name|>sq.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image2', 'sq', { alt: 'Tekst Alternativ', btnUpload: 'Dërgo në server', <|fim▁hole|> captionP...
captioned: 'Captioned image', // MISSING
<|file_name|>test_nsxmlnodeoptions.py<|end_file_name|><|fim▁begin|>from Foundation import * from PyObjCTools.TestSupport import * class TestNSXMLNodeOptions (TestCase): def testConstants(self): self.assertEqual(NSXMLNodeOptionsNone, 0) self.assertEqual(NSXMLNodeIsCDATA, 1 << 0) self.assertE...
NSXMLNodePreserveCharacterReferences | 0xFFF00000))
<|file_name|>sess_file.go<|end_file_name|><|fim▁begin|>package session import ( "errors" "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "sync" "time" "github.com/insionng/macross" ) var ( filepder = &FileProvider{} gcMaxLifetime int64 ) // FileSessionStore File session store type FileSessionSto...
var f *os.File
<|file_name|>test_models.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2010, 2degrees Limited <egoddard@tech.2degreesnetwork.com>. # All Rights Reserved. # # This file is part of djangoaudit <https://launchpad.net...
log_fields = ['foo', 'bar', 'wibble']
<|file_name|>protocol.rs<|end_file_name|><|fim▁begin|>//============================================================================ // // A simple Mandelbrot image generator in Rust // // Protocol for communicating with Engine task // // Copyright (c) 2014 Gavin Baker <gavinb@antonym.org> // Published under the MIT li...
#[derive(Debug)] pub enum RenderType { PreviewRender,
<|file_name|>0014_auto__chg_field_field_choices.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): ...
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}), 'username': ('django.d...
<|file_name|>ptv.js<|end_file_name|><|fim▁begin|>// config/ptv.js<|fim▁hole|>};<|fim▁end|>
module.exports.ptv = { devId: 'xxx', devSecret: 'xxx',
<|file_name|>errors.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 L...
# with the License. You may obtain a copy of the License at #
<|file_name|>Rx.KitchenSink.d.ts<|end_file_name|><|fim▁begin|>import { Subject } from './Subject'; import { Observable } from './Observable'; import { CoreOperators } from './CoreOperators'; import { Scheduler as IScheduler } from './Scheduler'; export interface KitchenSinkOperators<T> extends CoreOperators<T> { is...
<|file_name|>01_starttime_duration.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # encoding: utf-8 """ Show how to use `dur` and `delay` parameters of play() and out() methods to sequence events over time. <|fim▁hole|>""" from pyo import * import random s = Server(duplex=0).boot() num = 70 freqs = [random.uni...
<|file_name|>block_where_pred.rs<|end_file_name|><|fim▁begin|><|fim▁hole|> fn lorem<Ipsum, Dolor, Sit, Amet>() -> T where Ipsum: Eq, Dolor: Eq, Sit: Eq, Amet: Eq, { // body }<|fim▁end|>
// rustfmt-indent_style: Block // Where predicate indent
<|file_name|>kill.rs<|end_file_name|><|fim▁begin|>#![crate_name = "kill"] #![feature(collections, core, old_io, rustc_private, unicode)] <|fim▁hole|> * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. */ extern crate getopts; extern crate ...
/* * This file is part of the uutils coreutils package. * * (c) Maciej Dziardziel <fiedzia@gmail.com>
<|file_name|>merch-display.component.ts<|end_file_name|><|fim▁begin|>import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Location } from '@angular/common'; import { Merch } from '../data/merch'; import { MerchService } from '../data/merch.service'; @Component(...
<|file_name|>issue-54462-mutable-noalias-correctness.rs<|end_file_name|><|fim▁begin|>// run-pass // // compile-flags: -Ccodegen-units=1 -O fn linidx(row: usize, col: usize) -> usize { row * 1 + col * 3 } fn main() { let mut mat = [1.0f32, 5.0, 9.0, 2.0, 6.0, 10.0, 3.0, 7.0, 11.0, 4.0, 8.0, 12.0]; for i i...
let (x, rest) = mat.split_at_mut(linidx(i, k) + 1);
<|file_name|>getters.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship infor...
if key is None: return conf
<|file_name|>createproduct.js<|end_file_name|><|fim▁begin|>/* jshint node: true */ 'use strict'; var util = require('util'); var _ = require('underscore'); var defaults = require('../defaults'); var options = require('../options'); var descriptor = defaults.defaultDescriptor({ 'productName': { name: 'Product ...
var split = opts.environments.split(',') split.forEach(function(s){ if(s && s.trim()!= '') {