commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
20374fb50161eb12f00c713b40272ee4312db5da
hadoop-dev-scripts.sh
hadoop-dev-scripts.sh
DIR="$( cd "$( dirname "$0" )" && pwd )" # Set up the PATH relative to the base DIR export PATH=$PATH:$DIR/ export PATH=$PATH:$DIR/git/ export PATH=$PATH:$DIR/build-and-run/ export PATH=$PATH:$DIR/tests/ unset DIR
DIR="$( cd "$( dirname "${BASH_SOURCE:-$0}" )" && pwd )" # Set up the PATH relative to the base DIR export PATH=$PATH:$DIR/ export PATH=$PATH:$DIR/git/ export PATH=$PATH:$DIR/build-and-run/ export PATH=$PATH:$DIR/tests/ unset DIR
Use $BASH_SOURCE if available to get the location of the file in hadoop-dev-script.sh.
Use $BASH_SOURCE if available to get the location of the file in hadoop-dev-script.sh.
Shell
apache-2.0
umbrant/hadoop-dev-scripts,umbrant/hadoop-dev-scripts
shell
## Code Before: DIR="$( cd "$( dirname "$0" )" && pwd )" # Set up the PATH relative to the base DIR export PATH=$PATH:$DIR/ export PATH=$PATH:$DIR/git/ export PATH=$PATH:$DIR/build-and-run/ export PATH=$PATH:$DIR/tests/ unset DIR ## Instruction: Use $BASH_SOURCE if available to get the location of the file in hadoop-dev-script.sh. ## Code After: DIR="$( cd "$( dirname "${BASH_SOURCE:-$0}" )" && pwd )" # Set up the PATH relative to the base DIR export PATH=$PATH:$DIR/ export PATH=$PATH:$DIR/git/ export PATH=$PATH:$DIR/build-and-run/ export PATH=$PATH:$DIR/tests/ unset DIR
- DIR="$( cd "$( dirname "$0" )" && pwd )" + DIR="$( cd "$( dirname "${BASH_SOURCE:-$0}" )" && pwd )" ? +++++++++++++++ + # Set up the PATH relative to the base DIR export PATH=$PATH:$DIR/ export PATH=$PATH:$DIR/git/ export PATH=$PATH:$DIR/build-and-run/ export PATH=$PATH:$DIR/tests/ unset DIR
2
0.222222
1
1
a1609fba8eac3274fd9272f6be8c97fbfc300f81
history/src/collect_history.cc
history/src/collect_history.cc
namespace monsoon { collect_history::~collect_history() noexcept {} std::size_t collect_history::metrics_hash::operator()( const std::tuple<group_name, metric_name>& t) const noexcept { return std::hash<group_name>()(std::get<0>(t)); } std::size_t collect_history::metrics_hash::operator()( const std::tuple<simple_group, metric_name>& t) const noexcept { return std::hash<simple_group>()(std::get<0>(t)); } } /* namespace monsoon */
namespace monsoon { collect_history::~collect_history() noexcept {} std::size_t collect_history::metrics_hash::operator()( const std::tuple<group_name, metric_name>& t) const noexcept { return std::hash<group_name>()(std::get<0>(t)) ^ std::hash<metric_name>()(std::get<1>(t)); } std::size_t collect_history::metrics_hash::operator()( const std::tuple<simple_group, metric_name>& t) const noexcept { return std::hash<simple_group>()(std::get<0>(t)) ^ std::hash<metric_name>()(std::get<1>(t)); } } /* namespace monsoon */
Strengthen hash function for (un)tagged metric name lookups.
Strengthen hash function for (un)tagged metric name lookups.
C++
bsd-2-clause
nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus,nahratzah/monsoon_plus_plus
c++
## Code Before: namespace monsoon { collect_history::~collect_history() noexcept {} std::size_t collect_history::metrics_hash::operator()( const std::tuple<group_name, metric_name>& t) const noexcept { return std::hash<group_name>()(std::get<0>(t)); } std::size_t collect_history::metrics_hash::operator()( const std::tuple<simple_group, metric_name>& t) const noexcept { return std::hash<simple_group>()(std::get<0>(t)); } } /* namespace monsoon */ ## Instruction: Strengthen hash function for (un)tagged metric name lookups. ## Code After: namespace monsoon { collect_history::~collect_history() noexcept {} std::size_t collect_history::metrics_hash::operator()( const std::tuple<group_name, metric_name>& t) const noexcept { return std::hash<group_name>()(std::get<0>(t)) ^ std::hash<metric_name>()(std::get<1>(t)); } std::size_t collect_history::metrics_hash::operator()( const std::tuple<simple_group, metric_name>& t) const noexcept { return std::hash<simple_group>()(std::get<0>(t)) ^ std::hash<metric_name>()(std::get<1>(t)); } } /* namespace monsoon */
namespace monsoon { collect_history::~collect_history() noexcept {} std::size_t collect_history::metrics_hash::operator()( const std::tuple<group_name, metric_name>& t) const noexcept { - return std::hash<group_name>()(std::get<0>(t)); ? - + return std::hash<group_name>()(std::get<0>(t)) + ^ std::hash<metric_name>()(std::get<1>(t)); } std::size_t collect_history::metrics_hash::operator()( const std::tuple<simple_group, metric_name>& t) const noexcept { - return std::hash<simple_group>()(std::get<0>(t)); ? - + return std::hash<simple_group>()(std::get<0>(t)) + ^ std::hash<metric_name>()(std::get<1>(t)); } } /* namespace monsoon */
6
0.315789
4
2
f94560a29d0032faa3b2301fc2d01abc1bd0fc35
README.md
README.md
Leafbird ======== Leafbird is an UI builder based in templates using MVC frontend concepts. License ----- The project Leafbird is licensed under the Apache license version 2.0. Copyright 2015 Leafbird 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](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Leafbird ======== [![Build Status](http://img.shields.io/travis/lucasb/leafbird/master.svg)](https://travis-ci.org/lucasb/leafbird) [![Coverage Status](http://img.shields.io/coveralls/lucasb/leafbird/master.svg)](https://coveralls.io/github/lucasb/leafbird?branch=master) Leafbird is an UI builder based in templates using MVC frontend concepts. License ----- The project Leafbird is licensed under the Apache license version 2.0. Copyright 2015 Leafbird 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](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Add badge from travis and coveralls.
Add badge from travis and coveralls.
Markdown
apache-2.0
lucasb/leafbird,bscherer/leafbird,leafbirdjs/leafbird,bscherer/leafbird,leafbirdjs/leafbird,lucasb/leafbird
markdown
## Code Before: Leafbird ======== Leafbird is an UI builder based in templates using MVC frontend concepts. License ----- The project Leafbird is licensed under the Apache license version 2.0. Copyright 2015 Leafbird 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](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ## Instruction: Add badge from travis and coveralls. ## Code After: Leafbird ======== [![Build Status](http://img.shields.io/travis/lucasb/leafbird/master.svg)](https://travis-ci.org/lucasb/leafbird) [![Coverage Status](http://img.shields.io/coveralls/lucasb/leafbird/master.svg)](https://coveralls.io/github/lucasb/leafbird?branch=master) Leafbird is an UI builder based in templates using MVC frontend concepts. License ----- The project Leafbird is licensed under the Apache license version 2.0. Copyright 2015 Leafbird 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](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Leafbird ======== + + [![Build Status](http://img.shields.io/travis/lucasb/leafbird/master.svg)](https://travis-ci.org/lucasb/leafbird) + [![Coverage Status](http://img.shields.io/coveralls/lucasb/leafbird/master.svg)](https://coveralls.io/github/lucasb/leafbird?branch=master) Leafbird is an UI builder based in templates using MVC frontend concepts. License ----- The project Leafbird is licensed under the Apache license version 2.0. Copyright 2015 Leafbird 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](http://www.apache.org/licenses/LICENSE-2.0) Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
3
0.136364
3
0
cc7c9f51685d4c06230af3a23163d140dafda84a
appveyor.yml
appveyor.yml
version: 3.0.{build} # The above also controls the VSIX Version. For any dlls which are intended to be referenced from # 3rd parties, eg, any contract DLLs, those have their own AssemblyInfo/AssemblyVersioning. # If there are any breaking changes it recommended that the below assembly_version is changed as well. configuration: Release platform: Any CPU build: parallel: true verbosity: minimal artifacts: - path: Binaries\Release12.0\PowerShellTools.vsix name: PowerShellTools.vsix assembly_info: patch: true file: Build\AssemblyVersion.cs assembly_version: '3.0.0.0' assembly_file_version: '{version}' assembly_informational_version: '{version}-{branch}'
version: 3.0.{build} # The above also controls the VSIX Version. For any dlls which are intended to be referenced from # 3rd parties, eg, any contract DLLs, those have their own AssemblyInfo/AssemblyVersioning. configuration: Release platform: Any CPU build: parallel: true verbosity: minimal artifacts: - path: Binaries\Release12.0\PowerShellTools.vsix name: PowerShellTools.vsix assembly_info: patch: true file: Build\AssemblyVersion.cs assembly_version: '{version}' assembly_file_version: '{version}' assembly_informational_version: '{version}-{branch}'
Revert "Set AssemblyVersion to a fixed 3.0.0.0"
Revert "Set AssemblyVersion to a fixed 3.0.0.0" This reverts commit b6457a4d4abea5ae94c2c488cdd5cc0c3dab6f6a.
YAML
apache-2.0
adamdriscoll/poshtools,mgreenegit/poshtools,SpotLabsNET/poshtools,zbrad/poshtools,KevinHorvatin/poshtools,daviwil/poshtools,erwindevreugd/poshtools,YOTOV-LIMITED/poshtools,Microsoft/poshtools
yaml
## Code Before: version: 3.0.{build} # The above also controls the VSIX Version. For any dlls which are intended to be referenced from # 3rd parties, eg, any contract DLLs, those have their own AssemblyInfo/AssemblyVersioning. # If there are any breaking changes it recommended that the below assembly_version is changed as well. configuration: Release platform: Any CPU build: parallel: true verbosity: minimal artifacts: - path: Binaries\Release12.0\PowerShellTools.vsix name: PowerShellTools.vsix assembly_info: patch: true file: Build\AssemblyVersion.cs assembly_version: '3.0.0.0' assembly_file_version: '{version}' assembly_informational_version: '{version}-{branch}' ## Instruction: Revert "Set AssemblyVersion to a fixed 3.0.0.0" This reverts commit b6457a4d4abea5ae94c2c488cdd5cc0c3dab6f6a. ## Code After: version: 3.0.{build} # The above also controls the VSIX Version. For any dlls which are intended to be referenced from # 3rd parties, eg, any contract DLLs, those have their own AssemblyInfo/AssemblyVersioning. configuration: Release platform: Any CPU build: parallel: true verbosity: minimal artifacts: - path: Binaries\Release12.0\PowerShellTools.vsix name: PowerShellTools.vsix assembly_info: patch: true file: Build\AssemblyVersion.cs assembly_version: '{version}' assembly_file_version: '{version}' assembly_informational_version: '{version}-{branch}'
version: 3.0.{build} # The above also controls the VSIX Version. For any dlls which are intended to be referenced from # 3rd parties, eg, any contract DLLs, those have their own AssemblyInfo/AssemblyVersioning. - # If there are any breaking changes it recommended that the below assembly_version is changed as well. configuration: Release platform: Any CPU build: parallel: true verbosity: minimal artifacts: - path: Binaries\Release12.0\PowerShellTools.vsix name: PowerShellTools.vsix assembly_info: patch: true file: Build\AssemblyVersion.cs - assembly_version: '3.0.0.0' + assembly_version: '{version}' assembly_file_version: '{version}' assembly_informational_version: '{version}-{branch}'
3
0.136364
1
2
7c690e65fd1fe0a139eaca8df7799acf0f696ea5
mqtt/tests/test_client.py
mqtt/tests/test_client.py
import time from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from io import BytesIO import json from login.models import Profile, AmbulancePermission, HospitalPermission from login.serializers import ExtendedProfileSerializer from ambulance.models import Ambulance, \ AmbulanceStatus, AmbulanceCapability from ambulance.serializers import AmbulanceSerializer from hospital.models import Hospital, \ Equipment, HospitalEquipment, EquipmentType from hospital.serializers import EquipmentSerializer, \ HospitalSerializer, HospitalEquipmentSerializer from django.test import Client from .client import MQTTTestCase, MQTTTestClient from ..client import MQTTException from ..subscribe import SubscribeClient class TestMQTTSeed(TestMQTT, MQTTTestCase): def test_mqttseed(self): self.assertEqual(True, True)
import time from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from io import BytesIO import json from login.models import Profile, AmbulancePermission, HospitalPermission from login.serializers import ExtendedProfileSerializer from ambulance.models import Ambulance, \ AmbulanceStatus, AmbulanceCapability from ambulance.serializers import AmbulanceSerializer from hospital.models import Hospital, \ Equipment, HospitalEquipment, EquipmentType from hospital.serializers import EquipmentSerializer, \ HospitalSerializer, HospitalEquipmentSerializer from django.test import Client from .client import MQTTTestCase, MQTTTestClient from ..client import MQTTException from ..subscribe import SubscribeClient class TestMQTTSeed(MQTTTestCase): def test_mqttseed(self): self.assertEqual(True, True)
Add more time to mqtt.test.client
Add more time to mqtt.test.client
Python
bsd-3-clause
EMSTrack/WebServerAndClient,EMSTrack/WebServerAndClient,EMSTrack/WebServerAndClient
python
## Code Before: import time from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from io import BytesIO import json from login.models import Profile, AmbulancePermission, HospitalPermission from login.serializers import ExtendedProfileSerializer from ambulance.models import Ambulance, \ AmbulanceStatus, AmbulanceCapability from ambulance.serializers import AmbulanceSerializer from hospital.models import Hospital, \ Equipment, HospitalEquipment, EquipmentType from hospital.serializers import EquipmentSerializer, \ HospitalSerializer, HospitalEquipmentSerializer from django.test import Client from .client import MQTTTestCase, MQTTTestClient from ..client import MQTTException from ..subscribe import SubscribeClient class TestMQTTSeed(TestMQTT, MQTTTestCase): def test_mqttseed(self): self.assertEqual(True, True) ## Instruction: Add more time to mqtt.test.client ## Code After: import time from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from io import BytesIO import json from login.models import Profile, AmbulancePermission, HospitalPermission from login.serializers import ExtendedProfileSerializer from ambulance.models import Ambulance, \ AmbulanceStatus, AmbulanceCapability from ambulance.serializers import AmbulanceSerializer from hospital.models import Hospital, \ Equipment, HospitalEquipment, EquipmentType from hospital.serializers import EquipmentSerializer, \ HospitalSerializer, HospitalEquipmentSerializer from django.test import Client from .client import MQTTTestCase, MQTTTestClient from ..client import MQTTException from ..subscribe import SubscribeClient class TestMQTTSeed(MQTTTestCase): def test_mqttseed(self): self.assertEqual(True, True)
import time from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from io import BytesIO import json from login.models import Profile, AmbulancePermission, HospitalPermission from login.serializers import ExtendedProfileSerializer from ambulance.models import Ambulance, \ AmbulanceStatus, AmbulanceCapability from ambulance.serializers import AmbulanceSerializer from hospital.models import Hospital, \ Equipment, HospitalEquipment, EquipmentType from hospital.serializers import EquipmentSerializer, \ HospitalSerializer, HospitalEquipmentSerializer from django.test import Client from .client import MQTTTestCase, MQTTTestClient from ..client import MQTTException from ..subscribe import SubscribeClient - class TestMQTTSeed(TestMQTT, MQTTTestCase): ? ---------- + class TestMQTTSeed(MQTTTestCase): def test_mqttseed(self): self.assertEqual(True, True)
2
0.055556
1
1
5c23c1a65e9e6d93eb56f5864bd1648d197f7355
.eslintrc.js
.eslintrc.js
'use strict' module.exports = { parser: 'babel-eslint', extends: [ '@strv/javascript/environments/nodejs/v8-3', '@strv/javascript/environments/nodejs/optional', '@strv/javascript/coding-styles/recommended', ], rules: { // If your editor cannot show these to you, occasionally turn this off and run the linter 'no-warning-comments': 0, }, overrides: [{ files: [ 'test/**', 'packages/*/test/**/*.test.mjs', ], globals: { sinon: true, expect: true, }, rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ '*.js', '.*.js', ], parserOptions: { sourceType: 'script', }, }], }
'use strict' module.exports = { parser: 'babel-eslint', extends: [ '@strv/javascript/environments/nodejs/v8-3', '@strv/javascript/environments/nodejs/optional', '@strv/javascript/coding-styles/recommended', ], rules: { // If your editor cannot show these to you, occasionally turn this off and run the linter 'no-warning-comments': 0, }, overrides: [{ files: [ 'test/**', 'packages/*/test/**/*.test.mjs', ], globals: { sinon: true, expect: true, }, rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ 'packages/generator/generators/boilerplate/templates/src/**/*.mjs', ], rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ '*.js', '.*.js', ], parserOptions: { sourceType: 'script', }, }], }
Fix false positives from ESLint in template files
chore(generator): Fix false positives from ESLint in template files
JavaScript
bsd-3-clause
strvcom/atlas.js,strvcom/atlas.js,strvcom/atlas.js
javascript
## Code Before: 'use strict' module.exports = { parser: 'babel-eslint', extends: [ '@strv/javascript/environments/nodejs/v8-3', '@strv/javascript/environments/nodejs/optional', '@strv/javascript/coding-styles/recommended', ], rules: { // If your editor cannot show these to you, occasionally turn this off and run the linter 'no-warning-comments': 0, }, overrides: [{ files: [ 'test/**', 'packages/*/test/**/*.test.mjs', ], globals: { sinon: true, expect: true, }, rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ '*.js', '.*.js', ], parserOptions: { sourceType: 'script', }, }], } ## Instruction: chore(generator): Fix false positives from ESLint in template files ## Code After: 'use strict' module.exports = { parser: 'babel-eslint', extends: [ '@strv/javascript/environments/nodejs/v8-3', '@strv/javascript/environments/nodejs/optional', '@strv/javascript/coding-styles/recommended', ], rules: { // If your editor cannot show these to you, occasionally turn this off and run the linter 'no-warning-comments': 0, }, overrides: [{ files: [ 'test/**', 'packages/*/test/**/*.test.mjs', ], globals: { sinon: true, expect: true, }, rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ 'packages/generator/generators/boilerplate/templates/src/**/*.mjs', ], rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ '*.js', '.*.js', ], parserOptions: { sourceType: 'script', }, }], }
'use strict' module.exports = { parser: 'babel-eslint', extends: [ '@strv/javascript/environments/nodejs/v8-3', '@strv/javascript/environments/nodejs/optional', '@strv/javascript/coding-styles/recommended', ], rules: { // If your editor cannot show these to you, occasionally turn this off and run the linter 'no-warning-comments': 0, }, overrides: [{ files: [ 'test/**', 'packages/*/test/**/*.test.mjs', ], globals: { sinon: true, expect: true, }, rules: { 'import/no-extraneous-dependencies': ['error', { packageDir: ['.', __dirname], }], }, }, { files: [ + 'packages/generator/generators/boilerplate/templates/src/**/*.mjs', + ], + + rules: { + 'import/no-extraneous-dependencies': ['error', { + packageDir: ['.', __dirname], + }], + }, + }, { + files: [ '*.js', '.*.js', ], parserOptions: { sourceType: 'script', }, }], }
10
0.232558
10
0
3e875e7b5303d68d2cfd377f7b62f541180d07d9
demo/src/App.js
demo/src/App.js
import "./App.css"; import React, { Component } from "react"; import { Route } from "react-router-dom"; //Components import Header from "./components/Header"; import Basic from "./components/BasicExample"; import PropExample from "./components/PropExample"; import CallbackExample from "./components/CallbackExample"; export default class App extends Component { constructor(props) { super(props); } render() { return ( <div className="container-fluid"> <Route exact path="/" component={Header}> <Header /> </Route> <Route path="/example/basic" component={Basic}> <Basic /> </Route> <Route path="/example/props" component={PropExample}> <Basic /> </Route> <Route path="/example/callback" component={CallbackExample}> <CallbackExample /> </Route> </div> ); } }
import "./App.css"; import React, { Component } from "react"; import { Route } from "react-router-dom"; //Components import Header from "./components/Header"; import Basic from "./components/BasicExample"; import PropExample from "./components/PropExample"; import CallbackExample from "./components/CallbackExample"; export default class App extends Component { constructor(props) { super(props); } render() { return ( <div className="container-fluid"> <Route exact path="/" component={Header} /> <Route path="/example/basic" component={Basic} /> <Route path="/example/props" component={PropExample} /> <Route path="/example/callback" component={CallbackExample} /> </div> ); } }
Fix console error about having both child and component in react router
Fix console error about having both child and component in react router
JavaScript
mit
cbartram/nanoleaf-layout,cbartram/nanoleaf-layout
javascript
## Code Before: import "./App.css"; import React, { Component } from "react"; import { Route } from "react-router-dom"; //Components import Header from "./components/Header"; import Basic from "./components/BasicExample"; import PropExample from "./components/PropExample"; import CallbackExample from "./components/CallbackExample"; export default class App extends Component { constructor(props) { super(props); } render() { return ( <div className="container-fluid"> <Route exact path="/" component={Header}> <Header /> </Route> <Route path="/example/basic" component={Basic}> <Basic /> </Route> <Route path="/example/props" component={PropExample}> <Basic /> </Route> <Route path="/example/callback" component={CallbackExample}> <CallbackExample /> </Route> </div> ); } } ## Instruction: Fix console error about having both child and component in react router ## Code After: import "./App.css"; import React, { Component } from "react"; import { Route } from "react-router-dom"; //Components import Header from "./components/Header"; import Basic from "./components/BasicExample"; import PropExample from "./components/PropExample"; import CallbackExample from "./components/CallbackExample"; export default class App extends Component { constructor(props) { super(props); } render() { return ( <div className="container-fluid"> <Route exact path="/" component={Header} /> <Route path="/example/basic" component={Basic} /> <Route path="/example/props" component={PropExample} /> <Route path="/example/callback" component={CallbackExample} /> </div> ); } }
import "./App.css"; import React, { Component } from "react"; import { Route } from "react-router-dom"; //Components import Header from "./components/Header"; import Basic from "./components/BasicExample"; import PropExample from "./components/PropExample"; import CallbackExample from "./components/CallbackExample"; export default class App extends Component { constructor(props) { super(props); } render() { return ( <div className="container-fluid"> - <Route exact path="/" component={Header}> + <Route exact path="/" component={Header} /> ? ++ - <Header /> - </Route> - <Route path="/example/basic" component={Basic}> + <Route path="/example/basic" component={Basic} /> ? ++ - <Basic /> - </Route> - <Route path="/example/props" component={PropExample}> + <Route path="/example/props" component={PropExample} /> ? ++ - <Basic /> - </Route> - <Route path="/example/callback" component={CallbackExample}> + <Route path="/example/callback" component={CallbackExample} /> ? ++ - <CallbackExample /> - </Route> </div> ); } }
16
0.421053
4
12
e8bfb7ca0951f5dd5ab585162246f32e34276bcd
src/space-pen-extensions.coffee
src/space-pen-extensions.coffee
_ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> if bindings and bindings.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery : jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen
_ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> if bindings?.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen
Fix up things for kevin
Fix up things for kevin
CoffeeScript
mit
Jdesk/atom,niklabh/atom,pkdevbox/atom,bradgearon/atom,daxlab/atom,lovesnow/atom,me6iaton/atom,originye/atom,kc8wxm/atom,Sangaroonaom/atom,dkfiresky/atom,GHackAnonymous/atom,AlbertoBarrago/atom,codex8/atom,Hasimir/atom,xream/atom,NunoEdgarGub1/atom,kdheepak89/atom,charleswhchan/atom,amine7536/atom,hpham04/atom,liuderchi/atom,helber/atom,jeremyramin/atom,AdrianVovk/substance-ide,bryonwinger/atom,KENJU/atom,davideg/atom,devmario/atom,G-Baby/atom,scv119/atom,seedtigo/atom,fang-yufeng/atom,chfritz/atom,jacekkopecky/atom,vjeux/atom,MjAbuz/atom,hharchani/atom,einarmagnus/atom,tony612/atom,kc8wxm/atom,abe33/atom,ilovezy/atom,h0dgep0dge/atom,lisonma/atom,qskycolor/atom,t9md/atom,matthewclendening/atom,tjkr/atom,fscherwi/atom,n-riesco/atom,Neron-X5/atom,cyzn/atom,yamhon/atom,qiujuer/atom,medovob/atom,GHackAnonymous/atom,ykeisuke/atom,Dennis1978/atom,hharchani/atom,chengky/atom,sotayamashita/atom,CraZySacX/atom,sekcheong/atom,constanzaurzua/atom,xream/atom,dkfiresky/atom,Ju2ender/atom,nucked/atom,Austen-G/BlockBuilder,jjz/atom,burodepeper/atom,Mokolea/atom,sebmck/atom,anuwat121/atom,kaicataldo/atom,lisonma/atom,sebmck/atom,mostafaeweda/atom,Austen-G/BlockBuilder,codex8/atom,ppamorim/atom,Klozz/atom,RobinTec/atom,sekcheong/atom,efatsi/atom,jeremyramin/atom,woss/atom,harshdattani/atom,FoldingText/atom,MjAbuz/atom,charleswhchan/atom,sillvan/atom,mnquintana/atom,panuchart/atom,dsandstrom/atom,vcarrera/atom,bj7/atom,Rodjana/atom,rookie125/atom,RobinTec/atom,FoldingText/atom,FoldingText/atom,mrodalgaard/atom,ilovezy/atom,alexandergmann/atom,h0dgep0dge/atom,liuxiong332/atom,vjeux/atom,einarmagnus/atom,Shekharrajak/atom,darwin/atom,johnhaley81/atom,Arcanemagus/atom,pombredanne/atom,sillvan/atom,ppamorim/atom,me6iaton/atom,n-riesco/atom,rjattrill/atom,gisenberg/atom,ali/atom,cyzn/atom,sotayamashita/atom,charleswhchan/atom,tony612/atom,sillvan/atom,omarhuanca/atom,bcoe/atom,MjAbuz/atom,sotayamashita/atom,Jdesk/atom,nrodriguez13/atom,hakatashi/atom,stinsonga/atom,devoncarew/atom,burodepeper/atom,rsvip/aTom,G-Baby/atom,Austen-G/BlockBuilder,oggy/atom,githubteacher/atom,anuwat121/atom,sillvan/atom,tanin47/atom,kandros/atom,brumm/atom,splodingsocks/atom,rjattrill/atom,champagnez/atom,brettle/atom,john-kelly/atom,Locke23rus/atom,SlimeQ/atom,yomybaby/atom,DiogoXRP/atom,yangchenghu/atom,tony612/atom,Austen-G/BlockBuilder,tisu2tisu/atom,rlugojr/atom,fedorov/atom,constanzaurzua/atom,execjosh/atom,Jandersoft/atom,Jdesk/atom,boomwaiza/atom,AlisaKiatkongkumthon/atom,crazyquark/atom,Shekharrajak/atom,matthewclendening/atom,boomwaiza/atom,sekcheong/atom,FIT-CSE2410-A-Bombs/atom,basarat/atom,decaffeinate-examples/atom,amine7536/atom,PKRoma/atom,johnrizzo1/atom,synaptek/atom,kjav/atom,yalexx/atom,bcoe/atom,YunchengLiao/atom,anuwat121/atom,daxlab/atom,isghe/atom,qiujuer/atom,BogusCurry/atom,ali/atom,n-riesco/atom,Ju2ender/atom,florianb/atom,hharchani/atom,mnquintana/atom,elkingtonmcb/atom,g2p/atom,basarat/atom,panuchart/atom,devoncarew/atom,scippio/atom,deoxilix/atom,bolinfest/atom,fredericksilva/atom,einarmagnus/atom,lisonma/atom,constanzaurzua/atom,vhutheesing/atom,gzzhanghao/atom,qskycolor/atom,woss/atom,mertkahyaoglu/atom,tjkr/atom,hakatashi/atom,pombredanne/atom,devoncarew/atom,liuderchi/atom,prembasumatary/atom,kc8wxm/atom,bryonwinger/atom,sxgao3001/atom,avdg/atom,g2p/atom,john-kelly/atom,bradgearon/atom,burodepeper/atom,RobinTec/atom,dkfiresky/atom,ali/atom,Rodjana/atom,alexandergmann/atom,panuchart/atom,hagb4rd/atom,mdumrauf/atom,beni55/atom,Klozz/atom,ykeisuke/atom,githubteacher/atom,omarhuanca/atom,qskycolor/atom,abcP9110/atom,ironbox360/atom,abcP9110/atom,n-riesco/atom,decaffeinate-examples/atom,avdg/atom,ykeisuke/atom,NunoEdgarGub1/atom,bsmr-x-script/atom,dijs/atom,ralphtheninja/atom,florianb/atom,brumm/atom,Abdillah/atom,codex8/atom,yomybaby/atom,Rychard/atom,Sangaroonaom/atom,boomwaiza/atom,me-benni/atom,ObviouslyGreen/atom,amine7536/atom,AlisaKiatkongkumthon/atom,mertkahyaoglu/atom,YunchengLiao/atom,rsvip/aTom,dkfiresky/atom,svanharmelen/atom,harshdattani/atom,dsandstrom/atom,vinodpanicker/atom,tmunro/atom,deepfox/atom,devmario/atom,Hasimir/atom,kjav/atom,h0dgep0dge/atom,deoxilix/atom,BogusCurry/atom,Jonekee/atom,hharchani/atom,alfredxing/atom,rmartin/atom,erikhakansson/atom,russlescai/atom,ivoadf/atom,florianb/atom,basarat/atom,isghe/atom,tmunro/atom,Rychard/atom,hharchani/atom,DiogoXRP/atom,mostafaeweda/atom,seedtigo/atom,me-benni/atom,paulcbetts/atom,t9md/atom,rsvip/aTom,mertkahyaoglu/atom,palita01/atom,Dennis1978/atom,Hasimir/atom,Austen-G/BlockBuilder,kevinrenaers/atom,stuartquin/atom,folpindo/atom,fedorov/atom,jjz/atom,palita01/atom,ReddTea/atom,rookie125/atom,execjosh/atom,PKRoma/atom,targeter21/atom,vjeux/atom,basarat/atom,h0dgep0dge/atom,liuxiong332/atom,CraZySacX/atom,Jdesk/atom,rjattrill/atom,dijs/atom,transcranial/atom,liuxiong332/atom,synaptek/atom,qskycolor/atom,hellendag/atom,johnhaley81/atom,avdg/atom,paulcbetts/atom,Andrey-Pavlov/atom,kevinrenaers/atom,toqz/atom,ppamorim/atom,john-kelly/atom,sebmck/atom,svanharmelen/atom,deepfox/atom,andrewleverette/atom,yalexx/atom,beni55/atom,russlescai/atom,ardeshirj/atom,fredericksilva/atom,florianb/atom,FIT-CSE2410-A-Bombs/atom,toqz/atom,AlexxNica/atom,atom/atom,nucked/atom,johnrizzo1/atom,fredericksilva/atom,kc8wxm/atom,vjeux/atom,devmario/atom,acontreras89/atom,jtrose2/atom,deepfox/atom,splodingsocks/atom,hakatashi/atom,constanzaurzua/atom,lpommers/atom,andrewleverette/atom,phord/atom,AlbertoBarrago/atom,Galactix/atom,crazyquark/atom,niklabh/atom,lisonma/atom,lovesnow/atom,yamhon/atom,rmartin/atom,deepfox/atom,Andrey-Pavlov/atom,ObviouslyGreen/atom,kittens/atom,rmartin/atom,basarat/atom,kandros/atom,oggy/atom,kandros/atom,rxkit/atom,synaptek/atom,GHackAnonymous/atom,sxgao3001/atom,t9md/atom,SlimeQ/atom,ironbox360/atom,pkdevbox/atom,charleswhchan/atom,hellendag/atom,stinsonga/atom,toqz/atom,bolinfest/atom,mertkahyaoglu/atom,jtrose2/atom,abcP9110/atom,ezeoleaf/atom,hagb4rd/atom,jlord/atom,rlugojr/atom,FIT-CSE2410-A-Bombs/atom,Andrey-Pavlov/atom,stinsonga/atom,MjAbuz/atom,ezeoleaf/atom,execjosh/atom,nrodriguez13/atom,chfritz/atom,rmartin/atom,scv119/atom,tisu2tisu/atom,kjav/atom,acontreras89/atom,xream/atom,ashneo76/atom,mrodalgaard/atom,me-benni/atom,PKRoma/atom,abe33/atom,0x73/atom,lovesnow/atom,Neron-X5/atom,sekcheong/atom,bolinfest/atom,johnrizzo1/atom,abcP9110/atom,niklabh/atom,0x73/atom,alfredxing/atom,beni55/atom,Hasimir/atom,stinsonga/atom,deepfox/atom,prembasumatary/atom,nvoron23/atom,scippio/atom,crazyquark/atom,RuiDGoncalves/atom,devoncarew/atom,Galactix/atom,alfredxing/atom,me6iaton/atom,kdheepak89/atom,atom/atom,russlescai/atom,fredericksilva/atom,helber/atom,AlexxNica/atom,rxkit/atom,batjko/atom,vcarrera/atom,paulcbetts/atom,gisenberg/atom,targeter21/atom,lpommers/atom,Mokolea/atom,0x73/atom,ReddTea/atom,ashneo76/atom,qiujuer/atom,qiujuer/atom,G-Baby/atom,lovesnow/atom,scv119/atom,Arcanemagus/atom,isghe/atom,chengky/atom,ivoadf/atom,abe33/atom,efatsi/atom,vcarrera/atom,kdheepak89/atom,batjko/atom,chengky/atom,Huaraz2/atom,FoldingText/atom,Shekharrajak/atom,Ju2ender/atom,harshdattani/atom,g2p/atom,jeremyramin/atom,gontadu/atom,Dennis1978/atom,hellendag/atom,fscherwi/atom,medovob/atom,kevinrenaers/atom,vinodpanicker/atom,ironbox360/atom,dannyflax/atom,prembasumatary/atom,Jandersolutions/atom,omarhuanca/atom,darwin/atom,ReddTea/atom,wiggzz/atom,Jandersolutions/atom,FoldingText/atom,NunoEdgarGub1/atom,kaicataldo/atom,SlimeQ/atom,GHackAnonymous/atom,acontreras89/atom,sebmck/atom,jtrose2/atom,pengshp/atom,yalexx/atom,Ingramz/atom,ivoadf/atom,jordanbtucker/atom,toqz/atom,mnquintana/atom,ilovezy/atom,scippio/atom,dsandstrom/atom,jordanbtucker/atom,SlimeQ/atom,kittens/atom,bryonwinger/atom,svanharmelen/atom,Rychard/atom,russlescai/atom,mostafaeweda/atom,Galactix/atom,dsandstrom/atom,transcranial/atom,codex8/atom,RuiDGoncalves/atom,jlord/atom,brumm/atom,gabrielPeart/atom,targeter21/atom,stuartquin/atom,acontreras89/atom,tanin47/atom,davideg/atom,001szymon/atom,Jandersoft/atom,Galactix/atom,scv119/atom,tisu2tisu/atom,kaicataldo/atom,champagnez/atom,yangchenghu/atom,ali/atom,rjattrill/atom,jordanbtucker/atom,basarat/atom,einarmagnus/atom,YunchengLiao/atom,gisenberg/atom,NunoEdgarGub1/atom,champagnez/atom,001szymon/atom,Neron-X5/atom,mnquintana/atom,matthewclendening/atom,synaptek/atom,Locke23rus/atom,wiggzz/atom,woss/atom,Ju2ender/atom,kittens/atom,n-riesco/atom,yamhon/atom,ali/atom,ralphtheninja/atom,tanin47/atom,constanzaurzua/atom,jacekkopecky/atom,ObviouslyGreen/atom,jjz/atom,kdheepak89/atom,RobinTec/atom,brettle/atom,bcoe/atom,vhutheesing/atom,toqz/atom,paulcbetts/atom,Ingramz/atom,cyzn/atom,phord/atom,dannyflax/atom,ashneo76/atom,helber/atom,tony612/atom,targeter21/atom,nvoron23/atom,RuiDGoncalves/atom,Jandersolutions/atom,kjav/atom,oggy/atom,Abdillah/atom,gabrielPeart/atom,jacekkopecky/atom,andrewleverette/atom,Arcanemagus/atom,MjAbuz/atom,ilovezy/atom,vcarrera/atom,hpham04/atom,davideg/atom,johnhaley81/atom,Andrey-Pavlov/atom,githubteacher/atom,lpommers/atom,kc8wxm/atom,pengshp/atom,DiogoXRP/atom,daxlab/atom,elkingtonmcb/atom,ReddTea/atom,sxgao3001/atom,Rodjana/atom,bcoe/atom,mertkahyaoglu/atom,BogusCurry/atom,isghe/atom,jjz/atom,Jonekee/atom,Ingramz/atom,originye/atom,hpham04/atom,mdumrauf/atom,Shekharrajak/atom,nvoron23/atom,bsmr-x-script/atom,devmario/atom,qskycolor/atom,davideg/atom,Huaraz2/atom,fang-yufeng/atom,AdrianVovk/substance-ide,originye/atom,chengky/atom,omarhuanca/atom,001szymon/atom,yalexx/atom,jacekkopecky/atom,fang-yufeng/atom,FoldingText/atom,hagb4rd/atom,brettle/atom,rxkit/atom,stuartquin/atom,codex8/atom,oggy/atom,pkdevbox/atom,ezeoleaf/atom,AlbertoBarrago/atom,kittens/atom,Abdillah/atom,me6iaton/atom,Neron-X5/atom,sillvan/atom,Jdesk/atom,hpham04/atom,elkingtonmcb/atom,fredericksilva/atom,batjko/atom,yangchenghu/atom,mrodalgaard/atom,ezeoleaf/atom,bencolon/atom,jtrose2/atom,dannyflax/atom,woss/atom,KENJU/atom,nvoron23/atom,einarmagnus/atom,jacekkopecky/atom,Jonekee/atom,atom/atom,liuderchi/atom,liuderchi/atom,chfritz/atom,AlisaKiatkongkumthon/atom,gontadu/atom,ardeshirj/atom,rlugojr/atom,rsvip/aTom,qiujuer/atom,john-kelly/atom,jtrose2/atom,dannyflax/atom,batjko/atom,russlescai/atom,lovesnow/atom,KENJU/atom,Mokolea/atom,Locke23rus/atom,isghe/atom,batjko/atom,gzzhanghao/atom,mdumrauf/atom,fang-yufeng/atom,Jandersolutions/atom,gisenberg/atom,wiggzz/atom,prembasumatary/atom,tjkr/atom,kittens/atom,Shekharrajak/atom,hagb4rd/atom,john-kelly/atom,vjeux/atom,pombredanne/atom,jlord/atom,RobinTec/atom,dsandstrom/atom,matthewclendening/atom,acontreras89/atom,liuxiong332/atom,jlord/atom,devmario/atom,vinodpanicker/atom,mostafaeweda/atom,folpindo/atom,hagb4rd/atom,woss/atom,sebmck/atom,lisonma/atom,vinodpanicker/atom,vinodpanicker/atom,crazyquark/atom,fscherwi/atom,fang-yufeng/atom,efatsi/atom,jacekkopecky/atom,kjav/atom,NunoEdgarGub1/atom,jlord/atom,me6iaton/atom,chengky/atom,gabrielPeart/atom,gontadu/atom,decaffeinate-examples/atom,SlimeQ/atom,sekcheong/atom,charleswhchan/atom,AlexxNica/atom,phord/atom,dijs/atom,omarhuanca/atom,bj7/atom,fedorov/atom,bencolon/atom,ardeshirj/atom,bj7/atom,ReddTea/atom,sxgao3001/atom,devoncarew/atom,Ju2ender/atom,Sangaroonaom/atom,tmunro/atom,0x73/atom,KENJU/atom,sxgao3001/atom,nucked/atom,rookie125/atom,yomybaby/atom,KENJU/atom,Huaraz2/atom,davideg/atom,liuxiong332/atom,transcranial/atom,tony612/atom,dannyflax/atom,YunchengLiao/atom,ppamorim/atom,dannyflax/atom,yalexx/atom,florianb/atom,vhutheesing/atom,ppamorim/atom,palita01/atom,Abdillah/atom,bryonwinger/atom,synaptek/atom,bsmr-x-script/atom,Hasimir/atom,targeter21/atom,oggy/atom,Austen-G/BlockBuilder,erikhakansson/atom,darwin/atom,mostafaeweda/atom,ilovezy/atom,rsvip/aTom,Galactix/atom,kdheepak89/atom,YunchengLiao/atom,vcarrera/atom,hakatashi/atom,fedorov/atom,seedtigo/atom,folpindo/atom,nvoron23/atom,GHackAnonymous/atom,bencolon/atom,Abdillah/atom,pombredanne/atom,ralphtheninja/atom,splodingsocks/atom,yomybaby/atom,crazyquark/atom,deoxilix/atom,gisenberg/atom,Jandersolutions/atom,rmartin/atom,nrodriguez13/atom,CraZySacX/atom,Jandersoft/atom,Neron-X5/atom,erikhakansson/atom,AdrianVovk/substance-ide,mnquintana/atom,amine7536/atom,decaffeinate-examples/atom,prembasumatary/atom,abcP9110/atom,fedorov/atom,dkfiresky/atom,matthewclendening/atom,Jandersoft/atom,splodingsocks/atom,hpham04/atom,pombredanne/atom,gzzhanghao/atom,bcoe/atom,alexandergmann/atom,jjz/atom,pengshp/atom,bradgearon/atom,amine7536/atom,Klozz/atom,medovob/atom,yomybaby/atom,Andrey-Pavlov/atom,Jandersoft/atom
coffeescript
## Code Before: _ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> if bindings and bindings.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery : jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen ## Instruction: Fix up things for kevin ## Code After: _ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> if bindings?.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen
_ = require 'underscore-plus' spacePen = require 'space-pen' ConfigObserver = require './config-observer' {Subscriber} = require 'emissary' _.extend spacePen.View.prototype, ConfigObserver Subscriber.includeInto(spacePen.View) jQuery = spacePen.jQuery originalCleanData = jQuery.cleanData jQuery.cleanData = (elements) -> for element in elements if view = jQuery(element).view() view.unobserveConfig() view.unsubscribe() originalCleanData(elements) tooltipDefaults = delay: show: 500 hide: 100 container: 'body' html: true getKeystroke = (bindings) -> - if bindings and bindings.length + if bindings?.length "<span class=\"keystroke\">#{bindings[0].keystroke}</span>" else '' jQuery.fn.setTooltip = (title, {command, commandElement}={}) -> - atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery : jQuery}) ? --------- + atom.requireWithGlobals('bootstrap/js/tooltip', {jQuery}) bindings = if commandElement atom.keymap.keyBindingsForCommandMatchingElement(command, commandElement) else atom.keymap.keyBindingsForCommand(command) this.tooltip(jQuery.extend(tooltipDefaults, {title: "#{title} #{getKeystroke(bindings)}"})) module.exports = spacePen
4
0.097561
2
2
4c0019c7640dd0776ab0be4e780a317a20bec80c
.travis.yml
.travis.yml
language: cpp cache: ccache matrix: include: - os: linux sudo: false compiler: gcc env: _CC=gcc-4.9 _CXX=g++-4.9 _COV=gcov-4.9 - os: linux sudo: false compiler: clang env: _CC=clang-3.6 _CXX=clang++-3.6 - os: osx compiler: clang osx_image: xcode7.3 env: _CC=clang _CXX=clang++ addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - binutils-gold - autoconf2.13 - g++-4.9 - clang-3.6 - python-dev - libbz2-dev - zlib1g-dev - lcov - ruby - rubygems - doxygen - libtool services: - couchdb before_script: source .travis/before_script.sh script: source .travis/script.sh
language: cpp cache: ccache matrix: include: - os: linux sudo: false compiler: gcc env: _CC=gcc-4.9 _CXX=g++-4.9 _COV=gcov-4.9 - os: linux sudo: false compiler: clang env: _CC=clang-3.6 _CXX=clang++-3.6 - os: osx compiler: clang osx_image: xcode7.3 env: _CC=clang _CXX=clang++ addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - binutils-gold - autoconf2.13 - g++-4.9 - clang-3.6 - python-dev - libbz2-dev - zlib1g-dev - lcov - ruby - rubygems - doxygen - libtool - net-tools services: - couchdb before_script: source .travis/before_script.sh script: source .travis/script.sh
Install net-tools on Travis * we need netstat
Install net-tools on Travis * we need netstat
YAML
agpl-3.0
RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB,RipcordSoftware/AvanceDB
yaml
## Code Before: language: cpp cache: ccache matrix: include: - os: linux sudo: false compiler: gcc env: _CC=gcc-4.9 _CXX=g++-4.9 _COV=gcov-4.9 - os: linux sudo: false compiler: clang env: _CC=clang-3.6 _CXX=clang++-3.6 - os: osx compiler: clang osx_image: xcode7.3 env: _CC=clang _CXX=clang++ addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - binutils-gold - autoconf2.13 - g++-4.9 - clang-3.6 - python-dev - libbz2-dev - zlib1g-dev - lcov - ruby - rubygems - doxygen - libtool services: - couchdb before_script: source .travis/before_script.sh script: source .travis/script.sh ## Instruction: Install net-tools on Travis * we need netstat ## Code After: language: cpp cache: ccache matrix: include: - os: linux sudo: false compiler: gcc env: _CC=gcc-4.9 _CXX=g++-4.9 _COV=gcov-4.9 - os: linux sudo: false compiler: clang env: _CC=clang-3.6 _CXX=clang++-3.6 - os: osx compiler: clang osx_image: xcode7.3 env: _CC=clang _CXX=clang++ addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - binutils-gold - autoconf2.13 - g++-4.9 - clang-3.6 - python-dev - libbz2-dev - zlib1g-dev - lcov - ruby - rubygems - doxygen - libtool - net-tools services: - couchdb before_script: source .travis/before_script.sh script: source .travis/script.sh
language: cpp cache: ccache matrix: include: - os: linux sudo: false compiler: gcc env: _CC=gcc-4.9 _CXX=g++-4.9 _COV=gcov-4.9 - os: linux sudo: false compiler: clang env: _CC=clang-3.6 _CXX=clang++-3.6 - os: osx compiler: clang osx_image: xcode7.3 - env: _CC=clang _CXX=clang++ ? ------ + env: _CC=clang _CXX=clang++ addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - - binutils-gold ? ---- + - binutils-gold - - autoconf2.13 ? ---- + - autoconf2.13 - g++-4.9 - clang-3.6 - python-dev - libbz2-dev - zlib1g-dev - lcov - ruby - rubygems - doxygen - libtool + - net-tools services: - couchdb before_script: source .travis/before_script.sh script: source .travis/script.sh
7
0.152174
4
3
2e69cd216dd26ebd9f89bfda1caea83e08b0e636
app/views/event_partners/_form.html.erb
app/views/event_partners/_form.html.erb
<%= render 'shared/error_messages', :object => f.object %> <%= f.association :event, :input_html => { :class => "input-xxlarge", :disabled => :true } %> <%= f.association :entity, :input_html => { :class => "input-xxlarge" } %> <%= f.input :custom_blurb, :as => :ckeditor %> <%= f.input :role %> <div class="form-actions"> <%= f.button :submit, :class => 'btn btn-large btn-primary' %> </div>
<%= render 'shared/error_messages', :object => f.object %> <%= f.association :event, :input_html => { :class => "input-xxlarge", :disabled => :true } %> <%= f.association :entity, :input_html => { :class => "input-xxlarge" } %> <%= f.input :custom_blurb, :as => :ckeditor %> <%= f.input :role %> <div class="form-actions"> <%= f.button :submit, :class => 'btn btn-primary' %> <%= link_to "Cancel", event_path(f.object.event), :class => "btn" %> </div>
Add cancel button for Event Partner
Add cancel button for Event Partner
HTML+ERB
mit
devcon-ph/devcon,devcon-ph/devcon,devcon-ph/devcon
html+erb
## Code Before: <%= render 'shared/error_messages', :object => f.object %> <%= f.association :event, :input_html => { :class => "input-xxlarge", :disabled => :true } %> <%= f.association :entity, :input_html => { :class => "input-xxlarge" } %> <%= f.input :custom_blurb, :as => :ckeditor %> <%= f.input :role %> <div class="form-actions"> <%= f.button :submit, :class => 'btn btn-large btn-primary' %> </div> ## Instruction: Add cancel button for Event Partner ## Code After: <%= render 'shared/error_messages', :object => f.object %> <%= f.association :event, :input_html => { :class => "input-xxlarge", :disabled => :true } %> <%= f.association :entity, :input_html => { :class => "input-xxlarge" } %> <%= f.input :custom_blurb, :as => :ckeditor %> <%= f.input :role %> <div class="form-actions"> <%= f.button :submit, :class => 'btn btn-primary' %> <%= link_to "Cancel", event_path(f.object.event), :class => "btn" %> </div>
<%= render 'shared/error_messages', :object => f.object %> <%= f.association :event, :input_html => { :class => "input-xxlarge", :disabled => :true } %> <%= f.association :entity, :input_html => { :class => "input-xxlarge" } %> <%= f.input :custom_blurb, :as => :ckeditor %> <%= f.input :role %> <div class="form-actions"> - <%= f.button :submit, :class => 'btn btn-large btn-primary' %> ? ---------- + <%= f.button :submit, :class => 'btn btn-primary' %> + <%= link_to "Cancel", event_path(f.object.event), :class => "btn" %> </div>
3
0.3
2
1
c4cd2926688cc0abb5010f2b2cb3eeb9d1f558f8
.circleci/config.yml
.circleci/config.yml
version: 2 jobs: build: docker: - image: ruby:2.3 - image: postgres:9.4.1 environment: POSTGRES_USER: root working_directory: /home/ubuntu/cci-demo-rails steps: - checkout - run: name: Install System Dependencies command: apt-get update -qq && apt-get install -y build-essential nodejs - run: name: Install Ruby Dependencies command: bundle install - run: name: Create DB command: bundle exec rake db:create db:schema:load --trace - run: name: DB Migrations command: bundle exec rake db:migrate - run: name: Run Tests command: bundle exec rake test
version: 2 jobs: build: docker: - image: ruby:2.3 - image: postgres:9.4.1 environment: POSTGRES_USER: root working_directory: /home/ubuntu/cci-demo-rails steps: - checkout - run: apt-get update -qq && apt-get install -y build-essential nodejs - run: bundle install - run: bundle exec rake db:create db:schema:load --trace - run: bundle exec rake db:migrate - run: bundle exec rake test
Change to short-form run: commands
Change to short-form run: commands
YAML
mit
circleci/cci-demo-rails,circleci/cci-demo-rails,circleci/cci-demo-rails
yaml
## Code Before: version: 2 jobs: build: docker: - image: ruby:2.3 - image: postgres:9.4.1 environment: POSTGRES_USER: root working_directory: /home/ubuntu/cci-demo-rails steps: - checkout - run: name: Install System Dependencies command: apt-get update -qq && apt-get install -y build-essential nodejs - run: name: Install Ruby Dependencies command: bundle install - run: name: Create DB command: bundle exec rake db:create db:schema:load --trace - run: name: DB Migrations command: bundle exec rake db:migrate - run: name: Run Tests command: bundle exec rake test ## Instruction: Change to short-form run: commands ## Code After: version: 2 jobs: build: docker: - image: ruby:2.3 - image: postgres:9.4.1 environment: POSTGRES_USER: root working_directory: /home/ubuntu/cci-demo-rails steps: - checkout - run: apt-get update -qq && apt-get install -y build-essential nodejs - run: bundle install - run: bundle exec rake db:create db:schema:load --trace - run: bundle exec rake db:migrate - run: bundle exec rake test
version: 2 jobs: build: docker: - image: ruby:2.3 - image: postgres:9.4.1 environment: POSTGRES_USER: root working_directory: /home/ubuntu/cci-demo-rails steps: - checkout - - run: - name: Install System Dependencies - command: apt-get update -qq && apt-get install -y build-essential nodejs ? ^^^^^^^^ - + - run: apt-get update -qq && apt-get install -y build-essential nodejs ? + ^^ - - run: - name: Install Ruby Dependencies - command: bundle install ? ^^^^^^^^ - + - run: bundle install ? + ^^ - - run: - name: Create DB - command: bundle exec rake db:create db:schema:load --trace ? ^^^^^^^^ - + - run: bundle exec rake db:create db:schema:load --trace ? + ^^ - - run: - name: DB Migrations - command: bundle exec rake db:migrate ? ^^^^^^^^ - + - run: bundle exec rake db:migrate ? + ^^ - - run: - name: Run Tests - command: bundle exec rake test ? ^^^^^^^^ - + - run: bundle exec rake test ? + ^^
20
0.740741
5
15
d2eb3ebfb3e82d1fc86b867fed795b97a692c5cd
app/assets/javascripts/application/specialist_guide_pagination.js
app/assets/javascripts/application/specialist_guide_pagination.js
$(function() { var container = $(".specialistguide .govspeak"); var navigation = $(".specialistguide #document_sections"); container.splitIntoPages("h2"); pages = container.find(".page"); pages.hide(); var showDefaultPage = function() { pages.first().show(); } var showPage = function(hash) { var heading = $(hash); if (heading.is(":visible")) { return; } pages.hide(); heading.parents(".page").show(); $('html, body').animate({scrollTop:heading.offset().top}, 0); } navigation.find(">li").each(function(el){ var li = $(this), pageNav = li.find('>ol'), chapterSelector = '#' + li.find('>a').attr('href').split('#')[1], inPageNavigation = $("<div class='in-page-navigation'><h3>On this page</h3></div>"); if (pageNav.length > 0) { inPageNavigation.append(pageNav); $(chapterSelector).after(inPageNavigation); } }); $(window).hashchange(function() { if ((location.hash == "") || (location.hash == "#undefined")) { showDefaultPage(); } else { showPage(location.hash); } }) $(window).hashchange(); })
$(function() { var container = $(".specialistguide .govspeak"); var navigation = $(".specialistguide #document_sections"); container.splitIntoPages("h2"); pages = container.find(".page"); pages.hide(); var showPage = function() { var heading = $(location.hash); if (heading.length == 0) { pages.first().show(); return; } if (heading.is(":visible")) { return; } pages.hide(); heading.parents(".page").show(); $('html, body').animate({scrollTop:heading.offset().top}, 0); } navigation.find(">li").each(function(el){ var li = $(this), pageNav = li.find('>ol'), chapterSelector = '#' + li.find('>a').attr('href').split('#')[1], inPageNavigation = $("<div class='in-page-navigation'><h3>On this page</h3></div>"); if (pageNav.length > 0) { inPageNavigation.append(pageNav); $(chapterSelector).after(inPageNavigation); } }); $(window).hashchange(showPage) $(window).hashchange(); })
Simplify and strengthen specialist guide hide/display page ccode.
Simplify and strengthen specialist guide hide/display page ccode. If the page for the hash can't be found, the first page is shown, preventing js errors if people hack in different hashes (or click on old links)
JavaScript
mit
hotvulcan/whitehall,ggoral/whitehall,ggoral/whitehall,robinwhittleton/whitehall,alphagov/whitehall,hotvulcan/whitehall,alphagov/whitehall,ggoral/whitehall,YOTOV-LIMITED/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,robinwhittleton/whitehall,askl56/whitehall,robinwhittleton/whitehall,askl56/whitehall,hotvulcan/whitehall,askl56/whitehall,ggoral/whitehall,YOTOV-LIMITED/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,robinwhittleton/whitehall,alphagov/whitehall,alphagov/whitehall
javascript
## Code Before: $(function() { var container = $(".specialistguide .govspeak"); var navigation = $(".specialistguide #document_sections"); container.splitIntoPages("h2"); pages = container.find(".page"); pages.hide(); var showDefaultPage = function() { pages.first().show(); } var showPage = function(hash) { var heading = $(hash); if (heading.is(":visible")) { return; } pages.hide(); heading.parents(".page").show(); $('html, body').animate({scrollTop:heading.offset().top}, 0); } navigation.find(">li").each(function(el){ var li = $(this), pageNav = li.find('>ol'), chapterSelector = '#' + li.find('>a').attr('href').split('#')[1], inPageNavigation = $("<div class='in-page-navigation'><h3>On this page</h3></div>"); if (pageNav.length > 0) { inPageNavigation.append(pageNav); $(chapterSelector).after(inPageNavigation); } }); $(window).hashchange(function() { if ((location.hash == "") || (location.hash == "#undefined")) { showDefaultPage(); } else { showPage(location.hash); } }) $(window).hashchange(); }) ## Instruction: Simplify and strengthen specialist guide hide/display page ccode. If the page for the hash can't be found, the first page is shown, preventing js errors if people hack in different hashes (or click on old links) ## Code After: $(function() { var container = $(".specialistguide .govspeak"); var navigation = $(".specialistguide #document_sections"); container.splitIntoPages("h2"); pages = container.find(".page"); pages.hide(); var showPage = function() { var heading = $(location.hash); if (heading.length == 0) { pages.first().show(); return; } if (heading.is(":visible")) { return; } pages.hide(); heading.parents(".page").show(); $('html, body').animate({scrollTop:heading.offset().top}, 0); } navigation.find(">li").each(function(el){ var li = $(this), pageNav = li.find('>ol'), chapterSelector = '#' + li.find('>a').attr('href').split('#')[1], inPageNavigation = $("<div class='in-page-navigation'><h3>On this page</h3></div>"); if (pageNav.length > 0) { inPageNavigation.append(pageNav); $(chapterSelector).after(inPageNavigation); } }); $(window).hashchange(showPage) $(window).hashchange(); })
$(function() { var container = $(".specialistguide .govspeak"); var navigation = $(".specialistguide #document_sections"); container.splitIntoPages("h2"); pages = container.find(".page"); pages.hide(); - var showDefaultPage = function() { ? ------- + var showPage = function() { + var heading = $(location.hash); - pages.first().show(); - } - var showPage = function(hash) { - var heading = $(hash); + if (heading.length == 0) { + pages.first().show(); + return; + } if (heading.is(":visible")) { return; } pages.hide(); heading.parents(".page").show(); $('html, body').animate({scrollTop:heading.offset().top}, 0); } navigation.find(">li").each(function(el){ var li = $(this), pageNav = li.find('>ol'), chapterSelector = '#' + li.find('>a').attr('href').split('#')[1], inPageNavigation = $("<div class='in-page-navigation'><h3>On this page</h3></div>"); if (pageNav.length > 0) { inPageNavigation.append(pageNav); $(chapterSelector).after(inPageNavigation); } }); + $(window).hashchange(showPage) - $(window).hashchange(function() { - if ((location.hash == "") || (location.hash == "#undefined")) { - showDefaultPage(); - } else { - showPage(location.hash); - } - }) - $(window).hashchange(); })
20
0.434783
7
13
e75402eceef7a39293d805668e43a0d6bc68bff7
features/sass_mixin.feature
features/sass_mixin.feature
@polymer-bond Feature: Sass mixin files In order to make Polymer awesome It should generate Sass mixins Scenario: Creating a Sass mixin with a sprite Given I have a default project And I have 1 source in sources/fry When I run "polymer bond" Then the exit status should be 0 And a Sass mixin should exist And the stdout should contain "written Sass" Scenario: When nothing is generated Given I have a default project And I have 1 source in sources/fry And I run "polymer bond" When I run "polymer bond" Then the stdout should not contain "written Sass" Scenario: Disabling Sass in the config file Given I have a project with config: """ --- config.sass false sprites 'sources/:name/*' => 'sprites/:name.png' """ Then a Sass mixin should not exist
@polymer-bond Feature: Sass mixin files In order to make Polymer awesome It should generate Sass mixins Scenario: Creating a Sass mixin with a sprite Given I have a default project And I have 1 source in sources/fry When I run "polymer bond" Then the exit status should be 0 And a Sass mixin should exist And the stdout should contain "written Sass" Scenario: When nothing is generated Given I have a default project And I have 1 source in sources/fry And I run "polymer bond" When I run "polymer bond" Then the stdout should not contain "written Sass" Scenario: Disabling Sass in the config file Given I have a project with config: """ config.sass false sprites 'sources/:name/*' => 'sprites/:name.png' """ Then a Sass mixin should not exist
Clean up Sass mixin feature.
Clean up Sass mixin feature.
Cucumber
bsd-3-clause
antw/polymer
cucumber
## Code Before: @polymer-bond Feature: Sass mixin files In order to make Polymer awesome It should generate Sass mixins Scenario: Creating a Sass mixin with a sprite Given I have a default project And I have 1 source in sources/fry When I run "polymer bond" Then the exit status should be 0 And a Sass mixin should exist And the stdout should contain "written Sass" Scenario: When nothing is generated Given I have a default project And I have 1 source in sources/fry And I run "polymer bond" When I run "polymer bond" Then the stdout should not contain "written Sass" Scenario: Disabling Sass in the config file Given I have a project with config: """ --- config.sass false sprites 'sources/:name/*' => 'sprites/:name.png' """ Then a Sass mixin should not exist ## Instruction: Clean up Sass mixin feature. ## Code After: @polymer-bond Feature: Sass mixin files In order to make Polymer awesome It should generate Sass mixins Scenario: Creating a Sass mixin with a sprite Given I have a default project And I have 1 source in sources/fry When I run "polymer bond" Then the exit status should be 0 And a Sass mixin should exist And the stdout should contain "written Sass" Scenario: When nothing is generated Given I have a default project And I have 1 source in sources/fry And I run "polymer bond" When I run "polymer bond" Then the stdout should not contain "written Sass" Scenario: Disabling Sass in the config file Given I have a project with config: """ config.sass false sprites 'sources/:name/*' => 'sprites/:name.png' """ Then a Sass mixin should not exist
@polymer-bond Feature: Sass mixin files In order to make Polymer awesome It should generate Sass mixins Scenario: Creating a Sass mixin with a sprite Given I have a default project And I have 1 source in sources/fry When I run "polymer bond" Then the exit status should be 0 And a Sass mixin should exist And the stdout should contain "written Sass" Scenario: When nothing is generated Given I have a default project And I have 1 source in sources/fry And I run "polymer bond" When I run "polymer bond" Then the stdout should not contain "written Sass" Scenario: Disabling Sass in the config file Given I have a project with config: """ - --- - config.sass false ? -- + config.sass false - - sprites 'sources/:name/*' => 'sprites/:name.png' ? -- + sprites 'sources/:name/*' => 'sprites/:name.png' """ Then a Sass mixin should not exist
6
0.2
2
4
f16c0b91026f2e64cfa8c5c78bce367292e196b1
src/ext/components/scala-code-output.jade
src/ext/components/scala-code-output.jade
.flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style="white-space: pre-wrap") h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible " style="white-space: pre-wrap") a(href="#" data-bind="click: toggleResponseVisibility, text: scalaLinkText") h4 Executed Code: p(data-bind="text: code, visible: scalaCodeVisible " style="white-space: pre-wrap") a(href="#" data-bind="click: toggleCodeVisibility, text: scalaCodeLinkText") // /ko
.flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style='white-space: pre-wrap; font-family: Courier') h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible" style='white-space: pre-wrap; font-family: Courier') a(href="#" data-bind="click: toggleResponseVisibility, text: scalaLinkText") h4 Executed Code: p(data-bind="text: code, visible: scalaCodeVisible" style='white-space: pre-wrap; font-family: Courier') a(href="#" data-bind="click: toggleCodeVisibility, text: scalaCodeLinkText") // /ko
Use MonoSpace font in Scala cell console & interpreter output
[PUBDEV-5699] Use MonoSpace font in Scala cell console & interpreter output
Jade
mit
h2oai/h2o-flow,h2oai/h2o-flow
jade
## Code Before: .flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style="white-space: pre-wrap") h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible " style="white-space: pre-wrap") a(href="#" data-bind="click: toggleResponseVisibility, text: scalaLinkText") h4 Executed Code: p(data-bind="text: code, visible: scalaCodeVisible " style="white-space: pre-wrap") a(href="#" data-bind="click: toggleCodeVisibility, text: scalaCodeLinkText") // /ko ## Instruction: [PUBDEV-5699] Use MonoSpace font in Scala cell console & interpreter output ## Code After: .flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: p(data-bind="text:output" style='white-space: pre-wrap; font-family: Courier') h4 Scala Response: p(data-bind="text: response, visible: scalaResponseVisible" style='white-space: pre-wrap; font-family: Courier') a(href="#" data-bind="click: toggleResponseVisibility, text: scalaLinkText") h4 Executed Code: p(data-bind="text: code, visible: scalaCodeVisible" style='white-space: pre-wrap; font-family: Courier') a(href="#" data-bind="click: toggleCodeVisibility, text: scalaCodeLinkText") // /ko
.flow-widget // ko with:scalaCodeView h4(data-bind="text:\"Status: \"+status") h4 Console Output: - p(data-bind="text:output" style="white-space: pre-wrap") ? ^ ^ + p(data-bind="text:output" style='white-space: pre-wrap; font-family: Courier') ? ^ ^^^^^^^^^^^^^^^^^^^^^^^ h4 Scala Response: - p(data-bind="text: response, visible: scalaResponseVisible " style="white-space: pre-wrap") ? - ^ ^ + p(data-bind="text: response, visible: scalaResponseVisible" style='white-space: pre-wrap; font-family: Courier') ? ^ ^^^^^^^^^^^^^^^^^^^^^^^ a(href="#" data-bind="click: toggleResponseVisibility, text: scalaLinkText") h4 Executed Code: - p(data-bind="text: code, visible: scalaCodeVisible " style="white-space: pre-wrap") ? - ^ ^ + p(data-bind="text: code, visible: scalaCodeVisible" style='white-space: pre-wrap; font-family: Courier') ? ^ ^^^^^^^^^^^^^^^^^^^^^^^ a(href="#" data-bind="click: toggleCodeVisibility, text: scalaCodeLinkText") // /ko
6
0.428571
3
3
6c2c185da490c62bd975c18ced9807ca4c022d72
public/addToken.html
public/addToken.html
<div> <div class="modal-header"> <h3 class="modal-title">New Token</h3> </div> <div class="modal-body"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> </div> <br> <div class="input-group"> <input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2"> <span class="input-group-addon" id="basic-addon2">@example.com</span> </div> <br> <label for="basic-url">Your vanity URL</label> <div class="input-group"> <span class="input-group-addon" id="basic-addon3">https://example.com/users/</span> <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3"> </div> <br> <div class="input-group"> <span class="input-group-addon">$</span> <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)"> <span class="input-group-addon">.00</span> </div> <br> <div class="input-group"> <span class="input-group-addon">$</span> <span class="input-group-addon">0.00</span> <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)"> </div> </div> <div class="modal-footer"> <button class="btn btn-warning" type="button" ng-click="close()" data-dismiss="modal">Cancel</button> </div> </div>
<div> <div class="modal-header"> <h3 class="modal-title">New Token</h3> </div> <div class="modal-body"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Website" aria-describedby="basic-addon1"> </div> <br> <div class="input-group"> <input type="text" class="form-control" placeholder="Recipient's token" aria-describedby="basic-addon2"> <span class="input-group-addon" id="basic-addon2">@tokenmail.com</span> </div> <br> </div> <div class="modal-footer"> <div class="btn-group" role="group" aria-label="Basic example"> <button type="button" class="btn btn-success">Create</button> <button class="btn btn-warning" type="button" ng-click="close()" data-dismiss="modal">Cancel</button> </div> </div> </div>
Clean up add token template.
Clean up add token template.
HTML
unlicense
achinwo/tokenmail,achinwo/tokenmail
html
## Code Before: <div> <div class="modal-header"> <h3 class="modal-title">New Token</h3> </div> <div class="modal-body"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> </div> <br> <div class="input-group"> <input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2"> <span class="input-group-addon" id="basic-addon2">@example.com</span> </div> <br> <label for="basic-url">Your vanity URL</label> <div class="input-group"> <span class="input-group-addon" id="basic-addon3">https://example.com/users/</span> <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3"> </div> <br> <div class="input-group"> <span class="input-group-addon">$</span> <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)"> <span class="input-group-addon">.00</span> </div> <br> <div class="input-group"> <span class="input-group-addon">$</span> <span class="input-group-addon">0.00</span> <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)"> </div> </div> <div class="modal-footer"> <button class="btn btn-warning" type="button" ng-click="close()" data-dismiss="modal">Cancel</button> </div> </div> ## Instruction: Clean up add token template. ## Code After: <div> <div class="modal-header"> <h3 class="modal-title">New Token</h3> </div> <div class="modal-body"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> <input type="text" class="form-control" placeholder="Website" aria-describedby="basic-addon1"> </div> <br> <div class="input-group"> <input type="text" class="form-control" placeholder="Recipient's token" aria-describedby="basic-addon2"> <span class="input-group-addon" id="basic-addon2">@tokenmail.com</span> </div> <br> </div> <div class="modal-footer"> <div class="btn-group" role="group" aria-label="Basic example"> <button type="button" class="btn btn-success">Create</button> <button class="btn btn-warning" type="button" ng-click="close()" data-dismiss="modal">Cancel</button> </div> </div> </div>
<div> <div class="modal-header"> <h3 class="modal-title">New Token</h3> </div> <div class="modal-body"> <div class="input-group"> <span class="input-group-addon" id="basic-addon1">@</span> - <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1"> ? ^ ^^^^^ + <input type="text" class="form-control" placeholder="Website" aria-describedby="basic-addon1"> ? ^^^ ^^ </div> <br> <div class="input-group"> - <input type="text" class="form-control" placeholder="Recipient's username" aria-describedby="basic-addon2"> ? ^^ - --- + <input type="text" class="form-control" placeholder="Recipient's token" aria-describedby="basic-addon2"> ? ^^^ - <span class="input-group-addon" id="basic-addon2">@example.com</span> ? ^ ^^ - + <span class="input-group-addon" id="basic-addon2">@tokenmail.com</span> ? +++ ^^ ^ </div> <br> + - <label for="basic-url">Your vanity URL</label> - <div class="input-group"> - <span class="input-group-addon" id="basic-addon3">https://example.com/users/</span> - <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3"> - </div> - <br> - <div class="input-group"> - <span class="input-group-addon">$</span> - <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)"> - <span class="input-group-addon">.00</span> - </div> - <br> - <div class="input-group"> - <span class="input-group-addon">$</span> - <span class="input-group-addon">0.00</span> - <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)"> - </div> </div> <div class="modal-footer"> + + <div class="btn-group" role="group" aria-label="Basic example"> + <button type="button" class="btn btn-success">Create</button> - <button class="btn btn-warning" type="button" + <button class="btn btn-warning" type="button" ? ++++ - ng-click="close()" data-dismiss="modal">Cancel</button> + ng-click="close()" data-dismiss="modal">Cancel</button> ? ++++ + </div> </div> </div>
32
0.8
10
22
dcb92840170f4655dcb22f17c7bf7e7fcf52179c
appveyor.yml
appveyor.yml
--- version: "{build}" branches: only: - master clone_depth: 10 install: - ps: ((New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP\ca-bundle.crt")) - SET SSL_CERT_FILE=%TMP%\ca-bundle.crt - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version build: off test_script: - rake -rdevkit test environment: matrix: - ruby_version: "193" - ruby_version: "200" - ruby_version: "200-x64" - ruby_version: "21" - ruby_version: "21-x64"
--- version: "{build}" clone_depth: 10 install: - ps: ((New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP\ca-bundle.crt")) - SET SSL_CERT_FILE=%TMP%\ca-bundle.crt - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version build: off test_script: - rake -rdevkit test environment: matrix: - ruby_version: "193" - ruby_version: "200" - ruby_version: "200-x64" - ruby_version: "21" - ruby_version: "21-x64"
Check other branches, too, in addition to master.
Appveyor: Check other branches, too, in addition to master.
YAML
mit
flavorjones/mini_portile,jtarchie/mini_portile,luislavena/mini_portile,luislavena/mini_portile,flavorjones/mini_portile
yaml
## Code Before: --- version: "{build}" branches: only: - master clone_depth: 10 install: - ps: ((New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP\ca-bundle.crt")) - SET SSL_CERT_FILE=%TMP%\ca-bundle.crt - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version build: off test_script: - rake -rdevkit test environment: matrix: - ruby_version: "193" - ruby_version: "200" - ruby_version: "200-x64" - ruby_version: "21" - ruby_version: "21-x64" ## Instruction: Appveyor: Check other branches, too, in addition to master. ## Code After: --- version: "{build}" clone_depth: 10 install: - ps: ((New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP\ca-bundle.crt")) - SET SSL_CERT_FILE=%TMP%\ca-bundle.crt - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version build: off test_script: - rake -rdevkit test environment: matrix: - ruby_version: "193" - ruby_version: "200" - ruby_version: "200-x64" - ruby_version: "21" - ruby_version: "21-x64"
--- version: "{build}" - branches: - only: - - master clone_depth: 10 install: - ps: ((New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP\ca-bundle.crt")) - SET SSL_CERT_FILE=%TMP%\ca-bundle.crt - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - ruby --version - gem --version build: off test_script: - rake -rdevkit test environment: matrix: - ruby_version: "193" - ruby_version: "200" - ruby_version: "200-x64" - ruby_version: "21" - ruby_version: "21-x64"
3
0.130435
0
3
6f770e3da8dda9bc91300e323d386f6a6863c86e
testing/test-cases/selenium-tests/pointClustering/testPointCluster.py
testing/test-cases/selenium-tests/pointClustering/testPointCluster.py
from selenium_test import FirefoxTest, ChromeTest,\ setUpModule, tearDownModule class glPointsBase(object): testCase = ('pointClustering',) testRevision = 4 def loadPage(self): self.resizeWindow(640, 480) self.loadURL('pointClustering/index.html') self.wait() self.resizeWindow(640, 480) def testClustering0(self): self.loadPage() self.screenshotTest('zoom0') def testClustering2(self): self.loadPage() self.runScript( 'myMap.zoom(5); myMap.center({x: -99, y: 40});' ) self.screenshotTest('zoom2') class FirefoxOSM(glPointsBase, FirefoxTest): testCase = glPointsBase.testCase + ('firefox',) class ChromeOSM(glPointsBase, ChromeTest): testCase = glPointsBase.testCase + ('chrome',) if __name__ == '__main__': import unittest unittest.main()
from time import sleep from selenium_test import FirefoxTest, ChromeTest,\ setUpModule, tearDownModule class glPointsBase(object): testCase = ('pointClustering',) testRevision = 4 def loadPage(self): self.resizeWindow(640, 480) self.loadURL('pointClustering/index.html') self.wait() self.resizeWindow(640, 480) sleep(5) def testClustering0(self): self.loadPage() self.screenshotTest('zoom0') def testClustering2(self): self.loadPage() self.runScript( 'myMap.zoom(5); myMap.center({x: -99, y: 40});' ) self.screenshotTest('zoom2') class FirefoxOSM(glPointsBase, FirefoxTest): testCase = glPointsBase.testCase + ('firefox',) class ChromeOSM(glPointsBase, ChromeTest): testCase = glPointsBase.testCase + ('chrome',) if __name__ == '__main__': import unittest unittest.main()
Add an explicit sleep in pointClustering test
Add an explicit sleep in pointClustering test
Python
apache-2.0
OpenGeoscience/geojs,OpenGeoscience/geojs,Kitware/geojs,OpenGeoscience/geojs,Kitware/geojs,Kitware/geojs
python
## Code Before: from selenium_test import FirefoxTest, ChromeTest,\ setUpModule, tearDownModule class glPointsBase(object): testCase = ('pointClustering',) testRevision = 4 def loadPage(self): self.resizeWindow(640, 480) self.loadURL('pointClustering/index.html') self.wait() self.resizeWindow(640, 480) def testClustering0(self): self.loadPage() self.screenshotTest('zoom0') def testClustering2(self): self.loadPage() self.runScript( 'myMap.zoom(5); myMap.center({x: -99, y: 40});' ) self.screenshotTest('zoom2') class FirefoxOSM(glPointsBase, FirefoxTest): testCase = glPointsBase.testCase + ('firefox',) class ChromeOSM(glPointsBase, ChromeTest): testCase = glPointsBase.testCase + ('chrome',) if __name__ == '__main__': import unittest unittest.main() ## Instruction: Add an explicit sleep in pointClustering test ## Code After: from time import sleep from selenium_test import FirefoxTest, ChromeTest,\ setUpModule, tearDownModule class glPointsBase(object): testCase = ('pointClustering',) testRevision = 4 def loadPage(self): self.resizeWindow(640, 480) self.loadURL('pointClustering/index.html') self.wait() self.resizeWindow(640, 480) sleep(5) def testClustering0(self): self.loadPage() self.screenshotTest('zoom0') def testClustering2(self): self.loadPage() self.runScript( 'myMap.zoom(5); myMap.center({x: -99, y: 40});' ) self.screenshotTest('zoom2') class FirefoxOSM(glPointsBase, FirefoxTest): testCase = glPointsBase.testCase + ('firefox',) class ChromeOSM(glPointsBase, ChromeTest): testCase = glPointsBase.testCase + ('chrome',) if __name__ == '__main__': import unittest unittest.main()
+ from time import sleep from selenium_test import FirefoxTest, ChromeTest,\ setUpModule, tearDownModule class glPointsBase(object): testCase = ('pointClustering',) testRevision = 4 def loadPage(self): self.resizeWindow(640, 480) self.loadURL('pointClustering/index.html') self.wait() self.resizeWindow(640, 480) + sleep(5) def testClustering0(self): self.loadPage() self.screenshotTest('zoom0') def testClustering2(self): self.loadPage() self.runScript( 'myMap.zoom(5); myMap.center({x: -99, y: 40});' ) self.screenshotTest('zoom2') class FirefoxOSM(glPointsBase, FirefoxTest): testCase = glPointsBase.testCase + ('firefox',) class ChromeOSM(glPointsBase, ChromeTest): testCase = glPointsBase.testCase + ('chrome',) if __name__ == '__main__': import unittest unittest.main()
2
0.052632
2
0
900237e33bc9e4fcaa6bb195bbc9518fd18de4f3
Casks/quicksilver.rb
Casks/quicksilver.rb
class Quicksilver < Cask url 'http://cdn.qsapp.com/com.blacktree.Quicksilver__16390.dmg' homepage 'http://qsapp.com/' version '1.1.2' sha1 '1957b38994afaf3da54b8eb547395dd407b28698' link 'Quicksilver.app' end
class Quicksilver < Cask url 'http://cdn.qsapp.com/com.blacktree.Quicksilver__16391.dmg' homepage 'http://qsapp.com/' version '1.1.3' sha1 '87054e36d98b1158f0eea7fd4c87e801b96aee6b' link 'Quicksilver.app' end
Update QuickSilver to version 1.1.3
Update QuickSilver to version 1.1.3
Ruby
bsd-2-clause
renaudguerin/homebrew-cask,johnjelinek/homebrew-cask,patresi/homebrew-cask,vin047/homebrew-cask,skyyuan/homebrew-cask,napaxton/homebrew-cask,Ketouem/homebrew-cask,af/homebrew-cask,royalwang/homebrew-cask,wickedsp1d3r/homebrew-cask,Gasol/homebrew-cask,elseym/homebrew-cask,sosedoff/homebrew-cask,joaoponceleao/homebrew-cask,elseym/homebrew-cask,albertico/homebrew-cask,josa42/homebrew-cask,dvdoliveira/homebrew-cask,sgnh/homebrew-cask,gilesdring/homebrew-cask,joaocc/homebrew-cask,greg5green/homebrew-cask,tranc99/homebrew-cask,jpodlech/homebrew-cask,axodys/homebrew-cask,klane/homebrew-cask,jtriley/homebrew-cask,chadcatlett/caskroom-homebrew-cask,gwaldo/homebrew-cask,stevehedrick/homebrew-cask,bgandon/homebrew-cask,boydj/homebrew-cask,gurghet/homebrew-cask,gregkare/homebrew-cask,Gasol/homebrew-cask,jedahan/homebrew-cask,FredLackeyOfficial/homebrew-cask,RickWong/homebrew-cask,mrmachine/homebrew-cask,lukasbestle/homebrew-cask,xiongchiamiov/homebrew-cask,retbrown/homebrew-cask,bcomnes/homebrew-cask,KosherBacon/homebrew-cask,JikkuJose/homebrew-cask,jen20/homebrew-cask,13k/homebrew-cask,daften/homebrew-cask,blogabe/homebrew-cask,sirodoht/homebrew-cask,ctrevino/homebrew-cask,nickpellant/homebrew-cask,jawshooah/homebrew-cask,xight/homebrew-cask,athrunsun/homebrew-cask,AndreTheHunter/homebrew-cask,gmkey/homebrew-cask,sscotth/homebrew-cask,AnastasiaSulyagina/homebrew-cask,nanoxd/homebrew-cask,nrlquaker/homebrew-cask,mazehall/homebrew-cask,sjackman/homebrew-cask,remko/homebrew-cask,lantrix/homebrew-cask,ftiff/homebrew-cask,kongslund/homebrew-cask,taherio/homebrew-cask,ahundt/homebrew-cask,a1russell/homebrew-cask,yuhki50/homebrew-cask,adrianchia/homebrew-cask,lukeadams/homebrew-cask,mindriot101/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,supriyantomaftuh/homebrew-cask,underyx/homebrew-cask,LaurentFough/homebrew-cask,garborg/homebrew-cask,brianshumate/homebrew-cask,jalaziz/homebrew-cask,robbiethegeek/homebrew-cask,ahbeng/homebrew-cask,cobyism/homebrew-cask,napaxton/homebrew-cask,vmrob/homebrew-cask,pacav69/homebrew-cask,mwek/homebrew-cask,RogerThiede/homebrew-cask,nathanielvarona/homebrew-cask,jhowtan/homebrew-cask,usami-k/homebrew-cask,tan9/homebrew-cask,afdnlw/homebrew-cask,kTitan/homebrew-cask,gurghet/homebrew-cask,nathansgreen/homebrew-cask,nivanchikov/homebrew-cask,dspeckhard/homebrew-cask,JikkuJose/homebrew-cask,yumitsu/homebrew-cask,decrement/homebrew-cask,wizonesolutions/homebrew-cask,fanquake/homebrew-cask,theoriginalgri/homebrew-cask,gilesdring/homebrew-cask,yurikoles/homebrew-cask,a-x-/homebrew-cask,nelsonjchen/homebrew-cask,ashishb/homebrew-cask,cliffcotino/homebrew-cask,andersonba/homebrew-cask,nicholsn/homebrew-cask,astorije/homebrew-cask,arranubels/homebrew-cask,deiga/homebrew-cask,morganestes/homebrew-cask,gord1anknot/homebrew-cask,lolgear/homebrew-cask,danielbayley/homebrew-cask,cliffcotino/homebrew-cask,ch3n2k/homebrew-cask,nightscape/homebrew-cask,hakamadare/homebrew-cask,wizonesolutions/homebrew-cask,JacopKane/homebrew-cask,FinalDes/homebrew-cask,bchatard/homebrew-cask,lumaxis/homebrew-cask,larseggert/homebrew-cask,jacobdam/homebrew-cask,julionc/homebrew-cask,antogg/homebrew-cask,elnappo/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,jhowtan/homebrew-cask,ksato9700/homebrew-cask,cohei/homebrew-cask,dvdoliveira/homebrew-cask,christer155/homebrew-cask,toonetown/homebrew-cask,gibsjose/homebrew-cask,neverfox/homebrew-cask,Ephemera/homebrew-cask,sjackman/homebrew-cask,helloIAmPau/homebrew-cask,malob/homebrew-cask,michelegera/homebrew-cask,mjdescy/homebrew-cask,petmoo/homebrew-cask,rhendric/homebrew-cask,qnm/homebrew-cask,Keloran/homebrew-cask,kamilboratynski/homebrew-cask,alexg0/homebrew-cask,rkJun/homebrew-cask,rajiv/homebrew-cask,cblecker/homebrew-cask,valepert/homebrew-cask,afdnlw/homebrew-cask,guylabs/homebrew-cask,hovancik/homebrew-cask,kteru/homebrew-cask,MicTech/homebrew-cask,jen20/homebrew-cask,Hywan/homebrew-cask,gregkare/homebrew-cask,dcondrey/homebrew-cask,illusionfield/homebrew-cask,maxnordlund/homebrew-cask,mathbunnyru/homebrew-cask,moimikey/homebrew-cask,ddm/homebrew-cask,hswong3i/homebrew-cask,nightscape/homebrew-cask,kievechua/homebrew-cask,mchlrmrz/homebrew-cask,cobyism/homebrew-cask,mkozjak/homebrew-cask,neverfox/homebrew-cask,tan9/homebrew-cask,spruceb/homebrew-cask,arronmabrey/homebrew-cask,zerrot/homebrew-cask,sysbot/homebrew-cask,sebcode/homebrew-cask,Amorymeltzer/homebrew-cask,guerrero/homebrew-cask,renaudguerin/homebrew-cask,BenjaminHCCarr/homebrew-cask,fanquake/homebrew-cask,kei-yamazaki/homebrew-cask,jonathanwiesel/homebrew-cask,morganestes/homebrew-cask,qbmiller/homebrew-cask,shoichiaizawa/homebrew-cask,akiomik/homebrew-cask,colindean/homebrew-cask,paulbreslin/homebrew-cask,flaviocamilo/homebrew-cask,winkelsdorf/homebrew-cask,jpodlech/homebrew-cask,tarwich/homebrew-cask,ksato9700/homebrew-cask,sohtsuka/homebrew-cask,dwihn0r/homebrew-cask,JacopKane/homebrew-cask,jgarber623/homebrew-cask,mchlrmrz/homebrew-cask,slack4u/homebrew-cask,jamesmlees/homebrew-cask,nysthee/homebrew-cask,andrewschleifer/homebrew-cask,christer155/homebrew-cask,delphinus35/homebrew-cask,deizel/homebrew-cask,miccal/homebrew-cask,malford/homebrew-cask,mwilmer/homebrew-cask,casidiablo/homebrew-cask,andrewdisley/homebrew-cask,diogodamiani/homebrew-cask,kTitan/homebrew-cask,josa42/homebrew-cask,neil-ca-moore/homebrew-cask,yurikoles/homebrew-cask,optikfluffel/homebrew-cask,cfillion/homebrew-cask,elyscape/homebrew-cask,kievechua/homebrew-cask,paour/homebrew-cask,arranubels/homebrew-cask,moogar0880/homebrew-cask,iAmGhost/homebrew-cask,leonmachadowilcox/homebrew-cask,uetchy/homebrew-cask,AdamCmiel/homebrew-cask,hellosky806/homebrew-cask,scottsuch/homebrew-cask,chadcatlett/caskroom-homebrew-cask,ahvigil/homebrew-cask,hellosky806/homebrew-cask,faun/homebrew-cask,santoshsahoo/homebrew-cask,dcondrey/homebrew-cask,dwihn0r/homebrew-cask,seanorama/homebrew-cask,mgryszko/homebrew-cask,reitermarkus/homebrew-cask,dlovitch/homebrew-cask,mchlrmrz/homebrew-cask,janlugt/homebrew-cask,frapposelli/homebrew-cask,colindean/homebrew-cask,diogodamiani/homebrew-cask,Saklad5/homebrew-cask,alebcay/homebrew-cask,rhendric/homebrew-cask,mfpierre/homebrew-cask,hristozov/homebrew-cask,andrewschleifer/homebrew-cask,yumitsu/homebrew-cask,reelsense/homebrew-cask,bric3/homebrew-cask,ptb/homebrew-cask,joshka/homebrew-cask,opsdev-ws/homebrew-cask,stevenmaguire/homebrew-cask,ashishb/homebrew-cask,esebastian/homebrew-cask,gerrymiller/homebrew-cask,a1russell/homebrew-cask,0rax/homebrew-cask,csmith-palantir/homebrew-cask,boecko/homebrew-cask,exherb/homebrew-cask,Fedalto/homebrew-cask,wesen/homebrew-cask,chuanxd/homebrew-cask,onlynone/homebrew-cask,m3nu/homebrew-cask,syscrusher/homebrew-cask,jeroenj/homebrew-cask,mokagio/homebrew-cask,wmorin/homebrew-cask,shonjir/homebrew-cask,imgarylai/homebrew-cask,illusionfield/homebrew-cask,wKovacs64/homebrew-cask,vmrob/homebrew-cask,riyad/homebrew-cask,cobyism/homebrew-cask,rajiv/homebrew-cask,jrwesolo/homebrew-cask,lcasey001/homebrew-cask,delphinus35/homebrew-cask,Labutin/homebrew-cask,julienlavergne/homebrew-cask,adriweb/homebrew-cask,jmeridth/homebrew-cask,gord1anknot/homebrew-cask,markthetech/homebrew-cask,gerrypower/homebrew-cask,diguage/homebrew-cask,wmorin/homebrew-cask,jspahrsummers/homebrew-cask,squid314/homebrew-cask,rogeriopradoj/homebrew-cask,bchatard/homebrew-cask,zorosteven/homebrew-cask,mAAdhaTTah/homebrew-cask,atsuyim/homebrew-cask,taherio/homebrew-cask,jbeagley52/homebrew-cask,drostron/homebrew-cask,iamso/homebrew-cask,tjt263/homebrew-cask,djakarta-trap/homebrew-myCask,pablote/homebrew-cask,jangalinski/homebrew-cask,MerelyAPseudonym/homebrew-cask,chrisopedia/homebrew-cask,sachin21/homebrew-cask,Dremora/homebrew-cask,catap/homebrew-cask,sirodoht/homebrew-cask,miguelfrde/homebrew-cask,ftiff/homebrew-cask,lvicentesanchez/homebrew-cask,zchee/homebrew-cask,kingthorin/homebrew-cask,Ibuprofen/homebrew-cask,mattfelsen/homebrew-cask,epmatsw/homebrew-cask,alebcay/homebrew-cask,onlynone/homebrew-cask,Amorymeltzer/homebrew-cask,kryhear/homebrew-cask,wastrachan/homebrew-cask,jpmat296/homebrew-cask,andyshinn/homebrew-cask,gyndav/homebrew-cask,timsutton/homebrew-cask,jayshao/homebrew-cask,colindunn/homebrew-cask,petmoo/homebrew-cask,alexg0/homebrew-cask,JosephViolago/homebrew-cask,prime8/homebrew-cask,epardee/homebrew-cask,bendoerr/homebrew-cask,kronicd/homebrew-cask,imgarylai/homebrew-cask,My2ndAngelic/homebrew-cask,larseggert/homebrew-cask,jacobbednarz/homebrew-cask,jtriley/homebrew-cask,ahvigil/homebrew-cask,MichaelPei/homebrew-cask,JosephViolago/homebrew-cask,markthetech/homebrew-cask,lukeadams/homebrew-cask,jgarber623/homebrew-cask,kassi/homebrew-cask,stephenwade/homebrew-cask,kevyau/homebrew-cask,kingthorin/homebrew-cask,pkq/homebrew-cask,flada-auxv/homebrew-cask,theoriginalgri/homebrew-cask,iamso/homebrew-cask,sohtsuka/homebrew-cask,githubutilities/homebrew-cask,Labutin/homebrew-cask,kevyau/homebrew-cask,codeurge/homebrew-cask,zorosteven/homebrew-cask,mikem/homebrew-cask,otaran/homebrew-cask,coneman/homebrew-cask,lumaxis/homebrew-cask,ksylvan/homebrew-cask,anbotero/homebrew-cask,morsdyce/homebrew-cask,nathancahill/homebrew-cask,slack4u/homebrew-cask,spruceb/homebrew-cask,helloIAmPau/homebrew-cask,claui/homebrew-cask,frapposelli/homebrew-cask,thehunmonkgroup/homebrew-cask,gmkey/homebrew-cask,Ibuprofen/homebrew-cask,caskroom/homebrew-cask,neverfox/homebrew-cask,miku/homebrew-cask,ericbn/homebrew-cask,hvisage/homebrew-cask,scribblemaniac/homebrew-cask,puffdad/homebrew-cask,hanxue/caskroom,stephenwade/homebrew-cask,codeurge/homebrew-cask,linc01n/homebrew-cask,jconley/homebrew-cask,nathanielvarona/homebrew-cask,aktau/homebrew-cask,elyscape/homebrew-cask,xtian/homebrew-cask,ebraminio/homebrew-cask,epmatsw/homebrew-cask,gyugyu/homebrew-cask,tsparber/homebrew-cask,leoj3n/homebrew-cask,shoichiaizawa/homebrew-cask,MisumiRize/homebrew-cask,kesara/homebrew-cask,JacopKane/homebrew-cask,kiliankoe/homebrew-cask,danielgomezrico/homebrew-cask,klane/homebrew-cask,bkono/homebrew-cask,troyxmccall/homebrew-cask,tonyseek/homebrew-cask,skatsuta/homebrew-cask,donbobka/homebrew-cask,Dremora/homebrew-cask,rcuza/homebrew-cask,chrisRidgers/homebrew-cask,johntrandall/homebrew-cask,inz/homebrew-cask,dunn/homebrew-cask,wickedsp1d3r/homebrew-cask,maxnordlund/homebrew-cask,fharbe/homebrew-cask,MatzFan/homebrew-cask,coeligena/homebrew-customized,chrisopedia/homebrew-cask,johan/homebrew-cask,bendoerr/homebrew-cask,m3nu/homebrew-cask,jgarber623/homebrew-cask,MisumiRize/homebrew-cask,muan/homebrew-cask,sebcode/homebrew-cask,guerrero/homebrew-cask,thomanq/homebrew-cask,danielgomezrico/homebrew-cask,pacav69/homebrew-cask,perfide/homebrew-cask,sparrc/homebrew-cask,kingthorin/homebrew-cask,seanzxx/homebrew-cask,carlmod/homebrew-cask,supriyantomaftuh/homebrew-cask,paulombcosta/homebrew-cask,thomanq/homebrew-cask,optikfluffel/homebrew-cask,tangestani/homebrew-cask,ajbw/homebrew-cask,haha1903/homebrew-cask,dieterdemeyer/homebrew-cask,winkelsdorf/homebrew-cask,jacobbednarz/homebrew-cask,qnm/homebrew-cask,kteru/homebrew-cask,Saklad5/homebrew-cask,vuquoctuan/homebrew-cask,cblecker/homebrew-cask,ldong/homebrew-cask,tolbkni/homebrew-cask,deizel/homebrew-cask,joschi/homebrew-cask,janlugt/homebrew-cask,mokagio/homebrew-cask,andyli/homebrew-cask,alloy/homebrew-cask,mingzhi22/homebrew-cask,Cottser/homebrew-cask,seanzxx/homebrew-cask,scribblemaniac/homebrew-cask,genewoo/homebrew-cask,stonehippo/homebrew-cask,shorshe/homebrew-cask,fkrone/homebrew-cask,joaocc/homebrew-cask,reitermarkus/homebrew-cask,bsiddiqui/homebrew-cask,ky0615/homebrew-cask-1,gustavoavellar/homebrew-cask,johan/homebrew-cask,ianyh/homebrew-cask,opsdev-ws/homebrew-cask,jalaziz/homebrew-cask,bgandon/homebrew-cask,boydj/homebrew-cask,buo/homebrew-cask,enriclluelles/homebrew-cask,guylabs/homebrew-cask,kesara/homebrew-cask,Fedalto/homebrew-cask,lucasmezencio/homebrew-cask,inz/homebrew-cask,uetchy/homebrew-cask,kkdd/homebrew-cask,ksylvan/homebrew-cask,moonboots/homebrew-cask,xakraz/homebrew-cask,RJHsiao/homebrew-cask,chuanxd/homebrew-cask,reitermarkus/homebrew-cask,asins/homebrew-cask,seanorama/homebrew-cask,fly19890211/homebrew-cask,royalwang/homebrew-cask,n8henrie/homebrew-cask,leonmachadowilcox/homebrew-cask,farmerchris/homebrew-cask,enriclluelles/homebrew-cask,pkq/homebrew-cask,norio-nomura/homebrew-cask,wayou/homebrew-cask,MircoT/homebrew-cask,claui/homebrew-cask,buo/homebrew-cask,underyx/homebrew-cask,RogerThiede/homebrew-cask,victorpopkov/homebrew-cask,dictcp/homebrew-cask,mazehall/homebrew-cask,jeanregisser/homebrew-cask,hyuna917/homebrew-cask,bosr/homebrew-cask,dlackty/homebrew-cask,adelinofaria/homebrew-cask,cclauss/homebrew-cask,scw/homebrew-cask,hswong3i/homebrew-cask,tranc99/homebrew-cask,hanxue/caskroom,jconley/homebrew-cask,mattrobenolt/homebrew-cask,yuhki50/homebrew-cask,feigaochn/homebrew-cask,retrography/homebrew-cask,andrewdisley/homebrew-cask,ponychicken/homebrew-customcask,jppelteret/homebrew-cask,jacobdam/homebrew-cask,ericbn/homebrew-cask,mariusbutuc/homebrew-cask,chino/homebrew-cask,nicolas-brousse/homebrew-cask,tsparber/homebrew-cask,tjnycum/homebrew-cask,nshemonsky/homebrew-cask,segiddins/homebrew-cask,mwek/homebrew-cask,fazo96/homebrew-cask,artdevjs/homebrew-cask,corbt/homebrew-cask,BenjaminHCCarr/homebrew-cask,gibsjose/homebrew-cask,0rax/homebrew-cask,alexg0/homebrew-cask,lalyos/homebrew-cask,hristozov/homebrew-cask,deiga/homebrew-cask,joschi/homebrew-cask,wastrachan/homebrew-cask,devmynd/homebrew-cask,timsutton/homebrew-cask,xakraz/homebrew-cask,anbotero/homebrew-cask,schneidmaster/homebrew-cask,mahori/homebrew-cask,xyb/homebrew-cask,LaurentFough/homebrew-cask,genewoo/homebrew-cask,nysthee/homebrew-cask,sachin21/homebrew-cask,kpearson/homebrew-cask,riyad/homebrew-cask,pablote/homebrew-cask,cohei/homebrew-cask,sanyer/homebrew-cask,ky0615/homebrew-cask-1,skatsuta/homebrew-cask,tyage/homebrew-cask,mattfelsen/homebrew-cask,nathancahill/homebrew-cask,kolomiichenko/homebrew-cask,kostasdizas/homebrew-cask,zeusdeux/homebrew-cask,markhuber/homebrew-cask,Philosoft/homebrew-cask,djmonta/homebrew-cask,mishari/homebrew-cask,RickWong/homebrew-cask,epardee/homebrew-cask,mAAdhaTTah/homebrew-cask,johnjelinek/homebrew-cask,farmerchris/homebrew-cask,My2ndAngelic/homebrew-cask,SentinelWarren/homebrew-cask,morsdyce/homebrew-cask,j13k/homebrew-cask,norio-nomura/homebrew-cask,malob/homebrew-cask,mahori/homebrew-cask,sparrc/homebrew-cask,uetchy/homebrew-cask,jeroenseegers/homebrew-cask,JoelLarson/homebrew-cask,exherb/homebrew-cask,optikfluffel/homebrew-cask,djakarta-trap/homebrew-myCask,zchee/homebrew-cask,xight/homebrew-cask,samnung/homebrew-cask,y00rb/homebrew-cask,zerrot/homebrew-cask,jeanregisser/homebrew-cask,yurrriq/homebrew-cask,singingwolfboy/homebrew-cask,mgryszko/homebrew-cask,mjgardner/homebrew-cask,blainesch/homebrew-cask,otzy007/homebrew-cask,unasuke/homebrew-cask,L2G/homebrew-cask,dezon/homebrew-cask,chrisfinazzo/homebrew-cask,Bombenleger/homebrew-cask,mwean/homebrew-cask,cedwardsmedia/homebrew-cask,stevenmaguire/homebrew-cask,tonyseek/homebrew-cask,okket/homebrew-cask,retrography/homebrew-cask,xiongchiamiov/homebrew-cask,githubutilities/homebrew-cask,tolbkni/homebrew-cask,bsiddiqui/homebrew-cask,blogabe/homebrew-cask,SamiHiltunen/homebrew-cask,mattrobenolt/homebrew-cask,syscrusher/homebrew-cask,lifepillar/homebrew-cask,troyxmccall/homebrew-cask,andersonba/homebrew-cask,mjdescy/homebrew-cask,doits/homebrew-cask,ayohrling/homebrew-cask,Keloran/homebrew-cask,tedbundyjr/homebrew-cask,johndbritton/homebrew-cask,mathbunnyru/homebrew-cask,ericbn/homebrew-cask,psibre/homebrew-cask,winkelsdorf/homebrew-cask,wayou/homebrew-cask,barravi/homebrew-cask,stigkj/homebrew-caskroom-cask,mauricerkelly/homebrew-cask,slnovak/homebrew-cask,samdoran/homebrew-cask,ohammersmith/homebrew-cask,claui/homebrew-cask,gabrielizaias/homebrew-cask,mlocher/homebrew-cask,jasmas/homebrew-cask,cprecioso/homebrew-cask,renard/homebrew-cask,cclauss/homebrew-cask,ingorichter/homebrew-cask,ponychicken/homebrew-customcask,L2G/homebrew-cask,rcuza/homebrew-cask,joaoponceleao/homebrew-cask,johndbritton/homebrew-cask,bcaceiro/homebrew-cask,asins/homebrew-cask,lalyos/homebrew-cask,dictcp/homebrew-cask,ywfwj2008/homebrew-cask,antogg/homebrew-cask,lieuwex/homebrew-cask,jedahan/homebrew-cask,skyyuan/homebrew-cask,williamboman/homebrew-cask,ohammersmith/homebrew-cask,freeslugs/homebrew-cask,rickychilcott/homebrew-cask,coneman/homebrew-cask,adriweb/homebrew-cask,arronmabrey/homebrew-cask,reelsense/homebrew-cask,muan/homebrew-cask,yurikoles/homebrew-cask,howie/homebrew-cask,nelsonjchen/homebrew-cask,amatos/homebrew-cask,wolflee/homebrew-cask,greg5green/homebrew-cask,shonjir/homebrew-cask,mindriot101/homebrew-cask,zhuzihhhh/homebrew-cask,tangestani/homebrew-cask,pkq/homebrew-cask,englishm/homebrew-cask,nicholsn/homebrew-cask,xtian/homebrew-cask,decrement/homebrew-cask,jellyfishcoder/homebrew-cask,leipert/homebrew-cask,sanyer/homebrew-cask,mahori/homebrew-cask,boecko/homebrew-cask,jangalinski/homebrew-cask,doits/homebrew-cask,kongslund/homebrew-cask,ch3n2k/homebrew-cask,retbrown/homebrew-cask,julionc/homebrew-cask,slnovak/homebrew-cask,afh/homebrew-cask,a1russell/homebrew-cask,paour/homebrew-cask,carlmod/homebrew-cask,paulbreslin/homebrew-cask,adrianchia/homebrew-cask,CameronGarrett/homebrew-cask,moogar0880/homebrew-cask,bric3/homebrew-cask,brianshumate/homebrew-cask,donbobka/homebrew-cask,zmwangx/homebrew-cask,singingwolfboy/homebrew-cask,jeroenseegers/homebrew-cask,mishari/homebrew-cask,AdamCmiel/homebrew-cask,gwaldo/homebrew-cask,usami-k/homebrew-cask,6uclz1/homebrew-cask,n8henrie/homebrew-cask,schneidmaster/homebrew-cask,ayohrling/homebrew-cask,shanonvl/homebrew-cask,malford/homebrew-cask,0xadada/homebrew-cask,samshadwell/homebrew-cask,squid314/homebrew-cask,jayshao/homebrew-cask,otzy007/homebrew-cask,mhubig/homebrew-cask,inta/homebrew-cask,SamiHiltunen/homebrew-cask,lieuwex/homebrew-cask,CameronGarrett/homebrew-cask,haha1903/homebrew-cask,johntrandall/homebrew-cask,aguynamedryan/homebrew-cask,timsutton/homebrew-cask,BahtiyarB/homebrew-cask,FinalDes/homebrew-cask,phpwutz/homebrew-cask,kirikiriyamama/homebrew-cask,kevinoconnor7/homebrew-cask,kuno/homebrew-cask,singingwolfboy/homebrew-cask,BahtiyarB/homebrew-cask,dwkns/homebrew-cask,crmne/homebrew-cask,jpmat296/homebrew-cask,miku/homebrew-cask,hyuna917/homebrew-cask,Ketouem/homebrew-cask,askl56/homebrew-cask,paulombcosta/homebrew-cask,gyugyu/homebrew-cask,kkdd/homebrew-cask,tangestani/homebrew-cask,giannitm/homebrew-cask,jawshooah/homebrew-cask,y00rb/homebrew-cask,danielbayley/homebrew-cask,daften/homebrew-cask,dunn/homebrew-cask,Nitecon/homebrew-cask,lolgear/homebrew-cask,mrmachine/homebrew-cask,robbiethegeek/homebrew-cask,ingorichter/homebrew-cask,zeusdeux/homebrew-cask,kiliankoe/homebrew-cask,hovancik/homebrew-cask,michelegera/homebrew-cask,gyndav/homebrew-cask,cedwardsmedia/homebrew-cask,victorpopkov/homebrew-cask,Ephemera/homebrew-cask,lcasey001/homebrew-cask,inta/homebrew-cask,gerrypower/homebrew-cask,kuno/homebrew-cask,rkJun/homebrew-cask,coeligena/homebrew-customized,ldong/homebrew-cask,zhuzihhhh/homebrew-cask,tjnycum/homebrew-cask,forevergenin/homebrew-cask,flaviocamilo/homebrew-cask,freeslugs/homebrew-cask,elnappo/homebrew-cask,josa42/homebrew-cask,wickles/homebrew-cask,dlackty/homebrew-cask,xcezx/homebrew-cask,julienlavergne/homebrew-cask,hackhandslabs/homebrew-cask,n0ts/homebrew-cask,KosherBacon/homebrew-cask,niksy/homebrew-cask,lauantai/homebrew-cask,mwean/homebrew-cask,vin047/homebrew-cask,Ephemera/homebrew-cask,rednoah/homebrew-cask,giannitm/homebrew-cask,colindunn/homebrew-cask,AnastasiaSulyagina/homebrew-cask,mhubig/homebrew-cask,pinut/homebrew-cask,adelinofaria/homebrew-cask,m3nu/homebrew-cask,jonathanwiesel/homebrew-cask,sosedoff/homebrew-cask,robertgzr/homebrew-cask,renard/homebrew-cask,MatzFan/homebrew-cask,vitorgalvao/homebrew-cask,kryhear/homebrew-cask,miccal/homebrew-cask,Ngrd/homebrew-cask,FranklinChen/homebrew-cask,a-x-/homebrew-cask,joschi/homebrew-cask,mwilmer/homebrew-cask,n0ts/homebrew-cask,MircoT/homebrew-cask,tjnycum/homebrew-cask,rogeriopradoj/homebrew-cask,antogg/homebrew-cask,bcaceiro/homebrew-cask,aguynamedryan/homebrew-cask,barravi/homebrew-cask,0xadada/homebrew-cask,chrisRidgers/homebrew-cask,jeroenj/homebrew-cask,albertico/homebrew-cask,leipert/homebrew-cask,scribblemaniac/homebrew-cask,stonehippo/homebrew-cask,deanmorin/homebrew-cask,SentinelWarren/homebrew-cask,fly19890211/homebrew-cask,christophermanning/homebrew-cask,adrianchia/homebrew-cask,muescha/homebrew-cask,bdhess/homebrew-cask,astorije/homebrew-cask,jbeagley52/homebrew-cask,bcomnes/homebrew-cask,moonboots/homebrew-cask,okket/homebrew-cask,englishm/homebrew-cask,goxberry/homebrew-cask,andyli/homebrew-cask,joshka/homebrew-cask,dieterdemeyer/homebrew-cask,pinut/homebrew-cask,wickles/homebrew-cask,samnung/homebrew-cask,koenrh/homebrew-cask,cprecioso/homebrew-cask,feniix/homebrew-cask,remko/homebrew-cask,drostron/homebrew-cask,santoshsahoo/homebrew-cask,crzrcn/homebrew-cask,kirikiriyamama/homebrew-cask,sscotth/homebrew-cask,qbmiller/homebrew-cask,lantrix/homebrew-cask,jiashuw/homebrew-cask,dspeckhard/homebrew-cask,lauantai/homebrew-cask,sanyer/homebrew-cask,casidiablo/homebrew-cask,mkozjak/homebrew-cask,dictcp/homebrew-cask,rogeriopradoj/homebrew-cask,segiddins/homebrew-cask,ajbw/homebrew-cask,coeligena/homebrew-customized,vuquoctuan/homebrew-cask,scw/homebrew-cask,MoOx/homebrew-cask,FranklinChen/homebrew-cask,mingzhi22/homebrew-cask,franklouwers/homebrew-cask,kamilboratynski/homebrew-cask,ninjahoahong/homebrew-cask,RJHsiao/homebrew-cask,Whoaa512/homebrew-cask,ahundt/homebrew-cask,wolflee/homebrew-cask,bosr/homebrew-cask,wuman/homebrew-cask,tdsmith/homebrew-cask,6uclz1/homebrew-cask,tmoreira2020/homebrew,shishi/homebrew-cask,ebraminio/homebrew-cask,d/homebrew-cask,dezon/homebrew-cask,katoquro/homebrew-cask,crzrcn/homebrew-cask,mauricerkelly/homebrew-cask,tyage/homebrew-cask,valepert/homebrew-cask,fkrone/homebrew-cask,vitorgalvao/homebrew-cask,jasmas/homebrew-cask,bric3/homebrew-cask,alloy/homebrew-cask,andyshinn/homebrew-cask,shoichiaizawa/homebrew-cask,sscotth/homebrew-cask,joshka/homebrew-cask,ywfwj2008/homebrew-cask,lucasmezencio/homebrew-cask,hanxue/caskroom,garborg/homebrew-cask,robertgzr/homebrew-cask,nathanielvarona/homebrew-cask,diguage/homebrew-cask,aki77/homebrew-cask,nickpellant/homebrew-cask,thii/homebrew-cask,samdoran/homebrew-cask,neil-ca-moore/homebrew-cask,thii/homebrew-cask,sgnh/homebrew-cask,blogabe/homebrew-cask,hakamadare/homebrew-cask,jaredsampson/homebrew-cask,yurrriq/homebrew-cask,ctrevino/homebrew-cask,xalep/homebrew-cask,yutarody/homebrew-cask,gguillotte/homebrew-cask,nathansgreen/homebrew-cask,JoelLarson/homebrew-cask,stephenwade/homebrew-cask,lifepillar/homebrew-cask,jellyfishcoder/homebrew-cask,kpearson/homebrew-cask,nshemonsky/homebrew-cask,jmeridth/homebrew-cask,jiashuw/homebrew-cask,Philosoft/homebrew-cask,katoquro/homebrew-cask,unasuke/homebrew-cask,3van/homebrew-cask,deiga/homebrew-cask,perfide/homebrew-cask,akiomik/homebrew-cask,hvisage/homebrew-cask,tedski/homebrew-cask,artdevjs/homebrew-cask,kesara/homebrew-cask,patresi/homebrew-cask,dlovitch/homebrew-cask,gabrielizaias/homebrew-cask,Bombenleger/homebrew-cask,huanzhang/homebrew-cask,axodys/homebrew-cask,tedski/homebrew-cask,nrlquaker/homebrew-cask,d/homebrew-cask,aki77/homebrew-cask,rubenerd/homebrew-cask,rubenerd/homebrew-cask,stonehippo/homebrew-cask,lukasbestle/homebrew-cask,FredLackeyOfficial/homebrew-cask,blainesch/homebrew-cask,xight/homebrew-cask,yutarody/homebrew-cask,afh/homebrew-cask,ahbeng/homebrew-cask,otaran/homebrew-cask,faun/homebrew-cask,fwiesel/homebrew-cask,pgr0ss/homebrew-cask,williamboman/homebrew-cask,Whoaa512/homebrew-cask,puffdad/homebrew-cask,paour/homebrew-cask,feigaochn/homebrew-cask,sanchezm/homebrew-cask,gyndav/homebrew-cask,imgarylai/homebrew-cask,markhuber/homebrew-cask,atsuyim/homebrew-cask,wKovacs64/homebrew-cask,aktau/homebrew-cask,jalaziz/homebrew-cask,hackhandslabs/homebrew-cask,miguelfrde/homebrew-cask,shanonvl/homebrew-cask,mlocher/homebrew-cask,mjgardner/homebrew-cask,MicTech/homebrew-cask,ptb/homebrew-cask,toonetown/homebrew-cask,kassi/homebrew-cask,nrlquaker/homebrew-cask,stevehedrick/homebrew-cask,devmynd/homebrew-cask,athrunsun/homebrew-cask,fwiesel/homebrew-cask,asbachb/homebrew-cask,lvicentesanchez/homebrew-cask,moimikey/homebrew-cask,mfpierre/homebrew-cask,mathbunnyru/homebrew-cask,shorshe/homebrew-cask,thehunmonkgroup/homebrew-cask,scottsuch/homebrew-cask,AndreTheHunter/homebrew-cask,chrisfinazzo/homebrew-cask,BenjaminHCCarr/homebrew-cask,jaredsampson/homebrew-cask,iAmGhost/homebrew-cask,tdsmith/homebrew-cask,mjgardner/homebrew-cask,feniix/homebrew-cask,j13k/homebrew-cask,wesen/homebrew-cask,mattrobenolt/homebrew-cask,deanmorin/homebrew-cask,bkono/homebrew-cask,dwkns/homebrew-cask,flada-auxv/homebrew-cask,13k/homebrew-cask,cblecker/homebrew-cask,stigkj/homebrew-caskroom-cask,rajiv/homebrew-cask,johnste/homebrew-cask,dustinblackman/homebrew-cask,pgr0ss/homebrew-cask,amatos/homebrew-cask,Amorymeltzer/homebrew-cask,tarwich/homebrew-cask,askl56/homebrew-cask,sysbot/homebrew-cask,MerelyAPseudonym/homebrew-cask,ddm/homebrew-cask,christophermanning/homebrew-cask,jrwesolo/homebrew-cask,rickychilcott/homebrew-cask,koenrh/homebrew-cask,yutarody/homebrew-cask,nicolas-brousse/homebrew-cask,bdhess/homebrew-cask,tmoreira2020/homebrew,miccal/homebrew-cask,tjt263/homebrew-cask,Ngrd/homebrew-cask,jspahrsummers/homebrew-cask,shishi/homebrew-cask,jamesmlees/homebrew-cask,kei-yamazaki/homebrew-cask,vigosan/homebrew-cask,Cottser/homebrew-cask,ianyh/homebrew-cask,rednoah/homebrew-cask,catap/homebrew-cask,MoOx/homebrew-cask,vigosan/homebrew-cask,xalep/homebrew-cask,moimikey/homebrew-cask,kolomiichenko/homebrew-cask,shonjir/homebrew-cask,MichaelPei/homebrew-cask,gerrymiller/homebrew-cask,goxberry/homebrew-cask,andrewdisley/homebrew-cask,chino/homebrew-cask,Hywan/homebrew-cask,franklouwers/homebrew-cask,phpwutz/homebrew-cask,tedbundyjr/homebrew-cask,kostasdizas/homebrew-cask,linc01n/homebrew-cask,samshadwell/homebrew-cask,xyb/homebrew-cask,chrisfinazzo/homebrew-cask,sanchezm/homebrew-cask,asbachb/homebrew-cask,dustinblackman/homebrew-cask,zmwangx/homebrew-cask,kevinoconnor7/homebrew-cask,mikem/homebrew-cask,corbt/homebrew-cask,crmne/homebrew-cask,forevergenin/homebrew-cask,cfillion/homebrew-cask,JosephViolago/homebrew-cask,jppelteret/homebrew-cask,scottsuch/homebrew-cask,Nitecon/homebrew-cask,alebcay/homebrew-cask,psibre/homebrew-cask,johnste/homebrew-cask,esebastian/homebrew-cask,3van/homebrew-cask,kronicd/homebrew-cask,fharbe/homebrew-cask,nanoxd/homebrew-cask,ninjahoahong/homebrew-cask,danielbayley/homebrew-cask,julionc/homebrew-cask,djmonta/homebrew-cask,howie/homebrew-cask,nivanchikov/homebrew-cask,xcezx/homebrew-cask,xyb/homebrew-cask,gguillotte/homebrew-cask,csmith-palantir/homebrew-cask,caskroom/homebrew-cask,af/homebrew-cask,esebastian/homebrew-cask,mariusbutuc/homebrew-cask,huanzhang/homebrew-cask,prime8/homebrew-cask,fazo96/homebrew-cask,gustavoavellar/homebrew-cask,wmorin/homebrew-cask,wuman/homebrew-cask,malob/homebrew-cask
ruby
## Code Before: class Quicksilver < Cask url 'http://cdn.qsapp.com/com.blacktree.Quicksilver__16390.dmg' homepage 'http://qsapp.com/' version '1.1.2' sha1 '1957b38994afaf3da54b8eb547395dd407b28698' link 'Quicksilver.app' end ## Instruction: Update QuickSilver to version 1.1.3 ## Code After: class Quicksilver < Cask url 'http://cdn.qsapp.com/com.blacktree.Quicksilver__16391.dmg' homepage 'http://qsapp.com/' version '1.1.3' sha1 '87054e36d98b1158f0eea7fd4c87e801b96aee6b' link 'Quicksilver.app' end
class Quicksilver < Cask - url 'http://cdn.qsapp.com/com.blacktree.Quicksilver__16390.dmg' ? ^ + url 'http://cdn.qsapp.com/com.blacktree.Quicksilver__16391.dmg' ? ^ homepage 'http://qsapp.com/' - version '1.1.2' ? ^ + version '1.1.3' ? ^ - sha1 '1957b38994afaf3da54b8eb547395dd407b28698' + sha1 '87054e36d98b1158f0eea7fd4c87e801b96aee6b' link 'Quicksilver.app' end
6
0.857143
3
3
579bdeaf0c5dc2e570291b9a527ed42e4a0d4eee
hieradata/test01/modules/foreman_proxy.yaml
hieradata/test01/modules/foreman_proxy.yaml
--- foreman_proxy::dhcp_range: '172.28.0.200 172.28.0.250' foreman_proxy::dhcp_gateway: '172.28.0.10' foreman_proxy::dhcp_nameservers: '172.28.0.10, 129.177.6.54' foreman_proxy::dhcp_interface: 'eth0'
--- foreman_proxy::dhcp_additional_interfaces: [ "%{::interface_oob1}" ]
Enable dhcp on oob in test01
Enable dhcp on oob in test01
YAML
apache-2.0
norcams/himlar,mikaeld66/himlar,raykrist/himlar,norcams/himlar,TorLdre/himlar,mikaeld66/himlar,TorLdre/himlar,TorLdre/himlar,norcams/himlar,tanzr/himlar,TorLdre/himlar,raykrist/himlar,tanzr/himlar,raykrist/himlar,TorLdre/himlar,tanzr/himlar,mikaeld66/himlar,raykrist/himlar,tanzr/himlar,mikaeld66/himlar,norcams/himlar,norcams/himlar,raykrist/himlar,tanzr/himlar,mikaeld66/himlar
yaml
## Code Before: --- foreman_proxy::dhcp_range: '172.28.0.200 172.28.0.250' foreman_proxy::dhcp_gateway: '172.28.0.10' foreman_proxy::dhcp_nameservers: '172.28.0.10, 129.177.6.54' foreman_proxy::dhcp_interface: 'eth0' ## Instruction: Enable dhcp on oob in test01 ## Code After: --- foreman_proxy::dhcp_additional_interfaces: [ "%{::interface_oob1}" ]
--- + foreman_proxy::dhcp_additional_interfaces: [ "%{::interface_oob1}" ] - foreman_proxy::dhcp_range: '172.28.0.200 172.28.0.250' - foreman_proxy::dhcp_gateway: '172.28.0.10' - foreman_proxy::dhcp_nameservers: '172.28.0.10, 129.177.6.54' - foreman_proxy::dhcp_interface: 'eth0'
5
1
1
4
50693b54172d193d9b3836244bfb9e7295f5c785
README.md
README.md
by [Ben Nadel][bennadel] (on [Google+][googleplus]) While ColdFusion has native methods for converting to Base64 and Hex, it doesn't have a way to encode Base32 values. As such, I've created this ColdFusion component that has static methods for encoding and decoding values using the Base32 alphabet. * decode( String ) :: String * decodeBinary( Binary ) :: Binary * encode( String ) :: String * decodeBinary( Binary ) :: Binary [bennadel]: http://www.bennadel.com [googleplus]: https://plus.google.com/108976367067760160494?rel=author
by [Ben Nadel][bennadel] (on [Google+][googleplus]) While ColdFusion has native methods for converting to Base64 and Hex, it doesn't have a way to encode Base32 values. As such, I've created this ColdFusion component that has static methods for encoding and decoding values using the Base32 alphabet. * decode( String ) :: String * decodeBinary( Binary ) :: Binary * encode( String ) :: String * decodeBinary( Binary ) :: Binary __Note__: If you use the string-base encoding functions, the strings are currently assumed to be in UTF-8 encoding. [bennadel]: http://www.bennadel.com [googleplus]: https://plus.google.com/108976367067760160494?rel=author
Add note about UTF-8 to readme.
Add note about UTF-8 to readme.
Markdown
mit
bennadel/Base32.cfc
markdown
## Code Before: by [Ben Nadel][bennadel] (on [Google+][googleplus]) While ColdFusion has native methods for converting to Base64 and Hex, it doesn't have a way to encode Base32 values. As such, I've created this ColdFusion component that has static methods for encoding and decoding values using the Base32 alphabet. * decode( String ) :: String * decodeBinary( Binary ) :: Binary * encode( String ) :: String * decodeBinary( Binary ) :: Binary [bennadel]: http://www.bennadel.com [googleplus]: https://plus.google.com/108976367067760160494?rel=author ## Instruction: Add note about UTF-8 to readme. ## Code After: by [Ben Nadel][bennadel] (on [Google+][googleplus]) While ColdFusion has native methods for converting to Base64 and Hex, it doesn't have a way to encode Base32 values. As such, I've created this ColdFusion component that has static methods for encoding and decoding values using the Base32 alphabet. * decode( String ) :: String * decodeBinary( Binary ) :: Binary * encode( String ) :: String * decodeBinary( Binary ) :: Binary __Note__: If you use the string-base encoding functions, the strings are currently assumed to be in UTF-8 encoding. [bennadel]: http://www.bennadel.com [googleplus]: https://plus.google.com/108976367067760160494?rel=author
by [Ben Nadel][bennadel] (on [Google+][googleplus]) While ColdFusion has native methods for converting to Base64 and Hex, it doesn't have a way to encode Base32 values. As such, I've created this ColdFusion component that has static methods for encoding and decoding values using the Base32 alphabet. * decode( String ) :: String * decodeBinary( Binary ) :: Binary * encode( String ) :: String * decodeBinary( Binary ) :: Binary + __Note__: If you use the string-base encoding functions, the strings are currently assumed + to be in UTF-8 encoding. + [bennadel]: http://www.bennadel.com [googleplus]: https://plus.google.com/108976367067760160494?rel=author
3
0.2
3
0
175f155ececbde6822dcf52f0e5409d237166b5b
package.json
package.json
{ "name": "reactive-coffee", "version": "1.1.1", "repository": { "type": "git", "url": "git://github.com/yang/reactive-coffee.git" }, "author": { "name": "Yang Zhang", "url": "http://yz.mit.edu/" }, "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-coffee": "~0.6.7", "grunt-contrib-concat": "~0.1.3", "grunt-contrib-uglify": "~0.2.7", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.1", "grunt-contrib-livereload": "~0.1.2", "grunt-bower-requirejs": "~0.4.4", "grunt-regarde": "~0.1.1", "grunt-karma": "~0.3.0", "grunt-open": "~0.2.3", "matchdep": "~0.1.2", "grunt-google-cdn": "~0.1.4", "phantomjs": "~1.9.7-1", "grunt-bower-task": "~0.2.3", "underscore": "~1.6.0", "underscore.string": "~2.3.3" }, "scripts": { "test": "grunt test && node test/nodeTest.js" }, "engines": { "node": ">=0.8.0" } }
{ "name": "reactive-coffee", "version": "1.1.1", "repository": { "type": "git", "url": "git://github.com/yang/reactive-coffee.git" }, "author": { "name": "Yang Zhang", "url": "http://yz.mit.edu/" }, "main": "dist/reactive-coffee", "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-coffee": "~0.6.7", "grunt-contrib-concat": "~0.1.3", "grunt-contrib-uglify": "~0.2.7", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.1", "grunt-contrib-livereload": "~0.1.2", "grunt-regarde": "~0.1.1", "grunt-karma": "~0.3.0", "grunt-open": "~0.2.3", "matchdep": "~0.1.2", "grunt-google-cdn": "~0.1.4", "phantomjs": "~1.9.7-1", "bower": "~1.3.2", "underscore": "~1.6.0", "underscore.string": "~2.3.3" }, "scripts": { "test": "grunt test && node test/nodeTest.js" }, "engines": { "node": ">=0.8.0" } }
Use bower directly rather than grunt bower
Use bower directly rather than grunt bower
JSON
mit
bobtail-dev/bobtail,bobtail-dev/bobtail-rx,bobtail-dev/bobtail,yang/reactive-coffee,rmehlinger/bobtail,bobtail-dev/bobtail,rmehlinger/bobtail
json
## Code Before: { "name": "reactive-coffee", "version": "1.1.1", "repository": { "type": "git", "url": "git://github.com/yang/reactive-coffee.git" }, "author": { "name": "Yang Zhang", "url": "http://yz.mit.edu/" }, "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-coffee": "~0.6.7", "grunt-contrib-concat": "~0.1.3", "grunt-contrib-uglify": "~0.2.7", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.1", "grunt-contrib-livereload": "~0.1.2", "grunt-bower-requirejs": "~0.4.4", "grunt-regarde": "~0.1.1", "grunt-karma": "~0.3.0", "grunt-open": "~0.2.3", "matchdep": "~0.1.2", "grunt-google-cdn": "~0.1.4", "phantomjs": "~1.9.7-1", "grunt-bower-task": "~0.2.3", "underscore": "~1.6.0", "underscore.string": "~2.3.3" }, "scripts": { "test": "grunt test && node test/nodeTest.js" }, "engines": { "node": ">=0.8.0" } } ## Instruction: Use bower directly rather than grunt bower ## Code After: { "name": "reactive-coffee", "version": "1.1.1", "repository": { "type": "git", "url": "git://github.com/yang/reactive-coffee.git" }, "author": { "name": "Yang Zhang", "url": "http://yz.mit.edu/" }, "main": "dist/reactive-coffee", "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-coffee": "~0.6.7", "grunt-contrib-concat": "~0.1.3", "grunt-contrib-uglify": "~0.2.7", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.1", "grunt-contrib-livereload": "~0.1.2", "grunt-regarde": "~0.1.1", "grunt-karma": "~0.3.0", "grunt-open": "~0.2.3", "matchdep": "~0.1.2", "grunt-google-cdn": "~0.1.4", "phantomjs": "~1.9.7-1", "bower": "~1.3.2", "underscore": "~1.6.0", "underscore.string": "~2.3.3" }, "scripts": { "test": "grunt test && node test/nodeTest.js" }, "engines": { "node": ">=0.8.0" } }
{ "name": "reactive-coffee", "version": "1.1.1", "repository": { "type": "git", "url": "git://github.com/yang/reactive-coffee.git" }, "author": { "name": "Yang Zhang", "url": "http://yz.mit.edu/" }, + "main": "dist/reactive-coffee", "devDependencies": { "grunt": "~0.4.2", "grunt-contrib-coffee": "~0.6.7", "grunt-contrib-concat": "~0.1.3", "grunt-contrib-uglify": "~0.2.7", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.1", "grunt-contrib-livereload": "~0.1.2", - "grunt-bower-requirejs": "~0.4.4", "grunt-regarde": "~0.1.1", "grunt-karma": "~0.3.0", "grunt-open": "~0.2.3", "matchdep": "~0.1.2", "grunt-google-cdn": "~0.1.4", "phantomjs": "~1.9.7-1", - "grunt-bower-task": "~0.2.3", + "bower": "~1.3.2", "underscore": "~1.6.0", "underscore.string": "~2.3.3" }, "scripts": { "test": "grunt test && node test/nodeTest.js" }, "engines": { "node": ">=0.8.0" } }
4
0.108108
2
2
eec077fa040d29767acae307ae74e97c8d511fba
src/containers/shared-assets/form-assets/form-tooltips.js
src/containers/shared-assets/form-assets/form-tooltips.js
import React from 'react'; const requirementsObj = { list_symbol: "◇", username: ["start with letter", "be between 3-10 characters", "contain only [a-zA-Z] characters"], ['e-mail']: ["look like: example@example.com"], ['confirm_e-mail']: ["be the same as e-mail address written above"], password: ["be K"] }; const FormTooltips = (props) => { function requirement(id){ return ( requirementsObj[id].map((r, i)=> <li key={i}> <i>{requirementsObj.list_symbol}</i> <p>{r}</p> </li> ) ); } function requirements(id){ return ( <ul className="input-tooltip-list"><i className="input-tooltip-header">{id}</i> should: {requirement(id)} </ul> ) } function tooltip(id){ switch(id){ case 'username': return requirements('username'); case 'e-mail': return requirements('e-mail'); case 'confirm_e-mail': return requirements('confirm_e-mail'); case 'password': return requirements('password'); case 'confirm_password': return ""; case 'secret': return "Secret answer should"; } } return ( <div className={`input-tooltip ${props.tooltip === true ? "active" : "display-none"}`}> <span className="input-tooltip-caret-left"></span> {tooltip(props.id)} </div> ) }; export default FormTooltips;
import React from 'react'; const requirementsObj = { list_symbol: "◇", username: ["start with letter", "be between 3-10 characters", "contain only [a-zA-Z] characters"], ['e-mail']: ["look like: example@example.com"], ['confirm_e-mail']: ["be the same as e-mail address written above"], password: ["be K"], confirm_password: ["be the same as password written above"], secret: ['be x'] }; const FormTooltips = (props) => { function requirement(id){ return ( requirementsObj[id].map((r, i)=> <li key={i}> <i>{requirementsObj.list_symbol}</i> <p>{r}</p> </li> ) ); } function requirements(id){ return ( <ul className="input-tooltip-list"><i className="input-tooltip-header">{id}</i> should: {requirement(id)} </ul> ) } function tooltip(id){ switch(id){ case id: return requirements(id); } } return ( <div className={`input-tooltip ${props.tooltip === true ? "active" : "display-none"}`}> <span className="input-tooltip-caret-left"></span> {tooltip(props.id)} </div> ) }; export default FormTooltips;
Change switch statement to dynamic
Change switch statement to dynamic
JavaScript
bsd-3-clause
vFujin/HearthLounge,vFujin/HearthLounge
javascript
## Code Before: import React from 'react'; const requirementsObj = { list_symbol: "◇", username: ["start with letter", "be between 3-10 characters", "contain only [a-zA-Z] characters"], ['e-mail']: ["look like: example@example.com"], ['confirm_e-mail']: ["be the same as e-mail address written above"], password: ["be K"] }; const FormTooltips = (props) => { function requirement(id){ return ( requirementsObj[id].map((r, i)=> <li key={i}> <i>{requirementsObj.list_symbol}</i> <p>{r}</p> </li> ) ); } function requirements(id){ return ( <ul className="input-tooltip-list"><i className="input-tooltip-header">{id}</i> should: {requirement(id)} </ul> ) } function tooltip(id){ switch(id){ case 'username': return requirements('username'); case 'e-mail': return requirements('e-mail'); case 'confirm_e-mail': return requirements('confirm_e-mail'); case 'password': return requirements('password'); case 'confirm_password': return ""; case 'secret': return "Secret answer should"; } } return ( <div className={`input-tooltip ${props.tooltip === true ? "active" : "display-none"}`}> <span className="input-tooltip-caret-left"></span> {tooltip(props.id)} </div> ) }; export default FormTooltips; ## Instruction: Change switch statement to dynamic ## Code After: import React from 'react'; const requirementsObj = { list_symbol: "◇", username: ["start with letter", "be between 3-10 characters", "contain only [a-zA-Z] characters"], ['e-mail']: ["look like: example@example.com"], ['confirm_e-mail']: ["be the same as e-mail address written above"], password: ["be K"], confirm_password: ["be the same as password written above"], secret: ['be x'] }; const FormTooltips = (props) => { function requirement(id){ return ( requirementsObj[id].map((r, i)=> <li key={i}> <i>{requirementsObj.list_symbol}</i> <p>{r}</p> </li> ) ); } function requirements(id){ return ( <ul className="input-tooltip-list"><i className="input-tooltip-header">{id}</i> should: {requirement(id)} </ul> ) } function tooltip(id){ switch(id){ case id: return requirements(id); } } return ( <div className={`input-tooltip ${props.tooltip === true ? "active" : "display-none"}`}> <span className="input-tooltip-caret-left"></span> {tooltip(props.id)} </div> ) }; export default FormTooltips;
import React from 'react'; const requirementsObj = { list_symbol: "◇", username: ["start with letter", "be between 3-10 characters", "contain only [a-zA-Z] characters"], ['e-mail']: ["look like: example@example.com"], ['confirm_e-mail']: ["be the same as e-mail address written above"], - password: ["be K"] + password: ["be K"], ? + + confirm_password: ["be the same as password written above"], + secret: ['be x'] }; const FormTooltips = (props) => { function requirement(id){ return ( requirementsObj[id].map((r, i)=> <li key={i}> <i>{requirementsObj.list_symbol}</i> <p>{r}</p> </li> ) ); } function requirements(id){ return ( <ul className="input-tooltip-list"><i className="input-tooltip-header">{id}</i> should: {requirement(id)} </ul> ) } function tooltip(id){ switch(id){ - - case 'username': return requirements('username'); - case 'e-mail': return requirements('e-mail'); ? ----- ^^ ----- ^^ + case id: return requirements(id); ? ^ ^ - case 'confirm_e-mail': return requirements('confirm_e-mail'); - case 'password': return requirements('password'); - case 'confirm_password': return ""; - case 'secret': return "Secret answer should"; } } return ( <div className={`input-tooltip ${props.tooltip === true ? "active" : "display-none"}`}> <span className="input-tooltip-caret-left"></span> {tooltip(props.id)} </div> ) }; export default FormTooltips;
12
0.214286
4
8
92b2407725538169a53e44fc7f319a36dec6cf11
.travis.yml
.travis.yml
sudo: false language: ruby env: - RUBOCOP_VERSION=0.47.1 - RUBOCOP_VERSION=0.46.0 - RUBOCOP_VERSION=0.45.0 - RUBOCOP_VERSION=0.44.1 - RUBOCOP_VERSION=0.43.0 - RUBOCOP_VERSION=0.42.0 - RUBOCOP_VERSION=0.41.2 - RUBOCOP_VERSION=0.40.0 - RUBOCOP_VERSION=0.39.0 - RUBOCOP_VERSION=0.38.0 rvm: - 2.3.3 - 2.4.0 gemfile: Gemfile.ci before_install: - gem install bundler - gem install rainbow -v '2.2.1'
sudo: false language: ruby env: - RUBOCOP_VERSION=0.52.0 - RUBOCOP_VERSION=0.51.0 - RUBOCOP_VERSION=0.50.0 - RUBOCOP_VERSION=0.49.1 - RUBOCOP_VERSION=0.49.0 - RUBOCOP_VERSION=0.48.1 - RUBOCOP_VERSION=0.48.0 - RUBOCOP_VERSION=0.47.1 - RUBOCOP_VERSION=0.46.0 - RUBOCOP_VERSION=0.45.0 rvm: - 2.3.5 - 2.4.2 gemfile: Gemfile.ci before_install: - gem install bundler - gem install rainbow -v '2.2.1'
Update Travis-CI config to run against latest rubocop versions
Update Travis-CI config to run against latest rubocop versions
YAML
mit
jimeh/rubocopfmt,jimeh/rubocopfmt
yaml
## Code Before: sudo: false language: ruby env: - RUBOCOP_VERSION=0.47.1 - RUBOCOP_VERSION=0.46.0 - RUBOCOP_VERSION=0.45.0 - RUBOCOP_VERSION=0.44.1 - RUBOCOP_VERSION=0.43.0 - RUBOCOP_VERSION=0.42.0 - RUBOCOP_VERSION=0.41.2 - RUBOCOP_VERSION=0.40.0 - RUBOCOP_VERSION=0.39.0 - RUBOCOP_VERSION=0.38.0 rvm: - 2.3.3 - 2.4.0 gemfile: Gemfile.ci before_install: - gem install bundler - gem install rainbow -v '2.2.1' ## Instruction: Update Travis-CI config to run against latest rubocop versions ## Code After: sudo: false language: ruby env: - RUBOCOP_VERSION=0.52.0 - RUBOCOP_VERSION=0.51.0 - RUBOCOP_VERSION=0.50.0 - RUBOCOP_VERSION=0.49.1 - RUBOCOP_VERSION=0.49.0 - RUBOCOP_VERSION=0.48.1 - RUBOCOP_VERSION=0.48.0 - RUBOCOP_VERSION=0.47.1 - RUBOCOP_VERSION=0.46.0 - RUBOCOP_VERSION=0.45.0 rvm: - 2.3.5 - 2.4.2 gemfile: Gemfile.ci before_install: - gem install bundler - gem install rainbow -v '2.2.1'
sudo: false language: ruby env: + - RUBOCOP_VERSION=0.52.0 + - RUBOCOP_VERSION=0.51.0 + - RUBOCOP_VERSION=0.50.0 + - RUBOCOP_VERSION=0.49.1 + - RUBOCOP_VERSION=0.49.0 + - RUBOCOP_VERSION=0.48.1 + - RUBOCOP_VERSION=0.48.0 - RUBOCOP_VERSION=0.47.1 - RUBOCOP_VERSION=0.46.0 - RUBOCOP_VERSION=0.45.0 - - RUBOCOP_VERSION=0.44.1 - - RUBOCOP_VERSION=0.43.0 - - RUBOCOP_VERSION=0.42.0 - - RUBOCOP_VERSION=0.41.2 - - RUBOCOP_VERSION=0.40.0 - - RUBOCOP_VERSION=0.39.0 - - RUBOCOP_VERSION=0.38.0 rvm: - - 2.3.3 ? ^ + - 2.3.5 ? ^ - - 2.4.0 ? ^ + - 2.4.2 ? ^ gemfile: Gemfile.ci before_install: - gem install bundler - gem install rainbow -v '2.2.1'
18
0.9
9
9
e387435680c658dd8182b1542b70a1ebba85f10e
junit/src/main/java/io/cucumber/junit/Assertions.java
junit/src/main/java/io/cucumber/junit/Assertions.java
package io.cucumber.junit; import io.cucumber.core.exception.CucumberException; import java.lang.annotation.Annotation; import java.lang.reflect.Method; final class Assertions { private Assertions() { } static void assertNoCucumberAnnotatedMethods(Class clazz) { for (Method method : clazz.getDeclaredMethods()) { for (Annotation annotation : method.getAnnotations()) { if (annotation.annotationType().getName().startsWith("cucumber") //TODO: Remove once migrated || annotation.annotationType().getName().startsWith("io.cucumber")) { throw new CucumberException( "\n\n" + "Classes annotated with @RunWith(Cucumber.class) must not define any\n" + "Step Definition or Hook methods. Their sole purpose is to serve as\n" + "an entry point for JUnit. Step Definitions and Hooks should be defined\n" + "in their own classes. This allows them to be reused across features.\n" + "Offending class: " + clazz + "\n" ); } } } } }
package io.cucumber.junit; import io.cucumber.core.exception.CucumberException; import java.lang.annotation.Annotation; import java.lang.reflect.Method; final class Assertions { private Assertions() { } static void assertNoCucumberAnnotatedMethods(Class clazz) { for (Method method : clazz.getDeclaredMethods()) { for (Annotation annotation : method.getAnnotations()) { if (annotation.annotationType().getName().startsWith("io.cucumber")) { throw new CucumberException( "\n\n" + "Classes annotated with @RunWith(Cucumber.class) must not define any\n" + "Step Definition or Hook methods. Their sole purpose is to serve as\n" + "an entry point for JUnit. Step Definitions and Hooks should be defined\n" + "in their own classes. This allows them to be reused across features.\n" + "Offending class: " + clazz + "\n" ); } } } } }
Remove cucumber.api glue annotation check
[JUnit] Remove cucumber.api glue annotation check
Java
mit
cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm,cucumber/cucumber-jvm
java
## Code Before: package io.cucumber.junit; import io.cucumber.core.exception.CucumberException; import java.lang.annotation.Annotation; import java.lang.reflect.Method; final class Assertions { private Assertions() { } static void assertNoCucumberAnnotatedMethods(Class clazz) { for (Method method : clazz.getDeclaredMethods()) { for (Annotation annotation : method.getAnnotations()) { if (annotation.annotationType().getName().startsWith("cucumber") //TODO: Remove once migrated || annotation.annotationType().getName().startsWith("io.cucumber")) { throw new CucumberException( "\n\n" + "Classes annotated with @RunWith(Cucumber.class) must not define any\n" + "Step Definition or Hook methods. Their sole purpose is to serve as\n" + "an entry point for JUnit. Step Definitions and Hooks should be defined\n" + "in their own classes. This allows them to be reused across features.\n" + "Offending class: " + clazz + "\n" ); } } } } } ## Instruction: [JUnit] Remove cucumber.api glue annotation check ## Code After: package io.cucumber.junit; import io.cucumber.core.exception.CucumberException; import java.lang.annotation.Annotation; import java.lang.reflect.Method; final class Assertions { private Assertions() { } static void assertNoCucumberAnnotatedMethods(Class clazz) { for (Method method : clazz.getDeclaredMethods()) { for (Annotation annotation : method.getAnnotations()) { if (annotation.annotationType().getName().startsWith("io.cucumber")) { throw new CucumberException( "\n\n" + "Classes annotated with @RunWith(Cucumber.class) must not define any\n" + "Step Definition or Hook methods. Their sole purpose is to serve as\n" + "an entry point for JUnit. Step Definitions and Hooks should be defined\n" + "in their own classes. This allows them to be reused across features.\n" + "Offending class: " + clazz + "\n" ); } } } } }
package io.cucumber.junit; import io.cucumber.core.exception.CucumberException; import java.lang.annotation.Annotation; import java.lang.reflect.Method; final class Assertions { private Assertions() { } static void assertNoCucumberAnnotatedMethods(Class clazz) { for (Method method : clazz.getDeclaredMethods()) { for (Annotation annotation : method.getAnnotations()) { - if (annotation.annotationType().getName().startsWith("cucumber") //TODO: Remove once migrated - || annotation.annotationType().getName().startsWith("io.cucumber")) { ? ^^^ + if (annotation.annotationType().getName().startsWith("io.cucumber")) { ? ++ ^ throw new CucumberException( "\n\n" + "Classes annotated with @RunWith(Cucumber.class) must not define any\n" + "Step Definition or Hook methods. Their sole purpose is to serve as\n" + "an entry point for JUnit. Step Definitions and Hooks should be defined\n" + "in their own classes. This allows them to be reused across features.\n" + "Offending class: " + clazz + "\n" ); } } } } }
3
0.103448
1
2
878c511d8213e1a15e9619d0894d9a8d416d2914
spec/spec_helper.rb
spec/spec_helper.rb
require 'uglifier' require 'rspec' require 'source_map' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| end
require 'uglifier' require 'rspec' require 'source_map' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_with :rspec do |configuration| configuration.syntax = :expect end config.expect_with :rspec do |c| c.syntax = :expect end end
Enforce use of expect syntax
Enforce use of expect syntax
Ruby
mit
lautis/uglifier,lautis/uglifier
ruby
## Code Before: require 'uglifier' require 'rspec' require 'source_map' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| end ## Instruction: Enforce use of expect syntax ## Code After: require 'uglifier' require 'rspec' require 'source_map' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_with :rspec do |configuration| configuration.syntax = :expect end config.expect_with :rspec do |c| c.syntax = :expect end end
require 'uglifier' require 'rspec' require 'source_map' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| - + config.mock_with :rspec do |configuration| + configuration.syntax = :expect + end + config.expect_with :rspec do |c| + c.syntax = :expect + end end
7
0.636364
6
1
137f4a0022b443b4e8ddaebda6b10f894cec93e9
spec/requests/default_namespace_spec.rb
spec/requests/default_namespace_spec.rb
require 'rails_helper' RSpec.describe ActiveAdmin::Application, type: :request do include Rails.application.routes.url_helpers [false, nil].each do |value| describe "with a #{value} default namespace" do around do |example| with_custom_default_namespace(value) { example.call } end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/login" end end end describe "with a test default namespace" do around do |example| with_custom_default_namespace(:test) { example.call } end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/test/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/test/login" end end private def with_custom_default_namespace(namespace) application = ActiveAdmin::Application.new application.default_namespace = namespace with_temp_application(application) { yield } end end
require 'rails_helper' RSpec.describe ActiveAdmin::Application, type: :request do include Rails.application.routes.url_helpers let(:resource) { ActiveAdmin.register Category } [false, nil].each do |value| describe "with a #{value} default namespace" do around do |example| with_custom_default_namespace(value) { example.call } end it "should generate resource paths" do expect(resource.route_collection_path).to eq "/categories" end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/login" end end end describe "with a test default namespace" do around do |example| with_custom_default_namespace(:test) { example.call } end it "should generate resource paths" do expect(resource.route_collection_path).to eq "/test/categories" end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/test/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/test/login" end end private def with_custom_default_namespace(namespace) application = ActiveAdmin::Application.new application.default_namespace = namespace with_temp_application(application) { yield } end end
Add some resource route specs to default namespace
Add some resource route specs to default namespace
Ruby
mit
cmunozgar/activeadmin,javierjulio/activeadmin,wspurgin/activeadmin,siutin/activeadmin,siutin/activeadmin,SoftSwiss/active_admin,deivid-rodriguez/activeadmin,mauriciopasquier/active_admin,gogovan/activeadmin,gogovan/activeadmin,varyonic/activeadmin,maysam/activeadmin,mauriciopasquier/active_admin,SoftSwiss/active_admin,vraravam/activeadmin,varyonic/activeadmin,waymondo/active_admin,vraravam/activeadmin,wspurgin/activeadmin,cmunozgar/activeadmin,waymondo/active_admin,mrjman/activeadmin,vraravam/activeadmin,mauriciopasquier/active_admin,deivid-rodriguez/activeadmin,mrjman/activeadmin,javierjulio/activeadmin,activeadmin/activeadmin,mrjman/activeadmin,maysam/activeadmin,vytenis-s/activeadmin,siutin/activeadmin,vytenis-s/activeadmin,wspurgin/activeadmin,javierjulio/activeadmin,deivid-rodriguez/activeadmin,gogovan/activeadmin,activeadmin/activeadmin,activeadmin/activeadmin,varyonic/activeadmin,waymondo/active_admin,cmunozgar/activeadmin,vytenis-s/activeadmin,maysam/activeadmin,SoftSwiss/active_admin
ruby
## Code Before: require 'rails_helper' RSpec.describe ActiveAdmin::Application, type: :request do include Rails.application.routes.url_helpers [false, nil].each do |value| describe "with a #{value} default namespace" do around do |example| with_custom_default_namespace(value) { example.call } end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/login" end end end describe "with a test default namespace" do around do |example| with_custom_default_namespace(:test) { example.call } end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/test/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/test/login" end end private def with_custom_default_namespace(namespace) application = ActiveAdmin::Application.new application.default_namespace = namespace with_temp_application(application) { yield } end end ## Instruction: Add some resource route specs to default namespace ## Code After: require 'rails_helper' RSpec.describe ActiveAdmin::Application, type: :request do include Rails.application.routes.url_helpers let(:resource) { ActiveAdmin.register Category } [false, nil].each do |value| describe "with a #{value} default namespace" do around do |example| with_custom_default_namespace(value) { example.call } end it "should generate resource paths" do expect(resource.route_collection_path).to eq "/categories" end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/login" end end end describe "with a test default namespace" do around do |example| with_custom_default_namespace(:test) { example.call } end it "should generate resource paths" do expect(resource.route_collection_path).to eq "/test/categories" end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/test/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/test/login" end end private def with_custom_default_namespace(namespace) application = ActiveAdmin::Application.new application.default_namespace = namespace with_temp_application(application) { yield } end end
require 'rails_helper' RSpec.describe ActiveAdmin::Application, type: :request do include Rails.application.routes.url_helpers + + let(:resource) { ActiveAdmin.register Category } [false, nil].each do |value| describe "with a #{value} default namespace" do around do |example| with_custom_default_namespace(value) { example.call } + end + + it "should generate resource paths" do + expect(resource.route_collection_path).to eq "/categories" end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/login" end end end describe "with a test default namespace" do around do |example| with_custom_default_namespace(:test) { example.call } + end + + it "should generate resource paths" do + expect(resource.route_collection_path).to eq "/test/categories" end it "should generate a log out path" do expect(destroy_admin_user_session_path).to eq "/test/logout" end it "should generate a log in path" do expect(new_admin_user_session_path).to eq "/test/login" end end private def with_custom_default_namespace(namespace) application = ActiveAdmin::Application.new application.default_namespace = namespace with_temp_application(application) { yield } end end
10
0.196078
10
0
26d2e74c93036962aa266fc1484e77d47d36a446
rnacentral/portal/migrations/0010_add_precomputed_rna_type.py
rnacentral/portal/migrations/0010_add_precomputed_rna_type.py
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('portal', '0009_add_precomputed_rna_table'), ] operations = [ migrations.AddField("RnaPrecomputed", "rna_type", models.CharField(max_length=250)) ]
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('portal', '0009_add_precomputed_rna_table'), ] operations = [ # rna_type is a / seperated field that represents the set of rna_types # for a given sequence. migrations.AddField("RnaPrecomputed", "rna_type", models.CharField(max_length=250)) ]
Add a doc to the migration
Add a doc to the migration This should probably be encoded better somehow.
Python
apache-2.0
RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode
python
## Code Before: from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('portal', '0009_add_precomputed_rna_table'), ] operations = [ migrations.AddField("RnaPrecomputed", "rna_type", models.CharField(max_length=250)) ] ## Instruction: Add a doc to the migration This should probably be encoded better somehow. ## Code After: from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('portal', '0009_add_precomputed_rna_table'), ] operations = [ # rna_type is a / seperated field that represents the set of rna_types # for a given sequence. migrations.AddField("RnaPrecomputed", "rna_type", models.CharField(max_length=250)) ]
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('portal', '0009_add_precomputed_rna_table'), ] operations = [ + # rna_type is a / seperated field that represents the set of rna_types + # for a given sequence. migrations.AddField("RnaPrecomputed", "rna_type", models.CharField(max_length=250)) ]
2
0.142857
2
0
412f993c0533ddd4d971db9229e47ba84fa9fc2d
.circleci/config.yml
.circleci/config.yml
version: 2.1 jobs: test_8: environment: GRADLE_OPTS: "-Dorg.gradle.workers.max=2" docker: - image: cimg/openjdk:8.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - store_test_results: path: build/test-results/test test_11: docker: - image: cimg/openjdk:11.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew spotlessCheck command: ./gradlew spotlessCheck - run: name: gradlew javadoc command: ./gradlew javadoc - store_test_results: path: build/test-results/test workflows: version: 2 workflow: jobs: - test_8 - test_11
version: 2.1 jobs: test_8: environment: GRADLE_OPTS: "-Dorg.gradle.workers.max=2" docker: - image: cimg/openjdk:8.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew javadoc command: ./gradlew javadoc - store_test_results: path: build/test-results/test test_11: docker: - image: cimg/openjdk:11.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew spotlessCheck command: ./gradlew spotlessCheck - store_test_results: path: build/test-results/test workflows: version: 2 workflow: jobs: - test_8 - test_11
Check javadoc on JRE 8.
Check javadoc on JRE 8.
YAML
apache-2.0
diffplug/goomph
yaml
## Code Before: version: 2.1 jobs: test_8: environment: GRADLE_OPTS: "-Dorg.gradle.workers.max=2" docker: - image: cimg/openjdk:8.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - store_test_results: path: build/test-results/test test_11: docker: - image: cimg/openjdk:11.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew spotlessCheck command: ./gradlew spotlessCheck - run: name: gradlew javadoc command: ./gradlew javadoc - store_test_results: path: build/test-results/test workflows: version: 2 workflow: jobs: - test_8 - test_11 ## Instruction: Check javadoc on JRE 8. ## Code After: version: 2.1 jobs: test_8: environment: GRADLE_OPTS: "-Dorg.gradle.workers.max=2" docker: - image: cimg/openjdk:8.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew javadoc command: ./gradlew javadoc - store_test_results: path: build/test-results/test test_11: docker: - image: cimg/openjdk:11.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew spotlessCheck command: ./gradlew spotlessCheck - store_test_results: path: build/test-results/test workflows: version: 2 workflow: jobs: - test_8 - test_11
version: 2.1 jobs: test_8: environment: GRADLE_OPTS: "-Dorg.gradle.workers.max=2" docker: - image: cimg/openjdk:8.0 steps: - checkout - run: name: gradlew test command: ./gradlew test + - run: + name: gradlew javadoc + command: ./gradlew javadoc - store_test_results: path: build/test-results/test test_11: docker: - image: cimg/openjdk:11.0 steps: - checkout - run: name: gradlew test command: ./gradlew test - run: name: gradlew spotlessCheck command: ./gradlew spotlessCheck - - run: - name: gradlew javadoc - command: ./gradlew javadoc - store_test_results: path: build/test-results/test workflows: version: 2 workflow: jobs: - test_8 - test_11
6
0.157895
3
3
0654d962918327e5143fb9250ad344de26e284eb
electrumx_server.py
electrumx_server.py
'''Script to kick off the server.''' import logging import traceback from server.env import Env from server.controller import Controller def main(): '''Set up logging and run the server.''' logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)-9s %(message)-100s ' '%(name)s [%(filename)s:%(lineno)d]') logging.info('ElectrumX server starting') try: controller = Controller(Env()) controller.run() except Exception: traceback.print_exc() logging.critical('ElectrumX server terminated abnormally') else: logging.info('ElectrumX server terminated normally') if __name__ == '__main__': main()
'''Script to kick off the server.''' import logging import traceback from server.env import Env from server.controller import Controller def main(): '''Set up logging and run the server.''' logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)-7s %(message)-100s ' '[%(filename)s:%(lineno)d]') logging.info('ElectrumX server starting') try: controller = Controller(Env()) controller.run() except Exception: traceback.print_exc() logging.critical('ElectrumX server terminated abnormally') else: logging.info('ElectrumX server terminated normally') if __name__ == '__main__': main()
Remove logger name from logs
Remove logger name from logs
Python
mit
thelazier/electrumx,shsmith/electrumx,shsmith/electrumx,erasmospunk/electrumx,erasmospunk/electrumx,thelazier/electrumx
python
## Code Before: '''Script to kick off the server.''' import logging import traceback from server.env import Env from server.controller import Controller def main(): '''Set up logging and run the server.''' logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)-9s %(message)-100s ' '%(name)s [%(filename)s:%(lineno)d]') logging.info('ElectrumX server starting') try: controller = Controller(Env()) controller.run() except Exception: traceback.print_exc() logging.critical('ElectrumX server terminated abnormally') else: logging.info('ElectrumX server terminated normally') if __name__ == '__main__': main() ## Instruction: Remove logger name from logs ## Code After: '''Script to kick off the server.''' import logging import traceback from server.env import Env from server.controller import Controller def main(): '''Set up logging and run the server.''' logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)-7s %(message)-100s ' '[%(filename)s:%(lineno)d]') logging.info('ElectrumX server starting') try: controller = Controller(Env()) controller.run() except Exception: traceback.print_exc() logging.critical('ElectrumX server terminated abnormally') else: logging.info('ElectrumX server terminated normally') if __name__ == '__main__': main()
'''Script to kick off the server.''' import logging import traceback from server.env import Env from server.controller import Controller def main(): '''Set up logging and run the server.''' logging.basicConfig(level=logging.INFO, - format='%(asctime)s %(levelname)-9s %(message)-100s ' ? ^ + format='%(asctime)s %(levelname)-7s %(message)-100s ' ? ^ - '%(name)s [%(filename)s:%(lineno)d]') ? --------- + '[%(filename)s:%(lineno)d]') logging.info('ElectrumX server starting') try: controller = Controller(Env()) controller.run() except Exception: traceback.print_exc() logging.critical('ElectrumX server terminated abnormally') else: logging.info('ElectrumX server terminated normally') if __name__ == '__main__': main()
4
0.142857
2
2
5661d8888b1701c2d57b46e141c6e05f399a1d27
README.md
README.md
A text-based interactive game written in [Inform 7](http://inform7.com/). See the playable version on [my website](http://justintennant.me). The project files are under the "Thermolysis_2.inform" directory, release files under "Thermolysis_2.materials" directory.
A text-based interactive game written in [Inform 7](http://inform7.com/). See the playable version on [my website](http://justintennant.me/thermolysis/). The project files are under the "Thermolysis_2.inform" directory, release files under "Thermolysis_2.materials" directory.
Update link to playable version
Update link to playable version
Markdown
artistic-2.0
octop1/thermolysis
markdown
## Code Before: A text-based interactive game written in [Inform 7](http://inform7.com/). See the playable version on [my website](http://justintennant.me). The project files are under the "Thermolysis_2.inform" directory, release files under "Thermolysis_2.materials" directory. ## Instruction: Update link to playable version ## Code After: A text-based interactive game written in [Inform 7](http://inform7.com/). See the playable version on [my website](http://justintennant.me/thermolysis/). The project files are under the "Thermolysis_2.inform" directory, release files under "Thermolysis_2.materials" directory.
A text-based interactive game written in [Inform 7](http://inform7.com/). - See the playable version on [my website](http://justintennant.me). + See the playable version on [my website](http://justintennant.me/thermolysis/). ? +++++++++++++ The project files are under the "Thermolysis_2.inform" directory, release files under "Thermolysis_2.materials" directory.
2
0.4
1
1
9b903b66ed92c4251e3a374fba39fab35305ebc8
src/main/java/org/searchisko/doap/model/Person.java
src/main/java/org/searchisko/doap/model/Person.java
/* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.doap.model; import com.viceversatech.rdfbeans.annotations.RDF; import com.viceversatech.rdfbeans.annotations.RDFBean; import com.viceversatech.rdfbeans.annotations.RDFNamespaces; import java.net.URI; /** * FOAF Person model. * * @author Lukas Vlcek (lvlcek@redhat.com) */ @RDFNamespaces({ "foaf = http://xmlns.com/foaf/0.1/" }) @RDFBean("foaf:Person") public class Person { private String name; private URI mbox; @RDF("foaf:name") public String getName() { return this.name; } public void setName(String name) { this.name = name; } @RDF("foaf:mbox") public URI getMbox() { return this.mbox; } public void setMbox(URI mbox) { this.mbox = mbox; } }
/* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.doap.model; import com.viceversatech.rdfbeans.annotations.RDF; import com.viceversatech.rdfbeans.annotations.RDFBean; import com.viceversatech.rdfbeans.annotations.RDFNamespaces; import java.net.URI; /** * FOAF Person model. * See <a href="http://xmlns.com/foaf/spec/">http://xmlns.com/foaf/spec/</a>. * * @author Lukas Vlcek (lvlcek@redhat.com) */ @RDFNamespaces({ "foaf = http://xmlns.com/foaf/0.1/" }) @RDFBean("foaf:Person") public class Person { private String name; private URI mbox; /** * See <a href="http://xmlns.com/foaf/spec/#term_name">foaf:name</a> * * @return name value */ @RDF("foaf:name") public String getName() { return this.name; } public void setName(String name) { this.name = name; } /** * See <a href="http://xmlns.com/foaf/spec/#term_mbox">foaf:mbox</a> * * @return mbox valueAdd */ @RDF("foaf:mbox") public URI getMbox() { return this.mbox; } public void setMbox(URI mbox) { this.mbox = mbox; } }
Add reference to foaf spec.
Add reference to foaf spec.
Java
apache-2.0
searchisko/doap-parser,searchisko/doap-parser
java
## Code Before: /* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.doap.model; import com.viceversatech.rdfbeans.annotations.RDF; import com.viceversatech.rdfbeans.annotations.RDFBean; import com.viceversatech.rdfbeans.annotations.RDFNamespaces; import java.net.URI; /** * FOAF Person model. * * @author Lukas Vlcek (lvlcek@redhat.com) */ @RDFNamespaces({ "foaf = http://xmlns.com/foaf/0.1/" }) @RDFBean("foaf:Person") public class Person { private String name; private URI mbox; @RDF("foaf:name") public String getName() { return this.name; } public void setName(String name) { this.name = name; } @RDF("foaf:mbox") public URI getMbox() { return this.mbox; } public void setMbox(URI mbox) { this.mbox = mbox; } } ## Instruction: Add reference to foaf spec. ## Code After: /* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.doap.model; import com.viceversatech.rdfbeans.annotations.RDF; import com.viceversatech.rdfbeans.annotations.RDFBean; import com.viceversatech.rdfbeans.annotations.RDFNamespaces; import java.net.URI; /** * FOAF Person model. * See <a href="http://xmlns.com/foaf/spec/">http://xmlns.com/foaf/spec/</a>. * * @author Lukas Vlcek (lvlcek@redhat.com) */ @RDFNamespaces({ "foaf = http://xmlns.com/foaf/0.1/" }) @RDFBean("foaf:Person") public class Person { private String name; private URI mbox; /** * See <a href="http://xmlns.com/foaf/spec/#term_name">foaf:name</a> * * @return name value */ @RDF("foaf:name") public String getName() { return this.name; } public void setName(String name) { this.name = name; } /** * See <a href="http://xmlns.com/foaf/spec/#term_mbox">foaf:mbox</a> * * @return mbox valueAdd */ @RDF("foaf:mbox") public URI getMbox() { return this.mbox; } public void setMbox(URI mbox) { this.mbox = mbox; } }
/* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.doap.model; import com.viceversatech.rdfbeans.annotations.RDF; import com.viceversatech.rdfbeans.annotations.RDFBean; import com.viceversatech.rdfbeans.annotations.RDFNamespaces; import java.net.URI; /** * FOAF Person model. + * See <a href="http://xmlns.com/foaf/spec/">http://xmlns.com/foaf/spec/</a>. * * @author Lukas Vlcek (lvlcek@redhat.com) */ @RDFNamespaces({ - "foaf = http://xmlns.com/foaf/0.1/" + "foaf = http://xmlns.com/foaf/0.1/" ? + }) @RDFBean("foaf:Person") public class Person { private String name; private URI mbox; + /** + * See <a href="http://xmlns.com/foaf/spec/#term_name">foaf:name</a> + * + * @return name value + */ @RDF("foaf:name") public String getName() { return this.name; } public void setName(String name) { this.name = name; } + /** + * See <a href="http://xmlns.com/foaf/spec/#term_mbox">foaf:mbox</a> + * + * @return mbox valueAdd + */ @RDF("foaf:mbox") public URI getMbox() { return this.mbox; } public void setMbox(URI mbox) { this.mbox = mbox; } }
13
0.270833
12
1
dae515ff9df5c7d517f6be8f2526b1baa52f127c
.travis.yml
.travis.yml
language: ruby sudo: false rvm: - 2.1 - 2.2 - ruby-head - jruby - rbx-3 matrix: allow_failures: - rvm: rbx-3 addons: code_climate: repo_token: 2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8 after_success: - bundle exec codeclimate-test-reporter notifications: slack: secure: IfKhtia5nM6KA9nK8jiSkNnVOLN96er6gK5jgjYKFNrVyWAKRUJZ0TB9L+igjUWDq7t+tRvj8yGT2k61xVJgF+ZDlQiWvyazTsgQeqbjieCxCrj/BTGZLyD1hhOLg7vqpyeQvp/34hDahx6XNp6XPvkxeofjc0H6STv2UjJkpQk=
language: ruby sudo: false rvm: - 2.1 - 2.2 - ruby-head - jruby addons: code_climate: repo_token: 2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8 after_success: - bundle exec codeclimate-test-reporter notifications: slack: secure: IfKhtia5nM6KA9nK8jiSkNnVOLN96er6gK5jgjYKFNrVyWAKRUJZ0TB9L+igjUWDq7t+tRvj8yGT2k61xVJgF+ZDlQiWvyazTsgQeqbjieCxCrj/BTGZLyD1hhOLg7vqpyeQvp/34hDahx6XNp6XPvkxeofjc0H6STv2UjJkpQk=
Remove rbx from the test matrix since RVM cannot install it.
Remove rbx from the test matrix since RVM cannot install it.
YAML
mit
trailofbits/ruby-sslyze
yaml
## Code Before: language: ruby sudo: false rvm: - 2.1 - 2.2 - ruby-head - jruby - rbx-3 matrix: allow_failures: - rvm: rbx-3 addons: code_climate: repo_token: 2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8 after_success: - bundle exec codeclimate-test-reporter notifications: slack: secure: IfKhtia5nM6KA9nK8jiSkNnVOLN96er6gK5jgjYKFNrVyWAKRUJZ0TB9L+igjUWDq7t+tRvj8yGT2k61xVJgF+ZDlQiWvyazTsgQeqbjieCxCrj/BTGZLyD1hhOLg7vqpyeQvp/34hDahx6XNp6XPvkxeofjc0H6STv2UjJkpQk= ## Instruction: Remove rbx from the test matrix since RVM cannot install it. ## Code After: language: ruby sudo: false rvm: - 2.1 - 2.2 - ruby-head - jruby addons: code_climate: repo_token: 2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8 after_success: - bundle exec codeclimate-test-reporter notifications: slack: secure: IfKhtia5nM6KA9nK8jiSkNnVOLN96er6gK5jgjYKFNrVyWAKRUJZ0TB9L+igjUWDq7t+tRvj8yGT2k61xVJgF+ZDlQiWvyazTsgQeqbjieCxCrj/BTGZLyD1hhOLg7vqpyeQvp/34hDahx6XNp6XPvkxeofjc0H6STv2UjJkpQk=
language: ruby sudo: false rvm: - 2.1 - 2.2 - ruby-head - jruby - - rbx-3 - matrix: - allow_failures: - - rvm: rbx-3 addons: code_climate: repo_token: 2a03fa37ce5a5cb21bb117a736be5d83dcf9f1c3ea2b248f7af4c0a7b330d8c8 after_success: - bundle exec codeclimate-test-reporter notifications: slack: secure: IfKhtia5nM6KA9nK8jiSkNnVOLN96er6gK5jgjYKFNrVyWAKRUJZ0TB9L+igjUWDq7t+tRvj8yGT2k61xVJgF+ZDlQiWvyazTsgQeqbjieCxCrj/BTGZLyD1hhOLg7vqpyeQvp/34hDahx6XNp6XPvkxeofjc0H6STv2UjJkpQk=
4
0.210526
0
4
2032ac41f0c2bf4a128c99fcbd2d3964c6342f54
requirements.txt
requirements.txt
amqp backports.functools_lru_cache enum34 psycopg2 retrying solrpy sqlalchemy -e git+https://bitbucket.org/lalinsky/mbdata.git#egg=mbdata -e git+https://github.com/mineo/mb-rngpy.git#egg=mbrng
amqp backports.functools_lru_cache enum34 psycopg2 retrying solrpy sqlalchemy mbdata==2015.01.10 -e git+https://github.com/mineo/mb-rngpy.git#egg=mbrng
Switch back to the official mbdata
Switch back to the official mbdata
Text
mit
jeffweeksio/sir
text
## Code Before: amqp backports.functools_lru_cache enum34 psycopg2 retrying solrpy sqlalchemy -e git+https://bitbucket.org/lalinsky/mbdata.git#egg=mbdata -e git+https://github.com/mineo/mb-rngpy.git#egg=mbrng ## Instruction: Switch back to the official mbdata ## Code After: amqp backports.functools_lru_cache enum34 psycopg2 retrying solrpy sqlalchemy mbdata==2015.01.10 -e git+https://github.com/mineo/mb-rngpy.git#egg=mbrng
amqp backports.functools_lru_cache enum34 psycopg2 retrying solrpy sqlalchemy - -e git+https://bitbucket.org/lalinsky/mbdata.git#egg=mbdata + mbdata==2015.01.10 -e git+https://github.com/mineo/mb-rngpy.git#egg=mbrng
2
0.222222
1
1
790d84e24b6ccd492c540b6855da9bf1cd85c706
.travis.yml
.travis.yml
language: ruby sudo: false cache: bundler bundler_args: --without development branches: only: - master rvm: - jruby-9.1.6.0 # latest stable - 2.2.2 - 2.3.3 - 2.4.0 env: global: - JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" matrix: - NIO4R_PURE=false - NIO4R_PURE=true matrix: fast_finish: true allow_failures: - rvm: jruby-9.1.6.0 env: NIO4R_PURE=true notifications: irc: "irc.freenode.org#celluloid"
language: ruby sudo: false cache: bundler bundler_args: --without development branches: only: - master rvm: - jruby-9.1.6.0 # latest stable - 2.2.2 - 2.3.3 - 2.4.0 env: global: - JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" matrix: - NIO4R_PURE=false - NIO4R_PURE=true matrix: fast_finish: true notifications: irc: "irc.freenode.org#celluloid"
Remove JRuby w\ NIO4R_PURE as an allowed failure on Travis
Remove JRuby w\ NIO4R_PURE as an allowed failure on Travis It seems to be passing reliably now
YAML
mit
celluloid/nio4r,celluloid/nio4r,celluloid/nio4r
yaml
## Code Before: language: ruby sudo: false cache: bundler bundler_args: --without development branches: only: - master rvm: - jruby-9.1.6.0 # latest stable - 2.2.2 - 2.3.3 - 2.4.0 env: global: - JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" matrix: - NIO4R_PURE=false - NIO4R_PURE=true matrix: fast_finish: true allow_failures: - rvm: jruby-9.1.6.0 env: NIO4R_PURE=true notifications: irc: "irc.freenode.org#celluloid" ## Instruction: Remove JRuby w\ NIO4R_PURE as an allowed failure on Travis It seems to be passing reliably now ## Code After: language: ruby sudo: false cache: bundler bundler_args: --without development branches: only: - master rvm: - jruby-9.1.6.0 # latest stable - 2.2.2 - 2.3.3 - 2.4.0 env: global: - JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" matrix: - NIO4R_PURE=false - NIO4R_PURE=true matrix: fast_finish: true notifications: irc: "irc.freenode.org#celluloid"
language: ruby sudo: false cache: bundler bundler_args: --without development branches: only: - master rvm: - jruby-9.1.6.0 # latest stable - 2.2.2 - 2.3.3 - 2.4.0 env: global: - JRUBY_OPTS="--dev -J-Djruby.launch.inproc=true -J-Xmx1024M" matrix: - NIO4R_PURE=false - NIO4R_PURE=true matrix: fast_finish: true - allow_failures: - - rvm: jruby-9.1.6.0 - env: NIO4R_PURE=true notifications: irc: "irc.freenode.org#celluloid"
3
0.096774
0
3
d809cc86698dca1fff91760fb910d8a84b171f10
BaseApiBundle/Tests/Transformer/TransformerTestCase.php
BaseApiBundle/Tests/Transformer/TransformerTestCase.php
<?php namespace OpenOrchestra\BaseApi\Tests\Transformer; use Phake; /** * Test TransformerTestCase */ abstract class TransformerTestCase extends \PHPUnit_Framework_TestCase { /** * @var \Phake_IMock */ protected $transformerManager; /** * @var \Phake_IMock */ protected $router; /** * @var \Phake_IMock */ protected $groupContext; /** * {@inheritdoc} */ protected function setUp() { $this->router = Phake::mock('Symfony\Component\Routing\RouterInterface'); $this->groupContext = Phake::mock('OpenOrchestra\BaseApi\Context\GroupContext'); $this->transformerManager = Phake::mock('OpenOrchestra\BaseApi\Transformer\TransformerManager'); Phake::when($this->router) ->generate ->thenReturn('route'); Phake::when($this->transformerManager) ->getRouter() ->thenReturn($this->router); Phake::when($this->transformerManager) ->getGroupContext() ->thenReturn($this->groupContext); } }
<?php namespace OpenOrchestra\BaseApi\Tests\Transformer; use Phake; /** * Test TransformerTestCase */ abstract class TransformerTestCase extends \PHPUnit_Framework_TestCase { protected $transformerManager; protected $router; protected $groupContext; /** * {@inheritdoc} */ protected function setUp() { $this->router = Phake::mock('Symfony\Component\Routing\RouterInterface'); $this->groupContext = Phake::mock('OpenOrchestra\BaseApi\Context\GroupContext'); $this->transformerManager = Phake::mock('OpenOrchestra\BaseApi\Transformer\TransformerManager'); Phake::when($this->router) ->generate(Phake::anyParameters()) ->thenReturn('route'); Phake::when($this->transformerManager) ->getRouter() ->thenReturn($this->router); Phake::when($this->transformerManager) ->getGroupContext() ->thenReturn($this->groupContext); } }
Remove useless phpdoc and use long syntax for wildcard parameters
Remove useless phpdoc and use long syntax for wildcard parameters
PHP
apache-2.0
open-orchestra/open-orchestra-base-api-mongo-model-bundle,open-orchestra/open-orchestra-base-api-bundle,open-orchestra/open-orchestra-base-api-bundle
php
## Code Before: <?php namespace OpenOrchestra\BaseApi\Tests\Transformer; use Phake; /** * Test TransformerTestCase */ abstract class TransformerTestCase extends \PHPUnit_Framework_TestCase { /** * @var \Phake_IMock */ protected $transformerManager; /** * @var \Phake_IMock */ protected $router; /** * @var \Phake_IMock */ protected $groupContext; /** * {@inheritdoc} */ protected function setUp() { $this->router = Phake::mock('Symfony\Component\Routing\RouterInterface'); $this->groupContext = Phake::mock('OpenOrchestra\BaseApi\Context\GroupContext'); $this->transformerManager = Phake::mock('OpenOrchestra\BaseApi\Transformer\TransformerManager'); Phake::when($this->router) ->generate ->thenReturn('route'); Phake::when($this->transformerManager) ->getRouter() ->thenReturn($this->router); Phake::when($this->transformerManager) ->getGroupContext() ->thenReturn($this->groupContext); } } ## Instruction: Remove useless phpdoc and use long syntax for wildcard parameters ## Code After: <?php namespace OpenOrchestra\BaseApi\Tests\Transformer; use Phake; /** * Test TransformerTestCase */ abstract class TransformerTestCase extends \PHPUnit_Framework_TestCase { protected $transformerManager; protected $router; protected $groupContext; /** * {@inheritdoc} */ protected function setUp() { $this->router = Phake::mock('Symfony\Component\Routing\RouterInterface'); $this->groupContext = Phake::mock('OpenOrchestra\BaseApi\Context\GroupContext'); $this->transformerManager = Phake::mock('OpenOrchestra\BaseApi\Transformer\TransformerManager'); Phake::when($this->router) ->generate(Phake::anyParameters()) ->thenReturn('route'); Phake::when($this->transformerManager) ->getRouter() ->thenReturn($this->router); Phake::when($this->transformerManager) ->getGroupContext() ->thenReturn($this->groupContext); } }
<?php namespace OpenOrchestra\BaseApi\Tests\Transformer; use Phake; /** * Test TransformerTestCase */ abstract class TransformerTestCase extends \PHPUnit_Framework_TestCase { - /** - * @var \Phake_IMock - */ protected $transformerManager; - /** - * @var \Phake_IMock - */ protected $router; - /** - * @var \Phake_IMock - */ protected $groupContext; /** * {@inheritdoc} */ protected function setUp() { $this->router = Phake::mock('Symfony\Component\Routing\RouterInterface'); $this->groupContext = Phake::mock('OpenOrchestra\BaseApi\Context\GroupContext'); $this->transformerManager = Phake::mock('OpenOrchestra\BaseApi\Transformer\TransformerManager'); Phake::when($this->router) - ->generate + ->generate(Phake::anyParameters()) - ->thenReturn('route'); + ->thenReturn('route'); ? + Phake::when($this->transformerManager) - ->getRouter() + ->getRouter() ? + - ->thenReturn($this->router); + ->thenReturn($this->router); ? + Phake::when($this->transformerManager) - ->getGroupContext() + ->getGroupContext() ? + - ->thenReturn($this->groupContext); + ->thenReturn($this->groupContext); ? + } }
21
0.4375
6
15
a50cf1d33f77f43ad8121baf490ac33507c159aa
.eslintrc.yaml
.eslintrc.yaml
parser: babel-eslint extends: airbnb/base plugins: - flowtype rules: eqeqeq: - error - allow-null no-unused-expressions: - error - allowShortCircuit: true no-use-before-define: off no-multi-spaces: - warn - exceptions: VariableDeclarator: true ImportDeclaration: true no-nested-ternary: off no-cond-assign: - error - except-parens key-spacing: - warn - beforeColon: false afterColon: true mode: 'minimum' react/sort-comp: off
parser: babel-eslint extends: airbnb/base plugins: - flowtype rules: eqeqeq: - error - allow-null no-unused-expressions: - error - allowShortCircuit: true no-use-before-define: off no-multi-spaces: off no-nested-ternary: off no-cond-assign: - error - except-parens key-spacing: - warn - beforeColon: false afterColon: true mode: 'minimum' react/sort-comp: off
Align lint config to other libs
Align lint config to other libs
YAML
mit
guigrpa/timm,guigrpa/timm
yaml
## Code Before: parser: babel-eslint extends: airbnb/base plugins: - flowtype rules: eqeqeq: - error - allow-null no-unused-expressions: - error - allowShortCircuit: true no-use-before-define: off no-multi-spaces: - warn - exceptions: VariableDeclarator: true ImportDeclaration: true no-nested-ternary: off no-cond-assign: - error - except-parens key-spacing: - warn - beforeColon: false afterColon: true mode: 'minimum' react/sort-comp: off ## Instruction: Align lint config to other libs ## Code After: parser: babel-eslint extends: airbnb/base plugins: - flowtype rules: eqeqeq: - error - allow-null no-unused-expressions: - error - allowShortCircuit: true no-use-before-define: off no-multi-spaces: off no-nested-ternary: off no-cond-assign: - error - except-parens key-spacing: - warn - beforeColon: false afterColon: true mode: 'minimum' react/sort-comp: off
parser: babel-eslint extends: airbnb/base plugins: - flowtype rules: eqeqeq: - error - allow-null no-unused-expressions: - error - allowShortCircuit: true no-use-before-define: off - no-multi-spaces: + no-multi-spaces: off ? ++++ - - warn - - exceptions: - VariableDeclarator: true - ImportDeclaration: true no-nested-ternary: off no-cond-assign: - error - except-parens key-spacing: - warn - beforeColon: false afterColon: true mode: 'minimum' react/sort-comp: off
6
0.214286
1
5
d494a142c0dd49d0539437bee92256319cb7902b
lib/smart_answer_flows/coronavirus-employee-risk-assessment/questions/are_you_vulnerable.govspeak.erb
lib/smart_answer_flows/coronavirus-employee-risk-assessment/questions/are_you_vulnerable.govspeak.erb
<% render_content_for :title do %> Are you clinically vulnerable? <% end %> <% render_content_for :body do %> You are clinically vulnerable if you are aged 70 or older (regardless of medical condition), pregnant, or under 70 with an underlying health condition listed below: - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis - chronic heart disease, such as heart failure - chronic kidney disease - chronic liver disease, such as hepatitis - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy - diabetes - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets - seriously overweight (a body mass index (BMI) of 40 or above) <% end %> <% options( "yes": "Yes", "no": "No", ) %>
<% render_content_for :title do %> Are you clinically vulnerable? <% end %> <% render_content_for :body do %> You are clinically vulnerable if you are: - aged 70 or older (regardless of medical condition) - pregnant If you are under 70, you are also clinically vulnerable if you have an underlying health condition listed below: - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis - chronic heart disease, such as heart failure - chronic kidney disease - chronic liver disease, such as hepatitis - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy - diabetes - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets - seriously overweight (a body mass index (BMI) of 40 or above) <% end %> <% options( "yes": "Yes", "no": "No", ) %>
Update content for the Coronavirus employee risk assessment flow
Update content for the Coronavirus employee risk assessment flow This makes the question about whether you are clinically vulnerable more easy to understand.
HTML+ERB
mit
alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers
html+erb
## Code Before: <% render_content_for :title do %> Are you clinically vulnerable? <% end %> <% render_content_for :body do %> You are clinically vulnerable if you are aged 70 or older (regardless of medical condition), pregnant, or under 70 with an underlying health condition listed below: - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis - chronic heart disease, such as heart failure - chronic kidney disease - chronic liver disease, such as hepatitis - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy - diabetes - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets - seriously overweight (a body mass index (BMI) of 40 or above) <% end %> <% options( "yes": "Yes", "no": "No", ) %> ## Instruction: Update content for the Coronavirus employee risk assessment flow This makes the question about whether you are clinically vulnerable more easy to understand. ## Code After: <% render_content_for :title do %> Are you clinically vulnerable? <% end %> <% render_content_for :body do %> You are clinically vulnerable if you are: - aged 70 or older (regardless of medical condition) - pregnant If you are under 70, you are also clinically vulnerable if you have an underlying health condition listed below: - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis - chronic heart disease, such as heart failure - chronic kidney disease - chronic liver disease, such as hepatitis - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy - diabetes - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets - seriously overweight (a body mass index (BMI) of 40 or above) <% end %> <% options( "yes": "Yes", "no": "No", ) %>
<% render_content_for :title do %> Are you clinically vulnerable? <% end %> <% render_content_for :body do %> - You are clinically vulnerable if you are aged 70 or older (regardless of medical condition), pregnant, or under 70 with an underlying health condition listed below: + You are clinically vulnerable if you are: + + - aged 70 or older (regardless of medical condition) + - pregnant + + If you are under 70, you are also clinically vulnerable if you have an underlying health condition listed below: - chronic (long-term) mild to moderate respiratory diseases, such as asthma, chronic obstructive pulmonary disease (COPD), emphysema or bronchitis - chronic heart disease, such as heart failure - chronic kidney disease - chronic liver disease, such as hepatitis - chronic neurological conditions, such as Parkinson’s disease, motor neurone disease, multiple sclerosis (MS), or cerebral palsy - diabetes - a weakened immune system as the result of certain conditions, treatments like chemotherapy, or medicines such as steroid tablets - seriously overweight (a body mass index (BMI) of 40 or above) <% end %> <% options( "yes": "Yes", "no": "No", ) %>
7
0.318182
6
1
b2e639cf10840f7f423406a100ea9ef52e45b6f6
cmd/mangadownloader.go
cmd/mangadownloader.go
package main import ( "fmt" "github.com/pierrre/mangadownloader" ) func main() { var service mangadownloader.Service = &mangadownloader.MangaReaderService{} mangas, err := service.Mangas() if err != nil { panic(err) } for _, manga := range mangas { fmt.Println(manga) chapters, err := manga.Chapters() if err != nil { panic(err) } for _, chapter := range chapters { fmt.Println(chapter) } } }
package main import ( "fmt" "github.com/pierrre/mangadownloader" ) func main() { var service mangadownloader.Service = &mangadownloader.MangaReaderService{} mangas, err := service.Mangas() if err != nil { panic(err) } for _, manga := range mangas { fmt.Println(manga) chapters, err := manga.Chapters() if err != nil { panic(err) } for _, chapter := range chapters { fmt.Println(" " + fmt.Sprint(chapter)) } } }
Add formatting in test command
Add formatting in test command
Go
mit
pierrre/mangadownloader
go
## Code Before: package main import ( "fmt" "github.com/pierrre/mangadownloader" ) func main() { var service mangadownloader.Service = &mangadownloader.MangaReaderService{} mangas, err := service.Mangas() if err != nil { panic(err) } for _, manga := range mangas { fmt.Println(manga) chapters, err := manga.Chapters() if err != nil { panic(err) } for _, chapter := range chapters { fmt.Println(chapter) } } } ## Instruction: Add formatting in test command ## Code After: package main import ( "fmt" "github.com/pierrre/mangadownloader" ) func main() { var service mangadownloader.Service = &mangadownloader.MangaReaderService{} mangas, err := service.Mangas() if err != nil { panic(err) } for _, manga := range mangas { fmt.Println(manga) chapters, err := manga.Chapters() if err != nil { panic(err) } for _, chapter := range chapters { fmt.Println(" " + fmt.Sprint(chapter)) } } }
package main import ( "fmt" "github.com/pierrre/mangadownloader" ) func main() { var service mangadownloader.Service = &mangadownloader.MangaReaderService{} mangas, err := service.Mangas() if err != nil { panic(err) } for _, manga := range mangas { fmt.Println(manga) chapters, err := manga.Chapters() if err != nil { panic(err) } for _, chapter := range chapters { - fmt.Println(chapter) + fmt.Println(" " + fmt.Sprint(chapter)) } } }
2
0.083333
1
1
d75076e3ebcaf016ec4af5bac50bd0276678fb2d
package.json
package.json
{ "name": "paper", "version": "0.9.22", "description": "The Swiss Army Knife of Vector Graphics Scripting", "license": "MIT", "homepage": "http://paperjs.org", "repository": { "type": "git", "url": "git://github.com/paperjs/paper.js" }, "contributors": [ "Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)", "Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)" ], "main": "dist/paper-node.js", "files": [ "AUTHORS.md", "dist/paper-node.js", "examples/Node.js", "LICENSE.txt", "README.md" ], "engines": { "node": ">= 0.4.0" }, "dependencies": { "canvas": ">= 0.7.0", "jsdom": "3.1.2", "request": "~2.27.0" }, "devDependencies": { "uglify-js": "~2.3.6", "prepro": "~0.8.3", "grunt": "~0.4.1", "grunt-contrib-uglify": "~0.2.2" }, "keywords": [ "vector", "graphic", "graphics", "2d", "geometry", "bezier", "curve", "curves", "path", "paths", "canvas", "svg", "paper", "paper.js" ] }
{ "name": "paper", "version": "0.9.22", "description": "The Swiss Army Knife of Vector Graphics Scripting", "license": "MIT", "homepage": "http://paperjs.org", "repository": { "type": "git", "url": "git://github.com/paperjs/paper.js" }, "contributors": [ "Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)", "Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)" ], "main": "dist/paper-node.js", "files": [ "AUTHORS.md", "dist/paper-node.js", "examples/Node.js", "LICENSE.txt", "README.md" ], "engines": { "node": ">= 0.4.0" }, "dependencies": { "canvas": ">= 0.7.0", "jsdom": "3.1.2", "request": "~2.27.0" }, "devDependencies": { "uglify-js": "~2.4.16", "prepro": "~0.8.3" }, "keywords": [ "vector", "graphic", "graphics", "2d", "geometry", "bezier", "curve", "curves", "path", "paths", "canvas", "svg", "paper", "paper.js" ] }
Remove grunt dependencies, and bump uglify-js
Remove grunt dependencies, and bump uglify-js
JSON
mit
ClaireRutkoske/paper.js,mcanthony/paper.js,EskenderDev/paper.js,mcanthony/paper.js,legendvijay/paper.js,nancymark/paper.js,legendvijay/paper.js,superjudge/paper.js,Olegas/paper.js,nancymark/paper.js,byte-foundry/paper.js,EskenderDev/paper.js,superjudge/paper.js,li0t/paper.js,ClaireRutkoske/paper.js,superjudge/paper.js,proofme/paper.js,fredoche/paper.js,luisbrito/paper.js,byte-foundry/paper.js,legendvijay/paper.js,ClaireRutkoske/paper.js,rgordeev/paper.js,byte-foundry/paper.js,JunaidPaul/paper.js,baiyanghese/paper.js,li0t/paper.js,proofme/paper.js,rgordeev/paper.js,Olegas/paper.js,iconexperience/paper.js,chad-autry/paper.js,proofme/paper.js,lehni/paper.js,li0t/paper.js,fredoche/paper.js,iconexperience/paper.js,luisbrito/paper.js,rgordeev/paper.js,luisbrito/paper.js,fredoche/paper.js,JunaidPaul/paper.js,lehni/paper.js,baiyanghese/paper.js,JunaidPaul/paper.js,iconexperience/paper.js,lehni/paper.js,EskenderDev/paper.js,nancymark/paper.js,mcanthony/paper.js,baiyanghese/paper.js,Olegas/paper.js
json
## Code Before: { "name": "paper", "version": "0.9.22", "description": "The Swiss Army Knife of Vector Graphics Scripting", "license": "MIT", "homepage": "http://paperjs.org", "repository": { "type": "git", "url": "git://github.com/paperjs/paper.js" }, "contributors": [ "Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)", "Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)" ], "main": "dist/paper-node.js", "files": [ "AUTHORS.md", "dist/paper-node.js", "examples/Node.js", "LICENSE.txt", "README.md" ], "engines": { "node": ">= 0.4.0" }, "dependencies": { "canvas": ">= 0.7.0", "jsdom": "3.1.2", "request": "~2.27.0" }, "devDependencies": { "uglify-js": "~2.3.6", "prepro": "~0.8.3", "grunt": "~0.4.1", "grunt-contrib-uglify": "~0.2.2" }, "keywords": [ "vector", "graphic", "graphics", "2d", "geometry", "bezier", "curve", "curves", "path", "paths", "canvas", "svg", "paper", "paper.js" ] } ## Instruction: Remove grunt dependencies, and bump uglify-js ## Code After: { "name": "paper", "version": "0.9.22", "description": "The Swiss Army Knife of Vector Graphics Scripting", "license": "MIT", "homepage": "http://paperjs.org", "repository": { "type": "git", "url": "git://github.com/paperjs/paper.js" }, "contributors": [ "Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)", "Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)" ], "main": "dist/paper-node.js", "files": [ "AUTHORS.md", "dist/paper-node.js", "examples/Node.js", "LICENSE.txt", "README.md" ], "engines": { "node": ">= 0.4.0" }, "dependencies": { "canvas": ">= 0.7.0", "jsdom": "3.1.2", "request": "~2.27.0" }, "devDependencies": { "uglify-js": "~2.4.16", "prepro": "~0.8.3" }, "keywords": [ "vector", "graphic", "graphics", "2d", "geometry", "bezier", "curve", "curves", "path", "paths", "canvas", "svg", "paper", "paper.js" ] }
{ "name": "paper", "version": "0.9.22", "description": "The Swiss Army Knife of Vector Graphics Scripting", "license": "MIT", "homepage": "http://paperjs.org", "repository": { "type": "git", "url": "git://github.com/paperjs/paper.js" }, "contributors": [ "Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)", "Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)" ], "main": "dist/paper-node.js", "files": [ "AUTHORS.md", "dist/paper-node.js", "examples/Node.js", "LICENSE.txt", "README.md" ], "engines": { "node": ">= 0.4.0" }, "dependencies": { "canvas": ">= 0.7.0", "jsdom": "3.1.2", "request": "~2.27.0" }, "devDependencies": { - "uglify-js": "~2.3.6", ? ^ + "uglify-js": "~2.4.16", ? ^ + - "prepro": "~0.8.3", ? - + "prepro": "~0.8.3" - "grunt": "~0.4.1", - "grunt-contrib-uglify": "~0.2.2" }, "keywords": [ "vector", "graphic", "graphics", "2d", "geometry", "bezier", "curve", "curves", "path", "paths", "canvas", "svg", "paper", "paper.js" ] }
6
0.113208
2
4
5f9f2b6f32866460d0d4b87df5ac6e09d69fc7c8
setup.cfg
setup.cfg
[nosetests] verbosity=0 detailed-errors=1 with-doctest=1 doctest-extension=txt
[nosetests] verbosity=0 detailed-errors=1 with-doctest=1 with-coverage=1 cover-package=networkx
Update nose configuration to include coverage.
Update nose configuration to include coverage.
INI
bsd-3-clause
aureooms/networkx,nathania/networkx,ghdk/networkx,andnovar/networkx,debsankha/networkx,dmoliveira/networkx,debsankha/networkx,nathania/networkx,yashu-seth/networkx,beni55/networkx,kernc/networkx,ltiao/networkx,farhaanbukhsh/networkx,chrisnatali/networkx,cmtm/networkx,blublud/networkx,nathania/networkx,harlowja/networkx,wasade/networkx,chrisnatali/networkx,RMKD/networkx,ionanrozenfeld/networkx,JamesClough/networkx,NvanAdrichem/networkx,jni/networkx,jfinkels/networkx,jakevdp/networkx,goulu/networkx,Sixshaman/networkx,kernc/networkx,blublud/networkx,jakevdp/networkx,ghdk/networkx,aureooms/networkx,RMKD/networkx,SanketDG/networkx,dhimmel/networkx,debsankha/networkx,farhaanbukhsh/networkx,dhimmel/networkx,kernc/networkx,blublud/networkx,jni/networkx,jni/networkx,dmoliveira/networkx,sharifulgeo/networkx,bzero/networkx,ionanrozenfeld/networkx,dhimmel/networkx,harlowja/networkx,harlowja/networkx,bzero/networkx,jakevdp/networkx,dmoliveira/networkx,farhaanbukhsh/networkx,ghdk/networkx,jcurbelo/networkx,sharifulgeo/networkx,OrkoHunter/networkx,aureooms/networkx,bzero/networkx,ionanrozenfeld/networkx,michaelpacer/networkx,tmilicic/networkx,sharifulgeo/networkx,chrisnatali/networkx,RMKD/networkx
ini
## Code Before: [nosetests] verbosity=0 detailed-errors=1 with-doctest=1 doctest-extension=txt ## Instruction: Update nose configuration to include coverage. ## Code After: [nosetests] verbosity=0 detailed-errors=1 with-doctest=1 with-coverage=1 cover-package=networkx
[nosetests] verbosity=0 detailed-errors=1 with-doctest=1 + with-coverage=1 + cover-package=networkx - doctest-extension=txt - -
5
0.714286
2
3
896615db6d9a27e4a6c43c8757dac01e36366e69
README.md
README.md
Python library that wraps [Oanda](http://oanda.com) API. Status: __ALPHA__ [![Build Status](https://travis-ci.org/toloco/pyoanda.svg?branch=master)](https://travis-ci.org/toloco/pyoanda) ### Code example ```python from pyoanda.client import Client c = Client( domain="https://api-fxpractice.oanda.com, domain_stream="https://stream-fxpractice.oanda.com", account_id="Your Oanda account ID", access_token="Your Oanda access token" ) c.get_instrument_history( instrument="EUR_GBP", candle_format="midpoint", granularity="S30" ) ``` ### Run test ```shell py.test ``` [Pypi Page](https://pypi.python.org/pypi/pyoanda/0.1.0)
Python library that wraps [Oanda](http://oanda.com) API. Status: __ALPHA__ [![Build Status](https://travis-ci.org/toloco/pyoanda.svg?branch=master)](https://travis-ci.org/toloco/pyoanda) ### Code example ```python from pyoanda.client import Client c = Client( domain="https://api-fxpractice.oanda.com, domain_stream="https://stream-fxpractice.oanda.com", account_id="Your Oanda account ID", access_token="Your Oanda access token" ) c.get_instrument_history( instrument="EUR_GBP", candle_format="midpoint", granularity="S30" ) ``` ### Run test ```shell py.test pyoanda ``` [Pypi Page](https://pypi.python.org/pypi/pyoanda/0.1.0)
Add module to test in docs
Add module to test in docs
Markdown
mit
toloco/pyoanda,MonoCloud/pyoanda,elyobo/pyoanda
markdown
## Code Before: Python library that wraps [Oanda](http://oanda.com) API. Status: __ALPHA__ [![Build Status](https://travis-ci.org/toloco/pyoanda.svg?branch=master)](https://travis-ci.org/toloco/pyoanda) ### Code example ```python from pyoanda.client import Client c = Client( domain="https://api-fxpractice.oanda.com, domain_stream="https://stream-fxpractice.oanda.com", account_id="Your Oanda account ID", access_token="Your Oanda access token" ) c.get_instrument_history( instrument="EUR_GBP", candle_format="midpoint", granularity="S30" ) ``` ### Run test ```shell py.test ``` [Pypi Page](https://pypi.python.org/pypi/pyoanda/0.1.0) ## Instruction: Add module to test in docs ## Code After: Python library that wraps [Oanda](http://oanda.com) API. Status: __ALPHA__ [![Build Status](https://travis-ci.org/toloco/pyoanda.svg?branch=master)](https://travis-ci.org/toloco/pyoanda) ### Code example ```python from pyoanda.client import Client c = Client( domain="https://api-fxpractice.oanda.com, domain_stream="https://stream-fxpractice.oanda.com", account_id="Your Oanda account ID", access_token="Your Oanda access token" ) c.get_instrument_history( instrument="EUR_GBP", candle_format="midpoint", granularity="S30" ) ``` ### Run test ```shell py.test pyoanda ``` [Pypi Page](https://pypi.python.org/pypi/pyoanda/0.1.0)
Python library that wraps [Oanda](http://oanda.com) API. Status: __ALPHA__ [![Build Status](https://travis-ci.org/toloco/pyoanda.svg?branch=master)](https://travis-ci.org/toloco/pyoanda) ### Code example ```python from pyoanda.client import Client c = Client( - domain="https://api-fxpractice.oanda.com, ? - + domain="https://api-fxpractice.oanda.com, - domain_stream="https://stream-fxpractice.oanda.com", ? - + domain_stream="https://stream-fxpractice.oanda.com", account_id="Your Oanda account ID", access_token="Your Oanda access token" ) c.get_instrument_history( instrument="EUR_GBP", candle_format="midpoint", granularity="S30" ) ``` ### Run test ```shell - py.test + py.test pyoanda ``` [Pypi Page](https://pypi.python.org/pypi/pyoanda/0.1.0)
6
0.176471
3
3
1e1a7a593bccc5ea5676c63d49845626a2ca4334
test/cctest/compiler/test-run-deopt.cc
test/cctest/compiler/test-run-deopt.cc
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "v8.h" #include "function-tester.h" using namespace v8::internal; using namespace v8::internal::compiler; TEST(TurboSimpleDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function f(a) {" "var b = 1;" "if (!%IsOptimized()) return 0;" "%DeoptimizeFunction(f);" "if (%IsOptimized()) return 0;" "return a + b; })"); T.CheckCall(T.Val(2), T.Val(1)); } TEST(TurboTrivialDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function foo() {" "%DeoptimizeFunction(foo);" "return 1; })"); T.CheckCall(T.Val(1)); }
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/v8.h" #include "test/cctest/compiler/function-tester.h" using namespace v8::internal; using namespace v8::internal::compiler; TEST(TurboSimpleDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function f(a) {" "var b = 1;" "if (!%IsOptimized()) return 0;" "%DeoptimizeFunction(f);" "if (%IsOptimized()) return 0;" "return a + b; })"); T.CheckCall(T.Val(2), T.Val(1)); } TEST(TurboTrivialDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function foo() {" "%DeoptimizeFunction(foo);" "return 1; })"); T.CheckCall(T.Val(1)); }
Fix relative include path in cctest case.
Fix relative include path in cctest case. R=jarin@chromium.org, titzer@chromium.org Review URL: https://codereview.chromium.org/426233003 git-svn-id: f98b9d40cb02301bc76fa9e1b46ee668158567fd@22721 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
C++
mit
UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh
c++
## Code Before: // Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "v8.h" #include "function-tester.h" using namespace v8::internal; using namespace v8::internal::compiler; TEST(TurboSimpleDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function f(a) {" "var b = 1;" "if (!%IsOptimized()) return 0;" "%DeoptimizeFunction(f);" "if (%IsOptimized()) return 0;" "return a + b; })"); T.CheckCall(T.Val(2), T.Val(1)); } TEST(TurboTrivialDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function foo() {" "%DeoptimizeFunction(foo);" "return 1; })"); T.CheckCall(T.Val(1)); } ## Instruction: Fix relative include path in cctest case. R=jarin@chromium.org, titzer@chromium.org Review URL: https://codereview.chromium.org/426233003 git-svn-id: f98b9d40cb02301bc76fa9e1b46ee668158567fd@22721 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 ## Code After: // Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/v8.h" #include "test/cctest/compiler/function-tester.h" using namespace v8::internal; using namespace v8::internal::compiler; TEST(TurboSimpleDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function f(a) {" "var b = 1;" "if (!%IsOptimized()) return 0;" "%DeoptimizeFunction(f);" "if (%IsOptimized()) return 0;" "return a + b; })"); T.CheckCall(T.Val(2), T.Val(1)); } TEST(TurboTrivialDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function foo() {" "%DeoptimizeFunction(foo);" "return 1; })"); T.CheckCall(T.Val(1)); }
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - #include "v8.h" + #include "src/v8.h" ? ++++ - #include "function-tester.h" + #include "test/cctest/compiler/function-tester.h" using namespace v8::internal; using namespace v8::internal::compiler; TEST(TurboSimpleDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function f(a) {" "var b = 1;" "if (!%IsOptimized()) return 0;" "%DeoptimizeFunction(f);" "if (%IsOptimized()) return 0;" "return a + b; })"); T.CheckCall(T.Val(2), T.Val(1)); } TEST(TurboTrivialDeopt) { FLAG_allow_natives_syntax = true; FLAG_turbo_deoptimization = true; FunctionTester T( "(function foo() {" "%DeoptimizeFunction(foo);" "return 1; })"); T.CheckCall(T.Val(1)); }
4
0.102564
2
2
f381f9302f7b97246101165938b101c3d7050e56
qcdevice.h
qcdevice.h
/* QuickCross Project * License: APACHE-2.0 * Author: Ben Lau * Project Site: https://github.com/benlau/quickcross * */ #include <QObject> class QCDevice : public QObject { Q_OBJECT Q_PROPERTY(QString os READ os) Q_PROPERTY(bool isAndroid READ isAndroid) Q_PROPERTY(bool isLinux READ isLinux) Q_PROPERTY(bool isMac READ isMac) Q_PROPERTY(bool isIOS READ isIOS) Q_PROPERTY(bool isWindows READ isWindows) Q_PROPERTY(qreal dp READ dp) public: explicit QCDevice(QObject *parent = 0); QString os() const; bool isAndroid() const; bool isLinux() const; bool isIOS() const; bool isMac() const; bool isWindows() const; qreal dp() const; signals: public slots: }; #endif // QCDEVICE_H
/* QuickCross Project * License: APACHE-2.0 * Author: Ben Lau * Project Site: https://github.com/benlau/quickcross * */ #include <QObject> class QCDevice : public QObject { Q_OBJECT Q_PROPERTY(QString os READ os) Q_PROPERTY(bool isAndroid READ isAndroid NOTIFY neverEmitChanged) Q_PROPERTY(bool isLinux READ isLinux NOTIFY neverEmitChanged) Q_PROPERTY(bool isMac READ isMac NOTIFY neverEmitChanged) Q_PROPERTY(bool isIOS READ isIOS NOTIFY neverEmitChanged) Q_PROPERTY(bool isWindows READ isWindows NOTIFY neverEmitChanged) Q_PROPERTY(qreal dp READ dp NOTIFY neverEmitChanged) public: explicit QCDevice(QObject *parent = 0); QString os() const; bool isAndroid() const; bool isLinux() const; bool isIOS() const; bool isMac() const; bool isWindows() const; qreal dp() const; signals: void neverEmitChanged(); public slots: }; #endif // QCDEVICE_H
Add a never emit signal on properties.
QCDevice: Add a never emit signal on properties.
C
apache-2.0
benlau/quickcross,benlau/quickcross,benlau/quickcross
c
## Code Before: /* QuickCross Project * License: APACHE-2.0 * Author: Ben Lau * Project Site: https://github.com/benlau/quickcross * */ #include <QObject> class QCDevice : public QObject { Q_OBJECT Q_PROPERTY(QString os READ os) Q_PROPERTY(bool isAndroid READ isAndroid) Q_PROPERTY(bool isLinux READ isLinux) Q_PROPERTY(bool isMac READ isMac) Q_PROPERTY(bool isIOS READ isIOS) Q_PROPERTY(bool isWindows READ isWindows) Q_PROPERTY(qreal dp READ dp) public: explicit QCDevice(QObject *parent = 0); QString os() const; bool isAndroid() const; bool isLinux() const; bool isIOS() const; bool isMac() const; bool isWindows() const; qreal dp() const; signals: public slots: }; #endif // QCDEVICE_H ## Instruction: QCDevice: Add a never emit signal on properties. ## Code After: /* QuickCross Project * License: APACHE-2.0 * Author: Ben Lau * Project Site: https://github.com/benlau/quickcross * */ #include <QObject> class QCDevice : public QObject { Q_OBJECT Q_PROPERTY(QString os READ os) Q_PROPERTY(bool isAndroid READ isAndroid NOTIFY neverEmitChanged) Q_PROPERTY(bool isLinux READ isLinux NOTIFY neverEmitChanged) Q_PROPERTY(bool isMac READ isMac NOTIFY neverEmitChanged) Q_PROPERTY(bool isIOS READ isIOS NOTIFY neverEmitChanged) Q_PROPERTY(bool isWindows READ isWindows NOTIFY neverEmitChanged) Q_PROPERTY(qreal dp READ dp NOTIFY neverEmitChanged) public: explicit QCDevice(QObject *parent = 0); QString os() const; bool isAndroid() const; bool isLinux() const; bool isIOS() const; bool isMac() const; bool isWindows() const; qreal dp() const; signals: void neverEmitChanged(); public slots: }; #endif // QCDEVICE_H
/* QuickCross Project * License: APACHE-2.0 * Author: Ben Lau * Project Site: https://github.com/benlau/quickcross * */ #include <QObject> class QCDevice : public QObject { Q_OBJECT Q_PROPERTY(QString os READ os) - Q_PROPERTY(bool isAndroid READ isAndroid) + Q_PROPERTY(bool isAndroid READ isAndroid NOTIFY neverEmitChanged) ? ++++++++++++++++++++++++ - Q_PROPERTY(bool isLinux READ isLinux) + Q_PROPERTY(bool isLinux READ isLinux NOTIFY neverEmitChanged) ? ++++++++++++++++++++++++ - Q_PROPERTY(bool isMac READ isMac) + Q_PROPERTY(bool isMac READ isMac NOTIFY neverEmitChanged) ? ++++++++++++++++++++++++ - Q_PROPERTY(bool isIOS READ isIOS) + Q_PROPERTY(bool isIOS READ isIOS NOTIFY neverEmitChanged) ? ++++++++++++++++++++++++ - Q_PROPERTY(bool isWindows READ isWindows) + Q_PROPERTY(bool isWindows READ isWindows NOTIFY neverEmitChanged) ? ++++++++++++++++++++++++ - Q_PROPERTY(qreal dp READ dp) + Q_PROPERTY(qreal dp READ dp NOTIFY neverEmitChanged) public: explicit QCDevice(QObject *parent = 0); QString os() const; bool isAndroid() const; bool isLinux() const; bool isIOS() const; bool isMac() const; bool isWindows() const; qreal dp() const; signals: + void neverEmitChanged(); public slots: }; #endif // QCDEVICE_H
13
0.295455
7
6
42771d5103a5e37444c8fb50ee17a90a3a417cad
lib/healthy/a19/response_validator.rb
lib/healthy/a19/response_validator.rb
require 'healthy/a19/response_parser' module Healthy module A19 class ResponseValidator attr_reader :response def initialize(response) @response = response end def validate case response.code when '200' true when '500' validate_500 else raise ::Healthy::UnknownFailure, "Unexpected HTTP response code #{response.code} while fetching #{patient_id}." end end def validate_500 failure = ResponseParser.new(response).parse("failure") raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Timeout waiting for ACK" raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Unable to connect to destination\tSocketTimeoutException\tconnect timed out" raise ::Healthy::ConnectionRefused, failure["error"] if failure["error"] == "Unable to connect to destination\tConnectException\tConnection refused" raise ::Healthy::UnknownFailure, failure["error"] end end end end
require 'healthy/a19/response_parser' module Healthy module A19 class ResponseValidator attr_reader :response def initialize(response) @response = response end def validate case response.code when '200' true when '500' validate_500 else raise ::Healthy::UnknownFailure, "Unexpected HTTP response code #{response.code}." end end def validate_500 failure = ResponseParser.new(response).parse("failure") raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Timeout waiting for ACK" raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Unable to connect to destination\tSocketTimeoutException\tconnect timed out" raise ::Healthy::ConnectionRefused, failure["error"] if failure["error"] == "Unable to connect to destination\tConnectException\tConnection refused" raise ::Healthy::UnknownFailure, failure["error"] end end end end
Fix that patient_id is not known
Fix that patient_id is not known
Ruby
mit
roqua/healthy,roqua/healthy
ruby
## Code Before: require 'healthy/a19/response_parser' module Healthy module A19 class ResponseValidator attr_reader :response def initialize(response) @response = response end def validate case response.code when '200' true when '500' validate_500 else raise ::Healthy::UnknownFailure, "Unexpected HTTP response code #{response.code} while fetching #{patient_id}." end end def validate_500 failure = ResponseParser.new(response).parse("failure") raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Timeout waiting for ACK" raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Unable to connect to destination\tSocketTimeoutException\tconnect timed out" raise ::Healthy::ConnectionRefused, failure["error"] if failure["error"] == "Unable to connect to destination\tConnectException\tConnection refused" raise ::Healthy::UnknownFailure, failure["error"] end end end end ## Instruction: Fix that patient_id is not known ## Code After: require 'healthy/a19/response_parser' module Healthy module A19 class ResponseValidator attr_reader :response def initialize(response) @response = response end def validate case response.code when '200' true when '500' validate_500 else raise ::Healthy::UnknownFailure, "Unexpected HTTP response code #{response.code}." end end def validate_500 failure = ResponseParser.new(response).parse("failure") raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Timeout waiting for ACK" raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Unable to connect to destination\tSocketTimeoutException\tconnect timed out" raise ::Healthy::ConnectionRefused, failure["error"] if failure["error"] == "Unable to connect to destination\tConnectException\tConnection refused" raise ::Healthy::UnknownFailure, failure["error"] end end end end
require 'healthy/a19/response_parser' module Healthy module A19 class ResponseValidator attr_reader :response def initialize(response) @response = response end def validate case response.code when '200' true when '500' validate_500 else - raise ::Healthy::UnknownFailure, "Unexpected HTTP response code #{response.code} while fetching #{patient_id}." ? ----------------------------- + raise ::Healthy::UnknownFailure, "Unexpected HTTP response code #{response.code}." end end def validate_500 failure = ResponseParser.new(response).parse("failure") raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Timeout waiting for ACK" raise ::Healthy::Timeout, failure["error"] if failure["error"] == "Unable to connect to destination\tSocketTimeoutException\tconnect timed out" raise ::Healthy::ConnectionRefused, failure["error"] if failure["error"] == "Unable to connect to destination\tConnectException\tConnection refused" raise ::Healthy::UnknownFailure, failure["error"] end end end end
2
0.0625
1
1
3e1c4dd67fd87383cd0a910ebab6773508450fe2
CHANGELOG.md
CHANGELOG.md
All notable changes to this project will be documented in this file. ## Unreleased More flexibility. [View diff](https://github.com/openl10n/openl10n/compare/v0.1.1...master). - Add paging on `/translation_commits` endpoint - Add `/languages` endpoint to list available languages - Allow versioning of the API via the FosRestBundle version listener - Add doctrine/migration to migrate from a version to another ## 0.1.1 - 2014-09-25 Quick UI patch. [View diff](https://github.com/openl10n/openl10n/compare/v0.1...v0.1.1). - UI: Add the *Ctrl+Enter* **shortcut** to save & approve translations ## 0.1.0 - 2014-09-12 Initial version. - **RESTful API** for `/projects`, `/resources`, `/translations` and `/me` endpoints - Authentification via **HTTP Basic** - User storage in database only - **Javascript client** as a "Single Page App", built with BackboneJS, MarionetteJS and Browserify
All notable changes to this project will be documented in this file. ## Unreleased More flexibility. [View diff](https://github.com/openl10n/openl10n/compare/v0.1.1...master). - Add paging on `/translation_commits` endpoint - Add `/languages` endpoint to list available languages - Allow versioning of the API via the FosRestBundle version listener - Set the app locale according to the Accept-Language header - Add doctrine/migration to migrate from a version to another ## 0.1.1 - 2014-09-25 Quick UI patch. [View diff](https://github.com/openl10n/openl10n/compare/v0.1...v0.1.1). - UI: Add the *Ctrl+Enter* **shortcut** to save & approve translations ## 0.1.0 - 2014-09-12 Initial version. - **RESTful API** for `/projects`, `/resources`, `/translations` and `/me` endpoints - Authentification via **HTTP Basic** - User storage in database only - **Javascript client** as a "Single Page App", built with BackboneJS, MarionetteJS and Browserify
Add the Accept-Language feature to the changelog
Add the Accept-Language feature to the changelog
Markdown
mit
rmoorman/openl10n,rmoorman/openl10n,openl10n/openl10n,openl10n/openl10n,Nedeas/openl10n,openl10n/openl10n,Nedeas/openl10n,Nedeas/openl10n,joelwurtz/openl10n,openl10n/openl10n,rmoorman/openl10n,joelwurtz/openl10n,rmoorman/openl10n,joelwurtz/openl10n,joelwurtz/openl10n,Nedeas/openl10n
markdown
## Code Before: All notable changes to this project will be documented in this file. ## Unreleased More flexibility. [View diff](https://github.com/openl10n/openl10n/compare/v0.1.1...master). - Add paging on `/translation_commits` endpoint - Add `/languages` endpoint to list available languages - Allow versioning of the API via the FosRestBundle version listener - Add doctrine/migration to migrate from a version to another ## 0.1.1 - 2014-09-25 Quick UI patch. [View diff](https://github.com/openl10n/openl10n/compare/v0.1...v0.1.1). - UI: Add the *Ctrl+Enter* **shortcut** to save & approve translations ## 0.1.0 - 2014-09-12 Initial version. - **RESTful API** for `/projects`, `/resources`, `/translations` and `/me` endpoints - Authentification via **HTTP Basic** - User storage in database only - **Javascript client** as a "Single Page App", built with BackboneJS, MarionetteJS and Browserify ## Instruction: Add the Accept-Language feature to the changelog ## Code After: All notable changes to this project will be documented in this file. ## Unreleased More flexibility. [View diff](https://github.com/openl10n/openl10n/compare/v0.1.1...master). - Add paging on `/translation_commits` endpoint - Add `/languages` endpoint to list available languages - Allow versioning of the API via the FosRestBundle version listener - Set the app locale according to the Accept-Language header - Add doctrine/migration to migrate from a version to another ## 0.1.1 - 2014-09-25 Quick UI patch. [View diff](https://github.com/openl10n/openl10n/compare/v0.1...v0.1.1). - UI: Add the *Ctrl+Enter* **shortcut** to save & approve translations ## 0.1.0 - 2014-09-12 Initial version. - **RESTful API** for `/projects`, `/resources`, `/translations` and `/me` endpoints - Authentification via **HTTP Basic** - User storage in database only - **Javascript client** as a "Single Page App", built with BackboneJS, MarionetteJS and Browserify
All notable changes to this project will be documented in this file. ## Unreleased More flexibility. [View diff](https://github.com/openl10n/openl10n/compare/v0.1.1...master). - Add paging on `/translation_commits` endpoint - Add `/languages` endpoint to list available languages - Allow versioning of the API via the FosRestBundle version listener + - Set the app locale according to the Accept-Language header - Add doctrine/migration to migrate from a version to another ## 0.1.1 - 2014-09-25 Quick UI patch. [View diff](https://github.com/openl10n/openl10n/compare/v0.1...v0.1.1). - UI: Add the *Ctrl+Enter* **shortcut** to save & approve translations ## 0.1.0 - 2014-09-12 Initial version. - **RESTful API** for `/projects`, `/resources`, `/translations` and `/me` endpoints - Authentification via **HTTP Basic** - User storage in database only - **Javascript client** as a "Single Page App", built with BackboneJS, MarionetteJS and Browserify
1
0.038462
1
0
8353347b054c2b4c8df0af3f1ff8638869724d85
test/rollup/rollup.test.ts
test/rollup/rollup.test.ts
import test from "ava" import execa from "execa" import * as path from "path" import { rollup } from "rollup" import config from "./rollup.config" test("can be bundled using rollup", async t => { const [appBundle, workerBundle] = await Promise.all([ rollup({ input: path.resolve(__dirname, "app.js"), ...config }), rollup({ input: path.resolve(__dirname, "worker.js"), ...config }) ]) await Promise.all([ appBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }), workerBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }) ]) const result = await execa.command("puppet-run --serve ./dist/worker.js:/worker.js ./dist/app.js", { cwd: __dirname, stderr: process.stderr }) t.is(result.exitCode, 0) })
import test from "ava" import execa from "execa" import * as path from "path" import { rollup } from "rollup" import config from "./rollup.config" test("can be bundled using rollup", async t => { const [appBundle, workerBundle] = await Promise.all([ rollup({ input: path.resolve(__dirname, "app.js"), ...config }), rollup({ input: path.resolve(__dirname, "worker.js"), ...config }) ]) await Promise.all([ appBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }), workerBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }) ]) if (process.platform === "win32") { // Quick-fix for weird Windows issue in CI return t.pass() } const result = await execa.command("puppet-run --serve ./dist/worker.js:/worker.js ./dist/app.js", { cwd: __dirname, stderr: process.stderr }) t.is(result.exitCode, 0) })
Add quick-fix for windows CI issue
Add quick-fix for windows CI issue
TypeScript
mit
andywer/threads.js,andywer/threads.js,andywer/thread.js
typescript
## Code Before: import test from "ava" import execa from "execa" import * as path from "path" import { rollup } from "rollup" import config from "./rollup.config" test("can be bundled using rollup", async t => { const [appBundle, workerBundle] = await Promise.all([ rollup({ input: path.resolve(__dirname, "app.js"), ...config }), rollup({ input: path.resolve(__dirname, "worker.js"), ...config }) ]) await Promise.all([ appBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }), workerBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }) ]) const result = await execa.command("puppet-run --serve ./dist/worker.js:/worker.js ./dist/app.js", { cwd: __dirname, stderr: process.stderr }) t.is(result.exitCode, 0) }) ## Instruction: Add quick-fix for windows CI issue ## Code After: import test from "ava" import execa from "execa" import * as path from "path" import { rollup } from "rollup" import config from "./rollup.config" test("can be bundled using rollup", async t => { const [appBundle, workerBundle] = await Promise.all([ rollup({ input: path.resolve(__dirname, "app.js"), ...config }), rollup({ input: path.resolve(__dirname, "worker.js"), ...config }) ]) await Promise.all([ appBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }), workerBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }) ]) if (process.platform === "win32") { // Quick-fix for weird Windows issue in CI return t.pass() } const result = await execa.command("puppet-run --serve ./dist/worker.js:/worker.js ./dist/app.js", { cwd: __dirname, stderr: process.stderr }) t.is(result.exitCode, 0) })
import test from "ava" import execa from "execa" import * as path from "path" import { rollup } from "rollup" import config from "./rollup.config" test("can be bundled using rollup", async t => { const [appBundle, workerBundle] = await Promise.all([ rollup({ input: path.resolve(__dirname, "app.js"), ...config }), rollup({ input: path.resolve(__dirname, "worker.js"), ...config }) ]) await Promise.all([ appBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }), workerBundle.write({ dir: path.resolve(__dirname, "dist"), format: "iife" }) ]) + if (process.platform === "win32") { + // Quick-fix for weird Windows issue in CI + return t.pass() + } + const result = await execa.command("puppet-run --serve ./dist/worker.js:/worker.js ./dist/app.js", { cwd: __dirname, stderr: process.stderr }) t.is(result.exitCode, 0) })
5
0.142857
5
0
24b28a63c7406c956a9c6e88d76bea2cc8b7264d
test/README.md
test/README.md
To run the tests in this directory, make sure you've installed the dev dependencies with this command from the top-level directory: ``` npm install ``` You'll also have to globally install [mocha](http://visionmedia.github.com/mocha/). `npm install mocha -g`. # Unit tests Run the unit tests with: ``` mocha test/unit/* ``` # Cross-validation tests The cross-validation tests will actually test how good the neural network is a training by getting a bunch of training data, training it with some, and using the rest as verification. Cross-validation tests will take a long time to run, and in the end will give you a printout with the average error of the test data. Run these with: ``` mocha test/cross-validation/* --timeout 10000 ```
To run the tests in this directory, make sure you've installed the dev dependencies with this command from the top-level directory: ``` npm install ``` You'll also have to globally install [mocha](http://visionmedia.github.com/mocha/). `npm install mocha -g`. # Unit tests Run the unit tests with: ``` grunt test ``` # Cross-validation tests The cross-validation tests will actually test how good the neural network is a training by getting a bunch of training data, training it with some, and using the rest as verification. Cross-validation tests will take a long time to run, and in the end will give you a printout with the average error of the test data. Run these with: ``` mocha test/cross-validation/* --timeout 10000 ```
Update readme with new grunt test task
Update readme with new grunt test task
Markdown
mit
harthur-org/brain,richard512/brain,ClimbsRocks/brain,trongr/brain,drewry/brain,kuychaco/brain,daysmingming/brain,mcanthony/brain,lichterschalter/brain,nickpoorman/brain,polymaths/brain,adrianseeley/brain,urandu/brain,renatoargh/brain,chrisearl/brain,gdseller/brain,ClimbsRocks/warmBrain,ckknight/brain,datachand/brain,martinstarman/brain,kustomzone/brain,antares500/brain,saidimu/brain,harthur/brain,mrStiven/brain,andyfoster/brain,harthur-org/brain.js,webmechanicx/brain,valgaze/brain,Ossehoht/brain,dexterbrylle/brain,dpraimeyuu/brain,Django0505/brain,theiver9827/brain,elkingtonmcb/brain,stndlkr200/brain,ThiagoGarciaAlves/brain,BrainJS/brain.js
markdown
## Code Before: To run the tests in this directory, make sure you've installed the dev dependencies with this command from the top-level directory: ``` npm install ``` You'll also have to globally install [mocha](http://visionmedia.github.com/mocha/). `npm install mocha -g`. # Unit tests Run the unit tests with: ``` mocha test/unit/* ``` # Cross-validation tests The cross-validation tests will actually test how good the neural network is a training by getting a bunch of training data, training it with some, and using the rest as verification. Cross-validation tests will take a long time to run, and in the end will give you a printout with the average error of the test data. Run these with: ``` mocha test/cross-validation/* --timeout 10000 ``` ## Instruction: Update readme with new grunt test task ## Code After: To run the tests in this directory, make sure you've installed the dev dependencies with this command from the top-level directory: ``` npm install ``` You'll also have to globally install [mocha](http://visionmedia.github.com/mocha/). `npm install mocha -g`. # Unit tests Run the unit tests with: ``` grunt test ``` # Cross-validation tests The cross-validation tests will actually test how good the neural network is a training by getting a bunch of training data, training it with some, and using the rest as verification. Cross-validation tests will take a long time to run, and in the end will give you a printout with the average error of the test data. Run these with: ``` mocha test/cross-validation/* --timeout 10000 ```
To run the tests in this directory, make sure you've installed the dev dependencies with this command from the top-level directory: ``` npm install ``` You'll also have to globally install [mocha](http://visionmedia.github.com/mocha/). `npm install mocha -g`. # Unit tests Run the unit tests with: ``` - mocha test/unit/* + grunt test ``` # Cross-validation tests The cross-validation tests will actually test how good the neural network is a training by getting a bunch of training data, training it with some, and using the rest as verification. Cross-validation tests will take a long time to run, and in the end will give you a printout with the average error of the test data. Run these with: ``` mocha test/cross-validation/* --timeout 10000 ```
2
0.076923
1
1
85631454e279edba68850f68fcd2844c5614959f
src/components/UserNav.js
src/components/UserNav.js
import React from 'react' import { Link } from 'react-router' const UserNav = ({baseUrl, active}) => ( <nav style={{display: 'flex', flexDirection: 'row'}}> <Link to={baseUrl}>Overview</Link> <Link to={`${baseUrl}/videos`}>Videos</Link> <Link to={`${baseUrl}/organizations`}>Organizations</Link> <Link to={`${baseUrl}/following`}>Following</Link> <Link to={`${baseUrl}/followers`}>Followers</Link> <Link to={`${baseUrl}/shows`}>Shows</Link> <Link to={`${baseUrl}/series`}>Series</Link> <Link to={`${baseUrl}/playlists`}>Playlists</Link> </nav> ) export default UserNav
import React from 'react' import { Link } from 'react-router' const styles = { nav: { display: 'flex', flexDirection: 'row', padding: "1em", }, link: { borderBottom: "2px solid #222222", padding: "1em", textDecoration: "none", }} const UserNav = ({baseUrl, active}) => ( <nav style={styles.nav}> <Link style={styles.link} to={baseUrl}>Overview</Link> <Link style={styles.link} to={`${baseUrl}/videos`}>Videos</Link> <Link style={styles.link} to={`${baseUrl}/organizations`}>Organizations</Link> <Link style={styles.link} to={`${baseUrl}/following`}>Following</Link> <Link style={styles.link} to={`${baseUrl}/followers`}>Followers</Link> <Link style={styles.link} to={`${baseUrl}/shows`}>Shows</Link> <Link style={styles.link} to={`${baseUrl}/series`}>Series</Link> <Link style={styles.link} to={`${baseUrl}/playlists`}>Playlists</Link> </nav> ) export default UserNav
Add a little style to the nav
Add a little style to the nav
JavaScript
mit
mg4tv/mg4tv-web,mg4tv/mg4tv-web
javascript
## Code Before: import React from 'react' import { Link } from 'react-router' const UserNav = ({baseUrl, active}) => ( <nav style={{display: 'flex', flexDirection: 'row'}}> <Link to={baseUrl}>Overview</Link> <Link to={`${baseUrl}/videos`}>Videos</Link> <Link to={`${baseUrl}/organizations`}>Organizations</Link> <Link to={`${baseUrl}/following`}>Following</Link> <Link to={`${baseUrl}/followers`}>Followers</Link> <Link to={`${baseUrl}/shows`}>Shows</Link> <Link to={`${baseUrl}/series`}>Series</Link> <Link to={`${baseUrl}/playlists`}>Playlists</Link> </nav> ) export default UserNav ## Instruction: Add a little style to the nav ## Code After: import React from 'react' import { Link } from 'react-router' const styles = { nav: { display: 'flex', flexDirection: 'row', padding: "1em", }, link: { borderBottom: "2px solid #222222", padding: "1em", textDecoration: "none", }} const UserNav = ({baseUrl, active}) => ( <nav style={styles.nav}> <Link style={styles.link} to={baseUrl}>Overview</Link> <Link style={styles.link} to={`${baseUrl}/videos`}>Videos</Link> <Link style={styles.link} to={`${baseUrl}/organizations`}>Organizations</Link> <Link style={styles.link} to={`${baseUrl}/following`}>Following</Link> <Link style={styles.link} to={`${baseUrl}/followers`}>Followers</Link> <Link style={styles.link} to={`${baseUrl}/shows`}>Shows</Link> <Link style={styles.link} to={`${baseUrl}/series`}>Series</Link> <Link style={styles.link} to={`${baseUrl}/playlists`}>Playlists</Link> </nav> ) export default UserNav
import React from 'react' import { Link } from 'react-router' + const styles = { + nav: { + display: 'flex', + flexDirection: 'row', + padding: "1em", + }, + link: { + borderBottom: "2px solid #222222", + padding: "1em", + textDecoration: "none", + }} const UserNav = ({baseUrl, active}) => ( - <nav style={{display: 'flex', flexDirection: 'row'}}> + <nav style={styles.nav}> - <Link to={baseUrl}>Overview</Link> + <Link style={styles.link} to={baseUrl}>Overview</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/videos`}>Videos</Link> + <Link style={styles.link} to={`${baseUrl}/videos`}>Videos</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/organizations`}>Organizations</Link> + <Link style={styles.link} to={`${baseUrl}/organizations`}>Organizations</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/following`}>Following</Link> + <Link style={styles.link} to={`${baseUrl}/following`}>Following</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/followers`}>Followers</Link> + <Link style={styles.link} to={`${baseUrl}/followers`}>Followers</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/shows`}>Shows</Link> + <Link style={styles.link} to={`${baseUrl}/shows`}>Shows</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/series`}>Series</Link> + <Link style={styles.link} to={`${baseUrl}/series`}>Series</Link> ? ++++++++++++++++++++ - <Link to={`${baseUrl}/playlists`}>Playlists</Link> + <Link style={styles.link} to={`${baseUrl}/playlists`}>Playlists</Link> ? ++++++++++++++++++++ </nav> ) export default UserNav
29
1.611111
20
9
f30c95fd4c67fe5676527d3ff774cf854416c35e
README.md
README.md
<a href="https://socialshar.es/"> <img src="https://socialshar.es/assets/svg/logo.svg" width="500" alt="socialshares logo" /> </a> ## Make sharing fast and secure. While it's very easy to copy-and-paste scripts to embed a tweet or Facebook share button, you end up slowing down your site by loading resources from multiple servers. Also, these scripts violate privacy by tracking users even if they don't wish to use them. The good news is that social networks provide a way to share content through special URLs, which socialshares uses to give a lightweight and consistently-designed solution. Get started at [http://socialshar.es](https://socialshar.es/). ## Demo You can [view the pen](http://codepen.io/sunnysingh/pen/OPxbgq) on CodePen. ## Installation You are free to simply [download a ZIP](https://github.com/socialshares/buttons/archive/master.zip) of the project. You can also install through [Bower](http://bower.io/): ```bash bower install socialshares ``` Full docs are currently available on [http://socialshar.es](https://socialshar.es/).
<a href="https://socialshar.es/"> <img src="https://socialshar.es/assets/svg/logo.svg" width="500" alt="socialshares logo" /> </a> ![Bower Release](https://img.shields.io/bower/v/socialshares.svg) ![MIT License](https://img.shields.io/github/license/socialshares/buttons.svg) ## Make sharing fast and secure. While it's very easy to copy-and-paste scripts to embed a tweet or Facebook share button, you end up slowing down your site by loading resources from multiple servers. Also, these scripts violate privacy by tracking users even if they don't wish to use them. The good news is that social networks provide a way to share content through special URLs, which socialshares uses to give a lightweight and consistently-designed solution. Get started at [http://socialshar.es](https://socialshar.es/).
Add shields.io badges and remove documentation in favor of linking to socialshar.es
Add shields.io badges and remove documentation in favor of linking to socialshar.es
Markdown
mit
socialshares/buttons,socialshares/buttons
markdown
## Code Before: <a href="https://socialshar.es/"> <img src="https://socialshar.es/assets/svg/logo.svg" width="500" alt="socialshares logo" /> </a> ## Make sharing fast and secure. While it's very easy to copy-and-paste scripts to embed a tweet or Facebook share button, you end up slowing down your site by loading resources from multiple servers. Also, these scripts violate privacy by tracking users even if they don't wish to use them. The good news is that social networks provide a way to share content through special URLs, which socialshares uses to give a lightweight and consistently-designed solution. Get started at [http://socialshar.es](https://socialshar.es/). ## Demo You can [view the pen](http://codepen.io/sunnysingh/pen/OPxbgq) on CodePen. ## Installation You are free to simply [download a ZIP](https://github.com/socialshares/buttons/archive/master.zip) of the project. You can also install through [Bower](http://bower.io/): ```bash bower install socialshares ``` Full docs are currently available on [http://socialshar.es](https://socialshar.es/). ## Instruction: Add shields.io badges and remove documentation in favor of linking to socialshar.es ## Code After: <a href="https://socialshar.es/"> <img src="https://socialshar.es/assets/svg/logo.svg" width="500" alt="socialshares logo" /> </a> ![Bower Release](https://img.shields.io/bower/v/socialshares.svg) ![MIT License](https://img.shields.io/github/license/socialshares/buttons.svg) ## Make sharing fast and secure. While it's very easy to copy-and-paste scripts to embed a tweet or Facebook share button, you end up slowing down your site by loading resources from multiple servers. Also, these scripts violate privacy by tracking users even if they don't wish to use them. The good news is that social networks provide a way to share content through special URLs, which socialshares uses to give a lightweight and consistently-designed solution. Get started at [http://socialshar.es](https://socialshar.es/).
<a href="https://socialshar.es/"> <img src="https://socialshar.es/assets/svg/logo.svg" width="500" alt="socialshares logo" /> </a> + ![Bower Release](https://img.shields.io/bower/v/socialshares.svg) + ![MIT License](https://img.shields.io/github/license/socialshares/buttons.svg) + ## Make sharing fast and secure. While it's very easy to copy-and-paste scripts to embed a tweet or Facebook share button, you end up slowing down your site by loading resources from multiple servers. Also, these scripts violate privacy by tracking users even if they don't wish to use them. The good news is that social networks provide a way to share content through special URLs, which socialshares uses to give a lightweight and consistently-designed solution. Get started at [http://socialshar.es](https://socialshar.es/). - - ## Demo - - You can [view the pen](http://codepen.io/sunnysingh/pen/OPxbgq) on CodePen. - - ## Installation - - You are free to simply [download a ZIP](https://github.com/socialshares/buttons/archive/master.zip) of the project. You can also install through [Bower](http://bower.io/): - - ```bash - bower install socialshares - ``` - - Full docs are currently available on [http://socialshar.es](https://socialshar.es/).
17
0.68
3
14
2a7dbdbad9feeeaf0278581ede9ac86f57d7dfb3
project.clj
project.clj
(defproject kmg "0.1.0-SNAPSHOT" :description "Knowledge Media Guide" :url "https://github.com/alexpetrov/kmg" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2234"] [com.datomic/datomic-free "0.9.4894"] [datomic-schema-grapher "0.0.1"] [enfocus "2.1.0-SNAPSHOT"] [compojure "1.1.8"] [sonian/carica "1.1.0" :exclusions [[cheshire]]] [fogus/ring-edn "0.2.0"] [cljs-ajax "0.2.3"] [com.taoensso/timbre "2.7.1"] ] :profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]]}} :plugins [[datomic-schema-grapher "0.0.1"]] :cljsbuild { :builds [{ :source-paths ["src"] :compiler { :output-to "resources/public/js/main.js" :optimizations :whitespace :pretty-print true}}]} :ring {:handler kmg.core/app})
(defproject kmg "0.1.0-SNAPSHOT" :description "Knowledge Media Guide" :url "https://github.com/alexpetrov/kmg" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2371"] [com.datomic/datomic-free "0.9.4956"] [datomic-schema-grapher "0.0.1"] [enfocus "2.1.0-SNAPSHOT"] [compojure "1.1.8"] [sonian/carica "1.1.0" :exclusions [[cheshire]]] [fogus/ring-edn "0.2.0"] [cljs-ajax "0.2.3"] [com.taoensso/timbre "3.3.1"] ] :profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]]}} :plugins [[datomic-schema-grapher "0.0.1"]] :cljsbuild { :builds [{ :source-paths ["src"] :compiler { :output-to "resources/public/js/main.js" :optimizations :advanced :pretty-print false}}]} :ring {:handler kmg.core/app})
Update some dependencies. Switched to :acvanced optimization of cljsbuild
Update some dependencies. Switched to :acvanced optimization of cljsbuild
Clojure
epl-1.0
alexpetrov/kmg,alexpetrov/kmg
clojure
## Code Before: (defproject kmg "0.1.0-SNAPSHOT" :description "Knowledge Media Guide" :url "https://github.com/alexpetrov/kmg" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2234"] [com.datomic/datomic-free "0.9.4894"] [datomic-schema-grapher "0.0.1"] [enfocus "2.1.0-SNAPSHOT"] [compojure "1.1.8"] [sonian/carica "1.1.0" :exclusions [[cheshire]]] [fogus/ring-edn "0.2.0"] [cljs-ajax "0.2.3"] [com.taoensso/timbre "2.7.1"] ] :profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]]}} :plugins [[datomic-schema-grapher "0.0.1"]] :cljsbuild { :builds [{ :source-paths ["src"] :compiler { :output-to "resources/public/js/main.js" :optimizations :whitespace :pretty-print true}}]} :ring {:handler kmg.core/app}) ## Instruction: Update some dependencies. Switched to :acvanced optimization of cljsbuild ## Code After: (defproject kmg "0.1.0-SNAPSHOT" :description "Knowledge Media Guide" :url "https://github.com/alexpetrov/kmg" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2371"] [com.datomic/datomic-free "0.9.4956"] [datomic-schema-grapher "0.0.1"] [enfocus "2.1.0-SNAPSHOT"] [compojure "1.1.8"] [sonian/carica "1.1.0" :exclusions [[cheshire]]] [fogus/ring-edn "0.2.0"] [cljs-ajax "0.2.3"] [com.taoensso/timbre "3.3.1"] ] :profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]]}} :plugins [[datomic-schema-grapher "0.0.1"]] :cljsbuild { :builds [{ :source-paths ["src"] :compiler { :output-to "resources/public/js/main.js" :optimizations :advanced :pretty-print false}}]} :ring {:handler kmg.core/app})
(defproject kmg "0.1.0-SNAPSHOT" :description "Knowledge Media Guide" :url "https://github.com/alexpetrov/kmg" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] - [org.clojure/clojurescript "0.0-2234"] ? - ^ + [org.clojure/clojurescript "0.0-2371"] ? ^^ - [com.datomic/datomic-free "0.9.4894"] ? - ^ + [com.datomic/datomic-free "0.9.4956"] ? ^^ [datomic-schema-grapher "0.0.1"] [enfocus "2.1.0-SNAPSHOT"] [compojure "1.1.8"] [sonian/carica "1.1.0" :exclusions [[cheshire]]] [fogus/ring-edn "0.2.0"] [cljs-ajax "0.2.3"] - [com.taoensso/timbre "2.7.1"] ? ^ ^ + [com.taoensso/timbre "3.3.1"] ? ^ ^ ] :profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]]}} :plugins [[datomic-schema-grapher "0.0.1"]] :cljsbuild { :builds [{ :source-paths ["src"] :compiler { :output-to "resources/public/js/main.js" - :optimizations :whitespace ? ------- + :optimizations :advanced ? ++++ + - :pretty-print true}}]} ? ^^^ + :pretty-print false}}]} ? ^^^^ :ring {:handler kmg.core/app})
10
0.384615
5
5
2f7dc1bd9929c420d9bcb9af81fba1018d1c27bc
_sl-overview/morphology.md
_sl-overview/morphology.md
--- layout: base title: 'Morphology' permalink: sl/overview/morphology.html --- # Morphology The universal part-of-speech categories, features and values in the Slovenian UD Treebank have been obtained by conversion from the [JOS morphosyntactic specifications](http://nl.ijs.si/jos/index-en.html). The majority of conversions was done automatically by mapping JOS morphosyntactic tags to universal POS tags and features, while in some cases also word forms, lemmas and/or dependency relations were taken into account. The Slovenian UD tagset includes all universal POS tags and features. In addition to that, the set of universal features has been extended with five additional features to either describe language-specific features (such as [Gender[psor]](../../sl/feat/Gender-psor.html), [Number[psor]](../../sl/feat/Number-psor.html) and [Variant](../../sl/feat/Variant.html)) or preserve some finer-grained morphological information encoded in the original ssj500k treebank (such as [Abbr](../../sl/feat/Abbr.html) and [NumForm](../../sl/feat/NumForm.html)). The conversion principles for individual POS tags and features are detailed in the corresponding Slovenian guidelines and the original JOS morphosyntactic tags have been preserved in the language-specific FEATS column. Further improvements and manual revisions of this work are still a work in progress.
--- layout: base title: 'Morphology' permalink: sl/overview/morphology.html --- # Morphology The universal part-of-speech categories, features and values in the Slovenian UD Treebank have been obtained by conversion from the [JOS morphosyntactic specifications](http://nl.ijs.si/jos/index-en.html). The majority of conversions was done automatically by mapping JOS morphosyntactic tags to universal POS tags and features, while in some cases also word forms, lemmas and/or dependency relations were taken into account. The Slovenian UD tagset includes all universal POS tags and features except for [Voice](Voice). In addition to that, the set of universal features has been extended with five additional features to either describe language-specific features (such as [Gender[psor]](../../sl/feat/Gender-psor.html), [Number[psor]](../../sl/feat/Number-psor.html) and [Variant](../../sl/feat/Variant.html)) or preserve some finer-grained morphological information encoded in the original ssj500k treebank (such as [Abbr](../../sl/feat/Abbr.html), [Foreign](../../sl/feat/Foreign.html) and [NumForm](../../sl/feat/NumForm.html)). The conversion principles for individual POS tags and features are detailed in the corresponding Slovenian guidelines and the original JOS morphosyntactic tags have been preserved in the language-specific FEATS column. Further improvements and manual revisions of this work are still a work in progress.
Add new language specific features
Add new language specific features
Markdown
apache-2.0
fginter/docs,PhyloStar/UDTelugu,UniversalDependencies/docs,hamzashafqat/docs,nschneid/docs,PhyloStar/UDTelugu,hamzashafqat/docs,ftyers/docs,fginter/docs,UniversalDependencies/docs,coltekin/docs,fginter/docs-fginterfork,PhyloStar/UDTelugu,PhyloStar/UDTelugu,UniversalDependencies/docs,ftyers/docs,fginter/docs,nschneid/docs,ftyers/docs,hamzashafqat/docs,nschneid/docs,coltekin/docs,fginter/docs-fginterfork,fginter/docs,ftyers/docs,UniversalDependencies/docs,fginter/docs-fginterfork,UniversalDependencies/docs,coltekin/docs,hamzashafqat/docs,PhyloStar/UDTelugu,coltekin/docs,coltekin/docs,fginter/docs-fginterfork,fginter/docs,UniversalDependencies/docs,PhyloStar/UDTelugu,nschneid/docs,fginter/docs-fginterfork
markdown
## Code Before: --- layout: base title: 'Morphology' permalink: sl/overview/morphology.html --- # Morphology The universal part-of-speech categories, features and values in the Slovenian UD Treebank have been obtained by conversion from the [JOS morphosyntactic specifications](http://nl.ijs.si/jos/index-en.html). The majority of conversions was done automatically by mapping JOS morphosyntactic tags to universal POS tags and features, while in some cases also word forms, lemmas and/or dependency relations were taken into account. The Slovenian UD tagset includes all universal POS tags and features. In addition to that, the set of universal features has been extended with five additional features to either describe language-specific features (such as [Gender[psor]](../../sl/feat/Gender-psor.html), [Number[psor]](../../sl/feat/Number-psor.html) and [Variant](../../sl/feat/Variant.html)) or preserve some finer-grained morphological information encoded in the original ssj500k treebank (such as [Abbr](../../sl/feat/Abbr.html) and [NumForm](../../sl/feat/NumForm.html)). The conversion principles for individual POS tags and features are detailed in the corresponding Slovenian guidelines and the original JOS morphosyntactic tags have been preserved in the language-specific FEATS column. Further improvements and manual revisions of this work are still a work in progress. ## Instruction: Add new language specific features ## Code After: --- layout: base title: 'Morphology' permalink: sl/overview/morphology.html --- # Morphology The universal part-of-speech categories, features and values in the Slovenian UD Treebank have been obtained by conversion from the [JOS morphosyntactic specifications](http://nl.ijs.si/jos/index-en.html). The majority of conversions was done automatically by mapping JOS morphosyntactic tags to universal POS tags and features, while in some cases also word forms, lemmas and/or dependency relations were taken into account. The Slovenian UD tagset includes all universal POS tags and features except for [Voice](Voice). In addition to that, the set of universal features has been extended with five additional features to either describe language-specific features (such as [Gender[psor]](../../sl/feat/Gender-psor.html), [Number[psor]](../../sl/feat/Number-psor.html) and [Variant](../../sl/feat/Variant.html)) or preserve some finer-grained morphological information encoded in the original ssj500k treebank (such as [Abbr](../../sl/feat/Abbr.html), [Foreign](../../sl/feat/Foreign.html) and [NumForm](../../sl/feat/NumForm.html)). The conversion principles for individual POS tags and features are detailed in the corresponding Slovenian guidelines and the original JOS morphosyntactic tags have been preserved in the language-specific FEATS column. Further improvements and manual revisions of this work are still a work in progress.
--- layout: base title: 'Morphology' permalink: sl/overview/morphology.html --- # Morphology The universal part-of-speech categories, features and values in the Slovenian UD Treebank have been obtained by conversion from the [JOS morphosyntactic specifications](http://nl.ijs.si/jos/index-en.html). The majority of conversions was done automatically by mapping JOS morphosyntactic tags to universal POS tags and features, while in some cases also word forms, lemmas and/or dependency relations were taken into account. - The Slovenian UD tagset includes all universal POS tags and features. In addition to that, the set of universal features has been extended with five additional features to either describe language-specific features (such as [Gender[psor]](../../sl/feat/Gender-psor.html), [Number[psor]](../../sl/feat/Number-psor.html) and [Variant](../../sl/feat/Variant.html)) or preserve some finer-grained morphological information encoded in the original ssj500k treebank (such as [Abbr](../../sl/feat/Abbr.html) and [NumForm](../../sl/feat/NumForm.html)). + The Slovenian UD tagset includes all universal POS tags and features except for [Voice](Voice). In addition to that, the set of universal features has been extended with five additional features to either describe language-specific features (such as [Gender[psor]](../../sl/feat/Gender-psor.html), [Number[psor]](../../sl/feat/Number-psor.html) and [Variant](../../sl/feat/Variant.html)) or preserve some finer-grained morphological information encoded in the original ssj500k treebank (such as [Abbr](../../sl/feat/Abbr.html), [Foreign](../../sl/feat/Foreign.html) and [NumForm](../../sl/feat/NumForm.html)). ? ++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++ The conversion principles for individual POS tags and features are detailed in the corresponding Slovenian guidelines and the original JOS morphosyntactic tags have been preserved in the language-specific FEATS column. Further improvements and manual revisions of this work are still a work in progress.
2
0.142857
1
1
a1f3a7c202abafaa2870fba18ca88dd6490dd329
ui/src/dashboards/constants/gaugeColors.js
ui/src/dashboards/constants/gaugeColors.js
export const GAUGE_COLORS = [ { hex: '#BF3D5E', text: 'Ruby', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#F95F53', text: 'Curacao', }, { hex: '#F48D38', text: 'Tiger', }, { hex: '#FFB94A', text: 'Pineapple', }, { hex: '#FFD255', text: 'Thunder', }, { hex: '#7CE490', text: 'Honeydew', }, { hex: '#4ED8A0', text: 'Rainforest', }, { hex: '#32B08C', text: 'Viridian', }, { hex: '#4591ED', text: 'Ocean', }, { hex: '#22ADF6', text: 'Pool', }, { hex: '#00C9FF', text: 'Laser', }, { hex: '#513CC6', text: 'Planet', }, { hex: '#7A65F2', text: 'Star', }, { hex: '#9394FF', text: 'Comet', }, ]
export const GAUGE_COLORS = [ { hex: '#BF3D5E', text: 'Ruby', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#F95F53', text: 'Curacao', }, { hex: '#F48D38', text: 'Tiger', }, { hex: '#FFB94A', text: 'Pineapple', }, { hex: '#FFD255', text: 'Thunder', }, { hex: '#7CE490', text: 'Honeydew', }, { hex: '#4ED8A0', text: 'Rainforest', }, { hex: '#32B08C', text: 'Viridian', }, { hex: '#4591ED', text: 'Ocean', }, { hex: '#22ADF6', text: 'Pool', }, { hex: '#00C9FF', text: 'Laser', }, { hex: '#513CC6', text: 'Planet', }, { hex: '#7A65F2', text: 'Star', }, { hex: '#9394FF', text: 'Comet', }, ]
Remove redundant color from gauge colors list
Remove redundant color from gauge colors list
JavaScript
mit
influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,li-ang/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb
javascript
## Code Before: export const GAUGE_COLORS = [ { hex: '#BF3D5E', text: 'Ruby', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#F95F53', text: 'Curacao', }, { hex: '#F48D38', text: 'Tiger', }, { hex: '#FFB94A', text: 'Pineapple', }, { hex: '#FFD255', text: 'Thunder', }, { hex: '#7CE490', text: 'Honeydew', }, { hex: '#4ED8A0', text: 'Rainforest', }, { hex: '#32B08C', text: 'Viridian', }, { hex: '#4591ED', text: 'Ocean', }, { hex: '#22ADF6', text: 'Pool', }, { hex: '#00C9FF', text: 'Laser', }, { hex: '#513CC6', text: 'Planet', }, { hex: '#7A65F2', text: 'Star', }, { hex: '#9394FF', text: 'Comet', }, ] ## Instruction: Remove redundant color from gauge colors list ## Code After: export const GAUGE_COLORS = [ { hex: '#BF3D5E', text: 'Ruby', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#F95F53', text: 'Curacao', }, { hex: '#F48D38', text: 'Tiger', }, { hex: '#FFB94A', text: 'Pineapple', }, { hex: '#FFD255', text: 'Thunder', }, { hex: '#7CE490', text: 'Honeydew', }, { hex: '#4ED8A0', text: 'Rainforest', }, { hex: '#32B08C', text: 'Viridian', }, { hex: '#4591ED', text: 'Ocean', }, { hex: '#22ADF6', text: 'Pool', }, { hex: '#00C9FF', text: 'Laser', }, { hex: '#513CC6', text: 'Planet', }, { hex: '#7A65F2', text: 'Star', }, { hex: '#9394FF', text: 'Comet', }, ]
export const GAUGE_COLORS = [ { hex: '#BF3D5E', text: 'Ruby', - }, - { - hex: '#DC4E58', - text: 'Fire', }, { hex: '#DC4E58', text: 'Fire', }, { hex: '#F95F53', text: 'Curacao', }, { hex: '#F48D38', text: 'Tiger', }, { hex: '#FFB94A', text: 'Pineapple', }, { hex: '#FFD255', text: 'Thunder', }, { hex: '#7CE490', text: 'Honeydew', }, { hex: '#4ED8A0', text: 'Rainforest', }, { hex: '#32B08C', text: 'Viridian', }, { hex: '#4591ED', text: 'Ocean', }, { hex: '#22ADF6', text: 'Pool', }, { hex: '#00C9FF', text: 'Laser', }, { hex: '#513CC6', text: 'Planet', }, { hex: '#7A65F2', text: 'Star', }, { hex: '#9394FF', text: 'Comet', }, ]
4
0.060606
0
4
841271843d8969197683c10ae75ed7bf6e76f68f
src/desktop/apps/search2/client.tsx
src/desktop/apps/search2/client.tsx
import { buildClientApp } from "reaction/Artsy/Router/client" import { routes } from "reaction/Apps/Search/routes" import { data as sd } from "sharify" import React from "react" import ReactDOM from "react-dom" const mediator = require("desktop/lib/mediator.coffee") buildClientApp({ routes, context: { user: sd.CURRENT_USER, mediator, }, }) .then(({ ClientApp }) => { ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root")) document.getElementById("search-results-skeleton").remove() }) .catch(error => { console.error(error) }) if (module.hot) { module.hot.accept() }
import { buildClientApp } from "reaction/Artsy/Router/client" import { routes } from "reaction/Apps/Search/routes" import { data as sd } from "sharify" import React from "react" import ReactDOM from "react-dom" const mediator = require("desktop/lib/mediator.coffee") buildClientApp({ routes, context: { user: sd.CURRENT_USER, mediator, }, }) .then(({ ClientApp }) => { ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root")) document.getElementById("loading-container").remove() }) .catch(error => { console.error(error) }) if (module.hot) { module.hot.accept() }
Update identifer of loading container
Update identifer of loading container Follow up to https://github.com/artsy/force/pull/3910 The identifier was updated following review feedback, but the client-side callback which removes the loading container still referenced the old value. This commit makes that update.
TypeScript
mit
cavvia/force-1,anandaroop/force,cavvia/force-1,anandaroop/force,joeyAghion/force,oxaudo/force,erikdstock/force,artsy/force,eessex/force,damassi/force,yuki24/force,izakp/force,eessex/force,artsy/force-public,artsy/force-public,damassi/force,yuki24/force,oxaudo/force,oxaudo/force,erikdstock/force,artsy/force,izakp/force,erikdstock/force,joeyAghion/force,joeyAghion/force,joeyAghion/force,izakp/force,eessex/force,artsy/force,izakp/force,eessex/force,yuki24/force,erikdstock/force,damassi/force,anandaroop/force,cavvia/force-1,oxaudo/force,anandaroop/force,yuki24/force,damassi/force,cavvia/force-1,artsy/force
typescript
## Code Before: import { buildClientApp } from "reaction/Artsy/Router/client" import { routes } from "reaction/Apps/Search/routes" import { data as sd } from "sharify" import React from "react" import ReactDOM from "react-dom" const mediator = require("desktop/lib/mediator.coffee") buildClientApp({ routes, context: { user: sd.CURRENT_USER, mediator, }, }) .then(({ ClientApp }) => { ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root")) document.getElementById("search-results-skeleton").remove() }) .catch(error => { console.error(error) }) if (module.hot) { module.hot.accept() } ## Instruction: Update identifer of loading container Follow up to https://github.com/artsy/force/pull/3910 The identifier was updated following review feedback, but the client-side callback which removes the loading container still referenced the old value. This commit makes that update. ## Code After: import { buildClientApp } from "reaction/Artsy/Router/client" import { routes } from "reaction/Apps/Search/routes" import { data as sd } from "sharify" import React from "react" import ReactDOM from "react-dom" const mediator = require("desktop/lib/mediator.coffee") buildClientApp({ routes, context: { user: sd.CURRENT_USER, mediator, }, }) .then(({ ClientApp }) => { ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root")) document.getElementById("loading-container").remove() }) .catch(error => { console.error(error) }) if (module.hot) { module.hot.accept() }
import { buildClientApp } from "reaction/Artsy/Router/client" import { routes } from "reaction/Apps/Search/routes" import { data as sd } from "sharify" import React from "react" import ReactDOM from "react-dom" const mediator = require("desktop/lib/mediator.coffee") buildClientApp({ routes, context: { user: sd.CURRENT_USER, mediator, }, }) .then(({ ClientApp }) => { ReactDOM.hydrate(<ClientApp />, document.getElementById("react-root")) - document.getElementById("search-results-skeleton").remove() + document.getElementById("loading-container").remove() }) .catch(error => { console.error(error) }) if (module.hot) { module.hot.accept() }
2
0.076923
1
1
c7e3601278b85dfb904ca7024911e228e85974db
index.html
index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>OSRM matching example</title> <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' /> <link rel="stylesheet" href="css/leaflet-routing-machine.css" /> <link rel="stylesheet" href="css/site.css" /> </head> <body> <div id="map" class="map"></div> <div id="probs" class="info"></div> <div id="info" class="info"></div> <script src="http://d3js.org/d3.v3.min.js"></script> <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script> <script src="js/leaflet-routing-machine.js"></script> <script src="site.js"></script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>OSRM matching example</title> <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' /> <link rel="stylesheet" href="css/leaflet-routing-machine.css" /> <link rel="stylesheet" href="css/site.css" /> </head> <body> <div id="map" class="map"></div> <div id="probs" class="info"></div> <div id="info" class="info"></div> <script src="js/d3.js"></script> <script src='js/mapbox.js'></script> <script src='js/jquery.js'></script> <script src='js/togeojson.js'></script> <script src="js/leaflet-routing-machine.js"></script> <script src="site.js"></script> </body> </html>
Use local copy of js dependencies
Use local copy of js dependencies
HTML
bsd-2-clause
mapbox/osrm-matching-inspection,mapbox/osrm-matching-inspection,mapbox/osrm-matching-inspection
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>OSRM matching example</title> <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' /> <link rel="stylesheet" href="css/leaflet-routing-machine.css" /> <link rel="stylesheet" href="css/site.css" /> </head> <body> <div id="map" class="map"></div> <div id="probs" class="info"></div> <div id="info" class="info"></div> <script src="http://d3js.org/d3.v3.min.js"></script> <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script> <script src="js/leaflet-routing-machine.js"></script> <script src="site.js"></script> </body> </html> ## Instruction: Use local copy of js dependencies ## Code After: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>OSRM matching example</title> <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' /> <link rel="stylesheet" href="css/leaflet-routing-machine.css" /> <link rel="stylesheet" href="css/site.css" /> </head> <body> <div id="map" class="map"></div> <div id="probs" class="info"></div> <div id="info" class="info"></div> <script src="js/d3.js"></script> <script src='js/mapbox.js'></script> <script src='js/jquery.js'></script> <script src='js/togeojson.js'></script> <script src="js/leaflet-routing-machine.js"></script> <script src="site.js"></script> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>OSRM matching example</title> <link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' /> <link rel="stylesheet" href="css/leaflet-routing-machine.css" /> <link rel="stylesheet" href="css/site.css" /> </head> <body> <div id="map" class="map"></div> <div id="probs" class="info"></div> <div id="info" class="info"></div> - <script src="http://d3js.org/d3.v3.min.js"></script> - <script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script> + <script src="js/d3.js"></script> + <script src='js/mapbox.js'></script> + <script src='js/jquery.js'></script> + <script src='js/togeojson.js'></script> <script src="js/leaflet-routing-machine.js"></script> <script src="site.js"></script> </body> </html>
6
0.315789
4
2
5bba152fb7e847f22d333bcb4d0b1a880ea6a910
app/models/Subscription.scala
app/models/Subscription.scala
package models import play.api.Play.current import play.api.mvc._ import play.api.db._ sealed trait Frequency case object Daily extends Frequency case object Weekly extends Frequency case object Monthly extends Frequency case class Subscription( email: String, frequency: Frequency ) object Subscription { // def getAll = List(Subscription("test@test.example.com", Daily), Subscription("test@test.gmail.com", Monthly)) def getAll: List[Subscription] = { val l: List[Subscription] = List() val conn = DB.getConnection() try { val stmt = conn.createStatement val rs = stmt.executeQuery("SELECT 9 as testkey ") while (rs.next()) { val s = new Subscription(rs.getString("testkey"), Daily) l :+ s } } finally { conn.close() } // var conn: Connection = null // try { // conn = DB.getConnection("mydb") // val stmt = conn.createStatement // val rs = stmt.executeQuery("SELECT test@test.com as email ") // while (rs.next()) { // val s = new Subscription(rs.getString("email"), Daily) // l :+ s // } // } finally { // if (conn != null) { // conn.close() // } // } return l } }
package models import play.api.Play.current import play.api.mvc._ import play.api.db._ import anorm.{Row, SQL} sealed trait Frequency case object Daily extends Frequency case object Weekly extends Frequency case object Monthly extends Frequency case class Subscription( email: String, frequency: Frequency ) object Subscription { def getAll: List[Subscription] = { val conn = DB.getConnection() val subscriptions = SQL("Select email,frequency from subscriptions")().collect { case Row(name: String, "daily") => new Subscription(name, Daily) case Row(name: String, "weekly") => new Subscription(name, Weekly) case Row(name: String, "monthly") => new Subscription(name, Monthly) } return subscriptions.toList } }
Add anorm support for case classes
Add anorm support for case classes
Scala
mit
CapeSepias/psycho-test-framework,MysterionRise/psycho-test-framework,CapeSepias/psycho-test-framework
scala
## Code Before: package models import play.api.Play.current import play.api.mvc._ import play.api.db._ sealed trait Frequency case object Daily extends Frequency case object Weekly extends Frequency case object Monthly extends Frequency case class Subscription( email: String, frequency: Frequency ) object Subscription { // def getAll = List(Subscription("test@test.example.com", Daily), Subscription("test@test.gmail.com", Monthly)) def getAll: List[Subscription] = { val l: List[Subscription] = List() val conn = DB.getConnection() try { val stmt = conn.createStatement val rs = stmt.executeQuery("SELECT 9 as testkey ") while (rs.next()) { val s = new Subscription(rs.getString("testkey"), Daily) l :+ s } } finally { conn.close() } // var conn: Connection = null // try { // conn = DB.getConnection("mydb") // val stmt = conn.createStatement // val rs = stmt.executeQuery("SELECT test@test.com as email ") // while (rs.next()) { // val s = new Subscription(rs.getString("email"), Daily) // l :+ s // } // } finally { // if (conn != null) { // conn.close() // } // } return l } } ## Instruction: Add anorm support for case classes ## Code After: package models import play.api.Play.current import play.api.mvc._ import play.api.db._ import anorm.{Row, SQL} sealed trait Frequency case object Daily extends Frequency case object Weekly extends Frequency case object Monthly extends Frequency case class Subscription( email: String, frequency: Frequency ) object Subscription { def getAll: List[Subscription] = { val conn = DB.getConnection() val subscriptions = SQL("Select email,frequency from subscriptions")().collect { case Row(name: String, "daily") => new Subscription(name, Daily) case Row(name: String, "weekly") => new Subscription(name, Weekly) case Row(name: String, "monthly") => new Subscription(name, Monthly) } return subscriptions.toList } }
package models import play.api.Play.current import play.api.mvc._ import play.api.db._ + import anorm.{Row, SQL} sealed trait Frequency case object Daily extends Frequency case object Weekly extends Frequency case object Monthly extends Frequency case class Subscription( email: String, frequency: Frequency ) object Subscription { - // def getAll = List(Subscription("test@test.example.com", Daily), Subscription("test@test.gmail.com", Monthly)) - def getAll: List[Subscription] = { - val l: List[Subscription] = List() - val conn = DB.getConnection() + val subscriptions = SQL("Select email,frequency from subscriptions")().collect { + case Row(name: String, "daily") => new Subscription(name, Daily) + case Row(name: String, "weekly") => new Subscription(name, Weekly) + case Row(name: String, "monthly") => new Subscription(name, Monthly) - try { - val stmt = conn.createStatement - val rs = stmt.executeQuery("SELECT 9 as testkey ") - while (rs.next()) { - val s = new Subscription(rs.getString("testkey"), Daily) - l :+ s - } - } finally { - conn.close() } + return subscriptions.toList - // var conn: Connection = null - // try { - // conn = DB.getConnection("mydb") - // val stmt = conn.createStatement - // val rs = stmt.executeQuery("SELECT test@test.com as email ") - // while (rs.next()) { - // val s = new Subscription(rs.getString("email"), Daily) - // l :+ s - // } - // } finally { - // if (conn != null) { - // conn.close() - // } - // } - return l } }
34
0.607143
6
28
7eb7ba565e7255be993f9088f1a56dcf49f9ec56
README.md
README.md
It can be used to copy/paste or for branching Index: * [Pokémon Go Children Guardian](tree/prototype/pokemon_go_children_guardian)
It can be used to copy/paste or for branching Index: * [Pokémon Go Children Guardian](https://github.com/darrillaga/base-android-prototype/tree/prototype/pokemon_go_children_guardian)
Fix link at readme index
Fix link at readme index
Markdown
apache-2.0
darrillaga/base-android-prototype
markdown
## Code Before: It can be used to copy/paste or for branching Index: * [Pokémon Go Children Guardian](tree/prototype/pokemon_go_children_guardian) ## Instruction: Fix link at readme index ## Code After: It can be used to copy/paste or for branching Index: * [Pokémon Go Children Guardian](https://github.com/darrillaga/base-android-prototype/tree/prototype/pokemon_go_children_guardian)
It can be used to copy/paste or for branching Index: - * [Pokémon Go Children Guardian](tree/prototype/pokemon_go_children_guardian) + * [Pokémon Go Children Guardian](https://github.com/darrillaga/base-android-prototype/tree/prototype/pokemon_go_children_guardian)
2
0.333333
1
1
2e3538ea06440ff767a73be044c9b435e613330d
README.md
README.md
HID Keyboard driver with function keys for Chromebooks that use the Chromium EC # Compatibility Works on the Chromebook Pixel and any chromebook released after the Pixel. # Function key mapping Ctrl + F1 = Back Ctrl + F2 = Forward Ctrl + F3 = Refresh Ctrl + F4 = Full Screen Ctrl + F5 = Task View Ctrl + Shift + F5 = Capture Screenshot Ctrl + F6 = Brightness Down Ctrl + F7 = Brightness Up Ctrl + F8 = Volume Mute Ctrl + F9 = Volume Down Ctrl + F10 = Volume Up Ctrl + Backspace = Delete Ctrl + Alt + Backspace = Ctrl + Alt + Delete Ctrl + Up = Page Up Ctrl + Down = Page Down Right Ctrl + 1 = F1 Right Ctrl + 2 = F2 Right Ctrl + 3 = F3 Right Ctrl + 4 = F4 Right Ctrl + 5 = F5 Right Ctrl + 6 = F6 Right Ctrl + 7 = F7 Right Ctrl + 8 = F8 Right Ctrl + 9 = F9 Right Ctrl + 0 = F10 Right Ctrl + - = F11 Right Ctrl + = = F12 # License croskeyboard3 is © 2015, CoolStar. Open Sourced under the Apache 2.0 License.
HID Keyboard driver with function keys for Chromebooks that use the Chromium EC # Compatibility Works on the Chromebook Pixel and any chromebook released after the Pixel. # Function key mapping Left Ctrl + F1 = Back Left Ctrl + F2 = Forward Left Ctrl + F3 = Refresh Left Ctrl + F4 = Full Screen Left Ctrl + F5 = Task View Left Ctrl + Shift + F5 = Capture Screenshot Left Ctrl + F6 = Brightness Down Left Ctrl + F7 = Brightness Up Left Ctrl + F8 = Volume Mute Left Ctrl + F9 = Volume Down Left Ctrl + F10 = Volume Up Left Ctrl + Backspace = Delete Left Ctrl + Alt + Backspace = Ctrl + Alt + Delete LeftCtrl + Up = Page Up Left Ctrl + Down = Page Down Right Ctrl + 1 = F1 Right Ctrl + 2 = F2 Right Ctrl + 3 = F3 Right Ctrl + 4 = F4 Right Ctrl + 5 = F5 Right Ctrl + 6 = F6 Right Ctrl + 7 = F7 Right Ctrl + 8 = F8 Right Ctrl + 9 = F9 Right Ctrl + 0 = F10 Right Ctrl + - = F11 Right Ctrl + = = F12 # License croskeyboard3 is © 2015, CoolStar. Open Sourced under the Apache 2.0 License.
Clarify left vs. right ctrl
Clarify left vs. right ctrl
Markdown
apache-2.0
coolstar/croskeyboard3,coolstar/croskeyboard3
markdown
## Code Before: HID Keyboard driver with function keys for Chromebooks that use the Chromium EC # Compatibility Works on the Chromebook Pixel and any chromebook released after the Pixel. # Function key mapping Ctrl + F1 = Back Ctrl + F2 = Forward Ctrl + F3 = Refresh Ctrl + F4 = Full Screen Ctrl + F5 = Task View Ctrl + Shift + F5 = Capture Screenshot Ctrl + F6 = Brightness Down Ctrl + F7 = Brightness Up Ctrl + F8 = Volume Mute Ctrl + F9 = Volume Down Ctrl + F10 = Volume Up Ctrl + Backspace = Delete Ctrl + Alt + Backspace = Ctrl + Alt + Delete Ctrl + Up = Page Up Ctrl + Down = Page Down Right Ctrl + 1 = F1 Right Ctrl + 2 = F2 Right Ctrl + 3 = F3 Right Ctrl + 4 = F4 Right Ctrl + 5 = F5 Right Ctrl + 6 = F6 Right Ctrl + 7 = F7 Right Ctrl + 8 = F8 Right Ctrl + 9 = F9 Right Ctrl + 0 = F10 Right Ctrl + - = F11 Right Ctrl + = = F12 # License croskeyboard3 is © 2015, CoolStar. Open Sourced under the Apache 2.0 License. ## Instruction: Clarify left vs. right ctrl ## Code After: HID Keyboard driver with function keys for Chromebooks that use the Chromium EC # Compatibility Works on the Chromebook Pixel and any chromebook released after the Pixel. # Function key mapping Left Ctrl + F1 = Back Left Ctrl + F2 = Forward Left Ctrl + F3 = Refresh Left Ctrl + F4 = Full Screen Left Ctrl + F5 = Task View Left Ctrl + Shift + F5 = Capture Screenshot Left Ctrl + F6 = Brightness Down Left Ctrl + F7 = Brightness Up Left Ctrl + F8 = Volume Mute Left Ctrl + F9 = Volume Down Left Ctrl + F10 = Volume Up Left Ctrl + Backspace = Delete Left Ctrl + Alt + Backspace = Ctrl + Alt + Delete LeftCtrl + Up = Page Up Left Ctrl + Down = Page Down Right Ctrl + 1 = F1 Right Ctrl + 2 = F2 Right Ctrl + 3 = F3 Right Ctrl + 4 = F4 Right Ctrl + 5 = F5 Right Ctrl + 6 = F6 Right Ctrl + 7 = F7 Right Ctrl + 8 = F8 Right Ctrl + 9 = F9 Right Ctrl + 0 = F10 Right Ctrl + - = F11 Right Ctrl + = = F12 # License croskeyboard3 is © 2015, CoolStar. Open Sourced under the Apache 2.0 License.
HID Keyboard driver with function keys for Chromebooks that use the Chromium EC # Compatibility Works on the Chromebook Pixel and any chromebook released after the Pixel. # Function key mapping - Ctrl + F1 = Back + Left Ctrl + F1 = Back ? +++++ - Ctrl + F2 = Forward + Left Ctrl + F2 = Forward ? +++++ - Ctrl + F3 = Refresh + Left Ctrl + F3 = Refresh ? +++++ - Ctrl + F4 = Full Screen + Left Ctrl + F4 = Full Screen ? +++++ - Ctrl + F5 = Task View + Left Ctrl + F5 = Task View ? +++++ - Ctrl + Shift + F5 = Capture Screenshot + Left Ctrl + Shift + F5 = Capture Screenshot ? +++++ - Ctrl + F6 = Brightness Down + Left Ctrl + F6 = Brightness Down ? +++++ - Ctrl + F7 = Brightness Up + Left Ctrl + F7 = Brightness Up ? +++++ - Ctrl + F8 = Volume Mute + Left Ctrl + F8 = Volume Mute ? +++++ - Ctrl + F9 = Volume Down + Left Ctrl + F9 = Volume Down ? +++++ - Ctrl + F10 = Volume Up + Left Ctrl + F10 = Volume Up ? +++++ - Ctrl + Backspace = Delete + Left Ctrl + Backspace = Delete ? +++++ - Ctrl + Alt + Backspace = Ctrl + Alt + Delete + Left Ctrl + Alt + Backspace = Ctrl + Alt + Delete ? +++++ - Ctrl + Up = Page Up + LeftCtrl + Up = Page Up ? ++++ - Ctrl + Down = Page Down + Left Ctrl + Down = Page Down ? +++++ Right Ctrl + 1 = F1 Right Ctrl + 2 = F2 Right Ctrl + 3 = F3 Right Ctrl + 4 = F4 Right Ctrl + 5 = F5 Right Ctrl + 6 = F6 Right Ctrl + 7 = F7 Right Ctrl + 8 = F8 Right Ctrl + 9 = F9 Right Ctrl + 0 = F10 Right Ctrl + - = F11 Right Ctrl + = = F12 # License croskeyboard3 is © 2015, CoolStar. Open Sourced under the Apache 2.0 License.
30
0.461538
15
15
67f156b6054227db9a69016ffe37ddf1728c75df
platform/plugins/Users/handlers/Users/after/Q_responseExtras.php
platform/plugins/Users/handlers/Users/after/Q_responseExtras.php
<?php function Users_after_Q_responseExtras() { if ($preloaded = Users_User::$preloaded) { Q_Response::setScriptData( 'Q.plugins.Users.User.preloaded', Db::exportArray($preloaded, array('asAvatar' => true)) ); } Q_Response::setScriptData('Q.plugins.Users.roles', Users::roles()); $user = Users::loggedInUser(false, false); Q_Response::addHtmlCssClass($user ? 'Users_loggedIn' : 'Users_loggedOut'); }
<?php function Users_after_Q_responseExtras() { if ($preloaded = Users_User::$preloaded) { Q_Response::setScriptData( 'Q.plugins.Users.User.preloaded', Db::exportArray($preloaded, array('asAvatar' => true)) ); } $roles = Users::roles(); foreach ($roles as $label => $role) { Q_Response::setScriptData('Q.plugins.Users.roles.'.$label, $role); } $user = Users::loggedInUser(false, false); Q_Response::addHtmlCssClass($user ? 'Users_loggedIn' : 'Users_loggedOut'); }
Set Q.plugins.Users.roles object label by label instead rewrite whole object.
Set Q.plugins.Users.roles object label by label instead rewrite whole object.
PHP
agpl-3.0
AndreyTepaykin/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,EGreg/Platform,AndreyTepaykin/Platform,EGreg/Platform,Qbix/Platform,EGreg/Platform,EGreg/Platform,Qbix/Platform,Qbix/Platform,Qbix/Platform
php
## Code Before: <?php function Users_after_Q_responseExtras() { if ($preloaded = Users_User::$preloaded) { Q_Response::setScriptData( 'Q.plugins.Users.User.preloaded', Db::exportArray($preloaded, array('asAvatar' => true)) ); } Q_Response::setScriptData('Q.plugins.Users.roles', Users::roles()); $user = Users::loggedInUser(false, false); Q_Response::addHtmlCssClass($user ? 'Users_loggedIn' : 'Users_loggedOut'); } ## Instruction: Set Q.plugins.Users.roles object label by label instead rewrite whole object. ## Code After: <?php function Users_after_Q_responseExtras() { if ($preloaded = Users_User::$preloaded) { Q_Response::setScriptData( 'Q.plugins.Users.User.preloaded', Db::exportArray($preloaded, array('asAvatar' => true)) ); } $roles = Users::roles(); foreach ($roles as $label => $role) { Q_Response::setScriptData('Q.plugins.Users.roles.'.$label, $role); } $user = Users::loggedInUser(false, false); Q_Response::addHtmlCssClass($user ? 'Users_loggedIn' : 'Users_loggedOut'); }
<?php function Users_after_Q_responseExtras() { if ($preloaded = Users_User::$preloaded) { Q_Response::setScriptData( 'Q.plugins.Users.User.preloaded', Db::exportArray($preloaded, array('asAvatar' => true)) ); } + $roles = Users::roles(); + foreach ($roles as $label => $role) { - Q_Response::setScriptData('Q.plugins.Users.roles', Users::roles()); ? ^^^^^^^ --- + Q_Response::setScriptData('Q.plugins.Users.roles.'.$label, $role); ? + + +++++++ ^ + } $user = Users::loggedInUser(false, false); Q_Response::addHtmlCssClass($user ? 'Users_loggedIn' : 'Users_loggedOut'); }
5
0.384615
4
1
0316ea451a3667420b735e5218e65b527ae49c08
canned/influxdb_queryExecutor.json
canned/influxdb_queryExecutor.json
{ "id": "543aa120-14ba-46a2-8ef9-6e6c7be3d60e", "measurement": "influxdb_queryExecutor", "app": "influxdb", "autoflow": true, "cells": [ { "x": 0, "y": 0, "w": 4, "h": 4, "i": "974f6948-d79a-4925-8162-193e6ddf1c7a", "name": "InfluxDB - Query Performance", "queries": [ { "query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) AS \"duration\" FROM \"influxdb_queryExecutor\"", "groupbys": [], "wheres": [] }, { "query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) AS \"queries_executed\" FROM \"influxdb_queryExecutor\"", "groupbys": [], "wheres": [] } ] } ] }
{ "id": "543aa120-14ba-46a2-8ef9-6e6c7be3d60e", "measurement": "influxdb_queryExecutor", "app": "influxdb", "autoflow": true, "cells": [ { "x": 0, "y": 0, "w": 4, "h": 4, "i": "974f6948-d79a-4925-8162-193e6ddf1c7a", "name": "InfluxDB - Query Performance", "queries": [ { "query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) / 1000000 AS \"duration_ms\" FROM \"influxdb_queryExecutor\"", "label": "ms", "groupbys": [], "wheres": [] }, { "query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) / 1000000 AS \"queries_executed_ms\" FROM \"influxdb_queryExecutor\"", "label": "ms", "groupbys": [], "wheres": [] } ] } ] }
Update canned influx layout to use milliseconds of duration
Update canned influx layout to use milliseconds of duration
JSON
agpl-3.0
brianbaker/chronograf,brianbaker/chronograf,brianbaker/chronograf,brianbaker/chronograf,brianbaker/chronograf
json
## Code Before: { "id": "543aa120-14ba-46a2-8ef9-6e6c7be3d60e", "measurement": "influxdb_queryExecutor", "app": "influxdb", "autoflow": true, "cells": [ { "x": 0, "y": 0, "w": 4, "h": 4, "i": "974f6948-d79a-4925-8162-193e6ddf1c7a", "name": "InfluxDB - Query Performance", "queries": [ { "query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) AS \"duration\" FROM \"influxdb_queryExecutor\"", "groupbys": [], "wheres": [] }, { "query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) AS \"queries_executed\" FROM \"influxdb_queryExecutor\"", "groupbys": [], "wheres": [] } ] } ] } ## Instruction: Update canned influx layout to use milliseconds of duration ## Code After: { "id": "543aa120-14ba-46a2-8ef9-6e6c7be3d60e", "measurement": "influxdb_queryExecutor", "app": "influxdb", "autoflow": true, "cells": [ { "x": 0, "y": 0, "w": 4, "h": 4, "i": "974f6948-d79a-4925-8162-193e6ddf1c7a", "name": "InfluxDB - Query Performance", "queries": [ { "query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) / 1000000 AS \"duration_ms\" FROM \"influxdb_queryExecutor\"", "label": "ms", "groupbys": [], "wheres": [] }, { "query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) / 1000000 AS \"queries_executed_ms\" FROM \"influxdb_queryExecutor\"", "label": "ms", "groupbys": [], "wheres": [] } ] } ] }
{ "id": "543aa120-14ba-46a2-8ef9-6e6c7be3d60e", "measurement": "influxdb_queryExecutor", "app": "influxdb", "autoflow": true, "cells": [ { "x": 0, "y": 0, "w": 4, "h": 4, "i": "974f6948-d79a-4925-8162-193e6ddf1c7a", "name": "InfluxDB - Query Performance", "queries": [ { - "query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) AS \"duration\" FROM \"influxdb_queryExecutor\"", + "query": "SELECT non_negative_derivative(max(\"queryDurationNs\"), 1s) / 1000000 AS \"duration_ms\" FROM \"influxdb_queryExecutor\"", ? ++++++++++ +++ + "label": "ms", "groupbys": [], "wheres": [] }, { - "query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) AS \"queries_executed\" FROM \"influxdb_queryExecutor\"", + "query": "SELECT non_negative_derivative(max(\"queriesExecuted\"), 1s) / 1000000 AS \"queries_executed_ms\" FROM \"influxdb_queryExecutor\"", ? ++++++++++ +++ + "label": "ms", "groupbys": [], "wheres": [] } ] } ] }
6
0.214286
4
2
67deceb9785a72afb39c3942634a1361931e80c5
lib/mix/tasks/build_json.ex
lib/mix/tasks/build_json.ex
defmodule Mix.Tasks.BuildJson do # Compiles the CSVs into a usable JSON file. @moduledoc false use Mix.Task def run(_) do all_subdivisions = File.stream!(csv("subdivision-names.csv")) |> CSV.decode!(strip_fields: true) |> Enum.to_list() File.stream!(csv("country-codes.csv")) |> CSV.decode!(strip_fields: true) |> Enum.reduce(%{}, fn [code_2, _, _, _, "officially-assigned", name | _], acc -> Map.put_new(acc, code_2, %{ "name" => name, "divisions" => list_subdivisions(all_subdivisions, code_2) }) _row, acc -> acc end) |> Jason.encode!() |> Jason.Formatter.pretty_print() |> write_json() end defp list_subdivisions(all_subdivisions, country_code) do Enum.reduce(all_subdivisions, %{}, fn [^country_code, _, _, _, division_code, _, _, name | _], acc -> Map.put_new(acc, division_code, name) _, acc -> acc end) end defp write_json(json) do File.write!(:code.priv_dir(:shippex) ++ '/iso-3166-2.json', json) end defp csv(path) do :code.priv_dir(:shippex) ++ '/csv/#{path}' end end
defmodule Mix.Tasks.BuildJson do # Compiles the CSVs into a usable JSON file. @moduledoc false use Mix.Task def run(_) do all_subdivisions = File.stream!(csv("subdivision-names.csv")) |> CSV.decode!(strip_fields: true) |> Enum.to_list() File.stream!(csv("country-codes.csv")) |> CSV.decode!(strip_fields: true) |> Enum.reduce(%{}, fn [code_2, _, _, _, "officially-assigned", name, short_name_caps, full_name], acc -> Map.put_new(acc, code_2, %{ "name" => name, "full_name" => full_name, "short_name" => short_name_caps, "divisions" => list_subdivisions(all_subdivisions, code_2) }) _row, acc -> acc end) |> Jason.encode!() |> Jason.Formatter.pretty_print() |> write_json() end defp list_subdivisions(all_subdivisions, country_code) do Enum.reduce(all_subdivisions, %{}, fn [^country_code, _, _, _, division_code, _, _, name | _], acc -> Map.put_new(acc, division_code, name) _, acc -> acc end) end defp write_json(json) do File.write!(:code.priv_dir(:shippex) ++ '/iso-3166-2.json', json) end defp csv(path) do :code.priv_dir(:shippex) ++ '/csv/#{path}' end end
Include short name and full name in ISO data
Include short name and full name in ISO data
Elixir
mit
whitepaperclip/shippex
elixir
## Code Before: defmodule Mix.Tasks.BuildJson do # Compiles the CSVs into a usable JSON file. @moduledoc false use Mix.Task def run(_) do all_subdivisions = File.stream!(csv("subdivision-names.csv")) |> CSV.decode!(strip_fields: true) |> Enum.to_list() File.stream!(csv("country-codes.csv")) |> CSV.decode!(strip_fields: true) |> Enum.reduce(%{}, fn [code_2, _, _, _, "officially-assigned", name | _], acc -> Map.put_new(acc, code_2, %{ "name" => name, "divisions" => list_subdivisions(all_subdivisions, code_2) }) _row, acc -> acc end) |> Jason.encode!() |> Jason.Formatter.pretty_print() |> write_json() end defp list_subdivisions(all_subdivisions, country_code) do Enum.reduce(all_subdivisions, %{}, fn [^country_code, _, _, _, division_code, _, _, name | _], acc -> Map.put_new(acc, division_code, name) _, acc -> acc end) end defp write_json(json) do File.write!(:code.priv_dir(:shippex) ++ '/iso-3166-2.json', json) end defp csv(path) do :code.priv_dir(:shippex) ++ '/csv/#{path}' end end ## Instruction: Include short name and full name in ISO data ## Code After: defmodule Mix.Tasks.BuildJson do # Compiles the CSVs into a usable JSON file. @moduledoc false use Mix.Task def run(_) do all_subdivisions = File.stream!(csv("subdivision-names.csv")) |> CSV.decode!(strip_fields: true) |> Enum.to_list() File.stream!(csv("country-codes.csv")) |> CSV.decode!(strip_fields: true) |> Enum.reduce(%{}, fn [code_2, _, _, _, "officially-assigned", name, short_name_caps, full_name], acc -> Map.put_new(acc, code_2, %{ "name" => name, "full_name" => full_name, "short_name" => short_name_caps, "divisions" => list_subdivisions(all_subdivisions, code_2) }) _row, acc -> acc end) |> Jason.encode!() |> Jason.Formatter.pretty_print() |> write_json() end defp list_subdivisions(all_subdivisions, country_code) do Enum.reduce(all_subdivisions, %{}, fn [^country_code, _, _, _, division_code, _, _, name | _], acc -> Map.put_new(acc, division_code, name) _, acc -> acc end) end defp write_json(json) do File.write!(:code.priv_dir(:shippex) ++ '/iso-3166-2.json', json) end defp csv(path) do :code.priv_dir(:shippex) ++ '/csv/#{path}' end end
defmodule Mix.Tasks.BuildJson do # Compiles the CSVs into a usable JSON file. @moduledoc false use Mix.Task def run(_) do all_subdivisions = File.stream!(csv("subdivision-names.csv")) |> CSV.decode!(strip_fields: true) |> Enum.to_list() File.stream!(csv("country-codes.csv")) |> CSV.decode!(strip_fields: true) |> Enum.reduce(%{}, fn - [code_2, _, _, _, "officially-assigned", name | _], acc -> ? ^ + [code_2, _, _, _, "officially-assigned", name, short_name_caps, full_name], acc -> ? + ^^^^^^^^^^^^^^^^ ++++ ++++ Map.put_new(acc, code_2, %{ "name" => name, + "full_name" => full_name, + "short_name" => short_name_caps, "divisions" => list_subdivisions(all_subdivisions, code_2) }) _row, acc -> acc end) |> Jason.encode!() |> Jason.Formatter.pretty_print() |> write_json() end defp list_subdivisions(all_subdivisions, country_code) do Enum.reduce(all_subdivisions, %{}, fn [^country_code, _, _, _, division_code, _, _, name | _], acc -> Map.put_new(acc, division_code, name) _, acc -> acc end) end defp write_json(json) do File.write!(:code.priv_dir(:shippex) ++ '/iso-3166-2.json', json) end defp csv(path) do :code.priv_dir(:shippex) ++ '/csv/#{path}' end end
4
0.085106
3
1
ffc984edaad5e24fa49d8011cd47cfdc6b6cda14
README.md
README.md
Go from nothing to Operational Data Hub in a matter of minutes. The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database, and expose that data. # Getting Started Visit our [Data Hub Framework website](https://marklogic-community.github.io/marklogic-data-hub/) to get started. ## Don't get this code You don't need to checkout this repo unless you plan to actively contribute changes to the Data Hub Framework. Go to [our website](https://marklogic-community.github.io/marklogic-data-hub/) to get started with DHF. If you really do want to contribute, see our [Contributing Guide](https://github.com/marklogic-community/marklogic-data-hub/blob/master/CONTRIBUTING.md) to get started.
Go from nothing to an Operational Data Hub in a matter of minutes. The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database and then expose that data. # Getting Started Grab the [latest release](https://github.com/marklogic-community/marklogic-data-hub/releases) then visit our [Data Hub Framework website](https://marklogic-community.github.io/marklogic-data-hub/) to get started. ##Advanced Hub Usage Ready to go beyond QuickStart and start using DHF in your own Java or Gradle project? The [Data Hub Framework website](https://marklogic-community.github.io/) also provides that. ## Don't get this code You don't need to checkout this repo unless you plan to actively contribute changes to the Data Hub Framework. Go to [our website](https://marklogic-community.github.io/marklogic-data-hub/) to get started with DHF. If you really do want to contribute, see our [Contributing Guide](https://github.com/marklogic-community/marklogic-data-hub/blob/master/CONTRIBUTING.md) to get started.
Update the readme markdown to include a link to latest releases and make clear the DHF website is also for advanced users, not just getting started
Update the readme markdown to include a link to latest releases and make clear the DHF website is also for advanced users, not just getting started
Markdown
apache-2.0
marklogic/data-hub-in-a-box,marklogic/data-hub-in-a-box,marklogic/data-hub-in-a-box,marklogic/data-hub-in-a-box
markdown
## Code Before: Go from nothing to Operational Data Hub in a matter of minutes. The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database, and expose that data. # Getting Started Visit our [Data Hub Framework website](https://marklogic-community.github.io/marklogic-data-hub/) to get started. ## Don't get this code You don't need to checkout this repo unless you plan to actively contribute changes to the Data Hub Framework. Go to [our website](https://marklogic-community.github.io/marklogic-data-hub/) to get started with DHF. If you really do want to contribute, see our [Contributing Guide](https://github.com/marklogic-community/marklogic-data-hub/blob/master/CONTRIBUTING.md) to get started. ## Instruction: Update the readme markdown to include a link to latest releases and make clear the DHF website is also for advanced users, not just getting started ## Code After: Go from nothing to an Operational Data Hub in a matter of minutes. The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database and then expose that data. # Getting Started Grab the [latest release](https://github.com/marklogic-community/marklogic-data-hub/releases) then visit our [Data Hub Framework website](https://marklogic-community.github.io/marklogic-data-hub/) to get started. ##Advanced Hub Usage Ready to go beyond QuickStart and start using DHF in your own Java or Gradle project? The [Data Hub Framework website](https://marklogic-community.github.io/) also provides that. ## Don't get this code You don't need to checkout this repo unless you plan to actively contribute changes to the Data Hub Framework. Go to [our website](https://marklogic-community.github.io/marklogic-data-hub/) to get started with DHF. If you really do want to contribute, see our [Contributing Guide](https://github.com/marklogic-community/marklogic-data-hub/blob/master/CONTRIBUTING.md) to get started.
- Go from nothing to Operational Data Hub in a matter of minutes. + Go from nothing to an Operational Data Hub in a matter of minutes. ? +++ - The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database, and expose that data. ? - + The MarkLogic Data Hub Framework is a data integration framework and tool-set to quickly and efficiently integrate data from many sources into a single MarkLogic database and then expose that data. ? +++++ # Getting Started + Grab the [latest release](https://github.com/marklogic-community/marklogic-data-hub/releases) then visit our [Data Hub Framework website](https://marklogic-community.github.io/marklogic-data-hub/) to get started. - Visit our [Data Hub Framework website](https://marklogic-community.github.io/marklogic-data-hub/) to get started. + + ##Advanced Hub Usage + Ready to go beyond QuickStart and start using DHF in your own Java or Gradle project? The [Data Hub Framework website](https://marklogic-community.github.io/) also provides that. ## Don't get this code You don't need to checkout this repo unless you plan to actively contribute changes to the Data Hub Framework. Go to [our website](https://marklogic-community.github.io/marklogic-data-hub/) to get started with DHF. If you really do want to contribute, see our [Contributing Guide](https://github.com/marklogic-community/marklogic-data-hub/blob/master/CONTRIBUTING.md) to get started.
9
0.692308
6
3
3be629ad21e6dd47e805e4b88cc91cbc17139587
src/Mgate/SuiviBundle/Resources/views/AvMission/ajouter.html.twig
src/Mgate/SuiviBundle/Resources/views/AvMission/ajouter.html.twig
{% extends "MgateSuiviBundle::layout.html.twig" %} {% block javascript %} {{ form_javascript(form) }} {% endblock %} {% block content_bundle %} <h2>{{ 'suivi.avenant_mission_ajouter'|trans }}</h2> {% include "MgateSuiviBundle:AvMission:formulaire.html.twig" %} <p>--- </p> {% endblock %}
{% extends "MgateSuiviBundle::layout.html.twig" %} {% block javascript %} {{ form_javascript(form) }} {% endblock %} {% block content_title %} {{ 'suivi.avenant_mission_ajouter' |trans({}, 'suivi') }} {% endblock %} {% block content_bundle %} {% include "MgateSuiviBundle:AvMission:formulaire.html.twig" %} {% endblock %}
Add missing translation domain on AvMission/ajouter template
Add missing translation domain on AvMission/ajouter template
Twig
agpl-3.0
N7-Consulting/Incipio,N7-Consulting/Incipio,n7consulting/Incipio,M-GaTE/Jeyser,n7consulting/Incipio,M-GaTE/Jeyser,n7consulting/Incipio,M-GaTE/Jeyser,N7-Consulting/Incipio,M-GaTE/Jeyser,N7-Consulting/Incipio
twig
## Code Before: {% extends "MgateSuiviBundle::layout.html.twig" %} {% block javascript %} {{ form_javascript(form) }} {% endblock %} {% block content_bundle %} <h2>{{ 'suivi.avenant_mission_ajouter'|trans }}</h2> {% include "MgateSuiviBundle:AvMission:formulaire.html.twig" %} <p>--- </p> {% endblock %} ## Instruction: Add missing translation domain on AvMission/ajouter template ## Code After: {% extends "MgateSuiviBundle::layout.html.twig" %} {% block javascript %} {{ form_javascript(form) }} {% endblock %} {% block content_title %} {{ 'suivi.avenant_mission_ajouter' |trans({}, 'suivi') }} {% endblock %} {% block content_bundle %} {% include "MgateSuiviBundle:AvMission:formulaire.html.twig" %} {% endblock %}
{% extends "MgateSuiviBundle::layout.html.twig" %} {% block javascript %} {{ form_javascript(form) }} {% endblock %} + {% block content_title %} + {{ 'suivi.avenant_mission_ajouter' |trans({}, 'suivi') }} + {% endblock %} + {% block content_bundle %} - - - <h2>{{ 'suivi.avenant_mission_ajouter'|trans }}</h2> {% include "MgateSuiviBundle:AvMission:formulaire.html.twig" %} - <p>--- </p> - {% endblock %}
9
0.5625
4
5
2514b13f8f63face91494b2d24ba174a0f6f4643
src/app/styles/theme/_lists.scss
src/app/styles/theme/_lists.scss
@mixin app-menu { z-index: 2; margin: 0; border: $layout-border; border-radius: 2px; min-width: 250px; background: $white; padding: 2px; & > li { @include app-menu-item; } } @mixin app-menu-item { font-size: 15px; padding: 11px 15px; cursor: pointer; &:hover { background: $opaque-black-05; } & > a { color: inherit; &, &:hover { text-decoration: none; } } }
@mixin app-menu { @include box-shadow(2); z-index: 2; margin: 0; border: $layout-border; border-radius: 2px; min-width: 250px; background: $white; padding: 2px; & > li { @include app-menu-item; } } @mixin app-menu-item { font-size: 15px; padding: 11px 15px; cursor: pointer; &:hover { background: $opaque-black-05; } & > a { color: inherit; &, &:hover { text-decoration: none; } } }
Add material shadow to dropdown menus
Add material shadow to dropdown menus
SCSS
mit
meedan/check-web,meedan/check-web,meedan/check-web
scss
## Code Before: @mixin app-menu { z-index: 2; margin: 0; border: $layout-border; border-radius: 2px; min-width: 250px; background: $white; padding: 2px; & > li { @include app-menu-item; } } @mixin app-menu-item { font-size: 15px; padding: 11px 15px; cursor: pointer; &:hover { background: $opaque-black-05; } & > a { color: inherit; &, &:hover { text-decoration: none; } } } ## Instruction: Add material shadow to dropdown menus ## Code After: @mixin app-menu { @include box-shadow(2); z-index: 2; margin: 0; border: $layout-border; border-radius: 2px; min-width: 250px; background: $white; padding: 2px; & > li { @include app-menu-item; } } @mixin app-menu-item { font-size: 15px; padding: 11px 15px; cursor: pointer; &:hover { background: $opaque-black-05; } & > a { color: inherit; &, &:hover { text-decoration: none; } } }
@mixin app-menu { + @include box-shadow(2); z-index: 2; margin: 0; border: $layout-border; border-radius: 2px; min-width: 250px; background: $white; padding: 2px; & > li { @include app-menu-item; } } @mixin app-menu-item { font-size: 15px; padding: 11px 15px; cursor: pointer; &:hover { background: $opaque-black-05; } & > a { color: inherit; &, &:hover { text-decoration: none; } } }
1
0.03125
1
0
39a044493e57dabd6eb04d390fe12dc9d8033576
src/Filters/HTML/CSSInlining/inlined-css-retriever.js
src/Filters/HTML/CSSInlining/inlined-css-retriever.js
phast.stylesLoading = 0; var resourceLoader = new phast.ResourceLoader.make(phast.config.serviceUrl); phast.forEachSelectedElement('style[data-phast-params]', function (style) { phast.stylesLoading++; retrieveFromBundler(style.getAttribute('data-phast-params'), function (css) { style.textContent = css; style.removeAttribute('data-phast-params'); }, phast.once(function () { phast.stylesLoading--; if (phast.stylesLoading === 0 && phast.onStylesLoaded) { phast.onStylesLoaded(); } })); }); function retrieveFromBundler(textParams, done, always) { var params = phast.ResourceLoader.RequestParams.fromString(textParams); var request = resourceLoader.get(params); request.onsuccess = done; request.onend = always; }
phast.stylesLoading = 0; var resourceLoader = new phast.ResourceLoader.make(phast.config.serviceUrl); phast.forEachSelectedElement('style[data-phast-params]', function (style) { phast.stylesLoading++; retrieveFromBundler(style.getAttribute('data-phast-params'), function (css) { style.textContent = css; style.removeAttribute('data-phast-params'); }, phast.once(function () { phast.stylesLoading--; if (phast.stylesLoading === 0 && phast.onStylesLoaded) { phast.onStylesLoaded(); } })); }); function retrieveFromBundler(textParams, done, always) { var params = phast.ResourceLoader.RequestParams.fromString(textParams); resourceLoader.get(params) .then(done) .finally(always); }
Make css loader work with promises
Make css loader work with promises
JavaScript
agpl-3.0
kiboit/phast,kiboit/phast,kiboit/phast
javascript
## Code Before: phast.stylesLoading = 0; var resourceLoader = new phast.ResourceLoader.make(phast.config.serviceUrl); phast.forEachSelectedElement('style[data-phast-params]', function (style) { phast.stylesLoading++; retrieveFromBundler(style.getAttribute('data-phast-params'), function (css) { style.textContent = css; style.removeAttribute('data-phast-params'); }, phast.once(function () { phast.stylesLoading--; if (phast.stylesLoading === 0 && phast.onStylesLoaded) { phast.onStylesLoaded(); } })); }); function retrieveFromBundler(textParams, done, always) { var params = phast.ResourceLoader.RequestParams.fromString(textParams); var request = resourceLoader.get(params); request.onsuccess = done; request.onend = always; } ## Instruction: Make css loader work with promises ## Code After: phast.stylesLoading = 0; var resourceLoader = new phast.ResourceLoader.make(phast.config.serviceUrl); phast.forEachSelectedElement('style[data-phast-params]', function (style) { phast.stylesLoading++; retrieveFromBundler(style.getAttribute('data-phast-params'), function (css) { style.textContent = css; style.removeAttribute('data-phast-params'); }, phast.once(function () { phast.stylesLoading--; if (phast.stylesLoading === 0 && phast.onStylesLoaded) { phast.onStylesLoaded(); } })); }); function retrieveFromBundler(textParams, done, always) { var params = phast.ResourceLoader.RequestParams.fromString(textParams); resourceLoader.get(params) .then(done) .finally(always); }
phast.stylesLoading = 0; var resourceLoader = new phast.ResourceLoader.make(phast.config.serviceUrl); phast.forEachSelectedElement('style[data-phast-params]', function (style) { phast.stylesLoading++; retrieveFromBundler(style.getAttribute('data-phast-params'), function (css) { style.textContent = css; style.removeAttribute('data-phast-params'); }, phast.once(function () { phast.stylesLoading--; if (phast.stylesLoading === 0 && phast.onStylesLoaded) { phast.onStylesLoaded(); } })); }); function retrieveFromBundler(textParams, done, always) { var params = phast.ResourceLoader.RequestParams.fromString(textParams); - var request = resourceLoader.get(params); ? -------------- - + resourceLoader.get(params) - request.onsuccess = done; - request.onend = always; + .then(done) + .finally(always); }
6
0.26087
3
3
311cf4a12a5292a1269e9eeb04f0503f574f5ceb
dependency_install.sh
dependency_install.sh
if [ -z "$(which chef-apply)" ]; then wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.9.0-1_amd64.deb \ | sudo dpkg -i chefdk_0.9.0-1_amd64.deb fi ########################################## # Change shell to zsh, if not already done # if [ $(echo "$SHELL" | grep -c "zsh") -eq "0" ]; then echo "Setting shell to zsh" chsh -s $(which zsh) else echo "zsh is already the default shell" fi ############################################# # Create ssh dir with appropriate permissions # mkdir -p $HOME/.ssh chmod 0700 $HOME/.ssh
sudo apt-get install -y chefdk ########################################## # Change shell to zsh, if not already done # if [ $(echo "$SHELL" | grep -c "zsh") -eq "0" ]; then echo "Setting shell to zsh" chsh -s $(which zsh) else echo "zsh is already the default shell" fi ############################################# # Create ssh dir with appropriate permissions # mkdir -p $HOME/.ssh chmod 0700 $HOME/.ssh
Use apt to install the ChefDK
Use apt to install the ChefDK
Shell
mit
yarko3/dotfiles,yarko3/dotfiles
shell
## Code Before: if [ -z "$(which chef-apply)" ]; then wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.9.0-1_amd64.deb \ | sudo dpkg -i chefdk_0.9.0-1_amd64.deb fi ########################################## # Change shell to zsh, if not already done # if [ $(echo "$SHELL" | grep -c "zsh") -eq "0" ]; then echo "Setting shell to zsh" chsh -s $(which zsh) else echo "zsh is already the default shell" fi ############################################# # Create ssh dir with appropriate permissions # mkdir -p $HOME/.ssh chmod 0700 $HOME/.ssh ## Instruction: Use apt to install the ChefDK ## Code After: sudo apt-get install -y chefdk ########################################## # Change shell to zsh, if not already done # if [ $(echo "$SHELL" | grep -c "zsh") -eq "0" ]; then echo "Setting shell to zsh" chsh -s $(which zsh) else echo "zsh is already the default shell" fi ############################################# # Create ssh dir with appropriate permissions # mkdir -p $HOME/.ssh chmod 0700 $HOME/.ssh
+ sudo apt-get install -y chefdk - if [ -z "$(which chef-apply)" ]; then - wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.9.0-1_amd64.deb \ - | sudo dpkg -i chefdk_0.9.0-1_amd64.deb - fi ########################################## # Change shell to zsh, if not already done # if [ $(echo "$SHELL" | grep -c "zsh") -eq "0" ]; then echo "Setting shell to zsh" chsh -s $(which zsh) else echo "zsh is already the default shell" fi ############################################# # Create ssh dir with appropriate permissions # mkdir -p $HOME/.ssh chmod 0700 $HOME/.ssh
5
0.25
1
4
aaa0d77d190532ad041d2b3f870a292f058d1dfb
lib/travis/hub/error_reporter.rb
lib/travis/hub/error_reporter.rb
require 'thread' require 'hubble' module Travis class Hub class ErrorReporter attr_reader :queue, :thread def initialize @queue = Queue.new end def run @thread = Thread.new &method(:error_loop) end def error_loop loop &method(:pop) end def pop begin error = @queue.pop Hubble.report(error) rescue => e puts "Error handling error: #{e.message}" end end end end end
require 'thread' require 'hubble' require 'active_support/core_ext/class/attribute' module Travis class Hub class ErrorReporter class_attribute :queue attr_accessor :thread self.queue = Queue.new def run @thread = Thread.new &method(:error_loop) end def error_loop loop &method(:pop) end def pop begin error = queue.pop Hubble.report(error) rescue => e puts "Error handling error: #{e.message}" end end end end end
Make the queue a class_attribute.
Make the queue a class_attribute.
Ruby
mit
final-ci/travis-hub,final-ci/travis-hub,travis-ci/travis-hub,travis-ci/travis-hub
ruby
## Code Before: require 'thread' require 'hubble' module Travis class Hub class ErrorReporter attr_reader :queue, :thread def initialize @queue = Queue.new end def run @thread = Thread.new &method(:error_loop) end def error_loop loop &method(:pop) end def pop begin error = @queue.pop Hubble.report(error) rescue => e puts "Error handling error: #{e.message}" end end end end end ## Instruction: Make the queue a class_attribute. ## Code After: require 'thread' require 'hubble' require 'active_support/core_ext/class/attribute' module Travis class Hub class ErrorReporter class_attribute :queue attr_accessor :thread self.queue = Queue.new def run @thread = Thread.new &method(:error_loop) end def error_loop loop &method(:pop) end def pop begin error = queue.pop Hubble.report(error) rescue => e puts "Error handling error: #{e.message}" end end end end end
require 'thread' require 'hubble' + require 'active_support/core_ext/class/attribute' module Travis class Hub class ErrorReporter + class_attribute :queue + attr_accessor :thread - attr_reader :queue, :thread - - def initialize - @queue = Queue.new ? ^^^ + self.queue = Queue.new ? ^^^^^ - end def run @thread = Thread.new &method(:error_loop) end def error_loop loop &method(:pop) end def pop begin - error = @queue.pop ? - + error = queue.pop Hubble.report(error) rescue => e puts "Error handling error: #{e.message}" end end end end end
11
0.354839
5
6
0e99905e1a420edfae2b694479629552d33ef420
lib/search_object/base.rb
lib/search_object/base.rb
module SearchObject module Base def self.included(base) base.extend ClassMethods base.instance_eval do @defaults = {} @actions = {} @scope = nil end end def initialize(*args) @scope, @filters = self.class.scope_and_filters(args) end def results @results ||= fetch_results end def results? results.any? end def count @count ||= _fetch_results.count end def params(additions = {}) if additions.empty? @filters else @filters.merge Helper.stringify_keys(additions) end end private def fetch_results _fetch_results end def _fetch_results self.class.fetch_results_for @scope, self end module ClassMethods def scope_and_filters(args) scope = (@scope && @scope.call) || args.shift params = @defaults.merge(Helper.select_keys Helper.stringify_keys(args.shift || {}), @actions.keys) [scope, params] end def fetch_results_for(scope, search) search.params.inject(scope) do |scope, (name, value)| new_scope = search.instance_exec scope, value, &@actions[name] new_scope || scope end end def scope(&block) @scope = block end def option(name, default = nil, &block) name = name.to_s @defaults[name] = default unless default.nil? @actions[name] = block || ->(scope, value) { scope.where name => value } define_method(name) { @filters[name] } end end end end
module SearchObject module Base def self.included(base) base.extend ClassMethods base.instance_eval do @defaults = {} @actions = {} @scope = nil end end def initialize(*args) @search = self.class.search args end def results @results ||= fetch_results end def results? results.any? end def count @count ||= @search.count self end def params(additions = {}) if additions.empty? @search.params else @search.params.merge Helper.stringify_keys(additions) end end private def fetch_results @search.query self end module ClassMethods def search(args) scope = (@scope && @scope.call) || args.shift params = @defaults.merge(Helper.select_keys Helper.stringify_keys(args.shift || {}), @actions.keys) Search.new scope, params, @actions end def scope(&block) @scope = block end def option(name, default = nil, &block) name = name.to_s @defaults[name] = default unless default.nil? @actions[name] = block || ->(scope, value) { scope.where name => value } define_method(name) { @search.param name } end end end end
Use Search object for searching
Use Search object for searching
Ruby
mit
RStankov/SearchObject,RStankov/SearchObject
ruby
## Code Before: module SearchObject module Base def self.included(base) base.extend ClassMethods base.instance_eval do @defaults = {} @actions = {} @scope = nil end end def initialize(*args) @scope, @filters = self.class.scope_and_filters(args) end def results @results ||= fetch_results end def results? results.any? end def count @count ||= _fetch_results.count end def params(additions = {}) if additions.empty? @filters else @filters.merge Helper.stringify_keys(additions) end end private def fetch_results _fetch_results end def _fetch_results self.class.fetch_results_for @scope, self end module ClassMethods def scope_and_filters(args) scope = (@scope && @scope.call) || args.shift params = @defaults.merge(Helper.select_keys Helper.stringify_keys(args.shift || {}), @actions.keys) [scope, params] end def fetch_results_for(scope, search) search.params.inject(scope) do |scope, (name, value)| new_scope = search.instance_exec scope, value, &@actions[name] new_scope || scope end end def scope(&block) @scope = block end def option(name, default = nil, &block) name = name.to_s @defaults[name] = default unless default.nil? @actions[name] = block || ->(scope, value) { scope.where name => value } define_method(name) { @filters[name] } end end end end ## Instruction: Use Search object for searching ## Code After: module SearchObject module Base def self.included(base) base.extend ClassMethods base.instance_eval do @defaults = {} @actions = {} @scope = nil end end def initialize(*args) @search = self.class.search args end def results @results ||= fetch_results end def results? results.any? end def count @count ||= @search.count self end def params(additions = {}) if additions.empty? @search.params else @search.params.merge Helper.stringify_keys(additions) end end private def fetch_results @search.query self end module ClassMethods def search(args) scope = (@scope && @scope.call) || args.shift params = @defaults.merge(Helper.select_keys Helper.stringify_keys(args.shift || {}), @actions.keys) Search.new scope, params, @actions end def scope(&block) @scope = block end def option(name, default = nil, &block) name = name.to_s @defaults[name] = default unless default.nil? @actions[name] = block || ->(scope, value) { scope.where name => value } define_method(name) { @search.param name } end end end end
module SearchObject module Base def self.included(base) base.extend ClassMethods base.instance_eval do @defaults = {} @actions = {} @scope = nil end end def initialize(*args) - @scope, @filters = self.class.scope_and_filters(args) + @search = self.class.search args end def results @results ||= fetch_results end def results? results.any? end def count - @count ||= _fetch_results.count + @count ||= @search.count self end def params(additions = {}) if additions.empty? - @filters + @search.params else - @filters.merge Helper.stringify_keys(additions) ? ^^^^ + @search.params.merge Helper.stringify_keys(additions) ? ^ + ++++++++ end end private def fetch_results + @search.query self - _fetch_results - end - - def _fetch_results - self.class.fetch_results_for @scope, self end module ClassMethods - def scope_and_filters(args) + def search(args) scope = (@scope && @scope.call) || args.shift params = @defaults.merge(Helper.select_keys Helper.stringify_keys(args.shift || {}), @actions.keys) + Search.new scope, params, @actions - [scope, params] - end - - def fetch_results_for(scope, search) - search.params.inject(scope) do |scope, (name, value)| - new_scope = search.instance_exec scope, value, &@actions[name] - new_scope || scope - end end def scope(&block) @scope = block end def option(name, default = nil, &block) name = name.to_s @defaults[name] = default unless default.nil? @actions[name] = block || ->(scope, value) { scope.where name => value } - define_method(name) { @filters[name] } ? ^^^^ ^^ - + define_method(name) { @search.param name } ? ^ + ^^^^^^^^^ end end end end
27
0.36
8
19
280561a2b1004d130d98b4d0503b1fd1cb1cafa4
src/js/store/posts/test/reducers.spec.js
src/js/store/posts/test/reducers.spec.js
import posts from '../reducers'; import { addPost, requestPosts, requestPostsError, receivePosts, } from '../actions'; const post = { title: 'A first post' }; it('returns initial state', () => { const state = posts(undefined, {}); expect(state).toEqual({ isFetching: false, lastUpdated: 0, items: [], }); }); it('handles adding post', () => { const state = posts({ items: [] }, addPost(post)); expect(state.items).toContain(post); }); it('handles receiving posts', () => { const state = posts( undefined, receivePosts({ posts: [post] }), ); expect(state.items.length).not.toBe(0); expect(state.isFetching).toBe(false); expect(state.lastUpdated).not.toBe(0); }); it('handles requesting posts', () => { const state = posts({ items: [] }, requestPosts()); expect(state.isFetching).toBe(true); }); it('handles request errors', () => { const state = posts( { items: [], isFetching: true }, requestPostsError(), ); expect(state.isFetching).toBe(false); });
import posts from '../reducers'; import { addPost, requestPosts, requestPostsError, receivePosts, } from '../actions'; const post = { title: 'A first post' }; it('returns initial state', () => { const state = posts(undefined, {}); expect(state).toEqual({ isFetching: false, lastUpdated: 0, items: [], }); }); it('handles adding post', () => { const state = posts(undefined, addPost(post)); expect(state.items).toContain(post); }); it('handles receiving posts', () => { const state = posts( undefined, receivePosts({ posts: [post] }), ); expect(state.items.length).not.toBe(0); expect(state.isFetching).toBe(false); expect(state.lastUpdated).not.toBe(0); }); it('handles requesting posts', () => { const state = posts({ items: [] }, requestPosts()); expect(state.isFetching).toBe(true); }); it('handles request errors', () => { const state = posts( { items: [], isFetching: true }, requestPostsError(), ); expect(state.isFetching).toBe(false); });
Remove unnecessary state init in reducer test
Remove unnecessary state init in reducer test
JavaScript
mit
slavapavlutin/pavlutin-node,slavapavlutin/pavlutin-node
javascript
## Code Before: import posts from '../reducers'; import { addPost, requestPosts, requestPostsError, receivePosts, } from '../actions'; const post = { title: 'A first post' }; it('returns initial state', () => { const state = posts(undefined, {}); expect(state).toEqual({ isFetching: false, lastUpdated: 0, items: [], }); }); it('handles adding post', () => { const state = posts({ items: [] }, addPost(post)); expect(state.items).toContain(post); }); it('handles receiving posts', () => { const state = posts( undefined, receivePosts({ posts: [post] }), ); expect(state.items.length).not.toBe(0); expect(state.isFetching).toBe(false); expect(state.lastUpdated).not.toBe(0); }); it('handles requesting posts', () => { const state = posts({ items: [] }, requestPosts()); expect(state.isFetching).toBe(true); }); it('handles request errors', () => { const state = posts( { items: [], isFetching: true }, requestPostsError(), ); expect(state.isFetching).toBe(false); }); ## Instruction: Remove unnecessary state init in reducer test ## Code After: import posts from '../reducers'; import { addPost, requestPosts, requestPostsError, receivePosts, } from '../actions'; const post = { title: 'A first post' }; it('returns initial state', () => { const state = posts(undefined, {}); expect(state).toEqual({ isFetching: false, lastUpdated: 0, items: [], }); }); it('handles adding post', () => { const state = posts(undefined, addPost(post)); expect(state.items).toContain(post); }); it('handles receiving posts', () => { const state = posts( undefined, receivePosts({ posts: [post] }), ); expect(state.items.length).not.toBe(0); expect(state.isFetching).toBe(false); expect(state.lastUpdated).not.toBe(0); }); it('handles requesting posts', () => { const state = posts({ items: [] }, requestPosts()); expect(state.isFetching).toBe(true); }); it('handles request errors', () => { const state = posts( { items: [], isFetching: true }, requestPostsError(), ); expect(state.isFetching).toBe(false); });
import posts from '../reducers'; import { addPost, requestPosts, requestPostsError, receivePosts, } from '../actions'; const post = { title: 'A first post' }; it('returns initial state', () => { const state = posts(undefined, {}); expect(state).toEqual({ isFetching: false, lastUpdated: 0, items: [], }); }); it('handles adding post', () => { - const state = posts({ items: [] }, addPost(post)); ? ^^ ^ ^^^^^^^^ + const state = posts(undefined, addPost(post)); ? ^^^^^ ^ ^ expect(state.items).toContain(post); }); it('handles receiving posts', () => { const state = posts( undefined, receivePosts({ posts: [post] }), ); expect(state.items.length).not.toBe(0); expect(state.isFetching).toBe(false); expect(state.lastUpdated).not.toBe(0); }); it('handles requesting posts', () => { const state = posts({ items: [] }, requestPosts()); expect(state.isFetching).toBe(true); }); it('handles request errors', () => { const state = posts( { items: [], isFetching: true }, requestPostsError(), ); expect(state.isFetching).toBe(false); });
2
0.043478
1
1
bcd7062615b4a4210529525e359ad9e91da457c1
tasks/publish/concat.js
tasks/publish/concat.js
'use strict'; var applicationConf = process.requirePublish('conf.json'); /** * Gets the list of minified JavaScript files from the given list of files. * * It will just replace ".js" by ".min.js". * * @param Array files The list of files * @return Array The list of minified files */ function getMinifiedJSFiles(files) { var minifiedFiles = []; files.forEach(function(path) { minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js')); }); return minifiedFiles; } module.exports = { lib: { // Concatenate back office JavaScript library files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']), // Concatenate all files into libOpenveoPublish.js dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js' }, publishjs: { // Concatenate all back office JavaScript files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']), // Concatenate all files into openveoPublish.js dest: '<%= publish.beJSAssets %>/openveoPublish.js' }, frontJS: { // Concatenate all front JavaScript files src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']), // Concatenate all files into openveoPublishPlayer.js dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js' } };
'use strict'; var applicationConf = process.requirePublish('conf.json'); /** * Gets the list of minified JavaScript files from the given list of files. * * It will just replace ".js" by ".min.js". * * @param Array files The list of files * @return Array The list of minified files */ function getMinifiedJSFiles(files) { var minifiedFiles = []; files.forEach(function(path) { minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js').replace('/publish/', '')); }); return minifiedFiles; } module.exports = { lib: { // Concatenate back office JavaScript library files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']), // Concatenate all files into libOpenveoPublish.js dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js' }, publishjs: { // Concatenate all back office JavaScript files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']), // Concatenate all files into openveoPublish.js dest: '<%= publish.beJSAssets %>/openveoPublish.js' }, frontJS: { // Concatenate all front JavaScript files src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']), // Concatenate all files into openveoPublishPlayer.js dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js' } };
Correct bug when compiling JavaScript sources
Correct bug when compiling JavaScript sources Compiled JavaScript files were empty due to previous modifications on routes architecture. Configuration of grunt concat task wasn't conform to this new architecture.
JavaScript
agpl-3.0
veo-labs/openveo-publish,veo-labs/openveo-publish,veo-labs/openveo-publish
javascript
## Code Before: 'use strict'; var applicationConf = process.requirePublish('conf.json'); /** * Gets the list of minified JavaScript files from the given list of files. * * It will just replace ".js" by ".min.js". * * @param Array files The list of files * @return Array The list of minified files */ function getMinifiedJSFiles(files) { var minifiedFiles = []; files.forEach(function(path) { minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js')); }); return minifiedFiles; } module.exports = { lib: { // Concatenate back office JavaScript library files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']), // Concatenate all files into libOpenveoPublish.js dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js' }, publishjs: { // Concatenate all back office JavaScript files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']), // Concatenate all files into openveoPublish.js dest: '<%= publish.beJSAssets %>/openveoPublish.js' }, frontJS: { // Concatenate all front JavaScript files src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']), // Concatenate all files into openveoPublishPlayer.js dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js' } }; ## Instruction: Correct bug when compiling JavaScript sources Compiled JavaScript files were empty due to previous modifications on routes architecture. Configuration of grunt concat task wasn't conform to this new architecture. ## Code After: 'use strict'; var applicationConf = process.requirePublish('conf.json'); /** * Gets the list of minified JavaScript files from the given list of files. * * It will just replace ".js" by ".min.js". * * @param Array files The list of files * @return Array The list of minified files */ function getMinifiedJSFiles(files) { var minifiedFiles = []; files.forEach(function(path) { minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js').replace('/publish/', '')); }); return minifiedFiles; } module.exports = { lib: { // Concatenate back office JavaScript library files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']), // Concatenate all files into libOpenveoPublish.js dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js' }, publishjs: { // Concatenate all back office JavaScript files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']), // Concatenate all files into openveoPublish.js dest: '<%= publish.beJSAssets %>/openveoPublish.js' }, frontJS: { // Concatenate all front JavaScript files src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']), // Concatenate all files into openveoPublishPlayer.js dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js' } };
'use strict'; var applicationConf = process.requirePublish('conf.json'); /** * Gets the list of minified JavaScript files from the given list of files. * * It will just replace ".js" by ".min.js". * * @param Array files The list of files * @return Array The list of minified files */ function getMinifiedJSFiles(files) { var minifiedFiles = []; files.forEach(function(path) { - minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js')); + minifiedFiles.push('<%= publish.uglify %>/' + path.replace('.js', '.min.js').replace('/publish/', '')); ? +++++++++++++++++++++++++ }); return minifiedFiles; } module.exports = { lib: { // Concatenate back office JavaScript library files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptLibFiles']['dev']), // Concatenate all files into libOpenveoPublish.js dest: '<%= publish.beJSAssets %>/libOpenveoPublish.js' }, publishjs: { // Concatenate all back office JavaScript files src: getMinifiedJSFiles(applicationConf['backOffice']['scriptFiles']['dev']), // Concatenate all files into openveoPublish.js dest: '<%= publish.beJSAssets %>/openveoPublish.js' }, frontJS: { // Concatenate all front JavaScript files src: getMinifiedJSFiles(applicationConf['custom']['scriptFiles']['publishPlayer']['dev']), // Concatenate all files into openveoPublishPlayer.js dest: '<%= publish.playerJSAssets %>/openveoPublishPlayer.js' } };
2
0.040816
1
1
eef8a424dd9d9fd664d80bc4af06cf6638929442
_includes/cta.html
_includes/cta.html
<section id="cta"> <div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h1>Engage your website visitors through Prudio.</h1> <p class="lead"> You miss using Slack everywhere, right? Prudio comes to fill that gap. Use Prudio to communicate with your website visitors and get valuable feedback! </p> <p>Prudio is a very simple but powerful application. It features realtime facilities and easy installation to get you started. You can check it out yourself, as Prudio is in <strong>private beta.</strong> </p> </div> </div> </div> </section>
<section id="cta"> <div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h1>Engage your website visitors through Prudio.</h1> <p class="lead"> You miss using Slack everywhere, right? Prudio comes to fill that gap. Use Prudio to communicate with your website visitors and get valuable feedback! </p> <p> <a href="#" class="btn btn-lg btn-primary" id="try-prudio">Try Prudio</a> </p> <p>Prudio is a very simple but powerful application. It features realtime facilities and easy installation to get you started. You can check it out yourself, as Prudio is in <strong>private beta.</strong> </p> </div> </div> </div> </section>
Add button to trigger Prudio
Add button to trigger Prudio
HTML
agpl-3.0
PrudioHQ/prudio-landing,asm-products/prudio-landing,asm-products/prudio-landing,PrudioHQ/prudio-landing
html
## Code Before: <section id="cta"> <div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h1>Engage your website visitors through Prudio.</h1> <p class="lead"> You miss using Slack everywhere, right? Prudio comes to fill that gap. Use Prudio to communicate with your website visitors and get valuable feedback! </p> <p>Prudio is a very simple but powerful application. It features realtime facilities and easy installation to get you started. You can check it out yourself, as Prudio is in <strong>private beta.</strong> </p> </div> </div> </div> </section> ## Instruction: Add button to trigger Prudio ## Code After: <section id="cta"> <div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h1>Engage your website visitors through Prudio.</h1> <p class="lead"> You miss using Slack everywhere, right? Prudio comes to fill that gap. Use Prudio to communicate with your website visitors and get valuable feedback! </p> <p> <a href="#" class="btn btn-lg btn-primary" id="try-prudio">Try Prudio</a> </p> <p>Prudio is a very simple but powerful application. It features realtime facilities and easy installation to get you started. You can check it out yourself, as Prudio is in <strong>private beta.</strong> </p> </div> </div> </div> </section>
<section id="cta"> <div class="container"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <h1>Engage your website visitors through Prudio.</h1> - + <p class="lead"> You miss using Slack everywhere, right? Prudio comes to fill that gap. Use Prudio to communicate with your website visitors and get valuable feedback! </p> + - + <p> ? +++ + <a href="#" class="btn btn-lg btn-primary" id="try-prudio">Try Prudio</a> + </p> + <p>Prudio is a very simple but powerful application. It features realtime facilities and easy installation to get you started. You can check it out yourself, as Prudio is in <strong>private beta.</strong> </p> </div> </div> </div> </section>
8
0.470588
6
2
2ba04affa07116a6c1ecfa2e447d5e31b6df048e
Requirements/php-meta-requirement.rb
Requirements/php-meta-requirement.rb
require File.join(File.dirname(__FILE__), 'homebrew-php-requirement') class PhpMetaRequirement < HomebrewPhpRequirement def satisfied? %w{php53 php54 php55}.any? { |php| Formula.factory(php).installed? } end def message "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing" end end
require File.join(File.dirname(__FILE__), 'homebrew-php-requirement') class PhpMetaRequirement < HomebrewPhpRequirement def satisfied? %w{php53 php54 php55}.any? do |php| f = Formula.factory(php) f.rack.directory? && f.rack.children.length > 0 end end def message "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing" end end
Allow non newest version PHP to tools.
Allow non newest version PHP to tools. Installation of PHP tools was blocked if installed PHP does not match to the newest formulas.
Ruby
bsd-2-clause
philcook/homebrew-php,ablyler/homebrew-php,TomK/homebrew-php,dguyon/homebrew-php,mkalkbrenner/homebrew-php
ruby
## Code Before: require File.join(File.dirname(__FILE__), 'homebrew-php-requirement') class PhpMetaRequirement < HomebrewPhpRequirement def satisfied? %w{php53 php54 php55}.any? { |php| Formula.factory(php).installed? } end def message "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing" end end ## Instruction: Allow non newest version PHP to tools. Installation of PHP tools was blocked if installed PHP does not match to the newest formulas. ## Code After: require File.join(File.dirname(__FILE__), 'homebrew-php-requirement') class PhpMetaRequirement < HomebrewPhpRequirement def satisfied? %w{php53 php54 php55}.any? do |php| f = Formula.factory(php) f.rack.directory? && f.rack.children.length > 0 end end def message "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing" end end
require File.join(File.dirname(__FILE__), 'homebrew-php-requirement') class PhpMetaRequirement < HomebrewPhpRequirement def satisfied? - %w{php53 php54 php55}.any? { |php| Formula.factory(php).installed? } + %w{php53 php54 php55}.any? do |php| + f = Formula.factory(php) + f.rack.directory? && f.rack.children.length > 0 + end end def message "Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuing" end end
5
0.454545
4
1
28b264405538781e39dd7f448292c3559e1a5001
robustj/src/main/scala/namers/namers.scala
robustj/src/main/scala/namers/namers.scala
package ch.usi.inf.l3.sana.robustj.namers import ch.usi.inf.l3.sana import sana.primj import sana.tiny import sana.calcj import sana.brokenj import sana.arrayj import sana.arrooj import sana.ooj import sana.robustj import tiny.core.TransformationComponent import tiny.dsl._ import robustj.ast.{TreeFactories, MethodDefApi, TreeCopiers, TreeUpgraders} import primj.ast.{MethodDefApi => PMethodDefApi} import tiny.ast.UseTree @component trait MethodDefNamerComponent extends ooj.namers.MethodDefNamerComponent { (mthd: PMethodDefApi) => { mthd match { case mthd: MethodDefApi => val res1 = super.apply(mthd).asInstanceOf[PMethodDefApi] val throwsClause = mthd.throwsClause.map { tc => name(tc).asInstanceOf[UseTree] } // INFO: a bit of hack, but works val res2 = TreeUpgraders.upgradeMethodDef(res1) TreeCopiers.copyMethodDef(res2)(throwsClause = throwsClause) case mthd: PMethodDefApi => val res = TreeUpgraders.upgradeMethodDef(mthd) name(res) } } }
package ch.usi.inf.l3.sana.robustj.namers import ch.usi.inf.l3.sana import sana.primj import sana.tiny import sana.calcj import sana.brokenj import sana.arrayj import sana.arrooj import sana.ooj import sana.robustj import tiny.core.TransformationComponent import tiny.dsl._ import tiny.ast.Implicits._ import robustj.symbols.MethodSymbol import robustj.ast.{TreeFactories, MethodDefApi, TreeCopiers, TreeUpgraders} import primj.ast.{MethodDefApi => PMethodDefApi} import tiny.ast.UseTree @component trait MethodDefNamerComponent extends ooj.namers.MethodDefNamerComponent { (mthd: PMethodDefApi) => { mthd match { case mthd: MethodDefApi => val res1 = super.apply(mthd).asInstanceOf[PMethodDefApi] val throwsClause = mthd.throwsClause.map { tc => name(tc).asInstanceOf[UseTree] } res1.symbol.foreach { case mthd: MethodSymbol => mthd.throwsSymbols = throwsClause.flatMap(_.symbol) case _ => () } // INFO: a bit of hack, but works val res2 = TreeUpgraders.upgradeMethodDef(res1) TreeCopiers.copyMethodDef(res2)(throwsClause = throwsClause) case mthd: PMethodDefApi => val res = TreeUpgraders.upgradeMethodDef(mthd) name(res) } } }
Add the symbols of exceptions in throws clause to method symbol
Add the symbols of exceptions in throws clause to method symbol
Scala
bsd-3-clause
amanjpro/languages-a-la-carte,amanjpro/languages-a-la-carte
scala
## Code Before: package ch.usi.inf.l3.sana.robustj.namers import ch.usi.inf.l3.sana import sana.primj import sana.tiny import sana.calcj import sana.brokenj import sana.arrayj import sana.arrooj import sana.ooj import sana.robustj import tiny.core.TransformationComponent import tiny.dsl._ import robustj.ast.{TreeFactories, MethodDefApi, TreeCopiers, TreeUpgraders} import primj.ast.{MethodDefApi => PMethodDefApi} import tiny.ast.UseTree @component trait MethodDefNamerComponent extends ooj.namers.MethodDefNamerComponent { (mthd: PMethodDefApi) => { mthd match { case mthd: MethodDefApi => val res1 = super.apply(mthd).asInstanceOf[PMethodDefApi] val throwsClause = mthd.throwsClause.map { tc => name(tc).asInstanceOf[UseTree] } // INFO: a bit of hack, but works val res2 = TreeUpgraders.upgradeMethodDef(res1) TreeCopiers.copyMethodDef(res2)(throwsClause = throwsClause) case mthd: PMethodDefApi => val res = TreeUpgraders.upgradeMethodDef(mthd) name(res) } } } ## Instruction: Add the symbols of exceptions in throws clause to method symbol ## Code After: package ch.usi.inf.l3.sana.robustj.namers import ch.usi.inf.l3.sana import sana.primj import sana.tiny import sana.calcj import sana.brokenj import sana.arrayj import sana.arrooj import sana.ooj import sana.robustj import tiny.core.TransformationComponent import tiny.dsl._ import tiny.ast.Implicits._ import robustj.symbols.MethodSymbol import robustj.ast.{TreeFactories, MethodDefApi, TreeCopiers, TreeUpgraders} import primj.ast.{MethodDefApi => PMethodDefApi} import tiny.ast.UseTree @component trait MethodDefNamerComponent extends ooj.namers.MethodDefNamerComponent { (mthd: PMethodDefApi) => { mthd match { case mthd: MethodDefApi => val res1 = super.apply(mthd).asInstanceOf[PMethodDefApi] val throwsClause = mthd.throwsClause.map { tc => name(tc).asInstanceOf[UseTree] } res1.symbol.foreach { case mthd: MethodSymbol => mthd.throwsSymbols = throwsClause.flatMap(_.symbol) case _ => () } // INFO: a bit of hack, but works val res2 = TreeUpgraders.upgradeMethodDef(res1) TreeCopiers.copyMethodDef(res2)(throwsClause = throwsClause) case mthd: PMethodDefApi => val res = TreeUpgraders.upgradeMethodDef(mthd) name(res) } } }
package ch.usi.inf.l3.sana.robustj.namers import ch.usi.inf.l3.sana import sana.primj import sana.tiny import sana.calcj import sana.brokenj import sana.arrayj import sana.arrooj import sana.ooj import sana.robustj import tiny.core.TransformationComponent import tiny.dsl._ + import tiny.ast.Implicits._ + import robustj.symbols.MethodSymbol import robustj.ast.{TreeFactories, MethodDefApi, TreeCopiers, TreeUpgraders} import primj.ast.{MethodDefApi => PMethodDefApi} import tiny.ast.UseTree @component trait MethodDefNamerComponent extends ooj.namers.MethodDefNamerComponent { (mthd: PMethodDefApi) => { mthd match { case mthd: MethodDefApi => val res1 = super.apply(mthd).asInstanceOf[PMethodDefApi] val throwsClause = mthd.throwsClause.map { tc => name(tc).asInstanceOf[UseTree] } + res1.symbol.foreach { + case mthd: MethodSymbol => + mthd.throwsSymbols = throwsClause.flatMap(_.symbol) + case _ => + () + } // INFO: a bit of hack, but works val res2 = TreeUpgraders.upgradeMethodDef(res1) TreeCopiers.copyMethodDef(res2)(throwsClause = throwsClause) case mthd: PMethodDefApi => val res = TreeUpgraders.upgradeMethodDef(mthd) name(res) } } }
8
0.216216
8
0
00f80e9e17ee7da476fc0fb53cd25dc98cd733c1
.travis.yml
.travis.yml
before_install: - sudo apt-get install --quiet git env: - CUCUMBER_FORMAT=pretty language: ruby rvm: - 2.0.0 - 2.1.0 script: bundle exec rake test
env: - CUCUMBER_FORMAT=pretty language: ruby rvm: - 2.0.0 - 2.1.0 script: bundle exec rake test
Remove unnecessary Travis CI config.
Remove unnecessary Travis CI config.
YAML
mit
AndrewKvalheim/middleman-vcs-time,AndrewKvalheim/middleman-vcs-time
yaml
## Code Before: before_install: - sudo apt-get install --quiet git env: - CUCUMBER_FORMAT=pretty language: ruby rvm: - 2.0.0 - 2.1.0 script: bundle exec rake test ## Instruction: Remove unnecessary Travis CI config. ## Code After: env: - CUCUMBER_FORMAT=pretty language: ruby rvm: - 2.0.0 - 2.1.0 script: bundle exec rake test
- before_install: - - sudo apt-get install --quiet git env: - CUCUMBER_FORMAT=pretty language: ruby rvm: - 2.0.0 - 2.1.0 script: bundle exec rake test
2
0.222222
0
2
770d5918fdbffdb8c590bc6d3868ef09b48c54be
test/test_helper.rb
test/test_helper.rb
require 'minitest/autorun' require 'minitest/pride' require 'lyricfy' require 'webmock' require 'webmock/minitest' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'test/fixtures/vcr_cassettes' c.hook_into :webmock end
require(File.expand_path('../../lib/lyricfy', __FILE__)) require 'minitest/autorun' require 'minitest/pride' require 'webmock' require 'webmock/minitest' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'test/fixtures/vcr_cassettes' c.hook_into :webmock end
Change test helper to require Lyricfy relative path
Change test helper to require Lyricfy relative path
Ruby
mit
javichito/Lyricfy
ruby
## Code Before: require 'minitest/autorun' require 'minitest/pride' require 'lyricfy' require 'webmock' require 'webmock/minitest' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'test/fixtures/vcr_cassettes' c.hook_into :webmock end ## Instruction: Change test helper to require Lyricfy relative path ## Code After: require(File.expand_path('../../lib/lyricfy', __FILE__)) require 'minitest/autorun' require 'minitest/pride' require 'webmock' require 'webmock/minitest' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'test/fixtures/vcr_cassettes' c.hook_into :webmock end
+ require(File.expand_path('../../lib/lyricfy', __FILE__)) + require 'minitest/autorun' require 'minitest/pride' - require 'lyricfy' require 'webmock' require 'webmock/minitest' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'test/fixtures/vcr_cassettes' c.hook_into :webmock end
3
0.272727
2
1
2de88ea3ad992097563f449ed5dc0a8c6fdcfdc4
src/components/App.tsx
src/components/App.tsx
import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly selected: number; readonly hits: HitMap; readonly requesters: RequesterMap; readonly options: SearchOptions; } export interface Handlers { readonly onFetch: (options: SearchOptions) => void; readonly onSelectTab: (selectedTabIndex: number) => void; } const App = (props: Props & Handlers) => { const { onSelectTab, selected, hits, requesters, options, onFetch } = props; const fetchAction = () => onFetch(options); return ( <main> <Page title="Mturk Engine" primaryAction={{ content: 'Fetch Data', onAction: fetchAction }} > <Stack vertical> <Banner status="info">Scanned {hits.size} hits.</Banner> <Tabs selected={selected} tabs={tabs} onSelect={onSelectTab}> <Search /> <HitTable hits={hits} requesters={requesters} emptyAction={fetchAction} /> </Tabs> </Stack> </Page> </main> ); }; export default App;
import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly selected: number; readonly hits: HitMap; readonly requesters: RequesterMap; readonly options: SearchOptions; } export interface Handlers { readonly onFetch: (options: SearchOptions) => void; readonly onSelectTab: (selectedTabIndex: number) => void; } const App = (props: Props & Handlers) => { const { onSelectTab, selected, hits, requesters, options, onFetch } = props; const fetchAction = () => onFetch(options); return ( <main> <Page title="Mturk Engine" primaryAction={{ content: 'Fetch Data', onAction: fetchAction }} > <Stack vertical> <Banner status="info">Scanned {hits.size} hits.</Banner> <Tabs selected={selected} tabs={tabs} onSelect={onSelectTab}> <Stack vertical spacing="loose"> <Search /> <HitTable hits={hits} requesters={requesters} emptyAction={fetchAction} /> </Stack> </Tabs> </Stack> </Page> </main> ); }; export default App;
Add padding between search form and hit table.
Add padding between search form and hit table.
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
typescript
## Code Before: import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly selected: number; readonly hits: HitMap; readonly requesters: RequesterMap; readonly options: SearchOptions; } export interface Handlers { readonly onFetch: (options: SearchOptions) => void; readonly onSelectTab: (selectedTabIndex: number) => void; } const App = (props: Props & Handlers) => { const { onSelectTab, selected, hits, requesters, options, onFetch } = props; const fetchAction = () => onFetch(options); return ( <main> <Page title="Mturk Engine" primaryAction={{ content: 'Fetch Data', onAction: fetchAction }} > <Stack vertical> <Banner status="info">Scanned {hits.size} hits.</Banner> <Tabs selected={selected} tabs={tabs} onSelect={onSelectTab}> <Search /> <HitTable hits={hits} requesters={requesters} emptyAction={fetchAction} /> </Tabs> </Stack> </Page> </main> ); }; export default App; ## Instruction: Add padding between search form and hit table. ## Code After: import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly selected: number; readonly hits: HitMap; readonly requesters: RequesterMap; readonly options: SearchOptions; } export interface Handlers { readonly onFetch: (options: SearchOptions) => void; readonly onSelectTab: (selectedTabIndex: number) => void; } const App = (props: Props & Handlers) => { const { onSelectTab, selected, hits, requesters, options, onFetch } = props; const fetchAction = () => onFetch(options); return ( <main> <Page title="Mturk Engine" primaryAction={{ content: 'Fetch Data', onAction: fetchAction }} > <Stack vertical> <Banner status="info">Scanned {hits.size} hits.</Banner> <Tabs selected={selected} tabs={tabs} onSelect={onSelectTab}> <Stack vertical spacing="loose"> <Search /> <HitTable hits={hits} requesters={requesters} emptyAction={fetchAction} /> </Stack> </Tabs> </Stack> </Page> </main> ); }; export default App;
import * as React from 'react'; import { Page, Tabs, Stack, Banner } from '@shopify/polaris'; import { HitMap, RequesterMap, SearchOptions } from '../types'; import HitTable from './HitTable/HitTable'; import Search from '../containers/Search'; import { tabs } from '../utils/tabs'; export interface Props { readonly selected: number; readonly hits: HitMap; readonly requesters: RequesterMap; readonly options: SearchOptions; } export interface Handlers { readonly onFetch: (options: SearchOptions) => void; readonly onSelectTab: (selectedTabIndex: number) => void; } const App = (props: Props & Handlers) => { const { onSelectTab, selected, hits, requesters, options, onFetch } = props; const fetchAction = () => onFetch(options); return ( <main> <Page title="Mturk Engine" primaryAction={{ content: 'Fetch Data', onAction: fetchAction }} > <Stack vertical> <Banner status="info">Scanned {hits.size} hits.</Banner> <Tabs selected={selected} tabs={tabs} onSelect={onSelectTab}> + <Stack vertical spacing="loose"> - <Search /> + <Search /> ? ++ - <HitTable + <HitTable ? ++ - hits={hits} + hits={hits} ? ++ - requesters={requesters} + requesters={requesters} ? ++ - emptyAction={fetchAction} + emptyAction={fetchAction} ? ++ - /> + /> ? ++ + </Stack> </Tabs> </Stack> </Page> </main> ); }; export default App;
14
0.304348
8
6
5bf3e290ab4bc29bd94d3287e8b64dd37918e079
bower.json
bower.json
{ "name": "Webmaker Profile", "dependencies": { "jquery": "2.0.3", "lesshat": "1.1.2", "jquery-ui": "1.10.3", "jade": "0.34.1", "text": "2.0.10", "font-awesome": "3.2.1", "masonry": "3.1.1", "packery": "1.1.0", "imagesloaded": "3.0.4", "draggabilly": "1.0.5", "komponent": "0.4.0", "requirejs": "2.1.8", "store.js": "1.3.9", "lodash": "1.3.1", "node-uuid": "1.4.1", "getUserMedia": "https://github.com/HenrikJoreteg/getUserMedia.git", "Animated_GIF": "https://github.com/k88hudson/Animated_GIF.git" }, "resolutions": { "jquery": "2.0.3" } }
{ "name": "Webmaker Profile", "dependencies": { "jquery": "2.0.3", "lesshat": "1.1.2", "jquery-ui": "1.10.3", "jade": "0.34.1", "text": "2.0.10", "font-awesome": "3.2.1", "masonry": "3.1.1", "packery": "1.1.0", "outlayer": "1.1.3", "imagesloaded": "3.0.4", "draggabilly": "1.0.5", "komponent": "0.4.0", "requirejs": "2.1.8", "store.js": "1.3.9", "lodash": "1.3.1", "node-uuid": "1.4.1", "getUserMedia": "https://github.com/HenrikJoreteg/getUserMedia.git", "Animated_GIF": "https://github.com/k88hudson/Animated_GIF.git" }, "resolutions": { "jquery": "2.0.3" } }
Fix broken Outlayer dependency for Packery
Fix broken Outlayer dependency for Packery
JSON
mpl-2.0
tqyu/Webmaker-Profile
json
## Code Before: { "name": "Webmaker Profile", "dependencies": { "jquery": "2.0.3", "lesshat": "1.1.2", "jquery-ui": "1.10.3", "jade": "0.34.1", "text": "2.0.10", "font-awesome": "3.2.1", "masonry": "3.1.1", "packery": "1.1.0", "imagesloaded": "3.0.4", "draggabilly": "1.0.5", "komponent": "0.4.0", "requirejs": "2.1.8", "store.js": "1.3.9", "lodash": "1.3.1", "node-uuid": "1.4.1", "getUserMedia": "https://github.com/HenrikJoreteg/getUserMedia.git", "Animated_GIF": "https://github.com/k88hudson/Animated_GIF.git" }, "resolutions": { "jquery": "2.0.3" } } ## Instruction: Fix broken Outlayer dependency for Packery ## Code After: { "name": "Webmaker Profile", "dependencies": { "jquery": "2.0.3", "lesshat": "1.1.2", "jquery-ui": "1.10.3", "jade": "0.34.1", "text": "2.0.10", "font-awesome": "3.2.1", "masonry": "3.1.1", "packery": "1.1.0", "outlayer": "1.1.3", "imagesloaded": "3.0.4", "draggabilly": "1.0.5", "komponent": "0.4.0", "requirejs": "2.1.8", "store.js": "1.3.9", "lodash": "1.3.1", "node-uuid": "1.4.1", "getUserMedia": "https://github.com/HenrikJoreteg/getUserMedia.git", "Animated_GIF": "https://github.com/k88hudson/Animated_GIF.git" }, "resolutions": { "jquery": "2.0.3" } }
{ "name": "Webmaker Profile", "dependencies": { "jquery": "2.0.3", "lesshat": "1.1.2", "jquery-ui": "1.10.3", "jade": "0.34.1", "text": "2.0.10", "font-awesome": "3.2.1", "masonry": "3.1.1", "packery": "1.1.0", + "outlayer": "1.1.3", "imagesloaded": "3.0.4", "draggabilly": "1.0.5", "komponent": "0.4.0", "requirejs": "2.1.8", "store.js": "1.3.9", "lodash": "1.3.1", "node-uuid": "1.4.1", "getUserMedia": "https://github.com/HenrikJoreteg/getUserMedia.git", "Animated_GIF": "https://github.com/k88hudson/Animated_GIF.git" }, "resolutions": { "jquery": "2.0.3" } }
1
0.04
1
0
9a329ae22da450d186932c378f5a5e0af02ee8db
app/templates/components/paper-select-container.hbs
app/templates/components/paper-select-container.hbs
{{yield this}} {{#ember-wormhole to="paper-wormhole"}} {{paper-backdrop tap="toggleMenu"}} {{/ember-wormhole}}
{{yield this}} {{#ember-wormhole to="paper-wormhole"}} {{paper-backdrop class="md-select-backdrop" tap="toggleMenu"}} {{/ember-wormhole}}
Add class to select backdrop
Add class to select backdrop
Handlebars
mit
xomaczar/ember-paper,PartCycleTech/ember-paper,JustInToCoding/ember-paper,miguelcobain/ember-paper,baroquon/ember-paper,joukevandermaas/ember-paper,jamesdixon/ember-paper,baroquon/ember-paper,mhretab/ember-paper,mnutt/ember-paper,pauln/ember-paper,miguelcobain/ember-paper,bjornharrtell/ember-paper,canufeel/ember-paper,DanChadwick/ember-paper,baroquon/ember-paper,PartCycleTech/ember-paper,PartCycleTech/ember-paper,mike1o1/ember-paper,canufeel/ember-paper,joukevandermaas/ember-paper,mnutt/ember-paper,tmclouisluk/ember-paper,stonecircle/ember-paper,bjornharrtell/ember-paper,Blooie/ember-paper,DanChadwick/ember-paper,joukevandermaas/ember-paper,stonecircle/ember-paper,pauln/ember-paper,tmclouisluk/ember-paper,cogniteev/ember-paper,pauln/ember-paper,peec/ember-paper,cogniteev/ember-paper,tmclouisluk/ember-paper,JustInToCoding/ember-paper,miguelcobain/ember-paper,bjornharrtell/ember-paper,Blooie/ember-paper,jamesdixon/ember-paper,mhretab/ember-paper,JustInToCoding/ember-paper,cogniteev/ember-paper,DanChadwick/ember-paper,mike1o1/ember-paper,jamesdixon/ember-paper,xomaczar/ember-paper,peec/ember-paper,mnutt/ember-paper,xomaczar/ember-paper,stonecircle/ember-paper
handlebars
## Code Before: {{yield this}} {{#ember-wormhole to="paper-wormhole"}} {{paper-backdrop tap="toggleMenu"}} {{/ember-wormhole}} ## Instruction: Add class to select backdrop ## Code After: {{yield this}} {{#ember-wormhole to="paper-wormhole"}} {{paper-backdrop class="md-select-backdrop" tap="toggleMenu"}} {{/ember-wormhole}}
{{yield this}} {{#ember-wormhole to="paper-wormhole"}} - {{paper-backdrop tap="toggleMenu"}} + {{paper-backdrop class="md-select-backdrop" tap="toggleMenu"}} {{/ember-wormhole}}
2
0.5
1
1
d288596fd53f645e05c7265bbf7d1559e5f494c6
CTestConfig.cmake
CTestConfig.cmake
set(CTEST_PROJECT_NAME "Vigra") set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "rubens") set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra") set(CTEST_DROP_SITE_CDASH TRUE)
set(CTEST_PROJECT_NAME "Vigra") set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "rubens") set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra") set(CTEST_DROP_SITE_CDASH TRUE) SET(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes")
Enable tracing memory errors with ctest-valgrind also for tests controlled by shell scripts.
Enable tracing memory errors with ctest-valgrind also for tests controlled by shell scripts.
CMake
mit
martinsch/vigra,timoMa/vigra,dagophil/vigra,funkey/vigra,ThomasWalter/vigra,stuarteberg/vigra,kod3r/vigra,capturePointer/vigra,dstoe/vigra,martinsch/vigra,xiwei-zhang/vigra,psteinb/vigra,dstoe/vigra,cbecker/vigra,capturePointer/vigra,stuarteberg/vigra,funkey/vigra,funkey/vigra,psteinb/vigra,ThomasWalter/vigra,dagophil/vigra,xiwei-zhang/vigra,psteinb/vigra,cha007/vigra,ThomasWalter/vigra,dstoe/vigra,ThomasWalter/vigra,timoMa/vigra,funkey/vigra,funkey/vigra,capturePointer/vigra,kod3r/vigra,ThomasWalter/vigra,psteinb/vigra,capturePointer/vigra,dagophil/vigra,dagophil/vigra,hmeine/vigra,capturePointer/vigra,cbecker/vigra,capturePointer/vigra,cha007/vigra,DaveRichmond-/vigra,dstoe/vigra,cha007/vigra,dstoe/vigra,cbecker/vigra,kod3r/vigra,timoMa/vigra,stuarteberg/vigra,cbecker/vigra,kod3r/vigra,kod3r/vigra,martinsch/vigra,kod3r/vigra,hmeine/vigra,xiwei-zhang/vigra,hmeine/vigra,stuarteberg/vigra,dagophil/vigra,timoMa/vigra,timoMa/vigra,psteinb/vigra,martinsch/vigra,dstoe/vigra,timoMa/vigra,DaveRichmond-/vigra,stuarteberg/vigra,ThomasWalter/vigra,mmuellner/vigra,mmuellner/vigra,dstoe/vigra,martinsch/vigra,stuarteberg/vigra,mmuellner/vigra,cbecker/vigra,xiwei-zhang/vigra,mmuellner/vigra,hmeine/vigra,xiwei-zhang/vigra,xiwei-zhang/vigra,stuarteberg/vigra,capturePointer/vigra,cha007/vigra,dagophil/vigra,cha007/vigra,ThomasWalter/vigra,martinsch/vigra,kod3r/vigra,cha007/vigra,timoMa/vigra,DaveRichmond-/vigra,DaveRichmond-/vigra,funkey/vigra,mmuellner/vigra,psteinb/vigra,DaveRichmond-/vigra,dagophil/vigra,psteinb/vigra,hmeine/vigra,funkey/vigra,xiwei-zhang/vigra,DaveRichmond-/vigra,hmeine/vigra,hmeine/vigra,cha007/vigra,cbecker/vigra,DaveRichmond-/vigra,mmuellner/vigra,mmuellner/vigra
cmake
## Code Before: set(CTEST_PROJECT_NAME "Vigra") set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "rubens") set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra") set(CTEST_DROP_SITE_CDASH TRUE) ## Instruction: Enable tracing memory errors with ctest-valgrind also for tests controlled by shell scripts. ## Code After: set(CTEST_PROJECT_NAME "Vigra") set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "rubens") set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra") set(CTEST_DROP_SITE_CDASH TRUE) SET(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes")
set(CTEST_PROJECT_NAME "Vigra") set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") - set(CTEST_DROP_METHOD "http") set(CTEST_DROP_SITE "rubens") set(CTEST_DROP_LOCATION "/cdash/submit.php?project=Vigra") set(CTEST_DROP_SITE_CDASH TRUE) + + + SET(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes")
4
0.4
3
1
410b4b39ef0dd64949853325df4b6aa20ffbb16e
docker-compose.yml
docker-compose.yml
version: '3' services: db: image: postgres:12.1 ports: - "55432:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - ./data/postgres:/var/lib/postgresql/data
version: '3' services: dev-db: image: postgres:12.1 ports: - "55432:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - ./data/dev-postgres:/var/lib/postgresql/data test-db: image: postgres:12.1 ports: - "55433:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - ./data/test-postgres:/var/lib/postgresql/data
Add second postgres docker instance for dev work
Add second postgres docker instance for dev work
YAML
epl-1.0
clojars/clojars-web,ato/clojars-web,ato/clojars-web,tobias/clojars-web,clojars/clojars-web,tobias/clojars-web,clojars/clojars-web,tobias/clojars-web
yaml
## Code Before: version: '3' services: db: image: postgres:12.1 ports: - "55432:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - ./data/postgres:/var/lib/postgresql/data ## Instruction: Add second postgres docker instance for dev work ## Code After: version: '3' services: dev-db: image: postgres:12.1 ports: - "55432:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - ./data/dev-postgres:/var/lib/postgresql/data test-db: image: postgres:12.1 ports: - "55433:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - ./data/test-postgres:/var/lib/postgresql/data
version: '3' services: - db: + dev-db: image: postgres:12.1 ports: - "55432:5432" environment: - POSTGRES_USER=clojars - POSTGRES_PASSWORD=clojars - POSTGRES_DB=clojars volumes: - - ./data/postgres:/var/lib/postgresql/data + - ./data/dev-postgres:/var/lib/postgresql/data ? ++++ + test-db: + image: postgres:12.1 + ports: + - "55433:5432" + environment: + - POSTGRES_USER=clojars + - POSTGRES_PASSWORD=clojars + - POSTGRES_DB=clojars + volumes: + - ./data/test-postgres:/var/lib/postgresql/data
14
1.166667
12
2
ed1982ed8795266ba707502ea49a0a728b90957d
src/templates/reviews/talkproposal_list.html
src/templates/reviews/talkproposal_list.html
{% extends 'dashboard_base.html' %} {% load i18n crispy_forms_tags %} {% block dashboard_tablist %} {% include '_includes/dashboard_tablist.html' with active='review' %} {% endblock dashboard_tablist %}
{% extends 'dashboard_base.html' %} {% load i18n crispy_forms_tags %} {% block dashboard_tablist %} {% include '_includes/dashboard_tablist.html' with active='review' %} {% endblock dashboard_tablist %} {% block main-content %} <ul> {% for object in object_list %} <li>{{ object.title }} <a href="{% url 'review_proposal_detail' object.pk %}">Review</a></li> {% endfor %} </ul> {% endblock main-content %}
Change template for review proposal
Change template for review proposal
HTML
mit
pycontw/pycontw2016,pycontw/pycontw2016,pycontw/pycontw2016,pycontw/pycontw2016
html
## Code Before: {% extends 'dashboard_base.html' %} {% load i18n crispy_forms_tags %} {% block dashboard_tablist %} {% include '_includes/dashboard_tablist.html' with active='review' %} {% endblock dashboard_tablist %} ## Instruction: Change template for review proposal ## Code After: {% extends 'dashboard_base.html' %} {% load i18n crispy_forms_tags %} {% block dashboard_tablist %} {% include '_includes/dashboard_tablist.html' with active='review' %} {% endblock dashboard_tablist %} {% block main-content %} <ul> {% for object in object_list %} <li>{{ object.title }} <a href="{% url 'review_proposal_detail' object.pk %}">Review</a></li> {% endfor %} </ul> {% endblock main-content %}
{% extends 'dashboard_base.html' %} {% load i18n crispy_forms_tags %} {% block dashboard_tablist %} {% include '_includes/dashboard_tablist.html' with active='review' %} {% endblock dashboard_tablist %} + + {% block main-content %} + <ul> + {% for object in object_list %} + <li>{{ object.title }} <a href="{% url 'review_proposal_detail' object.pk %}">Review</a></li> + {% endfor %} + </ul> + + {% endblock main-content %}
9
1.285714
9
0
fba051054a620955435c0d4e7cf7ad1d53a77e53
pages/index.js
pages/index.js
import React, { Fragment } from 'react'; import Head from 'next/head'; import { Header, RaffleContainer } from '../components'; export default () => ( <Fragment> <Head> <meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>meetup-raffle</title> <link rel="stylesheet" href="/static/tachyons.min.css" /> <script src="/static/lib.min.js" /> </Head> <main className="sans-serif near-black"> <Header /> <RaffleContainer /> </main> </Fragment> );
import React, { Fragment } from 'react'; import Head from 'next/head'; import { Header, RaffleContainer } from '../components'; export default () => ( <Fragment> <Head> <meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>meetup-raffle</title> <link rel="stylesheet" href="/static/tachyons.min.css" /> </Head> <main className="sans-serif near-black"> <Header /> <RaffleContainer /> </main> <script src="/static/lib.min.js" /> </Fragment> );
Move script tag below content
Move script tag below content
JavaScript
mit
wKovacs64/meetup-raffle,wKovacs64/meetup-raffle
javascript
## Code Before: import React, { Fragment } from 'react'; import Head from 'next/head'; import { Header, RaffleContainer } from '../components'; export default () => ( <Fragment> <Head> <meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>meetup-raffle</title> <link rel="stylesheet" href="/static/tachyons.min.css" /> <script src="/static/lib.min.js" /> </Head> <main className="sans-serif near-black"> <Header /> <RaffleContainer /> </main> </Fragment> ); ## Instruction: Move script tag below content ## Code After: import React, { Fragment } from 'react'; import Head from 'next/head'; import { Header, RaffleContainer } from '../components'; export default () => ( <Fragment> <Head> <meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>meetup-raffle</title> <link rel="stylesheet" href="/static/tachyons.min.css" /> </Head> <main className="sans-serif near-black"> <Header /> <RaffleContainer /> </main> <script src="/static/lib.min.js" /> </Fragment> );
import React, { Fragment } from 'react'; import Head from 'next/head'; import { Header, RaffleContainer } from '../components'; export default () => ( <Fragment> <Head> <meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>meetup-raffle</title> <link rel="stylesheet" href="/static/tachyons.min.css" /> - <script src="/static/lib.min.js" /> </Head> <main className="sans-serif near-black"> <Header /> <RaffleContainer /> </main> + <script src="/static/lib.min.js" /> </Fragment> );
2
0.105263
1
1
8de647f651cb86339b912136a12ea72673a28a3a
.travis.yml
.travis.yml
language: php sudo: true php: - '5.6' - '5.7' - '7.0' before_install: # We need this because Zenfolio uses a Comodo/AddTrust certificate not trusted by default. - echo -n | openssl s_client -connect api.zenfolio.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt - composer self-update install: - composer install script: - vendor/bin/phpunit after_script: - vendor/bin/coveralls -v
language: php sudo: true php: - '5.6' - '7.0' before_install: # We need this because Zenfolio uses a Comodo/AddTrust certificate not trusted by default. - echo -n | openssl s_client -connect api.zenfolio.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt - composer self-update install: - composer install script: - vendor/bin/phpunit after_script: - vendor/bin/coveralls -v
Revert "Test against PHP 5.7 too"
Revert "Test against PHP 5.7 too" This reverts commit a5ec41340e9e317a859aa7bb65dfbbdf30788dab. :blush: this version didn't actually happen :blush:
YAML
mit
lildude/phpZenfolio
yaml
## Code Before: language: php sudo: true php: - '5.6' - '5.7' - '7.0' before_install: # We need this because Zenfolio uses a Comodo/AddTrust certificate not trusted by default. - echo -n | openssl s_client -connect api.zenfolio.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt - composer self-update install: - composer install script: - vendor/bin/phpunit after_script: - vendor/bin/coveralls -v ## Instruction: Revert "Test against PHP 5.7 too" This reverts commit a5ec41340e9e317a859aa7bb65dfbbdf30788dab. :blush: this version didn't actually happen :blush: ## Code After: language: php sudo: true php: - '5.6' - '7.0' before_install: # We need this because Zenfolio uses a Comodo/AddTrust certificate not trusted by default. - echo -n | openssl s_client -connect api.zenfolio.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt - composer self-update install: - composer install script: - vendor/bin/phpunit after_script: - vendor/bin/coveralls -v
language: php sudo: true php: - '5.6' - - '5.7' - '7.0' before_install: # We need this because Zenfolio uses a Comodo/AddTrust certificate not trusted by default. - echo -n | openssl s_client -connect api.zenfolio.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt - composer self-update install: - composer install script: - vendor/bin/phpunit after_script: - vendor/bin/coveralls -v
1
0.052632
0
1
065a61aecbe4bb3280618a61e996d23d5d98abdf
styles/languages/perl.less
styles/languages/perl.less
@import "colors"; .syntax--source.syntax--perl { .syntax--pod { &.syntax--displayed-text { color: @constant; } &.syntax--inline.syntax--tag { .syntax--punctuation.syntax--begin, .syntax--punctuation.syntax--end { color: @punctuation; } } } }
@import "colors"; .syntax--source.syntax--perl { .syntax--pod { &.syntax--displayed-text { color: @constant; } &.syntax--inline.syntax--tag { .syntax--punctuation.syntax--begin, .syntax--punctuation.syntax--end { color: @punctuation; } } .syntax--invalid.syntax--illegal.syntax--whitespace { background-color: @error; } } }
Add error highlighting to illegal whitespace in Pod
Add error highlighting to illegal whitespace in Pod
Less
mit
jesseweed/seti-syntax,jesseweed/seti-syntax,jesseweed/seti-syntax,jesseweed/seti-syntax,jesseweed/seti-syntax,jesseweed/seti-syntax
less
## Code Before: @import "colors"; .syntax--source.syntax--perl { .syntax--pod { &.syntax--displayed-text { color: @constant; } &.syntax--inline.syntax--tag { .syntax--punctuation.syntax--begin, .syntax--punctuation.syntax--end { color: @punctuation; } } } } ## Instruction: Add error highlighting to illegal whitespace in Pod ## Code After: @import "colors"; .syntax--source.syntax--perl { .syntax--pod { &.syntax--displayed-text { color: @constant; } &.syntax--inline.syntax--tag { .syntax--punctuation.syntax--begin, .syntax--punctuation.syntax--end { color: @punctuation; } } .syntax--invalid.syntax--illegal.syntax--whitespace { background-color: @error; } } }
@import "colors"; .syntax--source.syntax--perl { .syntax--pod { &.syntax--displayed-text { color: @constant; } &.syntax--inline.syntax--tag { .syntax--punctuation.syntax--begin, .syntax--punctuation.syntax--end { color: @punctuation; } } + + .syntax--invalid.syntax--illegal.syntax--whitespace { + background-color: @error; + } } }
4
0.235294
4
0
d6638cea18c01851df8078f297749ae8866609a7
actionbarsherlock/local.properties
actionbarsherlock/local.properties
sdk.dir=D:\\Program Files (x86)\\Android\\android-sdk
sdk.dir=C:\\DevTools\\android_adt_20130522\\sdk
Set new path to the Android SDK
Set new path to the Android SDK
INI
apache-2.0
ubreader/ActionBarSherlock,ubreader/ActionBarSherlock,ubreader/ActionBarSherlock,ubreader/ActionBarSherlock
ini
## Code Before: sdk.dir=D:\\Program Files (x86)\\Android\\android-sdk ## Instruction: Set new path to the Android SDK ## Code After: sdk.dir=C:\\DevTools\\android_adt_20130522\\sdk
- sdk.dir=D:\\Program Files (x86)\\Android\\android-sdk + sdk.dir=C:\\DevTools\\android_adt_20130522\\sdk
2
2
1
1
9b1e3efefdb1ba913f684b390e7a4a57b35074d4
Changelog.md
Changelog.md
* Update to Rails 4 * Drop compatiblity with Rails 3.1 and Ruby 1.8 ### 0.0.1 * Added the encryptable module and the encryptors from Devise.
* Updated to Rails 4+. * Dropped compatiblity with Rails 3.1 and Ruby 1.8. ### 0.1.2 * Devise dependency locked at `2.1.x`. ### 0.1.1 * Initial support for Devise `2.1.0.rc`. ### 0.1.0 * Added the encryptable module and the encryptors from Devise.
Update the CHANGELOG a bit.
Update the CHANGELOG a bit.
Markdown
apache-2.0
plataformatec/devise-encryptable
markdown
## Code Before: * Update to Rails 4 * Drop compatiblity with Rails 3.1 and Ruby 1.8 ### 0.0.1 * Added the encryptable module and the encryptors from Devise. ## Instruction: Update the CHANGELOG a bit. ## Code After: * Updated to Rails 4+. * Dropped compatiblity with Rails 3.1 and Ruby 1.8. ### 0.1.2 * Devise dependency locked at `2.1.x`. ### 0.1.1 * Initial support for Devise `2.1.0.rc`. ### 0.1.0 * Added the encryptable module and the encryptors from Devise.
- * Update to Rails 4 ? -- + * Updated to Rails 4+. ? + ++ - * Drop compatiblity with Rails 3.1 and Ruby 1.8 ? -- + * Dropped compatiblity with Rails 3.1 and Ruby 1.8. ? +++ + + ### 0.1.2 + + * Devise dependency locked at `2.1.x`. + - ### 0.0.1 ? ^ + ### 0.1.1 ? ^ + + * Initial support for Devise `2.1.0.rc`. + + ### 0.1.0 + - * Added the encryptable module and the encryptors from Devise. ? -- + * Added the encryptable module and the encryptors from Devise.
17
2.833333
13
4
c4b7241d668a60f554b699da38806bea4433986f
.travis.yml
.travis.yml
language: php before_script: # Setup Coveralls and httpbin-php - phpenv local 5.5 - composer install --dev --no-interaction - sudo PATH=$PATH vendor/bin/start.sh - export REQUESTS_TEST_HOST_HTTP=localhost - phpenv local --unset # Work out of the tests directory - cd tests script: - phpunit --coverage-clover clover.xml after_script: - cd .. - phpenv local 5.5 - sudo PATH=$PATH vendor/bin/stop.sh - php vendor/bin/coveralls -v - phpenv local --unset php: - 5.2 - 5.3 - 5.4 - 5.5 - hhvm
language: php before_script: # Setup Coveralls and httpbin-php - phpenv local 5.5 - composer install --dev --no-interaction - TESTPHPBIN=$(phpenv which php) - sudo PHPBIN=$TESTPHPBIN vendor/bin/start.sh - export REQUESTS_TEST_HOST_HTTP=localhost - phpenv local --unset # Work out of the tests directory - cd tests script: - phpunit --coverage-clover clover.xml after_script: - cd .. - phpenv local 5.5 - sudo PATH=$PATH vendor/bin/stop.sh - php vendor/bin/coveralls -v - phpenv local --unset php: - 5.2 - 5.3 - 5.4 - 5.5 - hhvm
Set PHPBIN to correct version
Set PHPBIN to correct version
YAML
bsd-3-clause
meox/Requests,meox/Requests,dskanth/Requests,mubassirhayat/Requests,meox/Requests,andreipetcu/Requests
yaml
## Code Before: language: php before_script: # Setup Coveralls and httpbin-php - phpenv local 5.5 - composer install --dev --no-interaction - sudo PATH=$PATH vendor/bin/start.sh - export REQUESTS_TEST_HOST_HTTP=localhost - phpenv local --unset # Work out of the tests directory - cd tests script: - phpunit --coverage-clover clover.xml after_script: - cd .. - phpenv local 5.5 - sudo PATH=$PATH vendor/bin/stop.sh - php vendor/bin/coveralls -v - phpenv local --unset php: - 5.2 - 5.3 - 5.4 - 5.5 - hhvm ## Instruction: Set PHPBIN to correct version ## Code After: language: php before_script: # Setup Coveralls and httpbin-php - phpenv local 5.5 - composer install --dev --no-interaction - TESTPHPBIN=$(phpenv which php) - sudo PHPBIN=$TESTPHPBIN vendor/bin/start.sh - export REQUESTS_TEST_HOST_HTTP=localhost - phpenv local --unset # Work out of the tests directory - cd tests script: - phpunit --coverage-clover clover.xml after_script: - cd .. - phpenv local 5.5 - sudo PATH=$PATH vendor/bin/stop.sh - php vendor/bin/coveralls -v - phpenv local --unset php: - 5.2 - 5.3 - 5.4 - 5.5 - hhvm
language: php before_script: # Setup Coveralls and httpbin-php - phpenv local 5.5 - composer install --dev --no-interaction + + - TESTPHPBIN=$(phpenv which php) - - sudo PATH=$PATH vendor/bin/start.sh ? -- -- + - sudo PHPBIN=$TESTPHPBIN vendor/bin/start.sh ? ++++ ++++ ++++ - export REQUESTS_TEST_HOST_HTTP=localhost - phpenv local --unset # Work out of the tests directory - cd tests script: - phpunit --coverage-clover clover.xml after_script: - cd .. - phpenv local 5.5 - sudo PATH=$PATH vendor/bin/stop.sh - php vendor/bin/coveralls -v - phpenv local --unset php: - 5.2 - 5.3 - 5.4 - 5.5 - hhvm
4
0.16
3
1
54ed0dd945627c5f0885113b4e9af26cf5139d4a
lib/cursor-position-view.coffee
lib/cursor-position-view.coffee
class CursorPositionView extends HTMLElement initialize: -> @classList.add('cursor-position', 'inline-block') @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem (activeItem) => @subscribeToActiveTextEditor() @subscribeToActiveTextEditor() destroy: -> @activeItemSubscription.dispose() @cursorSubscription?.dispose() subscribeToActiveTextEditor: -> @cursorSubscription?.dispose() @cursorSubscription = @getActiveTextEditor()?.onDidChangeCursorPosition => @updatePosition() @updatePosition() getActiveTextEditor: -> atom.workspace.getActiveTextEditor() updatePosition: -> if position = @getActiveTextEditor()?.getCursorBufferPosition() @textContent = "#{position.row + 1}:#{position.column + 1}" else @textContent = '' module.exports = document.registerElement('status-bar-cursor', prototype: CursorPositionView.prototype, extends: 'div')
class CursorPositionView extends HTMLElement initialize: -> @classList.add('cursor-position', 'inline-block') @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem (activeItem) => @subscribeToActiveTextEditor() @subscribeToActiveTextEditor() @tooltip = atom.tooltips.add(this, title: "Line x, Column y") destroy: -> @activeItemSubscription.dispose() @cursorSubscription?.dispose() @tooltip.dispose() subscribeToActiveTextEditor: -> @cursorSubscription?.dispose() @cursorSubscription = @getActiveTextEditor()?.onDidChangeCursorPosition => @updatePosition() @updatePosition() getActiveTextEditor: -> atom.workspace.getActiveTextEditor() updatePosition: -> if position = @getActiveTextEditor()?.getCursorBufferPosition() row = position.row + 1 column = position.column + 1 @textContent = "#{row}:#{column}" @tooltip?.dispose() @tooltip = atom.tooltips.add(this, title: "Line #{row}, Column #{column}") else @textContent = '' @tooltip?.dispose() module.exports = document.registerElement('status-bar-cursor', prototype: CursorPositionView.prototype, extends: 'div')
Add tooltip to cursor position status
Add tooltip to cursor position status
CoffeeScript
mit
pombredanne/status-bar,mertkahyaoglu/status-bar,TShapinsky/status-bar,Abdillah/status-bar,devoncarew/status-bar,ali/status-bar
coffeescript
## Code Before: class CursorPositionView extends HTMLElement initialize: -> @classList.add('cursor-position', 'inline-block') @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem (activeItem) => @subscribeToActiveTextEditor() @subscribeToActiveTextEditor() destroy: -> @activeItemSubscription.dispose() @cursorSubscription?.dispose() subscribeToActiveTextEditor: -> @cursorSubscription?.dispose() @cursorSubscription = @getActiveTextEditor()?.onDidChangeCursorPosition => @updatePosition() @updatePosition() getActiveTextEditor: -> atom.workspace.getActiveTextEditor() updatePosition: -> if position = @getActiveTextEditor()?.getCursorBufferPosition() @textContent = "#{position.row + 1}:#{position.column + 1}" else @textContent = '' module.exports = document.registerElement('status-bar-cursor', prototype: CursorPositionView.prototype, extends: 'div') ## Instruction: Add tooltip to cursor position status ## Code After: class CursorPositionView extends HTMLElement initialize: -> @classList.add('cursor-position', 'inline-block') @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem (activeItem) => @subscribeToActiveTextEditor() @subscribeToActiveTextEditor() @tooltip = atom.tooltips.add(this, title: "Line x, Column y") destroy: -> @activeItemSubscription.dispose() @cursorSubscription?.dispose() @tooltip.dispose() subscribeToActiveTextEditor: -> @cursorSubscription?.dispose() @cursorSubscription = @getActiveTextEditor()?.onDidChangeCursorPosition => @updatePosition() @updatePosition() getActiveTextEditor: -> atom.workspace.getActiveTextEditor() updatePosition: -> if position = @getActiveTextEditor()?.getCursorBufferPosition() row = position.row + 1 column = position.column + 1 @textContent = "#{row}:#{column}" @tooltip?.dispose() @tooltip = atom.tooltips.add(this, title: "Line #{row}, Column #{column}") else @textContent = '' @tooltip?.dispose() module.exports = document.registerElement('status-bar-cursor', prototype: CursorPositionView.prototype, extends: 'div')
class CursorPositionView extends HTMLElement initialize: -> @classList.add('cursor-position', 'inline-block') @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem (activeItem) => @subscribeToActiveTextEditor() @subscribeToActiveTextEditor() + @tooltip = atom.tooltips.add(this, title: "Line x, Column y") + destroy: -> @activeItemSubscription.dispose() @cursorSubscription?.dispose() + @tooltip.dispose() subscribeToActiveTextEditor: -> @cursorSubscription?.dispose() @cursorSubscription = @getActiveTextEditor()?.onDidChangeCursorPosition => @updatePosition() @updatePosition() getActiveTextEditor: -> atom.workspace.getActiveTextEditor() updatePosition: -> if position = @getActiveTextEditor()?.getCursorBufferPosition() + row = position.row + 1 + column = position.column + 1 - @textContent = "#{position.row + 1}:#{position.column + 1}" ? --------- ---- --------- ---- + @textContent = "#{row}:#{column}" + @tooltip?.dispose() + @tooltip = atom.tooltips.add(this, title: "Line #{row}, Column #{column}") else @textContent = '' + @tooltip?.dispose() module.exports = document.registerElement('status-bar-cursor', prototype: CursorPositionView.prototype, extends: 'div')
10
0.344828
9
1
489f77610c73ed717aad5d03f58667af6523aee2
lib/database_config.rb
lib/database_config.rb
require 'yaml' class DatabaseConfig class NoConfigFound < StandardError ; end def self.for(environment) config = YAML.load(File.read("database.yml"))[environment.to_s] if config.nil? raise NoConfigFound, "No config found for environment '#{environment}'" end { host: config["host"], database: config["database"], username: config["username"], password: config["password"] } end end
require 'yaml' class DatabaseConfig class NoConfigFound < StandardError ; end def self.for(environment) config = YAML.load(File.read("database.yml"))[environment.to_s] if config.nil? raise NoConfigFound, "No config found for environment '#{environment}'" end { host: config["host"], database: config["database"], username: config["username"], password: config["password"], reconnect: true } end end
Reconnect to the database server if the connection goes away.
Reconnect to the database server if the connection goes away.
Ruby
mit
lmeijvogel/meter-reader-api
ruby
## Code Before: require 'yaml' class DatabaseConfig class NoConfigFound < StandardError ; end def self.for(environment) config = YAML.load(File.read("database.yml"))[environment.to_s] if config.nil? raise NoConfigFound, "No config found for environment '#{environment}'" end { host: config["host"], database: config["database"], username: config["username"], password: config["password"] } end end ## Instruction: Reconnect to the database server if the connection goes away. ## Code After: require 'yaml' class DatabaseConfig class NoConfigFound < StandardError ; end def self.for(environment) config = YAML.load(File.read("database.yml"))[environment.to_s] if config.nil? raise NoConfigFound, "No config found for environment '#{environment}'" end { host: config["host"], database: config["database"], username: config["username"], password: config["password"], reconnect: true } end end
require 'yaml' class DatabaseConfig class NoConfigFound < StandardError ; end def self.for(environment) config = YAML.load(File.read("database.yml"))[environment.to_s] if config.nil? raise NoConfigFound, "No config found for environment '#{environment}'" end { host: config["host"], database: config["database"], username: config["username"], - password: config["password"] + password: config["password"], ? + + reconnect: true } end end
3
0.157895
2
1
32c86a6f6ebd84cf1a08e037bc399a956fd007f7
.travis.yml
.travis.yml
language: csharp dotnet: 2.1.4 env: - FrameworkPathOverride=/usr/lib/mono/4.5/ jobs: include: - stage: test mono: none script: - dotnet test ./source/ApplicationDataModelTest/ApplicationDataModelTest.csproj -c Release - dotnet test ./source/PluginManagerTest/PluginManagerTest.csproj -c Release - dotnet test ./source/RepresentationTest/RepresentationTest.csproj -c Release - stage: deploy if: tag =~ ^v\d+\.\d+\.\d+ mono: 5.8.0 script: - VERSION=$(echo $TRAVIS_TAG | grep -i -P -o '(?<=^v)\d+\.\d+\.\d+(?:.+)?$'); VERSION_NUMBER=$(echo $VERSION | grep -i -P -o '^\d+\.\d+\.\d+') - dotnet build ./ADAPT.sln -c Release /p:Version=$VERSION /p:FileVersion=$VERSION_NUMBER.$TRAVIS_BUILD_NUMBER - mkdir -p ./dist; nuget pack ./AgGatewayADAPTFramework.nuspec -verbosity detailed -outputdirectory ./dist -version $VERSION - if [ -n "${NUGET_API_KEY}" ]; then nuget push ./dist/AgGatewayADAPTFramework.${VERSION}.nupkg -apikey $NUGET_API_KEY -source https://www.nuget.org/api/v2/package; fi deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN file: "./dist/AgGatewayADAPTFramework.${VERSION}.nupkg" skip_cleanup: true on: tags: true
language: csharp dotnet: 2.1.4 env: - FrameworkPathOverride=/usr/lib/mono/4.5/ jobs: include: - stage: test mono: none script: - dotnet test ./source/ApplicationDataModelTest/ApplicationDataModelTest.csproj -c Release - dotnet test ./source/PluginManagerTest/PluginManagerTest.csproj -c Release - dotnet test ./source/RepresentationTest/RepresentationTest.csproj -c Release - stage: deploy if: tag =~ ^v\d+\.\d+\.\d+ mono: 5.8.0 script: - VERSION=$(echo $TRAVIS_TAG | grep -i -P -o '(?<=^v)\d+\.\d+\.\d+(?:.+)?$'); VERSION_NUMBER=$(echo $VERSION | grep -i -P -o '^\d+\.\d+\.\d+') - dotnet build ./ADAPT.sln -c Release /p:Version=$VERSION /p:FileVersion=$VERSION_NUMBER.$TRAVIS_BUILD_NUMBER - mkdir -p ./dist; nuget pack ./AgGatewayADAPTFramework.nuspec -verbosity detailed -outputdirectory ./dist -version $VERSION - if [ -n "${NUGET_API_KEY}" ]; then dotnet nuget push ./dist/AgGatewayADAPTFramework.${VERSION}.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json; fi deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN file: "./dist/AgGatewayADAPTFramework.${VERSION}.nupkg" skip_cleanup: true on: tags: true
Use dotnet nuget push command
Use dotnet nuget push command
YAML
epl-1.0
tarakreddy/ADAPT,ADAPT/ADAPT
yaml
## Code Before: language: csharp dotnet: 2.1.4 env: - FrameworkPathOverride=/usr/lib/mono/4.5/ jobs: include: - stage: test mono: none script: - dotnet test ./source/ApplicationDataModelTest/ApplicationDataModelTest.csproj -c Release - dotnet test ./source/PluginManagerTest/PluginManagerTest.csproj -c Release - dotnet test ./source/RepresentationTest/RepresentationTest.csproj -c Release - stage: deploy if: tag =~ ^v\d+\.\d+\.\d+ mono: 5.8.0 script: - VERSION=$(echo $TRAVIS_TAG | grep -i -P -o '(?<=^v)\d+\.\d+\.\d+(?:.+)?$'); VERSION_NUMBER=$(echo $VERSION | grep -i -P -o '^\d+\.\d+\.\d+') - dotnet build ./ADAPT.sln -c Release /p:Version=$VERSION /p:FileVersion=$VERSION_NUMBER.$TRAVIS_BUILD_NUMBER - mkdir -p ./dist; nuget pack ./AgGatewayADAPTFramework.nuspec -verbosity detailed -outputdirectory ./dist -version $VERSION - if [ -n "${NUGET_API_KEY}" ]; then nuget push ./dist/AgGatewayADAPTFramework.${VERSION}.nupkg -apikey $NUGET_API_KEY -source https://www.nuget.org/api/v2/package; fi deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN file: "./dist/AgGatewayADAPTFramework.${VERSION}.nupkg" skip_cleanup: true on: tags: true ## Instruction: Use dotnet nuget push command ## Code After: language: csharp dotnet: 2.1.4 env: - FrameworkPathOverride=/usr/lib/mono/4.5/ jobs: include: - stage: test mono: none script: - dotnet test ./source/ApplicationDataModelTest/ApplicationDataModelTest.csproj -c Release - dotnet test ./source/PluginManagerTest/PluginManagerTest.csproj -c Release - dotnet test ./source/RepresentationTest/RepresentationTest.csproj -c Release - stage: deploy if: tag =~ ^v\d+\.\d+\.\d+ mono: 5.8.0 script: - VERSION=$(echo $TRAVIS_TAG | grep -i -P -o '(?<=^v)\d+\.\d+\.\d+(?:.+)?$'); VERSION_NUMBER=$(echo $VERSION | grep -i -P -o '^\d+\.\d+\.\d+') - dotnet build ./ADAPT.sln -c Release /p:Version=$VERSION /p:FileVersion=$VERSION_NUMBER.$TRAVIS_BUILD_NUMBER - mkdir -p ./dist; nuget pack ./AgGatewayADAPTFramework.nuspec -verbosity detailed -outputdirectory ./dist -version $VERSION - if [ -n "${NUGET_API_KEY}" ]; then dotnet nuget push ./dist/AgGatewayADAPTFramework.${VERSION}.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json; fi deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN file: "./dist/AgGatewayADAPTFramework.${VERSION}.nupkg" skip_cleanup: true on: tags: true
language: csharp dotnet: 2.1.4 env: - FrameworkPathOverride=/usr/lib/mono/4.5/ jobs: include: - stage: test mono: none script: - dotnet test ./source/ApplicationDataModelTest/ApplicationDataModelTest.csproj -c Release - dotnet test ./source/PluginManagerTest/PluginManagerTest.csproj -c Release - dotnet test ./source/RepresentationTest/RepresentationTest.csproj -c Release - stage: deploy if: tag =~ ^v\d+\.\d+\.\d+ mono: 5.8.0 script: - VERSION=$(echo $TRAVIS_TAG | grep -i -P -o '(?<=^v)\d+\.\d+\.\d+(?:.+)?$'); VERSION_NUMBER=$(echo $VERSION | grep -i -P -o '^\d+\.\d+\.\d+') - dotnet build ./ADAPT.sln -c Release /p:Version=$VERSION /p:FileVersion=$VERSION_NUMBER.$TRAVIS_BUILD_NUMBER - mkdir -p ./dist; nuget pack ./AgGatewayADAPTFramework.nuspec -verbosity detailed -outputdirectory ./dist -version $VERSION - - if [ -n "${NUGET_API_KEY}" ]; then nuget push ./dist/AgGatewayADAPTFramework.${VERSION}.nupkg -apikey $NUGET_API_KEY -source https://www.nuget.org/api/v2/package; fi ? ^^^ ^^ ^^^^^^^^^^ + - if [ -n "${NUGET_API_KEY}" ]; then dotnet nuget push ./dist/AgGatewayADAPTFramework.${VERSION}.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json; fi ? +++++++ + + + ^^^ ^^^ ^^ ++++++ deploy: provider: releases api_key: $GITHUB_OAUTH_TOKEN file: "./dist/AgGatewayADAPTFramework.${VERSION}.nupkg" skip_cleanup: true on: tags: true
2
0.068966
1
1
1bd7f0359067c426aedba3ca84d0ba96e78cd65b
test/Modules/warn-unused-local-typedef.cpp
test/Modules/warn-unused-local-typedef.cpp
// RUN: rm -rf %t // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_1 // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_2 -allow-empty // For modules, the warning should only fire the first time, when the module is // built. // CHECK_1: warning: unused typedef // CHECK_2-NOT: warning: unused typedef @import warn_unused_local_typedef;
// RUN: rm -rf %t // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_1 // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_2 -allow-empty // For modules, the warning should only fire the first time, when the module is // built. // CHECK_1: warning: unused typedef // CHECK_2-NOT: warning: unused typedef @import warn_unused_local_typedef;
Fix test to not write output to the test directory, as it may not be writable.
Fix test to not write output to the test directory, as it may not be writable. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@217337 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang
c++
## Code Before: // RUN: rm -rf %t // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_1 // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_2 -allow-empty // For modules, the warning should only fire the first time, when the module is // built. // CHECK_1: warning: unused typedef // CHECK_2-NOT: warning: unused typedef @import warn_unused_local_typedef; ## Instruction: Fix test to not write output to the test directory, as it may not be writable. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@217337 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: // RUN: rm -rf %t // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_1 // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_2 -allow-empty // For modules, the warning should only fire the first time, when the module is // built. // CHECK_1: warning: unused typedef // CHECK_2-NOT: warning: unused typedef @import warn_unused_local_typedef;
// RUN: rm -rf %t - // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_1 + // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_1 ? +++++++++++++ - // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s 2>&1 | FileCheck %s -check-prefix=CHECK_2 -allow-empty + // RUN: %clang -Wunused-local-typedef -c -x objective-c++ -fcxx-modules -fmodules -fmodules-cache-path=%t -I %S/Inputs %s -o /dev/null 2>&1 | FileCheck %s -check-prefix=CHECK_2 -allow-empty ? +++++++++++++ // For modules, the warning should only fire the first time, when the module is // built. // CHECK_1: warning: unused typedef // CHECK_2-NOT: warning: unused typedef @import warn_unused_local_typedef;
4
0.444444
2
2
f5a4217444fc4bf3eea09221812ac365ed378584
src/User/Validation/ValidateCredentials.php
src/User/Validation/ValidateCredentials.php
<?php namespace Anomaly\UsersModule\User\Validation; use Anomaly\UsersModule\User\Contract\UserInterface; use Anomaly\UsersModule\User\Contract\UserRepositoryInterface; use Anomaly\UsersModule\User\Login\LoginFormBuilder; use Anomaly\UsersModule\User\UserAuthenticator; use Symfony\Component\HttpFoundation\Response; /** * Class ValidateCredentials * * @link http://pyrocms.com/ * @author PyroCMS, Inc. <support@pyrocms.com> * @author Ryan Thompson <ryan@pyrocms.com> */ class ValidateCredentials { /** * Handle the validation. * * @param UserAuthenticator $authenticator * @param LoginFormBuilder $builder * @return bool */ public function handle(UserAuthenticator $authenticator, LoginFormBuilder $builder) { $values = $builder->getFormValues(); if (!$response = $authenticator->authenticate($values->all())) { return false; } if ($response instanceof UserInterface) { $builder->setUser($response); } if ($response instanceof Response) { $builder->setFormResponse($response); } return true; } }
<?php namespace Anomaly\UsersModule\User\Validation; use Anomaly\UsersModule\User\Contract\UserInterface; use Anomaly\UsersModule\User\Login\LoginFormBuilder; use Anomaly\UsersModule\User\UserAuthenticator; use Symfony\Component\HttpFoundation\Response; /** * Class ValidateCredentials * * @link http://pyrocms.com/ * @author PyroCMS, Inc. <support@pyrocms.com> * @author Ryan Thompson <ryan@pyrocms.com> */ class ValidateCredentials { /** * Handle the validation. * * @param UserAuthenticator $authenticator * @param LoginFormBuilder $builder * @return bool */ public function handle(UserAuthenticator $authenticator, LoginFormBuilder $builder) { if (!$response = $authenticator->authenticate($builder->getPostData())) { return false; } if ($response instanceof UserInterface) { $builder->setUser($response); } if ($response instanceof Response) { $builder->setFormResponse($response); } return true; } }
Use post data cause form values won't be here.
Use post data cause form values won't be here.
PHP
mit
anomalylabs/users-module
php
## Code Before: <?php namespace Anomaly\UsersModule\User\Validation; use Anomaly\UsersModule\User\Contract\UserInterface; use Anomaly\UsersModule\User\Contract\UserRepositoryInterface; use Anomaly\UsersModule\User\Login\LoginFormBuilder; use Anomaly\UsersModule\User\UserAuthenticator; use Symfony\Component\HttpFoundation\Response; /** * Class ValidateCredentials * * @link http://pyrocms.com/ * @author PyroCMS, Inc. <support@pyrocms.com> * @author Ryan Thompson <ryan@pyrocms.com> */ class ValidateCredentials { /** * Handle the validation. * * @param UserAuthenticator $authenticator * @param LoginFormBuilder $builder * @return bool */ public function handle(UserAuthenticator $authenticator, LoginFormBuilder $builder) { $values = $builder->getFormValues(); if (!$response = $authenticator->authenticate($values->all())) { return false; } if ($response instanceof UserInterface) { $builder->setUser($response); } if ($response instanceof Response) { $builder->setFormResponse($response); } return true; } } ## Instruction: Use post data cause form values won't be here. ## Code After: <?php namespace Anomaly\UsersModule\User\Validation; use Anomaly\UsersModule\User\Contract\UserInterface; use Anomaly\UsersModule\User\Login\LoginFormBuilder; use Anomaly\UsersModule\User\UserAuthenticator; use Symfony\Component\HttpFoundation\Response; /** * Class ValidateCredentials * * @link http://pyrocms.com/ * @author PyroCMS, Inc. <support@pyrocms.com> * @author Ryan Thompson <ryan@pyrocms.com> */ class ValidateCredentials { /** * Handle the validation. * * @param UserAuthenticator $authenticator * @param LoginFormBuilder $builder * @return bool */ public function handle(UserAuthenticator $authenticator, LoginFormBuilder $builder) { if (!$response = $authenticator->authenticate($builder->getPostData())) { return false; } if ($response instanceof UserInterface) { $builder->setUser($response); } if ($response instanceof Response) { $builder->setFormResponse($response); } return true; } }
<?php namespace Anomaly\UsersModule\User\Validation; use Anomaly\UsersModule\User\Contract\UserInterface; - use Anomaly\UsersModule\User\Contract\UserRepositoryInterface; use Anomaly\UsersModule\User\Login\LoginFormBuilder; use Anomaly\UsersModule\User\UserAuthenticator; use Symfony\Component\HttpFoundation\Response; /** * Class ValidateCredentials * * @link http://pyrocms.com/ * @author PyroCMS, Inc. <support@pyrocms.com> * @author Ryan Thompson <ryan@pyrocms.com> */ class ValidateCredentials { /** * Handle the validation. * * @param UserAuthenticator $authenticator - * @param LoginFormBuilder $builder ? - + * @param LoginFormBuilder $builder * @return bool */ public function handle(UserAuthenticator $authenticator, LoginFormBuilder $builder) { - $values = $builder->getFormValues(); - - if (!$response = $authenticator->authenticate($values->all())) { ? ^^ ^ ^ ^^ + if (!$response = $authenticator->authenticate($builder->getPostData())) { ? ^^^ ^ ^ ++++++++ ^^ return false; } if ($response instanceof UserInterface) { $builder->setUser($response); } if ($response instanceof Response) { $builder->setFormResponse($response); } return true; } }
7
0.159091
2
5
8a667b78b04ff1bd8007bef56222525d957a4193
run.sh
run.sh
pushd /tmp/ROOT jar xvf ./ROOT.war jar -xf ./WEB-INF/lib/usergrid-config-1.0.0.jar # make changes if [[ ! -z "$CASSANDRA_URL" ]]; then sed "s/cassandra.url=.*/aaa=$CASSANDRA_URL/g" usergrid-default.properties fi # make jar of updated usergrid properties jar cf usergrid-config-1.0.0.jar usergrid-default.properties cp usergrid-config-1.0.0.jar ./WEB-INF/lib/ rm usergrid-config-1.0.0.jar usergrid-default.properties cd ../ # make war jar -cvf ROOT.war ROOT/* rm -R ROOT/* rmdir ROOT cp ROOT.war /usr/share/tomcat7/webapps/ROOT.war popd if [ ! -f ${TOMCAT_CONFIGURATION_FLAG} ]; then /usergrid/create_tomcat_admin_user.sh fi exec /usr/share/tomcat7/bin/catalina.sh run
pushd /tmp/ROOT jar xvf ./ROOT.war jar -xf ./WEB-INF/lib/usergrid-config-1.0.0.jar # make changes if [[ ! -z "$CASSANDRA_URL" ]]; then sed -i "s/cassandra.url=.*/cassandra.url=$CASSANDRA_URL/g" ./usergrid-default.properties fi # make jar of updated usergrid properties jar cf usergrid-config-1.0.0.jar usergrid-default.properties cp usergrid-config-1.0.0.jar ./WEB-INF/lib/ rm usergrid-config-1.0.0.jar usergrid-default.properties cd ../ # make war jar -cvf ROOT.war ROOT/* rm -R ROOT/* rmdir ROOT cp ROOT.war /usr/share/tomcat7/webapps/ROOT.war popd if [ ! -f ${TOMCAT_CONFIGURATION_FLAG} ]; then /usergrid/create_tomcat_admin_user.sh fi exec /usr/share/tomcat7/bin/catalina.sh run
Fix replace with environment variable
Fix replace with environment variable
Shell
apache-2.0
sillelien/docker-usergrid
shell
## Code Before: pushd /tmp/ROOT jar xvf ./ROOT.war jar -xf ./WEB-INF/lib/usergrid-config-1.0.0.jar # make changes if [[ ! -z "$CASSANDRA_URL" ]]; then sed "s/cassandra.url=.*/aaa=$CASSANDRA_URL/g" usergrid-default.properties fi # make jar of updated usergrid properties jar cf usergrid-config-1.0.0.jar usergrid-default.properties cp usergrid-config-1.0.0.jar ./WEB-INF/lib/ rm usergrid-config-1.0.0.jar usergrid-default.properties cd ../ # make war jar -cvf ROOT.war ROOT/* rm -R ROOT/* rmdir ROOT cp ROOT.war /usr/share/tomcat7/webapps/ROOT.war popd if [ ! -f ${TOMCAT_CONFIGURATION_FLAG} ]; then /usergrid/create_tomcat_admin_user.sh fi exec /usr/share/tomcat7/bin/catalina.sh run ## Instruction: Fix replace with environment variable ## Code After: pushd /tmp/ROOT jar xvf ./ROOT.war jar -xf ./WEB-INF/lib/usergrid-config-1.0.0.jar # make changes if [[ ! -z "$CASSANDRA_URL" ]]; then sed -i "s/cassandra.url=.*/cassandra.url=$CASSANDRA_URL/g" ./usergrid-default.properties fi # make jar of updated usergrid properties jar cf usergrid-config-1.0.0.jar usergrid-default.properties cp usergrid-config-1.0.0.jar ./WEB-INF/lib/ rm usergrid-config-1.0.0.jar usergrid-default.properties cd ../ # make war jar -cvf ROOT.war ROOT/* rm -R ROOT/* rmdir ROOT cp ROOT.war /usr/share/tomcat7/webapps/ROOT.war popd if [ ! -f ${TOMCAT_CONFIGURATION_FLAG} ]; then /usergrid/create_tomcat_admin_user.sh fi exec /usr/share/tomcat7/bin/catalina.sh run
pushd /tmp/ROOT jar xvf ./ROOT.war jar -xf ./WEB-INF/lib/usergrid-config-1.0.0.jar # make changes if [[ ! -z "$CASSANDRA_URL" ]]; then - sed "s/cassandra.url=.*/aaa=$CASSANDRA_URL/g" usergrid-default.properties + sed -i "s/cassandra.url=.*/cassandra.url=$CASSANDRA_URL/g" ./usergrid-default.properties ? +++ + ++ +++ ++++ ++ fi # make jar of updated usergrid properties jar cf usergrid-config-1.0.0.jar usergrid-default.properties cp usergrid-config-1.0.0.jar ./WEB-INF/lib/ rm usergrid-config-1.0.0.jar usergrid-default.properties cd ../ # make war jar -cvf ROOT.war ROOT/* rm -R ROOT/* rmdir ROOT cp ROOT.war /usr/share/tomcat7/webapps/ROOT.war popd if [ ! -f ${TOMCAT_CONFIGURATION_FLAG} ]; then /usergrid/create_tomcat_admin_user.sh fi exec /usr/share/tomcat7/bin/catalina.sh run
2
0.0625
1
1
c07716994284beb21ea86d9657b626c69ff4cf97
.travis.yml
.travis.yml
language: java before_deploy: cp .travis.settings.xml $HOME/.m2/settings.xml deploy: provider: script script: mvn deploy on: tags: true after_success: - bash <(curl -s https://codecov.io/bash) notifications: email: false cache: directories: - $HOME/.m2/repository/
language: java script: if [ -z "$TRAVIS_TAG" ]; then mvn test; fi; before_deploy: cp .travis.settings.xml $HOME/.m2/settings.xml deploy: provider: script script: mvn deploy on: tags: true after_success: - bash <(curl -s https://codecov.io/bash) notifications: email: false cache: directories: - $HOME/.m2/repository/
Check if TRAVIS_TAG is unset
Check if TRAVIS_TAG is unset
YAML
apache-2.0
anderelate/storm-rabbitmq
yaml
## Code Before: language: java before_deploy: cp .travis.settings.xml $HOME/.m2/settings.xml deploy: provider: script script: mvn deploy on: tags: true after_success: - bash <(curl -s https://codecov.io/bash) notifications: email: false cache: directories: - $HOME/.m2/repository/ ## Instruction: Check if TRAVIS_TAG is unset ## Code After: language: java script: if [ -z "$TRAVIS_TAG" ]; then mvn test; fi; before_deploy: cp .travis.settings.xml $HOME/.m2/settings.xml deploy: provider: script script: mvn deploy on: tags: true after_success: - bash <(curl -s https://codecov.io/bash) notifications: email: false cache: directories: - $HOME/.m2/repository/
language: java + script: if [ -z "$TRAVIS_TAG" ]; then mvn test; fi; before_deploy: cp .travis.settings.xml $HOME/.m2/settings.xml deploy: provider: script script: mvn deploy on: tags: true after_success: - bash <(curl -s https://codecov.io/bash) notifications: email: false cache: directories: - $HOME/.m2/repository/
1
0.071429
1
0
cc9ceb5717c263e8d6eeb31a9924aaf0c1a7976b
libraries/file/README.md
libraries/file/README.md
Parity File Formats specifies and implements file formats used by the trading system. ## Features Parity File Formats specifies and implements the following formats: - [**TAQ**](doc/TAQ.md): a historical market data file format that consists of the best bids and offers (BBOs) and trades. ## Download Add a Maven dependency to Parity File Formats: ```xml <dependency> <groupId>com.paritytrading.parity</groupId> <artifactId>parity-file</artifactId> <version><!-- latest release --></version> </dependency> ``` See the [latest release][] on GitHub. [latest release]: https://github.com/paritytrading/parity/releases/latest ## License Released under the Apache License, Version 2.0.
Parity File Formats specifies and implements file formats used by the trading system. ## Features Parity File Formats specifies and implements the following formats: - [**TAQ**](doc/TAQ.md): a historical market data file format that consists of the best bids and offers (BBOs) and trades. ## Dependencies Parity File Formats does not depend on other libraries. ## Download Add a Maven dependency to Parity File Formats: ```xml <dependency> <groupId>com.paritytrading.parity</groupId> <artifactId>parity-file</artifactId> <version><!-- latest release --></version> </dependency> ``` See the [latest release][] on GitHub. [latest release]: https://github.com/paritytrading/parity/releases/latest ## License Released under the Apache License, Version 2.0.
Add dependencies to file formats documentation
Add dependencies to file formats documentation
Markdown
apache-2.0
paritytrading/parity,pmcs/parity,paritytrading/parity,pmcs/parity
markdown
## Code Before: Parity File Formats specifies and implements file formats used by the trading system. ## Features Parity File Formats specifies and implements the following formats: - [**TAQ**](doc/TAQ.md): a historical market data file format that consists of the best bids and offers (BBOs) and trades. ## Download Add a Maven dependency to Parity File Formats: ```xml <dependency> <groupId>com.paritytrading.parity</groupId> <artifactId>parity-file</artifactId> <version><!-- latest release --></version> </dependency> ``` See the [latest release][] on GitHub. [latest release]: https://github.com/paritytrading/parity/releases/latest ## License Released under the Apache License, Version 2.0. ## Instruction: Add dependencies to file formats documentation ## Code After: Parity File Formats specifies and implements file formats used by the trading system. ## Features Parity File Formats specifies and implements the following formats: - [**TAQ**](doc/TAQ.md): a historical market data file format that consists of the best bids and offers (BBOs) and trades. ## Dependencies Parity File Formats does not depend on other libraries. ## Download Add a Maven dependency to Parity File Formats: ```xml <dependency> <groupId>com.paritytrading.parity</groupId> <artifactId>parity-file</artifactId> <version><!-- latest release --></version> </dependency> ``` See the [latest release][] on GitHub. [latest release]: https://github.com/paritytrading/parity/releases/latest ## License Released under the Apache License, Version 2.0.
Parity File Formats specifies and implements file formats used by the trading system. ## Features Parity File Formats specifies and implements the following formats: - [**TAQ**](doc/TAQ.md): a historical market data file format that consists of the best bids and offers (BBOs) and trades. + + ## Dependencies + + Parity File Formats does not depend on other libraries. ## Download Add a Maven dependency to Parity File Formats: ```xml <dependency> <groupId>com.paritytrading.parity</groupId> <artifactId>parity-file</artifactId> <version><!-- latest release --></version> </dependency> ``` See the [latest release][] on GitHub. [latest release]: https://github.com/paritytrading/parity/releases/latest ## License Released under the Apache License, Version 2.0.
4
0.133333
4
0
f833ba3c61dd2743400610f0f6327e60efabc405
.travis.yml
.travis.yml
language: node_js services: - docker sudo: required node_js: - 6 notifications: email: false slack: mapic-io:NKaii0z3tRkeDyXaDbRauRFp branches: only: - master script: - ./install-to-localhost.sh cache: directories: - $HOME/.yarn-cache
language: node_js services: - docker sudo: required os: - linux - osx node_js: - 6 notifications: email: false slack: mapic-io:NKaii0z3tRkeDyXaDbRauRFp branches: only: - master script: - ./install-to-localhost.sh cache: directories: - $HOME/.yarn-cache
Add OSX build for Travis
Add OSX build for Travis
YAML
agpl-3.0
mapic/mapic,mapic/mapic
yaml
## Code Before: language: node_js services: - docker sudo: required node_js: - 6 notifications: email: false slack: mapic-io:NKaii0z3tRkeDyXaDbRauRFp branches: only: - master script: - ./install-to-localhost.sh cache: directories: - $HOME/.yarn-cache ## Instruction: Add OSX build for Travis ## Code After: language: node_js services: - docker sudo: required os: - linux - osx node_js: - 6 notifications: email: false slack: mapic-io:NKaii0z3tRkeDyXaDbRauRFp branches: only: - master script: - ./install-to-localhost.sh cache: directories: - $HOME/.yarn-cache
language: node_js services: - docker sudo: required + + os: + - linux + - osx node_js: - 6 notifications: email: false slack: mapic-io:NKaii0z3tRkeDyXaDbRauRFp branches: only: - master script: - ./install-to-localhost.sh cache: directories: - $HOME/.yarn-cache
4
0.16
4
0
0f9af0a47c60d1f5e07ce9c5eb29aec4a93c8f2b
help.md
help.md
--- layout: page title: Help --- ### The best way to get help with Watir: [Post a Question on StackOverflow](http://stackoverflow.com/questions/tagged/watir-webdriver) ### Alternate ways to get help: Send a question to the [Watir-General](https://groups.google.com/forum/#!forum/watir-general) mailing list on Google Groups. Please read these [guidelines](https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group) before posting. ### Join our Slack channel Slack has created a special slack server for the Selenium and Watir communities. You can join our Slack channel by sending Slack your email [here](http://seleniumhq.herokuapp.com). You will be sent an invitation with instructions on how to join.
--- layout: page title: Help --- ### The best way to get help with Watir: [Post a Question on StackOverflow](http://stackoverflow.com/questions/tagged/watir) ### Alternate ways to get help: Send a question to the [Watir-General](https://groups.google.com/forum/#!forum/watir-general) mailing list on Google Groups. Please read these [guidelines](https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group) before posting. ### Join our Slack channel Slack has created a special slack server for the Selenium and Watir communities. You can join our Slack channel by sending Slack your email [here](http://seleniumhq.herokuapp.com). You will be sent an invitation with instructions on how to join.
Update Stack Overflow link to use Watir tag
Update Stack Overflow link to use Watir tag
Markdown
mit
watir/watir.github.io,watir/watir.github.io,watir/watir.github.io,watir/watir.github.io
markdown
## Code Before: --- layout: page title: Help --- ### The best way to get help with Watir: [Post a Question on StackOverflow](http://stackoverflow.com/questions/tagged/watir-webdriver) ### Alternate ways to get help: Send a question to the [Watir-General](https://groups.google.com/forum/#!forum/watir-general) mailing list on Google Groups. Please read these [guidelines](https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group) before posting. ### Join our Slack channel Slack has created a special slack server for the Selenium and Watir communities. You can join our Slack channel by sending Slack your email [here](http://seleniumhq.herokuapp.com). You will be sent an invitation with instructions on how to join. ## Instruction: Update Stack Overflow link to use Watir tag ## Code After: --- layout: page title: Help --- ### The best way to get help with Watir: [Post a Question on StackOverflow](http://stackoverflow.com/questions/tagged/watir) ### Alternate ways to get help: Send a question to the [Watir-General](https://groups.google.com/forum/#!forum/watir-general) mailing list on Google Groups. Please read these [guidelines](https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group) before posting. ### Join our Slack channel Slack has created a special slack server for the Selenium and Watir communities. You can join our Slack channel by sending Slack your email [here](http://seleniumhq.herokuapp.com). You will be sent an invitation with instructions on how to join.
--- layout: page title: Help --- ### The best way to get help with Watir: - [Post a Question on StackOverflow](http://stackoverflow.com/questions/tagged/watir-webdriver) ? ---------- + [Post a Question on StackOverflow](http://stackoverflow.com/questions/tagged/watir) ### Alternate ways to get help: Send a question to the [Watir-General](https://groups.google.com/forum/#!forum/watir-general) mailing list on Google Groups. Please read these [guidelines](https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group) before posting. ### Join our Slack channel Slack has created a special slack server for the Selenium and Watir communities. You can join our Slack channel by sending Slack your email [here](http://seleniumhq.herokuapp.com). You will be sent an invitation with instructions on how to join.
2
0.153846
1
1
df95ff4befa21ae31b8ad993dab72e745410e78b
Sources/App/Routes.swift
Sources/App/Routes.swift
import Vapor extension Droplet { func setupRoutes() throws { get("hello") { req in var json = JSON() try json.set("hello", "world") return json } get("plaintext") { req in return "Hello, world!" } // response to requests to /info domain // with a description of the request get("info") { req in return req.description } get("description") { req in return req.description } } }
import Vapor extension Droplet { func setupRoutes() throws { let api = grouped("api", "v1") api.get("hello") { request in var json = JSON() try json.set("hello", "world") return json } let marketController = MarketController() api.get("market") { request in return try marketController.market(request) } } }
Update routes to expose /api/v1 and /api/v1/market linked to MarketController
Update routes to expose /api/v1 and /api/v1/market linked to MarketController
Swift
mit
CassiusPacheco/sweettrex
swift
## Code Before: import Vapor extension Droplet { func setupRoutes() throws { get("hello") { req in var json = JSON() try json.set("hello", "world") return json } get("plaintext") { req in return "Hello, world!" } // response to requests to /info domain // with a description of the request get("info") { req in return req.description } get("description") { req in return req.description } } } ## Instruction: Update routes to expose /api/v1 and /api/v1/market linked to MarketController ## Code After: import Vapor extension Droplet { func setupRoutes() throws { let api = grouped("api", "v1") api.get("hello") { request in var json = JSON() try json.set("hello", "world") return json } let marketController = MarketController() api.get("market") { request in return try marketController.market(request) } } }
import Vapor extension Droplet { func setupRoutes() throws { + + let api = grouped("api", "v1") + - get("hello") { req in + api.get("hello") { request in ? ++++ ++++ + var json = JSON() try json.set("hello", "world") + return json } - + + let marketController = MarketController() + - get("plaintext") { req in ? ^^ ^^^ - + api.get("market") { request in ? ++++ ^ ^^ ++++ - return "Hello, world!" + + return try marketController.market(request) } - - // response to requests to /info domain - // with a description of the request - get("info") { req in - return req.description - } - - get("description") { req in return req.description } } }
24
1
12
12
4f6d4511e8d70f49bdc4ee627db45b00f91d236b
src/providers/token-service.ts
src/providers/token-service.ts
import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders } from '../model/imsHeaders'; import { Token } from '../model/token'; @Injectable() export class TokenService { constructor(public http: Http) { } private token: Token = null; getToken(credential: Credential): Observable<Token> { if (this.token != null && new Date() < new Date(this.token.licenseExpirationDate)) { return Observable.of(this.token); } else { return this.getTokenForSegment(credential).flatMap(l => this.getTokenFromUrl(credential, l)).map(loadedToken => { this.token = loadedToken; return loadedToken; }); } } getTokenForSegment(credential: Credential): Observable<string> { let segment = { "name": credential.segmentName }; return this.http.post(credential.server + "/rest/license/tokens", segment, { headers: new ImsHeaders(credential) }).map(r => r.headers.get("location")); } getTokenFromUrl(credential: Credential, location: string): Observable<Token> { return this.http.get(location, { headers: new ImsHeaders(credential) }).map(r => r.json()); } }
import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders } from '../model/imsHeaders'; import { Token } from '../model/token'; @Injectable() export class TokenService { constructor(public http: Http) { } private token: Token = null; getToken(credential: Credential): Observable<Token> { console.log(this.token2); if (this.token != null && new Date() < new Date(this.token.licenseExpirationDate)) { return Observable.of(this.token); } else { return this.getTokenForSegment(credential).flatMap(l => this.getTokenFromUrl(credential, l)).map(t => this.cacheToken(t)); } } cacheToken(token:Token) : Token { this.token = token; return token; } getTokenForSegment(credential: Credential): Observable<string> { let segment = { "name": credential.segmentName }; return this.http.post(credential.server + "/rest/license/tokens", segment, { headers: new ImsHeaders(credential) }).map(r => r.headers.get("location")); } getTokenFromUrl(credential: Credential, location: string): Observable<Token> { return this.http.get(location, { headers: new ImsHeaders(credential) }).map(r => r.json()); } }
Refactor method extraction. Create aE cacheToken method for better understanding.
Refactor method extraction. Create aE cacheToken method for better understanding.
TypeScript
mit
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
typescript
## Code Before: import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders } from '../model/imsHeaders'; import { Token } from '../model/token'; @Injectable() export class TokenService { constructor(public http: Http) { } private token: Token = null; getToken(credential: Credential): Observable<Token> { if (this.token != null && new Date() < new Date(this.token.licenseExpirationDate)) { return Observable.of(this.token); } else { return this.getTokenForSegment(credential).flatMap(l => this.getTokenFromUrl(credential, l)).map(loadedToken => { this.token = loadedToken; return loadedToken; }); } } getTokenForSegment(credential: Credential): Observable<string> { let segment = { "name": credential.segmentName }; return this.http.post(credential.server + "/rest/license/tokens", segment, { headers: new ImsHeaders(credential) }).map(r => r.headers.get("location")); } getTokenFromUrl(credential: Credential, location: string): Observable<Token> { return this.http.get(location, { headers: new ImsHeaders(credential) }).map(r => r.json()); } } ## Instruction: Refactor method extraction. Create aE cacheToken method for better understanding. ## Code After: import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders } from '../model/imsHeaders'; import { Token } from '../model/token'; @Injectable() export class TokenService { constructor(public http: Http) { } private token: Token = null; getToken(credential: Credential): Observable<Token> { console.log(this.token2); if (this.token != null && new Date() < new Date(this.token.licenseExpirationDate)) { return Observable.of(this.token); } else { return this.getTokenForSegment(credential).flatMap(l => this.getTokenFromUrl(credential, l)).map(t => this.cacheToken(t)); } } cacheToken(token:Token) : Token { this.token = token; return token; } getTokenForSegment(credential: Credential): Observable<string> { let segment = { "name": credential.segmentName }; return this.http.post(credential.server + "/rest/license/tokens", segment, { headers: new ImsHeaders(credential) }).map(r => r.headers.get("location")); } getTokenFromUrl(credential: Credential, location: string): Observable<Token> { return this.http.get(location, { headers: new ImsHeaders(credential) }).map(r => r.json()); } }
import { Injectable } from '@angular/core'; import { Http, Response, Headers } from '@angular/http'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/observable/of'; import { Observable } from 'rxjs/Observable'; import { Credential } from '../model/credential'; import { ImsHeaders } from '../model/imsHeaders'; import { Token } from '../model/token'; @Injectable() export class TokenService { constructor(public http: Http) { } private token: Token = null; + getToken(credential: Credential): Observable<Token> { + console.log(this.token2); if (this.token != null && new Date() < new Date(this.token.licenseExpirationDate)) { return Observable.of(this.token); } else { - return this.getTokenForSegment(credential).flatMap(l => this.getTokenFromUrl(credential, l)).map(loadedToken => { ? ^^ ^ - ^^^^^ + return this.getTokenForSegment(credential).flatMap(l => this.getTokenFromUrl(credential, l)).map(t => this.cacheToken(t)); ? ^^^^^^^^^^^ ^^ ^^^^^ - this.token = loadedToken; - return loadedToken; - }); } + } + + cacheToken(token:Token) : Token { + this.token = token; + return token; } getTokenForSegment(credential: Credential): Observable<string> { let segment = { "name": credential.segmentName }; return this.http.post(credential.server + "/rest/license/tokens", segment, { headers: new ImsHeaders(credential) }).map(r => r.headers.get("location")); } getTokenFromUrl(credential: Credential, location: string): Observable<Token> { return this.http.get(location, { headers: new ImsHeaders(credential) }).map(r => r.json()); } }
12
0.292683
8
4
a1fcd32620341f477db568426df6725a4270394a
.travis.yml
.travis.yml
language: php php: - 5.6 - '7' mysql: database: activecollab_promises_test username: root encoding: utf8mb4 install: composer install --dev before_script: # create the database - mysql -e 'create database if not exists activecollab_promises_test;' script: phpunit -c test/phpunit.xml
language: php php: - 7.1 mysql: database: activecollab_promises_test username: root encoding: utf8mb4 install: composer install --dev before_script: # create the database - mysql -e 'create database if not exists activecollab_promises_test;' script: phpunit -c test/phpunit.xml
Switch Travis to PHP 7.1
Switch Travis to PHP 7.1
YAML
mit
activecollab/promises
yaml
## Code Before: language: php php: - 5.6 - '7' mysql: database: activecollab_promises_test username: root encoding: utf8mb4 install: composer install --dev before_script: # create the database - mysql -e 'create database if not exists activecollab_promises_test;' script: phpunit -c test/phpunit.xml ## Instruction: Switch Travis to PHP 7.1 ## Code After: language: php php: - 7.1 mysql: database: activecollab_promises_test username: root encoding: utf8mb4 install: composer install --dev before_script: # create the database - mysql -e 'create database if not exists activecollab_promises_test;' script: phpunit -c test/phpunit.xml
language: php php: + - 7.1 - - 5.6 - - '7' mysql: database: activecollab_promises_test username: root encoding: utf8mb4 install: composer install --dev before_script: # create the database - mysql -e 'create database if not exists activecollab_promises_test;' script: phpunit -c test/phpunit.xml
3
0.230769
1
2
d2c7d8202783674e9e40032ca33812803529083e
lib/test/page.rb
lib/test/page.rb
require File.expand_path("page/version", File.dirname(__FILE__)) module Test class Page attr_reader :container def initialize(container) @container = container end def modify element, methodz methodz.each_pair do |meth, return_value| element.instance_eval do singleton = class << self; self end singleton.send :alias_method, "__#{meth}", meth if respond_to? meth singleton.send :define_method, meth do |*args| self.send("__#{meth}", *args) if respond_to? "__#{meth}" return_value.call(*args) end end end element end def redirect_to(page, container) page.new container end def method_missing(name, *args) if @container.respond_to?(name) self.class.class_eval %Q[ def #{name}(*args) @container.send(:#{name}, *args) {yield} end ] self.send(name, *args) {yield} else super end end end end
require File.expand_path("page/version", File.dirname(__FILE__)) module Test class Page extend Forwardable def_delegators :container, :present?, :p class << self attr_accessor :browser attr_reader :setup_block, :container_block def container(&block) @container_block = block end def setup(&block) @setup_block = block end end attr_writer :browser attr_writer :container def browser @browser || parent_page_browser end def container if @setup_block instance_eval(&@setup_block) @setup_block = nil end @container ||= self.class.container_block && instance_eval(&self.class.container_block) end def initialize(container=nil, &block) @container = container @setup_block = self.class.setup_block block.call self if block end def modify(element, methodz) methodz.each_pair do |meth, return_value| element.instance_eval do singleton = class << self; self end singleton.send :alias_method, "__#{meth}", meth if respond_to? meth singleton.send :define_method, meth do |*args| self.send("__#{meth}", *args) if respond_to? "__#{meth}" return_value.call(*args) end end end element end def redirect_to(page, container=nil) page.new container || self.container end def method_missing(name, *args) if container.respond_to?(name) self.class.send :define_method, name do |*args| container.send(name, *args) {yield} end self.send(name, *args) {yield} else super end end private def parent_page_browser page_with_browser = self.class.ancestors.find do |klass| klass.respond_to?(:browser) && klass.browser end page_with_browser ? page_with_browser.browser : nil end end end
Add support for specifying container, setup block and browser.
Add support for specifying container, setup block and browser.
Ruby
mit
jarmo/test-page
ruby
## Code Before: require File.expand_path("page/version", File.dirname(__FILE__)) module Test class Page attr_reader :container def initialize(container) @container = container end def modify element, methodz methodz.each_pair do |meth, return_value| element.instance_eval do singleton = class << self; self end singleton.send :alias_method, "__#{meth}", meth if respond_to? meth singleton.send :define_method, meth do |*args| self.send("__#{meth}", *args) if respond_to? "__#{meth}" return_value.call(*args) end end end element end def redirect_to(page, container) page.new container end def method_missing(name, *args) if @container.respond_to?(name) self.class.class_eval %Q[ def #{name}(*args) @container.send(:#{name}, *args) {yield} end ] self.send(name, *args) {yield} else super end end end end ## Instruction: Add support for specifying container, setup block and browser. ## Code After: require File.expand_path("page/version", File.dirname(__FILE__)) module Test class Page extend Forwardable def_delegators :container, :present?, :p class << self attr_accessor :browser attr_reader :setup_block, :container_block def container(&block) @container_block = block end def setup(&block) @setup_block = block end end attr_writer :browser attr_writer :container def browser @browser || parent_page_browser end def container if @setup_block instance_eval(&@setup_block) @setup_block = nil end @container ||= self.class.container_block && instance_eval(&self.class.container_block) end def initialize(container=nil, &block) @container = container @setup_block = self.class.setup_block block.call self if block end def modify(element, methodz) methodz.each_pair do |meth, return_value| element.instance_eval do singleton = class << self; self end singleton.send :alias_method, "__#{meth}", meth if respond_to? meth singleton.send :define_method, meth do |*args| self.send("__#{meth}", *args) if respond_to? "__#{meth}" return_value.call(*args) end end end element end def redirect_to(page, container=nil) page.new container || self.container end def method_missing(name, *args) if container.respond_to?(name) self.class.send :define_method, name do |*args| container.send(name, *args) {yield} end self.send(name, *args) {yield} else super end end private def parent_page_browser page_with_browser = self.class.ancestors.find do |klass| klass.respond_to?(:browser) && klass.browser end page_with_browser ? page_with_browser.browser : nil end end end
require File.expand_path("page/version", File.dirname(__FILE__)) module Test class Page - attr_reader :container + extend Forwardable - def initialize(container) - @container = container + def_delegators :container, :present?, :p + + class << self + attr_accessor :browser + attr_reader :setup_block, :container_block + + def container(&block) + @container_block = block + end + + def setup(&block) + @setup_block = block + end end + attr_writer :browser + attr_writer :container + + def browser + @browser || parent_page_browser + end + + def container + if @setup_block + instance_eval(&@setup_block) + @setup_block = nil + end + @container ||= self.class.container_block && instance_eval(&self.class.container_block) + end + + def initialize(container=nil, &block) + @container = container + @setup_block = self.class.setup_block + + block.call self if block + end + - def modify element, methodz ? ^ + def modify(element, methodz) ? ^ + methodz.each_pair do |meth, return_value| element.instance_eval do singleton = class << self; self end singleton.send :alias_method, "__#{meth}", meth if respond_to? meth singleton.send :define_method, meth do |*args| self.send("__#{meth}", *args) if respond_to? "__#{meth}" return_value.call(*args) end end end element end - def redirect_to(page, container) + def redirect_to(page, container=nil) ? ++++ - page.new container + page.new container || self.container end def method_missing(name, *args) - if @container.respond_to?(name) ? - + if container.respond_to?(name) + self.class.send :define_method, name do |*args| - self.class.class_eval %Q[ - def #{name}(*args) - @container.send(:#{name}, *args) {yield} ? --- --- - + container.send(name, *args) {yield} - end ? -- + end - ] self.send(name, *args) {yield} else super end end + + private + + def parent_page_browser + page_with_browser = self.class.ancestors.find do |klass| + klass.respond_to?(:browser) && klass.browser + end + page_with_browser ? page_with_browser.browser : nil + end end end
64
1.454545
52
12