commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
1c70c77f000a7b1f822b3970036c537be96fbbf8 | app/javascript/analytics.js | app/javascript/analytics.js | if (document.head.dataset.piwikHost) {
window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
window._paq.push(['trackPageView']);
window._paq.push(['enableLinkTracking']);
(function() {
var u=document.head.dataset.piwikHost;
window._pa... | if (document.head.dataset.piwikHost) {
window._paq = window._paq || [];
window._paq.push(['disableCookies']);
}
| Remove them cookies and maybe disable them? | task: Remove them cookies and maybe disable them?
| JavaScript | mpl-2.0 | brave/publishers,brave/publishers,brave/publishers | javascript | ## Code Before:
if (document.head.dataset.piwikHost) {
window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
window._paq.push(['trackPageView']);
window._paq.push(['enableLinkTracking']);
(function() {
var u=document.head.dataset.piwikHost... |
aa687edd00199a52a27fc818e306ff37edfc0009 | lib/node_modules/@stdlib/math/generics/statistics/incrmidrange/docs/repl.txt | lib/node_modules/@stdlib/math/generics/statistics/incrmidrange/docs/repl.txt |
{{alias}}()
Returns an accumulator function which incrementally computes a mid-range.
The mid-range is the arithmetic mean of maximum and minimum values.
Accordingly, the mid-range is the midpoint of the range and a measure of
central tendency.
The accumulator function returns an updated mid-rang... |
{{alias}}()
Returns an accumulator function which incrementally computes a mid-range.
The mid-range is the arithmetic mean of maximum and minimum values.
Accordingly, the mid-range is the midpoint of the range and a measure of
central tendency.
If provided a value, the accumulator function return... | Update note and rename variable | Update note and rename variable
| Text | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | text | ## Code Before:
{{alias}}()
Returns an accumulator function which incrementally computes a mid-range.
The mid-range is the arithmetic mean of maximum and minimum values.
Accordingly, the mid-range is the midpoint of the range and a measure of
central tendency.
The accumulator function returns an ... |
ecc2eb694a8770d98bdd53a4bc611cd41fb23b5e | Utilities/InstallTest/CMakeLists.txt | Utilities/InstallTest/CMakeLists.txt | if("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${ITK_BINARY_DIR}/InstallTest$")
itk_add_test(NAME Install
COMMAND ${CMAKE_COMMAND} -DCONFIGURATION=$<CONFIGURATION>
-DITK_BINARY_DIR=${ITK_BINARY_DIR}
-P ${CMAKE_CURRENT_SOURCE_DIR}/InstallTest.cmake
)
endif()
| if("x${CMAKE_INSTALL_PREFIX}" STREQUAL "x${ITK_BINARY_DIR}/InstallTest")
itk_add_test(NAME Install
COMMAND ${CMAKE_COMMAND} -DCONFIGURATION=$<CONFIGURATION>
-DITK_BINARY_DIR=${ITK_BINARY_DIR}
-P ${CMAKE_CURRENT_SOURCE_DIR}/InstallTest.cmake
)
endif()
| Use STREQUAL instead of MATCH | COMP: Use STREQUAL instead of MATCH
When the path has items that could be interpreted
as regular expression directives, the
intended string matching causes cmake
configuration failures.
==================================
CMake Error at Utilities/InstallTest/CMakeLists.txt:2 (if):
if given arguments:
"x/usr/loca... | Text | apache-2.0 | hjmjohnson/ITK,atsnyder/ITK,hjmjohnson/ITK,LucHermitte/ITK,Kitware/ITK,vfonov/ITK,fbudin69500/ITK,stnava/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,thewtex/ITK,biotrump/ITK,vfonov/ITK,jcfr/ITK,LucasGandel/ITK,jmerkow/ITK,BRAINSia/ITK,jcfr/ITK,thewtex/ITK,PlutoniumHeart/ITK,BRAINSia/ITK,spinicist/ITK,spinicist/I... | text | ## Code Before:
if("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${ITK_BINARY_DIR}/InstallTest$")
itk_add_test(NAME Install
COMMAND ${CMAKE_COMMAND} -DCONFIGURATION=$<CONFIGURATION>
-DITK_BINARY_DIR=${ITK_BINARY_DIR}
-P ${CMAKE_CURRENT_SOURCE_DIR}/InstallTest.cmak... |
c4f4b43e26617a5ada893d1add993c99f0235b00 | bokehjs/src/less/font-awesome.less | bokehjs/src/less/font-awesome.less | @font-awesome: "../vendor/font-awesome-4.2.0/less";
@import "@{font-awesome}/variables.less";
@fa-css-prefix: bk-fa;
@import "@{font-awesome}/mixins.less";
@import "@{font-awesome}/path.less";
@import "@{font-awesome}/core.less";
@import "@{font-awesome}/larger.less";
@import "@{font-awesome}/fixed-width.less";
@impor... | @font-awesome: "../vendor/font-awesome-4.2.0/less";
@import "@{font-awesome}/variables.less";
@fa-css-prefix: bk-fa;
@fa-font-path: "/bokehjs/static/js/vendor/font-awesome-4.2.0/fonts";
@import "@{font-awesome}/mixins.less";
@import "@{font-awesome}/path.less";
@import "@{font-awesome}/core.less";
@import "@{font-awe... | Make icons work on the server (no static pages yet) | Make icons work on the server (no static pages yet)
| Less | bsd-3-clause | DuCorey/bokeh,stuart-knock/bokeh,phobson/bokeh,philippjfr/bokeh,azjps/bokeh,schoolie/bokeh,justacec/bokeh,philippjfr/bokeh,ptitjano/bokeh,KasperPRasmussen/bokeh,abele/bokeh,mutirri/bokeh,draperjames/bokeh,dennisobrien/bokeh,srinathv/bokeh,timsnyder/bokeh,gpfreitas/bokeh,aiguofer/bokeh,rhiever/bokeh,ptitjano/bokeh,maxal... | less | ## Code Before:
@font-awesome: "../vendor/font-awesome-4.2.0/less";
@import "@{font-awesome}/variables.less";
@fa-css-prefix: bk-fa;
@import "@{font-awesome}/mixins.less";
@import "@{font-awesome}/path.less";
@import "@{font-awesome}/core.less";
@import "@{font-awesome}/larger.less";
@import "@{font-awesome}/fixed-wid... |
2678c5e999269033399121989cfb6f613e0a6b76 | tests/CMakeLists.txt | tests/CMakeLists.txt | add_library(gtest
../external_libraries/gtest/gtest-all.cc
)
target_include_directories(gtest PUBLIC
../external_libraries/gtest
)
add_executable(methcla_tests
test_runner_console.cpp
methcla_tests.cpp
)
target_include_directories(methcla_tests PRIVATE
../src
)
target_link_libraries(methcla_tes... | add_library(gtest
../external_libraries/gtest/gtest-all.cc
)
target_include_directories(gtest PUBLIC
../external_libraries/gtest
)
add_executable(methcla_tests
test_runner_console.cpp
methcla_tests.cpp
)
target_include_directories(methcla_tests PRIVATE
../src
../external_libraries/boost
)
t... | Add boost to include path for tests | Add boost to include path for tests
| Text | apache-2.0 | samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla,samplecount/methcla | text | ## Code Before:
add_library(gtest
../external_libraries/gtest/gtest-all.cc
)
target_include_directories(gtest PUBLIC
../external_libraries/gtest
)
add_executable(methcla_tests
test_runner_console.cpp
methcla_tests.cpp
)
target_include_directories(methcla_tests PRIVATE
../src
)
target_link_libra... |
36c611e4cd250a14423cdb1289c83cd0e05bd388 | git/aliases.zsh | git/aliases.zsh | alias glg="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp='git push'
alias gd='git diff'
alias gdc="git diff --cached"
alias gc='git commit --verbose'
alias gca='git commit --verbose -a'
alias gco='git checkout'
alias ... | alias glg="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp='git push'
alias gd='git diff'
alias gdc="git diff --cached"
alias gc='git commit --verbose'
alias gca='git commit --verbose -a'
alias gco='git checkout'
alias ... | Add git-rm() function to remove a commit from the history | Add git-rm() function to remove a commit from the history
| Shell | mit | hale/dotfiles,hale/dotfiles,hale/dotfiles,hale/dotfiles | shell | ## Code Before:
alias glg="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gp='git push'
alias gd='git diff'
alias gdc="git diff --cached"
alias gc='git commit --verbose'
alias gca='git commit --verbose -a'
alias gco='git ... |
0468f22e18fa851c5ad42bc4e8db228df2301558 | CHANGELOG.md | CHANGELOG.md | - Initial release
- TODO : Re-introduce snapshot releases to build.gradle files and REPO.md
- TODO : Release new v1.0.0
| - Improve object builders (`class>Builder`) to support realm models with private fields and getter/setter methods
### 1.0.0 - 03-01-2017
- Initial release
[Unreleased]: https://github.com/buchandersenn/android-realm-builders/compare/v1.0.0...HEAD | Prepare changelog for v1.0.0 release | Prepare changelog for v1.0.0 release
| Markdown | apache-2.0 | buchandersenn/android-realm-builders | markdown | ## Code Before:
- Initial release
- TODO : Re-introduce snapshot releases to build.gradle files and REPO.md
- TODO : Release new v1.0.0
## Instruction:
Prepare changelog for v1.0.0 release
## Code After:
- Improve object builders (`class>Builder`) to support realm models with private fields and getter/setter meth... |
f91e0a3d0eeb03722235601a943c777e8e429347 | app/models/data_source.rb | app/models/data_source.rb | class DataSource < ActiveRecord::Base
module DynamicTable
end
def source_table_class_name(name)
"#{dbname.classify}_#{name.classify}"
end
def source_base_class
base_class_name = source_table_class_name("Base")
return DynamicTable.const_get(base_class_name) if DynamicTable.const_defined?(base_cl... | class DataSource < ActiveRecord::Base
module DynamicTable
end
def source_table_class_name(table_name)
"#{name.classify}_#{table_name.classify}"
end
def source_base_class
base_class_name = source_table_class_name("Base")
return DynamicTable.const_get(base_class_name) if DynamicTable.const_define... | Enable access from dynamic table classes | Enable access from dynamic table classes
| Ruby | mit | hogelog/dmemo,hogelog/dmemo,hogelog/dmemo,hogelog/dmemo | ruby | ## Code Before:
class DataSource < ActiveRecord::Base
module DynamicTable
end
def source_table_class_name(name)
"#{dbname.classify}_#{name.classify}"
end
def source_base_class
base_class_name = source_table_class_name("Base")
return DynamicTable.const_get(base_class_name) if DynamicTable.const_... |
a8a5a3767267370c4a6479bea627ae36837245b5 | .eslintrc.js | .eslintrc.js | module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
env: {
browser: true,
},
rules: {
'prettier/prettier': ['error', {
singleQuote: true,
trailingComma: 'es5',
pr... | module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
env: {
browser: true,
},
rules: {
'prettier/prettier': ['error', {
singleQuote: true,
trailingComma: 'es5',
pr... | Add jsdoc validation to eslint config. | Add jsdoc validation to eslint config.
Add as a warning (documentation updates will be done in a followup).
| JavaScript | apache-2.0 | switchfly/ember-test-helpers,switchfly/ember-test-helpers | javascript | ## Code Before:
module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
env: {
browser: true,
},
rules: {
'prettier/prettier': ['error', {
singleQuote: true,
trailingComma:... |
d3f33af2fa7d4e7bf9969752e696aaf8120642bc | panoptes/environment/weather_station.py | panoptes/environment/weather_station.py | import datetime
import zmq
from . import monitor
from panoptes.utils import logger, config, messaging, threads
@logger.has_logger
@config.has_config
class WeatherStation(monitor.EnvironmentalMonitor):
"""
This object is used to determine the weather safe/unsafe condition. It inherits
from the monitor.En... | import datetime
import zmq
from . import monitor
from panoptes.utils import logger, config, messaging, threads
@logger.has_logger
@config.has_config
class WeatherStation(monitor.EnvironmentalMonitor):
"""
This object is used to determine the weather safe/unsafe condition. It inherits
from the monitor.En... | Set up weather station to receive updates | Set up weather station to receive updates
| Python | mit | Guokr1991/POCS,fmin2958/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/POCS,fmin2958/POCS,Guokr1991/POCS,AstroHuntsman/POCS,AstroHuntsman/POCS,panoptes/POCS,panoptes/POCS,joshwalawender/POCS,Guokr1991/POCS,AstroHuntsman/POCS,fmin2958/POCS,joshwalawender/POCS,joshwalawender/POCS,Guokr1991/POCS | python | ## Code Before:
import datetime
import zmq
from . import monitor
from panoptes.utils import logger, config, messaging, threads
@logger.has_logger
@config.has_config
class WeatherStation(monitor.EnvironmentalMonitor):
"""
This object is used to determine the weather safe/unsafe condition. It inherits
fro... |
6923ed54ce033722f20e3fafab67258b5a412d96 | src/components/Navigation/ReactovaNavigator.js | src/components/Navigation/ReactovaNavigator.js | import React from 'react';
import { TabNavigator } from 'react-navigation';
import BaseNavigator from './BaseNavigator'
const ReactovaNavigator = (navigationSchema,LoadingScreen) => {
const routerRouteConfig = {
Loading: {
screen: LoadingScreen,
},
BaseNavigator: {
path: 'base',
screen: BaseNavigator(... | import React from 'react';
import { TabNavigator } from 'react-navigation';
import BaseNavigator from './BaseNavigator'
const ReactovaNavigator = (navigationSchema, LoadingScreen = null, ladingScreenIsDefaultRoute = true) => {
let loading = {}
const baseNavigatorName = 'BaseNavigator'
let initialRouteName = baseNa... | Allow LoadingScreen to be optional and not default | Allow LoadingScreen to be optional and not default
| JavaScript | mit | Digitova/reactova-framework | javascript | ## Code Before:
import React from 'react';
import { TabNavigator } from 'react-navigation';
import BaseNavigator from './BaseNavigator'
const ReactovaNavigator = (navigationSchema,LoadingScreen) => {
const routerRouteConfig = {
Loading: {
screen: LoadingScreen,
},
BaseNavigator: {
path: 'base',
screen... |
11458af89032ca7085de1ab6e39b486962140532 | locales/kab/messages.properties | locales/kab/messages.properties | one_time=Deg akud
monthly=S waggur
first_name=Isem amezwaru
last_name=Isem aneggaru
address=Tansa
city=Aɣrem
# some of these strings are not or will on the page, or some of them will be use for email/snippets only
# These are the variants:
# this is for directory tiles
# popup further monthly ask
# privacy policy v... | one_time=Deg akud
monthly=S waggur
first_name=Isem amezwaru
last_name=Isem aneggaru
address=Tansa
city=Aɣrem
MM=GG
YY=SS
CVC=CVC
Mission=Tuɣdaṭ
About=Ɣef
privacyPolicyFooter=Tasertit n tbaḍnit
legalNotices=Alɣu ɣef usaḍuf
Contact=Anermis
sign_up_now=Jerred tura
your_email=youremail@example.com
amount=Tallayt
support_mo... | Update Kabyle (kab) localization of Fundraising | Pontoon: Update Kabyle (kab) localization of Fundraising
Localization authors:
- belkacem77 <belkacem77@gmail.com>
| INI | mpl-2.0 | mozilla/donate.mozilla.org,ScottDowne/donate.mozilla.org | ini | ## Code Before:
one_time=Deg akud
monthly=S waggur
first_name=Isem amezwaru
last_name=Isem aneggaru
address=Tansa
city=Aɣrem
# some of these strings are not or will on the page, or some of them will be use for email/snippets only
# These are the variants:
# this is for directory tiles
# popup further monthly ask
# ... |
44c532694435b8e8f7b68fc10c60875892826ba8 | app.rb | app.rb | require 'sinatra/base'
require 'sinatra/json'
require 'sidekiq'
require 'sidekiq/web'
require './lib/downloader'
require './lib/reply'
require './lib/feed_builder'
require './lib/settings'
require './workers/null_worker'
require './workers/download_worker'
class MovMeApp < Sinatra::Base
get '/' do
'Mov Me'
... | require 'sinatra/base'
require 'sinatra/json'
require 'sidekiq'
require 'sidekiq/web'
require './lib/downloader'
require './lib/reply'
require './lib/feed_builder'
require './lib/settings'
require './workers/null_worker'
require './workers/download_worker'
class MovMeApp < Sinatra::Base
get '/' do
'Mov Me'
... | Print error message for NullWorker | Print error message for NullWorker
| Ruby | mit | X0nic/mov-me,X0nic/mov-me | ruby | ## Code Before:
require 'sinatra/base'
require 'sinatra/json'
require 'sidekiq'
require 'sidekiq/web'
require './lib/downloader'
require './lib/reply'
require './lib/feed_builder'
require './lib/settings'
require './workers/null_worker'
require './workers/download_worker'
class MovMeApp < Sinatra::Base
get '/' d... |
6021c4c54cb0a437878553a1e23f8d433476ff2d | main.py | main.py | import json
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.network.urlrequest import UrlRequest
class AddLocationForm(BoxLayout):
search_input = ObjectProperty()
search_results = ObjectProperty()
def search_location(self):
... | import json
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.network.urlrequest import UrlRequest
class AddLocationForm(BoxLayout):
search_input = ObjectProperty()
search_results = ObjectProperty()
def search_location(self):
... | Stop crashing when search doesn't have any matches | Stop crashing when search doesn't have any matches
| Python | mit | ciappi/Weather | python | ## Code Before:
import json
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.network.urlrequest import UrlRequest
class AddLocationForm(BoxLayout):
search_input = ObjectProperty()
search_results = ObjectProperty()
def search_location... |
1c3ccd789bb5d13852e42278dbbc337a44ec5205 | openstack/nova/templates/console-ingress.yaml | openstack/nova/templates/console-ingress.yaml | kind: Ingress
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
metadata:
name: nova-console
labels:
system: openstack
type: backend
component: nova
annotations:
ingress.kubernetes.io/re... | kind: Ingress
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
metadata:
name: nova-console
labels:
system: openstack
type: backend
component: nova
annotations:
ingress.kubernetes.io/us... | Use Nginx ingress 0.22 compatible syntax | [nova] Use Nginx ingress 0.22 compatible syntax
Nginx ingress 0.21 is the last Nginx ingress version supporting the old
way of rewriting URLs for nova-console. With all regions already on
0.21, we can start using the syntax available in both 0.21 and 0.22 so
we can update to Nginx ingress 0.22.
The plan is to afterwa... | YAML | apache-2.0 | sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts,sapcc/helm-charts | yaml | ## Code Before:
kind: Ingress
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }}
apiVersion: networking.k8s.io/v1beta1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
metadata:
name: nova-console
labels:
system: openstack
type: backend
component: nova
annotations:
ingress.... |
b86cb23478990f348747b326ad7ba1455fd485a1 | CHANGELOG.md | CHANGELOG.md |
* Rewrite for Rails 3
* Implement new Rails 3/ARel finder syntax
* Double Rainbows 🌈🌈
## 0.2.1 / 2008-08-08
* Make results will_paginate-compatible
## 0.2.0 / 2007-10-27
* Add `validates_as_geocodable` ([Mark Van Holstyn](https://github.com/mvanholstyn))
* Allow address mapping to be a single field ([Mark Van Ho... |
* Rewrite for Rails 3
* Implement new Rails 3/ARel finder syntax
* Double Rainbows 🌈🌈
## 0.2.1 / 2008-08-08
* Make results will_paginate-compatible
## 0.2.0 / 2007-10-27
* Add `validates_as_geocodable` ([Mark Van Holstyn](https://github.com/mvanholstyn))
* Allow address mapping to be a single field ([Mark Van Ho... | Add a release data for version 0.1.0 | Add a release data for version 0.1.0
This is when acts_as_geocodable was still a plugin rather than a proper
gem.
| Markdown | mit | collectiveidea/acts_as_geocodable,kornhammer/acts_as_geocodable | markdown | ## Code Before:
* Rewrite for Rails 3
* Implement new Rails 3/ARel finder syntax
* Double Rainbows 🌈🌈
## 0.2.1 / 2008-08-08
* Make results will_paginate-compatible
## 0.2.0 / 2007-10-27
* Add `validates_as_geocodable` ([Mark Van Holstyn](https://github.com/mvanholstyn))
* Allow address mapping to be a single fie... |
b635eddbe3ad344b02ecae47333a4ddf4b17cd18 | bin/remotePush.py | bin/remotePush.py | import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Application-Id": co... | import json,httplib
config_data = json.load(open('conf/net/ext_service/parse.json'))
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-Applicat... | Fix minor issue in remote push | Fix minor issue in remote push
We need to open the file and then parse it as json
| Python | bsd-3-clause | joshzarrabi/e-mission-server,sunil07t/e-mission-server,joshzarrabi/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,joshzarrabi/e-mission-server,joshzarrabi/e-mission-server,shankari/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,sunil07t/e-... | python | ## Code Before:
import json,httplib
config_file = open('conf/net/ext_service/parse.json')
silent_push_msg = {
"where": {
"deviceType": "ios"
},
"data": {
# "alert": "The Mets scored! The game is now tied 1-1.",
"content-available": 1,
"sound": "",
}
}
parse_headers = {
"X-Parse-App... |
5467e6d7580f3a84ae71eb5a60c271a1f9c96e0d | CHANGELOG.md | CHANGELOG.md |
This project adheres to [Semantic Versioning](http://semver.org/).
## Upcoming
### Fix
* If the `jsdoc`-helper did not create any docs, the whole output file was not written.
## v0.2.0 - 2015-08-04
### Change
* `rendertree` is now a block-helper, the label of each node is determined by the block-contents
* `examp... |
This project adheres to [Semantic Versioning](http://semver.org/).
## v0.2.1 - 2015-08-06
### Fix
* If the `jsdoc`-helper did not create any docs, the whole output file was not written.
## v0.2.0 - 2015-08-04
### Change
* `rendertree` is now a block-helper, the label of each node is determined by the block-conten... | Add changes in version: v0.2.1 | Add changes in version: v0.2.1
| Markdown | mit | nknapp/thought,nknapp/thought | markdown | ## Code Before:
This project adheres to [Semantic Versioning](http://semver.org/).
## Upcoming
### Fix
* If the `jsdoc`-helper did not create any docs, the whole output file was not written.
## v0.2.0 - 2015-08-04
### Change
* `rendertree` is now a block-helper, the label of each node is determined by the block-c... |
104d37d81c2d8e39722eab95584aa5339ba94e4b | package.json | package.json | {
"name": "deferreds",
"description": "Functional utility library for working with Deferred objects",
"version": "1.1.0",
"homepage": "https://github.com/zship/deferreds.js",
"author": "Zach Shipley <zach@zachshipley.com>",
"repository": {
"type": "git",
"url": "https://github.com/zship/deferreds.js"
},
"li... | {
"name": "deferreds",
"description": "Functional utility library for working with Deferred objects",
"version": "1.1.0",
"homepage": "https://github.com/zship/deferreds.js",
"author": "Zach Shipley <zach@zachshipley.com>",
"repository": {
"type": "git",
"url": "https://github.com/zship/deferreds.js"
},
"li... | Include amd-tools dependency (required by _make/optimize) | Include amd-tools dependency (required by _make/optimize)
| JSON | mit | zship/deferreds.js | json | ## Code Before:
{
"name": "deferreds",
"description": "Functional utility library for working with Deferred objects",
"version": "1.1.0",
"homepage": "https://github.com/zship/deferreds.js",
"author": "Zach Shipley <zach@zachshipley.com>",
"repository": {
"type": "git",
"url": "https://github.com/zship/deferr... |
16de7005e5694637d20d8ad51cae9a5d14210c8b | style.css | style.css |
body {
background-color: #64ceaa;
color: white;
font-family: sans-serif;
}
kbd {
border: 1px solid white;
margin: 2px;
padding: 2px;
}
.header, .app, #bpm {
text-align: center;
}
.header {
margin-top: 4em;
}
.output {
margin: 2em;
}
input#bpm {
font-size: 1em;
font-weight: bold;
padding: 1... |
body {
background-color: #64ceaa;
color: white;
font-family: sans-serif;
}
kbd {
border: 1px solid white;
margin: 2px;
padding: 2px;
}
.header, .app, #bpm {
text-align: center;
}
.header {
margin-top: 4em;
}
.output {
margin: 2em;
}
input#bpm {
font-size: 1em;
font-weight: bold;
margin: .3... | Increase input / button size | Increase input / button size
| CSS | mit | SimpleMetronome/simplemetronome.github.io | css | ## Code Before:
body {
background-color: #64ceaa;
color: white;
font-family: sans-serif;
}
kbd {
border: 1px solid white;
margin: 2px;
padding: 2px;
}
.header, .app, #bpm {
text-align: center;
}
.header {
margin-top: 4em;
}
.output {
margin: 2em;
}
input#bpm {
font-size: 1em;
font-weight: bo... |
114e2e877898f351bbb388cac7df5811b322c48f | setup.py | setup.py | from setuptools import find_packages, setup
from shorty.version import __VERSION__
dependencies=[
'django',
'django-autoconfig',
'django-nuit',
]
test_dependencies=[
'django-setuptest',
]
setup(
name='djshorty',
version=__VERSION__,
description='A Django URL shortening app',
author='B... | from setuptools import find_packages, setup
from shorty.version import __VERSION__
dependencies=[
'django',
'django-autoconfig',
'django-nuit >= 1.0.0, < 2.0.0',
]
test_dependencies=[
'django-setuptest',
]
setup(
name='djshorty',
version=__VERSION__,
description='A Django URL shortening a... | Fix version dependency on nuit | Fix version dependency on nuit
| Python | apache-2.0 | benbacardi/djshorty,benbacardi/djshorty,ocadotechnology/djshorty,ocadotechnology/djshorty,ocadotechnology/djshorty,benbacardi/djshorty | python | ## Code Before:
from setuptools import find_packages, setup
from shorty.version import __VERSION__
dependencies=[
'django',
'django-autoconfig',
'django-nuit',
]
test_dependencies=[
'django-setuptest',
]
setup(
name='djshorty',
version=__VERSION__,
description='A Django URL shortening app... |
e75e741770d1735c52770900b1cf59f207f2264e | asp/__init__.py | asp/__init__.py | __version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
| __version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
class SpecializationError(Exception):
"""
Exception that caused specialization not to occur.
Attributes:
msg -- the message/explanation to the user
phase -- which phase of specialization caused the err... | Add asp.SpecializationError class for specialization-related exceptions. | Add asp.SpecializationError class for specialization-related exceptions.
| Python | bsd-3-clause | shoaibkamil/asp,mbdriscoll/asp-old,mbdriscoll/asp-old,shoaibkamil/asp,richardxia/asp-multilevel-debug,richardxia/asp-multilevel-debug,pbirsinger/aspNew,pbirsinger/aspNew,mbdriscoll/asp-old,mbdriscoll/asp-old,shoaibkamil/asp,richardxia/asp-multilevel-debug,pbirsinger/aspNew | python | ## Code Before:
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
## Instruction:
Add asp.SpecializationError class for specialization-related exceptions.
## Code After:
__version__ = '0.1'
__version_info__ = tuple([ int(num) for num in __version__.split('.')])
class Specia... |
dbbd0ac4425ac8b2d5d80fd6f363217c5675aea3 | test/angular_lib/gapi-mocks.js | test/angular_lib/gapi-mocks.js | // GAPI Hangouts Mocks
var gapi = function(gapi){
// Create the Hangout API
gapi.hangout = function(hangout){
hangout.localParticipant = {
id: '123456',
displayIndex: 0,
person: {
id: '123456',
displayName: 'Test'
}
};
// OnApiReady Mocks
hangout.onApiReady... | // GAPI Hangouts Mocks
var gapi = function(gapi){
// Create the Hangout API
gapi.hangout = function(hangout){
hangout.localParticipant = {
id: '123456',
displayIndex: 0,
person: {
id: '123456',
displayName: 'Test'
}
};
// OnApiReady Mocks
hangout.onApiReady... | Improve the GAPI mocks for local development. | Improve the GAPI mocks for local development. | JavaScript | mit | DeBTech/HangoutRundown,DeBTech/HangoutRundown | javascript | ## Code Before:
// GAPI Hangouts Mocks
var gapi = function(gapi){
// Create the Hangout API
gapi.hangout = function(hangout){
hangout.localParticipant = {
id: '123456',
displayIndex: 0,
person: {
id: '123456',
displayName: 'Test'
}
};
// OnApiReady Mocks
ha... |
aef21fac420e7715fc569826abe84060ecb8483a | test/tc_live_cmn.rb | test/tc_live_cmn.rb | require 'rbconfig'
module TestLiveCMN
unless Config::CONFIG['host_os'] =~ /mswin|mingw/
def test_live_cmn
flat_dct = IO.read('data/noyes/dct.dat').unpack 'g*'
dct =[]
0.step flat_dct.size-13, 13 do |i|
dct << flat_dct[i, 13]
end
ex_cmn = IO.read('data/noyes/cmn.dat').unpack '... | require 'rbconfig'
module TestLiveCMN
def test_live_cmn
# This test fails on windows because there is too much accumulated
# precision error from summing floats. A more sophisticated accumulation
# routine may solve this problem, however, from a speech recognition point
# of view it isn't a problem. ... | Stop CMN test from failing on Windows. | Stop CMN test from failing on Windows.
| Ruby | bsd-2-clause | talkhouse/noyes,talkhouse/noyes,talkhouse/noyes | ruby | ## Code Before:
require 'rbconfig'
module TestLiveCMN
unless Config::CONFIG['host_os'] =~ /mswin|mingw/
def test_live_cmn
flat_dct = IO.read('data/noyes/dct.dat').unpack 'g*'
dct =[]
0.step flat_dct.size-13, 13 do |i|
dct << flat_dct[i, 13]
end
ex_cmn = IO.read('data/noyes/cm... |
6f6b47de2986fb9192f97a31564563785b38f58a | lib/Tooling/CMakeLists.txt | lib/Tooling/CMakeLists.txt | set(LLVM_LINK_COMPONENTS support)
add_subdirectory(Core)
add_clang_library(clangTooling
ArgumentsAdjusters.cpp
CommonOptionsParser.cpp
CompilationDatabase.cpp
FileMatchTrie.cpp
FixIt.cpp
JSONCompilationDatabase.cpp
Refactoring.cpp
RefactoringCallbacks.cpp
Tooling.cpp
DEPENDS
ClangDriverOptions
... | set(LLVM_LINK_COMPONENTS
Option
Support
)
add_subdirectory(Core)
add_clang_library(clangTooling
ArgumentsAdjusters.cpp
CommonOptionsParser.cpp
CompilationDatabase.cpp
FileMatchTrie.cpp
FixIt.cpp
JSONCompilationDatabase.cpp
Refactoring.cpp
RefactoringCallbacks.cpp
Tooling.cpp
DEPENDS
Clang... | Update libdeps: LLVMOptions, since r280118. | clangTooling: Update libdeps: LLVMOptions, since r280118.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@280187 91177308-0d34-0410-b5e6-96231b3b80d8
| Text | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... | text | ## Code Before:
set(LLVM_LINK_COMPONENTS support)
add_subdirectory(Core)
add_clang_library(clangTooling
ArgumentsAdjusters.cpp
CommonOptionsParser.cpp
CompilationDatabase.cpp
FileMatchTrie.cpp
FixIt.cpp
JSONCompilationDatabase.cpp
Refactoring.cpp
RefactoringCallbacks.cpp
Tooling.cpp
DEPENDS
Cla... |
6176f4281399e3aeb3f80973d0d4e7187d4715ea | CMakeLists.txt | CMakeLists.txt | cmake_minimum_required(VERSION 3.8)
include(version.cmake)
include("standard/Standard.cmake")
standard_project(Autowiring VERSION ${autowiring_VERSION})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules")
include(AddPCH)
include(ConditionalSources)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
... | cmake_minimum_required(VERSION 3.8)
include(version.cmake)
include("standard/Standard.cmake")
standard_project(Autowiring VERSION ${autowiring_VERSION})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules")
include(AddPCH)
include(ConditionalSources)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
... | Enable conformance mode for newer versions of visual studio - required for tuple due to changes in parameter expansion logic | Enable conformance mode for newer versions of visual studio - required for tuple due to changes in parameter expansion logic
| Text | apache-2.0 | leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring,leapmotion/autowiring | text | ## Code Before:
cmake_minimum_required(VERSION 3.8)
include(version.cmake)
include("standard/Standard.cmake")
standard_project(Autowiring VERSION ${autowiring_VERSION})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules")
include(AddPCH)
include(ConditionalSources)
set_property(GLOBAL PROPERTY U... |
36ce794e52268fa61b2b794b673b7adb9b381889 | utils/C++Tests/LLVM-Syntax/lit.local.cfg | utils/C++Tests/LLVM-Syntax/lit.local.cfg |
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
# testFormat: The test format to use to interpret tests.
config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang,
dir='%s/include... |
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
# testFormat: The test format to use to interpret tests.
config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang,
dir='%s/include... | Use the other excludes syntax. | Use the other excludes syntax.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@88836 91177308-0d34-0410-b5e6-96231b3b80d8
| INI | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... | ini | ## Code Before:
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
# testFormat: The test format to use to interpret tests.
config.test_format = lit.formats.SyntaxCheckTest(compiler=root.clang,
... |
99c4c301710daa555bb95e4aa278d6a6a294678a | lib/AppleClient.php | lib/AppleClient.php | <?php
namespace Busuu\IosReceiptsApi;
use GuzzleHttp\Client;
class AppleClient
{
/** @var Client $client */
private $client;
/** @var string */
private $password;
public function __construct($password)
{
$this->client = new Client();
$this->password = $password;
}
... | <?php
namespace Busuu\IosReceiptsApi;
use Exception;
use GuzzleHttp\Client;
class AppleClient
{
/** @var Client $client */
private $client;
/** @var string */
private $password;
public function __construct($password)
{
$this->client = new Client();
$this->password = $passwo... | Add error checking on invalid json | Add error checking on invalid json
| PHP | mit | Busuu/ios-receipts-api | php | ## Code Before:
<?php
namespace Busuu\IosReceiptsApi;
use GuzzleHttp\Client;
class AppleClient
{
/** @var Client $client */
private $client;
/** @var string */
private $password;
public function __construct($password)
{
$this->client = new Client();
$this->password = $passw... |
39f98999d18d28ba9dec77aac6786f9da2293287 | src/pz_discover/util.clj | src/pz_discover/util.clj | (ns pz-discover.util
(:require [clojure.tools.logging :as log]
[zookeeper :as zk]
[pz-discover.models.services :as sm]))
(defn setup-zk-env! [client chroot]
(let [names-node (format "%s/%s" chroot "names")
types-node (format "%s/%s" chroot "types")]
(when-not (zk/exists client c... | (ns pz-discover.util
(:require [clojure.tools.logging :as log]
[zookeeper :as zk]
[pz-discover.models.services :as sm]))
(defn setup-zk-env! [client chroot]
(let [names-node (format "%s/%s" chroot "names")
types-node (format "%s/%s" chroot "types")]
(when-not (zk/exists client c... | Change format of infrastructure data, update if already registered. | Change format of infrastructure data, update if already registered.
| Clojure | epl-1.0 | venicegeo/pz-discover | clojure | ## Code Before:
(ns pz-discover.util
(:require [clojure.tools.logging :as log]
[zookeeper :as zk]
[pz-discover.models.services :as sm]))
(defn setup-zk-env! [client chroot]
(let [names-node (format "%s/%s" chroot "names")
types-node (format "%s/%s" chroot "types")]
(when-not (zk... |
d639144288cc60d91d9ed0de76458be0df1fa860 | vagrant/provision.sh | vagrant/provision.sh | echo "root:vagrant" | chpasswd
# Update package cache
apt-get update
# Install packages
apt-get install -y python-setuptools
apt-get install -y python-pip
apt-get install -y libpq-dev
apt-get install -y python-dev
pip install -r /rgserver/requirements.txt
apt-get install -y postgresql
apt-get install -y postgresql-... | echo "root:vagrant" | chpasswd
# Update package cache
apt-get update
# Install packages
apt-get install -y python-setuptools
apt-get install -y python-pip
apt-get install -y libpq-dev
apt-get install -y python-dev
pip install -r /rgserver/requirements.txt
apt-get install -y postgresql
apt-get install -y postgresql-... | Add dos2unix conversion for Windows vagrant. | Add dos2unix conversion for Windows vagrant.
| Shell | mit | koduj-z-klasa/rgserver,RobotGame/rgserver,RobotGame/rgserver,RobotGame/rgserver,koduj-z-klasa/rgserver,RobotGame/rgserver,koduj-z-klasa/rgserver,koduj-z-klasa/rgserver | shell | ## Code Before:
echo "root:vagrant" | chpasswd
# Update package cache
apt-get update
# Install packages
apt-get install -y python-setuptools
apt-get install -y python-pip
apt-get install -y libpq-dev
apt-get install -y python-dev
pip install -r /rgserver/requirements.txt
apt-get install -y postgresql
apt-get instal... |
3e15fb7770c1bacca0f7feadb48c7df64acd85e2 | examples/amazon/dynamodb/list-tables.js | examples/amazon/dynamodb/list-tables.js | var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var DynamoDB = awssum.load('amazon/dynamodb').DynamoDB;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;... | var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var DynamoDB = awssum.load('amazon/dynamodb').DynamoDB;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env.AWS_ACCOUNT_ID;... | Add a test so that other regions are fine with DynamoDB using the STS service | Add a test so that other regions are fine with DynamoDB using the STS service
| JavaScript | mit | chilts/awssum | javascript | ## Code Before:
var fmt = require('fmt');
var awssum = require('awssum');
var amazon = awssum.load('amazon/amazon');
var DynamoDB = awssum.load('amazon/dynamodb').DynamoDB;
var env = process.env;
var accessKeyId = env.ACCESS_KEY_ID;
var secretAccessKey = env.SECRET_ACCESS_KEY;
var awsAccountId = env... |
5c6dbfd8077038727c1379d727ed71a3de507013 | spec/plantuml-viewer-view-spec.js | spec/plantuml-viewer-view-spec.js | /* global jasmine atom beforeEach waitsForPromise waitsFor runs describe it expect */
'use strict'
var PlantumlViewerEditor = require('../lib/plantuml-viewer-editor')
var PlantumlViewerView = require('../lib/plantuml-viewer-view')
describe('PlantumlViewerView', function () {
var editor
var view
beforeEach(func... | /* global jasmine atom beforeEach waitsForPromise waitsFor runs describe it expect */
'use strict'
var PlantumlViewerEditor = require('../lib/plantuml-viewer-editor')
var PlantumlViewerView = require('../lib/plantuml-viewer-view')
describe('PlantumlViewerView', function () {
var editor
var view
beforeEach(func... | Fix failing update on change test | Fix failing update on change test
Regression was not ran before last commit. When testing the view
standalone the liveUpdate configuration ahd to be set.
| JavaScript | mit | markushedvall/plantuml-viewer | javascript | ## Code Before:
/* global jasmine atom beforeEach waitsForPromise waitsFor runs describe it expect */
'use strict'
var PlantumlViewerEditor = require('../lib/plantuml-viewer-editor')
var PlantumlViewerView = require('../lib/plantuml-viewer-view')
describe('PlantumlViewerView', function () {
var editor
var view
... |
b76d33fb38afaa63008cd2e4177fe7ebfbd15d54 | metadata/de.wellenvogel.bonjourbrowser.yml | metadata/de.wellenvogel.bonjourbrowser.yml | Categories:
- Internet
License: MIT
AuthorName: Andreas Vogel
AuthorEmail: andreas@wellenvogel.net
AuthorWebSite: https://www.wellenvogel.de/
SourceCode: https://github.com/wellenvogel/BonjourBrowser
IssueTracker: https://github.com/wellenvogel/BonjourBrowser/issues
AutoName: BonjourBrowser
RepoType: git
Repo: http... | Categories:
- Internet
License: MIT
AuthorName: Andreas Vogel
AuthorEmail: andreas@wellenvogel.net
AuthorWebSite: https://www.wellenvogel.de/
SourceCode: https://github.com/wellenvogel/BonjourBrowser
IssueTracker: https://github.com/wellenvogel/BonjourBrowser/issues
AutoName: BonjourBrowser
RepoType: git
Repo: http... | Update BonjourBrowser to 1.7 (107) | Update BonjourBrowser to 1.7 (107)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Internet
License: MIT
AuthorName: Andreas Vogel
AuthorEmail: andreas@wellenvogel.net
AuthorWebSite: https://www.wellenvogel.de/
SourceCode: https://github.com/wellenvogel/BonjourBrowser
IssueTracker: https://github.com/wellenvogel/BonjourBrowser/issues
AutoName: BonjourBrowser
RepoType... |
e5c7baaef9d5ca2bcd8c9214510b8cefb295b3bd | install.sh | install.sh | if [ "$EUID" -ne 0 ]
then echo "[Error] Please run as root"
exit
fi
rm -r /usr/share/tweelectron
cp -r ./dist/Tweelectron-linux-x64/ /usr/share/tweelectron
echo "Done"
| if [ "$EUID" -ne 0 ]
then
echo "[Error] Please run as root"
exit
fi
if [ -d "/usr/share/tweelectron" ]
then
echo "Old version exists. Removing..."
rm -r /usr/share/tweelectron
fi
echo "Copying new files"
cp -r ./dist/Tweelectron-linux-x64/ /usr/share/tweelectron
echo "Done"
| Check if dir exists before removing | Check if dir exists before removing
| Shell | mit | Plastikmensch/Tweelectron,Plastikmensch/Tweelectron,Plastikmensch/Tweelectron | shell | ## Code Before:
if [ "$EUID" -ne 0 ]
then echo "[Error] Please run as root"
exit
fi
rm -r /usr/share/tweelectron
cp -r ./dist/Tweelectron-linux-x64/ /usr/share/tweelectron
echo "Done"
## Instruction:
Check if dir exists before removing
## Code After:
if [ "$EUID" -ne 0 ]
then
echo "[Error] Please run as roo... |
67277e936c14cf6465d23488d4e02c1759c7f04a | img_create.sh | img_create.sh | if [ "x$1" == "x" ]; then
echo "Please provide an argument or two"
return 1;
fi
TARGET=$2
if [ "x$TARGET" == "x" ]; then
TARGET=`basename "$1"`.binhex
fi
TMPFILE=`mktemp`
echo "Converting $1 to $TARGET"
objcopy -j.text -O binary "$1" "$TMPFILE"
hexdump -v -e '"0x%08x\n"' "$TMPFILE" > "$TARGET"
| if [ "x$1" == "x" ]; then
echo "Please provide an argument or two"
return 1;
fi
TARGET=$2
if [ "x$TARGET" == "x" ]; then
TARGET=`basename "$1"`.binhex
fi
TMPFILE=`mktemp`
echo "Converting $1 to $TARGET"
objcopy -j.text -O binary "$1" "$TMPFILE"
readelf -h "$1" | grep "Entry point address:"| awk '{printf "0x%08x... | Put Entry point address at the beginning of binhex | Put Entry point address at the beginning of binhex
Signed-off-by: Zi Yan <a95843713135ee2454bfe7dac9a681dcd8c52c48@cs.rutgers.edu>
| Shell | bsd-3-clause | jvesely/verilog_ALU | shell | ## Code Before:
if [ "x$1" == "x" ]; then
echo "Please provide an argument or two"
return 1;
fi
TARGET=$2
if [ "x$TARGET" == "x" ]; then
TARGET=`basename "$1"`.binhex
fi
TMPFILE=`mktemp`
echo "Converting $1 to $TARGET"
objcopy -j.text -O binary "$1" "$TMPFILE"
hexdump -v -e '"0x%08x\n"' "$TMPFILE" > "$TARGET"
... |
f207a90c1ff48f37a9871211bf5951c96b0f8f44 | src/Framework/Http/Middleware/Factory/RequestHandlerFactory.php | src/Framework/Http/Middleware/Factory/RequestHandlerFactory.php | <?php declare(strict_types=1);
namespace Onion\Framework\Http\Middleware\Factory;
use Onion\Framework\Router\Route;
use Psr\Container\ContainerInterface;
use Onion\Framework\Router\Interfaces\RouterInterface;
use Onion\Framework\Dependency\Interfaces\FactoryInterface;
use Onion\Framework\Http\Middleware\RequestHandler... | <?php declare(strict_types=1);
namespace Onion\Framework\Http\Middleware\Factory;
use Onion\Framework\Router\Route;
use Psr\Container\ContainerInterface;
use Onion\Framework\Dependency\Interfaces\FactoryInterface;
use Onion\Framework\Http\Middleware\RequestHandler;
class RequestHandlerFactory implements FactoryInterf... | Remove obsolete reference to RouterInterface | Remove obsolete reference to RouterInterface
| PHP | mit | phOnion/framework | php | ## Code Before:
<?php declare(strict_types=1);
namespace Onion\Framework\Http\Middleware\Factory;
use Onion\Framework\Router\Route;
use Psr\Container\ContainerInterface;
use Onion\Framework\Router\Interfaces\RouterInterface;
use Onion\Framework\Dependency\Interfaces\FactoryInterface;
use Onion\Framework\Http\Middlewar... |
b870028ce8edcb5001f1a4823517d866db0324a8 | pyglab/apirequest.py | pyglab/apirequest.py | import enum
import json
from pyglab.exceptions import RequestError
import requests
@enum.unique
class RequestType(enum.Enum):
GET = 1
POST = 2
PUT = 3
DELETE = 4
class ApiRequest:
_request_creators = {
RequestType.GET: requests.get,
RequestType.POST: requests.post,
RequestT... | import json
from pyglab.exceptions import RequestError
import requests
class RequestType(object):
GET = 1
POST = 2
PUT = 3
DELETE = 4
class ApiRequest:
_request_creators = {
RequestType.GET: requests.get,
RequestType.POST: requests.post,
RequestType.PUT: requests.put,
... | Make RequestType a normal class, not an enum. | Make RequestType a normal class, not an enum.
This removes the restriction of needing Python >= 3.4. RequestType is
now a normal class with class variables (fixes #19).
| Python | mit | sloede/pyglab,sloede/pyglab | python | ## Code Before:
import enum
import json
from pyglab.exceptions import RequestError
import requests
@enum.unique
class RequestType(enum.Enum):
GET = 1
POST = 2
PUT = 3
DELETE = 4
class ApiRequest:
_request_creators = {
RequestType.GET: requests.get,
RequestType.POST: requests.post,
... |
7a89ff5c87d47424c65942740dcb2e1f542d28e4 | lib/fulcrum/media_resource.rb | lib/fulcrum/media_resource.rb | require 'open-uri'
module Fulcrum
class MediaResource < Resource
include Actions::List
include Actions::Find
include Actions::Create
def default_content_type
raise NotImplementedError,
'default_content_type must be implemented in derived classes'
end
def attributes_for_upload(... | require 'open-uri'
module Fulcrum
class MediaResource < Resource
include Actions::List
include Actions::Find
include Actions::Create
def default_content_type
raise NotImplementedError,
'default_content_type must be implemented in derived classes'
end
def attributes_for_upload(... | Use the default a little later. | Use the default a little later.
| Ruby | mit | fulcrumapp/fulcrum-ruby | ruby | ## Code Before:
require 'open-uri'
module Fulcrum
class MediaResource < Resource
include Actions::List
include Actions::Find
include Actions::Create
def default_content_type
raise NotImplementedError,
'default_content_type must be implemented in derived classes'
end
def attrib... |
024e041bf22510b3a7adb2a3e3b113662acc51d7 | .travis.yml | .travis.yml | language: c
# Ubuntu 14.04 Trusty support
sudo: required
dist: trusty
compiler:
- clang
- gcc
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libeigen3-dev
- sudo apt-get install -y libopenmpi-dev
- sudo apt-get install -y libboost-all-dev
script:
- mkdir build
- cd build
- cma... | language: cpp
# Ubuntu 16.04 Xenial support
os: linux
dist: xenial
compiler:
- clang
- gcc
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libeigen3-dev
- sudo apt-get install -y libopenmpi-dev
- sudo apt-get install -y libboost-all-dev
script:
# Stop on first error
- set -e
- ... | Upgrade Travis CI configuration to Ubuntu Xenial | Upgrade Travis CI configuration to Ubuntu Xenial
The dedicated g++-5 build has been excluded as it is the default
compiler in Ubuntu Xenial anyway.
| YAML | mpl-2.0 | aeantipov/pomerol,aeantipov/pomerol,aeantipov/pomerol | yaml | ## Code Before:
language: c
# Ubuntu 14.04 Trusty support
sudo: required
dist: trusty
compiler:
- clang
- gcc
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libeigen3-dev
- sudo apt-get install -y libopenmpi-dev
- sudo apt-get install -y libboost-all-dev
script:
- mkdir build
- ... |
274884f867adc0fb547f717312620f2a4ab0bd95 | tests/test-setup.yml | tests/test-setup.yml | ---
- hosts: all
become: yes
tasks:
- name: Update apt cache.
apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: Install test dependencies (RedHat).
package: name=logrotate state=present
when: ansible_os_family == 'RedHat'
- name: Copy initctl_faker into place f... | ---
- hosts: all
become: yes
tasks:
- name: Update apt cache.
apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: Install test dependencies (RedHat).
package: name=logrotate state=present
when: ansible_os_family == 'RedHat'
- name: Override postfix_inet_protocols... | Fix breaking CentOS 7 test. | Fix breaking CentOS 7 test.
| YAML | mit | debugacademy/drupal-vm,debugacademy/drupal-vm,debugacademy/drupal-vm,debugacademy/drupal-vm | yaml | ## Code Before:
---
- hosts: all
become: yes
tasks:
- name: Update apt cache.
apt: update_cache=yes
when: ansible_os_family == 'Debian'
- name: Install test dependencies (RedHat).
package: name=logrotate state=present
when: ansible_os_family == 'RedHat'
- name: Copy initctl_fa... |
876de49a9c5d6e2d75714a606238e9041ed49baf | sample/views/booking_day.html | sample/views/booking_day.html | <table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
<td><a ui-sref="room.detail({roomId: reservati... | <table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
<td><a ui-sref="room.detail({roomId: reservati... | Send correct url params for the room link in booking view | fix(sample): Send correct url params for the room link in booking view
| HTML | mit | thebigredgeek/angular-breadcrumb,cuiliang/angular-breadcrumb,allwebsites/angular-breadcrumb,allwebsites/angular-breadcrumb,ansgarkroger/angular-breadcrumb,ansgarkroger/angular-breadcrumb,ncuillery/angular-breadcrumb,cuiliang/angular-breadcrumb,zpzgone/angular-breadcrumb,zpzgone/angular-breadcrumb,kazinov/angular-breadc... | html | ## Code Before:
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
<td><a ui-sref="room.detail({r... |
7ab7642aa1583aeae0a2188b36c2dded038a7628 | models/index.js | models/index.js | 'use strict';
var fs = require('fs');
var path = require('path');
var Sequelize = require('sequelize');
var basename = path.basename(module.filename);
var env = process.env.NODE_ENV || 'development';
if(env !== 'production') {
var config = require(__dirname + '/../config/development.json')[env];
... | 'use strict';
var fs = require('fs');
var path = require('path');
var Sequelize = require('sequelize');
var basename = path.basename(module.filename);
var env = process.env.NODE_ENV || 'development';
if(env !== 'production') {
var config = require(__dirname + '/../config/development.json')[env];
... | Fix association model with user and email | Fix association model with user and email
| JavaScript | mit | watchiot/watchiot-api,watchiot/watchiot-api | javascript | ## Code Before:
'use strict';
var fs = require('fs');
var path = require('path');
var Sequelize = require('sequelize');
var basename = path.basename(module.filename);
var env = process.env.NODE_ENV || 'development';
if(env !== 'production') {
var config = require(__dirname + '/../config/developme... |
1cd5ee98b5806082322a5887cb1cd4a7b20da5a7 | .github/mergify.yml | .github/mergify.yml | pull_request_rules:
- name: Automatic approve on dependabot PR
conditions:
- author~=^dependabot(|-preview)\[bot\]$
actions:
review:
type: APPROVE
- name: Automatic merge on dependabot PR after success CI
conditions:
- author~=^dependabot(|-preview)\[bot\]$
- check-succes... | pull_request_rules:
- name: Automatic approve on dependabot PR
conditions:
- author~=^dependabot(|-preview)\[bot\]$
actions:
review:
type: APPROVE
- name: Automatic merge on dependabot PR after success CI
conditions:
- author~=^dependabot(|-preview)\[bot\]$
- '#commits-be... | Remove deprecated `merge: strict` from Mergify.yml | Remove deprecated `merge: strict` from Mergify.yml
Remove `merge: strict` from the Mergify configuration because it is
deprecated:
> The configuration uses the deprecated strict mode of the merge action.
> A brownout is planned for the whole December 6th, 2021 day.
> This option will be removed on January 10th, 2022.... | YAML | mit | GitTools/GitVersion,GitTools/GitVersion,asbjornu/GitVersion,gep13/GitVersion,gep13/GitVersion,asbjornu/GitVersion | yaml | ## Code Before:
pull_request_rules:
- name: Automatic approve on dependabot PR
conditions:
- author~=^dependabot(|-preview)\[bot\]$
actions:
review:
type: APPROVE
- name: Automatic merge on dependabot PR after success CI
conditions:
- author~=^dependabot(|-preview)\[bot\]$
... |
49bed20629d4b2ef50026700b98694da4c2ce224 | tasks.py | tasks.py |
"""Useful task commands for development and maintenance."""
from invoke import run, task
@task
def clean():
"""Clean the project directory of unwanted files and directories."""
run('rm -rf gmusicapi_scripts.egg-info')
run('rm -rf .coverage')
run('rm -rf .tox')
run('rm -rf .cache')
run('rm -rf build/')
run('... |
"""Useful task commands for development and maintenance."""
from invoke import run, task
@task
def clean():
"""Clean the project directory of unwanted files and directories."""
run('rm -rf gmusicapi_scripts.egg-info')
run('rm -rf .coverage')
run('rm -rf .tox')
run('rm -rf .cache')
run('rm -rf build/')
run('... | Add task for building docs | Add task for building docs
| Python | mit | thebigmunch/gmusicapi-scripts | python | ## Code Before:
"""Useful task commands for development and maintenance."""
from invoke import run, task
@task
def clean():
"""Clean the project directory of unwanted files and directories."""
run('rm -rf gmusicapi_scripts.egg-info')
run('rm -rf .coverage')
run('rm -rf .tox')
run('rm -rf .cache')
run('rm -rf... |
4205b262d3e26d836e20be1506e3d9a4a9b04f9e | scss/bootstrap.scss | scss/bootstrap.scss | /*!
* Bootstrap v4.0.0-beta.2 (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@import "functions";
@import "variables";
@import "mixins";
@import "root";
@import "print";
@imp... | /*!
* Bootstrap v4.0.0-beta.2 (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@import "functions";
@import "variables";
@import "mixins";
@import "root";
@import "reboot";
@im... | Update SCSS import order to have print styles last | Update SCSS import order to have print styles last
| SCSS | mit | tagliala/bootstrap,9-chirno/chirno,peterblazejewicz/bootstrap,m5o/bootstrap,Lyricalz/bootstrap,bardiharborow/bootstrap,peterblazejewicz/bootstrap,janseliger/bootstrap,tjkohli/bootstrap,gijsbotje/bootstrap,joblocal/bootstrap,joblocal/bootstrap,supergibbs/bootstrap,GerHobbelt/bootstrap,supergibbs/bootstrap,stanwmusic/boo... | scss | ## Code Before:
/*!
* Bootstrap v4.0.0-beta.2 (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@import "functions";
@import "variables";
@import "mixins";
@import "root";
@impo... |
0b5e16ec9806dc947e5d3a90b620a1aadeec2772 | test/helpers/before.js | test/helpers/before.js | /*
* Suite-global initialization that should occur before any other files are required. It's probably
* a code smell that I have to do this.
*/
var config = require('../../src/config');
function reconfigure () {
if (process.env.INTEGRATION) {
console.log('Integration test mode active.');
config.configur... | /*
* Suite-global initialization that should occur before any other files are required. It's probably
* a code smell that I have to do this.
*/
var config = require('../../src/config');
function reconfigure () {
if (process.env.INTEGRATION) {
console.log('Integration test mode active.');
config.configur... | Use ADMIN_APIKEY from the env in tests. | Use ADMIN_APIKEY from the env in tests.
| JavaScript | mit | deconst/content-service,deconst/content-service | javascript | ## Code Before:
/*
* Suite-global initialization that should occur before any other files are required. It's probably
* a code smell that I have to do this.
*/
var config = require('../../src/config');
function reconfigure () {
if (process.env.INTEGRATION) {
console.log('Integration test mode active.');
... |
8367b7b5e992be73768a9371262b13a95618d759 | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- cd tests
script: phpunit | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
before_install:
- composer self-update
install:
- composer update -o
before_script:
- cd tests
script: phpunit | Fix Travis config for composer usage | Fix Travis config for composer usage
| YAML | mit | MAXakaWIZARD/GettextParser,MAXakaWIZARD/GettextParser | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- cd tests
script: phpunit
## Instruction:
Fix Travis config for composer usage
## Code After:
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
before_install:
- composer self-update
install:
- composer update -o
before_script:
- cd te... |
1e1c8b7a4e34c1a0b71501a29273db8597f33169 | templates/editor/modularity-enabled-modules.php | templates/editor/modularity-enabled-modules.php | <div class="modularity-modules">
<?php foreach ($modules as $moduleId => $module) : ?>
<div class="modularity-module modularity-js-draggable" data-module-id="<?php echo $moduleId; ?>" data-sidebar-incompability='<?php echo is_array($module['sidebar_incompability']) ? json_encode($module['sidebar_incompability']... | <div class="modularity-modules">
<?php foreach ($modules as $moduleId => $module) : ?>
<div class="modularity-module modularity-js-draggable"
data-module-id="<?php echo $moduleId; ?>"
data-sidebar-incompability='<?php echo (isset($module['sidebar_incompability']) && is_array($module['sidebar_i... | Check if module array has property set before using it. Cleaning up messy row to multiple. | Check if module array has property set before using it.
Cleaning up messy row to multiple.
| PHP | mit | helsingborg-stad/Modularity,helsingborg-stad/Modularity | php | ## Code Before:
<div class="modularity-modules">
<?php foreach ($modules as $moduleId => $module) : ?>
<div class="modularity-module modularity-js-draggable" data-module-id="<?php echo $moduleId; ?>" data-sidebar-incompability='<?php echo is_array($module['sidebar_incompability']) ? json_encode($module['sidebar... |
ba905a202f5d9fd85d529ff77d58a9ad81d21f89 | doc/source/index.rst | doc/source/index.rst | ====================================
pySTEPS -- The nowcasting initiative
====================================
pySTEPS is a community-driven initiative for developing and maintaining an easy
to use, modular, free and open source Python framework for short-term ensemble
prediction systems.
The focus is on probabilisti... | ====================================
pySTEPS -- The nowcasting initiative
====================================
Pysteps is a community-driven initiative for developing and maintaining an easy
to use, modular, free and open source Python framework for short-term ensemble
prediction systems.
The focus is on probabilisti... | Add link to github page and reference publication | Add link to github page and reference publication
| reStructuredText | bsd-3-clause | pySTEPS/pysteps | restructuredtext | ## Code Before:
====================================
pySTEPS -- The nowcasting initiative
====================================
pySTEPS is a community-driven initiative for developing and maintaining an easy
to use, modular, free and open source Python framework for short-term ensemble
prediction systems.
The focus is... |
b03a6179e48a2b12e47ba4882f13264b687ffd6a | .travis.yml | .travis.yml | language: ruby
cache: bundler
script: "bundle exec rake"
rvm:
- 1.9.3
- 2.0.0
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
before_script:
- cd spec/dummy; bundle exec rake db:setup; cd ../..
- cd spec/dummy; bundle rake db:test:prepare; cd ../..
bundler_args: "--binstubs --without development"
# IRC ... | language: ruby
cache: bundler
script: "bundle exec rake"
rvm:
- 1.9.3
- 2.0.0
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
before_script:
- bundle exec rake app:db:setup
bundler_args: "--binstubs --without development"
# IRC notification
notifications:
irc: "irc.freenode.org#cyt"
| Change before_script to use app:db:setup. | Change before_script to use app:db:setup.
| YAML | mit | hauledev/has_vcards,huerlisi/has_vcards,hauledev/has_vcards,huerlisi/has_vcards,hauledev/has_vcards,huerlisi/has_vcards | yaml | ## Code Before:
language: ruby
cache: bundler
script: "bundle exec rake"
rvm:
- 1.9.3
- 2.0.0
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
before_script:
- cd spec/dummy; bundle exec rake db:setup; cd ../..
- cd spec/dummy; bundle rake db:test:prepare; cd ../..
bundler_args: "--binstubs --without deve... |
b1225a46c82ada350a82fbe7c406cb66548318b1 | watir/lib/watir/loader.rb | watir/lib/watir/loader.rb | module Watir
class Browser
class << self
def new(browser=nil, *args)
if browser && browser.to_sym != :ie && Watir.driver == :classic
Watir.driver = :webdriver
end
Watir.load_driver
if Watir.driver == :webdriver
# remove this class method for WebDriver to... | module Watir
class Browser
class << self
def new(browser=nil, *args)
if browser && browser.to_sym != :ie && Watir.driver == :classic
Watir.driver = :webdriver
end
Watir.load_driver
if Watir.driver == :webdriver
# remove this class method for WebDriver to... | Exit when gem is missing. | Exit when gem is missing.
| Ruby | bsd-3-clause | kawakami-o3/watir | ruby | ## Code Before:
module Watir
class Browser
class << self
def new(browser=nil, *args)
if browser && browser.to_sym != :ie && Watir.driver == :classic
Watir.driver = :webdriver
end
Watir.load_driver
if Watir.driver == :webdriver
# remove this class method ... |
b272412370d68915fad534cf8a6ec3ae9dbae0b9 | source-optional-requirements.txt | source-optional-requirements.txt | psutil==2.1.1
pycurl==7.19.5
pymongo==2.6.3
| kazoo==1.3.1
psutil==2.1.1
pycurl==7.19.5
pymongo==2.6.3
| Add kazoo as an optional requirement | Add kazoo as an optional requirement
| Text | bsd-3-clause | brettlangdon/dd-agent,jyogi/purvar-agent,jraede/dd-agent,zendesk/dd-agent,zendesk/dd-agent,gphat/dd-agent,cberry777/dd-agent,JohnLZeller/dd-agent,Mashape/dd-agent,huhongbo/dd-agent,AniruddhaSAtre/dd-agent,citrusleaf/dd-agent,jraede/dd-agent,zendesk/dd-agent,truthbk/dd-agent,JohnLZeller/dd-agent,jvassev/dd-agent,PagerDu... | text | ## Code Before:
psutil==2.1.1
pycurl==7.19.5
pymongo==2.6.3
## Instruction:
Add kazoo as an optional requirement
## Code After:
kazoo==1.3.1
psutil==2.1.1
pycurl==7.19.5
pymongo==2.6.3
|
828585e51bd57e94296b063345070dead4d1717f | src/client/app/graph/canvas/canvas.component.html | src/client/app/graph/canvas/canvas.component.html | <svg id="svg"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
(mousedown)="this.onMousedown($event)"
(mousewheel)="this.onMousewheel($event)">
<g uxg-arrow
*ngFor="let arrow of (this.canvasService.arrows | toIterable)"
[arrow]="arrow"></g>... | <svg id="svg"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
(mousedown)="this.onMousedown($event)"
(mousewheel)="this.onMousewheel($event)">
<g uxg-arrow
*ngFor="let arrow of (this.canvasService.arrows | toIterable)"
[arrow]="arrow"></g>... | Add the card id as an attribute on the card's HTML element | Add the card id as an attribute on the card's HTML element
| HTML | mit | tessa3/uxgraph,tessa3/uxgraph,tessa3/uxgraph,tessa3/uxgraph | html | ## Code Before:
<svg id="svg"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
(mousedown)="this.onMousedown($event)"
(mousewheel)="this.onMousewheel($event)">
<g uxg-arrow
*ngFor="let arrow of (this.canvasService.arrows | toIterable)"
[arr... |
fc775adb3bde69e432502bef304715390ef64688 | requirements.txt | requirements.txt | codecov==2.0.11
docutils==0.14
flake8==3.5.0
Pygments==2.2.0
pyobjc-core==4.1 ; sys_platform == 'darwin'
pytest==5.4.2
pytest-cov==2.5.1
PyYAML==5.3.1
| codecov==2.0.11
docutils==0.14
flake8==3.5.0
Pygments==2.2.0
pyobjc-core==4.1 ; sys_platform == 'darwin'
pytest-cov==2.5.1
pytest==5.4.2 ; python_version > "3.4"
PyYAML==5.3.1 ; python_version > "3.4"
pytest==3.3.1 ; python_version <= "3.4"
pyyaml==3.12 ; python_version <= "3.4"
| Add environment markers to aid python3.4 support | Add environment markers to aid python3.4 support
| Text | mit | GreatFruitOmsk/nativeconfig | text | ## Code Before:
codecov==2.0.11
docutils==0.14
flake8==3.5.0
Pygments==2.2.0
pyobjc-core==4.1 ; sys_platform == 'darwin'
pytest==5.4.2
pytest-cov==2.5.1
PyYAML==5.3.1
## Instruction:
Add environment markers to aid python3.4 support
## Code After:
codecov==2.0.11
docutils==0.14
flake8==3.5.0
Pygments==2.2.0
pyobjc-cor... |
cc4f209f011639d4f6888a39e71b1145e58cf5c5 | src/route/changelogs.js | src/route/changelogs.js | const router = require('express').Router();
const scraper = require('../service/scraper');
router.get('/', (req, res, next) => {
const packageName = req.query.package;
if (!packageName) {
const err = new Error('Undefined query');
err.satus = 404;
next(err);
}
scraper
... | const router = require('express').Router();
const scraper = require('../service/scraper');
router.get('/:package/latest', (req, res, next) => {
const packageName = req.params.package;
if (!packageName) {
const err = new Error('Undefined query');
err.satus = 404;
next(err);
}
... | Change package query from query param to path variable | Change package query from query param to path variable
| JavaScript | mit | enric-sinh/android-changelog-api | javascript | ## Code Before:
const router = require('express').Router();
const scraper = require('../service/scraper');
router.get('/', (req, res, next) => {
const packageName = req.query.package;
if (!packageName) {
const err = new Error('Undefined query');
err.satus = 404;
next(err);
}
... |
062b5bc427c39067628bd0b68ba03d30f654e9e0 | lib/api-wmata.js | lib/api-wmata.js | var request = require('request');
var wmataReq = request.defaults({
baseUrl: 'https://api.wmata.com',
qs: { api_key: process.env.WMATA_API_KEY }
});
exports.get = function (endpoint, successCallback, errorCallback) {
wmataReq(endpoint, function (error, res, body) {
if (!error && res.statusCode === 200) {
... | var request = require('request');
var wmataReq = request.defaults({
baseUrl: 'https://api.wmata.com',
qs: { api_key: process.env.WMATA_API_KEY }
});
exports.get = function (endpoint, successCallback, errorCallback) {
wmataReq(endpoint, function (error, res, body) {
if (!error && res.statusCode === 200) {
... | Throw error when errorCallback isn't defined | Throw error when errorCallback isn't defined
| JavaScript | mit | pmyers88/dc-metro-echo | javascript | ## Code Before:
var request = require('request');
var wmataReq = request.defaults({
baseUrl: 'https://api.wmata.com',
qs: { api_key: process.env.WMATA_API_KEY }
});
exports.get = function (endpoint, successCallback, errorCallback) {
wmataReq(endpoint, function (error, res, body) {
if (!error && res.statusCo... |
88dba9b99bcd7090657ba78ec42cb10ac786ad8e | tests/PDOTest.php | tests/PDOTest.php | <?php
use PreSQL\PDO;
class PDOTest extends PHPUnit_Framework_TestCase
{
public function testIsPreSQLPDOVersionReturnedCorrectly()
{
$this->assertEquals(PDO::getVersion(), PDO::$version);
}
}
| <?php
use PreSQL\PDO;
class PDOTest extends PHPUnit_Framework_TestCase
{
/**
* @covers \PreSQL\PDO
*/
public function testIsPreSQLPDOVersionReturnedCorrectly()
{
$this->assertEquals(PDO::getVersion(), PDO::$version);
}
}
| Add @covers annotation to test how coverage report changes. | Add @covers annotation to test how coverage report changes.
| PHP | bsd-3-clause | PreSQL/PreSQL-PDO | php | ## Code Before:
<?php
use PreSQL\PDO;
class PDOTest extends PHPUnit_Framework_TestCase
{
public function testIsPreSQLPDOVersionReturnedCorrectly()
{
$this->assertEquals(PDO::getVersion(), PDO::$version);
}
}
## Instruction:
Add @covers annotation to test how coverage report changes.
## Code Afte... |
e34bafc84fd5a61c8bb9aeba69d7b1ebf671f99b | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_core.h | // Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_client/src/inclu... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_client/src/i... | Declare PPB_Core as a struct, not a class. (Prevents Clang warning) | Declare PPB_Core as a struct, not a class. (Prevents Clang warning)
Review URL: http://codereview.chromium.org/8002017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@102565 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | adobe/chromium,gavinp/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,ad... | c | ## Code Before:
// Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_CORE_H_
#include "native_... |
3bca2987aa8e822da860f4993b383172ba31b424 | app/views/team_name/sign.html.erb | app/views/team_name/sign.html.erb | <% content_for :body_class, "#{ @colour }" %>
<h1>
<%= (@team_name.upcase == @team_name || @team_name.downcase == @team_name) ? @team_name.upcase : @team_name %>
</h1>
| <% content_for :body_class, "#{ @colour }" %>
<h1>
<% @team_name = @team_name.gsub(/^(GOV.UK)/i, "\\1<br>") %>
<%= (@team_name.upcase == @team_name || @team_name.downcase == @team_name) ? sanitize(@team_name.upcase) : sanitize(@team_name) %>
</h1>
| Insert a line break after GOV.UK | Insert a line break after GOV.UK
Matches the design of the physical signs | HTML+ERB | mit | govuklaurence/tv-team-name,govuklaurence/tv-team-name,govuklaurence/tv-team-name | html+erb | ## Code Before:
<% content_for :body_class, "#{ @colour }" %>
<h1>
<%= (@team_name.upcase == @team_name || @team_name.downcase == @team_name) ? @team_name.upcase : @team_name %>
</h1>
## Instruction:
Insert a line break after GOV.UK
Matches the design of the physical signs
## Code After:
<% content_for :body_class... |
7a1bdf74c98feb61db8db4803443a7a32b8e58f2 | cookbooks/omnibus-supermarket/.kitchen.yml | cookbooks/omnibus-supermarket/.kitchen.yml | ---
driver:
name: vagrant
network:
- ['private_network', { ip: '192.168.33.33' }]
synced_folders:
- ['../../pkg', '/tmp/packages', 'create: true, type: :rsync']
provisioner:
name: chef_solo
solo_rb:
ssl_verify_mode: verify_peer
platforms:
- name: ubuntu-10.04
- name: ubuntu-12.04
- name: c... | ---
driver:
name: vagrant
network:
- ['private_network', { ip: '192.168.33.33' }]
synced_folders:
- ['../../pkg', '/tmp/packages', 'create: true, type: :rsync']
provisioner:
name: chef_solo
solo_rb:
ssl_verify_mode: verify_peer
platforms:
- name: ubuntu-10.04
- name: ubuntu-12.04
- name: u... | Add Ubuntu 14.04 to TK test matrix | Add Ubuntu 14.04 to TK test matrix
| YAML | apache-2.0 | chef/supermarket,chef/supermarket,chef/omnibus-supermarket,nellshamrell/supermarket,nellshamrell/supermarket,robbkidd/supermarket,juliandunn/supermarket,robbkidd/supermarket,chef/supermarket,nellshamrell/supermarket,chef/supermarket,juliandunn/supermarket,tas50/supermarket,tas50/supermarket,chef/omnibus-supermarket,tas... | yaml | ## Code Before:
---
driver:
name: vagrant
network:
- ['private_network', { ip: '192.168.33.33' }]
synced_folders:
- ['../../pkg', '/tmp/packages', 'create: true, type: :rsync']
provisioner:
name: chef_solo
solo_rb:
ssl_verify_mode: verify_peer
platforms:
- name: ubuntu-10.04
- name: ubuntu-1... |
8472cdf128c3b08252d73cae39a3ee12a1e13ed8 | Sources/com/kaviju/accesscontrol/authentication/RandomPasswordGenerator.java | Sources/com/kaviju/accesscontrol/authentication/RandomPasswordGenerator.java | package com.kaviju.accesscontrol.authentication;
import java.util.Random;
public class RandomPasswordGenerator {
static final String possibleChars = "23456789abcdefghjklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ@#$%?&*()-+";
static Random rnd = new Random();
static public String newPassword(int len) {
{
StringBui... | package com.kaviju.accesscontrol.authentication;
import java.util.Random;
public class RandomPasswordGenerator {
static final String possibleChars = "23456789abcdefghjklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ@#$%?&*()-+";
static final String possibleDigits = "0123456789";
static Random rnd = new Random();
static p... | Add a digits only password generator. | Add a digits only password generator.
| Java | apache-2.0 | Kaviju/KAAccessControl,Kaviju/KAAccessControl | java | ## Code Before:
package com.kaviju.accesscontrol.authentication;
import java.util.Random;
public class RandomPasswordGenerator {
static final String possibleChars = "23456789abcdefghjklmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ@#$%?&*()-+";
static Random rnd = new Random();
static public String newPassword(int len) {
... |
6a692e20176a5514b4a63a45f6bb90a079b48cff | spec/controllers/users_controller_spec.rb | spec/controllers/users_controller_spec.rb | require 'spec_helper'
describe UsersController do
before :all do
@model = User
end
before :all do
@user = Factory :user
end
context "as an admin" do
end
#TODO lots of work here
end
| require 'spec_helper'
describe UsersController do
before :all do
@model = User
end
context "as an admin" do
before do
login_as_admin
end
it_should_behave_like "standard GET index"
it_should_behave_like "standard GET show"
end
context "as a player" do
before do
login
... | Test admin functions for viewing users. | Test admin functions for viewing users.
| Ruby | mit | peplin/threephase,peplin/threephase | ruby | ## Code Before:
require 'spec_helper'
describe UsersController do
before :all do
@model = User
end
before :all do
@user = Factory :user
end
context "as an admin" do
end
#TODO lots of work here
end
## Instruction:
Test admin functions for viewing users.
## Code After:
require 'spec_helper'
de... |
730c2dc11a7854543416aa399b527b22d9a9c334 | assemblies/docker/docker-entrypoint.sh | assemblies/docker/docker-entrypoint.sh |
echo "Starting Apache Karaf"
exec $KARAF_HOME/bin/karaf
exec "$@" |
if [ "$1" = "server" ]; then
echo "Starting Apache Karaf (server mode)"
exec $KARAF_HOME/bin/karaf server
else
echo "Starting Apache Karaf"
exec $KARAF_HOME/bin/karaf
fi
exec "$@"
| Add support of server mode in the Docker entrypoint | [KARAF-5982] Add support of server mode in the Docker entrypoint
| Shell | apache-2.0 | grgrzybek/karaf,grgrzybek/karaf,grgrzybek/karaf | shell | ## Code Before:
echo "Starting Apache Karaf"
exec $KARAF_HOME/bin/karaf
exec "$@"
## Instruction:
[KARAF-5982] Add support of server mode in the Docker entrypoint
## Code After:
if [ "$1" = "server" ]; then
echo "Starting Apache Karaf (server mode)"
exec $KARAF_HOME/bin/karaf server
else
echo "Starting Apache... |
5016d4facd131380871288df0456910d29c39c73 | lib/retina_rails/extensions/carrierwave.rb | lib/retina_rails/extensions/carrierwave.rb | module RetinaRails
module Extensions
module CarrierWave
module Mount
def self.included base
base.module_eval do
alias_method :original_mount_uploader, :mount_uploader
##
# Serialize retina_dimensions
# if mounted to class has a retina_dimen... | module RetinaRails
module Extensions
module CarrierWave
module Mount
def self.included base
base.module_eval do
alias_method :original_mount_uploader, :mount_uploader
##
# Serialize retina_dimensions
# if mounted to class has a retina_dimen... | Check if table exists before calling columns_hash | Check if table exists before calling columns_hash
| Ruby | mit | jhnvz/retina_rails,testzugang/retina_rails | ruby | ## Code Before:
module RetinaRails
module Extensions
module CarrierWave
module Mount
def self.included base
base.module_eval do
alias_method :original_mount_uploader, :mount_uploader
##
# Serialize retina_dimensions
# if mounted to class ha... |
284aff32125618a99015da958004f5bc1c5c8c1e | src/main/java/session/XaJpaDemoBean.java | src/main/java/session/XaJpaDemoBean.java | package session;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import domain.Customer;
import domain.Order;
public class XaJpaDemoBean {
@PersistenceContext(name="customer") E... | package session;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.PersistenceContext;
import domain.Customer;
import domain.Order;
@Stateless
public class XaJpaDemoBean {
@PersistenceContext(name="customer") EntityManager custo... | Annotate correctly (@Stateless). Correct several printouts. | Annotate correctly (@Stateless). Correct several printouts.
| Java | bsd-2-clause | IanDarwin/eedemo-xa,IanDarwin/eedemo-xa | java | ## Code Before:
package session;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import domain.Customer;
import domain.Order;
public class XaJpaDemoBean {
@PersistenceContext(na... |
ff65853def5bf1044fe457362f85b8aecca66152 | tests/laser/transaction/create.py | tests/laser/transaction/create.py | import mythril.laser.ethereum.transaction as transaction
from mythril.ether import util
import mythril.laser.ethereum.svm as svm
from mythril.disassembler.disassembly import Disassembly
from datetime import datetime
from mythril.ether.soliditycontract import SolidityContract
import tests
from mythril.analysis.security ... | from mythril.laser.ethereum.transaction import execute_contract_creation
from mythril.ether import util
import mythril.laser.ethereum.svm as svm
from mythril.disassembler.disassembly import Disassembly
from datetime import datetime
from mythril.ether.soliditycontract import SolidityContract
import tests
from mythril.an... | Update test to reflect the refactor | Update test to reflect the refactor
| Python | mit | b-mueller/mythril,b-mueller/mythril,b-mueller/mythril,b-mueller/mythril | python | ## Code Before:
import mythril.laser.ethereum.transaction as transaction
from mythril.ether import util
import mythril.laser.ethereum.svm as svm
from mythril.disassembler.disassembly import Disassembly
from datetime import datetime
from mythril.ether.soliditycontract import SolidityContract
import tests
from mythril.an... |
594b03ceb00f0ac76ad015a7380a4c9f23903f50 | lib/__tests__/ActionCable-test.js | lib/__tests__/ActionCable-test.js | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { ActionCableProvider, ActionCable } from '../index';
test('ActionCable render without children', () => {
const node = shallow(
<ActionCableProvider>
<ActionCable />
</ActionCableProvider>
);
expect(... | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Provider, { ActionCableProvider, ActionCable } from '../index';
test('ActionCable render without children', () => {
const node = shallow(
<ActionCableProvider>
<ActionCable />
</ActionCableProvider>
);
... | Add test for default exporting ActionCableProvider | Add test for default exporting ActionCableProvider
| JavaScript | mit | cpunion/react-actioncable-provider | javascript | ## Code Before:
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { ActionCableProvider, ActionCable } from '../index';
test('ActionCable render without children', () => {
const node = shallow(
<ActionCableProvider>
<ActionCable />
</ActionCableProvider>... |
d0e6353434fe7d47462c43a17a48723835e5a5ae | cbv/static/permalinks.js | cbv/static/permalinks.js | // Auto-expand the accordion and jump to the target if url contains a valid hash
(function(doc){
"use strict";
$(function(){
var $section, hash = window.location.hash;
if(hash){
$section = $(hash);
if($section){
$(doc).one('hidden.bs.collapse', hash, func... | // Auto-expand the accordion and jump to the target if url contains a valid hash
(function(doc){
"use strict";
// On DOM Load...
$(function(){
var hash = window.location.hash;
var headerHeight = $('.navbar').height();
var methods = $('.accordion-group .accordion-heading');
v... | Work around for lack of signal for collapsing of all methods | Work around for lack of signal for collapsing of all methods
| JavaScript | bsd-2-clause | refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector | javascript | ## Code Before:
// Auto-expand the accordion and jump to the target if url contains a valid hash
(function(doc){
"use strict";
$(function(){
var $section, hash = window.location.hash;
if(hash){
$section = $(hash);
if($section){
$(doc).one('hidden.bs.colla... |
1be067ae18f7bcd7be30856dd1149d58d1cea8bb | x/dclupgrade/types/proposed_upgrade.go | x/dclupgrade/types/proposed_upgrade.go | package types
import sdk "github.com/cosmos/cosmos-sdk/types"
func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool {
addrStr := address.String()
for _, approval := range upgrade.Approvals {
if approval.Address == addrStr {
return true
}
}
return false
}
| package types
import sdk "github.com/cosmos/cosmos-sdk/types"
func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool {
addrStr := address.String()
for _, approval := range upgrade.Approvals {
if approval.Address == addrStr {
return true
}
}
return false
}
func (upgrade ProposedUpgrad... | Add function for checking has reject from trustee | Add function for checking has reject from trustee
| Go | apache-2.0 | zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger,zigbee-alliance/distributed-compliance-ledger | go | ## Code Before:
package types
import sdk "github.com/cosmos/cosmos-sdk/types"
func (upgrade ProposedUpgrade) HasApprovalFrom(address sdk.AccAddress) bool {
addrStr := address.String()
for _, approval := range upgrade.Approvals {
if approval.Address == addrStr {
return true
}
}
return false
}
## Instructi... |
b7551cc66f3deee2e10b85ee76f55efa133c959a | lib/net/ptth/incoming_request.rb | lib/net/ptth/incoming_request.rb | class Net::PTTH
IncomingRequest = Struct.new(:method, :path, :headers, :body) do
def to_env
env = {
"PATH_INFO" => path,
"SCRIPT_NAME" => "",
"rack.input" => StringIO.new(body || ""),
"REQUEST_METHOD" => method,
}
env["CONTENT_LENGTH"] = body.length unless body.n... | class Net::PTTH
IncomingRequest = Struct.new(:method, :path, :headers, :body) do
def to_env
env = {
"PATH_INFO" => path,
"SCRIPT_NAME" => "",
"rack.input" => StringIO.new(body || ""),
"REQUEST_METHOD" => method,
}
env["CONTENT_LENGTH"] = body.length unless body.n... | Make sure env is always returned | Make sure env is always returned
If headers is nil here, the method previously returned nil.
| Ruby | mit | elcuervo/net-ptth | ruby | ## Code Before:
class Net::PTTH
IncomingRequest = Struct.new(:method, :path, :headers, :body) do
def to_env
env = {
"PATH_INFO" => path,
"SCRIPT_NAME" => "",
"rack.input" => StringIO.new(body || ""),
"REQUEST_METHOD" => method,
}
env["CONTENT_LENGTH"] = body.leng... |
36924cd5fc958ccf266ccfe1388cb5f0fa877bcf | src/beamjs_mod_repl.erl | src/beamjs_mod_repl.erl | -module(beamjs_mod_repl).
-export([exports/1,init/1]).
-behaviour(erlv8_module).
-include_lib("erlv8/include/erlv8.hrl").
init(_VM) ->
ok.
exports(_VM) ->
erlv8_object:new([{"start", fun start/2}]).
start(#erlv8_fun_invocation{} = Invocation, []) ->
start(Invocation,["beam.js> "]);
start(#erlv8_fun_invocation{ vm... | -module(beamjs_mod_repl).
-export([exports/1,init/1]).
-behaviour(erlv8_module).
-include_lib("erlv8/include/erlv8.hrl").
init(_VM) ->
ok.
exports(_VM) ->
erlv8_object:new([{"start", fun start/2}]).
start(#erlv8_fun_invocation{} = Invocation, []) ->
case node() of
nonode@nohost ->
start(Invocation,["beam.js>... | Make REPL show node name in the prompt if it is a distributed node. | Make REPL show node name in the prompt if it is a distributed node.
| Erlang | bsd-2-clause | beamjs/beamjs,beamjs/beamjs | erlang | ## Code Before:
-module(beamjs_mod_repl).
-export([exports/1,init/1]).
-behaviour(erlv8_module).
-include_lib("erlv8/include/erlv8.hrl").
init(_VM) ->
ok.
exports(_VM) ->
erlv8_object:new([{"start", fun start/2}]).
start(#erlv8_fun_invocation{} = Invocation, []) ->
start(Invocation,["beam.js> "]);
start(#erlv8_fu... |
14683ab2bdd010ff050ee6cfacd5475dc59244a6 | public/css/style.css | public/css/style.css | body {
font-family: 'Slabo 27px', serif;
}
a {
color: #00B7FF;
}
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
input[type="text"] {
box-sizing: border-box;
height: 48px;
}
.container {
position: relative;
width: 80%;
max-width: 960px;
margin: 0 auto;
padding: 0... | body {
font-family: 'Slabo 27px', serif;
}
a {
color: #00B7FF;
}
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
input[type="text"] {
box-sizing: border-box;
height: 48px;
}
.container {
position: relative;
max-width: 500px;
margin: 0 auto;
padding: 28px;
}
.btn-t... | Fix vertical centering on large displays | Fix vertical centering on large displays
| CSS | mit | tannerkrewson/drawphone | css | ## Code Before:
body {
font-family: 'Slabo 27px', serif;
}
a {
color: #00B7FF;
}
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
input[type="text"] {
box-sizing: border-box;
height: 48px;
}
.container {
position: relative;
width: 80%;
max-width: 960px;
margin: 0 au... |
e98f2ae9c70feec4c0b3f64123174fe0f4f3a8de | .travis.yml | .travis.yml | sudo: false
language: go
go:
- "1.9.x"
- "1.10.x"
script:
- make
| sudo: false
language: go
go:
- "1.9.x"
- "1.10.x"
- "1.11".x"
script:
- make
| Add Go 1.11 to Travis. | Add Go 1.11 to Travis. | YAML | apache-2.0 | mesosphere/mesos_exporter | yaml | ## Code Before:
sudo: false
language: go
go:
- "1.9.x"
- "1.10.x"
script:
- make
## Instruction:
Add Go 1.11 to Travis.
## Code After:
sudo: false
language: go
go:
- "1.9.x"
- "1.10.x"
- "1.11".x"
script:
- make
|
2b6239abfc638d684e0a268bce43a0e88a5f3fd7 | _posts/2016-05-10-maultaschen-37.md | _posts/2016-05-10-maultaschen-37.md | ---
title: Mobile Maultaschen 37
date: 2016-05-10
layout: post
---
Das nächste Treffen findet am **10. Mai, 19:00 Uhr** statt. Manuel und Boris von [fortyone](https://fortyone.io) berichten über ihre Erfahrungen bei der Entwicklung eines Cross-Plattform Chats.
Wir treffen uns bei moovel im [neuen Büro am Marienplatz]... | ---
title: Mobile Maultaschen 37
date: 2016-05-10
layout: post
---
Das nächste Treffen findet am **10. Mai, 19:00 Uhr** statt. Manuel und Boris von [fortyone](https://fortyone.io) berichten über ihre Erfahrungen bei der Entwicklung eines Cross-Plattform Chats und [Andy](https://twitter.com/andreasg) erklärt das `Model... | Add info about Andys topic | Add info about Andys topic | Markdown | mit | mobilemaultaschen/mobilemaultaschen.github.io,mobilemaultaschen/mobilemaultaschen.github.io,mobilemaultaschen/mobilemaultaschen.github.io | markdown | ## Code Before:
---
title: Mobile Maultaschen 37
date: 2016-05-10
layout: post
---
Das nächste Treffen findet am **10. Mai, 19:00 Uhr** statt. Manuel und Boris von [fortyone](https://fortyone.io) berichten über ihre Erfahrungen bei der Entwicklung eines Cross-Plattform Chats.
Wir treffen uns bei moovel im [neuen Büro... |
be8b06349e4242ade1d1b4d5d30a609cb3c47fc5 | README.md | README.md |
[](https://travis-ci.org/kevincennis/Mix.js)
Multitrack mixing with the Web Audio API.
Documentation (and lots of cleanup) forthcoming.
### Demo
[kevvv.in/mix](http://kevvv.in/mix)
### Getting started
##### Install Grunt
`npm install -g grunt-cli` (may requi... |
[](https://travis-ci.org/kevincennis/Mix.js)
Multitrack mixing with the Web Audio API.
Documentation (and lots of cleanup) forthcoming.
### Demo
[kevvv.in/mix](http://kevvv.in/mix)
### Getting started (for Developers)
##### Install Grunt
`npm install -g grun... | Simplify usage instructions for non-developer types | Simplify usage instructions for non-developer types | Markdown | mit | mcanthony/Mix.js,kevincennis/Mix.js,kevincennis/Mix.js,mcanthony/Mix.js | markdown | ## Code Before:
[](https://travis-ci.org/kevincennis/Mix.js)
Multitrack mixing with the Web Audio API.
Documentation (and lots of cleanup) forthcoming.
### Demo
[kevvv.in/mix](http://kevvv.in/mix)
### Getting started
##### Install Grunt
`npm install -g grunt... |
e3d1c8bbf238516d7a10e03aea0fbd378c4a4f6f | profile_collection/startup/99-bluesky.py | profile_collection/startup/99-bluesky.py |
def detselect(detector_object, suffix="_stats_total1"):
"""Switch the active detector and set some internal state"""
gs.DETS =[detector_object]
gs.PLOT_Y = detector_object.name + suffix
gs.TABLE_COLS = [gs.PLOT_Y]
|
def detselect(detector_object, suffix="_stats_total1"):
"""Switch the active detector and set some internal state"""
gs.DETS =[detector_object]
gs.PLOT_Y = detector_object.name + suffix
gs.TABLE_COLS = [gs.PLOT_Y]
def chx_plot_motor(scan):
fig = None
if gs.PLOTMODE == 1:
fig = plt.gcf... | Add 'better' plotting control for live plots | ENH: Add 'better' plotting control for live plots
| Python | bsd-2-clause | NSLS-II-CHX/ipython_ophyd,NSLS-II-CHX/ipython_ophyd | python | ## Code Before:
def detselect(detector_object, suffix="_stats_total1"):
"""Switch the active detector and set some internal state"""
gs.DETS =[detector_object]
gs.PLOT_Y = detector_object.name + suffix
gs.TABLE_COLS = [gs.PLOT_Y]
## Instruction:
ENH: Add 'better' plotting control for live plots
## ... |
715790511819ab5810659b8f8f5d06891135d6a0 | .travis.yml | .travis.yml | language:
python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
addons:
postgresql: "9.3"
env:
- DJANGO="Django>=1.6.0,<1.7.0"
PSQL=0
- DJANGO="Django>=1.6.0,<1.7.0"
PSQL=1
- DJANGO="Django>=1.7.0,<1.8.0"
PSQL=0
- DJANGO="Django>=1.7.0,<1.8.0"
PSQL=1
- DJANGO="Djang... | language:
python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
addons:
postgresql: "9.3"
env:
- DJANGO="Django>=1.6.0,<1.7.0"
PSQL=0
- DJANGO="Django>=1.6.0,<1.7.0"
PSQL=1
- DJANGO="Django>=1.7.0,<1.8.0"
PSQL=0
- DJANGO="Django>=1.7.0,<1.8.0"
PSQL=1
- DJANGO="Djang... | Exclude unsupported Python 3.5 + Django combinations | Exclude unsupported Python 3.5 + Django combinations | YAML | mit | mpasternak/django-interval-field,mpasternak/django-interval-field | yaml | ## Code Before:
language:
python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
addons:
postgresql: "9.3"
env:
- DJANGO="Django>=1.6.0,<1.7.0"
PSQL=0
- DJANGO="Django>=1.6.0,<1.7.0"
PSQL=1
- DJANGO="Django>=1.7.0,<1.8.0"
PSQL=0
- DJANGO="Django>=1.7.0,<1.8.0"
PSQL=1
... |
d87cb6b401e38a06c5d594e40ad813a9db0738e6 | taca/analysis/cli.py | taca/analysis/cli.py | import click
from taca.analysis import analysis as an
@click.group()
def analysis():
""" Analysis methods entry point """
pass
# analysis subcommands
@analysis.command()
@click.option('-r', '--run', type=click.Path(exists=True), default=None,
help='Demultiplex only a particular run')
def demultiplex(run):
""... | import click
from taca.analysis import analysis as an
@click.group()
def analysis():
""" Analysis methods entry point """
pass
# analysis subcommands
@analysis.command()
@click.option('-r', '--run', type=click.Path(exists=True), default=None,
help='Demultiplex only a particular run')
def demultiplex(run):
""... | Add option for triggering or not the analysis | Add option for triggering or not the analysis
| Python | mit | senthil10/TACA,kate-v-stepanova/TACA,SciLifeLab/TACA,SciLifeLab/TACA,vezzi/TACA,guillermo-carrasco/TACA,senthil10/TACA,b97pla/TACA,kate-v-stepanova/TACA,SciLifeLab/TACA,b97pla/TACA,guillermo-carrasco/TACA,vezzi/TACA | python | ## Code Before:
import click
from taca.analysis import analysis as an
@click.group()
def analysis():
""" Analysis methods entry point """
pass
# analysis subcommands
@analysis.command()
@click.option('-r', '--run', type=click.Path(exists=True), default=None,
help='Demultiplex only a particular run')
def demul... |
1cd638361efedbfc83b10c7f698a796e8e9ebaca | .vscode/c_cpp_properties.json | .vscode/c_cpp_properties.json | {
"configurations": [
{
"name": "Mac",
"includePath": [
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/include",
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino"
],
"browse" : {
... | {
"configurations": [
{
"name": "Mac",
"includePath": [
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/include",
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino"
],
"browse": {
... | Update VSCode C++ helper file | chore: Update VSCode C++ helper file
| JSON | mit | FortySevenEffects/arduino_midi_library,FortySevenEffects/arduino_midi_library,FortySevenEffects/arduino_midi_library,FortySevenEffects/arduino_midi_library | json | ## Code Before:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/include",
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino"
],
"brows... |
eff8f70a9074b1748ee6cf6522f0182d47a7d0ce | docs/bmemcached.client.rst | docs/bmemcached.client.rst | bmemcached\.client package
==========================
Submodules
----------
bmemcached\.client\.constants module
------------------------------------
.. automodule:: bmemcached.client.constants
:members:
:undoc-members:
:show-inheritance:
bmemcached\.client\.replicating module
--------------------------... | bmemcached\.client package
==========================
Submodules
----------
bmemcached\.client\.constants module
------------------------------------
.. automodule:: bmemcached.client.constants
:members:
:undoc-members:
:show-inheritance:
bmemcached\.client\.mixin module
--------------------------------... | Add missing files to docs. | Add missing files to docs.
Adding the mixin and the distributed modules to the docs.
Signed-off-by: Moisés Guimarães de Medeiros <38931a700a64030c6e1883420cbba039aadcb37a@redhat.com>
| reStructuredText | mit | jaysonsantos/python-binary-memcached,jaysonsantos/python-binary-memcached | restructuredtext | ## Code Before:
bmemcached\.client package
==========================
Submodules
----------
bmemcached\.client\.constants module
------------------------------------
.. automodule:: bmemcached.client.constants
:members:
:undoc-members:
:show-inheritance:
bmemcached\.client\.replicating module
----------... |
21efe6bece9ca87d16cdce0714b03ca3b676ec23 | create_artifacts.ps1 | create_artifacts.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$Platform,
[Parameter(Mandatory=$True)]
[string]$Configuration
)
$binStub = $Configuration
$zip = "colore.zip"
If ($Platform -eq "Any CPU")
{
$zip = "colore_anycpu.zip"
}
Else
{
$binStub = "$Platform\$binStub"
If ($Platform -e... | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$Platform,
[Parameter(Mandatory=$True)]
[string]$Configuration
)
$binStub = $Configuration
$zip = "colore.zip"
If ($Platform -eq "Any CPU")
{
$zip = "colore_anycpu.zip"
}
Else
{
$binStub = "$Platform\$binStub"
If ($Platform -e... | Fix incorrect file ending for nuget package. | Fix incorrect file ending for nuget package.
| PowerShell | mit | danpierce1/Colore,WolfspiritM/Colore,Sharparam/Colore,CoraleStudios/Colore | powershell | ## Code Before:
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$Platform,
[Parameter(Mandatory=$True)]
[string]$Configuration
)
$binStub = $Configuration
$zip = "colore.zip"
If ($Platform -eq "Any CPU")
{
$zip = "colore_anycpu.zip"
}
Else
{
$binStub = "$Platform\$binStub"
... |
5d5e47bc5aa15e8f499bd35b033ec297dabda48b | types/netease-captcha/netease-captcha-tests.ts | types/netease-captcha/netease-captcha-tests.ts | const config: NeteaseCaptcha.Config = {
captchaId: 'FAKE ID',
element: '#captcha',
mode: 'popup',
protocol: 'https',
width: '200px',
lang: 'en',
onVerify: (error: any, data?: NeteaseCaptcha.Data) => {
console.log(error, data);
}
};
const o... | const config: NeteaseCaptcha.Config = {
captchaId: 'FAKE ID',
element: '#captcha',
mode: 'popup',
protocol: 'https',
width: '200px',
lang: 'en',
onVerify: (error: any, data?: NeteaseCaptcha.Data) => {
console.log(error, data);
}
};
const o... | Add test for window attribute | Add test for window attribute
| TypeScript | mit | mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,magny/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/Defin... | typescript | ## Code Before:
const config: NeteaseCaptcha.Config = {
captchaId: 'FAKE ID',
element: '#captcha',
mode: 'popup',
protocol: 'https',
width: '200px',
lang: 'en',
onVerify: (error: any, data?: NeteaseCaptcha.Data) => {
console.log(error, data);
}... |
38174f09b32189c45761f41d819b74fa41c15346 | Quicklook/quicklooklib/src/main/java/cl/uchile/ing/adi/quicklooklib/fragments/WebFragment.java | Quicklook/quicklooklib/src/main/java/cl/uchile/ing/adi/quicklooklib/fragments/WebFragment.java | package cl.uchile.ing.adi.quicklooklib.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import cl.uchile.ing.adi.quicklooklib.R;
/**
* Created by dudu on 04-01-2016.
*/
public class WebFragment extends Q... | package cl.uchile.ing.adi.quicklooklib.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import cl.uchile.ing.adi.quicklooklib.R;
/**
* Created by dudu on 04-01-2016.
*/
public class WebFragment extends Q... | Hide zoom buttons fixed (Only on android >3.0) | Hide zoom buttons fixed (Only on android >3.0)
| Java | mit | Ucampus/quicklook,FCFM-ADI/quicklook,FCFM-ADI/quicklook,Ucampus/quicklook | java | ## Code Before:
package cl.uchile.ing.adi.quicklooklib.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import cl.uchile.ing.adi.quicklooklib.R;
/**
* Created by dudu on 04-01-2016.
*/
public class WebFr... |
e7b52c81b6f036cf6350f67f9b84e90b5dd88f33 | chapters/npm-workshop-install/package.json | chapters/npm-workshop-install/package.json | {
"name": "npm-workshop-install",
"version": "0.0.0",
"description": "npm install: learn about the npm install command",
"main": "index.js",
"bin": {
"help": "help.js",
"verify": "verify.js",
"chapter-reset": "commands/restart",
"current-dir": "commands/current-dir",
"chapter-test": "comma... | {
"name": "npm-workshop-install",
"version": "0.0.0",
"description": "npm install: learn about the npm install command",
"main": "index.js",
"bin": {
"help": "help.js",
"verify": "verify.js",
"chapter-reset": "commands/restart",
"current-dir": "commands/current-dir",
"chapter-test": "comma... | Add install-save-dev to exercises list. | Add install-save-dev to exercises list.
| JSON | mit | timoxley/npm-tutor,timoxley/npm-tutor,npm/npm-tutor,npm/npm-tutor | json | ## Code Before:
{
"name": "npm-workshop-install",
"version": "0.0.0",
"description": "npm install: learn about the npm install command",
"main": "index.js",
"bin": {
"help": "help.js",
"verify": "verify.js",
"chapter-reset": "commands/restart",
"current-dir": "commands/current-dir",
"chapt... |
2dc19a90070dd0d50ecc9f37cf9cef57a4ddfa1c | jenkins-slave-startup.sh | jenkins-slave-startup.sh |
set -ex
# start the ssh daemon
/usr/sbin/sshd -D
# start the docker daemon
/usr/local/bin/wrapdocker &
|
set -ex
# start the docker daemon
/usr/local/bin/wrapdocker &
# start the ssh daemon
/usr/sbin/sshd -D
| Revert "Start sshd before docker" | Revert "Start sshd before docker"
This reverts commit 3e747297f1d5a0206a205067804f68109f688ca4.
| Shell | mit | kitpages/dind-jenkins-slave | shell | ## Code Before:
set -ex
# start the ssh daemon
/usr/sbin/sshd -D
# start the docker daemon
/usr/local/bin/wrapdocker &
## Instruction:
Revert "Start sshd before docker"
This reverts commit 3e747297f1d5a0206a205067804f68109f688ca4.
## Code After:
set -ex
# start the docker daemon
/usr/local/bin/wrapdocker &
#... |
fad95a6071d39e649916f534f8561bd1fadd8a4a | packages/fela-bindings/src/ThemeProviderFactory.js | packages/fela-bindings/src/ThemeProviderFactory.js | /* @flow */
import { shallowEqual } from 'recompose'
import { objectEach } from 'fela-utils'
import createTheme from './createTheme'
export default function ThemeProviderFactory(
BaseComponent: any,
renderChildren: Function,
statics?: Object
): any {
class ThemeProvider extends BaseComponent {
theme: Obje... | /* @flow */
import { shallowEqual } from 'recompose'
import { objectEach } from 'fela-utils'
import createTheme from './createTheme'
export default function ThemeProviderFactory(
BaseComponent: any,
renderChildren: Function,
statics?: Object
): any {
class ThemeProvider extends BaseComponent {
theme: Obje... | Use shallowEqual to prevent false-positive values | Use shallowEqual to prevent false-positive values
| JavaScript | mit | derek-duncan/fela,rofrischmann/fela,risetechnologies/fela,risetechnologies/fela,derek-duncan/fela,derek-duncan/fela,derek-duncan/fela,derek-duncan/fela,derek-duncan/fela,risetechnologies/fela,rofrischmann/fela,rofrischmann/fela | javascript | ## Code Before:
/* @flow */
import { shallowEqual } from 'recompose'
import { objectEach } from 'fela-utils'
import createTheme from './createTheme'
export default function ThemeProviderFactory(
BaseComponent: any,
renderChildren: Function,
statics?: Object
): any {
class ThemeProvider extends BaseComponent {... |
7280360cd9f5f71c98266a86070fb7477bf73c77 | pyproject.toml | pyproject.toml | [build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "pkgconfig"
version = "1.5.1"
license = "MIT"
description = "Interface Python with pkg-config"
authors = ["Matthias Vogelgesang <matthias.vogelgesang@gmail.com>"]
readme = "README.rst"
homepage = "https://github.com/ma... | [build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "pkgconfig"
version = "1.5.1"
license = "MIT"
description = "Interface Python with pkg-config"
authors = ["Matthias Vogelgesang <matthias.vogelgesang@gmail.com>"]
readme = "README.rst"
homepage = "https://gi... | Use `poetry_core` as build backend | Use `poetry_core` as build backend
According to https://python-poetry.org/docs/pyproject/#poetry-and-pep-517
> If your `pyproject.toml` file still references `poetry` directly as a build backend,
> you should update it to reference poetry_core instead. | TOML | mit | matze/pkgconfig | toml | ## Code Before:
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "pkgconfig"
version = "1.5.1"
license = "MIT"
description = "Interface Python with pkg-config"
authors = ["Matthias Vogelgesang <matthias.vogelgesang@gmail.com>"]
readme = "README.rst"
homepage = "https... |
e3523cfdb0eefe4af476ac8c4e9f6affcebdacc6 | test/units/pox_request_test.rb | test/units/pox_request_test.rb | require "test_helper"
require "ostruct"
describe Autodiscover::PoxRequest do
let(:_class) {Autodiscover::PoxRequest }
let(:http) { mock("http") }
let(:client) { OpenStruct.new({http: http, domain: "example.local", email: "test@example.local"}) }
it "returns a PoxResponse if the autodiscover is successful" do
... | require "test_helper"
require "ostruct"
describe Autodiscover::PoxRequest do
let(:_class) {Autodiscover::PoxRequest }
let(:http) { mock("http") }
let(:client) { OpenStruct.new({http: http, domain: "example.local", email: "test@example.local"}) }
it "returns a PoxResponse if the autodiscover is successful" do
... | Fix test for Nori integration | Fix test for Nori integration
| Ruby | mit | WinRb/autodiscover | ruby | ## Code Before:
require "test_helper"
require "ostruct"
describe Autodiscover::PoxRequest do
let(:_class) {Autodiscover::PoxRequest }
let(:http) { mock("http") }
let(:client) { OpenStruct.new({http: http, domain: "example.local", email: "test@example.local"}) }
it "returns a PoxResponse if the autodiscover is... |
a8f44e52c36e7dee41d2e6a913e83e1d9bb9c1cc | sbr/folder_free.c | sbr/folder_free.c |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
void
folder_free (struct msgs *mp)
{
size_t i;
bvector_t ... |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
void
folder_free (struct msgs *mp)
{
siz... | Replace `if (p) free(p)' with `mh_xfree(p)'. | Replace `if (p) free(p)' with `mh_xfree(p)'.
| C | bsd-3-clause | mcr/nmh,mcr/nmh | c | ## Code Before:
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
void
folder_free (struct msgs *mp)
{
size_t i... |
02118d275df889f586ea555fba7ad308b20a217f | package.json | package.json | {
"name": "svg-labels",
"version": "1.1.1",
"license": "ISC",
"description": "Easy SVG Labels",
"repository": "github:bhousel/svg-labels",
"main": "index.js",
"contributors": [
"Bryan Housel <bhousel@gmail.com> (https://github.com/bhousel)"
],
"keywords": [
"svg",
"github",
"labels"
... | {
"name": "svg-labels",
"version": "1.1.1",
"license": "ISC",
"description": "Easy SVG Labels",
"repository": "github:bhousel/svg-labels",
"main": "index.js",
"contributors": [
"Bryan Housel <bhousel@gmail.com> (https://github.com/bhousel)"
],
"keywords": [
"svg",
"github",
"labels"
... | Update the rest of the koa dependencies | Update the rest of the koa dependencies
| JSON | isc | bhousel/svg-labels | json | ## Code Before:
{
"name": "svg-labels",
"version": "1.1.1",
"license": "ISC",
"description": "Easy SVG Labels",
"repository": "github:bhousel/svg-labels",
"main": "index.js",
"contributors": [
"Bryan Housel <bhousel@gmail.com> (https://github.com/bhousel)"
],
"keywords": [
"svg",
"github",... |
80dfc99f3b8df476030ce32891c3d7d7f97ac758 | README.md | README.md |
Example of how to setup continuous integration for Python.
| [](https://travis-ci.org/scottclowe/python-ci)
[](https://app.shippable.com/projects/5674d4821895ca447466a204)
# python-ci
Example of how to setup conti... | Add Travis and Shippable badges | Add Travis and Shippable badges | Markdown | mit | scottclowe/python-ci,scottclowe/python-continuous-integration,scottclowe/python-continuous-integration,scottclowe/python-ci | markdown | ## Code Before:
Example of how to setup continuous integration for Python.
## Instruction:
Add Travis and Shippable badges
## Code After:
[](https://travis-ci.org/scottclowe/python-ci)
[ %}
package:
name: geomdl
version: {{ setup_data['version'] }}
source:
path: ../../
build:
noarch: python
string: {{ GIT_DESCRIBE_HASH[1:] }}
script:
- python setup.py install --single-version-externally-managed --record=record.txt
requirements:
host:
- ... | {% set setup_data = load_setup_py_data() %}
{% set build_number = 0 %}
package:
name: geomdl
version: {{ setup_data['version'] }}
source:
path: ../../
build:
noarch: python
string: {{ GIT_DESCRIBE_HASH[1:] }}_{{ build_number }}
script:
- python setup.py sdist
- pip install dist/geomdl-{{ setup_da... | Update conda-build recipe to remove egg-info dir from site-packages | Update conda-build recipe to remove egg-info dir from site-packages
| YAML | mit | orbingol/NURBS-Python,orbingol/NURBS-Python | yaml | ## Code Before:
{% set setup_data = load_setup_py_data() %}
package:
name: geomdl
version: {{ setup_data['version'] }}
source:
path: ../../
build:
noarch: python
string: {{ GIT_DESCRIBE_HASH[1:] }}
script:
- python setup.py install --single-version-externally-managed --record=record.txt
requirements... |
f12dcb2976e29b270e6a9b3235a705fda653c129 | app/views/comments/_comment.html.erb | app/views/comments/_comment.html.erb | <li class="comment-list-item" id="comment-<%= comment.id %>">
<h4 class="comment-list-item__headline"><%= h(comment.author) %> / <span class="comment-list-item__headline-date"><%= display_comment_timestamp(comment) %></span></h4>
<%= comment.html %>
<div class="comment-list-item__report-link"><%= report_comment_l... | <li class="comment-list-item" id="comment-<%= comment.id %>">
<h4 class="comment-list-item__headline"><%= h(comment.author) %> / <span class="comment-list-item__headline-date"><%= display_comment_timestamp(comment) %></span></h4>
<%= simple_format(comment.html) %>
<div class="comment-list-item__report-link"><%= r... | Use simple_format on comments to turn line breaks to new lines / paragraphs. | Use simple_format on comments to turn line breaks to new lines / paragraphs. | HTML+ERB | mit | moneyadviceservice/publify,moneyadviceservice/publify,moneyadviceservice/publify,moneyadviceservice/publify | html+erb | ## Code Before:
<li class="comment-list-item" id="comment-<%= comment.id %>">
<h4 class="comment-list-item__headline"><%= h(comment.author) %> / <span class="comment-list-item__headline-date"><%= display_comment_timestamp(comment) %></span></h4>
<%= comment.html %>
<div class="comment-list-item__report-link"><%= ... |
83eec6a141879ac6756ff6d94dfa7e8312caacae | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<script src="shared/jquery-1.3.2.js"></script>
<script src="jquery.ba-starwipe.js"></script>
<style>
body {
background-color: gray;
color: white;
}
</style>
</head>
<body>
<h1>Star Wipe</h1>
<ul>
<li><a class="demo-link" href... | <!DOCTYPE html>
<html>
<head>
<script src="shared/jquery-1.3.2.js"></script>
<script src="jquery.ba-starwipe.js"></script>
<style>
html {
font-family: "Helvetica Neue", Helvetica;
}
</style>
</head>
<body>
<h1>jQuery Star Wipe</h1>
<p>
Clicking the links in the l... | Replace disallowed Yahoo Dev with NYTimes | Replace disallowed Yahoo Dev with NYTimes
Yahoo Developer is disallowed in iframes with the `X-Frame-Options`
header and is therefore a bad example site for the star wipe. NYTimes
does not set the header, use it instead.
* Add attribution and links to the GitHub repo for promotion
| HTML | mit | ssorallen/jquery-starwipe,ssorallen/jquery-starwipe | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<script src="shared/jquery-1.3.2.js"></script>
<script src="jquery.ba-starwipe.js"></script>
<style>
body {
background-color: gray;
color: white;
}
</style>
</head>
<body>
<h1>Star Wipe</h1>
<ul>
<li><a class=... |
daf6972826fbb939a46a4b10fe8c6732b4744af6 | src/shared/components/donate/donate.js | src/shared/components/donate/donate.js | import React from 'react';
// import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './donate.css';
const Donate = (props) => {
const { ...otherProps } = props;
return (
<Section
ti... | import React from 'react';
// import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './donate.css';
const Donate = (props) => {
const { ...otherProps } = props;
return (
<Section
ti... | Change button link to point to Donorbox page | Change button link to point to Donorbox page
| JavaScript | mit | alexspence/operationcode_frontend,hollomancer/operationcode_frontend,tskuse/operationcode_frontend,OperationCode/operationcode_frontend,tal87/operationcode_frontend,hollomancer/operationcode_frontend,tal87/operationcode_frontend,NestorSegura/operationcode_frontend,hollomancer/operationcode_frontend,sethbergman/operatio... | javascript | ## Code Before:
import React from 'react';
// import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './donate.css';
const Donate = (props) => {
const { ...otherProps } = props;
return (
<... |
ff52533c93391efe9ea49d36e024c259d5ec7d12 | src/IdFixture.php | src/IdFixture.php | <?php
namespace OpenConext\Component\EngineBlockFixtures;
use OpenConext\Component\EngineBlockFixtures\DataStore\AbstractDataStore;
/**
* Ids
* @package OpenConext\Component\EngineBlockFixtures
*/
class IdFixture
{
protected $dataStore;
protected $frames = array();
/**
* @param AbstractDataStore... | <?php
namespace OpenConext\Component\EngineBlockFixtures;
use OpenConext\Component\EngineBlockFixtures\DataStore\AbstractDataStore;
/**
* Ids
* @package OpenConext\Component\EngineBlockFixtures
*/
class IdFixture
{
protected $dataStore;
protected $frames = array();
/**
* @param AbstractDataStore... | Throw an exception if there are no more IdFrames | Throw an exception if there are no more IdFrames
| PHP | apache-2.0 | OpenConext/OpenConext-engineblock-fixtures | php | ## Code Before:
<?php
namespace OpenConext\Component\EngineBlockFixtures;
use OpenConext\Component\EngineBlockFixtures\DataStore\AbstractDataStore;
/**
* Ids
* @package OpenConext\Component\EngineBlockFixtures
*/
class IdFixture
{
protected $dataStore;
protected $frames = array();
/**
* @param A... |
120a2172ff1416c05a2e51d2f9d12ce0438726aa | NoteWrangler/package.json | NoteWrangler/package.json | {
"name": "note-wrangler",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"author": "Vitalii Rybka",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.23.1",
"babel-preset-... | {
"name": "note-wrangler",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"author": "Vitalii Rybka",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.23.1",
"babel-preset-... | Add babelify, browserify, gulp-buffer, gulp-cli, gulp-concat, gulp-sourcemaps, gulp-tap, gulp-util, vinyl-source-stream, json-server | Add babelify, browserify, gulp-buffer, gulp-cli, gulp-concat, gulp-sourcemaps, gulp-tap, gulp-util, vinyl-source-stream, json-server
| JSON | mit | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | json | ## Code Before:
{
"name": "note-wrangler",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"author": "Vitalii Rybka",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.23.1",
... |
6089e699151a5b51b70deedf6a893665258e6b8b | README.md | README.md |
[travis-img]: https://travis-ci.org/bodoni/svg.svg?branch=master
[travis-url]: https://travis-ci.org/bodoni/svg
[docs]: https://bodoni.github.io/svg
|
1. Fork the project.
2. Implement your idea.
3. Create a pull request.
[travis-img]: https://travis-ci.org/bodoni/svg.svg?branch=master
[travis-url]: https://travis-ci.org/bodoni/svg
[docs]: https://bodoni.github.io/svg
| Add an invitation to contribute | Add an invitation to contribute
| Markdown | mit | stainless-steel/svg | markdown | ## Code Before:
[travis-img]: https://travis-ci.org/bodoni/svg.svg?branch=master
[travis-url]: https://travis-ci.org/bodoni/svg
[docs]: https://bodoni.github.io/svg
## Instruction:
Add an invitation to contribute
## Code After:
1. Fork the project.
2. Implement your idea.
3. Create a pull request.
[travis-img]: ht... |
803450c4cdd7f47261ca57ba56b453008aa2787d | spec/spec_helper.rb | spec/spec_helper.rb | require 'simplecov'
require 'support/logistic_reverse_helper'
SimpleCov.start do
add_filter "/spec/"
end
require 'correios_sigep'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec d... | ENV['GEM_ENV'] = 'test'
require 'simplecov'
require 'support/logistic_reverse_helper'
SimpleCov.start do
add_filter "/spec/"
end
require 'correios_sigep'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
c... | Add an Environment to identify when is a test and the correct homolog correios config | Add an Environment to identify when is a test and the correct homolog correios config
| Ruby | mit | cfcosta/correios_sigep,duduribeiro/correios_sigep,rinaldifonseca/correios_sigep,downgba/correios_sigep | ruby | ## Code Before:
require 'simplecov'
require 'support/logistic_reverse_helper'
SimpleCov.start do
add_filter "/spec/"
end
require 'correios_sigep'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.