prompt large_stringlengths 70 991k | completion large_stringlengths 0 1.02k |
|---|---|
<|file_name|>CalendarUtil.java<|end_file_name|><|fim▁begin|>package com.yoavst.quickapps.calendar;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.CalendarContract;
import android.provider... | hour = hoursArray[0];
hours = hoursArray[1];
String[] dayArray = context.getString(R.string.day_s).split("/"); |
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>pub const C_IRUSR: ::int_t = 0o000400;
pub const C_IWUSR: ::int_t = 0o000200;
pub const C_IXUSR: ::int_t = 0o000100;
pub const C_IRGRP: ::int_t = 0o000040;
pub const C_IWGRP: ::int_t = 0o000020;<|fim▁hole|>pub const C_IROTH: ::int_t = 0o000004;
pub const C_IWOTH: ... | pub const C_IXGRP: ::int_t = 0o000010; |
<|file_name|>economy.py<|end_file_name|><|fim▁begin|>import discord
from discord.ext import commands
from cogs.utils.dataIO import dataIO
from collections import namedtuple, defaultdict
from datetime import datetime
from random import randint
from random import choice as randchoice
from copy import deepcopy
from .utils... | |
<|file_name|>SystemInfo_impl_ari_1_7_0.java<|end_file_name|><|fim▁begin|>package ch.loway.oss.ari4java.generated.ari_1_7_0.models;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: ... |
@JsonDeserialize( as=String.class )
public void setVersion(String val ) {
version = val; |
<|file_name|>daneel-ai.py<|end_file_name|><|fim▁begin|>#! /usr/bin/python
try:
import requirements
except ImportError:
pass
import time
import random
import logging
import sys
import os
import inspect
from optparse import OptionParser
import tp.client.threads
from tp.netlib.client import url2bits
from tp.netlib i... | |
<|file_name|>Ontology.py<|end_file_name|><|fim▁begin|>"""
BIANA: Biologic Interactions and Network Analysis
Copyright (C) 2009 Javier Garcia-Garcia, Emre Guney, Baldo Oliva
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... | |
<|file_name|>Menu.java<|end_file_name|><|fim▁begin|>package omr.gui;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.s... | // Undo
JMenuItem undo = new JMenuItem("Undo", KeyEvent.VK_U); |
<|file_name|>search.py<|end_file_name|><|fim▁begin|>import xml.etree.cElementTree as et
from collections import OrderedDict
from tabletopscanner.boardgamegeekapi.parsers import Deserializer
<|fim▁hole|> return [SearchParser.__make_search_result(el) for el in tree.findall('item')]
@staticmethod
def __ma... |
class SearchParser(Deserializer):
def deserialize(self, xml):
tree = et.fromstring(xml) |
<|file_name|>photoswipe-ui-default.js<|end_file_name|><|fim▁begin|>/*! PhotoSwipe Default UI - 4.1.2 - 2017-04-05
* http://photoswipe.com
* Copyright (c) 2017 Dmitry Semenov; */
/**
*
* UI on top of main sliding area (caption, arrows, close button, etc.).
* Built just using public methods/properties of PhotoSwipe.
*
*... | _options.closeOnScroll = false;
if(this.enterK === 'webkitRequestFullscreen') { |
<|file_name|>test_paramiko_ssh.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 ... | sd = "/root/random_script.sh"
# Connect behavior |
<|file_name|>_legendrank.py<|end_file_name|><|fim▁begin|>import _plotly_utils.basevalidators
class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="legendrank", parent_name="scatter", **kwargs):
super(LegendrankValidator, self).__init__(
plotly... | **kwargs
) |
<|file_name|>doc.rs<|end_file_name|><|fim▁begin|>// Used only by Serde doc tests. Not public API.
use lib::*;
use ser;
#[doc(hidden)]
#[derive(Debug)]
pub struct Error;
impl ser::Error for Error {
fn custom<T>(_: T) -> Self
where
T: Display,
{
unimplemented!()
}
}
#[cfg(feature = "s... | #[macro_export]
macro_rules! __private_serialize {
() => { |
<|file_name|>07A_1_strip_headers.py<|end_file_name|><|fim▁begin|>def strip_headers(post):
"""Find the first blank line and drop the headers to keep the body"""
if '\n\n' in post:<|fim▁hole|> return body.lower()
else:
# Unexpected post inner-structure, be conservative
# and keep everyt... | headers, body = post.split('\n\n', 1) |
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>from distutils.core import setup
version = '1.1.1'
setup(name='CacheGenerator',
version=version,<|fim▁hole|> author="Ricardo Santos",
author_email="ricardo@getgears.com",
url="http://github.com/ricardovice/CacheGenerator/",
packages = ['c... | description="CacheGenerator for Django", |
<|file_name|>address.ts<|end_file_name|><|fim▁begin|>// @ts-ignore
import Fragment from "ember-data-model-fragments/fragment";
import Store from "@ember-data/store";
import { attr } from "@ember-data/model";
import { computed } from "@ember/object";
import { isBlank } from "@ember/utils";
import { task } from "ember-co... | "sortingCode",
"addressLine1", |
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | @@TaskType
@@NanLossDuringTrainingError |
<|file_name|>session_support.py<|end_file_name|><|fim▁begin|># Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.a... | shutdown_timeout=3600):
"""Start global worker watchdog to shutdown workers on coordinator exit.""" |
<|file_name|>translit_language_pack.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*-
__title__ = 'transliterate.contrib.languages.hi.translit_language_pack'
__author__ = 'Artur Barseghyan'
__copyright__ = 'Copyright (c) 2013 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('HindiLanguagePack',)
fr... | } |
<|file_name|>train_model.py<|end_file_name|><|fim▁begin|># coding=utf-8
import os
import csv
import time
import random
import operator
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data as mnist_input_data
def main():
# Test classification using the following code... | return 10
def get_validation_batch(self, size=None):
return self._get_batch(self._mnist.validation, size, 5000) |
<|file_name|>mc_noc.py<|end_file_name|><|fim▁begin|>import ArtusConfigBase as base
import mc
def config():
conf = mc.config()
l = []
for pipeline in conf['Pipelines']:
if not pipeline.startswith('all'):
l.append(pipeline)
elif 'CHS' not in pipeline:
l.append(pipelin... | |
<|file_name|>file.rs<|end_file_name|><|fim▁begin|>use std::io::{Read, Write};
use std::io::BufReader;
use std::io::BufRead;
use std::path::{PathBuf, Path};
use std::fs::{File, DirBuilder, OpenOptions};
pub fn read_file<P: AsRef<Path>>(file: P) -> Result<String, String> {
let mut file = File::open(file)
.ma... | |
<|file_name|>JoinGameController.js<|end_file_name|><|fim▁begin|>app.controller('JoinGameController', function ($scope, $location, authorization, identity, ticTacToeData, notifier) {
'use strict';
$scope.joinGame = function (gameId) {
if (identity.isAuthenticated() === true) {
ticTacToeData.... | notifier.error('Please login!');
}
};
|
<|file_name|>test_geniejob.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import, division, print_function, unicode_literals
import os
import unittest
from mock import patch
from nose.tools import assert_equals, assert_raises
import pygenie
from ..utils import FakeRunningJob
assert_equals.__self_... | def test_genie_memory(self): |
<|file_name|>residualForHighOrderBC.cc<|end_file_name|><|fim▁begin|>#include "../../include/model/model.h"
/*
*residual for high order boundary condition
*/
template <class T, int dim>
void model<T, dim>::residualForHighOrderBC(knotSpan<dim>& cell, IGAValues<dim>& fe_values, dealii::Table<1, T >& ULocal, dealii::Table... | for (unsigned int q=0; q<fe_values.n_face_quadrature_points; ++q){
for (unsigned int i=0; i<dim; ++i){
for (unsigned int j=0; j<dim; ++j){
uij[q][i][j]=0.0; |
<|file_name|>Displays.java<|end_file_name|><|fim▁begin|>/*
* Copyright (C) 2017 GedMarc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... | * CSS1 JavaScript syntax: object.style.display="inline" |
<|file_name|>sort_an_array_of_composites.rs<|end_file_name|><|fim▁begin|>// http://rosettacode.org/wiki/Sort_an_array_of_composite_structures
#[derive(Debug, PartialEq)]
pub struct Element {
name: String,
value: String,
}
impl Element {
fn new(name: &str, value: &str) -> Element {
Element {
... | vec![ |
<|file_name|>helpers.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.conf import settings
def duplicate_txn_id(ipn_obj):
"""Returns True if a record with this transaction id exists and it is not
a payment which has gone from pending to completed.<|fim▁hole|> """
... | |
<|file_name|>IModelCollection.ts<|end_file_name|><|fim▁begin|>/**
* This file is a part of ComposerSymlinkLocal
*/
"use strict";
interface IModelCollection<T> extends IterableIterator<T>
{
/**
* Pushes model instance into collection
* @param modelInstance
*/
push(modelInstance : T) : void;
... | toArray() : Array<T>
merge(collection : IModelCollection<T>); |
<|file_name|>handler.go<|end_file_name|><|fim▁begin|>package raft
import (
"encoding/json"
"io"
"net/http"
"net/url"
"path"
"strconv"
)
// HTTPHandler represents an HTTP endpoint for Raft to communicate over.
type HTTPHandler struct {
log *Log
}
// NewHTTPHandler returns a new instance of HTTPHandler associat... | |
<|file_name|>server.rs<|end_file_name|><|fim▁begin|>extern crate websocket;
extern crate iron;
extern crate staticfile;
extern crate mount;
use std::sync::mpsc::{channel, Sender, Receiver};
use std::{thread, time};
mod shared;
mod http_server;
mod websocket_server;
use http_server::start_http;
use websocket_server::s... | |
<|file_name|>border.rs<|end_file_name|><|fim▁begin|>// Copyright 2013-2017, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
use ffi;
use glib::translate::*;
use std:... | } |
<|file_name|>unpark_mutex.rs<|end_file_name|><|fim▁begin|>use std::cell::UnsafeCell;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering::SeqCst;
/// A "lock" around data `D`, which employs a *helping* strategy.
///
/// Used to ensure that concurrent `unpark` invocations lead to (1) `poll` being
/// in... | |
<|file_name|>ge.hpp<|end_file_name|><|fim▁begin|>//==============================================================================
// Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost... | //============================================================================== |
<|file_name|>SquareDistanceMapping.cpp<|end_file_name|><|fim▁begin|>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* ... | } // namespace mapping
} // namespace component
|
<|file_name|>AbstractErrorUnmarshaller.java<|end_file_name|><|fim▁begin|>/*
* Copyright 2011-2019 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 i... | }
|
<|file_name|>UInt64.py<|end_file_name|><|fim▁begin|># encoding: utf-8
# module _dbus_bindings
# from /usr/lib/python2.7/dist-packages/_dbus_bindings.so<|fim▁hole|>"""
Low-level Python bindings for libdbus. Don't use this module directly -
the public API is provided by the `dbus`, `dbus.service`, `dbus.mainloop`
and `db... | # by generator 1.135 |
<|file_name|>TeapotRenderer.cpp<|end_file_name|><|fim▁begin|>/*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | bool TeapotRenderer::LoadShaders(SHADER_PARAMS* params, const char* strVsh, |
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>from __future__ import division, absolute_import, print_function,\
unicode_literals
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup, Extension
from distutils.core import Extension
from distutils.erro... | "alternative on some"
) |
<|file_name|>time_hash_map_fill.cpp<|end_file_name|><|fim▁begin|>/*
Copyright 2005-2010 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks.
Threading Building Blocks is free software; you can redistribute it
and/or modify it under the terms of the GNU General Publi... | #define BOX2HEADER "tbb/concurrent_unordered_map.h"
// enable/disable tests for:
//#define BOX3 "OLD" |
<|file_name|>RoomPreviewBar-test.tsx<|end_file_name|><|fim▁begin|>/*
Copyright 2021 The Matrix.org Foundation C.I.C.
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... | |
<|file_name|>Arasaac.js<|end_file_name|><|fim▁begin|>import React from 'react'
import PropTypes from 'prop-types'
import A from 'components/A'
const Arasaac = ({ link }) =>
link ? (
<A href={'http://www.arasaac.org'} target='_blank' alt='Arasaac'>
ARASAAC (http://www.arasaac.org)<|fim▁hole|> </A>
) : ... | |
<|file_name|>app-routing.module.ts<|end_file_name|><|fim▁begin|>import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PantryComponent } from './components';
import { LoginComponent } from './components';
import { UserCreationComponent } from './components'
import {... | @NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule] |
<|file_name|>Context.java<|end_file_name|><|fim▁begin|>package net.sf.memoranda.util;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import net.sf.memoranda.ui.AppFrame;
/**
* <p>
* Title:
* </p>
* <p>
* Description:
* </p><|fim▁hole|> * Copyright: Copyright (c) 2002
* </p>
* <p>
*... | * <p> |
<|file_name|>ndt_randtype.py<|end_file_name|><|fim▁begin|>#
# BSD 3-Clause License
#
# Copyright (c) 2017-2018, plures
# 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 sou... | #
# 3. Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from |
<|file_name|>excerpt.py<|end_file_name|><|fim▁begin|>"""
Add an excerpt field to the page.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
def ... | def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options(_('Excerpt'), {
'fields': ('excerpt',),
'classes': ('collapse',), |
<|file_name|>config.py<|end_file_name|><|fim▁begin|>def can_build(env, platform):
return True
def configure(env):<|fim▁hole|>
def get_doc_classes():
return [
"NetworkedMultiplayerENet",
]
def get_doc_path():
return "doc_classes"<|fim▁end|> | pass |
<|file_name|>bot.js<|end_file_name|><|fim▁begin|>#!/usr/bin/env node
'use strict';
/*All Includes needed for the Bot Core*/
var isfile = function(name) {
require('fs').exists(name, function(exists) {
return exists;
});
};
var jsonfile = require('jsonfile');
var configfile = 'config.json';
var Event = require(... | });
} else {
console.log("[INFORMATION] Config file found! Loading......."); |
<|file_name|>AnnotationNote.tsx<|end_file_name|><|fim▁begin|>import { createElement } from 'react'
import omit from 'lodash/omit'
import { useSpring, animated } from '@react-spring/web'
import { useTheme, useMotionConfig } from '@nivo/core'
import { NoteSvg } from './types'
export const AnnotationNote = <Datum,>({
... | const theme = useTheme()
const { animate, config: springConfig } = useMotionConfig()
|
<|file_name|>stemwords.py<|end_file_name|><|fim▁begin|>import sys
import re
import codecs
import snowballstemmer
def usage():
print('''usage: %s [-l <language>] [-i <input file>] [-o <output file>] [-c <character encoding>] [-p[2]] [-h]
The input file consists of a list of words to be stemmed, one per
line. Words... | and output files. If it is omitted, the UTF-8 encoding is used.
If -p is given the output file consists of each word of the input
file followed by \"->\" followed by its stemmed equivalent. |
<|file_name|>create_labels.py<|end_file_name|><|fim▁begin|>from os import path
s1 = 'one seven three five one six two six six seven'
s2 = 'four zero two nine one eight five nine zero four'
s3 = 'one nine zero seven eight eight zero three two eight'
s4 = 'four nine one two one one eight five five one'
s5 = 'eight six t... | s32 = 'Goodbye'
s33 = 'Hello'
s34 = 'How are you' |
<|file_name|>Department.java<|end_file_name|><|fim▁begin|>package examples.model;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity<|fim▁hole|> private String name;
@OneToMany(mappedBy="department"... | public class Department {
@Id
private int id; |
<|file_name|>runtests.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python
import glob
import os
import sys
import unittest
import common
if len(sys.argv) > 1:
builddir = sys.argv[1]
no_import_hooks = True
else:
builddir = '..'
no_import_hooks = False
common.run_import_tests(builddir, no_import_hooks... | suite.addTest(loader.loadTestsFromName(name))
testRunner = unittest.TextTestRunner()
testRunner.run(suite) |
<|file_name|>first_person.rs<|end_file_name|><|fim▁begin|>#![allow(dead_code)]
//! A first person camera.
use input::{ Button, GenericEvent };
use vecmath::traits::{ Float, Radians };
use Camera;
bitflags!(pub struct Keys: u8 {
const MOVE_FORWARD = 0b00000001;
const MOVE_BACKWARD = 0b00000010;
const ST... |
impl<T> FirstPersonSettings<T> |
<|file_name|>UserErrorMetadata.java<|end_file_name|><|fim▁begin|>package com.noeasy.money.exception;
public class UserErrorMetadata extends BaseErrorMetadata {
public static final UserErrorMetadata USER_EXIST = new UserErrorMetadata(101, "User exit");
public static final UserErrorMetadata NULL_USER_BEAN =... | } |
<|file_name|>glue.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licen... | // The first argument is the "self" argument for drop
let params = unsafe { |
<|file_name|>HttpUtil.java<|end_file_name|><|fim▁begin|>package com.sectong.util;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
public class HttpUtil {... | |
<|file_name|>text.py<|end_file_name|><|fim▁begin|>__author__ = 'ysahn'
import logging
import json
import os
import glob
import collections
from mako.lookup import TemplateLookup
from mako.template import Template
from taskmator.task.core import Task
class TransformTask(Task):
"""
Class that transform a jso... | """
|
<|file_name|>BlogRepository.java<|end_file_name|><|fim▁begin|>package com.therealdanvega.blog.repository;
import com.therealdanvega.blog.domain.Blog;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the Blog entity.
*/
@SuppressWarnings("unused")
public... |
@Query("select blog from Blog blog where blog.user.login = ?#{principal.username}")
List<Blog> findByUserIsCurrentUser(); |
<|file_name|>test_ghmm.py<|end_file_name|><|fim▁begin|>from __future__ import print_function, division
import warnings
from itertools import permutations
import hmmlearn.hmm
import numpy as np
import pickle
import tempfile
from sklearn.pipeline import Pipeline
from msmbuilder.example_datasets import AlanineDipeptid... | |
<|file_name|>server_new.js<|end_file_name|><|fim▁begin|>/*
Copyright (c) 2011, Claus Augusti <claus@formatvorlage.de>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code ... | , mod_connect.query()
, mod_connect.router(function (app) {
app.get(/^\/.+\/([^\/]*)(\/htdocs\/.*\.html)$/, mod_frontcontroller.handleViewRequest); |
<|file_name|>blinds.py<|end_file_name|><|fim▁begin|># OpenShot Video Editor is a program that creates, modifies, and edits video files.
# Copyright (C) 2009 Jonathan Thomas
#
# This file is part of OpenShot Video Editor (http://launchpad.net/openshot/).
#
# OpenShot Video Editor is free software: you can redistribut... | |
<|file_name|>bezier.rs<|end_file_name|><|fim▁begin|>//! https://en.wikipedia.org/wiki/B%C3%A9zier_curve
use turtle::{Turtle, Point};
struct CubicBezier {
point0: Point,
point1: Point,
point2: Point,
point3: Point,
}
impl CubicBezier {
/// Returns the value of this curve at the given point
pub... |
fn main() {
let mut turtle = Turtle::new();
|
<|file_name|>app.controller.js<|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.<|fim▁hole|> *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is d... | * You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0 |
<|file_name|>_cartesian_eigs1.py<|end_file_name|><|fim▁begin|>from pycp2k.inputsection import InputSection
from ._each421 import _each421
<|fim▁hole|> self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename = None
self.Log_print_key = ... |
class _cartesian_eigs1(InputSection):
def __init__(self):
InputSection.__init__(self) |
<|file_name|>users.client.routes.js<|end_file_name|><|fim▁begin|>(function () {
'use strict';
// Setting up route
angular
.module('app.users')
.run(appRun);
// appRun.$inject = ['$stateProvider'];
/* @ngInject */
function appRun(routerHelper) {
routerHelper.configureStates(getStates());
}
... | |
<|file_name|>createObject.ts<|end_file_name|><|fim▁begin|>export function createObject(keys: string[], values: any[]) {<|fim▁hole|><|fim▁end|> | return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any);
} |
<|file_name|>xorg_driver.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|> | ../../../../share/pyshared/jockey/xorg_driver.py |
<|file_name|>build.py<|end_file_name|><|fim▁begin|>from tasks.cache import cache_issues
from tasks.cache import cache_pulls
from tasks.cache import cache_commits
from tasks.cache import oldest_issues
from tasks.cache import oldest_pulls
from tasks.cache import least_issues
from tasks.cache import least_pulls<|fim▁hole|... | from tasks.cache import issues_closed_since
from tasks.cache import issues_opened_since
from tasks.cache import unassigned_pulls |
<|file_name|>urh_rc.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.9.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x07\x27\
\x00\
\x00\x1a\x8b\x78\x9c\xe5\x58\... | \xa8\x7c\x86\x89\xc9\x6e\x26\xc6\x77\xb3\x67\xfb\xf7\x18\x1e\x74\
\x82\x3c\x95\x8e\xb9\xad\xf4\xe3\x96\xfa\xcb\xd3\x7d\x7f\x26\x0b\
\x42\x61\xe3\xcf\x64\x65\xb1\x94\x49\x61\x4c\x9d\x76\x46\xcf\x70\
\x6d\xe0\x98\xb0\x01\x9c\x15\xbd\x97\xd8\xb5\xfd\xdf\x98\x1c\xdf\ |
<|file_name|>remote_try_unittest.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import mox
import os
import sys
import shutil
import t... | |
<|file_name|>uniform_assigner.py<|end_file_name|><|fim▁begin|># Copyright (c) OpenMMLab. All rights reserved.
import torch
from ..builder import BBOX_ASSIGNERS
from ..iou_calculators import build_iou_calculator
from ..transforms import bbox_xyxy_to_cxcywh
from .assign_result import AssignResult
from .base_assigner imp... | |
<|file_name|>index.d.ts<|end_file_name|><|fim▁begin|>// Type definitions for D3JS d3-scale module v1.0.3
// Project: https://github.com/d3/d3-scale/
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// Definitions:... | // -------------------------------------------------------------------------------
|
<|file_name|>Create_Modify_Interface.py<|end_file_name|><|fim▁begin|>## This file is part of Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published ... | the elements already defined for the initial submission i.e. SBI
action (The only page that needs to be built for the modification |
<|file_name|>border.mako.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/. */
<%namespace name="helpers" file="/helpers.mako.rs" />
<% ... | #[inline] pub fn get_initial_value() -> computed_value::T { |
<|file_name|>api.py<|end_file_name|><|fim▁begin|># pylint: disable=W0611
# flake8: noqa<|fim▁hole|><|fim▁end|> | from pandas.core.arrays.sparse import SparseArray, SparseDtype
from pandas.core.sparse.series import SparseSeries
from pandas.core.sparse.frame import SparseDataFrame |
<|file_name|>default_config_parser.py<|end_file_name|><|fim▁begin|>import yaml as yaml
from astropy import units
import re
class DefaultParser:
"""Not invented here syndrome"""
__check = {}
__convert = {}
__list_of_leaf_types = []
def __init__(self, default_dict):
self.__registe... | |
<|file_name|>test_check.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
#<|fim▁hole|># Unless required by applicable law or agreed to in writing, software
# dist... | # http://www.apache.org/licenses/LICENSE-2.0
# |
<|file_name|>dimension.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 information.
#
# Code generat... | :param name: |
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models<|fim▁hole|>
# Create your models here.
class Noticia(models.Model):
Publicado = 'Publicado'
Borrador = 'Borrador'
Titulo = models.CharField(max_length=... | |
<|file_name|>vc.py<|end_file_name|><|fim▁begin|>#
# Copyright (c) 2001 - 2019 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without l... | HOST_ARCH can be extracted from the passed env, unless its None, |
<|file_name|>modulegen__gcc_LP64.py<|end_file_name|><|fim▁begin|>from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warning... | |
<|file_name|>test_filter.py<|end_file_name|><|fim▁begin|>cases = [
('pmt.py -s 1 -n 20 populations, first without state filter',
'pmt.py -s 1 -n 20 populations'),<|fim▁hole|> ('pmt.py -s 2 -n 20 populations filter3, state filter limits population to 3',
'pmt.py -s 2 -n 20 populations filter3')
]<|fim▁e... | |
<|file_name|>mode.js<|end_file_name|><|fim▁begin|>/*jslint node: true*/
/*jslint expr: true*/
/*global describe, it*/
"use strict";
var irc = require('../..');
var Stream = require('stream').PassThrough;
describe('mode.js', function () {
describe('on MODE', function () {
it('should parse usermode', functi... | }); |
<|file_name|>gift_card_adjustment.py<|end_file_name|><|fim▁begin|>from ..base import ShopifyResource<|fim▁hole|>
class GiftCardAdjustment(ShopifyResource):
_prefix_source = "/admin/gift_cards/$gift_card_id/"
_plural = "adjustments"
_singular = "adjustment"<|fim▁end|> | |
<|file_name|>properties_5.js<|end_file_name|><|fim▁begin|>var searchData=<|fim▁hole|><|fim▁end|> | [
['uniquecount',['UniqueCount',['../class_standard_trie_1_1cs_1_1_prefix_trie.html#a82986e28b3191486a98cf874a1ae1b06',1,'StandardTrie::cs::PrefixTrie']]]
]; |
<|file_name|>test_qos_driver.py<|end_file_name|><|fim▁begin|># Copyright 2015 Mellanox Technologies, Ltd
#
# 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/... | |
<|file_name|>settings.py<|end_file_name|><|fim▁begin|>"""
Django settings for sample_project project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths... |
# Static files (CSS, JavaScript, Images) |
<|file_name|>broken-images.js<|end_file_name|><|fim▁begin|>//
// Copyright (C) 2017 - present Instructure, Inc.
//
// This file is part of Canvas.
//
// Canvas is free software: you can redistribute it and/or modify it under<|fim▁hole|>// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
// ... | // the terms of the GNU Affero General Public License as published by the Free
// Software Foundation, version 3 of the License.
//
// Canvas is distributed in the hope that it will be useful, but WITHOUT ANY |
<|file_name|>PersistentInformationXML.java<|end_file_name|><|fim▁begin|>/*
* Copyright 2003-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | |
<|file_name|>redirect_route_spec.ts<|end_file_name|><|fim▁begin|>import {
ComponentFixture,
AsyncTestCompleter,
TestComponentBuilder,
beforeEach,
ddescribe,<|fim▁hole|> el,
expect,
iit,
inject,
beforeEachProviders,
it,
xit
} from 'angular2/testing_internal';
import {Router, RouterOutlet, RouterL... | xdescribe,
describe, |
<|file_name|>LinkedBlockingDequeTest.java<|end_file_name|><|fim▁begin|>package org.mk300.marshal.minimum.test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Date;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.atomic.AtomicReferenceArray;
imp... | |
<|file_name|>color_test.py<|end_file_name|><|fim▁begin|>import os
from collections import namedtuple
from eg import color
from eg import config
from mock import patch
# Some hardcoded real colors.
_YELLOW = '\x1b[33m'
_MAGENTA = '\x1b[35m'
_BLACK = '\x1b[30m'
_GREEN = '\x1b[32m'
# The flags in the test file marking... | backticks='{BACKTICKS}',
backticks_reset='{BACKTICKS_RESET}', |
<|file_name|>ScanTargetStep.tsx<|end_file_name|><|fim▁begin|>import * as React from 'react';
import {
Card,
CardHeader,
CardText,
} from 'material-ui/Card';
import {
IWorkflowStepProps,
WorkflowActionTargets,
} from './workflow';
import ActionButtonContainer from './ActionButtonContainer';
export default ... | public static defaultProps: Partial<IWorkflowStepProps> = {
workflowStep: {
title: 'Default Title', |
<|file_name|>ut_dcpwidget.cpp<|end_file_name|><|fim▁begin|>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.<|fim▁hole|>** This file is part of duicontrolpanel.
**
**
** This library is free softwa... | ** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com>
** |
<|file_name|>TicketAgentImpl.java<|end_file_name|><|fim▁begin|>package com.codenotfound.endpoint;
import java.math.BigInteger;
import org.example.ticketagent.ObjectFactory;
import org.example.ticketagent.TFlightsResponse;
import org.example.ticketagent.TListFlights;
import org.example.ticketagent_wsdl11.TicketAgent;
... | } |
<|file_name|>convert.py<|end_file_name|><|fim▁begin|>import sys
import errno
import json
import os
from argparse import ArgumentParser
sys.path.insert(1, 'py-bindings')
from squad import SQUADConverter
def get_samples(test_file, vocab_file, output_dir):
print("Test file:", test_file)
print("Vocab file:", vocab... | output_file = args.output_dir + "/squad_examples.json"
with open(output_file, 'w', encoding='utf-8') as fid:
json.dump({'samples':samples}, fid, ensure_ascii=False, indent=4) |
<|file_name|>class_n_b_frame.js<|end_file_name|><|fim▁begin|>var class_n_b_frame =
[
[ "checkOptions", "dc/d86/class_n_b_frame.html#a1d586add0fd5236f91a41673552cbb03", null ],
[ "fillOptions", "dc/d86/class_n_b_frame.html#af1901022d54dc5509e070f68e8101217", null ]<|fim▁hole|><|fim▁end|> | ]; |
<|file_name|>test_chart_title01.py<|end_file_name|><|fim▁begin|><|fim▁hole|>#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2016, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""
... | ############################################################################### |
<|file_name|>lane.rs<|end_file_name|><|fim▁begin|>// +--------------------------------------------------------------------------+
// | Copyright 2016 Matthew D. Steele <mdsteele@alum.mit.edu> |
// | |
// | This file is part of Syst... | assert_eq!(state.access, Access::Replaying); |
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>#![deny(warnings)]
#![deny(unused_import_braces, unused_qualifications)]
#[macro_use] extern crate log;
extern crate clap;
extern crate env_logger;
extern crate breeze_core;
extern crate breeze_backends;
extern crate breeze_backend;
mod input;
use input::attach_defa... | message.push_str(&format!("\t{}\t{}\n", name, match *opt_fn {
Some(_) => "available",
None => "not compiled in",
})); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.