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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aaa2549a74320e7c69ae09f27a07c7bf896dfa2f | src/Office365Adapter.php | src/Office365Adapter.php | <?php
/**
* This file is part of the CalendArt package
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namespace CalendArt\Adapter\Of... | <?php
/**
* This file is part of the CalendArt package
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namespace CalendArt\Adapter\Of... | Add some headers to the default Guzzle config | Add some headers to the default Guzzle config
| PHP | mit | krichprollsch/Office365Adapter,Calendart/Office365Adapter | php | ## Code Before:
<?php
/**
* This file is part of the CalendArt package
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namespace Cale... | <?php
/**
* This file is part of the CalendArt package
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*
* @copyright Wisembly
* @license http://www.opensource.org/licenses/MIT-License MIT License
*/
namesp... | 6 | 0.125 | 4 | 2 |
ad053987e5f1ce62787228478dc056986fb9f248 | api/sys_health.go | api/sys_health.go | package api
func (c *Sys) Health() (*HealthResponse, error) {
r := c.c.NewRequest("GET", "/v1/sys/health")
// If the code is 400 or above it will automatically turn into an error,
// but the sys/health API defaults to returning 5xx when not sealed or
// inited, so we force this code to be something else so we pars... | package api
func (c *Sys) Health() (*HealthResponse, error) {
r := c.c.NewRequest("GET", "/v1/sys/health")
// If the code is 400 or above it will automatically turn into an error,
// but the sys/health API defaults to returning 5xx when not sealed or
// inited, so we force this code to be something else so we pars... | Add replication mode sys health information to Go API | Add replication mode sys health information to Go API
| Go | mpl-2.0 | Aloomaio/vault,mgk/vault,Aloomaio/vault,hashicorp/vault,mgk/vault,hashicorp/vault,hartsock/vault,joelthompson/vault,rnaveiras/vault,quixoten/vault,mgk/vault,joelthompson/vault,hartsock/vault,Aloomaio/vault,rnaveiras/vault,kingland/vault,hartsock/vault,rnaveiras/vault,joelthompson/vault,hashicorp/vault,hartsock/vault,na... | go | ## Code Before:
package api
func (c *Sys) Health() (*HealthResponse, error) {
r := c.c.NewRequest("GET", "/v1/sys/health")
// If the code is 400 or above it will automatically turn into an error,
// but the sys/health API defaults to returning 5xx when not sealed or
// inited, so we force this code to be something... | package api
func (c *Sys) Health() (*HealthResponse, error) {
r := c.c.NewRequest("GET", "/v1/sys/health")
// If the code is 400 or above it will automatically turn into an error,
// but the sys/health API defaults to returning 5xx when not sealed or
// inited, so we force this code to be something e... | 16 | 0.551724 | 9 | 7 |
50551b513f3d705f0ad5125bfbf08da86ad70181 | _sass/_social-media.scss | _sass/_social-media.scss | /* Social Top-Bar Stylings
------------------------------------------------------------------- */
.social-media-section {
//color: #3FA9F5 !important;
.social-icons li a {
font-size: rem-calc(23);
display: block;
width: 36px;
border-radius: 50%;
color: #fff;
background: #3FA9F5;
text-al... | /* Social Top-Bar Stylings
------------------------------------------------------------------- */
.social-media-top {
.social-icons {
margin-bottom: 0;
li {
padding-top: 15px;
}
a {
color: $primary-color;
background: #ddd;
font-size: rem-calc(23);
display: block;
w... | Refactor styles according to markup changes | Refactor styles according to markup changes
- reformat styles for better inheritance
- set pseudo-classes for link behavior
- swap hover and default colors
- set color variables instead of fixed values
| SCSS | mit | srenatus/crowd-funding,srenatus/crowd-funding,plutonik-a/crowd-funding,refugee-emancipation/crowd-funding,plutonik-a/crowd-funding,srenatus/crowd-funding,plutonik-a/crowd-funding,refugee-emancipation/crowd-funding,ilmDitsch/crowd-funding,ilmDitsch/crowd-funding,ilmDitsch/crowd-funding,refugee-emancipation/crowd-funding | scss | ## Code Before:
/* Social Top-Bar Stylings
------------------------------------------------------------------- */
.social-media-section {
//color: #3FA9F5 !important;
.social-icons li a {
font-size: rem-calc(23);
display: block;
width: 36px;
border-radius: 50%;
color: #fff;
background: #3FA... | /* Social Top-Bar Stylings
------------------------------------------------------------------- */
- .social-media-section {
? --- - ^
+ .social-media-top {
? ^
- //color: #3FA9F5 !important;
- .social-icons li a {
? -----
+ .social-icons {
+ margin-botto... | 36 | 1.894737 | 22 | 14 |
f814c4dfea2b3f76a78a63e45d0f869866b44d9c | README.md | README.md |
Run foreman Procfiles with Rust
## Installation
```shell
cargo install fors
```
## Usage
```shell
$ fors
web | Puma starting in single mode...
web | * Version 3.6.0 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity
web | * Min threads: 5, max threads: 5
web | * Environment: development
web | * Listening on tcp:/... |
[](https://travis-ci.org/jtdowney/fors)
Run foreman Procfiles with Rust
## Installation
```shell
cargo install fors
```
## Usage
```shell
$ fors
web | Puma starting in single mode...
web | * Version 3.6.0 (ruby 2.3.1-p112), codename: Sleepy Sun... | Add travis ci status to readme | Add travis ci status to readme
| Markdown | mit | jtdowney/fors | markdown | ## Code Before:
Run foreman Procfiles with Rust
## Installation
```shell
cargo install fors
```
## Usage
```shell
$ fors
web | Puma starting in single mode...
web | * Version 3.6.0 (ruby 2.3.1-p112), codename: Sleepy Sunday Serenity
web | * Min threads: 5, max threads: 5
web | * Environment: development
web | * Li... | +
+ [](https://travis-ci.org/jtdowney/fors)
Run foreman Procfiles with Rust
## Installation
```shell
cargo install fors
```
## Usage
```shell
$ fors
web | Puma starting in single mode...
web | * Version 3.6.0 (ruby... | 2 | 0.105263 | 2 | 0 |
524d725bf91ac6d9fdb1586d0e28be616ebc7982 | UPGRADE-1.11.md | UPGRADE-1.11.md |
1. `Sylius\Bundle\ApiBundle\View\CartShippingMethodInterface` and `Sylius\Bundle\ApiBundle\View\CartShippingMethod` have been removed.
1. `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactoryInterface` and `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactory` have been removed.
1. The constructo... |
1. `Sylius\Bundle\ApiBundle\View\CartShippingMethodInterface` and `Sylius\Bundle\ApiBundle\View\CartShippingMethod` have been removed.
1. `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactoryInterface` and `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactory` have been removed.
1. The constructo... | Add an additional note to UPGRADE file about changing schema fo getting shipping methods | [API] Add an additional note to UPGRADE file about changing schema fo getting shipping methods
| Markdown | mit | SyliusBot/Sylius,lchrusciel/Sylius,Sylius/Sylius,loic425/Sylius,101medialab/Sylius,lchrusciel/Sylius,pamil/Sylius,SyliusBot/Sylius,loic425/Sylius,SyliusBot/Sylius,lchrusciel/Sylius,diimpp/Sylius,Sylius/Sylius,antonioperic/Sylius,antonioperic/Sylius,Zales0123/Sylius,101medialab/Sylius,Arminek/Sylius,diimpp/Sylius,Zales0... | markdown | ## Code Before:
1. `Sylius\Bundle\ApiBundle\View\CartShippingMethodInterface` and `Sylius\Bundle\ApiBundle\View\CartShippingMethod` have been removed.
1. `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactoryInterface` and `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactory` have been removed.
1... |
1. `Sylius\Bundle\ApiBundle\View\CartShippingMethodInterface` and `Sylius\Bundle\ApiBundle\View\CartShippingMethod` have been removed.
1. `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactoryInterface` and `Sylius\Bundle\ApiBundle\View\Factory\CartShippingMethodFactory` have been removed.
1. Th... | 28 | 1.555556 | 28 | 0 |
ab0849317a729b5ebd9b8ab8945ade395b967f44 | jgrapht-dist/src/assembly/assembly.xml | jgrapht-dist/src/assembly/assembly.xml | <assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<formats>
<format>zip</format>
<f... | <assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<formats>
<format>zip</format>
<f... | Include the README and license file in the resulting archives. | Include the README and license file in the resulting archives.
| XML | epl-1.0 | kashak79/jgrapht,arcanefoam/jgrapht,feilong0309/jgrapht,wselwood/jgrapht,hal/jgrapht,lingeringsocket/jgrapht,arcanefoam/jgrapht,hal/jgrapht,Infeligo/jgrapht,AidanDelaney/jgrapht,feilong0309/jgrapht,gjroelofs/jgrapht,WorstCase00/jgrapht,rcpoison/jgrapht,alexeykudinkin/jgrapht,AidanDelaney/jgrapht,alexeykudinkin/jgrapht,... | xml | ## Code Before:
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<formats>
<format>z... | <assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<formats>
<format>zip</... | 11 | 0.6875 | 11 | 0 |
95406702bdbb62abef517fd81d9aeb2628f0286a | package.json | package.json | {
"name": "statichook",
"description": "Push to Bitbucket, trigger a webhook, and upload your static site via SCP.",
"version": "0.1.0",
"maintainers": [
{
"name": "Matthew Lewis",
"email": "matt@mplewis.com",
"web": "http://www.mplewis.com/"
}
],
"dependencies": {
"tmp": "0.0.... | {
"name": "statichook",
"description": "Push to Bitbucket, trigger a webhook, and upload your static site via SCP.",
"version": "0.1.0",
"maintainers": [
{
"name": "Matthew Lewis",
"email": "matt@mplewis.com",
"web": "http://www.mplewis.com/"
}
],
"dependencies": {
"tmp": "0.0.... | Add scp requirement to force installation of dependencies | Add scp requirement to force installation of dependencies
| JSON | mit | mplewis/statichook | json | ## Code Before:
{
"name": "statichook",
"description": "Push to Bitbucket, trigger a webhook, and upload your static site via SCP.",
"version": "0.1.0",
"maintainers": [
{
"name": "Matthew Lewis",
"email": "matt@mplewis.com",
"web": "http://www.mplewis.com/"
}
],
"dependencies": {
... | {
"name": "statichook",
"description": "Push to Bitbucket, trigger a webhook, and upload your static site via SCP.",
"version": "0.1.0",
"maintainers": [
{
"name": "Matthew Lewis",
"email": "matt@mplewis.com",
"web": "http://www.mplewis.com/"
}
],
"dependenc... | 3 | 0.088235 | 2 | 1 |
22548b3d45b13361fe1df9af8897e38c61bad894 | setup.py | setup.py | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
set... | Fix entry point for Mako. | Fix entry point for Mako.
| Python | bsd-3-clause | thruflo/dogpile.cache,thruflo/dogpile.cache | python | ## Code Before:
import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file__), 'R... | import os
import sys
import re
from setuptools import setup, find_packages
v = open(os.path.join(os.path.dirname(__file__), 'dogpile', 'cache', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
readme = os.path.join(os.path.dirname(__file_... | 2 | 0.051282 | 1 | 1 |
4830238fddd72aff223817b2e1c3369b78f1fe83 | ansible/roles/docker_config/tasks/main.yml | ansible/roles/docker_config/tasks/main.yml | ---
- name: Add Github host key
become: yes
become_user: jenkins
lineinfile:
dest: "{{ jenkins_user_home }}/.ssh/known_hosts"
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
- name: Clone Git repo
become: yes
become_user: je... | ---
- name: Add Github host key
become: yes
become_user: jenkins
lineinfile:
dest: "{{ jenkins_user_home }}/.ssh/known_hosts"
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
- name: Configure Git
become: yes
become_user: jen... | Add Git configuration for jenkins user | Add Git configuration for jenkins user
| YAML | apache-2.0 | unguiculus/docker-jenkins-bootstrap | yaml | ## Code Before:
---
- name: Add Github host key
become: yes
become_user: jenkins
lineinfile:
dest: "{{ jenkins_user_home }}/.ssh/known_hosts"
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
- name: Clone Git repo
become: yes
... | ---
- name: Add Github host key
become: yes
become_user: jenkins
lineinfile:
dest: "{{ jenkins_user_home }}/.ssh/known_hosts"
create: yes
state: present
line: "{{ lookup('pipe', 'ssh-keyscan -t rsa github.com') }}"
regexp: "^github\\.com"
+
+ - name: Configure Git
+ beco... | 21 | 0.583333 | 21 | 0 |
5737f121c7a2c28b4923334b4b1edddd710d97f9 | content_scripts/observers.js | content_scripts/observers.js | /// </// <reference path="data_functions.js" />
// function getSvg(){
// return document.getElementsByClassName("highcharts-container")[0].firstChild;
// }
function getAnalysisNavtab() {
return document.getElementsByClassName("nav")[0].getElementsByTagName("li")[0];
}
var svgObserver = new MutationObserver(functi... | /// </// <reference path="data_functions.js" />
function getAnalysisNavtab() {
return document.getElementsByClassName("nav")[0].getElementsByTagName("li")[0];
}
var svgObserver = new MutationObserver(function (mutations) {
//console.log({ svg: mutations });
var button = null;
for (var i = 0; i < mutations[0]... | Hide data when "reset zoom" button is pressed. | Hide data when "reset zoom" button is pressed.
| JavaScript | mit | mcibor/speedomondo | javascript | ## Code Before:
/// </// <reference path="data_functions.js" />
// function getSvg(){
// return document.getElementsByClassName("highcharts-container")[0].firstChild;
// }
function getAnalysisNavtab() {
return document.getElementsByClassName("nav")[0].getElementsByTagName("li")[0];
}
var svgObserver = new Mutatio... | /// </// <reference path="data_functions.js" />
- // function getSvg(){
- // return document.getElementsByClassName("highcharts-container")[0].firstChild;
- // }
function getAnalysisNavtab() {
return document.getElementsByClassName("nav")[0].getElementsByTagName("li")[0];
}
var svgObserver = new Mut... | 22 | 0.666667 | 18 | 4 |
2e3d97a4b8fe20ff84b1e3706a61732ad3c49cc0 | src/wirecloud/commons/test-data/src/context-inspector/config.xml | src/wirecloud/commons/test-data/src/context-inspector/config.xml | <?xml version="1.0" ?>
<Template xmlns="http://morfeo-project.org/2007/Template">
<Catalog.ResourceDescription>
<Vendor>Wirecloud</Vendor>
<Name>context-inspector</Name>
<DisplayName>Context Inspector</DisplayName>
<Version>0.2</Version>
<Author>aarranz</Author>
<Mail... | <?xml version="1.0" ?>
<Template xmlns="http://morfeo-project.org/2007/Template">
<Catalog.ResourceDescription>
<Vendor>Wirecloud</Vendor>
<Name>context-inspector</Name>
<DisplayName>Context Inspector</DisplayName>
<Version>0.2</Version>
<Author>aarranz</Author>
<Mail... | Use platform style in the context-inspector widget | Use platform style in the context-inspector widget
| XML | agpl-3.0 | jpajuelo/wirecloud,rockneurotiko/wirecloud,rockneurotiko/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud,jpajuelo/wirecloud,jpajuelo/wirecloud,rockneurotiko/wirecloud | xml | ## Code Before:
<?xml version="1.0" ?>
<Template xmlns="http://morfeo-project.org/2007/Template">
<Catalog.ResourceDescription>
<Vendor>Wirecloud</Vendor>
<Name>context-inspector</Name>
<DisplayName>Context Inspector</DisplayName>
<Version>0.2</Version>
<Author>aarranz</Autho... | <?xml version="1.0" ?>
<Template xmlns="http://morfeo-project.org/2007/Template">
<Catalog.ResourceDescription>
<Vendor>Wirecloud</Vendor>
<Name>context-inspector</Name>
<DisplayName>Context Inspector</DisplayName>
<Version>0.2</Version>
<Author>aarranz</Autho... | 2 | 0.074074 | 1 | 1 |
954450756613209bf7f4b32909549af860bab3d1 | app/components/node-stream.js | app/components/node-stream.js | import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
/**
* So what's the issue?
*
* Updating my data attribute doesn't trigger any changes
* to the live-chart component!
*/
io: Ember.inject.service('socket-io'),
serverUrl: 'localhost:8081... | import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
/**
* So what's the issue?
*
* Updating my data attribute doesn't trigger any changes
* to the live-chart component!
*/
io: Ember.inject.service('socket-io'),
serverUrl: 'localhost:8081... | Remove unneccessary wrapper around observation container | Remove unneccessary wrapper around observation container
| JavaScript | mit | UrbanCCD-UChicago/plenario-explorer,UrbanCCD-UChicago/plenario-explorer,UrbanCCD-UChicago/plenario-explorer | javascript | ## Code Before:
import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
/**
* So what's the issue?
*
* Updating my data attribute doesn't trigger any changes
* to the live-chart component!
*/
io: Ember.inject.service('socket-io'),
serverUrl:... | import Ember from 'ember';
import moment from 'moment';
export default Ember.Component.extend({
/**
* So what's the issue?
*
* Updating my data attribute doesn't trigger any changes
* to the live-chart component!
*/
io: Ember.inject.service('socket-io'),
... | 12 | 0.230769 | 3 | 9 |
174a1a4d98db52ac1472f4268195a538e6626800 | src/chunks/applyLight.glsl | src/chunks/applyLight.glsl | /**
* Calculates the intensity of light on a surface.
*
* @method transpose
* @private
*
*
*/
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
float lambertianTerm;
vec3 finalColor = vec3(0.0);
vec3 normal = normalize(v_Normal);
vec3 ambientLight = u_AmbientLight * mate... | /**
* Calculates the intensity of light on a surface.
*
* @method applyLight
* @private
*
*/
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
vec3 ambientColor = u_AmbientLight * material;
vec3 normal = normalize(v_Normal);
vec3 center = resolution * 0.5;
vec3 eyeVector = ... | Update lighting model to a faster reflection model | Feat: Update lighting model to a faster reflection model
| GLSL | mit | yummy222/engine,alexanderGugel/engine,sonwh98/engine,andreaslangsays/engine,steveblue/engine,infamous/engine,prepare/engine,Bizboard/engine,arunabhdas/engine,Wanderfalke/engine,huanghjb/engine,noikiy/engine,codesdk/engine,avikalpa/engine,codesdk/engine,nmai/engine,andreaslangsays/engine,Morgantheplant/engine,trusktr/en... | glsl | ## Code Before:
/**
* Calculates the intensity of light on a surface.
*
* @method transpose
* @private
*
*
*/
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
float lambertianTerm;
vec3 finalColor = vec3(0.0);
vec3 normal = normalize(v_Normal);
vec3 ambientLight = u_Amb... | /**
* Calculates the intensity of light on a surface.
- *
? -
+ *
- * @method transpose
+ * @method applyLight
* @private
*
- *
*/
-
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
- float lambertianTerm;
+ vec3 ambientColor = u_AmbientLight * material;
+ ... | 44 | 1.047619 | 19 | 25 |
0a8350d98005ef25ea1de4b743d6346bbae9b173 | citrination_client/base/errors.py | citrination_client/base/errors.py | class CitrinationClientError(Exception):
pass
class APIVersionMismatchException(CitrinationClientError):
def __init__(self, message="Version mismatch with Citrination identified. Please check for available PyCC updates"):
super(APIVersionMismatchException, self).__init__(message)
class FeatureUnavail... | class CitrinationClientError(Exception):
def __init__(self, message=None, server_response=None):
if message is not None and server_response is not None:
message = "{}\nCitrination returned: {}".format(message, server_response)
super(CitrinationClientError, self).__init__(message)
class... | Add Optional Server Response Parameter To Error Classes | Add Optional Server Response Parameter To Error Classes
| Python | apache-2.0 | CitrineInformatics/python-citrination-client | python | ## Code Before:
class CitrinationClientError(Exception):
pass
class APIVersionMismatchException(CitrinationClientError):
def __init__(self, message="Version mismatch with Citrination identified. Please check for available PyCC updates"):
super(APIVersionMismatchException, self).__init__(message)
clas... | class CitrinationClientError(Exception):
- pass
+
+ def __init__(self, message=None, server_response=None):
+ if message is not None and server_response is not None:
+ message = "{}\nCitrination returned: {}".format(message, server_response)
+ super(CitrinationClientError, self)._... | 20 | 0.540541 | 12 | 8 |
95604d3da4696d799af0446d9fa293316c7010f5 | app/styles/sidebar-list.scss | app/styles/sidebar-list.scss | .list {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.list-item {
display: flex; /* establish flex container */
flex-direction: row; /* make main axis horizontal */
justify-content: flex-start; /* center items vertically, in this case */
align-items: center; /* center items horizontally, in... | .list {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
height: 570px;
overflow-y: scroll;
}
.list-item {
display: flex; /* establish flex container */
flex-direction: row; /* make main axis horizontal */
justify-content: flex-start; /* flush items to the left */
align-items: center; /* cent... | Make sidepanel's list to scroll when it overflows | Make sidepanel's list to scroll when it overflows
| SCSS | mit | TrailSec/TrailSec-WebUI,TrailSec/TrailSec-WebUI | scss | ## Code Before:
.list {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.list-item {
display: flex; /* establish flex container */
flex-direction: row; /* make main axis horizontal */
justify-content: flex-start; /* center items vertically, in this case */
align-items: center; /* center items ... | .list {
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
+ height: 570px;
+ overflow-y: scroll;
}
.list-item {
display: flex; /* establish flex container */
flex-direction: row; /* make main axis horizontal */
- justify-content: flex-start; /* center items vertically, in this ca... | 6 | 0.146341 | 4 | 2 |
927b281a1f3987af179590fab1126f0e0973612b | .travis.yml | .travis.yml | language: ruby
rvm:
- "2.2"
- "2.3.0"
- "2.4.0"
sudo: false
cache: bundler
script: bundle exec rake $TASK
env:
- TASK=test
- TASK=rubocop
| language: ruby
rvm:
- "2.2"
- "2.3.0"
- "2.4.0"
- "2.5.0"
sudo: false
cache: bundler
script: bundle exec rake $TASK
env:
- TASK=test
- TASK=rubocop
| Add ruby 2.5.0 to Travis test matrix | Add ruby 2.5.0 to Travis test matrix
| YAML | mit | abonas/kubeclient,moolitayer/kubeclient | yaml | ## Code Before:
language: ruby
rvm:
- "2.2"
- "2.3.0"
- "2.4.0"
sudo: false
cache: bundler
script: bundle exec rake $TASK
env:
- TASK=test
- TASK=rubocop
## Instruction:
Add ruby 2.5.0 to Travis test matrix
## Code After:
language: ruby
rvm:
- "2.2"
- "2.3.0"
- "2.4.0"
- "2.5.0"
sudo: false
cache: bun... | language: ruby
rvm:
- "2.2"
- "2.3.0"
- "2.4.0"
+ - "2.5.0"
sudo: false
cache: bundler
script: bundle exec rake $TASK
env:
- TASK=test
- TASK=rubocop | 1 | 0.090909 | 1 | 0 |
82cb6d190ce1e805914cc791518c97e063ecdc96 | tests/test_individual.py | tests/test_individual.py | import sys, os
myPath = os.path.dirname(os.path.abspath(__file__))
print(myPath)
sys.path.insert(0, myPath + '/../SATSolver')
from unittest import TestCase
from individual import Individual
from BitVector import BitVector
from bitarray import bitarray
class TestIndividual(TestCase):
"""
Testing class for Ind... | import sys, os
myPath = os.path.dirname(os.path.abspath(__file__))
print(myPath)
sys.path.insert(0, myPath + '/../SATSolver')
from unittest import TestCase
from individual import Individual
from bitarray import bitarray
class TestIndividual(TestCase):
"""
Testing class for Individual.
"""
def test_g... | Remove BitVector import - Build fails | Remove BitVector import - Build fails | Python | mit | Imperium-Software/resolver,Imperium-Software/resolver,Imperium-Software/resolver,Imperium-Software/resolver | python | ## Code Before:
import sys, os
myPath = os.path.dirname(os.path.abspath(__file__))
print(myPath)
sys.path.insert(0, myPath + '/../SATSolver')
from unittest import TestCase
from individual import Individual
from BitVector import BitVector
from bitarray import bitarray
class TestIndividual(TestCase):
"""
Testi... | import sys, os
myPath = os.path.dirname(os.path.abspath(__file__))
print(myPath)
sys.path.insert(0, myPath + '/../SATSolver')
from unittest import TestCase
from individual import Individual
- from BitVector import BitVector
from bitarray import bitarray
class TestIndividual(TestCase):
"""... | 1 | 0.023256 | 0 | 1 |
7ce81f012ba860ff011814553ea936af679bb49f | .semaphore/semaphore.yml | .semaphore/semaphore.yml | version: v1.0
name: Test Atlas
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: RSpec
task:
env_vars:
- name: DATABASE_HOST
value: localhost
jobs:
- name: Test
commands:
- checkout
- sem-version ruby $RUBY_VE... | version: v1.0
name: Test Atlas
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: RSpec
task:
jobs:
- name: Test
commands:
- checkout
- sem-version ruby $RUBY_VERSION
- gem install bundler -v ">= 2.0"
- bundle ... | Add CodeCov env when running CI | Add CodeCov env when running CI
| YAML | mit | quintel/atlas | yaml | ## Code Before:
version: v1.0
name: Test Atlas
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: RSpec
task:
env_vars:
- name: DATABASE_HOST
value: localhost
jobs:
- name: Test
commands:
- checkout
- sem-versi... | version: v1.0
name: Test Atlas
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: RSpec
task:
- env_vars:
- - name: DATABASE_HOST
- value: localhost
jobs:
- name: Test
commands:
- checkout
... | 5 | 0.172414 | 2 | 3 |
9ab30907ea73fb559b7f8ebdcf58ad5fee92fc50 | lib/PDB/secondary_structure.rb | lib/PDB/secondary_structure.rb |
module PDB
class SecondaryStructure
attr_reader :structure, :subtype_index
def initialize(type_of, subclass_index)
@structure = type_of
@subtype_index = subclass_index
end
end
end
|
module PDB
# From Stride Documentation
# H alpha helix
# G 3-10
# I PI helix
# Extended conformation
# T turn - many types
# C coil
class SecondaryStructure
attr_reader :structure, :subtype_index
def initialize(type_of, subclass_index)
@structure = type_of
@subtype_index = subcl... | Add some annotation of secondary structure from STRIDE documentation | Add some annotation of secondary structure from STRIDE documentation
| Ruby | mit | rambor/PDBTools | ruby | ## Code Before:
module PDB
class SecondaryStructure
attr_reader :structure, :subtype_index
def initialize(type_of, subclass_index)
@structure = type_of
@subtype_index = subclass_index
end
end
end
## Instruction:
Add some annotation of secondary structure from STRIDE documentation
## ... |
module PDB
+ # From Stride Documentation
+ # H alpha helix
+ # G 3-10
+ # I PI helix
+ # Extended conformation
+ # T turn - many types
+ # C coil
class SecondaryStructure
attr_reader :structure, :subtype_index
def initialize(type_of, subclass_index)
@structure = ty... | 9 | 0.6 | 9 | 0 |
b60155c7ce74bfff5e1c23f733fbd87847dc1a17 | bootstrap.sh | bootstrap.sh | sudo su
# Check if dnsmasq package is installed
if [[ ! -n $(dpkg -l | grep dnsmasq) ]]; then
# Update apt repositories
apt-get -y update
# Install requirements for further unattended installation
#apt-get install -y python-software-properties vim git subversion curl build-essential
fi
| dnsmasqconfig="$(cat <<-ENDOFCONFIG
no-dhcp-interface=
server=8.8.8.8
no-hosts
addn-hosts=/etc/dnsmasq.hosts
ENDOFCONFIG
)"
# Make sure to use root user
sudo su
# Check if dnsmasq package is installed
if [[ ! -n $(dpkg -l | grep dnsmasq) ]]; then
# Update apt repositories
apt-get -y update
# Install ...
... | Install dnsmasq and apply minimal configuration file | Install dnsmasq and apply minimal configuration file
| Shell | mit | cam5/hostkeeper,frdmn/hostkeeper,frdmn/hostkeeper,cam5/hostkeeper,frdmn/hostkeeper,cam5/hostkeeper | shell | ## Code Before:
sudo su
# Check if dnsmasq package is installed
if [[ ! -n $(dpkg -l | grep dnsmasq) ]]; then
# Update apt repositories
apt-get -y update
# Install requirements for further unattended installation
#apt-get install -y python-software-properties vim git subversion curl build-essential
fi
... | + dnsmasqconfig="$(cat <<-ENDOFCONFIG
+ no-dhcp-interface=
+ server=8.8.8.8
+
+ no-hosts
+ addn-hosts=/etc/dnsmasq.hosts
+ ENDOFCONFIG
+ )"
+
+ # Make sure to use root user
sudo su
# Check if dnsmasq package is installed
if [[ ! -n $(dpkg -l | grep dnsmasq) ]]; then
# Update apt repositories
apt-... | 23 | 2.555556 | 21 | 2 |
989d2e6eb5aa10c877cdff21e49a0bda89eb6546 | index.js | index.js | function Supercollider() {
this.options = {};
this.searchOptions = {};
this.adapters = {};
this.tree = [];
this.template = null;
}
Supercollider.prototype.init = require('./lib/init');
Supercollider.prototype.parse = require('./lib/parse');
Supercollider.prototype.build = require('./lib/build');
Supercollide... | function Supercollider() {
this.options = {};
this.searchOptions = {};
this.adapters = {};
this.tree = [];
this.template = null;
}
Supercollider.prototype.init = require('./lib/init');
Supercollider.prototype.parse = require('./lib/parse');
Supercollider.prototype.build = require('./lib/build');
Supercollide... | Add Supercollider class as a separate module export | Add Supercollider class as a separate module export
| JavaScript | mit | gakimball/supercollider,spacedoc/spacedoc,spacedoc/spacedoc | javascript | ## Code Before:
function Supercollider() {
this.options = {};
this.searchOptions = {};
this.adapters = {};
this.tree = [];
this.template = null;
}
Supercollider.prototype.init = require('./lib/init');
Supercollider.prototype.parse = require('./lib/parse');
Supercollider.prototype.build = require('./lib/build... | function Supercollider() {
this.options = {};
this.searchOptions = {};
this.adapters = {};
this.tree = [];
this.template = null;
}
Supercollider.prototype.init = require('./lib/init');
Supercollider.prototype.parse = require('./lib/parse');
Supercollider.prototype.build = require('./lib... | 1 | 0.058824 | 1 | 0 |
df7f12046222ae1b263d9148d493182617edc611 | numeric.h | numeric.h |
template<class T>
typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type
almost_equal(T x, T y, int ulp=2)
{
// the machine epsilon has to be scaled to the magnitude of the values used
// and multiplied by the desired precision in ULPs (units in the last place)
return std::abs(x-y) <=... |
/**
* @brief use of machine epsilon to compare floating-point values for equality
* http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon
*/
template<class T>
typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type
almost_equal(T x, T y, int ulp=2)
{
// the machine epsilon has to be... | Add reference for almost_equal function | Add reference for almost_equal function
| C | mit | Bl4ckb0ne/delaunay-triangulation | c | ## Code Before:
template<class T>
typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type
almost_equal(T x, T y, int ulp=2)
{
// the machine epsilon has to be scaled to the magnitude of the values used
// and multiplied by the desired precision in ULPs (units in the last place)
return ... |
+ /**
+ * @brief use of machine epsilon to compare floating-point values for equality
+ * http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon
+ */
template<class T>
typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type
almost_equal(T x, T y, int ulp=2)
{
// the machi... | 6 | 0.272727 | 5 | 1 |
153c50f257b0ab8fa5d8707d9f4680f209d5a817 | .travis.yml | .travis.yml | language: node_js
node_js:
- "6.10.2"
dist: trusty
before_install:
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
install:
- sudo apt-get install -y gcc-multilib nasm gdb
script:
- "./.travis-run-$TEST_SUITE.sh"
env:
- TEST_SUITE=unit
- TEST_SUITE=integration
- TEST_SUITE=unit-qemu
... | language: node_js
node_js:
- "6.10.2"
dist: trusty
before_install:
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
install:
- sudo apt-get install -y gcc-multilib nasm gdb
script:
- "./.travis-run-$TEST_SUITE.sh"
env:
- TEST_SUITE=unit
- TEST_SUITE=integration
- TEST_SUITE=unit-qemu
... | Allow the QEMU test to fail | Allow the QEMU test to fail
I haven't seen this one work yet. *shrugs* | YAML | bsd-2-clause | copy/v86,copy/v86,copy/v86,copy/v86,copy/v86,copy/v86,copy/v86 | yaml | ## Code Before:
language: node_js
node_js:
- "6.10.2"
dist: trusty
before_install:
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
install:
- sudo apt-get install -y gcc-multilib nasm gdb
script:
- "./.travis-run-$TEST_SUITE.sh"
env:
- TEST_SUITE=unit
- TEST_SUITE=integration
- TEST_... | language: node_js
node_js:
- "6.10.2"
dist: trusty
before_install:
- sudo dpkg --add-architecture i386
- sudo apt-get update -qq
install:
- sudo apt-get install -y gcc-multilib nasm gdb
script:
- "./.travis-run-$TEST_SUITE.sh"
env:
- TEST_SUITE=unit
- TEST_SUITE=integration... | 3 | 0.1875 | 3 | 0 |
f1e91513d6bc4885fcb5b41e927eaa2f4f9b8596 | .travis.yml | .travis.yml | arch:
# Disabled for now
#- amd64
# Handled via partner queue, uncharged
- ppc64le
#- arm64
jobs:
include:
- &run_tests
# Template; subsequent uses modify 'env'
env:
- IMAGE=centos:centos7 TASK=tests COMPONENTS=udt,myproxy,ssh
stage: test
sudo: required
services:
... | os: linux
dist: focal
language: ruby
# As per [1] explicitly included builds inherit the first value in an array.
# [1]: https://docs.travis-ci.com/user/multi-cpu-architectures#example-multi-architecture-build-matrix
# Hence the desired arch needs to be specified for each job additionally
# below.
#arch:
# Disabled f... | Change to Ubuntu Focal (20.04) as build environment on Travis Ci, cleanup configuration and enable builds on arm64, too. | Change to Ubuntu Focal (20.04) as build environment on Travis Ci,
cleanup configuration and enable builds on arm64, too.
| YAML | apache-2.0 | gridcf/gct,gridcf/gct,gridcf/gct,gridcf/gct,gridcf/gct,gridcf/gct | yaml | ## Code Before:
arch:
# Disabled for now
#- amd64
# Handled via partner queue, uncharged
- ppc64le
#- arm64
jobs:
include:
- &run_tests
# Template; subsequent uses modify 'env'
env:
- IMAGE=centos:centos7 TASK=tests COMPONENTS=udt,myproxy,ssh
stage: test
sudo: required
... | + os: linux
+ dist: focal
+ language: ruby
+ # As per [1] explicitly included builds inherit the first value in an array.
+ # [1]: https://docs.travis-ci.com/user/multi-cpu-architectures#example-multi-architecture-build-matrix
+ # Hence the desired arch needs to be specified for each job additionally
+ # below.
- arch:... | 27 | 0.964286 | 24 | 3 |
2e68a71fb2e266ade6a07d265559b71fd1ae44ad | app/views/platform/open_data/index.html.haml | app/views/platform/open_data/index.html.haml | .page-header
%h1 Open Data
%p
We are providing multiple CSV files into a zip file.
#{link_to 'Click here to download', 'http://voxe.s3.amazonaws.com/open_data/voxe-2013-02-24.zip', class: 'btn small'}
| .page-header
%h1 Open Data
%p
We are providing multiple CSV files into a zip file.
%p
These data are under license #{link_to 'Creative Commons Attribution 3.0 France', 'http://creativecommons.org/licenses/by/3.0/fr/deed.en'}.
%br
#{link_to 'Click here to download', 'http://voxe.s3.amazonaws.com/open_data/voxe-... | Add CC licence on Open Data page | Add CC licence on Open Data page
| Haml | apache-2.0 | voxe/voxe-web,voxe/voxe-web,voxe/voxe-web | haml | ## Code Before:
.page-header
%h1 Open Data
%p
We are providing multiple CSV files into a zip file.
#{link_to 'Click here to download', 'http://voxe.s3.amazonaws.com/open_data/voxe-2013-02-24.zip', class: 'btn small'}
## Instruction:
Add CC licence on Open Data page
## Code After:
.page-header
%h1 Open Data
... | .page-header
%h1 Open Data
%p
We are providing multiple CSV files into a zip file.
+ %p
+ These data are under license #{link_to 'Creative Commons Attribution 3.0 France', 'http://creativecommons.org/licenses/by/3.0/fr/deed.en'}.
+ %br
#{link_to 'Click here to download', 'http://voxe.s3.amazonaws.c... | 3 | 0.5 | 3 | 0 |
d90f4fbc0106e5310adb8d5c11faddbe04641372 | README.md | README.md |
This repository contains all my Arduino experiments. They are realized with the [SparkFun Inventor's Kit](https://www.sparkfun.com/products/12001).
* Morse encoder ([tutorial](http://www.jonathan-petitcolas.com/2014/03/16/2014-03-16-creating-morse-encoder-with-arduino.html) | [demonstration](http://www.youtube.com/wa... |
This repository contains all my Arduino experiments. They are realized with the [SparkFun Inventor's Kit](https://www.sparkfun.com/products/12001).
* Morse encoder ([tutorial](http://www.jonathan-petitcolas.com/2014/03/16/creating-morse-encoder-with-arduino.html) | [demonstration](http://www.youtube.com/watch?v=4H3hK... | Fix Morse encoder tutorial link | Fix Morse encoder tutorial link | Markdown | mit | jpetitcolas/arduino-experiments,jpetitcolas/arduino-experiments | markdown | ## Code Before:
This repository contains all my Arduino experiments. They are realized with the [SparkFun Inventor's Kit](https://www.sparkfun.com/products/12001).
* Morse encoder ([tutorial](http://www.jonathan-petitcolas.com/2014/03/16/2014-03-16-creating-morse-encoder-with-arduino.html) | [demonstration](http://ww... |
This repository contains all my Arduino experiments. They are realized with the [SparkFun Inventor's Kit](https://www.sparkfun.com/products/12001).
- * Morse encoder ([tutorial](http://www.jonathan-petitcolas.com/2014/03/16/2014-03-16-creating-morse-encoder-with-arduino.html) | [demonstration](http://www.youtub... | 2 | 0.5 | 1 | 1 |
e88616af00bd25d4c4b88184dfcb7d1823f2d809 | .travis.yml | .travis.yml | language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
install:
- travis_retry pip install tox==1.6.1
script:
- travis_retry tox
| language: python
sudo: false
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
install:
- travis_retry pip install tox==1.6.1
script:
- travis_retry tox
| Use the new build env on Travis | Use the new build env on Travis
| YAML | bsd-3-clause | mnaberez/supervisor_twiddler | yaml | ## Code Before:
language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
install:
- travis_retry pip install tox==1.6.1
script:
- travis_retry tox
## Instruction:
Use the new build env on Travis
## Code After:
language: python
sudo: false
env:
- TOXEN... | language: python
+ sudo: false
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=py34
install:
- travis_retry pip install tox==1.6.1
script:
- travis_retry tox | 1 | 0.090909 | 1 | 0 |
6cfa1c71d9b13e5d80d13589fdbe6329a26419c3 | src/SimplyTestable/ApiBundle/Tests/Command/Job/ResolveWebsiteCommand/CommandTest.php | src/SimplyTestable/ApiBundle/Tests/Command/Job/ResolveWebsiteCommand/CommandTest.php | <?php
namespace SimplyTestable\ApiBundle\Tests\Command\Job\ResolveWebsiteCommand;
use SimplyTestable\ApiBundle\Tests\ConsoleCommandTestCase;
abstract class CommandTest extends ConsoleCommandTestCase {
const CANONICAL_URL = 'http://example.com';
/**
*
* @return string
*/
protect... | <?php
namespace SimplyTestable\ApiBundle\Tests\Command\Job\ResolveWebsiteCommand;
use SimplyTestable\ApiBundle\Tests\ConsoleCommandTestCase;
abstract class CommandTest extends ConsoleCommandTestCase {
const CANONICAL_URL = 'http://example.com';
/**
*
* @return string
*/
protect... | Test handling http errors resolving job website | Test handling http errors resolving job website
| PHP | mit | webignition/app.simplytestable.com,webignition/app.simplytestable.com | php | ## Code Before:
<?php
namespace SimplyTestable\ApiBundle\Tests\Command\Job\ResolveWebsiteCommand;
use SimplyTestable\ApiBundle\Tests\ConsoleCommandTestCase;
abstract class CommandTest extends ConsoleCommandTestCase {
const CANONICAL_URL = 'http://example.com';
/**
*
* @return string
... | <?php
namespace SimplyTestable\ApiBundle\Tests\Command\Job\ResolveWebsiteCommand;
use SimplyTestable\ApiBundle\Tests\ConsoleCommandTestCase;
abstract class CommandTest extends ConsoleCommandTestCase {
const CANONICAL_URL = 'http://example.com';
/**
*
* @return ... | 11 | 0.37931 | 0 | 11 |
fcb24be46a457425bf57df42c6d59c83aa442c88 | packs/purr/actions/workflows/process_stg1_tweet.yaml | packs/purr/actions/workflows/process_stg1_tweet.yaml | version: '2.0'
purr.process_stg1_tweet:
description: Process tweet for stage 1 of the puzzle.
input:
- contestant
- tweet_text
- tweet_timestamp
vars:
tracker: <% $.contestant + '.stage.1' %>
tasks:
validate_tweet:
action: core.noop
on-su... | version: '2.0'
purr.process_stg1_tweet:
description: Process tweet for stage 1 of the puzzle.
input:
- contestant
- tweet_text
- tweet_timestamp
vars:
tracker: <% $.contestant + '.stage.1' %>
tasks:
validate_tweet:
action: core.noop
on-su... | Use twitter direct message to notify contestant | Use twitter direct message to notify contestant
| YAML | apache-2.0 | StackStorm/st2incubator,StackStorm/st2incubator | yaml | ## Code Before:
version: '2.0'
purr.process_stg1_tweet:
description: Process tweet for stage 1 of the puzzle.
input:
- contestant
- tweet_text
- tweet_timestamp
vars:
tracker: <% $.contestant + '.stage.1' %>
tasks:
validate_tweet:
action: core.noop
... | version: '2.0'
purr.process_stg1_tweet:
description: Process tweet for stage 1 of the puzzle.
input:
- contestant
- tweet_text
- tweet_timestamp
vars:
tracker: <% $.contestant + '.stage.1' %>
tasks:
validate_tweet:
action:... | 5 | 0.16129 | 4 | 1 |
7fe9c9fcb59c2e822b5a088861207fda5d180cd8 | app-ui/src/main/resources/application.properties | app-ui/src/main/resources/application.properties | server.port = 8080
server.servlet.context-path = /ligoj
server.use-forward-headers = true
server.address = 0.0.0.0
spring.application.name = Ligoj WEB
spring.profiles.active = prod
spring.main.allow-bean-definition-overriding=true
# End-points
ligoj.endpoint = http://... | server.port = 8080
server.servlet.context-path = /ligoj
server.forward-headers-strategy = FRAMEWORK
server.address = 0.0.0.0
spring.application.name = Ligoj WEB
spring.profiles.active = prod
spring.main.allow-bean-definition-overriding=true
# End-points
ligoj.endpoint ... | Use the new Spring-Boot forward-headers-strategy for load balancers | Use the new Spring-Boot forward-headers-strategy for load balancers
| INI | mit | ligoj/ligoj,ligoj/ligoj,ligoj/ligoj,ligoj/ligoj | ini | ## Code Before:
server.port = 8080
server.servlet.context-path = /ligoj
server.use-forward-headers = true
server.address = 0.0.0.0
spring.application.name = Ligoj WEB
spring.profiles.active = prod
spring.main.allow-bean-definition-overriding=true
# End-points
ligoj.endpoint ... | server.port = 8080
server.servlet.context-path = /ligoj
- server.use-forward-headers = true
+ server.forward-headers-strategy = FRAMEWORK
+
server.address = 0.0.0.0
spring.application.name = Ligoj WEB
spring.profiles.active = prod
spring.main.allow-bean-definition-ove... | 3 | 0.107143 | 2 | 1 |
95ea1d7d6564bcbb2e3b8d2ba254ccd2c1c38436 | mamba/__init__.py | mamba/__init__.py | __version__ = '0.9.2'
def description(message):
pass
def _description(message):
pass
def it(message):
pass
def _it(message):
pass
def context(message):
pass
def _context(message):
pass
def before():
pass
def after():
pass
| __version__ = '0.9.2'
def description(message):
pass
def _description(message):
pass
def fdescription(message):
pass
def it(message):
pass
def _it(message):
pass
def fit(message):
pass
def context(message):
pass
def _context(message):
pass
def fcontext(message):
pas... | Add import for focused stuff | Add import for focused stuff
| Python | mit | nestorsalceda/mamba | python | ## Code Before:
__version__ = '0.9.2'
def description(message):
pass
def _description(message):
pass
def it(message):
pass
def _it(message):
pass
def context(message):
pass
def _context(message):
pass
def before():
pass
def after():
pass
## Instruction:
Add import for fo... | __version__ = '0.9.2'
def description(message):
pass
def _description(message):
pass
+ def fdescription(message):
+ pass
+
+
def it(message):
pass
def _it(message):
+ pass
+
+
+ def fit(message):
pass
def context(message):
pass
... | 12 | 0.363636 | 12 | 0 |
1cf12d10298074593402529ca603b0c066b578dd | .travis.yml | .travis.yml | language: php
php:
- 5.5.29
- 5.6.13
before_script:
- pyrus install http://phptal.org/latest.tar.gz
- pear install pear/PHP_CodeSniffer
- phpenv rehash
script:
- phpcs --standard=test/phpcs-ganglia-web.xml -p *.php api graph.d lib nagios test || echo "Completed - Returned $?"
- phpunit test
| language: php
sudo: false
php:
- 5.5.29
- 5.6.13
before_script:
- pyrus install http://phptal.org/latest.tar.gz
- pear install pear/PHP_CodeSniffer
- phpenv rehash
script:
- phpcs --standard=test/phpcs-ganglia-web.xml -p *.php api graph.d lib nagios test || echo "Completed - Returned $?"
- phpunit test
| Move to container architecture for traivs builds. | Move to container architecture for traivs builds.
| YAML | bsd-3-clause | ganglia/ganglia-web,ganglia/ganglia-web,ganglia/ganglia-web,ganglia/ganglia-web,ganglia/ganglia-web | yaml | ## Code Before:
language: php
php:
- 5.5.29
- 5.6.13
before_script:
- pyrus install http://phptal.org/latest.tar.gz
- pear install pear/PHP_CodeSniffer
- phpenv rehash
script:
- phpcs --standard=test/phpcs-ganglia-web.xml -p *.php api graph.d lib nagios test || echo "Completed - Returned $?"
- phpunit test
## I... | language: php
+ sudo: false
php:
- 5.5.29
- 5.6.13
before_script:
- pyrus install http://phptal.org/latest.tar.gz
- pear install pear/PHP_CodeSniffer
- phpenv rehash
script:
- phpcs --standard=test/phpcs-ganglia-web.xml -p *.php api graph.d lib nagios test || echo "Completed - Returned $?"
... | 1 | 0.090909 | 1 | 0 |
1f2dd3d929e4a2f1e9494f67800d148a68cb96f6 | tools/gate/integration/post_test_hook.sh | tools/gate/integration/post_test_hook.sh |
set -x
source commons $@
set +e
cd /opt/stack/new/sahara-dashboard
sudo wget -q -O firefox.deb https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb/download
sudo apt-get -y purge firefox
sudo dpkg -i firefox.deb
sudo rm firef... |
set -x
source commons $@
set +e
cd /opt/stack/new/sahara-dashboard
sudo wget -q -O firefox.deb https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb/download
sudo apt-get -y purge firefox
sudo dpkg -i firefox.deb
sudo rm firef... | Remove some debugging artifacts from file | Remove some debugging artifacts from file
This "show" command is really unneeded in
post-test-hook. It atifacts of debug integration
tests.
Change-Id: If96351be498d2ed5726fcf624160d89d9be172ed
| Shell | apache-2.0 | openstack/sahara-dashboard,openstack/sahara-dashboard,openstack/sahara-dashboard,openstack/sahara-dashboard | shell | ## Code Before:
set -x
source commons $@
set +e
cd /opt/stack/new/sahara-dashboard
sudo wget -q -O firefox.deb https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb/download
sudo apt-get -y purge firefox
sudo dpkg -i firefox.d... |
set -x
source commons $@
set +e
cd /opt/stack/new/sahara-dashboard
sudo wget -q -O firefox.deb https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb/download
sudo apt-get -y purge firefox
sudo dpkg -i firef... | 1 | 0.027778 | 0 | 1 |
d602b99beaf513d8d34cca8675607909618e5795 | Datez/Datez/Extensions/FoundationConversion/NSTimeInterval+Conversion.swift | Datez/Datez/Extensions/FoundationConversion/NSTimeInterval+Conversion.swift | //
// NSTimeInterval+Conversion.swift
// Datez
//
// Created by Mazyad Alabduljaleel on 11/7/15.
// Copyright © 2015 kitz. All rights reserved.
//
import Foundation
/** [BONUS]: This is a bonus API for ballpark calculations, useful for
making hardcoded intervals more readable.
e.g.
+ declaring a... | //
// NSTimeInterval+Conversion.swift
// Datez
//
// Created by Mazyad Alabduljaleel on 11/7/15.
// Copyright © 2015 kitz. All rights reserved.
//
import Foundation
/** [BONUS]: This is a bonus API for ballpark calculations, useful for
making hardcoded intervals more readable.
e.g.
+ declaring a... | Fix another NSTimeInterval calculation Tests should always pass now | Fix another NSTimeInterval calculation
Tests should always pass now
| Swift | mit | SwiftKitz/Datez,SwiftKitz/Datez | swift | ## Code Before:
//
// NSTimeInterval+Conversion.swift
// Datez
//
// Created by Mazyad Alabduljaleel on 11/7/15.
// Copyright © 2015 kitz. All rights reserved.
//
import Foundation
/** [BONUS]: This is a bonus API for ballpark calculations, useful for
making hardcoded intervals more readable.
e.g.
... | //
// NSTimeInterval+Conversion.swift
// Datez
//
// Created by Mazyad Alabduljaleel on 11/7/15.
// Copyright © 2015 kitz. All rights reserved.
//
import Foundation
/** [BONUS]: This is a bonus API for ballpark calculations, useful for
making hardcoded intervals more readable.
... | 5 | 0.121951 | 3 | 2 |
b8cacab927c5b98285f15ae4d400b9577dbacef6 | openstack_dashboard/dashboards/admin/dashboard.py | openstack_dashboard/dashboards/admin/dashboard.py |
from django.utils.translation import ugettext_lazy as _
from openstack_auth import utils
import horizon
from django.conf import settings
class Admin(horizon.Dashboard):
name = _("Admin")
slug = "admin"
if getattr(settings, 'POLICY_CHECK_FUNCTION', None):
policy_rules = (('identity', 'admin_re... |
from django.utils.translation import ugettext_lazy as _
from openstack_auth import utils
import horizon
from django.conf import settings
class Admin(horizon.Dashboard):
name = _("Admin")
slug = "admin"
if getattr(settings, 'POLICY_CHECK_FUNCTION', None):
policy_rules = (('identity', 'admin_re... | Remove broken telemetry policy check | Remove broken telemetry policy check
The reference to telemetry policy is no longer needed as well
as broken causing the admin dashboard to show up inappropriately.
Closes-Bug: #1643009
Change-Id: I07406f5d6c23b0fcc34df00a29b573ffc2c900e7
| Python | apache-2.0 | yeming233/horizon,ChameleonCloud/horizon,noironetworks/horizon,ChameleonCloud/horizon,noironetworks/horizon,NeCTAR-RC/horizon,noironetworks/horizon,BiznetGIO/horizon,BiznetGIO/horizon,yeming233/horizon,NeCTAR-RC/horizon,BiznetGIO/horizon,openstack/horizon,BiznetGIO/horizon,ChameleonCloud/horizon,openstack/horizon,Chame... | python | ## Code Before:
from django.utils.translation import ugettext_lazy as _
from openstack_auth import utils
import horizon
from django.conf import settings
class Admin(horizon.Dashboard):
name = _("Admin")
slug = "admin"
if getattr(settings, 'POLICY_CHECK_FUNCTION', None):
policy_rules = (('iden... |
from django.utils.translation import ugettext_lazy as _
from openstack_auth import utils
import horizon
from django.conf import settings
class Admin(horizon.Dashboard):
name = _("Admin")
slug = "admin"
if getattr(settings, 'POLICY_CHECK_FUNCTION', None):
policy... | 3 | 0.115385 | 1 | 2 |
f87c337486d14650bb8268a6bf9b2a37487826da | doc-examples/src/main/java/arez/doc/examples/at_component_dependency/PersonViewModel.java | doc-examples/src/main/java/arez/doc/examples/at_component_dependency/PersonViewModel.java | package arez.doc.examples.at_component_dependency;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentDependency;
import arez.annotations.Observable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ArezComponent
public abstract class PersonViewModel
{
@Nonnull
private fina... | package arez.doc.examples.at_component_dependency;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentDependency;
import arez.annotations.Observable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ArezComponent
public abstract class PersonViewModel
{
// This reference is im... | Move @ComponentDependency to the field as that is the latest recomendation | Move @ComponentDependency to the field as that is the latest recomendation
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez | java | ## Code Before:
package arez.doc.examples.at_component_dependency;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentDependency;
import arez.annotations.Observable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ArezComponent
public abstract class PersonViewModel
{
@Nonnul... | package arez.doc.examples.at_component_dependency;
import arez.annotations.ArezComponent;
import arez.annotations.ComponentDependency;
import arez.annotations.Observable;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ArezComponent
public abstract class PersonViewModel
{
+ ... | 12 | 0.230769 | 6 | 6 |
a5909a090e9fac73b2a4008f2c9bfa55aa58542e | app/controllers/application_controller.rb | app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_action :set_locale
before_action :configure_permitted_parameters, if: :devise_controller?
def default_url_optio... | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_action :set_locale
before_action :configure_permitted_parameters, if: :devise_controller?
def default_url_optio... | FIX : ajout du champ telephone dans les strong parameters du model User | FIX : ajout du champ telephone dans les strong parameters du model User
| Ruby | mit | clervens/gestionDeLivraison,clervens/gestionDeLivraison,clervens/gestionDeLivraison | ruby | ## Code Before:
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_action :set_locale
before_action :configure_permitted_parameters, if: :devise_controller?
def d... | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_action :set_locale
before_action :configure_permitted_parameters, if: :devise_controller?
def d... | 2 | 0.095238 | 1 | 1 |
2be77b1d24d315ea5968f0d1a35f13b61d16e2e0 | timeline_fu.gemspec | timeline_fu.gemspec | $:.push File.expand_path("../lib", __FILE__)
require "timeline_fu/version"
Gem::Specification.new do |s|
s.name = "timeline_fu"
s.version = TimelineFu::VERSION
s.authors = ["James Golick", "Mathieu Martin", "Francois Beausoleil"]
s.email = "james@giraffesoft.ca"
s.homepage = "http://github.com/giraffesoft/ti... | $:.push File.expand_path("../lib", __FILE__)
require "timeline_fu/version"
Gem::Specification.new do |s|
s.name = "timeline_fu"
s.version = TimelineFu::VERSION
s.authors = ["James Golick", "Mathieu Martin", "Francois Beausoleil"]
s.email = "james@giraffesoft.ca"
s.homepage = "https://github.com/jamesgolick/t... | Change homepage to correct one. | Change homepage to correct one.
| Ruby | mit | openSUSE/timeline_fu,onedesign/timeline_fu | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
require "timeline_fu/version"
Gem::Specification.new do |s|
s.name = "timeline_fu"
s.version = TimelineFu::VERSION
s.authors = ["James Golick", "Mathieu Martin", "Francois Beausoleil"]
s.email = "james@giraffesoft.ca"
s.homepage = "http://github.co... | $:.push File.expand_path("../lib", __FILE__)
require "timeline_fu/version"
Gem::Specification.new do |s|
s.name = "timeline_fu"
s.version = TimelineFu::VERSION
s.authors = ["James Golick", "Mathieu Martin", "Francois Beausoleil"]
s.email = "james@giraffesoft.ca"
- s.homepage = "http://github.... | 2 | 0.071429 | 1 | 1 |
411d564900abdca805ec0d57671bf60f91817d02 | react/components/NotificationsDropdown/components/Notification/components/NotificationObjectLink/index.js | react/components/NotificationsDropdown/components/Notification/components/NotificationObjectLink/index.js | import React from 'react';
import PropTypes from 'prop-types';
import Text from 'react/components/UI/Text';
import Truncate from 'react/components/UI/Truncate';
const NotificationObjectLink = ({
__typename, label, href, visibility, is_me, ...rest
}) => {
if (is_me) {
return (
<Text display="inline" f={1... | import React from 'react';
import PropTypes from 'prop-types';
import { unescape } from 'underscore';
import Text from 'react/components/UI/Text';
import Truncate from 'react/components/UI/Truncate';
import LockIconWithBorder from 'react/components/UI/LockIconWithBorder';
const NotificationObjectLink = ({
__typenam... | Add lock icon to notification link | Add lock icon to notification link
| JavaScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | javascript | ## Code Before:
import React from 'react';
import PropTypes from 'prop-types';
import Text from 'react/components/UI/Text';
import Truncate from 'react/components/UI/Truncate';
const NotificationObjectLink = ({
__typename, label, href, visibility, is_me, ...rest
}) => {
if (is_me) {
return (
<Text displ... | import React from 'react';
import PropTypes from 'prop-types';
+ import { unescape } from 'underscore';
import Text from 'react/components/UI/Text';
import Truncate from 'react/components/UI/Truncate';
+ import LockIconWithBorder from 'react/components/UI/LockIconWithBorder';
const NotificationObjectLin... | 7 | 0.14 | 6 | 1 |
f99e1f56728dfe4e46122eaace0aed406c2b38f2 | README.md | README.md |
A simple logger for Mongoid.
## Installation
Add this line to your application's Gemfile:
gem 'mongoid-clerk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mongoid-clerk
## Usage
Include `Clerk::Logger` in your model, then log anything with `log()`. The first argument is the ... |
[](http://travis-ci.org/80beans/mongoid-clerk)
A simple logger for Mongoid.
## Installation
Add this line to your application's Gemfile:
gem 'mongoid-clerk'
And then execute:
$ bundle
Or install it yourself as:
$ g... | Add build status to readme | Add build status to readme
| Markdown | mit | 80beans/mongoid-clerk | markdown | ## Code Before:
A simple logger for Mongoid.
## Installation
Add this line to your application's Gemfile:
gem 'mongoid-clerk'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mongoid-clerk
## Usage
Include `Clerk::Logger` in your model, then log anything with `log()`. The first ... | +
+ [](http://travis-ci.org/80beans/mongoid-clerk)
A simple logger for Mongoid.
## Installation
Add this line to your application's Gemfile:
gem 'mongoid-clerk'
And then execute:
$ bundle
Or ... | 2 | 0.038462 | 2 | 0 |
a4366662b0efc0e3ee9e55ab687853ad5eaa771b | spec/lita/builder_spec.rb | spec/lita/builder_spec.rb | require "spec_helper"
describe Lita::Builder, lita: true do
let(:robot) { instance_double("Lita::Robot") }
subject { plugin.new(robot) }
describe "#build_adapter" do
let(:builder) do
described_class.new(:test_adapter) do
def run
self.class.namespace
end
end
end
... | require "spec_helper"
describe Lita::Builder, lita: true do
let(:robot) { instance_double("Lita::Robot") }
subject { plugin.new(robot) }
describe "#build_adapter" do
let(:builder) do
described_class.new(:test_adapter) do
def run
self.class.namespace
end
end
end
... | Use registry instead of stubbing the Lita.handlers. | Use registry instead of stubbing the Lita.handlers.
| Ruby | mit | liamdawson/lita,mcgain/lita,jimmycuadra/lita,elia/lita,crimsonknave/lita,jaisonerick/lita,elia/lita,sadiqmmm/lita,jimmycuadra/lita,crimsonknave/lita,tristaneuan/lita,brodock/lita,natesholland/lita,chriswoodrich/lita,byroot/lita,sadiqmmm/lita,MatthewKrey/lita,natesholland/lita,liamdawson/lita,jaisonerick/lita,litaio/lit... | ruby | ## Code Before:
require "spec_helper"
describe Lita::Builder, lita: true do
let(:robot) { instance_double("Lita::Robot") }
subject { plugin.new(robot) }
describe "#build_adapter" do
let(:builder) do
described_class.new(:test_adapter) do
def run
self.class.namespace
end
... | require "spec_helper"
describe Lita::Builder, lita: true do
let(:robot) { instance_double("Lita::Robot") }
subject { plugin.new(robot) }
describe "#build_adapter" do
let(:builder) do
described_class.new(:test_adapter) do
def run
self.class.namespace
en... | 2 | 0.051282 | 1 | 1 |
cdcecaad78b8acf1c067c5eb631e6c3ae7167c2c | elasticsearch_dsl/__init__.py | elasticsearch_dsl/__init__.py | from .query import Q
from .filter import F
from .aggs import A
from .function import SF
from .search import Search
from .field import *
from .document import DocType
from .mapping import Mapping
from .index import Index
from .analysis import analyzer, token_filter, char_filter, tokenizer
VERSION = (0, 0, 4, 'dev')
__v... | from .query import Q
from .filter import F
from .aggs import A
from .function import SF
from .search import Search
from .field import *
from .document import DocType, MetaField
from .mapping import Mapping
from .index import Index
from .analysis import analyzer, token_filter, char_filter, tokenizer
VERSION = (0, 0, 4,... | Include MetaField in things importable from root | Include MetaField in things importable from root
| Python | apache-2.0 | sangheestyle/elasticsearch-dsl-py,3lnc/elasticsearch-dsl-py,elastic/elasticsearch-dsl-py,harshmaur/elasticsearch-dsl-py,solarissmoke/elasticsearch-dsl-py,Quiri/elasticsearch-dsl-py,harshit298/elasticsearch-dsl-py,f-santos/elasticsearch-dsl-py,reflection/elasticsearch-dsl-py,REVLWorld/elasticsearch-dsl-py,ziky90/elastic... | python | ## Code Before:
from .query import Q
from .filter import F
from .aggs import A
from .function import SF
from .search import Search
from .field import *
from .document import DocType
from .mapping import Mapping
from .index import Index
from .analysis import analyzer, token_filter, char_filter, tokenizer
VERSION = (0, ... | from .query import Q
from .filter import F
from .aggs import A
from .function import SF
from .search import Search
from .field import *
- from .document import DocType
+ from .document import DocType, MetaField
? +++++++++++
from .mapping import Mapping
from .index import I... | 2 | 0.142857 | 1 | 1 |
33ad64618459294272a7c5aa3bc995a1dda63f8b | README.md | README.md |
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Flindydonna%2Fcodercards%2Fmaster%2Fazuredeploy.json) |
+<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Flindydonna%2Fcodercards%2Fmaster%2Fazuredeploy.json" target="_blank"></a>
| Update readme to open Deploy to Azure in new tab | Update readme to open Deploy to Azure in new tab | Markdown | mit | lindydonna/CoderCards,lindydonna/CoderCards,lindydonna/CoderCards | markdown | ## Code Before:
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Flindydonna%2Fcodercards%2Fmaster%2Fazuredeploy.json)
## Instruction:
Update readme to open Deploy to Azure in new tab
## Code After:
+<a href... |
+ +<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Flindydonna%2Fcodercards%2Fmaster%2Fazuredeploy.json" target="_blank"></a>
-
- [](https:/... | 3 | 1 | 1 | 2 |
9169b5de5d27e0a4123e126b9ee1b57948d33aca | .travis.yml | .travis.yml | sudo: required
language: python
services:
- docker
script:
- bash scripts/build-push.sh
| sudo: required
language: python
python:
- "3.6"
install:
- pip install docker pytest
services:
- docker
script:
- bash scripts/test.sh
deploy:
provider: script
script: bash scripts/build-push.sh
on:
branch: master
| Make Travis deploy only on master and run the tests | :rocket: Make Travis deploy only on master and run the tests
| YAML | apache-2.0 | tiangolo/uwsgi-nginx-flask-docker,tiangolo/uwsgi-nginx-flask-docker,tiangolo/uwsgi-nginx-flask-docker | yaml | ## Code Before:
sudo: required
language: python
services:
- docker
script:
- bash scripts/build-push.sh
## Instruction:
:rocket: Make Travis deploy only on master and run the tests
## Code After:
sudo: required
language: python
python:
- "3.6"
install:
- pip install docker pytest
services:
- docker
sc... | sudo: required
language: python
+
+ python:
+ - "3.6"
+
+ install:
+ - pip install docker pytest
services:
- docker
script:
+ - bash scripts/test.sh
+
+ deploy:
+ provider: script
- - bash scripts/build-push.sh
? ^
+ script: bash scripts/build-push.sh
? ^^^^^^^^^
+ on:
+ branch... | 14 | 1.555556 | 13 | 1 |
6cf0c73453dcf11d4719730a8361c2403103f543 | app/assets/javascripts/admin/products/controllers/variant_units_controller.js.coffee | app/assets/javascripts/admin/products/controllers/variant_units_controller.js.coffee | angular.module("admin.products").controller "variantUnitsCtrl", ($scope, VariantUnitManager, $timeout, UnitPrices) ->
$scope.unitName = (scale, type) ->
VariantUnitManager.getUnitName(scale, type)
$scope.$watchCollection "[unit_value_human, variant.price]", ->
$scope.processUnitPrice()
$scope.process... | angular.module("admin.products").controller "variantUnitsCtrl", ($scope, VariantUnitManager, $timeout, UnitPrices, unlocalizeCurrencyFilter) ->
$scope.unitName = (scale, type) ->
VariantUnitManager.getUnitName(scale, type)
$scope.$watchCollection "[unit_value_human, variant.price]", ->
$scope.processUnitP... | Use our unlocalizeCurrencyFilter to parse unit value field | Use our unlocalizeCurrencyFilter to parse unit value field
- More tolerant (can handle `,` or `.` as decimal separator, remove thousands separator) to return a `number`
| CoffeeScript | agpl-3.0 | Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfound... | coffeescript | ## Code Before:
angular.module("admin.products").controller "variantUnitsCtrl", ($scope, VariantUnitManager, $timeout, UnitPrices) ->
$scope.unitName = (scale, type) ->
VariantUnitManager.getUnitName(scale, type)
$scope.$watchCollection "[unit_value_human, variant.price]", ->
$scope.processUnitPrice()
... | - angular.module("admin.products").controller "variantUnitsCtrl", ($scope, VariantUnitManager, $timeout, UnitPrices) ->
+ angular.module("admin.products").controller "variantUnitsCtrl", ($scope, VariantUnitManager, $timeout, UnitPrices, unlocalizeCurrencyFilter) ->
? ... | 4 | 0.125 | 2 | 2 |
3f5bcd66d3372aeaa14387d917cbb7cec702b2b9 | skyspark-scala/src/main/scala/com/github/dkanellis/skyspark/scala/api/algorithms/bnl/BlockNestedLoop.scala | skyspark-scala/src/main/scala/com/github/dkanellis/skyspark/scala/api/algorithms/bnl/BlockNestedLoop.scala | package com.github.dkanellis.skyspark.scala.api.algorithms.bnl
import javax.annotation.concurrent.ThreadSafe
import com.github.dkanellis.skyspark.scala.api.algorithms.{Point, SkylineAlgorithm}
import org.apache.spark.rdd.RDD
/**
* A MapReduce based, block-nested loop algorithm (MR-BNL).
* <p>
* First we do the... | package com.github.dkanellis.skyspark.scala.api.algorithms.bnl
import javax.annotation.concurrent.ThreadSafe
import com.github.dkanellis.skyspark.scala.api.algorithms.{Point, SkylineAlgorithm}
import org.apache.spark.rdd.RDD
/**
* A MapReduce based, block-nested loop algorithm (MR-BNL).
* <p>
* First we do the... | Fix wrong placement of constructor due to IntelliJ's code rearranging | Fix wrong placement of constructor due to IntelliJ's code rearranging
| Scala | mit | AkiKanellis/SkySpark,dkanellis/SkySpark | scala | ## Code Before:
package com.github.dkanellis.skyspark.scala.api.algorithms.bnl
import javax.annotation.concurrent.ThreadSafe
import com.github.dkanellis.skyspark.scala.api.algorithms.{Point, SkylineAlgorithm}
import org.apache.spark.rdd.RDD
/**
* A MapReduce based, block-nested loop algorithm (MR-BNL).
* <p>
*... | package com.github.dkanellis.skyspark.scala.api.algorithms.bnl
import javax.annotation.concurrent.ThreadSafe
import com.github.dkanellis.skyspark.scala.api.algorithms.{Point, SkylineAlgorithm}
import org.apache.spark.rdd.RDD
/**
* A MapReduce based, block-nested loop algorithm (MR-BNL).
* <p>... | 4 | 0.117647 | 2 | 2 |
76df4116aaec99c285f9ab7bee45f253ce652b8d | lib/ModalFooter/examples/ModalFooterExample.js | lib/ModalFooter/examples/ModalFooterExample.js | /**
* Modal: With ModalFooter component
*/
/* eslint-disable */
import React from 'react';
import ModalFooter from '@folio/stripes-components/lib/ModalFooter';
import Button from '@folio/stripes-components/lib/Button';
import Modal from '@folio/stripes-components/lib/Modal';
export default () => {
const footer = ... | /**
* Modal: With ModalFooter component
*/
/* eslint-disable */
import React from 'react';
import ModalFooter from '../ModalFooter';
import Button from '../../Button';
import Modal from '../../Modal';
export default () => {
const footer = (
<ModalFooter
primaryButton={{
label: 'Save',
on... | Fix paths for ModalFooter story CSS | Fix paths for ModalFooter story CSS
| JavaScript | apache-2.0 | folio-org/stripes-components,folio-org/stripes-components | javascript | ## Code Before:
/**
* Modal: With ModalFooter component
*/
/* eslint-disable */
import React from 'react';
import ModalFooter from '@folio/stripes-components/lib/ModalFooter';
import Button from '@folio/stripes-components/lib/Button';
import Modal from '@folio/stripes-components/lib/Modal';
export default () => {
... | /**
* Modal: With ModalFooter component
*/
/* eslint-disable */
import React from 'react';
- import ModalFooter from '@folio/stripes-components/lib/ModalFooter';
- import Button from '@folio/stripes-components/lib/Button';
- import Modal from '@folio/stripes-components/lib/Modal';
+ import ModalFooter fr... | 6 | 0.176471 | 3 | 3 |
9c2fff5aa24349712d2c0d54cc218e358199bd33 | bootstrap.sh | bootstrap.sh | chsh -s $(which zsh)
sh makesymlinks.sh
| chsh -s $(which zsh)
# Create necessary symlinks
./makesymlinks.sh
| Use default shell to create symlinks | Use default shell to create symlinks
| Shell | mit | sberrevoets/dotfiles,sberrevoets/dotfiles,sberrevoets/dotfiles,sberrevoets/dotfiles,sberrevoets/dotfiles | shell | ## Code Before:
chsh -s $(which zsh)
sh makesymlinks.sh
## Instruction:
Use default shell to create symlinks
## Code After:
chsh -s $(which zsh)
# Create necessary symlinks
./makesymlinks.sh
| chsh -s $(which zsh)
+ # Create necessary symlinks
- sh makesymlinks.sh
? ^^^
+ ./makesymlinks.sh
? ^^
| 3 | 1 | 2 | 1 |
ce36d5107b937085b45374615c7cfc10621353ff | routes/companies.js | routes/companies.js | var express = require('express');
var router = express.Router();
var HttpError = require('./errors').HttpError;
/*
* GET /
* [page = 0]
* [key = ""]: on empty, it will search all company
* Show 25 results per page
*/
router.get('/search', function(req, res, next) {
var search = req.query.key || "";
var pa... | var express = require('express');
var router = express.Router();
var HttpError = require('./errors').HttpError;
/*
* GET /
* [page = 0]
* [key = ""]: on empty, it will search all company
* Show 25 results per page
*/
router.get('/search', function(req, res, next) {
var search = req.query.key || "";
var pa... | Enable searching the company id | Enable searching the company id
| JavaScript | mit | mark86092/WorkTimeSurvey-backend | javascript | ## Code Before:
var express = require('express');
var router = express.Router();
var HttpError = require('./errors').HttpError;
/*
* GET /
* [page = 0]
* [key = ""]: on empty, it will search all company
* Show 25 results per page
*/
router.get('/search', function(req, res, next) {
var search = req.query.key |... | var express = require('express');
var router = express.Router();
var HttpError = require('./errors').HttpError;
/*
* GET /
* [page = 0]
* [key = ""]: on empty, it will search all company
* Show 25 results per page
*/
router.get('/search', function(req, res, next) {
var search = req.que... | 7 | 0.225806 | 6 | 1 |
143a4682eb960d715153127382bc2d058929f97e | source/deployment_docs.rst | source/deployment_docs.rst | NSLS-II Deployment Documentation
********************************
This documentation describes how we deploying the "bluesky" software suite and
associated configuration at NSLS-II. It is maintained as both an internal
reference and a public guide for collaborators or potential collaborators who
may be interested in o... | NSLS-II Deployment Documentation
********************************
This documentation describes how we deploying the "bluesky" software suite and
associated configuration at NSLS-II. It is maintained as both an internal
reference and a public guide for collaborators or potential collaborators who
may be interested in o... | Add a link to the ansible docs. | Add a link to the ansible docs.
| reStructuredText | bsd-2-clause | NSLS-II/docs,NSLS-II/docs | restructuredtext | ## Code Before:
NSLS-II Deployment Documentation
********************************
This documentation describes how we deploying the "bluesky" software suite and
associated configuration at NSLS-II. It is maintained as both an internal
reference and a public guide for collaborators or potential collaborators who
may be... | NSLS-II Deployment Documentation
********************************
This documentation describes how we deploying the "bluesky" software suite and
associated configuration at NSLS-II. It is maintained as both an internal
reference and a public guide for collaborators or potential collaborators who
may be i... | 1 | 0.03125 | 1 | 0 |
e81a69b44a8a63e7cd4a85351686de4d26fc7345 | log/tty_safe.go | log/tty_safe.go | // +build appengine
package log
import (
"io"
)
func isatty(w io.Writer) bool {
return false
}
| // +build appengine
package log
import (
"io"
"gnd.la/internal"
)
func isatty(w io.Writer) bool {
if internal.InAppEngineDevServer() {
return true
}
return false
}
| Add colored logging for GAE dev server | Add colored logging for GAE dev server
| Go | mpl-2.0 | rainycape/gondola,rainycape/gondola,rainycape/gondola,rainycape/gondola | go | ## Code Before:
// +build appengine
package log
import (
"io"
)
func isatty(w io.Writer) bool {
return false
}
## Instruction:
Add colored logging for GAE dev server
## Code After:
// +build appengine
package log
import (
"io"
"gnd.la/internal"
)
func isatty(w io.Writer) bool {
if internal.InAppEngineDevS... | // +build appengine
package log
import (
"io"
+
+ "gnd.la/internal"
)
func isatty(w io.Writer) bool {
+ if internal.InAppEngineDevServer() {
+ return true
+ }
return false
} | 5 | 0.454545 | 5 | 0 |
56b41605b090ef652bf2c31ca8a74917899a178d | src/sass/_mentioner.scss | src/sass/_mentioner.scss | .mentioner {
position: relative;
}
.mentioner__composer {
border-radius: 3px;
padding: 10px;
background-color: #F5F5F5;
outline: none;
}
.mentioner__dropdown {
max-width: 250px;
position: absolute;
&--hidden {
display: none;
}
}
| .mentioner {
position: relative;
}
.mentioner__composer {
border-radius: 3px;
padding: 10px;
background-color: #F5F5F5;
outline: none;
}
.mentioner__dropdown {
max-width: 250px;
position: absolute;
z-index: 99999;
&--hidden {
display: none;
}
}
| Add an absurdly high z-index for the dropdown | Add an absurdly high z-index for the dropdown
| SCSS | mit | MediaSQ/jquery.mentioner,MediaSQ/jquery.mentioner,MediaSQ/jquery.mentioner | scss | ## Code Before:
.mentioner {
position: relative;
}
.mentioner__composer {
border-radius: 3px;
padding: 10px;
background-color: #F5F5F5;
outline: none;
}
.mentioner__dropdown {
max-width: 250px;
position: absolute;
&--hidden {
display: none;
}
}
## Instruction:
Add an absurdly high z-index for... | .mentioner {
position: relative;
}
.mentioner__composer {
border-radius: 3px;
padding: 10px;
background-color: #F5F5F5;
outline: none;
}
.mentioner__dropdown {
max-width: 250px;
position: absolute;
+ z-index: 99999;
&--hidden {
display: none;
}
} | 1 | 0.05 | 1 | 0 |
c6813f627f8facb973616f1cec551013b46ebb00 | bin/check_it.c | bin/check_it.c |
int main(int argc, char** argv) {
struct passwd *passwd = getpwuid(getuid());
int errno = setreuid(geteuid(), geteuid());
// errno = execle("/usr/bin/id", (char *) 0, envp);
if (errno == 0 && passwd != 0) {
// CHECKIT_USER will contain the name of the user that invoked us.
char user_evar... |
int main(int argc, char** argv) {
struct passwd *passwd = getpwuid(getuid());
int errno = setreuid(geteuid(), geteuid());
// errno = execle("/usr/bin/id", (char *) 0, envp);
if (errno == 0 && passwd != 0) {
// CHECKIT_USER will contain the name of the user that invoked us.
char user_evar... | Set LC_ALL to UTF-8 so that SSH is clean. | Set LC_ALL to UTF-8 so that SSH is clean.
| C | agpl-3.0 | jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt | c | ## Code Before:
int main(int argc, char** argv) {
struct passwd *passwd = getpwuid(getuid());
int errno = setreuid(geteuid(), geteuid());
// errno = execle("/usr/bin/id", (char *) 0, envp);
if (errno == 0 && passwd != 0) {
// CHECKIT_USER will contain the name of the user that invoked us.
... |
int main(int argc, char** argv) {
struct passwd *passwd = getpwuid(getuid());
int errno = setreuid(geteuid(), geteuid());
// errno = execle("/usr/bin/id", (char *) 0, envp);
if (errno == 0 && passwd != 0) {
// CHECKIT_USER will contain the name of the user that invoked us.
... | 1 | 0.034483 | 1 | 0 |
ab5edd504789e8fad3dcf0f30b0fbec8608e2abe | django_nyt/urls.py | django_nyt/urls.py | from __future__ import absolute_import
from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
'', url('^json/get/$', 'django_nyt.views.get_notifications',
name='json_get'), url('^json/get/(?P<latest_id>\d+)/$',
'djan... | from __future__ import absolute_import
from __future__ import unicode_literals
from django import VERSION as DJANGO_VERSION
from django.conf.urls import url
urlpatterns = [
url('^json/get/$', 'django_nyt.views.get_notifications', name='json_get'),
url('^json/get/(?P<latest_id>\d+)/$', 'django_nyt.views.get_no... | Use list instead of patterns() | Use list instead of patterns()
| Python | apache-2.0 | benjaoming/django-nyt,benjaoming/django-nyt | python | ## Code Before:
from __future__ import absolute_import
from __future__ import unicode_literals
from django.conf.urls import patterns, url
urlpatterns = patterns(
'', url('^json/get/$', 'django_nyt.views.get_notifications',
name='json_get'), url('^json/get/(?P<latest_id>\d+)/$',
... | from __future__ import absolute_import
from __future__ import unicode_literals
+ from django import VERSION as DJANGO_VERSION
- from django.conf.urls import patterns, url
? ----------
+ from django.conf.urls import url
- urlpatterns = patterns(
+ urlpatterns = [
- '', url('^j... | 28 | 1.217391 | 16 | 12 |
e7d4e043960c901a7f6eb854284b3ebb3f3f1e70 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
addons:
sauce_connect: true
before_script:
- python RunFlask.py &
script: python test/travis-testcases.py
branches:
only:
- master
| language: python
python:
- "2.7"
env:
global:
- secure: <%= ENV['SauceLogin'] %>
- secure: <%= ENV['SauceAccessKey'] %>
addons:
sauce_connect: true
before_script:
- python RunFlask.py &
script: python test/travis-testcases.py
branches:
only:
- master
| Add Sauce token using env variables | Add Sauce token using env variables
| YAML | mit | harishvc/githubanalytics,harishvc/githubanalytics,harishvc/githubanalytics | yaml | ## Code Before:
language: python
python:
- "2.7"
addons:
sauce_connect: true
before_script:
- python RunFlask.py &
script: python test/travis-testcases.py
branches:
only:
- master
## Instruction:
Add Sauce token using env variables
## Code After:
language: python
python:
- "2.7"
env:
global:
- sec... | language: python
python:
- "2.7"
+ env:
+ global:
+ - secure: <%= ENV['SauceLogin'] %>
+ - secure: <%= ENV['SauceAccessKey'] %>
addons:
sauce_connect: true
before_script:
- python RunFlask.py &
script: python test/travis-testcases.py
branches:
only:
- master | 4 | 0.363636 | 4 | 0 |
04efbd29d2a96d0506c5b83629d51eff3c10833e | src/js/components/Admin/ArticleImages/Row.js | src/js/components/Admin/ArticleImages/Row.js | import React from 'react'
import { inject, observer } from 'mobx-react'
import { IMAGE_BASE_URL } from '../../../constants'
import RedButton from '../../Buttons/Red'
@inject('articleImagesStore')
@observer
export default class Row extends React.Component {
handleDelete() {
let articleImageID = this.props.ima... | import React from 'react'
import { inject, observer } from 'mobx-react'
import { IMAGE_BASE_URL } from '../../../constants'
import RedButton from '../../Buttons/Red'
@inject('articleImagesStore')
@observer
export default class Row extends React.Component {
handleDelete() {
let articleImageID = this.props.ima... | Add original ArticleImage URL to admin panel | Add original ArticleImage URL to admin panel
| JavaScript | mit | appdev-academy/appdev.academy-react,appdev-academy/appdev.academy-react,appdev-academy/appdev.academy-react | javascript | ## Code Before:
import React from 'react'
import { inject, observer } from 'mobx-react'
import { IMAGE_BASE_URL } from '../../../constants'
import RedButton from '../../Buttons/Red'
@inject('articleImagesStore')
@observer
export default class Row extends React.Component {
handleDelete() {
let articleImageID ... | import React from 'react'
import { inject, observer } from 'mobx-react'
import { IMAGE_BASE_URL } from '../../../constants'
import RedButton from '../../Buttons/Red'
@inject('articleImagesStore')
@observer
export default class Row extends React.Component {
handleDelete() {
let article... | 6 | 0.133333 | 4 | 2 |
f062a7e0868ec8918767e32978a83c81c45a0c04 | resolve/urls.js | resolve/urls.js |
'use strict';
var stdin = process.openStdin();
var async = require('async');
var reachableUrl = require('reachable-url')
if (require.main === module) {
main();
} else {
module.exports = resolveUrls;
}
function main() {
stdin.setEncoding('utf8');
stdin.on('data', function(err, data) {
if(err... |
'use strict';
var stdin = process.openStdin();
var async = require('async');
var reachableUrl = require('reachable-url')
if (require.main === module) {
main();
} else {
module.exports = resolveUrls;
}
function main() {
stdin.setEncoding('utf8');
stdin.on('data', function(err, data) {
if(err... | Add a 10s timeout to reachable-url | chore: Add a 10s timeout to reachable-url
| JavaScript | mit | bebraw/blog-utils | javascript | ## Code Before:
'use strict';
var stdin = process.openStdin();
var async = require('async');
var reachableUrl = require('reachable-url')
if (require.main === module) {
main();
} else {
module.exports = resolveUrls;
}
function main() {
stdin.setEncoding('utf8');
stdin.on('data', function(err, data) ... |
'use strict';
var stdin = process.openStdin();
var async = require('async');
var reachableUrl = require('reachable-url')
if (require.main === module) {
main();
} else {
module.exports = resolveUrls;
}
function main() {
stdin.setEncoding('utf8');
stdin.on('data', fu... | 2 | 0.041667 | 1 | 1 |
3c600608d3ebbae13738ee6b7361f5ef52a734e5 | tests/cases/fourslash/completionEntryForImportName.ts | tests/cases/fourslash/completionEntryForImportName.ts | ///<reference path="fourslash.ts" />
////import /*1*/q = /*2*/
verifyIncompleteImport();
goTo.marker('2');
edit.insert("a.");
verifyIncompleteImport();
function verifyIncompleteImport() {
goTo.marker('1');
verify.completionListIsEmpty();
verify.quickInfoIs("import q");
} | ///<reference path="fourslash.ts" />
////import /*1*/ /*2*/
goTo.marker('1');
verify.completionListIsEmpty();
edit.insert('q');
verify.completionListIsEmpty();
verifyIncompleteImportName();
goTo.marker('2');
edit.insert(" = ");
verifyIncompleteImportName();
goTo.marker("2");
edit.moveRight(" = ".leng... | Test now covers completion entry at name of the import when there is no name and there is name | Test now covers completion entry at name of the import when there is no name and there is name
| TypeScript | apache-2.0 | Raynos/TypeScript,ionux/TypeScript,donaldpipowitch/TypeScript,synaptek/TypeScript,msynk/TypeScript,yortus/TypeScript,blakeembrey/TypeScript,mcanthony/TypeScript,nycdotnet/TypeScript,MartyIX/TypeScript,Microsoft/TypeScript,hoanhtien/TypeScript,Mqgh2013/TypeScript,vilic/TypeScript,RyanCavanaugh/TypeScript,jwbay/TypeScrip... | typescript | ## Code Before:
///<reference path="fourslash.ts" />
////import /*1*/q = /*2*/
verifyIncompleteImport();
goTo.marker('2');
edit.insert("a.");
verifyIncompleteImport();
function verifyIncompleteImport() {
goTo.marker('1');
verify.completionListIsEmpty();
verify.quickInfoIs("import q");
}
## Instruction:
T... | ///<reference path="fourslash.ts" />
- ////import /*1*/q = /*2*/
? ---
+ ////import /*1*/ /*2*/
+ goTo.marker('1');
+ verify.completionListIsEmpty();
+ edit.insert('q');
+ verify.completionListIsEmpty();
- verifyIncompleteImport();
+ verifyIncompleteImportName();
? ++++
+... | 18 | 1.285714 | 14 | 4 |
8bdccafe644410fd1cedaed92f27418774163e3a | starter-kit/composer.json | starter-kit/composer.json | {
"name": "example/hello-world",
"description": "Starter Kit application for MCP Panthor",
"autoload": {
"psr-4": { "ExampleApplication\\": "src" }
},
"require": {
"php": "~7.1",
"ext-sodium": "~2.0 || ~7.2",
"ql/mcp-panthor": "dev-master",
"ql/mcp-common":... | {
"name": "example/hello-world",
"description": "Starter Kit application for MCP Panthor",
"autoload": {
"psr-4": { "ExampleApplication\\": "src" }
},
"require": {
"php": "~7.1",
"ext-sodium": "~2.0 || ~7.2",
"ql/mcp-panthor": "~3.3",
"ql/mcp-common": "~2.... | Update starter kit to new version 3.3 | Update starter kit to new version 3.3
| JSON | mit | quickenloans-mcp/mcp-panthor,quickenloans-mcp/mcp-panthor | json | ## Code Before:
{
"name": "example/hello-world",
"description": "Starter Kit application for MCP Panthor",
"autoload": {
"psr-4": { "ExampleApplication\\": "src" }
},
"require": {
"php": "~7.1",
"ext-sodium": "~2.0 || ~7.2",
"ql/mcp-panthor": "dev-master",
... | {
"name": "example/hello-world",
"description": "Starter Kit application for MCP Panthor",
"autoload": {
"psr-4": { "ExampleApplication\\": "src" }
},
"require": {
"php": "~7.1",
"ext-sodium": "~2.0 || ~7.2",
- "ql/mcp-panthor": "dev-master"... | 2 | 0.074074 | 1 | 1 |
728c8f4d336c992f5e441bb50e96702d618265ae | index.html | index.html | ---
layout: archive
author_profile: false
---
{% include base_path %}
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts }}</h3>
{% for post in paginator.posts %}
{% include archive-single.html %}
{% endfor %}
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }... | ---
layout: archive
author_profile: false
---
{% include base_path %}
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts }}</h3>
{% for post in paginator.posts %}
{% include archive-single.html %}
{% endfor %}
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }... | Change spacing of tags (as test) | Change spacing of tags (as test)
| HTML | mit | jengalas/thegourmetmoose,jengalas/thegourmetmoose,jengalas/thegourmetmoose | html | ## Code Before:
---
layout: archive
author_profile: false
---
{% include base_path %}
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts }}</h3>
{% for post in paginator.posts %}
{% include archive-single.html %}
{% endfor %}
{% capture site_tags %}{% for tag in site.tags %}{{ tag | firs... | ---
layout: archive
author_profile: false
---
{% include base_path %}
<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts }}</h3>
{% for post in paginator.posts %}
{% include archive-single.html %}
{% endfor %}
{% capture site_tags %}{% for tag in site.tags %}{... | 1 | 0.055556 | 1 | 0 |
555bf94cec62caf9f4f87e1bbd84e496e7acc2d8 | app/assets/javascripts/controllers/submissions.js.coffee | app/assets/javascripts/controllers/submissions.js.coffee | window.App.pendingUploads = 0;
window.App.successfulUploads = [];
$ ->
fetch_tree_for_path = (url) ->
alert("Fetching!")
success = (data) -> $("#tree-view").html(data)
$.get url, null, success, 'html'
$("#tree-view").on("click",
"#tree-view td.node a",
() -> fetch_tree_for_path($(this).dat... | window.App.pendingUploads = 0;
window.App.successfulUploads = [];
$ ->
# Fetches the tree for the given url and places it in the treeview
fetch_tree_for_path = (url) ->
internal_fetch = (url) ->
$("#tree-view").html("Loading...")
success = (data) -> $("#tree-view").html(data)
$.get url, ... | Add event handling, prevent default behaviour of anchor tags | Add event handling, prevent default behaviour of anchor tags
| CoffeeScript | agpl-3.0 | water/mainline,water/mainline,water/mainline | coffeescript | ## Code Before:
window.App.pendingUploads = 0;
window.App.successfulUploads = [];
$ ->
fetch_tree_for_path = (url) ->
alert("Fetching!")
success = (data) -> $("#tree-view").html(data)
$.get url, null, success, 'html'
$("#tree-view").on("click",
"#tree-view td.node a",
() -> fetch_tree_for_... | window.App.pendingUploads = 0;
window.App.successfulUploads = [];
$ ->
+ # Fetches the tree for the given url and places it in the treeview
fetch_tree_for_path = (url) ->
- alert("Fetching!")
+ internal_fetch = (url) ->
+ $("#tree-view").html("Loading...")
- success = (data) -> $("... | 22 | 1 | 18 | 4 |
f961b7958e52016428baf8b360411e75e896f23f | update.php | update.php | <?php
// Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Run this command every minute through a cron-tab to enable auto-deploy of
// Sonium. It builds upon the auto-deploy mechanism included... | <?php
// Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Run this command every minute through a cron-tab to enable auto-deploy of
// Sonium. It builds upon the auto-deploy mechanism included... | Update composer when pulling in a new version | Update composer when pulling in a new version
| PHP | mit | LVPlayground/bot-sonium | php | ## Code Before:
<?php
// Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Run this command every minute through a cron-tab to enable auto-deploy of
// Sonium. It builds upon the auto-deploy me... | <?php
// Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Run this command every minute through a cron-tab to enable auto-deploy of
// Sonium. It builds upon the auto-deploy mech... | 1 | 0.035714 | 1 | 0 |
5e2e0ec70234b9424a96cd5453bfd191b457bf9d | index.js | index.js | var fs = require('fs')
, spawn = require('child_process').spawn
module.exports = function(command) {
var homePath = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE
fs.readFile(homePath+'/.ssh/config', 'utf8', function(err, data) {
if (err) process.exit()
var pattern = new RegExp... | var fs = require('fs')
, spawn = require('child_process').spawn
module.exports = function(command) {
var homePath = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE
fs.readFile(homePath+'/.ssh/config', 'utf8', function(err, data) {
if (err) process.exit()
var pattern = new RegExp... | Replace first command not found with node | Replace first command not found with node
| JavaScript | mit | romainberger/127-ssh | javascript | ## Code Before:
var fs = require('fs')
, spawn = require('child_process').spawn
module.exports = function(command) {
var homePath = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE
fs.readFile(homePath+'/.ssh/config', 'utf8', function(err, data) {
if (err) process.exit()
var patte... | var fs = require('fs')
, spawn = require('child_process').spawn
module.exports = function(command) {
var homePath = process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE
fs.readFile(homePath+'/.ssh/config', 'utf8', function(err, data) {
if (err) process.exit()
var p... | 1 | 0.055556 | 1 | 0 |
9103a5ccd8dd73f113c62aaba04b236599fdffc4 | src/static/index.js | src/static/index.js | // Javasctipt file for index.html
// sub-nav toggle
// Toggle contents by clicking #sub-nav
$(function (){
var subMenuChild = $('#sub-nav').children();
for (i = 0; i < subMenuChild.length; i++) {
var item = $(subMenuChild[i]);
item.on('click', function( event ) {
event.preventDefault();
// Rem... | // Javasctipt file for index.html
// sub-nav toggle
// Toggle contents by clicking #sub-nav
$(function (){
var subMenuChild = $('#sub-nav').children();
for (i = 0; i < subMenuChild.length; i++) {
var item = $(subMenuChild[i]);
item.on('click', function( event ) {
event.preventDefault();
if ( $... | Fix clicking activated sub-menu will hide context | Fix clicking activated sub-menu will hide context
| JavaScript | mit | Holi0317/sms-alumni-webpage,Holi0317/sms-alumni-webpage | javascript | ## Code Before:
// Javasctipt file for index.html
// sub-nav toggle
// Toggle contents by clicking #sub-nav
$(function (){
var subMenuChild = $('#sub-nav').children();
for (i = 0; i < subMenuChild.length; i++) {
var item = $(subMenuChild[i]);
item.on('click', function( event ) {
event.preventDefault... | // Javasctipt file for index.html
// sub-nav toggle
// Toggle contents by clicking #sub-nav
$(function (){
var subMenuChild = $('#sub-nav').children();
for (i = 0; i < subMenuChild.length; i++) {
var item = $(subMenuChild[i]);
item.on('click', function( event ) {
event.preventD... | 7 | 0.333333 | 6 | 1 |
90e0cf5c23b14a96c5ffbe28e68b6e0ada7f389c | docker-util/run_tests.sh | docker-util/run_tests.sh |
echo "Info for runtime config of tests in $(pwd)"
echo "Bash at $(which bash)"
echo "Maven at $(which mvn) with config $(mvn -version)"
echo "Preparing test coverage reporting"
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
ech... |
echo "Info for runtime config of tests in $(pwd)"
echo "Bash at $(which bash)"
echo "Maven at $(which mvn) with config $(mvn -version)"
echo "Preparing test coverage reporting"
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
ech... | Move to EasyFXML lib folder at the end of build to trigger coverage reports properly | Move to EasyFXML lib folder at the end of build to trigger coverage reports properly
| Shell | apache-2.0 | Tristan971/EasyFXML,Tristan971/EasyFXML | shell | ## Code Before:
echo "Info for runtime config of tests in $(pwd)"
echo "Bash at $(which bash)"
echo "Maven at $(which mvn) with config $(mvn -version)"
echo "Preparing test coverage reporting"
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-t... |
echo "Info for runtime config of tests in $(pwd)"
echo "Bash at $(which bash)"
echo "Maven at $(which mvn) with config $(mvn -version)"
echo "Preparing test coverage reporting"
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-t... | 3 | 0.111111 | 3 | 0 |
81fdd387737d25ccca7e6628497268f4e2a2415a | src/components/home/Ventures/index.module.css | src/components/home/Ventures/index.module.css | .root {
padding: 56px 20px 168px;
}
.content {
display: grid;
grid-row-gap: 56px;
max-width: 1184px;
margin-right: auto;
margin-left: auto;
}
.section {
display: grid;
grid-row-gap: 28px;
}
@media (min-width: 768px) {
.root {
padding: 112px 28px 224px;
}
.content {
grid-template-column... | .root {
padding: 56px 20px 168px;
}
.content {
display: grid;
grid-row-gap: 56px;
max-width: 1184px;
margin-right: auto;
margin-left: auto;
}
.section {
display: grid;
grid-row-gap: 28px;
}
.footer {
padding-top: 112px;
}
@media (min-width: 768px) {
.root {
padding: 112px 28px 224px;
}
... | Fix ventures section footer top spacing | Fix ventures section footer top spacing
| CSS | mit | subvisual/subvisual.co,subvisual/subvisual.co | css | ## Code Before:
.root {
padding: 56px 20px 168px;
}
.content {
display: grid;
grid-row-gap: 56px;
max-width: 1184px;
margin-right: auto;
margin-left: auto;
}
.section {
display: grid;
grid-row-gap: 28px;
}
@media (min-width: 768px) {
.root {
padding: 112px 28px 224px;
}
.content {
grid... | .root {
padding: 56px 20px 168px;
}
.content {
display: grid;
grid-row-gap: 56px;
max-width: 1184px;
margin-right: auto;
margin-left: auto;
}
.section {
display: grid;
grid-row-gap: 28px;
+ }
+
+ .footer {
+ padding-top: 112px;
}
@media (min-width: 768px) {
... | 4 | 0.068966 | 4 | 0 |
cddcd2cb1389da8fbcf7d285941f8076e427b3dd | command.php | command.php | <?php
if ( !defined( 'WP_CLI' ) ) return;
require_once 'src/ViewOne/Environment.php';
global $argv;
$env = $argv[1];
$config = array();
$config_path = getenv( 'HOME' ) . '/.wp-cli/config.yml';
if ( is_readable( $config_path ) ){
$configurator = \WP_CLI::get_configurator();
$configurator->merge_yml( $co... | <?php
if ( !defined( 'WP_CLI' ) ) return;
global $argv;
$env = $argv[1];
$config = array();
$config_path = getenv( 'HOME' ) . '/.wp-cli/config.yml';
if ( is_readable( $config_path ) ){
$configurator = \WP_CLI::get_configurator();
$configurator->merge_yml( $config_path );
list( $config, $extra_config... | Revert "Add require for global installation" | Revert "Add require for global installation"
This reverts commit 586d35539e88ce7ade09c8b38ae501e3b81c74d7.
| PHP | mit | phillprice/wp-cli-environment,viewone/wp-cli-environment,phillprice/wp-cli-environment,phillprice/wp-cli-environment,viewone/wp-cli-environment | php | ## Code Before:
<?php
if ( !defined( 'WP_CLI' ) ) return;
require_once 'src/ViewOne/Environment.php';
global $argv;
$env = $argv[1];
$config = array();
$config_path = getenv( 'HOME' ) . '/.wp-cli/config.yml';
if ( is_readable( $config_path ) ){
$configurator = \WP_CLI::get_configurator();
$configurator... | <?php
if ( !defined( 'WP_CLI' ) ) return;
-
- require_once 'src/ViewOne/Environment.php';
global $argv;
$env = $argv[1];
$config = array();
$config_path = getenv( 'HOME' ) . '/.wp-cli/config.yml';
if ( is_readable( $config_path ) ){
$configurator = \WP_CLI::get_configurator();
... | 2 | 0.047619 | 0 | 2 |
d79f294856943a6729244fd4ff7652f70d4a09ae | lib/linux_admin/registration_system.rb | lib/linux_admin/registration_system.rb | class LinuxAdmin
class RegistrationSystem < LinuxAdmin
def self.registration_type(reload = false)
return @registration_type if @registration_type && !reload
@registration_type = registration_type_uncached
end
def self.method_missing(meth, *args, &block)
if white_list_methods.include?(me... | class LinuxAdmin
class RegistrationSystem < LinuxAdmin
def self.registration_type(reload = false)
return @registration_type if @registration_type && !reload
@registration_type = registration_type_uncached
end
def self.method_missing(meth, *args, &block)
if white_list_methods.include?(me... | Check if registered to RHN first to avoid false positives on SM | Check if registered to RHN first to avoid false positives on SM
| Ruby | mit | ManageIQ/linux_admin,jrafanie/linux_admin,carbonin/linux_admin,kbrock/linux_admin | ruby | ## Code Before:
class LinuxAdmin
class RegistrationSystem < LinuxAdmin
def self.registration_type(reload = false)
return @registration_type if @registration_type && !reload
@registration_type = registration_type_uncached
end
def self.method_missing(meth, *args, &block)
if white_list_met... | class LinuxAdmin
class RegistrationSystem < LinuxAdmin
def self.registration_type(reload = false)
return @registration_type if @registration_type && !reload
@registration_type = registration_type_uncached
end
def self.method_missing(meth, *args, &block)
if white_list_m... | 6 | 0.133333 | 3 | 3 |
1eee5783b98e5ea36f06b6a89cb4ee256ae9ba36 | releasenotes/source/ocata.rst | releasenotes/source/ocata.rst | ===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~~~~~~~~~~~~~~~~~... | ===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Administrator Guide
~~~~~~~~~~~~~~~~~~~
* Removed le... | Add in User Guides Release Notes for Ocata. | Add in User Guides Release Notes for Ocata.
Release notes for both Admin and User Guides.
Change-Id: Ieba7d8631dd0fd8fde10a42ad42369dfea354030
| reStructuredText | apache-2.0 | openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals | restructuredtext | ## Code Before:
===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~... | ===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
+
+ Administrator Guide
+ ~~~~~~~~~~~~~... | 24 | 0.705882 | 24 | 0 |
08df5c9276e2677e67d89c573b7d015d976b4758 | metadata/com.ml.proximitysensorfix.yml | metadata/com.ml.proximitysensorfix.yml | Categories:
- System
- Phone & SMS
License: GPL-3.0-or-later
AuthorName: Marco Lettieri
AuthorEmail: m.lettieri@microbees.com
AuthorWebSite: https://www.microbees.com/
SourceCode: https://github.com/marcolettieri/proximitycallfix
IssueTracker: https://github.com/marcolettieri/proximitycallfix/issues
AutoName: Prox... | Categories:
- System
- Phone & SMS
License: GPL-3.0-or-later
AuthorName: Marco Lettieri
AuthorEmail: m.lettieri@microbees.com
AuthorWebSite: https://www.microbees.com/
SourceCode: https://github.com/marcolettieri/proximitycallfix
IssueTracker: https://github.com/marcolettieri/proximitycallfix/issues
AutoName: Prox... | Update ProximitySensorFix to 1.0.5 (27) | Update ProximitySensorFix to 1.0.5 (27)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- System
- Phone & SMS
License: GPL-3.0-or-later
AuthorName: Marco Lettieri
AuthorEmail: m.lettieri@microbees.com
AuthorWebSite: https://www.microbees.com/
SourceCode: https://github.com/marcolettieri/proximitycallfix
IssueTracker: https://github.com/marcolettieri/proximitycallfix/issues... | Categories:
- System
- Phone & SMS
License: GPL-3.0-or-later
AuthorName: Marco Lettieri
AuthorEmail: m.lettieri@microbees.com
AuthorWebSite: https://www.microbees.com/
SourceCode: https://github.com/marcolettieri/proximitycallfix
IssueTracker: https://github.com/marcolettieri/proximitycallfix/issu... | 11 | 0.407407 | 9 | 2 |
edc3bbe603682c3fb15e12e2799f4a6e69b86b9e | extensions/markdown-language-features/src/features/documentSymbolProvider.ts | extensions/markdown-language-features/src/features/documentSymbolProvider.ts | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | Use string symbol kind for markdown symbols | Use string symbol kind for markdown symbols
| TypeScript | mit | mjbvz/vscode,the-ress/vscode,eamodio/vscode,cleidigh/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,microlv/vscode,microlv/vscode,microlv/vscode,microsoft/vscode,the-ress/vscode,rishii7/vscode,cleidigh/vscode,Microsoft/vscode,joaomoreno/vscode,hoovercj/vscode,hoovercj/vscode,hoovercj/vscode,hoovercj/vscode,0x... | typescript | ## Code Before:
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-----------------------------------------------... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------------... | 4 | 0.173913 | 2 | 2 |
7484a3027d4021f46520aeac04e83a50b850a400 | _data/components/percentInput.yml | _data/components/percentInput.yml | directive : "o-percent-input"
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/overview/api",
attributes: ["attr", "label", "tooltip", "tooltip-position", "tooltip-show-delay", "automatic-binding", "automatic-registering", "data", "enabled", "required", "clear-button", "sql-type", ... | directive : "o-percent-input"
attributes: [{
name: "value-base",
type: "1 | 100",
default: "1",
required: "",
description: "Indicates whether de numeral system of the value received is 1 or 100"
}]
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/overview/api",
attribute... | Add `value-base` attribute to `o-percent-input` docs | Add `value-base` attribute to `o-percent-input` docs
| YAML | mit | OntimizeWeb/docs,OntimizeWeb/docs,OntimizeWeb/docs,OntimizeWeb/docs | yaml | ## Code Before:
directive : "o-percent-input"
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/overview/api",
attributes: ["attr", "label", "tooltip", "tooltip-position", "tooltip-show-delay", "automatic-binding", "automatic-registering", "data", "enabled", "required", "clear-butto... | directive : "o-percent-input"
+
+ attributes: [{
+ name: "value-base",
+ type: "1 | 100",
+ default: "1",
+ required: "",
+ description: "Indicates whether de numeral system of the value received is 1 or 100"
+ }]
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/... | 8 | 0.296296 | 8 | 0 |
aa82189d0b21395d165f515a93a9fb9517c4beb9 | mbc-logging-processor/tests/MBC_LoggingProcessorTest.php | mbc-logging-processor/tests/MBC_LoggingProcessorTest.php | <?php
use DoSomething\MBC_LoggingGateway\MBC_LoggingGateway;
// Including that file will also return the autoloader instance, so you can store
// the return value of the include call in a variable and add more namespaces.
// This can be useful for autoloading classes in a test suite, for example.
// https://g... | <?php
use DoSomething\MBC_LoggingGateway\MBC_LoggingGateway;
// Including that file will also return the autoloader instance, so you can store
// the return value of the include call in a variable and add more namespaces.
// This can be useful for autoloading classes in a test suite, for example.
// https://g... | Adjust test to be specific to mbc-logging-processor | Adjust test to be specific to mbc-logging-processor
| PHP | mit | DoSomething/messagebroker-ds-PHP,DoSomething/MessageBroker-PHP,DoSomething/messagebroker-ds-PHP,DoSomething/MessageBroker-PHP | php | ## Code Before:
<?php
use DoSomething\MBC_LoggingGateway\MBC_LoggingGateway;
// Including that file will also return the autoloader instance, so you can store
// the return value of the include call in a variable and add more namespaces.
// This can be useful for autoloading classes in a test suite, for example... | <?php
use DoSomething\MBC_LoggingGateway\MBC_LoggingGateway;
// Including that file will also return the autoloader instance, so you can store
// the return value of the include call in a variable and add more namespaces.
// This can be useful for autoloading classes in a test suite, for example.
... | 14 | 0.368421 | 4 | 10 |
677df74bd47dc878e59c1c9ea01bf24fc81ce108 | packages/size-limit/README.md | packages/size-limit/README.md |
Core tool for [Size Limit] to load config and plugins.
See Size Limit docs for more details.
[Size Limit]: https://github.com/ai/size-limit/
<a href="https://evilmartians.com/?utm_source=size-limit">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
alt="Sponsored by Evil Martians" ... |
<img src="https://ai.github.io/size-limit/logo.svg" align="right"
alt="Size Limit logo by Anton Lovchikov" width="120" height="178">
Size Limit is a performance budget tool for JavaScript. It checks every commit
on CI, calculates the real cost of your JS for end-users and throws an error
if the cost exceeds the ... | Improve size-limit npm package docs | Improve size-limit npm package docs
| Markdown | mit | ai/size-limit,ai/size-limit | markdown | ## Code Before:
Core tool for [Size Limit] to load config and plugins.
See Size Limit docs for more details.
[Size Limit]: https://github.com/ai/size-limit/
<a href="https://evilmartians.com/?utm_source=size-limit">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
alt="Sponsored by... |
- Core tool for [Size Limit] to load config and plugins.
+ <img src="https://ai.github.io/size-limit/logo.svg" align="right"
+ alt="Size Limit logo by Anton Lovchikov" width="120" height="178">
- See Size Limit docs for more details.
+ Size Limit is a performance budget tool for JavaScript. It checks every c... | 34 | 3.090909 | 27 | 7 |
6e1f372b2be12037bffa492f74f7310d95ba35cb | .travis.yml | .travis.yml | sudo: required
services:
- docker
language: go
env:
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-docker ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb:latest
- TEST_SUITE=run-tests-docker ARANGODB=arangodb/arangodb:la... | sudo: required
services:
- docker
language: go
env:
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-docker ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb:latest
- TEST_SUITE=run-tests-docker ARANGODB=arangodb/arangodb:la... | Allow for failures in 3.1 because of startup issues under load | Allow for failures in 3.1 because of startup issues under load
| YAML | apache-2.0 | arangodb-helper/arangodb,arangodb-helper/arangodb | yaml | ## Code Before:
sudo: required
services:
- docker
language: go
env:
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-docker ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb:latest
- TEST_SUITE=run-tests-docker ARANGODB=aran... | sudo: required
services:
- docker
language: go
env:
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-docker ARANGODB=arangodb:3.1
- TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb:latest
- TEST_SUITE=run-tests-docker ARANG... | 6 | 0.26087 | 6 | 0 |
b12e902b51f5ed836d33319326949568f9d61415 | lib/praxis/tasks/api_docs.rb | lib/praxis/tasks/api_docs.rb | namespace :praxis do
desc "Generate API docs (JSON definitions) for a Praxis App"
task :api_docs => [:environment] do |t, args|
require 'fileutils'
Praxis::Blueprint.caching_enabled = false
generator = Praxis::RestfulDocGenerator.new(Dir.pwd)
end
desc "API Documenation Browser"
desc "API Documen... | namespace :praxis do
desc "Generate API docs (JSON definitions) for a Praxis App"
task :api_docs => [:environment] do |t, args|
require 'fileutils'
Praxis::Blueprint.caching_enabled = false
generator = Praxis::RestfulDocGenerator.new(Dir.pwd)
end
desc "API Documentation Browser"
task :doc_browse... | Add 'port' argument to doc_browser rake task. | Add 'port' argument to doc_browser rake task.
Closes #75
| Ruby | mit | justingaylor/praxis,praxis/praxis,Thann/praxis,gampleman/praxis,rightscale/praxis,Thann/praxis,blanquer/praxis,blanquer/praxis,Thann/praxis,smcgivern/praxis,rightscale/praxis,gampleman/praxis,rightscale/praxis,tony-spataro-rs/praxis,smcgivern/praxis,justingaylor/praxis,tony-spataro-rs/praxis,gampleman/praxis,smcgivern/... | ruby | ## Code Before:
namespace :praxis do
desc "Generate API docs (JSON definitions) for a Praxis App"
task :api_docs => [:environment] do |t, args|
require 'fileutils'
Praxis::Blueprint.caching_enabled = false
generator = Praxis::RestfulDocGenerator.new(Dir.pwd)
end
desc "API Documenation Browser"
d... | namespace :praxis do
desc "Generate API docs (JSON definitions) for a Praxis App"
task :api_docs => [:environment] do |t, args|
require 'fileutils'
Praxis::Blueprint.caching_enabled = false
generator = Praxis::RestfulDocGenerator.new(Dir.pwd)
end
- desc "API Documenation Browser"... | 7 | 0.259259 | 4 | 3 |
2608d6eb43912628f362bfaeab871cd0878a449e | javascript30/01-drum-kit/main.js | javascript30/01-drum-kit/main.js | window.addEventListener('keydown', function(e) {
let audio = document.querySelector(`audio[data-key='${e.keyCode}']`)
let key = document.querySelector(`.key[data-key='${e.keyCode}']`)
if (!audio) return
audio.currentTime = 0
audio.play()
key.classList.add('playing')
}) | window.addEventListener('keydown', function(e) {
let audio = document.querySelector(`audio[data-key='${e.keyCode}']`)
let key = document.querySelector(`.key[data-key='${e.keyCode}']`)
if (!audio) return
audio.currentTime = 0
audio.play()
key.classList.add('playing')
})
function removeTransition(e) {
if (e.... | Add transitionend event to remove playing class | Add transitionend event to remove playing class
| JavaScript | mit | stivaliserna/scripts,stivaliserna/scripts | javascript | ## Code Before:
window.addEventListener('keydown', function(e) {
let audio = document.querySelector(`audio[data-key='${e.keyCode}']`)
let key = document.querySelector(`.key[data-key='${e.keyCode}']`)
if (!audio) return
audio.currentTime = 0
audio.play()
key.classList.add('playing')
})
## Instruction:
Add tran... | window.addEventListener('keydown', function(e) {
let audio = document.querySelector(`audio[data-key='${e.keyCode}']`)
let key = document.querySelector(`.key[data-key='${e.keyCode}']`)
if (!audio) return
audio.currentTime = 0
audio.play()
key.classList.add('playing')
})
+
+ function removeTran... | 8 | 1 | 8 | 0 |
828215d3de3ddd2febdd190de067b0f6e5c2e9e1 | query/migrations/0017_auto_20160224_1306.py | query/migrations/0017_auto_20160224_1306.py | from __future__ import unicode_literals
from django.db import models, migrations
from query.operations import engine_specific
class Migration(migrations.Migration):
dependencies = [
('query', '0016_auto_20160203_1324'),
]
operations = [
engine_specific(('mysql',),
migration... | from __future__ import unicode_literals
from django.db import models, migrations
from query.operations import engine_specific
class Migration(migrations.Migration):
dependencies = [
('query', '0016_auto_20160203_1324'),
]
operations = [
engine_specific(('mysql',),
migration... | Use named arguments for RunSQL | Use named arguments for RunSQL
| Python | apache-2.0 | UUDigitalHumanitieslab/texcavator,UUDigitalHumanitieslab/texcavator,UUDigitalHumanitieslab/texcavator | python | ## Code Before:
from __future__ import unicode_literals
from django.db import models, migrations
from query.operations import engine_specific
class Migration(migrations.Migration):
dependencies = [
('query', '0016_auto_20160203_1324'),
]
operations = [
engine_specific(('mysql',),
... | from __future__ import unicode_literals
from django.db import models, migrations
from query.operations import engine_specific
class Migration(migrations.Migration):
dependencies = [
('query', '0016_auto_20160203_1324'),
]
operations = [
engine_specific(('m... | 4 | 0.190476 | 2 | 2 |
2cebf5c5a5d0c42f9f522ec7b5b5e40b3dcd0824 | app/models/mesh_term.rb | app/models/mesh_term.rb | class MeshTerm < ActiveRecord::Base
def self.populate_from_file(data=ClinicalTrials::FileManager.default_mesh_terms)
puts "about to populate table of mesh terms..."
data.each_line{|line|
line_array=line.split(' ')
tree=line_array.first
qualifier=tree.split('.').first
desc=line_array[1]... | class MeshTerm < ActiveRecord::Base
def self.populate_from_file(file_name=ClinicalTrials::FileManager.default_mesh_terms)
puts "about to populate table of mesh terms..."
File.open(file_name).each_line{|line|
line_array=line.split(' ')
tree=line_array.first
qualifier=tree.split('.').first
... | Fix bug in MeshTerm - if the term was more than one word, it was only getting the last word and saving that to the table. Changed it so that it saves the entire term. | aact-348: Fix bug in MeshTerm - if the term was more than one word, it was only getting the last word and saving that to the table. Changed it so that it saves the entire term. | Ruby | mit | tibbs001/aact-1,ctti-clinicaltrials/aact,ctti-clinicaltrials/aact,tibbs001/aact-1,ctti-clinicaltrials/aact,tibbs001/aact-1 | ruby | ## Code Before:
class MeshTerm < ActiveRecord::Base
def self.populate_from_file(data=ClinicalTrials::FileManager.default_mesh_terms)
puts "about to populate table of mesh terms..."
data.each_line{|line|
line_array=line.split(' ')
tree=line_array.first
qualifier=tree.split('.').first
de... | class MeshTerm < ActiveRecord::Base
- def self.populate_from_file(data=ClinicalTrials::FileManager.default_mesh_terms)
? ^ ^^
+ def self.populate_from_file(file_name=ClinicalTrials::FileManager.default_mesh_terms)
? ^^^^^^ ^^
puts "about to popul... | 6 | 0.315789 | 3 | 3 |
497d92f27b6e960f43fa0d0a4fa7bb9af1012607 | spec/pidgin2adium/tag_balancer_spec.rb | spec/pidgin2adium/tag_balancer_spec.rb | describe Pidgin2Adium::TagBalancer do
describe "text without tags" do
it "should be left untouched" do
text = "Foo bar baz, this is my excellent test text!"
Pidgin2Adium::TagBalancer.new(text).balance.should == text
end
end
describe "text with tags" do
it "should be balanced correctly" do... | describe Pidgin2Adium::TagBalancer do
describe 'text without tags' do
it 'is left untouched' do
text = 'foo!'
Pidgin2Adium::TagBalancer.new(text).balance.should == text
end
end
describe 'text with tags' do
it 'is balanced correctly' do
unbalanced = '<p><b>this is unbalanced!'
... | Remove shoulds from test descriptions | Remove shoulds from test descriptions
| Ruby | mit | gabebw/pidgin2adium,gabebw/pipio,gabebw/pidgin2adium | ruby | ## Code Before:
describe Pidgin2Adium::TagBalancer do
describe "text without tags" do
it "should be left untouched" do
text = "Foo bar baz, this is my excellent test text!"
Pidgin2Adium::TagBalancer.new(text).balance.should == text
end
end
describe "text with tags" do
it "should be balanc... | describe Pidgin2Adium::TagBalancer do
- describe "text without tags" do
? ^ ^
+ describe 'text without tags' do
? ^ ^
- it "should be left untouched" do
? ^ -------- ^
+ it 'is left untouched' do
? ^^ ^
- ... | 12 | 0.75 | 6 | 6 |
48aeee69053d73941ed3eafecbc389448fc35339 | Casks/diskmaker-x.rb | Casks/diskmaker-x.rb | cask 'diskmaker-x' do
version :latest
sha256 :no_check
url 'http://diskmakerx.com/downloads/DiskMaker_X.dmg'
name 'DiskMaker X'
homepage 'http://diskmakerx.com/'
license :gratis
app 'DiskMaker X 5.app'
end
| cask 'diskmaker-x' do
version '5.0.3'
sha256 '040a21bdef0c2682c518a9e9572f7547b5f1fb02b8930a8a084ae85b12e70518'
url "http://diskmakerx.com/downloads/DiskMaker_X_#{version.no_dots}.dmg"
appcast 'http://diskmakerx.com/feed/',
checkpoint: '65c41b1c32cf72f4cccd0f467d903ed768dedc407936bf1a64ec90764deb7da1... | Update Diskmaker X to v5.0.3 | Update Diskmaker X to v5.0.3
Turns Diskmaker X back into a versioned cask. The author of Diskmaker reached out to us and has re-uploaded the versioned downloads for us to use. Thanks @diskmakerx!
For more information about this commit please check the discussion related to the versioning of Diskmaker in this pull requ... | Ruby | bsd-2-clause | Saklad5/homebrew-cask,lantrix/homebrew-cask,samdoran/homebrew-cask,FinalDes/homebrew-cask,Gasol/homebrew-cask,sgnh/homebrew-cask,decrement/homebrew-cask,chadcatlett/caskroom-homebrew-cask,squid314/homebrew-cask,jedahan/homebrew-cask,howie/homebrew-cask,hovancik/homebrew-cask,howie/homebrew-cask,hristozov/homebrew-cask,... | ruby | ## Code Before:
cask 'diskmaker-x' do
version :latest
sha256 :no_check
url 'http://diskmakerx.com/downloads/DiskMaker_X.dmg'
name 'DiskMaker X'
homepage 'http://diskmakerx.com/'
license :gratis
app 'DiskMaker X 5.app'
end
## Instruction:
Update Diskmaker X to v5.0.3
Turns Diskmaker X back into a versi... | cask 'diskmaker-x' do
- version :latest
- sha256 :no_check
+ version '5.0.3'
+ sha256 '040a21bdef0c2682c518a9e9572f7547b5f1fb02b8930a8a084ae85b12e70518'
- url 'http://diskmakerx.com/downloads/DiskMaker_X.dmg'
? ^ ^
+ url "http://diskmakerx.com/downlo... | 10 | 0.909091 | 6 | 4 |
8f9c6f062ee9e0046cc799014b74a64102b73bfc | src/enfa_graph.cpp | src/enfa_graph.cpp |
namespace tinygrep {
namespace enfa {
std::string EpsilonNFA::to_graph() const {
return "";
}
} // namespace enfa
} // namespace tinygrep
|
namespace tinygrep {
namespace enfa {
// The default scale of a generated graph.
const unsigned int DEFAULT_PNG_SIZE = 10;
const std::string LABEL_BEGIN = " [label=\"",
LABEL_END = "\"]",
EDGE_ARROW = " -> ",
STATE_PREFIX = "q",
ENDLIN... | Complete function for parsing epsilon-NFA -> .gv file. | Complete function for parsing epsilon-NFA -> .gv file.
| C++ | mit | grawies/tiny-grep,samuelz/tiny-grep | c++ | ## Code Before:
namespace tinygrep {
namespace enfa {
std::string EpsilonNFA::to_graph() const {
return "";
}
} // namespace enfa
} // namespace tinygrep
## Instruction:
Complete function for parsing epsilon-NFA -> .gv file.
## Code After:
namespace tinygrep {
namespace enfa {
// The default scale of a ge... |
namespace tinygrep {
namespace enfa {
+ // The default scale of a generated graph.
+ const unsigned int DEFAULT_PNG_SIZE = 10;
+ const std::string LABEL_BEGIN = " [label=\"",
+ LABEL_END = "\"]",
+ EDGE_ARROW = " -> ",
+ STATE_PREFIX = "q",
+ ... | 53 | 4.416667 | 52 | 1 |
2b930f547ffcc34eda7125b2053a336c2f51cf77 | pkg/compiler_unsupported/pubspec.yaml | pkg/compiler_unsupported/pubspec.yaml | name: compiler_unsupported
version: 0.7.1
author: Dart2js Team <compiler-dev@dartlang.org>
homepage: http://www.dartlang.org
description: >
This is an unsupported copy of the dart2js source. The API of this package
can and will change in unpredictable and incompatible ways.
environment:
sdk: ">=1.0.0 <2.0.0"
| name: compiler_unsupported
version: 0.7.2
author: Dart2js Team <compiler-dev@dartlang.org>
homepage: http://www.dartlang.org
description: >
This is an unsupported copy of the dart2js source. The API of this package
can and will change in unpredictable and incompatible ways. This release
tracks the 1.6.0-dev.1.2 d... | Upgrade the compiler_unsupported package to be based off the 1.6.0-dev.1.2 release; publish the package. | Upgrade the compiler_unsupported package to be based off the 1.6.0-dev.1.2 release; publish the package.
R=scheglov@google.com
Review URL: https://codereview.chromium.org//376063002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@38085 260f80e4-7a28-3924-810f-c04153c831b5
| YAML | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-... | yaml | ## Code Before:
name: compiler_unsupported
version: 0.7.1
author: Dart2js Team <compiler-dev@dartlang.org>
homepage: http://www.dartlang.org
description: >
This is an unsupported copy of the dart2js source. The API of this package
can and will change in unpredictable and incompatible ways.
environment:
sdk: ">=1.... | name: compiler_unsupported
- version: 0.7.1
? ^
+ version: 0.7.2
? ^
author: Dart2js Team <compiler-dev@dartlang.org>
homepage: http://www.dartlang.org
description: >
This is an unsupported copy of the dart2js source. The API of this package
- can and will change in unpredictab... | 5 | 0.555556 | 3 | 2 |
d9d1a7042c015570f7f00ab79c8361cd62c0e9c4 | regexp_parser.gemspec | regexp_parser.gemspec | $:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'regexp_parser/version'
Gem::Specification.new do |gem|
gem.name = 'regexp_parser'
gem.version = ::Regexp::Parser::VERSION
gem.summary = "Scanner, lexer, parser for ruby's regular expressions"
gem.description = 'A library for ... | $:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'regexp_parser/version'
Gem::Specification.new do |gem|
gem.name = 'regexp_parser'
gem.version = ::Regexp::Parser::VERSION
gem.summary = "Scanner, lexer, parser for ruby's regular expressions"
gem.description = 'A library for ... | Remove deprecated `test_files` from gemspec | Remove deprecated `test_files` from gemspec
| Ruby | mit | ammar/regexp_parser,ammar/regexp_parser | ruby | ## Code Before:
$:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'regexp_parser/version'
Gem::Specification.new do |gem|
gem.name = 'regexp_parser'
gem.version = ::Regexp::Parser::VERSION
gem.summary = "Scanner, lexer, parser for ruby's regular expressions"
gem.description =... | $:.unshift File.join(File.dirname(__FILE__), 'lib')
require 'regexp_parser/version'
Gem::Specification.new do |gem|
gem.name = 'regexp_parser'
gem.version = ::Regexp::Parser::VERSION
gem.summary = "Scanner, lexer, parser for ruby's regular expressions"
gem.description... | 2 | 0.055556 | 0 | 2 |
a829a44606a1daf593ff190248a1f8723b4db150 | src/ghighlighter/models/highlights.go | src/ghighlighter/models/highlights.go | package models
import (
"path"
"io/ioutil"
"os"
"encoding/json"
"ghighlighter/utils"
)
type GhHighlights struct {
items []GhHighlight
}
func (m *GhHighlights) GetAll() []GhHighlight {
m.Read()
return m.items
}
func highlightsFilePath() string {
return path.Join(utils.DataDir(), "highlights.json")
... | package models
import (
"path"
"io/ioutil"
"os"
"encoding/json"
"ghighlighter/utils"
)
type GhHighlights struct {
Items []GhHighlight
}
func highlightsFilePath() string {
return path.Join(utils.DataDir(), "highlights.json")
}
func (m *GhHighlights) Read() {
data, error := ioutil.ReadFile(highlightsF... | Remove Highlights.GetAll and make Items public | Remove Highlights.GetAll and make Items public
| Go | mit | chdorner/ghighlighter | go | ## Code Before:
package models
import (
"path"
"io/ioutil"
"os"
"encoding/json"
"ghighlighter/utils"
)
type GhHighlights struct {
items []GhHighlight
}
func (m *GhHighlights) GetAll() []GhHighlight {
m.Read()
return m.items
}
func highlightsFilePath() string {
return path.Join(utils.DataDir(), "hi... | package models
import (
"path"
"io/ioutil"
"os"
"encoding/json"
"ghighlighter/utils"
)
type GhHighlights struct {
- items []GhHighlight
? ^
+ Items []GhHighlight
? ^
- }
-
- func (m *GhHighlights) GetAll() []GhHighlight {
- m.Read()
- return m.items
}
func highlig... | 16 | 0.285714 | 5 | 11 |
961966c88180269f694c0919dc6996453efda206 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
include GDS::SSO::ControllerMethods
protect_from_forgery
before_filter :authenticate_user!
before_filter :require_signin_permission!
before_filter :set_current_user_in_thread
# the user_signed_in? if here is needed becaue otherwise we require an admin use... | class ApplicationController < ActionController::Base
include GDS::SSO::ControllerMethods
protect_from_forgery
before_filter :authenticate_user!
before_filter :require_signin_permission!
before_filter :set_current_user_in_thread
# the user_signed_in? if here is needed becaue otherwise we require an admin use... | Tweak "you must be an admin" message | Tweak "you must be an admin" message | Ruby | mit | gds-attic/need-o-tron,gds-attic/need-o-tron,gds-attic/need-o-tron | ruby | ## Code Before:
class ApplicationController < ActionController::Base
include GDS::SSO::ControllerMethods
protect_from_forgery
before_filter :authenticate_user!
before_filter :require_signin_permission!
before_filter :set_current_user_in_thread
# the user_signed_in? if here is needed becaue otherwise we requ... | class ApplicationController < ActionController::Base
include GDS::SSO::ControllerMethods
protect_from_forgery
before_filter :authenticate_user!
before_filter :require_signin_permission!
before_filter :set_current_user_in_thread
# the user_signed_in? if here is needed becaue otherwise we requir... | 2 | 0.066667 | 1 | 1 |
9624d24022187523a09e2b207c7687ee600cf565 | train-the-trainers/mr-robots-netflix-n-hack/week-3/recognizing-fake-websites-and-phishing-scams/provision.sh | train-the-trainers/mr-robots-netflix-n-hack/week-3/recognizing-fake-websites-and-phishing-scams/provision.sh |
apt update
apt install --yes python3 python3-pip python3-venv unzip \
xfce4 firefox \
ettercap-graphical
git clone --depth 1 https://github.com/trustedsec/social-engineer-toolkit.git set/
chown -R vagrant:vagrant set
cd set
pip3 install -r requirements.txt
pip3 install pipx
sudo --login -u vagrant pipx insta... |
apt update
apt install --yes python3 python3-pip python3-venv unzip \
xfce4 firefox \
ettercap-graphical
git clone --depth 1 https://github.com/trustedsec/social-engineer-toolkit.git set/
chown -R vagrant:vagrant set
cd set
pip3 install -r requirements.txt
cd -
pip3 install pipx
sudo --login -u vagrant pipx ... | Fix installation errors for Evilginx2. | Fix installation errors for Evilginx2.
| Shell | unlicense | AnarchoTechNYC/meta,AnarchoTechNYC/meta,AnarchoTechNYC/meta | shell | ## Code Before:
apt update
apt install --yes python3 python3-pip python3-venv unzip \
xfce4 firefox \
ettercap-graphical
git clone --depth 1 https://github.com/trustedsec/social-engineer-toolkit.git set/
chown -R vagrant:vagrant set
cd set
pip3 install -r requirements.txt
pip3 install pipx
sudo --login -u va... |
apt update
apt install --yes python3 python3-pip python3-venv unzip \
xfce4 firefox \
ettercap-graphical
git clone --depth 1 https://github.com/trustedsec/social-engineer-toolkit.git set/
chown -R vagrant:vagrant set
cd set
pip3 install -r requirements.txt
+ cd -
pip3 install pipx
s... | 5 | 0.238095 | 4 | 1 |
8dd41fab9a43ef43d5f2dc27e11bdbda3c23bc56 | soapbox/tests/urls.py | soapbox/tests/urls.py | from django.conf.urls import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns(
'',
url(r'^$',
TemplateView.as_view(
template_name='soapboxtest/test_success.html')),
url(r'^foo/$',
TemplateView.as_view(
template_name='soapboxtest/tes... | from django.conf.urls import url
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$',
TemplateView.as_view(
template_name='soapboxtest/test_success.html')),
url(r'^foo/$',
TemplateView.as_view(
template_name='soapboxtest/test_success.html')),
url... | Stop using patterns() in the test URLs. | Stop using patterns() in the test URLs.
| Python | bsd-3-clause | ubernostrum/django-soapbox,ubernostrum/django-soapbox | python | ## Code Before:
from django.conf.urls import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns(
'',
url(r'^$',
TemplateView.as_view(
template_name='soapboxtest/test_success.html')),
url(r'^foo/$',
TemplateView.as_view(
template_name=... | - from django.conf.urls import patterns, url
? ----------
+ from django.conf.urls import url
from django.views.generic import TemplateView
+ urlpatterns = [
- urlpatterns = patterns(
- '',
url(r'^$',
TemplateView.as_view(
template_name='soapboxtest... | 7 | 0.28 | 3 | 4 |
ec422fd4080b7b5e21415c32c0615c5afc109695 | egpath/src/stm32/hal/tim/instances-f3.go | egpath/src/stm32/hal/tim/instances-f3.go | // +build f030x6
package tim
import (
"unsafe"
"stm32/hal/raw/mmap"
)
//emgo:const
var (
// Advanced-control timers.
TIM1 = (*Periph)(unsafe.Pointer(mmap.TIM1_BASE))
// General-purpose timers.
TIM3 = (*Periph)(unsafe.Pointer(mmap.TIM3_BASE))
// General-purpose timers (1-channel).
TIM14 = (*Periph)(unsafe.... | // +build f303xe
package tim
import (
"unsafe"
"stm32/hal/raw/mmap"
)
//emgo:const
var (
// Advanced-control timers.
TIM1 = (*Periph)(unsafe.Pointer(mmap.TIM1_BASE))
TIM8 = (*Periph)(unsafe.Pointer(mmap.TIM8_BASE))
TIM20 = (*Periph)(unsafe.Pointer(mmap.TIM20_BASE))
// General-purpose timers.
TIM2 = (*Pe... | Fix timer instances for F3. | stm32/hal/tim: Fix timer instances for F3.
| Go | bsd-3-clause | ziutek/emgo,ziutek/emgo,ziutek/emgo,ziutek/emgo | go | ## Code Before:
// +build f030x6
package tim
import (
"unsafe"
"stm32/hal/raw/mmap"
)
//emgo:const
var (
// Advanced-control timers.
TIM1 = (*Periph)(unsafe.Pointer(mmap.TIM1_BASE))
// General-purpose timers.
TIM3 = (*Periph)(unsafe.Pointer(mmap.TIM3_BASE))
// General-purpose timers (1-channel).
TIM14 = (... | - // +build f030x6
? - ^
+ // +build f303xe
? + ^
package tim
import (
"unsafe"
"stm32/hal/raw/mmap"
)
//emgo:const
var (
// Advanced-control timers.
- TIM1 = (*Periph)(unsafe.Pointer(mmap.TIM1_BASE))
+ TIM1 = (*Periph)(unsafe.Pointer(mmap.TIM1_BASE))
? ... | 22 | 0.88 | 15 | 7 |
daab7129e4be35bcdb791a70aea438d933125f14 | package.json | package.json | {
"name": "NestLog",
"version": "1.0.0",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
}
}
| {
"name": "NestLog",
"version": "1.0.0",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
"async": "^0.9.0",
"bcrypt-nodejs": "latest",
"body-parser": "~1.0.0",
"connect-flash": "~0.1.1",
"connect-mongo": "^0.4.1",
"cookie-parser": "~1.0.0",
"ejs": "~0.... | Add back all npm modules | Add back all npm modules
| JSON | mit | tjeffree/nestlog | json | ## Code Before:
{
"name": "NestLog",
"version": "1.0.0",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
}
}
## Instruction:
Add back all npm modules
## Code After:
{
"name": "NestLog",
"version": "1.0.0",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
... | {
"name": "NestLog",
"version": "1.0.0",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
+ "async": "^0.9.0",
+ "bcrypt-nodejs": "latest",
+ "body-parser": "~1.0.0",
+ "connect-flash": "~0.1.1",
+ "connect-mongo": "^0.4.1",
+ "cookie-parser... | 17 | 1.7 | 17 | 0 |
6344c26c189bc15a0bc0c2e873957f4f3aa45041 | .travis.yml | .travis.yml | language: python
sudo: false
dist: xenial
cache:
pip: true
directories:
- $HOME/.cache/pypoetry
install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- poetry install
script:
- poetry run pytest --benchmark-en... | language: python
dist: focal
cache:
pip: true
directories:
- $HOME/.cache/pypoetry
install:
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- poetry install
script:
- poetry run pytest --benchmark-enable --min... | Change dist and poetry install url | Change dist and poetry install url
| YAML | mit | vberlier/nbtlib | yaml | ## Code Before:
language: python
sudo: false
dist: xenial
cache:
pip: true
directories:
- $HOME/.cache/pypoetry
install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- poetry install
script:
- poetry run pytest --benchmark-en... | language: python
+ dist: focal
- sudo: false
- dist: xenial
cache:
pip: true
directories:
- $HOME/.cache/pypoetry
install:
- - curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
? ---- ^
+ - curl -s... | 5 | 0.172414 | 2 | 3 |
78ab81bed45fae94bca24e547f02af79ae2c819d | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode8
xcode_project: RxBluetoothKit.xcodeproj
xcode_sdk: iphonesimulator10.0
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
before_script:
- carthage checkout --no-use-binaries
- travis_retry carthage build --platform iO... | language: objective-c
osx_image: xcode8
xcode_project: RxBluetoothKit.xcodeproj
xcode_sdk: iphonesimulator10.0
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
before_script:
- carthage checkout --no-use-binaries
- travis_retry carthage build --platform iO... | Add sleep 5 between tests | Add sleep 5 between tests
| YAML | apache-2.0 | Polidea/RxBluetoothKit,Fitbit/RxBluetoothKit,Polidea/RxBluetoothKit,Fitbit/RxBluetoothKit,Fitbit/RxBluetoothKit,Polidea/RxBluetoothKit | yaml | ## Code Before:
language: objective-c
osx_image: xcode8
xcode_project: RxBluetoothKit.xcodeproj
xcode_sdk: iphonesimulator10.0
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
before_script:
- carthage checkout --no-use-binaries
- travis_retry carthage bui... | language: objective-c
osx_image: xcode8
xcode_project: RxBluetoothKit.xcodeproj
xcode_sdk: iphonesimulator10.0
before_install:
- brew update
- brew outdated carthage || brew upgrade carthage
before_script:
- carthage checkout --no-use-binaries
- travis_retry cartha... | 1 | 0.058824 | 1 | 0 |
7f57954f839fa845c7727a34d35ada069ffae2ff | app/models/text.rb | app/models/text.rb | require 'open3'
class Text < ApplicationRecord
belongs_to :audio
searchkick callbacks: false, searchable: %i[text], settings: {
analysis: {
filter: {
spanish_stop: {
type: 'stop',
stopwords: '_spanish_'
}
},
analyzer: {
rebuilt_spanish: {
... | class Text < ApplicationRecord
belongs_to :audio
searchkick searchable: %i[text], settings: {
analysis: {
filter: {
spanish_stop: {
type: 'stop',
stopwords: '_spanish_'
}
},
analyzer: {
rebuilt_spanish: {
tokenizer: 'standard',
f... | Enable index callbacks in Text | Enable index callbacks in Text
| Ruby | mit | jschwindt/Venganzas-del-Pasado,jschwindt/Venganzas-del-Pasado,jschwindt/Venganzas-del-Pasado,jschwindt/Venganzas-del-Pasado | ruby | ## Code Before:
require 'open3'
class Text < ApplicationRecord
belongs_to :audio
searchkick callbacks: false, searchable: %i[text], settings: {
analysis: {
filter: {
spanish_stop: {
type: 'stop',
stopwords: '_spanish_'
}
},
analyzer: {
rebuilt_span... | - require 'open3'
-
class Text < ApplicationRecord
belongs_to :audio
- searchkick callbacks: false, searchable: %i[text], settings: {
? ------------------
+ searchkick searchable: %i[text], settings: {
analysis: {
filter: {
spanish_stop: {
type: 'stop',
... | 35 | 0.648148 | 1 | 34 |
0aa1fb5d7f4eca6423a7d4b5cdd166bf29f48423 | ordering/__init__.py | ordering/__init__.py | from fractions import Fraction
class Ordering:
_start = object()
_end = object()
def __init__(self):
self._labels = {
self._start: Fraction(0),
self._end: Fraction(1)
}
self._successors = {
self._start: self._end
}
self._predeces... | from fractions import Fraction
from functools import total_ordering
class Ordering:
_start = object()
_end = object()
def __init__(self):
self._labels = {
self._start: Fraction(0),
self._end: Fraction(1)
}
self._successors = {
self._start: self.... | Add class representing an element in the ordering | Add class representing an element in the ordering
| Python | mit | madman-bob/python-order-maintenance | python | ## Code Before:
from fractions import Fraction
class Ordering:
_start = object()
_end = object()
def __init__(self):
self._labels = {
self._start: Fraction(0),
self._end: Fraction(1)
}
self._successors = {
self._start: self._end
}
... | from fractions import Fraction
+ from functools import total_ordering
class Ordering:
_start = object()
_end = object()
def __init__(self):
self._labels = {
self._start: Fraction(0),
self._end: Fraction(1)
}
self._successors = {
... | 19 | 0.5 | 16 | 3 |
959aeed788cae24ed1b390a32950fc92da0e7961 | .fixtures.yml | .fixtures.yml | fixtures:
repositories:
concat: https://github.com/puppetlabs/puppetlabs-concat.git
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
selinux_core:
repo: https://github.com/puppetlabs/puppetlabs-selinux_core.git
puppet_version: ">= 6.0.0"
| fixtures:
repositories:
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
selinux_core:
repo: https://github.com/puppetlabs/puppetlabs-selinux_core.git
puppet_version: ">= 6.0.0"
| Remove concat as a fixture | Remove concat as a fixture
7c8bf65243d71f2c083ee5412dcee50e9789a580 removed the use of this module.
It's not listed as a dependency either so it can be safely removed as a
fixture.
| YAML | apache-2.0 | vchepkov/puppet-selinux,vchepkov/puppet-selinux,vchepkov/puppet-selinux,jfryman/puppet-selinux | yaml | ## Code Before:
fixtures:
repositories:
concat: https://github.com/puppetlabs/puppetlabs-concat.git
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
selinux_core:
repo: https://github.com/puppetlabs/puppetlabs-selinux_core.git
puppet_version: ">= 6.0.0"
## Instruction:
Remove conca... | fixtures:
repositories:
- concat: https://github.com/puppetlabs/puppetlabs-concat.git
stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git
selinux_core:
repo: https://github.com/puppetlabs/puppetlabs-selinux_core.git
puppet_version: ">= 6.0.0" | 1 | 0.142857 | 0 | 1 |
bae548e654f7db6164848e02f8690cb5a03130c9 | .travis.yml | .travis.yml | language: erlang
otp_release:
- 23.3.1
- 22.3.4
- 21.3.8.1
- 20.3.8
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis"
| language: erlang
otp_release:
- 23.3.1
- 22.3.4
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis"
| Remove older versions from Travis, don't want to fix this. | Remove older versions from Travis, don't want to fix this.
Keep on receiving 'escript: exception error: undefined function rebar3:main/1' in Travis scripts.
| YAML | mit | ostinelli/syn | yaml | ## Code Before:
language: erlang
otp_release:
- 23.3.1
- 22.3.4
- 21.3.8.1
- 20.3.8
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis"
## Instruction:
Remove older versions from Travis, don't want to fix this.
Keep on re... | language: erlang
otp_release:
- 23.3.1
- 22.3.4
- - 21.3.8.1
- - 20.3.8
branches:
only:
- master
before_install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
script: "make travis" | 2 | 0.117647 | 0 | 2 |
f0c92700ada903c3884c59fe46ab20327a43e449 | content/seq-drafts/life/_meta.yaml | content/seq-drafts/life/_meta.yaml | ---
photographs:
- slug: '001'
occurred_at: '2018-09-22T16:12:00Z'
title: Snowy Trail
description: |
A path through green trees covered by the season's first snow.
In practice, this text needs to be a bit longer to be more representative of what we can expect out of a real story. And let's add even a few... | ---
photographs:
- slug: '001'
occurred_at: '2018-09-22T16:12:00Z'
title: Snowy Trail
description: |
A path through green trees covered by the season's <a href="">first snow</a>.
In practice, this text needs to be a bit longer to be more representative of what we can expect out of a real story. And let's... | Add link for good measure | Add link for good measure
| YAML | mit | brandur/sorg,brandur/sorg,brandur/sorg,brandur/sorg,brandur/sorg | yaml | ## Code Before:
---
photographs:
- slug: '001'
occurred_at: '2018-09-22T16:12:00Z'
title: Snowy Trail
description: |
A path through green trees covered by the season's first snow.
In practice, this text needs to be a bit longer to be more representative of what we can expect out of a real story. And let'... | ---
photographs:
- slug: '001'
occurred_at: '2018-09-22T16:12:00Z'
title: Snowy Trail
description: |
- A path through green trees covered by the season's first snow.
+ A path through green trees covered by the season's <a href="">first snow</a>.
? ... | 2 | 0.2 | 1 | 1 |
2ef0571e5468ac72f712a69180fa5dc18652e8d7 | app/applier.py | app/applier.py | import random
from collections import namedtuple
Rule = namedtuple('Rule', ['changes', 'environments'])
sonorization = Rule({'p': 'b', 't': 'd', 'ʈ': 'ɖ', 'c':'ɟ', 'k': 'g', 'q': 'ɢ'},
['^.', 'V.V'])
rules = [sonorization]
words = ['potato', 'tobado', 'tabasco']
def choose_rule(words, rules):
... | import random
from collections import namedtuple
Rule = namedtuple('Rule', ['changes', 'environments'])
sonorization = Rule({'p': 'b', 't': 'd', 'ʈ': 'ɖ', 'c':'ɟ', 'k': 'g', 'q': 'ɢ'},
['^.', 'V.V'])
rules = [sonorization]
words = ['potato', 'tobado', 'tabasco']
def choose_rule(words, rules):
... | Implement rule filtering by phoneme. | Implement rule filtering by phoneme.
| Python | mit | kdelwat/LangEvolve,kdelwat/LangEvolve,kdelwat/LangEvolve | python | ## Code Before:
import random
from collections import namedtuple
Rule = namedtuple('Rule', ['changes', 'environments'])
sonorization = Rule({'p': 'b', 't': 'd', 'ʈ': 'ɖ', 'c':'ɟ', 'k': 'g', 'q': 'ɢ'},
['^.', 'V.V'])
rules = [sonorization]
words = ['potato', 'tobado', 'tabasco']
def choose_rule... | import random
from collections import namedtuple
Rule = namedtuple('Rule', ['changes', 'environments'])
sonorization = Rule({'p': 'b', 't': 'd', 'ʈ': 'ɖ', 'c':'ɟ', 'k': 'g', 'q': 'ɢ'},
['^.', 'V.V'])
rules = [sonorization]
words = ['potato', 'tobado', 'tabasco']
def... | 13 | 0.382353 | 11 | 2 |
0dcac87cb91ebe96eaf476cc512e85c63f19c112 | imports/startup/server/fixtures.js | imports/startup/server/fixtures.js | import { Meteor } from 'meteor/meteor';
import { Places } from '../../api/places/places.js';
// If the database is empty on server start, create some sample data.
Meteor.startup(() => {
Places.remove({});
if (Places.find().count() === 0) {
const data = [
{
name: 'Pike Island',
lat: 44.892... | import { Meteor } from 'meteor/meteor';
import { Places } from '../../api/places/places.js';
import _ from 'lodash';
// If the database is empty on server start, create some sample data.
Meteor.startup(() => {
Places.remove({});
if (Places.find().count() === 0) {
const data = [
{
name: 'Pike Isl... | Create a slug for each place | Create a slug for each place
This gives us a URL for the route
| JavaScript | mit | scimusmn/map-stories,scimusmn/map-stories | javascript | ## Code Before:
import { Meteor } from 'meteor/meteor';
import { Places } from '../../api/places/places.js';
// If the database is empty on server start, create some sample data.
Meteor.startup(() => {
Places.remove({});
if (Places.find().count() === 0) {
const data = [
{
name: 'Pike Island',
... | import { Meteor } from 'meteor/meteor';
import { Places } from '../../api/places/places.js';
+ import _ from 'lodash';
// If the database is empty on server start, create some sample data.
Meteor.startup(() => {
Places.remove({});
if (Places.find().count() === 0) {
+
const data = [
{
... | 4 | 0.153846 | 3 | 1 |
e97d8f618b36b9fae05f9ad60ed6a54af3107a8c | doc/user_guide/docs/installation.md | doc/user_guide/docs/installation.md |
Currently supported platforms are Linux Ubuntu and Mac OS X.
### Ubuntu
``` sh
wget https://github.com/BioDynaMo/biodynamo/releases/download/v0.1.0/biodynamo_0.1.0_amd64.snap
sudo snap install --dangerous --classic biodynamo_0.1.0_amd64.snap
```
### Mac OS
``` sh
brew install Biodynamo/biodynamo/biodynamo
```
|
Currently supported platforms are Linux Ubuntu and Mac OS X.
### Ubuntu
``` sh
wget https://github.com/BioDynaMo/biodynamo/releases/download/v0.1.0/biodynamo_0.1.0_amd64.snap
sudo snap install --dangerous --classic biodynamo_0.1.0_amd64.snap
```
### Mac OS
``` sh
brew install Biodynamo/biodynamo/biodynamo
```
##... | Add documentation on how to install the development version on Ubuntu | Add documentation on how to install the development version on Ubuntu
| Markdown | apache-2.0 | BioDynaMo/biodynamo,BioDynaMo/biodynamo,BioDynaMo/biodynamo,BioDynaMo/biodynamo | markdown | ## Code Before:
Currently supported platforms are Linux Ubuntu and Mac OS X.
### Ubuntu
``` sh
wget https://github.com/BioDynaMo/biodynamo/releases/download/v0.1.0/biodynamo_0.1.0_amd64.snap
sudo snap install --dangerous --classic biodynamo_0.1.0_amd64.snap
```
### Mac OS
``` sh
brew install Biodynamo/biodynamo/bi... |
Currently supported platforms are Linux Ubuntu and Mac OS X.
### Ubuntu
``` sh
wget https://github.com/BioDynaMo/biodynamo/releases/download/v0.1.0/biodynamo_0.1.0_amd64.snap
sudo snap install --dangerous --classic biodynamo_0.1.0_amd64.snap
```
### Mac OS
``` sh
brew install Biodynamo/... | 22 | 1.466667 | 22 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.