prompt stringlengths 108 4.81k | target stringlengths 17 1.85k | prompt_type stringclasses 6
values |
|---|---|---|
<|file_sep|>src/org/robockets/buttonmanager/joysticks/XboxOne.java
package org.robockets.buttonmanager.joysticks;
public enum XboxOne {
A(1),
B(2),
X(3),
Y(4),
RIGHT_BUMPER(6),
LEFT_BUMPER(5),
RIGHT_TRIGGER_AXIS(3),
LEFT_TRIGGER_AXIS(2),
LEFT_X_AXIS(0),
LEFT_Y_AXIS(1),
RIGHT_X_AXIS(4),
RIGHT_Y_AXIS(5);
... | [](https://travis-ci.org/MatUrbanski/athena_health)
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>lib/show_for/content.rb
<|fim_prefix|>module ShowFor
module Content
def content(value, options={}, apply_options=true, &block)
if value.blank? && value != false
value = options.delete(:if_blank) || I18n.t(:'show_for.blank', :default => "Not specified")
options[:class] = [options[... |
# We need to convert value to_a because when dealing with ActiveRecord
# Array proxies, the follow statement Array# === value return false
value = value.to_a if value.is_a?(Array)
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>packages/re/reflex-basic-host.yaml
homepage: ''
changelog-type: markdown
hash: c4857367ab53c227b482850e3a3327359110be92d9ce6b25ab4cc6ee7cc0ba1d
test-bench-deps: {}
maintainer: dave.laing.80@gmail.com
synopsis: A basic `reflex` host for backend work
changelog: |
# changelog
## 0.1
2019-03-19
* Ini... | - bash miniconda.sh -b -p $HOME/miniconda
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>gh-pages/_posts/release/2020-01-10-v1_41_1.md
---
categories:
- Release
tags:
- gh-pages
- visualization
title: 1.41.1
---
{{page.title}} is live and ready for [download](https://github.com/MaibornWolff/codecharta/releases/tag/{{page.title}}). This version brings the following:
### Fixed 🐞
- Perf... | New features
------------
* Provide the ability to use the Direct Virtual File Driver (VFD) from
HDF5 (Linux only).
If the Direct VFD driver is present at the time of compilation, users can use the
Direct VFD by passing the keyword argument ``driver="direct"`` to the
``h5py.File`` constructor.
To use the Di... | no_edit_random |
<|file_sep|>dotfiles/.eslintrc.js
<|fim_prefix|>'use strict';
module.exports = {
env: {
es6: true,
node: true,
browser: true,
},
extends: 'eslint:recommended',
parserOptions: {
sourceType: 'module',
ecmaVersion: 8,
},
rules: {
indent: [ 'error', 2 , {SwitchCase: 1}],
... | quotes: [ 'error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true
} ],
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>requirements/base.txt
<|fim_prefix|>Django==3.2.10
six==1.16.0
sqlparse==0.4.2
# Whitenoise: Staticfile hosting
whitenoise==5.3.0
django-npm==1.0.0
# Tagging
# Taggit Helpers: TaggitCounter, TaggitListFilter
# Taggit Templatetags: Template tags for tags - https://github.com/feuervogel/django-taggit-templa... | requests==2.27.0
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>bin/adjust-sm-git.sh
#!/bin/bash
echo On your SageMaker notebook, store this file under ~/Sagemaker and set as executable.
echo Remember to change the name and email.
USER_NAME='Firstname Lastname'
USER_EMAIL='first.last@email.com'
echo Adjusting contact to $USER_NAME / $USER_EMAIL
git config --global us... | PouchDB.sync('notelis', 'http://127.0.0.1:5984/notes',{live:true});
return new PouchDB('notelis');})
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>CONTRIBUTING.md
# How to contribute
:+1::tada: First off, thank you for taking time to contribute! :tada::+1:
The following is a set of guidelines for contributing to OCaml. These
are just guidelines, not rules, use your best judgment and feel free
to propose changes to this document in a pull request.
#... | explicit OptimizePass(const std::string& name, API_TYPE type)
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>release_notes.md
# 0.8.0 May 28, 2010
* Adds C implementation under NoyesC package.
* The nrec utility includes many new parameters. See nrec -h.
* Now nrec depends on Trollop.
* Add a mock server, which performs fake recognition and saves input.
see mock_noyes_server -h.
* I haven't tested the C... | git clone --depth=1 -b powernv-6.0 https://github.com/legoater/qemu
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>exp/volca-beats.rb
port_beats = "midisport_4x4_anniv_b"
chan_beats = 10
use_bpm 130
live_audio :mixer, stereo: true
# Volca beats.
define :volcabeats do |p, i|
trig = p.tr(' ', '').ring[i]
midi 36, port: port_beats, channel: chan_beats if trig == 'k' # kick
midi 38, port: port_beats, channel: ch... |
shallow_clone: true
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>recipe/meta.yaml
<|fim_prefix|>{% set name = "sedflux" %}
{% set version = "2.1.2" %}
package:
name: {{ name }}
version: {{ version }}
source:
url: https://github.com/mcflugen/{{ name }}/archive/v{{ version }}.tar.gz
requirements:
build:
- cmake
<<<<<<< CURRENT
<|user_cursor|> - gcc # [not... | - gcc [osx]
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>spec/syntax_spec.rb
require 'rails_helper'
describe 'json files' do
`git ls-files *.json`.each_line do |json_file|
json_file.chomp!
describe(json_file) do
it 'is valid json' do
File.open(json_file) do |f|
JSON.parse(f.read)
end
end
end
end
end
describe... | require 'test_helpers'
describe Alf do
it 'should meet union/intersect priorities' do
db.connect do |conn|
rel = conn.query{
r1 = union(
restrict(suppliers, city: 'Paris'),
restrict(suppliers, city: 'London'))
r2 = restrict(suppliers, gt(:status, 20))
... | no_edit_random |
<|file_sep|>lib/tasks/urls_to_paperclip.rake
desc 'Convert url references to paperclip attachments'
task :urls_to_paperclip, [:model_name, :url_field, :attachment_field] => :environment do |_, args|
puts "Starting task"
model_name = args[:model_name]
url_field = args[:url_field]
attachment_field = args[:attach... | container.Register(Classes.FromThisAssembly().Pick().WithService.DefaultInterfaces().LifestyleTransient());
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>test/UserTest.cpp
#include <boost/test/unit_test.hpp>
#include <ygo/deck/c/User.h>
#include <ygo/deck/c/DB.h>
struct User_Fixture
{
User_Fixture()
{
DB_NAME(set_path)("test/card.db");
}
};
BOOST_FIXTURE_TEST_SUITE(User, User_Fixture)
BOOST_AUTO_TEST_CASE(Create)
{
auto user = USER... | 'https://schema.org/Address'
>>>>>>> UPDATED
| both |
<|file_sep|>entity-services-functionaltests/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences
#Wed Jan 20 15:24:20 PST 2016
org.springsource.ide.eclipse.gradle.rootprojectloc=..
====... | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences
#Wed Jan 20 15:24:20 PST 2016
org.springsource.ide.eclipse.gradle.rootprojectloc=..
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>recipes/trailrunner/meta.yaml
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>{% set name = "trailrunner" %}
{% set version = "1.2.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/trailrunner-{{ version }}.tar.gz
sha256... | {% set name = "trailrunner" %}
{% set version = "1.2.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/trailrunner-{{ version }}.tar.gz
sha256: 157de2b2d82139d9583ec1dbc1981c33b39e24c420bb5294f86083f1f4b44311
build:
script: {{... | no_edit_random |
<|file_sep|>src/oauth1_storage.erl
-module(oauth1_storage).
-export_type(
[ error/0
]).
-export(
[ put/3
, get/2
]).
-type error() :: not_found
| io_error
.
-callback put(binary(), binary(), binary()) ->
hope_result:t(ok, error()).
-callback get(binary(), binar... |
public List<ScoredTextElement> getList(){
return Collections.unmodifiableList(this.text);
}
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>test/test_mutex.c
<|fim_prefix|>h>
#include <yaz/mutex.h>
#include <yaz/test.h>
#include <yaz/log.h>
static void tst(void)
{
YAZ_MUTEX p = 0;
yaz_mutex_create(&p);
YAZ_CHECK(p);
yaz_mutex_enter(p);
yaz_mutex_leave(p);
yaz_mutex_destroy(&p);
YAZ_CHECK(p == 0);
yaz_mutex_cr... |
yaz_mutex_destroy(&p); /* OK to "destroy" NULL handle */
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>views/templates/typeahead-suggestion.jade
<|fim_prefix|>.typeahead-suggestion
a(href="#")
.icon
if object_type === 'service'
span.icon-icon-browse
<<<<<<< CURRENT
<|user_cursor|> else
=======
<|fim_suffix|>
- root_id = root_services.length ? root_services[0] : 0
div(... | else if object_type === 'event'
span.icon-icon-events
else if object_type === 'unit'
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>tests/StereographicProjectionTest.cpp
//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2014 Bernhard Beschow <bbeschow@... | author='Bertrand Bordage',
author_email='bordage.bertrand@gmail.com',
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>ifs-data-layer/ifs-data-service/src/main/resources/db/migration/V134_2_1__Migrate_live_projects_to_new_project_docs_functionality.sql
-- IFS-4631 Migrate live projects to new project docs functionality
INSERT INTO document_config
(competition_id, title, guidance, editable, enabled, type)
SELECT c.id AS com... | mkdir -p $INSTALL_DIR/tex
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>test/CodeGen/SPARC/2008-10-10-InlineAsmMemoryOperand.ll
; RUN: llvm-as < %s | llc -march=sparc
; PR 1557
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f128:128:128"
@llvm.global_ctors = appending global [1 x { i32, void ()* ... | return number_to_currency(job.from_salary, precision: 0) if job.to_salary.blank?
number_to_currency(job.from_salary, precision: 0) + " - " + number_to_currency(job.from_salary, precision: 0)
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>azure-pipelines-build-new.yml
# Docker
# Build a Docker image
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
- develop
resources:
- repo: self
variables:
tag: '$(Build.BuildId)'
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Bui... | CurrentVersion: 1.0.4
CurrentVersionCode: 26
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>edit history
--- a/README.md
+++ b/README.md
@@ -11,1 +11,1 @@
-#### How to Run
+### How to Run
<|file_sep|>README.md
<|fim_prefix|>## Circle Reaper
[](https://circleci.com/gh/mikestephens/circle_reaper/tree/master)
A... |
#### Note
If the env variable "RACK_ONLY_MODE" is set to `true` you can run the entire application with `rackup`
>>>>>>> UPDATED
| edit_history |
<|file_sep|>src/test/resources/galvin/gw/print_short.txt
Login Legal Name Active Locked Roles
--------------------------------------------------------------
user1 Sort Name 1 Active Role 1:A, Role 1:B, Role 1:C
user2 Sort Name 2 Inactive Role 2:A, Role 2:B, Role 2:C
user3 Sort ... | rootPage = LoginPage;
>>>>>>> UPDATED
| both |
<|file_sep|>tools/upload_build.py
"""This script upload a newly-build version of CocoMUD for Windows.
The Download wiki page on Redmine are updated.
Requirements:
This script needs 'python-redmine', which you can obtain with
pip install python-redmine
"""
import argparse
from json import dumps
import o... | @comment.note.accept!
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>_posts/2014-01-23-nedetid.md
---
layout: default
title: "Nedetid og ustabilitet"
date: "2014-01-23 20:12:36 +0100"
author: Hans Kristian
version: 1.0.0
categories: [api, bugs]
link: /data/turer.html
---
Vi opplever ustabilitet hos vår cloud provider og dette kan føre til uventet, og
sporadisk, nedetid.
<|... | # Mocking doesn't work along with Lambda, as reqwest_mock needs an old version of reqwest, which needs OpenSSL
# and compiling OpenSSL with musl is hard on a non-Linux box
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>packages/pr/prometheus-proc.yaml
homepage: https://github.com/fimad/prometheus-haskell
changelog-type: markdown
hash: 883a5e2637e37b6a522798260956dc33c691fe139ede1920c79def18cc9ed277
test-bench-deps: {}
maintainer: ollie@ocharles.org.uk
synopsis: Export metrics from /proc for the current process
changelog: ... | - sudo apt-get install libzmq3-dev libprotobuf-dev protobuf-compiler cmake libboost-all-dev liblog4cxx10-dev
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>tests/basics/builtin_delattr.py
# test builtin delattr
class A: pass
a = A()
a.x = 1
print(a.x)
delattr(a, 'x')
try:
a.x
except AttributeError:
print('AttributeError')
try:
delattr(a, 'x')
except AttributeError:
print('AttributeError')
<|file_sep|>lipsum.txt
Lorem Ipsum
"Neque porro quis... | and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO... | no_edit_random |
<|file_sep|>other/SharedPtr.cpp
/*
* Copyright (C) 2015-2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <bits/stdc++.h>
struct Foo {
public:
Foo() {
std::cout << "Foo's constructor." << std::endl;
}
~Foo() {
std::cout << "Foo's destructor." << std::endl;
}... | package org.scanamo.internal
/**
* A purely functional implementation of the Stern-Brocot tree, [[https://en.wikipedia.org/wiki/Stern–Brocot_tree]].
*
* Out of the many properties of the tree, we are only interested in these:
*
* - the domain (ℝ) is infinite
* - any pruning of the tree has an increasing in... | no_edit_random |
<|file_sep|>zsh/correction.zsh
<|fim_prefix|>alias mv='nocorrect mv' # no spelling correction on mv
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir'
alias find='noglob find'
alias curl='noglob curl'
alias wget='noglob wget'
<<<<<<< CURRENT
<|user_cursor|>alias zcalc='noglob zcalc'
=======
<|fim_suffix|>
<|fi... | alias zcalc='noglob zcalc -f'
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>app/pages/session-detail/session-detail.ts
<|fim_prefix|>t { UserData } from '../../providers/user-data';
@Component({
templateUrl: 'build/pages/session-detail/session-detail.html'
})
export class SessionDetailPage {
session: any;
loggedIn = false;
isFavourite = false;
constructor(
public n... | this.isFavourite = this.userData.hasFavorite(this.session.name);
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>src-qt5/gui_client/SSLNotes.txt
Quick Notes about client-side SSL stuff:
Creating the SSL Files for the client (one-time)
Note: There might be more inputs required for non-interactive setup
1) Create SSL key/crt using the "openssl" utility (no passphrase on these)
"openssl req -newkey rsa:2048 -nodes -key... | <add name="trackingUrl" default-value="http://e-trace.ils-consult.fr/ici-webtrace/webclients.aspx?sdg_landnr={1}&sdg_mandnr={2}&sdg_lfdnr={3}&cmd=SDG_SEARCH_EXACT"/>
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>releasenotes/notes/scope-and-default-roles-a733c235731bb558.yaml
---
prelude: >
This release leverages oslo.policy's policy-in-code feature to modify the
default check strings and scope types for nearly all of keystone's API
policies. These changes make the policies more precise than they were
... | - 5.5
- hhvm
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>.vscode/tasks.json
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "build",
"type": "shell",
"com... | {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"taskName": "build",
"type": "shell",
"command": "cd build && make"
}
]
}>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>README.md
# Copenhagen Ruby Brigade Website
A simple Jekyll based website for the Copenhagen Ruby Brigade.
Built with a few goals:
1. Easy maintainance - even for developers not usually doing web development.
2. Easy deployment - preferring solid hosting over dynamic features.
## Jekyll
Jekyll is a sta... | 4. receive translation file back
>>>>>>> UPDATED
| dummy_related_files |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.