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
33d7d84523390bb1fc25819bc4d54de47ab671bd
app/models/placement.rb
app/models/placement.rb
class Placement < ActiveRecord::Base belongs_to :couple belongs_to :event # Returns a string representation of the rank suitable for display to the # user. Present to match the signature of {SubPlacement::rank_to_s} def rank_to_s rank.to_s end end
class Placement < ActiveRecord::Base belongs_to :couple belongs_to :event end
Remove unused `rank_to_s` from `Placement`
Remove unused `rank_to_s` from `Placement` This was from when I was still figuring out the appropriate interface for converting the rank.
Ruby
agpl-3.0
haxney/railskating,haxney/railskating
ruby
## Code Before: class Placement < ActiveRecord::Base belongs_to :couple belongs_to :event # Returns a string representation of the rank suitable for display to the # user. Present to match the signature of {SubPlacement::rank_to_s} def rank_to_s rank.to_s end end ## Instruction: Remove unused `rank_to_s` from `Placement` This was from when I was still figuring out the appropriate interface for converting the rank. ## Code After: class Placement < ActiveRecord::Base belongs_to :couple belongs_to :event end
class Placement < ActiveRecord::Base belongs_to :couple belongs_to :event - - # Returns a string representation of the rank suitable for display to the - # user. Present to match the signature of {SubPlacement::rank_to_s} - def rank_to_s - rank.to_s - end end
6
0.6
0
6
67f724830942f13f7070d5b3525510904b5f5170
vim/plugin/colorscheme.vim
vim/plugin/colorscheme.vim
" plugin/colorscheme.vim " " @file Configuration of the color scheme " Enable true colors if supported by the current environment if dw#IsSupported('truecolors') set termguicolors endif " Use Atom One Light color scheme if installed via package manager if dw#IsInstalled('vim-one') if $TERM_PROGRAM ==# 'Apple_Terminal' autocmd vimrc ColorScheme one hi Normal guibg=NONE ctermbg=NONE endif colorscheme one endif
" plugin/colorscheme.vim " " @file Configuration of the color scheme " Enable true colors if supported by the current environment if dw#IsSupported('truecolors') set termguicolors endif " Use Atom One Light color scheme if installed via package manager if dw#IsInstalled('vim-one') if $TERM_PROGRAM ==# 'Apple_Terminal' autocmd vimrc ColorScheme one \ hi Normal guibg=NONE ctermbg=NONE | \ hi SignifySignAdd guibg=#fafafa ctermbg=255 | \ hi SignifySignChange guibg=#fafafa ctermbg=255 | \ hi SignifySignDelete guibg=#fafafa ctermbg=255 endif colorscheme one endif
Improve color scheme for terminal.app
fix: Improve color scheme for terminal.app
VimL
mit
dweidner/dotfiles,dweidner/dotfiles
viml
## Code Before: " plugin/colorscheme.vim " " @file Configuration of the color scheme " Enable true colors if supported by the current environment if dw#IsSupported('truecolors') set termguicolors endif " Use Atom One Light color scheme if installed via package manager if dw#IsInstalled('vim-one') if $TERM_PROGRAM ==# 'Apple_Terminal' autocmd vimrc ColorScheme one hi Normal guibg=NONE ctermbg=NONE endif colorscheme one endif ## Instruction: fix: Improve color scheme for terminal.app ## Code After: " plugin/colorscheme.vim " " @file Configuration of the color scheme " Enable true colors if supported by the current environment if dw#IsSupported('truecolors') set termguicolors endif " Use Atom One Light color scheme if installed via package manager if dw#IsInstalled('vim-one') if $TERM_PROGRAM ==# 'Apple_Terminal' autocmd vimrc ColorScheme one \ hi Normal guibg=NONE ctermbg=NONE | \ hi SignifySignAdd guibg=#fafafa ctermbg=255 | \ hi SignifySignChange guibg=#fafafa ctermbg=255 | \ hi SignifySignDelete guibg=#fafafa ctermbg=255 endif colorscheme one endif
" plugin/colorscheme.vim " " @file Configuration of the color scheme " Enable true colors if supported by the current environment if dw#IsSupported('truecolors') set termguicolors endif " Use Atom One Light color scheme if installed via package manager if dw#IsInstalled('vim-one') if $TERM_PROGRAM ==# 'Apple_Terminal' - autocmd vimrc ColorScheme one hi Normal guibg=NONE ctermbg=NONE + autocmd vimrc ColorScheme one + \ hi Normal guibg=NONE ctermbg=NONE | + \ hi SignifySignAdd guibg=#fafafa ctermbg=255 | + \ hi SignifySignChange guibg=#fafafa ctermbg=255 | + \ hi SignifySignDelete guibg=#fafafa ctermbg=255 endif colorscheme one endif
6
0.333333
5
1
82ad313a6d0ed899a13649e6f24280eac4b58fd3
README.md
README.md
To run it first follow https://developers.google.com/drive/v3/web/quickstart/nodejs
I wanted to upload thousands of files to Google Photos. Google Photos Backup application doesn't give any feedback, though, as which photos were uploaded and which weren't. This is a silly method of giving me some confidence: - for photos I check that there's a photo on Google Drive with identical time and file name - for videos I check duration and file name as Google doesn't give any more metadata This app is written on top of a very nice google drive quickstart tutorial. You have to do everything that's there to run it: https://developers.google.com/drive/v3/web/quickstart/nodejs
Add more details to readme
Add more details to readme
Markdown
mit
neojski/google-drive-hashes
markdown
## Code Before: To run it first follow https://developers.google.com/drive/v3/web/quickstart/nodejs ## Instruction: Add more details to readme ## Code After: I wanted to upload thousands of files to Google Photos. Google Photos Backup application doesn't give any feedback, though, as which photos were uploaded and which weren't. This is a silly method of giving me some confidence: - for photos I check that there's a photo on Google Drive with identical time and file name - for videos I check duration and file name as Google doesn't give any more metadata This app is written on top of a very nice google drive quickstart tutorial. You have to do everything that's there to run it: https://developers.google.com/drive/v3/web/quickstart/nodejs
- To run it first follow + I wanted to upload thousands of files to Google Photos. Google Photos Backup application doesn't give any feedback, though, as which photos were uploaded and which weren't. + + This is a silly method of giving me some confidence: + - for photos I check that there's a photo on Google Drive with identical time and file name + - for videos I check duration and file name as Google doesn't give any more metadata + + This app is written on top of a very nice google drive quickstart tutorial. You have to do everything that's there to run it: https://developers.google.com/drive/v3/web/quickstart/nodejs
8
2.666667
7
1
d46405a6ef05c19a8758545cca31139c946d7b41
src/Calotype/SEO/Contracts/MetaAware.php
src/Calotype/SEO/Contracts/MetaAware.php
<?php namespace Calotype\SEO\Contracts; interface MetaAware { public function getMetaTitle(); public function getMetaTitleSuffix(); public function getMetaDescription(); }
<?php namespace Calotype\SEO\Contracts; interface MetaAware { /** * Get the data for the meta fields. * * <code> * $data = array( * 'title' => 'About us', * 'description' => 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.' * ); * </code> * * @return array */ public function getMetaData(); }
Make meta aware contract only require one function for forward compatibility.
Make meta aware contract only require one function for forward compatibility.
PHP
mit
vinicius73/SeoTools,Calotype/SEO,ondrocks/SEO,yinxiaorunjian8/test
php
## Code Before: <?php namespace Calotype\SEO\Contracts; interface MetaAware { public function getMetaTitle(); public function getMetaTitleSuffix(); public function getMetaDescription(); } ## Instruction: Make meta aware contract only require one function for forward compatibility. ## Code After: <?php namespace Calotype\SEO\Contracts; interface MetaAware { /** * Get the data for the meta fields. * * <code> * $data = array( * 'title' => 'About us', * 'description' => 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.' * ); * </code> * * @return array */ public function getMetaData(); }
<?php namespace Calotype\SEO\Contracts; interface MetaAware { + /** + * Get the data for the meta fields. + * + * <code> + * $data = array( + * 'title' => 'About us', + * 'description' => 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.' + * ); + * </code> + * + * @return array + */ - public function getMetaTitle(); ? ^^ ^^ + public function getMetaData(); ? ^^ ^ - public function getMetaTitleSuffix(); - public function getMetaDescription(); }
16
2
13
3
cc43b2ee85ed3f55529ac12107780aec414affee
roles/openshift_examples/defaults/main.yml
roles/openshift_examples/defaults/main.yml
--- # By default install rhel and xpaas streams on enterprise installs openshift_examples_load_centos: "{{ openshift_deployment_type not in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" openshift_examples_load_rhel: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" openshift_examples_load_db_templates: true openshift_examples_load_xpaas: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" openshift_examples_load_quickstarts: true examples_base: /usr/share/openshift/examples image_streams_base: "{{ examples_base }}/image-streams" centos_image_streams: "{{ image_streams_base}}/image-streams-centos7.json" rhel_image_streams: "{{ image_streams_base}}/image-streams-rhel7.json" db_templates_base: "{{ examples_base }}/db-templates" xpaas_image_streams: "{{ examples_base }}/xpaas-streams/jboss-image-streams.json" xpaas_templates_base: "{{ examples_base }}/xpaas-templates" quickstarts_base: "{{ examples_base }}/quickstart-templates" openshift_examples_import_command: "create"
--- # By default install rhel and xpaas streams on enterprise installs openshift_examples_load_centos: "{{ openshift_deployment_type not in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" openshift_examples_load_rhel: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" openshift_examples_load_db_templates: true openshift_examples_load_xpaas: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" openshift_examples_load_quickstarts: true examples_base: /usr/share/openshift/examples image_streams_base: "{{ examples_base }}/image-streams" centos_image_streams: "{{ image_streams_base}}/image-streams-centos7.json" rhel_image_streams: "{{ image_streams_base}}/image-streams-rhel7.json" db_templates_base: "{{ examples_base }}/db-templates" xpaas_image_streams: "{{ examples_base }}/xpaas-streams/jboss-image-streams.json" xpaas_templates_base: "{{ examples_base }}/xpaas-templates" quickstarts_base: "{{ examples_base }}/quickstart-templates" openshift_examples_import_command: "create"
Add match online imagestream/template loading to enterprise
Add match online imagestream/template loading to enterprise
YAML
apache-2.0
sdodson/openshift-ansible,aveshagarwal/openshift-ansible,zhiwliu/openshift-ansible,markllama/openshift-ansible,LutzLange/openshift-ansible,thoraxe/openshift-ansible,rjhowe/openshift-ansible,mmahut/openshift-ansible,jwhonce/openshift-ansible,akubicharm/openshift-ansible,zhiwliu/openshift-ansible,maxamillion/openshift-ansible,git001/openshift-ansible,rjhowe/openshift-ansible,anpingli/openshift-ansible,ewolinetz/openshift-ansible,detiber/openshift-ansible,BlueShells/openshift-ansible,zhiwliu/openshift-ansible,twiest/openshift-ansible,mwoodson/openshift-ansible,liggitt/openshift-ansible,rharrison10/openshift-ansible,bashburn/openshift-ansible,sosiouxme/openshift-ansible,twiest/openshift-ansible,jwhonce/openshift-ansible,aveshagarwal/openshift-ansible,BlueShells/openshift-ansible,menren/openshift-ansible,liggitt/openshift-ansible,brenton/openshift-ansible,liggitt/openshift-ansible,quantiply-fork/openshift-ansible,mmahut/openshift-ansible,miminar/openshift-ansible,wbrefvem/openshift-ansible,wbrefvem/openshift-ansible,git001/openshift-ansible,kwoodson/openshift-ansible,liggitt/openshift-ansible,miminar/openshift-ansible,git001/openshift-ansible,rhdedgar/openshift-ansible,bparees/openshift-ansible,markllama/openshift-ansible,nhr/openshift-ansible,sdodson/openshift-ansible,miminar/openshift-ansible,zhiwliu/openshift-ansible,robotmaxtron/openshift-ansible,openshift/openshift-ansible,abutcher/openshift-ansible,EricMountain-1A/openshift-ansible,ttindell2/openshift-ansible,abutcher/openshift-ansible,LutzLange/openshift-ansible,rjhowe/openshift-ansible,EricMountain-1A/openshift-ansible,robotmaxtron/openshift-ansible,EricMountain-1A/openshift-ansible,bashburn/openshift-ansible,thoraxe/openshift-ansible,spinolacastro/openshift-ansible,rjhowe/openshift-ansible,abutcher/openshift-ansible,jwhonce/openshift-ansible,anpingli/openshift-ansible,tagliateller/openshift-ansible,tagliateller/openshift-ansible,BlueShells/openshift-ansible,jwhonce/openshift-ansible,akubicharm/openshift-ansible,nak3/openshift-ansible,wbrefvem/openshift-ansible,zhiwliu/openshift-ansible,akram/openshift-ansible,menren/openshift-ansible,thoraxe/openshift-ansible,akubicharm/openshift-ansible,wshearn/openshift-ansible,miminar/openshift-ansible,sosiouxme/openshift-ansible,rharrison10/openshift-ansible,bashburn/openshift-ansible,mwoodson/openshift-ansible,abutcher/openshift-ansible,ewolinetz/openshift-ansible,wbrefvem/openshift-ansible,brenton/openshift-ansible,quantiply-fork/openshift-ansible,akubicharm/openshift-ansible,ewolinetz/openshift-ansible,tagliateller/openshift-ansible,gburges/openshift-ansible,rhdedgar/openshift-ansible,nhr/openshift-ansible,ttindell2/openshift-ansible,spinolacastro/openshift-ansible,detiber/openshift-ansible,menren/openshift-ansible,markllama/openshift-ansible,sdodson/openshift-ansible,thoraxe/openshift-ansible,detiber/openshift-ansible,ewolinetz/openshift-ansible,EricMountain-1A/openshift-ansible,DG-i/openshift-ansible,abutcher/openshift-ansible,sosiouxme/openshift-ansible,EricMountain-1A/openshift-ansible,maxamillion/openshift-ansible,aveshagarwal/openshift-ansible,tagliateller/openshift-ansible,DG-i/openshift-ansible,nak3/openshift-ansible,markllama/openshift-ansible,maxamillion/openshift-ansible,detiber/openshift-ansible,mmahut/openshift-ansible,Maarc/openshift-ansible,bparees/openshift-ansible,gburges/openshift-ansible,maxamillion/openshift-ansible,ttindell2/openshift-ansible,brenton/openshift-ansible,twiest/openshift-ansible,akram/openshift-ansible,tagliateller/openshift-ansible,twiest/openshift-ansible,rjhowe/openshift-ansible,sdodson/openshift-ansible,maxamillion/openshift-ansible,nhr/openshift-ansible,DG-i/openshift-ansible,sdodson/openshift-ansible,sosiouxme/openshift-ansible,openshift/openshift-ansible,git001/openshift-ansible,sosiouxme/openshift-ansible,aveshagarwal/openshift-ansible,ewolinetz/openshift-ansible,ttindell2/openshift-ansible,mmahut/openshift-ansible,detiber/openshift-ansible,Maarc/openshift-ansible,quantiply-fork/openshift-ansible,kwoodson/openshift-ansible,twiest/openshift-ansible,wbrefvem/openshift-ansible,LutzLange/openshift-ansible,mmahut/openshift-ansible,jwhonce/openshift-ansible,markllama/openshift-ansible,DG-i/openshift-ansible,liggitt/openshift-ansible,miminar/openshift-ansible,Maarc/openshift-ansible,aveshagarwal/openshift-ansible,ttindell2/openshift-ansible,wshearn/openshift-ansible,akubicharm/openshift-ansible
yaml
## Code Before: --- # By default install rhel and xpaas streams on enterprise installs openshift_examples_load_centos: "{{ openshift_deployment_type not in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" openshift_examples_load_rhel: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" openshift_examples_load_db_templates: true openshift_examples_load_xpaas: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" openshift_examples_load_quickstarts: true examples_base: /usr/share/openshift/examples image_streams_base: "{{ examples_base }}/image-streams" centos_image_streams: "{{ image_streams_base}}/image-streams-centos7.json" rhel_image_streams: "{{ image_streams_base}}/image-streams-rhel7.json" db_templates_base: "{{ examples_base }}/db-templates" xpaas_image_streams: "{{ examples_base }}/xpaas-streams/jboss-image-streams.json" xpaas_templates_base: "{{ examples_base }}/xpaas-templates" quickstarts_base: "{{ examples_base }}/quickstart-templates" openshift_examples_import_command: "create" ## Instruction: Add match online imagestream/template loading to enterprise ## Code After: --- # By default install rhel and xpaas streams on enterprise installs openshift_examples_load_centos: "{{ openshift_deployment_type not in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" openshift_examples_load_rhel: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" openshift_examples_load_db_templates: true openshift_examples_load_xpaas: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" openshift_examples_load_quickstarts: true examples_base: /usr/share/openshift/examples image_streams_base: "{{ examples_base }}/image-streams" centos_image_streams: "{{ image_streams_base}}/image-streams-centos7.json" rhel_image_streams: "{{ image_streams_base}}/image-streams-rhel7.json" db_templates_base: "{{ examples_base }}/db-templates" xpaas_image_streams: "{{ examples_base }}/xpaas-streams/jboss-image-streams.json" xpaas_templates_base: "{{ examples_base }}/xpaas-templates" quickstarts_base: "{{ examples_base }}/quickstart-templates" openshift_examples_import_command: "create"
--- # By default install rhel and xpaas streams on enterprise installs - openshift_examples_load_centos: "{{ openshift_deployment_type not in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" + openshift_examples_load_centos: "{{ openshift_deployment_type not in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" ? +++++++++ - openshift_examples_load_rhel: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" + openshift_examples_load_rhel: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" ? +++++++++ openshift_examples_load_db_templates: true - openshift_examples_load_xpaas: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise'] }}" + openshift_examples_load_xpaas: "{{ openshift_deployment_type in ['enterprise','openshift-enterprise','atomic-enterprise','online'] }}" ? +++++++++ openshift_examples_load_quickstarts: true examples_base: /usr/share/openshift/examples image_streams_base: "{{ examples_base }}/image-streams" centos_image_streams: "{{ image_streams_base}}/image-streams-centos7.json" rhel_image_streams: "{{ image_streams_base}}/image-streams-rhel7.json" db_templates_base: "{{ examples_base }}/db-templates" xpaas_image_streams: "{{ examples_base }}/xpaas-streams/jboss-image-streams.json" xpaas_templates_base: "{{ examples_base }}/xpaas-templates" quickstarts_base: "{{ examples_base }}/quickstart-templates" openshift_examples_import_command: "create"
6
0.333333
3
3
39b1aea7e14e3ac1ae9d6fbd822ccc56b3144c66
spec/fixtures/call_tool_data.csv
spec/fixtures/call_tool_data.csv
country,target phone,target name,target title,caller id germany,+448008085429,Abe Ben,MEP for Germany,+448008085400 United Kingdom,+448000119712,Claire Do,MEP South East England, ``,+61261885481,Emily Fred,MEP for South West England, ``,+13437003482,George Harris,MEP for South West England,
country name,phone number,name,title,caller id Germany,+448008085429,Abe Ben,MEP for Germany,+448008085400 United Kingdom,+448000119712,Claire Do,MEP South East England, United Kingdom,+61261885481,Emily Fred,MEP for South West England, United Kingdom,+13437003482,George Harris,MEP for South West England,
Update Call Tool fixture (CSV file)
Update Call Tool fixture (CSV file) Note: we don't support `` for repeating column values any more.
CSV
mit
SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign
csv
## Code Before: country,target phone,target name,target title,caller id germany,+448008085429,Abe Ben,MEP for Germany,+448008085400 United Kingdom,+448000119712,Claire Do,MEP South East England, ``,+61261885481,Emily Fred,MEP for South West England, ``,+13437003482,George Harris,MEP for South West England, ## Instruction: Update Call Tool fixture (CSV file) Note: we don't support `` for repeating column values any more. ## Code After: country name,phone number,name,title,caller id Germany,+448008085429,Abe Ben,MEP for Germany,+448008085400 United Kingdom,+448000119712,Claire Do,MEP South East England, United Kingdom,+61261885481,Emily Fred,MEP for South West England, United Kingdom,+13437003482,George Harris,MEP for South West England,
- country,target phone,target name,target title,caller id + country name,phone number,name,title,caller id - germany,+448008085429,Abe Ben,MEP for Germany,+448008085400 ? ^ + Germany,+448008085429,Abe Ben,MEP for Germany,+448008085400 ? ^ United Kingdom,+448000119712,Claire Do,MEP South East England, - ``,+61261885481,Emily Fred,MEP for South West England, ? ^^ + United Kingdom,+61261885481,Emily Fred,MEP for South West England, ? ^^^^^^^^^^^^^^ - ``,+13437003482,George Harris,MEP for South West England, ? ^^ + United Kingdom,+13437003482,George Harris,MEP for South West England, ? ^^^^^^^^^^^^^^
8
1.6
4
4
c503c7ac219f5d08d16b8c9bd88950285eb71101
tasks/main.yml
tasks/main.yml
--- # tasks file for tmux - name: tmux Debug debug: > msg="{{ item }}" with_items: # - "{{ tmux }}" - "{{ ansible_pkg_mgr }}" - "{{ ansible_os_family }}" - include: apt_package.yml when: ansible_pkg_mgr == 'apt' - include: yum_package.yml when: ansible_pkg_mgr == 'yum' - include: homebrew_package.yml when: ansible_os_family == 'Darwin' - name: tmux - Ensure permissions on /usr/bin/tmux file: > path=/usr/bin/tmux owner=root group=root mode=0755
--- # tasks file for tmux - include: apt_package.yml when: ansible_pkg_mgr == 'apt' - include: yum_package.yml when: ansible_pkg_mgr == 'yum' - include: homebrew_package.yml when: ansible_os_family == 'Darwin' - name: tmux - Ensure permissions on /usr/bin/tmux file: > path=/usr/bin/tmux owner=root group=root mode=0755 - name: "install tmux config for user: {{ item }}" template: src=tmux.conf.j2 dest=~{{ item }}/.tmux.conf with_items: - tmux_users tags: - tmux_conf
Install default .tmux.conf for all tmux_users
Install default .tmux.conf for all tmux_users
YAML
mit
trinitronx/ansible-role-tmux,trinitronx/ansible-role-tmux
yaml
## Code Before: --- # tasks file for tmux - name: tmux Debug debug: > msg="{{ item }}" with_items: # - "{{ tmux }}" - "{{ ansible_pkg_mgr }}" - "{{ ansible_os_family }}" - include: apt_package.yml when: ansible_pkg_mgr == 'apt' - include: yum_package.yml when: ansible_pkg_mgr == 'yum' - include: homebrew_package.yml when: ansible_os_family == 'Darwin' - name: tmux - Ensure permissions on /usr/bin/tmux file: > path=/usr/bin/tmux owner=root group=root mode=0755 ## Instruction: Install default .tmux.conf for all tmux_users ## Code After: --- # tasks file for tmux - include: apt_package.yml when: ansible_pkg_mgr == 'apt' - include: yum_package.yml when: ansible_pkg_mgr == 'yum' - include: homebrew_package.yml when: ansible_os_family == 'Darwin' - name: tmux - Ensure permissions on /usr/bin/tmux file: > path=/usr/bin/tmux owner=root group=root mode=0755 - name: "install tmux config for user: {{ item }}" template: src=tmux.conf.j2 dest=~{{ item }}/.tmux.conf with_items: - tmux_users tags: - tmux_conf
--- # tasks file for tmux - - name: tmux Debug - debug: > - msg="{{ item }}" - with_items: - # - "{{ tmux }}" - - "{{ ansible_pkg_mgr }}" - - "{{ ansible_os_family }}" - include: apt_package.yml when: ansible_pkg_mgr == 'apt' - include: yum_package.yml when: ansible_pkg_mgr == 'yum' - include: homebrew_package.yml when: ansible_os_family == 'Darwin' - name: tmux - Ensure permissions on /usr/bin/tmux file: > path=/usr/bin/tmux owner=root group=root mode=0755 + + - name: "install tmux config for user: {{ item }}" + template: src=tmux.conf.j2 dest=~{{ item }}/.tmux.conf + with_items: + - tmux_users + tags: + - tmux_conf
14
0.636364
7
7
0a0b1087b0067259b774b91809a166d74c8c695c
spacy/lang/id/__init__.py
spacy/lang/id/__init__.py
from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs import LEX_ATTRS from .syntax_iterators import SYNTAX_ITERATORS from ..tokenizer_exceptions import BASE_EXCEPTIONS from ..norm_exceptions import BASE_NORMS from ...language import Language from ...attrs import LANG, NORM from ...util import update_exc, add_lookups class IndonesianDefaults(Language.Defaults): lex_attr_getters = dict(Language.Defaults.lex_attr_getters) lex_attr_getters[LANG] = lambda text: "id" lex_attr_getters.update(LEX_ATTRS) lex_attr_getters[NORM] = add_lookups( Language.Defaults.lex_attr_getters[NORM], BASE_NORMS, NORM_EXCEPTIONS ) tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = STOP_WORDS prefixes = TOKENIZER_PREFIXES suffixes = TOKENIZER_SUFFIXES infixes = TOKENIZER_INFIXES syntax_iterators = SYNTAX_ITERATORS lemma_lookup = LOOKUP class Indonesian(Language): lang = "id" Defaults = IndonesianDefaults __all__ = ["Indonesian"]
from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs import LEX_ATTRS from .syntax_iterators import SYNTAX_ITERATORS from .tag_map import TAG_MAP from ..tokenizer_exceptions import BASE_EXCEPTIONS from ..norm_exceptions import BASE_NORMS from ...language import Language from ...attrs import LANG, NORM from ...util import update_exc, add_lookups class IndonesianDefaults(Language.Defaults): lex_attr_getters = dict(Language.Defaults.lex_attr_getters) lex_attr_getters[LANG] = lambda text: "id" lex_attr_getters.update(LEX_ATTRS) lex_attr_getters[NORM] = add_lookups( Language.Defaults.lex_attr_getters[NORM], BASE_NORMS, NORM_EXCEPTIONS ) tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = STOP_WORDS prefixes = TOKENIZER_PREFIXES suffixes = TOKENIZER_SUFFIXES infixes = TOKENIZER_INFIXES syntax_iterators = SYNTAX_ITERATORS lemma_lookup = LOOKUP tag_map = TAG_MAP class Indonesian(Language): lang = "id" Defaults = IndonesianDefaults __all__ = ["Indonesian"]
Make tag map available in Indonesian defaults
Make tag map available in Indonesian defaults
Python
mit
spacy-io/spaCy,explosion/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,honnibal/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,spacy-io/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,spacy-io/spaCy,honnibal/spaCy
python
## Code Before: from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs import LEX_ATTRS from .syntax_iterators import SYNTAX_ITERATORS from ..tokenizer_exceptions import BASE_EXCEPTIONS from ..norm_exceptions import BASE_NORMS from ...language import Language from ...attrs import LANG, NORM from ...util import update_exc, add_lookups class IndonesianDefaults(Language.Defaults): lex_attr_getters = dict(Language.Defaults.lex_attr_getters) lex_attr_getters[LANG] = lambda text: "id" lex_attr_getters.update(LEX_ATTRS) lex_attr_getters[NORM] = add_lookups( Language.Defaults.lex_attr_getters[NORM], BASE_NORMS, NORM_EXCEPTIONS ) tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = STOP_WORDS prefixes = TOKENIZER_PREFIXES suffixes = TOKENIZER_SUFFIXES infixes = TOKENIZER_INFIXES syntax_iterators = SYNTAX_ITERATORS lemma_lookup = LOOKUP class Indonesian(Language): lang = "id" Defaults = IndonesianDefaults __all__ = ["Indonesian"] ## Instruction: Make tag map available in Indonesian defaults ## Code After: from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs import LEX_ATTRS from .syntax_iterators import SYNTAX_ITERATORS from .tag_map import TAG_MAP from ..tokenizer_exceptions import BASE_EXCEPTIONS from ..norm_exceptions import BASE_NORMS from ...language import Language from ...attrs import LANG, NORM from ...util import update_exc, add_lookups class IndonesianDefaults(Language.Defaults): lex_attr_getters = dict(Language.Defaults.lex_attr_getters) lex_attr_getters[LANG] = lambda text: "id" lex_attr_getters.update(LEX_ATTRS) lex_attr_getters[NORM] = add_lookups( Language.Defaults.lex_attr_getters[NORM], BASE_NORMS, NORM_EXCEPTIONS ) tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = STOP_WORDS prefixes = TOKENIZER_PREFIXES suffixes = TOKENIZER_SUFFIXES infixes = TOKENIZER_INFIXES syntax_iterators = SYNTAX_ITERATORS lemma_lookup = LOOKUP tag_map = TAG_MAP class Indonesian(Language): lang = "id" Defaults = IndonesianDefaults __all__ = ["Indonesian"]
from __future__ import unicode_literals from .stop_words import STOP_WORDS from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .norm_exceptions import NORM_EXCEPTIONS from .lemmatizer import LOOKUP from .lex_attrs import LEX_ATTRS from .syntax_iterators import SYNTAX_ITERATORS + from .tag_map import TAG_MAP from ..tokenizer_exceptions import BASE_EXCEPTIONS from ..norm_exceptions import BASE_NORMS from ...language import Language from ...attrs import LANG, NORM from ...util import update_exc, add_lookups class IndonesianDefaults(Language.Defaults): lex_attr_getters = dict(Language.Defaults.lex_attr_getters) lex_attr_getters[LANG] = lambda text: "id" lex_attr_getters.update(LEX_ATTRS) lex_attr_getters[NORM] = add_lookups( Language.Defaults.lex_attr_getters[NORM], BASE_NORMS, NORM_EXCEPTIONS ) tokenizer_exceptions = update_exc(BASE_EXCEPTIONS, TOKENIZER_EXCEPTIONS) stop_words = STOP_WORDS prefixes = TOKENIZER_PREFIXES suffixes = TOKENIZER_SUFFIXES infixes = TOKENIZER_INFIXES syntax_iterators = SYNTAX_ITERATORS lemma_lookup = LOOKUP + tag_map = TAG_MAP class Indonesian(Language): lang = "id" Defaults = IndonesianDefaults __all__ = ["Indonesian"]
2
0.051282
2
0
e38664dbb83141d6f381604b9bfb83b0a9a77339
lib/linkedin/api/authentication.rb
lib/linkedin/api/authentication.rb
module LinkedIn module API module Authentication def authorize_url(**params) params.reverse_merge! configuration.to_h.slice :scope, :state, :redirect_uri params[:scope] = serialize_scope params[:scope] credentials.auth_code.authorize_url params end def request_access_token(authorization_code, params = {}) raise Error::CSRF.new state, params[:state] if params[:state] && params[:state] != state params.reverse_merge! redirect_uri: configuration.redirect_uri opts = { mode: :query, param_name: 'oauth2_access_token' } self.access_token = auth_code.get_token authorization_code, params, opts end private def serialize_scope(scope) Array[scope].flatten.join ' ' end end end end
module LinkedIn module API module Authentication def authorize_url(**params) params.reverse_merge! configuration.to_h.slice :scope, :state, :redirect_uri params[:scope] = serialize_scope params[:scope] credentials.auth_code.authorize_url params end def request_access_token(authorization_code, params = {}) raise Error::CSRF.new state, params[:state] if params[:state] && params[:state] != state params.reverse_merge! redirect_uri: configuration.redirect_uri opts = { mode: :query, param_name: 'oauth2_access_token' } credentials.auth_code.get_token authorization_code, params, opts end private def serialize_scope(scope) Array[scope].flatten.join ' ' end end end end
Use auth_code provided by credentials
Use auth_code provided by credentials
Ruby
mit
bobbrez/linkedin2,maxkohl88/linkedin2
ruby
## Code Before: module LinkedIn module API module Authentication def authorize_url(**params) params.reverse_merge! configuration.to_h.slice :scope, :state, :redirect_uri params[:scope] = serialize_scope params[:scope] credentials.auth_code.authorize_url params end def request_access_token(authorization_code, params = {}) raise Error::CSRF.new state, params[:state] if params[:state] && params[:state] != state params.reverse_merge! redirect_uri: configuration.redirect_uri opts = { mode: :query, param_name: 'oauth2_access_token' } self.access_token = auth_code.get_token authorization_code, params, opts end private def serialize_scope(scope) Array[scope].flatten.join ' ' end end end end ## Instruction: Use auth_code provided by credentials ## Code After: module LinkedIn module API module Authentication def authorize_url(**params) params.reverse_merge! configuration.to_h.slice :scope, :state, :redirect_uri params[:scope] = serialize_scope params[:scope] credentials.auth_code.authorize_url params end def request_access_token(authorization_code, params = {}) raise Error::CSRF.new state, params[:state] if params[:state] && params[:state] != state params.reverse_merge! redirect_uri: configuration.redirect_uri opts = { mode: :query, param_name: 'oauth2_access_token' } credentials.auth_code.get_token authorization_code, params, opts end private def serialize_scope(scope) Array[scope].flatten.join ' ' end end end end
module LinkedIn module API module Authentication def authorize_url(**params) params.reverse_merge! configuration.to_h.slice :scope, :state, :redirect_uri params[:scope] = serialize_scope params[:scope] credentials.auth_code.authorize_url params end def request_access_token(authorization_code, params = {}) raise Error::CSRF.new state, params[:state] if params[:state] && params[:state] != state params.reverse_merge! redirect_uri: configuration.redirect_uri opts = { mode: :query, param_name: 'oauth2_access_token' } - self.access_token = auth_code.get_token authorization_code, params, opts ? ^ ^^^^^^^^^^^^^ ^^^ + credentials.auth_code.get_token authorization_code, params, opts ? ^^ ^ ^^^^^^ end private def serialize_scope(scope) Array[scope].flatten.join ' ' end end end end
2
0.076923
1
1
8bda6da9695a732436cf33e6bf6131bd690838b4
FirstVoicesSecurity/src/main/resources/OSGI-INF/extensions/ca.firstvoices.listeners.xml
FirstVoicesSecurity/src/main/resources/OSGI-INF/extensions/ca.firstvoices.listeners.xml
<component name="ca.firstvoices.listeners.contrib"> <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener"> <listener name="restrictfvdialectpublishing" async="false" postCommit="true" class="ca.firstvoices.listeners.RestrictFVDialectPublishing" priority="50"> <event>workflowTaskStart</event> </listener> <listener name="fvdocumentvalidationeventlistener" async="false" postCommit="true" class="ca.firstvoices.listeners.FVDocumentValidationEventListener" priority="100"> <event>aboutToCreate</event> <event>beforeDocumentModification</event> </listener> </extension> </component>
<component name="ca.firstvoices.listeners.contrib"> <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener"> <listener name="restrictfvdialectpublishing" async="false" postCommit="true" class="ca.firstvoices.listeners.RestrictFVDialectPublishing" priority="50"> <event>workflowTaskStart</event> </listener> <!-- DY: This listener is disabled since communities require the ability to add duplicates. Better validation needs to be developed. --> <listener name="fvdocumentvalidationeventlistener" enabled="false" async="false" postCommit="true" class="ca.firstvoices.listeners.FVDocumentValidationEventListener" priority="100"> <event>aboutToCreate</event> <event>beforeDocumentModification</event> </listener> </extension> </component>
Disable validation listener to match Prod
Disable validation listener to match Prod
XML
apache-2.0
First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui,First-Peoples-Cultural-Council/fv-web-ui
xml
## Code Before: <component name="ca.firstvoices.listeners.contrib"> <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener"> <listener name="restrictfvdialectpublishing" async="false" postCommit="true" class="ca.firstvoices.listeners.RestrictFVDialectPublishing" priority="50"> <event>workflowTaskStart</event> </listener> <listener name="fvdocumentvalidationeventlistener" async="false" postCommit="true" class="ca.firstvoices.listeners.FVDocumentValidationEventListener" priority="100"> <event>aboutToCreate</event> <event>beforeDocumentModification</event> </listener> </extension> </component> ## Instruction: Disable validation listener to match Prod ## Code After: <component name="ca.firstvoices.listeners.contrib"> <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener"> <listener name="restrictfvdialectpublishing" async="false" postCommit="true" class="ca.firstvoices.listeners.RestrictFVDialectPublishing" priority="50"> <event>workflowTaskStart</event> </listener> <!-- DY: This listener is disabled since communities require the ability to add duplicates. Better validation needs to be developed. --> <listener name="fvdocumentvalidationeventlistener" enabled="false" async="false" postCommit="true" class="ca.firstvoices.listeners.FVDocumentValidationEventListener" priority="100"> <event>aboutToCreate</event> <event>beforeDocumentModification</event> </listener> </extension> </component>
<component name="ca.firstvoices.listeners.contrib"> <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener"> <listener name="restrictfvdialectpublishing" async="false" postCommit="true" class="ca.firstvoices.listeners.RestrictFVDialectPublishing" priority="50"> <event>workflowTaskStart</event> </listener> + <!-- + DY: This listener is disabled since communities require the ability to add duplicates. + Better validation needs to be developed. + --> - <listener name="fvdocumentvalidationeventlistener" async="false" postCommit="true" + <listener name="fvdocumentvalidationeventlistener" enabled="false" async="false" postCommit="true" ? ++++++++++++++++ class="ca.firstvoices.listeners.FVDocumentValidationEventListener" priority="100"> <event>aboutToCreate</event> <event>beforeDocumentModification</event> </listener> </extension> </component>
6
0.375
5
1
6a64de74427ada27f8bbdce9cbc0730744663aa0
main.css
main.css
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } /* Used when the total is loading to prevent a jarring "pop" when it appears. */ .animation-fade-in { animation: fade-in 150ms; } #wishlist-total { position: fixed; bottom: 36px; left: 36px; float: left; /* Make sure it's above most things, but _below_ the backdrops. */ z-index: 1000; padding: 18px 27px; font-size: 14px; background-color: white; border: 1px solid #dddddd; } #wishlist-total .total-text { font-style: italic; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } /* Hide the list while printing so it never covers anything up. */ @media print { #wishlist-total { display: none; } } /* Used when the total is loading to prevent a jarring "pop" when it appears. */ .animation-fade-in { animation: fade-in 150ms; } #wishlist-total { position: fixed; bottom: 36px; left: 36px; float: left; /* Make sure it's above most things, but _below_ the backdrops. */ z-index: 1000; padding: 18px 27px; font-size: 14px; background-color: white; border: 1px solid #dddddd; } #wishlist-total .total-text { font-style: italic; }
Hide list total in print preview
Hide list total in print preview Otherwise, it can cover up items in the printed page!
CSS
mit
jasontbradshaw/amazon-wish-list-total,jasontbradshaw/amazon-wish-list-total
css
## Code Before: @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } /* Used when the total is loading to prevent a jarring "pop" when it appears. */ .animation-fade-in { animation: fade-in 150ms; } #wishlist-total { position: fixed; bottom: 36px; left: 36px; float: left; /* Make sure it's above most things, but _below_ the backdrops. */ z-index: 1000; padding: 18px 27px; font-size: 14px; background-color: white; border: 1px solid #dddddd; } #wishlist-total .total-text { font-style: italic; } ## Instruction: Hide list total in print preview Otherwise, it can cover up items in the printed page! ## Code After: @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } /* Hide the list while printing so it never covers anything up. */ @media print { #wishlist-total { display: none; } } /* Used when the total is loading to prevent a jarring "pop" when it appears. */ .animation-fade-in { animation: fade-in 150ms; } #wishlist-total { position: fixed; bottom: 36px; left: 36px; float: left; /* Make sure it's above most things, but _below_ the backdrops. */ z-index: 1000; padding: 18px 27px; font-size: 14px; background-color: white; border: 1px solid #dddddd; } #wishlist-total .total-text { font-style: italic; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } + } + + /* Hide the list while printing so it never covers anything up. */ + @media print { + #wishlist-total { + display: none; + } } /* Used when the total is loading to prevent a jarring "pop" when it appears. */ .animation-fade-in { animation: fade-in 150ms; } #wishlist-total { position: fixed; bottom: 36px; left: 36px; float: left; /* Make sure it's above most things, but _below_ the backdrops. */ z-index: 1000; padding: 18px 27px; font-size: 14px; background-color: white; border: 1px solid #dddddd; } #wishlist-total .total-text { font-style: italic; }
7
0.233333
7
0
be1bedd1d22a44e316f800a20065846aaabd2397
README.md
README.md
Patch git tag version to package.json before publish to npm. ## Usage 1. Install [patch-version](https://www.npmjs.com/package/patch-version) from npm. 2. Stick your package.json to one version. My suggestion is `0.0.1`, as this package does. 3. Add `patch-version` command to deployment hook in your CI configuration file. 4. When you want to publish a new version to npm, create a tag with a valid [semver](http://semver.org/), push it to trigger CI build and deployment. The tag version will be patched to `package.json` before publish to npm. ## Supported CI - Travis - GitLab - AppVeyor ## Example Here is the example configuration for Travis CI. A full example could be the [.travis.yml](https://github.com/lijunle/npm-patch-version/blob/master/.travis.yml) file of this project. ```yaml before_deploy: - ./node_modules/.bin/patch-version deploy: provider: npm email: "my@email" api_key: secure: "secure-key" on: tags: true ``` ## License MIT License.
Patch git tag version to package.json before publish to npm. ## Usage 1. Install [patch-version](https://www.npmjs.com/package/patch-version) from npm. 2. Stick your package.json to one version. My suggestion is `0.0.1`, as this package does. 3. Add `patch-version` command to deployment hook in your CI configuration file. 4. When you want to publish a new version to npm, create a tag with a valid [semver](http://semver.org/), push it to trigger CI build and deployment. The tag version will be patched to `package.json` before publish to npm. ## Supported CI - Travis - GitLab - AppVeyor ## Example Here is the example configuration for Travis CI. A full example could be the [.travis.yml](https://github.com/lijunle/npm-patch-version/blob/master/.travis.yml) file of this project. ```yaml before_deploy: - ./node_modules/.bin/patch-version deploy: provider: npm email: my@email.com api_key: secure: this-is-my-secure-key on: tags: true ``` ## License MIT License.
Remove the unnecessary double quote in example.
Remove the unnecessary double quote in example.
Markdown
mit
lijunle/npm-patch-version
markdown
## Code Before: Patch git tag version to package.json before publish to npm. ## Usage 1. Install [patch-version](https://www.npmjs.com/package/patch-version) from npm. 2. Stick your package.json to one version. My suggestion is `0.0.1`, as this package does. 3. Add `patch-version` command to deployment hook in your CI configuration file. 4. When you want to publish a new version to npm, create a tag with a valid [semver](http://semver.org/), push it to trigger CI build and deployment. The tag version will be patched to `package.json` before publish to npm. ## Supported CI - Travis - GitLab - AppVeyor ## Example Here is the example configuration for Travis CI. A full example could be the [.travis.yml](https://github.com/lijunle/npm-patch-version/blob/master/.travis.yml) file of this project. ```yaml before_deploy: - ./node_modules/.bin/patch-version deploy: provider: npm email: "my@email" api_key: secure: "secure-key" on: tags: true ``` ## License MIT License. ## Instruction: Remove the unnecessary double quote in example. ## Code After: Patch git tag version to package.json before publish to npm. ## Usage 1. Install [patch-version](https://www.npmjs.com/package/patch-version) from npm. 2. Stick your package.json to one version. My suggestion is `0.0.1`, as this package does. 3. Add `patch-version` command to deployment hook in your CI configuration file. 4. When you want to publish a new version to npm, create a tag with a valid [semver](http://semver.org/), push it to trigger CI build and deployment. The tag version will be patched to `package.json` before publish to npm. ## Supported CI - Travis - GitLab - AppVeyor ## Example Here is the example configuration for Travis CI. A full example could be the [.travis.yml](https://github.com/lijunle/npm-patch-version/blob/master/.travis.yml) file of this project. ```yaml before_deploy: - ./node_modules/.bin/patch-version deploy: provider: npm email: my@email.com api_key: secure: this-is-my-secure-key on: tags: true ``` ## License MIT License.
Patch git tag version to package.json before publish to npm. ## Usage 1. Install [patch-version](https://www.npmjs.com/package/patch-version) from npm. 2. Stick your package.json to one version. My suggestion is `0.0.1`, as this package does. 3. Add `patch-version` command to deployment hook in your CI configuration file. 4. When you want to publish a new version to npm, create a tag with a valid [semver](http://semver.org/), push it to trigger CI build and deployment. The tag version will be patched to `package.json` before publish to npm. ## Supported CI - Travis - GitLab - AppVeyor ## Example Here is the example configuration for Travis CI. A full example could be the [.travis.yml](https://github.com/lijunle/npm-patch-version/blob/master/.travis.yml) file of this project. ```yaml before_deploy: - ./node_modules/.bin/patch-version deploy: provider: npm - email: "my@email" ? - ^ + email: my@email.com ? ^^^^ api_key: - secure: "secure-key" ? ^ - + secure: this-is-my-secure-key ? ^^^^^^^^^^^ on: tags: true ``` ## License MIT License.
4
0.111111
2
2
0f645a693cd4d1d1c4aeb1d084c07cca1f1b1ae8
.travis.yml
.travis.yml
language: php php: - 5.5 - 5.6 - hhvm before_script: - composer self-update - composer --dev install script: - phpunit --coverage-text notifications: email: - franjid@gmail.com
language: php php: - 5.5 - 5.6 - hhvm before_script: - composer self-update - composer --dev install script: - vendor/bin/phpunit --coverage-text notifications: email: - franjid@gmail.com
Use vendor's phpunit in Travis
Use vendor's phpunit in Travis
YAML
mit
franjid/api-wrapper-bundle
yaml
## Code Before: language: php php: - 5.5 - 5.6 - hhvm before_script: - composer self-update - composer --dev install script: - phpunit --coverage-text notifications: email: - franjid@gmail.com ## Instruction: Use vendor's phpunit in Travis ## Code After: language: php php: - 5.5 - 5.6 - hhvm before_script: - composer self-update - composer --dev install script: - vendor/bin/phpunit --coverage-text notifications: email: - franjid@gmail.com
language: php php: - 5.5 - 5.6 - hhvm before_script: - composer self-update - composer --dev install script: - - phpunit --coverage-text + - vendor/bin/phpunit --coverage-text ? +++++++++++ notifications: email: - franjid@gmail.com
2
0.111111
1
1
4b6e409a67aabe69625d4937501b2bb34aba2445
app/views/aq_repositories/_new_repository_text_message.erb
app/views/aq_repositories/_new_repository_text_message.erb
<div id="new_repository_text_message"> <h3>Global setup:</h3> <ul> <li>Download and install Git</li> <li>git config --global user.name "<%= current_user.name %>"</li> <li>git config --global user.email <%= current_user.email %></li> </ul> <br> <h3>Non-existing git repo?</h3> <ul> <li>mkdir "<%= @repository.name %>"</li> <li>cd "<%= @repository.name %>"</li> <li>git init</li> <li>touch README</li> <li>git add README</li> <li>git commit -m "first commit"</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Existing git repo?</h3> <ul> <li>cd your_project</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Done ?</h3> <ul> <li><%= link_to t(:continue, :scope => :links), @repository %></li> </ul> </div>
<div id="new_repository_text_message"> <h3>Global setup:</h3> <ul> <li>Download and install Git</li> <li>git config --global user.name "<%= current_user.name %>"</li> <li>git config --global user.email <%= current_user.email %></li> </ul> <br> <h3>Non-existing git repo?</h3> <ul> <li>mkdir "<%= @repository.name %>"</li> <li>cd "<%= @repository.name %>"</li> <li>git init</li> <li>touch README</li> <li>git add README</li> <li>git commit -m "first commit"</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Existing git repo?</h3> <ul> <li>cd your_project</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Done ?</h3> <ul> <li>Wait until the job see your commit then <%= link_to t(:continue, :scope => :links), @repository %></li> </ul> </div>
Update the "continue" string of the "welcome text"
Update the "continue" string of the "welcome text"
HTML+ERB
mit
mcansky/IIIaquarii,mcansky/IIIaquarii,mcansky/IIIaquarii
html+erb
## Code Before: <div id="new_repository_text_message"> <h3>Global setup:</h3> <ul> <li>Download and install Git</li> <li>git config --global user.name "<%= current_user.name %>"</li> <li>git config --global user.email <%= current_user.email %></li> </ul> <br> <h3>Non-existing git repo?</h3> <ul> <li>mkdir "<%= @repository.name %>"</li> <li>cd "<%= @repository.name %>"</li> <li>git init</li> <li>touch README</li> <li>git add README</li> <li>git commit -m "first commit"</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Existing git repo?</h3> <ul> <li>cd your_project</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Done ?</h3> <ul> <li><%= link_to t(:continue, :scope => :links), @repository %></li> </ul> </div> ## Instruction: Update the "continue" string of the "welcome text" ## Code After: <div id="new_repository_text_message"> <h3>Global setup:</h3> <ul> <li>Download and install Git</li> <li>git config --global user.name "<%= current_user.name %>"</li> <li>git config --global user.email <%= current_user.email %></li> </ul> <br> <h3>Non-existing git repo?</h3> <ul> <li>mkdir "<%= @repository.name %>"</li> <li>cd "<%= @repository.name %>"</li> <li>git init</li> <li>touch README</li> <li>git add README</li> <li>git commit -m "first commit"</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Existing git repo?</h3> <ul> <li>cd your_project</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Done ?</h3> <ul> <li>Wait until the job see your commit then <%= link_to t(:continue, :scope => :links), @repository %></li> </ul> </div>
<div id="new_repository_text_message"> <h3>Global setup:</h3> <ul> <li>Download and install Git</li> <li>git config --global user.name "<%= current_user.name %>"</li> <li>git config --global user.email <%= current_user.email %></li> </ul> <br> <h3>Non-existing git repo?</h3> <ul> <li>mkdir "<%= @repository.name %>"</li> <li>cd "<%= @repository.name %>"</li> <li>git init</li> <li>touch README</li> <li>git add README</li> <li>git commit -m "first commit"</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Existing git repo?</h3> <ul> <li>cd your_project</li> <li>git remote add origin <%= @repository.private_path %></li> <li>git push origin master</li> </ul> <br> <h3>Done ?</h3> <ul> - <li><%= link_to t(:continue, :scope => :links), @repository %></li> + <li>Wait until the job see your commit then <%= link_to t(:continue, :scope => :links), @repository %></li> ? ++++++++++++++++++++++++++++++++++++++++ </ul> </div>
2
0.051282
1
1
7a32c612265ddec15ec8c360320339151a1e7a8a
kube/json2html.yaml
kube/json2html.yaml
apiVersion: v1 kind: Service metadata: name: json2html spec: ports: - port: 80 targetPort: 8080 selector: app: json2html --- apiVersion: apps/v1 kind: Deployment metadata: name: json2html spec: selector: matchLabels: app: json2html replicas: 1 template: metadata: labels: app: json2html spec: containers: - name: json2html image: bloopletech/json2html:latest ports: - containerPort: 8080 resources: limits: memory: "32Mi" imagePullSecrets: - name: regcred
apiVersion: v1 kind: Service metadata: name: json2html spec: ports: - port: 80 targetPort: 8080 selector: app: json2html --- apiVersion: apps/v1 kind: Deployment metadata: name: json2html spec: selector: matchLabels: app: json2html replicas: 1 template: metadata: labels: app: json2html spec: containers: - name: json2html image: bloopletech/json2html@sha256:b045456137672ddbd861c4784758838ab509b55ec09caf8f48382bef11e7ddbd ports: - containerPort: 8080 resources: limits: memory: "32Mi" imagePullSecrets: - name: regcred
Use specific SHA-256 hash to ensure correct artifact is used for deployment; Deploy latest release
Use specific SHA-256 hash to ensure correct artifact is used for deployment; Deploy latest release
YAML
mit
bloopletech/json2html,bloopletech/json2html,bloopletech/json2html
yaml
## Code Before: apiVersion: v1 kind: Service metadata: name: json2html spec: ports: - port: 80 targetPort: 8080 selector: app: json2html --- apiVersion: apps/v1 kind: Deployment metadata: name: json2html spec: selector: matchLabels: app: json2html replicas: 1 template: metadata: labels: app: json2html spec: containers: - name: json2html image: bloopletech/json2html:latest ports: - containerPort: 8080 resources: limits: memory: "32Mi" imagePullSecrets: - name: regcred ## Instruction: Use specific SHA-256 hash to ensure correct artifact is used for deployment; Deploy latest release ## Code After: apiVersion: v1 kind: Service metadata: name: json2html spec: ports: - port: 80 targetPort: 8080 selector: app: json2html --- apiVersion: apps/v1 kind: Deployment metadata: name: json2html spec: selector: matchLabels: app: json2html replicas: 1 template: metadata: labels: app: json2html spec: containers: - name: json2html image: bloopletech/json2html@sha256:b045456137672ddbd861c4784758838ab509b55ec09caf8f48382bef11e7ddbd ports: - containerPort: 8080 resources: limits: memory: "32Mi" imagePullSecrets: - name: regcred
apiVersion: v1 kind: Service metadata: name: json2html spec: ports: - port: 80 targetPort: 8080 selector: app: json2html --- apiVersion: apps/v1 kind: Deployment metadata: name: json2html spec: selector: matchLabels: app: json2html replicas: 1 template: metadata: labels: app: json2html spec: containers: - name: json2html - image: bloopletech/json2html:latest + image: bloopletech/json2html@sha256:b045456137672ddbd861c4784758838ab509b55ec09caf8f48382bef11e7ddbd ports: - containerPort: 8080 resources: limits: memory: "32Mi" imagePullSecrets: - name: regcred
2
0.057143
1
1
e7e137bee98f1e1e27e5aee621fdf599f9a7ff5f
metadata/com.zoffcc.applications.avifview.yml
metadata/com.zoffcc.applications.avifview.yml
Categories: - Multimedia License: Apache-2.0 SourceCode: https://github.com/zoff99/libavif-android IssueTracker: https://github.com/zoff99/libavif-android/issues AutoName: AVIF Viewer RepoType: git Repo: https://github.com/zoff99/libavif-android Builds: - versionName: 1.0.2 versionCode: 10002 commit: 42c86eb350cfa8ac758fa60718ab3fc4dfec97ef subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags ^[0-9].* CurrentVersion: 1.0.2 CurrentVersionCode: 10002
Categories: - Multimedia License: Apache-2.0 SourceCode: https://github.com/zoff99/libavif-android IssueTracker: https://github.com/zoff99/libavif-android/issues AutoName: AVIF Viewer RepoType: git Repo: https://github.com/zoff99/libavif-android Builds: - versionName: 1.0.2 versionCode: 10002 commit: 42c86eb350cfa8ac758fa60718ab3fc4dfec97ef subdir: app gradle: - yes - versionName: 1.0.4 versionCode: 10004 commit: 25d7659c09da5ec148effe7945b10aaf240ba8af subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags ^[0-9].* CurrentVersion: 1.0.4 CurrentVersionCode: 10004
Update AVIF Viewer to 1.0.4 (10004)
Update AVIF Viewer to 1.0.4 (10004)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Multimedia License: Apache-2.0 SourceCode: https://github.com/zoff99/libavif-android IssueTracker: https://github.com/zoff99/libavif-android/issues AutoName: AVIF Viewer RepoType: git Repo: https://github.com/zoff99/libavif-android Builds: - versionName: 1.0.2 versionCode: 10002 commit: 42c86eb350cfa8ac758fa60718ab3fc4dfec97ef subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags ^[0-9].* CurrentVersion: 1.0.2 CurrentVersionCode: 10002 ## Instruction: Update AVIF Viewer to 1.0.4 (10004) ## Code After: Categories: - Multimedia License: Apache-2.0 SourceCode: https://github.com/zoff99/libavif-android IssueTracker: https://github.com/zoff99/libavif-android/issues AutoName: AVIF Viewer RepoType: git Repo: https://github.com/zoff99/libavif-android Builds: - versionName: 1.0.2 versionCode: 10002 commit: 42c86eb350cfa8ac758fa60718ab3fc4dfec97ef subdir: app gradle: - yes - versionName: 1.0.4 versionCode: 10004 commit: 25d7659c09da5ec148effe7945b10aaf240ba8af subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags ^[0-9].* CurrentVersion: 1.0.4 CurrentVersionCode: 10004
Categories: - Multimedia License: Apache-2.0 SourceCode: https://github.com/zoff99/libavif-android IssueTracker: https://github.com/zoff99/libavif-android/issues AutoName: AVIF Viewer RepoType: git Repo: https://github.com/zoff99/libavif-android Builds: - versionName: 1.0.2 versionCode: 10002 commit: 42c86eb350cfa8ac758fa60718ab3fc4dfec97ef subdir: app gradle: - yes + - versionName: 1.0.4 + versionCode: 10004 + commit: 25d7659c09da5ec148effe7945b10aaf240ba8af + subdir: app + gradle: + - yes + AutoUpdateMode: Version %v UpdateCheckMode: Tags ^[0-9].* - CurrentVersion: 1.0.2 ? ^ + CurrentVersion: 1.0.4 ? ^ - CurrentVersionCode: 10002 ? ^ + CurrentVersionCode: 10004 ? ^
11
0.478261
9
2
c7af1144e3f27112726d0c3fd1a31dcd1c27633f
package.json
package.json
{ "name": "quizbomb", "description": "Web Sockets based Quizzing Game", "version": "0.0.1", "author": "Varun Patro, Gerald Ng", "repository": { "type": "git", "url": "https://github.com/varunpatro/quizbomb.git" }, "dependencies": { "socket.io": "^1.3.5" }, "devDependencies": { "grunt": "^0.4.5", "grunt-cli": "^0.1.13", "grunt-contrib-jshint": "^0.11.2", "grunt-jsbeautifier": "^0.2.10", "grunt-jscs": "^1.8.0", "grunt-nodemon": "^0.4.0" } }
{ "name": "quizbomb", "description": "Web Sockets based Quizzing Game", "version": "0.0.1", "author": "Varun Patro, Gerald Ng", "repository": { "type": "git", "url": "https://github.com/varunpatro/quizbomb.git" }, "dependencies": { "express": "^4.12.4", "socket.io": "^1.3.5" }, "devDependencies": { "grunt": "^0.4.5", "grunt-cli": "^0.1.13", "grunt-contrib-jshint": "^0.11.2", "grunt-jsbeautifier": "^0.2.10", "grunt-jscs": "^1.8.0", "grunt-nodemon": "^0.4.0" } }
Update dependency to include express
Update dependency to include express
JSON
mit
varunpatro/quizbomb,varunpatro/quizbomb,madsonic/emotionary,madsonic/emotionary
json
## Code Before: { "name": "quizbomb", "description": "Web Sockets based Quizzing Game", "version": "0.0.1", "author": "Varun Patro, Gerald Ng", "repository": { "type": "git", "url": "https://github.com/varunpatro/quizbomb.git" }, "dependencies": { "socket.io": "^1.3.5" }, "devDependencies": { "grunt": "^0.4.5", "grunt-cli": "^0.1.13", "grunt-contrib-jshint": "^0.11.2", "grunt-jsbeautifier": "^0.2.10", "grunt-jscs": "^1.8.0", "grunt-nodemon": "^0.4.0" } } ## Instruction: Update dependency to include express ## Code After: { "name": "quizbomb", "description": "Web Sockets based Quizzing Game", "version": "0.0.1", "author": "Varun Patro, Gerald Ng", "repository": { "type": "git", "url": "https://github.com/varunpatro/quizbomb.git" }, "dependencies": { "express": "^4.12.4", "socket.io": "^1.3.5" }, "devDependencies": { "grunt": "^0.4.5", "grunt-cli": "^0.1.13", "grunt-contrib-jshint": "^0.11.2", "grunt-jsbeautifier": "^0.2.10", "grunt-jscs": "^1.8.0", "grunt-nodemon": "^0.4.0" } }
{ "name": "quizbomb", "description": "Web Sockets based Quizzing Game", "version": "0.0.1", "author": "Varun Patro, Gerald Ng", "repository": { "type": "git", "url": "https://github.com/varunpatro/quizbomb.git" }, "dependencies": { + "express": "^4.12.4", "socket.io": "^1.3.5" }, "devDependencies": { "grunt": "^0.4.5", "grunt-cli": "^0.1.13", "grunt-contrib-jshint": "^0.11.2", "grunt-jsbeautifier": "^0.2.10", "grunt-jscs": "^1.8.0", "grunt-nodemon": "^0.4.0" } }
1
0.047619
1
0
a22b09601cbbba94bedbcb15869752666255fccb
.travis.yml
.travis.yml
language: php php: - 5.5 - 5.6 - 7.0 - 7.1 before_script: - composer install --no-progress --prefer-source script: - vendor/bin/phpunit
language: php sudo: false cache: directories: - $HOME/.composer/cache/files php: - 5.5 - 5.6 - 7.0 - 7.1 before_script: - composer install --no-progress --prefer-source script: - find inc src tests \( -name '*.php' \) -exec php -l {} \; - vendor/bin/phpunit notifications: email: false slack: rooms: inpsyde:pb4VD0j0HYkb3lHmppSmmdxH on_start: never on_failure: always on_success: change
Improve Travis CI config file.
Improve Travis CI config file.
YAML
mit
inpsyde/Wonolog
yaml
## Code Before: language: php php: - 5.5 - 5.6 - 7.0 - 7.1 before_script: - composer install --no-progress --prefer-source script: - vendor/bin/phpunit ## Instruction: Improve Travis CI config file. ## Code After: language: php sudo: false cache: directories: - $HOME/.composer/cache/files php: - 5.5 - 5.6 - 7.0 - 7.1 before_script: - composer install --no-progress --prefer-source script: - find inc src tests \( -name '*.php' \) -exec php -l {} \; - vendor/bin/phpunit notifications: email: false slack: rooms: inpsyde:pb4VD0j0HYkb3lHmppSmmdxH on_start: never on_failure: always on_success: change
language: php + + sudo: false + + cache: + directories: + - $HOME/.composer/cache/files php: - 5.5 - 5.6 - 7.0 - 7.1 before_script: - composer install --no-progress --prefer-source script: + - find inc src tests \( -name '*.php' \) -exec php -l {} \; - vendor/bin/phpunit + + notifications: + email: false + slack: + rooms: inpsyde:pb4VD0j0HYkb3lHmppSmmdxH + on_start: never + on_failure: always + on_success: change
15
1.153846
15
0
97c8ae2e5624cdd8576a9acc9b70a9cb7cb47927
tests/strings_test.c
tests/strings_test.c
static void test_asprintf(void) { char *result = 0; (void)asprintf(&result, "test 1"); cb_assert(strcmp(result, "test 1") == 0); free(result); (void)asprintf(&result, "test %d", 2); cb_assert(strcmp(result, "test 2") == 0); free(result); (void)asprintf(&result, "%c%c%c%c %d", 't', 'e', 's', 't', 3); cb_assert(strcmp(result, "test 3") == 0); free(result); } int main(void) { test_asprintf(); return 0; }
static void test_asprintf(void) { char *result = 0; cb_assert(asprintf(&result, "test 1") > 0); cb_assert(strcmp(result, "test 1") == 0); free(result); cb_assert(asprintf(&result, "test %d", 2) > 0); cb_assert(strcmp(result, "test 2") == 0); free(result); cb_assert(asprintf(&result, "%c%c%c%c %d", 't', 'e', 's', 't', 3) > 0); cb_assert(strcmp(result, "test 3") == 0); free(result); } int main(void) { test_asprintf(); return 0; }
Check for return value for asprintf
Check for return value for asprintf Change-Id: Ib163468aac1a5e52cef28c59b55be2287dc4ba43 Reviewed-on: http://review.couchbase.org/43023 Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com> Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
C
apache-2.0
vmx/platform,vmx/platform
c
## Code Before: static void test_asprintf(void) { char *result = 0; (void)asprintf(&result, "test 1"); cb_assert(strcmp(result, "test 1") == 0); free(result); (void)asprintf(&result, "test %d", 2); cb_assert(strcmp(result, "test 2") == 0); free(result); (void)asprintf(&result, "%c%c%c%c %d", 't', 'e', 's', 't', 3); cb_assert(strcmp(result, "test 3") == 0); free(result); } int main(void) { test_asprintf(); return 0; } ## Instruction: Check for return value for asprintf Change-Id: Ib163468aac1a5e52cef28c59b55be2287dc4ba43 Reviewed-on: http://review.couchbase.org/43023 Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com> Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com> ## Code After: static void test_asprintf(void) { char *result = 0; cb_assert(asprintf(&result, "test 1") > 0); cb_assert(strcmp(result, "test 1") == 0); free(result); cb_assert(asprintf(&result, "test %d", 2) > 0); cb_assert(strcmp(result, "test 2") == 0); free(result); cb_assert(asprintf(&result, "%c%c%c%c %d", 't', 'e', 's', 't', 3) > 0); cb_assert(strcmp(result, "test 3") == 0); free(result); } int main(void) { test_asprintf(); return 0; }
static void test_asprintf(void) { char *result = 0; - (void)asprintf(&result, "test 1"); ? ----- + cb_assert(asprintf(&result, "test 1") > 0); ? +++++++++ +++++ cb_assert(strcmp(result, "test 1") == 0); free(result); - (void)asprintf(&result, "test %d", 2); ? ----- + cb_assert(asprintf(&result, "test %d", 2) > 0); ? +++++++++ +++++ cb_assert(strcmp(result, "test 2") == 0); free(result); - (void)asprintf(&result, "%c%c%c%c %d", 't', 'e', 's', 't', 3); ? ----- + cb_assert(asprintf(&result, "%c%c%c%c %d", 't', 'e', 's', 't', 3) > 0); ? +++++++++ +++++ cb_assert(strcmp(result, "test 3") == 0); free(result); } int main(void) { test_asprintf(); return 0; }
6
0.3
3
3
1e984632faa235e11e4a850b3e8a2338201b4104
index.js
index.js
'use strict' module.exports = sort var severities = { true: 2, false: 1, null: 0, undefined: 0 } function sort(file) { file.messages.sort(comparator) return file } function comparator(a, b) { var left = severities[a.fatal] var right = severities[b.fatal] return check(a, b, 'line') || check(a, b, 'column') || right - left || -1 } function check(a, b, property) { return (a[property] || 0) - (b[property] || 0) }
'use strict' module.exports = sort var severities = { true: 2, false: 1, null: 0, undefined: 0 } function sort(file) { file.messages.sort(comparator) return file } function comparator(a, b) { return ( check(a, b, 'line') || check(a, b, 'column') || severities[b.fatal] - severities[a.fatal] || 0 ) } function check(a, b, property) { return (a[property] || 0) - (b[property] || 0) }
Fix sort for equal comparison
Fix sort for equal comparison
JavaScript
mit
wooorm/mdast-message-sort,wooorm/vfile-sort
javascript
## Code Before: 'use strict' module.exports = sort var severities = { true: 2, false: 1, null: 0, undefined: 0 } function sort(file) { file.messages.sort(comparator) return file } function comparator(a, b) { var left = severities[a.fatal] var right = severities[b.fatal] return check(a, b, 'line') || check(a, b, 'column') || right - left || -1 } function check(a, b, property) { return (a[property] || 0) - (b[property] || 0) } ## Instruction: Fix sort for equal comparison ## Code After: 'use strict' module.exports = sort var severities = { true: 2, false: 1, null: 0, undefined: 0 } function sort(file) { file.messages.sort(comparator) return file } function comparator(a, b) { return ( check(a, b, 'line') || check(a, b, 'column') || severities[b.fatal] - severities[a.fatal] || 0 ) } function check(a, b, property) { return (a[property] || 0) - (b[property] || 0) }
'use strict' module.exports = sort var severities = { true: 2, false: 1, null: 0, undefined: 0 } function sort(file) { file.messages.sort(comparator) return file } function comparator(a, b) { - var left = severities[a.fatal] - var right = severities[b.fatal] - return check(a, b, 'line') || check(a, b, 'column') || right - left || -1 + return ( + check(a, b, 'line') || + check(a, b, 'column') || + severities[b.fatal] - severities[a.fatal] || + 0 + ) } function check(a, b, property) { return (a[property] || 0) - (b[property] || 0) }
9
0.36
6
3
32221216347a79f45f94a48ccf53c37c84366016
public/js/ontobee.ontology.js
public/js/ontobee.ontology.js
/** * */ $( document ).ready( function() { var moretext = "Read More"; var lesstext = "Read Less"; $( ".more-link" ).click( function() { if ( $( this ).hasClass( "less" ) ) { $( this ).removeClass( "less" ); $( this ).html( moretext ); } else { $( this ).addClass( "less" ); $( this ).html( lesstext ); } $( this ).parent().children( ".more-skip" ).toggle(); $( this ).prev().toggle(); return false; } ); $( "#list-max" ).change( function() { var url = window.location.href.replace( /\&max\=[0-9]+/g, "" ); window.location = url + "&max=" + $( this ).val(); } ); });
/** * */ $( document ).ready( function() { var moretext = "Read More"; var lesstext = "Read Less"; $( ".more-link" ).click( function() { if ( $( this ).hasClass( "less" ) ) { $( this ).removeClass( "less" ); $( this ).html( moretext ); } else { $( this ).addClass( "less" ); $( this ).html( lesstext ); } $( this ).parent().children( ".more-skip" ).toggle(); $( this ).prev().toggle(); return false; } ); $( "#list-max" ).change( function() { var url = window.location.href.replace( /\&max\=[0-9]+/g, "" ); url.replace( /\&page\=[0-9]+/g, "" ); window.location = url + "&max=" + $( this ).val(); } ); });
Select different max page records will default to show first page.
Select different max page records will default to show first page.
JavaScript
apache-2.0
ontoden/ontobee,e4ong1031/ontobee,ontoden/ontobee,ontoden/ontobee,e4ong1031/ontobee,OntoZoo/ontobee,OntoZoo/ontobee,e4ong1031/ontobee,e4ong1031/ontobee,OntoZoo/ontobee,OntoZoo/ontobee
javascript
## Code Before: /** * */ $( document ).ready( function() { var moretext = "Read More"; var lesstext = "Read Less"; $( ".more-link" ).click( function() { if ( $( this ).hasClass( "less" ) ) { $( this ).removeClass( "less" ); $( this ).html( moretext ); } else { $( this ).addClass( "less" ); $( this ).html( lesstext ); } $( this ).parent().children( ".more-skip" ).toggle(); $( this ).prev().toggle(); return false; } ); $( "#list-max" ).change( function() { var url = window.location.href.replace( /\&max\=[0-9]+/g, "" ); window.location = url + "&max=" + $( this ).val(); } ); }); ## Instruction: Select different max page records will default to show first page. ## Code After: /** * */ $( document ).ready( function() { var moretext = "Read More"; var lesstext = "Read Less"; $( ".more-link" ).click( function() { if ( $( this ).hasClass( "less" ) ) { $( this ).removeClass( "less" ); $( this ).html( moretext ); } else { $( this ).addClass( "less" ); $( this ).html( lesstext ); } $( this ).parent().children( ".more-skip" ).toggle(); $( this ).prev().toggle(); return false; } ); $( "#list-max" ).change( function() { var url = window.location.href.replace( /\&max\=[0-9]+/g, "" ); url.replace( /\&page\=[0-9]+/g, "" ); window.location = url + "&max=" + $( this ).val(); } ); });
/** * */ $( document ).ready( function() { var moretext = "Read More"; var lesstext = "Read Less"; $( ".more-link" ).click( function() { if ( $( this ).hasClass( "less" ) ) { $( this ).removeClass( "less" ); $( this ).html( moretext ); } else { $( this ).addClass( "less" ); $( this ).html( lesstext ); } $( this ).parent().children( ".more-skip" ).toggle(); $( this ).prev().toggle(); return false; } ); $( "#list-max" ).change( function() { var url = window.location.href.replace( /\&max\=[0-9]+/g, "" ); + url.replace( /\&page\=[0-9]+/g, "" ); window.location = url + "&max=" + $( this ).val(); } ); });
1
0.04
1
0
97cba7f88504cbcd588c7d2eb7f37d609fe6fd01
js/application.js
js/application.js
(function(){ console.log('Ready to rock!'); })();
(function(document){ var playground = document.getElementById('playground'); playground.width = document.body.clientWidth; playground.height = document.body.clientHeight; })(document);
Scale the canvas to match the body
Scale the canvas to match the body
JavaScript
mit
dvberkel/housewarming,dvberkel/housewarming
javascript
## Code Before: (function(){ console.log('Ready to rock!'); })(); ## Instruction: Scale the canvas to match the body ## Code After: (function(document){ var playground = document.getElementById('playground'); playground.width = document.body.clientWidth; playground.height = document.body.clientHeight; })(document);
- (function(){ + (function(document){ ? ++++++++ - console.log('Ready to rock!'); - })(); + var playground = document.getElementById('playground'); + playground.width = document.body.clientWidth; + playground.height = document.body.clientHeight; + })(document);
8
2.666667
5
3
abcb932f9a4026d415cd11f1cf553e129a42f512
.travis.yml
.travis.yml
os: - linux - osx language: c sudo: no compiler: - gcc cache: ccache script: - cd ${TRAVIS_BUILD_DIR} - mkdir build - cd build - ../configure --prefix=${TRAVIS_BUILD_DIR}/install - make -j4 - make install notificastions: email: recipients: - releng@pivotal.io on_success: change on_failure: always
os: - linux - osx language: c sudo: no compiler: - gcc cache: ccache script: - cd ${TRAVIS_BUILD_DIR} - mkdir build - cd build - ../configure --prefix=${TRAVIS_BUILD_DIR}/install - make -j4 - rm -fr $PTRAVIS_BUILD_DIR}/install - make install notificastions: email: recipients: - releng@pivotal.io on_success: change on_failure: always
Fix 'make install' failure to clean the install folder first
Fix 'make install' failure to clean the install folder first
YAML
apache-2.0
xinzweb/gp-xerces,xinzweb/gp-xerces,xinzweb/gp-xerces,xinzweb/gp-xerces
yaml
## Code Before: os: - linux - osx language: c sudo: no compiler: - gcc cache: ccache script: - cd ${TRAVIS_BUILD_DIR} - mkdir build - cd build - ../configure --prefix=${TRAVIS_BUILD_DIR}/install - make -j4 - make install notificastions: email: recipients: - releng@pivotal.io on_success: change on_failure: always ## Instruction: Fix 'make install' failure to clean the install folder first ## Code After: os: - linux - osx language: c sudo: no compiler: - gcc cache: ccache script: - cd ${TRAVIS_BUILD_DIR} - mkdir build - cd build - ../configure --prefix=${TRAVIS_BUILD_DIR}/install - make -j4 - rm -fr $PTRAVIS_BUILD_DIR}/install - make install notificastions: email: recipients: - releng@pivotal.io on_success: change on_failure: always
os: - linux - osx language: c sudo: no compiler: - gcc cache: ccache script: - cd ${TRAVIS_BUILD_DIR} - mkdir build - cd build - ../configure --prefix=${TRAVIS_BUILD_DIR}/install - make -j4 + - rm -fr $PTRAVIS_BUILD_DIR}/install - make install notificastions: email: recipients: - releng@pivotal.io on_success: change on_failure: always
1
0.04
1
0
6b65086eaabbd082067c64ec6a45b51ddfa6cc22
_entries/66_toggle.md
_entries/66_toggle.md
--- title: toggle name: functions-toggle --- **function toggle(node);** **function toggle(node, slide);** * slide: true / false Open or close the tree node.
--- title: toggle name: functions-toggle --- **function toggle(node);** **function toggle(node, slide);** * slide: true / false Open or close the tree node. Default: toggle with slide animation: {% highlight js %} var node = $tree.tree('getNodeById', 123); $tree.tree('toggle', node); {% endhighlight %} Toggle without animation: {% highlight js %} $tree.tree('toggle', node, false); {% endhighlight %}
Add example code for toggle function
Add example code for toggle function
Markdown
apache-2.0
mbraak/jqTree,mbraak/jqTree,mbraak/jqTree
markdown
## Code Before: --- title: toggle name: functions-toggle --- **function toggle(node);** **function toggle(node, slide);** * slide: true / false Open or close the tree node. ## Instruction: Add example code for toggle function ## Code After: --- title: toggle name: functions-toggle --- **function toggle(node);** **function toggle(node, slide);** * slide: true / false Open or close the tree node. Default: toggle with slide animation: {% highlight js %} var node = $tree.tree('getNodeById', 123); $tree.tree('toggle', node); {% endhighlight %} Toggle without animation: {% highlight js %} $tree.tree('toggle', node, false); {% endhighlight %}
--- title: toggle name: functions-toggle --- **function toggle(node);** **function toggle(node, slide);** * slide: true / false Open or close the tree node. + + Default: toggle with slide animation: + + {% highlight js %} + var node = $tree.tree('getNodeById', 123); + $tree.tree('toggle', node); + {% endhighlight %} + + Toggle without animation: + + {% highlight js %} + $tree.tree('toggle', node, false); + {% endhighlight %}
13
1.083333
13
0
d011481e11e4e5317a60c0f78ad91ec1c47a0c69
lib/queue_classic/durable_array.rb
lib/queue_classic/durable_array.rb
module QC class DurableArray def initialize(database) @database = database @table_name = @database.table_name @top_boundary = @database.top_boundary end def <<(details) execute("INSERT INTO #{@table_name} (details) VALUES ($1);", JSON.dump(details)) @database.notify if ENV["QC_LISTENING_WORKER"] == "true" end def count execute("SELECT COUNT(*) FROM #{@table_name}")[0]["count"].to_i end def delete(job) execute("DELETE FROM #{@table_name} WHERE id = $1;", job.id) job end def find(job) find_one {"SELECT * FROM #{@table_name} WHERE id = #{job.id}"} end def search_details_column(q) find_many { ["SELECT * FROM #{@table_name} WHERE details LIKE $1;", "%#{q}%"] } end def first find_one { ["SELECT * FROM lock_head($1, $2);", @table_name, @top_boundary] } end def each execute("SELECT * FROM #{@table_name} ORDER BY id ASC;").each do |r| yield Job.new(r) end end def find_one(&blk) find_many(&blk).pop end def find_many execute(*yield).map { |r| Job.new(r) } end def execute(sql, *params) @database.execute(sql, *params) end end end
module QC class DurableArray def initialize(database) @database = database @table_name = @database.table_name @top_boundary = @database.top_boundary end def <<(details) execute("INSERT INTO #{@table_name} (details) VALUES ($1);", JSON.dump(details)) @database.notify if ENV["QC_LISTENING_WORKER"] == "true" end def count execute("SELECT COUNT(*) FROM #{@table_name}")[0]["count"].to_i end def delete(job) execute("DELETE FROM #{@table_name} WHERE id = $1;", job.id) job end def search_details_column(q) find_many { ["SELECT * FROM #{@table_name} WHERE details LIKE $1;", "%#{q}%"] } end def first find_one { ["SELECT * FROM lock_head($1, $2);", @table_name, @top_boundary] } end def each execute("SELECT * FROM #{@table_name} ORDER BY id ASC;").each do |r| yield Job.new(r) end end def find_one(&blk) find_many(&blk).pop end def find_many execute(*yield).map { |r| Job.new(r) } end def execute(sql, *params) @database.execute(sql, *params) end end end
Remove unused and seemingly useless method.
Remove unused and seemingly useless method.
Ruby
mit
clemensg/queue_classic,bdon/queue_classic_java,mashroomxl/queue_classic,QueueClassic/queue_classic,QueueClassic/queue_classic,YodelTalk/queue_classic
ruby
## Code Before: module QC class DurableArray def initialize(database) @database = database @table_name = @database.table_name @top_boundary = @database.top_boundary end def <<(details) execute("INSERT INTO #{@table_name} (details) VALUES ($1);", JSON.dump(details)) @database.notify if ENV["QC_LISTENING_WORKER"] == "true" end def count execute("SELECT COUNT(*) FROM #{@table_name}")[0]["count"].to_i end def delete(job) execute("DELETE FROM #{@table_name} WHERE id = $1;", job.id) job end def find(job) find_one {"SELECT * FROM #{@table_name} WHERE id = #{job.id}"} end def search_details_column(q) find_many { ["SELECT * FROM #{@table_name} WHERE details LIKE $1;", "%#{q}%"] } end def first find_one { ["SELECT * FROM lock_head($1, $2);", @table_name, @top_boundary] } end def each execute("SELECT * FROM #{@table_name} ORDER BY id ASC;").each do |r| yield Job.new(r) end end def find_one(&blk) find_many(&blk).pop end def find_many execute(*yield).map { |r| Job.new(r) } end def execute(sql, *params) @database.execute(sql, *params) end end end ## Instruction: Remove unused and seemingly useless method. ## Code After: module QC class DurableArray def initialize(database) @database = database @table_name = @database.table_name @top_boundary = @database.top_boundary end def <<(details) execute("INSERT INTO #{@table_name} (details) VALUES ($1);", JSON.dump(details)) @database.notify if ENV["QC_LISTENING_WORKER"] == "true" end def count execute("SELECT COUNT(*) FROM #{@table_name}")[0]["count"].to_i end def delete(job) execute("DELETE FROM #{@table_name} WHERE id = $1;", job.id) job end def search_details_column(q) find_many { ["SELECT * FROM #{@table_name} WHERE details LIKE $1;", "%#{q}%"] } end def first find_one { ["SELECT * FROM lock_head($1, $2);", @table_name, @top_boundary] } end def each execute("SELECT * FROM #{@table_name} ORDER BY id ASC;").each do |r| yield Job.new(r) end end def find_one(&blk) find_many(&blk).pop end def find_many execute(*yield).map { |r| Job.new(r) } end def execute(sql, *params) @database.execute(sql, *params) end end end
module QC class DurableArray def initialize(database) @database = database @table_name = @database.table_name @top_boundary = @database.top_boundary end def <<(details) execute("INSERT INTO #{@table_name} (details) VALUES ($1);", JSON.dump(details)) @database.notify if ENV["QC_LISTENING_WORKER"] == "true" end def count execute("SELECT COUNT(*) FROM #{@table_name}")[0]["count"].to_i end def delete(job) execute("DELETE FROM #{@table_name} WHERE id = $1;", job.id) job - end - - def find(job) - find_one {"SELECT * FROM #{@table_name} WHERE id = #{job.id}"} end def search_details_column(q) find_many { ["SELECT * FROM #{@table_name} WHERE details LIKE $1;", "%#{q}%"] } end def first find_one { ["SELECT * FROM lock_head($1, $2);", @table_name, @top_boundary] } end def each execute("SELECT * FROM #{@table_name} ORDER BY id ASC;").each do |r| yield Job.new(r) end end def find_one(&blk) find_many(&blk).pop end def find_many execute(*yield).map { |r| Job.new(r) } end def execute(sql, *params) @database.execute(sql, *params) end end end
4
0.072727
0
4
f572b93871143716fe90bc9c8f49b7f1aa559a12
src/basics/content.jl
src/basics/content.jl
export list, image, link, abbr @api list => List <: Tile begin curry(tiles::AbstractArray) kwarg(ordered::Bool=false) end render(l::List) = Elem(l.ordered ? :ol : :ul, map(x -> Elem(:li, render(x)), l.tiles)) @api image => Image <: Tile begin arg(url::String) kwarg(alt::String="") end render(i::Image) = Elem(:div, Elem(:img, src=i.url, alt=i.alt)) @api link => Hyperlink <: Tile begin arg(url::String) curry(tiles::TileList) end render(a::Hyperlink) = Elem(:a, render(a.tiles), href=a.url) @api abbr => Abbr <: Tile begin arg(title::String) curry(tiles::TileList) end render(a::Abbr) = Elem(:abbr, render(a.tiles), title=a.title)
export list, image, link, abbr @api list => List <: Tile begin curry(tiles::AbstractArray) kwarg(ordered::Bool=false) end render(l::List) = Elem(l.ordered ? :ol : :ul, map(x -> Elem(:li, render(x)), l.tiles)) @api image => Image <: Tile begin arg(url::String) kwarg(alt::String="") end render(i::Image) = Elem(:img, src=i.url, alt=i.alt, style=["width"=>"auto", "height"=>"auto", "display" => "block"]) @api link => Hyperlink <: Tile begin arg(url::String) curry(tiles::TileList) end render(a::Hyperlink) = Elem(:a, render(a.tiles), href=a.url) @api abbr => Abbr <: Tile begin arg(title::String) curry(tiles::TileList) end render(a::Abbr) = Elem(:abbr, render(a.tiles), title=a.title)
Fix images in flex boxes, but not really :\
Fix images in flex boxes, but not really :\
Julia
mit
pabloferz/Escher.jl,jgoldfar/Escher.jl,pabloferz/Escher.jl,andrewrothstein/Escher.jl,jgoldfar/Escher.jl,maximsch2/Escher.jl,robertfeldt/Escher.jl,cdsousa/Escher.jl,cdsousa/Escher.jl,PallHaraldsson/Escher.jl,timholy/Escher.jl,jiahao/Escher.jl,mdcfrancis/Escher.jl,mdcfrancis/Escher.jl,PallHaraldsson/Escher.jl,CLUSTERfoo/Escher.jl,JuliaPackageMirrors/Escher.jl,rohitvarkey/Escher.jl,timholy/Escher.jl,jiahao/Escher.jl,astrieanna/Escher.jl,JuliaPackageMirrors/Escher.jl,maximsch2/Escher.jl,robertfeldt/Escher.jl,CLUSTERfoo/Escher.jl,rohitvarkey/Escher.jl,astrieanna/Escher.jl,MichaeLeroy/Escher.jl,MichaeLeroy/Escher.jl,andrewrothstein/Escher.jl
julia
## Code Before: export list, image, link, abbr @api list => List <: Tile begin curry(tiles::AbstractArray) kwarg(ordered::Bool=false) end render(l::List) = Elem(l.ordered ? :ol : :ul, map(x -> Elem(:li, render(x)), l.tiles)) @api image => Image <: Tile begin arg(url::String) kwarg(alt::String="") end render(i::Image) = Elem(:div, Elem(:img, src=i.url, alt=i.alt)) @api link => Hyperlink <: Tile begin arg(url::String) curry(tiles::TileList) end render(a::Hyperlink) = Elem(:a, render(a.tiles), href=a.url) @api abbr => Abbr <: Tile begin arg(title::String) curry(tiles::TileList) end render(a::Abbr) = Elem(:abbr, render(a.tiles), title=a.title) ## Instruction: Fix images in flex boxes, but not really :\ ## Code After: export list, image, link, abbr @api list => List <: Tile begin curry(tiles::AbstractArray) kwarg(ordered::Bool=false) end render(l::List) = Elem(l.ordered ? :ol : :ul, map(x -> Elem(:li, render(x)), l.tiles)) @api image => Image <: Tile begin arg(url::String) kwarg(alt::String="") end render(i::Image) = Elem(:img, src=i.url, alt=i.alt, style=["width"=>"auto", "height"=>"auto", "display" => "block"]) @api link => Hyperlink <: Tile begin arg(url::String) curry(tiles::TileList) end render(a::Hyperlink) = Elem(:a, render(a.tiles), href=a.url) @api abbr => Abbr <: Tile begin arg(title::String) curry(tiles::TileList) end render(a::Abbr) = Elem(:abbr, render(a.tiles), title=a.title)
export list, image, link, abbr @api list => List <: Tile begin curry(tiles::AbstractArray) kwarg(ordered::Bool=false) end render(l::List) = Elem(l.ordered ? :ol : :ul, map(x -> Elem(:li, render(x)), l.tiles)) @api image => Image <: Tile begin arg(url::String) kwarg(alt::String="") end render(i::Image) = - Elem(:div, Elem(:img, src=i.url, alt=i.alt)) + Elem(:img, src=i.url, alt=i.alt, style=["width"=>"auto", "height"=>"auto", "display" => "block"]) @api link => Hyperlink <: Tile begin arg(url::String) curry(tiles::TileList) end render(a::Hyperlink) = Elem(:a, render(a.tiles), href=a.url) @api abbr => Abbr <: Tile begin arg(title::String) curry(tiles::TileList) end render(a::Abbr) = Elem(:abbr, render(a.tiles), title=a.title)
2
0.058824
1
1
52dc71fd4fcd927b02257e479675b6b16087e4e2
backend/app/assets/javascripts/spree/backend/templates/promotions/calculators/fields/tiered_flat_rate.hbs
backend/app/assets/javascripts/spree/backend/templates/promotions/calculators/fields/tiered_flat_rate.hbs
<div class="fullwidth tier"> <a class="fa fa-trash remove js-remove-tier"></a> <div class="row"> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-base-input form-control" type="text" value={{baseField.value}}> </div> </div> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-value-input form-control" name="{{valueField.name}}" type="text" value={{valueField.value}}> </div> </div> </div> <div class="clear"></div> </div>
<div class="fullwidth tier"> <div class="row"> <div class="col-xs-6"> <a class="fa fa-trash remove js-remove-tier"></a> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-base-input form-control" type="text" value={{baseField.value}}> </div> </div> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-value-input form-control" name="{{valueField.name}}" type="text" value={{valueField.value}}> </div> </div> </div> <div class="clear"></div> </div>
Change tiered calculator hbs so remove button is not covered by a column
Change tiered calculator hbs so remove button is not covered by a column
Handlebars
bsd-3-clause
pervino/solidus,pervino/solidus,Arpsara/solidus,pervino/solidus,Arpsara/solidus,pervino/solidus,Arpsara/solidus,Arpsara/solidus
handlebars
## Code Before: <div class="fullwidth tier"> <a class="fa fa-trash remove js-remove-tier"></a> <div class="row"> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-base-input form-control" type="text" value={{baseField.value}}> </div> </div> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-value-input form-control" name="{{valueField.name}}" type="text" value={{valueField.value}}> </div> </div> </div> <div class="clear"></div> </div> ## Instruction: Change tiered calculator hbs so remove button is not covered by a column ## Code After: <div class="fullwidth tier"> <div class="row"> <div class="col-xs-6"> <a class="fa fa-trash remove js-remove-tier"></a> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-base-input form-control" type="text" value={{baseField.value}}> </div> </div> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-value-input form-control" name="{{valueField.name}}" type="text" value={{valueField.value}}> </div> </div> </div> <div class="clear"></div> </div>
<div class="fullwidth tier"> - <a class="fa fa-trash remove js-remove-tier"></a> <div class="row"> <div class="col-xs-6"> + <a class="fa fa-trash remove js-remove-tier"></a> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-base-input form-control" type="text" value={{baseField.value}}> </div> </div> <div class="col-xs-6"> <div class="input-group"> <span class="input-group-addon">$</span> <input class="js-value-input form-control" name="{{valueField.name}}" type="text" value={{valueField.value}}> </div> </div> </div> <div class="clear"></div> </div>
2
0.105263
1
1
43ee5c3d4a53c94ce181a53c2b7e5bfcd5418448
fish/functions/fish_prompt.fish
fish/functions/fish_prompt.fish
function fish_prompt --description 'Compose fish prompt' set -l last_status $status set -l prompt_sign (__fish_prompt_sign) switch $last_status case 0 set last_status '' case '*' set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' ' end echo -n -s $last_status (prompt_pwd) $prompt_sign ' ' end
function fish_prompt --description 'Compose fish prompt' set -l last_status $status switch $last_status case 0 set last_status '' case '*' set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' ' end echo -n -s $last_status (prompt_pwd) (__fish_prompt_sign) ' ' end
Delete temp var for prompt sign
fish: Delete temp var for prompt sign
fish
mit
sebastianmarkow/dotfiles
fish
## Code Before: function fish_prompt --description 'Compose fish prompt' set -l last_status $status set -l prompt_sign (__fish_prompt_sign) switch $last_status case 0 set last_status '' case '*' set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' ' end echo -n -s $last_status (prompt_pwd) $prompt_sign ' ' end ## Instruction: fish: Delete temp var for prompt sign ## Code After: function fish_prompt --description 'Compose fish prompt' set -l last_status $status switch $last_status case 0 set last_status '' case '*' set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' ' end echo -n -s $last_status (prompt_pwd) (__fish_prompt_sign) ' ' end
function fish_prompt --description 'Compose fish prompt' set -l last_status $status - set -l prompt_sign (__fish_prompt_sign) switch $last_status case 0 set last_status '' case '*' set last_status (set_color red) $__fish_prompt_sign_error (set_color normal) ' ' end - echo -n -s $last_status (prompt_pwd) $prompt_sign ' ' ? ^ + echo -n -s $last_status (prompt_pwd) (__fish_prompt_sign) ' ' ? ^^^^^^^^ + end
3
0.214286
1
2
c276613451967bf9e8eefde36c7df09490465a1a
README.md
README.md
Planetary == For a fresh checkout, do: `git submodule init` `git submodule update` And set a `CINDER_PATH_username` variable in the Build Settings corresponding to wherever you have installed Cinder. See also -- * [Planetary extras](https://github.com/cooperhewitt/PlanetaryExtras) * [Planetary object page on the Cooper-Hewitt collections website](http://collection.cooperhewitt.org/objects/35520989/)
Planetary == For a fresh checkout, do: `git submodule init` `git submodule update` And set a `CINDER_PATH_username` variable in the Build Settings corresponding to wherever you have installed Cinder. See also -- * [Planetary: collecting and preserving code as a living object](https://www.cooperhewitt.org/object-of-the-day/2013/08/26/planetary-collecting-and-preserving-code-living-object) * [Planetary object page on the Cooper-Hewitt collections website](http://collection.cooperhewitt.org/objects/35520989/) * [Planetary extras](https://github.com/cooperhewitt/PlanetaryExtras)
Add link to blog post
Add link to blog post
Markdown
bsd-3-clause
cooperhewitt/Planetary,cooperhewitt/Planetary,kidaa/Planetary,cooperhewitt/Planetary,kidaa/Planetary,kidaa/Planetary
markdown
## Code Before: Planetary == For a fresh checkout, do: `git submodule init` `git submodule update` And set a `CINDER_PATH_username` variable in the Build Settings corresponding to wherever you have installed Cinder. See also -- * [Planetary extras](https://github.com/cooperhewitt/PlanetaryExtras) * [Planetary object page on the Cooper-Hewitt collections website](http://collection.cooperhewitt.org/objects/35520989/) ## Instruction: Add link to blog post ## Code After: Planetary == For a fresh checkout, do: `git submodule init` `git submodule update` And set a `CINDER_PATH_username` variable in the Build Settings corresponding to wherever you have installed Cinder. See also -- * [Planetary: collecting and preserving code as a living object](https://www.cooperhewitt.org/object-of-the-day/2013/08/26/planetary-collecting-and-preserving-code-living-object) * [Planetary object page on the Cooper-Hewitt collections website](http://collection.cooperhewitt.org/objects/35520989/) * [Planetary extras](https://github.com/cooperhewitt/PlanetaryExtras)
Planetary == For a fresh checkout, do: `git submodule init` `git submodule update` And set a `CINDER_PATH_username` variable in the Build Settings corresponding to wherever you have installed Cinder. See also -- + * [Planetary: collecting and preserving code as a living object](https://www.cooperhewitt.org/object-of-the-day/2013/08/26/planetary-collecting-and-preserving-code-living-object) + * [Planetary object page on the Cooper-Hewitt collections website](http://collection.cooperhewitt.org/objects/35520989/) * [Planetary extras](https://github.com/cooperhewitt/PlanetaryExtras) - * [Planetary object page on the Cooper-Hewitt collections website](http://collection.cooperhewitt.org/objects/35520989/)
3
0.2
2
1
057a7a46436ced559cc5652c924775f8d0a00fe9
app/views/channels/search.html.haml
app/views/channels/search.html.haml
%h2== Search for "#{h(@query)}" (#{@search.total_entries} results) -if @correction == Did you mean #{@correction}? -unless @search.any? %em No results found. -@search.each do |result| %p -if result.instance_of? Channel -channel = result =link_to "Channel Title: #{channel.title}", channel_path(channel) -elsif result.instance_of? Post -post = result -post_link = channel_path(post.channel, :anchor => "post_#{post.id}") =link_to "Channel Title: #{post.channel.title}", post_link %br/ =link_to "Post: #{highlight_results h(post.body), @query}".html_safe, post_link ==by #{user_name(post.channel.user)} =will_paginate(@search)
.block %h2== Search for "#{h(@query)}" (#{@search.total_entries} results) -if @correction == Did you mean #{@correction}? -unless @search.any? %em No results found. -@search.each do |result| %p -if result.instance_of? Channel -channel = result =link_to "Channel Title: #{channel.title}", channel_path(channel) -elsif result.instance_of? Post -post = result -post_link = channel_path(post.channel, :anchor => "post_#{post.id}") =link_to "Channel Title: #{post.channel.title}", post_link %br/ =link_to "Post: #{highlight_results h(post.body), @query}".html_safe, post_link ==by #{user_name(post.channel.user)} =will_paginate(@search)
Put search results inside block
Put search results inside block
Haml
mit
mutle/fu2,mutle/fu2,mutle/fu2,mutle/fu2
haml
## Code Before: %h2== Search for "#{h(@query)}" (#{@search.total_entries} results) -if @correction == Did you mean #{@correction}? -unless @search.any? %em No results found. -@search.each do |result| %p -if result.instance_of? Channel -channel = result =link_to "Channel Title: #{channel.title}", channel_path(channel) -elsif result.instance_of? Post -post = result -post_link = channel_path(post.channel, :anchor => "post_#{post.id}") =link_to "Channel Title: #{post.channel.title}", post_link %br/ =link_to "Post: #{highlight_results h(post.body), @query}".html_safe, post_link ==by #{user_name(post.channel.user)} =will_paginate(@search) ## Instruction: Put search results inside block ## Code After: .block %h2== Search for "#{h(@query)}" (#{@search.total_entries} results) -if @correction == Did you mean #{@correction}? -unless @search.any? %em No results found. -@search.each do |result| %p -if result.instance_of? Channel -channel = result =link_to "Channel Title: #{channel.title}", channel_path(channel) -elsif result.instance_of? Post -post = result -post_link = channel_path(post.channel, :anchor => "post_#{post.id}") =link_to "Channel Title: #{post.channel.title}", post_link %br/ =link_to "Post: #{highlight_results h(post.body), @query}".html_safe, post_link ==by #{user_name(post.channel.user)} =will_paginate(@search)
+ .block - %h2== Search for "#{h(@query)}" (#{@search.total_entries} results) + %h2== Search for "#{h(@query)}" (#{@search.total_entries} results) ? ++ - -if @correction + -if @correction ? ++ - == Did you mean #{@correction}? + == Did you mean #{@correction}? ? ++ - -unless @search.any? + -unless @search.any? ? ++ - %em No results found. + %em No results found. ? ++ - -@search.each do |result| + -@search.each do |result| ? ++ - %p + %p ? ++ - -if result.instance_of? Channel + -if result.instance_of? Channel ? ++ - -channel = result + -channel = result ? ++ - =link_to "Channel Title: #{channel.title}", channel_path(channel) + =link_to "Channel Title: #{channel.title}", channel_path(channel) ? ++ - -elsif result.instance_of? Post + -elsif result.instance_of? Post ? ++ - -post = result + -post = result ? ++ - -post_link = channel_path(post.channel, :anchor => "post_#{post.id}") + -post_link = channel_path(post.channel, :anchor => "post_#{post.id}") ? ++ - =link_to "Channel Title: #{post.channel.title}", post_link + =link_to "Channel Title: #{post.channel.title}", post_link ? ++ - %br/ + %br/ ? ++ - =link_to "Post: #{highlight_results h(post.body), @query}".html_safe, post_link + =link_to "Post: #{highlight_results h(post.body), @query}".html_safe, post_link ? ++ - ==by #{user_name(post.channel.user)} + ==by #{user_name(post.channel.user)} ? ++ - =will_paginate(@search) + =will_paginate(@search) ? ++
37
2.055556
19
18
9f85614504d5d000a1f3dbd3f32dc557aaff348a
react/fields/TextField/TextField.js
react/fields/TextField/TextField.js
import styles from './TextField.less'; import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import ErrorIcon from '../../icons/ErrorIcon/ErrorIcon'; export default class TextField extends Component { static propTypes = { className: PropTypes.string, inputProps: PropTypes.object, invalid: PropTypes.bool, message: PropTypes.string }; static defaultProps = { className: '', inputProps: {}, invalid: false, message: '' }; constructor() { super(); this.storeInputReference = this.storeInputReference.bind(this); } storeInputReference(input) { if (input !== null) { this.input = input; } } render() { const { className, invalid, message, inputProps, ...props } = this.props; const { className: inputClassName, ...remainingInputProps } = inputProps; return ( <div className={classNames(styles.root, className, { [styles.invalid]: invalid })} {...props}> <input className={classNames(styles.input, inputClassName)} ref={this.storeInputReference} {...remainingInputProps} /> { invalid && <p className={styles.message}> { message && <ErrorIcon filled={true} className={styles.messageIcon} svgClassName={styles.messageIconSvg} /> } { message } </p> } </div> ); } }
import styles from './TextField.less'; import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import ErrorIcon from '../../icons/ErrorIcon/ErrorIcon'; export default class TextField extends Component { static propTypes = { className: PropTypes.string, inputProps: PropTypes.object, invalid: PropTypes.bool, message: PropTypes.string }; static defaultProps = { className: '', inputProps: {}, invalid: false, message: '' }; constructor() { super(); this.storeInputReference = this.storeInputReference.bind(this); } storeInputReference(input) { if (input !== null) { this.input = input; } } render() { const { className, invalid, message, inputProps, ...props } = this.props; const { className: inputClassName, ...remainingInputProps } = inputProps; return ( <div className={classNames(styles.root, className, { [styles.invalid]: invalid })} {...props}> <input className={classNames(styles.input, inputClassName)} ref={this.storeInputReference} {...remainingInputProps} /> { invalid && <p className={styles.message} data-automation="textfield-invalid-message"> { message && <ErrorIcon filled={true} className={styles.messageIcon} svgClassName={styles.messageIconSvg} /> } { message } </p> } </div> ); } }
Add data-automation tag to text field error message
Add data-automation tag to text field error message
JavaScript
mit
seekinternational/seek-asia-style-guide,seek-oss/seek-style-guide
javascript
## Code Before: import styles from './TextField.less'; import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import ErrorIcon from '../../icons/ErrorIcon/ErrorIcon'; export default class TextField extends Component { static propTypes = { className: PropTypes.string, inputProps: PropTypes.object, invalid: PropTypes.bool, message: PropTypes.string }; static defaultProps = { className: '', inputProps: {}, invalid: false, message: '' }; constructor() { super(); this.storeInputReference = this.storeInputReference.bind(this); } storeInputReference(input) { if (input !== null) { this.input = input; } } render() { const { className, invalid, message, inputProps, ...props } = this.props; const { className: inputClassName, ...remainingInputProps } = inputProps; return ( <div className={classNames(styles.root, className, { [styles.invalid]: invalid })} {...props}> <input className={classNames(styles.input, inputClassName)} ref={this.storeInputReference} {...remainingInputProps} /> { invalid && <p className={styles.message}> { message && <ErrorIcon filled={true} className={styles.messageIcon} svgClassName={styles.messageIconSvg} /> } { message } </p> } </div> ); } } ## Instruction: Add data-automation tag to text field error message ## Code After: import styles from './TextField.less'; import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import ErrorIcon from '../../icons/ErrorIcon/ErrorIcon'; export default class TextField extends Component { static propTypes = { className: PropTypes.string, inputProps: PropTypes.object, invalid: PropTypes.bool, message: PropTypes.string }; static defaultProps = { className: '', inputProps: {}, invalid: false, message: '' }; constructor() { super(); this.storeInputReference = this.storeInputReference.bind(this); } storeInputReference(input) { if (input !== null) { this.input = input; } } render() { const { className, invalid, message, inputProps, ...props } = this.props; const { className: inputClassName, ...remainingInputProps } = inputProps; return ( <div className={classNames(styles.root, className, { [styles.invalid]: invalid })} {...props}> <input className={classNames(styles.input, inputClassName)} ref={this.storeInputReference} {...remainingInputProps} /> { invalid && <p className={styles.message} data-automation="textfield-invalid-message"> { message && <ErrorIcon filled={true} className={styles.messageIcon} svgClassName={styles.messageIconSvg} /> } { message } </p> } </div> ); } }
import styles from './TextField.less'; import React, { Component, PropTypes } from 'react'; import classNames from 'classnames'; import ErrorIcon from '../../icons/ErrorIcon/ErrorIcon'; export default class TextField extends Component { static propTypes = { className: PropTypes.string, inputProps: PropTypes.object, invalid: PropTypes.bool, message: PropTypes.string }; static defaultProps = { className: '', inputProps: {}, invalid: false, message: '' }; constructor() { super(); this.storeInputReference = this.storeInputReference.bind(this); } storeInputReference(input) { if (input !== null) { this.input = input; } } render() { const { className, invalid, message, inputProps, ...props } = this.props; const { className: inputClassName, ...remainingInputProps } = inputProps; return ( <div className={classNames(styles.root, className, { [styles.invalid]: invalid })} {...props}> <input className={classNames(styles.input, inputClassName)} ref={this.storeInputReference} {...remainingInputProps} /> { invalid && - <p className={styles.message}> + <p className={styles.message} data-automation="textfield-invalid-message"> { message && <ErrorIcon filled={true} className={styles.messageIcon} svgClassName={styles.messageIconSvg} /> } { message } </p> } </div> ); } }
2
0.037037
1
1
1aa38d423fa0dc253edd611113245e648e7da3a5
README.md
README.md
three-mm3d ========== A Misfit Model 3D format (.mm3d) loader for three.js. This is not based on .mm3d to .json converters. This code actually loads and parses the binary file itself. See live demo at https://d61c20519de147ce3055249fdf53f3af0b22de1d.googledrive.com/host/0B9scOMN0JFaXVjgxYzllaVljdGc/test.html P.S.: demo-r68 is source code for the demo compatible with the latest three.js revision (r68). This is the demo linked above. Between r67 and r68, three.js's animation system was changed. For r67 compatible code, see demo-r67. Live demo for demo-r67 is here: https://b391e55ae15b45d7ed9872931f9ef0e1f7e3541a.googledrive.com/host/0B9scOMN0JFaXY0ptc2haSTdZR3c/test.html .
three-mm3d ========== A Misfit Model 3D format (.mm3d) loader for three.js. This is not based on .mm3d to .json converters. This code actually loads and parses the binary file itself. NOTE: As of the time of writing this note, I found that a peculiarity of three.js animation keys compromises usage of the skeletal animation features. An issue has been opened by me, https://github.com/mrdoob/three.js/issues/6065 and I am expecting that this is solved soon. Meanwhile, it is not recommend for skeletal animation features to be depended upon. Please rely on morph target animations only, as those aren't affected and are working correctly. See live demo at https://d61c20519de147ce3055249fdf53f3af0b22de1d.googledrive.com/host/0B9scOMN0JFaXVjgxYzllaVljdGc/test.html P.S.: demo-r68 is source code for the demo compatible with three.js revision r68. This is the demo linked above. Between r67 and r68, three.js's animation system was changed. For r67 compatible code, see demo-r67. Live demo for demo-r67 is here: https://b391e55ae15b45d7ed9872931f9ef0e1f7e3541a.googledrive.com/host/0B9scOMN0JFaXY0ptc2haSTdZR3c/test.html . demo-r68 is also compatible with three.js revisions r69 and r70.
Add warning about three.js issue
Add warning about three.js issue
Markdown
mit
lucasdealmeidasm/three-mm3d,lucasdealmeidasm/three-mm3d
markdown
## Code Before: three-mm3d ========== A Misfit Model 3D format (.mm3d) loader for three.js. This is not based on .mm3d to .json converters. This code actually loads and parses the binary file itself. See live demo at https://d61c20519de147ce3055249fdf53f3af0b22de1d.googledrive.com/host/0B9scOMN0JFaXVjgxYzllaVljdGc/test.html P.S.: demo-r68 is source code for the demo compatible with the latest three.js revision (r68). This is the demo linked above. Between r67 and r68, three.js's animation system was changed. For r67 compatible code, see demo-r67. Live demo for demo-r67 is here: https://b391e55ae15b45d7ed9872931f9ef0e1f7e3541a.googledrive.com/host/0B9scOMN0JFaXY0ptc2haSTdZR3c/test.html . ## Instruction: Add warning about three.js issue ## Code After: three-mm3d ========== A Misfit Model 3D format (.mm3d) loader for three.js. This is not based on .mm3d to .json converters. This code actually loads and parses the binary file itself. NOTE: As of the time of writing this note, I found that a peculiarity of three.js animation keys compromises usage of the skeletal animation features. An issue has been opened by me, https://github.com/mrdoob/three.js/issues/6065 and I am expecting that this is solved soon. Meanwhile, it is not recommend for skeletal animation features to be depended upon. Please rely on morph target animations only, as those aren't affected and are working correctly. See live demo at https://d61c20519de147ce3055249fdf53f3af0b22de1d.googledrive.com/host/0B9scOMN0JFaXVjgxYzllaVljdGc/test.html P.S.: demo-r68 is source code for the demo compatible with three.js revision r68. This is the demo linked above. Between r67 and r68, three.js's animation system was changed. For r67 compatible code, see demo-r67. Live demo for demo-r67 is here: https://b391e55ae15b45d7ed9872931f9ef0e1f7e3541a.googledrive.com/host/0B9scOMN0JFaXY0ptc2haSTdZR3c/test.html . demo-r68 is also compatible with three.js revisions r69 and r70.
three-mm3d ========== A Misfit Model 3D format (.mm3d) loader for three.js. This is not based on .mm3d to .json converters. This code actually loads and parses the binary file itself. + NOTE: As of the time of writing this note, I found that a peculiarity of three.js animation keys compromises usage of the skeletal animation features. An issue has been opened by me, https://github.com/mrdoob/three.js/issues/6065 and I am expecting that this is solved soon. Meanwhile, it is not recommend for skeletal animation features to be depended upon. Please rely on morph target animations only, as those aren't affected and are working correctly. + See live demo at https://d61c20519de147ce3055249fdf53f3af0b22de1d.googledrive.com/host/0B9scOMN0JFaXVjgxYzllaVljdGc/test.html - P.S.: demo-r68 is source code for the demo compatible with the latest three.js revision (r68). This is the demo linked above. Between r67 and r68, three.js's animation system was changed. For r67 compatible code, see demo-r67. Live demo for demo-r67 is here: https://b391e55ae15b45d7ed9872931f9ef0e1f7e3541a.googledrive.com/host/0B9scOMN0JFaXY0ptc2haSTdZR3c/test.html . ? ----------- - - + P.S.: demo-r68 is source code for the demo compatible with three.js revision r68. This is the demo linked above. Between r67 and r68, three.js's animation system was changed. For r67 compatible code, see demo-r67. Live demo for demo-r67 is here: https://b391e55ae15b45d7ed9872931f9ef0e1f7e3541a.googledrive.com/host/0B9scOMN0JFaXY0ptc2haSTdZR3c/test.html . + + demo-r68 is also compatible with three.js revisions r69 and r70.
6
0.75
5
1
5309537baf517df009a73caede5b3e3e0958db50
docker-compose.yml
docker-compose.yml
version: '3' services: mmorpg_headless_server: container_name: mmorpg_headless_server image: pankiev/mmorpgheadlessserver ports: - 8000:8000/tcp - 8001:8001/udp depends_on: - mmorpg_db restart: on-failure networks: - mmorpg_net mmorpg_db: container_name: mmorpg_db image: mysql:5.7.15 ports: - 3306:3306 restart: on-failure environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=mmorpgprototype networks: - mmorpg_net networks: mmorpg_net:
version: '3' services: mmorpg_headless_server: container_name: mmorpg_headless_server image: pankiev/mmorpgheadlessserver ports: - 8000:8000/tcp - 8001:8001/udp depends_on: - mmorpg_db restart: on-failure networks: - mmorpg_net mmorpg_db: container_name: mmorpg_db image: mysql:5.7.15 restart: on-failure environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=mmorpgprototype networks: - mmorpg_net networks: mmorpg_net:
Hide db from public net
Hide db from public net
YAML
mit
Pankiev/MMORPG_Prototype
yaml
## Code Before: version: '3' services: mmorpg_headless_server: container_name: mmorpg_headless_server image: pankiev/mmorpgheadlessserver ports: - 8000:8000/tcp - 8001:8001/udp depends_on: - mmorpg_db restart: on-failure networks: - mmorpg_net mmorpg_db: container_name: mmorpg_db image: mysql:5.7.15 ports: - 3306:3306 restart: on-failure environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=mmorpgprototype networks: - mmorpg_net networks: mmorpg_net: ## Instruction: Hide db from public net ## Code After: version: '3' services: mmorpg_headless_server: container_name: mmorpg_headless_server image: pankiev/mmorpgheadlessserver ports: - 8000:8000/tcp - 8001:8001/udp depends_on: - mmorpg_db restart: on-failure networks: - mmorpg_net mmorpg_db: container_name: mmorpg_db image: mysql:5.7.15 restart: on-failure environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=mmorpgprototype networks: - mmorpg_net networks: mmorpg_net:
version: '3' services: mmorpg_headless_server: container_name: mmorpg_headless_server image: pankiev/mmorpgheadlessserver ports: - 8000:8000/tcp - 8001:8001/udp depends_on: - mmorpg_db restart: on-failure networks: - mmorpg_net mmorpg_db: container_name: mmorpg_db image: mysql:5.7.15 - ports: - - 3306:3306 restart: on-failure environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=mmorpgprototype networks: - mmorpg_net networks: mmorpg_net:
2
0.068966
0
2
b1cec6e42172fa932d8156053abecdbd26bec501
README.md
README.md
`yarn global add genge` or `npm -g install genge` A simple `ExpressJS` template generator CLI: ``` $ genge [option] [option] --flat --flat ``` ## Create your first app ``` $ genge create app appName ``` Genge will create some start up folders and files ``` <Current working directory> | +-- <appName>/ | +-- public/ | | | +-- index.ejs | +-- style.css +-- router/ | | | +--login.js +-- index.js ``` And with the `--run` flat, what you can do is as soon as Genge finish creating thought files and folder, it will run the app right a way
`yarn global add https://github.com/felixfong227/genge.git` or `npm -g install https://github.com/felixfong227/genge.git` A simple `ExpressJS` template generator CLI: ``` $ genge [option] [option] --flat --flat ``` ## Create your first app ``` $ genge create app appName ``` Genge will create some start up folders and files ``` <Current working directory> | +-- <appName>/ | +-- public/ | | | +-- index.ejs | +-- style.css +-- router/ | | | +--login.js +-- index.js ``` And with the `--run` flat, what you can do is as soon as Genge finish creating thought files and folder, it will run the app right a way
Update the installation path to GitHub instead of NPM
Update the installation path to GitHub instead of NPM
Markdown
mit
felixfong227/genge,felixfong227/genge
markdown
## Code Before: `yarn global add genge` or `npm -g install genge` A simple `ExpressJS` template generator CLI: ``` $ genge [option] [option] --flat --flat ``` ## Create your first app ``` $ genge create app appName ``` Genge will create some start up folders and files ``` <Current working directory> | +-- <appName>/ | +-- public/ | | | +-- index.ejs | +-- style.css +-- router/ | | | +--login.js +-- index.js ``` And with the `--run` flat, what you can do is as soon as Genge finish creating thought files and folder, it will run the app right a way ## Instruction: Update the installation path to GitHub instead of NPM ## Code After: `yarn global add https://github.com/felixfong227/genge.git` or `npm -g install https://github.com/felixfong227/genge.git` A simple `ExpressJS` template generator CLI: ``` $ genge [option] [option] --flat --flat ``` ## Create your first app ``` $ genge create app appName ``` Genge will create some start up folders and files ``` <Current working directory> | +-- <appName>/ | +-- public/ | | | +-- index.ejs | +-- style.css +-- router/ | | | +--login.js +-- index.js ``` And with the `--run` flat, what you can do is as soon as Genge finish creating thought files and folder, it will run the app right a way
- `yarn global add genge` + `yarn global add https://github.com/felixfong227/genge.git` or - `npm -g install genge` + `npm -g install https://github.com/felixfong227/genge.git` A simple `ExpressJS` template generator CLI: ``` $ genge [option] [option] --flat --flat ``` ## Create your first app ``` $ genge create app appName ``` Genge will create some start up folders and files ``` <Current working directory> | +-- <appName>/ | +-- public/ | | | +-- index.ejs | +-- style.css +-- router/ | | | +--login.js +-- index.js ``` And with the `--run` flat, what you can do is as soon as Genge finish creating thought files and folder, it will run the app right a way
4
0.121212
2
2
29dbdeec0c34e91e13cc7ca205c6e0c07e046728
pubmed/README.md
pubmed/README.md
PubMed is a common source of citation information for VIVO. The following capabilities are in development for the Pump: 1. Given an author, find all the papers in PubMed for that author (using the Harvard Catalyst web service) 1. Given a list of PubMed IDs for papers, retreive the paper citation information from PubMed (using Entrez) 1. Given paper citation information, add the papers to VIVO. 1. Have a Pump handler that bundles the three functions above into a single handler -- given an author, put their PubMed papers in VIVO. As with all Pump functionality, this will be done as an update -- existing papers will be updated with the information most recently retrieved from Pubmed.
PubMed is a common source of citation information for VIVO. The following capabilities are in development for the Pump: 1. Given an author, find all the papers in PubMed for that author (using the Harvard Catalyst web service) 1. Given a list of PubMed IDs for papers, retreive the paper citation information from PubMed (using Entrez) 1. Given paper citation information, add the papers to VIVO (using the Pump) 1. Have a Pump handler that bundles the three functions above into a single handler -- given an author, put their PubMed papers in VIVO. As with all Pump functionality, this will be done as an update -- existing papers will be updated with the information most recently retrieved from Pubmed.
Clarify use of the pump
Clarify use of the pump
Markdown
bsd-2-clause
ctsit/vivo-pump,ctsit/vivo-pump,mconlon17/vivo-pump
markdown
## Code Before: PubMed is a common source of citation information for VIVO. The following capabilities are in development for the Pump: 1. Given an author, find all the papers in PubMed for that author (using the Harvard Catalyst web service) 1. Given a list of PubMed IDs for papers, retreive the paper citation information from PubMed (using Entrez) 1. Given paper citation information, add the papers to VIVO. 1. Have a Pump handler that bundles the three functions above into a single handler -- given an author, put their PubMed papers in VIVO. As with all Pump functionality, this will be done as an update -- existing papers will be updated with the information most recently retrieved from Pubmed. ## Instruction: Clarify use of the pump ## Code After: PubMed is a common source of citation information for VIVO. The following capabilities are in development for the Pump: 1. Given an author, find all the papers in PubMed for that author (using the Harvard Catalyst web service) 1. Given a list of PubMed IDs for papers, retreive the paper citation information from PubMed (using Entrez) 1. Given paper citation information, add the papers to VIVO (using the Pump) 1. Have a Pump handler that bundles the three functions above into a single handler -- given an author, put their PubMed papers in VIVO. As with all Pump functionality, this will be done as an update -- existing papers will be updated with the information most recently retrieved from Pubmed.
PubMed is a common source of citation information for VIVO. The following capabilities are in development for the Pump: 1. Given an author, find all the papers in PubMed for that author (using the Harvard Catalyst web service) 1. Given a list of PubMed IDs for papers, retreive the paper citation information from PubMed (using Entrez) - 1. Given paper citation information, add the papers to VIVO. ? ^ + 1. Given paper citation information, add the papers to VIVO (using the Pump) ? ^^^^^^^^^^^^^^^^^ 1. Have a Pump handler that bundles the three functions above into a single handler -- given an author, put their PubMed papers in VIVO. As with all Pump functionality, this will be done as an update -- existing papers will be updated with the information most recently retrieved from Pubmed.
2
0.181818
1
1
8d1a848b29873075993483fa55bdf1035dec52c3
app/views/products/_chip.html.erb
app/views/products/_chip.html.erb
<div class="chip"> <div class="row"> <div class="col-xs-1"> <%= image_tag product.poster_image.url, class: 'img-rounded', height: 24, alt: product.name %> </div> <div class="col-xs-11"> <ul class="list-inline omega hidden-xs pull-right"> <% product.core_team.each do |user| %> <li> <a href="<%= user_path(user) %>" data-toggle="tooltip" title="@<%= user.username %>"><%= avatar_tag(user, 24) %></a> </li> <% end %> <% if product.watchers.count > product.core_team.size %> <li> <strong class="text-success">+<%= product.watchers.count %></strong> </li> <% end %> </ul> <a href="<%= product_path(product) %>"><strong><%= product.name %></strong></a> <div class="visible-xs-block visible-sm-block visible-md-inline visible-lg-inline"> <%= product.pitch %> &nbsp; <span class="text-muted text-small">Updated <%= time_ago_in_words(product.updated_at) %> ago</span> </div> </div> </div> </div>
<div class="chip"> <div class="row"> <div class="col-xs-1"> <%= image_tag product.poster_image.url, class: 'img-rounded', height: 24, alt: product.name %> </div> <div class="col-xs-11"> <ul class="list-inline omega hidden-xs pull-right"> <% product.core_team.limit(3).each do |user| %> <li> <a href="<%= user_path(user) %>" data-toggle="tooltip" title="@<%= user.username %>"><%= avatar_tag(user, 24) %></a> </li> <% end %> <% other_people_size = [product.core_team.count - 3, 0].max + product.watchers.count %> <% if other_people_size > 0 %> <li> <span class="text-muted">+<%= other_people_size %></span> </li> <% end %> </ul> <a href="<%= product_path(product) %>"><strong><%= product.name %></strong></a> <div class="visible-xs-block visible-sm-block visible-md-inline visible-lg-inline"> <%= product.pitch %> &nbsp; <span class="text-muted text-small">Updated <%= time_ago_in_words(product.updated_at) %> ago</span> </div> </div> </div> </div>
Adjust chip with smaller faces.
Adjust chip with smaller faces.
HTML+ERB
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta
html+erb
## Code Before: <div class="chip"> <div class="row"> <div class="col-xs-1"> <%= image_tag product.poster_image.url, class: 'img-rounded', height: 24, alt: product.name %> </div> <div class="col-xs-11"> <ul class="list-inline omega hidden-xs pull-right"> <% product.core_team.each do |user| %> <li> <a href="<%= user_path(user) %>" data-toggle="tooltip" title="@<%= user.username %>"><%= avatar_tag(user, 24) %></a> </li> <% end %> <% if product.watchers.count > product.core_team.size %> <li> <strong class="text-success">+<%= product.watchers.count %></strong> </li> <% end %> </ul> <a href="<%= product_path(product) %>"><strong><%= product.name %></strong></a> <div class="visible-xs-block visible-sm-block visible-md-inline visible-lg-inline"> <%= product.pitch %> &nbsp; <span class="text-muted text-small">Updated <%= time_ago_in_words(product.updated_at) %> ago</span> </div> </div> </div> </div> ## Instruction: Adjust chip with smaller faces. ## Code After: <div class="chip"> <div class="row"> <div class="col-xs-1"> <%= image_tag product.poster_image.url, class: 'img-rounded', height: 24, alt: product.name %> </div> <div class="col-xs-11"> <ul class="list-inline omega hidden-xs pull-right"> <% product.core_team.limit(3).each do |user| %> <li> <a href="<%= user_path(user) %>" data-toggle="tooltip" title="@<%= user.username %>"><%= avatar_tag(user, 24) %></a> </li> <% end %> <% other_people_size = [product.core_team.count - 3, 0].max + product.watchers.count %> <% if other_people_size > 0 %> <li> <span class="text-muted">+<%= other_people_size %></span> </li> <% end %> </ul> <a href="<%= product_path(product) %>"><strong><%= product.name %></strong></a> <div class="visible-xs-block visible-sm-block visible-md-inline visible-lg-inline"> <%= product.pitch %> &nbsp; <span class="text-muted text-small">Updated <%= time_ago_in_words(product.updated_at) %> ago</span> </div> </div> </div> </div>
<div class="chip"> <div class="row"> <div class="col-xs-1"> <%= image_tag product.poster_image.url, class: 'img-rounded', height: 24, alt: product.name %> </div> <div class="col-xs-11"> <ul class="list-inline omega hidden-xs pull-right"> - <% product.core_team.each do |user| %> + <% product.core_team.limit(3).each do |user| %> ? +++++++++ <li> <a href="<%= user_path(user) %>" data-toggle="tooltip" title="@<%= user.username %>"><%= avatar_tag(user, 24) %></a> </li> <% end %> - <% if product.watchers.count > product.core_team.size %> + <% other_people_size = [product.core_team.count - 3, 0].max + product.watchers.count %> + + <% if other_people_size > 0 %> <li> - <strong class="text-success">+<%= product.watchers.count %></strong> + <span class="text-muted">+<%= other_people_size %></span> </li> <% end %> </ul> <a href="<%= product_path(product) %>"><strong><%= product.name %></strong></a> <div class="visible-xs-block visible-sm-block visible-md-inline visible-lg-inline"> <%= product.pitch %> &nbsp; <span class="text-muted text-small">Updated <%= time_ago_in_words(product.updated_at) %> ago</span> </div> </div> </div> </div>
8
0.242424
5
3
2409fe03afe87fe12b68c4373f5c08eb299ed910
package.json
package.json
{ "name": "node-echo-server", "version": "0.1.4", "description": "Simple echo server that logs requests to the command line for testing.", "main": "node-echo.js", "bin": { "node-echo-server": "node-echo.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "echo", "server", "echo-server", "http", "https" ], "author": "Marshall Hampson", "license": "MIT", "dependencies": { "prettyjson": "~1.2.1", "yargs": "~8.0.2" }, "repository": { "type": "git", "url": "https://github.com/mrhampson/node-echo" } }
{ "name": "node-echo-server", "version": "0.1.5", "description": "Simple echo server that logs requests to the command line for testing.", "main": "node-echo.js", "bin": { "node-echo-server": "node-echo.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "echo", "server", "echo-server", "http", "https" ], "author": "Marshall Hampson", "license": "MIT", "dependencies": { "prettyjson": "https://github.com/mrhampson/prettyjson.git#feature-platform-eol", "yargs": "~8.0.2" }, "repository": { "type": "git", "url": "https://github.com/mrhampson/node-echo" } }
Use for of prettyjson to support formatted output on windows
Use for of prettyjson to support formatted output on windows
JSON
mit
mrhampson/node-echo
json
## Code Before: { "name": "node-echo-server", "version": "0.1.4", "description": "Simple echo server that logs requests to the command line for testing.", "main": "node-echo.js", "bin": { "node-echo-server": "node-echo.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "echo", "server", "echo-server", "http", "https" ], "author": "Marshall Hampson", "license": "MIT", "dependencies": { "prettyjson": "~1.2.1", "yargs": "~8.0.2" }, "repository": { "type": "git", "url": "https://github.com/mrhampson/node-echo" } } ## Instruction: Use for of prettyjson to support formatted output on windows ## Code After: { "name": "node-echo-server", "version": "0.1.5", "description": "Simple echo server that logs requests to the command line for testing.", "main": "node-echo.js", "bin": { "node-echo-server": "node-echo.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "echo", "server", "echo-server", "http", "https" ], "author": "Marshall Hampson", "license": "MIT", "dependencies": { "prettyjson": "https://github.com/mrhampson/prettyjson.git#feature-platform-eol", "yargs": "~8.0.2" }, "repository": { "type": "git", "url": "https://github.com/mrhampson/node-echo" } }
{ "name": "node-echo-server", - "version": "0.1.4", ? ^ + "version": "0.1.5", ? ^ "description": "Simple echo server that logs requests to the command line for testing.", "main": "node-echo.js", "bin": { "node-echo-server": "node-echo.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "echo", "server", "echo-server", "http", "https" ], "author": "Marshall Hampson", "license": "MIT", "dependencies": { - "prettyjson": "~1.2.1", + "prettyjson": "https://github.com/mrhampson/prettyjson.git#feature-platform-eol", "yargs": "~8.0.2" }, "repository": { "type": "git", "url": "https://github.com/mrhampson/node-echo" } }
4
0.137931
2
2
44cc62049bf1f356fbe887d30138da7f6e159971
_posts/en/pages/2016-01-13-segwit-support.md
_posts/en/pages/2016-01-13-segwit-support.md
--- title: Segregated Witness Support name: segwit-support type: pages layout: page lang: en permalink: /en/segwit_adoption/ version: 1 --- The following is a list of companies and projects which have stated they will support segregated witness. To add your company or service, please ACK ticket <a href="https://github.com/bitcoin-core/bitcoincore.org/pull/30">[#30] </a> with company/service name. {% include pages/segwit_support.md %} \* BitGo provides wallet services to exchanges such as Bitstamp and Kraken. \* GreenAddress provides wallet services to TheRockTrading exchange, BitBoat and CoinBR. wip: work-in-progress To add your company or service, please ACK ticket [#30] with company/service name. [#30]: https://github.com/bitcoin-core/website/pull/30 {% comment %}updated to https://github.com/bitcoin-core/website/pull/30#issuecomment-177012065{% endcomment %}
--- title: Segregated Witness Support name: segwit-support type: pages layout: page lang: en permalink: /en/segwit_adoption/ version: 1 --- The following is a list of companies and projects which have stated they will support segregated witness. To add your company or service, please submit a [pull-request](https://github.com/bitcoin-core/bitcoincore.org/blob/gh-pages/_data/segwitsupport.csv). {% include pages/segwit_support.md %} \* BitGo provides wallet services to exchanges such as Bitstamp and Kraken. \* GreenAddress provides wallet services to TheRockTrading exchange, BitBoat and CoinBR. wip: work-in-progress To add your company or service, please submit a [pull-request](https://github.com/bitcoin-core/bitcoincore.org/blob/gh-pages/_data/segwitsupport.csv).
Change instructions to update segwit readiness
Change instructions to update segwit readiness
Markdown
mit
bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org
markdown
## Code Before: --- title: Segregated Witness Support name: segwit-support type: pages layout: page lang: en permalink: /en/segwit_adoption/ version: 1 --- The following is a list of companies and projects which have stated they will support segregated witness. To add your company or service, please ACK ticket <a href="https://github.com/bitcoin-core/bitcoincore.org/pull/30">[#30] </a> with company/service name. {% include pages/segwit_support.md %} \* BitGo provides wallet services to exchanges such as Bitstamp and Kraken. \* GreenAddress provides wallet services to TheRockTrading exchange, BitBoat and CoinBR. wip: work-in-progress To add your company or service, please ACK ticket [#30] with company/service name. [#30]: https://github.com/bitcoin-core/website/pull/30 {% comment %}updated to https://github.com/bitcoin-core/website/pull/30#issuecomment-177012065{% endcomment %} ## Instruction: Change instructions to update segwit readiness ## Code After: --- title: Segregated Witness Support name: segwit-support type: pages layout: page lang: en permalink: /en/segwit_adoption/ version: 1 --- The following is a list of companies and projects which have stated they will support segregated witness. To add your company or service, please submit a [pull-request](https://github.com/bitcoin-core/bitcoincore.org/blob/gh-pages/_data/segwitsupport.csv). {% include pages/segwit_support.md %} \* BitGo provides wallet services to exchanges such as Bitstamp and Kraken. \* GreenAddress provides wallet services to TheRockTrading exchange, BitBoat and CoinBR. wip: work-in-progress To add your company or service, please submit a [pull-request](https://github.com/bitcoin-core/bitcoincore.org/blob/gh-pages/_data/segwitsupport.csv).
--- title: Segregated Witness Support name: segwit-support type: pages layout: page lang: en permalink: /en/segwit_adoption/ version: 1 --- The following is a list of companies and projects which have stated they will support segregated witness. + To add your company or service, please submit a [pull-request](https://github.com/bitcoin-core/bitcoincore.org/blob/gh-pages/_data/segwitsupport.csv). - To add your company or service, please ACK ticket <a href="https://github.com/bitcoin-core/bitcoincore.org/pull/30">[#30] - </a> with company/service name. {% include pages/segwit_support.md %} \* BitGo provides wallet services to exchanges such as Bitstamp and Kraken. \* GreenAddress provides wallet services to TheRockTrading exchange, BitBoat and CoinBR. wip: work-in-progress - To add your company or service, please ACK ticket [#30] with company/service name. + To add your company or service, please submit a [pull-request](https://github.com/bitcoin-core/bitcoincore.org/blob/gh-pages/_data/segwitsupport.csv). - [#30]: https://github.com/bitcoin-core/website/pull/30 - {% comment %}updated to https://github.com/bitcoin-core/website/pull/30#issuecomment-177012065{% endcomment %}
7
0.259259
2
5
1dffb6eef89732178e792ed1c0fece82dd71df09
app/models/concerns/tagging.rb
app/models/concerns/tagging.rb
module Tagging extend ActiveSupport::Concern included do after_create :update_tag after_destroy :update_tag end def update_tag taggables = Array.new taggables << self.reaction if defined? self.reaction taggables << self.sample if defined? self.sample taggables.each do |taggable| taggable.update_tag end end end
module Tagging extend ActiveSupport::Concern included do after_create :update_tag after_destroy :update_tag end def update_tag taggables = Array.new taggables << self.reaction if defined? self.reaction taggables << self.sample if defined? self.sample taggables << self.wellplate if defined? self.wellplate taggables << self.screen if defined? self.screen taggables.each do |taggable| taggable.update_tag end end end
Update tag for wellplate and screen
Update tag for wellplate and screen
Ruby
agpl-3.0
ComPlat/chemotion_ELN,ComPlat/chemotion_ELN,ComPlat/chemotion_ELN,ComPlat/chemotion_ELN
ruby
## Code Before: module Tagging extend ActiveSupport::Concern included do after_create :update_tag after_destroy :update_tag end def update_tag taggables = Array.new taggables << self.reaction if defined? self.reaction taggables << self.sample if defined? self.sample taggables.each do |taggable| taggable.update_tag end end end ## Instruction: Update tag for wellplate and screen ## Code After: module Tagging extend ActiveSupport::Concern included do after_create :update_tag after_destroy :update_tag end def update_tag taggables = Array.new taggables << self.reaction if defined? self.reaction taggables << self.sample if defined? self.sample taggables << self.wellplate if defined? self.wellplate taggables << self.screen if defined? self.screen taggables.each do |taggable| taggable.update_tag end end end
module Tagging extend ActiveSupport::Concern included do after_create :update_tag after_destroy :update_tag end def update_tag taggables = Array.new taggables << self.reaction if defined? self.reaction taggables << self.sample if defined? self.sample + taggables << self.wellplate if defined? self.wellplate + taggables << self.screen if defined? self.screen taggables.each do |taggable| taggable.update_tag end end end
2
0.105263
2
0
201b76bf5772428c574a3d6f81ce8fc935c8f92c
.travis.yml
.travis.yml
language: php cache: directories: - $HOME/.composer/cache/files matrix: fast_finish: true include: - php: 5.5 - php: 5.6 - php: 7.0 allow_failures: - php: 7.0 install: - composer install before_script: - sudo redis-server /etc/redis/redis.conf --port 6379 script: - phpunit -c app
language: php cache: directories: - $HOME/.composer/cache/files matrix: fast_finish: true include: - php: 5.5 - php: 5.6 - php: 7.0 allow_failures: - php: 7.0 services: - redis-server - elasticsearch install: - composer install script: - phpunit -c app
Update Travis CI config file
Update Travis CI config file
YAML
mit
alfonsomga/symfony.demo.on.roids,alfonsomga/symfony-demo-on-roids,alfonsomga/symfony-demo-on-roids,alfonsomga/symfony-demo-on-roids,alfonsomga/symfony-demo-on-roids,alfonsomga/symfony-demo-on-roids,alfonsomga/symfony.demo.on.roids,alfonsomga/symfony.demo.on.roids,alfonsomga/symfony.demo.on.roids,alfonsomga/symfony.demo.on.roids
yaml
## Code Before: language: php cache: directories: - $HOME/.composer/cache/files matrix: fast_finish: true include: - php: 5.5 - php: 5.6 - php: 7.0 allow_failures: - php: 7.0 install: - composer install before_script: - sudo redis-server /etc/redis/redis.conf --port 6379 script: - phpunit -c app ## Instruction: Update Travis CI config file ## Code After: language: php cache: directories: - $HOME/.composer/cache/files matrix: fast_finish: true include: - php: 5.5 - php: 5.6 - php: 7.0 allow_failures: - php: 7.0 services: - redis-server - elasticsearch install: - composer install script: - phpunit -c app
language: php cache: directories: - $HOME/.composer/cache/files matrix: fast_finish: true include: - php: 5.5 - php: 5.6 - php: 7.0 allow_failures: - php: 7.0 + services: + - redis-server + - elasticsearch + install: - composer install - before_script: - - sudo redis-server /etc/redis/redis.conf --port 6379 - script: - phpunit -c app
7
0.304348
4
3
6a26643a2a5463dfdff58c9217553cba403793ec
app/models/intervention.rb
app/models/intervention.rb
class Intervention < ActiveRecord::Base belongs_to :student belongs_to :educator belongs_to :intervention_type belongs_to :school_year belongs_to :student_school_year before_save :assign_to_school_year after_create :assign_to_student_school_year validates :student, :intervention_type, :start_date, presence: true validate :end_date_cannot_come_before_start_date def name custom_intervention_name || intervention_type.try(:name) end ## VALIDATIONS ## def end_date_cannot_come_before_start_date if end_date.present? if end_date < start_date errors.add(:end_date, "can't be before start date") end end end ## SCHOOL YEARS ## def assign_to_school_year self.school_year = DateToSchoolYear.new(start_date).convert end def assign_to_student_school_year self.student_school_year = StudentSchoolYear.where({ student_id: student.id, school_year_id: school_year.id }).first_or_create! save end ## CHARTS ## def to_highcharts { start_date: { year: start_date.year, month: start_date.month, day: start_date.day }, end_date: { year: end_date.year, month: end_date.month, day: end_date.day }, name: name } end ## SCOPES ## def self.with_start_and_end_dates where.not(start_date: nil).where.not(end_date: nil) end end
class Intervention < ActiveRecord::Base belongs_to :student belongs_to :educator belongs_to :intervention_type validates :student, :intervention_type, :start_date, presence: true validate :end_date_cannot_come_before_start_date def name custom_intervention_name || intervention_type.try(:name) end ## VALIDATIONS ## def end_date_cannot_come_before_start_date if end_date.present? if end_date < start_date errors.add(:end_date, "can't be before start date") end end end ## CHARTS ## def to_highcharts { start_date: { year: start_date.year, month: start_date.month, day: start_date.day }, end_date: { year: end_date.year, month: end_date.month, day: end_date.day }, name: name } end ## SCOPES ## def self.with_start_and_end_dates where.not(start_date: nil).where.not(end_date: nil) end end
Remove before/after events assigning student school years
Remove before/after events assigning student school years
Ruby
mit
jhilde/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,studentinsights/studentinsights,jhilde/studentinsights,jhilde/studentinsights
ruby
## Code Before: class Intervention < ActiveRecord::Base belongs_to :student belongs_to :educator belongs_to :intervention_type belongs_to :school_year belongs_to :student_school_year before_save :assign_to_school_year after_create :assign_to_student_school_year validates :student, :intervention_type, :start_date, presence: true validate :end_date_cannot_come_before_start_date def name custom_intervention_name || intervention_type.try(:name) end ## VALIDATIONS ## def end_date_cannot_come_before_start_date if end_date.present? if end_date < start_date errors.add(:end_date, "can't be before start date") end end end ## SCHOOL YEARS ## def assign_to_school_year self.school_year = DateToSchoolYear.new(start_date).convert end def assign_to_student_school_year self.student_school_year = StudentSchoolYear.where({ student_id: student.id, school_year_id: school_year.id }).first_or_create! save end ## CHARTS ## def to_highcharts { start_date: { year: start_date.year, month: start_date.month, day: start_date.day }, end_date: { year: end_date.year, month: end_date.month, day: end_date.day }, name: name } end ## SCOPES ## def self.with_start_and_end_dates where.not(start_date: nil).where.not(end_date: nil) end end ## Instruction: Remove before/after events assigning student school years ## Code After: class Intervention < ActiveRecord::Base belongs_to :student belongs_to :educator belongs_to :intervention_type validates :student, :intervention_type, :start_date, presence: true validate :end_date_cannot_come_before_start_date def name custom_intervention_name || intervention_type.try(:name) end ## VALIDATIONS ## def end_date_cannot_come_before_start_date if end_date.present? if end_date < start_date errors.add(:end_date, "can't be before start date") end end end ## CHARTS ## def to_highcharts { start_date: { year: start_date.year, month: start_date.month, day: start_date.day }, end_date: { year: end_date.year, month: end_date.month, day: end_date.day }, name: name } end ## SCOPES ## def self.with_start_and_end_dates where.not(start_date: nil).where.not(end_date: nil) end end
class Intervention < ActiveRecord::Base belongs_to :student belongs_to :educator belongs_to :intervention_type - belongs_to :school_year - belongs_to :student_school_year - before_save :assign_to_school_year - after_create :assign_to_student_school_year validates :student, :intervention_type, :start_date, presence: true validate :end_date_cannot_come_before_start_date def name custom_intervention_name || intervention_type.try(:name) end ## VALIDATIONS ## def end_date_cannot_come_before_start_date if end_date.present? if end_date < start_date errors.add(:end_date, "can't be before start date") end end - end - - ## SCHOOL YEARS ## - - def assign_to_school_year - self.school_year = DateToSchoolYear.new(start_date).convert - end - - def assign_to_student_school_year - self.student_school_year = StudentSchoolYear.where({ - student_id: student.id, school_year_id: school_year.id - }).first_or_create! - save end ## CHARTS ## def to_highcharts { start_date: { year: start_date.year, month: start_date.month, day: start_date.day }, end_date: { year: end_date.year, month: end_date.month, day: end_date.day }, name: name } end ## SCOPES ## def self.with_start_and_end_dates where.not(start_date: nil).where.not(end_date: nil) end end
17
0.309091
0
17
26fa1c4c62e00549bdf9994c0df8f7231bc0748c
app/views/cf_threads/index.html.erb
app/views/cf_threads/index.html.erb
<% content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) %> <div class="root" data-js="threadlist"> <% str = '' %> <% @threads.each do |thread| str << '<article class="thread threadlist' str << 'sticky' if thread.sticky str << thread.attribs['classes'].join(' ') unless thread.attribs['classes'].blank? str << ' id="t' + thread.thread_id.to_s + '">' str << message_header(thread, thread.message, first: true, show_icons: true) if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' str << message_tree(thread, thread.message.messages, show_icons: true, hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') end str << '</article>' end %> <%== str %> </div> <%= render 'pages' %>
<% content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) %> <div class="root" data-js="threadlist"> <% @threads.each do |thread| %> <article class="thread threadlist<% if thread.sticky %> sticky<% end %><% unless thread.attribs['classes'].blank? %> <%= thread.attribs['classes'].join(' ') %><% end %>" id="t<%= thread.thread_id %>"> <%= message_header(thread, thread.message, first: true, show_icons: true) %> <% if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' %> <%= message_tree(thread, thread.message.messages, show_icons: true, hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') %> <% end %> </article> <% end %> </div> <%= render 'pages' %>
Revert "trying to get the performance better for main views of forums"
Revert "trying to get the performance better for main views of forums" This reverts commit 009f6e3d5ef966fbd856e44152c735cc92d52b1e. No performance gain measurable
HTML+ERB
agpl-3.0
CountOrlok/cforum,ckruse/cforum,CountOrlok/cforum,ckruse/cforum,MatthiasApsel/cforum,CountOrlok/cforum,MatthiasApsel/cforum,MatthiasApsel/cforum,CountOrlok/cforum,MatthiasApsel/cforum,ckruse/cforum,ckruse/cforum
html+erb
## Code Before: <% content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) %> <div class="root" data-js="threadlist"> <% str = '' %> <% @threads.each do |thread| str << '<article class="thread threadlist' str << 'sticky' if thread.sticky str << thread.attribs['classes'].join(' ') unless thread.attribs['classes'].blank? str << ' id="t' + thread.thread_id.to_s + '">' str << message_header(thread, thread.message, first: true, show_icons: true) if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' str << message_tree(thread, thread.message.messages, show_icons: true, hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') end str << '</article>' end %> <%== str %> </div> <%= render 'pages' %> ## Instruction: Revert "trying to get the performance better for main views of forums" This reverts commit 009f6e3d5ef966fbd856e44152c735cc92d52b1e. No performance gain measurable ## Code After: <% content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) %> <div class="root" data-js="threadlist"> <% @threads.each do |thread| %> <article class="thread threadlist<% if thread.sticky %> sticky<% end %><% unless thread.attribs['classes'].blank? %> <%= thread.attribs['classes'].join(' ') %><% end %>" id="t<%= thread.thread_id %>"> <%= message_header(thread, thread.message, first: true, show_icons: true) %> <% if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' %> <%= message_tree(thread, thread.message.messages, show_icons: true, hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') %> <% end %> </article> <% end %> </div> <%= render 'pages' %>
<% content_for :title, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) content_for :h1, current_forum.blank? ? t('threads.threadlist_all') : t('threads.threadlist', name: current_forum.name) %> <div class="root" data-js="threadlist"> - <% str = '' %> - <% - @threads.each do |thread| + <% @threads.each do |thread| %> ? +++ +++ + <article class="thread threadlist<% if thread.sticky %> sticky<% end %><% unless thread.attribs['classes'].blank? %> <%= thread.attribs['classes'].join(' ') %><% end %>" id="t<%= thread.thread_id %>"> - str << '<article class="thread threadlist' - str << 'sticky' if thread.sticky - str << thread.attribs['classes'].join(' ') unless thread.attribs['classes'].blank? - str << ' id="t' + thread.thread_id.to_s + '">' - str << message_header(thread, thread.message, first: true, show_icons: true) ? ^^^ ^ + <%= message_header(thread, thread.message, first: true, show_icons: true) %> ? ^ ^^ +++ - if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' + <% if not thread.message.messages.blank? and thread.attribs['open_state'] != 'closed' %> ? +++++ +++ - str << message_tree(thread, thread.message.messages, show_icons: true, ? ^^^ ^ + <%= message_tree(thread, thread.message.messages, show_icons: true, ? ^ ^^ - hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') ? - + hide_repeating_subjects: uconf('hide_subjects_unchanged', 'yes') == 'yes') %> ? +++ - end + <% end %> - str << '</article>' ? -------- - + </article> + <% end %> - end - %> - <%== str %> </div> <%= render 'pages' %>
25
0.961538
9
16
c5be620752e22266b89f93505c2641d5c5a3ba5c
index.coffee.md
index.coffee.md
Document Modeling @engine ========================= **How to represent data?** This module is used to represent data in understood format for programs. As you know, *models* have some raw data and *routes* knows how to respond to the requests. If someone asks the server about some stuff (sends a `get` request), we handle it, collect some data and finally respond him, sending required answers **in an HTML format**. #### How it works You write normal *HTML* documents using some special tags (all prefixed by the **neft:**). Each view gets required data from the *App Controller* or *App Route* (commonly), but low-level access is allowed as well. Data can be changed at runtime (when [Dict][] or [List][] are used), which will automatically change the result. This technique is commonly used on the client side, where screens are dynamic and may change (e.g. newest *tweets* updated at runtime). 'use strict' module.exports = require './file'
Document @engine ================ 'use strict' module.exports = require './file'
Index file documentation has been removed
Index file documentation has been removed This informations now are available in the 'Get Started' article
Markdown
apache-2.0
Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft,Neft-io/neft
markdown
## Code Before: Document Modeling @engine ========================= **How to represent data?** This module is used to represent data in understood format for programs. As you know, *models* have some raw data and *routes* knows how to respond to the requests. If someone asks the server about some stuff (sends a `get` request), we handle it, collect some data and finally respond him, sending required answers **in an HTML format**. #### How it works You write normal *HTML* documents using some special tags (all prefixed by the **neft:**). Each view gets required data from the *App Controller* or *App Route* (commonly), but low-level access is allowed as well. Data can be changed at runtime (when [Dict][] or [List][] are used), which will automatically change the result. This technique is commonly used on the client side, where screens are dynamic and may change (e.g. newest *tweets* updated at runtime). 'use strict' module.exports = require './file' ## Instruction: Index file documentation has been removed This informations now are available in the 'Get Started' article ## Code After: Document @engine ================ 'use strict' module.exports = require './file'
- Document Modeling @engine ? --------- + Document @engine - ========================= ? --------- + ================ - - **How to represent data?** - - This module is used to represent data in understood format for programs. - - As you know, *models* have some raw data and *routes* knows how to respond to the requests. - If someone asks the server about some stuff (sends a `get` request), we handle it, collect - some data and finally respond him, sending required answers **in an HTML format**. - - #### How it works - - You write normal *HTML* documents using some special tags (all prefixed by the **neft:**). - - Each view gets required data from the *App Controller* or *App Route* - (commonly), but low-level access is allowed as well. - - Data can be changed at runtime (when [Dict][] or [List][] are used), which will - automatically change the result. This technique is commonly used on the client side, where - screens are dynamic and may change (e.g. newest *tweets* updated at runtime). 'use strict' module.exports = require './file'
23
0.92
2
21
06be84d64e866b4e280b85d3401c76909759f25e
src/main/resources/templates/index.html
src/main/resources/templates/index.html
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <div th:include="fragments/header :: header-css"/> </head> <body> <center> <h2>Zapisy na pranie w DS Bursa Jagiellońska</h2> <img src="/images/logo.jpg"/> <div style="margin-left:35%;margin-right:35%;"> <form action="/week" method="get"> <input type="submit" value="Lista bez logowania"/> </form> <br/> <fieldset> <div align="center"> <form th:action="@{/login}" method="post"> <p>Login: <input type="text" name="username" required="true"/></p> <p> Hasło: <input type="password" name="password" required="true"/></p> <input type="submit" value="Zaloguj się"/> </form> </div> <div th:if="${param.error}"> Invalid username and password. </div> <br/> <a href="/user/restore">Nie pamiętasz hasła?</a><br/> <a href="/user/registration">Utwórz konto</a> </fieldset> </div> </center> </body> <footer> <div th:replace="fragments/footer :: footer"/> </footer> </html>
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <div th:include="fragments/header :: header-css"/> </head> <body> <center> <h2>Zapisy na pranie w DS Bursa Jagiellońska</h2> <img src="/images/logo.jpg"/> <div style="margin-left:35%;margin-right:35%;"> <form action="/week" method="get"> <input type="submit" value="Lista bez logowania"/> </form> <br/> <fieldset> <div align="center"> <form th:action="@{/login}" method="post"> <p>Login: <input type="text" name="username" required="true"/></p> <p> Hasło: <input type="password" name="password" required="true"/></p> <input type="submit" value="Zaloguj się"/> </form> </div> <div th:if="${param.error}" style="color:red;font-size:15px"> Zła nazwa użytkownika albo hasło. </div> <br/> <a href="/user/restore">Nie pamiętasz hasła?</a><br/> <a href="/user/registration">Utwórz konto</a> </fieldset> </div> </center> </body> <footer> <div th:replace="fragments/footer :: footer"/> </footer> </html>
Change login error message and color.
Change login error message and color.
HTML
apache-2.0
sebastiansokolowski/ReservationSystem-BJ,sebastiansokolowski/ReservationSystem-BJ
html
## Code Before: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <div th:include="fragments/header :: header-css"/> </head> <body> <center> <h2>Zapisy na pranie w DS Bursa Jagiellońska</h2> <img src="/images/logo.jpg"/> <div style="margin-left:35%;margin-right:35%;"> <form action="/week" method="get"> <input type="submit" value="Lista bez logowania"/> </form> <br/> <fieldset> <div align="center"> <form th:action="@{/login}" method="post"> <p>Login: <input type="text" name="username" required="true"/></p> <p> Hasło: <input type="password" name="password" required="true"/></p> <input type="submit" value="Zaloguj się"/> </form> </div> <div th:if="${param.error}"> Invalid username and password. </div> <br/> <a href="/user/restore">Nie pamiętasz hasła?</a><br/> <a href="/user/registration">Utwórz konto</a> </fieldset> </div> </center> </body> <footer> <div th:replace="fragments/footer :: footer"/> </footer> </html> ## Instruction: Change login error message and color. ## Code After: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <div th:include="fragments/header :: header-css"/> </head> <body> <center> <h2>Zapisy na pranie w DS Bursa Jagiellońska</h2> <img src="/images/logo.jpg"/> <div style="margin-left:35%;margin-right:35%;"> <form action="/week" method="get"> <input type="submit" value="Lista bez logowania"/> </form> <br/> <fieldset> <div align="center"> <form th:action="@{/login}" method="post"> <p>Login: <input type="text" name="username" required="true"/></p> <p> Hasło: <input type="password" name="password" required="true"/></p> <input type="submit" value="Zaloguj się"/> </form> </div> <div th:if="${param.error}" style="color:red;font-size:15px"> Zła nazwa użytkownika albo hasło. </div> <br/> <a href="/user/restore">Nie pamiętasz hasła?</a><br/> <a href="/user/registration">Utwórz konto</a> </fieldset> </div> </center> </body> <footer> <div th:replace="fragments/footer :: footer"/> </footer> </html>
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <div th:include="fragments/header :: header-css"/> </head> <body> <center> <h2>Zapisy na pranie w DS Bursa Jagiellońska</h2> <img src="/images/logo.jpg"/> <div style="margin-left:35%;margin-right:35%;"> <form action="/week" method="get"> <input type="submit" value="Lista bez logowania"/> </form> <br/> <fieldset> <div align="center"> <form th:action="@{/login}" method="post"> <p>Login: <input type="text" name="username" required="true"/></p> <p> Hasło: <input type="password" name="password" required="true"/></p> <input type="submit" value="Zaloguj się"/> </form> </div> - <div th:if="${param.error}"> - Invalid username and password. + <div th:if="${param.error}" style="color:red;font-size:15px"> + Zła nazwa użytkownika albo hasło. </div> <br/> <a href="/user/restore">Nie pamiętasz hasła?</a><br/> <a href="/user/registration">Utwórz konto</a> </fieldset> </div> </center> </body> <footer> <div th:replace="fragments/footer :: footer"/> </footer> </html>
4
0.111111
2
2
3fc8da56d0b0e913f041a3752e48fa9243e5cd25
docs/proposals/2018-08-07-Task_Prompted_Media.md
docs/proposals/2018-08-07-Task_Prompted_Media.md
Most compelling content includes more than one medium - text, photography, graphics, etc. In order to coordinate the production of this content, editors can create tasks to request colloboration from team's with different skills. If the team decides to take on the work, they'll accept the task and dole out the assignment. At that point, the media is either created (the sidebar is written, the graphic is created) or sourced (an appropriate asset is found on the wires or in the archive). Now that the media exists, the editor who originally commisionshed the work needs a way to easily locate it. This doesn't exist today within Arc. Allowing content creators to tag media with task IDs will make it easy to find work that is produced as the result of a task. # Proposal A new field, associated_tasks, will allow an array of Task IDs (strings) to be associated with any content inside of Arc. This new property will belong to `trait_taxonomy` "associated_tasks": { "description": "A list of task IDs that this content was created or curated to satisfy.", "type": "array", "items": { "type": "string" }
Most compelling content includes more than one medium - text, photography, graphics, etc. In order to coordinate the production of this content, editors can create tasks to request colloboration from team's with different skills. If the team decides to take on the work, they'll accept the task and dole out the assignment. At that point, the media is either created (the sidebar is written, the graphic is created) or sourced (an appropriate asset is found on the wires or in the archive). Now that the media exists, the editor who originally commisionshed the work needs a way to easily locate it. This doesn't exist today within Arc. Allowing content creators to tag media with task IDs will make it easy to find work that is produced as the result of a task. # Proposal A new field, associated_tasks, will allow an array of Task IDs (strings) to be associated with any content inside of Arc. This new property will belong to `trait_taxonomy` "associated_tasks": { "description": "A list of task IDs that this content was created or curated to satisfy.", "type": "array", "items": { "type": "string" } # Concerns - Do we need to limit the number of task IDs that can be associated with a story? It is conceivable that a single photo, for example, is used to satsify many different tasks. # Implementation A developer on the Anglerfish team will implement this and add it to the schema if this proposal is accepted.
Add concerns and implementation sections
Add concerns and implementation sections
Markdown
mit
washingtonpost/ans-schema,jon-peterson/ans-schema
markdown
## Code Before: Most compelling content includes more than one medium - text, photography, graphics, etc. In order to coordinate the production of this content, editors can create tasks to request colloboration from team's with different skills. If the team decides to take on the work, they'll accept the task and dole out the assignment. At that point, the media is either created (the sidebar is written, the graphic is created) or sourced (an appropriate asset is found on the wires or in the archive). Now that the media exists, the editor who originally commisionshed the work needs a way to easily locate it. This doesn't exist today within Arc. Allowing content creators to tag media with task IDs will make it easy to find work that is produced as the result of a task. # Proposal A new field, associated_tasks, will allow an array of Task IDs (strings) to be associated with any content inside of Arc. This new property will belong to `trait_taxonomy` "associated_tasks": { "description": "A list of task IDs that this content was created or curated to satisfy.", "type": "array", "items": { "type": "string" } ## Instruction: Add concerns and implementation sections ## Code After: Most compelling content includes more than one medium - text, photography, graphics, etc. In order to coordinate the production of this content, editors can create tasks to request colloboration from team's with different skills. If the team decides to take on the work, they'll accept the task and dole out the assignment. At that point, the media is either created (the sidebar is written, the graphic is created) or sourced (an appropriate asset is found on the wires or in the archive). Now that the media exists, the editor who originally commisionshed the work needs a way to easily locate it. This doesn't exist today within Arc. Allowing content creators to tag media with task IDs will make it easy to find work that is produced as the result of a task. # Proposal A new field, associated_tasks, will allow an array of Task IDs (strings) to be associated with any content inside of Arc. This new property will belong to `trait_taxonomy` "associated_tasks": { "description": "A list of task IDs that this content was created or curated to satisfy.", "type": "array", "items": { "type": "string" } # Concerns - Do we need to limit the number of task IDs that can be associated with a story? It is conceivable that a single photo, for example, is used to satsify many different tasks. # Implementation A developer on the Anglerfish team will implement this and add it to the schema if this proposal is accepted.
Most compelling content includes more than one medium - text, photography, graphics, etc. In order to coordinate the production of this content, editors can create tasks to request colloboration from team's with different skills. If the team decides to take on the work, they'll accept the task and dole out the assignment. At that point, the media is either created (the sidebar is written, the graphic is created) or sourced (an appropriate asset is found on the wires or in the archive). Now that the media exists, the editor who originally commisionshed the work needs a way to easily locate it. This doesn't exist today within Arc. Allowing content creators to tag media with task IDs will make it easy to find work that is produced as the result of a task. # Proposal A new field, associated_tasks, will allow an array of Task IDs (strings) to be associated with any content inside of Arc. This new property will belong to `trait_taxonomy` "associated_tasks": { "description": "A list of task IDs that this content was created or curated to satisfy.", "type": "array", "items": { "type": "string" } + + # Concerns + + - Do we need to limit the number of task IDs that can be associated with a story? It is conceivable that a single photo, for example, is used to satsify many different tasks. + + # Implementation + + A developer on the Anglerfish team will implement this and add it to the schema if this proposal is accepted.
8
0.333333
8
0
22ccc0440394cdec40dc1c0c05dec5ed95f7bae6
app/apps/themes/hub_theme/views/partials/_newsclipping.html.erb
app/apps/themes/hub_theme/views/partials/_newsclipping.html.erb
<div class="sidebar"> <h2>Newsletters</h2> <ul> <% (current_site.the_post_type("newsclippings").the_posts.decorate rescue {}).each_with_index do |clipping, index| %> <li><div><a rel="bookmark" href="<%= clipping.the_field("new-clipping-link") %>"><%= clipping.the_title %></a></div> <div><%= clipping.the_field("news-clipping-date") %></div> <div><%= clipping.the_field("news-clipping-source") %></div> </li> <% end %> </ul> </div>
<div class="sidebar"> <h2>Newsletters</h2> <ul> <% (current_site.the_post_type("newsclippings").the_posts.decorate rescue {}).each_with_index do |clipping, index| %> <li><div><a href="<%= clipping.the_field("news-clipping-link") %>"><%= clipping.the_title %></a></div> <div><%= clipping.the_field("news-clipping-date") %></div> <div><%= clipping.the_field("news-clipping-source") %></div> </li> <% end %> </ul> </div>
Correct link to news clippings
Correct link to news clippings
HTML+ERB
mit
jdollete/trenton-business-portal,jdollete/trenton-business-portal,jdollete/trenton-business-portal
html+erb
## Code Before: <div class="sidebar"> <h2>Newsletters</h2> <ul> <% (current_site.the_post_type("newsclippings").the_posts.decorate rescue {}).each_with_index do |clipping, index| %> <li><div><a rel="bookmark" href="<%= clipping.the_field("new-clipping-link") %>"><%= clipping.the_title %></a></div> <div><%= clipping.the_field("news-clipping-date") %></div> <div><%= clipping.the_field("news-clipping-source") %></div> </li> <% end %> </ul> </div> ## Instruction: Correct link to news clippings ## Code After: <div class="sidebar"> <h2>Newsletters</h2> <ul> <% (current_site.the_post_type("newsclippings").the_posts.decorate rescue {}).each_with_index do |clipping, index| %> <li><div><a href="<%= clipping.the_field("news-clipping-link") %>"><%= clipping.the_title %></a></div> <div><%= clipping.the_field("news-clipping-date") %></div> <div><%= clipping.the_field("news-clipping-source") %></div> </li> <% end %> </ul> </div>
<div class="sidebar"> <h2>Newsletters</h2> <ul> <% (current_site.the_post_type("newsclippings").the_posts.decorate rescue {}).each_with_index do |clipping, index| %> - <li><div><a rel="bookmark" href="<%= clipping.the_field("new-clipping-link") %>"><%= clipping.the_title %></a></div> ? --------------- + <li><div><a href="<%= clipping.the_field("news-clipping-link") %>"><%= clipping.the_title %></a></div> ? + <div><%= clipping.the_field("news-clipping-date") %></div> <div><%= clipping.the_field("news-clipping-source") %></div> </li> <% end %> </ul> </div>
2
0.181818
1
1
47e946dd1992571f0d407ab90c57fc8b324bd422
src/dxfw-samples/empty-window/CMakeLists.txt
src/dxfw-samples/empty-window/CMakeLists.txt
cmake_minimum_required(VERSION 3.4) project(empty-window VERSION 0.1 LANGUAGES CXX) set(PROJECT_INCLUDE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SOURCE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/main.cpp ) include_directories("${PROJECT_INCLUDE_DIR}" "${ROOT_INCLUDE_DIR}") add_executable(${PROJECT_NAME} "${PROJECT_SRCS}") target_link_libraries(${PROJECT_NAME} dxfw)
cmake_minimum_required(VERSION 3.4) project(empty-window VERSION 0.1 LANGUAGES CXX) set(PROJECT_INCLUDE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SOURCE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/main.cpp ) include_directories("${PROJECT_INCLUDE_DIR}" "${ROOT_INCLUDE_DIR}") add_executable(${PROJECT_NAME} "${PROJECT_SRCS}") target_link_libraries(${PROJECT_NAME} dxfw) set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/subsystem:windows /ENTRY:mainCRTStartup")
Make the empty-window sample not show console
Make the empty-window sample not show console
Text
mit
BartSiwek/DXFW,BartSiwek/DXFW
text
## Code Before: cmake_minimum_required(VERSION 3.4) project(empty-window VERSION 0.1 LANGUAGES CXX) set(PROJECT_INCLUDE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SOURCE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/main.cpp ) include_directories("${PROJECT_INCLUDE_DIR}" "${ROOT_INCLUDE_DIR}") add_executable(${PROJECT_NAME} "${PROJECT_SRCS}") target_link_libraries(${PROJECT_NAME} dxfw) ## Instruction: Make the empty-window sample not show console ## Code After: cmake_minimum_required(VERSION 3.4) project(empty-window VERSION 0.1 LANGUAGES CXX) set(PROJECT_INCLUDE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SOURCE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/main.cpp ) include_directories("${PROJECT_INCLUDE_DIR}" "${ROOT_INCLUDE_DIR}") add_executable(${PROJECT_NAME} "${PROJECT_SRCS}") target_link_libraries(${PROJECT_NAME} dxfw) set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/subsystem:windows /ENTRY:mainCRTStartup")
cmake_minimum_required(VERSION 3.4) project(empty-window VERSION 0.1 LANGUAGES CXX) set(PROJECT_INCLUDE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SOURCE_DIR "${ROOT_SOURCE_DIR}/dxfw-samples/empty-window") set(PROJECT_SRCS ${PROJECT_SOURCE_DIR}/main.cpp ) include_directories("${PROJECT_INCLUDE_DIR}" "${ROOT_INCLUDE_DIR}") add_executable(${PROJECT_NAME} "${PROJECT_SRCS}") target_link_libraries(${PROJECT_NAME} dxfw) + + set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "/subsystem:windows /ENTRY:mainCRTStartup")
2
0.125
2
0
2e42598e4a01deae87b9d7a6e003f33ea43491ee
Gruntfile.js
Gruntfile.js
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: true, commitMessage: 'Release v%VERSION%', createTag: true, tagName: 'v%VERSION%', tagMessage: 'Version %VERSION%', push: true, pushTo: 'origin', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' } }, cucumberjs: { options: { format: 'html', output: 'reports/my_report.html', theme: 'bootstrap' }, features: ['features/**/*.feature'] }, jshint: { options: { esversion: 6, reporter: require('jshint-stylish') }, build: ['*.js', 'features/**/*.js', 'public/**/*.js', '!public/lib/**/*.js'] } }); // LOAD GRUNT PACKAGES grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-cucumberjs'); };
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: true, commitMessage: 'Release v%VERSION%', createTag: true, tagName: 'v%VERSION%', tagMessage: 'Version %VERSION%', push: true, pushTo: 'origin', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' } }, cucumberjs: { options: { format: 'html', output: 'reports/my_report.html', theme: 'bootstrap' }, features: ['features/**/*.feature'] }, jshint: { options: { esversion: 6, reporter: require('jshint-stylish') }, build: ['*.js', 'features/**/*.js', 'public/**/*.js', '!public/lib/**/*.js'] }, karma: { unit: { configFile: 'karma.conf.js' } } }); // LOAD GRUNT PACKAGES grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-cucumberjs'); grunt.loadNpmTasks('grunt-karma'); };
Add Karma as Grunt task
Add Karma as Grunt task
JavaScript
mit
Mctalian/HydroZone,Mctalian/HydroZone
javascript
## Code Before: module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: true, commitMessage: 'Release v%VERSION%', createTag: true, tagName: 'v%VERSION%', tagMessage: 'Version %VERSION%', push: true, pushTo: 'origin', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' } }, cucumberjs: { options: { format: 'html', output: 'reports/my_report.html', theme: 'bootstrap' }, features: ['features/**/*.feature'] }, jshint: { options: { esversion: 6, reporter: require('jshint-stylish') }, build: ['*.js', 'features/**/*.js', 'public/**/*.js', '!public/lib/**/*.js'] } }); // LOAD GRUNT PACKAGES grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-cucumberjs'); }; ## Instruction: Add Karma as Grunt task ## Code After: module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: true, commitMessage: 'Release v%VERSION%', createTag: true, tagName: 'v%VERSION%', tagMessage: 'Version %VERSION%', push: true, pushTo: 'origin', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' } }, cucumberjs: { options: { format: 'html', output: 'reports/my_report.html', theme: 'bootstrap' }, features: ['features/**/*.feature'] }, jshint: { options: { esversion: 6, reporter: require('jshint-stylish') }, build: ['*.js', 'features/**/*.js', 'public/**/*.js', '!public/lib/**/*.js'] }, karma: { unit: { configFile: 'karma.conf.js' } } }); // LOAD GRUNT PACKAGES grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-cucumberjs'); grunt.loadNpmTasks('grunt-karma'); };
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bump: { options: { files: ['package.json'], updateConfigs: ['pkg'], commit: true, commitMessage: 'Release v%VERSION%', createTag: true, tagName: 'v%VERSION%', tagMessage: 'Version %VERSION%', push: true, pushTo: 'origin', gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' } }, cucumberjs: { options: { format: 'html', output: 'reports/my_report.html', theme: 'bootstrap' }, features: ['features/**/*.feature'] }, jshint: { options: { esversion: 6, reporter: require('jshint-stylish') }, build: ['*.js', 'features/**/*.js', 'public/**/*.js', '!public/lib/**/*.js'] + }, + + karma: { + unit: { + configFile: 'karma.conf.js' + } } }); // LOAD GRUNT PACKAGES grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-cucumberjs'); + grunt.loadNpmTasks('grunt-karma'); };
7
0.162791
7
0
8a7799c14b2248f3538d0fa88621b93bfc52b460
skyring-pre.sh
skyring-pre.sh
USER=`/bin/mongo -quiet skyring --eval 'db.getUser("admin")["user"]'` if [ $? -ne 0 ] || [ "${USER}" != 'admin' ]; then /bin/systemctl status mongod > /dev/null 2>&1 if [ $? -eq 0 ]; then pwd=`python -c 'import json;print json.loads(open("/etc/skyring/skyring.conf").read())["dbconfig"]["password"]'` cmd="/bin/mongo skyring --eval 'db.createUser( { \"user\" : \"admin\", \"pwd\": \"$pwd\", \"roles\" : [\"readWrite\", \"dbAdmin\", \"userAdmin\"] })'" eval $cmd fi fi sed -i -e 's/#auth = true/auth = true/g' /etc/mongodb.conf
USER=`/bin/mongo -quiet skyring --eval 'db.getUser("admin")["user"]'` if [ $? -ne 0 ] || [ "${USER}" != 'admin' ]; then /bin/systemctl status mongod > /dev/null 2>&1 if [ $? -eq 0 ]; then pwd=`python -c 'import json;print json.loads(open("/etc/skyring/skyring.conf").read())["dbconfig"]["password"]'` cmd="/bin/mongo skyring --eval 'db.createUser( { \"user\" : \"admin\", \"pwd\": \"$pwd\", \"roles\" : [\"readWrite\", \"dbAdmin\", \"userAdmin\"] })'" eval $cmd fi fi
Revert "skyring: Set auth = true post installation for mongodb"
Revert "skyring: Set auth = true post installation for mongodb" This reverts commit dbaf30c0b2669ead615d83575208b7840b2d1737. Change-Id: Id65de9ee2dace4c1598621766f40d8572796cb10
Shell
apache-2.0
skyrings/skyring,skyrings/skyring,skyrings/skyring,skyrings/skyring
shell
## Code Before: USER=`/bin/mongo -quiet skyring --eval 'db.getUser("admin")["user"]'` if [ $? -ne 0 ] || [ "${USER}" != 'admin' ]; then /bin/systemctl status mongod > /dev/null 2>&1 if [ $? -eq 0 ]; then pwd=`python -c 'import json;print json.loads(open("/etc/skyring/skyring.conf").read())["dbconfig"]["password"]'` cmd="/bin/mongo skyring --eval 'db.createUser( { \"user\" : \"admin\", \"pwd\": \"$pwd\", \"roles\" : [\"readWrite\", \"dbAdmin\", \"userAdmin\"] })'" eval $cmd fi fi sed -i -e 's/#auth = true/auth = true/g' /etc/mongodb.conf ## Instruction: Revert "skyring: Set auth = true post installation for mongodb" This reverts commit dbaf30c0b2669ead615d83575208b7840b2d1737. Change-Id: Id65de9ee2dace4c1598621766f40d8572796cb10 ## Code After: USER=`/bin/mongo -quiet skyring --eval 'db.getUser("admin")["user"]'` if [ $? -ne 0 ] || [ "${USER}" != 'admin' ]; then /bin/systemctl status mongod > /dev/null 2>&1 if [ $? -eq 0 ]; then pwd=`python -c 'import json;print json.loads(open("/etc/skyring/skyring.conf").read())["dbconfig"]["password"]'` cmd="/bin/mongo skyring --eval 'db.createUser( { \"user\" : \"admin\", \"pwd\": \"$pwd\", \"roles\" : [\"readWrite\", \"dbAdmin\", \"userAdmin\"] })'" eval $cmd fi fi
USER=`/bin/mongo -quiet skyring --eval 'db.getUser("admin")["user"]'` if [ $? -ne 0 ] || [ "${USER}" != 'admin' ]; then /bin/systemctl status mongod > /dev/null 2>&1 if [ $? -eq 0 ]; then pwd=`python -c 'import json;print json.loads(open("/etc/skyring/skyring.conf").read())["dbconfig"]["password"]'` cmd="/bin/mongo skyring --eval 'db.createUser( { \"user\" : \"admin\", \"pwd\": \"$pwd\", \"roles\" : [\"readWrite\", \"dbAdmin\", \"userAdmin\"] })'" eval $cmd fi fi - sed -i -e 's/#auth = true/auth = true/g' /etc/mongodb.conf
1
0.1
0
1
146d71c86c5e58b0ed41e66de7a5c94e937fc6a9
setup.py
setup.py
from setuptools import find_packages, setup VERSION = "1.0.0" with open("requirements.txt", "rt") as f: requirements= f.read().splitlines() setup(name="sacad", version=VERSION, author="desbma", packages=find_packages(), entry_points={"console_scripts": ["sacad = sacad:cl_main"]}, package_data={"": ["LICENSE", "README.md", "requirements.txt"]}, test_suite="tests", install_requires=requirements, description="Search and download music album covers", url="https://github.com/desbma/sacad", download_url="https://github.com/desbma/sacad/tarball/%s" % (VERSION), keywords=["dowload", "album", "cover", "art", "albumart", "music"], classifiers=["Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Multimedia :: Graphics", "Topic :: Utilities"])
from setuptools import find_packages, setup VERSION = "1.0.0" with open("requirements.txt", "rt") as f: requirements= f.read().splitlines() setup(name="sacad", version=VERSION, author="desbma", packages=find_packages(), entry_points={"console_scripts": ["sacad = sacad:cl_main"]}, package_data={"": ["LICENSE", "README.md", "requirements.txt"]}, test_suite="tests", install_requires=requirements, description="Search and download music album covers", url="https://github.com/desbma/sacad", download_url="https://github.com/desbma/sacad/archive/%s.tar.gz" % (VERSION), keywords=["dowload", "album", "cover", "art", "albumart", "music"], classifiers=["Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Multimedia :: Graphics", "Topic :: Utilities"])
Use alternate GitHub download URL
Use alternate GitHub download URL
Python
mpl-2.0
desbma/sacad,desbma/sacad
python
## Code Before: from setuptools import find_packages, setup VERSION = "1.0.0" with open("requirements.txt", "rt") as f: requirements= f.read().splitlines() setup(name="sacad", version=VERSION, author="desbma", packages=find_packages(), entry_points={"console_scripts": ["sacad = sacad:cl_main"]}, package_data={"": ["LICENSE", "README.md", "requirements.txt"]}, test_suite="tests", install_requires=requirements, description="Search and download music album covers", url="https://github.com/desbma/sacad", download_url="https://github.com/desbma/sacad/tarball/%s" % (VERSION), keywords=["dowload", "album", "cover", "art", "albumart", "music"], classifiers=["Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Multimedia :: Graphics", "Topic :: Utilities"]) ## Instruction: Use alternate GitHub download URL ## Code After: from setuptools import find_packages, setup VERSION = "1.0.0" with open("requirements.txt", "rt") as f: requirements= f.read().splitlines() setup(name="sacad", version=VERSION, author="desbma", packages=find_packages(), entry_points={"console_scripts": ["sacad = sacad:cl_main"]}, package_data={"": ["LICENSE", "README.md", "requirements.txt"]}, test_suite="tests", install_requires=requirements, description="Search and download music album covers", url="https://github.com/desbma/sacad", download_url="https://github.com/desbma/sacad/archive/%s.tar.gz" % (VERSION), keywords=["dowload", "album", "cover", "art", "albumart", "music"], classifiers=["Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Multimedia :: Graphics", "Topic :: Utilities"])
from setuptools import find_packages, setup VERSION = "1.0.0" with open("requirements.txt", "rt") as f: requirements= f.read().splitlines() setup(name="sacad", version=VERSION, author="desbma", packages=find_packages(), entry_points={"console_scripts": ["sacad = sacad:cl_main"]}, package_data={"": ["LICENSE", "README.md", "requirements.txt"]}, test_suite="tests", install_requires=requirements, description="Search and download music album covers", url="https://github.com/desbma/sacad", - download_url="https://github.com/desbma/sacad/tarball/%s" % (VERSION), ? ^^^^^^^ + download_url="https://github.com/desbma/sacad/archive/%s.tar.gz" % (VERSION), ? +++++++++++ ^^^ keywords=["dowload", "album", "cover", "art", "albumart", "music"], classifiers=["Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Multimedia :: Graphics", "Topic :: Utilities"])
2
0.057143
1
1
548f71711aeb27369e8fbc77b5a54bb5cc89c2b8
src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html
src/main/webapp/help/ArtifactoryBuilder/help-useCredentialsPlugin.html
<div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </div>
<div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </br> Note: Only Credentials object of the "Global" scope are supported. </div>
Clarify "System" scoped credentials don't work
Clarify "System" scoped credentials don't work
HTML
apache-2.0
AlexeiVainshtein/jenkins-artifactory-plugin,JFrogDev/jenkins-artifactory-plugin,JFrogDev/jenkins-artifactory-plugin,AlexeiVainshtein/jenkins-artifactory-plugin,JFrogDev/jenkins-artifactory-plugin,AlexeiVainshtein/jenkins-artifactory-plugin
html
## Code Before: <div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </div> ## Instruction: Clarify "System" scoped credentials don't work ## Code After: <div> When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </br> Note: Only Credentials object of the "Global" scope are supported. </div>
<div> - When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. + When checked, Jenkins job authentication with Artifactory is done through the credentials plugin. </br> ? ++++++ + Note: Only Credentials object of the "Global" scope are supported. </div>
3
1
2
1
f304a96a878367c92bd7a515a77606522dddcb50
README.md
README.md
BoozeBookshelf ============== The arduino code to run my booze bookshelf LEDs. Instead of using the Arduino IDE, this code is organized in an eclipse project using the awesome [arduino eclipse plugin](http://www.baeyens.it/eclipse/). [![ScreenShot](https://raw.github.com/jgillick/BoozeBookshelf/master/youtube_screenshot.png)](http://youtu.be/2yeKEu4ycDE)
BoozeBookshelf ============== The arduino code to run my booze bookshelf LEDs. Instead of using the Arduino IDE, this code is organized in an eclipse project using the awesome [arduino eclipse plugin](http://www.baeyens.it/eclipse/). [![ScreenShot](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/youtube_screenshot.png)](http://youtu.be/2yeKEu4ycDE) Build Log --------- The full build log with pictures and circuit explanation can be found on [my blog](http://mozmonkey.com/2013/10/booze-bookshelf-with-leds-and-built-in-dance-party/). Circuit ------- [![Circuit](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/full_circuit.png)](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/full_circuit.png) This is the cirtuit with only one of the 4 shelves connected.
Add circuit pics to the readme
Add circuit pics to the readme
Markdown
mit
jgillick/BoozeBookshelf
markdown
## Code Before: BoozeBookshelf ============== The arduino code to run my booze bookshelf LEDs. Instead of using the Arduino IDE, this code is organized in an eclipse project using the awesome [arduino eclipse plugin](http://www.baeyens.it/eclipse/). [![ScreenShot](https://raw.github.com/jgillick/BoozeBookshelf/master/youtube_screenshot.png)](http://youtu.be/2yeKEu4ycDE) ## Instruction: Add circuit pics to the readme ## Code After: BoozeBookshelf ============== The arduino code to run my booze bookshelf LEDs. Instead of using the Arduino IDE, this code is organized in an eclipse project using the awesome [arduino eclipse plugin](http://www.baeyens.it/eclipse/). [![ScreenShot](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/youtube_screenshot.png)](http://youtu.be/2yeKEu4ycDE) Build Log --------- The full build log with pictures and circuit explanation can be found on [my blog](http://mozmonkey.com/2013/10/booze-bookshelf-with-leds-and-built-in-dance-party/). Circuit ------- [![Circuit](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/full_circuit.png)](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/full_circuit.png) This is the cirtuit with only one of the 4 shelves connected.
BoozeBookshelf ============== The arduino code to run my booze bookshelf LEDs. Instead of using the Arduino IDE, this code is organized in an eclipse project using the awesome [arduino eclipse plugin](http://www.baeyens.it/eclipse/). - [![ScreenShot](https://raw.github.com/jgillick/BoozeBookshelf/master/youtube_screenshot.png)](http://youtu.be/2yeKEu4ycDE) + [![ScreenShot](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/youtube_screenshot.png)](http://youtu.be/2yeKEu4ycDE) ? +++++++ + Build Log + --------- + The full build log with pictures and circuit explanation can be found on [my blog](http://mozmonkey.com/2013/10/booze-bookshelf-with-leds-and-built-in-dance-party/). + + Circuit + ------- + [![Circuit](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/full_circuit.png)](https://raw.github.com/jgillick/BoozeBookshelf/master/assets/full_circuit.png) + + This is the cirtuit with only one of the 4 shelves connected.
11
1.571429
10
1
bf8e97f4876170bb98fb3cf9052d1cf33ed43480
board_files/include/general-functions.php
board_files/include/general-functions.php
<?php if (!defined('NELLIEL_VERSION')) { die("NOPE.AVI"); } function nel_is_in_string($string, $substring) { if(strripos($string, $substring) !== false) { return true; } else { return false; } } function nel_clean_exit($dataforce, $die) { //$dataforce['post_links'] = nel_cache_links($dataforce['post_links']); //nel_write_multi_cache($dataforce); $authorize = nel_get_authorization(); $authorize->save_users(); $authorize->save_roles(); if ($die) { die(); } echo '<meta http-equiv="refresh" content="2;URL=' . PHP_SELF2 . PHP_EXT . '">'; die(); } function get_millisecond_time() { $time = explode(' ', microtime()); $time[0] = str_pad(round($time[0] * 1000), 3, '0', STR_PAD_LEFT); return $time[1] . $time[0]; }
<?php if (!defined('NELLIEL_VERSION')) { die("NOPE.AVI"); } function nel_is_in_string($string, $substring) { if (strripos($string, $substring) !== false) { return true; } else { return false; } } function nel_clean_exit($dataforce, $die) { //$dataforce['post_links'] = nel_cache_links($dataforce['post_links']); //nel_write_multi_cache($dataforce); $authorize = nel_get_authorization(); $authorize->save_users(); $authorize->save_roles(); if ($die) { die(); } echo '<meta http-equiv="refresh" content="2;URL=' . PHP_SELF2 . PHP_EXT . '">'; die(); } function get_millisecond_time() { $time = explode(' ', microtime()); $time[0] = str_pad(round($time[0] * 1000), 3, '0', STR_PAD_LEFT); return $time[1] . $time[0]; } function nel_true_empty($var) { if (!empty($var)) { return false; } if(is_null($var) || (is_string($var) && $var === '') || (is_array($var) && $var === array())) { return true; } return false; }
Add a "true" empty function
Add a "true" empty function
PHP
bsd-3-clause
OtakuMegane/Nelliel,OtakuMegane/Nelliel,OtakuMegane/Nelliel
php
## Code Before: <?php if (!defined('NELLIEL_VERSION')) { die("NOPE.AVI"); } function nel_is_in_string($string, $substring) { if(strripos($string, $substring) !== false) { return true; } else { return false; } } function nel_clean_exit($dataforce, $die) { //$dataforce['post_links'] = nel_cache_links($dataforce['post_links']); //nel_write_multi_cache($dataforce); $authorize = nel_get_authorization(); $authorize->save_users(); $authorize->save_roles(); if ($die) { die(); } echo '<meta http-equiv="refresh" content="2;URL=' . PHP_SELF2 . PHP_EXT . '">'; die(); } function get_millisecond_time() { $time = explode(' ', microtime()); $time[0] = str_pad(round($time[0] * 1000), 3, '0', STR_PAD_LEFT); return $time[1] . $time[0]; } ## Instruction: Add a "true" empty function ## Code After: <?php if (!defined('NELLIEL_VERSION')) { die("NOPE.AVI"); } function nel_is_in_string($string, $substring) { if (strripos($string, $substring) !== false) { return true; } else { return false; } } function nel_clean_exit($dataforce, $die) { //$dataforce['post_links'] = nel_cache_links($dataforce['post_links']); //nel_write_multi_cache($dataforce); $authorize = nel_get_authorization(); $authorize->save_users(); $authorize->save_roles(); if ($die) { die(); } echo '<meta http-equiv="refresh" content="2;URL=' . PHP_SELF2 . PHP_EXT . '">'; die(); } function get_millisecond_time() { $time = explode(' ', microtime()); $time[0] = str_pad(round($time[0] * 1000), 3, '0', STR_PAD_LEFT); return $time[1] . $time[0]; } function nel_true_empty($var) { if (!empty($var)) { return false; } if(is_null($var) || (is_string($var) && $var === '') || (is_array($var) && $var === array())) { return true; } return false; }
<?php if (!defined('NELLIEL_VERSION')) { die("NOPE.AVI"); } function nel_is_in_string($string, $substring) { - if(strripos($string, $substring) !== false) + if (strripos($string, $substring) !== false) ? + { return true; } else { return false; } } function nel_clean_exit($dataforce, $die) { //$dataforce['post_links'] = nel_cache_links($dataforce['post_links']); //nel_write_multi_cache($dataforce); - $authorize = nel_get_authorization(); $authorize->save_users(); $authorize->save_roles(); if ($die) { die(); } echo '<meta http-equiv="refresh" content="2;URL=' . PHP_SELF2 . PHP_EXT . '">'; die(); } function get_millisecond_time() { $time = explode(' ', microtime()); $time[0] = str_pad(round($time[0] * 1000), 3, '0', STR_PAD_LEFT); return $time[1] . $time[0]; } + + function nel_true_empty($var) + { + if (!empty($var)) + { + return false; + } + + if(is_null($var) || (is_string($var) && $var === '') || (is_array($var) && $var === array())) + { + return true; + } + + return false; + }
18
0.428571
16
2
928f2b1be3d8c270a75de7fd9b428dc957b71fc4
BUILDING.txt
BUILDING.txt
JEXL 3.0 uses Maven 3 as the build tool, and requires Java 6 (or later). The following goals may be useful: * mvn clean - clean up * mvn test - compile and run the unit tests * mvn site - create the documentation * mvn package - build the jar * mvn install - build the jar and install in local maven repository
JEXL 3.0 uses Maven 3 as the build tool, and requires Java 6 (or later). The following goals may be useful: * mvn clean - clean up * mvn test - compile and run the unit tests * mvn site - create the documentation * mvn package - build the jar * mvn install - build the jar and install in local maven repository Note that the Maven build process uses JavaCC to generate some sources. These are created under target/generated sources and automatically compiled. The generated class files are needed to compile some of the ordinary Java source files. This can cause problems for some IDEs, which will need to be configured accordingly.
Build depends on JavaCC which causes issues for IDEs
Build depends on JavaCC which causes issues for IDEs git-svn-id: 4652571f3dffef9654f8145d6bccf468f90ae391@1718884 13f79535-47bb-0310-9956-ffa450edef68
Text
apache-2.0
apache/commons-jexl,apache/commons-jexl,apache/commons-jexl
text
## Code Before: JEXL 3.0 uses Maven 3 as the build tool, and requires Java 6 (or later). The following goals may be useful: * mvn clean - clean up * mvn test - compile and run the unit tests * mvn site - create the documentation * mvn package - build the jar * mvn install - build the jar and install in local maven repository ## Instruction: Build depends on JavaCC which causes issues for IDEs git-svn-id: 4652571f3dffef9654f8145d6bccf468f90ae391@1718884 13f79535-47bb-0310-9956-ffa450edef68 ## Code After: JEXL 3.0 uses Maven 3 as the build tool, and requires Java 6 (or later). The following goals may be useful: * mvn clean - clean up * mvn test - compile and run the unit tests * mvn site - create the documentation * mvn package - build the jar * mvn install - build the jar and install in local maven repository Note that the Maven build process uses JavaCC to generate some sources. These are created under target/generated sources and automatically compiled. The generated class files are needed to compile some of the ordinary Java source files. This can cause problems for some IDEs, which will need to be configured accordingly.
JEXL 3.0 uses Maven 3 as the build tool, and requires Java 6 (or later). The following goals may be useful: * mvn clean - clean up * mvn test - compile and run the unit tests * mvn site - create the documentation * mvn package - build the jar * mvn install - build the jar and install in local maven repository + + Note that the Maven build process uses JavaCC to generate some sources. + These are created under target/generated sources and automatically compiled. + The generated class files are needed to compile some of the ordinary Java source files. + This can cause problems for some IDEs, which will need to be configured accordingly. +
6
0.75
6
0
baad35a45750e72879b2ac5c7fa4a7e4e6504b1e
.travis.yml
.travis.yml
language: ruby cache: bundler sudo: false rvm: - 2.6.3 - 2.5.5 - 2.4.6 - ruby-head before_install: - gem update --system - gem install bundler --no-document gemfile: - gemfiles/rails_5.0.7.gemfile - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.3.gemfile - gemfiles/rails_6.0.0.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT matrix: exclude: - gemfile: gemfiles/rails_6.0.0.gemfile rvm: 2.4.6
language: ruby cache: bundler sudo: false rvm: - 2.6.3 - 2.5.5 - 2.4.6 - ruby-head before_install: - gem update --system - gem install bundler --no-document gemfile: - gemfiles/rails_5.0.7.gemfile - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.3.gemfile - gemfiles/rails_6.0.0.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT matrix: exclude: - gemfile: gemfiles/rails_6.0.0.gemfile rvm: 2.4.6 allow_failures: - rvm: ruby-head
Allow failures for Ruby head
Allow failures for Ruby head
YAML
mit
jbox-web/active_use_case
yaml
## Code Before: language: ruby cache: bundler sudo: false rvm: - 2.6.3 - 2.5.5 - 2.4.6 - ruby-head before_install: - gem update --system - gem install bundler --no-document gemfile: - gemfiles/rails_5.0.7.gemfile - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.3.gemfile - gemfiles/rails_6.0.0.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT matrix: exclude: - gemfile: gemfiles/rails_6.0.0.gemfile rvm: 2.4.6 ## Instruction: Allow failures for Ruby head ## Code After: language: ruby cache: bundler sudo: false rvm: - 2.6.3 - 2.5.5 - 2.4.6 - ruby-head before_install: - gem update --system - gem install bundler --no-document gemfile: - gemfiles/rails_5.0.7.gemfile - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.3.gemfile - gemfiles/rails_6.0.0.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT matrix: exclude: - gemfile: gemfiles/rails_6.0.0.gemfile rvm: 2.4.6 allow_failures: - rvm: ruby-head
language: ruby cache: bundler sudo: false rvm: - 2.6.3 - 2.5.5 - 2.4.6 - ruby-head before_install: - gem update --system - gem install bundler --no-document gemfile: - gemfiles/rails_5.0.7.gemfile - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.3.gemfile - gemfiles/rails_6.0.0.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT matrix: exclude: - gemfile: gemfiles/rails_6.0.0.gemfile rvm: 2.4.6 + allow_failures: + - rvm: ruby-head
2
0.076923
2
0
b2cc28ad233e9c90bb3268f324c747d355cc4f9e
sublime.sh
sublime.sh
set -e TARGET_FILE=$HOME/"Library/Application Support/Sublime Text 3/Packages/User" osascript -e 'quit app "Sublime Text"' rm -rf "$TARGET_FILE" ln -Ffs sublime/ "$TARGET_FILE"
set -e SOURCE_FILE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sublime/" TARGET_FILE=$HOME/"Library/Application Support/Sublime Text 3/Packages/User" osascript -e 'quit app "Sublime Text"' rm -rf "$TARGET_FILE" ln -Ffs "$SOURCE_FILE" "$TARGET_FILE"
Fix linking of Sublime Text preferences
Fix linking of Sublime Text preferences
Shell
mit
MichaelLutaaya/dotfiles,lutaaya/dotfiles,MichaelLutaaya/dotfiles,lutaaya/dotfiles
shell
## Code Before: set -e TARGET_FILE=$HOME/"Library/Application Support/Sublime Text 3/Packages/User" osascript -e 'quit app "Sublime Text"' rm -rf "$TARGET_FILE" ln -Ffs sublime/ "$TARGET_FILE" ## Instruction: Fix linking of Sublime Text preferences ## Code After: set -e SOURCE_FILE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sublime/" TARGET_FILE=$HOME/"Library/Application Support/Sublime Text 3/Packages/User" osascript -e 'quit app "Sublime Text"' rm -rf "$TARGET_FILE" ln -Ffs "$SOURCE_FILE" "$TARGET_FILE"
set -e + SOURCE_FILE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/sublime/" TARGET_FILE=$HOME/"Library/Application Support/Sublime Text 3/Packages/User" osascript -e 'quit app "Sublime Text"' rm -rf "$TARGET_FILE" - ln -Ffs sublime/ "$TARGET_FILE" + ln -Ffs "$SOURCE_FILE" "$TARGET_FILE"
3
0.333333
2
1
35328986c961eaa020028f97a33aa438cc011d86
content/extra/custom.css
content/extra/custom.css
.highlight { background-color: #f8f8f8 }
.highlight { background-color: #f8f8f8; } body { font-family: 'Lora', 'Times New Roman', 'serif'; font-size: 18px; line-height: 1.42857143; }
Update fonts, font size, etc, for readability
Update fonts, font size, etc, for readability
CSS
mit
pappasam/pappasam.github.io,pappasam/pappasam.github.io
css
## Code Before: .highlight { background-color: #f8f8f8 } ## Instruction: Update fonts, font size, etc, for readability ## Code After: .highlight { background-color: #f8f8f8; } body { font-family: 'Lora', 'Times New Roman', 'serif'; font-size: 18px; line-height: 1.42857143; }
.highlight { - background-color: #f8f8f8 + background-color: #f8f8f8; ? + } + + body { + font-family: 'Lora', 'Times New Roman', 'serif'; + font-size: 18px; + line-height: 1.42857143; + }
8
2.666667
7
1
8e8f61b37ed45304113cd98d4e804cffc29d6724
molecule.yml
molecule.yml
--- dependency: name: galaxy driver: name: docker docker: containers: - name: ansible-role-influxdb image: centos/systemd image_version: latest privileged: True ansible_groups: - group1 verifier: name: testinfra options: ignore: venv molecule: ignore_paths: - venv
--- dependency: name: galaxy driver: name: docker docker: containers: - name: ansible-role-influxdb image: centos/systemd # centos/systemd doesn't provide any other tags :( image_version: latest privileged: True ansible_groups: - group1 verifier: name: testinfra options: ignore: venv molecule: ignore_paths: - venv
Add comment from collectd because it still makes me :(
Add comment from collectd because it still makes me :(
YAML
mit
mrtyler/ansible-role-influxdb,idi-ops/ansible-influxdb
yaml
## Code Before: --- dependency: name: galaxy driver: name: docker docker: containers: - name: ansible-role-influxdb image: centos/systemd image_version: latest privileged: True ansible_groups: - group1 verifier: name: testinfra options: ignore: venv molecule: ignore_paths: - venv ## Instruction: Add comment from collectd because it still makes me :( ## Code After: --- dependency: name: galaxy driver: name: docker docker: containers: - name: ansible-role-influxdb image: centos/systemd # centos/systemd doesn't provide any other tags :( image_version: latest privileged: True ansible_groups: - group1 verifier: name: testinfra options: ignore: venv molecule: ignore_paths: - venv
--- dependency: name: galaxy driver: name: docker docker: containers: - name: ansible-role-influxdb - image: centos/systemd + image: centos/systemd # centos/systemd doesn't provide any other tags :( image_version: latest privileged: True ansible_groups: - group1 verifier: name: testinfra options: ignore: venv molecule: ignore_paths: - venv
2
0.095238
1
1
4dd09c480769631d18d9475bd177ce34e2c95aed
pkgs/all-pkgs/minisign/default.nix
pkgs/all-pkgs/minisign/default.nix
{ stdenv , cmake , fetchurl , ninja , libsodium }: stdenv.mkDerivation rec { name = "minisign-${version}"; version = "0.6"; src = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f09"; }; nativeBuildInputs = [ cmake ninja ]; buildInputs = [ libsodium ]; meta = with stdenv.lib; { maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
{ stdenv , cmake , fetchurl , ninja , libsodium }: stdenv.mkDerivation rec { name = "minisign-${version}"; version = "0.6"; src = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f09"; }; nativeBuildInputs = [ cmake ninja ]; buildInputs = [ libsodium ]; passthru = { srcUpdate = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; minisignUrl = "https://github.com/jedisct1/minisign/releases/download/${version}/minisign-${version}.tar.gz.minisig"; minisignPub = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f0a"; showURLs = true; }; }; meta = with stdenv.lib; { maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
Allow updates to verify minisign hash
minisign: Allow updates to verify minisign hash
Nix
mit
triton/triton,triton/triton,triton/triton,triton/triton,triton/triton,triton/triton,triton/triton,triton/triton
nix
## Code Before: { stdenv , cmake , fetchurl , ninja , libsodium }: stdenv.mkDerivation rec { name = "minisign-${version}"; version = "0.6"; src = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f09"; }; nativeBuildInputs = [ cmake ninja ]; buildInputs = [ libsodium ]; meta = with stdenv.lib; { maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; } ## Instruction: minisign: Allow updates to verify minisign hash ## Code After: { stdenv , cmake , fetchurl , ninja , libsodium }: stdenv.mkDerivation rec { name = "minisign-${version}"; version = "0.6"; src = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f09"; }; nativeBuildInputs = [ cmake ninja ]; buildInputs = [ libsodium ]; passthru = { srcUpdate = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; minisignUrl = "https://github.com/jedisct1/minisign/releases/download/${version}/minisign-${version}.tar.gz.minisig"; minisignPub = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f0a"; showURLs = true; }; }; meta = with stdenv.lib; { maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
{ stdenv , cmake , fetchurl , ninja , libsodium }: stdenv.mkDerivation rec { name = "minisign-${version}"; version = "0.6"; src = fetchurl { url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f09"; }; nativeBuildInputs = [ cmake ninja ]; buildInputs = [ libsodium ]; + passthru = { + srcUpdate = fetchurl { + url = "https://github.com/jedisct1/minisign/archive/${version}.tar.gz"; + minisignUrl = "https://github.com/jedisct1/minisign/releases/download/${version}/minisign-${version}.tar.gz.minisig"; + minisignPub = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"; + sha256 = "f2267a07bece923d4d174ccacccc56eff9c05b28c4d971e601de896355442f0a"; + showURLs = true; + }; + }; + meta = with stdenv.lib; { maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
10
0.294118
10
0
bf43ebd5152a32c16a5f85f93c827366745db6a0
operations/create-upgrade-ert-pipeline.yml
operations/create-upgrade-ert-pipeline.yml
- op: replace path: /name=tile/name value: elastic-runtime - op: replace path: /product_slug={{product_slug}}/product_slug value: elastic-runtime - op: replace path: /resource=tile/resource value: elastic-runtime - op: replace path: /get=tile/get value: elastic-runtime - op: replace path: /jobs/name=upload-and-stage-tile/name value: upload-and-stage-ert - op: replace path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-stemcell/task value: upload-ert-and-stemcell - op: replace path: /jobs/PRODUCT_NAME={{product_name}}/PRODUCT_NAME value: cf - op: replace path: /jobs/name=apply-changes/plan/0/aggregate/get=pivnet-product/passed value: [upload-and-stage-ert]
- op: replace path: /name=tile/name value: elastic-runtime - op: replace path: /product_slug={{product_slug}}/product_slug value: elastic-runtime - op: replace path: /resource=tile/resource value: elastic-runtime - op: replace path: /get=tile/get value: elastic-runtime - op: replace path: /jobs/name=upload-and-stage-tile/name value: upload-and-stage-ert - op: replace path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-stemcell/task value: upload-ert-and-stemcell - op: replace path: /jobs/name=apply-changes/plan/0/aggregate/get=pivnet-product/passed value: [upload-and-stage-ert]
Remove product name from from ops file
Remove product name from from ops file [#151069975]
YAML
apache-2.0
mcb/pcf-pipelines,sandyg1/pcf-pipelines,pivotal-cf/pcf-pipelines,pivotal-cf/pcf-pipelines,pivotal-cf/pcf-pipelines,mcb/pcf-pipelines,pivotal-cf/pcf-pipelines,pvsone/pcf-pipelines,cah-josephgeorge/pcf-pipelines,cah-josephgeorge/pcf-pipelines,sandyg1/pcf-pipelines,mcb/pcf-pipelines,pvsone/pcf-pipelines,rahulkj/pcf-pipelines,pvsone/pcf-pipelines,sandyg1/pcf-pipelines,rahulkj/pcf-pipelines,sandyg1/pcf-pipelines,cah-josephgeorge/pcf-pipelines,rahulkj/pcf-pipelines,rahulkj/pcf-pipelines
yaml
## Code Before: - op: replace path: /name=tile/name value: elastic-runtime - op: replace path: /product_slug={{product_slug}}/product_slug value: elastic-runtime - op: replace path: /resource=tile/resource value: elastic-runtime - op: replace path: /get=tile/get value: elastic-runtime - op: replace path: /jobs/name=upload-and-stage-tile/name value: upload-and-stage-ert - op: replace path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-stemcell/task value: upload-ert-and-stemcell - op: replace path: /jobs/PRODUCT_NAME={{product_name}}/PRODUCT_NAME value: cf - op: replace path: /jobs/name=apply-changes/plan/0/aggregate/get=pivnet-product/passed value: [upload-and-stage-ert] ## Instruction: Remove product name from from ops file [#151069975] ## Code After: - op: replace path: /name=tile/name value: elastic-runtime - op: replace path: /product_slug={{product_slug}}/product_slug value: elastic-runtime - op: replace path: /resource=tile/resource value: elastic-runtime - op: replace path: /get=tile/get value: elastic-runtime - op: replace path: /jobs/name=upload-and-stage-tile/name value: upload-and-stage-ert - op: replace path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-stemcell/task value: upload-ert-and-stemcell - op: replace path: /jobs/name=apply-changes/plan/0/aggregate/get=pivnet-product/passed value: [upload-and-stage-ert]
- op: replace path: /name=tile/name value: elastic-runtime - op: replace path: /product_slug={{product_slug}}/product_slug value: elastic-runtime - op: replace path: /resource=tile/resource value: elastic-runtime - op: replace path: /get=tile/get value: elastic-runtime - op: replace path: /jobs/name=upload-and-stage-tile/name value: upload-and-stage-ert - op: replace path: /jobs/name=upload-and-stage-ert/task=upload-tile-and-stemcell/task value: upload-ert-and-stemcell - op: replace - path: /jobs/PRODUCT_NAME={{product_name}}/PRODUCT_NAME - value: cf - - - op: replace path: /jobs/name=apply-changes/plan/0/aggregate/get=pivnet-product/passed value: [upload-and-stage-ert]
4
0.129032
0
4
b402e6f838a4dea1b37ca0947fd6564eb3bb5270
provisioning/roles/app_server/tasks/main.yml
provisioning/roles/app_server/tasks/main.yml
--- - apt: name={{ item }} with_items: - build-essential - php5-curl - php5-mysql - python-mysqldb # Required for mysql ansible modules - { include: install_dependencies.yml, sudo: no } - mysql_db: name={{ yourls_db_name }} - mysql_user: name={{ yourls_db_user }} password={{ yourls_db_pass }} priv={{ yourls_db_name }}.*:ALL - template: src=etc/nginx/sites-available/{{ item }}.j2 dest=/etc/nginx/sites-available/{{ item }} with_items: domains - file: src=/etc/nginx/sites-available/{{ item }} dest=/etc/nginx/sites-enabled/{{ item }} state=link with_items: domains notify: reload nginx
--- - apt: name={{ item }} with_items: - build-essential - php5-curl - php5-mysql - python-mysqldb # Required for mysql ansible modules - { include: install_dependencies.yml, sudo: no } - cron: name='Update API data' special_time=hourly job='cd {{ project_dir }}/api && grunt ay2014to2015sem1 rsync' user={{ user }} - mysql_db: name={{ yourls_db_name }} - mysql_user: name={{ yourls_db_user }} password={{ yourls_db_pass }} priv={{ yourls_db_name }}.*:ALL - template: src=etc/nginx/sites-available/{{ item }}.j2 dest=/etc/nginx/sites-available/{{ item }} with_items: domains - file: src=/etc/nginx/sites-available/{{ item }} dest=/etc/nginx/sites-enabled/{{ item }} state=link with_items: domains notify: reload nginx
Add cron task to update API data
Add cron task to update API data
YAML
mit
chunqi/nusmods,nathanajah/nusmods,zhouyichen/nusmods,Yunheng/nusmods,mauris/nusmods,mauris/nusmods,nathanajah/nusmods,Yunheng/nusmods,zhouyichen/nusmods,chunqi/nusmods,chunqi/nusmods,Yunheng/nusmods,nathanajah/nusmods,nusmodifications/nusmods,chunqi/nusmods,nathanajah/nusmods,zhouyichen/nusmods,zhouyichen/nusmods,mauris/nusmods,nusmodifications/nusmods,nusmodifications/nusmods,nusmodifications/nusmods,mauris/nusmods,Yunheng/nusmods,Yunheng/nusmods
yaml
## Code Before: --- - apt: name={{ item }} with_items: - build-essential - php5-curl - php5-mysql - python-mysqldb # Required for mysql ansible modules - { include: install_dependencies.yml, sudo: no } - mysql_db: name={{ yourls_db_name }} - mysql_user: name={{ yourls_db_user }} password={{ yourls_db_pass }} priv={{ yourls_db_name }}.*:ALL - template: src=etc/nginx/sites-available/{{ item }}.j2 dest=/etc/nginx/sites-available/{{ item }} with_items: domains - file: src=/etc/nginx/sites-available/{{ item }} dest=/etc/nginx/sites-enabled/{{ item }} state=link with_items: domains notify: reload nginx ## Instruction: Add cron task to update API data ## Code After: --- - apt: name={{ item }} with_items: - build-essential - php5-curl - php5-mysql - python-mysqldb # Required for mysql ansible modules - { include: install_dependencies.yml, sudo: no } - cron: name='Update API data' special_time=hourly job='cd {{ project_dir }}/api && grunt ay2014to2015sem1 rsync' user={{ user }} - mysql_db: name={{ yourls_db_name }} - mysql_user: name={{ yourls_db_user }} password={{ yourls_db_pass }} priv={{ yourls_db_name }}.*:ALL - template: src=etc/nginx/sites-available/{{ item }}.j2 dest=/etc/nginx/sites-available/{{ item }} with_items: domains - file: src=/etc/nginx/sites-available/{{ item }} dest=/etc/nginx/sites-enabled/{{ item }} state=link with_items: domains notify: reload nginx
--- - apt: name={{ item }} with_items: - build-essential - php5-curl - php5-mysql - python-mysqldb # Required for mysql ansible modules - { include: install_dependencies.yml, sudo: no } + - cron: name='Update API data' special_time=hourly job='cd {{ project_dir }}/api && grunt ay2014to2015sem1 rsync' user={{ user }} - mysql_db: name={{ yourls_db_name }} - mysql_user: name={{ yourls_db_user }} password={{ yourls_db_pass }} priv={{ yourls_db_name }}.*:ALL - template: src=etc/nginx/sites-available/{{ item }}.j2 dest=/etc/nginx/sites-available/{{ item }} with_items: domains - file: src=/etc/nginx/sites-available/{{ item }} dest=/etc/nginx/sites-enabled/{{ item }} state=link with_items: domains notify: reload nginx
1
0.043478
1
0
2c41bfe7da9644b3a76adc5d2f1744107a3c40f4
core/git_mixins/rewrite.py
core/git_mixins/rewrite.py
from types import SimpleNamespace class ChangeTemplate(SimpleNamespace): # orig_hash do_commit = True msg = None datetime = None author = None class RewriteMixin(): ChangeTemplate = ChangeTemplate def rewrite_active_branch(self, base_commit, commit_chain): branch_name = self.get_current_branch_name() # Detach HEAD to base commit. self.checkout_ref(base_commit) # Apply each commit to HEAD in order. try: for commit in commit_chain: self.git( "cherry-pick", "--allow-empty", "--no-commit", commit.orig_hash ) # If squashing one commit into the next, do_commit should be # False so that it's changes are included in the next commit. if commit.do_commit: self.git( "commit", "--author", commit.author, "--date", commit.datetime, "-F", "-", stdin=commit.msg ) self.git("branch", "-f", branch_name, "HEAD") except Exception as e: raise e finally: # Whether on success or failure, always re-checkout the branch. On success, # this will be the re-written branch. On failure, this will be the original # branch (since re-defining the branch ref is the last step). self.git("checkout", branch_name)
from types import SimpleNamespace class ChangeTemplate(SimpleNamespace): # orig_hash do_commit = True msg = None datetime = None author = None class RewriteMixin(): ChangeTemplate = ChangeTemplate def rewrite_active_branch(self, base_commit, commit_chain): branch_name = self.get_current_branch_name() # Detach HEAD to base commit. self.checkout_ref(base_commit) # Apply each commit to HEAD in order. try: for commit in commit_chain: self.git( "cherry-pick", "--allow-empty", "--allow-empty-message", "--no-commit", commit.orig_hash ) # If squashing one commit into the next, do_commit should be # False so that it's changes are included in the next commit. if commit.do_commit: self.git( "commit", "--author", commit.author, "--date", commit.datetime, "-F", "-", stdin=commit.msg ) self.git("branch", "-f", branch_name, "HEAD") except Exception as e: raise e finally: # Whether on success or failure, always re-checkout the branch. On success, # this will be the re-written branch. On failure, this will be the original # branch (since re-defining the branch ref is the last step). self.git("checkout", branch_name)
Allow empty commit messages if explictly specified.
Allow empty commit messages if explictly specified.
Python
mit
theiviaxx/GitSavvy,jmanuel1/GitSavvy,dreki/GitSavvy,dvcrn/GitSavvy,dvcrn/GitSavvy,asfaltboy/GitSavvy,jmanuel1/GitSavvy,ddevlin/GitSavvy,ddevlin/GitSavvy,divmain/GitSavvy,stoivo/GitSavvy,stoivo/GitSavvy,divmain/GitSavvy,dreki/GitSavvy,ddevlin/GitSavvy,theiviaxx/GitSavvy,stoivo/GitSavvy,asfaltboy/GitSavvy,ralic/GitSavvy,divmain/GitSavvy,ralic/GitSavvy,asfaltboy/GitSavvy
python
## Code Before: from types import SimpleNamespace class ChangeTemplate(SimpleNamespace): # orig_hash do_commit = True msg = None datetime = None author = None class RewriteMixin(): ChangeTemplate = ChangeTemplate def rewrite_active_branch(self, base_commit, commit_chain): branch_name = self.get_current_branch_name() # Detach HEAD to base commit. self.checkout_ref(base_commit) # Apply each commit to HEAD in order. try: for commit in commit_chain: self.git( "cherry-pick", "--allow-empty", "--no-commit", commit.orig_hash ) # If squashing one commit into the next, do_commit should be # False so that it's changes are included in the next commit. if commit.do_commit: self.git( "commit", "--author", commit.author, "--date", commit.datetime, "-F", "-", stdin=commit.msg ) self.git("branch", "-f", branch_name, "HEAD") except Exception as e: raise e finally: # Whether on success or failure, always re-checkout the branch. On success, # this will be the re-written branch. On failure, this will be the original # branch (since re-defining the branch ref is the last step). self.git("checkout", branch_name) ## Instruction: Allow empty commit messages if explictly specified. ## Code After: from types import SimpleNamespace class ChangeTemplate(SimpleNamespace): # orig_hash do_commit = True msg = None datetime = None author = None class RewriteMixin(): ChangeTemplate = ChangeTemplate def rewrite_active_branch(self, base_commit, commit_chain): branch_name = self.get_current_branch_name() # Detach HEAD to base commit. self.checkout_ref(base_commit) # Apply each commit to HEAD in order. try: for commit in commit_chain: self.git( "cherry-pick", "--allow-empty", "--allow-empty-message", "--no-commit", commit.orig_hash ) # If squashing one commit into the next, do_commit should be # False so that it's changes are included in the next commit. if commit.do_commit: self.git( "commit", "--author", commit.author, "--date", commit.datetime, "-F", "-", stdin=commit.msg ) self.git("branch", "-f", branch_name, "HEAD") except Exception as e: raise e finally: # Whether on success or failure, always re-checkout the branch. On success, # this will be the re-written branch. On failure, this will be the original # branch (since re-defining the branch ref is the last step). self.git("checkout", branch_name)
from types import SimpleNamespace class ChangeTemplate(SimpleNamespace): # orig_hash do_commit = True msg = None datetime = None author = None class RewriteMixin(): ChangeTemplate = ChangeTemplate def rewrite_active_branch(self, base_commit, commit_chain): branch_name = self.get_current_branch_name() # Detach HEAD to base commit. self.checkout_ref(base_commit) # Apply each commit to HEAD in order. try: for commit in commit_chain: self.git( "cherry-pick", "--allow-empty", + "--allow-empty-message", "--no-commit", commit.orig_hash ) # If squashing one commit into the next, do_commit should be # False so that it's changes are included in the next commit. if commit.do_commit: self.git( "commit", "--author", commit.author, "--date", commit.datetime, "-F", "-", stdin=commit.msg ) self.git("branch", "-f", branch_name, "HEAD") except Exception as e: raise e finally: # Whether on success or failure, always re-checkout the branch. On success, # this will be the re-written branch. On failure, this will be the original # branch (since re-defining the branch ref is the last step). self.git("checkout", branch_name)
1
0.017857
1
0
8bf5216591678b92de576042360f903c10da2777
make-package.sh
make-package.sh
mkdir -p dist cd extension rm ../dist/extension.zip zip -r ../dist/extension.zip *
mkdir -p dist cd extension if [ -f "../dist/extension.zip" ]; then rm ../dist/extension.zip fi zip -r ../dist/extension.zip *
Check existence extension.zip before remove
Check existence extension.zip before remove
Shell
apache-2.0
chimerast/niconico-speenya,chimerast/niconico-speenya,chimerast/niconico-speenya
shell
## Code Before: mkdir -p dist cd extension rm ../dist/extension.zip zip -r ../dist/extension.zip * ## Instruction: Check existence extension.zip before remove ## Code After: mkdir -p dist cd extension if [ -f "../dist/extension.zip" ]; then rm ../dist/extension.zip fi zip -r ../dist/extension.zip *
mkdir -p dist cd extension + if [ -f "../dist/extension.zip" ]; then - rm ../dist/extension.zip + rm ../dist/extension.zip ? ++ + fi zip -r ../dist/extension.zip *
4
0.5
3
1
1193e94c681f4894a1d209d9db39da72c77af2e9
config/initializers/load_model_enhancements.rb
config/initializers/load_model_enhancements.rb
Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| name = File.basename(path, ".rb") require "enhancements/#{name}" end
unless ( File.basename($0) == "rake" && ARGV.include?("db:migrate") ) Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| name = File.basename(path, ".rb") require "enhancements/#{name}" end end
Fix migrations failure for clean spinup
Fix migrations failure for clean spinup $ bundle exec rake db:create db:migrate … == SwapMagicEverythingPermissionsForRealOnes: migrating ====================== rake aborted! An error has occurred, all later migrations canceled: Mysql2::Error: Table 'signonotron2_development.supported_permissions' doesn't exist: SHOW FIELDS FROM `supported_permissions` 936046ec added an initializer which modifies the Doorkeeper::Application model. That class is also modified in the migration 20120626094255_swap_magic_everything_permissions_for_real_ones.rb, so we were seeing the above failure.
Ruby
mit
alphagov/signonotron2,alphagov/signonotron2,alphagov/signonotron2,alphagov/signonotron2
ruby
## Code Before: Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| name = File.basename(path, ".rb") require "enhancements/#{name}" end ## Instruction: Fix migrations failure for clean spinup $ bundle exec rake db:create db:migrate … == SwapMagicEverythingPermissionsForRealOnes: migrating ====================== rake aborted! An error has occurred, all later migrations canceled: Mysql2::Error: Table 'signonotron2_development.supported_permissions' doesn't exist: SHOW FIELDS FROM `supported_permissions` 936046ec added an initializer which modifies the Doorkeeper::Application model. That class is also modified in the migration 20120626094255_swap_magic_everything_permissions_for_real_ones.rb, so we were seeing the above failure. ## Code After: unless ( File.basename($0) == "rake" && ARGV.include?("db:migrate") ) Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| name = File.basename(path, ".rb") require "enhancements/#{name}" end end
+ unless ( File.basename($0) == "rake" && ARGV.include?("db:migrate") ) - Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| + Dir[Rails.root.join("app", "models", "enhancements", "*.rb")].each do |path| ? ++ - name = File.basename(path, ".rb") + name = File.basename(path, ".rb") ? ++ - require "enhancements/#{name}" + require "enhancements/#{name}" ? ++ + end end
8
2
5
3
a6850c52786726d872e95fb7a3b92ebe1592905f
.zuul.yaml
.zuul.yaml
- project: name: x/group-based-policy templates: - openstack-python-jobs - publish-to-pypi check: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-functional: nodeset: ubuntu-xenial voting: false - legacy-group-based-policy-dsvm-aim: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-nfp: nodeset: ubuntu-xenial voting: false gate: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial
- project: name: x/group-based-policy templates: - openstack-python-jobs - publish-to-pypi check: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-functional: nodeset: ubuntu-xenial voting: false - legacy-group-based-policy-dsvm-aim: nodeset: ubuntu-xenial voting: true - legacy-group-based-policy-dsvm-nfp: nodeset: ubuntu-xenial voting: false gate: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial
Make aim functional gate job voting
Make aim functional gate job voting Commit 1b996593ddef6bf9759aeb676e3bd6abf9d056f9 inadvertently removed the aim functional job from the voting gate jobs. This patch adds it back. Change-Id: I5c066a20ee507a62056569ddd1a0d21cae64262c
YAML
apache-2.0
noironetworks/group-based-policy,noironetworks/group-based-policy
yaml
## Code Before: - project: name: x/group-based-policy templates: - openstack-python-jobs - publish-to-pypi check: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-functional: nodeset: ubuntu-xenial voting: false - legacy-group-based-policy-dsvm-aim: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-nfp: nodeset: ubuntu-xenial voting: false gate: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial ## Instruction: Make aim functional gate job voting Commit 1b996593ddef6bf9759aeb676e3bd6abf9d056f9 inadvertently removed the aim functional job from the voting gate jobs. This patch adds it back. Change-Id: I5c066a20ee507a62056569ddd1a0d21cae64262c ## Code After: - project: name: x/group-based-policy templates: - openstack-python-jobs - publish-to-pypi check: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-functional: nodeset: ubuntu-xenial voting: false - legacy-group-based-policy-dsvm-aim: nodeset: ubuntu-xenial voting: true - legacy-group-based-policy-dsvm-nfp: nodeset: ubuntu-xenial voting: false gate: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial
- project: name: x/group-based-policy templates: - openstack-python-jobs - publish-to-pypi check: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial - legacy-group-based-policy-dsvm-functional: nodeset: ubuntu-xenial voting: false - legacy-group-based-policy-dsvm-aim: nodeset: ubuntu-xenial + voting: true - legacy-group-based-policy-dsvm-nfp: nodeset: ubuntu-xenial voting: false gate: jobs: - openstack-tox-pep8: nodeset: ubuntu-xenial - openstack-tox-py27: nodeset: ubuntu-xenial - openstack-tox-py35: nodeset: ubuntu-xenial
1
0.034483
1
0
7a93c81930d53cad2a9b5251ceebf9fe17a38735
mapdata.php
mapdata.php
<?php require("./creds.php"); // Connect to Database mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); // Get Latitude/Longitude data from MySQL $geoqry = mysql_query("SELECT kff1006, kff1005 FROM $db_table ORDER BY time DESC LIMIT 5000") or die(mysql_error()); $latlong = array(); while($geo = mysql_fetch_array($geoqry)) { if (($geo["0"] != 0) && ($geo["1"] != 0)) { $latlong[] = array("latitude" => $geo["0"], "longitude" => $geo["1"]); } } // Create array of Latitude/Longitude strings in Google Maps JavaScript format $mapdata = array(); foreach($latlong as $d) { $mapdata[] = "new google.maps.LatLng(" . $d['latitude'] . ", " . $d['longitude'] . ")"; } $imapdata = implode(",\n ", $mapdata); // Centering location for the map is the most recent location $centerlat = $latlong[0]["latitude"]; $centerlong = $latlong[0]["longitude"]; ?>
<?php require("./creds.php"); // Connect to Database mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); // Get Latitude/Longitude data from MySQL $geoqry = mysql_query("SELECT kff1006, kff1005 FROM $db_table ORDER BY time DESC LIMIT 5000") or die(mysql_error()); $latlong = array(); while($geo = mysql_fetch_array($geoqry)) { if (($geo["0"] != 0) && ($geo["1"] != 0)) { $latlong[] = array("latitude" => $geo["0"], "longitude" => $geo["1"]); } } // Create array of Latitude/Longitude strings in Google Maps JavaScript format $mapdata = array(); foreach($latlong as $d) { $mapdata[] = "new google.maps.LatLng(" . $d['latitude'] . ", " . $d['longitude'] . ")"; } $imapdata = implode(",\n ", $mapdata); // Centering location for the map is the most recent location if (isset($latlong[0])) { $centerlat = $latlong[0]["latitude"]; $centerlong = $latlong[0]["longitude"]; } else { $centerlat = 38.5; $centerlong = -98; } ?>
Set default location when no GPS data exists.
Set default location when no GPS data exists.
PHP
mit
mehulsbhatt/torque,jernejovc/torque,rahulanandtalk/torque,econpy/torque,namgk/torque,aegixx/torque,jernejovc/torque,aegixx/torque,jeann2013/torque,17100194/torque,jeann2013/torque,pbuckley4192/torque,thinmy/torque,econpy/torque,mehulsbhatt/torque,thinmy/torque,aegixx/torque,17100194/torque,namgk/torque,namgk/torque,CulturalObservatory/torquest,pbuckley4192/torque,econpy/torque,CulturalObservatory/torquest,rahulanandtalk/torque,pbuckley4192/torque,rahulanandtalk/torque,mehulsbhatt/torque,jernejovc/torque,jeann2013/torque,CulturalObservatory/torquest,17100194/torque,thinmy/torque
php
## Code Before: <?php require("./creds.php"); // Connect to Database mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); // Get Latitude/Longitude data from MySQL $geoqry = mysql_query("SELECT kff1006, kff1005 FROM $db_table ORDER BY time DESC LIMIT 5000") or die(mysql_error()); $latlong = array(); while($geo = mysql_fetch_array($geoqry)) { if (($geo["0"] != 0) && ($geo["1"] != 0)) { $latlong[] = array("latitude" => $geo["0"], "longitude" => $geo["1"]); } } // Create array of Latitude/Longitude strings in Google Maps JavaScript format $mapdata = array(); foreach($latlong as $d) { $mapdata[] = "new google.maps.LatLng(" . $d['latitude'] . ", " . $d['longitude'] . ")"; } $imapdata = implode(",\n ", $mapdata); // Centering location for the map is the most recent location $centerlat = $latlong[0]["latitude"]; $centerlong = $latlong[0]["longitude"]; ?> ## Instruction: Set default location when no GPS data exists. ## Code After: <?php require("./creds.php"); // Connect to Database mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); // Get Latitude/Longitude data from MySQL $geoqry = mysql_query("SELECT kff1006, kff1005 FROM $db_table ORDER BY time DESC LIMIT 5000") or die(mysql_error()); $latlong = array(); while($geo = mysql_fetch_array($geoqry)) { if (($geo["0"] != 0) && ($geo["1"] != 0)) { $latlong[] = array("latitude" => $geo["0"], "longitude" => $geo["1"]); } } // Create array of Latitude/Longitude strings in Google Maps JavaScript format $mapdata = array(); foreach($latlong as $d) { $mapdata[] = "new google.maps.LatLng(" . $d['latitude'] . ", " . $d['longitude'] . ")"; } $imapdata = implode(",\n ", $mapdata); // Centering location for the map is the most recent location if (isset($latlong[0])) { $centerlat = $latlong[0]["latitude"]; $centerlong = $latlong[0]["longitude"]; } else { $centerlat = 38.5; $centerlong = -98; } ?>
<?php require("./creds.php"); // Connect to Database mysql_connect($db_host, $db_user, $db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); // Get Latitude/Longitude data from MySQL $geoqry = mysql_query("SELECT kff1006, kff1005 FROM $db_table ORDER BY time DESC LIMIT 5000") or die(mysql_error()); $latlong = array(); while($geo = mysql_fetch_array($geoqry)) { if (($geo["0"] != 0) && ($geo["1"] != 0)) { $latlong[] = array("latitude" => $geo["0"], "longitude" => $geo["1"]); } } // Create array of Latitude/Longitude strings in Google Maps JavaScript format $mapdata = array(); foreach($latlong as $d) { $mapdata[] = "new google.maps.LatLng(" . $d['latitude'] . ", " . $d['longitude'] . ")"; } $imapdata = implode(",\n ", $mapdata); // Centering location for the map is the most recent location + if (isset($latlong[0])) { - $centerlat = $latlong[0]["latitude"]; + $centerlat = $latlong[0]["latitude"]; ? ++++ - $centerlong = $latlong[0]["longitude"]; + $centerlong = $latlong[0]["longitude"]; ? ++++ + } + else { + $centerlat = 38.5; + $centerlong = -98; + } ?>
10
0.333333
8
2
1396f978e32d666e75578ca755e73d3a3abbdd32
liquibase-core/src/main/java/liquibase/integration/ant/AntResourceAccessor.java
liquibase-core/src/main/java/liquibase/integration/ant/AntResourceAccessor.java
package liquibase.integration.ant; import liquibase.resource.FileSystemResourceAccessor; import liquibase.util.StringUtil; import org.apache.tools.ant.AntClassLoader; import java.io.File; public class AntResourceAccessor extends FileSystemResourceAccessor { public AntResourceAccessor(AntClassLoader classLoader, String changeLogDirectory) { if (changeLogDirectory == null) { this.addRootPath(new File(".").getAbsoluteFile().toPath()); } else { this.addRootPath(new File(changeLogDirectory).getAbsoluteFile().toPath()); } final String classpath = StringUtil.trimToNull(classLoader.getClasspath()); if (classpath != null) { for (String path : classpath.split(System.getProperty("path.separator"))) { this.addRootPath(new File(path).toPath()); } } } }
package liquibase.integration.ant; import liquibase.resource.FileSystemResourceAccessor; import liquibase.util.StringUtil; import org.apache.tools.ant.AntClassLoader; import java.io.File; public class AntResourceAccessor extends FileSystemResourceAccessor { public AntResourceAccessor(AntClassLoader classLoader, String changeLogDirectory) { if (changeLogDirectory != null) { changeLogDirectory = changeLogDirectory.replace("\\", "/"); } if (changeLogDirectory == null) { this.addRootPath(new File("").getAbsoluteFile().toPath()); this.addRootPath(new File("/").getAbsoluteFile().toPath()); } else { this.addRootPath(new File(changeLogDirectory).getAbsoluteFile().toPath()); } final String classpath = StringUtil.trimToNull(classLoader.getClasspath()); if (classpath != null) { for (String path : classpath.split(System.getProperty("path.separator"))) { this.addRootPath(new File(path).toPath()); } } } }
Handle path separator differences in AntLoader DAT-4036
Handle path separator differences in AntLoader DAT-4036
Java
apache-2.0
fossamagna/liquibase,liquibase/liquibase,jimmycd/liquibase,mattbertolini/liquibase,jimmycd/liquibase,liquibase/liquibase,mattbertolini/liquibase,jimmycd/liquibase,fossamagna/liquibase,mattbertolini/liquibase,liquibase/liquibase,jimmycd/liquibase,mattbertolini/liquibase,fossamagna/liquibase
java
## Code Before: package liquibase.integration.ant; import liquibase.resource.FileSystemResourceAccessor; import liquibase.util.StringUtil; import org.apache.tools.ant.AntClassLoader; import java.io.File; public class AntResourceAccessor extends FileSystemResourceAccessor { public AntResourceAccessor(AntClassLoader classLoader, String changeLogDirectory) { if (changeLogDirectory == null) { this.addRootPath(new File(".").getAbsoluteFile().toPath()); } else { this.addRootPath(new File(changeLogDirectory).getAbsoluteFile().toPath()); } final String classpath = StringUtil.trimToNull(classLoader.getClasspath()); if (classpath != null) { for (String path : classpath.split(System.getProperty("path.separator"))) { this.addRootPath(new File(path).toPath()); } } } } ## Instruction: Handle path separator differences in AntLoader DAT-4036 ## Code After: package liquibase.integration.ant; import liquibase.resource.FileSystemResourceAccessor; import liquibase.util.StringUtil; import org.apache.tools.ant.AntClassLoader; import java.io.File; public class AntResourceAccessor extends FileSystemResourceAccessor { public AntResourceAccessor(AntClassLoader classLoader, String changeLogDirectory) { if (changeLogDirectory != null) { changeLogDirectory = changeLogDirectory.replace("\\", "/"); } if (changeLogDirectory == null) { this.addRootPath(new File("").getAbsoluteFile().toPath()); this.addRootPath(new File("/").getAbsoluteFile().toPath()); } else { this.addRootPath(new File(changeLogDirectory).getAbsoluteFile().toPath()); } final String classpath = StringUtil.trimToNull(classLoader.getClasspath()); if (classpath != null) { for (String path : classpath.split(System.getProperty("path.separator"))) { this.addRootPath(new File(path).toPath()); } } } }
package liquibase.integration.ant; import liquibase.resource.FileSystemResourceAccessor; import liquibase.util.StringUtil; import org.apache.tools.ant.AntClassLoader; import java.io.File; public class AntResourceAccessor extends FileSystemResourceAccessor { public AntResourceAccessor(AntClassLoader classLoader, String changeLogDirectory) { + if (changeLogDirectory != null) { + changeLogDirectory = changeLogDirectory.replace("\\", "/"); + } + if (changeLogDirectory == null) { - this.addRootPath(new File(".").getAbsoluteFile().toPath()); ? - + this.addRootPath(new File("").getAbsoluteFile().toPath()); + this.addRootPath(new File("/").getAbsoluteFile().toPath()); } else { this.addRootPath(new File(changeLogDirectory).getAbsoluteFile().toPath()); } final String classpath = StringUtil.trimToNull(classLoader.getClasspath()); if (classpath != null) { for (String path : classpath.split(System.getProperty("path.separator"))) { this.addRootPath(new File(path).toPath()); } } } }
7
0.259259
6
1
1e8c4e9edfd74dc292d1cf1e58b0f22fd6a10a73
common/lib/xmodule/xmodule/templates/videoalpha/default.yaml
common/lib/xmodule/xmodule/templates/videoalpha/default.yaml
--- metadata: display_name: Video Alpha 1 data_dir: a_made_up_name is_graded: False version: 1 data: | <videoalpha show_captions="true" sub="name_of_file" youtube="0.75:JMD_ifUUfsU,1.0:OEoXaMPEzfM,1.25:AKqURZnYqpk,1.50:DYpADpL7jAY" > <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.mp4"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.webm"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.ogv"/> </videoalpha> children: []
--- metadata: display_name: Video Alpha 1 is_graded: False version: 1 data: | <videoalpha show_captions="true" sub="name_of_file" youtube="0.75:JMD_ifUUfsU,1.0:OEoXaMPEzfM,1.25:AKqURZnYqpk,1.50:DYpADpL7jAY" > <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.mp4"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.webm"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.ogv"/> </videoalpha> children: []
Rebase + updated videoalpha template. Now no data_dir attribute and is_graded set to false.
Rebase + updated videoalpha template. Now no data_dir attribute and is_graded set to false.
YAML
agpl-3.0
CourseTalk/edx-platform,chand3040/cloud_that,naresh21/synergetics-edx-platform,sudheerchintala/LearnEraPlatForm,jamiefolsom/edx-platform,raccoongang/edx-platform,pomegranited/edx-platform,ampax/edx-platform-backup,cecep-edu/edx-platform,miptliot/edx-platform,carsongee/edx-platform,unicri/edx-platform,cecep-edu/edx-platform,Edraak/edx-platform,arifsetiawan/edx-platform,ahmadio/edx-platform,wwj718/ANALYSE,halvertoluke/edx-platform,zerobatu/edx-platform,msegado/edx-platform,IndonesiaX/edx-platform,beacloudgenius/edx-platform,EduPepperPDTesting/pepper2013-testing,ubc/edx-platform,UOMx/edx-platform,edx/edx-platform,andyzsf/edx,zofuthan/edx-platform,IONISx/edx-platform,mcgachey/edx-platform,DNFcode/edx-platform,nikolas/edx-platform,kamalx/edx-platform,yokose-ks/edx-platform,doismellburning/edx-platform,syjeon/new_edx,caesar2164/edx-platform,EduPepperPDTesting/pepper2013-testing,chrisndodge/edx-platform,bdero/edx-platform,angelapper/edx-platform,miptliot/edx-platform,ampax/edx-platform-backup,franosincic/edx-platform,shubhdev/edxOnBaadal,JioEducation/edx-platform,ubc/edx-platform,J861449197/edx-platform,jjmiranda/edx-platform,wwj718/ANALYSE,doganov/edx-platform,Unow/edx-platform,don-github/edx-platform,unicri/edx-platform,rhndg/openedx,shubhdev/edx-platform,pelikanchik/edx-platform,jamiefolsom/edx-platform,knehez/edx-platform,utecuy/edx-platform,openfun/edx-platform,tiagochiavericosta/edx-platform,tiagochiavericosta/edx-platform,devs1991/test_edx_docmode,shurihell/testasia,chauhanhardik/populo,rismalrv/edx-platform,TsinghuaX/edx-platform,hkawasaki/kawasaki-aio8-2,prarthitm/edxplatform,JCBarahona/edX,Lektorium-LLC/edx-platform,shurihell/testasia,jbzdak/edx-platform,analyseuc3m/ANALYSE-v1,cselis86/edx-platform,dsajkl/123,ZLLab-Mooc/edx-platform,abdoosh00/edraak,philanthropy-u/edx-platform,beni55/edx-platform,mahendra-r/edx-platform,synergeticsedx/deployment-wipro,procangroup/edx-platform,a-parhom/edx-platform,beacloudgenius/edx-platform,hmcmooc/muddx-platform,rue89-tech/edx-platform,fintech-circle/edx-platform,inares/edx-platform,antonve/s4-project-mooc,appliedx/edx-platform,EDUlib/edx-platform,mahendra-r/edx-platform,chauhanhardik/populo_2,IONISx/edx-platform,Shrhawk/edx-platform,abdoosh00/edx-rtl-final,MakeHer/edx-platform,playm2mboy/edx-platform,morenopc/edx-platform,EduPepperPDTesting/pepper2013-testing,J861449197/edx-platform,jbzdak/edx-platform,jjmiranda/edx-platform,jolyonb/edx-platform,jamiefolsom/edx-platform,romain-li/edx-platform,defance/edx-platform,wwj718/edx-platform,LearnEra/LearnEraPlaftform,zadgroup/edx-platform,nanolearning/edx-platform,edx-solutions/edx-platform,IONISx/edx-platform,a-parhom/edx-platform,pelikanchik/edx-platform,CredoReference/edx-platform,ubc/edx-platform,arbrandes/edx-platform,ESOedX/edx-platform,eduNEXT/edx-platform,xinjiguaike/edx-platform,kmoocdev/edx-platform,jonathan-beard/edx-platform,bdero/edx-platform,mushtaqak/edx-platform,gymnasium/edx-platform,RPI-OPENEDX/edx-platform,kmoocdev2/edx-platform,mitocw/edx-platform,SravanthiSinha/edx-platform,arbrandes/edx-platform,shubhdev/edxOnBaadal,procangroup/edx-platform,rue89-tech/edx-platform,10clouds/edx-platform,analyseuc3m/ANALYSE-v1,simbs/edx-platform,kmoocdev/edx-platform,proversity-org/edx-platform,ak2703/edx-platform,solashirai/edx-platform,dkarakats/edx-platform,nttks/edx-platform,nikolas/edx-platform,eestay/edx-platform,nanolearningllc/edx-platform-cypress,LearnEra/LearnEraPlaftform,yokose-ks/edx-platform,nttks/edx-platform,MakeHer/edx-platform,cognitiveclass/edx-platform,eemirtekin/edx-platform,ampax/edx-platform,Unow/edx-platform,kmoocdev2/edx-platform,hamzehd/edx-platform,alexthered/kienhoc-platform,shurihell/testasia,pomegranited/edx-platform,cpennington/edx-platform,shubhdev/edx-platform,zubair-arbi/edx-platform,hkawasaki/kawasaki-aio8-1,edx-solutions/edx-platform,marcore/edx-platform,jelugbo/tundex,solashirai/edx-platform,vismartltd/edx-platform,stvstnfrd/edx-platform,gsehub/edx-platform,mtlchun/edx,leansoft/edx-platform,y12uc231/edx-platform,Shrhawk/edx-platform,hkawasaki/kawasaki-aio8-1,sameetb-cuelogic/edx-platform-test,hkawasaki/kawasaki-aio8-0,mjirayu/sit_academy,benpatterson/edx-platform,alexthered/kienhoc-platform,deepsrijit1105/edx-platform,simbs/edx-platform,Kalyzee/edx-platform,inares/edx-platform,zhenzhai/edx-platform,JioEducation/edx-platform,lduarte1991/edx-platform,hkawasaki/kawasaki-aio8-1,MSOpenTech/edx-platform,romain-li/edx-platform,morpheby/levelup-by,4eek/edx-platform,MSOpenTech/edx-platform,analyseuc3m/ANALYSE-v1,hmcmooc/muddx-platform,nanolearning/edx-platform,rationalAgent/edx-platform-custom,B-MOOC/edx-platform,beni55/edx-platform,mjirayu/sit_academy,teltek/edx-platform,fly19890211/edx-platform,valtech-mooc/edx-platform,BehavioralInsightsTeam/edx-platform,BehavioralInsightsTeam/edx-platform,morenopc/edx-platform,abdoosh00/edraak,carsongee/edx-platform,jazkarta/edx-platform,DNFcode/edx-platform,nagyistoce/edx-platform,WatanabeYasumasa/edx-platform,eduNEXT/edx-platform,beni55/edx-platform,JioEducation/edx-platform,MakeHer/edx-platform,atsolakid/edx-platform,MSOpenTech/edx-platform,hastexo/edx-platform,MakeHer/edx-platform,jswope00/GAI,ferabra/edx-platform,torchingloom/edx-platform,TsinghuaX/edx-platform,jruiperezv/ANALYSE,chand3040/cloud_that,nttks/jenkins-test,lduarte1991/edx-platform,unicri/edx-platform,kxliugang/edx-platform,vismartltd/edx-platform,LICEF/edx-platform,jazkarta/edx-platform-for-isc,IndonesiaX/edx-platform,gsehub/edx-platform,Semi-global/edx-platform,appliedx/edx-platform,ovnicraft/edx-platform,iivic/BoiseStateX,eemirtekin/edx-platform,auferack08/edx-platform,kxliugang/edx-platform,devs1991/test_edx_docmode,hamzehd/edx-platform,playm2mboy/edx-platform,halvertoluke/edx-platform,gsehub/edx-platform,raccoongang/edx-platform,itsjeyd/edx-platform,alexthered/kienhoc-platform,jruiperezv/ANALYSE,peterm-itr/edx-platform,nanolearningllc/edx-platform-cypress,zofuthan/edx-platform,hkawasaki/kawasaki-aio8-1,ampax/edx-platform,Softmotions/edx-platform,DefyVentures/edx-platform,mjg2203/edx-platform-seas,naresh21/synergetics-edx-platform,kursitet/edx-platform,naresh21/synergetics-edx-platform,Edraak/circleci-edx-platform,raccoongang/edx-platform,knehez/edx-platform,antonve/s4-project-mooc,waheedahmed/edx-platform,amir-qayyum-khan/edx-platform,shubhdev/openedx,kalebhartje/schoolboost,eestay/edx-platform,shabab12/edx-platform,Edraak/edraak-platform,wwj718/edx-platform,xingyepei/edx-platform,kxliugang/edx-platform,waheedahmed/edx-platform,jazkarta/edx-platform-for-isc,ZLLab-Mooc/edx-platform,zubair-arbi/edx-platform,carsongee/edx-platform,devs1991/test_edx_docmode,CourseTalk/edx-platform,naresh21/synergetics-edx-platform,antonve/s4-project-mooc,chauhanhardik/populo,devs1991/test_edx_docmode,arifsetiawan/edx-platform,shubhdev/edx-platform,defance/edx-platform,ahmadiga/min_edx,praveen-pal/edx-platform,angelapper/edx-platform,shashank971/edx-platform,edry/edx-platform,jamiefolsom/edx-platform,alu042/edx-platform,analyseuc3m/ANALYSE-v1,jazkarta/edx-platform,bitifirefly/edx-platform,Softmotions/edx-platform,jazztpt/edx-platform,martynovp/edx-platform,jelugbo/tundex,zerobatu/edx-platform,syjeon/new_edx,zhenzhai/edx-platform,solashirai/edx-platform,mtlchun/edx,proversity-org/edx-platform,hkawasaki/kawasaki-aio8-2,openfun/edx-platform,IITBinterns13/edx-platform-dev,doganov/edx-platform,syjeon/new_edx,hkawasaki/kawasaki-aio8-0,beni55/edx-platform,pabloborrego93/edx-platform,xuxiao19910803/edx-platform,openfun/edx-platform,ZLLab-Mooc/edx-platform,nanolearningllc/edx-platform-cypress,B-MOOC/edx-platform,xingyepei/edx-platform,cecep-edu/edx-platform,LearnEra/LearnEraPlaftform,sudheerchintala/LearnEraPlatForm,etzhou/edx-platform,stvstnfrd/edx-platform,msegado/edx-platform,chand3040/cloud_that,stvstnfrd/edx-platform,angelapper/edx-platform,abdoosh00/edraak,valtech-mooc/edx-platform,ESOedX/edx-platform,nttks/edx-platform,apigee/edx-platform,jamiefolsom/edx-platform,morpheby/levelup-by,Edraak/edraak-platform,WatanabeYasumasa/edx-platform,adoosii/edx-platform,rationalAgent/edx-platform-custom,ak2703/edx-platform,EduPepperPD/pepper2013,halvertoluke/edx-platform,AkA84/edx-platform,teltek/edx-platform,jbassen/edx-platform,EduPepperPD/pepper2013,ahmadio/edx-platform,eduNEXT/edx-platform,Ayub-Khan/edx-platform,knehez/edx-platform,Stanford-Online/edx-platform,iivic/BoiseStateX,eduNEXT/edunext-platform,deepsrijit1105/edx-platform,nanolearning/edx-platform,mushtaqak/edx-platform,nanolearningllc/edx-platform-cypress,jazztpt/edx-platform,edx-solutions/edx-platform,utecuy/edx-platform,simbs/edx-platform,Kalyzee/edx-platform,mcgachey/edx-platform,IONISx/edx-platform,praveen-pal/edx-platform,vikas1885/test1,ovnicraft/edx-platform,edry/edx-platform,Edraak/circleci-edx-platform,mjg2203/edx-platform-seas,pomegranited/edx-platform,IndonesiaX/edx-platform,xinjiguaike/edx-platform,JCBarahona/edX,mcgachey/edx-platform,kmoocdev2/edx-platform,msegado/edx-platform,don-github/edx-platform,yokose-ks/edx-platform,Ayub-Khan/edx-platform,nttks/jenkins-test,shubhdev/openedx,hmcmooc/muddx-platform,RPI-OPENEDX/edx-platform,alexthered/kienhoc-platform,jazkarta/edx-platform,dsajkl/reqiop,Ayub-Khan/edx-platform,RPI-OPENEDX/edx-platform,zofuthan/edx-platform,doismellburning/edx-platform,rismalrv/edx-platform,atsolakid/edx-platform,doismellburning/edx-platform,xinjiguaike/edx-platform,cecep-edu/edx-platform,AkA84/edx-platform,jzoldak/edx-platform,xingyepei/edx-platform,TeachAtTUM/edx-platform,jbassen/edx-platform,TsinghuaX/edx-platform,ubc/edx-platform,philanthropy-u/edx-platform,CourseTalk/edx-platform,philanthropy-u/edx-platform,Lektorium-LLC/edx-platform,Endika/edx-platform,pelikanchik/edx-platform,a-parhom/edx-platform,xinjiguaike/edx-platform,pepeportela/edx-platform,jazkarta/edx-platform-for-isc,jazkarta/edx-platform-for-isc,amir-qayyum-khan/edx-platform,antonve/s4-project-mooc,pepeportela/edx-platform,morenopc/edx-platform,zhenzhai/edx-platform,vikas1885/test1,arifsetiawan/edx-platform,martynovp/edx-platform,procangroup/edx-platform,jelugbo/tundex,RPI-OPENEDX/edx-platform,devs1991/test_edx_docmode,vismartltd/edx-platform,shubhdev/edxOnBaadal,jonathan-beard/edx-platform,motion2015/edx-platform,dkarakats/edx-platform,tanmaykm/edx-platform,eduNEXT/edunext-platform,longmen21/edx-platform,hastexo/edx-platform,olexiim/edx-platform,4eek/edx-platform,yokose-ks/edx-platform,fly19890211/edx-platform,mushtaqak/edx-platform,nttks/jenkins-test,kxliugang/edx-platform,Edraak/edraak-platform,y12uc231/edx-platform,lduarte1991/edx-platform,J861449197/edx-platform,alu042/edx-platform,kalebhartje/schoolboost,gymnasium/edx-platform,jelugbo/tundex,shubhdev/edx-platform,etzhou/edx-platform,SravanthiSinha/edx-platform,Stanford-Online/edx-platform,rationalAgent/edx-platform-custom,peterm-itr/edx-platform,shubhdev/edxOnBaadal,defance/edx-platform,motion2015/edx-platform,cognitiveclass/edx-platform,ahmedaljazzar/edx-platform,cognitiveclass/edx-platform,jruiperezv/ANALYSE,devs1991/test_edx_docmode,Kalyzee/edx-platform,dsajkl/123,motion2015/edx-platform,Livit/Livit.Learn.EdX,shabab12/edx-platform,procangroup/edx-platform,franosincic/edx-platform,zofuthan/edx-platform,SravanthiSinha/edx-platform,4eek/edx-platform,nikolas/edx-platform,gsehub/edx-platform,shubhdev/edxOnBaadal,morpheby/levelup-by,jazkarta/edx-platform,kursitet/edx-platform,Semi-global/edx-platform,rationalAgent/edx-platform-custom,ahmadio/edx-platform,pepeportela/edx-platform,mitocw/edx-platform,vikas1885/test1,dkarakats/edx-platform,bigdatauniversity/edx-platform,Shrhawk/edx-platform,simbs/edx-platform,antoviaque/edx-platform,yokose-ks/edx-platform,UXE/local-edx,kalebhartje/schoolboost,Edraak/edx-platform,etzhou/edx-platform,jolyonb/edx-platform,leansoft/edx-platform,nanolearningllc/edx-platform-cypress-2,hamzehd/edx-platform,benpatterson/edx-platform,IITBinterns13/edx-platform-dev,fly19890211/edx-platform,wwj718/ANALYSE,louyihua/edx-platform,B-MOOC/edx-platform,4eek/edx-platform,pdehaye/theming-edx-platform,morenopc/edx-platform,solashirai/edx-platform,prarthitm/edxplatform,beacloudgenius/edx-platform,rhndg/openedx,solashirai/edx-platform,EDUlib/edx-platform,motion2015/a3,vikas1885/test1,hastexo/edx-platform,dkarakats/edx-platform,mbareta/edx-platform-ft,jonathan-beard/edx-platform,cselis86/edx-platform,OmarIthawi/edx-platform,xuxiao19910803/edx,CredoReference/edx-platform,eemirtekin/edx-platform,prarthitm/edxplatform,rue89-tech/edx-platform,zadgroup/edx-platform,jamesblunt/edx-platform,chauhanhardik/populo,ahmedaljazzar/edx-platform,shubhdev/openedx,vismartltd/edx-platform,pabloborrego93/edx-platform,motion2015/a3,kursitet/edx-platform,ahmadiga/min_edx,doismellburning/edx-platform,caesar2164/edx-platform,tiagochiavericosta/edx-platform,appsembler/edx-platform,PepperPD/edx-pepper-platform,cyanna/edx-platform,mjirayu/sit_academy,Edraak/edx-platform,dsajkl/reqiop,ubc/edx-platform,edry/edx-platform,longmen21/edx-platform,cpennington/edx-platform,DefyVentures/edx-platform,abdoosh00/edraak,louyihua/edx-platform,simbs/edx-platform,olexiim/edx-platform,10clouds/edx-platform,pku9104038/edx-platform,praveen-pal/edx-platform,ahmadio/edx-platform,nanolearningllc/edx-platform-cypress-2,eemirtekin/edx-platform,ferabra/edx-platform,Semi-global/edx-platform,cyanna/edx-platform,Stanford-Online/edx-platform,motion2015/edx-platform,BehavioralInsightsTeam/edx-platform,jjmiranda/edx-platform,waheedahmed/edx-platform,deepsrijit1105/edx-platform,sudheerchintala/LearnEraPlatForm,eestay/edx-platform,SivilTaram/edx-platform,dsajkl/reqiop,mtlchun/edx,dsajkl/123,IndonesiaX/edx-platform,EduPepperPDTesting/pepper2013-testing,hamzehd/edx-platform,J861449197/edx-platform,valtech-mooc/edx-platform,Stanford-Online/edx-platform,AkA84/edx-platform,cselis86/edx-platform,fintech-circle/edx-platform,Unow/edx-platform,jzoldak/edx-platform,Softmotions/edx-platform,kmoocdev2/edx-platform,jzoldak/edx-platform,motion2015/a3,knehez/edx-platform,hastexo/edx-platform,proversity-org/edx-platform,vasyarv/edx-platform,jonathan-beard/edx-platform,Softmotions/edx-platform,y12uc231/edx-platform,jazkarta/edx-platform-for-isc,10clouds/edx-platform,PepperPD/edx-pepper-platform,pelikanchik/edx-platform,arifsetiawan/edx-platform,martynovp/edx-platform,chudaol/edx-platform,cecep-edu/edx-platform,LearnEra/LearnEraPlaftform,zadgroup/edx-platform,Lektorium-LLC/edx-platform,TeachAtTUM/edx-platform,syjeon/new_edx,dcosentino/edx-platform,tanmaykm/edx-platform,nanolearningllc/edx-platform-cypress,EduPepperPD/pepper2013,Semi-global/edx-platform,edx/edx-platform,rue89-tech/edx-platform,Livit/Livit.Learn.EdX,cselis86/edx-platform,kamalx/edx-platform,LICEF/edx-platform,xinjiguaike/edx-platform,dkarakats/edx-platform,playm2mboy/edx-platform,dcosentino/edx-platform,eduNEXT/edunext-platform,shubhdev/openedx,hkawasaki/kawasaki-aio8-2,hkawasaki/kawasaki-aio8-0,4eek/edx-platform,MakeHer/edx-platform,sameetb-cuelogic/edx-platform-test,bigdatauniversity/edx-platform,xingyepei/edx-platform,nttks/edx-platform,gymnasium/edx-platform,valtech-mooc/edx-platform,teltek/edx-platform,raccoongang/edx-platform,Livit/Livit.Learn.EdX,polimediaupv/edx-platform,vismartltd/edx-platform,apigee/edx-platform,chauhanhardik/populo,jswope00/griffinx,antoviaque/edx-platform,JioEducation/edx-platform,doismellburning/edx-platform,franosincic/edx-platform,DNFcode/edx-platform,pomegranited/edx-platform,vasyarv/edx-platform,benpatterson/edx-platform,torchingloom/edx-platform,inares/edx-platform,zerobatu/edx-platform,xuxiao19910803/edx-platform,torchingloom/edx-platform,don-github/edx-platform,chauhanhardik/populo_2,nikolas/edx-platform,bdero/edx-platform,Semi-global/edx-platform,Shrhawk/edx-platform,chauhanhardik/populo_2,morenopc/edx-platform,bitifirefly/edx-platform,xuxiao19910803/edx-platform,auferack08/edx-platform,leansoft/edx-platform,wwj718/edx-platform,don-github/edx-platform,UOMx/edx-platform,dsajkl/123,WatanabeYasumasa/edx-platform,appsembler/edx-platform,xuxiao19910803/edx,zadgroup/edx-platform,CredoReference/edx-platform,etzhou/edx-platform,EDUlib/edx-platform,a-parhom/edx-platform,shabab12/edx-platform,ovnicraft/edx-platform,ESOedX/edx-platform,ahmadio/edx-platform,edx-solutions/edx-platform,Unow/edx-platform,pomegranited/edx-platform,peterm-itr/edx-platform,mushtaqak/edx-platform,mbareta/edx-platform-ft,synergeticsedx/deployment-wipro,nagyistoce/edx-platform,UXE/local-edx,LICEF/edx-platform,atsolakid/edx-platform,adoosii/edx-platform,auferack08/edx-platform,EduPepperPDTesting/pepper2013-testing,beni55/edx-platform,pdehaye/theming-edx-platform,TeachAtTUM/edx-platform,zhenzhai/edx-platform,chrisndodge/edx-platform,dcosentino/edx-platform,IITBinterns13/edx-platform-dev,EduPepperPD/pepper2013,halvertoluke/edx-platform,xingyepei/edx-platform,jswope00/GAI,caesar2164/edx-platform,vasyarv/edx-platform,prarthitm/edxplatform,synergeticsedx/deployment-wipro,kamalx/edx-platform,DNFcode/edx-platform,chand3040/cloud_that,wwj718/edx-platform,mbareta/edx-platform-ft,beacloudgenius/edx-platform,mcgachey/edx-platform,chrisndodge/edx-platform,pabloborrego93/edx-platform,caesar2164/edx-platform,rismalrv/edx-platform,IndonesiaX/edx-platform,chudaol/edx-platform,bigdatauniversity/edx-platform,ahmadiga/min_edx,halvertoluke/edx-platform,abdoosh00/edx-rtl-final,leansoft/edx-platform,RPI-OPENEDX/edx-platform,nagyistoce/edx-platform,iivic/BoiseStateX,hamzehd/edx-platform,mitocw/edx-platform,olexiim/edx-platform,dsajkl/123,jswope00/griffinx,ahmadiga/min_edx,alu042/edx-platform,tanmaykm/edx-platform,adoosii/edx-platform,devs1991/test_edx_docmode,bitifirefly/edx-platform,apigee/edx-platform,ESOedX/edx-platform,synergeticsedx/deployment-wipro,pdehaye/theming-edx-platform,etzhou/edx-platform,unicri/edx-platform,torchingloom/edx-platform,edx/edx-platform,eemirtekin/edx-platform,morpheby/levelup-by,teltek/edx-platform,PepperPD/edx-pepper-platform,kxliugang/edx-platform,mitocw/edx-platform,xuxiao19910803/edx,martynovp/edx-platform,marcore/edx-platform,doganov/edx-platform,vasyarv/edx-platform,ak2703/edx-platform,motion2015/a3,eduNEXT/edx-platform,beacloudgenius/edx-platform,kmoocdev2/edx-platform,pku9104038/edx-platform,cyanna/edx-platform,B-MOOC/edx-platform,philanthropy-u/edx-platform,zerobatu/edx-platform,mcgachey/edx-platform,cselis86/edx-platform,wwj718/ANALYSE,jolyonb/edx-platform,jazztpt/edx-platform,rismalrv/edx-platform,franosincic/edx-platform,defance/edx-platform,xuxiao19910803/edx-platform,edx/edx-platform,kursitet/edx-platform,jazztpt/edx-platform,marcore/edx-platform,OmarIthawi/edx-platform,pabloborrego93/edx-platform,AkA84/edx-platform,10clouds/edx-platform,WatanabeYasumasa/edx-platform,atsolakid/edx-platform,appsembler/edx-platform,Lektorium-LLC/edx-platform,openfun/edx-platform,ZLLab-Mooc/edx-platform,openfun/edx-platform,OmarIthawi/edx-platform,jbzdak/edx-platform,jruiperezv/ANALYSE,wwj718/ANALYSE,SivilTaram/edx-platform,mbareta/edx-platform-ft,B-MOOC/edx-platform,benpatterson/edx-platform,nttks/edx-platform,romain-li/edx-platform,cyanna/edx-platform,stvstnfrd/edx-platform,jjmiranda/edx-platform,fly19890211/edx-platform,sudheerchintala/LearnEraPlatForm,SivilTaram/edx-platform,dcosentino/edx-platform,shurihell/testasia,mjg2203/edx-platform-seas,jswope00/griffinx,Edraak/edx-platform,miptliot/edx-platform,andyzsf/edx,y12uc231/edx-platform,mtlchun/edx,itsjeyd/edx-platform,Livit/Livit.Learn.EdX,Edraak/circleci-edx-platform,kmoocdev/edx-platform,bitifirefly/edx-platform,sameetb-cuelogic/edx-platform-test,jbassen/edx-platform,benpatterson/edx-platform,nikolas/edx-platform,DNFcode/edx-platform,appsembler/edx-platform,PepperPD/edx-pepper-platform,ferabra/edx-platform,alexthered/kienhoc-platform,jswope00/griffinx,waheedahmed/edx-platform,JCBarahona/edX,EduPepperPDTesting/pepper2013-testing,PepperPD/edx-pepper-platform,fly19890211/edx-platform,jbzdak/edx-platform,torchingloom/edx-platform,jamesblunt/edx-platform,peterm-itr/edx-platform,longmen21/edx-platform,mjirayu/sit_academy,andyzsf/edx,shubhdev/edx-platform,shashank971/edx-platform,kamalx/edx-platform,fintech-circle/edx-platform,utecuy/edx-platform,Kalyzee/edx-platform,ampax/edx-platform-backup,mjirayu/sit_academy,Edraak/circleci-edx-platform,jswope00/GAI,tanmaykm/edx-platform,pku9104038/edx-platform,chrisndodge/edx-platform,jbzdak/edx-platform,franosincic/edx-platform,cpennington/edx-platform,ferabra/edx-platform,playm2mboy/edx-platform,jbassen/edx-platform,arbrandes/edx-platform,jamesblunt/edx-platform,antoviaque/edx-platform,xuxiao19910803/edx-platform,EDUlib/edx-platform,bitifirefly/edx-platform,zubair-arbi/edx-platform,gymnasium/edx-platform,inares/edx-platform,amir-qayyum-khan/edx-platform,rhndg/openedx,romain-li/edx-platform,dcosentino/edx-platform,OmarIthawi/edx-platform,edry/edx-platform,SivilTaram/edx-platform,EduPepperPD/pepper2013,LICEF/edx-platform,mahendra-r/edx-platform,nanolearningllc/edx-platform-cypress-2,rationalAgent/edx-platform-custom,kursitet/edx-platform,JCBarahona/edX,carsongee/edx-platform,itsjeyd/edx-platform,chand3040/cloud_that,mtlchun/edx,ferabra/edx-platform,hmcmooc/muddx-platform,utecuy/edx-platform,mahendra-r/edx-platform,UXE/local-edx,zadgroup/edx-platform,UOMx/edx-platform,longmen21/edx-platform,motion2015/edx-platform,nttks/jenkins-test,ovnicraft/edx-platform,amir-qayyum-khan/edx-platform,motion2015/a3,IITBinterns13/edx-platform-dev,nanolearningllc/edx-platform-cypress-2,TeachAtTUM/edx-platform,jamesblunt/edx-platform,kalebhartje/schoolboost,Endika/edx-platform,mushtaqak/edx-platform,ahmedaljazzar/edx-platform,andyzsf/edx,Softmotions/edx-platform,ampax/edx-platform,ovnicraft/edx-platform,J861449197/edx-platform,tiagochiavericosta/edx-platform,ampax/edx-platform-backup,polimediaupv/edx-platform,deepsrijit1105/edx-platform,AkA84/edx-platform,msegado/edx-platform,itsjeyd/edx-platform,jbassen/edx-platform,MSOpenTech/edx-platform,kamalx/edx-platform,DefyVentures/edx-platform,BehavioralInsightsTeam/edx-platform,Edraak/edx-platform,SravanthiSinha/edx-platform,jelugbo/tundex,mjg2203/edx-platform-seas,proversity-org/edx-platform,eestay/edx-platform,abdoosh00/edx-rtl-final,bigdatauniversity/edx-platform,utecuy/edx-platform,jswope00/GAI,cognitiveclass/edx-platform,nagyistoce/edx-platform,devs1991/test_edx_docmode,nanolearning/edx-platform,Ayub-Khan/edx-platform,jazkarta/edx-platform,jswope00/griffinx,ak2703/edx-platform,rismalrv/edx-platform,Endika/edx-platform,appliedx/edx-platform,Edraak/circleci-edx-platform,angelapper/edx-platform,valtech-mooc/edx-platform,zofuthan/edx-platform,jazztpt/edx-platform,playm2mboy/edx-platform,auferack08/edx-platform,JCBarahona/edX,apigee/edx-platform,shabab12/edx-platform,cpennington/edx-platform,unicri/edx-platform,sameetb-cuelogic/edx-platform-test,leansoft/edx-platform,nttks/jenkins-test,cyanna/edx-platform,sameetb-cuelogic/edx-platform-test,ahmedaljazzar/edx-platform,UOMx/edx-platform,chudaol/edx-platform,nanolearningllc/edx-platform-cypress-2,msegado/edx-platform,pepeportela/edx-platform,Shrhawk/edx-platform,louyihua/edx-platform,don-github/edx-platform,ak2703/edx-platform,arbrandes/edx-platform,romain-li/edx-platform,zubair-arbi/edx-platform,appliedx/edx-platform,Ayub-Khan/edx-platform,vikas1885/test1,kmoocdev/edx-platform,chudaol/edx-platform,xuxiao19910803/edx,pku9104038/edx-platform,polimediaupv/edx-platform,olexiim/edx-platform,bdero/edx-platform,fintech-circle/edx-platform,iivic/BoiseStateX,zerobatu/edx-platform,praveen-pal/edx-platform,nagyistoce/edx-platform,adoosii/edx-platform,ZLLab-Mooc/edx-platform,polimediaupv/edx-platform,rhndg/openedx,shashank971/edx-platform,CourseTalk/edx-platform,UXE/local-edx,vasyarv/edx-platform,kmoocdev/edx-platform,cognitiveclass/edx-platform,shashank971/edx-platform,pdehaye/theming-edx-platform,ampax/edx-platform-backup,chudaol/edx-platform,chauhanhardik/populo,miptliot/edx-platform,mahendra-r/edx-platform,rhndg/openedx,tiagochiavericosta/edx-platform,eduNEXT/edunext-platform,hkawasaki/kawasaki-aio8-2,MSOpenTech/edx-platform,shashank971/edx-platform,rue89-tech/edx-platform,iivic/BoiseStateX,jonathan-beard/edx-platform,edry/edx-platform,SivilTaram/edx-platform,jzoldak/edx-platform,ahmadiga/min_edx,appliedx/edx-platform,polimediaupv/edx-platform,doganov/edx-platform,SravanthiSinha/edx-platform,ampax/edx-platform,chauhanhardik/populo_2,longmen21/edx-platform,arifsetiawan/edx-platform,jamesblunt/edx-platform,DefyVentures/edx-platform,Kalyzee/edx-platform,chauhanhardik/populo_2,CredoReference/edx-platform,doganov/edx-platform,TsinghuaX/edx-platform,atsolakid/edx-platform,marcore/edx-platform,martynovp/edx-platform,louyihua/edx-platform,bigdatauniversity/edx-platform,Edraak/edraak-platform,lduarte1991/edx-platform,waheedahmed/edx-platform,olexiim/edx-platform,adoosii/edx-platform,shurihell/testasia,inares/edx-platform,jolyonb/edx-platform,xuxiao19910803/edx,hkawasaki/kawasaki-aio8-0,Endika/edx-platform,IONISx/edx-platform,DefyVentures/edx-platform,knehez/edx-platform,antonve/s4-project-mooc,antoviaque/edx-platform,shubhdev/openedx,LICEF/edx-platform,zhenzhai/edx-platform,abdoosh00/edx-rtl-final,zubair-arbi/edx-platform,dsajkl/reqiop,eestay/edx-platform,y12uc231/edx-platform,nanolearning/edx-platform,wwj718/edx-platform,kalebhartje/schoolboost,alu042/edx-platform,jruiperezv/ANALYSE
yaml
## Code Before: --- metadata: display_name: Video Alpha 1 data_dir: a_made_up_name is_graded: False version: 1 data: | <videoalpha show_captions="true" sub="name_of_file" youtube="0.75:JMD_ifUUfsU,1.0:OEoXaMPEzfM,1.25:AKqURZnYqpk,1.50:DYpADpL7jAY" > <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.mp4"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.webm"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.ogv"/> </videoalpha> children: [] ## Instruction: Rebase + updated videoalpha template. Now no data_dir attribute and is_graded set to false. ## Code After: --- metadata: display_name: Video Alpha 1 is_graded: False version: 1 data: | <videoalpha show_captions="true" sub="name_of_file" youtube="0.75:JMD_ifUUfsU,1.0:OEoXaMPEzfM,1.25:AKqURZnYqpk,1.50:DYpADpL7jAY" > <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.mp4"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.webm"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.ogv"/> </videoalpha> children: []
--- metadata: display_name: Video Alpha 1 - data_dir: a_made_up_name is_graded: False version: 1 data: | <videoalpha show_captions="true" sub="name_of_file" youtube="0.75:JMD_ifUUfsU,1.0:OEoXaMPEzfM,1.25:AKqURZnYqpk,1.50:DYpADpL7jAY" > <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.mp4"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.webm"/> <source src="https://s3.amazonaws.com/edx-course-videos/edx-intro/edX-FA12-cware-1_100.ogv"/> </videoalpha> children: []
1
0.076923
0
1
9630f9b1653188a4173dc633fd55840ae918ca4e
src/Tomighty/Core/UI/TYAppUI.h
src/Tomighty/Core/UI/TYAppUI.h
// // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakState; - (void)switchToLongBreakState; - (void)updateRemainingTime:(int)remainingSeconds; - (void)updatePomodoroCount:(int)count; - (void)handlePrerencesChange:(NSString*)which; @end
// // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakState; - (void)switchToLongBreakState; - (void)updateRemainingTime:(int)remainingSeconds; - (void)updatePomodoroCount:(int)count; @end
Remove preference change handler declaration.
Remove preference change handler declaration.
C
apache-2.0
ccidral/tomighty-osx,tomighty/tomighty-osx,ccidral/tomighty-osx,tomighty/tomighty-osx,ccidral/tomighty-osx
c
## Code Before: // // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakState; - (void)switchToLongBreakState; - (void)updateRemainingTime:(int)remainingSeconds; - (void)updatePomodoroCount:(int)count; - (void)handlePrerencesChange:(NSString*)which; @end ## Instruction: Remove preference change handler declaration. ## Code After: // // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakState; - (void)switchToLongBreakState; - (void)updateRemainingTime:(int)remainingSeconds; - (void)updatePomodoroCount:(int)count; @end
// // Tomighty - http://www.tomighty.org // // This software is licensed under the Apache License Version 2.0: // http://www.apache.org/licenses/LICENSE-2.0.txt // #import <Foundation/Foundation.h> @protocol TYAppUI <NSObject> - (void)switchToIdleState; - (void)switchToPomodoroState; - (void)switchToShortBreakState; - (void)switchToLongBreakState; - (void)updateRemainingTime:(int)remainingSeconds; - (void)updatePomodoroCount:(int)count; - - (void)handlePrerencesChange:(NSString*)which; @end
1
0.05
0
1
e2665fe157b8407c2705fac61b4c92a8467a7a63
lib/components/DraftailEditor.scss
lib/components/DraftailEditor.scss
.#{$NS}Editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; &--hide-placeholder .public-DraftEditorPlaceholder-root { display: none; } &--readonly .DraftEditor-editorContainer { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; // Ligatures can make cursor behavior harder to understand. font-variant-ligatures: none; } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; }
.#{$NS}Editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; &--hide-placeholder .public-DraftEditorPlaceholder-root { display: none; } &--readonly .DraftEditor-editorContainer { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } // Fix editor scrolling in the wrong position when breaking a big block. // See https://github.com/facebook/draft-js/issues/304#issuecomment-327606596. .DraftEditor-root { overflow: auto; } .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; // Ligatures can make cursor behavior harder to understand. font-variant-ligatures: none; } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; }
Fix editor scrolling in the wrong position when breaking a big block
Fix editor scrolling in the wrong position when breaking a big block See https://github.com/facebook/draft-js/issues/304#issuecomment-327606596.
SCSS
mit
springload/draftail,springload/draftail,springload/draftail,springload/draftail
scss
## Code Before: .#{$NS}Editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; &--hide-placeholder .public-DraftEditorPlaceholder-root { display: none; } &--readonly .DraftEditor-editorContainer { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; // Ligatures can make cursor behavior harder to understand. font-variant-ligatures: none; } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; } ## Instruction: Fix editor scrolling in the wrong position when breaking a big block See https://github.com/facebook/draft-js/issues/304#issuecomment-327606596. ## Code After: .#{$NS}Editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; &--hide-placeholder .public-DraftEditorPlaceholder-root { display: none; } &--readonly .DraftEditor-editorContainer { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } // Fix editor scrolling in the wrong position when breaking a big block. // See https://github.com/facebook/draft-js/issues/304#issuecomment-327606596. .DraftEditor-root { overflow: auto; } .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; // Ligatures can make cursor behavior harder to understand. font-variant-ligatures: none; } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; }
.#{$NS}Editor { background-color: $color-white; border: 1px solid $color-editor-chrome; border-radius: $editor-border-radius; color: $color-grey; &--hide-placeholder .public-DraftEditorPlaceholder-root { display: none; } &--readonly .DraftEditor-editorContainer { &:before { content: ''; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: $overlay-z-index; background-color: rgba(255, 255, 255, 0.8); } } } + // Fix editor scrolling in the wrong position when breaking a big block. + // See https://github.com/facebook/draft-js/issues/304#issuecomment-327606596. + .DraftEditor-root { + overflow: auto; + } + .public-DraftEditor-content, .public-DraftEditorPlaceholder-root { padding: $editor-spacing; font-size: 1rem; line-height: 1.5; font-family: sans-serif; // Ligatures can make cursor behavior harder to understand. font-variant-ligatures: none; } // Remove default margins on atomic blocks because of the figure element. .public-DraftEditor-content > * > figure { margin: 0; }
6
0.153846
6
0
df8a9afd6edcf743dd419b3eb8d5c37459f6f316
lib/abc/package.rb
lib/abc/package.rb
module Abc RAILS_VERSION = '>= 4.0.0.beta' VERSION = '0.0.1' AUTHORS = ["Rob Yurkowski"] EMAILS = ["rob@yurkowski.net"] HOMEPAGE = "http://www.afterburnercms.com/" SUMMARY = "An abecedarium." DESCRIPTION = SUMMARY end
module Abc RAILS_VERSION = '>= 4.0.0.beta' VERSION = '0.0.1' AUTHORS = ["The Afterburner CMS Team"] EMAILS = ["info@afterburnercms.com"] HOMEPAGE = "http://www.afterburnercms.com/" SUMMARY = "An easy-to-use, easy-to-extend CMS." DESCRIPTION = SUMMARY end
Change authors and gem description.
Change authors and gem description.
Ruby
bsd-3-clause
grounded/afterburnercms,grounded/afterburnercms
ruby
## Code Before: module Abc RAILS_VERSION = '>= 4.0.0.beta' VERSION = '0.0.1' AUTHORS = ["Rob Yurkowski"] EMAILS = ["rob@yurkowski.net"] HOMEPAGE = "http://www.afterburnercms.com/" SUMMARY = "An abecedarium." DESCRIPTION = SUMMARY end ## Instruction: Change authors and gem description. ## Code After: module Abc RAILS_VERSION = '>= 4.0.0.beta' VERSION = '0.0.1' AUTHORS = ["The Afterburner CMS Team"] EMAILS = ["info@afterburnercms.com"] HOMEPAGE = "http://www.afterburnercms.com/" SUMMARY = "An easy-to-use, easy-to-extend CMS." DESCRIPTION = SUMMARY end
module Abc RAILS_VERSION = '>= 4.0.0.beta' VERSION = '0.0.1' - AUTHORS = ["Rob Yurkowski"] - EMAILS = ["rob@yurkowski.net"] + AUTHORS = ["The Afterburner CMS Team"] + EMAILS = ["info@afterburnercms.com"] HOMEPAGE = "http://www.afterburnercms.com/" - SUMMARY = "An abecedarium." + SUMMARY = "An easy-to-use, easy-to-extend CMS." DESCRIPTION = SUMMARY end
6
0.545455
3
3
33ec40d6b1f1ced6ab4e33ac6f80ec3cc3e15c9e
cheddar/cheddar-cdm/src/main/swagger/common-error.swagger.json
cheddar/cheddar-cdm/src/main/swagger/common-error.swagger.json
{ "swagger": "2.0", "info": { "title": "Error CDM", "description": "Common error responses", "version": "1.0.0" }, "schemes": [ "https" ], "basePath": "/v1", "produces": [ "application/vnd.clicktravel.schema-v1+json" ], "consumes": [ "application/vnd.clicktravel.schema-v1+json" ], "paths": { }, "definitions": { "ErrorResponse": { "type": "object", "properties": { "errors": { "type": "array", "items": { "$ref": "#/definitions/Error" } }, "validationErrors": { "type": "array", "items": { "$ref": "#/definitions/ValidationError" } } } }, "Error": { "type": "object", "properties": { "description": { "type": "string" } } }, "ValidationError": { "type": "object", "properties": { "field": { "type": "array", "items": { "type": "string" } }, "error": { "type": "string" } } } } }
{ "swagger": "2.0", "info": { "title": "Error CDM", "description": "Common error responses", "version": "1.0.0" }, "schemes": [ "https" ], "basePath": "/v1", "produces": [ "application/vnd.clicktravel.schema-v1+json" ], "consumes": [ "application/vnd.clicktravel.schema-v1+json" ], "paths": { }, "definitions": { "ErrorResponse": { "description": "Errors that occurred as a result of processing a request", "type": "object", "properties": { "errors": { "description" : "General errors occurred as request was processed", "type": "array", "items": { "$ref": "#/definitions/Error" } }, "validationErrors": { "description" : "Validation errors occurred when evaluating input values of request", "type": "array", "items": { "$ref": "#/definitions/ValidationError" } } } }, "Error": { "description" : "An error that occurred when a request was performed", "type": "object", "properties": { "description": { "type": "string" } } }, "ValidationError": { "description" : "Validation error found when evaluating the input values of a request", "type": "object", "properties": { "field": { "description" : "Names of fields in error", "type": "array", "items": { "type": "string" } }, "error": { "description" : "Validation error detail", "type": "string" } } } } }
Add description to CDM properties
Add description to CDM properties Signed-off-by: Steffan Westcott <f3c2708f096cd7bd1163d9748b17f6e154c59391@clicktravel.com>
JSON
apache-2.0
clicktravel-basharat/Cheddar,clicktravel-steffan/Cheddar,clicktravel-chrishern/Cheddar,ClickTravel-VincentCleaver/Cheddar,clicktravel-james/Cheddar,travel-cloud/Cheddar,clicktravel-tajinder/Cheddar,click-alexvladut/Cheddar,clicktravel-robin/Cheddar,clicktravel-andrew/Cheddar,ClickTravel/Cheddar
json
## Code Before: { "swagger": "2.0", "info": { "title": "Error CDM", "description": "Common error responses", "version": "1.0.0" }, "schemes": [ "https" ], "basePath": "/v1", "produces": [ "application/vnd.clicktravel.schema-v1+json" ], "consumes": [ "application/vnd.clicktravel.schema-v1+json" ], "paths": { }, "definitions": { "ErrorResponse": { "type": "object", "properties": { "errors": { "type": "array", "items": { "$ref": "#/definitions/Error" } }, "validationErrors": { "type": "array", "items": { "$ref": "#/definitions/ValidationError" } } } }, "Error": { "type": "object", "properties": { "description": { "type": "string" } } }, "ValidationError": { "type": "object", "properties": { "field": { "type": "array", "items": { "type": "string" } }, "error": { "type": "string" } } } } } ## Instruction: Add description to CDM properties Signed-off-by: Steffan Westcott <f3c2708f096cd7bd1163d9748b17f6e154c59391@clicktravel.com> ## Code After: { "swagger": "2.0", "info": { "title": "Error CDM", "description": "Common error responses", "version": "1.0.0" }, "schemes": [ "https" ], "basePath": "/v1", "produces": [ "application/vnd.clicktravel.schema-v1+json" ], "consumes": [ "application/vnd.clicktravel.schema-v1+json" ], "paths": { }, "definitions": { "ErrorResponse": { "description": "Errors that occurred as a result of processing a request", "type": "object", "properties": { "errors": { "description" : "General errors occurred as request was processed", "type": "array", "items": { "$ref": "#/definitions/Error" } }, "validationErrors": { "description" : "Validation errors occurred when evaluating input values of request", "type": "array", "items": { "$ref": "#/definitions/ValidationError" } } } }, "Error": { "description" : "An error that occurred when a request was performed", "type": "object", "properties": { "description": { "type": "string" } } }, "ValidationError": { "description" : "Validation error found when evaluating the input values of a request", "type": "object", "properties": { "field": { "description" : "Names of fields in error", "type": "array", "items": { "type": "string" } }, "error": { "description" : "Validation error detail", "type": "string" } } } } }
{ "swagger": "2.0", "info": { "title": "Error CDM", "description": "Common error responses", "version": "1.0.0" }, "schemes": [ "https" ], "basePath": "/v1", "produces": [ "application/vnd.clicktravel.schema-v1+json" ], "consumes": [ "application/vnd.clicktravel.schema-v1+json" ], "paths": { }, "definitions": { "ErrorResponse": { + "description": "Errors that occurred as a result of processing a request", "type": "object", "properties": { "errors": { + "description" : "General errors occurred as request was processed", "type": "array", "items": { "$ref": "#/definitions/Error" } }, "validationErrors": { + "description" : "Validation errors occurred when evaluating input values of request", "type": "array", "items": { "$ref": "#/definitions/ValidationError" } } } }, "Error": { + "description" : "An error that occurred when a request was performed", "type": "object", "properties": { "description": { "type": "string" } } }, "ValidationError": { + "description" : "Validation error found when evaluating the input values of a request", "type": "object", "properties": { "field": { + "description" : "Names of fields in error", "type": "array", "items": { "type": "string" } }, "error": { + "description" : "Validation error detail", "type": "string" } } } } }
7
0.114754
7
0
77905c9419f3136f9a29172ccc029998d7db64d3
blended-build/build.sh
blended-build/build.sh
set -e MVN="$(readlink -f "$(dirname "$0")/mvnw")" "$MVN" -version cd blended-parent "$MVN" clean install cd .. "$MVN" clean install -P parent | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P build,assembly | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0
set -e MVN="$(readlink -f "$(dirname "$0")/mvnw")" "$MVN" -version cd blended-parent "$MVN" clean install cd .. "$MVN" clean install -P parent | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P updater | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P build,assembly | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0
Build maven plugin before project
Build maven plugin before project
Shell
apache-2.0
woq-blended/blended,lefou/blended,woq-blended/blended,lefou/blended
shell
## Code Before: set -e MVN="$(readlink -f "$(dirname "$0")/mvnw")" "$MVN" -version cd blended-parent "$MVN" clean install cd .. "$MVN" clean install -P parent | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P build,assembly | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 ## Instruction: Build maven plugin before project ## Code After: set -e MVN="$(readlink -f "$(dirname "$0")/mvnw")" "$MVN" -version cd blended-parent "$MVN" clean install cd .. "$MVN" clean install -P parent | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P updater | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P build,assembly | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0
set -e MVN="$(readlink -f "$(dirname "$0")/mvnw")" "$MVN" -version cd blended-parent "$MVN" clean install cd .. "$MVN" clean install -P parent | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 + "$MVN" clean install -P updater | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0 "$MVN" clean install -P build,assembly | grep -v "^[INFO].*Download" | grep -v "longer than 100" ; test ${PIPESTATUS[0]} -eq 0
1
0.090909
1
0
d21fe102e92a1188478cd1ecf9d664f8cb27fb66
command/validator/test/util/CommandValidatorTestUtil.sh
command/validator/test/util/CommandValidatorTestUtil.sh
include file.util.FileUtil include file.writer.FileWriter include string.util.StringUtil @class CommandValidatorTestUtil(){ writeBashFile(){ local content=( "@class\nTest(){\n\t@ignore\n\talpha(){\n\t\techo\n\t}" "\n\n\t@private\n\tbeta(){\n\t\techo\n\t}" "\n\n\t@test\n\tkappa(){\n\t\techo\n\t}\n\n\t\$@\n}" ) FileWriter append $(FileUtil makeFile ${1}) $(StringUtil join content) } $@ }
include file.util.FileUtil include file.writer.FileWriter include string.util.StringUtil @class CommandValidatorTestUtil(){ writeBashFile(){ local content=( "@class\nTest(){\n\t@description\n\talpha(){\n\t\techo\n\t}" "\n\n\t@ignore\n\tbeta(){\n\t\techo\n\t}" "\n\n\t@private\n\tkappa(){\n\t\techo\n\t}" "\n\n\t@test\n\tdelta(){\n\t\techo\n\t}" "\n\n\t\$@\n}" ) FileWriter append $(FileUtil makeFile ${1}) $(StringUtil join content) } $@ }
Add new function to test file for @description tag
Add new function to test file for @description tag
Shell
mit
anthony-chu/bash-toolbox
shell
## Code Before: include file.util.FileUtil include file.writer.FileWriter include string.util.StringUtil @class CommandValidatorTestUtil(){ writeBashFile(){ local content=( "@class\nTest(){\n\t@ignore\n\talpha(){\n\t\techo\n\t}" "\n\n\t@private\n\tbeta(){\n\t\techo\n\t}" "\n\n\t@test\n\tkappa(){\n\t\techo\n\t}\n\n\t\$@\n}" ) FileWriter append $(FileUtil makeFile ${1}) $(StringUtil join content) } $@ } ## Instruction: Add new function to test file for @description tag ## Code After: include file.util.FileUtil include file.writer.FileWriter include string.util.StringUtil @class CommandValidatorTestUtil(){ writeBashFile(){ local content=( "@class\nTest(){\n\t@description\n\talpha(){\n\t\techo\n\t}" "\n\n\t@ignore\n\tbeta(){\n\t\techo\n\t}" "\n\n\t@private\n\tkappa(){\n\t\techo\n\t}" "\n\n\t@test\n\tdelta(){\n\t\techo\n\t}" "\n\n\t\$@\n}" ) FileWriter append $(FileUtil makeFile ${1}) $(StringUtil join content) } $@ }
include file.util.FileUtil include file.writer.FileWriter include string.util.StringUtil @class CommandValidatorTestUtil(){ writeBashFile(){ local content=( - "@class\nTest(){\n\t@ignore\n\talpha(){\n\t\techo\n\t}" ? ^ --- + "@class\nTest(){\n\t@description\n\talpha(){\n\t\techo\n\t}" ? +++++ ^^^^ + "\n\n\t@ignore\n\tbeta(){\n\t\techo\n\t}" - "\n\n\t@private\n\tbeta(){\n\t\techo\n\t}" ? ^^^ + "\n\n\t@private\n\tkappa(){\n\t\techo\n\t}" ? ^^^^ - "\n\n\t@test\n\tkappa(){\n\t\techo\n\t}\n\n\t\$@\n}" ? ^^^^ ------------ + "\n\n\t@test\n\tdelta(){\n\t\techo\n\t}" ? ^^^^ + "\n\n\t\$@\n}" ) FileWriter append $(FileUtil makeFile ${1}) $(StringUtil join content) } $@ }
8
0.421053
5
3
97d3b6e0bd06ced9440c8bafc638808e126e458d
Cargo.toml
Cargo.toml
[package] name = "bayer" version = "0.1.0" authors = ["David Wang <millimillenary@gmail.com>"] [dependencies]
[package] name = "bayer" version = "0.1.0" authors = ["David Wang <millimillenary@gmail.com>"] [lib] name = "bayer" crate-type = ["rlib", "dylib"] [dependencies]
Build dynamic lib, so that we can call Rust from C.
Build dynamic lib, so that we can call Rust from C. Functions exported to C should be: #[no_mangle] pub extern "C" fn ... {}
TOML
mit
wangds/libbayer,wangds/libbayer
toml
## Code Before: [package] name = "bayer" version = "0.1.0" authors = ["David Wang <millimillenary@gmail.com>"] [dependencies] ## Instruction: Build dynamic lib, so that we can call Rust from C. Functions exported to C should be: #[no_mangle] pub extern "C" fn ... {} ## Code After: [package] name = "bayer" version = "0.1.0" authors = ["David Wang <millimillenary@gmail.com>"] [lib] name = "bayer" crate-type = ["rlib", "dylib"] [dependencies]
[package] name = "bayer" version = "0.1.0" authors = ["David Wang <millimillenary@gmail.com>"] + [lib] + name = "bayer" + crate-type = ["rlib", "dylib"] + [dependencies]
4
0.666667
4
0
ddfdb1177da59d02eeb2bf4378fdef47e78674c4
README.md
README.md
Spree Paymill Bridge ==================== Paymil payment gateway for the Spree ecommerce platform, utilizing Paymill's javascript bridge. Installation ------------ Add spree_paymill_bridge to your Gemfile: ```ruby gem 'spree_paymill_bridge', github: 'mushishi78/spree_paymill_bridge' ``` Bundle your dependencies and run the installation generator: ```shell bundle bundle exec rails g spree_paymill_bridge:install ``` Copyright (c) 2014 Max White, released under the New BSD License
Spree Paymill Bridge ==================== ## N.B. This code is not production ready yet. Paymil payment gateway for the Spree ecommerce platform, utilizing Paymill's javascript bridge. Installation ------------ Add spree_paymill_bridge to your Gemfile: ```ruby gem 'spree_paymill_bridge', github: 'mushishi78/spree_paymill_bridge' ``` Bundle your dependencies and run the installation generator: ```shell bundle bundle exec rails g spree_paymill_bridge:install ``` Copyright (c) 2014 Max White, released under the New BSD License
Add not ready for use warning.
Add not ready for use warning.
Markdown
bsd-3-clause
maximgladkov/spree_paymill_bridge,maximgladkov/spree_paymill_bridge
markdown
## Code Before: Spree Paymill Bridge ==================== Paymil payment gateway for the Spree ecommerce platform, utilizing Paymill's javascript bridge. Installation ------------ Add spree_paymill_bridge to your Gemfile: ```ruby gem 'spree_paymill_bridge', github: 'mushishi78/spree_paymill_bridge' ``` Bundle your dependencies and run the installation generator: ```shell bundle bundle exec rails g spree_paymill_bridge:install ``` Copyright (c) 2014 Max White, released under the New BSD License ## Instruction: Add not ready for use warning. ## Code After: Spree Paymill Bridge ==================== ## N.B. This code is not production ready yet. Paymil payment gateway for the Spree ecommerce platform, utilizing Paymill's javascript bridge. Installation ------------ Add spree_paymill_bridge to your Gemfile: ```ruby gem 'spree_paymill_bridge', github: 'mushishi78/spree_paymill_bridge' ``` Bundle your dependencies and run the installation generator: ```shell bundle bundle exec rails g spree_paymill_bridge:install ``` Copyright (c) 2014 Max White, released under the New BSD License
Spree Paymill Bridge ==================== + + ## N.B. This code is not production ready yet. Paymil payment gateway for the Spree ecommerce platform, utilizing Paymill's javascript bridge. Installation ------------ Add spree_paymill_bridge to your Gemfile: ```ruby gem 'spree_paymill_bridge', github: 'mushishi78/spree_paymill_bridge' ``` Bundle your dependencies and run the installation generator: ```shell bundle bundle exec rails g spree_paymill_bridge:install ``` Copyright (c) 2014 Max White, released under the New BSD License
2
0.090909
2
0
74a2d6fe9c0b49b674fcb5bfc75c0ea29ce2d11f
jasmine/spec/inverted-index-spec.js
jasmine/spec/inverted-index-spec.js
describe('indexObj', function(){ var indexObj = new Index; beforeEach(function(done){ indexObj.createIndex.done(function(data){ done(); }); }) describe('createIndex', function(){ it('reads json file and asserts file is not empty', function(){ expect(arr.length).not.toBe(0); expect(arr.indexOf("joy")).toBe(-1); }) }) // describe('getIndex',function(){ // indexObj.createIndex(); // it('returns an object of file contents',function(){ // expect(typeof indexObj.getIndex().toBe('string')); // }) // indexObj.searchIndex(["alice", "governor", "wonderland", "lord", "rings"]); }) })
describe('indexObj', function(){ var testObj = new Index(); beforeEach(function(done){ testObj.createIndex().then(function(data){ testObj.arr = data; done(); }); }); describe('createIndex', function(){ it('reads json file and asserts file is not empty', function(){ //console.log(arr); expect(arr.length).not.toBe(0); // expect(arr.indexOf("joy")).toBe(-1); }); }); // describe('getIndex',function(){ // indexObj.createIndex(); // // it('returns an object of file contents',function(){ // expect(typeof indexObj.getIndex().toBe('string')); // }) // // }); // indexObj.searchIndex(["alice", "governor", "wonderland", "lord", "rings"]); })
Create test the fetch function
Create test the fetch function
JavaScript
mit
andela-jwarugu/checkpoint-1,andela-jwarugu/checkpoint-1
javascript
## Code Before: describe('indexObj', function(){ var indexObj = new Index; beforeEach(function(done){ indexObj.createIndex.done(function(data){ done(); }); }) describe('createIndex', function(){ it('reads json file and asserts file is not empty', function(){ expect(arr.length).not.toBe(0); expect(arr.indexOf("joy")).toBe(-1); }) }) // describe('getIndex',function(){ // indexObj.createIndex(); // it('returns an object of file contents',function(){ // expect(typeof indexObj.getIndex().toBe('string')); // }) // indexObj.searchIndex(["alice", "governor", "wonderland", "lord", "rings"]); }) }) ## Instruction: Create test the fetch function ## Code After: describe('indexObj', function(){ var testObj = new Index(); beforeEach(function(done){ testObj.createIndex().then(function(data){ testObj.arr = data; done(); }); }); describe('createIndex', function(){ it('reads json file and asserts file is not empty', function(){ //console.log(arr); expect(arr.length).not.toBe(0); // expect(arr.indexOf("joy")).toBe(-1); }); }); // describe('getIndex',function(){ // indexObj.createIndex(); // // it('returns an object of file contents',function(){ // expect(typeof indexObj.getIndex().toBe('string')); // }) // // }); // indexObj.searchIndex(["alice", "governor", "wonderland", "lord", "rings"]); })
describe('indexObj', function(){ - var indexObj = new Index; ? ^^^ ^ + var testObj = new Index(); ? ^ ^^ ++ beforeEach(function(done){ - indexObj.createIndex.done(function(data){ ? ^^^ ^ ^^ - + testObj.createIndex().then(function(data){ ? ^ ^^ ++ ^^^ + testObj.arr = data; done(); }); - }) + }); ? + + describe('createIndex', function(){ it('reads json file and asserts file is not empty', function(){ + //console.log(arr); expect(arr.length).not.toBe(0); - expect(arr.indexOf("joy")).toBe(-1); + // expect(arr.indexOf("joy")).toBe(-1); ? +++ - }) + }); ? + - }) + }); ? + - // describe('getIndex',function(){ ? ^ + // describe('getIndex',function(){ ? ^ // indexObj.createIndex(); - + // - // it('returns an object of file contents',function(){ ? ^ + // it('returns an object of file contents',function(){ ? ^ - // expect(typeof indexObj.getIndex().toBe('string')); ? ^ + // expect(typeof indexObj.getIndex().toBe('string')); ? ^ - // }) ? ^ + // }) ? ^ - + // + // }); // indexObj.searchIndex(["alice", "governor", "wonderland", "lord", "rings"]); - - }) })
30
1.071429
16
14
7b08777d77d6cfd5a4eeeee81fb51f5fdedde987
bumblebee/modules/caffeine.py
bumblebee/modules/caffeine.py
import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.caffeine) ) engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd=self._toggle ) def caffeine(self, widget): return "" def state(self, widget): if self._active(): return "activated" return "deactivated" def _active(self): for line in bumblebee.util.execute("xset q").split("\n"): if "timeout" in line: timeout = int(line.split(" ")[4]) if timeout == 0: return True return False return False def _toggle(self, widget): if self._active(): bumblebee.util.execute("xset s default") bumblebee.util.execute("notify-send \"Out of coffee\"") else: bumblebee.util.execute("xset s off") bumblebee.util.execute("notify-send \"Consuming caffeine\"") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.caffeine) ) engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd=self._toggle ) def caffeine(self, widget): return "" def state(self, widget): if self._active(): return "activated" return "deactivated" def _active(self): for line in bumblebee.util.execute("xset q").split("\n"): if "timeout" in line: timeout = int(line.split(" ")[4]) if timeout == 0: return True return False return False def _toggle(self, widget): if self._active(): bumblebee.util.execute("xset +dpms") bumblebee.util.execute("xset s default") bumblebee.util.execute("notify-send \"Out of coffee\"") else: bumblebee.util.execute("xset -dpms") bumblebee.util.execute("xset s off") bumblebee.util.execute("notify-send \"Consuming caffeine\"") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
Add support for switching dpms
Add support for switching dpms
Python
mit
tobi-wan-kenobi/bumblebee-status,tobi-wan-kenobi/bumblebee-status
python
## Code Before: import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.caffeine) ) engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd=self._toggle ) def caffeine(self, widget): return "" def state(self, widget): if self._active(): return "activated" return "deactivated" def _active(self): for line in bumblebee.util.execute("xset q").split("\n"): if "timeout" in line: timeout = int(line.split(" ")[4]) if timeout == 0: return True return False return False def _toggle(self, widget): if self._active(): bumblebee.util.execute("xset s default") bumblebee.util.execute("notify-send \"Out of coffee\"") else: bumblebee.util.execute("xset s off") bumblebee.util.execute("notify-send \"Consuming caffeine\"") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 ## Instruction: Add support for switching dpms ## Code After: import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.caffeine) ) engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd=self._toggle ) def caffeine(self, widget): return "" def state(self, widget): if self._active(): return "activated" return "deactivated" def _active(self): for line in bumblebee.util.execute("xset q").split("\n"): if "timeout" in line: timeout = int(line.split(" ")[4]) if timeout == 0: return True return False return False def _toggle(self, widget): if self._active(): bumblebee.util.execute("xset +dpms") bumblebee.util.execute("xset s default") bumblebee.util.execute("notify-send \"Out of coffee\"") else: bumblebee.util.execute("xset -dpms") bumblebee.util.execute("xset s off") bumblebee.util.execute("notify-send \"Consuming caffeine\"") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
import bumblebee.input import bumblebee.output import bumblebee.engine class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.caffeine) ) engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd=self._toggle ) def caffeine(self, widget): return "" def state(self, widget): if self._active(): return "activated" return "deactivated" def _active(self): for line in bumblebee.util.execute("xset q").split("\n"): if "timeout" in line: timeout = int(line.split(" ")[4]) if timeout == 0: return True return False return False def _toggle(self, widget): if self._active(): + bumblebee.util.execute("xset +dpms") bumblebee.util.execute("xset s default") bumblebee.util.execute("notify-send \"Out of coffee\"") else: + bumblebee.util.execute("xset -dpms") bumblebee.util.execute("xset s off") bumblebee.util.execute("notify-send \"Consuming caffeine\"") # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
2
0.05
2
0
bb97296d4b4285e6884e61ceda833af5a453cb91
src/libfuzzymatch/util.h
src/libfuzzymatch/util.h
/* * Convert UTF-8 string to std::vector<uint32_t> */ void utf8to32(const std::string &s, std::vector<uint32_t> &vec) { vec.assign(utf8::distance(s.cbegin(), s.cend()), 0); utf8::utf8to32(s.cbegin(), s.cend(), vec.data()); } /* * Convert UTF-8 C-string to std::vector<uint32_t> */ void utf8to32(char* const s, std::vector<uint32_t> &vec) { const size_t len(strlen(s)); vec.assign(utf8::distance(s, s+len), 0); utf8::utf8to32(s, s+len, vec.data()); }
/* * Convert UTF-8 string to std::vector<uint32_t> */ void inline utf8to32(const std::string &s, std::vector<uint32_t> &vec) { vec.assign(utf8::distance(s.cbegin(), s.cend()), 0); utf8::utf8to32(s.cbegin(), s.cend(), vec.data()); } /* * Convert UTF-8 C-string to std::vector<uint32_t> */ void inline utf8to32(char* const s, std::vector<uint32_t> &vec) { const size_t len(strlen(s)); vec.assign(utf8::distance(s, s+len), 0); utf8::utf8to32(s, s+len, vec.data()); }
Use inline as a workaround so that the utf8 functions are not exported
Use inline as a workaround so that the utf8 functions are not exported
C
mit
xhochy/libfuzzymatch,xhochy/libfuzzymatch
c
## Code Before: /* * Convert UTF-8 string to std::vector<uint32_t> */ void utf8to32(const std::string &s, std::vector<uint32_t> &vec) { vec.assign(utf8::distance(s.cbegin(), s.cend()), 0); utf8::utf8to32(s.cbegin(), s.cend(), vec.data()); } /* * Convert UTF-8 C-string to std::vector<uint32_t> */ void utf8to32(char* const s, std::vector<uint32_t> &vec) { const size_t len(strlen(s)); vec.assign(utf8::distance(s, s+len), 0); utf8::utf8to32(s, s+len, vec.data()); } ## Instruction: Use inline as a workaround so that the utf8 functions are not exported ## Code After: /* * Convert UTF-8 string to std::vector<uint32_t> */ void inline utf8to32(const std::string &s, std::vector<uint32_t> &vec) { vec.assign(utf8::distance(s.cbegin(), s.cend()), 0); utf8::utf8to32(s.cbegin(), s.cend(), vec.data()); } /* * Convert UTF-8 C-string to std::vector<uint32_t> */ void inline utf8to32(char* const s, std::vector<uint32_t> &vec) { const size_t len(strlen(s)); vec.assign(utf8::distance(s, s+len), 0); utf8::utf8to32(s, s+len, vec.data()); }
/* * Convert UTF-8 string to std::vector<uint32_t> */ - void utf8to32(const std::string &s, std::vector<uint32_t> &vec) { + void inline utf8to32(const std::string &s, std::vector<uint32_t> &vec) { ? +++++++ vec.assign(utf8::distance(s.cbegin(), s.cend()), 0); utf8::utf8to32(s.cbegin(), s.cend(), vec.data()); } /* * Convert UTF-8 C-string to std::vector<uint32_t> */ - void utf8to32(char* const s, std::vector<uint32_t> &vec) { + void inline utf8to32(char* const s, std::vector<uint32_t> &vec) { ? +++++++ const size_t len(strlen(s)); vec.assign(utf8::distance(s, s+len), 0); utf8::utf8to32(s, s+len, vec.data()); }
4
0.235294
2
2
be4919fbf62834989960fd58762e64bb06c87e11
README.md
README.md
Java library for subtitles downloading [![Build Status](https://travis-ci.org/mozvip/subtitles-finder.svg?branch=master)](https://travis-ci.org/mozvip/subtitles-finder)
Java library for subtitles downloading [![Build Status](https://travis-ci.org/mozvip/subtitles-finder.svg?branch=master)](https://travis-ci.org/mozvip/subtitles-finder) [![codecov](https://codecov.io/gh/mozvip/subtitles-finder/branch/master/graph/badge.svg)](https://codecov.io/gh/mozvip/subtitles-finder) ## Requirements Java 8+
Add test coverage to readme
Add test coverage to readme
Markdown
apache-2.0
mozvip/subtitles-finder
markdown
## Code Before: Java library for subtitles downloading [![Build Status](https://travis-ci.org/mozvip/subtitles-finder.svg?branch=master)](https://travis-ci.org/mozvip/subtitles-finder) ## Instruction: Add test coverage to readme ## Code After: Java library for subtitles downloading [![Build Status](https://travis-ci.org/mozvip/subtitles-finder.svg?branch=master)](https://travis-ci.org/mozvip/subtitles-finder) [![codecov](https://codecov.io/gh/mozvip/subtitles-finder/branch/master/graph/badge.svg)](https://codecov.io/gh/mozvip/subtitles-finder) ## Requirements Java 8+
Java library for subtitles downloading [![Build Status](https://travis-ci.org/mozvip/subtitles-finder.svg?branch=master)](https://travis-ci.org/mozvip/subtitles-finder) + + [![codecov](https://codecov.io/gh/mozvip/subtitles-finder/branch/master/graph/badge.svg)](https://codecov.io/gh/mozvip/subtitles-finder) + + ## Requirements + + Java 8+
6
2
6
0
8747f9e4501b623c8eaa125c455fe1b45a8669bf
src/project/member/client.js
src/project/member/client.js
'use strict'; let apiClient; class DrushIOMember { constructor(client, project, identifier, data = {}) { apiClient = client; this.identifier = identifier; this.project = project; this.data = data; } /** * Updates the given membership with the provided details. * * @param {Object} details * @param {Object} details.role * @param {String} details.role.type * * @returns {Promise} */ update(details) { return new Promise((resolve, reject) => { apiClient.patch(`/projects/${this.project.identifier}/members/${this.identifier}`, details).then((response) => { this.data = response.body; resolve(this); }).catch((err) => { reject(err); }) }); } remove() { return new Promise((resolve, reject) => { apiClient.del(`/projects/${this.project.identifier}/members/${this.identifier}`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } } export default DrushIOMember;
'use strict'; let apiClient; class DrushIOMember { constructor(client, project, identifier, data = {}) { apiClient = client; this.identifier = identifier; this.project = project; this.data = data; } /** * Updates the given membership with the provided details. * * @param {Object} details * @param {Object} details.role * @param {String} details.role.type * * @returns {Promise} */ update(details) { return new Promise((resolve, reject) => { apiClient.patch(`/projects/${this.project.identifier}/members/${this.identifier}`, details).then((response) => { this.data = response.body; resolve(this); }).catch((err) => { reject(err); }) }); } remove() { return new Promise((resolve, reject) => { apiClient.del(`/projects/${this.project.identifier}/members/${this.identifier}`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } /** * Re-sends the invitation for the given membership. */ invite() { return new Promise((resolve, reject) => { apiClient.post(`/projects/${this.project.identifier}/members/${this.identifier}/invite`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } } export default DrushIOMember;
Allow invitations to members to be re-sent.
Allow invitations to members to be re-sent.
JavaScript
mit
drush-io/api-client-js,drush-io/api-client-js
javascript
## Code Before: 'use strict'; let apiClient; class DrushIOMember { constructor(client, project, identifier, data = {}) { apiClient = client; this.identifier = identifier; this.project = project; this.data = data; } /** * Updates the given membership with the provided details. * * @param {Object} details * @param {Object} details.role * @param {String} details.role.type * * @returns {Promise} */ update(details) { return new Promise((resolve, reject) => { apiClient.patch(`/projects/${this.project.identifier}/members/${this.identifier}`, details).then((response) => { this.data = response.body; resolve(this); }).catch((err) => { reject(err); }) }); } remove() { return new Promise((resolve, reject) => { apiClient.del(`/projects/${this.project.identifier}/members/${this.identifier}`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } } export default DrushIOMember; ## Instruction: Allow invitations to members to be re-sent. ## Code After: 'use strict'; let apiClient; class DrushIOMember { constructor(client, project, identifier, data = {}) { apiClient = client; this.identifier = identifier; this.project = project; this.data = data; } /** * Updates the given membership with the provided details. * * @param {Object} details * @param {Object} details.role * @param {String} details.role.type * * @returns {Promise} */ update(details) { return new Promise((resolve, reject) => { apiClient.patch(`/projects/${this.project.identifier}/members/${this.identifier}`, details).then((response) => { this.data = response.body; resolve(this); }).catch((err) => { reject(err); }) }); } remove() { return new Promise((resolve, reject) => { apiClient.del(`/projects/${this.project.identifier}/members/${this.identifier}`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } /** * Re-sends the invitation for the given membership. */ invite() { return new Promise((resolve, reject) => { apiClient.post(`/projects/${this.project.identifier}/members/${this.identifier}/invite`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } } export default DrushIOMember;
'use strict'; let apiClient; class DrushIOMember { constructor(client, project, identifier, data = {}) { apiClient = client; this.identifier = identifier; this.project = project; this.data = data; } /** * Updates the given membership with the provided details. * * @param {Object} details * @param {Object} details.role * @param {String} details.role.type * * @returns {Promise} */ update(details) { return new Promise((resolve, reject) => { apiClient.patch(`/projects/${this.project.identifier}/members/${this.identifier}`, details).then((response) => { this.data = response.body; resolve(this); }).catch((err) => { reject(err); }) }); } remove() { return new Promise((resolve, reject) => { apiClient.del(`/projects/${this.project.identifier}/members/${this.identifier}`).then(() => { resolve(); }).catch((err) => { reject(err); }) }); } + /** + * Re-sends the invitation for the given membership. + */ + invite() { + return new Promise((resolve, reject) => { + apiClient.post(`/projects/${this.project.identifier}/members/${this.identifier}/invite`).then(() => { + resolve(); + }).catch((err) => { + reject(err); + }) + }); + } + } export default DrushIOMember;
13
0.282609
13
0
f9047d98b77eb7f01b0aa4a8ce235238841547e6
ubuntu/14.04/Dockerfile
ubuntu/14.04/Dockerfile
FROM ubuntu:14.04 RUN locale-gen en_US.UTF-8 RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 RUN apt-get update && apt-get install -y \ bzip2 \ libyaml-0-2 \ libssl1.0.0 \ clang-3.6 \ libedit-dev \ make ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/14.04/x86_64/rubinius-3.60.tar.bz2 /tmp/rubinius.tar.bz2 RUN cd /opt && tar xvjf /tmp/rubinius.tar.bz2 ENV PATH /opt/rubinius/3.60/bin:/opt/rubinius/3.60/gems/bin:$PATH CMD ["bash"]
FROM ubuntu:14.04 RUN locale-gen en_US.UTF-8 RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 RUN apt-get update && apt-get install -y \ bzip2 \ libyaml-0-2 \ libssl1.0.0 \ clang-3.6 \ libedit-dev \ zlib1g-dev \ make ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/14.04/x86_64/rubinius-3.60.tar.bz2 /tmp/rubinius.tar.bz2 RUN cd /opt && tar xvjf /tmp/rubinius.tar.bz2 RUN ln -sf `which clang-3.6` /usr/bin/cc RUN ln -sf `which clang++-3.6` /usr/bin/c++ ENV PATH /opt/rubinius/3.60/bin:/opt/rubinius/3.60/gems/bin:$PATH CMD ["bash"]
Install zlib for building nokogiri and link cc/c++.
Install zlib for building nokogiri and link cc/c++.
unknown
mpl-2.0
rubinius/docker,rubinius/docker
unknown
## Code Before: FROM ubuntu:14.04 RUN locale-gen en_US.UTF-8 RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 RUN apt-get update && apt-get install -y \ bzip2 \ libyaml-0-2 \ libssl1.0.0 \ clang-3.6 \ libedit-dev \ make ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/14.04/x86_64/rubinius-3.60.tar.bz2 /tmp/rubinius.tar.bz2 RUN cd /opt && tar xvjf /tmp/rubinius.tar.bz2 ENV PATH /opt/rubinius/3.60/bin:/opt/rubinius/3.60/gems/bin:$PATH CMD ["bash"] ## Instruction: Install zlib for building nokogiri and link cc/c++. ## Code After: FROM ubuntu:14.04 RUN locale-gen en_US.UTF-8 RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 RUN apt-get update && apt-get install -y \ bzip2 \ libyaml-0-2 \ libssl1.0.0 \ clang-3.6 \ libedit-dev \ zlib1g-dev \ make ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/14.04/x86_64/rubinius-3.60.tar.bz2 /tmp/rubinius.tar.bz2 RUN cd /opt && tar xvjf /tmp/rubinius.tar.bz2 RUN ln -sf `which clang-3.6` /usr/bin/cc RUN ln -sf `which clang++-3.6` /usr/bin/c++ ENV PATH /opt/rubinius/3.60/bin:/opt/rubinius/3.60/gems/bin:$PATH CMD ["bash"]
FROM ubuntu:14.04 RUN locale-gen en_US.UTF-8 RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 RUN apt-get update && apt-get install -y \ bzip2 \ libyaml-0-2 \ libssl1.0.0 \ clang-3.6 \ libedit-dev \ + zlib1g-dev \ make ADD https://rubinius-binaries-rubinius-com.s3-us-west-2.amazonaws.com/ubuntu/14.04/x86_64/rubinius-3.60.tar.bz2 /tmp/rubinius.tar.bz2 RUN cd /opt && tar xvjf /tmp/rubinius.tar.bz2 + RUN ln -sf `which clang-3.6` /usr/bin/cc + RUN ln -sf `which clang++-3.6` /usr/bin/c++ + ENV PATH /opt/rubinius/3.60/bin:/opt/rubinius/3.60/gems/bin:$PATH CMD ["bash"]
4
0.173913
4
0
3ebd04ecdc9cfcc69b97221206b3d622dc6ab7ad
README.md
README.md
This repo contains all the scripts and materials used for the student workshop "Using R to Model, Manipulate, and Manage Spatial Data"
This repo contains all the scripts and materials used for the student workshop, "Using R to Model, Manipulate, and Manage Spatial Data," originally presented at the 2015 IALE World Congress in Portland, Oregon. ### Original Workshop Instructors & Contributors Jill Deines, Tom Edwards, Whalen Dillon, Karl Jarvis, Francesco Tonini
Add original instructors and workshop location
Add original instructors and workshop location
Markdown
cc0-1.0
f-tonini/Intro-Spatial-R,f-tonini/Intro-Spatial-R
markdown
## Code Before: This repo contains all the scripts and materials used for the student workshop "Using R to Model, Manipulate, and Manage Spatial Data" ## Instruction: Add original instructors and workshop location ## Code After: This repo contains all the scripts and materials used for the student workshop, "Using R to Model, Manipulate, and Manage Spatial Data," originally presented at the 2015 IALE World Congress in Portland, Oregon. ### Original Workshop Instructors & Contributors Jill Deines, Tom Edwards, Whalen Dillon, Karl Jarvis, Francesco Tonini
- This repo contains all the scripts and materials used for the student workshop "Using R to Model, Manipulate, and Manage Spatial Data" + This repo contains all the scripts and materials used for the student workshop, "Using R to Model, Manipulate, and Manage Spatial Data," originally presented at the 2015 IALE World Congress in Portland, Oregon. ? + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + ### Original Workshop Instructors & Contributors + Jill Deines, Tom Edwards, Whalen Dillon, Karl Jarvis, Francesco Tonini
5
5
4
1
688bb99e28a9b286d9bc213e440c087f221a9469
README.md
README.md
My drone flight CnC code
My drone flight Command-and-Control implementation. (Very early WIP) ## Communication module This module is used to send and recieve protobufs between devices using an abstracted API. Currently only supports XBee. ## Control module This module is used to take input from the user for controlling the drone. Currently only supports the Steam controller. ## Position module This module can be used to read the position of a GPS module over UART. Currently only supports Adafruit GPS module. ## Vision module This module takes pictures from two USB cameras and will eventually use that data to generate obstacle avoidance logic though right now it doesn't do much other than show the pictures taken.
Update the readme with a bot more info
Update the readme with a bot more info This info better represents the smaller pieces that we have in the codebase.
Markdown
lgpl-2.1
sgnn7/sgfc,sgnn7/sgfc
markdown
## Code Before: My drone flight CnC code ## Instruction: Update the readme with a bot more info This info better represents the smaller pieces that we have in the codebase. ## Code After: My drone flight Command-and-Control implementation. (Very early WIP) ## Communication module This module is used to send and recieve protobufs between devices using an abstracted API. Currently only supports XBee. ## Control module This module is used to take input from the user for controlling the drone. Currently only supports the Steam controller. ## Position module This module can be used to read the position of a GPS module over UART. Currently only supports Adafruit GPS module. ## Vision module This module takes pictures from two USB cameras and will eventually use that data to generate obstacle avoidance logic though right now it doesn't do much other than show the pictures taken.
- My drone flight CnC code + + My drone flight Command-and-Control implementation. + (Very early WIP) + + ## Communication module + + This module is used to send and recieve protobufs between devices using an abstracted API. Currently only supports XBee. + + ## Control module + + This module is used to take input from the user for controlling the drone. Currently only supports the Steam controller. + + ## Position module + + This module can be used to read the position of a GPS module over UART. Currently only supports Adafruit GPS module. + + ## Vision module + + This module takes pictures from two USB cameras and will eventually use that data to generate obstacle avoidance logic though right now it doesn't do much other than show the pictures taken.
20
20
19
1
ec0bf62a585777526497aaea3b99f7d6f1be798d
polyfills/Array.prototype.findIndex/config.json
polyfills/Array.prototype.findIndex/config.json
{ "aliases": [ "es6", "modernizr:es6array" ], "browsers": { "chrome": "* - 29", "firefox": "3.6 - 24", "ie": "*", "opera": "* - 16", "safari": "* - 7" }, "dependencies": [ "Object.defineProperty" ], "spec": "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.findIndex", "docs": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex" }
{ "aliases": [ "es6", "modernizr:es6array" ], "browsers": { "chrome": "*", "firefox": "3.6 - 24", "ie": "*", "opera": "*", "safari": "* - 7.0" }, "dependencies": [ "Object.defineProperty" ], "spec": "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.findIndex", "docs": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex" }
Update browser spec for Array.prototype.findIndex
Update browser spec for Array.prototype.findIndex
JSON
mit
kdzwinel/polyfill-service,mcshaz/polyfill-service,kdzwinel/polyfill-service,jonathan-fielding/polyfill-service,mcshaz/polyfill-service,jonathan-fielding/polyfill-service,jonathan-fielding/polyfill-service,JakeChampion/polyfill-service,mcshaz/polyfill-service,JakeChampion/polyfill-service,kdzwinel/polyfill-service
json
## Code Before: { "aliases": [ "es6", "modernizr:es6array" ], "browsers": { "chrome": "* - 29", "firefox": "3.6 - 24", "ie": "*", "opera": "* - 16", "safari": "* - 7" }, "dependencies": [ "Object.defineProperty" ], "spec": "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.findIndex", "docs": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex" } ## Instruction: Update browser spec for Array.prototype.findIndex ## Code After: { "aliases": [ "es6", "modernizr:es6array" ], "browsers": { "chrome": "*", "firefox": "3.6 - 24", "ie": "*", "opera": "*", "safari": "* - 7.0" }, "dependencies": [ "Object.defineProperty" ], "spec": "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.findIndex", "docs": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex" }
{ "aliases": [ "es6", "modernizr:es6array" ], "browsers": { - "chrome": "* - 29", ? ----- + "chrome": "*", "firefox": "3.6 - 24", "ie": "*", - "opera": "* - 16", ? ----- + "opera": "*", - "safari": "* - 7" + "safari": "* - 7.0" ? ++ }, "dependencies": [ "Object.defineProperty" ], "spec": "http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.findIndex", "docs": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex" }
6
0.333333
3
3
432072f02020b51f061471b4f3fc7ee770f1b4d7
recipes/attribute_driven.rb
recipes/attribute_driven.rb
include_recipe "collectd::default" node[:collectd][:plugins].each_pair do |plugin_key, definition| collectd_plugin plugin_key.to_s do config definition[:config].to_hash if definition[:config] config definition[:template].to_s if definition[:template] config definition[:cookbook].to_s if definition[:cookbook] config definition[:type].to_s if definition[:type] end end
include_recipe "collectd::default" node[:collectd][:plugins].each_pair do |plugin_key, definition| collectd_plugin plugin_key.to_s do config definition[:config].to_hash if definition[:config] template definition[:template].to_s if definition[:template] cookbook definition[:cookbook].to_s if definition[:cookbook] type definition[:type].to_s if definition[:type] end end
Fix the attribute driven recipe so that attributes other than config are passed through
Fix the attribute driven recipe so that attributes other than config are passed through
Ruby
apache-2.0
realityforge/chef-collectd
ruby
## Code Before: include_recipe "collectd::default" node[:collectd][:plugins].each_pair do |plugin_key, definition| collectd_plugin plugin_key.to_s do config definition[:config].to_hash if definition[:config] config definition[:template].to_s if definition[:template] config definition[:cookbook].to_s if definition[:cookbook] config definition[:type].to_s if definition[:type] end end ## Instruction: Fix the attribute driven recipe so that attributes other than config are passed through ## Code After: include_recipe "collectd::default" node[:collectd][:plugins].each_pair do |plugin_key, definition| collectd_plugin plugin_key.to_s do config definition[:config].to_hash if definition[:config] template definition[:template].to_s if definition[:template] cookbook definition[:cookbook].to_s if definition[:cookbook] type definition[:type].to_s if definition[:type] end end
include_recipe "collectd::default" node[:collectd][:plugins].each_pair do |plugin_key, definition| collectd_plugin plugin_key.to_s do config definition[:config].to_hash if definition[:config] - config definition[:template].to_s if definition[:template] ? ^^^^^^ + template definition[:template].to_s if definition[:template] ? ^^^^^^^^ - config definition[:cookbook].to_s if definition[:cookbook] ? ^^^^ + cookbook definition[:cookbook].to_s if definition[:cookbook] ? ^^^^^^ - config definition[:type].to_s if definition[:type] ? ^^^^^^ + type definition[:type].to_s if definition[:type] ? ^^^^ end end
6
0.545455
3
3
2a7322104eb4222517f8a1167597104c5daab0bc
notes-cli.py
notes-cli.py
import argparse import yaml from os.path import expanduser def load_config_from(path): with open(expanduser(path)) as file: return yaml.load(file) def parse_options(): parser = argparse.ArgumentParser() parser.add_argument("command", choices=["ls", "add", "rm", "edit", "view", "reindex"]) parser.add_argument("--query") return parser.parse_args() def main(): config = load_config_from("~/.notes-cli/config.yaml") options = parse_options() print options if __name__ == "__main__": main()
import argparse import yaml import os from os.path import expanduser, isdir import whoosh.index as ix from whoosh.fields import * def load_config_from(path): with open(expanduser(path)) as file: return yaml.load(file) def parse_options(): parser = argparse.ArgumentParser() parser.add_argument("command", choices=["ls", "add", "rm", "edit", "view", "reindex"]) parser.add_argument("--query") return parser.parse_args() def create_or_load_index(index_path): index_full_path = expanduser(index_path) if isdir(index_full_path): return ix.open_dir(index_full_path) else: os.mkdir(index_full_path) schema = Schema(filename=TEXT(stored=True), content=TEXT) return ix.create_in(index_full_path, schema) def main(): config = load_config_from("~/.notes-cli/config.yaml") options = parse_options() index = create_or_load_index(config["indexdir"]) print options if __name__ == "__main__": main()
Create or load index directory
Create or load index directory
Python
mit
phss/notes-cli
python
## Code Before: import argparse import yaml from os.path import expanduser def load_config_from(path): with open(expanduser(path)) as file: return yaml.load(file) def parse_options(): parser = argparse.ArgumentParser() parser.add_argument("command", choices=["ls", "add", "rm", "edit", "view", "reindex"]) parser.add_argument("--query") return parser.parse_args() def main(): config = load_config_from("~/.notes-cli/config.yaml") options = parse_options() print options if __name__ == "__main__": main() ## Instruction: Create or load index directory ## Code After: import argparse import yaml import os from os.path import expanduser, isdir import whoosh.index as ix from whoosh.fields import * def load_config_from(path): with open(expanduser(path)) as file: return yaml.load(file) def parse_options(): parser = argparse.ArgumentParser() parser.add_argument("command", choices=["ls", "add", "rm", "edit", "view", "reindex"]) parser.add_argument("--query") return parser.parse_args() def create_or_load_index(index_path): index_full_path = expanduser(index_path) if isdir(index_full_path): return ix.open_dir(index_full_path) else: os.mkdir(index_full_path) schema = Schema(filename=TEXT(stored=True), content=TEXT) return ix.create_in(index_full_path, schema) def main(): config = load_config_from("~/.notes-cli/config.yaml") options = parse_options() index = create_or_load_index(config["indexdir"]) print options if __name__ == "__main__": main()
import argparse import yaml + import os - from os.path import expanduser + from os.path import expanduser, isdir ? +++++++ + import whoosh.index as ix + from whoosh.fields import * def load_config_from(path): with open(expanduser(path)) as file: return yaml.load(file) def parse_options(): parser = argparse.ArgumentParser() parser.add_argument("command", choices=["ls", "add", "rm", "edit", "view", "reindex"]) parser.add_argument("--query") return parser.parse_args() + def create_or_load_index(index_path): + index_full_path = expanduser(index_path) + if isdir(index_full_path): + return ix.open_dir(index_full_path) + else: + os.mkdir(index_full_path) + schema = Schema(filename=TEXT(stored=True), content=TEXT) + return ix.create_in(index_full_path, schema) + def main(): config = load_config_from("~/.notes-cli/config.yaml") options = parse_options() + index = create_or_load_index(config["indexdir"]) print options if __name__ == "__main__": main()
15
0.652174
14
1
ac33e429758dbf94e77b9e07ea580bc7cef292d9
test/tests.js
test/tests.js
import assert from "assert"; import { introspectStarwars } from './introspectStarwars'; import { initTemplateStringTransformer } from '../src/index'; import fs from 'fs'; import path from 'path'; // Uncomment the below to generate a new schema JSON // describe("graphql", () => { // it("can introspect star wars", async () => { // const result = await introspectStarwars(); // // fs.writeFileSync(path.join(__dirname, "starwars.json"), // JSON.stringify(result, null, 2)); // // assert.ok(result.data); // assert.ok(result.data.__schema); // }); // }); describe("runtime query transformer", () => { it("can be initialized with an introspected query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); }); it("can compile a Relay.QL query", () => { Relay.QL` query HeroNameQuery { hero { name } } `; }); it("can transform a simple query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); const transformed = transformer(` query HeroNameQuery { hero { name } } `); const expected = Relay.QL` query HeroNameQuery { hero { name } } `; assert.deepEqual(transformed, expected); }); });
import assert from "assert"; import { introspectStarwars } from './introspectStarwars'; import { initTemplateStringTransformer } from '../src/index'; import fs from 'fs'; import path from 'path'; // Uncomment the below to generate a new schema JSON // describe("graphql", () => { // it("can introspect star wars", async () => { // const result = await introspectStarwars(); // // fs.writeFileSync(path.join(__dirname, "starwars.json"), // JSON.stringify(result, null, 2)); // // assert.ok(result.data); // assert.ok(result.data.__schema); // }); // }); describe("runtime query transformer", () => { it("can be initialized with an introspected query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); }); it("can compile a Relay.QL query", () => { Relay.QL` query HeroNameQuery { hero { name } } `; }); it("can transform a simple query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); const transformed = transformer(` query HeroNameAndFriendsQuery { hero { id name friends { name } } } `); const expected = Relay.QL` query HeroNameAndFriendsQuery { hero { id name friends { name } } } `; assert.deepEqual(transformed, expected); }); });
Make query slightly more complex
Make query slightly more complex
JavaScript
mit
meteor/relay-runtime-query
javascript
## Code Before: import assert from "assert"; import { introspectStarwars } from './introspectStarwars'; import { initTemplateStringTransformer } from '../src/index'; import fs from 'fs'; import path from 'path'; // Uncomment the below to generate a new schema JSON // describe("graphql", () => { // it("can introspect star wars", async () => { // const result = await introspectStarwars(); // // fs.writeFileSync(path.join(__dirname, "starwars.json"), // JSON.stringify(result, null, 2)); // // assert.ok(result.data); // assert.ok(result.data.__schema); // }); // }); describe("runtime query transformer", () => { it("can be initialized with an introspected query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); }); it("can compile a Relay.QL query", () => { Relay.QL` query HeroNameQuery { hero { name } } `; }); it("can transform a simple query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); const transformed = transformer(` query HeroNameQuery { hero { name } } `); const expected = Relay.QL` query HeroNameQuery { hero { name } } `; assert.deepEqual(transformed, expected); }); }); ## Instruction: Make query slightly more complex ## Code After: import assert from "assert"; import { introspectStarwars } from './introspectStarwars'; import { initTemplateStringTransformer } from '../src/index'; import fs from 'fs'; import path from 'path'; // Uncomment the below to generate a new schema JSON // describe("graphql", () => { // it("can introspect star wars", async () => { // const result = await introspectStarwars(); // // fs.writeFileSync(path.join(__dirname, "starwars.json"), // JSON.stringify(result, null, 2)); // // assert.ok(result.data); // assert.ok(result.data.__schema); // }); // }); describe("runtime query transformer", () => { it("can be initialized with an introspected query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); }); it("can compile a Relay.QL query", () => { Relay.QL` query HeroNameQuery { hero { name } } `; }); it("can transform a simple query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); const transformed = transformer(` query HeroNameAndFriendsQuery { hero { id name friends { name } } } `); const expected = Relay.QL` query HeroNameAndFriendsQuery { hero { id name friends { name } } } `; assert.deepEqual(transformed, expected); }); });
import assert from "assert"; import { introspectStarwars } from './introspectStarwars'; import { initTemplateStringTransformer } from '../src/index'; import fs from 'fs'; import path from 'path'; // Uncomment the below to generate a new schema JSON // describe("graphql", () => { // it("can introspect star wars", async () => { // const result = await introspectStarwars(); // // fs.writeFileSync(path.join(__dirname, "starwars.json"), // JSON.stringify(result, null, 2)); // // assert.ok(result.data); // assert.ok(result.data.__schema); // }); // }); describe("runtime query transformer", () => { it("can be initialized with an introspected query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); }); it("can compile a Relay.QL query", () => { Relay.QL` query HeroNameQuery { hero { name } } `; }); it("can transform a simple query", async () => { const result = await introspectStarwars(); const transformer = initTemplateStringTransformer(result.data); const transformed = transformer(` - query HeroNameQuery { + query HeroNameAndFriendsQuery { ? ++++++++++ hero { + id name + friends { + name + } } } `); const expected = Relay.QL` - query HeroNameQuery { + query HeroNameAndFriendsQuery { ? ++++++++++ hero { + id name + friends { + name + } } } `; assert.deepEqual(transformed, expected); }); });
12
0.210526
10
2
eace80d96b7f33a3a34c88194387dd99d4b0af98
index.html
index.html
<!DOCTYPE html> <html> <head> <title>Slider example</title> <link rel="stylesheet" href="style/style.css"> <script src = "js/main.js"></script> </head> <body> <div class="header"> <div class="nav_wrap"> <ul class="nav"> <li><a href="/">Home</a></li> <li><a href="">Blog</a></li> <li><a href="">Portfolio</a></li> <li><a href="">About</a></li> </ul> </div> </div> <div class="container_slide"> <div class="slide" style = "background-color: red"></div> <div class="slide" style = "background-color: blue"></div> <div class="slide" style = "background-color: green"></div> <div class="slide" style = "background-color: pink"></div> <div class="slide" style = "background-color: yellow"></div> </div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Slider example</title> <link rel="stylesheet" href="style/style.css"> <script src = "js/main.js"></script> </head> <body> <div class="header"> <div class="nav_wrap"> <ul class="nav"> <li><a href="/">Home</a></li><!-- --><li><a href="">Blog</a></li><!-- --><li><a href="">Portfolio</a></li><!-- --><li><a href="">About</a></li> </ul> </div> </div> <div class="container_slide"> <div class="slide" style = "background-color: red"></div> <div class="slide" style = "background-color: blue"></div> <div class="slide" style = "background-color: green"></div> <div class="slide" style = "background-color: pink"></div> <div class="slide" style = "background-color: yellow"></div> </div> </body> </html>
Fix bag with inline-block element
Fix bag with inline-block element
HTML
mit
igorechecec/igorechecec.github.io,igorechecec/igorechecec.github.io
html
## Code Before: <!DOCTYPE html> <html> <head> <title>Slider example</title> <link rel="stylesheet" href="style/style.css"> <script src = "js/main.js"></script> </head> <body> <div class="header"> <div class="nav_wrap"> <ul class="nav"> <li><a href="/">Home</a></li> <li><a href="">Blog</a></li> <li><a href="">Portfolio</a></li> <li><a href="">About</a></li> </ul> </div> </div> <div class="container_slide"> <div class="slide" style = "background-color: red"></div> <div class="slide" style = "background-color: blue"></div> <div class="slide" style = "background-color: green"></div> <div class="slide" style = "background-color: pink"></div> <div class="slide" style = "background-color: yellow"></div> </div> </body> </html> ## Instruction: Fix bag with inline-block element ## Code After: <!DOCTYPE html> <html> <head> <title>Slider example</title> <link rel="stylesheet" href="style/style.css"> <script src = "js/main.js"></script> </head> <body> <div class="header"> <div class="nav_wrap"> <ul class="nav"> <li><a href="/">Home</a></li><!-- --><li><a href="">Blog</a></li><!-- --><li><a href="">Portfolio</a></li><!-- --><li><a href="">About</a></li> </ul> </div> </div> <div class="container_slide"> <div class="slide" style = "background-color: red"></div> <div class="slide" style = "background-color: blue"></div> <div class="slide" style = "background-color: green"></div> <div class="slide" style = "background-color: pink"></div> <div class="slide" style = "background-color: yellow"></div> </div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Slider example</title> <link rel="stylesheet" href="style/style.css"> <script src = "js/main.js"></script> </head> <body> <div class="header"> <div class="nav_wrap"> <ul class="nav"> - <li><a href="/">Home</a></li> + <li><a href="/">Home</a></li><!-- ? ++++ - <li><a href="">Blog</a></li> + --><li><a href="">Blog</a></li><!-- ? +++ ++++ - <li><a href="">Portfolio</a></li> + --><li><a href="">Portfolio</a></li><!-- ? +++ ++++ - <li><a href="">About</a></li> + --><li><a href="">About</a></li> ? +++ </ul> </div> </div> <div class="container_slide"> <div class="slide" style = "background-color: red"></div> <div class="slide" style = "background-color: blue"></div> <div class="slide" style = "background-color: green"></div> <div class="slide" style = "background-color: pink"></div> <div class="slide" style = "background-color: yellow"></div> </div> </body> </html>
8
0.275862
4
4
f1c4a2e82e3c28d97af408922a7273bc580a3375
README.md
README.md
Serverfireteam Panel Package . ===== This package provides an easily configurable admin panel for Laravel 4.2 applications with croud and UI and more . Installtions ==== Note: if you see any error in any of steps you should first fix it or report at [github](https://github.com/serverfireteam/panel/issues/new) 1. First you need have a laravel 4.2 project ready to use . 2. Add package to require-dev "serverfireteam/panel": "dev-master" in your composer.json 3. Public the package asset with php artisan asset:publish "serverfireteam/panel" 4. Go to your domain.com/panel and you can login with , user : admin , password : 12345 Thank you for using over package
Serverfireteam Panel Package . ===== This package provides an easily configurable admin panel for Laravel 4.2 applications with croud and UI and more . Installtions ==== Note: if you see any error in any of steps you should first fix it or report at [github](https://github.com/serverfireteam/panel/issues/new) 1. First you need have a laravel 4.2 project ready to use . 2. Add package to require-dev ```json { "require-dev": { "serverfireteam/panel": "dev-master" }, } ``` 3. Run the install command which will migrate database and publishes configs, views and assets. ```bash php artisan ServerfireteamPanel:install ``` 4. Go to your domain.com/panel and you can login with , user : admin , password : 12345 Thank you for using over package
Fix few paragraph in readme
Fix few paragraph in readme
Markdown
mit
serverfireteam/panel,serverfireteam/panel,serverfireteam/panel
markdown
## Code Before: Serverfireteam Panel Package . ===== This package provides an easily configurable admin panel for Laravel 4.2 applications with croud and UI and more . Installtions ==== Note: if you see any error in any of steps you should first fix it or report at [github](https://github.com/serverfireteam/panel/issues/new) 1. First you need have a laravel 4.2 project ready to use . 2. Add package to require-dev "serverfireteam/panel": "dev-master" in your composer.json 3. Public the package asset with php artisan asset:publish "serverfireteam/panel" 4. Go to your domain.com/panel and you can login with , user : admin , password : 12345 Thank you for using over package ## Instruction: Fix few paragraph in readme ## Code After: Serverfireteam Panel Package . ===== This package provides an easily configurable admin panel for Laravel 4.2 applications with croud and UI and more . Installtions ==== Note: if you see any error in any of steps you should first fix it or report at [github](https://github.com/serverfireteam/panel/issues/new) 1. First you need have a laravel 4.2 project ready to use . 2. Add package to require-dev ```json { "require-dev": { "serverfireteam/panel": "dev-master" }, } ``` 3. Run the install command which will migrate database and publishes configs, views and assets. ```bash php artisan ServerfireteamPanel:install ``` 4. Go to your domain.com/panel and you can login with , user : admin , password : 12345 Thank you for using over package
Serverfireteam Panel Package . ===== This package provides an easily configurable admin panel for Laravel 4.2 applications with croud and UI and more . Installtions ==== Note: if you see any error in any of steps you should first fix it or report at [github](https://github.com/serverfireteam/panel/issues/new) 1. First you need have a laravel 4.2 project ready to use . - 2. Add package to require-dev "serverfireteam/panel": "dev-master" in your composer.json + 2. Add package to require-dev + + ```json + { + "require-dev": { + "serverfireteam/panel": "dev-master" + }, + } + ``` - 3. Public the package asset with php artisan asset:publish "serverfireteam/panel" + 3. Run the install command which will migrate database and publishes configs, views and assets. + ```bash + php artisan ServerfireteamPanel:install + ``` 4. Go to your domain.com/panel and you can login with , user : admin , password : 12345 Thank you for using over package
15
0.625
13
2
fa84f3a5b2e988c6be13066fc07e60593e1ce106
lib/domgen/ce/templates/enumeration.java.erb
lib/domgen/ce/templates/enumeration.java.erb
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(enumeration.ce.qualified_name) %>; @javax.annotation.Generated( "Domgen" ) @java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } ) public enum <%= enumeration.ce.name %> { <%= enumeration.values.collect {|k| "#{k.name}" } .join(",\n ") %> }
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(enumeration.ce.qualified_name) %>; @javax.annotation.Generated( "Domgen" ) @java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } ) public enum <%= enumeration.ce.name %> implements java.io.Serializable { <%= enumeration.values.collect {|k| "#{k.name}" } .join(",\n ") %> }
Make this enumeration serializable so that auto_beans can use the same class
Make this enumeration serializable so that auto_beans can use the same class
HTML+ERB
apache-2.0
realityforge/domgen,icaughley/domgen,icaughley/domgen,realityforge/domgen
html+erb
## Code Before: /* DO NOT EDIT: File is auto-generated */ package <%= to_package(enumeration.ce.qualified_name) %>; @javax.annotation.Generated( "Domgen" ) @java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } ) public enum <%= enumeration.ce.name %> { <%= enumeration.values.collect {|k| "#{k.name}" } .join(",\n ") %> } ## Instruction: Make this enumeration serializable so that auto_beans can use the same class ## Code After: /* DO NOT EDIT: File is auto-generated */ package <%= to_package(enumeration.ce.qualified_name) %>; @javax.annotation.Generated( "Domgen" ) @java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } ) public enum <%= enumeration.ce.name %> implements java.io.Serializable { <%= enumeration.values.collect {|k| "#{k.name}" } .join(",\n ") %> }
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(enumeration.ce.qualified_name) %>; @javax.annotation.Generated( "Domgen" ) @java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } ) public enum <%= enumeration.ce.name %> + implements java.io.Serializable { <%= enumeration.values.collect {|k| "#{k.name}" } .join(",\n ") %> }
1
0.111111
1
0
f177ef38d7b76def8dca249fbd1d10ac539cf9e8
flask_bootstrap/templates/bootstrap/pagination.html
flask_bootstrap/templates/bootstrap/pagination.html
{% macro render_pagination(pagination, endpoint, prev=('&laquo;')|safe, next=('&raquo;')|safe, ellipses='…') -%} <nav> <ul class="pagination"{{kwargs|xmlattr}}> {# prev and next are only show if a symbol has been passed. #} {% if prev is not None -%} <li {% if not pagination.has_prev %}class="disabled"{% endif %}><a href="{% if pagination.has_prev %}{{url_for(endpoint, page=pagination.prev_num)}}{% else %}#{% endif %}">{{prev}}</li></a> {%- endif -%} {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} <li><a href="{{url_for(endpoint, page=page)}}">{{page}}</a></li> {% else %} <li class="active"><a href="#">{{page}} <span class="sr-only">(current)</span></a></li> {% endif %} {% elif ellipses is not None %} <li class="disabled"><a href="#">{{ellipses}}</a></li> {% endif %} {%- endfor %} {% if next is not None -%} <li {% if not pagination.has_next %}class="disabled"{% endif %}><a href="{% if pagination.has_next %}{{url_for(endpoint, page=pagination.next_num)}}{% else %}#{% endif %}">{{next}}</li></a> {%- endif -%} </ul> </nav> {% endmacro %}
{% macro render_pagination(pagination, endpoint, prev=('&laquo;')|safe, next=('&raquo;')|safe, ellipses='…') -%} <nav> <ul class="pagination"{{kwargs|xmlattr}}> {# prev and next are only show if a symbol has been passed. #} {% if prev != None -%} <li {% if not pagination.has_prev %}class="disabled"{% endif %}><a href="{% if pagination.has_prev %}{{url_for(endpoint, page=pagination.prev_num)}}{% else %}#{% endif %}">{{prev}}</li></a> {%- endif -%} {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} <li><a href="{{url_for(endpoint, page=page)}}">{{page}}</a></li> {% else %} <li class="active"><a href="#">{{page}} <span class="sr-only">(current)</span></a></li> {% endif %} {% elif ellipses != None %} <li class="disabled"><a href="#">{{ellipses}}</a></li> {% endif %} {%- endfor %} {% if next != None -%} <li {% if not pagination.has_next %}class="disabled"{% endif %}><a href="{% if pagination.has_next %}{{url_for(endpoint, page=pagination.next_num)}}{% else %}#{% endif %}">{{next}}</li></a> {%- endif -%} </ul> </nav> {% endmacro %}
Use !=, as is not None is not supported in Jinja2 syntax.
Use !=, as is not None is not supported in Jinja2 syntax.
HTML
apache-2.0
livepy/flask-bootstrap,scorpiovn/flask-bootstrap,dingocuster/flask-bootstrap,suvorom/flask-bootstrap,ser/flask-bootstrap,eshijia/flask-bootstrap,suvorom/flask-bootstrap,vishnugonela/flask-bootstrap,JingZhou0404/flask-bootstrap,livepy/flask-bootstrap,BeardedSteve/flask-bootstrap,victorbjorklund/flask-bootstrap,eshijia/flask-bootstrap,vishnugonela/flask-bootstrap,dingocuster/flask-bootstrap,BeardedSteve/flask-bootstrap,suvorom/flask-bootstrap,Coxious/flask-bootstrap,eshijia/flask-bootstrap,ser/flask-bootstrap,moha24/flask-bootstrap,ser/flask-bootstrap,scorpiovn/flask-bootstrap,moha24/flask-bootstrap,scorpiovn/flask-bootstrap,victorbjorklund/flask-bootstrap,BeardedSteve/flask-bootstrap,victorbjorklund/flask-bootstrap,moha24/flask-bootstrap,JingZhou0404/flask-bootstrap,vishnugonela/flask-bootstrap,Coxious/flask-bootstrap,Coxious/flask-bootstrap,JingZhou0404/flask-bootstrap,livepy/flask-bootstrap,dingocuster/flask-bootstrap
html
## Code Before: {% macro render_pagination(pagination, endpoint, prev=('&laquo;')|safe, next=('&raquo;')|safe, ellipses='…') -%} <nav> <ul class="pagination"{{kwargs|xmlattr}}> {# prev and next are only show if a symbol has been passed. #} {% if prev is not None -%} <li {% if not pagination.has_prev %}class="disabled"{% endif %}><a href="{% if pagination.has_prev %}{{url_for(endpoint, page=pagination.prev_num)}}{% else %}#{% endif %}">{{prev}}</li></a> {%- endif -%} {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} <li><a href="{{url_for(endpoint, page=page)}}">{{page}}</a></li> {% else %} <li class="active"><a href="#">{{page}} <span class="sr-only">(current)</span></a></li> {% endif %} {% elif ellipses is not None %} <li class="disabled"><a href="#">{{ellipses}}</a></li> {% endif %} {%- endfor %} {% if next is not None -%} <li {% if not pagination.has_next %}class="disabled"{% endif %}><a href="{% if pagination.has_next %}{{url_for(endpoint, page=pagination.next_num)}}{% else %}#{% endif %}">{{next}}</li></a> {%- endif -%} </ul> </nav> {% endmacro %} ## Instruction: Use !=, as is not None is not supported in Jinja2 syntax. ## Code After: {% macro render_pagination(pagination, endpoint, prev=('&laquo;')|safe, next=('&raquo;')|safe, ellipses='…') -%} <nav> <ul class="pagination"{{kwargs|xmlattr}}> {# prev and next are only show if a symbol has been passed. #} {% if prev != None -%} <li {% if not pagination.has_prev %}class="disabled"{% endif %}><a href="{% if pagination.has_prev %}{{url_for(endpoint, page=pagination.prev_num)}}{% else %}#{% endif %}">{{prev}}</li></a> {%- endif -%} {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} <li><a href="{{url_for(endpoint, page=page)}}">{{page}}</a></li> {% else %} <li class="active"><a href="#">{{page}} <span class="sr-only">(current)</span></a></li> {% endif %} {% elif ellipses != None %} <li class="disabled"><a href="#">{{ellipses}}</a></li> {% endif %} {%- endfor %} {% if next != None -%} <li {% if not pagination.has_next %}class="disabled"{% endif %}><a href="{% if pagination.has_next %}{{url_for(endpoint, page=pagination.next_num)}}{% else %}#{% endif %}">{{next}}</li></a> {%- endif -%} </ul> </nav> {% endmacro %}
{% macro render_pagination(pagination, endpoint, prev=('&laquo;')|safe, next=('&raquo;')|safe, ellipses='…') -%} <nav> <ul class="pagination"{{kwargs|xmlattr}}> {# prev and next are only show if a symbol has been passed. #} - {% if prev is not None -%} ? ^^^^^^ + {% if prev != None -%} ? ^^ <li {% if not pagination.has_prev %}class="disabled"{% endif %}><a href="{% if pagination.has_prev %}{{url_for(endpoint, page=pagination.prev_num)}}{% else %}#{% endif %}">{{prev}}</li></a> {%- endif -%} {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} <li><a href="{{url_for(endpoint, page=page)}}">{{page}}</a></li> {% else %} <li class="active"><a href="#">{{page}} <span class="sr-only">(current)</span></a></li> {% endif %} - {% elif ellipses is not None %} ? ^^^^^^ + {% elif ellipses != None %} ? ^^ <li class="disabled"><a href="#">{{ellipses}}</a></li> {% endif %} {%- endfor %} - {% if next is not None -%} ? ^^^^^^ + {% if next != None -%} ? ^^ <li {% if not pagination.has_next %}class="disabled"{% endif %}><a href="{% if pagination.has_next %}{{url_for(endpoint, page=pagination.next_num)}}{% else %}#{% endif %}">{{next}}</li></a> {%- endif -%} </ul> </nav> {% endmacro %}
6
0.193548
3
3
23a151d4d339ef78fb2562bf9df31210153542ac
app/views/data/inputs/index.html.haml
app/views/data/inputs/index.html.haml
= render "data/shared/data_subnav" .row .span12 .page-header %h2 Inputs .alert Min-, max- and start values on this screen are calculated for the current scenarios. %table.table.table-condensed %thead %th Id %th Key %th Start/User %th Share group %th Min %th Max %tbody - @inputs.each do |i| %tr %td= i.id %td= link_to highlight(i.key, params[:q]), data_input_path(:id => i.id) %td= auto_number i.start_value_for(@gql) %td= auto_number i.share_group %td= auto_number i.min_value_for(@gql) %td= auto_number i.max_value_for(@gql)
= render "data/shared/data_subnav" .row .span12 .page-header %h2 Inputs .alert Min-, max- and start values on this screen are calculated for the current scenarios. %table.table.table-condensed %thead %th Id %th Key %th Start/User %th Share group %th Min %th Max %tbody - @inputs.each do |i| %tr %td= i.id %td= link_to highlight(i.key, params[:q]), data_input_path(:id => i.id) %td - begin = auto_number(i.start_value_for(@gql) / nil) - rescue => e %strong{:style => 'color: red'}= e %td= auto_number(i.share_group) %td - begin = auto_number(i.min_value_for(@gql)) - rescue => e %strong{:style => 'color: red'}= e %td - begin = auto_number(i.max_value_for(@gql)) - rescue => e %strong{:style => 'color: red'}= e
Make data/latest/inputs rescue from errors
Make data/latest/inputs rescue from errors
Haml
mit
quintel/etengine,quintel/etengine,quintel/etengine,quintel/etengine
haml
## Code Before: = render "data/shared/data_subnav" .row .span12 .page-header %h2 Inputs .alert Min-, max- and start values on this screen are calculated for the current scenarios. %table.table.table-condensed %thead %th Id %th Key %th Start/User %th Share group %th Min %th Max %tbody - @inputs.each do |i| %tr %td= i.id %td= link_to highlight(i.key, params[:q]), data_input_path(:id => i.id) %td= auto_number i.start_value_for(@gql) %td= auto_number i.share_group %td= auto_number i.min_value_for(@gql) %td= auto_number i.max_value_for(@gql) ## Instruction: Make data/latest/inputs rescue from errors ## Code After: = render "data/shared/data_subnav" .row .span12 .page-header %h2 Inputs .alert Min-, max- and start values on this screen are calculated for the current scenarios. %table.table.table-condensed %thead %th Id %th Key %th Start/User %th Share group %th Min %th Max %tbody - @inputs.each do |i| %tr %td= i.id %td= link_to highlight(i.key, params[:q]), data_input_path(:id => i.id) %td - begin = auto_number(i.start_value_for(@gql) / nil) - rescue => e %strong{:style => 'color: red'}= e %td= auto_number(i.share_group) %td - begin = auto_number(i.min_value_for(@gql)) - rescue => e %strong{:style => 'color: red'}= e %td - begin = auto_number(i.max_value_for(@gql)) - rescue => e %strong{:style => 'color: red'}= e
= render "data/shared/data_subnav" .row .span12 - .page-header ? - + .page-header %h2 Inputs .alert Min-, max- and start values on this screen are calculated for the current scenarios. %table.table.table-condensed %thead %th Id %th Key %th Start/User %th Share group %th Min %th Max %tbody - @inputs.each do |i| %tr %td= i.id %td= link_to highlight(i.key, params[:q]), data_input_path(:id => i.id) + %td + - begin - %td= auto_number i.start_value_for(@gql) ? ^^^ ^ + = auto_number(i.start_value_for(@gql) / nil) ? ^^^^ ^ +++++++ + - rescue => e + %strong{:style => 'color: red'}= e - %td= auto_number i.share_group ? ^ + %td= auto_number(i.share_group) ? ^ + + %td + - begin - %td= auto_number i.min_value_for(@gql) ? ^^^ ^ + = auto_number(i.min_value_for(@gql)) ? ^^^^ ^ + + - rescue => e + %strong{:style => 'color: red'}= e + %td + - begin - %td= auto_number i.max_value_for(@gql) ? ^^^ ^ + = auto_number(i.max_value_for(@gql)) ? ^^^^ ^ + + - rescue => e + %strong{:style => 'color: red'}= e
22
0.814815
17
5
ce296fe9da745197d3702d2d98e820afc2069647
api/config/packages/api_platform.yaml
api/config/packages/api_platform.yaml
api_platform: title: eCamp v3 version: 1.0.0 show_webby: false mapping: paths: ['%kernel.project_dir%/src/Entity'] formats: jsonhal: [ 'application/hal+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] json: [ 'application/json' ] html: [ 'text/html' ] patch_formats: json: [ 'application/merge-patch+json' ] jsonapi: [ 'application/vnd.api+json' ] error_formats: jsonproblem: [ 'application/problem+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] swagger: versions: [3] # Mercure integration, remove if unwanted mercure: hub_url: '%env(MERCURE_SUBSCRIBE_URL)%' defaults: stateless: true cache_headers: vary: ['Content-Type', 'Authorization', 'Origin'] pagination_enabled: false itemOperations: [ 'get', 'patch', 'delete' ] collection_operations: get: ~ post: input_formats: [ 'jsonld', 'jsonapi', 'json' ] normalization_context: skip_null_values: false
api_platform: title: eCamp v3 version: 1.0.0 show_webby: false mapping: paths: ['%kernel.project_dir%/src/Entity'] formats: jsonhal: [ 'application/hal+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] json: [ 'application/json' ] html: [ 'text/html' ] patch_formats: json: [ 'application/merge-patch+json' ] jsonapi: [ 'application/vnd.api+json' ] error_formats: jsonproblem: [ 'application/problem+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] swagger: versions: [3] # Mercure integration, remove if unwanted mercure: hub_url: '%env(MERCURE_SUBSCRIBE_URL)%' defaults: stateless: true cache_headers: vary: ['Content-Type', 'Authorization', 'Origin'] pagination_enabled: false itemOperations: [ 'get', 'patch', 'delete' ] collection_operations: get: ~ post: input_formats: [ 'jsonld', 'jsonapi', 'json' ] normalization_context: skip_null_values: false order: createTime: DESC
Order entities by descending create time per default
Order entities by descending create time per default
YAML
agpl-3.0
usu/ecamp3,usu/ecamp3,ecamp/ecamp3,ecamp/ecamp3,usu/ecamp3,pmattmann/ecamp3,ecamp/ecamp3,pmattmann/ecamp3,usu/ecamp3,pmattmann/ecamp3,ecamp/ecamp3,pmattmann/ecamp3
yaml
## Code Before: api_platform: title: eCamp v3 version: 1.0.0 show_webby: false mapping: paths: ['%kernel.project_dir%/src/Entity'] formats: jsonhal: [ 'application/hal+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] json: [ 'application/json' ] html: [ 'text/html' ] patch_formats: json: [ 'application/merge-patch+json' ] jsonapi: [ 'application/vnd.api+json' ] error_formats: jsonproblem: [ 'application/problem+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] swagger: versions: [3] # Mercure integration, remove if unwanted mercure: hub_url: '%env(MERCURE_SUBSCRIBE_URL)%' defaults: stateless: true cache_headers: vary: ['Content-Type', 'Authorization', 'Origin'] pagination_enabled: false itemOperations: [ 'get', 'patch', 'delete' ] collection_operations: get: ~ post: input_formats: [ 'jsonld', 'jsonapi', 'json' ] normalization_context: skip_null_values: false ## Instruction: Order entities by descending create time per default ## Code After: api_platform: title: eCamp v3 version: 1.0.0 show_webby: false mapping: paths: ['%kernel.project_dir%/src/Entity'] formats: jsonhal: [ 'application/hal+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] json: [ 'application/json' ] html: [ 'text/html' ] patch_formats: json: [ 'application/merge-patch+json' ] jsonapi: [ 'application/vnd.api+json' ] error_formats: jsonproblem: [ 'application/problem+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] swagger: versions: [3] # Mercure integration, remove if unwanted mercure: hub_url: '%env(MERCURE_SUBSCRIBE_URL)%' defaults: stateless: true cache_headers: vary: ['Content-Type', 'Authorization', 'Origin'] pagination_enabled: false itemOperations: [ 'get', 'patch', 'delete' ] collection_operations: get: ~ post: input_formats: [ 'jsonld', 'jsonapi', 'json' ] normalization_context: skip_null_values: false order: createTime: DESC
api_platform: title: eCamp v3 version: 1.0.0 show_webby: false mapping: paths: ['%kernel.project_dir%/src/Entity'] formats: jsonhal: [ 'application/hal+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] json: [ 'application/json' ] html: [ 'text/html' ] patch_formats: json: [ 'application/merge-patch+json' ] jsonapi: [ 'application/vnd.api+json' ] error_formats: jsonproblem: [ 'application/problem+json' ] jsonld: [ 'application/ld+json' ] jsonapi: [ 'application/vnd.api+json' ] swagger: versions: [3] # Mercure integration, remove if unwanted mercure: hub_url: '%env(MERCURE_SUBSCRIBE_URL)%' defaults: stateless: true cache_headers: vary: ['Content-Type', 'Authorization', 'Origin'] pagination_enabled: false itemOperations: [ 'get', 'patch', 'delete' ] collection_operations: get: ~ post: input_formats: [ 'jsonld', 'jsonapi', 'json' ] normalization_context: skip_null_values: false + order: + createTime: DESC
2
0.055556
2
0
5d2f585779bef5e8bd82e7f4e7b46818153af711
build.py
build.py
from conan.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager() builder.add_common_builds(pure_c=False) builder.run()
from conan.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager() builder.add_common_builds(pure_c=False) builds = [] for settings, options, env_vars, build_requires, reference in builder.items: settings["cppstd"] = 14 builds.append([settings, options, env_vars, build_requires]) builder.builds = builds builder.run()
Use std 14 in CI
CI: Use std 14 in CI
Python
mit
zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit
python
## Code Before: from conan.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager() builder.add_common_builds(pure_c=False) builder.run() ## Instruction: CI: Use std 14 in CI ## Code After: from conan.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager() builder.add_common_builds(pure_c=False) builds = [] for settings, options, env_vars, build_requires, reference in builder.items: settings["cppstd"] = 14 builds.append([settings, options, env_vars, build_requires]) builder.builds = builds builder.run()
from conan.packager import ConanMultiPackager if __name__ == "__main__": builder = ConanMultiPackager() builder.add_common_builds(pure_c=False) + builds = [] + for settings, options, env_vars, build_requires, reference in builder.items: + settings["cppstd"] = 14 + builds.append([settings, options, env_vars, build_requires]) + builder.builds = builds builder.run()
5
0.833333
5
0
66f06164a5654f2925fb16a1ce28638fd57e3a9e
issue_tracker/accounts/urls.py
issue_tracker/accounts/urls.py
from django.conf.urls.defaults import * from django.contrib.auth.views import logout_then_login, login from django.contrib.auth.forms import AuthenticationForm urlpatterns = patterns('', (r'^login/$', login, {}, 'login' ), (r'^logout/$', logout_then_login, {}, 'logout'), )
from django.conf.urls.defaults import * from django.contrib.auth.views import logout_then_login, login from accounts.views import register from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.forms import AuthenticationForm urlpatterns = patterns('', (r'^register/$', register, {}, 'register' ), (r'^login/$', login, {}, 'login' ), (r'^logout/$', logout_then_login, {}, 'logout'), )
Add url mapping to register.
Add url mapping to register.
Python
mit
hfrequency/django-issue-tracker
python
## Code Before: from django.conf.urls.defaults import * from django.contrib.auth.views import logout_then_login, login from django.contrib.auth.forms import AuthenticationForm urlpatterns = patterns('', (r'^login/$', login, {}, 'login' ), (r'^logout/$', logout_then_login, {}, 'logout'), ) ## Instruction: Add url mapping to register. ## Code After: from django.conf.urls.defaults import * from django.contrib.auth.views import logout_then_login, login from accounts.views import register from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.forms import AuthenticationForm urlpatterns = patterns('', (r'^register/$', register, {}, 'register' ), (r'^login/$', login, {}, 'login' ), (r'^logout/$', logout_then_login, {}, 'logout'), )
from django.conf.urls.defaults import * from django.contrib.auth.views import logout_then_login, login + from accounts.views import register + from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.forms import AuthenticationForm urlpatterns = patterns('', + (r'^register/$', register, {}, 'register' ), (r'^login/$', login, {}, 'login' ), (r'^logout/$', logout_then_login, {}, 'logout'), )
3
0.375
3
0
7ccd6b28f9fcf651cca37acc47cf8207749454e1
dspace/config/modules/curate.cfg
dspace/config/modules/curate.cfg
plugin.named.org.dspace.curate.CurationTask = \ org.dspace.curate.ProfileFormats = profileformats, \ org.dspace.curate.RequiredMetadata = requiredmetadata # add new tasks here ## task queue implementation plugin.single.org.dspace.curate.TaskQueue = org.dspace.curate.FileTaskQueue # directory location of curation task queues taskqueue.dir = ${dspace.dir}/ctqueues # Friendly names for curation tasks to appear in admin UI # Also acts as a filter - i.e. tasks not enumerated here can still # be invoked on cmd line, etc - just not in UI ui.tasknames = \ profileformats = Profile Bitstream Formats, \ requiredmetadata = Check for Required Metadata # Name of queue used when tasks queued in Admin UI ui.queuename = admin_ui
plugin.named.org.dspace.curate.CurationTask = \ org.dspace.curate.ProfileFormats = profileformats, \ org.dspace.curate.RequiredMetadata = requiredmetadata # add new tasks here ## task queue implementation plugin.single.org.dspace.curate.TaskQueue = org.dspace.curate.FileTaskQueue # directory location of curation task queues taskqueue.dir = ${dspace.dir}/ctqueues # Friendly names for curation tasks to appear in admin UI # Also acts as a filter - i.e. tasks not enumerated here can still # be invoked on cmd line, etc - just not in UI ui.tasknames = \ profileformats = Profile Bitstream Formats, \ requiredmetadata = Check for Required Metadata # Name of queue used when tasks queued in Admin UI ui.queuename = admin_ui # Localized names for curation status codes in Admin UI ui.statusmessages = \ -3 = Unknown Task, \ -2 = No Status Set, \ -1 = Error, \ 0 = Success, \ 1 = Fail, \ 2 = Skip, \ other = Invalid Status
Add i18n-able strings for task status codes
[DS-750] Add i18n-able strings for task status codes git-svn-id: 70bab745bcc460ac4eab71f5064d7ee7ba7d8eca@5877 9c30dcfa-912a-0410-8fc2-9e0234be79fd
INI
bsd-3-clause
rnathanday/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,jamie-dryad/dryad-repo,mdiggory/dryad-repo,ojacobson/dryad-repo,rnathanday/dryad-repo,jimallman/dryad-repo,mdiggory/dryad-repo,jimallman/dryad-repo,jamie-dryad/dryad-repo,jamie-dryad/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,mdiggory/dryad-repo,jimallman/dryad-repo,jimallman/dryad-repo,ojacobson/dryad-repo,mdiggory/dryad-repo,jamie-dryad/dryad-repo,rnathanday/dryad-repo,ojacobson/dryad-repo,ojacobson/dryad-repo,jamie-dryad/dryad-repo,mdiggory/dryad-repo,jimallman/dryad-repo,rnathanday/dryad-repo
ini
## Code Before: plugin.named.org.dspace.curate.CurationTask = \ org.dspace.curate.ProfileFormats = profileformats, \ org.dspace.curate.RequiredMetadata = requiredmetadata # add new tasks here ## task queue implementation plugin.single.org.dspace.curate.TaskQueue = org.dspace.curate.FileTaskQueue # directory location of curation task queues taskqueue.dir = ${dspace.dir}/ctqueues # Friendly names for curation tasks to appear in admin UI # Also acts as a filter - i.e. tasks not enumerated here can still # be invoked on cmd line, etc - just not in UI ui.tasknames = \ profileformats = Profile Bitstream Formats, \ requiredmetadata = Check for Required Metadata # Name of queue used when tasks queued in Admin UI ui.queuename = admin_ui ## Instruction: [DS-750] Add i18n-able strings for task status codes git-svn-id: 70bab745bcc460ac4eab71f5064d7ee7ba7d8eca@5877 9c30dcfa-912a-0410-8fc2-9e0234be79fd ## Code After: plugin.named.org.dspace.curate.CurationTask = \ org.dspace.curate.ProfileFormats = profileformats, \ org.dspace.curate.RequiredMetadata = requiredmetadata # add new tasks here ## task queue implementation plugin.single.org.dspace.curate.TaskQueue = org.dspace.curate.FileTaskQueue # directory location of curation task queues taskqueue.dir = ${dspace.dir}/ctqueues # Friendly names for curation tasks to appear in admin UI # Also acts as a filter - i.e. tasks not enumerated here can still # be invoked on cmd line, etc - just not in UI ui.tasknames = \ profileformats = Profile Bitstream Formats, \ requiredmetadata = Check for Required Metadata # Name of queue used when tasks queued in Admin UI ui.queuename = admin_ui # Localized names for curation status codes in Admin UI ui.statusmessages = \ -3 = Unknown Task, \ -2 = No Status Set, \ -1 = Error, \ 0 = Success, \ 1 = Fail, \ 2 = Skip, \ other = Invalid Status
plugin.named.org.dspace.curate.CurationTask = \ org.dspace.curate.ProfileFormats = profileformats, \ org.dspace.curate.RequiredMetadata = requiredmetadata # add new tasks here ## task queue implementation plugin.single.org.dspace.curate.TaskQueue = org.dspace.curate.FileTaskQueue # directory location of curation task queues taskqueue.dir = ${dspace.dir}/ctqueues # Friendly names for curation tasks to appear in admin UI # Also acts as a filter - i.e. tasks not enumerated here can still # be invoked on cmd line, etc - just not in UI ui.tasknames = \ profileformats = Profile Bitstream Formats, \ requiredmetadata = Check for Required Metadata # Name of queue used when tasks queued in Admin UI ui.queuename = admin_ui + + # Localized names for curation status codes in Admin UI + ui.statusmessages = \ + -3 = Unknown Task, \ + -2 = No Status Set, \ + -1 = Error, \ + 0 = Success, \ + 1 = Fail, \ + 2 = Skip, \ + other = Invalid Status +
11
0.52381
11
0
b497650fab48f8bf7a6d1fec3338da1f3259af6e
client/styles/buttons.styl
client/styles/buttons.styl
@import "colors" button background regular-pink border none color white cursor pointer text-transform uppercase &.see-more display inline-block font-size 18px height 24px line-height 2px position absolute right 4px text-align center top 4px width 24px &:after color white content "+" &.zoom background-color transparent background-image url(../images/magnifier.png) background-position center background-repeat no-repeat background-size 20px height 26px left 1px position absolute top 1px width 26px
@import "colors" button background regular-pink border none color white cursor pointer text-transform uppercase &.see-more display inline-block font-size 18px height 24px line-height 2px position absolute right 4px text-align center top 4px width 24px &:after color white content "+" position relative top -1px &.zoom background-color transparent background-image url(../images/magnifier.png) background-position center background-repeat no-repeat background-size 20px height 26px left 1px position absolute top 1px width 26px
Fix styling for see more button
Fix styling for see more button
Stylus
mit
gusaiani/react-moodboard
stylus
## Code Before: @import "colors" button background regular-pink border none color white cursor pointer text-transform uppercase &.see-more display inline-block font-size 18px height 24px line-height 2px position absolute right 4px text-align center top 4px width 24px &:after color white content "+" &.zoom background-color transparent background-image url(../images/magnifier.png) background-position center background-repeat no-repeat background-size 20px height 26px left 1px position absolute top 1px width 26px ## Instruction: Fix styling for see more button ## Code After: @import "colors" button background regular-pink border none color white cursor pointer text-transform uppercase &.see-more display inline-block font-size 18px height 24px line-height 2px position absolute right 4px text-align center top 4px width 24px &:after color white content "+" position relative top -1px &.zoom background-color transparent background-image url(../images/magnifier.png) background-position center background-repeat no-repeat background-size 20px height 26px left 1px position absolute top 1px width 26px
@import "colors" button background regular-pink border none color white cursor pointer text-transform uppercase &.see-more display inline-block font-size 18px height 24px line-height 2px position absolute right 4px text-align center top 4px width 24px &:after color white content "+" + position relative + top -1px &.zoom background-color transparent background-image url(../images/magnifier.png) background-position center background-repeat no-repeat background-size 20px height 26px left 1px position absolute top 1px width 26px
2
0.0625
2
0
6bdce043fd433124a078d5e39cdfb09b5464bf98
spec/controllers/feeds_controller_spec.rb
spec/controllers/feeds_controller_spec.rb
require 'spec_helper' describe FeedsController do before :each do @user = FactoryGirl.create :user @feed1 = FactoryGirl.create :feed @feed2 = FactoryGirl.create :feed @user.feeds << @feed1 @entry1 = FactoryGirl.create :entry @entry2 = FactoryGirl.create :entry @entry3 = FactoryGirl.create :entry @feed1.entries << @entry1 << @entry2 login_user_for_unit @user end context 'GET index' do it 'returns success' do get :index response.should be_success end it 'assigns to @feeds only feeds the user is suscribed to' do get :index assigns(:feeds).should eq [@feed1] end end context 'GET show' do it 'assigns to @feed the correct object' do get :show, id: @feed1.id assigns(:feed).should eq @feed1 end it 'returns nothing for a feed the user is not suscribed to' do expect { get :show, id: @feed2.id, format: :json }.to raise_error ActiveRecord::RecordNotFound assigns(:feed).should be_blank end end end
require 'spec_helper' describe FeedsController do before :each do @user = FactoryGirl.create :user @feed1 = FactoryGirl.create :feed @feed2 = FactoryGirl.create :feed @user.feeds << @feed1 @entry1 = FactoryGirl.create :entry @entry2 = FactoryGirl.create :entry @entry3 = FactoryGirl.create :entry @feed1.entries << @entry1 << @entry2 login_user_for_unit @user # Ensure no actual HTTP calls are done FeedClient.any_instance.stub :fetch end context 'GET index' do it 'returns success' do get :index response.should be_success end it 'assigns to @feeds only feeds the user is suscribed to' do get :index assigns(:feeds).should eq [@feed1] end end context 'GET show' do it 'assigns to @feed the correct object' do get :show, id: @feed1.id assigns(:feed).should eq @feed1 end it 'returns nothing for a feed the user is not suscribed to' do expect { get :show, id: @feed2.id, format: :json }.to raise_error ActiveRecord::RecordNotFound assigns(:feed).should be_blank end it 'fetches new entries in the feed before returning' do FeedClient.any_instance.should_receive(:fetch).with @feed1.id get :show, id: @feed1.id end end end
Fix Feed controller unit test. Also added a new example to that unit test.
Fix Feed controller unit test. Also added a new example to that unit test.
Ruby
mit
jmwenda/feedbunch,jmwenda/feedbunch,jmwenda/feedbunch,amatriain/feedbunch,amatriain/feedbunch,amatriain/feedbunch,amatriain/feedbunch
ruby
## Code Before: require 'spec_helper' describe FeedsController do before :each do @user = FactoryGirl.create :user @feed1 = FactoryGirl.create :feed @feed2 = FactoryGirl.create :feed @user.feeds << @feed1 @entry1 = FactoryGirl.create :entry @entry2 = FactoryGirl.create :entry @entry3 = FactoryGirl.create :entry @feed1.entries << @entry1 << @entry2 login_user_for_unit @user end context 'GET index' do it 'returns success' do get :index response.should be_success end it 'assigns to @feeds only feeds the user is suscribed to' do get :index assigns(:feeds).should eq [@feed1] end end context 'GET show' do it 'assigns to @feed the correct object' do get :show, id: @feed1.id assigns(:feed).should eq @feed1 end it 'returns nothing for a feed the user is not suscribed to' do expect { get :show, id: @feed2.id, format: :json }.to raise_error ActiveRecord::RecordNotFound assigns(:feed).should be_blank end end end ## Instruction: Fix Feed controller unit test. Also added a new example to that unit test. ## Code After: require 'spec_helper' describe FeedsController do before :each do @user = FactoryGirl.create :user @feed1 = FactoryGirl.create :feed @feed2 = FactoryGirl.create :feed @user.feeds << @feed1 @entry1 = FactoryGirl.create :entry @entry2 = FactoryGirl.create :entry @entry3 = FactoryGirl.create :entry @feed1.entries << @entry1 << @entry2 login_user_for_unit @user # Ensure no actual HTTP calls are done FeedClient.any_instance.stub :fetch end context 'GET index' do it 'returns success' do get :index response.should be_success end it 'assigns to @feeds only feeds the user is suscribed to' do get :index assigns(:feeds).should eq [@feed1] end end context 'GET show' do it 'assigns to @feed the correct object' do get :show, id: @feed1.id assigns(:feed).should eq @feed1 end it 'returns nothing for a feed the user is not suscribed to' do expect { get :show, id: @feed2.id, format: :json }.to raise_error ActiveRecord::RecordNotFound assigns(:feed).should be_blank end it 'fetches new entries in the feed before returning' do FeedClient.any_instance.should_receive(:fetch).with @feed1.id get :show, id: @feed1.id end end end
require 'spec_helper' describe FeedsController do before :each do @user = FactoryGirl.create :user @feed1 = FactoryGirl.create :feed @feed2 = FactoryGirl.create :feed @user.feeds << @feed1 @entry1 = FactoryGirl.create :entry @entry2 = FactoryGirl.create :entry @entry3 = FactoryGirl.create :entry @feed1.entries << @entry1 << @entry2 login_user_for_unit @user + + # Ensure no actual HTTP calls are done + FeedClient.any_instance.stub :fetch end context 'GET index' do it 'returns success' do get :index response.should be_success end it 'assigns to @feeds only feeds the user is suscribed to' do get :index assigns(:feeds).should eq [@feed1] end end context 'GET show' do it 'assigns to @feed the correct object' do get :show, id: @feed1.id assigns(:feed).should eq @feed1 end it 'returns nothing for a feed the user is not suscribed to' do expect { get :show, id: @feed2.id, format: :json }.to raise_error ActiveRecord::RecordNotFound assigns(:feed).should be_blank end + + it 'fetches new entries in the feed before returning' do + FeedClient.any_instance.should_receive(:fetch).with @feed1.id + get :show, id: @feed1.id + end end end
8
0.186047
8
0
551a289a5020b88246b4c3b9f1b8788f8d2542c5
development-config.json
development-config.json
{ "GITHUB_APP_ID": "", "GITHUB_APP_SECRET": "", "port": -1, "COOKIE_SECRET": "" }
{ "MONGODB_CONNECTION_STRING": "", "GITHUB_APP_ID": "", "GITHUB_APP_SECRET": "", "port": -1, "COOKIE_SECRET": "" }
Allow a way to specify the mongodb connection string
Allow a way to specify the mongodb connection string
JSON
apache-2.0
with-regard/regard-website
json
## Code Before: { "GITHUB_APP_ID": "", "GITHUB_APP_SECRET": "", "port": -1, "COOKIE_SECRET": "" } ## Instruction: Allow a way to specify the mongodb connection string ## Code After: { "MONGODB_CONNECTION_STRING": "", "GITHUB_APP_ID": "", "GITHUB_APP_SECRET": "", "port": -1, "COOKIE_SECRET": "" }
{ + "MONGODB_CONNECTION_STRING": "", "GITHUB_APP_ID": "", "GITHUB_APP_SECRET": "", "port": -1, "COOKIE_SECRET": "" }
1
0.166667
1
0