commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f441dc502ef5d83147feeb06981df7bc7257565 | src/manifest.json | src/manifest.json | {
"name": "Picture-in-Picture",
"description": "Watch video using Picture-in-Picture",
"version": "1.1",
"icons": {
"128": "assets/icon128.png"
},
"background": {
"persistent": false,
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"19": "assets/icon19.png",
... | {
"name": "Picture-in-Picture Extension (by Google)",
"description": "Watch video using Picture-in-Picture",
"version": "1.1",
"icons": {
"128": "assets/icon128.png"
},
"background": {
"persistent": false,
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"19": ... | Add "(by Google") to name | Add "(by Google") to name
| JSON | apache-2.0 | GoogleChromeLabs/picture-in-picture-chrome-extension,GoogleChromeLabs/picture-in-picture-chrome-extension | json | ## Code Before:
{
"name": "Picture-in-Picture",
"description": "Watch video using Picture-in-Picture",
"version": "1.1",
"icons": {
"128": "assets/icon128.png"
},
"background": {
"persistent": false,
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"19": "asset... | {
- "name": "Picture-in-Picture",
+ "name": "Picture-in-Picture Extension (by Google)",
"description": "Watch video using Picture-in-Picture",
"version": "1.1",
"icons": {
"128": "assets/icon128.png"
},
"background": {
"persistent": false,
"scripts": ["background.js"]
},
... | 2 | 0.083333 | 1 | 1 |
8350f22c0f0a7fa5ae57e613621c111df4e48d7d | desktop/src/main/java/bisq/desktop/common/view/CachingViewLoader.java | desktop/src/main/java/bisq/desktop/common/view/CachingViewLoader.java | /*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the ... | /*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is distributed in the ... | Set correct type of cache map | Set correct type of cache map
| Java | agpl-3.0 | bitsquare/bitsquare,bitsquare/bitsquare,bisq-network/exchange,bisq-network/exchange | java | ## Code Before:
/*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is dis... | /*
* This file is part of Bisq.
*
* Bisq is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* Bisq is d... | 3 | 0.066667 | 2 | 1 |
0cffaa75d8f7dc0b44add26bd97495abcf37485b | cmake/project_version.cmake | cmake/project_version.cmake | find_package(Git)
if(GIT_EXECUTABLE)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --tags --dirty
OUTPUT_VARIABLE PROJECT_VERSION
ERROR_QUIET
)
# v{VERSION}-{N}-g{HASH} -> {VERSION}-{HASH}
string(STRIP ${PROJECT_VERSION} PROJECT_VERSION)
string(REGEX... | find_package(Git)
if(GIT_EXECUTABLE)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --tags --dirty
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE PROJECT_VERSION
ERROR_QUIET
)
# v{VERSION}-{N}-g{HASH} -> {VERSION}-{HASH}
string(STRIP ... | Fix version detection for out-of-source builds | Fix version detection for out-of-source builds
| CMake | mit | svens/sal,svens/sal | cmake | ## Code Before:
find_package(Git)
if(GIT_EXECUTABLE)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --tags --dirty
OUTPUT_VARIABLE PROJECT_VERSION
ERROR_QUIET
)
# v{VERSION}-{N}-g{HASH} -> {VERSION}-{HASH}
string(STRIP ${PROJECT_VERSION} PROJECT_VERSION... | find_package(Git)
if(GIT_EXECUTABLE)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --tags --dirty
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE PROJECT_VERSION
ERROR_QUIET
)
# v{VERSION}-{N}-g{HASH} -> {VERSION}-{H... | 1 | 0.055556 | 1 | 0 |
c1cf84504f1a4a0c41ea764c9f86e64158193f54 | user_api/com/mdi/storage/collection_definitions_mapping.rb | user_api/com/mdi/storage/collection_definitions_mapping.rb |
module UserApis
module Mdi
module Storage
# @api private
class CollectionDefinitionsMappingClass
def initialize(apis)
@user_apis = apis
end
def user_api
@user_apis
end
# return a collection definition structs array
def get_all()... |
module UserApis
module Mdi
module Storage
# @api private
class CollectionDefinitionsMappingClass
def initialize(apis)
@user_apis = apis
end
def user_api
@user_apis
end
# return a collection definition structs array
def get_all()... | Add method to get definitions for an asset | Add method to get definitions for an asset
| Ruby | mit | mobile-devices/ragent_bay,mobile-devices/ragent_bay,mobile-devices/ragent_bay,mobile-devices/ragent_bay | ruby | ## Code Before:
module UserApis
module Mdi
module Storage
# @api private
class CollectionDefinitionsMappingClass
def initialize(apis)
@user_apis = apis
end
def user_api
@user_apis
end
# return a collection definition structs array
... |
module UserApis
module Mdi
module Storage
# @api private
class CollectionDefinitionsMappingClass
def initialize(apis)
@user_apis = apis
end
def user_api
@user_apis
end
# return a collection definition... | 13 | 0.481481 | 12 | 1 |
c19e0bea9f17d44dc1d26f1ee7bbaa2f2a4dc257 | lib/filepicker/rails/policy.rb | lib/filepicker/rails/policy.rb | require 'base64'
require 'openssl'
module Filepicker
module Rails
class Policy
attr_accessor :expiry, :call, :handle, :maxsize, :minsize
def initialize(options = {})
[:expiry, :call, :handle, :maxsize, :minsize].each do |input|
send("#{input}=", options[input]) unless options[input... | require 'base64'
require 'openssl'
module Filepicker
module Rails
class Policy
attr_accessor :expiry, :call, :handle, :maxsize, :minsize, :path
def initialize(options = {})
[:expiry, :call, :handle, :maxsize, :minsize, :path].each do |input|
send("#{input}=", options[input]) unless... | Add support for new path option | Add support for new path option | Ruby | mit | SchoolKeep/filepicker-rails,SchoolKeep/filepicker-rails,SchoolKeep/filepicker-rails,Ink/filepicker-rails,munirent/filepicker-rails,Ink/filepicker-rails,munirent/filepicker-rails,munirent/filepicker-rails,Ink/filepicker-rails | ruby | ## Code Before:
require 'base64'
require 'openssl'
module Filepicker
module Rails
class Policy
attr_accessor :expiry, :call, :handle, :maxsize, :minsize
def initialize(options = {})
[:expiry, :call, :handle, :maxsize, :minsize].each do |input|
send("#{input}=", options[input]) unle... | require 'base64'
require 'openssl'
module Filepicker
module Rails
class Policy
- attr_accessor :expiry, :call, :handle, :maxsize, :minsize
+ attr_accessor :expiry, :call, :handle, :maxsize, :minsize, :path
? +++++++
... | 6 | 0.162162 | 3 | 3 |
eb3bc986f8b48cb3d59a60c73bdbc4244aa10922 | src/test/steps/gvm/aeroplane_mode_steps.groovy | src/test/steps/gvm/aeroplane_mode_steps.groovy | package gvm
import cucumber.runtime.PendingException
import static cucumber.api.groovy.EN.*
final SERVICE_DOWN = "http://localhost:0"
final FAKE_JDK_PATH = "/path/to/my/openjdk"
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(gvmBaseEnv, [GVM_DIR: gvmDirEnv, GVM_SERVICE: SERVICE_DOWN, JAVA_HOME... | package gvm
import static cucumber.api.groovy.EN.And
import static cucumber.api.groovy.EN.Given
final SERVICE_DOWN = "http://localhost:0"
final FAKE_JDK_PATH = "/path/to/my/openjdk"
And(~'^offline mode is disabled$') {->
forceOffline = false
}
And(~'^offline mode is enabled$') {->
forceOffline = true
}
Giv... | Introduce forced offline mode step defs, extract environment initialisation to private method. | Introduce forced offline mode step defs, extract environment initialisation to private method.
| Groovy | apache-2.0 | shanman190/sdkman-cli,nobeans/gvm-cli,gvmtool/gvm-cli,skpal/sdkman-cli,jbovet/gvm,GsusRecovery/sdkman-cli,DealerDotCom/gvm-cli,sdkman/sdkman-cli,skpal/sdkman-cli,GsusRecovery/sdkman-cli,nobeans/gvm-cli,DealerDotCom/gvm-cli,busches/gvm-cli | groovy | ## Code Before:
package gvm
import cucumber.runtime.PendingException
import static cucumber.api.groovy.EN.*
final SERVICE_DOWN = "http://localhost:0"
final FAKE_JDK_PATH = "/path/to/my/openjdk"
Given(~'^the internet is not reachable$') {->
bash = new BashEnv(gvmBaseEnv, [GVM_DIR: gvmDirEnv, GVM_SERVICE: SERVICE... | package gvm
- import cucumber.runtime.PendingException
-
- import static cucumber.api.groovy.EN.*
? ^
+ import static cucumber.api.groovy.EN.And
? ^^^
+ import static cucumber.api.groovy.EN.Given
final SERVICE_DOWN = "http://localhos... | 37 | 1.193548 | 20 | 17 |
a2bb23d7f717d19d3c6d4b2aabbd9fb6d0425fd6 | mmtf-serialization/src/main/java/org/rcsb/mmtf/serialization/MessagePackSerialization.java | mmtf-serialization/src/main/java/org/rcsb/mmtf/serialization/MessagePackSerialization.java | package org.rcsb.mmtf.serialization;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.msgpack.jackson.dataformat.MessagePackFactory;
import org.rcsb.mmtf.dataholders.MmtfStructure;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson... | package org.rcsb.mmtf.serialization;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.msgpack.jackson.dataformat.MessagePackFactory;
import org.rcsb.mmtf.dataholders.MmtfStructure;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson... | Update to the serialization module - only construct object mapper once. | Update to the serialization module - only construct object mapper once.
| Java | apache-2.0 | pwrose/mmtf-java,josemduarte/mmtf-java,rcsb/mmtf-java | java | ## Code Before:
package org.rcsb.mmtf.serialization;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.msgpack.jackson.dataformat.MessagePackFactory;
import org.rcsb.mmtf.dataholders.MmtfStructure;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.f... | package org.rcsb.mmtf.serialization;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.msgpack.jackson.dataformat.MessagePackFactory;
import org.rcsb.mmtf.dataholders.MmtfStructure;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import... | 15 | 0.357143 | 12 | 3 |
d55ad9757411f41f6df2aceb3facd6bb332c605e | .travis.yml | .travis.yml | language: python
sudo: false
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6-dev"
- "nightly"
- "pypy"
- "pypy3"
matrix:
allow_failures:
- python: "3.6-dev"
- python: "nightly"
install:
- pip install codecov tox tox-travis
script:
- tox
after_success:
- codecov -e TOXENV
notificati... | language: python
sudo: false
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6-dev"
- "nightly"
- "pypy"
- "pypy3"
matrix:
allow_failures:
- python: "3.6-dev"
- python: "nightly"
- python: "pypy3"
install:
- pip install codecov tox tox-travis
script:
- tox
after_success:
- codecov... | Add pypy3 to allowed failures as it's not working yet | Add pypy3 to allowed failures as it's not working yet
| YAML | mit | browniebroke/deezer-python,browniebroke/deezer-python,browniebroke/deezer-python | yaml | ## Code Before:
language: python
sudo: false
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6-dev"
- "nightly"
- "pypy"
- "pypy3"
matrix:
allow_failures:
- python: "3.6-dev"
- python: "nightly"
install:
- pip install codecov tox tox-travis
script:
- tox
after_success:
- codecov -e TO... | language: python
sudo: false
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6-dev"
- "nightly"
- "pypy"
- "pypy3"
matrix:
allow_failures:
- python: "3.6-dev"
- python: "nightly"
+ - python: "pypy3"
install:
- pip install codecov tox tox-travis
... | 1 | 0.02381 | 1 | 0 |
adb14248ea2a0e60a5a8bb0ff1adac2fde2a3c46 | glib/Android.mk | glib/Android.mk | LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gdir.c \
gerror.c \
giochannel.c \
gkeyfile.c \
gmain.c \
gmem.c \
goption.c \
gslice.c \
gslist.c \
gstring.c \
gstrfuncs.c \
gtimer.c \
giounix.c \
gmessages.c \
gutf8.c \
gfileutils.c \
gconvert.c \
gdataset.c \
gtestutils.c \
... | LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gdir.c \
gerror.c \
giochannel.c \
gkeyfile.c \
gmain.c \
gmem.c \
goption.c \
gslice.c \
gslist.c \
gstring.c \
gstrfuncs.c \
gtimer.c \
giounix.c \
gmessages.c \
gutf8.c \
gfileutils.c \
gconvert.c \
gdataset.c \
gtestutils.c \
... | Fix build - don't prelink glib - do not merge | Fix build - don't prelink glib - do not merge
Change-Id: I6b98022ddc8710e1cb65ba7c4cca114ffd14c4a4
| Makefile | lgpl-2.1 | bhargavkumar040/android-source-browsing.platform--external--bluetooth--glib,codewalkerster/external_bluetooth_glib,tguillem/android-glib,codewalkerster/external_bluetooth_glib,CyanogenMod/android_external_bluetooth_glib,android-ia/platform_external_bluetooth_glib,Pankaj-Sakariya/android-source-browsing.platform--extern... | makefile | ## Code Before:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gdir.c \
gerror.c \
giochannel.c \
gkeyfile.c \
gmain.c \
gmem.c \
goption.c \
gslice.c \
gslist.c \
gstring.c \
gstrfuncs.c \
gtimer.c \
giounix.c \
gmessages.c \
gutf8.c \
gfileutils.c \
gconvert.c \
gdataset.c \
... | LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gdir.c \
gerror.c \
giochannel.c \
gkeyfile.c \
gmain.c \
gmem.c \
goption.c \
gslice.c \
gslist.c \
gstring.c \
gstrfuncs.c \
gtimer.c \
giounix.c \
gmessages.c \
gutf8.c \
gfileutils.c \
g... | 2 | 0.041667 | 2 | 0 |
23b38b89d05fb8c676b80c04d668596bd2ce2509 | .travis.yml | .travis.yml | language: node_js
cache: npm
node_js:
- "6.2"
os:
- linux
- osx
- windows
script:
- npm run test | language: node_js
cache: npm
node_js:
- "6.2"
os:
- windows
- osx
- linux
script:
- npm run test
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run build-win; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run build-mac; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run build-linux; fi | Build app in Travis CI on each platform | Build app in Travis CI on each platform
| YAML | apache-2.0 | pluralsight/mob-timer,pluralsight/mob-timer | yaml | ## Code Before:
language: node_js
cache: npm
node_js:
- "6.2"
os:
- linux
- osx
- windows
script:
- npm run test
## Instruction:
Build app in Travis CI on each platform
## Code After:
language: node_js
cache: npm
node_js:
- "6.2"
os:
- windows
- osx
- linux
script:
- npm run test
- if [[ "$TRAVIS... | language: node_js
cache: npm
node_js:
- "6.2"
os:
+ - windows
+ - osx
- linux
- - osx
- - windows
script:
- npm run test
+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm run build-win; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run build-mac; fi
+ - if [[ "$TRAVIS_OS_N... | 7 | 0.7 | 5 | 2 |
547f4da202fd457eec44c20ef15df7508ec911f7 | app/models/ecm/cms/navigation.rb | app/models/ecm/cms/navigation.rb | class Ecm::Cms::Navigation < ActiveRecord::Base
# associations
has_many :ecm_cms_navigation_items,
class_name: 'Ecm::Cms::NavigationItem',
dependent: :destroy,
foreign_key: 'ecm_cms_navigation_id'
# validations
validates :locale, inclusion: I18n.available_locales.map(&:to_s),
... | class Ecm::Cms::Navigation < ActiveRecord::Base
# associations
has_many :ecm_cms_navigation_items,
class_name: 'Ecm::Cms::NavigationItem',
dependent: :destroy,
foreign_key: 'ecm_cms_navigation_id'
# validations
validates :locale, inclusion: I18n.available_locales.map(&:to_s),
... | Fix validations in rails 5. | Fix validations in rails 5.
| Ruby | mit | robotex82/ecm_cms2,robotex82/ecm_cms2,robotex82/ecm_cms2 | ruby | ## Code Before:
class Ecm::Cms::Navigation < ActiveRecord::Base
# associations
has_many :ecm_cms_navigation_items,
class_name: 'Ecm::Cms::NavigationItem',
dependent: :destroy,
foreign_key: 'ecm_cms_navigation_id'
# validations
validates :locale, inclusion: I18n.available_locale... | class Ecm::Cms::Navigation < ActiveRecord::Base
# associations
has_many :ecm_cms_navigation_items,
class_name: 'Ecm::Cms::NavigationItem',
dependent: :destroy,
foreign_key: 'ecm_cms_navigation_id'
# validations
validates :locale, inclusion: I18n.available_loca... | 3 | 0.157895 | 2 | 1 |
5749d5413c1afaa8ac34b1f1a424ce17fe77cb60 | requirements.txt | requirements.txt |
argparse
six>=1.7.0
|
pbr>=0.6,!=0.7,<1.0
argparse
six>=1.7.0
| Add pbr to dependency list | Add pbr to dependency list
We use pbr to install stevedore, and because of the way setuptools deals
with install-time requirements we also need to include it as a runtime
dependency to ensure it is installed by pip and not easy_install.
Change-Id: I0a39bb50218a1a7cdb2d42fb474a9b8f6d6ac32a
Closes-Bug: #1384919
| Text | apache-2.0 | varunarya10/stevedore,nelsnelson/stevedore,mandeepdhami/stevedore,varunarya10/stevedore,openstack/stevedore,JioCloud/stevedore,JioCloud/stevedore,nelsnelson/stevedore,mandeepdhami/stevedore | text | ## Code Before:
argparse
six>=1.7.0
## Instruction:
Add pbr to dependency list
We use pbr to install stevedore, and because of the way setuptools deals
with install-time requirements we also need to include it as a runtime
dependency to ensure it is installed by pip and not easy_install.
Change-Id: I0a39bb50218a1a7... |
+ pbr>=0.6,!=0.7,<1.0
argparse
six>=1.7.0 | 1 | 0.333333 | 1 | 0 |
9d8d426c452492fb3d5e255d31f2c5f96f257b8d | setup.py | setup.py | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | Remove Pypy from list of supported Python versions | Remove Pypy from list of supported Python versions
| Python | mit | Swimlane/sw-python-client | python | ## Code Before:
from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-python",
... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-p... | 1 | 0.030303 | 0 | 1 |
02365cb9154097ab437c092a7ad5fa620a30a306 | src/CollegeCrazies/Bundle/MainBundle/Resources/views/Game/list.html.twig | src/CollegeCrazies/Bundle/MainBundle/Resources/views/Game/list.html.twig | <ul class="game-list unstyled">
{% for game in games %}
<li class="game">
<h5>{{ game.name}} {% if game.complete %} (F){% endif %}</h5>
<small>{{ game.gameDate|date('m/d/Y') }}</small>
{% if game.complete %}
{% if game.winner == game.homeTeam %}
{% set homeClass =... | <ul class="game-list unstyled">
{% for game in games %}
<li class="game">
<h5>{{ game.name}} {% if game.complete %} (F){% endif %}</h5>
<small>{{ game.gameDate|date('m/d/Y') }}</small>
{% if game.complete %}
{% if game.winner == game.homeTeam %}
{% set homeClass =... | Remove markup from game list | Remove markup from game list
| Twig | mit | jsuggs/CollegeCrazies,jsuggs/CollegeCrazies,jsuggs/CollegeCrazies,jsuggs/CollegeCrazies,jsuggs/CollegeCrazies,jsuggs/CollegeCrazies | twig | ## Code Before:
<ul class="game-list unstyled">
{% for game in games %}
<li class="game">
<h5>{{ game.name}} {% if game.complete %} (F){% endif %}</h5>
<small>{{ game.gameDate|date('m/d/Y') }}</small>
{% if game.complete %}
{% if game.winner == game.homeTeam %}
{%... | <ul class="game-list unstyled">
{% for game in games %}
<li class="game">
<h5>{{ game.name}} {% if game.complete %} (F){% endif %}</h5>
<small>{{ game.gameDate|date('m/d/Y') }}</small>
{% if game.complete %}
{% if game.winner == game.homeTeam %}
{%... | 4 | 0.16 | 2 | 2 |
e6918c3e528eca6ea79cc699b7ea8ba964d4e24f | data_bags/users/STAGINGDMZ.json | data_bags/users/STAGINGDMZ.json | {
"id": "admin",
"groups": [ "staging" ],
"uid": 2001,
"shell": "\/bin\/bash",
"nagios": {
"pager": "8005551212@txt.att.net",
"email": "trent.white@webtrends.com"
},
} | {
"id": "admin",
"groups": [ "staging" ],
"htpasswd": "$1$wuvwulpl$e5qocnltmnyysfq.yw8y41",
"nagios": {
"pager": "8005551212@txt.att.net",
"email": "trent.white@webtrends.com"
},
} | Remove unnecessary values and add an htpasswd hash so admin can login to Nagios with admin/Bijoux01 | Remove unnecessary values and add an htpasswd hash so admin can login to Nagios with admin/Bijoux01
Former-commit-id: 91b1b5ddb0e151035c428d21d3fd5a669fd9658a [formerly 1c22aa2f81554a319baf92c0bc615d480a812cd0] [formerly e98b1cbae6112c8fbde2d32f1e47149c4e983e63 [formerly 8ca4f2a48a5587566dcf9dfce82aa29f5a0a8959]]
For... | JSON | apache-2.0 | marthag8/rundeck,tas50/rundeck,ARentz07/rundeck,edwlarkey/rundeck,marthag8/rundeck,ARentz07/rundeck,ARentz07/rundeck,ronabop/rundeck,tas50/rundeck,marthag8/rundeck,edwlarkey/rundeck,edwlarkey/rundeck,ronabop/rundeck,ronabop/rundeck,tas50/rundeck | json | ## Code Before:
{
"id": "admin",
"groups": [ "staging" ],
"uid": 2001,
"shell": "\/bin\/bash",
"nagios": {
"pager": "8005551212@txt.att.net",
"email": "trent.white@webtrends.com"
},
}
## Instruction:
Remove unnecessary values and add an htpasswd hash so admin can login to Nagios with admin/Bijoux01
Former-c... | {
"id": "admin",
"groups": [ "staging" ],
+ "htpasswd": "$1$wuvwulpl$e5qocnltmnyysfq.yw8y41",
- "uid": 2001,
- "shell": "\/bin\/bash",
"nagios": {
"pager": "8005551212@txt.att.net",
"email": "trent.white@webtrends.com"
},
} | 3 | 0.3 | 1 | 2 |
0ac080271a93820605e031d44a6b117e15f9c0b2 | docs/index.rst | docs/index.rst | **This documentation has moved to GitHub_.**
.. _GitHub: https://simpleflow.readthedocs.io/
| This documentation has moved to `GitHub`_.
.. _GitHub: https://botify-labs.github.io/simpleflow/
| Make redirection link work on readthedocs (2) + fix link | Make redirection link work on readthedocs (2) + fix link
| reStructuredText | mit | botify-labs/simpleflow,botify-labs/simpleflow | restructuredtext | ## Code Before:
**This documentation has moved to GitHub_.**
.. _GitHub: https://simpleflow.readthedocs.io/
## Instruction:
Make redirection link work on readthedocs (2) + fix link
## Code After:
This documentation has moved to `GitHub`_.
.. _GitHub: https://botify-labs.github.io/simpleflow/
| - **This documentation has moved to GitHub_.**
? -- --
+ This documentation has moved to `GitHub`_.
? + +
- .. _GitHub: https://simpleflow.readthedocs.io/
+ .. _GitHub: https://botify-labs.github.io/simpleflow/ | 4 | 1.333333 | 2 | 2 |
b7919d1e830bbae832c13cef49e3b50750b439da | las_input/run.bash | las_input/run.bash | unzip ./Lasfiles.zip
| unzip ./Lasfiles.zip
#Rename to remove spaces for simplicity
mv ./Lasfiles/Penobscot\ B-41\ LASOut_W4.las ./Lasfiles/Penobscot_B-41_LASOut_W4.las
mv ./Lasfiles/Penobscot\ L-30\ LASOut_W7.las ./Lasfiles/Penobscot_L-30_LASOut_W7.las
| Rename LAS file to remove spaces from file names. | Rename LAS file to remove spaces from file names.
| Shell | mit | MrHiccups/open-well-ties,MrHiccups/open-well-ties,MrHiccups/open-well-ties | shell | ## Code Before:
unzip ./Lasfiles.zip
## Instruction:
Rename LAS file to remove spaces from file names.
## Code After:
unzip ./Lasfiles.zip
#Rename to remove spaces for simplicity
mv ./Lasfiles/Penobscot\ B-41\ LASOut_W4.las ./Lasfiles/Penobscot_B-41_LASOut_W4.las
mv ./Lasfiles/Penobscot\ L-30\ LASOut_W7.las ./La... | unzip ./Lasfiles.zip
+ #Rename to remove spaces for simplicity
+ mv ./Lasfiles/Penobscot\ B-41\ LASOut_W4.las ./Lasfiles/Penobscot_B-41_LASOut_W4.las
+ mv ./Lasfiles/Penobscot\ L-30\ LASOut_W7.las ./Lasfiles/Penobscot_L-30_LASOut_W7.las
+ | 4 | 2 | 4 | 0 |
e24e5ff5e510cab05cc503de0a5c42e84ae508a8 | scripts/commands/cfn/stack-set-instances.bash | scripts/commands/cfn/stack-set-instances.bash | while getopts "a:r:" opt; do
case "$opt" in
a) STACK_SET_ACCOUNT="--stack-instance-account $OPTARG" ;;
r) STACK_SET_REGION="--stack-instance-region $OPTARG" ;;
esac
done
shift $(($OPTIND-1))
split_args "$@"
STACKSET_LISTING=$(awscli cloudformation list-stack-sets --status ACTIVE --output text ... | while getopts "a:r:" opt; do
case "$opt" in
a) STACK_SET_ACCOUNT="--stack-instance-account $OPTARG" ;;
r) STACK_SET_REGION="--stack-instance-region $OPTARG" ;;
esac
done
shift $(($OPTIND-1))
split_args "$@"
STACKSET_LISTING=$(awscli cloudformation list-stack-sets --status ACTIVE --output text ... | Remove Stack Results from cfn stack listing | Remove Stack Results from cfn stack listing
| Shell | mit | flomotlik/awsinfo,flomotlik/awsinfo | shell | ## Code Before:
while getopts "a:r:" opt; do
case "$opt" in
a) STACK_SET_ACCOUNT="--stack-instance-account $OPTARG" ;;
r) STACK_SET_REGION="--stack-instance-region $OPTARG" ;;
esac
done
shift $(($OPTIND-1))
split_args "$@"
STACKSET_LISTING=$(awscli cloudformation list-stack-sets --status ACTIV... | while getopts "a:r:" opt; do
case "$opt" in
a) STACK_SET_ACCOUNT="--stack-instance-account $OPTARG" ;;
r) STACK_SET_REGION="--stack-instance-region $OPTARG" ;;
esac
done
shift $(($OPTIND-1))
split_args "$@"
STACKSET_LISTING=$(awscli cloudformation list-stack-sets --status... | 2 | 0.1 | 1 | 1 |
fca77e996741ee780342247e7ad2fe75db84133a | .travis.yml | .travis.yml | sudo: false
language: node_js
node_js:
- "4.5"
- "6.4"
- "0.12"
| sudo: false
language: node_js
node_js:
- "0.12"
- "4.8.0"
- "6.10.0"
- "7.7.1"
| Update NodeJS versions which are used in Travis CI | Update NodeJS versions which are used in Travis CI | YAML | mit | lautis/rollup-plugin-coffee-script | yaml | ## Code Before:
sudo: false
language: node_js
node_js:
- "4.5"
- "6.4"
- "0.12"
## Instruction:
Update NodeJS versions which are used in Travis CI
## Code After:
sudo: false
language: node_js
node_js:
- "0.12"
- "4.8.0"
- "6.10.0"
- "7.7.1"
| sudo: false
language: node_js
node_js:
- - "4.5"
- - "6.4"
- "0.12"
+ - "4.8.0"
+ - "6.10.0"
+ - "7.7.1" | 5 | 0.833333 | 3 | 2 |
4635fcd9fa04709f156a492fb9141e48917c5fc0 | source/layouts/layout.haml | source/layouts/layout.haml | !!! 5
%html{ lang: 'en' }
%head
%meta{ charset: 'utf-8' }
%meta{ content: 'IE=edge,chrome=1', 'http-equiv' => 'X-UA-Compatible' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }
/ Use title if it's in the page YAML frontmatter
%title= current_page.data.title || 'The Mi... | !!! 5
%html{ lang: 'en' }
%head
%meta{ charset: 'utf-8' }
%meta{ content: 'IE=edge,chrome=1', 'http-equiv' => 'X-UA-Compatible' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }
/ Use title if it's in the page YAML frontmatter
%title= current_page.data.title || 'The Mi... | Remove page_classes method from the body tag | Remove page_classes method from the body tag
| Haml | mit | drewbarontini/baseman,drewbarontini/baseman,drewbarontini/baseman | haml | ## Code Before:
!!! 5
%html{ lang: 'en' }
%head
%meta{ charset: 'utf-8' }
%meta{ content: 'IE=edge,chrome=1', 'http-equiv' => 'X-UA-Compatible' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }
/ Use title if it's in the page YAML frontmatter
%title= current_page.data.... | !!! 5
%html{ lang: 'en' }
%head
%meta{ charset: 'utf-8' }
%meta{ content: 'IE=edge,chrome=1', 'http-equiv' => 'X-UA-Compatible' }
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }
/ Use title if it's in the page YAML frontmatter
%title= current_page.dat... | 2 | 0.111111 | 1 | 1 |
83c880a69cecde81b0e38404df0f4e31dd5c48c3 | app/services/diff_outputs.rb | app/services/diff_outputs.rb | class DiffOutputs
def initialize filename1, filename2
@filename1 = filename1
@filename2 = filename2
end
def call
line_counter = 0
File.readlines(filename1).zip(File.readlines(filename2)).each do |line1, line2|
line_counter += 1
stripped_line1 = line1.nil? ? line1 : line1.strip
... | class DiffOutputs
def initialize filename1, filename2
@filename1 = filename1
@filename2 = filename2
end
def call
line_counter = 0
File.readlines(filename1).zip(File.readlines(filename2)).each do |line1, line2|
line_counter += 1
stripped_line1 = line1.nil? ? '' : line1.strip
str... | Fix the file differ to handle long outputs. | Fix the file differ to handle long outputs.
| Ruby | mit | antonrd/codemarathon-grader,antonrd/codemarathon-grader,antonrd/codemarathon-grader,antonrd/codemarathon-grader,antonrd/codemarathon-grader | ruby | ## Code Before:
class DiffOutputs
def initialize filename1, filename2
@filename1 = filename1
@filename2 = filename2
end
def call
line_counter = 0
File.readlines(filename1).zip(File.readlines(filename2)).each do |line1, line2|
line_counter += 1
stripped_line1 = line1.nil? ? line1 : li... | class DiffOutputs
def initialize filename1, filename2
@filename1 = filename1
@filename2 = filename2
end
def call
line_counter = 0
File.readlines(filename1).zip(File.readlines(filename2)).each do |line1, line2|
line_counter += 1
- stripped_line1 = line1.nil? ? li... | 8 | 0.242424 | 4 | 4 |
064ea4945629ab3694c995c49542e96d2fb447c3 | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode7.2b1
xcode_project: SwiftMongoDB.xcodeproj
xcode_scheme: SwiftMongoDB-OSX
before_install:
- brew update
- brew install carthage
install:
- carthage bootstrap --verbose
script:
- xcodebuild -project SwiftMongoDB.xcodeproj -scheme SwiftMongoDB-OSX test -sdk macosx | ... | language: objective-c
osx_image: xcode7.2b1
xcode_project: SwiftMongoDB.xcodeproj
xcode_scheme: SwiftMongoDB-OSX
before_install:
- brew update
- brew install carthage
install:
- carthage bootstrap --verbose --platform macosx,ios | xcpretty -c
script:
- xcodebuild -project SwiftMongoDB.xcodeproj -scheme ... | Update Carthage build parameters in Travis | Update Carthage build parameters in Travis
| YAML | mit | Danappelxx/SwiftMongoDB | yaml | ## Code Before:
language: objective-c
osx_image: xcode7.2b1
xcode_project: SwiftMongoDB.xcodeproj
xcode_scheme: SwiftMongoDB-OSX
before_install:
- brew update
- brew install carthage
install:
- carthage bootstrap --verbose
script:
- xcodebuild -project SwiftMongoDB.xcodeproj -scheme SwiftMongoDB-OSX tes... | language: objective-c
osx_image: xcode7.2b1
xcode_project: SwiftMongoDB.xcodeproj
xcode_scheme: SwiftMongoDB-OSX
before_install:
- brew update
- brew install carthage
install:
- - carthage bootstrap --verbose
+ - carthage bootstrap --verbose --platform macosx,ios | xcpretty -c
script:
... | 4 | 0.333333 | 2 | 2 |
05b506a4ae67133501bfdb18701d533f50d8a301 | terminal/bash/functions.sh | terminal/bash/functions.sh | reload() {
deactivate 2> /dev/null
exec $SHELL -l
}
# Makes new Python virtualenv for current directory
mkvirtualenv() {
virtualenv -p "$1" "$VIRTUAL_ENV_NAME"
# Activate virtualenv so packages can be installed
source ./"$VIRTUAL_ENV_NAME"/bin/activate
}
# Removes existing Python virtualenv
rmvirtualenv() {
rm ... | ''#!/bin/bash
# functions.sh
# Caleb Evans
# Reloads entire shell, including .bash_profile and any activated virtualenv
reload() {
deactivate 2> /dev/null
exec $SHELL -l
}
# Makes new Python virtualenv for current directory
mkvirtualenv() {
virtualenv --python="$1" "$VIRTUAL_ENV_NAME"
# Activate virtualenv so pac... | Expand -p to --python for virtualenv command | Expand -p to --python for virtualenv command
| Shell | mit | caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles | shell | ## Code Before:
reload() {
deactivate 2> /dev/null
exec $SHELL -l
}
# Makes new Python virtualenv for current directory
mkvirtualenv() {
virtualenv -p "$1" "$VIRTUAL_ENV_NAME"
# Activate virtualenv so packages can be installed
source ./"$VIRTUAL_ENV_NAME"/bin/activate
}
# Removes existing Python virtualenv
rmvir... | + ''#!/bin/bash
+ # functions.sh
+ # Caleb Evans
+
+ # Reloads entire shell, including .bash_profile and any activated virtualenv
reload() {
deactivate 2> /dev/null
exec $SHELL -l
}
# Makes new Python virtualenv for current directory
mkvirtualenv() {
- virtualenv -p "$1" "$VIRTUAL_ENV_NAME"
? ... | 7 | 0.318182 | 6 | 1 |
23bf8e9097c1cdf62dee9f2568401dfcbe7f1bbe | macosx-miniconda/.bash.d/50-macosx-miniconda.sh | macosx-miniconda/.bash.d/50-macosx-miniconda.sh | is_interactive_shell || return
## Set up PATH for Anaconda miniconda Python distribution
# Actually, I prefer to have the "system" Python in PATH by default, and
# choose to use the conda ones only by explicitly setting a conda env
#PATH=$(path_prepend "$PATH" "~/miniconda/bin")
## Convenience function for Anaconda m... | is_interactive_shell || return
## Set up PATH for Anaconda miniconda Python distribution
# Actually, I prefer to have the "system" Python in PATH by default, and
# choose to use the conda ones only by explicitly setting a conda env
#PATH=$(path_prepend "$PATH" "~/miniconda/bin")
## Convenience function for Anaconda m... | Make conda cenv alias show current environment | Make conda cenv alias show current environment
... if no environment is given as argument.
| Shell | mit | ehdr/dotfiles,ehdr/dotfiles | shell | ## Code Before:
is_interactive_shell || return
## Set up PATH for Anaconda miniconda Python distribution
# Actually, I prefer to have the "system" Python in PATH by default, and
# choose to use the conda ones only by explicitly setting a conda env
#PATH=$(path_prepend "$PATH" "~/miniconda/bin")
## Convenience functio... | is_interactive_shell || return
## Set up PATH for Anaconda miniconda Python distribution
# Actually, I prefer to have the "system" Python in PATH by default, and
# choose to use the conda ones only by explicitly setting a conda env
#PATH=$(path_prepend "$PATH" "~/miniconda/bin")
## Convenience functio... | 6 | 0.545455 | 5 | 1 |
4e63db0d699eeb7a313708f82c129637222e1014 | src/penn_chime/utils.py | src/penn_chime/utils.py | """Utils."""
from base64 import b64encode
import pandas as pd
def dataframe_to_base64(df: pd.DataFrame) -> str:
"""Converts a dataframe to a base64-encoded CSV representation of that data.
This is useful for building datauris for use to download the data in the browser.
Arguments:
df: The data... | """Utils."""
from base64 import b64encode
import pandas as pd
def dataframe_to_base64(df: pd.DataFrame) -> str:
"""Converts a dataframe into csv base64-encoded data.
This is useful for building datauris for use to download the data in the browser.
Arguments:
df: The dataframe to convert
""... | Update excel_to_base64 to always close file handles | Update excel_to_base64 to always close file handles
| Python | mit | CodeForPhilly/chime,CodeForPhilly/chime,CodeForPhilly/chime | python | ## Code Before:
"""Utils."""
from base64 import b64encode
import pandas as pd
def dataframe_to_base64(df: pd.DataFrame) -> str:
"""Converts a dataframe to a base64-encoded CSV representation of that data.
This is useful for building datauris for use to download the data in the browser.
Arguments:
... | """Utils."""
from base64 import b64encode
import pandas as pd
def dataframe_to_base64(df: pd.DataFrame) -> str:
- """Converts a dataframe to a base64-encoded CSV representation of that data.
? ^ ---------------------------
+ """Converts a datafr... | 10 | 0.416667 | 5 | 5 |
d4e5af537be36bd50405e60fdb46f31b88537916 | src/commoner_i/views.py | src/commoner_i/views.py | from django.core.files.storage import default_storage
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
from django.http import HttpResponse
def badge(request, username, size=''):
# serve the inactive badge by default
filename = 'images/badge/%sinactive.png' % size
... | from django.core.files.storage import default_storage
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
from django.http import HttpResponse, Http404
def badge(request, username, size=''):
# serve the inactive badge by default
filename = 'images/badge/%sinactive.png' %... | Raise a 404 when for FREE profile badge requests | Raise a 404 when for FREE profile badge requests
| Python | agpl-3.0 | cc-archive/commoner,cc-archive/commoner | python | ## Code Before:
from django.core.files.storage import default_storage
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
from django.http import HttpResponse
def badge(request, username, size=''):
# serve the inactive badge by default
filename = 'images/badge/%sinactive... | from django.core.files.storage import default_storage
from django.shortcuts import get_object_or_404
from django.contrib.auth.models import User
- from django.http import HttpResponse
+ from django.http import HttpResponse, Http404
? +++++++++
def badge(request, username,... | 10 | 0.47619 | 7 | 3 |
f31f1e5263f317ad0a1a27c02bb6fe19948ac0e5 | resources/views/inc/photo_masonry.js.twig | resources/views/inc/photo_masonry.js.twig | <figure class="gallery-item-masonry masonry-150"> \
<div class="gallery-item-content"> \
<div class="gallery-item-content-images"> \
<a href="{{ image.url_800 }}" rel="gallery-0" title="{{ image.title|escape }}"> \
<img src="{{ image.url_thumb }}" width="{{ image.dimensions.width... | <figure class="gallery-item-masonry masonry-150"> \
<div class="gallery-item-content"> \
<div class="gallery-item-content-images"> \
<a href="{{ image.url_800 }}" rel="gallery-0" title="{{ image.title|escape }}"> \
<img src="{{ image.url_thumb }}" width="{{ image.dimensions.width... | Make sure we trim the output | Make sure we trim the output
| Twig | bsd-3-clause | petervanderdoes/AVH-Raritan-Photographic-Society,petervanderdoes/AVH-Raritan-Photographic-Society,petervanderdoes/AVH-Raritan-Photographic-Society,petervanderdoes/AVH-Raritan-Photographic-Society | twig | ## Code Before:
<figure class="gallery-item-masonry masonry-150"> \
<div class="gallery-item-content"> \
<div class="gallery-item-content-images"> \
<a href="{{ image.url_800 }}" rel="gallery-0" title="{{ image.title|escape }}"> \
<img src="{{ image.url_thumb }}" width="{{ image.... | <figure class="gallery-item-masonry masonry-150"> \
<div class="gallery-item-content"> \
<div class="gallery-item-content-images"> \
<a href="{{ image.url_800 }}" rel="gallery-0" title="{{ image.title|escape }}"> \
<img src="{{ image.url_thumb }}" width="{{ image.dimens... | 2 | 0.2 | 1 | 1 |
3c9aa011f815a9fe7e81b3efddfacf0566da21cb | app/controllers/calendars_controller.rb | app/controllers/calendars_controller.rb | class CalendarsController < ApplicationController
def show
raise ActionController::RoutingError.new('Not Found') if current_region.nil?
@start_selector = StartSelector.new(start_date)
@calendar = Calendar.new(start_date, current_region, current_user)
end
private
def start_date
@start_d... | class CalendarsController < ApplicationController
before_action :require_region!, only: [ :show ]
def show
@start_selector = StartSelector.new(start_date)
@calendar = Calendar.new(start_date, current_region, current_user)
end
private
def start_date
@start_date ||= params[:start].present? ... | Move checking for the route to a before_filter | Move checking for the route to a before_filter
| Ruby | mit | hacken-in/hacken-in,hacken-in/website,hacken-in/hacken-in,hacken-in/website,hacken-in/hacken-in,hacken-in/hacken-in,hacken-in/website,hacken-in/website | ruby | ## Code Before:
class CalendarsController < ApplicationController
def show
raise ActionController::RoutingError.new('Not Found') if current_region.nil?
@start_selector = StartSelector.new(start_date)
@calendar = Calendar.new(start_date, current_region, current_user)
end
private
def start_d... | class CalendarsController < ApplicationController
+ before_action :require_region!, only: [ :show ]
def show
- raise ActionController::RoutingError.new('Not Found') if current_region.nil?
-
@start_selector = StartSelector.new(start_date)
@calendar = Calendar.new(start_date, current_reg... | 8 | 0.533333 | 6 | 2 |
7db480aaa2cb7d54c90bb4d804b5a71cd5295432 | src/ethanjones/cubes/launcher/UncaughtExceptionHandler.java | src/ethanjones/cubes/launcher/UncaughtExceptionHandler.java | package ethanjones.cubes.launcher;
import javax.swing.JOptionPane;
public class UncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
public static final UncaughtExceptionHandler INSTANCE = new UncaughtExceptionHandler();
private UncaughtExceptionHandler() {
}
@Override
public void uncaug... | package ethanjones.cubes.launcher;
import javax.swing.JOptionPane;
public class UncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
public static final UncaughtExceptionHandler INSTANCE = new UncaughtExceptionHandler();
private UncaughtExceptionHandler() {
}
@Override
public void uncaug... | Print uncaught exceptions to System.err as well as displaying dialog box | Print uncaught exceptions to System.err as well as displaying dialog box
| Java | mit | ictrobot/CubesLauncher | java | ## Code Before:
package ethanjones.cubes.launcher;
import javax.swing.JOptionPane;
public class UncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
public static final UncaughtExceptionHandler INSTANCE = new UncaughtExceptionHandler();
private UncaughtExceptionHandler() {
}
@Override
pu... | package ethanjones.cubes.launcher;
import javax.swing.JOptionPane;
public class UncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
public static final UncaughtExceptionHandler INSTANCE = new UncaughtExceptionHandler();
private UncaughtExceptionHandler() {
}
@Overr... | 10 | 0.625 | 9 | 1 |
0d8751046a31520215a4c741eeabe1d0edb7be92 | src/com/samovich/java/basics/collections/list/arraylist/ArrayListForEach.java | src/com/samovich/java/basics/collections/list/arraylist/ArrayListForEach.java | package com.samovich.java.basics.collections.list.arraylist;
/**
* Created by Samovich on 1/20/2015.
*/
public class ArrayListForEach {
}
| /**
* @file ArrayListForEach.java
* @author Valery Samovich
* @version 1
* @date 2014/01/09
*/
/*
* Following code shows an example how to create a Collection of type List
* which is parameterized with <String> to indicate to the Java compiler
* that only Strings are allowed in this list.
*/
package com.sa... | Refactor the code and add the ArrayList with For Statement | Refactor the code and add the ArrayList with For Statement
| Java | unknown | vsamov/java-technologies,vsamov/java-technologies,valerysamovich/java-technologies | java | ## Code Before:
package com.samovich.java.basics.collections.list.arraylist;
/**
* Created by Samovich on 1/20/2015.
*/
public class ArrayListForEach {
}
## Instruction:
Refactor the code and add the ArrayList with For Statement
## Code After:
/**
* @file ArrayListForEach.java
* @author Valery Samovich
* @versi... | + /**
+ * @file ArrayListForEach.java
+ * @author Valery Samovich
+ * @version 1
+ * @date 2014/01/09
+ */
+
+ /*
+ * Following code shows an example how to create a Collection of type List
+ * which is parameterized with <String> to indicate to the Java compiler
+ * that only Strings are allowed in this li... | 34 | 4.857143 | 31 | 3 |
beb5f824bf0c404eace53cede68c6f325bfc379d | app/Http/Controllers/DashboardController.php | app/Http/Controllers/DashboardController.php | <?php
namespace App\Http\Controllers;
use App\DuesTransaction;
use Illuminate\Http\Request;
class DashboardController extends Controller
{
/**
* Returns view with data for the user dashboard
*
* @param Request $request
* @return mixed
*/
public function index(Request $request)
{
... | <?php
namespace App\Http\Controllers;
use App\DuesTransaction;
use Illuminate\Http\Request;
class DashboardController extends Controller
{
/**
* Returns view with data for the user dashboard
*
* @param Request $request
* @return mixed
*/
public function index(Request $request)
{
... | Put payment logic here instead of in the user model; Allow for multiple payments instead of a single payment | Put payment logic here instead of in the user model; Allow for multiple payments instead of a single payment
| PHP | apache-2.0 | RoboJackets/apiary,RoboJackets/apiary | php | ## Code Before:
<?php
namespace App\Http\Controllers;
use App\DuesTransaction;
use Illuminate\Http\Request;
class DashboardController extends Controller
{
/**
* Returns view with data for the user dashboard
*
* @param Request $request
* @return mixed
*/
public function index(Request ... | <?php
namespace App\Http\Controllers;
use App\DuesTransaction;
use Illuminate\Http\Request;
class DashboardController extends Controller
{
/**
* Returns view with data for the user dashboard
*
* @param Request $request
* @return mixed
*/
public functio... | 28 | 0.965517 | 24 | 4 |
78df0a964c8c19d1833cd6855392bf0f37559caf | showrss.go | showrss.go | package main
import (
"fmt"
"log"
"net/http"
"os"
"os/signal"
"showrss/handlers"
"flag"
"syscall"
"github.com/braintree/manners"
)
const version = "1.0.0"
func main() {
var httpAddr = flag.String("http", "localhost:7000", "HTTP service address")
flag.Parse()
log.Println("Starting server ...")
log.Pr... | package main
import (
"fmt"
"log"
"net/http"
"os"
"os/signal"
"showrss/handlers"
"flag"
"syscall"
"github.com/braintree/manners"
)
const version = "1.0.0"
func main() {
var httpAddr = flag.String("http", "0.0.0.0:8000", "HTTP service address")
flag.Parse()
log.Println("Starting server ...")
log.Prin... | Change default addr for http server | Change default addr for http server
| Go | mit | teambrookie/showrss,teambrookie/showrss | go | ## Code Before:
package main
import (
"fmt"
"log"
"net/http"
"os"
"os/signal"
"showrss/handlers"
"flag"
"syscall"
"github.com/braintree/manners"
)
const version = "1.0.0"
func main() {
var httpAddr = flag.String("http", "localhost:7000", "HTTP service address")
flag.Parse()
log.Println("Starting serv... | package main
import (
"fmt"
"log"
"net/http"
"os"
"os/signal"
"showrss/handlers"
"flag"
"syscall"
"github.com/braintree/manners"
)
const version = "1.0.0"
func main() {
- var httpAddr = flag.String("http", "localhost:7000", "HTTP service address")
? ... | 4 | 0.072727 | 2 | 2 |
e66505d2205383d1d37c45271043cedeef2a306f | README.md | README.md | This uses Jekyll and GitHub pages.
To compile the sources to static HTML follow the instructions from GitHub:
https://help.github.com/articles/using-jekyll-with-pages/
To run the site locally install ruby bundler and run:
```
bundle exec jekyll serve
```
| This uses Jekyll and GitHub pages.
To compile the sources to static HTML follow the instructions from GitHub:
https://help.github.com/articles/using-jekyll-with-pages/
To run the site locally install ruby bundler and run:
```
bundle exec jekyll serve
```
##### Avoid the nav bar overlapping headers in the content (in... | Add documentation for overlap fix | Add documentation for overlap fix | Markdown | apache-2.0 | corpus-tools/corpus-tools.github.io,corpus-tools/corpus-tools.github.io,corpus-tools/corpus-tools.github.io,corpus-tools/corpus-tools.github.io | markdown | ## Code Before:
This uses Jekyll and GitHub pages.
To compile the sources to static HTML follow the instructions from GitHub:
https://help.github.com/articles/using-jekyll-with-pages/
To run the site locally install ruby bundler and run:
```
bundle exec jekyll serve
```
## Instruction:
Add documentation for overlap ... | This uses Jekyll and GitHub pages.
To compile the sources to static HTML follow the instructions from GitHub:
https://help.github.com/articles/using-jekyll-with-pages/
To run the site locally install ruby bundler and run:
```
bundle exec jekyll serve
```
+
+ ##### Avoid the nav bar overlapping head... | 16 | 1.777778 | 16 | 0 |
29ce3458d8474870805dd1439cf857d19519bfb1 | crypto/engine/eng_all.c | crypto/engine/eng_all.c | /*
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | /*
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... | Remove superfluous call to OPENSSL_cpuid_setup | Remove superfluous call to OPENSSL_cpuid_setup
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Kurt Roeckx <bb87b47479d83cec3c76132206933257ded727b2@roeckx.be>
Reviewed-by: Matt Caswell <1fa2ef4755a9226cb9a0a4840bd89b158ac71391@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9... | C | apache-2.0 | openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl | c | ## Code Before:
/*
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.open... | /*
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openss... | 3 | 0.115385 | 0 | 3 |
8413df377e4517c29d6627be7c03af6c99754c27 | lib/index.js | lib/index.js |
/**
* Dependencies
* --------------------------------------------------------------------------*/
var Promise = require('bluebird'),
_ = require('underscore');
/**
* Returns a promise of a document's save operation
*/
function saveP(doc) {
return Promise.promisify(doc.save, doc)()
.then(_.last);... |
/**
* Dependencies
* --------------------------------------------------------------------------*/
var Promise = require('bluebird'),
_ = require('underscore');
/**
* Returns a promise of a document's save operation
*/
function saveP(doc) {
return Promise.promisify(doc.save, doc)()
.then(_.last);... | Tweak the findOneP function slightly | Tweak the findOneP function slightly
| JavaScript | mit | yamadapc/mongoose-bluebird-utils | javascript | ## Code Before:
/**
* Dependencies
* --------------------------------------------------------------------------*/
var Promise = require('bluebird'),
_ = require('underscore');
/**
* Returns a promise of a document's save operation
*/
function saveP(doc) {
return Promise.promisify(doc.save, doc)()
... |
/**
* Dependencies
* --------------------------------------------------------------------------*/
var Promise = require('bluebird'),
_ = require('underscore');
/**
* Returns a promise of a document's save operation
*/
function saveP(doc) {
return Promise.promisify(doc.sav... | 8 | 0.145455 | 3 | 5 |
c42b456db02cb3f785045307004efbd872be7bd2 | app/helpers/admin/avatar_helper.rb | app/helpers/admin/avatar_helper.rb | module Admin::AvatarHelper
def avatar_url(email, size)
gravatar_id = Digest::MD5.hexdigest(email.downcase)
"http://gravatar.com/avatar/#{gravatar_id}.png?s=#{size}"
end
def small_avatar_image(user)
image_tag avatar_url(user.email, 25)
end
def large_avatar_image(user)
image_tag avatar_url(use... | module Admin::AvatarHelper
def avatar_url(user, size)
gravatar_id = Digest::MD5.hexdigest(user.email.downcase)
"http://gravatar.com/avatar/#{gravatar_id}.png?s=#{size}"
end
def small_avatar_image(user)
image_tag avatar_url(user, 25)
end
def large_avatar_image(user)
image_tag avatar_url(user,... | Make interface of avatar helper methods consistent. | Make interface of avatar helper methods consistent.
| Ruby | mit | fw42/cubecomp,fw42/cubecomp,fw42/cubecomp,fw42/cubecomp | ruby | ## Code Before:
module Admin::AvatarHelper
def avatar_url(email, size)
gravatar_id = Digest::MD5.hexdigest(email.downcase)
"http://gravatar.com/avatar/#{gravatar_id}.png?s=#{size}"
end
def small_avatar_image(user)
image_tag avatar_url(user.email, 25)
end
def large_avatar_image(user)
image_ta... | module Admin::AvatarHelper
- def avatar_url(email, size)
? ^^^^
+ def avatar_url(user, size)
? ++ ^
- gravatar_id = Digest::MD5.hexdigest(email.downcase)
+ gravatar_id = Digest::MD5.hexdigest(user.email.downcase)
? +++++
"... | 8 | 0.571429 | 4 | 4 |
90cbf4c99471c8f9a6415a665186c9e7de0305c6 | .publish-docs.sh | .publish-docs.sh |
set -e
echo TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
echo TRAVIS_BRANCH=$TRAVIS_BRANCH
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing generated documentation..."
DIST_DIR="$(pwd)/dist"
# Clone gh-pages
cd
git config --global user.email "travis@travis-... |
set -e
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing generated documentation..."
DIST_DIR="$(pwd)/dist"
# Clone gh-pages
cd
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
git clone --quiet --branch=... | Revert debugging code for travis jsdoc publication troubleshooting. | Revert debugging code for travis jsdoc publication troubleshooting.
| Shell | mit | troykinsella/junkie,troykinsella/junkie,troykinsella/junkie | shell | ## Code Before:
set -e
echo TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
echo TRAVIS_BRANCH=$TRAVIS_BRANCH
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing generated documentation..."
DIST_DIR="$(pwd)/dist"
# Clone gh-pages
cd
git config --global user.email... |
set -e
-
- echo TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST
- echo TRAVIS_BRANCH=$TRAVIS_BRANCH
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing generated documentation..."
DIST_DIR="$(pwd)/dist"
# Clone gh-pages
cd
git config --glo... | 3 | 0.09375 | 0 | 3 |
7d888d853f4f6c1fd8ee8c80fa7598fe071628a1 | sample/src/main/java/com/squareup/seismic/sample/Demo.java | sample/src/main/java/com/squareup/seismic/sample/Demo.java | package com.squareup.seismic.sample;
import android.app.Activity;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.squareup.seismic.ShakeDetector;
import static android.view.Gravity.CENTER;
import static android.view.ViewGroup.Lay... | package com.squareup.seismic.sample;
import android.app.Activity;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.squareup.seismic.ShakeDetector;
import static android.view.Gravity.CENTER;
import static android.view.ViewGroup.Lay... | Add @Override annotation for implemented method | Add @Override annotation for implemented method
`hearShake` is implemented from `ShakeDetector.Listener`. | Java | apache-2.0 | square/seismic,square/seismic | java | ## Code Before:
package com.squareup.seismic.sample;
import android.app.Activity;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.squareup.seismic.ShakeDetector;
import static android.view.Gravity.CENTER;
import static android.vi... | package com.squareup.seismic.sample;
import android.app.Activity;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.squareup.seismic.ShakeDetector;
import static android.view.Gravity.CENTER;
import static andr... | 2 | 0.064516 | 1 | 1 |
5e6d62ce7a567282a88530a2db80b775c9c4406e | swf/core.py | swf/core.py |
import boto.swf
from . import settings
SETTINGS = settings.get()
class ConnectedSWFObject(object):
"""Authenticated object interface
Provides the instance attributes:
- `region`: name of the AWS region
- `connection`: to the SWF endpoint (`boto.swf.layer1.Layer1` object):
"""
__slots__ ... |
import boto.swf
from . import settings
SETTINGS = settings.get()
class ConnectedSWFObject(object):
"""Authenticated object interface
Provides the instance attributes:
- `region`: name of the AWS region
- `connection`: to the SWF endpoint (`boto.swf.layer1.Layer1` object):
"""
__slots__ ... | Fix ConnectedSWFObject: restrict attributes set by constructor | Fix ConnectedSWFObject: restrict attributes set by constructor
- credentials: SETTINGS | kwargs
- region: SETTINGS | kwargs | boto.swf.layer1.Layer1.DefaultRegionName
- connection: kwargs
| Python | mit | botify-labs/python-simple-workflow,botify-labs/python-simple-workflow | python | ## Code Before:
import boto.swf
from . import settings
SETTINGS = settings.get()
class ConnectedSWFObject(object):
"""Authenticated object interface
Provides the instance attributes:
- `region`: name of the AWS region
- `connection`: to the SWF endpoint (`boto.swf.layer1.Layer1` object):
""... |
import boto.swf
from . import settings
SETTINGS = settings.get()
class ConnectedSWFObject(object):
"""Authenticated object interface
Provides the instance attributes:
- `region`: name of the AWS region
- `connection`: to the SWF endpoint (`boto.swf.layer1.Layer1` ... | 11 | 0.333333 | 7 | 4 |
31afb24d29bf9b6c238929029e8384abdd72dea3 | README.md | README.md | [](https://secure.travis-ci.org/pagarme/pagarme-python)
[](https://coveralls.io/github/pagarme/pagarme-python)
Pagar.me Python library
## ... | [](https://secure.travis-ci.org/pagarme/pagarme-python)
[](https://coveralls.io/github/pagarme/pagarme-python)
Pagar.me Python library
## ... | Change broken link to docs | Change broken link to docs
Changed the link to Pagar.me's docs.
It was http://pagar.me/docs, returning 404 error.
Changed to https://docs.pagar.me/, right link. | Markdown | mit | pagarme/pagarme-python | markdown | ## Code Before:
[](https://secure.travis-ci.org/pagarme/pagarme-python)
[](https://coveralls.io/github/pagarme/pagarme-python)
Pagar.me Pyt... | [](https://secure.travis-ci.org/pagarme/pagarme-python)
[](https://coveralls.io/github/pagarme/pagarme-python)
Pagar.me Python libr... | 2 | 0.086957 | 1 | 1 |
8dc80a493011b7d41d81473211635c4927c8e5f4 | common.sh | common.sh | sudo -v
# We need to distinguish sources and binary packages for Brew & Cask on OSX
COMMON_PACKAGES="git vim jnettop hfsutils unrar subversion colordiff faac flac lame x264 inkscape graphviz qemu lftp shntool testdisk fdupes recode pngcrush exiftool rtmpdump optipng colortail colorsvn mercurial"
BIN_PACKAGES="audacity... | sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# We need to distinguish sources and binary packages for Brew & Cask on OSX
COMMON_PACKAGES="git vim jnettop hfsutils unrar subversion ack colordiff faac fl... | Add some more Python packages. | Add some more Python packages.
| Shell | bsd-2-clause | kdeldycke/dotfiles,kdeldycke/dotfiles | shell | ## Code Before:
sudo -v
# We need to distinguish sources and binary packages for Brew & Cask on OSX
COMMON_PACKAGES="git vim jnettop hfsutils unrar subversion colordiff faac flac lame x264 inkscape graphviz qemu lftp shntool testdisk fdupes recode pngcrush exiftool rtmpdump optipng colortail colorsvn mercurial"
BIN_PA... | sudo -v
+ # Keep-alive: update existing `sudo` time stamp until `.osx` has finished
+ while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
+
# We need to distinguish sources and binary packages for Brew & Cask on OSX
- COMMON_PACKAGES="git vim jnettop hfsutils unrar subversion colordi... | 7 | 0.636364 | 5 | 2 |
c55d38a42a3e733bb52ada6081e0ed26d998d2fe | features/project-gem.feature | features/project-gem.feature | Feature: project gem
To test that dependencies are installed correctly in a clean gemset, it is necessary to be able to install the project
under test's gem into the clean gemset while the dependencies are fetched using normal procedures, like
'gem install'.
Scenario:
When I build gem from project's "arub... | Feature: project gem
To test that dependencies are installed correctly in a clean gemset, it is necessary to be able to install the project
under test's gem into the clean gemset while the dependencies are fetched using normal procedures, like
'gem install'.
Scenario:
When I build gem from project's "arub... | Build gem in project gemset instead of clean gemset | Build gem in project gemset instead of clean gemset
MSP-11400
It shouldn't be expected that a gem can be built outside its native
gemset, so reorder steps so building the gem happens before using a
clean gemset.
| Cucumber | mit | rapid7/aruba,rapid7/aruba | cucumber | ## Code Before:
Feature: project gem
To test that dependencies are installed correctly in a clean gemset, it is necessary to be able to install the project
under test's gem into the clean gemset while the dependencies are fetched using normal procedures, like
'gem install'.
Scenario:
When I build gem from... | Feature: project gem
To test that dependencies are installed correctly in a clean gemset, it is necessary to be able to install the project
under test's gem into the clean gemset while the dependencies are fetched using normal procedures, like
'gem install'.
Scenario:
When I build gem from... | 4 | 0.235294 | 2 | 2 |
489f8ad90e228bc1d87c6094f3856b1eab85bc8a | app/views/groups/show.html.erb | app/views/groups/show.html.erb | <div class="container">
<div class="row-fluid">
<article class="span12">
<h3><%= @group.name %></h3>
<p>is meeting at <strong><%= @group.address %></strong><br>
on <strong><%= @group.time %>.</strong>
</p>
<p>There are <strong><%= @group.number_of_members %></strong> members.</p>
</article>
</div>
... | <div class="container">
<div class="row-fluid">
<article class="span12">
<h3><%= @group.name %></h3>
<p>is meeting at <strong><%= @group.address %></strong><br>
on <strong><%= @group.time %>.</strong>
</p>
<p>We prefer to have up to <strong><%= @group.number_of_members %></strong> members.</p>
</art... | Change statement of max participants | Change statement of max participants
| HTML+ERB | agpl-3.0 | rubycorns/rorganize.it,dondonz/rorganize.it,dondonz/rorganize.it,rubycorns/rorganize.it,dondonz/rorganize.it,rubycorns/rorganize.it,dondonz/rorganize.it,rubycorns/rorganize.it | html+erb | ## Code Before:
<div class="container">
<div class="row-fluid">
<article class="span12">
<h3><%= @group.name %></h3>
<p>is meeting at <strong><%= @group.address %></strong><br>
on <strong><%= @group.time %>.</strong>
</p>
<p>There are <strong><%= @group.number_of_members %></strong> members.</p>
</a... | <div class="container">
<div class="row-fluid">
<article class="span12">
<h3><%= @group.name %></h3>
<p>is meeting at <strong><%= @group.address %></strong><br>
on <strong><%= @group.time %>.</strong>
</p>
- <p>There are <strong><%= @group.number_of_members %></strong> members.</p>
? ... | 2 | 0.111111 | 1 | 1 |
03213983d4ab505b4534a5f3940014d5b5670e43 | native/make_native.sh | native/make_native.sh | if [[ $SL_BUILD_NATIVE == "false" ]]; then
echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
exit 0
fi
"$JAVA_HOME"/bin/native-image --tool:truffle -H:MaxRuntimeCompileMethods=1200 \
-cp ../language/target/simplelanguage.jar:../launcher/target/launcher-19.0.0-SNAPSHOT.jar \
... | if [[ $SL_BUILD_NATIVE == "false" ]]; then
echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
exit 0
fi
"$JAVA_HOME"/bin/native-image \
--macro:truffle --no-fallback --initialize-at-build-time \
-cp ../language/target/simplelanguage.jar:../launcher/target/launcher-19.0.0-SNA... | Use new native image flags. | Use new native image flags.
| Shell | mit | m50d/amalie | shell | ## Code Before:
if [[ $SL_BUILD_NATIVE == "false" ]]; then
echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
exit 0
fi
"$JAVA_HOME"/bin/native-image --tool:truffle -H:MaxRuntimeCompileMethods=1200 \
-cp ../language/target/simplelanguage.jar:../launcher/target/launcher-19.0.0-SN... | if [[ $SL_BUILD_NATIVE == "false" ]]; then
echo "Skipping the native image build because SL_BUILD_NATIVE is set to false."
exit 0
fi
- "$JAVA_HOME"/bin/native-image --tool:truffle -H:MaxRuntimeCompileMethods=1200 \
+ "$JAVA_HOME"/bin/native-image \
+ --macro:truffle --no-fallback --initialize-at-bui... | 3 | 0.375 | 2 | 1 |
28dc472fab5f9657957fb8b0c12f607a6a71af38 | src/scripts/modules/media/footer/metadata/metadata.less | src/scripts/modules/media/footer/metadata/metadata.less | @import "../../../../../styles/variables.less";
.media-footer > .metadata {
position: relative;
dl {
margin-bottom: 0;
> dt {
padding: 10px 0;
width: 225px;
text-align: left;
color: @gray-dark;
}
> dd {
margin: 0;
border-bottom: 1px solid @gray-lighter;
... | @import "../../../../../styles/variables.less";
.media-footer > .metadata {
position: relative;
> div > dl {
margin-bottom: 0;
> dt {
padding: 10px 0;
width: 225px;
text-align: left;
color: @gray-dark;
}
> dd {
margin: 0;
border-bottom: 1px solid @gray-lighter... | Use child selectors when possible | Use child selectors when possible
| Less | agpl-3.0 | katalysteducation/webview,katalysteducation/webview,katalysteducation/webview,carolinelane10/webview,katalysteducation/webview,Connexions/webview,dak/webview,Connexions/webview,dak/webview,Connexions/webview,dak/webview,Connexions/webview | less | ## Code Before:
@import "../../../../../styles/variables.less";
.media-footer > .metadata {
position: relative;
dl {
margin-bottom: 0;
> dt {
padding: 10px 0;
width: 225px;
text-align: left;
color: @gray-dark;
}
> dd {
margin: 0;
border-bottom: 1px solid @gray... | @import "../../../../../styles/variables.less";
.media-footer > .metadata {
position: relative;
- dl {
+ > div > dl {
margin-bottom: 0;
> dt {
padding: 10px 0;
width: 225px;
text-align: left;
color: @gray-dark;
}
> dd {
margin: 0;
... | 22 | 0.511628 | 11 | 11 |
63518f439577632667e653e7097f2938a33fb99e | res/xml/preferences_device.xml | res/xml/preferences_device.xml | <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Device">
<CheckBoxPreference
android:key="screenlock"
android:defaultValue="false"
android:title="Prevent display sleep"/>
<ListPreference android:en... | <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Device">
<CheckBoxPreference
android:key="screenlock"
android:defaultValue="false"
android:title="Prevent display sleep"/>
<ListPreference android:en... | Add a setting to disable sending ACRA crash reports | Add a setting to disable sending ACRA crash reports
| XML | apache-2.0 | irccloud/android,irccloud/android,irccloud/android,irccloud/android,irccloud/android | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Device">
<CheckBoxPreference
android:key="screenlock"
android:defaultValue="false"
android:title="Prevent display sleep"/>
<ListPrefe... | <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Device">
<CheckBoxPreference
android:key="screenlock"
android:defaultValue="false"
android:title="Prevent display sleep"/>
<ListP... | 5 | 0.3125 | 5 | 0 |
6889946ebb1c1559e0e1c7b83e1d7b1d6896e0b0 | tests/test_train_dictionary.py | tests/test_train_dictionary.py | import unittest
import zstd
class TestTrainDictionary(unittest.TestCase):
def test_no_args(self):
with self.assertRaises(TypeError):
zstd.train_dictionary()
def test_bad_args(self):
with self.assertRaises(TypeError):
zstd.train_dictionary(8192, u'foo')
with s... | import sys
import unittest
import zstd
if sys.version_info[0] >= 3:
int_type = int
else:
int_type = long
class TestTrainDictionary(unittest.TestCase):
def test_no_args(self):
with self.assertRaises(TypeError):
zstd.train_dictionary()
def test_bad_args(self):
with self.a... | Check for appropriate long type on Python 2 | Check for appropriate long type on Python 2
The extension always returns a long, which is not an "int" on
Python 2. Fix the test. | Python | bsd-3-clause | terrelln/python-zstandard,terrelln/python-zstandard,terrelln/python-zstandard,indygreg/python-zstandard,terrelln/python-zstandard,indygreg/python-zstandard,indygreg/python-zstandard,indygreg/python-zstandard | python | ## Code Before:
import unittest
import zstd
class TestTrainDictionary(unittest.TestCase):
def test_no_args(self):
with self.assertRaises(TypeError):
zstd.train_dictionary()
def test_bad_args(self):
with self.assertRaises(TypeError):
zstd.train_dictionary(8192, u'foo')... | + import sys
import unittest
import zstd
+
+
+ if sys.version_info[0] >= 3:
+ int_type = int
+ else:
+ int_type = long
class TestTrainDictionary(unittest.TestCase):
def test_no_args(self):
with self.assertRaises(TypeError):
zstd.train_dictionary()
def test... | 9 | 0.28125 | 8 | 1 |
bd4e1c3f511ac1163e39d99fdc8e70f261023c44 | setup/create_player_seasons.py | setup/create_player_seasons.py |
import concurrent.futures
from db.common import session_scope
from db.player import Player
from utils.player_data_retriever import PlayerDataRetriever
def create_player_seasons(simulation=False):
data_retriever = PlayerDataRetriever()
with session_scope() as session:
players = session.query(Playe... |
import concurrent.futures
from db.common import session_scope
from db.player import Player
from utils.player_data_retriever import PlayerDataRetriever
def create_player_seasons(simulation=False):
data_retriever = PlayerDataRetriever()
with session_scope() as session:
players = session.query(Playe... | Update player season retrieval function | Update player season retrieval function
| Python | mit | leaffan/pynhldb | python | ## Code Before:
import concurrent.futures
from db.common import session_scope
from db.player import Player
from utils.player_data_retriever import PlayerDataRetriever
def create_player_seasons(simulation=False):
data_retriever = PlayerDataRetriever()
with session_scope() as session:
players = ses... |
import concurrent.futures
from db.common import session_scope
from db.player import Player
from utils.player_data_retriever import PlayerDataRetriever
def create_player_seasons(simulation=False):
data_retriever = PlayerDataRetriever()
with session_scope() as session:
- ... | 3 | 0.1 | 1 | 2 |
6844cab28d4cc5c6126eede3b49c88e403989350 | Applications/opensense/CMakeLists.txt | Applications/opensense/CMakeLists.txt | if(OPENSIM_BUILD_INDIVIDUAL_APPS)
OpenSimAddApplication(NAME opensense)
endif()
if(BUILD_TESTING)
subdirs(test)
endif(BUILD_TESTING)
| OpenSimAddApplication(NAME opensense)
if(BUILD_TESTING)
subdirs(test)
endif(BUILD_TESTING)
| Build opensense executable regardless of the value of BUILD_INDIVIDUAL_APPS CMake variable | Build opensense executable regardless of the value of BUILD_INDIVIDUAL_APPS CMake variable
| Text | apache-2.0 | opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core | text | ## Code Before:
if(OPENSIM_BUILD_INDIVIDUAL_APPS)
OpenSimAddApplication(NAME opensense)
endif()
if(BUILD_TESTING)
subdirs(test)
endif(BUILD_TESTING)
## Instruction:
Build opensense executable regardless of the value of BUILD_INDIVIDUAL_APPS CMake variable
## Code After:
OpenSimAddApplication(NAME opensense)
... | - if(OPENSIM_BUILD_INDIVIDUAL_APPS)
- OpenSimAddApplication(NAME opensense)
? ----
+ OpenSimAddApplication(NAME opensense)
- endif()
if(BUILD_TESTING)
subdirs(test)
endif(BUILD_TESTING) | 4 | 0.571429 | 1 | 3 |
a52a9ad69a86c54910870071a4fe788ec9117b51 | 01-Go/01_hello_world/main.go | 01-Go/01_hello_world/main.go | package main
import "fmt"
func main() {
fmt.Printf("Hello World\n")
}
| package main
import "fmt"
func main() {
str := "Hello World"
fmt.Println(str)
}
| Update hello world to include a variable | Update hello world to include a variable
| Go | mit | sampov2/one-language-per-month-2015,sampov2/one-language-per-month-2015,sampov2/one-language-per-month-2015 | go | ## Code Before:
package main
import "fmt"
func main() {
fmt.Printf("Hello World\n")
}
## Instruction:
Update hello world to include a variable
## Code After:
package main
import "fmt"
func main() {
str := "Hello World"
fmt.Println(str)
}
| package main
import "fmt"
func main() {
- fmt.Printf("Hello World\n")
+ str := "Hello World"
+ fmt.Println(str)
} | 3 | 0.428571 | 2 | 1 |
9157ef16b964ea01633bd648b41df57a9422616b | groovy/LibraryJobs.groovy | groovy/LibraryJobs.groovy | /*
* Copyright (c) 2016-2019 SIL International
* This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
*/
for (repo in ['icu-dotnet', 'icu4c', 'SIL.BuildTasks']) {
multibranchPipelineJob(repo) {
description """<p>Builds of ${repo}</p>
<p>The job is created by the DSL plugin from <... | /*
* Copyright (c) 2016-2019 SIL International
* This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
*/
for (repo in ['icu-dotnet', 'icu4c', 'SIL.BuildTasks']) {
multibranchPipelineJob(repo) {
description """<p>Builds of ${repo}</p>
<p>The job is created by the DSL plugin from <... | Update to new location of Jenkinsfile | [icu4c] Update to new location of Jenkinsfile
The ICU project restructured their repo. Since we re-applied our
previous patches the location for Jenkinsfile now also moved. This
change makes the necessary adjustment.
Change-Id: I74749a3331df036609d81936fcffa246cdcd6772
| Groovy | mit | sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts,sillsdev/ci-builder-scripts | groovy | ## Code Before:
/*
* Copyright (c) 2016-2019 SIL International
* This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
*/
for (repo in ['icu-dotnet', 'icu4c', 'SIL.BuildTasks']) {
multibranchPipelineJob(repo) {
description """<p>Builds of ${repo}</p>
<p>The job is created by the D... | /*
* Copyright (c) 2016-2019 SIL International
* This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
*/
for (repo in ['icu-dotnet', 'icu4c', 'SIL.BuildTasks']) {
multibranchPipelineJob(repo) {
description """<p>Builds of ${repo}</p>
<p>The job is created by the... | 8 | 0.195122 | 8 | 0 |
c85a1cf83761db41ca2b0ebbbc4737e7dcc6a464 | bin/build_el7_docker_image.sh | bin/build_el7_docker_image.sh |
set -evx
SCRIPT_NAME=$(basename "$0")
TAG="$1"
if [ -z "$TAG" ]; then
echo "Usage: ${SCRIPT_NAME} TAG" >&2
exit 1
fi
rm -rf tmp/docker
mkdir -p tmp/docker/rpms
cp dist/onearth-*.el7.*.rpm tmp/docker/rpms/
cp docker/el7/run-onearth.sh tmp/docker/run-onearth.sh
echo "FROM $(cat docker/el7/gibs-gdal-image.txt)" >... |
set -e
if ! ls dist/gibs-gdal-*.el7.*.rpm >/dev/null 2>&1; then
echo "No RPMs found in ./dist/" >&2
exit 1
fi
SCRIPT_NAME=$(basename "$0")
TAG="$1"
if [ -z "$TAG" ]; then
echo "Usage: ${SCRIPT_NAME} TAG" >&2
exit 1
fi
rm -rf tmp/docker
mkdir -p tmp/docker/rpms
cp dist/onearth-*.el7.*.rpm tmp/docker/rpms/
c... | Check for RPMs before building Docker image | Check for RPMs before building Docker image
| Shell | apache-2.0 | nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth,nasa-gibs/onearth | shell | ## Code Before:
set -evx
SCRIPT_NAME=$(basename "$0")
TAG="$1"
if [ -z "$TAG" ]; then
echo "Usage: ${SCRIPT_NAME} TAG" >&2
exit 1
fi
rm -rf tmp/docker
mkdir -p tmp/docker/rpms
cp dist/onearth-*.el7.*.rpm tmp/docker/rpms/
cp docker/el7/run-onearth.sh tmp/docker/run-onearth.sh
echo "FROM $(cat docker/el7/gibs-gd... |
- set -evx
? --
+ set -e
+
+ if ! ls dist/gibs-gdal-*.el7.*.rpm >/dev/null 2>&1; then
+ echo "No RPMs found in ./dist/" >&2
+ exit 1
+ fi
SCRIPT_NAME=$(basename "$0")
TAG="$1"
if [ -z "$TAG" ]; then
echo "Usage: ${SCRIPT_NAME} TAG" >&2
exit 1
fi
rm -rf tmp/docker
mkdir -p tmp... | 13 | 0.5 | 9 | 4 |
02951bd1b265db750afbbbfc9e8ae58a863cd0b7 | lib/pagerduty/clt/config.rb | lib/pagerduty/clt/config.rb | require 'dotenv'
require 'hashie'
module Pagerduty
module CLT
class Config
include PathHelper
DEFAULT_CONFIG_FILE = File.join(ENV['HOME'], '.pagerduty_env')
def initialize(config_file = DEFAULT_CONFIG_FILE)
@config_file = config_file
Dotenv.load(config_file)
end
d... | require 'dotenv'
require 'hashie'
module Pagerduty
module CLT
class Config
include PathHelper
DEFAULT_CONFIG_FILE = File.join(ENV['HOME'], '.pagerduty_env')
def initialize(config_file = DEFAULT_CONFIG_FILE)
@config_file = config_file
Dotenv.load(config_file)
end
d... | Use new User.find in Config | Use new User.find in Config
| Ruby | mit | ashmckenzie/pagerduty-clt | ruby | ## Code Before:
require 'dotenv'
require 'hashie'
module Pagerduty
module CLT
class Config
include PathHelper
DEFAULT_CONFIG_FILE = File.join(ENV['HOME'], '.pagerduty_env')
def initialize(config_file = DEFAULT_CONFIG_FILE)
@config_file = config_file
Dotenv.load(config_file)
... | require 'dotenv'
require 'hashie'
module Pagerduty
module CLT
class Config
include PathHelper
DEFAULT_CONFIG_FILE = File.join(ENV['HOME'], '.pagerduty_env')
def initialize(config_file = DEFAULT_CONFIG_FILE)
@config_file = config_file
Dotenv.load(confi... | 5 | 0.116279 | 1 | 4 |
58cef8ab8c056325f53ecf65c362a08a9400579b | source/templates/subject.html.haml | source/templates/subject.html.haml | - content_for(:subject_title, subject_title)
%h1= subject_title
%ol.video-list{ start: pages.values.first.metadata.number }
- pages.each do |page, page_data|
%li
= link_to "/#{subject_url}/#{page_data.metadata.url}" do
= image_tag "http://img.youtube.com/vi/#{page_data.video_url}/0.jpg", {alt: "#{... | - content_for(:subject_title, subject_title)
%h1= subject_title
%ol.video-list{ start: pages.values.first.metadata.number }
- pages.each do |page, page_data|
%li
= link_to "/#{subject_url}/#{page_data.metadata.url}" do
= image_tag "http://img.youtube.com/vi/#{page_data.video_url}/0.jpg", {alt: "#{... | Make video number optional in subject pages | Make video number optional in subject pages
| Haml | mit | DrummerHead/aprend.io,DrummerHead/aprend.io,DrummerHead/aprend.io | haml | ## Code Before:
- content_for(:subject_title, subject_title)
%h1= subject_title
%ol.video-list{ start: pages.values.first.metadata.number }
- pages.each do |page, page_data|
%li
= link_to "/#{subject_url}/#{page_data.metadata.url}" do
= image_tag "http://img.youtube.com/vi/#{page_data.video_url}/0... | - content_for(:subject_title, subject_title)
%h1= subject_title
%ol.video-list{ start: pages.values.first.metadata.number }
- pages.each do |page, page_data|
%li
= link_to "/#{subject_url}/#{page_data.metadata.url}" do
= image_tag "http://img.youtube.com/vi/#{page_data.video_url}... | 3 | 0.272727 | 2 | 1 |
8f993412a0110085fee10331daecfb3d36973518 | __init__.py | __init__.py |
import supybot
import supybot.world as world
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = supybot.authors.unkn... |
import supybot
import supybot.world as world
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = supybot.authors.unkn... | Add reload to init for config | Add reload to init for config
| Python | mit | reticulatingspline/Scores,cottongin/Scores | python | ## Code Before:
import supybot
import supybot.world as world
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = supy... |
import supybot
import supybot.world as world
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = ... | 1 | 0.03125 | 1 | 0 |
7beaff19fd76c1c9b93f121c27d4ec5da54102b2 | packages/re/releaser.yaml | packages/re/releaser.yaml | homepage: ''
changelog-type: markdown
hash: 5d13c74cc134ed6698b6a1602c27f417c100206a55a5c3dc95ad46c299fae2a3
test-bench-deps: {}
maintainer: domen@dev.si
synopsis: Automation of Haskell package release process
changelog: |
# Revision history for releaser
## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an ... | homepage: ''
changelog-type: markdown
hash: 7dcbbcdf6e86cf9fc2d41627fd029d6fa7e2b5706c95fc5f9b355d12d05dc3ce
test-bench-deps: {}
maintainer: domen@dev.si
synopsis: Automation of Haskell package release process
changelog: "# Revision history for releaser\n\n## 0.2.0.0 -- 2019-09-16\n\n* Write
cabal versions using a re... | Update from Hackage at 2019-09-16T15:16:50Z | Update from Hackage at 2019-09-16T15:16:50Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: markdown
hash: 5d13c74cc134ed6698b6a1602c27f417c100206a55a5c3dc95ad46c299fae2a3
test-bench-deps: {}
maintainer: domen@dev.si
synopsis: Automation of Haskell package release process
changelog: |
# Revision history for releaser
## 0.1.0.0 -- YYYY-mm-dd
* First version.... | homepage: ''
changelog-type: markdown
- hash: 5d13c74cc134ed6698b6a1602c27f417c100206a55a5c3dc95ad46c299fae2a3
+ hash: 7dcbbcdf6e86cf9fc2d41627fd029d6fa7e2b5706c95fc5f9b355d12d05dc3ce
test-bench-deps: {}
maintainer: domen@dev.si
synopsis: Automation of Haskell package release process
+ changelog: "# Revision ... | 20 | 0.769231 | 11 | 9 |
a6fd829669aa8c3c42afd0750e8b52b95d716dc8 | scripts-available/CDB_UserTables.sql | scripts-available/CDB_UserTables.sql | -- Function returning list of cartodb user tables
--
-- The optional argument restricts the result to tables
-- of the specified access type.
--
-- Currently accepted permissions are: 'public', 'private' or 'all'
--
CREATE OR REPLACE FUNCTION CDB_UserTables(perm text DEFAULT 'all')
RETURNS SETOF name
AS $$
SELECT c.re... | -- Function returning list of cartodb user tables
--
-- The optional argument restricts the result to tables
-- of the specified access type.
--
-- Currently accepted permissions are: 'public', 'private' or 'all'
--
DROP FUNCTION IF EXISTS cdb_usertables(text);
CREATE OR REPLACE FUNCTION CDB_UserTables(perm text DEFAUL... | Fix for upgrade issue from 0.7.4 to 0.8.0 | Fix for upgrade issue from 0.7.4 to 0.8.0
This fixes the following problem found during testing:
```
ALTER EXTENSION cartodb UPDATE TO '0.8.0';
ERROR: cannot change return type of existing function
HINT: Use DROP FUNCTION cdb_usertables(text) first.
```
| SQL | bsd-3-clause | CartoDB/cartodb-postgresql,CartoDB/cartodb-postgresql | sql | ## Code Before:
-- Function returning list of cartodb user tables
--
-- The optional argument restricts the result to tables
-- of the specified access type.
--
-- Currently accepted permissions are: 'public', 'private' or 'all'
--
CREATE OR REPLACE FUNCTION CDB_UserTables(perm text DEFAULT 'all')
RETURNS SETOF name
AS... | -- Function returning list of cartodb user tables
--
-- The optional argument restricts the result to tables
-- of the specified access type.
--
-- Currently accepted permissions are: 'public', 'private' or 'all'
--
+ DROP FUNCTION IF EXISTS cdb_usertables(text);
CREATE OR REPLACE FUNCTION CDB_UserTable... | 1 | 0.033333 | 1 | 0 |
a5cc0d6467bf46563f1cf56586af1227273353b0 | TTOpenInAppActivity.podspec | TTOpenInAppActivity.podspec | Pod::Spec.new do |s|
s.name = 'TTOpenInAppActivity'
s.version = '1.0'
s.license = 'MIT'
s.summary = 'TTOpenInAppActivity is a UIActivity subclass that provides an "Open In ..." action to a UIActivityViewController.'
s.description = <<-DESC
TTOpenInAppActivity is... | Pod::Spec.new do |s|
s.name = 'TTOpenInAppActivity'
s.version = '1.0'
s.license = { :type => 'MIT', :file => 'README.md' }
s.summary = 'TTOpenInAppActivity is a UIActivity subclass that provides an "Open In ..." action to a UIActivityViewController.'
s.description = <<-DESC
... | Fix podspec for version 1.0 | Fix podspec for version 1.0 | Ruby | mit | jum/TTOpenInAppActivity,honkmaster/TTOpenInAppActivity,WolfgangD/TTOpenInAppActivity | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = 'TTOpenInAppActivity'
s.version = '1.0'
s.license = 'MIT'
s.summary = 'TTOpenInAppActivity is a UIActivity subclass that provides an "Open In ..." action to a UIActivityViewController.'
s.description = <<-DESC
TTOpen... | Pod::Spec.new do |s|
s.name = 'TTOpenInAppActivity'
s.version = '1.0'
- s.license = 'MIT'
+ s.license = { :type => 'MIT', :file => 'README.md' }
s.summary = 'TTOpenInAppActivity is a UIActivity subclass that provides an "Open In ..." action to a UIActivityViewController.'
... | 4 | 0.210526 | 2 | 2 |
b8ec971aac7b60fe701cae1daa09f6702890be4a | Sources/Compatibility.swift | Sources/Compatibility.swift | //
// Compatibility.swift
// BonMot
//
// Created by Brian King on 8/24/16.
// Copyright © 2016 Raizlabs. All rights reserved.
//
#if os(OSX)
import AppKit
#else
import UIKit
#endif
/// This file declares extensions to system types to provide a compatible API
/// between Swift iOS, macOS, watchOS, and tvO... | //
// Compatibility.swift
// BonMot
//
// Created by Brian King on 8/24/16.
// Copyright © 2016 Raizlabs. All rights reserved.
//
#if os(OSX)
import AppKit
#else
import UIKit
#endif
/// This file declares extensions to system types to provide a compatible API
/// between Swift iOS, macOS, watchOS, and tvO... | Extend NSLayoutConstraint only on platforms where it exists. | Extend NSLayoutConstraint only on platforms where it exists.
| Swift | mit | Raizlabs/BonMot,Raizlabs/BonMot,Raizlabs/BonMot | swift | ## Code Before:
//
// Compatibility.swift
// BonMot
//
// Created by Brian King on 8/24/16.
// Copyright © 2016 Raizlabs. All rights reserved.
//
#if os(OSX)
import AppKit
#else
import UIKit
#endif
/// This file declares extensions to system types to provide a compatible API
/// between Swift iOS, macOS, ... | //
// Compatibility.swift
// BonMot
//
// Created by Brian King on 8/24/16.
// Copyright © 2016 Raizlabs. All rights reserved.
//
#if os(OSX)
import AppKit
#else
import UIKit
#endif
/// This file declares extensions to system types to provide a compatible API
/// between Sw... | 10 | 0.322581 | 6 | 4 |
a61ba61a3fdd2db4555a1b524f8ea1fcf16623b7 | overcloud-resource-registry-puppet.yaml | overcloud-resource-registry-puppet.yaml | resource_registry:
OS::TripleO::BlockStorage: puppet/cinder-storage-puppet.yaml
OS::TripleO::Compute: puppet/compute-puppet.yaml
OS::TripleO::SoftwareDeployment: OS::Heat::StructuredDeployment
OS::TripleO::Controller: puppet/controller-puppet.yaml
OS::TripleO::ObjectStorage: puppet/swift-storage-puppet.yaml
... | resource_registry:
OS::TripleO::BlockStorage: puppet/cinder-storage-puppet.yaml
OS::TripleO::Compute: puppet/compute-puppet.yaml
OS::TripleO::SoftwareDeployment: OS::Heat::StructuredDeployment
OS::TripleO::Controller: puppet/controller-puppet.yaml
OS::TripleO::ObjectStorage: puppet/swift-storage-puppet.yaml
... | Correct the parameter_defaults section name. | Correct the parameter_defaults section name.
Also, we can actually uncomment this now that heatclient 0.3
has been released.
Change-Id: I0b4ce13f1426c364ea7921596022e5165e025fdb
| YAML | apache-2.0 | trozet/opnfv-tht,trozet/opnfv-tht,wyg3958/tripleo-heat-templates,bcrochet/tripleo-heat-templates,rdo-management/tripleo-heat-templates,bcrochet/tripleo-heat-templates,trozet/opnfv-tht,dprince/tripleo-heat-templates,openstack/tripleo-heat-templates,bcrochet/tripleo-heat-templates,wyg3958/tripleo-heat-templates,openstack... | yaml | ## Code Before:
resource_registry:
OS::TripleO::BlockStorage: puppet/cinder-storage-puppet.yaml
OS::TripleO::Compute: puppet/compute-puppet.yaml
OS::TripleO::SoftwareDeployment: OS::Heat::StructuredDeployment
OS::TripleO::Controller: puppet/controller-puppet.yaml
OS::TripleO::ObjectStorage: puppet/swift-stora... | resource_registry:
OS::TripleO::BlockStorage: puppet/cinder-storage-puppet.yaml
OS::TripleO::Compute: puppet/compute-puppet.yaml
OS::TripleO::SoftwareDeployment: OS::Heat::StructuredDeployment
OS::TripleO::Controller: puppet/controller-puppet.yaml
OS::TripleO::ObjectStorage: puppet/swift-storage-p... | 5 | 0.238095 | 2 | 3 |
0f5a632d625d65f4edf9e31efa75708a79eee16c | CaseStudies/glass/Implementations/Python_Simplified/Implementation/readTable.py | CaseStudies/glass/Implementations/Python_Simplified/Implementation/readTable.py |
import numpy as np
def read_num_col(filename):
with open(filename, 'rb') as f:
num_col = [f.readline()]
num_col = np.genfromtxt(num_col, delimiter=',', dtype=str)
num_col = num_col[1::2].astype(float)
return num_col
def read_array1(filename, length):
array1 = np.loadtxt(filenam... |
def read_num_col(filename):
with open(filename, "r") as f:
line = f.readline()
z_array = line.split(",")[1::2]
z_array = [float(i) for i in z_array]
return z_array
def read_array1(filename, length):
with open(filename, "r") as f:
lines = f.readlines()
lines = lines[1:]
... | Remove numpy dependency from glassbr python code | Remove numpy dependency from glassbr python code
| Python | bsd-2-clause | JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software | python | ## Code Before:
import numpy as np
def read_num_col(filename):
with open(filename, 'rb') as f:
num_col = [f.readline()]
num_col = np.genfromtxt(num_col, delimiter=',', dtype=str)
num_col = num_col[1::2].astype(float)
return num_col
def read_array1(filename, length):
array1 = np... | -
- import numpy as np
def read_num_col(filename):
- with open(filename, 'rb') as f:
? ^ ^^
+ with open(filename, "r") as f:
? ^ ^
- num_col = [f.readline()]
? ^^^^^^ - -
+ line = f.readline()
? ++ ^
+ ... | 32 | 1.6 | 19 | 13 |
e2b86752f9b9718cc42aaf5fc8d8293c3c43181f | book/1-06-0-math.md | book/1-06-0-math.md | <ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/book/">Book</a></li>
<li><a href="/book/1-0-0-overview/">Part One: Grokking Lisp</a></li>
<li class="active">Numbers and Math</li>
</ol>
# Numbers and Math
> "Relevant quote..."
> <footer>Source</footer>
Chapter text.
* Numeric Types
* Buil... | <ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/book/">Book</a></li>
<li><a href="/book/1-0-0-overview/">Part One: Grokking Lisp</a></li>
<li class="active">Numbers and Math</li>
</ol>
# Numbers and Math
> "The 3-legged stool of understanding is held up by history, languages, and mathemati... | Add list of exercise material to ch. 1.6 | Add list of exercise material to ch. 1.6
| Markdown | mit | tang-junjie/llthw,LispTO/llthw,LispTO/llthw,LispTO/llthw,tang-junjie/llthw,tang-junjie/llthw | markdown | ## Code Before:
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/book/">Book</a></li>
<li><a href="/book/1-0-0-overview/">Part One: Grokking Lisp</a></li>
<li class="active">Numbers and Math</li>
</ol>
# Numbers and Math
> "Relevant quote..."
> <footer>Source</footer>
Chapter text.
* Nume... | <ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/book/">Book</a></li>
<li><a href="/book/1-0-0-overview/">Part One: Grokking Lisp</a></li>
<li class="active">Numbers and Math</li>
</ol>
# Numbers and Math
- > "Relevant quote..."
- > <footer>Source</footer>
+ > "The 3-legge... | 26 | 1 | 17 | 9 |
98d6851b6ef72e24a26c49d26df49deb391223c9 | source/assets/css/_base.scss | source/assets/css/_base.scss |
/* ========================================================================== *
$ Imports
* ========================================================================== */
// Compass
@import "compass/css3";
@import "compass/typography/vertical_rhythm";
// Susy grid system
@import "susy";
// Fonts
@import url(http... |
/* ========================================================================== *
$ Imports
* ========================================================================== */
// Compass
@import "compass/css3";
@import "compass/typography/vertical_rhythm";
// Susy grid system
@import "susy";
// Fonts
@import url(http... | Change Header and Link colors | Change Header and Link colors
| SCSS | mit | vocksel/my-website,VoxelDavid/voxeldavid-website,vocksel/my-website,VoxelDavid/voxeldavid-website | scss | ## Code Before:
/* ========================================================================== *
$ Imports
* ========================================================================== */
// Compass
@import "compass/css3";
@import "compass/typography/vertical_rhythm";
// Susy grid system
@import "susy";
// Fonts
... |
/* ========================================================================== *
$ Imports
* ========================================================================== */
// Compass
@import "compass/css3";
@import "compass/typography/vertical_rhythm";
// Susy grid system
@import "susy";
... | 6 | 0.136364 | 3 | 3 |
a5dcda0ed258722b556442ca0bfd609847554f94 | .travis.yml | .travis.yml | language: go
go:
- 1.7
- 1.8
notifications:
email: false
before_install:
- go get -u github.com/golang/lint/golint
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/unused
script:
# $pkgs avoids testing anything in vendor/
... | language: go
go:
- 1.7
- 1.8
notifications:
email: false
before_install:
- go get -u github.com/golang/lint/golint
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/unused
script:
- go_files=$(find . -iname '*.go' | grep -v ... | Exclude vendor/ from gofmt -s check | Exclude vendor/ from gofmt -s check
| YAML | mit | y0ssar1an/qq,y0ssar1an/qq,y0ssar1an/q | yaml | ## Code Before:
language: go
go:
- 1.7
- 1.8
notifications:
email: false
before_install:
- go get -u github.com/golang/lint/golint
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/unused
script:
# $pkgs avoids testing anyth... | language: go
go:
- 1.7
- 1.8
notifications:
email: false
before_install:
- go get -u github.com/golang/lint/golint
- go get -u honnef.co/go/tools/cmd/gosimple
- go get -u honnef.co/go/tools/cmd/staticcheck
- go get -u honnef.co/go/tools/cmd/unused
script:
- # $pkgs av... | 4 | 0.16 | 2 | 2 |
d0757aa36e63dfbdacbde25fdeeb9cd47fcecfa8 | lib/json_test_data/data_structures/number.rb | lib/json_test_data/data_structures/number.rb | require_relative "./helpers/number_helper"
module JsonTestData
class Number
extend NumberHelper
class << self
def create(schema)
factor, minimum, maximum = schema.fetch(:multipleOf, nil), schema.fetch(:minimum, -infinity), schema.fetch(:maximum, infinity)
num = factor || 1
ste... | require_relative "./helpers/number_helper"
module JsonTestData
class Number
extend NumberHelper
class << self
def create(schema)
factor = schema.fetch(:multipleOf, nil)
minimum, maximum = schema.fetch(:minimum, -infinity), schema.fetch(:maximum, infinity)
num = factor || 1
... | Fix issue with adjustments for maximum and minimum | Fix issue with adjustments for maximum and minimum
| Ruby | mit | danascheider/json_test_data | ruby | ## Code Before:
require_relative "./helpers/number_helper"
module JsonTestData
class Number
extend NumberHelper
class << self
def create(schema)
factor, minimum, maximum = schema.fetch(:multipleOf, nil), schema.fetch(:minimum, -infinity), schema.fetch(:maximum, infinity)
num = factor ... | require_relative "./helpers/number_helper"
module JsonTestData
class Number
extend NumberHelper
class << self
def create(schema)
+ factor = schema.fetch(:multipleOf, nil)
- factor, minimum, maximum = schema.fetch(:multipleOf, nil), schema.fetch(:minimum, -infinity), sch... | 5 | 0.263158 | 3 | 2 |
6431033412c682c9684885370c0d4de1c0767667 | spec/agharta/user_stream_spec.rb | spec/agharta/user_stream_spec.rb |
require 'spec_helper'
describe Agharta::UserStream do
before do
@context = DummyRecipe.new
@stream = Agharta::UserStream.new(@context)
@client = Twitter::Client.new
Twitter::Client.stub(:new).and_return(@client)
end
describe '#log_path' do
it 'should build from context name' do
File.b... |
require 'spec_helper'
describe Agharta::UserStream do
before do
@context = DummyRecipe.new
@stream = Agharta::UserStream.new(@context)
@client = Twitter::Client.new
Twitter::Client.stub(:new).and_return(@client)
end
describe '#log_path' do
it 'should build from context name' do
File.b... | Fix MultiLogger spec to use dummy logger. | Fix MultiLogger spec to use dummy logger.
| Ruby | mit | mitukiii/agharta | ruby | ## Code Before:
require 'spec_helper'
describe Agharta::UserStream do
before do
@context = DummyRecipe.new
@stream = Agharta::UserStream.new(@context)
@client = Twitter::Client.new
Twitter::Client.stub(:new).and_return(@client)
end
describe '#log_path' do
it 'should build from context name'... |
require 'spec_helper'
describe Agharta::UserStream do
before do
@context = DummyRecipe.new
@stream = Agharta::UserStream.new(@context)
@client = Twitter::Client.new
Twitter::Client.stub(:new).and_return(@client)
end
describe '#log_path' do
it 'should build from con... | 6 | 0.2 | 6 | 0 |
6c67cc46b828c35e02d763f7a40b8e56b9d9b3cc | app/assets/stylesheets/resources.css.scss | app/assets/stylesheets/resources.css.scss | // Place all the styles related to the resources controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.main-container {
padding-top: 70px;
}
.well {
background:rgba(255,255,255, 0.85);
}
.navbar-default {
background: rgba(255, 255, 2... | // Place all the styles related to the resources controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.main-container {
padding-top: 70px;
}
.navbar-default {
border: none;
color:#777;
display: inline-block;
text-align: center;
... | Remove transparent background from header and wells | Remove transparent background from header and wells
| SCSS | mit | amberbit/programming-resources | scss | ## Code Before:
// Place all the styles related to the resources controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.main-container {
padding-top: 70px;
}
.well {
background:rgba(255,255,255, 0.85);
}
.navbar-default {
background: ... | // Place all the styles related to the resources controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.main-container {
padding-top: 70px;
}
- .well {
- background:rgba(255,255,255, 0.85);
- }
-
.navbar-default {
- ... | 5 | 0.108696 | 0 | 5 |
989771478832213cc280e8ccc9b9611491f8151d | CHANGES.rst | CHANGES.rst | v4.0.0
======
* First public release, based on CherryPy 3.2.2.
| v4.0.0
======
* First public release, based on CherryPy 3.2.2, plus...
* #1: Replace the hard-coded state transitions with a
generic transition Graph.
| Update changelog to include recent changes. | Update changelog to include recent changes.
| reStructuredText | bsd-3-clause | cherrypy/magicbus | restructuredtext | ## Code Before:
v4.0.0
======
* First public release, based on CherryPy 3.2.2.
## Instruction:
Update changelog to include recent changes.
## Code After:
v4.0.0
======
* First public release, based on CherryPy 3.2.2, plus...
* #1: Replace the hard-coded state transitions with a
generic transition Graph.
| v4.0.0
======
- * First public release, based on CherryPy 3.2.2.
+ * First public release, based on CherryPy 3.2.2, plus...
? ++++++ ++
+
+ * #1: Replace the hard-coded state transitions with a
+ generic transition Graph. | 5 | 1.25 | 4 | 1 |
115a5ce93abd7c9769241ab0f0c3e62817021931 | svq.java | svq.java | // Get JAFFE database from http://www.kasrl.org/jaffe_info.html
// Extract pics in folder named "jaffe"
// package image_test;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
... | // Get JAFFE database from http://www.kasrl.org/jaffe_info.html
// Extract pics in folder named "jaffe"
// package image_test;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
... | Convert bmp to byte array | Convert bmp to byte array
| Java | mit | giuseppecuccu/jsvq,giuseppecuccu/jsvq | java | ## Code Before:
// Get JAFFE database from http://www.kasrl.org/jaffe_info.html
// Extract pics in folder named "jaffe"
// package image_test;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import javax.im... | // Get JAFFE database from http://www.kasrl.org/jaffe_info.html
// Extract pics in folder named "jaffe"
// package image_test;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java... | 10 | 0.4 | 10 | 0 |
205da5364cf2bfb5c216fd2c2b05d0f44109c451 | src/main/pig/fhr_payload_errors.pig | src/main/pig/fhr_payload_errors.pig | register 'akela-0.5-SNAPSHOT.jar'
register 'fhr-toolbox-0.1-SNAPSHOT.jar'
register 'jackson-core-2.1.1.jar'
register 'jackson-databind-2.1.1.jar'
register 'jackson-annotations-2.1.1.jar'
SET pig.logfile fhr_payload_errors.log;
/* SET default_parallel 8; */
SET pig.tmpfilecompression true;
SET pig.tmpfilecompression.co... | register 'akela-0.5-SNAPSHOT.jar'
register 'fhr-toolbox-0.1-SNAPSHOT.jar'
register 'jackson-core-2.1.1.jar'
register 'jackson-databind-2.1.1.jar'
register 'jackson-annotations-2.1.1.jar'
SET pig.logfile fhr_payload_errors.log;
/* SET default_parallel 8; */
SET pig.tmpfilecompression true;
SET pig.tmpfilecompression.co... | Add build_id to payload errors output. | Add build_id to payload errors output.
| PigLatin | apache-2.0 | SamPenrose/fhr-toolbox,SamPenrose/fhr-toolbox,SamPenrose/fhr-toolbox,mozilla-metrics/fhr-toolbox,SamPenrose/fhr-toolbox,SamPenrose/fhr-toolbox,mozilla-metrics/fhr-toolbox,mozilla-metrics/fhr-toolbox,mozilla-metrics/fhr-toolbox,mozilla-metrics/fhr-toolbox | piglatin | ## Code Before:
register 'akela-0.5-SNAPSHOT.jar'
register 'fhr-toolbox-0.1-SNAPSHOT.jar'
register 'jackson-core-2.1.1.jar'
register 'jackson-databind-2.1.1.jar'
register 'jackson-annotations-2.1.1.jar'
SET pig.logfile fhr_payload_errors.log;
/* SET default_parallel 8; */
SET pig.tmpfilecompression true;
SET pig.tmpfi... | register 'akela-0.5-SNAPSHOT.jar'
register 'fhr-toolbox-0.1-SNAPSHOT.jar'
register 'jackson-core-2.1.1.jar'
register 'jackson-databind-2.1.1.jar'
register 'jackson-annotations-2.1.1.jar'
SET pig.logfile fhr_payload_errors.log;
/* SET default_parallel 8; */
SET pig.tmpfilecompression true;
SET pig.t... | 2 | 0.095238 | 1 | 1 |
8442aac98f6ef7a874506d9b35d628787a168b6b | src/config/device-manager/contrail-device-manager.ini | src/config/device-manager/contrail-device-manager.ini | [program:contrail-device-manager]
command=/usr/bin/contrail-device-manager --conf_file /etc/contrail/device_manager.conf
priority=450
autostart=true
autorestart=true
killasgroup=true
stopsignal=KILL
redirect_stderr=true
stdout_logfile=/var/log/contrail/contrail-device-manager-stdout.log
stderr_logfile=/dev/null
exitcod... | [program:contrail-device-manager]
command=/usr/bin/contrail-device-manager --conf_file /etc/contrail/contrail-device-manager.conf
priority=450
autostart=true
autorestart=true
killasgroup=true
stopsignal=KILL
redirect_stderr=true
stdout_logfile=/var/log/contrail/contrail-device-manager-stdout.log
stderr_logfile=/dev/nul... | Fix the config file name for device manager | Fix the config file name for device manager
Change-Id: I84664a3c1e515d49317238239dcfda74441c5e74
| INI | apache-2.0 | sajuptpm/contrail-controller,cloudwatt/contrail-controller,tcpcloud/contrail-controller,srajag/contrail-controller,sajuptpm/contrail-controller,nischalsheth/contrail-controller,tcpcloud/contrail-controller,eonpatapon/contrail-controller,cloudwatt/contrail-controller,DreamLab/contrail-controller,codilime/contrail-contro... | ini | ## Code Before:
[program:contrail-device-manager]
command=/usr/bin/contrail-device-manager --conf_file /etc/contrail/device_manager.conf
priority=450
autostart=true
autorestart=true
killasgroup=true
stopsignal=KILL
redirect_stderr=true
stdout_logfile=/var/log/contrail/contrail-device-manager-stdout.log
stderr_logfile=/... | [program:contrail-device-manager]
- command=/usr/bin/contrail-device-manager --conf_file /etc/contrail/device_manager.conf
? ^
+ command=/usr/bin/contrail-device-manager --conf_file /etc/contrail/contrail-device-manager.conf
? ... | 2 | 0.166667 | 1 | 1 |
467a7beda11f83464971272a4da2202fbdc917f6 | src/apps/search/transformers.js | src/apps/search/transformers.js | const { find } = require('lodash')
const { transformInvestmentProjectToListItem } = require('../investment-projects/transformers')
const { transformContactToListItem } = require('../contacts/transformers')
const { buildPagination } = require('../../lib/pagination')
const { buildSearchAggregation } = require('./builder... | const { find } = require('lodash')
const { transformInvestmentProjectToListItem } = require('../investment-projects/transformers')
const { transformContactToListItem } = require('../contacts/transformers')
const { buildPagination } = require('../../lib/pagination')
const { buildSearchAggregation } = require('./builder... | Allow transformResultsToCollection to fallback to other props | Allow transformResultsToCollection to fallback to other props | JavaScript | mit | uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend | javascript | ## Code Before:
const { find } = require('lodash')
const { transformInvestmentProjectToListItem } = require('../investment-projects/transformers')
const { transformContactToListItem } = require('../contacts/transformers')
const { buildPagination } = require('../../lib/pagination')
const { buildSearchAggregation } = re... | const { find } = require('lodash')
const { transformInvestmentProjectToListItem } = require('../investment-projects/transformers')
const { transformContactToListItem } = require('../contacts/transformers')
const { buildPagination } = require('../../lib/pagination')
const { buildSearchAggregation } = requir... | 6 | 0.162162 | 3 | 3 |
384b461e32ca276009667459ea2c4941f15b3dab | fetch-members.js | fetch-members.js | const { GraphQLClient } = require("graphql-request");
const { writeFileSync, existsSync, mkdirSync } = require("fs");
async function fetchMembers(organisation) {
const token = process.env.GH_TOKEN;
if (!token) {
console.error("'GH_TOKEN' not set. Could not fetch nteract members.");
return [];
}
const... | const { GraphQLClient } = require("graphql-request");
const { writeFileSync, existsSync, mkdirSync } = require("fs");
async function fetchMembers(organisation) {
const token = process.env.GH_TOKEN;
if (!token) {
console.error("'GH_TOKEN' not set. Could not fetch nteract members.");
return [];
}
const... | Update GitHub API query for latest version | Update GitHub API query for latest version
| JavaScript | bsd-3-clause | nteract/nteract.io | javascript | ## Code Before:
const { GraphQLClient } = require("graphql-request");
const { writeFileSync, existsSync, mkdirSync } = require("fs");
async function fetchMembers(organisation) {
const token = process.env.GH_TOKEN;
if (!token) {
console.error("'GH_TOKEN' not set. Could not fetch nteract members.");
return ... | const { GraphQLClient } = require("graphql-request");
const { writeFileSync, existsSync, mkdirSync } = require("fs");
async function fetchMembers(organisation) {
const token = process.env.GH_TOKEN;
if (!token) {
console.error("'GH_TOKEN' not set. Could not fetch nteract members.");
retur... | 9 | 0.169811 | 2 | 7 |
1e574597db55627cd94e95b022a534f4169bca8c | pom.xml | pom.xml | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>us.kohi</groupId>
<artifactId>PermissionWhitelist... | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>us.kohi</groupId>
<artifactId>PermissionWhitelist... | Add md-5's repository and fix latest Spigot-API | Add md-5's repository and fix latest Spigot-API
| XML | mit | chris752w/PermissionWhitelist | xml | ## Code Before:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>us.kohi</groupId>
<artifactId>Per... | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>us.kohi</groupId>
<artifactId>Permiss... | 10 | 0.434783 | 8 | 2 |
a1b8be5d60d3cae677cd8bf7f5d720e5868a11e4 | src/structural_typing/validators.clj | src/structural_typing/validators.clj | (ns structural-typing.validators
"Validators. These differ from Bouncer validators in that (1) they default to optional, and
(2) the messages include the failing value."
(:require [bouncer.validators :as v]))
(defmacro defoptional [name doc message-format & body]
`(do
(v/defvalidator ~name {:optional tru... | (ns structural-typing.validators
"Validators. These differ from Bouncer validators in that (1) they default to optional, and
(2) the messages include the failing value."
(:require [bouncer.validators :as v]))
(defmacro defoptional
"Define a validator for an optional argument.
(defoptional number
... | Make validator arglists available to codox | Make validator arglists available to codox | Clojure | mit | marick/structural-typing | clojure | ## Code Before:
(ns structural-typing.validators
"Validators. These differ from Bouncer validators in that (1) they default to optional, and
(2) the messages include the failing value."
(:require [bouncer.validators :as v]))
(defmacro defoptional [name doc message-format & body]
`(do
(v/defvalidator ~nam... | (ns structural-typing.validators
"Validators. These differ from Bouncer validators in that (1) they default to optional, and
(2) the messages include the failing value."
(:require [bouncer.validators :as v]))
- (defmacro defoptional [name doc message-format & body]
+ (defmacro defoptional
+ "Define... | 16 | 0.761905 | 13 | 3 |
1dff7b90e06d6bb018fd838467271dfb17fcffc9 | README.md | README.md | devise_header_token
===================
Patches in support for token authentication via headers rather than basic auth or request params for Devise's `token_authenticatable` strategy.
This is currently without tests.
Usage
-----
In your Gemfile:
```ruby
gem 'devise'
gem 'devise_header_token'
```
In your `config/i... | devise_header_token
===================
Patches in support for token authentication via headers rather than basic auth or request params for Devise's `token_authenticatable` strategy.
This is without tests.
Orphaned!
---------
This project isn't being maintained by us anymore! Would you like to give it a home?
Us... | Add a note about the project's status. | Add a note about the project's status.
| Markdown | mit | stvp/devise_header_token | markdown | ## Code Before:
devise_header_token
===================
Patches in support for token authentication via headers rather than basic auth or request params for Devise's `token_authenticatable` strategy.
This is currently without tests.
Usage
-----
In your Gemfile:
```ruby
gem 'devise'
gem 'devise_header_token'
```
I... | devise_header_token
===================
Patches in support for token authentication via headers rather than basic auth or request params for Devise's `token_authenticatable` strategy.
- This is currently without tests.
? ----------
+ This is without tests.
+
+ Orphaned!
+ ---------
+
+ This projec... | 12 | 0.413793 | 7 | 5 |
2e7fdd6a1db4a649f7e3e469729946d3978f83a1 | test/test_buffer_small_read.c | test/test_buffer_small_read.c |
int main()
{
unsigned char data[4];
bert_buffer_t buffer;
bert_buffer_init(&buffer);
memset(data,'A',DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
unsigned char output[DATA_SIZE];
size_t result;
if ((result = ... |
int main()
{
unsigned char data[4];
bert_buffer_t buffer;
bert_buffer_init(&buffer);
memset(data,'A',DATA_SIZE);
unsigned int i;
for (i=0;i<((BERT_CHUNK_SIZE / DATA_SIZE) * 2);i++)
{
bert_buffer_write(&buffer,data,DATA_SIZE);
}
unsigned char output[DATA_SIZE];
size_t result;
if ((result = bert_buffe... | Make sure the buffer small read populates the buffer with multiple chunks. | Make sure the buffer small read populates the buffer with multiple chunks.
| C | mit | postmodern/libBERT | c | ## Code Before:
int main()
{
unsigned char data[4];
bert_buffer_t buffer;
bert_buffer_init(&buffer);
memset(data,'A',DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
bert_buffer_write(&buffer,data,DATA_SIZE);
unsigned char output[DATA_SIZE];
size_t result;
... |
int main()
{
unsigned char data[4];
bert_buffer_t buffer;
bert_buffer_init(&buffer);
memset(data,'A',DATA_SIZE);
+ unsigned int i;
+
+ for (i=0;i<((BERT_CHUNK_SIZE / DATA_SIZE) * 2);i++)
+ {
- bert_buffer_write(&buffer,data,DATA_SIZE);
+ bert_buffer_write(&buffer,data,DATA_SIZE);
? +
... | 9 | 0.310345 | 6 | 3 |
33280ea228c49575767219910650aa0a16136931 | lib/written/app/assets/stylesheets/written.scss | lib/written/app/assets/stylesheets/written.scss | [data-editor="written"] {
white-space: pre-wrap;
p {
min-height: 1.2em;
}
h1 {
font-size: 3em;
}
ul, li {
list-style-type: none;
}
figure {
background: rgba(230,230,230,1);
& > div {
display: flex;
min-height: 200px;
}
img {
margin: auto;
}
fi... | [data-editor="written"] {
white-space: pre-wrap;
p {
min-height: 1.2em;
}
h1 {
font-size: 3em;
}
ul, li {
list-style-type: none;
}
figure {
background: rgba(230,230,230,1);
& > div {
display: flex;
min-height: 200px;
padding: 4px;
}
img {
margin:... | Add a small padding to images | Add a small padding to images
| SCSS | mit | pothibo/written,pothibo/written,pothibo/written | scss | ## Code Before:
[data-editor="written"] {
white-space: pre-wrap;
p {
min-height: 1.2em;
}
h1 {
font-size: 3em;
}
ul, li {
list-style-type: none;
}
figure {
background: rgba(230,230,230,1);
& > div {
display: flex;
min-height: 200px;
}
img {
margin: aut... | [data-editor="written"] {
white-space: pre-wrap;
p {
min-height: 1.2em;
}
h1 {
font-size: 3em;
}
ul, li {
list-style-type: none;
}
figure {
background: rgba(230,230,230,1);
& > div {
display: flex;
min-height: 200px;
+ ... | 1 | 0.03125 | 1 | 0 |
e82d4a2af8cac1fbf8779cdae25788f4ca564ff7 | website/templates/mobile/pages/index.html | website/templates/mobile/pages/index.html | {% extends "mobile/base.html" %}
| {% extends "mobile/base.html" %}
{% load mezzanine_tags staticfiles %}
{% block meta_title %}Home{% endblock %}
{% block body_class %}home{% endblock %}
{% block logo %}
<a href="/"><img src="{% static "images/logo-mobile.png" %}" alt="Jonge Democraten " /></a>
{% endblock logo %}
{% block main %}
{% for i... | Create home page in mobile template | Create home page in mobile template
| HTML | mit | jonge-democraten/website,jonge-democraten/website,jonge-democraten/website,jonge-democraten/website | html | ## Code Before:
{% extends "mobile/base.html" %}
## Instruction:
Create home page in mobile template
## Code After:
{% extends "mobile/base.html" %}
{% load mezzanine_tags staticfiles %}
{% block meta_title %}Home{% endblock %}
{% block body_class %}home{% endblock %}
{% block logo %}
<a href="/"><img src="{... | {% extends "mobile/base.html" %}
+ {% load mezzanine_tags staticfiles %}
+
+ {% block meta_title %}Home{% endblock %}
+
+ {% block body_class %}home{% endblock %}
+
+ {% block logo %}
+ <a href="/"><img src="{% static "images/logo-mobile.png" %}" alt="Jonge Democraten " /></a>
+ {% endblock logo %}
+
+ {% ... | 32 | 16 | 32 | 0 |
02dcea03e43ae9ca23bf2fa17333983a870b2100 | .travis.yml | .travis.yml | language: node_js
node_js:
- '0.10'
script: gulp test
before_install:
- mkdir -p .npm
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
notifications:
slack:
secure: q2z7sQIuc3sqGnRoHdmbOBcsvvffK3abJRL+qd/7Kh0ET/BtN6QJqM5O2IZwttFiDjVF5+lyIU0VEHBGyGoru5ovyRl7aOW6kq2uxJqdZrZcsQqz2Uug1M0RZG/1wSG7E2MbRdO0UGoJUCWx... | language: node_js
node_js:
- '0.10'
script: gulp test
before_install:
- mkdir -p .npm
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
notifications:
slack:
secure: CgXxNEQrQ82EatyF/wSdF0P5rXcWPL+fFZ1lb1aBb8RbVt5gwddJ6xWVD/nYSr6tIJvIYHYhoYsIDPENwezIPsesG7kWXerQhydsEcA34JKxzsStd/TmU6Moxuwy6KTN7yzmL6586nSvoAw9... | Add new slack notification token | Add new slack notification token
| YAML | apache-2.0 | manran/js-stellar-base,manran/js-stellar-base,strllar/js-stellar-base,johansten/js-stellar-base,Payshare/js-stellar-base,stellar/js-stellar-base,johansten/js-stellar-base,johansten/js-stellar-base,manran/js-stellar-base,stellar/js-stellar-base,strllar/js-stellar-base,strllar/js-stellar-base,Payshare/js-stellar-base | yaml | ## Code Before:
language: node_js
node_js:
- '0.10'
script: gulp test
before_install:
- mkdir -p .npm
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
notifications:
slack:
secure: q2z7sQIuc3sqGnRoHdmbOBcsvvffK3abJRL+qd/7Kh0ET/BtN6QJqM5O2IZwttFiDjVF5+lyIU0VEHBGyGoru5ovyRl7aOW6kq2uxJqdZrZcsQqz2Uug1M0RZG/1wSG7... | language: node_js
node_js:
- '0.10'
script: gulp test
before_install:
- mkdir -p .npm
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
notifications:
slack:
- secure: q2z7sQIuc3sqGnRoHdmbOBcsvvffK3abJRL+qd/7Kh0ET/BtN6QJqM5O2IZwttFiDjVF5+lyIU0VEHBGyGoru5ovyRl7aOW6kq2uxJqdZrZcsQqz2Uug1M0RZG... | 2 | 0.181818 | 1 | 1 |
3771da113d6cb8e585f76667aeafa02f772bd97e | phpunit.xml | phpunit.xml | <phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
bootstrap="src/autoload.php"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="tr... | <phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
bootstrap="src/autoload.php"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="tr... | Set correct filter for PHPunit | Set correct filter for PHPunit
| XML | mit | xicrow/php-debug,xicrow/debug | xml | ## Code Before:
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
bootstrap="src/autoload.php"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
convertErrorsToExceptions="true"
convertNotices... | <phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.2/phpunit.xsd"
bootstrap="src/autoload.php"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
convertErrorsToExceptions="true"
convertNotices... | 5 | 0.166667 | 3 | 2 |
02a19361fb2e853ffa4c59abfb54ff159011dd3b | spec/system/support/cuprite_setup.rb | spec/system/support/cuprite_setup.rb |
require "capybara/cuprite"
Capybara.register_driver(:cuprite) do |app|
Capybara::Cuprite::Driver.new(
app,
**{
window_size: [1200, 800],
browser_options: {},
process_timeout: 20,
timeout: 20,
# Don't load scripts from external sources, like google maps or stripe
url_white... |
require "capybara/cuprite"
Capybara.register_driver(:cuprite) do |app|
Capybara::Cuprite::Driver.new(
app,
**{
window_size: [1200, 800],
browser_options: {},
process_timeout: 20,
timeout: 20,
# Don't load scripts from external sources, like google maps or stripe
url_white... | Raise JavaScript errors within system specs | Raise JavaScript errors within system specs
Re-raising console errors helps us to find subtle bugs.
| Ruby | agpl-3.0 | mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/ope... | ruby | ## Code Before:
require "capybara/cuprite"
Capybara.register_driver(:cuprite) do |app|
Capybara::Cuprite::Driver.new(
app,
**{
window_size: [1200, 800],
browser_options: {},
process_timeout: 20,
timeout: 20,
# Don't load scripts from external sources, like google maps or stripe... |
require "capybara/cuprite"
Capybara.register_driver(:cuprite) do |app|
Capybara::Cuprite::Driver.new(
app,
**{
window_size: [1200, 800],
browser_options: {},
process_timeout: 20,
timeout: 20,
# Don't load scripts from external sources, like google maps o... | 3 | 0.076923 | 2 | 1 |
ca9213e3ebfcc56d269c1434c549d833056a516c | _config.yml | _config.yml | name: Romain Berger
markdown: redcarpet
pygments: true
| name: Romain Berger
markdown: redcarpet
exclude:
- Rakefile
- Makefile
- Readme.md
- config.rb
- sprites
- '*.scss'
| Add excludes to jekyll config | Add excludes to jekyll config
| YAML | mit | romainberger/romainberger.com,romainberger/romainberger.com,romainberger/romainberger.com,romainberger/romainberger.com | yaml | ## Code Before:
name: Romain Berger
markdown: redcarpet
pygments: true
## Instruction:
Add excludes to jekyll config
## Code After:
name: Romain Berger
markdown: redcarpet
exclude:
- Rakefile
- Makefile
- Readme.md
- config.rb
- sprites
- '*.scss'
| name: Romain Berger
markdown: redcarpet
- pygments: true
+ exclude:
+ - Rakefile
+ - Makefile
+ - Readme.md
+ - config.rb
+ - sprites
+ - '*.scss' | 8 | 2.666667 | 7 | 1 |
ca17534cc3686da483e56cf94fba4f01de20a509 | admin/init.php | admin/init.php | <?php
/**
* Define Constants.
*/
define('ADMIN_DIR', get_template_directory() .'/admin');
define('ADMIN_URL', get_template_directory_uri() .'/admin');
define('AUTHOR', 'Vincent Klaiber');
define('AUTHOR_URL', 'http://vinkla.com');
define('LOGIN_IMAGE_PATH', ADMIN_URL.'/images/admin-login-logo.png');
define('LOGIN_... | <?php
/**
* Define Constants.
*/
define('TEMPLATE_DIR', get_template_directory());
define('ADMIN_DIR', get_template_directory().'/admin');
define('ADMIN_URL', get_template_directory_uri().'/admin');
define('AUTHOR', 'Vincent Klaiber');
define('AUTHOR_URL', 'http://vinkla.com');
define('LOGIN_IMAGE_PATH', TEMPLATE_... | Add a template directory constant. | Add a template directory constant.
| PHP | mit | fieleman/wordplate,fieleman/wordplate,mikaelmattsson/wordplate | php | ## Code Before:
<?php
/**
* Define Constants.
*/
define('ADMIN_DIR', get_template_directory() .'/admin');
define('ADMIN_URL', get_template_directory_uri() .'/admin');
define('AUTHOR', 'Vincent Klaiber');
define('AUTHOR_URL', 'http://vinkla.com');
define('LOGIN_IMAGE_PATH', ADMIN_URL.'/images/admin-login-logo.png')... | <?php
/**
* Define Constants.
*/
+ define('TEMPLATE_DIR', get_template_directory());
- define('ADMIN_DIR', get_template_directory() .'/admin');
? -
+ define('ADMIN_DIR', get_template_directory().'/admin');
- define('ADMIN_URL', get_template_directory_uri() .'/ad... | 7 | 0.368421 | 4 | 3 |
504fab5de89bd7e0598cac7e409c6c61aa2a2b35 | README.md | README.md | Neta
====
> A modern, decentralized, and customizable chatting client.
Neta is a modern, decentralized, and customizable chatting client, which uses a developer-friendly ecosystem to enable use of plugin and theme APIs, so users can build a more personal chatting client, but not at the expense of security, usability, ... | Neta
====
> A modern, decentralized, and customizable chatting client.
Neta is a modern, decentralized, and customizable chatting client, which uses a developer-friendly ecosystem to enable use of plugin and theme APIs, so users can build a more personal chatting client, but not at the expense of security, usability, ... | Add alternative usage method for developers | Add alternative usage method for developers
| Markdown | mit | JamenMarz/cluster,JamenMarz/vint | markdown | ## Code Before:
Neta
====
> A modern, decentralized, and customizable chatting client.
Neta is a modern, decentralized, and customizable chatting client, which uses a developer-friendly ecosystem to enable use of plugin and theme APIs, so users can build a more personal chatting client, but not at the expense of secur... | Neta
====
> A modern, decentralized, and customizable chatting client.
Neta is a modern, decentralized, and customizable chatting client, which uses a developer-friendly ecosystem to enable use of plugin and theme APIs, so users can build a more personal chatting client, but not at the expense of security, u... | 5 | 0.119048 | 5 | 0 |
3b34f5af33f329291c759ca1a2143741288988f3 | src/kibana4-dashboards/README.md | src/kibana4-dashboards/README.md | Import kibana dashboards:
```
curl https://raw.githubusercontent.com/logsearch/logsearch-for-cloudfoundry/master/src/kibana4-dashboards/kibana.json | curl --data-binary @- http://10.10.3.51:9200/_bulk
```
| Import kibana dashboards:
```
cat kibana.json | curl --data-binary @- http://10.10.3.51:9200/_bulk
```
| Revert to importing dashboards from local file; since trying to curl from github seems to fail to import the final line of the .json file | Revert to importing dashboards from local file; since trying to curl from github seems to fail to import the final line of the .json file
| Markdown | apache-2.0 | hannayurkevich/logsearch-for-cloudfoundry,cloudfoundry-community/logsearch-for-cloudfoundry,logsearch/logsearch-for-cloudfoundry,cloudfoundry-community/logsearch-for-cloudfoundry,axelaris/logsearch-for-cloudfoundry,simonjohansson/logsearch-for-cloudfoundry,logsearch/logsearch-for-cloudfoundry,axelaris/logsearch-for-clo... | markdown | ## Code Before:
Import kibana dashboards:
```
curl https://raw.githubusercontent.com/logsearch/logsearch-for-cloudfoundry/master/src/kibana4-dashboards/kibana.json | curl --data-binary @- http://10.10.3.51:9200/_bulk
```
## Instruction:
Revert to importing dashboards from local file; since trying to curl from github ... | Import kibana dashboards:
```
- curl https://raw.githubusercontent.com/logsearch/logsearch-for-cloudfoundry/master/src/kibana4-dashboards/kibana.json | curl --data-binary @- http://10.10.3.51:9200/_bulk
+ cat kibana.json | curl --data-binary @- http://10.10.3.51:9200/_bulk
``` | 2 | 0.4 | 1 | 1 |
ee7cef7c8ca6a66898bd5ea1467f00627f5271c4 | blog/blogpost2/content.html | blog/blogpost2/content.html | <p>
Idag träffades vi för en informationsträff. För dig som inte var här, så följer här en sammanfattning av de viktigaste punkterna:
</p>
<p>
<ul>
<li>Vi träffas på torsdagar kl. 16.00 - 17.00 på Malmö Borgarskola i sal B010, som ligger i källaren. Det är bara huvudingången som är öppen om man inte går på Borgarsk... | <p>
Idag träffades vi för en informationsträff. För er som inte var här, så följer här en sammanfattning av de viktigaste punkterna:
</p>
<p>
<ul>
<li>Vi träffas på torsdagar kl. 16.00 - 17.00 på Malmö Borgarskola i sal B010, som ligger i källaren. Det är bara huvudingången som är öppen om man inte går på Borgarsko... | Update wording in blogpost2 for clarity | Update wording in blogpost2 for clarity
| HTML | mit | ArVID220u/judge,ArVID220u/judge,ArVID220u/judge | html | ## Code Before:
<p>
Idag träffades vi för en informationsträff. För dig som inte var här, så följer här en sammanfattning av de viktigaste punkterna:
</p>
<p>
<ul>
<li>Vi träffas på torsdagar kl. 16.00 - 17.00 på Malmö Borgarskola i sal B010, som ligger i källaren. Det är bara huvudingången som är öppen om man inte... | <p>
- Idag träffades vi för en informationsträff. För dig som inte var här, så följer här en sammanfattning av de viktigaste punkterna:
? ^^^
+ Idag träffades vi för en informationsträff. För er som inte var här, så följer här en sammanfattning av de viktigaste punkter... | 3 | 0.25 | 2 | 1 |
18c2b76c99120179b59824a795aa8f07cd04a6c5 | README.md | README.md | (pronounced ts as 'tsee' sound AVARI**TS**IA)
Credit simulator for personal banking
Language Translations:
+ [Español](assets/docs/translations/es/README_es_CO.md) | (pronounced ts as 'tsee' sound AVARI**TS**IA)
[](https://travis-ci.org/AlejoJamC/avaritia)
Credit simulator for personal banking
Language Translations:
+ [Español](assets/docs/translations/es/README_es_CO.md) | Add travis status Readme.md file | Add travis status Readme.md file
| Markdown | bsd-3-clause | AlejoJamC/avaritia,AlejoJamC/avaritia | markdown | ## Code Before:
(pronounced ts as 'tsee' sound AVARI**TS**IA)
Credit simulator for personal banking
Language Translations:
+ [Español](assets/docs/translations/es/README_es_CO.md)
## Instruction:
Add travis status Readme.md file
## Code After:
(pronounced ts as 'tsee' sound AVARI**TS**IA)
[
+
+ [](https://travis-ci.org/AlejoJamC/avaritia)
Credit simulator for personal banking
Language Translations:
+ [Español](assets/docs/translations/es/README_es_CO.md) | 2 | 0.285714 | 2 | 0 |
b77c75dd8eec0299c55825580f0d6b7017c8b1c5 | test_scripts/SDL5_0/Handling_VR_help_requests/003_SetGlobalProp_without_deleted_commands.lua | test_scripts/SDL5_0/Handling_VR_help_requests/003_SetGlobalProp_without_deleted_commands.lua | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0122-New_rules_for_providing_VRHelpItems_VRHelpTitle.md
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: TBD
--
-- Descrip... | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0122-New_rules_for_providing_VRHelpItems_VRHelpTitle.md
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: TBD
--
-- Descrip... | Improve stability of VR Help scripts | Improve stability of VR Help scripts
| Lua | bsd-3-clause | smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts | lua | ## Code Before:
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0122-New_rules_for_providing_VRHelpItems_VRHelpTitle.md
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: T... | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0122-New_rules_for_providing_VRHelpItems_VRHelpTitle.md
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: TBD
... | 2 | 0.054054 | 1 | 1 |
b47280c5545ef001701f24643b34cd9d7f94037e | tests/acceptance.suite.yml | tests/acceptance.suite.yml |
actor: AcceptanceTester
modules:
enabled:
- WebDriver:
url: http://localhost:8080
browser: chrome
- Db:
dsn: 'mysql:host=localhost;dbname=mysql'
user: 'root'
password: ''
dump: 'tests/_data/mysql.sql'
populate: tr... | class_name: AcceptanceTester
modules:
enabled:
- \BrowserStackWebDriver
config:
\BrowserStackWebDriver:
host: 'hub-cloud.browserstack.com'
port: 80
browser: chrome
url: 'http://localhost:8080'
capabilities:
'browserstack.user': 'olmok1'
'browserstack.key' : '9y... | Add Test case with delete Feature | Add Test case with delete Feature
| YAML | mit | sampleOmont/quick,sampleOmont/quick,sampleOmont/quick | yaml | ## Code Before:
actor: AcceptanceTester
modules:
enabled:
- WebDriver:
url: http://localhost:8080
browser: chrome
- Db:
dsn: 'mysql:host=localhost;dbname=mysql'
user: 'root'
password: ''
dump: 'tests/_data/mysql.sql'
... | + class_name: AcceptanceTester
- actor: AcceptanceTester
modules:
- enabled:
? --
+ enabled:
- - WebDriver:
+ - \BrowserStackWebDriver
+ config:
+ \BrowserStackWebDriver:
+ host: 'hub-cloud.browserstack.com'
+ port: 80
+ browser: chrome
- url: http://localhos... | 26 | 1.733333 | 13 | 13 |
485297df5cdc18d399d3d327fdcb5da056352b1e | src/main/resources/logback.xml | src/main/resources/logback.xml | <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="logback-batch-base.xml" />
<logger name="org.springframework" level="INFO"/>
</configuration> | <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="logback-batch-base.xml" />
<logger name="org.springframework" level="INFO"/>
<logger name="org.apache.http" level="INFO"/>
<logger name="org.apache.axis" level="INFO"/>
</configuration> | Add logging for Axis and HttpClient | Add logging for Axis and HttpClient | XML | mit | jrrdev/mantisbt-sync-core,jrrdev/mantisbt-sync-core | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="logback-batch-base.xml" />
<logger name="org.springframework" level="INFO"/>
</configuration>
## Instruction:
Add logging for Axis and HttpClient
## Code After:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include re... | <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="logback-batch-base.xml" />
<logger name="org.springframework" level="INFO"/>
+ <logger name="org.apache.http" level="INFO"/>
+ <logger name="org.apache.axis" level="INFO"/>
</configuration> | 2 | 0.4 | 2 | 0 |
e6ce370530fa40a0c871e61aa4e129c9ea51175f | layouts/partials/article_header.html | layouts/partials/article_header.html | <header class="article-header article-banner editable">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<img src="{{ .Params.banner | absURL }}" class="img-responsive" style="width: 100%;">
{{ else }}
<img src="/images/press-releases-header-h1.png" class="img-responsive" style="width: 100... | <header class="article-header article-banner editable">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<img src="{{ .Params.banner | absURL }}" class="img-responsive" style="width: 100%;"> {{ else }}
<img src="/images/press-releases-header-h1.png" class="img-responsive" style="width: 100... | Make long titles use a different class | Make long titles use a different class
| HTML | mit | awalker/bs3theme | html | ## Code Before:
<header class="article-header article-banner editable">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<img src="{{ .Params.banner | absURL }}" class="img-responsive" style="width: 100%;">
{{ else }}
<img src="/images/press-releases-header-h1.png" class="img-responsive" s... | <header class="article-header article-banner editable">
- {{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
+ {{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
? ++++
- <img src="{{ .Params.banner | absURL }}" class="img-responsive" style="width: 100%;">
+ <img src="{{ .... | 21 | 1.3125 | 9 | 12 |
05e68b98a7d38efb95cca834e95ae35387bba730 | static/js/entity.js | static/js/entity.js | (function () {
var $specContainer = $('#spec-container');
if (!isMobile) {
$('.section-tabs a').click(function () {
var href = $(this).attr('href');
gotoTab(href);
return false;
});
$specContainer.scrollspy({
'data-spy': 'scroll',
'data-target': '.section-t... | (function () {
var $body = $('body');
if (!isMobile) {
$('.section-tabs a').click(function () {
var href = $(this).attr('href');
gotoTab(href);
return false;
});
$body.scrollspy({
'data-spy': 'scroll',
'data-target': '.section-tabs',
'offset': 1... | Fix scrollspy bug occured by layout changes | Fix scrollspy bug occured by layout changes
| JavaScript | apache-2.0 | teampopong/pokr.kr,teampopong/pokr.kr,teampopong/pokr.kr,teampopong/pokr.kr | javascript | ## Code Before:
(function () {
var $specContainer = $('#spec-container');
if (!isMobile) {
$('.section-tabs a').click(function () {
var href = $(this).attr('href');
gotoTab(href);
return false;
});
$specContainer.scrollspy({
'data-spy': 'scroll',
'data-targ... | (function () {
- var $specContainer = $('#spec-container');
+ var $body = $('body');
if (!isMobile) {
$('.section-tabs a').click(function () {
var href = $(this).attr('href');
gotoTab(href);
return false;
});
- $specContainer.scrollspy({
+ $body.scrollspy({... | 8 | 0.170213 | 4 | 4 |
33071c449bfec7cbf484473b2bdfd62bc4c199c3 | lib/tasks/export_mainstream_taxons.rake | lib/tasks/export_mainstream_taxons.rake | namespace :govuk do
# bundle exec rake govuk:export_content_by_organisations[uk-border-agency,border-force]
desc "Export taxons of mainstream content as CSV"
task export_mainstream_taxons: [:environment] do
content_types = %w[
answer
guide
simple_smart_answer
transaction
complete... | namespace :govuk do
# bundle exec rake govuk:export_content_by_organisations[uk-border-agency,border-force]
desc "Export taxons of mainstream content as CSV"
task export_mainstream_taxons: [:environment] do
content_types = %w[
answer
guide
simple_smart_answer
smart_answer
transac... | Add support for exporting smart answers content | Add support for exporting smart answers content
This adds support for the new `smart_answer` schema when exporting
taxons of mainstream content as CSV. Previously smart answers were
represented by the transaction schema. This ensures the functionality
doesn't break when Smart Answer flows are republished with the new
... | Ruby | mit | alphagov/content-tagger,alphagov/content-tagger,alphagov/content-tagger | ruby | ## Code Before:
namespace :govuk do
# bundle exec rake govuk:export_content_by_organisations[uk-border-agency,border-force]
desc "Export taxons of mainstream content as CSV"
task export_mainstream_taxons: [:environment] do
content_types = %w[
answer
guide
simple_smart_answer
transactio... | namespace :govuk do
# bundle exec rake govuk:export_content_by_organisations[uk-border-agency,border-force]
desc "Export taxons of mainstream content as CSV"
task export_mainstream_taxons: [:environment] do
content_types = %w[
answer
guide
simple_smart_answer
+ smart_an... | 1 | 0.021277 | 1 | 0 |
bfd22261ef554575dee9a857e518b7b6c603af2a | meta-oe/recipes-extended/iotop/iotop_1.20.bb | meta-oe/recipes-extended/iotop/iotop_1.20.bb | SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
DEPENDS = "ncurses"
SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d5... | SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
DEPENDS = "ncurses"
SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d5... | Disable lto with clang for rv32 | iotop: Disable lto with clang for rv32
clang/rv32 is mixing ABIs because defaults are ilp32d for OE but when LTO
is used it pulls in ilp32 internally so disable lto for now.
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
| BitBake | mit | openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded,openembedded/meta-openembedded | bitbake | ## Code Before:
SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
DEPENDS = "ncurses"
SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3... | SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
DEPENDS = "ncurses"
SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3... | 1 | 0.043478 | 1 | 0 |
ab1a2982b6a44bfcfcaff5a3469f2d85f56a86a4 | src/cli/_dbus/_manager.py | src/cli/_dbus/_manager.py |
class Manager(object):
"""
Manager interface.
"""
_INTERFACE_NAME = 'org.storage.stratis1.Manager'
def __init__(self, dbus_object):
"""
Initializer.
:param dbus_object: the dbus object
"""
self._dbus_object = dbus_object
def CreatePool(self, pool_name... |
from ._properties import Properties
class Manager(object):
"""
Manager interface.
"""
_INTERFACE_NAME = 'org.storage.stratis1.Manager'
def __init__(self, dbus_object):
"""
Initializer.
:param dbus_object: the dbus object
"""
self._dbus_object = dbus_obje... | Use Properties interface to get Manager properties. | Use Properties interface to get Manager properties.
Signed-off-by: mulhern <7b51bcf507bcd7afb72bf8663752c0ddbeb517f6@redhat.com>
| Python | apache-2.0 | stratis-storage/stratis-cli,stratis-storage/stratis-cli | python | ## Code Before:
class Manager(object):
"""
Manager interface.
"""
_INTERFACE_NAME = 'org.storage.stratis1.Manager'
def __init__(self, dbus_object):
"""
Initializer.
:param dbus_object: the dbus object
"""
self._dbus_object = dbus_object
def CreatePool... | +
+ from ._properties import Properties
+
class Manager(object):
"""
Manager interface.
"""
_INTERFACE_NAME = 'org.storage.stratis1.Manager'
def __init__(self, dbus_object):
"""
Initializer.
:param dbus_object: the dbus object
"""
... | 40 | 0.851064 | 40 | 0 |
8b181d4aa2682db1d7362f5f63495f084a87221b | .travis.yml | .travis.yml | language: ruby
cache: bundler
rvm:
- 2.1.1
- 2.1.0
- 2.0.0
- 1.9.3
- 1.9.2
script: bundle exec rspec spec
| language: ruby
cache: bundler
rvm:
- 2.1.1
- 2.1.0
- 2.0.0
- 1.9.3
- 1.9.2
script: bundle exec rspec spec
env:
global:
secure: kBCnfwyeUmQhO9JyBBD4Su8S7Xc10MDyJKoUcExiPjHXsLOIuu9uj1glEbEHg26XEqPlitc3qULswiy0HrGVdr9CqE3Qs1Q5yX0F3/Us5UJFf5w7dqBFpub+NkQS7dyzm/U5qVMkPrdVCNm0fxPyZP0zVQ8YyKHlM6iSjI7Rf68=
| Add codeclimate test coverage reporting | Add codeclimate test coverage reporting
| YAML | mit | thekompanee/chamber,thekompanee/chamber | yaml | ## Code Before:
language: ruby
cache: bundler
rvm:
- 2.1.1
- 2.1.0
- 2.0.0
- 1.9.3
- 1.9.2
script: bundle exec rspec spec
## Instruction:
Add codeclimate test coverage reporting
## Code After:
language: ruby
cache: bundler
rvm:
- 2.1.1
- 2.1.0
- 2.0.0
- 1.9.3
- 1.9.2
script: bundle exec rspec spec
env:
gl... | language: ruby
cache: bundler
rvm:
- - 2.1.1
? --
+ - 2.1.1
- - 2.1.0
? --
+ - 2.1.0
- - 2.0.0
? --
+ - 2.0.0
- - 1.9.3
? --
+ - 1.9.3
- - 1.9.2
? --
+ - 1.9.2
script: bundle exec rspec spec
+ env:
+ global:
+ secure: kBCnfwyeUmQhO9JyBBD4Su8S7Xc10MDyJKoUcExiPjHXsLOIuu9uj1glEbEHg26XEqPlitc3q... | 13 | 1.444444 | 8 | 5 |
7eb3712a51ac537ab998bf2a5f60ac33a16b49e7 | platform/projectModel-impl/src/com/intellij/openapi/components/service.kt | platform/projectModel-impl/src/com/intellij/openapi/components/service.kt | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.components
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.impl.stores.IComponentStore
import com.i... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.components
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.impl.stores.IComponentStore
import com.i... | Revert "CPP-15416 Implement unified workspace lifecycle" | Revert "CPP-15416 Implement unified workspace lifecycle"
This reverts commit 9cd5d1f4
GitOrigin-RevId: 908bbdae40a775576ff1abae4424cc430b4147bf | Kotlin | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | kotlin | ## Code Before:
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.components
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.impl.stores.IComponentSt... | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.components
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.impl.stores.IComponentStore
... | 2 | 0.066667 | 0 | 2 |
880d409e8dfda9ec261c639b7aea6bcc10cdcde2 | spec/dummy/app/controllers/application_controller.rb | spec/dummy/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
protect_from_forgery
end
| class ApplicationController < ActionController::Base
protect_from_forgery
def sign_in_path
'/sign_in'
end
end
| Define sign_in_path in ApplicationController for dummy application | Define sign_in_path in ApplicationController for dummy application
| Ruby | mit | frankel/forem,szymon-przybyl/forem,szymon-przybyl/forem,dmitry-ilyashevich/forem,dmitry-ilyashevich/forem,frankel/forem,caffo/forem,filiptepper/forem,STRd6/forem,isotope11/forem,isotope11/forem,STRd6/forem,substantial/forem,nruth/forem,filiptepper/forem,substantial/forem,nruth/forem,caffo/forem | ruby | ## Code Before:
class ApplicationController < ActionController::Base
protect_from_forgery
end
## Instruction:
Define sign_in_path in ApplicationController for dummy application
## Code After:
class ApplicationController < ActionController::Base
protect_from_forgery
def sign_in_path
'/sign_in'
end
end
| class ApplicationController < ActionController::Base
protect_from_forgery
+
+ def sign_in_path
+ '/sign_in'
+ end
end | 4 | 1.333333 | 4 | 0 |
cfe2789e388c2bb6951bee0ee5986932c0337c27 | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
script: phpunit --coverage-text
before_script:
- pyrus install -f http://download.pear.php.net/package/PEAR-1.9.4.tgz
- git clone https://github.com/phpDocumentor/template.responsive.git lib/template.responsive
- pyrus channel-discover pear.phpdoc.org
- pyrus install -f lib/tem... | language: php
php:
- 5.3
- 5.4
script:
- phpunit --coverage-text
- pyrus package
before_script:
- pyrus install -f http://download.pear.php.net/package/PEAR-1.9.4.tgz
- git clone https://github.com/phpDocumentor/template.responsive.git lib/template.responsive
- pyrus channel-discover pear.phpdoc.org
- pyru... | Add building the package as part of CI | Add building the package as part of CI
| YAML | mit | rscarson/phpDocumentor2,mbed67/phpDocumentor2,phpDocumentor/phpDocumentor2,rgeraads/phpDocumentor2,4414/phpDocumentor2,senuamedia/phpDocumentor2,revinate/phpDocumentor2,phpDocumentor/phpDocumentor2,PatidarWeb/phpDocumentor2,ddymko/phpDocumentor2,pierredup/phpDocumentor2,rgeraads/phpDocumentor2,webmozart/phpDocumentor2,... | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
script: phpunit --coverage-text
before_script:
- pyrus install -f http://download.pear.php.net/package/PEAR-1.9.4.tgz
- git clone https://github.com/phpDocumentor/template.responsive.git lib/template.responsive
- pyrus channel-discover pear.phpdoc.org
- pyrus in... | language: php
php:
- 5.3
- 5.4
+ script:
- script: phpunit --coverage-text
? ^^^^^^^
+ - phpunit --coverage-text
? ^^
+ - pyrus package
before_script:
- pyrus install -f http://download.pear.php.net/package/PEAR-1.9.4.tgz
- git clone https://github.com/phpDocumentor/template.responsive.gi... | 4 | 0.333333 | 3 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.