prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>AlertFadeless.js<|end_file_name|><|fim▁begin|>import React, { useState } from 'react';<|fim▁hole|>export const AlertFadelessExample = (props) => { const [visible, setVisible] = useState(true); const onDismiss = () => setVisible(false); return ( <div> <Alert color="primary" isOpen={visible...
import { UncontrolledAlert } from 'reactstrap'; import Alert from '../../../src/Alert';
<|file_name|>UserInfoDao.java<|end_file_name|><|fim▁begin|>package com.pmis.manage.dao; import org.springframework.stereotype.Component; import com.pmis.common.dao.CommonDao; @Component <|fim▁hole|> }<|fim▁end|>
public class UserInfoDao extends CommonDao{
<|file_name|>configuration.ts<|end_file_name|><|fim▁begin|>/** * @license * Copyright 2013 Palantir Technologies, 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://w...
return DEFAULT_CONFIG; } else { const resolvedConfigFilePath = resolveConfigurationPath(configFilePath); let configFile: IConfigurationFile;
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># Copyright 2012 Colin Scott # Copyright 2012 Andreas Wundsam # Copyright 2012 James McCauley # # This file is part of POX. # # POX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the F...
msg = msg.strip() return msg
<|file_name|>saved_object_graph.rs<|end_file_name|><|fim▁begin|>// This file is generated by rust-protobuf 2.25.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 #![allow(unknown_lints)] #![allow(clippy::all)] #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] #![allo...
#[derive(PartialEq,Clone,Default)] pub struct SavedVariable {
<|file_name|>removeuiobjectmembervisitor.cpp<|end_file_name|><|fim▁begin|>/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees...
<|file_name|>expr_after.rs<|end_file_name|><|fim▁begin|>fn main() { if foo && bar <caret> && foo {}<|fim▁hole|><|fim▁end|>
}
<|file_name|>Greeting.java<|end_file_name|><|fim▁begin|>package simple.practice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import simple.practice.service.GreetingService;<|fim▁hole|> @Component public class Greeting { @Autowired private Greeting...
<|file_name|>IFormUILogicCode.java<|end_file_name|><|fim▁begin|>//############################################################################# //# # //# Copyright (C) <2014> <IMS MAXIMS> # //# ...
//#EOH // This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
<|file_name|>mail.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (C) 2012-2013 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redis...
if local_cr: cr.close() return res
<|file_name|>ItemsTable.tsx<|end_file_name|><|fim▁begin|>// tslint:disable-next-line: no-submodule-imports import React, { useEffect, useMemo } from 'react'; import Moment from 'react-moment'; import { DATE_TIME_FORMAT, TIME_FORMAT } from '../../constants'; import { diffAndFormatShort } from '../../utils'; import { B...
}), [],
<|file_name|>ads-loader.service.ts<|end_file_name|><|fim▁begin|>/** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
if (session !== undefined) { adTagUrl = this.appendNonce(adTagUrl, session.nonce); }
<|file_name|>test_alignment.py<|end_file_name|><|fim▁begin|>import IMP import IMP.test import IMP.atom import IMP.core class Tests(IMP.test.TestCase): def _produce_point_sets(self, tr): vs = [] vsr = [] for i in range(0, 20): vs.append(IMP.algebra.get_random_vector_in( ...
d=IMP.core.XYZR.setup_particle(p) d.set_coordinates(v) d.set_radius(1.0)
<|file_name|>index.js<|end_file_name|><|fim▁begin|><|fim▁hole|>export * from './PythonHome'; export * from './PythonNav';<|fim▁end|>
<|file_name|>MetaRelationTest.java<|end_file_name|><|fim▁begin|>package org.genericsystem.remote; //package org.genericsystem.kernel; // //import java.util.Collections;<|fim▁hole|>//import org.testng.annotations.Test; // //@Test //public class MetaRelationTest extends AbstractTest { // // public void test001_setMetaAtt...
//
<|file_name|>start-test-server.ts<|end_file_name|><|fim▁begin|>import { GraphQLHTTPTestEndpoint } from '../helpers/grapqhl-http-test/graphql-http-test-endpoint'; <|fim▁hole|>process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; new GraphQLHTTPTestEndpoint().start(1337).catch(error => { console.error(error.stack); });<|f...
// to get through firewall
<|file_name|>taskfarm.py<|end_file_name|><|fim▁begin|># import argcomplete # import httplib # import logging # import simplejson # import sys # import urllib2 # from time import strftime, localtime # from conpaas.core import https<|fim▁hole|># from .base import BaseClient # from .config import config # from .service i...
<|file_name|>views.py<|end_file_name|><|fim▁begin|>from threading import Thread import Queue from django.core.urlresolvers import reverse from django.conf import settings from django import forms from django.http import HttpRequest from django.test import TestCase import haystack from haystack.forms import model_choice...
<|file_name|>conf.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # Phaser Editor documentation build configuration file, created by # sphinx-quickstart on Thu May 25 08:35:14 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuratio...
# You can specify multiple suffix as a list of string: #
<|file_name|>IsGreaterOrEqualQueryCriteria.java<|end_file_name|><|fim▁begin|>/* * This file is part of ToroDB. *<|fim▁hole|> * * ToroDB is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR P...
* ToroDB 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 of the License, or * (at your option) any later version.
<|file_name|>rollup.config.js<|end_file_name|><|fim▁begin|>import angular from 'rollup-plugin-angular'; import commonjs from 'rollup-plugin-commonjs'; import nodeResolve from 'rollup-plugin-node-resolve'; import typescript from 'rollup-plugin-typescript'; import uglify from 'rollup-plugin-uglify'; import { minify } fro...
}
<|file_name|>a-backend-roles.js<|end_file_name|><|fim▁begin|>'use strict'; /** * This file exports the main roles AnalyticsBackend uses which are: * 'developer', 'teacher' and 'student'. * * Also indicates the anonymous routes used by the gleaner-tracker module to * send data to the collector server. */ ex...
'/games' ], permissions: [
<|file_name|>spi.go<|end_file_name|><|fim▁begin|><|fim▁hole|> import ( "github.com/docker/infrakit/pkg/spi" "github.com/docker/infrakit/pkg/types" ) // InterfaceSpec is the current name and version of the Resource API. var InterfaceSpec = spi.InterfaceSpec{ Name: "Resource", Version: "0.1.1", } // ID is the un...
package resource
<|file_name|>authActions.spec.ts<|end_file_name|><|fim▁begin|>import {login, signup} from '../../src/app/actions/authActions'; import ActionsConstants from '../../src/common/constants/actionsConstants'; describe('auth actions', () => { describe('if we create a login action', () => { let userId = 'TestUser...
describe('if we create a signup action', () => { it('should generate action with payload', () => { expect(signup()).toEqual({ type: ActionsConstants.SignUp
<|file_name|>bench_basic.py<|end_file_name|><|fim▁begin|>from __future__ import division, print_function, absolute_import import sys from numpy.testing import * import numpy.linalg as linalg def random(size): return rand(*size) class TestSolve(TestCase): def bench_random(self): basic_solve = linalg....
for size,repeat in [(20,1000),(100,150),(500,2),(1000,1)][:-1]: repeat *= 2
<|file_name|>rdfpipe.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: UTF-8 -*- """ A commandline tool for parsing RDF in different formats and serializing the resulting graph to a chosen format. """ import sys from optparse import OptionParser import logging import rdflib from rdflib import plugin...
action='store_true', default=False, help="Output warnings to stderr (by default only critical errors).")
<|file_name|>count_column.py<|end_file_name|><|fim▁begin|># -*- coding: utf8 -*- "CountColumn filter" from .abstract import AbstractFilter<|fim▁hole|> "Count a flux's column and put the result in a variable" name = 'Compter colonnes' description = "Compte le nombre de colonnes d'un flux et met le résultat ...
class CountColumn(AbstractFilter):
<|file_name|>htmlimageelement.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::document_loader::{LoadBlocker, LoadType}...
} }
<|file_name|>leftnav.client.controller.js<|end_file_name|><|fim▁begin|>'use strict'; angular.module(ApplicationConfiguration.applicationModuleName).controller('LeftNavController', function(Authentication, $mdSidenav, Menus, $log) { this.authentication = Authentication; this.isCollapsed = false; this.menu = Menu...
this.toggleCollapsibleMenu = function() { $mdSidenav('left').toggle();
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># # # Copyright 2011,2013 Luis Ariel Vega Soliz, Uremix (http://www.uremix.org) and contributors.<|fim▁hole|># UADH 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 Sof...
# # # This file is part of UADH (Uremix App Developer Helper). #
<|file_name|>result_httpd.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # coding:utf-8 from __future__ import print_function 'PackagesHTTPD - stream folder content as .tar over http' __author__ = 'Mathias Gumz <mgumz@tpip.net>' __license__ = 'MPL2' __version__ = '' import sys import os, os.path import zipf...
def list_directory(self, path): try:
<|file_name|>RecipeClasspathHandler.java<|end_file_name|><|fim▁begin|>/** * Copyright Intellectual Reserve, 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...
}
<|file_name|>select_path.rs<|end_file_name|><|fim▁begin|>use http::Method; use matches::assert_matches; use ruma_common::api::{ error::IntoHttpError, select_path, MatrixVersion::{V1_0, V1_1, V1_2}, Metadata, }; const BASE: Metadata = Metadata { description: "", method: Method::GET, name: "t...
<|file_name|>test_suspenders.py<|end_file_name|><|fim▁begin|>import pytest from functools import partial from bluesky.preprocessors import suspend_wrapper from bluesky.suspenders import (SuspendBoolHigh, SuspendBoolLow, SuspendFloor, ...
def accum(msg): print(msg) msg_lst.append(msg)
<|file_name|>views.py<|end_file_name|><|fim▁begin|># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. #<|fim▁hole|># # Licensed under the Apache License, Version 2.0 ...
# Copyright 2012 Nebula, Inc. # Copyright 2012 OpenStack LLC
<|file_name|>update.test.js<|end_file_name|><|fim▁begin|>'use strict'; const Support = require('../support'); const DataTypes = require('../../../lib/data-types'); const chai = require('chai'); const sinon = require('sinon'); const expect = chai.expect; const current = Support.sequelize; const _ = require('lodash'); ...
const [, accounts] = await this.Account.update({ name: 'FooBar' }, { where: {
<|file_name|>datetime.rs<|end_file_name|><|fim▁begin|>// // imag - the personal information management suite for the commandline // Copyright (C) 2015-2020 Matthias Beyer <mail@beyermatthias.de> and contributors // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU ...
.map(|_| ())
<|file_name|>alloc.rs<|end_file_name|><|fim▁begin|>use std::mem; pub fn allocate<T>(num: usize) -> *mut T { let vec = Vec::<T>::with_capacity(num); let rptr = vec.as_ptr(); mem::forget(vec); rptr as *mut T }<|fim▁hole|>pub fn deallocate<T>(tofree: *mut T, num: usize) { unsafe { Vec::from_ra...
<|file_name|>ContextSettingsWidget.py<|end_file_name|><|fim▁begin|>from rezgui.qt import QtGui from rezgui.util import create_pane from rezgui.mixins.ContextViewMixin import ContextViewMixin from rezgui.models.ContextModel import ContextModel from rez.config import config from rez.vendor import yaml from rez.vendor.yam...
if not (flags & ContextModel.CONTEXT_CHANGED): return self._update_text()
<|file_name|>wordsquare.py<|end_file_name|><|fim▁begin|>from csp import * from collections import Counter class WordSquare: """ Find a word square of the given size from the given dictionary. """ alphabet = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ') def __init__(self, wordsfile): """ Co...
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>// @generated by Thrift for src/module.thrift // This file is probably not the place you want to edit! #![recursion_limit = "100000000"] #![allow(non_camel_case_types, non_snake_case, non_upper_case_globals, unused_crate_dependencies)] include!("impl_my_things.rs"); inc...
}
<|file_name|>oneOfArray.ts<|end_file_name|><|fim▁begin|>/* The MIT License Copyright (c) 2017-2019 EclipseSource Munich https://github.com/eclipsesource/jsonforms Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwa...
} } } };
<|file_name|>cohort-search.component.spec.tsx<|end_file_name|><|fim▁begin|>import * as React from 'react'; import { MemoryRouter } from 'react-router'; import { mount } from 'enzyme'; import { CohortBuilderApi, CriteriaType, Domain } from 'generated/fetch'; import { registerApiClient } from 'app/services/swagger-fetc...
expect(wrapper.find('[data-test-id="demographics"]').length).toBe(1);
<|file_name|>emails.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from django.core.mail import EmailMultiAlternatives from django.template import Context, Template from django.template.loader import get_template from helpers import ClientRouter, MailAssetsHelper, strip_accents class UserMail: """ ...
'project': project, 'edit_project_url': ClientRouter.edit_project_url(project.slug) }))
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>use serialize::json::{Json, ParserError}; use url::Url; use std::collections::HashMap; use std::io::IoError; use std::local_data::Ref; #[cfg(not(teepee))] pub use self::http::Client; #[cfg(teepee)] pub use self::teepee::Client; mod http; mod teepee; macr...
#![macro_escape]
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
from qdec_partial import get_ip_name from qdec_partial import QDEC
<|file_name|>config.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- import sys if sys.version_info < (3,): import ConfigParser else: import configparser as ConfigParser class Config: def __init__(self): self.interval = 30 self.access_key_id = None self.a...
self.access_key_secret = self.configParser.get("CONFIG", "access_key_secret") self.domain_name = self.configParser.get("CONFIG", "domain_name") self.sub_domain_name = self.configParser.get("CONFIG", "sub_domain_name") self.record_type = self.configParser.get("CONFIG", "re...
<|file_name|>tests_person_api.py<|end_file_name|><|fim▁begin|>__author__ = 'sweemeng' from rest_framework import status from popit.signals.handlers import * from popit.models import * from django.conf import settings import json import logging from popit.tests.base_testcase import BasePopitTestCase from popit.tests.bas...
} token = Token.objects.get(user__username="admin")
<|file_name|>ElementCreator.java<|end_file_name|><|fim▁begin|>/* * Copyright 2000-2015 JetBrains s.r.o. * * 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/licens...
public @NotNull PsiElement @NotNull [] tryCreate(@NotNull final String inputString) { if (inputString.isEmpty()) {
<|file_name|>dts_renderer_spec.ts<|end_file_name|><|fim▁begin|>/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import mapHelpers from 'convert-source-map'; import Mag...
INPUT_DTS_PROGRAM.contents += sourceMap.toComment(); const { renderer, decorationAnalyses,
<|file_name|>amd.js<|end_file_name|><|fim▁begin|>define(function () { 'use strict'; ({ get foo () { console.log( 'effect' ); return {}; } }).foo.bar; ({ get foo () { return {}; } }).foo.bar.baz; ({ get foo () { console.log( 'effect' ); return () => {}; } }).foo(); ({ get foo () { ...
({ get foo () { return () => () => console.log( 'effect' ); }
<|file_name|>Badge.d.ts<|end_file_name|><|fim▁begin|>import * as React from 'react'; import { SxProps } from '@mui/system'; import { OverridableStringUnion } from '@mui/types'; import { ExtendBadgeUnstyledTypeMap, BadgeUnstyledTypeMap } from '@mui/base/BadgeUnstyled'; import { Theme } from '../styles'; import { Overrid...
export type BadgeClassKey = keyof NonNullable<BadgeTypeMap['props']['classes']>; /** *
<|file_name|>watch_directory.py<|end_file_name|><|fim▁begin|>"""Working example of the ReadDirectoryChanges API which will track changes made to a directory. Can either be run from a command-line, with a comma-separated list of paths to watch, or used as a module, either via the watch_path generator or via the Watc...
from __future__ import generators import os, sys import atexit
<|file_name|>Raw.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # +---------------------------------------------------------------------------+ # | 01001110 01100101 01110100 01111010 01101111 01100010 | # | | # | ...
nbMaxBit = None if nbBytes is not None:
<|file_name|>RecognizeCleanerML.py<|end_file_name|><|fim▁begin|># vim: ts=4:sw=4:expandtab # BleachBit # Copyright (C) 2008-2017 Andrew Ziem # https://www.bleachbit.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the ...
import logging import os import random import sys
<|file_name|>pages.py<|end_file_name|><|fim▁begin|>from django.conf.urls import url from wagtail.admin.views import page_privacy, pages app_name = 'wagtailadmin_pages' urlpatterns = [ url(r'^add/(\w+)/(\w+)/(\d+)/$', pages.create, name='add'), url(r'^add/(\w+)/(\w+)/(\d+)/preview/$', pages.PreviewOnCreate.as_...
url(r'^search/$', pages.search, name='search'), url(r'^(\d+)/move/$', pages.move_choose_destination, name='move'),
<|file_name|>webglframebuffer.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/. */ // https://www.khronos.org/registry/webgl/specs/late...
// to be attached to the framebuffer and must be // 0. Otherwise, INVALID_VALUE is generated." if level != 0 { return Err(WebGLError::InvalidValue);
<|file_name|>mount.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 base::prelude::*; use core::{mem}; use core::ops::{BitOr, Not,...
/// = Remarks ///
<|file_name|>PDMDevHlp.cpp<|end_file_name|><|fim▁begin|>/* $Id: PDMDevHlp.cpp $ */ /** @file * PDM - Pluggable Device and Driver Manager, Device Helpers. */ /* * Copyright (C) 2006-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org...
LogFlow(("pdmR3DevHlp_GetCpuId: caller='%s'/%d: returns void - *pEax=%#x *pEbx=%#x *pEcx=%#x *pEdx=%#x\n", pDevIns->pReg->szName, pDevIns->iInstance, *pEax, *pEbx, *pEcx, *pEdx));
<|file_name|>stub.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import unicode_literals #=============================================================================== # # Dependencies # #------------------------------------------------------------------------------- from ...
#-------------------------------------------------------------------------------
<|file_name|>sysex.rs<|end_file_name|><|fim▁begin|>// This file is part of a6-tools. // Copyright (C) 2017 Jeffrey Sharp // // a6-tools is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the...
<|file_name|>filters.component.ts<|end_file_name|><|fim▁begin|>import { FilterService, Filter, FilterTree, FilterType, FilterIndex } from 'lib/filter'; import { Component, EventEmitter, OnInit, Input, Output } from '@angular/core'; @Component({ selector: 'iw-filters', templateUrl: './filters.component.html', sty...
this.createNestedFilters(); }
<|file_name|>binomial_prob.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """ Let's say we play a game where I keep flipping a coin until I get heads. If the first time I get heads is on the nth coin, then I pay you 2n-1 dollars. How much would you pay me to play this game? You should end up with a sequence tha...
<|file_name|>main.go<|end_file_name|><|fim▁begin|>// Take well-formed json from a sensu check result a context rich html document to be mail to // one or more addresses. // // LICENSE: // Copyright 2016 Yieldbot. <devops@yieldbot.com> // Released under the MIT License; see LICENSE // for details. package main i...
// "github.com/yieldbot/sensumailer/lib" "github.com/yieldbot/sensuplugin/sensuhandler" "github.com/yieldbot/sensuplugin/sensuutil"
<|file_name|>Item.js<|end_file_name|><|fim▁begin|>/* * Paper.js * * This file is part of Paper.js, a JavaScript Vector Graphics Library, * based on Scriptographer.org and designed to be largely API compatible. * http://paperjs.org/ * http://scriptographer.org/ * * Copyright (c) 2011, Juerg Lehni & Jonathan Puck...
secondPath.insertBelow(firstPath); equals(function() {
<|file_name|>webpack.config.js<|end_file_name|><|fim▁begin|>var webpack = require('webpack');<|fim▁hole|> entry: './main.jsx', output: { path: './output', publicPath: '/output', filename: 'bundle.js' }, module: { loaders: [ { test: /\.jsx/, loader: 'jsx-loader' } ] }, watch: true };<|fim▁end|>
var path = require('path'); module.exports = {
<|file_name|>apiKeys.js<|end_file_name|><|fim▁begin|>module.exports = { visionKey: 'AIzaSyAA14j-7sIJLDTRZd3bYpZrmCEoFA9IN40', pairingID: 'b5378ca6', pairingKey: '690be2968f8f08b26fcc1f2c9c8f5b90', recipesKey: 'qAjqbB5sPamshJwWJJh01Y3exb3Jp1wBzcOjsnrqegcRf1PCXT',<|fim▁hole|> backUpRecipesKey: 'jHbWfZqPEUmsh0NEl...
<|file_name|>ScrollableTabBar.js<|end_file_name|><|fim▁begin|>const React = require('react'); const { ViewPropTypes } = ReactNative = require('react-native'); const { View, Animated, StyleSheet, ScrollView, Text, Platform, Dimensions, I18nManager } = ReactNative; const Button = require('./Button'); //i...
},
<|file_name|>urls.py<|end_file_name|><|fim▁begin|># -*- coding:utf-8 -*- from django.conf.urls import url, patterns from rango import views urlpatterns = patterns('', url(r'^$', views.index, name='index'), url(r'^about/$', views.about, name='about'), # 匹配URL斜杠前所有的字母数字 # 例如 a-z, A-Z, 或者 0-9)和连字符(- #...
<|file_name|>send_raw.js<|end_file_name|><|fim▁begin|>/* * Copyright 2015 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.<|fim▁hole|> * Unless required by applicable law or agreed to in writing, software * distribut...
* You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *
<|file_name|>buildVideoXML.py<|end_file_name|><|fim▁begin|>#!/Library/Frameworks/Python.framework/Versions/Current/bin/python import os from os.path import join, getsize from random import randint def addEntry (XMLFile, finfo, dirs, NASPath): #finfo[1].replace(' ', '_') finfo[1] = finfo[1].replace('.', '_', fi...
genre = 'Tom and Frederika' pathlist = finfo[0].split('/')
<|file_name|>printbin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python from pcitweak.bitstring import BitString for n in range(0x10): b = BitString(uint=n, length=4)<|fim▁hole|><|fim▁end|>
print " % 3d 0x%02x %s" % (n, n, b.bin)
<|file_name|>test.js<|end_file_name|><|fim▁begin|>/** * 'json' test suite * * Usage: * nodeunit test.js * * Can limit the tests with the 'TEST_ONLY' environment variable: a * space-separated lists of dir names to which to limit. E.g.: * TEST_ONLY=hello-server nodeunit test.js * Can also prefix with a...
}
<|file_name|>condor_IBCC.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python __author__ = 'greghines' import numpy as np import os import pymongo import sys import cPickle as pickle import bisect import random import csv import matplotlib.pyplot as plt if os.path.exists("/home/ggdhines"): base_directory = "/home...
try: for animal in markings.values():
<|file_name|>aarch64.rs<|end_file_name|><|fim▁begin|>use dynasmrt::{dynasm, DynasmApi, DynasmLabelApi}; use std::{io, slice, mem}; use std::io::Write; fn main() { let mut ops = dynasmrt::aarch64::Assembler::new().unwrap(); let string = "Hello World!"; dynasm!(ops ; .arch aarch64 ; ->hello...
let buf = ops.finalize().unwrap(); let hello_fn: extern "C" fn() -> bool = unsafe { mem::transmute(buf.ptr(hello)) };
<|file_name|>TcamView.py<|end_file_name|><|fim▁begin|># Copyright 2017 The Imaging Source Europe GmbH # # 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/LICENS...
pipeline_str = ("tcambin serial={serial} name=bin use-dutils={dutils} " "! video/x-raw,format=BGRx "
<|file_name|>ExtrinsicRegistry.cpp<|end_file_name|><|fim▁begin|>#include "Registry.hpp" <|fim▁hole|><|fim▁end|>
Registry::ExtrinsicRegistry::ExtrinsicRegistry() : window{}, splitter{}, GUI{new GuiSettings{}} {}
<|file_name|>ref_.rs<|end_file_name|><|fim▁begin|>use serde_json::Value; use url;<|fim▁hole|>use super::super::scope; #[allow(missing_copy_implementations)] pub struct Ref { pub url: url::Url, } impl super::Validator for Ref { fn validate(&self, val: &Value, path: &str, scope: &scope::Scope) -> super::Validat...
<|file_name|>index.ts<|end_file_name|><|fim▁begin|>export * from './login.component';<|fim▁hole|><|fim▁end|>
export * from './login-vm.model';
<|file_name|>funcion1.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ Created on Wed Dec 21 20:05:40 2016 @author: lucia """ <|fim▁hole|> print('Primera funcion de mi projecttwo') print('Modifico la primera funcion 2')<|fim▁end|>
def funcion1():
<|file_name|>OpenGamaWebsiteHandler.java<|end_file_name|><|fim▁begin|>/********************************************************************************************* * * 'OpenGamaWebsiteHandler.java, in plugin ummisco.gama.ui.shared, is part of the source code of the * GAMA modeling and simulation platform. * (v. 1....
import org.eclipse.core.commands.ExecutionException; import msi.gama.runtime.GAMA;
<|file_name|>SipInterfaceListener.java<|end_file_name|><|fim▁begin|><|fim▁hole|> * * This file is part of MjSip (http://www.mjsip.org) * * MjSip is free software; you can redistribute it and/or modify * it under the terms of the Affero GNU General Public License as published by * the Free Software Foundation; ei...
/* * Copyright (C) 2005 Luca Veltri - University of Parma - Italy
<|file_name|>JsonTreeEditListPropertyJavascriptTest.shouldFailReadLastIndexOfNonArray.js<|end_file_name|><|fim▁begin|>var node = S(input, "application/json");<|fim▁hole|><|fim▁end|>
node.lastIndexOf("test");
<|file_name|>d3dbuffer.cpp<|end_file_name|><|fim▁begin|>/* SoftTH, Software multihead solution for Direct3D Copyright (C) 2005-2012 Keijo Ruotsalainen, www.kegetys.fi 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 Softw...
#include "d3dbuffer.h"
<|file_name|>todo.py<|end_file_name|><|fim▁begin|>from flask import Flask from flask.ext.restful import reqparse, abort, Api, Resource app = Flask(__name__) api = Api(app) TODOS = { 'todo1': {'task': 'build an API'}, 'todo2': {'task': '?????'}, 'todo3': {'task': 'profit!'}, } def abort_if_todo_doesnt_exi...
<|file_name|>std.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011, De Verkeersonderneming <rits@verkeersonderneming.nl> # # This file is part of PyRITS - A tool for processing and analyzing transport # management system data. # # PyRITS is free software: you can redis...
<|file_name|>core.py<|end_file_name|><|fim▁begin|>import numpy as np, time, itertools from collections import OrderedDict from .misc_utils import * from . import distributions concat = np.concatenate import theano.tensor as T, theano from importlib import import_module import scipy.optimize from .keras_theano_setup imp...
yield validate_probtype, categorical, prob_categorical def validate_probtype(probtype, prob):
<|file_name|>logging_utils.py<|end_file_name|><|fim▁begin|>import logging from logging.handlers import RotatingFileHandler import os from appdirs import user_cache_dir def configure_logging(): cache_dir = user_cache_dir(appname='spoppy') LOG_FILE_NAME = os.path.join( cache_dir, 'spoppy.log' ) ...
<|file_name|>LatinLayout.js<|end_file_name|><|fim▁begin|>'use strict'; Object.defineProperty(exports, "__esModule", { value: true });<|fim▁hole|><|fim▁end|>
exports.default = [['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'], ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'], ['z', 'x', 'c', 'v', 'b', 'n', 'm']]; module.exports = exports['default'];
<|file_name|>coding.rs<|end_file_name|><|fim▁begin|>//! Coding system handler. use remacs_macros::lisp_fn; use crate::{ data::aref, eval::unbind_to, hashtable::{ gethash, HashLookupResult::{Found, Missing}, LispHashTableRef, }, lisp::LispObject, lists::{get, put}, m...
code_convert_string( string,
<|file_name|>browserify.js<|end_file_name|><|fim▁begin|>module.exports = {<|fim▁hole|> 'dist/geo.js': ['src/index.js'], } } };<|fim▁end|>
dist: { files: {
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import url from profiles import views urlpatterns = [ url( regex=r"^edit/$", view=views.ProfileEditUpdateView.as_view(), name="profile_edit" ), url( regex="^confirm_role/(?P<membership_id>[-\w]+)/(?P<ac...
]
<|file_name|>tri-state-checkbox-test.js<|end_file_name|><|fim▁begin|>import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import styles from 'irene/components/tri-state-checkbox/index.scss';...
assert.equal(checkbox.checked, true); const label = this.element.querySelector('[data-test-label]');
<|file_name|>units.py<|end_file_name|><|fim▁begin|>order = ['','K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'] class Sizes(object): _BASE = 1000. def toSize(self, value, input='', output='K'): """ Convert value in other measurement """ input = order.index(input) output = order....
class Bytes(Sizes): _BASE = 1024.
<|file_name|>design_stack.py<|end_file_name|><|fim▁begin|>""" Implementation of stack data structure in Python. """ class Stack: def __init__(self,*vargs): self.stack = list(vargs) def __repr__(self): return str(self.stack) def top(self): return self.stack[0] def push(self,el...
self.stack.insert(0,elem) def pop(self):
<|file_name|>service.go<|end_file_name|><|fim▁begin|>// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package groundstation import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "...
<|file_name|>grunt-spritesmith.js<|end_file_name|><|fim▁begin|>// Load in dependencies var fs = require('fs'); var path = require('path'); var _ = require('underscore'); var async = require('async'); var templater = require('spritesheet-templates'); var spritesmith = require('spritesmith'); var url = require('url2'); ...
retinaCleanCoords.push(coords); }); // Generate groups for our coordinates
<|file_name|>SequenceA.java<|end_file_name|><|fim▁begin|>package com.moon.threadlocal; import org.junit.Test; /** * Created by Paul on 2017/2/12. */<|fim▁hole|> private static int number=0; @Override public int getNumber(){ number=number+1; return number; } }<|fim▁end|>
public class SequenceA implements Sequence{
<|file_name|>HorizonHoe.java<|end_file_name|><|fim▁begin|>package com.kraz.minehr.items; import com.kraz.minehr.MineHr; import com.kraz.minehr.reference.Reference; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.ItemHoe; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.rel...
}
<|file_name|>test_geometry.py<|end_file_name|><|fim▁begin|>import mpi4py, petsc4py from petsc4py import PETSc import numpy as np import pytest import gridPy import geometryPy petsc4py.init() petscComm = petsc4py.PETSc.COMM_WORLD comm = petscComm.tompi4py() rank = comm.Get_rank() numProcs = comm.Get_size() PETSc.Sys.P...