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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bb2257bec5ddb14bb74aff56690accaf15f2e4f9 | package.json | package.json | {
"name": "configurator-closure-loader",
"version": "0.1.21",
"description": "Webpack loader for google closure library dependencies",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"webpack",
"loader",
"closure"
],
"repository":... | {
"name": "configurator-closure-loader",
"version": "0.1.22",
"description": "Webpack loader for google closure library dependencies",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"webpack",
"loader",
"closure"
],
"repository":... | Upgrade to webpack 3; v0.1.22 | Upgrade to webpack 3; v0.1.22
| JSON | mit | configurator/closure-loader | json | ## Code Before:
{
"name": "configurator-closure-loader",
"version": "0.1.21",
"description": "Webpack loader for google closure library dependencies",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"webpack",
"loader",
"closure"
],... |
75205b2b207b78d0f78e520b06b764ac2268c27c | src/common/Screen.js | src/common/Screen.js | /* @flow */
import React from 'react';
import { connect } from 'react-redux';
import { View, StyleSheet, KeyboardAvoidingView, Platform } from 'react-native';
import type { LocalizableText, PopRouteAction, NavigationState } from '../types';
import { ZulipStatusBar } from '../common';
import ModalNavBar from '../nav/Mo... | /* @flow */
import React from 'react';
import { connect } from 'react-redux';
import { View, StyleSheet, KeyboardAvoidingView, Platform } from 'react-native';
import type { LocalizableText, PopRouteAction, NavigationState } from '../types';
import { ZulipStatusBar } from '../common';
import ModalNavBar from '../nav/Mo... | Use ZulipStatusBar and background as per theme | Use ZulipStatusBar and background as per theme
| JavaScript | apache-2.0 | kunall17/zulip-mobile,Sam1301/zulip-mobile,nashvail/zulip-mobile,kunall17/zulip-mobile,kunall17/zulip-mobile,vishwesh3/zulip-mobile,Sam1301/zulip-mobile,vishwesh3/zulip-mobile,Sam1301/zulip-mobile,Sam1301/zulip-mobile,nashvail/zulip-mobile,kunall17/zulip-mobile,Sam1301/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zuli... | javascript | ## Code Before:
/* @flow */
import React from 'react';
import { connect } from 'react-redux';
import { View, StyleSheet, KeyboardAvoidingView, Platform } from 'react-native';
import type { LocalizableText, PopRouteAction, NavigationState } from '../types';
import { ZulipStatusBar } from '../common';
import ModalNavBar... |
2d5c8f3e49f74467024284a401523114ec40b863 | app/views/layouts/_navbar.html.erb | app/views/layouts/_navbar.html.erb | <div class="navbar navbar-fixed-top navbar-inverse">
<%= image_tag "cf_logo.png", id: "corner_logo" %>
<% if user_signed_in? %>
<%= render 'layouts/navbar_account' %>
<% end %>
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<%= link_to "Partner Dashboard", root_path, class: ... | <div class="navbar navbar-fixed-top navbar-inverse">
<a href="https://www.codefellows.org"><%= image_tag "cf_logo.png", id: "corner_logo" %></a>
<% if user_signed_in? %>
<%= render 'layouts/navbar_account' %>
<% end %>
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<%= link_... | Make code fellows badge a link to code fellows home page | Make code fellows badge a link to code fellows home page
| HTML+ERB | mit | natsteinmetz/partner_dashboard,natsteinmetz/partner_dashboard | html+erb | ## Code Before:
<div class="navbar navbar-fixed-top navbar-inverse">
<%= image_tag "cf_logo.png", id: "corner_logo" %>
<% if user_signed_in? %>
<%= render 'layouts/navbar_account' %>
<% end %>
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<%= link_to "Partner Dashboard", ro... |
b55f880991f6bc688f85b45a9962a7d5f32d0b9a | cvxpy/meta.yaml | cvxpy/meta.yaml | package:
name: cvxpy
version: "0.4.8"
build:
number: 0
source:
git_url: https://github.com/cvxgrp/cvxpy
requirements:
build:
- python
- numpy
- scipy
- multiprocess
- toolz
- scs
- ecos
- cvxopt
- setuptools
- cvxcanon >=0.0.22
- six
run:
- python
- nu... | package:
name: cvxpy
version: "0.4.8"
build:
number: 0
source:
git_url: https://github.com/cvxgrp/cvxpy
requirements:
build:
- python
- numpy
- scipy
- multiprocess
- toolz
- scs
- ecos
- cvxopt
- setuptools
- cvxcanon >=0.0.22
- six
- fastcache
run:
-... | Fix cvxpy sloppy build reqs | Fix cvxpy sloppy build reqs
| YAML | mit | jchodera/conda-recipes,peastman/conda-recipes,omnia-md/conda-recipes,jchodera/conda-recipes,jchodera/conda-recipes,peastman/conda-recipes,peastman/conda-recipes,omnia-md/conda-recipes,omnia-md/conda-recipes,jchodera/conda-recipes | yaml | ## Code Before:
package:
name: cvxpy
version: "0.4.8"
build:
number: 0
source:
git_url: https://github.com/cvxgrp/cvxpy
requirements:
build:
- python
- numpy
- scipy
- multiprocess
- toolz
- scs
- ecos
- cvxopt
- setuptools
- cvxcanon >=0.0.22
- six
run:
-... |
f0b4be41f91e6f41a4af3d1ccc494a96a35e04b1 | README.md | README.md |
A small Sublime Text 3 plugin to open the directory the active file is in as a folder, in a new window.
## Usage
1. Command palatte (Ctrl+Shift+P or Command+Shift+P)
2. "Open active file in folder: Do it"
|
A small Sublime Text 3 plugin to open the directory the active file is in as a folder, in a new window.
## Install
Not on [Package Control](https://packagecontrol.io/)'s main channel, so you can either install it [manually](https://stackoverflow.com/questions/15652758/how-to-install-plugins-to-sublime-text-2-editor/... | Add installation instructions to readme | Add installation instructions to readme
| Markdown | mit | gyng/OpenActiveFileInFolder,gyng/OpenActiveFileInFolder | markdown | ## Code Before:
A small Sublime Text 3 plugin to open the directory the active file is in as a folder, in a new window.
## Usage
1. Command palatte (Ctrl+Shift+P or Command+Shift+P)
2. "Open active file in folder: Do it"
## Instruction:
Add installation instructions to readme
## Code After:
A small Sublime Text 3... |
fe41ecce4b840374a561bbef0bbf4ad465e66180 | tests/ml/test_fasttext_helpers.py | tests/ml/test_fasttext_helpers.py | import pandas
import unittest
import cocoscore.ml.fasttext_helpers as fth
class CVTest(unittest.TestCase):
train_path = 'ft_simple_test.txt'
ft_path = '/home/lib/fastText'
model_path = 'testmodel'
def test_train_call_parameters(self):
train_call, compress_call = fth.get_fasttext_train_calls(... | import pandas
import unittest
import cocoscore.ml.fasttext_helpers as fth
class CVTest(unittest.TestCase):
train_path = 'ft_simple_test.txt'
ft_path = '/home/lib/fastText'
model_path = 'testmodel'
test_path = 'ft_simple_test.txt'
probability_path = 'ft_simple_prob.txt'
def test_train_call_pa... | Add unittest for testing file path | Add unittest for testing file path
| Python | mit | JungeAlexander/cocoscore | python | ## Code Before:
import pandas
import unittest
import cocoscore.ml.fasttext_helpers as fth
class CVTest(unittest.TestCase):
train_path = 'ft_simple_test.txt'
ft_path = '/home/lib/fastText'
model_path = 'testmodel'
def test_train_call_parameters(self):
train_call, compress_call = fth.get_fastt... |
12ad57616a1bcb81dbdfe24e808ebceda1b87515 | addon/stores/base-store/decorate-serializer.js | addon/stores/base-store/decorate-serializer.js | import Ember from 'ember';
import isObject from '../../utils/is-object';
/*
* Extend serializer so that we can use local serializer when local adater is
* used.
*/
export default function decorateSerializer(serializer) {
if(serializer.get('flexberry')) {
return serializer;
}
serializer.set('flexberry', t... | import Ember from 'ember';
import isObject from '../../utils/is-object';
/*
* Extend serializer so that we can use local serializer when local adater is
* used.
*/
export default function decorateSerializer(serializer) {
if(serializer.get('flexberry')) {
return serializer;
}
serializer.set('flexberry', t... | Fix wrong name of decorated method of online serializer | Fix wrong name of decorated method of online serializer
| JavaScript | mit | Flexberry/ember-flexberry-offline,Flexberry/ember-flexberry-offline | javascript | ## Code Before:
import Ember from 'ember';
import isObject from '../../utils/is-object';
/*
* Extend serializer so that we can use local serializer when local adater is
* used.
*/
export default function decorateSerializer(serializer) {
if(serializer.get('flexberry')) {
return serializer;
}
serializer.se... |
b8e6e6070d87d955ff98494069166f57a91e3f16 | .github/workflows/gcc.yml | .github/workflows/gcc.yml | name: gcc
on:
push:
branches: [ master, hotfix/issue-314-constexpr ]
pull_request:
branches: [ master ]
jobs:
build-gcc-linux:
name: GCC Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Bu... | name: gcc
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-gcc-linux:
name: GCC Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
cma... | Make modifying constexpr C++14 only | Make modifying constexpr C++14 only
| YAML | mit | ETLCPP/etl,ETLCPP/etl,ETLCPP/etl,ETLCPP/etl | yaml | ## Code Before:
name: gcc
on:
push:
branches: [ master, hotfix/issue-314-constexpr ]
pull_request:
branches: [ master ]
jobs:
build-gcc-linux:
name: GCC Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2... |
fb3abf0d1cf27d23c78dd8101dd0c54cf589c2ef | corehq/apps/locations/resources/v0_6.py | corehq/apps/locations/resources/v0_6.py | from corehq.apps.api.resources.auth import RequirePermissionAuthentication
from corehq.apps.locations.models import SQLLocation
from corehq.apps.users.models import HqPermissions
from corehq.apps.locations.resources import v0_5
class LocationResource(v0_5.LocationResource):
resource_name = 'location'
class ... | from corehq.apps.api.resources.auth import RequirePermissionAuthentication
from corehq.apps.locations.models import SQLLocation
from corehq.apps.users.models import HqPermissions
from corehq.apps.locations.resources import v0_5
class LocationResource(v0_5.LocationResource):
resource_name = 'location'
class ... | Use objects manager that automatically filters out archived forms | Use objects manager that automatically filters out archived forms
Co-authored-by: Ethan Soergel <c1732a0c832c5c8cbfae77286e6475129315f488@users.noreply.github.com> | Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | python | ## Code Before:
from corehq.apps.api.resources.auth import RequirePermissionAuthentication
from corehq.apps.locations.models import SQLLocation
from corehq.apps.users.models import HqPermissions
from corehq.apps.locations.resources import v0_5
class LocationResource(v0_5.LocationResource):
resource_name = 'locat... |
43c15097b32e3338b9b4f003f5945d5c45122c39 | console/src/app/core/services/container-server/container-server-service.ts | console/src/app/core/services/container-server/container-server-service.ts | import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Constants } from "src/app/common/constants";
import { Observable } from "rxjs";
@Injectable({
providedIn: 'root'
})
// NOTE: Prometheus configuration is being send via the Node.JS server ...
// wh... | import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Constants } from "src/app/common/constants";
import { Observable } from "rxjs";
@Injectable({
providedIn: 'root'
})
// NOTE: Prometheus configuration is being send via the Node.JS server ...
// wh... | Fix issue with URL address of container server. | Fix issue with URL address of container server.
| TypeScript | mit | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | typescript | ## Code Before:
import { Injectable } from "@angular/core";
import { HttpClient, HttpHeaders } from "@angular/common/http";
import { Constants } from "src/app/common/constants";
import { Observable } from "rxjs";
@Injectable({
providedIn: 'root'
})
// NOTE: Prometheus configuration is being send via the Node.JS s... |
9fc75f3db9f9637708e92bf02580e1d52070e3c0 | playbooks/roles/container/meta/main.yml | playbooks/roles/container/meta/main.yml | ---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role... | ---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role... | Add common role dependency to container role | Add common role dependency to container role
| YAML | agpl-3.0 | hks-epod/configuration,open-craft/configuration,EDUlib/configuration,edx/configuration,hks-epod/configuration,appsembler/configuration,arbrandes/edx-configuration,nunpa/configuration,jorgeomarmh/configuration,michaelsteiner19/open-edx-configuration,michaelsteiner19/open-edx-configuration,hastexo/edx-configuration,prove... | yaml | ## Code Before:
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://openedx.atlassian.net/wiki/display/OpenOPS
# code style: https://openedx.atlassian.net/wiki/display/OpenOPS/Ansible+Code+Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE... |
d62c906648196d44c7e3f101124a6a59fe069bf7 | concourse/pipeline-pull-requests.yaml | concourse/pipeline-pull-requests.yaml | version: 2.1
resource_types:
# Set status of build in github for pull requests
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
resources:
- name: code
type: pull-request
source:
repository: luispabon/kong-certbot-agent
access_token: {{gith... | version: 2.1
resource_types:
# Set status of build in github for pull requests
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
resources:
- name: code
type: pull-request
source:
repository: luispabon/kong-certbot-agent
access_token: {{gith... | Use more descriptive names for build steps on PRs | Use more descriptive names for build steps on PRs
| YAML | mit | luispabon/kong-certbot-agent,luispabon/kong-certbot-agent | yaml | ## Code Before:
version: 2.1
resource_types:
# Set status of build in github for pull requests
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
resources:
- name: code
type: pull-request
source:
repository: luispabon/kong-certbot-agent
acce... |
1320a280b1a691e280218e3207f75ac43ffb6c2a | client/src/assets/stylesheets/partials/_lesson.scss | client/src/assets/stylesheets/partials/_lesson.scss | $letterSize: 8em;
.lesson-header {
text-align: center;
}
.lesson-inner {
display: block;
text-align: center;
padding: 2em 0;
}
.lesson-progress {
height: 5px;
border-radius: 10px;
background-color: #2bc252;
}
.current-combo {
@extend .big-lettered;
@extend .blue-grey-text;
-webkit-animation-dura... | $letterSize: 8em;
.lesson-header {
text-align: center;
}
.lesson-inner {
display: block;
text-align: center;
padding: 2em 0;
}
.lesson-progress-bar {
height: 0.35rem;
border-radius: 0.71rem;
background-color: $progress-color;
}
.current-combo {
@extend .big-lettered;
@extend .blue-grey-text;
-we... | Use rem instead of px | Use rem instead of px
| SCSS | apache-2.0 | mrap/combo,mrap/combo,mrap/combo | scss | ## Code Before:
$letterSize: 8em;
.lesson-header {
text-align: center;
}
.lesson-inner {
display: block;
text-align: center;
padding: 2em 0;
}
.lesson-progress {
height: 5px;
border-radius: 10px;
background-color: #2bc252;
}
.current-combo {
@extend .big-lettered;
@extend .blue-grey-text;
-webki... |
939ebf2eb4536fd5a6318d6cc4b55a9dc4c8def2 | documentation/compile_documentation.py | documentation/compile_documentation.py | import sys
import os
def find_code(text):
START_TAG = '```lpg'
END_TAG = '```'
first_index = text.find(START_TAG)
if first_index == -1:
return None, None
last_index = text.find(END_TAG, first_index + 1)
return first_index + len(START_TAG), last_index
def process_file(path):
conte... | import sys
import os
def find_code(text):
START_TAG = '```lpg'
END_TAG = '```'
first_index = text.find(START_TAG)
if first_index == -1:
return None, None
last_index = text.find(END_TAG, first_index + 1)
return first_index + len(START_TAG), last_index
def process_file(path):
conte... | Split the documentation compilation into different files | Split the documentation compilation into different files
| Python | mit | TyRoXx/Lpg,TyRoXx/Lpg,TyRoXx/Lpg,mamazu/Lpg,mamazu/Lpg,mamazu/Lpg,TyRoXx/Lpg,mamazu/Lpg,TyRoXx/Lpg | python | ## Code Before:
import sys
import os
def find_code(text):
START_TAG = '```lpg'
END_TAG = '```'
first_index = text.find(START_TAG)
if first_index == -1:
return None, None
last_index = text.find(END_TAG, first_index + 1)
return first_index + len(START_TAG), last_index
def process_file(... |
7bc6a92d3b170b22790a4bfb0f628040d9fea725 | scss/_forms.scss | scss/_forms.scss |
.btn {
font-family: $font-family-serif;
text-transform: uppercase;
letter-spacing: 1px;
}
|
.btn {
font-family: $font-family-serif;
text-transform: uppercase;
letter-spacing: 1px;
}
form {
// We are overriding Bootstrap here, to remove the margin on top
.help-block {
margin-top: 0;
}
.text-danger {
margin-top: 5px;
}
.text-danger {
margin-bottom: 0;
}
#location_id + .text-danger {
marg... | Improve styling of form errors | Improve styling of form errors
| SCSS | agpl-3.0 | takkaria/echojs,takkaria/echojs,takkaria/echojs | scss | ## Code Before:
.btn {
font-family: $font-family-serif;
text-transform: uppercase;
letter-spacing: 1px;
}
## Instruction:
Improve styling of form errors
## Code After:
.btn {
font-family: $font-family-serif;
text-transform: uppercase;
letter-spacing: 1px;
}
form {
// We are overriding Bootstrap here, to rem... |
73733c442a7ec52ea81e92e7aaefffa8d1e8704d | .travis.yml | .travis.yml | language: node_js
node_js:
- 0.10
after_script:
- npm run coveralls
| language: node_js
node_js:
- 0.10
before_script:
- git config --global user.email "dev@carrotcreative.com"
- git config --global user.name "Carrot Creative"
| Set git config before Travis test. | Set git config before Travis test.
| YAML | mit | carrot/sprout | yaml | ## Code Before:
language: node_js
node_js:
- 0.10
after_script:
- npm run coveralls
## Instruction:
Set git config before Travis test.
## Code After:
language: node_js
node_js:
- 0.10
before_script:
- git config --global user.email "dev@carrotcreative.com"
- git config --global user.name "Carrot Creative"
|
9c786c82671ade46e7af309fd597d5eac93a75b0 | pycah/db/__init__.py | pycah/db/__init__.py | import psycopg2
c = psycopg2.connect(user='postgres', password='password')
c.set_session(autocommit=True)
cur = c.cursor()
try:
cur.execute('CREATE DATABASE pycah;')
c.commit()
c.close()
c = psycopg2.connect(database='pycah', user='postgres', password='password')
c.set_session(autocommit=True)
cur = c.curs... | import psycopg2
c = psycopg2.connect(user='postgres', password='password', host='127.0.0.1')
c.set_session(autocommit=True)
cur = c.cursor()
try:
cur.execute('CREATE DATABASE pycah;')
c.commit()
c.close()
c = psycopg2.connect(database='pycah', user='postgres', password='password', host='127.0.0.1')
c.set_ses... | Fix database connectivity on Linux. | Fix database connectivity on Linux.
| Python | mit | nhardy/pyCAH,nhardy/pyCAH,nhardy/pyCAH | python | ## Code Before:
import psycopg2
c = psycopg2.connect(user='postgres', password='password')
c.set_session(autocommit=True)
cur = c.cursor()
try:
cur.execute('CREATE DATABASE pycah;')
c.commit()
c.close()
c = psycopg2.connect(database='pycah', user='postgres', password='password')
c.set_session(autocommit=True... |
1a4750e1257ce19cabff6f4936840272f9122ed0 | tasks/virtualenv.rake | tasks/virtualenv.rake | namespace :virtualenv do
VIRTUALENV_HOME = File.join(HOME, ".virtualenvs")
task :setuptools do
pkg = %w{ python-setuptools }
install_pkg(pkg)
end
task :pip => ["virtualenv:setuptools", "system:curl"] do
sh("curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python")
end
#de... | namespace :virtualenv do
VIRTUALENV_HOME = File.join(HOME, ".virtualenvs")
BIN = File.join(HOME, "bin")
HUB = File.join(BIN, "hub")
task :setuptools do
pkg = %w{ python-setuptools }
install_pkg(pkg)
end
task :pip => ["virtualenv:setuptools", "system:curl"] do
sh("curl https://raw.github.com/py... | Add installation of hub (a git addon) | Add installation of hub (a git addon)
| Ruby | mit | hughdbrown/rake-install,hughdbrown/rake-install | ruby | ## Code Before:
namespace :virtualenv do
VIRTUALENV_HOME = File.join(HOME, ".virtualenvs")
task :setuptools do
pkg = %w{ python-setuptools }
install_pkg(pkg)
end
task :pip => ["virtualenv:setuptools", "system:curl"] do
sh("curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo pytho... |
8867a55bc9dce3f0ccb0c039e771820baf03d4aa | recipes/_fedora.rb | recipes/_fedora.rb |
potentially_at_compile_time do
package 'autoconf'
package 'bison'
package 'flex'
package 'gcc'
package 'gcc-c++'
package 'gettext'
package 'kernel-devel'
package 'make'
package 'm4'
package 'ncurses-devel'
end
|
potentially_at_compile_time do
package 'autoconf'
package 'bison'
package 'flex'
package 'gcc'
package 'gcc-c++'
package 'gettext'
package 'kernel-devel'
package 'make'
package 'm4'
package 'ncurses-devel'
package 'patch'
end
| Include patch on Fedora systems | Include patch on Fedora systems
We included this on RHEL. Without this the xml cookbook fails on Fedora | Ruby | apache-2.0 | protec-cookbooks/build-essential,chef-cookbooks/build-essential,GannettDigital/chef-build-essential,opscode-cookbooks/build-essential,juliandunn/build-essential | ruby | ## Code Before:
potentially_at_compile_time do
package 'autoconf'
package 'bison'
package 'flex'
package 'gcc'
package 'gcc-c++'
package 'gettext'
package 'kernel-devel'
package 'make'
package 'm4'
package 'ncurses-devel'
end
## Instruction:
Include patch on Fedora systems
We included this on RHE... |
0e2ae0145d4e8ab486609db8d69547ae516393b4 | src/eeh-inengine-api.js | src/eeh-inengine-api.js | (function (angular) {
'use strict';
var InEngineApi = function ($resource, apiUrl) {
this.$resource = $resource;
this.apiUrl = apiUrl;
};
InEngineApi.prototype.queryResource = function (name) {
return this.$resource(this.apiUrl + '/' + name).query().$promise;
};
InEngin... | (function (angular) {
'use strict';
var InEngineApi = function ($resource, apiUrl) {
this.$resource = $resource;
this.apiUrl = apiUrl;
};
InEngineApi.prototype.queryResource = function (name) {
return this.$resource(this.apiUrl + '/' + name).query().$promise;
};
InEngin... | Allow TimeZone list to be retrieved | Allow TimeZone list to be retrieved
| JavaScript | mit | InEngine-NET/eeh-inengine-api | javascript | ## Code Before:
(function (angular) {
'use strict';
var InEngineApi = function ($resource, apiUrl) {
this.$resource = $resource;
this.apiUrl = apiUrl;
};
InEngineApi.prototype.queryResource = function (name) {
return this.$resource(this.apiUrl + '/' + name).query().$promise;
... |
853ab4149c832006875257a1625bfd17439080d4 | lib/shared/addon/utils/evaluate.js | lib/shared/addon/utils/evaluate.js | function getVariables(showIf, operator) {
if ( showIf.indexOf(operator) > -1 ) {
const array = showIf.split(operator);
if ( array.length === 2 ) {
return {
left: array[0],
right: array[1]
};
} else {
return null;
}
}
return null;
}
function getAnswer(variable,... | import { get } from '@ember/object'
function getVariables(showIf, operator) {
if ( showIf.indexOf(operator) > -1 ) {
const array = showIf.split(operator);
if ( array.length === 2 ) {
return {
left: array[0],
right: array[1]
};
} else {
return null;
}
}
return ... | Support or for catalog question | Support or for catalog question
https://github.com/rancher/rancher/issues/17020
| JavaScript | apache-2.0 | vincent99/ui,rancher/ui,rancherio/ui,lvuch/ui,rancherio/ui,vincent99/ui,westlywright/ui,lvuch/ui,rancher/ui,westlywright/ui,vincent99/ui,rancherio/ui,westlywright/ui,rancher/ui,lvuch/ui | javascript | ## Code Before:
function getVariables(showIf, operator) {
if ( showIf.indexOf(operator) > -1 ) {
const array = showIf.split(operator);
if ( array.length === 2 ) {
return {
left: array[0],
right: array[1]
};
} else {
return null;
}
}
return null;
}
function get... |
2e6f3fedeb89e52babf87a756fbb6e16de2fa24c | roles/common/tasks/main.yml | roles/common/tasks/main.yml | - name: Update APT cache
apt: update_cache=yes
- name: Install python-apt
command: apt-get install -y python-apt creates=/usr/share/pyshared/apt
- name: Create sources directory for downloads.
file: state=directory path=/srv/sources
- name: Install generally useful packages.
apt: pkg={{ item }} state=install... | - name: Update APT cache
apt: update_cache=yes
- name: Install python-apt
command: apt-get install -y python-apt creates=/usr/share/pyshared/apt
- name: Install ansible modules dependencies
apt: pkg=python-pycurl state=installed
- name: Install generally useful packages.
apt: pkg={{ item }} state=installed
... | Install python-curl as it is required by some ansible modules. | Install python-curl as it is required by some ansible modules.
| YAML | agpl-3.0 | nud/ansible-linuxfr,nud/ansible-linuxfr | yaml | ## Code Before:
- name: Update APT cache
apt: update_cache=yes
- name: Install python-apt
command: apt-get install -y python-apt creates=/usr/share/pyshared/apt
- name: Create sources directory for downloads.
file: state=directory path=/srv/sources
- name: Install generally useful packages.
apt: pkg={{ item ... |
c64f65efdd42d07c70e53bb82ac1d06be92066d0 | tools/lsmac.pl | tools/lsmac.pl |
use strict;
use File::stat; # for symbolic stat names
use HTTP::Date; # for time2iso
sub ls($ ) {
my $f;
my $dir = shift;
opendir (D, $dir) or do {
warn "cannot read $dir: $!";
return;
};
while ($f = readdir(D)) {
my $st;
if(($st = lstat($dir . "/" . $f))) {
print
HTTP::Da... |
use strict;
use File::stat; # for symbolic stat names
use HTTP::Date; # for time2iso
sub ls($ ) {
my $f;
my $dir = shift;
opendir (D, $dir) or do {
warn "cannot read $dir: $!";
return;
};
while ($f = readdir(D)) {
my $st;
if(($st = lstat($dir . "/" . $f))) {
print
HTTP::Da... | Format link count with %3d. | Format link count with %3d. | Perl | lgpl-2.1 | BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode | perl | ## Code Before:
use strict;
use File::stat; # for symbolic stat names
use HTTP::Date; # for time2iso
sub ls($ ) {
my $f;
my $dir = shift;
opendir (D, $dir) or do {
warn "cannot read $dir: $!";
return;
};
while ($f = readdir(D)) {
my $st;
if(($st = lstat($dir . "/" . $f))) {
print ... |
80a27d19d39cb2105059145f38d037e968a9c267 | gulpfile.js | gulpfile.js | /*globals require, __dirname */
/* jshint node:true */
'use strict';
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var karma = require('karma').server;
var lodash = require('lodash');
var plato = require('gulp-plato');
var karmaConfig = __dirname + '/karma.conf.js';
var paths = require('./paths');
... | /*globals require, __dirname */
/* jshint node:true */
'use strict';
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var karma = require('karma').server;
var lodash = require('lodash');
var plato = require('gulp-plato');
var karmaConfig = __dirname + '/karma.conf.js';
var paths = require('./paths');
... | Fix issues with not using dots reporter on travis | Fix issues with not using dots reporter on travis
| JavaScript | mit | edouard-lopez/angular-bootstrap-datetimepicker,arathael/angular-bootstrap-datetimepicker,hungdoan2/angular-bootstrap-datetimepicker,ayinloya/angular-bootstrap-datetimepicker,trence/angular-bootstrap-datetimepicker,dalelotts/angular-bootstrap-datetimepicker,rcrodrigues/angular-bootstrap-datetimepicker,rcrodrigues/angula... | javascript | ## Code Before:
/*globals require, __dirname */
/* jshint node:true */
'use strict';
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var karma = require('karma').server;
var lodash = require('lodash');
var plato = require('gulp-plato');
var karmaConfig = __dirname + '/karma.conf.js';
var paths = requi... |
6cee10bc420b46db1a23b96cde05562ac8a0a30f | src/Sylius/Bundle/OrderBundle/spec/Controller/AddToCartCommandSpec.php | src/Sylius/Bundle/OrderBundle/spec/Controller/AddToCartCommandSpec.php | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace spec\Sylius\Bundle\OrderBundle\Controller;
use PhpSpec\ObjectBeha... | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace spec\Sylius\Bundle\OrderBundle\Controller;
use PhpSpec\ObjectBeha... | Make PhpSpec passing after fixing PHPStan warnings | Make PhpSpec passing after fixing PHPStan warnings
| PHP | mit | mbabker/Sylius,GSadee/Sylius,SyliusBot/Sylius,Brille24/Sylius,kayue/Sylius,Brille24/Sylius,bitbager/Sylius,foobarflies/Sylius,itinance/Sylius,ezecosystem/Sylius,antonioperic/Sylius,NeverResponse/Sylius,mbabker/Sylius,SyliusBot/Sylius,Brille24/Sylius,pamil/Sylius,pamil/Sylius,diimpp/Sylius,101medialab/Sylius,antonioperi... | php | ## Code Before:
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace spec\Sylius\Bundle\OrderBundle\Controller;
use Ph... |
345b5358a6861ca69a79263a3b398391f14f968c | metadata/org.getdisconnected.libreipsum.yml | metadata/org.getdisconnected.libreipsum.yml | Categories:
- Development
- Writing
License: GPL-3.0-or-later
WebSite: https://get-disconnected.org/apps/LibreIpsum
SourceCode: https://codeberg.org/getdisconnected/LibreIpsum
IssueTracker: https://codeberg.org/getdisconnected/LibreIpsum/issues
AutoName: Libre Ipsum
RepoType: git
Repo: https://codeberg.org/getdis... | Categories:
- Development
- Writing
License: GPL-3.0-or-later
WebSite: https://get-disconnected.org/apps/LibreIpsum
SourceCode: https://codeberg.org/getdisconnected/LibreIpsum
IssueTracker: https://codeberg.org/getdisconnected/LibreIpsum/issues
AutoName: Libre Ipsum
RepoType: git
Repo: https://codeberg.org/getdis... | Update Libre Ipsum to 0.1.2 (102) | Update Libre Ipsum to 0.1.2 (102)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Development
- Writing
License: GPL-3.0-or-later
WebSite: https://get-disconnected.org/apps/LibreIpsum
SourceCode: https://codeberg.org/getdisconnected/LibreIpsum
IssueTracker: https://codeberg.org/getdisconnected/LibreIpsum/issues
AutoName: Libre Ipsum
RepoType: git
Repo: https://cod... |
63ee6f971b99c2f030e0347c37bc9577ba9ee7cd | getMenu.py | getMenu.py |
import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
service = 'FoodMenu'
# output = 'json'
# callback = 'None'
request = 'http://api.uwaterloo.ca/public/v1/'
def getMenu():
url = request + '?' + 'key=' + key + '&' + 'service=' + service
r = requests.get(url).text
return... | import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
service = 'FoodMenu'
def getMenu():
payload = {'key': key, 'service': service}
r = requests.get('http://api.uwaterloo.ca/public/v1/', params=payload)
return r.text
menu = getMenu()
ACCESS_KEY = os.environ.get('AWS_ACCES... | Allow requests module to correctly encode query parameters. | Allow requests module to correctly encode query parameters.
| Python | mit | alykhank/FoodMenu,alykhank/FoodMenu,alykhank/FoodMenu | python | ## Code Before:
import json, os, requests
from awsauth import S3Auth
key = os.environ.get('UWOPENDATA_APIKEY')
service = 'FoodMenu'
# output = 'json'
# callback = 'None'
request = 'http://api.uwaterloo.ca/public/v1/'
def getMenu():
url = request + '?' + 'key=' + key + '&' + 'service=' + service
r = requests.get(u... |
fcd174faf24d923805348f2e48492d13e42baf3d | fish_right_prompt.fish | fish_right_prompt.fish | set __fish_status_prompt_char_failed '✘'
function fish_right_prompt
set -l code $status
if test $code -eq 127
set_color red
printf '%s' $__fish_status_prompt_char_failed
end
end
| set __fish_status_prompt_char_failed '✘'
function fish_right_prompt
set -l code $status
if test $code -eq 127
set_color red
printf '%s' $__fish_status_prompt_char_failed
end
set_color normal
end
| Reset color when command fails | Reset color when command fails
| fish | mit | lfiolhais/theme-simple-ass-prompt | fish | ## Code Before:
set __fish_status_prompt_char_failed '✘'
function fish_right_prompt
set -l code $status
if test $code -eq 127
set_color red
printf '%s' $__fish_status_prompt_char_failed
end
end
## Instruction:
Reset color when command fails
## Code After:
set __fish_status_prompt_char_failed '✘'
func... |
b123d4a8f9edea8fdd968aeb2101d49560dba0da | README.md | README.md |
Rindel is a functional reactive programming language that compiles to Javascript.
Check out a [demo](http://www.rindel-lang.org/).
Some explanatory notes reside on the [wiki](https://github.com/rsimmons/rindel/wiki).
| **Warning: Rindel is not yet ready for public consumption!**
Rindel is a [functional reactive programming](http://en.wikipedia.org/wiki/Functional_reactive_programming) language that compiles to Javascript.
Like other functional reactive programming languages, Rindel lets you manipulate time-varying values and event ... | Add summary description to readme | Add summary description to readme | Markdown | mit | rsimmons/rindel,rsimmons/rindel,rsimmons/rindel | markdown | ## Code Before:
Rindel is a functional reactive programming language that compiles to Javascript.
Check out a [demo](http://www.rindel-lang.org/).
Some explanatory notes reside on the [wiki](https://github.com/rsimmons/rindel/wiki).
## Instruction:
Add summary description to readme
## Code After:
**Warning: Rindel ... |
c2618f02b207a1c9a93638d2209532fd60d5805a | karma.conf.ci.js | karma.conf.ci.js | module.exports = function(config) {
require("./karma.conf")(config);
config.set({
customLaunchers: {
SL_Chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: '35'
},
SL_Firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '30'
... | module.exports = function(config) {
require("./karma.conf")(config);
config.set({
customLaunchers: {
SL_Chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: '35'
},
SL_Firefox: {
base: 'SauceLabs',
browserName: 'firefox',
version: '30'
... | Set startConnect: false and tunnelIdentifier | Set startConnect: false and tunnelIdentifier
Reference: https://github.com/karma-runner/karma-sauce-launcher/issues/73
| JavaScript | mit | exogen/script-atomic-onload | javascript | ## Code Before:
module.exports = function(config) {
require("./karma.conf")(config);
config.set({
customLaunchers: {
SL_Chrome: {
base: 'SauceLabs',
browserName: 'chrome',
version: '35'
},
SL_Firefox: {
base: 'SauceLabs',
browserName: 'firefox',
... |
dfe7b9a89b6dab3b7630d3e0ae53ada4edac6698 | Cargo.toml | Cargo.toml | [package]
name = "fatfs"
version = "0.3.2"
authors = ["Rafał Harabień <rafalh92@outlook.com>"]
repository = "https://github.com/rafalh/rust-fatfs"
readme = "README.md"
keywords = ["fat", "filesystem", "no_std"]
categories = ["filesystem"]
license = "MIT"
description = """
FAT filesystem library.
"""
exclude = [
"re... | [package]
name = "fatfs"
version = "0.3.2"
authors = ["Rafał Harabień <rafalh92@outlook.com>"]
repository = "https://github.com/rafalh/rust-fatfs"
readme = "README.md"
keywords = ["fat", "filesystem", "no_std"]
categories = ["filesystem"]
license = "MIT"
description = """
FAT filesystem library.
"""
exclude = [
"re... | Fix build with std feature | Fix build with std feature
| TOML | mit | rafalh/rust-fat,rafalh/rust-fat | toml | ## Code Before:
[package]
name = "fatfs"
version = "0.3.2"
authors = ["Rafał Harabień <rafalh92@outlook.com>"]
repository = "https://github.com/rafalh/rust-fatfs"
readme = "README.md"
keywords = ["fat", "filesystem", "no_std"]
categories = ["filesystem"]
license = "MIT"
description = """
FAT filesystem library.
"""
exc... |
4cf4fe2b03a1cc327e8d6454685714cb357f786f | circle.yml | circle.yml | machine:
java:
version:
oraclejdk8
environment:
TERM: dumb
JAVA_OPTS: -Djava.awt.headless=true -server -Xmx1G
GRADLE_OPTS: '-Xmx256M -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs="-Xmx256M -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
override:
- sudo pip install codecov
- ./gradl... | machine:
java:
version:
oraclejdk8
environment:
TERM: dumb
JAVA_OPTS: -Djava.awt.headless=true -server -Xmx1G
GRADLE_OPTS: '-Xmx256M -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs="-Xmx256M -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
override:
- sudo apt-get update
- sudo apt-get... | Install python-dev, which is required for latest codecov | Install python-dev, which is required for latest codecov
| YAML | apache-2.0 | SmartThingsOSS/dropwizard-common,elventear/dropwizard-common | yaml | ## Code Before:
machine:
java:
version:
oraclejdk8
environment:
TERM: dumb
JAVA_OPTS: -Djava.awt.headless=true -server -Xmx1G
GRADLE_OPTS: '-Xmx256M -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs="-Xmx256M -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
override:
- sudo pip install codec... |
b037a34c4aa03d3acecc3ff30d6da98f528e40ae | test/BroadcastSpec.hs | test/BroadcastSpec.hs | module BroadcastSpec (spec) where
import Protolude
import Control.Concurrent.STM.TChan
import Control.Concurrent.STM.TQueue
import Test.Hspec
import PostgRESTWS.Broadcast
spec :: Spec
spec =
describe "Broadcast" $
it "relays a single message from producer to 1 listener on 1 test channel" $ do
output <- ... | module BroadcastSpec (spec) where
import Protolude
import Control.Concurrent.STM.TChan
import Control.Concurrent.STM.TQueue
import Test.Hspec
import PostgRESTWS.Broadcast
spec :: Spec
spec = do
describe "newMultiplexer" $
it "opens a separate thread for a producer function" $ do
output <- newTQueueIO ::... | Add new test case for newMultiplexer | Add new test case for newMultiplexer
| Haskell | mit | diogob/postgrest-ws,diogob/postgrest-ws,diogob/postgrest-ws | haskell | ## Code Before:
module BroadcastSpec (spec) where
import Protolude
import Control.Concurrent.STM.TChan
import Control.Concurrent.STM.TQueue
import Test.Hspec
import PostgRESTWS.Broadcast
spec :: Spec
spec =
describe "Broadcast" $
it "relays a single message from producer to 1 listener on 1 test channel" $ do
... |
1da9dbe594d68cdbffe0c854c79788215303bf8d | templates/modules/mod-cart.tpl | templates/modules/mod-cart.tpl | {tikimodule title={tr}Cart{/tr} name="cart"}
<form method="post" action="">
<table>
<tr>
<th>{tr}Product{/tr}</th>
<th>{tr}Unit cost{/tr}</th>
<th>{tr}Qty{/tr}</th>
</tr>
{foreach from=$cart_content item=item}
<tr>
<td>
{if $item.href}
<a href="{$item.href|escape}">{$item.description|... | {tikimodule error=$module_params.error title=$tpl_module_title name="cart" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
<form method="post" action="">
<table>
<tr>
<th>{tr}Product{/tr}</th>
<th>{tr}Unit cost{/tr}</th>
<th>{tr}Qty... | Enable standard module parameters (flip, notitle, decorations, nobox). | [ENH] Enable standard module parameters (flip, notitle, decorations, nobox).
git-svn-id: 722c0fef737e30edb7d5e851b50e1eda1e207b8c@26460 b456876b-0849-0410-b77d-98878d47e9d5
| Smarty | lgpl-2.1 | changi67/tiki,oregional/tiki,changi67/tiki,changi67/tiki,tikiorg/tiki,changi67/tiki,tikiorg/tiki,oregional/tiki,changi67/tiki,tikiorg/tiki,tikiorg/tiki,oregional/tiki,oregional/tiki | smarty | ## Code Before:
{tikimodule title={tr}Cart{/tr} name="cart"}
<form method="post" action="">
<table>
<tr>
<th>{tr}Product{/tr}</th>
<th>{tr}Unit cost{/tr}</th>
<th>{tr}Qty{/tr}</th>
</tr>
{foreach from=$cart_content item=item}
<tr>
<td>
{if $item.href}
<a href="{$item.href|escape}">{$i... |
2156fbea296484d528a1fbd1a2f4e4ac76af970d | salt/states/disk.py | salt/states/disk.py | '''
Disk monitoring state
Monitor the state of disk resources
'''
def status(name, max=None, min=None):
'''
Return the current disk usage stats for the named device
'''
# Monitoring state, no changes will be made so no test interface needed
ret = {'name': name,
'result': False,
... | '''
Disk monitoring state
Monitor the state of disk resources
'''
def status(name, max=None, min=None):
'''
Return the current disk usage stats for the named device
'''
# Monitoring state, no changes will be made so no test interface needed
ret = {'name': name,
'result': False,
... | Fix bad ref, forgot the __salt__ :P | Fix bad ref, forgot the __salt__ :P
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | python | ## Code Before:
'''
Disk monitoring state
Monitor the state of disk resources
'''
def status(name, max=None, min=None):
'''
Return the current disk usage stats for the named device
'''
# Monitoring state, no changes will be made so no test interface needed
ret = {'name': name,
'result':... |
c55ef9bd38a7e9bf0acaf4ab2aeca64037f1efac | docker-compose.yml | docker-compose.yml | version: '2'
services:
db:
image: mysql:5.7.16
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: usr_myapplication
MYSQL_PASSWORD: pwd_myapplication
volumes:
- "./.data/db:/var/lib/mysql"
web:
image: nginx:1.10.1-alpine
environment:
VIRTUAL_HOST: web.myapplication.... | version: '2'
services:
db:
image: mysql:5.7.16
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: usr_myapplication
MYSQL_PASSWORD: pwd_myapplication
networks:
- my-network
volumes:
- "./.data/db:/var/lib/mysql"
web:
image: nginx:1.10.1-alpine
environment:
... | Add db conteiner in network | Add db conteiner in network
| YAML | mit | darthaud/base-php-environment | yaml | ## Code Before:
version: '2'
services:
db:
image: mysql:5.7.16
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: usr_myapplication
MYSQL_PASSWORD: pwd_myapplication
volumes:
- "./.data/db:/var/lib/mysql"
web:
image: nginx:1.10.1-alpine
environment:
VIRTUAL_HOST: we... |
4379c8931341d9d1addbad8d4ccc17d5e440ab0b | lib/keep-awake.js | lib/keep-awake.js | var http = require("http");
module.exports = function keepMeAwake() {
setInterval(function() {
http.get("http://jounis-camino-tracker.herokuapp.com");
http.get("http://requestb.in/wyrv1wwy");
}, 300000); // every 5 minutes (300000)
} | var http = require("http");
module.exports = function keepMeAwake() {
setInterval(function() {
http.get("http://jounis-camino-tracker.herokuapp.com");
}, 300000); // every 5 minutes (300000)
} | Remove the requestbin test fetching | Remove the requestbin test fetching
| JavaScript | mit | kaplas/camino-tracker,kaplas/camino-tracker | javascript | ## Code Before:
var http = require("http");
module.exports = function keepMeAwake() {
setInterval(function() {
http.get("http://jounis-camino-tracker.herokuapp.com");
http.get("http://requestb.in/wyrv1wwy");
}, 300000); // every 5 minutes (300000)
}
## Instruction:
Remove the requestbin test fetching
## C... |
fce00792aa7cd6bc14ca6156c338f4eb9aafa57f | app/views/v1/payment-confirmation.html | app/views/v1/payment-confirmation.html | {% extends "layout.html" %}
{% block page_title %}
Payment confirmation
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
Include confirmation phrase with your application
</h1>
<div... | {% extends "layout.html" %}
{% block page_title %}
Payment confirmation
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
Include confirmation phrase with your application
</h1>
<div... | Update ref phrase to 4-letter words. | Update ref phrase to 4-letter words.
Update confirmation copy to include line stating successful payment. | HTML | mit | soniaturcotte/make-adhoc-payment,soniaturcotte/make-adhoc-payment,soniaturcotte/make-adhoc-payment | html | ## Code Before:
{% extends "layout.html" %}
{% block page_title %}
Payment confirmation
{% endblock %}
{% block content %}
<main id="content" role="main">
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
Include confirmation phrase with your application
<... |
fe9be95dec2b542945692309f3e2faf53a0e4c24 | man/docker-wait.1.md | man/docker-wait.1.md | % DOCKER(1) Docker User Manuals
% Docker Community
% JUNE 2014
# NAME
docker-wait - Block until a container stops, then print its exit code.
# SYNOPSIS
**docker wait**
[**--help**]
CONTAINER [CONTAINER...]
# DESCRIPTION
Block until a container stops, then print its exit code.
# OPTIONS
**--help**
Print usage stat... | % DOCKER(1) Docker User Manuals
% Docker Community
% JUNE 2014
# NAME
docker-wait - Block until one or more containers stop, then print their exit codes
# SYNOPSIS
**docker wait**
[**--help**]
CONTAINER [CONTAINER...]
# DESCRIPTION
Block until one or more containers stop, then print their exit codes.
# OPTIONS
**--... | Update the manual for docker wait | Update the manual for docker wait
Signed-off-by: yuexiao-wang <cb85382fcdcd61052c05cab964e91e5c6acdef6c@zte.com.cn>
| Markdown | apache-2.0 | riyazdf/cli,ashfall/cli,dnephin/cli,Zebrilee/cli,allencloud/cli,ashfall/cli,Zebrilee/cli,cpuguy83/cli,e11137/cli,cpuguy83/cli,allencloud/cli,riyazdf/cli,docker/cli,docker/cli,redpanda/cli,thaJeztah/cli,redpanda/cli,e11137/cli,dnephin/cli,thaJeztah/cli | markdown | ## Code Before:
% DOCKER(1) Docker User Manuals
% Docker Community
% JUNE 2014
# NAME
docker-wait - Block until a container stops, then print its exit code.
# SYNOPSIS
**docker wait**
[**--help**]
CONTAINER [CONTAINER...]
# DESCRIPTION
Block until a container stops, then print its exit code.
# OPTIONS
**--help**
... |
317fbe80304d7712d88969f8969cba54681b560e | repo-lists/generate_src-jessie_meta-debian_all.sh | repo-lists/generate_src-jessie_meta-debian_all.sh |
USER=ystk
OUTPUTFILE="src-jessie_meta-debian_all.txt"
function abort
{
echo "ERROR: $@" 1>&2
exit 1
}
# Get the last page number.
LASTPAGE=`curl -I "https://api.github.com/users/"$USER"/repos?per_page=100" 2> /dev/null \
| grep "rel=\"last\"" | cut -d";" -f2 | cut -d"=" -f4 | cut -d">" -f1`
[ -z $LASTPAGE ] && ... |
USER=ystk
OUTPUTFILE="src-jessie_meta-debian_all.txt"
function abort
{
echo "ERROR: $@" 1>&2
exit 1
}
# Get the last page number.
LASTPAGE=`curl -I "https://api.github.com/users/"$USER"/repos?per_page=100" 2> /dev/null \
| grep "rel=\"last\"" | cut -d";" -f2 | cut -d"=" -f4 | cut -d">" -f1`
[ -z $LASTPAGE ] && ... | Add git repositories under meta-debian. | repo-lists: Add git repositories under meta-debian.
Signed-off-by: Masahiro Yamada <76d6c03d331b29d77eaac66c3113243c4dd22703@toshiba.co.jp>
| Shell | mit | meta-debian/meta-debian-scripts | shell | ## Code Before:
USER=ystk
OUTPUTFILE="src-jessie_meta-debian_all.txt"
function abort
{
echo "ERROR: $@" 1>&2
exit 1
}
# Get the last page number.
LASTPAGE=`curl -I "https://api.github.com/users/"$USER"/repos?per_page=100" 2> /dev/null \
| grep "rel=\"last\"" | cut -d";" -f2 | cut -d"=" -f4 | cut -d">" -f1`
[ -z... |
b56eec6298a1bb42a831482d8185c5eb7b66ffc4 | spec/support/feature_helpers.rb | spec/support/feature_helpers.rb | module FeatureHelpers
TIME_TO_SLEEP = 4
def login
visit new_user_session_path
within ".w-form" do
fill_in 'user_email', with: current_user.email
fill_in 'user_password', with: 'test123'
find('.btn.btn-medium').click
end
end
def current_user
@user ||= FactoryGirl.create(:us... | module FeatureHelpers
TIME_TO_SLEEP = 4
def login
visit new_user_session_path
within ".w-form" do
fill_in 'user_email', with: current_user.email
fill_in 'user_password', with: 'test123'
find('.btn.btn-medium').click
end
end
def current_user
FactoryGirl.create(:country)
... | Create country before user to avoid foreign key active record error | Create country before user to avoid foreign key active record error
| Ruby | mit | Saharitte/catarse,diegorv/catarse,diogob/catarse,JamesUcci/webapplication,devton/catarse,ujjwalkhanal/helpbegin,nicolasiensen/labcriativo,paulopatto/catarse,devton/catarse,sushant12/jvn,umeshduggal/flockaway,nicolasiensen/labcriativo,victor95pc/catarse,coopsource/catarse,diogob/catarse,ripple0328/catarse,adrianob/catar... | ruby | ## Code Before:
module FeatureHelpers
TIME_TO_SLEEP = 4
def login
visit new_user_session_path
within ".w-form" do
fill_in 'user_email', with: current_user.email
fill_in 'user_password', with: 'test123'
find('.btn.btn-medium').click
end
end
def current_user
@user ||= Factor... |
d9ce6cc440019ecfc73f1c82e41da4e9ce02a234 | smart_open/__init__.py | smart_open/__init__.py |
import logging
from smart_open import version
from .smart_open_lib import open, parse_uri, smart_open, register_compressor
from .s3 import iter_bucket as s3_iter_bucket
__all__ = [
'open',
'parse_uri',
'register_compressor',
's3_iter_bucket',
'smart_open',
]
__version__ = version.__version__
l... |
import logging
from smart_open import version
logger = logging.getLogger(__name__)
if len(logger.handlers) == 0:
logger.addHandler(logging.NullHandler())
from .smart_open_lib import open, parse_uri, smart_open, register_compressor
from .s3 import iter_bucket as s3_iter_bucket
__all__ = [
'open',
'parse_... | Configure logging handlers before submodule imports | Configure logging handlers before submodule imports
- Fix #474
- Fix #475
| Python | mit | RaRe-Technologies/smart_open,RaRe-Technologies/smart_open,piskvorky/smart_open | python | ## Code Before:
import logging
from smart_open import version
from .smart_open_lib import open, parse_uri, smart_open, register_compressor
from .s3 import iter_bucket as s3_iter_bucket
__all__ = [
'open',
'parse_uri',
'register_compressor',
's3_iter_bucket',
'smart_open',
]
__version__ = versio... |
50d060ff03556498d43c271afcf2cca02da4e158 | .travis.yml | .travis.yml | sudo: required
dist: trusty
language: ruby
cache: bundler
matrix:
include:
- rvm: 1.9.3
- rvm: 2.2.8
- rvm: 2.4.2
# see https://github.com/travis-ci/travis-ci/issues/6471
- rvm: jruby-9.1.14.0
env: JRUBY_OPTS=""
before_install:
- "sudo apt-get update"
- "sudo apt-get install -y firefox x... | sudo: required
dist: trusty
language: ruby
cache: bundler
matrix:
include:
- rvm: 1.9.3
- rvm: 2.2.8
- rvm: 2.4.2
# see https://github.com/travis-ci/travis-ci/issues/6471
- rvm: jruby-9.1.14.0
env: JRUBY_OPTS=""
before_install:
- "sudo apt-get update"
- "sudo apt-get install -y libav-too... | Add Geckodriver to Travis build | Add Geckodriver to Travis build | YAML | mit | leonid-shevtsov/headless | yaml | ## Code Before:
sudo: required
dist: trusty
language: ruby
cache: bundler
matrix:
include:
- rvm: 1.9.3
- rvm: 2.2.8
- rvm: 2.4.2
# see https://github.com/travis-ci/travis-ci/issues/6471
- rvm: jruby-9.1.14.0
env: JRUBY_OPTS=""
before_install:
- "sudo apt-get update"
- "sudo apt-get inst... |
c920e49044e1e916972c56b422e543f4ba049542 | release-notes/latest.md | release-notes/latest.md |
* We've updated the way that hijacked containers get garbage collected
We are no longer relying on garden to clean up hijacked containers. Instead, we have implemented this functionality in concourse itself. This makes it much more portable to different container backends.
#### <sub><sup><a name="5397" href="#539... |
* "Have you tried logging out and logging back in?"
- Probably every concourse operator at some point
In the old login flow, concourse used to take all your upstream third party info (think github username, teams, etc) figure out what teams you're on, and encode those into your auth token. The problem w... | Add note about using dex tokens | release-note: Add note about using dex tokens
Signed-off-by: Josh Winters <3dd3a5216811ba233723a4612ec3a917850b715d@pivotal.io>
| Markdown | apache-2.0 | concourse/concourse,concourse/concourse,concourse/concourse,concourse/concourse,concourse/concourse | markdown | ## Code Before:
* We've updated the way that hijacked containers get garbage collected
We are no longer relying on garden to clean up hijacked containers. Instead, we have implemented this functionality in concourse itself. This makes it much more portable to different container backends.
#### <sub><sup><a name="... |
48d5c57c225ab7e057a80863377b0472f04f950d | bin/container_setup.sh | bin/container_setup.sh |
set -exuo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."
# Install updates and system packages
apt-get update
apt-get install -y build-essential locales software-properties-common
apt-get install -y gcc curl supervisor git
apt-get install -y python-minimal python... |
set -exuo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."
# Install updates and system packages
apt-get update
apt-get install -y build-essential locales software-properties-common
apt-get install -y gcc curl supervisor git
apt-get install -y python-minimal python... | Clean up apt cache after installation | Clean up apt cache after installation
| Shell | mit | albertyw/base-flask,albertyw/base-flask,albertyw/base-flask,albertyw/base-flask | shell | ## Code Before:
set -exuo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$DIR/.."
# Install updates and system packages
apt-get update
apt-get install -y build-essential locales software-properties-common
apt-get install -y gcc curl supervisor git
apt-get install -y pytho... |
248c8728ec6c88295d42b01166ae94e3965b194c | app/controllers/api/crops_controller.rb | app/controllers/api/crops_controller.rb | module Api
class CropsController < Api::Controller
skip_before_action :authenticate_from_token!, only: [:index, :show]
def index
if params[:query].present? && (params[:query].length > 2)
q = params[:query]
render json: { 'crops' => Crop.search(q, fields: ['name^20', 'common_names^10', 'b... | module Api
class CropsController < Api::Controller
skip_before_action :authenticate_from_token!, only: [:index, :show]
def index
if params[:query].present? && (params[:query].length > 2)
q = params[:query]
render json: { crops: Crop.search(q, fields: ['name^20', 'common_names^10', 'binom... | Use Ruby's new JSON-like syntax | Use Ruby's new JSON-like syntax
| Ruby | mit | tomazin/OpenFarm,slacker87/OpenFarm,tomazin/OpenFarm,CloCkWeRX/OpenFarm,openfarmcc/OpenFarm,RickCarlino/OpenFarm,openfarmcc/OpenFarm,RickCarlino/OpenFarm,slacker87/OpenFarm,CloCkWeRX/OpenFarm,openfarmcc/OpenFarm,tomazin/OpenFarm,roryaronson/OpenFarm,roryaronson/OpenFarm,RickCarlino/OpenFarm,CloCkWeRX/OpenFarm,simonv3/O... | ruby | ## Code Before:
module Api
class CropsController < Api::Controller
skip_before_action :authenticate_from_token!, only: [:index, :show]
def index
if params[:query].present? && (params[:query].length > 2)
q = params[:query]
render json: { 'crops' => Crop.search(q, fields: ['name^20', 'comm... |
c9e1e0e9240d47ac268c2e082dd680e952c4cbed | src/StatsdClient/project.json | src/StatsdClient/project.json | {
"version": "1.0.0-*",
"authors": [ "Goncalo Pereira", "Darrell Mozingo" ],
"title": "Statsd C# Client",
"description": "Statsd client for C#, providing a full set of counter/timer/gauge/set functionality in an easy to use static. Helpers are provided for easily timing chunks of code too.",
"name": "Stats... | {
"version": "1.0.0-*",
"authors": [ "Goncalo Pereira", "Darrell Mozingo" ],
"title": "Statsd C# Client",
"description": "Statsd client for C#, providing a full set of counter/timer/gauge/set functionality in an easy to use static. Helpers are provided for easily timing chunks of code too.",
"name": "Stats... | Drop .NET 3.5 & 4.0 support | Drop .NET 3.5 & 4.0 support
| JSON | mit | DarrellMozingo/statsd-csharp-client,goncalopereira/statsd-csharp-client,Pereingo/statsd-csharp-client | json | ## Code Before:
{
"version": "1.0.0-*",
"authors": [ "Goncalo Pereira", "Darrell Mozingo" ],
"title": "Statsd C# Client",
"description": "Statsd client for C#, providing a full set of counter/timer/gauge/set functionality in an easy to use static. Helpers are provided for easily timing chunks of code too.",
... |
729cd2132eb4eaad18ef23600bf6737e1832960f | lib/bumper/version.rb | lib/bumper/version.rb | module Bumper
class Version
['major', 'minor', 'revision', 'build'].each do |part|
define_method part do
@v[part]
end
define_method "bump_#{part}" do
bump(part)
end
end
def initialize(v)
@v = {}
if v =~ /^(\d+)\.(\d+)\.(\d+)(?:\.(.*?))?$/
... | module Bumper
class Version
[:major, :minor, :revision, :build].each do |part|
define_method part do
@v[part]
end
define_method "bump_#{part}" do
bump(part)
end
end
def initialize(v)
@v = {}
if v =~ /^(\d+)\.(\d+)\.(\d+)(?:\.(.*?))?$/
... | Use symbol keys instead of string keys | Use symbol keys instead of string keys
| Ruby | mit | splattael/version_bumper,jasonkarns/version_bumper,jondot/version_bumper | ruby | ## Code Before:
module Bumper
class Version
['major', 'minor', 'revision', 'build'].each do |part|
define_method part do
@v[part]
end
define_method "bump_#{part}" do
bump(part)
end
end
def initialize(v)
@v = {}
if v =~ /^(\d+)\.(\d+)\.(\d+)(?... |
df3a0c7050b134d4d15399961ec8ec32c52631e5 | app/models/publication_log.rb | app/models/publication_log.rb | class PublicationLog
include Mongoid::Document
include Mongoid::Timestamps
field :slug, type: String
field :title, type: String
field :change_note, type: String
field :version_number, type: Integer
validates :slug, presence: true
validates :version_number, presence: true
alias_attribute :published_... | class PublicationLog
include Mongoid::Document
include Mongoid::Timestamps
field :slug, type: String
field :title, type: String
field :change_note, type: String
field :version_number, type: Integer
validates :slug, presence: true
validates :version_number, presence: true
alias_attribute :published_... | Move sort in Publication.change_notes_for to mongo | Move sort in Publication.change_notes_for to mongo
It will probably be marginally faster to do it there so why not.
| Ruby | mit | alphagov/manuals-publisher,alphagov/manuals-publisher,alphagov/manuals-publisher | ruby | ## Code Before:
class PublicationLog
include Mongoid::Document
include Mongoid::Timestamps
field :slug, type: String
field :title, type: String
field :change_note, type: String
field :version_number, type: Integer
validates :slug, presence: true
validates :version_number, presence: true
alias_attri... |
fdad0425b7d936b184a48d7658f4d4f1fa5743c6 | src/store/reducers/search.reducer.js | src/store/reducers/search.reducer.js | import {
SEARCH_QUERY,
FETCH_ENDPOINTS_START,
FETCH_OAUTH_SERVERS_LIST_START,
} from '../constants';
export const initialState = {
searchQuery: '',
};
export default function reducer(state = initialState, action) {
switch (action.type) {
case FETCH_ENDPOINTS_START:
case FETCH_OAUTH... | import { LOCATION_CHANGE } from 'react-router-redux';
import {
SEARCH_QUERY,
} from '../constants';
export const initialState = {
searchQuery: '',
};
export default function reducer(state = initialState, action) {
switch (action.type) {
case LOCATION_CHANGE:
return {
.... | Reset search query on location change | Reset search query on location change
| JavaScript | mit | hellofresh/janus-dashboard,hellofresh/janus-dashboard | javascript | ## Code Before:
import {
SEARCH_QUERY,
FETCH_ENDPOINTS_START,
FETCH_OAUTH_SERVERS_LIST_START,
} from '../constants';
export const initialState = {
searchQuery: '',
};
export default function reducer(state = initialState, action) {
switch (action.type) {
case FETCH_ENDPOINTS_START:
... |
1ba14774b1ed483f512562ab83f91fab8b843db7 | nazs/web/core/blocks.py | nazs/web/core/blocks.py | from django.utils.translation import ugettext as _
from achilles import blocks, tables
import nazs
register = blocks.Library('core')
@register.block(template_name='web/core/welcome.html')
def home():
return {'version': nazs.__version__}
@register.block(template_name='web/core/apply_button.html')
def apply_but... | from django.utils.translation import ugettext as _
from achilles import blocks, tables
import nazs
register = blocks.Library('core')
@register.block(template_name='web/core/welcome.html')
def home():
return {'version': nazs.__version__}
@register.block(template_name='web/core/apply_button.html')
def apply_but... | Add proper css classes to action buttons | Add proper css classes to action buttons
| Python | agpl-3.0 | exekias/droplet,exekias/droplet,exekias/droplet | python | ## Code Before:
from django.utils.translation import ugettext as _
from achilles import blocks, tables
import nazs
register = blocks.Library('core')
@register.block(template_name='web/core/welcome.html')
def home():
return {'version': nazs.__version__}
@register.block(template_name='web/core/apply_button.html... |
6263f9f02e59b6b622775e49150cdb6a9aa6b257 | package.json | package.json | {
"name": "reduxfire",
"version": "0.1.0",
"description": "",
"main": "lib/library.js",
"scripts": {
"build": "webpack --env build",
"dev": "webpack --progress --colors --watch --env dev",
"test": "mocha --compilers js:babel-core/register --colors ./test/*.spec.js",
"test:watch": "mocha --comp... | {
"name": "reduxfire",
"version": "0.1.0",
"description": "",
"main": "lib/library.js",
"scripts": {
"build": "webpack --env build",
"dev": "webpack --progress --colors --watch --env dev",
"test": "mocha --compilers js:babel-core/register --colors ./src/*.spec.js",
"test:watch": "mocha --compi... | Install deepfreeze, change test path | Install deepfreeze, change test path
| JSON | mit | ThadeuLuz/reduxfire | json | ## Code Before:
{
"name": "reduxfire",
"version": "0.1.0",
"description": "",
"main": "lib/library.js",
"scripts": {
"build": "webpack --env build",
"dev": "webpack --progress --colors --watch --env dev",
"test": "mocha --compilers js:babel-core/register --colors ./test/*.spec.js",
"test:watch... |
bfea73b458d2347bc0a20dbfd0393f6969a9d640 | plugins/item_tasks/devops/README.md | plugins/item_tasks/devops/README.md | The goal of this Vagrantfile and Ansible setup is to provide a fully
functional single VM with Girder, Girder-Worker, and the item_tasks plugin
so that task developers can focus on their Docker images and not have to
deal with setting up an environment to run their Docker images. This
should lower the barrier to entry... | The goal of this Vagrantfile and Ansible setup is to provide a fully
functional single VM with Girder, Girder-Worker, and the item_tasks plugin
so that task developers can focus on their Docker images and not have to
deal with setting up an environment to run their Docker images. This
should lower the barrier to entry... | Clarify working directory for item_tasks vagrant usage | Clarify working directory for item_tasks vagrant usage
| Markdown | apache-2.0 | jbeezley/girder,manthey/girder,adsorensen/girder,data-exp-lab/girder,Xarthisius/girder,Xarthisius/girder,manthey/girder,kotfic/girder,Kitware/girder,RafaelPalomar/girder,jbeezley/girder,girder/girder,jbeezley/girder,adsorensen/girder,data-exp-lab/girder,sutartmelson/girder,manthey/girder,adsorensen/girder,sutartmelson/... | markdown | ## Code Before:
The goal of this Vagrantfile and Ansible setup is to provide a fully
functional single VM with Girder, Girder-Worker, and the item_tasks plugin
so that task developers can focus on their Docker images and not have to
deal with setting up an environment to run their Docker images. This
should lower the ... |
c3ad430914c15a62957ebc831f6761d0e8f43d61 | gradle.properties | gradle.properties | Minecraft_Ver=1.12.2
MinecraftFogre_Ver=14.23.1.2578
Mapping_Ver=snapshot_20171219
FCR_Ver_Major=2
FCR_Ver_Minor=2
FCR_Ver_Patch=2
IC2_Ver=2.8.30
JEI_Ver=4.8.5.138
CraftTweaker_Ver=4.0.10.310
| Minecraft_Ver=1.12.2
MinecraftFogre_Ver=14.23.1.2607
Mapping_Ver=snapshot_20180131
FCR_Ver_Major=2
FCR_Ver_Minor=2
FCR_Ver_Patch=3
IC2_Ver=2.8.57
JEI_Ver=4.8.5.158
CraftTweaker_Ver=4.1.5.433
| Update dependencies; Version bump to 2.2.3 | Update dependencies; Version bump to 2.2.3
| INI | mit | FrogCraft-Rebirth/FrogCraft-Rebirth | ini | ## Code Before:
Minecraft_Ver=1.12.2
MinecraftFogre_Ver=14.23.1.2578
Mapping_Ver=snapshot_20171219
FCR_Ver_Major=2
FCR_Ver_Minor=2
FCR_Ver_Patch=2
IC2_Ver=2.8.30
JEI_Ver=4.8.5.138
CraftTweaker_Ver=4.0.10.310
## Instruction:
Update dependencies; Version bump to 2.2.3
## Code After:
Minecraft_Ver=1.12.2
MinecraftFogr... |
f38bc6a114dc56ac3148979aa9b4dfc68a395443 | lib/tasks/package.rake | lib/tasks/package.rake | require 'noosfero'
desc "Generate source tarball"
task :package do
begin
sh 'test -d .git'
rescue
puts "** The `package` task only works from within #{Noosfero::PROJECT}'s git repository."
fail
end
rm_rf 'pkg'
release = "#{Noosfero::PROJECT}-#{Noosfero::VERSION}"
target = "pkg/#{release}"
mkd... | require 'noosfero'
desc "Generate source tarball"
task :package => 'package:clobber' do
begin
sh 'test -d .git'
rescue
puts "** The `package` task only works from within #{Noosfero::PROJECT}'s git repository."
fail
end
release = "#{Noosfero::PROJECT}-#{Noosfero::VERSION}"
target = "pkg/#{release}... | Remove pkg/ directory on `rake clobber` | Remove pkg/ directory on `rake clobber`
| Ruby | agpl-3.0 | coletivoEITA/noosfero,abner/noosfero,alexandreab/noosfero,coletivoEITA/noosfero-ecosol,samasti/noosfero,alexandreab/noosfero,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,LuisBelo/tccnoosfero,cesarfex/noosfero,marcosronaldo/noosfero,CIRANDAS/noosfero-ecosol,danielafeitosa/noosfero,larissa/noosfero,blogoosfe... | ruby | ## Code Before:
require 'noosfero'
desc "Generate source tarball"
task :package do
begin
sh 'test -d .git'
rescue
puts "** The `package` task only works from within #{Noosfero::PROJECT}'s git repository."
fail
end
rm_rf 'pkg'
release = "#{Noosfero::PROJECT}-#{Noosfero::VERSION}"
target = "pkg/#... |
90d9ca16a35a405e299a93b43d79db02287ecabc | Sources/CSV+init.swift | Sources/CSV+init.swift | //
// CSV+init.swift
// CSV
//
// Created by Yasuhiro Hatta on 2016/06/13.
// Copyright © 2016 yaslab. All rights reserved.
//
import Foundation
extension CSV {
public init(
path: String,
encoding: String.Encoding = defaultEncoding,
hasHeaderRow: Bool = defaultHasHeaderRow,
de... | //
// CSV+init.swift
// CSV
//
// Created by Yasuhiro Hatta on 2016/06/13.
// Copyright © 2016 yaslab. All rights reserved.
//
import Foundation
extension CSV {
public init(
fileAtPath path: String,
encoding: String.Encoding = defaultEncoding,
hasHeaderRow: Bool = defaultHasHeaderRow,... | Rename CSV(path: ...) with CSV(fileAtPath: ...) | Rename CSV(path: ...) with CSV(fileAtPath: ...)
| Swift | mit | yaslab/CSV.swift,yaslab/CSV.swift | swift | ## Code Before:
//
// CSV+init.swift
// CSV
//
// Created by Yasuhiro Hatta on 2016/06/13.
// Copyright © 2016 yaslab. All rights reserved.
//
import Foundation
extension CSV {
public init(
path: String,
encoding: String.Encoding = defaultEncoding,
hasHeaderRow: Bool = defaultHasHeade... |
6c03545f61650d6da9f1842bdd2c55edea3862a4 | doc/_templates/layout.html | doc/_templates/layout.html | {% extends '!layout.html' %}
{%- block sidebarsourcelink %}
{% endblock %}
{%- block sidebarsearch %}
<hr/>
{{ super() }}
<hr/>
<div>
<h3>Mailing list</h3>
<a href="http://librelist.com/browser/joblib/">joblib@librelist.com</a>
<p class="searchtip" style="font-size: 80%">
Send an email to subscr... | {% extends '!layout.html' %}
{%- if pagename == 'index' %}
{% set title = 'Joblib: running Python function as pipeline jobs' %}
{%- endif %}
{%- block sidebarsourcelink %}
{% endblock %}
{%- block sidebarsearch %}
<hr/>
{{ super() }}
<hr/>
<div>
<h3>Mailing list</h3>
<a href="http://librelist.com/b... | Make sure we control the homepage title. | DOC: Make sure we control the homepage title.
| HTML | bsd-3-clause | aabadie/joblib,lesteve/joblib,karandesai-96/joblib,karandesai-96/joblib,aabadie/joblib,joblib/joblib,lesteve/joblib,tomMoral/joblib,joblib/joblib,tomMoral/joblib | html | ## Code Before:
{% extends '!layout.html' %}
{%- block sidebarsourcelink %}
{% endblock %}
{%- block sidebarsearch %}
<hr/>
{{ super() }}
<hr/>
<div>
<h3>Mailing list</h3>
<a href="http://librelist.com/browser/joblib/">joblib@librelist.com</a>
<p class="searchtip" style="font-size: 80%">
Send an... |
6b1b560528bab31fcdfdda17d339268ccb01d545 | app/templates/layouts/_error.html | app/templates/layouts/_error.html | {% extends 'layouts/_survey.html' %}
{% block page_title %}Error{% endblock %}
{% block top_bar %}
<div class="bar" role="banner">
<div class="skip">
<a class="skip__link" href="#main">Skip to content</a>
</div>
<div class="bar__inner container">
<div class="tag tag--amber u-mr-xs">BETA</div>
<div c... | {% extends 'layouts/_survey.html' %}
{% block page_title %}Error{% endblock %}
{% block top_bar %}
{% endblock %}
{% block survey %}
<div class="header">
<h1 class="header__title">Error</h1>
</div>
<div class="box">
<div class="u-fw-b">Sorry, something has gone wrong</div>
<div class="u-fs-s">Erro... | Remove beta-banner from error page template | Remove beta-banner from error page template
| HTML | mit | ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner | html | ## Code Before:
{% extends 'layouts/_survey.html' %}
{% block page_title %}Error{% endblock %}
{% block top_bar %}
<div class="bar" role="banner">
<div class="skip">
<a class="skip__link" href="#main">Skip to content</a>
</div>
<div class="bar__inner container">
<div class="tag tag--amber u-mr-xs">BETA<... |
dcbc22725fc1e0c2bd1766d6eb53ce1fc23219c0 | routes/index.js | routes/index.js | var express = require('express');
module.exports = (keystone) => {
let router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', {title: 'Exchange.js'});
});
router.get('/talks', (req, res) => {
keystone.list('Talk').model.find()
.sort('-presentedOn')
.po... | var express = require('express');
module.exports = (keystone) => {
let router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', {title: 'Exchange.js'});
});
router.get('/talks', (req, res) => {
keystone.list('Talk').model.find()
.sort('-presentedOn')
.po... | Add a quick url for voting for demo winners | Add a quick url for voting for demo winners
This needs to be removed after May 4th, 2017 | JavaScript | mit | ExchangeJS/exchangejs.com,ExchangeJS/exchangejs.com | javascript | ## Code Before:
var express = require('express');
module.exports = (keystone) => {
let router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', {title: 'Exchange.js'});
});
router.get('/talks', (req, res) => {
keystone.list('Talk').model.find()
.sort('-pres... |
aecfe63091f3bca70e1f96126d94e7336291ad2f | circle.yml | circle.yml | machine:
python:
version: 2.7.6
test:
override:
- sh run_all_tests.sh
post:
- mkdir $CIRCLE_ARTIFACTS/htmlcov
- mv htmlcov/* $CIRCLE_ARTIFACTS/htmlcov
- mv nose2-junit.xml $CIRCLE_ARTIFACTS
| machine:
python:
version: 2.7.6
test:
override:
- sh run_all_tests.sh
post:
- mkdir -p $CIRCLE_ARTIFACTS/htmlcov
- mv htmlcov/* $CIRCLE_ARTIFACTS/htmlcov
- mkdir -p $CIRCLE_TEST_REPORTS/junit
- mv nose2-junit.xml $CIRCLE_TEST_REPORTS/junit
| Move the Junit XML to the correct folder so CircleCI can find it | Move the Junit XML to the correct folder so CircleCI can find it
| YAML | mit | gpaOliveira/SuperDiffer,gpaOliveira/SuperDiffer,gpaOliveira/SuperDiffer | yaml | ## Code Before:
machine:
python:
version: 2.7.6
test:
override:
- sh run_all_tests.sh
post:
- mkdir $CIRCLE_ARTIFACTS/htmlcov
- mv htmlcov/* $CIRCLE_ARTIFACTS/htmlcov
- mv nose2-junit.xml $CIRCLE_ARTIFACTS
## Instruction:
Move the Junit XML to the correct folder so CircleCI can find... |
bcc96578b7863d130d5e7c0357e42c4d3342aaa2 | bb-dock/ruby/Buildconfig.sh | bb-dock/ruby/Buildconfig.sh | PACKAGES="dev-lang/ruby"
#
# this method runs in the bb builder container just before starting the build of the rootfs
#
configure_rootfs_build()
{
sed -i /^app-shells\\/bash/d /etc/portage/profile/package.provided
echo 'RUBY_TARGETS="ruby19 ruby21"' >> /etc/portage/make.conf
echo 'dev-lang/ruby ~amd64' >... | PACKAGES="dev-libs/gmp dev-lang/ruby"
#
# this method runs in the bb builder container just before starting the build of the rootfs
#
configure_rootfs_build()
{
sed -i /^app-shells\\/bash/d /etc/portage/profile/package.provided
echo 'RUBY_TARGETS="ruby19 ruby21"' >> /etc/portage/make.conf
echo 'dev-lang/r... | Add dev-libs/gmp, required for ruby21. | Add dev-libs/gmp, required for ruby21.
| Shell | bsd-2-clause | gdm/gentoo-bb,jonasjonas/gentoo-bb,edannenberg/kubler,guruvan/gentoo-bb,edannenberg/gentoo-bb,jonasjonas/gentoo-bb,gdm/gentoo-bb,berney/gentoo-bb,guruvan/gentoo-bb,berney/gentoo-bb,edannenberg/gentoo-bb | shell | ## Code Before:
PACKAGES="dev-lang/ruby"
#
# this method runs in the bb builder container just before starting the build of the rootfs
#
configure_rootfs_build()
{
sed -i /^app-shells\\/bash/d /etc/portage/profile/package.provided
echo 'RUBY_TARGETS="ruby19 ruby21"' >> /etc/portage/make.conf
echo 'dev-lan... |
ab05187d2222ed404b6bcafbd7008e61e40b0d59 | Renraku.package/ReRuleManager.class/class/initialize.st | Renraku.package/ReRuleManager.class/class/initialize.st | class initialization
initialize
self reset.
self subscribe | class initialization
initialize
self allInstances do: [ :inst |
self flag: 'remove in future. this is just to stop
the announcements from choaking old instances'.
SystemAnnouncer uniqueInstance unsubscribe: inst ].
self reset.
self subscribe. | Add the old instance unsubscription to the rule manager initialization | Add the old instance unsubscription to the rule manager initialization | Smalltalk | mit | Uko/Renraku | smalltalk | ## Code Before:
class initialization
initialize
self reset.
self subscribe
## Instruction:
Add the old instance unsubscription to the rule manager initialization
## Code After:
class initialization
initialize
self allInstances do: [ :inst |
self flag: 'remove in future. this is just to stop
the annou... |
b1915009d392fd29419462b26afa5d45eb5563cc | index.js | index.js | /*!
* global-prefix <https://github.com/jonschlinkert/global-prefix>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
'use strict';
/**
* This is the code used internally by npm to
* resolve the global prefix.
*/
var isWindows = require('is-windows');
var path = require('path');
va... | /*!
* global-prefix <https://github.com/jonschlinkert/global-prefix>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
'use strict';
/**
* This is the code used internally by npm to
* resolve the global prefix.
*/
var isWindows = require('is-windows');
var path = require('path');
va... | Fix "isWindows is not a function" on electron | Fix "isWindows is not a function" on electron
Fix "isWindows is not a function" on electron | JavaScript | mit | kuksikus/global-prefix,jonschlinkert/global-prefix | javascript | ## Code Before:
/*!
* global-prefix <https://github.com/jonschlinkert/global-prefix>
*
* Copyright (c) 2015 Jon Schlinkert.
* Licensed under the MIT license.
*/
'use strict';
/**
* This is the code used internally by npm to
* resolve the global prefix.
*/
var isWindows = require('is-windows');
var path = req... |
16af493cad28ab23c3c1abb128b4db3b405f25e9 | src/main/resources/run-docker-container.sh | src/main/resources/run-docker-container.sh |
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.cors-allow-all=${S3PROXY_CORS_ALLOW_ALL} \
-Djclouds.provider=${JC... |
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
-Ds3proxy.virtual-host=${S3PROXY_VIRTUALHOST} \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.cors-allow-all=${S... | Update docker script to allow for configuration of virtualhost | Update docker script to allow for configuration of virtualhost
| Shell | apache-2.0 | andrewgaul/s3proxy,timuralp/s3proxy,timuralp/s3proxy,andrewgaul/s3proxy | shell | ## Code Before:
exec java \
-DLOG_LEVEL=${LOG_LEVEL} \
-Ds3proxy.endpoint=http://0.0.0.0:80 \
-Ds3proxy.authorization=${S3PROXY_AUTHORIZATION} \
-Ds3proxy.identity=${S3PROXY_IDENTITY} \
-Ds3proxy.credential=${S3PROXY_CREDENTIAL} \
-Ds3proxy.cors-allow-all=${S3PROXY_CORS_ALLOW_ALL} \
-Djclou... |
999e93e12feb5ae39735408091fbf987b9fb6d04 | app/Http/Middleware/SessionLogs.php | app/Http/Middleware/SessionLogs.php | <?php
namespace Xetaravel\Http\Middleware;
use Closure;
use Xetaravel\Models\Session;
use Xetaravel\Models\Repositories\SessionRepository;
class SessionLogs
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/... | <?php
namespace Xetaravel\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\App;
use Xetaravel\Models\Session;
use Xetaravel\Models\Repositories\SessionRepository;
class SessionLogs
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure... | Add condition for testing env | Add condition for testing env
| PHP | mit | XetaIO/Xetaravel,XetaIO/Xetaravel,XetaIO/Xetaravel,XetaIO/Xetaravel | php | ## Code Before:
<?php
namespace Xetaravel\Http\Middleware;
use Closure;
use Xetaravel\Models\Session;
use Xetaravel\Models\Repositories\SessionRepository;
class SessionLogs
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @retu... |
297f95b4831d4fc44eb3dc98c17a9b50b83b37d0 | src/components/Infos/index.js | src/components/Infos/index.js | import React from 'react';
import styled from 'styled-components';
import generalInfos from '../../globals/data/general-info';
const Infos = styled.section`
text-align: center;
margin: 0.67em 0;
`;
const Name = styled.h1`
font-size: 2.5rem;
@media (max-width: 600px) {
font-size: 2.2rem;
}
`;
const Info... | import React from 'react';
import styled from 'styled-components';
import generalInfos from '../../globals/data/general-info';
const Infos = styled.section`
text-align: center;
margin: 0.67em 0;
`;
const Name = styled.h1`
font-size: 2.5rem;
@media (max-width: 600px) {
font-size: 2.2rem;
}
`;
const Info... | Add target to open in a new tab | Add target to open in a new tab
| JavaScript | mit | raulfdm/cv | javascript | ## Code Before:
import React from 'react';
import styled from 'styled-components';
import generalInfos from '../../globals/data/general-info';
const Infos = styled.section`
text-align: center;
margin: 0.67em 0;
`;
const Name = styled.h1`
font-size: 2.5rem;
@media (max-width: 600px) {
font-size: 2.2rem;
... |
9aa74909756605c9c6df86ce50bab376cfa2860a | README.md | README.md | metricdock
==========
Receives metrics in JSON via HTTP and stores them in Whisper databases.
| metricdock
==========
Receives metrics in JSON via HTTP and stores them in Whisper databases.
Running on Heroku
-----------------
heroku config:set BUILDPACK\_URL=https://github.com/ddollar/heroku-buildpack-multi.git
| Document build step for heroku | Document build step for heroku
| Markdown | mit | eallrich/metricdock | markdown | ## Code Before:
metricdock
==========
Receives metrics in JSON via HTTP and stores them in Whisper databases.
## Instruction:
Document build step for heroku
## Code After:
metricdock
==========
Receives metrics in JSON via HTTP and stores them in Whisper databases.
Running on Heroku
-----------------
heroku config... |
0f454a2ed274d9b89c159494568757aee621e1e9 | src/Oro/Bundle/EntityConfigBundle/Resources/views/layouts/blank/page/layout.html.twig | src/Oro/Bundle/EntityConfigBundle/Resources/views/layouts/blank/page/layout.html.twig | {% block attribute_group_rest_widget %}
{% import 'OroUIBundle::macros.html.twig' as UI %}
<div {{ block('block_attributes') }}>
<div {{ UI.renderPageComponentAttributes({
module: 'oroentityconfig/js/attribute-group-tabs-component',
options: options.tabsOptions
}) }}></d... | {% block attribute_group_rest_widget %}
{% import 'OroUIBundle::macros.html.twig' as UI %}
<div {{ block('block_attributes') }}>
<div {{ UI.renderPageComponentAttributes({
module: 'oroentityconfig/js/attribute-group-tabs-component',
options: options.tabsOptions
}) }}></d... | Apply new design to attribute group tabs in product view page - added styles to attribute group tabs | BB-6917: Apply new design to attribute group tabs in product view page
- added styles to attribute group tabs
| Twig | mit | Djamy/platform,orocrm/platform,geoffroycochard/platform,Djamy/platform,orocrm/platform,geoffroycochard/platform,geoffroycochard/platform,orocrm/platform,Djamy/platform | twig | ## Code Before:
{% block attribute_group_rest_widget %}
{% import 'OroUIBundle::macros.html.twig' as UI %}
<div {{ block('block_attributes') }}>
<div {{ UI.renderPageComponentAttributes({
module: 'oroentityconfig/js/attribute-group-tabs-component',
options: options.tabsOptions
... |
3fd69d677212d664ab200432d0ef25573f480621 | src/commons/hooks/useSearch.ts | src/commons/hooks/useSearch.ts | import useUrlState, { Options } from '@ahooksjs/use-url-state'
interface ExtOptions<T> {
arrayNames?: string[]
numberNames?: string[]
booleanNames?: string[]
}
export function useSearch<T>(initialState?: T, options?: Options & ExtOptions<T>) {
const { arrayNames, numberNames, booleanNames, ...tail } = options... | import useUrlState, { Options } from '@ahooksjs/use-url-state'
interface ExtOptions<T> {
arrayNames?: string[]
numberNames?: string[]
booleanNames?: string[]
}
export function useSearch<T>(initialState?: T, options?: Options & ExtOptions<T>) {
const { arrayNames, numberNames, booleanNames, ...tail } = options... | Fix use search parse error | feat: Fix use search parse error
| TypeScript | apache-2.0 | mingzuozhibi/mzzb-ui,mingzuozhibi/mzzb-ui,mingzuozhibi/mzzb-ui,mingzuozhibi/mzzb-ui | typescript | ## Code Before:
import useUrlState, { Options } from '@ahooksjs/use-url-state'
interface ExtOptions<T> {
arrayNames?: string[]
numberNames?: string[]
booleanNames?: string[]
}
export function useSearch<T>(initialState?: T, options?: Options & ExtOptions<T>) {
const { arrayNames, numberNames, booleanNames, ...... |
cd8c6c8aabe713ddd9608827b10f84a6dd7ba670 | lib/pxcbackup/remote_repo.rb | lib/pxcbackup/remote_repo.rb | require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.sh... | require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#{@which.s3cmd.sh... | Add workaround for broken s3cmd | Add workaround for broken s3cmd
| Ruby | mit | robbertkl/pxcbackup | ruby | ## Code Before:
require 'shellwords'
require 'pxcbackup/backup'
require 'pxcbackup/command'
require 'pxcbackup/repo'
module PXCBackup
class RemoteRepo < Repo
def initialize(path, options = {})
super(path, options)
@which.s3cmd
end
def backups
backups = []
output = Command.run("#... |
fcbaeb4705d02858f59c1142f77117e953c4db96 | app/libs/locale/available-locales.js | app/libs/locale/available-locales.js | 'use strict';
// Load our requirements
const glob = require('glob'),
path = require('path'),
logger = require('../log');
// Build a list of the available locale files in a given directory
module.exports = function(dir) {
// Variables
let available = [];
// Run through the installed locales and add... | 'use strict';
// Load our requirements
const glob = require('glob'),
path = require('path'),
logger = require(__base + 'libs/log');
// Build a list of the available locale files in a given directory
module.exports = function(dir) {
// Variables
let available = ['en'];
// Run through the installed ... | Update available locales to prioritise english | Update available locales to prioritise english
| JavaScript | apache-2.0 | transmutejs/core | javascript | ## Code Before:
'use strict';
// Load our requirements
const glob = require('glob'),
path = require('path'),
logger = require('../log');
// Build a list of the available locale files in a given directory
module.exports = function(dir) {
// Variables
let available = [];
// Run through the installed... |
462eff4ad72e922e56ca70104e82b27f26e2df83 | README.md | README.md | ABRAID-MP
=========
http://seeg.zoo.ox.ac.uk/themes/infectious-disease-atlas
The Atlas of Baseline Risk Assessment for Infectious Disease (ABRAID) is an automated mapping platform (MP). The essence of the project is to create a system that automatically generates spatially comprehensive, iteratively improving, evidenc... | ABRAID-MP
=========
http://seeg.zoo.ox.ac.uk/themes/infectious-disease-atlas
[](https://travis-ci.org/SEEG-Oxford/ABRAID-MP)
The Atlas of Baseline Risk Assessment for Infectious Disease (ABRAID) is an automated mapping platform (MP). ... | Add build status to readme | Add build status to readme | Markdown | apache-2.0 | SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP | markdown | ## Code Before:
ABRAID-MP
=========
http://seeg.zoo.ox.ac.uk/themes/infectious-disease-atlas
The Atlas of Baseline Risk Assessment for Infectious Disease (ABRAID) is an automated mapping platform (MP). The essence of the project is to create a system that automatically generates spatially comprehensive, iteratively im... |
42af732db47384013c29dd016980ab55ddfad340 | lib/util.php | lib/util.php | <?php
namespace OCA\SingleSignOn;
class Util {
public static function login($username) {
$user = \OC::$server->getUserManager()->get($username);
\OC::$server->getUserSession()->setUser($user);
return true;
}
public static function firstLogin($userInfo) {
$password = Reques... | <?php
namespace OCA\SingleSignOn;
class Util {
public static function login($username) {
$manager = \OC::$server->getUserManager();
$manager->emit('\OC\User', 'preLogin', array($username, $password));
$user = $manager->get($username);
\OC::$server->getUserSession()->setUser($user);... | Add prelogin hook and postlogin hook emit | Add prelogin hook and postlogin hook emit
| PHP | agpl-3.0 | inwinstack/owncloud-singlesignon,inwinstack/owncloud-singlesignon | php | ## Code Before:
<?php
namespace OCA\SingleSignOn;
class Util {
public static function login($username) {
$user = \OC::$server->getUserManager()->get($username);
\OC::$server->getUserSession()->setUser($user);
return true;
}
public static function firstLogin($userInfo) {
$p... |
00b3787cc98c12d00d5878228f6bb0732f30d7c7 | lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb | lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb | module KubernetesDeploy
class Cloudsql < KubernetesResource
TIMEOUT = 30.seconds
def initialize(name, namespace, file)
@name, @namespace, @file = name, namespace, file
end
def sync
_, st = run_kubectl("get", type, @name)
@found = st.success?
@status = true
log_status
... | module KubernetesDeploy
class Cloudsql < KubernetesResource
TIMEOUT = 30.seconds
def initialize(name, namespace, file)
@name, @namespace, @file = name, namespace, file
end
def sync
_, st = run_kubectl("get", type, @name)
@found = st.success?
@status = true
log_status... | Add some deploy_succeeded? logic to Cloudsql | Add some deploy_succeeded? logic to Cloudsql
| Ruby | mit | Shopify/kubernetes-deploy,Shopify/kubernetes-deploy | ruby | ## Code Before:
module KubernetesDeploy
class Cloudsql < KubernetesResource
TIMEOUT = 30.seconds
def initialize(name, namespace, file)
@name, @namespace, @file = name, namespace, file
end
def sync
_, st = run_kubectl("get", type, @name)
@found = st.success?
@status = true
... |
fdb27c75929d9803cbd516cef046f6a92c027634 | runtests.sh | runtests.sh |
set -e
function test {
v=$1
pv=$2
echo "===================================================================="
echo "Testing with Django $v and Python $pv"
# Setup virtual environment for the specified Django version if absent.
IFS='.' read v1 v2 <<< "$v"
env="../env$pv-$v"
if [ ! -d $... |
set -e
if [[ $1 == '--install' ]] ; then
install=true
else
install=false
fi
function test {
v=$1
pv=$2
echo "===================================================================="
echo "Testing with Django $v and Python $pv"
# Setup virtual environment for the specified Django version if abse... | Add test of installation from pypi | Add test of installation from pypi
| Shell | mit | artemrizhov/django-mail-templated,artemrizhov/django-mail-templated,artemrizhov/django-mail-templated | shell | ## Code Before:
set -e
function test {
v=$1
pv=$2
echo "===================================================================="
echo "Testing with Django $v and Python $pv"
# Setup virtual environment for the specified Django version if absent.
IFS='.' read v1 v2 <<< "$v"
env="../env$pv-$v"... |
2b8524f9c71cd42a78b92787fdb8ea58e7ca2b70 | packages/rocketchat-lib/server/functions/setUsername.coffee | packages/rocketchat-lib/server/functions/setUsername.coffee | RocketChat.setUsername = (user, username) ->
username = s.trim username
if not user or not username
return false
if not /^[0-9a-zA-Z-_.]+$/.test username
return false
# User already has desired username, return
if user.username is username
return user
# Check username availability
unless RocketChat.chec... | RocketChat.setUsername = (user, username) ->
username = s.trim username
if not user or not username
return false
if not /^[0-9a-zA-Z-_.]+$/.test username
return false
# User already has desired username, return
if user.username is username
return user
# Check username availability
unless RocketChat.chec... | Send e-mail on first username set | Send e-mail on first username set
| CoffeeScript | mit | cnash/Rocket.Chat,fatihwk/Rocket.Chat,ealbers/Rocket.Chat,acaronmd/Rocket.Chat,litewhatever/Rocket.Chat,fatihwk/Rocket.Chat,TribeMedia/Rocket.Chat,JamesHGreen/Rocket.Chat,Gudii/Rocket.Chat,flaviogrossi/Rocket.Chat,xasx/Rocket.Chat,linnovate/hi,abhishekshukla0302/trico,BorntraegerMarc/Rocket.Chat,AlecTroemel/Rocket.Chat... | coffeescript | ## Code Before:
RocketChat.setUsername = (user, username) ->
username = s.trim username
if not user or not username
return false
if not /^[0-9a-zA-Z-_.]+$/.test username
return false
# User already has desired username, return
if user.username is username
return user
# Check username availability
unless... |
4870fb0b3d318e780a4134678a93c06cc086fcf6 | Alloy/commands/compile/parsers/Ti.UI.Window._ProxyProperty.js | Alloy/commands/compile/parsers/Ti.UI.Window._ProxyProperty.js | var _ = require('../../../lib/alloy/underscore')._;
exports.parse = function(node, state) {
_.extend(state, {
proxyPropertyDefinition: {
parents: [
'Ti.UI.Window'
]
}
});
return require('./Alloy.Abstract._ProxyProperty').parse(node, state);
}; | var _ = require('../../../lib/alloy/underscore')._;
exports.parse = function(node, state) {
_.extend(state, {
proxyPropertyDefinition: {
parents: [
'Ti.UI.Window',
'Ti.UI.iPad.Popover'
]
}
});
return require('./Alloy.Abstract._ProxyProperty').parse(node, state);
}; | Add leftNavButton and rightNavButton support in markup for Ti.UI.iPad.Popover. Easy peesy. | Add leftNavButton and rightNavButton support in markup for Ti.UI.iPad.Popover. Easy peesy.
| JavaScript | apache-2.0 | xavierlacot/alloy,xavierlacot/alloy,jppope/alloy,FokkeZB/alloy,indera/alloy,FokkeZB/alloy,brentonhouse/brentonhouse.alloy,mobilehero/adamantium,NadsonFernando/alloy,jvkops/alloy,jppope/alloy,brentonhouse/brentonhouse.alloy,mobilehero/adamantium,jvkops/alloy,bhatfield/alloy,NadsonFernando/alloy,WY08271/alloy,FokkeZB/all... | javascript | ## Code Before:
var _ = require('../../../lib/alloy/underscore')._;
exports.parse = function(node, state) {
_.extend(state, {
proxyPropertyDefinition: {
parents: [
'Ti.UI.Window'
]
}
});
return require('./Alloy.Abstract._ProxyProperty').parse(node, state);
};
## Instruction:
Add leftNavButton and righ... |
2f818a074d62738f7a33ef3eaa5abf2cf1ca11f9 | dev/roadmap.md | dev/roadmap.md |
* Get option-handling working
* Implement file-finding object
* Bring over -f tests
* Make all -f tests pass
## Implement search functionality (or bring it over from Ack1)
* Create file/resource objects
## Make sure all previous command options are supported (this clearly needs fleshing out)
|
* Get option-handling working
* Implement file-finding object
* Bring over -f tests
* Make all -f tests pass
## Implement search functionality (or bring it over from Ack1)
* Create file/resource objects
## Make sure all previous command options are supported (this clearly needs fleshing out)
## Add --check option ... | Add note about --check option | Add note about --check option
| Markdown | artistic-2.0 | karenetheridge/App-Ack,karenetheridge/App-Ack,gregory-nisbet/ack2,petdance/ack2,openstrike/ack2,jamessan/ack2,shlomif/ack2,gregory-nisbet/ack2,openstrike/ack2,petdance/ack2,gregory-nisbet/ack2,karenetheridge/App-Ack,h3xx/ack2,shlomif/ack2,shlomif/ack2,jamessan/ack2,packy/ack2,jamessan/ack2,openstrike/ack2,shlomif/ack2,... | markdown | ## Code Before:
* Get option-handling working
* Implement file-finding object
* Bring over -f tests
* Make all -f tests pass
## Implement search functionality (or bring it over from Ack1)
* Create file/resource objects
## Make sure all previous command options are supported (this clearly needs fleshing out)
## Ins... |
74b8de8809ce6b2343657a996768b96320d7c242 | src/gulpfile.js | src/gulpfile.js | var elixir = require('laravel-elixir');
elixir(function(mix) {
mix.copy(
'node_modules/bootstrap/dist/fonts',
'public/fonts'
);
mix.copy(
'node_modules/font-awesome/fonts',
'public/fonts'
);
mix.copy(
'node_modules/ionicons/dist/fonts',
'public/fon... | var elixir = require('laravel-elixir');
elixir(function(mix) {
mix.copy(
'node_modules/bootstrap/dist/fonts',
'public/build/fonts'
);
mix.copy(
'node_modules/font-awesome/fonts',
'public/build/fonts'
);
mix.copy(
'node_modules/ionicons/dist/fonts',
... | Change path tot adminlte less file Copy the fonts to build folder because we will be using elixir | Change path tot adminlte less file
Copy the fonts to build folder because we will be using elixir
| JavaScript | mit | syahzul/admin-theme | javascript | ## Code Before:
var elixir = require('laravel-elixir');
elixir(function(mix) {
mix.copy(
'node_modules/bootstrap/dist/fonts',
'public/fonts'
);
mix.copy(
'node_modules/font-awesome/fonts',
'public/fonts'
);
mix.copy(
'node_modules/ionicons/dist/fonts',
... |
5d5f1f46dcd7e37eae2e91de80228b1338e7a09d | tools/setup/py3_test_reqs.txt | tools/setup/py3_test_reqs.txt | six==1.10.0
git+https://github.com/python/mypy.git@c129bc0046a58ba87e573d9fe75446d828196229
typed-ast==0.5.1
| six==1.10.0
git+https://github.com/python/mypy.git@e1c5a255877cf817eda525466b0d33f8bc4e50b3
typed-ast==0.5.2
| Upgrade mypy and typed_ast to latest versions. | Upgrade mypy and typed_ast to latest versions.
| Text | apache-2.0 | shubhamdhama/zulip,Vallher/zulip,dawran6/zulip,samatdav/zulip,kou/zulip,jainayush975/zulip,Galexrt/zulip,vaidap/zulip,andersk/zulip,zacps/zulip,sonali0901/zulip,brockwhittaker/zulip,amanharitsh123/zulip,zulip/zulip,shubhamdhama/zulip,niftynei/zulip,vabs22/zulip,umkay/zulip,Galexrt/zulip,shubhamdhama/zulip,reyha/zulip,b... | text | ## Code Before:
six==1.10.0
git+https://github.com/python/mypy.git@c129bc0046a58ba87e573d9fe75446d828196229
typed-ast==0.5.1
## Instruction:
Upgrade mypy and typed_ast to latest versions.
## Code After:
six==1.10.0
git+https://github.com/python/mypy.git@e1c5a255877cf817eda525466b0d33f8bc4e50b3
typed-ast==0.5.2
|
b0f30bb3b7f9202c7483b945a5838b9c02b0c58b | wercker.yml | wercker.yml | build-ubuntu:
box: phanect/kubuntu:xenial
steps:
- script:
name: "[Kubuntu] Running setup.sh"
code: |
chmod +x ./setup.sh
./setup.sh
build-debian:
box: phanect/debian-kde
steps:
- script:
name: "[Debian] Running setup.sh"
code: |
chmod +x ./s... | build-ubuntu:
box: phanect/kubuntu:xenial
steps:
- script:
name: "[Kubuntu] Install packages which prompts on apt-get"
code: sudo apt-get update -qq && DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes --allow-change-held-packages console-setup console-setup-linux
- script:
n... | Install packages which prompts on install before, with option to suppress prompt | Install packages which prompts on install before, with option to suppress prompt
| YAML | mit | phanect/ossetup | yaml | ## Code Before:
build-ubuntu:
box: phanect/kubuntu:xenial
steps:
- script:
name: "[Kubuntu] Running setup.sh"
code: |
chmod +x ./setup.sh
./setup.sh
build-debian:
box: phanect/debian-kde
steps:
- script:
name: "[Debian] Running setup.sh"
code: |
... |
27a7bc849dbdec1993cc1e1e6851b75818633cdc | lib/sass_paths/bower.rb | lib/sass_paths/bower.rb | require 'json'
module SassPaths
module Bower
PERMITTED_FILE_EXTENSIONS = ['.scss', '.sass'].freeze
def get_bower_sass_paths(bower_path)
sass_paths = []
Dir["#{bower_path}/**/.bower.json"].each do |f|
get_main_paths(f).each do |path|
sass_paths << path
end
end
... | require 'json'
module SassPaths
module Bower
private
PERMITTED_FILE_EXTENSIONS = ['.scss', '.sass'].freeze
def get_bower_sass_paths(bower_path)
sass_paths = []
Dir["#{bower_path}/**/.bower.json"].each do |f|
get_main_paths(f).each do |path|
sass_paths << path
end
... | Make Bower module methods private | Make Bower module methods private
| Ruby | mit | customink/sass_paths | ruby | ## Code Before:
require 'json'
module SassPaths
module Bower
PERMITTED_FILE_EXTENSIONS = ['.scss', '.sass'].freeze
def get_bower_sass_paths(bower_path)
sass_paths = []
Dir["#{bower_path}/**/.bower.json"].each do |f|
get_main_paths(f).each do |path|
sass_paths << path
e... |
8561072607f80c2fe53594a28596ddadcbdfdb8f | UsageExamples.playground/Contents.swift | UsageExamples.playground/Contents.swift | import HandySwift
| import HandySwift
// MARK: - IntegerTypeExtension
// .times method
//
// `n.times{ someCode }` – Calls someCode n times.
//
var array: [String] = []
3.times{ array.append("Hello World!") }
array
array = []
3.times{ array.append("Hello World #\($0)!") }
array
| Add times method content to usage examples playground | Add times method content to usage examples playground
| Swift | mit | Flinesoft/HandySwift,Flinesoft/HandySwift | swift | ## Code Before:
import HandySwift
## Instruction:
Add times method content to usage examples playground
## Code After:
import HandySwift
// MARK: - IntegerTypeExtension
// .times method
//
// `n.times{ someCode }` – Calls someCode n times.
//
var array: [String] = []
3.times{ array.append("Hello World!") }
arra... |
428e14927b56c9a13d94e8e91b075c8824f79c7f | Riot/Modules/Call/Dialpad/Views/DialpadActionButton.swift | Riot/Modules/Call/Dialpad/Views/DialpadActionButton.swift | //
// Copyright 2020 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | //
// Copyright 2020 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | Update bg color for backspace button | Update bg color for backspace button
| Swift | apache-2.0 | vector-im/vector-ios,vector-im/vector-ios,vector-im/vector-ios | swift | ## Code Before:
//
// Copyright 2020 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
27f0abde9025c1aa6e399a6b0fbfc5186a4e2f81 | lib/authem/session.rb | lib/authem/session.rb | require "active_record"
module Authem
class Session < ::ActiveRecord::Base
self.table_name = :authem_sessions
belongs_to :subject, polymorphic: true
scope :by_subject, ->(model){ where(subject_type: model.class.name, subject_id: model.id) }
scope :active, ->{ where(arel_table[:expires_at].gteq(Time.... | require "active_record"
module Authem
class Session < ::ActiveRecord::Base
self.table_name = :authem_sessions
belongs_to :subject, polymorphic: true
before_create do
self.token ||= SecureRandom.hex(40)
self.ttl ||= 30.days
self.expires_at ||= ttl_from_now
end
class << self
... | Define class methods instead of scopes | Define class methods instead of scopes
Maybe CodeClimate will like it more...
| Ruby | mit | rwz/authem2 | ruby | ## Code Before:
require "active_record"
module Authem
class Session < ::ActiveRecord::Base
self.table_name = :authem_sessions
belongs_to :subject, polymorphic: true
scope :by_subject, ->(model){ where(subject_type: model.class.name, subject_id: model.id) }
scope :active, ->{ where(arel_table[:expire... |
7388ef7a938f4ab0bbdd7f6739f56924da72b25f | core/app/interactors/queries/elastic_search.rb | core/app/interactors/queries/elastic_search.rb |
require_relative '../../classes/elastic_search'
module Queries
class ElasticSearch
include Pavlov::Query
arguments :keywords, :page, :row_count, :types
def execute
records = ::ElasticSearch::Search.search keywords: keywords, page: page,
row_count: r... |
require_relative '../../classes/elastic_search'
module Queries
class ElasticSearch
include Pavlov::Query
arguments :keywords, :page, :row_count, :types
def execute
records = ::ElasticSearch::Search.search keywords: keywords, page: page,
row_count: r... | Return nil if fact not found | Return nil if fact not found
| Ruby | mit | Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core | ruby | ## Code Before:
require_relative '../../classes/elastic_search'
module Queries
class ElasticSearch
include Pavlov::Query
arguments :keywords, :page, :row_count, :types
def execute
records = ::ElasticSearch::Search.search keywords: keywords, page: page,
... |
d6c972e1258a10884d87ed41c53a1cb9f4a53aaa | spec/spec_helper.rb | spec/spec_helper.rb | require_relative '../lib/payment_processor'
require_relative '../lib/payment_processor_connection'
require_relative '../lib/charge_result'
require_relative '../lib/user'
require 'uri'
require 'net/http'
require 'webmock/rspec'
require 'surrogate/rspec'
| require_relative '../lib/payment_processor'
require_relative '../lib/payment_processor_connection'
require_relative '../lib/charge_result'
require_relative '../lib/user'
require 'uri'
require 'net/http'
require 'webmock/rspec'
require 'surrogate/rspec'
WebMock.allow_net_connect!
| Allow net connect for first example | Allow net connect for first example
| Ruby | mit | kevingriffin/mocks_stubs_talk | ruby | ## Code Before:
require_relative '../lib/payment_processor'
require_relative '../lib/payment_processor_connection'
require_relative '../lib/charge_result'
require_relative '../lib/user'
require 'uri'
require 'net/http'
require 'webmock/rspec'
require 'surrogate/rspec'
## Instruction:
Allow net connect for first examp... |
6a261953e6053de2be29cb264fc4902b40f60f46 | Sources/ZamzamCore/Extensions/Publisher.swift | Sources/ZamzamCore/Extensions/Publisher.swift | //
// Publisher.swift
// ZamzamCore
//
// Created by Basem Emara on 2021-01-02.
// Copyright © 2021 Zamzam Inc. All rights reserved.
//
import Combine
public extension Optional where Wrapped: Combine.Publisher {
/// Returns the wrapped value of a publisher or defaults to an empty publisher.
func orEmpty()... | //
// Publisher.swift
// ZamzamCore
//
// Created by Basem Emara on 2021-01-02.
// Copyright © 2021 Zamzam Inc. All rights reserved.
//
import Combine
public extension Publisher where Failure == Never {
/// Attaches a subscriber with closure-based behavior to a publisher that never fails.
func sink(receiv... | Add Concurrency Combine sink convenience API | Add Concurrency Combine sink convenience API
| Swift | mit | ZamzamInc/ZamzamKit | swift | ## Code Before:
//
// Publisher.swift
// ZamzamCore
//
// Created by Basem Emara on 2021-01-02.
// Copyright © 2021 Zamzam Inc. All rights reserved.
//
import Combine
public extension Optional where Wrapped: Combine.Publisher {
/// Returns the wrapped value of a publisher or defaults to an empty publisher.
... |
96eb19539923f53bdece49fac986b992b0187855 | test/end_to_end/tasks_test.rb | test/end_to_end/tasks_test.rb | require 'test_helper'
describe 'using PuppetModule::Pkg::Tasks in a Rakefile' do
around do |t|
do_into_tmp_module('testmod', t)
end
let(:fixture_module) { File.join(fixture_dir, 'testmod') }
let(:task_list) { `rake -T` }
[:install, :clean, :deb, :rpm].each do |task|
it "defines a `#{task}` task" do... | require 'test_helper'
describe 'using PuppetModule::Pkg::Tasks in a Rakefile' do
around do |t|
do_into_tmp_module('testmod', t)
end
let(:task_list) { `rake -T` }
[:install, :clean, :deb, :rpm].each do |task|
it "defines a `#{task}` task" do
task_list.must_match /^rake #{task}/
end
end
end... | Fix shadowing bug in the test suite. | Fix shadowing bug in the test suite.
A small piece has been left out from the last refactoring, so the
`fixture_module` function was actually shadowed by a variable; this broken all
the tests for the amended file.
| Ruby | mit | stefanozanella/puppet_module_packaging | ruby | ## Code Before:
require 'test_helper'
describe 'using PuppetModule::Pkg::Tasks in a Rakefile' do
around do |t|
do_into_tmp_module('testmod', t)
end
let(:fixture_module) { File.join(fixture_dir, 'testmod') }
let(:task_list) { `rake -T` }
[:install, :clean, :deb, :rpm].each do |task|
it "defines a `#... |
093dacfdbb47c0ef549ee290fe427f9e45b84e80 | tests/Service/AgentsDescriptionTest.php | tests/Service/AgentsDescriptionTest.php | <?php
namespace GrooveHQ\Test\Service;
use GrooveHQ\Service\AgentsDescription;
class AgentsDescriptionTest extends \PHPUnit_Framework_TestCase
{
public function testAgentsDescription()
{
$agents = new AgentsDescription(['token' => 'someToken']);
$operations = $agents->getOperations();
... | <?php
namespace GrooveHQ\Test\Service;
use GrooveHQ\Service\AgentsDescription;
class AgentsDescriptionTest extends \PHPUnit_Framework_TestCase
{
public function testAgentsDescription()
{
$agents = new AgentsDescription(['token' => 'someToken']);
$operations = $agents->getOperations();
... | Update unit test for AgentsDescription to include list operation. | Update unit test for AgentsDescription to include list operation.
| PHP | mit | jadb/php-groovehq,chefsplate/php-groovehq | php | ## Code Before:
<?php
namespace GrooveHQ\Test\Service;
use GrooveHQ\Service\AgentsDescription;
class AgentsDescriptionTest extends \PHPUnit_Framework_TestCase
{
public function testAgentsDescription()
{
$agents = new AgentsDescription(['token' => 'someToken']);
$operations = $agents->getOpe... |
46cbc3aba7a8c2c289000ffad7fe142b851f3bcb | index.js | index.js | const
inquirer = require('inquirer');
const
fakeAuthorLs = [
{
email: 'jane.doe@example.com',
name: 'Jane Doe'
},
{
alias: 'Work',
email: 'jdoe@business.com',
name: 'Jane Doe'
}
],
choices = fakeAuthorLs.map(aut... | const
fs = require('fs'),
inquirer = require('inquirer');
const
configFilePath = process.env.HOME + '/.gitauthors.json',
authors = loadConfig(),
choices = createChoices(authors);
if (authors) {
inquirer.prompt([
{
name: 'q1',
message: 'Which author details would... | Update to load authors from file | Update to load authors from file
| JavaScript | mit | dannycjones/git-chauthor | javascript | ## Code Before:
const
inquirer = require('inquirer');
const
fakeAuthorLs = [
{
email: 'jane.doe@example.com',
name: 'Jane Doe'
},
{
alias: 'Work',
email: 'jdoe@business.com',
name: 'Jane Doe'
}
],
choices = fake... |
70007c1b4bb295be0327fb9f9cafc43e6cdbd837 | DeallocationChecker.podspec | DeallocationChecker.podspec | Pod::Spec.new do |s|
s.name = "DeallocationChecker"
s.version = "1.0"
s.summary = "Learn about leaking view controllers without opening Instruments."
s.description = <<-DESC
DeallocationChecker asserts that a view controller gets deallocated after
its view is removed from the view hie... | Pod::Spec.new do |s|
s.name = "DeallocationChecker"
s.version = "1.0"
s.summary = "Learn about leaking view controllers without opening Instruments."
s.description = <<-DESC
DeallocationChecker asserts that a view controller gets deallocated after
its view is removed from the view hie... | Remove macOS and watchOS platforms from podspec | Remove macOS and watchOS platforms from podspec
| Ruby | mit | fastred/DeallocationChecker,fastred/DeallocationChecker,fastred/DeallocationChecker | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = "DeallocationChecker"
s.version = "1.0"
s.summary = "Learn about leaking view controllers without opening Instruments."
s.description = <<-DESC
DeallocationChecker asserts that a view controller gets deallocated after
its view is removed f... |
039c78721040dbc765087e12a580aab5acae8a30 | demo/sponza_fs.glsl | demo/sponza_fs.glsl |
uniform sampler2D textureSampler;
in vec3 normalColour;
in vec2 texturePoint;
out vec4 fragmentColour;
vec3 getPrimitiveColour();
void main()
{
//fragmentColour = vec4 (normalColour, 1.0);
//fragmentColour = vec4 (getPrimitiveColour(), 1.0);
vec3 textureColour = texture (textureSampler, texturePoint).... |
uniform sampler2D textureSampler;
in vec3 normalColour;
in vec2 textureOut;
out vec4 fragmentColour;
vec3 getPrimitiveColour();
void main()
{
//fragmentColour = vec4 (normalColour, 1.0);
//fragmentColour = vec4 (getPrimitiveColour(), 1.0);
vec3 textureColour = texture (textureSampler, textureOut).rgb;... | Fix the white texture issue. | Fix the white texture issue.
| GLSL | unlicense | storm20200/University3DGraphicsSponza,storm20200/University3DGraphicsSponza | glsl | ## Code Before:
uniform sampler2D textureSampler;
in vec3 normalColour;
in vec2 texturePoint;
out vec4 fragmentColour;
vec3 getPrimitiveColour();
void main()
{
//fragmentColour = vec4 (normalColour, 1.0);
//fragmentColour = vec4 (getPrimitiveColour(), 1.0);
vec3 textureColour = texture (textureSampler... |
fec904d5b163c4ba7bc247d4fc7ee527b072b648 | packages/xstate-immer/src/index.ts | packages/xstate-immer/src/index.ts | import { EventObject, OmniEventObject, ActionObject } from 'xstate';
import { produce, Draft } from 'immer';
import { actionTypes } from 'xstate/lib/actions';
export type ImmerAssigner<TContext, TEvent extends EventObject> = (
context: Draft<TContext>,
event: TEvent
) => void;
export interface ImmerAssignAction<T... | import { EventObject, ActionObject } from 'xstate';
import { produce, Draft } from 'immer';
import { actionTypes } from 'xstate/lib/actions';
export type ImmerAssigner<TContext, TEvent extends EventObject> = (
context: Draft<TContext>,
event: TEvent
) => void;
export interface ImmerAssignAction<TContext, TEvent e... | Remove OmniEventObject usage from @xstate/immer | Remove OmniEventObject usage from @xstate/immer
| TypeScript | mit | davidkpiano/xstate,davidkpiano/xstate,davidkpiano/xstate | typescript | ## Code Before:
import { EventObject, OmniEventObject, ActionObject } from 'xstate';
import { produce, Draft } from 'immer';
import { actionTypes } from 'xstate/lib/actions';
export type ImmerAssigner<TContext, TEvent extends EventObject> = (
context: Draft<TContext>,
event: TEvent
) => void;
export interface Imm... |
8f278a74efc4b14901636524e3e0ba0fa893d176 | Cargo.toml | Cargo.toml | [package]
name = "cocoa"
description = "Bindings to Cocoa for OS X"
homepage = "https://github.com/servo/rust-cocoa"
repository = "https://github.com/servo/rust-cocoa"
version = "0.1.1"
authors = ["The Servo Project Developers"]
license = "MIT / Apache-2.0"
[lib]
name = "cocoa"
crate-type = ["rlib"]
[dependencies]
bi... | [package]
name = "cocoa"
description = "Bindings to Cocoa for OS X"
homepage = "https://github.com/servo/cocoa-rs"
repository = "https://github.com/servo/cocoa-rs"
version = "0.1.2"
authors = ["The Servo Project Developers"]
license = "MIT / Apache-2.0"
[lib]
name = "cocoa"
crate-type = ["rlib"]
[dependencies]
bitfla... | Bring repo and package naming in line with Rust conventions. | Bring repo and package naming in line with Rust conventions.
| TOML | apache-2.0 | metajack/cocoa-rs,metajack/rust-cocoa | toml | ## Code Before:
[package]
name = "cocoa"
description = "Bindings to Cocoa for OS X"
homepage = "https://github.com/servo/rust-cocoa"
repository = "https://github.com/servo/rust-cocoa"
version = "0.1.1"
authors = ["The Servo Project Developers"]
license = "MIT / Apache-2.0"
[lib]
name = "cocoa"
crate-type = ["rlib"]
[... |
764bef4ffe9e6fed2f3c3f4a0639675579e02af3 | lib/twitter_client.rb | lib/twitter_client.rb | require 'services/twitter_access_token_service'
require 'twitter'
require 'twitter/tweet'
class TwitterClient
def status(tweet_id)
client.status(tweet_id)
end
def update(tweet)
client.update(tweet)
end
def update_with_media(tweet, image)
client.update_with_media(tweet, image)
end
private
... | require 'services/twitter_access_token_service'
require 'twitter'
require 'twitter/tweet'
class TwitterClient
def status(tweet_id)
client.status(tweet_id)
end
def update(tweet)
client.update(tweet)
end
def update_with_media(tweet, image)
client.update_with_media(tweet, image)
end
private
... | Remove fetching access token from config | Remove fetching access token from config
| Ruby | mit | achan/ignoramos,achan/ignoramos | ruby | ## Code Before:
require 'services/twitter_access_token_service'
require 'twitter'
require 'twitter/tweet'
class TwitterClient
def status(tweet_id)
client.status(tweet_id)
end
def update(tweet)
client.update(tweet)
end
def update_with_media(tweet, image)
client.update_with_media(tweet, image)
... |
c03ee55e02054f1abcec8a8eeb77ac51666b8943 | git/hooks/pre-commit.d/protected-branch.sh | git/hooks/pre-commit.d/protected-branch.sh | PROTECTED_BRANCH="master"
# A stub for future (so that hook is enabled for all by default, but
# can be disabled per project config)
allowprotected=$(git config --bool hooks.allowProtectedBranchCommit)
# Redirect all output to stderr
exec 1>&2
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "$CURRENT_BRANCH" =... | PROTECTED_BRANCH=$(git config hooks.protectedBranchName)
if test -z $PROTECTED_BRANCH
then
PROTECTED_BRANCH="master"
fi
# Redirect all output to stderr
exec 1>&2
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "$CURRENT_BRANCH" = "$PROTECTED_BRANCH" ]
then
cat <<EOF
Error: Attempting to commit to protected... | Make sure protected branch name is configurable | Make sure protected branch name is configurable
| Shell | mit | mishok13/dotfiles | shell | ## Code Before:
PROTECTED_BRANCH="master"
# A stub for future (so that hook is enabled for all by default, but
# can be disabled per project config)
allowprotected=$(git config --bool hooks.allowProtectedBranchCommit)
# Redirect all output to stderr
exec 1>&2
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "$C... |
2eca78622e002152242583b2d31526b9b31393f2 | Sources/ZamzamCore/Utilities/With.swift | Sources/ZamzamCore/Utilities/With.swift | //
// Then.swift
// ZamzamKit
//
// Created by Basem Emara on 4/29/17.
// Copyright © 2017 Zamzam Inc. All rights reserved.
//
import Foundation
public protocol With {}
public extension With where Self: Any {
/// Makes it available to set properties with closures just after initializing.
///
/// ... | //
// Then.swift
// ZamzamKit
//
// Created by Basem Emara on 4/29/17.
// Copyright © 2017 Zamzam Inc. All rights reserved.
//
import Foundation
public protocol With {}
public extension With where Self: Any {
/// Makes it available to set properties with closures just after initializing.
///
/// ... | Add extension to JSON encoder | Add extension to JSON encoder
| Swift | mit | ZamzamInc/ZamzamKit | swift | ## Code Before:
//
// Then.swift
// ZamzamKit
//
// Created by Basem Emara on 4/29/17.
// Copyright © 2017 Zamzam Inc. All rights reserved.
//
import Foundation
public protocol With {}
public extension With where Self: Any {
/// Makes it available to set properties with closures just after initializing.
... |
2d01643601a2a3dfa22933289b271425dd2c574b | app/views/groups/show.html.haml | app/views/groups/show.html.haml | .group-title
%span
%h2
= link_to @group.parent.name, group_path(@group.parent), title: "group" unless @group.parent.nil?
= " - " unless @group.parent.nil?
= @group.name
- if @group.can_be_edited_by? current_user
= link_to "Edit group", edit_group_path(@group), class: "btn btn-mini"... | .group-title
%span
%h2
= link_to @group.parent.name, group_path(@group.parent), title: "group" unless @group.parent.nil?
= " - " unless @group.parent.nil?
= @group.name
- if @group.can_be_edited_by? current_user
= link_to "Edit group", edit_group_path(@group), class: "btn btn-mini"... | Remove 'Start a new discussion' button for non-members. | Remove 'Start a new discussion' button for non-members.
| Haml | agpl-3.0 | podemos-info/loomio,rafacouto/loomio-bak,travis-repos/loomio,podemos-info/loomio,rafacouto/loomio-bak,travis-repos/loomio,rafacouto/loomio-bak,podemos-info/loomio | haml | ## Code Before:
.group-title
%span
%h2
= link_to @group.parent.name, group_path(@group.parent), title: "group" unless @group.parent.nil?
= " - " unless @group.parent.nil?
= @group.name
- if @group.can_be_edited_by? current_user
= link_to "Edit group", edit_group_path(@group), class... |
128bcec2f6a26b6187bf0f1ac2c69633e7b04716 | js/Socket.js | js/Socket.js | export default class Socket {
constructor(on_message) {
this.on_message = on_message;
this.init();
}
init() {
let loc = location;
this.ws = new WebSocket('ws:'+loc.hostname+':'+loc.port+'/websocket');
this.ws.onmessage = this.on_message;
this.ws.onclose = () ... | export default class Socket {
constructor(on_message) {
this.on_message = on_message;
this.init();
}
init() {
this.ws = new WebSocket('ws://'+location.host+'/websocket');
this.ws.onmessage = this.on_message;
this.ws.onclose = () => setTimeout(this.init.bind(this), 10... | Add // so socket is ws://host:port/websocket. Makes Edge happy | Add // so socket is ws://host:port/websocket. Makes Edge happy
| JavaScript | mit | bpa/cyborg-rally,bpa/cyborg-rally,bpa/cyborg-rally | javascript | ## Code Before:
export default class Socket {
constructor(on_message) {
this.on_message = on_message;
this.init();
}
init() {
let loc = location;
this.ws = new WebSocket('ws:'+loc.hostname+':'+loc.port+'/websocket');
this.ws.onmessage = this.on_message;
this.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.