prompt
large_stringlengths
70
991k
completion
large_stringlengths
0
1.02k
<|file_name|>conf.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- # # scikit-learn documentation build configuration file, created by # sphinx-quickstart on Fri Jan 8 09:13:42 2010. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration...
# This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. #language = None
<|file_name|>OutdatedTaskConfiguration.java<|end_file_name|><|fim▁begin|>package com.liferay.micro.maintainance.configuration; import aQute.bnd.annotation.metatype.Meta; /** * @author Rimi Saadou * @author Laszlo Hudak */ @Meta.OCD( id = "com.liferay.micro.maintainance.configuration.OutdatedTaskConfiguration" ) p...
}
<|file_name|>generate-chains.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # Copyright (c) 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Valid certificate chain where the target certificate contains a pub...
# Intermediate intermediate = gencerts.create_intermediate_certificate('Intermediate', root)
<|file_name|>model_change.js<|end_file_name|><|fim▁begin|>Ext.define('User', {<|fim▁hole|> extend: 'Ext.data.Model', fields: [ {name: 'name', type: 'string', convert: function(value,record) { return record.get('name')+' the barbarian'); } }, {name: 'age', type: 'int'}, {name: 'phone', type: 'string'}...
<|file_name|>borrowck-freeze-frozen-mut.rs<|end_file_name|><|fim▁begin|>// run-pass // Test that a `&mut` inside of an `&` is freezable. struct MutSlice<'a, T:'a> { data: &'a mut [T] } fn get<'a, T>(ms: &'a MutSlice<'a, T>, index: usize) -> &'a T { &ms.data[index] } pub fn main() { let mut data = [1, 2,...
let index1 = get(&slice, 1); let index2 = get(&slice, 2); assert_eq!(*index0, 5); assert_eq!(*index1, 2);
<|file_name|>case-insensitive.test.js<|end_file_name|><|fim▁begin|>'use strict' const t = require('tap') const test = t.test const FindMyWay = require('../') test('case insensitive static routes of level 1', t => { t.plan(1) const findMyWay = FindMyWay({ caseSensitive: false, defaultRoute: (req, res) => ...
caseSensitive: false, defaultRoute: (req, res) => {
<|file_name|>GUIdispatcher.py<|end_file_name|><|fim▁begin|>""" Graphical user interface functionalities for the SampleResource Aggregate Manager. @date: Jun 12, 2013 @author: CarolinaFernandez """ from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.http import H...
nodes.append(Node( # Users shall not be left the choice to choose group/island; otherwise collision may arise
<|file_name|>models.py<|end_file_name|><|fim▁begin|>from django.db import models from django.core.urlresolvers import reverse from django.conf import settings import misaka from groups.models import Group # Create your models here. # POSTS MODELS.PY from django.contrib.auth import get_user_model User = get_user_mode...
ordering = ['-created_at'] unique_together = ['user', 'message']
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // ...
<|file_name|>JavaElementRequestor.java<|end_file_name|><|fim▁begin|>/******************************************************************************* * Copyright (c) 2000, 2013 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public Licen...
this.types.toArray(results);
<|file_name|>syncSchemaDocs.js<|end_file_name|><|fim▁begin|>// run `node syncSchemaDocs.js` from the lib folder to update/add the schema docs that we specify here // note the relative path to nano module from where this doc is stored. // currently this script requires the context docs to already exist in couchdb // i...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>#[cfg(any(target_os = "linux", target_os = "android"))] pub mod epoll; #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd"))] pub mod event; // TODO: switch from feature flags to conditional builds #[cfg(feature = "eventfd")] ...
pub mod socket;
<|file_name|>QAInfo.java<|end_file_name|><|fim▁begin|>/* $Id: QAInfo.java,v 1.6 2007/12/04 13:22:01 mke Exp $ * $Revision: 1.6 $ * $Date: 2007/12/04 13:22:01 $ * $Author: mke $ * * The SB Util Library. * Copyright (C) 2005-2007 The State and University Library of Denmark * * This library is free software; you ...
* * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<|file_name|>iItemsChangedEventArgs.ts<|end_file_name|><|fim▁begin|>export interface IItemsChangedEventArgs<T> { added: T[], removed: T[]<|fim▁hole|><|fim▁end|>
}
<|file_name|>timer.rs<|end_file_name|><|fim▁begin|>// Copyright 2020 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. use crate::{ AsRawDescriptor, FakeClock, FromRawDescriptor, IntoRawDescriptor, RawDescriptor, Re...
<|file_name|>database.go<|end_file_name|><|fim▁begin|>package documentdb // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incor...
}
<|file_name|>appconfig.py<|end_file_name|><|fim▁begin|>from django.apps import AppConfig class MailinglistsConfig(AppConfig): name = 'apps.mailinglists'<|fim▁hole|><|fim▁end|>
verbose_name = 'Mailinglists'
<|file_name|>run.py<|end_file_name|><|fim▁begin|><|fim▁hole|> rcblog.main()<|fim▁end|>
import rcblog if __name__ == '__main__':
<|file_name|>ubcScraper.py<|end_file_name|><|fim▁begin|>import requests from bs4 import BeautifulSoup import sys import os import pandas import re <|fim▁hole|> bookLinks = "http://www.ubcpress.ca/search/" outputDir = "UBC_Output" def main(): r = requests.get(targetURL) soup = BeautifulSoup(r.content, "html.p...
targetURL = "http://www.ubcpress.ca/search/subject_list.asp?SubjID=45"
<|file_name|>package.ts<|end_file_name|><|fim▁begin|>import { resolve, join } from "path"; const { version } = require('../package.json'); const root = resolve(__dirname, '..'); export type PkgEnv = { name: string; version: string; root: string; buildCtx: { src: string; config: string;...
export default { name: 'studio90srls',
<|file_name|>Connector.java<|end_file_name|><|fim▁begin|>/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package config; import interfaces.*; import java.sql.*; import java.util.logg...
protected boolean getData(String query, Callback callback) { ResultSet rs = null;
<|file_name|>factory.py<|end_file_name|><|fim▁begin|>""" This is part of the MSS Python's module. Source: https://github.com/BoboTiG/python-mss """ import platform from typing import TYPE_CHECKING from .exception import ScreenShotError if TYPE_CHECKING: from typing import Any # noqa from .base import MSSB...
<|file_name|>hdfs_space_metric_server.py<|end_file_name|><|fim▁begin|>import asyncore, socket, logging, time, asynchat, os from hdfs_space_common import get_tree_from_cache, get_child_node, TreeNode FORMAT = '%(asctime)-15s: %(levelname)s %(module)s - %(funcName)s: %(message)s' logging.basicConfig(format=FORMAT, leve...
#metric:path|user|size # OR #db:new_path
<|file_name|>account.go<|end_file_name|><|fim▁begin|>package tradier <|fim▁hole|>// from the Tradier API. type AccountService service func (s *AccountService) accountRequest(uri string) (*Account, *Response, error) { req, err := s.client.NewRequest("GET", uri, nil) if err != nil { return nil, nil, err } a := &A...
// AccountService handles routes related to account inquiry
<|file_name|>MenuState.java<|end_file_name|><|fim▁begin|>package states; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage;<|fim▁hole|>import database.LoadGame; import game.Game; import graphics.ButtonAction; import graphics.Text; import graphics.UIButton; impor...
import java.util.ArrayList; import database.DeleteGame;
<|file_name|>debug.py<|end_file_name|><|fim▁begin|>from .. import x64dbg class HardwareType: HardwareAccess = x64dbg.HardwareAccess HardwareWrite = x64dbg.HardwareWrite HardwareExecute = x64dbg.HardwareExecute def Wait(): x64dbg.Wait() def Run(): x64dbg.Run() def Stop(): x64dbg.Stop() def...
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>extern crate meowth; <|fim▁hole|> fn main() { let mut interpreter = Interpreter::new(); loop { print!("meowth :: "); let _ = stdout().flush(); let mut input = String::new(); match stdin().read_line(&mut input) { Ok(_) => { if input ==...
use meowth::interpreter::Interpreter; use std::io::{Write, stdout, stdin};
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>""" COMMAND-LINE SPECIFIC STUFF ============================================================================= """ import markdown import sys import optparse import logging from logging import DEBUG, INFO, CRITICAL logger = logging.getLogger('MARKDOWN') def par...
'safe_mode': options.safe, 'extensions': options.extensions, 'encoding': options.encoding, 'output_format': options.output_format,
<|file_name|>utils.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- from __future__ import absolute_import import os import zipfile DEV_DATA_PATH = os.path.join( os.path.dirname(__file__), '..', 'dev_data', ) def data_path(*args): """ Returns a path to dev data """ return os.path.jo...
zf = zipfile.ZipFile(zip_name) txt = zf.open(zf.namelist()[0]).read().decode('utf8')
<|file_name|>fb.go<|end_file_name|><|fim▁begin|>// Copyright 2019-2019 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fb import ( "fmt" "image" "os" "github.com/orangecms/go-framebuffer/framebuffer" ) const ...
for sy := 1; sy <= factor; sy++ { offset := bpp * ((posy+y*factor+sy)*stride + posx + x*factor + sx) buf[offset+0] = byte(b)
<|file_name|>perf_http.py<|end_file_name|><|fim▁begin|># # This file is part of Gruvi. Gruvi is free software available under the # terms of the MIT license. See the file "LICENSE" that was provided # together with this source file for the licensing terms. # # Copyright (c) 2012-2014 the Gruvi authors. See the file "AU...
import time import unittest
<|file_name|>Template.js<|end_file_name|><|fim▁begin|>"use strict"; var Template = function (options) { this._pageTitle = ''; this._titleSeparator = options.title_separator; this._siteTitle = options.site_title; this._req = null; this._res = null; }; Template.prototype.bindMiddlew...
this._siteTitle = siteTitle; };
<|file_name|>CreateUseCaseResultJsonUnmarshaller.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 L...
if (context.testExpression("UseCaseId", targetDepth)) {
<|file_name|>urls.py<|end_file_name|><|fim▁begin|>from django.conf.urls import patterns, include, url from testapp.api import PersonResource from django.contrib import admin admin.autodiscover() person_resource = PersonResource() <|fim▁hole|>urlpatterns = patterns('', # Examples: ...
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>#![deny( missing_debug_implementations, missing_copy_implementations, trivial_casts, trivial_numeric_casts, unused_import_braces, unused_qualifications, unsafe_code, dead_code, unused_results, )] extern crate clap; extern crate rand;...
<|file_name|>noexporttypeexe.rs<|end_file_name|><|fim▁begin|>// aux-build:noexporttypelib.rs extern crate noexporttypelib;<|fim▁hole|> // because the def_id associated with the type was // not convertible to a path. let x: isize = noexporttypelib::foo(); //~^ ERROR mismatched types //~| expected type ...
fn main() { // Here, the type returned by foo() is not exported. // This used to cause internal errors when serializing
<|file_name|>tts.py<|end_file_name|><|fim▁begin|>"""Support for the cloud for text to speech service.""" from hass_nabucasa import Cloud from hass_nabucasa.voice import MAP_VOICE, VoiceError import voluptuous as vol from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider <|fim▁hole|>CONF_GENDER ...
from .const import DOMAIN
<|file_name|>ua.js<|end_file_name|><|fim▁begin|>(function ($) { $.Redactor.opts.langs['ua'] = { html: 'Код', video: 'Відео', image: 'Зображення', table: 'Таблиця', link: 'Посилання', link_insert: 'Вставити посилання ...', link_edit: 'Edit link', unlink: 'Видалити посилання', formatting: 'Стилі', paragraph: 'З...
cancel: 'Скасувати', insert: 'Вставити', save: 'Зберегти', _delete: 'Видалити',
<|file_name|>build_project.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python import argparse from os import path as os_path import demo_project as demo import traceback def set_host_url_arg(): parser.add_argument('--host', required=True, help='the url for the Materials Commons server') def...
<|file_name|>mock_alarm.rs<|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 // // https://www.apache.org/licenses/LICENSE-2.0 ...
<|file_name|>shipping.py<|end_file_name|><|fim▁begin|>from django.shortcuts import redirect from django.template.response import TemplateResponse from ..forms import AnonymousUserShippingForm, ShippingAddressesForm from ...userprofile.forms import get_address_form from ...userprofile.models import Address from ...team...
addresses_form = ShippingAddressesForm( data, additional_addresses=additional_addresses, initial={'address': shipping_address.id}) elif shipping_address:
<|file_name|>app.js<|end_file_name|><|fim▁begin|>// File: chapter14/appUnderTest/app/scripts/app.js angular.module('fifaApp', ['ngRoute']) .config(function($routeProvider) { $routeProvider.when('/', { templateUrl: 'views/team_list.html', controller: 'TeamListCtrl as teamListCtrl' }) .when('/l...
resolve: { auth: ['$q', '$location', 'UserService', function($q, $location, UserService) {
<|file_name|>find_active_cell_around_point_01.cc<|end_file_name|><|fim▁begin|>// --------------------------------------------------------------------- // // Copyright (C) 2009 - 2014 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redist...
deallog.depth_console(0); deallog.threshold_double(1.e-10);
<|file_name|>color-button.hpp<|end_file_name|><|fim▁begin|>/* * This file is part of BlendInt (a Blender-like Interface Library in * OpenGL). * * BlendInt (a Blender-like Interface Library in OpenGL) is free * software: you can redistribute it and/or modify it under the terms * of the GNU Lesser General Public Li...
GLuint vao_[2];
<|file_name|>index.js<|end_file_name|><|fim▁begin|>import epics from './src/metricsEpics'; import { reducer } from './src/metricsReducer'; import * as selector from './src/metricsSelectors'; import * as constants from './src/metricsConstants'; import Metrics from './src/metricsPage';<|fim▁hole|> export default { name...
import { MetricsMenu } from './src/metricsMenu';
<|file_name|>pcg32_tests.rs<|end_file_name|><|fim▁begin|>extern crate pcg_rand; extern crate rand; use pcg_rand::seeds::PcgSeeder; use pcg_rand::Pcg32; use rand::{distributions::Alphanumeric, thread_rng, Rng, SeedableRng}; const NUM_TESTS: usize = 1000; #[test] fn pcg32_unseeded() { let mut ra: Pcg32 = Pcg32::ne...
let seq: u64 = thread_rng().gen(); let mut ra: Pcg32 = Pcg32::from_seed(PcgSeeder::seed_with_stream(seed, seq)); let mut rb: Pcg32 = Pcg32::from_seed(PcgSeeder::seed_with_stream(seed, seq + 2)); assert!(
<|file_name|>darwin.py<|end_file_name|><|fim▁begin|>"""engine.SCons.Platform.darwin Platform-specific initialization for Mac OS X systems. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Platform.Platform() selection method. """ # # Copyrigh...
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
<|file_name|>04.1.Cameras.c++<|end_file_name|><|fim▁begin|>/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library 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 Software Foundati...
<|file_name|>connection.js<|end_file_name|><|fim▁begin|>/** * Module dependencies. */ var Connection = require('../../connection') , mongo = require('mongodb') , Server = mongo.Server , ReplSetServers = mongo.ReplSetServers; /** * Connection for mongodb-native driver * * @api private */ function NativeCo...
/**
<|file_name|>hrtb-perfect-forwarding.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.ap...
<|file_name|>wrappedAndRecursiveConstraints.js<|end_file_name|><|fim▁begin|><|fim▁hole|> constructor(public data: T) { } foo<U extends T>(x: U) { return x; } } interface Foo extends Date { foo: string; } var y: Foo = null; var c = new C(y); var r = c.foo(y); //// [wrappedAndRecursiveConstrai...
//// [wrappedAndRecursiveConstraints.ts] // no errors expected class C<T extends Date> {
<|file_name|>character.js<|end_file_name|><|fim▁begin|>var mongoose = require('mongoose'); var characterSchema = new mongoose.Schema({ name: String, userID: { type: mongoose.Schema.Types.ObjectId, ref: 'User' }, inventarID: { type: mongoose.Schema.Types.ObjectId, ref: 'Inventar' }, gender: String, ...
if("legs" in data.gear) character.gear.legs = data.gear.legs;
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>pub mod counts; mod hashing; pub mod mash; pub mod scaled; use needletail::parser::SequenceRecord; use serde::{Deserialize, Serialize}; use crate::bail; use crate::errors::FinchResult; use crate::filtering::FilterParams; use crate::serialization::Sketch; pub use hashin...
}
<|file_name|>manage.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "InBrowserEditor.settings") from django.core.management import execute_from_command_line <|fim▁hole|><|fim▁end|>
execute_from_command_line(sys.argv)
<|file_name|>conftest.py<|end_file_name|><|fim▁begin|>import os import pytest BASE_DIR = os.path.abspath(os.path.dirname(__file__)) SITE_DIR = os.path.join(BASE_DIR, "site") @pytest.fixture def site_dir(): return SITE_DIR @pytest.fixture def output_exist(): return lambda path: os.path.exists(os.path.join(S...
os.chdir(SITE_DIR)
<|file_name|>diagramsTest.js<|end_file_name|><|fim▁begin|>/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function drawSctDiagram(concept, parentDiv) { parentDiv.svg({settings: {...
connectElements(svg, circle2, rect3, 'bottom', 'left', 'ClearTriangle'); circle3 = drawAttributeGroupNode(svg, 250, 330); connectElements(svg, circle2, circle3, 'bottom', 'left');
<|file_name|>doc.go<|end_file_name|><|fim▁begin|>// Package models has the structs that are used by the application. // // Copyright (c) 2016 VMware // Author: Luis M. Valerio (lvaleriocasti@vmware.com) //<|fim▁hole|>// License: MIT // /* Package approval monitor managers approvals for the lab. */ package models<|fim...
<|file_name|>setup.py<|end_file_name|><|fim▁begin|>def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('datasets', parent_package, top_path) config.add_subpackage('volumes')<|fim▁hole|> return config if __name__ == '__main__': ...
config.add_subpackage('transforms')
<|file_name|>index.js<|end_file_name|><|fim▁begin|>module.exports = [ require('./ngdoc'), require('./name'), require('./area'), require('./module'), require('./id'), require('./restrict'), require('./eventType'), require('./example'), require('./element'), require('./fullName'), require('./priorit...
require('./packageName'), require('./scope') ];
<|file_name|>worldclock_lt.ts<|end_file_name|><|fim▁begin|><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="lt"> <context> <name>LXQtWorldClock</name> <message> <location filename="../lxqtworldclock.cpp" line="241"/> <source>&apos;&lt;b&gt;&apos;HH:mm:ss&apos;&lt;...
<location filename="../lxqtworldclockconfigurationtimezones.ui" line="36"/> <source>Time zone</source>
<|file_name|>index.ts<|end_file_name|><|fim▁begin|>/* MIT License Copyright (c) 2022 Looker Data Sciences, Inc. 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, includin...
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
<|file_name|>index.js<|end_file_name|><|fim▁begin|><|fim▁hole|><|fim▁end|>
export { default } from './ElectronOriginalWordmark'
<|file_name|>log-service.ts<|end_file_name|><|fim▁begin|>module app.log { export class LogRow { message: string; level: string; constructor(message: string, level: string) { this.message = message; this.level = level; } } export class LogService { ...
<|file_name|>dimension1.cc<|end_file_name|><|fim▁begin|>/* Test Product<NNC_Polyhedron, Grid>::space_dimension() and Product<NNC_Polyhedron, Grid>::affine_dimension(). Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it> Copyright (C) 2010-2017 BUGSENG srl (http://bugseng.com) This file is part of th...
#include "partially_reduced_product_test.hh" typedef NNC_Polyhedron DOMAIN1;
<|file_name|>ja.js<|end_file_name|><|fim▁begin|>/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'removeformat', 'ja', {<|fim▁hole|><|fim▁end|>
toolbar: 'フォーマット削除' });
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|>from stst.features.features_sequence import * from stst.features.features_pos import * from stst.features.features_ngram import * from stst.features.features_bow import * from stst.features.features_dependency import * from stst.features.features_align import * from...
<|file_name|>format_pharmaciens.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import pandas as pd import sys from builtins import str as text from utils import find_zipcode, str2date header_mapping = { 'origin': 'ORIGIN', 'company_name': 'LABO', 'lastname_firstname': 'BENEF_PS_QUALITE_NOM_PRENO...
}
<|file_name|>test.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python # -*- coding: utf-8 -*- # File: test.py # # Copyright 2018 Costas Tyfoxylos # # 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 ...
if getattr(args, argument)), None) test(stage)
<|file_name|>main.rs<|end_file_name|><|fim▁begin|>use amethyst::{ core::transform::TransformBundle, input::{InputBundle, StringBindings}, prelude::*, renderer::{ plugins::{RenderFlat2D, RenderToWindow}, types::DefaultBackend, RenderingBundle, }, utils::application_root_di...
.with_plugin(RenderFlat2D::default()),
<|file_name|>log.go<|end_file_name|><|fim▁begin|>package log import ( "fmt" "os" ) type Exit struct { Code int Closure func() } func HandleExit() { if e := recover(); e != nil { if exit, ok := e.(Exit); ok { exit.Closure() os.Exit(exit.Code) } panic(e) } } func Error(msg string, closure func())...
}
<|file_name|>topic-viewer-backend-api.service.spec.ts<|end_file_name|><|fim▁begin|>// Copyright 2018 The Oppia 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 a...
<|file_name|>mod.rs<|end_file_name|><|fim▁begin|>use byteorder::{BigEndian, WriteBytesExt}; use db; use std::cmp; use std::io::Cursor; pub mod bloomfilter; #[macro_export] macro_rules! retry_bound { ($k:expr) => { if $k < 9 { // special case since formula yields a very loose upper bound for k < 9 ...
} }
<|file_name|>range_put.js<|end_file_name|><|fim▁begin|>/******************************************************************************* * Copyright 2013-2014 Aerospike, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
// // Perform the operation
<|file_name|>grideditor.py<|end_file_name|><|fim▁begin|>from __future__ import absolute_import, print_function, division import copy import os import re import urwid from mitmproxy import filt from mitmproxy import script from mitmproxy import utils from mitmproxy.console import common from mitmproxy.console import ...
fspecs[0] = ("fixed", self.editor.first_width + 2, fspecs[0]) w = urwid.Columns( fspecs,
<|file_name|>base.ts<|end_file_name|><|fim▁begin|>/** * @license * Copyright 2016 Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.<|fim▁hole|> * * Unless required by applicable law or agreed to in writing, software * d...
* You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0
<|file_name|>part2.rs<|end_file_name|><|fim▁begin|>// adventofcode - day 7 // part 2 use std::io::prelude::*; use std::fs::File; use std::collections::HashMap; use std::cell::RefCell; enum Gate { // Strings are the names of the input wire(s) Not(String), And(String, String), FixedAnd(String), //...
let x = wname.to_string();
<|file_name|>topic_vote.rs<|end_file_name|><|fim▁begin|>use mysql::from_row; use mysql::error::Error::MySqlError; use common::utils::*;<|fim▁hole|>pub fn is_voted(user_id: &str, topic_id: &str) -> bool { let mut result = SQL_POOL.prep_exec(r#" SELECT count(id) FROM topic_vote ...
use common::lazy_static::SQL_POOL;
<|file_name|>eventos.js<|end_file_name|><|fim▁begin|>function closeObject(id) { document.getElementById(id).style.display = 'none'; } function openObject(id) { document.getElementById(id).style.display = 'block'; } function openClose(id){ if (document.getElementById(id).style.display == 'block'){ ...
<|file_name|>settings.py<|end_file_name|><|fim▁begin|># Django settings for nadbproj project. import os.path DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresq...
'nadb', 'django.contrib.markup',
<|file_name|>Logger.cpp<|end_file_name|><|fim▁begin|>/* * Logger.cpp * * Created on: 2013. 9. 16. * Author: ilvsusie */ #include "Logger.h" #include "Poco/Logger.h" #include "Poco/SimpleFileChannel.h" #include "Poco/AutoPtr.h" #include "Poco/Message.h" #include "Poco/PatternFormatter.h" #include "Poco/Form...
Poco::Logger::root().setChannel(formattingChannel);
<|file_name|>dialogflow_v2_generated_conversation_datasets_delete_conversation_dataset_sync.py<|end_file_name|><|fim▁begin|># -*- 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...
<|file_name|>__main__.py<|end_file_name|><|fim▁begin|>''' Usage: manager puzzle_load (--file <filename>) [--url <url>] manager puzzle_del (--name <name>) [--url <url>] manager puzzles [--url <url>] manager puzzleboards_clear [--url <url>] manager puzzleboard_consume [--async-url <url>] (--name <name...
<|file_name|>test_messages.py<|end_file_name|><|fim▁begin|># -*- coding: utf-8 -*- import json from catmaid.models import Message from .common import CatmaidApiTestCase class MessagesApiTests(CatmaidApiTestCase): def test_read_message_error(self): self.fake_authentication() message_id = 5050 ...
response = self.client.post(f'/messages/{message_id}/mark_read') self.assertEqual(response.status_code, 302)
<|file_name|>context_processors.py<|end_file_name|><|fim▁begin|>from currencies.models import Currency def currencies(request): currencies = Currency.objects.active() if not request.session.get('currency'): try: currency = Currency.objects.get(is_default__exact=True)<|fim▁hole|> return...
except Currency.DoesNotExist: currency = None request.session['currency'] = currency
<|file_name|>beforeFrame.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ### # Copyright (C) 2012 Shrinidhi Rao shrinidhi@clickbeetle.in <|fim▁hole|># 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 ...
#
<|file_name|>__init__.py<|end_file_name|><|fim▁begin|># -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------...
def run_perfstress_cmd(): main_loop = _PerfStressRunner()
<|file_name|>test_ls.rs<|end_file_name|><|fim▁begin|>/* * Test Eio module. * * List and process all the rust source files '.rs' in the current dir. * */ extern crate libc; extern crate efl; use libc::{c_char}; use std::c_str::CString; use efl::ecore; use efl::eio; fn _filter_cb(count: &mut int, handler: &eio...
ecore::main_loop_begin(); eio::shutdown();
<|file_name|>reset-mode.rs<|end_file_name|><|fim▁begin|><|fim▁hole|>// cc #46688 fn surprise(x: i32) { assert_eq!(x, 2); } fn main() { let x = &(1, &2); let (_, &b) = x; surprise(b); }<|fim▁end|>
// run-pass // Test that we "reset" the mode as we pass through a `&` pattern. //
<|file_name|>malformed_json.py<|end_file_name|><|fim▁begin|># Copyright 2013 OpenStack Foundation # Copyright 2013 Rackspace Hosting # Copyright 2013 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file exc...
databases = "foo"
<|file_name|>IPv4_HTTP.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python # -*- coding: utf-8 -*- ## ## # Author: Peter Manev # # peter.manev@openinfosecfoundation.org # ## ## ## !!! IMPORTANT - LATEST DEV Scapy is neede...
session_packets_fragmented[:] = [] #empty the list
<|file_name|>pr-check.js<|end_file_name|><|fim▁begin|>/** * Copyright 2016 The AMP HTML 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://ww...
// Unit tests should need a CSS-only build, but for now, we need a full dist // because some of the tests are integration tests. // TODO(rsimha-amp, 9404): Clean up unit tests and change to css-only build. command.buildRuntime();
<|file_name|>create_listener_request_response.go<|end_file_name|><|fim▁begin|>// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License...
<|file_name|>did.rs<|end_file_name|><|fim▁begin|>#[macro_use] mod utils; inject_indy_dependencies!(); extern crate indyrs as indy; extern crate indyrs as api; use crate::utils::{did, pool, ledger}; use crate::utils::constants::*; use crate::utils::types::ResponseType; use crate::utils::Setup; use self::indy::ErrorC...
let setup = Setup::did(); let new_verkey = did::replace_keys_start(setup.wallet_handle, &setup.did, "{}").unwrap();
<|file_name|>self_hosted_integration_runtime_node.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 in...
'version': {'readonly': True}, 'register_time': {'readonly': True},
<|file_name|>player.js<|end_file_name|><|fim▁begin|>/** * JS for the player character. * * * * */ import * as Consts from './consts'; var leftLeg; var rightLeg; var leftArm; var rightArm; const BODY_HEIGHT = 5; const LEG_HEIGHT = 5; const HEAD_HEIGHT = Consts.BLOCK_WIDTH * (3/5); const SKIN_COLORS = [0xFADCAB, 0x...
textureURL = "/img/tetratowerarm.png";
<|file_name|>thirteen.rs<|end_file_name|><|fim▁begin|>extern crate num; use self::num::bigint::BigInt; use std::str::FromStr; pub fn run() { let nums: Vec<BigInt> = vec![ BigInt::from_str("37107287533902102798797998220837590246510135740250").unwrap(), BigInt::from_str("46376937677490009712648124896970078050...
BigInt::from_str("38298203783031473527721580348144513491373226651381").unwrap(), BigInt::from_str("34829543829199918180278916522431027392251122869539").unwrap(), BigInt::from_str("40957953066405232632538044100059654939159879593635").unwrap(),
<|file_name|>leveldb.go<|end_file_name|><|fim▁begin|>// Copyright 2012 The LevelDB-Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package leveldb provides an ordered key/value store. // // BUG: This package is incomplete. pack...
<|file_name|>qgl_x11.cpp<|end_file_name|><|fim▁begin|>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtOpenGL module of the Qt Toolkit. ** ** $QT_BEGI...
validVisual = true; break; }
<|file_name|>Domain.java<|end_file_name|><|fim▁begin|>/* * Copyright 2013 the original author or 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.apa...
public Expression getInsertValue() { return insertValue;
<|file_name|>dji2papywizard.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python """ Copyright 2016 Alex Cortelyou 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.ap...
tagNotes = 'Image ApplicationNotes'