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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
49bc83b4ffb8007dd98caf210b802192c489d599 | build/app/js/subjectsCtrl.js | build/app/js/subjectsCtrl.js | angular.module("mirmindr")
.controller("subjectsCtrl", function($rootScope, $scope){
$scope.newSub = {};
$scope.addSub = function(form) {
if(form.$valid) {
$scope.userRef.child("subjects").push($scope.newSub);
$scope.newSub = {};
} else {
$scope.showActionToast("Missing Something?");
}... | angular.module("mirmindr")
.controller("subjectsCtrl", function($rootScope, $scope, $mdDialog){
$scope.newSub = {};
$scope.addSub = function(form) {
if(form.$valid) {
$scope.userRef.child("subjects").push($scope.newSub);
$scope.newSub = {};
} else {
$scope.showActionToast("Missing Somethin... | Delete subject dialog is now an mdDialog | Delete subject dialog is now an mdDialog
| JavaScript | mit | mirman-school/mirmindr,mirman-school/mirmindr | javascript | ## Code Before:
angular.module("mirmindr")
.controller("subjectsCtrl", function($rootScope, $scope){
$scope.newSub = {};
$scope.addSub = function(form) {
if(form.$valid) {
$scope.userRef.child("subjects").push($scope.newSub);
$scope.newSub = {};
} else {
$scope.showActionToast("Missing Som... |
fd6ef73d3774901d76601a4be0a88522e6eb500a | .travis.yml | .travis.yml |
language: java
jdk:
- oraclejdk7
- oraclejdk8
branches:
only:
- master
- /^feature\/.*$/
- /^hotfix\/.*$/
- /^release\/.*$/
script: mvn test
sudo: false
cache:
directories:
- $HOME/.m2
|
language: java
# Run it on precise, until we figure out how to make jdk7 work (or no longer support jdk7).
dist: precise
jdk:
- oraclejdk7
- oraclejdk8
branches:
only:
- master
- /^feature\/.*$/
- /^hotfix\/.*$/
- /^release\/.*$/
script: mvn test
sudo: false
cache:
directories:
- $HO... | Fix Travis build for Oracle JDK 7 | Fix Travis build for Oracle JDK 7
This closes #51 from GitHub.
Signed-off-by: anew <7e91e9b280c217b4c58c62b209b5ccf7d4bb217a@apache.org>
| YAML | apache-2.0 | poornachandra/incubator-tephra,gokulavasan/incubator-tephra,gokulavasan/incubator-tephra,poornachandra/incubator-tephra,poornachandra/incubator-tephra,gokulavasan/incubator-tephra | yaml | ## Code Before:
language: java
jdk:
- oraclejdk7
- oraclejdk8
branches:
only:
- master
- /^feature\/.*$/
- /^hotfix\/.*$/
- /^release\/.*$/
script: mvn test
sudo: false
cache:
directories:
- $HOME/.m2
## Instruction:
Fix Travis build for Oracle JDK 7
This closes #51 from GitHub.
Si... |
e035be090423b8601e1376e20d23b7bf070f4b67 | pwwka.gemspec | pwwka.gemspec | $:.push File.expand_path("../lib", __FILE__)
require 'pwwka/version'
Gem::Specification.new do |s|
s.name = "pwwka"
s.version = Pwwka::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Stitch Fix Engineering']
s.email = ['opensource@stitchfix.com']
s.homepage = "http://www.s... | $:.push File.expand_path("../lib", __FILE__)
require 'pwwka/version'
Gem::Specification.new do |s|
s.name = "pwwka"
s.version = Pwwka::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Stitch Fix Engineering']
s.email = ['opensource@stitchfix.com']
s.homepage = "https://gith... | Make homepage GitHub repo, so gem information is easily accessible | Make homepage GitHub repo, so gem information is easily accessible
| Ruby | mit | stitchfix/pwwka | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
require 'pwwka/version'
Gem::Specification.new do |s|
s.name = "pwwka"
s.version = Pwwka::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Stitch Fix Engineering']
s.email = ['opensource@stitchfix.com']
s.homepage ... |
1598c699dc6bdf5d6edd700b70e11df207412dcd | hackernews.py | hackernews.py | import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request('GET', 'item/{it... | from datetime import datetime
import requests
class HackerNews():
def __init__(self, timeout=5):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
self.timeout = timeout
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url... | Convert timestamps to native datetime objects (breaking change) | Convert timestamps to native datetime objects (breaking change)
| Python | mit | abrinsmead/hackernews-python | python | ## Code Before:
import requests
class HackerNews():
def __init__(self):
self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'
def request(self, method, uri):
url = self.url.format(uri=uri)
return requests.request(method, url)
def item(self, item_id):
r = self.request(... |
e806fadb56ec1ead5fc93f5c94a9c511069cf9f7 | relative-grades-fenix-IST.js | relative-grades-fenix-IST.js | var myId = data["student"]["id"];
var myGrade;
var finalGrades;
data["evaluations"].forEach(function(grades) {
if(grades["name"] === "Pauta Final") {
finalGrades = grades;
}
});
finalGrades["grades"].forEach(function(element) {
if(element["id"] === myId) {
myGrade = element["grade"]
}... | function stats(data) {
var myId = data["student"]["id"];
var myGrade;
var finalGrades;
data["evaluations"].forEach(function(grades) {
if(grades["name"] === "Pauta Final") {
finalGrades = grades;
}
});
finalGrades["grades"].forEach(function(element) {
if(ele... | Refactor previous code into a function | Refactor previous code into a function
| JavaScript | apache-2.0 | ric2b/relative-grades-fenix-IST | javascript | ## Code Before:
var myId = data["student"]["id"];
var myGrade;
var finalGrades;
data["evaluations"].forEach(function(grades) {
if(grades["name"] === "Pauta Final") {
finalGrades = grades;
}
});
finalGrades["grades"].forEach(function(element) {
if(element["id"] === myId) {
myGrade = elemen... |
fdbdbf24a6b706b04b6cbe97c0d74df6f0b57022 | README.md | README.md | gerber-tools
============

[](https://coveralls.io/r/hamiltonkibbe/gerber-tools?branch=master)
Tools to handle Gerber and E... | gerber-tools
============

[](https://coveralls.io/r/curtacircuitos/pcb-tools?branch=master)
Tools to handle Gerber and Excello... | Change coveralls and travis badges | Change coveralls and travis badges | Markdown | apache-2.0 | curtacircuitos/pcb-tools,smitec/pcb-tools | markdown | ## Code Before:
gerber-tools
============

[](https://coveralls.io/r/hamiltonkibbe/gerber-tools?branch=master)
Tools to handle G... |
e764f4a65315478b54297a117fec508fc4abab62 | paloma.gemspec | paloma.gemspec | Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '1.2.4'
s.summary = "a sexy way to organize javascript files using Rails` asset pipeline"
s.description = "a sexy way to organize javascript files using Rails` asset pipeline"
s.authors = ["Karl Paragua", "Bia Esmero"]
s.email ... | Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '1.2.5'
s.summary = "Provides an easy way to execute page-specific javascript for Rails."
s.description = "Page-specific javascript for Rails done right"
s.authors = ["Karl Paragua", "Bia Esmero"]
s.email = 'kb.paragua@gmai... | Change gem description and summary | Change gem description and summary
| Ruby | mit | kbparagua/paloma,pietrop/paloma,kbparagua/paloma,mikeki/paloma,kbparagua/paloma,pietrop/paloma,mikeki/paloma,munirent/paloma,pietrop/paloma,munirent/paloma,mikeki/paloma | ruby | ## Code Before:
Gem::Specification.new do |s|
s.name = 'paloma'
s.version = '1.2.4'
s.summary = "a sexy way to organize javascript files using Rails` asset pipeline"
s.description = "a sexy way to organize javascript files using Rails` asset pipeline"
s.authors = ["Karl Paragua", "Bia Esmer... |
90eb9249ed074bf6c0b5fdd3fa8583ff8092a73d | .storybook/preview.js | .storybook/preview.js | import './global.css';
import './fonts.css';
| import { addParameters } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import './global.css';
import './fonts.css';
addParameters({
viewport: {
viewports: INITIAL_VIEWPORTS,
},
});
| Use more granular list of devices in viewports addon | [WEB-589] Storybook: Use more granular list of devices in viewports addon
| JavaScript | bsd-2-clause | tidepool-org/blip,tidepool-org/blip,tidepool-org/blip | javascript | ## Code Before:
import './global.css';
import './fonts.css';
## Instruction:
[WEB-589] Storybook: Use more granular list of devices in viewports addon
## Code After:
import { addParameters } from '@storybook/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import './global.css';
import './fonts... |
3de1b4e121d0ac5113e263c05cf95ea03cfa9a3b | spec/cli_spec.rb | spec/cli_spec.rb | require "spec_helper"
require "bower2gem/cli"
describe Bower2Gem::CLI do
it "does something useful" do
expect { Bower2Gem::CLI.new }.to output("dist/rome.js\n").to_stdout
end
end
| require "spec_helper"
require "bower2gem/cli"
describe Bower2Gem::CLI do
it "downloads javascript file" do
Bower2Gem::CLI.new
expect(File).to exist("vendor/assets/rome.js")
end
end
| Update test for File Downloader | Update test for File Downloader
| Ruby | mit | cllns/npm2gem,cllns/npm2gem | ruby | ## Code Before:
require "spec_helper"
require "bower2gem/cli"
describe Bower2Gem::CLI do
it "does something useful" do
expect { Bower2Gem::CLI.new }.to output("dist/rome.js\n").to_stdout
end
end
## Instruction:
Update test for File Downloader
## Code After:
require "spec_helper"
require "bower2gem/cli"
desc... |
e5878f347022b2a679307e126c5c761a3d46efe1 | cmake/upload_if_exe_found.sh | cmake/upload_if_exe_found.sh | EXE_PATH="build/current/Hypersomnia"
if [ -f "$EXE_PATH" ]; then
echo "Exe found. Uploading."
API_KEY=$1
PLATFORM=Linux
COMMIT_HASH=$(git rev-parse HEAD)
COMMIT_NUMBER=$(git rev-list --count master)
VERSION="1.0.$COMMIT_NUMBER"
FILE_PATH="Hypersomnia-for-$PLATFORM.sfx"
UPLOAD_URL="https://hypersomnia.xyz/uplo... | EXE_PATH="build/current/Hypersomnia"
if [ -f "$EXE_PATH" ]; then
echo "Exe found. Uploading."
API_KEY=$1
PLATFORM=Linux
COMMIT_HASH=$(git rev-parse HEAD)
COMMIT_NUMBER=$(git rev-list --count master)
VERSION="1.0.$COMMIT_NUMBER"
FILE_PATH="Hypersomnia-for-$PLATFORM.sfx"
UPLOAD_URL="https://hypersomnia.xyz/uplo... | Remove unnecessary folders prior to packaging | Remove unnecessary folders prior to packaging
| Shell | agpl-3.0 | TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Hypersomnia,TeamHypersomnia/Augmentations,TeamHypersomnia/Augmentations | shell | ## Code Before:
EXE_PATH="build/current/Hypersomnia"
if [ -f "$EXE_PATH" ]; then
echo "Exe found. Uploading."
API_KEY=$1
PLATFORM=Linux
COMMIT_HASH=$(git rev-parse HEAD)
COMMIT_NUMBER=$(git rev-list --count master)
VERSION="1.0.$COMMIT_NUMBER"
FILE_PATH="Hypersomnia-for-$PLATFORM.sfx"
UPLOAD_URL="https://hype... |
ad72f07de65148da99e3b2836a7d81b7a3185d56 | requirements.txt | requirements.txt | dj-database-url==0.4.1
Django==1.9.8
psycopg2==2.6.2
whitenoise==3.2
| dj-database-url==0.4.1
Django==1.9.8
psycopg2==2.6.2
whitenoise==3.2
requests=2.10
| Add requirement for requests module | Add requirement for requests module
| Text | mit | niteshpatel/habitica-slack | text | ## Code Before:
dj-database-url==0.4.1
Django==1.9.8
psycopg2==2.6.2
whitenoise==3.2
## Instruction:
Add requirement for requests module
## Code After:
dj-database-url==0.4.1
Django==1.9.8
psycopg2==2.6.2
whitenoise==3.2
requests=2.10
|
980b17b33c32250b6b175cd66d733abd9017b8f0 | test/test-functional.js | test/test-functional.js | // These tests are run with two different test runners which work a bit
// differently. Runners are Testem and Karma. Read more about them in
// CONTRIBUTING.md
// Supporting both has lead to some compromises.
var expect = require('expect.js');
var utils = require('./utils');
var ProgressBar = require("../progressbar... | // These tests are run with two different test runners which work a bit
// differently. Runners are Testem and Karma. Read more about them in
// CONTRIBUTING.md
// Supporting both has lead to some compromises.
var expect = require('expect.js');
var utils = require('./utils');
var ProgressBar = require("../progressbar... | Add test for value() method | Add test for value() method
| JavaScript | mit | loki315zx/progressbar.js,arielshad/progressbar.js,Keystion/progressbar.js,renekaigen/progressbar.js,GerHobbelt/progressbar.js,arielshad/progressbar.js,Hkmu/progressbar.js,marcomatteocci/progressbar.js,GerHobbelt/progressbar.js,elbernante/progressbar.js,imZack/progressbar.js,prepare/progressbar.js,halilertekin/progressb... | javascript | ## Code Before:
// These tests are run with two different test runners which work a bit
// differently. Runners are Testem and Karma. Read more about them in
// CONTRIBUTING.md
// Supporting both has lead to some compromises.
var expect = require('expect.js');
var utils = require('./utils');
var ProgressBar = require... |
11d3d71732908c131cf545a8799180610afc489e | init/command_t.vim | init/command_t.vim | " Small default height for CommandT
let g:CommandTMaxHeight=20
let g:CommandTMaxFiles=20000
| " Small default height for CommandT
let g:CommandTMaxHeight=20
let g:CommandTMaxFiles=20000
" Make ESC work in CommandT while in terminal Vim
if &term =~ "xterm" || &term =~ "screen"
let g:CommandTCancelMap=['<ESC>']
end
| Fix ESC in CommandT while in terminal Vim not working | Fix ESC in CommandT while in terminal Vim not working
| VimL | mit | danfinnie/vim-config,austenito/vim-config,buildgroundwork/vim-config,RetSKU-development/vim-config,brittlewis12/vim-config,evandrewry/.vim,kmarter/vim-config,brittlewis12/vim-config,abhisharma2/vim-config,kmarter/vim-config,jgeiger/vim-config,brittlewis12/vim-config,mntj/vim,benliscio/vim,brittlewis12/vim-config,gust/v... | viml | ## Code Before:
" Small default height for CommandT
let g:CommandTMaxHeight=20
let g:CommandTMaxFiles=20000
## Instruction:
Fix ESC in CommandT while in terminal Vim not working
## Code After:
" Small default height for CommandT
let g:CommandTMaxHeight=20
let g:CommandTMaxFiles=20000
" Make ESC work in CommandT whil... |
d857d4b6a2018a73b0d92f5483e3224421fa09f0 | taglibs/async/raptor-taglib.json | taglibs/async/raptor-taglib.json | {
"tags": {
"async-fragment": {
"renderer": "./async-fragment-tag",
"attributes": {
"data-provider": {
"type": "string"
},
"arg": {
"type": "expression",
"preserve-name": true
... | {
"tags": {
"async-fragment": {
"renderer": "./async-fragment-tag",
"attributes": {
"data-provider": {
"type": "string"
},
"arg": {
"type": "expression",
"preserve-name": true
... | Allow "method" to be set for a data provider to maintain "this" | Allow "method" to be set for a data provider to maintain "this"
| JSON | mit | marko-js/marko,marko-js/marko | json | ## Code Before:
{
"tags": {
"async-fragment": {
"renderer": "./async-fragment-tag",
"attributes": {
"data-provider": {
"type": "string"
},
"arg": {
"type": "expression",
"prese... |
29b9477221e0af09d9b0abb55f35aa040e0d3c35 | catalog/Web_Apps_Services_Interaction/Web_Content_Scrapers.yml | catalog/Web_Apps_Services_Interaction/Web_Content_Scrapers.yml | name: Web Content Scrapers
description:
projects:
- anemone
- arachnid2
- boilerpipe-ruby
- cobweb
- data_miner
- docparser
- fletcher
- horsefield
- link_thumbnailer
- metainspector
- pismo
- sinew
- url_scraper
- wiki-api
- wombat
| name: Web Content Scrapers
description:
projects:
- anemone
- arachnid2
- boilerpipe-ruby
- cobweb
- data_miner
- docparser
- fletcher
- horsefield
- kimurai
- link_thumbnailer
- metainspector
- pismo
- sinew
- url_scraper
- wiki-api
- wombat
| Add Kimurai framework for scraping | Add Kimurai framework for scraping
Kimurai is a full scraping framework, similar to Scrapy in Python. It's currently under active development and is of high quality. I was surprised to not see it, and hope it gets added! | YAML | mit | rubytoolbox/catalog | yaml | ## Code Before:
name: Web Content Scrapers
description:
projects:
- anemone
- arachnid2
- boilerpipe-ruby
- cobweb
- data_miner
- docparser
- fletcher
- horsefield
- link_thumbnailer
- metainspector
- pismo
- sinew
- url_scraper
- wiki-api
- wombat
## Instruction:
Add Kimurai framework fo... |
b8b48fe8b426ee35a4c8821a7f52189f389b084e | org.spoofax.meta.runtime.libraries/build.nix | org.spoofax.meta.runtime.libraries/build.nix | { nixpkgs ? ../../nixpkgs
, runtime-libraries ? ../../runtime-libraries
, strategoxt ? ../../strategoxt
, strj ? ../../strategoxt.jar
} :
let
pkgs = import nixpkgs {};
jobs = {
build = pkgs.releaseTools.antBuild {
name = "runtime-libraries";
src = runtime-libraries;
buildInputs = with pkgs; ... | { nixpkgs ? ../../nixpkgs
, runtime-libraries ? ../../runtime-libraries
, strategoxt ? ../../strategoxt
, strj ? ../../strategoxt.jar
} :
let
pkgs = import nixpkgs {};
jobs = {
build = pkgs.releaseTools.antBuild {
name = "runtime-libraries";
src = runtime-libraries;
buildInputs = with pkgs; ... | Move copying of strategoxt-antlib.xml into preConfigure. | Move copying of strategoxt-antlib.xml into preConfigure.
| Nix | apache-2.0 | metaborg/runtime-libraries | nix | ## Code Before:
{ nixpkgs ? ../../nixpkgs
, runtime-libraries ? ../../runtime-libraries
, strategoxt ? ../../strategoxt
, strj ? ../../strategoxt.jar
} :
let
pkgs = import nixpkgs {};
jobs = {
build = pkgs.releaseTools.antBuild {
name = "runtime-libraries";
src = runtime-libraries;
buildInpu... |
24c5497b0c91ce032fb4cf99e79fffc5fa27cb84 | push/management/commands/startbatches.py | push/management/commands/startbatches.py |
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from push.models import DeviceTokenModel, NotificationModel
from datetime import datetime
import push_notification
class Command(BaseCommand):
def __init__(self, *args, **kwargs):
super(Command, self).__ini... |
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from push.models import DeviceTokenModel, NotificationModel
from datetime import datetime
import push_notification
class Command(BaseCommand):
def __init__(self, *args, **kwargs):
super(Command, self).__ini... | Update batch execute for conditions | Update batch execute for conditions
| Python | apache-2.0 | nnsnodnb/django-mbaas,nnsnodnb/django-mbaas,nnsnodnb/django-mbaas | python | ## Code Before:
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from push.models import DeviceTokenModel, NotificationModel
from datetime import datetime
import push_notification
class Command(BaseCommand):
def __init__(self, *args, **kwargs):
super(Comm... |
a5b2b56c52161d152b62d2fff84fe5089cb5099f | tracks/segmentfns_test.go | tracks/segmentfns_test.go | package tracks
| package tracks
import "testing"
func elem(s SegmentType) Element {
return Element{
Segment: TS_MAP[s],
}
}
func TestNotPossible(t *testing.T) {
testCases := []struct {
input Element
notPossibility Element
}{
{elem(ELEM_FLAT_TO_25_DEG_UP), elem(ELEM_LEFT_QUARTER_TURN_5_TILES)},
}
for _, tt := r... | Add basic test for generated track | Add basic test for generated track
We generated a track that had 25_DEG_UP followed by 3 tile flat left turn,
which shouldn't be possible. Adds a test that rules out that possibility in one
place in the codebase.
| Go | mit | kevinburke/rct,kevinburke/rct,kevinburke/rct,kevinburke/rct | go | ## Code Before:
package tracks
## Instruction:
Add basic test for generated track
We generated a track that had 25_DEG_UP followed by 3 tile flat left turn,
which shouldn't be possible. Adds a test that rules out that possibility in one
place in the codebase.
## Code After:
package tracks
import "testing"
func ele... |
e6642dcbf2ddb60d45dcc43aadd4fe2031668a41 | lib/assets/javascripts/builder/components/table/body/table-body-cell.tpl | lib/assets/javascripts/builder/components/table/body/table-body-cell.tpl | <!--
.fs-hide class excludes the contents of this cell, which
might contain sensitive data, from FullStory recordings.
More info:
https://help.fullstory.com/technical-questions/exclude-elements
-->
<td class="Table-cellItem fs-hide" data-attribute="<%- columnName %>" title="<%- value %>" data-clipboard-text=... | <td class="Table-cellItem" data-attribute="<%- columnName %>" title="<%- value %>" data-clipboard-text='<%- value %>'>
<div class="
Table-cell u-flex u-justifySpace
<%- columnName === 'cartodb_id' || (type === 'geometry' && geometry !== 'point') ? 'Table-cell--short' : '' %>
">
<!--
WARNING:... | Exclude cell's paragraph from FullStory | Exclude cell's paragraph from FullStory
| Smarty | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb | smarty | ## Code Before:
<!--
.fs-hide class excludes the contents of this cell, which
might contain sensitive data, from FullStory recordings.
More info:
https://help.fullstory.com/technical-questions/exclude-elements
-->
<td class="Table-cellItem fs-hide" data-attribute="<%- columnName %>" title="<%- value %>" data... |
97f346c585a727806718db2b02bed6a9ca5ec5c9 | src/js/cordova.js | src/js/cordova.js | 'use strict';
// Load only within android app: cordova=android
if (window.location.search.search('cordova') > 0) {
(function(d, script) {
script = d.createElement('script');
script.type = 'text/javascript';
script.src = 'js/cordova/cordova.js';
d.getElementsByTagName('head')[0].appendChild(script);
... | 'use strict';
// Load only within android app: cordova=android
if (window.location.search.search('cordova') > 0) {
(function(d, script) {
// When cordova is loaded
function onLoad() {
d.addEventListener('deviceready', onDeviceReady, false);
}
// Device APIs are available
function onDeviceR... | Update application cache on device resume | Update application cache on device resume
| JavaScript | agpl-3.0 | P2Pvalue/teem,P2Pvalue/pear2pear,Grasia/teem,P2Pvalue/teem,Grasia/teem,Grasia/teem,P2Pvalue/teem,P2Pvalue/pear2pear | javascript | ## Code Before:
'use strict';
// Load only within android app: cordova=android
if (window.location.search.search('cordova') > 0) {
(function(d, script) {
script = d.createElement('script');
script.type = 'text/javascript';
script.src = 'js/cordova/cordova.js';
d.getElementsByTagName('head')[0].append... |
1661ff9ceb95fda9598e48f6dad605706cc5018f | buildscripts/build.js | buildscripts/build.js | var fs = require('fs');
var copy = {
'app/main.js': 'dist/main.js',
'node_modules/p5/lib/p5.min.js' : 'dist/p5.min.js',
'node_modules/p5/lib/addons/p5.dom.js' : 'dist/p5.dom.js',
};
Object.keys(copy).forEach(key => {
fs.createReadStream(key).pipe(fs.createWriteStream(copy[key]));
});
| var fs = require('fs');
var copy = {
'app/main.js': 'dist/main.js',
'node_modules/p5/lib/p5.min.js' : 'dist/p5.min.js',
'node_modules/p5/lib/addons/p5.dom.js' : 'dist/p5.dom.js',
};
if (!fs.existsSync('dist')) {
fs.mkdirSync('dist');
}
Object.keys(copy).forEach(key => {
fs.createReadStream(key).p... | Create the dist dir if not exists | Create the dist dir if not exists
| JavaScript | mit | nemesv/playfive,nemesv/playfive | javascript | ## Code Before:
var fs = require('fs');
var copy = {
'app/main.js': 'dist/main.js',
'node_modules/p5/lib/p5.min.js' : 'dist/p5.min.js',
'node_modules/p5/lib/addons/p5.dom.js' : 'dist/p5.dom.js',
};
Object.keys(copy).forEach(key => {
fs.createReadStream(key).pipe(fs.createWriteStream(copy[key]));
});
... |
2140ef54e80c39102a0df6679daa1c61435f23f3 | lib/android/src/main/res/layout/fragment_react_native.xml | lib/android/src/main/res/layout/fragment_react_native.xml | <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
... | <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
... | Allow no toolbar for android | Allow no toolbar for android
| XML | mit | travelbird/react-native-navigation,travelbird/react-native-navigation,travelbird/react-native-navigation,travelbird/react-native-navigation | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="mat... |
bbdd404546afd0b31b2ed96b7692a0363b0647cf | src/buildviz/main.clj | src/buildviz/main.clj | (ns buildviz.main
(:require [buildviz.build-results :as results]
[buildviz.handler :as handler]
[buildviz.http :as http]
[buildviz.storage :as storage]))
(def jobs-filename "buildviz_jobs")
(def tests-filename "buildviz_tests")
(defn- persist-jobs! [build-data]
(storage/store!... | (ns buildviz.main
(:require [buildviz.build-results :as results]
[buildviz.handler :as handler]
[buildviz.http :as http]
[buildviz.storage :as storage]
[clojure.java.io :as io]
[clojure.string :as str]))
(defn- path-for [file-name]
(if-let [data-dir (Syst... | Allow to configure the data directory | Allow to configure the data directory
| Clojure | bsd-2-clause | cburgmer/buildviz,cburgmer/buildviz,cburgmer/buildviz | clojure | ## Code Before:
(ns buildviz.main
(:require [buildviz.build-results :as results]
[buildviz.handler :as handler]
[buildviz.http :as http]
[buildviz.storage :as storage]))
(def jobs-filename "buildviz_jobs")
(def tests-filename "buildviz_tests")
(defn- persist-jobs! [build-data]
... |
343a8f6bd8534792e246ae6c705a5f1b2d581199 | README.md | README.md |
An open-source developer site using React.
[Find me on Twitter!](https://twitter.com/dentemple)
[Find me on LinkedIn!](https://www.linkedin.com/in/dentemple/)
## Technology
## Try It Out
* Requirements
* [Node](https://nodejs.org/en/download/) (Recommended v6.0+)
* [yarn](https://yarnpkg.com/en/docs/install)
... |
An open-source developer site using React.
[(Link to older version)](https://dentemple-31337.firebaseapp.com/)
[Find me on Twitter!](https://twitter.com/dentemple)
[Find me on LinkedIn!](https://www.linkedin.com/in/dentemple/)
## Technology
## Try It Out
* Requirements
* [Node](https://nodejs.org/en/download/)... | Add link to older version of site | Add link to older version of site
| Markdown | mit | dentemple/my-developer-site,dentemple/my-developer-site | markdown | ## Code Before:
An open-source developer site using React.
[Find me on Twitter!](https://twitter.com/dentemple)
[Find me on LinkedIn!](https://www.linkedin.com/in/dentemple/)
## Technology
## Try It Out
* Requirements
* [Node](https://nodejs.org/en/download/) (Recommended v6.0+)
* [yarn](https://yarnpkg.com/e... |
0c04f830cf2b4aa5ba85712b78fc9dcea94b9ab0 | src/main/java/se/kits/gakusei/content/repository/GrammarTextRepository.java | src/main/java/se/kits/gakusei/content/repository/GrammarTextRepository.java | package se.kits.gakusei.content.repository;
import org.springframework.data.repository.CrudRepository;
import se.kits.gakusei.content.model.GrammarText;
public interface GrammarTextRepository extends CrudRepository<GrammarText, String> {
}
| package se.kits.gakusei.content.repository;
import org.springframework.data.repository.CrudRepository;
import se.kits.gakusei.content.model.GrammarText;
import java.util.List;
public interface GrammarTextRepository extends CrudRepository<GrammarText, String> {
List<GrammarText> findByInflectionMethod(String inf... | Add method for finding grammarText using inflectionMethod | Add method for finding grammarText using inflectionMethod
| Java | mit | kits-ab/gakusei,kits-ab/gakusei,kits-ab/gakusei | java | ## Code Before:
package se.kits.gakusei.content.repository;
import org.springframework.data.repository.CrudRepository;
import se.kits.gakusei.content.model.GrammarText;
public interface GrammarTextRepository extends CrudRepository<GrammarText, String> {
}
## Instruction:
Add method for finding grammarText using infl... |
149054e5f6acff0807da5fc3b50c8583bc48e957 | source/WebApp/.storybook/preview.js | source/WebApp/.storybook/preview.js | import '../less/app.less';
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
} | import '../less/app.less';
export const loaders = [
() => document.fonts.ready
];
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
} | Add font load dependency to Storybook | Add font load dependency to Storybook
| JavaScript | bsd-2-clause | ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab,ashmind/SharpLab | javascript | ## Code Before:
import '../less/app.less';
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
## Instruction:
Add font load dependency to Storybook
## Code After:
import '../less/app.less';
expo... |
776686594b89fc30f8d5e0915628bc85b7d28b92 | .travis.yml | .travis.yml | branches:
only:
- master
language: php
php:
- 5.3
before_script:
- "mysql -e 'create database fluxbb__test;'"
- "psql -c 'create database fluxbb__test;' -U postgres"
script: phpunit --bootstrap tests/bootstrap.example.php tests/
notifications:
irc:
- "irc.freenode.org#fluxbb"
| branches:
only:
- master
language: php
php:
- 5.3
env:
- DB_MYSQL_DBNAME=fluxbb_test
- DB_MYSQL_HOST=0.0.0.0
- DB_MYSQL_USER=
- DB_MYSQL_PASSWD=
- DB_SQLITE_DBNAME=:memory:
- DB_PGSQL_DBNAME=fluxbb_test
- DB_PGSQL_HOST=127.0.0.1
- DB_PGSQL_USER=postgres
- DB_PGSQL_PASSWD=
before_script:
... | Add environment variables to build script (which means we don't need a bootstrap file anymore). | Add environment variables to build script (which means we don't need a bootstrap file anymore). | YAML | lgpl-2.1 | fluxbb/database | yaml | ## Code Before:
branches:
only:
- master
language: php
php:
- 5.3
before_script:
- "mysql -e 'create database fluxbb__test;'"
- "psql -c 'create database fluxbb__test;' -U postgres"
script: phpunit --bootstrap tests/bootstrap.example.php tests/
notifications:
irc:
- "irc.freenode.org#fluxbb"
## ... |
6cf117fbdecaef72406b1d42bf7dc04c6da10654 | src/redux/modules/user/reducer.js | src/redux/modules/user/reducer.js | import { asImmutable } from '../../../helper/immutableHelper';
import * as actions from './actions';
const initialState = asImmutable({});
export const reducer = (state = initialState, { type, payload }) => {
switch (type) {
case actions.FETCH_USER.SUCCEEDED:
return state.merge(payload.data || {});
ca... | import { asImmutable } from '../../../helper/immutableHelper';
import * as actions from './actions';
const initialState = asImmutable({});
export const reducer = (state = initialState, { type, payload }) => {
switch (type) {
case actions.FETCH_USER.SUCCEEDED:
return state.merge(payload.data || {});
ca... | Fix problem of note replacement | Fix problem of note replacement
| JavaScript | apache-2.0 | carloseduardosx/github-profile-search,carloseduardosx/github-profile-search,carloseduardosx/github-profile-search | javascript | ## Code Before:
import { asImmutable } from '../../../helper/immutableHelper';
import * as actions from './actions';
const initialState = asImmutable({});
export const reducer = (state = initialState, { type, payload }) => {
switch (type) {
case actions.FETCH_USER.SUCCEEDED:
return state.merge(payload.dat... |
0ffef8c45a7dc5df291dd27de25022b9075422df | lib/ansible/transmit.rb | lib/ansible/transmit.rb | module Ansible
module Transmit
def self.extended(base)
base.class_eval do
def self._beacons
@_beacons ||= []
end
before_filter :alert_beacons, only: @_beacons # Figure out a sane filter
end
end
def transmit(name)
_beacons << :"#{name}_ansible_beacon"
... | module Ansible
module Transmit
def self.extended(base)
base.class_eval do
include ActionController::Live
def self._beacons
@_beacons ||= []
end
before_filter :alert_beacons, only: @_beacons # Figure out a sane filter
end
end
def transmit(name)
... | Add in ActionController::Live in class_eval | Add in ActionController::Live in class_eval
| Ruby | mit | derekparker/transmitter | ruby | ## Code Before:
module Ansible
module Transmit
def self.extended(base)
base.class_eval do
def self._beacons
@_beacons ||= []
end
before_filter :alert_beacons, only: @_beacons # Figure out a sane filter
end
end
def transmit(name)
_beacons << :"#{name}_a... |
d3acb346f9cfbc2fa7ba0ecfd832e23a6faacc2b | .kitchen.yml | .kitchen.yml | driver:
name: vagrant
provisioner:
name: chef_zero
product_name: chef
product_version: <%= ENV['CHEF_VERSION'] || 'latest' %>
install_strategy: once
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: centos-6
- name: centos-7
- name: debian-8
- name: ubuntu-14.04
run_lis... | driver:
name: vagrant
provisioner:
name: chef_zero
product_name: chef
product_version: <%= ENV['CHEF_VERSION'] || 'latest' %>
install_strategy: once
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: centos-6
- name: centos-7
- name: debian-8
- name: ubuntu-14.04
- name: u... | Use the test recipe in Test Kitchen | Use the test recipe in Test Kitchen
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| YAML | apache-2.0 | tas50/chef-pulledpork,tas50/chef-pulledpork | yaml | ## Code Before:
driver:
name: vagrant
provisioner:
name: chef_zero
product_name: chef
product_version: <%= ENV['CHEF_VERSION'] || 'latest' %>
install_strategy: once
deprecations_as_errors: true
verifier:
name: inspec
platforms:
- name: centos-6
- name: centos-7
- name: debian-8
- name: ubuntu-1... |
88fbd428ceb79d6e176ff235256c8e5951815085 | inspector/inspector/urls.py | inspector/inspector/urls.py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib impor... | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib impor... | Make the url structure a bit more sensible. | Make the url structure a bit more sensible.
| Python | bsd-2-clause | refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector,abhijo89/django-cbv-inspector,refreshoxford/django-cbv-inspector,abhijo89/django-cbv-inspector,refreshoxford/django-cbv-inspector,abhijo89/django-cbv-inspector,abhijo89/django-cbv-inspector | python | ## Code Before:
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from djan... |
da031e71f80beb7a42807a55c3e29c0064bdd9b2 | lib/pesapal.rb | lib/pesapal.rb | require 'net/http'
require 'pesapal/merchant'
require 'pesapal/merchant/details'
require 'pesapal/merchant/post'
require 'pesapal/merchant/status'
require 'pesapal/oauth'
require 'pesapal/version'
require 'pesapal/railtie' if defined?(Rails)
| require 'htmlentities'
require 'net/http'
require 'pesapal/merchant'
require 'pesapal/merchant/details'
require 'pesapal/merchant/post'
require 'pesapal/merchant/status'
require 'pesapal/oauth'
require 'pesapal/version'
require 'pesapal/railtie' if defined?(Rails)
| Fix error cause by missing htmlentities | Fix error cause by missing htmlentities
| Ruby | mit | itsmrwave/pesapal-gem | ruby | ## Code Before:
require 'net/http'
require 'pesapal/merchant'
require 'pesapal/merchant/details'
require 'pesapal/merchant/post'
require 'pesapal/merchant/status'
require 'pesapal/oauth'
require 'pesapal/version'
require 'pesapal/railtie' if defined?(Rails)
## Instruction:
Fix error cause by missing htmlentities
#... |
6c469cb65b8a1dd6ae99a2bec4f98451d94e8070 | db/seeds.rb | db/seeds.rb | User.create(first_name: 'Admin',
last_name: 'User',
email: 'admin@example.com',
access_level: Constants.get_access_id(:admin),
password: 'password', password_confirmation: 'password')
# Create a default category
Category.create(name: 'Default') | User.create(first_name: 'Admin',
last_name: 'User',
email: 'admin@example.com',
access_level: Constants.get_access_id(:admin),
password: 'password', password_confirmation: 'password')
Boss.create(boss_id: 1, employee_id: 1)
# Create a default category
Category.create... | Add a boss/employee relationship for admin to itself in db:seed | Add a boss/employee relationship for admin to itself in db:seed
| Ruby | mit | rnelson/bossfight,rnelson/bossfight,rnelson/bossfight | ruby | ## Code Before:
User.create(first_name: 'Admin',
last_name: 'User',
email: 'admin@example.com',
access_level: Constants.get_access_id(:admin),
password: 'password', password_confirmation: 'password')
# Create a default category
Category.create(name: 'Default')
## Ins... |
d46af8a66b07502862a3bba663975de2d4dd9278 | vim/mod/set.vim | vim/mod/set.vim | set shell=sh
set shortmess+=I
set runtimepath+=$GOROOT/misc/vim
set backup
set backupdir=~/.cache/vim
set undofile
set undodir=~/.cache/vim
set ai smartindent
set hlsearch
set ignorecase
set smartcase
set showmatch
let c_space_errors=1
if v:version >= 704
set cryptmethod=blowfish2
else
" unsecure, but Debian likes i... | set shell=sh
set shortmess+=I
set runtimepath+=$GOROOT/misc/vim
set backup
set backupdir=~/.cache/vim
set undofile
set undodir=~/.cache/vim
set ai smartindent
set hlsearch
set ignorecase
set smartcase
set showmatch
let c_space_errors=1
if v:version >= 704
set cryptmethod=blowfish2
else
" unsecure, but Debian likes i... | Fix doc paths for plugins | Fix doc paths for plugins
| VimL | bsd-2-clause | nakal/shell-setup,nakal/shell-setup | viml | ## Code Before:
set shell=sh
set shortmess+=I
set runtimepath+=$GOROOT/misc/vim
set backup
set backupdir=~/.cache/vim
set undofile
set undodir=~/.cache/vim
set ai smartindent
set hlsearch
set ignorecase
set smartcase
set showmatch
let c_space_errors=1
if v:version >= 704
set cryptmethod=blowfish2
else
" unsecure, bu... |
ca106043fc655a1c51332aedf9b001a512269550 | local-cli/wrong-react-native.js | local-cli/wrong-react-native.js |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var scrip... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
const isW... | Fix local-cli's installedGlobally check to work on Windows platforms | Fix local-cli's installedGlobally check to work on Windows platforms
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.
You can learn more about contributing to React Native he... | JavaScript | mit | facebook/react-native,dikaiosune/react-native,hammerandchisel/react-native,myntra/react-native,jevakallio/react-native,ptmt/react-native-macos,hammerandchisel/react-native,Bhullnatik/react-native,javache/react-native,hammerandchisel/react-native,hoastoolshop/react-native,hammerandchisel/react-native,myntra/react-native... | javascript | ## Code Before:
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory... |
c0ee940a1de0ce38d504a55abca5050618ae945d | data/script.js | data/script.js | function replace_t_co_links() {
$('.twitter-timeline-link').each(function(){
if (!$(this).attr('data-url-expanded')) {
data_expanded_url = $(this).attr('data-expanded-url');
if (data_expanded_url) {
$(this).attr('href', data_expanded_url);
$(this).attr('data-url-expanded', ... | function replace_t_co_links() {
$('.twitter-timeline-link').each(function(){
if (!$(this).attr('data-url-expanded')) {
data_expanded_url = $(this).attr('data-expanded-url');
if (data_expanded_url) {
$(this).attr('href', data_expanded_url);
$(this).attr('data-url-expanded', ... | Remove a debug console error statement | Remove a debug console error statement
| JavaScript | agpl-3.0 | lgp171188/auto-expand-twitter-shortlinks | javascript | ## Code Before:
function replace_t_co_links() {
$('.twitter-timeline-link').each(function(){
if (!$(this).attr('data-url-expanded')) {
data_expanded_url = $(this).attr('data-expanded-url');
if (data_expanded_url) {
$(this).attr('href', data_expanded_url);
$(this).attr('data... |
627ceda6471671cc39da28ec99f2280660cf4b1a | README.md | README.md |
Library that will abstract away the process of associating a phone with an
Android Auto head unit. Once associated, a device will gain the ability to
unlock the head unit via BLE. The library supports both iOS and Android, the
code for which is contained with the `ios` and `android` directories
respectively.
For usag... |
Library that will abstract away the process of associating a phone with an
Android Auto head unit. Once associated, a device will gain the ability to
unlock the head unit via BLE. The library supports both iOS and Android, the
code for which is contained with the `ios` and `android` directories
respectively.
For usag... | Update the link to integration guide. | Update the link to integration guide.
| Markdown | apache-2.0 | google/android-auto-companion-android,google/android-auto-companion-android | markdown | ## Code Before:
Library that will abstract away the process of associating a phone with an
Android Auto head unit. Once associated, a device will gain the ability to
unlock the head unit via BLE. The library supports both iOS and Android, the
code for which is contained with the `ios` and `android` directories
respect... |
c10655e3f2f56199fee6cae8136f831719320d3d | src/main/resources/examples/customized/spells.yml | src/main/resources/examples/customized/spells.yml | nuke:
enabled: false
# Increase the cooldown for Magic Missile
missile:
parameters:
cooldown: 10000
# Change the costs of blink
blink:
costs:
mana: 100
# Add a new version of blink
superblink:
inherit: blink
parameters:
range: 512 | nuke:
enabled: false
# Increase the cooldown for Magic Missile
missile:
parameters:
cooldown: 10000
# Change the costs of blink
blink:
costs:
mana: 100
# Add a new version of blink
superblink:
inherit: blink
parameters:
range: 512
# Make it so Torch doesn't level up
torch:
upgrade_required_... | Add a few more examples to the customized example config | Add a few more examples to the customized example config
| YAML | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin | yaml | ## Code Before:
nuke:
enabled: false
# Increase the cooldown for Magic Missile
missile:
parameters:
cooldown: 10000
# Change the costs of blink
blink:
costs:
mana: 100
# Add a new version of blink
superblink:
inherit: blink
parameters:
range: 512
## Instruction:
Add a few more examples to the ... |
66a8752afa4e275e7fcd238d56d6ecdf26143b59 | createUser.php | createUser.php | <?php
$cid = $_POST["username"];
$old_passwd = $_POST["password"];
$email = $_POST["email"];
$nick = $_POST["nick"];
$new_passwd = $_POST["new_password"];
$redirect = $_GET["redirect_to"];
require("ldap.php");
require("auth.php");
$ldap = new ldap($cid);
$auth = new auth();
if ($ldap->askChalmers() && $ldap->authCh... | <?php
$cid = $_POST["username"];
$old_passwd = $_POST["password"];
$email = $_POST["email"];
$nick = $_POST["nick"];
$new_passwd = $_POST["new_password"];
$redirect = $_GET["redirect_to"];
require("ldap.php");
require("auth.php");
$ldap = new ldap($cid);
$auth = new auth();
if (($ldap->askChalmers(true) || $ldap->a... | Use whitelist when creating account | Use whitelist when creating account
| PHP | mit | cthit/auth,cthit/auth | php | ## Code Before:
<?php
$cid = $_POST["username"];
$old_passwd = $_POST["password"];
$email = $_POST["email"];
$nick = $_POST["nick"];
$new_passwd = $_POST["new_password"];
$redirect = $_GET["redirect_to"];
require("ldap.php");
require("auth.php");
$ldap = new ldap($cid);
$auth = new auth();
if ($ldap->askChalmers() ... |
04efe5ced34803c4d6a6663800611039194cfefd | openflow/of10/match.go | openflow/of10/match.go | package of10
import "net"
type Match struct {
Wildcards uint32
InPort PortNumber
EthSrc net.HardwareAddr
EthDst net.HardwareAddr
VlanId VlanId
VlanPriority VlanPriority
pad1 [1]uint8
EtherType EtherType
IpTos Dscp
IpProtocol ProtocolNumber
pad2 [2]uint... | package of10
import "net"
type Match struct {
Wildcards Wildcard
InPort PortNumber
EthSrc net.HardwareAddr
EthDst net.HardwareAddr
VlanId VlanId
VlanPriority VlanPriority
pad1 [1]uint8
EtherType EtherType
IpTos Dscp
IpProtocol ProtocolNumber
pad2 [2]ui... | Declare constant related to wildcard | Declare constant related to wildcard
| Go | mit | oshothebig/goflow | go | ## Code Before:
package of10
import "net"
type Match struct {
Wildcards uint32
InPort PortNumber
EthSrc net.HardwareAddr
EthDst net.HardwareAddr
VlanId VlanId
VlanPriority VlanPriority
pad1 [1]uint8
EtherType EtherType
IpTos Dscp
IpProtocol ProtocolNumber
pad2... |
4e4e510833e3a45d7628af23f45d55917a2e358c | spec-nylas/stores/namespace-store-spec.coffee | spec-nylas/stores/namespace-store-spec.coffee | _ = require 'underscore'
NamespaceStore = require '../../src/flux/stores/namespace-store'
describe "NamespaceStore", ->
beforeEach ->
@constructor = NamespaceStore.constructor
it "should initialize current() using data saved in config", ->
state =
"id": "123",
"email_address":"bengotow@gmail.c... | _ = require 'underscore'
NamespaceStore = require '../../src/flux/stores/namespace-store'
describe "NamespaceStore", ->
beforeEach ->
@instance = null
@constructor = NamespaceStore.constructor
afterEach ->
@instance.stopListeningToAll()
it "should initialize current() using data saved in config", -... | Fix memory leak in NamespaceStoreSpec | fix(spec): Fix memory leak in NamespaceStoreSpec
| CoffeeScript | mit | nirmit/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nirmit/nyla... | coffeescript | ## Code Before:
_ = require 'underscore'
NamespaceStore = require '../../src/flux/stores/namespace-store'
describe "NamespaceStore", ->
beforeEach ->
@constructor = NamespaceStore.constructor
it "should initialize current() using data saved in config", ->
state =
"id": "123",
"email_address":"... |
7f88db085a6a63106969e63a7fa1552dcb0e95de | lib/slack_trello/copy_cards.rb | lib/slack_trello/copy_cards.rb | module SlackTrello; class CopyCards
attr_reader :source_board, :source_list, :destination_board, :destination_list
def initialize(source_board, source_list, destination_board, destination_list)
@source_board = source_board
@source_list = source_list
@destination_board = destination_board
@destinat... | module SlackTrello; class CopyCards
attr_reader :source_board, :source_list, :destination_board, :destination_list
def initialize(source_board, source_list, destination_board, destination_list)
@source_board = source_board
@source_list = source_list
@destination_board = destination_board
@destinat... | Fix a bug in the CopyCards class | Fix a bug in the CopyCards class
| Ruby | mit | MrPowers/slack_trello,MrPowers/slack_trello | ruby | ## Code Before:
module SlackTrello; class CopyCards
attr_reader :source_board, :source_list, :destination_board, :destination_list
def initialize(source_board, source_list, destination_board, destination_list)
@source_board = source_board
@source_list = source_list
@destination_board = destination_boa... |
a6e333d5038a571d1ca001c1d1a1f6c0fcfaafff | README.md | README.md | userscripts that work with websites from the kiss family.
### Available Scripts
- kiss-statistics
- a script that adds a statistics button to the bookmark sites
- kiss-simple-infobox-hider
- hides the infobox on Kiss player sites.
| userscripts that work with websites from the kiss family.
### Install guide
- Chrome: Install [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=de)
- Firefox: Install [Scriptish](https://addons.mozilla.org/de/firefox/addon/scriptish/) or [Greasemonkey](https://... | Add Install guide and License sections | Add Install guide and License sections | Markdown | mit | Playacem/KissScripts | markdown | ## Code Before:
userscripts that work with websites from the kiss family.
### Available Scripts
- kiss-statistics
- a script that adds a statistics button to the bookmark sites
- kiss-simple-infobox-hider
- hides the infobox on Kiss player sites.
## Instruction:
Add Install guide and License sections
## Code Af... |
f23ff7fc541991ceb63b73ddbf67dc3d04a2cb38 | packages/components/components/modalTwo/useModalState.ts | packages/components/components/modalTwo/useModalState.ts | import { useState } from 'react';
import { generateUID } from '../../helpers';
import { useControlled } from '../../hooks';
const useModalState = (options?: { open?: boolean; onClose?: () => void; onExit?: () => void }) => {
const { open: controlledOpen, onClose, onExit } = options || {};
const [key, setKey]... | import { useState } from 'react';
import { generateUID } from '../../helpers';
import { useControlled } from '../../hooks';
const useModalState = (options?: { open?: boolean; onClose?: () => void; onExit?: () => void }) => {
const { open: controlledOpen, onClose, onExit } = options || {};
const [key, setKey]... | Add mechanism to conditionally render modal | Add mechanism to conditionally render modal
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | typescript | ## Code Before:
import { useState } from 'react';
import { generateUID } from '../../helpers';
import { useControlled } from '../../hooks';
const useModalState = (options?: { open?: boolean; onClose?: () => void; onExit?: () => void }) => {
const { open: controlledOpen, onClose, onExit } = options || {};
con... |
fe5e4e70cdfb31602c7930c0c46f4d15db9429a7 | docker-for-ibm-cloud.md | docker-for-ibm-cloud.md | ---
title: Docker for IBM Cloud
description: Docker for IBM Cloud has been deprecated. Check Docker Certified Infrastructure
redirect_from:
- /docker-for-ibm-cloud/administering-swarms/
- /docker-for-ibm-cloud/binding-services/
- /docker-for-ibm-cloud/cli-ref/
- /docker-for-ibm-cloud/deploy/
- /docker-for-ibm... | ---
title: Docker for IBM Cloud
description: Docker for IBM Cloud has been deprecated. Check Docker Certified Infrastructure
redirect_from:
- /docker-for-ibm-cloud/administering-swarms/
- /docker-for-ibm-cloud/binding-services/
- /docker-for-ibm-cloud/cli-ref/
- /docker-for-ibm-cloud/deploy/
- /docker-for-ibm... | Add redirect from v17.12 version of page since the product has been EOL'ed last year | Add redirect from v17.12 version of page since the product has been EOL'ed last year
| Markdown | apache-2.0 | docker/docker.github.io,thaJeztah/docker.github.io,thaJeztah/docker.github.io,docker/docker.github.io,londoncalling/docker.github.io,londoncalling/docker.github.io,londoncalling/docker.github.io,thaJeztah/docker.github.io,thaJeztah/docker.github.io,londoncalling/docker.github.io,docker/docker.github.io,docker/docker.gi... | markdown | ## Code Before:
---
title: Docker for IBM Cloud
description: Docker for IBM Cloud has been deprecated. Check Docker Certified Infrastructure
redirect_from:
- /docker-for-ibm-cloud/administering-swarms/
- /docker-for-ibm-cloud/binding-services/
- /docker-for-ibm-cloud/cli-ref/
- /docker-for-ibm-cloud/deploy/
-... |
4c4a932b0147cba3e4de2fa677d1256c1603d249 | device-manager-socket-client.coffee | device-manager-socket-client.coffee | uuid = require 'node-uuid'
WebSocket = require 'ws'
class DeviceManagerSocketClient
constructor: (@options={}) ->
@messageCallbacks = {}
connect: (callback=->) =>
@connection = new WebSocket "ws://#{@options.host}:#{@options.port}"
if @connection.on?
@connection.on 'open', callback
@... | uuid = require 'node-uuid'
WebSocket = require 'ws'
class DeviceManagerSocketClient
constructor: (@options={}) ->
@messageCallbacks = {}
connect: (callback=->) =>
@connection = new WebSocket "ws://#{@options.host}:#{@options.port}"
if @connection.on?
@connection.on 'open', callback
@... | Add params to other methods | Add params to other methods
| CoffeeScript | mit | octoblu/gateblu-websocket | coffeescript | ## Code Before:
uuid = require 'node-uuid'
WebSocket = require 'ws'
class DeviceManagerSocketClient
constructor: (@options={}) ->
@messageCallbacks = {}
connect: (callback=->) =>
@connection = new WebSocket "ws://#{@options.host}:#{@options.port}"
if @connection.on?
@connection.on 'open', ... |
616cbaf25086ddf063a0dfdc21ed427663295cad | app/components/services/userService.js | app/components/services/userService.js | (function () {
'use strict';
angular
.module('scrum_retroboard')
.service('userService', ['$http', 'sessionService', userService]);
function userService($http, sessionService) {
var userApiUrl = "";
var username = "";
function addUserToSession(username, sessionId) ... | (function () {
'use strict';
angular
.module('scrum_retroboard')
.service('userService', ['$http', 'sessionService', userService]);
function userService($http, sessionService) {
var userApiUrl = "";
var username = "";
this.addUserToSession = addUserToSession;
... | Fix Ljubomir screwing up services | Fix Ljubomir screwing up services
| JavaScript | mit | Endava-Interns/ScrumRetroBoardFrontEnd,Endava-Interns/ScrumRetroBoardFrontEnd | javascript | ## Code Before:
(function () {
'use strict';
angular
.module('scrum_retroboard')
.service('userService', ['$http', 'sessionService', userService]);
function userService($http, sessionService) {
var userApiUrl = "";
var username = "";
function addUserToSession(usern... |
42ffe540e2948b3f7e2f2f52aa9cc34847223c7f | test/regression/forNameTest.java | test/regression/forNameTest.java | class forNameTest {
public static void main(String argv[]) {
try {
Class.forName("loadThis");
Class c = Class.forName("loadThis", false,
new ClassLoader() {
public Class loadClass(String n, boolean resolve)
throws ClassNotFoundException {
Class cl = findSystemCl... | class forNameTest {
public static void main(String argv[]) {
try {
Class.forName("loadThis");
Class c = Class.forName("loadThis", false,
new ClassLoader() {
public Class loadClass(String n)
throws ClassNotFoundException {
return findSystemClass(n);
}
})... | Revert to previous version.. it should still work. | Revert to previous version.. it should still work.
| Java | lgpl-2.1 | kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe,kaffe/kaffe | java | ## Code Before:
class forNameTest {
public static void main(String argv[]) {
try {
Class.forName("loadThis");
Class c = Class.forName("loadThis", false,
new ClassLoader() {
public Class loadClass(String n, boolean resolve)
throws ClassNotFoundException {
Class c... |
4e2118b89ef6d5532da121af1b75e120f6abd57d | examples/experimental/single_test_suite/svunit_main.sv | examples/experimental/single_test_suite/svunit_main.sv | module svunit_main;
initial
svunit::run_all_tests();
endmodule
| module svunit_main;
import factorial_test::*;
initial
svunit::run_all_tests();
endmodule
| Make sure test code is elaborated | Make sure test code is elaborated
It's kind of annoying to have to force the user to write the extra import statement. Let's see if we can do better.
| SystemVerilog | apache-2.0 | svunit/svunit,svunit/svunit,svunit/svunit | systemverilog | ## Code Before:
module svunit_main;
initial
svunit::run_all_tests();
endmodule
## Instruction:
Make sure test code is elaborated
It's kind of annoying to have to force the user to write the extra import statement. Let's see if we can do better.
## Code After:
module svunit_main;
import factorial_test::*;
... |
54ac1bf24fd22d7b3a208f3eabdeba5903857d20 | bin/sync_all.dart | bin/sync_all.dart | import 'dart:async';
import 'dart_doc_syncer.dart' as syncer;
final examplesToSync = <List<String>>[
<String>[
'public/docs/_examples/template-syntax/dart',
'https://github.com/angular-examples/template-syntax'
]
];
/// Syncs all angular.io example applications.
Future main(List<String> args) async {
f... | import 'dart:async';
import 'dart_doc_syncer.dart' as syncer;
final examplesToSync = <List<String>>[
<String>[
'public/docs/_examples/template-syntax/dart',
'git@github.com:angular-examples/template-syntax.git'
]
];
/// Syncs all angular.io example applications.
Future main(List<String> args) async {
f... | Use ssh for github repositories. | Use ssh for github repositories.
| Dart | mit | dart-archive/dart-doc-syncer | dart | ## Code Before:
import 'dart:async';
import 'dart_doc_syncer.dart' as syncer;
final examplesToSync = <List<String>>[
<String>[
'public/docs/_examples/template-syntax/dart',
'https://github.com/angular-examples/template-syntax'
]
];
/// Syncs all angular.io example applications.
Future main(List<String> a... |
ba7e770faaa459ac276edadcdcfa59ae9a297ae9 | deployment/docker-prod/REQUIREMENTS.txt | deployment/docker-prod/REQUIREMENTS.txt | Django>=1.7,<1.8
psycopg2
pytz
django-braces
django-model-utils
django-pipeline>1.4
nodeenv
raven
django-forms-bootstrap
# Django rest framework support
djangorestframework==2.4.4
markdown
django-filter
Pillow
django-sms-gateway
| Django>=1.7,<1.8
psycopg2
pytz
django-braces
django-model-utils
django-pipeline>1.4
nodeenv
raven
django-forms-bootstrap
# Django rest framework support
djangorestframework==2.4.4
markdown
django-filter
Pillow
# django-sms-gateway # Use this again once we can work with custom users
| Update requirements due to custom sms module | Update requirements due to custom sms module
| Text | bsd-2-clause | cchristelis/watchkeeper,kartoza/watchkeeper,timlinux/watchkeeper,timlinux/watchkeeper,ismailsunni/watchkeeper,MariaSolovyeva/watchkeeper,timlinux/watchkeeper,cchristelis/watchkeeper,MariaSolovyeva/watchkeeper,cchristelis/watchkeeper,kartoza/watchkeeper,kartoza/watchkeeper,cchristelis/watchkeeper,ismailsunni/watchkeeper... | text | ## Code Before:
Django>=1.7,<1.8
psycopg2
pytz
django-braces
django-model-utils
django-pipeline>1.4
nodeenv
raven
django-forms-bootstrap
# Django rest framework support
djangorestframework==2.4.4
markdown
django-filter
Pillow
django-sms-gateway
## Instruction:
Update requirements due to custom sms module
## Code Afte... |
e9a71f62a6d88a13d8be3435e970814b6087bd3e | app/components/layer-info/component.js | app/components/layer-info/component.js | import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';
export default Ember.Component.extend({
users: Ember.A(),
bibliographicUsers: Ember.A(),
institutions: Ember.A(),
getAuthors: function() {
// Cannot be called until node has loaded!
const node = this.get... | import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';
export default Ember.Component.extend({
users: Ember.A(),
bibliographicUsers: Ember.A(),
institutions: Ember.A(),
getAuthors: function() {
// Cannot be called until node has loaded!
const node = this.get... | Fix affiliated institutions multiplying at every render | Fix affiliated institutions multiplying at every render
| JavaScript | apache-2.0 | Rytiggy/osfpages,caneruguz/osfpages,caneruguz/osfpages,Rytiggy/osfpages | javascript | ## Code Before:
import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';
export default Ember.Component.extend({
users: Ember.A(),
bibliographicUsers: Ember.A(),
institutions: Ember.A(),
getAuthors: function() {
// Cannot be called until node has loaded!
const... |
5170227ba25737096e33e87e1b82acbc1844a641 | diversity.md | diversity.md | ---
layout: post
title: Diversity
permalink: /diversity/
isStaticPost: true
---
##### DevFest Berlin supports diversity in technology
We recognize the current status of our industry and we want to change it.
Our goal is to enable everybody to learn and teach programming. As such, we
want to enable underrepresented g... | ---
layout: post
title: Diversity
permalink: /diversity/
isStaticPost: true
---
##### DevFest Berlin supports diversity in technology
We recognize the current status of our industry and we want to change it.
Our goal is to enable everybody to learn and teach programming. As such, we
want to enable underrepresented g... | Apply for mentorship form button | Apply for mentorship form button
| Markdown | mit | devfest-berlin/2016.devfest-berlin.de,devfest-berlin/2016.devfest-berlin.de,devfest-berlin/2016.devfest-berlin.de | markdown | ## Code Before:
---
layout: post
title: Diversity
permalink: /diversity/
isStaticPost: true
---
##### DevFest Berlin supports diversity in technology
We recognize the current status of our industry and we want to change it.
Our goal is to enable everybody to learn and teach programming. As such, we
want to enable un... |
229af6102f49022f1a23837a8d0b37441dbad138 | src/test/scala/com/high-performance-spark-examples/native/NativeExample.scala | src/test/scala/com/high-performance-spark-examples/native/NativeExample.scala | /**
* Test our simple JNI
*/
package com.highperformancespark.examples.ffi
import com.holdenkarau.spark.testing._
import org.scalacheck.{Arbitrary, Gen}
import org.scalacheck.Prop.forAll
import org.scalatest.FunSuite
import org.scalatest.prop.Checkers
import org.scalatest.Matchers._
class NativeExampleSuite extends... | /**
* Test our simple JNI
*/
package com.highperformancespark.examples.ffi
import com.holdenkarau.spark.testing._
import org.scalacheck.{Arbitrary, Gen}
import org.scalacheck.Prop.forAll
import org.scalatest.FunSuite
import org.scalatest.prop.Checkers
import org.scalatest.Matchers._
class NativeExampleSuite extends... | Update to new Arbitraryt generator | Update to new Arbitraryt generator
| Scala | apache-2.0 | mahmoudhanafy/high-performance-spark-examples | scala | ## Code Before:
/**
* Test our simple JNI
*/
package com.highperformancespark.examples.ffi
import com.holdenkarau.spark.testing._
import org.scalacheck.{Arbitrary, Gen}
import org.scalacheck.Prop.forAll
import org.scalatest.FunSuite
import org.scalatest.prop.Checkers
import org.scalatest.Matchers._
class NativeExam... |
cb45cb0417a1938201772064945a375f6954502d | app/jobs/autobot_campaign.rb | app/jobs/autobot_campaign.rb | module Jobs
class AutobotCampaign < Jobs::Base
attr_accessor :campaign
sidekiq_options retry: false
def last_polled_at
campaign["last_polled_at"]
end
def perform(*args)
opts = args.extract_options!.with_indifferent_access
@id = opts[:campaign_id]
@campaign = Autobot::Cam... | module Jobs
class AutobotCampaign < Jobs::Base
attr_accessor :campaign
def last_polled_at
campaign["last_polled_at"]
end
def perform(*args)
opts = args.extract_options!.with_indifferent_access
@id = opts[:campaign_id]
@campaign = Autobot::Campaign.find(@id)
super
... | Allow sidekiq retry for Campaign polling jobs | Allow sidekiq retry for Campaign polling jobs
| Ruby | mit | vinkashq/discourse-autobot,vinkashq/discourse-autobot,vinkashq/discourse-autobot | ruby | ## Code Before:
module Jobs
class AutobotCampaign < Jobs::Base
attr_accessor :campaign
sidekiq_options retry: false
def last_polled_at
campaign["last_polled_at"]
end
def perform(*args)
opts = args.extract_options!.with_indifferent_access
@id = opts[:campaign_id]
@campaig... |
fd8b0c82349599b7c3c78f2774bdb08963092115 | src/main/scala/intellij/haskell/psi/impl/HaskellStringLiteralManipulator.scala | src/main/scala/intellij/haskell/psi/impl/HaskellStringLiteralManipulator.scala | package intellij.haskell.psi.impl
import com.intellij.openapi.util.TextRange
import com.intellij.psi.{AbstractElementManipulator, PsiFileFactory}
import com.intellij.util.IncorrectOperationException
import intellij.haskell.HaskellLanguage
import org.jetbrains.annotations.Nullable
/**
* @author ice1000
*/
class Ha... | package intellij.haskell.psi.impl
import com.intellij.openapi.util.TextRange
import com.intellij.psi.{AbstractElementManipulator, PsiFileFactory}
import com.intellij.util.IncorrectOperationException
import intellij.haskell.HaskellLanguage
import org.jetbrains.annotations.Nullable
/**
* @author ice1000
*/
class Ha... | Fix a bug mentioned in the previous PR | Fix a bug mentioned in the previous PR
| Scala | apache-2.0 | rikvdkleij/intellij-haskell,rikvdkleij/intellij-haskell | scala | ## Code Before:
package intellij.haskell.psi.impl
import com.intellij.openapi.util.TextRange
import com.intellij.psi.{AbstractElementManipulator, PsiFileFactory}
import com.intellij.util.IncorrectOperationException
import intellij.haskell.HaskellLanguage
import org.jetbrains.annotations.Nullable
/**
* @author ice10... |
985c2767d6e65eed358d5a4c6f203069cb560bab | requirements.txt | requirements.txt | vstutils[rpc,ldap,doc,coreapi,prod]==1.1.7
pyyaml
docutils==0.14
markdown2==2.3.5
# API
jsonfield==2.0.2
uWSGI==2.0.17
# Repo types
gitpython==2.1.10
# Hooks
requests==2.19.1
# Ansible required packages
ansible>=2.1, <=2.5.4
paramiko<=2.4.0
pywinrm[kerberos]==0.3.0
github3.py==1.0.0a4
| vstutils[rpc,ldap,doc,coreapi,prod]==1.1.7
pyyaml==3.12 --global-option="--with-libyaml"
docutils==0.14
markdown2==2.3.5
# API
jsonfield==2.0.2
uWSGI==2.0.17
# Repo types
gitpython==2.1.10
# Hooks
requests==2.19.1
# Ansible required packages
ansible>=2.1, <=2.5.4
paramiko<=2.4.0
pywinrm[kerberos]==0.3.0
github3.py=... | Edit dependence PyYAML Record version of PyYAML Add option to install PyYAML only when have libyaml-dev | Edit dependence PyYAML
[ci skip]
Record version of PyYAML
Add option to install PyYAML only when have libyaml-dev | Text | agpl-3.0 | vstconsulting/polemarch,vstconsulting/polemarch,vstconsulting/polemarch,vstconsulting/polemarch | text | ## Code Before:
vstutils[rpc,ldap,doc,coreapi,prod]==1.1.7
pyyaml
docutils==0.14
markdown2==2.3.5
# API
jsonfield==2.0.2
uWSGI==2.0.17
# Repo types
gitpython==2.1.10
# Hooks
requests==2.19.1
# Ansible required packages
ansible>=2.1, <=2.5.4
paramiko<=2.4.0
pywinrm[kerberos]==0.3.0
github3.py==1.0.0a4
## Instructio... |
19c763268bd25eabd42be07324444c89be0b59bd | before_script.sh | before_script.sh |
sudo apt-get install -y libevent-dev
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "\$(php --re libevent | grep 'does not exist')" != "" ]; then
wget http://pecl.php.net/get/libevent-0.0.5.tgz;
tar -xzf libevent-0.0.5.tgz;
cd libevent-0.0.5 && phpize && ./configure && make && sudo make install;
echo "ex... |
sudo apt-get install -y libevent-dev
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "\$(php --re libevent | grep 'does not exist')" != "" ]; then
wget http://pecl.php.net/get/libevent-0.0.5.tgz;
tar -xzf libevent-0.0.5.tgz;
cd libevent-0.0.5 && phpize && ./configure && make && sudo make install && cd ../;
... | Return to the correct directory after compiling ext | Return to the correct directory after compiling ext
| Shell | mit | krageon/react,ympons/react,cesarmarinhorj/react,cesarmarinhorj/react,sachintaware/react,dagopoot/react,naroga/react,ympons/react,ericariyanto/react,reactphp/react,cystbear/react,nemurici/react,nemurici/react,sachintaware/react,naroga/react,krageon/react,dagopoot/react,cystbear/react,ericariyanto/react | shell | ## Code Before:
sudo apt-get install -y libevent-dev
if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "\$(php --re libevent | grep 'does not exist')" != "" ]; then
wget http://pecl.php.net/get/libevent-0.0.5.tgz;
tar -xzf libevent-0.0.5.tgz;
cd libevent-0.0.5 && phpize && ./configure && make && sudo make insta... |
d1f58987df6cdd22ffb788bcc7e44a7801e48815 | tests/README.md | tests/README.md | Tests
=====
Because it is not a Test-driven Development project, we intentionally don't do any unit tests.
In contrast, we use integration tests to avoir regression.
Consequently, Travis-CI has been configured in order to do all these integration tests.
Coverage is then updated in [sonarqube.com](https://sonarqube.co... | Tests
=====
> It’s overwhelmingly easy to write bad unit tests that add very little value to a project while inflating the cost of code changes astronomically.
Steve Sanderson.
Thus, and because it is not a Test-driven Development project, we intentionally don't do any unit tests.
In contrast, we use integration test... | Add more explanation on why we don't do any unit tests | Add more explanation on why we don't do any unit tests
| Markdown | agpl-3.0 | armadito/armadito-glpi,armadito/armadito-glpi,armadito/armadito-glpi | markdown | ## Code Before:
Tests
=====
Because it is not a Test-driven Development project, we intentionally don't do any unit tests.
In contrast, we use integration tests to avoir regression.
Consequently, Travis-CI has been configured in order to do all these integration tests.
Coverage is then updated in [sonarqube.com](http... |
4c0cdf3347fc55cc45e6262f44575960380367cb | .travis.yml | .travis.yml | sudo: false
language: python
python:
- 2.6
- 2.7
- pypy
install:
- make redis
- pip install redis --use-mirrors
env:
- REDIS_VERSION=3.0.7
- REDIS_VERSION=3.2.8
script: make test
| sudo: false
language: python
python:
- 2.6
- 2.7
- pypy
install:
- make redis
- pip install redis
env:
- REDIS_VERSION=3.0.7
- REDIS_VERSION=3.2.8
script: make test
| Drop no longer supported --use-mirrors flag. | Drop no longer supported --use-mirrors flag.
| YAML | mit | seomoz/qless-core,seomoz/qless-core | yaml | ## Code Before:
sudo: false
language: python
python:
- 2.6
- 2.7
- pypy
install:
- make redis
- pip install redis --use-mirrors
env:
- REDIS_VERSION=3.0.7
- REDIS_VERSION=3.2.8
script: make test
## Instruction:
Drop no longer supported --use-mirrors flag.
## Code After:
sudo: false
language: python
pyth... |
3ca3f9473d7031ef9536f56c253ba0a4b7e1ee6e | test/unit/ggrc/converters/test_query_helper.py | test/unit/ggrc/converters/test_query_helper.py |
import unittest
import mock
from ggrc.converters import query_helper
class TestQueryHelper(unittest.TestCase):
def test_expression_keys(self):
""" test expression keys function
Make sure it works with:
empty query
simple query
complex query
invalid complex query
"""
query... |
import unittest
import mock
from ggrc.converters import query_helper
class TestQueryHelper(unittest.TestCase):
def test_expression_keys(self):
""" test expression keys function
Make sure it works with:
empty query
simple query
complex query
invalid complex query
"""
# pyl... | Update unit tests with new query helper names | Update unit tests with new query helper names
| Python | apache-2.0 | j0gurt/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,j0gurt/ggrc-core,edofic/ggrc-core,andrei-karalionak/ggrc-core,josthkko/ggrc-core,andrei-karalionak/ggrc-core,AleksNeStu/ggrc-core,VinnieJohns/ggrc-core,AleksNeStu/ggrc-core,selahssea/ggrc-core,andrei-karalionak/ggrc-core,plamut/ggrc-core,plamut/ggrc-core,josthkko/g... | python | ## Code Before:
import unittest
import mock
from ggrc.converters import query_helper
class TestQueryHelper(unittest.TestCase):
def test_expression_keys(self):
""" test expression keys function
Make sure it works with:
empty query
simple query
complex query
invalid complex query
... |
31233079a8703766984af353085a3890a3f3ac61 | tests/sparkqmltests/qmltests/tst_QmlFileListModel.qml | tests/sparkqmltests/qmltests/tst_QmlFileListModel.qml | import QtQuick 2.0
import QtTest 1.0
import Spark.sys 1.0
import QUIKit 1.0
import Spark.views.components 1.0
import "../sample/rectanlges"
TestCase {
name: "QmlFileListModel"
when: windowShown
TestUtils {
id: utils
}
Component {
id: creator
QmlFileListModel {
}
... | import QtQuick 2.0
import QtTest 1.0
import Spark.sys 1.0
import QUIKit 1.0
import Spark.views.components 1.0
import "../sample/rectanlges"
TestCase {
name: "QmlFileListModel"
TestUtils {
id: utils
}
Component {
id: creator
QmlFileListModel {
}
}
function tes... | Fix test case time out issue | Fix test case time out issue
| QML | apache-2.0 | benlau/sparkqml,benlau/sparkqml,benlau/sparkqml | qml | ## Code Before:
import QtQuick 2.0
import QtTest 1.0
import Spark.sys 1.0
import QUIKit 1.0
import Spark.views.components 1.0
import "../sample/rectanlges"
TestCase {
name: "QmlFileListModel"
when: windowShown
TestUtils {
id: utils
}
Component {
id: creator
QmlFileListMode... |
584a35aee0cea57e939e83fd86b5a58240c15846 | models/src/main/java/com/vimeo/networking2/FeaturesConfiguration.kt | models/src/main/java/com/vimeo/networking2/FeaturesConfiguration.kt | package com.vimeo.networking2
/**
* Based on CAPABILITY_PLATFORM_CONFIGS_OTA_FEATURES.
*/
data class FeaturesConfiguration(
/**
* The Chromecast receiver app ID.
*/
val chromecastAppId: String?,
/**
* Is Comscore enabled for iOS?
*/
val comscore: Boolean?,
/**
* Does t... | package com.vimeo.networking2
/**
* Based on CAPABILITY_PLATFORM_CONFIGS_OTA_FEATURES.
*/
data class FeaturesConfiguration(
/**
* The Chromecast receiver app ID.
*/
val chromecastAppId: String?,
/**
* Is Comscore enabled?
*/
val comscore: Boolean?,
/**
* Does the user ... | Add play tracking enabled field to feature config | Add play tracking enabled field to feature config
| Kotlin | mit | vimeo/vimeo-networking-java,vimeo/vimeo-networking-java,vimeo/vimeo-networking-java | kotlin | ## Code Before:
package com.vimeo.networking2
/**
* Based on CAPABILITY_PLATFORM_CONFIGS_OTA_FEATURES.
*/
data class FeaturesConfiguration(
/**
* The Chromecast receiver app ID.
*/
val chromecastAppId: String?,
/**
* Is Comscore enabled for iOS?
*/
val comscore: Boolean?,
/... |
b9b81b5b11a5d6a6e0d343cf1060da6b18732209 | android/CouchbaseLite/src/ce/java/com/couchbase/lite/Replicator.java | android/CouchbaseLite/src/ce/java/com/couchbase/lite/Replicator.java | package com.couchbase.lite;
import android.support.annotation.NonNull;
import com.couchbase.lite.internal.replicator.CBLWebSocket;
import com.couchbase.litecore.C4Socket;
public final class Replicator extends AbstractReplicator {
/**
* Initializes a replicator with the given configuration.
*
* @pa... | package com.couchbase.lite;
import android.support.annotation.NonNull;
import com.couchbase.lite.internal.replicator.CBLWebSocket;
import com.couchbase.litecore.C4Socket;
public final class Replicator extends AbstractReplicator {
/**
* Initializes a replicator with the given configuration.
*
* @pa... | Fix Replication compilation error (CE) | Fix Replication compilation error (CE)
We have changed an abstact method initC4Socket(int) to initSocketFactory(Object). The implmenation change has been made to the EE version. The CE version of the Replicator class needs to follow.
| Java | apache-2.0 | couchbase/couchbase-lite-android,couchbase/couchbase-lite-android | java | ## Code Before:
package com.couchbase.lite;
import android.support.annotation.NonNull;
import com.couchbase.lite.internal.replicator.CBLWebSocket;
import com.couchbase.litecore.C4Socket;
public final class Replicator extends AbstractReplicator {
/**
* Initializes a replicator with the given configuration.
... |
2f1244881d6b61e023585c20a2f3b9edffa246c3 | spec/models/renalware/medication_spec.rb | spec/models/renalware/medication_spec.rb | require 'rails_helper'
require './spec/support/login_macros'
module Renalware
RSpec.describe Medication, :type => :model do
it { should belong_to(:patient) }
it { should belong_to(:treatable) }
it { should belong_to(:medication_route) }
it { should validate_presence_of :patient }
it { should va... | require 'rails_helper'
require './spec/support/login_macros'
module Renalware
RSpec.describe Medication, :type => :model do
it { should validate_presence_of :patient }
it { should validate_presence_of(:drug) }
it { should validate_presence_of(:dose) }
it { should validate_presence_of(:medication_rout... | Remove low-value specs from medication model | Remove low-value specs from medication model
- we don’t test associations
- we don’t test polymorphic associations | Ruby | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | ruby | ## Code Before:
require 'rails_helper'
require './spec/support/login_macros'
module Renalware
RSpec.describe Medication, :type => :model do
it { should belong_to(:patient) }
it { should belong_to(:treatable) }
it { should belong_to(:medication_route) }
it { should validate_presence_of :patient }
... |
d643b37ec079ab8ac429cb1f256413d2a29c24cc | tasks/gulp/clean-pre.js | tasks/gulp/clean-pre.js | (function(){
'use strict';
var gulp = require('gulp');
var paths = require('./_paths');
var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');
// clean out assets folder
gulp.task('clean-pre', function() {
return gulp
.src([paths.dest, paths.tmp], {read: false})
.pip... | (function(){
'use strict';
var gulp = require('gulp');
var paths = require('./_paths');
var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');
// clean out assets folder
gulp.task('clean-pre', function() {
return gulp
.src([paths.dest, paths.tmp, 'reports/protractor-e2e/scre... | Clean out screenshots on gulp build | Clean out screenshots on gulp build
| JavaScript | mit | ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend | javascript | ## Code Before:
(function(){
'use strict';
var gulp = require('gulp');
var paths = require('./_paths');
var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');
// clean out assets folder
gulp.task('clean-pre', function() {
return gulp
.src([paths.dest, paths.tmp], {read: fa... |
456a22f4f9d6de6acd0d4083adcbc89b5256fbe4 | README.md | README.md | [](https://codeclimate.com/github/archdragon/loot_system)
[](https://travis-ci.org/archdragon/loot_system)
[](https://codeclimate.com/github/archdragon/loot_system)
[](https://travis-ci.org/archdragon/loot_system)
[](https://codeclimate.com/github/archdragon/loot_system)
[](https://travis-ci.org/archdragon/loot_system)
[
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_fi... | from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _is_running(pid_fi... | Make sure filename is a string. | Make sure filename is a string.
| Python | mit | chriscannon/highlander | python | ## Code Before:
from functools import wraps
from logging import getLogger
from os import getcwd, unlink
from os.path import join, realpath, isfile
from psutil import Process
logger = getLogger(__name__)
def one(f):
@wraps(f)
def decorator():
pid_file = realpath(join(getcwd(), '.pid'))
if _i... |
8ead0aa7cc7c5963a0896ed33b5157715c06bb80 | MOLAuthenticatingURLSession.podspec | MOLAuthenticatingURLSession.podspec | Pod::Spec.new do |s|
s.name = 'MOLAuthenticatingURLSession'
s.version = '2.2'
s.platform = :osx
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.homepage = 'https://github.com/google/macops-molauthenticatingurlsession'
s.authors = { 'Google Macops' => 'macops-extern... | Pod::Spec.new do |s|
s.name = 'MOLAuthenticatingURLSession'
s.version = '2.2'
s.platform = :osx
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.homepage = 'https://github.com/google/macops-MOLAuthenticatingURLSession'
s.authors = { 'Google Macops' => 'macops-extern... | Update Podspec, someone has become case-sensitive. | Update Podspec, someone has become case-sensitive.
Cloning the URL in Cocoapods no longer seems to work properly | Ruby | apache-2.0 | russellhancox/macops-MOLAuthenticatingURLSession,google/macops-MOLAuthenticatingURLSession,russellhancox/macops-MOLAuthenticatingURLSession | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = 'MOLAuthenticatingURLSession'
s.version = '2.2'
s.platform = :osx
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.homepage = 'https://github.com/google/macops-molauthenticatingurlsession'
s.authors = { 'Google Macops' =... |
b353aa7fe0add0ef501988077a3976ed3be30645 | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.11.3.js"></script>
<script src="js/scripts.js"></script>
<title>Title</title>
</head>
<body>
</html>
| <!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.11.3.js"></script>
<script src="js/scripts.js"></script>
<title>Address Book</title>
</head>
<body>
<div cl... | Add html to the main page. | Add html to the main page.
| HTML | mit | kcmdouglas/address_book_js,kcmdouglas/address_book_js | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.11.3.js"></script>
<script src="js/scripts.js"></script>
<title>Title</title>
</head>
<body>
<... |
c4b83a12f9765d068056286f35122ae592b77af4 | plugins.md | plugins.md | ---
title: Plugins
layout: page
---
## Reference plugins
The reference plugins are provided by the Maliit project in the plugins repository.
### Maliit Keyboard
[More information](/plugins/maliit-keyboard/)
### Nemo Keyboard
[More information](/plugins/nemo-keyboard/)
## 3rd party Plugins
These plugins are not ... | ---
title: Plugins
layout: page
---
## Reference plugins
The reference plugins are provided by the Maliit project in the plugins repository.
### Maliit Keyboard
[More information](/plugins/maliit-keyboard/)
### Nemo Keyboard
[More information](/plugins/nemo-keyboard/)
## 3rd party Plugins
These plugins are not ... | Call it properly LuneOS Keyboard | Call it properly LuneOS Keyboard
| Markdown | mit | maliit/maliit.github.io,maliit/maliit.github.io | markdown | ## Code Before:
---
title: Plugins
layout: page
---
## Reference plugins
The reference plugins are provided by the Maliit project in the plugins repository.
### Maliit Keyboard
[More information](/plugins/maliit-keyboard/)
### Nemo Keyboard
[More information](/plugins/nemo-keyboard/)
## 3rd party Plugins
These ... |
a02d9115f26320ce23b88da9645a9f118b79556e | tests/AppBundle/Native/InsertTest.php | tests/AppBundle/Native/InsertTest.php | <?php
namespace Tests\AppBundle\Native;
class InsertTest extends ConnectionTestCase
{
public function testIgnore()
{
$connection = $this->getConnection();
try {
$connection->exec('
CREATE TABLE `users` (
`id` INT PRIMARY KEY AUTO_INCREMENT,
... | <?php
namespace Tests\AppBundle\Native;
class InsertTest extends ConnectionTestCase
{
public function testIgnore()
{
$connection = $this->getConnection();
try {
$connection->exec('
CREATE TABLE `users` (
`id` INT PRIMARY KEY AUTO_INCREMENT,
... | INSERT IGONRE `last insert id` after success insert | INSERT IGONRE `last insert id` after success insert
| PHP | mit | SkyStudy/MySQLStudy | php | ## Code Before:
<?php
namespace Tests\AppBundle\Native;
class InsertTest extends ConnectionTestCase
{
public function testIgnore()
{
$connection = $this->getConnection();
try {
$connection->exec('
CREATE TABLE `users` (
`id` INT PRIMARY KEY AUTO_I... |
8a468026da9e915188151e8f3ca71da4f582709b | src/render.js | src/render.js | var fs = require('fs');
var path = require('path');
var handlebars = require('handlebars');
function compileTemplate(hbsFile) {
var src = fs.readFileSync(path.join(__dirname, '..', 'templates', hbsFile));
return handlebars.compile(src.toString());
}
var galleryTemplate = compileTemplate('gallery.... | var fs = require('fs');
var path = require('path');
var handlebars = require('handlebars');
function compileTemplate(hbsFile) {
var src = fs.readFileSync(path.join(__dirname, '..', 'templates', hbsFile));
return handlebars.compile(src.toString());
}
var galleryTemplate = compileTemplate('gallery.... | Fix "split" title when it's more than 2 words | Fix "split" title when it's more than 2 words
| JavaScript | mit | kremlinkev/thumbsup,thumbsup/node-thumbsup,dravenst/thumbsup,rprieto/thumbsup,thumbsup/thumbsup,rprieto/thumbsup,thumbsup/node-thumbsup,thumbsup/node-thumbsup,kremlinkev/thumbsup,thumbsup/thumbsup,dravenst/thumbsup | javascript | ## Code Before:
var fs = require('fs');
var path = require('path');
var handlebars = require('handlebars');
function compileTemplate(hbsFile) {
var src = fs.readFileSync(path.join(__dirname, '..', 'templates', hbsFile));
return handlebars.compile(src.toString());
}
var galleryTemplate = compileTe... |
fb1bfd522816ecb918c5703e0c4fd04d111b14e2 | README.md | README.md | Manage cell phone forwarding for a support team
## What is it for?
The SupportManager allows you and your team to setup forwarding of phone calls from one support phone attached to the computer running the SupportManager to individual phone numbers. It's possible to manually pick a team member to forward to, or to sch... | Manage cell phone forwarding for a support team
## What is it for?
The SupportManager allows you and your team to setup forwarding of phone calls from one support phone attached to the computer running the SupportManager to individual phone numbers. It's possible to manually pick a team member to forward to, or to sch... | Update Readme with regards to Web project | Update Readme with regards to Web project
| Markdown | mit | mycroes/SupportManager,mycroes/SupportManager,mycroes/SupportManager | markdown | ## Code Before:
Manage cell phone forwarding for a support team
## What is it for?
The SupportManager allows you and your team to setup forwarding of phone calls from one support phone attached to the computer running the SupportManager to individual phone numbers. It's possible to manually pick a team member to forwa... |
1285af873673d8c980ea705d15cdccc48bd6c442 | source/_svg-logo.html.haml | source/_svg-logo.html.haml | %svg{width: width, height: height, viewBox: "0 0 134 48", xmlns: "http://www.w3.org/2000/svg"}
%g{stroke: "none", "stroke-width": 1, fill: "none", "fill-rule": "evenodd"}
%path{d: "M2.43359375,44.9980469 L18.9335938,29.4980469 L34.9335938,42.4980469 L53.9335938,20.4980469 L74.4335938,31.4980469 L95.9335938,4.9980... | %svg{width: width, height: height, viewBox: "0 0 134 48", xmlns: "http://www.w3.org/2000/svg"}
%g{stroke: "none", :"stroke-width" => 1, fill: "none", :"fill-rule" => "evenodd"}
%path{d: "M2.43359375,44.9980469 L18.9335938,29.4980469 L34.9335938,42.4980469 L53.9335938,20.4980469 L74.4335938,31.4980469 L95.9335938,... | Fix svg logo for Ruby 2.1 | Fix svg logo for Ruby 2.1
| Haml | mit | lilfaf/website,alpinelab/website,alpinelab/website,lilfaf/website,alpinelab/website | haml | ## Code Before:
%svg{width: width, height: height, viewBox: "0 0 134 48", xmlns: "http://www.w3.org/2000/svg"}
%g{stroke: "none", "stroke-width": 1, fill: "none", "fill-rule": "evenodd"}
%path{d: "M2.43359375,44.9980469 L18.9335938,29.4980469 L34.9335938,42.4980469 L53.9335938,20.4980469 L74.4335938,31.4980469 L9... |
6d5ce6164c4406be66b787c84de64f6919a6246d | changes/jobs/sync_build.py | changes/jobs/sync_build.py | from flask import current_app
from changes.config import queue
from changes.backends.jenkins.builder import JenkinsBuilder
from changes.constants import Status
from changes.models.build import Build
@queue.job
def sync_build(build_id):
try:
build = Build.query.get(build_id)
if build.status == Sta... | from flask import current_app
from changes.config import queue, db
from changes.backends.jenkins.builder import JenkinsBuilder
from changes.constants import Status
from changes.models.build import Build
@queue.job
def sync_build(build_id):
try:
build = Build.query.get(build_id)
if build.status ==... | Correct base_url usage, and force commit | Correct base_url usage, and force commit
| Python | apache-2.0 | dropbox/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes,bowlofstew/changes,dropbox/changes,dropbox/changes,bowlofstew/changes,bowlofstew/changes,wfxiang08/changes,bowlofstew/changes,wfxiang08/changes | python | ## Code Before:
from flask import current_app
from changes.config import queue
from changes.backends.jenkins.builder import JenkinsBuilder
from changes.constants import Status
from changes.models.build import Build
@queue.job
def sync_build(build_id):
try:
build = Build.query.get(build_id)
if bui... |
2f9a0a8a5c34791c0fd5a0675f1777b8659b1cfc | packages/pr/proto-lens-arbitrary.yaml | packages/pr/proto-lens-arbitrary.yaml | homepage: https://github.com/google/proto-lens
changelog-type: ''
hash: bc363750bf27256415e1185002d90237e380aeabc69d74b35914e945a470923e
test-bench-deps: {}
maintainer: agrue+protolens@google.com
synopsis: Arbitrary instances for proto-lens.
changelog: ''
basic-deps:
bytestring: ==0.10.*
lens-family: ==1.2.*
base... | homepage: https://github.com/google/proto-lens
changelog-type: ''
hash: 900549a6a4f54f2e924f9ef402b6e1b73ceeba6707552d004d42b1225536319c
test-bench-deps: {}
maintainer: agrue+protolens@google.com
synopsis: Arbitrary instances for proto-lens.
changelog: ''
basic-deps:
bytestring: ==0.10.*
lens-family: ==1.2.*
base... | Update from Hackage at 2017-07-24T16:51:16Z | Update from Hackage at 2017-07-24T16:51:16Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/google/proto-lens
changelog-type: ''
hash: bc363750bf27256415e1185002d90237e380aeabc69d74b35914e945a470923e
test-bench-deps: {}
maintainer: agrue+protolens@google.com
synopsis: Arbitrary instances for proto-lens.
changelog: ''
basic-deps:
bytestring: ==0.10.*
lens-family... |
f72449c67b4e3fd90be4fdc1c821b98c937c91b9 | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
jdk6:
docker:
- image: openjdk:6-jdk
steps:
- checkout
- run: ./mvnw verify -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
jdk7:
docker:
- image: openjdk:7-jdk
steps:
- checkout
- run: ./mvnw verify -Pintegration -Pjava... | version: 2
jobs:
jdk6:
docker:
- image: openjdk:6-jdk
steps:
- checkout
- run: ./mvnw verify -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
jdk7:
docker:
- image: openjdk:7-jdk
steps:
- checkout
- run: ./mvnw verify -Pintegration -Pjava... | Remove JDK 9 build from Circle due to Docker image problems. | Remove JDK 9 build from Circle due to Docker image problems.
| YAML | apache-2.0 | raphw/byte-buddy,DALDEI/byte-buddy,raphw/byte-buddy,raphw/byte-buddy,CodingFabian/byte-buddy | yaml | ## Code Before:
version: 2
jobs:
jdk6:
docker:
- image: openjdk:6-jdk
steps:
- checkout
- run: ./mvnw verify -Pintegration -Dnet.bytebuddy.test.ci=true -pl '!byte-buddy-gradle-plugin'
jdk7:
docker:
- image: openjdk:7-jdk
steps:
- checkout
- run: ./mvnw verify -Pin... |
3e8643dcddca6e4d3370ea7fe0bbdbebaaedd0e6 | test/fixtures/cookbooks/install_varnish/recipes/full_stack.rb | test/fixtures/cookbooks/install_varnish/recipes/full_stack.rb | apt_update
include_recipe 'yum-epel'
include_recipe 'varnish::default'
# Set up nginx first since it likes to start listening on port 80 during install
include_recipe "#{cookbook_name}::_nginx"
package 'varnish'
service 'varnish' do
action [:enable, :start]
end
varnish_config 'default' do
listen_address '0.0.0... | apt_update 'full_stack'
include_recipe 'yum-epel'
include_recipe 'varnish::default'
# Set up nginx first since it likes to start listening on port 80 during install
include_recipe "#{cookbook_name}::_nginx"
package 'varnish'
service 'varnish' do
action [:enable, :start]
end
varnish_config 'default' do
listen_a... | Fix tests for apt platforms | Fix tests for apt platforms
| Ruby | apache-2.0 | rackspace-cookbooks/varnish,rackspace-cookbooks/varnish,rackspace-cookbooks/varnish | ruby | ## Code Before:
apt_update
include_recipe 'yum-epel'
include_recipe 'varnish::default'
# Set up nginx first since it likes to start listening on port 80 during install
include_recipe "#{cookbook_name}::_nginx"
package 'varnish'
service 'varnish' do
action [:enable, :start]
end
varnish_config 'default' do
liste... |
ed8045280f410332c71e47a831965a8c66f6921d | docs/BETA_CHANGELOG.md | docs/BETA_CHANGELOG.md |
* Ensure that tapping /sign_up or /log_in from a webview doesn't push a new webview. - 1aurabrown
* Make registration for push notifications work on iOS 8 and up and save devices of both trial and registered users on the server. - alloy
* Tapping bid button on an artwork uses new /auctions/ route - orta
* Ensure consi... |
* Use App ID Prefix for keychain access group. - alloy
## 2.0.1 (2015.06.25)
* Ensure that tapping /sign_up or /log_in from a webview doesn't push a new webview. - 1aurabrown
* Make registration for push notifications work on iOS 8 and up and save devices of both trial and registered users on the server. - alloy
* T... | Document App ID Prefix for keychain access group. | [CHANGELOG] Document App ID Prefix for keychain access group.
| Markdown | mit | ichu501/eigen,mbogh/eigen,zhuzhengwei/eigen,orta/eigen,ppamorim/eigen,gaurav1981/eigen,liduanw/eigen,ACChe/eigen,artsy/eigen,Shawn-WangDapeng/eigen,liduanw/eigen,mbogh/eigen,neonichu/eigen,TribeMedia/eigen,xxclouddd/eigen,Havi4/eigen,ACChe/eigen,TribeMedia/eigen,artsy/eigen,neonichu/eigen,foxsofter/eigen,ashkan18/eigen... | markdown | ## Code Before:
* Ensure that tapping /sign_up or /log_in from a webview doesn't push a new webview. - 1aurabrown
* Make registration for push notifications work on iOS 8 and up and save devices of both trial and registered users on the server. - alloy
* Tapping bid button on an artwork uses new /auctions/ route - ort... |
dea751ad7529ea196099ec86632968aff1f4e368 | README.md | README.md | ```bash
git clone https://github.com/zooniverse/Galaxy-Zoo.git
cd Galaxy-Zoo
npm install .
./fits/build.rb
./interactive/build.rb
hem server
open http://localhost:9294/
```
### Bootstrapping an Ubuntu machine from scratch
##### Install Node.js
```bash
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get updat... | ```bash
git clone https://github.com/zooniverse/Galaxy-Zoo.git
cd Galaxy-Zoo
npm install .
./fits/build.rb
./interactive/build.rb
hem server
open http://localhost:9294/
```
### Bootstrapping an Ubuntu machine from scratch
##### Install Node.js
```bash
sudo apt-get install curl git python-software-properties python ... | Fix Error in Ubuntu Setup Instructions | Fix Error in Ubuntu Setup Instructions | Markdown | apache-2.0 | alexbfree/Galaxy-Zoo,murraycu/Galaxy-Zoo,zooniverse/Galaxy-Zoo,zooniverse/Galaxy-Zoo,murraycu/Galaxy-Zoo,willettk/Galaxy-Zoo,willettk/Galaxy-Zoo,alexbfree/Galaxy-Zoo,zooniverse/Galaxy-Zoo,willettk/Galaxy-Zoo,murraycu/Galaxy-Zoo,alexbfree/Galaxy-Zoo | markdown | ## Code Before:
```bash
git clone https://github.com/zooniverse/Galaxy-Zoo.git
cd Galaxy-Zoo
npm install .
./fits/build.rb
./interactive/build.rb
hem server
open http://localhost:9294/
```
### Bootstrapping an Ubuntu machine from scratch
##### Install Node.js
```bash
sudo add-apt-repository ppa:chris-lea/node.js
su... |
b6d25525ade998e7dab256dbf576fc04e2f0bcba | README.md | README.md | rnacentral-webcode
==================
Django code powering the RNAcentral portal
| rnacentral-webcode
==================
Django code powering the RNAcentral portal
[](https://travis-ci.org/RNAcentral/rnacentral-webcode)
| Add Travis badge to Readme | Add Travis badge to Readme | Markdown | apache-2.0 | RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode | markdown | ## Code Before:
rnacentral-webcode
==================
Django code powering the RNAcentral portal
## Instruction:
Add Travis badge to Readme
## Code After:
rnacentral-webcode
==================
Django code powering the RNAcentral portal
[]
type XXH32_hash_t = uint32_t;
#[allow(non_camel_case_types)]
type XXH64_hash_t = uint64_t;
extern "C" {
pub fn XXH32(input: *const c_void, length: size_t, seed: uint32_t) -> XXH32_hash_t;
... | mod ffi {
use libc::{c_void, size_t};
#[allow(non_camel_case_types)]
type XXH32_hash_t = u32;
#[allow(non_camel_case_types)]
type XXH64_hash_t = u64;
extern "C" {
pub fn XXH32(input: *const c_void, length: size_t, seed: u32) -> XXH32_hash_t;
pub fn XXH64(input: *const c_void, ... | Remove usages of deprecated libc types | Remove usages of deprecated libc types
| Rust | mit | shepmaster/twox-hash | rust | ## Code Before:
mod ffi {
use libc::{c_void, size_t, uint32_t, uint64_t};
#[allow(non_camel_case_types)]
type XXH32_hash_t = uint32_t;
#[allow(non_camel_case_types)]
type XXH64_hash_t = uint64_t;
extern "C" {
pub fn XXH32(input: *const c_void, length: size_t, seed: uint32_t) -> XXH32_... |
d386274a06fca7326caa64c567b031d62662cf91 | lab_members/templates/lab_members/scientist_list.html | lab_members/templates/lab_members/scientist_list.html | {% extends CMS|yesno:"base.html,lab_members/base.html,lab_members/base.html" %}
{% load sekizai_tags staticfiles %}
{% block content %}
{% addtoblock "css" strip %}
<link rel="stylesheet" type="text/css" href="{% static 'lab_members/app.css' %}">
{% endaddtoblock %}
<div class="container">
<h1 class="... | {% extends CMS|yesno:"base.html,lab_members/base.html,lab_members/base.html" %}
{% load sekizai_tags staticfiles %}
{% block content %}
{% addtoblock "css" strip %}
<link rel="stylesheet" type="text/css" href="{% static 'lab_members/app.css' %}">
{% endaddtoblock %}
<div class="container">
<h1 class="... | Increase margin at bottom of Lab Alumni gallery heading | Increase margin at bottom of Lab Alumni gallery heading
| HTML | bsd-3-clause | mfcovington/django-lab-members,mfcovington/django-lab-members,mfcovington/django-lab-members | html | ## Code Before:
{% extends CMS|yesno:"base.html,lab_members/base.html,lab_members/base.html" %}
{% load sekizai_tags staticfiles %}
{% block content %}
{% addtoblock "css" strip %}
<link rel="stylesheet" type="text/css" href="{% static 'lab_members/app.css' %}">
{% endaddtoblock %}
<div class="container">
... |
b43f8e8427a9e71012260d82f7cc05d63809bcf9 | OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv | OrcTests/test_data/performance/distrib/vertex/experimental-conditions.csv | Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
12,0.33,1
| Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
120,0.33,28
120,0.33,24
120,0.33,20
120,0.33,16
120,0.33,11
120,0.33,6
120,0.33,4
120,0.33,1
| Add more test conditions for vertex tests | Add more test conditions for vertex tests | CSV | bsd-3-clause | orc-lang/orc,orc-lang/orc,orc-lang/orc,orc-lang/orc,orc-lang/orc | csv | ## Code Before:
Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
12,0.33,1
## Instruction:
Add more test conditions for vertex tests
## Code After:
Number of vertices [numVertices],Probability of edge [probEdge],Cluster size [dOrcNumRuntimes]
120,0.33,28
120,0.33,24
120,0.... |
e1ebeba3881444331e3e509e4f9c6d22a3277fda | app/controllers/questions_controller.rb | app/controllers/questions_controller.rb | class QuestionsController < ApplicationController
def create
@topic = Topic.find(params[:topic_id])
@question = @topic.questions.build(question_params)
respond_to do |format|
if @question.save
format.js
format.html { redirect_to topic_path(@topic)}
else
format.js { ren... | class QuestionsController < ApplicationController
def create
@topic = Topic.find(params[:topic_id])
@question = @topic.questions.build(question_params)
respond_to do |format|
if @question.save
format.js
format.html { redirect_to topic_path(@topic)}
else
format.js { ren... | Add upvote action to questions controller | Add upvote action to questions controller
| Ruby | mit | chi-dragonflies-2015/FAQrator,chi-dragonflies-2015/FAQrator,chi-dragonflies-2015/FAQrator | ruby | ## Code Before:
class QuestionsController < ApplicationController
def create
@topic = Topic.find(params[:topic_id])
@question = @topic.questions.build(question_params)
respond_to do |format|
if @question.save
format.js
format.html { redirect_to topic_path(@topic)}
else
... |
96c9f29da989bc28da1993ca10ea4f6e7be8a66f | README.md | README.md |
Idk. Let [this page](http://shannoncrabill.com/how-many-days-until-halloween/) do the counting for you!

## Contributing
To keep in the spirit of [Hacktoberfest](https://hacktoberfest.digitalocean.com/) I'm opening this up to the Github community.
See a [list of current issues](https:/... |
Idk. Let [this page](http://shannoncrabill.com/how-many-days-until-halloween/) do the counting for you!

## Update 10/17
Wow! I'm happy to see all the pull requests that are waiting for me to review. I'm working on reviewing all of them, merging where appropriate and providing feedback.... | Add update message to readme | Add update message to readme
| Markdown | mit | KevinBruland/how-many-days-until-halloween,scrabill/how-many-days-until-halloween,scrabill/how-many-days-until-halloween,KevinBruland/how-many-days-until-halloween | markdown | ## Code Before:
Idk. Let [this page](http://shannoncrabill.com/how-many-days-until-halloween/) do the counting for you!

## Contributing
To keep in the spirit of [Hacktoberfest](https://hacktoberfest.digitalocean.com/) I'm opening this up to the Github community.
See a [list of current... |
8eeaa69574ee723a4e3d435140814c5776e97055 | trunk/metpy/bl/sim/mos.py | trunk/metpy/bl/sim/mos.py | import numpy as N
def u_star(u,v,w):
'''
Compute the friction velocity, u_star, from the timeseries of the velocity \
components u, v, and w (an nD array)
'''
from metpy.bl.turb.fluxes import rs as R
rs = R(u,v,w)
uw = rs[3]
vw = rs[4]
us = N.power(N.power(uw,2)+N.power(vw,2),0.25)
re... | import numpy as N
def u_star(u,v,w):
'''
Compute the friction velocity, u_star, from the timeseries of the velocity \
components u, v, and w (an nD array)
'''
from metpy.bl.turb.fluxes import rs as R
rs = R(u,v,w)
uw = rs[3]
vw = rs[4]
us = N.power(N.power(uw,2)+N.power(vw,2),0.25)
re... | Change to import gravity constant from constants file. | Change to import gravity constant from constants file.
git-svn-id: acf0ef94bfce630b1a882387fc03ab8593ec6522@23 150532fb-1d5b-0410-a8ab-efec50f980d4
| Python | bsd-3-clause | Unidata/MetPy,dopplershift/MetPy,jrleeman/MetPy,ahaberlie/MetPy,ShawnMurd/MetPy,Unidata/MetPy,ahaberlie/MetPy,deeplycloudy/MetPy,jrleeman/MetPy,ahill818/MetPy,dopplershift/MetPy | python | ## Code Before:
import numpy as N
def u_star(u,v,w):
'''
Compute the friction velocity, u_star, from the timeseries of the velocity \
components u, v, and w (an nD array)
'''
from metpy.bl.turb.fluxes import rs as R
rs = R(u,v,w)
uw = rs[3]
vw = rs[4]
us = N.power(N.power(uw,2)+N.power(vw,... |
64c58a0c3f2733d6d35dab50299ddf33a52c8f1c | Tests/Recurly/Resource_Test.php | Tests/Recurly/Resource_Test.php | <?php
require_once(__DIR__ . '/../test_helpers.php');
class Recource_Mock_Resource extends Recurly_Resource {
protected function getNodeName() {
return 'mock';
}
protected function getWriteableAttributes() {
return array('date', 'bool', 'number', 'array', 'nil', 'string');
}
protected function getRe... | <?php
require_once(__DIR__ . '/../test_helpers.php');
class Mock_Resource extends Recurly_Resource {
protected function getNodeName() {
return 'mock';
}
protected function getWriteableAttributes() {
return array('date', 'bool', 'number', 'array', 'nil', 'string');
}
protected function getRequiredAtt... | Fix the spelling of the class name | Fix the spelling of the class name
| PHP | mit | cgerrior/recurly-client-php,phpdave/recurly-client-php,developer-devPHP/recurly-client-php,developer-devPHP/recurly-client-php | php | ## Code Before:
<?php
require_once(__DIR__ . '/../test_helpers.php');
class Recource_Mock_Resource extends Recurly_Resource {
protected function getNodeName() {
return 'mock';
}
protected function getWriteableAttributes() {
return array('date', 'bool', 'number', 'array', 'nil', 'string');
}
protecte... |
4b57fbee2dac791f023bc474594245a725366405 | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
env:
global:
- CODECLIMATE_REPO_TOKEN=b815025e22a9280228206c24a7f8edb076bac1f7889bc1f394669dc908d6b298
matrix:
-
- CAP_VERSION=3.0
script: "bundle exec rake spec"
branches:
only:
- master
| language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
env:
global:
- CODECLIMATE_REPO_TOKEN=0aa39b8485a9dd2aa62dbb77b02c90d1b58fa8f62a2dc03f26a304993b5908ae
matrix:
-
- CAP_VERSION=3.0
script: "bundle exec rake spec"
branches:
only:
- master
| Update the code climate token | Update the code climate token
| YAML | mit | kaizenplatform/capistrano-db-mirror | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
env:
global:
- CODECLIMATE_REPO_TOKEN=b815025e22a9280228206c24a7f8edb076bac1f7889bc1f394669dc908d6b298
matrix:
-
- CAP_VERSION=3.0
script: "bundle exec rake spec"
branches:
only:
- master
## Instruction:
Update the code climat... |
b404b12011dae2933664f5d89018cfb3fd51eebf | app/views/drawings/_drawing.html.haml | app/views/drawings/_drawing.html.haml | .drawings-wrapper{ class: drawings_class }
.drawing
.image.center-block
= link_to (image_tag drawing.image.url(:medium), class:'img-responsive'),
drawing_path(drawing)
.drawing-bottom
.caption
.caption-content
.drawing-description
= drawing.descriptio... | .drawings-wrapper{ class: drawings_class }
.drawing
.image.center-block
= link_to (image_tag drawing.image.url(:medium), class:'img-responsive'),
drawing_path(drawing)
.drawing-bottom
.caption
.caption-content
.drawing-row
%strong
= draw... | Add all form info into view page. Whole page needs UX input but getting the data in there at least. | Add all form info into view page. Whole page needs UX input but getting the data in there at least. | Haml | mit | empowerhack/DrawMyLife-Service,empowerhack/DrawMyLife-Service,empowerhack/DrawMyLife-Service | haml | ## Code Before:
.drawings-wrapper{ class: drawings_class }
.drawing
.image.center-block
= link_to (image_tag drawing.image.url(:medium), class:'img-responsive'),
drawing_path(drawing)
.drawing-bottom
.caption
.caption-content
.drawing-description
= dr... |
b75b35c2e3bf2cf0e23d3e9f9d4af74863643749 | packages/de/decimal-literals.yaml | packages/de/decimal-literals.yaml | homepage: https://github.com/leftaroundabout/decimal-literals
changelog-type: markdown
hash: ab66d26304cb74296ca1f11f05006771efee8c1a7885d2d9e22922101080e62d
test-bench-deps:
base: ! '>=4 && <5'
decimal-literals: -any
tasty-hunit: -any
tasty: ! '>=0.7'
maintainer: (@) jsagemue $ uni-koeln.de
synopsis: Preproces... | homepage: https://github.com/leftaroundabout/decimal-literals
changelog-type: markdown
hash: 4beaadce57285d466570f06989c15ae1da1858eeff7de43e94d015272c8fa36c
test-bench-deps:
base: ! '>=4 && <5'
decimal-literals: -any
tasty-hunit: -any
tasty: ! '>=0.7'
maintainer: (@) jsagemue $ uni-koeln.de
synopsis: Preproces... | Update from Hackage at 2019-02-12T19:58:22Z | Update from Hackage at 2019-02-12T19:58:22Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/leftaroundabout/decimal-literals
changelog-type: markdown
hash: ab66d26304cb74296ca1f11f05006771efee8c1a7885d2d9e22922101080e62d
test-bench-deps:
base: ! '>=4 && <5'
decimal-literals: -any
tasty-hunit: -any
tasty: ! '>=0.7'
maintainer: (@) jsagemue $ uni-koeln.de
syn... |
96355a918a22e53d0c2ae369aae77b2c7b4b276e | third_party/widevine/cdm/android/widevine_cdm_version.h | third_party/widevine/cdm/android/widevine_cdm_version.h | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicates that the Wide... | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicates that the Wide... | Remove obsolete defines from Android CDM file. | Remove obsolete defines from Android CDM file.
BUG=349185
Review URL: https://codereview.chromium.org/1000863003
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#321407}
| C | bsd-3-clause | ltilve/chromium,Chilledheart/chromium,Chilledheart/chromium,fujunwei/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,fu... | c | ## Code Before:
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WIDEVINE_CDM_VERSION_H_
#define WIDEVINE_CDM_VERSION_H_
#include "third_party/widevine/cdm/widevine_cdm_common.h"
// Indicat... |
91ade227c9c26e788946167b773d87b63f359413 | spec/cloudflare/dns_spec.rb | spec/cloudflare/dns_spec.rb |
require 'cloudflare/rspec/connection'
RSpec.describe Cloudflare::DNS, order: :defined, timeout: 30 do
include_context Cloudflare::Zone
let(:subdomain) {"dyndns#{Time.now.to_i}"}
let(:record) {@record = zone.dns_records.create("A", subdomain, "1.2.3.4")}
after do
if defined? @record
expect(@record.delet... |
require 'cloudflare/rspec/connection'
RSpec.describe Cloudflare::DNS, order: :defined, timeout: 30 do
include_context Cloudflare::Zone
let(:subdomain) {"www#{ENV['TRAVIS_JOB_ID']}"}
let(:record) {@record = zone.dns_records.create("A", subdomain, "1.2.3.4")}
after do
if defined? @record
expect(@record.d... | Use TRAVIS_JOB_ID as part of subdomain. | Use TRAVIS_JOB_ID as part of subdomain.
| Ruby | mit | b4k3r/cloudflare | ruby | ## Code Before:
require 'cloudflare/rspec/connection'
RSpec.describe Cloudflare::DNS, order: :defined, timeout: 30 do
include_context Cloudflare::Zone
let(:subdomain) {"dyndns#{Time.now.to_i}"}
let(:record) {@record = zone.dns_records.create("A", subdomain, "1.2.3.4")}
after do
if defined? @record
expe... |
c4758430ac815de983cfd350dcabe2fa2a5c7d1a | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.2"
- "3.3"
before_install:
- sudo apt-get install -qq python-pyside
- sudo apt-get install -qq python-qt4
- sudo apt-get install -qq python3-pyside
- sudo apt-get install -qq python3-pyqt4
- export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/dist-packages/"
- sudo python... | language: python
python:
- "2.7"
- "3.2"
- "3.3"
before_install:
- sudo apt-get install -qq python-pyside
- sudo apt-get install -qq python-qt4
- sudo apt-get install -qq python3-pyside
- sudo apt-get install -qq python3-pyqt4
- sudo pip-2.7 install pygments
- sudo pip-3.2 install pygments
- sudo pip-3.3 i... | Add python 3.2 and 3.3 to python path. Install pygments foreach interpreter | Add python 3.2 and 3.3 to python path.
Install pygments foreach interpreter
| YAML | mit | zwadar/pyqode.core,pyQode/pyqode.core,pyQode/pyqode.core | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.2"
- "3.3"
before_install:
- sudo apt-get install -qq python-pyside
- sudo apt-get install -qq python-qt4
- sudo apt-get install -qq python3-pyside
- sudo apt-get install -qq python3-pyqt4
- export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/dist-packages/... |
4b54d1472a57ad4d45293ec7bdce9a0ed9746bde | ideasbox/mixins.py | ideasbox/mixins.py | from django.views.generic import ListView
class ByTagListView(ListView):
def get_queryset(self):
qs = super(ByTagListView, self).get_queryset()
if 'tag' in self.kwargs:
qs = qs.filter(tags__slug__in=[self.kwargs['tag']])
return qs
def get_context_data(self, **kwargs):
... | from django.views.generic import ListView
from taggit.models import Tag
class ByTagListView(ListView):
def get_queryset(self):
qs = super(ByTagListView, self).get_queryset()
if 'tag' in self.kwargs:
qs = qs.filter(tags__slug__in=[self.kwargs['tag']])
return qs
def get_co... | Use tag name not slug in tag page title | Use tag name not slug in tag page title
| Python | agpl-3.0 | ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,Lcaracol/ideasbox.lan,Lcaracol/ideasbox.lan,Lcaracol/ideasbox.lan,ideascube/ideascube | python | ## Code Before:
from django.views.generic import ListView
class ByTagListView(ListView):
def get_queryset(self):
qs = super(ByTagListView, self).get_queryset()
if 'tag' in self.kwargs:
qs = qs.filter(tags__slug__in=[self.kwargs['tag']])
return qs
def get_context_data(self... |
13b43dbe2c43ef73bb222887b18ac74a2b63fa9b | SplitView/SplitViewController.swift | SplitView/SplitViewController.swift | //
// SplitViewController.swift
// SplitView
//
// Created by phatblat on 9/4/14.
// Copyright (c) 2014 phatblat. All rights reserved.
//
import UIKit
class SplitViewController: UISplitViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
}
| //
// SplitViewController.swift
// SplitView
//
// Created by phatblat on 9/4/14.
// Copyright (c) 2014 phatblat. All rights reserved.
//
import UIKit
class SplitViewController: UISplitViewController {
override func viewDidLoad() {
super.viewDidLoad()
delegate = self
}
}
// MARK: - Spli... | Allow portrait upside down orientation on phones | Allow portrait upside down orientation on phones
| Swift | mit | phatblat/SplitView | swift | ## Code Before:
//
// SplitViewController.swift
// SplitView
//
// Created by phatblat on 9/4/14.
// Copyright (c) 2014 phatblat. All rights reserved.
//
import UIKit
class SplitViewController: UISplitViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
}
## Instruction:
Allow p... |
3ef54dbcad8bd84b2c0f7203f4d6436ac751e214 | module/Album/Module.php | module/Album/Module.php | <?php
namespace Album;
use Zend\Db\Adapter\Adapter;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
class Module implements ConfigProviderInterface
{
public function getConfig()
{
return include __DIR__ . '/config/module.... | <?php
namespace Album;
use Zend\Db\Adapter\Adapter;
use Zend\Db\Adapter\AdapterInterface;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
class Module implements ConfigProviderInterface
{
public function getConfig()
{
ret... | Fix non existing Model\AlbumTableGateway::class FQN | Fix non existing Model\AlbumTableGateway::class FQN
| PHP | bsd-3-clause | fallout1986/zf3-album-pipeline,fallout1986/zf3-album-pipeline | php | ## Code Before:
<?php
namespace Album;
use Zend\Db\Adapter\Adapter;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
class Module implements ConfigProviderInterface
{
public function getConfig()
{
return include __DIR__ . ... |
3387ee5f00f7886266c32b12c2bc1b5bcd52d47c | public/stylesheets/v2/ui/tables.css | public/stylesheets/v2/ui/tables.css | .table {
width: 100%;
border-collapse: collapse;
}
.table > thead > tr > th,
.table > tbody > tr > th {
font-weight: 700;
}
.table > thead > tr > th {
text-transform: uppercase;
font-size: 0.8em;
}
.table th,
.table td {
padding: 0.25em;
}
.table > thead > tr > th {
border-bottom: 1px solid rgb(127, 1... | .table {
width: 100%;
border-collapse: collapse;
}
.table-zebra > tbody > tr:nth-child(even) {
background-color: transparent;
}
.table-zebra > tbody > tr:nth-child(odd) {
background-color: #f5f5f5;
}
.table > thead > tr > th,
.table > tbody > tr > th {
font-weight: 700;
}
.table > thead > tr > th {
text... | Add a few table styles for BPCS | Add a few table styles for BPCS
| CSS | mit | documentcloud/documentcloud,documentcloud/documentcloud,documentcloud/documentcloud,documentcloud/documentcloud | css | ## Code Before:
.table {
width: 100%;
border-collapse: collapse;
}
.table > thead > tr > th,
.table > tbody > tr > th {
font-weight: 700;
}
.table > thead > tr > th {
text-transform: uppercase;
font-size: 0.8em;
}
.table th,
.table td {
padding: 0.25em;
}
.table > thead > tr > th {
border-bottom: 1px ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.