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
92cf4efcbb6a0d0304edf3a3bf601d8fd0da051d
tests/src/main.cpp
tests/src/main.cpp
int main(int argc, char* argv[]) { std::cout << "MIPP tests" << std::endl; std::cout << "----------" << std::endl << std::endl; std::cout << "Instr. type: " << mipp::InstructionType << std::endl; std::cout << "Instr. full type: " << mipp::InstructionFullType << std::endl; std::cout << "Instr. version: " << mipp::InstructionVersion << std::endl; std::cout << "Instr. size: " << mipp::RegisterSizeBit << " bits" << std::endl; std::cout << "Instr. lanes: " << mipp::Lanes << std::endl; std::cout << "64-bit support: " << (mipp::Support64Bit ? "yes" : "no") << std::endl; std::cout << "Byte/word support: " << (mipp::SupportByteWord ? "yes" : "no") << std::endl; std::cout << std::endl; int result = Catch::Session().run(argc, argv); return result; }
int main(int argc, char* argv[]) { std::cout << "MIPP tests" << std::endl; std::cout << "----------" << std::endl << std::endl; std::cout << "Instr. type: " << mipp::InstructionType << std::endl; std::cout << "Instr. full type: " << mipp::InstructionFullType << std::endl; std::cout << "Instr. version: " << mipp::InstructionVersion << std::endl; std::cout << "Instr. size: " << mipp::RegisterSizeBit << " bits" << std::endl; std::cout << "Instr. lanes: " << mipp::Lanes << std::endl; std::cout << "64-bit support: " << (mipp::Support64Bit ? "yes" : "no") << std::endl; std::cout << "Byte/word support: " << (mipp::SupportByteWord ? "yes" : "no") << std::endl; auto ext = mipp::InstructionExtensions(); if (ext.size() > 0) { std::cout << "Instr. extensions: {"; for (auto i = 0; i < (int)ext.size(); i++) std::cout << ext[i] << (i < ((int)ext.size() -1) ? ", " : ""); std::cout << "}" << std::endl; } std::cout << std::endl; int result = Catch::Session().run(argc, argv); return result; }
Put back the extensions display.
Put back the extensions display.
C++
mit
aff3ct/MIPP,aff3ct/MIPP,aff3ct/MIPP
c++
## Code Before: int main(int argc, char* argv[]) { std::cout << "MIPP tests" << std::endl; std::cout << "----------" << std::endl << std::endl; std::cout << "Instr. type: " << mipp::InstructionType << std::endl; std::cout << "Instr. full type: " << mipp::InstructionFullType << std::endl; std::cout << "Instr. version: " << mipp::InstructionVersion << std::endl; std::cout << "Instr. size: " << mipp::RegisterSizeBit << " bits" << std::endl; std::cout << "Instr. lanes: " << mipp::Lanes << std::endl; std::cout << "64-bit support: " << (mipp::Support64Bit ? "yes" : "no") << std::endl; std::cout << "Byte/word support: " << (mipp::SupportByteWord ? "yes" : "no") << std::endl; std::cout << std::endl; int result = Catch::Session().run(argc, argv); return result; } ## Instruction: Put back the extensions display. ## Code After: int main(int argc, char* argv[]) { std::cout << "MIPP tests" << std::endl; std::cout << "----------" << std::endl << std::endl; std::cout << "Instr. type: " << mipp::InstructionType << std::endl; std::cout << "Instr. full type: " << mipp::InstructionFullType << std::endl; std::cout << "Instr. version: " << mipp::InstructionVersion << std::endl; std::cout << "Instr. size: " << mipp::RegisterSizeBit << " bits" << std::endl; std::cout << "Instr. lanes: " << mipp::Lanes << std::endl; std::cout << "64-bit support: " << (mipp::Support64Bit ? "yes" : "no") << std::endl; std::cout << "Byte/word support: " << (mipp::SupportByteWord ? "yes" : "no") << std::endl; auto ext = mipp::InstructionExtensions(); if (ext.size() > 0) { std::cout << "Instr. extensions: {"; for (auto i = 0; i < (int)ext.size(); i++) std::cout << ext[i] << (i < ((int)ext.size() -1) ? ", " : ""); std::cout << "}" << std::endl; } std::cout << std::endl; int result = Catch::Session().run(argc, argv); return result; }
fde2abead43133507b32e685442ac621a7f24b84
docs/packages/pkg/mxnet.rst
docs/packages/pkg/mxnet.rst
.. spelling:: mxnet .. index:: single: unsorted ; mxnet .. _pkg.mxnet: mxnet ===== - https://mxnet.apache.org/ - `Official GitHub <https://github.com/apache/incubator-mxnet>`__ - `Hunterized <https://github.com/hunter-packages/mxnet>`__ - `Example <https://github.com/ruslo/hunter/blob/master/examples/mxnet/CMakeLists.txt>`__ ``mxnet`` is not compatible with OpenCV ``4.0``, you have to explicitly switch to OpenCV ``3.4``: .. literalinclude:: /../examples/mxnet/config.cmake :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END } Please check :ref:`TVM documentation <pkg.tvm>` for additional requirements. .. note:: * Package was tested only on Linux and macOS * Library type is forced to be ``SHARED`` hence all dependencies should be shared libraries (use :ref:`HUNTER_BUILD_SHARED_LIBS=ON <hunter build shared libs>`) (**not tested!**) or build with :ref:`toolchain with PIC <simple toolchains>`. .. literalinclude:: /../examples/mxnet/CMakeLists.txt :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END }
.. spelling:: mxnet .. index:: single: unsorted ; mxnet .. _pkg.mxnet: mxnet ===== - https://mxnet.apache.org/ - `Official GitHub <https://github.com/apache/incubator-mxnet>`__ - `Hunterized <https://github.com/hunter-packages/mxnet>`__ - `Example <https://github.com/ruslo/hunter/blob/master/examples/mxnet/CMakeLists.txt>`__ ``mxnet`` is not compatible with OpenCV ``4.0``, you have to explicitly switch to OpenCV ``3.4``: .. literalinclude:: /../examples/mxnet/config.cmake :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END } Please check :ref:`TVM documentation <pkg.tvm>` for additional requirements. .. note:: * Package was tested only on Linux and macOS * Library type is forced to be ``SHARED`` hence all dependencies should be shared libraries (use :ref:`HUNTER_BUILD_SHARED_LIBS=ON <hunter build shared libs>`) (**not tested!**) or build with :ref:`toolchain with PIC <simple toolchains>`. .. note:: It's highly recommended to use ``export OMP_NUM_THREADS=1`` while running code and compiling MXNet. Not using this variable can leads to random runtime errors and build freezes. - https://github.com/apache/incubator-mxnet/issues/10856 .. literalinclude:: /../examples/mxnet/CMakeLists.txt :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END }
Use `OMP_NUM_THREADS=1` while using and building MXNet
Docs: Use `OMP_NUM_THREADS=1` while using and building MXNet
reStructuredText
bsd-2-clause
mchiasson/hunter,mchiasson/hunter,mchiasson/hunter,pretyman/hunter,dan-42/hunter,pretyman/hunter,madmongo1/hunter,madmongo1/hunter,ErniBrown/hunter,pretyman/hunter,NeroBurner/hunter,pretyman/hunter,dan-42/hunter,ingenue/hunter,ruslo/hunter,madmongo1/hunter,NeroBurner/hunter,ruslo/hunter,ErniBrown/hunter,madmongo1/hunter,ruslo/hunter,NeroBurner/hunter,tatraian/hunter,ingenue/hunter,ErniBrown/hunter,mchiasson/hunter,tatraian/hunter,NeroBurner/hunter,ruslo/hunter,dan-42/hunter,ingenue/hunter,ErniBrown/hunter,dan-42/hunter,tatraian/hunter,ingenue/hunter
restructuredtext
## Code Before: .. spelling:: mxnet .. index:: single: unsorted ; mxnet .. _pkg.mxnet: mxnet ===== - https://mxnet.apache.org/ - `Official GitHub <https://github.com/apache/incubator-mxnet>`__ - `Hunterized <https://github.com/hunter-packages/mxnet>`__ - `Example <https://github.com/ruslo/hunter/blob/master/examples/mxnet/CMakeLists.txt>`__ ``mxnet`` is not compatible with OpenCV ``4.0``, you have to explicitly switch to OpenCV ``3.4``: .. literalinclude:: /../examples/mxnet/config.cmake :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END } Please check :ref:`TVM documentation <pkg.tvm>` for additional requirements. .. note:: * Package was tested only on Linux and macOS * Library type is forced to be ``SHARED`` hence all dependencies should be shared libraries (use :ref:`HUNTER_BUILD_SHARED_LIBS=ON <hunter build shared libs>`) (**not tested!**) or build with :ref:`toolchain with PIC <simple toolchains>`. .. literalinclude:: /../examples/mxnet/CMakeLists.txt :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END } ## Instruction: Docs: Use `OMP_NUM_THREADS=1` while using and building MXNet ## Code After: .. spelling:: mxnet .. index:: single: unsorted ; mxnet .. _pkg.mxnet: mxnet ===== - https://mxnet.apache.org/ - `Official GitHub <https://github.com/apache/incubator-mxnet>`__ - `Hunterized <https://github.com/hunter-packages/mxnet>`__ - `Example <https://github.com/ruslo/hunter/blob/master/examples/mxnet/CMakeLists.txt>`__ ``mxnet`` is not compatible with OpenCV ``4.0``, you have to explicitly switch to OpenCV ``3.4``: .. literalinclude:: /../examples/mxnet/config.cmake :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END } Please check :ref:`TVM documentation <pkg.tvm>` for additional requirements. .. note:: * Package was tested only on Linux and macOS * Library type is forced to be ``SHARED`` hence all dependencies should be shared libraries (use :ref:`HUNTER_BUILD_SHARED_LIBS=ON <hunter build shared libs>`) (**not tested!**) or build with :ref:`toolchain with PIC <simple toolchains>`. .. note:: It's highly recommended to use ``export OMP_NUM_THREADS=1`` while running code and compiling MXNet. Not using this variable can leads to random runtime errors and build freezes. - https://github.com/apache/incubator-mxnet/issues/10856 .. literalinclude:: /../examples/mxnet/CMakeLists.txt :language: cmake :start-after: # DOCUMENTATION_START { :end-before: # DOCUMENTATION_END }
b5cd4eba3ee9e1635fc4c3b7ef4542921dce1391
appveyor.yml
appveyor.yml
- branches: only: - master version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive build_script: - cmd: cd c:\samp\bin && compile.bat # deploy script to your server after it has been built deploy: - provider: FTP server: username: password: folder: enable_ssl: false active_mode: false artifact: application: # other branches are executed in the development environment - version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive build_script: - cmd: cd c:\samp\bin && compile.bat
- branches: only: - master version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive - ps: Install-Product node "0.10" - git clone -q https://github.com/Pyrax/node-pawn-scanner.git c:\tools\scanner build_script: - cd c:\samp\bin && compile.bat after_build: - cd c:\samp\src && node "c:\tools\scanner\bin\scan-dir.js" "gamemodes" && node "c:\tools\scanner\bin\scan-dir.js" "filterscripts" artifacts: - path: c:\samp\bin\server name: server-files - path: c:\tools\scanner\web name: web-files # deploy script to your server after it has been built deploy: - provider: FTP server: username: password: folder: enable_ssl: false artifact: server-files - provider: FTP server: username: password: folder: enable_ssl: false artifact: web-files # other branches are executed in the development environment - version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive build_script: - cd c:\samp\bin && compile.bat
Add code scanner with deployment option for related web-files
Add code scanner with deployment option for related web-files
YAML
mit
Pyrax/samp-kitchen-sink,Pyrax/samp-kitchen-sink
yaml
## Code Before: - branches: only: - master version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive build_script: - cmd: cd c:\samp\bin && compile.bat # deploy script to your server after it has been built deploy: - provider: FTP server: username: password: folder: enable_ssl: false active_mode: false artifact: application: # other branches are executed in the development environment - version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive build_script: - cmd: cd c:\samp\bin && compile.bat ## Instruction: Add code scanner with deployment option for related web-files ## Code After: - branches: only: - master version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive - ps: Install-Product node "0.10" - git clone -q https://github.com/Pyrax/node-pawn-scanner.git c:\tools\scanner build_script: - cd c:\samp\bin && compile.bat after_build: - cd c:\samp\src && node "c:\tools\scanner\bin\scan-dir.js" "gamemodes" && node "c:\tools\scanner\bin\scan-dir.js" "filterscripts" artifacts: - path: c:\samp\bin\server name: server-files - path: c:\tools\scanner\web name: web-files # deploy script to your server after it has been built deploy: - provider: FTP server: username: password: folder: enable_ssl: false artifact: server-files - provider: FTP server: username: password: folder: enable_ssl: false artifact: web-files # other branches are executed in the development environment - version: 1.{build} # clone directory clone_folder: c:\samp # install (after repo cloning) install: - git submodule update -q --init --recursive build_script: - cd c:\samp\bin && compile.bat
8abf957a449854d04912787479ff394b717a9de2
README.md
README.md
tree-sitter-c ================== [![Build Status](https://travis-ci.org/maxbrunsfeld/tree-sitter-c.svg?branch=master)](https://travis-ci.org/maxbrunsfeld/tree-sitter-c) C grammar for [tree-sitter](https://github.com/maxbrunsfeld/tree-sitter). Adapted from [this C99 grammar](http://slps.github.io/zoo/c/iso-9899-tc3.html#designation).
tree-sitter-c ================== [![Build Status](https://travis-ci.org/maxbrunsfeld/tree-sitter-c.svg?branch=master)](https://travis-ci.org/maxbrunsfeld/tree-sitter-c) C grammar for [tree-sitter](https://github.com/maxbrunsfeld/tree-sitter). Adapted from [this C99 grammar](http://slps.github.io/zoo/c/iso-9899-tc3.html).
Remove spurious fragment from grammar URL in readme
Remove spurious fragment from grammar URL in readme
Markdown
mit
tree-sitter/tree-sitter-c,maxbrunsfeld/node-tree-sitter-c,maxbrunsfeld/tree-sitter-c,maxbrunsfeld/node-tree-sitter-c,maxbrunsfeld/tree-sitter-c,tree-sitter/tree-sitter-c,tree-sitter/tree-sitter-c,maxbrunsfeld/node-tree-sitter-c,maxbrunsfeld/tree-sitter-c,tree-sitter/tree-sitter-c,maxbrunsfeld/tree-sitter-c,tree-sitter/tree-sitter-c,tree-sitter/tree-sitter-c,maxbrunsfeld/node-tree-sitter-c
markdown
## Code Before: tree-sitter-c ================== [![Build Status](https://travis-ci.org/maxbrunsfeld/tree-sitter-c.svg?branch=master)](https://travis-ci.org/maxbrunsfeld/tree-sitter-c) C grammar for [tree-sitter](https://github.com/maxbrunsfeld/tree-sitter). Adapted from [this C99 grammar](http://slps.github.io/zoo/c/iso-9899-tc3.html#designation). ## Instruction: Remove spurious fragment from grammar URL in readme ## Code After: tree-sitter-c ================== [![Build Status](https://travis-ci.org/maxbrunsfeld/tree-sitter-c.svg?branch=master)](https://travis-ci.org/maxbrunsfeld/tree-sitter-c) C grammar for [tree-sitter](https://github.com/maxbrunsfeld/tree-sitter). Adapted from [this C99 grammar](http://slps.github.io/zoo/c/iso-9899-tc3.html).
1300c758411faf685a8ab3de754a363c56c6a55d
lib/negroku/tasks/nodenv.rake
lib/negroku/tasks/nodenv.rake
namespace :load do task :defaults do # Set the node version using the .node-version file # Looks for the file in the project root set :nodenv_node, File.read('.node-version').strip end end
namespace :load do task :defaults do # Set the node version using the .node-version file # Looks for the file in the project root set :nodenv_node, File.read('.node-version').strip if File.exist?('.node-version') end end
Check if .ruby-version file exists
chore(rbenv): Check if .ruby-version file exists
Ruby
mit
platanus/negroku,platanus/negroku
ruby
## Code Before: namespace :load do task :defaults do # Set the node version using the .node-version file # Looks for the file in the project root set :nodenv_node, File.read('.node-version').strip end end ## Instruction: chore(rbenv): Check if .ruby-version file exists ## Code After: namespace :load do task :defaults do # Set the node version using the .node-version file # Looks for the file in the project root set :nodenv_node, File.read('.node-version').strip if File.exist?('.node-version') end end
67b852895d3575b44c77d45a9afe245a04a806fb
src/Native/System.Net.Http.Native/CMakeLists.txt
src/Native/System.Net.Http.Native/CMakeLists.txt
project(System.Net.Http.Native) find_library(CURL NAMES curl) if(CURL STREQUAL CURL-NOTFOUND) message(SEND_ERROR "!!! Cannot find libcurl and System.Net.Http.Native cannot build without it. Try installing libcurl4-openssl-dev (or the appropriate package for your platform) !!!") return() endif() set(NATIVEHTTP_SOURCES pal_curlinit.cpp pal_easy.cpp pal_multi.cpp pal_slist.cpp pal_versioninfo.cpp ) add_library(System.Net.Http.Native SHARED ${NATIVEHTTP_SOURCES} ) target_link_libraries(System.Net.Http.Native ${CURL} ) install (TARGETS System.Net.Http.Native DESTINATION .)
project(System.Net.Http.Native) find_package(CURL) if(NOT CURL_FOUND) message(FATAL_ERROR "!!! Cannot find libcurl and System.Net.Http.Native cannot build without it. Try installing libcurl4-openssl-dev (or the appropriate package for your platform) !!!") endif(NOT CURL_FOUND) set(NATIVEHTTP_SOURCES pal_curlinit.cpp pal_easy.cpp pal_multi.cpp pal_slist.cpp pal_versioninfo.cpp ) include_directories(SYSTEM ${CURL_INCLUDE_DIR}) add_library(System.Net.Http.Native SHARED ${NATIVEHTTP_SOURCES} ) target_link_libraries(System.Net.Http.Native ${CURL_LIBRARIES} ) install (TARGETS System.Net.Http.Native DESTINATION .)
Fix curl discovery on NetBSD
Fix curl discovery on NetBSD Use standard CMake module to detect it and provide appropriate include dir.
Text
mit
rubo/corefx,jlin177/corefx,ptoonen/corefx,dhoehna/corefx,richlander/corefx,stone-li/corefx,JosephTremoulet/corefx,shahid-pk/corefx,marksmeltzer/corefx,stephenmichaelf/corefx,mmitche/corefx,iamjasonp/corefx,Ermiar/corefx,shahid-pk/corefx,mazong1123/corefx,khdang/corefx,krk/corefx,rjxby/corefx,Priya91/corefx-1,fgreinacher/corefx,ptoonen/corefx,jhendrixMSFT/corefx,richlander/corefx,Priya91/corefx-1,Petermarcu/corefx,BrennanConroy/corefx,ptoonen/corefx,dhoehna/corefx,pallavit/corefx,ericstj/corefx,jhendrixMSFT/corefx,tstringer/corefx,nbarbettini/corefx,axelheer/corefx,ellismg/corefx,Chrisboh/corefx,jhendrixMSFT/corefx,zhenlan/corefx,krk/corefx,rjxby/corefx,cartermp/corefx,twsouthwick/corefx,twsouthwick/corefx,rahku/corefx,manu-silicon/corefx,tstringer/corefx,cartermp/corefx,DnlHarvey/corefx,marksmeltzer/corefx,twsouthwick/corefx,krk/corefx,ViktorHofer/corefx,elijah6/corefx,krytarowski/corefx,mmitche/corefx,billwert/corefx,marksmeltzer/corefx,jcme/corefx,kkurni/corefx,wtgodbe/corefx,cydhaselton/corefx,lggomez/corefx,shmao/corefx,zhenlan/corefx,tijoytom/corefx,Priya91/corefx-1,Ermiar/corefx,lggomez/corefx,shmao/corefx,parjong/corefx,Priya91/corefx-1,JosephTremoulet/corefx,MaggieTsang/corefx,tijoytom/corefx,yizhang82/corefx,Jiayili1/corefx,ptoonen/corefx,ravimeda/corefx,mazong1123/corefx,rjxby/corefx,Ermiar/corefx,khdang/corefx,jlin177/corefx,shahid-pk/corefx,ravimeda/corefx,rjxby/corefx,MaggieTsang/corefx,weltkante/corefx,nbarbettini/corefx,mmitche/corefx,alexperovich/corefx,ravimeda/corefx,mazong1123/corefx,ptoonen/corefx,marksmeltzer/corefx,khdang/corefx,parjong/corefx,mmitche/corefx,jlin177/corefx,ellismg/corefx,Jiayili1/corefx,Jiayili1/corefx,jlin177/corefx,nbarbettini/corefx,dotnet-bot/corefx,SGuyGe/corefx,fgreinacher/corefx,pallavit/corefx,lggomez/corefx,stephenmichaelf/corefx,ellismg/corefx,nbarbettini/corefx,rubo/corefx,seanshpark/corefx,shimingsg/corefx,richlander/corefx,DnlHarvey/corefx,cydhaselton/corefx,adamralph/corefx,rubo/corefx,jlin177/corefx,Chrisboh/corefx,stone-li/corefx,MaggieTsang/corefx,ravimeda/corefx,cydhaselton/corefx,manu-silicon/corefx,kkurni/corefx,elijah6/corefx,nbarbettini/corefx,gkhanna79/corefx,YoupHulsebos/corefx,twsouthwick/corefx,rahku/corefx,zhenlan/corefx,stone-li/corefx,elijah6/corefx,jcme/corefx,krytarowski/corefx,YoupHulsebos/corefx,the-dwyer/corefx,ericstj/corefx,Petermarcu/corefx,elijah6/corefx,tstringer/corefx,Chrisboh/corefx,weltkante/corefx,rahku/corefx,Jiayili1/corefx,ravimeda/corefx,YoupHulsebos/corefx,yizhang82/corefx,shimingsg/corefx,krytarowski/corefx,marksmeltzer/corefx,dotnet-bot/corefx,YoupHulsebos/corefx,ViktorHofer/corefx,gkhanna79/corefx,manu-silicon/corefx,jcme/corefx,shimingsg/corefx,Ermiar/corefx,wtgodbe/corefx,richlander/corefx,the-dwyer/corefx,axelheer/corefx,khdang/corefx,billwert/corefx,cydhaselton/corefx,seanshpark/corefx,nchikanov/corefx,seanshpark/corefx,fgreinacher/corefx,weltkante/corefx,ViktorHofer/corefx,ptoonen/corefx,wtgodbe/corefx,dhoehna/corefx,JosephTremoulet/corefx,MaggieTsang/corefx,rjxby/corefx,ericstj/corefx,Jiayili1/corefx,rahku/corefx,seanshpark/corefx,ptoonen/corefx,pallavit/corefx,DnlHarvey/corefx,wtgodbe/corefx,zhenlan/corefx,mmitche/corefx,rubo/corefx,Priya91/corefx-1,shimingsg/corefx,yizhang82/corefx,dotnet-bot/corefx,MaggieTsang/corefx,MaggieTsang/corefx,jhendrixMSFT/corefx,manu-silicon/corefx,krk/corefx,billwert/corefx,cartermp/corefx,lggomez/corefx,billwert/corefx,rahku/corefx,DnlHarvey/corefx,tstringer/corefx,twsouthwick/corefx,dhoehna/corefx,cydhaselton/corefx,alexperovich/corefx,krytarowski/corefx,the-dwyer/corefx,marksmeltzer/corefx,stephenmichaelf/corefx,kkurni/corefx,lggomez/corefx,ViktorHofer/corefx,ericstj/corefx,JosephTremoulet/corefx,jhendrixMSFT/corefx,YoupHulsebos/corefx,Chrisboh/corefx,krk/corefx,weltkante/corefx,alphonsekurian/corefx,gkhanna79/corefx,ericstj/corefx,JosephTremoulet/corefx,YoupHulsebos/corefx,richlander/corefx,parjong/corefx,dsplaisted/corefx,nchikanov/corefx,rahku/corefx,stephenmichaelf/corefx,gkhanna79/corefx,the-dwyer/corefx,adamralph/corefx,manu-silicon/corefx,twsouthwick/corefx,jhendrixMSFT/corefx,Priya91/corefx-1,Ermiar/corefx,dotnet-bot/corefx,dhoehna/corefx,DnlHarvey/corefx,manu-silicon/corefx,nchikanov/corefx,Chrisboh/corefx,mazong1123/corefx,billwert/corefx,the-dwyer/corefx,dotnet-bot/corefx,mazong1123/corefx,seanshpark/corefx,pallavit/corefx,ravimeda/corefx,elijah6/corefx,parjong/corefx,alphonsekurian/corefx,richlander/corefx,shimingsg/corefx,DnlHarvey/corefx,wtgodbe/corefx,krytarowski/corefx,elijah6/corefx,ericstj/corefx,iamjasonp/corefx,alphonsekurian/corefx,rjxby/corefx,ellismg/corefx,shahid-pk/corefx,iamjasonp/corefx,axelheer/corefx,shmao/corefx,stone-li/corefx,kkurni/corefx,fgreinacher/corefx,alexperovich/corefx,dhoehna/corefx,zhenlan/corefx,alphonsekurian/corefx,SGuyGe/corefx,mmitche/corefx,gkhanna79/corefx,ravimeda/corefx,cydhaselton/corefx,tijoytom/corefx,rjxby/corefx,krk/corefx,the-dwyer/corefx,rahku/corefx,ViktorHofer/corefx,ViktorHofer/corefx,pallavit/corefx,shmao/corefx,krytarowski/corefx,Petermarcu/corefx,cartermp/corefx,tstringer/corefx,zhenlan/corefx,adamralph/corefx,iamjasonp/corefx,tijoytom/corefx,krytarowski/corefx,rubo/corefx,tstringer/corefx,stephenmichaelf/corefx,mazong1123/corefx,jcme/corefx,stephenmichaelf/corefx,MaggieTsang/corefx,parjong/corefx,krk/corefx,cartermp/corefx,YoupHulsebos/corefx,iamjasonp/corefx,BrennanConroy/corefx,SGuyGe/corefx,gkhanna79/corefx,parjong/corefx,nbarbettini/corefx,jcme/corefx,nchikanov/corefx,khdang/corefx,SGuyGe/corefx,kkurni/corefx,yizhang82/corefx,Petermarcu/corefx,ellismg/corefx,jlin177/corefx,richlander/corefx,nbarbettini/corefx,jlin177/corefx,zhenlan/corefx,wtgodbe/corefx,twsouthwick/corefx,Jiayili1/corefx,alphonsekurian/corefx,weltkante/corefx,alexperovich/corefx,stone-li/corefx,axelheer/corefx,JosephTremoulet/corefx,SGuyGe/corefx,khdang/corefx,stephenmichaelf/corefx,yizhang82/corefx,dhoehna/corefx,lggomez/corefx,alexperovich/corefx,Chrisboh/corefx,alexperovich/corefx,ViktorHofer/corefx,kkurni/corefx,manu-silicon/corefx,mmitche/corefx,parjong/corefx,dsplaisted/corefx,axelheer/corefx,DnlHarvey/corefx,jcme/corefx,gkhanna79/corefx,seanshpark/corefx,shimingsg/corefx,stone-li/corefx,Ermiar/corefx,yizhang82/corefx,Petermarcu/corefx,shahid-pk/corefx,dotnet-bot/corefx,Ermiar/corefx,nchikanov/corefx,nchikanov/corefx,mazong1123/corefx,tijoytom/corefx,tijoytom/corefx,alphonsekurian/corefx,nchikanov/corefx,cartermp/corefx,weltkante/corefx,JosephTremoulet/corefx,ericstj/corefx,shahid-pk/corefx,shmao/corefx,elijah6/corefx,BrennanConroy/corefx,stone-li/corefx,ellismg/corefx,alphonsekurian/corefx,tijoytom/corefx,Petermarcu/corefx,seanshpark/corefx,Jiayili1/corefx,marksmeltzer/corefx,SGuyGe/corefx,dotnet-bot/corefx,alexperovich/corefx,axelheer/corefx,cydhaselton/corefx,lggomez/corefx,billwert/corefx,iamjasonp/corefx,jhendrixMSFT/corefx,shimingsg/corefx,yizhang82/corefx,dsplaisted/corefx,iamjasonp/corefx,pallavit/corefx,shmao/corefx,shmao/corefx,billwert/corefx,weltkante/corefx,Petermarcu/corefx,wtgodbe/corefx,the-dwyer/corefx
text
## Code Before: project(System.Net.Http.Native) find_library(CURL NAMES curl) if(CURL STREQUAL CURL-NOTFOUND) message(SEND_ERROR "!!! Cannot find libcurl and System.Net.Http.Native cannot build without it. Try installing libcurl4-openssl-dev (or the appropriate package for your platform) !!!") return() endif() set(NATIVEHTTP_SOURCES pal_curlinit.cpp pal_easy.cpp pal_multi.cpp pal_slist.cpp pal_versioninfo.cpp ) add_library(System.Net.Http.Native SHARED ${NATIVEHTTP_SOURCES} ) target_link_libraries(System.Net.Http.Native ${CURL} ) install (TARGETS System.Net.Http.Native DESTINATION .) ## Instruction: Fix curl discovery on NetBSD Use standard CMake module to detect it and provide appropriate include dir. ## Code After: project(System.Net.Http.Native) find_package(CURL) if(NOT CURL_FOUND) message(FATAL_ERROR "!!! Cannot find libcurl and System.Net.Http.Native cannot build without it. Try installing libcurl4-openssl-dev (or the appropriate package for your platform) !!!") endif(NOT CURL_FOUND) set(NATIVEHTTP_SOURCES pal_curlinit.cpp pal_easy.cpp pal_multi.cpp pal_slist.cpp pal_versioninfo.cpp ) include_directories(SYSTEM ${CURL_INCLUDE_DIR}) add_library(System.Net.Http.Native SHARED ${NATIVEHTTP_SOURCES} ) target_link_libraries(System.Net.Http.Native ${CURL_LIBRARIES} ) install (TARGETS System.Net.Http.Native DESTINATION .)
0973942020260734e49a59cacb35d78c64aea566
read_test.go
read_test.go
package maxreader_test import ( "io/ioutil" "strings" "testing" "." ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, e := range table { b, err := ioutil.ReadAll(maxreader.New(strings.NewReader(e.s), 5)) if e.ok != (err == nil) { t.Errorf(`input "%v" -> error %v`, e.s, err) } if err == nil { l := len(e.s) if l > 5 { l = 5 } if len(b) != l { t.Errorf(`input "%v" -> length %v`, e.s, len(b)) } } else if err != maxreader.ErrReadLimit { t.Errorf(`input "%v" -> wrong error %v`, e.s, err) } } }
package maxreader_test import ( "io/ioutil" "strings" "testing" "github.com/ninchat/maxreader" ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, e := range table { b, err := ioutil.ReadAll(maxreader.New(strings.NewReader(e.s), 5)) if e.ok != (err == nil) { t.Errorf(`input "%v" -> error %v`, e.s, err) } if err == nil { l := len(e.s) if l > 5 { l = 5 } if len(b) != l { t.Errorf(`input "%v" -> length %v`, e.s, len(b)) } } else if err != maxreader.ErrReadLimit { t.Errorf(`input "%v" -> wrong error %v`, e.s, err) } } }
Use absolute import in test
Use absolute import in test
Go
bsd-2-clause
ninchat/maxreader
go
## Code Before: package maxreader_test import ( "io/ioutil" "strings" "testing" "." ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, e := range table { b, err := ioutil.ReadAll(maxreader.New(strings.NewReader(e.s), 5)) if e.ok != (err == nil) { t.Errorf(`input "%v" -> error %v`, e.s, err) } if err == nil { l := len(e.s) if l > 5 { l = 5 } if len(b) != l { t.Errorf(`input "%v" -> length %v`, e.s, len(b)) } } else if err != maxreader.ErrReadLimit { t.Errorf(`input "%v" -> wrong error %v`, e.s, err) } } } ## Instruction: Use absolute import in test ## Code After: package maxreader_test import ( "io/ioutil" "strings" "testing" "github.com/ninchat/maxreader" ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, e := range table { b, err := ioutil.ReadAll(maxreader.New(strings.NewReader(e.s), 5)) if e.ok != (err == nil) { t.Errorf(`input "%v" -> error %v`, e.s, err) } if err == nil { l := len(e.s) if l > 5 { l = 5 } if len(b) != l { t.Errorf(`input "%v" -> length %v`, e.s, len(b)) } } else if err != maxreader.ErrReadLimit { t.Errorf(`input "%v" -> wrong error %v`, e.s, err) } } }
c71ffebe5d9079db233a4d9d07c3b0686dae95a2
plugins/lombok/src/test/java/de/plushnikov/intellij/plugin/inspection/BuilderInspectionTest.java
plugins/lombok/src/test/java/de/plushnikov/intellij/plugin/inspection/BuilderInspectionTest.java
package de.plushnikov.intellij.plugin.inspection; import com.intellij.codeInspection.InspectionProfileEntry; public class BuilderInspectionTest extends LombokInspectionTest { @Override protected String getTestDataPath() { return TEST_DATA_INSPECTION_DIRECTORY + "/builder"; } @Override protected InspectionProfileEntry getInspection() { return new LombokInspection(); } public void testBuilderInvalidIdentifier() throws Exception { doTest(); } public void testBuilderRightType() throws Exception { doTest(); } public void testBuilderInvalidUse() throws Exception { doTest(); } public void testBuilderObtainVia() throws Exception { doTest(); } public void testBuilderDefaultsWarnings() throws Exception { //TODO implement test after adding support for Builder.Default doTest(); } public void testBuilderDefaultValue() throws Exception { doTest(); } }
package de.plushnikov.intellij.plugin.inspection; import com.intellij.codeInspection.InspectionProfileEntry; public class BuilderInspectionTest extends LombokInspectionTest { @Override protected String getTestDataPath() { return TEST_DATA_INSPECTION_DIRECTORY + "/builder"; } @Override protected InspectionProfileEntry getInspection() { return new LombokInspection(); } public void testBuilderInvalidIdentifier() throws Exception { doTest(); } public void testBuilderRightType() throws Exception { doTest(); } public void testBuilderInvalidUse() throws Exception { doTest(); } public void testBuilderObtainVia() throws Exception { doTest(); } public void testBuilderDefaultsWarnings() throws Exception { doTest(); } public void testBuilderDefaultValue() throws Exception { doTest(); } }
Remove todo because it is implemented now
Remove todo because it is implemented now GitOrigin-RevId: c3086ef8f503559f6f3c54aead0d2a526538fc5b
Java
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community
java
## Code Before: package de.plushnikov.intellij.plugin.inspection; import com.intellij.codeInspection.InspectionProfileEntry; public class BuilderInspectionTest extends LombokInspectionTest { @Override protected String getTestDataPath() { return TEST_DATA_INSPECTION_DIRECTORY + "/builder"; } @Override protected InspectionProfileEntry getInspection() { return new LombokInspection(); } public void testBuilderInvalidIdentifier() throws Exception { doTest(); } public void testBuilderRightType() throws Exception { doTest(); } public void testBuilderInvalidUse() throws Exception { doTest(); } public void testBuilderObtainVia() throws Exception { doTest(); } public void testBuilderDefaultsWarnings() throws Exception { //TODO implement test after adding support for Builder.Default doTest(); } public void testBuilderDefaultValue() throws Exception { doTest(); } } ## Instruction: Remove todo because it is implemented now GitOrigin-RevId: c3086ef8f503559f6f3c54aead0d2a526538fc5b ## Code After: package de.plushnikov.intellij.plugin.inspection; import com.intellij.codeInspection.InspectionProfileEntry; public class BuilderInspectionTest extends LombokInspectionTest { @Override protected String getTestDataPath() { return TEST_DATA_INSPECTION_DIRECTORY + "/builder"; } @Override protected InspectionProfileEntry getInspection() { return new LombokInspection(); } public void testBuilderInvalidIdentifier() throws Exception { doTest(); } public void testBuilderRightType() throws Exception { doTest(); } public void testBuilderInvalidUse() throws Exception { doTest(); } public void testBuilderObtainVia() throws Exception { doTest(); } public void testBuilderDefaultsWarnings() throws Exception { doTest(); } public void testBuilderDefaultValue() throws Exception { doTest(); } }
2af88f16a2871de906bdea0afacc24d4adbe68f0
install-vim-plugins.sh
install-vim-plugins.sh
mkdir -p ~/.vim/autoload ~/.vim/bundle curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace
mkdir -p ~/.vim/autoload ~/.vim/bundle curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace git -C ~/.vim/bundle/vim-better-whitespace pull
Add pull for vim plugin install to update on re-run
Add pull for vim plugin install to update on re-run
Shell
mit
jtpereyda/dotfiles
shell
## Code Before: mkdir -p ~/.vim/autoload ~/.vim/bundle curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace ## Instruction: Add pull for vim plugin install to update on re-run ## Code After: mkdir -p ~/.vim/autoload ~/.vim/bundle curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim git clone https://github.com/ntpeters/vim-better-whitespace.git ~/.vim/bundle/vim-better-whitespace git -C ~/.vim/bundle/vim-better-whitespace pull
3af3f931cb6a424926cdda0408aa07fa52b97e72
src/templates/travisyml.js
src/templates/travisyml.js
/* @flow */ import type { Template } from 'create-npm/lib/template' export default function({ encryptedNpmToken, encryptedGitHubToken }: { encryptedNpmToken: string, encryptedGitHubToken: string }): Template { return { path: '.travis.yml', content: ` dist: xenial language: node_js node_js: node cache: yarn env: global: - secure: ${encryptedGitHubToken} - secure: ${encryptedNpmToken} branches: only: - master deploy: provider: script skip_cleanup: true script: - yarn release ` } }
/* @flow */ import type { Template } from 'create-npm/lib/template' export default function({ encryptedNpmToken, encryptedGitHubToken }: { encryptedNpmToken: string, encryptedGitHubToken: string }): Template { return { path: '.travis.yml', content: ` dist: xenial language: node_js node_js: node cache: yarn env: global: - secure: ${encryptedGitHubToken} - secure: ${encryptedNpmToken} if: tag IS blank deploy: provider: script skip_cleanup: true script: - yarn release ` } }
Use a cleaner way of excluding release tags
fix(travis): Use a cleaner way of excluding release tags
JavaScript
mit
vinsonchuong/create-npm
javascript
## Code Before: /* @flow */ import type { Template } from 'create-npm/lib/template' export default function({ encryptedNpmToken, encryptedGitHubToken }: { encryptedNpmToken: string, encryptedGitHubToken: string }): Template { return { path: '.travis.yml', content: ` dist: xenial language: node_js node_js: node cache: yarn env: global: - secure: ${encryptedGitHubToken} - secure: ${encryptedNpmToken} branches: only: - master deploy: provider: script skip_cleanup: true script: - yarn release ` } } ## Instruction: fix(travis): Use a cleaner way of excluding release tags ## Code After: /* @flow */ import type { Template } from 'create-npm/lib/template' export default function({ encryptedNpmToken, encryptedGitHubToken }: { encryptedNpmToken: string, encryptedGitHubToken: string }): Template { return { path: '.travis.yml', content: ` dist: xenial language: node_js node_js: node cache: yarn env: global: - secure: ${encryptedGitHubToken} - secure: ${encryptedNpmToken} if: tag IS blank deploy: provider: script skip_cleanup: true script: - yarn release ` } }
b801f69c68c10b6180b2da220196434d19a78eba
README.md
README.md
Quotes with clean UI design for new chrome tab. ![Screenshot](./screenshot.jpeg) ## Install You can find this extension on [Chrome Web Store](https://chrome.google.com/webstore/detail/jtquotes-start-page/gkbaceebanpgdmiigkfkebjkfkokfnbd). ## Trello [https://trello.com/b/XIoyLZaN/jtquotes1-1](https://trello.com/b/XIoyLZaN/jtquotes-1-1) ## Author Justin Yan, a iOS/Mac developer - [Blog JustinYan.me](http://justinyan.me) - [Twitter @MapleShadow](https://twitter.com/MapleShadow) - Email: fengying7@gmail.com
Quotes with clean UI design for new chrome tab. ![Screenshot](./screenshot.jpeg) ![Screenshot-Options](./screenshot-1280-options.jpeg) ## Install You can find this extension on [Chrome Web Store](https://chrome.google.com/webstore/detail/jtquotes-start-page/gkbaceebanpgdmiigkfkebjkfkokfnbd). ## Trello [https://trello.com/b/XIoyLZaN/jtquotes1-1](https://trello.com/b/XIoyLZaN/jtquotes-1-1) ## Author Justin Yan, a iOS/Mac developer - [Blog JustinYan.me](http://justinyan.me) - [Twitter @MapleShadow](https://twitter.com/MapleShadow) - Email: fengying7@gmail.com
Update screen shots for option page
Update screen shots for option page
Markdown
mit
WindyShade/jtquotes,WindyShade/jtquotes
markdown
## Code Before: Quotes with clean UI design for new chrome tab. ![Screenshot](./screenshot.jpeg) ## Install You can find this extension on [Chrome Web Store](https://chrome.google.com/webstore/detail/jtquotes-start-page/gkbaceebanpgdmiigkfkebjkfkokfnbd). ## Trello [https://trello.com/b/XIoyLZaN/jtquotes1-1](https://trello.com/b/XIoyLZaN/jtquotes-1-1) ## Author Justin Yan, a iOS/Mac developer - [Blog JustinYan.me](http://justinyan.me) - [Twitter @MapleShadow](https://twitter.com/MapleShadow) - Email: fengying7@gmail.com ## Instruction: Update screen shots for option page ## Code After: Quotes with clean UI design for new chrome tab. ![Screenshot](./screenshot.jpeg) ![Screenshot-Options](./screenshot-1280-options.jpeg) ## Install You can find this extension on [Chrome Web Store](https://chrome.google.com/webstore/detail/jtquotes-start-page/gkbaceebanpgdmiigkfkebjkfkokfnbd). ## Trello [https://trello.com/b/XIoyLZaN/jtquotes1-1](https://trello.com/b/XIoyLZaN/jtquotes-1-1) ## Author Justin Yan, a iOS/Mac developer - [Blog JustinYan.me](http://justinyan.me) - [Twitter @MapleShadow](https://twitter.com/MapleShadow) - Email: fengying7@gmail.com
c8db390195641c33f84ccd1f645a5af73debc2bd
xapi/tasks.py
xapi/tasks.py
from celery.task import task from django.conf import settings from xapi.sender import TinCanSender @task def send_2_tin_can(): options = settings.TRACKING_BACKENDS['xapi']['OPTIONS'] if options.get("SEND_CRON_ENABLED"): TinCanSender.send_2_tincan_by_settings()
from celery.task import task from django.conf import settings from xapi.sender import TinCanSender @task(name='xapi.send_2_tin_can') def send_2_tin_can(): options = settings.TRACKING_BACKENDS['xapi']['OPTIONS'] TinCanSender.send_2_tincan_by_settings()
Add a name to present task in djcelery options
Add a name to present task in djcelery options
Python
agpl-3.0
marcore/pok-eco,marcore/pok-eco
python
## Code Before: from celery.task import task from django.conf import settings from xapi.sender import TinCanSender @task def send_2_tin_can(): options = settings.TRACKING_BACKENDS['xapi']['OPTIONS'] if options.get("SEND_CRON_ENABLED"): TinCanSender.send_2_tincan_by_settings() ## Instruction: Add a name to present task in djcelery options ## Code After: from celery.task import task from django.conf import settings from xapi.sender import TinCanSender @task(name='xapi.send_2_tin_can') def send_2_tin_can(): options = settings.TRACKING_BACKENDS['xapi']['OPTIONS'] TinCanSender.send_2_tincan_by_settings()
13d6d4e18d98f7c2d496f3454216d96a4d8e95d1
WikipediaUnitTests/Code/FBSnapshotTestCase+WMFConvenience.h
WikipediaUnitTests/Code/FBSnapshotTestCase+WMFConvenience.h
/** * @function WMFSnapshotVerifyView * * Verify correct appearance of a given view. * * Search all folder suffixes, use default naming conventions. * * @param view The view to verify. */ #define WMFSnapshotVerifyView(view) FBSnapshotVerifyView((view), nil) /** * @function WMFSnapshotVerifyViewForOSAndWritingDirection * * Compares @c view with a reference image matching the current OS version & application writing direction (e.g. * "testLaysOutProperly_9.2_RTL@2x.png"). * * @param view The view to verify. */ #define WMFSnapshotVerifyViewForOSAndWritingDirection(view) \ FBSnapshotVerifyView((view), [[UIApplication sharedApplication] wmf_systemVersionAndWritingDirection]); @interface FBSnapshotTestCase (WMFConvenience) - (void)wmf_verifyMultilineLabelWithText:(id)stringOrAttributedString width:(CGFloat)width; - (void)wmf_verifyCellWithIdentifier:(NSString *)identifier fromTableView:(UITableView *)tableView width:(CGFloat)width configuredWithBlock:(void (^)(UITableViewCell *))block; - (void)wmf_verifyView:(UIView *)view width:(CGFloat)width; - (void)wmf_verifyViewAtWindowWidth:(UIView *)view; @end
/** * @function WMFSnapshotVerifyView * * Verify correct appearance of a given view. * * Search all folder suffixes, use default naming conventions. * * @param view The view to verify. */ #define WMFSnapshotVerifyView(view) FBSnapshotVerifyView((view), nil) /** * @function WMFSnapshotVerifyViewForOSAndWritingDirection * * Compares @c view with a reference image matching the current OS version & application writing direction (e.g. * "testLaysOutProperly_9.2_RTL@2x.png"). * * @param view The view to verify. */ #define WMFSnapshotVerifyViewForOSAndWritingDirection(view) \ FBSnapshotVerifyViewWithOptions((view), [[UIApplication sharedApplication] wmf_systemVersionAndWritingDirection], FBSnapshotTestCaseDefaultSuffixes(), 0.1); @interface FBSnapshotTestCase (WMFConvenience) - (void)wmf_verifyMultilineLabelWithText:(id)stringOrAttributedString width:(CGFloat)width; - (void)wmf_verifyCellWithIdentifier:(NSString *)identifier fromTableView:(UITableView *)tableView width:(CGFloat)width configuredWithBlock:(void (^)(UITableViewCell *))block; - (void)wmf_verifyView:(UIView *)view width:(CGFloat)width; - (void)wmf_verifyViewAtWindowWidth:(UIView *)view; @end
Add slight tolerance for image differences to visual test macro.
Add slight tolerance for image differences to visual test macro.
C
mit
wikimedia/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios,wikimedia/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,josve05a/wikipedia-ios,montehurd/apps-ios-wikipedia,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios
c
## Code Before: /** * @function WMFSnapshotVerifyView * * Verify correct appearance of a given view. * * Search all folder suffixes, use default naming conventions. * * @param view The view to verify. */ #define WMFSnapshotVerifyView(view) FBSnapshotVerifyView((view), nil) /** * @function WMFSnapshotVerifyViewForOSAndWritingDirection * * Compares @c view with a reference image matching the current OS version & application writing direction (e.g. * "testLaysOutProperly_9.2_RTL@2x.png"). * * @param view The view to verify. */ #define WMFSnapshotVerifyViewForOSAndWritingDirection(view) \ FBSnapshotVerifyView((view), [[UIApplication sharedApplication] wmf_systemVersionAndWritingDirection]); @interface FBSnapshotTestCase (WMFConvenience) - (void)wmf_verifyMultilineLabelWithText:(id)stringOrAttributedString width:(CGFloat)width; - (void)wmf_verifyCellWithIdentifier:(NSString *)identifier fromTableView:(UITableView *)tableView width:(CGFloat)width configuredWithBlock:(void (^)(UITableViewCell *))block; - (void)wmf_verifyView:(UIView *)view width:(CGFloat)width; - (void)wmf_verifyViewAtWindowWidth:(UIView *)view; @end ## Instruction: Add slight tolerance for image differences to visual test macro. ## Code After: /** * @function WMFSnapshotVerifyView * * Verify correct appearance of a given view. * * Search all folder suffixes, use default naming conventions. * * @param view The view to verify. */ #define WMFSnapshotVerifyView(view) FBSnapshotVerifyView((view), nil) /** * @function WMFSnapshotVerifyViewForOSAndWritingDirection * * Compares @c view with a reference image matching the current OS version & application writing direction (e.g. * "testLaysOutProperly_9.2_RTL@2x.png"). * * @param view The view to verify. */ #define WMFSnapshotVerifyViewForOSAndWritingDirection(view) \ FBSnapshotVerifyViewWithOptions((view), [[UIApplication sharedApplication] wmf_systemVersionAndWritingDirection], FBSnapshotTestCaseDefaultSuffixes(), 0.1); @interface FBSnapshotTestCase (WMFConvenience) - (void)wmf_verifyMultilineLabelWithText:(id)stringOrAttributedString width:(CGFloat)width; - (void)wmf_verifyCellWithIdentifier:(NSString *)identifier fromTableView:(UITableView *)tableView width:(CGFloat)width configuredWithBlock:(void (^)(UITableViewCell *))block; - (void)wmf_verifyView:(UIView *)view width:(CGFloat)width; - (void)wmf_verifyViewAtWindowWidth:(UIView *)view; @end
bac9f7161886c0190ae48ac4ecffc1caa8cd0ff4
app/views/snippets/form_inset_panel.html
app/views/snippets/form_inset_panel.html
<div class="form-group"> <div class="panel panel-border-narrow" id="contact-by-text"> <label class="form-label" for="contact-text-message">Mobile phone number</label> <input class="form-control" name="contact-text-message" type="text" id="contact-text-message"> </div> </div>
<div class="form-group"> <div class="panel panel-border-narrow"> <label class="form-label" for="contact-text-message">Mobile phone number</label> <input class="form-control" name="contact-text-message" type="text" id="contact-text-message"> </div> </div>
Remove duplicate ID - contact-by-text
Remove duplicate ID - contact-by-text
HTML
mit
alphagov/govuk_elements,alphagov/govuk_elements,alphagov/govuk_elements,alphagov/govuk_elements
html
## Code Before: <div class="form-group"> <div class="panel panel-border-narrow" id="contact-by-text"> <label class="form-label" for="contact-text-message">Mobile phone number</label> <input class="form-control" name="contact-text-message" type="text" id="contact-text-message"> </div> </div> ## Instruction: Remove duplicate ID - contact-by-text ## Code After: <div class="form-group"> <div class="panel panel-border-narrow"> <label class="form-label" for="contact-text-message">Mobile phone number</label> <input class="form-control" name="contact-text-message" type="text" id="contact-text-message"> </div> </div>
ebe00f7ad2d4cd772571bb245524fe944d008858
README.md
README.md
haskell-call-trace ================== Fancy call tracing for Haskell. Dependencies ------------ For 'Data.Proxy': ``` cabal install tagged ```
haskell-call-trace ================== Fancy call tracing for Haskell. An example is written up [here](http://stackoverflow.com/a/20829134/470844). Dependencies ------------ For 'Data.Proxy': cabal install tagged
Add link to SO example.
Add link to SO example.
Markdown
mpl-2.0
ntc2/haskell-call-trace
markdown
## Code Before: haskell-call-trace ================== Fancy call tracing for Haskell. Dependencies ------------ For 'Data.Proxy': ``` cabal install tagged ``` ## Instruction: Add link to SO example. ## Code After: haskell-call-trace ================== Fancy call tracing for Haskell. An example is written up [here](http://stackoverflow.com/a/20829134/470844). Dependencies ------------ For 'Data.Proxy': cabal install tagged
ef1478f6580a8cfb7d078c62d4dbae650ed3b980
source/assets/stylesheets/components/_button.scss
source/assets/stylesheets/components/_button.scss
.c-button { appearance: none; background-color: $action-color; border: 0; border-radius: $base-border-radius; color: $white; cursor: pointer; display: inline-block; font-family: $base-font-family; font-size: modular-scale(0); -webkit-font-smoothing: antialiased; font-weight: 600; line-height: 2; padding: 0 modular-scale(0); text-align: center; text-decoration: none; transition: background-color $base-duration $base-timing; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: shade($action-color, 20%); color: $white; } &:disabled { cursor: not-allowed; opacity: 0.5; &:hover { background-color: $action-color; } } }
.c-button { appearance: none; background-color: $action-color; border: 1px solid $action-color; border-radius: $base-border-radius; color: $white; cursor: pointer; display: inline-block; font-family: $base-font-family; font-size: modular-scale(0); -webkit-font-smoothing: antialiased; font-weight: 600; line-height: 2; padding: 0 modular-scale(0); text-align: center; text-decoration: none; transition: background-color $base-duration $base-timing, border-color $base-duration $base-timing; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: shade($action-color, 10%); border-color: shade($action-color, 10%); color: $white; } &:disabled { cursor: not-allowed; opacity: 0.5; &:hover { background-color: $action-color; } } }
Add border to buttons to match input height
Add border to buttons to match input height
SCSS
mit
thoughtbot/bourbon.io,thoughtbot/bourbon.io,thoughtbot/bourbon.io,thoughtbot/bourbon.io
scss
## Code Before: .c-button { appearance: none; background-color: $action-color; border: 0; border-radius: $base-border-radius; color: $white; cursor: pointer; display: inline-block; font-family: $base-font-family; font-size: modular-scale(0); -webkit-font-smoothing: antialiased; font-weight: 600; line-height: 2; padding: 0 modular-scale(0); text-align: center; text-decoration: none; transition: background-color $base-duration $base-timing; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: shade($action-color, 20%); color: $white; } &:disabled { cursor: not-allowed; opacity: 0.5; &:hover { background-color: $action-color; } } } ## Instruction: Add border to buttons to match input height ## Code After: .c-button { appearance: none; background-color: $action-color; border: 1px solid $action-color; border-radius: $base-border-radius; color: $white; cursor: pointer; display: inline-block; font-family: $base-font-family; font-size: modular-scale(0); -webkit-font-smoothing: antialiased; font-weight: 600; line-height: 2; padding: 0 modular-scale(0); text-align: center; text-decoration: none; transition: background-color $base-duration $base-timing, border-color $base-duration $base-timing; user-select: none; vertical-align: middle; white-space: nowrap; &:hover, &:focus { background-color: shade($action-color, 10%); border-color: shade($action-color, 10%); color: $white; } &:disabled { cursor: not-allowed; opacity: 0.5; &:hover { background-color: $action-color; } } }
91c6a5aaeebacf444aba8d99cba0da945c0ce732
src/doc/unstable-book/src/language-features/infer-static-outlives-requirements.md
src/doc/unstable-book/src/language-features/infer-static-outlives-requirements.md
The tracking issue for this feature is: [#44493] [#44493]: https://github.com/rust-lang/rust/issues/44493 ------------------------ The `infer_static_outlives_requirements` feature indicates that certain `'static` outlives requirements can be inferred by the compiler rather than stating them explicitly. Note: It is an accompanying feature to `infer_outlives_requirements`, which must be enabled to infer outlives requirements. For example, currently generic struct definitions that contain references, require where-clauses of the form T: 'static. By using this feature the outlives predicates will be inferred, although they may still be written explicitly. ```rust,ignore (pseudo-Rust) struct Foo<U> where U: 'static { // <-- currently required bar: Bar<U> } struct Bar<T: 'static> { x: T, } ``` ## Examples: ```rust,ignore (pseudo-Rust) #![feature(infer_outlives_requirements)] #![feature(infer_static_outlives_requirements)] #[rustc_outlives] // Implicitly infer U: 'static struct Foo<U> { bar: Bar<U> } struct Bar<T: 'static> { x: T, } ```
The tracking issue for this feature is: [#54185] [#54185]: https://github.com/rust-lang/rust/issues/54185 ------------------------ The `infer_static_outlives_requirements` feature indicates that certain `'static` outlives requirements can be inferred by the compiler rather than stating them explicitly. Note: It is an accompanying feature to `infer_outlives_requirements`, which must be enabled to infer outlives requirements. For example, currently generic struct definitions that contain references, require where-clauses of the form T: 'static. By using this feature the outlives predicates will be inferred, although they may still be written explicitly. ```rust,ignore (pseudo-Rust) struct Foo<U> where U: 'static { // <-- currently required bar: Bar<U> } struct Bar<T: 'static> { x: T, } ``` ## Examples: ```rust,ignore (pseudo-Rust) #![feature(infer_outlives_requirements)] #![feature(infer_static_outlives_requirements)] #[rustc_outlives] // Implicitly infer U: 'static struct Foo<U> { bar: Bar<U> } struct Bar<T: 'static> { x: T, } ```
Fix issue number of `infer_static_outlives_requirements`
Fix issue number of `infer_static_outlives_requirements`
Markdown
apache-2.0
aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust
markdown
## Code Before: The tracking issue for this feature is: [#44493] [#44493]: https://github.com/rust-lang/rust/issues/44493 ------------------------ The `infer_static_outlives_requirements` feature indicates that certain `'static` outlives requirements can be inferred by the compiler rather than stating them explicitly. Note: It is an accompanying feature to `infer_outlives_requirements`, which must be enabled to infer outlives requirements. For example, currently generic struct definitions that contain references, require where-clauses of the form T: 'static. By using this feature the outlives predicates will be inferred, although they may still be written explicitly. ```rust,ignore (pseudo-Rust) struct Foo<U> where U: 'static { // <-- currently required bar: Bar<U> } struct Bar<T: 'static> { x: T, } ``` ## Examples: ```rust,ignore (pseudo-Rust) #![feature(infer_outlives_requirements)] #![feature(infer_static_outlives_requirements)] #[rustc_outlives] // Implicitly infer U: 'static struct Foo<U> { bar: Bar<U> } struct Bar<T: 'static> { x: T, } ``` ## Instruction: Fix issue number of `infer_static_outlives_requirements` ## Code After: The tracking issue for this feature is: [#54185] [#54185]: https://github.com/rust-lang/rust/issues/54185 ------------------------ The `infer_static_outlives_requirements` feature indicates that certain `'static` outlives requirements can be inferred by the compiler rather than stating them explicitly. Note: It is an accompanying feature to `infer_outlives_requirements`, which must be enabled to infer outlives requirements. For example, currently generic struct definitions that contain references, require where-clauses of the form T: 'static. By using this feature the outlives predicates will be inferred, although they may still be written explicitly. ```rust,ignore (pseudo-Rust) struct Foo<U> where U: 'static { // <-- currently required bar: Bar<U> } struct Bar<T: 'static> { x: T, } ``` ## Examples: ```rust,ignore (pseudo-Rust) #![feature(infer_outlives_requirements)] #![feature(infer_static_outlives_requirements)] #[rustc_outlives] // Implicitly infer U: 'static struct Foo<U> { bar: Bar<U> } struct Bar<T: 'static> { x: T, } ```
1b4cd822a398eda824c0ea4223e665977abf50e6
app/containers/SignupPage/index.js
app/containers/SignupPage/index.js
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import Header from 'components/Header'; import SignupCard from 'components/SignupCard'; export class SignupPage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <Helmet title="Signup Page" meta={[ { name: 'description', content: 'Signup Page of Book Trader application' }, ]} /> <Header location={this.props.location.pathname} /> <div className="container"> <SignupCard signup={() => { console.log('signup'); }} /> </div> </div> ); } } SignupPage.propTypes = { dispatch: PropTypes.func.isRequired, location: PropTypes.object, }; function mapDispatchToProps(dispatch) { return { dispatch, }; } export default connect(null, mapDispatchToProps)(SignupPage);
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { signupRequest } from 'containers/App/actions'; import { makeSelectError } from 'containers/App/selectors'; import Header from 'components/Header'; import SignupCard from 'components/SignupCard'; export class SignupPage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <Helmet title="Signup Page" meta={[ { name: 'description', content: 'Signup Page of Book Trader application' }, ]} /> <Header location={this.props.location.pathname} /> <div className="container"> <SignupCard signup={this.props.signup} error={this.props.error} /> </div> </div> ); } } SignupPage.propTypes = { signup: PropTypes.func.isRequired, location: PropTypes.object, error: PropTypes.oneOfType([ PropTypes.string, PropTypes.bool, ]), }; const mapStateToProps = createStructuredSelector({ error: makeSelectError(), }); function mapDispatchToProps(dispatch) { return { signup: (payload) => dispatch(signupRequest(payload)), }; } export default connect(mapStateToProps, mapDispatchToProps)(SignupPage);
Connect error state adn signupRequest action
Connect error state adn signupRequest action
JavaScript
mit
kevinnorris/bookTrading,kevinnorris/bookTrading
javascript
## Code Before: import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import Header from 'components/Header'; import SignupCard from 'components/SignupCard'; export class SignupPage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <Helmet title="Signup Page" meta={[ { name: 'description', content: 'Signup Page of Book Trader application' }, ]} /> <Header location={this.props.location.pathname} /> <div className="container"> <SignupCard signup={() => { console.log('signup'); }} /> </div> </div> ); } } SignupPage.propTypes = { dispatch: PropTypes.func.isRequired, location: PropTypes.object, }; function mapDispatchToProps(dispatch) { return { dispatch, }; } export default connect(null, mapDispatchToProps)(SignupPage); ## Instruction: Connect error state adn signupRequest action ## Code After: import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { signupRequest } from 'containers/App/actions'; import { makeSelectError } from 'containers/App/selectors'; import Header from 'components/Header'; import SignupCard from 'components/SignupCard'; export class SignupPage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <Helmet title="Signup Page" meta={[ { name: 'description', content: 'Signup Page of Book Trader application' }, ]} /> <Header location={this.props.location.pathname} /> <div className="container"> <SignupCard signup={this.props.signup} error={this.props.error} /> </div> </div> ); } } SignupPage.propTypes = { signup: PropTypes.func.isRequired, location: PropTypes.object, error: PropTypes.oneOfType([ PropTypes.string, PropTypes.bool, ]), }; const mapStateToProps = createStructuredSelector({ error: makeSelectError(), }); function mapDispatchToProps(dispatch) { return { signup: (payload) => dispatch(signupRequest(payload)), }; } export default connect(mapStateToProps, mapDispatchToProps)(SignupPage);
1edd18806eada3871b92f53c3594a5fe75223f10
bootstrap/main.sh
bootstrap/main.sh
set -eu scripts/configure.sh echo scripts/deploy.sh echo # install homebrew if ! command -v brew >/dev/null 2>&1; then prefix="" if [ "$(uname -m)" = "arm64" ]; then # Install on Rosetta 2 prefix="arch -arch x86_64" fi # Install homebrew: https://brew.sh/ "${prefix}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" fi brew bundle echo mackup restore echo scripts/initialize.sh echo scripts/configure_brew.sh echo "Bootstrapping DONE!"
set -eu scripts/configure.sh echo scripts/deploy.sh echo # Install Rosetta 2 when ARM if [ "$(uname -m)" = "arm64" ]; then softwareupdate --install-rosetta --agree-to-license fi # install homebrew if ! command -v brew >/dev/null 2>&1; then prefix="" if [ "$(uname -m)" = "arm64" ]; then # Install on Rosetta 2 prefix="arch -arch x86_64" fi # Install homebrew: https://brew.sh/ "${prefix}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" fi brew bundle echo mackup restore echo scripts/initialize.sh echo scripts/configure_brew.sh echo "Bootstrapping DONE!"
Install Rosetta 2 on ARM64 Mac
Install Rosetta 2 on ARM64 Mac
Shell
mit
ikuwow/dotfiles,ikuwow/dotfiles,ikuwow/dotfiles
shell
## Code Before: set -eu scripts/configure.sh echo scripts/deploy.sh echo # install homebrew if ! command -v brew >/dev/null 2>&1; then prefix="" if [ "$(uname -m)" = "arm64" ]; then # Install on Rosetta 2 prefix="arch -arch x86_64" fi # Install homebrew: https://brew.sh/ "${prefix}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" fi brew bundle echo mackup restore echo scripts/initialize.sh echo scripts/configure_brew.sh echo "Bootstrapping DONE!" ## Instruction: Install Rosetta 2 on ARM64 Mac ## Code After: set -eu scripts/configure.sh echo scripts/deploy.sh echo # Install Rosetta 2 when ARM if [ "$(uname -m)" = "arm64" ]; then softwareupdate --install-rosetta --agree-to-license fi # install homebrew if ! command -v brew >/dev/null 2>&1; then prefix="" if [ "$(uname -m)" = "arm64" ]; then # Install on Rosetta 2 prefix="arch -arch x86_64" fi # Install homebrew: https://brew.sh/ "${prefix}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" fi brew bundle echo mackup restore echo scripts/initialize.sh echo scripts/configure_brew.sh echo "Bootstrapping DONE!"
9886dce63dfa876e00a088655bed49370466dd43
packages/components/containers/referral/rewards/table/RewardCell.tsx
packages/components/containers/referral/rewards/table/RewardCell.tsx
import { c, msgid } from 'ttag'; import { Referral, ReferralState } from '@proton/shared/lib/interfaces'; interface Props { referral: Referral; } const RewardCell = ({ referral }: Props) => { let reward: string | React.ReactNode = '-'; const monthsRewarded = referral.RewardMonths || 0; switch (referral.State) { case ReferralState.SIGNED_UP: case ReferralState.COMPLETED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user would be allowed to get. * Example : "3 months pending" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month pending`, `${monthsRewarded} months pending`, monthsRewarded ); break; case ReferralState.REWARDED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user has been credited. * Example : "3 months credited" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month credited`, `${monthsRewarded} months credited`, monthsRewarded ); break; } return <>{reward}</>; }; export default RewardCell;
import { c, msgid } from 'ttag'; import { Referral, ReferralState } from '@proton/shared/lib/interfaces'; interface Props { referral: Referral; } const RewardCell = ({ referral }: Props) => { let reward: string | React.ReactNode = '-'; const monthsRewarded = referral.RewardMonths || 0; switch (referral.State) { case ReferralState.COMPLETED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user would be allowed to get. * Example : "3 months pending" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month pending`, `${monthsRewarded} months pending`, monthsRewarded ); break; case ReferralState.REWARDED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user has been credited. * Example : "3 months credited" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month credited`, `${monthsRewarded} months credited`, monthsRewarded ); break; } return <>{reward}</>; }; export default RewardCell;
Remove pending months in reward cell when signedup or trial
Remove pending months in reward cell when signedup or trial
TypeScript
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
typescript
## Code Before: import { c, msgid } from 'ttag'; import { Referral, ReferralState } from '@proton/shared/lib/interfaces'; interface Props { referral: Referral; } const RewardCell = ({ referral }: Props) => { let reward: string | React.ReactNode = '-'; const monthsRewarded = referral.RewardMonths || 0; switch (referral.State) { case ReferralState.SIGNED_UP: case ReferralState.COMPLETED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user would be allowed to get. * Example : "3 months pending" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month pending`, `${monthsRewarded} months pending`, monthsRewarded ); break; case ReferralState.REWARDED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user has been credited. * Example : "3 months credited" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month credited`, `${monthsRewarded} months credited`, monthsRewarded ); break; } return <>{reward}</>; }; export default RewardCell; ## Instruction: Remove pending months in reward cell when signedup or trial ## Code After: import { c, msgid } from 'ttag'; import { Referral, ReferralState } from '@proton/shared/lib/interfaces'; interface Props { referral: Referral; } const RewardCell = ({ referral }: Props) => { let reward: string | React.ReactNode = '-'; const monthsRewarded = referral.RewardMonths || 0; switch (referral.State) { case ReferralState.COMPLETED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user would be allowed to get. * Example : "3 months pending" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month pending`, `${monthsRewarded} months pending`, monthsRewarded ); break; case ReferralState.REWARDED: /* * translator : We are in a table cell. * A user referee have signed up or completed a subscription * We show the reward user has been credited. * Example : "3 months credited" */ reward = c('Label').ngettext( msgid`${monthsRewarded} month credited`, `${monthsRewarded} months credited`, monthsRewarded ); break; } return <>{reward}</>; }; export default RewardCell;
d054abe3c3ee1ebe623c9b8fa5a62ab3da68a32e
installer/frontend/facts.js
installer/frontend/facts.js
export const AWS_INSTANCE_TYPES = [ { label: 't2.medium (vCPU 2 / Memory 4 GiB)', value: 't2.medium', vcpus: 2, }, { label: 't2.large (vCPU 2 / Memory 8 GiB)', value: 't2.large', vcpus: 2, }, { label: 'm4.large (vCPU 2 / Memory 8 GiB)', value: 'm4.large', vcpus: 2, }, { label: 'm4.xlarge (vCPU 4 / Memory 16 GiB)', value: 'm4.xlarge', vcpus: 4, }, { label: 'm4.2xlarge (vCPU 8 / Memory 32 GiB)', value: 'm4.2xlarge', vcpus: 8, }, { label: 'm3.medium (vCPU 1 / Memory 3.75 GiB)', value: 'm3.medium', vcpus: 1, }, { label: 'm3.large (vCPU 2 / Memory 7.5 GiB)', value: 'm3.large', vcpus: 2, }, { label: 'm3.xlarge (vCPU 4 / Memory 15 GiB)', value: 'm3.xlarge', vcpus: 4, }, ];
export const AWS_INSTANCE_TYPES = [ { label: 't2.medium (vCPU 2 / Memory 4 GiB)', value: 't2.medium', }, { label: 't2.large (vCPU 2 / Memory 8 GiB)', value: 't2.large', }, { label: 'm4.large (vCPU 2 / Memory 8 GiB)', value: 'm4.large', }, { label: 'm4.xlarge (vCPU 4 / Memory 16 GiB)', value: 'm4.xlarge', }, { label: 'm4.2xlarge (vCPU 8 / Memory 32 GiB)', value: 'm4.2xlarge', }, { label: 'm3.medium (vCPU 1 / Memory 3.75 GiB)', value: 'm3.medium', }, { label: 'm3.large (vCPU 2 / Memory 7.5 GiB)', value: 'm3.large', }, { label: 'm3.xlarge (vCPU 4 / Memory 15 GiB)', value: 'm3.xlarge', }, ];
Remove unused "vcpus" attribute from instance types list
frontend: Remove unused "vcpus" attribute from instance types list
JavaScript
apache-2.0
coreos/tectonic-installer,colemickens/tectonic-installer,squat/tectonic-installer,coreos/tectonic-installer,kalmog/tectonic-installer,hhoover/tectonic-installer,lander2k2/tectonic-installer,coreos/tectonic-installer,squat/tectonic-installer,rithujohn191/tectonic-installer,alexsomesan/tectonic-installer,mrwacky42/tectonic-installer,kalmog/tectonic-installer,justaugustus/tectonic-installer,mrwacky42/tectonic-installer,squat/tectonic-installer,derekhiggins/installer,kyoto/tectonic-installer,joshix/tectonic-installer,mrwacky42/tectonic-installer,s-urbaniak/tectonic-installer,alexsomesan/tectonic-installer,justaugustus/tectonic-installer,joshix/tectonic-installer,coreos/tectonic-installer,s-urbaniak/tectonic-installer,cpanato/tectonic-installer,kyoto/tectonic-installer,kyoto/tectonic-installer,coreos/tectonic-installer,zbwright/tectonic-installer,lander2k2/tectonic-installer,s-urbaniak/tectonic-installer,justaugustus/tectonic-installer,kyoto/tectonic-installer,metral/tectonic-installer,squat/tectonic-installer,justaugustus/tectonic-installer,aknuds1/tectonic-installer,cpanato/tectonic-installer,colemickens/tectonic-installer,lander2k2/tectonic-installer,aknuds1/tectonic-installer,derekhiggins/installer,s-urbaniak/tectonic-installer,joshix/tectonic-installer,kalmog/tectonic-installer,mrwacky42/tectonic-installer,cpanato/tectonic-installer,zbwright/tectonic-installer,zbwright/tectonic-installer,colemickens/tectonic-installer,rithujohn191/tectonic-installer,metral/tectonic-installer,alexsomesan/tectonic-installer,zbwright/tectonic-installer,alexsomesan/tectonic-installer,colemickens/tectonic-installer,rithujohn191/tectonic-installer,aknuds1/tectonic-installer,lander2k2/tectonic-installer,kyoto/tectonic-installer,metral/tectonic-installer,justaugustus/tectonic-installer,zbwright/tectonic-installer,aknuds1/tectonic-installer,hhoover/tectonic-installer,hhoover/tectonic-installer,hhoover/tectonic-installer,rithujohn191/tectonic-installer,colemickens/tectonic-installer,cpanato/tectonic-installer,metral/tectonic-installer,joshix/tectonic-installer,aknuds1/tectonic-installer,s-urbaniak/tectonic-installer,hhoover/tectonic-installer,alexsomesan/tectonic-installer,rithujohn191/tectonic-installer,metral/tectonic-installer,mrwacky42/tectonic-installer,joshix/tectonic-installer
javascript
## Code Before: export const AWS_INSTANCE_TYPES = [ { label: 't2.medium (vCPU 2 / Memory 4 GiB)', value: 't2.medium', vcpus: 2, }, { label: 't2.large (vCPU 2 / Memory 8 GiB)', value: 't2.large', vcpus: 2, }, { label: 'm4.large (vCPU 2 / Memory 8 GiB)', value: 'm4.large', vcpus: 2, }, { label: 'm4.xlarge (vCPU 4 / Memory 16 GiB)', value: 'm4.xlarge', vcpus: 4, }, { label: 'm4.2xlarge (vCPU 8 / Memory 32 GiB)', value: 'm4.2xlarge', vcpus: 8, }, { label: 'm3.medium (vCPU 1 / Memory 3.75 GiB)', value: 'm3.medium', vcpus: 1, }, { label: 'm3.large (vCPU 2 / Memory 7.5 GiB)', value: 'm3.large', vcpus: 2, }, { label: 'm3.xlarge (vCPU 4 / Memory 15 GiB)', value: 'm3.xlarge', vcpus: 4, }, ]; ## Instruction: frontend: Remove unused "vcpus" attribute from instance types list ## Code After: export const AWS_INSTANCE_TYPES = [ { label: 't2.medium (vCPU 2 / Memory 4 GiB)', value: 't2.medium', }, { label: 't2.large (vCPU 2 / Memory 8 GiB)', value: 't2.large', }, { label: 'm4.large (vCPU 2 / Memory 8 GiB)', value: 'm4.large', }, { label: 'm4.xlarge (vCPU 4 / Memory 16 GiB)', value: 'm4.xlarge', }, { label: 'm4.2xlarge (vCPU 8 / Memory 32 GiB)', value: 'm4.2xlarge', }, { label: 'm3.medium (vCPU 1 / Memory 3.75 GiB)', value: 'm3.medium', }, { label: 'm3.large (vCPU 2 / Memory 7.5 GiB)', value: 'm3.large', }, { label: 'm3.xlarge (vCPU 4 / Memory 15 GiB)', value: 'm3.xlarge', }, ];
cfcec975b5da50bffc07044ae115c80cd5e42599
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.5 - 5.6 env: - DOCTRINE_VERSION=2.1.*@dev - DOCTRINE_VERSION=2.2.*@dev - DOCTRINE_VERSION=2.3.*@dev - DOCTRINE_VERSION=2.4.*@dev - DOCTRINE_VERSION=2.5.*@dev before_script: - composer self-update - composer install --dev --prefer-source - composer require doctrine/dbal:${DOCTRINE_VERSION} script: phpunit --coverage-text --coverage-clover ./build/logs/clover.doctrine.coveralls.yml-$DOCTRINE_VERSION.xml after_script: - php vendor/bin/coveralls -v notifications: email: false hipchat: b00ece55a12a4a46874554f64029c9@Allgemein
language: php php: - 5.4 - 5.5 - 5.6 env: - DOCTRINE_VERSION=2.1.* - DOCTRINE_VERSION=2.2.* - DOCTRINE_VERSION=2.3.* - DOCTRINE_VERSION=2.4.* - DOCTRINE_VERSION=2.5.*@dev before_script: - composer self-update - composer install --dev --prefer-source - composer require doctrine/dbal:${DOCTRINE_VERSION} script: phpunit --coverage-text --coverage-clover ./build/logs/clover.doctrine-$DOCTRINE_VERSION.xml after_script: - php vendor/bin/coveralls -v notifications: email: false hipchat: b00ece55a12a4a46874554f64029c9@Allgemein
Use stable versions if possible and tweak clover filename
Use stable versions if possible and tweak clover filename
YAML
bsd-3-clause
prooph/event-store-doctrine-adapter,codeliner/event-store-doctrine-adapter,prolic/event-store-doctrine-adapter
yaml
## Code Before: language: php php: - 5.4 - 5.5 - 5.6 env: - DOCTRINE_VERSION=2.1.*@dev - DOCTRINE_VERSION=2.2.*@dev - DOCTRINE_VERSION=2.3.*@dev - DOCTRINE_VERSION=2.4.*@dev - DOCTRINE_VERSION=2.5.*@dev before_script: - composer self-update - composer install --dev --prefer-source - composer require doctrine/dbal:${DOCTRINE_VERSION} script: phpunit --coverage-text --coverage-clover ./build/logs/clover.doctrine.coveralls.yml-$DOCTRINE_VERSION.xml after_script: - php vendor/bin/coveralls -v notifications: email: false hipchat: b00ece55a12a4a46874554f64029c9@Allgemein ## Instruction: Use stable versions if possible and tweak clover filename ## Code After: language: php php: - 5.4 - 5.5 - 5.6 env: - DOCTRINE_VERSION=2.1.* - DOCTRINE_VERSION=2.2.* - DOCTRINE_VERSION=2.3.* - DOCTRINE_VERSION=2.4.* - DOCTRINE_VERSION=2.5.*@dev before_script: - composer self-update - composer install --dev --prefer-source - composer require doctrine/dbal:${DOCTRINE_VERSION} script: phpunit --coverage-text --coverage-clover ./build/logs/clover.doctrine-$DOCTRINE_VERSION.xml after_script: - php vendor/bin/coveralls -v notifications: email: false hipchat: b00ece55a12a4a46874554f64029c9@Allgemein
37b123271739ea3a8dcd9397873b9c2e9949fe6f
packages/Python/lldbsuite/test/make/pseudo_barrier.h
packages/Python/lldbsuite/test/make/pseudo_barrier.h
typedef std::atomic<int> pseudo_barrier_t; static inline void pseudo_barrier_wait(pseudo_barrier_t &barrier) { --barrier; while (barrier > 0) std::this_thread::yield(); } static inline void pseudo_barrier_init(pseudo_barrier_t &barrier, int count) { barrier = count; }
// Note that although hogging the CPU while waiting for a variable to change // would be terrible in production code, it's great for testing since it avoids // a lot of messy context switching to get multiple threads synchronized. typedef std::atomic<int> pseudo_barrier_t; #define pseudo_barrier_wait(barrier) \ do \ { \ --(barrier); \ while ((barrier).load() > 0) \ ; \ } while (0) #define pseudo_barrier_init(barrier, count) \ do \ { \ (barrier) = (count); \ } while (0)
Revert "[test] Address TestConcurrentMany*.py flakiness on macOS"
Revert "[test] Address TestConcurrentMany*.py flakiness on macOS" This reverts my change to pseudo_barrier.h which isn't necessary anymore after Fred's fix to debugserver and caused TestThreadStepOut to fail. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@370963 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb
c
## Code Before: typedef std::atomic<int> pseudo_barrier_t; static inline void pseudo_barrier_wait(pseudo_barrier_t &barrier) { --barrier; while (barrier > 0) std::this_thread::yield(); } static inline void pseudo_barrier_init(pseudo_barrier_t &barrier, int count) { barrier = count; } ## Instruction: Revert "[test] Address TestConcurrentMany*.py flakiness on macOS" This reverts my change to pseudo_barrier.h which isn't necessary anymore after Fred's fix to debugserver and caused TestThreadStepOut to fail. git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@370963 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: // Note that although hogging the CPU while waiting for a variable to change // would be terrible in production code, it's great for testing since it avoids // a lot of messy context switching to get multiple threads synchronized. typedef std::atomic<int> pseudo_barrier_t; #define pseudo_barrier_wait(barrier) \ do \ { \ --(barrier); \ while ((barrier).load() > 0) \ ; \ } while (0) #define pseudo_barrier_init(barrier, count) \ do \ { \ (barrier) = (count); \ } while (0)
f684c8a8606c751156a6e37cc3500cfc9792d8e6
src/scripts/ci/travis/after_success.sh
src/scripts/ci/travis/after_success.sh
set -ev which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available if [ "$BUILD_MODE" = "coverage" ]; then GCOV="/usr/bin/gcov-4.8" /tmp/usr/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --list coverage.info coverage run --branch src/python/botan.py codecov fi
set -ev which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available if [ "$BUILD_MODE" = "coverage" ]; then GCOV="/usr/bin/gcov-4.8" /tmp/usr/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --list coverage.info LD_LIBRARY_PATH=. coverage run --branch src/python/botan.py codecov fi
Add LD_LIBRARY_PATH to python coverage
Add LD_LIBRARY_PATH to python coverage
Shell
bsd-2-clause
randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan
shell
## Code Before: set -ev which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available if [ "$BUILD_MODE" = "coverage" ]; then GCOV="/usr/bin/gcov-4.8" /tmp/usr/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --list coverage.info coverage run --branch src/python/botan.py codecov fi ## Instruction: Add LD_LIBRARY_PATH to python coverage ## Code After: set -ev which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available if [ "$BUILD_MODE" = "coverage" ]; then GCOV="/usr/bin/gcov-4.8" /tmp/usr/bin/lcov --gcov-tool "$GCOV" --directory . --capture --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info /tmp/usr/bin/lcov --gcov-tool "$GCOV" --list coverage.info LD_LIBRARY_PATH=. coverage run --branch src/python/botan.py codecov fi
43e058602454ffdc2838e4bb8866a9a908a372eb
app/components/date-list/index.jsx
app/components/date-list/index.jsx
require("./date-list.styl") import React from "react" import {COMMON_DATE} from "../../resources/date-formats" function renderDayListItem (day, i) { return <li key={i}> {this.formatDate(day)} </li> } export default class DateList extends React.Component { formatDate(date) { return date.format(COMMON_DATE) } renderDays() { return this.props.lastWeek.map(renderDayListItem.bind(this)) } render() { return <div> <ul> {this.renderDays()} </ul> </div> } }
require("./date-list.styl") import React from "react" import {COMMON_DATE} from "../../resources/date-formats" function renderDayListItem (day, i) { return <li className="day-list-item" key={i}> {this.formatDate(day)} </li> } export default React.createClass({ formatDate(date) { return date.date.format(COMMON_DATE) }, renderDays() { return this.props.lastWeek.map(renderDayListItem.bind(this)) }, render(){ return ( <div className="date-list"> <ol> {this.renderDays()} </ol> </div> ) } });
Replace hide and reveal buttons with a single toggle button.
Replace hide and reveal buttons with a single toggle button. Debug add-item to cycle properly through the current day index.
JSX
unlicense
babadoozep/ema,babadoozep/ema
jsx
## Code Before: require("./date-list.styl") import React from "react" import {COMMON_DATE} from "../../resources/date-formats" function renderDayListItem (day, i) { return <li key={i}> {this.formatDate(day)} </li> } export default class DateList extends React.Component { formatDate(date) { return date.format(COMMON_DATE) } renderDays() { return this.props.lastWeek.map(renderDayListItem.bind(this)) } render() { return <div> <ul> {this.renderDays()} </ul> </div> } } ## Instruction: Replace hide and reveal buttons with a single toggle button. Debug add-item to cycle properly through the current day index. ## Code After: require("./date-list.styl") import React from "react" import {COMMON_DATE} from "../../resources/date-formats" function renderDayListItem (day, i) { return <li className="day-list-item" key={i}> {this.formatDate(day)} </li> } export default React.createClass({ formatDate(date) { return date.date.format(COMMON_DATE) }, renderDays() { return this.props.lastWeek.map(renderDayListItem.bind(this)) }, render(){ return ( <div className="date-list"> <ol> {this.renderDays()} </ol> </div> ) } });
5d295229c21d1242e6a2bb865d7311168f459cb6
src/main/web/templates/handlebars/list/partials/list-page-breadcrumb.handlebars
src/main/web/templates/handlebars/list/partials/list-page-breadcrumb.handlebars
<nav class="breadcrumb print--hide"> <ol class="breadcrumb__list"> {{#each breadcrumb}} <li class="breadcrumb__item"> <a class="breadcrumb__link" href="{{uri}}">{{description.title}}</a> </li> {{/each}} <li class="breadcrumb__item capitalise"> {{label}} </li> </ol> </nav>
<nav class="breadcrumb print--hide" aria-label="Breadcrumbs"> <ol class="breadcrumb__list"> {{#each breadcrumb}} <li class="breadcrumb__item"> <a class="breadcrumb__link" href="{{uri}}">{{description.title}}</a> </li> {{/each}} <li class="breadcrumb__item capitalise"> {{label}} </li> </ol> </nav>
Add missing label from breadcrumb nav
Add missing label from breadcrumb nav
Handlebars
mit
ONSdigital/babbage,ONSdigital/babbage,ONSdigital/babbage,ONSdigital/babbage
handlebars
## Code Before: <nav class="breadcrumb print--hide"> <ol class="breadcrumb__list"> {{#each breadcrumb}} <li class="breadcrumb__item"> <a class="breadcrumb__link" href="{{uri}}">{{description.title}}</a> </li> {{/each}} <li class="breadcrumb__item capitalise"> {{label}} </li> </ol> </nav> ## Instruction: Add missing label from breadcrumb nav ## Code After: <nav class="breadcrumb print--hide" aria-label="Breadcrumbs"> <ol class="breadcrumb__list"> {{#each breadcrumb}} <li class="breadcrumb__item"> <a class="breadcrumb__link" href="{{uri}}">{{description.title}}</a> </li> {{/each}} <li class="breadcrumb__item capitalise"> {{label}} </li> </ol> </nav>
40aa4af4adec823a926776bb3189673dde62a096
app/views/ngos/events/_event.html.erb
app/views/ngos/events/_event.html.erb
<%= link_to [:ngos, event], class: 'list-group-item' do %> <div class="row"> <div class="col-xs-3"> <h3><%= event.description %></h3> </div> </div> <div class="row"> <div class="col-xs-3"> <h4><%= event.address %> — <%= I18n.localize(event.earliest_shift.starts_at, format:'%d. %b %Y') %> </h4> </div> </div> <% end %>
<%= link_to [:ngos, event], class: 'list-group-item' do %> <div class="row"> <h3><%= event.title %></h3> <h4><%= event.address %> — <%= I18n.localize(event.earliest_shift.starts_at, format:'%d. %b %Y') %> </h4> <p><%= event.description %></p> </div> <% end %>
Add title and clean up events list
Add title and clean up events list
HTML+ERB
agpl-3.0
where2help/where2help,where2help/where2help,where2help/where2help
html+erb
## Code Before: <%= link_to [:ngos, event], class: 'list-group-item' do %> <div class="row"> <div class="col-xs-3"> <h3><%= event.description %></h3> </div> </div> <div class="row"> <div class="col-xs-3"> <h4><%= event.address %> — <%= I18n.localize(event.earliest_shift.starts_at, format:'%d. %b %Y') %> </h4> </div> </div> <% end %> ## Instruction: Add title and clean up events list ## Code After: <%= link_to [:ngos, event], class: 'list-group-item' do %> <div class="row"> <h3><%= event.title %></h3> <h4><%= event.address %> — <%= I18n.localize(event.earliest_shift.starts_at, format:'%d. %b %Y') %> </h4> <p><%= event.description %></p> </div> <% end %>
d94887d20a9b985593ae2566bc100345a4700021
example/stats.dart
example/stats.dart
import "package:osx/osx.dart"; void main() { say("Battery is at ${Battery.getLevel()}%"); }
import "package:osx/osx.dart"; void main() { say("Battery is at ${Battery.getLevel()}%"); say("There are ${Applications.list().length} apps installed"); }
Add More to Stats Example
Add More to Stats Example
Dart
mit
DirectMyFile/osx.dart
dart
## Code Before: import "package:osx/osx.dart"; void main() { say("Battery is at ${Battery.getLevel()}%"); } ## Instruction: Add More to Stats Example ## Code After: import "package:osx/osx.dart"; void main() { say("Battery is at ${Battery.getLevel()}%"); say("There are ${Applications.list().length} apps installed"); }
7d49a20492e4a92afb07c194195856292b72a589
lib/modules/storage/utils/omit_undefined.js
lib/modules/storage/utils/omit_undefined.js
import _ from 'lodash'; function omitUndefined(obj) { const result = {}; _.forOwn(obj, function(value, key) { if (_.isPlainObject(value)) { result[key] = omitUndefined(value); } else if (!_.isUndefined(value)) { result[key] = value; } }); return result; } export default omitUndefined;
import _ from 'lodash'; function omitUndefined(obj) { return _.transform(obj, function(result, value, key) { if (_.isPlainObject(value)) { result[key] = omitUndefined(value); } else if (!_.isUndefined(value)) { result[key] = value; } }); } export default omitUndefined;
Use _.transform instead of _.reduce
Use _.transform instead of _.reduce
JavaScript
mit
jagi/meteor-astronomy
javascript
## Code Before: import _ from 'lodash'; function omitUndefined(obj) { const result = {}; _.forOwn(obj, function(value, key) { if (_.isPlainObject(value)) { result[key] = omitUndefined(value); } else if (!_.isUndefined(value)) { result[key] = value; } }); return result; } export default omitUndefined; ## Instruction: Use _.transform instead of _.reduce ## Code After: import _ from 'lodash'; function omitUndefined(obj) { return _.transform(obj, function(result, value, key) { if (_.isPlainObject(value)) { result[key] = omitUndefined(value); } else if (!_.isUndefined(value)) { result[key] = value; } }); } export default omitUndefined;
caf9795cf0f775442bd0c3e06cd550a6e8d0206b
virtool/labels/db.py
virtool/labels/db.py
async def count_samples(db, label_id): return await db.samples.count_documents({"labels": {"$in": [label_id]}})
async def attach_sample_count(db, document, label_id): document.update({"count": await db.samples.count_documents({"labels": {"$in": [label_id]}})})
Rewrite function for sample count
Rewrite function for sample count
Python
mit
virtool/virtool,igboyes/virtool,virtool/virtool,igboyes/virtool
python
## Code Before: async def count_samples(db, label_id): return await db.samples.count_documents({"labels": {"$in": [label_id]}}) ## Instruction: Rewrite function for sample count ## Code After: async def attach_sample_count(db, document, label_id): document.update({"count": await db.samples.count_documents({"labels": {"$in": [label_id]}})})
df2c632f485bbab586eafdcfb2d836c4e00a760e
app.yaml
app.yaml
runtime: nodejs12 # [END gae_quickstart_yaml]
runtime: nodejs12 instance_class: F1 automatic_scaling: max_instances: 1 max_idle_instances: 1
Update some configuration for gcloud
Update some configuration for gcloud
YAML
mit
Commit451/skyhook
yaml
## Code Before: runtime: nodejs12 # [END gae_quickstart_yaml] ## Instruction: Update some configuration for gcloud ## Code After: runtime: nodejs12 instance_class: F1 automatic_scaling: max_instances: 1 max_idle_instances: 1
0ed74cdd49abc58a7a693f1db2b00599436f7eda
ReadMe.md
ReadMe.md
[![Build Status](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions.svg)](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions) # Rhaeo.Xaml.Markup.Extensions.FatcowIcon A XAML markup extension for sourcing Fatcow icons to element attributes expecting BitmapSource instances.
[![Build Status](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions.svg)](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions) # Rhaeo.Xaml.Extensions A collection of XAML markup extensions from Rhaeo. Currently present: - Fatcow Icons `BitmapSource` from icon name extension.
Rename the project and list the extensions
Rename the project and list the extensions The project was renamed so the path length (aagh!) could be kept to an allowed maximum and a decision was made to keep all the individual extensions in this one library rather than having them be in separate repositories.
Markdown
mit
Rhaeo/Rhaeo.Xaml.Extensions
markdown
## Code Before: [![Build Status](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions.svg)](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions) # Rhaeo.Xaml.Markup.Extensions.FatcowIcon A XAML markup extension for sourcing Fatcow icons to element attributes expecting BitmapSource instances. ## Instruction: Rename the project and list the extensions The project was renamed so the path length (aagh!) could be kept to an allowed maximum and a decision was made to keep all the individual extensions in this one library rather than having them be in separate repositories. ## Code After: [![Build Status](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions.svg)](https://travis-ci.org/Rhaeo/Rhaeo.Xaml.Extensions) # Rhaeo.Xaml.Extensions A collection of XAML markup extensions from Rhaeo. Currently present: - Fatcow Icons `BitmapSource` from icon name extension.
b9dbc7969c7d761db7e02c354ca95d5e64ab3a37
src/Commands/ListServerCommand.php
src/Commands/ListServerCommand.php
<?php /** * SiteCLI - Help you manage Nginx local development configuration * * @author panlatent@gmail.com * @link https://github.com/panlatent/site-cli * @license https://opensource.org/licenses/MIT */ namespace Panlatent\SiteCli\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ListServerCommand extends Command { protected function configure() { $this->setName('list:server') ->setAliases(['servers']) ->setDescription('Lists all server'); } protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $servers = $this->manager->getServers(); sort($servers); foreach ($servers as $server) { $status = $server->getSite()->isEnable() ? '<info>√</info>' : '<comment>x</comment>'; $output->writeln(sprintf(" - %s server <info>%s</info> listen <info>%s</info> on <comment>%s/%s</comment>", $status, $server->getName(), $server->getListen(), $server->getSite()->getGroup()->getName(), $server->getSite()->getName())); } } }
<?php /** * SiteCLI - Help you manage Nginx local development configuration * * @author panlatent@gmail.com * @link https://github.com/panlatent/site-cli * @license https://opensource.org/licenses/MIT */ namespace Panlatent\SiteCli\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ListServerCommand extends Command { protected function configure() { $this->setName('list:server') ->setAliases(['servers']) ->setDescription('Lists all server') ->addOption( 'enable', 'e', InputOption::VALUE_NONE, 'Show only enabled sites' ); } protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $servers = $this->manager->getServers(); if ($input->getOption('enable')) { $servers = array_filter($servers, function($server) { /** @var \Panlatent\SiteCli\SiteServer $server */ return $server->getSite()->isEnable(); }); } sort($servers); foreach ($servers as $server) { $status = $server->getSite()->isEnable() ? '<info>√</info>' : '<comment>x</comment>'; $output->writeln(sprintf(" - %s server <info>%s</info> listen <info>%s</info> on <comment>%s/%s</comment>", $status, $server->getName(), $server->getListen(), $server->getSite()->getGroup()->getName(), $server->getSite()->getName())); } } }
Add list:server command enable option
Add list:server command enable option
PHP
mit
panlatent/site-cli,panlatent/site-cli
php
## Code Before: <?php /** * SiteCLI - Help you manage Nginx local development configuration * * @author panlatent@gmail.com * @link https://github.com/panlatent/site-cli * @license https://opensource.org/licenses/MIT */ namespace Panlatent\SiteCli\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ListServerCommand extends Command { protected function configure() { $this->setName('list:server') ->setAliases(['servers']) ->setDescription('Lists all server'); } protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $servers = $this->manager->getServers(); sort($servers); foreach ($servers as $server) { $status = $server->getSite()->isEnable() ? '<info>√</info>' : '<comment>x</comment>'; $output->writeln(sprintf(" - %s server <info>%s</info> listen <info>%s</info> on <comment>%s/%s</comment>", $status, $server->getName(), $server->getListen(), $server->getSite()->getGroup()->getName(), $server->getSite()->getName())); } } } ## Instruction: Add list:server command enable option ## Code After: <?php /** * SiteCLI - Help you manage Nginx local development configuration * * @author panlatent@gmail.com * @link https://github.com/panlatent/site-cli * @license https://opensource.org/licenses/MIT */ namespace Panlatent\SiteCli\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class ListServerCommand extends Command { protected function configure() { $this->setName('list:server') ->setAliases(['servers']) ->setDescription('Lists all server') ->addOption( 'enable', 'e', InputOption::VALUE_NONE, 'Show only enabled sites' ); } protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $servers = $this->manager->getServers(); if ($input->getOption('enable')) { $servers = array_filter($servers, function($server) { /** @var \Panlatent\SiteCli\SiteServer $server */ return $server->getSite()->isEnable(); }); } sort($servers); foreach ($servers as $server) { $status = $server->getSite()->isEnable() ? '<info>√</info>' : '<comment>x</comment>'; $output->writeln(sprintf(" - %s server <info>%s</info> listen <info>%s</info> on <comment>%s/%s</comment>", $status, $server->getName(), $server->getListen(), $server->getSite()->getGroup()->getName(), $server->getSite()->getName())); } } }
07071745f46871c305f8101484bca66c61d341ef
Casks/picturelife.rb
Casks/picturelife.rb
cask 'picturelife' do version :latest sha256 :no_check url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'https://picturelife.com/home' license :gratis app 'Picturelife.app' uninstall quit: ['com.picturelife.sync'] zap delete: [ '~/Library/Preferences/com.picturelife.sync.plist', '~/Library/Application Support/Picturelife', '~/Library/Caches/com.picturelife.sync', '~/Desktop/Drop to Picturelife', ] end
cask 'picturelife' do version :latest sha256 :no_check # streamnation.com/uploader/osx/picturelife was verified as official when first introduced to the cask url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'https://picturelife.com/home' license :gratis app 'Picturelife.app' uninstall quit: ['com.picturelife.sync'] zap delete: [ '~/Library/Preferences/com.picturelife.sync.plist', '~/Library/Application Support/Picturelife', '~/Library/Caches/com.picturelife.sync', '~/Desktop/Drop to Picturelife', ] end
Fix `url` stanza comment for Picturelife Smartloader.
Fix `url` stanza comment for Picturelife Smartloader.
Ruby
bsd-2-clause
tjt263/homebrew-cask,nathanielvarona/homebrew-cask,adrianchia/homebrew-cask,skatsuta/homebrew-cask,athrunsun/homebrew-cask,mattrobenolt/homebrew-cask,decrement/homebrew-cask,scottsuch/homebrew-cask,cliffcotino/homebrew-cask,Amorymeltzer/homebrew-cask,thehunmonkgroup/homebrew-cask,colindean/homebrew-cask,blainesch/homebrew-cask,doits/homebrew-cask,syscrusher/homebrew-cask,JacopKane/homebrew-cask,xyb/homebrew-cask,SentinelWarren/homebrew-cask,shoichiaizawa/homebrew-cask,wickles/homebrew-cask,sebcode/homebrew-cask,doits/homebrew-cask,elyscape/homebrew-cask,miccal/homebrew-cask,cblecker/homebrew-cask,aguynamedryan/homebrew-cask,seanzxx/homebrew-cask,andyli/homebrew-cask,gabrielizaias/homebrew-cask,larseggert/homebrew-cask,jalaziz/homebrew-cask,forevergenin/homebrew-cask,a1russell/homebrew-cask,inta/homebrew-cask,jbeagley52/homebrew-cask,kingthorin/homebrew-cask,hakamadare/homebrew-cask,jasmas/homebrew-cask,leipert/homebrew-cask,tjnycum/homebrew-cask,puffdad/homebrew-cask,timsutton/homebrew-cask,sosedoff/homebrew-cask,kpearson/homebrew-cask,timsutton/homebrew-cask,BenjaminHCCarr/homebrew-cask,dvdoliveira/homebrew-cask,forevergenin/homebrew-cask,rogeriopradoj/homebrew-cask,aguynamedryan/homebrew-cask,yutarody/homebrew-cask,rajiv/homebrew-cask,wmorin/homebrew-cask,mauricerkelly/homebrew-cask,julionc/homebrew-cask,tangestani/homebrew-cask,ianyh/homebrew-cask,JacopKane/homebrew-cask,sanchezm/homebrew-cask,alebcay/homebrew-cask,phpwutz/homebrew-cask,jconley/homebrew-cask,andyli/homebrew-cask,amatos/homebrew-cask,nshemonsky/homebrew-cask,RJHsiao/homebrew-cask,Keloran/homebrew-cask,mlocher/homebrew-cask,lucasmezencio/homebrew-cask,jgarber623/homebrew-cask,gerrypower/homebrew-cask,maxnordlund/homebrew-cask,janlugt/homebrew-cask,ericbn/homebrew-cask,patresi/homebrew-cask,athrunsun/homebrew-cask,joshka/homebrew-cask,kingthorin/homebrew-cask,chadcatlett/caskroom-homebrew-cask,dcondrey/homebrew-cask,sjackman/homebrew-cask,Ngrd/homebrew-cask,imgarylai/homebrew-cask,opsdev-ws/homebrew-cask,mahori/homebrew-cask,josa42/homebrew-cask,sanchezm/homebrew-cask,johndbritton/homebrew-cask,jiashuw/homebrew-cask,muan/homebrew-cask,jmeridth/homebrew-cask,ebraminio/homebrew-cask,stonehippo/homebrew-cask,sanyer/homebrew-cask,hanxue/caskroom,andrewdisley/homebrew-cask,haha1903/homebrew-cask,chadcatlett/caskroom-homebrew-cask,hyuna917/homebrew-cask,kassi/homebrew-cask,MircoT/homebrew-cask,nrlquaker/homebrew-cask,schneidmaster/homebrew-cask,psibre/homebrew-cask,wastrachan/homebrew-cask,JosephViolago/homebrew-cask,sscotth/homebrew-cask,tedski/homebrew-cask,bric3/homebrew-cask,mishari/homebrew-cask,inz/homebrew-cask,mattrobenolt/homebrew-cask,reitermarkus/homebrew-cask,nathanielvarona/homebrew-cask,klane/homebrew-cask,joschi/homebrew-cask,stephenwade/homebrew-cask,pkq/homebrew-cask,gerrypower/homebrew-cask,perfide/homebrew-cask,paour/homebrew-cask,jgarber623/homebrew-cask,gilesdring/homebrew-cask,ninjahoahong/homebrew-cask,dictcp/homebrew-cask,n0ts/homebrew-cask,KosherBacon/homebrew-cask,troyxmccall/homebrew-cask,julionc/homebrew-cask,caskroom/homebrew-cask,lantrix/homebrew-cask,franklouwers/homebrew-cask,mwean/homebrew-cask,neverfox/homebrew-cask,andrewdisley/homebrew-cask,ebraminio/homebrew-cask,kkdd/homebrew-cask,Labutin/homebrew-cask,danielbayley/homebrew-cask,maxnordlund/homebrew-cask,jalaziz/homebrew-cask,claui/homebrew-cask,wastrachan/homebrew-cask,0rax/homebrew-cask,robertgzr/homebrew-cask,esebastian/homebrew-cask,mahori/homebrew-cask,BenjaminHCCarr/homebrew-cask,esebastian/homebrew-cask,sscotth/homebrew-cask,moimikey/homebrew-cask,kesara/homebrew-cask,boecko/homebrew-cask,xight/homebrew-cask,bric3/homebrew-cask,daften/homebrew-cask,jedahan/homebrew-cask,mikem/homebrew-cask,diguage/homebrew-cask,okket/homebrew-cask,neverfox/homebrew-cask,MoOx/homebrew-cask,syscrusher/homebrew-cask,Amorymeltzer/homebrew-cask,singingwolfboy/homebrew-cask,chrisfinazzo/homebrew-cask,mikem/homebrew-cask,reitermarkus/homebrew-cask,mjgardner/homebrew-cask,yumitsu/homebrew-cask,sosedoff/homebrew-cask,tangestani/homebrew-cask,JosephViolago/homebrew-cask,imgarylai/homebrew-cask,uetchy/homebrew-cask,cobyism/homebrew-cask,ksylvan/homebrew-cask,jconley/homebrew-cask,kronicd/homebrew-cask,renaudguerin/homebrew-cask,deiga/homebrew-cask,vigosan/homebrew-cask,MircoT/homebrew-cask,lifepillar/homebrew-cask,jacobbednarz/homebrew-cask,hovancik/homebrew-cask,ptb/homebrew-cask,a1russell/homebrew-cask,optikfluffel/homebrew-cask,0xadada/homebrew-cask,yuhki50/homebrew-cask,Keloran/homebrew-cask,m3nu/homebrew-cask,uetchy/homebrew-cask,nathancahill/homebrew-cask,antogg/homebrew-cask,winkelsdorf/homebrew-cask,kingthorin/homebrew-cask,kTitan/homebrew-cask,schneidmaster/homebrew-cask,thii/homebrew-cask,tangestani/homebrew-cask,wKovacs64/homebrew-cask,ninjahoahong/homebrew-cask,caskroom/homebrew-cask,jeroenj/homebrew-cask,RJHsiao/homebrew-cask,janlugt/homebrew-cask,arronmabrey/homebrew-cask,muan/homebrew-cask,Labutin/homebrew-cask,neverfox/homebrew-cask,daften/homebrew-cask,sohtsuka/homebrew-cask,hakamadare/homebrew-cask,goxberry/homebrew-cask,vitorgalvao/homebrew-cask,jacobbednarz/homebrew-cask,yurikoles/homebrew-cask,tyage/homebrew-cask,lumaxis/homebrew-cask,artdevjs/homebrew-cask,puffdad/homebrew-cask,dcondrey/homebrew-cask,lifepillar/homebrew-cask,andrewdisley/homebrew-cask,asins/homebrew-cask,blogabe/homebrew-cask,colindunn/homebrew-cask,kpearson/homebrew-cask,cfillion/homebrew-cask,guerrero/homebrew-cask,paour/homebrew-cask,ianyh/homebrew-cask,nrlquaker/homebrew-cask,Saklad5/homebrew-cask,FredLackeyOfficial/homebrew-cask,jellyfishcoder/homebrew-cask,franklouwers/homebrew-cask,13k/homebrew-cask,alebcay/homebrew-cask,xtian/homebrew-cask,AnastasiaSulyagina/homebrew-cask,josa42/homebrew-cask,flaviocamilo/homebrew-cask,dictcp/homebrew-cask,uetchy/homebrew-cask,shonjir/homebrew-cask,jgarber623/homebrew-cask,riyad/homebrew-cask,singingwolfboy/homebrew-cask,mjgardner/homebrew-cask,onlynone/homebrew-cask,kongslund/homebrew-cask,mazehall/homebrew-cask,rogeriopradoj/homebrew-cask,winkelsdorf/homebrew-cask,giannitm/homebrew-cask,jaredsampson/homebrew-cask,Ephemera/homebrew-cask,wickles/homebrew-cask,jpmat296/homebrew-cask,KosherBacon/homebrew-cask,julionc/homebrew-cask,paour/homebrew-cask,stephenwade/homebrew-cask,samnung/homebrew-cask,miccal/homebrew-cask,hristozov/homebrew-cask,xtian/homebrew-cask,antogg/homebrew-cask,mhubig/homebrew-cask,Ngrd/homebrew-cask,asins/homebrew-cask,y00rb/homebrew-cask,JikkuJose/homebrew-cask,mauricerkelly/homebrew-cask,jasmas/homebrew-cask,jawshooah/homebrew-cask,flaviocamilo/homebrew-cask,psibre/homebrew-cask,lukasbestle/homebrew-cask,sjackman/homebrew-cask,jangalinski/homebrew-cask,phpwutz/homebrew-cask,hristozov/homebrew-cask,bric3/homebrew-cask,y00rb/homebrew-cask,vin047/homebrew-cask,gyndav/homebrew-cask,pacav69/homebrew-cask,hovancik/homebrew-cask,sanyer/homebrew-cask,jalaziz/homebrew-cask,stephenwade/homebrew-cask,13k/homebrew-cask,guerrero/homebrew-cask,kassi/homebrew-cask,nrlquaker/homebrew-cask,inz/homebrew-cask,coeligena/homebrew-customized,inta/homebrew-cask,larseggert/homebrew-cask,JosephViolago/homebrew-cask,jpmat296/homebrew-cask,chrisfinazzo/homebrew-cask,alebcay/homebrew-cask,kamilboratynski/homebrew-cask,Amorymeltzer/homebrew-cask,hyuna917/homebrew-cask,wKovacs64/homebrew-cask,optikfluffel/homebrew-cask,giannitm/homebrew-cask,malob/homebrew-cask,cblecker/homebrew-cask,AnastasiaSulyagina/homebrew-cask,moimikey/homebrew-cask,boecko/homebrew-cask,shoichiaizawa/homebrew-cask,cliffcotino/homebrew-cask,joschi/homebrew-cask,ptb/homebrew-cask,winkelsdorf/homebrew-cask,cprecioso/homebrew-cask,sgnh/homebrew-cask,xyb/homebrew-cask,mrmachine/homebrew-cask,colindunn/homebrew-cask,mchlrmrz/homebrew-cask,BenjaminHCCarr/homebrew-cask,malford/homebrew-cask,slack4u/homebrew-cask,nathanielvarona/homebrew-cask,decrement/homebrew-cask,diogodamiani/homebrew-cask,reelsense/homebrew-cask,squid314/homebrew-cask,FinalDes/homebrew-cask,sebcode/homebrew-cask,troyxmccall/homebrew-cask,riyad/homebrew-cask,adrianchia/homebrew-cask,johnjelinek/homebrew-cask,scottsuch/homebrew-cask,cblecker/homebrew-cask,kesara/homebrew-cask,mathbunnyru/homebrew-cask,victorpopkov/homebrew-cask,opsdev-ws/homebrew-cask,deiga/homebrew-cask,hellosky806/homebrew-cask,shonjir/homebrew-cask,vitorgalvao/homebrew-cask,malford/homebrew-cask,chrisfinazzo/homebrew-cask,MichaelPei/homebrew-cask,gyndav/homebrew-cask,tjnycum/homebrew-cask,onlynone/homebrew-cask,n0ts/homebrew-cask,mattrobenolt/homebrew-cask,usami-k/homebrew-cask,moimikey/homebrew-cask,claui/homebrew-cask,exherb/homebrew-cask,lumaxis/homebrew-cask,rajiv/homebrew-cask,imgarylai/homebrew-cask,jeroenj/homebrew-cask,gabrielizaias/homebrew-cask,yuhki50/homebrew-cask,ericbn/homebrew-cask,Cottser/homebrew-cask,nshemonsky/homebrew-cask,deanmorin/homebrew-cask,moogar0880/homebrew-cask,haha1903/homebrew-cask,hanxue/caskroom,seanzxx/homebrew-cask,scribblemaniac/homebrew-cask,shoichiaizawa/homebrew-cask,timsutton/homebrew-cask,yurikoles/homebrew-cask,stonehippo/homebrew-cask,samdoran/homebrew-cask,skatsuta/homebrew-cask,coeligena/homebrew-customized,artdevjs/homebrew-cask,sgnh/homebrew-cask,moogar0880/homebrew-cask,toonetown/homebrew-cask,adrianchia/homebrew-cask,jangalinski/homebrew-cask,My2ndAngelic/homebrew-cask,bdhess/homebrew-cask,dictcp/homebrew-cask,danielbayley/homebrew-cask,mchlrmrz/homebrew-cask,hanxue/caskroom,chuanxd/homebrew-cask,JikkuJose/homebrew-cask,stonehippo/homebrew-cask,SentinelWarren/homebrew-cask,koenrh/homebrew-cask,wmorin/homebrew-cask,tjnycum/homebrew-cask,thii/homebrew-cask,mlocher/homebrew-cask,arronmabrey/homebrew-cask,kamilboratynski/homebrew-cask,colindean/homebrew-cask,antogg/homebrew-cask,deiga/homebrew-cask,bdhess/homebrew-cask,jedahan/homebrew-cask,shonjir/homebrew-cask,cprecioso/homebrew-cask,vigosan/homebrew-cask,mchlrmrz/homebrew-cask,scribblemaniac/homebrew-cask,markthetech/homebrew-cask,wickedsp1d3r/homebrew-cask,reelsense/homebrew-cask,tedski/homebrew-cask,xight/homebrew-cask,FredLackeyOfficial/homebrew-cask,mathbunnyru/homebrew-cask,samdoran/homebrew-cask,reitermarkus/homebrew-cask,cobyism/homebrew-cask,morganestes/homebrew-cask,mjgardner/homebrew-cask,jellyfishcoder/homebrew-cask,kesara/homebrew-cask,blogabe/homebrew-cask,joshka/homebrew-cask,gmkey/homebrew-cask,dvdoliveira/homebrew-cask,gyndav/homebrew-cask,blainesch/homebrew-cask,bosr/homebrew-cask,thehunmonkgroup/homebrew-cask,pkq/homebrew-cask,usami-k/homebrew-cask,markthetech/homebrew-cask,kongslund/homebrew-cask,jaredsampson/homebrew-cask,0rax/homebrew-cask,FinalDes/homebrew-cask,joschi/homebrew-cask,michelegera/homebrew-cask,diogodamiani/homebrew-cask,blogabe/homebrew-cask,okket/homebrew-cask,Ephemera/homebrew-cask,cobyism/homebrew-cask,kronicd/homebrew-cask,renaudguerin/homebrew-cask,rogeriopradoj/homebrew-cask,morganestes/homebrew-cask,mathbunnyru/homebrew-cask,mhubig/homebrew-cask,chuanxd/homebrew-cask,optikfluffel/homebrew-cask,jmeridth/homebrew-cask,xight/homebrew-cask,michelegera/homebrew-cask,yutarody/homebrew-cask,johnjelinek/homebrew-cask,joshka/homebrew-cask,coeligena/homebrew-customized,exherb/homebrew-cask,elyscape/homebrew-cask,claui/homebrew-cask,MichaelPei/homebrew-cask,toonetown/homebrew-cask,vin047/homebrew-cask,nathancahill/homebrew-cask,Ketouem/homebrew-cask,malob/homebrew-cask,tyage/homebrew-cask,MoOx/homebrew-cask,goxberry/homebrew-cask,squid314/homebrew-cask,wickedsp1d3r/homebrew-cask,diguage/homebrew-cask,jawshooah/homebrew-cask,koenrh/homebrew-cask,lucasmezencio/homebrew-cask,Ephemera/homebrew-cask,cfillion/homebrew-cask,patresi/homebrew-cask,esebastian/homebrew-cask,jiashuw/homebrew-cask,samnung/homebrew-cask,JacopKane/homebrew-cask,slack4u/homebrew-cask,xcezx/homebrew-cask,gmkey/homebrew-cask,josa42/homebrew-cask,alexg0/homebrew-cask,mazehall/homebrew-cask,a1russell/homebrew-cask,devmynd/homebrew-cask,scribblemaniac/homebrew-cask,sscotth/homebrew-cask,perfide/homebrew-cask,yutarody/homebrew-cask,xyb/homebrew-cask,lantrix/homebrew-cask,pkq/homebrew-cask,sohtsuka/homebrew-cask,victorpopkov/homebrew-cask,yumitsu/homebrew-cask,lukasbestle/homebrew-cask,mishari/homebrew-cask,My2ndAngelic/homebrew-cask,leipert/homebrew-cask,Saklad5/homebrew-cask,sanyer/homebrew-cask,jbeagley52/homebrew-cask,0xadada/homebrew-cask,xcezx/homebrew-cask,devmynd/homebrew-cask,tjt263/homebrew-cask,shorshe/homebrew-cask,klane/homebrew-cask,amatos/homebrew-cask,singingwolfboy/homebrew-cask,m3nu/homebrew-cask,gilesdring/homebrew-cask,pacav69/homebrew-cask,Cottser/homebrew-cask,mrmachine/homebrew-cask,kTitan/homebrew-cask,robertgzr/homebrew-cask,kkdd/homebrew-cask,ericbn/homebrew-cask,m3nu/homebrew-cask,scottsuch/homebrew-cask,mahori/homebrew-cask,mwean/homebrew-cask,rajiv/homebrew-cask,alexg0/homebrew-cask,miccal/homebrew-cask,danielbayley/homebrew-cask,deanmorin/homebrew-cask,wmorin/homebrew-cask,malob/homebrew-cask,bosr/homebrew-cask,Ketouem/homebrew-cask,hellosky806/homebrew-cask,alexg0/homebrew-cask,johndbritton/homebrew-cask,yurikoles/homebrew-cask,shorshe/homebrew-cask,ksylvan/homebrew-cask
ruby
## Code Before: cask 'picturelife' do version :latest sha256 :no_check url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'https://picturelife.com/home' license :gratis app 'Picturelife.app' uninstall quit: ['com.picturelife.sync'] zap delete: [ '~/Library/Preferences/com.picturelife.sync.plist', '~/Library/Application Support/Picturelife', '~/Library/Caches/com.picturelife.sync', '~/Desktop/Drop to Picturelife', ] end ## Instruction: Fix `url` stanza comment for Picturelife Smartloader. ## Code After: cask 'picturelife' do version :latest sha256 :no_check # streamnation.com/uploader/osx/picturelife was verified as official when first introduced to the cask url 'https://www.streamnation.com/uploader/osx/picturelife/Picturelife.dmg' name 'Picturelife Smartloader' homepage 'https://picturelife.com/home' license :gratis app 'Picturelife.app' uninstall quit: ['com.picturelife.sync'] zap delete: [ '~/Library/Preferences/com.picturelife.sync.plist', '~/Library/Application Support/Picturelife', '~/Library/Caches/com.picturelife.sync', '~/Desktop/Drop to Picturelife', ] end
878b69b83acfad72433fcdf73e08f41a7f21d990
mms.gemspec
mms.gemspec
require File.expand_path('../lib/mms/version', __FILE__) Gem::Specification.new do |s| s.name = 'mms-api' s.version = MMS::VERSION s.summary = 'MongoDB MMS API client' s.description = 'Agent for MMS API' s.authors = ['Cargo Media', 'kris-lab', 'tomaszdurka'] s.email = 'hello@cargomedia.ch' s.files = Dir['LICENSE*', 'README*', '{bin,lib}/**/*'] s.executables = ['mms-api'] s.homepage = 'https://github.com/cargomedia/mms-api' s.license = 'MIT' s.add_runtime_dependency 'net-http-digest_auth', '~> 1.4' s.add_runtime_dependency 'terminal-table', '~> 1.4.5' s.add_runtime_dependency 'parseconfig', '~> 1.0.6' s.add_runtime_dependency 'clamp', '~> 0.6.0' s.add_development_dependency 'rake' s.add_development_dependency 'rspec', '~> 2.0' end
require File.expand_path('../lib/mms/version', __FILE__) Gem::Specification.new do |s| s.name = 'mms-api' s.version = MMS::VERSION s.summary = 'MongoDB MMS API client' s.description = 'Agent for MMS API' s.authors = ['Cargo Media', 'kris-lab', 'tomaszdurka'] s.email = 'hello@cargomedia.ch' s.files = Dir['LICENSE*', 'README*', '{bin,lib}/**/*'] s.executables = ['mms-api'] s.homepage = 'https://github.com/cargomedia/mms-api' s.license = 'MIT' s.add_runtime_dependency 'net-http-digest_auth', '~> 1.4' s.add_runtime_dependency 'terminal-table', '~> 1.4.5' s.add_runtime_dependency 'parseconfig', '~> 1.0.6' s.add_runtime_dependency 'clamp', '~> 0.6.0' s.add_development_dependency 'rake' s.add_development_dependency 'pry' s.add_development_dependency 'rspec', '~> 2.0' end
Add pry for dev debugging
Add pry for dev debugging
Ruby
mit
Mike-Petersen/mms-api
ruby
## Code Before: require File.expand_path('../lib/mms/version', __FILE__) Gem::Specification.new do |s| s.name = 'mms-api' s.version = MMS::VERSION s.summary = 'MongoDB MMS API client' s.description = 'Agent for MMS API' s.authors = ['Cargo Media', 'kris-lab', 'tomaszdurka'] s.email = 'hello@cargomedia.ch' s.files = Dir['LICENSE*', 'README*', '{bin,lib}/**/*'] s.executables = ['mms-api'] s.homepage = 'https://github.com/cargomedia/mms-api' s.license = 'MIT' s.add_runtime_dependency 'net-http-digest_auth', '~> 1.4' s.add_runtime_dependency 'terminal-table', '~> 1.4.5' s.add_runtime_dependency 'parseconfig', '~> 1.0.6' s.add_runtime_dependency 'clamp', '~> 0.6.0' s.add_development_dependency 'rake' s.add_development_dependency 'rspec', '~> 2.0' end ## Instruction: Add pry for dev debugging ## Code After: require File.expand_path('../lib/mms/version', __FILE__) Gem::Specification.new do |s| s.name = 'mms-api' s.version = MMS::VERSION s.summary = 'MongoDB MMS API client' s.description = 'Agent for MMS API' s.authors = ['Cargo Media', 'kris-lab', 'tomaszdurka'] s.email = 'hello@cargomedia.ch' s.files = Dir['LICENSE*', 'README*', '{bin,lib}/**/*'] s.executables = ['mms-api'] s.homepage = 'https://github.com/cargomedia/mms-api' s.license = 'MIT' s.add_runtime_dependency 'net-http-digest_auth', '~> 1.4' s.add_runtime_dependency 'terminal-table', '~> 1.4.5' s.add_runtime_dependency 'parseconfig', '~> 1.0.6' s.add_runtime_dependency 'clamp', '~> 0.6.0' s.add_development_dependency 'rake' s.add_development_dependency 'pry' s.add_development_dependency 'rspec', '~> 2.0' end
0c405fd30d059164509308dee604f50d9857202d
scripts/slave/recipe_modules/webrtc/resources/cleanup_files.py
scripts/slave/recipe_modules/webrtc/resources/cleanup_files.py
"""Script that deletes all files (but not directories) in a given directory.""" import os import sys def main(args): if not args or len(args) != 1: print >> sys.stderr, 'Please specify a single directory as an argument.' return 1 clean_dir = args[0] if not os.path.isdir(clean_dir): print >> sys.stderr, '%s does not exist or is not a directory!' % clean_dir return 2 for filename in os.listdir(clean_dir): file_path = os.path.join(clean_dir, filename) if os.path.isfile(file_path): try: os.remove(file_path) print 'Removed %s' % file_path except OSError as e: # Don't fail if we cannot delete a file. print e return 0 if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
"""Script that deletes all files (but not directories) in a given directory.""" import os import sys def main(args): if not args or len(args) != 1: print >> sys.stderr, 'Please specify a single directory as an argument.' return 1 clean_dir = args[0] if not os.path.isdir(clean_dir): print 'Cannot find any directory at %s. Skipping cleaning.' % clean_dir return 0 for filename in os.listdir(clean_dir): file_path = os.path.join(clean_dir, filename) if os.path.isfile(file_path): try: os.remove(file_path) print 'Removed %s' % file_path except OSError as e: # Don't fail if we cannot delete a file. print e return 0 if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
Make clean script return successful if clean dir is missing.
WebRTC: Make clean script return successful if clean dir is missing. I thought it would be good to have the script fail for an incorrectly specified directory, but the out/ dir is missing on fresh installed slave machines, so better just skip cleaning with a line printed to stdout instead when the dir is missing. TESTED=Ran the script locally with an invalid dir argument. Review URL: https://codereview.chromium.org/921633005 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@294057 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
python
## Code Before: """Script that deletes all files (but not directories) in a given directory.""" import os import sys def main(args): if not args or len(args) != 1: print >> sys.stderr, 'Please specify a single directory as an argument.' return 1 clean_dir = args[0] if not os.path.isdir(clean_dir): print >> sys.stderr, '%s does not exist or is not a directory!' % clean_dir return 2 for filename in os.listdir(clean_dir): file_path = os.path.join(clean_dir, filename) if os.path.isfile(file_path): try: os.remove(file_path) print 'Removed %s' % file_path except OSError as e: # Don't fail if we cannot delete a file. print e return 0 if __name__ == '__main__': sys.exit(main(sys.argv[1:])) ## Instruction: WebRTC: Make clean script return successful if clean dir is missing. I thought it would be good to have the script fail for an incorrectly specified directory, but the out/ dir is missing on fresh installed slave machines, so better just skip cleaning with a line printed to stdout instead when the dir is missing. TESTED=Ran the script locally with an invalid dir argument. Review URL: https://codereview.chromium.org/921633005 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@294057 0039d316-1c4b-4281-b951-d872f2087c98 ## Code After: """Script that deletes all files (but not directories) in a given directory.""" import os import sys def main(args): if not args or len(args) != 1: print >> sys.stderr, 'Please specify a single directory as an argument.' return 1 clean_dir = args[0] if not os.path.isdir(clean_dir): print 'Cannot find any directory at %s. Skipping cleaning.' % clean_dir return 0 for filename in os.listdir(clean_dir): file_path = os.path.join(clean_dir, filename) if os.path.isfile(file_path): try: os.remove(file_path) print 'Removed %s' % file_path except OSError as e: # Don't fail if we cannot delete a file. print e return 0 if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
246e6599f31ef09f5de204f87d6b10d28e15bc58
public/js/application.js
public/js/application.js
var mapSketcherClient; jQuery(function() { jQuery.getJSON('/config.json', function(config) { config.hostname = window.location.hostname mapSketcherClient = new MapSketcherClient(config); mapSketcherClient.launch(); }); $("a[rel]").overlay({ mask: { color: '#ebecff' , loadSpeed: 200 , opacity: 0.9 } }); $('#collaborativeRoomSelection form .cancel').click(function(e) { $('.close').click(); return e.preventDefault(); }); $('#collaborativeRoomSelection form').submit(function(e) { $('.close').click(); mapSketcherClient.joinColaborativeRoom(this.name.value); return e.preventDefault(); }); $('#feedback').githubVoice('sagmor', 'mapsketcher'); $('#personal').touchScrollable(); });
var mapSketcherClient; jQuery(function() { jQuery.getJSON('/config.json', function(config) { config.hostname = window.location.hostname mapSketcherClient = new MapSketcherClient(config); mapSketcherClient.launch(); }); $("a[rel]").overlay({ mask: { color: '#ebecff' , loadSpeed: 200 , opacity: 0.9 } }); $('#collaborativeRoomSelection form .cancel').click(function(e) { $('.close').click(); return e.preventDefault(); }); $('#collaborativeRoomSelection form').submit(function(e) { $('.close').click(); mapSketcherClient.joinColaborativeRoom(this.name.value); return e.preventDefault(); }); $(function() { $("#collaborativeRoomSelection form input").keypress(function (e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { $('#collaborativeRoomSelection form').submit(); return false; } else { return true; } }); }); $('#feedback').githubVoice('sagmor', 'mapsketcher'); $('#personal').touchScrollable(); });
Fix enter key on Collaborative Room selection.
Fix enter key on Collaborative Room selection.
JavaScript
mit
sagmor/mapsketcher
javascript
## Code Before: var mapSketcherClient; jQuery(function() { jQuery.getJSON('/config.json', function(config) { config.hostname = window.location.hostname mapSketcherClient = new MapSketcherClient(config); mapSketcherClient.launch(); }); $("a[rel]").overlay({ mask: { color: '#ebecff' , loadSpeed: 200 , opacity: 0.9 } }); $('#collaborativeRoomSelection form .cancel').click(function(e) { $('.close').click(); return e.preventDefault(); }); $('#collaborativeRoomSelection form').submit(function(e) { $('.close').click(); mapSketcherClient.joinColaborativeRoom(this.name.value); return e.preventDefault(); }); $('#feedback').githubVoice('sagmor', 'mapsketcher'); $('#personal').touchScrollable(); }); ## Instruction: Fix enter key on Collaborative Room selection. ## Code After: var mapSketcherClient; jQuery(function() { jQuery.getJSON('/config.json', function(config) { config.hostname = window.location.hostname mapSketcherClient = new MapSketcherClient(config); mapSketcherClient.launch(); }); $("a[rel]").overlay({ mask: { color: '#ebecff' , loadSpeed: 200 , opacity: 0.9 } }); $('#collaborativeRoomSelection form .cancel').click(function(e) { $('.close').click(); return e.preventDefault(); }); $('#collaborativeRoomSelection form').submit(function(e) { $('.close').click(); mapSketcherClient.joinColaborativeRoom(this.name.value); return e.preventDefault(); }); $(function() { $("#collaborativeRoomSelection form input").keypress(function (e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { $('#collaborativeRoomSelection form').submit(); return false; } else { return true; } }); }); $('#feedback').githubVoice('sagmor', 'mapsketcher'); $('#personal').touchScrollable(); });
7024a01211d9d0a4f8ab138a611349c37ac5a537
pkgs/tools/video/rav1e/default.nix
pkgs/tools/video/rav1e/default.nix
{ rustPlatform, fetchFromGitHub, lib, nasm }: rustPlatform.buildRustPackage rec { pname = "rav1e"; version = "0.3.3"; src = fetchFromGitHub { owner = "xiph"; repo = "rav1e"; rev = "v${version}"; sha256 = "0a9dryag4x35a2c45qiq1j5xk9ydcpw1g6kici85d2yrc2z3hwrx"; }; cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3"; nativeBuildInputs = [ nasm ]; meta = with lib; { description = "The fastest and safest AV1 encoder"; longDescription = '' rav1e is an AV1 video encoder. It is designed to eventually cover all use cases, though in its current form it is most suitable for cases where libaom (the reference encoder) is too slow. Features: https://github.com/xiph/rav1e#features ''; inherit (src.meta) homepage; changelog = "https://github.com/xiph/rav1e/releases/tag/v${version}"; license = licenses.bsd2; maintainers = [ maintainers.primeos ]; platforms = platforms.all; }; }
{ rustPlatform, fetchFromGitHub, lib, nasm, cargo-c }: rustPlatform.buildRustPackage rec { pname = "rav1e"; version = "0.3.3"; src = fetchFromGitHub { owner = "xiph"; repo = "rav1e"; rev = "v${version}"; sha256 = "0a9dryag4x35a2c45qiq1j5xk9ydcpw1g6kici85d2yrc2z3hwrx"; }; cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3"; nativeBuildInputs = [ nasm cargo-c ]; postBuild = '' cargo cbuild --release --frozen --prefix=${placeholder "out"} ''; postInstall = '' cargo cinstall --release --frozen --prefix=${placeholder "out"} ''; meta = with lib; { description = "The fastest and safest AV1 encoder"; longDescription = '' rav1e is an AV1 video encoder. It is designed to eventually cover all use cases, though in its current form it is most suitable for cases where libaom (the reference encoder) is too slow. Features: https://github.com/xiph/rav1e#features ''; inherit (src.meta) homepage; changelog = "https://github.com/xiph/rav1e/releases/tag/v${version}"; license = licenses.bsd2; maintainers = [ maintainers.primeos ]; platforms = platforms.all; }; }
Build and install C-compatible libraries
rav1e: Build and install C-compatible libraries This is required for AV1 encoding support via librav1e in FFmpeg 4.3: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/d8bf24459b694338de4ceb2a2e6d4d2949d6658d
Nix
mit
NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs
nix
## Code Before: { rustPlatform, fetchFromGitHub, lib, nasm }: rustPlatform.buildRustPackage rec { pname = "rav1e"; version = "0.3.3"; src = fetchFromGitHub { owner = "xiph"; repo = "rav1e"; rev = "v${version}"; sha256 = "0a9dryag4x35a2c45qiq1j5xk9ydcpw1g6kici85d2yrc2z3hwrx"; }; cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3"; nativeBuildInputs = [ nasm ]; meta = with lib; { description = "The fastest and safest AV1 encoder"; longDescription = '' rav1e is an AV1 video encoder. It is designed to eventually cover all use cases, though in its current form it is most suitable for cases where libaom (the reference encoder) is too slow. Features: https://github.com/xiph/rav1e#features ''; inherit (src.meta) homepage; changelog = "https://github.com/xiph/rav1e/releases/tag/v${version}"; license = licenses.bsd2; maintainers = [ maintainers.primeos ]; platforms = platforms.all; }; } ## Instruction: rav1e: Build and install C-compatible libraries This is required for AV1 encoding support via librav1e in FFmpeg 4.3: https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/d8bf24459b694338de4ceb2a2e6d4d2949d6658d ## Code After: { rustPlatform, fetchFromGitHub, lib, nasm, cargo-c }: rustPlatform.buildRustPackage rec { pname = "rav1e"; version = "0.3.3"; src = fetchFromGitHub { owner = "xiph"; repo = "rav1e"; rev = "v${version}"; sha256 = "0a9dryag4x35a2c45qiq1j5xk9ydcpw1g6kici85d2yrc2z3hwrx"; }; cargoSha256 = "1xaincrmpicp0skf9788w5631x1hxvifvq06hh5ribdz79zclzx3"; nativeBuildInputs = [ nasm cargo-c ]; postBuild = '' cargo cbuild --release --frozen --prefix=${placeholder "out"} ''; postInstall = '' cargo cinstall --release --frozen --prefix=${placeholder "out"} ''; meta = with lib; { description = "The fastest and safest AV1 encoder"; longDescription = '' rav1e is an AV1 video encoder. It is designed to eventually cover all use cases, though in its current form it is most suitable for cases where libaom (the reference encoder) is too slow. Features: https://github.com/xiph/rav1e#features ''; inherit (src.meta) homepage; changelog = "https://github.com/xiph/rav1e/releases/tag/v${version}"; license = licenses.bsd2; maintainers = [ maintainers.primeos ]; platforms = platforms.all; }; }
1557f1871a5a1c274e70c9c67f62aaf46f3f450b
lib/sepa_clearer/deutsche_bundesbank.rb
lib/sepa_clearer/deutsche_bundesbank.rb
require 'csv' module SepaClearer class DeutscheBundesbank CAPABILITIES_MAPPING = { service_sct: :sct, service_sdd: :core, service_cor1: :cor1, service_b2b: :b2b } def data(file = 'data/deutsche_bundesbank.csv') @data ||= begin [].tap do |data| CSV.foreach(file, { headers: true, col_sep: ';', header_converters: :symbol }) do |row| data.push PaymentProvider.new(*parse_raw_data(row)) end end end end def parse_raw_data(data) [ data[:name].strip.chomp, data[:bic], CAPABILITIES_MAPPING.map { |key, service| data[key] == '1' ? service : nil }.compact ] end end end
require 'csv' module SepaClearer class DeutscheBundesbank CAPABILITIES_MAPPING = { service_sct: :sct, service_sdd: :core, service_cor1: :cor1, service_b2b: :b2b } def data(file = nil) @data ||= begin [].tap do |data| CSV.foreach(file || default_data_file, { headers: true, col_sep: ';', header_converters: :symbol }) do |row| data.push PaymentProvider.new(*parse_raw_data(row)) end end end end def parse_raw_data(data) [ data[:name].strip.chomp, data[:bic], CAPABILITIES_MAPPING.map { |key, service| data[key] == '1' ? service : nil }.compact ] end def default_data_file File.join(File.dirname(__FILE__), '../..', 'data/deutsche_bundesbank.csv') end end end
Use relative path to determine location of data file
Use relative path to determine location of data file
Ruby
mit
railslove/sepa-clearer,railslove/sepa-clearer
ruby
## Code Before: require 'csv' module SepaClearer class DeutscheBundesbank CAPABILITIES_MAPPING = { service_sct: :sct, service_sdd: :core, service_cor1: :cor1, service_b2b: :b2b } def data(file = 'data/deutsche_bundesbank.csv') @data ||= begin [].tap do |data| CSV.foreach(file, { headers: true, col_sep: ';', header_converters: :symbol }) do |row| data.push PaymentProvider.new(*parse_raw_data(row)) end end end end def parse_raw_data(data) [ data[:name].strip.chomp, data[:bic], CAPABILITIES_MAPPING.map { |key, service| data[key] == '1' ? service : nil }.compact ] end end end ## Instruction: Use relative path to determine location of data file ## Code After: require 'csv' module SepaClearer class DeutscheBundesbank CAPABILITIES_MAPPING = { service_sct: :sct, service_sdd: :core, service_cor1: :cor1, service_b2b: :b2b } def data(file = nil) @data ||= begin [].tap do |data| CSV.foreach(file || default_data_file, { headers: true, col_sep: ';', header_converters: :symbol }) do |row| data.push PaymentProvider.new(*parse_raw_data(row)) end end end end def parse_raw_data(data) [ data[:name].strip.chomp, data[:bic], CAPABILITIES_MAPPING.map { |key, service| data[key] == '1' ? service : nil }.compact ] end def default_data_file File.join(File.dirname(__FILE__), '../..', 'data/deutsche_bundesbank.csv') end end end
f5404fb590257539a018656d92001ca063bd03ef
README.md
README.md
[![Build Status](https://travis-ci.com/IATI/iati.core.svg?token=jGz3fUUcXxQNh1U6Jsyp&branch=master)](https://travis-ci.com/IATI/iati.core) The iati.core Python module. General Installation for System Use =================================== ``` # install software dependencies apt-get install python-pip # install Python package dependencies pip install -r requirements.txt ``` Dev Installation ================ ``` # install software development dependencies apt-get install python-pip python-virtualenv # create and start a virtual environment virtualenv -p python3 pyenv source pyenv/bin/activate # install Python package dependencies pip install -r requirements-dev.txt ``` Running ======= ``` # to run the tests py.test iati/ # to run the linters pylint iati flake8 iati/ pydocstyle iati/ # OR pylint iati; echo; flake8 iati/; echo; pydocstyle iati/ # to build the documentation sphinx-apidoc -f -o docs/source/ iati/ sphinx-build -b html docs/source/ docs/build/ ``` Alternatively, the Makefile can be used. ``` make tests make lint make docs # OR make all ```
The iati.core Python module. [![Build Status](https://travis-ci.com/IATI/iati.core.svg?token=jGz3fUUcXxQNh1U6Jsyp&branch=master)](https://travis-ci.com/IATI/iati.core) General Installation for System Use =================================== ``` # install software dependencies apt-get install python-pip # install Python package dependencies pip install -r requirements.txt ``` Dev Installation ================ ``` # install software development dependencies apt-get install python-pip python-virtualenv # create and start a virtual environment virtualenv -p python3 pyenv source pyenv/bin/activate # install Python package dependencies pip install -r requirements-dev.txt ``` Running ======= ``` # to run the tests py.test iati/ # to run the linters pylint iati flake8 iati/ pydocstyle iati/ # OR pylint iati; echo; flake8 iati/; echo; pydocstyle iati/ # to build the documentation sphinx-apidoc -f -o docs/source/ iati/ sphinx-build -b html docs/source/ docs/build/ ``` Alternatively, the Makefile can be used. ``` make tests make lint make docs # OR make all ```
Move build status to test caches
Move build status to test caches
Markdown
mit
IATI/iati.core,IATI/iati.core
markdown
## Code Before: [![Build Status](https://travis-ci.com/IATI/iati.core.svg?token=jGz3fUUcXxQNh1U6Jsyp&branch=master)](https://travis-ci.com/IATI/iati.core) The iati.core Python module. General Installation for System Use =================================== ``` # install software dependencies apt-get install python-pip # install Python package dependencies pip install -r requirements.txt ``` Dev Installation ================ ``` # install software development dependencies apt-get install python-pip python-virtualenv # create and start a virtual environment virtualenv -p python3 pyenv source pyenv/bin/activate # install Python package dependencies pip install -r requirements-dev.txt ``` Running ======= ``` # to run the tests py.test iati/ # to run the linters pylint iati flake8 iati/ pydocstyle iati/ # OR pylint iati; echo; flake8 iati/; echo; pydocstyle iati/ # to build the documentation sphinx-apidoc -f -o docs/source/ iati/ sphinx-build -b html docs/source/ docs/build/ ``` Alternatively, the Makefile can be used. ``` make tests make lint make docs # OR make all ``` ## Instruction: Move build status to test caches ## Code After: The iati.core Python module. [![Build Status](https://travis-ci.com/IATI/iati.core.svg?token=jGz3fUUcXxQNh1U6Jsyp&branch=master)](https://travis-ci.com/IATI/iati.core) General Installation for System Use =================================== ``` # install software dependencies apt-get install python-pip # install Python package dependencies pip install -r requirements.txt ``` Dev Installation ================ ``` # install software development dependencies apt-get install python-pip python-virtualenv # create and start a virtual environment virtualenv -p python3 pyenv source pyenv/bin/activate # install Python package dependencies pip install -r requirements-dev.txt ``` Running ======= ``` # to run the tests py.test iati/ # to run the linters pylint iati flake8 iati/ pydocstyle iati/ # OR pylint iati; echo; flake8 iati/; echo; pydocstyle iati/ # to build the documentation sphinx-apidoc -f -o docs/source/ iati/ sphinx-build -b html docs/source/ docs/build/ ``` Alternatively, the Makefile can be used. ``` make tests make lint make docs # OR make all ```
e038bf8eec078cd5958134749e5a30cc1942201b
lib/factory_girl/null_object.rb
lib/factory_girl/null_object.rb
module FactoryGirl # @api private class NullObject < ::BasicObject def initialize(methods_to_respond_to) @methods_to_respond_to = methods_to_respond_to.map(&:to_s) end def method_missing(name, *args, &block) if respond_to?(name) nil else super end end def respond_to?(method, include_private=false) @methods_to_respond_to.include? method.to_s end end end
module FactoryGirl # @api private class NullObject < ::BasicObject def initialize(methods_to_respond_to) @methods_to_respond_to = methods_to_respond_to.map(&:to_s) end def method_missing(name, *args, &block) if respond_to?(name) nil else super end end def respond_to?(method, include_private=false) @methods_to_respond_to.include? method.to_s end def respond_to_missing?(*args) false end end end
Add respond_to_missing? on NullObject for 1.9 compatability
Add respond_to_missing? on NullObject for 1.9 compatability
Ruby
mit
wonjun/factory_girl,0x00evil/factory_girl,composerinteralia/factory_girl,eskimosoup/factory_girl,tinabme/factory_girl,tlehman/factory_girl,BlakeWilliams/factory_girl,takashi/factory_girl,bluurn/factory_girl,tjhubert/factory_girl,shuhei/factory_girl,ar-shestopal/factory_girl,victor95pc/factory_girl,frakentoaster/factory_girl,ethagnawl/factory_girl,keeperhood/factory_girl,kt3k/factory_girl,compwron/factory_girl,jhanggi/factory_girl,shibocuhk/factory_girl,jjromeo/factory_girl,zephyr-dev/factory_girl,jonstokes/factory_girl,bact197736/factory_girl,shunsuke227ono/factory_girl,eduardopoleo/factory_girl,olivierlacan/factory_girl,greggilbert/factory_girl,thoughtbot/factory_girl,eightbitraptor/factory_girl,sideci-sample/sideci-sample-factory_girl,ndp-software/factory_girl,ento/factory_girl,wleborgne/factory_girl,mattr-/factory_girl,jasiek/factory_girl,jessedhillon/factory_girl,boutil/factory_girl,willricketts/factory_girl,jcoetsie/factory_girl
ruby
## Code Before: module FactoryGirl # @api private class NullObject < ::BasicObject def initialize(methods_to_respond_to) @methods_to_respond_to = methods_to_respond_to.map(&:to_s) end def method_missing(name, *args, &block) if respond_to?(name) nil else super end end def respond_to?(method, include_private=false) @methods_to_respond_to.include? method.to_s end end end ## Instruction: Add respond_to_missing? on NullObject for 1.9 compatability ## Code After: module FactoryGirl # @api private class NullObject < ::BasicObject def initialize(methods_to_respond_to) @methods_to_respond_to = methods_to_respond_to.map(&:to_s) end def method_missing(name, *args, &block) if respond_to?(name) nil else super end end def respond_to?(method, include_private=false) @methods_to_respond_to.include? method.to_s end def respond_to_missing?(*args) false end end end
878d10cad3f867df87bb79ad9dd9b0d5068c0637
Drift/Helpers/ObjectValidator.swift
Drift/Helpers/ObjectValidator.swift
// // ObjectValidator.swift // Drift // // Created by Brian McDonald on 25/07/2016. // Copyright © 2016 Drift. All rights reserved. // import UIKit import ObjectMapper private var failures = 0 extension Map{ func validNotEmpty<T>() -> T { if let value: T = value() { if value as? String == ""{ failures += 1 return dummyObject() } return value }else { // Collects failed count failures += 1 return dummyObject() } } fileprivate func dummyObject<T>() -> T{ let pointer = UnsafeMutablePointer<T>.allocate(capacity: 0) pointer.deallocate(capacity: 0) return pointer.pointee } var isValidNotEmpty: Bool{ return failures == 0 } }
// // ObjectValidator.swift // Drift // // Created by Brian McDonald on 25/07/2016. // Copyright © 2016 Drift. All rights reserved. // import UIKit import ObjectMapper private var failures = 0 extension Map{ func validNotEmpty<T>() -> T? { if let value: T = value() { if value as? String == ""{ failures += 1 return nil } return value }else { // Collects failed count failures += 1 return nil } } var isValidNotEmpty: Bool{ return failures == 0 } }
Remove object validation dummy object in favor of returning nil
Remove object validation dummy object in favor of returning nil
Swift
mit
Driftt/drift-sdk-ios,8bytes/drift-sdk-ios,8bytes/drift-sdk-ios,Driftt/drift-sdk-ios
swift
## Code Before: // // ObjectValidator.swift // Drift // // Created by Brian McDonald on 25/07/2016. // Copyright © 2016 Drift. All rights reserved. // import UIKit import ObjectMapper private var failures = 0 extension Map{ func validNotEmpty<T>() -> T { if let value: T = value() { if value as? String == ""{ failures += 1 return dummyObject() } return value }else { // Collects failed count failures += 1 return dummyObject() } } fileprivate func dummyObject<T>() -> T{ let pointer = UnsafeMutablePointer<T>.allocate(capacity: 0) pointer.deallocate(capacity: 0) return pointer.pointee } var isValidNotEmpty: Bool{ return failures == 0 } } ## Instruction: Remove object validation dummy object in favor of returning nil ## Code After: // // ObjectValidator.swift // Drift // // Created by Brian McDonald on 25/07/2016. // Copyright © 2016 Drift. All rights reserved. // import UIKit import ObjectMapper private var failures = 0 extension Map{ func validNotEmpty<T>() -> T? { if let value: T = value() { if value as? String == ""{ failures += 1 return nil } return value }else { // Collects failed count failures += 1 return nil } } var isValidNotEmpty: Bool{ return failures == 0 } }
422a00cbb2223f1143bdd10c18b60beb741b93be
README.md
README.md
Copyright Debezium Authors. Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). # Debezium Examples This repository contains multiple examples for using Debezium, e.g. configuration files, Docker Compose files, OpenShift templates.
Copyright Debezium Authors. Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). # Debezium Examples This repository contains multiple examples for using Debezium, e.g. configuration files, Docker Compose files, OpenShift templates. ## Getting Started For getting started please check [tutorial example](./tutorial)
Add note about basic tutorial example
docs: Add note about basic tutorial example
Markdown
apache-2.0
debezium/debezium-examples,debezium/debezium-examples,debezium/debezium-examples,debezium/debezium-examples,debezium/debezium-examples
markdown
## Code Before: Copyright Debezium Authors. Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). # Debezium Examples This repository contains multiple examples for using Debezium, e.g. configuration files, Docker Compose files, OpenShift templates. ## Instruction: docs: Add note about basic tutorial example ## Code After: Copyright Debezium Authors. Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). # Debezium Examples This repository contains multiple examples for using Debezium, e.g. configuration files, Docker Compose files, OpenShift templates. ## Getting Started For getting started please check [tutorial example](./tutorial)
3f7647ad4deb71d0c4e0012f959a891adf773903
README.md
README.md
A simple GUI for converting .mkv files to .mp4 using the ffmpeg library. The program is written entirely in Python and is compatible cross-platform (tested on macOS Sierra and Windows 10). ## Installation If you only want to use the application, simply download the "*release*" folder. To install on Windows, simply double-click on the "install" executable in the release/windows folder. This will install Python 2.7 and FFmpeg into the root of your directory. Another batch file will be copied onto the desktop. To install on macOS or another Unix system, change directory to *./unix/* in the terminal. Then run ```bash $ sudo bash install.sh ``` This will install the ffmpeg executable (if it doesn't already exist) and the *mkv2mp4* executable. This will be placed in */usr/local/bin*. On Unix systems, it can also be uninstalled by running ```bash $ sudo bash install.sh uninstall ``` NOTE: The Unix install script will not install Python, if it is not installed on the system, please install it through the usual methods. ## Usage To use the application on Windows, simply double-click on the batch script on the desktop and select the MKV file you wish to convert from the dialog displayed.
A simple GUI for converting .mkv files to .mp4 using the ffmpeg library. The program is written entirely in Python and is compatible cross-platform (tested on macOS Sierra and Windows 10). ## Installation If you only want to use the application, simply download the "*release*" folder. To install on Windows, simply double-click on the "install" executable in the release/windows folder. This will install Python 2.7 and FFmpeg into the root of your directory. Another batch file will be copied onto the desktop. To install on macOS or another Unix system, change directory to *./unix/* in the terminal. Then run ```bash $ sudo bash install.sh ``` This will install the ffmpeg executable (if it doesn't already exist) and the *mkv2mp4* executable. This will be placed in */usr/local/bin*. On Unix systems, it can also be uninstalled by running ```bash $ sudo bash install.sh uninstall ``` NOTE: The Unix install script will not install Python, if it is not installed on the system, please install it through the usual methods. ## Usage To use the application on Windows, simply double-click on the batch script on the desktop and select the MKV file you wish to convert from the dialog displayed. To use the application on Unix, as it is installed in */usr/local/bin*, it should be in your path, so simply running ```bash $ mkv2mp4 ``` in the command line should be all that is needed for it to start.
Update docs for unix install
Update docs for unix install
Markdown
mit
MarkusAndersons/mkv2mp4,MarkusAndersons/mkv2mp4
markdown
## Code Before: A simple GUI for converting .mkv files to .mp4 using the ffmpeg library. The program is written entirely in Python and is compatible cross-platform (tested on macOS Sierra and Windows 10). ## Installation If you only want to use the application, simply download the "*release*" folder. To install on Windows, simply double-click on the "install" executable in the release/windows folder. This will install Python 2.7 and FFmpeg into the root of your directory. Another batch file will be copied onto the desktop. To install on macOS or another Unix system, change directory to *./unix/* in the terminal. Then run ```bash $ sudo bash install.sh ``` This will install the ffmpeg executable (if it doesn't already exist) and the *mkv2mp4* executable. This will be placed in */usr/local/bin*. On Unix systems, it can also be uninstalled by running ```bash $ sudo bash install.sh uninstall ``` NOTE: The Unix install script will not install Python, if it is not installed on the system, please install it through the usual methods. ## Usage To use the application on Windows, simply double-click on the batch script on the desktop and select the MKV file you wish to convert from the dialog displayed. ## Instruction: Update docs for unix install ## Code After: A simple GUI for converting .mkv files to .mp4 using the ffmpeg library. The program is written entirely in Python and is compatible cross-platform (tested on macOS Sierra and Windows 10). ## Installation If you only want to use the application, simply download the "*release*" folder. To install on Windows, simply double-click on the "install" executable in the release/windows folder. This will install Python 2.7 and FFmpeg into the root of your directory. Another batch file will be copied onto the desktop. To install on macOS or another Unix system, change directory to *./unix/* in the terminal. Then run ```bash $ sudo bash install.sh ``` This will install the ffmpeg executable (if it doesn't already exist) and the *mkv2mp4* executable. This will be placed in */usr/local/bin*. On Unix systems, it can also be uninstalled by running ```bash $ sudo bash install.sh uninstall ``` NOTE: The Unix install script will not install Python, if it is not installed on the system, please install it through the usual methods. ## Usage To use the application on Windows, simply double-click on the batch script on the desktop and select the MKV file you wish to convert from the dialog displayed. To use the application on Unix, as it is installed in */usr/local/bin*, it should be in your path, so simply running ```bash $ mkv2mp4 ``` in the command line should be all that is needed for it to start.
173f874c4cf911fc9a35e0e039f164cb625fdccc
imager/ImagerProfile/models.py
imager/ImagerProfile/models.py
from django.db import models from django.contrib.auth.models import User class ImagerProfile(models.Model): user = models.OneToOneField(User) profile_picture = models.ImageField(null=True) picture_privacy = models.BooleanField(default=False) phone_number = models.CharField(max_length=15) # X(XXX) XXX-XXXX phone_privacy = models.BooleanField(default=False) birthday = models.DateField() birthday_privacy = models.BooleanField(default=False) name_privacy = models.BooleanField(default=False) email_privacy = models.BooleanField(default=False)
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class ImagerProfile(models.Model): user = models.OneToOneField(User, related_name='profile') profile_picture = models.ImageField(null=True) picture_privacy = models.BooleanField(default=False) phone_number = models.CharField(max_length=15) # X(XXX) XXX-XXXX phone_privacy = models.BooleanField(default=False) birthday = models.DateField() birthday_privacy = models.BooleanField(default=False) name_privacy = models.BooleanField(default=False) email_privacy = models.BooleanField(default=False) def __str__(self): return "User: {}".format(self.user.username) def is_active(self): return self.user.is_active() @classmethod def active(self): qs = self.get_queryset() return qs.filter(user__is_active=True)
Add string representation of class, is_active method, and first draft of active class method
Add string representation of class, is_active method, and first draft of active class method
Python
mit
nbeck90/django-imager,nbeck90/django-imager
python
## Code Before: from django.db import models from django.contrib.auth.models import User class ImagerProfile(models.Model): user = models.OneToOneField(User) profile_picture = models.ImageField(null=True) picture_privacy = models.BooleanField(default=False) phone_number = models.CharField(max_length=15) # X(XXX) XXX-XXXX phone_privacy = models.BooleanField(default=False) birthday = models.DateField() birthday_privacy = models.BooleanField(default=False) name_privacy = models.BooleanField(default=False) email_privacy = models.BooleanField(default=False) ## Instruction: Add string representation of class, is_active method, and first draft of active class method ## Code After: from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class ImagerProfile(models.Model): user = models.OneToOneField(User, related_name='profile') profile_picture = models.ImageField(null=True) picture_privacy = models.BooleanField(default=False) phone_number = models.CharField(max_length=15) # X(XXX) XXX-XXXX phone_privacy = models.BooleanField(default=False) birthday = models.DateField() birthday_privacy = models.BooleanField(default=False) name_privacy = models.BooleanField(default=False) email_privacy = models.BooleanField(default=False) def __str__(self): return "User: {}".format(self.user.username) def is_active(self): return self.user.is_active() @classmethod def active(self): qs = self.get_queryset() return qs.filter(user__is_active=True)
14cf94eed81468759bb7b2ab084837f656059407
stdafx.h
stdafx.h
// precompiled header /* * * Author: septimomend (Ivan Chapkailo) * * 27.06.2017 * */ #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <termios.h> #include <time.h> #include <unistd.h>
// precompiled header /* * * Author: septimomend (Ivan Chapkailo) * * 27.06.2017 * */ #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <iostream> #include <stdarg.h> #include <cstdlib> #include <string> #include <sys/ioctl.h> #include <sys/types.h> #include <termios.h> #include <ctime> #include <unistd.h> // defines #define SEPT_CPP_EDITOR_VERSION "0.0.1" #define SEPT_TAB_STOP 8 #define SEPT_QUIT_TIMES 2 // click times for exit #define CTRL_KEY(k) ((k) & 0x1f) enum keys { BACKSPACE = 127, ARROW_LEFT = 1000, ARROW_RIGHT, ARROW_UP, ARROW_DOWN, DELETE_KEY, HOME_KEY, END_KEY, PAGE_UP, PAGE_DOWN }; enum colorful { HL_NORMAL = 0, HL_COMMENT, HL_MLCOMMENT, HL_KEYWORD1, HL_KEYWORD2, HL_STRING, HL_NUMBER, HL_MATCH };
Update precompiled header -- added defines
Update precompiled header -- added defines
C
mit
septimomend/UNIX-C-Text-Editor,septimomend/UNIX-C-Text-Editor
c
## Code Before: // precompiled header /* * * Author: septimomend (Ivan Chapkailo) * * 27.06.2017 * */ #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <termios.h> #include <time.h> #include <unistd.h> ## Instruction: Update precompiled header -- added defines ## Code After: // precompiled header /* * * Author: septimomend (Ivan Chapkailo) * * 27.06.2017 * */ #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <iostream> #include <stdarg.h> #include <cstdlib> #include <string> #include <sys/ioctl.h> #include <sys/types.h> #include <termios.h> #include <ctime> #include <unistd.h> // defines #define SEPT_CPP_EDITOR_VERSION "0.0.1" #define SEPT_TAB_STOP 8 #define SEPT_QUIT_TIMES 2 // click times for exit #define CTRL_KEY(k) ((k) & 0x1f) enum keys { BACKSPACE = 127, ARROW_LEFT = 1000, ARROW_RIGHT, ARROW_UP, ARROW_DOWN, DELETE_KEY, HOME_KEY, END_KEY, PAGE_UP, PAGE_DOWN }; enum colorful { HL_NORMAL = 0, HL_COMMENT, HL_MLCOMMENT, HL_KEYWORD1, HL_KEYWORD2, HL_STRING, HL_NUMBER, HL_MATCH };
8f67b999207776bdb9560ac95504cfd5eff75495
CHANGELOG.rst
CHANGELOG.rst
Changelog ========= Versions follow `CalVer <http://calver.org>`_ with *no* backward-compatibility guarantees whatsoever. 19.1.0 (UNRELEASED) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Changed license from MIT to Apache License 2. Deprecations: ^^^^^^^^^^^^^ *none* Changes: ^^^^^^^^ *none* ---- 18.2.0 (2018-01-12) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Use ``RawConfigParser`` for ini-style secrets to avoid interpolation errors. Changes: ^^^^^^^^ - Added ``environ.generate_help`` to the public interface. It is implemented by... * ``environ._environ_config.generate_help`` * ``environ._environ_config._generate_help_dicts`` * ``environ._environ_config._format_help_dicts`` ---- 18.1.0 (2018-01-04) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ``convert`` → ``converter`` Changes: ^^^^^^^^ - Fix for ``attrs`` 17.4.0. ---- 17.1.0 (2017-12-14) ------------------- Initial release.
Changelog ========= Versions follow `CalVer <http://calver.org>`_ with *no* backward-compatibility guarantees whatsoever. 19.1.0 (UNRELEASED) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Changed license from MIT to Apache License 2. Deprecations: ^^^^^^^^^^^^^ *none* Changes: ^^^^^^^^ - Added ``environ.generate_help(AppConfig)`` to create a help string based on the configuration. ---- 18.2.0 (2018-01-12) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Use ``RawConfigParser`` for ini-style secrets to avoid interpolation errors. Changes: ^^^^^^^^ *none* ---- 18.1.0 (2018-01-04) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ``convert`` → ``converter`` Changes: ^^^^^^^^ - Fix for ``attrs`` 17.4.0. ---- 17.1.0 (2017-12-14) ------------------- Initial release.
Move changelog entry to the correct release
Move changelog entry to the correct release
reStructuredText
apache-2.0
hynek/environ_config
restructuredtext
## Code Before: Changelog ========= Versions follow `CalVer <http://calver.org>`_ with *no* backward-compatibility guarantees whatsoever. 19.1.0 (UNRELEASED) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Changed license from MIT to Apache License 2. Deprecations: ^^^^^^^^^^^^^ *none* Changes: ^^^^^^^^ *none* ---- 18.2.0 (2018-01-12) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Use ``RawConfigParser`` for ini-style secrets to avoid interpolation errors. Changes: ^^^^^^^^ - Added ``environ.generate_help`` to the public interface. It is implemented by... * ``environ._environ_config.generate_help`` * ``environ._environ_config._generate_help_dicts`` * ``environ._environ_config._format_help_dicts`` ---- 18.1.0 (2018-01-04) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ``convert`` → ``converter`` Changes: ^^^^^^^^ - Fix for ``attrs`` 17.4.0. ---- 17.1.0 (2017-12-14) ------------------- Initial release. ## Instruction: Move changelog entry to the correct release ## Code After: Changelog ========= Versions follow `CalVer <http://calver.org>`_ with *no* backward-compatibility guarantees whatsoever. 19.1.0 (UNRELEASED) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Changed license from MIT to Apache License 2. Deprecations: ^^^^^^^^^^^^^ *none* Changes: ^^^^^^^^ - Added ``environ.generate_help(AppConfig)`` to create a help string based on the configuration. ---- 18.2.0 (2018-01-12) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Use ``RawConfigParser`` for ini-style secrets to avoid interpolation errors. Changes: ^^^^^^^^ *none* ---- 18.1.0 (2018-01-04) ------------------- Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - ``convert`` → ``converter`` Changes: ^^^^^^^^ - Fix for ``attrs`` 17.4.0. ---- 17.1.0 (2017-12-14) ------------------- Initial release.
07dbdf3bf63b1ff42f5a252c93fbc07d768031a2
HACKING.md
HACKING.md
Developer Guide =============== Welcome to Parity Developer Guide. The purpose of this document is to help you get started with developing Parity on your own workstation. Build ----- Build the artifacts with Maven: mvn package Maven puts the artifacts into a `target` directory under each module.
Developer Guide =============== Welcome to Parity Developer Guide. The purpose of this document is to help you get started with developing Parity on your own workstation. Test ---- Run the tests with Maven: mvn test Build ----- Build the artifacts with Maven: mvn package Maven puts the artifacts into a `target` directory under each module.
Add test instructions to developer guide
Add test instructions to developer guide
Markdown
apache-2.0
paritytrading/parity,pmcs/parity,paritytrading/parity,pmcs/parity
markdown
## Code Before: Developer Guide =============== Welcome to Parity Developer Guide. The purpose of this document is to help you get started with developing Parity on your own workstation. Build ----- Build the artifacts with Maven: mvn package Maven puts the artifacts into a `target` directory under each module. ## Instruction: Add test instructions to developer guide ## Code After: Developer Guide =============== Welcome to Parity Developer Guide. The purpose of this document is to help you get started with developing Parity on your own workstation. Test ---- Run the tests with Maven: mvn test Build ----- Build the artifacts with Maven: mvn package Maven puts the artifacts into a `target` directory under each module.
2511b42a30d03e985f32371c609c2445e3218561
examples/res/values/strings.xml
examples/res/values/strings.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Vehicle Dashboard</string> <string name="steering_wheel_angle_label">Steering Wheel Angle</string> <string name="vehicle_speed_label">Vehicle Speed</string> <string name="wiper_speed_label">Windshield Wiper Speed</string> <string name="brake_pedal_status_label">Brake_Pedal_Status</string> <string name="engine_speed_label">Engine_Speed</string> <string name="transmission_gear_pos_label">Transmission_Gear_Position</string> <string name="latitude_label">Latitude</string> <string name="longitude_label">Longitude</string> <string name="veh_button_event_label">Vehicle_Button_Event</string> </resources>
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Vehicle Dashboard</string> <string name="steering_wheel_angle_label">Steering Wheel Angle</string> <string name="vehicle_speed_label">Vehicle Speed</string> <string name="wiper_speed_label">Windshield Wiper Speed</string> <string name="brake_pedal_status_label">Brake Pedal Status</string> <string name="engine_speed_label">Engine Speed</string> <string name="transmission_gear_pos_label">Transmission Gear Position</string> <string name="latitude_label">Latitude</string> <string name="longitude_label">Longitude</string> <string name="veh_button_event_label">Button Event</string> </resources>
Use spaces in labels displayed to the user.
Use spaces in labels displayed to the user.
XML
bsd-3-clause
prateeknitish391/demo,mray19027/openxc-android,openxc/openxc-android,ChernyshovYuriy/openxc-android,prateeknitish391/demo,msowka/openxc-android,petemaclellan/openxc-android,dhootha/openxc-android,msowka/openxc-android,petemaclellan/openxc-android,ChernyshovYuriy/openxc-android,prateeknitish391/demo,dhootha/openxc-android,mray19027/openxc-android,openxc/openxc-android
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Vehicle Dashboard</string> <string name="steering_wheel_angle_label">Steering Wheel Angle</string> <string name="vehicle_speed_label">Vehicle Speed</string> <string name="wiper_speed_label">Windshield Wiper Speed</string> <string name="brake_pedal_status_label">Brake_Pedal_Status</string> <string name="engine_speed_label">Engine_Speed</string> <string name="transmission_gear_pos_label">Transmission_Gear_Position</string> <string name="latitude_label">Latitude</string> <string name="longitude_label">Longitude</string> <string name="veh_button_event_label">Vehicle_Button_Event</string> </resources> ## Instruction: Use spaces in labels displayed to the user. ## Code After: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Vehicle Dashboard</string> <string name="steering_wheel_angle_label">Steering Wheel Angle</string> <string name="vehicle_speed_label">Vehicle Speed</string> <string name="wiper_speed_label">Windshield Wiper Speed</string> <string name="brake_pedal_status_label">Brake Pedal Status</string> <string name="engine_speed_label">Engine Speed</string> <string name="transmission_gear_pos_label">Transmission Gear Position</string> <string name="latitude_label">Latitude</string> <string name="longitude_label">Longitude</string> <string name="veh_button_event_label">Button Event</string> </resources>
af0847d11a89068372b439a4bfc55e107c541e10
app/helpers/sitemap_helper.rb
app/helpers/sitemap_helper.rb
module SitemapHelper def classic_links add root_path add abouts_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'About').menu_online add new_contact_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'Contact').menu_online add legal_notices_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'LegalNotice').menu_online end def blog_module add blogs_path, priority: 0.7, changefreq: 'monthly' Blog.online.find_each do |blog| add blog_path(blog), priority: 0.7, changefreq: 'monthly' end end def event_module add events_path, priority: 0.7, changefreq: 'monthly' Event.online.find_each do |event| add event_path(event), priority: 0.7, changefreq: 'monthly' end end def guest_book_module add guest_books_path, priority: 0.7, changefreq: 'monthly' end def rss_module add posts_rss_path(format: :atom), priority: 0.7, changefreq: 'monthly' end end
module SitemapHelper def classic_links add root_path add abouts_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'About').menu_online add new_contact_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'Contact').menu_online add legal_notices_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'LegalNotice').menu_online end [Blog, Event].each do |mod| define_method "#{mod.to_s.underscore}_module" do add send("#{mod.to_s.underscore.pluralize}_path"), priority: 0.7, changefreq: 'monthly' mod.online.find_each do |resource| add send("#{mod.to_s.underscore}_path", resource), priority: 0.7, changefreq: 'monthly' end end end def guest_book_module add guest_books_path, priority: 0.7, changefreq: 'monthly' end def rss_module add posts_rss_path(format: :atom), priority: 0.7, changefreq: 'monthly' end end
Refactor sitemap helper methods in a cleaner way
Refactor sitemap helper methods in a cleaner way
Ruby
mit
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
ruby
## Code Before: module SitemapHelper def classic_links add root_path add abouts_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'About').menu_online add new_contact_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'Contact').menu_online add legal_notices_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'LegalNotice').menu_online end def blog_module add blogs_path, priority: 0.7, changefreq: 'monthly' Blog.online.find_each do |blog| add blog_path(blog), priority: 0.7, changefreq: 'monthly' end end def event_module add events_path, priority: 0.7, changefreq: 'monthly' Event.online.find_each do |event| add event_path(event), priority: 0.7, changefreq: 'monthly' end end def guest_book_module add guest_books_path, priority: 0.7, changefreq: 'monthly' end def rss_module add posts_rss_path(format: :atom), priority: 0.7, changefreq: 'monthly' end end ## Instruction: Refactor sitemap helper methods in a cleaner way ## Code After: module SitemapHelper def classic_links add root_path add abouts_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'About').menu_online add new_contact_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'Contact').menu_online add legal_notices_path, priority: 0.7, changefreq: 'monthly' if Category.find_by(name: 'LegalNotice').menu_online end [Blog, Event].each do |mod| define_method "#{mod.to_s.underscore}_module" do add send("#{mod.to_s.underscore.pluralize}_path"), priority: 0.7, changefreq: 'monthly' mod.online.find_each do |resource| add send("#{mod.to_s.underscore}_path", resource), priority: 0.7, changefreq: 'monthly' end end end def guest_book_module add guest_books_path, priority: 0.7, changefreq: 'monthly' end def rss_module add posts_rss_path(format: :atom), priority: 0.7, changefreq: 'monthly' end end
503f92796b9368a78f39c41fb6bb596f32728b8d
herana/views.py
herana/views.py
import json from django.shortcuts import render from django.views.generic import View from models import Institute, ProjectDetail from forms import SelectInstituteForm, SelectOrgLevelForm def home(request): return render(request, 'index.html') class ResultsView(View): template_name = 'results.html' def get(self, request, *args, **kwargs): projects = ProjectDetail.objects.filter( record_status=2, is_rejected=False, is_deleted=False) institutes = {proj.institute for proj in projects} data = {} data['projects'] = [p.as_dict() for p in projects] data['institutes'] = [i.as_dict() for i in institutes] if request.user.is_proj_leader or request.user.is_institute_admin: data['user_institute'] = request.user.get_user_institute().as_dict() context = { "data": json.dumps(data), } return render( request, self.template_name, context=context)
import json from django.shortcuts import render from django.views.generic import View from models import Institute, ProjectDetail from forms import SelectInstituteForm, SelectOrgLevelForm def home(request): return render(request, 'index.html') class ResultsView(View): template_name = 'results.html' def get(self, request, *args, **kwargs): projects = ProjectDetail.objects.filter( record_status=2, is_rejected=False, is_deleted=False) institutes = {proj.institute for proj in projects} data = {} data['projects'] = [p.as_dict() for p in projects] data['institutes'] = [i.as_dict() for i in institutes] if request.user.is_authenticated(): if request.user.is_proj_leader or request.user.is_institute_admin: data['user_institute'] = request.user.get_user_institute().as_dict() context = { "data": json.dumps(data), } return render( request, self.template_name, context=context)
Check if user in logged in
Check if user in logged in
Python
mit
Code4SA/herana,Code4SA/herana,Code4SA/herana,Code4SA/herana
python
## Code Before: import json from django.shortcuts import render from django.views.generic import View from models import Institute, ProjectDetail from forms import SelectInstituteForm, SelectOrgLevelForm def home(request): return render(request, 'index.html') class ResultsView(View): template_name = 'results.html' def get(self, request, *args, **kwargs): projects = ProjectDetail.objects.filter( record_status=2, is_rejected=False, is_deleted=False) institutes = {proj.institute for proj in projects} data = {} data['projects'] = [p.as_dict() for p in projects] data['institutes'] = [i.as_dict() for i in institutes] if request.user.is_proj_leader or request.user.is_institute_admin: data['user_institute'] = request.user.get_user_institute().as_dict() context = { "data": json.dumps(data), } return render( request, self.template_name, context=context) ## Instruction: Check if user in logged in ## Code After: import json from django.shortcuts import render from django.views.generic import View from models import Institute, ProjectDetail from forms import SelectInstituteForm, SelectOrgLevelForm def home(request): return render(request, 'index.html') class ResultsView(View): template_name = 'results.html' def get(self, request, *args, **kwargs): projects = ProjectDetail.objects.filter( record_status=2, is_rejected=False, is_deleted=False) institutes = {proj.institute for proj in projects} data = {} data['projects'] = [p.as_dict() for p in projects] data['institutes'] = [i.as_dict() for i in institutes] if request.user.is_authenticated(): if request.user.is_proj_leader or request.user.is_institute_admin: data['user_institute'] = request.user.get_user_institute().as_dict() context = { "data": json.dumps(data), } return render( request, self.template_name, context=context)
012a83fbefb01f63d41f7556578ca206f9f6f9a9
test/services/chart_j_s_service_test.rb
test/services/chart_j_s_service_test.rb
require 'test_helper' require 'chart_j_s_service' # Test ChartJSService class ChartJSServiceTest < MockedTest # Scatter graph data should be formatted like this: http://www.chartjs.org/docs/#line-chart-scatter-line-charts def test_balance_by_day_for_scatter_graph balances = ChartJSService.balance_by_day_for_scatter_graph assert_kind_of Array, balances assert_kind_of Hash, balances.first date = TransactionService.all_transactions.first.created.strftime('%Y-%m-%d') # eg 2017-02-23 balance = TransactionService.all_transactions.first.account_balance.cents / 100 # want this in pounds not pence first_balance = { x: date, y: balance } assert_equal first_balance, balances.first, 'Data should be of the form { x: 2017-02-23, y: 30 }' end end
require 'test_helper' require 'chart_j_s_service' # Test ChartJSService class ChartJSServiceTest < MockedTest def setup super('test/data/chart_j_s_service_test_data.json') end # Scatter graph data should be formatted like this: http://www.chartjs.org/docs/#line-chart-scatter-line-charts def test_balance_by_day_for_scatter_graph balances = ChartJSService.balance_by_day_for_scatter_graph assert_kind_of Array, balances assert_kind_of Hash, balances.first date = TransactionService.all_transactions.first.created.strftime('%Y-%m-%d') # eg 2017-02-23 balance = TransactionService.all_transactions.first.account_balance.cents / 100 # want this in pounds not pence first_balance = { x: date, y: balance } assert_equal first_balance, balances.first, 'Data should be of the form { x: 2017-02-23, y: 30 }' end end
Make test read correct dataset
Make test read correct dataset
Ruby
mit
tomnatt/monzoapp,tomnatt/monzoapp,tomnatt/monzoapp
ruby
## Code Before: require 'test_helper' require 'chart_j_s_service' # Test ChartJSService class ChartJSServiceTest < MockedTest # Scatter graph data should be formatted like this: http://www.chartjs.org/docs/#line-chart-scatter-line-charts def test_balance_by_day_for_scatter_graph balances = ChartJSService.balance_by_day_for_scatter_graph assert_kind_of Array, balances assert_kind_of Hash, balances.first date = TransactionService.all_transactions.first.created.strftime('%Y-%m-%d') # eg 2017-02-23 balance = TransactionService.all_transactions.first.account_balance.cents / 100 # want this in pounds not pence first_balance = { x: date, y: balance } assert_equal first_balance, balances.first, 'Data should be of the form { x: 2017-02-23, y: 30 }' end end ## Instruction: Make test read correct dataset ## Code After: require 'test_helper' require 'chart_j_s_service' # Test ChartJSService class ChartJSServiceTest < MockedTest def setup super('test/data/chart_j_s_service_test_data.json') end # Scatter graph data should be formatted like this: http://www.chartjs.org/docs/#line-chart-scatter-line-charts def test_balance_by_day_for_scatter_graph balances = ChartJSService.balance_by_day_for_scatter_graph assert_kind_of Array, balances assert_kind_of Hash, balances.first date = TransactionService.all_transactions.first.created.strftime('%Y-%m-%d') # eg 2017-02-23 balance = TransactionService.all_transactions.first.account_balance.cents / 100 # want this in pounds not pence first_balance = { x: date, y: balance } assert_equal first_balance, balances.first, 'Data should be of the form { x: 2017-02-23, y: 30 }' end end
6dcf7e509ee4f5b8b01592728fbbb1a94886a92a
src/main/java/io/github/lexware/bukkit/enderbow/EnderBowListener.java
src/main/java/io/github/lexware/bukkit/enderbow/EnderBowListener.java
package io.github.lexware.bukkit.enderbow; import org.bukkit.entity.Entity; import org.bukkit.entity.Projectile; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityShootBowEvent; import org.bukkit.event.entity.ProjectileHitEvent; import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.MetadataValue; /** * Created by jamie on 09/01/15. */ public class EnderBowListener implements Listener { private final EnderBowPlugin plugin; public EnderBowListener(EnderBowPlugin plugin) { this.plugin = plugin; } @EventHandler public void onEntityShootBowEvent(EntityShootBowEvent event) { if(event.getBow().getItemMeta().getDisplayName().equals("Ender bow")) { event.getProjectile().setMetadata("enderBowData", new FixedMetadataValue(plugin, "enderArrow")); } } @EventHandler public void onProjectileHit(ProjectileHitEvent event) { if(event.getEntity().hasMetadata("enderBowData")) { for(MetadataValue value : event.getEntity().getMetadata("enderBowData")) { if(value.asString().equals("enderArrow")) { ((Entity)event.getEntity().getShooter()).teleport(event.getEntity().getLocation()); } } } } }
package io.github.lexware.bukkit.enderbow; import org.bukkit.entity.Entity; import org.bukkit.entity.Projectile; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityShootBowEvent; import org.bukkit.event.entity.ProjectileHitEvent; import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.MetadataValue; /** * Created by jamie on 09/01/15. */ public class EnderBowListener implements Listener { private final EnderBowPlugin plugin; public EnderBowListener(EnderBowPlugin plugin) { this.plugin = plugin; } @EventHandler public void onEntityShootBowEvent(EntityShootBowEvent event) { if(event.getBow().hasItemMeta() && event.getBow().getItemMeta().getDisplayName().equals("Ender bow")) { event.getProjectile().setMetadata("enderBowData", new FixedMetadataValue(plugin, "enderArrow")); } } @EventHandler public void onProjectileHit(ProjectileHitEvent event) { if(event.getEntity().hasMetadata("enderBowData")) { for(MetadataValue value : event.getEntity().getMetadata("enderBowData")) { if(value.asString().equals("enderArrow")) { ((Entity)event.getEntity().getShooter()).teleport(event.getEntity().getLocation()); } } } } }
Fix NPE with normal bows.
Fix NPE with normal bows.
Java
mit
jamierocks/EnderBow
java
## Code Before: package io.github.lexware.bukkit.enderbow; import org.bukkit.entity.Entity; import org.bukkit.entity.Projectile; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityShootBowEvent; import org.bukkit.event.entity.ProjectileHitEvent; import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.MetadataValue; /** * Created by jamie on 09/01/15. */ public class EnderBowListener implements Listener { private final EnderBowPlugin plugin; public EnderBowListener(EnderBowPlugin plugin) { this.plugin = plugin; } @EventHandler public void onEntityShootBowEvent(EntityShootBowEvent event) { if(event.getBow().getItemMeta().getDisplayName().equals("Ender bow")) { event.getProjectile().setMetadata("enderBowData", new FixedMetadataValue(plugin, "enderArrow")); } } @EventHandler public void onProjectileHit(ProjectileHitEvent event) { if(event.getEntity().hasMetadata("enderBowData")) { for(MetadataValue value : event.getEntity().getMetadata("enderBowData")) { if(value.asString().equals("enderArrow")) { ((Entity)event.getEntity().getShooter()).teleport(event.getEntity().getLocation()); } } } } } ## Instruction: Fix NPE with normal bows. ## Code After: package io.github.lexware.bukkit.enderbow; import org.bukkit.entity.Entity; import org.bukkit.entity.Projectile; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityShootBowEvent; import org.bukkit.event.entity.ProjectileHitEvent; import org.bukkit.metadata.FixedMetadataValue; import org.bukkit.metadata.MetadataValue; /** * Created by jamie on 09/01/15. */ public class EnderBowListener implements Listener { private final EnderBowPlugin plugin; public EnderBowListener(EnderBowPlugin plugin) { this.plugin = plugin; } @EventHandler public void onEntityShootBowEvent(EntityShootBowEvent event) { if(event.getBow().hasItemMeta() && event.getBow().getItemMeta().getDisplayName().equals("Ender bow")) { event.getProjectile().setMetadata("enderBowData", new FixedMetadataValue(plugin, "enderArrow")); } } @EventHandler public void onProjectileHit(ProjectileHitEvent event) { if(event.getEntity().hasMetadata("enderBowData")) { for(MetadataValue value : event.getEntity().getMetadata("enderBowData")) { if(value.asString().equals("enderArrow")) { ((Entity)event.getEntity().getShooter()).teleport(event.getEntity().getLocation()); } } } } }
0fa02404917e0bef256d79cc0234e718f09591bd
scripts/travis_install.sh
scripts/travis_install.sh
if [ ${TASK} == "lint" ]; then sudo pip install pylint --user `whoami` fi if [ ${TASK} == "nosetests" ]; then # Create virtual env using system numpy and scipy deactivate virtualenv --system-site-packages testenv source testenv/bin/activate # Install dependencies sudo pip install --upgrade pip sudo pip install numpy sudo pip install scipy sudo pip install pandas sudo pip install scikit-learn # Install TensorFlow if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl fi if [ ${TRAVIS_OS_NAME} == "osx" ]; then sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl fi # Install test tools sudo pip install nose # Install skflow sudo python setup.py install fi
if [ ${TASK} == "lint" ]; then sudo pip install pylint fi if [ ${TASK} == "nosetests" ]; then # Create virtual env using system numpy and scipy deactivate virtualenv --system-site-packages testenv source testenv/bin/activate # Install dependencies sudo pip install --upgrade pip sudo pip install numpy sudo pip install scipy sudo pip install pandas sudo pip install scikit-learn # Install TensorFlow if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl fi if [ ${TRAVIS_OS_NAME} == "osx" ]; then sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl fi # Install test tools sudo pip install nose # Install skflow sudo python setup.py install fi
Fix pylint install on Travis
Fix pylint install on Travis
Shell
apache-2.0
chemelnucfin/tensorflow,alisidd/tensorflow,xodus7/tensorflow,abhitopia/tensorflow,HaebinShin/tensorflow,tornadozou/tensorflow,nanditav/15712-TensorFlow,Carmezim/tensorflow,yufengg/tensorflow,mavenlin/tensorflow,MostafaGazar/tensorflow,gojira/tensorflow,dansbecker/skflow,davidzchen/tensorflow,neilhan/tensorflow,Bulochkin/tensorflow_pack,DCSaunders/tensorflow,meteorcloudy/tensorflow,haeusser/tensorflow,benoitsteiner/tensorflow-xsmm,annarev/tensorflow,sarvex/tensorflow,brchiu/tensorflow,xzturn/tensorflow,renyi533/tensorflow,alistairlow/tensorflow,mavenlin/tensorflow,markslwong/tensorflow,code-sauce/tensorflow,mdrumond/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,SnakeJenny/TensorFlow,ville-k/tensorflow,kevin-coder/tensorflow-fork,zycdragonball/tensorflow,panmari/tensorflow,MycChiu/tensorflow,horance-liu/tensorflow,ZhangXinNan/tensorflow,sarvex/tensorflow,ArtsiomCh/tensorflow,Mistobaan/tensorflow,theflofly/tensorflow,abhitopia/tensorflow,MostafaGazar/tensorflow,Bismarrck/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,haeusser/tensorflow,MycChiu/tensorflow,hehongliang/tensorflow,meteorcloudy/tensorflow,ychfan/tensorflow,jendap/tensorflow,MoamerEncsConcordiaCa/tensorflow,JVillella/tensorflow,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,unsiloai/syntaxnet-ops-hack,tongwang01/tensorflow,seanli9jan/tensorflow,awni/tensorflow,Carmezim/tensorflow,snnn/tensorflow,frreiss/tensorflow-fred,odejesush/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,pcm17/tensorflow,LUTAN/tensorflow,tensorflow/tensorflow,RapidApplicationDevelopment/tensorflow,MycChiu/tensorflow,awni/tensorflow,drpngx/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,zasdfgbnm/tensorflow,Mistobaan/tensorflow,aam-at/tensorflow,odejesush/tensorflow,jalexvig/tensorflow,llhe/tensorflow,strint/tensorflow,nolanliou/tensorflow,ghchinoy/tensorflow,frreiss/tensorflow-fred,alistairlow/tensorflow,calebfoss/tensorflow,suiyuan2009/tensorflow,ran5515/DeepDecision,thesuperzapper/tensorflow,alisidd/tensorflow,aam-at/tensorflow,mdrumond/tensorflow,xodus7/tensorflow,ishay2b/tensorflow,ArtsiomCh/tensorflow,Kongsea/tensorflow,ArtsiomCh/tensorflow,AnishShah/tensorflow,Carmezim/tensorflow,ghchinoy/tensorflow,jhaux/tensorflow,mortada/tensorflow,karllessard/tensorflow,nikste/tensorflow,lakshayg/tensorflow,code-sauce/tensorflow,nburn42/tensorflow,Mistobaan/tensorflow,jbedorf/tensorflow,Mazecreator/tensorflow,gautam1858/tensorflow,dongjoon-hyun/tensorflow,codrut3/tensorflow,petewarden/tensorflow,ghchinoy/tensorflow,DavidNorman/tensorflow,zycdragonball/tensorflow,ibab/tensorflow,benoitsteiner/tensorflow,thesuperzapper/tensorflow,ageron/tensorflow,alheinecke/tensorflow-xsmm,zasdfgbnm/tensorflow,gnieboer/tensorflow,ageron/tensorflow,ppries/tensorflow,cancan101/tensorflow,ishay2b/tensorflow,kobejean/tensorflow,asimshankar/tensorflow,jhseu/tensorflow,neilhan/tensorflow,suiyuan2009/tensorflow,cg31/tensorflow,dyoung418/tensorflow,tongwang01/tensorflow,theflofly/tensorflow,lukeiwanski/tensorflow,arborh/tensorflow,admcrae/tensorflow,aselle/tensorflow,ychfan/tensorflow,av8ramit/tensorflow,guschmue/tensorflow,xodus7/tensorflow,allenlavoie/tensorflow,ran5515/DeepDecision,aselle/tensorflow,cxxgtxy/tensorflow,mrry/tensorflow,eerwitt/tensorflow,hfp/tensorflow-xsmm,lukeiwanski/tensorflow-opencl,panmari/tensorflow,eadgarchen/tensorflow,ibmsoe/tensorflow,dhalleine/tensorflow,MoamerEncsConcordiaCa/tensorflow,a-doumoulakis/tensorflow,alshedivat/tensorflow,wangyum/tensorflow,ravindrapanda/tensorflow,ZhangXinNan/tensorflow,AnishShah/tensorflow,HKUST-SING/tensorflow,lakshayg/tensorflow,kobejean/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,nolanliou/tensorflow,ivano666/tensorflow,gojira/tensorflow,DavidNorman/tensorflow,Mistobaan/tensorflow,dongjoon-hyun/tensorflow,apark263/tensorflow,nightjean/Deep-Learning,brchiu/tensorflow,asimshankar/tensorflow,krikru/tensorflow-opencl,gautam1858/tensorflow,bowang/tensorflow,dyoung418/tensorflow,snnn/tensorflow,tomasreimers/tensorflow-emscripten,laosiaudi/tensorflow,Moriadry/tensorflow,jwlawson/tensorflow,ZhangXinNan/tensorflow,benoitsteiner/tensorflow,unsiloai/syntaxnet-ops-hack,raymondxyang/tensorflow,girving/tensorflow,tomasreimers/tensorflow-emscripten,alshedivat/tensorflow,JingJunYin/tensorflow,alsrgv/tensorflow,JingJunYin/tensorflow,laosiaudi/tensorflow,ppwwyyxx/tensorflow,codrut3/tensorflow,ageron/tensorflow,ychfan/tensorflow,zycdragonball/tensorflow,sandeepdsouza93/TensorFlow-15712,benoitsteiner/tensorflow,vrv/tensorflow,rdipietro/tensorflow,tntnatbry/tensorflow,with-git/tensorflow,LUTAN/tensorflow,SnakeJenny/TensorFlow,drpngx/tensorflow,eadgarchen/tensorflow,MostafaGazar/tensorflow,yaroslavvb/tensorflow,jbedorf/tensorflow,jostep/tensorflow,jbedorf/tensorflow,sandeepgupta2k4/tensorflow,sarvex/tensorflow,seaotterman/tensorflow,cxxgtxy/tensorflow,odejesush/tensorflow,Intel-tensorflow/tensorflow,LUTAN/tensorflow,ppwwyyxx/tensorflow,ville-k/tensorflow,MoamerEncsConcordiaCa/tensorflow,xzturn/tensorflow,unsiloai/syntaxnet-ops-hack,cancan101/tensorflow,annarev/tensorflow,hsaputra/tensorflow,rabipanda/tensorflow,AnishShah/tensorflow,gojira/tensorflow,vrv/tensorflow,sjperkins/tensorflow,nanditav/15712-TensorFlow,tensorflow/skflow,sandeepdsouza93/TensorFlow-15712,AnishShah/tensorflow,abhitopia/tensorflow,zasdfgbnm/tensorflow,calebfoss/tensorflow,ishay2b/tensorflow,HKUST-SING/tensorflow,alshedivat/tensorflow,laszlocsomor/tensorflow,DavidNorman/tensorflow,panmari/tensorflow,benoitsteiner/tensorflow-xsmm,alsrgv/tensorflow,XueqingLin/tensorflow,JVillella/tensorflow,hsaputra/tensorflow,AndreasMadsen/tensorflow,bowang/tensorflow,tiagofrepereira2012/tensorflow,zycdragonball/tensorflow,TakayukiSakai/tensorflow,horance-liu/tensorflow,eadgarchen/tensorflow,asadziach/tensorflow,yaroslavvb/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,alshedivat/tensorflow,kevin-coder/tensorflow-fork,benoitsteiner/tensorflow-opencl,tillahoffmann/tensorflow,tornadozou/tensorflow,markslwong/tensorflow,brchiu/tensorflow,Mistobaan/tensorflow,taknevski/tensorflow-xsmm,Bulochkin/tensorflow_pack,eaplatanios/tensorflow,alivecor/tensorflow,admcrae/tensorflow,apark263/tensorflow,tiagofrepereira2012/tensorflow,JingJunYin/tensorflow,EvenStrangest/tensorflow,alsrgv/tensorflow,MostafaGazar/tensorflow,odejesush/tensorflow,RapidApplicationDevelopment/tensorflow,petewarden/tensorflow,ppries/tensorflow,jwlawson/tensorflow,mortada/tensorflow,naturali/tensorflow,zasdfgbnm/tensorflow,rabipanda/tensorflow,krikru/tensorflow-opencl,ibmsoe/tensorflow,whn09/tensorflow,mavenlin/tensorflow,meteorcloudy/tensorflow,aselle/tensorflow,anilmuthineni/tensorflow,adamtiger/tensorflow,Bulochkin/tensorflow_pack,arborh/tensorflow,peterbraden/tensorflow,eaplatanios/tensorflow,llhe/tensorflow,johndpope/tensorflow,panmari/tensorflow,sjperkins/tensorflow,ychfan/tensorflow,manipopopo/tensorflow,peterbraden/tensorflow,Kongsea/tensorflow,gautam1858/tensorflow,jbedorf/tensorflow,freedomtan/tensorflow,Bismarrck/tensorflow,lakshayg/tensorflow,elingg/tensorflow,renyi533/tensorflow,theflofly/tensorflow,xodus7/tensorflow,pierreg/tensorflow,gunan/tensorflow,asadziach/tensorflow,gibiansky/tensorflow,Intel-Corporation/tensorflow,alivecor/tensorflow,adit-chandra/tensorflow,nburn42/tensorflow,andrewcmyers/tensorflow,XueqingLin/tensorflow,hfp/tensorflow-xsmm,nburn42/tensorflow,cancan101/tensorflow,jwlawson/tensorflow,kchodorow/tensorflow,brchiu/tensorflow,jendap/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,sjperkins/tensorflow,alshedivat/tensorflow,johndpope/tensorflow,asadziach/tensorflow,mixturemodel-flow/tensorflow,dongjoon-hyun/tensorflow,apark263/tensorflow,meteorcloudy/tensorflow,vrv/tensorflow,hsaputra/tensorflow,davidzchen/tensorflow,alisidd/tensorflow,ninotoshi/tensorflow,laosiaudi/tensorflow,allenlavoie/tensorflow,jhseu/tensorflow,dyoung418/tensorflow,neilhan/tensorflow,LUTAN/tensorflow,codrut3/tensorflow,adamtiger/tensorflow,gibiansky/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,tornadozou/tensorflow,asimshankar/tensorflow,AndreasMadsen/tensorflow,panmari/tensorflow,allenlavoie/tensorflow,jbedorf/tensorflow,ghchinoy/tensorflow,alistairlow/tensorflow,memo/tensorflow,cancan101/tensorflow,pcm17/tensorflow,thjashin/tensorflow,calebfoss/tensorflow,nikste/tensorflow,MoamerEncsConcordiaCa/tensorflow,tongwang01/tensorflow,TakayukiSakai/tensorflow,dhalleine/tensorflow,wangyum/tensorflow,HKUST-SING/tensorflow,jeffzheng1/tensorflow,jalexvig/tensorflow,thesuperzapper/tensorflow,kamcpp/tensorflow,nburn42/tensorflow,av8ramit/tensorflow,gunan/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,drpngx/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,zycdragonball/tensorflow,sarvex/tensorflow,laszlocsomor/tensorflow,ibab/tensorflow,martinwicke/tensorflow,ageron/tensorflow,mrry/tensorflow,scenarios/tensorflow,anand-c-goog/tensorflow,Intel-Corporation/tensorflow,DCSaunders/tensorflow,apark263/tensorflow,gibiansky/tensorflow,kevin-coder/tensorflow-fork,paolodedios/tensorflow,ibmsoe/tensorflow,paolodedios/tensorflow,jwlawson/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ibab/tensorflow,awni/tensorflow,snnn/tensorflow,ArtsiomCh/tensorflow,pavelchristof/gomoku-ai,elingg/tensorflow,ppries/tensorflow,ychfan/tensorflow,wchan/tensorflow,sjperkins/tensorflow,lukeiwanski/tensorflow-opencl,codrut3/tensorflow,nburn42/tensorflow,benoitsteiner/tensorflow-opencl,gunan/tensorflow,tiagofrepereira2012/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Mazecreator/tensorflow,tntnatbry/tensorflow,alsrgv/tensorflow,chenjun0210/tensorflow,gojira/tensorflow,xzturn/tensorflow,yufengg/tensorflow,haeusser/tensorflow,EvenStrangest/tensorflow,thesuperzapper/tensorflow,gunan/tensorflow,manjunaths/tensorflow,eerwitt/tensorflow,tntnatbry/tensorflow,apark263/tensorflow,rdipietro/tensorflow,tiagofrepereira2012/tensorflow,AnishShah/tensorflow,eaplatanios/tensorflow,maciekcc/tensorflow,rdipietro/tensorflow,XueqingLin/tensorflow,annarev/tensorflow,sandeepdsouza93/TensorFlow-15712,ivano666/tensorflow,jhseu/tensorflow,Moriadry/tensorflow,eadgarchen/tensorflow,naturali/tensorflow,tensorflow/tensorflow,taknevski/tensorflow-xsmm,ageron/tensorflow,anand-c-goog/tensorflow,jbedorf/tensorflow,alheinecke/tensorflow-xsmm,tornadozou/tensorflow,benoitsteiner/tensorflow-xsmm,Bismarrck/tensorflow,jwlawson/tensorflow,jeffzheng1/tensorflow,adit-chandra/tensorflow,sandeepgupta2k4/tensorflow,brchiu/tensorflow,hsaputra/tensorflow,maciekcc/tensorflow,seanli9jan/tensorflow,martinwicke/tensorflow,chemelnucfin/tensorflow,admcrae/tensorflow,jendap/tensorflow,anand-c-goog/tensorflow,dancingdan/tensorflow,Carmezim/tensorflow,guschmue/tensorflow,arborh/tensorflow,rdipietro/tensorflow,manazhao/tf_recsys,chenjun0210/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,mengxn/tensorflow,JVillella/tensorflow,ppwwyyxx/tensorflow,benoitsteiner/tensorflow-opencl,scenarios/tensorflow,yufengg/tensorflow,ghchinoy/tensorflow,dendisuhubdy/tensorflow,krikru/tensorflow-opencl,xodus7/tensorflow,pavelchristof/gomoku-ai,yongtang/tensorflow,andrewcmyers/tensorflow,ageron/tensorflow,jhseu/tensorflow,benoitsteiner/tensorflow-opencl,arborh/tensorflow,jostep/tensorflow,Xeralux/tensorflow,nburn42/tensorflow,lukeiwanski/tensorflow-opencl,raymondxyang/tensorflow,pcm17/tensorflow,brchiu/tensorflow,ppwwyyxx/tensorflow,mrry/tensorflow,seaotterman/tensorflow,snnn/tensorflow,petewarden/tensorflow,taknevski/tensorflow-xsmm,brchiu/tensorflow,mrry/tensorflow,anand-c-goog/tensorflow,yongtang/tensorflow,alisidd/tensorflow,vrv/tensorflow,kchodorow/tensorflow,sjperkins/tensorflow,MycChiu/tensorflow,markslwong/tensorflow,awni/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,dendisuhubdy/tensorflow,dancingdan/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,lukeiwanski/tensorflow,jendap/tensorflow,ninotoshi/tensorflow,scenarios/tensorflow,seanli9jan/tensorflow,jart/tensorflow,gojira/tensorflow,meteorcloudy/tensorflow,ville-k/tensorflow,llhe/tensorflow,codrut3/tensorflow,AnishShah/tensorflow,odejesush/tensorflow,abhitopia/tensorflow,JingJunYin/tensorflow,Mazecreator/tensorflow,snnn/tensorflow,cancan101/tensorflow,eadgarchen/tensorflow,ppwwyyxx/tensorflow,alivecor/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,markslwong/tensorflow,sandeepgupta2k4/tensorflow,kamcpp/tensorflow,nikste/tensorflow,neilhan/tensorflow,mortada/tensorflow,martinwicke/tensorflow,kamcpp/tensorflow,MycChiu/tensorflow,markslwong/tensorflow,annarev/tensorflow,LUTAN/tensorflow,manjunaths/tensorflow,RapidApplicationDevelopment/tensorflow,eadgarchen/tensorflow,DCSaunders/tensorflow,nburn42/tensorflow,vrv/tensorflow,MostafaGazar/tensorflow,unsiloai/syntaxnet-ops-hack,tensorflow/tensorflow-pywrap_saved_model,mdrumond/tensorflow,naturali/tensorflow,horance-liu/tensorflow,gojira/tensorflow,arborh/tensorflow,rdipietro/tensorflow,gnieboer/tensorflow,bowang/tensorflow,jbedorf/tensorflow,llhe/tensorflow,wangyum/tensorflow,juharris/tensorflow,ychfan/tensorflow,memo/tensorflow,gibiansky/tensorflow,TakayukiSakai/tensorflow,Xeralux/tensorflow,jostep/tensorflow,jhaux/tensorflow,a-doumoulakis/tensorflow,ppries/tensorflow,naturali/tensorflow,ArtsiomCh/tensorflow,jhseu/tensorflow,whn09/tensorflow,tensorflow/tensorflow,seaotterman/tensorflow,sandeepdsouza93/TensorFlow-15712,laszlocsomor/tensorflow,martinwicke/tensorflow,lakshayg/tensorflow,manjunaths/tensorflow,thesuperzapper/tensorflow,tomasreimers/tensorflow-emscripten,rabipanda/tensorflow,renyi533/tensorflow,mdrumond/tensorflow,guschmue/tensorflow,seanli9jan/tensorflow,brchiu/tensorflow,kchodorow/tensorflow,petewarden/tensorflow_makefile,asadziach/tensorflow,chris-chris/tensorflow,panmari/tensorflow,ravindrapanda/tensorflow,calebfoss/tensorflow,sandeepdsouza93/TensorFlow-15712,thjashin/tensorflow,jalexvig/tensorflow,mdrumond/tensorflow,kobejean/tensorflow,ninotoshi/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,mdrumond/tensorflow,mavenlin/tensorflow,guschmue/tensorflow,mixturemodel-flow/tensorflow,dhalleine/tensorflow,davidzchen/tensorflow,naturali/tensorflow,peterbraden/tensorflow,rabipanda/tensorflow,manazhao/tf_recsys,DCSaunders/tensorflow,nightjean/Deep-Learning,AndreasMadsen/tensorflow,abhitopia/tensorflow,karllessard/tensorflow,pavelchristof/gomoku-ai,strint/tensorflow,peterbraden/tensorflow,raymondxyang/tensorflow,hehongliang/tensorflow,pcm17/tensorflow,lakshayg/tensorflow,alsrgv/tensorflow,cancan101/tensorflow,mrry/tensorflow,aldian/tensorflow,chenjun0210/tensorflow,ibmsoe/tensorflow,whn09/tensorflow,apark263/tensorflow,yongtang/tensorflow,ibmsoe/tensorflow,scenarios/tensorflow,jeffzheng1/tensorflow,davidzchen/tensorflow,taknevski/tensorflow-xsmm,JingJunYin/tensorflow,XueqingLin/tensorflow,chenjun0210/tensorflow,wangyum/tensorflow,martinwicke/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kobejean/tensorflow,jart/tensorflow,Mazecreator/tensorflow,petewarden/tensorflow_makefile,jhaux/tensorflow,jwlawson/tensorflow,DavidNorman/tensorflow,chenjun0210/tensorflow,yongtang/tensorflow,dendisuhubdy/tensorflow,AnishShah/tensorflow,davidzchen/tensorflow,ychfan/tensorflow,av8ramit/tensorflow,dansbecker/skflow,gojira/tensorflow,kamcpp/tensorflow,haeusser/tensorflow,manazhao/tf_recsys,dongjoon-hyun/tensorflow,XueqingLin/tensorflow,ppries/tensorflow,benoitsteiner/tensorflow-xsmm,caisq/tensorflow,a-doumoulakis/tensorflow,rabipanda/tensorflow,nikste/tensorflow,kevin-coder/tensorflow-fork,taknevski/tensorflow-xsmm,unsiloai/syntaxnet-ops-hack,tornadozou/tensorflow,pavelchristof/gomoku-ai,gunan/tensorflow,raymondxyang/tensorflow,cg31/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,lukeiwanski/tensorflow,handroissuazo/tensorflow,lukeiwanski/tensorflow-opencl,eaplatanios/tensorflow,anilmuthineni/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ville-k/tensorflow,AndreasMadsen/tensorflow,peterbraden/tensorflow,ran5515/DeepDecision,rabipanda/tensorflow,caisq/tensorflow,pierreg/tensorflow,ninotoshi/tensorflow,jalexvig/tensorflow,aldian/tensorflow,odejesush/tensorflow,nolanliou/tensorflow,Intel-Corporation/tensorflow,tntnatbry/tensorflow,kevin-coder/tensorflow-fork,strint/tensorflow,JingJunYin/tensorflow,a-doumoulakis/tensorflow,manazhao/tf_recsys,chris-chris/tensorflow,chris-chris/tensorflow,gunan/tensorflow,with-git/tensorflow,alheinecke/tensorflow-xsmm,a-doumoulakis/tensorflow,paolodedios/tensorflow,dhalleine/tensorflow,davidzchen/tensorflow,gnieboer/tensorflow,benoitsteiner/tensorflow,theflofly/tensorflow,alshedivat/tensorflow,yanchen036/tensorflow,snnn/tensorflow,girving/tensorflow,aam-at/tensorflow,codrut3/tensorflow,pierreg/tensorflow,sjperkins/tensorflow,hfp/tensorflow-xsmm,calebfoss/tensorflow,ishay2b/tensorflow,dongjoon-hyun/tensorflow,asimshankar/tensorflow,alistairlow/tensorflow,paolodedios/tensorflow,ninotoshi/tensorflow,xodus7/tensorflow,sjperkins/tensorflow,AndreasMadsen/tensorflow,taknevski/tensorflow-xsmm,alisidd/tensorflow,horance-liu/tensorflow,zasdfgbnm/tensorflow,alistairlow/tensorflow,lukeiwanski/tensorflow-opencl,Mistobaan/tensorflow,gunan/tensorflow,av8ramit/tensorflow,XueqingLin/tensorflow,codrut3/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,wchan/tensorflow,scenarios/tensorflow,DCSaunders/tensorflow,hsaputra/tensorflow,tntnatbry/tensorflow,gojira/tensorflow,Xeralux/tensorflow,rdipietro/tensorflow,gibiansky/tensorflow,RapidApplicationDevelopment/tensorflow,MoamerEncsConcordiaCa/tensorflow,odejesush/tensorflow,laszlocsomor/tensorflow,calebfoss/tensorflow,johndpope/tensorflow,caisq/tensorflow,horance-liu/tensorflow,ravindrapanda/tensorflow,nolanliou/tensorflow,gautam1858/tensorflow,handroissuazo/tensorflow,wangyum/tensorflow,maciekcc/tensorflow,kobejean/tensorflow,thjashin/tensorflow,ishay2b/tensorflow,Bulochkin/tensorflow_pack,alheinecke/tensorflow-xsmm,dendisuhubdy/tensorflow,ageron/tensorflow,DCSaunders/tensorflow,nanditav/15712-TensorFlow,thesuperzapper/tensorflow,mixturemodel-flow/tensorflow,ivano666/tensorflow,llhe/tensorflow,andrewcmyers/tensorflow,awni/tensorflow,manjunaths/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kchodorow/tensorflow,strint/tensorflow,johndpope/tensorflow,annarev/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,MostafaGazar/tensorflow,freedomtan/tensorflow,alivecor/tensorflow,lakshayg/tensorflow,rdipietro/tensorflow,neilhan/tensorflow,ageron/tensorflow,brchiu/tensorflow,seanli9jan/tensorflow,hfp/tensorflow-xsmm,aam-at/tensorflow,Intel-Corporation/tensorflow,sandeepgupta2k4/tensorflow,mrry/tensorflow,lakshayg/tensorflow,jart/tensorflow,alsrgv/tensorflow,snnn/tensorflow,ibab/tensorflow,jendap/tensorflow,ArtsiomCh/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow,XueqingLin/tensorflow,kobejean/tensorflow,andrewcmyers/tensorflow,admcrae/tensorflow,ville-k/tensorflow,sjperkins/tensorflow,alheinecke/tensorflow-xsmm,anilmuthineni/tensorflow,with-git/tensorflow,ZhangXinNan/tensorflow,renyi533/tensorflow,scenarios/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,cg31/tensorflow,HKUST-SING/tensorflow,manipopopo/tensorflow,kamcpp/tensorflow,frreiss/tensorflow-fred,ArtsiomCh/tensorflow,code-sauce/tensorflow,EvenStrangest/tensorflow,calebfoss/tensorflow,with-git/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,gnieboer/tensorflow,laszlocsomor/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,anilmuthineni/tensorflow,hsaputra/tensorflow,thjashin/tensorflow,adit-chandra/tensorflow,whn09/tensorflow,paolodedios/tensorflow,benoitsteiner/tensorflow,Mazecreator/tensorflow,JVillella/tensorflow,kobejean/tensorflow,elingg/tensorflow,jwlawson/tensorflow,horance-liu/tensorflow,davidzchen/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,hfp/tensorflow-xsmm,ran5515/DeepDecision,karllessard/tensorflow,strint/tensorflow,dhalleine/tensorflow,DavidNorman/tensorflow,aselle/tensorflow,ishay2b/tensorflow,sarvex/tensorflow,jendap/tensorflow,jart/tensorflow,tiagofrepereira2012/tensorflow,nanditav/15712-TensorFlow,krikru/tensorflow-opencl,mrry/tensorflow,mixturemodel-flow/tensorflow,peterbraden/tensorflow,dongjoon-hyun/tensorflow,llhe/tensorflow,EvenStrangest/tensorflow,Intel-tensorflow/tensorflow,johndpope/tensorflow,pavelchristof/gomoku-ai,girving/tensorflow,wchan/tensorflow,JingJunYin/tensorflow,frreiss/tensorflow-fred,Bulochkin/tensorflow_pack,chemelnucfin/tensorflow,SnakeJenny/TensorFlow,snnn/tensorflow,eaplatanios/tensorflow,benoitsteiner/tensorflow-opencl,chemelnucfin/tensorflow,gnieboer/tensorflow,freedomtan/tensorflow,petewarden/tensorflow_makefile,kchodorow/tensorflow,Kongsea/tensorflow,scenarios/tensorflow,renyi533/tensorflow,hehongliang/tensorflow,wchan/tensorflow,seanli9jan/tensorflow,mixturemodel-flow/tensorflow,ibmsoe/tensorflow,ravindrapanda/tensorflow,HKUST-SING/tensorflow,DCSaunders/tensorflow,llhe/tensorflow,admcrae/tensorflow,AnishShah/tensorflow,MycChiu/tensorflow,pcm17/tensorflow,Intel-tensorflow/tensorflow,asimshankar/tensorflow,apark263/tensorflow,MycChiu/tensorflow,pierreg/tensorflow,adamtiger/tensorflow,chris-chris/tensorflow,xzturn/tensorflow,wangyum/tensorflow,bowang/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jart/tensorflow,ravindrapanda/tensorflow,haeusser/tensorflow,ibmsoe/tensorflow,lukeiwanski/tensorflow,renyi533/tensorflow,nolanliou/tensorflow,alsrgv/tensorflow,seanli9jan/tensorflow,tongwang01/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,sarvex/tensorflow,with-git/tensorflow,johndpope/tensorflow,tomasreimers/tensorflow-emscripten,jhseu/tensorflow,girving/tensorflow,nburn42/tensorflow,Moriadry/tensorflow,yanchen036/tensorflow,kobejean/tensorflow,av8ramit/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,andrewcmyers/tensorflow,aselle/tensorflow,frreiss/tensorflow-fred,mixturemodel-flow/tensorflow,manipopopo/tensorflow,theflofly/tensorflow,annarev/tensorflow,annarev/tensorflow,petewarden/tensorflow_makefile,martinwicke/tensorflow,nanditav/15712-TensorFlow,manazhao/tf_recsys,lukeiwanski/tensorflow,girving/tensorflow,admcrae/tensorflow,xzturn/tensorflow,code-sauce/tensorflow,juharris/tensorflow,laosiaudi/tensorflow,jeffzheng1/tensorflow,manjunaths/tensorflow,drpngx/tensorflow,krikru/tensorflow-opencl,suiyuan2009/tensorflow,zycdragonball/tensorflow,jwlawson/tensorflow,alivecor/tensorflow,RapidApplicationDevelopment/tensorflow,MoamerEncsConcordiaCa/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,Bulochkin/tensorflow_pack,manazhao/tf_recsys,memo/tensorflow,chris-chris/tensorflow,dancingdan/tensorflow,lukeiwanski/tensorflow,adamtiger/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,ninotoshi/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,elingg/tensorflow,codrut3/tensorflow,kevin-coder/tensorflow-fork,Mistobaan/tensorflow,code-sauce/tensorflow,aldian/tensorflow,cxxgtxy/tensorflow,jalexvig/tensorflow,mortada/tensorflow,kamcpp/tensorflow,ravindrapanda/tensorflow,elingg/tensorflow,asadziach/tensorflow,yufengg/tensorflow,theflofly/tensorflow,AndreasMadsen/tensorflow,paolodedios/tensorflow,ychfan/tensorflow,DCSaunders/tensorflow,nikste/tensorflow,tensorflow/tensorflow-pywrap_saved_model,kevin-coder/tensorflow-fork,jhseu/tensorflow,Mazecreator/tensorflow,code-sauce/tensorflow,zasdfgbnm/tensorflow,karllessard/tensorflow,annarev/tensorflow,handroissuazo/tensorflow,caisq/tensorflow,eaplatanios/tensorflow,Xeralux/tensorflow,alistairlow/tensorflow,Carmezim/tensorflow,mortada/tensorflow,Xeralux/tensorflow,jostep/tensorflow,tomasreimers/tensorflow-emscripten,handroissuazo/tensorflow,chris-chris/tensorflow,juharris/tensorflow,tornadozou/tensorflow,ppwwyyxx/tensorflow,ville-k/tensorflow,guschmue/tensorflow,tntnatbry/tensorflow,aldian/tensorflow,zasdfgbnm/tensorflow,alsrgv/tensorflow,panmari/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sandeepdsouza93/TensorFlow-15712,seaotterman/tensorflow,Bismarrck/tensorflow,chemelnucfin/tensorflow,odejesush/tensorflow,Kongsea/tensorflow,av8ramit/tensorflow,dendisuhubdy/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppries/tensorflow,aam-at/tensorflow,zasdfgbnm/tensorflow,lukeiwanski/tensorflow-opencl,johndpope/tensorflow,mengxn/tensorflow,juharris/tensorflow,alisidd/tensorflow,tensorflow/tensorflow,seanli9jan/tensorflow,girving/tensorflow,manipopopo/tensorflow,ppwwyyxx/tensorflow,adamtiger/tensorflow,petewarden/tensorflow,HaebinShin/tensorflow,memo/tensorflow,dancingdan/tensorflow,caisq/tensorflow,suiyuan2009/tensorflow,unsiloai/syntaxnet-ops-hack,anilmuthineni/tensorflow,brchiu/tensorflow,Mistobaan/tensorflow,whn09/tensorflow,gojira/tensorflow,petewarden/tensorflow_makefile,ppwwyyxx/tensorflow,karllessard/tensorflow,nightjean/Deep-Learning,TakayukiSakai/tensorflow,caisq/tensorflow,alivecor/tensorflow,ageron/tensorflow,ppries/tensorflow,handroissuazo/tensorflow,elingg/tensorflow,EvenStrangest/tensorflow,seanli9jan/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,benoitsteiner/tensorflow,elingg/tensorflow,HKUST-SING/tensorflow,vrv/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ravindrapanda/tensorflow,meteorcloudy/tensorflow,sandeepdsouza93/TensorFlow-15712,jostep/tensorflow,admcrae/tensorflow,HaebinShin/tensorflow,gunan/tensorflow,tomasreimers/tensorflow-emscripten,drpngx/tensorflow,sandeepdsouza93/TensorFlow-15712,code-sauce/tensorflow,kamcpp/tensorflow,chemelnucfin/tensorflow,pavelchristof/gomoku-ai,hfp/tensorflow-xsmm,dancingdan/tensorflow,mdrumond/tensorflow,lukeiwanski/tensorflow-opencl,yongtang/tensorflow,rabipanda/tensorflow,eaplatanios/tensorflow,ran5515/DeepDecision,naturali/tensorflow,ibab/tensorflow,girving/tensorflow,petewarden/tensorflow,abhitopia/tensorflow,mengxn/tensorflow,HaebinShin/tensorflow,codrut3/tensorflow,jbedorf/tensorflow,yanchen036/tensorflow,av8ramit/tensorflow,chenjun0210/tensorflow,tiagofrepereira2012/tensorflow,strint/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,anand-c-goog/tensorflow,elingg/tensorflow,martinwicke/tensorflow,admcrae/tensorflow,yongtang/tensorflow,tomasreimers/tensorflow-emscripten,Bulochkin/tensorflow_pack,ychfan/tensorflow,wchan/tensorflow,MostafaGazar/tensorflow,ninotoshi/tensorflow,aldian/tensorflow,dancingdan/tensorflow,jostep/tensorflow,dancingdan/tensorflow,manjunaths/tensorflow,kobejean/tensorflow,manjunaths/tensorflow,drpngx/tensorflow,code-sauce/tensorflow,JingJunYin/tensorflow,mengxn/tensorflow,theflofly/tensorflow,ibab/tensorflow,hsaputra/tensorflow,renyi533/tensorflow,jhseu/tensorflow,allenlavoie/tensorflow,calebfoss/tensorflow,sandeepgupta2k4/tensorflow,mortada/tensorflow,chenjun0210/tensorflow,dancingdan/tensorflow,allenlavoie/tensorflow,ZhangXinNan/tensorflow,jostep/tensorflow,dyoung418/tensorflow,caisq/tensorflow,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,theflofly/tensorflow,apark263/tensorflow,DavidNorman/tensorflow,chris-chris/tensorflow,martinwicke/tensorflow,raymondxyang/tensorflow,ibmsoe/tensorflow,peterbraden/tensorflow,guschmue/tensorflow,AndreasMadsen/tensorflow,karllessard/tensorflow,ibmsoe/tensorflow,arborh/tensorflow,bowang/tensorflow,jwlawson/tensorflow,ppries/tensorflow,girving/tensorflow,cg31/tensorflow,Intel-tensorflow/tensorflow,juharris/tensorflow,Bismarrck/tensorflow,hfp/tensorflow-xsmm,DCSaunders/tensorflow,pcm17/tensorflow,tntnatbry/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,asadziach/tensorflow,thjashin/tensorflow,Bulochkin/tensorflow_pack,renyi533/tensorflow,drpngx/tensorflow,arborh/tensorflow,zasdfgbnm/tensorflow,arborh/tensorflow,tntnatbry/tensorflow,dendisuhubdy/tensorflow,meteorcloudy/tensorflow,paolodedios/tensorflow,suiyuan2009/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,nightjean/Deep-Learning,tensorflow/tensorflow-pywrap_tf_optimizer,eerwitt/tensorflow,aam-at/tensorflow,ville-k/tensorflow,nolanliou/tensorflow,guschmue/tensorflow,wchan/tensorflow,sandeepdsouza93/TensorFlow-15712,alheinecke/tensorflow-xsmm,benoitsteiner/tensorflow-opencl,ghchinoy/tensorflow,rdipietro/tensorflow,andrewcmyers/tensorflow,Mistobaan/tensorflow,caisq/tensorflow,AndreasMadsen/tensorflow,abhitopia/tensorflow,anilmuthineni/tensorflow,gunan/tensorflow,memo/tensorflow,asimshankar/tensorflow,hfp/tensorflow-xsmm,wangyum/tensorflow,a-doumoulakis/tensorflow,mengxn/tensorflow,Intel-tensorflow/tensorflow,seaotterman/tensorflow,benoitsteiner/tensorflow-xsmm,haeusser/tensorflow,yaroslavvb/tensorflow,kamcpp/tensorflow,aselle/tensorflow,SnakeJenny/TensorFlow,frreiss/tensorflow-fred,laosiaudi/tensorflow,jeffzheng1/tensorflow,aselle/tensorflow,cg31/tensorflow,wangyum/tensorflow,guschmue/tensorflow,eaplatanios/tensorflow,seanli9jan/tensorflow,kobejean/tensorflow,bowang/tensorflow,nanditav/15712-TensorFlow,nolanliou/tensorflow,manazhao/tf_recsys,jwlawson/tensorflow,with-git/tensorflow,Kongsea/tensorflow,MostafaGazar/tensorflow,ppwwyyxx/tensorflow,handroissuazo/tensorflow,ArtsiomCh/tensorflow,caisq/tensorflow,nburn42/tensorflow,allenlavoie/tensorflow,karllessard/tensorflow,ZhangXinNan/tensorflow,dhalleine/tensorflow,nightjean/Deep-Learning,karllessard/tensorflow,Mazecreator/tensorflow,abhitopia/tensorflow,nightjean/Deep-Learning,krikru/tensorflow-opencl,MoamerEncsConcordiaCa/tensorflow,seaotterman/tensorflow,jalexvig/tensorflow,LUTAN/tensorflow,MycChiu/tensorflow,arborh/tensorflow,laosiaudi/tensorflow,ghchinoy/tensorflow,xodus7/tensorflow,petewarden/tensorflow,jbedorf/tensorflow,hsaputra/tensorflow,yaroslavvb/tensorflow,raymondxyang/tensorflow,meteorcloudy/tensorflow,ville-k/tensorflow,SnakeJenny/TensorFlow,tomasreimers/tensorflow-emscripten,anilmuthineni/tensorflow,ibab/tensorflow,adamtiger/tensorflow,juharris/tensorflow,dendisuhubdy/tensorflow,sandeepgupta2k4/tensorflow,dongjoon-hyun/tensorflow,tornadozou/tensorflow,Bismarrck/tensorflow,allenlavoie/tensorflow,alistairlow/tensorflow,dyoung418/tensorflow,wchan/tensorflow,seanli9jan/tensorflow,strint/tensorflow,nightjean/Deep-Learning,awni/tensorflow,JVillella/tensorflow,eadgarchen/tensorflow,tongwang01/tensorflow,chemelnucfin/tensorflow,sjperkins/tensorflow,guschmue/tensorflow,jhaux/tensorflow,seaotterman/tensorflow,dhalleine/tensorflow,tensorflow/tensorflow-pywrap_saved_model,whn09/tensorflow,mengxn/tensorflow,chemelnucfin/tensorflow,ppwwyyxx/tensorflow,mortada/tensorflow,ran5515/DeepDecision,panmari/tensorflow,alheinecke/tensorflow-xsmm,markslwong/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,taknevski/tensorflow-xsmm,MoamerEncsConcordiaCa/tensorflow,ZhangXinNan/tensorflow,anilmuthineni/tensorflow,XueqingLin/tensorflow,jalexvig/tensorflow,ZhangXinNan/tensorflow,maciekcc/tensorflow,HaebinShin/tensorflow,rabipanda/tensorflow,anand-c-goog/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,neilhan/tensorflow,johndpope/tensorflow,aldian/tensorflow,gautam1858/tensorflow,ibab/tensorflow,frreiss/tensorflow-fred,jbedorf/tensorflow,ZhangXinNan/tensorflow,Xeralux/tensorflow,Moriadry/tensorflow,benoitsteiner/tensorflow-xsmm,ivano666/tensorflow,laszlocsomor/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,yaroslavvb/tensorflow,maciekcc/tensorflow,jbedorf/tensorflow,Bismarrck/tensorflow,cg31/tensorflow,laosiaudi/tensorflow,HaebinShin/tensorflow,manipopopo/tensorflow,RapidApplicationDevelopment/tensorflow,pierreg/tensorflow,cxxgtxy/tensorflow,pcm17/tensorflow,horance-liu/tensorflow,gnieboer/tensorflow,xodus7/tensorflow,tillahoffmann/tensorflow,xzturn/tensorflow,vrv/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,scenarios/tensorflow,pavelchristof/gomoku-ai,hehongliang/tensorflow,a-doumoulakis/tensorflow,asimshankar/tensorflow,hsaputra/tensorflow,eerwitt/tensorflow,TakayukiSakai/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,xzturn/tensorflow,av8ramit/tensorflow,adit-chandra/tensorflow,yanchen036/tensorflow,jeffzheng1/tensorflow,Mazecreator/tensorflow,hehongliang/tensorflow,benoitsteiner/tensorflow-xsmm,dancingdan/tensorflow,memo/tensorflow,strint/tensorflow,aldian/tensorflow,handroissuazo/tensorflow,thjashin/tensorflow,eerwitt/tensorflow,allenlavoie/tensorflow,awni/tensorflow,yaroslavvb/tensorflow,dendisuhubdy/tensorflow,aam-at/tensorflow,pavelchristof/gomoku-ai,seaotterman/tensorflow,aselle/tensorflow,suiyuan2009/tensorflow,neilhan/tensorflow,Moriadry/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,yongtang/tensorflow,kchodorow/tensorflow,davidzchen/tensorflow,a-doumoulakis/tensorflow,yaroslavvb/tensorflow,bowang/tensorflow,jhaux/tensorflow,Intel-tensorflow/tensorflow,laszlocsomor/tensorflow,thjashin/tensorflow,nanditav/15712-TensorFlow,with-git/tensorflow,Carmezim/tensorflow,EvenStrangest/tensorflow,allenlavoie/tensorflow,lukeiwanski/tensorflow-opencl,ppwwyyxx/tensorflow,hehongliang/tensorflow,dyoung418/tensorflow,handroissuazo/tensorflow,aam-at/tensorflow,HKUST-SING/tensorflow,anand-c-goog/tensorflow,raymondxyang/tensorflow,code-sauce/tensorflow,freedomtan/tensorflow,apark263/tensorflow,girving/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,alheinecke/tensorflow-xsmm,tensorflow/skflow,paolodedios/tensorflow,asadziach/tensorflow,tillahoffmann/tensorflow,davidzchen/tensorflow,unsiloai/syntaxnet-ops-hack,adit-chandra/tensorflow,yanchen036/tensorflow,mixturemodel-flow/tensorflow,zasdfgbnm/tensorflow,Kongsea/tensorflow,EvenStrangest/tensorflow,alivecor/tensorflow,ivano666/tensorflow,cg31/tensorflow,petewarden/tensorflow,av8ramit/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,xodus7/tensorflow,jendap/tensorflow,davidzchen/tensorflow,meteorcloudy/tensorflow,thjashin/tensorflow,jhaux/tensorflow,Xeralux/tensorflow,yaroslavvb/tensorflow,nikste/tensorflow,AnishShah/tensorflow,cg31/tensorflow,benoitsteiner/tensorflow-xsmm,yaroslavvb/tensorflow,TakayukiSakai/tensorflow,theflofly/tensorflow,andrewcmyers/tensorflow,mavenlin/tensorflow,yongtang/tensorflow,JVillella/tensorflow,gautam1858/tensorflow,tornadozou/tensorflow,thesuperzapper/tensorflow,Kongsea/tensorflow,Moriadry/tensorflow,Intel-Corporation/tensorflow,LUTAN/tensorflow,nanditav/15712-TensorFlow,gnieboer/tensorflow,gautam1858/tensorflow,dancingdan/tensorflow,karllessard/tensorflow,laszlocsomor/tensorflow,ppries/tensorflow,manipopopo/tensorflow,Mistobaan/tensorflow,odejesush/tensorflow,tongwang01/tensorflow,pierreg/tensorflow,petewarden/tensorflow_makefile,lakshayg/tensorflow,krikru/tensorflow-opencl,alistairlow/tensorflow,jendap/tensorflow,ivano666/tensorflow,jeffzheng1/tensorflow,ppwwyyxx/tensorflow,girving/tensorflow,jhaux/tensorflow,whn09/tensorflow,horance-liu/tensorflow,nburn42/tensorflow,haeusser/tensorflow,anand-c-goog/tensorflow,eadgarchen/tensorflow,jart/tensorflow,arborh/tensorflow,jbedorf/tensorflow,yanchen036/tensorflow,jwlawson/tensorflow,karllessard/tensorflow,alheinecke/tensorflow-xsmm,tillahoffmann/tensorflow,paolodedios/tensorflow,kamcpp/tensorflow,ivano666/tensorflow,asadziach/tensorflow,Xeralux/tensorflow,jhseu/tensorflow,krikru/tensorflow-opencl,nikste/tensorflow,MostafaGazar/tensorflow,mavenlin/tensorflow,gojira/tensorflow,taknevski/tensorflow-xsmm,eadgarchen/tensorflow,kevin-coder/tensorflow-fork,RapidApplicationDevelopment/tensorflow,elingg/tensorflow,av8ramit/tensorflow,RapidApplicationDevelopment/tensorflow,JingJunYin/tensorflow,petewarden/tensorflow_makefile,drpngx/tensorflow,xzturn/tensorflow,laszlocsomor/tensorflow,Xeralux/tensorflow,kchodorow/tensorflow,dendisuhubdy/tensorflow,ZhangXinNan/tensorflow,nikste/tensorflow,alistairlow/tensorflow,xzturn/tensorflow,anand-c-goog/tensorflow,benoitsteiner/tensorflow,renyi533/tensorflow,cancan101/tensorflow,manjunaths/tensorflow,aam-at/tensorflow,eaplatanios/tensorflow,brchiu/tensorflow,Xeralux/tensorflow,pierreg/tensorflow,tensorflow/tensorflow,laosiaudi/tensorflow,rabipanda/tensorflow,abhitopia/tensorflow,horance-liu/tensorflow,dendisuhubdy/tensorflow,asimshankar/tensorflow,adit-chandra/tensorflow,TakayukiSakai/tensorflow,llhe/tensorflow,benoitsteiner/tensorflow-opencl,RapidApplicationDevelopment/tensorflow,drpngx/tensorflow,Bulochkin/tensorflow_pack,ran5515/DeepDecision,Carmezim/tensorflow,cg31/tensorflow,tongwang01/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kobejean/tensorflow,aam-at/tensorflow,hfp/tensorflow-xsmm,kevin-coder/tensorflow-fork,gunan/tensorflow,ville-k/tensorflow,jostep/tensorflow,gunan/tensorflow,whn09/tensorflow,mortada/tensorflow,rdipietro/tensorflow,tillahoffmann/tensorflow,frreiss/tensorflow-fred,Mazecreator/tensorflow,yanchen036/tensorflow,thjashin/tensorflow,admcrae/tensorflow,nikste/tensorflow,peterbraden/tensorflow,AnishShah/tensorflow,gibiansky/tensorflow,nolanliou/tensorflow,petewarden/tensorflow,zasdfgbnm/tensorflow,seaotterman/tensorflow,xodus7/tensorflow,guschmue/tensorflow,eaplatanios/tensorflow,benoitsteiner/tensorflow-opencl,Bismarrck/tensorflow,jendap/tensorflow,tongwang01/tensorflow,Moriadry/tensorflow,adamtiger/tensorflow,jart/tensorflow,mrry/tensorflow,thesuperzapper/tensorflow,pcm17/tensorflow,andrewcmyers/tensorflow,alshedivat/tensorflow,adit-chandra/tensorflow,eadgarchen/tensorflow,tntnatbry/tensorflow,drpngx/tensorflow,maciekcc/tensorflow,neilhan/tensorflow,adit-chandra/tensorflow,chris-chris/tensorflow,mavenlin/tensorflow,cancan101/tensorflow,mengxn/tensorflow,tillahoffmann/tensorflow,eerwitt/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,sandeepgupta2k4/tensorflow,codrut3/tensorflow,gibiansky/tensorflow,jart/tensorflow,benoitsteiner/tensorflow-xsmm,apark263/tensorflow,jeffzheng1/tensorflow,chemelnucfin/tensorflow,cancan101/tensorflow,Intel-tensorflow/tensorflow,anilmuthineni/tensorflow,Mistobaan/tensorflow,LUTAN/tensorflow,johndpope/tensorflow,tillahoffmann/tensorflow,nolanliou/tensorflow,naturali/tensorflow,manipopopo/tensorflow,wchan/tensorflow,MoamerEncsConcordiaCa/tensorflow,theflofly/tensorflow,jendap/tensorflow,theflofly/tensorflow,benoitsteiner/tensorflow,alshedivat/tensorflow,chris-chris/tensorflow,HaebinShin/tensorflow,jart/tensorflow,lukeiwanski/tensorflow-opencl,vrv/tensorflow,memo/tensorflow,chemelnucfin/tensorflow,yanchen036/tensorflow,markslwong/tensorflow,LUTAN/tensorflow,chenjun0210/tensorflow,yufengg/tensorflow,jalexvig/tensorflow,ZhangXinNan/tensorflow,aselle/tensorflow,jalexvig/tensorflow,gnieboer/tensorflow,manipopopo/tensorflow,nolanliou/tensorflow,sandeepgupta2k4/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,krikru/tensorflow-opencl,tensorflow/tensorflow,scenarios/tensorflow,neilhan/tensorflow,ageron/tensorflow,nburn42/tensorflow,rabipanda/tensorflow,strint/tensorflow,kchodorow/tensorflow,ville-k/tensorflow,freedomtan/tensorflow,kevin-coder/tensorflow-fork,llhe/tensorflow,theflofly/tensorflow,tiagofrepereira2012/tensorflow,kevin-coder/tensorflow-fork,bowang/tensorflow,petewarden/tensorflow_makefile,jalexvig/tensorflow,alisidd/tensorflow,EvenStrangest/tensorflow,hfp/tensorflow-xsmm,jhaux/tensorflow,apark263/tensorflow,horance-liu/tensorflow,nightjean/Deep-Learning,laszlocsomor/tensorflow,MycChiu/tensorflow,vrv/tensorflow,TakayukiSakai/tensorflow,mrry/tensorflow,juharris/tensorflow,mengxn/tensorflow,jhaux/tensorflow,taknevski/tensorflow-xsmm,alshedivat/tensorflow,girving/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gibiansky/tensorflow,Moriadry/tensorflow,alshedivat/tensorflow,SnakeJenny/TensorFlow,wangyum/tensorflow,freedomtan/tensorflow,chenjun0210/tensorflow,meteorcloudy/tensorflow,davidzchen/tensorflow,hsaputra/tensorflow,mixturemodel-flow/tensorflow,martinwicke/tensorflow,sjperkins/tensorflow,alivecor/tensorflow,alistairlow/tensorflow,kchodorow/tensorflow,gunan/tensorflow,tiagofrepereira2012/tensorflow,lukeiwanski/tensorflow,yufengg/tensorflow,calebfoss/tensorflow,laosiaudi/tensorflow,tomasreimers/tensorflow-emscripten,thesuperzapper/tensorflow,dancingdan/tensorflow,Bulochkin/tensorflow_pack,with-git/tensorflow,SnakeJenny/TensorFlow,DCSaunders/tensorflow,jhaux/tensorflow,snnn/tensorflow,ghchinoy/tensorflow,mortada/tensorflow,manjunaths/tensorflow,handroissuazo/tensorflow,pcm17/tensorflow,gibiansky/tensorflow,memo/tensorflow,xodus7/tensorflow,AndreasMadsen/tensorflow,ageron/tensorflow,suiyuan2009/tensorflow,HaebinShin/tensorflow,manipopopo/tensorflow,Carmezim/tensorflow,frreiss/tensorflow-fred,HKUST-SING/tensorflow,eerwitt/tensorflow,aam-at/tensorflow,allenlavoie/tensorflow,maciekcc/tensorflow,ravindrapanda/tensorflow,mavenlin/tensorflow,ravindrapanda/tensorflow,Xeralux/tensorflow,gojira/tensorflow,benoitsteiner/tensorflow,freedomtan/tensorflow,awni/tensorflow,lukeiwanski/tensorflow,haeusser/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,benoitsteiner/tensorflow-opencl,alsrgv/tensorflow,lukeiwanski/tensorflow,DavidNorman/tensorflow,Kongsea/tensorflow,dyoung418/tensorflow,JingJunYin/tensorflow,karllessard/tensorflow,yufengg/tensorflow,jart/tensorflow,hfp/tensorflow-xsmm,hehongliang/tensorflow,haeusser/tensorflow,zycdragonball/tensorflow,pierreg/tensorflow,benoitsteiner/tensorflow-xsmm,alsrgv/tensorflow,frreiss/tensorflow-fred,chemelnucfin/tensorflow,asadziach/tensorflow,memo/tensorflow,dhalleine/tensorflow,DavidNorman/tensorflow,alshedivat/tensorflow,dyoung418/tensorflow,gnieboer/tensorflow,ninotoshi/tensorflow,alisidd/tensorflow,markslwong/tensorflow,XueqingLin/tensorflow,eaplatanios/tensorflow,eerwitt/tensorflow,jendap/tensorflow,aselle/tensorflow,jhseu/tensorflow,whn09/tensorflow,mdrumond/tensorflow,sandeepgupta2k4/tensorflow,johndpope/tensorflow,maciekcc/tensorflow,Carmezim/tensorflow,lukeiwanski/tensorflow,unsiloai/syntaxnet-ops-hack,Bulochkin/tensorflow_pack,rabipanda/tensorflow,JVillella/tensorflow,llhe/tensorflow,HKUST-SING/tensorflow,DavidNorman/tensorflow,arborh/tensorflow,SnakeJenny/TensorFlow,tillahoffmann/tensorflow,naturali/tensorflow,eerwitt/tensorflow,av8ramit/tensorflow,snnn/tensorflow,markslwong/tensorflow,Bulochkin/tensorflow_pack,benoitsteiner/tensorflow,juharris/tensorflow,nanditav/15712-TensorFlow,alisidd/tensorflow,snnn/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,cxxgtxy/tensorflow,jhseu/tensorflow,jeffzheng1/tensorflow,mengxn/tensorflow,raymondxyang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,ivano666/tensorflow,aselle/tensorflow,ishay2b/tensorflow,mdrumond/tensorflow
shell
## Code Before: if [ ${TASK} == "lint" ]; then sudo pip install pylint --user `whoami` fi if [ ${TASK} == "nosetests" ]; then # Create virtual env using system numpy and scipy deactivate virtualenv --system-site-packages testenv source testenv/bin/activate # Install dependencies sudo pip install --upgrade pip sudo pip install numpy sudo pip install scipy sudo pip install pandas sudo pip install scikit-learn # Install TensorFlow if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl fi if [ ${TRAVIS_OS_NAME} == "osx" ]; then sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl fi # Install test tools sudo pip install nose # Install skflow sudo python setup.py install fi ## Instruction: Fix pylint install on Travis ## Code After: if [ ${TASK} == "lint" ]; then sudo pip install pylint fi if [ ${TASK} == "nosetests" ]; then # Create virtual env using system numpy and scipy deactivate virtualenv --system-site-packages testenv source testenv/bin/activate # Install dependencies sudo pip install --upgrade pip sudo pip install numpy sudo pip install scipy sudo pip install pandas sudo pip install scikit-learn # Install TensorFlow if [ ${TRAVIS_OS_NAME} == "linux" ]; then sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl fi if [ ${TRAVIS_OS_NAME} == "osx" ]; then sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl fi # Install test tools sudo pip install nose # Install skflow sudo python setup.py install fi
e29239c93dc304c0013ac3675b20dc8e9549ec84
src/SourceIndexServer/wwwroot/index.html
src/SourceIndexServer/wwwroot/index.html
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Source Browser</title> <link rel="stylesheet" href="styles.css"> <script src="scripts.js"></script> </head> <frameset rows="58,*" border="0" onload="onPageLoaded();"> <frame name="h" src="header.html" scrolling="no" noresize="noresize" aria-label="header"> <frameset id="splitter" cols="504,*" frameborder="1" border="20" bordercolor="#aaa" framespacing="20"> <frame name="n" id="n" src="results.html" border="0" frameborder="0" aria-label="search-results"> <frame name="s" id="s" src="overview.html" border="0" frameborder="0" aria-label="content"> </frameset> </frameset> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Source Browser</title> <link rel="stylesheet" href="styles.css"> <script src="scripts.js"></script> </head> <frameset rows="58,*" border="0" onload="onPageLoaded();"> <frame name="h" src="header.html" scrolling="no" noresize="noresize" role="presentation" aria-label="header"> <frameset id="splitter" cols="504,*" frameborder="1" border="20" bordercolor="#aaa" framespacing="20"> <frame name="n" id="n" src="results.html" border="0" frameborder="0" role="presentation" aria-label="search-results"> <frame name="s" id="s" src="overview.html" border="0" frameborder="0" role="presentation" aria-label="content"> </frameset> </frameset> </html>
Add role attributes to frames to satisfy accessibility scan
Add role attributes to frames to satisfy accessibility scan
HTML
apache-2.0
KirillOsenkov/SourceBrowser,KirillOsenkov/SourceBrowser,KirillOsenkov/SourceBrowser,KirillOsenkov/SourceBrowser
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Source Browser</title> <link rel="stylesheet" href="styles.css"> <script src="scripts.js"></script> </head> <frameset rows="58,*" border="0" onload="onPageLoaded();"> <frame name="h" src="header.html" scrolling="no" noresize="noresize" aria-label="header"> <frameset id="splitter" cols="504,*" frameborder="1" border="20" bordercolor="#aaa" framespacing="20"> <frame name="n" id="n" src="results.html" border="0" frameborder="0" aria-label="search-results"> <frame name="s" id="s" src="overview.html" border="0" frameborder="0" aria-label="content"> </frameset> </frameset> </html> ## Instruction: Add role attributes to frames to satisfy accessibility scan ## Code After: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Source Browser</title> <link rel="stylesheet" href="styles.css"> <script src="scripts.js"></script> </head> <frameset rows="58,*" border="0" onload="onPageLoaded();"> <frame name="h" src="header.html" scrolling="no" noresize="noresize" role="presentation" aria-label="header"> <frameset id="splitter" cols="504,*" frameborder="1" border="20" bordercolor="#aaa" framespacing="20"> <frame name="n" id="n" src="results.html" border="0" frameborder="0" role="presentation" aria-label="search-results"> <frame name="s" id="s" src="overview.html" border="0" frameborder="0" role="presentation" aria-label="content"> </frameset> </frameset> </html>
e6d71db8f7953b12cc846654773a62b522880cfb
static/js/index.js
static/js/index.js
index = 0; slogans = [ "when mission critical just doesn't make any sense.", "when you just don't need multi-master replication.", "when those other databases are just too relational.", "when you're not quite sure what web scale means.", "when determinism really isn't your thing.", "when JSON is holding you back.", "when you want to take a chance.", "when persistence means turning fsync on." ]; function fade_change(element, text) { var op = 1; var timer = setInterval(function () { if (op <= 0.1){ clearInterval(timer); element.innerHTML = text; element.style.opacity = 0; fade_in(element); } element.style.opacity = op; op -= op * 0.1; }, 50); } function fade_in(element) { var op = 0; var timer = setInterval(function () { if (op >= 1.0){ clearInterval(timer); element.style.opacity = 1.0; } element.style.opacity = op; op += 0.05; }, 50); } function change_text() { index++; change_me = document.getElementById("changing_text"); fade_change(change_me, slogans[index % slogans.length]); } window.onload = function() { setInterval(change_text, 6000); };
index = 0; var masterInterval; slogans = [ "when mission critical just doesn't make any sense.", "when you just don't need multi-master replication.", "when those other databases are just too relational.", "when you're not quite sure what web scale means.", "when determinism really isn't your thing.", "when JSON is holding you back.", "when you want to take a chance.", "when persistence means turning fsync on." ]; function fade_change(element, text) { var op = 1; var timer = setInterval(function () { if (op <= 0.1){ clearInterval(timer); element.innerHTML = text; element.style.opacity = 0; fade_in(element); } element.style.opacity = op; op -= op * 0.1; }, 50); } function fade_in(element) { var op = 0; var timer = setInterval(function () { if (op >= 1.0){ clearInterval(timer); element.style.opacity = 1.0; } element.style.opacity = op; op += 0.05; }, 50); } function change_text() { index++; change_me = document.getElementById("changing_text"); fade_change(change_me, slogans[index % slogans.length]); } start_change = function() { masterInterval = window.setInterval(change_text, 6000); } stop_change = function() { window.clearInterval(masterInterval); } window.onload = function() { start_change(); }; window.addEventListener('blur', stop_change); window.addEventListener('focus', start_change);
Fix the stupid flashing interval bug.
Fix the stupid flashing interval bug.
JavaScript
mit
infoforcefeed/OlegDB-Website,infoforcefeed/OlegDB-Website,infoforcefeed/OlegDB-Website,infoforcefeed/OlegDB-Website
javascript
## Code Before: index = 0; slogans = [ "when mission critical just doesn't make any sense.", "when you just don't need multi-master replication.", "when those other databases are just too relational.", "when you're not quite sure what web scale means.", "when determinism really isn't your thing.", "when JSON is holding you back.", "when you want to take a chance.", "when persistence means turning fsync on." ]; function fade_change(element, text) { var op = 1; var timer = setInterval(function () { if (op <= 0.1){ clearInterval(timer); element.innerHTML = text; element.style.opacity = 0; fade_in(element); } element.style.opacity = op; op -= op * 0.1; }, 50); } function fade_in(element) { var op = 0; var timer = setInterval(function () { if (op >= 1.0){ clearInterval(timer); element.style.opacity = 1.0; } element.style.opacity = op; op += 0.05; }, 50); } function change_text() { index++; change_me = document.getElementById("changing_text"); fade_change(change_me, slogans[index % slogans.length]); } window.onload = function() { setInterval(change_text, 6000); }; ## Instruction: Fix the stupid flashing interval bug. ## Code After: index = 0; var masterInterval; slogans = [ "when mission critical just doesn't make any sense.", "when you just don't need multi-master replication.", "when those other databases are just too relational.", "when you're not quite sure what web scale means.", "when determinism really isn't your thing.", "when JSON is holding you back.", "when you want to take a chance.", "when persistence means turning fsync on." ]; function fade_change(element, text) { var op = 1; var timer = setInterval(function () { if (op <= 0.1){ clearInterval(timer); element.innerHTML = text; element.style.opacity = 0; fade_in(element); } element.style.opacity = op; op -= op * 0.1; }, 50); } function fade_in(element) { var op = 0; var timer = setInterval(function () { if (op >= 1.0){ clearInterval(timer); element.style.opacity = 1.0; } element.style.opacity = op; op += 0.05; }, 50); } function change_text() { index++; change_me = document.getElementById("changing_text"); fade_change(change_me, slogans[index % slogans.length]); } start_change = function() { masterInterval = window.setInterval(change_text, 6000); } stop_change = function() { window.clearInterval(masterInterval); } window.onload = function() { start_change(); }; window.addEventListener('blur', stop_change); window.addEventListener('focus', start_change);
77f4aed0c4d8a9acbb45d1dc1e36dc48da3704cb
lib/flipper/api.rb
lib/flipper/api.rb
require 'rack' require 'flipper' require 'flipper/api/middleware' require 'flipper/api/json_params' require 'flipper/api/setup_env' require 'flipper/api/actor' module Flipper module Api CONTENT_TYPE = 'application/json'.freeze def self.app(flipper = nil) app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, ['']) builder = Rack::Builder.new yield builder if block_given? builder.use Flipper::Api::SetupEnv, flipper builder.use Flipper::Api::JsonParams builder.use Flipper::Api::Middleware builder.run app builder end class App # Public: HTTP response code # Use this method to update status code before responding attr_writer :status def initialize(status, headers, body) @status = status @headers = headers @body = body end # Public : Rack expects object that responds to call # env - environment hash def call(_env) response end private def response [@status, @headers, @body] end end end end
require 'rack' require 'flipper' require 'flipper/api/middleware' require 'flipper/api/json_params' require 'flipper/api/setup_env' require 'flipper/api/actor' module Flipper module Api CONTENT_TYPE = 'application/json'.freeze def self.app(flipper = nil) app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, ['']) builder = Rack::Builder.new yield builder if block_given? builder.use Flipper::Api::SetupEnv, flipper builder.use Flipper::Api::JsonParams builder.use Flipper::Api::Middleware builder.run app klass = self builder.define_singleton_method(:inspect) { klass.inspect } # pretty rake routes output builder end class App # Public: HTTP response code # Use this method to update status code before responding attr_writer :status def initialize(status, headers, body) @status = status @headers = headers @body = body end # Public : Rack expects object that responds to call # env - environment hash def call(_env) response end private def response [@status, @headers, @body] end end end end
Add same hack as UI to make rake routes output mo' pretty
Add same hack as UI to make rake routes output mo' pretty
Ruby
mit
jnunemaker/flipper,jnunemaker/flipper,jnunemaker/flipper,jnunemaker/flipper
ruby
## Code Before: require 'rack' require 'flipper' require 'flipper/api/middleware' require 'flipper/api/json_params' require 'flipper/api/setup_env' require 'flipper/api/actor' module Flipper module Api CONTENT_TYPE = 'application/json'.freeze def self.app(flipper = nil) app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, ['']) builder = Rack::Builder.new yield builder if block_given? builder.use Flipper::Api::SetupEnv, flipper builder.use Flipper::Api::JsonParams builder.use Flipper::Api::Middleware builder.run app builder end class App # Public: HTTP response code # Use this method to update status code before responding attr_writer :status def initialize(status, headers, body) @status = status @headers = headers @body = body end # Public : Rack expects object that responds to call # env - environment hash def call(_env) response end private def response [@status, @headers, @body] end end end end ## Instruction: Add same hack as UI to make rake routes output mo' pretty ## Code After: require 'rack' require 'flipper' require 'flipper/api/middleware' require 'flipper/api/json_params' require 'flipper/api/setup_env' require 'flipper/api/actor' module Flipper module Api CONTENT_TYPE = 'application/json'.freeze def self.app(flipper = nil) app = App.new(200, { 'Content-Type' => CONTENT_TYPE }, ['']) builder = Rack::Builder.new yield builder if block_given? builder.use Flipper::Api::SetupEnv, flipper builder.use Flipper::Api::JsonParams builder.use Flipper::Api::Middleware builder.run app klass = self builder.define_singleton_method(:inspect) { klass.inspect } # pretty rake routes output builder end class App # Public: HTTP response code # Use this method to update status code before responding attr_writer :status def initialize(status, headers, body) @status = status @headers = headers @body = body end # Public : Rack expects object that responds to call # env - environment hash def call(_env) response end private def response [@status, @headers, @body] end end end end
cad3bbe7e2ba937a1f7c7d506c8c69c6642b2c20
.travis.yml
.travis.yml
language: c script: cmake . && make VERBOSE=1 && make test compiler: clang sudo: required dist: trusty before_install: - sudo apt-get -qq update - sudo apt-get install -y libconfig-dev
language: c script: cmake . && make VERBOSE=1 && make test compiler: clang sudo: false dist: trusty addons: apt: packages: - libconfig-dev
Migrate to container-based Travis builds
Migrate to container-based Travis builds
YAML
mit
colatkinson/automata
yaml
## Code Before: language: c script: cmake . && make VERBOSE=1 && make test compiler: clang sudo: required dist: trusty before_install: - sudo apt-get -qq update - sudo apt-get install -y libconfig-dev ## Instruction: Migrate to container-based Travis builds ## Code After: language: c script: cmake . && make VERBOSE=1 && make test compiler: clang sudo: false dist: trusty addons: apt: packages: - libconfig-dev
1f5696a27be83d5b3e66e5f583f53a61d4404905
gulpfile.js
gulpfile.js
var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('default', function() { gulp.watch(['lib/**', 'test/**'], ['test']); }); gulp.task('test', function() { return gulp.src(['test/test-*.js'], { read: false }) .pipe(mocha({ reporter: 'dot' })); });
var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('default', function() { gulp.watch(['honeycomb.js', 'lib/**', 'test/**'], ['test']); }); gulp.task('test', function() { return gulp.src(['test/test-*.js'], { read: false }) .pipe(mocha({ reporter: 'dot' })); });
Watch the main file too
Watch the main file too
JavaScript
isc
BrandExtract/Honeycomb
javascript
## Code Before: var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('default', function() { gulp.watch(['lib/**', 'test/**'], ['test']); }); gulp.task('test', function() { return gulp.src(['test/test-*.js'], { read: false }) .pipe(mocha({ reporter: 'dot' })); }); ## Instruction: Watch the main file too ## Code After: var gulp = require('gulp'); var mocha = require('gulp-mocha'); gulp.task('default', function() { gulp.watch(['honeycomb.js', 'lib/**', 'test/**'], ['test']); }); gulp.task('test', function() { return gulp.src(['test/test-*.js'], { read: false }) .pipe(mocha({ reporter: 'dot' })); });
aa4c2b9b1c33afbfdc844e57394c98c4681590a2
roles/vim/tasks/main.yml
roles/vim/tasks/main.yml
--- - name: Install vim via Homebrew homebrew: name: - ctags - vim - name: Link config files and folders file: state: link src: "{{ playbook_dir | replace(lookup('env', 'HOME') + '/', '') }}/roles/vim/files/{{ item }}" dest: "~/.{{ item }}" force: yes loop: - ctags - gvimrc - vim - vimrc - name: Create vim backup, swap and undo folders file: state: directory mode: "0700" dest: "~/.vim/{{ item }}" loop: - backup - swap - undo - name: Install YouCompleteMe shell: chdir: "~/.vim/pack/functional/start/YouCompleteMe" cmd: ./install.py --clang-completer creates: "~/.vim/pack/functional/start/YouCompleteMe/third_party/ycmd/ycm_core.so"
--- - name: Install vim via Homebrew homebrew: name: - cmake - ctags - vim - name: Link config files and folders file: state: link src: "{{ playbook_dir | replace(lookup('env', 'HOME') + '/', '') }}/roles/vim/files/{{ item }}" dest: "~/.{{ item }}" force: yes loop: - ctags - gvimrc - vim - vimrc - name: Create vim backup, swap and undo folders file: state: directory mode: "0700" dest: "~/.vim/{{ item }}" loop: - backup - swap - undo - name: Get Homebrew prefix path shell: brew --prefix changed_when: False register: brew_prefix check_mode: no - name: Install YouCompleteMe shell: chdir: "~/.vim/pack/functional/start/YouCompleteMe" cmd: "{{ brew_prefix.stdout }}/bin/python3 install.py" creates: "~/.vim/pack/functional/start/YouCompleteMe/third_party/ycmd/ycm_core.so"
Use brewed python to install YouCompleteMe
Use brewed python to install YouCompleteMe
YAML
mit
andrasmaroy/dotfiles,andrasmaroy/dotfiles
yaml
## Code Before: --- - name: Install vim via Homebrew homebrew: name: - ctags - vim - name: Link config files and folders file: state: link src: "{{ playbook_dir | replace(lookup('env', 'HOME') + '/', '') }}/roles/vim/files/{{ item }}" dest: "~/.{{ item }}" force: yes loop: - ctags - gvimrc - vim - vimrc - name: Create vim backup, swap and undo folders file: state: directory mode: "0700" dest: "~/.vim/{{ item }}" loop: - backup - swap - undo - name: Install YouCompleteMe shell: chdir: "~/.vim/pack/functional/start/YouCompleteMe" cmd: ./install.py --clang-completer creates: "~/.vim/pack/functional/start/YouCompleteMe/third_party/ycmd/ycm_core.so" ## Instruction: Use brewed python to install YouCompleteMe ## Code After: --- - name: Install vim via Homebrew homebrew: name: - cmake - ctags - vim - name: Link config files and folders file: state: link src: "{{ playbook_dir | replace(lookup('env', 'HOME') + '/', '') }}/roles/vim/files/{{ item }}" dest: "~/.{{ item }}" force: yes loop: - ctags - gvimrc - vim - vimrc - name: Create vim backup, swap and undo folders file: state: directory mode: "0700" dest: "~/.vim/{{ item }}" loop: - backup - swap - undo - name: Get Homebrew prefix path shell: brew --prefix changed_when: False register: brew_prefix check_mode: no - name: Install YouCompleteMe shell: chdir: "~/.vim/pack/functional/start/YouCompleteMe" cmd: "{{ brew_prefix.stdout }}/bin/python3 install.py" creates: "~/.vim/pack/functional/start/YouCompleteMe/third_party/ycmd/ycm_core.so"
edf63d5b23625d8088f631c9d5defa4d4eb1d018
examples/index.html
examples/index.html
<html> <head lang="en-us"> <meta charset="utf-8"> <title>React Icon Factory</title> <meta name="viewport" content="user-scalable=no width=device-width, initial-scale=1.0 maximum-scale=1.0"> </head> <body style="margin: 0"> <script src="./bundle.js"></script> </body> </html>
<html> <head lang="en-us"> <meta charset="utf-8"> <title>React Icon Factory</title> <meta name="viewport" content="user-scalable=no width=device-width, initial-scale=1.0 maximum-scale=1.0"> <link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> </head> <body style="margin: 0"> <script src="./bundle.js"></script> </body> </html>
Add Lato from Google Fonts
Add Lato from Google Fonts
HTML
mit
KyleAMathews/react-icon-factory
html
## Code Before: <html> <head lang="en-us"> <meta charset="utf-8"> <title>React Icon Factory</title> <meta name="viewport" content="user-scalable=no width=device-width, initial-scale=1.0 maximum-scale=1.0"> </head> <body style="margin: 0"> <script src="./bundle.js"></script> </body> </html> ## Instruction: Add Lato from Google Fonts ## Code After: <html> <head lang="en-us"> <meta charset="utf-8"> <title>React Icon Factory</title> <meta name="viewport" content="user-scalable=no width=device-width, initial-scale=1.0 maximum-scale=1.0"> <link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> </head> <body style="margin: 0"> <script src="./bundle.js"></script> </body> </html>
89f20835c755300b28335b9d66f226faca7dd9ea
Pure/AllError.pm
Pure/AllError.pm
package Error::Pure::AllError; #------------------------------------------------------------------------------ # Pragmas. use strict; # Modules. use Error::Pure qw(_err); use Error::Pure::Output::Text qw(err_bt_pretty); use Exporter; # Export. our @EXPORT = qw(err); # Inheritance. our @ISA = qw(Exporter); # Version. our $VERSION = 0.01; #------------------------------------------------------------------------------ sub err(@) { #------------------------------------------------------------------------------ # Process error. my $msg = \@_; my $errors = Error::Pure::_err($msg); # Finalize in main on last err. my $stack = $errors->[-1]->{'stack'}; if ($stack->[-1]->{'class'} eq 'main' && ! grep({ $_ eq 'eval {...}' || $_ =~ /^eval '/} map { $_->{'sub'} } @{$stack})) { CORE::die Error::Pure::Output::Text::err_bt_pretty($errors); # Die for eval. } else { CORE::die "$msg->[0]\n"; } } BEGIN { *CORE::GLOBAL::die = \&err; } 1;
package Error::Pure::AllError; #------------------------------------------------------------------------------ # Pragmas. use strict; # Modules. use Error::Pure qw(_err); use Error::Pure::Output::Text qw(err_bt_pretty); # Version. our $VERSION = 0.01; # Ignore die signal. $SIG{__DIE__} = 'IGNORE'; #------------------------------------------------------------------------------ sub err(@) { #------------------------------------------------------------------------------ # Process error. my $msg = \@_; my $errors = Error::Pure::_err($msg); # Finalize in main on last err. my $stack = $errors->[-1]->{'stack'}; if ($stack->[-1]->{'class'} eq 'main' && ! grep({ $_ eq 'eval {...}' || $_ =~ /^eval '/} map { $_->{'sub'} } @{$stack})) { CORE::die Error::Pure::Output::Text::err_bt_pretty($errors); # Die for eval. } else { CORE::die "$msg->[0]\n"; } } BEGIN { *CORE::GLOBAL::die = \&err; } 1;
Remove Exporter. Added __DIE__ signal ignore.
Remove Exporter. Added __DIE__ signal ignore.
Perl
bsd-2-clause
tupinek/Error-Pure
perl
## Code Before: package Error::Pure::AllError; #------------------------------------------------------------------------------ # Pragmas. use strict; # Modules. use Error::Pure qw(_err); use Error::Pure::Output::Text qw(err_bt_pretty); use Exporter; # Export. our @EXPORT = qw(err); # Inheritance. our @ISA = qw(Exporter); # Version. our $VERSION = 0.01; #------------------------------------------------------------------------------ sub err(@) { #------------------------------------------------------------------------------ # Process error. my $msg = \@_; my $errors = Error::Pure::_err($msg); # Finalize in main on last err. my $stack = $errors->[-1]->{'stack'}; if ($stack->[-1]->{'class'} eq 'main' && ! grep({ $_ eq 'eval {...}' || $_ =~ /^eval '/} map { $_->{'sub'} } @{$stack})) { CORE::die Error::Pure::Output::Text::err_bt_pretty($errors); # Die for eval. } else { CORE::die "$msg->[0]\n"; } } BEGIN { *CORE::GLOBAL::die = \&err; } 1; ## Instruction: Remove Exporter. Added __DIE__ signal ignore. ## Code After: package Error::Pure::AllError; #------------------------------------------------------------------------------ # Pragmas. use strict; # Modules. use Error::Pure qw(_err); use Error::Pure::Output::Text qw(err_bt_pretty); # Version. our $VERSION = 0.01; # Ignore die signal. $SIG{__DIE__} = 'IGNORE'; #------------------------------------------------------------------------------ sub err(@) { #------------------------------------------------------------------------------ # Process error. my $msg = \@_; my $errors = Error::Pure::_err($msg); # Finalize in main on last err. my $stack = $errors->[-1]->{'stack'}; if ($stack->[-1]->{'class'} eq 'main' && ! grep({ $_ eq 'eval {...}' || $_ =~ /^eval '/} map { $_->{'sub'} } @{$stack})) { CORE::die Error::Pure::Output::Text::err_bt_pretty($errors); # Die for eval. } else { CORE::die "$msg->[0]\n"; } } BEGIN { *CORE::GLOBAL::die = \&err; } 1;
1fa642e41b145fcf0109822c1864842f34ff8653
src/main.rs
src/main.rs
use std::io::File; mod parser; fn main() { let input = r#"{ let x = 0; loop { __clear(); __draw_pos(x, 5); __get_font(3); __draw(5); x = x + 1; __key_wait(0); } }"#; let code = parser::parse(input); for &op in code.iter() { print!("{:02x}", op); } println!(""); let mut file = File::create(&Path::new("a.out")); file.write(code); }
use std::io::File; use std::os; mod parser; fn main() { let args = os::args(); if args.len() != 2 { println!("Invalid usage"); return; } let input = match File::open(&Path::new(args[1])) { Some(mut f) => f.read_to_str(), None => { println!("Error reading file"); return; } }; let code = parser::parse(input); let mut output = File::create(&Path::new("program.ch8")); output.write(code); }
Change to reading input from file
Change to reading input from file
Rust
mit
mchesser/pchip,quvarxa/pchip
rust
## Code Before: use std::io::File; mod parser; fn main() { let input = r#"{ let x = 0; loop { __clear(); __draw_pos(x, 5); __get_font(3); __draw(5); x = x + 1; __key_wait(0); } }"#; let code = parser::parse(input); for &op in code.iter() { print!("{:02x}", op); } println!(""); let mut file = File::create(&Path::new("a.out")); file.write(code); } ## Instruction: Change to reading input from file ## Code After: use std::io::File; use std::os; mod parser; fn main() { let args = os::args(); if args.len() != 2 { println!("Invalid usage"); return; } let input = match File::open(&Path::new(args[1])) { Some(mut f) => f.read_to_str(), None => { println!("Error reading file"); return; } }; let code = parser::parse(input); let mut output = File::create(&Path::new("program.ch8")); output.write(code); }
9d298d6467d1ffa09a5f43a02d9fc58275901ffa
.travis.yml
.travis.yml
language: python env: global: - PACKAGE="phpunitkit" matrix: - SUBLIME_TEXT_VERSION="3" matrix: allow_failures: - python: "3.6" fast_finish: true include: - os: linux python: 3.3 - os: linux python: 3.6 - os: osx language: generic before_install: - curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh # Enable GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi install: - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install flake8; pip install flake8-docstrings; pip install python-coveralls; elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install python3; pip3 install flake8; pip3 install flake8-docstrings; pip3 install python-coveralls; fi - sh travis.sh bootstrap script: - sh travis.sh run_tests --coverage - sh travis.sh run_syntax_tests - flake8 after_success: - coveralls notifications: email: false
language: python env: global: - PACKAGE="phpunitkit" matrix: - SUBLIME_TEXT_VERSION="3" matrix: allow_failures: - python: "3.6" fast_finish: true include: - os: linux python: 3.3 - os: linux python: 3.6 - os: osx language: generic before_install: - curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh # Enable GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi install: - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install flake8; pip install flake8-docstrings; pip install python-coveralls; elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew upgrade python; pip3 install flake8; pip3 install flake8-docstrings; pip3 install python-coveralls; fi - sh travis.sh bootstrap - python --version - flake8 --version script: - sh travis.sh run_tests --coverage - sh travis.sh run_syntax_tests - flake8 after_success: - coveralls notifications: email: false
Fix Travis OSX error updating python
Fix Travis OSX error updating python ``` Error: python 2.7.14 is already installed To upgrade to 3.6.4_3, run `brew upgrade python` /Users/travis/.travis/job_stages: line 57: pip3: command not found /Users/travis/.travis/job_stages: line 57: pip3: command not found /Users/travis/.travis/job_stages: line 57: pip3: command not found The command "if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install flake8; pip install flake8-docstrings; pip install python-coveralls; elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install python3; pip3 install flake8; pip3 install flake8-docstrings; pip3 install python-coveralls; fi" failed and exited with 127 during . ```
YAML
bsd-3-clause
gerardroche/sublime-phpunit
yaml
## Code Before: language: python env: global: - PACKAGE="phpunitkit" matrix: - SUBLIME_TEXT_VERSION="3" matrix: allow_failures: - python: "3.6" fast_finish: true include: - os: linux python: 3.3 - os: linux python: 3.6 - os: osx language: generic before_install: - curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh # Enable GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi install: - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install flake8; pip install flake8-docstrings; pip install python-coveralls; elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install python3; pip3 install flake8; pip3 install flake8-docstrings; pip3 install python-coveralls; fi - sh travis.sh bootstrap script: - sh travis.sh run_tests --coverage - sh travis.sh run_syntax_tests - flake8 after_success: - coveralls notifications: email: false ## Instruction: Fix Travis OSX error updating python ``` Error: python 2.7.14 is already installed To upgrade to 3.6.4_3, run `brew upgrade python` /Users/travis/.travis/job_stages: line 57: pip3: command not found /Users/travis/.travis/job_stages: line 57: pip3: command not found /Users/travis/.travis/job_stages: line 57: pip3: command not found The command "if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install flake8; pip install flake8-docstrings; pip install python-coveralls; elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install python3; pip3 install flake8; pip3 install flake8-docstrings; pip3 install python-coveralls; fi" failed and exited with 127 during . ``` ## Code After: language: python env: global: - PACKAGE="phpunitkit" matrix: - SUBLIME_TEXT_VERSION="3" matrix: allow_failures: - python: "3.6" fast_finish: true include: - os: linux python: 3.3 - os: linux python: 3.6 - os: osx language: generic before_install: - curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh # Enable GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers. - if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi install: - if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install flake8; pip install flake8-docstrings; pip install python-coveralls; elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew upgrade python; pip3 install flake8; pip3 install flake8-docstrings; pip3 install python-coveralls; fi - sh travis.sh bootstrap - python --version - flake8 --version script: - sh travis.sh run_tests --coverage - sh travis.sh run_syntax_tests - flake8 after_success: - coveralls notifications: email: false
f674e1c64f13e70d3d34616b67faccaf116dec61
views/templates/quotes.handlebars
views/templates/quotes.handlebars
{{!-- { "title": "Quotes in a slider", "variables": { "quotes": { "title": "All the quotes", "child": { "quote": { "title": "The quote", "type": "text" }, "source": { "title": "Source of the quote", "type": "text" } } } } } --}} <div id="carousel-quotes" class="bo-highlight-container2 carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> {{#each quotes}} <li data-target="#carousel-quotes" data-slide-to="{{@index}}"{{#if @first}} class="active"{{/if}}></li> {{/each}} </ol> <div class="container"> <div class="row quotes"> <div class="col-md-12"> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> {{#each quotes}} <div class="item{{#if @first}} active{{/if}}"> <blockquote> {{quote}} <footer>{{source}}</footer> </blockquote> </div> {{/each}} </div> </div> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-quotes" role="button" data-slide="prev"> <span class="carousel-chevron-left" aria-hidden="true"></span> <span class="sr-only">Zurueck</span> </a> <a class="right carousel-control" href="#carousel-quotes" role="button" data-slide="next"> <span class="carousel-chevron-right" aria-hidden="true"></span> <span class="sr-only">Weiter</span> </a> </div>
{{!-- { "title": "Quotes in a slider", "variables": { "quote": { "title": "The quote", "type": "text" }, "source": { "title": "Source of the quote", "type": "text" } } } --}} <div id="carousel-quotes" class="bo-highlight-container2 carousel slide" data-ride="carousel"> <div class="container"> <div class="row quotes"> <div class="col-md-12"> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <blockquote> {{{quote}}} <footer>{{{source}}}</footer> </blockquote> </div> </div> </div> </div> </div> </div>
Remove slider, which is not working yet
Remove slider, which is not working yet
Handlebars
agpl-3.0
BreakOutEvent/breakout-frontend
handlebars
## Code Before: {{!-- { "title": "Quotes in a slider", "variables": { "quotes": { "title": "All the quotes", "child": { "quote": { "title": "The quote", "type": "text" }, "source": { "title": "Source of the quote", "type": "text" } } } } } --}} <div id="carousel-quotes" class="bo-highlight-container2 carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> {{#each quotes}} <li data-target="#carousel-quotes" data-slide-to="{{@index}}"{{#if @first}} class="active"{{/if}}></li> {{/each}} </ol> <div class="container"> <div class="row quotes"> <div class="col-md-12"> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> {{#each quotes}} <div class="item{{#if @first}} active{{/if}}"> <blockquote> {{quote}} <footer>{{source}}</footer> </blockquote> </div> {{/each}} </div> </div> </div> </div> <!-- Controls --> <a class="left carousel-control" href="#carousel-quotes" role="button" data-slide="prev"> <span class="carousel-chevron-left" aria-hidden="true"></span> <span class="sr-only">Zurueck</span> </a> <a class="right carousel-control" href="#carousel-quotes" role="button" data-slide="next"> <span class="carousel-chevron-right" aria-hidden="true"></span> <span class="sr-only">Weiter</span> </a> </div> ## Instruction: Remove slider, which is not working yet ## Code After: {{!-- { "title": "Quotes in a slider", "variables": { "quote": { "title": "The quote", "type": "text" }, "source": { "title": "Source of the quote", "type": "text" } } } --}} <div id="carousel-quotes" class="bo-highlight-container2 carousel slide" data-ride="carousel"> <div class="container"> <div class="row quotes"> <div class="col-md-12"> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active"> <blockquote> {{{quote}}} <footer>{{{source}}}</footer> </blockquote> </div> </div> </div> </div> </div> </div>
52bfc5a905f21f03efb71dfb00fadb3f05372ecb
app/views/site/_key.rhtml
app/views/site/_key.rhtml
<% content_for :left_menu do %> <%= link_to_function t('site.key.map_key'), "showKey();" %> <% end %> <script type="text/javascript"> <!-- function showKey() { var zoomlevel = map.getZoom(); if (zoomlevel<7 ) { var imgname = 'keymapnik6.png'; } else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; } else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; } else { var imgname = 'keymapnik15.png'; } updateSidebar("<%= t('site.key.map_key') %>", "<p><img src='images/"+imgname+"' /><\/p>"); openSidebar({ width: "210px" }); } function updateKey() { if (sidebarOpen("Map key")) { showKey(); } } // --> </script>
<% content_for :left_menu do %> <%= link_to_function t('site.key.map_key'), "showKey();" %> <% end %> <script type="text/javascript"> <!-- function showKey() { var zoomlevel = map.getZoom(); if (zoomlevel<7 ) { var imgname = 'keymapnik6.png'; } else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; } else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; } else { var imgname = 'keymapnik15.png'; } updateSidebar("<%= t('site.key.map_key') %>", "<p><img src='images/"+imgname+"' /><\/p>"); openSidebar({ width: "210px" }); } function updateKey() { if (sidebarOpen("<%= t('site.key.map_key') %>")) { showKey(); } } // --> </script>
Update key when the zoom changes, even if the language is not english.
Update key when the zoom changes, even if the language is not english.
RHTML
agpl-3.0
tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam
rhtml
## Code Before: <% content_for :left_menu do %> <%= link_to_function t('site.key.map_key'), "showKey();" %> <% end %> <script type="text/javascript"> <!-- function showKey() { var zoomlevel = map.getZoom(); if (zoomlevel<7 ) { var imgname = 'keymapnik6.png'; } else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; } else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; } else { var imgname = 'keymapnik15.png'; } updateSidebar("<%= t('site.key.map_key') %>", "<p><img src='images/"+imgname+"' /><\/p>"); openSidebar({ width: "210px" }); } function updateKey() { if (sidebarOpen("Map key")) { showKey(); } } // --> </script> ## Instruction: Update key when the zoom changes, even if the language is not english. ## Code After: <% content_for :left_menu do %> <%= link_to_function t('site.key.map_key'), "showKey();" %> <% end %> <script type="text/javascript"> <!-- function showKey() { var zoomlevel = map.getZoom(); if (zoomlevel<7 ) { var imgname = 'keymapnik6.png'; } else if (zoomlevel<13) { var imgname = 'keymapnik'+zoomlevel+'.png'; } else if (zoomlevel<15) { var imgname = 'keymapnik13.png'; } else { var imgname = 'keymapnik15.png'; } updateSidebar("<%= t('site.key.map_key') %>", "<p><img src='images/"+imgname+"' /><\/p>"); openSidebar({ width: "210px" }); } function updateKey() { if (sidebarOpen("<%= t('site.key.map_key') %>")) { showKey(); } } // --> </script>
fd000fcf18df83a54999866f8d21d363adb7c7e8
Resources/views/Shipment/show.html.twig
Resources/views/Shipment/show.html.twig
{% extends '@SyliusAdmin/layout.html.twig' %} {% block title %}{{ 'sylius.ui.shipment'|trans }} | {{ shipment.id }}{% endblock %} {% block content %} {% include '@SyliusAdmin/Shipment/Show/_header.html.twig' %} {% include '@SyliusAdmin/Shipment/Show/_breadcrumb.html.twig' %} <div class="ui segment spaceless sylius-grid-table-wrapper"> <table class="ui sortable stackable very basic celled table"> <thead> <tr> <th>{{ 'sylius.ui.product'|trans }}</th> <th>{{ 'sylius.ui.variant'|trans }}</th> </tr> </thead> <tbody> {% for unit in shipment.units %} <tr class="item"> <td>{{ unit.orderItem.product.name }}</td> <td>{{ unit.orderItem.variant.name }}</td> </tr> {% endfor %} </tbody> </table> </div> {% endblock %}
{% extends '@SyliusAdmin/layout.html.twig' %} {% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} {% block title %}{{ 'sylius.ui.shipment'|trans }} | {{ shipment.id }}{% endblock %} {% block content %} <div class="ui stackable two column grid"> <div class="twelve wide column"> {% include '@SyliusAdmin/Shipment/Show/_header.html.twig' %} </div> <div class="four wide right aligned column"> {{ buttons.default(app.request.headers.get('referer'), '', 'back', 'arrow alternate circle left outline') }} </div> </div> {% include '@SyliusAdmin/Shipment/Show/_breadcrumb.html.twig' %} <div class="ui segment spaceless sylius-grid-table-wrapper"> <table class="ui sortable stackable very basic celled table"> <thead> <tr> <th>{{ 'sylius.ui.product'|trans }}</th> <th>{{ 'sylius.ui.variant'|trans }}</th> </tr> </thead> <tbody> {% for unit in shipment.units %} <tr class="item"> <td>{{ unit.orderItem.product.name }}</td> <td>{{ unit.orderItem.variant.name }}</td> </tr> {% endfor %} </tbody> </table> </div> {% endblock %}
Add back button on shipment show page
[Admin][Shipment] Add back button on shipment show page
Twig
mit
Sylius/SyliusAdminBundle,Sylius/SyliusAdminBundle
twig
## Code Before: {% extends '@SyliusAdmin/layout.html.twig' %} {% block title %}{{ 'sylius.ui.shipment'|trans }} | {{ shipment.id }}{% endblock %} {% block content %} {% include '@SyliusAdmin/Shipment/Show/_header.html.twig' %} {% include '@SyliusAdmin/Shipment/Show/_breadcrumb.html.twig' %} <div class="ui segment spaceless sylius-grid-table-wrapper"> <table class="ui sortable stackable very basic celled table"> <thead> <tr> <th>{{ 'sylius.ui.product'|trans }}</th> <th>{{ 'sylius.ui.variant'|trans }}</th> </tr> </thead> <tbody> {% for unit in shipment.units %} <tr class="item"> <td>{{ unit.orderItem.product.name }}</td> <td>{{ unit.orderItem.variant.name }}</td> </tr> {% endfor %} </tbody> </table> </div> {% endblock %} ## Instruction: [Admin][Shipment] Add back button on shipment show page ## Code After: {% extends '@SyliusAdmin/layout.html.twig' %} {% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} {% block title %}{{ 'sylius.ui.shipment'|trans }} | {{ shipment.id }}{% endblock %} {% block content %} <div class="ui stackable two column grid"> <div class="twelve wide column"> {% include '@SyliusAdmin/Shipment/Show/_header.html.twig' %} </div> <div class="four wide right aligned column"> {{ buttons.default(app.request.headers.get('referer'), '', 'back', 'arrow alternate circle left outline') }} </div> </div> {% include '@SyliusAdmin/Shipment/Show/_breadcrumb.html.twig' %} <div class="ui segment spaceless sylius-grid-table-wrapper"> <table class="ui sortable stackable very basic celled table"> <thead> <tr> <th>{{ 'sylius.ui.product'|trans }}</th> <th>{{ 'sylius.ui.variant'|trans }}</th> </tr> </thead> <tbody> {% for unit in shipment.units %} <tr class="item"> <td>{{ unit.orderItem.product.name }}</td> <td>{{ unit.orderItem.variant.name }}</td> </tr> {% endfor %} </tbody> </table> </div> {% endblock %}
2036a077c56a2ae4fcf483401ca9b41087aa1aaf
test/google_map_test.rb
test/google_map_test.rb
require File.dirname(__FILE__) + '/test_helper' class GoogleMapTest < Test::Unit::TestCase # Replace this with your real tests. def setup @map = GoogleMap.new end def test_new_map_has_empty_markers assert @map.markers.empty? end def test_add_markers @map.markers << GoogleMapMarker.new(:map => @map, :lat => 47.6597, :lng => -122.318, :html => 'My House') assert_equal @map.markers.length, 1 end end
require File.dirname(__FILE__) + '/test_helper' GOOGLE_APPLICATION_ID = "ABQIAAAA3HdfrnxFAPWyY-aiJUxmqRTJQa0g3IQ9GZqIMmInSLzwtGDKaBQ0KYLwBEKSM7F9gCevcsIf6WPuIQ" class GoogleMapTest < Test::Unit::TestCase # Replace this with your real tests. def setup @map = GoogleMap.new end def test_new_map_has_empty_markers assert @map.markers.empty? end def test_add_markers @map.markers << GoogleMapMarker.new(:map => @map, :lat => 47.6597, :lng => -122.318, :html => 'My House') assert_equal @map.markers.length, 1 assert @map.to_html.include? "google_map_marker_1 = new GMarker(new GLatLng(47.6597, -122.318));" end end
Test generated HTML includes marker references
Test generated HTML includes marker references
Ruby
mit
chrislo/google_maps
ruby
## Code Before: require File.dirname(__FILE__) + '/test_helper' class GoogleMapTest < Test::Unit::TestCase # Replace this with your real tests. def setup @map = GoogleMap.new end def test_new_map_has_empty_markers assert @map.markers.empty? end def test_add_markers @map.markers << GoogleMapMarker.new(:map => @map, :lat => 47.6597, :lng => -122.318, :html => 'My House') assert_equal @map.markers.length, 1 end end ## Instruction: Test generated HTML includes marker references ## Code After: require File.dirname(__FILE__) + '/test_helper' GOOGLE_APPLICATION_ID = "ABQIAAAA3HdfrnxFAPWyY-aiJUxmqRTJQa0g3IQ9GZqIMmInSLzwtGDKaBQ0KYLwBEKSM7F9gCevcsIf6WPuIQ" class GoogleMapTest < Test::Unit::TestCase # Replace this with your real tests. def setup @map = GoogleMap.new end def test_new_map_has_empty_markers assert @map.markers.empty? end def test_add_markers @map.markers << GoogleMapMarker.new(:map => @map, :lat => 47.6597, :lng => -122.318, :html => 'My House') assert_equal @map.markers.length, 1 assert @map.to_html.include? "google_map_marker_1 = new GMarker(new GLatLng(47.6597, -122.318));" end end
810133229505ea0950c691b6d9bc86e8327b57a7
core/spec/screenshots/feed_spec.rb
core/spec/screenshots/feed_spec.rb
require 'acceptance_helper' describe "factlink", type: :feature, driver: :poltergeist_slow do include ScreenshotTest include PavlovSupport let(:user) { create :user } let(:other_user) { create :user } before do # Keep in sync with controllers/api/feed_controller_spec as(user) do |p| p.interactor :'users/follow_user', username: other_user.username end fact = create :fact as(other_user) do |p| p.interactor :'comments/create', fact_id: fact.id.to_i, content: 'hoi' end fact2 = create :fact comment2 = nil as(user) do |p| comment2 = p.interactor :'comments/create', fact_id: fact2.id.to_i, content: 'hoi' end as(other_user) do |p| p.interactor :'sub_comments/create', comment_id: comment2.id.to_s, content: 'hoi' end as(other_user) do |p| p.interactor :'users/follow_user', username: (create :user).username p.interactor :'users/follow_user', username: (create :user).username end end it 'it renders 2 Factlinks' do sign_in_user(user) visit feed_path find('label[for=FeedChoice_Personal]').click assume_unchanged_screenshot 'feed' end end
require 'acceptance_helper' describe "factlink", type: :feature, driver: :poltergeist_slow do include ScreenshotTest include PavlovSupport let(:user) { create :user } let(:other_user) { create :user } before do # Keep in sync with controllers/api/feed_controller_spec as(user) do |p| p.interactor :'users/follow_user', username: other_user.username end fact = create :fact as(other_user) do |p| p.interactor :'comments/create', fact_id: fact.id.to_i, content: 'hoi' end fact2 = create :fact comment2 = nil as(user) do |p| comment2 = p.interactor :'comments/create', fact_id: fact2.id.to_i, content: 'hoi' end as(other_user) do |p| p.interactor :'sub_comments/create', comment_id: comment2.id.to_s, content: 'hoi' end as(other_user) do |p| p.interactor :'users/follow_user', username: (create :user).username p.interactor :'users/follow_user', username: (create :user).username end end it 'it renders 2 Factlinks' do sign_in_user(user) visit feed_path find('label[for=FeedChoice_Personal]').click find('.feed-activity:first-child') assume_unchanged_screenshot 'feed' end end
Use personal feed in screenshot test
Use personal feed in screenshot test as originally intended.
Ruby
mit
Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core
ruby
## Code Before: require 'acceptance_helper' describe "factlink", type: :feature, driver: :poltergeist_slow do include ScreenshotTest include PavlovSupport let(:user) { create :user } let(:other_user) { create :user } before do # Keep in sync with controllers/api/feed_controller_spec as(user) do |p| p.interactor :'users/follow_user', username: other_user.username end fact = create :fact as(other_user) do |p| p.interactor :'comments/create', fact_id: fact.id.to_i, content: 'hoi' end fact2 = create :fact comment2 = nil as(user) do |p| comment2 = p.interactor :'comments/create', fact_id: fact2.id.to_i, content: 'hoi' end as(other_user) do |p| p.interactor :'sub_comments/create', comment_id: comment2.id.to_s, content: 'hoi' end as(other_user) do |p| p.interactor :'users/follow_user', username: (create :user).username p.interactor :'users/follow_user', username: (create :user).username end end it 'it renders 2 Factlinks' do sign_in_user(user) visit feed_path find('label[for=FeedChoice_Personal]').click assume_unchanged_screenshot 'feed' end end ## Instruction: Use personal feed in screenshot test as originally intended. ## Code After: require 'acceptance_helper' describe "factlink", type: :feature, driver: :poltergeist_slow do include ScreenshotTest include PavlovSupport let(:user) { create :user } let(:other_user) { create :user } before do # Keep in sync with controllers/api/feed_controller_spec as(user) do |p| p.interactor :'users/follow_user', username: other_user.username end fact = create :fact as(other_user) do |p| p.interactor :'comments/create', fact_id: fact.id.to_i, content: 'hoi' end fact2 = create :fact comment2 = nil as(user) do |p| comment2 = p.interactor :'comments/create', fact_id: fact2.id.to_i, content: 'hoi' end as(other_user) do |p| p.interactor :'sub_comments/create', comment_id: comment2.id.to_s, content: 'hoi' end as(other_user) do |p| p.interactor :'users/follow_user', username: (create :user).username p.interactor :'users/follow_user', username: (create :user).username end end it 'it renders 2 Factlinks' do sign_in_user(user) visit feed_path find('label[for=FeedChoice_Personal]').click find('.feed-activity:first-child') assume_unchanged_screenshot 'feed' end end
ef42117ec2bd2a275dcea5f5a2d57322bbd21faa
wafer/talks/tests/fixtures.py
wafer/talks/tests/fixtures.py
from wafer.talks.models import Talk, TalkType from wafer.tests.utils import create_user def create_talk_type(name): """Create a talk type""" return TalkType.objects.create(name=name) def create_talk(title, status, username=None, user=None, talk_type=None): if username: user = create_user(username) talk = Talk.objects.create( title=title, status=status, corresponding_author_id=user.id) talk.authors.add(user) talk.notes = "Some notes for talk %s" % title talk.private_notes = "Some private notes for talk %s" % title talk.save() if talk_type: talk.talk_type = talk_type talk.save() return talk
from wafer.talks.models import Talk, TalkType from wafer.tests.utils import create_user def create_talk_type(name): """Create a talk type""" return TalkType.objects.create(name=name) def create_talk(title, status, username=None, user=None, talk_type=None): if sum((user is None, username is None)) != 1: raise ValueError('One of user OR username must be specified') if username: user = create_user(username) talk = Talk.objects.create( title=title, status=status, corresponding_author_id=user.id) talk.authors.add(user) talk.notes = "Some notes for talk %s" % title talk.private_notes = "Some private notes for talk %s" % title talk.save() if talk_type: talk.talk_type = talk_type talk.save() return talk
Check that user OR username is specified
Check that user OR username is specified
Python
isc
CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer
python
## Code Before: from wafer.talks.models import Talk, TalkType from wafer.tests.utils import create_user def create_talk_type(name): """Create a talk type""" return TalkType.objects.create(name=name) def create_talk(title, status, username=None, user=None, talk_type=None): if username: user = create_user(username) talk = Talk.objects.create( title=title, status=status, corresponding_author_id=user.id) talk.authors.add(user) talk.notes = "Some notes for talk %s" % title talk.private_notes = "Some private notes for talk %s" % title talk.save() if talk_type: talk.talk_type = talk_type talk.save() return talk ## Instruction: Check that user OR username is specified ## Code After: from wafer.talks.models import Talk, TalkType from wafer.tests.utils import create_user def create_talk_type(name): """Create a talk type""" return TalkType.objects.create(name=name) def create_talk(title, status, username=None, user=None, talk_type=None): if sum((user is None, username is None)) != 1: raise ValueError('One of user OR username must be specified') if username: user = create_user(username) talk = Talk.objects.create( title=title, status=status, corresponding_author_id=user.id) talk.authors.add(user) talk.notes = "Some notes for talk %s" % title talk.private_notes = "Some private notes for talk %s" % title talk.save() if talk_type: talk.talk_type = talk_type talk.save() return talk
1f3ce668d37467ba8d8f312c3b3752fc926eb2d2
src/main/kotlin/me/camdenorrb/minibus/listener/ListenerFunction.kt
src/main/kotlin/me/camdenorrb/minibus/listener/ListenerFunction.kt
package me.camdenorrb.minibus.listener import me.camdenorrb.minibus.event.MiniEvent import kotlin.reflect.KFunction /** * Created by camdenorrb on 3/5/17. */ class ListenerFunction(val listener: MiniListener, val priority: ListenerPriority, val function: KFunction<*>): Comparable<ListenerFunction> { operator fun <T : MiniEvent> invoke(event: T) { function.call(listener, event) } override fun compareTo(other: ListenerFunction): Int { return if (priority == other.priority) 1 else priority.compareTo(other.priority) } }
package me.camdenorrb.minibus.listener import me.camdenorrb.minibus.event.MiniEvent import kotlin.reflect.KFunction /** * Created by camdenorrb on 3/5/17. */ class ListenerFunction(val listener: MiniListener, val priority: ListenerPriority, val function: KFunction<*>): Comparable<ListenerFunction> { operator fun invoke(event: MiniEvent) { function.call(listener, event) } override fun compareTo(other: ListenerFunction): Int { return if (priority == other.priority) 1 else priority.compareTo(other.priority) } }
Replace generic with just the Type.
Replace generic with just the Type.
Kotlin
apache-2.0
MiniMineCraft/MiniBus
kotlin
## Code Before: package me.camdenorrb.minibus.listener import me.camdenorrb.minibus.event.MiniEvent import kotlin.reflect.KFunction /** * Created by camdenorrb on 3/5/17. */ class ListenerFunction(val listener: MiniListener, val priority: ListenerPriority, val function: KFunction<*>): Comparable<ListenerFunction> { operator fun <T : MiniEvent> invoke(event: T) { function.call(listener, event) } override fun compareTo(other: ListenerFunction): Int { return if (priority == other.priority) 1 else priority.compareTo(other.priority) } } ## Instruction: Replace generic with just the Type. ## Code After: package me.camdenorrb.minibus.listener import me.camdenorrb.minibus.event.MiniEvent import kotlin.reflect.KFunction /** * Created by camdenorrb on 3/5/17. */ class ListenerFunction(val listener: MiniListener, val priority: ListenerPriority, val function: KFunction<*>): Comparable<ListenerFunction> { operator fun invoke(event: MiniEvent) { function.call(listener, event) } override fun compareTo(other: ListenerFunction): Int { return if (priority == other.priority) 1 else priority.compareTo(other.priority) } }
71f0de6cb4fb01dd5926d9280eadce14e6fe8e08
setup.py
setup.py
from setuptools import setup from dlstats import version import os setup(name='dlstats', version=version.version, description='A python module that provides an interface between statistics providers and pandas.', author='Widukind team', author_email='dev@michaelmalter.fr', url='https://github.com/Widukind', package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'}, packages=['dlstats', 'dlstats.fetchers'], data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']), ('/etc/systemd/system',['os_specific/dlstats.service'])], install_requires=[ 'requests>=2.4.3', 'pymongo>=2.7.2', 'pandas>=0.12', 'docopt>=0.6.0', 'voluptuous>=0.8', 'xlrd>=0.8', 'configobj>=5.0', 'elasticsearch>=1.0.0,<2.0.0' ] ) with open('/etc/systemd/system/dlstats.service'): os.chmod('/etc/systemd/system/dlstats.service', 0o755) with open('/usr/local/bin/dlstats_server.py'): os.chmod('/usr/local/bin/dlstats_server.py', 0o755)
from setuptools import setup from dlstats import version import os setup(name='dlstats', version=version.version, description='A python module that provides an interface between statistics providers and pandas.', author='Widukind team', author_email='dev@michaelmalter.fr', url='https://github.com/Widukind', package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'}, packages=['dlstats', 'dlstats.fetchers'], data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']), ('/etc/systemd/system',['os_specific/dlstats.service']), ('/etc/',['config/dlstats'])], install_requires=[ 'requests>=2.4.3', 'pymongo>=2.7.2', 'pandas>=0.12', 'docopt>=0.6.0', 'voluptuous>=0.8', 'xlrd>=0.8', 'configobj>=5.0', 'elasticsearch>=1.0.0,<2.0.0' ] ) with open('/etc/systemd/system/dlstats.service'): os.chmod('/etc/systemd/system/dlstats.service', 0o755) with open('/usr/local/bin/dlstats_server.py'): os.chmod('/usr/local/bin/dlstats_server.py', 0o755) with open('/etc/dlstats'): os.chmod('/etc/dlstats', 0o755)
Add conf file to installation script
Add conf file to installation script
Python
agpl-3.0
mmalter/dlstats,MichelJuillard/dlstats,mmalter/dlstats,Widukind/dlstats,Widukind/dlstats,MichelJuillard/dlstats,MichelJuillard/dlstats,mmalter/dlstats
python
## Code Before: from setuptools import setup from dlstats import version import os setup(name='dlstats', version=version.version, description='A python module that provides an interface between statistics providers and pandas.', author='Widukind team', author_email='dev@michaelmalter.fr', url='https://github.com/Widukind', package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'}, packages=['dlstats', 'dlstats.fetchers'], data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']), ('/etc/systemd/system',['os_specific/dlstats.service'])], install_requires=[ 'requests>=2.4.3', 'pymongo>=2.7.2', 'pandas>=0.12', 'docopt>=0.6.0', 'voluptuous>=0.8', 'xlrd>=0.8', 'configobj>=5.0', 'elasticsearch>=1.0.0,<2.0.0' ] ) with open('/etc/systemd/system/dlstats.service'): os.chmod('/etc/systemd/system/dlstats.service', 0o755) with open('/usr/local/bin/dlstats_server.py'): os.chmod('/usr/local/bin/dlstats_server.py', 0o755) ## Instruction: Add conf file to installation script ## Code After: from setuptools import setup from dlstats import version import os setup(name='dlstats', version=version.version, description='A python module that provides an interface between statistics providers and pandas.', author='Widukind team', author_email='dev@michaelmalter.fr', url='https://github.com/Widukind', package_dir={'dlstats': 'dlstats', 'dlstats.fetchers': 'dlstats/fetchers'}, packages=['dlstats', 'dlstats.fetchers'], data_files=[('/usr/local/bin',['dlstats/dlstats_server.py']), ('/etc/systemd/system',['os_specific/dlstats.service']), ('/etc/',['config/dlstats'])], install_requires=[ 'requests>=2.4.3', 'pymongo>=2.7.2', 'pandas>=0.12', 'docopt>=0.6.0', 'voluptuous>=0.8', 'xlrd>=0.8', 'configobj>=5.0', 'elasticsearch>=1.0.0,<2.0.0' ] ) with open('/etc/systemd/system/dlstats.service'): os.chmod('/etc/systemd/system/dlstats.service', 0o755) with open('/usr/local/bin/dlstats_server.py'): os.chmod('/usr/local/bin/dlstats_server.py', 0o755) with open('/etc/dlstats'): os.chmod('/etc/dlstats', 0o755)
72ae2503aeb1af656873f7b379aaa460c0365688
app/javascript/retrospring/features/settings/index.ts
app/javascript/retrospring/features/settings/index.ts
import {createDeleteEvent, createSubmitEvent} from "retrospring/features/settings/mute"; export default (): void => { const submit: HTMLButtonElement = document.getElementById('new-rule-submit') as HTMLButtonElement; if (submit.classList.contains('js-initialized')) return; const rulesList = document.querySelector<HTMLDivElement>('.js-rules-list'); rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => { const button = entry.querySelector('button') button.onclick = createDeleteEvent(entry, button) }); const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement; const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement; submit.form.onsubmit = createSubmitEvent(submit, rulesList, textEntry, template) submit.classList.add('js-initialized') }
import {createDeleteEvent, createSubmitEvent} from "retrospring/features/settings/mute"; export default (): void => { const submit: HTMLButtonElement = document.getElementById('new-rule-submit') as HTMLButtonElement; if (!submit || submit.classList.contains('js-initialized')) return; const rulesList = document.querySelector<HTMLDivElement>('.js-rules-list'); rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => { const button = entry.querySelector('button') button.onclick = createDeleteEvent(entry, button) }); const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement; const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement; submit.form.onsubmit = createSubmitEvent(submit, rulesList, textEntry, template) submit.classList.add('js-initialized') }
Add null check to mute rule submits to prevent error flood
Add null check to mute rule submits to prevent error flood
TypeScript
agpl-3.0
Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring
typescript
## Code Before: import {createDeleteEvent, createSubmitEvent} from "retrospring/features/settings/mute"; export default (): void => { const submit: HTMLButtonElement = document.getElementById('new-rule-submit') as HTMLButtonElement; if (submit.classList.contains('js-initialized')) return; const rulesList = document.querySelector<HTMLDivElement>('.js-rules-list'); rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => { const button = entry.querySelector('button') button.onclick = createDeleteEvent(entry, button) }); const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement; const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement; submit.form.onsubmit = createSubmitEvent(submit, rulesList, textEntry, template) submit.classList.add('js-initialized') } ## Instruction: Add null check to mute rule submits to prevent error flood ## Code After: import {createDeleteEvent, createSubmitEvent} from "retrospring/features/settings/mute"; export default (): void => { const submit: HTMLButtonElement = document.getElementById('new-rule-submit') as HTMLButtonElement; if (!submit || submit.classList.contains('js-initialized')) return; const rulesList = document.querySelector<HTMLDivElement>('.js-rules-list'); rulesList.querySelectorAll<HTMLDivElement>('.form-group:not(.js-initalized)').forEach(entry => { const button = entry.querySelector('button') button.onclick = createDeleteEvent(entry, button) }); const textEntry: HTMLButtonElement = document.getElementById('new-rule-text') as HTMLButtonElement; const template: HTMLTemplateElement = document.getElementById('rule-template') as HTMLTemplateElement; submit.form.onsubmit = createSubmitEvent(submit, rulesList, textEntry, template) submit.classList.add('js-initialized') }
0daa50eb17f3fbf26c0edbc27f87b0d95a9b56b7
src/templates/_macros/featured-games.html
src/templates/_macros/featured-games.html
{% macro featuredGames(homepage) %} <div class="featured-games-section"> {% defer (url=api('game.featured')) %} <ul> {% for game in this %} <li data-game-slug="{{ game.slug }}"> <a href="{{ url('game', [game.slug]) if homepage }}"> <div class="media"> <img class="media-figure game-icon" src="{{ game.icons[0].src }}"> <div class="media-body"> <h3 class="game-name">{{ game.name|translate(game) }}</h3> <p class="game-developer">{{ _('by {author}', author=game.developer.name) }}</p> </div> </div> </a> <div class="select-bar"></div> </li> {% endfor %} </ul> <div class="arrow"></div> {% end %} </div> {% endmacro %}
{% macro featuredGames(homepage) %} <div class="featured-games-section"> {% defer (url=api('game.featured')) %} <ul> {% for game in this %} <li data-game-slug="{{ game.slug }}"> <a href="{{ url('game', [game.slug]) if homepage }}"> <div class="media"> <img class="media-figure game-icon" src="{{ game.icons[0].src }}"> <div class="media-body"> <h3 class="game-name">{{ game.name|translate(game) }}</h3> <p class="game-developer">{{ _('by {author}', author=game.developer.name) }}</p> </div> </div> </a> <div class="select-bar"></div> </li> {% endfor %} </ul> {% if (this.length != 0) %} <div class="arrow"></div> {% endif %} {% end %} </div> {% endmacro %}
Make the arrow not show up when there are no games to navigate through
Make the arrow not show up when there are no games to navigate through
HTML
bsd-3-clause
mozilla/galaxy
html
## Code Before: {% macro featuredGames(homepage) %} <div class="featured-games-section"> {% defer (url=api('game.featured')) %} <ul> {% for game in this %} <li data-game-slug="{{ game.slug }}"> <a href="{{ url('game', [game.slug]) if homepage }}"> <div class="media"> <img class="media-figure game-icon" src="{{ game.icons[0].src }}"> <div class="media-body"> <h3 class="game-name">{{ game.name|translate(game) }}</h3> <p class="game-developer">{{ _('by {author}', author=game.developer.name) }}</p> </div> </div> </a> <div class="select-bar"></div> </li> {% endfor %} </ul> <div class="arrow"></div> {% end %} </div> {% endmacro %} ## Instruction: Make the arrow not show up when there are no games to navigate through ## Code After: {% macro featuredGames(homepage) %} <div class="featured-games-section"> {% defer (url=api('game.featured')) %} <ul> {% for game in this %} <li data-game-slug="{{ game.slug }}"> <a href="{{ url('game', [game.slug]) if homepage }}"> <div class="media"> <img class="media-figure game-icon" src="{{ game.icons[0].src }}"> <div class="media-body"> <h3 class="game-name">{{ game.name|translate(game) }}</h3> <p class="game-developer">{{ _('by {author}', author=game.developer.name) }}</p> </div> </div> </a> <div class="select-bar"></div> </li> {% endfor %} </ul> {% if (this.length != 0) %} <div class="arrow"></div> {% endif %} {% end %} </div> {% endmacro %}
48acc8c91b26cf424086151a6a625b663196b1c7
src/statistic_histogram.h
src/statistic_histogram.h
/* * statistic_histogram.h * */ #ifndef STATISTIC_HISTOGRAM_H_ #define STATISTIC_HISTOGRAM_H_ #include <stdio.h> #include <vector> class Statistic_histogram { public: Statistic_histogram(std::string h_name, const ssize_t domain_start, const ssize_t domain_end, const size_t range_size); void inc_val(uint64_t val); size_t report(char * report_buffer, size_t report_buffer_size); private: std::string name; ssize_t dstart; ssize_t dend; size_t rsize; typedef std::vector<uint64_t>::iterator hv_iterator; std::vector<uint64_t> hval; }; #endif /* STATISTIC_HISTOGRAM_H_ */
/* Copyright (c) 2015, Edward Haas All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of st_histogram nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. statistic_histogram.h */ #ifndef STATISTIC_HISTOGRAM_H_ #define STATISTIC_HISTOGRAM_H_ #include <stdio.h> #include <vector> class Statistic_histogram { public: Statistic_histogram(std::string h_name, const ssize_t domain_start, const ssize_t domain_end, const size_t range_size); void inc_val(uint64_t val); size_t report(char * report_buffer, size_t report_buffer_size); private: std::string name; ssize_t dstart; ssize_t dend; size_t rsize; typedef std::vector<uint64_t>::iterator hv_iterator; std::vector<uint64_t> hval; }; #endif /* STATISTIC_HISTOGRAM_H_ */
Update license in header file
Update license in header file
C
bsd-3-clause
EdDev/st_histogram,EdDev/st_histogram
c
## Code Before: /* * statistic_histogram.h * */ #ifndef STATISTIC_HISTOGRAM_H_ #define STATISTIC_HISTOGRAM_H_ #include <stdio.h> #include <vector> class Statistic_histogram { public: Statistic_histogram(std::string h_name, const ssize_t domain_start, const ssize_t domain_end, const size_t range_size); void inc_val(uint64_t val); size_t report(char * report_buffer, size_t report_buffer_size); private: std::string name; ssize_t dstart; ssize_t dend; size_t rsize; typedef std::vector<uint64_t>::iterator hv_iterator; std::vector<uint64_t> hval; }; #endif /* STATISTIC_HISTOGRAM_H_ */ ## Instruction: Update license in header file ## Code After: /* Copyright (c) 2015, Edward Haas All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of st_histogram nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. statistic_histogram.h */ #ifndef STATISTIC_HISTOGRAM_H_ #define STATISTIC_HISTOGRAM_H_ #include <stdio.h> #include <vector> class Statistic_histogram { public: Statistic_histogram(std::string h_name, const ssize_t domain_start, const ssize_t domain_end, const size_t range_size); void inc_val(uint64_t val); size_t report(char * report_buffer, size_t report_buffer_size); private: std::string name; ssize_t dstart; ssize_t dend; size_t rsize; typedef std::vector<uint64_t>::iterator hv_iterator; std::vector<uint64_t> hval; }; #endif /* STATISTIC_HISTOGRAM_H_ */
3555380b1e5d234b36b8797caeaa012c924e83b5
index.js
index.js
'use strict'; var fs = require('fs'); var tempfile = require('tempfile2'); module.exports = function createWriteStream(params) { var path = tempfile(params); var ws = fs.createWriteStream(path); var close = function() { ws.end(); fs.close(ws.fd); }; ws.path = path; ws.cleanup = function(cb) { close(); fs.unlink(path, function(err) { if (err) ws.emit('error', err); if (cb) cb(err); }); }; ws.cleanupSync = function() { close(); try { fs.unlinkSync(path); } catch (err) { ws.emit('error', err); } }; return ws; };
'use strict'; var fs = require('fs'); var tempfile = require('tempfile2'); module.exports = function createWriteStream(params) { var path = tempfile(params); var writeStream = fs.createWriteStream(path); writeStream.path = path; writeStream.cleanup = function(cb) { writeStream.end(); fs.unlink(path, function(err) { if (err) writeStream.emit('error', err); if (cb) cb(err); }); }; writeStream.cleanupSync = function() { writeStream.end(); try { fs.unlinkSync(path); } catch (err) { writeStream.emit('error', err); } }; return writeStream; };
Revert "ensure to close the file"
Revert "ensure to close the file" This reverts commit f1d07a7b2aab2a7436e9cc7d5d05767dd5968dab.
JavaScript
mit
Kikobeats/create-temp-file2
javascript
## Code Before: 'use strict'; var fs = require('fs'); var tempfile = require('tempfile2'); module.exports = function createWriteStream(params) { var path = tempfile(params); var ws = fs.createWriteStream(path); var close = function() { ws.end(); fs.close(ws.fd); }; ws.path = path; ws.cleanup = function(cb) { close(); fs.unlink(path, function(err) { if (err) ws.emit('error', err); if (cb) cb(err); }); }; ws.cleanupSync = function() { close(); try { fs.unlinkSync(path); } catch (err) { ws.emit('error', err); } }; return ws; }; ## Instruction: Revert "ensure to close the file" This reverts commit f1d07a7b2aab2a7436e9cc7d5d05767dd5968dab. ## Code After: 'use strict'; var fs = require('fs'); var tempfile = require('tempfile2'); module.exports = function createWriteStream(params) { var path = tempfile(params); var writeStream = fs.createWriteStream(path); writeStream.path = path; writeStream.cleanup = function(cb) { writeStream.end(); fs.unlink(path, function(err) { if (err) writeStream.emit('error', err); if (cb) cb(err); }); }; writeStream.cleanupSync = function() { writeStream.end(); try { fs.unlinkSync(path); } catch (err) { writeStream.emit('error', err); } }; return writeStream; };
0db880ba2616d942be042a1fab48f555908de683
features/build/build_controller.rb
features/build/build_controller.rb
require_relative "../../shared/authenticated_controller_base" require_relative "./build_websocket_backend" require "pathname" module FastlaneCI # Controller for a single project view. Responsible for updates, triggering builds, and displaying project info class BuildController < AuthenticatedControllerBase HOME = "/projects/*/builds" use(FastlaneCI::BuildWebsocketBackend) get "#{HOME}/*" do |project_id, build_number| build_number = build_number.to_i project = self.user_project_with_id(project_id: project_id) build = project.builds.find { |b| b.number == build_number } # Fetch all the active runners, and see if there is one WIP current_build_runner = Services.build_runner_service.find_build_runner( project_id: project_id, build_number: build_number ) raise "Couldn't find build runner for project #{project_id} with build_number #{build_number}" if current_build_runner.nil? locals = { project: project, build: build, title: "Project #{project.project_name}, Build #{build.number}", existing_rows: current_build_runner.all_build_output_log_rows.map(&:html) } erb(:build, locals: locals, layout: FastlaneCI.default_layout) end end end
require_relative "../../shared/authenticated_controller_base" require_relative "./build_websocket_backend" require "pathname" module FastlaneCI # Controller for a single project view. Responsible for updates, triggering builds, and displaying project info class BuildController < AuthenticatedControllerBase HOME = "/projects/*/builds" use(FastlaneCI::BuildWebsocketBackend) get "#{HOME}/*" do |project_id, build_number| build_number = build_number.to_i project = self.user_project_with_id(project_id: project_id) build = project.builds.find { |b| b.number == build_number } # Fetch all the active runners, and see if there is one WIP current_build_runner = Services.build_runner_service.find_build_runner( project_id: project_id, build_number: build_number ) if current_build_runner.nil? # Loading the output of a finished build after a server restart isn't finished yet # see https://github.com/fastlane/ci/issues/312 for more information raise "Couldn't find build runner for project #{project_id} with build_number #{build_number}" end locals = { project: project, build: build, title: "Project #{project.project_name}, Build #{build.number}", existing_rows: current_build_runner.all_build_output_log_rows.map(&:html) } erb(:build, locals: locals, layout: FastlaneCI.default_layout) end end end
Add link to GH issue to track progress of build loading
Add link to GH issue to track progress of build loading Related https://github.com/fastlane/ci/issues/312
Ruby
mit
fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci
ruby
## Code Before: require_relative "../../shared/authenticated_controller_base" require_relative "./build_websocket_backend" require "pathname" module FastlaneCI # Controller for a single project view. Responsible for updates, triggering builds, and displaying project info class BuildController < AuthenticatedControllerBase HOME = "/projects/*/builds" use(FastlaneCI::BuildWebsocketBackend) get "#{HOME}/*" do |project_id, build_number| build_number = build_number.to_i project = self.user_project_with_id(project_id: project_id) build = project.builds.find { |b| b.number == build_number } # Fetch all the active runners, and see if there is one WIP current_build_runner = Services.build_runner_service.find_build_runner( project_id: project_id, build_number: build_number ) raise "Couldn't find build runner for project #{project_id} with build_number #{build_number}" if current_build_runner.nil? locals = { project: project, build: build, title: "Project #{project.project_name}, Build #{build.number}", existing_rows: current_build_runner.all_build_output_log_rows.map(&:html) } erb(:build, locals: locals, layout: FastlaneCI.default_layout) end end end ## Instruction: Add link to GH issue to track progress of build loading Related https://github.com/fastlane/ci/issues/312 ## Code After: require_relative "../../shared/authenticated_controller_base" require_relative "./build_websocket_backend" require "pathname" module FastlaneCI # Controller for a single project view. Responsible for updates, triggering builds, and displaying project info class BuildController < AuthenticatedControllerBase HOME = "/projects/*/builds" use(FastlaneCI::BuildWebsocketBackend) get "#{HOME}/*" do |project_id, build_number| build_number = build_number.to_i project = self.user_project_with_id(project_id: project_id) build = project.builds.find { |b| b.number == build_number } # Fetch all the active runners, and see if there is one WIP current_build_runner = Services.build_runner_service.find_build_runner( project_id: project_id, build_number: build_number ) if current_build_runner.nil? # Loading the output of a finished build after a server restart isn't finished yet # see https://github.com/fastlane/ci/issues/312 for more information raise "Couldn't find build runner for project #{project_id} with build_number #{build_number}" end locals = { project: project, build: build, title: "Project #{project.project_name}, Build #{build.number}", existing_rows: current_build_runner.all_build_output_log_rows.map(&:html) } erb(:build, locals: locals, layout: FastlaneCI.default_layout) end end end
758d5af6abf26753054ae0662395b27ff4ab2221
src/lz4mt_compat.h
src/lz4mt_compat.h
namespace Lz4Mt { unsigned getHardwareConcurrency(); struct launch { #if defined(_MSC_VER) typedef std::launch::launch Type; #else typedef std::launch Type; #endif static const Type deferred; static const Type async; }; } #endif
namespace Lz4Mt { unsigned getHardwareConcurrency(); struct launch { #if defined(_MSC_VER) && (_MSC_VER <= 1700) typedef std::launch::launch Type; #else typedef std::launch Type; #endif static const Type deferred; static const Type async; }; } #endif
Fix compile error with VC++2013 preview
Fix compile error with VC++2013 preview
C
bsd-2-clause
rgde/lz4mt,tempbottle/lz4mt,t-mat/lz4mt,t-mat/lz4mt,tempbottle/lz4mt,rgde/lz4mt,t-mat/lz4mt
c
## Code Before: namespace Lz4Mt { unsigned getHardwareConcurrency(); struct launch { #if defined(_MSC_VER) typedef std::launch::launch Type; #else typedef std::launch Type; #endif static const Type deferred; static const Type async; }; } #endif ## Instruction: Fix compile error with VC++2013 preview ## Code After: namespace Lz4Mt { unsigned getHardwareConcurrency(); struct launch { #if defined(_MSC_VER) && (_MSC_VER <= 1700) typedef std::launch::launch Type; #else typedef std::launch Type; #endif static const Type deferred; static const Type async; }; } #endif
f34dda33b8fe3e7c49de6c2e5e8918e2b459be6f
scripts/lisp-in-small-pieces.sh
scripts/lisp-in-small-pieces.sh
set -e echo "==> Setting hostname" echo lisp-in-small-pieces-vm | sudo tee /etc/hostname > /dev/null echo "==> Installing git gambit-c bigloo indent and time" sudo /usr/bin/pacman -S --noconfirm git mit-scheme gambit-c bigloo indent time echo "==> Creating tmpdir" tmpdir=$(/usr/bin/mktemp --directory --tmpdir=${HOME}) pushd ${tmpdir} echo "==> Installing cower" /usr/bin/curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz /usr/bin/tar xf cower.tar.gz pushd cower # IPv4 is required for the docker builder. /usr/bin/gpg --keyserver ipv4.pool.sks-keyservers.net --recv-key 487EACC08557AD082088DABA1EB2638FF56C0C53 /usr/bin/makepkg -scri --noconfirm popd echo "==> Installing caml-light" /usr/bin/git clone https://github.com/aur-archive/caml-light.git pushd caml-light /usr/bin/makepkg -scri --noconfirm popd popd # Pop out of tmpdir echo "==> Removing tmpdir" rm -rf ${tmpdir}
set -e echo "==> Setting hostname" echo lisp-in-small-pieces-vm | sudo tee /etc/hostname > /dev/null echo "==> Installing git gambit-c bigloo indent and time" sudo /usr/bin/pacman -S --noconfirm git mit-scheme gambit-c bigloo indent time echo "==> Creating tmpdir" tmpdir=$(/usr/bin/mktemp --directory --tmpdir=${HOME}) pushd "$tmpdir" echo "==> Installing auracle" /usr/bin/curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/auracle-git.tar.gz /usr/bin/tar xf auracle-git.tar.gz pushd auracle-git /usr/bin/makepkg -scri --noconfirm popd echo "==> Installing caml-light" /usr/bin/git clone https://github.com/aur-archive/caml-light.git pushd caml-light /usr/bin/makepkg -scri --noconfirm popd popd # Pop out of tmpdir echo "==> Removing tmpdir" rm -rf "$tmpdir"
Switch from cower to auracle
Switch from cower to auracle
Shell
isc
appleby/Lisp-In-Small-Pieces-VM
shell
## Code Before: set -e echo "==> Setting hostname" echo lisp-in-small-pieces-vm | sudo tee /etc/hostname > /dev/null echo "==> Installing git gambit-c bigloo indent and time" sudo /usr/bin/pacman -S --noconfirm git mit-scheme gambit-c bigloo indent time echo "==> Creating tmpdir" tmpdir=$(/usr/bin/mktemp --directory --tmpdir=${HOME}) pushd ${tmpdir} echo "==> Installing cower" /usr/bin/curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz /usr/bin/tar xf cower.tar.gz pushd cower # IPv4 is required for the docker builder. /usr/bin/gpg --keyserver ipv4.pool.sks-keyservers.net --recv-key 487EACC08557AD082088DABA1EB2638FF56C0C53 /usr/bin/makepkg -scri --noconfirm popd echo "==> Installing caml-light" /usr/bin/git clone https://github.com/aur-archive/caml-light.git pushd caml-light /usr/bin/makepkg -scri --noconfirm popd popd # Pop out of tmpdir echo "==> Removing tmpdir" rm -rf ${tmpdir} ## Instruction: Switch from cower to auracle ## Code After: set -e echo "==> Setting hostname" echo lisp-in-small-pieces-vm | sudo tee /etc/hostname > /dev/null echo "==> Installing git gambit-c bigloo indent and time" sudo /usr/bin/pacman -S --noconfirm git mit-scheme gambit-c bigloo indent time echo "==> Creating tmpdir" tmpdir=$(/usr/bin/mktemp --directory --tmpdir=${HOME}) pushd "$tmpdir" echo "==> Installing auracle" /usr/bin/curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/auracle-git.tar.gz /usr/bin/tar xf auracle-git.tar.gz pushd auracle-git /usr/bin/makepkg -scri --noconfirm popd echo "==> Installing caml-light" /usr/bin/git clone https://github.com/aur-archive/caml-light.git pushd caml-light /usr/bin/makepkg -scri --noconfirm popd popd # Pop out of tmpdir echo "==> Removing tmpdir" rm -rf "$tmpdir"
ce05e41e1c637c4fdaab894738f39679460759a9
CHANGELOG.md
CHANGELOG.md
* primeng from 4.1.0-rc.2 to 4.1.3 * spring-boot from 1.5.2 to 1.5.4 * material from 2.0.0-beta.6 to 2.0.0-beta.8 * swagger from 2.0.2 to 2.7.0 ### Other * provide a Docker image of the sample generated app (see README.md) * more material 2 components usage ## tag v0.9.0 - 2017-06-18 ### Upgrades * primeng from 4.0.0 to 4.1.0-rc.2 * material from 2.0.0-beta.3 to 2.0.0-beta.6 ### Bug Fixes * fix issue with file upload/download size not generated properly (java code) * fix the way datatable data is refreshed upon row deletion (ts code) ### Other * change the way rxjs is imported in ts code to fix travis build. As a result no longer need to remove main.ts generated by angular-cli.
* Use the new angular HttpClient * primeng from 4.1.3 to 5.0.2 * material from 2.0.0-beta.8 to latest (5.0) ## tag v0.9.1 - 2017-08-29 ### Upgrades * primeng from 4.1.0-rc.2 to 4.1.3 * spring-boot from 1.5.2 to 1.5.4 * material from 2.0.0-beta.6 to 2.0.0-beta.8 * swagger from 2.0.2 to 2.7.0 ### Other * provide a Docker image of the sample generated app (see README.md) * more material 2 components usage ## tag v0.9.0 - 2017-06-18 ### Upgrades * primeng from 4.0.0 to 4.1.0-rc.2 * material from 2.0.0-beta.3 to 2.0.0-beta.6 ### Bug Fixes * fix issue with file upload/download size not generated properly (java code) * fix the way datatable data is refreshed upon row deletion (ts code) ### Other * change the way rxjs is imported in ts code to fix travis build. As a result no longer need to remove main.ts generated by angular-cli.
Upgrade to Angular 5, Material 5 and PrimeNg 5. Use the new HttpClient
Upgrade to Angular 5, Material 5 and PrimeNg 5. Use the new HttpClient
Markdown
apache-2.0
jaxio/celerio-angular-quickstart,jaxio/celerio-angular-quickstart,jaxio/celerio-angular-quickstart,jaxio/celerio-angular-quickstart,jaxio/celerio-angular-quickstart
markdown
## Code Before: * primeng from 4.1.0-rc.2 to 4.1.3 * spring-boot from 1.5.2 to 1.5.4 * material from 2.0.0-beta.6 to 2.0.0-beta.8 * swagger from 2.0.2 to 2.7.0 ### Other * provide a Docker image of the sample generated app (see README.md) * more material 2 components usage ## tag v0.9.0 - 2017-06-18 ### Upgrades * primeng from 4.0.0 to 4.1.0-rc.2 * material from 2.0.0-beta.3 to 2.0.0-beta.6 ### Bug Fixes * fix issue with file upload/download size not generated properly (java code) * fix the way datatable data is refreshed upon row deletion (ts code) ### Other * change the way rxjs is imported in ts code to fix travis build. As a result no longer need to remove main.ts generated by angular-cli. ## Instruction: Upgrade to Angular 5, Material 5 and PrimeNg 5. Use the new HttpClient ## Code After: * Use the new angular HttpClient * primeng from 4.1.3 to 5.0.2 * material from 2.0.0-beta.8 to latest (5.0) ## tag v0.9.1 - 2017-08-29 ### Upgrades * primeng from 4.1.0-rc.2 to 4.1.3 * spring-boot from 1.5.2 to 1.5.4 * material from 2.0.0-beta.6 to 2.0.0-beta.8 * swagger from 2.0.2 to 2.7.0 ### Other * provide a Docker image of the sample generated app (see README.md) * more material 2 components usage ## tag v0.9.0 - 2017-06-18 ### Upgrades * primeng from 4.0.0 to 4.1.0-rc.2 * material from 2.0.0-beta.3 to 2.0.0-beta.6 ### Bug Fixes * fix issue with file upload/download size not generated properly (java code) * fix the way datatable data is refreshed upon row deletion (ts code) ### Other * change the way rxjs is imported in ts code to fix travis build. As a result no longer need to remove main.ts generated by angular-cli.
451e1a0909d474c787a356362b3b3cb06cd18682
beaform-core/src/main/java/beaform/events/FormulaCreatedEvent.java
beaform-core/src/main/java/beaform/events/FormulaCreatedEvent.java
package beaform.events; import java.text.SimpleDateFormat; import java.util.Date; import beaform.utilities.SystemTime; public class FormulaCreatedEvent implements Event { private static final String EVENT_TYPE = "FormulaCreated"; private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SS"); private final String name; private final long timestamp; public FormulaCreatedEvent(String name) { this.name = name; this.timestamp = SystemTime.getAsLong(); } @Override public String toEventString() { final String formattedTimeStamp = dateFormat.format(new Date(this.timestamp)); return "[" + formattedTimeStamp + "] " + EVENT_TYPE + " " + this.name; } }
package beaform.events; import java.text.SimpleDateFormat; import java.util.Date; import beaform.utilities.SystemTime; public class FormulaCreatedEvent implements Event { private static final String EVENT_TYPE = "FormulaCreated"; private static final String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss.SS"; private final String name; private final long timestamp; public FormulaCreatedEvent(String name) { this.name = name; this.timestamp = SystemTime.getAsLong(); } @Override public String toEventString() { final SimpleDateFormat dateFormat = new SimpleDateFormat(TIMESTAMP_FORMAT); final String formattedTimeStamp = dateFormat.format(new Date(this.timestamp)); return "[" + formattedTimeStamp + "] " + EVENT_TYPE + " " + this.name; } }
Improve thread safety by not using a static instance of SimpleDateFormat
Improve thread safety by not using a static instance of SimpleDateFormat
Java
mit
stevenpost/beaform
java
## Code Before: package beaform.events; import java.text.SimpleDateFormat; import java.util.Date; import beaform.utilities.SystemTime; public class FormulaCreatedEvent implements Event { private static final String EVENT_TYPE = "FormulaCreated"; private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SS"); private final String name; private final long timestamp; public FormulaCreatedEvent(String name) { this.name = name; this.timestamp = SystemTime.getAsLong(); } @Override public String toEventString() { final String formattedTimeStamp = dateFormat.format(new Date(this.timestamp)); return "[" + formattedTimeStamp + "] " + EVENT_TYPE + " " + this.name; } } ## Instruction: Improve thread safety by not using a static instance of SimpleDateFormat ## Code After: package beaform.events; import java.text.SimpleDateFormat; import java.util.Date; import beaform.utilities.SystemTime; public class FormulaCreatedEvent implements Event { private static final String EVENT_TYPE = "FormulaCreated"; private static final String TIMESTAMP_FORMAT = "yyyy-MM-dd HH:mm:ss.SS"; private final String name; private final long timestamp; public FormulaCreatedEvent(String name) { this.name = name; this.timestamp = SystemTime.getAsLong(); } @Override public String toEventString() { final SimpleDateFormat dateFormat = new SimpleDateFormat(TIMESTAMP_FORMAT); final String formattedTimeStamp = dateFormat.format(new Date(this.timestamp)); return "[" + formattedTimeStamp + "] " + EVENT_TYPE + " " + this.name; } }
6eabd231276a1206adcca059a9efe9a95c61172b
src/lib/gcc/udivdi3.c
src/lib/gcc/udivdi3.c
/** * @file * @brief * * @date 16.05.12 * @author Anton Bondarev * @author Ilia Vaprol */ #include <limits.h> #include <stdint.h> #define MASK_DWORD (uint64_t)1 << ((WORD_BIT * 2) - 1) uint64_t __udivdi3(uint64_t num, uint64_t den) { uint64_t result = 0; int steps; if (den == 0) { return 0; } steps = 0; result = 0; while (!(den & MASK_DWORD)) { den <<= 1; ++steps; } do { result <<= 1; if (num >= den) { result |= 1; num -= den; } den >>= 1; } while (steps--); return result; }
/** * @file * @brief * * @date 16.05.12 * @author Anton Bondarev * @author Ilia Vaprol */ #include <stdint.h> uint64_t __udivdi3(uint64_t num, uint64_t den) { uint64_t result = 0; int steps; if (den == 0) { return 0; } steps = 0; result = 0; while (!(den & 0x8000000000000000)) { den <<= 1; ++steps; } do { result <<= 1; if (num >= den) { result |= 1; num -= den; } den >>= 1; } while (steps--); return result; }
Revert __udivi3 (word in compiler always 32 bit)
Revert __udivi3 (word in compiler always 32 bit)
C
bsd-2-clause
abusalimov/embox,gzoom13/embox,abusalimov/embox,Kefir0192/embox,Kakadu/embox,embox/embox,vrxfile/embox-trik,abusalimov/embox,gzoom13/embox,vrxfile/embox-trik,Kefir0192/embox,embox/embox,gzoom13/embox,Kefir0192/embox,Kakadu/embox,Kefir0192/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,mike2390/embox,embox/embox,Kakadu/embox,Kakadu/embox,embox/embox,Kakadu/embox,abusalimov/embox,Kakadu/embox,abusalimov/embox,vrxfile/embox-trik,Kefir0192/embox,gzoom13/embox,vrxfile/embox-trik,mike2390/embox,embox/embox,gzoom13/embox,mike2390/embox,vrxfile/embox-trik,gzoom13/embox,mike2390/embox,gzoom13/embox,mike2390/embox,abusalimov/embox,mike2390/embox,embox/embox,Kefir0192/embox,mike2390/embox
c
## Code Before: /** * @file * @brief * * @date 16.05.12 * @author Anton Bondarev * @author Ilia Vaprol */ #include <limits.h> #include <stdint.h> #define MASK_DWORD (uint64_t)1 << ((WORD_BIT * 2) - 1) uint64_t __udivdi3(uint64_t num, uint64_t den) { uint64_t result = 0; int steps; if (den == 0) { return 0; } steps = 0; result = 0; while (!(den & MASK_DWORD)) { den <<= 1; ++steps; } do { result <<= 1; if (num >= den) { result |= 1; num -= den; } den >>= 1; } while (steps--); return result; } ## Instruction: Revert __udivi3 (word in compiler always 32 bit) ## Code After: /** * @file * @brief * * @date 16.05.12 * @author Anton Bondarev * @author Ilia Vaprol */ #include <stdint.h> uint64_t __udivdi3(uint64_t num, uint64_t den) { uint64_t result = 0; int steps; if (den == 0) { return 0; } steps = 0; result = 0; while (!(den & 0x8000000000000000)) { den <<= 1; ++steps; } do { result <<= 1; if (num >= den) { result |= 1; num -= den; } den >>= 1; } while (steps--); return result; }
2034259cc37a49f94cef872e29f1b72c84bc4493
detekt-sample-extensions/build.gradle.kts
detekt-sample-extensions/build.gradle.kts
buildscript { repositories { mavenLocal() jcenter() } val kotlinVersion: String by project dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") } } repositories { jcenter() } apply { plugin("kotlin") } val assertjVersion: String by project val usedDetektVersion: String by project val junitEngineVersion: String by project val junitPlatformVersion: String by project val spekVersion: String by project dependencies { implementation("io.gitlab.arturbosch.detekt:detekt-api:$usedDetektVersion") testImplementation("io.gitlab.arturbosch.detekt:detekt-test:$usedDetektVersion") testImplementation("org.junit.jupiter:junit-jupiter-api:$junitEngineVersion") testImplementation(kotlin("test")) testImplementation(kotlin("reflect")) testImplementation("org.assertj:assertj-core:$assertjVersion") testImplementation("org.jetbrains.spek:spek-api:$spekVersion") testImplementation("org.jetbrains.spek:spek-subject-extension:$spekVersion") testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitEngineVersion") testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") testRuntimeOnly("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion") }
val assertjVersion: String by project val usedDetektVersion: String by project val junitEngineVersion: String by project val junitPlatformVersion: String by project val spekVersion: String by project dependencies { implementation("io.gitlab.arturbosch.detekt:detekt-api:$usedDetektVersion") testImplementation("io.gitlab.arturbosch.detekt:detekt-test:$usedDetektVersion") testImplementation("org.junit.jupiter:junit-jupiter-api:$junitEngineVersion") testImplementation(kotlin("test")) testImplementation(kotlin("reflect")) testImplementation("org.assertj:assertj-core:$assertjVersion") testImplementation("org.jetbrains.spek:spek-api:$spekVersion") testImplementation("org.jetbrains.spek:spek-subject-extension:$spekVersion") testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitEngineVersion") testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") testRuntimeOnly("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion") }
Remove redundant Kotlin plugin config
Remove redundant Kotlin plugin config
Kotlin
apache-2.0
rock3r/detekt,rock3r/detekt,rock3r/detekt,arturbosch/detekt,arturbosch/detekt,arturbosch/detekt
kotlin
## Code Before: buildscript { repositories { mavenLocal() jcenter() } val kotlinVersion: String by project dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") } } repositories { jcenter() } apply { plugin("kotlin") } val assertjVersion: String by project val usedDetektVersion: String by project val junitEngineVersion: String by project val junitPlatformVersion: String by project val spekVersion: String by project dependencies { implementation("io.gitlab.arturbosch.detekt:detekt-api:$usedDetektVersion") testImplementation("io.gitlab.arturbosch.detekt:detekt-test:$usedDetektVersion") testImplementation("org.junit.jupiter:junit-jupiter-api:$junitEngineVersion") testImplementation(kotlin("test")) testImplementation(kotlin("reflect")) testImplementation("org.assertj:assertj-core:$assertjVersion") testImplementation("org.jetbrains.spek:spek-api:$spekVersion") testImplementation("org.jetbrains.spek:spek-subject-extension:$spekVersion") testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitEngineVersion") testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") testRuntimeOnly("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion") } ## Instruction: Remove redundant Kotlin plugin config ## Code After: val assertjVersion: String by project val usedDetektVersion: String by project val junitEngineVersion: String by project val junitPlatformVersion: String by project val spekVersion: String by project dependencies { implementation("io.gitlab.arturbosch.detekt:detekt-api:$usedDetektVersion") testImplementation("io.gitlab.arturbosch.detekt:detekt-test:$usedDetektVersion") testImplementation("org.junit.jupiter:junit-jupiter-api:$junitEngineVersion") testImplementation(kotlin("test")) testImplementation(kotlin("reflect")) testImplementation("org.assertj:assertj-core:$assertjVersion") testImplementation("org.jetbrains.spek:spek-api:$spekVersion") testImplementation("org.jetbrains.spek:spek-subject-extension:$spekVersion") testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitEngineVersion") testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion") testRuntimeOnly("org.jetbrains.spek:spek-junit-platform-engine:$spekVersion") }
5fac6965ad637504d1ef01ef9d954668a1476472
news/non-contiguous-arrays.rst
news/non-contiguous-arrays.rst
New features ------------ * <news item> Deprecations ------------ * <news item> Exposing HDF5 functions ----------------------- * <news item> Bug fixes --------- * Correctly store non-contiguous arrays, such as numpy slices. Resolves https://github.com/h5py/h5py/issues/1649 Building h5py ------------- * <news item> Development ----------- * <news item>
New features ------------ * <news item> Deprecations ------------ * <news item> Exposing HDF5 functions ----------------------- * <news item> Bug fixes --------- * Fix the storage of non-contiguous arrays, such as numpy slices, as HDF5 vlen data. Resolves https://github.com/h5py/h5py/issues/1649 Building h5py ------------- * <news item> Development ----------- * <news item>
Add news entry regarding non-contiguous arrays storage
Add news entry regarding non-contiguous arrays storage
reStructuredText
bsd-3-clause
h5py/h5py,h5py/h5py,h5py/h5py
restructuredtext
## Code Before: New features ------------ * <news item> Deprecations ------------ * <news item> Exposing HDF5 functions ----------------------- * <news item> Bug fixes --------- * Correctly store non-contiguous arrays, such as numpy slices. Resolves https://github.com/h5py/h5py/issues/1649 Building h5py ------------- * <news item> Development ----------- * <news item> ## Instruction: Add news entry regarding non-contiguous arrays storage ## Code After: New features ------------ * <news item> Deprecations ------------ * <news item> Exposing HDF5 functions ----------------------- * <news item> Bug fixes --------- * Fix the storage of non-contiguous arrays, such as numpy slices, as HDF5 vlen data. Resolves https://github.com/h5py/h5py/issues/1649 Building h5py ------------- * <news item> Development ----------- * <news item>
fdd4107fe29b8e28a1b4283449a11b32eb2758b7
spec/feature/login_register_spec.rb
spec/feature/login_register_spec.rb
require 'rails_helper' feature 'Signing in' do background do @user = create(:user) end scenario 'Signing in with correct credentials' do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: @user.password end click_button 'Log in' expect(page).to have_content 'Signed in successfully' end scenario 'Signing in with correct credentials' do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: "incorrect_#{@user.password}" end click_button 'Log in' expect(page).to have_content 'Invalid Email or password' end end
require 'rails_helper' feature 'Signing in' do background do @user = create(:user) end given(:sign_in) do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: @user.password end click_button 'Log in' end scenario 'succeeds with correct credentials' do sign_in expect(page).to have_content 'Signed in successfully' end scenario 'fails with incorrect credentials' do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: "incorrect_#{@user.password}" end click_button 'Log in' expect(page).to have_content 'Invalid Email or password' end scenario 'Sign in redirects to dashboard overview' do sign_in expect(page).to have_current_path(dashboard_overview_path) end end
Improve descriptions for sign in tests
Improve descriptions for sign in tests
Ruby
agpl-3.0
payloadtech/mailpenny,payloadtech/mailpenny,payloadtech/mailpenny
ruby
## Code Before: require 'rails_helper' feature 'Signing in' do background do @user = create(:user) end scenario 'Signing in with correct credentials' do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: @user.password end click_button 'Log in' expect(page).to have_content 'Signed in successfully' end scenario 'Signing in with correct credentials' do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: "incorrect_#{@user.password}" end click_button 'Log in' expect(page).to have_content 'Invalid Email or password' end end ## Instruction: Improve descriptions for sign in tests ## Code After: require 'rails_helper' feature 'Signing in' do background do @user = create(:user) end given(:sign_in) do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: @user.password end click_button 'Log in' end scenario 'succeeds with correct credentials' do sign_in expect(page).to have_content 'Signed in successfully' end scenario 'fails with incorrect credentials' do visit '/login' within('#new_user') do fill_in 'Email', with: @user.email fill_in 'Password', with: "incorrect_#{@user.password}" end click_button 'Log in' expect(page).to have_content 'Invalid Email or password' end scenario 'Sign in redirects to dashboard overview' do sign_in expect(page).to have_current_path(dashboard_overview_path) end end
7b441306a3d317091ebea458b5b5ff4b8368638d
app/src/main/java/com/kickstarter/libs/utils/ObjectUtils.java
app/src/main/java/com/kickstarter/libs/utils/ObjectUtils.java
package com.kickstarter.libs.utils; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import rx.functions.Func1; public class ObjectUtils { private ObjectUtils(){} public static boolean isNull(@Nullable final Object object) { return object == null; } public static boolean isNotNull(@Nullable final Object object) { return object != null; } /** * Returns the first non-`null` value of its arguments. */ @NonNull public static <T> T coalesce(@Nullable final T value, @NonNull final T theDefault) { if (value != null) { return value; } return theDefault; } /** * Returns a function `T -> T` that coalesces values with `theDefault`. */ @NonNull public static <T> Func1<T, T> coalesceWith(@NonNull final T theDefault) { return (value) -> ObjectUtils.coalesce(value, theDefault); } }
package com.kickstarter.libs.utils; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import rx.functions.Func1; public class ObjectUtils { private ObjectUtils(){} public static boolean isNull(@Nullable final Object object) { return object == null; } public static boolean isNotNull(@Nullable final Object object) { return object != null; } /** * Returns the first non-`null` value of its arguments. */ @NonNull public static <T> T coalesce(@Nullable final T value, @NonNull final T theDefault) { if (value != null) { return value; } return theDefault; } /** * Returns a function `T -> T` that coalesces values with `theDefault`. */ @NonNull public static <T> Func1<T, T> coalesceWith(@NonNull final T theDefault) { return (value) -> ObjectUtils.coalesce(value, theDefault); } /** * Converts an {@link Integer} to a {@link String}, or null of the integer is also null. */ public static @Nullable String toString(@Nullable final Integer n) { if (n != null) { return Integer.toString(n); } return null; } /** * Converts a {@link Long} to a {@link String}, or null of the long is also null. */ public static @Nullable String toString(@Nullable final Long n) { if (n != null) { return Long.toString(n); } return null; } /** * Converts a {@link Float} to a {@link String}, or null of the float is also null. */ public static @Nullable String toString(@Nullable final Float n) { if (n != null) { return Float.toString(n); } return null; } /** * Converts a {@link Double} to a {@link String}, or null of the double is also null. */ public static @Nullable String toString(@Nullable final Double n) { if (n != null) { return Double.toString(n); } return null; } }
Add some helpers to shortcut converting numbers to strings
Add some helpers to shortcut converting numbers to strings
Java
apache-2.0
kickstarter/android-oss,kickstarter/android-oss,kickstarter/android-oss,kickstarter/android-oss
java
## Code Before: package com.kickstarter.libs.utils; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import rx.functions.Func1; public class ObjectUtils { private ObjectUtils(){} public static boolean isNull(@Nullable final Object object) { return object == null; } public static boolean isNotNull(@Nullable final Object object) { return object != null; } /** * Returns the first non-`null` value of its arguments. */ @NonNull public static <T> T coalesce(@Nullable final T value, @NonNull final T theDefault) { if (value != null) { return value; } return theDefault; } /** * Returns a function `T -> T` that coalesces values with `theDefault`. */ @NonNull public static <T> Func1<T, T> coalesceWith(@NonNull final T theDefault) { return (value) -> ObjectUtils.coalesce(value, theDefault); } } ## Instruction: Add some helpers to shortcut converting numbers to strings ## Code After: package com.kickstarter.libs.utils; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import rx.functions.Func1; public class ObjectUtils { private ObjectUtils(){} public static boolean isNull(@Nullable final Object object) { return object == null; } public static boolean isNotNull(@Nullable final Object object) { return object != null; } /** * Returns the first non-`null` value of its arguments. */ @NonNull public static <T> T coalesce(@Nullable final T value, @NonNull final T theDefault) { if (value != null) { return value; } return theDefault; } /** * Returns a function `T -> T` that coalesces values with `theDefault`. */ @NonNull public static <T> Func1<T, T> coalesceWith(@NonNull final T theDefault) { return (value) -> ObjectUtils.coalesce(value, theDefault); } /** * Converts an {@link Integer} to a {@link String}, or null of the integer is also null. */ public static @Nullable String toString(@Nullable final Integer n) { if (n != null) { return Integer.toString(n); } return null; } /** * Converts a {@link Long} to a {@link String}, or null of the long is also null. */ public static @Nullable String toString(@Nullable final Long n) { if (n != null) { return Long.toString(n); } return null; } /** * Converts a {@link Float} to a {@link String}, or null of the float is also null. */ public static @Nullable String toString(@Nullable final Float n) { if (n != null) { return Float.toString(n); } return null; } /** * Converts a {@link Double} to a {@link String}, or null of the double is also null. */ public static @Nullable String toString(@Nullable final Double n) { if (n != null) { return Double.toString(n); } return null; } }
9072e436de87305bcb1c5a2f8ba5afb04f22b785
.gitlab-ci.yml
.gitlab-ci.yml
codequality: stage: test script: - apt-get update; apt-get -y install wget; apt-get -y install unzip - wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492-linux.zip; unzip sonar-scanner-cli-3.3.0.1492-linux.zip - sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -Dsonar.host.url=http://192.168.5.2:9000 -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.projectVersion=$CI_BUILD_ID -Dsonar.branch=$CI_BUILD_REF_NAME
codequality: stage: test script: - apt-get update; apt-get -y install wget; apt-get -y install unzip - wget ${SONAR_PATH}/${SONAR_VERSION}.zip; unzip ${SONAR_VERSION}.zip - ${SONAR_VERSION}/bin/sonar-scanner -Dsonar.host.url=${SONAR_SCANNER} -Dsonar.projectKey=${SONAR_PROJECT} -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.projectVersion=$CI_BUILD_ID -Dsonar.branch=$CI_BUILD_REF_NAME
Add project key, use variables
Add project key, use variables
YAML
cc0-1.0
cbarrac/PiWeather,cbarrac/PiWeather
yaml
## Code Before: codequality: stage: test script: - apt-get update; apt-get -y install wget; apt-get -y install unzip - wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492-linux.zip; unzip sonar-scanner-cli-3.3.0.1492-linux.zip - sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -Dsonar.host.url=http://192.168.5.2:9000 -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.projectVersion=$CI_BUILD_ID -Dsonar.branch=$CI_BUILD_REF_NAME ## Instruction: Add project key, use variables ## Code After: codequality: stage: test script: - apt-get update; apt-get -y install wget; apt-get -y install unzip - wget ${SONAR_PATH}/${SONAR_VERSION}.zip; unzip ${SONAR_VERSION}.zip - ${SONAR_VERSION}/bin/sonar-scanner -Dsonar.host.url=${SONAR_SCANNER} -Dsonar.projectKey=${SONAR_PROJECT} -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.projectVersion=$CI_BUILD_ID -Dsonar.branch=$CI_BUILD_REF_NAME
be528224ef382f1388150be9e8e787c17ce1b708
ava/defaults/nlp/processors/index.js
ava/defaults/nlp/processors/index.js
'use strict'; export Taxonomy from './processor.taxonomy'; export Compromise from './processor.compromise'; export Relations from './processor.relations'; export Sentiment from './processor.sentiment';
'use strict'; import Alchemy from './processor.alchemy'; import Compromise from './processor.compromise'; import Relations from './processor.relations'; import Salient from './processor.salient'; export { Alchemy, Compromise, Relations, Salient };
Fix how we export processors
Fix how we export processors
JavaScript
mit
ava-ia/core
javascript
## Code Before: 'use strict'; export Taxonomy from './processor.taxonomy'; export Compromise from './processor.compromise'; export Relations from './processor.relations'; export Sentiment from './processor.sentiment'; ## Instruction: Fix how we export processors ## Code After: 'use strict'; import Alchemy from './processor.alchemy'; import Compromise from './processor.compromise'; import Relations from './processor.relations'; import Salient from './processor.salient'; export { Alchemy, Compromise, Relations, Salient };
ac4f8061b17af2ced00dab8b690330f81ed75770
app/views/user/edit-movie.erb
app/views/user/edit-movie.erb
<div id="edit-movie"> <form action='/user/<%= @user.id %>/<%= @movie.name %>' method="POST"> <input type="hidden" name="_method" value="PUT"> <input type="text" name="movie[name]" value="<%= @movie.name %>"><br> <p>ADD DROP DOWN FOR GENRE<p> <input type="text" name="movie[description]" value="<%= @movie.description %>"><br> <input type="text" name="movie[rating]" value="<%= @movie.rating %>"><br> <input type="submit"> </form> </div>
<div id="edit-movie"> <form action='/user/<%= @user.id %>/<%= @movie.name %>' method="POST"> <input type="hidden" name="_method" value="PUT"> Name: <input type="text" name="movie[name]" value="<%= @movie.name %>"><br> Genre:<input type="text" name="genre[name]" value="<%= @movie.genres.first.name %>"><br> Description: <input type="text" name="movie[description]" value="<%= @movie.description %>"><br> <input type="text" name="movie[rating]" value="<%= @movie.rating %>"><br> <input type="submit"> </form> </div>
Add field that actually allows user to edit the movie genre.
Add field that actually allows user to edit the movie genre.
HTML+ERB
mit
SputterPuttRedux/phase_3_audition,SputterPuttRedux/phase_3_audition
html+erb
## Code Before: <div id="edit-movie"> <form action='/user/<%= @user.id %>/<%= @movie.name %>' method="POST"> <input type="hidden" name="_method" value="PUT"> <input type="text" name="movie[name]" value="<%= @movie.name %>"><br> <p>ADD DROP DOWN FOR GENRE<p> <input type="text" name="movie[description]" value="<%= @movie.description %>"><br> <input type="text" name="movie[rating]" value="<%= @movie.rating %>"><br> <input type="submit"> </form> </div> ## Instruction: Add field that actually allows user to edit the movie genre. ## Code After: <div id="edit-movie"> <form action='/user/<%= @user.id %>/<%= @movie.name %>' method="POST"> <input type="hidden" name="_method" value="PUT"> Name: <input type="text" name="movie[name]" value="<%= @movie.name %>"><br> Genre:<input type="text" name="genre[name]" value="<%= @movie.genres.first.name %>"><br> Description: <input type="text" name="movie[description]" value="<%= @movie.description %>"><br> <input type="text" name="movie[rating]" value="<%= @movie.rating %>"><br> <input type="submit"> </form> </div>
667a3d2803529c5b14fd17c6877961646615f2fd
python2/raygun4py/middleware/wsgi.py
python2/raygun4py/middleware/wsgi.py
import logging from raygun4py import raygunprovider log = logging.getLogger(__name__) class Provider(object): def __init__(self, app, apiKey): self.app = app self.sender = raygunprovider.RaygunSender(apiKey) def __call__(self, environ, start_response): if not self.sender: log.error("Raygun-WSGI: Cannot send as provider not attached") try: chunk = self.app(environ, start_response) except Exception as e: request = self.build_request(environ) self.sender.send_exception(exception=e, request=request) raise try: for event in chunk: yield event except Exception as e: request = build_request(environ) self.sender.send_exception(exception=e, request=request) raise finally: if chunk and hasattr(chunk, 'close') and callable(chunk.close): try: chunk.close() except Exception as e: request = build_request(environ) self.send_exception(exception=e, request=request) def build_request(self, environ): request = {} try: request = { 'httpMethod': environ['REQUEST_METHOD'], 'url': environ['PATH_INFO'], 'ipAddress': environ['REMOTE_ADDR'], 'hostName': environ['HTTP_HOST'].replace(' ', ''), 'queryString': environ['QUERY_STRING'], 'headers': {}, 'form': {}, 'rawData': {} } except Exception: pass for key, value in environ.items(): if key.startswith('HTTP_'): request['headers'][key] = value return request
import logging from raygun4py import raygunprovider log = logging.getLogger(__name__) class Provider(object): def __init__(self, app, apiKey): self.app = app self.sender = raygunprovider.RaygunSender(apiKey) def __call__(self, environ, start_response): if not self.sender: log.error("Raygun-WSGI: Cannot send as provider not attached") iterable = None try: iterable = self.app(environ, start_response) for event in iterable: yield event except Exception as e: request = self.build_request(environ) self.sender.send_exception(exception=e, request=request) raise finally: if hasattr(iterable, 'close'): try: iterable.close() except Exception as e: request = self.build_request(environ) self.sender.send_exception(exception=e, request=request) raise def build_request(self, environ): request = {} try: request = { 'httpMethod': environ['REQUEST_METHOD'], 'url': environ['PATH_INFO'], 'ipAddress': environ['REMOTE_ADDR'], 'hostName': environ['HTTP_HOST'].replace(' ', ''), 'queryString': environ['QUERY_STRING'], 'headers': {}, 'form': {}, 'rawData': {} } except Exception: pass for key, value in environ.items(): if key.startswith('HTTP_'): request['headers'][key] = value return request
Fix WSGI middleware to call close() on the iterable instead of checking if it's callable, and reraising the exception if one results as per spec. Also call sender correctly
Fix WSGI middleware to call close() on the iterable instead of checking if it's callable, and reraising the exception if one results as per spec. Also call sender correctly
Python
mit
MindscapeHQ/raygun4py
python
## Code Before: import logging from raygun4py import raygunprovider log = logging.getLogger(__name__) class Provider(object): def __init__(self, app, apiKey): self.app = app self.sender = raygunprovider.RaygunSender(apiKey) def __call__(self, environ, start_response): if not self.sender: log.error("Raygun-WSGI: Cannot send as provider not attached") try: chunk = self.app(environ, start_response) except Exception as e: request = self.build_request(environ) self.sender.send_exception(exception=e, request=request) raise try: for event in chunk: yield event except Exception as e: request = build_request(environ) self.sender.send_exception(exception=e, request=request) raise finally: if chunk and hasattr(chunk, 'close') and callable(chunk.close): try: chunk.close() except Exception as e: request = build_request(environ) self.send_exception(exception=e, request=request) def build_request(self, environ): request = {} try: request = { 'httpMethod': environ['REQUEST_METHOD'], 'url': environ['PATH_INFO'], 'ipAddress': environ['REMOTE_ADDR'], 'hostName': environ['HTTP_HOST'].replace(' ', ''), 'queryString': environ['QUERY_STRING'], 'headers': {}, 'form': {}, 'rawData': {} } except Exception: pass for key, value in environ.items(): if key.startswith('HTTP_'): request['headers'][key] = value return request ## Instruction: Fix WSGI middleware to call close() on the iterable instead of checking if it's callable, and reraising the exception if one results as per spec. Also call sender correctly ## Code After: import logging from raygun4py import raygunprovider log = logging.getLogger(__name__) class Provider(object): def __init__(self, app, apiKey): self.app = app self.sender = raygunprovider.RaygunSender(apiKey) def __call__(self, environ, start_response): if not self.sender: log.error("Raygun-WSGI: Cannot send as provider not attached") iterable = None try: iterable = self.app(environ, start_response) for event in iterable: yield event except Exception as e: request = self.build_request(environ) self.sender.send_exception(exception=e, request=request) raise finally: if hasattr(iterable, 'close'): try: iterable.close() except Exception as e: request = self.build_request(environ) self.sender.send_exception(exception=e, request=request) raise def build_request(self, environ): request = {} try: request = { 'httpMethod': environ['REQUEST_METHOD'], 'url': environ['PATH_INFO'], 'ipAddress': environ['REMOTE_ADDR'], 'hostName': environ['HTTP_HOST'].replace(' ', ''), 'queryString': environ['QUERY_STRING'], 'headers': {}, 'form': {}, 'rawData': {} } except Exception: pass for key, value in environ.items(): if key.startswith('HTTP_'): request['headers'][key] = value return request
5b810fc95d06567c1459e68d90f592b5687673c9
spec/factories/customer_lead_factory.rb
spec/factories/customer_lead_factory.rb
FactoryGirl.define do sequence(:lead_email) { |count| "lead#{count}@example.com" } factory :customer_lead do email { FactoryGirl.generate(:lead_email) } name "Almighty Customer" phone_number "+919845643" after_build {|cl| business = cl.business || FactoryGirl.create(:business) cl.business = business cl.product ||= FactoryGirl.create(:product, business: business) } end end
FactoryGirl.define do sequence(:lead_email) { |count| "lead#{count}@example.com" } factory :customer_lead do email { FactoryGirl.generate(:lead_email) } name "Almighty Customer" phone_number "+919845643" message "dark and dusty roads." after_build {|cl| business = cl.business || FactoryGirl.create(:business) cl.business = business cl.product ||= FactoryGirl.create(:product, business: business) } end end
Add message to customer lead factory
Add message to customer lead factory
Ruby
mit
Prizzm/mightbuy-models
ruby
## Code Before: FactoryGirl.define do sequence(:lead_email) { |count| "lead#{count}@example.com" } factory :customer_lead do email { FactoryGirl.generate(:lead_email) } name "Almighty Customer" phone_number "+919845643" after_build {|cl| business = cl.business || FactoryGirl.create(:business) cl.business = business cl.product ||= FactoryGirl.create(:product, business: business) } end end ## Instruction: Add message to customer lead factory ## Code After: FactoryGirl.define do sequence(:lead_email) { |count| "lead#{count}@example.com" } factory :customer_lead do email { FactoryGirl.generate(:lead_email) } name "Almighty Customer" phone_number "+919845643" message "dark and dusty roads." after_build {|cl| business = cl.business || FactoryGirl.create(:business) cl.business = business cl.product ||= FactoryGirl.create(:product, business: business) } end end
d444b68aa120d2d2a208d6a520edf980823fa4b9
src/components/modules/outside-click-handler/index.js
src/components/modules/outside-click-handler/index.js
/** * Outside click document */ import React from 'react'; export default class OutsideClickHandler extends React.Component { static propTypes = { onOutsideClick: React.PropTypes.func }; componentDidMount() { document.addEventListener('click', this.handleDocumentClick.bind(this), false); } componentWillUnmount() { document.removeEventListener('click', this.handleDocumentClick.bind(this), false); } handleDocumentClick(event) { if (this.props.onOutsideClick !== null) { return this.props.onOutsideClick(event); } } handleMyClick(event) { event.stopPropagation(); event.nativeEvent.stopImmediatePropagation(); } render() { return ( <div onClick={this.handleMyClick.bind(this)}> {this.props.children} </div> ); } }
/** * Outside click document */ import React from 'react'; export default class OutsideClickHandler extends React.Component { static propTypes = { onOutsideClick: React.PropTypes.func }; componentDidMount() { document.addEventListener('click', this.handleDocumentClick, false); } componentWillUnmount() { document.removeEventListener('click', this.handleDocumentClick, false); } handleDocumentClick = (event) => { if (this.props.onOutsideClick === null) { return; } return this.props.onOutsideClick(event); } handleMyClick = (event) => { event.stopPropagation(); event.nativeEvent.stopImmediatePropagation(); } render() { return ( <div onClick={this.handleMyClick}> {this.props.children} </div> ); } }
Fix remove event listener in OutsideClickHandler
Fix remove event listener in OutsideClickHandler
JavaScript
mit
ngsru/semantic-react,ngsru/semantic-react,aphofstede/semantic-react,aphofstede/semantic-react,hallister/semantic-react,asvetliakov/semantic-react,hallister/semantic-react,asvetliakov/semantic-react
javascript
## Code Before: /** * Outside click document */ import React from 'react'; export default class OutsideClickHandler extends React.Component { static propTypes = { onOutsideClick: React.PropTypes.func }; componentDidMount() { document.addEventListener('click', this.handleDocumentClick.bind(this), false); } componentWillUnmount() { document.removeEventListener('click', this.handleDocumentClick.bind(this), false); } handleDocumentClick(event) { if (this.props.onOutsideClick !== null) { return this.props.onOutsideClick(event); } } handleMyClick(event) { event.stopPropagation(); event.nativeEvent.stopImmediatePropagation(); } render() { return ( <div onClick={this.handleMyClick.bind(this)}> {this.props.children} </div> ); } } ## Instruction: Fix remove event listener in OutsideClickHandler ## Code After: /** * Outside click document */ import React from 'react'; export default class OutsideClickHandler extends React.Component { static propTypes = { onOutsideClick: React.PropTypes.func }; componentDidMount() { document.addEventListener('click', this.handleDocumentClick, false); } componentWillUnmount() { document.removeEventListener('click', this.handleDocumentClick, false); } handleDocumentClick = (event) => { if (this.props.onOutsideClick === null) { return; } return this.props.onOutsideClick(event); } handleMyClick = (event) => { event.stopPropagation(); event.nativeEvent.stopImmediatePropagation(); } render() { return ( <div onClick={this.handleMyClick}> {this.props.children} </div> ); } }
d8c4dc4e1c7b41592341581ac51e209e7f10d066
config/jobs/kubernetes/publishing-bot/publishing-bot-presubmits.yaml
config/jobs/kubernetes/publishing-bot/publishing-bot-presubmits.yaml
presubmits: kubernetes/publishing-bot: - name: pull-publishing-bot-build always_run: true decorate: true path_alias: k8s.io/publishing-bot spec: containers: - image: golang:1.13 command: - make annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: build kubernetes/kubernetes: - name: pull-publishing-bot-validate always_run: false decorate: true path_alias: k8s.io/kubernetes skip_report: false optional: true run_if_changed: '^staging/publishing.*$' extra_refs: - org: kubernetes repo: publishing-bot base_ref: master path_alias: k8s.io/publishing-bot spec: containers: - image: gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-master command: - go args: - run - k8s.io/publishing-bot/cmd/validate-rules - /home/prow/go/src/k8s.io/kubernetes/staging/publishing/rules.yaml annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: validate
presubmits: kubernetes/publishing-bot: - name: pull-publishing-bot-build always_run: true decorate: true path_alias: k8s.io/publishing-bot spec: containers: - image: golang:1.13 command: - make annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: build kubernetes/kubernetes: - name: pull-publishing-bot-validate always_run: false decorate: true path_alias: k8s.io/kubernetes skip_report: false optional: true run_if_changed: '^staging/publishing.*$' extra_refs: - org: kubernetes repo: publishing-bot base_ref: master path_alias: k8s.io/publishing-bot spec: containers: - image: golang:1.13 command: - go args: - run - k8s.io/publishing-bot/cmd/validate-rules - /home/prow/go/src/k8s.io/kubernetes/staging/publishing/rules.yaml annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: validate
Use go 1.13 for pull-publishing-bot-validate
Use go 1.13 for pull-publishing-bot-validate With go 1.14: ``` $ go run k8s.io/publishing-bot/cmd/validate-rules ./staging/publishing/rules.yaml package k8s.io/publishing-bot/cmd/validate-rules: cannot find package "." in: /home/nikhita/go/src/k8s.io/kubernetes/vendor/k8s.io/publishing-bot/cmd/validate-rules ``` With go 1.13: ``` go: finding k8s.io/publishing-bot latest I0708 03:03:16.384590 14888 rules.go:89] loading rules file : ./staging/publishing/rules.yaml I0708 03:03:16.395696 14888 rules.go:125] validating repository order I0708 03:03:16.395848 14888 main.go:37] validation successful ```
YAML
apache-2.0
kubernetes/test-infra,fejta/test-infra,BenTheElder/test-infra,kubernetes/test-infra,brahmaroutu/test-infra,monopole/test-infra,kubernetes/test-infra,cjwagner/test-infra,monopole/test-infra,dims/test-infra,cjwagner/test-infra,cjwagner/test-infra,fejta/test-infra,kubernetes/test-infra,pwittrock/test-infra,BenTheElder/test-infra,fejta/test-infra,cblecker/test-infra,michelle192837/test-infra,fejta/test-infra,fejta/test-infra,cjwagner/test-infra,pwittrock/test-infra,BenTheElder/test-infra,BenTheElder/test-infra,dims/test-infra,jessfraz/test-infra,dims/test-infra,kubernetes/test-infra,pwittrock/test-infra,dims/test-infra,pwittrock/test-infra,michelle192837/test-infra,brahmaroutu/test-infra,michelle192837/test-infra,brahmaroutu/test-infra,jessfraz/test-infra,brahmaroutu/test-infra,cblecker/test-infra,cjwagner/test-infra,brahmaroutu/test-infra,michelle192837/test-infra,cblecker/test-infra,fejta/test-infra,cblecker/test-infra,michelle192837/test-infra,jessfraz/test-infra,cblecker/test-infra,brahmaroutu/test-infra,jessfraz/test-infra,michelle192837/test-infra,pwittrock/test-infra,jessfraz/test-infra,jessfraz/test-infra,monopole/test-infra,BenTheElder/test-infra,monopole/test-infra,BenTheElder/test-infra,monopole/test-infra,cblecker/test-infra,kubernetes/test-infra,monopole/test-infra,dims/test-infra,dims/test-infra,cjwagner/test-infra
yaml
## Code Before: presubmits: kubernetes/publishing-bot: - name: pull-publishing-bot-build always_run: true decorate: true path_alias: k8s.io/publishing-bot spec: containers: - image: golang:1.13 command: - make annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: build kubernetes/kubernetes: - name: pull-publishing-bot-validate always_run: false decorate: true path_alias: k8s.io/kubernetes skip_report: false optional: true run_if_changed: '^staging/publishing.*$' extra_refs: - org: kubernetes repo: publishing-bot base_ref: master path_alias: k8s.io/publishing-bot spec: containers: - image: gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-master command: - go args: - run - k8s.io/publishing-bot/cmd/validate-rules - /home/prow/go/src/k8s.io/kubernetes/staging/publishing/rules.yaml annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: validate ## Instruction: Use go 1.13 for pull-publishing-bot-validate With go 1.14: ``` $ go run k8s.io/publishing-bot/cmd/validate-rules ./staging/publishing/rules.yaml package k8s.io/publishing-bot/cmd/validate-rules: cannot find package "." in: /home/nikhita/go/src/k8s.io/kubernetes/vendor/k8s.io/publishing-bot/cmd/validate-rules ``` With go 1.13: ``` go: finding k8s.io/publishing-bot latest I0708 03:03:16.384590 14888 rules.go:89] loading rules file : ./staging/publishing/rules.yaml I0708 03:03:16.395696 14888 rules.go:125] validating repository order I0708 03:03:16.395848 14888 main.go:37] validation successful ``` ## Code After: presubmits: kubernetes/publishing-bot: - name: pull-publishing-bot-build always_run: true decorate: true path_alias: k8s.io/publishing-bot spec: containers: - image: golang:1.13 command: - make annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: build kubernetes/kubernetes: - name: pull-publishing-bot-validate always_run: false decorate: true path_alias: k8s.io/kubernetes skip_report: false optional: true run_if_changed: '^staging/publishing.*$' extra_refs: - org: kubernetes repo: publishing-bot base_ref: master path_alias: k8s.io/publishing-bot spec: containers: - image: golang:1.13 command: - go args: - run - k8s.io/publishing-bot/cmd/validate-rules - /home/prow/go/src/k8s.io/kubernetes/staging/publishing/rules.yaml annotations: testgrid-dashboards: sig-release-publishing-bot testgrid-tab-name: validate
879a190af72d01ee373b5b2989125a5f6fabda46
src/main/resources/assets/frogcraftrebirth/models/block/Liquefier.json
src/main/resources/assets/frogcraftrebirth/models/block/Liquefier.json
{ "parent": "block/cube", "textures": { "partical": "frogcraftrebirth:blocks/IndustrialDevice_Side", "down": "frogcraftrebirth:blocks/IndustrialDevice_Top", "up": "frogcraftrebirth:blocks/IndustrialDevice_Top", "north": "frogcraftrebirth:blocks/Liquefier", "east": "frogcraftrebirth:blocks/IndustrialDevice_Side", "south": "frogcraftrebirth:blocks/IndustrialDevice_Side", "west": "frogcraftrebirth:blocks/IndustrialDevice_Side" } }
{ "parent": "block/cube", "textures": { "partical": "frogcraftrebirth:blocks/Liquefier", "down": "frogcraftrebirth:blocks/IndustrialDevice_Top", "up": "frogcraftrebirth:blocks/IndustrialDevice_Top", "north": "frogcraftrebirth:blocks/Liquefier", "east": "frogcraftrebirth:blocks/Liquefier", "south": "frogcraftrebirth:blocks/Liquefier", "west": "frogcraftrebirth:blocks/Liquefier" } }
Change texture based on legacy documentation
Change texture based on legacy documentation Ref: http://www.mcmod.cn/item/4706.html
JSON
mit
FrogCraft-Rebirth/FrogCraft-Rebirth
json
## Code Before: { "parent": "block/cube", "textures": { "partical": "frogcraftrebirth:blocks/IndustrialDevice_Side", "down": "frogcraftrebirth:blocks/IndustrialDevice_Top", "up": "frogcraftrebirth:blocks/IndustrialDevice_Top", "north": "frogcraftrebirth:blocks/Liquefier", "east": "frogcraftrebirth:blocks/IndustrialDevice_Side", "south": "frogcraftrebirth:blocks/IndustrialDevice_Side", "west": "frogcraftrebirth:blocks/IndustrialDevice_Side" } } ## Instruction: Change texture based on legacy documentation Ref: http://www.mcmod.cn/item/4706.html ## Code After: { "parent": "block/cube", "textures": { "partical": "frogcraftrebirth:blocks/Liquefier", "down": "frogcraftrebirth:blocks/IndustrialDevice_Top", "up": "frogcraftrebirth:blocks/IndustrialDevice_Top", "north": "frogcraftrebirth:blocks/Liquefier", "east": "frogcraftrebirth:blocks/Liquefier", "south": "frogcraftrebirth:blocks/Liquefier", "west": "frogcraftrebirth:blocks/Liquefier" } }
1f39df475aebc0d2e156795dd4c1664fd2b2a44e
resources/public/script/foreclojure.js
resources/public/script/foreclojure.js
$(document).ready(function() { configureDataTables(); configureCodeBox(); }); function configureDataTables(){ $('#problem-table').dataTable( { "iDisplayLength": 25, "aaSorting": [[ 3, "desc" ]], "aoColumns": [ null, null, null, null ] } ); $('#user-table').dataTable( { "iDisplayLength":25, "aaSorting": [[ 0, "asc" ]], "aoColumns": [ null, null, null ] } ); } function configureCodeBox(){ //For no javascript version we have the code-box text area //If we have javascript on then we remove it and replace it with //the proper div $('#code-box').replaceWith("<div id=\"code-div\"> <pre id=\"editor\"></pre></div>"); var hiddenCodeInput = "<input type=\"hidden\" value=\"blank\" name=\"code\" id=\"code\">"; $(hiddenCodeInput).insertBefore('#id'); if ($("#run-button").length){ var editor = ace.edit("editor"); editor.setTheme("ace/theme/textmate"); var ClojureMode = require("ace/mode/clojure").Mode; editor.getSession().setMode(new ClojureMode()); document.getElementById('editor').style.fontSize='13px'; $("#run-button").click(function(){ var text = editor.getSession().getValue(); $('#code').val(text); }); } }
$(document).ready(function() { configureDataTables(); configureCodeBox(); }); function configureDataTables(){ $('#problem-table').dataTable( { "iDisplayLength": 25, "aaSorting": [[ 3, "desc" ]], "aoColumns": [ null, null, null, null ] } ); $('#user-table').dataTable( { "iDisplayLength":25, "aaSorting": [[ 0, "asc" ]], "aoColumns": [ null, null, null ] } ); } function configureCodeBox(){ //For no javascript version we have the code-box text area //If we have javascript on then we remove it and replace it with //the proper div var oldBox = $('#code-box'); oldBox.replaceWith("<div id=\"code-div\"> <pre id=\"editor\">" + oldBox.val() + "</pre></div>"); var hiddenCodeInput = "<input type=\"hidden\" value=\"blank\" name=\"code\" id=\"code\">"; $(hiddenCodeInput).insertBefore('#id'); if ($("#run-button").length){ var editor = ace.edit("editor"); editor.setTheme("ace/theme/textmate"); var ClojureMode = require("ace/mode/clojure").Mode; editor.getSession().setMode(new ClojureMode()); document.getElementById('editor').style.fontSize='13px'; $("#run-button").click(function(){ var text = editor.getSession().getValue(); $('#code').val(text); }); } }
Make Ace save the user's code on failures
Make Ace save the user's code on failures
JavaScript
epl-1.0
grnhse/4clojure,grnhse/4clojure,tclamb/4clojure,amcnamara/4clojure,devn/4clojure,amcnamara/4clojure,tclamb/4clojure,devn/4clojure,rowhit/4clojure,4clojure/4clojure,4clojure/4clojure,gfredericks/4clojure,rowhit/4clojure,gfredericks/4clojure
javascript
## Code Before: $(document).ready(function() { configureDataTables(); configureCodeBox(); }); function configureDataTables(){ $('#problem-table').dataTable( { "iDisplayLength": 25, "aaSorting": [[ 3, "desc" ]], "aoColumns": [ null, null, null, null ] } ); $('#user-table').dataTable( { "iDisplayLength":25, "aaSorting": [[ 0, "asc" ]], "aoColumns": [ null, null, null ] } ); } function configureCodeBox(){ //For no javascript version we have the code-box text area //If we have javascript on then we remove it and replace it with //the proper div $('#code-box').replaceWith("<div id=\"code-div\"> <pre id=\"editor\"></pre></div>"); var hiddenCodeInput = "<input type=\"hidden\" value=\"blank\" name=\"code\" id=\"code\">"; $(hiddenCodeInput).insertBefore('#id'); if ($("#run-button").length){ var editor = ace.edit("editor"); editor.setTheme("ace/theme/textmate"); var ClojureMode = require("ace/mode/clojure").Mode; editor.getSession().setMode(new ClojureMode()); document.getElementById('editor').style.fontSize='13px'; $("#run-button").click(function(){ var text = editor.getSession().getValue(); $('#code').val(text); }); } } ## Instruction: Make Ace save the user's code on failures ## Code After: $(document).ready(function() { configureDataTables(); configureCodeBox(); }); function configureDataTables(){ $('#problem-table').dataTable( { "iDisplayLength": 25, "aaSorting": [[ 3, "desc" ]], "aoColumns": [ null, null, null, null ] } ); $('#user-table').dataTable( { "iDisplayLength":25, "aaSorting": [[ 0, "asc" ]], "aoColumns": [ null, null, null ] } ); } function configureCodeBox(){ //For no javascript version we have the code-box text area //If we have javascript on then we remove it and replace it with //the proper div var oldBox = $('#code-box'); oldBox.replaceWith("<div id=\"code-div\"> <pre id=\"editor\">" + oldBox.val() + "</pre></div>"); var hiddenCodeInput = "<input type=\"hidden\" value=\"blank\" name=\"code\" id=\"code\">"; $(hiddenCodeInput).insertBefore('#id'); if ($("#run-button").length){ var editor = ace.edit("editor"); editor.setTheme("ace/theme/textmate"); var ClojureMode = require("ace/mode/clojure").Mode; editor.getSession().setMode(new ClojureMode()); document.getElementById('editor').style.fontSize='13px'; $("#run-button").click(function(){ var text = editor.getSession().getValue(); $('#code').val(text); }); } }
dc77833235381920d717600172ccdebdbc223bcf
gpgutils/gpggetkey.sh.in
gpgutils/gpggetkey.sh.in
GPG_BIN="/usr/bin/gpg" GPG2_BIN="/usr/bin/gpg2" function gpg_get_key () { recipient="$1" $GPG_BIN --export -a "$recipient" return $? } function gpg2_get_key () { recipient="$1" $GPG2_BIN --export -a "$recipient" return $? } if [ $# -lt 1 ]; then echo "Usage: $0 <RECIPIENT>" exit 1 fi recipient="$1" if [ -x $GPG2_BIN ]; then gpg2_get_key "$recipient" exit $? elif [ -x $GPG_BIN ]; then gpg_get_key "$recipient" exit $? fi echo "$0: cannot execute GPG binary." exit 1
GPG_BIN="/usr/bin/gpg" GPG2_BIN="/usr/bin/gpg2" function gpg_get_key () { recipient="$1" $GPG_BIN --batch --export --armor "$recipient" return $? } function gpg2_get_key () { recipient="$1" $GPG2_BIN --batch --export --armor "$recipient" return $? } if [ $# -lt 1 ]; then echo "Usage: $0 <RECIPIENT>" exit 1 fi recipient="$1" if [ -x $GPG2_BIN ]; then gpg2_get_key "$recipient" exit $? elif [ -x $GPG_BIN ]; then gpg_get_key "$recipient" exit $? fi echo "$0: cannot execute GPG binary." exit 1
Use long options for clarity and --batch mode.
Use long options for clarity and --batch mode.
unknown
mit
antagon/pgpsenderorg,antagon/pgpsenderorg,antagon/pgpsenderorg
unknown
## Code Before: GPG_BIN="/usr/bin/gpg" GPG2_BIN="/usr/bin/gpg2" function gpg_get_key () { recipient="$1" $GPG_BIN --export -a "$recipient" return $? } function gpg2_get_key () { recipient="$1" $GPG2_BIN --export -a "$recipient" return $? } if [ $# -lt 1 ]; then echo "Usage: $0 <RECIPIENT>" exit 1 fi recipient="$1" if [ -x $GPG2_BIN ]; then gpg2_get_key "$recipient" exit $? elif [ -x $GPG_BIN ]; then gpg_get_key "$recipient" exit $? fi echo "$0: cannot execute GPG binary." exit 1 ## Instruction: Use long options for clarity and --batch mode. ## Code After: GPG_BIN="/usr/bin/gpg" GPG2_BIN="/usr/bin/gpg2" function gpg_get_key () { recipient="$1" $GPG_BIN --batch --export --armor "$recipient" return $? } function gpg2_get_key () { recipient="$1" $GPG2_BIN --batch --export --armor "$recipient" return $? } if [ $# -lt 1 ]; then echo "Usage: $0 <RECIPIENT>" exit 1 fi recipient="$1" if [ -x $GPG2_BIN ]; then gpg2_get_key "$recipient" exit $? elif [ -x $GPG_BIN ]; then gpg_get_key "$recipient" exit $? fi echo "$0: cannot execute GPG binary." exit 1
c50e7614736b5c38590bf9655f6a6410488b1b7e
README.md
README.md
Just one ELK node, with IP address ``192.168.33.200``. Kibana app is published on http://192.168.33.200 ## Prerequisites 1. [VirtualBox](https://www.virtualbox.org/) 2. [Vagrant](https://www.vagrantup.com/) >= 1.8.* ### Required vagrant plugins * vagrant-berkshelf * vagrant-proxyconf * vagrant-cachier _(this in optional BTW)_ ``` vagrant plugin install vagrant-berkshelf vagrant plugin install vagrant-proxyconf vagrant plugin install vagrant-cachier ``` ## Configuration Put a file named ``.config.yml`` into the root of the project and add there your proxy configuration e.g. ``` proxy: http://proxy.something.local:1080 ``` or, if you are not behind a proxy (you lucky guy!), just put ``` proxy: false ```
__Just one ELK node__, with IP address ``192.168.33.200``. __Kibana__ app is published on http://192.168.33.200 ## Prerequisites 1. [VirtualBox](https://www.virtualbox.org/) 2. [Vagrant](https://www.vagrantup.com/) >= 1.8.* ### Required vagrant plugins * vagrant-berkshelf * vagrant-proxyconf * vagrant-cachier _(this in optional BTW)_ ``` vagrant plugin install vagrant-berkshelf vagrant plugin install vagrant-proxyconf vagrant plugin install vagrant-cachier ``` ## Configuration Put a file named ``.config.yml`` into the root of the project and add there your proxy configuration e.g. ``` proxy: http://proxy.something.local:1080 ``` or, if you are not behind a proxy (you lucky guy!), just put ``` proxy: false ``` ### Logstash Logstash syslog port is set to 5014
Add info on logstash syslog port
Add info on logstash syslog port
Markdown
apache-2.0
xpepper/elk-playground,xpepper/elk-playground,xpepper/elk-playground
markdown
## Code Before: Just one ELK node, with IP address ``192.168.33.200``. Kibana app is published on http://192.168.33.200 ## Prerequisites 1. [VirtualBox](https://www.virtualbox.org/) 2. [Vagrant](https://www.vagrantup.com/) >= 1.8.* ### Required vagrant plugins * vagrant-berkshelf * vagrant-proxyconf * vagrant-cachier _(this in optional BTW)_ ``` vagrant plugin install vagrant-berkshelf vagrant plugin install vagrant-proxyconf vagrant plugin install vagrant-cachier ``` ## Configuration Put a file named ``.config.yml`` into the root of the project and add there your proxy configuration e.g. ``` proxy: http://proxy.something.local:1080 ``` or, if you are not behind a proxy (you lucky guy!), just put ``` proxy: false ``` ## Instruction: Add info on logstash syslog port ## Code After: __Just one ELK node__, with IP address ``192.168.33.200``. __Kibana__ app is published on http://192.168.33.200 ## Prerequisites 1. [VirtualBox](https://www.virtualbox.org/) 2. [Vagrant](https://www.vagrantup.com/) >= 1.8.* ### Required vagrant plugins * vagrant-berkshelf * vagrant-proxyconf * vagrant-cachier _(this in optional BTW)_ ``` vagrant plugin install vagrant-berkshelf vagrant plugin install vagrant-proxyconf vagrant plugin install vagrant-cachier ``` ## Configuration Put a file named ``.config.yml`` into the root of the project and add there your proxy configuration e.g. ``` proxy: http://proxy.something.local:1080 ``` or, if you are not behind a proxy (you lucky guy!), just put ``` proxy: false ``` ### Logstash Logstash syslog port is set to 5014
94765f14c53961e4b82cba0fbaa5b29f01d542bf
spec/unit/rack_app_spec.rb
spec/unit/rack_app_spec.rb
require 'uri' require 'spec_helper' module EmberSecureBuilder describe RackApp do include Rack::Test::Methods def app RackApp end before do AssetBuildingWorker.jobs.clear end it "should not add job to queue when no payload was received" do post '/build' refute last_response.ok? assert_equal 0, AssetBuildingWorker.jobs.size assert_equal 0, AssetBuildingWorker.jobs.size end describe "with a valid payload" do before do post '/build', repo: 'emberjs/ember.js', pull_request_number: '3516' assert last_response.ok? end it "should queue a AssetBuildingWorker" do assert_equal 1, AssetBuildingWorker.jobs.size end it "should provide the correct arguments to the queued worker" do expected = ["emberjs/ember.js", "3516"] job = AssetBuildingWorker.jobs.first assert_equal expected, job['args'] end end end end
require 'uri' require 'spec_helper' module EmberSecureBuilder describe RackApp do include Rack::Test::Methods def app RackApp end before do AssetBuildingWorker.jobs.clear end it "should not add job to queue when no payload was received" do post '/build' refute last_response.ok? assert_equal 0, AssetBuildingWorker.jobs.size assert_equal 0, AssetBuildingWorker.jobs.size end describe "with a valid payload" do before do post '/build', repo: 'emberjs/ember.js', pull_request_number: '3516', perform_cross_browser_tests: 'true' assert last_response.ok? end it "should queue a AssetBuildingWorker" do assert_equal 1, AssetBuildingWorker.jobs.size end it "should provide the correct arguments to the queued worker" do expected = ["emberjs/ember.js", "3516", 'true'] job = AssetBuildingWorker.jobs.first assert_equal expected, job['args'] end end end end
Fix params for RackApp /build.
Fix params for RackApp /build.
Ruby
mit
rwjblue/ember-secure-builder
ruby
## Code Before: require 'uri' require 'spec_helper' module EmberSecureBuilder describe RackApp do include Rack::Test::Methods def app RackApp end before do AssetBuildingWorker.jobs.clear end it "should not add job to queue when no payload was received" do post '/build' refute last_response.ok? assert_equal 0, AssetBuildingWorker.jobs.size assert_equal 0, AssetBuildingWorker.jobs.size end describe "with a valid payload" do before do post '/build', repo: 'emberjs/ember.js', pull_request_number: '3516' assert last_response.ok? end it "should queue a AssetBuildingWorker" do assert_equal 1, AssetBuildingWorker.jobs.size end it "should provide the correct arguments to the queued worker" do expected = ["emberjs/ember.js", "3516"] job = AssetBuildingWorker.jobs.first assert_equal expected, job['args'] end end end end ## Instruction: Fix params for RackApp /build. ## Code After: require 'uri' require 'spec_helper' module EmberSecureBuilder describe RackApp do include Rack::Test::Methods def app RackApp end before do AssetBuildingWorker.jobs.clear end it "should not add job to queue when no payload was received" do post '/build' refute last_response.ok? assert_equal 0, AssetBuildingWorker.jobs.size assert_equal 0, AssetBuildingWorker.jobs.size end describe "with a valid payload" do before do post '/build', repo: 'emberjs/ember.js', pull_request_number: '3516', perform_cross_browser_tests: 'true' assert last_response.ok? end it "should queue a AssetBuildingWorker" do assert_equal 1, AssetBuildingWorker.jobs.size end it "should provide the correct arguments to the queued worker" do expected = ["emberjs/ember.js", "3516", 'true'] job = AssetBuildingWorker.jobs.first assert_equal expected, job['args'] end end end end
6d5068863e3c93c9715f3fa54730394db5cacd89
server/routes/index.js
server/routes/index.js
import {extractGithubUrl, renderError, cinvoke} from '../lib/utils' import {all as qall} from 'q' const cmp = (one, other) => 0 + (one < other) - (one > other) const cmpKey = key => (one, other) => cmp(one[key], other[key]) export function index(req, res) { const path = extractGithubUrl(req.query.url) if (path) { return res.redirect(path) } const client = req.gh.client // client.me().info(function(err, me, headers) { }) if (!client) { return res.render('index') } cinvoke(client.me(), 'orgs') .then(orgs => orgs.map(org => client.org(org.login)).concat(client.me())) .then(users => qall(users.map(user => cinvoke(user, 'repos')))) .then(repos => [].concat.apply([], repos)) .then(repos => repos.sort(cmpKey('pushed_at'))) .then(repos => res.render('index', {repos})) .catch(renderError(res)) }
import {extractGithubUrl, renderError, cinvoke} from '../lib/utils' import {all as qall} from 'q' const cmp = (one, other) => 0 + (one < other) - (one > other) const cmpKey = key => (one, other) => cmp(one[key], other[key]) export async function index(req, res) { const path = extractGithubUrl(req.query.url) if (path) { return res.redirect(path) } const client = req.gh.client if (!client) { return res.render('index') } try { var repos = await cinvoke(client.me(), 'repos') repos = repos.sort(cmpKey('pushed_at')) res.render('index', {repos}) } catch (error) { renderError(res, error) } }
Fix double rendering projects. First async function :tada:
Fix double rendering projects. First async function :tada:
JavaScript
mit
weapp/ghpreview,weapp/ghpreview
javascript
## Code Before: import {extractGithubUrl, renderError, cinvoke} from '../lib/utils' import {all as qall} from 'q' const cmp = (one, other) => 0 + (one < other) - (one > other) const cmpKey = key => (one, other) => cmp(one[key], other[key]) export function index(req, res) { const path = extractGithubUrl(req.query.url) if (path) { return res.redirect(path) } const client = req.gh.client // client.me().info(function(err, me, headers) { }) if (!client) { return res.render('index') } cinvoke(client.me(), 'orgs') .then(orgs => orgs.map(org => client.org(org.login)).concat(client.me())) .then(users => qall(users.map(user => cinvoke(user, 'repos')))) .then(repos => [].concat.apply([], repos)) .then(repos => repos.sort(cmpKey('pushed_at'))) .then(repos => res.render('index', {repos})) .catch(renderError(res)) } ## Instruction: Fix double rendering projects. First async function :tada: ## Code After: import {extractGithubUrl, renderError, cinvoke} from '../lib/utils' import {all as qall} from 'q' const cmp = (one, other) => 0 + (one < other) - (one > other) const cmpKey = key => (one, other) => cmp(one[key], other[key]) export async function index(req, res) { const path = extractGithubUrl(req.query.url) if (path) { return res.redirect(path) } const client = req.gh.client if (!client) { return res.render('index') } try { var repos = await cinvoke(client.me(), 'repos') repos = repos.sort(cmpKey('pushed_at')) res.render('index', {repos}) } catch (error) { renderError(res, error) } }
d1739689d21747c89533fcb737c4d06d341ac9e2
app/scripts/alchemy/start.coffee
app/scripts/alchemy/start.coffee
class Alchemy constructor: (@conf) -> @version = "0.1.0" @layout = {} @interactions = {} @utils = {} @visControls = {} @styles = {} @drawing = {} graph_elem = $('#graph') igraph_search = $('#igraph-search') allTags = {} allCaptions = {} currentNodeTypes = {} currentRelationshipTypes = {} container = null rootNodeId = null window.alchemy = new Alchemy(conf) alchemy.container = 'width': parseInt(d3.select('.alchemy').style('width')) 'height': parseInt(d3.select('.alchemy').style('height'))
class Alchemy constructor: (@conf) -> @version = "0.1.0" @layout = {} @interactions = {} @utils = {} @visControls = {} @styles = {} @drawing = {} @log = {} graph_elem = $('#graph') igraph_search = $('#igraph-search') allTags = {} allCaptions = {} currentNodeTypes = {} currentRelationshipTypes = {} container = null rootNodeId = null window.alchemy = new Alchemy(conf) alchemy.container = 'width': parseInt(d3.select('.alchemy').style('width')) 'height': parseInt(d3.select('.alchemy').style('height'))
Add log to main Alchemy class
Add log to main Alchemy class
CoffeeScript
agpl-3.0
GraphAlchemist/Alchemy,jimtom2713/Alchemy,mayblue9/Alchemy,mayblue9/Alchemy,kylerob/Alchemy,kylerob/Alchemy,MDCox/Alchemy,jimtom2713/Alchemy
coffeescript
## Code Before: class Alchemy constructor: (@conf) -> @version = "0.1.0" @layout = {} @interactions = {} @utils = {} @visControls = {} @styles = {} @drawing = {} graph_elem = $('#graph') igraph_search = $('#igraph-search') allTags = {} allCaptions = {} currentNodeTypes = {} currentRelationshipTypes = {} container = null rootNodeId = null window.alchemy = new Alchemy(conf) alchemy.container = 'width': parseInt(d3.select('.alchemy').style('width')) 'height': parseInt(d3.select('.alchemy').style('height')) ## Instruction: Add log to main Alchemy class ## Code After: class Alchemy constructor: (@conf) -> @version = "0.1.0" @layout = {} @interactions = {} @utils = {} @visControls = {} @styles = {} @drawing = {} @log = {} graph_elem = $('#graph') igraph_search = $('#igraph-search') allTags = {} allCaptions = {} currentNodeTypes = {} currentRelationshipTypes = {} container = null rootNodeId = null window.alchemy = new Alchemy(conf) alchemy.container = 'width': parseInt(d3.select('.alchemy').style('width')) 'height': parseInt(d3.select('.alchemy').style('height'))