prompt stringlengths 108 4.81k | target stringlengths 17 1.85k | prompt_type stringclasses 6
values |
|---|---|---|
<|file_sep|>paretoer.py
#!/usr/bin/env python
import sys
import csv
import string
class CSVParetoer():
"""
This class represents an instance of paretoization. In short,
it operates on a CSV file and produces another file with a list
of tags to be applied to that file.
"""
def __init__(self, in
...
<|file_sep|>bash_profile.d/bec_profiling.sh
function bec_profiling() {
if [ `cat Gemfile | grep cucumber_characteristics | wc -l` -eq 0 ]; then
echo
echo "Please add gem 'cucumber_characteristics' to your Gemfile"
echo
return 1
fi
if [ ! -f features/support/cucumber_characteristics.rb ]; then
echo "require 'cucumber_
<|file_sep|>Casks/simpholders.rb
<|fim_prefix|>cask 'simpholders' do
<<<<<<< CURRENT
<|user_cursor|> version '2.1'
sha256 '68472926b108bc46b84fd2b6c1083b9fd1810f5fb70fc0924818d60f5bb8e668'
=======
<|fim_suffix|>
url "https://simpholders.com/site/assets/files/1115/simpholders_#{version.gsub('.', '_')}.dmg"
appcast 'http://kfi-apps.com/appcasts/simpholders/',
checkpoint: '07be0732567d5bc05c651e17af1276e2b29ab16f29b61dce3be4ee606833da92'
name 'SimPholders'
homepage 'https://simpholders.com/'
license :commercial
app 'SimPholders.app'
end
<|fim_middle|> | version '2.2'
sha256 '0f12b0076f2bef08cd3129916a6fbe6f92bd7601a96bc787bfc0c5feda4b4d4a'
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>common/src/main/java/org/broadleafcommerce/common/extensibility/jpa/copy/ProfileEntity.java
/*
* #%L
* BroadleafCommerce Common Libraries
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* 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
*
* h
...
<|file_sep|>tests/test_mailparsers_security_announce.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from DebianChangesBot.mailparsers import SecurityAnnounceParser as p
class TestMailParserSecurityAnnounce(unittest.TestCase):
def setUp(s
...
<|file_sep|>requirements.txt
<|fim_prefix|>blinker==1.4
certifi==2018.4.16
chardet==3.0.4
dj-database-url==0.5.0
<<<<<<< CURRENT
<|user_cursor|>Django==2.0.6
=======
<|fim_suffix|>
django-bmemcached==0.2.3
django-recaptcha==1.4.0
djangorestframework==3.8.2
feedparser==5.2.1
gunicorn==19.8.1
idna==2.7
psycopg2-binary==2.7.5
python-binary-memcached==0.26.1
python-twitch-client==0.5.1
pytz==2018.4
requests==2.19.1
simplejson==3.15.0
six==1.11.0
ts3==1.0.6
urllib3==1.23
whitenoise==3.3.1
<|fim_middle|> | Django==2.0.7
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>demo/read_geometry_tracks.htm
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Reading geometry and tracks from the ROOT file</title>
<script src="../scripts/JSRootCore.js" type="text/javascript"></script>
<script type='text/javascript'
<|file_sep|>repository/CargoPackageManager-Calypso-Browser/PBOpenProjectWorkingCopyCommand.class.st
Class {
#name : #PBOpenProjectWorkingCopyCommand,
#superclass : #CGOProjectCommand,
#category : #'CargoPackageManager-Calypso-Browser-Commands'
}
{ #category : #accessing }
PBOpenProjectWorkingCopyCommand class >> canBeExecutedInContext: aToolContext [
^ (aToolContext isProjectSelected and: [
...
<|file_sep|>META6.json
<|fim_prefix|>{
"name": "p6doc",
"description": "Raku documentation (tools and docs)",
"version": "1.006d",
"perl": "6.*",
"authors": [
"perl6"
],
"auth": "perl6",
"test-depends": [
"File::Temp",
"Test::META",
"Doc::TypeGraph",
"Pod::To::HTML"
],
"build-depends": [
<<<<<<< CURRENT
<|user_cursor|> "File::Find:ver<0.1.1+>"
=======
<|fim_suffix|>
],
"provides": {},
"support": {
"source": "git://github.com/Raku/doc.git"
},
"license": "Artistic-2.0",
"tags": [
"perl6",
"raku",
"pod6",
"documentation",
"reference"
],
"source-url": "git://github.com/Raku/doc.git",
"meta6": "0"
}
<|fim_middle|> | "File::Find:ver<0.1.1+>",
"Pod::To::BigPage"
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>content/paper.md
Title: Paper Discussion Group
Category: Projekte
Date: 2015-10-22 13:20
Tags: Paper, Pixelweise Klassifikation, Autonomes Fahren
Authors: Marvin Teichmann
In der Projektgruppe wollen wir die neuesten Entwicklungen im Bereich *Pixelweiser Klassifikation mit tiefen Neuronalen Netzen* diskutieren.
#
...
<|file_sep|>.github/workflows/scorecards.yml
name: Scorecards supply-chain security
on:
# Only the default branch is supported.
branch_protection_rule:
schedule:
- cron: '0 12 * * 1'
push:
branches: [ main ]
# Declare default permissions as read only.
permissions: read-all
jobs:
analysis:
name: Scorecards analysis
r
...
<|file_sep|>runAllTests.sh
<|fim_prefix|>set -e
pushd "$PWD"/CFC_WebApp
# find . -name \*.pyc | xargs rm
cp config.json.localhost.android config.json
cp keys.json.sample keys.json
python -m unittest discover -s tests -p Test*;
popd
pushd "$PWD"/CFC_DataCollector
# find . -name \*.pyc | xargs rm
cp ../CFC_WebApp/config.json config.json
cp ../CFC_WebApp/keys.json.sample keys.json
<<<<<<< CURRENT
<|user_cursor|>PYTHONPATH=. python -m unittest discover -s tests -p Test*
=======
<|fim_suffix|>
popd
<|fim_middle|> | PYTHONPATH=.:../CFC_WebApp python -m unittest discover -s tests -p Test*
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>test/Driver/debug-output.swift
// REQUIRES: asserts
// RUN: %swift -emit-llvm %S/Inputs/single_int.swift -o /dev/null -print-stats 2>&1 | FileCheck %s -check-prefix=STATS
// STATS: Statistics Collected
// Only print statistics once
// STATS-NOT: Statistics Collected
<|file_sep|>examples/fail_if_old_driver_test.py
from seleniumbase import BaseCase
class ChromedriverTests(BaseCase):
def test_fail_if_using_an_old_chromedriver(self):
if self.browser != "chrome":
print("\n This test is only for Chrome!")
print(" (Run with: '--browser=chrome')")
self.skip("This
<|file_sep|>_export.sh
<|fim_prefix|>#!/usr/bin/env bash
# Search plugins extractor
# * Extract searchplugins from Firefox profile directory
set -o nounset
set -o errexit
FXPROFILE="${USERPROFILE//\\/\/}/AppData/Roaming/Mozilla/Firefox/Profiles"
PLUGEXT=.xml
# Change directory to the same level as this script
<<<<<<< CURRENT
<|user_cursor|>cd `dirname "${0}"`
=======
<|fim_suffix|>
# Remove current plugins
rm -f *${PLUGEXT}
# Copy plugins from Firefox's user profile directory
find "${FXPROFILE}" -type f -iname "*${PLUGEXT}" -ipath "*/searchplugins/*" -exec cp {} . \;
# Processing each file
for file in `ls -1 *${PLUGEXT}`; do
echo Processing "${file}"...
tr -d "\r" < ${file} > ${file}.lf
mv "${file}.lf" "${file}"
chmod 0644 "${file}"
done
<|fim_middle|> | cd "$(dirname "${0}")"
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>blog/css-concepts.html
## What are the best practices associated with using classes vs. ids?
The main thing to remember when using classes versus ids in HTML/CSS is **classes** can be used as many times as needed within a document. **IDs** can only be applied once within a document. Just like no two people should have
<|file_sep|>releasenotes/notes/add-action-region-to-actions-353f6c4b10f76677.yaml
---
features:
- Support to specify 'action_region' for OpenStack actions so that it's
possible to operate different resources in different regions in one single
workflow.
upgrade:
- Run ``python tools/sync_db.py --config-file <mistral-conf-file>`` to
re-populate database.
deprecation
<|file_sep|>lib/main.coffee
<|fim_prefix|>-view'
new DeprecationCopView(state)
consumeStatusBar: (statusBar) ->
if atom.inDevMode()
DeprecationCopStatusBarView = require './deprecation-cop-status-bar-view'
statusBarView = new DeprecationCopStatusBarView()
statusBarTile = statusBar.addRightTile(item: statusBarView, priority: 150)
@disposables.add(new Disposable => statusBarView.destroy())
@disposables.add(new Disposable => statusBarTile.destroy())
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
<|fim_middle|> |
unless parseFloat(atom.getVersion()) >= 1.7
atom.deserializers.add
name: 'DeprecationCopView',
deserialize: (state) -> module.exports.deserializeDeprecationCopView.bind(module.exports)
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>precipice-samples/src/main/java/net/uncontended/precipice/samples/GuardRailWithFactory.java
/*
* Copyright 2016 Timothy Brooks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl
...
<|file_sep|>dashboard/dashboard/elements/chart-legend-test.html
<!doctype html>
<!--
Copyright 2015 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.
-->
<link rel="import" href="/tracing/core/test_utils.html">
<link rel="import" href="/dashboard/elements/chart-legend.ht
...
<|file_sep|>edit history
--- a/.github/workflows/check-clang-tidy-llpc.yml
+++ b/.github/workflows/check-clang-tidy-llpc.yml
@@ -21,1 +21,1 @@
- run: docker pull "${{secrets.DOCKER_USR}}/$IMAGE_TAG"
+ run: docker pull "amdvlkadmin/$IMAGE_TAG"
<|file_sep|>.github/workflows/check-clang-tidy-llpc.yml
<|fim_prefix|>n +${GITHUB_SHA}:${GITHUB_REF} --update-head-ok
git checkout ${GITHUB_SHA}
- name: Generate Docker base image tag string
run: |
echo "IMAGE_TAG=amdvlk_release_clang:nightly" \
| tee -a $GITHUB_ENV
- name: Fetch the latest prebuilt AMDVLK
run: docker pull "amdvlkadmin/$IMAGE_TAG"
- name: Build and Test with Docker
run: docker build . --file docker/llpc-clang-tidy.Dockerfile
<<<<<<< CURRENT
<|user_cursor|> --build-arg AMDVLK_IMAGE="${{secrets.DOCKER_USR}}/$IMAGE_TAG"
=======
<|fim_suffix|>
--build-arg LLPC_REPO_NAME="${GITHUB_REPOSITORY}"
--build-arg LLPC_REPO_REF="${GITHUB_REF}"
--build-arg LLPC_REPO_SHA="${GITHUB_SHA}"
--build-arg LLPC_BASE_REF="${{ github.base_ref }}"
--tag llpc/ci-shaderdb
<|fim_middle|> | --build-arg AMDVLK_IMAGE="amdvlkadmin/$IMAGE_TAG"
>>>>>>> UPDATED
| both |
<|file_sep|>run-tests.sh
#!/bin/bash
# Copyright 2015 Actian Corporation
# 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
...
<|file_sep|>Doc/docs-requirements.txt
<|fim_prefix|>sphinx==5.0.1
sphinx_rtd_theme==1.0.0
<<<<<<< CURRENT
<|user_cursor|>reportlab==3.6.5
=======
<|fim_suffix|>
freetype-py==2.2.0
<|fim_middle|> | reportlab==3.6.10
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>tests/camel-itest-karaf/src/test/java/org/apache/camel/itest/karaf/CamelAwsLambdaTest.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 information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the
...
<|file_sep|>config.ru
<|fim_prefix|>require File.expand_path('./tasks/recipes/test')
require "rake-pipeline"
require 'rake-pipeline-web-filters'
run Proc.new { |env|
# Extract the requested path from the request
path = Rack::Utils.unescape(env['PATH_INFO'])
use Rack::Static, urls: ["/resources"], root: "test"
# Only compile the assets when the test.html is requested, this is a bit crude
# but it speeds up page loads a lot for tests
<<<<<<< CURRENT
<|user_cursor|> if path =~ /test\.html/
=======
<|fim_suffix|>
Rake::Pipeline::Project.new.build(&CSConsole::Recipes::Test.build).invoke
FileUtils.rm_rf(File.expand_path('./tmp'))
end
mime_types = {
'.js' => 'javascript',
'.css' => 'css',
'.html' => 'html'
}
mime = mime_types[File.extname(path)] || 'text'
[200, {'Content-Type' => "text/#{mime}"}, File.open("./#{File.expand_path(path)}", 'r') ]
}
<|fim_middle|> | if path =~ /test\.html/ || path =~ /demo\.html/
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>examples/osc-interaction/osc-examples.md
# OSC Examples
These example patches aim to show how to get other languages and environments sending OSC messages to Improviz. They're very basic but ideally make everything clear.
## Interacting
The [Interacting](../../docs/interacting.md) documentation is where the explanation of how everything
<|file_sep|>drivers/python/wappalyzer.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import PyV8
import urllib
from urlparse import urlparse
try:
import json
except ImportError:
import simplejson as json
class Wappalyzer(object):
def __init__(self, url):
self.file_dir = os.path.dirname(__file
...
<|file_sep|>site-cookbooks/phpapp/attributes/default.rb
<|fim_prefix|>default['phpapp']['home'] = '/home/www'
default['phpapp']['user'] = 'www'
default['phpapp']['group'] = 'www'
default['phpapp']['git_repo_home'] = '/home/www/bhrsc'
default['phpapp']['mysql']['user'] = 'bhrsc'
default['phpapp']['mysql']['database'] = 'bhrsc'
<<<<<<< CURRENT
<|user_cursor|>default['phpapp']['mysql']['password'] = 'asdfadsf'
=======
<|fim_suffix|>
<|fim_middle|> | default['phpapp']['mysql']['password'] = 'asdfasdf'>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>samples/serialize_xml.adb
with Ada.Text_IO;
with Util.Serialize.IO.XML;
with Util.Streams.Texts;
procedure Serialize_Xml is
Output : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.XML.Output_Stream;
begin
Output.Initialize (Size => 10000);
Stream.Initialize (Output => Output'Unchecked
<|file_sep|>pygotham/admin/schedule.py
<|fim_prefix|>View', 'PresentationModelView')
CATEGORY = 'Schedule'
DayModelView = model_view(
models.Day,
'Days',
CATEGORY,
column_default_sort='date',
column_list=('date', 'event'),
form_columns=('event', 'date'),
)
RoomModelView = model_view(
models.Room,
'Rooms',
CATEGORY,
column_default_sort='order',
form_columns=('name', 'order'),
)
SlotModelView = model_view(
models.Slot,
'Slots',
CATEGORY,
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
form_columns=('day', 'rooms', 'kind', 'start', 'end', 'content_override'),
)
PresentationModelView = model_view(
models.Presentation,
'Presentations',
CATEGORY,
)
<|fim_middle|> | column_list=('day', 'rooms', 'kind', 'start', 'end'),
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>subprojects/logging/src/test/groovy/org/gradle/internal/featurelifecycle/SimulatedDeprecationMessageLogger.java
<|fim_prefix|> public static final String INDIRECT_CALL = "indirect call";
public static final String INDIRECT_CALL_2 = "second-level indirect call";
public static DeprecatedFeatureUsage indirectlySecondLevel(String message) {
return indirectly(message);
}
public static DeprecatedFeatureUsage indirectly(String message) {
return nagUserWith(message);
}
public static DeprecatedFeatureUsage nagUserWith(String message) {
<<<<<<< CURRENT
<|user_cursor|> return new DeprecatedFeatureUsage(message, SimulatedDeprecationMessageLogger.class);
=======
<|fim_suffix|>
}
}
<|fim_middle|> | return new DeprecatedFeatureUsage(message, SimulatedDeprecationMessageLogger.class).withStackTrace();
>>>>>>> UPDATED
| no_related_no_history |
<|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'
buildPlatfo
...
<|file_sep|>migrations/versions/0341_new_letter_rates.py
"""
Revision ID: 0341_new_letter_rates
Revises: 0340_stub_training_broadcasts
Create Date: 2021-01-27 11:58:21.393227
"""
import itertools
import uuid
from datetime import datetime
from alembic import op
from sqlalchemy.sql import text
from app.models import LetterRate
revision = '0341_new_let
...
<|file_sep|>TRANSLATORS.md
These people helped translating ZNC to various languages:
* Altay
* casmo (Casper)
* CJSStryker
* DarthGandalf
* dgw
* Dreiundachzig
* eggoez (Baguz Ach)
* hypech
* Jay2k1
* kloun (Victor Kukshiev)
* leon-th (Leon T.)
* LiteHell
* lorenzosu
* MikkelDK
* natinaum (natinaum)
* PauloHeaven (Paul)
* ps
<|file_sep|>tests/test_share.py
from nose.tools import * # PEP8 asserts
from mock import patch
from tests.base import OsfTestCase
from website.search import share_search
class TestShareSearch(OsfTestCase):
@patch.object(share_search.share_es, 'search')
def test_share_search(self, mock_search):
mock_search.retu
...
<|file_sep|>README.md
<|fim_prefix|># java-mongo-connector
<<<<<<< CURRENT
<|user_cursor|>This project is Java based alternative to mongo-connector. It is reading MongoDB oplog and reproduce appropriate actions in ElasticSearch.
=======
<|fim_suffix|>
**Producer** is tailing MongoDB oplog and sends messages to [JMS queue](https://mq.java.net/)
**Consumer** is read messages from queue and do either INSERT, DELETE or UPDATE
# Prepare soft
1. install and run OpenMQ with default settings.
2. install and run MongoDB with default settings. And have collection and data inside.
3. install ElasticSearch with default settings.
# Run examples
There are MainProducer.class and MainConsumer.class fo
<|fim_middle|> | This project is Java based alternative to mongo-connector. It is reading MongoDB oplog and reproduce appropriate actions in ElasticSearch. Code based on [this](http://jaihirsch.github.io/straw-in-a-haystack/mongodb/2014/08/18/mongo-oplog-tailing/) tutorial
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>library/src/com/google/maps/android/clustering/algo/PreCachingDecorator.java
package com.google.maps.android.clustering.algo;
import android.annotation.TargetApi;
import android.os.Build;
import android.util.Log;
import android.util.LruCache;
import com.google.maps.android.clustering.Cluster;
import com.google.maps.android.clustering.ClusterItem;
import java.util.Set;
imp
...
<|file_sep|>news/migrations/0004_auto_20160301_2235.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def make_articles_boring(apps, schema_editor):
Article = apps.get_model("news", "Article")
for article in Article.objects.filter(url__contains='http://www.nu.nl/gadgets/'):
for
...
<|file_sep|>src/Test/Ast/InlineDocument/OutlineConventions.ts
<|fim_prefix|>')
]))
})
specify('Unordered lists', () => {
expect(Up.toInlineDocument('* Prices and participation may vary')).to.be.eql(
new InlineUpDocument([
new PlainTextNode('* Prices and participation may vary')
]))
})
specify('Blockquotes', () => {
expect(Up.toInlineDocument('> o_o <')).to.be.eql(
new InlineUpDocument([
new PlainTextNode('> o_o <')
]))
})
specify('Code blocks', () => {
<<<<<<< CURRENT
<|user_cursor|> expect(Up.toInlineDocument('```')).to.be.eql(
=======
<|fim_suffix|>
new InlineUpDocument([
new PlainTextNode('```')
]))
})
})
<|fim_middle|> | expect(Up.toInlineDocument('`````````')).to.be.eql(
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>scripts/upgrade_sovrin_node_ubuntu1604_test.sh
#!/bin/bash -x
vers="$1"
if [ -z "$vers" ] ; then
exit 1
fi
echo "Run sovrin upgrade to version $vers"
apt-get update -y && apt-get install sovrin-node="$vers"
ret=$?
if [ $ret -ne 0 ] ; then
echo "Upgrade to version $vers failed"
exit 1
fi
echo "Restarting node and agent"
systemctl restart
<|file_sep|>webui/__init__.py
#!/usr/bin/env python
#
# Copyright 2012 Ajay Narayan, Madhusudan C.S., Shobhit N.S.
#
#
# 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
<|file_sep|>recipes/multigifview/meta.yaml
<|fim_prefix|>{% set name = "multigifview" %}
{% set version = "0.1.2" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: b8609afbfe36668776921cd3d368bebdc44395ccc521e1d4c8f6c1ec15e86c1c
build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"
entry_points:
- multigifview = multigifview:main
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
requirements:
host:
- python >=3.6
- pip
- setuptools >=40
- setuptools_scm_git_archive
run:
- python >=3.6
- qt.py >=1.2
- pyqt >=5.12
- sip # [win]
test:
commands:
- multigifview -h
about:
home: https://github.com/johnomotani/multigifview
license: GPL-3.0-or-later
license_family: GPL
license_file: LICENCE
summary: Simple gif viewer
dev_url: https://github.com/johnomotani/multigifview
ex
<|fim_middle|> | skip: true # [py<36]
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>edit history
--- a/metadata/net.sourceforge.solitaire_cg.txt
+++ b/metadata/net.sourceforge.solitaire_cg.txt
@@ -30,0 +30,3 @@
+Build:1.15,453
+ commit=SolitaireCG-1.15
+
<|file_sep|>metadata/net.sourceforge.solitaire_cg.txt
<|fim_prefix|>ider deal interrupted
* Add README and COPYING menu displays
* Replace application icon
The changes enable card dealing and playability in spider. The original card
graphics, which can scale to higher resolutions, have been retained.
.
Repo Type:git
Repo:git://git.code.sf.net/p/solitairecg/code
Build:1.14,452
commit=SolitaireCG-1.14
Build:1.15,453
commit=SolitaireCG-1.15
Auto Update Mode:Version SolitaireCG-%v
Update Check Mode:Tags
<<<<<<< CURRENT
<|user_cursor|>Current Version:1.14
Current Version Code:452
=======
<|fim_suffix|>
<|fim_middle|> | Current Version:1.15
Current Version Code:453
>>>>>>> UPDATED
| edit_history |
<|file_sep|>scrapy_espn/combine_years.sh
#!/bin/bash
if [ "$1" != "" ]; then
if [ "$2" != "" ]; then
if [ "$3" != "" ]; then
YEAR=$2
while [ $YEAR -le $3 ]
do
cat "../data/$1_${YEAR}_games.csv" >> "$1_games_$2-$3.csv"
echo "Combined $YEAR to our file"
(( YEAR++ ))
done
#Remove duplicate headers and move to
<|file_sep|>packages/vu/vulkan-api.yaml
homepage: https://github.com/achirkin/genvulkan#readme
changelog-type: ''
hash: a2a509d23daf3751f8ee35f4ac65d46018c362de0647cd95c130631c6cdcfaa8
test-bench-deps: {}
maintainer: chirkin@arch.ethz.ch
synopsis: Low-level low-overhead vulkan api bindings
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
<|file_sep|>src/index.html
<|fim_prefix|><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SARAI Maps</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
</head>
<body>
<div class="main-container">
<div class="navbar navbar-main navbar-default navbar--s-1">
<div class="container-fluid">
<div class="navbar-header">
<h1 id="logo" class="logo navbar-brand">
<a class="logo__link" href="/">
<img src="/assets/img/ui/sarai-logo.png" alt="Project SARAI" class="img"/>
</a>
<|fim_middle|> | <style>
.hidden { display: none !important; }
</style>
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>spec/features/disclosure_spec.rb
require "rails_helper"
describe "Disclosures" do
feature "creating a disclosure" do
it "accepts valid attributes" do
visit new_disclosure_path
fill_in "Title", with: "My New Valid Disclosure"
fill_in "Abstract", with: "This is my disclosure" * 10
fill_in "Body", with:
<|file_sep|>edit history
--- a/bower.json
+++ b/bower.json
@@ -23,1 +23,1 @@
- "ember": "~1.2.0"
+ "ember": ">=1.2 <2"
<|file_sep|>bower.json
<|fim_prefix|> "version": "0.2.1",
"authors": [
"Ryan Florence <rpflorence@gmail.com>"
],
"main": "main.js",
"moduleFormat": [
"amd",
"cjs",
"globals"
],
"license": "MIT",
"ignore": [
"bower_components",
"node_modules",
"package.json",
"testem.json",
"test.js",
"**/.*"
],
"dependencies": {
"ember": ">=1.2 <2"
},
"devDependencies": {
"sinon": "http://sinonjs.org/releases/sinon-1.7.3.js"
}
<<<<<<< CURRENT
<|user_cursor|>}
=======
<|fim_suffix|>
<|fim_middle|> | }
>>>>>>> UPDATED
| both |
<|file_sep|>programming/javascript/core/javascript-window.md
## JavaScript: The Definitive Guide Chapter 14: The Window Object
setTimeout(): execute a function once after a specified amount of time has elapsed.
setInterval(): execute a function repeatedly after a specified amount of time has elapsed.
window.location == document.location # repres
<|file_sep|>public/js/controller.js
function Controller (view){
var user_questions = [];
this.view = view;
$.ajax({
url: '/questions/index',
method: 'GET',
dataType: 'json'
}).done(function(data){
user_questions = data['questions'];
view.updateQuestions(user_questions);
});
$(".button").click(function
...
<|file_sep|>salt/mopidy/pillar_check.sls
<|fim_prefix|>#!py
def run():
""" Sanity check the mopidy pillar to ensure that all required fields
are present.
"""
mopidy = __pillar__.get('mopidy', {})
if not mopidy:
# no config is valid
return {}
validate_spotify(mopidy)
validate_local(mopidy)
return {}
def validate_spotify(mopidy):
if 'spotify' in mopidy:
assert 'username' in mopidy['spotify']
assert 'password' in mopidy['spotify']
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
def validate_local(mopidy):
if 'local' in mopidy:
assert 'media_dir' in mopidy['local']
<|fim_middle|> | assert 'client_id' in mopidy['spotify']
assert 'client_secret' in mopidy['spotify']
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>packages/at/atrans.yaml
homepage: https://github.com/aphorisme/atrans
changelog-type: ''
hash: b1e2aa1af285e04c349f3c42fa86460acd3ac0894ab5249078c4845178fa18d7
test-bench-deps: {}
maintainer: pfiff@hax-f.net
synopsis: A small collection of monad (transformer) instances.
changelog: ''
basic-deps:
base: ! '>=4.7 && <5'
m
<|file_sep|>lib/cf-release-common.rb
<|fim_prefix|>#!/usr/bin/env ruby
# encoding: utf-8
def release_names
Dir['*-buildpack-github-release'].collect { |name| name.gsub(/-buildpack.*/, '') }
end
def find_buildpack_key(blobs, language)
case language
when /offline/
blobs.keys.detect { |key| key =~ /java-buildpack-offline/ }
when /java/
blobs.keys.detect { |key| key =~ /java-buildpack-v/ }
else
<<<<<<< CURRENT
<|user_cursor|> blobs.keys.detect { |key| key =~ /^#{language}-buildpack\// }
=======
<|fim_suffix|>
end
end
<|fim_middle|> | blobs.keys.detect { |key| key =~ /^#{language}[-_]buildpack\// }
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>tests/index.html
<|fim_prefix|><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Unit tests</title>
<link rel="stylesheet" href="../assets/components/qunit/qunit/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../assets/components/qunit/qunit/qunit.js"></script>
<<<<<<< CURRENT
<|user_cursor|> <script src="../assets/components/jquery/jquery.js"></script>
=======
<|fim_suffix|>
<script src="../assets/components/underscore/underscore.js"></script>
<script src="../assets/components/backbone/backbone.js"></script>
<script src="../assets/components/nanoscroller/bin/javascripts/jquery.nanoscroller.js"></script>
<script src="../app/js/models.js"></script>
<script src="../app/js/views.js"></script>
<script src="../app/js/core.js"></script>
<script src="app/js/models.js"></script>
<script src="app/js/views.js"><
<|fim_middle|> | <script src="../assets/components/jquery/dist/jquery.js"></script>
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>example-docker-cloud-stack.yml
# This is the docker-compose.yml for the deployment environment.
# Instead of building the image, it's pulled from Docker Hub.
# The current directory is not mounted.
# The database container mounts its data files from the host. A better way to do this might be to use a data container.
db:
image:
...
<|file_sep|>zforce.py
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>import zipfile
def bf_extract(zfile, password):
zip = zipfile.ZipFile(zfile)
try:
zip.setpassword(password)
zip.extractall()
except:
pass
finally:
zip.close()
if __name__ == "__main__":
bf_extract("spmv.zip", "ok")
=======
<|fim_suffix|>
<|fim_middle|> | import zipfile
def bf_extract(zfile, password):
zip = zipfile.ZipFile(zfile)
try:
zip.setpassword(password)
zip.extractall()
except:
pass
finally:
zip.close()
if __name__ == "__main__":
bf_extract("spmv.zip", "ok")>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>src/test/java/org/simpleframework/xml/core/NotRequiredConstructorInjectionTest.java
package org.simpleframework.xml.core;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Default;
import org.simpleframework.xml.DefaultType;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.ValidationTestCase;
...
<|file_sep|>packages/ex/exp-cache.yaml
homepage: https://github.com/ChrisCoffey/exp-cache#readme
changelog-type: markdown
hash: a11ed800947d18e25db9755727f59ebd13ecc8de194a40cb02b4f6acee3d3909
test-bench-deps:
exp-cache: -any
base: ! '>=4.7 && <5'
HUnit: -any
tasty-quickcheck: -any
tasty-hunit: -any
random: -any
tasty: -any
...
<|file_sep|>react-chartist-tooltip.js
<|fim_prefix|>import React from 'react';
import Chartist from 'chartist';
export default class Chart extends React.Component {
componentDidMount() {
this.updateChart(this.props);
}
componentWillReceiveProps(newProps) {
this.updateChart(newProps);
}
componentWillUnmount() {
this.chartist && this.chartist.detach();
}
render() {
<<<<<<< CURRENT
<|user_cursor|> return <div className = "ct-chart"></div>;
=======
<|fim_suffix|>
}
updateChart(configs) {
const {type, data, options = {}, responsiveOptions = []} = configs;
data.series && (this.chartist = new Chartist[type](React.findDOMNode(this), data, options, responsiveOptions));
}
}
Chart.propTypes = {
type: React.PropTypes.string.isRequired,
data: React.PropTypes.object.isRequired,
options: React.PropTypes.object,
responsiveOptions: React.PropTypes.array
};
<|fim_middle|> | return <div className = {['ct-chart', this.props.ratio].join(' ').trim()}></div>;
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>source/manual/alerts/user-monitor.html.md
---
owner_slack: "#2ndline"
title: Check that correct users have access
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-05-25
review_in: 6 months
---
This alert triggers is triggered by the [User monitor][] task. This task [runs a script][rev] that verifie
<|file_sep|>doc/release-notes-14491.md
Descriptor import support
---------------------
The `importmulti` RPC now supports importing of addresses from descriptors. A "desc" parameter can be provided instead of the "scriptPubKey" in a request, as well as an optional range for ranged descriptors to specify the start and end of the range to
<|file_sep|>teamcity-plugin.xml
<|fim_prefix|><?xml version="1.0" encoding="UTF-8"?>
<teamcity-plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:shemas-jetbrains-com:teamcity-plugin-v1-xml">
<info>
<name>teamcity-web-ssh</name>
<<<<<<< CURRENT
<|user_cursor|> <display-name>teamcity-web-ssh</display-name>
=======
<|fim_suffix|>
<version>@Version@</version>
<description>Plugin description</description>
<download-url>Plugin download URL</download-url>
<email>Plugin author e-mail</email>
<vendor>
<name>@VendorName@</name>
<url>@VendorURL@</url>
<logo>Plugin vendor logo URL</logo>
</vendor>
</info>
<deployment use-separate-classloader="true" />
</teamcity-plugin>
<|fim_middle|> | <display-name>Web Ssh</display-name>
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>binary-string.js
<|fim_prefix|>// Returns binary string of given decimal number
function decimalToBinary(num) {
if (num >= 1) {
if (num % 2) { // if decimal number is not divisible by 2, then recursively return proceeding binary of the digit minus 1, and then add 1 for the leftover 1 digit
return decimalToBinary((num - 1)/2) + 1;
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
}
}
}
<|fim_middle|> | } else {
return decimalToBinary(num/2) + 0; // recursively return proceeding binary digits
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>src/Type/UserType.php
<|fim_prefix|><?php namespace ProcessWire\GraphQL\Type;
use GraphQL\Type\Definition\ObjectType;
use GraphQL\Type\Definition\Type;
use ProcessWire\GraphQL\Cache;
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
class UserType
{
public static $name = 'User';
public static $description = 'ProcessWire User.';
public static function type()
{
return Cache::type(self::$name, function () {
return new ObjectType([
'name' => self::$name,
'description' => self::$description,
'fields' => [
'name' => [
'type' => Type::nonNull(Type::string()),
'description' => "The user's login name.",
<|fim_middle|> | use ProcessWire\GraphQL\Type\Fieldtype\FieldtypeEmail;
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>locales/bs/ways-to-give.properties
# Ways to give page
ways_to_give=Načini doniranja
credit_debit_paypal=Kreditne / debitne kartice i PayPal
make_donation=<a href="https://donate.mozilla.org/?utm_content=Ways_to_Give">Idite na ovaj link</a> da napravite sigurnu online donaciju sada.
mail_check_heading=Ček (putem poštanske usluge)
#
...
<|file_sep|>db/migrate/20161128102235_change_art_museum_to_museum_art.rb
class ChangeArtMuseumToMuseumArt < ActiveRecord::Migration
class LocalNodeType < ActiveRecord::Base
self.table_name = 'node_types'
validates :icon, presence: true
end
# Rename art_museum.png to museum_art.png but keep same identifier & osm_value
def up
node_type = LocalNodeType.
<|file_sep|>edit history
--- a/setup.py
+++ b/setup.py
@@ -8,1 +8,1 @@
- version='0.1.0',
+ version='0.2.0',
<|file_sep|>setup.py
<|fim_prefix|>tup, find_packages
setup(
name='aegea',
version='0.2.0',
url='https://github.com/kislyuk/aegea',
license='Proprietary',
author='Andrey Kislyuk',
author_email='kislyuk@gmail.com',
description='Amazon Web Services Operator Interface',
long_description=open('README.rst').read(),
install_requires=[
'boto3 >= 1.2.6',
'argcomplete >= 1.1.0',
'paramiko >= 1.16.0',
'requests >= 2.9.1',
<<<<<<< CURRENT
<|user_cursor|> 'tweak >= 0.0.2',
=======
<|fim_suffix|>
'keymaker >= 0.1.7',
'pyyaml >= 3.11'
],
extras_require={
':python_version == "2.7"': ['enum34 >= 1.0.4', 'ipaddress >= 1.0.16'],
':python_version == "3.3"': ['enum34 >= 1.0.4']
},
packages=find_packages(exclude=['test']),
scripts=glob.glob('scripts/*'),
platforms=['MacOS X', 'Posix'],
test_suite='test',
include_package_data=True
)
<|fim_middle|> | 'tweak >= 0.1.0',
>>>>>>> UPDATED
| both |
<|file_sep|>spec/graphql/execution/interpreter/arguments_spec.rb
# frozen_string_literal: true
require "spec_helper"
describe "GraphQL::Execution::Interpreter::Arguments" do
class InterpreterArgsTestSchema < GraphQL::Schema
class SearchParams < GraphQL::Schema::InputObject
argument :query, String, required: false
end
class Query < GraphQL::S
...
<|file_sep|>.travis.yaml
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
before_script:
- composer install
script:
- bin/phpcs --standard=psr2 src/
<|file_sep|>email_auth/migrations/0003_auto_20151209_0746.py
<|fim_prefix|># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import email_auth.models
class Migration(migrations.Migration):
dependencies = [
('email_auth', '0002_auto_20151011_1652'),
]
operations = [
migrations.AlterModelManagers(
name='user',
managers=[
('objects', email_auth.models.UserManager()),
],<<<<<<< CURRENT
<|user_cursor|>
),
migrations.AlterField(
model_name='user',
name='groups',
field=models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', verbose_name='groups'),
),
migrations.AlterField(
model_name='user',
name='last_login',
field=models.DateTimeField(null=True, verbose_name='last login', blank=True),
),
]
=======
<|fim_suffix|>
<|fim_middle|> |
),
migrations.AlterField(
model_name='user',
name='groups',
field=models.ManyToManyField(related_query_name='user', related_name='user_set', to='auth.Group', blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', verbose_name='groups'),
),
migrations.AlterField(
model_name='user',
name='last_login',
field=models.DateTimeField(null=True, verbose_name='last login', blank=True),
),
]
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>tests/integration/bundle/bundle-include-base64.yaml
<|fim_prefix|>series: xenial
applications:
ghost:
charm: "ghost"
num_units: 1
mysql:
charm: "mysql"
<<<<<<< CURRENT
<|user_cursor|> channel: "candidate"
series: "trusty"
=======
<|fim_suffix|>
num_units: 1
options:
max-connections: 2
tuning-level: include-base64://config-base64.yaml
test:
charm: "../charm"
relations:
- ["ghost", "mysql"]
<|fim_middle|> | channel: candidate
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>test/visual/_template.html
<!doctype html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Foundation for Sites Testing</title>
<link href="../assets/css/foundation
<|file_sep|>branch.sql
<|fim_prefix|>BEGIN;
-- Update user_id and is_team. See branch.py for doco.
\i update.sql
-- Drop all Bitbucket accounts that aren't required for account access.
DELETE FROM elsewhere WHERE id IN (
SELECT e1.id
FROM elsewhere e1
JOIN elsewhere e2
ON e1.participant = e2.participant
<<<<<<< CURRENT
<|user_cursor|> WHERE e1.platform='bitbucket'
=======
<|fim_suffix|>
AND e2.platform IN ('twitter', 'github', 'facebook', 'google', 'openstreetmap')
AND NOT e2.is_team
);
END;
<|fim_middle|> | AND e1.platform='bitbucket'
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>fedora22-net/ansible/roles/pulp_consumer/tasks/main.yml
---
- name: Disable sshd strict modes
lineinfile:
backrefs: yes
dest: /etc/ssh/sshd_config
regexp: "^#StrictModes yes"
line: "StrictModes no"
notify: restart sshd
- name: Install Pulp dnf repository
get_url:
url: https://repos.fedorapeople.org/repos/pulp/pulp/fed
<|file_sep|>findbugs/src/java/edu/umd/cs/findbugs/detect/FindFieldSelfAssignment.java
/*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003, University of Maryland
*
* 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 Foundation; either
* version 2.1
...
<|file_sep|>edit history
--- a/Casks/snapz-pro-x.rb
+++ b/Casks/snapz-pro-x.rb
@@ -2,2 +2,2 @@
- version '2.5.4'
- sha256 'b3b7dfd27222dfc45414cf820d83d14f12f6504af0b8e9009fd4b0a771b8894c'
+ version '2.6.0'
+ sha256 'f603dae7a8fe64633f01ca2a53a1eed0907d17e3733f125fedb6d2e96b491b64'
<|file_sep|>Casks/snapz-pro-x.rb
<|fim_prefix|>cask :v1 => 'snapz-pro-x' do
version '2.6.0'
sha256 'f603dae7a8fe64633f01ca2a53a1eed0907d17e3733f125fedb6d2e96b491b64'
url "http://downloads3.ambrosiasw.com/snapzprox/essentials/SnapzProX#{version.to_i}.dmg"
appcast 'https://www.ambrosiasw.com/updates/profile.php/snapz_pro_x/release',
<<<<<<< CURRENT
<|user_cursor|> :sha256 => '8fbbd653283a84ce8541f1f58670cc2fe9da88ed32b75a153bbabd69709d7314'
=======
<|fim_suffix|>
name 'Snapz Pro X'
homepage 'http://www.ambrosiasw.com/utilities/snapzprox/'
license :commercial
pkg 'Snapz Pro X.pkg'
uninstall :pkgutil => 'com.ambrosiasw.pkg.(snapz|audiosupport)',
:kext => 'com.AmbrosiaSW.AudioSupport'
end
<|fim_middle|> | :sha256 => '8fbbd653283a84ce8541f1f58670cc2fe9da88ed32b75a153bbabd69709d7314'
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>week-1/my_reflection.md
<|fim_prefix|>ection
##Part 1: Based on the resources you looked at, describe the terms you learned about.
- Browser: Software application that translates the web
- DNS: Domain Name System -- the phone book of the internet
- Domain: A name for a site, with usually at least two levels (Top like .com, second like facebook)
- Internet: The internet is a series of tubes! It's a network of computers that are connnect to each other.
- IP address: Any individual<<<<<<< CURRENT
<|user_cursor|> computer's address on the internet. Either IPv4 or IPv6.
- Web app: A complex site, usually that enables user interaction, amongst other cool features.
- Web server: A software that listens for requests to load a site
- Website: A simplistic page (different from a web app)
- World wide web: All of the site on the internet!
Explain how the internet displays your website after you push your changes.
## Part 2: Reflection
- What 2 new things did you learn about the web?
I had rough knowledge of most of the concepts here, but really appreciated the simple explanations that really crystallized the understanding.
-Cool to know that DNS is distributed, as in a series of local name servers
-The steps for how to create a page -- getting a domain name, to hosting it all of a sudden feel a lot more clear
- How did you feel when you saw your web page live?
Pretty awesome. It's cool to see some random smattering of code live on the web.
Lots more to do though!
- Did you have an "aha" moments or were any concepts solidified?
The termi
=======
<|fim_suffix|>
nology that clarifies internet vs. web, website vs. web app, DNS, Domain Name vs. IP were all very illuminating. I think a lot of people use terms like those interchangeably without understanding what exactly they mean, so it's nice to to have a common language.
- Did you find any resources on your own that helped you better understand a topic? If so, please list it.
These resources seemed pretty comprehensive, at least for a basic understandin
<|fim_middle|> | computer's address on the internet. Either IPv4 or IPv6.
- Web app: A complex site, usually that enables user interaction, amongst other cool features.
- Web server: A software that listens for requests to load a site
- Website: A simplistic page (different from a web app)
- World wide web: All of the site on the internet!
Explain how the internet displays your website after you push your changes.
## Part 2: Reflection
- What 2 new things did you learn about the web?
I had rough knowledge of most of the concepts here, but really appreciated the simple explanations that really crystallized the understanding.
-Cool to know that DNS is distributed, as in a series of local name servers
-The steps for how to create a page -- getting a domain name, to hosting it all of a sudden feel a lot more clear
- How did you feel when you saw your web page live?
Pretty awesome. It's cool to see some random smattering of code live on the web.
Lots more to do though!
- Did you have an "aha" moments or were any concepts solidified?
The termi>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>LICENSE.txt
The MIT License (MIT)
Copyright (c) 2015 Test Double, LLC.
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,
<|file_sep|>scripts/ensure_log_dates.py
# -*- coding: utf-8 -*-
import datetime
import logging
import sys
from modularodm import Q
from website.models import NodeLog
from bson import ObjectId
from nose.tools import *
from tests.base import OsfTestCase
from tests.factories import NodeLogFactory
logger = logging.getLogger(__name__)
l
...
<|file_sep|>edit history
--- a/README.md
+++ b/README.md
@@ -14,1 +14,1 @@
- runtime ":xss-sanitizer:0.3"
+ runtime ":xss-sanitizer:0.4"
<|file_sep|>README.md
<|fim_prefix|>vlets will use an extend HttpServletRequest so that request parameters used from that servlet will be stripped as well.
Just adding this plugin to you project with the installation instructions above will activate it. No other actions are needed.
There is an XssSanitizerUtil class that can also be used to strip strings out.
Also, you can enable or disable it by adding a key in your Config.groovy like this:
<code>
xssSanitizer.enabled = true
<<<<<<< CURRENT
<|user_cursor|></code>
=======
<|fim_suffix|>
<|fim_middle|> | </code>
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>src/main/java/net/tridentsdk/base/BlockDirection.java
package net.tridentsdk.base;
import lombok.Getter;
public enum BlockDirection {
NORTH(0, 0, -1),
NORTH_EAST(1, 0, -1),
EAST(1, 0, 0),
SOUTH_EAST(1, 0, 1),
SOUTH(0, 0, 1),
SOUTH_WEST(-1, 0, 1),
WEST(-1, 0, 0),
NORTH_WEST(-1, 0, -1),
UP(0, 1, 0),
DOWN(0, -1,
...
<|file_sep|>convert-to-python3.sh
#!/bin/sh
# Convert urlwatch sources to Python 3.x compatible format
SOURCES="urlwatch lib/urlwatch/*.py examples/hooks.py.example setup.py"
2to3 -w $SOURCES
<|file_sep|>lib/tasks/slugs.rake
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>namespace :slugs do
desc "Generate slug attribute for objects from classes that use Sluggable concern"
task generate: :environment do
%w(Budget Budget::Heading Budget::Group).each do |class_name|
class_name.constantize.all.each(&:generate_slug)
end
end
end
=======
<|fim_suffix|>
<|fim_middle|> | namespace :slugs do
desc "Generate slug attribute for objects from classes that use Sluggable concern"
task generate: :environment do
%w(Budget Budget::Heading Budget::Group).each do |class_name|
class_name.constantize.all.each(&:generate_slug)
end
end
end
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>db/init/16-dashboard.sql
/*Connect to database*/
\connect mobydq
/*Create view to get batch status summary*/
CREATE OR REPLACE VIEW base.batch_status
AS SELECT a.id
, a.status
, a.created_date
, a.updated_date
, (DATE_PART('day', a.updated_date::timestamp - a.created_date::timestamp)*24 +
DATE_PART('hour', a
...
<|file_sep|>examples/real_time_enforcer/nat.tf
resource "random_pet" "main" {
length = "1"
prefix = "forseti-simple-example"
separator = "-"
}
resource "google_compute_router" "main" {
name = "${random_pet.main.id}"
network = "default"
bgp {
asn = "64514"
}
region = "us-central1"
project = "${var.project_id}"
}
...
<|file_sep|>src/main/java/net/restlesscoder/sandbox/ZipArrays.java
package net.restlesscoder.sandbox;
import java.lang.reflect.Array;
import java.util.Arrays;
public class ZipArrays {
public static void main(final String... args) throws Exception {
final String[] a = { "hello", "cruel", "world" };
final String[] b = { "how", "are", "you" };
final String[
...
<|file_sep|>README.md
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
[](https://travis-ci.org/ike18t/mingle_cli)
[](https://codeclimate.com/github/ike18t/mingle_cli)
[](https://coveralls.io/r/ike18t/mingle_cli?branch=master)
[](http://badge.fury.io/rb/mingle_cli)
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>usr/local/sbin/ntpdate_sync_once.sh
<|fim_prefix|>#!/bin/sh
NOTSYNCED="true"
while [ "$NOTSYNCED" = "true" ]; do
ntpdate "0.pfsense.pool.ntp.org"
if [ "$?" = "0" ]; then
NOTSYNCED="false"
fi
done
# Launch -- we have net.
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
/usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf
<|fim_middle|> | killall ntpd 2>/dev/null
sleep 1
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>gem/migrations/0027_set_site_settings_correctly.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
from molo.profiles.models import UserProfilesSettings
from wagtail.wagtailcore.models import Site
def set_site_settings(apps, schema_editor):
for site in Site.objects.all():
settings = U
...
<|file_sep|>components/fadder/index.js
<|fim_prefix|>ukene skal du få bli kjent med både linjeforeningen, NTNU og mange medstudenter. Dette er den
viktigste portalen for å stifte bekjentskaper som varer studietiden ut. Vi i Online anbefaler alle å ta del
i det supre fadderopplegget vårt!
</p>
<p>Fadderukene starter den 12. august etter immatrikuleringen for både bachelor og master.</p>
<p>
For praktisk info rundt fadderukene se{' '}
<<<<<<< CURRENT
<|user_cursor|> <a href="https://online.ntnu.no/wiki/online/fadderukene/2019-/">her</a>
=======
<|fim_suffix|>
</p>
</div>
</div>
</div>
);
};
export default Fadder;
<|fim_middle|> | <a href="https://online.ntnu.no/wiki/online/fadderukene/2020-/">her</a>
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>spec/unit/generator/section_spec.rb
# frozen_string_literal: true
module GitHubChangelogGenerator
RSpec.describe Section do
let(:options) { {} }
subject(:section) { described_class.new(options) }
describe "#encapsulate_string" do
let(:string) { "" }
context "with the empty string" do
it "returns th
...
<|file_sep|>edit history
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -5,1 +5,5 @@
- vals.push(obj[key]);
+ if(typeof(obj[key]) === 'object') {
+ vals.push(JSON.stringify(obj[key]));
+ } else {
+ vals.push(obj[key])
+ }
<|file_sep|>lib/utils.js
<|fim_prefix|>Object.values = function(obj) {
var vals = [];
for( var key in obj ) {
if ( obj.hasOwnProperty(key) ) {
if(typeof(obj[key]) === 'object') {
vals.push(JSON.stringify(obj[key]));
} else {
vals.push(obj[key])
}
}
}
return vals;
<<<<<<< CURRENT
<|user_cursor|>}
=======
<|fim_suffix|>
<|fim_middle|> | }
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>tests/standalone/map_literal_oom_test.dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// VMOptions=--old_gen_heap_size=7
// Test that compaction does occur on repeated
<|file_sep|>edit history
--- a/www/templates/BuoyancyResultView.html
+++ b/www/templates/BuoyancyResultView.html
@@ -9,1 +10,1 @@
- The resulting buoyancy is negative.
+ <span class="icon icon-check"></span> The resulting buoyancy is <%=(uv.value().toFixed(1) == 0) ? 'neutral' : 'negative' %> which should allow to control the ascent at all time.
--- a/www/templates/BuoyancyResultView.html
+++ b/www/templates/BuoyancyResultView.html
@@ -4,4 +5,4 @@
-<span>
- <% if (json.buoyancy.value > 0) { %>
- The resulting buoyancy is positive.<br/>
- You may <strong>add</strong> a minimum of <strong><%=uv.as(config.units[measure]).format(1)%></strong> of lead.
+<p>
+ <% if (uv.value() > 0) { %>
+ <span class="icon icon-close"></span> The resulting buoyancy is positive which may lead to an uncontrolled ascent during the dive.<br/>
+ <strong>Consider adding a minimum of <%=uv.as(config.units[measure]).format(1)%> of lead.</strong>
--- a/www/templates/BuoyancyResultView.html
+++ b/www/templates/BuoyancyResultView.html
@@ -3,0 +3,1 @@
+<% var maxExperienceOffset = 2; // kg %>
<|file_sep|>www/templates/BuoyancyResultView.html
<|fim_prefix|>>
<span class="icon icon-close"></span> The resulting buoyancy is positive which may lead to an uncontrolled ascent during the dive.<br/>
<strong>Consider adding a minimum of <%=uv.as(config.units[measure]).format(1)%> of lead.</strong>
<% } else { %>
<span class="icon icon-check"></span> The resulting buoyancy is <%=(uv.value().toFixed(1) == 0) ? 'neutral' : 'negative' %> which should allow to control the ascent at all time.
<% } %>
<<<<<<< CURRENT
<|user_cursor|></span>
=======
<|fim_suffix|>
<|fim_middle|> | </p>
<% if (-uv.as('kg').value() < maxExperienceOffset) { %>
<p><span class="icon icon-info"></span> The computation does not take your experience into account.
Consider adding between <%=new app.units.Unit({'value': 0, 'unit':'kg'}).as(config.units['mass']).format(0)%> (most experienced) and <%=new app.units.Unit({'value': maxExperienceOffset, 'unit':'kg'}).as(config.units['mass']).format(1)%> (least experienced) of lead depending on your level of experience.</p>
<% } %>>>>>>>> UPDATED
| both |
<|file_sep|>examples/README.rst
<|fim_prefix|>here we use versioned
indices (``test-blog-0``, ``test-blog-1``, ...) to manage schema changes and
hides that behind an alias so that the application doesn't have to be aware of
the versions and just refer to the ``test-blog`` alias for both read and write
operations.
For simplicity we use a timestamp as version in the index name.
``parent_child.py``
-------------------
More complex example highlighting the possible relationships available in
<<<<<<< CURRENT
<|user_cursor|>elasticsearch - parent/child and nested.
=======
<|fim_suffix|>
``composite_agg.py``
--------------------
A helper function using the `composite aggregation
<https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html>`_
to paginate over aggregation results.
``percolate.py``
----------------
A ``BlogPost`` document with automatic classification using the `percolator
<https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolat
<|fim_middle|> | elasticsearch - `parent/child
<https://www.elastic.co/guide/en/elasticsearch/reference/6.3/nested.html>`_ and
`nested
<https://www.elastic.co/guide/en/elasticsearch/reference/6.3/nested.html>`_.
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>edit history
--- a/src/app/router.animations.ts
+++ b/src/app/router.animations.ts
@@ -26,1 +26,1 @@
- animate('500ms cubic-bezier(.75,-0.48,.26,1.52)',
+ animate('500ms ease-out',
<|file_sep|>src/app/router.animations.ts
<|fim_prefix|>ry(':enter, :leave', style({ position: 'fixed', width: '100%' }), {optional: true}),
query(':enter', style({ opacity: 0 }), {optional: true}),
sequence([
query(':leave', animateChild(), {optional: true}),
group([
query(':leave', [
style({ opacity: 1 }),
animate('500ms ease-out',
style({ opacity: 0 }))
], {optional: true}),
query(':enter', [
style({ opacity: 0 }),
<<<<<<< CURRENT
<|user_cursor|> animate('500ms cubic-bezier(.75,-0.48,.26,1.52)',
=======
<|fim_suffix|>
style({ opacity: 1 }))
], {optional: true}),
]),
query(':enter', animateChild(), {optional: true})
])
])
]);
<|fim_middle|> | animate('500ms 300ms ease-in',
>>>>>>> UPDATED
| edit_history |
<|file_sep|>app/app.js
'use strict';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
// Top-level React (pure functional) component:
const App = () => (
<div>
Hello, World!
</div>
);
// Inject into #app HTML element:
ReactDOM.render(<App />, document.getElementById('app'));
<|file_sep|>.github/workflows/contributions-validator.yml
# Copyright 2020 The TensorFlow Hub Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un
...
<|file_sep|>edit history
--- a/possessify.gemspec
+++ b/possessify.gemspec
@@ -8,0 +8,1 @@
+ s.licenses = ['MIT']
<|file_sep|>possessify.gemspec
<|fim_prefix|>Y
s.authors = ["David Busse"]
s.email = ["dpb@essub.com"]
s.homepage = "http://github.com/dpbus/possessify"
s.summary = %q{Possessify extends the Ruby String class adding functionality to make strings possessive and non-possessive.}
s.description = %q{Possessify extends the Ruby String class adding functionality to make strings possessive and non-possessive. Methods include possessive, non_possessive, and possessive?}
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_development_dependency 'minitest', '~> 5.4.2'
end
<|fim_middle|> |
>>>>>>> UPDATED
| both |
<|file_sep|>CODE_OF_CONDUCT.md
<|fim_prefix|>e, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
By adopting this Code of Conduct, project maintainers commit themselves to
fairly and consistently applying these principles to every aspect of managing
this project. Project maintainers who do not follow or enforce t<<<<<<< CURRENT
<|user_cursor|>he Code of
Conduct may be permanently removed from the project team.
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting a project maintainer at [INSERT EMAIL ADDRESS]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at https://www.contributor-covenant.org/version/1/3/0/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
=======
<|fim_suffix|>
<|fim_middle|> | he Code of
Conduct may be permanently removed from the project team.
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting a project maintainer at [INSERT EMAIL ADDRESS]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at https://www.contributor-covenant.org/version/1/3/0/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>edit history
--- a/build.sbt
+++ b/build.sbt
@@ -3,1 +3,1 @@
- version := "scalactic-220826-ecr",
+ version := "scalactic-220916-ecr",
<|file_sep|>build.sbt
<|fim_prefix|>ame := "scalactic",
version := "scalactic-220916-ecr",
scalaVersion := "2.13.5",
libraryDependencies ++= Seq(
"org.scalatestplus.play" %% "scalatestplus-play" % "4.0.3"
),
fork := false,
Docker / packageName := "artima/scalactic-website",
Docker / maintainer := "Artima Inc.",
dockerExposedPorts ++= Seq(9000),
dockerUpdateLatest := true,
Universal / javaOptions ++= Seq(
// -J params will be added as jvm parameters
<<<<<<< CURRENT
<|user_cursor|> "-J-Xmx128m",
"-J-Xms64m"
=======
<|fim_suffix|>
)
//classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat // Added in sbt 1.3 (https://www.scala-sbt.org/1.x/docs/sbt-1.3-Release-Notes.html), but still not working, so we fall back to sbt 1.2.
).enablePlugins(PlayScala, JavaServerAppPackaging, DockerPlugin)
<|fim_middle|> | "-J-Xmx128m",
"-J-Xms64m"
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>lib/ansible/modules/cloud/openstack/os_server_facts.py
#!/usr/bin/python
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at y
...
<|file_sep|>tools-callbacks/src/main/java/eu/mosaic_cloud/tools/callbacks/tools/CallbackCompletionWorkflows.java
package eu.mosaic_cloud.tools.callbacks.tools;
import java.util.ArrayDeque;
import java.util.concurrent.Callable;
import eu.mosaic_cloud.tools.callbacks.core.CallbackCompletion;
import eu.mosaic_cloud.tools.callbacks.core.CallbackCompletionObserver;
import com.google.common.base.Preconditions;
...
<|file_sep|>src/js/data-transform.js
<|fim_prefix|>rnVal;
},
checkForMissingData: function (data) {
if (data.latest.formatted_value !== NO_DATA) {
data.latestAvailable = true;
}
if (data.secondLatest && (data.secondLatest.formatted_value !== NO_DATA)) {
data.secondLatestAvailable = true;
}
data.showChange = data.latestAvailable && data.secondLatestAvailable;
data.showSecondLatest = !data.latestAvailable && data.secondLatestAvailable;
return data;
}
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
};
<|fim_middle|> |
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>.zenodo.json
{
"creators": [
{
"affiliation": "University of Florida",
"name": "Ethan P. White",
"orcid": "0000-0001-6728-7745"
},
{
"affiliation": "University of Florida",
"name": "Glenda M. Yenni",
"orcid": "0000-0001-6969-1848"
},
{
"affiliation"
...
<|file_sep|>.changelog/11107.txt
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>```release-note:improvement
audit-logging: **(Enterprise Only)** Audit logs will now include select HTTP headers in each logs payload. Those headers are: `Forwarded`, `Via`, `X-Forwarded-For`, `X-Forwarded-Host` and `X-Forwarded-Proto`.
```
=======
<|fim_suffix|>
<|fim_middle|> | ```release-note:improvement
audit-logging: **(Enterprise Only)** Audit logs will now include select HTTP headers in each logs payload. Those headers are: `Forwarded`, `Via`, `X-Forwarded-For`, `X-Forwarded-Host` and `X-Forwarded-Proto`.
```
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>appveyor.yml
environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
os: Visual Studio 2017 # Windows Server 2016
install:
- java -version
- mvn --version
build_script:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
test_script:
- mvn test --batch-mode
- mvn checkstyle:check --batch-mo
<|file_sep|>gtkmvco/examples/observable/value.py
# Author: Roberto Cavada <cavada@fbk.eu>
#
# Copyright (c) 2006 by Roberto Cavada
#
# pygtkmvc 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 Foundation; either
# version 2 of the License
...
<|file_sep|>_layouts/post.html
<|fim_prefix|>---
layout: default
---
<div class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
<<<<<<< CURRENT
<|user_cursor|> <link rel="amphtml" href="https://mercury.postlight.com/amp?url={{ page.url | prepend: site.github.url }}">
=======
<|fim_suffix|>
</header>
<article class="post-content">
{{ content }}
</article>
</div>
{% include disqus.html %}
<|fim_middle|> | <link rel="amphtml" href="https://mercury.postlight.com/amp?url={{ page.url | prepend: site.github.url }}">
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>_posts/2014-11-20-introduction-programmation-fonctionnelle-semaine-4.md
---
layout: post
title: Introduction à la programmation fonctionnelle - Semaine 4
---
Un peu de retard pour ce nouveau billet consacré au cours d'[introduction à la programmation fonctionnelle].
## Les fonctions d'ordre supérieure
Cette semaine était consacrée uniquement aux [fonctions d'ordre
...
<|file_sep|>.github/workflows/build.yml
name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
dotnet: [3.1.302]
runs-on: ${{ matrix.os }}
steps:
- uses: acti
...
<|file_sep|>app/View/messages.blade.php
<|fim_prefix|><div class='container'>
<<<<<<< CURRENT
<|user_cursor|> @if(\App\HorizontCMS::isInstalled() && \Settings::get('admin_broadcast') != '')
=======
<|fim_suffix|>
<div class="alert alert-info alert-dismissible" role="alert">
<span class='glyphicon glyphicon-info-sign' aria-hidden='true'></span>
<strong>Broadcast message: </strong> {{ \Settings::get('admin_broadcast') }}
</div>
@endif
@if(session()->has('message'))
@foreach(session()->get('message') as $key => $value)
<div class="alert alert-{{ $key }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="al
<|fim_middle|> | @if(\App\HorizontCMS::isInstalled() && \Auth::check() && \Settings::get('admin_broadcast') != '')
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>wagtail/wagtailadmin/tests/test_password_reset.py
from django.test import TestCase, override_settings
from django.core import mail
from wagtail.tests.utils import WagtailTestUtils
from wagtail.wagtailcore.models import Site
class TestUserPasswordReset(TestCase, WagtailTestUtils):
fixtures = ['test.json']
# need to clear urlresolver cach
...
<|file_sep|>2-patterns/structural/decorator-runtime.cpp
// Decorator (run-time)
class foo
{
public:
virtual void do_work() = 0;
};
class foo_concrete : public foo
{
public:
virtual void do_work()
{ }
};
class foo_decorator : public foo
{
public:
foo_decorator(foo& f)
: f(f)
{ }
virtual void do_work() {
// Do something else here t
...
<|file_sep|>edit history
--- a/composer.json
+++ b/composer.json
@@ -15,1 +15,1 @@
- "name": "Syed Irfaq Raza",
+ "name": "Syed Irfaq R.",
<|file_sep|>composer.json
<|fim_prefix|>lytics from Laravel. A package for GA Measurement Protocol API",
"keywords": [
"laravel google analytics",
"google analytics",
"analytics",
"tracking",
"ga measurement protocol",
"measurement protocol"
],
"license": "MIT",
"authors": [
{
"name": "Syed Irfaq R.",
"email": "syed+gh@lukonet.com"
}
],
"require": {
"php": ">=5.4.0",
<<<<<<< CURRENT
<|user_cursor|> "illuminate/support": "4.2.*|5.0.*",
"theiconic/php-ga-measurement-protocol": "^1.1"
=======
<|fim_suffix|>
},
"autoload": {
"psr-0": {
"Irazasyed\\LaravelGAMP\\": "src/"
}
},
"suggest": {
"irazasyed/larasupport": "Allows you to use any Laravel Package in Lumen by adding support!"
},
"minimum-stability": "stable"
}
<|fim_middle|> | "illuminate/support": "4.2.*|5.0.*",
"theiconic/php-ga-measurement-protocol": "^1.1"
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>app/twig_templates/admin/categories/edit_sp.twig
{% extends 'admin/layouts/default_sp.twig' %}
{% block title %}{{ _('I edit a category') }}{% endblock %}
{% block content %}
<header><h1 class="in_menu sh_heading_main_b"><span class="h1_title">{{ _('I edit a category') }}</span></h1></header>
<h2><span class="h2_inner">{{ _('Edit categor
...
<|file_sep|>Casks/opera-developer.rb
<|fim_prefix|>cask :v1 => 'opera-developer' do
<<<<<<< CURRENT
<|user_cursor|> version '31.0.1857.0'
sha256 '5cc4e281b9eefa679640acdbc7cf1a928c5758c3a1e2984acb5a682bd591952b'
=======
<|fim_suffix|>
url "http://get.geo.opera.com/pub/opera-developer/#{version}/mac/Opera_Developer_#{version}_Setup.dmg"
homepage 'http://www.opera.com/developer'
license :unknown
app 'Opera Developer.app'
end
<|fim_middle|> | version '31.0.1876.0'
sha256 '0e3a47d30e13d6c94aafb272fbec7dd1ccc781c20882ee0fb36eec89fce86fa3'
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>Games/Other/Oxide.Game.Nomad/Files/Windows/_start-example.bat
<|fim_prefix|>@echo off
cls
:start
echo Starting server...
<<<<<<< CURRENT
<|user_cursor|>"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 30 -clientVersion "0.57" -password "" -tcpLobby "149.202.51.185" 25565
=======
<|fim_suffix|>
@echo.
@echo Restarting server...
@echo.
goto start
<|fim_middle|> | "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 30 -clientVersion "0.581" -password "" -tcpLobby "149.202.51.185" 25565
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>.travis.yml
language: objective-c
script: 'curl -s -H "Authorization: token $ATOM_ACCESS_TOKEN" -H "Accept: application/vnd.github.v3.raw"
https://api.github.com/repos/atom/apm/contents/script/build-package | sh'
env:
global:
secure: SHDe6mtAJ13fKSG00Lbay9pdSZkfijoGkX/Gc/zXiyv4C/B9XIU8pSclUeQ0l+xnD/fIe+
<|file_sep|>csunplugged/utils/errors/Error.py
<|fim_prefix|>"""Base error used to create custom errors for loaders."""
<<<<<<< CURRENT
<|user_cursor|>ERROR_TITLE_TEMPLATE = "****************************ERROR****************************\n"
=======
<|fim_suffix|>
ERROR_FILENAME_TEMPLATE = "File: {filename}\n"
ERROR_REFERENCE_TEMPLATE = "Referenced in: {reference}\n"
ERROR_SUGGESTIONS_TEMPLATE = """
- Did you spell the name of the file correctly?
- Does the file exist?
- Is the file saved in the correct directory?
"""
class Error(Exception):
"""Base class for Errors.
(Exceptions from external sources such as inputs).
"""
def __init__(self):
"""Create the base class for err
<|fim_middle|> | ERROR_TITLE_TEMPLATE = "\n****************************ERROR****************************\n"
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>lib/xmlrpc_server.rb
require 'xmlrpc/server'
require 'pp'
server = XMLRPC::Server.new(8080)
server.add_handler('postTopic') do |options|
puts '-' * 50
puts 'postTopic received with the following options:'
pp options
{ 'result' => 'success', 'topic_id' => '12345' }
end
server.serve
<|file_sep|>test/stat_test.rb
require 'test_helper'
describe "Resque::Stat" do
before do
@original_data_store = Resque::Stat.data_store
@dummy_data_store = Object.new
Resque::Stat.data_store = @dummy_data_store
end
after do
Resque::Stat.data_store = @original_data_store
end
it '#redis show deprecatio
...
<|file_sep|>README.md
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|># steer_drive_ros [](https://travis-ci.org/CIR-KIT/steer_drive_ros) [](http://cir-kit.slack.com/messages/steer_drive_ros)
=======
<|fim_suffix|>
Steer drive package for ROS
<|fim_middle|> | # steer_drive_ros [](https://travis-ci.org/CIR-KIT/steer_drive_ros) [](http://cir-kit.slack.com/messages/steer_drive_ros)
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>src/unittest/multipath_alignment_graph.cpp
/// \file multipath_alignment_graph.cpp
///
/// unit tests for the multipath mapper's MultipathAlignmentGraph
#include <iostream>
#include "json2pb.h"
#include "vg.pb.h"
#include "../multipath_mapper.hpp"
#include "../build_index.hpp"
#include "catch.hpp"
namespace vg {
namespace unittest {
TES
...
<|file_sep|>app/views/layouts/comfy/admin/cms/_nav_main.html.haml
%nav.nav-main
.l-constrained
%ul.nav-main__items
- if @site && !@site.new_record?
%li= active_link_to t('comfy.admin.cms.base.pages'), comfy_admin_cms_site_pages_path(@site)
%li= active_link_to t('comfy.admin.cms.base.files'), comfy_admin_cms_site_files_path(@site)
<|file_sep|>metadata/cat.mvmike.minimalcalendarwidget.txt
<|fim_prefix|>tion:
Calendar widget that shows the current month.
* Default 3x2 (resizable)
* Dark theme
* Displays all events from your calendars
* Pressing on header opens widget configuration
* Pressing on any day cell opens calendar application
.
Repo Type:git
Repo:https://github.com/mvmike/min-cal-widget
Build:0.3.3,10
commit=v0.3.3
subdir=min-cal-widget
gradle=yes
Build:0.4.0,11
commit=v0.4.0
subdir=min-cal-widget
gradle=yes
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
Auto Update Mode:Version v%v
Update Check Mode:Tags
Current Version:0.4.0
Current Version Code:11
<|fim_middle|> | Build:1.0.0,12
commit=v1.0.0
subdir=min-cal-widget
gradle=yes
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>logo_usage_guidelines.md
<|fim_prefix|># Kubernetes Branding Guidelines
These guidelines provide you with guidance for using the Kubernetes logo. You can use the logo on your website or in print without pre-approval, provided you follow these basic guidelines.
You may display, modify or use the Kubernetes logo only in connection with compliant implementations of Kubernetes and related uses<<<<<<< CURRENT
<|user_cursor|> in the following ways. A compliant implementation is an implementation of the unmodified Google version of Kubernetes found at https://github.com/GoogleCloudPlatform/kubernetes and compatible branches thereof, together with published specifications, APIs and operational patterns. Acceptable related uses include display, modify or use of the Kubernetes logo in connection with your compliant implementation, your integration with a compliant implementation, your support for a compliant implementation, your Kubernetes-compatible product, or in collateral, presentations, and marketing materials relating to compliant implementations of Kubernetes.
Use of the Kubernetes logo or other Google brands in ways not expressly covered by this document is not allowed without prior written consent from Google -- see Google's [Guidelines for Third Party Use of Google Brand Features](http://www.google.com/intl/en/permissions/guidelines.html) for more information.
## Links to logo images
[SVG format](https://github.com/GoogleCloudPlatform/kubernete
=======
<|fim_suffix|>
s/raw/master/logo.svg)
[PNG format](https://github.com/GoogleCloudPlatform/kubernetes/raw/master/logo.png)
[PDF format](https://github.com/GoogleCloudPlatform/kubernetes/raw/master/logo.pdf)
<|fim_middle|> | in the following ways. A compliant implementation is an implementation of the unmodified Google version of Kubernetes found at https://github.com/GoogleCloudPlatform/kubernetes and compatible branches thereof, together with published specifications, APIs and operational patterns. Acceptable related uses include display, modify or use of the Kubernetes logo in connection with your compliant implementation, your integration with a compliant implementation, your support for a compliant implementation, your Kubernetes-compatible product, or in collateral, presentations, and marketing materials relating to compliant implementations of Kubernetes.
Use of the Kubernetes logo or other Google brands in ways not expressly covered by this document is not allowed without prior written consent from Google -- see Google's [Guidelines for Third Party Use of Google Brand Features](http://www.google.com/intl/en/permissions/guidelines.html) for more information.
## Links to logo images
[SVG format](https://github.com/GoogleCloudPlatform/kubernete>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>app/models/spree/store_decorator.rb
<|fim_prefix|>n_key => 'promotion_rule_id'
has_attached_file :logo,
:styles => { :mini => '48x48>', :small => '100x100>', :medium => '250x250>' },
:default_style => :medium,
:url => 'stores/:id/:style/:basename.:extension',
:path => 'stores/:id/:style/:basename.:extension',
:convert_options => { :all => '-strip -auto-orient' }
def self.current(domain = nil)
current_store = domain ? Store.by_url(domain).first : nil
<<<<<<< CURRENT
<|user_cursor|> current_store || cached_default
=======
<|fim_suffix|>
end
end
end
<|fim_middle|> | current_store || Store.default
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>Wangscape/noise/module/codecs/CylindersWrapperCodec.cpp
<|fim_prefix|>#pragma once
#include "CylindersWrapperCodec.h"
namespace spotify
{
namespace json
{
using CylindersWrapper = noise::module::Wrapper<noise::module::Cylinders>;
codec::object_t<CylindersWrapper> default_codec_t<CylindersWrapper>::codec()
{
auto codec = codec::object<CylindersWrapper>();
codec.required("type", codec::eq<std::string>("Cylinders"));
<<<<<<< CURRENT
<|user_cursor|> codec.required("SourceModule", codec::ignore_t<int>());
=======
<|fim_suffix|>
codec.optional("Frequency",
[](const CylindersWrapper& mw) {return mw.module->GetFrequency(); },
[](CylindersWrapper& mw, double frequency) {mw.module->SetFrequency(frequency); });
return codec;
}
}
}
<|fim_middle|> | codec.required("SourceModule", codec::ignore_t<int>());
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>practicum/queue/README.md
Опашка
======
Минимален елемент
-----------------
Напишете функцията `int dequeue_min(queue<int>& q)`,
която по дадена непразна опашка `q` премахва минимален елемент от `q`,
като запазва всички останали елементи в `q`
(не непременно в първоначалния им ред). Функцията връща премахнатия минимален
еле
<|file_sep|>lib/base64it.js
<|fim_prefix|>"use strict";
/*global window*/
var strictEncode = null;
var strictDecode = null;
<<<<<<< CURRENT
<|user_cursor|>if (window && typeof window.btoa === "function") { // When running in a browser.
=======
<|fim_suffix|>
strictEncode = function (unencoded) {
return window.btoa(unencoded);
};
strictDecode = function (encoded) {
return window.atob(encoded);
};
} else { // When running in Node.
strictEncode = function (unencoded) {
return new Buffer(unencoded).toString("base64");
};
strictDecode = function (encoded) {
return new Buffer(encoded, "base64");
};
}
module.exports = {
strictEncode:
<|fim_middle|> | if (typeof window !== "undefined" && typeof window.btoa === "function") { // When running in a browser.
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>sample/src/main/java/com/louiscad/splittiessample/extensions/coroutines/Channels.kt
/*
* 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 may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req
<|file_sep|>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/profile/ProfilesInstanceTypeEditor.ui.xml
<|fim_prefix|><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style type="org.ovirt.engine.ui.common.widget.AddRemoveRowWidget.WidgetStyle">
.mainPanel {
border-top: 1px solid black;
float: left;
padding-left: 5px;
margin-left: 5px;
width: 400px;
}
.headerLabel {
<<<<<<< CURRENT
<|user_cursor|> color: #919191;
=======
<|fim_suffix|>
padding-top: 5px;
}
.buttonStyle {
width: 9px;
height: 11px;
padding-left: 2px;
padding-top: 2px;
margin-top: 7px;
margin-left: 50px;
}
</ui:style>
<g:FlowPanel addStyleNames="{style.mainPanel}" >
<g:Label ui:field="headerLabel" addStyleNames="{style.headerLabel}" />
<g:ScrollPanel height="190px">
<g:FlowPanel ui:field="contentPanel" />
</g:ScrollPanel>
</g:FlowPanel>
</ui:UiBinder>
<|fim_middle|> | color: #919191;
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>requirements_dev.txt
<|fim_prefix|>-r requirements.txt
-e .
black==19.3b0; python_version > '3'
bump2version==0.5.10
coverage==4.5.3
coveralls==1.7.0
flake8==3.7.7
mock==2.0.0
<<<<<<< CURRENT
<|user_cursor|>pre-commit==1.15.1
=======
<|fim_suffix|>
pytest==4.4.1
pytest-cov==2.6.1
responses==0.10.6
Sphinx==1.8.5 # pyup: <2
testfixtures==6.7.0
tox==3.8.6
twine==1.13.0
watchdog==0.9.0
wheel==0.33.1
<|fim_middle|> | pre-commit==1.15.2
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>count_labelsets.py
"""Create multilabel data set with normalized spelling.
The input consists of a directory of text files containing the dataset in
historic spelling.
The data set consists of:
<sentence id>\t<sentence>\tEmotie_Liefde (embodied emotions labels separated by
_)
<sentence id>\t<sentence>\tNone ('None' i
...
<|file_sep|>distribution-test/xmlrpc-tests/src/test/it/com/xpn/xwiki/it/xmlrpc/AnonymousAccessTest.java
package com.xpn.xwiki.it.xmlrpc;
import java.net.URL;
import java.util.Map;
import junit.framework.TestCase;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.apache.xmlrpc.client.util.ClientFactory;
import com.xpn.xwiki.xmlrpc.Conflu
...
<|file_sep|>package.json
<|fim_prefix|> "yaml2json": "bin/yaml2json"
},
"keywords": [
"yaml",
"json",
"multidoc",
"frontmatter",
"mixed"
],
"author": "Stijn Debrouwere",
"license": "ISC",
"dependencies": {
"asciidoctor.js": "^1.5.0",
"commander": "2.1.x",
"findit": "^2.0.0",
"js-yaml": "^3.2.2",
"markdown": "^0.5.0",
"textile-js": "^0.1.8",
"underscore": "^1.7.0",
"underscore.string": "^2.3.3"
},
"devDependencies": {
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
"mocha": "^1.21.4",
"should": "^4.0.4"
}
}
<|fim_middle|> | "coffee-script": "^1.8.0",
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>_posts/2009-07-31-igoogle-theme-somilody-2.md
---
layout: post
title: iGoogle Theme - Somilody 2
category: work
excerpt: iGoogle Theme - Somilody 2
thumb: somilody-2.jpg
---
<p><img src="{{ site.file }}/somilody-2.png" alt="iGoogle Theme - Somilody 2"></p>
<div class=txt>
<p>為 <a href="http://www.google.cn/intl/zh-CN/landing/igcontest09/">iGo
<|file_sep|>src/python/read_back.py
import lcio
fac = lcio.LCFactory.getInstance()
rdr = fac.createLCReader()
rdr.open("write_test.slcio")
evt = rdr.readNextEvent()
coll = evt.getSimCalorimeterHitCollection("hits")
print repr(coll)
hit=coll.getElementAt(0)
print repr(hit)
<|file_sep|>Source/Extensions/CALayer+Utilities.swift
<|fim_prefix|>//
// Created by Pierluigi Cifani on 11/07/2018.
//
import UIKit
public extension CALayer {
<<<<<<< CURRENT
<|user_cursor|> func addShadow(opacity: CGFloat = 0.5, shadowRadius: CGFloat = 10) {
self.shadowOffset = .zero
=======
<|fim_suffix|>
self.shadowOpacity = Float(opacity)
self.shadowRadius = shadowRadius
self.shadowColor = UIColor.black.cgColor
self.masksToBounds = false
if cornerRadius != 0 {
addShadowWithRoundedCorners()
}
}
func roundCorners(radius: CGFloat) {
self.cornerRadius = radius
if shadowOpacity != 0 {
addShadowWithRoundedCorners()
}
}
private func
<|fim_middle|> | func addShadow(opacity: CGFloat = 0.5, shadowRadius: CGFloat = 10, offset: CGSize = .zero) {
self.shadowOffset = offset
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>src/ggrc/migrations/versions/20170214101700_ff4ebc0d89c_add_column_to_fulltext_records_table.py
# Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""
Add 'subproperty' column into 'fulltext_record_properties' table to make
search by property subtype bypossible.
For example:
We have two subtypes of the property Person:
- name
- ema
...
<|file_sep|>edit history
--- a/client/views/stars/stars.js
+++ b/client/views/stars/stars.js
@@ -16,1 +18,3 @@
- $(this).removeClass('fa-star rate-' + oldRating).addClass('fa-star-o');
+ $(this)
+ .removeClass('fa-star rate-' + oldRating)
+ .addClass('fa-star-o');
--- a/client/views/stars/stars.js
+++ b/client/views/stars/stars.js
@@ -13,1 +13,3 @@
- $(this).removeClass('fa-star-o rate-' + oldRating).addClass('fa-star rate-' + starNum);
+ $(this)
+ .removeClass('fa-star-o rate-' + oldRating)
+ .addClass('fa-star rate-' + starNum);
<|file_sep|>client/views/stars/stars.js
<|fim_prefix|> ']').attr('data-rating');
$('div[data-post=' + post + ']').attr('data-rating', starNum);
var setStarHighlight = function () {
console.log(oldRating);
if ($(this).data("num") <= starNum) {
$(this)
.removeClass('fa-star-o rate-' + oldRating)
.addClass('fa-star rate-' + starNum);
} else {
console.log(oldRating);
$(this)
.removeClass('fa-star rate-' + oldRating)
.addClass('fa-star-o');
}
<<<<<<< CURRENT
<|user_cursor|> }
=======
<|fim_suffix|>
$('div[data-post=' + post + '] .star').each(setStarHighlight);
};
Template.feed.events({
'click .star': rate
});
<|fim_middle|> | };
>>>>>>> UPDATED
| both |
<|file_sep|>tests/unit/phpDocumentor/Compiler/CompilerTest.php
<?php
/**
* phpDocumentor
*
* PHP Version 5.3
*
* @copyright 2010-2013 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Compiler;
/**
* Tests the functionality for
...
<|file_sep|>res/values-fr/arrays.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="distanceUnits">
<item name="km">Kilomètres</item>
<item name="mi">Miles</item>
</string-array>
<string-array name="distanceUnitValues">
<item name="km">km</item>
<item name="mi">
<|file_sep|>numpy/array_api/tests/test_asarray.py
<|fim_prefix|>rt np.asarray(a) is a
assert np.asarray(a, dtype='i') is a
# This may produce a new view or a copy, but is never the same object.
assert np.asarray(a, dtype='l') is not a
unequal_type = np.dtype('i', metadata={'spam': True})
b = np.asarray(a, dtype=unequal_type)
assert b is not a
assert b.base is a
equivalent_requirement = np.dtype('i', metadata={'spam': True})
c = np.asarray(b, dtype=equivalent_requirement)
<<<<<<< CURRENT
<|user_cursor|> # A quirk of the metadata test is that equivalent metadata dicts are still
# separate objects and so don't evaluate as the same array type description.
=======
<|fim_suffix|>
assert unequal_type == equivalent_requirement
assert unequal_type is not equivalent_requirement
assert c is not b
assert c.dtype is equivalent_requirement
<|fim_middle|> | # The descriptors are equivalent, but we have created
# distinct dtype instances.
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>edit history
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,1 +4,1 @@
- - 6
+ - 7
<|file_sep|>.travis.yml
<|fim_prefix|>language: node_js
node_js:
- 7
cache:
bundler: true
directories:
- node_modules
before_script:
- npm install -g gulp
- gulp
deploy:
api_key:
secure: TaF0rF0+n/t3jchds6RSahdIwV+VozFEzGXdnwKzX8TnW2afGU7hh50BJHdQA6/mm0VbgxwAfIDMYU2luLwQn8CJCcJYp7g3+g8xsH15q8ny2AUmIkQQ2sWY43Vk1yMHIwzuAlHy5Pv5qKk8cYRVY5fwaCl/4KfvpIn4F2/DjwU=
email: limon.monte@gmail.com
provider: npm
notifications:
email:
<<<<<<< CURRENT
<|user_cursor|> on_success: never
=======
<|fim_suffix|>
<|fim_middle|> | on_success: never
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>src/test/java/com/trit/security/utils/ws/WsResourceTest.java
package com.trit.security.utils.ws;
import org.junit.Test;
public class WsResourceTest {
@Test(expected = IllegalArgumentException.class)
public void testNullResource() {
new WsResource(null);
}
@Test(expected = IllegalArgumentException.class)
public void testNullReso
<|file_sep|>xseof/meta.yaml
{% set name = "xseof" %}
{% set version = "1.0.0" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: bd9d1a5b55cbba9b1c712fb78f4d657b40087afbbc2e1f0c610e943989f668d5
build:
...
<|file_sep|>gradle.properties
<|fim_prefix|>GROUP=com.squareup.leakcanary
<<<<<<< CURRENT
<|user_cursor|>VERSION_NAME=2.6
=======
<|fim_suffix|>
POM_DESCRIPTION=LeakCanary
POM_URL=http://github.com/square/leakcanary/
POM_SCM_URL=http://github.com/square/leakcanary/
POM_SCM_CONNECTION=scm:git:https://github.com/square/leakcanary.git
POM_SCM_DEV_CONNECTION=scm:git:git@github.com:square/leakcanary.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=square
POM_DEVELOPER_NAME=Squ
<|fim_middle|> | VERSION_NAME=2.7-SNAPSHOT
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>docker/install-docker.sh
if [ "$(uname)" == "Darwin" ]; then
# Do something under Mac OS X platform
echo "Mac OSX Detected, please install docker toolbox https://docs.docker.com/mac/step_one/"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo "Linux Detected"
if [ "$(id -u)" != "0" ]; the
<|file_sep|>.github/workflows/artifacts.yml
name: Report artifacts
on: [check_run]
# types: [completed]
# pull_request:
# types: [ready_for_review]
jobs:
report_artifacts:
runs-on: ubuntu-latest
name: Report Artifacts
steps:
- name: debug
env:
JOB_CONTEXT: ${{ toJson(github }}
STEP_CONTEXT: ${{
<|file_sep|>app/views/admin/show.html.haml
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>%h2 Hidden projects
=======
<|fim_suffix|>
%table
%thead
%tr
%th Name
%th url
%th users
%th visible
%th trigger
%tbody
= render :collection => @projects, :partial => 'project'
<|fim_middle|> | %h2 Hidden projects
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>src/recognition_keys/developer/pivotal/pivotal_tracker_story_number.html
<h4>Fields</h4>
<p>
Each recognition result has the following fields:
</p>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Property Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>recognitionLevel</td>
<td>Number</t
...
<|file_sep|>TWLight/users/migrations/0056_expire_all_sessions.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-05-08 17:49
from __future__ import unicode_literals
from django.db import migrations
from django.core import management
from django.contrib.sessions.models import Session
from django.utils.timezone import now
def expire_all_sessions(ap
<|file_sep|>locales/es-MX/addon.properties
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>tooltip_play= Reproducir
tooltip_pause= Pausa
tooltip_mute= Silenciar
tooltip_unmute= Escuchar
tooltip_send_to_tab= Enviar a pestaña
tooltip_minimize= Minimizar
tooltip_maximize= Maximizar
tooltip_close= Cerrar
tooltip_switch_visual= Clic para cambiar visualización
media_type_audio= audio
media_type_video= video
error_msg= Algo está mal con este video. Intenta de nuevo más tarde.
error_link= Abrir en una nueva pestaña
# LOCALIZATION NOTE: 1st placeholder is media type, 2nd is domain name
loading_view_msg= Cargando %s desde %s
content_menu_msg= Enviar a mini reproductor
error_sc_limit= Ya has alcanzado el límite de reproducciones en Soundcloud por hoy. Inténtalo de nuevo mañana.
error_sc_connection= No se puede conectar a Soundcloud. Intenta de nuevo más tarde.
error_sc_not_track= El enlace que enviaste desde Soundcloud no es una pista. Prueba a enviar una pista de audio.
error_sc_not_streamable= La pista de audio que enviaste desde Soundcloud no se puede reproducir, prueba con otra.
error_sc_restricted= El editor de esta pista ha rest
=======
<|fim_suffix|>
ringido el acceso de terceros, prueba con otra pista.
error_vimeo_connection= No se puede conectar a Vimeo. Intenta de nuevo más tarde.
error_vine_connection= No se puede conectar a Vine. Intenta de nuevo más tarde.
error_youtube_not_found= No se encontró el video. El video que has solicitado se ha eliminado o privatizado.
error_youtube_not_allowed= El propietario ha marcado este video como no integrable. Prueba con otro o ponte en contacto con
<|fim_middle|> | tooltip_play= Reproducir
tooltip_pause= Pausa
tooltip_mute= Silenciar
tooltip_unmute= Escuchar
tooltip_send_to_tab= Enviar a pestaña
tooltip_minimize= Minimizar
tooltip_maximize= Maximizar
tooltip_close= Cerrar
tooltip_switch_visual= Clic para cambiar visualización
media_type_audio= audio
media_type_video= video
error_msg= Algo está mal con este video. Intenta de nuevo más tarde.
error_link= Abrir en una nueva pestaña
# LOCALIZATION NOTE: 1st placeholder is media type, 2nd is domain name
loading_view_msg= Cargando %s desde %s
content_menu_msg= Enviar a mini reproductor
error_sc_limit= Ya has alcanzado el límite de reproducciones en Soundcloud por hoy. Inténtalo de nuevo mañana.
error_sc_connection= No se puede conectar a Soundcloud. Intenta de nuevo más tarde.
error_sc_not_track= El enlace que enviaste desde Soundcloud no es una pista. Prueba a enviar una pista de audio.
error_sc_not_streamable= La pista de audio que enviaste desde Soundcloud no se puede reproducir, prueba con otra.
error_sc_restricted= El editor de esta pista ha rest>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>teensy_drive/README.md
# TEENSY Firmware
> The teensyboard 3.2 is used as the electronic speed control (ESC)
## Setting up the firmware
### 1 Install the teensyduino software
Follow the insturctions here: https://www.pjrc.com/teensy/td_download.html
### 2 Setup `rosserial`
```bash
sudo apt install ros-kinetic-ros
...
<|file_sep|>features/support/rack-test-default-host.rb
# Necessary evil thing: Rack::Test sports as default host
# "example.org", but Webrat and Ruby on Rails's integration test
# classes use "example.com"; this discrepancy leads to Webrat not
# being able to follow simple internal redirects.
#
# Drop in in features/support/
module Rack
module Test
<|file_sep|>frontend/src/app/troll-build/champions/champions.page.ts
<|fim_prefix|>onsService, private title: TitleService) {}
ngOnInit() {
this.setTitle();
this.getChampions();
this.getChampionTags();
}
private setTitle(): void {
this.title.resetTitle();
}
getChampions(): void {
this.champions$ = this.championsService.getChampions();
}
getChampionTags(): void {
this.championTags$ = this.championsService.getChampionTags();
}
setChampionsFilterTag(selectedFilterTag: string): void {
<<<<<<< CURRENT
<|user_cursor|> if (this.championsFilterTag === selectedFilterTag) {
this.championsFilterTag = '';
} else {
this.championsFilterTag = selectedFilterTag;
}
=======
<|fim_suffix|>
}
trackByChampions(index: number, champion: Champion): number {
return champion.id;
}
}
<|fim_middle|> | this.championsFilterTag = this.championsFilterTag === selectedFilterTag ? '' : selectedFilterTag;
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>tests/e2e/scenarios/metrics-server/run-test.sh
#!/usr/bin/env bash
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless
...
<|file_sep|>app/views/questionnaires/view.html.erb
<|fim_prefix|>BR/>
<TABLE>
<TR>
<TH align="left" width="60%"> Question </TH>
<TH align="left">  Type  </TH>
<TH align="left">  Weight  </TH>
<TH align="left">  Score Range  </TH>
</TR>
<%questions=@questionnaire.questions.sort { |a,b| a.seq <=> b.seq }%>
<%questions.each do |question| %>
<%if question.is_a? Question%>
<%=question.view_question_text.html_safe%>
<%end%>
<% end %>
</TABLE>
<BR/>
<<<<<<< CURRENT
<|user_cursor|><B>Instructions:</B> <%= link_to @questionnaire.instruction_loc, @questionnaire.instruction_loc %>
=======
<|fim_suffix|>
<BR/>
<%= link_to 'Edit', :action => 'edit', :id => @questionnaire %> |
<%= link_to "Back", :controller => 'tree_display', :action => 'list' %>
<|fim_middle|> | <B>Instructions:</B> <%= link_to @questionnaire.instruction_loc, @questionnaire.instruction_loc %>
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>formats/specialist_document/publisher/examples/specialist_document.json
{
"content_id": "4a656f42-35ad-4034-8c7a-08870db7fffe",
"base_path": "/cma-cases/example-cma-case",
"title": "Example CMA Case",
"description": "This is the summary of an example CMA case",
"format": "specialist_document",
"public_updated_at": "2015-02-11T13:45:00.000+00:00",
"publishi
...
<|file_sep|>osu.Game/Screens/Ranking/Statistics/UnstableRate.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 System;
using System.Collections.Generic;
using System.Linq;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Screens.Ranking.Statistics
{
...
<|file_sep|>lingohub.gemspec
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
require File.expand_path("../lib/lingohub/version", __FILE__)
Gem::Specification.new do |gem|
gem.name = 'lingohub'
gem.version = Lingohub::VERSION
gem.authors = [ 'lingohub GmbH' ]
gem.email = [ 'team@lingohub.com' ]
gem.description = 'Client library and command-line tool to translate Ruby based apps with lingohub.'
gem.summary = gem.description
gem.homepage = 'https://lingohub.com'
gem.
<|fim_middle|> | # -*- encoding: utf-8 -*-
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>src/net/java/sip/communicator/service/gui/CreateAccountWindow.java
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.gui;
/**
*
* @author Yana Stamcheva
*/
public interface CreateAccountWindow
{
/**
* S
<|file_sep|>edit history
--- a/imports/startup/server/start-cron.js
+++ b/imports/startup/server/start-cron.js
@@ -11,1 +13,1 @@
- .on(11)
+ .on(Number(process.env.REPORTS_HOUR))
--- a/imports/startup/server/start-cron.js
+++ b/imports/startup/server/start-cron.js
@@ -8,0 +8,2 @@
+ console.log('ENV=', process.env.REPORTS_HOUR);
+ console.log(typeof process.env.REPORTS_HOUR);
<|file_sep|>imports/startup/server/start-cron.js
<|fim_prefix|>sole.log('ENV=', process.env.REPORTS_HOUR);
console.log(typeof process.env.REPORTS_HOUR);
return parser.recur()
.on(1)
.dayOfMonth()
.on(Number(process.env.REPORTS_HOUR))
.hour();
},
job() {
sendReports(undefined, EndOfMonthEnum.LAST_DAY);
},
});
SyncedCron.add({
name: 'Send reports for users with end of month on day 20',
schedule(parser) {
return parser.recur()
.on(21)
.dayOfMonth()
<<<<<<< CURRENT
<|user_cursor|> .on(11)
=======
<|fim_suffix|>
.hour();
},
job() {
sendReports(undefined, EndOfMonthEnum.DAY_20);
},
});
SyncedCron.start();
<|fim_middle|> | .on(Number(process.env.REPORTS_HOUR))
>>>>>>> UPDATED
| both |
<|file_sep|>validation-test/compiler_crashers/28216-swift-expr-propagatelvalueaccesskind.swift
// RUN: not --crash %target-swift-frontend %s -parse
// REQUIRES: asserts
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
let e=[[[]_
<|file_sep|>test/kitchen/cookbooks/apache2_test/files/default/tests/minitest/support/helpers.rb
module Helpers
module Apache
require 'chef/mixin/shell_out'
include Chef::Mixin::ShellOut
include MiniTest::Chef::Assertions
include MiniTest::Chef::Context
include MiniTest::Chef::Resources
def apache_config_parses?
acp = shell_out("#{node['apache']['binary']} -t")
...
<|file_sep|>website/app/application/core/projects/project/project.html
<|fim_prefix|><div>
<project-nav-bar
project="project.project"
projects="project.projects">
</project-nav-bar>
<div class="project-content">
<div ng-if="project.loaded" class="row">
<div ng-class="{'col-sm-12': project.isExpanded('help'), 'col-sm-4': !project.isExpanded('help') && project.showHelp()}"
<<<<<<< CURRENT
<|user_cursor|> ng-show="project.showHelp()">
=======
<|fim_suffix|>
<userguide></userguide>
</div>
<div ng-class="{'col-sm-8': project.showHelp(), 'col-sm-12': !project.showHelp()}"
ng-show="!project.isExpanded('help')">
<div ui-view></div>
</div>
</div>
</div>
</div>
<|fim_middle|> | ng-if="project.showHelp()">
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>examples/customserverexample.py
#!/usr/bin/env python3
from pythinclient.server import ThinServer
class CustomThinServer(BasicThinServer):
def __init__(self, port=65000, is_daemon=False):
super(BasicThinServer, self).__init__(port, is_daemon=is_daemon)
# add custom server hooks
self.add_hook('help', self.__server_h
...
<|file_sep|>.ci_support/migrations/pypy37-windows.yaml
migrator_ts: 1623865877
__migrator:
migration_number: 1
operation: key_add
primary_key: python
ordering:
python:
- 3.6.* *_cpython
- 3.7.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
- 3.6.* *_73_pypy
-
...
<|file_sep|>edit history
--- a/lib/ethereum/deployment.rb
+++ b/lib/ethereum/deployment.rb
@@ -42,1 +42,0 @@
- sleep step
<|file_sep|>lib/ethereum/deployment.rb
<|fim_prefix|>||= result["contractAddress"] if has_contract_address
has_contract_address && result["blockNumber"]
end
def deployed?
@valid_deployment ||= check_deployed
end
def wait_for_deployment(timeout: DEFAULT_TIMEOUT, step: DEFAULT_STEP)
start_time = Time.now
loop do
raise "Transaction #{@id} timed out." if ((Time.now - start_time) > timeout)
yield if block_given?
return true if deployed?
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
end
end
end
end
<|fim_middle|> | sleep step
>>>>>>> UPDATED
| both |
<|file_sep|>_posts/2014-10-27-google-glass-in-scala.md
---
layout: post
title: Simple application for google glass written in scala
date: 2014-10-27 23:11:00
keywords: scala, android, google glass
---
About a month ago I received google glass and only on last weekend I found a time for
developing something for it. I don't have a lot of
...
<|file_sep|>examples/README.md
# Dropbox API Client Examples
To run the examples in your development environment:
1. Clone this repo
2. Run `npm install`
3. Start the development server with `npm start`
4. Point your browser to <http://0.0.0.0:8000/>
<|file_sep|>packages/import-spec.sh
#!/bin/sh
echo "This script attempts to automate the process of modifying a spec file to meet the build system's expectations."
if [ x"$1" == "x" ]; then
echo "Please pass in a spec file as an argument when running this script."
fi
echo "Press enter to continue or ctrl-c to exit."
read
sed -i -e
<|file_sep|>src/ijulia.jl
<|fim_prefix|>using IJulia.CommManager
import IJulia.metadata
import JSON: json
import Base: writemime
<<<<<<< CURRENT
<|user_cursor|>if Pkg.installed("Reactive") >= v"0.1.9"
=======
<|fim_suffix|>
import Reactive: Signal, value, lift
function diff(s::Signal)
prev = value(s)
lift((x) -> begin
d = diff(prev, x)
prev = x
d
end, s)
end
function send_patch(comm, d)
jsonpatch = jsonfmt(d)
if !isempty(jsonpatch)
send_comm(comm, jsonpatch)
end
end
metadata{ns, name}(x::Signal{Elem{ns, name}}) = Dict()
function writemime{n
<|fim_middle|> | if Pkg.installed("Reactive") !=nothing && Pkg.installed("Reactive") >= v"0.1.9"
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>recipes/ti/ti-framework-components_2.25.02.06.bb
require ti-framework-components.inc
PV = "2_25_02_06"
SRC_URI[fctarball.md5sum] = "0ff9fc152633f6bfbe7ae98902833477"
SRC_URI[fctarball.sha256sum] = "1dc2994b867c76a474fd0c7c82c544d9163f661434ce994542bba9dd2997da6a"
<|file_sep|>scripts/find_duplicate_identifiers.py
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
"""
This scripts looks for duplicate identifiers in the "Identifiers" table.
The caller passes the name of one of the source ID indexes (e.g. MiroID),
and the script looks at every instance of that source ID. If a source ID
has multiple canonical ID
...
<|file_sep|>zinnia/static/zinnia/sass/mixins/_alert-box.scss
<|fim_prefix|>@mixin alert-box($color) {
$font-color: white;
color: $font-color;
background: $color;
border: 2px solid rgba(0,0,0,0.1);
border-color: lighten($color, 10%);
text-shadow: 0 -1px rgba(0,0,0,0.3);
<<<<<<< CURRENT
<|user_cursor|> @include border-radius(3px);
=======
<|fim_suffix|>
padding: 0.5em;
margin-bottom: 1em;
a {
font-weight: bold;
@include link-colors(
$font-color, $font-color, $font-color,
$font-color, $font-color);
}
}
<|fim_middle|> | border-radius: 3px;
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>src/whitelist/templates/whitelist/index.html
<|fim_prefix|>{% extends "home/base.html" %}
{% block body-content %}
<h1>Whitelist Request</h1>
<p>
</p>
<form method="post">
{% csrf_token %}
{{ form.non_field_errors }}
<div class="form-group">
<label for="id_ign">{{ form.ign.label }}</label>
{{ form.ign.errors }}
{{ form.ign }}
</div>
<div class="form-group">
<<<<<<< CURRENT
<|user_cursor|> <label for="id_ign">{{ form.email.label }}</label>
=======
<|fim_suffix|>
{{ form.email.errors }}
{{ form.email }}
</div>
<div class="form-group">
<input type="submit" value="Submit Request">
</div>
</form>
{% endblock %}
<|fim_middle|> | <label for="id_email">{{ form.email.label }}</label>
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>linguist/managers.py
# -*- coding: utf-8 -*-
import functools
from django.db import models
from django.db.query import QuerySet
from .models import Translation
from .mixins import LinguistMixin
from .utils.i18n import get_cache_key
def get_value_as_list(value):
"""
Ensure the given returned value is a list.
...
<|file_sep|>plasmapy/utils/tests/test_pytest_helpers.py
import pytest
from ..pytest_helpers import (
_function_call_string,
run_test_of_function,
)
def f(*args, **kwargs):
return None
# f, args, kwargs, expected
call_string_table = [
(f, (), {}, "f()"),
(f, (1), {}, "f(1)"),
(f, ('x'), {}, "f('x')"),
(f, (1, 'b', {}), {},
<|file_sep|>CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disabilit
...
<|file_sep|>.github/workflows/codesee-arch-diagram.yml
on:
push:
branches:
- master
pull_request_target:
types: [opened, synchronize, reopened]
name: CodeSee Map
jobs:
test_map_action:
runs-on: ubuntu-latest
continue-on-error: true
name: Run CodeSee Map Analysis
steps:
- name: checkout
id: checkout
...
<|file_sep|>elm_package.json
<|fim_prefix|>{
"version": "1.0.0",
"summary": "website for browsing packages and exploring documentation",
"repository": "https://github.com/elm-lang/package.elm-lang.org.git",
"license": "BSD3",
"source-directories": [
"frontend"
],
"exposed-modules": [],
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
"dependencies": {
"elm-lang/core": "1.0.0"
}
}
<|fim_middle|> | "native-modules": true,
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Security\Http\Tests\Authenticator\
<|file_sep|>edit history
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -5,3 +5,4 @@
- # Triggers the workflow on new releases
- release:
- types: [published]
+ # Triggers the workflow on tag push
+ push:
+ tags:
+ - "v*"
<|file_sep|>.github/workflows/deploy.yml
<|fim_prefix|>-pypi@v2
with:
# PyPI username
user: ${{ secrets.PYPI_USER }}
# PyPI password or API token
password: ${{ secrets.TEST_PYPI_PASS }}
# `setup.py` command to run ("true" is a shortcut for "clean sdist -d <dist_dir> bdist_wheel -d <dist_dir>")
build: clean sdist -d dist/
# `pip` command to run ("true" is a shortcut for "wheel -w <dist_dir> --no-deps .")
pip: true
<<<<<<< CURRENT
<|user_cursor|>
- name: Github Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
=======
<|fim_suffix|>
<|fim_middle|> |
- name: Github Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>core/admin/migrations/versions/f1393877871d_.py
""" Add default columns to the configuration table
Revision ID: f1393877871d
Revises: 546b04c886f0
Create Date: 2018-12-09 16:15:42.317104
"""
# revision identifiers, used by Alembic.
revision = 'f1393877871d'
down_revision = '546b04c886f0'
from alembic import op
import sqlalchemy as sa
def up
<|file_sep|>db/migrate/20170626074302_change_text_to_longtext.rb
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>class ChangeTextToLongtext < ActiveRecord::Migration[5.0]
def up
change_column :line_room_talks, :text, :text, null: false, limit: 16777215
end
def down
end
end
=======
<|fim_suffix|>
<|fim_middle|> | class ChangeTextToLongtext < ActiveRecord::Migration[5.0]
def up
change_column :line_room_talks, :text, :text, null: false, limit: 16777215
end
def down
end
end
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>edit history
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -12,1 +12,1 @@
- `verify_multi` method
+ `verify_multi` method #8
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -10,1 +10,1 @@
-* Avoid busy-looping (add time.sleep) when waiting for responses.
+* Avoid busy-looping (add time.sleep) when waiting for responses. #9
<|file_sep|>CHANGES.md
<|fim_prefix|>e server SSL
certificate look for the bundle in some common locations. #10
* Drop support for Python 2.5
* Use `requests` library for performing HTTP requests and turn SSL cert
verification on by default
* Avoid busy-looping (add time.sleep) when waiting for responses. #9
* Allow user to pass in value `0` for `sl` argument in `verify` and
`verify_multi` method #8
* Throw an exception inside `verify` and `verify_multi` method if timeout has
<<<<<<< CURRENT
<|user_cursor|> occurred or invalid status code is returned #7
=======
<|fim_suffix|>
* Add logging
<|fim_middle|> | occurred or invalid status code is returned #7
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>templates/contrail/userAuth.js.erb
<|fim_prefix|>/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
/****************************************************************************
* Specify the authentication parameters for admin user
****************************************************************************/
var auth = {};
auth.admin_user = '<%= @keystone_admin_user %>';
auth.admin_password = '<%= @keystone_admin_password %>';
auth.admin_token = '';
auth.admin_tenant_name = '<%= @keystone_admin_tenant_name %>';
module.exports = auth;
<|fim_middle|> |
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>site/docs/4.1/extend/icons.md
<|fim_prefix|>ce and suggestions for using external icon libraries with Bootstrap.
group: extend
---
Bootstrap doesn't include an icon library by default, but we have a handful of recommendations for you to choose from. While most icon sets include multiple file formats, we prefer SVG implementations for their improved accessibility and vector support.
## Preferred
We've tested and used these icon sets ourselves.
- [Font Awesome](https://fontawesome.com/)
<<<<<<< CURRENT
<|user_cursor|>- [Iconic](https://useiconic.com/open/)
=======
<|fim_suffix|>
- [Octicons](https://octicons.github.com/)
## More options
While we haven't tried these out, they do look promising and provide multiple formats—including SVG.
- [Bytesize](https://github.com/danklammer/bytesize-icons)
- [Google Material icons](https://material.io/icons/)
- [Ionicons](https://ionicons.com/)
- [Feather](https://feathericons.com/)
- [Dripicons](http://demo.amitjakhu.com/dripicons/)
- [Ikons](http://ikons.piotrkwiatkowski.co.uk/)
<|fim_middle|> | - [Iconic](https://github.com/iconic/open-iconic)
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>content/2015-09-11-servermon_coverage.md
Title: Servermon code coverage > 95%
Date: 2015-09-11 14:39:08
Category: servermon
Tags: servermon, monitoring, puppet, django
Hello everyone, happy to shared with you that I 've managed to get servermon's
code coverage finally above 95%. 96.37 to be exact. This means only ~100
relevant LOC are
<|file_sep|>plugins/zsh_reload/zsh_reload.plugin.zsh
zsh_cache=$HOME/.zsh_cache
mkdir -p $zsh_cache
# reload zshrc
function src()
{
autoload -U compinit zrecompile
compinit -d $zsh_cache/zcomp-$HOST
for f in $HOME/.zshrc $zsh_cache/zcomp-$HOST; do
zrecompile -p $f && rm -f $f.zwc.old
done
source ~/.zshrc
}
<|file_sep|>master/pbcs-hook.sh
#!/bin/sh
# Wrapper script to call git_buildbot.py hook script._
# Supply your connection credentials here.
GIT_BUILDBOT=/usr/share/buildbot/contrib/git_buildbot.py
MASTER="localhost:9989"
USER_NAME="pbchange"
AUTH=""
PROJECT="aes-pipe"
LOGFILE="/tmp/aes-pipe_git.log"
if [ ! -x ${GIT_BUILDBOT} ];
...
<|file_sep|>tests/allejo/stakx/Test/DataTransformer/DataTransformerManagerTest.php
<?php
/**
* @copyright 2018 Vladimir Jimenez
* @license https://github.com/allejo/stakx/blob/master/LICENSE.md MIT
*/
namespace allejo\stakx\Test\DataTransformer;
use allejo\stakx\DataTransformer\CsvTransformer;
use allejo\stakx\DataTransformer\DataTransformerManager;
use allejo\stakx\DataTr
...
<|file_sep|>edit history
--- a/src/Listabierta/Bundle/MunicipalesBundle/Resources/views/Candidacy/step4.html.twig
+++ b/src/Listabierta/Bundle/MunicipalesBundle/Resources/views/Candidacy/step4.html.twig
@@ -9,5 +9,1 @@
- <p>{{ form_errors(form) }}<p>
-
- {% if errors is defined and not errors is empty %}
- <div style="background-color:gold;color:black">{{ errors }}</div>
- {% endif %}
+ <p><div style="background-color:gold;color:black">{{ form_errors(form) }}</div><p>
<|file_sep|>src/Listabierta/Bundle/MunicipalesBundle/Resources/views/Candidacy/step4.html.twig
<|fim_prefix|>{% extends 'MunicipalesBundle:theme:layout.html.twig' %}
{% block title %}{{ 'candidacy.step4.html_title'|trans }}{% endblock %}
{% block content %}
<h1>{{ 'candidacy.step4.h1_title'|trans }}</h1>
{{ form_start(form, { 'attr': {'class': 'form_settings'}}) }}
<p><div style="background-color:gold;color:black">{{ form_errors(form) }}</div><p>
<p class="important">
<<<<<<< CURRENT
<|user_cursor|> <h3><p style="margin-right:5px;display:inline">http://municipales2015.listabierta.org/</p>{{ form_widget(form.address, { 'value' : default_address_slug }) }}</h3>
<span>{{ form_errors(form.address) }}</span>
=======
<|fim_suffix|>
</p>
<p>
</p>
<p>
{{ form_widget(form.continue, { 'label': 'candidacy.step4.continue'|trans }) }}
</p>
{{ form_rest(form) }}
{{ form_end(form) }}
{% endblock %}
<|fim_middle|> | <h3><p style="margin-right:5px;display:inline">http://municipales2015.listabierta.org/</p>{{ form_widget(form.address, { 'value' : default_address_slug }) }}</h3>
<span>{{ form_errors(form.address) }}</span>
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>coding-practice/Trie/count_using_wildcards.py
class Trie:
def __init__(self):
self.root = {}
self.end = '*'
def insert(self, word):
cur = self.root
for c in word:
if c in cur:
cur = cur[c]
else:
cur[c] = {}
cur = cur[c]
c
...
<|file_sep|>edit history
--- a/src/http-configurable.js
+++ b/src/http-configurable.js
@@ -27,1 +27,1 @@
-httpConfigurable.thenApply = function(onFulfilled, onRejected, onProgress) {
+httpConfigurable.then = function(onFulfilled, onRejected, onProgress) {
<|file_sep|>src/http-configurable.js
<|fim_prefix|> return this;
};
httpConfigurable.contentType = function(mimeType) {
return this.header('Content-Type', mimeType);
};
httpConfigurable.accept = function(mimeType) {
return this.header('Accept', mimeType);
};
httpConfigurable.then = function(onFulfilled, onRejected, onProgress) {
var applies = {
onFulfilled: onFulfilled,
onRejected: onRejected,
onProgress: onProgress
};
this.thenApplies.push(applies);
return this;
};
<<<<<<< CURRENT
<|user_cursor|>httpConfigurable.thenApply = httpConfigurable.then;
=======
<|fim_suffix|>
httpConfigurable.mergeThenApplies = function(_thenApplies) {
_.extend(this.thenApplies, _thenApplies);
};
module.exports = httpConfigurable;
<|fim_middle|> | httpConfigurable.thenApply = httpConfigurable.then;
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>gem/management/commands/add_images_to_articles.py
from __future__ import absolute_import, unicode_literals
import csv
from babel import Locale
from django.core.management.base import BaseCommand
from wagtail.wagtailimages.tests.utils import Image
from molo.core.models import (
Languages, Tag, ArticlePage, ArticlePageTags, Main, SectionIndexPag
...
<|file_sep|>edit history
--- a/package.json
+++ b/package.json
@@ -6,1 +6,1 @@
- "version": "1.3.1",
+ "version": "1.3.2",
<|file_sep|>package.json
<|fim_prefix|>a-embed-server",
"description": "Node oEmbed proxy that supports a few other non-oEmbed services and JSONP",
"keywords": ["oembed", "media", "proxy", "thumbnails"],
"author": "amix",
"version": "1.3.2",
"repository": "https://github.com/Doist/media-embed-server",
"licenses": [{
"type": "MIT",
"url": "http://opensource.org/licenses/mit-license.php"
}],
"dependencies": {
<<<<<<< CURRENT
<|user_cursor|> "media-parser": "1.2.0",
=======
<|fim_suffix|>
"express": "4.0.0",
"commander": ">=0.6.0",
"async": ">=0.7.0",
"request": ">=2.34.0",
"partial": ">=0.0.3"
},
"engines": {
"node": ">=0.2.0",
"meida-parser": ">=1.0.0",
"commander": ">=0.6.0"
},
"directories": {
"lib" : "./lib"
},
"main" : "./lib/media-embed-server",
"bin": {
"media-embed-server":
<|fim_middle|> | "media-parser": "1.2.1",
>>>>>>> UPDATED
| both |
<|file_sep|>edit history
--- a/package.json
+++ b/package.json
@@ -3,1 +3,1 @@
- "version": "2.35.0",
+ "version": "2.36.0",
<|file_sep|>package.json
<|fim_prefix|>",
"url": "git+https://github.com/fleg/nw-chromedriver.git"
},
"contributors": [
{
"name": "fleg"
},
{
"name": "Kieran Simpson"
}
],
"license": "MIT",
"homepage": "https://github.com/fleg/nw-chromedriver#readme",
"keywords": [
"nw",
"nw.js",
"chromedriver"
],
"engines": {
"node": ">= 0.10.48"
},
"dependencies": {
"nw-chromedriver-installer": "latest"
},
"chromeDriver": {
<<<<<<< CURRENT
<|user_cursor|> "nwVersion": "0.30.0"
=======
<|fim_suffix|>
}
}
<|fim_middle|> | "nwVersion": "0.30.0"
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>COURSE/ML/lab2/lab2_vedio.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
import pandas as pd
from sklearn.preprocessing import normalize
from sklearn.neighbors import KNeighborsClassifier as KNN
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import KFold
from scipy.spatial.distance imp
...
<|file_sep|>week-4/address/my_solution.rb
# Format an Address
# I worked on this challenge [by myself, with: ].
def make_address (street, city, state, zip)
return 'You live at ' + street + ', in the beautiful city of ' + city + ', ' + state + '. Your zip is ' + zip + '.'
end
# Your Solution Below
<|file_sep|>edit history
--- a/lib/timer/timer.rb
+++ b/lib/timer/timer.rb
@@ -8,3 +8,1 @@
-
- # Play a chime when finished
- `say timer done`
+ play_done_chime
<|file_sep|>lib/timer/timer.rb
<|fim_prefix|>es, and a hash of messages to be said
def self.start(minutes, messages=nil)
alert_start(minutes)
count_down(minutes, messages)
play_done_chime
end
def self.count_down(starting_with, messages)
starting_with.downto 1 do |i|
sleep 60
puts i
if messages && messages[i]
`say #{messages[i]}`
end
end
end
def self.alert_start(minutes)
puts "Starting timer for #{minutes} minutes..."
end
<<<<<<< CURRENT
<|user_cursor|>
def self.play_done_chime
`say timer done`
end
=======
<|fim_suffix|>
end
<|fim_middle|> |
def self.play_done_chime
`say timer done`
end
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>scripts/try.typelevel.sh
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>#!/usr/bin/env sh
test -e ~/.coursier/coursier || ( \
mkdir -p ~/.coursier && \
curl -Lso ~/.coursier/coursier https://git.io/vgvpD && \
chmod +x ~/.coursier/coursier \
)
~/.coursier/coursier launch -q -P \
com.lihaoyi:ammonite_2.12.4:1.0.3 \
-E org.scala-lang:scala-library \
-E org.scala-lang:scala-compiler \
-E org.scala-lang:scala-reflect \
org.typelevel:scala-compiler:2.12.4-bin-typelevel-4 \
org.typelevel:scala-library:2.12.4-bin-typelevel-4 \
org.typelevel:scala-reflect:2.12.4-bin-typelevel-4 \
is.cir:ciris-core_2.12:0.6.0 \
is.cir:ciris-enumeratum_2.12:0.6.0 \
is.cir:ciris-generic_2.12:0.6.0 \
is.cir:ciris-refined_2.12:0.6.0 \
is.cir:ciris-spire_2.12:0.6.0 \
is.cir:ciris-squants_2.12:0.6.0 \
-- --predef-code "\
repl.compiler.settings.YliteralTypes.value = true;\
import ciris._,\
ciris.syntax._,\
ciris.enumeratum._,\
ciris.generic._,\
ciris.refined._,\
ciris.refined.syntax._,\
ciris.spire._,\
ciris.squants._\
" < /dev
=======
<|fim_suffix|>
/tty
<|fim_middle|> | #!/usr/bin/env sh
test -e ~/.coursier/coursier || ( \
mkdir -p ~/.coursier && \
curl -Lso ~/.coursier/coursier https://git.io/vgvpD && \
chmod +x ~/.coursier/coursier \
)
~/.coursier/coursier launch -q -P \
com.lihaoyi:ammonite_2.12.4:1.0.3 \
-E org.scala-lang:scala-library \
-E org.scala-lang:scala-compiler \
-E org.scala-lang:scala-reflect \
org.typelevel:scala-compiler:2.12.4-bin-typelevel-4 \
org.typelevel:scala-library:2.12.4-bin-typelevel-4 \
org.typelevel:scala-reflect:2.12.4-bin-typelevel-4 \
is.cir:ciris-core_2.12:0.6.0 \
is.cir:ciris-enumeratum_2.12:0.6.0 \
is.cir:ciris-generic_2.12:0.6.0 \
is.cir:ciris-refined_2.12:0.6.0 \
is.cir:ciris-spire_2.12:0.6.0 \
is.cir:ciris-squants_2.12:0.6.0 \
-- --predef-code "\
repl.compiler.settings.YliteralTypes.value = true;\
import ciris._,\
ciris.syntax._,\
ciris.enumeratum._,\
ciris.generic._,\
ciris.refined._,\
ciris.refined.syntax._,\
ciris.spire._,\
ciris.squants._\
" < /dev>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>spec/integration/haproxy_spec.rb
require 'spec_helper'
require 'httparty'
RSpec.describe "haproxy" do
[0, 1].each do |job_index|
context "when the job rmq/#{job_index} is down" do
before(:all) do
bosh.stop("rmq/#{job_index}")
end
after(:all) do
bosh.start("rmq/#{job_index}")
end
<|file_sep|>opensync/plugin/opensync_plugin_connection_internals.h
/*
* libopensync - A synchronization framework
* Copyright (C) 2008 Daniel Gollub <dgollub@suse.de>
*
* 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 Foundation; either
*
...
<|file_sep|>edit history
--- a/README.md
+++ b/README.md
@@ -25,2 +26,2 @@
- app = Flask(__name__)
- ldap = LDAP(app)
+app = Flask(__name__)
+ldap = LDAP(app)
--- a/README.md
+++ b/README.md
@@ -22,2 +22,3 @@
- from flask import Flask
- from flask.ext.simpleldap import LDAP
+```python
+from flask import Flask
+from flask.ext.simpleldap import LDAP
<|file_sep|>README.md
<|fim_prefix|>-SimpleLDAP:
$ pip install flask-simpleldap
Flask-SimpleLDAP depends, and will install for you, recent versions of Flask
(0.9 or later) and python-ldap. Flask-SimpleLDAP is compatible
with and tested on Python 2.6 and 2.7.
Next, add a ``LDAP`` instance to your code and at least the three
required configuration options:
```python
from flask import Flask
from flask.ext.simpleldap import LDAP
app = Flask(__name__)
ldap = LDAP(app)
<<<<<<< CURRENT
<|user_cursor|> app.config['LDAP_BASE_DN'] = 'OU=users,dc=example,dc=org'
app.config['LDAP_USERNAME'] = 'CN=user,OU=Users,DC=example,DC=org'
app.config['LDAP_PASSWORD'] = 'password'
=======
<|fim_suffix|>
@app.route('/ldap')
@ldap.login_required
def ldap_protected():
return 'Success!'
Check the [examples](examples/) folder for a more complex example using LDAP groups.
Resources
---------
- [Documentation](http://flask-simpleldap.readthedocs.org/en/latest/)
- [PyPI](https://pypi.python.org/pypi/Flask-SimpleLDAP)
<|fim_middle|> | app.config['LDAP_BASE_DN'] = 'OU=users,dc=example,dc=org'
app.config['LDAP_USERNAME'] = 'CN=user,OU=Users,DC=example,DC=org'
app.config['LDAP_PASSWORD'] = 'password'
>>>>>>> UPDATED
| both |
<|file_sep|>app/proguard-rules.txt
-dontwarn org.apache.http.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn com.google.android.gms.**
-dontwarn com.android.volley.toolbox.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn com.google.android.gms.**
-dontwarn android.support.v7.**
-dontwarn sun.**
-dontwarn java.awt.*
<|file_sep|>edit history
--- a/db_logger.py
+++ b/db_logger.py
@@ -8,2 +9,1 @@
-conn = mysql.connector.connect(host=config.get('db_logger.host'), user=config.get('db_logger.username'), password=config.get('db_logger.password'), database=config.get('db_logger.database'))
-cur = conn.cursor()
+
--- a/db_logger.py
+++ b/db_logger.py
@@ -6,0 +6,1 @@
+connected = False
<|file_sep|>db_logger.py
<|fim_prefix|>import mysql.connector
import config
import threading
enabled = False
connected = False
db_lock = threading.Lock()
def log(message, kind):
if enabled:
with db_lock:
<<<<<<< CURRENT
<|user_cursor|> global conn, cur, connected
if not connected:
conn = mysql.connector.connect(host=config.get('db_logger.host'), user=config.get('db_logger.username'), password=config.get('db_logger.password'), database=config.get('db_logger.database'))
cur = conn.cursor()
connected = True
=======
<|fim_suffix|>
cur.execute('INSERT INTO vkbot_logmessage VALUES (NULL, %s, %s, NOW())', (message, kind))
conn.commit()
<|fim_middle|> | global conn, cur, connected
if not connected:
conn = mysql.connector.connect(host=config.get('db_logger.host'), user=config.get('db_logger.username'), password=config.get('db_logger.password'), database=config.get('db_logger.database'))
cur = conn.cursor()
connected = True
>>>>>>> UPDATED
| no_edit_last_hunk |
<|file_sep|>Utilities.py
<|fim_prefix|>ard if at full.
combo = False # Relevant for Rogues, where Combo can change how cards work
turn = 0
turnOffset = 0 # Only tell the user what's happening before their turn
us = '0' # player id
them = '0' # player id
numMinions = 0
reset()
def ourTurn():
global turn, turnOffset
return (turn + 1*turnOffset)%2 == 0
def wentFirst(truth):
global turnOffset
if truth:
logging.info("You are going first")
<<<<<<< CURRENT
<|user_cursor|> Hand.hand = [Hand.card('Mulliganned') for _ in range(4)] + [Hand.card(-1, note='The Coin')]
=======
<|fim_suffix|>
turnOffset = 1
else:
logging.info("You are going second")
Hand.hand = [Hand.card('Mulliganned') for _ in range(3)]
turnOffset = 0
<|fim_middle|> | Hand.hand = [Hand.card('Mulliganned') for _ in range(4)] + [Hand.card('The Coin')]
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>.github/workflows/size-label.yml
name: size-label
on: pull_request
jobs:
size-label:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/size-label-action@d909487e1a0057d85c638f1ddefdb315a63d2e98"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
<|file_sep|>dotfiles/.vim/template/c/base-main-bench.c
#include <stdio.h>
#include <time.h>
static long n = 10000;
int
main(int argc, char* argv[]) {
long i;
clock_t t;
t = clock();
for (i = 0; i < n; ++i) {
{{_cursor_}}
}
printf("%ld\n", clock() - t);
return 0;
}
<|file_sep|>edit history
--- a/juxtapose.gemspec
+++ b/juxtapose.gemspec
@@ -7,1 +7,1 @@
- spec.authors = ["Joe Lind", "Thomas Mayfield"]
+ spec.authors = ["Joe Lind", "Thomas Mayfield", "Jeffrey Chupp"]
<|file_sep|>juxtapose.gemspec
<|fim_prefix|>re File.expand_path('../lib/juxtapose/version', __FILE__)
Gem::Specification.new do |spec|
spec.name = "juxtapose"
spec.version = Juxtapose::VERSION
spec.authors = ["Joe Lind", "Thomas Mayfield", "Jeffrey Chupp"]
spec.email = ["thomas@terriblelabs.com"]
spec.description = %q{Screenshot-based assertions for RubyMotion projects}
spec.summary = %q{Screenshot-based assertions for RubyMotion projects}
<<<<<<< CURRENT
<|user_cursor|> spec.homepage = ""
=======
<|fim_suffix|>
spec.license = "MIT"
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
spec.add_dependency "sinatra", "~> 1.4"
spec.add_dependency "haml"
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependen
<|fim_middle|> | spec.homepage = "https://github.com/terriblelabs/juxtapose"
>>>>>>> UPDATED
| both |
<|file_sep|>app/apps/themes/hub_theme/views/layouts/article.html.erb
<|fim_prefix|><!DOCTYPE html>
<html lang="en">
<head>
<!-- META SECTION -->
<title>Trenton Business Hub</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- END META SECTION -->
<script src="https://use.fontawesome.com/d41d269865.js"></script>
<<<<<<< CURRENT
<|user_cursor|>
=======
<|fim_suffix|>
<%= stylesheet_link_tag theme_asset_path("css/main") %>
<%= javascript_include_tag theme_asset_path("js/main.js") %>
<%= raw the_head %>
</head>
<body>
<div class="wrap">
<div class="header"><%= render "partials/nav" %></div>
<div class="event-card-section"><%= render "partials/article" %></div>
<div class="sidebar"><%= render "partials/newsclipping" %></div>
<div class="clear"></div>
<%= render "partials/fo
<|fim_middle|> | <link href="https://fonts.googleapis.com/css?family=Exo:600" rel="stylesheet">
>>>>>>> UPDATED
| no_related_no_history |
<|file_sep|>examples/ultracoldNeutralPlasma.py
import ucilib.Sim as Sim
import ucilib.BorisUpdater as BorisUpdater
import numpy as np
# Some helpful constants.
fund_charge = 1.602176565e-19
# Mass of Be^+ ions.
ion_mass = 8.9465 * 1.673e-27
# Create a simulation with n particles.
n = 10000
s = Sim.Sim()
s.ptcls.set_nptcls(n)
# 1/e radius
...
<|file_sep|>edit history
--- a/httpplease-promises.js
+++ b/httpplease-promises.js
@@ -9,1 +9,1 @@
- return (root.httppleasepromises = factory(es6Promise));
+ return (root.httppleasepromises = factory(es6Promise.Promise));
<|file_sep|>httpplease-promises.js
<|fim_prefix|>/*globals define */
'use strict';
var root = this; // jshint ignore:line
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['es6-promise'], function (es6Promise) {
return (root.httppleasepromises = factory(es6Promise.Promise));
});
} else if (typeof exports === 'object') {
<<<<<<< CURRENT
<|user_cursor|> module.exports = factory(require('es6-promise'));
=======
<|fim_suffix|>
} else {
root.httppleasepromises = factory(root.Promise);
}
}(function (es6Promise) {
var Promise = es6Promise.Promise;
return {
processRequest: function (req) {
var resolve, reject,
oldOnload = req.onload,
oldOnerror = req.onerror,
promise = new Promise(function (a, b) {
resolve = a;
reject = b;
});
<|fim_middle|> | module.exports = factory(require('es6-promise').Promise);
>>>>>>> UPDATED
| both |
<|file_sep|>pirate_add_shift_recurrence.py
#!/usr/bin/python
import sys
import os
from tasklib.task import Task, TaskWarrior
time_attributes = ('wait', 'until', 'scheduled')
def is_new_local_recurrence_child_task(task):
# Do not affect tasks not spun by recurrence
if not task['parent']:
return False
# Newly created re
<|file_sep|>css/main.css
body {
margin: 60px auto;
width: 70%;
}
nav ul, footer ul {
font-family:'Helvetica', 'Arial', 'Sans-Serif';
padding: 0px;
list-style: none;
font-weight: bold;
}
nav ul li, footer ul li {
display: inline;
margin-right: 20px;
}
a {
text-decoration: none;
color:
...
<|file_sep|>SetProfil.cs
//-----------------------------------------------------------------------------------
// PCB-Investigator Automation Script
// Created on 2014-04-24
// Autor support@easylogix.de
// www.pcb-investigator.com
// SDK online reference http://www.pcb-investigator.com/sites/default/files/documents/In
...
<|file_sep|>.travis.yml
<|fim_prefix|>language: php
php:
- 5.6
- 7.0
- 7.1
env:
global:
- COMPOSER_ROOT_VERSION=dev-master
matrix:
- COMPOSER_OPTS=""
- COMPOSER_OPTS="--prefer-lowest"
install:
<<<<<<< CURRENT
<|user_cursor|> - composer self-update
=======
<|fim_suffix|>
- composer update $COMPOSER_OPTS
script:
- phpunit
- ./tests/lint.sh
git:
depth: 5
dist: trusty
sudo: false
<|fim_middle|> | - composer self-update --snapshot
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>push/tests/test_urls.py
# coding=utf-8
from django.test.client import Client
from django.test import TestCase
from push.views import *
class UrlResolveTests(TestCase):
def test_url_index(self):
c = Client()
response = c.get('/')
self.assertEqual(response.status_code, 302)
def test_url_ind
<|file_sep|>watson/apps.py
<|fim_prefix|><<<<<<< CURRENT
<|user_cursor|>from django.apps import AppConfig
class WatsonAppConfig(AppConfig):
"""App configuration for watson."""
name = 'watson'
default_auto_field = 'django.db.models.AutoField'
=======
<|fim_suffix|>
<|fim_middle|> | from django.apps import AppConfig
class WatsonAppConfig(AppConfig):
"""App configuration for watson."""
name = 'watson'
default_auto_field = 'django.db.models.AutoField'
>>>>>>> UPDATED
| no_edit_random |
<|file_sep|>test/fbg_properties.json
{"os4300" :
{"sensor type" : "temperature",
"position" : 0,
"part number" : "os4310-1536-1FC-1-FC-S",
"serial number" : "B312914",
"nominal wavelength" : 1535.973,
"temperature at nominal wavelength" : 23.4,
"wavelength offset" : 8.0146,
"calibration coeff. 3"
<|file_sep|>docker/aliases.zsh
function drmi() {
echo "Deleting $1 from the docker index..."
curl --silent -u "$DOCKER_USERNAME:$DOCKER_PASSWORD" -XDELETE https://index.docker.io/v1/repositories/$1/ > /dev/null
echo "Deleted!"
}
<|file_sep|>sources/US/NE/mountainlion.json
{
"name" : "NE Mountain Lion Units",
"url": "http://data.outdoornebraska.gov/datasets/fb8c45017f0e4072b487bc1214bfe808_9.zip",
"species": [
"Mountain Lion"
],
"attribution": "Nebraska Game and Parks Commission",
"properties": {
"id": "OBJECTID",
"name": "UnitName"
<|file_sep|>test/layers_test.py
import theanets
import numpy as np
class TestLayer:
def test_build(self):
layer = theanets.layers.build('feedforward', nin=2, nout=4)
assert isinstance(layer, theanets.layers.Layer)
class TestFeedforward:
def test_create(self):
l = theanets.layers.Feedforward(nin=
...
<|file_sep|>src/com/robrua/orianna/type/core/common/GameMap.java
<|fim_prefix|>package com.robrua.orianna.type.core.common;
import java.util.HashMap;
import java.util.Map;
public enum GameMap {
<<<<<<< CURRENT
<|user_cursor|> HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELINE_ORIGINAL(
=======
<|fim_suffix|>
4);
private static final Map<Long, GameMap> IDs = new HashMap<>();
static {
for(final GameMap m : GameMap.values()) {
IDs.put(m.ID, m);
}
}
/**
* Gets the map for a specified ID
*
* @param ID
* the map ID
* @return the map type
*/
public static GameMap forID(final long ID) {
return IDs.get(ID);
}
private fina
<|fim_middle|> | BUTCHERS_BRIDGE(14), HOWLING_ABYSS(12), SUMMONERS_RIFT(11), SUMMONERS_RIFT_AUTUMN(2), SUMMONERS_RIFT_SUMMER(1), THE_CRYSTAL_SCAR(8), THE_PROVING_GROUNDS(3), TWISTED_TREELINE(10), TWISTED_TREELINE_ORIGINAL(
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>CONTRIBUTING.md
Firstly, thanks!
# Style
We try to keep the style rules that need memorizing for this project to
a minimum. Basically:
* [stylish-haskell][1] is the final arbiter of all formatting issues.
Running `make format` will apply it to the entire source tree, using
this project's rules.
* Generally,
...
<|file_sep|>tests/src/test/scala/spire/math/interval/BoundTest.scala
package spire.math.interval
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import org.scalatest.{Matchers, PropSpec}
import spire.laws.arb._
import spire.syntax.eq._
import spire.math.Rational
class BoundTest extends PropSpec with Matchers with GeneratorDrivenPropertyChecks {
property(
<|file_sep|>_posts/2015-08-26-angular-testing-lessons-learned.md
---
layout: post
title: AngularJS Testing Lessons Learned
description: Recently, our company encountered a significant (28%) complaint rate spike
date: 2015-08-26 14:13:00
author: Chris Trevino
platform: Medium
original: https://medium.com/@darthtrevino/angularjs-testing-lessons-learned-14a5d1e17
<|file_sep|>validation-test/IDE/crashers/034-swift-specializedprotocolconformance-gettypewitnesssubstanddecl.swift
// RUN: not --crash %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
struct A<c{class a<A{enum S:CollectionType
#^A^#
<|file_sep|>.travis.yml
<|fim_prefix|>language: java
sudo: false
install: true
# whitelist
branches:
only:
- master
- develop
jdk:
<<<<<<< CURRENT
<|user_cursor|> - openjdk11
=======
<|fim_suffix|>
script:
- mvn package -B -e -V
cache:
directories:
- '$HOME/.m2/repository'
notifications:
email: false
<|fim_middle|> | - openjdk12
>>>>>>> UPDATED
| dummy_related_files |
<|file_sep|>Install-VsCode.ps1
<|fim_prefix|>###
### Install Visual Studio Code via Chocolatey and my preferred extensions
###
$Extensions = @(
'ms-dotnettools.csharp',
'github.codespaces',
'ms-vscode.powershell',
'ms-azuretools.vscode-docker',
'eamodio.gitlens',
'ms-mssql.mssql',
'esbenp.prettier-vscode',
<<<<<<< CURRENT
<|user_cursor|> 'ms-azuretools.vscode-cosmosdb'
=======
<|fim_suffix|>
)
choco install vscode
foreach($Extension in $Extensions)
{
Write-Output "Installing VSCode Extension $Extension"
& "C:\Program Files\Microsoft VS Code\bin\code.cmd" --install-extension $Extension
}
<|fim_middle|> | 'ms-azuretools.vscode-cosmosdb',
'savranweb.cosmosdbsqlapi'
>>>>>>> UPDATED
| no_related_no_history |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 63