commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
6f5e24821ff9d68caa92ecdad85600560d5fe0a0
custom.css
custom.css
body { margin: 10px 10px 10px 10px; padding: 10px 10px 10px 10px; border-top-color: #2323aa; border-top-width: 5px; border-top-style: double; font-family: sans-serif; color: #2323ff; }
body { margin: 10px 10px 10px 10px; padding: 10px 10px 10px 10px; border-top-color: #2323aa; border-top-width: 5px; border-top-style: double; font-family: sans-serif; color: #2323ff; } .the-form { color: #334433; border-bottom-width: 5px; border-bottom-style: double; border-bottom-color: #443344; }
Add styling to the form section
Add styling to the form section
CSS
bsd-2-clause
ambidextrousTx/Marvelous,ambidextrousTx/Marvelous
css
## Code Before: body { margin: 10px 10px 10px 10px; padding: 10px 10px 10px 10px; border-top-color: #2323aa; border-top-width: 5px; border-top-style: double; font-family: sans-serif; color: #2323ff; } ## Instruction: Add styling to the form section ## Code After: body { margin: 10px 10px 1...
body { - margin: 10px 10px 10px 10px; ? ^^^^ + margin: 10px 10px 10px 10px; ? ^ - padding: 10px 10px 10px 10px; ? ^^^^ + padding: 10px 10px 10px 10px; ? ^ - border-top-color: #2323aa; ? ^^^^ + border-top-color: #2323aa; ? ^ - border-top-width: 5px; ? ^^^^ + border-top-width: 5px; ? ^ - ...
22
2.444444
15
7
26c2475996fd2f2d431973027f2501d1113903be
.github/workflows/schedule.yml
.github/workflows/schedule.yml
name: Bot schedule on: schedule: - cron: "0 */12 * * *" workflow_dispatch: inputs: {} jobs: bot: runs-on: ubuntu-latest steps: - name: Run bot run: docker run ghcr.io/${{ github.repository_owner }}/rol-automizer -u ${{ secrets.ROL_USERNAME }} -p ${{ secrets.ROL_PASSWORD }}
name: Bot schedule on: schedule: - cron: "0 */12 * * *" workflow_dispatch: inputs: {} jobs: bot: runs-on: ubuntu-latest steps: - name: Run bot run: docker run ${{ secrets.DOCKERHUB_USER }}/rol-automizer -u ${{ secrets.ROL_USERNAME }} -p ${{ secrets.ROL_PASSWORD }}
Use dockerhub image to avoid login
Use dockerhub image to avoid login
YAML
mit
joffrey-bion/rol-automizer,joffrey-bion/rol-automizer
yaml
## Code Before: name: Bot schedule on: schedule: - cron: "0 */12 * * *" workflow_dispatch: inputs: {} jobs: bot: runs-on: ubuntu-latest steps: - name: Run bot run: docker run ghcr.io/${{ github.repository_owner }}/rol-automizer -u ${{ secrets.ROL_USERNAME }} -p ${{ secrets.ROL_PASS...
name: Bot schedule on: schedule: - cron: "0 */12 * * *" workflow_dispatch: inputs: {} jobs: bot: runs-on: ubuntu-latest steps: - name: Run bot - run: docker run ghcr.io/${{ github.repository_owner }}/rol-automizer -u ${{ secrets.ROL_USERNAME }} -p ${{ secr...
2
0.142857
1
1
ebba0844cc74969e5a651ff7e93c6dd06390cf3f
recipes/configure.rb
recipes/configure.rb
template node['pulledpork']['disablesid'] do source 'disablesid.conf.erb' owner 'root' group 'root' mode '0640' notifies :run, 'execute[run_pulledpork]' not_if { node['pulledpork']['disabled_sids_hash_array'].empty? } end template node['pulledpork']['pp_config_path'] do source 'pulledpork.conf.erb' ow...
template node['pulledpork']['disablesid'] do source 'disablesid.conf.erb' mode '0640' notifies :run, 'execute[run_pulledpork]' not_if { node['pulledpork']['disabled_sids_hash_array'].empty? } end template node['pulledpork']['pp_config_path'] do source 'pulledpork.conf.erb' mode '0640' notifies :run, 'ex...
Remove default user/groups from resources
Remove default user/groups from resources Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
Ruby
apache-2.0
tas50/chef-pulledpork,tas50/chef-pulledpork
ruby
## Code Before: template node['pulledpork']['disablesid'] do source 'disablesid.conf.erb' owner 'root' group 'root' mode '0640' notifies :run, 'execute[run_pulledpork]' not_if { node['pulledpork']['disabled_sids_hash_array'].empty? } end template node['pulledpork']['pp_config_path'] do source 'pulledpor...
template node['pulledpork']['disablesid'] do source 'disablesid.conf.erb' - owner 'root' - group 'root' mode '0640' notifies :run, 'execute[run_pulledpork]' not_if { node['pulledpork']['disabled_sids_hash_array'].empty? } end template node['pulledpork']['pp_config_path'] do source 'p...
8
0.235294
0
8
1da20311dbb49cf6bed3fcc2ea4239afd2f08538
unix_env_setup.sh
unix_env_setup.sh
sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" sudo apt-get update sudo apt-get install g++-7 unzip autoconf libtool libssl-dev python perl git submodule update --init --recursive if [ ! -d cmake_app ]; then mkdir cmake_app wget --no-check-certificate --quiet -O - https://cmake.org/files/v3.11/cmake-3....
sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" sudo apt-get update sudo apt-get install g++-7 unzip autoconf libtool libssl-dev python perl libncurses5-dev libreadline-dev git submodule update --init --recursive if [ ! -d cmake_app ]; then mkdir cmake_app wget --no-check-certificate --quiet -O - https:...
Add missing deps to unix setup script
Add missing deps to unix setup script
Shell
apache-2.0
dev-osrose/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new
shell
## Code Before: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" sudo apt-get update sudo apt-get install g++-7 unzip autoconf libtool libssl-dev python perl git submodule update --init --recursive if [ ! -d cmake_app ]; then mkdir cmake_app wget --no-check-certificate --quiet -O - https://cmake.org/file...
sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test" sudo apt-get update - sudo apt-get install g++-7 unzip autoconf libtool libssl-dev python perl + sudo apt-get install g++-7 unzip autoconf libtool libssl-dev python perl libncurses5-dev libreadline-dev ? ...
2
0.076923
1
1
11b1577cd91c81469cc63767585c5862c9abf301
demo/app/src/main/java/com/chaquo/python/demo/MainActivity.java
demo/app/src/main/java/com/chaquo/python/demo/MainActivity.java
package com.chaquo.python.demo; import android.os.*; import android.support.v7.app.*; import android.support.v7.preference.*; import android.text.method.*; import android.widget.*; import com.chaquo.python.*; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle saved...
package com.chaquo.python.demo; import android.content.pm.*; import android.os.*; import android.support.v7.app.*; import android.support.v7.preference.*; import android.text.method.*; import android.widget.*; import com.chaquo.python.*; public class MainActivity extends AppCompatActivity { @Override protect...
Add version number to menu screen
Add version number to menu screen
Java
mit
chaquo/chaquopy,chaquo/chaquopy,chaquo/chaquopy,chaquo/chaquopy,chaquo/chaquopy
java
## Code Before: package com.chaquo.python.demo; import android.os.*; import android.support.v7.app.*; import android.support.v7.preference.*; import android.text.method.*; import android.widget.*; import com.chaquo.python.*; public class MainActivity extends AppCompatActivity { @Override protected void onCre...
package com.chaquo.python.demo; + import android.content.pm.*; import android.os.*; import android.support.v7.app.*; import android.support.v7.preference.*; import android.text.method.*; import android.widget.*; import com.chaquo.python.*; public class MainActivity extends AppCompatActivity { ...
6
0.181818
6
0
7836646ca7349987aa5165e9d9175e0f091395e0
Source/Trait/Grid.js
Source/Trait/Grid.js
LSD.Trait.Grid = new Class({ sort: function() { }, filter: function() { } })
/* --- script: Grid.js description: Filters and sort datasets (and widgets) license: Public domain (http://unlicense.org). requires: - LSD provides: - LSD.Trait.Grid ... */ LSD.Trait.Grid = new Class({ sort: function() { }, filter: function() { } });
Add grid trait file header
Add grid trait file header
JavaScript
unlicense
Inviz/lsd
javascript
## Code Before: LSD.Trait.Grid = new Class({ sort: function() { }, filter: function() { } }) ## Instruction: Add grid trait file header ## Code After: /* --- script: Grid.js description: Filters and sort datasets (and widgets) license: Public domain (http://unlicense.org). requires: ...
+ /* + --- + + script: Grid.js + + description: Filters and sort datasets (and widgets) + + license: Public domain (http://unlicense.org). + + requires: + - LSD + + provides: + - LSD.Trait.Grid + + ... + */ + + LSD.Trait.Grid = new Class({ sort: function() { }, filter: ...
21
1.909091
20
1
be72debf99ad1754722e31206f50360ff4e14922
scripts/run-headless-tests.sh
scripts/run-headless-tests.sh
set -xeuo pipefail if [ `adb devices | wc -l` -lt "3" ] then echo "No devices are connected. Make sure emulator is booted with flipper sample app running" exit 1 fi yarn build-headless --mac unzip -u dist/Flipper-headless.zip -d /tmp (cd headless-tests && yarn test)
set -euo pipefail if [ `adb devices | wc -l` -lt "3" ] then echo "ERROR: No devices are connected. Make sure emulator is booted with flipper sample app running" exit 1 fi api_version=$(adb shell getprop ro.build.version.sdk) if [ "$api_version" != "24" ]; then echo "WARNING: Emulator has api version $ap...
Improve headless test running script
Improve headless test running script Summary: Now emits a warning if api version doesn't match expected one. Reviewed By: cekkaewnumchai Differential Revision: D17685261 fbshipit-source-id: 2a01d64e2e160d411d7a58125b5bb45437476f8f
Shell
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
shell
## Code Before: set -xeuo pipefail if [ `adb devices | wc -l` -lt "3" ] then echo "No devices are connected. Make sure emulator is booted with flipper sample app running" exit 1 fi yarn build-headless --mac unzip -u dist/Flipper-headless.zip -d /tmp (cd headless-tests && yarn test) ## Instruction: Improve h...
- set -xeuo pipefail ? - + set -euo pipefail if [ `adb devices | wc -l` -lt "3" ] then - echo "No devices are connected. Make sure emulator is booted with flipper sample app running" + echo "ERROR: No devices are connected. Make sure emulator is booted with flipper sample app running" ? ...
12
1
9
3
ab3dd4bf7ca3e004766410931d1df2cebdec0815
docs/source/user_install.md
docs/source/user_install.md
Installation ============ Users can install the current version of **ipywidgets** with [pip](https://pip.pypa.io/en/stable/) or [conda](https://conda.readthedocs.io/en/latest/). With pip -------- ``` bash pip install ipywidgets jupyter nbextension enable --py widgetsnbextension ``` When using [virtualenv](https://v...
Installation ============ Users can install the current version of **ipywidgets** with [pip](https://pip.pypa.io/en/stable/) or [conda](https://conda.readthedocs.io/en/latest/). With pip -------- ``` bash pip install ipywidgets jupyter nbextension enable --py widgetsnbextension ``` When using [virtualenv](https://v...
Add a note about installing the jupyterlab extension
Add a note about installing the jupyterlab extension
Markdown
bsd-3-clause
ipython/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets
markdown
## Code Before: Installation ============ Users can install the current version of **ipywidgets** with [pip](https://pip.pypa.io/en/stable/) or [conda](https://conda.readthedocs.io/en/latest/). With pip -------- ``` bash pip install ipywidgets jupyter nbextension enable --py widgetsnbextension ``` When using [virtu...
Installation ============ Users can install the current version of **ipywidgets** with [pip](https://pip.pypa.io/en/stable/) or [conda](https://conda.readthedocs.io/en/latest/). With pip -------- ``` bash pip install ipywidgets jupyter nbextension enable --py widgetsnbextension ``` W...
16
0.571429
16
0
e7b67d7225d526e2c5f6ef671326c7b9adf38ef8
repo-requirements.txt
repo-requirements.txt
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystac...
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/MITx/django-wiki.git@e2e84558#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_cu...
Switch django-wiki dependency to a clone in our org so that local changes are easier to make
Switch django-wiki dependency to a clone in our org so that local changes are easier to make
Text
agpl-3.0
Edraak/circleci-edx-platform,philanthropy-u/edx-platform,pabloborrego93/edx-platform,naresh21/synergetics-edx-platform,arbrandes/edx-platform,tiagochiavericosta/edx-platform,don-github/edx-platform,dsajkl/123,4eek/edx-platform,angelapper/edx-platform,franosincic/edx-platform,beni55/edx-platform,mcgachey/edx-platform,ka...
text
## Code Before: -e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline -e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki -e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8...
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles -e git://github.com/MITx/django-pipeline.git#egg=django-pipeline - -e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki ? ^^^^^ -- -- ^^^^^ + -e git://github.com/MITx/django-wiki...
2
0.333333
1
1
60ac00588bdba3a2e5a7e21c25e3232372a5e201
src/styles/main.scss
src/styles/main.scss
* { box-sizing: border-box; } body { width: 372px; margin: 0; padding: 0; font-size: 0; } .app-title { margin: 0; margin-bottom: 5px; font-size: 12px; font-weight: 400; color: rgba(#000, 0.5); } .app-header { border: solid 1px rgba(#000, 0.3); padding: 20px; padding-top: 15px; background-c...
* { box-sizing: border-box; } body { width: 372px; margin: 0; padding: 0; font-size: 0; } .app-header { border: solid 1px rgba(#000, 0.3); padding: 20px; padding-top: 15px; background-color: #f3f3f3; } .app-title { margin: 0; margin-bottom: 5px; font-size: 12px; font-weight: 400; color: rg...
Move .app-title rule below .app-header
Move .app-title rule below .app-header Since the .app-title is contained within the .app-header, .app-title ought to be listed below .app-header rather than above it.
SCSS
mit
caleb531/youversion-suggest-chrome,caleb531/youversion-suggest-chrome
scss
## Code Before: * { box-sizing: border-box; } body { width: 372px; margin: 0; padding: 0; font-size: 0; } .app-title { margin: 0; margin-bottom: 5px; font-size: 12px; font-weight: 400; color: rgba(#000, 0.5); } .app-header { border: solid 1px rgba(#000, 0.3); padding: 20px; padding-top: 15px...
* { box-sizing: border-box; } body { width: 372px; margin: 0; padding: 0; font-size: 0; } + .app-header { + border: solid 1px rgba(#000, 0.3); + padding: 20px; + padding-top: 15px; + background-color: #f3f3f3; + } .app-title { margin: 0; margin-bottom: 5px; font-s...
12
0.315789
6
6
2678bb6e37c8bf8a69d788a677b7244cc142537a
app/assets/stylesheets/frontend/utils/_topic-features.scss
app/assets/stylesheets/frontend/utils/_topic-features.scss
@mixin topic-features { .featured-news { @extend %contain-floats; margin: 0 (-$gutter-half); article { width: 100%; } &.items-1 { article { .img-holder { @include media(tablet){ width: 50%; float: left; } } .text { ...
@mixin topic-features { .featured-news { @extend %contain-floats; margin: 0 (-$gutter-half); article { width: 100%; } &.items-1 { article { @include media(tablet) { float: left; width: 33.33%; } } } &.items-3, &.items-4 { a...
Fix layout for 1 featured item on topics
Fix layout for 1 featured item on topics https://www.pivotaltracker.com/story/show/58961990
SCSS
mit
ggoral/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,ggoral/whitehall,robinwhittleton/whitehall,robinwhittleton/whitehall,robinwhittleton/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,ggoral/whitehall,askl56/whitehall,askl56/whitehall,ggoral/whitehall,hotvulcan/whitehall,robinwhittleton...
scss
## Code Before: @mixin topic-features { .featured-news { @extend %contain-floats; margin: 0 (-$gutter-half); article { width: 100%; } &.items-1 { article { .img-holder { @include media(tablet){ width: 50%; float: left; } } ...
@mixin topic-features { .featured-news { @extend %contain-floats; margin: 0 (-$gutter-half); article { width: 100%; } &.items-1 { article { - .img-holder { - @include media(tablet){ ? -- + @include media(tablet) { ? ...
18
0.295082
3
15
f6cd6b3377769af524377979438b9e662bb9175a
tangled/site/model/base.py
tangled/site/model/base.py
import datetime from sqlalchemy.schema import Column from sqlalchemy.types import DateTime, Integer from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class BaseMixin: id = Column(Integer, primary_key=True) @declared_attr def __tablename__(cls): ...
from datetime import datetime from sqlalchemy.schema import Column from sqlalchemy.types import DateTime, Integer from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class BaseMixin: id = Column(Integer, primary_key=True) @declared_attr def __tablename__(...
Update updated time on update
Update updated time on update I.e., added onupdate=datetime.now to TimestampMixin.updated_at so that it will be automatically updated whenever a record is edited.
Python
mit
TangledWeb/tangled.site
python
## Code Before: import datetime from sqlalchemy.schema import Column from sqlalchemy.types import DateTime, Integer from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class BaseMixin: id = Column(Integer, primary_key=True) @declared_attr def __tablename_...
- import datetime + from datetime import datetime from sqlalchemy.schema import Column from sqlalchemy.types import DateTime, Integer from sqlalchemy.ext.declarative import declarative_base, declared_attr Base = declarative_base() class BaseMixin: id = Column(Integer, primary_key=Tr...
7
0.28
3
4
e958911e99486534629e42fde4332fb73bc0fe27
spec/i18n_locale_switcher_spec.rb
spec/i18n_locale_switcher_spec.rb
require "spec_helper" describe "Rack::I18nLocaleSwitcher" do def app Rack::Builder.new { map "/" do use Rack::I18nLocaleSwitcher run lambda { |env| [200, {}, "Coolness"] } end }.to_app end it "should detect locale from Accept-Language-Header" do get '/', {'Accept-Langua...
require "spec_helper" describe "Rack::I18nLocaleSwitcher" do before do I18n.available_locales = [:en, :'en-US', :de, :'de-DE'] I18n.default_locale = :en end def app Rack::Builder.new { map "/" do use Rack::I18nLocaleSwitcher run lambda { |env| [200, {}, "Coolness"] } end...
Add more to ensure the switcher works with http header.
Add more to ensure the switcher works with http header.
Ruby
mit
christoph-buente/rack-i18n_locale_switcher
ruby
## Code Before: require "spec_helper" describe "Rack::I18nLocaleSwitcher" do def app Rack::Builder.new { map "/" do use Rack::I18nLocaleSwitcher run lambda { |env| [200, {}, "Coolness"] } end }.to_app end it "should detect locale from Accept-Language-Header" do get '/',...
require "spec_helper" describe "Rack::I18nLocaleSwitcher" do + + before do + I18n.available_locales = [:en, :'en-US', :de, :'de-DE'] + I18n.default_locale = :en + end def app Rack::Builder.new { map "/" do use Rack::I18nLocaleSwitcher run lambda { |env| [200,...
81
3.681818
77
4
b97b7f3add16409f00c7d2f896b859945098b796
init.php
init.php
<?php // Set default settings here. Can be overridden in config.php. $settings = array(); $settings['sqlColor'] = true; require_once('config.php'); $dbh = new PDO($reviewhost['dsn'], $reviewhost['user'], $reviewhost['password'], array( PDO::ATTR_PERSISTENT => true )); require_once('libs/sqlquery/SqlPa...
<?php // Set default settings here. Can be overridden in config.php. $settings = array(); $settings['sqlColor'] = true; require_once('config.php'); $dbh = new PDO($reviewhost['dsn'], $reviewhost['user'], $reviewhost['password']); require_once('libs/sqlquery/SqlParser.php');
Remove persistant conections. Does not seem to work so well
Remove persistant conections. Does not seem to work so well
PHP
mit
qbdsoft/Query-Digest-UI,qbdsoft/Query-Digest-UI,qbdsoft/Query-Digest-UI,kormoc/Query-Digest-UI,qbdsoft/Query-Digest-UI,kormoc/Query-Digest-UI,kormoc/Query-Digest-UI
php
## Code Before: <?php // Set default settings here. Can be overridden in config.php. $settings = array(); $settings['sqlColor'] = true; require_once('config.php'); $dbh = new PDO($reviewhost['dsn'], $reviewhost['user'], $reviewhost['password'], array( PDO::ATTR_PERSISTENT => true )); require_once('lib...
<?php // Set default settings here. Can be overridden in config.php. $settings = array(); $settings['sqlColor'] = true; require_once('config.php'); - $dbh = new PDO($reviewhost['dsn'], $reviewhost['user'], $reviewhost['password'], array( PDO::ATTR_PERSISTENT => true )); ? ...
2
0.181818
1
1
30b2e24711be245d1d718ded01f8c1c93874a467
docs/simplesamlphp-install-repo.txt
docs/simplesamlphp-install-repo.txt
Installing SimpleSAMLphp from the repository ============================================ These are some notes about running SimpleSAMLphp from subversion. Installing from github ---------------------- Go to the directory where you want to install SimpleSAMLphp: cd /var Then do a git clone: git clone git@...
Installing SimpleSAMLphp from the repository ============================================ These are some notes about running SimpleSAMLphp from the repository. Installing from github ---------------------- Go to the directory where you want to install SimpleSAMLphp: cd /var Then do a git clone: git clone ...
Fix for the recently added install instructions.
Fix for the recently added install instructions.
Text
lgpl-2.1
tectronics/simplesamlphp,tectronics/simplesamlphp,tectronics/simplesamlphp,vivekrajenderan/simplesamlphp,tectronics/simplesamlphp,vivekrajenderan/simplesamlphp,vivekrajenderan/simplesamlphp,vivekrajenderan/simplesamlphp,tectronics/simplesamlphp,vivekrajenderan/simplesamlphp
text
## Code Before: Installing SimpleSAMLphp from the repository ============================================ These are some notes about running SimpleSAMLphp from subversion. Installing from github ---------------------- Go to the directory where you want to install SimpleSAMLphp: cd /var Then do a git clone: ...
Installing SimpleSAMLphp from the repository ============================================ - These are some notes about running SimpleSAMLphp from subversion. ? ^^^^ ^ + These are some notes about running SimpleSAMLphp from the repository. ? ...
4
0.095238
2
2
c2eb094a1df918c119304b6133692ab643b331f9
lib/tchart/model/separator_item.rb
lib/tchart/model/separator_item.rb
module TChart class SeparatorItem attr_reader :y_coordinate attr_reader :length attr_reader :date_ranges def initialize @date_ranges = [] end def calc_layout(chart, y_coordinate) @y_coordinate = y_coordinate @length = chart.x_axis_length end def re...
module TChart class SeparatorItem attr_reader :from attr_reader :to attr_reader :date_ranges def initialize @date_ranges = [] end def calc_layout(chart, y) @from = Coordinate.new(0, y) @to = Coordinate.new(chart.x_axis_length, y) end def render(tex...
Convert SeparatorItem to use Coordinates.
Convert SeparatorItem to use Coordinates.
Ruby
mit
milewdev/tchart,milewdev/tchart
ruby
## Code Before: module TChart class SeparatorItem attr_reader :y_coordinate attr_reader :length attr_reader :date_ranges def initialize @date_ranges = [] end def calc_layout(chart, y_coordinate) @y_coordinate = y_coordinate @length = chart.x_axis_length end...
module TChart class SeparatorItem - attr_reader :y_coordinate + attr_reader :from - attr_reader :length ? ---- ^ + attr_reader :to ? ^ attr_reader :date_ranges def initialize @date_ranges = [] end - def calc_la...
12
0.521739
6
6
33f0df1f1fe00be21a27f8fa494f27e5d0e341b6
packages/li/lightstep-haskell.yaml
packages/li/lightstep-haskell.yaml
homepage: https://github.com/ethercrow/lightstep-haskell#readme changelog-type: '' hash: a4495e7fe32adaea87e0901ae3d5f92254e94eec9145f982dd1c650550be754a test-bench-deps: {} maintainer: Dmitry Ivanov <ethercrow@gmail.com> synopsis: LightStep OpenTracing client library changelog: '' basic-deps: exceptions: -any stm:...
homepage: https://github.com/ethercrow/lightstep-haskell#readme changelog-type: '' hash: f5ee2a0d120b04c49db492ed766aed925fedfe5085c75fbeb6acf9c5b4940375 test-bench-deps: {} maintainer: Dmitry Ivanov <ethercrow@gmail.com> synopsis: LightStep OpenTracing client library changelog: '' basic-deps: exceptions: -any stm:...
Update from Hackage at 2019-10-20T14:03:42Z
Update from Hackage at 2019-10-20T14:03:42Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/ethercrow/lightstep-haskell#readme changelog-type: '' hash: a4495e7fe32adaea87e0901ae3d5f92254e94eec9145f982dd1c650550be754a test-bench-deps: {} maintainer: Dmitry Ivanov <ethercrow@gmail.com> synopsis: LightStep OpenTracing client library changelog: '' basic-deps: excepti...
homepage: https://github.com/ethercrow/lightstep-haskell#readme changelog-type: '' - hash: a4495e7fe32adaea87e0901ae3d5f92254e94eec9145f982dd1c650550be754a + hash: f5ee2a0d120b04c49db492ed766aed925fedfe5085c75fbeb6acf9c5b4940375 test-bench-deps: {} maintainer: Dmitry Ivanov <ethercrow@gmail.com> synopsis: Lig...
5
0.16129
3
2
89a74fa8b8ccadf9ef79ba0b52404f9e19701541
src/Beloop/Bundle/UserBundle/Resources/config/doctrine/User.orm.yml
src/Beloop/Bundle/UserBundle/Resources/config/doctrine/User.orm.yml
Beloop\Component\User\Entity\User: type: entity repositoryClass: Beloop\Component\User\Repository\UserRepository table: user id: id: type: integer generator: strategy: AUTO fields: biography: column: biography type: text...
Beloop\Component\User\Entity\User: type: entity repositoryClass: Beloop\Component\User\Repository\UserRepository table: user id: id: type: integer generator: strategy: AUTO fields: biography: column: biography type: text...
Order user courses by start date
Order user courses by start date
YAML
mit
beloop/components,beloop/components,beloop/components
yaml
## Code Before: Beloop\Component\User\Entity\User: type: entity repositoryClass: Beloop\Component\User\Repository\UserRepository table: user id: id: type: integer generator: strategy: AUTO fields: biography: column: biography ...
Beloop\Component\User\Entity\User: type: entity repositoryClass: Beloop\Component\User\Repository\UserRepository table: user id: id: type: integer generator: strategy: AUTO fields: biography: column: biograph...
2
0.039216
2
0
6a62be6db5af2038748e79d99f1361c0f8575916
Granola.podspec
Granola.podspec
Pod::Spec.new do |s| s.name = "Granola" s.version = "0.1.0" s.summary = "A healthful serializer for your HealthKit data." s.homepage = "https://github.com/openmhealth/Granola" s.license = { :type => 'Apache 2.0', :file => 'LICENSE' } s....
Pod::Spec.new do |s| s.name = "Granola" s.version = "0.2.0" s.summary = "A healthful serializer for your HealthKit data." s.homepage = "https://github.com/openmhealth/Granola" s.license = { :type => 'Apache 2.0', :file => 'LICENSE' } s....
Update Pod spec with all authors and new version
Update Pod spec with all authors and new version
Ruby
apache-2.0
openmhealth/Granola,Rich86man/Granola
ruby
## Code Before: Pod::Spec.new do |s| s.name = "Granola" s.version = "0.1.0" s.summary = "A healthful serializer for your HealthKit data." s.homepage = "https://github.com/openmhealth/Granola" s.license = { :type => 'Apache 2.0', :file => ...
Pod::Spec.new do |s| s.name = "Granola" - s.version = "0.1.0" ? ^ + s.version = "0.2.0" ? ^ s.summary = "A healthful serializer for your HealthKit data." s.homepage = "https://github.com/openmhealth/Gr...
7
0.388889
5
2
fe25e59198ab2978beb721a0115a4099fbea36d1
src/components/HomePage.js
src/components/HomePage.js
import React from 'react'; import { InitialSearchContainer } from '../containers'; const HomePage = () => ( <div className="landing-page"> <h1> <img src={require('../assets/images/logo.svg')} alt="El Solucionario" className="landing-page__logo"/> </h1> <div className="text--center"> <p classN...
import React from 'react'; import { InitialSearchContainer } from '../containers'; const HomePage = () => ( <div className="landing-page"> <h1> <img src={require('../assets/images/logo.svg')} alt="El Solucionario" className="landing-page__logo"/> </h1> <div className="text--center"> <p classN...
Change slogan y home page
Change slogan y home page
JavaScript
mit
jlmonroy13/solvingbooks-poison,jlmonroy13/solvingbooks-poison
javascript
## Code Before: import React from 'react'; import { InitialSearchContainer } from '../containers'; const HomePage = () => ( <div className="landing-page"> <h1> <img src={require('../assets/images/logo.svg')} alt="El Solucionario" className="landing-page__logo"/> </h1> <div className="text--center">...
import React from 'react'; import { InitialSearchContainer } from '../containers'; const HomePage = () => ( <div className="landing-page"> <h1> <img src={require('../assets/images/logo.svg')} alt="El Solucionario" className="landing-page__logo"/> </h1> <div className="text--center...
2
0.125
1
1
2ae3544a92258f3dca3d707fe2c8bfb05e4063cf
TrailScribeTest/AndroidManifest.xml
TrailScribeTest/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="edu.cmu.sv.trailscribe.tests" android:versionCode="1" android:versionName="1....
<?xml version="1.0" encoding="utf-8"?> <!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="edu.cmu.sv.trailscribe.tests" android:versionCode="1" android:versionName="1....
Add min and target SDK versions for TrailScribeTest
Add min and target SDK versions for TrailScribeTest
XML
mit
CMUPracticum/TrailScribe,CMUPracticum/TrailScribe,CMUPracticum/TrailScribe
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="edu.cmu.sv.trailscribe.tests" android:versionCode="1" android...
<?xml version="1.0" encoding="utf-8"?> <!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="edu.cmu.sv.trailscribe.tests" android:versionCode="1" android:ver...
5
0.238095
5
0
1c70756e1afc11d3f50e9f735ef60119a7e9da5f
activesupport/test/core_ext/regexp_ext_test.rb
activesupport/test/core_ext/regexp_ext_test.rb
require "abstract_unit" require "active_support/core_ext/regexp" class RegexpExtAccessTests < ActiveSupport::TestCase def test_multiline assert_equal true, //m.multiline? assert_equal false, //.multiline? assert_equal false, /(?m:)/.multiline? end # Based on https://github.com/ruby/ruby/blob/trunk/...
require "abstract_unit" require "active_support/core_ext/regexp" class RegexpExtAccessTests < ActiveSupport::TestCase def test_multiline assert_equal true, //m.multiline? assert_equal false, //.multiline? assert_equal false, /(?m:)/.multiline? end end
Remove `test_match_p` since Rails 6 requires Ruby 2.4.1 or newer
Remove `test_match_p` since Rails 6 requires Ruby 2.4.1 or newer Follow up of #32034.
Ruby
mit
vipulnsward/rails,prathamesh-sonpatki/rails,illacceptanything/illacceptanything,mohitnatoo/rails,illacceptanything/illacceptanything,MSP-Greg/rails,Stellenticket/rails,fabianoleittes/rails,yahonda/rails,yahonda/rails,arunagw/rails,mechanicles/rails,shioyama/rails,illacceptanything/illacceptanything,iainbeeston/rails,kd...
ruby
## Code Before: require "abstract_unit" require "active_support/core_ext/regexp" class RegexpExtAccessTests < ActiveSupport::TestCase def test_multiline assert_equal true, //m.multiline? assert_equal false, //.multiline? assert_equal false, /(?m:)/.multiline? end # Based on https://github.com/ruby/...
require "abstract_unit" require "active_support/core_ext/regexp" class RegexpExtAccessTests < ActiveSupport::TestCase def test_multiline assert_equal true, //m.multiline? assert_equal false, //.multiline? assert_equal false, /(?m:)/.multiline? end - - # Based on https://github.c...
24
0.685714
0
24
2b5187be300da713725fd3e33fa88c16cdc3d24a
atom/setupAtom.sh
atom/setupAtom.sh
set -euf -o pipefail AtomHome="${1}/.atom/" AtomPackages="packages.txt" if [ -d "${AtomHome}" ]; then cp ./config.cson ${AtomHome} cp ./keymap.cson ${AtomHome} cp ./styles.less ${AtomHome} fi while read -r pkg; do apm install ${pkg} done <${AtomPackages}
set -euf -o pipefail AtomHome="/home/${1}/.atom/" AtomPackages="packages.txt" if [ ! -d "${AtomHome}" ]; then mkdir ${AtomHome} chmod 0750 ${1} ${AtomHome} chown ${1}:${1} ${AtomHome} fi cp ./config.cson ${AtomHome} cp ./keymap.cson ${AtomHome} cp ./styles.less ${AtomHome} while read -r pkg; do apm install $...
Create atom config dir if necessary
Create atom config dir if necessary
Shell
mit
teenooCH/dotfiles
shell
## Code Before: set -euf -o pipefail AtomHome="${1}/.atom/" AtomPackages="packages.txt" if [ -d "${AtomHome}" ]; then cp ./config.cson ${AtomHome} cp ./keymap.cson ${AtomHome} cp ./styles.less ${AtomHome} fi while read -r pkg; do apm install ${pkg} done <${AtomPackages} ## Instruction: Create atom config di...
set -euf -o pipefail - AtomHome="${1}/.atom/" + AtomHome="/home/${1}/.atom/" ? ++++++ AtomPackages="packages.txt" - if [ -d "${AtomHome}" ]; then + if [ ! -d "${AtomHome}" ]; then ? ++ - cp ./config.cson ${AtomHome} - cp ./keymap.cson ${AtomHome} - cp ./styles.less ${AtomHome} + mkdir ...
13
0.928571
8
5
10caa2360f5620dafc7dc86e9960b5c1fde55596
sandbox/task.rake
sandbox/task.rake
require "base_task" class SandboxTask < BaseTask def initialize(*args) super self.sandboxdir = "sandbox/ruby-#{package.rubyver}" self.sandboxdirmgw = File.join(sandboxdir, package.mingwdir) self.sandboxdir_abs = File.expand_path(sandboxdir, package.rootdir) ruby_exe = "#{sandboxdirmgw}/bin/ruby.e...
require "base_task" class SandboxTask < BaseTask def initialize(*args) super self.sandboxdir = "sandbox/ruby-#{package.rubyver}-#{package.arch}" self.sandboxdirmgw = File.join(sandboxdir, package.mingwdir) self.sandboxdir_abs = File.expand_path(sandboxdir, package.rootdir) ruby_exe = "#{sandboxdi...
Use per distinct sandbox directory per arch.
Use per distinct sandbox directory per arch. This avoids repeated deletion of the sanbox folder.
Ruby
bsd-3-clause
oneclick/rubyinstaller2,oneclick/rubyinstaller2,oneclick/rubyinstaller2,larskanis/rubyinstaller2,larskanis/rubyinstaller2,larskanis/rubyinstaller2
ruby
## Code Before: require "base_task" class SandboxTask < BaseTask def initialize(*args) super self.sandboxdir = "sandbox/ruby-#{package.rubyver}" self.sandboxdirmgw = File.join(sandboxdir, package.mingwdir) self.sandboxdir_abs = File.expand_path(sandboxdir, package.rootdir) ruby_exe = "#{sandboxdi...
require "base_task" class SandboxTask < BaseTask def initialize(*args) super - self.sandboxdir = "sandbox/ruby-#{package.rubyver}" + self.sandboxdir = "sandbox/ruby-#{package.rubyver}-#{package.arch}" ? ++++++++++++++++ self.sandboxdi...
4
0.117647
2
2
c30c9a640b74093c0217927cff4a819bb459e596
src/Tools/Model/PropertyManager.php
src/Tools/Model/PropertyManager.php
<?php declare(strict_types=1); namespace LotGD\Core\Tools\Model; /** * Provides method and doctrine annotation for a property submodel */ trait PropertyManager { private $propertyStorage = null; public function loadProperties() { if ($this->propertyStorage !== null) { return; ...
<?php declare(strict_types=1); namespace LotGD\Core\Tools\Model; /** * Provides method and doctrine annotation for a property submodel */ trait PropertyManager { private $propertyStorage = null; public function loadProperties() { if ($this->propertyStorage !== null) { return; ...
Add unsetProperty for property managers
Add unsetProperty for property managers
PHP
agpl-3.0
lotgd/core,lotgd/core
php
## Code Before: <?php declare(strict_types=1); namespace LotGD\Core\Tools\Model; /** * Provides method and doctrine annotation for a property submodel */ trait PropertyManager { private $propertyStorage = null; public function loadProperties() { if ($this->propertyStorage !== null) { ...
<?php declare(strict_types=1); namespace LotGD\Core\Tools\Model; /** * Provides method and doctrine annotation for a property submodel */ trait PropertyManager { private $propertyStorage = null; public function loadProperties() { if ($this->propertyStorage !== null...
11
0.203704
11
0
edeec29d30fbb7043307bda3978ca487b12586cf
lib/simctl/device_settings.rb
lib/simctl/device_settings.rb
require 'cfpropertylist' module SimCtl class DeviceSettings attr_reader :path def initialize(path) @path = path end # Disables the keyboard helpers # # @return [void] def disable_keyboard_helpers! edit(path.preferences_plist) do |plist| %w( KeyboardPeriodSh...
require 'cfpropertylist' module SimCtl class DeviceSettings attr_reader :path def initialize(path) @path = path end # Disables the keyboard helpers # # @return [void] def disable_keyboard_helpers! edit(path.preferences_plist) do |plist| %w( KeyboardAllowPad...
Sort & add missing keyboard options
Sort & add missing keyboard options
Ruby
mit
adamprice/simctl,plu/simctl
ruby
## Code Before: require 'cfpropertylist' module SimCtl class DeviceSettings attr_reader :path def initialize(path) @path = path end # Disables the keyboard helpers # # @return [void] def disable_keyboard_helpers! edit(path.preferences_plist) do |plist| %w( ...
require 'cfpropertylist' module SimCtl class DeviceSettings attr_reader :path def initialize(path) @path = path end # Disables the keyboard helpers # # @return [void] def disable_keyboard_helpers! edit(path.preferences_plist) do |plist| ...
11
0.268293
6
5
5c110374d1c75c8892f074a9ea15dbb73744924e
.eslintrc.js
.eslintrc.js
module.exports = { env: { browser: true, es2021: true, }, extends: [ 'standard', ], parserOptions: { ecmaVersion: 12, sourceType: 'module', }, plugins: [ 'svelte3', ], overrides: [ { files: ['**/*.svelte'], ...
module.exports = { env: { browser: true, es2021: true, }, extends: [ 'standard', ], parserOptions: { ecmaVersion: 12, sourceType: 'module', }, plugins: [ 'svelte3', ], overrides: [ { files: ['**/*.svelte'], ...
Allow dangling commas and warn about console statements
eslint: Allow dangling commas and warn about console statements
JavaScript
mit
peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag,peterhil/ninhursag
javascript
## Code Before: module.exports = { env: { browser: true, es2021: true, }, extends: [ 'standard', ], parserOptions: { ecmaVersion: 12, sourceType: 'module', }, plugins: [ 'svelte3', ], overrides: [ { files: ['**/*.sve...
module.exports = { env: { browser: true, es2021: true, }, extends: [ 'standard', ], parserOptions: { ecmaVersion: 12, sourceType: 'module', }, plugins: [ 'svelte3', ], overrides: [ { ...
4
0.137931
3
1
f69da6f24833d6c934598babccd76cd2a88864d8
.travis.yml
.travis.yml
addons: postgresql: 9.6 before_script: - bundle exec rails db:setup bundler_args: --jobs 4 --retry 3 --without development cache: bundler language: ruby notifications: email: false rvm: - 2.3.5 - 2.4.2 script: - bundle exec rails bundle:audit - bundle exec rubocop - bundle exec rails test sudo: false
addons: postgresql: 9.6 before_script: - bundle exec rails db:setup bundler_args: --jobs 4 --retry 3 --without development cache: bundler language: ruby notifications: email: false rvm: - 2.3.5 - 2.4.2 script: - bundle exec rails bundle:audit - bundle exec license_finder --quiet - bundle exec rubocop ...
Add `license_finder` to CI jobs
Add `license_finder` to CI jobs
YAML
mit
renocollective/member-portal,renocollective/member-portal,renocollective/member-portal
yaml
## Code Before: addons: postgresql: 9.6 before_script: - bundle exec rails db:setup bundler_args: --jobs 4 --retry 3 --without development cache: bundler language: ruby notifications: email: false rvm: - 2.3.5 - 2.4.2 script: - bundle exec rails bundle:audit - bundle exec rubocop - bundle exec rails tes...
addons: postgresql: 9.6 before_script: - bundle exec rails db:setup bundler_args: --jobs 4 --retry 3 --without development cache: bundler language: ruby notifications: email: false rvm: - 2.3.5 - 2.4.2 script: - bundle exec rails bundle:audit + - bundle exec license_finder --qu...
1
0.058824
1
0
869b44c5d6a0d7174def151577444a18e30929a3
application/jsx/home.jsx
application/jsx/home.jsx
/** @jsx React.DOM */ define([ 'react', 'templates/mixins/navigate' ], function( React, NavigateMixin ) { return React.createClass({ displayName : 'HomeModule', mixins : [NavigateMixin], logout : function(event) { event.preventDefault(); ...
/** @jsx React.DOM */ define([ 'react', 'templates/mixins/navigate' ], function( React, NavigateMixin ) { return React.createClass({ displayName : 'HomeModule', mixins : [NavigateMixin], logout : function(event) { var success = _.bind( ...
Send redirect closure on successful logout.
Send redirect closure on successful logout.
JSX
mit
areida/spacesynter,dcpages/dcLibrary-Template,dcpages/dcLibrary-Template,areida/spacesynter,areida/spacesynter,areida/spacesynter,areida/spacesynter
jsx
## Code Before: /** @jsx React.DOM */ define([ 'react', 'templates/mixins/navigate' ], function( React, NavigateMixin ) { return React.createClass({ displayName : 'HomeModule', mixins : [NavigateMixin], logout : function(event) { event.preventDefault...
/** @jsx React.DOM */ define([ 'react', 'templates/mixins/navigate' ], function( React, NavigateMixin ) { return React.createClass({ displayName : 'HomeModule', mixins : [NavigateMixin], logout : function(event) { + var ...
10
0.188679
9
1
840a8692f39b5c4d72ca06d418af854bbf51e384
docs/feeds.rst
docs/feeds.rst
Feeds ======== Puput allows to customize the feeds for your blog entries. These options can be found in the settings tab while editing blog properties. Feed description ------ Set *Use short description in feeds* to False if you want to use the full blog post content as description for the feed items. When set to Tr...
Feeds ===== Puput allows to customize the feeds for your blog entries. These options can be found in the settings tab while editing blog properties. Feed description ---------------- Set *Use short description in feeds* to False if you want to use the full blog post content as description for the feed items. When se...
Fix the underlines of headings in
Fix the underlines of headings in
reStructuredText
mit
APSL/puput,csalom/puput,csalom/puput,csalom/puput,APSL/puput,APSL/puput
restructuredtext
## Code Before: Feeds ======== Puput allows to customize the feeds for your blog entries. These options can be found in the settings tab while editing blog properties. Feed description ------ Set *Use short description in feeds* to False if you want to use the full blog post content as description for the feed items...
Feeds - ======== ? --- + ===== Puput allows to customize the feeds for your blog entries. These options can be found in the settings tab while editing blog properties. Feed description - ------ + ---------------- Set *Use short description in feeds* to False if you want to use the full blog post ...
4
0.363636
2
2
ac14efc0a8facbfe2fe7288734c86b27eb9b2770
openprocurement/tender/openeu/adapters.py
openprocurement/tender/openeu/adapters.py
from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openeu.models import Tender from openprocurement.tender.openua.constants import ( TENDERING_EXTRA_PERIOD ) from openprocurement.tender.openeu.constants import ( TENDERING_DURATION, PREQUALIFICATION_COMPLAINT_STAND_ST...
from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openeu.models import Tender from openprocurement.tender.openua.constants import ( TENDERING_EXTRA_PERIOD, STATUS4ROLE ) from openprocurement.tender.openeu.constants import ( TENDERING_DURATION, PREQUALIFICATION_COMPL...
Add constant for complaint documents
Add constant for complaint documents
Python
apache-2.0
openprocurement/openprocurement.tender.openeu
python
## Code Before: from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openeu.models import Tender from openprocurement.tender.openua.constants import ( TENDERING_EXTRA_PERIOD ) from openprocurement.tender.openeu.constants import ( TENDERING_DURATION, PREQUALIFICATION_CO...
from openprocurement.tender.core.adapters import TenderConfigurator from openprocurement.tender.openeu.models import Tender from openprocurement.tender.openua.constants import ( - TENDERING_EXTRA_PERIOD + TENDERING_EXTRA_PERIOD, STATUS4ROLE ? +++++++++++++ ) from openprocure...
5
0.185185
4
1
c1764d6dc258167cea8ca1dbfb460b9a25406ef6
app/models/renalware/patients/worry_query.rb
app/models/renalware/patients/worry_query.rb
require_dependency "renalware/patients" module Renalware module Patients class WorryQuery attr_reader :query_params def initialize(query_params) @query_params = query_params @query_params[:s] = "date_time DESC" if @query_params[:s].blank? end def call search ...
require_dependency "renalware/patients" module Renalware module Patients class WorryQuery attr_reader :query_params def initialize(query_params) @query_params = query_params @query_params[:s] = "date_time DESC" if @query_params[:s].blank? end def call search ...
Resolve Worryboard list N+1 issues
Resolve Worryboard list N+1 issues
Ruby
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
ruby
## Code Before: require_dependency "renalware/patients" module Renalware module Patients class WorryQuery attr_reader :query_params def initialize(query_params) @query_params = query_params @query_params[:s] = "date_time DESC" if @query_params[:s].blank? end def call ...
require_dependency "renalware/patients" module Renalware module Patients class WorryQuery attr_reader :query_params def initialize(query_params) @query_params = query_params @query_params[:s] = "date_time DESC" if @query_params[:s].blank? end de...
2
0.074074
1
1
485f1e8443bee8dd5f7116112f98717edbc49a08
examples/ably.js
examples/ably.js
'use strict'; require.config({ paths: { Ably: '/ably.min' } }); define(['Ably'], function(Ably) { var ably = new Ably(); return ably; });
'use strict'; require.config({ paths: { Ably: '/ably.min' } }); /* global define */ define(['Ably'], function(Ably) { var ably = new Ably(); return ably; });
Allow "define" in examples (no-undef)
Allow "define" in examples (no-undef)
JavaScript
mit
vgno/ably
javascript
## Code Before: 'use strict'; require.config({ paths: { Ably: '/ably.min' } }); define(['Ably'], function(Ably) { var ably = new Ably(); return ably; }); ## Instruction: Allow "define" in examples (no-undef) ## Code After: 'use strict'; require.config({ paths: { Ably: '/ably.min...
'use strict'; require.config({ paths: { Ably: '/ably.min' } }); + /* global define */ define(['Ably'], function(Ably) { var ably = new Ably(); return ably; });
1
0.083333
1
0
d603bea6e9869e749b7122112351e532196b8c5a
generator/generator.go
generator/generator.go
package generator import "os" // Generator is in charge of generating files for packages. type Generator struct { filename string } // NewGenerator creates a new generator that can save on the given filename. func NewGenerator(filename string) *Generator { return &Generator{filename} } // Generate writes the file...
package generator import ( "fmt" "os" ) // Generator is in charge of generating files for packages. type Generator struct { filename string } // NewGenerator creates a new generator that can save on the given filename. func NewGenerator(filename string) *Generator { return &Generator{filename} } // Generate wri...
Delete autogenerated kallax.go if generation failed
Delete autogenerated kallax.go if generation failed
Go
mit
src-d/go-kallax
go
## Code Before: package generator import "os" // Generator is in charge of generating files for packages. type Generator struct { filename string } // NewGenerator creates a new generator that can save on the given filename. func NewGenerator(filename string) *Generator { return &Generator{filename} } // Generate...
package generator - import "os" + import ( + "fmt" + "os" + ) // Generator is in charge of generating files for packages. type Generator struct { filename string } // NewGenerator creates a new generator that can save on the given filename. func NewGenerator(filename string) *Generator { re...
17
0.607143
14
3
1e64b7ecd66280dea272594e35e287f23bb906a6
requirements.txt
requirements.txt
Flask==0.10.1 Flask-Login==0.2.7 Jinja2==2.7.1 Markdown==2.3.1 MarkupSafe==0.18 Pillow==2.4.0 Pygments==1.6 Werkzeug==0.9.4 beautifulsoup4==4.3.2 bleach==1.4 blinker==1.3 html5lib==0.999 itsdangerous==0.24 -e git://github.com/kylewm/mf2py.git@a76437dd3948a30f53cb14f693057533ae8a68d3#egg=mf2py-origin/master oauthlib==0....
Flask==0.10.1 Flask-Login==0.2.7 Jinja2==2.7.1 Markdown==2.3.1 MarkupSafe==0.18 Pillow==2.4.0 Pygments==1.6 Werkzeug==0.9.4 beautifulsoup4==4.3.2 bleach==1.4 blinker==1.3 html5lib==0.999 itsdangerous==0.24 -e git://github.com/kylewm/mf2py.git@a76437dd3948a30f53cb14f693057533ae8a68d3#egg=mf2py oauthlib==0.6.1 pytz==2013...
Remove trailing origin/master from mf2py version spec
Remove trailing origin/master from mf2py version spec
Text
bsd-2-clause
Lancey6/redwind,Lancey6/redwind,thedod/redwind,thedod/redwind,Lancey6/redwind
text
## Code Before: Flask==0.10.1 Flask-Login==0.2.7 Jinja2==2.7.1 Markdown==2.3.1 MarkupSafe==0.18 Pillow==2.4.0 Pygments==1.6 Werkzeug==0.9.4 beautifulsoup4==4.3.2 bleach==1.4 blinker==1.3 html5lib==0.999 itsdangerous==0.24 -e git://github.com/kylewm/mf2py.git@a76437dd3948a30f53cb14f693057533ae8a68d3#egg=mf2py-origin/mas...
Flask==0.10.1 Flask-Login==0.2.7 Jinja2==2.7.1 Markdown==2.3.1 MarkupSafe==0.18 Pillow==2.4.0 Pygments==1.6 Werkzeug==0.9.4 beautifulsoup4==4.3.2 bleach==1.4 blinker==1.3 html5lib==0.999 itsdangerous==0.24 - -e git://github.com/kylewm/mf2py.git@a76437dd3948a30f53cb14f693057533ae8a68d3#egg=mf2p...
2
0.095238
1
1
807549f5995e2a68f6d427da905b668a2adbc4f0
.travis.yml
.travis.yml
sudo: required dist: trusty language: cpp before_install: # Modified Adafruit script for Arduino CI - source <(curl -SLs https://raw.githubusercontent.com/blinkinlabs/travis-ci-arduino/master/install.sh) install: # - sudo apt-get -y install qt57[QTPACKAGE] qt57serialport libusb-1.0-0-dev - sudo apt-get -y --forc...
dist: trusty language: cpp before_install: # Modified Adafruit script for Arduino CI - source <(curl -SLs https://raw.githubusercontent.com/blinkinlabs/travis-ci-arduino/master/install.sh) install: # - sudo apt-get -y install qt57[QTPACKAGE] qt57serialport libusb-1.0-0-dev # - sudo apt-get -y --force-yes install ...
Drop root requirement since we don't need to install any packages
Drop root requirement since we don't need to install any packages
YAML
mit
Blinkinlabs/BlinkyTape_Arduino
yaml
## Code Before: sudo: required dist: trusty language: cpp before_install: # Modified Adafruit script for Arduino CI - source <(curl -SLs https://raw.githubusercontent.com/blinkinlabs/travis-ci-arduino/master/install.sh) install: # - sudo apt-get -y install qt57[QTPACKAGE] qt57serialport libusb-1.0-0-dev - sudo a...
- sudo: required dist: trusty language: cpp before_install: # Modified Adafruit script for Arduino CI - source <(curl -SLs https://raw.githubusercontent.com/blinkinlabs/travis-ci-arduino/master/install.sh) install: # - sudo apt-get -y install qt57[QTPACKAGE] qt57serialport libusb-1.0-0-dev - - ...
3
0.1875
1
2
6b146ea622792d99d5f62e0f30827ecddd344bce
modules/nginx/templates/conf.d/nginx.conf.erb
modules/nginx/templates/conf.d/nginx.conf.erb
user <%= @daemon_user %>; worker_processes <%= @worker_processes %>; worker_rlimit_nofile <%= @worker_rlimit_nofile %>; error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log; pid <%= scope.lookupvar('nginx::params::nx_pid')%>; events { wo...
user <%= @daemon_user %>; worker_processes <%= @worker_processes %>; worker_rlimit_nofile <%= @worker_rlimit_nofile %>; error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log; pid <%= scope.lookupvar('nginx::params::nx_pid')%>; events { wo...
Set nginx' default charset to utf-8
Set nginx' default charset to utf-8
HTML+ERB
mit
feedlabs/puppet-packages,njam/puppet-packages,tomaszdurka/puppet-packages,vrenetic/puppet-packages,feedlabs/puppet-packages,zazabe/puppet-packages,vrenetic/puppet-packages,vrenetic/puppet-packages,cargomedia/puppet-packages,feedlabs/puppet-packages,tomaszdurka/puppet-packages,tomaszdurka/puppet-packages,vrenetic/puppet...
html+erb
## Code Before: user <%= @daemon_user %>; worker_processes <%= @worker_processes %>; worker_rlimit_nofile <%= @worker_rlimit_nofile %>; error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log; pid <%= scope.lookupvar('nginx::params::nx_pid')%>...
user <%= @daemon_user %>; worker_processes <%= @worker_processes %>; worker_rlimit_nofile <%= @worker_rlimit_nofile %>; error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log; pid <%= scope.lookupvar('nginx::params::nx_pid')%>; ...
1
0.028571
1
0
4f25d1b2f0b0bb8d5dc64a193c159bebd53ac245
content-resources/src/main/resources/sql/PostgreSQL/createUserTables.sql
content-resources/src/main/resources/sql/PostgreSQL/createUserTables.sql
DROP TABLE IF EXISTS oskari_users; DROP TABLE IF EXISTS oskari_roles; CREATE TABLE oskari_users ( id serial NOT NULL, user_name character varying(25) NOT NULL, first_name character varying(128), last_name character varying(128), uuid character varying(64), CONSTRAINT oskari_users_pkey PRIMARY KEY (id), U...
DROP TABLE IF EXISTS oskari_role_oskari_user; DROP TABLE IF EXISTS oskari_roles; DROP TABLE IF EXISTS oskari_users; CREATE TABLE oskari_users ( id serial NOT NULL, user_name character varying(25) NOT NULL, first_name character varying(128), last_name character varying(128), uuid character varying(64), CONS...
Add table to map oskari users to roles
Add table to map oskari users to roles
SQL
mit
uhef/Oskari-Routing,uhef/Oskari-Routing,nls-oskari/oskari-server,uhef/Oskari-Routing,nls-oskari/oskari-server,uhef/Oskari-Routing,nls-oskari/oskari-server
sql
## Code Before: DROP TABLE IF EXISTS oskari_users; DROP TABLE IF EXISTS oskari_roles; CREATE TABLE oskari_users ( id serial NOT NULL, user_name character varying(25) NOT NULL, first_name character varying(128), last_name character varying(128), uuid character varying(64), CONSTRAINT oskari_users_pkey PRIMA...
+ DROP TABLE IF EXISTS oskari_role_oskari_user; + DROP TABLE IF EXISTS oskari_roles; DROP TABLE IF EXISTS oskari_users; - DROP TABLE IF EXISTS oskari_roles; CREATE TABLE oskari_users ( id serial NOT NULL, user_name character varying(25) NOT NULL, first_name character varying(128), last_name chara...
11
0.578947
10
1
860cea2b6d183414d794eb2e2d44beb7728e2d4b
hasjob/models/location.py
hasjob/models/location.py
from . import db, BaseScopedNameMixin from flask import url_for from .board import Board __all__ = ['Location'] class Location(BaseScopedNameMixin, db.Model): """ A location where jobs are listed, using geonameid for primary key. Scoped to a board """ __tablename__ = 'location' id = db.Column(db...
from . import db, BaseScopedNameMixin from flask import url_for from .board import Board __all__ = ['Location'] class Location(BaseScopedNameMixin, db.Model): """ A location where jobs are listed, using geonameid for primary key. Scoped to a board """ __tablename__ = 'location' id = db.Column(db...
Fix parent synonym for Location model
Fix parent synonym for Location model
Python
agpl-3.0
hasgeek/hasjob,hasgeek/hasjob,hasgeek/hasjob,hasgeek/hasjob
python
## Code Before: from . import db, BaseScopedNameMixin from flask import url_for from .board import Board __all__ = ['Location'] class Location(BaseScopedNameMixin, db.Model): """ A location where jobs are listed, using geonameid for primary key. Scoped to a board """ __tablename__ = 'location' i...
from . import db, BaseScopedNameMixin from flask import url_for from .board import Board __all__ = ['Location'] class Location(BaseScopedNameMixin, db.Model): """ A location where jobs are listed, using geonameid for primary key. Scoped to a board """ __tablename__ = 'locat...
2
0.058824
1
1
3c7192de8a8ae5c4723a362ce25ee943cdffadce
salt/discourse/init.sls
salt/discourse/init.sls
discourse: pkg.installed: - pkgs: - git - ruby - bundler - imagemagick - advancecomp - gifsicle - jhead - jpegoptim - libjpeg-turbo-progs - optipng - pngcrush - pngquant - libpq-dev - nodejs - npm git.latest: - name: ...
discourse: pkg.installed: - pkgs: - git - ruby - bundler - imagemagick - advancecomp - gifsicle - jhead - jpegoptim - libjpeg-turbo-progs - optipng - pngcrush - pngquant - libpq-dev - nodejs - npm git.latest: - name: ...
Add database credentials to the migrate call
Add database credentials to the migrate call
SaltStack
mit
zware/psf-salt,python/psf-salt,zware/psf-salt,zware/psf-salt,python/psf-salt,python/psf-salt,python/psf-salt,zware/psf-salt
saltstack
## Code Before: discourse: pkg.installed: - pkgs: - git - ruby - bundler - imagemagick - advancecomp - gifsicle - jhead - jpegoptim - libjpeg-turbo-progs - optipng - pngcrush - pngquant - libpq-dev - nodejs - npm git.late...
discourse: pkg.installed: - pkgs: - git - ruby - bundler - imagemagick - advancecomp - gifsicle - jhead - jpegoptim - libjpeg-turbo-progs - optipng - pngcrush - pngquant - libpq-dev - nodejs ...
6
0.122449
6
0
4abe87036c2b50c1e27f4ccf27bab4076d2cf03f
src/main/java/org/kohsuke/github/GHEvent.java
src/main/java/org/kohsuke/github/GHEvent.java
package org.kohsuke.github; import java.util.Locale; /** * Hook event type. * * @author Kohsuke Kawaguchi * @see GHEventInfo * @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a> */ public enum GHEvent { COMMIT_COMMENT, CREATE, DELETE, DEPLOYMENT, D...
package org.kohsuke.github; import java.util.Locale; /** * Hook event type. * * @author Kohsuke Kawaguchi * @see GHEventInfo * @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a> */ public enum GHEvent { COMMIT_COMMENT, CREATE, DELETE, DEPLOYMENT, D...
Add missing event types used by repository webhooks
Add missing event types used by repository webhooks
Java
mit
kohsuke/github-api,recena/github-api,stephenc/github-api
java
## Code Before: package org.kohsuke.github; import java.util.Locale; /** * Hook event type. * * @author Kohsuke Kawaguchi * @see GHEventInfo * @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a> */ public enum GHEvent { COMMIT_COMMENT, CREATE, DELETE, D...
package org.kohsuke.github; import java.util.Locale; /** * Hook event type. * * @author Kohsuke Kawaguchi * @see GHEventInfo * @see <a href="https://developer.github.com/v3/activity/events/types/">Event type reference</a> */ public enum GHEvent { COMMIT_COMMENT, CREATE, ...
13
0.254902
13
0
fbec589b351787ff3066c71fbaf8d5fed5d49db2
doc/README.md
doc/README.md
+ [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) + [Integration](external-issue-tracker/README.md) + [Legal](legal/README.md) + [Markdown](markdown/markdown.md) + [Permissions](permissions/permissions.md) + [Public access](public_access/public_access.md) + [Raketasks](raketa...
+ [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) + [Integration](integration/external-issue-tracker.md) + [Legal](legal/README.md) + [Markdown](markdown/markdown.md) + [Permissions](permissions/permissions.md) + [Public access](public_access/public_access.md) + [Raketasks](r...
Fix link to isue tracker integration page
Fix link to isue tracker integration page
Markdown
mit
8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr,8thcolor/rubyconfau2015-sadr,8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr,8thcolor/eurucamp2014-htdsadr
markdown
## Code Before: + [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) + [Integration](external-issue-tracker/README.md) + [Legal](legal/README.md) + [Markdown](markdown/markdown.md) + [Permissions](permissions/permissions.md) + [Public access](public_access/public_access.md) + [R...
+ [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) - + [Integration](external-issue-tracker/README.md) ? ------- + + [Integration](integration/external-issue-tracker.md) ? ++++++++++++ + [Legal](legal/README.md)...
2
0.125
1
1
109938e90fa8ae220f49513d109ec5028f023c95
src/js/routes.js
src/js/routes.js
const SubredditTarget = require('route_targets/subreddit.js'); const Routes = { '/': { target: SubredditTarget, '/': 'view', }, '/r/:subreddit': { target: SubredditTarget, '/': 'view', '/:sort': { '/': 'view', '/:time': 'view' } }, '/:sort': { target: SubredditTarget, ...
const SubredditTarget = require('route_targets/subreddit.js'); const Routes = { '/r': { target: SubredditTarget, '/:subreddit': { '/': 'view', '/:sort': { '/': 'view', '/:time': 'view' } } }, '/': { target: SubredditTarget, '/': 'view' }, '/:sort': { ...
Fix routing for sort on front page
Fix routing for sort on front page
JavaScript
mit
AdamEdgett/material-reddit,AdamEdgett/material-reddit,AdamEdgett/material-reddit
javascript
## Code Before: const SubredditTarget = require('route_targets/subreddit.js'); const Routes = { '/': { target: SubredditTarget, '/': 'view', }, '/r/:subreddit': { target: SubredditTarget, '/': 'view', '/:sort': { '/': 'view', '/:time': 'view' } }, '/:sort': { target: S...
const SubredditTarget = require('route_targets/subreddit.js'); const Routes = { + '/r': { + target: SubredditTarget, + '/:subreddit': { + '/': 'view', + '/:sort': { + '/': 'view', + '/:time': 'view' + } + } + }, '/': { target: SubredditTarget, - '/'...
20
0.869565
11
9
d0ea4b585ef9523eac528c5a4fba4b0af653cad3
tests/loginput/test_loginput_index.py
tests/loginput/test_loginput_index.py
from loginput_test_suite import LoginputTestSuite class TestTestRoute(LoginputTestSuite): routes = ['/test', '/test/'] status_code = 200 body = '' # Routes left need to have unit tests written for: # @route('/veris') # @route('/veris/') # @post('/blockip', methods=['POST']) # @post('/blockip/', methods=...
from loginput_test_suite import LoginputTestSuite class TestTestRoute(LoginputTestSuite): routes = ['/test', '/test/'] status_code = 200 body = '' # Routes left need to have unit tests written for: # @route('/_bulk',method='POST') # @route('/_bulk/',method='POST') # @route('/_status') # @route('/_status...
Update comments for loginput tests
Update comments for loginput tests Signed-off-by: Brandon Myers <9cda508be11a1ae7ceef912b85c196946f0ec5f3@mozilla.com>
Python
mpl-2.0
jeffbryner/MozDef,mpurzynski/MozDef,Phrozyn/MozDef,Phrozyn/MozDef,jeffbryner/MozDef,gdestuynder/MozDef,ameihm0912/MozDef,gdestuynder/MozDef,mozilla/MozDef,ameihm0912/MozDef,gdestuynder/MozDef,mozilla/MozDef,ameihm0912/MozDef,mpurzynski/MozDef,mozilla/MozDef,mpurzynski/MozDef,mpurzynski/MozDef,mozilla/MozDef,jeffbryner/...
python
## Code Before: from loginput_test_suite import LoginputTestSuite class TestTestRoute(LoginputTestSuite): routes = ['/test', '/test/'] status_code = 200 body = '' # Routes left need to have unit tests written for: # @route('/veris') # @route('/veris/') # @post('/blockip', methods=['POST']) # @post('/blo...
from loginput_test_suite import LoginputTestSuite class TestTestRoute(LoginputTestSuite): routes = ['/test', '/test/'] status_code = 200 body = '' # Routes left need to have unit tests written for: - # @route('/veris') - # @route('/veris/') - # @post('/blockip', methods=['POST']) ? ...
28
1.037037
11
17
d9b214870528da026467fa399ba3cc494ff29521
Resources/config/routing.yml
Resources/config/routing.yml
tip_bundle_homepage: path: /tip defaults: { _controller: TamagoTipsManagerBundle:TipsManager:index } tip_feedback: path: /tip/{id}/feedback/{feedback} defaults: { _controller: TamagoTipsManagerBundle:TipsManager:feedback } tip_stats: path: /tip/stats defaults: { _controller: Tamago...
tip_bundle_homepage: path: /tip defaults: { _controller: TamagoTipsManagerBundle:TipsManager:index } tip_feedback: path: /tip/{id}/feedback/{feedback} defaults: { _controller: TamagoTipsManagerBundle:TipsManager:feedback } tip_show: path: /tip/show defaults: { _controller: TamagoTipsManagerBun...
Add a show route to make debugging a little easier
Add a show route to make debugging a little easier
YAML
mit
tamago-db/TamagoTipsManagerBundle,tamago-db/TamagoTipsManagerBundle,tamago-db/TamagoTipsManagerBundle
yaml
## Code Before: tip_bundle_homepage: path: /tip defaults: { _controller: TamagoTipsManagerBundle:TipsManager:index } tip_feedback: path: /tip/{id}/feedback/{feedback} defaults: { _controller: TamagoTipsManagerBundle:TipsManager:feedback } tip_stats: path: /tip/stats defaults: { _co...
tip_bundle_homepage: - path: /tip ? ---- + path: /tip defaults: { _controller: TamagoTipsManagerBundle:TipsManager:index } tip_feedback: - path: /tip/{id}/feedback/{feedback} ? ---- + path: /tip/{id}/feedback/{feedback} defaults: { _controller: TamagoTipsM...
10
0.5
7
3
8ca1a1e6523fe0142b9158f3492b7610895332c6
source/views/convocations/archived-row.js
source/views/convocations/archived-row.js
// @flow import React from 'react' import {StyleSheet} from 'react-native' import {ListRow, Detail, Title} from '../components/list' import type {PodcastEpisode} from './types' const styles = StyleSheet.create({ row: { paddingTop: 5, paddingBottom: 5, }, }) type Props = { event: PodcastEpisode, onPress: Podc...
// @flow import React from 'react' import {StyleSheet} from 'react-native' import {ListRow, Detail, Title} from '../components/list' import type {PodcastEpisode} from './types' import {fastGetTrimmedText} from '../../lib/html' import {AllHtmlEntities} from 'html-entities' const styles = StyleSheet.create({ row: { ...
Convert entities to readable text in convos
Convert entities to readable text in convos
JavaScript
mit
carls-app/carls,carls-app/carls,carls-app/carls,carls-app/carls,carls-app/carls,carls-app/carls,carls-app/carls
javascript
## Code Before: // @flow import React from 'react' import {StyleSheet} from 'react-native' import {ListRow, Detail, Title} from '../components/list' import type {PodcastEpisode} from './types' const styles = StyleSheet.create({ row: { paddingTop: 5, paddingBottom: 5, }, }) type Props = { event: PodcastEpisode...
// @flow import React from 'react' import {StyleSheet} from 'react-native' import {ListRow, Detail, Title} from '../components/list' import type {PodcastEpisode} from './types' + import {fastGetTrimmedText} from '../../lib/html' + import {AllHtmlEntities} from 'html-entities' const styles = StyleSheet...
8
0.173913
7
1
85880eef4ce33a11dc5c55af0c018727eb93d003
.travis.yml
.travis.yml
sudo: false language: python python: - 2.6 - 2.7 cache: pip: true directories: - $HOME/perl5 install: - export PERL5LIB=~/perl5/lib/perl5 - export PYTHONPATH=$(echo $(dirname $(which python))/../lib/python*/site-packages) - export PATH=~/perl5/bin:$PATH - pip install coverage - curl -L https://cpa...
sudo: false language: python matrix: include: - dist: trusty python: 2.6 - dist: xenial python: 2.7 addons: apt: packages: - scons - libdbi-perl cache: pip: true directories: - $HOME/perl5 install: - export PERL5LIB=~/perl5/lib/perl5 - export PYTHONPATH=$(echo $(dirname $...
Update to work with latest Travis and saliweb
Update to work with latest Travis and saliweb
YAML
lgpl-2.1
salilab/ligscore,salilab/ligscore
yaml
## Code Before: sudo: false language: python python: - 2.6 - 2.7 cache: pip: true directories: - $HOME/perl5 install: - export PERL5LIB=~/perl5/lib/perl5 - export PYTHONPATH=$(echo $(dirname $(which python))/../lib/python*/site-packages) - export PATH=~/perl5/bin:$PATH - pip install coverage - cur...
sudo: false language: python - python: - - 2.6 - - 2.7 + matrix: + include: + - dist: trusty + python: 2.6 + - dist: xenial + python: 2.7 + addons: + apt: + packages: + - scons + - libdbi-perl cache: pip: true directories: - $HOME/perl5 install: - export...
18
0.782609
13
5
e9240292ea960d075aebd23ee1c8930ccfa56e07
pair/pairing_handler.go
pair/pairing_handler.go
package pair import( "io" "fmt" ) type PairingHandler interface { Handle(Container) (Container, error) } func HandleReaderForHandler(r io.Reader, h PairingHandler) (io.Reader, error) { cont_in, err := NewTLV8ContainerFromReader(r) if err != nil { return nil, err } fmt.Println...
package pair import( "io" "fmt" ) type PairingHandler interface { Handle(Container) (Container, error) } func HandleReaderForHandler(r io.Reader, h PairingHandler) (r_out io.Reader, err error) { cont_in, err := NewTLV8ContainerFromReader(r) if err != nil { return nil, err } f...
Update log output when handling pairing requests
Update log output when handling pairing requests
Go
apache-2.0
sjfloat/hc,bahlo/hc,mxlje/hc,savaki/hc,ninjasphere/hc,brutella/hc
go
## Code Before: package pair import( "io" "fmt" ) type PairingHandler interface { Handle(Container) (Container, error) } func HandleReaderForHandler(r io.Reader, h PairingHandler) (io.Reader, error) { cont_in, err := NewTLV8ContainerFromReader(r) if err != nil { return nil, err } ...
package pair import( "io" "fmt" ) type PairingHandler interface { Handle(Container) (Container, error) } - func HandleReaderForHandler(r io.Reader, h PairingHandler) (io.Reader, error) { + func HandleReaderForHandler(r io.Reader, h PairingHandler) (r_out io.Reader, err error) { ? ...
9
0.264706
4
5
dcc5976c5185d103212edbcd7df72ba0dffdf22e
page_object_stubs.gemspec
page_object_stubs.gemspec
require_relative 'lib/page_object_stubs/version' Gem::Specification.new do |spec| spec.name = 'page_object_stubs' spec.version = PageObjectStubs::VERSION spec.date = PageObjectStubs::DATE spec.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt' spec.authors = spec.email = ['code@bootstraponline....
require_relative 'lib/page_object_stubs/version' Gem::Specification.new do |spec| spec.required_ruby_version = '>= 1.9.3' spec.name = 'page_object_stubs' spec.version = PageObjectStubs::VERSION spec.date = PageObjectStubs::DATE spec.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt' spec.aut...
Add required ruby version to gemspec
Add required ruby version to gemspec
Ruby
apache-2.0
bootstraponline/page_object_stubs
ruby
## Code Before: require_relative 'lib/page_object_stubs/version' Gem::Specification.new do |spec| spec.name = 'page_object_stubs' spec.version = PageObjectStubs::VERSION spec.date = PageObjectStubs::DATE spec.license = 'http://www.apache.org/licenses/LICENSE-2.0.txt' spec.authors = spec.email = ['code@...
require_relative 'lib/page_object_stubs/version' Gem::Specification.new do |spec| + spec.required_ruby_version = '>= 1.9.3' + spec.name = 'page_object_stubs' spec.version = PageObjectStubs::VERSION spec.date = PageObjectStubs::DATE spec.license = 'http://www.apache.org/licenses/LICENSE-2...
2
0.083333
2
0
59d8d301ea18105ca9c3047cd664b8b985e62e32
app/controllers/main_chat_controller.rb
app/controllers/main_chat_controller.rb
class MainChatController < ApplicationController respond_to :html, :json def index respond_with Message.last_five_main_chat_messages end end
class MainChatController < ApplicationController respond_to :html, :json def index respond_with Message.last_five_chat_messages("main") end end
Move MainChatController to use refactored last_five_chat_messages method
Move MainChatController to use refactored last_five_chat_messages method
Ruby
mit
neslom/flack,neslom/flack,neslom/flack
ruby
## Code Before: class MainChatController < ApplicationController respond_to :html, :json def index respond_with Message.last_five_main_chat_messages end end ## Instruction: Move MainChatController to use refactored last_five_chat_messages method ## Code After: class MainChatController < ApplicationControll...
class MainChatController < ApplicationController respond_to :html, :json def index - respond_with Message.last_five_main_chat_messages ? ----- + respond_with Message.last_five_chat_messages("main") ? ++++++++ e...
2
0.285714
1
1
905dd48429bf952ab1b2f5cd31c7c35d4c9e0cfb
app/views/meme.blade.php
app/views/meme.blade.php
@extends('main') @section('head') <style> .row { margin-top: 5%; } #meme { display: block; margin-left: auto; margin-right: auto; } #progress { margin-top: 1%; } </style> @endsection @section('content') <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <div class="jumbotron"> ...
@extends('main') @section('head') <style> .row { margin-top: 5%; } #meme { display: block; margin-left: auto; margin-right: auto; } #progress { margin-top: 1%; } </style> @endsection @section('content') <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <div class="jumbotron"> ...
Fix bug if no voting
Fix bug if no voting
PHP
mit
marcinlawnik/ekosme.me,marcinlawnik/ekosme.me,marcinlawnik/ekosme.me
php
## Code Before: @extends('main') @section('head') <style> .row { margin-top: 5%; } #meme { display: block; margin-left: auto; margin-right: auto; } #progress { margin-top: 1%; } </style> @endsection @section('content') <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <div clas...
@extends('main') @section('head') <style> .row { margin-top: 5%; } #meme { display: block; margin-left: auto; margin-right: auto; } #progress { margin-top: 1%; } </style> @endsection @section('content') <div class="row"> <div class="col-sm-10 col...
2
0.046512
2
0
05913ccc1fd6d111e6f32443ab407f06afe86fc9
test/run-tests.sh
test/run-tests.sh
PATH=$(npm bin):$PATH export DIR=$(pwd) shouldFail=false for f in $( find . -name "test.sh" ); do cd $(dirname $f) chmod a+x ./test.sh bash ./test.sh > output.json output=$(json-diff output.json expected-output.json); if [ "$output" != " undefined" ] ; then shouldFail=true echo "Test failed: $(pwd)" ...
PATH=$(npm bin):$PATH export DIR=$(pwd) totalTestCount=0 failedTestCount=0 for f in $( find . -name "test.sh" ); do ((totalTestCount++)) cd $(dirname $f) chmod a+x ./test.sh bash ./test.sh > output.json output=$(json-diff output.json expected-output.json); if [ "$output" != " undefined" ] ; then ((fa...
Test runner displays number of failing/succeeded tests
Test runner displays number of failing/succeeded tests
Shell
mit
michalstocki/swagger-json-filter,michalstocki/swagger-json-filter
shell
## Code Before: PATH=$(npm bin):$PATH export DIR=$(pwd) shouldFail=false for f in $( find . -name "test.sh" ); do cd $(dirname $f) chmod a+x ./test.sh bash ./test.sh > output.json output=$(json-diff output.json expected-output.json); if [ "$output" != " undefined" ] ; then shouldFail=true echo "Test fa...
PATH=$(npm bin):$PATH export DIR=$(pwd) - shouldFail=false + totalTestCount=0 + failedTestCount=0 for f in $( find . -name "test.sh" ); do + ((totalTestCount++)) cd $(dirname $f) chmod a+x ./test.sh bash ./test.sh > output.json output=$(json-diff output.json expected-output.json); if [ "$...
17
0.73913
13
4
bb400dabdaed0430a4af9830d34571dd1cdf8258
app/views/plantings/_modal.html.haml
app/views/plantings/_modal.html.haml
.modal-dialog{role: "document"} .modal-content .modal-header.text-center %h4.modal-title.w-100.font-weight-bold Record #{planting.crop.name} planting %button.close{"aria-label" => "Close", "data-dismiss" => "modal", type: "button"} %span{"aria-hidden" => "true"} &#215; .modal...
.modal-dialog{role: "document"} .modal-content .modal-header.text-center %h4.modal-title.w-100.font-weight-bold Record #{planting.crop.name} planting %button.close{"aria-label" => "Close", "data-dismiss" => "modal", type: "button"} %span{"aria-hidden" => "true"} &#215; .modal...
Add new garden button on modal planting form
Add new garden button on modal planting form
Haml
agpl-3.0
Growstuff/growstuff,Br3nda/growstuff,cesy/growstuff,Br3nda/growstuff,cesy/growstuff,Growstuff/growstuff,cesy/growstuff,Growstuff/growstuff,cesy/growstuff,Br3nda/growstuff,Growstuff/growstuff,Br3nda/growstuff
haml
## Code Before: .modal-dialog{role: "document"} .modal-content .modal-header.text-center %h4.modal-title.w-100.font-weight-bold Record #{planting.crop.name} planting %button.close{"aria-label" => "Close", "data-dismiss" => "modal", type: "button"} %span{"aria-hidden" => "true"} &#2...
.modal-dialog{role: "document"} .modal-content .modal-header.text-center %h4.modal-title.w-100.font-weight-bold Record #{planting.crop.name} planting %button.close{"aria-label" => "Close", "data-dismiss" => "modal", type: "button"} %span{"aria-hidden" => "true"} &#215; ...
1
0.038462
1
0
b5601797b0e734514e5958be64576abe9fe684d7
src/cli.py
src/cli.py
from cmd2 import Cmd, options, make_option import h5_wrapper import sys import os class CmdApp(Cmd): def do_ls(self, args, opts=None): for g in self.explorer.list_groups(): print(g+"/") for ds in self.explorer.list_datasets(): print(ds) def do_cd(self, args, o...
from cmd2 import Cmd, options, make_option import h5_wrapper import sys import os class CmdApp(Cmd): def do_ls(self, args, opts=None): if len(args.strip()) > 0: for g in self.explorer.list_groups(args): print(g+"/") for ds in self.explorer.list_dataset...
Allow ls to pass arguments
Allow ls to pass arguments
Python
mit
ksunden/h5cli
python
## Code Before: from cmd2 import Cmd, options, make_option import h5_wrapper import sys import os class CmdApp(Cmd): def do_ls(self, args, opts=None): for g in self.explorer.list_groups(): print(g+"/") for ds in self.explorer.list_datasets(): print(ds) def do_...
from cmd2 import Cmd, options, make_option import h5_wrapper import sys import os class CmdApp(Cmd): def do_ls(self, args, opts=None): + if len(args.strip()) > 0: + for g in self.explorer.list_groups(args): + print(g+"/") + + for ds in ...
17
0.346939
12
5
d4944818f210eaa928527edcfab4e9ba2e081977
README.md
README.md
[L.B. Stanza](http://lbstanza.org) is an optionally-typed, general-purpose langauge. I've only tested the linux version so please submit issues if you have any problems with the Mac version. ### Linux ```sh brew install MadcapJake/lbstanza/stanza-linux ``` ### Mac ```sh brew install MadcapJake/lbstanza/stanza-mac ...
[L.B. Stanza](http://lbstanza.org) is an optionally-typed, general-purpose langauge. I've only tested the linux version so please submit issues if you have any problems with the Mac version. ### Install #### Linux ```sh brew install MadcapJake/lbstanza/stanza-linux ``` #### Mac ```sh brew install MadcapJake/lbsta...
Add upgrading instructions to readme
Add upgrading instructions to readme
Markdown
mit
MadcapJake/homebrew-lbstanza,stanza-tools/homebrew-tap
markdown
## Code Before: [L.B. Stanza](http://lbstanza.org) is an optionally-typed, general-purpose langauge. I've only tested the linux version so please submit issues if you have any problems with the Mac version. ### Linux ```sh brew install MadcapJake/lbstanza/stanza-linux ``` ### Mac ```sh brew install MadcapJake/lbst...
[L.B. Stanza](http://lbstanza.org) is an optionally-typed, general-purpose langauge. I've only tested the linux version so please submit issues if you have any problems with the Mac version. + ### Install + - ### Linux + #### Linux ? + ```sh brew install MadcapJake/lbstanza/stanza-linux ``` - ###...
13
0.419355
11
2
9c2951d794bb27952606cae77da1ebcd0d651e72
aiodownload/api.py
aiodownload/api.py
from aiodownload import AioDownloadBundle, AioDownload import asyncio def one(url, download=None): return [s for s in swarm([url], download=download)][0] def swarm(urls, download=None): return [e for e in each(urls, download=download)] def each(iterable, url_map=None, download=None): url_map = url...
from aiodownload import AioDownloadBundle, AioDownload import asyncio def one(url, download=None): return [s for s in swarm([url], download=download)][0] def swarm(urls, download=None): return [e for e in each(urls, download=download)] def each(iterable, url_map=None, download=None): url_map = url...
Fix - needed to provide create_task a function, not a class
Fix - needed to provide create_task a function, not a class
Python
mit
jelloslinger/aiodownload
python
## Code Before: from aiodownload import AioDownloadBundle, AioDownload import asyncio def one(url, download=None): return [s for s in swarm([url], download=download)][0] def swarm(urls, download=None): return [e for e in each(urls, download=download)] def each(iterable, url_map=None, download=None): ...
from aiodownload import AioDownloadBundle, AioDownload import asyncio def one(url, download=None): return [s for s in swarm([url], download=download)][0] def swarm(urls, download=None): return [e for e in each(urls, download=download)] def each(iterable, url_map=None, do...
2
0.052632
1
1
36e6d4181d168bb7a06395516423b274f70037f6
recipes-bsp/burn-boot/burn-boot_git.bb
recipes-bsp/burn-boot/burn-boot_git.bb
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3" SRCREV = "6d8429dd5dfa4ec1cee4428cafe882c16624832a" SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https \ " S = "${WORKDIR...
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3" SRCREV = "6d8429dd5dfa4ec1cee4428cafe882c16624832a" SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https \ " S = "${WORKDIR...
Make it multilib safe, delete target recipe
burn-boot: Make it multilib safe, delete target recipe Since it plays with DEPLOY_DIR, we have to ensure its cleaned before rebuilds and its host only package so make it native only. This helps resolve conflicts when multilib is enabled Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
BitBake
mit
96boards/meta-96boards,mrchapp/meta-96boards
bitbake
## Code Before: SUMMARY = "A small python tool for downloading bootloader to ddr through serial port" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3" SRCREV = "6d8429dd5dfa4ec1cee4428cafe882c16624832a" SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https \ "...
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3" SRCREV = "6d8429dd5dfa4ec1cee4428cafe882c16624832a" SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https \ "...
8
0.296296
3
5
4596840e6a9979f72c406dc129dd3c7f6ec59fef
config/livestax.yml
config/livestax.yml
livestax: members: - jamiecobbett - lozette - sl33p - deberny channel: "#pull-requests" exclude_titles: - "[DO NOT MERGE]" - DO NOT MERGE - WIP - "[DO NOT SEAL]" - "[DON'T SEAL]" - DO NOT SEAL - DON'T SEAL
livestax: members: - jamiecobbett - lozette - sl33p - deberny - shaffi channel: "#pull-requests" exclude_titles: - "[DO NOT MERGE]" - DO NOT MERGE - WIP - "[DO NOT SEAL]" - "[DON'T SEAL]" - DO NOT SEAL - DON'T SEAL
Add Shaffi to the seal
Add Shaffi to the seal
YAML
mit
livestax/seal,livestax/seal
yaml
## Code Before: livestax: members: - jamiecobbett - lozette - sl33p - deberny channel: "#pull-requests" exclude_titles: - "[DO NOT MERGE]" - DO NOT MERGE - WIP - "[DO NOT SEAL]" - "[DON'T SEAL]" - DO NOT SEAL - DON'T SEAL ## Instruction: Add Shaffi to the seal #...
livestax: members: - jamiecobbett - lozette - sl33p - deberny + - shaffi channel: "#pull-requests" exclude_titles: - "[DO NOT MERGE]" - DO NOT MERGE - WIP - "[DO NOT SEAL]" - "[DON'T SEAL]" - DO NOT SEAL - DON'T SEAL
1
0.055556
1
0
0dc1ee91333858df79dce97d1c2b6a52d36a4088
frontend/src/metabase/components/Icon.jsx
frontend/src/metabase/components/Icon.jsx
/*eslint-disable react/no-danger */ import React, { Component, PropTypes } from "react"; import RetinaImage from "react-retina-image"; import { loadIcon } from 'metabase/icon_paths'; export default class Icon extends Component { static propTypes = { name: PropTypes.string.isRequired, width: PropTypes...
/*eslint-disable react/no-danger */ import React, { Component, PropTypes } from "react"; import RetinaImage from "react-retina-image"; import { loadIcon } from 'metabase/icon_paths'; export default class Icon extends Component { static propTypes = { name: PropTypes.string.isRequired, width: PropTypes...
Fix "Cannot read property 'attrs' of undefined" when icon is missing
Fix "Cannot read property 'attrs' of undefined" when icon is missing
JSX
agpl-3.0
blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase
jsx
## Code Before: /*eslint-disable react/no-danger */ import React, { Component, PropTypes } from "react"; import RetinaImage from "react-retina-image"; import { loadIcon } from 'metabase/icon_paths'; export default class Icon extends Component { static propTypes = { name: PropTypes.string.isRequired, ...
/*eslint-disable react/no-danger */ import React, { Component, PropTypes } from "react"; import RetinaImage from "react-retina-image"; import { loadIcon } from 'metabase/icon_paths'; export default class Icon extends Component { static propTypes = { name: PropTypes.string.isRequired, ...
7
0.159091
4
3
c740e183ca7024dfeb6293543ddee88ab5b21883
.travis.yml
.travis.yml
language: ruby rvm: - ree - 1.8.7 - 1.9.3 bundler_args: --without development env: - DB=sqlite - DB=mysql - DB=postgres branches: except: - fit-pages before_script: - "cp -v config/database.${DB}.yml config/database.yml" - "cp -v config/teambox.example.yml config/teambox.yml" - bundle exec rake ...
language: ruby rvm: - 1.9.3 - 2.0.0 bundler_args: --without development env: - DB=sqlite - DB=mysql - DB=postgres branches: except: - fit-pages before_script: - "cp -v config/database.${DB}.yml config/database.yml" - "cp -v config/teambox.example.yml config/teambox.yml" - bundle exec rake db:creat...
Remove REE, 1.8.7, add 2.0.0
Travis: Remove REE, 1.8.7, add 2.0.0
YAML
agpl-3.0
crewmate/crewmate,crewmate/crewmate,codeforeurope/samenspel,crewmate/crewmate,codeforeurope/samenspel
yaml
## Code Before: language: ruby rvm: - ree - 1.8.7 - 1.9.3 bundler_args: --without development env: - DB=sqlite - DB=mysql - DB=postgres branches: except: - fit-pages before_script: - "cp -v config/database.${DB}.yml config/database.yml" - "cp -v config/teambox.example.yml config/teambox.yml" - b...
language: ruby rvm: - - ree - - 1.8.7 - 1.9.3 + - 2.0.0 bundler_args: --without development env: - DB=sqlite - DB=mysql - DB=postgres branches: except: - fit-pages before_script: - "cp -v config/database.${DB}.yml config/database.yml" - "cp -v config/teambox.example.y...
5
0.238095
2
3
98fac12e7fc2a13230536dba49961e0f7460b135
client/src/index.css
client/src/index.css
body { margin: 0; padding: 0; font-family: sans-serif; }
body { margin: 0; padding: 0; font-family: sans-serif; padding-bottom: 60px; }
Set padding-bottom to avoid overlap with footer
Set padding-bottom to avoid overlap with footer
CSS
mit
Pairboard/Pairboard,Pairboard/Pairboard
css
## Code Before: body { margin: 0; padding: 0; font-family: sans-serif; } ## Instruction: Set padding-bottom to avoid overlap with footer ## Code After: body { margin: 0; padding: 0; font-family: sans-serif; padding-bottom: 60px; }
body { margin: 0; padding: 0; font-family: sans-serif; + padding-bottom: 60px; }
1
0.2
1
0
fc6de6706cb4cb8cde60924785865e4be3ff3e67
.pre-commit-config.yaml
.pre-commit-config.yaml
repos: - repo: https://github.com/myint/autoflake rev: v1.4 hooks: - id: autoflake args: - --in-place - --remove-all-unused-imports - --expand-star-imports - --remove-duplicate-keys - --remove-unused-variables - repo: https://github.c...
ci: skip: [pylint] repos: - repo: https://github.com/myint/autoflake rev: v1.4 hooks: - id: autoflake args: - --in-place - --remove-all-unused-imports - --expand-star-imports - --remove-duplicate-keys - --remove-unused-variables - repo: http...
Add prettier to the pre-commit configuration
Add prettier to the pre-commit configuration
YAML
agpl-3.0
Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey
yaml
## Code Before: repos: - repo: https://github.com/myint/autoflake rev: v1.4 hooks: - id: autoflake args: - --in-place - --remove-all-unused-imports - --expand-star-imports - --remove-duplicate-keys - --remove-unused-variables - repo: ...
+ ci: + skip: [pylint] + repos: - - repo: https://github.com/myint/autoflake ? - + - repo: https://github.com/myint/autoflake ? + rev: v1.4 hooks: - - id: autoflake ? -- + - id: autoflake ? ++ args: - - --in-place ? -- + - --in-place - ...
49
1.53125
29
20
e3544b18dbc3430779009709fbb684572a841ea8
src/Storage/Collection/CollectionManager.php
src/Storage/Collection/CollectionManager.php
<?php namespace Bolt\Storage\Collection; use Bolt\Storage\EntityManager; /** * Collection Manager class * * @author Ross Riley <riley.ross@gmail.com> */ class CollectionManager { public $collections; public $em; /** * @param $entity * @param $handler */ public function setHandler(...
<?php namespace Bolt\Storage\Collection; use Bolt\Storage\EntityManager; use Doctrine\Common\Collections\ArrayCollection; /** * Collection Manager class * * @author Ross Riley <riley.ross@gmail.com> */ class CollectionManager { public $collections; public $em; /** * @param $entity * @param...
Throw an exception when a collection is created missing a handler
Throw an exception when a collection is created missing a handler
PHP
mit
GawainLynch/bolt,bolt/bolt,romulo1984/bolt,lenvanessen/bolt,electrolinux/bolt,electrolinux/bolt,GawainLynch/bolt,lenvanessen/bolt,lenvanessen/bolt,romulo1984/bolt,bolt/bolt,GawainLynch/bolt,lenvanessen/bolt,nikgo/bolt,electrolinux/bolt,romulo1984/bolt,romulo1984/bolt,GawainLynch/bolt,nikgo/bolt,nikgo/bolt,nikgo/bolt,el...
php
## Code Before: <?php namespace Bolt\Storage\Collection; use Bolt\Storage\EntityManager; /** * Collection Manager class * * @author Ross Riley <riley.ross@gmail.com> */ class CollectionManager { public $collections; public $em; /** * @param $entity * @param $handler */ public func...
<?php namespace Bolt\Storage\Collection; use Bolt\Storage\EntityManager; + use Doctrine\Common\Collections\ArrayCollection; /** * Collection Manager class * * @author Ross Riley <riley.ross@gmail.com> */ class CollectionManager { public $collections; public $em; /**...
14
0.333333
12
2
37515217167b5ea53d6c15ef2727674d91f8fd65
package.json
package.json
{ "name": "restbase-cassandra", "description": "RESTBase table storage on Cassandra", "version": "0.3.0", "dependencies": { "assert": "^1.1.1", "async": "0.x.x", "bluebird": "^2.3.10", "cassandra-codec": "~0.0.2", "cassandra-driver": "^1.0.2", "connect-busboy": "git+https://github.com/gw...
{ "name": "restbase-cassandra", "description": "RESTBase table storage on Cassandra", "version": "0.3.1", "dependencies": { "async": "0.x.x", "bluebird": "~2.3.10", "cassandra-codec": "~0.0.2", "cassandra-driver": "~1.0.2", "connect-busboy": "git+https://github.com/gwicke/connect-busboy.git#...
Update dependencies & release v0.3.1
Update dependencies & release v0.3.1
JSON
apache-2.0
gwicke/restbase-mod-table-cassandra,eevans/restbase-mod-table-cassandra
json
## Code Before: { "name": "restbase-cassandra", "description": "RESTBase table storage on Cassandra", "version": "0.3.0", "dependencies": { "assert": "^1.1.1", "async": "0.x.x", "bluebird": "^2.3.10", "cassandra-codec": "~0.0.2", "cassandra-driver": "^1.0.2", "connect-busboy": "git+https...
{ "name": "restbase-cassandra", "description": "RESTBase table storage on Cassandra", - "version": "0.3.0", ? ^ + "version": "0.3.1", ? ^ "dependencies": { - "assert": "^1.1.1", "async": "0.x.x", - "bluebird": "^2.3.10", ? ^ + "...
11
0.44
5
6
b43db0113a50f2999a6e93eaf8dbc1e6b89a60ff
Pod/Classes/BCBalancedMultilineLabel.h
Pod/Classes/BCBalancedMultilineLabel.h
@interface BCBalancedMultilineLabel : UILabel @end
/** * A simple label subclass that draws itself such that each of its * lines have as close to the same length as possible. It can be * used anywhere that you could use an ordinary `UILabel` by simply * changing the instantiated class. */ @interface BCBalancedMultilineLabel : UILabel @end
Add Appledoc to the header
Add Appledoc to the header
C
mit
briancroom/BCBalancedMultilineLabel
c
## Code Before: @interface BCBalancedMultilineLabel : UILabel @end ## Instruction: Add Appledoc to the header ## Code After: /** * A simple label subclass that draws itself such that each of its * lines have as close to the same length as possible. It can be * used anywhere that you could use an ordinary `UILabe...
+ /** + * A simple label subclass that draws itself such that each of its + * lines have as close to the same length as possible. It can be + * used anywhere that you could use an ordinary `UILabel` by simply + * changing the instantiated class. + */ @interface BCBalancedMultilineLabel : UILabel @end
6
1.5
6
0
ef2061dbaa70d414a87b67a28c97ceee7148cb6e
README.markdown
README.markdown
Using the *lyframework* usable with a free license. This repository/branch contain the admin part of the project.
Ruby Restful Mobile oriented framework. - Concentrate on API - Can create Web interface easily ## Docs Documentation is to be done. ## Status Orientation and satus of the current project to define.
Change the Rubyzome welcome page.
Change the Rubyzome welcome page.
Markdown
mit
yogsototh/rubyzome_framework,yogsototh/rubyzome_framework,yogsototh/rubyzome_framework,yogsototh/rubyzome_framework
markdown
## Code Before: Using the *lyframework* usable with a free license. This repository/branch contain the admin part of the project. ## Instruction: Change the Rubyzome welcome page. ## Code After: Ruby Restful Mobile oriented framework. - Concentrate on API - Can create Web interface easily ## Docs Documentation ...
- Using the *lyframework* usable with a free license. + Ruby Restful Mobile oriented framework. - This repository/branch contain the admin part of the project. + - Concentrate on API + - Can create Web interface easily + + + ## Docs + + Documentation is to be done. + + ## Status + + Orientation and satus of ...
14
3.5
12
2
6ceb7f20c2343585e9d7c08902b397520a4bc901
.travis.yml
.travis.yml
language: java jdk: - oraclejdk7 script: "./gradlew :plugin:jpi :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER -x jar -x javadoc -x sourcesJar -x publishMavenJpiPublicationToMavenLocal" env: global: secure: blEUjsU8dIot/C43rEeXdun9rQns+lR0qxzMG5cvWr7m3G95LFGOyhFzw9QBaTBFlGplteZAv...
language: java jdk: - oraclejdk7 script: "./gradlew :plugin:jpi after_success: if [ $TRAVIS_SECURE_ENV_VARS -eq true ]; then ./gradlew :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER -x jar -x javadoc -x sourcesJar -x publishMavenJpiPublicationToMavenLocal"; fi env: global: sec...
Make Bintray upload only for build from master
Make Bintray upload only for build from master
YAML
apache-2.0
jenkinsci/deployment-sphere-plugin,rkovalenko/deployment-sphere-plugin,webdizz/deployment-sphere-plugin,jenkinsci/deployment-sphere-plugin,rkovalenko/deployment-sphere-plugin,jenkinsci/deployment-sphere-plugin,webdizz/deployment-sphere-plugin,webdizz/deployment-sphere-plugin
yaml
## Code Before: language: java jdk: - oraclejdk7 script: "./gradlew :plugin:jpi :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER -x jar -x javadoc -x sourcesJar -x publishMavenJpiPublicationToMavenLocal" env: global: secure: blEUjsU8dIot/C43rEeXdun9rQns+lR0qxzMG5cvWr7m3G95LFGOyhFzw...
language: java jdk: - oraclejdk7 - script: "./gradlew :plugin:jpi :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TRAVIS_BUILD_NUMBER + script: "./gradlew :plugin:jpi + after_success: if [ $TRAVIS_SECURE_ENV_VARS -eq true ]; then ./gradlew :pl:bintrayUpload -PbinTrayKey=$BINTRAY_KEY -Pversion=0.1.$TR...
5
0.625
3
2
f10de1e4b4a497976d9e4169fa2c8850f351d8f5
views/site/index.js
views/site/index.js
$(function(){ $('.imgTile').click(function(){ window.location.href = $(this).data('url'); }) }); function initialize() { var mapOptions = { center: { lat: 32.7688, lng: -85.5285}, zoom: 6, disableDefaultUI:true }; var map = new google.maps.Map(document.getElementByI...
$(function(){ $('.imgTile').click(function(){ window.location.href = $(this).data('url'); }) }); var map = { map: null, mapOptions: null, init: function() { this.initOptions(); this.map = new google.maps.Map(document.getElementById('map-canvas'), this.mapOptions); th...
Disable map scrolling until user click on the map.
Disable map scrolling until user click on the map.
JavaScript
bsd-3-clause
wangchj/bfre,wangchj/bfre,wangchj/bfre
javascript
## Code Before: $(function(){ $('.imgTile').click(function(){ window.location.href = $(this).data('url'); }) }); function initialize() { var mapOptions = { center: { lat: 32.7688, lng: -85.5285}, zoom: 6, disableDefaultUI:true }; var map = new google.maps.Map(docume...
$(function(){ $('.imgTile').click(function(){ window.location.href = $(this).data('url'); }) }); - function initialize() { + var map = { + map: null, + mapOptions: null, + init: function() { + this.initOptions(); + this.map = new google.maps.Map(document.getEleme...
36
2.117647
28
8
6b6b7352010a06121d4e1d4e7174052642028112
src/Euskadi31/Bundle/RedisBundle/Redis/NativeRedisSessionHandler.php
src/Euskadi31/Bundle/RedisBundle/Redis/NativeRedisSessionHandler.php
<?php /* * This file is part of the RedisBundle package. * * (c) Axel Etcheverry <axel@etcheverry.biz> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Euskadi31\Bundle\RedisBundle\Redis; use Symfony\Component\HttpFounda...
<?php /* * This file is part of the RedisBundle package. * * (c) Axel Etcheverry <axel@etcheverry.biz> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Euskadi31\Bundle\RedisBundle\Redis; use Symfony\Component\HttpFounda...
Fix problem Auth when password was requested
Fix problem Auth when password was requested English and French following: A RedisException was thrown when redis was configured with a password Adding a test to verify that the connexion use a password or not Adding a parameters for auth in TCP French: Une RedisException était déclenchée lorsqu'on tentait d'...
PHP
mit
euskadi31/RedisBundle
php
## Code Before: <?php /* * This file is part of the RedisBundle package. * * (c) Axel Etcheverry <axel@etcheverry.biz> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Euskadi31\Bundle\RedisBundle\Redis; use Symfony\Comp...
<?php /* * This file is part of the RedisBundle package. * * (c) Axel Etcheverry <axel@etcheverry.biz> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Euskadi31\Bundle\RedisBundle\Redis; use Sy...
15
0.375
11
4
9a58e0ceeceb434bb3fe22dafa7adedd57652d95
selendroid-server/src/main/java/io/selendroid/server/util/Intents.java
selendroid-server/src/main/java/io/selendroid/server/util/Intents.java
package io.selendroid.server.util; import android.content.Context; import android.content.Intent; import android.net.Uri; /** * A helper class for working with intents */ public class Intents { /** * Create an intent to start an activity, for both ServerInstrumentation and LightweightInstrumentation *...
package io.selendroid.server.util; import android.content.Context; import android.content.Intent; import android.net.Uri; /** * A helper class for working with intents */ public class Intents { /** * Create an intent to start an activity, for both ServerInstrumentation and LightweightInstrumentation *...
Add flags to the intent so it is launched correctly.
Add flags to the intent so it is launched correctly.
Java
apache-2.0
selendroid/selendroid,koichirok/selendroid,koichirok/selendroid,selendroid/selendroid,koichirok/selendroid,koichirok/selendroid,selendroid/selendroid,selendroid/selendroid,selendroid/selendroid,koichirok/selendroid
java
## Code Before: package io.selendroid.server.util; import android.content.Context; import android.content.Intent; import android.net.Uri; /** * A helper class for working with intents */ public class Intents { /** * Create an intent to start an activity, for both ServerInstrumentation and LightweightInstru...
package io.selendroid.server.util; import android.content.Context; import android.content.Intent; import android.net.Uri; /** * A helper class for working with intents */ public class Intents { /** * Create an intent to start an activity, for both ServerInstrumentation and Lightweig...
4
0.133333
3
1
434b3e94f461c995a5e2f421acca29897495f0a8
setup.py
setup.py
from distutils.core import setup setup( name = 'respite', version = '0.6.1', description = "Respite conforms Django to Representational State Transfer (REST)", author = "Johannes Gorset", author_email = "jgorset@gmail.com", url = "http://github.com/jgorset/respite", packages = ['respite'] )...
from distutils.core import setup setup( name = 'respite', version = '0.6.1', description = "Respite conforms Django to Representational State Transfer (REST)", author = "Johannes Gorset", author_email = "jgorset@gmail.com", url = "http://github.com/jgorset/respite", packages = ['respite', '...
Add 'lib' and 'serializers' to packages
Add 'lib' and 'serializers' to packages
Python
mit
jgorset/django-respite,jgorset/django-respite,jgorset/django-respite
python
## Code Before: from distutils.core import setup setup( name = 'respite', version = '0.6.1', description = "Respite conforms Django to Representational State Transfer (REST)", author = "Johannes Gorset", author_email = "jgorset@gmail.com", url = "http://github.com/jgorset/respite", packages...
from distutils.core import setup setup( name = 'respite', version = '0.6.1', description = "Respite conforms Django to Representational State Transfer (REST)", author = "Johannes Gorset", author_email = "jgorset@gmail.com", url = "http://github.com/jgorset/respite", - pack...
2
0.181818
1
1
88b8134f540c33e619c27ef5580dc1e66b7cb02b
quay-enterprise/generate-signing-keys.sh
quay-enterprise/generate-signing-keys.sh
set -e if [ $# -lt 1 ]; then echo 1>&2 "$0: missing target directory" exit 2 fi echo 'Generating initial keys' gpg2 --batch --gen-key aci-signing-key-batch.txt echo 'Generating public signing key' gpg2 --no-default-keyring --armor \ --secret-keyring ./signing.sec --keyring ./signing.pub \ --output $1/signing-pub...
set -e if [ $# -lt 1 ]; then echo 1>&2 "$0: missing target directory" exit 2 fi echo 'Generating initial keys' gpg2 --batch --gen-key aci-signing-key-batch.txt EMAIL=`awk '{if($1=="Name-Email:") print $2}' aci-signing-key-batch.txt` echo 'Generating public signing key' gpg2 --no-default-keyring --armor \ --secr...
Fix email in key generation
Fix email in key generation The email used in generating a public signing key should be pulled from aci-signing-key-batch.txt Changed to pull from the second entry of the row with a first entry of "Name-Email:" in aci-signing-key-batch.txt.
Shell
apache-2.0
atxwebs/docs,joshix/docs,jonboulle/docs,endocode/coreos-docs,coreos/docs
shell
## Code Before: set -e if [ $# -lt 1 ]; then echo 1>&2 "$0: missing target directory" exit 2 fi echo 'Generating initial keys' gpg2 --batch --gen-key aci-signing-key-batch.txt echo 'Generating public signing key' gpg2 --no-default-keyring --armor \ --secret-keyring ./signing.sec --keyring ./signing.pub \ --outpu...
set -e if [ $# -lt 1 ]; then echo 1>&2 "$0: missing target directory" exit 2 fi echo 'Generating initial keys' gpg2 --batch --gen-key aci-signing-key-batch.txt + EMAIL=`awk '{if($1=="Name-Email:") print $2}' aci-signing-key-batch.txt` + echo 'Generating public signing key' gpg2 --no-defa...
4
0.129032
3
1
df18229b38a01d87076f3b13aee5bfd1f0f989c2
tunobase/blog/models.py
tunobase/blog/models.py
''' Blog App This module determines how to display the Blog app in Django's admin and lists other model functions. ''' from django.conf import settings from django.core.urlresolvers import reverse from django.db import models from tunobase.core import models as core_models class Blog(core_models.ContentModel): ...
''' Blog App This module determines how to display the Blog app in Django's admin and lists other model functions. ''' from django.conf import settings from django.core.urlresolvers import reverse from django.db import models from tunobase.core import models as core_models class Blog(core_models.ContentModel): ...
Update blog model with a more descriptive name
Update blog model with a more descriptive name
Python
bsd-3-clause
unomena/tunobase,unomena/tunobase
python
## Code Before: ''' Blog App This module determines how to display the Blog app in Django's admin and lists other model functions. ''' from django.conf import settings from django.core.urlresolvers import reverse from django.db import models from tunobase.core import models as core_models class Blog(core_models.Co...
''' Blog App This module determines how to display the Blog app in Django's admin and lists other model functions. ''' from django.conf import settings from django.core.urlresolvers import reverse from django.db import models from tunobase.core import models as core_models class Blog(...
4
0.063492
4
0
4878a9464b5672a55405bd20acda6412c94d0af4
install.sh
install.sh
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim if [ -f "~/.bashrc" ]; then mv -i -v ~/.bashrc ~/.bashrc.orig cp -i -v bashrc ~/.bashrc source ~/.bashrc else cp -i -v bashrc ~/.bashrc source ~/.bashrc fi if [ -f "~/.vimrc" ]; then mv -i -v ~/.vimrc ~/.vimrc.orig...
sudo apt-get install vim yum install vim git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim if [ -f "$HOME/.bashrc" ]; then mv -i -v ~/.bashrc ~/.bashrc.orig cp -i -v bashrc ~/.bashrc source ~/.bashrc else cp -i -v bashrc ~/.bashrc source ~/.bashrc fi if [ -f "$HOME/....
Fix to recognize home directory
Fix to recognize home directory
Shell
apache-2.0
wjw0926/dotfiles
shell
## Code Before: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim if [ -f "~/.bashrc" ]; then mv -i -v ~/.bashrc ~/.bashrc.orig cp -i -v bashrc ~/.bashrc source ~/.bashrc else cp -i -v bashrc ~/.bashrc source ~/.bashrc fi if [ -f "~/.vimrc" ]; then mv -i -v ~/.vim...
+ + sudo apt-get install vim + yum install vim git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim - if [ -f "~/.bashrc" ]; then ? ^ + if [ -f "$HOME/.bashrc" ]; then ? ^^^^^ mv -i -v ~/.bashrc ~/.bashrc.orig cp -i -v bashrc ~/.bashrc source ~/.b...
13
0.302326
8
5
89be710282fd664209f590668f7b9b179182eb4c
mysql/run.sh
mysql/run.sh
docker run -d --net=host -p 3306:3006 -v /var/host_lib/mysql:/var/lib/mysql -t hnakamur/mysql
docker run -d --net=host --name mysql -p 3306:3006 -v /var/host_lib/mysql:/var/lib/mysql -t hnakamur/mysql
Set name for mysql container
Set name for mysql container
Shell
mit
hnakamur/vagrant-docker-rails-development-example,hnakamur/vagrant-docker-rails-development-example,hnakamur/vagrant-docker-rails-development-example
shell
## Code Before: docker run -d --net=host -p 3306:3006 -v /var/host_lib/mysql:/var/lib/mysql -t hnakamur/mysql ## Instruction: Set name for mysql container ## Code After: docker run -d --net=host --name mysql -p 3306:3006 -v /var/host_lib/mysql:/var/lib/mysql -t hnakamur/mysql
- docker run -d --net=host -p 3306:3006 -v /var/host_lib/mysql:/var/lib/mysql -t hnakamur/mysql + docker run -d --net=host --name mysql -p 3306:3006 -v /var/host_lib/mysql:/var/lib/mysql -t hnakamur/mysql ? +++++++++++++
2
2
1
1
eb6b3027e61b9f62e161506f8a8b7d0efaad29c6
requirements.txt
requirements.txt
pbr>=0.6,!=0.7,<1.0 cliff>=1.6.0 python-glanceclient>=0.13.1 python-keystoneclient>=0.9.0 python-novaclient>=2.17.0 python-cinderclient>=1.0.7 python-neutronclient>=2.3.5,<3 requests>=1.1 six>=1.7.0
cliff>=1.6.0 oslo.i18n>=0.2.0 # Apache-2.0 pbr>=0.6,!=0.7,<1.0 python-glanceclient>=0.13.1 python-keystoneclient>=0.9.0 python-novaclient>=2.17.0 python-cinderclient>=1.0.7 python-neutronclient>=2.3.5,<3 requests>=1.1 six>=1.7.0
Add oslo.i18n as a dependency
Add oslo.i18n as a dependency Add i18n in requirements.txt implements bp add_i18n Change-Id: I84ecd16696593414739c52ee344b8a1c9868941a
Text
apache-2.0
dtroyer/python-openstackclient,openstack/python-openstackclient,redhat-openstack/python-openstackclient,BjoernT/python-openstackclient,dtroyer/python-openstackclient,redhat-openstack/python-openstackclient,varunarya10/python-openstackclient,BjoernT/python-openstackclient,varunarya10/python-openstackclient,openstack/pyt...
text
## Code Before: pbr>=0.6,!=0.7,<1.0 cliff>=1.6.0 python-glanceclient>=0.13.1 python-keystoneclient>=0.9.0 python-novaclient>=2.17.0 python-cinderclient>=1.0.7 python-neutronclient>=2.3.5,<3 requests>=1.1 six>=1.7.0 ## Instruction: Add oslo.i18n as a dependency Add i18n in requirements.txt implements bp add_i18n Cha...
+ cliff>=1.6.0 + oslo.i18n>=0.2.0 # Apache-2.0 pbr>=0.6,!=0.7,<1.0 - cliff>=1.6.0 python-glanceclient>=0.13.1 python-keystoneclient>=0.9.0 python-novaclient>=2.17.0 python-cinderclient>=1.0.7 python-neutronclient>=2.3.5,<3 requests>=1.1 six>=1.7.0
3
0.333333
2
1
697833caade1323ddb9a0b4e51031f1d494262cd
201705/migonzalvar/biggest_set.py
201705/migonzalvar/biggest_set.py
from contextlib import contextmanager import time from main import has_subset_sum_zero class Duration: def __init__(self, elapsed=None): self.elapsed = elapsed @contextmanager def less_than(secs): duration = Duration() tic = time.time() yield duration elapsed = time.time() - tic pri...
from contextlib import contextmanager import time from main import has_subset_sum_zero class Duration: def __init__(self, elapsed=None): self.elapsed = elapsed @contextmanager def less_than(secs): duration = Duration() tic = time.time() yield duration elapsed = time.time() - tic dur...
Use several strategies for performance
Use several strategies for performance
Python
bsd-3-clause
VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,VigoTech/reto,vigojug/reto,vigojug/reto,vigojug/reto,vigojug/reto,VigoTech/reto,vigojug/reto,vigojug/reto,vigojug/reto,vigojug/reto,VigoTech/reto,VigoTech/reto,vigojug/reto,vigojug/reto
python
## Code Before: from contextlib import contextmanager import time from main import has_subset_sum_zero class Duration: def __init__(self, elapsed=None): self.elapsed = elapsed @contextmanager def less_than(secs): duration = Duration() tic = time.time() yield duration elapsed = time.time...
from contextlib import contextmanager import time from main import has_subset_sum_zero class Duration: def __init__(self, elapsed=None): self.elapsed = elapsed @contextmanager def less_than(secs): duration = Duration() tic = time.time() yield duration e...
43
1.194444
32
11
99cf9e85f8c9ad18e06bd2d9e8c11c2e25487ee0
src/collection.js
src/collection.js
import {Subject} from 'rx'; import isolate from '@cycle/isolate'; let _id = 0; function id() { return _id++; }; function registerHandlers(item, handlers, action$) { for (let sink in item) { if (sink in handlers) { const handler = handlers[sink]; item[sink].subscribe(event => action$.onNext( ...
import {Subject, Observable} from 'rx'; import isolate from '@cycle/isolate'; let _id = 0; function id() { return _id++; }; function handlerStreams (item, handlers) { const sinkStreams = Object.keys(item).map(sink => { if (handlers[sink] === undefined) { return null; } const handler = handlers...
Refactor registerHandlers to return an observable of handlers
Refactor registerHandlers to return an observable of handlers
JavaScript
mit
Widdershin/cycle-collections,cyclejs/collection,Widdershin/cycle-collections,Hypnosphi/collection,Widdershin/cycle-collections,cyclejs/collection,Hypnosphi/collection,Hypnosphi/collection,cyclejs/collection
javascript
## Code Before: import {Subject} from 'rx'; import isolate from '@cycle/isolate'; let _id = 0; function id() { return _id++; }; function registerHandlers(item, handlers, action$) { for (let sink in item) { if (sink in handlers) { const handler = handlers[sink]; item[sink].subscribe(event => acti...
- import {Subject} from 'rx'; + import {Subject, Observable} from 'rx'; ? ++++++++++++ import isolate from '@cycle/isolate'; let _id = 0; function id() { return _id++; }; - function registerHandlers(item, handlers, action$) { - for (let sink in item) { - if (sink in handlers) ...
25
0.390625
14
11
228de62565d9d1819a5054190f25e8e40cda2285
Help-Using-CentOS.txt
Help-Using-CentOS.txt
If you are using CentOS here is what I recommend: 1. Mount a CentOS ISO. 2. Copy the contents of Packages/* to a location you put in CONFIG_REPOS. 3. Repeat steps 1 & 2 for each ISO image (eg 2 for the DVD images). 4. Change into the directory you copied the packages to. 5. Run "createrepo -d ." 6. You are ready to r...
If you are using CentOS here is what I recommend: 1. Mount a CentOS ISO. 2. Copy the contents of Packages/* to a location you put in CONFIG_REPOS. 3. Repeat steps 1 & 2 for each ISO image (eg 2 for the DVD images). 4. Change into the directory you copied the packages to. 5. Run "createrepo -d ." 6. You are ready to r...
Add info regarding CentOS archives and vault link
Add info regarding CentOS archives and vault link
Text
apache-2.0
quark-pat/CLIP,quark-pat/CLIP,tomhurd/clip,ykhodorkovskiy/clip,tomhurd/clip,rprevette/clip,tomhurd/clip,ykhodorkovskiy/clip,quark-pat/CLIP,quark-pat/CLIP,tomhurd/clip,quark-pat/CLIP,tomhurd/clip,rprevette/clip,rprevette/clip,quark-pat/CLIP,ykhodorkovskiy/clip,tomhurd/clip,ykhodorkovskiy/clip,rprevette/clip,quark-pat/CL...
text
## Code Before: If you are using CentOS here is what I recommend: 1. Mount a CentOS ISO. 2. Copy the contents of Packages/* to a location you put in CONFIG_REPOS. 3. Repeat steps 1 & 2 for each ISO image (eg 2 for the DVD images). 4. Change into the directory you copied the packages to. 5. Run "createrepo -d ." 6. Yo...
If you are using CentOS here is what I recommend: 1. Mount a CentOS ISO. 2. Copy the contents of Packages/* to a location you put in CONFIG_REPOS. 3. Repeat steps 1 & 2 for each ISO image (eg 2 for the DVD images). 4. Change into the directory you copied the packages to. 5. Run "createrepo -d ." 6. Yo...
5
0.625
5
0
a2efa2455807b0ac5e1548a863f774b301c0b566
setup-files/setup-conf.el
setup-files/setup-conf.el
;; Time-stamp: <2015-06-30 16:51:07 kmodi> ;; Conf Mode (use-package conf-mode :mode (("\\.conf\\'" . conf-space-mode) ("\\.setup.*\\'" . conf-space-mode))) (provide 'setup-conf)
;; Time-stamp: <2017-08-15 12:05:32 kmodi> ;; Conf Mode (use-package conf-mode :mode (("\\.conf\\'" . conf-space-mode) ("\\.setup.*\\'" . conf-space-mode)) :config (progn (defun modi/conf-quote-normal () "Enable `conf-quote-normal' for *.setup files." (when-let* ((fname (buffer-file-nam...
Set syntax of ' and " to punctuation for some conf-space-mode files
Set syntax of ' and " to punctuation for some conf-space-mode files
Emacs Lisp
mit
kaushalmodi/.emacs.d,kaushalmodi/.emacs.d
emacs-lisp
## Code Before: ;; Time-stamp: <2015-06-30 16:51:07 kmodi> ;; Conf Mode (use-package conf-mode :mode (("\\.conf\\'" . conf-space-mode) ("\\.setup.*\\'" . conf-space-mode))) (provide 'setup-conf) ## Instruction: Set syntax of ' and " to punctuation for some conf-space-mode files ## Code After: ;; Tim...
- ;; Time-stamp: <2015-06-30 16:51:07 kmodi> ? ^ ^ ^^ ^^^^ ^ + ;; Time-stamp: <2017-08-15 12:05:32 kmodi> ? ^ ^ ^^ ^ ^^^^ ;; Conf Mode (use-package conf-mode - :mode (("\\.conf\\'" . conf-space-mode) ? --- + :mode (("\\.conf\\'" . co...
15
1.5
12
3
90228ea0f1b868da6cfbb5aad78062bfaf4da588
src/Our.Umbraco.Nexu.Web/App_Plugins/Nexu/views/content-delete.html
src/Our.Umbraco.Nexu.Web/App_Plugins/Nexu/views/content-delete.html
<div class="umb-dialog umb-pane" ng-controller="Our.Umbraco.Nexu.ContentDeleteController"> <umb-load-indicator ng-if="isLoading"> </umb-load-indicator> <div class="umb-dialog-body" auto-scale="90" ng-hide="isLoading"> <div ng-if="!isLoading && links.length > 0"> <nexu-relation-...
<div class="umb-dialog umb-pane" ng-controller="Our.Umbraco.Nexu.ContentDeleteController"> <umb-load-indicator ng-if="isLoading"> </umb-load-indicator> <div class="umb-dialog-body" auto-scale="90" ng-hide="isLoading"> <div ng-if="!isLoading && links.length > 0"> <nexu-relation-list re...
Set correct output for delete view of content
Set correct output for delete view of content
HTML
mit
dawoe/umbraco-nexu,dawoe/umbraco-nexu,dawoe/umbraco-nexu
html
## Code Before: <div class="umb-dialog umb-pane" ng-controller="Our.Umbraco.Nexu.ContentDeleteController"> <umb-load-indicator ng-if="isLoading"> </umb-load-indicator> <div class="umb-dialog-body" auto-scale="90" ng-hide="isLoading"> <div ng-if="!isLoading && links.length > 0"> ...
<div class="umb-dialog umb-pane" ng-controller="Our.Umbraco.Nexu.ContentDeleteController"> <umb-load-indicator ng-if="isLoading"> </umb-load-indicator> <div class="umb-dialog-body" auto-scale="90" ng-hide="isLoading"> - + <div ng-if="!isLoading && links.length > 0"> - ...
14
0.608696
8
6
6b733ad7e2e3ba8909d164b826dc3205bfd3b6e4
spec/controllers/api/v0/product_images_controller_spec.rb
spec/controllers/api/v0/product_images_controller_spec.rb
require 'spec_helper' module Api describe V0::ProductImagesController, type: :controller do include AuthenticationHelper include FileHelper render_views describe "uploading an image" do before do allow(controller).to receive(:spree_current_user) { current_api_user } end l...
require 'spec_helper' describe Api::V0::ProductImagesController, type: :controller do include AuthenticationHelper include FileHelper render_views describe "uploading an image" do let(:image) { Rack::Test::UploadedFile.new(black_logo_file, 'image/png') } let(:product_without_image) { create(:product)...
Increase readability of image controller spec
Increase readability of image controller spec Best viewed without whitespace changes. - Decrease indent. - Move `let` to top like in other specs. - Avoid `let!` to speed up the specs.
Ruby
agpl-3.0
mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork
ruby
## Code Before: require 'spec_helper' module Api describe V0::ProductImagesController, type: :controller do include AuthenticationHelper include FileHelper render_views describe "uploading an image" do before do allow(controller).to receive(:spree_current_user) { current_api_user } ...
require 'spec_helper' - module Api - describe V0::ProductImagesController, type: :controller do ? -- + describe Api::V0::ProductImagesController, type: :controller do ? +++++ - include AuthenticationHelper ? -- + include AuthenticationHelper - include FileHelper ? -- + include FileHel...
50
1.351351
25
25
761490d6e7242764c08a36aee132a54433b939ca
latestVersion.sbt
latestVersion.sbt
latestVersion in ThisBuild := "0.11.0" latestBinaryCompatibleVersion in ThisBuild := None unreleasedModuleNames in ThisBuild := Set()
latestVersion in ThisBuild := "0.12.0" latestBinaryCompatibleVersion in ThisBuild := Some("0.12.0") unreleasedModuleNames in ThisBuild := Set()
Set latest version to 0.12.0
Set latest version to 0.12.0
Scala
mit
vlovgr/ciris
scala
## Code Before: latestVersion in ThisBuild := "0.11.0" latestBinaryCompatibleVersion in ThisBuild := None unreleasedModuleNames in ThisBuild := Set() ## Instruction: Set latest version to 0.12.0 ## Code After: latestVersion in ThisBuild := "0.12.0" latestBinaryCompatibleVersion in ThisBuild := Some("0.12.0") unreleas...
- latestVersion in ThisBuild := "0.11.0" ? ^ + latestVersion in ThisBuild := "0.12.0" ? ^ - latestBinaryCompatibleVersion in ThisBuild := None ? ^ ^ + latestBinaryCompatibleVersion in ThisBuild := Some("...
4
1.333333
2
2
f95741da1039becc0e145a3046adf654bd23630b
document.tex
document.tex
\documentclass[12pt]{report} \usepackage{mystyle} \usepackage{subfiles} \begin{document} \subfile{./tex/front-matter} \subfile{./tex/introduction} \subfile{./tex/engineering} \subfile{./tex/background} \subfile{./tex/prototypes} \subfile{./tex/case-study-fourth-year-system} \subfile{./tex/case-study-research-ide} \s...
\documentclass[12pt]{report} \usepackage{mystyle} \usepackage{subfiles} \begin{document} \subfile{./tex/front-matter} \subfile{./tex/introduction} \subfile{./tex/engineering} \subfile{./tex/background} \subfile{./tex/prototypes} \subfile{./tex/case-study-fourth-year-system} \subfile{./tex/platform} \subfile{./tex/ca...
Move platform before research IDE
Move platform before research IDE
TeX
mit
WorkflowsOnRails/project-report
tex
## Code Before: \documentclass[12pt]{report} \usepackage{mystyle} \usepackage{subfiles} \begin{document} \subfile{./tex/front-matter} \subfile{./tex/introduction} \subfile{./tex/engineering} \subfile{./tex/background} \subfile{./tex/prototypes} \subfile{./tex/case-study-fourth-year-system} \subfile{./tex/case-study-...
\documentclass[12pt]{report} \usepackage{mystyle} \usepackage{subfiles} \begin{document} \subfile{./tex/front-matter} \subfile{./tex/introduction} \subfile{./tex/engineering} \subfile{./tex/background} \subfile{./tex/prototypes} \subfile{./tex/case-study-fourth-year-system} + \subfile{./tex...
2
0.064516
1
1
34aa4a19ac1fc7ff52ea0d9ac13df944f1e9754d
src/tn/plonebehavior/template/html_page_html.py
src/tn/plonebehavior/template/html_page_html.py
try: from tn.plonehtmlpage import html_page HAS_HTML_PAGE = True except ImportError: HAS_HTML_PAGE = False if HAS_HTML_PAGE: from five import grok from tn.plonebehavior.template import interfaces from tn.plonebehavior.template.html import ContextlessHTML class HTMLPageHTML(grok.Adapter): ...
try: from tn.plonehtmlpage import html_page HAS_HTML_PAGE = True except ImportError: HAS_HTML_PAGE = False if HAS_HTML_PAGE: from five import grok from tn.plonebehavior.template import _ from tn.plonebehavior.template import ITemplateConfiguration from tn.plonebehavior.template import inter...
Add a validation to ensure that CSS selector actually works
Add a validation to ensure that CSS selector actually works
Python
bsd-3-clause
tecnologiaenegocios/tn.plonebehavior.template,tecnologiaenegocios/tn.plonebehavior.template
python
## Code Before: try: from tn.plonehtmlpage import html_page HAS_HTML_PAGE = True except ImportError: HAS_HTML_PAGE = False if HAS_HTML_PAGE: from five import grok from tn.plonebehavior.template import interfaces from tn.plonebehavior.template.html import ContextlessHTML class HTMLPageHTML(...
try: from tn.plonehtmlpage import html_page HAS_HTML_PAGE = True except ImportError: HAS_HTML_PAGE = False if HAS_HTML_PAGE: from five import grok + from tn.plonebehavior.template import _ + from tn.plonebehavior.template import ITemplateConfiguration from tn.plonebehavior...
31
1.47619
31
0
f86b1cd775100d4e3c63210c2a199bb11713067c
scripts/config.sh
scripts/config.sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function relative() { local full_path="${SCRIPT_DIR}/../${1}" if [ -d "${full_path}" ]; then # Use readlink as a fallback to readpath for cross-platform compat. if ! command -v realpath >/dev/null 2>&1; then echo $(readlink -f "${full_p...
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function relative() { local full_path="${SCRIPT_DIR}/../${1}" if [ -d "${full_path}" ]; then # Try to use readlink as a fallback to readpath for cross-platform compat. if command -v realpath >/dev/null 2>&1; then echo $(realpath "${full...
Print a nice message when readlink/readpath support is bad.
Print a nice message when readlink/readpath support is bad.
Shell
apache-2.0
impowski/Rocket,antonpirker/Rocket,gsquire/Rocket,gsquire/Rocket,impowski/Rocket,antonpirker/Rocket,gsquire/Rocket,shssoichiro/Rocket,shssoichiro/Rocket,impowski/Rocket,antonpirker/Rocket,shssoichiro/Rocket
shell
## Code Before: SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function relative() { local full_path="${SCRIPT_DIR}/../${1}" if [ -d "${full_path}" ]; then # Use readlink as a fallback to readpath for cross-platform compat. if ! command -v realpath >/dev/null 2>&1; then echo $(readl...
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function relative() { local full_path="${SCRIPT_DIR}/../${1}" if [ -d "${full_path}" ]; then - # Use readlink as a fallback to readpath for cross-platform compat. ? ^ + # Try to use readlink as a fallback to readpath for ...
21
0.636364
13
8
f75917d34d9340e9db51ecaaf5f29289d96754e7
resources/views/partials/forms/edit/purchase_date.blade.php
resources/views/partials/forms/edit/purchase_date.blade.php
<!-- Purchase Date --> <div class="form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}"> <label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }}</label> <div class="input-group col-md-4"> <div class="input-group date" data-provide="datepicker" data-dat...
<!-- Purchase Date --> <div class="form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}"> <label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }}</label> <div class="input-group col-md-4"> <div class="input-group date" data-provide="datepicker" data-dat...
Add a link used to clear the purchase date input
Add a link used to clear the purchase date input
PHP
agpl-3.0
snipe/snipe-it,snipe/snipe-it,snipe/snipe-it,snipe/snipe-it
php
## Code Before: <!-- Purchase Date --> <div class="form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}"> <label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }}</label> <div class="input-group col-md-4"> <div class="input-group date" data-provide="date...
<!-- Purchase Date --> <div class="form-group {{ $errors->has('purchase_date') ? ' has-error' : '' }}"> <label for="purchase_date" class="col-md-3 control-label">{{ trans('general.purchase_date') }}</label> <div class="input-group col-md-4"> <div class="input-group date" data-provide="datepicker...
1
0.083333
1
0
6c2f926ce61fb3cec849f6f48f6c6518cc9bf0d4
app/mailers/contact_mailer.rb
app/mailers/contact_mailer.rb
class ContactMailer < ApplicationMailer def contact_email(message) @message = message @from = @message.email mail(from: message.email, reply_to: message.email, subject: message.subject) end def admin_email(message, emails) @message = message @emails = emails # mail(subject: message.s...
class ContactMailer < ApplicationMailer def contact_email(message) @message = message @from = @message.email mail(from: message.email, reply_to: message.email, subject: message.subject) end def admin_email(message, emails) @message = message @emails = emails # mail(subject: message.s...
Fix to be `to` instead of `bcc`
Fix to be `to` instead of `bcc`
Ruby
mit
Acerak2/registration,Acerak2/registration,Acerak2/registration,10000-Lakes-Gaming/registration,Acerak2/registration,10000-Lakes-Gaming/registration,10000-Lakes-Gaming/registration,10000-Lakes-Gaming/registration
ruby
## Code Before: class ContactMailer < ApplicationMailer def contact_email(message) @message = message @from = @message.email mail(from: message.email, reply_to: message.email, subject: message.subject) end def admin_email(message, emails) @message = message @emails = emails # mail(su...
class ContactMailer < ApplicationMailer def contact_email(message) @message = message @from = @message.email mail(from: message.email, reply_to: message.email, subject: message.subject) end def admin_email(message, emails) @message = message @emails = emails #...
5
0.131579
2
3
fc1ed272bdbc8f6c8a5ed7f266968768f76458d5
requirements.txt
requirements.txt
backpack==0.1 blinker==1.4 certifi==2017.4.17 chardet==3.0.4 cleo==0.6.0 click==6.7 Faker==0.7.17 Flask==0.12.2 flask-orator==0.2.0 idna==2.5 inflection==0.3.1 itsdangerous==0.24 Jinja2==2.9.6 lazy-object-proxy==1.3.1 MarkupSafe==1.0 mock==2.0.0 orator==0.9.7 pastel==0.1.0 pbr==3.0.1 pendulum==1.2.1 psutil==5.2.2 pyaml...
backpack==0.1 blinker==1.4 certifi==2017.4.17 chardet==3.0.4 cleo==0.6.0 click==6.7 Faker==0.7.17 Flask==0.12.2 flask-orator==0.2.0 idna==2.5 inflection==0.3.1 itsdangerous==0.24 Jinja2==2.9.6 lazy-object-proxy==1.3.1 MarkupSafe==1.0 mock==2.0.0 mysqlclient==1.3.10 orator==0.9.7 pastel==0.1.0 pbr==3.0.1 pendulum==1.2.1...
Use mysqlclient library instead of buggy pymysql
Use mysqlclient library instead of buggy pymysql
Text
mit
erjanmx/salam-bot
text
## Code Before: backpack==0.1 blinker==1.4 certifi==2017.4.17 chardet==3.0.4 cleo==0.6.0 click==6.7 Faker==0.7.17 Flask==0.12.2 flask-orator==0.2.0 idna==2.5 inflection==0.3.1 itsdangerous==0.24 Jinja2==2.9.6 lazy-object-proxy==1.3.1 MarkupSafe==1.0 mock==2.0.0 orator==0.9.7 pastel==0.1.0 pbr==3.0.1 pendulum==1.2.1 psu...
backpack==0.1 blinker==1.4 certifi==2017.4.17 chardet==3.0.4 cleo==0.6.0 click==6.7 Faker==0.7.17 Flask==0.12.2 flask-orator==0.2.0 idna==2.5 inflection==0.3.1 itsdangerous==0.24 Jinja2==2.9.6 lazy-object-proxy==1.3.1 MarkupSafe==1.0 mock==2.0.0 + mysqlclient==1.3.10 orator==0.9.7 pa...
2
0.054054
1
1
b58708c7b03b0f29e8aed914fb833d447f98bc26
lib/backup/storage/object.rb
lib/backup/storage/object.rb
module Backup module Storage class Object ## # Holds the type attribute attr_accessor :storage_file ## # Instantiates a new Backup::Storage::Object and stores the # full path to the storage file (yaml) in the @storage_file attribute def initialize(type) @storag...
module Backup module Storage class Object ## # Holds the type attribute attr_accessor :storage_file ## # Instantiates a new Backup::Storage::Object and stores the # full path to the storage file (yaml) in the @storage_file attribute def initialize(type) @storag...
Check if config file is empty before attempting to read it.
Check if config file is empty before attempting to read it.
Ruby
mit
martincik/backup,zires/backup,sferik/backup,ccoenen/backup,tian-xiaobo/backup,zires/backup,pat/backup,tian-xiaobo/backup,interu/backup,scalp42/backup,martincik/backup,hiphapis/backup,pawelduda/backup,backup/backup,bukalapak/backup,scalp42/backup,rics3n/backup,McStork/backup,tian-xiaobo/backup,otzy007/backup,bernd/backu...
ruby
## Code Before: module Backup module Storage class Object ## # Holds the type attribute attr_accessor :storage_file ## # Instantiates a new Backup::Storage::Object and stores the # full path to the storage file (yaml) in the @storage_file attribute def initialize(type)...
module Backup module Storage class Object ## # Holds the type attribute attr_accessor :storage_file ## # Instantiates a new Backup::Storage::Object and stores the # full path to the storage file (yaml) in the @storage_file attribute def initia...
2
0.045455
1
1
4228f1cb025424d2285a7b7c87676e95c6686627
README.md
README.md
an implementation for gittest api Our Official site is http://GitTest.com, currently it is only a demo site! This is open souce project, I want to do a service like GitHub.Com, but it is for testing management. It should include test plan, test case, test step, test result, test case result, etc, and might provider ...
an implementation for gittest api Our Official site is http://GitTest.com, currently it is only a demo site! This is open souce project, I want to do a service like GitHub.Com, but it is for testing management. It should include test plan, test case, test step, test result, test case result, etc, and might provider ...
Add Architecture Desgin in readme
Add Architecture Desgin in readme
Markdown
mit
gittestapi/gittest,gittestapi/gittest
markdown
## Code Before: an implementation for gittest api Our Official site is http://GitTest.com, currently it is only a demo site! This is open souce project, I want to do a service like GitHub.Com, but it is for testing management. It should include test plan, test case, test step, test result, test case result, etc, and...
an implementation for gittest api Our Official site is http://GitTest.com, currently it is only a demo site! This is open souce project, I want to do a service like GitHub.Com, but it is for testing management. It should include test plan, test case, test step, test result, test case result, etc, and m...
2
0.1
2
0
08bc1bd87a19def169155364df7be6afbb946f50
app/views/thredded/shared/nav/_private_topics.html.erb
app/views/thredded/shared/nav/_private_topics.html.erb
<li class="thredded--user-navigation--item thredded--user-navigation--private-topics"> <%= link_to private_topics_path do %> <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon' %> <%= t('thredded.nav.private_topics') %> <% if unread_private_topics_count > 0 -%> <span class="t...
<li class="thredded--user-navigation--item thredded--user-navigation--private-topics"> <%= link_to private_topics_path, rel: 'nofollow' do %> <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon' %> <%= t('thredded.nav.private_topics') %> <% if unread_private_topics_count > 0 -%> ...
Add `rel="nofollow"` to private topics link
[JRO] Add `rel="nofollow"` to private topics link We don't want search engines trying to follow this link. Closes issue #257
HTML+ERB
mit
thredded/thredded,jvoss/thredded,jayroh/thredded,jayroh/thredded,thredded/thredded,thredded/thredded,jvoss/thredded,jvoss/thredded,jvoss/thredded,thredded/thredded,jayroh/thredded,jayroh/thredded
html+erb
## Code Before: <li class="thredded--user-navigation--item thredded--user-navigation--private-topics"> <%= link_to private_topics_path do %> <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon' %> <%= t('thredded.nav.private_topics') %> <% if unread_private_topics_count > 0 -%> ...
<li class="thredded--user-navigation--item thredded--user-navigation--private-topics"> - <%= link_to private_topics_path do %> + <%= link_to private_topics_path, rel: 'nofollow' do %> ? +++++++++++++++++ <%= inline_svg 'thredded/private-messages.svg', class: 'thredded--icon...
2
0.181818
1
1
02353c2a5e5286942807167a5232c224f54a34e6
distribution/template/bin/startClient.sh
distribution/template/bin/startClient.sh
JAVA_PATH="" #JAVA_PATH="/usr/sbin/jre1.8.0_77/bin/" execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" DJIGGER_HOME="${DJIGGER_HOME:-$(dirname ${execdir})}" DJIGGER_CONFDIR="${DJIGGER_CONFDIR:-${DJIGGER_HOME}/conf}" DJIGGER_LIBDIR="${DJIGGER_LIBDIR:-${DJIGGER_HOME}/lib}" START_OPTS=() START_OPTS+=("-Dlogback.con...
execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" # If you don't have `java` in your $PATH or you want to use a different JDK, either export # JAVA_HOME in your profile or adjust and uncomment the definition below # #DJIGGER_JAVA_HOME="/usr/lib/jdk1.8.0_77" DJIGGER_HOME="${DJIGGER_HOME:-$(dirname ${execdir})}" DJI...
Fix startup with defined JAVA_HOME, allow JDK override
Fix startup with defined JAVA_HOME, allow JDK override
Shell
agpl-3.0
denkbar/djigger,denkbar/djigger,denkbar/djigger
shell
## Code Before: JAVA_PATH="" #JAVA_PATH="/usr/sbin/jre1.8.0_77/bin/" execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" DJIGGER_HOME="${DJIGGER_HOME:-$(dirname ${execdir})}" DJIGGER_CONFDIR="${DJIGGER_CONFDIR:-${DJIGGER_HOME}/conf}" DJIGGER_LIBDIR="${DJIGGER_LIBDIR:-${DJIGGER_HOME}/lib}" START_OPTS=() START_OPTS+...
+ execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" - JAVA_PATH="" - #JAVA_PATH="/usr/sbin/jre1.8.0_77/bin/" - - execdir="$(readlink -f `dirname ${BASH_SOURCE[0]}`)" + # If you don't have `java` in your $PATH or you want to use a different JDK, either export + # JAVA_HOME in your profile or adjust and uncomment ...
26
1.529412
18
8
29be0ccaa9deb0ced229d2e49b238702769cddb4
spec/support/helper_methods.rb
spec/support/helper_methods.rb
module RSpecHelpers def relative_path(path) RSpec::Core::Metadata.relative_path(path) end def ignoring_warnings original = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original result end def with_safe_set_to_level_that_triggers_security_errors Thread.new do ignoring_w...
module RSpecHelpers SAFE_LEVEL_THAT_TRIGGERS_SECURITY_ERRORS = RUBY_VERSION >= '2.3' ? 1 : 3 def relative_path(path) RSpec::Core::Metadata.relative_path(path) end def ignoring_warnings original = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original result end def with_safe_s...
Fix failing specs caused by $SAFE incompatibility on MRI 2.3
Fix failing specs caused by $SAFE incompatibility on MRI 2.3 ArgumentError: $SAFE=2 to 4 are obsolete
Ruby
mit
xmik/rspec-core,rspec/rspec-core,rspec/rspec-core,azbshiri/rspec-core,rspec/rspec-core,xmik/rspec-core,xmik/rspec-core,azbshiri/rspec-core,azbshiri/rspec-core
ruby
## Code Before: module RSpecHelpers def relative_path(path) RSpec::Core::Metadata.relative_path(path) end def ignoring_warnings original = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original result end def with_safe_set_to_level_that_triggers_security_errors Thread.new do ...
module RSpecHelpers + SAFE_LEVEL_THAT_TRIGGERS_SECURITY_ERRORS = RUBY_VERSION >= '2.3' ? 1 : 3 + def relative_path(path) RSpec::Core::Metadata.relative_path(path) end def ignoring_warnings original = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original resul...
4
0.153846
3
1
a707369a96aa892764775146c0ca081c9b95c712
routes/front.js
routes/front.js
var express = require('express'); var router = express.Router(); router.get('/token', function (req, res) { res.redirect('/'); }); router.get('/*', function (req, res, next) { res.render('user/dashboard', { layout: 'user', title: 'Busy' }); }); module.exports = router;
var express = require('express'); var router = express.Router(); router.get('/*', function (req, res, next) { res.render('user/dashboard', { layout: 'user', title: 'Busy' }); }); module.exports = router;
Remove token endPoint; need to redeploy.
Remove token endPoint; need to redeploy.
JavaScript
mit
Sekhmet/busy,busyorg/busy,ryanbaer/busy,Sekhmet/busy,busyorg/busy,ryanbaer/busy
javascript
## Code Before: var express = require('express'); var router = express.Router(); router.get('/token', function (req, res) { res.redirect('/'); }); router.get('/*', function (req, res, next) { res.render('user/dashboard', { layout: 'user', title: 'Busy' }); }); module.exports = router; ## Instruction: Remove tok...
var express = require('express'); var router = express.Router(); - - router.get('/token', function (req, res) { - res.redirect('/'); - }); router.get('/*', function (req, res, next) { res.render('user/dashboard', { layout: 'user', title: 'Busy' }); }); module.exports = router;
4
0.333333
0
4
b13582733af9903711307a79822d396bb912b7ba
.travis.yml
.travis.yml
sudo: required os: osx cache: ccache: true pip: true directories: - $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/pip - /usr/local/Cellar - /usr/local/Caskroom - /usr/local/opt - /Applications/ env: - TRAVIS=1 branches: only: - osx before_install: - brew update instal...
sudo: required os: osx cache: ccache: true pip: true directories: - $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/pip - /usr/local/Cellar - /usr/local/Caskroom - /usr/local/opt env: - TRAVIS=1 branches: only: - osx before_install: - brew update install: - brew install a...
Remove OSX's /Application directory from Travi's cache system
Test: Remove OSX's /Application directory from Travi's cache system
YAML
mit
benmezger/dotfiles,benmezger/dotfiles,benmezger/dotfiles,benmezger/dotfiles
yaml
## Code Before: sudo: required os: osx cache: ccache: true pip: true directories: - $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/pip - /usr/local/Cellar - /usr/local/Caskroom - /usr/local/opt - /Applications/ env: - TRAVIS=1 branches: only: - osx before_install: - bre...
sudo: required os: osx cache: ccache: true pip: true directories: - $HOME/Library/Caches/Homebrew - $HOME/Library/Caches/pip - /usr/local/Cellar - /usr/local/Caskroom - /usr/local/opt - - /Applications/ env: - TRAVIS=1 branches: only: - osx ...
1
0.029412
0
1
e1e4dd5954bcffe9733099903a02a57c19db4530
CHANGELOG.md
CHANGELOG.md
* Re-put services as public (see #177) ## v1.5 * Add `process_timeout` option (see #110) * Add `.gitattributes` (see #159) * Add specialized response classes (see #172) * Drop support for php v5.3, 5.4, 5.5 and symfony below v2.7 (see #160) * Upgrade Snappy to its first stable release (see #175) * Deprecate Loggable...
A BC break has been introduced in v1.5.0: the LoggableGenerator has been moved in a new namespace. This is now fixed. * Fix BC break due to moved LoggableGenerator (#185) * Adding support for Symfony 4 (#190) Credits go to: @jzawadzki and @NiR-. Also, thank you @NAYZO, @carusogabriel and @antondachauer for your twea...
Add a note about v1.5.2 in the changelog
Add a note about v1.5.2 in the changelog
Markdown
mit
KnpLabs/KnpSnappyBundle
markdown
## Code Before: * Re-put services as public (see #177) ## v1.5 * Add `process_timeout` option (see #110) * Add `.gitattributes` (see #159) * Add specialized response classes (see #172) * Drop support for php v5.3, 5.4, 5.5 and symfony below v2.7 (see #160) * Upgrade Snappy to its first stable release (see #175) * De...
+ + A BC break has been introduced in v1.5.0: the LoggableGenerator has been moved in a new namespace. This is now fixed. + + * Fix BC break due to moved LoggableGenerator (#185) + * Adding support for Symfony 4 (#190) + + Credits go to: @jzawadzki and @NiR-. Also, thank you @NAYZO, @carusogabriel and @antondachauer...
9
0.692308
9
0
d50ee615d43ce357fa4896d64890b2f9ec14cc74
app/views/labels/_form.haml
app/views/labels/_form.haml
%p %label{:for => 'caption'} Caption: =text_field :label, :caption %p %label{:for => 'numeric'} Value: =text_field :label, :value
%p %label{:for => 'caption'} Caption: =text_field :label, :caption
Remove the number field for labels. Its not used.
Remove the number field for labels. Its not used.
Haml
mit
RAllner/fassets_core,RAllner/fassets_core,fassets/fassets_resources,fassets/fassets_resources
haml
## Code Before: %p %label{:for => 'caption'} Caption: =text_field :label, :caption %p %label{:for => 'numeric'} Value: =text_field :label, :value ## Instruction: Remove the number field for labels. Its not used. ## Code After: %p %label{:for => 'caption'} Caption: =text_field :label, :caption
%p %label{:for => 'caption'} Caption: =text_field :label, :caption - %p - %label{:for => 'numeric'} Value: - =text_field :label, :value
3
0.5
0
3
266027514c740c30c0efae5fcd1e2932f1be9933
perfrunner/tests/ycsb2.py
perfrunner/tests/ycsb2.py
from perfrunner.helpers.cbmonitor import with_stats from perfrunner.helpers.local import clone_ycsb from perfrunner.helpers.worker import ycsb_data_load_task, ycsb_task from perfrunner.tests import PerfTest from perfrunner.tests.n1ql import N1QLTest class YCSBTest(PerfTest): def download_ycsb(self): clon...
from perfrunner.helpers.cbmonitor import with_stats from perfrunner.helpers.local import clone_ycsb from perfrunner.helpers.worker import ycsb_data_load_task, ycsb_task from perfrunner.tests import PerfTest from perfrunner.tests.n1ql import N1QLTest class YCSBTest(PerfTest): def download_ycsb(self): clon...
Check the number of items a little bit later
Check the number of items a little bit later Due to MB-22749 Change-Id: Icffe46201223efa5645644ca40b99dffe4f0fb31 Reviewed-on: http://review.couchbase.org/76413 Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com> Reviewed-by: Pavel Paulau <dd88eded64e90046a680e3a6c0828ceb8fe8a0e7@gmail.com>
Python
apache-2.0
couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,pavel-paulau/perfrunner,couchbase/perfrunner,couchbase/perfrunner
python
## Code Before: from perfrunner.helpers.cbmonitor import with_stats from perfrunner.helpers.local import clone_ycsb from perfrunner.helpers.worker import ycsb_data_load_task, ycsb_task from perfrunner.tests import PerfTest from perfrunner.tests.n1ql import N1QLTest class YCSBTest(PerfTest): def download_ycsb(sel...
from perfrunner.helpers.cbmonitor import with_stats from perfrunner.helpers.local import clone_ycsb from perfrunner.helpers.worker import ycsb_data_load_task, ycsb_task from perfrunner.tests import PerfTest from perfrunner.tests.n1ql import N1QLTest class YCSBTest(PerfTest): def download_ycsb...
3
0.06
2
1
5cd8261adec0f6b5de939ecf826ee8638a5a93e4
src/output.c
src/output.c
/* Initially we put data to stdout. */ int cur_out = 1; /* Put data to current output. */ void putd(const char *data, unsigned long len) { (void)write(cur_out,data,len); } void put(const char *data) { putd(data, strlen(data)); } void put_ch(char ch) { char buf[1]; buf[0] = ch; putd(buf,1); } void put_lo...
/* Initially we put data to stdout. */ int cur_out = 1; /* Put data to current output. */ void putd(const char *data, unsigned long len) { ssize_t n = write(cur_out,data,len); (void)n; } void put(const char *data) { putd(data, strlen(data)); } void put_ch(char ch) { char buf[1]; buf[0] = ch; putd(buf,1);...
Work around incompatibility of warn_unused_result on one machine.
Work around incompatibility of warn_unused_result on one machine. On one machine, the call to "write" in output.c gave this compiler error: ignoring return value of ‘write’, declared with attribute warn_unused_result To work around that, the code now grabs the return value and ignores it with (void).
C
mit
chkoreff/Fexl,chkoreff/Fexl
c
## Code Before: /* Initially we put data to stdout. */ int cur_out = 1; /* Put data to current output. */ void putd(const char *data, unsigned long len) { (void)write(cur_out,data,len); } void put(const char *data) { putd(data, strlen(data)); } void put_ch(char ch) { char buf[1]; buf[0] = ch; putd(buf,1);...
/* Initially we put data to stdout. */ int cur_out = 1; /* Put data to current output. */ void putd(const char *data, unsigned long len) { - (void)write(cur_out,data,len); ? ^^^ ^^ + ssize_t n = write(cur_out,data,len); ? ^^ ^^^^^^^^^ + (void)n; } void put(const char *data) { putd(...
3
0.057692
2
1