commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
b0bb6b921338f6ffa2cfb0ab71225f2c05d4d8cc
README.md
README.md
[![Build Status](https://travis-ci.org/katosys/docker-jenkins-slave.svg?branch=master)](https://travis-ci.org/katosys/docker-jenkins-slave) Containerized jenkins slave server. ``` docker run -it --rm \ --env SSL_TRUST=foo:443,bar:443 \ katosys/jenkins-slave \ /bin/bash ```
[![Build Status](https://travis-ci.org/katosys/jenkins-slave.svg?branch=master)](https://travis-ci.org/katosys/jenkins-slave) Containerized jenkins slave server. ``` docker run -it --rm \ --env SSL_TRUST=foo:443,bar:443 \ katosys/jenkins-slave \ /bin/bash ```
Rename from docker-jenkins-slave to jenkins-slave
Rename from docker-jenkins-slave to jenkins-slave
Markdown
apache-2.0
h0tbird/docker-jenkins-slave
markdown
## Code Before: [![Build Status](https://travis-ci.org/katosys/docker-jenkins-slave.svg?branch=master)](https://travis-ci.org/katosys/docker-jenkins-slave) Containerized jenkins slave server. ``` docker run -it --rm \ --env SSL_TRUST=foo:443,bar:443 \ katosys/jenkins-slave \ /bin/bash ``` ## Instruction: Rename fro...
c3a34b481a749fc8f361cc205fdec5181aad307b
circle.yml
circle.yml
machine: pre: - cat /etc/*release - pyenv global 2.7.11 3.5.1 # # python: # version: 3.5.1 # test: pre: - which python - python --version - which python2 - python2 --version - which python3 - python3 --version override: - python3 -c 'print("OK")'
machine: pre: - cat /etc/*release - pyenv global 2.7.11 3.5.1 tlocalest: pre: - which python - v=$(python --version 2>& 1); if [ "$v" == "Python 2.7.11" ]; then echo "$v OK"; else ! echo "$v ERR"; fi - which python2 - v=$(python2 --version 2>& 1); if [ "$v" == "Python 2.7.11" ]; then echo "...
Add actual tests for expected python versions.
Add actual tests for expected python versions.
YAML
apache-2.0
winksaville/circleci-python3
yaml
## Code Before: machine: pre: - cat /etc/*release - pyenv global 2.7.11 3.5.1 # # python: # version: 3.5.1 # test: pre: - which python - python --version - which python2 - python2 --version - which python3 - python3 --version override: - python3 -c 'print("OK")' ## Instr...
58c0f63f7c2bb3c49c268ab65b394f7a92078d1a
assets/main.scss
assets/main.scss
--- # Only the main Sass file needs front matter (the dashes are enough) --- // Define defaults for each variable. $base-font-family: "Ubuntu Mono", "Helvetica Neue", Helvetica, Arial, sans-serif !default; $base-font-size: 16px !default; $base-font-weight: 400 !default; $small-font-size: $base-font-size * 0.875 !d...
--- # Only the main Sass file needs front matter (the dashes are enough) --- // Define defaults for each variable. // $base-font-family: "Ubuntu Mono", "Helvetica Neue", Helvetica, Arial, sans-serif !default; $base-font-family: "Ubuntu Mono"; $base-font-size: 16px !default; $base-font-weight: 400 !default; $small-f...
Change brand color to red
Change brand color to red
SCSS
mit
jasonrhaas/jasonrhaas.github.io,jasonrhaas/jasonrhaas.github.io
scss
## Code Before: --- # Only the main Sass file needs front matter (the dashes are enough) --- // Define defaults for each variable. $base-font-family: "Ubuntu Mono", "Helvetica Neue", Helvetica, Arial, sans-serif !default; $base-font-size: 16px !default; $base-font-weight: 400 !default; $small-font-size: $base-font...
836425f709023adaa26f06301b7de22e5fa784a7
client/js/libs/apiHelper.js
client/js/libs/apiHelper.js
require('isomorphic-fetch') export function checkStatus(response) { if (response.ok) { return response } if (response.body || response._bodyBlob) { return response.json().then(err => { const error = new Error(response.statusText) error.error = err error.response = response retur...
global.fetch = undefined require('isomorphic-fetch') export function checkStatus(response) { if (response.ok) { return response } if (response.body || response._bodyBlob) { return response.json().then(err => { const error = new Error(response.statusText) error.error = err error.respons...
Fix for Firefox fetch api implementation
Fix for Firefox fetch api implementation
JavaScript
bsd-3-clause
spark-solutions/spark-starter-kit,spark-solutions/spark-starter-kit,spark-solutions/spark-starter-kit
javascript
## Code Before: require('isomorphic-fetch') export function checkStatus(response) { if (response.ok) { return response } if (response.body || response._bodyBlob) { return response.json().then(err => { const error = new Error(response.statusText) error.error = err error.response = respo...
2cdf6a8e17d1320bd199f3309c777d0a4fedadd4
.travis.yml
.travis.yml
language: ruby rvm: - "1.9.3" - "2.0.0" - "2.1.2" notifications: email: on_failure: change gemfiles: - gemfiles/Gemfile.sinatra-1.0
language: ruby rvm: - "1.9.3" - "2.0.0" - "2.1.2" notifications: email: on_failure: change gemfiles: - Gemfile - gemfiles/Gemfile.sinatra-1.0
Add normal Gemfile to build matrix
Add normal Gemfile to build matrix
YAML
mit
danascheider/sinatra-sequel_extension
yaml
## Code Before: language: ruby rvm: - "1.9.3" - "2.0.0" - "2.1.2" notifications: email: on_failure: change gemfiles: - gemfiles/Gemfile.sinatra-1.0 ## Instruction: Add normal Gemfile to build matrix ## Code After: language: ruby rvm: - "1.9.3" - "2.0.0" - "2.1.2" notifications: email: on_failure:...
393a2f5f0ccfedc1c5ebd7de987c870419ca2d89
scripts/calculate_lqr_gain.py
scripts/calculate_lqr_gain.py
import numpy as np import scipy import control from dtk.bicycle import benchmark_state_space_vs_speed, benchmark_matrices def compute_whipple_lqr_gain(velocity): _, A, B = benchmark_state_space_vs_speed(*benchmark_matrices(), velocity) Q = np.diag([1e5, 1e3, 1e3, 1e2]) R = np.eye(2) gains = [control....
import numpy as np import scipy import control from dtk.bicycle import benchmark_state_space_vs_speed, benchmark_matrices def compute_whipple_lqr_gain(velocity): _, A, B = benchmark_state_space_vs_speed(*benchmark_matrices(), velocity) Q = np.diag([1e5, 1e3, 1e3, 1e2]) R = np.eye(2) gains = [control....
Change LQR gain element printing
Change LQR gain element printing Change printing of LQR gain elements for easier copying.
Python
bsd-2-clause
oliverlee/phobos,oliverlee/phobos,oliverlee/phobos,oliverlee/phobos
python
## Code Before: import numpy as np import scipy import control from dtk.bicycle import benchmark_state_space_vs_speed, benchmark_matrices def compute_whipple_lqr_gain(velocity): _, A, B = benchmark_state_space_vs_speed(*benchmark_matrices(), velocity) Q = np.diag([1e5, 1e3, 1e3, 1e2]) R = np.eye(2) g...
a2ffa3d02ef4b7cd345602b475f86ac172bd7c6c
support/jenkins/buildAllModuleCombination.py
support/jenkins/buildAllModuleCombination.py
import os from subprocess import call from itertools import product, repeat # To be called from the main OpenSpace modules = os.listdir("modules") modules.remove("base") # Get 2**len(modules) combinatorical combinations of ON/OFF settings = [] for args in product(*repeat(("ON", "OFF"), len(modules))): settings.ap...
import os from subprocess import call from itertools import product, repeat import shutil # To be called from the main OpenSpace modules = os.listdir("modules") modules.remove("base") # Get 2**len(modules) combinatorical combinations of ON/OFF settings = [] for args in product(*repeat(("ON", "OFF"), len(modules))): ...
Use python internal functions for generating, removing and changing directories
Use python internal functions for generating, removing and changing directories
Python
mit
OpenSpace/OpenSpace,OpenSpace/OpenSpace,OpenSpace/OpenSpace,OpenSpace/OpenSpace
python
## Code Before: import os from subprocess import call from itertools import product, repeat # To be called from the main OpenSpace modules = os.listdir("modules") modules.remove("base") # Get 2**len(modules) combinatorical combinations of ON/OFF settings = [] for args in product(*repeat(("ON", "OFF"), len(modules))):...
fe267d6beec91c3816e2c3afef2856eb3446a6d6
cmake/externals/vkcpp/CMakeLists.txt
cmake/externals/vkcpp/CMakeLists.txt
set(EXTERNAL_NAME vkcpp) string(TOUPPER ${EXTERNAL_NAME} EXTERNAL_NAME_UPPER) include(ExternalProject) ExternalProject_Add( ${EXTERNAL_NAME} DOWNLOAD_NAME vkcpp-cmake.zip URL https://codeload.github.com/jherico/vkcpp/zip/cmake #URL_MD5 1ede613de5b3596d7530d4706c546d5b CMAKE_ARGS ${PLATFORM_CMAKE_AR...
set(EXTERNAL_NAME vkcpp) string(TOUPPER ${EXTERNAL_NAME} EXTERNAL_NAME_UPPER) include(ExternalProject) ExternalProject_Add( ${EXTERNAL_NAME} DOWNLOAD_NAME vkcpp-cmake.zip URL https://codeload.github.com/jherico/vkcpp/zip/cmake URL_MD5 bf5d960fbaa9ff520bbfd97d9a9191ea CMAKE_ARGS ${PLATFORM_CMAKE_ARG...
Add MD5 sum to vkcpp dependency
Add MD5 sum to vkcpp dependency
Text
mit
jherico/Vulkan,jherico/Vulkan
text
## Code Before: set(EXTERNAL_NAME vkcpp) string(TOUPPER ${EXTERNAL_NAME} EXTERNAL_NAME_UPPER) include(ExternalProject) ExternalProject_Add( ${EXTERNAL_NAME} DOWNLOAD_NAME vkcpp-cmake.zip URL https://codeload.github.com/jherico/vkcpp/zip/cmake #URL_MD5 1ede613de5b3596d7530d4706c546d5b CMAKE_ARGS ${P...
4da48474b0427113c7ee8c400491c32000ae038b
util/ansible/roles/azuracast-db/tasks/main.yml
util/ansible/roles/azuracast-db/tasks/main.yml
--- - name: Assign PHP User set_fact: php_become_user: "{{ 'root' if testing_mode == true else 'azuracast' }}" - name: Clear AzuraCast Cache become: true become_user: "{{ php_become_user }}" shell: php {{ util_base }}/cli.php cache:clear when: azuracast_db_created.changed - name: Insta...
--- - name: Clear AzuraCast Cache become: true become_user: azuracast shell: php {{ util_base }}/cli.php cache:clear when: azuracast_db_created.changed and testing_mode == false - name: Install Initial Database mysql_db: state=import name="azuracast" target="{{ util_base }}/azuracast_db.sql" ...
Revert Ansible DB operator to fix Travis issues.
Revert Ansible DB operator to fix Travis issues.
YAML
agpl-3.0
SlvrEagle23/AzuraCast,AzuraCast/AzuraCast,SlvrEagle23/AzuraCast,AzuraCast/AzuraCast,AzuraCast/AzuraCast,AzuraCast/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast,SlvrEagle23/AzuraCast
yaml
## Code Before: --- - name: Assign PHP User set_fact: php_become_user: "{{ 'root' if testing_mode == true else 'azuracast' }}" - name: Clear AzuraCast Cache become: true become_user: "{{ php_become_user }}" shell: php {{ util_base }}/cli.php cache:clear when: azuracast_db_created.changed ...
fb792452d27be4c6015f417520c600a4b902b721
learning_journal/tests/test_views.py
learning_journal/tests/test_views.py
from pyramid.testing import DummyRequest from learning_journal.models import Entry, DBSession import pytest from learning_journal import main import webtest from learning_journal.views import ( list_view, detail_view, add_view, edit_view ) @pytest.fixture() def app(): settings = {'sqlalchemy.url':...
from pyramid.testing import DummyRequest from learning_journal.models import Entry, DBSession import pytest from learning_journal import main import webtest from learning_journal.views import ( list_view, detail_view, add_view, edit_view ) @pytest.fixture() def app(): settings = {'sqlalchemy.url':...
Add test to assert no access to app
Add test to assert no access to app
Python
mit
DZwell/learning_journal,DZwell/learning_journal,DZwell/learning_journal
python
## Code Before: from pyramid.testing import DummyRequest from learning_journal.models import Entry, DBSession import pytest from learning_journal import main import webtest from learning_journal.views import ( list_view, detail_view, add_view, edit_view ) @pytest.fixture() def app(): settings = {'...
b68a03323e6a0817cacd9efdbba04c05d69e2122
Kwc/User/Login/Component.twig
Kwc/User/Login/Component.twig
<div class="{{ cssClass }}"> {% block header %} <h1>{{ data.trlKwf('Please login') }}</h1> <p>{{ data.trlKwf('You have to login to see the requested page.') }}</p> {% if register %} <p>{{ data.trlKwf("If you don't have an account, you can") }} {{ renderer.componen...
<div class="{{ cssClass }}"> {% block header %} <h1>{{ data.trlKwf('Please login') }}</h1> <p>{{ data.trlKwf('You have to login to see the requested page.') }}</p> {% if register %} <p>{{ data.trlKwf("If you don't have an account, you can") }} {{ renderer.componen...
Move lostpassword block below form block
Move lostpassword block below form block This block doesn't make sense above everything else.
Twig
bsd-2-clause
koala-framework/koala-framework,kaufmo/koala-framework,kaufmo/koala-framework,koala-framework/koala-framework,kaufmo/koala-framework
twig
## Code Before: <div class="{{ cssClass }}"> {% block header %} <h1>{{ data.trlKwf('Please login') }}</h1> <p>{{ data.trlKwf('You have to login to see the requested page.') }}</p> {% if register %} <p>{{ data.trlKwf("If you don't have an account, you can") }} {{ r...
f1b08f0cb59acdb91a9d900fe8d88408cdce4dc5
app/services/level_access.rb
app/services/level_access.rb
class LevelAccess < Struct.new(:team) def can_access?(level) return true if level == 1 score = get_score_for(level-1) required = get_required_for(level-1) score >= required end def get_required_for(level) count = get_count_for(level) count > 1 ? count-1 : count end private def ge...
class LevelAccess < Struct.new(:team) def can_access?(level) return true if level == 1 return true if level == 2 score = get_score_for(level-1) required = get_required_for(level-1) score >= required end def get_required_for(level) count = get_count_for(level) count > 1 ? count-1 : co...
Enable level 2 for everyone
Enable level 2 for everyone
Ruby
mit
marcinbunsch/beat-the-riddler,marcinbunsch/beat-the-riddler,marcinbunsch/beat-the-riddler
ruby
## Code Before: class LevelAccess < Struct.new(:team) def can_access?(level) return true if level == 1 score = get_score_for(level-1) required = get_required_for(level-1) score >= required end def get_required_for(level) count = get_count_for(level) count > 1 ? count-1 : count end p...
64e52e3339fd2ce2650816aa44bf282e5395a4c2
src/maze_utility_test.php
src/maze_utility_test.php
<?php require('maze_utility.php'); assert(coordinate_to_column('a1n') == 0); assert(coordinate_to_column('b3s') == 1); assert(coordinate_to_column('c5e') == 2); assert(coordinate_to_column('d1s') == 3); assert(coordinate_to_column('e4w') == 4); assert(coordinate_to_row('a1n') == 0); assert(coordinate_to_row('b3s') ==...
<?php require_once('maze_utility.php'); error_reporting(E_ALL); assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_BAIL, 1); assert(coordinate_to_column('a1n') == 0); assert(coordinate_to_column('b3s') == 1); assert(coordinate_to_column('c5e') == 2); assert(coordinate_to_column('d1s') == 3); assert(coordinate_to_...
Fix maze utility test script
Fix maze utility test script
PHP
mit
CodeMOOC/CodyMazeBot,CodeMOOC/CodyMazeBot,CodeMOOC/CodyMazeBot
php
## Code Before: <?php require('maze_utility.php'); assert(coordinate_to_column('a1n') == 0); assert(coordinate_to_column('b3s') == 1); assert(coordinate_to_column('c5e') == 2); assert(coordinate_to_column('d1s') == 3); assert(coordinate_to_column('e4w') == 4); assert(coordinate_to_row('a1n') == 0); assert(coordinate_...
54d9429a42cb5b5ec0d10b394e12fc854030cf8b
tasks/go-common.yml
tasks/go-common.yml
--- - name: Install Java 1.7 and some basic dependencies, RH edition yum: name={{item}} state=present with_items: - unzip - which - java-1.7.0-openjdk-devel when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' - name: Install Java 1.7 and some basic dependencies, ...
--- - name: 'Fail if not using Apt or Yum. Do a manual install for now :-(' fail: msg='This role only supports Yum or Apt package managers at the moment. Please do a manual install instead.' when: ansible_pkg_mgr != 'yum' and ansible_pkg_mgr != 'apt' - name: Install Java 1.7 and some basic dependencies, R...
Use default package manager for the conditioanl.
Use default package manager for the conditioanl.
YAML
mit
Tpbrown/ansible-gocd,lampo/ansible-gocd,mfriedenhagen/ansible-gocd,jonwolski/ansible-gocd,MFAnderson/ansible-gocd,gocd-contrib/ansible-gocd
yaml
## Code Before: --- - name: Install Java 1.7 and some basic dependencies, RH edition yum: name={{item}} state=present with_items: - unzip - which - java-1.7.0-openjdk-devel when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' - name: Install Java 1.7 and some basi...
dd22888b74f9c474652bf0ef5cf7d897dfcadcec
composer.json
composer.json
{ "name": "dominionenterprises/image-util", "description": "A collection of image utilities", "keywords": ["utility", "image"], "authors": [ { "name": "Chad Gray", "email": "chad.gray@dominionenterprises.com", "role": "Developer" }, { ...
{ "name": "traderinteractive/image-util", "description": "A collection of image utilities", "keywords": ["utility", "image"], "authors": [ { "name": "Chad Gray", "email": "chad.gray@dominionenterprises.com", "role": "Developer" }, { ...
Change package owner to traderinteractive
Change package owner to traderinteractive
JSON
mit
chadicus/image-util-php
json
## Code Before: { "name": "dominionenterprises/image-util", "description": "A collection of image utilities", "keywords": ["utility", "image"], "authors": [ { "name": "Chad Gray", "email": "chad.gray@dominionenterprises.com", "role": "Developer" }, ...
6176fac570a41c8e5743ae98ce3d0c03cd2e86fa
.travis.yml
.travis.yml
language: php php: [5.3.3, 5.3, 5.4, 5.5, 5.6, hhvm] matrix: allow_failures: - php: 5.6 before_script: - composer selfupdate - export COMPOSER_ROOT_VERSION=2.0.0-RC3 - composer install --prefer-source script: - bin/phpspec run - ./vendor/bin/behat --format=pretty
language: php php: [5.3.3, 5.3, 5.4, 5.5, 5.6, hhvm, hhvm-nightly] matrix: allow_failures: - php: 5.6 - php: hhvm before_script: - composer selfupdate - export COMPOSER_ROOT_VERSION=2.0.0-RC3 - composer install --prefer-source script: - bin/phpspec run - ./vendor/bin/behat --format=pretty
Use HHVM nightly since 3.1 has regressions in the Reflection API.
Use HHVM nightly since 3.1 has regressions in the Reflection API.
YAML
mit
ghamoron/phpspec,Elfiggo/phpspec,docteurklein/phpspec,javi-dev/phpspec,sroze/phpspec,ulabox/phpspec,localheinz/phpspec,localheinz/phpspec,javi-dev/phpspec,ghamoron/phpspec,gnugat-forks/phpspec,rawkode/phpspec,jon-acker/phpspec,Elfiggo/phpspec,danielkmariam/phpspec,sroze/phpspec,carlosV2/phpspec,nosun/phpspec,jon-acker/...
yaml
## Code Before: language: php php: [5.3.3, 5.3, 5.4, 5.5, 5.6, hhvm] matrix: allow_failures: - php: 5.6 before_script: - composer selfupdate - export COMPOSER_ROOT_VERSION=2.0.0-RC3 - composer install --prefer-source script: - bin/phpspec run - ./vendor/bin/behat --format=pretty ## Instruction: Use...
f01e2a5e8832f69a2c6e74127a9e1b1f095878b2
ansible/roles/common_config/tasks/rhel.yml
ansible/roles/common_config/tasks/rhel.yml
--- # Redhat/CentOS specficic actions - name: Ensure common packages are installed yum: name={{ item }} state=present with_items: rhel_common_packages - name: Change to 64-bit inodes to avoid hash collisions mount: name: "{{ item.mount }}" src: "{{ item.device }}" fstype: "xfs" opts: "default...
--- # Redhat/CentOS specficic actions - name: Ensure common packages are installed yum: name={{ item }} state=present with_items: "{{ rhel_common_packages }}"
Use the correct variables, remove issues with XFS mount points
Use the correct variables, remove issues with XFS mount points
YAML
mit
proffalken/aws-blog-framework,proffalken/aws-blog-framework,proffalken/aws-blog-framework
yaml
## Code Before: --- # Redhat/CentOS specficic actions - name: Ensure common packages are installed yum: name={{ item }} state=present with_items: rhel_common_packages - name: Change to 64-bit inodes to avoid hash collisions mount: name: "{{ item.mount }}" src: "{{ item.device }}" fstype: "xfs" ...
3402aba4a8ae0ca38c2bc54c5ea4e4a8d04813e1
client/layout.html
client/layout.html
<head> <title>GetReel - Application Form</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body class="container"></body> <template name="Layout"> <header> <nav> <a href="{{pathFor route='home'}}">home</a> </nav> </header> {{> yield}} <footer> <small>...
<head> <title>GetReel</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body class="container"></body> <template name="Layout"> <header> <nav> <a href="{{pathFor route='home'}}">home</a> </nav> </header> {{> yield}} <footer> <small> Made with &...
Fix incorrect spacing in HTML template
Fix incorrect spacing in HTML template
HTML
apache-2.0
IngloriousCoderz/GetReel,IngloriousCoderz/GetReel
html
## Code Before: <head> <title>GetReel - Application Form</title> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body class="container"></body> <template name="Layout"> <header> <nav> <a href="{{pathFor route='home'}}">home</a> </nav> </header> {{> yield}} <foo...
0092065efb5ddffd4122c50eb95c867ac97468fa
_config.yml
_config.yml
name: The Digital Journal of Carlos Cuéllar tagline: 'Standard Nerd' description: 'A personal blog about design, technology, music and procrastination.' url: http://carloscuellar.net author: name: 'Carlos Cuellar' email: 'hola@carloscuellar.net' markdown: kramdown permal...
name: The Digital Journal of Carlos Cuéllar tagline: 'Standard Nerd' description: 'A personal blog about design, technology, music and procrastination.' url: http://carloscuellar.net author: name: 'Carlos Cuellar' email: 'hola@carloscuellar.net' markdown: kramdown permal...
Update config so it plays nicely with github pages
Update config so it plays nicely with github pages
YAML
mit
cuellarfr/cuellarfr.github.io,cuellarfr/cuellarfr.github.io
yaml
## Code Before: name: The Digital Journal of Carlos Cuéllar tagline: 'Standard Nerd' description: 'A personal blog about design, technology, music and procrastination.' url: http://carloscuellar.net author: name: 'Carlos Cuellar' email: 'hola@carloscuellar.net' markdown: ...
4cfc0967cef576ab5d6ddd0fff7d648e77739727
test_scriptrunner.py
test_scriptrunner.py
from antZoo.ant import AntJobRunner ant = AntJobRunner( None ) ant.start() class Job: def __init__( self, source ): self.source = source j = Job( "/Users/elchupa/code/school/antZoo/localenv/bin/python /Users/elchupa/code/school/antZoo/example_code/word_count.py" ) ant.push( j ) for i in range( 100 ): ant....
from antZoo.ant import AntJobRunner ant = AntJobRunner( None ) ant.start() class Job: def __init__( self, source ): self.source = source j = Job( "/Users/elchupa/code/school/antZoo/localenv/bin/python /Users/elchupa/code/school/antZoo/example_code/word_count.py" ) ant.push( j ) for i in range( 100 ): ant....
Test runs two jobs and 200 tasks
Test runs two jobs and 200 tasks
Python
mit
streed/antZoo,streed/antZoo
python
## Code Before: from antZoo.ant import AntJobRunner ant = AntJobRunner( None ) ant.start() class Job: def __init__( self, source ): self.source = source j = Job( "/Users/elchupa/code/school/antZoo/localenv/bin/python /Users/elchupa/code/school/antZoo/example_code/word_count.py" ) ant.push( j ) for i in rang...
4de44950d91da3a03128d755d9054b1bc4451aa3
.travis.yml
.travis.yml
language: python python: - "2.6" - "2.7" # command to install dependencies install: - touch README.txt - pip install . - pip install -r requirements.txt - pip install pep8 # command to run tests script: make check
language: python python: - '2.6' - '2.7' install: - touch README.txt - pip install . - pip install -r requirements.txt - pip install pep8 script: make check notifications: slack: secure: fCkmPpcIOM5Q7YFlHKaXF4SCirVmCK+CusH2jGTL7wql1OsXyooucVoB2V7IUsBuqKjR1I3aShIAuTGMZjboY6MCl+8n85cYsRpIzMWY7i4r7KKVL2EEWoX+plK6Slr...
Add Travis CI-Slack integration, post onto anzdevops-ci group
Add Travis CI-Slack integration, post onto anzdevops-ci group
YAML
apache-2.0
boxidau/rax-autoscaler,rackerlabs/rax-autoscaler,boxidau/rax-autoscaler,eljrax/rax-autoscaler
yaml
## Code Before: language: python python: - "2.6" - "2.7" # command to install dependencies install: - touch README.txt - pip install . - pip install -r requirements.txt - pip install pep8 # command to run tests script: make check ## Instruction: Add Travis CI-Slack integration, post onto anzdevops-ci group...
bce9205e430e94918476ae62579f9e3c811294d7
test/Parser/ms-inline-asm.c
test/Parser/ms-inline-asm.c
// REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -verify -fasm-blocks #define M __asm int 0x2c #define M2 int void t1(void) { M } void t2(void) { __asm int 0x2c } void t3(void) { __asm M2 0x2c } void t4(void) { __asm mov eax, fs:[0x10] } void t5() { __asm { int 0x2c ; } asm comments are fun! }{ } __...
// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -verify -fasm-blocks #define M __asm int 0x2c #define M2 int void t1(void) { M } void t2(void) { __asm int 0x2c } void t3(void) { __asm M2 0x2c } void t4(void) { __asm mov eax, fs:[0x10] } void t5() { __asm { int 0x2c ; } asm comments are fun! }{ } __asm {} ...
Add a triple, per Ben's suggestion.
Add a triple, per Ben's suggestion. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@173198 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
c
## Code Before: // REQUIRES: x86-registered-target // RUN: %clang_cc1 %s -verify -fasm-blocks #define M __asm int 0x2c #define M2 int void t1(void) { M } void t2(void) { __asm int 0x2c } void t3(void) { __asm M2 0x2c } void t4(void) { __asm mov eax, fs:[0x10] } void t5() { __asm { int 0x2c ; } asm comments are ...
e5c002c5135bcce5176bd82317833d45ecee2591
docker-compose.yml
docker-compose.yml
version: "3" services: build: image: node:alpine working_dir: /home/node/app environment: - NODE_ENV=production volumes: - ./:/home/node/app command: "yarn && yarn build:production"
version: "3" services: build: image: node:alpine working_dir: /home/node/app environment: - NODE_ENV=production volumes: - ./:/home/node/app command: "rm -rf /home/node/app/public && yarn && yarn build:production"
Clean build directory when deploying.
Clean build directory when deploying.
YAML
mit
jsonnull/jsonnull.com,jsonnull/jsonnull.com,jsonnull/jsonnull.com
yaml
## Code Before: version: "3" services: build: image: node:alpine working_dir: /home/node/app environment: - NODE_ENV=production volumes: - ./:/home/node/app command: "yarn && yarn build:production" ## Instruction: Clean build directory when deploying. ## Code After: version: "3" ser...
7bfc3ccb56a331fd1bf86606baddf1ea38f78e4a
assets/js/work2.js
assets/js/work2.js
/* * I am working on this */ (function() { var test = "test", test2 = "test2"; function log() { console.log(test + " - " + test2); } })()
/* * I am working on this */ (function() { var test = "test", test2 = "test2"; function log() { console.log(test + " - " + test2); } log(); })()
Call log() function - testing functionallity.
Call log() function - testing functionallity.
JavaScript
mit
m-xristov/opengym,m-xristov/opengym,m-xristov/opengym
javascript
## Code Before: /* * I am working on this */ (function() { var test = "test", test2 = "test2"; function log() { console.log(test + " - " + test2); } })() ## Instruction: Call log() function - testing functionallity. ## Code After: /* * I am working on this */ (function() { var test...
c9fcd412450ddde9856b10a7ca08d84a7875124d
.config/emacs/core.el
.config/emacs/core.el
(setq inhibit-startup-message t) ;; theme (if (file-exists-p "~/.light") (setq-default frame-background-mode 'light) (setq-default frame-background-mode 'dark)) (if (file-exists-p "~/.light") (load-theme 'solarized-light t) (load-theme 'solarized-dark t)) ;; display (setq display-time-24hr-format t) (unle...
(setq inhibit-startup-message t) ;; theme (if (file-exists-p "~/.light") (setq-default frame-background-mode 'light) (setq-default frame-background-mode 'dark)) (if (file-exists-p "~/.light") (load-theme 'solarized-light t) (load-theme 'solarized-dark t)) ;; display (setq display-time-24hr-format t) (unle...
Move all emacs temp files to /tmp
Move all emacs temp files to /tmp
Emacs Lisp
mit
spapanik/configuration,spapanik/configuration
emacs-lisp
## Code Before: (setq inhibit-startup-message t) ;; theme (if (file-exists-p "~/.light") (setq-default frame-background-mode 'light) (setq-default frame-background-mode 'dark)) (if (file-exists-p "~/.light") (load-theme 'solarized-light t) (load-theme 'solarized-dark t)) ;; display (setq display-time-24hr...
b023c858e6d2a77a613bb68c751ce16da7d47d48
Sources/Helpers/NSBundle+Cocoapods.swift
Sources/Helpers/NSBundle+Cocoapods.swift
// // NSBundle+Cocoapods.swift // Pods // // Created by Jelle Vandebeeck on 08/06/16. // // import Foundation class BaseBundle {} extension Bundle { static func deliriumBundle() -> Bundle { let bundlePath = Bundle(for: BaseBundle.self).path(forResource: "Delirium", ofType: "bundle")! retu...
// // NSBundle+Cocoapods.swift // Pods // // Created by Jelle Vandebeeck on 08/06/16. // // import Foundation class BaseBundle {} extension Bundle { static func deliriumBundle() -> Bundle { let bundlePath = Bundle(for: BaseBundle.self).path(forResource: "Delirium", ofType: "bundle")! retu...
Use the correct localizable file from the pod.
Use the correct localizable file from the pod.
Swift
mit
icapps/ios-delirium,icapps/ios-delirium
swift
## Code Before: // // NSBundle+Cocoapods.swift // Pods // // Created by Jelle Vandebeeck on 08/06/16. // // import Foundation class BaseBundle {} extension Bundle { static func deliriumBundle() -> Bundle { let bundlePath = Bundle(for: BaseBundle.self).path(forResource: "Delirium", ofType: "bundle...
de57268e9f92ba964aa5a35d05ef3b3af413314d
tests/wpt/mozilla/meta/mozilla/worklets/__dir__.ini
tests/wpt/mozilla/meta/mozilla/worklets/__dir__.ini
prefs: [dom.worklet.enabled:true,dom.worklet.blockingsleep.enabled:true]
prefs: [dom.worklet.enabled:true,dom.worklet.blockingsleep.enabled:true,dom.worklet.timeout_ms:5000]
Add timeout pref to the mozilla/worklets wpt tests
Add timeout pref to the mozilla/worklets wpt tests
INI
mpl-2.0
KiChjang/servo,peterjoel/servo,anthgur/servo,jimberlage/servo,splav/servo,paulrouget/servo,saneyuki/servo,saneyuki/servo,avadacatavra/servo,pyfisch/servo,jimberlage/servo,DominoTree/servo,saneyuki/servo,peterjoel/servo,paulrouget/servo,sadmansk/servo,jimberlage/servo,splav/servo,splav/servo,anthgur/servo,larsbergstrom/...
ini
## Code Before: prefs: [dom.worklet.enabled:true,dom.worklet.blockingsleep.enabled:true] ## Instruction: Add timeout pref to the mozilla/worklets wpt tests ## Code After: prefs: [dom.worklet.enabled:true,dom.worklet.blockingsleep.enabled:true,dom.worklet.timeout_ms:5000]
77a49e17fcc506ab1e775952493a1aa9c0ad6242
app/workers/download_manuscript_worker.rb
app/workers/download_manuscript_worker.rb
class DownloadManuscriptWorker include Sidekiq::Worker def perform(manuscript_id, url) manuscript = Manuscript.find(manuscript_id) manuscript.source.download!(url) manuscript.status = "done" manuscript.save epub = EpubConverter.new manuscript.paper, User.first, true response = Typhoeus.po...
class DownloadManuscriptWorker include Sidekiq::Worker def perform(manuscript_id, url) manuscript = Manuscript.find(manuscript_id) manuscript.source.download!(url) manuscript.status = "done" manuscript.save epub = EpubConverter.new manuscript.paper, User.first, true response = RestClient....
Use RestClient instead of Typhoeus in the worker
Use RestClient instead of Typhoeus in the worker
Ruby
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
ruby
## Code Before: class DownloadManuscriptWorker include Sidekiq::Worker def perform(manuscript_id, url) manuscript = Manuscript.find(manuscript_id) manuscript.source.download!(url) manuscript.status = "done" manuscript.save epub = EpubConverter.new manuscript.paper, User.first, true respon...
8b691aa71988e70267de1ad3352416649b8ebb16
css/main.css
css/main.css
@charset "utf-8"; body { margin: 4.5em; padding: 0; font-family: "EB Garamond", Georgia, Times, "Times New Roman", serif; font-size: 100%; line-height: 1.5; } h1, h2 { color: black; } .map { top: 0; bottom: 0; height: 400px; width: 100%; } .navbar { list-style-type: none; margin: 0; paddi...
@charset "utf-8"; body { margin: 1.5em; padding: 0; font-family: "EB Garamond", Georgia, Times, "Times New Roman", serif; font-size: 100%; line-height: 1.5; } @media (min-width: 30em) { body { margin: 3em; } } h1, h2 { color: black; } .map { top: 0; bottom: 0; height: 400px; width: 100%...
Use less margin on small screens.
Use less margin on small screens.
CSS
mit
foodoasisla/site,foodoasisla/site,SomeRandom42/site,tamurafatherree/fooddesert,kathwang21/site,tamurafatherree/fooddesert,gheulard/fichier,SomeRandom42/site,gheulard/fichier,kathwang21/site
css
## Code Before: @charset "utf-8"; body { margin: 4.5em; padding: 0; font-family: "EB Garamond", Georgia, Times, "Times New Roman", serif; font-size: 100%; line-height: 1.5; } h1, h2 { color: black; } .map { top: 0; bottom: 0; height: 400px; width: 100%; } .navbar { list-style-type: none; ma...
e2beb7ffdec2df2d3d12beaef77fa6d84f284508
partials/_default.rb
partials/_default.rb
puts "Adding default files ...".magenta copy_static_file 'app/assets/stylesheets/reset.css' copy_static_file 'app/views/layouts/application.html.haml' copy_static_file 'Procfile' %w{requires.rb}.each do |component| copy_static_file "config/initializers/#{component}" end %w{integration.rake deploy.rake}.each do |co...
puts "Adding default files ...".magenta copy_static_file 'app/assets/stylesheets/reset.css' copy_static_file 'app/views/layouts/application.html.haml' copy_static_file 'config/unicorn.rb' copy_static_file 'Procfile' %w{requires.rb}.each do |component| copy_static_file "config/initializers/#{component}" end %w{int...
Add to generator cp of config/unicorn.rb default.
Add to generator cp of config/unicorn.rb default.
Ruby
mit
Helabs/pah,ffscalco/pah,Helabs/pah,ffscalco/pah
ruby
## Code Before: puts "Adding default files ...".magenta copy_static_file 'app/assets/stylesheets/reset.css' copy_static_file 'app/views/layouts/application.html.haml' copy_static_file 'Procfile' %w{requires.rb}.each do |component| copy_static_file "config/initializers/#{component}" end %w{integration.rake deploy.r...
346470843cc5791ddb684eb684343ccf2d15e7eb
docker/files/elasticsearch.yml
docker/files/elasticsearch.yml
network.host: 0.0.0.0 http.port: 9200 # dev-only setting to allow client-side ES front-ends http.cors.allow-origin: "*" http.cors.enabled: true index.max_result_window: 1000000 action.auto_create_index: false
network.host: 0.0.0.0 http.port: 9200 # dev-only setting to allow client-side ES front-ends http.cors.allow-origin: "*" http.cors.enabled: true index.max_result_window: 1000000 # Eventually we want to enable this option, but currently it causes ES # timeouts due to tests referencing non-existent indices. For example...
Enable action.auto_create_index in docker ES
Enable action.auto_create_index in docker ES Reverts a change made in https://github.com/dimagi/commcare-hq/pull/27156. Other test changes made in that PR should be kept since they perform ES index maintenance that will be necessary if (when) we eventually re-enable this option.
YAML
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
yaml
## Code Before: network.host: 0.0.0.0 http.port: 9200 # dev-only setting to allow client-side ES front-ends http.cors.allow-origin: "*" http.cors.enabled: true index.max_result_window: 1000000 action.auto_create_index: false ## Instruction: Enable action.auto_create_index in docker ES Reverts a change made in http...
97d45756b0ff5ed69ebdf055199d6aa4357e6668
library/Denkmal/library/Denkmal/Form/EventAdd.php
library/Denkmal/library/Denkmal/Form/EventAdd.php
<?php class Denkmal_Form_EventAdd extends CM_Form_Abstract { public function setup () { $this->registerField(new Denkmal_FormField_Venue('venue')); $this->registerField(new CM_FormField_Text('venueAddress')); $this->registerField(new CM_FormField_Text('venueUrl')); $this->registerField(new CM_FormField_Date...
<?php class Denkmal_Form_EventAdd extends CM_Form_Abstract { public function setup () { $this->registerField(new Denkmal_FormField_Venue('venue')); $this->registerField(new CM_FormField_Text('venueAddress')); $this->registerField(new CM_FormField_Text('venueUrl')); $this->registerField(new CM_FormField_Date...
Set default date to current
Set default date to current
PHP
mit
denkmal/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,fvovan/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org,fvovan/denkmal.org,njam/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org
php
## Code Before: <?php class Denkmal_Form_EventAdd extends CM_Form_Abstract { public function setup () { $this->registerField(new Denkmal_FormField_Venue('venue')); $this->registerField(new CM_FormField_Text('venueAddress')); $this->registerField(new CM_FormField_Text('venueUrl')); $this->registerField(new C...
24fa5d507e10c1c2d810d1a24203fde214eb49fa
ci/promote-test-to-prod.sh
ci/promote-test-to-prod.sh
git fetch docker run --rm -e ZULIP_CLI_TOKEN -v ~/.config:/home/akvo/.config -v "$(pwd)":/app \ -it akvo/akvo-devops:20201203.085214.79bec73 promote-test-to-prod.sh rsr rsr-version akvo-rsr zulip rsr
git fetch docker run --rm -e ZULIP_CLI_TOKEN -v ~/.config:/home/akvo/.config -v "$(pwd)":/app \ -it akvo/akvo-devops:20201203.085214.79bec73 promote-test-to-prod.sh rsr rsr-version akvo-rsr zulip "Everest Engine"
Move Release announcements to the Everest Engine stream
Move Release announcements to the Everest Engine stream
Shell
agpl-3.0
akvo/akvo-rsr,akvo/akvo-rsr,akvo/akvo-rsr,akvo/akvo-rsr
shell
## Code Before: git fetch docker run --rm -e ZULIP_CLI_TOKEN -v ~/.config:/home/akvo/.config -v "$(pwd)":/app \ -it akvo/akvo-devops:20201203.085214.79bec73 promote-test-to-prod.sh rsr rsr-version akvo-rsr zulip rsr ## Instruction: Move Release announcements to the Everest Engine stream ## Code After: git fetch ...
0c0107a2754888594c23c9a4dce858e5932af109
README.rst
README.rst
Disqus API 1.1 Please see http://groups.google.com/group/disqus-dev/web/api-1-1 for more information. Sample usage:: require('disqus/disqus.php'); $dsq = new DisqusAPI($user_api_key, $forum_api_key); $username = $dsq->get_user_name(); To run the included unit tests you will need to install PHPUnit:: php dis...
Disqus API 1.1 Please see http://groups.google.com/group/disqus-dev/web/api-1-1 for more information. Sample usage:: require('disqus/disqus.php'); $dsq = new DisqusAPI($user_api_key, $forum_api_key); if (($username = $dsq->get_user_name()) === false) { throw new Exception($dsq->get_last_error()); } To ...
Improve example to show error handling
Improve example to show error handling
reStructuredText
apache-2.0
disqus/php-disqus
restructuredtext
## Code Before: Disqus API 1.1 Please see http://groups.google.com/group/disqus-dev/web/api-1-1 for more information. Sample usage:: require('disqus/disqus.php'); $dsq = new DisqusAPI($user_api_key, $forum_api_key); $username = $dsq->get_user_name(); To run the included unit tests you will need to install PHP...
fce5d112c3f57c7845e8a2decf9427fc48cd5b93
spec/features/sessions_spec.rb
spec/features/sessions_spec.rb
require 'rails_helper' describe 'the login process', type: :feature do before(:each) do FactoryGirl.create(:ip_cache, ip_address: '1.2.3.4') end let!(:new_user) do FactoryGirl.create(:user, email: 'new_user@example.com') end let!(:activated_user) do FactoryGirl.create(:activated_user, email: '...
require 'rails_helper' describe 'the login/logout process', type: :feature do before(:each) do FactoryGirl.create(:ip_cache, ip_address: '1.2.3.4') end let!(:new_user) do FactoryGirl.create(:user, email: 'new_user@example.com') end let!(:activated_user) do FactoryGirl.create(:activated_user, e...
Add rspec logout and invalid login tests
Add rspec logout and invalid login tests
Ruby
mit
cribbles/tiktak,cribbles/tiktak,cribbles/tiktak
ruby
## Code Before: require 'rails_helper' describe 'the login process', type: :feature do before(:each) do FactoryGirl.create(:ip_cache, ip_address: '1.2.3.4') end let!(:new_user) do FactoryGirl.create(:user, email: 'new_user@example.com') end let!(:activated_user) do FactoryGirl.create(:activate...
9281197bee2dd7948640b813382cfc414befe886
www/js/controllers/app_ctrl.js
www/js/controllers/app_ctrl.js
angular.module("proBebe.controllers") .controller("AppCtrl", function($scope, storage, messageHandler, Profile, ScrollPositions) { $scope.$on('$ionicView.enter', init); var profile; function init(){ reloadProfile(); } function getChildren(){ profile = storage.get("profile"); $scope.children = ...
angular.module("proBebe.controllers") .controller("AppCtrl", function($scope, $rootScope, storage, messageHandler, Profile, ScrollPositions) { $scope.$on('$ionicView.enter', init); var profile; function init(){ reloadProfile(); } function getChildren(){ profile = storage.get("profile"); $scope...
Define emit event to open filter
Define emit event to open filter
JavaScript
mit
InstitutoZeroaSeis/probebe-app,InstitutoZeroaSeis/probebe-app
javascript
## Code Before: angular.module("proBebe.controllers") .controller("AppCtrl", function($scope, storage, messageHandler, Profile, ScrollPositions) { $scope.$on('$ionicView.enter', init); var profile; function init(){ reloadProfile(); } function getChildren(){ profile = storage.get("profile"); $s...
93cd82056c709f3cb9e52b8e2860109d72e58df9
rust/test/iter/basic_test.rs
rust/test/iter/basic_test.rs
use super::TheModule; use TheModule::*; use test_tools::*; // fn basic_test() { // test.case( "basic" ); let src = vec![ 1, 2, 3 ]; let exp = ( vec![ 2, 3, 4 ], vec![ 0, 1, 2 ] ); let got : ( Vec< _ >, Vec< _ > ) = src.iter().map( | e | {( e + 1, e - 1, )}).multiunzip(); assert_eq!( got, exp ); ...
use super::TheModule; use TheModule::*; use test_tools::*; // tests_impls! { #[ test ] fn basic() { // test.case( "basic" ); let src = vec![ 1, 2, 3 ]; let exp = ( vec![ 2, 3, 4 ], vec![ 0, 1, 2 ] ); let got : ( Vec< _ >, Vec< _ > ) = src.iter().map( | e | {( e + 1, e - 1, )}...
Update tests of module `iter_tools`, use new test macroses
Update tests of module `iter_tools`, use new test macroses
Rust
mit
Wandalen/wTools,Wandalen/wTools
rust
## Code Before: use super::TheModule; use TheModule::*; use test_tools::*; // fn basic_test() { // test.case( "basic" ); let src = vec![ 1, 2, 3 ]; let exp = ( vec![ 2, 3, 4 ], vec![ 0, 1, 2 ] ); let got : ( Vec< _ >, Vec< _ > ) = src.iter().map( | e | {( e + 1, e - 1, )}).multiunzip(); assert_e...
5577c0d64be91bc85b8c820492d9970bfa6c4237
.gitlab-ci.yml
.gitlab-ci.yml
image: ultravideo/kvazaar_ci_base:latest # Build kvazaar and run tests build-kvazaar: stage: build script: - ./autogen.sh - ./configure --enable-werror || (cat config.log && false) - make --jobs=8 V=1 artifacts: paths: - src/kvazaar - src/.libs expire_in: 1 week run-tests: stage: ...
image: ultravideo/kvazaar_ci_base:latest # Build kvazaar build-kvazaar: &build-template stage: build script: - ./autogen.sh - ./configure --enable-werror || (cat config.log && false) - make --jobs=8 V=1 artifacts: paths: - src/kvazaar - src/.libs expire_in: 1 week build-asan: <<: *...
Enable sanitizers in Gitlab CI
Enable sanitizers in Gitlab CI Enables build and test with AddressSanitizer, ThreadSanitizer and UndefinedBehaviorSanitizer in Gitlab CI configuration. The LeakSanitizer component of AddressSanitizer is disabled because ptrace cannot be used inside the container.
YAML
bsd-3-clause
ultravideo/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar
yaml
## Code Before: image: ultravideo/kvazaar_ci_base:latest # Build kvazaar and run tests build-kvazaar: stage: build script: - ./autogen.sh - ./configure --enable-werror || (cat config.log && false) - make --jobs=8 V=1 artifacts: paths: - src/kvazaar - src/.libs expire_in: 1 week run-...
089247c62a36e4a2e0c149001bd06ccf562ebc4e
src/config.js
src/config.js
export let baseUrl = 'http://rosettastack.com'; export let sites = [{ name: 'Programmers', slug: 'programmers', seUrl: 'http://programmers.stackexchange.com/', langs: ['en', 'fr'], db: 'localhost/programmers', }, { name: 'Coffee', slug: 'coffee', seUrl: 'http://coffee.stackexchange.com/', langs: ['en'...
export let baseUrl = 'http://rosettastack.com'; export let sites = [{ name: 'Programmers', slug: 'programmers', seUrl: 'http://programmers.stackexchange.com/', langs: ['en', 'fr'], db: 'localhost/programmers', }, { name: 'Coffee', slug: 'coffee', seUrl: 'http://coffee.stackexchange.com/', langs: ['en'...
Fix db ref for SO
Fix db ref for SO
JavaScript
mpl-2.0
bbondy/stack-view,bbondy/stack-view,bbondy/stack-view
javascript
## Code Before: export let baseUrl = 'http://rosettastack.com'; export let sites = [{ name: 'Programmers', slug: 'programmers', seUrl: 'http://programmers.stackexchange.com/', langs: ['en', 'fr'], db: 'localhost/programmers', }, { name: 'Coffee', slug: 'coffee', seUrl: 'http://coffee.stackexchange.com/'...
f6d3a093a739544d7b197009619e8ae7c21e0083
client/views/layouts/basic.html
client/views/layouts/basic.html
<template name="basicLayout"> <div id="main"> <header> {{> header}} </header> {{> yield}} {{! Also a sidebar! }} <footer> {{> footer}} </footer> </div> </template>
<template name="basicLayout"> <div id="main"> <!-- header> {{> header}} </header --> {{> yield}} {{! Also a sidebar! }} <!-- footer> {{> footer}} </footer --> </div> </template>
Remove header and footer layout
Remove header and footer layout
HTML
mit
alex-accellerator/magicbottle,alex-accellerator/magicbottle,alex-accellerator/magicbottle,alex-accellerator/magicbottle
html
## Code Before: <template name="basicLayout"> <div id="main"> <header> {{> header}} </header> {{> yield}} {{! Also a sidebar! }} <footer> {{> footer}} </footer> </div> </template> ## Instruction: Remove header and footer layout #...
69c83178ebdf1452602311995eaa60cf4c750702
README.md
README.md
This plugin lets you listen for when a CSS property, or properties, changes on element. It utilizes the `DOMAttrModified` or `propertychange` events, when available, and fallsback to polling utilizing `setTimeout()`. Original blog post can be found [here](http://darcyclarke.me/development/detect-attribute-changes-wi...
This plugin lets you listen for when a CSS property, or properties, changes on element. It utilizes `Mutation Observers` or the `DOMAttrModified` / `propertychange` events, when available, and fallsback to polling utilizing `setInterval()`. Original blog post can be found [here](http://darcyclarke.me/development/det...
Add note about mutation observers to readme
Add note about mutation observers to readme
Markdown
mit
darcyclarke/Watch.js
markdown
## Code Before: This plugin lets you listen for when a CSS property, or properties, changes on element. It utilizes the `DOMAttrModified` or `propertychange` events, when available, and fallsback to polling utilizing `setTimeout()`. Original blog post can be found [here](http://darcyclarke.me/development/detect-attr...
25195e3dbb1ec3e38bba3b38b4b43ecff1030e52
src/AppBundle/Resources/translations/report-action.en.yml
src/AppBundle/Resources/translations/report-action.en.yml
page: htmlTitle: "Deputy report - Concerns | GOV.UK" # safeguardInfoSaved: Your changes were saved pageSectionTitle: Actions you plan to take pageSectionDescription: "" form: contact: subSectionTitle: Decisions and concerns save: label: Save doYouExpectFinancialDecisions: ...
page: htmlTitle: "Deputy report - Concerns | GOV.UK" # safeguardInfoSaved: Your changes were saved pageSectionTitle: Actions you plan to take pageSectionDescription: "" form: contact: subSectionTitle: Decisions and concerns save: label: Save doYouExpectFinancialDecisions: ...
Change 'their child' to 'a relative'
Change 'their child' to 'a relative' Not clear who the ‘their’ will be in this context
YAML
mit
ministryofjustice/opg-digi-deps-client,ministryofjustice/opg-digi-deps-client,ministryofjustice/opg-digi-deps-client,ministryofjustice/opg-digi-deps-client
yaml
## Code Before: page: htmlTitle: "Deputy report - Concerns | GOV.UK" # safeguardInfoSaved: Your changes were saved pageSectionTitle: Actions you plan to take pageSectionDescription: "" form: contact: subSectionTitle: Decisions and concerns save: label: Save doYouExpectFinancia...
85d036ebbb87a5c9ad9265331a2cc0c4fca91c58
cross/arm64cl.txt
cross/arm64cl.txt
[binaries] c = 'cl' cpp = 'cl' ar = 'lib' windres = 'rc' [properties] c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] c_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] cpp_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] cpp_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] [host_machine] system = 'windows' cpu_family = 'aa...
[binaries] c = 'cl' cpp = 'cl' ar = 'lib' windres = 'rc' [built-in options] c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] c_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] cpp_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] cpp_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] [host_machine] system = 'windows' cpu_family...
Rename [properties] to [built-in options]
Rename [properties] to [built-in options] This is the new syntax. Avoids loud deprecation warnings.
Text
apache-2.0
jpakkane/meson,pexip/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,pexip/meson,mesonbuild/meson,pexip/meson,QuLogic/meson,pexip/meson,QuLogic/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,pexip/meson,pexip/meson,QuLogic/meson,QuLogic/meson,jpakkane/meson,jpakkane/meson,jpakkane/meson,jpakkane/meson,...
text
## Code Before: [binaries] c = 'cl' cpp = 'cl' ar = 'lib' windres = 'rc' [properties] c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] c_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] cpp_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP'] cpp_link_args = ['-APPCONTAINER', 'WindowsApp.lib'] [host_machine] system = 'windows' ...
eaa4c73dcc4013ea929377fc40f94c4d52aa32ab
docker-compose.yml
docker-compose.yml
app: build: . dockerfile: ./docker/Dockerfile.web environment: PORT: 3001 links: - mongo - redis ports: - "3001:3001" volumes: - .:/var/www/ekorp mongo: image: mongo:3.0.2 volumes: - ./data:/data/db redis: image: redis nginx: image: nginx:1.9 ports: - 443:443 - 8...
app: build: . dockerfile: ./docker/Dockerfile.web environment: PORT: 3001 links: - mongo - redis ports: - "3001:3001" volumes: - .:/var/www/ekorp mongo: image: mongo:3.0.2 redis: image: redis nginx: image: nginx:1.9 ports: - 443:443 - 80:80 links: - app volumes...
Revert "Added mountpoint for mongodb"
Revert "Added mountpoint for mongodb" This reverts commit 2bdb3247b5af30c8ae2ad688b02e3b4f8989eb13.
YAML
mit
e-korp/e-korp,e-korp/e-korp
yaml
## Code Before: app: build: . dockerfile: ./docker/Dockerfile.web environment: PORT: 3001 links: - mongo - redis ports: - "3001:3001" volumes: - .:/var/www/ekorp mongo: image: mongo:3.0.2 volumes: - ./data:/data/db redis: image: redis nginx: image: nginx:1.9 ports: -...
57ca59e225119a031dee6b0c10a27c43a41f56ce
settings.py
settings.py
PROTOCOL = "http" HOSTNAME = "localhost" AUTHSERVERPORT = 1234 CHARSERVERPORT = 1235 MASTERZONESERVERPORT = 1236 ZONESTARTUPTIME = 10 DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S:%f' ADMINISTRATORS = ['admin'] CLIENT_TIMEOUT = 10 # Client gives up connecting after 10 seconds. MSPERSEC = 1000 CLIENT_NETWORK_FPS = 10 CLI...
PROTOCOL = "http" HOSTNAME = "localhost" AUTHSERVERPORT = 1234 CHARSERVERPORT = 1235 MASTERZONESERVERPORT = 1236 ZONESTARTPORT = 1300 ZONEENDPORT = 1400 ZONESTARTUPTIME = 10 DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S:%f' ADMINISTRATORS = ['admin'] CLIENT_TIMEOUT = 10 # Client gives up connecting after 10 seconds. MSP...
Add a zone port range.
Add a zone port range.
Python
agpl-3.0
cnelsonsic/SimpleMMO,cnelsonsic/SimpleMMO,cnelsonsic/SimpleMMO
python
## Code Before: PROTOCOL = "http" HOSTNAME = "localhost" AUTHSERVERPORT = 1234 CHARSERVERPORT = 1235 MASTERZONESERVERPORT = 1236 ZONESTARTUPTIME = 10 DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S:%f' ADMINISTRATORS = ['admin'] CLIENT_TIMEOUT = 10 # Client gives up connecting after 10 seconds. MSPERSEC = 1000 CLIENT_NETWO...
ea7f952fe90fe05965348cbd57bf4109b2e0afb7
components/DefaultSettings.js
components/DefaultSettings.js
const ALL_COMPILERS = ['clang-3.8', 'clang-3.9', 'clang-4.0', 'clang-5.0', 'clang-6.0', 'clang-7.0', 'clang-7.1', 'clang-8.0', 'clang-9.0', 'clang-10.0', 'clang-11.0', 'clang-12.0', 'gcc-5.5', 'gcc-6.4', 'gcc-6.5', 'gcc-7.2', 'gcc-7.3', 'gcc-7.4', 'gcc-7.5', 'gcc-8.1', 'gcc-8.2', 'gcc-8.3', 'gcc-8.4', '...
const ALL_COMPILERS = ['clang-3.8', 'clang-3.9', 'clang-4.0', 'clang-5.0', 'clang-6.0', 'clang-7.0', 'clang-7.1', 'clang-8.0', 'clang-9.0', 'clang-10.0', 'clang-11.0', 'clang-11.1', 'clang-12.0', 'clang-13.0', 'gcc-5.5', 'gcc-6.4', 'gcc-6.5', 'gcc-7.2', 'gcc-7.3', 'gcc-7.4', 'gcc-7.5', 'gcc-8.1', 'gcc-8...
Change default compiler and default compilers list.
Change default compiler and default compilers list.
JavaScript
bsd-2-clause
FredTingaud/quick-bench-front-end,FredTingaud/quick-bench-front-end,FredTingaud/quick-bench-front-end
javascript
## Code Before: const ALL_COMPILERS = ['clang-3.8', 'clang-3.9', 'clang-4.0', 'clang-5.0', 'clang-6.0', 'clang-7.0', 'clang-7.1', 'clang-8.0', 'clang-9.0', 'clang-10.0', 'clang-11.0', 'clang-12.0', 'gcc-5.5', 'gcc-6.4', 'gcc-6.5', 'gcc-7.2', 'gcc-7.3', 'gcc-7.4', 'gcc-7.5', 'gcc-8.1', 'gcc-8.2', 'gcc-8.3', ...
bc8843db00d7b2630fecb1380844627f4dd8ba76
.github/workflows/build-and-deploy.yml
.github/workflows/build-and-deploy.yml
name: Deploy each push on: push: branches: [master] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # - name: Build site # uses: docker://jekyll/builder:4.1.0 # with: # args: jekyll build - name: Archive built site uses: actio...
name: Deploy each push on: push: branches: [master] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout 🛎️ uses: actions/checkout@v2 with: persist-credentials: false # See https://github.com/actions/cache/blob/main/examples.md#node---yarn - name: Ge...
Change github action to build next.js site instead of jekyll
Change github action to build next.js site instead of jekyll
YAML
mit
teelahti/kerkesix.fi,teelahti/kerkesix.fi
yaml
## Code Before: name: Deploy each push on: push: branches: [master] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # - name: Build site # uses: docker://jekyll/builder:4.1.0 # with: # args: jekyll build - name: Archive built site ...
20512a52efc5bf3e2c850995792a67860837e557
CHANGELOG.md
CHANGELOG.md
1.0.0 ------ Initial release
1.0.1 ----- * Fix issue #6: Standard Log Appender handles missing exception argument. 1.0.0 ------ Initial release
Add fixed issue to change log.
Add fixed issue to change log.
Markdown
apache-2.0
garrypolley/canadarm,cerner/canadarm,loganom/canadarm,cerner/canadarm,loganom/canadarm,garrypolley/canadarm
markdown
## Code Before: 1.0.0 ------ Initial release ## Instruction: Add fixed issue to change log. ## Code After: 1.0.1 ----- * Fix issue #6: Standard Log Appender handles missing exception argument. 1.0.0 ------ Initial release
d244f1ebd089094e3d4c062a9b681426d610103f
src/AccordionItemBody/accordion-item-body.js
src/AccordionItemBody/accordion-item-body.js
// @flow import React from 'react'; import type { Node } from 'react'; import classNames from 'classnames'; import { inject, observer } from 'mobx-react'; import { type Store } from '../accordionStore/accordionStore'; const defaultProps = { className: 'accordion__body', hideBodyClassName: 'accordion__body--hi...
// @flow import React, { type ElementProps } from 'react'; import classNames from 'classnames'; import { inject, observer } from 'mobx-react'; import { type Store } from '../accordionStore/accordionStore'; const defaultProps = { className: 'accordion__body', hideBodyClassName: 'accordion__body--hidden', }; t...
Update AccordionItemBody to respect arbitrary user-defined props
Update AccordionItemBody to respect arbitrary user-defined props
JavaScript
mit
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
javascript
## Code Before: // @flow import React from 'react'; import type { Node } from 'react'; import classNames from 'classnames'; import { inject, observer } from 'mobx-react'; import { type Store } from '../accordionStore/accordionStore'; const defaultProps = { className: 'accordion__body', hideBodyClassName: 'acc...
01dd232947895052939d7279ba699565db6a8d77
services/value-stat-getter.js
services/value-stat-getter.js
'use strict'; var _ = require('lodash'); var P = require('bluebird'); var FilterParser = require('./filter-parser'); function ValueStatGetter(model, params, opts) { function getAggregateField() { // jshint sub: true return params['aggregate_field'] || '_id'; } this.perform = function () { return ne...
'use strict'; var _ = require('lodash'); var P = require('bluebird'); var FilterParser = require('./filter-parser'); function ValueStatGetter(model, params, opts) { function getAggregateField() { // jshint sub: true return params['aggregate_field'] || '_id'; } this.perform = function () { return ne...
Fix the value stat getter when no records available
Fix the value stat getter when no records available
JavaScript
mit
SeyZ/forest-express-mongoose
javascript
## Code Before: 'use strict'; var _ = require('lodash'); var P = require('bluebird'); var FilterParser = require('./filter-parser'); function ValueStatGetter(model, params, opts) { function getAggregateField() { // jshint sub: true return params['aggregate_field'] || '_id'; } this.perform = function ()...
c87d4577b720798a26ca1a731347790dcc0353eb
_config.yml
_config.yml
title: Stephen Melinyshyn email: stephen.melinyshyn@gmail.com description: > # this means to ignore newlines until "baseurl:" This is my personal site for my blog, information about what I'm working on, and more. These are things that are interesting to me and, possibly, to you. baseurl: "" # the subpath of y...
title: Stephen Melinyshyn email: stephen.melinyshyn@gmail.com description: > # this means to ignore newlines until "baseurl:" This is my personal site for my blog, information about what I'm working on, and more. These are things that are interesting to me and, possibly, to you. baseurl: "" # the subpath of y...
Move to Kramdown for Jekyll 3, removed redirect gem
Move to Kramdown for Jekyll 3, removed redirect gem
YAML
mit
Melinysh/melinysh.github.io,Melinysh/melinysh.github.io
yaml
## Code Before: title: Stephen Melinyshyn email: stephen.melinyshyn@gmail.com description: > # this means to ignore newlines until "baseurl:" This is my personal site for my blog, information about what I'm working on, and more. These are things that are interesting to me and, possibly, to you. baseurl: "" # ...
43a1214a1cc0e92eeabf1ee0b6fd73d7929b762c
builder/templates/modules/default.all.all.xul.tpl
builder/templates/modules/default.all.all.xul.tpl
<hbox flex="1"> <stack width="250"> <vbox flex="1" style="opacity:0.99"> <cnavigationtree flex="1" id="navigationTree"/> </vbox> <chelppanel hidden="true" flex="1" /> </stack> <splitter collapse="before"> <wsplitterbutton /> </splitter> <deck flex="1" anonid="mainViewDeck"> <vbox flex="1" anonid="docu...
<hbox flex="1"> <stack width="250"> <vbox flex="1" style="opacity:0.99"> <cnavigationtree flex="1" id="navigationTree"/> </vbox> <chelppanel hidden="true" flex="1" /> </stack> <splitter collapse="before"> <wsplitterbutton /> </splitter> <deck flex="1" anonid="mainViewDeck"> <vbox flex="1" anonid="docu...
Remove old rsc tree in the perspective.default.all.all.xml file generated by add-module.
[CLEAN] Remove old rsc tree in the perspective.default.all.all.xml file generated by add-module.
Smarty
agpl-3.0
RBSWebFactory/framework,RBSChange/framework,RBSChange/framework,RBSWebFactory/framework,RBSWebFactory/framework,RBSChange/framework
smarty
## Code Before: <hbox flex="1"> <stack width="250"> <vbox flex="1" style="opacity:0.99"> <cnavigationtree flex="1" id="navigationTree"/> </vbox> <chelppanel hidden="true" flex="1" /> </stack> <splitter collapse="before"> <wsplitterbutton /> </splitter> <deck flex="1" anonid="mainViewDeck"> <vbox flex=...
d317d378c269805b417096cce50174c1e7c78a62
metadata/org.dynalogin.android.txt
metadata/org.dynalogin.android.txt
Category:System License:GPLv3+ Web Site:http://www.dynalogin.org Source Code:https://github.com/dynalogin/dynalogin-android Issue Tracker:https://github.com/dynalogin/dynalogin-android/issues Summary:Soft-token for two-factor HOTP authentication Description: Soft-token implementing the HOTP algorithm from the Open Aut...
Category:System License:GPLv3+ Web Site:http://www.dynalogin.org Source Code:https://github.com/dynalogin/dynalogin-android Issue Tracker:https://github.com/dynalogin/dynalogin-android/issues Summary:Soft-token for two-factor HOTP authentication Description: Soft-token implementing the HOTP algorithm from the Open Aut...
Set current version for dynalogin
Set current version for dynalogin
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Category:System License:GPLv3+ Web Site:http://www.dynalogin.org Source Code:https://github.com/dynalogin/dynalogin-android Issue Tracker:https://github.com/dynalogin/dynalogin-android/issues Summary:Soft-token for two-factor HOTP authentication Description: Soft-token implementing the HOTP algorithm f...
6d23f3bd1ccd45a6e739264e8d041282e6baaf0b
hassio/dock/util.py
hassio/dock/util.py
"""HassIO docker utilitys.""" import re from ..const import ARCH_AARCH64, ARCH_ARMHF, ARCH_I386, ARCH_AMD64 RESIN_BASE_IMAGE = { ARCH_ARMHF: "resin/armhf-alpine:3.5", ARCH_AARCH64: "resin/aarch64-alpine:3.5", ARCH_I386: "resin/i386-alpine:3.5", ARCH_AMD64: "resin/amd64-alpine:3.5", } TMPL_IMAGE = re...
"""HassIO docker utilitys.""" import re from ..const import ARCH_AARCH64, ARCH_ARMHF, ARCH_I386, ARCH_AMD64 RESIN_BASE_IMAGE = { ARCH_ARMHF: "homeassistant/armhf-base:latest", ARCH_AARCH64: "homeassistant/aarch64-base:latest", ARCH_I386: "homeassistant/i386-base:latest", ARCH_AMD64: "homeassistant/am...
Use our new base image
Use our new base image
Python
bsd-3-clause
pvizeli/hassio,pvizeli/hassio
python
## Code Before: """HassIO docker utilitys.""" import re from ..const import ARCH_AARCH64, ARCH_ARMHF, ARCH_I386, ARCH_AMD64 RESIN_BASE_IMAGE = { ARCH_ARMHF: "resin/armhf-alpine:3.5", ARCH_AARCH64: "resin/aarch64-alpine:3.5", ARCH_I386: "resin/i386-alpine:3.5", ARCH_AMD64: "resin/amd64-alpine:3.5", } ...
44ccf57e62f60454a40dfbbf61d213011664e2cb
spec/models/professor_spec.rb
spec/models/professor_spec.rb
require 'rails_helper' RSpec.describe Professor, type: :model do describe '::TBA', slow: true do it 'creates a TBA record when called the first time' do Professor.where(name: 'TBA').destroy_all expect { Professor.TBA }.to change { Professor.count }.by(1) end it 'does not create a new record ...
require 'rails_helper' RSpec.describe Professor, type: :model do describe '::TBA', slow: true do it 'creates a TBA record when called the first time' do safe_delete_professors('TBA') expect { Professor.TBA }.to change { Professor.count }.by(1) end it 'does not create a new record when it has...
Update professor spec to use safe deletion
Update professor spec to use safe deletion
Ruby
mit
hacsoc/the_jolly_advisor,hacsoc/the_jolly_advisor,hacsoc/the_jolly_advisor
ruby
## Code Before: require 'rails_helper' RSpec.describe Professor, type: :model do describe '::TBA', slow: true do it 'creates a TBA record when called the first time' do Professor.where(name: 'TBA').destroy_all expect { Professor.TBA }.to change { Professor.count }.by(1) end it 'does not crea...
fe40da77375cdc3ef6e500857f8d5cadc1dfdbe8
lib/active_record_where_assoc.rb
lib/active_record_where_assoc.rb
require_relative "active_record_where_assoc/version" require "active_record" module ActiveRecordWhereAssoc # Default options for the gem. Meant to be modified in place by external code def self.default_options @default_options ||= { ignore_limit: false, ne...
require_relative "active_record_where_assoc/version" require "active_record" module ActiveRecordWhereAssoc # Default options for the gem. Meant to be modified in place by external code, such as in # an initializer. # Ex: # ActiveRecordWhereAssoc[:ignore_limit] = true # # A description for each can be fo...
Add information about the default_options directly in the code
Add information about the default_options directly in the code
Ruby
mit
MaxLap/activerecord_where_assoc,MaxLap/activerecord_where_assoc
ruby
## Code Before: require_relative "active_record_where_assoc/version" require "active_record" module ActiveRecordWhereAssoc # Default options for the gem. Meant to be modified in place by external code def self.default_options @default_options ||= { ignore_limit: false, ...
eec3a4e10bda946679c333e601268efc6dc5e1d4
source/Tabs.js
source/Tabs.js
enyo.kind({ name: "bootstrap.TabHolder", handlers: { onNavItemClicked: "showTabContent" }, showTabContent: function(inSender, inEvent){ this.waterfall("showTabContent", inEvent); } }); enyo.kind({ name: "bootstrap.TabContent", classes: "tab-content", published: { active: false }, handle...
enyo.kind({ name: "bootstrap.TabHolder", handlers: { onNavItemClicked: "showTabContent" }, showTabContent: function(inSender, inEvent){ this.waterfall("showTabContent", inEvent); } }); enyo.kind({ name: "bootstrap.TabContent", classes: "tab-content", published: { active: false }, handle...
Add a waterfalled event on active tab change
Add a waterfalled event on active tab change This allows us to do extra bullshit since Enyo doesn't tend to like being shown/hidden.
JavaScript
mit
pangea/bootstrap-enyo,pangea/bootstrap-enyo
javascript
## Code Before: enyo.kind({ name: "bootstrap.TabHolder", handlers: { onNavItemClicked: "showTabContent" }, showTabContent: function(inSender, inEvent){ this.waterfall("showTabContent", inEvent); } }); enyo.kind({ name: "bootstrap.TabContent", classes: "tab-content", published: { active: fal...
27ba1a9363fd5f7a11b8356177e0a817d1f8b0da
app/controllers/webmail/cache_settings_controller.rb
app/controllers/webmail/cache_settings_controller.rb
class Webmail::CacheSettingsController < ApplicationController include Webmail::BaseFilter menu_view false private def set_crumbs @crumbs << [t("webmail.settings.cache") , { action: :show } ] @webmail_other_account_path = :webmail_cache_setting_path end public def show # render end d...
class Webmail::CacheSettingsController < ApplicationController include Webmail::BaseFilter menu_view false private def set_crumbs @crumbs << [t("webmail.settings.cache") , { action: :show } ] @webmail_other_account_path = :webmail_cache_setting_path end public def show # render end d...
Move items.delete_all out of the conditional.
[rubocop] C: Move items.delete_all out of the conditional.
Ruby
mit
mizoki/shirasagi,itowtips/shirasagi,sunny4381/shirasagi,MasakiInaya/shirasagi,ShinjiTanimoto/shirasagi,shirasagi/ss-handson,shirasagi/ss-handson,tany/ss,sunny4381/shirasagi,itowtips/shirasagi,sunny4381/shirasagi,shirasagi/ss-handson,MasakiInaya/shirasagi,ShinjiTanimoto/shirasagi,shirasagi/shirasagi,ShinjiTanimoto/shira...
ruby
## Code Before: class Webmail::CacheSettingsController < ApplicationController include Webmail::BaseFilter menu_view false private def set_crumbs @crumbs << [t("webmail.settings.cache") , { action: :show } ] @webmail_other_account_path = :webmail_cache_setting_path end public def show # r...
763fa5b58d82b23426d4e7296cde8b7c4eba2be4
src/Socket/AdapterSocket/DirectAdapter.swift
src/Socket/AdapterSocket/DirectAdapter.swift
import Foundation import CocoaLumberjackSwift /// This adapter connects to remote directly. class DirectAdapter: AdapterSocket { /// If this is set to `false`, then the IP address will be resolved by system. var resolveHost = false /** Connect to remote according to the `ConnectRequest`. - para...
import Foundation import CocoaLumberjackSwift /// This adapter connects to remote directly. class DirectAdapter: AdapterSocket { /// If this is set to `false`, then the IP address will be resolved by system. var resolveHost = false /** Connect to remote according to the `ConnectRequest`. - para...
Fix that delegate is not called
Fix that delegate is not called
Swift
bsd-3-clause
zhuhaow/NEKit,playstones/NEKit,playstones/NEKit,playstones/NEKit,zhuhaow/NEKit
swift
## Code Before: import Foundation import CocoaLumberjackSwift /// This adapter connects to remote directly. class DirectAdapter: AdapterSocket { /// If this is set to `false`, then the IP address will be resolved by system. var resolveHost = false /** Connect to remote according to the `ConnectReques...
e209af7560d16bdce6f70c161dbe6a5a042a6f55
app/containers/IllustPreview/IllustPreview.js
app/containers/IllustPreview/IllustPreview.js
// @flow import * as React from 'react' import styled from 'styled-components' import LazyImg from './LazyImg' type Props = { from: string, original: string, width: number, height: number, isLoaded: boolean, onLoad: () => void, onUnLoad: () => void, onClose: () => void, } export default class IllustPr...
// @flow import * as React from 'react' import styled from 'styled-components' import LazyImg from './LazyImg' type Props = { from: string, original: string, width: number, height: number, isLoaded: boolean, onLoad: () => void, onUnLoad: () => void, onClose: () => void, } export default class IllustPr...
Implement the function to close modal with ESC key
Implement the function to close modal with ESC key
JavaScript
mit
akameco/PixivDeck,akameco/PixivDeck
javascript
## Code Before: // @flow import * as React from 'react' import styled from 'styled-components' import LazyImg from './LazyImg' type Props = { from: string, original: string, width: number, height: number, isLoaded: boolean, onLoad: () => void, onUnLoad: () => void, onClose: () => void, } export defaul...
7060f26ddd3b944fa2d5a9d8c096c4d8284eeecd
create_mysql_admin_user.sh
create_mysql_admin_user.sh
/usr/bin/mysqld_safe > /dev/null 2>&1 & RET=1 while [[ RET -ne 0 ]]; do echo "=> Waiting for confirmation of MySQL service startup" sleep 5 mysql -uroot -e "status" > /dev/null 2>&1 RET=$? done PASS=${MYSQL_PASS:-$(pwgen -s 12 1)} _word=$( [ ${MYSQL_PASS} ] && echo "preset" || echo "random" ) echo "=...
/usr/bin/mysqld_safe > /dev/null 2>&1 & RET=1 while [[ RET -ne 0 ]]; do echo "=> Waiting for confirmation of MySQL service startup" sleep 5 mysql -uroot -e "status" > /dev/null 2>&1 RET=$? done PASS=${MYSQL_PASS:-$(pwgen -s 12 1)} _word=$( [ ${MYSQL_PASS} ] && echo "preset" || echo "random" ) echo "=...
Support setting up the mysql DB with some initial data.
Support setting up the mysql DB with some initial data.
Shell
apache-2.0
qzsnitz/lamp,CodeBuffet/lamp-with-php5,dincaus/test_repo_2,qzsnitz/tenxcloud,tutumcloud/lamp
shell
## Code Before: /usr/bin/mysqld_safe > /dev/null 2>&1 & RET=1 while [[ RET -ne 0 ]]; do echo "=> Waiting for confirmation of MySQL service startup" sleep 5 mysql -uroot -e "status" > /dev/null 2>&1 RET=$? done PASS=${MYSQL_PASS:-$(pwgen -s 12 1)} _word=$( [ ${MYSQL_PASS} ] && echo "preset" || echo "r...
fc7d6fc961a83f8d90b7295b1e00a326e76a7889
.travis.yml
.travis.yml
language: python python: - '2.7' - '3.3' env: global: secure: |- EGaBZsH4N0En+rJBbsv+D/Y6nSuvYcMcqEfgQE62iEgzt5wXLAto5vV0SfoK uE1O+K3p5PSYeYL/z0z8jrloncTCY26bFB79p8cscZvD2aGZCdQgTHLW/inq PYkqxArdjIUU4Pe6yxIIS4sZv0jHA/CcVQAGa4KwMDiaVQA5/Hc= script: python setup.py run_te...
language: python python: - '2.7' - '3.3' env: global: - APIKEY=NkExMzEzRDYzQ0EyRTA5NEJCQTJDMUY1N0IwNDk4QkQ= script: python setup.py run_tests -k $(echo $APIKEY|base64 -d) notifications: email: on_success: never on_failure: always irc: channels: - "chat.fre...
Use non-encrypted API key because pull requests are good.
Use non-encrypted API key because pull requests are good. Sorry Valve, but this is simply not fair. Appreciating high quality software as I know you do, I'm sure you'll understand why this is necessary. Minimal encoding is done to make sure the key isn't directly searchable
YAML
isc
miedzinski/steamodd,Lagg/steamodd
yaml
## Code Before: language: python python: - '2.7' - '3.3' env: global: secure: |- EGaBZsH4N0En+rJBbsv+D/Y6nSuvYcMcqEfgQE62iEgzt5wXLAto5vV0SfoK uE1O+K3p5PSYeYL/z0z8jrloncTCY26bFB79p8cscZvD2aGZCdQgTHLW/inq PYkqxArdjIUU4Pe6yxIIS4sZv0jHA/CcVQAGa4KwMDiaVQA5/Hc= script: python...
a053401a50daeacd2141152b4fb25151d152efe1
templates/studygroups/facilitator_signup.html
templates/studygroups/facilitator_signup.html
{% extends 'base.html' %} {% load crispy_forms_tags %} {% load i18n %} {% url 'studygroups_login_redirect' as login_url %} {% block content %} <div class="container learning-circle-signup"> <div class="row"> <div class="col-md-12 col-sm-12"> <h2>{% trans "Create an account" %}</h2> {% blocktrans %}Or...
{% extends 'base.html' %} {% load crispy_forms_tags %} {% load i18n %} {% url 'studygroups_login_redirect' as login_url %} {% block content %} <div class="container learning-circle-signup"> <div class="row"> <div class="col-md-12 col-sm-12"> <h2>{% trans "Become a facilitator" %}</h2> {% blocktrans %...
Update copy on signup page
Update copy on signup page
HTML
mit
p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles
html
## Code Before: {% extends 'base.html' %} {% load crispy_forms_tags %} {% load i18n %} {% url 'studygroups_login_redirect' as login_url %} {% block content %} <div class="container learning-circle-signup"> <div class="row"> <div class="col-md-12 col-sm-12"> <h2>{% trans "Create an account" %}</h2> {%...
5ea38c63bf313e003b05220dcc172d5576bc3d8c
src/main/php/xp/runtime/Evaluate.class.php
src/main/php/xp/runtime/Evaluate.class.php
<?php namespace xp\runtime; use util\cmd\Console; /** * Evaluates sourcecode * */ class Evaluate extends \lang\Object { /** * Main * * @param string[] args */ public static function main(array $args) { // Read sourcecode from STDIN if no further argument is given if (0 === sizeof($arg...
<?php namespace xp\runtime; use util\cmd\Console; /** * Evaluates sourcecode * */ class Evaluate extends \lang\Object { /** * Main * * @param string[] args */ public static function main(array $args) { $argc= sizeof($args); // Read sourcecode from STDIN if no further argument is given...
Support piping code with PHP open tag
Support piping code with PHP open tag
PHP
bsd-3-clause
johannes85/core
php
## Code Before: <?php namespace xp\runtime; use util\cmd\Console; /** * Evaluates sourcecode * */ class Evaluate extends \lang\Object { /** * Main * * @param string[] args */ public static function main(array $args) { // Read sourcecode from STDIN if no further argument is given if (0...
32dbe9375c94b59208275ae0dad42dbadb95081c
core/bin/ci.sh
core/bin/ci.sh
cd `dirname $0` cd .. ./script/set-status.sh "$GIT_COMMIT" pending "$BUILD_URL" "$BUILD_TAG" > github_pending_response.json export RUBY_HEAP_MIN_SLOTS=1000000 export RUBY_HEAP_SLOTS_INCREMENT=1000000 export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 export RUBY_GC_MALLOC_LIMIT=100000000 export RUBY_HEAP_FREE_MIN=500000 rm -f ...
cd `dirname $0` cd .. rm -f tmp/*.junit.xml ./script/set-status.sh "$GIT_COMMIT" pending "$BUILD_URL" "$BUILD_TAG" > github_pending_response.json export RUBY_HEAP_MIN_SLOTS=1000000 export RUBY_HEAP_SLOTS_INCREMENT=1000000 export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 export RUBY_GC_MALLOC_LIMIT=100000000 export RUBY_HEAP_...
Delete old unit test reports before build to ensure we don't keep trash.
Delete old unit test reports before build to ensure we don't keep trash.
Shell
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
shell
## Code Before: cd `dirname $0` cd .. ./script/set-status.sh "$GIT_COMMIT" pending "$BUILD_URL" "$BUILD_TAG" > github_pending_response.json export RUBY_HEAP_MIN_SLOTS=1000000 export RUBY_HEAP_SLOTS_INCREMENT=1000000 export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 export RUBY_GC_MALLOC_LIMIT=100000000 export RUBY_HEAP_FREE_MI...
ff8960bd40da52d91d217e7ede2b125b392e08ce
README.md
README.md
ipyaladin =============================== Description ----------- A bridge between Jupyter and Aladin Lite, enabling interactive sky visualization in IPython notebooks. ![ipyaladin example](ipyaladin-screenshot.png) With a couple of lines, you can display Aladin Lite, center it on the target of your choice, and ove...
ipyaladin =============================== Description ----------- A bridge between Jupyter and Aladin Lite, enabling interactive sky visualization in IPython notebooks. ![ipyaladin example](ipyaladin-screenshot.png) With a couple of lines, you can display Aladin Lite, center it on the target of your choice, and ove...
Add info on conda package
Add info on conda package
Markdown
bsd-3-clause
cds-astro/ipyaladin,cds-astro/ipyaladin,cds-astro/ipyaladin
markdown
## Code Before: ipyaladin =============================== Description ----------- A bridge between Jupyter and Aladin Lite, enabling interactive sky visualization in IPython notebooks. ![ipyaladin example](ipyaladin-screenshot.png) With a couple of lines, you can display Aladin Lite, center it on the target of your...
0ddc89d0f54ef6c97c492cf790e8cd50abfd8563
.hammerspoon/init.lua
.hammerspoon/init.lua
require 'expandmode' require 'movemode' local screenmon = nil local super = {'ctrl', 'alt', 'cmd', 'shift'} function screensChangedCallback() local screen1 = hs.screen.allScreens()[1]:name() if screen1 == 'Color LCD' then hs.notify.show('Switched KWM modes', '', 'Switched to floating window mode',''):withdraw...
require 'expandmode' require 'movemode' local super = {'ctrl', 'alt', 'cmd', 'shift'} function screensChangedCallback() local screens = hs.screen.allScreens() if #screens < 2 then hs.notify.show('Switched KWM modes', '', 'Switched to floating window mode',''):withdraw() hs.execute('kwmc space -t float', t...
Refactor screenmon to work better with multiscreen
Refactor screenmon to work better with multiscreen
Lua
mit
paradox460/.dotfiles,paradox460/.dotfiles,paradox460/.dotfiles,paradox460/.dotfiles
lua
## Code Before: require 'expandmode' require 'movemode' local screenmon = nil local super = {'ctrl', 'alt', 'cmd', 'shift'} function screensChangedCallback() local screen1 = hs.screen.allScreens()[1]:name() if screen1 == 'Color LCD' then hs.notify.show('Switched KWM modes', '', 'Switched to floating window mo...
b7d808b80c61756cc310ed522193f6b66b5b6230
src/operations/create.js
src/operations/create.js
"use strict"; const Environment = require('../environment/environment'); const Loader = require("../terminal-utils/async_loader"); module.exports = { description : "Create new environment and install drupal in it.", run : () => { let loader; Environment.create(['php', 'web', 'database']).then((env) => { ...
"use strict"; const Environment = require('../environment/environment'); const Loader = require("../terminal-utils/async_loader"); module.exports = { description : "Create new environment and install drupal in it.", run : () => { let loader; Environment.create({projectName: "test"}, ['php', 'web', 'datab...
Test for getting container service ip.
Test for getting container service ip.
JavaScript
mit
archfz/drup,archfz/drup
javascript
## Code Before: "use strict"; const Environment = require('../environment/environment'); const Loader = require("../terminal-utils/async_loader"); module.exports = { description : "Create new environment and install drupal in it.", run : () => { let loader; Environment.create(['php', 'web', 'database'])....
2a840c50664084830f79ffe39ae468030d4a851b
devil/docs/persistent_device_list.md
devil/docs/persistent_device_list.md
<!-- Copyright 2016 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> # Devil: Persistent Device List ## What is it? A persistent device list that stores all expected devices between builds. It is used by the per...
<!-- Copyright 2016 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> # Devil: Persistent Device List ## What is it? A persistent device list that stores all expected devices between builds. It is used by non-swa...
Update docs on persistent device list
[devil] Update docs on persistent device list Remove references to the obsoleted DynamicPerfTests; the main remaining client is on the devuce_status.py script, so mention that one instead. Bug: chromium:770700 Change-Id: I840424cede7308af1f5190ec2092363f30bf4268 Reviewed-on: https://chromium-review.googlesource.com/7...
Markdown
bsd-3-clause
catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult
markdown
## Code Before: <!-- Copyright 2016 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> # Devil: Persistent Device List ## What is it? A persistent device list that stores all expected devices between builds. It is...
4859633e5338f0d7100b2fba781f1f5e17c7efea
src/test/php/net/xp_framework/unittest/io/streams/MemoryOutputStreamTest.class.php
src/test/php/net/xp_framework/unittest/io/streams/MemoryOutputStreamTest.class.php
<?php namespace net\xp_framework\unittest\io\streams; use unittest\TestCase; use io\streams\MemoryOutputStream; /** * Unit tests for streams API * * @see xp://io.streams.OutputStream * @purpose Unit test */ class MemoryOutputStreamTest extends TestCase { protected $out= null; /** * Setup method. C...
<?php namespace net\xp_framework\unittest\io\streams; use io\streams\MemoryOutputStream; /** * Unit tests for streams API * * @see xp://io.streams.OutputStream * @see xp://lang.Closeable#close */ class MemoryOutputStreamTest extends \unittest\TestCase { private $out; /** * Setup method. Creates the f...
Adjust to new unittest coding standards
QA: Adjust to new unittest coding standards
PHP
bsd-3-clause
johannes85/core
php
## Code Before: <?php namespace net\xp_framework\unittest\io\streams; use unittest\TestCase; use io\streams\MemoryOutputStream; /** * Unit tests for streams API * * @see xp://io.streams.OutputStream * @purpose Unit test */ class MemoryOutputStreamTest extends TestCase { protected $out= null; /** *...
66b88beec05a0bf6762f4c92a8646dfb732a6ed6
ifs-web-service/ifs-front-door-service/src/test/java/org/innovateuk/ifs/competition/status/PublicContentStatusTextTest.java
ifs-web-service/ifs-front-door-service/src/test/java/org/innovateuk/ifs/competition/status/PublicContentStatusTextTest.java
package org.innovateuk.ifs.competition.status; import org.junit.Assert; import org.junit.Test; public class PublicContentStatusTextTest { PublicContentStatusText publicContentStatusText; @Test public void getPredicate() throws Exception { } @Test public void getHeader() throws Exception { ...
package org.innovateuk.ifs.competition.status; import org.junit.Test; import static org.junit.Assert.assertEquals; public class PublicContentStatusTextTest { PublicContentStatusText publicContentStatusText; @Test public void getHeader() throws Exception { assertEquals("Closing soon", publicCont...
Update to PublicContentStatusText unit test.
Update to PublicContentStatusText unit test.
Java
mit
InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service
java
## Code Before: package org.innovateuk.ifs.competition.status; import org.junit.Assert; import org.junit.Test; public class PublicContentStatusTextTest { PublicContentStatusText publicContentStatusText; @Test public void getPredicate() throws Exception { } @Test public void getHeader() thro...
3ea61d0ca39f8966877e513f76588171d35ab4b4
metadata/net.moasdawiki.app.yml
metadata/net.moasdawiki.app.yml
Categories: - Writing License: GPL-3.0-or-later WebSite: https://moasdawiki.net/ SourceCode: https://gitlab.com/moasdawiki/moasdawiki-app Changelog: https://gitlab.com/moasdawiki/moasdawiki-app/blob/HEAD/CHANGELOG.md AutoName: MoasdaWiki App RepoType: git Repo: https://gitlab.com/moasdawiki/moasdawiki-app.git Buil...
Categories: - Writing License: GPL-3.0-or-later WebSite: https://moasdawiki.net/ SourceCode: https://gitlab.com/moasdawiki/moasdawiki-app Changelog: https://gitlab.com/moasdawiki/moasdawiki-app/blob/HEAD/CHANGELOG.md AutoName: MoasdaWiki App RepoType: git Repo: https://gitlab.com/moasdawiki/moasdawiki-app.git Buil...
Update MoasdaWiki App to 2.2.1.1 (17)
Update MoasdaWiki App to 2.2.1.1 (17)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Writing License: GPL-3.0-or-later WebSite: https://moasdawiki.net/ SourceCode: https://gitlab.com/moasdawiki/moasdawiki-app Changelog: https://gitlab.com/moasdawiki/moasdawiki-app/blob/HEAD/CHANGELOG.md AutoName: MoasdaWiki App RepoType: git Repo: https://gitlab.com/moasdawiki/moasdawi...
178acf8b65f0caf17be68e942d92091d31559e0d
data/transition-sites/dclg_pg.yml
data/transition-sites/dclg_pg.yml
--- site: dclg_pg whitehall_slug: department-for-communities-and-local-government redirection_date: 31st August 2014 homepage: https://www.gov.uk/government/consultations/review-of-planning-practice-guidance tna_timestamp: 20140701125403 host: planningguidance.readandcomment.com
--- site: dclg_pg whitehall_slug: department-for-communities-and-local-government redirection_date: 31st August 2014 homepage: https://www.gov.uk/government/consultations/review-of-planning-practice-guidance tna_timestamp: 20140701125403 host: planningguidance.readandcomment.com global: =301 https://www.gov.uk/governme...
Add global config to DCLG planning guidance consultation site
Add global config to DCLG planning guidance consultation site
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: dclg_pg whitehall_slug: department-for-communities-and-local-government redirection_date: 31st August 2014 homepage: https://www.gov.uk/government/consultations/review-of-planning-practice-guidance tna_timestamp: 20140701125403 host: planningguidance.readandcomment.com ## Instruction: Add glo...
40ee7aa3a6e51a8ebcf61b2a5389304bffb0d489
sample/src/debug/res/values/google_maps_api.xml
sample/src/debug/res/values/google_maps_api.xml
<resources> <!-- TODO: Before you run your application, you need a Google Maps API key. To get one, follow this link, follow the directions and press "Create" at the end: https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=21:D3:CF:16:E5:9E:5B:C9:...
<resources> <string name="google_maps_key" translatable="false" templateMergeStrategy="preserve"> AIzaSyAmEZPlctScOvBNaDuXp1MSWQkLczDW60c </string> </resources>
Set google maps api key
Set google maps api key
XML
apache-2.0
zsoltk/overpasser,zsoltk/overpasser
xml
## Code Before: <resources> <!-- TODO: Before you run your application, you need a Google Maps API key. To get one, follow this link, follow the directions and press "Create" at the end: https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=21:D3:CF...
603e378237f0cd627d10330b6a5ffaadae01bf97
.travis.yml
.travis.yml
language: node_js node_js: - '0.10' script: - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then grunt ci; else grunt ci-pull; fi' env: global: - secure: Kt+5IJDJRVwr28xRnmR5YDsJceXDcDR21/JUBfk6DYFixPbIq7LCPnZUmiSZQs8akU95ucXwB5hsirUAdEhXdYKilec6go70lticVlZBLy8IdJ+Di1uPwMOeMHvalC2P0woIRJSMzP8u5E+e+5ASggTjsXID7/p1...
language: node_js node_js: - '0.10' sudo: false script: - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then grunt ci; else grunt ci-pull; fi' env: global: - secure: Kt+5IJDJRVwr28xRnmR5YDsJceXDcDR21/JUBfk6DYFixPbIq7LCPnZUmiSZQs8akU95ucXwB5hsirUAdEhXdYKilec6go70lticVlZBLy8IdJ+Di1uPwMOeMHvalC2P0woIRJSMzP8u5E+e+5AS...
Revert "test if sudo:false is why saucelabs fails"
Revert "test if sudo:false is why saucelabs fails" This reverts commit 05b138a1a4bcb2ed7c820bdd92556973ac365a24.
YAML
apache-2.0
kkdey/dc.js,vladimirbuskin/dc.js,gazal-k/dc.js,TheDataShed/dc.js,gazal-k/dc.js,vladimirbuskin/dc.js,aaronhoffman/dc.js,ruhley/dc.js,plingrat/dc.js,m4s0/dc.js,dc-js/dc.js,aaronhoffman/dc.js,remyyounes/dc.js,mtraynham/dc.js,maackle/dc.js,Sweetymeow/dc.js,dgerber/dc.js,remyyounes/dc.js,dc-js/dc.js,aaronhoffman/dc.js,liang...
yaml
## Code Before: language: node_js node_js: - '0.10' script: - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then grunt ci; else grunt ci-pull; fi' env: global: - secure: Kt+5IJDJRVwr28xRnmR5YDsJceXDcDR21/JUBfk6DYFixPbIq7LCPnZUmiSZQs8akU95ucXwB5hsirUAdEhXdYKilec6go70lticVlZBLy8IdJ+Di1uPwMOeMHvalC2P0woIRJSMzP8u5E+e...
3483728ed550201f0492199ae0854ba5f5ed0993
.travis.yml
.travis.yml
language: node_js sudo: false matrix: SENECA_VER=@1.2.0 SENECA_VER=@1.4.0 SENECA_VER=@2.0.x node_js: - '5' - '4' - '0.12' - '0.10' addons: postgresql: "9.4" services: - postgresql before_script: - psql -U postgres -f docker/dbschema.sql
language: node_js sudo: false env: - SENECA_VER=@1.2.0 - SENECA_VER=@1.4.0 - SENECA_VER=@2.0.x node_js: - '5' - '4' - '0.12' - '0.10' addons: postgresql: "9.4" services: - postgresql before_script: - psql -U postgres -f docker/dbschema.sql
Fix build matrix so that Travis CI build runs
Fix build matrix so that Travis CI build runs matrix needs to be an array. Also, construct 3x4 matrix
YAML
mit
senecajs/seneca-postgres-store,marianr/seneca-postgres-store,BloomBoard-Research/seneca-postgresql-store
yaml
## Code Before: language: node_js sudo: false matrix: SENECA_VER=@1.2.0 SENECA_VER=@1.4.0 SENECA_VER=@2.0.x node_js: - '5' - '4' - '0.12' - '0.10' addons: postgresql: "9.4" services: - postgresql before_script: - psql -U postgres -f docker/dbschema.sql ## Instruction: Fix build matrix so that ...
520d533eb372c0785550358731f05b53e13a9df0
app/views/home/_applications.html.erb
app/views/home/_applications.html.erb
<div class="applications"> <header> Applications <a href="#">add</a> </header> <!-- <% if current_subject.applications.blank? %> --> <div class="first-time-message"> <h3> You dont have any application. </h3> Wana like create your first application? </div> <!-- <% el...
<div class="applications"> <header> Applications <a href="#">add</a> </header> <% if current_subject.applications.blank? %> <div class="first-time-message"> <h3> You dont have any application. </h3> Wana like create your first application? </div> <% else %> <%= r...
Remove comments from application list
Remove comments from application list
HTML+ERB
agpl-3.0
Plexical/fi-ware-idm,ging/fi-ware-idm-deprecated,Plexical/fi-ware-idm,ging/fi-ware-idm-deprecated,ging/fi-ware-idm-deprecated
html+erb
## Code Before: <div class="applications"> <header> Applications <a href="#">add</a> </header> <!-- <% if current_subject.applications.blank? %> --> <div class="first-time-message"> <h3> You dont have any application. </h3> Wana like create your first application? </d...
c64c39e55431e9eca4c2e24ed86574f2f10cd259
docker-compose.yaml
docker-compose.yaml
version: "3" services: mongo: image: mongo:latest ports: - "27017" volumes: - ./docker/mongo/data:/data/db node-server: build: context: . dockerfile: "./docker/nodejs.dockerfile" volumes: - "./app:/src/app" ports: - "3031:3001" depends_on: - ...
version: "3" services: mongo: image: mongo:latest ports: - "27017" volumes: - ./docker/mongo/data:/data/db node-server: build: context: . dockerfile: "./docker/nodejs.dockerfile" volumes: - "./app:/src/app" ports: - "3031:3001" depends_on: - ...
Use nodemon for client app.
Use nodemon for client app.
YAML
mit
highpine/highpine,highpine/highpine,highpine/highpine
yaml
## Code Before: version: "3" services: mongo: image: mongo:latest ports: - "27017" volumes: - ./docker/mongo/data:/data/db node-server: build: context: . dockerfile: "./docker/nodejs.dockerfile" volumes: - "./app:/src/app" ports: - "3031:3001" depe...
73cdd76971ea14909317069125d746c9420809f1
package.json
package.json
{ "name": "fabric", "description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", "homepage": "http://fabricjs.com/", "version": "1.4.4", "author": "Juriy Zaytsev <kangax@gmail.com>", "keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", ...
{ "name": "fabric", "description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", "homepage": "http://fabricjs.com/", "version": "1.4.4", "author": "Juriy Zaytsev <kangax@gmail.com>", "keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", ...
Add jscs as a dev dependency
Add jscs as a dev dependency
JSON
mit
kabab/fabric.js,jacobmarshall/fabric.js,rockmacaca/fabric.js,jcppman/fabric.js,terrancesnyder/fabric.js,dungntnew/fabric.js,fengyh/fabric.js,mcanthony/fabric.js,fredrikekelund/fabric.js,timkendall/fabric.js,zerin108/fabric.js,nibynool/fabric.js,kannans/fabric.js,inssein/fabric.js,kabab/fabric.js,zerin108/fabric.js,xron...
json
## Code Before: { "name": "fabric", "description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.", "homepage": "http://fabricjs.com/", "version": "1.4.4", "author": "Juriy Zaytsev <kangax@gmail.com>", "keywords": ["canvas", "graphic", "graphics", "SVG", "node-can...
0a028d4a3fb1cf208b89aece7212c5e25ab44781
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
Thank you for contributing to Apache UIMA uimaFIT. In order to streamline the review of the contribution we ask you to ensure the following steps have been taken: ### For all changes: - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message? Please include a link to the JIRA ...
<!-- Thank you for contributing to Apache UIMA uimaFIT. In order to streamline the review of the contribution we ask you to ensure the following steps have been taken: --> **JIRA Ticket:** https://issues.apache.org/jira/browse/UIMA-XXXX ### For all changes: - [ ] PR title starts with `[UIMA-XXXX]`. - [ ] Commit mess...
Add contribution guidelines and PR template
[UIMA-5810] Add contribution guidelines and PR template - Trimmed down the PR template to what is necessary
Markdown
apache-2.0
apache/uima-uimafit,apache/uima-uimafit,apache/uima-uimafit
markdown
## Code Before: Thank you for contributing to Apache UIMA uimaFIT. In order to streamline the review of the contribution we ask you to ensure the following steps have been taken: ### For all changes: - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message? Please include a l...
bce54ce630a8306e66a215252597ee8c76793b44
quickgo-webapp/src/main/java/uk/ac/ebi/quickgo/webservice/model/EvidenceTypeJson.java
quickgo-webapp/src/main/java/uk/ac/ebi/quickgo/webservice/model/EvidenceTypeJson.java
package uk.ac.ebi.quickgo.webservice.model; /** * @Author Tony Wardell * Date: 05/03/2015 * Time: 16:58 * Created with IntelliJ IDEA. */ public class EvidenceTypeJson { private String ecoTerm; private String value; public void setKey(String ecoTerm) { this.ecoTerm = ecoTerm; } public Stri...
package uk.ac.ebi.quickgo.webservice.model; /** * @Author Tony Wardell * Date: 05/03/2015 * Time: 16:58 * Created with IntelliJ IDEA. */ public class EvidenceTypeJson { private String ecoTerm; private String evidence; private String evidenceKey; public void setKey(String ecoTerm) { this.ecoTe...
Change evidence model to help improve layout.
Change evidence model to help improve layout.
Java
apache-2.0
ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE
java
## Code Before: package uk.ac.ebi.quickgo.webservice.model; /** * @Author Tony Wardell * Date: 05/03/2015 * Time: 16:58 * Created with IntelliJ IDEA. */ public class EvidenceTypeJson { private String ecoTerm; private String value; public void setKey(String ecoTerm) { this.ecoTerm = ecoTerm; } public Stri...
b58404d18e4b58f2e5abbb8a6428fa6d3e266002
tools/c-index-test/CMakeLists.txt
tools/c-index-test/CMakeLists.txt
set(LLVM_USED_LIBS libclang) set( LLVM_LINK_COMPONENTS support mc ) add_clang_executable(c-index-test c-index-test.c ) set_target_properties(c-index-test PROPERTIES LINKER_LANGUAGE CXX)
set(LLVM_USED_LIBS libclang) set( LLVM_LINK_COMPONENTS support mc ) add_clang_executable(c-index-test c-index-test.c ) set_target_properties(c-index-test PROPERTIES LINKER_LANGUAGE CXX) install(TARGETS c-index-test RUNTIME DESTINATION bin)
Install c-index-test also on CMake build, following up r140681.
Install c-index-test also on CMake build, following up r140681. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@140694 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl...
text
## Code Before: set(LLVM_USED_LIBS libclang) set( LLVM_LINK_COMPONENTS support mc ) add_clang_executable(c-index-test c-index-test.c ) set_target_properties(c-index-test PROPERTIES LINKER_LANGUAGE CXX) ## Instruction: Install c-index-test also on CMake build, following up r140681. git-svn-id: ffe668...
9f5a853b67ecb4b15963e09c11197ee13cc52e26
preset/tinypbc-avr.sh
preset/tinypbc-avr.sh
CC=avr-gcc CXX=c++ LINK="-mmcu=atmega128 -Wl,-gc-sections" COMP="-O2 -ggdb -Wa,-mmcu=atmega128 -mmcu=atmega128 -ffunction-sections -fdata-sections" cmake -DARCH=AVR -DWORD=8 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;PB;CP;MD" -DBENCH=20 -DTESTS=20 -DCHECK=off -DVERBS=off -DSTRIP=o...
CC=avr-gcc CXX=c++ LINK="-mmcu=atmega128 -Wl,-gc-sections" COMP="-O2 -ggdb -Wa,-mmcu=atmega128 -mmcu=atmega128 -ffunction-sections -fdata-sections" cmake -DARCH=AVR -DWORD=8 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;PB;CP;MD" -DBENCH=20 -DTESTS=20 -DCHECK=off -DVERBS=off -DSTRIP=o...
Update preset to include newer configuration options.
Update preset to include newer configuration options.
Shell
lgpl-2.1
tectronics/relic-toolkit,tectronics/relic-toolkit,rajeevakarv/relic-toolkit,tectronics/relic-toolkit,rajeevakarv/relic-toolkit,rajeevakarv/relic-toolkit
shell
## Code Before: CC=avr-gcc CXX=c++ LINK="-mmcu=atmega128 -Wl,-gc-sections" COMP="-O2 -ggdb -Wa,-mmcu=atmega128 -mmcu=atmega128 -ffunction-sections -fdata-sections" cmake -DARCH=AVR -DWORD=8 -DOPSYS=NONE -DSEED=LIBC -DSHLIB=OFF -DSTBIN=ON -DTIMER=NONE -DWITH="DV;BN;FB;EB;PB;CP;MD" -DBENCH=20 -DTESTS=20 -DCHECK=off -DVER...
abcf57ab6d4d15a04c1638f383b4a50a17ea6a3c
setup.py
setup.py
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name='hashdb2', version='0.3', description='HashDb2 provides a simple method for executing commands based on matched files', long_description=readme(), classifiers=[ 'Development Stat...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name='hashdb2', version='0.3', description='HashDb2 provides a simple method for executing commands based on matched files', long_description=readme(), classifiers=[ 'Development Stat...
Remove meta data around unsupported versions
Remove meta data around unsupported versions
Python
apache-2.0
WHenderson/HashDb
python
## Code Before: from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name='hashdb2', version='0.3', description='HashDb2 provides a simple method for executing commands based on matched files', long_description=readme(), classifiers=[ '...
b718c1d817e767c336654001f3aaea5d7327625a
wsgi_intercept/requests_intercept.py
wsgi_intercept/requests_intercept.py
from . import WSGI_HTTPConnection, WSGI_HTTPSConnection, wsgi_fake_socket from requests.packages.urllib3.connectionpool import (HTTPConnectionPool, HTTPSConnectionPool) from requests.packages.urllib3.connection import (HTTPConnection, HTTPSConnection) wsgi_fake_socket.settimeout = lambda self, timeou...
import sys from . import WSGI_HTTPConnection, WSGI_HTTPSConnection, wsgi_fake_socket from requests.packages.urllib3.connectionpool import (HTTPConnectionPool, HTTPSConnectionPool) from requests.packages.urllib3.connection import (HTTPConnection, HTTPSConnection) wsgi_fake_socket.settimeout = lambda ...
Deal with request's urllib3 being annoying about 'strict'
Deal with request's urllib3 being annoying about 'strict' These changes are required to get tests to pass in python3.4 (and presumably others). This is entirely code from @sashahart, who had done the work earlier to deal with with some Debian related issues uncovered by @thomasgoirand. These changes will probably me...
Python
mit
sileht/python3-wsgi-intercept,cdent/wsgi-intercept
python
## Code Before: from . import WSGI_HTTPConnection, WSGI_HTTPSConnection, wsgi_fake_socket from requests.packages.urllib3.connectionpool import (HTTPConnectionPool, HTTPSConnectionPool) from requests.packages.urllib3.connection import (HTTPConnection, HTTPSConnection) wsgi_fake_socket.settimeout = lam...
d62c202e338c12ef7dc3076a30c560b44b110096
templates/rules/pathSpikes.yaml
templates/rules/pathSpikes.yaml
name: Spike in attacks on server # Type of alert. type: spike # num_events must occur within this amount of time to trigger an alert timeframe: seconds: 60 spike_height: 10 spike_type: up threshold_cur: 10 # Index to search, wildcard supported index: logstash-* query_key: - generalizedPath - host alert_subj...
name: Spike in attacks on server # Type of alert. type: spike # num_events must occur within this amount of time to trigger an alert timeframe: seconds: 60 spike_height: 10 spike_type: up threshold_cur: 10 threshold_ref: 1 # Index to search, wildcard supported index: logstash-* query_key: - generalizedPath -...
Add threshold ref 1, previous minute must have at least 1
Add threshold ref 1, previous minute must have at least 1
YAML
apache-2.0
dockstore/compose_setup,dockstore/compose_setup
yaml
## Code Before: name: Spike in attacks on server # Type of alert. type: spike # num_events must occur within this amount of time to trigger an alert timeframe: seconds: 60 spike_height: 10 spike_type: up threshold_cur: 10 # Index to search, wildcard supported index: logstash-* query_key: - generalizedPath - ...
03bacea779facc6b5874872884e7da00251abf44
app/views/polls/edit.html.erb
app/views/polls/edit.html.erb
<div class="row"> <div class="span12 main"> <div class="grouptitle">Lower Northeast &rsaquo; #2 &rsaquo; Edit</div> <%= render 'form' %> </div> </div>
<div class="row"> <div class="span12 main"> <div class="grouptitle">Lower Northeast &rsaquo; <%= @poll.title %> &rsaquo; Edit</div> <%= render 'form' %> </div> </div>
Include nickname in Edit Poll breadcrumb
Include nickname in Edit Poll breadcrumb
HTML+ERB
bsd-3-clause
codeforamerica/textizen,codeforamerica/textizen,codeforamerica/textizen
html+erb
## Code Before: <div class="row"> <div class="span12 main"> <div class="grouptitle">Lower Northeast &rsaquo; #2 &rsaquo; Edit</div> <%= render 'form' %> </div> </div> ## Instruction: Include nickname in Edit Poll breadcrumb ## Code After: <div class="row"> <div class="span12 main"> <div class="group...
c08582a8d832b4ec3ac983283d4727fa29827e5a
docs/index.md
docs/index.md
Micro vector tile manufacturing from PostGIS. ## Overview Utilery serves [protobuf vector tiles](https://github.com/mapbox/mapnik-vector-tile) from a PostGIS database. Basically it's as simple as a collection of configurable SQL requests in a YAML file. Here is an example of a recipe to use with OpenStreetMap data...
Micro vector tile manufacturing from PostGIS. ## Overview Utilery serves [protobuf vector tiles](https://github.com/mapbox/mapnik-vector-tile) from a PostGIS database. Basically it's as simple as a collection of configurable SQL requests in a YAML file. Here is an example of a recipe to use with OpenStreetMap data...
Update link to example in doc
Update link to example in doc
Markdown
mit
jondelmil/aiovectortiler,shongololo/aiovectortiler
markdown
## Code Before: Micro vector tile manufacturing from PostGIS. ## Overview Utilery serves [protobuf vector tiles](https://github.com/mapbox/mapnik-vector-tile) from a PostGIS database. Basically it's as simple as a collection of configurable SQL requests in a YAML file. Here is an example of a recipe to use with Op...
c971b045e63517ceab1c26ca49a6e1ec436d92a8
tails_files/securedrop_init.c
tails_files/securedrop_init.c
int main(int argc, char* argv) { setuid(0); // Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery execl("/usr/bin/python2.7", "python2.7", "/home/vagrant/tails_files/test.py", (char*)NULL); return 0; }
int main(int argc, char* argv) { setuid(0); // Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery execl("/usr/bin/python2.7", "python2.7", "/home/amnesia/Persistent/.securedrop/securedrop_init.py", (char*)NULL); return 0; }
Fix path in tails_files C wrapper
Fix path in tails_files C wrapper
C
agpl-3.0
jaseg/securedrop,jeann2013/securedrop,kelcecil/securedrop,jrosco/securedrop,ageis/securedrop,jrosco/securedrop,chadmiller/securedrop,GabeIsman/securedrop,jaseg/securedrop,pwplus/securedrop,GabeIsman/securedrop,harlo/securedrop,chadmiller/securedrop,heartsucker/securedrop,heartsucker/securedrop,jeann2013/securedrop,pwpl...
c
## Code Before: int main(int argc, char* argv) { setuid(0); // Use absolute path to the Python binary and execl to avoid $PATH or symlink trickery execl("/usr/bin/python2.7", "python2.7", "/home/vagrant/tails_files/test.py", (char*)NULL); return 0; } ## Instruction: Fix path in tails_files C wrapper ## C...
f109b818bf57a3fbf99dc03bf7b8adc262c0d4e8
test/integration/destructive.yml
test/integration/destructive.yml
- hosts: testhost gather_facts: True roles: - { role: test_service, tags: test_service } - { role: test_pip, tags: test_pip } - { role: test_gem, tags: test_gem } - { role: test_yum, tags: test_yum } - { role: test_apt, tags: test_apt } - { role: test_apt_repository, tags: test_apt_repositor...
- hosts: testhost gather_facts: True roles: - { role: test_service, tags: test_service } # Current pip unconditionally uses md5. We can re-enable if pip switches # to a different hash or allows us to not check md5 - { role: test_pip, tags: test_pip, when: ansible_fips != True } - { role: test_g...
Disable pip test on FIPS enabled systems because pip unconditionally uses md5
Disable pip test on FIPS enabled systems because pip unconditionally uses md5
YAML
mit
thaim/ansible,thaim/ansible
yaml
## Code Before: - hosts: testhost gather_facts: True roles: - { role: test_service, tags: test_service } - { role: test_pip, tags: test_pip } - { role: test_gem, tags: test_gem } - { role: test_yum, tags: test_yum } - { role: test_apt, tags: test_apt } - { role: test_apt_repository, tags: te...
d84e3116750b5c0ac1aef3f8b0614e74e31a0758
lhm.gemspec
lhm.gemspec
lib = File.expand_path('../lib', __FILE__) $:.unshift(lib) unless $:.include?(lib) require 'lhm/version' Gem::Specification.new do |s| s.name = "lhm" s.version = Lhm::VERSION s.platform = Gem::Platform::RUBY s.authors = ["SoundCloud", "Rany Keddo", "Tobias Bielohlawek", "Tobias Schm...
lib = File.expand_path('../lib', __FILE__) $:.unshift(lib) unless $:.include?(lib) require 'lhm/version' Gem::Specification.new do |s| s.name = "lhm" s.version = Lhm::VERSION s.platform = Gem::Platform::RUBY s.authors = ["SoundCloud", "Rany Keddo", "Tobias Bielohlawek", "Tobias Schm...
Update homepage url in gemspec
Update homepage url in gemspec
Ruby
bsd-3-clause
timeplayinc/lhm,nathanhoel/lhm,sj26/lhm,civisanalytics/lhm,tdeo/lhm,Shopify/lhm,sj26/lhm,Shopify/lhm,soundcloud/lhm,timeplayinc/lhm,civisanalytics/lhm,tdeo/lhm,soundcloud/lhm,nathanhoel/lhm
ruby
## Code Before: lib = File.expand_path('../lib', __FILE__) $:.unshift(lib) unless $:.include?(lib) require 'lhm/version' Gem::Specification.new do |s| s.name = "lhm" s.version = Lhm::VERSION s.platform = Gem::Platform::RUBY s.authors = ["SoundCloud", "Rany Keddo", "Tobias Bielohlawe...
e148ea6a4f14944a931e60aa5ce1a0c5d49df654
doc/python/examples/CMakeLists.txt
doc/python/examples/CMakeLists.txt
FIND_PACKAGE(PythonInterp) IF ( PYTHONINTERP_FOUND ) SET(pythonPath ${CMAKE_BINARY_DIR}/swig/python) MESSAGE ( STATUS "Adding Python test" ) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/python_test.py.in ${CMAKE_CURRENT_BINARY_DIR}/python_test.py) ADD_TEST("python" ${PYTHON_EXECUTABLE} python_test.py) EL...
FIND_PACKAGE(PythonInterp) IF ( PYTHONINTERP_FOUND ) SET(pythonPath ${CMAKE_BINARY_DIR}/swig/python) MESSAGE ( STATUS "Adding Python test" ) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/python_test.py.in ${CMAKE_CURRENT_BINARY_DIR}/python_test.py) ADD_TEST("python" ${PYTHON_EXECUTABLE} python_test.py) ...
Fix install of Python examles
Fix install of Python examles
Text
apache-2.0
cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,cezarfx/zorba,cezarfx/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorba,28msec/zorb...
text
## Code Before: FIND_PACKAGE(PythonInterp) IF ( PYTHONINTERP_FOUND ) SET(pythonPath ${CMAKE_BINARY_DIR}/swig/python) MESSAGE ( STATUS "Adding Python test" ) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/python_test.py.in ${CMAKE_CURRENT_BINARY_DIR}/python_test.py) ADD_TEST("python" ${PYTHON_EXECUTABLE} py...
3bcb3b34e28e3fad3f048d78027b637f7394261c
dockercl.sh
dockercl.sh
while true do read -r -p $'\e[94mdocker> \e[0m' command; docker $command; done
echo '' echo ' ## . ' echo ' ## ## ## == ' echo ' ## ## ## ## === ' echo ' /"""""""""""""""""\___/ === ' echo ' ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ ' echo ' \______ o __/ ' echo ' \ \ ...
Add ASCII art(thanks boot2docker for pretty whale)
Add ASCII art(thanks boot2docker for pretty whale)
Shell
mit
ket4yii/dockercl
shell
## Code Before: while true do read -r -p $'\e[94mdocker> \e[0m' command; docker $command; done ## Instruction: Add ASCII art(thanks boot2docker for pretty whale) ## Code After: echo '' echo ' ## . ' echo ' ## ## ## == ' echo ' ## ## ## ## ...
1d699304a41b4e5c359e0c46674efde853a4972c
lib/utils.js
lib/utils.js
Object.values = function(obj) { var vals = []; for( var key in obj ) { if ( obj.hasOwnProperty(key) ) { vals.push(obj[key]); } } return vals; }
Object.values = function(obj) { var vals = []; for( var key in obj ) { if ( obj.hasOwnProperty(key) ) { if(typeof(obj[key]) === 'object') { vals.push(JSON.stringify(obj[key])); } else { vals.push(obj[key]) } } } return vals;...
Add support for json columns
Add support for json columns
JavaScript
mit
swlkr/psqljs
javascript
## Code Before: Object.values = function(obj) { var vals = []; for( var key in obj ) { if ( obj.hasOwnProperty(key) ) { vals.push(obj[key]); } } return vals; } ## Instruction: Add support for json columns ## Code After: Object.values = function(obj) { var vals = []; ...
e824d8ad284603b73df48f1a413b129280318937
examples/annotation.py
examples/annotation.py
class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__ == '__main__': ...
class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': """Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This r...
Split the HTTPServer line into multiple.
Split the HTTPServer line into multiple. Also added comments and a docstring, since this is an example after all.
Python
mit
marrow/WebCore,marrow/WebCore
python
## Code Before: class Root(object): def __init__(self, context): self._ctx = context def mul(self, a: int = None, b: int = None) -> 'json': if not a and not b: return dict(message="Pass arguments a and b to multiply them together!") return dict(answer=a * b) if __name__...
4924b3108288fd5e116ac305d638bc58d207a2e6
app/Library.php
app/Library.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; use \App\Manga; class Library extends Model { // protected $fillable = ['name', 'path']; public function getId() { return $this->id; } public function getName() { return $this->name; } public function getPa...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use \App\Manga; class Library extends Model { // protected $fillable = ['name', 'path']; public function getId() { return $this->id; } public function getName() { return $this->name; } public function getPa...
Remove manga that no longer exist.
Remove manga that no longer exist. This is done whenever one updates a library.
PHP
bsd-3-clause
pierobot/mangapie,pierobot/mangapie,pierobot/mangapie
php
## Code Before: <?php namespace App; use Illuminate\Database\Eloquent\Model; use \App\Manga; class Library extends Model { // protected $fillable = ['name', 'path']; public function getId() { return $this->id; } public function getName() { return $this->name; } publi...
bc660945417d7b7cb3e4c2e88afb6414c94767fb
sources/ca-bc-kamloops.json
sources/ca-bc-kamloops.json
{ "coverage": { "country": "ca", "state": "bc", "city": "Kamloops" }, "data": "http://www.kamloops.ca/downloads/maps/cadastralSHP.zip", "website": "http://www.kamloops.ca/downloads/maps/launch.htm", "license": "http://www.city.kamloops.bc.ca/maps/disclaimer.html", "type":...
{ "coverage": { "country": "ca", "state": "bc", "city": "Kamloops" }, "data": "http://www.kamloops.ca/downloads/maps/cadastralSHP.zip", "website": "http://www.kamloops.ca/downloads/maps/launch.htm", "license": "http://www.city.kamloops.bc.ca/maps/disclaimer.html", "type":...
Add file to Kamloops, also fix schema
Add file to Kamloops, also fix schema
JSON
bsd-3-clause
jonbstrong/openaddresses,binaek89/openaddresses,openaddresses/openaddresses,alenFMF/openaddresses,openaddresses/openaddresses,PauloLuan/openaddresses,mkuh/openaddresses,knu2xs/openaddresses,npettiaux/openaddresses,orangejulius/openaddresses,newmana/openaddresses,slibby/openaddresses,sergiyprotsiv/openaddresses,artsandi...
json
## Code Before: { "coverage": { "country": "ca", "state": "bc", "city": "Kamloops" }, "data": "http://www.kamloops.ca/downloads/maps/cadastralSHP.zip", "website": "http://www.kamloops.ca/downloads/maps/launch.htm", "license": "http://www.city.kamloops.bc.ca/maps/disclaimer.ht...
91372671b5420677d26d2b22573601841c0554ff
flatten.js
flatten.js
'use strict'; // flatten arbitrarily nested array // data NestedList a = Elem a | List [NestedList a] // flatten :: NestedList a -> [a] module.exports = function flatten(arr) { const _flatten = function(p, c) { if (Array.isArray(c)) p = p.concat(c.reduce(_flatten, [])); else p.push(c); return p; }; ...
'use strict'; // flatten arbitrarily nested array // data NestedList a = Elem a | List [NestedList a] // flatten :: NestedList a -> [a] function flatten(arr) { const _flatten = function(p, c) { if (Array.isArray(c)) p = p.concat(c.reduce(_flatten, [])); else p.push(c); return p; }; return arr.reduce...
Remove all the module system junk
Remove all the module system junk
JavaScript
isc
zeusdeux/random
javascript
## Code Before: 'use strict'; // flatten arbitrarily nested array // data NestedList a = Elem a | List [NestedList a] // flatten :: NestedList a -> [a] module.exports = function flatten(arr) { const _flatten = function(p, c) { if (Array.isArray(c)) p = p.concat(c.reduce(_flatten, [])); else p.push(c); re...
c5525e18df5b3d99568c758213396594f69248ce
app/models/token.rb
app/models/token.rb
class Token < ActiveRecord::Base belongs_to :user validates :name, :secret, presence: true validate :secret_is_valid before_validation :normalize_secret scope :by_created_at, -> { order(:created_at) } def code ROTP::TOTP.new(secret).now end private def secret_is_valid code rescue e...
class Token < ActiveRecord::Base belongs_to :user validates :name, :secret, presence: true validate :secret_is_valid_base32 before_validation :normalize_secret scope :by_created_at, -> { order(:created_at) } def code ROTP::TOTP.new(secret).now end private def secret_is_valid_base32 code ...
Rename method to reveal intent
Rename method to reveal intent
Ruby
mit
ylansegal/tokenator,ylansegal/tokenator,ylansegal/tokenator
ruby
## Code Before: class Token < ActiveRecord::Base belongs_to :user validates :name, :secret, presence: true validate :secret_is_valid before_validation :normalize_secret scope :by_created_at, -> { order(:created_at) } def code ROTP::TOTP.new(secret).now end private def secret_is_valid cod...
53d597c47886f27abe6dce38dc7bd52d44fd2f8f
Toolbelt/Toolbelt/GCD.swift
Toolbelt/Toolbelt/GCD.swift
// // GCD.swift // Toolbelt // // Created by Alexander Edge on 14/01/2016. // Copyright © 2016 Alexander Edge. All rights reserved. // import Foundation public func dispatch_after(delay : NSTimeInterval, block: dispatch_block_t) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delay * Double(NSEC_PER_S...
// // GCD.swift // Toolbelt // // Created by Alexander Edge on 14/01/2016. // Copyright © 2016 Alexander Edge. All rights reserved. // import Foundation public enum Queue { case Main case UserInteractive case UserInitiated case Utility case Background public var queue: dispatch_queue_...
Move delayed execution to function on enum
Move delayed execution to function on enum
Swift
mit
alexanderedge/Toolbelt,alexanderedge/Toolbelt
swift
## Code Before: // // GCD.swift // Toolbelt // // Created by Alexander Edge on 14/01/2016. // Copyright © 2016 Alexander Edge. All rights reserved. // import Foundation public func dispatch_after(delay : NSTimeInterval, block: dispatch_block_t) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(delay * D...