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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
315bb82c1eaa111346e07216b2d1e4d2bc876b5c | src/main/java/panda/leatherworks/common/network/messagehandler/DummyMessageHandler.java | src/main/java/panda/leatherworks/common/network/messagehandler/DummyMessageHandler.java | package panda.leatherworks.common.network.messagehandler;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
public class DummyMessageHandler implements IMess... | package panda.leatherworks.common.network.messagehandler;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
/**
* This dummy handler will do nothing.
*
* ... | Add description to dummy message handler | Add description to dummy message handler
| Java | lgpl-2.1 | cleverpanda/LeatherWorks | java | ## Code Before:
package panda.leatherworks.common.network.messagehandler;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
public class DummyMessageHandler ... |
8270dac0677f8b102c8e00ea21555dcda8b34cb7 | edu.cuny.citytech.defaultrefactoring.eval/scripts/myimport.sh | edu.cuny.citytech.defaultrefactoring.eval/scripts/myimport.sh | DATABASE=$1
TABLE=$2
USER=
PASSWORD=
mysql --local-infile -D $DATABASE -u $USER -p$PASSWORD -h 127.0.0.1 --execute="LOAD DATA LOCAL INFILE '$TABLE.csv' INTO TABLE $TABLE FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n' IGNORE 1 LINES; SHOW WARNINGS" > $TABLE.output
cat $TABLE.output
| DATABASE=$1
TABLE=$2
USER=
PASSWORD=
mysql --local-infile -D $DATABASE -u $USER -p$PASSWORD -h 127.0.0.1 --execute="LOAD DATA LOCAL INFILE '$TABLE.csv' INTO TABLE $TABLE FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n' IGNORE 1 LINES; SHOW WARNINGS" > $TABLE.output
dos2unix $TABLE.csv
cat $TABLE.outpu... | Make sure line endings are correct. | Make sure line endings are correct.
| Shell | epl-1.0 | khatchad/Migrate-Skeletal-Implementation-to-Interface-Refactoring,khatchad/Java-8-Interface-Refactoring,khatchad/Migrate-Skeletal-Implementation-to-Interface-Refactoring | shell | ## Code Before:
DATABASE=$1
TABLE=$2
USER=
PASSWORD=
mysql --local-infile -D $DATABASE -u $USER -p$PASSWORD -h 127.0.0.1 --execute="LOAD DATA LOCAL INFILE '$TABLE.csv' INTO TABLE $TABLE FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\n' IGNORE 1 LINES; SHOW WARNINGS" > $TABLE.output
cat $TABLE.output
#... |
c5f151cde39616028ee999be9c8d33d794083657 | setup.cfg | setup.cfg | [aliases]
test=pytest
[tool:pytest]
addopts = --junitxml=build/reports/tests/junit.xml --cov=k8s --cov-report html --cov-report term --cov-report xml
[coverage:html]
directory=build/reports/coverage
[coverage:xml]
output=build/reports/coverage.xml
[flake8]
max-line-length=120
max-complexity=10
exclude=build,.git,__... | [aliases]
test=pytest
[tool:pytest]
addopts = --junitxml=build/reports/tests/junit.xml --cov=k8s --cov-report html --cov-report term --cov-report xml
[coverage:html]
directory=build/reports/coverage
[coverage:xml]
output=build/reports/coverage.xml
| Revert "Add flake8 config - bump max line length to 120" | Revert "Add flake8 config - bump max line length to 120"
This reverts commit 812f30d901f39f787e73dfefed3d9b926714fee3.
| INI | apache-2.0 | fiaas/k8s | ini | ## Code Before:
[aliases]
test=pytest
[tool:pytest]
addopts = --junitxml=build/reports/tests/junit.xml --cov=k8s --cov-report html --cov-report term --cov-report xml
[coverage:html]
directory=build/reports/coverage
[coverage:xml]
output=build/reports/coverage.xml
[flake8]
max-line-length=120
max-complexity=10
exclu... |
308ac5a97be9ea0b550b9155765f4fd3ba442b79 | src/org/metawatch/manager/BootCompletedReceiver.java | src/org/metawatch/manager/BootCompletedReceiver.java | package org.metawatch.manager;
import org.metawatch.manager.MetaWatchService.Preferences;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class BootCompletedReceiver extends BroadcastReceiver {
@Override
public void onReceive... | package org.metawatch.manager;
import org.metawatch.manager.MetaWatchService.Preferences;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class BootCompletedReceiver extends BroadcastReceiver {
@Override
public void onReceive... | Load preferences before checking them | Load preferences before checking them
| Java | apache-2.0 | benjymous/MWM-for-Android | java | ## Code Before:
package org.metawatch.manager;
import org.metawatch.manager.MetaWatchService.Preferences;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class BootCompletedReceiver extends BroadcastReceiver {
@Override
publi... |
3a1706a5d45248acf34c700162b0755f26611a8d | lib/active_mocker/mock.rb | lib/active_mocker/mock.rb | require 'active_support/hash_with_indifferent_access'
require 'active_support/core_ext/module/delegation'
require 'active_support/inflector'
require 'active_support/core_ext'
require 'virtus'
require 'active_mocker/logger'
require 'active_mocker/loaded_mocks'
require 'active_mocker/mock/hash_process'
require 'active_m... | require 'active_support/dependencies/autoload'
require 'active_support/hash_with_indifferent_access'
require 'active_support/core_ext/module/delegation'
require 'active_support/inflector'
require 'active_support/core_ext'
require 'virtus'
require 'active_mocker/logger'
require 'active_mocker/loaded_mocks'
require 'act... | Fix random build failure where active_support autoload can’t be found. | Fix random build failure where active_support autoload can’t be found. | Ruby | mit | zeisler/active_mocker,zeisler/active_mocker,zeisler/active_mocker | ruby | ## Code Before:
require 'active_support/hash_with_indifferent_access'
require 'active_support/core_ext/module/delegation'
require 'active_support/inflector'
require 'active_support/core_ext'
require 'virtus'
require 'active_mocker/logger'
require 'active_mocker/loaded_mocks'
require 'active_mocker/mock/hash_process'
r... |
780d1144502772ba67a5df5d838381c63dd82cba | metadata/org.opengemara.shiurim.txt | metadata/org.opengemara.shiurim.txt | Categories:Reading
License:GPLv3
Web Site:
Source Code:https://github.com/opengemara/shiurim
Issue Tracker:https://github.com/opengemara/shiurim/issues
Bitcoin:19p5TXDfMksHjUstFEp2PUt383Cy7JdmLa
Auto Name:Shiurim
Summary:Talmud unit conversion tool
Description:
A quick and easy conversion tool to convert from Biblical... | Categories:Reading
License:GPLv3
Web Site:
Source Code:https://github.com/opengemara/shiurim
Issue Tracker:https://github.com/opengemara/shiurim/issues
Bitcoin:19p5TXDfMksHjUstFEp2PUt383Cy7JdmLa
Auto Name:Shiurim
Summary:Talmud unit conversion tool
Description:
A quick and easy conversion tool to convert from Biblical... | Update Shiurim to 0.1.3 (4) | Update Shiurim to 0.1.3 (4)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Reading
License:GPLv3
Web Site:
Source Code:https://github.com/opengemara/shiurim
Issue Tracker:https://github.com/opengemara/shiurim/issues
Bitcoin:19p5TXDfMksHjUstFEp2PUt383Cy7JdmLa
Auto Name:Shiurim
Summary:Talmud unit conversion tool
Description:
A quick and easy conversion tool to conve... |
9f9879edaec82115153777a48b6533e7b8126125 | src/main/java/at/ac/tuwien/inso/service/SubjectService.java | src/main/java/at/ac/tuwien/inso/service/SubjectService.java | package at.ac.tuwien.inso.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.access.prepost.PreAuthorize;
import at.ac.tuwien.inso.entity.*;
import java.util.*;
public interface SubjectService {
@PreAuthorize("i... | package at.ac.tuwien.inso.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.access.prepost.PreAuthorize;
import at.ac.tuwien.inso.entity.*;
import java.util.*;
public interface SubjectService {
@PreAuthorize("i... | Add return value to removeLecturerFromSubject | Add return value to removeLecturerFromSubject
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis | java | ## Code Before:
package at.ac.tuwien.inso.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.access.prepost.PreAuthorize;
import at.ac.tuwien.inso.entity.*;
import java.util.*;
public interface SubjectService {
@PreAuthoriz... |
2c0776079872eaa1065612067800e38e43ddc6dd | src/test-erlusb.sh | src/test-erlusb.sh |
${ERL} +v -pa src < ${srcdir}/src/test-erlusb.cmds
|
echo "$0: start"
${ERL} +v -pa src < ${srcdir}/src/test-erlusb.cmds
echo "$0: end"
| Add debug info to test script | Add debug info to test script
| Shell | lgpl-2.1 | ndim/erlusb,ndim/erlusb | shell | ## Code Before:
${ERL} +v -pa src < ${srcdir}/src/test-erlusb.cmds
## Instruction:
Add debug info to test script
## Code After:
echo "$0: start"
${ERL} +v -pa src < ${srcdir}/src/test-erlusb.cmds
echo "$0: end"
|
05d7b69591a547a83a4d50814394339fc5b1a16f | test-setup.cmd | test-setup.cmd | @ECHO OFF
SET BASEDIR=%~dp0
PUSHD %BASEDIR%
IF NOT EXIST pyenv\NUL GOTO NOENVDIR
ECHO removing existing environment
RMDIR /S /Q pyenv
:NOENVDIR
virtualenv pyenv
CALL pyenv\Scripts\activate
python -m pip install -r pyenv.pkgs --no-cache-dir
CALL pyenv\Scripts\deactivate
POPD
| @ECHO OFF
SET BASEDIR=%~dp0
PUSHD %BASEDIR%
IF NOT EXIST pyenv\NUL GOTO NOENVDIR
ECHO removing existing environment
RMDIR /S /Q pyenv
:NOENVDIR
virtualenv pyenv
CALL pyenv\Scripts\activate
pip install mechanicalsoup
pip install -r pyenv.pkgs
CALL pyenv\Scripts\deactivate
POPD
| Install mechanical soup first on Windows | Install mechanical soup first on Windows
| Batchfile | apache-2.0 | SteelToeOSS/Samples,SteelToeOSS/Samples,SteelToeOSS/Samples,SteelToeOSS/Samples | batchfile | ## Code Before:
@ECHO OFF
SET BASEDIR=%~dp0
PUSHD %BASEDIR%
IF NOT EXIST pyenv\NUL GOTO NOENVDIR
ECHO removing existing environment
RMDIR /S /Q pyenv
:NOENVDIR
virtualenv pyenv
CALL pyenv\Scripts\activate
python -m pip install -r pyenv.pkgs --no-cache-dir
CALL pyenv\Scripts\deactivate
POPD
## Instruction:
Install... |
06932b25f366c8ba23a1f4edeb3e5e96bb3fbe42 | pkgs/development/python-modules/jupyterlab_launcher/default.nix | pkgs/development/python-modules/jupyterlab_launcher/default.nix | { lib, buildPythonPackage, fetchPypi, jsonschema, notebook }:
buildPythonPackage rec {
pname = "jupyterlab_launcher";
version = "0.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "2eea0cc95b312e136e6e5abc64e2e62baaeca493cd32f553c2205f79e01c0423";
};
propagatedBuildInputs = [
jsonschema
... | { lib, buildPythonPackage, fetchPypi, jsonschema, notebook }:
buildPythonPackage rec {
pname = "jupyterlab_launcher";
version = "0.10.5";
src = fetchPypi {
inherit pname version;
sha256 = "1v1ir182zm2dl14lqvqjhx2x40wnp0i32n6rldxnm1allfpld1n7";
};
propagatedBuildInputs = [
jsonschema
notebook... | Revert "python: jupyterlab_launcher: 0.10.5 -> 0.11.0" | Revert "python: jupyterlab_launcher: 0.10.5 -> 0.11.0"
This reverts commit a4404adbcb15403b480070118809cad486398577.
| Nix | mit | SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,... | nix | ## Code Before:
{ lib, buildPythonPackage, fetchPypi, jsonschema, notebook }:
buildPythonPackage rec {
pname = "jupyterlab_launcher";
version = "0.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "2eea0cc95b312e136e6e5abc64e2e62baaeca493cd32f553c2205f79e01c0423";
};
propagatedBuildInputs = [... |
4720dd5eafd6a7c78dc08fe4269edcd3cd872081 | app/assets/javascripts/shoppe/products.coffee | app/assets/javascripts/shoppe/products.coffee | $ ->
#
# Refresh the order
#
calculateTax = (form, invokeField)->
if $('select#product_tax_rate_id', form).val().length > 0
$('input#product_price_including_tax', form).prop('disabled', false)
else
$('input#product_price_including_tax', form).prop('disabled', true)
$('input#product_pr... | $ ->
#
# Refresh the order
#
calculateTax = (form, invokeField)->
if $('select#product_tax_rate_id', form).val().length > 0
$('input#product_price_including_tax', form).prop('disabled', false)
else
$('input#product_price_including_tax', form).prop('disabled', true)
$('input#product_pr... | Fix issue with javascript error causing category choosing functionality to break for a product with variants. | Fix issue with javascript error causing category choosing functionality to break for a product with variants.
| CoffeeScript | mit | naked-apps/shoppe_core,naked-apps/shoppe_core,naked-apps/shoppe_core | coffeescript | ## Code Before:
$ ->
#
# Refresh the order
#
calculateTax = (form, invokeField)->
if $('select#product_tax_rate_id', form).val().length > 0
$('input#product_price_including_tax', form).prop('disabled', false)
else
$('input#product_price_including_tax', form).prop('disabled', true)
$('... |
f31d891e32813505ecee7f38ac6857431be224d1 | mongoid_alize.gemspec | mongoid_alize.gemspec | Gem::Specification.new do |s|
s.name = "mongoid_alize"
s.version = "0.2.0"
s.author = "Josh Dzielak"
s.email = "github_public@dz.oib.com"
s.homepage = "https://github.com/dzello/mongoid_alize"
s.summary = "Comprehensive field denormalization for Mongoid that stays in sync."
s.... | Gem::Specification.new do |s|
s.name = "mongoid_alize"
s.version = "0.2.0"
s.author = "Josh Dzielak"
s.email = "github_public@dz.oib.com"
s.homepage = "https://github.com/dzello/mongoid_alize"
s.summary = "Comprehensive field denormalization for Mongoid that stays in sync."
s.... | Add config to gemspec files, specify mongoid version. | Add config to gemspec files, specify mongoid version.
| Ruby | mit | bezugen/mongoid_alize,kayakyakr/mongoid_alize,pranav-g10/mongoid_alize,pranav-g10/mongoid_alize,burgalon/mongoid_alize | ruby | ## Code Before:
Gem::Specification.new do |s|
s.name = "mongoid_alize"
s.version = "0.2.0"
s.author = "Josh Dzielak"
s.email = "github_public@dz.oib.com"
s.homepage = "https://github.com/dzello/mongoid_alize"
s.summary = "Comprehensive field denormalization for Mongoid that stay... |
486573ff8cef50f22427d4bee5c4f7d8d24558b0 | src/style.css | src/style.css | background-color: #00d1b2;
margin-top: 2em;
}
#app footer p, #app footer i, #app footer a {
color: white;
}
#app footer a {
font-weight: bold;
}
#app > section {
padding-top: 2em;
background-color: transparent;
}
body {
background: url(/images/background.png);
height: 100%;
min-h... | background-color: #00d1b2;
margin-top: 2em;
}
#app footer p, #app footer i, #app footer a {
color: white;
}
#app footer a {
font-weight: bold;
}
#app > section {
padding-top: 2em;
background-color: transparent;
}
body {
background: url(/images/background.png);
height: 100%;
min-h... | Implement max width so that elements are centered | Implement max width so that elements are centered
| CSS | mit | TimonLukas/timonlukas.me-main,TimonLukas/timonlukas.me-main | css | ## Code Before:
background-color: #00d1b2;
margin-top: 2em;
}
#app footer p, #app footer i, #app footer a {
color: white;
}
#app footer a {
font-weight: bold;
}
#app > section {
padding-top: 2em;
background-color: transparent;
}
body {
background: url(/images/background.png);
height:... |
889b9ad3f05da1a02275b9c2c6a2b7386136a8b2 | components/profile_traits/lib.rs | components/profile_traits/lib.rs | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! This module contains APIs for the `profile` crate used generically in the
//! rest of Servo. These APIs are he... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! This module contains APIs for the `profile` crate used generically in the
//! rest of Servo. These APIs are he... | Allow unsafe code for energy module (build failure otherwise) | Allow unsafe code for energy module (build failure otherwise)
| Rust | mpl-2.0 | splav/servo,anthgur/servo,cbrewster/servo,anthgur/servo,rnestler/servo,canaltinova/servo,dsandeephegde/servo,cbrewster/servo,mbrubeck/servo,CJ8664/servo,rnestler/servo,mattnenterprise/servo,CJ8664/servo,emilio/servo,szeged/servo,larsbergstrom/servo,dati91/servo,nnethercote/servo,ConnorGBrewster/servo,mbrubeck/servo,pet... | rust | ## Code Before:
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//! This module contains APIs for the `profile` crate used generically in the
//! rest of Servo. T... |
658e451a5b1e5929f6bff66c2af1b27299804a47 | roles/jupyterhub/defaults/main.yml | roles/jupyterhub/defaults/main.yml | ---
cran_url: https://cran.uni-muenster.de
jupyterhub_src_dir: /data/local/jupyterhub
jupyterhub_modules_dir: /data/local/jupyterhub/modules
| ---
cran_url: https://cran.uni-muenster.de
toree_pip_name_url: toree
jupyterhub_src_dir: /data/local/jupyterhub
jupyterhub_modules_dir: /data/local/jupyterhub/modules
rgeos_version: 0.3-28
| Align with vars and we need rgeos version. | Align with vars and we need rgeos version.
| YAML | apache-2.0 | nlesc-sherlock/emma,nlesc-sherlock/emma,nlesc-sherlock/emma | yaml | ## Code Before:
---
cran_url: https://cran.uni-muenster.de
jupyterhub_src_dir: /data/local/jupyterhub
jupyterhub_modules_dir: /data/local/jupyterhub/modules
## Instruction:
Align with vars and we need rgeos version.
## Code After:
---
cran_url: https://cran.uni-muenster.de
toree_pip_name_url: toree
jupyterhub_src_dir... |
9b617fabf009b0d6605fd9fc17e0d10bcf5659e1 | resources/assets/coffee/bootstrap-modal.coffee | resources/assets/coffee/bootstrap-modal.coffee | Copyright 2015 ppy Pty. Ltd.
This file is part of osu!web. osu!web is distributed with the hope of
attracting more community contributions to the core ecosystem of osu!.
osu!web is free software: you can redistribute it and/or modify
it under the terms of the Affero GNU General Public License as published by
the Free... | Copyright 2015 ppy Pty. Ltd.
This file is part of osu!web. osu!web is distributed with the hope of
attracting more community contributions to the core ecosystem of osu!.
osu!web is free software: you can redistribute it and/or modify
it under the terms of the Affero GNU General Public License as published by
the Free... | Remove all backdrops when modal is hidden | Remove all backdrops when modal is hidden
And reset the padding as well.
Still Not sure how to properly fix this.
At least this one will prevent black page when the avatar is clicked repeatedly.
Closes #54.
| CoffeeScript | agpl-3.0 | ameliaikeda/osu-web,marcostudios/osu-web,Bobo1239/osu-web,notbakaneko/osu-web,ppy/osu-web,dvcrn/osu-web,notbakaneko/osu-web,nanaya/osu-web,Nekonyx/osu-web,Xyloo/osu-web,Kuron-kun/osu-web,MasterBugPatch/osu-web,Kuron-kun/osu-web,omkelderman/osu-web,marcostudios/osu-web,dvcrn/osu-web,Kuron-kun/osu-web,LiquidPL/osu-web,Ma... | coffeescript | ## Code Before:
Copyright 2015 ppy Pty. Ltd.
This file is part of osu!web. osu!web is distributed with the hope of
attracting more community contributions to the core ecosystem of osu!.
osu!web is free software: you can redistribute it and/or modify
it under the terms of the Affero GNU General Public License as publi... |
69ec3f362c98d35e84b3ba6099bf922920a44088 | grader/src/main/java/edu/pdx/cs410J/grader/poa/ui/POASubmissionsPanel.java | grader/src/main/java/edu/pdx/cs410J/grader/poa/ui/POASubmissionsPanel.java | package edu.pdx.cs410J.grader.poa.ui;
import com.google.inject.Singleton;
import edu.pdx.cs410J.grader.poa.POASubmissionsView;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import java.awt.*;
import java.util.List;
import java.util.Vector;
@Singleton
public class POASubmissionsPanel extends JPan... | package edu.pdx.cs410J.grader.poa.ui;
import com.google.inject.Singleton;
import edu.pdx.cs410J.grader.poa.POASubmissionsView;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import java.awt.*;
import java.util.List;
import java.util.Vector;
@Singleton
public class POASubmissionsPanel extends JPan... | Fix an issue with submission selection by just using the index of the selected submission. | Fix an issue with submission selection by just using the index of the selected submission.
| Java | apache-2.0 | DavidWhitlock/PortlandStateJava,DavidWhitlock/PortlandStateJava | java | ## Code Before:
package edu.pdx.cs410J.grader.poa.ui;
import com.google.inject.Singleton;
import edu.pdx.cs410J.grader.poa.POASubmissionsView;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import java.awt.*;
import java.util.List;
import java.util.Vector;
@Singleton
public class POASubmissionsPa... |
661dfe5c7bd063b09fafc92227ece079b24d5a0d | spec/nark_spec.rb | spec/nark_spec.rb | require "spec_helper"
describe Nark do
describe "#configure" do
end
end
| require "spec_helper"
describe Nark do
it "sets event handler for the middleware"
describe "#configure" do
it "allows to to add a reporter"
it "define the plugin destination path"
it "overrides the event handler for the middleware"
context "HTTP reporter" do
it "define root path"
end
... | Add pending spec to cover the future configuration functionality | Add pending spec to cover the future configuration functionality
| Ruby | mit | baphled/nark,baphled/nark,baphled/nark | ruby | ## Code Before:
require "spec_helper"
describe Nark do
describe "#configure" do
end
end
## Instruction:
Add pending spec to cover the future configuration functionality
## Code After:
require "spec_helper"
describe Nark do
it "sets event handler for the middleware"
describe "#configure" do
it "allows t... |
a402876e519f1b83b662897dec2a24811634c6de | express-web-app-example.js | express-web-app-example.js | var compression = require("compression");
var express = require("express");
// Initialize Express
var app = express();
// Treat "/foo" and "/Foo" as different URLs
app.set("case sensitive routing", true);
// Treat "/foo" and "/foo/" as different URLs
app.set("strict routing", true);
// Default to port 3000
... | var compression = require("compression");
var express = require("express");
var handlebars = require("express-handlebars");
// Initialize Express
var app = express();
// Treat "/foo" and "/Foo" as different URLs
app.set("case sensitive routing", true);
// Treat "/foo" and "/foo/" as different URLs
app.set("st... | Set Handlebars as the default template language in the main app file. | Set Handlebars as the default template language in the main app file.
| JavaScript | mit | stevecochrane/express-web-app-example,stevecochrane/express-web-app-example | javascript | ## Code Before:
var compression = require("compression");
var express = require("express");
// Initialize Express
var app = express();
// Treat "/foo" and "/Foo" as different URLs
app.set("case sensitive routing", true);
// Treat "/foo" and "/foo/" as different URLs
app.set("strict routing", true);
// Defau... |
305dbbfe2207f4c7132ec4cbd508403f293d2dab | spec/models/location/address_spec.rb | spec/models/location/address_spec.rb | require 'spec_helper'
module Location
describe Address do
pending "add some examples to (or delete) #{__FILE__}"
end
end
| require 'spec_helper'
module Location
describe Address do
it { should belong_to(:district) }
it { should belong_to(:city) }
it { should belong_to(:state) }
end
end
| Add basic tests for Address | Add basic tests for Address
| Ruby | mit | thiagoa/location,thiagoa/location,thiagoa/location | ruby | ## Code Before:
require 'spec_helper'
module Location
describe Address do
pending "add some examples to (or delete) #{__FILE__}"
end
end
## Instruction:
Add basic tests for Address
## Code After:
require 'spec_helper'
module Location
describe Address do
it { should belong_to(:district) }
it { shou... |
2f2abbc51ef5895fb869937db826823fb5c24e5f | src/main/java/org/jabref/gui/errorconsole/ErrorConsole.css | src/main/java/org/jabref/gui/errorconsole/ErrorConsole.css | .list-content {
-fx-padding: 10px;
}
.info-section {
-fx-padding: 10px;
-fx-background-color: -fx-background;
}
.info-section .glyph-icon {
-fx-font-size: 24.0;
-fx-fill: -jr-icon
}
.exception .glyph-icon {
-fx-font-size: 18.0;
-fx-fill: -jr-error;
}
.log .glyph-icon {
-fx-font-size: 18.0;
... | .list-content {
-fx-padding: 10px;
}
.info-section {
-fx-padding: 10px;
-fx-background-color: -fx-background;
}
.info-section .glyph-icon {
-fx-font-size: 24.0;
}
.exception .glyph-icon {
-fx-font-size: 18.0;
-fx-fill: -jr-error;
}
.log .glyph-icon {
-fx-font-size: 18.0;
-fx-fill: -jr-info;
}... | Fix css warning in error console | Fix css warning in error console
| CSS | mit | tobiasdiez/jabref,tobiasdiez/jabref,Siedlerchr/jabref,Siedlerchr/jabref,sauliusg/jabref,JabRef/jabref,zellerdev/jabref,sauliusg/jabref,JabRef/jabref,Siedlerchr/jabref,tobiasdiez/jabref,JabRef/jabref,sauliusg/jabref,Siedlerchr/jabref,zellerdev/jabref,zellerdev/jabref,zellerdev/jabref,zellerdev/jabref,JabRef/jabref,tobia... | css | ## Code Before:
.list-content {
-fx-padding: 10px;
}
.info-section {
-fx-padding: 10px;
-fx-background-color: -fx-background;
}
.info-section .glyph-icon {
-fx-font-size: 24.0;
-fx-fill: -jr-icon
}
.exception .glyph-icon {
-fx-font-size: 18.0;
-fx-fill: -jr-error;
}
.log .glyph-icon {
-fx-fo... |
31159804ca830b0a7474eefa8676da74fe1eda9f | index.htm | index.htm | <html>
<head>
<title></title>
</head>
<body>
</body>
</head>
| <html>
<head>
<title>GitHub Training</title>
</head>
<body>
</body>
</head>
| Add event title to head | Add event title to head
Just basic info about the class title and event date. | HTML | apache-2.0 | lurla/lurla.github.io | html | ## Code Before:
<html>
<head>
<title></title>
</head>
<body>
</body>
</head>
## Instruction:
Add event title to head
Just basic info about the class title and event date.
## Code After:
<html>
<head>
<title>GitHub Training</title>
</head>
<body>
</body>
</head>
|
3307a72e2c212cf07968b3062d4f3839fe0325d1 | lib/sprockets/source_map_comment_processor.rb | lib/sprockets/source_map_comment_processor.rb | module Sprockets
class SourceMapCommentProcessor
def self.call(input)
case input[:content_type]
when "application/javascript"
comment = "\n//# sourceMappingURL=%s"
map_type = "application/js-sourcemap+json"
when "text/css"
comment = "\n/*# sourceMappingURL=%s */"
... | require 'sprockets/uri_utils'
require 'sprockets/path_utils'
module Sprockets
class SourceMapCommentProcessor
def self.call(input)
case input[:content_type]
when "application/javascript"
comment = "\n//# sourceMappingURL=%s"
map_type = "application/js-sourcemap+json"
when "text/... | Fix index alias source maps | Fix index alias source maps
| Ruby | mit | rails/sprockets,eileencodes/sprockets,recursecenter/sprockets | ruby | ## Code Before:
module Sprockets
class SourceMapCommentProcessor
def self.call(input)
case input[:content_type]
when "application/javascript"
comment = "\n//# sourceMappingURL=%s"
map_type = "application/js-sourcemap+json"
when "text/css"
comment = "\n/*# sourceMappingURL... |
00aad9bc179aa4a090f703db9669e8ba49ff8f3c | bibliopixel/main/arguments.py | bibliopixel/main/arguments.py | from .. project import project
"""Common command line arguments for run and demo."""
def add_to_parser(parser):
parser.add_argument(
'-d', '--driver', default='simpixel',
help='Default driver type if no driver is specified')
parser.add_argument(
'-l', '--layout', default='matrix',
... | import json
from .. project import project
"""Common command line arguments for run and demo."""
COMPONENTS = 'driver', 'layout', 'animation'
def add_to_parser(parser):
parser.add_argument(
'-d', '--driver', default='simpixel',
help='Default driver type if no driver is specified')
parser.ad... | Allow json in component flags. | Allow json in component flags.
| Python | mit | ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel,rec/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel | python | ## Code Before:
from .. project import project
"""Common command line arguments for run and demo."""
def add_to_parser(parser):
parser.add_argument(
'-d', '--driver', default='simpixel',
help='Default driver type if no driver is specified')
parser.add_argument(
'-l', '--layout', defa... |
2b44d0ad700a9fc7bb2bb277fa2f03f8f33e5eba | test/index.js | test/index.js | // Dependencies
var MongoSyncFiles = require("../index")
, Faker = require("faker")
;
// Create database instance
var MyDatabase = new MongoSyncFiles();
function generateFakeDataArray() {
var docs = [];
for (var i = 0; i < 30; ++i) {
docs.push({
name: Faker.Name.findName()
, ... | // Dependencies
var MongoSyncFiles = require("../index")
, Faker = require("faker")
;
function generateFakeDataArray() {
var docs = [];
for (var i = 0; i < 30; ++i) {
docs.push({
name: Faker.Name.findName()
, email: Faker.Internet.email()
, age: Faker.Helpers.randomN... | Use `collections` array for syncing databases. | Use `collections` array for syncing databases.
| JavaScript | mit | IonicaBizau/node-mongo-sync-files,IonicaBizau/node-mongof | javascript | ## Code Before:
// Dependencies
var MongoSyncFiles = require("../index")
, Faker = require("faker")
;
// Create database instance
var MyDatabase = new MongoSyncFiles();
function generateFakeDataArray() {
var docs = [];
for (var i = 0; i < 30; ++i) {
docs.push({
name: Faker.Name.findNam... |
60a94371e1704ce0db35395e004ea29029e2e506 | README.md | README.md |
File cache plugin for [browserify](http://browserify.org/).
Basically, this is [watchify](https://github.com/substack/watchify) without the file watch mode! Use this plugin if you're already listening for file system events via something like [gulp-watch](https://github.com/floatdrop/gulp-watch) or [chokidar](https:/... |
File cache plugin for [browserify](http://browserify.org/).
Basically, this is [watchify](https://github.com/substack/watchify) without the file watch mode! Use this plugin if you're already listening for file system events via something like [gulp-watch](https://github.com/floatdrop/gulp-watch) or [chokidar](https:/... | Add usage section to readme | Add usage section to readme
| Markdown | mit | lukehorvat/rememberify | markdown | ## Code Before:
File cache plugin for [browserify](http://browserify.org/).
Basically, this is [watchify](https://github.com/substack/watchify) without the file watch mode! Use this plugin if you're already listening for file system events via something like [gulp-watch](https://github.com/floatdrop/gulp-watch) or [c... |
0fbb117cd92edf50cd6ed845ff1b2cf582d78019 | source/create_user.sql | source/create_user.sql | create user ut3_demo identified by ut3_demo quota unlimited on USERS default tablespace USERS;
grant create session, create procedure, create type, create table, create sequence, create view to ut3_demo;
grant select any dictionary to ut3_demo;
exit
| create user ut3_demo identified by ut3_demo quota unlimited on USERS default tablespace USERS;
grant create session, create procedure,create trigger, create type, create table, create sequence, create view to ut3_demo;
grant select any dictionary to ut3_demo;
exit
| Update to add trigger grant | Update to add trigger grant | SQL | apache-2.0 | utPLSQL/utPLSQL-demo-project | sql | ## Code Before:
create user ut3_demo identified by ut3_demo quota unlimited on USERS default tablespace USERS;
grant create session, create procedure, create type, create table, create sequence, create view to ut3_demo;
grant select any dictionary to ut3_demo;
exit
## Instruction:
Update to add trigger grant
## Code... |
eb2eabe018a4f298aa0f038f00f7f3542c69e54d | src/filters/test/path.spec.js | src/filters/test/path.spec.js | describe('Filter: path', function () {
beforeEach(module('ngNephila.filters.path'));
var pathFilter;
beforeEach(inject(function($filter) {
pathFilter = $filter('path');
}));
it('has a path filter', function () {
expect(pathFilter).not.toBeNull();
});
it('should compose paths automagically', fu... | describe('Filter: path', function () {
beforeEach(module('ngNephila.filters.path'));
var pathFilter;
beforeEach(inject(function($filter) {
pathFilter = $filter('path');
}));
it('has a path filter', function () {
expect(pathFilter).not.toBeNull();
});
it('should compose paths automagically', fu... | Add tests for relative path | Add tests for relative path
| JavaScript | mit | ng-ramen/ng-ramen,ng-ramen/ng-ramen,nephila/ng-nephila,nephila/ng-nephila | javascript | ## Code Before:
describe('Filter: path', function () {
beforeEach(module('ngNephila.filters.path'));
var pathFilter;
beforeEach(inject(function($filter) {
pathFilter = $filter('path');
}));
it('has a path filter', function () {
expect(pathFilter).not.toBeNull();
});
it('should compose paths au... |
1a693e675a16003e960479c818023660ad03137d | src/main/java/com/tmitim/twittercli/TwitterCli.java | src/main/java/com/tmitim/twittercli/TwitterCli.java | package com.tmitim.twittercli;
import com.github.rvesse.airline.annotations.Cli;
import com.github.rvesse.airline.help.Help;
import com.tmitim.twittercli.commands.DirectMessage;
import com.tmitim.twittercli.commands.Favorite;
import com.tmitim.twittercli.commands.Location;
import com.tmitim.twittercli.commands.TimeLin... | package com.tmitim.twittercli;
import com.github.rvesse.airline.annotations.Cli;
import com.github.rvesse.airline.help.Help;
import com.tmitim.twittercli.commands.DirectMessage;
import com.tmitim.twittercli.commands.Favorite;
import com.tmitim.twittercli.commands.Location;
import com.tmitim.twittercli.commands.TimeLin... | Change default command to timeline | Change default command to timeline
| Java | apache-2.0 | tmitim/twittercli4j,tmitim/twittercli4j | java | ## Code Before:
package com.tmitim.twittercli;
import com.github.rvesse.airline.annotations.Cli;
import com.github.rvesse.airline.help.Help;
import com.tmitim.twittercli.commands.DirectMessage;
import com.tmitim.twittercli.commands.Favorite;
import com.tmitim.twittercli.commands.Location;
import com.tmitim.twittercli.... |
5ab62a30def24679b28c39143fffecdb245ddc3e | website/templates/search_bar.mako | website/templates/search_bar.mako | <div class="osf-search" >
<div class="container">
<div class="row">
<div class="col-md-12">
<form class="input-group" data-bind="visible: showSearch, submit: submit">
<input id="searchPageFullBar" type="text" class="osf-search-input form-control" placeholder="... | <div class="osf-search" data-bind="visible: showSearch">
<div class="container">
<div class="row">
<div class="col-md-12">
<form class="input-group" data-bind="submit: submit">
<input id="searchPageFullBar" type="text" class="osf-search-input form-control" pla... | Make search bar not show when hidden | Make search bar not show when hidden
| Mako | apache-2.0 | TomHeatwole/osf.io,binoculars/osf.io,KAsante95/osf.io,HalcyonChimera/osf.io,caseyrollins/osf.io,TomHeatwole/osf.io,wearpants/osf.io,felliott/osf.io,kushG/osf.io,erinspace/osf.io,icereval/osf.io,pattisdr/osf.io,caneruguz/osf.io,baylee-d/osf.io,hmoco/osf.io,jolene-esposito/osf.io,kch8qx/osf.io,GageGaskins/osf.io,fabianvf... | mako | ## Code Before:
<div class="osf-search" >
<div class="container">
<div class="row">
<div class="col-md-12">
<form class="input-group" data-bind="visible: showSearch, submit: submit">
<input id="searchPageFullBar" type="text" class="osf-search-input form-contro... |
c147373cf9238459ce1cb13a082fc30aa6f84e52 | packages/url.lua | packages/url.lua | SILE.require("packages/verbatim")
local inputfilter = SILE.require("packages/inputfilter").exports
local urlFilter = function (node, content, breakpat)
if type(node) == "table" then return node end
local result = {}
for token in SU.gtoke(node, breakpat) do
if token.string then
result[#result+1] = toke... | SILE.require("packages/verbatim")
local pdf
pcall(function() pdf = require("justenoughlibtexpdf") end)
if pdf then SILE.require("packages/pdf") end
local inputfilter = SILE.require("packages/inputfilter").exports
local urlFilter = function (node, content, breakpat)
if type(node) == "table" then return node end
lo... | Add \href command for handling external hyperlinks | Add \href command for handling external hyperlinks
| Lua | mit | simoncozens/sile,neofob/sile,alerque/sile,simoncozens/sile,neofob/sile,alerque/sile,alerque/sile,simoncozens/sile,neofob/sile,neofob/sile,alerque/sile,simoncozens/sile | lua | ## Code Before:
SILE.require("packages/verbatim")
local inputfilter = SILE.require("packages/inputfilter").exports
local urlFilter = function (node, content, breakpat)
if type(node) == "table" then return node end
local result = {}
for token in SU.gtoke(node, breakpat) do
if token.string then
result[#... |
b9af4f2a2755e9898c4a74d3785aa834ef03280e | .travis.yml | .travis.yml | language: node_js
node_js:
- "stable"
install: npm install
services:
- postgresql
env:
- NODE_ENV=test
before_script:
- psql -c 'create database postit_db_test;' -U postgres
- npm run build-server
- sequelize db:migrate
- sequelize db:seed:all
script: npm test
after_success: npm run coverage
cache:
directories:
-... | language: node_js
node_js:
- "stable"
install: npm install
services:
- postgresql
env:
- NODE_ENV=test
before_script:
- psql -c 'create database postit_db_test;' -U postgres
- npm run build-server
- sequelize db:migrate
- sequelize db:seed:all
script: npm test
after_script: sudo service postgresql stop
after_success: n... | Enable coverage reporting after Travis build | Enable coverage reporting after Travis build
| YAML | mit | Philipeano/post-it,Philipeano/post-it | yaml | ## Code Before:
language: node_js
node_js:
- "stable"
install: npm install
services:
- postgresql
env:
- NODE_ENV=test
before_script:
- psql -c 'create database postit_db_test;' -U postgres
- npm run build-server
- sequelize db:migrate
- sequelize db:seed:all
script: npm test
after_success: npm run coverage
cache:
di... |
80f88658806a75e9f99cfc9e8174da820a9ae543 | utils/typography.js | utils/typography.js | import Typography from 'typography';
import theme from 'typography-theme-ocean-beach';
theme.googleFonts.push(
{
name: 'M+PLUS+1p',
styles: ['400'],
},
{
name: 'Noto+Sans+JP',
styles: ['400'],
}
);
theme.headerFontFamily = ['Roboto Slab', 'M PLUS 1p', 'sans-serif'];
theme.bodyFontFamily = ['R... | import Typography from 'typography';
import theme from 'typography-theme-ocean-beach';
theme.googleFonts.push(
{
name: 'M+PLUS+1p',
styles: ['400'],
},
{
name: 'Noto+Sans+JP',
styles: ['400'],
}
);
theme.headerFontFamily = ['Roboto Slab', 'M PLUS 1p', 'sans-serif'];
theme.bodyFontFamily = ['R... | Remove weird text shadow under links | Remove weird text shadow under links
| JavaScript | mit | YoruNoHikage/blog,YoruNoHikage/yorunohikage.github.io,YoruNoHikage/yorunohikage.github.io | javascript | ## Code Before:
import Typography from 'typography';
import theme from 'typography-theme-ocean-beach';
theme.googleFonts.push(
{
name: 'M+PLUS+1p',
styles: ['400'],
},
{
name: 'Noto+Sans+JP',
styles: ['400'],
}
);
theme.headerFontFamily = ['Roboto Slab', 'M PLUS 1p', 'sans-serif'];
theme.body... |
529b4e5bfe4d179a960f91793100b2ab707fb74f | requirements.txt | requirements.txt | numpy
gdal
freetype
cairo
matplotlib
pandoc
pil
wxpython
sqlite
jpeg
libpng
libtiff
pkg-config
libiconv
fftw
blas
giflib
| numpy
gdal
freetype
cairo
matplotlib
pandoc
pil
wxpython
sqlite
jpeg
libpng
libtiff
pkg-config
python.app
libiconv
fftw
blas
giflib
| Add python.app as a requirement. | Add python.app as a requirement.
| Text | mit | mcflugen/grass-conda-build | text | ## Code Before:
numpy
gdal
freetype
cairo
matplotlib
pandoc
pil
wxpython
sqlite
jpeg
libpng
libtiff
pkg-config
libiconv
fftw
blas
giflib
## Instruction:
Add python.app as a requirement.
## Code After:
numpy
gdal
freetype
cairo
matplotlib
pandoc
pil
wxpython
sqlite
jpeg
libpng
libtiff
pkg-config
python.app
libiconv
... |
117337f5a8ef23cabf1d3e4d03997deadd25f8b4 | Casks/displaycal.rb | Casks/displaycal.rb | cask 'displaycal' do
version '3.1.1.0'
sha256 '7cae3f96378833875bdbd3e010c379616c9750494a871c5a117dcde0a619d02d'
# sourceforge.net/projects/dispcalgui was verified as official when first introduced to the cask
url "https://downloads.sourceforge.net/dispcalgui/release/#{version}/DisplayCAL-#{version}.dmg"
nam... | cask 'displaycal' do
version '3.1.1.0'
sha256 '7cae3f96378833875bdbd3e010c379616c9750494a871c5a117dcde0a619d02d'
# sourceforge.net/projects/dispcalgui was verified as official when first introduced to the cask
url "https://downloads.sourceforge.net/dispcalgui/release/#{version}/DisplayCAL-#{version}.dmg"
app... | Add sourceforge appcast for DisplayCAL | Add sourceforge appcast for DisplayCAL
| Ruby | bsd-2-clause | shonjir/homebrew-cask,renard/homebrew-cask,lumaxis/homebrew-cask,maxnordlund/homebrew-cask,AnastasiaSulyagina/homebrew-cask,Labutin/homebrew-cask,jacobbednarz/homebrew-cask,robertgzr/homebrew-cask,reitermarkus/homebrew-cask,cprecioso/homebrew-cask,okket/homebrew-cask,Bombenleger/homebrew-cask,jangalinski/homebrew-cask,... | ruby | ## Code Before:
cask 'displaycal' do
version '3.1.1.0'
sha256 '7cae3f96378833875bdbd3e010c379616c9750494a871c5a117dcde0a619d02d'
# sourceforge.net/projects/dispcalgui was verified as official when first introduced to the cask
url "https://downloads.sourceforge.net/dispcalgui/release/#{version}/DisplayCAL-#{ver... |
23acd0ae9d2f2cc61722359b648580ebd984d108 | mobile/src/main/java/com/ianhanniballake/contractiontimer/appwidget/AppWidgetUpdateHandler.kt | mobile/src/main/java/com/ianhanniballake/contractiontimer/appwidget/AppWidgetUpdateHandler.kt | package com.ianhanniballake.contractiontimer.appwidget
import android.content.Context
import android.os.Build
/**
* Handles updating all App Widgets
*/
abstract class AppWidgetUpdateHandler {
companion object {
/**
* Creates a version appropriate AppWidgetUpdateHandler instance
*
... | package com.ianhanniballake.contractiontimer.appwidget
import android.content.Context
import android.os.Build
/**
* Handles updating all App Widgets
*/
abstract class AppWidgetUpdateHandler {
companion object {
/**
* Creates a version appropriate AppWidgetUpdateHandler instance
*
... | Remove no longer needed @JvmStatic | Remove no longer needed @JvmStatic
| Kotlin | bsd-3-clause | ianhanniballake/ContractionTimer,ianhanniballake/ContractionTimer | kotlin | ## Code Before:
package com.ianhanniballake.contractiontimer.appwidget
import android.content.Context
import android.os.Build
/**
* Handles updating all App Widgets
*/
abstract class AppWidgetUpdateHandler {
companion object {
/**
* Creates a version appropriate AppWidgetUpdateHandler instance
... |
9f73fef74d6c78993cb31f0d5028b0b0131554de | bin/install-docker.sh | bin/install-docker.sh |
sudo apt-get update
sudo apt-get remove -f docker docker-engine docker.io
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
if [[ ! -e /etc/apt/sources.list.d/docker.list ]]; then
curl -fsSL https://download.docker.com/linux/debian/gpg... |
sudo apt-get update
sudo apt-get remove -f docker docker-engine docker.io
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
if [[ ! -e /etc/apt/sources.list.d/docker.list ]]; then
curl -fsSL https://download.docker.com/linux/debian/gpg... | Enable docker to start after a reboot. | Enable docker to start after a reboot.
| Shell | mit | reuteras/kali-tools | shell | ## Code Before:
sudo apt-get update
sudo apt-get remove -f docker docker-engine docker.io
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
if [[ ! -e /etc/apt/sources.list.d/docker.list ]]; then
curl -fsSL https://download.docker.com/... |
a2d71d4b5b11c5277db5eccd9b5376f888bdadd9 | app/assets/stylesheets/filter_select.css | app/assets/stylesheets/filter_select.css | padding: 0px;
}
#calendar-filter {
width: 100px;
height: 2.4em;
}
| padding: 0px;
}
#calendar-filter {
width: 100px;
height: 2.4em;
}
.fc-view, .fc-view>table {
height: 70vh;
}
| Add height styling for calendar so it fits in the page | Add height styling for calendar so it fits in the page
| CSS | mit | theresaboard/theres-a-board,theresaboard/theres-a-board,theresaboard/theres-a-board | css | ## Code Before:
padding: 0px;
}
#calendar-filter {
width: 100px;
height: 2.4em;
}
## Instruction:
Add height styling for calendar so it fits in the page
## Code After:
padding: 0px;
}
#calendar-filter {
width: 100px;
height: 2.4em;
}
.fc-view, .fc-view>table {
height: 70vh;
}
|
e57a2c908a6ec31f28cbbbf4d11eacf5eabfaa89 | src/net/srcdemo/userfs/UnconsequentialFiles.java | src/net/srcdemo/userfs/UnconsequentialFiles.java | package net.srcdemo.userfs;
import java.io.File;
final class UnconsequentialFiles {
private static final String[] unconsequential = { "Thumbs.db", ".DS_STORE" };
static final boolean clearUnconsequentialFiles(final File directory) {
if (!directory.isDirectory()) {
return false;
}
boolean returnValue = fal... | package net.srcdemo.userfs;
import java.io.File;
final class UnconsequentialFiles {
private static final String[] unconsequential = { "Thumbs.db", ".DS_STORE", ".Trash", ".Trash-1000", ".xdg-volume-info",
".directory" };
static final boolean clearUnconsequentialFiles(final File directory) {
if (!directory.isDi... | Add some more unconsequential files | Add some more unconsequential files
| Java | bsd-2-clause | xxtbg/srcdemo2,AGSPhoenix/srcdemo2,Nofe92/srcdemo2,AGSPhoenix/srcdemo2,xxtbg/srcdemo2,EtiennePerot/srcdemo2,code-google-com/srcdemo2,xxtbg/srcdemo2,AGSPhoenix/srcdemo2,code-google-com/srcdemo2,n1889/srcdemo2,EtiennePerot/srcdemo2,Nofe92/srcdemo2,Nofe92/srcdemo2,Nofe92/srcdemo2,EtiennePerot/srcdemo2,code-google-com/srcd... | java | ## Code Before:
package net.srcdemo.userfs;
import java.io.File;
final class UnconsequentialFiles {
private static final String[] unconsequential = { "Thumbs.db", ".DS_STORE" };
static final boolean clearUnconsequentialFiles(final File directory) {
if (!directory.isDirectory()) {
return false;
}
boolean r... |
06a0e0f03930a31d8eb12fbea3ad157238e00e47 | src/renderer/components/server-list.scss | src/renderer/components/server-list.scss | @import "breakpoint";
#server-list {
/**
* 1 card per row
*/
.ui.cards > .card {
width: 100%;
}
/**
* 2 cards per row
*/
@include respond-to('bigger than small') {
.ui.cards {
margin-left: -1em;
margin-right: -1em;
}
.ui.cards > .card {
width: calc( 50% - 2e... | @import "breakpoint";
#server-list {
/**
* 1 card per row
*/
.ui.cards > .card {
width: 100%;
}
/**
* 2 cards per row
*/
@include respond-to('bigger than small') {
.ui.cards {
margin-left: -1em;
margin-right: -1em;
}
.ui.cards > .card {
width: calc( 50% - 2e... | Fix coloring of server list items in dark mode | Fix coloring of server list items in dark mode
Signed-off-by: Matthew Peveler <ceb7192332cc0210660ce4c985cae5ba0e431884@gmail.com>
| SCSS | mit | sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui | scss | ## Code Before:
@import "breakpoint";
#server-list {
/**
* 1 card per row
*/
.ui.cards > .card {
width: 100%;
}
/**
* 2 cards per row
*/
@include respond-to('bigger than small') {
.ui.cards {
margin-left: -1em;
margin-right: -1em;
}
.ui.cards > .card {
width: ... |
adc826f1b86a8cb1b9867744ced9aaf30a96de49 | app/controllers/atmosphere/api/v1/user_keys_controller.rb | app/controllers/atmosphere/api/v1/user_keys_controller.rb | module Atmosphere
module Api
module V1
class UserKeysController < Atmosphere::Api::ApplicationController
load_and_authorize_resource :user_key,
class: 'Atmosphere::UserKey'
include Atmosphere::Api::Auditable
respond_to :json
def index
respond_with @user... | module Atmosphere
module Api
module V1
class UserKeysController < Atmosphere::Api::ApplicationController
load_and_authorize_resource :user_key,
class: 'Atmosphere::UserKey'
include Atmosphere::Api::Auditable
respond_to :json
def index
respond_with @user... | Add user_keys api index order by name | Add user_keys api index order by name
| Ruby | mit | donpiekarz/atmosphere,dice-cyfronet/atmosphere,dice-cyfronet/atmosphere,donpiekarz/atmosphere,dice-cyfronet/atmosphere,donpiekarz/atmosphere | ruby | ## Code Before:
module Atmosphere
module Api
module V1
class UserKeysController < Atmosphere::Api::ApplicationController
load_and_authorize_resource :user_key,
class: 'Atmosphere::UserKey'
include Atmosphere::Api::Auditable
respond_to :json
def index
re... |
28b2b777ddbab19066704f386d07f2851e1b94c0 | src/app/core/routing/app-name-guard.service.ts | src/app/core/routing/app-name-guard.service.ts | import { Injectable } from "@angular/core";
import { CanActivate, Router } from "@angular/router";
import { ActivatedRouteSnapshot } from "@angular/router";
import { RouterStateSnapshot } from "@angular/router";
import log from "loglevel";
/**
*
*/
@Injectable()
export class AppNameGuard implements CanActivate {
c... | import { Injectable } from "@angular/core";
import { CanActivate, Router } from "@angular/router";
import { ActivatedRouteSnapshot } from "@angular/router";
import { RouterStateSnapshot } from "@angular/router";
import log from "loglevel";
import { RouteService } from "../../shared/services/route.service";
/**
*
*/
... | Add setBackupAppName to app name guard | Add setBackupAppName to app name guard
| TypeScript | mit | chipster/chipster-web,chipster/chipster-web,chipster/chipster-web | typescript | ## Code Before:
import { Injectable } from "@angular/core";
import { CanActivate, Router } from "@angular/router";
import { ActivatedRouteSnapshot } from "@angular/router";
import { RouterStateSnapshot } from "@angular/router";
import log from "loglevel";
/**
*
*/
@Injectable()
export class AppNameGuard implements C... |
78c22ec290bb552949fb1ae2bcb5fa082d2edf4d | README.md | README.md |
Abstractions to work with cassandra. Currently under development.
|
Abstractions to work with cassandra. Currently under development.
[](http://travis-ci.org/brainopia/cassandra-mapper)
[](https://codeclimate.com/github/brainopia/ca... | Add badges to track quality and builds | Add badges to track quality and builds
| Markdown | mit | brainopia/cassandra-mapper | markdown | ## Code Before:
Abstractions to work with cassandra. Currently under development.
## Instruction:
Add badges to track quality and builds
## Code After:
Abstractions to work with cassandra. Currently under development.
[](http://travis-ci.o... |
5ddd933dfa3f939ad4cf271a7aba93fe4bbd192a | FreshDoctrineEnumBundle.php | FreshDoctrineEnumBundle.php | <?php
/*
* This file is part of the FreshDoctrineEnumBundle
*
* (c) Artem Genvald <genvaldartem@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fresh\DoctrineEnumBundle;
use Symfony\Component\HttpKernel\Bundl... | <?php
/*
* This file is part of the FreshDoctrineEnumBundle
*
* (c) Artem Genvald <genvaldartem@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fresh\DoctrineEnumBundle;
use Symfony\Component\HttpKernel\Bundl... | Add parent call in boot method | Add parent call in boot method
| PHP | mit | fre5h/DoctrineEnumBundle | php | ## Code Before:
<?php
/*
* This file is part of the FreshDoctrineEnumBundle
*
* (c) Artem Genvald <genvaldartem@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fresh\DoctrineEnumBundle;
use Symfony\Component\... |
91b5c447a8f40f5b6f8f7cf1e3e546ffc393ee31 | sql/src/test/BugTracker-2008/Tests/copy-format.SF-2468513.sql | sql/src/test/BugTracker-2008/Tests/copy-format.SF-2468513.sql | start transaction;
CREATE TABLE my_copytest (
col1 INT,
col2 INT,
col3 INT,
col4 VARCHAR(1),
col5 VARCHAR(1)
) ;
COPY 3 RECORDS INTO my_copytest FROM stdin USING DELIMITERS '|','\n'
NULL as '';
123|1.01||aaa|bbb
553|.02||aaa|bbb
223|2.03||aaa|bbb
select * from my_copytest;
abort;
| CREATE TABLE my_copytest (
col1 INT,
col2 INT,
col3 INT,
col4 VARCHAR(1),
col5 VARCHAR(1)
) ;
COPY 1 RECORDS INTO my_copytest FROM stdin USING DELIMITERS '|','\n'
NULL as '';
123|1.01||a|b
COPY 1 RECORDS INTO my_copytest FROM stdin USING DELIMITERS '|','\n'
NULL as '';
553|.02||a|b
COPY 1 RECORDS INTO my_copytest FR... | Use a single error per line. | Use a single error per line.
| SQL | mpl-2.0 | zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb | sql | ## Code Before:
start transaction;
CREATE TABLE my_copytest (
col1 INT,
col2 INT,
col3 INT,
col4 VARCHAR(1),
col5 VARCHAR(1)
) ;
COPY 3 RECORDS INTO my_copytest FROM stdin USING DELIMITERS '|','\n'
NULL as '';
123|1.01||aaa|bbb
553|.02||aaa|bbb
223|2.03||aaa|bbb
select * from my_copytest;
abort;
## Instruction:
Use ... |
cf843ec2d6dc8fa4b32020ed571db0c3c9cdfa96 | app/controllers/applications_controller.rb | app/controllers/applications_controller.rb | class ApplicationsController < ApplicationController
before_action :set_application, only: [:destroy]
def new
end
def create
@application = Doorkeeper::Application.new(application_params[:doorkeeper_application])
@application.owner = current_user if Doorkeeper.configuration.confirm_application_owner?
... | class ApplicationsController < ApplicationController
before_action :set_application, only: [:destroy]
def new
end
def create
@application = Doorkeeper::Application.new(application_params[:doorkeeper_application])
@application.owner = current_user if Doorkeeper.configuration.confirm_application_owner?
... | Fix a double period in an error message | Fix a double period in an error message
| Ruby | agpl-3.0 | BatedUrGonnaDie/splits-io,BatedUrGonnaDie/splits-io,glacials/splits-io,glacials/splits-io,BatedUrGonnaDie/splits-io,glacials/splits-io,BatedUrGonnaDie/splits-io,glacials/splits-io | ruby | ## Code Before:
class ApplicationsController < ApplicationController
before_action :set_application, only: [:destroy]
def new
end
def create
@application = Doorkeeper::Application.new(application_params[:doorkeeper_application])
@application.owner = current_user if Doorkeeper.configuration.confirm_appl... |
964c8f87f848ca5829f349c7fa606384de1ab4a4 | SwiftIconFont/Classes/Extensions/SwiftIconFont+UIBarButtonItem.swift | SwiftIconFont/Classes/Extensions/SwiftIconFont+UIBarButtonItem.swift | //
// SwiftIconFont+UIBarButtonItem.swift
// SwiftIconFont
//
// Created by Sedat Gökbek ÇİFTÇİ on 13.10.2017.
// Copyright © 2017 Sedat Gökbek ÇİFTÇİ. All rights reserved.
//
import UIKit
public extension UIBarButtonItem {
func icon(from font: Fonts, code: String, ofSize size: CGFloat){
var textAttri... | //
// SwiftIconFont+UIBarButtonItem.swift
// SwiftIconFont
//
// Created by Sedat Gökbek ÇİFTÇİ on 13.10.2017.
// Copyright © 2017 Sedat Gökbek ÇİFTÇİ. All rights reserved.
//
import UIKit
public extension UIBarButtonItem {
func icon(from font: Fonts, code: String, ofSize size: CGFloat){
var textAttri... | Set TitleTextAttributes for disabled BarButtonItem | Set TitleTextAttributes for disabled BarButtonItem
| Swift | mit | 0x73/SwiftIconFont,0x73/SwiftIconFont,0x73/SwiftIconFont | swift | ## Code Before:
//
// SwiftIconFont+UIBarButtonItem.swift
// SwiftIconFont
//
// Created by Sedat Gökbek ÇİFTÇİ on 13.10.2017.
// Copyright © 2017 Sedat Gökbek ÇİFTÇİ. All rights reserved.
//
import UIKit
public extension UIBarButtonItem {
func icon(from font: Fonts, code: String, ofSize size: CGFloat){
... |
f9b45747950510080b436e4d202545a4d2ac3d24 | lib/gabrake/collector.rb | lib/gabrake/collector.rb | module Gabrake
class Collector
URL = 'http://www.google-analytics.com/collect'
def self.event_for(exception, context)
event = Event.new(exception)
unless Gabrake.tracking_id
raise ArgumentError.new('You need to specify Google Analytics Tracking ID in `Gabrake.tracking_id\'')
end
... | module Gabrake
class Collector
URL = 'http://www.google-analytics.com/collect'
def self.event_for(exception, context)
event = Event.new(exception)
unless Gabrake.tracking_id
raise ArgumentError.new('You need to specify Google Analytics Tracking ID in `Gabrake.tracking_id\'')
end
... | Fix issue with backtrace empty backtrace locations | Fix issue with backtrace empty backtrace locations
| Ruby | mit | smolnar/gabrake,smolnar/gabrake | ruby | ## Code Before:
module Gabrake
class Collector
URL = 'http://www.google-analytics.com/collect'
def self.event_for(exception, context)
event = Event.new(exception)
unless Gabrake.tracking_id
raise ArgumentError.new('You need to specify Google Analytics Tracking ID in `Gabrake.tracking_id\... |
0cb6bc28afdcc4fb3a1e1998e189eba0c87f7998 | app/views/modalWrapper.html | app/views/modalWrapper.html | <!-- Modal Button -->
<span ng-click="click()" class="{{attr.modalBtnClasses}}" data-toggle="modal" data-target="#{{attr.modalId}}" ng-transclude></span>
<!-- Modal -->
<div id="{{attr.modalId}}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dia... | <!-- Modal Button -->
<span ng-click="click()" class="{{attr.modalBtnClasses}}" data-toggle="modal" data-target="#{{attr.modalId}}" ng-transclude></span>
<!-- Modal -->
<div id="{{attr.modalId}}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="{{attr.mod... | Put attributes on modal to disable escape closing and click away closing. | Put attributes on modal to disable escape closing and click away closing.
| HTML | mit | TAMULib/Weaver-UI-Core,TAMULib/Weaver-UI-Core | html | ## Code Before:
<!-- Modal Button -->
<span ng-click="click()" class="{{attr.modalBtnClasses}}" data-toggle="modal" data-target="#{{attr.modalId}}" ng-transclude></span>
<!-- Modal -->
<div id="{{attr.modalId}}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div ... |
1ffdb8e64dafa64b65ca5a68874e96d9db5a1643 | README.md | README.md |
Elm Library for Native WebSocket
see `https//github.com/yasuyuky/elm-websocket/blob/master/example.elm` for usage
# LICENSE
BSD3
# Disclaimer
This library is experimental state and not fully tested.
APIs may change in the future.
| ** Since Elm 0.17, the official implementation exists. **
** https://github.com/elm-lang/websocket **
** This library is for elm 0.16 **
# WebSocket for Elm
Elm Library for Native WebSocket
see `https//github.com/yasuyuky/elm-websocket/blob/master/example.elm` for usage
# License
BSD3
# Disclaimer
This library ... | Add notice about elm 0.17 | Add notice about elm 0.17
| Markdown | bsd-3-clause | yasuyuky/elm-websocket | markdown | ## Code Before:
Elm Library for Native WebSocket
see `https//github.com/yasuyuky/elm-websocket/blob/master/example.elm` for usage
# LICENSE
BSD3
# Disclaimer
This library is experimental state and not fully tested.
APIs may change in the future.
## Instruction:
Add notice about elm 0.17
## Code After:
** Since ... |
1a2cd9131e6688419b80fb67eb0ec1937425188d | README.md | README.md |
[](https://travis-ci.org/Caleydo/caleydo.github.io)
The new Caleydo website built with [Jekyll](https://jekyllrb.com),
[SASS](https://www.sass-lang.com),
[Bourbon](https://bourbon.io),
[Neat](https://neat.bourbon.io),
and [Bitters](http... |
The new Caleydo website built with [Jekyll](https://jekyllrb.com),
[SASS](https://www.sass-lang.com),
[Bourbon](https://bourbon.io),
[Neat](https://neat.bourbon.io),
and [Bitters](https://bitters.bourbon.io).
## Emulating github-pages
The site is built by Github using Jekyll.
To preview locally, use the `github-page... | Remove travis build status batch | Remove travis build status batch | Markdown | bsd-3-clause | Caleydo/website,Caleydo/website,Caleydo/caleydo.github.io,Caleydo/website,Caleydo/caleydo.github.io | markdown | ## Code Before:
[](https://travis-ci.org/Caleydo/caleydo.github.io)
The new Caleydo website built with [Jekyll](https://jekyllrb.com),
[SASS](https://www.sass-lang.com),
[Bourbon](https://bourbon.io),
[Neat](https://neat.bourbon.io),
an... |
3b1d90e46a1ad583f0dff62fc357ff0532357d63 | spec/support/confirm_helpers.rb | spec/support/confirm_helpers.rb |
RSpec.configure do |config|
config.around do |example|
if example.metadata.key?(:confirmable)
old_user = Spree::User
begin
example.run
ensure
Spree.const_set('User', old_user)
end
else
example.run
end
end
config.before do |example|
if example.metada... |
RSpec.configure do |config|
config.around do |example|
if example.metadata.key?(:confirmable)
old_user = Spree::User
begin
example.run
ensure
Spree.send(:remove_const, :User)
Spree.const_set('User', old_user)
end
else
example.run
end
end
config.... | Fix "already initialized constant" warnings about Spree::User | Fix "already initialized constant" warnings about Spree::User
| Ruby | bsd-3-clause | solidusio/solidus_auth_devise,solidusio/solidus_auth_devise,solidusio/solidus_auth_devise | ruby | ## Code Before:
RSpec.configure do |config|
config.around do |example|
if example.metadata.key?(:confirmable)
old_user = Spree::User
begin
example.run
ensure
Spree.const_set('User', old_user)
end
else
example.run
end
end
config.before do |example|
i... |
51ad5db13df68765fecfdbacb0fa3dcf9e81014d | zsh/starship.toml | zsh/starship.toml | [cmd_duration]
disabled = true
| [cmd_duration]
disabled = true
[aws]
symbol = " "
[conda]
symbol = " "
[dart]
symbol = " "
[directory]
read_only = " "
[docker_context]
symbol = " "
[elixir]
symbol = " "
[elm]
symbol = " "
[git_branch]
symbol = " "
[golang]
symbol = " "
[hg_branch]
symbol = " "
[java]
symbol = " "
[julia]
symbo... | Use nerd font glyphs in prompt | Use nerd font glyphs in prompt
Use nerd font glyphs in prompt.
| TOML | mit | routeaccess/dotfiles,nevinvalsaraj/dotfiles,nevinvalsaraj/dotfiles,routeaccess/dotfiles,routeaccess/dotfiles,nevinvalsaraj/dotfiles | toml | ## Code Before:
[cmd_duration]
disabled = true
## Instruction:
Use nerd font glyphs in prompt
Use nerd font glyphs in prompt.
## Code After:
[cmd_duration]
disabled = true
[aws]
symbol = " "
[conda]
symbol = " "
[dart]
symbol = " "
[directory]
read_only = " "
[docker_context]
symbol = " "
[elixir]
symbol... |
260f2d7ac95f9215c4d36066c5f40710349e79fd | angular_components/lib/src/material_tree/material_tree_expand_state.dart | angular_components/lib/src/material_tree/material_tree_expand_state.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
/// Represents the state of expansion of an option in a material tree.
///
/// If... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
/// Represents the state of expansion of an option in a material tree.
///
/// If... | Make a private field final. | Make a private field final.
PiperOrigin-RevId: 252820617
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components | dart | ## Code Before:
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
/// Represents the state of expansion of an option in a material ... |
19b4aa39ae1f6e6b5226fce1d5c5bca638028099 | app/views/layouts/_site.html.haml | app/views/layouts/_site.html.haml | %nav#site
.go_to_content
%a(href="#contents") Aller au contenu
%a(href="#sidebar") Aller au menu
%ul
%li= link_to "Accueil", '/'
%li= link_to "Dépêches", '/news'
%li= link_to "Journaux", '/journaux'
%li= link_to "Forums", '/forums'
%li= link_to "Sondages", '/sondages'
%li= link_to "W... | %nav#site
.go_to_content
%a(href="#contents") Aller au contenu
%a(href="#sidebar") Aller au menu
%ul
%li= link_to "Accueil", '/'
%li= link_to "Dépêches", '/news'
%li= link_to "Journaux", '/journaux'
%li= link_to "Forums", '/forums'
%li= link_to "Sondages", '/sondages'
%li= link_to "W... | Add an id to the search button | Add an id to the search button
| Haml | agpl-3.0 | cykl/linuxfr.org,linuxfrorg/linuxfr.org,linuxfrorg/linuxfr.org,chtitux/linuxfr.org,chtitux/linuxfr.org,linuxfrorg/linuxfr.org,linuxfrorg/linuxfr.org,cykl/linuxfr.org | haml | ## Code Before:
%nav#site
.go_to_content
%a(href="#contents") Aller au contenu
%a(href="#sidebar") Aller au menu
%ul
%li= link_to "Accueil", '/'
%li= link_to "Dépêches", '/news'
%li= link_to "Journaux", '/journaux'
%li= link_to "Forums", '/forums'
%li= link_to "Sondages", '/sondages'
... |
e8c664797ebde85076abff5fcb36b721f67d8286 | spec/factories/engine_setup_test_posts.rb | spec/factories/engine_setup_test_posts.rb |
FactoryGirl.define do
factory :engine_setup_test_post, :class => 'Post' do
title "MyString"
end
end
|
FactoryGirl.define do
factory :engine_setup_test_post, :class => 'EngineSetupTest::Post' do
title "MyString"
end
end
| Add namespace to generated factory. | Add namespace to generated factory.
| Ruby | mit | CultivateHQ/EngineWithFactoryGirl,CultivateHQ/EngineWithFactoryGirl | ruby | ## Code Before:
FactoryGirl.define do
factory :engine_setup_test_post, :class => 'Post' do
title "MyString"
end
end
## Instruction:
Add namespace to generated factory.
## Code After:
FactoryGirl.define do
factory :engine_setup_test_post, :class => 'EngineSetupTest::Post' do
title "MyString"
end
end
|
ee8eac453b6e1b260c5e837391524b4ac06d7502 | app/views/forums/forums/_form.html.erb | app/views/forums/forums/_form.html.erb | <%= form_for @forum, url: @forum.new_record? ? course_forums_path(@course) : course_forum_path(@course, @forum) do |f| %>
<%= f.text_field :name %>
<%= f.text_area :description, class: 'span7 html-editor' %>
<%= f.submit class: 'btn btn-primary' %>
<% end %>
| <%= form_for @forum, url: @forum.new_record? ? course_forums_path(@course) : course_forum_path(@course, @forum),
html: { class: 'form-horizontal' } do |f| %>
<div class="row-fluid control-group">
<%= f.label :name, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :name, ... | Clean up the Create Forums page. | Clean up the Create Forums page.
| HTML+ERB | mit | nusedutech/coursemology.org,nnamon/coursemology.org,Coursemology/coursemology.org,nusedutech/coursemology.org,dariusf/coursemology.org,nnamon/coursemology.org,nusedutech/coursemology.org,dariusf/coursemology.org,dariusf/coursemology.org,allenwq/coursemology.org,dariusf/coursemology.org,nnamon/coursemology.org,allenwq/c... | html+erb | ## Code Before:
<%= form_for @forum, url: @forum.new_record? ? course_forums_path(@course) : course_forum_path(@course, @forum) do |f| %>
<%= f.text_field :name %>
<%= f.text_area :description, class: 'span7 html-editor' %>
<%= f.submit class: 'btn btn-primary' %>
<% end %>
## Instruction:
Clean up the Create F... |
2e6020e9e219d4db8e59db9fb10406880e98618f | scripts/linux/setup-beaglebone-black.sh | scripts/linux/setup-beaglebone-black.sh |
set -e
echo "Updating scripts and tools..."
cd /opt/scripts/
git pull
echo "Updating Kernel..."
/opt/scripts/tools/update_kernel.sh
echo "Updating bootloader..."
/opt/scripts/tools/developers/update_bootloader.sh
uENV_path="/boot/uEnv.txt"
if [ -e "$uENV_path" ]
then
echo "Enabling eMMC flashing..."
sed -i '/i... |
set -e
echo "Updating scripts and tools..."
cd /opt/scripts/
git pull
echo "Updating Kernel..."
/opt/scripts/tools/update_kernel.sh --lts-4_19
echo "Updating bootloader..."
/opt/scripts/tools/developers/update_bootloader.sh
uENV_path="/boot/uEnv.txt"
if [ -e "$uENV_path" ]
then
echo "Enabling eMMC flashing..."
... | Install 4.19 kernel on the BBB | Install 4.19 kernel on the BBB
| Shell | mit | ferrarimarco/home-lab,ferrarimarco/home-lab | shell | ## Code Before:
set -e
echo "Updating scripts and tools..."
cd /opt/scripts/
git pull
echo "Updating Kernel..."
/opt/scripts/tools/update_kernel.sh
echo "Updating bootloader..."
/opt/scripts/tools/developers/update_bootloader.sh
uENV_path="/boot/uEnv.txt"
if [ -e "$uENV_path" ]
then
echo "Enabling eMMC flashing.... |
0a9d1b2cc5550189ccb9abeec5e2a09bda6292f2 | README.md | README.md | [](https://godoc.org/github.com/pmoroney/resume)
# Patrick Moroney's résumé
Linkedin:
https://www.linkedin.com/in/patrickmoroney/
| [](https://godoc.org/github.com/pmoroney/resume)
# Patrick Moroney's résumé
[Linkedin](https://www.linkedin.com/in/patrickmoroney/)
[PDF Version](https://github.com/pmoroney/resume/raw/master/Patrick_Moroney.pdf)
| Add link to PDF version | Add link to PDF version | Markdown | mit | pmoroney/resume | markdown | ## Code Before:
[](https://godoc.org/github.com/pmoroney/resume)
# Patrick Moroney's résumé
Linkedin:
https://www.linkedin.com/in/patrickmoroney/
## Instruction:
Add link to PDF version
## Code After:
[;
const EOL = require('os').EOL;
// this CSV parser assumes that:
// - the first line contains column names
// - the delimiter is a comma
const options = {
escapeChar : '"', // default is an empty string
enclosedChar : '"', // default is an empty string
endLine: EOL
};
module... | const csv_stream = require('csv-stream');
const EOL = require('os').EOL;
// this CSV parser assumes that:
// - the first line contains column names
// - the delimiter is a comma
const options = {
escapeChar : '"', // default is an empty string
enclosedChar : '"', // default is an empty string
endLine: EOL
};
m... | Work around invalid default encoding option in csv-stream | Work around invalid default encoding option in csv-stream
As of Node.js 8, the default encoding value used by the (very old)
csv-stream module is not accepted.
As mentioned in https://github.com/lbdremy/node-csv-stream/issues/13,
explicitly setting the encoding to undefined is enough to work around
the issue.
| JavaScript | mit | pelias/whosonfirst,pelias/whosonfirst | javascript | ## Code Before:
const parse = require('csv-stream');
const EOL = require('os').EOL;
// this CSV parser assumes that:
// - the first line contains column names
// - the delimiter is a comma
const options = {
escapeChar : '"', // default is an empty string
enclosedChar : '"', // default is an empty string
endLine... |
3619a796dc015f673260575a1910b31bb924ebc8 | internal/ui/ui_windows.go | internal/ui/ui_windows.go | // Copyright 2016 Hajime Hoshi
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2016 Hajime Hoshi
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Check the return value of ReleaseDC() | ui: Check the return value of ReleaseDC()
| Go | apache-2.0 | hajimehoshi/ebiten,hajimehoshi/ebiten | go | ## Code Before:
// Copyright 2016 Hajime Hoshi
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
2216caf836c1f2864103e8930f60713c226a8464 | src/sql/parse.py | src/sql/parse.py | from ConfigParser import ConfigParser
from sqlalchemy.engine.url import URL
def parse(cell, config):
parts = [part.strip() for part in cell.split(None, 1)]
if not parts:
return {'connection': '', 'sql': ''}
if parts[0].startswith('[') and parts[0].endswith(']'):
parser = ConfigParser()
... | from ConfigParser import ConfigParser
from sqlalchemy.engine.url import URL
def parse(cell, config):
parts = [part.strip() for part in cell.split(None, 1)]
if not parts:
return {'connection': '', 'sql': ''}
if parts[0].startswith('[') and parts[0].endswith(']'):
section = parts[0].lstrip('... | Allow DNS file to be less specific | Allow DNS file to be less specific
| Python | mit | catherinedevlin/ipython-sql,catherinedevlin/ipython-sql | python | ## Code Before:
from ConfigParser import ConfigParser
from sqlalchemy.engine.url import URL
def parse(cell, config):
parts = [part.strip() for part in cell.split(None, 1)]
if not parts:
return {'connection': '', 'sql': ''}
if parts[0].startswith('[') and parts[0].endswith(']'):
parser = Co... |
c236523f0b079e528b761f5d516da87294591c1e | assets/static/js/garagepi.js | assets/static/js/garagepi.js | "use strict";
$(document).ready(function(){
var $btnLight = $("#btnLight");
var lightText = $btnLight.text();
var lightOn;
if (lightText = "Light On") {
lightOn = true;
} else {
lightOn = false;
}
function toggleGarageDoor() {
$.post("/toggle");
}
function turnLightOn() {
$.post("... | "use strict";
$(document).ready(function(){
var $btnLight = $("#btnLight");
var lightText = $btnLight.text();
var lightOn = (lightText == "Light Off");
function toggleGarageDoor() {
$.post("/toggle");
}
function turnLightOn() {
$.post("/light?state=on", parseLightState);
}
function turnLig... | Add callback for homepage javascript light POST request. | Add callback for homepage javascript light POST request.
| JavaScript | mit | robdimsdale/garagepi,robdimsdale/garagepi,robdimsdale/garagepi | javascript | ## Code Before:
"use strict";
$(document).ready(function(){
var $btnLight = $("#btnLight");
var lightText = $btnLight.text();
var lightOn;
if (lightText = "Light On") {
lightOn = true;
} else {
lightOn = false;
}
function toggleGarageDoor() {
$.post("/toggle");
}
function turnLightOn(... |
6b5fe3dae3af4325273f689b91d8dbbe610dbfee | vagrantfiles/cachier.rb | vagrantfiles/cachier.rb | Vagrant.configure('2') do |c|
if Vagrant.has_plugin?('vagrant-cachier')
c.cache.auto_detect = true
c.cache.scope = :box
end
c.vm.provider 'virtualbox' do |v|
v.customize [
'storagectl', :id,
'--name', 'SATA Controller',
'--hostiocache', 'on'
]
end
end
| Vagrant.configure('2') do |c|
c.ssh.insert_key = false
if Vagrant.has_plugin?('vagrant-cachier')
c.cache.auto_detect = true
c.cache.scope = :box
end
c.vm.provider 'virtualbox' do |v|
v.customize [
'storagectl', :id,
'--name', 'SATA Controller',
'--hostiocache', 'on'
]
end
end... | Work around issue in newest Vagrant | Work around issue in newest Vagrant
Don't really know about this at all... | Ruby | apache-2.0 | mthssdrbrg/kafka-cookbook,mthssdrbrg/kafka-cookbook,mthssdrbrg/kafka-cookbook | ruby | ## Code Before:
Vagrant.configure('2') do |c|
if Vagrant.has_plugin?('vagrant-cachier')
c.cache.auto_detect = true
c.cache.scope = :box
end
c.vm.provider 'virtualbox' do |v|
v.customize [
'storagectl', :id,
'--name', 'SATA Controller',
'--hostiocache', 'on'
]
end
end
## Instru... |
79ec518d1ee2ac102ef98e252af111ef9941857c | applications/account/src/app/signup/CheckoutButton.tsx | applications/account/src/app/signup/CheckoutButton.tsx | import React from 'react';
import { PAYMENT_METHOD_TYPE, PAYMENT_METHOD_TYPES } from '@proton/shared/lib/constants';
import { c } from 'ttag';
import { SubscriptionCheckResponse } from '@proton/shared/lib/interfaces';
import { PrimaryButton, PayPalButton } from '@proton/components';
import { SignupPayPal } from './int... | import React from 'react';
import { PAYMENT_METHOD_TYPE, PAYMENT_METHOD_TYPES } from '@proton/shared/lib/constants';
import { c } from 'ttag';
import { SubscriptionCheckResponse } from '@proton/shared/lib/interfaces';
import { PrimaryButton, StyledPayPalButton } from '@proton/components';
import { SignupPayPal } from ... | Use StyledPayPalButton on signup checkout | Use StyledPayPalButton on signup checkout
CP-2283
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | typescript | ## Code Before:
import React from 'react';
import { PAYMENT_METHOD_TYPE, PAYMENT_METHOD_TYPES } from '@proton/shared/lib/constants';
import { c } from 'ttag';
import { SubscriptionCheckResponse } from '@proton/shared/lib/interfaces';
import { PrimaryButton, PayPalButton } from '@proton/components';
import { SignupPayP... |
bc26a19bb8bc03921cad9edd425f62ae17036480 | app/views/layouts/application.html.erb | app/views/layouts/application.html.erb | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<link rel="shortcut icon" href="/favicon.ico" />
<title><%= "Badi2010 - " + (content_for?(:title) ? content_for(:title) : controller.action_name) %></title>
<%= stylesheet_link_tag 'application', media: :all %>
... | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<link rel="shortcut icon" href="/favicon.ico" />
<title><%= "Badi2010 - " + (content_for?(:title) ? content_for(:title) : controller.action_name) %></title>
... | Add a hint for IE to use modern rendering | Add a hint for IE to use modern rendering
| HTML+ERB | bsd-3-clause | kreba/badifraubrunnen,kreba/badifraubrunnen,kreba/badifraubrunnen | html+erb | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<link rel="shortcut icon" href="/favicon.ico" />
<title><%= "Badi2010 - " + (content_for?(:title) ? content_for(:title) : controller.action_name) %></title>
<%= stylesheet_link_tag 'application', m... |
fa25b78513feb5024ba03a621cafbba47d942af7 | lib/geocoder/results/yahoo.rb | lib/geocoder/results/yahoo.rb | require 'geocoder/results/base'
module Geocoder::Result
class Yahoo < Base
def coordinates
[latitude.to_f, longitude.to_f]
end
def address(format = :full)
(1..3).to_a.map{ |i| @data["line#{i}"] }.reject{ |i| i.nil? or i == "" }.join(", ")
end
def self.yahoo_attributes
%w[qual... | require 'geocoder/results/base'
module Geocoder::Result
class Yahoo < Base
def coordinates
[latitude.to_f, longitude.to_f]
end
def address(format = :full)
(1..3).to_a.map{ |i| @data["line#{i}"] }.reject{ |i| i.nil? or i == "" }.join(", ")
end
def self.response_attributes
%w[q... | Use more generic method name. | Use more generic method name.
| Ruby | mit | TrangPham/geocoder,eugenehp/ruby-geocoder,rios1993/geocoder,3mundi/geocoder,mehlah/geocoder,tiramizoo/geocoder,nerdyglasses/geocoder,gogovan/geocoder-olleh,brian-ewell/geocoder,mdebo/geocoder,john/geocoder,davydovanton/geocoder,mveer99/geocoder,tortuba/geocoder,malandrina/geocoder,jaigouk/geocoder-olleh,epyatopal/geoco... | ruby | ## Code Before:
require 'geocoder/results/base'
module Geocoder::Result
class Yahoo < Base
def coordinates
[latitude.to_f, longitude.to_f]
end
def address(format = :full)
(1..3).to_a.map{ |i| @data["line#{i}"] }.reject{ |i| i.nil? or i == "" }.join(", ")
end
def self.yahoo_attribut... |
12f4c4f77a168a936861f72a84330c5b958eb81e | vim/sources/mappings.vim | vim/sources/mappings.vim | "Map proper tabbing commands
nmap <C-right> :tabnext<CR>
nmap <C-left> :tabprevious<CR>
map <C-right> :tabnext<CR>
map <C-left> :tabprevious<CR>
imap <C-right> <ESC>:tabprevious<CR>
imap <C-left> <ESC>:tabnext<CR>
" Enable split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
... | "Map proper tabbing commands
nmap <C-right> :tabnext<CR>
nmap <C-left> :tabprevious<CR>
map <C-right> :tabnext<CR>
map <C-left> :tabprevious<CR>
imap <C-right> <ESC>:tabprevious<CR>
imap <C-left> <ESC>:tabnext<CR>
" Enable split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
... | Clear search highlighting by hitting ESC | vim: Clear search highlighting by hitting ESC
| VimL | mit | janwh/dotfiles | viml | ## Code Before:
"Map proper tabbing commands
nmap <C-right> :tabnext<CR>
nmap <C-left> :tabprevious<CR>
map <C-right> :tabnext<CR>
map <C-left> :tabprevious<CR>
imap <C-right> <ESC>:tabprevious<CR>
imap <C-left> <ESC>:tabnext<CR>
" Enable split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <... |
20e86b5b51080c2450e200a03a755203f4e9cda7 | config/policygenius.yml | config/policygenius.yml | Developers:
members:
- bradwheel
- ianyamey
- j-clark
- JustinTernullo
- kellywu
- PepperTeasdale
- petrgazarov
- elky
channel:
"#engineering"
exclude_titles:
- WIP
| Developers:
members:
- bradwheel
- ianyamey
- j-clark
- JustinTernullo
- kellywu
- PepperTeasdale
- petrgazarov
- elky
channel:
"#engineering"
exclude_titles:
- WIP
- A/B Test
- AB Test
| Add exclude tags for AB test | Add exclude tags for AB test
| YAML | mit | policygenius/seal,policygenius/seal | yaml | ## Code Before:
Developers:
members:
- bradwheel
- ianyamey
- j-clark
- JustinTernullo
- kellywu
- PepperTeasdale
- petrgazarov
- elky
channel:
"#engineering"
exclude_titles:
- WIP
## Instruction:
Add exclude tags for AB test
## Code After:
Developers:
members:
- ... |
01b26332ef434288c5eec694416f7fb93267e1f9 | src/lib.rs | src/lib.rs | // hasher_write was stabilised in rust 1.4
#![deny(unused_must_use, warnings, unused_variables, unused_mut)]
#[macro_use] extern crate log;
pub use self::event::IrcEvent;
pub use self::watchers::{
RegisterError,
RegisterErrorType,
JoinResult,
JoinSuccess,
JoinError,
WhoResult,
WhoRecor... | // hasher_write was stabilised in rust 1.4
#![deny(unused_must_use, unused_variables, unused_mut)]
#[macro_use] extern crate log;
pub use self::event::IrcEvent;
pub use self::watchers::{
RegisterError,
RegisterErrorType,
JoinResult,
JoinSuccess,
JoinError,
WhoResult,
WhoRecord,
Who... | Remove deny(warnings): seems harmful for forwards compat | Remove deny(warnings): seems harmful for forwards compat
| Rust | apache-2.0 | infinityb/rust-irc | rust | ## Code Before:
// hasher_write was stabilised in rust 1.4
#![deny(unused_must_use, warnings, unused_variables, unused_mut)]
#[macro_use] extern crate log;
pub use self::event::IrcEvent;
pub use self::watchers::{
RegisterError,
RegisterErrorType,
JoinResult,
JoinSuccess,
JoinError,
WhoResu... |
cd0f959e68b1115a8ae0449005e6ccefd0ef3e48 | bashrc.d/80-ls-aliases.bash | bashrc.d/80-ls-aliases.bash | alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
| alias ll='ls -alF --color=always'
alias la='ls -A'
alias l='ls -CF'
| Make ll always have color | Make ll always have color
| Shell | unlicense | TheDauthi/dotfiles,Juxtaposedwords/dotfiles,TheDauthi/dotfiles | shell | ## Code Before:
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
## Instruction:
Make ll always have color
## Code After:
alias ll='ls -alF --color=always'
alias la='ls -A'
alias l='ls -CF'
|
bfb48c3c5d0422f7e85f7f51c01494525d9f68fa | script/installation/fedora-setup.sh | script/installation/fedora-setup.sh | dnf install -y git \
gcc-c++ \
cmake \
gflags-devel \
protobuf-devel \
bison \
flex \
libevent-devel \
boost-devel \
jemalloc-devel \
valgrind \
lcov
| dnf install -y git \
gcc-c++ \
cmake \
gflags-devel \
protobuf-devel \
bison \
flex \
libevent-devel \
boost-devel \
jemalloc-devel \
valgrind \
lcov \
postgresql-contrib
| Add the package for PostgreSQL clients | Add the package for PostgreSQL clients
| Shell | apache-2.0 | haojin2/peloton,wangziqi2016/peloton,yingjunwu/peloton,cmu-db/peloton,seojungmin/peloton,wangziqi2016/peloton,jessesleeping/iso_peloton,AllisonWang/peloton,malin1993ml/peloton,apavlo/peloton,AngLi-Leon/peloton,apavlo/peloton,cmu-db/peloton,PauloAmora/peloton,AngLi-Leon/peloton,vittvolt/15721-peloton,AngLi-Leon/peloton,... | shell | ## Code Before:
dnf install -y git \
gcc-c++ \
cmake \
gflags-devel \
protobuf-devel \
bison \
flex \
libevent-devel \
boost-devel \
jemalloc-devel \
valgrind \
lcov
## Instruction:
Add the package for PostgreSQL clients
## Code After:
dnf install -y git \
gcc-c++ \
cmake \
gflags-devel \
protobuf-deve... |
92c458f58fde23ee98a97b2c4052382bdf08d511 | test/index.js | test/index.js | require('./fake.js')
require('./api.js')
require('./transactionRunner.js')
| const argv = require('minimist')(process.argv.slice(2))
if (argv.f) {
require('./fake.js')
} else if (argv.a) {
require('./api.js')
} else if (argv.t) {
require('./transactionRunner.js')
} else {
require('./fake.js')
require('./api.js')
require('./transactionRunner.js')
}
| Allow specification of test suite via command line arg. | Allow specification of test suite via command line arg.
| JavaScript | mpl-2.0 | ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-tx,ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-tx,ethereum/ethereumjs-tx,ethereumjs/ethereumjs-vm,ethereum/ethereumjs-vm,ethereumjs/ethereumjs-vm,ethereumjs/ethereumjs-vm | javascript | ## Code Before:
require('./fake.js')
require('./api.js')
require('./transactionRunner.js')
## Instruction:
Allow specification of test suite via command line arg.
## Code After:
const argv = require('minimist')(process.argv.slice(2))
if (argv.f) {
require('./fake.js')
} else if (argv.a) {
require('./api.js')
} e... |
a618b064473338949bb997f31cd17faf6d27ee75 | showroom/webpack.base.babel.js | showroom/webpack.base.babel.js | import path from 'path';
import webpack from 'webpack';
const paths = {
ASSETS: path.resolve(__dirname, './assets'),
SRC: path.resolve(__dirname),
COMPONENTS: path.resolve(__dirname, '../src'),
DIST: path.resolve(__dirname, './build')
};
module.exports = {
plugins: [
new webpack.ContextReplacementPlugi... | import path from 'path';
import webpack from 'webpack';
import StyleLintPlugin from 'stylelint-webpack-plugin';
const paths = {
ASSETS: path.resolve(__dirname, './assets'),
SRC: path.resolve(__dirname),
COMPONENTS: path.resolve(__dirname, '../src'),
DIST: path.resolve(__dirname, './build')
};
module.exports =... | Define StyleLintPlugin in webpack base config. | Define StyleLintPlugin in webpack base config.
| JavaScript | mit | buildo/react-components,buildo/react-components,buildo/react-components,buildo/react-components | javascript | ## Code Before:
import path from 'path';
import webpack from 'webpack';
const paths = {
ASSETS: path.resolve(__dirname, './assets'),
SRC: path.resolve(__dirname),
COMPONENTS: path.resolve(__dirname, '../src'),
DIST: path.resolve(__dirname, './build')
};
module.exports = {
plugins: [
new webpack.Context... |
96346761b5f0d34452f8c1178316bbfbe90f5b33 | src/rot13.rs | src/rot13.rs | // Implements http://rosettacode.org/wiki/Rot-13
fn rot13 (string: &str) -> String {
fn rot13u8 (c: char) -> char {
let d = c as u8;
match c {
'a' .. 'm'
| 'A' .. 'M' => (d + 13) as char,
'n' .. 'z'
| 'N' .. 'Z' => (d - 13) as char,
_ => c... | // Implements http://rosettacode.org/wiki/Rot-13
fn rot13 (string: &str) -> String {
fn rot13u8 (c: char) -> char {
let d = c as u8;
match c {
'a' .. 'm'
| 'A' .. 'M' => (d + 13) as char,
'n' .. 'z'
| 'N' .. 'Z' => (d - 13) as char,
_ => c... | Remove unnecessary type annotation. `rustc` can figure it out itself. | Remove unnecessary type annotation. `rustc` can figure it out itself.
| Rust | unlicense | crespyl/rust-rosetta,magum/rust-rosetta,pfalabella/rust-rosetta,crr0004/rust-rosetta,magum/rust-rosetta,JIghtuse/rust-rosetta,ZoomRmc/rust-rosetta,ghotiphud/rust-rosetta,Hoverbear/rust-rosetta,sakeven/rust-rosetta | rust | ## Code Before:
// Implements http://rosettacode.org/wiki/Rot-13
fn rot13 (string: &str) -> String {
fn rot13u8 (c: char) -> char {
let d = c as u8;
match c {
'a' .. 'm'
| 'A' .. 'M' => (d + 13) as char,
'n' .. 'z'
| 'N' .. 'Z' => (d - 13) as char,
... |
2a265ebd4a15643285f45b51400f3d8abc31aa9d | setup.cfg | setup.cfg | [bdist_wheel]
universal = 1
[zest.releaser]
; semver-style versions
version-levels = 3
; tags: vX.Y.Z; the double-percent is a guard against ConfigParser.
#tag-format = v%%(version)s
; Version flag location (we use __version__)
python-file-with-version = factory/__init__.py
[distutils]
index-servers = pypi
| [bdist_wheel]
universal = 1
[metadata]
license_file = LICENSE
[zest.releaser]
; semver-style versions
version-levels = 3
; tags: vX.Y.Z; the double-percent is a guard against ConfigParser.
#tag-format = v%%(version)s
; Version flag location (we use __version__)
python-file-with-version = factory/__init__.py
[distu... | Include license file in the generated wheel package | Include license file in the generated wheel package
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:
https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-w... | INI | mit | rrauenza/factory_boy,rbarrois/factory_boy,FactoryBoy/factory_boy | ini | ## Code Before:
[bdist_wheel]
universal = 1
[zest.releaser]
; semver-style versions
version-levels = 3
; tags: vX.Y.Z; the double-percent is a guard against ConfigParser.
#tag-format = v%%(version)s
; Version flag location (we use __version__)
python-file-with-version = factory/__init__.py
[distutils]
index-servers... |
9afec55f4a765b62e9e5b67dffa9d8f68a520987 | requirements.txt | requirements.txt | certifi>=14.05.14 # MPL
six>=1.9.0 # MIT
python-dateutil>=2.5.3 # BSD
setuptools>=21.0.0 # PSF/ZPL
urllib3>=1.19.1,!=1.21 # MIT
pyyaml>=3.12 # MIT
google-auth>=1.0.1 # Apache-2.0
ipaddress>=1.0.17;python_version=="2.7" # PSF
websocket-client>=0.32.0,!=0.40.0,!=0.41.*,!=0.42.* # LGPLv2+
requests # Apache-2.0
requ... | certifi>=14.05.14 # MPL
six>=1.9.0 # MIT
python-dateutil>=2.5.3 # BSD
setuptools>=21.0.0 # PSF/ZPL
urllib3>=1.19.1,!=1.21 # MIT
pyyaml>=3.12 # MIT
google-auth>=1.0.1 # Apache-2.0
ipaddress>=1.0.17;python_version=="2.7" # PSF
websocket-client>=0.32.0,!=0.40.0,!=0.41.*,!=0.42.* # LGPLv2+
requests # Apache-2.0
requ... | Add Azure Active Directory Library to dependencies. | Add Azure Active Directory Library to dependencies.
| Text | apache-2.0 | kubernetes-client/python,kubernetes-client/python | text | ## Code Before:
certifi>=14.05.14 # MPL
six>=1.9.0 # MIT
python-dateutil>=2.5.3 # BSD
setuptools>=21.0.0 # PSF/ZPL
urllib3>=1.19.1,!=1.21 # MIT
pyyaml>=3.12 # MIT
google-auth>=1.0.1 # Apache-2.0
ipaddress>=1.0.17;python_version=="2.7" # PSF
websocket-client>=0.32.0,!=0.40.0,!=0.41.*,!=0.42.* # LGPLv2+
requests #... |
5d5029982a7a0f687faf2f7b49bdc061c8b4144a | hieradata_aws/class/staging/cache.yaml | hieradata_aws/class/staging/cache.yaml | ---
logrotate::conf::days_to_keep: 7
nginx::logging::days_to_keep: 7
router::gor::add_hosts: false
router::gor::replay_targets:
'www-origin.integration.publishing.service.gov.uk': {}
| ---
logrotate::conf::days_to_keep: 7
nginx::logging::days_to_keep: 7
router::gor::add_hosts: false
router::gor::replay_targets:
'www-origin.integration.publishing.service.gov.uk': {}
router::gor::http_disallow_url:
- 'apply-for-a-licence/payment'
- 'apply-for-a-licence/redirect'
- 'apply-for-a-licence/uploaded'... | Exclude stateful Licensify requests from Staging->Integration replay too. | Exclude stateful Licensify requests from Staging->Integration replay too.
| YAML | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet | yaml | ## Code Before:
---
logrotate::conf::days_to_keep: 7
nginx::logging::days_to_keep: 7
router::gor::add_hosts: false
router::gor::replay_targets:
'www-origin.integration.publishing.service.gov.uk': {}
## Instruction:
Exclude stateful Licensify requests from Staging->Integration replay too.
## Code After:
---
logrotat... |
bebcb380447e19d73f4a4fef09393ed18bdd8941 | config/initializers/message_bus.rb | config/initializers/message_bus.rb | MessageBus.long_polling_enabled = true
MessageBus.long_polling_interval = 15000
MessageBus.redis_config = {
host: ENV['REDIS_HOST']
}
MessageBus.user_id_lookup do |env|
auth_token = Rack::Request.new(env).cookies["auth_token"]
User.find_by(authentication_token: auth_token).id
end
| MessageBus.long_polling_enabled = true
MessageBus.long_polling_interval = 15000
MessageBus.redis_config = {
host: ENV['REDIS_HOST']
}
MessageBus.user_id_lookup do |env|
auth_token = Rack::Request.new(env).cookies["auth_token"]
return nil unless auth_token
User.find_by(authentication_token: auth_token).try(:id... | Fix user ID lookup for guests. | Fix user ID lookup for guests.
| Ruby | apache-2.0 | sidaga/hummingbird,erengy/hummingbird,MiLk/hummingbird,saintsantos/hummingbird,sidaga/hummingbird,saintsantos/hummingbird,wlads/hummingbird,xhocquet/hummingbird,vevix/hummingbird,erengy/hummingbird,wlads/hummingbird,saintsantos/hummingbird,Snitzle/hummingbird,NuckChorris/hummingbird,paladique/hummingbird,NuckChorris/hu... | ruby | ## Code Before:
MessageBus.long_polling_enabled = true
MessageBus.long_polling_interval = 15000
MessageBus.redis_config = {
host: ENV['REDIS_HOST']
}
MessageBus.user_id_lookup do |env|
auth_token = Rack::Request.new(env).cookies["auth_token"]
User.find_by(authentication_token: auth_token).id
end
## Instruction... |
9ef6195b246a6ee1c9fb6128bf2c31b524004658 | address-lookup-field/address-lookup-field.html | address-lookup-field/address-lookup-field.html | <link rel="import" href="../../polymer/polymer.html" />
<dom-module id="address-lookup-field">
<template>
<paper-input label="Search for an address" name="alfField" id="alfField" type="text" value="" required>
<label>Search for an address</label>
</template>
<style>
:host {
... | <link rel="import" href="../../polymer/polymer.html" />
<dom-module id="address-lookup-field">
<template>
<paper-input label="Enter an address" name="alfField" id="alfField" type="text" value="" required>
<label>Enter an address</label>
</template>
<style>
:host {
}
la... | Change map lookup address label | Change map lookup address label
| HTML | mit | ParcelForMe/p4m-widgets,ParcelForMe/p4m-widgets,ParcelForMe/p4m-widgets | html | ## Code Before:
<link rel="import" href="../../polymer/polymer.html" />
<dom-module id="address-lookup-field">
<template>
<paper-input label="Search for an address" name="alfField" id="alfField" type="text" value="" required>
<label>Search for an address</label>
</template>
<style>
:ho... |
a2005d98cd81424a2a43277cae0595806751e9dc | swh/web/ui/controller/service.py | swh/web/ui/controller/service.py |
from swh.web.ui.back import http, api_query
from swh.core.json import SWHJSONDecoder
import json
def search(base_url, hashes):
"""Search a content with given hashes.
Args:
hashes, dictionary of hash indexed by key, sha1, sha256, etc...
Returns:
None if no content is found.
... |
from swh.web.ui.back import http, api_query
from swh.core.json import SWHJSONDecoder
import json
def search(base_url, hashes):
"""Search a content with given hashes.
Args:
hashes, dictionary of hash indexed by key, sha1, sha256, etc...
Returns:
None if no content is found.
... | Refactor - Simplify the call to api | Refactor - Simplify the call to api
| Python | agpl-3.0 | SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui | python | ## Code Before:
from swh.web.ui.back import http, api_query
from swh.core.json import SWHJSONDecoder
import json
def search(base_url, hashes):
"""Search a content with given hashes.
Args:
hashes, dictionary of hash indexed by key, sha1, sha256, etc...
Returns:
None if no content is ... |
777616398e7508f053d693edc302a61ce68f1281 | metadata/com.maralexbar.wifikeyview.txt | metadata/com.maralexbar.wifikeyview.txt | Categories:Security
License:GPLv3
Web Site:
Source Code:https://github.com/Maralexbar/Wifi-Key-View
Issue Tracker:https://github.com/Maralexbar/Wifi-Key-View/issues
Auto Name:Wifi Key View
Summary:View saved WiFi passwords
Description:
View saved WiFi passwords. Requires busybox and root access.
.
Requires Root:yes
... | Categories:Security
License:GPLv3
Web Site:
Source Code:https://github.com/Maralexbar/Wifi-Key-View
Issue Tracker:https://github.com/Maralexbar/Wifi-Key-View/issues
Auto Name:Wifi Key View
Summary:View saved WiFi passwords
Description:
View saved WiFi passwords. Requires busybox and root access.
Currently we build fr... | Update Wifi Key View to 1.2 (2) | Update Wifi Key View to 1.2 (2)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Security
License:GPLv3
Web Site:
Source Code:https://github.com/Maralexbar/Wifi-Key-View
Issue Tracker:https://github.com/Maralexbar/Wifi-Key-View/issues
Auto Name:Wifi Key View
Summary:View saved WiFi passwords
Description:
View saved WiFi passwords. Requires busybox and root access.
.
Req... |
8e1fa16831688e20705b1d142e2de9a250c118bd | environment/stage1/conditional.lisp | environment/stage1/conditional.lisp | ;;;; TRE environment
;;;; Copyright (c) 2005-2008 Sven Klose <pixel@copei.de>
(defmacro when (predicate &rest expr)
`(and ,predicate
,(if (cdr expr)
`(progn ,@expr)
(car expr))))
(defmacro unless (predicate &rest expr)
`(when (not ,predicate) ,@expr))
(defun group2 (x)
(if x
(... | ;;;; TRE environment
;;;; Copyright (c) 2005-2008,2011 Sven Klose <pixel@copei.de>
(defmacro when (predicate &rest expr)
`(and ,predicate
,(if (cdr expr)
`(progn ,@expr)
(car expr))))
(defmacro unless (predicate &rest expr)
`(when (not ,predicate) ,@expr))
(defun group2 (x)
(if x
... | TEST keyword accepted as first argument. | CASE: TEST keyword accepted as first argument.
| Common Lisp | mit | SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre | common-lisp | ## Code Before:
;;;; TRE environment
;;;; Copyright (c) 2005-2008 Sven Klose <pixel@copei.de>
(defmacro when (predicate &rest expr)
`(and ,predicate
,(if (cdr expr)
`(progn ,@expr)
(car expr))))
(defmacro unless (predicate &rest expr)
`(when (not ,predicate) ,@expr))
(defun group2 (x)... |
cdb546a9db593d79c2b9935b746e9862a2b1221c | winthrop/people/urls.py | winthrop/people/urls.py | from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required
from winthrop.people.views import ViafAutoSuggest
urlpatterns = [
url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
name='autocomplete-suggest'),
]
| from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required
from winthrop.people.views import ViafAutoSuggest
urlpatterns = [
url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
name='viaf-autosuggest'),
]
| Make the url name for autosuggest clearer | Make the url name for autosuggest clearer
| Python | apache-2.0 | Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django | python | ## Code Before:
from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required
from winthrop.people.views import ViafAutoSuggest
urlpatterns = [
url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
name='autocomplete-suggest'),
]... |
fccc1f4c38e6801132b3a9858b487e782197f829 | addons/l10n_ar_wsafip_fex/test/check_journal.yml | addons/l10n_ar_wsafip_fex/test/check_journal.yml | -
Update database values and create journal.
## !python {model: account.journal, search: "[('journal_class_id.code','=','FVE'), ('company_id','=',ref('l10n_ar_invoice.com_ivari'))]"}: |
-
!python {model: res.company, id: l10n_ar_invoice.com_ivari}: |
self
journal = self.env['account.journal'].sear... | -
Update database values and create journal.
## !python {model: account.journal, search: "[('journal_class_id.code','=','FVE'), ('company_id','=',ref('l10n_ar_invoice.com_ivari'))]"}: |
-
!python {model: res.company, id: l10n_ar_invoice.com_ivari}: |
self
journal = self.env['account.journal'].sear... | Test fail because not update wafip_state variable | [FIX] Test fail because not update wafip_state variable
| YAML | agpl-3.0 | odoo-l10n-ar/l10n_ar_wsafip | yaml | ## Code Before:
-
Update database values and create journal.
## !python {model: account.journal, search: "[('journal_class_id.code','=','FVE'), ('company_id','=',ref('l10n_ar_invoice.com_ivari'))]"}: |
-
!python {model: res.company, id: l10n_ar_invoice.com_ivari}: |
self
journal = self.env['accoun... |
d5b645b641b0915b80681f75b1c19fa83397b678 | Resources/ui/HeaderViewTalk.js | Resources/ui/HeaderViewTalk.js | var HeaderViewTalk = function(dict) {
var obj = dict.obj || {};
var UI = require("/lib/UI/UI");
var i18n = require("/lib/i18n/Remote");
var self = UI.createView({
height: Ti.UI.SIZE
});
self.add( UI.createLabel({
font: { fontSize: 18, fontWeight: "bold" },
height: Ti.UI.SIZE,
left: 15,
right: 15,
t... | var HeaderViewTalk = function(dict) {
var obj = dict.obj || {};
var UI = require("/lib/UI/UI");
var i18n = require("/lib/i18n/Remote");
var TiDate = require("/lib/TiDate/TiDate");
var self = UI.createView({
height: Ti.UI.SIZE,
layout: "vertical"
});
self.add( UI.createLabel({
font: { fontSize: 18, fontW... | Add Talk Time to details | Add Talk Time to details
| JavaScript | apache-2.0 | rafaelks/BrazilJS | javascript | ## Code Before:
var HeaderViewTalk = function(dict) {
var obj = dict.obj || {};
var UI = require("/lib/UI/UI");
var i18n = require("/lib/i18n/Remote");
var self = UI.createView({
height: Ti.UI.SIZE
});
self.add( UI.createLabel({
font: { fontSize: 18, fontWeight: "bold" },
height: Ti.UI.SIZE,
left: 15,
... |
fad9ff7971146796207687d03df30c8f41d77290 | rakuten_mail_unchecker.user.js | rakuten_mail_unchecker.user.js | // ==UserScript==
// @name Rakuten Mail Magazine Unchecker
// @namespace https://github.com/takamario/gm_script
// @description Rakuten Mail Magazine Unchecker
// @include https://order.step.rakuten.co.jp/rms/mall/basket/vc*
// @include https://basket.step.rakuten.co.jp/rms/mall/bs/confi... | // ==UserScript==
// @name Rakuten Mail Magazine Unchecker
// @namespace https://github.com/takamario/gm_script
// @description Rakuten Mail Magazine Unchecker
// @include https://order.step.rakuten.co.jp/rms/mall/basket/vc*
// @include https://basket.step.rakuten.co.jp/rms/mall/bs/confi... | Add exclude books cart page | Add exclude books cart page
| JavaScript | mit | takamario/gm_script | javascript | ## Code Before:
// ==UserScript==
// @name Rakuten Mail Magazine Unchecker
// @namespace https://github.com/takamario/gm_script
// @description Rakuten Mail Magazine Unchecker
// @include https://order.step.rakuten.co.jp/rms/mall/basket/vc*
// @include https://basket.step.rakuten.co.jp/r... |
05e348e716c2acb50265d10029365a3b7f8be94b | src/auth-module/actions.js | src/auth-module/actions.js | export default function makeAuthActions (feathersClient) {
return {
authenticate (store, data) {
const { commit, state, dispatch } = store
commit('setAuthenticatePending')
if (state.errorOnAuthenticate) {
commit('clearAuthenticateError')
}
return feathersClient.authenticate(... | export default function makeAuthActions (feathersClient) {
return {
authenticate (store, data) {
const { commit, state, dispatch } = store
commit('setAuthenticatePending')
if (state.errorOnAuthenticate) {
commit('clearAuthenticateError')
}
return feathersClient.authenticate(... | Prepare for two-factor auth scenarios | Prepare for two-factor auth scenarios
| JavaScript | mit | feathers-plus/feathers-vuex,feathers-plus/feathers-vuex | javascript | ## Code Before:
export default function makeAuthActions (feathersClient) {
return {
authenticate (store, data) {
const { commit, state, dispatch } = store
commit('setAuthenticatePending')
if (state.errorOnAuthenticate) {
commit('clearAuthenticateError')
}
return feathersClie... |
4759862d1c4f2b9e4993377044f13f0beae90593 | lib/fed/http/curb.rb | lib/fed/http/curb.rb |
module Fed
module Http
class Curb
def self.get(url)
Curl.get(url) do|http|
http.headers['User-Agent'] = Fed::Http.options[:user_agent]
end.body_str
end
end
end
end |
module Fed
module Http
class Curb
def self.get(url)
Curl.get(url) do|http|
http.headers['User-Agent'] = Fed::Http.options[:user_agent]
http.follow_location = true
end.body_str
end
end
end
end | Make sure we follow redirects | Make sure we follow redirects
| Ruby | mit | jm/fed | ruby | ## Code Before:
module Fed
module Http
class Curb
def self.get(url)
Curl.get(url) do|http|
http.headers['User-Agent'] = Fed::Http.options[:user_agent]
end.body_str
end
end
end
end
## Instruction:
Make sure we follow redirects
## Code After:
module Fed
module Http
... |
a595e75968fa26a49b3d08661b9a0e3bb192929e | kokki/cookbooks/cloudera/recipes/default.py | kokki/cookbooks/cloudera/recipes/default.py |
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", action="nothing")
Ex... |
from kokki import *
env.include_recipe("java.jre")
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-ge... | Install sun java when using cloudera | Install sun java when using cloudera
| Python | bsd-3-clause | samuel/kokki | python | ## Code Before:
from kokki import *
apt_list_path = '/etc/apt/sources.list.d/cloudera.list'
apt = (
"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n"
).format(distro=env.system.lsb['codename'])
Execute("apt-get update", actio... |
a81dac4d89b38aed4f40f3c459a1690832c43449 | setup.py | setup.py | from setuptools import find_packages, setup
import yolapy
setup(
name='yolapy',
version=yolapy.__version__,
description='Python client for the Yola API',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/yolapy',
packages=find_packag... | from setuptools import find_packages, setup
import yolapy
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('CHANGELOG.rst') as changelog_file:
changelog = changelog_file.read()
setup(
name='yolapy',
version=yolapy.__version__,
description='Python client for the Yola... | Use readme and changelog as long_description | Use readme and changelog as long_description
This is so it shows up on the pypi package homepage
| Python | mit | yola/yolapy | python | ## Code Before:
from setuptools import find_packages, setup
import yolapy
setup(
name='yolapy',
version=yolapy.__version__,
description='Python client for the Yola API',
author='Yola',
author_email='engineers@yola.com',
license='MIT (Expat)',
url='https://github.com/yola/yolapy',
pack... |
b197ef46acd9bda1fd4345898232fe959425bb6f | conferences/socrates-day-berlin.json | conferences/socrates-day-berlin.json | {
"name": "SoCraTes Day Berlin",
"url": "https://twitter.com/socratesday_ber",
"code-of-conduct":
"https://github.com/swkBerlin/resources/blob/master/safe_environment.md",
"next-date": {
"start": "2018-09-15",
"end": "2018-09-15"
},
"location": {
"coordinates": [13.422387745347237,52.5177692... | {
"name": "SoCraTes Day Berlin",
"url": "https://www.socratesday.berlin",
"code-of-conduct":
"https://www.socratesday.berlin",
"next-date": {
"start": "2019-09-06",
"end": "2019-09-07"
},
"location": {
"coordinates": [13.422387745347237,52.51776926685366]
},
"icon": "icons/socratesdayber... | Update date for SoCraTes Day Berlin | Update date for SoCraTes Day Berlin
| JSON | mit | softwarecrafters/website,softwarecrafters/website | json | ## Code Before:
{
"name": "SoCraTes Day Berlin",
"url": "https://twitter.com/socratesday_ber",
"code-of-conduct":
"https://github.com/swkBerlin/resources/blob/master/safe_environment.md",
"next-date": {
"start": "2018-09-15",
"end": "2018-09-15"
},
"location": {
"coordinates": [13.4223877453... |
268a955324dbd65e580257aecc758846dd68beb7 | README.md | README.md | CircularCountdown
=================
Circular countdown plugin for Bootstrap
| CircularCountdown
=================
Circular countdown plugin for Bootstrap
[See example](http://htmlpreview.github.io/?https://github.com/Playntek/CircularCountdown/blob/master/index.html)
| Add link to see an example of circular countdown plugin | Add link to see an example of circular countdown plugin
| Markdown | mit | Playntek/CircularCountdown,Playntek/CircularCountdown | markdown | ## Code Before:
CircularCountdown
=================
Circular countdown plugin for Bootstrap
## Instruction:
Add link to see an example of circular countdown plugin
## Code After:
CircularCountdown
=================
Circular countdown plugin for Bootstrap
[See example](http://htmlpreview.github.io/?https://github.c... |
7fde1709ed91e2b7624907838207ec40c2c87e7c | _posts/2017-01-18-dueling-ddqn-with-tensorflow.md | _posts/2017-01-18-dueling-ddqn-with-tensorflow.md | ---
layout: post
title: "An artificial agent that can learn any game"
tags:
- Artificial intelligence
---
I have implemented a [Dueling Double Deep Q-Network][1]
using [TensorFlow][2] + [TFLearn][3] as a course project. It can learn
different [Atari 2600 games][4] from raw pixels and achieve a human-level success.
Fur... | ---
layout: post
title: "An artificial agent that can learn any game"
tags:
- Deep Learning
---
I have implemented a [Dueling Double Deep Q-Network][1]
using [TensorFlow][2] + [TFLearn][3] as a course project. It can learn
different [Atari 2600 games][4] from raw pixels and achieve a human-level success.
Furthermore, ... | Change tag: Artificial intelligence -> Deep Learning | Change tag: Artificial intelligence -> Deep Learning
| Markdown | mit | gokhanettin/gokhanettin.github.io,gokhanettin/gokhanettin.github.io,gokhanettin/gokhanettin.github.io | markdown | ## Code Before:
---
layout: post
title: "An artificial agent that can learn any game"
tags:
- Artificial intelligence
---
I have implemented a [Dueling Double Deep Q-Network][1]
using [TensorFlow][2] + [TFLearn][3] as a course project. It can learn
different [Atari 2600 games][4] from raw pixels and achieve a human-le... |
079adab8a5bef5cc0e93f5cd11c66662c0d4c257 | test/centinel/cmpi_authenticate.php | test/centinel/cmpi_authenticate.php | <?php
require_once('../../lib/merchant.php');
require_once('initialize_gateway.php');
try {
$response = $gateway->authenticate( array(
'transaction_id' => $_SESSION['transaction_id'],
'payload' => $_POST['PaRes']
));
if ( $response->success() ) {
?>
<table border="1" cellspacing="4" cellpaddin... | <?php
require_once('../../lib/merchant.php');
require_once('initialize_gateway.php');
try {
$response = $gateway->authenticate( array(
'transaction_id' => $_SESSION['transaction_id'],
'payload' => $_POST['PaRes']
));
if ( $response->success() ) {
?>
<table border="1" cellspacing="4" cellpaddin... | Add TransactionId to responses. Fix error_no and error_desc variables | Add TransactionId to responses. Fix error_no and error_desc variables
| PHP | mit | akDeveloper/Aktive-Merchant,musicglue/Aktive-Merchant,wakeless-net/Aktive-Merchant,itunali/Aktive-Merchant | php | ## Code Before:
<?php
require_once('../../lib/merchant.php');
require_once('initialize_gateway.php');
try {
$response = $gateway->authenticate( array(
'transaction_id' => $_SESSION['transaction_id'],
'payload' => $_POST['PaRes']
));
if ( $response->success() ) {
?>
<table border="1" cellspacin... |
bf8ba6ae49404ef941ad023195aab1155274d3b9 | metadata/ca.mimic.apphangar.txt | metadata/ca.mimic.apphangar.txt | Categories:System
License:GPLv3
Web Site:https://github.com/corcoran/Hangar
Source Code:https://github.com/corcoran/Hangar
Issue Tracker:https://github.com/corcoran/Hangar/issues
Auto Name:Hangar
Summary:Access recent and top apps
Description:
Provides a customizable shortcut launcher in your notification drawer to gi... | Categories:System
License:GPLv3
Web Site:https://github.com/corcoran/Hangar
Source Code:https://github.com/corcoran/Hangar
Issue Tracker:https://github.com/corcoran/Hangar/issues
Auto Name:Hangar
Summary:Access recent and top apps
Description:
Provides a customizable shortcut launcher in your notification drawer to gi... | Update Hangar to 2.3 (49) | Update Hangar to 2.3 (49)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:System
License:GPLv3
Web Site:https://github.com/corcoran/Hangar
Source Code:https://github.com/corcoran/Hangar
Issue Tracker:https://github.com/corcoran/Hangar/issues
Auto Name:Hangar
Summary:Access recent and top apps
Description:
Provides a customizable shortcut launcher in your notificat... |
992727d0911d43f206e7a901b6e141e58d9467ad | demo/patient-sample.r | demo/patient-sample.r | require(sclero)
require(ggplot2)
require(plyr)
data(pft)
data(patient)
set.seed(2)
n.visits <- ddply(pft, ~ patient.id + test.type, summarize, visits = length(na.omit(test.result)))
n.fvc.visits <- subset(n.visits, test.type == "fvc")
patient.ids <- subset(n.fvc.visits, visits > 5)$patient.id
some.patients <- samp... | require(sclero)
require(ggplot2)
require(plyr)
data(pft)
data(patient)
set.seed(1)
df <- add_date_since(pft, "date", "year", patient, "date.of.first.symptom")
n.train.visits <- ddply(subset(df, year >= 0 & year < 2), ~ patient.id + test.type, summarize, visits = length(na.omit(test.result)))
n.test.visits <- ddply(s... | Clean up sample patient code, add severity line. | Clean up sample patient code, add severity line.
| R | mit | pschulam-attic/sclero | r | ## Code Before:
require(sclero)
require(ggplot2)
require(plyr)
data(pft)
data(patient)
set.seed(2)
n.visits <- ddply(pft, ~ patient.id + test.type, summarize, visits = length(na.omit(test.result)))
n.fvc.visits <- subset(n.visits, test.type == "fvc")
patient.ids <- subset(n.fvc.visits, visits > 5)$patient.id
some.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.