prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>session.js<|end_file_name|><|fim▁begin|>/** * Session Configuration * (sails.config.session) * * Sails session integration leans heavily on the great work already done by * Express, but also unifies Socket.io with the Connect session store. It uses * Connect's cookie parser to normalize configuration...
* Uncomment the following lines to use your Mongo adapter as a session * * store * * * ***************************************************************************/
<|file_name|>test_netsnmp.py<|end_file_name|><|fim▁begin|># snapy - a python snmp library # # Copyright (C) 2009 ITA Software, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # version 2 as published by the Free Software Foundation. # ...
<|file_name|>test3_steps.js<|end_file_name|><|fim▁begin|>CucumberJsBrowserRunner.StepDefinitions.test3(function () { var And = Given = When = Then = this.defineStep, runner; Given(/^test3$/, function(callback) { callback(); }); When(/^test3$/, function(callback) { call...
});
<|file_name|>arrays.rs<|end_file_name|><|fim▁begin|>// Lumol, an extensible molecular simulation engine // Copyright (C) Lumol's contributors — BSD license //! Multi-dimensional arrays based on ndarray use ndarray; use std::ops::{Deref, DerefMut, Index, IndexMut}; use types::Zero; /// Two dimensional tensors, based ...
a.resize_if_different((7, 90, 8));
<|file_name|>setup_helper.py<|end_file_name|><|fim▁begin|># Copyright 2018 Google LLC. 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.org/licen...
<|file_name|>memory_storage.go<|end_file_name|><|fim▁begin|>// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-...
type MemTx struct {
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- """ flaskext.sqlalchemy ~~~~~~~~~~~~~~~~~~~ Adds basic SQLAlchemy support to your application. :copyright: (c) 2014 by Armin Ronacher, Daniel Neuhäuser. :license: BSD, see LICENSE for more details. """ from __future__ im...
elif hasattr(app, 'teardown_request'): teardown = app.teardown_request
<|file_name|>build.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # Build a bunch of SRPMs import argparse import getopt import sys import os import glob import subprocess import shutil import rpm import hashlib import time from planex.globals import (BUILD_ROOT_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR, ...
<|file_name|>sensor.py<|end_file_name|><|fim▁begin|>"""Sensor to collect the reference daily prices of electricity ('PVPC') in Spain.""" import logging from random import randint from typing import Optional from aiopvpc import PVPCData from homeassistant import config_entries from homeassistant.const import CONF_NAME...
<|file_name|>test_actor.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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...
'_managed': set(['dump', '_signature', 'id', '_deployment_requirements', 'name', 'credentials']), '_signature': None,
<|file_name|>person.java<|end_file_name|><|fim▁begin|>package BubbleSort2D; public class person { String name; int age; boolean sortme = false; public person(String n, int a) { name = n; age = a; } public String toString(){ return name + " " + Integer.toString(age); <|fim▁hole|>}<|fim▁end...
}
<|file_name|>StringEvent.java<|end_file_name|><|fim▁begin|>package com.code.constant; /** * Created by niu on 2017/8/17.<|fim▁hole|> */ public class StringEvent { //网络状态改变 public static String NET_STATE_CHANGE = "net_state_change"; }<|fim▁end|>
<|file_name|>widgets.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from django.forms import widgets from django.template.loader import render_to_string from django.utils.translation import gettext_lazy as _ from .conf import settings class PlacesWidget(widgets.MultiWidget): template_name = 'places/wid...
class Media: js = ( '//maps.googleapis.com/maps/api/js?key={}&libraries=places'.format(
<|file_name|>r3msg.rs<|end_file_name|><|fim▁begin|>extern crate r3bar; extern crate i3ipc; use r3bar::r3ipc::{R3Msg}; use std::env; fn help() { println!("usage: msgtype <integer> msgtype number - see r3ipc documentation. payload [string] msg arguments if any."); } fn main() { let args: Vec<String> = ...
},
<|file_name|>authors.js<|end_file_name|><|fim▁begin|>$(function() { var resultCache = []; var allItems = $(".index .item"); $("#filter_text").keyup(function(){ var searchString = $(this).val(); allItems.addClass('visibility_hidden'); var items; if (resultCache[searchString]...
}, content: { text: $(this).siblings('.material_list') },
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from .group_analysis import create_fsl_flame_wf, \ get_operation<|fim▁hole|> __all__ = ['create_fsl_flame_wf', \ 'get_operation']<|fim▁end|>
<|file_name|>update_tournaments.py<|end_file_name|><|fim▁begin|>from src.interfacing.ogs.connect import Authentication import codecs import sys import os from time import sleep def loadList(pNameFile): iList = [] with codecs.open(pNameFile, "r", "utf-8") as f: for line in f: iList.append...
<|file_name|>test_textbox15.py<|end_file_name|><|fim▁begin|>############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelCompar...
<|file_name|>opt_name.rs<|end_file_name|><|fim▁begin|>//! Test optional prefix. extern crate flame; extern crate flamer; use flamer::{flame, noflame}; #[flame("top")] fn a() { let l = Lower {}; l.a(); } #[flame] fn b() { a() } #[noflame] fn c() { b() } pub struct Lower; impl Lower { #[flame("...
#[test] fn main() {
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LI...
<|file_name|>utils.py<|end_file_name|><|fim▁begin|>from __future__ import unicode_literals from django.template.defaultfilters import slugify as django_slugify from django.utils.importlib import import_module from unidecode import unidecode # Timezone support with fallback. try: from django.utils.timezone import...
def slugify(s):
<|file_name|>ExplicitKualiDecimalFormatter.java<|end_file_name|><|fim▁begin|>/* * Copyright 2012 The Kuali Foundation. * * Licensed under the Educational Community 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 * ...
* @param amount the String representing the amount * @return a new String, with a decimal inserted in the third to last place */ private String addDecimalPoint (String amount) {
<|file_name|>fn-item-type-zero-sized.rs<|end_file_name|><|fim▁begin|>// run-pass // Test that fn item types are zero-sized. use std::mem::{size_of, size_of_val}; <|fim▁hole|> assert_eq!(size_of_val(&a), 0); assert_eq!(size_of_val(&b), 0); assert_eq!((a(), b()), (1, 2)); }<|fim▁end|>
fn main() { assert_eq!(size_of_val(&main), 0); let (a, b) = (size_of::<u8>, size_of::<u16>);
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>//! # Rocket - Code Generation //! //! This crate implements the code generation portions of Rocket. This includes //! custom derives, custom attributes, procedural macros, and lints. The //! documentation here is purely technical. The code generation facilities are //! ...
mod decorators; mod lints;
<|file_name|>app.module.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 Reflect === "obj...
var platform_browser_1 = require('@angular/platform-browser');
<|file_name|>GroupDetails.js<|end_file_name|><|fim▁begin|>import React, { Component } from 'react'; import { StyleSheet, Text, View, Navigator, ScrollView, ListView, } from 'react-native' import NavigationBar from 'react-native-navbar'; var REQUEST_URL = 'https://calm-garden-29993.herokuapp.com/index/groups...
<|file_name|>PBObjcWrapper.hh<|end_file_name|><|fim▁begin|>// // PBObjcWrapper.h // AppBootstrap // // Created by Yaming on 10/31/14. // Copyright (c) 2014 whosbean.com. All rights reserved. // #import <Foundation/Foundation.h> #ifdef __cplusplus #import <google/protobuf/message.h> #endif @protocol PBObjcWrapper...
#ifdef __cplusplus -(instancetype) initWithProtocolObj:(google::protobuf::Message *)pbobj; #endif
<|file_name|>lib.rs<|end_file_name|><|fim▁begin|>// Copyright 2016 Phillip Oppermann, Calvin Lee and JJ Garzella. // See the README.md file at the top-level directory of this // distribution. // // Licensed under the MIT license <LICENSE or // http://opensource.org/licenses/MIT>, at your option. // This file may not be...
/// IO abstractions in Rust #[macro_use] mod cpuio; mod sync;
<|file_name|>http.py<|end_file_name|><|fim▁begin|># pygopherd -- Gopher-based protocol server in Python # module: serve up gopherspace via http # $Id: http.py,v 1.21 2002/04/26 15:18:10 jgoerzen Exp $ # Copyright (C) 2002 John Goerzen # <jgoerzen@complete.org> # # This program is free software; you can redistribute ...
<|file_name|>test_jvm_dependency_usage.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, ...
self.assertEqual(graph._nodes[t1].dep_edges, {}) self.assertEqual(len(graph._nodes[t2].dep_edges[t1].products_used), 1) self.assertEqual(len(graph._nodes[t3].dep_edges[t1].products_used), 2)
<|file_name|>0006_auto_20170701_2013.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-07-01 20:13 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ...
migrations.DeleteModel(
<|file_name|>002.py<|end_file_name|><|fim▁begin|>blocklevel = ["blockquote", "div", "form", "p", "table", "video", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "details", "article", "header", "main"] def normalizeEnter(src): #Deletes all user defined for readability reason existing line breaks that are issues for the HTM...
for item in islinput: item = normalizeEnter(item) #Deletes not wanted line breaks in order to prevent the problem we have with Markdown. islinput[currentIndex] = item
<|file_name|>text.py<|end_file_name|><|fim▁begin|># Authors: # Jason Gerard DeRose <jderose@redhat.com> # # Copyright (C) 2009 Red Hat # see file 'COPYING' for use and warranty contextrmation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
>>> from ipalib import Command, _, ngettext >>> class my_plugin(Command): ... my_string = _('Hello, %(name)s.')
<|file_name|>csc.py<|end_file_name|><|fim▁begin|>"""Compressed Sparse Column matrix format""" from __future__ import division, print_function, absolute_import __docformat__ = "restructuredtext en" __all__ = ['csc_matrix', 'isspmatrix_csc'] import numpy as np from scipy._lib.six import xrange from ._sparsetools imp...
with another sparse matrix S (equivalent to S.tocsc())
<|file_name|>check_models.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import from __future__ import print_function from keras.datasets import mnist from keras.models import Sequential from keras.layers.core import Dense, Activation, Merge from keras.utils import np_utils import numpy as np nb_class...
<|file_name|>Floor.ts<|end_file_name|><|fim▁begin|>'use strict'; import * as models from './models'; export interface Floor { floorId?: string;<|fim▁hole|> name?: string; map?: string; }<|fim▁end|>
<|file_name|>LaravelRunConf.java<|end_file_name|><|fim▁begin|>package com.smartbit8.laravelstorm.run; import com.intellij.execution.ExecutionException; import com.intellij.execution.Executor; import com.intellij.execution.configurations.*; import com.intellij.execution.process.*; import com.intellij.execution.runners....
this.interpreter = interpreter; }
<|file_name|>flat.rs<|end_file_name|><|fim▁begin|>// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the ...
<|file_name|>queries.ts<|end_file_name|><|fim▁begin|>export {Query, Dialect} from 'src/client' export interface TimeRange { lower: string upper?: string | null seconds?: number format?: string<|fim▁hole|>}<|fim▁end|>
label?: string duration?: string
<|file_name|>sentry.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import import mock import os from django.conf import settings from sentry_sdk import Hub TEST_ROOT = os.path.normpath( os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, os.pardir, "tests") ) def pytest_c...
"github-app.name": "sentry-test-app",
<|file_name|>ChangeSessionToken.ts<|end_file_name|><|fim▁begin|>version https://git-lfs.github.com/spec/v1 oid sha256:de6a4f96b6914035c33c21f63dc7fcb03b9203aa911b580501b99fbe3ea4b096<|fim▁hole|><|fim▁end|>
size 138
<|file_name|>clutter-ui.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python import os import sys import urllib from gi.repository import Clutter, ClutterX11, Mx, Lomo, GObject, GLib class Cover(Clutter.Box): __gtype_name__ = 'GlosseCover' # # Member, setter and getter for the 'lomo' property # def _get_lomo_playe...
<|file_name|>extint_toggle.py<|end_file_name|><|fim▁begin|>import pyb import micropython micropython.alloc_emergency_exception_buf(100) led1 = pyb.LED(4) # 4 = Blue led2 = pyb.LED(3) # 3 = Yellow pin = pyb.Pin('SW', pyb.Pin.IN, pull=pyb.Pin.PULL_UP) def callback(line):<|fim▁hole|> led2.off() else: ...
led1.toggle() if pin.value(): # 1 = not pressed
<|file_name|>template_funcs_test.go<|end_file_name|><|fim▁begin|>// Copyright 2016 The Hugo 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.apa...
{"a": []int64{1, 2, 3}, "b": []int64{4, 5, 6}}, {"a": []int64{7, 8, 9}, "b": []int64{10, 11, 12}}, }, },
<|file_name|>FPV_resnet_fullycoupled.py<|end_file_name|><|fim▁begin|>import os import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split import tensorflow as tf from keras.models import Model from keras.layers import Dense, Input from keras.callbacks i...
plt.title('Error of %s ' % sp) plt.plot((y_test_df[sp] - predict_df[sp]) / y_test_df[sp])
<|file_name|>getLibrary.py<|end_file_name|><|fim▁begin|>#!/usr/bin/ipython library_file = open('/srv/http/.config/cmus/lib.pl');<|fim▁hole|>for x in tracks: print('<li>' + x + '</li>')<|fim▁end|>
tracks = library_file.readlines()
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>import unittest, tempfile, uuid, os, shutil, sys class Test_CreateRemoveTempLocation(unittest.TestCase): def __init__(self, *args, **kwargs): super(Test_CreateRemoveTempLocation, self).__init__(*args, **kwargs) self._tmpTestFolder = None ...
if not self._tmpTestFolder: return
<|file_name|>getting_started_test.py<|end_file_name|><|fim▁begin|># Copyright 2015, 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....
# limitations under the License. import re
<|file_name|>debug_warp_ocmlogistic.py<|end_file_name|><|fim▁begin|>import numpy as np import fdasrsf as fs from scipy.integrate import cumtrapz from scipy.linalg import norm, expm import h5py fun = h5py.File('/home/dtucker/fdasrsf/debug_data_oc_mlogit.h5') q = fun['q'][:] y = fun['y'][:] alpha = fun['alpha'][:] nu = ...
# tmp1 = np.sum(np.exp(alpha + A)) # tmp2 = np.sum(np.exp(alpha + A) * B, axis=2) # hO = np.sum(y * B, axis=2) - (tmp2 / tmp1)
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2015-2018 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free So...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
pub mod back; pub mod front; pub mod worker;
<|file_name|>findandreplacedlg.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module 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 Foundat...
<|file_name|>texture_browser.py<|end_file_name|><|fim▁begin|># ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at...
<|file_name|>test_distribute.py<|end_file_name|><|fim▁begin|>from pathlib import Path from subprocess import (PIPE, Popen) import fnmatch import shutil import os def test_distribute(tmp_path): """ Check that the scripts to compute a trajectory are generated correctly """ cmd1 = "distribute_jobs.py -i ...
def check_scripts(): """ Check that the distribution scripts were created correctly """
<|file_name|>admin.py<|end_file_name|><|fim▁begin|>from django.contrib import admin from holidays.models import (Holiday, StaticHoliday, NthXDayHoliday, NthXDayAfterHoliday, CustomHoliday) class HolidayAdmin(admin.ModelAdmin): pass class StaticHolidayAdmin(admin.ModelAdmin): pass class Nth...
<|file_name|>Subject.js<|end_file_name|><|fim▁begin|>import Subject from "parsers/Subject"; describe("parsers/Subject", () => { it("should split valid subject lines into object hash", () => { let subject = "type(scope): summary summary summary"; let pull = { commits: [{ commit: { message: subject } }] }; <|f...
<|file_name|>task_2.py<|end_file_name|><|fim▁begin|>#task_2<|fim▁hole|><|fim▁end|>
a = int(input()) print(sum(list(map(int, list((bin(a))[2:])))))
<|file_name|>upgrade_ng1_adapter.ts<|end_file_name|><|fim▁begin|>import { Directive, DoCheck, ElementRef, EventEmitter, Inject, OnInit, OnChanges, SimpleChange, Type } from 'angular2/core'; import { NG1_COMPILE, NG1_SCOPE, NG1_HTTP_BACKEND, NG1_TEMPLATE_CACHE, NG1_CONTROLLER } from './consta...
class UpgradeNg1ComponentAdapter implements OnInit, OnChanges, DoCheck { destinationObj: any = null;
<|file_name|>aggregate-to-folders.js<|end_file_name|><|fim▁begin|>/* eslint-disable security/detect-object-injection */ const path = require("path").posix; const { calculateInstability, metricsAreCalculable } = require("../module-utl"); const { getAfferentCouplings, getEfferentCouplings, getParentFolders, objec...
const lModuleDependents = object2Array(pFolder.dependents); const lModuleDependencies = object2Array(pFolder.dependencies); // this calculation might look superfluous (why not just .length the dependents
<|file_name|>generic.go<|end_file_name|><|fim▁begin|>package populator import ( "encoding/base64" "fmt" "io/ioutil" "os" "path/filepath" "sync/atomic" v1payload "github.com/nerdalize/nerd/nerd/client/auth/v1/payload" "github.com/pkg/errors" "k8s.io/client-go/tools/clientcmd/api" // this blank import is nece...
} d, err := base64.StdEncoding.DecodeString(data) if err != nil {
<|file_name|>0001_initial.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-06 16:27 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): ...
name='user',
<|file_name|>template.js<|end_file_name|><|fim▁begin|>define( ({ viewer: { loading: { step1: "CARGANDO APLICACIÓN", step2: "CARGANDO DATOS", step3: "INICIALIZANDO", fail: "La carga de la comparativa de mapas ha fallado", loadBuilder: "CAMBIANDO A MODO DE BUILDER", redirectSignIn:...
saveSuccess: "La aplicación se ha guardado con éxito",
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- <|fim▁hole|><|fim▁end|>
__version__ = '0.0.1' __license__ = 'MIT'
<|file_name|>slow-stochastic.src.min.js<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
"use strict";import"../../Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js";
<|file_name|>test_support.rs<|end_file_name|><|fim▁begin|>// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Copyright © 2020, HST authors. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except ...
assert_eq!(i1, i2);
<|file_name|>routes.py<|end_file_name|><|fim▁begin|>from framework.routing import Rule, json_renderer from addons.s3 import views api_routes = { 'rules': [ Rule( [ '/settings/s3/accounts/', ], 'post', views.s3_add_user_account, j...
<|file_name|>ExampleUnitTest.java<|end_file_name|><|fim▁begin|>package cat.foixench.test.parcelable; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documenta...
<|file_name|>components.ts<|end_file_name|><|fim▁begin|>import { Reflection, Type } from "../models"; import type { Serializer } from "./serializer"; import type { ModelToObject } from "./schema"; /** * Represents Serializer plugin component. * * Like {@link Converter} plugins each {@link Serializer} plugin define...
> extends SerializerComponent<T> {
<|file_name|>GuideActivity.java<|end_file_name|><|fim▁begin|>package android_testsuite; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android_testsuite.mytest.application_search.AppSearchActivity; import android_tes...
<|file_name|>performancetiming.rs<|end_file_name|><|fim▁begin|>/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ use crate::dom::bindings::codegen::Bindings::Perfo...
<|file_name|>Track.java<|end_file_name|><|fim▁begin|>package com.benjaminsproule.cloud.domain; import lombok.AccessLevel; import lombok.Data; import lombok.NoArgsConstructor; import lombok.Setter; @Data @Setter(AccessLevel.PACKAGE)<|fim▁hole|> private String path; private Long trackNumber; private String t...
@NoArgsConstructor(access = AccessLevel.PACKAGE) public class Track { private String id;
<|file_name|>Ui_configdialog.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'configdialog.ui' # # by: PyQt4 UI code generator 4.5.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui<|fim▁hole|>class Ui_Dialog(ob...
<|file_name|>async_utils.rs<|end_file_name|><|fim▁begin|>// Copyright 2021 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. //! Virtio device async helper functions. use std::cell::RefCell; use std::rc::Rc; use anyho...
// Clone resample_evt if interrupt has one.
<|file_name|>MessagesPage.js<|end_file_name|><|fim▁begin|>/** * Created by Rory on 12/14/2015. */ Template.MessagesPage.helpers({ getMessages: function () { if (Meteor.user()) {<|fim▁hole|> getSender: function () { return {username:this.sender}; }, getTextbook: function () { return {_title:this.tit...
return Messages.find({owner:Meteor.user().username}); } },
<|file_name|>ttlcontroller.go<|end_file_name|><|fim▁begin|>/* Copyright 2017 The Kubernetes 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 ...
defer ttlc.queue.ShutDown() glog.Infof("Starting TTL controller")
<|file_name|>issue-42234-unknown-receiver-type.rs<|end_file_name|><|fim▁begin|>// Copyright 2018 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 // htt...
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
<|file_name|>interface.go<|end_file_name|><|fim▁begin|><|fim▁hole|>/* Copyright The Kubernetes 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....
<|file_name|>app.js<|end_file_name|><|fim▁begin|>// app.js /*jslint node: true */ 'use strict'; <|fim▁hole|>var mongoose = require('mongoose'); var flash = require('connect-flash'); var morgan = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session...
var compression = require('compression'); var express = require('express'); var passport = require('passport');
<|file_name|>url.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 dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::...
<|file_name|>hlo_to_ir_bindings.cc<|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.apache....
llvm::Value* typed_ir_value;
<|file_name|>OnBehalfOfRequest.ts<|end_file_name|><|fim▁begin|>/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License.<|fim▁hole|>import { CommonOnBehalfOfRequest } from "@azure/msal-common"; /** * - scopes - Array of scopes the application is requesting acc...
*/
<|file_name|>configuration.py<|end_file_name|><|fim▁begin|><|fim▁hole|># coding:utf-8 """ Author : qbeenslee Created : 2014/12/12 """ import re # 客户端ID号 CLIENT_ID = "TR5kVmYeMEh9M" ''' 传输令牌格式 加密方式$迭代次数$盐$结果串 举个栗子: ====start==== md5$23$YUXQ_-2GfwhzVpt5IQWp$3ebb6e78bf7d0c1938578855982e2b1c ====end==...
<|file_name|>tcp.rs<|end_file_name|><|fim▁begin|>// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LI...
use sync::Arc; use sync::atomic::{AtomicBool, Ordering};
<|file_name|>terraindisplay.py<|end_file_name|><|fim▁begin|>"""Module for displaying Terrain, both in 2D and 3D. (Not accessible outside of package; use display methods of Terrain instead.) """ from Tkinter import Tk, Canvas, Frame, BOTH from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import ...
<|file_name|>classify.py<|end_file_name|><|fim▁begin|># This file is part of Bioy # # Bioy 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...
max_percent = '{0:.2f}'.format(max(percents)), min_percent = '{0:.2f}'.format(min(percents)), max_coverage = '{0:.2f}'.format(max(coverages)), min_coverage = '{0:.2f}'.format(min(coverages)),
<|file_name|>CServer.cpp<|end_file_name|><|fim▁begin|>#include <net/http/CServer.hpp> namespace net { namespace http { CServer::CServer(void) : net::CServer(net::EProtocol::TCP)<|fim▁hole|><|fim▁end|>
{ } }}
<|file_name|>version.go<|end_file_name|><|fim▁begin|>package main // Heavily inspired by https://github.com/btcsuite/btcd/blob/master/version.go import ( "bytes" "fmt" "strings" ) // semanticAlphabet const semanticAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-" // These constants def...
// Append build metadata if there is any. The plus called for // by the semantic versioning spec is automatically appended and should // not be contained in the build metadata string. The build metadata
<|file_name|>strings.py<|end_file_name|><|fim▁begin|>string = input()<|fim▁hole|><|fim▁end|>
string[0] = "a"
<|file_name|>test_hacking.py<|end_file_name|><|fim▁begin|># Copyright 2014 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. You may obtain # a copy of the License at # # http://www.apache.org/licenses...
return msg """ self._assert_has_no_errors(code, checker)
<|file_name|>process-spawn-with-unicode-params.rs<|end_file_name|><|fim▁begin|>// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // htt...
<|file_name|>struct-log-self.rs<|end_file_name|><|fim▁begin|>//! Example of how to implement `KV` for a struct //! to conveniently log data associated with it. #[macro_use] extern crate slog; use slog::*; mod common; struct Peer { host: String, port: u32, } impl Peer { fn new(host: String, port: u32) -> ...
} // `KV` can be implemented for a struct
<|file_name|>xlate.js<|end_file_name|><|fim▁begin|>var translations = { 'es': { 'One moment while we<br>log you in': 'Espera un momento mientras<br>iniciamos tu sesión', 'You are now connected to the network': 'Ahora estás conectado a la red', 'Account signups/purchas...
'El formulario ha sido llenado con la información de tu cuenta. Si deseas modificar algún dato, puedes editar el formulario antes de completar la solicitud.', 'Your Password': 'Tu contraseña',
<|file_name|>files.rs<|end_file_name|><|fim▁begin|>use crate::utils::schemas; use defaults::Defaults; use events::publish; use formats::FormatSpec; use schemars::{schema::Schema, JsonSchema}; use serde::Serialize; use serde_with::skip_serializing_none; use std::{ collections::{btree_map::Entry, BTreeMap, BTreeSet},...
<|file_name|>index.ts<|end_file_name|><|fim▁begin|>import * as pako from "pako" import {Point} from "./Utils" import {DrawHelper} from "./DrawHelper" import {InputManager} from "./InputManager" import {KeyBindings} from "./InputManager" import {Data, Entity} from "./Entity" import {Grid} from "./Grid" export const COL...
new Point(DrawHelper.camera_position.x+OPTIONS.GRID_SIZE, DrawHelper.camera_position.y), new Point(DrawHelper.camera_position.x+OPTIONS.GRID_SIZE, DrawHelper.camera_position.y+this._canvas.height), {
<|file_name|>serviceconsumermanagement-gen.go<|end_file_name|><|fim▁begin|>// Package serviceconsumermanagement provides access to the Service Consumer Management API. // // See https://cloud.google.com/service-consumer-management/docs/overview // // Usage example: // // import "google.golang.org/api/serviceconsumerm...
// server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"`
<|file_name|>gnome.py<|end_file_name|><|fim▁begin|># Copyright 2015 The Meson development team # 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...
'input' : libsources,
<|file_name|>fc_2015_05_04.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # imports go here import sched import time # # Free Coding session for 2015-05-04 # Written by Matt Warren # scheduler = sched.scheduler(time.time, time.sleep) def print_time(): print(time.time()) return True <|fim▁hole|>schedu...
scheduler.enter(3, 1, print_time)
<|file_name|>CapsWarningTooltip.js<|end_file_name|><|fim▁begin|>/** * * Modelo de Login usando MCV * Desenvolvido por Ricardo Hirashiki * Publicado em: http://www.sitedoricardo.com.br * Data: Ago/2011 * * Baseado na extensao criada por Wemerson Januario * http://code.google.com/p/login-window/ * */ ...
anchor : 'left',
<|file_name|>models.py<|end_file_name|><|fim▁begin|># coding=utf-8 from django.db import models from main.models import BaseModel STAT_TYPES = ( ('user_count', 'User count'), ('host_count', 'Host count'), ('ip_update_count', 'IP update count'), ) class StatisticsEntry(BaseModel): class Meta: ...
<|file_name|>fi_system.hh<|end_file_name|><|fim▁begin|><|fim▁hole|>#ifndef _FI_SYSTEM #include <map> #include <utility> #include <iostream> #include <fstream> #include "config/full_system.hh" #include "config/the_isa.hh" #include "base/types.hh" #include "arch/types.hh" #include "base/trace.hh" #include "debug/Fault...