prompt large_stringlengths 70 991k | completion large_stringlengths 0 1.02k |
|---|---|
<|file_name|>GetTag.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*-
###############################################################################
#
# GetTag
# Retrieves a specified tag object.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0... | return GetTagChoreographyExecution(session, exec_id, path)
|
<|file_name|>throttle.go<|end_file_name|><|fim▁begin|>/*
Copyright 2012 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | tc.start()
return tc, nil |
<|file_name|>aws-cloudfront.go<|end_file_name|><|fim▁begin|>package mpawscloudfront
import (
"errors"
"flag"
"log"
"os"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
mp "github.com/mac... |
for _, met := range [...]metrics{
{Name: "Requests", Type: metricsTypeSum},
{Name: "BytesDownloaded", Type: metricsTypeSum}, |
<|file_name|>maketopo.py<|end_file_name|><|fim▁begin|>"""
Module to create topo and qinit data files for this example.
"""
from clawpack.geoclaw import topotools
from pylab import *
def maketopo_hilo():
x = loadtxt('x.txt')
y = loadtxt('y.txt')
z = loadtxt('z.txt')
# modify x and y so that cell ... | topo = topotools.Topography()
topo.x = xx
topo.y = yy |
<|file_name|>uibmodalinstance.ts<|end_file_name|><|fim▁begin|>import type { Mock } from "mocks/types";
import type { UibModalInstanceMock } from "mocks/node-modules/angular/types";
import sinon from "sinon";<|fim▁hole|>
export default class UibModalInstanceMockProvider implements Mock<UibModalInstanceMock> {
// Mock $... | |
<|file_name|>test_servlet_newpush.py<|end_file_name|><|fim▁begin|>from contextlib import nested
from contextlib import contextmanager
import mock
import testing as T
import types
from core import db
from core.settings import Settings
from core.mail import MailQueue
from core.util import get_servlet_urlspec
from core.... | )
def test_send_notifications_empty_user_list(self):
"""If there is no pending push request we'll only send IRC and |
<|file_name|>fixup_oslogin_v1_keywords.py<|end_file_name|><|fim▁begin|>#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# 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... | |
<|file_name|>app.js<|end_file_name|><|fim▁begin|>var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var Session = require('express-session');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
// creat... | console.log('caused development error handler');
if (err.status != 404) { |
<|file_name|>AbstractConnectHandlerTest.java<|end_file_name|><|fim▁begin|>package org.eclipse.jetty.server.handler;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.BufferedReader;
import java.io.EOFException;
import java.io.IOException;
import java.net.Socket;
im... | builder.append(body);
return builder.toString();
} |
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|> | from . import slide_channel_technology_category
from . import slide_channel_technology
from . import slide_channel |
<|file_name|>bpscore_benchmark.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3
#
# This script executes different GO BPScore algorithms
# in order to compare their run times.
# for timing
import time
<|fim▁hole|>from pappi.data_config import *
# import the GO association loading function
from pappi.go.utils im... | # for the data connection
import pappi.sql |
<|file_name|>Gruntfile.js<|end_file_name|><|fim▁begin|>// Generated on 2015-04-11 using
// generator-webapp 0.5.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
module.e... | |
<|file_name|>test_data.ts<|end_file_name|><|fim▁begin|>import {
Commit, Digest, SearchResult, TestName,
} from '../rpc_types';
export const fakeNow = Date.parse('2020-03-22T00:00:00.000Z');
const allTheSame: number[] = Array(200).fill(0);
const mod2Data: number[] = Array(200).fill(1).map((_, index) => index % 2);
c... | name: [
'dots-legend-sk_too-many-digests',
], |
<|file_name|>update_tokens.py<|end_file_name|><|fim▁begin|>from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from brambling.utils.payment import dwolla_update_tokens
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option(
... |
def handle(self, *args, **options):
try: |
<|file_name|>NickNameCache.cpp<|end_file_name|><|fim▁begin|>#include <core/stdafx.h>
#include <core/smartview/NickNameCache.h>
namespace smartview
{
void SRowStruct::parse()
{
cValues = blockT<DWORD>::parse(parser);
if (*cValues)
{
if (*cValues < _MaxEntriesSmall)
{
lpProps = std::make_shared<Proper... | }
|
<|file_name|>mastermodel.py<|end_file_name|><|fim▁begin|>import os
import json
from PySide2 import QtCore
from opencmiss.zinc.context import Context
from opencmiss.zinc.material import Material
from mapclientplugins.meshgeneratorstep.model.meshgeneratormodel import MeshGeneratorModel
from mapclientplugins.meshgenera... | def getSegmentationDataModel(self):
return self._segmentation_data_model
def getScene(self): |
<|file_name|>tool-initdb.js<|end_file_name|><|fim▁begin|>const fs = require('fs')
const path = require('path')
const {generateBabelEnvLoader, getConfig} = require('./common')
const buildCache = {}
module.exports = (params) => {
const baseConfig = getConfig(params)<|fim▁hole|> return {
entry: config.sourcePath ... | const config = Object.assign({}, baseConfig)
config.outputPath = path.join(__dirname, '../dist-' + config.app)
|
<|file_name|>all.js<|end_file_name|><|fim▁begin|>module.exports = flatten([
require("./base/dualfilter"),
require("./base/filter"),
require("./base/mirrorBlocks"),
require("./base/overlayMask"),
require("./base/split"),
require("./base/splitMask"),
require("./colourset/lerp"),
require("./colourset/dist... | require("./filter/disolve"),
require("./filter/roughen"), |
<|file_name|>health-report.js<|end_file_name|><|fim▁begin|>/* SPDX-License-Identifier: MIT */
function GHDataReport(apiUrl) {
apiUrl = apiUrl || '/';
var owner = this.getParameterByName('owner');
var repo = this.getParameterByName('repo');
this.api = new GHDataAPIClient(apiUrl, owner, repo);
this.buildReport... | document.getElementById('repo-label').innerHTML = this.api.owner + ' / ' + this.api.repo; |
<|file_name|>index.js<|end_file_name|><|fim▁begin|>elementResizeEvent = require('../index.js');
element = document.getElementById("resize");
window.p = p = document.getElementById("width");
console.log(p);
console.log(elementResizeEvent);<|fim▁hole|> console.log("resized!");
console.log(element.offsetWidth);
cons... | console.log(elementResizeEvent(element, function() { |
<|file_name|>handleBlockType-test.js<|end_file_name|><|fim▁begin|>import { expect } from 'chai';
import Draft, { EditorState, SelectionState } from 'draft-js';
import handleBlockType from '../handleBlockType';
describe('handleBlockType', () => {
describe('no markup', () => {
const rawContentState = {
entit... | ], |
<|file_name|>index.d.ts<|end_file_name|><|fim▁begin|>/**
* iOS and Android apis should match.
* It doesn't matter if you export `.ios` or `.android`, either one but only one.
*/
// export * from './mip';
// export * from './mip-finder';
// export * from './ble-utils';
// export * from './bluetooth.scanner."
// expo... | // export * from './mip-types" |
<|file_name|>isdict_containingentries.py<|end_file_name|><|fim▁begin|>from hamcrest.core.base_matcher import BaseMatcher
from hamcrest.core.helpers.hasmethod import hasmethod
from hamcrest.core.helpers.wrap_matcher import wrap_matcher
__author__ = "Jon Reid"
__copyright__ = "Copyright 2011 hamcrest.org"
__license__ = ... | |
<|file_name|>secure_tempfile.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*-
import base64
import os
import io
import six
from tempfile import _TemporaryFileWrapper
from pretty_bad_protocol._util import _STREAMLIKE_TYPES
from cryptography.exceptions import AlreadyFinalized
from cryptography.hazmat.backends imp... | try:
self.decryptor.finalize() |
<|file_name|>testimages.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python
from time import sleep
import os
import RPi.GPIO as GPIO
import subprocess
import datetime
GPIO.setmode(GPIO.BCM)
GPIO.setup(24, GPIO.IN)
count = 0
up = False
down = False
command = ""
filename = ""
index = 0
camera_pause = "500"
def take... | now = datetime.datetime.now() |
<|file_name|>simple.rs<|end_file_name|><|fim▁begin|>use common::{EmailAddress, AddrError};
/// Performs a dead-simple parse of an email address.
pub fn parse(input: &str) -> Result<EmailAddress, AddrError> {
if input.is_empty() {
return Err(AddrError { msg: "empty string is not valid".to_string() });
... | return Err(AddrError { msg: "empty string is not valid for domain part".to_string() }); |
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from .main import HnsccVisitAdmin, HnsccOffStudyAdmin
from .enrollment_admin import EnrollmentAdmin
from .contemporary_admin import ContemporaryAdmin<|fim▁hole|><|fim▁end|> | # from .historical_admin import HistoricalAdmin
from .hnscc_off_study_model_admin import HnsccOffStudyModelAdmin |
<|file_name|>exportDeclarationInInternalModule.js<|end_file_name|><|fim▁begin|>//// [exportDeclarationInInternalModule.ts]
class Bbb {
}
class Aaa extends Bbb { }
module Aaa {
export class SomeType { }
}
module Bbb {
export class SomeType { }
export * from Aaa; // this line causes the nullref
}
... | (function (Aaa) {
var SomeType = (function () {
|
<|file_name|>recipe-576734.py<|end_file_name|><|fim▁begin|>import ctypes
class C_struct:
"""Decorator to convert the given class into a C struct."""
# contains a dict of all known translatable types
types = ctypes.__dict__
<|fim▁hole|> @classmethod
def register_type(cls, typename, obj):
"""Adds the new class to... | |
<|file_name|>Commands.go<|end_file_name|><|fim▁begin|>package cmd
import (
"fmt"
"os"
"gopkg.in/alecthomas/kingpin.v2"
"github.com/guzzlerio/corcel/config"
"github.com/guzzlerio/corcel/core"
"github.com/guzzlerio/corcel/errormanager"
"github.com/guzzlerio/corcel/logger"
"github.com/guzzlerio/corcel/report"
)... | |
<|file_name|>fst_module_aux.py<|end_file_name|><|fim▁begin|># FST tests related classes
# Copyright (c) 2015, Qualcomm Atheros, Inc.
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import logging
import os
import signal
import time
import re
import hostapd
impor... | return self.instance
def get_global_instance(self): |
<|file_name|>pjax-content.js<|end_file_name|><|fim▁begin|>/* YUI 3.9.0pr1 (build 202) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
YUI.add('pjax-content', function (Y, NAME) {
/**
`Y.Router` extension that provides the content fetching and handling needed to
implement the standard pjax (HTMP5 pushState... | - `req.ioURL`: The full URL that was used to make the `Y.io()` XHR. This |
<|file_name|>home.js<|end_file_name|><|fim▁begin|>function Controller() {
function __alloyId24() {
__alloyId24.opts || {};
var models = __alloyId23.models;
var len = models.length;
var rows = [];
for (var i = 0; len > i; i++) {
var __alloyId9 = models[i];
... | var __alloyId14 = Ti.UI.createLabel({
width: Ti.UI.SIZE,
height: Ti.UI.SIZE, |
<|file_name|>stats.py<|end_file_name|><|fim▁begin|>from itertools import repeat, chain
from operator import itemgetter
from django.db.models import Count, Sum, Case, When, IntegerField, Value, FloatField
from django.db.models.expressions import CombinedExpression
from django.http import JsonResponse
from django.shortc... | 0x316395, 0x994499, 0x22AA99, 0xAAAA11, 0x6633CC, 0xE67300, 0x8B0707, 0x329262, 0x5574A6, 0x3B3EAC] |
<|file_name|>config.rs<|end_file_name|><|fim▁begin|>#![allow(dead_code)]
extern crate clap;
use helper::Log;
use self::clap::{Arg, App};
use std::process;
use std::error::Error;
pub const APP_VERSION: &'static str = "1.0.34";
pub const MAX_API_VERSION: u32 = 1000;
pub struct NodeConfig {
pub value: u64,
pu... | } |
<|file_name|>QuickSort.go<|end_file_name|><|fim▁begin|>/*Copyright 2020 Anil Kumar Teegala
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 r... | "fmt"
"math/rand"
"time"
) |
<|file_name|>topic_count.js<|end_file_name|><|fim▁begin|>/*globals rabbitmq_test_bindings: false,
rabbitmq_bindings_to_remove: false */
/*jslint mocha: true */
"use strict";
var expect = require('chai').expect,
util = require('util'),
Qlobber = require('..').Qlobber;
function QlobberTopicCount (opti... | { |
<|file_name|>ConnessioneDB.java<|end_file_name|><|fim▁begin|>import java.sql.*;
public class ConnessioneDB {
static {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();<|fim▁hole|> // TODO Auto-generated catch block
e.printStackTrace();
} catch (ClassNotFoundException e) {
// TODO Auto-generat... | } catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) { |
<|file_name|>manage.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python
import os
import sys
import MySQLdb
if __name__ == "__main__":<|fim▁hole|> execute_from_command_line(sys.argv)<|fim▁end|> | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "academicControl.settings")
from django.core.management import execute_from_command_line
|
<|file_name|>frukkola.ts<|end_file_name|><|fim▁begin|><|fim▁hole|>const FRUKKOLA_MENU_URL = 'http://fruccola.hu/admin/api/daily_menu';
const ARANY_ID = 1;
interface IMenu {
id: number;
place_id: number;
soup_hu: string;
soup_en: string;
dish_hu: string;
dish_en: string;
due_date: string;
push_time: str... | import * as request from 'request-promise';
const FRUKKOLA_URL = 'http://fruccola.hu/'; |
<|file_name|>Room.java<|end_file_name|><|fim▁begin|>package com.vexus2.jenkins.chatwork.jenkinschatworkplugin.api;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotat... | |
<|file_name|>boundingrecthighlighter.cpp<|end_file_name|><|fim▁begin|>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_... | m_boxes.removeOne(box);
m_freeBoxes << box;
} |
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import patterns, url
from quenta.storybook import views
urlpatterns = patterns('',
url(r'^(?P<story_id>\d+/)', views.story, name='story'),#+ parametar
url(r'^(?P<story_id>\d+/html/)', views.story_html, name='story_html'),#+ parametar<|fim... | |
<|file_name|>test_status_api.py<|end_file_name|><|fim▁begin|># coding: utf-8
"""
Fitmarket
Mali broj ljudi - donori - dijele dnevna mjerenja svoje težine. Iz dnevne težine jednog donora određujemo vrijednosti dviju dionica: - dionica X ima vrijednost koja odgovara težini donora na taj dan. - inverzna dionic... | from __future__ import absolute_import
import os
import sys |
<|file_name|>stats.js<|end_file_name|><|fim▁begin|>var fs = require('fs');
fs.stat('/tmp', function(err, stats) {
if (err) {<|fim▁hole|> return;
}
console.log(stats);
});<|fim▁end|> | console.error(err); |
<|file_name|>mem_init.rs<|end_file_name|><|fim▁begin|>// Zinc, the bare metal stack for rust.
// Copyright 2014 Vladimir "farcaller" Pouzanov <farcaller@gmail.com>
//
// 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 ... |
/// Helper function to initialize memory. |
<|file_name|>spinner.rs<|end_file_name|><|fim▁begin|>// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use Buildable;
use Widget;
use ffi;
use glib::StaticType;
use glib::Value;
use glib::object::Cast;
use glib::object::IsA;
use gli... | impl fmt::Display for Spinner {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Spinner")
} |
<|file_name|>clipgrab_tr.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="tr_TR">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>ClipGrab</name>
<message>
<location filename="clipgrab.cpp" line="37"/>
<source>Automatic language ... | <translation type="unfinished"></translation> |
<|file_name|>AppUtil.java<|end_file_name|><|fim▁begin|>package com.sms4blood.emergencyhealthservices.util;
import android.content.Intent;
import android.location.Location;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.Toast;
import com.sms4blood.emergencyhealth... | * @return distance between the two latitudes and longitudes in kms.
*/
public static double calculateDistance(double fromLatitude,double fromLongitude,double toLatitude,double toLongitude) {
float results[] = new float[1]; |
<|file_name|>format_me_please.rs<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|> | pub fn hello( ) { } |
<|file_name|>basiccircle.py<|end_file_name|><|fim▁begin|><|fim▁hole|>from bokeh.plotting import figure, output_file, show
p = figure(width=400, height=400)
p.circle(2, 3, radius=.5, alpha=0.5)
output_file('out.html')
show(p)<|fim▁end|> | |
<|file_name|>state.js<|end_file_name|><|fim▁begin|>/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Soft... | |
<|file_name|>DeleteAssociationRequestMarshaller.java<|end_file_name|><|fim▁begin|>/*
* Copyright 2010-2016 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 ... | try {
StringWriter stringWriter = new StringWriter(); |
<|file_name|>payment.py<|end_file_name|><|fim▁begin|>import json
from collections import OrderedDict
from django import forms
from django.template.loader import get_template
from django.utils.translation import ugettext_lazy as _
from pretix.base.payment import BasePaymentProvider
class BankTransfer(BasePaymentProv... |
def payment_is_valid_session(self, request):
return True |
<|file_name|>policy_selectors.go<|end_file_name|><|fim▁begin|>// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Cilium
package cmd
import (
"fmt"
"os"
"text/tabwriter"
"github.com/spf13/cobra"
"github.com/cilium/cilium/pkg/command"
)
// policyGetCmd represents the policy_get command
var poli... | } |
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|>"""Tests for the Volumio integration."""<|fim▁end|> | |
<|file_name|>document.cpp<|end_file_name|><|fim▁begin|>//
// Copyright 2013 Uncodin, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE... | // See the License for the specific language governing permissions and
// limitations under the License.
//
|
<|file_name|>message.py<|end_file_name|><|fim▁begin|># Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
# Copyright (c) 2011, 2012 Open Networking Foundation
# Copyright (c) 2012, 2013 Big Switch Networks, Inc.
# See the file LICENSE.pyloxi which should have been included in the source ... | length = sum([len(x) for x in packed])
packed[2] = struct.pack("!H", length)
return ''.join(packed) |
<|file_name|>issue-13620-2.rs<|end_file_name|><|fim▁begin|>// Copyright 2012-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.... | |
<|file_name|>demo.py<|end_file_name|><|fim▁begin|>"""
Demo platform that has two fake binary sensors.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
import homeassistant.util.dt as dt_util
from homeassistant.components.calendar import Calen... | """Initialize Google Calendar but without the API calls."""
self.data = calendar_data
super().__init__(hass, data) |
<|file_name|>Post.ts<|end_file_name|><|fim▁begin|>import {Entity} from "../../../../src/decorator/entity/Entity";
import {BaseEntity} from "../../../../src/repository/BaseEntity";
import {PrimaryGeneratedColumn} from "../../../../src/decorator/columns/PrimaryGeneratedColumn";
import {Column} from "../../../../src/decor... | title: string;
@Column({ |
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># Generated file. Do not edit
__author__="drone"
from Abs import Abs
from And import And
from Average import Average
from Ceil import Ceil
from Cube import Cube
from Divide import Divide
from Double import Double
from Equal import Equal
from Even import Even
from F... | from Sum import Sum
from Two import Two |
<|file_name|>notebookListUpdater.ts<|end_file_name|><|fim▁begin|>import { Notebook } from './notebook';
import { SectionGroup } from './sectionGroup';
import { Section } from './section';
import { Page } from './page';
import { OneNoteItemUtils } from './oneNoteItemUtils';
type SectionParent = Notebook | SectionGroup;... | export class NotebookListUpdater {
// TODO (machiam) Currently we don't support updating shared notebooks the react way
private notebooks: Notebook[]; |
<|file_name|>scene01.cpp<|end_file_name|><|fim▁begin|>/**
* This file is part of a demo that shows how to use RT2D, a 2D OpenGL framework.
*
* - Copyright 2015 Rik Teerling <rik@onandoffables.com>
* - Initial commit
* - Copyright 2015 Your Name <you@yourhost.com>
* - What you did
*/
#include "scene01.h"... | f_spr->color = GREEN; // green
child1_entity = new BasicEntity(); |
<|file_name|>comprehension.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, traceback, Ice, threading, time, os
import IceStorm
# Ctrl+c handling
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
# Qt interface
from PySide.QtCore import *
from PySide.QtGui import *
... | |
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>#To-DO:NEXT: Write the show_keys email command [admin level]
#To-Do:NEXT: Write the other templates
#To-Do:NEXT: write the connect command [user level]
#TO-DO:NEXT: Fix subject bug.
#To-DO:NEXT: Make the html emails look prettier somehow.
#listening script
fro... | |
<|file_name|>test_reload_button_provider.py<|end_file_name|><|fim▁begin|>import pytest
from cfme.containers.provider import ContainersProvider
from utils import testgen, version
from cfme.web_ui import toolbar as tb
from utils.appliance.implementations.ui import navigate_to
pytestmark = [
pytest.mark.uncollectif... | """
navigate_to(provider, 'Details') |
<|file_name|>origins.go<|end_file_name|><|fim▁begin|>package cdn
// Copyright (c) Microsoft and contributors. 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
// htt... | |
<|file_name|>fixed.rs<|end_file_name|><|fim▁begin|>// This file was generated by gir (5c017c9) from gir-files (71d73f0)
// DO NOT EDIT
use Container;
use Widget;
use ffi;
use glib::Value;
use glib::object::Downcast;
use glib::object::IsA;
use glib::translate::*;
glib_wrapper! {
pub struct Fixed(Object<ffi::GtkFix... | |
<|file_name|>website.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2015 Serv. Tecnol. Avanzados (http://www.serviciosbaeza.com)
# Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
#
# Thi... | |
<|file_name|>DepthOfField.cpp<|end_file_name|><|fim▁begin|>//--------------------------------------------------------------------------------------
// File: DepthOfField.cpp
//
// Depth of field
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------... | } |
<|file_name|>zinc_compile.py<|end_file_name|><|fim▁begin|># coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
... | from pants.backend.jvm.subsystems.shader import Shader |
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>mod parser;
pub use self::parser::parse_expressions;
pub enum Expression {<|fim▁hole|> Variable(String),
BinaryOp(String, Box<Expression>, Box<Expression>),
UnaryOp(String, Box<Expression>),
NullaryOp(String),
Function(String, Vec<Expression>),
F... | Integer(i64), |
<|file_name|>test_basic.py<|end_file_name|><|fim▁begin|># Copyright (c) 2008, Stefano Taschini <taschini@ieee.org>
# All rights reserved.
# See LICENSE for details.
import unittest
from interval import interval, fpu
class FpuTestCase(unittest.TestCase):
def test_third(self):
"Nearest rounding of 1/3 is ... | |
<|file_name|>task.js<|end_file_name|><|fim▁begin|>var mongoose = require('mongoose'),<|fim▁hole|> Schema = mongoose.Schema;
/**
* Task Schema
* @type {Object}
*/
var TaskSchema = new Schema({
title: {
type: String,
default: '',
trim: true
},
project: {
type: String,
... | |
<|file_name|>MoQiang.cpp<|end_file_name|><|fim▁begin|>#include "MoQiang.h"
enum CAUSE{
AN_ZHI_JIE_FANG=2901,
HUAN_YING_XING_CHEN=2902,
HEI_AN_SHU_FU=2903,
AN_ZHI_ZHANG_BI=2904,
CHONG_YING=2905,
CHONG_YING_DISCARD = 29051,
QI_HEI_ZHI_QIANG=2906
};
MoQiang::MoQiang()
{
make... | Role::attacked(element,hitRate);
handArea->disableMagic();
}
|
<|file_name|>document.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 document_loader::{DocumentLoader, LoadType};
use dom::at... | self.quirks_mode.get() |
<|file_name|>overlay.js<|end_file_name|><|fim▁begin|>define(['view',
'class'],
function(View, clazz) {
function Overlay(el, options) {
options = options || {};
Overlay.super_.call(this, el, options);
this.closable = options.closable;
this._autoRemove = options.autoRemove !== undefined ? opt... | self.dispose();
}, 10);
}
return this; |
<|file_name|>issue-3563-3.rs<|end_file_name|><|fim▁begin|>// run-pass
#![allow(unused_imports)]
#![allow(non_snake_case)]
// ASCII art shape renderer. Demonstrates traits, impls, operator overloading,
// non-copyable struct, unit testing. To run execute: rustc --test shapes.rs &&
// ./shapes
// Rust's std library i... |
// Represents a position on a canvas.
#[derive(Copy, Clone)]
struct Point { |
<|file_name|>heroe-list.component.js<|end_file_name|><|fim▁begin|>"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflec... | exports.HeroeList = HeroeList; |
<|file_name|>NewInstanceFormController.java<|end_file_name|><|fim▁begin|>/**
*============================================================================
* The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC,
* and Ekagra Soft... | public SessionEprs getSessionEprs() {return eprs;}
public void setSessionEprs(SessionEprs sessionEprs) {this.eprs = sessionEprs;} |
<|file_name|>fake.go<|end_file_name|><|fim▁begin|>/*
Copyright 2022 The Knative 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
Unless requir... | |
<|file_name|>index.d.ts<|end_file_name|><|fim▁begin|>// Type definitions for wu.js 2.1
// Project: https://fitzgen.github.io/wu.js/
// Definitions by: phiresky <https://github.com/phiresky>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function wu<T>(iterable: Iterable<T>): wu.WuIterable<T... | // pluck<T>(attribute:string, iter: Iterable<{[attribute]: T}>): WuIterable<T>; |
<|file_name|>deploymentconfig.go<|end_file_name|><|fim▁begin|>package create
import (
"fmt"
"io"
"github.com/spf13/cobra"
kapi "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/meta"
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/runtime"
"github.com/openshift/origin/pkg/client... | if o.Out == nil { |
<|file_name|>defaults.js<|end_file_name|><|fim▁begin|>module.exports = {
'throttle': 10,
'hash': true,
'gzip': false,<|fim▁hole|> 'buildDir': 'build',
'prefix': ''
};<|fim▁end|> | 'baseDir': 'public', |
<|file_name|>gr_Painter.cpp<|end_file_name|><|fim▁begin|>/* AbiWord
* Copyright (C) 2003 Dom Lachowicz <cinamod@hotmail.com>
*
* 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... | |
<|file_name|>jstz.js<|end_file_name|><|fim▁begin|>(function (root) {/*global exports, Intl*/
/**
* This script gives you the zone info key representing your device's time zone setting.
*
* @name jsTimezoneDetect
* @version 1.0.6
* @author Jon Nylander
* @license MIT License - https://bitbucket.org/pellepim/jstime... | * @returns {String} timezone_name
*/ |
<|file_name|>CreateCrawlerRequest.java<|end_file_name|><|fim▁begin|>/*
* Copyright 2017-2022 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 locat... | return false; |
<|file_name|>test_hessian.py<|end_file_name|><|fim▁begin|>"""
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 option) any later version.
This program is ... | self.assertRaises(AssertionError, lambda: hess.set_element(n + 3, 0, -4.0))
self.assertRaises(AssertionError, lambda: hess.set_element(n + 7, n - 1, 5.0))
self.assertRaises(AssertionError, lambda: hess.set_element(0, -1, 6.0)) |
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|><|fim▁hole|>
class SocketIOBackend(BaseTaskRunnerBackend):
def __init__(self):
from . import sockets
def get_detail_template(self):
return 'task_runners/deployment_detail_socketio.html'<|fim▁end|> | from ..base import BaseTaskRunnerBackend
|
<|file_name|>transaction_dialog.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# 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 Fre... | |
<|file_name|>GoogleCloudDialogflowCxV3ListAgentsResponse.java<|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
*... | return (GoogleCloudDialogflowCxV3ListAgentsResponse) super.clone();
}
|
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>use Val;
use std::fmt;
use std::ops::{Deref, DerefMut};
use html::{Html, CSS};
use meta::{Meta, SubMeta, Select};
use stash::{Location, Stash};
use tree::node::Node;
use tree::branch::Branch;
use tree::level::{Beginning, End, Relative};
/// A collection of elements o... | let mut branch_a: Branch<_, _, Beginning> = Branch::first(a.root,
&stash);
let mut branch_b: Branch<_, _, Beginning> = Branch::first(b.root,
&stash); |
<|file_name|>fn_args_layout-blockalways.rs<|end_file_name|><|fim▁begin|>// rustfmt-fn_args_layout: BlockAlways
fn foo() {
foo();
}
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
foo();
}
fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) {
bar();
... | bar(); |
<|file_name|>bitcoin_ar.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" ?><!DOCTYPE TS><TS language="ar" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About TransformersCoin</source>
<translation>عن البلا... | <message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source> |
<|file_name|>number.test.js<|end_file_name|><|fim▁begin|>const test = require('tape')
const nlp = require('../_lib')
test('number-tag:', function (t) {
let arr = [
['16.125', 'Cardinal'],
['+160.125', 'Cardinal'],
['-0.1', 'Cardinal'],
['.13', 'Cardinal'],
['(127.54)', 'Cardinal'],
['16.125t... | ['161,253th', 'Ordinal'], |
<|file_name|>gcreatedialog.cpp<|end_file_name|><|fim▁begin|>#include "src/gcreatedialog.h"
#include "ui_gcreatedialog.h"
GCreateDialog::GCreateDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::GCreateDialog)<|fim▁hole|>
ui->lineEdit_GName->setStyleSheet("QLineEdit#lineEdit_GName { border-radius: 2px; }... | {
ui->setupUi(this); |
<|file_name|>SyncInfo.ts<|end_file_name|><|fim▁begin|>/* Generated code */
interface SyncInfo {
syncType?: 'FSync' | 'ISync';
syncToken?: string;
syncTime?: string;
<|fim▁hole|>
export default SyncInfo;<|fim▁end|> | olderRecordsExist?: boolean;
} |
<|file_name|>nightwatch.py<|end_file_name|><|fim▁begin|>import boto3
import logging
import argparse
import os
from botocore.exceptions import ClientError
from boto3.dynamodb.conditions import Key, Attr
import json
import decimal
import time
import datetime
import smtplib
from email.mime.multipart import MIMEMultipart
f... | |
<|file_name|>Packet.java<|end_file_name|><|fim▁begin|>/*
* Copyright (c) 2005 Dizan Vasquez.
*
* 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 lim... | * @param length
* Total number of bytes to copy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.