commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
93eb282ce663be98260518c9db41789f45fa630a
lib/matross/delayed_job.rb
lib/matross/delayed_job.rb
dep_included? 'delayed_job' _cset :dj_queues, nil namespace :delayed_job do desc "Writes the delayed job part of the Procfile" task :procfile, :roles => :dj do procfile_template = <<-EOF.gsub(/^\s+/, '') <% if dj_queues -%> <% dj_queues.each do |queue_name| -%> dj_<%= queue_name %>: b...
dep_included? 'delayed_job' _cset :dj_queues, nil namespace :delayed_job do desc "Writes the delayed job part of the Procfile" task :procfile, :roles => :dj do procfile_template = <<-EOF.gsub(/^\s+/, '') <% if defined?(dj_queues) -%> <% dj_queues.each do |queue_name| -%> dj_<%= queue_...
Check if dj queue defined instead of just empty
Check if dj queue defined instead of just empty
Ruby
mit
innvent/matross
ruby
## Code Before: dep_included? 'delayed_job' _cset :dj_queues, nil namespace :delayed_job do desc "Writes the delayed job part of the Procfile" task :procfile, :roles => :dj do procfile_template = <<-EOF.gsub(/^\s+/, '') <% if dj_queues -%> <% dj_queues.each do |queue_name| -%> dj_<%= ...
f62e10eaa90ebc08caa1864712861e5046de581a
bundles-desktop/index/blocks/island/island.css
bundles-desktop/index/blocks/island/island.css
.island { float: left; width: 50%; } .island__inner { margin: 5% 5% 0; /*float: left; width: 44.5%; margin-left: 38%;*/ } .island__container { position: relative; z-index: 10; min-height: 615px; padding: 5%; background: #fff; } .island__shadow { position: relative...
.island { display: inline-block; vertical-align: top; width: 50%; } .island__inner { margin: 5% 5% 0; } .island__container { position: relative; z-index: 10; min-height: 615px; padding: 5%; background: #fff; } .island__shadow { position: relative; z-index: 0; height...
Fix index layout - change float to inline-block
Fix index layout - change float to inline-block
CSS
mit
bem/bem-www
css
## Code Before: .island { float: left; width: 50%; } .island__inner { margin: 5% 5% 0; /*float: left; width: 44.5%; margin-left: 38%;*/ } .island__container { position: relative; z-index: 10; min-height: 615px; padding: 5%; background: #fff; } .island__shadow { po...
ea84e5f50d6bc470c171f6c98ce1d5177cd63323
recipes/omsl/meta.yaml
recipes/omsl/meta.yaml
{% set name = "omsl" %} package: name: {{ name|lower }} version: {{ mslversion }} source: url: {{ mslsourceurl }} sha256: {{ mslsourcesha256 }} build: script_env: - MSLVERSION={{ mslversion }} number: 0 skip: true # [not linux] requirements: host: - python - pip run: - python -...
{% set name = "omsl" %} package: name: {{ name|lower }} version: {{ mslversion }} source: url: {{ mslsourceurl }} sha256: {{ mslsourcesha256 }} build: script_env: - MSLVERSION={{ mslversion }} number: 0 skip: true # [not linux] requirements: host: - python - pip run: - python -...
Remove unnecessary dependencies for the current tests.
Remove unnecessary dependencies for the current tests. Co-authored-by: Daniel Ching <4876789ef84f5ace0ae2b99f3357543ddc734747@users.noreply.github.com>
YAML
bsd-3-clause
conda-forge/staged-recipes,ocefpaf/staged-recipes,conda-forge/staged-recipes,johanneskoester/staged-recipes,ocefpaf/staged-recipes,johanneskoester/staged-recipes
yaml
## Code Before: {% set name = "omsl" %} package: name: {{ name|lower }} version: {{ mslversion }} source: url: {{ mslsourceurl }} sha256: {{ mslsourcesha256 }} build: script_env: - MSLVERSION={{ mslversion }} number: 0 skip: true # [not linux] requirements: host: - python - pip run: ...
4c87e56661507d13811666b955b3cd7fbb98e154
_documentation/user/flags/shock-wave.md
_documentation/user/flags/shock-wave.md
--- name: Shock Wave abbreviation: SW type: Good summary: Firing destroys all tanks nearby. Don't kill teammates! Can kill tanks on/in buildings. --- ...
--- name: Shock Wave abbreviation: SW type: Good summary: Firing destroys all tanks nearby. Don't kill teammates! Can kill tanks on/in buildings. bzdb: - _shockAdLife - _shockInRadius - _shockOutRadius --- The Shock Wave (SW) flag fires a spherical blast originating from the center of the tank, destroying ...
Add documentation for Shock Wave.
Add documentation for Shock Wave.
Markdown
mit
BZFlag-Dev/bzflag.org,BZFlag-Dev/bzflag.org,BZFlag-Dev/bzflag.org
markdown
## Code Before: --- name: Shock Wave abbreviation: SW type: Good summary: Firing destroys all tanks nearby. Don't kill teammates! Can kill tanks on/in buildings. --- ... ## Instruction: Add documentation for Shock Wave. ## Code After: --- name: Shock Wave abbreviation: SW type: Good summary: Firing destroys all tank...
b71f3ff65bebb6bbfab1b83ab61a6dd10e419224
hammerspoon/hyper.lua
hammerspoon/hyper.lua
local status, hyperModeAppMappings = pcall(require, 'keyboard.hyper-apps') if not status then hyperModeAppMappings = require('keyboard.hyper-apps-defaults') end for i, mapping in ipairs(hyperModeAppMappings) do hs.hotkey.bind({'shift', 'ctrl', 'alt', 'cmd'}, mapping[1], function() local appName = mapping[2] ...
local status, hyperModeAppMappings = pcall(require, 'keyboard.hyper-apps') if not status then hyperModeAppMappings = require('keyboard.hyper-apps-defaults') end for i, mapping in ipairs(hyperModeAppMappings) do hs.hotkey.bind({'shift', 'ctrl', 'alt', 'cmd'}, mapping[1], function() hs.application.launchOrFocus...
Revert 'Fix "launchOrFocus" behavior for Atom'
Revert 'Fix "launchOrFocus" behavior for Atom' Revert 4f7a69f9bf1fb233e5bc98c1db3e45de2d22c0ff. While that commit did improve things for Atom, it made things worse for other apps like Chrome and Finder. With those apps, if the app is open but no windows exist, the changes in 4f7a69f9bf1fb233e5bc98c1db3e45de2d22c0ff wo...
Lua
mit
jasonrudolph/keyboard,jasonrudolph/keyboard
lua
## Code Before: local status, hyperModeAppMappings = pcall(require, 'keyboard.hyper-apps') if not status then hyperModeAppMappings = require('keyboard.hyper-apps-defaults') end for i, mapping in ipairs(hyperModeAppMappings) do hs.hotkey.bind({'shift', 'ctrl', 'alt', 'cmd'}, mapping[1], function() local appNam...
f3e0cc4b5a778b04373773dabd27be8782b1af93
cosmo_tester/test_suites/snapshots/conftest.py
cosmo_tester/test_suites/snapshots/conftest.py
import pytest from cosmo_tester.framework.test_hosts import Hosts from cosmo_tester.test_suites.snapshots import get_multi_tenant_versions_list @pytest.fixture(scope='function', params=get_multi_tenant_versions_list()) def hosts(request, ssh_key, module_tmpdir, test_config, logger): hosts = Hosts( ssh_ke...
import pytest from cosmo_tester.framework.test_hosts import Hosts, get_image from cosmo_tester.test_suites.snapshots import get_multi_tenant_versions_list @pytest.fixture(scope='function', params=get_multi_tenant_versions_list()) def hosts(request, ssh_key, module_tmpdir, test_config, logger): hosts = Hosts( ...
Use specified images for snapshot fixture
Use specified images for snapshot fixture
Python
apache-2.0
cloudify-cosmo/cloudify-system-tests,cloudify-cosmo/cloudify-system-tests
python
## Code Before: import pytest from cosmo_tester.framework.test_hosts import Hosts from cosmo_tester.test_suites.snapshots import get_multi_tenant_versions_list @pytest.fixture(scope='function', params=get_multi_tenant_versions_list()) def hosts(request, ssh_key, module_tmpdir, test_config, logger): hosts = Hosts...
45c2700cbc9f9a9f28e4333dc6fe2fd54da21e2a
.travis.yml
.travis.yml
language: ruby sudo: false cache: bundler gemfile: - gemfiles/rails_4.0.gemfile - gemfiles/rails_4.1.gemfile - gemfiles/rails_4.2.gemfile rvm: - '2.0' - '2.1' - '2.2' - 2.3.0 - jruby-9.0.4.0 - rbx-3 matrix: include: - rvm: jruby gemfile: gemfiles/rails_4.2.gemfile env: JRUBY_OPTS="--...
language: ruby sudo: false cache: bundler gemfile: - gemfiles/rails_4.0.gemfile - gemfiles/rails_4.1.gemfile - gemfiles/rails_4.2.gemfile rvm: - '2.0' - '2.1' - '2.2' - 2.3.0 - jruby-9.0.4.0 - rbx-3 matrix: include: - rvm: jruby gemfile: gemfiles/rails_4.2.gemfile env: JRUBY_OPTS="--...
Allow rbx-3 builds to fail
Allow rbx-3 builds to fail
YAML
mit
lautis/sweet_notifications
yaml
## Code Before: language: ruby sudo: false cache: bundler gemfile: - gemfiles/rails_4.0.gemfile - gemfiles/rails_4.1.gemfile - gemfiles/rails_4.2.gemfile rvm: - '2.0' - '2.1' - '2.2' - 2.3.0 - jruby-9.0.4.0 - rbx-3 matrix: include: - rvm: jruby gemfile: gemfiles/rails_4.2.gemfile env...
c056dcc109f8569f74d76259c82884aabc79bb1b
test/priority_pb_tests.cpp
test/priority_pb_tests.cpp
unsigned long long get_priority(const PriorityMessage& message) { return message.priority(); } TEST(PriorityProtobufTests, RandomPriorityTest) { PriorityBuffer<PriorityMessage> buffer{get_priority}; std::default_random_engine generator; std::uniform_int_distribution<unsigned long long> distribution(0,...
unsigned long long get_priority(const PriorityMessage& message) { return message.priority(); } TEST(PriorityProtobufTests, RandomPriorityTest) { PriorityBuffer<PriorityMessage> buffer{get_priority}; std::random_device generator; std::uniform_int_distribution<unsigned long long> distribution(0, 100LL);...
Use a true random number generator in the priority protobuf test
Use a true random number generator in the priority protobuf test
C++
mit
prismskylabs/PriorityBuffer
c++
## Code Before: unsigned long long get_priority(const PriorityMessage& message) { return message.priority(); } TEST(PriorityProtobufTests, RandomPriorityTest) { PriorityBuffer<PriorityMessage> buffer{get_priority}; std::default_random_engine generator; std::uniform_int_distribution<unsigned long long>...
e4313a121d8ec7a872d49abac7fe2edcf7728f39
packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
import { Components, registerComponent } from '../../lib/vulcan-lib'; import React from 'react'; import { useCurrentUser } from '../common/withUser' import Users from '../../lib/collections/users/collection'; import withErrorBoundary from '../common/withErrorBoundary'; const MAX_ANSWERS_QUERIED = 100 const PostsPageQ...
import { Components, registerComponent } from '../../lib/vulcan-lib'; import React from 'react'; import { useCurrentUser } from '../common/withUser' import Users from '../../lib/collections/users/collection'; import withErrorBoundary from '../common/withErrorBoundary'; const MAX_ANSWERS_QUERIED = 100 const PostsPageQ...
Hide new comment/answer box on draft questions
Hide new comment/answer box on draft questions
TypeScript
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
typescript
## Code Before: import { Components, registerComponent } from '../../lib/vulcan-lib'; import React from 'react'; import { useCurrentUser } from '../common/withUser' import Users from '../../lib/collections/users/collection'; import withErrorBoundary from '../common/withErrorBoundary'; const MAX_ANSWERS_QUERIED = 100 ...
f07a114ed23109c9b834b2cbc37ba54c728d73cb
fmn/lib/__init__.py
fmn/lib/__init__.py
""" fedmsg-notifications internal API """ import fmn.lib.models import logging log = logging.getLogger(__name__) def recipients(session, config, message): """ The main API function. Accepts a fedmsg message as an argument. Returns a dict mapping context names to lists of recipients. """ res =...
""" fedmsg-notifications internal API """ import fmn.lib.models import logging log = logging.getLogger(__name__) def recipients(session, config, message): """ The main API function. Accepts a fedmsg message as an argument. Returns a dict mapping context names to lists of recipients. """ res =...
Restructure the valid_paths list into a dict.
Restructure the valid_paths list into a dict.
Python
lgpl-2.1
jeremycline/fmn,jeremycline/fmn,jeremycline/fmn
python
## Code Before: """ fedmsg-notifications internal API """ import fmn.lib.models import logging log = logging.getLogger(__name__) def recipients(session, config, message): """ The main API function. Accepts a fedmsg message as an argument. Returns a dict mapping context names to lists of recipients. ...
6ffce17daf386f22bfe6d0c5f87363446709ed20
app/views/message.html
app/views/message.html
<a href="/{{ message.$id }}" class="glyphicon glyphicon-share-alt message-reference"></a> <div class="message-body"> <span ng-bind-html="text"></span> <ul class="message-images" ng-if="images.length"> <li ng-repeat="image in images"> <a href="{{ image }}" target="_blank"> <img ng-src="{{ image }...
<a href="/{{ message.$id }}" class="glyphicon glyphicon-share-alt message-reference"></a> <div class="message-body"> <span ng-bind-html="text"></span> <ul class="message-images" ng-if="images.length"> <li ng-repeat="image in images"> <a href="{{ image }}" target="_blank"> <img ng-src="{{ image }...
Add fallback name for logged out users.
Add fallback name for logged out users.
HTML
mit
nirrius/kvetch.io
html
## Code Before: <a href="/{{ message.$id }}" class="glyphicon glyphicon-share-alt message-reference"></a> <div class="message-body"> <span ng-bind-html="text"></span> <ul class="message-images" ng-if="images.length"> <li ng-repeat="image in images"> <a href="{{ image }}" target="_blank"> <img ng...
df39b7e5e8bf3e1ded239eb355ccb8e7faa6f147
hieradata/node/postgresql-primary-1.backend.publishing.service.gov.uk.yaml
hieradata/node/postgresql-primary-1.backend.publishing.service.gov.uk.yaml
govuk_env_sync::tasks: "push_email_alert_api_production_daily": ensure: "absent" hour: "2" minute: "01" action: "push" dbms: "postgresql" storagebackend: "s3" database: "email-alert-api_production" temppath: "/var/lib/autopostgresqlbackup/email-alert-api_production" url: "govuk-pro...
govuk_env_sync::tasks: "push_publishing_api_production_daily": ensure: "absent" hour: "2" minute: "30" action: "push" dbms: "postgresql" storagebackend: "s3" database: "publishing_api_production" temppath: "/var/lib/autopostgresqlbackup/publishing_api_production" url: "govuk-produc...
Remove the absent push job for the email_alert_api
Remove the absent push job for the email_alert_api In Carrenza, as the app now runs in AWS.
YAML
mit
alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet
yaml
## Code Before: govuk_env_sync::tasks: "push_email_alert_api_production_daily": ensure: "absent" hour: "2" minute: "01" action: "push" dbms: "postgresql" storagebackend: "s3" database: "email-alert-api_production" temppath: "/var/lib/autopostgresqlbackup/email-alert-api_production" ...
a0348f21ce7abb577b93913c6f1c805cc6ccc75f
knowit2019/13.py
knowit2019/13.py
import json def navigate_maze_struct(strategy, f='input/MAZE.txt'): rooms = json.load(open(f)) for row in rooms: for room in row: room['visited'] = False queue = [(0, 0)] while queue: y, x = queue.pop() room = rooms[y][x] if room['visited']: ...
import json def navigate_maze_struct(strategy, f='input/MAZE.txt'): rooms = json.load(open(f)) for row in rooms: for room in row: room['visited'] = False queue = [(0, 0)] while queue: y, x = queue.pop() room = rooms[y][x] if room['visited']: ...
Update strategy (was wrong way around before)
Update strategy (was wrong way around before)
Python
mit
matslindh/codingchallenges,matslindh/codingchallenges
python
## Code Before: import json def navigate_maze_struct(strategy, f='input/MAZE.txt'): rooms = json.load(open(f)) for row in rooms: for room in row: room['visited'] = False queue = [(0, 0)] while queue: y, x = queue.pop() room = rooms[y][x] if room['visited...
b232595e4c28e2fd6a85988d757a8385c70a3cf5
app/scripts/geotagging.js
app/scripts/geotagging.js
(function($) { $('.call-to-action .btn').click(function() { $('#geotagging-map').slideToggle('slow'); }); $('.save-coordinates .btn').click(function() { if(map.getStreetView().getVisible()){ console.log(map.getStreetView().getPosition().lat()); console.log(map.getStreetView().getPosition().ln...
(function($) { $('.call-to-action .btn').click(function() { $('#geotagging-map').slideToggle('slow'); }); $('.save-coordinates .btn').click(function() { var data = {}; if(map.getStreetView().getVisible()){ data.latitude = map.getStreetView().getPosition().lat(); data.longitude = map.getSt...
Send a request when clicking the save button.
Send a request when clicking the save button.
JavaScript
mit
CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder
javascript
## Code Before: (function($) { $('.call-to-action .btn').click(function() { $('#geotagging-map').slideToggle('slow'); }); $('.save-coordinates .btn').click(function() { if(map.getStreetView().getVisible()){ console.log(map.getStreetView().getPosition().lat()); console.log(map.getStreetView()....
e52782fe9c6247569d71e0610c133ce012b3e15f
.travis.yml
.travis.yml
sudo: required language: go services: - docker addons: postgresql: "9.4" go: - 1.5.4 - 1.6.3 - 1.7 env: - GO15VENDOREXPERIMENT=1 install: - make setup script: - make build - make test - PGHOST=127.0.0.1 ./script/test_all.sh
sudo: required language: go services: - docker addons: postgresql: "9.4" go: - 1.5.4 - 1.6.3 - 1.7 env: - GO15VENDOREXPERIMENT=1 install: - make setup script: - make build - make test - PGHOST=127.0.0.1 make test-all - make docker-release
Include make docker-release into CI pipeline
Include make docker-release into CI pipeline
YAML
mit
akarki15/pgweb,adamjaso/pgweb,sosedoff/pgweb,adamjaso/pgweb,sosedoff/pgweb,sosedoff/pgweb,akarki15/pgweb,akarki15/pgweb,adamjaso/pgweb,akarki15/pgweb,adamjaso/pgweb,sosedoff/pgweb
yaml
## Code Before: sudo: required language: go services: - docker addons: postgresql: "9.4" go: - 1.5.4 - 1.6.3 - 1.7 env: - GO15VENDOREXPERIMENT=1 install: - make setup script: - make build - make test - PGHOST=127.0.0.1 ./script/test_all.sh ## Instruction: Include make docker-release into CI p...
6d84cdb641d2d873118cb6cb26c5a7521ae40bd8
dcclient/dcclient.py
dcclient/dcclient.py
import rpc from xml_manager.manager import ManagedXml from oslo.config import cfg class Manager: def __init__(self): self.rpc = rpc.RPC(cfg.CONF.ml2_datacom.dm_username, cfg.CONF.ml2_datacom.dm_password, cfg.CONF.ml2_datacom.dm_host, ...
import rpc from xml_manager.manager import ManagedXml from neutron.openstack.common import log as logger from oslo.config import cfg LOG = logger.getLogger(__name__) class Manager: def __init__(self): self.rpc = rpc.RPC(cfg.CONF.ml2_datacom.dm_username, cfg.CONF.ml2_datacom.d...
Add error treatment for existing network
Add error treatment for existing network
Python
apache-2.0
NeutronUfscarDatacom/DriverDatacom
python
## Code Before: import rpc from xml_manager.manager import ManagedXml from oslo.config import cfg class Manager: def __init__(self): self.rpc = rpc.RPC(cfg.CONF.ml2_datacom.dm_username, cfg.CONF.ml2_datacom.dm_password, cfg.CONF.ml2_datacom.dm_host, ...
c0204e51c9077f8771f495bb1ffa224e25655322
website/app/components/project/processes/mc-project-processes.component.js
website/app/components/project/processes/mc-project-processes.component.js
(function (module) { module.component('mcProjectProcesses', { templateUrl: 'components/project/processes/mc-project-processes.html', controller: 'MCProjectProcessesComponentController' }); module.controller('MCProjectProcessesComponentController', MCProjectProcessesComponentController); ...
(function (module) { module.component('mcProjectProcesses', { templateUrl: 'components/project/processes/mc-project-processes.html', controller: 'MCProjectProcessesComponentController' }); module.controller('MCProjectProcessesComponentController', MCProjectProcessesComponentController); ...
Sort processes and if there is no process id go to the first one.
Sort processes and if there is no process id go to the first one.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
javascript
## Code Before: (function (module) { module.component('mcProjectProcesses', { templateUrl: 'components/project/processes/mc-project-processes.html', controller: 'MCProjectProcessesComponentController' }); module.controller('MCProjectProcessesComponentController', MCProjectProcessesComponent...
acbcca11021f1c79254ff8744b36206830efacc9
public/app/types/store.ts
public/app/types/store.ts
import { NavIndex } from './navModel'; import { LocationState } from './location'; import { AlertRulesState } from './alerting'; import { TeamsState, TeamState } from './teams'; import { FolderState } from './folders'; import { DashboardState } from './dashboard'; import { DataSourcesState } from './datasources'; impor...
import { NavIndex } from './navModel'; import { LocationState } from './location'; import { AlertRulesState } from './alerting'; import { TeamsState, TeamState } from './teams'; import { FolderState } from './folders'; import { DashboardState } from './dashboard'; import { DataSourcesState } from './datasources'; impor...
Add plugins to StoreState interface
fix: Add plugins to StoreState interface
TypeScript
agpl-3.0
grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana,grafana/grafana
typescript
## Code Before: import { NavIndex } from './navModel'; import { LocationState } from './location'; import { AlertRulesState } from './alerting'; import { TeamsState, TeamState } from './teams'; import { FolderState } from './folders'; import { DashboardState } from './dashboard'; import { DataSourcesState } from './dat...
9ab5b36a352d7e5dbf8137f040a5ae0be18cb095
README.md
README.md
A go library to parse SenML records. It currently supports only JSON and XML, but more formats like CBOR are planned. This currently implements 'draft-ietf-core-senml-08' (https://tools.ietf.org/html/draft-ietf-core-senml-08) ## Install ```sh go get github.com/nkristek/go-seml ``` ## Import ```go import( "github.c...
[![GitHub license](https://img.shields.io/github/license/nkristek/go-senml.svg)](https://github.com/nkristek/go-senml/blob/master/LICENSE) [![Build Status](https://travis-ci.com/nkristek/go-senml.svg?branch=master)](https://travis-ci.com/nkristek/go-senml) [![Coverage Status](https://coveralls.io/repos/github/nkristek...
Add build status and code coverage badges
Add build status and code coverage badges
Markdown
mit
nkristek/go-senml
markdown
## Code Before: A go library to parse SenML records. It currently supports only JSON and XML, but more formats like CBOR are planned. This currently implements 'draft-ietf-core-senml-08' (https://tools.ietf.org/html/draft-ietf-core-senml-08) ## Install ```sh go get github.com/nkristek/go-seml ``` ## Import ```go im...
c3cb6a294fe83557d86d9415f8cdf8efb4f7e59f
elevator/message.py
elevator/message.py
import msgpack import logging class MessageFormatError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class Request(object): """Handler objects for frontend->backend objects messages""" def __init__(self, raw_message, compressed=...
import msgpack import logging class MessageFormatError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class Request(object): """Handler objects for frontend->backend objects messages""" def __init__(self, raw_message, compressed=...
Fix : response datas list should not be unicoded
Fix : response datas list should not be unicoded
Python
mit
oleiade/Elevator
python
## Code Before: import msgpack import logging class MessageFormatError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class Request(object): """Handler objects for frontend->backend objects messages""" def __init__(self, raw_mess...
486633791bea00c6a846b88124860efbc7532433
fancypages/assets/fields.py
fancypages/assets/fields.py
from django.db.models.fields.related import ForeignKey from .forms import AssetField class AssetKey(ForeignKey): def formfield(self, **kwargs): kwargs['form_class'] = AssetField return super(AssetKey, self).formfield(**kwargs) def value_from_object(self, obj): asset_obj = getattr(ob...
from __future__ import unicode_literals, absolute_import import django from django.db.models.fields.related import ForeignKey from .forms import AssetField class AssetKey(ForeignKey): def formfield(self, **kwargs): kwargs['form_class'] = AssetField return super(AssetKey, self).formfield(**kwargs...
Fix south introspection rule for custom AssetField
Fix south introspection rule for custom AssetField
Python
bsd-3-clause
tangentlabs/django-fancypages,tangentlabs/django-fancypages,tangentlabs/django-fancypages
python
## Code Before: from django.db.models.fields.related import ForeignKey from .forms import AssetField class AssetKey(ForeignKey): def formfield(self, **kwargs): kwargs['form_class'] = AssetField return super(AssetKey, self).formfield(**kwargs) def value_from_object(self, obj): asset_...
8e588269c87224fbe98cd155f24289bc502b20ab
cmd/tchaik/ui/gulpfile.js
cmd/tchaik/ui/gulpfile.js
var gulp = require('gulp'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var paths = { sass: { src: ['static/sass/**/*.scss'], dest: 'static/css' } }; gulp.task('sass', function() { return gulp.src(paths.sass.src) .pipe(sourcemaps.init()) ...
var gulp = require('gulp'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var paths = { sass: { src: ['static/sass/**/*.scss'], dest: 'static/css' } }; gulp.task('sass', function() { return gulp.src(paths.sass.src) .pipe(sourcemaps.init()) ...
Add the watch task, which watches for sass changes and recompiles
[gulp] Add the watch task, which watches for sass changes and recompiles
JavaScript
bsd-2-clause
solarnz/tchaik,tchaik/tchaik,GrahamGoudeau21/tchaik,GrahamGoudeau21/tchaik,solarnz/tchaik,GrahamGoudeau21/tchaik,solarnz/tchaik,tchaik/tchaik,solarnz/tchaik,tchaik/tchaik,GrahamGoudeau21/tchaik,tchaik/tchaik
javascript
## Code Before: var gulp = require('gulp'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var paths = { sass: { src: ['static/sass/**/*.scss'], dest: 'static/css' } }; gulp.task('sass', function() { return gulp.src(paths.sass.src) .pipe(sourc...
a71884087fbfebe148542030ff6e6ab4bff40d5d
main.go
main.go
package main import ( "fmt" "os" "os/exec" "strings" ) func main() { extArgs, err := LookupExtCmd(os.Args[1:]) if err != nil { fmt.Println(err) } extCmd := exec.Command(extArgs[0], extArgs[1:]...) extCmd.Stdin = os.Stdin extCmd.Stdout = os.Stdout extCmd.Stderr = os.Stderr extCmd.Run() } func LookupEx...
package main import ( "fmt" "os" "os/exec" "strings" ) var version = "0.1.0" var helpMsg = `NAME: ext - An interface for command extensions USAGE: ext commands... ` func main() { if len(os.Args) < 2 { fmt.Println(helpMsg) os.Exit(1) } switch os.Args[1] { case "-h", "--help": fmt.Println(helpMs...
Add -h and -v option
Add -h and -v option
Go
mit
naoty/ext
go
## Code Before: package main import ( "fmt" "os" "os/exec" "strings" ) func main() { extArgs, err := LookupExtCmd(os.Args[1:]) if err != nil { fmt.Println(err) } extCmd := exec.Command(extArgs[0], extArgs[1:]...) extCmd.Stdin = os.Stdin extCmd.Stdout = os.Stdout extCmd.Stderr = os.Stderr extCmd.Run() ...
69fc49a51c2d85a0de5cd68765e42da68b588fb3
salt/top.sls
salt/top.sls
base: '* and not server-scuola-salt': - app_settings - software - users 'server-scuola-salt': - dnsmasq - tmux
base: '* and not server-scuola-salt': - app_settings - software - users 'server-scuola-salt': - dnsmasq - tmux - apache - kickstart
Update salt states for the server
Update salt states for the server
SaltStack
mit
ic-torre-boldone/salt
saltstack
## Code Before: base: '* and not server-scuola-salt': - app_settings - software - users 'server-scuola-salt': - dnsmasq - tmux ## Instruction: Update salt states for the server ## Code After: base: '* and not server-scuola-salt': - app_settings - software - users 'server-scuola...
44f502236e73a6c04a358330ce4f243e483f9ac2
evolution/regularized_evolution_algorithm/README.md
evolution/regularized_evolution_algorithm/README.md
This directory contains an iPython document that illustrates the regularized evolution algorithm from [Real et al. (2018)](https://arxiv.org/abs/1802.01548).
This directory contains an iPython document that illustrates the regularized evolution algorithm from [Real et al. (2018)](https://arxiv.org/abs/1802.01548). To see the iPython document in Colaboratory from your web browser, please navigate to [this page](https://colab.research.google.com/github/google-research/google...
Add link to easily view the iPython document.
Add link to easily view the iPython document. PiperOrigin-RevId: 218614493
Markdown
apache-2.0
google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,...
markdown
## Code Before: This directory contains an iPython document that illustrates the regularized evolution algorithm from [Real et al. (2018)](https://arxiv.org/abs/1802.01548). ## Instruction: Add link to easily view the iPython document. PiperOrigin-RevId: 218614493 ## Code After: This directory contains an iPython do...
cf878959f312990a796a2f0597e9f4be94a57983
hookIntoEvents.patch
hookIntoEvents.patch
--- opFns.js.orig 2016-09-27 10:00:02.000000000 +0100 +++ opFns.js 2016-09-27 10:00:59.000000000 +0100 @@ -6,6 +6,7 @@ const logTable = require('./logTable.js') const ERROR = constants.ERROR const MAX_INT = 9007199254740991 +const fs = require('fs'); // the opcode functions module.exports = { @@ -507,6 +508,12 @...
--- opFns.js.orig 2016-07-04 17:29:54.000000000 +0100 +++ opFns.js 2016-09-30 12:30:33.000000000 +0100 @@ -6,6 +6,7 @@ const logTable = require('./logTable.js') const ERROR = constants.ERROR const MAX_INT = 9007199254740991 +const fs = require('fs'); // the opcode functions module.exports = { @@ -499,7 +500,6 @@...
Remove gas cost for LOG opcode
Remove gas cost for LOG opcode Should mean fewer alterations are required when switching between regular testing and using solcover.
Diff
mit
sc-forks/solidity-coverage,JoinColony/solcover,sc-forks/solidity-coverage,cgewecke/solcover
diff
## Code Before: --- opFns.js.orig 2016-09-27 10:00:02.000000000 +0100 +++ opFns.js 2016-09-27 10:00:59.000000000 +0100 @@ -6,6 +6,7 @@ const logTable = require('./logTable.js') const ERROR = constants.ERROR const MAX_INT = 9007199254740991 +const fs = require('fs'); // the opcode functions module.exports = { @@ ...
f80b080f62b450531007f58849019fd18c75c25f
stacker/blueprints/rds/postgres.py
stacker/blueprints/rds/postgres.py
from stacker.blueprints.rds import base class PostgresMixin(object): def engine(self): return "postgres" def get_engine_versions(self): return ['9.3.1', '9.3.2', '9.3.3', '9.3.5', '9.3.6', '9.4.1'] def get_db_families(self): return ["postgres9.3", "postgres9.4"] class MasterIns...
from stacker.blueprints.rds import base class PostgresMixin(object): def engine(self): return "postgres" def get_engine_versions(self): return ['9.3.1', '9.3.2', '9.3.3', '9.3.5', '9.3.6', '9.3.9', '9.3.10', '9.4.1', '9.4.4', '9.4.5'] def get_db_families(self): re...
Add new versions of Postgres
Add new versions of Postgres
Python
bsd-2-clause
mhahn/stacker,remind101/stacker,mhahn/stacker,remind101/stacker
python
## Code Before: from stacker.blueprints.rds import base class PostgresMixin(object): def engine(self): return "postgres" def get_engine_versions(self): return ['9.3.1', '9.3.2', '9.3.3', '9.3.5', '9.3.6', '9.4.1'] def get_db_families(self): return ["postgres9.3", "postgres9.4"] ...
697e848fbe0a2cab8a56ea8641f82f17d9b86c99
plugins/backbone.js
plugins/backbone.js
/** * Backbone.js plugin * * Patches Backbone.Events callbacks. */ ;(function(window, Raven, Backbone) { 'use strict'; // quit if Backbone isn't on the page if (!Backbone) { return; } function makeBackboneEventsOn(oldOn) { return function BackboneEventsOn(name, callback, context) { var _callback = callb...
/** * Backbone.js plugin * * Patches Backbone.Events callbacks. */ ;(function(window, Raven, Backbone) { 'use strict'; // quit if Backbone isn't on the page if (!Backbone) { return; } function makeBackboneEventsOn(oldOn) { return function BackboneEventsOn(name, callback, context) { var wrapCallback = fu...
Update Backbone.js plugin to handle event map syntax.
Update Backbone.js plugin to handle event map syntax.
JavaScript
bsd-2-clause
housinghq/main-raven-js,janmisek/raven-js,vladikoff/raven-js,danse/raven-js,benoitg/raven-js,janmisek/raven-js,clara-labs/raven-js,vladikoff/raven-js,hussfelt/raven-js,getsentry/raven-js,getsentry/raven-js,grelas/raven-js,Mappy/raven-js,getsentry/raven-js,housinghq/main-raven-js,eaglesjava/raven-js,danse/raven-js,PureB...
javascript
## Code Before: /** * Backbone.js plugin * * Patches Backbone.Events callbacks. */ ;(function(window, Raven, Backbone) { 'use strict'; // quit if Backbone isn't on the page if (!Backbone) { return; } function makeBackboneEventsOn(oldOn) { return function BackboneEventsOn(name, callback, context) { var _...
c25378c792497019501e65437bf3026f6799357f
thpp/Storage.cpp
thpp/Storage.cpp
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <t...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <t...
Fix incorrect use of IOBuf::reserve
Fix incorrect use of IOBuf::reserve Differential Revision: D2037078 fb-gh-sync-id: d8bc304506ea70bfde3a3490f1aac23bc4392efa shipit-source-id: d8bc304506ea70bfde3a3490f1aac23bc4392efa
C++
bsd-3-clause
apaszke/thpp,apaszke/thpp
c++
## Code Before: /* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * ...
986e21055a261b9c2658c179b0b6377694844288
src/pages/blogging/2022/01/01/00-00.md
src/pages/blogging/2022/01/01/00-00.md
--- time: 1640991600 tags: [] layout: ../../../../../layouts/BlogItemLayout.astro images: - { file: "oslo-nye2021", w: 1000, h: 563 } --- Happy New Year from Oslo, Norway!
--- time: 1640991600 tags: [ traveling ] layout: ../../../../../layouts/BlogItemLayout.astro images: - { file: "oslo-nye2021", w: 1000, h: 563 } --- Happy New Year from Oslo, Norway!
Add tag to one of the last posts
Add tag to one of the last posts
Markdown
mit
stephanmax/stephanmax.is,stephanmax/stephanmax.is
markdown
## Code Before: --- time: 1640991600 tags: [] layout: ../../../../../layouts/BlogItemLayout.astro images: - { file: "oslo-nye2021", w: 1000, h: 563 } --- Happy New Year from Oslo, Norway! ## Instruction: Add tag to one of the last posts ## Code After: --- time: 1640991600 tags: [ traveling ] layout: ../../../../.....
98949a6d2a90c10a00f00d4388d4891dfda950c1
docs/source/reference/record.rst
docs/source/reference/record.rst
``asq.record`` ============== .. automodule:: asq.record Records provide a convenient anonymous class which can be useful for managing intermediate query results. ``new()`` provides a concise way to create ``Records`` in the middle of a query. ``asq.record.Record`` --------------------- .. autoc...
``asq.record`` ============== .. automodule:: asq.record Records provide a convenient anonymous class which can be useful for managing intermediate query results. ``new()`` provides a concise way to create ``Records`` in the middle of a query. ``asq.record.Record`` --------------------- .. autoc...
Update Record documentation to match the API.
Update Record documentation to match the API.
reStructuredText
mit
rob-smallshire/asq,flying-circus/asq,sherzberg/asq,SlamJam/asq,mikeckennedy/asq
restructuredtext
## Code Before: ``asq.record`` ============== .. automodule:: asq.record Records provide a convenient anonymous class which can be useful for managing intermediate query results. ``new()`` provides a concise way to create ``Records`` in the middle of a query. ``asq.record.Record`` --------------------- .. a...
39ea495532f1d113a0ca6e98cd81848943e1695a
src/browser/home/HomePage.js
src/browser/home/HomePage.js
/* @flow */ import type { State } from '../../common/types'; import React from 'react'; import AddrListByRoom from './AddressListByRoom'; import AddrList from './AddressList'; import { connect } from 'react-redux'; import linksMessages from '../../common/app/linksMessages'; import { isEmpty, pathOr, reject } from 'ramd...
/* @flow */ import type { State } from '../../common/types'; import React from 'react'; import AddrListByRoom from './AddressListByRoom'; import AddrList from './AddressList'; import { connect } from 'react-redux'; import linksMessages from '../../common/app/linksMessages'; import { isEmpty, pathOr, reject, test } from...
Improve tolerance when matching url-paths for router-navigation.
Improve tolerance when matching url-paths for router-navigation.
JavaScript
mit
cjk/smart-home-app
javascript
## Code Before: /* @flow */ import type { State } from '../../common/types'; import React from 'react'; import AddrListByRoom from './AddressListByRoom'; import AddrList from './AddressList'; import { connect } from 'react-redux'; import linksMessages from '../../common/app/linksMessages'; import { isEmpty, pathOr, rej...
69cab200050bbdb5c41c7505ecc585fec73c38c9
config/module.config.php
config/module.config.php
<?php /** * * Spork Zend Framework 2 Library * * @author Chris Schreiber <chris@sporkcode.com> */ return array( 'service_manager' => array( 'abstract_factories' => array(), 'aliases' => array(), 'factories' => array( 'cssLess' => 'Spork\CSS\Less', 'cssSass' => ...
<?php /** * * Spork Zend Framework 2 Library * * @author Chris Schreiber <chris@sporkcode.com> */ return array( 'service_manager' => array( 'abstract_factories' => array(), 'aliases' => array(), 'factories' => array( 'cssLess' => 'Spork\CSS\Less', 'cssSass' => ...
Add icalendar stragegy to service manager
Add icalendar stragegy to service manager
PHP
mit
SporkCode/Spork
php
## Code Before: <?php /** * * Spork Zend Framework 2 Library * * @author Chris Schreiber <chris@sporkcode.com> */ return array( 'service_manager' => array( 'abstract_factories' => array(), 'aliases' => array(), 'factories' => array( 'cssLess' => 'Spork\CSS\Less', ...
ab0c17038c69eaf729b6c5cd193630fc74d12a2d
contrib/packager.io/before.sh
contrib/packager.io/before.sh
set -eux # print environemnt uname -a ruby -v env cat Gemfile.lock # cleanup script/build/cleanup.sh
set -eux # print environemnt uname -a ruby -v env cat Gemfile.lock # Use more detailed version information including packager.io build info. if [ -z "${APP_PKG_ITERATION}" ] then echo "Error: could not find version information, aborting." exit 1 fi ZAMMAD_VERSION="$APP_PKG_VERSION-$APP_PKG_ITERATION" echo "Sett...
Include packager.io build information in Zammad version string.
Maintenance: Include packager.io build information in Zammad version string.
Shell
agpl-3.0
monotek/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,monotek/zammad,zammad/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,zammad/zammad
shell
## Code Before: set -eux # print environemnt uname -a ruby -v env cat Gemfile.lock # cleanup script/build/cleanup.sh ## Instruction: Maintenance: Include packager.io build information in Zammad version string. ## Code After: set -eux # print environemnt uname -a ruby -v env cat Gemfile.lock # Use more detailed ...
50abe9b40d71c303b29d6fcf6c2297fd131506bd
docs/schemaparamsets.rst
docs/schemaparamsets.rst
.. _schemaparamsets: ========================= Schema and Parameter Sets ========================= MyTARDIS stores metadata as *Parameters*, which are grouped in to *Parameter Sets*, which are defined by a *Schema*. =============== Managing Schema =============== MyTARDIS currently relies on the in-built Django ad...
.. _schemaparamsets: ========================= Schema and Parameter Sets ========================= MyTARDIS stores metadata as *Parameters*, which are grouped in to *Parameter Sets*, which are defined by a *Schema*. --------------- Managing Schema --------------- MyTARDIS currently relies on the in-built Django ad...
Fix heading level and clarify native protocol implementation
Fix heading level and clarify native protocol implementation git-svn-id: ab9e6359e17eee95839c2924c2bc9e9dee76dd10@1510 1bbb43ac-ffe0-11de-8c0c-f1c8ac664a8e
reStructuredText
bsd-3-clause
pansapiens/mytardis,pansapiens/mytardis,steveandroulakis/mytardis,iiman/mytardis,pansapiens/mytardis,pansapiens/mytardis,iiman/mytardis,iiman/mytardis,steveandroulakis/mytardis,steveandroulakis/mytardis
restructuredtext
## Code Before: .. _schemaparamsets: ========================= Schema and Parameter Sets ========================= MyTARDIS stores metadata as *Parameters*, which are grouped in to *Parameter Sets*, which are defined by a *Schema*. =============== Managing Schema =============== MyTARDIS currently relies on the in...
d338bdc83c40fc9a539ec745b2bcfae57275816d
lib/time_for_a_boolean.rb
lib/time_for_a_boolean.rb
require "active_support/core_ext/module/delegation" require "active_record/connection_adapters/column" require "time_for_a_boolean/version" require "time_for_a_boolean/railtie" module TimeForABoolean def time_for_a_boolean(attribute, field="#{attribute}_at") define_method(attribute) do !send(field).nil? &&...
require "active_support/core_ext/module/delegation" require "active_support/core_ext/time/calculations" require "active_model/type" require "time_for_a_boolean/version" require "time_for_a_boolean/railtie" module TimeForABoolean def time_for_a_boolean(attribute, field="#{attribute}_at") define_method(attribute) ...
Switch to using Rails 5 false values instead of true
Switch to using Rails 5 false values instead of true First, rails removed TRUE_VALUES, leaving FALSE_VALUES: https://github.com/rails/rails/commit/a502703c3d2151d4d3b421b29fefdac5ad05df61 Then, the file containing FALSE_VALUES was moved to ActiveModel: https://github.com/rails/rails/commit/9cc8c6f3730df3d94c81a55be9e...
Ruby
mit
calebthompson/time_for_a_boolean
ruby
## Code Before: require "active_support/core_ext/module/delegation" require "active_record/connection_adapters/column" require "time_for_a_boolean/version" require "time_for_a_boolean/railtie" module TimeForABoolean def time_for_a_boolean(attribute, field="#{attribute}_at") define_method(attribute) do !sen...
69ede95cb4e792d5eabccb6132d7b602c6f50d93
config/initializers/paperclip.rb
config/initializers/paperclip.rb
Paperclip::Attachment.default_options[:url] = ":s3_domain_url" if Rails.env == "test" || ENV["CI"] Paperclip::Attachment.default_options[:path] = ":rails_root/public/system/:class/:attachment/:id_partition/:style/:filename" else Paperclip::Attachment.default_options[:path] = "/:class/:attachment/:id_partit...
Paperclip::Attachment.default_options[:url] = ":s3_domain_url" if Rails.env == "production" Paperclip::Attachment.default_options[:path] = "/:class/:attachment/:id_partition/:style/:filename" else Paperclip::Attachment.default_options[:path] = ":rails_root/public/system/:class/:attachment/:id_partition/:st...
Use public/system for Paperclip except in production
Use public/system for Paperclip except in production
Ruby
mit
AgileVentures/osra,AgileVentures/osra,NikitaAvvakumov/osra,AgileVentures/osra,NikitaAvvakumov/osra,NikitaAvvakumov/osra
ruby
## Code Before: Paperclip::Attachment.default_options[:url] = ":s3_domain_url" if Rails.env == "test" || ENV["CI"] Paperclip::Attachment.default_options[:path] = ":rails_root/public/system/:class/:attachment/:id_partition/:style/:filename" else Paperclip::Attachment.default_options[:path] = "/:class/:attac...
89cfcb0ae29333f6ce1431afbeaba11de59458f4
metadata/org.surrel.messengerbypasser.txt
metadata/org.surrel.messengerbypasser.txt
Categories:Internet License:MIT Web Site:https://github.com/gsurrel/MessengerBypasser/blob/HEAD/README.md Source Code:https://github.com/gsurrel/MessengerBypasser Issue Tracker:https://github.com/gsurrel/MessengerBypasser/issues Auto Name:Messenger bypasser Summary:Redirects "OpenFB Messenger" intents to the web chat ...
Categories:Internet License:MIT Web Site:https://github.com/gsurrel/MessengerBypasser/blob/HEAD/README.md Source Code:https://github.com/gsurrel/MessengerBypasser Issue Tracker:https://github.com/gsurrel/MessengerBypasser/issues Auto Name:Messenger bypasser Summary:Redirects "OpenFB Messenger" intents to the web chat ...
Update Messenger bypasser to 1.0.1 (2)
Update Messenger bypasser to 1.0.1 (2)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Internet License:MIT Web Site:https://github.com/gsurrel/MessengerBypasser/blob/HEAD/README.md Source Code:https://github.com/gsurrel/MessengerBypasser Issue Tracker:https://github.com/gsurrel/MessengerBypasser/issues Auto Name:Messenger bypasser Summary:Redirects "OpenFB Messenger" intents ...
68ebcde3aee9c59a3b9708a235efc69f8a6cf931
docs/api/cassandra/policies.rst
docs/api/cassandra/policies.rst
``cassandra.policies`` - Load balancing and Failure Handling Policies ===================================================================== .. module:: cassandra.policies Load Balancing -------------- .. autoclass:: HostDistance :members: .. autoclass:: LoadBalancingPolicy :members: .. autoclass:: RoundRobi...
``cassandra.policies`` - Load balancing and Failure Handling Policies ===================================================================== .. module:: cassandra.policies Load Balancing -------------- .. autoclass:: HostDistance :members: .. autoclass:: LoadBalancingPolicy :members: .. autoclass:: RoundRobi...
Add API docs for TokenAwarePolicy
Add API docs for TokenAwarePolicy
reStructuredText
apache-2.0
kracekumar/python-driver,coldeasy/python-driver,thobbs/python-driver,stef1927/python-driver,mobify/python-driver,mike-tr-adamson/python-driver,tempbottle/python-driver,HackerEarth/cassandra-python-driver,vipjml/python-driver,stef1927/python-driver,beobal/python-driver,bbirand/python-driver,aholmberg/python-driver,kishk...
restructuredtext
## Code Before: ``cassandra.policies`` - Load balancing and Failure Handling Policies ===================================================================== .. module:: cassandra.policies Load Balancing -------------- .. autoclass:: HostDistance :members: .. autoclass:: LoadBalancingPolicy :members: .. autoc...
e7911c80598b75dd23059e2739eef025df52d70a
db/seeds/routes_from_varnish.rb
db/seeds/routes_from_varnish.rb
unless ENV['GOVUK_APP_DOMAIN'].present? abort "GOVUK_APP_DOMAIN is not set. Maybe you need to run under govuk_setenv..." end backends = [ 'canary-frontend', 'licensify', 'tariff', 'transactions-explorer', ] backends.each do |backend| url = "http://#{backend}.#{ENV['GOVUK_APP_DOMAIN']}/" puts "Backend ...
unless ENV['GOVUK_APP_DOMAIN'].present? abort "GOVUK_APP_DOMAIN is not set. Maybe you need to run under govuk_setenv..." end backends = [ 'canary-frontend', 'licensify', 'tariff', ] backends.each do |backend| url = "http://#{backend}.#{ENV['GOVUK_APP_DOMAIN']}/" puts "Backend #{backend} => #{url}" be ...
Remove seeding of transactions-explorer route.
Remove seeding of transactions-explorer route. This is no longer live, and is currently being redirected to /performance.
Ruby
mit
alphagov/router-api,alphagov/router-api
ruby
## Code Before: unless ENV['GOVUK_APP_DOMAIN'].present? abort "GOVUK_APP_DOMAIN is not set. Maybe you need to run under govuk_setenv..." end backends = [ 'canary-frontend', 'licensify', 'tariff', 'transactions-explorer', ] backends.each do |backend| url = "http://#{backend}.#{ENV['GOVUK_APP_DOMAIN']}/" ...
d055743a71b2fff55a8506ab5ea00c861e61a813
agent/resources_test.go
agent/resources_test.go
package agent import ( "testing" ) func TestConstructResource(t *testing.T) { r := ConstructResources(1, 1, 1, 1, 1, 1) if r.CpuTotal != 1 || r.CpuUsage != 1 || r.MemoryTotal != 1 || r.MemoryUsage != 1 || r.DiskTotal != 1 || r.DiskUsage != 1 { t.Fatal("disk stat read fail") } }
package agent import ( "testing" ) func TestConstructResource(t *testing.T) { r := ConstructResources(1, 1, 1, 1, 1, 1) if r.CpuTotal != 1 || r.CpuUsage != 1 || r.MemoryTotal != 1 || r.MemoryUsage != 1 || r.DiskTotal != 1 || r.DiskUsage != 1 { t.Fatal("Fail to construct resources struct") } }
Fix log in resources test
Fix log in resources test
Go
mit
longan/litchi
go
## Code Before: package agent import ( "testing" ) func TestConstructResource(t *testing.T) { r := ConstructResources(1, 1, 1, 1, 1, 1) if r.CpuTotal != 1 || r.CpuUsage != 1 || r.MemoryTotal != 1 || r.MemoryUsage != 1 || r.DiskTotal != 1 || r.DiskUsage != 1 { t.Fatal("disk stat read fail") } } ## Instruction:...
fd22ad08cb9620b1025c4e0b61ef1dee83646028
src/AppBundle/API/Webservice.php
src/AppBundle/API/Webservice.php
<?php namespace AppBundle\API; use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Session\SessionInterface; class Webservice { private $DB; public function __construct(\AppBundle\DB $DB) { $this->DB...
<?php namespace AppBundle\API; use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Session\SessionInterface; class Webservice { const ERROR_NOT_LOGGED_IN = "Error. Not logged in."; private $DB; public funct...
Add const for error message of not logged in user
Add const for error message of not logged in user
PHP
mit
molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec
php
## Code Before: <?php namespace AppBundle\API; use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Session\SessionInterface; class Webservice { private $DB; public function __construct(\AppBundle\DB $DB) { ...
fd297665f1cb95ba3e8e069a18a9e8af18b449c8
socketio/sdjango.py
socketio/sdjango.py
import logging from socketio import socketio_manage from django.conf.urls import patterns, url, include from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt SOCKETIO_NS = {} class namespace(object): def __init__(self, name=''): self.name = name def __call__(self...
import logging from socketio import socketio_manage from django.conf.urls import patterns, url, include from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt SOCKETIO_NS = {} class namespace(object): def __init__(self, name=''): self.name = name def __call__(sel...
Return namespace class after decorating.
Return namespace class after decorating.
Python
bsd-3-clause
smurfix/gevent-socketio,abourget/gevent-socketio,kazmiruk/gevent-socketio,arnuschky/gevent-socketio,bobvandevijver/gevent-socketio,hzruandd/gevent-socketio,yacneyac/gevent-socketio,Eugeny/gevent-socketio,theskumar-archive/gevent-socketio,arnuschky/gevent-socketio,kazmiruk/gevent-socketio,theskumar-archive/gevent-socket...
python
## Code Before: import logging from socketio import socketio_manage from django.conf.urls import patterns, url, include from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt SOCKETIO_NS = {} class namespace(object): def __init__(self, name=''): self.name = name d...
d7e9eba6fb3628f0736bd468ae76e05099b9d651
space/decorators.py
space/decorators.py
from django.http import HttpResponseBadRequest, HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt from incubator.settings import STATUS_SECRETS def one_or_zero(arg): """Typecast to 1 or 0""" if arg == '1': return 1 elif arg == '0': return 0 raise ValueError("no...
from django.http import HttpResponseBadRequest, HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt from django.conf import settings def one_or_zero(arg): """Typecast to 1 or 0""" if arg == '1': return 1 elif arg == '0': return 0 raise ValueError("not one or zero...
Use from django.conf import settings
Use from django.conf import settings
Python
agpl-3.0
UrLab/incubator,UrLab/incubator,UrLab/incubator,UrLab/incubator
python
## Code Before: from django.http import HttpResponseBadRequest, HttpResponseForbidden from django.views.decorators.csrf import csrf_exempt from incubator.settings import STATUS_SECRETS def one_or_zero(arg): """Typecast to 1 or 0""" if arg == '1': return 1 elif arg == '0': return 0 rais...
52dff703add4ef9897da3f40d8fd83de23fff8d6
website/source/assets/stylesheets/application.scss
website/source/assets/stylesheets/application.scss
@import 'bootstrap-sprockets'; @import 'bootstrap'; @import url("Open+Sans:300,400,600"); // Core variables and mixins @import '_variables'; // Utility @import '_utilities'; //Global Site @import '_global'; // Hashicorp Shared Project Styles @import 'hashicorp-shared/_project-utility'; @import 'hashicorp-shared/_h...
@import 'bootstrap-sprockets'; @import 'bootstrap'; @import url("//fonts.googleapis.com/css?family=Open+Sans:300,400,600"); // Core variables and mixins @import '_variables'; // Utility @import '_utilities'; //Global Site @import '_global'; // Hashicorp Shared Project Styles @import 'hashicorp-shared/_project-util...
Fix wrong font URL and decrease size
website: Fix wrong font URL and decrease size
SCSS
mpl-2.0
randomvariable/terraform,PaulAtkins/terraform,ryon/terraform,kwilczynski/terraform,jianyuan/terraform,appbricks/ab-terraform-build,caiofilipini/terraform,paybyphone/terraform,dougneal/terraform,caiofilipini/terraform,ewbankkit/terraform,zero-below/terraform,paulbouwer/terraform,Sixgill/terraform,brandontosch/terraform,...
scss
## Code Before: @import 'bootstrap-sprockets'; @import 'bootstrap'; @import url("Open+Sans:300,400,600"); // Core variables and mixins @import '_variables'; // Utility @import '_utilities'; //Global Site @import '_global'; // Hashicorp Shared Project Styles @import 'hashicorp-shared/_project-utility'; @import 'has...
bc08bee5f1af11e4acf5ae2dcb9ffd66de48e414
.github/workflows/integration.yml
.github/workflows/integration.yml
name: Integration Build on: [push, pull_request] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] node-version: [12.x] steps: - name: Checkout yeoman-test uses: actions/checkout@v2 with: repository: yeoman/yeoman-test p...
name: Integration Build on: [push, pull_request] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] node-version: [12.x] steps: - name: Checkout yeoman-test uses: actions/checkout@v2 with: repository: yeoman/yeoman-test p...
Change from master to main.
Change from master to main.
YAML
bsd-2-clause
yeoman/generator,yeoman/generator
yaml
## Code Before: name: Integration Build on: [push, pull_request] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] node-version: [12.x] steps: - name: Checkout yeoman-test uses: actions/checkout@v2 with: repository: yeoman/yeoma...
27595bcf592ba700c04348756ace9e7b179b6a0b
.travis.yml
.travis.yml
language: python python: - 3.4 install: - pip install coveralls scrutinizer-ocular script: - make ci - make run after_success: - coveralls - ocular notifications: email: on_success: never on_failure: always
language: python python: - 3.4 install: - pip install coveralls scrutinizer-ocular script: - make ci after_success: - coveralls - ocular after_script: > echo $TRAVIS_BRANCH; echo $TRAVIS_PULL_REQUEST; echo $TRAVIS_PYTHON_VERSION; if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_PYTHON_...
Add publishing to GitHub pages
Add publishing to GitHub pages
YAML
mit
friendlycode/gr-parks,friendlycode/gr-parks,friendlycode/gr-parks,friendlycode/gr-parks
yaml
## Code Before: language: python python: - 3.4 install: - pip install coveralls scrutinizer-ocular script: - make ci - make run after_success: - coveralls - ocular notifications: email: on_success: never on_failure: always ## Instruction: Add publishing to GitHub pages ## Code After: language: python python...
16e0a34d3cfeca6a2e7a5ac47e28290e4ffd0dea
run.sh
run.sh
function determine_demos_dir() { local __result="$1" local default_dir="$(pwd)/demos" local demos_dir="${DEMOS_DIR:-$default_dir}" if [[ "$demos_dir" == "$default_dir" ]] && [[ ! -d "$demos_dir" ]]; then mkdir "$default_dir" fi eval $__result="$demos_dir" } function check_for_demos() { local demos...
function determine_demos_dir() { local __result="$1" local default_dir="$(pwd)/demos" local demos_dir="${DEMOS_DIR:-$default_dir}" if [[ "$demos_dir" == "$default_dir" ]] && [[ ! -d "$demos_dir" ]]; then mkdir "$default_dir" fi eval $__result="$demos_dir" } function check_for_demos() { local demos...
Change variable names in check_for_demos
Change variable names in check_for_demos The variables names demos_path and empty_path didn't make much sense, as those are used for checking whether the demos dir length is non zero and store that boolean value. This will ensure that those variable names are a little more sane. Signed-off-by: Cullen Taylor <3dcbf3a9...
Shell
mit
eggshell/demo_processing,eggshell/demo_processing
shell
## Code Before: function determine_demos_dir() { local __result="$1" local default_dir="$(pwd)/demos" local demos_dir="${DEMOS_DIR:-$default_dir}" if [[ "$demos_dir" == "$default_dir" ]] && [[ ! -d "$demos_dir" ]]; then mkdir "$default_dir" fi eval $__result="$demos_dir" } function check_for_demos()...
f41e8bd660c2d4c8fe0e9b9372b639ac86cbfeb1
README.md
README.md
GitHub version of Giuseppe Cardillo Matlab FEX Fleiss Kappa contribution
GitHub version of Giuseppe Cardillo Matlab FEX Fleiss Kappa contribution, from http://www.mathworks.com/matlabcentral/fileexchange/15426-fleiss-es-kappa
Add link to original FEX file
Add link to original FEX file
Markdown
bsd-2-clause
drdan14/matlab_fleiss_kappa,dgolden1/matlab_fleiss_kappa
markdown
## Code Before: GitHub version of Giuseppe Cardillo Matlab FEX Fleiss Kappa contribution ## Instruction: Add link to original FEX file ## Code After: GitHub version of Giuseppe Cardillo Matlab FEX Fleiss Kappa contribution, from http://www.mathworks.com/matlabcentral/fileexchange/15426-fleiss-es-kappa
4aba316df350b493e13a776d1a9f7cc88a5b861c
elements-demo/src/main/java/org/vaadin/elements/demo/AbstractElementsDemo.java
elements-demo/src/main/java/org/vaadin/elements/demo/AbstractElementsDemo.java
package org.vaadin.elements.demo; import com.vaadin.ui.Component; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; public abstract class AbstractElementsDemo extends CustomComponent { private final VerticalLayout layout = new VerticalLayout(); public Abs...
package org.vaadin.elements.demo; import com.vaadin.ui.Component; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; public abstract class AbstractElementsDemo extends CustomComponent { private final VerticalLayout layout = new VerticalLayout(); public Abs...
Add spacing after demo description
Add spacing after demo description
Java
apache-2.0
vaadin/serverside-elements,vaadin/serverside-elements,vaadin/elements,vaadin/elements
java
## Code Before: package org.vaadin.elements.demo; import com.vaadin.ui.Component; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.Label; import com.vaadin.ui.VerticalLayout; public abstract class AbstractElementsDemo extends CustomComponent { private final VerticalLayout layout = new VerticalLayout();...
6991fafc55e40e2f077cb280ea8c62b03f6d96ed
neukinnis/spec/integration/test-name.spec.js
neukinnis/spec/integration/test-name.spec.js
//test-name.spec.js /* Acceptance Criteria: I can: -Navigate to this page according to the site map url -See that the page looks like the mockup -View the page at different resolutions and the content is laid out logically */ /* global casper */ casper.test.begin('Contact page navigates to home page ', 2, function...
//test-name.spec.js /* Acceptance Criteria: I can: -Navigate to this page according to the site map url -See that the page looks like the mockup -View the page at different resolutions and the content is laid out logically */ /* global casper */ casper.test.begin('Contact page navigates to home page ', 2, function...
Add correct localhost port to test
Add correct localhost port to test
JavaScript
mit
startersacademy/fullstack-project-01,startersacademy/fullstack-project-01
javascript
## Code Before: //test-name.spec.js /* Acceptance Criteria: I can: -Navigate to this page according to the site map url -See that the page looks like the mockup -View the page at different resolutions and the content is laid out logically */ /* global casper */ casper.test.begin('Contact page navigates to home page ...
fac280a022c8728f14bbe1194cf74af761b7ec3f
vfp2py/__main__.py
vfp2py/__main__.py
import argparse import vfp2py def parse_args(argv=None): parser = argparse.ArgumentParser(description='Tool for rewriting Foxpro code in Python') parser.add_argument("infile", help="file to convert", type=str) parser.add_argument("outfile", help="file to output to", type=str) parser.add_argument("sear...
import argparse import vfp2py def parse_args(argv=None): parser = argparse.ArgumentParser(description='Tool for rewriting Foxpro code in Python') parser.add_argument("infile", help="file to convert", type=str) parser.add_argument("outfile", help="file to output to", type=str) parser.add_argument("sear...
Fix search paths not being added from arguments.
Fix search paths not being added from arguments.
Python
mit
mwisslead/vfp2py,mwisslead/vfp2py
python
## Code Before: import argparse import vfp2py def parse_args(argv=None): parser = argparse.ArgumentParser(description='Tool for rewriting Foxpro code in Python') parser.add_argument("infile", help="file to convert", type=str) parser.add_argument("outfile", help="file to output to", type=str) parser.ad...
76b96a7b23ec2679afe32a52616a701067ce4067
xombrero.go
xombrero.go
// Copyright (c) 2014 Josh Rickmar. // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "github.com/conformal/gotk3/gtk" "runtime" ) const HomePage HTMLPageDescription = "https://www.duckduckgo.com/lite" const ( defaultWinWidth = 1024 default...
// Copyright (c) 2014 Josh Rickmar. // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "runtime" "github.com/conformal/gotk3/gtk" "github.com/jrick/go-webkit2/wk2" ) const HomePage HTMLPageDescription = "https://www.duckduckgo.com/lite" const...
Use multiple WebKit web processes.
Use multiple WebKit web processes. A new feature for WebKit2GTK+ 2.4, we can now specify to use multiple webkit web processes rather than all webviews sharing the same process. If a tab's web process is not shared with any other's (although currently unimplemented, this may happen when a tab is opened by another webv...
Go
isc
jrick/xombrero2
go
## Code Before: // Copyright (c) 2014 Josh Rickmar. // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "github.com/conformal/gotk3/gtk" "runtime" ) const HomePage HTMLPageDescription = "https://www.duckduckgo.com/lite" const ( defaultWinWidth ...
d9cb41e12b3f64e71d64dc32fcdc133813897e0b
core/data/DataTransformer.py
core/data/DataTransformer.py
from vtk import vtkImageReslice class DataTransformer(object): """DataTransformer is a class that can transform a given dataset""" def __init__(self): super(DataTransformer, self).__init__() def TransformImageData(self, imageData, transform): """ :type imageData: vtkImageData :type transform: vtkTransfor...
from vtk import vtkImageReslice class DataTransformer(object): """DataTransformer is a class that can transform a given dataset""" def __init__(self): super(DataTransformer, self).__init__() def TransformImageData(self, imageData, transform): """ :type imageData: vtkImageData :type transform: vtkTransfor...
Make sure that the reslicer does not ommit any image data.
Make sure that the reslicer does not ommit any image data.
Python
mit
berendkleinhaneveld/Registrationshop,berendkleinhaneveld/Registrationshop
python
## Code Before: from vtk import vtkImageReslice class DataTransformer(object): """DataTransformer is a class that can transform a given dataset""" def __init__(self): super(DataTransformer, self).__init__() def TransformImageData(self, imageData, transform): """ :type imageData: vtkImageData :type transf...
502722c7587d1f285e2c887edc46510480b51281
metadata/com.miqote.brswp.txt
metadata/com.miqote.brswp.txt
Categories:Wallpaper License:GPLv3 Web Site:https://miqote.com/wallpapers/brswp/ Source Code:https://code.launchpad.net/~miqote/brswp/tail Issue Tracker:https://answers.launchpad.net/brswp Summary:Black Rock Shooter Live Wallpaper Description: This is fan made Black Rock Shooter Live Wallpaper, based on the characters...
Categories:Wallpaper License:GPLv3 Web Site:https://miqote.com/wallpapers/brswp/ Source Code:https://code.launchpad.net/~miqote/brswp/tail Issue Tracker:https://answers.launchpad.net/brswp Auto Name:Black★Rock Shooter: Animated Wallpaper Summary:Black Rock Shooter Live Wallpaper Description: This is fan made Black Roc...
Set autoname of Black★Rock Shooter: Animated Wallpaper
Set autoname of Black★Rock Shooter: Animated Wallpaper
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Wallpaper License:GPLv3 Web Site:https://miqote.com/wallpapers/brswp/ Source Code:https://code.launchpad.net/~miqote/brswp/tail Issue Tracker:https://answers.launchpad.net/brswp Summary:Black Rock Shooter Live Wallpaper Description: This is fan made Black Rock Shooter Live Wallpaper, based o...
0fef1857715cc92e6f8f58576b039b39f2ff1038
lib/assert-paranoid-equal/utilities.js
lib/assert-paranoid-equal/utilities.js
'use strict'; function isNothing(subject) { return (undefined === subject) || (null === subject); } function isObject(subject) { return ('object' === typeof subject) && (null !== subject); } function isNaNConstant(subject) { // There is not Number.isNaN in Node 0.6.x return ('number' === typeof subject) &...
'use strict'; function isNothing(subject) { return (undefined === subject) || (null === subject); } function isObject(subject) { return ('object' === typeof subject) && (null !== subject); } function isNaNConstant(subject) { if (undefined !== Number.isNaN) { return Number.isNaN(subject); } else { ...
Use `Number.isNaN` when it's available.
Use `Number.isNaN` when it's available.
JavaScript
mit
dervus/assert-paranoid-equal
javascript
## Code Before: 'use strict'; function isNothing(subject) { return (undefined === subject) || (null === subject); } function isObject(subject) { return ('object' === typeof subject) && (null !== subject); } function isNaNConstant(subject) { // There is not Number.isNaN in Node 0.6.x return ('number' === t...
a332143279d631eeddaba6decf803eecce710fd1
app/controllers/api/v1/api_mda_updater_controller.rb
app/controllers/api/v1/api_mda_updater_controller.rb
class Api::V1::ApiMdaUpdaterController < Api::ApiController def check_mda_update errmsg = "Analysis has been updated concurrently by another user. Please refresh and retry." raise Api::StaleObjectError.new(errmsg) if current_update_time > (request_time + 1.second) end def current_update_time raise...
class Api::V1::ApiMdaUpdaterController < Api::ApiController def check_mda_update errmsg = "Analysis has been updated concurrently by another user. Please refresh and retry." # Tolerance +5s: concurrent edit may be unnoticed but prevent from same user rapid updates being rejected # p "COMPARE >>>>>>>>> #{...
Adjust tolerance on concurrent edit (avoiding error for same user rapid edit actions)
Adjust tolerance on concurrent edit (avoiding error for same user rapid edit actions)
Ruby
agpl-3.0
relf/WhatsOpt,relf/WhatsOpt,relf/WhatsOpt,relf/WhatsOpt
ruby
## Code Before: class Api::V1::ApiMdaUpdaterController < Api::ApiController def check_mda_update errmsg = "Analysis has been updated concurrently by another user. Please refresh and retry." raise Api::StaleObjectError.new(errmsg) if current_update_time > (request_time + 1.second) end def current_updat...
ac56d72c2f4e8064001d9d82d09f7642ce27e950
.travis.yml
.travis.yml
cache: bundler language: ruby sudo: false addons: apt: packages: - aspell - aspell-en - aspell-fr - jq install: - bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} script: - bundle exec rake after_success: - ./bin/deploy-pr...
cache: bundler language: ruby sudo: false addons: apt: packages: - aspell - aspell-en - aspell-fr - jq install: - bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} script: - bundle exec rake after_success: - ./bin/deploy-pr...
Revert "chore(ci): add slack message after master deploy"
Revert "chore(ci): add slack message after master deploy"
YAML
mit
eleven-labs/eleven-labs.github.io,eleven-labs/eleven-labs.github.io,eleven-labs/eleven-labs.github.io,eleven-labs/eleven-labs.github.io
yaml
## Code Before: cache: bundler language: ruby sudo: false addons: apt: packages: - aspell - aspell-en - aspell-fr - jq install: - bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} script: - bundle exec rake after_success: -...
b954be734ece4c7d432f39b4e29a90fd8f705f0e
Formula/climb.rb
Formula/climb.rb
require File.expand_path("../../Abstract/abstract-php-phar", __FILE__) class Climb < AbstractPhpPhar init desc "Composer version manager tool" homepage "https://github.com/vinkla/climb" url "https://github.com/vinkla/climb/releases/download/0.6.1/climb.phar" sha256 "f5e3711149a321ec35ed71740baa128e7021dd56bd...
require File.expand_path("../../Abstract/abstract-php-phar", __FILE__) class Climb < AbstractPhpPhar init desc "Composer version manager tool" homepage "https://github.com/vinkla/climb" url "https://github.com/vinkla/climb/releases/download/0.7.0/climb.phar" sha256 "50c62a80f487abda75cc2eebb15b7ce7921eefc601...
Update Climb.phar to version 0.7.0
Update Climb.phar to version 0.7.0 Closes #2553. Signed-off-by: Andy Blyler <e3579b1e47f273529f0f929453e939a68ede9fd1@blyler.cc>
Ruby
bsd-2-clause
ablyler/homebrew-php,philcook/homebrew-php,mkalkbrenner/homebrew-php,dguyon/homebrew-php,TomK/homebrew-php
ruby
## Code Before: require File.expand_path("../../Abstract/abstract-php-phar", __FILE__) class Climb < AbstractPhpPhar init desc "Composer version manager tool" homepage "https://github.com/vinkla/climb" url "https://github.com/vinkla/climb/releases/download/0.6.1/climb.phar" sha256 "f5e3711149a321ec35ed71740b...
b20924348aa8c40f271f2e58cdb02445662508b8
tests/testsUnsupportedOutsideWindows.txt
tests/testsUnsupportedOutsideWindows.txt
Interop/NativeCallable/NativeCallableTest.sh JIT/Directed/coverage/oldtests/callipinvoke.sh JIT/Directed/coverage/oldtests/Desktop/callipinvoke_il_d.sh JIT/Directed/coverage/oldtests/Desktop/callipinvoke_il_r.sh JIT/Directed/IL/PInvokeTail/TailWinApi.sh JIT/Directed/pinvoke/jump.sh JIT/Directed/pinvoke/sysinfo_il.sh JI...
Interop/NativeCallable/NativeCallableTest.sh JIT/Directed/coverage/oldtests/callipinvoke.sh JIT/Directed/coverage/oldtests/Desktop/callipinvoke_il_d.sh JIT/Directed/coverage/oldtests/Desktop/callipinvoke_il_r.sh JIT/Directed/IL/PInvokeTail/TailWinApi.sh JIT/Directed/pinvoke/jump.sh JIT/Directed/pinvoke/sysinfo_il.sh JI...
Disable a couple of tests that are not supported outside Windows
Disable a couple of tests that are not supported outside Windows
Text
mit
parjong/coreclr,benpye/coreclr,dasMulli/coreclr,wkchoy74/coreclr,Godin/coreclr,stormleoxia/coreclr,russellhadley/coreclr,chuck-mitchell/coreclr,mmitche/coreclr,AlfredoMS/coreclr,swgillespie/coreclr,JonHanna/coreclr,schellap/coreclr,mokchhya/coreclr,YongseopKim/coreclr,yizhang82/coreclr,naamunds/coreclr,chuck-mitchell/c...
text
## Code Before: Interop/NativeCallable/NativeCallableTest.sh JIT/Directed/coverage/oldtests/callipinvoke.sh JIT/Directed/coverage/oldtests/Desktop/callipinvoke_il_d.sh JIT/Directed/coverage/oldtests/Desktop/callipinvoke_il_r.sh JIT/Directed/IL/PInvokeTail/TailWinApi.sh JIT/Directed/pinvoke/jump.sh JIT/Directed/pinvoke/...
d22e07effe5422efc9b04b27b90eb3cecfee5b9b
setup/python/pipx_packages.txt
setup/python/pipx_packages.txt
black bpython icdiff httpie instaloader ipython jc ocrmypdf pipx ptpython speedtest-cli thefuck virtualenv virtualenvwrapper xonsh youtube-dl
black bpython icdiff httpie instaloader ipython jc ocrmypdf ptpython speedtest-cli thefuck virtualenv virtualenvwrapper xonsh xxh-xxh youtube-dl
Remove 'pipx' from its own packages list and add 'xxh-xxh' to the list
Remove 'pipx' from its own packages list and add 'xxh-xxh' to the list
Text
mit
lendenmc/dotfiles
text
## Code Before: black bpython icdiff httpie instaloader ipython jc ocrmypdf pipx ptpython speedtest-cli thefuck virtualenv virtualenvwrapper xonsh youtube-dl ## Instruction: Remove 'pipx' from its own packages list and add 'xxh-xxh' to the list ## Code After: black bpython icdiff httpie instaloader ipython jc ocrmypd...
550befeed6ff3b2c64454c05f9e05b586d16ff64
googlevoice/__init__.py
googlevoice/__init__.py
__author__ = 'Justin Quick and Joe McCall' __email__ = 'justquick@gmail.com, joe@mcc4ll.us', __copyright__ = 'Copyright 2009, Justin Quick and Joe McCall' __credits__ = ['Justin Quick', 'Joe McCall', 'Jacob Feisley', 'John Nagle'] __license__ = 'New BSD' __version__ = '0.5' from .voice import Voice from .util import P...
__author__ = 'Justin Quick and Joe McCall' __email__ = 'justquick@gmail.com, joe@mcc4ll.us', __copyright__ = 'Copyright 2009, Justin Quick and Joe McCall' __credits__ = ['Justin Quick', 'Joe McCall', 'Jacob Feisley', 'John Nagle'] __license__ = 'New BSD' try: __version__ = ( __import__('pkg_resources').get_distribu...
Load the version from the package metadata.
Load the version from the package metadata.
Python
bsd-3-clause
pettazz/pygooglevoice
python
## Code Before: __author__ = 'Justin Quick and Joe McCall' __email__ = 'justquick@gmail.com, joe@mcc4ll.us', __copyright__ = 'Copyright 2009, Justin Quick and Joe McCall' __credits__ = ['Justin Quick', 'Joe McCall', 'Jacob Feisley', 'John Nagle'] __license__ = 'New BSD' __version__ = '0.5' from .voice import Voice fro...
74f709fdfd00b49843c8d338b0147d9787cf68d3
app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper def path?(path) controller_path[0..path.length-1] == path end def word_for_change(change) case change.downcase when 'a' then return 'Added' when 'd' then return 'Deleted' when 'm' then return 'Modified' when 'mv' then return 'Moved' when 'cp' then ...
module ApplicationHelper def path?(path) controller_path[0..path.length-1] == path end def word_for_change(change) case change.downcase when 'a' then 'Added' when 'd' then 'Deleted' when 'm' then 'Modified' when 'mv' then 'Moved' when 'cp' then 'Copied' else ...
Remove returns from case statements
Remove returns from case statements git-svn-id: 00255c29502d8dc24a666882d37304e67b560e94@1520 8456e5f2-bb15-0410-bd20-b44782a1fb1e
Ruby
mit
jeet/tentacle,jeet/tentacle
ruby
## Code Before: module ApplicationHelper def path?(path) controller_path[0..path.length-1] == path end def word_for_change(change) case change.downcase when 'a' then return 'Added' when 'd' then return 'Deleted' when 'm' then return 'Modified' when 'mv' then return 'Moved' ...
1ee4397739230ee66cb4ac557ded8d1096692c24
src/templates/about/index.html
src/templates/about/index.html
{% extends "layout.html" %} {% block body %} <div class="row"> <div class="col-xs-12"> <h1>About</h1> <p>Podverse lets you create clips and playlists of your favorite podcasts and share them anywhere online.</p> <p>No login necessary</p> <p>Free / open source code</p> <p>Podverse will never add s...
{% extends "layout.html" %} {% block body %} <div class="row"> <div class="col-xs-12"> <h1 style="margin-top: 1.25rem">About</h1> <p>Podverse lets you create clips and playlists of your favorite podcasts and share them anywhere online.</p> <p>No login necessary</p> <p>Free / open source code</p> ...
Add margin-top to About page header
Add margin-top to About page header
HTML
agpl-3.0
podverse/podverse-web,podverse/podverse-web,podverse/podverse-web,podverse/podverse-web
html
## Code Before: {% extends "layout.html" %} {% block body %} <div class="row"> <div class="col-xs-12"> <h1>About</h1> <p>Podverse lets you create clips and playlists of your favorite podcasts and share them anywhere online.</p> <p>No login necessary</p> <p>Free / open source code</p> <p>Podverse ...
fe0e70a8db385d8d963e1ec17aa62bf228b9377c
lib/utility/get-documents-with-info.js
lib/utility/get-documents-with-info.js
'use strict'; var async = require('async'); var qs = require('querystring'); /** * Fetch documents and populate their `document_type` and `provider` keys * @param {Object} [params] GET parameters to pass to `/documents` (e.g. search) * @param {Function} cb(err, document) */ module.exports = function getDocumentWi...
'use strict'; var async = require('async'); var qs = require('querystring'); /** * Fetch documents and populate their `document_type` and `provider` keys * @param {Object} [params] GET parameters to pass to `/documents` (e.g. search) * @param {Function} cb(err, document) */ module.exports = function getDocumentsW...
Fix `getDocumentsWithInfo` not allowing to ommit parameters
Fix `getDocumentsWithInfo` not allowing to ommit parameters
JavaScript
mit
AnyFetch/anyfetch.js,AnyFetch/anyfetch.js
javascript
## Code Before: 'use strict'; var async = require('async'); var qs = require('querystring'); /** * Fetch documents and populate their `document_type` and `provider` keys * @param {Object} [params] GET parameters to pass to `/documents` (e.g. search) * @param {Function} cb(err, document) */ module.exports = functi...
c00f480f3048db5b658fbe6904bd387f7ca2396b
plugins/player/command/spawn_cmd.scala
plugins/player/command/spawn_cmd.scala
import io.luna.game.event.impl.CommandEvent >>@[CommandEvent]("npc", RIGHTS_DEV) { (msg, plr) => val args = msg.getArgs world.addNpc(args(0).toInt, plr.position) } >>@[CommandEvent]("object", RIGHTS_DEV) { (msg, plr) => // TODO: Once object placement system is done }
import io.luna.game.event.impl.CommandEvent >>@[CommandEvent]("npc", RIGHTS_DEV) { (msg, plr) => val args = msg.getArgs world.addNpc(args(0).toInt, plr.position) }
Remove "object" command, not necessary at the moment
Remove "object" command, not necessary at the moment
Scala
mit
lare96/luna
scala
## Code Before: import io.luna.game.event.impl.CommandEvent >>@[CommandEvent]("npc", RIGHTS_DEV) { (msg, plr) => val args = msg.getArgs world.addNpc(args(0).toInt, plr.position) } >>@[CommandEvent]("object", RIGHTS_DEV) { (msg, plr) => // TODO: Once object placement system is done } ## Instruction: Remove "obj...
d214c0044a7bf175a4dcc3de366a6df7b1ff82d0
package.json
package.json
{ "name": "anyfetch-hydrater", "description": "Create hydrater for AnyFetch.", "version": "1.0.10", "author": "Matthieu Bacconnier <matthieu.bacconnier@papiel.fr>", "scripts": { "test": "NODE_ENV=test mocha --recursive -R spec test/", "lint": "jshint lib/ test/" }, "main": "./lib", "repository":...
{ "name": "anyfetch-hydrater", "description": "Create hydrater for AnyFetch.", "version": "1.0.10", "author": "Matthieu Bacconnier <matthieu.bacconnier@papiel.fr>", "scripts": { "test": "NODE_ENV=test mocha --recursive -R spec test/", "lint": "jshint lib/ test/" }, "main": "./lib", "repository":...
Remove morgan and add restify-logger
Remove morgan and add restify-logger
JSON
mit
AnyFetch/anyfetch-hydrater.js
json
## Code Before: { "name": "anyfetch-hydrater", "description": "Create hydrater for AnyFetch.", "version": "1.0.10", "author": "Matthieu Bacconnier <matthieu.bacconnier@papiel.fr>", "scripts": { "test": "NODE_ENV=test mocha --recursive -R spec test/", "lint": "jshint lib/ test/" }, "main": "./lib",...
512144fc92a1eabf1e97f5a586bc1f1dbbf8ed07
examples/print_keyboard_key.rs
examples/print_keyboard_key.rs
extern crate graphics; extern crate piston; use piston::{ AssetStore, Game, GameWindow, GameWindowSDL2, GameWindowSettings, keyboard, }; pub struct App; impl App { /// Creates a new application. pub fn new() -> App { App } } impl Game for App { fn key_press( ...
extern crate graphics; extern crate piston; use piston::{ AssetStore, Game, GameWindow, GameWindowSDL2, GameWindowSettings, keyboard, }; pub struct App; impl App { /// Creates a new application. pub fn new() -> App { App } } impl Game for App { fn key_press( ...
Print keycode when released a key
Print keycode when released a key
Rust
mit
oldmanmike/piston,axelmagn/piston,bvssvni/piston,Potpourri/piston,getynge/piston,mitchmindtree/piston,placrosse/piston,KevinFrans3/piston,bvssvni/piston,tempbottle/piston,caldwell/piston,PistonDevelopers/piston,PistonDevelopers/piston
rust
## Code Before: extern crate graphics; extern crate piston; use piston::{ AssetStore, Game, GameWindow, GameWindowSDL2, GameWindowSettings, keyboard, }; pub struct App; impl App { /// Creates a new application. pub fn new() -> App { App } } impl Game for App { fn key...
63a643c8c8ab6cc86f561ba286199043bc0124b3
app/views/shared/_footer_site_links.html.erb
app/views/shared/_footer_site_links.html.erb
<div class="footer-site-links"> <div class="l-container l-container--space"> <ul class="list--unstyled"> <% locals.each do |locale| %> <li> <%= link_to t("locales.#{locale}"), { locale: locale }, id: "#{locale}Link", lang: locale %> <...
<div class="footer-site-links"> <div class="l-container l-container--space"> <ul class="list--unstyled"> <li> <a href="<%= t('footer.about_us_link') %>"><%= t('footer.about_us') %></a> </li> <li> <a href="<%= t('footer.contact_us_link') %>"><%= t('footer.contact_us') %></a> ...
Add footer links to HTML.
Add footer links to HTML.
HTML+ERB
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
html+erb
## Code Before: <div class="footer-site-links"> <div class="l-container l-container--space"> <ul class="list--unstyled"> <% locals.each do |locale| %> <li> <%= link_to t("locales.#{locale}"), { locale: locale }, id: "#{locale}Link", lang: loc...
558f100a3740ed06d0ab502ece9d81e7625dedd0
tools/build-all-artifacts.sh
tools/build-all-artifacts.sh
set -eux set -o pipefail export BRANCH=$1 export BRANCH=${BRANCH:-master} echo "Building all needed hadoop-openstack versions" hadoop_versions=(2.2.0 2.3.0 2.5.0 2.6.0 2.7.1) for ver in ${hadoop_versions[*]} do ./tools/build-hadoop-openstack.sh $BRANCH ${ver} done cp -r common-artifacts/ dist/ ls dist/
set -eux set -o pipefail export BRANCH=$1 export BRANCH=${BRANCH:-master} echo "Building all needed hadoop-openstack versions" hadoop_versions=(2.2.0 2.3.0 2.5.0 2.6.0 2.7.1) for ver in ${hadoop_versions[*]} do ./tools/build-hadoop-openstack.sh $BRANCH ${ver} done echo "Building all oozie versions" hadoop_oozie_...
Enable also building Oozie for 2.7.1
Enable also building Oozie for 2.7.1 This should be enough to generated and copy the tarballs to tarballs.openstack.org. Change-Id: Ide850fc26d94c250983488105fab1f4dd43597ff
Shell
apache-2.0
openstack/sahara-extra,openstack/sahara-extra,openstack/sahara-extra,openstack/sahara-extra
shell
## Code Before: set -eux set -o pipefail export BRANCH=$1 export BRANCH=${BRANCH:-master} echo "Building all needed hadoop-openstack versions" hadoop_versions=(2.2.0 2.3.0 2.5.0 2.6.0 2.7.1) for ver in ${hadoop_versions[*]} do ./tools/build-hadoop-openstack.sh $BRANCH ${ver} done cp -r common-artifacts/ dist/ ls...
cc46b9ebae9eb900c8795f33da1681caac02eb72
app/service/default.js
app/service/default.js
export const defaultTypes = { '2.x': [ 'string', 'long', 'integer', 'short', 'byte', 'double', 'float', 'date', 'boolean', 'binary', 'object', 'nested', 'geo_point', 'geo_shape', 'ip', 'completion', 'token_count', 'murmur3', 'attachment' ],...
export const defaultTypes = { '2.x': [ 'string', 'long', 'integer', 'short', 'byte', 'double', 'float', 'date', 'boolean', 'binary', 'object', 'nested', 'geo_point', 'geo_shape', 'ip', 'completion', 'token_count', 'murmur3', 'attachment' ],...
Attach links to read more
Attach links to read more
JavaScript
apache-2.0
appbaseio/gem,appbaseio/gem
javascript
## Code Before: export const defaultTypes = { '2.x': [ 'string', 'long', 'integer', 'short', 'byte', 'double', 'float', 'date', 'boolean', 'binary', 'object', 'nested', 'geo_point', 'geo_shape', 'ip', 'completion', 'token_count', 'murmur3', '...
204df108aa7c76f3ebef9c850f905ab641a7a2e3
test/sqlite3_monkey_patch.rb
test/sqlite3_monkey_patch.rb
require 'active_record/connection_adapters/sqlite3_adapter' module ActiveRecord module ConnectionAdapters class SQLite3Adapter < AbstractAdapter private def _type_cast(value) case value when BigDecimal value.to_f when String if value.encoding == Encoding::A...
=begin This monkey patch is necessary because the SQLite3Adapter is smart enough to encode strings that come in with Encoding::ASCII-8BIT to Encoding::UTF-8 but others aren't. So to mimic the worst case, for example using a bad oracle adapter, we monkey patch the SQLite3Adapter to just return the string instead of tryi...
Comment to explain the monkey patch
Comment to explain the monkey patch
Ruby
mit
customink/gigo-activerecord
ruby
## Code Before: require 'active_record/connection_adapters/sqlite3_adapter' module ActiveRecord module ConnectionAdapters class SQLite3Adapter < AbstractAdapter private def _type_cast(value) case value when BigDecimal value.to_f when String if value.encodin...
28da05d860147b5e0df37d998f437af6a5d4d178
airflow/hooks/postgres_hook.py
airflow/hooks/postgres_hook.py
import psycopg2 from airflow.hooks.dbapi_hook import DbApiHook class PostgresHook(DbApiHook): ''' Interact with Postgres. You can specify ssl parameters in the extra field of your connection as ``{"sslmode": "require", "sslcert": "/path/to/cert.pem", etc}``. ''' conn_name_attr = 'postgres_con...
import psycopg2 from airflow.hooks.dbapi_hook import DbApiHook class PostgresHook(DbApiHook): ''' Interact with Postgres. You can specify ssl parameters in the extra field of your connection as ``{"sslmode": "require", "sslcert": "/path/to/cert.pem", etc}``. ''' conn_name_attr = 'postgres_con...
Set Postgres autocommit as supported only if server version is < 7.4
Set Postgres autocommit as supported only if server version is < 7.4 The server-side autocommit setting was removed here http://www.postgresql.org/docs/7.4/static/release-7-4.html Resolves: #690
Python
apache-2.0
vijaysbhat/incubator-airflow,dgies/incubator-airflow,owlabs/incubator-airflow,Acehaidrey/incubator-airflow,gtoonstra/airflow,hamedhsn/incubator-airflow,apache/airflow,N3da/incubator-airflow,mrkm4ntr/incubator-airflow,RealImpactAnalytics/airflow,r39132/airflow,janczak10/incubator-airflow,cfei18/incubator-airflow,CloverH...
python
## Code Before: import psycopg2 from airflow.hooks.dbapi_hook import DbApiHook class PostgresHook(DbApiHook): ''' Interact with Postgres. You can specify ssl parameters in the extra field of your connection as ``{"sslmode": "require", "sslcert": "/path/to/cert.pem", etc}``. ''' conn_name_attr...
a72702d2fac7087e9599973690258e3c971ef6cf
README.markdown
README.markdown
![In-game image of the Pokémon Skarmory](http://github.com/tofumatt/skarmory/raw/master/skarmory.png) Skarmory is a JavaScript Twitter library for [Appcelerator Titanium](http://www.appcelerator.com/) that implements Twitter's REST API and OAuth authorization flow. It's named after the Pokémon [Skarmory](http://bulbap...
Skarmory is a JavaScript Twitter library for [Appcelerator Titanium](http://www.appcelerator.com/) that implements Twitter's REST API and OAuth authorization flow. It's named after the Pokémon [Skarmory](http://bulbapedia.bulbagarden.net/wiki/Skarmory), the only dual-type Steel/Flying Pokémon in existence. Thanks to ...
Put Skarmory image next to header
Put Skarmory image next to header
Markdown
apache-2.0
tofumatt/skarmory
markdown
## Code Before: ![In-game image of the Pokémon Skarmory](http://github.com/tofumatt/skarmory/raw/master/skarmory.png) Skarmory is a JavaScript Twitter library for [Appcelerator Titanium](http://www.appcelerator.com/) that implements Twitter's REST API and OAuth authorization flow. It's named after the Pokémon [Skarmor...
bae125875ff66b3f6a53816a490ca4f5b2d61ee3
vendor/assets/stylesheets/active_admin.scss
vendor/assets/stylesheets/active_admin.scss
@import 'compass'; @import 'active_admin/mixins'; @import 'active_admin/base'; @import 'globals/settings'; @import 'foundation/foundation_and_overrides'; @import 'jquery-ui/core'; @import 'jquery-ui/menu'; @import 'jquery-ui/theme'; @import 'jquery-ui/autocomplete'; @import 'chosen'; @import 'froala_editor.min'; @imp...
@import 'compass'; @import 'active_admin/mixins'; @import 'active_admin/base'; @import 'globals/settings'; @import 'foundation/foundation_and_overrides'; @import 'jquery-ui/core'; @import 'jquery-ui/menu'; @import 'jquery-ui/theme'; @import 'jquery-ui/autocomplete'; @import 'chosen'; @import 'froala_editor.min'; @imp...
Remove outline on form elements
Remove outline on form elements
SCSS
mit
lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter
scss
## Code Before: @import 'compass'; @import 'active_admin/mixins'; @import 'active_admin/base'; @import 'globals/settings'; @import 'foundation/foundation_and_overrides'; @import 'jquery-ui/core'; @import 'jquery-ui/menu'; @import 'jquery-ui/theme'; @import 'jquery-ui/autocomplete'; @import 'chosen'; @import 'froala_e...
48dd1b370fb0d667c4da5ff7ef1b5d72aa484074
lib/install/template.rb
lib/install/template.rb
directory "#{__dir__}/javascript", 'app/javascript' directory "#{__dir__}/bin", 'bin' chmod 'bin', 0755 & ~File.umask, verbose: false directory "#{__dir__}/config", 'config/webpack' append_to_file '.gitignore', <<-EOS /public/packs /node_modules EOS run './bin/yarn add --dev webpack webpack-merge webpack-dev-server...
directory "#{__dir__}/javascript", 'app/javascript' directory "#{__dir__}/bin", 'bin' chmod 'bin', 0755 & ~File.umask, verbose: false directory "#{__dir__}/config", 'config/webpack' append_to_file '.gitignore', <<-EOS /public/packs /node_modules EOS run './bin/yarn add --dev webpack webpack-merge webpack-dev-server...
Add compression-webpack-plugin as a dependency
Add compression-webpack-plugin as a dependency
Ruby
mit
Davidzhu001/webpacker,usertesting/webpacker,rossta/webpacker,Davidzhu001/webpacker,shakacode/webpacker_lite,Davidzhu001/webpacker,rossta/webpacker,gauravtiwari/webpacker,rossta/webpacker,gauravtiwari/webpacker,usertesting/webpacker,rossta/webpacker,rails/webpacker,gauravtiwari/webpacker,usertesting/webpacker,rails/webp...
ruby
## Code Before: directory "#{__dir__}/javascript", 'app/javascript' directory "#{__dir__}/bin", 'bin' chmod 'bin', 0755 & ~File.umask, verbose: false directory "#{__dir__}/config", 'config/webpack' append_to_file '.gitignore', <<-EOS /public/packs /node_modules EOS run './bin/yarn add --dev webpack webpack-merge we...
d7cba7270ba6ad6eea4e94aa8739871c933d0d29
nerd-night-map/readme.md
nerd-night-map/readme.md
On April 12, 2018, I presented a live demo of making digitals maps using the free [QGIS](http://qgis.org) software to [the monthly "Nerd Out!" meeting](https://www.facebook.com/events/227324144509145/) of the "Nerds of the Twin Cities" meetup group. You can view my slide deck [here](http://dhmontgomery.com/files/nerd...
On April 12, 2018, I presented a live demo of making digitals maps using the free [QGIS](http://qgis.org) software to [the monthly "Nerd Out!" meeting](https://www.facebook.com/events/227324144509145/) of the "Nerds of the Twin Cities" meetup group. You can view my slide deck [here](http://dhmontgomery.com/files/nerd...
Add reference to QML file
Add reference to QML file
Markdown
mit
dhmontgomery/personal-work
markdown
## Code Before: On April 12, 2018, I presented a live demo of making digitals maps using the free [QGIS](http://qgis.org) software to [the monthly "Nerd Out!" meeting](https://www.facebook.com/events/227324144509145/) of the "Nerds of the Twin Cities" meetup group. You can view my slide deck [here](http://dhmontgomer...
bb4b412c43d39c8ac0cef819fecd37d2afe5ec24
appveyor.yml
appveyor.yml
version: 3.0.0.{build} assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" before_build: - nuget restore build: project: Exceptionless.DateTimeExtensions.sln publish_nuget: true publish_nuget_sy...
version: 3.0.0.{build} assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" before_build: - nuget restore configuration: Release build: project: Exceptionless.DateTimeExtensions.sln publish_nuget:...
Change config to release mode.
Change config to release mode.
YAML
apache-2.0
exceptionless/Exceptionless.DateTimeExtensions
yaml
## Code Before: version: 3.0.0.{build} assembly_info: patch: true file: AssemblyInfo.* assembly_version: "{version}" assembly_file_version: "{version}" assembly_informational_version: "{version}" before_build: - nuget restore build: project: Exceptionless.DateTimeExtensions.sln publish_nuget: true ...
4717ffa5047443f2259b1c553099febd1285bec0
app/partials/content/SymbolicChemistryQuestion.html
app/partials/content/SymbolicChemistryQuestion.html
<div isaac-question-tabs> <div class="row"> <div class="small-14 small-offset-1 columns end"> <h3><div isaac-content-value-or-children value="doc.value" children="doc.children" encoding="doc.encoding"></div></h3> </div> </div> <div class="row"> <div class="medium-1...
<div> <div class="row"> <div class="small-14 small-offset-1 columns end"> <h3><div isaac-content-value-or-children value="doc.value" children="doc.children" encoding="doc.encoding"></div></h3> </div> </div> <div class="row"> <div class="medium-14 medium-offset-1 co...
Fix major bug with Chemistry Questions (with help from Ian)!
Fix major bug with Chemistry Questions (with help from Ian)!
HTML
mit
ucam-cl-dtg/isaac-app,ucam-cl-dtg/isaac-app,ucam-cl-dtg/isaac-app,ucam-cl-dtg/isaac-app
html
## Code Before: <div isaac-question-tabs> <div class="row"> <div class="small-14 small-offset-1 columns end"> <h3><div isaac-content-value-or-children value="doc.value" children="doc.children" encoding="doc.encoding"></div></h3> </div> </div> <div class="row"> <div class=...
b4b5bed5b39fbf30cbd4efa5a594f79d8edbebe8
README.md
README.md
[![Build Status](https://travis-ci.org/tempodb/tempodb-java.png?branch=1.0)](https://travis-ci.org/tempodb/tempodb-java) Releases are available on our maven server. Add the following dependency to your pom. <dependency> <groupId>com.tempodb</groupId> <artifactId>tempodb-java</artifactId> <versi...
[![Build Status](https://travis-ci.org/tempodb/tempodb-java.png?branch=1.0)](https://travis-ci.org/tempodb/tempodb-java) Releases are available on our maven server. Ensure that you can pull from maven central, and add the following dependency to your pom: <dependency> <groupId>com.tempodb</groupId> <...
Switch java client to maven central (sonatype)
Switch java client to maven central (sonatype)
Markdown
mit
jcc333/tempoiq-java,TempoIQ/tempoiq-java,TempoIQ/tempoiq-java,jcc333/tempoiq-java,tempodb/tempodb-java
markdown
## Code Before: [![Build Status](https://travis-ci.org/tempodb/tempodb-java.png?branch=1.0)](https://travis-ci.org/tempodb/tempodb-java) Releases are available on our maven server. Add the following dependency to your pom. <dependency> <groupId>com.tempodb</groupId> <artifactId>tempodb-java</artifact...
5cfc7caf2183b0446ea3c9e4bbe9042c69d653ff
ktor-samples/ktor-samples-gson/src/io/ktor/samples/gson/GsonApplication.kt
ktor-samples/ktor-samples-gson/src/io/ktor/samples/gson/GsonApplication.kt
package io.ktor.samples.gson import io.ktor.application.* import io.ktor.features.* import io.ktor.gson.* import io.ktor.http.* import io.ktor.response.* import io.ktor.routing.* data class Model(val name: String, val items: List<Item>) data class Item(val key: String, val value: String) /* > curl -v --comp...
package io.ktor.samples.gson import io.ktor.application.* import io.ktor.features.* import io.ktor.gson.* import io.ktor.http.* import io.ktor.response.* import io.ktor.routing.* import java.text.* data class Model(val name: String, val items: List<Item>) data class Item(val key: String, val value: String) /* ...
Add DSL config to the gson-sample
Add DSL config to the gson-sample
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
kotlin
## Code Before: package io.ktor.samples.gson import io.ktor.application.* import io.ktor.features.* import io.ktor.gson.* import io.ktor.http.* import io.ktor.response.* import io.ktor.routing.* data class Model(val name: String, val items: List<Item>) data class Item(val key: String, val value: String) /* ...
9bdc9f6bc2e8d7f34a94751359043b4a40a9fbb3
src/app/mailbox/controller.js
src/app/mailbox/controller.js
// @ngInject module.exports = function($scope, $stateParams, EmailState, API) { var vm = this; vm.emails = []; vm.label = 'inbox'; vm.emailFilter = EmailState.filter; vm.fetchEmails = function(label) { vm.label = label || 'inbox'; var request = vm.label === 'inbox' ? API.getInbox : API.getLabel; ...
// @ngInject module.exports = function($scope, $stateParams, EmailState, API, $interval) { var vm = this; vm.emails = []; vm.label = 'inbox'; vm.emailFilter = EmailState.filter; vm.fetchEmails = function(label) { vm.label = label || 'inbox'; var request = vm.label === 'inbox' ? API.getInbox : API.g...
Add timer to check for new mail
Add timer to check for new mail
JavaScript
mit
taylor1791/ng-conf-2016-workshop,taylor1791/ng-conf-2016-workshop
javascript
## Code Before: // @ngInject module.exports = function($scope, $stateParams, EmailState, API) { var vm = this; vm.emails = []; vm.label = 'inbox'; vm.emailFilter = EmailState.filter; vm.fetchEmails = function(label) { vm.label = label || 'inbox'; var request = vm.label === 'inbox' ? API.getInbox : ...
f0b4e3cc48e61b221fe2db7aa8be38d506dfd69e
lib/disproperty.js
lib/disproperty.js
/** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, get: function() ...
/** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, get: function() ...
Fix AMD and CommonJS were mixed up
Fix AMD and CommonJS were mixed up
JavaScript
mit
vlazar/disproperty
javascript
## Code Before: /** * Disproperty: Disposable properties. * Copyright (c) 2015 Vladislav Zarakovsky * MIT license https://github.com/vlazar/disproperty/blob/master/LICENSE */ (function(root) { function disproperty(obj, prop, value) { return Object.defineProperty(obj, prop, { configurable: true, ...
bbf3a0d8327932bb5589976889129e867134e22f
lib/attribute_normalizer.rb
lib/attribute_normalizer.rb
module AttributeNormalizer def self.included(base) base.extend ClassMethods end module ClassMethods def normalize_attributes(*attributes, &block) attributes.each do |attribute| klass = class << self; self end klass.send :define_method, "normalize_#{attribute}" do |value| ...
module AttributeNormalizer def self.included(base) base.extend ClassMethods end module ClassMethods def normalize_attributes(*attributes, &block) attributes.each do |attribute| klass = class << self; self end klass.send :define_method, "normalize_#{attribute}" do |value| ...
Move the line to its correct position for alias.
Move the line to its correct position for alias.
Ruby
mit
D1plo1d/attribute_normalizer,mdeering/attribute_normalizer
ruby
## Code Before: module AttributeNormalizer def self.included(base) base.extend ClassMethods end module ClassMethods def normalize_attributes(*attributes, &block) attributes.each do |attribute| klass = class << self; self end klass.send :define_method, "normalize_#{attribute}" d...
5f5fe3e92916d1c76cb4aff9fc0a7a18c830e8f6
subprojects/performance/src/templates/java-source/Production.java
subprojects/performance/src/templates/java-source/Production.java
package ${packageName}; public class ${productionClassName} ${extendsAndImplementsClause} { public static ${productionClassName} one() { return new ${productionClassName}(); } private final String property; <% extraFields.each { %> ${it.modifier} ${it.type} ${it.name} = ${it.type}.one(); <% } %> ...
package ${packageName}; import java.util.List; import java.util.Arrays; public class ${productionClassName} ${extendsAndImplementsClause} { public static ${productionClassName} one() { return new ${productionClassName}(); } private final String property; <% extraFields.each { %> ${it.modifier} ${it....
Add arbitrary code to make compile time longer * the original code was too fast to compile to make compile avoidance relevant * the original code didn't represent what we could find in "real" code
Add arbitrary code to make compile time longer * the original code was too fast to compile to make compile avoidance relevant * the original code didn't represent what we could find in "real" code +review REVIEW-5688
Java
apache-2.0
lsmaira/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,lsmaira/gradle,gstevey/gradle,gstevey/gradle,g...
java
## Code Before: package ${packageName}; public class ${productionClassName} ${extendsAndImplementsClause} { public static ${productionClassName} one() { return new ${productionClassName}(); } private final String property; <% extraFields.each { %> ${it.modifier} ${it.type} ${it.name} = ${it.type}.one...
ea93ebf912aba227bcc3bfb9ba95860e4b2938d9
README.md
README.md
geo-paging-example ================== Example of using MongoDB's new `minDistance` option for paging through geo results. Pages through search results for sidewalk cafés near your address. (Café data from [NYC Open Data](https://data.cityofnewyork.us/Business/Sidewalk-Cafes/6k68-kc8u).) Read my [blog post](http://em...
geo-paging-example ================== Example of using MongoDB's new `minDistance` option for paging through geo results. Pages through search results for sidewalk cafés near your address. (Café data from [NYC Open Data](https://data.cityofnewyork.us/Business/Sidewalk-Cafes/6k68-kc8u).) Read my [blog post](http://em...
Add Gianfranco Palumbo as contributor.
Add Gianfranco Palumbo as contributor.
Markdown
apache-2.0
ajdavis/zero-to-app,ajdavis/geo-paging-example,ajdavis/geo-paging-example,ajdavis/zero-to-app,ajdavis/geo-paging-example
markdown
## Code Before: geo-paging-example ================== Example of using MongoDB's new `minDistance` option for paging through geo results. Pages through search results for sidewalk cafés near your address. (Café data from [NYC Open Data](https://data.cityofnewyork.us/Business/Sidewalk-Cafes/6k68-kc8u).) Read my [blog...
c852b2e742ab371784406c72a38973a9a2aba857
install_krb5.sh
install_krb5.sh
yum -y -e1 -d1 install krb5-workstation yum -y -e1 -d1 install kstart k5start
yum -y -e1 -d1 install krb5-workstation epel-release yum -y -e1 -d1 install kstart k5start
Make sure EPEL is installed before installing packages from it.
Make sure EPEL is installed before installing packages from it.
Shell
apache-2.0
teamclairvoyant/hadoop-deployment-bash,teamclairvoyant/hadoop-deployment-bash
shell
## Code Before: yum -y -e1 -d1 install krb5-workstation yum -y -e1 -d1 install kstart k5start ## Instruction: Make sure EPEL is installed before installing packages from it. ## Code After: yum -y -e1 -d1 install krb5-workstation epel-release yum -y -e1 -d1 install kstart k5start
5c7b45283a7417ce98bcc52808fa0c92a97ac35e
src/web_utils/lp_ex.lua
src/web_utils/lp_ex.lua
local lp = require"src.web_utils.lp" local lat = require"src.lib.latclient" local M = { lat = lat } function M.translate (s) lat.js_url = "pub/latclient/js" lat.js_served = false s = lat.translate(s) return lp.translate(s) end function M.setoutfunc (f) lp.setoutfunc(f) end return M
local lp = require"src.web_utils.lp" local lat = require"src.lib.latclient" local M = { lat = lat } function M.translate (s) lat.js_url = "pub/latclient/js" s = lat.translate(s) return lp.translate(s) end function M.setoutfunc (f) lat.js_served = false lp.setoutfunc(f) end return M
Fix JS being served again if translate() is called multiple times
Fix JS being served again if translate() is called multiple times
Lua
mit
Etiene/sailor,felipedaragon/sailor,mpeterv/sailor,Etiene/sailor,noname007/sailor,hallison/sailor,mpeterv/sailor,Etiene/sailor_website,ignacio/sailor,ignacio/sailor,jeary/sailor,sailorproject/sailor,sailorproject/sailor_website,felipedaragon/sailor
lua
## Code Before: local lp = require"src.web_utils.lp" local lat = require"src.lib.latclient" local M = { lat = lat } function M.translate (s) lat.js_url = "pub/latclient/js" lat.js_served = false s = lat.translate(s) return lp.translate(s) end function M.setoutfunc (f) lp.setoutfunc(f) end return M ## Instruc...
4616be4c440eb619395d4732366145d95730d5ce
src/Ojs/JournalBundle/Resources/views/ArticleFile/index.html.twig
src/Ojs/JournalBundle/Resources/views/ArticleFile/index.html.twig
{% extends '::ojsbase.html.twig' %} {% block title %}{{ 'title.article_files'|trans }} {{ parent() }}{% endblock %} {% block breadcrumb %} {% set list = [ {'link': path('dashboard'), 'title': 'dashboard'|trans}, {'title': 'title.article_files'|trans} ] %} {{ breadcrumb(list) }} {% endblock ...
{% extends '::ojsbase.html.twig' %} {% block title %}{{ 'title.article_files'|trans }} {{ parent() }}{% endblock %} {% block breadcrumb %} {% set list = [ {'link': path('dashboard'), 'title': 'dashboard'|trans}, {'title': 'title.article_files'|trans} ] %} {{ breadcrumb(list) }} {% endblock ...
Fix missing parameter problem once again
Fix missing parameter problem once again
Twig
mit
zaferkanbur/ojs,zaferkanbur/ojs,zaferkanbur/ojs
twig
## Code Before: {% extends '::ojsbase.html.twig' %} {% block title %}{{ 'title.article_files'|trans }} {{ parent() }}{% endblock %} {% block breadcrumb %} {% set list = [ {'link': path('dashboard'), 'title': 'dashboard'|trans}, {'title': 'title.article_files'|trans} ] %} {{ breadcrumb(list)...
6a25939169dde7cb31093f3ebf7298a658ed0ab4
lib/repl.js
lib/repl.js
const {VM} = require('vm2') const exec = require('child_process').exec module.exports = { js: code => { const vm = new VM() try { return vm.run(code).toString() } catch (e) { return e.toString(); } }, rb: code => { return new Promise((resolve, reject) => { const unsafe = new...
const {VM} = require('vm2') const exec = require('child_process').exec module.exports = { js: code => { const vm = new VM() try { return vm.run(code).toString() } catch (e) { return e.toString(); } }, rb: code => { return new Promise((resolve, reject) => { const unsafe = new...
Add more keywords to ruby sandbox
Add more keywords to ruby sandbox
JavaScript
mit
josephrexme/sia
javascript
## Code Before: const {VM} = require('vm2') const exec = require('child_process').exec module.exports = { js: code => { const vm = new VM() try { return vm.run(code).toString() } catch (e) { return e.toString(); } }, rb: code => { return new Promise((resolve, reject) => { co...
840643522e32484b1c44352dc095e7369a44ef7b
header_swap_axis.py
header_swap_axis.py
''' Swap the axes in a header, without losing keys to WCS ''' from astropy.wcs import WCS def header_swapaxes(header, ax1, ax2): ''' ''' mywcs = WCS(header) new_hdr = mywcs.swapaxes(ax1, ax2).to_header() lost_keys = list(set(header.keys()) - set(new_hdr.keys())) for key in lost_keys: ...
''' Swap the axes in a header, without losing keys to WCS ''' from astropy.wcs import WCS def header_swapaxes(header, ax1, ax2): ''' ''' mywcs = WCS(header) new_hdr = mywcs.swapaxes(ax1, ax2).to_header() lost_keys = list(set(header.keys()) - set(new_hdr.keys())) for key in lost_keys: ...
Deal with CASA's empty header keywords
Deal with CASA's empty header keywords
Python
mit
e-koch/ewky_scripts,e-koch/ewky_scripts
python
## Code Before: ''' Swap the axes in a header, without losing keys to WCS ''' from astropy.wcs import WCS def header_swapaxes(header, ax1, ax2): ''' ''' mywcs = WCS(header) new_hdr = mywcs.swapaxes(ax1, ax2).to_header() lost_keys = list(set(header.keys()) - set(new_hdr.keys())) for key i...
42a8073c81e3b6fb3d4cbc78bf80303d38014b66
circle.yml
circle.yml
machine: timezone: Europe/Paris node: version: v0.10.35 test: post: - npm run coverage - npm run send-coverage
machine: timezone: Europe/Paris node: version: v0.10.35 environment: COVERALLS_SERVICE_JOB_ID: CIRCLE_BUILD_NUM test: post: - npm run coverage - npm run send-coverage
Use same ID for CircleCI build number and Coveralls Job ID
Use same ID for CircleCI build number and Coveralls Job ID
YAML
mit
viadeo/maglev,noahlange/railsea,mkontula/maglev
yaml
## Code Before: machine: timezone: Europe/Paris node: version: v0.10.35 test: post: - npm run coverage - npm run send-coverage ## Instruction: Use same ID for CircleCI build number and Coveralls Job ID ## Code After: machine: timezone: Europe/Paris node: version: v0.10.35 environm...
9b4cb275442fec1348db8a0f5d821f06803d7857
src/Devture/Bundle/LocalizationBundle/Translation/JsonFileLoader.php
src/Devture/Bundle/LocalizationBundle/Translation/JsonFileLoader.php
<?php namespace Devture\Bundle\LocalizationBundle\Translation; use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\Loader\LoaderInterface; use Symfony\Component\Config\Resource\FileResource; class JsonFileLoader extends ArrayLoader implements LoaderInterface { public function loa...
<?php namespace Devture\Bundle\LocalizationBundle\Translation; use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\Loader\LoaderInterface; use Symfony\Component\Config\Resource\FileResource; class JsonFileLoader extends ArrayLoader implements LoaderInterface { public function loa...
Throw friendly exception on unparseable JSON files
Throw friendly exception on unparseable JSON files PHP 7 has become a little more picky about JSON parsing, which made me stumble into a bug. Some old file was somewhat-incorrectly encoded (contained some long-space character or something), which made PHP 7's JSON parser break. The failure was silently ignored and t...
PHP
bsd-3-clause
devture/silex-localization-bundle
php
## Code Before: <?php namespace Devture\Bundle\LocalizationBundle\Translation; use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\Loader\LoaderInterface; use Symfony\Component\Config\Resource\FileResource; class JsonFileLoader extends ArrayLoader implements LoaderInterface { pub...
9c22a26642a0a86e7d078bdfefcfaa733b30e079
.drone.yml
.drone.yml
build: image: clojure commands: - apt-get install curl - curl --silent --location https://deb.nodesource.com/setup_6.x | bash - - apt-get install -y nodejs - lein cljsbuild test deploy: rsync: user: $$PROD_USER host: $$PROD_HOST port: 22 source: ./docker-compose.yml target: /tm...
build: image: clojure commands: - apt-get install curl - curl --silent --location https://deb.nodesource.com/setup_7.x | bash - - apt-get install -y nodejs - npm i - NODE_PATH=./node_modules lein cljsbuild test deploy: rsync: user: $$PROD_USER host: $$PROD_HOST port: 22 source:...
Add npm install && fix nodepath problem
Add npm install && fix nodepath problem
YAML
epl-1.0
omelhoro/russyll
yaml
## Code Before: build: image: clojure commands: - apt-get install curl - curl --silent --location https://deb.nodesource.com/setup_6.x | bash - - apt-get install -y nodejs - lein cljsbuild test deploy: rsync: user: $$PROD_USER host: $$PROD_HOST port: 22 source: ./docker-compose.yml...
72bf88a005212bc8cac60784901736f117773070
app/assets/stylesheets/footer.css.scss
app/assets/stylesheets/footer.css.scss
@import "common"; @media only screen and (max-width: 960px) { footer { padding-left: 15px; padding-right: 15px; } } footer .the-button { display: block; margin: auto; margin-top: 10px; text-align: center; } footer .star-header { margin-top: 0px; margin-bottom: 14px; border-top: 2px solid $b...
@import "common"; @media only screen and (max-width: 960px) { footer { padding-left: 15px; padding-right: 15px; } } footer .the-button { display: block; margin: auto; margin-top: 10px; text-align: center; } footer .star-header { margin-top: 0px; margin-bottom: 14px; border-top: 2px solid $b...
Clean up most recent tweet style
Clean up most recent tweet style
SCSS
mit
coshx/coshx,coshx/coshx,coshx/coshx
scss
## Code Before: @import "common"; @media only screen and (max-width: 960px) { footer { padding-left: 15px; padding-right: 15px; } } footer .the-button { display: block; margin: auto; margin-top: 10px; text-align: center; } footer .star-header { margin-top: 0px; margin-bottom: 14px; border-t...
ed4618592388ff238f6b4fe7faa0d92b8d75e0fc
app/src/main/res/values/strings.xml
app/src/main/res/values/strings.xml
<resources> <string name="app_name">kynan_Assignment_1</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string> <string name="title_activity_single_play">SinglePlayActivity</string> <string name="title_activity_ativity_twoplayers">ativity_twoplayers...
<resources> <string name="app_name">kynan-reflex</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string> <string name="title_activity_single_play">SinglePlayActivity</string> <string name="title_activity_ativity_twoplayers">ativity_twoplayers</stri...
Change Application to be kynan-reflex
Change Application to be kynan-reflex
XML
apache-2.0
PHD-You/kynan_Assignment1
xml
## Code Before: <resources> <string name="app_name">kynan_Assignment_1</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string> <string name="title_activity_single_play">SinglePlayActivity</string> <string name="title_activity_ativity_twoplayers">at...
095e560a67fe34bd766b996233f688fd15366f34
lib/ext/heroku/command/deploy.rb
lib/ext/heroku/command/deploy.rb
class Heroku::Command::Deploy < Heroku::Command::Base # deploy # # deploy a ref (usually, the current HEAD) # # -m, --migrate # run migrations after deploy # -b, --backup # perform a backup before migrating # -v, --verbose # be verbose # def index push && pushed end private # Push d...
class Heroku::Command::Deploy < Heroku::Command::Base # deploy # # deploy a ref (usually, the current HEAD) # # -m, --migrate # run migrations after deploy # -b, --backup # perform a backup before migrating # -v, --verbose # be verbose # def index push && pushed end private # Push d...
Tidy up things a bit.
Tidy up things a bit.
Ruby
mit
mojotech/heroku-deploy
ruby
## Code Before: class Heroku::Command::Deploy < Heroku::Command::Base # deploy # # deploy a ref (usually, the current HEAD) # # -m, --migrate # run migrations after deploy # -b, --backup # perform a backup before migrating # -v, --verbose # be verbose # def index push && pushed end privat...
cb2a7f005cd7821747b85d47160b7e5ec703f80b
addon/templates/components/place-autocomplete-field.hbs
addon/templates/components/place-autocomplete-field.hbs
{{#if hasBlock}} {{yield this}} {{else}} {{input value=value classBinding="inputClass" tabindex=tabindex disabled=disabled focus-out='focusOut' placeholder=placeholder bubbles=true}} {{/if}}
{{#if hasBlock}} {{yield this}} {{else}} {{input value=value classBinding="inputClass" tabindex=tabindex disabled=disabled focus-out=(action 'focusOut') placeholder=placeholder bubbles=true}} {{/if}}
Use action helper to set focus-out action
fix: Use action helper to set focus-out action
Handlebars
mit
dmuneras/ember-place-autocomplete,dmuneras/ember-place-autocomplete
handlebars
## Code Before: {{#if hasBlock}} {{yield this}} {{else}} {{input value=value classBinding="inputClass" tabindex=tabindex disabled=disabled focus-out='focusOut' placeholder=placeholder bubbles=true}} {{/if}} ## Instruction: fix: Use action helper to set foc...
2b46b7eb34a2383c62f51b4cd6cb365f769f588d
app/src/main/java/com/ibm/mil/smartringer/RingerAdjusterService.java
app/src/main/java/com/ibm/mil/smartringer/RingerAdjusterService.java
package com.ibm.mil.smartringer; import android.app.IntentService; import android.content.Intent; import android.media.AudioManager; import android.util.Log; public class RingerAdjusterService extends IntentService { private static final String TAG = RingerAdjusterService.class.getName(); private static final...
package com.ibm.mil.smartringer; import android.app.IntentService; import android.content.Intent; import android.media.AudioManager; import android.util.Log; public class RingerAdjusterService extends IntentService { private static final String TAG = RingerAdjusterService.class.getName(); public RingerAdjust...
Remove unnecessary string constants from service
Remove unnecessary string constants from service
Java
apache-2.0
jpetitto/android-smart-ringer
java
## Code Before: package com.ibm.mil.smartringer; import android.app.IntentService; import android.content.Intent; import android.media.AudioManager; import android.util.Log; public class RingerAdjusterService extends IntentService { private static final String TAG = RingerAdjusterService.class.getName(); priv...
afc8e433c74ecf61645854295201ba5e30573b67
app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user, :logged_in? private def require_user if not logged_in? redirect_to login_page_path end end def current_user @current_user ||= begin User.find(session[:user_id]) if session[:user...
class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user, :logged_in? private def require_user if not logged_in? redirect_to login_page_path end end def current_user if Rails.env.development? @current_user ||= User.where(:name => 'Andr...
Use specific user in development
Use specific user in development
Ruby
mit
AndrewRadev/daily-sites,AndrewRadev/daily-sites,AndrewRadev/daily-sites,AndrewRadev/daily-sites
ruby
## Code Before: class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user, :logged_in? private def require_user if not logged_in? redirect_to login_page_path end end def current_user @current_user ||= begin User.find(session[:user_id]) ...