prompt
stringlengths
108
4.81k
target
stringlengths
17
1.85k
prompt_type
stringclasses
6 values
<|file_sep|>.github/workflows/create-tag.yml name: Create New Tag on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Bump version and push tag id: tag_version uses: mathieudutour/github-tag-action@v5.1 wit...
## v0.2.0 - 2015-07-14 >>>>>>> UPDATED
dummy_related_files
<|file_sep|>app/database/migrations/2015_01_12_141846_add_fields_to_users_table.php <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class AddFieldsToUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::t...
require 'spec_helper' require 'embeddable/view_helpers' describe Embeddable::ViewHelpers do subject { Dummy.new } class Dummy include Embeddable embeddable :video, from: :video_url embeddable :super_video, from: :another_url attr_accessor :video_url, :another_url end class HelperDummy i...
no_edit_random
<|file_sep|>desktop/core/src/desktop/js/apps/notebook2/components/aceEditor/autocomplete/MatchedText.vue <|fim_prefix|><!-- Licensed to Cloudera, Inc. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Clou...
file to you 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 by applicable law or agreed to in writing, software distributed under th...
no_edit_random
<|file_sep|>edit history --- a/examples/helloworld/helloworld.cpp +++ b/examples/helloworld/helloworld.cpp @@ -34,1 +28,0 @@ - --- a/examples/helloworld/helloworld.cpp +++ b/examples/helloworld/helloworld.cpp @@ -20,5 +19,0 @@ - qDebug() << "Handling request"; - qDebug() << "Method" << req->method(); - qDebug(...
>>>>>>> UPDATED
edit_history
<|file_sep|>BHCDatabase/app/grids/initiatives_grid.rb <|fim_prefix|>class InitiativesGrid include Datagrid scope do Initiative end filter(:id, :string, :multiple => ',') <<<<<<< CURRENT <|user_cursor|> filter(:name, :string) do |value| where.has {name =~ "#{value}%"} end ======= <|fim_suffix|> fi...
filter(:name, :string) { |value| where.has { name =~ "#{value}%" } } >>>>>>> UPDATED
no_related_no_history
<|file_sep|>_includes/writing-nav.html <|fim_prefix|><<<<<<< CURRENT <|user_cursor|><div class="mt2 h4 gray right-align pr2"> ======= <|fim_suffix|> {% for nav in site.nav.writing %} <a href="{{ nav[1] }}" class="gray{% if nav[0] == page.nav_item_writing %} link-color{% endif %}">{{ nav[0] }}</a> {% unless fo...
<div class="mt2 h5 gray right-align pr2"> >>>>>>> UPDATED
no_related_no_history
<|file_sep|>crystal-game-library/src/com/example/crystalgame/library/datawarehouse/KeyValueStore.java package com.example.crystalgame.library.datawarehouse; import java.io.Serializable; /** * An interface describing the expected behaviour of a database * @author Balazs Pete, Allen Thomas Varghese * */ public inte...
- PGVERSION=9.1 >>>>>>> UPDATED
dummy_related_files
<|file_sep|>src/main/java/nl/ekholabs/nlp/client/ElsieDeeSightFeignClient.java package nl.ekholabs.nlp.client; import feign.codec.Encoder; import feign.form.spring.SpringFormEncoder; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.context.annotation.Bean; import org.springframewo...
await Response.WriteAsync("Hello World raw"); >>>>>>> UPDATED
both
<|file_sep|>python/one-offs/list-to-json.py <|fim_prefix|>''' One-off junk code to convert a list of programming languages with some extra information in the comments to JSON ''' from collections import OrderedDict languages = [] for line in t.split('\n'): language = OrderedDict() slashes = line.find('//') ...
1) else: language_name = line language_name = language_name.strip() language_name = language_name[1:-2] language['name'] = language_name if slashes != -1: language_etc = language_etc.strip() if language_etc.startswith('http'): language['include'] = False ...
no_edit_random
<|file_sep|>app/views/layouts/_default_top_bar.html.erb <|fim_prefix|><div class="row header"> <<<<<<< CURRENT <|user_cursor|> <div class="span8"><a href="/polls"><img src="/assets/logo-color.png"></a></div> <div class="span4 login"><%= link_to "Sign in", new_user_session_path %></div> ======= <|fim_suffix|> </d...
<div class="span4"><a href="/polls"><img src="/assets/logo-color.png"></a></div> <div class="span8"> <div class="login"><%= link_to "Sign in", new_user_session_path %></div> </div> >>>>>>> UPDATED
dummy_related_files
<|file_sep|>PLAYER/BACK/change_profile_picture.php <?php /** * Created by PhpStorm. * User: Catalin * Date: 03-Jun-17 * Time: 18:09 */ session_start(); $username = $_SESSION["username"]; include ("conectare_db.php"); /* verific poza de profil a utilizatorului */ $target_dir = "../../../IMG/PROFILE/"...
[![Build Status](https://travis-ci.org/chaione/context_hub_vault.png?branch=master)](https://travis-ci.org/chaione/context_hub_vault) >>>>>>> UPDATED
dummy_related_files
<|file_sep|>demos/helm/tiller.yaml apiVersion: v1 kind: ServiceAccount metadata: name: tiller namespace: kube-system --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: tiller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: edit subjects: - kind: S...
-type: markdown hash: 1baada3b1f97030a0dbd28c77a3c89b477b2010bbaea5e24c5daaa57944a463a test-bench-deps: Cabal: '>=1.16.0' base: -any text: -any doctest: -any containers: -any generic-random: '>=1.2.0.0 && <1.3' mtl: -any atp: -any QuickCheck: '>=2.4 && <3.0' maintainer: evgeny.kotelnikov@gmail.com syn...
no_edit_random
<|file_sep|>sample_repos/stowm/git-2.3.3/git-2.3.3.yml --- fetch: wget https://www.kernel.org/pub/software/scm/git/git-2.3.3.tar.gz -O git-2.3.3.tar.gz configure: configure --prefix=/usr/local/stow/git-2.3.3 make: make install: make install url: https://www.kernel.org/pub/software/scm/git/git-2.3.3.tar.gz filename: git...
Current Version:2.00 Current Version Code:200 >>>>>>> UPDATED
dummy_related_files
<|file_sep|>plugins/modules/dedicated_server_monitoring.py #!/usr/bin/python from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.module_utils.basic import AnsibleModule DOCUMENTATION = ''' --- module: dedicated_server_monitoring short_description: Enable or disable ovh...
const polyglot = new Polyglot({ allowMissing: process.env.NODE_ENV === 'production', locale: locale, }); >>>>>>> UPDATED
dummy_related_files
<|file_sep|>db/data_migration/20200106155553_fix_replacement_for_attachment_data787481.rb attachment_data_to_modify = AttachmentData.find(787481) # 845347 isn't the replacement, but use it to find it. This avoids the # situation where the replacement changes before this code runs replacement = AttachmentData.find(8453...
version := "0.2.29" >>>>>>> UPDATED
dummy_related_files
<|file_sep|>app/soc/modules/gci/logic/profile.py #!/usr/bin/env python2.5 # # Copyright 2011 the Melange 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/l...
"deploy-beta": "npm run predeploy && publisssh --ignore node_modules ./build-dir zooniverse-static/www.batdetective.org/beta && npm run postdeploy", >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>htdocs/samples/simple_multi.html <html> <head> <link rel="stylesheet" type="text/css" href="/css/c3.css"> </head> <body> <div id="chart"></div> <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> <script src="/js/c3.js"></script> <script> var chart = c3.gene...
<%= link_to "Create Folder", "#create-subfolder-modal", "data-toggle" => "modal", :class => 'btn btn-success' %> >>>>>>> UPDATED
dummy_related_files
<|file_sep|>lessons/advanced/escripts.md --- layout: page title: Executables category: advanced order: 4 --- To build executables in Elixir we will be using escript. Escript produces an executables that can be run on any system with Erlang installed. ## Table of Contents - [Getting Started](#getting-started) - [Par...
latest: '1.5.1' >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>pombola/south_africa/management/commands/south_africa_import_bios_from_json.py from warnings import warn import json from django.core.management.base import LabelCommand, CommandError from pombola.core.models import Person # Expected JSON is an array of entries: # # [ # { # "name": "John Smit...
import 'highlight.js/styles/xcode.css'; >>>>>>> UPDATED
dummy_related_files
<|file_sep|>Provider/ProviderInterface.php <?php /* * This file is part of the Harmony package. * * (c) Tim Goudriaan <tim@harmony-project.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Harmony\Component\ModularRout...
lxml==4.2.3 >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>spec/run-all.sh #! /bin/bash set -e for required_variable in \ GOOGLE_CLOUD_PROJECT \ GOOGLE_APPLICATION_CREDENTIALS \ GOOGLE_CLOUD_STORAGE_BUCKET \ ALTERNATE_GOOGLE_CLOUD_STORAGE_BUCKET \ TRANSLATE_API_KEY \ ; do if [[...
hash: 6f9d1a534fa6ff720347aa10521a99456aa4b9e2a95b45f71cadb06074277c86 >>>>>>> UPDATED
dummy_related_files
<|file_sep|>src/platform/site/source/partials/_search-bar.html.erb <|fim_prefix|><div class="row"> <div class="twelve columns"> <div id="search-bar"> <<<<<<< CURRENT <|user_cursor|> <form action="/projects" method="GET"> ======= <|fim_suffix|> <label for="query"> ...
<form action="/search" method="GET"> >>>>>>> UPDATED
no_related_no_history
<|file_sep|>requirements.txt alembic==0.8.10 appdirs==1.4.0 click==6.7 Faker==0.7.7 Flask==0.12 Flask-Migrate==2.0.3 Flask-Script==2.0.5 Flask-SQLAlchemy==2.1 Flask-WTF==0.14.2 gitdb2==2.0.0 GitPython==2.1.1 ipaddress==1.0.18 itsdangerous==0.24 Jinja2==2.9.5 Mako==1.0.6 MarkupSafe==0.23 MySQL-python==1.2.5 openedoo==1....
"alt": "0.16.x", >>>>>>> UPDATED
dummy_related_files
<|file_sep|>LICENSE.md MIT License Copyright (c) 2016 Tobias Pfeiffer 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 limitation the rights to use, copy, mo...
--name newrelic \ >>>>>>> UPDATED
both
<|file_sep|>testsuite/tests/typing-warnings/unused_recmodule.ml (* TEST * expect *) [@@@ocaml.warning "+a"] module M : sig end = struct module rec Foo : sig type t val create : Bar.t -> t end = struct type t = unit let create _ = () end and Bar : sig type t end = struct type t =...
<?php class LangTest extends \Codeception\TestCase\Test { public function testLang() { $ko = Rhymix\Framework\Lang::getInstance('ko'); $en = Rhymix\Framework\Lang::getInstance('en'); $this->assertTrue($ko instanceof Rhymix\Framework\Lang); $this->assertTrue($en instanceof Rhymix\Framework\Lang); $this->ass...
no_edit_random
<|file_sep|>_posts/2017-12-16-arrow-functions-II.markdown --- layout: post title: Arrow functions in Javascript Part II date: 2017-12-16 --- <p class='intro'><span class='dropcap'>H</span>ello, Everyone! In my last post, I wrote about how to write Arrow functions. Today, I am going to talk about how arrow functions do...
tmux kill-session -t $SESSION_NAME &>/dev/null >>>>>>> UPDATED
dummy_related_files
<|file_sep|>edit history --- a/README.md +++ b/README.md @@ -10,3 +12,2 @@ -concerts of your favorite bands and artists on -[Last.fm](http://www.last.fm). The event locations are displayed in a -list as well as on an interactive map. +concerts of your favorite bands and artists on [Last.fm](http://www.last.fm). +The ev...
### Dependencies >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>app/models/events/panel.rb # # Definition of the Panel class of events. This will be used to implement # Intercon's Pre-Convention events. # class Events::Panel < Event # Set default values for a Panel event after_initialize do if new_record? # Panel proposals need to be reviewed by the Pane...
must be enabled in `$site_path/etc/gerrit.config`. >>>>>>> UPDATED
both
<|file_sep|>model/slide_carousel.py import json from numpy.random import choice def generate_slides(): slides = json.load(open("static/carousel/slides.json", "r")) weights = [x["weight"] for x in slides] sum_weights = sum(weights) weights = [w / float(sum_weights) for w in weights] ...
// RUN: %ocheck 1 %s '-DNULL=(void *)0' // RUN: %ocheck 0 %s '-DNULL=0' >>>>>>> UPDATED
dummy_related_files
<|file_sep|>submissions/generate_all_fours.py """Generate all_threes.dta submission file with every rating as 3.0 .. moduleauthor:: Quinn Osha stolen from Jan Van Bruggen <jancvanbruggen@gmail.com> """ def run(): fours = ['4.0\n'] * 2749898 with open('all_fours.dta', 'w+') as all_fours_submission_file: ...
loggedin="loggedin" if c.user_is_loggedin else "loggedout", >>>>>>> UPDATED
dummy_related_files
<|file_sep|>app/code/community/Asm/Solr/Model/Resource/Search.php <?php /** * Search Resource * * @category Asm * @package Asm_Solr * @author Ingo Renner <ingo@infielddesign.com> */ class Asm_Solr_Model_Resource_Search { /** * An instance of the Solr service * * @var Asm_Solr_Model_Solr_Connection */...
context "with a recipe that uses data_bag_item" do recipe_file "data_bag_item('bag', 'item', IO.read('secret_file').strip)" >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>convertToUnix.sh #/bin/bash sed -i 's/perl.exe/perl/g' m2cpp.pl # Remove .exe extension sed -i 's/\r//g' m2cpp.pl # Remove windows carriage return from perl scripts <|file_sep|>snippet/docs/shell/shell-preface.md 前 言 ==== 本文是笔者在学习shell(bash)中整理出来的,其中的知识可能来源于某本书中,也可能来源于网上(笔者不清楚时,会上网搜索一下答案)。 本文...
AutonomousStep[] fireSteps = new AutonomousStep[7]; >>>>>>> UPDATED
both
<|file_sep|>edit history --- a/skeleton/__init__.py +++ b/skeleton/__init__.py @@ -5,4 +5,1 @@ -without any dependencies; it should also be compatible with Python 3. - -However in this early phase of development, it only target python 2.5+, -and tests require Mock. +without any dependencies. <|file_sep|>skeleton/__init...
from skeleton.utils import insert_into_file >>>>>>> UPDATED
edit_history
<|file_sep|>edit history --- a/composer.json +++ b/composer.json @@ -32,1 +31,1 @@ - "pimple/pimple": "1.0.x-dev" + "pimple/pimple": "1.*" --- a/composer.json +++ b/composer.json @@ -21,2 +21,1 @@ - "version": "1.0.0", - + <|file_sep|>composer.json <|fim_prefix|>], "license": "MIT", "homepage": "https://gi...
} >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>xenserver/destroy_cached_images.py """ destroy_cached_images.py This script is used to clean up Glance images that are cached in the SR. By default, this script will only cleanup unused cached images. Options: --dry_run - Don't actually destroy the VDIs --all_cached - Destroy all cached images in...
error_reporting(E_ERROR); >>>>>>> UPDATED
dummy_related_files
<|file_sep|>week-3/dissect-me.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>GPS 1.2: The Anatomy of HTML</title> </head> <body> <section> <h1>Summary</h1> <p> Welcome to HTML Anatomy 101. In this class, you will do the learn how to dissect an HTML page from t...
sha256 = "11lirxl0hb0xfd57accsgldq1adrlv9pak2520jll2sj5gg71cmj"; >>>>>>> UPDATED
both
<|file_sep|>doc/content/css/moltres.css :root { --uiuc-blue: rgba(19, 41, 75, 1.0); --uiuc-orange: rgba(232, 74, 39, 1.0); --uiuc-second-blue: rgba(5, 86, 165, 1.0); --uiuc-third-blue: rgba(32, 64, 151); } .tabs .tab a:hover, .tabs .tab a.active { background-color: transparent; color: var(--uiuc-blu...
'From Cuis 5.0 [latest update: #4392] on 12 October 2020 at 7:18:56 pm'! !MenuItemMorph methodsFor: 'selecting' stamp: 'jmv 10/12/2020 19:17:55'! select self isSelected: true. owner activeSubmenu: subMenu. subMenu ifNotNil: [ self displayBounds ifNotNil: [ :r | subMenu delete. subMenu popUpAdjacentTo: (...
no_edit_random
<|file_sep|>src/test/java/com/codahale/shamir/perf/LoadHarness.java /* * 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 requ...
Bug reports and pull requests are welcome on GitHub at https://github.com/dcutting/strut. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. >>>>>>> UPDATED
dummy_related_files
<|file_sep|>Drupal/7/Solr/apachesolr_p14y_reindex_entity.php <?php // Source : https://www.drupal.org/node/1545298 // Queue node for reindexing by apachesolr. // Happens on next cron or next manual (re)indexing. // @see admin/config/search/apachesolr $id = 123; $type = 'node'; $bundle = 'node_type'; $indexer_table = ...
"additionalArguments": [ "/highentropyva+" ], "delaySign": true >>>>>>> UPDATED
dummy_related_files
<|file_sep|>edit history --- a/src/org/usfirst/frc2832/Robot_2016/HID/VirtualGamepad.java +++ b/src/org/usfirst/frc2832/Robot_2016/HID/VirtualGamepad.java @@ -34,3 +34,4 @@ - while (states.get(lastIndex).timestamp - recordedOffset <= time - startTime) - lastIndex++; - lastIndex--; + while (lastIndex < states.si...
// We overshot in that interpolation stage, that was the first time it "failed" lastIndex--; >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>testdata/container_redis.json { "name": "podsandbox1-redis", "image": { "image": "docker://redis:latest" }, "args": [ "docker-entrypoint.sh", "redis-server" ], "working_dir": "/data", "envs": [ { "key": "PATH", "value": "/usr/local/sbin:/usr/local/bin:/usr/sb...
return head(403) if @runner.is_shared? || @runner.locked? >>>>>>> UPDATED
dummy_related_files
<|file_sep|>osu.Game/Graphics/UserInterfaceV2/LabelledNumberBox.cs // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Graphics.UserInterface; namespace osu.Game.Graphics.UserInterfaceV2 { public class ...
>>>>>>> UPDATED
both
<|file_sep|>Lab_1/Calculator/src/calculator/CalculatorIF.java <|fim_prefix|>package calculator; public interface CalculatorIF { /** * @return Given two integers, m and n, returns the result of m/n */ int divide(int m, int n); /** * @return Given two integers, m and n, returns the result of m...
/** * @return Given two integers, m and n, returns the result of m-n */ int subtract(int m, int n); >>>>>>> UPDATED
no_related_no_history
<|file_sep|>src/main/resources/db/migration/postgresql/V1_2__data_tables.sql ALTER TABLE customers ALTER COLUMN customer_id TYPE VARCHAR(256), ALTER COLUMN data TYPE VARCHAR; ALTER TABLE profileimages ALTER COLUMN customer_id TYPE VARCHAR(256), ALTER COLUMN contenttype TYPE VARCHAR(256); <|file_sep|>src/Backend/Module...
<script type="module" src="/src/<%= elementName %>/<%= elementName %>.js" crossorigin></script> >>>>>>> UPDATED
dummy_related_files
<|file_sep|>tests/sentry/web/frontend/test_organization_member_settings.py from __future__ import absolute_import from django.core.urlresolvers import reverse from sentry.models import OrganizationMember, OrganizationMemberType from sentry.testutils import TestCase class OrganizationMemberSettingsTest(TestCase): ...
"piedmont": "0.1.3" >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>dens_slope.py #!/usr/bin/env python # ----------------------------------------------------------------------------- # GENHERNQUIST.DENS_SLOPE # Laura L Watkins [lauralwatkins@gmail.com] # ----------------------------------------------------------------------------- def dens_slope(r, rs, alpha, beta, gamma...
coverage==4.3.4 >>>>>>> UPDATED
dummy_related_files
<|file_sep|>http/headers/upgrade-insecure-requests.json <|fim_prefix|> "version_added": false }, "firefox": { "version_added": "48.0" }, "firefox_android": { "version_added": "48.0" }, ...
"version_added": "31" >>>>>>> UPDATED
no_related_no_history
<|file_sep|>resources/sql/autopatches/20160406.columns.1.php <?php $table = new ManiphestTransaction(); $conn_w = $table->establishConnection('w'); foreach (new LiskMigrationIterator($table) as $xaction) { $type = $xaction->getTransactionType(); $id = $xaction->getID(); // This is an old ManiphestTransaction::...
"demo": "http://isinviewport.mudit.xyz/", >>>>>>> UPDATED
dummy_related_files
<|file_sep|>README.md <|fim_prefix|># puppet.epfl_sso UNIX single sign-on using EPFL's LDAP and Kerberos servers # Apply one-shot [Install Puppet standalone](https://docs.puppetlabs.com/puppet/3.8/reference/pre_install.html#standalone-puppet) then, as `root`: ``` puppet module install epflsti-epfl_sso puppet apply -...
puppet apply -e 'class { "epfl_sso::krb5": join_domain => "OU=STI" }' >>>>>>> UPDATED
no_related_no_history
<|file_sep|>research/test_diff.py # use time() instead on unix import sys if sys.platform=='win32': from time import clock else: from time import time as clock from sympycore import profile_expr def time1(n=5): from sympycore import Symbol, sin x,y,z = map(Symbol,'xyz') f = (x / (1+sin(x**(y+x**2...
`(is equal '(cl:eval-when ,situations do-it) (macroexpand-1 '(eval-when ,situations do-it)))) >>>>>>> UPDATED
dummy_related_files
<|file_sep|>src/python/helpers/python_wrap_const_shared_ptr.h /*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_PYTHON_WRA...
router.register(r"_choices", views.PeeringFieldChoicesViewSet, base_name="field-choice") >>>>>>> UPDATED
dummy_related_files
<|file_sep|>copy_repos_local.sh echo "Deleting old files" rm -rf old/android/* rm -rf old/ios/* cp -r $CALABASH_ANDROID_HOME/ old/android cp -r $CALABASH_IOS_HOME/ old/ios <|file_sep|>test/otp_test.exs # allows standalone run Code.require_file "test/test_helper.exs" defmodule OTPTest do use ExUnit.Case, async: true...
def self.with_storage_type where(:device_type => "storage") end >>>>>>> UPDATED
dummy_related_files
<|file_sep|>posh/Settings/81-PuTTY.ps1 if ($DotFilesShowScriptEntry) { Write-Verbose -Message (Get-DotFilesMessage -Message $PSCommandPath) } if (!(Get-Command -Name putty -ErrorAction Ignore)) { Write-Verbose -Message (Get-DotFilesMessage -Message 'Skipping PuTTY settings as unable to locate putty.') retu...
"body": { "description" : "The mapping definition" } >>>>>>> UPDATED
dummy_related_files
<|file_sep|>frontend/app/views/spree/shared/_link_to_account.html.erb <|fim_prefix|><% if try_spree_current_user %> <%= link_to Spree.t('nav_bar.my_account'), spree.account_path, class: 'dropdown-item' if spree.respond_to?(:account_path) %> <<<<<<< CURRENT <|user_cursor|> <%= link_to Spree.t('nav_bar.admin_panel'), ...
<%= link_to Spree.t('nav_bar.admin_panel'), spree.admin_orders_path(locale: nil), class: 'dropdown-item text-uppercase' if try_spree_current_user.has_spree_role?(:admin) %> >>>>>>> UPDATED
no_related_no_history
<|file_sep|>docs/installation.md <|fim_prefix|># Installation Package is available on [Packagist](http://packagist.org/packages/respect/validation), you can install it using [Composer](http://getcomposer.org). ```shell composer require respect/validation ``` <<<<<<< CURRENT <|user_cursor|>Works on PHP 7.0 or above. ...
Works on PHP 7.1 or above. >>>>>>> UPDATED
no_related_no_history
<|file_sep|>__mocks__/@stencil/state-tunnel.tsx var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var ...
A simple advertisement CRUD application using Vuejs, Webpack , Node , Mongo and Expressjs >>>>>>> UPDATED
dummy_related_files
<|file_sep|>database/migrations/2017_08_28_093805_add_machine_id_to_gendata_table.php <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddMachineIdToGendataTable extends Migration { /** * Run the migrations. * ...
assert_eq!(0, vector.read_unsigned_varint_32().unwrap()); >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>src/index.html.jade <|fim_prefix|>doctype html html body <<<<<<< CURRENT <|user_cursor|> ======= <|fim_suffix|> table tr td 5 td 3 td td td 7 td td td td tr td 6 td td td 1 td 9 ...
h1 @bitfyre Sudoku >>>>>>> UPDATED
no_related_no_history
<|file_sep|>.github/workflows/coveralls.yaml # # Copyright 2015-2020 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.apache.or...
#include <stddef.h> >>>>>>> UPDATED
dummy_related_files
<|file_sep|>api/tests/v2/test_token_update.py from django.core.urlresolvers import reverse from rest_framework.test import APITestCase, APIRequestFactory, force_authenticate from api.tests.factories import UserFactory, AnonymousUserFactory, ProviderFactory from api.v2.views import TokenUpdateViewSet, IdentityViewSet, C...
self.collector.log, [ >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>app/Resources/TwigBundle/views/Exception/error.html.twig {% extends "CmfMainBundle::layout.html.twig" %} {% block title %}An Error Occurred: {{ status_text }}{% endblock %} {% block content %} <h2>Oops! An Error Occurred</h2> <h3>The server returned a "{{ status_code }} {{ status_text }}".</h3> ...
[![PyPI version](https://badge.fury.io/py/unicornclient.svg)](https://badge.fury.io/py/unicornclient) >>>>>>> UPDATED
dummy_related_files
<|file_sep|>tools/patches/gcc-4.4.3/0045--gcc-Remove-old-nc-cases-from-libstdc-s-configu.patch From f38aa8fc5ed649da242aea3d7b09e4f6878d05df Mon Sep 17 00:00:00 2001 From: Mark Seaborn <mseaborn@chromium.org> Date: Tue, 24 Aug 2010 15:39:50 +0100 Subject: [PATCH] [gcc] Remove old "nc" cases from libstdc++'s configure s...
do($ = jQuery) -> $ -> resource_select = $('#user_role_resource') if resource_select.length do -> role_select = $('#user_role_role') role_changed = () -> resource_select.closest('div.row')[if role_select.val() == 'team_leader' then 'show' else 'hide']() role_changed() ...
no_edit_random
<|file_sep|>test/Container/GeneratorFactoryTest.php <?php /** * @see https://github.com/zendframework/zend-di for the canonical source repository * @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com) * @license https://github.com/zendframework/zend-di/blob/master/LICENSE.md New BSD...
sleep(10); >>>>>>> UPDATED
dummy_related_files
<|file_sep|>azure-pipelines.yml # ASP.NET # Build and test ASP.NET projects. # Add steps that publish symbols, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4 trigger: - master pool: vmImage: 'windows-latest' variables: solution: '**/*.sln' ...
collection(u'requests') docs = requests_ref.get() docList = list() for doc in docs: docList.append(doc) return docList def printSnapshot(doc): print(u'Created {} => {}'.format(doc.id, doc.to_dict())) def existsRequest(requests, userA, userB): for request in requests: sender = request.get(u'senderId') rec...
no_edit_random
<|file_sep|>.travis.yml <|fim_prefix|>language: node_js node_js: <<<<<<< CURRENT <|user_cursor|> ======= <|fim_suffix|> - v5 - v4 - '0.12' - '0.10' <|fim_middle|>
- v6 >>>>>>> UPDATED
no_related_no_history
<|file_sep|>_posts/2019-03-12-google-imagery-deprecation.md <|fim_prefix|><<<<<<< CURRENT <|user_cursor|>--- title: 'Google Imagery Deprecation' author: display_name: Matt Peters email: mpeters@utah.gov date: 2019-03-12 16:03:11 categories: - Featured tags: - Google Imagery - deprecation - Discover services...
--- title: 'Google Imagery Deprecation' author: display_name: Matt Peters email: mpeters@utah.gov date: 2019-03-12 16:03:11 categories: - Featured tags: - Google Imagery - deprecation - Discover services - --- #### Note from the Director Regarding the Google Imagery: The State of Utah has enjoyed the re...
no_edit_random
<|file_sep|>hopstack/di/main.c #include <stdio.h> #include <string.h> #include <stdlib.h> struct URI { char * scheme; char * user; char * password; char * host; char * port; char * path; char * query; char * fragment; }; struct rule { char * name; char * rule; char * levels...
attr_accessor :model_class >>>>>>> UPDATED
dummy_related_files
<|file_sep|>index.html <!DOCTYPE html> <html> <head> <title>Title</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <style type="text/css"> @import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz); @import url(https://fonts.googleapis.com/css?family=Dro...
// TEMPORARY Test >>>>>>> UPDATED
dummy_related_files
<|file_sep|>test/Container/GeneratorFactoryTest.php <?php /** * @see https://github.com/zendframework/zend-di for the canonical source repository * @copyright Copyright (c) 2017 Zend Technologies USA Inc. (http://www.zend.com) * @license https://github.com/zendframework/zend-di/blob/master/LICENSE.md New BSD...
$('#vivus-navigation ul').append("<li><a href='#" + $(el).text().toLowerCase().replace(/ /g, '-') + "'>" + $(el).text() + "</a></li>"); $(el).prepend("<a name='" + $(el).text().toLowerCase().replace(/ /g, '-') + "'></a>"); >>>>>>> UPDATED
dummy_related_files
<|file_sep|>spec/models/page/data_extractor_spec.rb require 'rails_helper' RSpec.describe Page::DataExtractor do describe "page title and description fields" do it "extracts data from basic markdown" do md = <<~MD # Page title Some description MD expect(Page::DataExtractor.ext...
* PostgreSQL (9.4+) >>>>>>> UPDATED
dummy_related_files
<|file_sep|>.travis.yml language: c++ addons: apt: #sources: #- ubuntu-toolchain-r-test packages: - cmake - libtbb-dev #- gcc-4.9 #- gcc-5 #- gcc-6 #- gcc-7 compiler: - gcc #- clang #- gcc-4.9 #- gc...
if (empty($crumb['timestamp'])) { $crumb['timestamp'] = microtime(true); } >>>>>>> UPDATED
dummy_related_files
<|file_sep|>test/hmc.jl function f(x::Array{Float64,2}) x[1]^2 + x[2]^2 end function gradient(x::Array{Float64,2}) [2*x[1] 2*x[2]] end # Initial conditions x0 = [0.0 0.0] # Tuning parameters epsilon = .001 # step size L = 10 # number of steps # Basic tests on regular interface x,gx = hmc_sampler(x0, f,...
// CHECK: ret i32 1 >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>azure-pipelines.yml <|fim_prefix|># .NET Desktop # Build and run tests for .NET Desktop or Windows classic desktop solutions<<<<<<< CURRENT <|user_cursor|>. # Add steps that publish symbols, save build artifacts, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net pool: vmI...
. # Add steps that publish symbols, save build artifacts, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net pool: vmImage: 'VS2017-Win2016' variables: solution: '**/*.sln' buildPlatform: 'Any CPU' buildConfiguration: 'Release' steps: - task: NuGetToolInstaller@0 - task: NuGe...
no_edit_random
<|file_sep|>0_code_wars/radio_dj_helper_function.rb # http://www.codewars.com/kata/561bbcb0fbbfb0f5010000ee/ # --- iteration 1 --- def longest_possible(playback) short_enough_songs = songs.select{ |s| num_secs(s[:playback]) <= playback } return false if short_enough_songs.empty? short_enough_songs.sort_by{ |s| nu...
debugger; >>>>>>> UPDATED
dummy_related_files
<|file_sep|>edit history --- a/components/overlay/index.jsx +++ b/components/overlay/index.jsx @@ -20,0 +20,1 @@ + this.node.setAttribute('data-react-toolbox', 'overlay'); --- a/components/overlay/index.jsx +++ b/components/overlay/index.jsx @@ -35,1 +36,2 @@ - let overlayStyle = {}; + const overlayStyle = {};...
if (this.props.opacity > 0) className += ` ${style.active}`; overlayStyle.opacity = this.props.opacity; >>>>>>> UPDATED
edit_history
<|file_sep|>src/Seasons.php <|fim_prefix|><?php namespace Jaybizzle; class Seasons { /** * Seasons. * * @var array */ public $seasons = array( 'Winter', 'Spring', 'Summer', 'Autumn', ); /** * Parse input date and return numeric month. * ...
* >>>>>>> UPDATED
no_related_no_history
<|file_sep|>app/views/layout_unbranded.html {% extends "template.njk" %} {% block headIcons %} <link rel="shortcut icon" href="{{ asset_path }}images/unbranded.ico?0.18.3" type="image/x-icon" /> <link rel="mask-icon" href="{{ asset_path }}images/gov.uk_logotype_crown.svg?0.18.3" color="#0b0c0c"> <link rel="apple...
val = np.sum(np.cos(X[k, :] - X[l, :])) / np.float32(n_samples) >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>edit history --- a/src/Devture/Bundle/LocalizationBundle/Translation/ResourceLoader.php +++ b/src/Devture/Bundle/LocalizationBundle/Translation/ResourceLoader.php @@ -15,1 +15,4 @@ - public function addResources($path) { + public function addResources($path, $loaderName = null) { + if ($loaderN...
$this->translator->addResource($loaderName, $filePath, $localeKey); >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>src/nyc_trees/templates/admin/base_site.html {% extends "admin/base.html" %} {% block title %}TreesCount! 2015 admin{% endblock %} {% block branding %} <h1 id="site-name"> TreesCount! 2015 | (<a href="{% url 'admin:index' %}">administration</a> / <a href="{% url 'home_page' %}">home</a>) </h1> {% end...
verbose: program.debug >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>tests/unit/cloud/clouds/ec2_test.py # -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import import os import tempfile # Import Salt Libs from salt.cloud.clouds import ec2 from salt.exceptions import SaltCloudSystemExit # Import Salt Testing Libs from salttesting import TestCas...
def diff(self, tables, modified): >>>>>>> UPDATED
dummy_related_files
<|file_sep|>admin/settings/hide-license-key.php <?php /** * Plugin Name: Restrict Content Pro - Hide License Key * Description: Hides the license key field. * Version: 1.0 * Author: Restrict Content Pro Team * License: GPL2 */ /** * Hide license key field. * * Note: Once this code is added you won't be able t...
selenium~=3.0 >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>database/migrations/2017_06_29_194312_add_user_column_to_events_table.php <?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddUserColumnToEventsTable extends Migration { /** * Run the migrations. * * @return void */ public func...
] >>>>>>> UPDATED
both
<|file_sep|>main.py <|fim_prefix|>ng a short url for an address recognized as spam, or to warn a user a pre-existing short alias has a target that has been later recognized as spam. .. __: https://github.com/piotr-rusin/spam-lists ''' from url_shortener import app, event_handlers, views __title__ = 'url-shortener' __...
log_file = app.config['LOG_FILE'] if not app.debug and log_file is not None: >>>>>>> UPDATED
no_related_no_history
<|file_sep|>platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV/TESTS/crypto_init/test/CMakeLists.txt # Copyright (c) 2021 ARM Limited. All rights reserved. # SPDX-License-Identifier: Apache-2.0 cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR) set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../....
public class RandomObjectTableView extends BaseView<RandomObjectTable> { >>>>>>> UPDATED
dummy_related_files
<|file_sep|>README.md Phone ===== Build the docker machine ``` ./build.sh ``` Compile the code to arm ``` ./run.sh ``` Push the code to your raspberry pi ``` mv out <to-your-rpi> ``` Want to compile the tool for other platforms? Modify the common.cfg and replace cc entries with your own compiler ``` cc = Obj...
ActiveRecord::Migration.rename_table(:rapidfire_question_groups, :rapidfire_surveys) >>>>>>> UPDATED
both
<|file_sep|>edit history --- a/setup.cfg +++ b/setup.cfg @@ -11,1 +11,1 @@ -verbosity = 3 +verbosity = 2 <|file_sep|>setup.cfg <|fim_prefix|>[wheel] universal = 1 [bdist_wheel] universal = 1 [metadata] description-file = README.md [nosetests] verbosity = 2 nocapture = true exclude = (?:^tests_django$) with-coverage ...
cover-erase = true cover-min-percentage = 20 >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>week-6/credit-card/credit_card_spec.rb require_relative 'my_solution' describe CreditCard do describe '#initialize' do it 'Expects a single argument for the card' do expect(CreditCard.instance_method(:initialize).arity).to eq 1 end it 'raises ArgumentError on card > 16' do expect...
title: svirfneblin description: speaking to rocks url: "svirfnebl.in" twitter_username: @olde_fortran >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>product_uom_prices/migrations/8.0.0.5.0/pre-migration.py # -*- encoding: utf-8 -*- from openerp import SUPERUSER_ID from openerp.modules.registry import RegistryManager def set_value(cr, model, table, field, value, condition): print 'Set value %s on field %s on table %s' % ( value, field, tabl...
\ if (&ft !~ '^git\c') && line("'\"") > 1 && line("'\"") <= line("$") | >>>>>>> UPDATED
dummy_related_files
<|file_sep|>.github/ISSUE_TEMPLATE/bug_report.md --- name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: '' --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll...
.cssClass .kwcbem__container { >>>>>>> UPDATED
dummy_related_files
<|file_sep|>components/camel-vertx/camel-vertx-http/src/test/java/org/apache/camel/component/vertx/http/VertxHttpStreamingResponseTest.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional inform...
- "1.10.1" - "1.9.5" >>>>>>> UPDATED
dummy_related_files
<|file_sep|>requirements/local.txt <|fim_prefix|># Local development dependencies go here -r base.txt -r test.txt # Documentation <<<<<<< CURRENT <|user_cursor|>sphinx==1.6.2 ======= <|fim_suffix|> sphinx-rtd-theme==0.2.4 # Debugging Tools django-debug-toolbar==1.8 django-extensions==1.7.9 <|fim_middle|>
sphinx==1.6.3 >>>>>>> UPDATED
no_related_no_history
<|file_sep|>_posts/2018-09-06-What-is-OALP.md --- layout: post title: " OALP란 무엇인가? " categories: Technology tags: Technology author: goodGid --- * content {:toc} ## OALP란 무엇인가? * OALP(Online Analytical Processing)은 대용량 업무 데이터베이스를 구성하고 BI(Business Intelligence)를 지원하기 위해 사용되는 기술 * **데이터 웨어하우스**나 **데이터 마트**와 같은 대규모 데...
requests-mock==1.3.0 >>>>>>> UPDATED
dummy_related_files
<|file_sep|>src/ServiceBus.AttachmentPlugin/IProvideStorageConnectionString.cs namespace ServiceBus.AttachmentPlugin { /// <summary> /// Storage account connection string provider. /// </summary> public interface IProvideStorageConnectionString { /// <summary> /// Connection string ...
requests==0.14.2 >>>>>>> UPDATED
both
<|file_sep|>.github/ISSUE_TEMPLATE/bug_report.md --- name: Bug report about: Create a report to help us improve labels: bug --- **Actual behavior** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior 1. install '...' 2. setup '....' 3. run '....' (when run `leapp`,...
if(NOT MPI_CPP_DISABLE_INSTALL) install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/mpi-cpp DESTINATION ${INCLUDE_INSTALL_DIR}/) >>>>>>> UPDATED
no_edit_last_hunk
<|file_sep|>edit history --- a/app/assets/javascripts/unveil.js +++ b/app/assets/javascripts/unveil.js @@ -5,1 +5,1 @@ -$(document).on('content:update', () => { +$(document).on('content:update', function() { <|file_sep|>app/assets/javascripts/unveil.js <|fim_prefix|>function unveil() { $('img').unveil() } $(document...
$('body').on('shown.bs.modal', function() { >>>>>>> UPDATED
edit_history
<|file_sep|>appveyor.yml build: false platform: x86 clone_folder: c:\projects\easyadmin-bundle cache: - '%LOCALAPPDATA%\Composer\files' init: - SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH% - SET COMPOSER_NO_INTERACTION=1 - SET SYMFONY_DEPRECATIONS_HELPER=strict - SET ANSICON=121x90 (121x90) environ...
./verify-package $package # or $package-$version >>>>>>> UPDATED
dummy_related_files
<|file_sep|>states/common/resources_macro_lib.sls # Set of macros to work with resources. ############################################################################### {%- macro get_registered_content_item_URI( registered_content_item_id ) -%} {%- set registered_content_item_config = pillar['registered...
{useBasename} = require 'history' >>>>>>> UPDATED
dummy_related_files
<|file_sep|>lesson9/hit_the_road_jack.rb # Lesson 9 - More Chords: D, E, A and B Flat # Rhythm - Left Note/Right Chord (Hit the Road, Jack) use_synth :piano play :D3 sleep 0.5 play chord(:D4, :minor) sleep 0.5 play :C3 sleep 0.5 play chord(:C4) sleep 0.5 play :Bb2 sleep 0.5 play chord(:Bb3) sleep 0.25 play :A2 slee...
"asciiart-logo": "^0.2.6", >>>>>>> UPDATED
dummy_related_files
<|file_sep|>sample/src/debug/res/layout/preview_about_ui_with_labels.xml <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (c) 2018. Louis Cognault Ayeva Derman ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You ma...
if (lastPosition == null || position.getFixTime().compareTo(lastPosition.getFixTime()) > 0) { >>>>>>> UPDATED
dummy_related_files
<|file_sep|>modules/EnsEMBL/Web/ViewConfig/LRG/TranscriptSeq.pm package EnsEMBL::Web::ViewConfig::LRG::TranscriptSeq; use strict; use EnsEMBL::Web::Constants; use base qw(EnsEMBL::Web::ViewConfig); sub init { my $self = shift; $self->set_defaults({ exons => 'yes', codons => 'y...
- "1.11" - "1.12" >>>>>>> UPDATED
dummy_related_files