commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
9be03ec02b0d5a98ef0b32fd66432dce06cbd079
README.md
README.md
Calorisaur ========== http://calorisaur.com A simple calorie tracker which uses a lovable but hungry dinosaur to guilt you into recording calorie counts Development ----------- The basic environment follows the guidance of http://angular-rails.com/, with deployment using Heroku. There are some slight deviations fro...
**⚠️ This project was never finished and is not maintained. It has been archived and will not receive future updates. ⚠️** Calorisaur ========== http://calorisaur.com A simple calorie tracker which uses a lovable but hungry dinosaur to guilt you into recording calorie counts Development ----------- The basic envir...
Add deprecation/archive notice to readme
Add deprecation/archive notice to readme
Markdown
apache-2.0
dbjorge/Calorisaur,dbjorge/Calorisaur,dbjorge/Calorisaur
markdown
## Code Before: Calorisaur ========== http://calorisaur.com A simple calorie tracker which uses a lovable but hungry dinosaur to guilt you into recording calorie counts Development ----------- The basic environment follows the guidance of http://angular-rails.com/, with deployment using Heroku. There are some sligh...
+ **⚠️ This project was never finished and is not maintained. It has been archived and will not receive future updates. ⚠️** + Calorisaur ========== http://calorisaur.com A simple calorie tracker which uses a lovable but hungry dinosaur to guilt you into recording calorie counts Development ------...
2
0.090909
2
0
ee6af762a832f2ec3e5416d4095e31bdb4d0ba65
adapters/sinatra_adapter.rb
adapters/sinatra_adapter.rb
require "forwardable" class SinatraAdapter extend Forwardable def initialize(sinatra_app) @sinatra_app = sinatra_app end def success(content) status(200) json_body(content) return_nil_so_sinatra_does_not_double_render end def created(content = "") status(201) json_body(content) ...
require "forwardable" class SinatraAdapter extend Forwardable def initialize(sinatra_app) @sinatra_app = sinatra_app end def params sinatra_app.request.params end def success(content) status(200) json_body(content) return_nil_so_sinatra_does_not_double_render end def created(con...
Remove junk params added by Sinatra
Remove junk params added by Sinatra
Ruby
mit
gds-attic/finder-api,gds-attic/finder-api
ruby
## Code Before: require "forwardable" class SinatraAdapter extend Forwardable def initialize(sinatra_app) @sinatra_app = sinatra_app end def success(content) status(200) json_body(content) return_nil_so_sinatra_does_not_double_render end def created(content = "") status(201) json...
require "forwardable" class SinatraAdapter extend Forwardable def initialize(sinatra_app) @sinatra_app = sinatra_app + end + + def params + sinatra_app.request.params end def success(content) status(200) json_body(content) return_nil_so_sinatra_does_not_doub...
6
0.157895
5
1
5d2098b0f087b2225a412812e9ce3f8e9b0822b9
src/third-party/bootstrap/plugins/echo-button.css
src/third-party/bootstrap/plugins/echo-button.css
.echo-sdk-ui .btn .echo-label { float: left; } .echo-sdk-ui .btn .echo-icon { height: 16px; width: 16px; float: left; margin-right: 2px; margin-top: 2px; }
.echo-sdk-ui .btn .echo-label { float: left; width: auto; height: auto; } .echo-sdk-ui .btn .echo-icon { height: 16px; width: 16px; float: left; margin-right: 2px; margin-top: 2px; }
Define default dimensions for button
Define default dimensions for button
CSS
apache-2.0
EchoAppsTeam/js-sdk,EchoAppsTeam/js-sdk
css
## Code Before: .echo-sdk-ui .btn .echo-label { float: left; } .echo-sdk-ui .btn .echo-icon { height: 16px; width: 16px; float: left; margin-right: 2px; margin-top: 2px; } ## Instruction: Define default dimensions for button ## Code After: .echo-sdk-ui .btn .echo-label { float: left; width: auto; height: aut...
.echo-sdk-ui .btn .echo-label { float: left; + width: auto; + height: auto; } .echo-sdk-ui .btn .echo-icon { height: 16px; width: 16px; float: left; margin-right: 2px; margin-top: 2px; }
2
0.2
2
0
691daf6865fd73d3ed52f94181b0c93e5b19aa50
lib/puppet-parse/puppet-parse.rb
lib/puppet-parse/puppet-parse.rb
require 'puppet-parse' require 'rake' require 'rake/tasklib' desc 'Run puppet-parse' task :parse do matched_files = FileList['**/*.pp'] run = PuppetParse::Runner.new puts run.run(matched_files.to_a).to_yaml end
require 'puppet-parse' require 'rake' require 'rake/tasklib' desc 'Run puppet-parse' task :parse do matched_files = FileList['**/*.pp'] if ignore_paths = PuppetParse.configuration.ignore_paths matched_files = matched_files.exclude(*ignore_paths) end run = PuppetParse::Runner.new puts run.run(matched_f...
Add support for excluding paths from rake task
Add support for excluding paths from rake task
Ruby
mit
johanek/puppet-parse
ruby
## Code Before: require 'puppet-parse' require 'rake' require 'rake/tasklib' desc 'Run puppet-parse' task :parse do matched_files = FileList['**/*.pp'] run = PuppetParse::Runner.new puts run.run(matched_files.to_a).to_yaml end ## Instruction: Add support for excluding paths from rake task ## Code After: requ...
require 'puppet-parse' require 'rake' require 'rake/tasklib' desc 'Run puppet-parse' task :parse do matched_files = FileList['**/*.pp'] + + if ignore_paths = PuppetParse.configuration.ignore_paths + matched_files = matched_files.exclude(*ignore_paths) + end + run = PuppetParse::Runner....
5
0.454545
5
0
7e88739d91cd7db35ffb36804ae59d1878eb2da3
setup.py
setup.py
import os from distutils.core import setup requirements = map(str.strip, open('requirements.txt').readlines()) setup( name='py_eventsocket', version='0.1.4', author="Aaron Westendorf", author_email="aaron@agoragames.com", packages = ['eventsocket'], url='https://github.com/agoragames/py-events...
import os from distutils.core import setup requirements = map(str.strip, open('requirements.txt').readlines()) setup( name='py_eventsocket', version='0.1.4', author="Aaron Westendorf", author_email="aaron@agoragames.com", url='https://github.com/agoragames/py-eventsocket', license='LICENSE.txt...
Use py_modules and not packages
Use py_modules and not packages
Python
bsd-3-clause
agoragames/py-eventsocket
python
## Code Before: import os from distutils.core import setup requirements = map(str.strip, open('requirements.txt').readlines()) setup( name='py_eventsocket', version='0.1.4', author="Aaron Westendorf", author_email="aaron@agoragames.com", packages = ['eventsocket'], url='https://github.com/agor...
import os from distutils.core import setup requirements = map(str.strip, open('requirements.txt').readlines()) setup( name='py_eventsocket', version='0.1.4', author="Aaron Westendorf", author_email="aaron@agoragames.com", - packages = ['eventsocket'], url='https://github....
2
0.071429
1
1
cf554b46362b3290256323cbb86473909b90ccdd
run.sh
run.sh
if [ -z "$LOGGLY_AUTH_TOKEN" ]; then echo "Missing \$LOGGLY_AUTH_TOKEN" exit 1 fi # Fail if LOGGLY_TAG is not set if [ -z "$LOGGLY_TAG" ]; then echo "Missing \$LOGGLY_TAG" exit 1 fi # Create spool directory mkdir -p /var/spool/rsyslog # Replace variables sed -i "s/LOGGLY_AUTH_TOKEN/$LOGGLY_AUTH_TOKEN/" /etc/...
if [ -z "$LOGGLY_AUTH_TOKEN" ]; then echo "Missing \$LOGGLY_AUTH_TOKEN" exit 1 fi # Fail if LOGGLY_TAG is not set if [ -z "$LOGGLY_TAG" ]; then echo "Missing \$LOGGLY_TAG" exit 1 fi # Create spool directory mkdir -p /var/spool/rsyslog # Expand multiple tags, in the format of tag1:tag2:tag3, into several tag ...
Add support for multiple tags.
Add support for multiple tags.
Shell
mit
vladgh/loggly-docker,aalness/loggly-docker,sendgridlabs/loggly-docker
shell
## Code Before: if [ -z "$LOGGLY_AUTH_TOKEN" ]; then echo "Missing \$LOGGLY_AUTH_TOKEN" exit 1 fi # Fail if LOGGLY_TAG is not set if [ -z "$LOGGLY_TAG" ]; then echo "Missing \$LOGGLY_TAG" exit 1 fi # Create spool directory mkdir -p /var/spool/rsyslog # Replace variables sed -i "s/LOGGLY_AUTH_TOKEN/$LOGGLY_AU...
if [ -z "$LOGGLY_AUTH_TOKEN" ]; then echo "Missing \$LOGGLY_AUTH_TOKEN" exit 1 fi # Fail if LOGGLY_TAG is not set if [ -z "$LOGGLY_TAG" ]; then echo "Missing \$LOGGLY_TAG" exit 1 fi # Create spool directory mkdir -p /var/spool/rsyslog + # Expand multiple tags, in the format of tag...
3
0.142857
3
0
f5640dc7378e72a226e393c5bde7f553d1cd4fe3
test/testzillians-compiler/CMakeLists.txt
test/testzillians-compiler/CMakeLists.txt
ADD_SUBDIRECTORY(SimpleGrammarTest) ADD_SUBDIRECTORY(TreeWalkerTest) ADD_SUBDIRECTORY(PTXCodeGenTest) ADD_SUBDIRECTORY(PTXParserTest) ADD_SUBDIRECTORY(LLVM_IR_Test) ADD_SUBDIRECTORY(PTXParserTest-RealExecute) ADD_SUBDIRECTORY(CodeGenCommonTest) ADD_SUBDIRECTORY(PTXFunctionMapperBasicTest) ADD_SUBDIRECTORY(PTXFunction...
ADD_SUBDIRECTORY(SimpleGrammarTest) ADD_SUBDIRECTORY(TreeWalkerTest) ADD_SUBDIRECTORY(PTXCodeGenTest) ADD_SUBDIRECTORY(PTXParserTest) ADD_SUBDIRECTORY(LLVM_IR_Test) ADD_SUBDIRECTORY(PTXParserTest-RealExecute) ADD_SUBDIRECTORY(CodeGenCommonTest) ADD_SUBDIRECTORY(LLVMFunctionMapperBasicTest) ADD_SUBDIRECTORY(PTXFunctio...
Fix compilation error for TypeHelper.h
Fix compilation error for TypeHelper.h
Text
agpl-3.0
zillians/supercell_language,zillians/supercell_language,zillians/supercell_language,zillians/supercell_language,zillians/supercell_language
text
## Code Before: ADD_SUBDIRECTORY(SimpleGrammarTest) ADD_SUBDIRECTORY(TreeWalkerTest) ADD_SUBDIRECTORY(PTXCodeGenTest) ADD_SUBDIRECTORY(PTXParserTest) ADD_SUBDIRECTORY(LLVM_IR_Test) ADD_SUBDIRECTORY(PTXParserTest-RealExecute) ADD_SUBDIRECTORY(CodeGenCommonTest) ADD_SUBDIRECTORY(PTXFunctionMapperBasicTest) ADD_SUBDIREC...
ADD_SUBDIRECTORY(SimpleGrammarTest) ADD_SUBDIRECTORY(TreeWalkerTest) ADD_SUBDIRECTORY(PTXCodeGenTest) ADD_SUBDIRECTORY(PTXParserTest) ADD_SUBDIRECTORY(LLVM_IR_Test) ADD_SUBDIRECTORY(PTXParserTest-RealExecute) ADD_SUBDIRECTORY(CodeGenCommonTest) + ADD_SUBDIRECTORY(LLVMFunctionMapperBasicTest) ADD_S...
1
0.090909
1
0
18809ce25afa59e318ecf5ccab7e0d102fa982c9
chrome_extension/client.js
chrome_extension/client.js
(function($){ $.appendSolveButton = function () { var $solve = $(document.createElement('div')).text('solve').css({ cursor: 'pointer', position: 'fixed', left: 0, bottom: 0, padding: '1em 2em', color: 'white', backgroundColor: 'rgba(0, 0, 255, .4)', zIndex: 21474836...
(function($){ $.appendSolveButton = function () { var $solve = $(document.createElement('div')).text('solve').css({ cursor: 'pointer', position: 'fixed', left: 0, bottom: 0, padding: '1em 2em', color: 'white', backgroundColor: 'rgba(0, 0, 255, .4)', zIndex: 21474836...
Add handler for extension's request error
Add handler for extension's request error
JavaScript
mit
en30/online-judge-helper,en30/online-judge-helper,en30/online-judge-helper
javascript
## Code Before: (function($){ $.appendSolveButton = function () { var $solve = $(document.createElement('div')).text('solve').css({ cursor: 'pointer', position: 'fixed', left: 0, bottom: 0, padding: '1em 2em', color: 'white', backgroundColor: 'rgba(0, 0, 255, .4)', ...
(function($){ $.appendSolveButton = function () { var $solve = $(document.createElement('div')).text('solve').css({ cursor: 'pointer', position: 'fixed', left: 0, bottom: 0, padding: '1em 2em', color: 'white', backgroundColor: 'rgba(0, 0, 255, .4)', ...
6
0.3
5
1
f999d6c573136ded1ddc45854c3dfa430b0d22bd
test/koans/comprehensions_koans_test.exs
test/koans/comprehensions_koans_test.exs
defmodule ComprehensionsTests do use ExUnit.Case import TestHarness test "Comprehensions" do answers = [ [1, 4, 9, 16], [1, 4, 9, 16], ["Hello World", "Apple Pie"], ["little dogs", "little cats", "big dogs", "big cats"], [4, 5, 6], ["Apple Pie", "Pecan Pie", "Pu...
defmodule ComprehensionsTests do use ExUnit.Case import TestHarness test "Comprehensions" do answers = [ [1, 4, 9, 16], [1, 4, 9, 16], ["Hello World", "Apple Pie"], ["little dogs", "little cats", "big dogs", "big cats"], [4, 5, 6], %{"Pecan" => "Pecan Pie", "Pum...
Update the comprehensions test to match the actual koan
Update the comprehensions test to match the actual koan
Elixir
mit
elixirkoans/elixir-koans
elixir
## Code Before: defmodule ComprehensionsTests do use ExUnit.Case import TestHarness test "Comprehensions" do answers = [ [1, 4, 9, 16], [1, 4, 9, 16], ["Hello World", "Apple Pie"], ["little dogs", "little cats", "big dogs", "big cats"], [4, 5, 6], ["Apple Pie", "Pecan Pie"...
defmodule ComprehensionsTests do use ExUnit.Case import TestHarness test "Comprehensions" do answers = [ [1, 4, 9, 16], [1, 4, 9, 16], ["Hello World", "Apple Pie"], ["little dogs", "little cats", "big dogs", "big cats"], [4, 5, 6], - ["Apple Pie", "Pe...
2
0.111111
1
1
409cce30a09d2554d1058a44c2b6e576417535da
README.md
README.md
TYPO3 Neos Blog Plugin ====================== This plugin provides a node-based plugin for TYPO3 Neos websites. Note: this package is still experimental and may change heavily in the near future.
TYPO3 Neos Blog Plugin ====================== This plugin provides a node-based plugin for TYPO3 Neos websites. Note: this package is still experimental and may change heavily in the near future. Quick start ----------- * include the Plugin's route definitions to your `Routes.yaml` file, just like ```yaml - name:...
Expand readme with a quick start
[FEATURE] Expand readme with a quick start This adds some lines how to get really started with the blog plugin. Closes #1
Markdown
mit
robertlemke/RobertLemke.Plugin.Blog,robertlemke/RobertLemke.Plugin.Blog,million12/Neos.Plugin.Blog,million12/Neos.Plugin.Blog,robertlemke/RobertLemke.Plugin.Blog
markdown
## Code Before: TYPO3 Neos Blog Plugin ====================== This plugin provides a node-based plugin for TYPO3 Neos websites. Note: this package is still experimental and may change heavily in the near future. ## Instruction: [FEATURE] Expand readme with a quick start This adds some lines how to get really started...
TYPO3 Neos Blog Plugin ====================== This plugin provides a node-based plugin for TYPO3 Neos websites. Note: this package is still experimental and may change heavily in the near future. + + Quick start + ----------- + * include the Plugin's route definitions to your `Routes.yaml` file, just lik...
21
3.5
21
0
5127fe15793fd2a35af77f7f57a71f905ddaf2a3
test/croonga.test.js
test/croonga.test.js
var http = require('http'); var should = require('should'); var spawn = require('child_process').spawn; function run(options, callback) { var command, commandPath, output; commandPath = __dirname + '/../bin/croonga'; command = spawn(commandPath, options); output = { stdout: '', stderr: '' }; comman...
var http = require('http'); var should = require('should'); var spawn = require('child_process').spawn; function run(options, callback) { var command, commandPath, output; commandPath = __dirname + '/../bin/croonga'; command = spawn(commandPath, options); output = { stdout: '', stderr: '' }; comman...
Check status code returned from croonga command
Check status code returned from croonga command
JavaScript
mit
groonga/gcs,groonga/gcs
javascript
## Code Before: var http = require('http'); var should = require('should'); var spawn = require('child_process').spawn; function run(options, callback) { var command, commandPath, output; commandPath = __dirname + '/../bin/croonga'; command = spawn(commandPath, options); output = { stdout: '', stderr: ...
var http = require('http'); var should = require('should'); var spawn = require('child_process').spawn; function run(options, callback) { var command, commandPath, output; commandPath = __dirname + '/../bin/croonga'; command = spawn(commandPath, options); output = { stdout: '', st...
3
0.096774
2
1
b03d985cd1a43760c4acfc038e2b53502f43aa42
simul/app/components/story.js
simul/app/components/story.js
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; class Story extends Component{ onProfilePressed() { this.props.navigator.push({ title: 'Story', component: Profile }) } render() { return ( <View style={s...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; class Story extends Component{ onProfilePressed() { this.props.navigator.push({ title: 'Story', component: Profile }) } render() { return ( <View style={s...
Move button to top-left, need to adjust margins and padding
Move button to top-left, need to adjust margins and padding
JavaScript
mit
sf-red-pandas-2016/simul-react-native,sf-red-pandas-2016/simul-react-native,sf-red-pandas-2016/simul-react-native
javascript
## Code Before: import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; class Story extends Component{ onProfilePressed() { this.props.navigator.push({ title: 'Story', component: Profile }) } render() { return ( ...
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; class Story extends Component{ onProfilePressed() { this.props.navigator.push({ title: 'Story', component: Profile }) } render...
22
0.314286
12
10
5bcc4ae60f89fbcadad234e0d6b9a755d28aab5d
pavement.py
pavement.py
import subprocess from paver.easy import * def call(*args, **kwargs): return subprocess.call(args, **kwargs) @task def build(): """Package up the app.""" call('palm-package', '.') @task def halt(): call('palm-launch', '--device=emulator', '-c', 'org.markpasc.paperplain') @task @needs('halt') def ...
import subprocess from paver.easy import * def call(*args, **kwargs): return subprocess.call(args, **kwargs) @task def build(): """Package up the app.""" call('palm-package', '.') @task def halt(): call('palm-launch', '--device=emulator', '-c', 'org.markpasc.paperplain') @task @needs('halt') def ...
Handle ctrl-C-ing out of palm-log
Handle ctrl-C-ing out of palm-log
Python
mit
markpasc/paperplain,markpasc/paperplain
python
## Code Before: import subprocess from paver.easy import * def call(*args, **kwargs): return subprocess.call(args, **kwargs) @task def build(): """Package up the app.""" call('palm-package', '.') @task def halt(): call('palm-launch', '--device=emulator', '-c', 'org.markpasc.paperplain') @task @ne...
import subprocess from paver.easy import * def call(*args, **kwargs): return subprocess.call(args, **kwargs) @task def build(): """Package up the app.""" call('palm-package', '.') @task def halt(): call('palm-launch', '--device=emulator', '-c', 'org.markpasc.paper...
5
0.142857
4
1
c6cf49bba44bbc707f633d1f8bf060d721660f8d
features/spotlight.feature
features/spotlight.feature
Feature: spotlight @normal Scenario: I can access the homepage When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance Then I should receive an HTTP 200 And I should see a strong ETag
Feature: spotlight @normal Scenario: I can access the homepage Given I am benchmarking When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance Then I should receive an HTTP 200 And I should see a strong ETag And the elapsed time should be less than 2 second
Check that response times are not horrendous
Check that response times are not horrendous Ideally it would be less than 1 second, but being lenient for now. Once we have a webpagetest instance polling this, we’ll have more confidence in bringing this down.
Cucumber
mit
alphagov/pp-smokey,alphagov/pp-smokey,alphagov/pp-smokey
cucumber
## Code Before: Feature: spotlight @normal Scenario: I can access the homepage When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance Then I should receive an HTTP 200 And I should see a strong ETag ## Instruction: Check that response times are not horrendous Ideally it would be less than 1 ...
Feature: spotlight @normal Scenario: I can access the homepage + Given I am benchmarking When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance Then I should receive an HTTP 200 And I should see a strong ETag + And the elapsed time should be less than 2 second
2
0.285714
2
0
a59d64c52c05e3afe9da86fc523ac2597f040cf5
src/app/components/players/player/player.controller.js
src/app/components/players/player/player.controller.js
export default class PlayerController { constructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) { 'ngInject'; this.$rootScope = $rootScope; this.$scope = $scope; this.$log = $log; this._ = _; this.gameModel = gameModel.model; this.playerModel = playerMod...
export default class PlayerController { constructor($rootScope, $scope, $localStorage, $log, _, playersApi, playersStore, playerModel, websocket) { 'ngInject'; this.$rootScope = $rootScope; this.$scope = $scope; this.$log = $log; this._ = _; this.playerModel = playerModel; this.playersApi = playersApi;...
Add logic for player to 'store' cards before they discard
Add logic for player to 'store' cards before they discard
JavaScript
unlicense
ejwaibel/squarrels,ejwaibel/squarrels
javascript
## Code Before: export default class PlayerController { constructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) { 'ngInject'; this.$rootScope = $rootScope; this.$scope = $scope; this.$log = $log; this._ = _; this.gameModel = gameModel.model; this.playerM...
export default class PlayerController { - constructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) { ? ^ ^ ^^^^^ + constructor($rootScope, $scope, $localStorage, $log, _, playersApi, playersStore, playerModel...
47
1.46875
42
5
03a7507e13b84eb3ddd6fad31832e99825977895
Include/SQLiteDatabaseHelper/SQLiteDatabaseHelper.h
Include/SQLiteDatabaseHelper/SQLiteDatabaseHelper.h
// // SQLiteDatabaseHelper // Include/SQLiteDatabaseHelper.h // #ifndef __SQLITEDATABASEHELPER_H__ #define __SQLITEDATABASEHELPER_H__ #include <stdio.h> #include <sqlite3.h> #endif
// // SQLiteDatabaseHelper // Include/SQLiteDatabaseHelper.h // #ifndef __SQLITEDATABASEHELPER_H__ #define __SQLITEDATABASEHELPER_H__ #include <SQLiteDatabaseHelper/Operations/Read/DatabaseReader.h> #endif
Include database reader in main library header
Include database reader in main library header Signed-off-by: Gigabyte-Giant <a7441177296edab3db25b9cdf804d04c1ff0afbf@hotmail.com>
C
mit
Gigabyte-Giant/SQLiteDatabaseHelper
c
## Code Before: // // SQLiteDatabaseHelper // Include/SQLiteDatabaseHelper.h // #ifndef __SQLITEDATABASEHELPER_H__ #define __SQLITEDATABASEHELPER_H__ #include <stdio.h> #include <sqlite3.h> #endif ## Instruction: Include database reader in main library header Signed-off-by: Gigabyte-Giant <a7441177296edab3db25b9cdf...
// // SQLiteDatabaseHelper // Include/SQLiteDatabaseHelper.h // #ifndef __SQLITEDATABASEHELPER_H__ #define __SQLITEDATABASEHELPER_H__ + #include <SQLiteDatabaseHelper/Operations/Read/DatabaseReader.h> - #include <stdio.h> - - #include <sqlite3.h> #endif
4
0.333333
1
3
de377608d9f18fd239e52d9357df67f0c228a509
app/assets/javascripts/components/app.es6.jsx
app/assets/javascripts/components/app.es6.jsx
class App extends React.Component { constructor(){ super(); this.state = { possibleVenues: [], midpoint: [], detailsView: {}, lat: 40.705116, lng: -74.00883, choices: [ { name: "freedomTower", lat: 40.713230, lng: -74.013367 }, ...
class App extends React.Component { constructor(){ super(); this.state = { possibleVenues: [], midpoint: [], detailsView: {}, lat: 40.705116, lng: -74.00883, choices: [ { name: "freedomTower", lat: 40.713230, lng: -74.013367 }, ...
Add in handle click bind.
Add in handle click bind.
JSX
mit
nyc-wolves-2016/FrienDiagram,nyc-wolves-2016/FrienDiagram,nyc-wolves-2016/FrienDiagram
jsx
## Code Before: class App extends React.Component { constructor(){ super(); this.state = { possibleVenues: [], midpoint: [], detailsView: {}, lat: 40.705116, lng: -74.00883, choices: [ { name: "freedomTower", lat: 40.713230, lng: -74.01...
class App extends React.Component { constructor(){ super(); this.state = { possibleVenues: [], midpoint: [], detailsView: {}, lat: 40.705116, lng: -74.00883, choices: [ { name: "freedomTower", lat: 40.713230, ...
1
0.020833
1
0
9e7aed847c2d5fcd6e00bc787d8b3558b590f605
api/logs/urls.py
api/logs/urls.py
from django.conf.urls import url from api.logs import views urlpatterns = [ url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name), url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name), ]
from django.conf.urls import url from api.logs import views urlpatterns = [ url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name), url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name), url(r'^(?P<log_id>\w+)/added_contribut...
Add /v2/logs/log_id/added_contributors/ to list of URL's.
Add /v2/logs/log_id/added_contributors/ to list of URL's.
Python
apache-2.0
abought/osf.io,mfraezz/osf.io,TomHeatwole/osf.io,chennan47/osf.io,RomanZWang/osf.io,alexschiller/osf.io,billyhunt/osf.io,crcresearch/osf.io,saradbowman/osf.io,acshi/osf.io,jnayak1/osf.io,RomanZWang/osf.io,emetsger/osf.io,KAsante95/osf.io,zachjanicki/osf.io,mattclark/osf.io,RomanZWang/osf.io,emetsger/osf.io,monikagrabow...
python
## Code Before: from django.conf.urls import url from api.logs import views urlpatterns = [ url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name), url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name), ] ## Instruction: Add /v2...
from django.conf.urls import url from api.logs import views urlpatterns = [ url(r'^(?P<log_id>\w+)/$', views.NodeLogDetail.as_view(), name=views.NodeLogDetail.view_name), url(r'^(?P<log_id>\w+)/nodes/$', views.LogNodeList.as_view(), name=views.LogNodeList.view_name), + url(r'^(?P<log_id>\w+)...
1
0.125
1
0
d1a447684650eb362bc8d4dfa9694b530d0111ca
example-apps/running/web-server/service.yml
example-apps/running/web-server/service.yml
name: test app web server description: serves simple HTML pages as part of the test app setup: npm install --loglevel error --depth 0 startup: command: node_modules/livescript/bin/lsc server.ls online-text: web server running at port messages: sends: - users.list - users.create receives: - users....
name: test app web server description: serves simple HTML pages as part of the test app setup: npm install --loglevel error --depth 0 startup: command: node_modules/.bin/lsc server.ls online-text: web server running at port messages: sends: - users.list - users.create receives: - users.listed ...
Use properly exported Livescript binary
Use properly exported Livescript binary
YAML
mit
Originate/exosphere,Originate/exosphere,Originate/exosphere,Originate/exosphere
yaml
## Code Before: name: test app web server description: serves simple HTML pages as part of the test app setup: npm install --loglevel error --depth 0 startup: command: node_modules/livescript/bin/lsc server.ls online-text: web server running at port messages: sends: - users.list - users.create receiv...
name: test app web server description: serves simple HTML pages as part of the test app setup: npm install --loglevel error --depth 0 startup: - command: node_modules/livescript/bin/lsc server.ls ? ^^^^^^^^^^^ + command: node_modules/.bin/lsc server.ls ? ^...
2
0.125
1
1
322f07f6068ebdb0ede75090207e1e2f6023284f
src/livescript/components/Constants.ls
src/livescript/components/Constants.ls
module.exports = INACTIVE_ICON_PATH: \19 : 'assets/19-inactive.png' \38 : 'assets/19-inactive@2x.png' ACTIVE_ICON_PATH: \19 : 'assets/19-active.png' \38 : 'assets/19-active@2x.png'
module.exports = EXTENSION_ID: 'eeabdaneafdojlhagbcpiiplpmabhnhl' INACTIVE_ICON_PATH: \19 : 'assets/19-inactive.png' \38 : 'assets/19-inactive@2x.png' ACTIVE_ICON_PATH: \19 : 'assets/19-active.png' \38 : 'assets/19-active@2x.png'
Add EXTENSION_ID to app-wide constants.ls
Add EXTENSION_ID to app-wide constants.ls
LiveScript
mit
MrOrz/SeeSS
livescript
## Code Before: module.exports = INACTIVE_ICON_PATH: \19 : 'assets/19-inactive.png' \38 : 'assets/19-inactive@2x.png' ACTIVE_ICON_PATH: \19 : 'assets/19-active.png' \38 : 'assets/19-active@2x.png' ## Instruction: Add EXTENSION_ID to app-wide constants.ls ## Code After: module.exports = EXTENSIO...
module.exports = + EXTENSION_ID: 'eeabdaneafdojlhagbcpiiplpmabhnhl' INACTIVE_ICON_PATH: \19 : 'assets/19-inactive.png' \38 : 'assets/19-inactive@2x.png' ACTIVE_ICON_PATH: \19 : 'assets/19-active.png' \38 : 'assets/19-active@2x.png'
1
0.125
1
0
8f14d360064792b08887ae02a1493f7f19d4b2ff
README.rst
README.rst
========= pyrax-cmd ========= Rackspace `Pyrax <https://github.com/rackspace/pyrax>`_ cloud files command line client. Features: * ls - list object names in a container * status - show the container status * rename - rename an object in a container * upload - upload files/folders to your cloudfiles container It's ...
========= pyrax-cmd ========= Rackspace `Pyrax <https://github.com/rackspace/pyrax>`_ cloud files command line client. Features: * ls - list object names in a container * status - show the container status * rename - rename an object in a container * upload - upload files/folders to your cloudfiles container It's ...
Rework install docs; add note about officialness
Rework install docs; add note about officialness
reStructuredText
bsd-3-clause
willkg/pyrax-cmd
restructuredtext
## Code Before: ========= pyrax-cmd ========= Rackspace `Pyrax <https://github.com/rackspace/pyrax>`_ cloud files command line client. Features: * ls - list object names in a container * status - show the container status * rename - rename an object in a container * upload - upload files/folders to your cloudfiles ...
========= pyrax-cmd ========= Rackspace `Pyrax <https://github.com/rackspace/pyrax>`_ cloud files command line client. Features: * ls - list object names in a container * status - show the container status * rename - rename an object in a container * upload - upload files/folders to your c...
20
0.384615
19
1
3ea7fde9641717aee807513f1df41f704a316347
README.md
README.md
Some tools for resiliency in ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem "resiliency" ``` And then execute: $ bundle Or install it yourself as: $ gem install resiliency ## Usage ```ruby require "resiliency" circuit_breaker = Resiliency::CircuitBreaker.new circuit_br...
Some tools for resiliency in ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem "resiliency" ``` And then execute: $ bundle Or install it yourself as: $ gem install resiliency ## Usage ```ruby require "resiliency" circuit_breaker = Resiliency::CircuitBreaker.new if circuit...
Update readme to be accurate with code
Update readme to be accurate with code
Markdown
mit
jnunemaker/resilient,jnunemaker/resilient
markdown
## Code Before: Some tools for resiliency in ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem "resiliency" ``` And then execute: $ bundle Or install it yourself as: $ gem install resiliency ## Usage ```ruby require "resiliency" circuit_breaker = Resiliency::CircuitBreake...
Some tools for resiliency in ruby. ## Installation Add this line to your application's Gemfile: ```ruby gem "resiliency" ``` And then execute: $ bundle Or install it yourself as: $ gem install resiliency ## Usage ```ruby require "resiliency" circuit_b...
11
0.25
9
2
9a8b9d5a6d58ce748bdbffb8e41b9eebf36d4125
tasks/install.yml
tasks/install.yml
--- # task file for wildfly - name: Install OpenJDK yum: name=java-1.8.0-openjdk-headless state=present - name: Check if wildfly version file exists stat: path={{ wildfly_version_file }} register: wildfly_version_file_st changed_when: not wildfly_version_file_st.stat.exists - name: Check wildfly installation...
--- # task file for wildfly - name: Install OpenJDK yum: name=java-1.8.0-openjdk-headless state=present - name: Check if wildfly version file exists stat: path={{ wildfly_version_file }} register: wildfly_version_file_st changed_when: not wildfly_version_file_st.stat.exists - name: Check wildfly installation...
Use conditional block to avoid repeated conditions
Use conditional block to avoid repeated conditions By using a block-construction we can avoid having a repeated condition for a set of tasks.
YAML
bsd-3-clause
inkatze/wildfly
yaml
## Code Before: --- # task file for wildfly - name: Install OpenJDK yum: name=java-1.8.0-openjdk-headless state=present - name: Check if wildfly version file exists stat: path={{ wildfly_version_file }} register: wildfly_version_file_st changed_when: not wildfly_version_file_st.stat.exists - name: Check wild...
--- # task file for wildfly - name: Install OpenJDK yum: name=java-1.8.0-openjdk-headless state=present - name: Check if wildfly version file exists stat: path={{ wildfly_version_file }} register: wildfly_version_file_st changed_when: not wildfly_version_file_st.stat.exists - name: Ch...
34
0.944444
17
17
d22f4c14d5f36fee412b41aacc1b5885259c0775
employee_tests.rb
employee_tests.rb
require 'minitest/autorun' require 'minitest/pride' require './department' require './employee' require './review' class EmployeeTest < Minitest::Test end
require 'minitest/autorun' require 'minitest/pride' require './department' require './employee' require './review' class EmployeeTest < Minitest::Test def david Employee.new(name: "David", salary: 40000, phone: "123", email: "david@test.com") end def blake Employee.new(name: "David", salary: 40001, pho...
Add 2 tests. Employee and adding to Department
Add 2 tests. Employee and adding to Department
Ruby
mit
dbernheisel/employee-reviews
ruby
## Code Before: require 'minitest/autorun' require 'minitest/pride' require './department' require './employee' require './review' class EmployeeTest < Minitest::Test end ## Instruction: Add 2 tests. Employee and adding to Department ## Code After: require 'minitest/autorun' require 'minitest/pride' require './depa...
require 'minitest/autorun' require 'minitest/pride' require './department' require './employee' require './review' class EmployeeTest < Minitest::Test + def david + Employee.new(name: "David", salary: 40000, phone: "123", email: "david@test.com") + end + + def blake + Employee.new(name:...
26
2.888889
26
0
bd16dc3df79434e1db050a14ca0acbea98fa5ce9
package.json
package.json
{ "name": "api-boilerplate", "version": "0.0.1", "description": "A boilerplate for Node, Express, ES6/7 API", "main": "index.js", "scripts": { "start": "nodemon server/index.js --exec babel-node", "test": "echo \"Error: no test specified\" && exit 1", "clean": "rm -rf dist", "build": "npm run ...
{ "name": "api-boilerplate", "version": "0.0.1", "description": "A boilerplate for Node, Express, ES6/7 API", "main": "index.js", "scripts": { "start": "nodemon server/index.js --exec babel-node", "test": "echo \"Error: no test specified\" && exit 1", "clean": "rm -rf dist", "build": "npm run ...
Add lint to build script
Add lint to build script
JSON
mit
oliversd/express-rest-api-boilerplate
json
## Code Before: { "name": "api-boilerplate", "version": "0.0.1", "description": "A boilerplate for Node, Express, ES6/7 API", "main": "index.js", "scripts": { "start": "nodemon server/index.js --exec babel-node", "test": "echo \"Error: no test specified\" && exit 1", "clean": "rm -rf dist", "b...
{ "name": "api-boilerplate", "version": "0.0.1", "description": "A boilerplate for Node, Express, ES6/7 API", "main": "index.js", "scripts": { "start": "nodemon server/index.js --exec babel-node", "test": "echo \"Error: no test specified\" && exit 1", "clean": "rm -rf dist", - ...
2
0.060606
1
1
e47670f070165733332672b0e82318d7e3176fc6
talks.md
talks.md
--- layout: page title: Talks I've Given permalink: /talks/ --- I really enjoy giving talks at conferences and speaking to teams about engineering process, software development, the importance of culture, and innovation. I've spoken at several conferences and other settings, I've listed some of them below. # Upcoming...
--- layout: page title: Talks I've Given permalink: /talks/ --- I really enjoy giving talks at conferences and speaking to teams about engineering process, software development, the importance of culture, and innovation. I've spoken at several conferences and other settings, I've listed some of them below. * [Full S...
Add Enabling Autonomy slides to Talks page
Add Enabling Autonomy slides to Talks page
Markdown
mit
ianlivingstone/ianlivingstone.github.io,ianlivingstone/ianlivingstone.github.io
markdown
## Code Before: --- layout: page title: Talks I've Given permalink: /talks/ --- I really enjoy giving talks at conferences and speaking to teams about engineering process, software development, the importance of culture, and innovation. I've spoken at several conferences and other settings, I've listed some of them be...
--- layout: page title: Talks I've Given permalink: /talks/ --- I really enjoy giving talks at conferences and speaking to teams about engineering process, software development, the importance of culture, and innovation. I've spoken at several conferences and other settings, I've listed some of the...
6
0.285714
1
5
c58ae2b825ce39cf6491af0d94bb0398d6f4fee6
frontend/app/views/spree/shared/_main_nav_bar.html.erb
frontend/app/views/spree/shared/_main_nav_bar.html.erb
<nav id="main-nav-bar" class="navbar"> <ul class="nav" data-hook> <li id="home-link" class="nav-item" data-hook> <%= link_to Spree.t(:home), spree.root_path, class: 'nav-link' %> </li> </ul> <ul class="nav" data-hook> <li id="link-to-cart" class="nav-item" data-hook> <noscript> <%=...
<nav id="main-nav-bar" class="navbar"> <ul class="nav" data-hook> <li id="home-link" class="nav-item" data-hook> <%= link_to Spree.t(:home), spree.root_path, class: 'nav-link' %> </li> </ul> <ul class="nav navbar-right" data-hook> <li id="link-to-cart" class="nav-item" data-hook> <noscript...
Bring back .navbar-right class for deface overrides from spree_i18n.
Bring back .navbar-right class for deface overrides from spree_i18n.
HTML+ERB
bsd-3-clause
ayb/spree,imella/spree,imella/spree,ayb/spree,ayb/spree,imella/spree,ayb/spree
html+erb
## Code Before: <nav id="main-nav-bar" class="navbar"> <ul class="nav" data-hook> <li id="home-link" class="nav-item" data-hook> <%= link_to Spree.t(:home), spree.root_path, class: 'nav-link' %> </li> </ul> <ul class="nav" data-hook> <li id="link-to-cart" class="nav-item" data-hook> <noscr...
<nav id="main-nav-bar" class="navbar"> <ul class="nav" data-hook> <li id="home-link" class="nav-item" data-hook> <%= link_to Spree.t(:home), spree.root_path, class: 'nav-link' %> </li> </ul> - <ul class="nav" data-hook> + <ul class="nav navbar-right" data-hook> ? ++++++...
2
0.125
1
1
f4e07b93ab81fd0a0dc59ec77fca596a2fcca738
froide/helper/form_utils.py
froide/helper/form_utils.py
import json from django.db import models class DjangoJSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, models.Model) and hasattr(obj, 'as_data'): return obj.as_data() return json.JSONEncoder.default(self, obj) class JSONMixin(object): def as_json(self): ...
import json from django.db import models class DjangoJSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, models.Model) and hasattr(obj, 'as_data'): return obj.as_data() return json.JSONEncoder.default(self, obj) def get_data(error): if isinstance(error, (di...
Fix serialization of form errors
Fix serialization of form errors
Python
mit
fin/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,stefanw/froide,stefanw/froide,stefanw/froide,fin/froide
python
## Code Before: import json from django.db import models class DjangoJSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, models.Model) and hasattr(obj, 'as_data'): return obj.as_data() return json.JSONEncoder.default(self, obj) class JSONMixin(object): def ...
import json from django.db import models class DjangoJSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, models.Model) and hasattr(obj, 'as_data'): return obj.as_data() return json.JSONEncoder.default(self, obj) + def get_data(error): + ...
10
0.27027
8
2
76b564a26d9102a041d1dccd52b1636e2f18e6a9
.drone.yml
.drone.yml
clone: git: image: plugins/git depth: 1 pipeline: signed-off-check: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=gallery - CORE_BRANCH=master - DB=sqlite commands: - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh -...
clone: git: image: plugins/git depth: 1 pipeline: signed-off-check: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=gallery - CORE_BRANCH=master - DB=sqlite commands: - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh -...
Add auth token to GitHub requests
Add auth token to GitHub requests Signed-off-by: Daniel Calviño Sánchez <bd7629e975cc0e00ea7cda4ab6a120f2ee42ac1b@gmail.com>
YAML
agpl-3.0
desaintmartin/gallery,desaintmartin/gallery,desaintmartin/gallery
yaml
## Code Before: clone: git: image: plugins/git depth: 1 pipeline: signed-off-check: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=gallery - CORE_BRANCH=master - DB=sqlite commands: - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_in...
clone: git: image: plugins/git depth: 1 pipeline: signed-off-check: image: nextcloudci/php7.0:php7.0-2 environment: - APP_NAME=gallery - CORE_BRANCH=master - DB=sqlite commands: - wget https://raw.githubusercontent.com/nextcloud/travis_ci/mast...
1
0.04
1
0
21fb32e038627c0b12094558c0eb06ba679b4278
lib/dataServiceController.js
lib/dataServiceController.js
'use strict'; var assert = require('assert') var dataServiceFactory = require('./dataService') function createDataServices(config) { var dataServices = {} config.forEach((dsConfig) => { dataServices[dsConfig.name] = dataServiceFactory(dsConfig) }) return dataServices } /** * DataService controller. ...
'use strict'; var assert = require('assert') var dataServiceFactory = require('./dataService') function createDataServices(config) { var dataServices = {} config.forEach((dsConfig) => { dataServices[dsConfig.name] = dataServiceFactory(dsConfig) }) return dataServices } /** * DataService controller. ...
Fix default object and validation
Fix default object and validation
JavaScript
mit
mediasuitenz/mappy,mediasuitenz/mappy
javascript
## Code Before: 'use strict'; var assert = require('assert') var dataServiceFactory = require('./dataService') function createDataServices(config) { var dataServices = {} config.forEach((dsConfig) => { dataServices[dsConfig.name] = dataServiceFactory(dsConfig) }) return dataServices } /** * DataServi...
'use strict'; var assert = require('assert') var dataServiceFactory = require('./dataService') function createDataServices(config) { var dataServices = {} config.forEach((dsConfig) => { dataServices[dsConfig.name] = dataServiceFactory(dsConfig) }) return dataServices } ...
6
0.113208
3
3
e06410faf90f9beff1fbf9711be601416e9d95ac
tests/dummy/app/templates/snippets/the-nav-2.hbs
tests/dummy/app/templates/snippets/the-nav-2.hbs
{{#power-calendar class="demo-calendar-small" center=month onCenterChange=(action (mut month) value="date") as |calendar|}} <nav class="ember-power-calendar-nav"> <button class="ember-power-calendar-nav-control" onclick={{action calendar.actions.moveCenter -12 'month'}}>«</button> <button class="ember-po...
{{#power-calendar class="demo-calendar-small" center=month onCenterChange=(action (mut month) value="date") as |calendar|}} <nav class="ember-power-calendar-nav"> <button type="button" class="ember-power-calendar-nav-control" onclick={{action calendar.actions.moveCenter -12 'month'}}>«</button> <button t...
Set button type in nav snippet
Set button type in nav snippet
Handlebars
mit
cibernox/ember-power-calendar,cibernox/ember-power-calendar,cibernox/ember-power-calendar
handlebars
## Code Before: {{#power-calendar class="demo-calendar-small" center=month onCenterChange=(action (mut month) value="date") as |calendar|}} <nav class="ember-power-calendar-nav"> <button class="ember-power-calendar-nav-control" onclick={{action calendar.actions.moveCenter -12 'month'}}>«</button> <button...
{{#power-calendar class="demo-calendar-small" center=month onCenterChange=(action (mut month) value="date") as |calendar|}} <nav class="ember-power-calendar-nav"> - <button class="ember-power-calendar-nav-control" onclick={{action calendar.actions.moveCenter -12 'month'}}>«</button> + <button t...
4
0.25
2
2
f47f08b947acf7ea99abf6a75ed66115c8f0d009
web/__mocks__/firebase/app.js
web/__mocks__/firebase/app.js
/* eslint-env jest */ const firebaseApp = jest.genMockFromModule('firebase') // By default, return no user. var firebaseUser = null firebaseApp.auth = jest.fn(() => ({ onAuthStateChanged: jest.fn(callback => { // Return the Firebase user. callback(firebaseUser) }), signOut: jest.fn() })) firebaseApp._...
/* eslint-env jest */ const firebaseApp = jest.genMockFromModule('firebase') // By default, return no user. var firebaseUser = null const FirebaseAuthMock = () => { return { onAuthStateChanged: jest.fn(callback => { // Return the Firebase user. callback(firebaseUser) }), signOut: jest.fn() ...
Fix mock for testing FirebaseAuthenticationUI component
Fix mock for testing FirebaseAuthenticationUI component
JavaScript
mpl-2.0
gladly-team/tab,gladly-team/tab,gladly-team/tab
javascript
## Code Before: /* eslint-env jest */ const firebaseApp = jest.genMockFromModule('firebase') // By default, return no user. var firebaseUser = null firebaseApp.auth = jest.fn(() => ({ onAuthStateChanged: jest.fn(callback => { // Return the Firebase user. callback(firebaseUser) }), signOut: jest.fn() })...
/* eslint-env jest */ const firebaseApp = jest.genMockFromModule('firebase') // By default, return no user. var firebaseUser = null - firebaseApp.auth = jest.fn(() => ({ + const FirebaseAuthMock = () => { + return { - onAuthStateChanged: jest.fn(callback => { + onAuthStateChanged: jest.fn(callb...
30
1.5
23
7
c0136099662f086b4b4efc2a53230c7d10eeedf8
lib/strut/report_builder.rb
lib/strut/report_builder.rb
require "strut/report" module Strut class ReportBuilder def build(responses, document) report = Report.new responses.each do |response| handle_response(response, document, report) end report end def handle_response(response, document, report) command_id, result = *r...
require "strut/report" module Strut class ReportBuilder def build(responses, document) report = Report.new responses.each do |response| handle_response(response, document, report) end report end def handle_response(response, document, report) command_id, result = *r...
Convert expected and returned values to strings before comparison so we can check bools, ints, etc.
Convert expected and returned values to strings before comparison so we can check bools, ints, etc.
Ruby
mit
dcutting/strut,dcutting/strut
ruby
## Code Before: require "strut/report" module Strut class ReportBuilder def build(responses, document) report = Report.new responses.each do |response| handle_response(response, document, report) end report end def handle_response(response, document, report) command...
require "strut/report" module Strut class ReportBuilder def build(responses, document) report = Report.new responses.each do |response| handle_response(response, document, report) end report end def handle_response(response, document, report) ...
2
0.043478
1
1
5dc95f0731c183a1672aebed496b53d5581879e4
example/app.rb
example/app.rb
require 'sinatra' require 'vxod' require 'slim' require 'sass' require 'config_env' require 'mongoid' require 'omniauth' require 'omniauth-twitter' require 'omniauth-vkontakte' require 'omniauth-facebook' require 'omniauth-google-oauth2' require 'omniauth-github' require_relative 'config_env' require_relative 'config_...
require 'sinatra' require 'vxod' require 'slim' require 'sass' require 'config_env' require 'mongoid' require 'omniauth' require 'omniauth-twitter' require 'omniauth-vkontakte' require 'omniauth-facebook' require 'omniauth-google-oauth2' require 'omniauth-github' load "#{__dir__}/config_env" require_relative 'config_a...
Prepare to CI Capybara.default_wait_time = 15
Prepare to CI Capybara.default_wait_time = 15
Ruby
mit
SergXIIIth/vxod
ruby
## Code Before: require 'sinatra' require 'vxod' require 'slim' require 'sass' require 'config_env' require 'mongoid' require 'omniauth' require 'omniauth-twitter' require 'omniauth-vkontakte' require 'omniauth-facebook' require 'omniauth-google-oauth2' require 'omniauth-github' require_relative 'config_env' require_r...
require 'sinatra' require 'vxod' require 'slim' require 'sass' require 'config_env' require 'mongoid' require 'omniauth' require 'omniauth-twitter' require 'omniauth-vkontakte' require 'omniauth-facebook' require 'omniauth-google-oauth2' require 'omniauth-github' - require_relative 'config_en...
2
0.04878
1
1
394b2c9b9967d6e461013a2e539d9ff06b7ca69f
.travis.yml
.travis.yml
before_install: gem install bundler --pre bundler_args: --without production language: ruby rvm: - 2.0.0
--- before_install: gem install bundler --pre bundler_args: --without production language: ruby rvm: - 2.0.0 deploy: api_key: secure: |- Uyzc8wJa/E2mEh47Yxlv2robX8guaqS7QfeGi+30TfOFCJAK6m1rqCqJEU1y uVD6tmRdxnr/ZoVfrrWQssm/OAc3eDlpVr1AKMTgxSDQetzUCaJY3UD+zhyH C/9VYGK0KxbTpnYBQ6F2Vqv/k/QuNqugdsdED...
Add continuous deployment to Heroku
Add continuous deployment to Heroku
YAML
bsd-3-clause
codeforamerica/follow-all,BryanH/follow-all,BryanH/follow-all,codeforamerica/follow-all,jasnow/follow-all,jasnow/follow-all,jasnow/follow-all,codeforamerica/follow-all,BryanH/follow-all
yaml
## Code Before: before_install: gem install bundler --pre bundler_args: --without production language: ruby rvm: - 2.0.0 ## Instruction: Add continuous deployment to Heroku ## Code After: --- before_install: gem install bundler --pre bundler_args: --without production language: ruby rvm: - 2.0.0 deploy: api_key: ...
+ --- before_install: gem install bundler --pre bundler_args: --without production language: ruby rvm: - - 2.0.0 ? -- + - 2.0.0 + deploy: + api_key: + secure: |- + Uyzc8wJa/E2mEh47Yxlv2robX8guaqS7QfeGi+30TfOFCJAK6m1rqCqJEU1y + uVD6tmRdxnr/ZoVfrrWQssm/OAc3eDlpVr1AKMTgxSDQetzUCaJY3UD+zhyH + ...
12
2.4
11
1
f478624ba029fe8da9d167885a90c6f0350db2b9
bin/inc_version.rb
bin/inc_version.rb
def shell(command) puts command stdout = `#{command}` error_code = $?.exitstatus if error_code != 0 puts stdout raise "#{command} exit with error #{error_code}" end stdout end # see http://stackoverflow.com/a/3545363 mvn_command = "mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpres...
def shell(command) puts(command) stdout = `#{command}` error_code = $?.exitstatus if error_code != 0 puts(stdout) raise("#{command} exit with error #{error_code}") end stdout end # see http://stackoverflow.com/a/3545363 mvn_command = "mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexp...
Remove poetry mode with function calls.
Remove poetry mode with function calls.
Ruby
bsd-2-clause
Hans-and-Peter/game-geography,Hans-and-Peter/game-geography,Hans-and-Peter/game-geography
ruby
## Code Before: def shell(command) puts command stdout = `#{command}` error_code = $?.exitstatus if error_code != 0 puts stdout raise "#{command} exit with error #{error_code}" end stdout end # see http://stackoverflow.com/a/3545363 mvn_command = "mvn org.apache.maven.plugins:maven-help-plugin:e...
def shell(command) - puts command ? ^ + puts(command) ? ^ + stdout = `#{command}` error_code = $?.exitstatus if error_code != 0 - puts stdout ? ^ + puts(stdout) ? ^ + - raise "#{command} exit with error #{error_code}" ? ^ + rai...
12
0.363636
6
6
74983cc059bc3480331b0815240c579b0b4517fc
bluebottle/assignments/filters.py
bluebottle/assignments/filters.py
from django.db.models import Q from rest_framework_json_api.django_filters import DjangoFilterBackend from bluebottle.assignments.transitions import ApplicantTransitions class ApplicantListFilter(DjangoFilterBackend): """ Filter that shows all applicant if user is owner, otherwise only show accepted appl...
from django.db.models import Q from rest_framework_json_api.django_filters import DjangoFilterBackend from bluebottle.assignments.transitions import ApplicantTransitions class ApplicantListFilter(DjangoFilterBackend): """ Filter that shows all applicant if user is owner, otherwise only show accepted appl...
Tweak filtering of applicants on assignment
Tweak filtering of applicants on assignment
Python
bsd-3-clause
onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle
python
## Code Before: from django.db.models import Q from rest_framework_json_api.django_filters import DjangoFilterBackend from bluebottle.assignments.transitions import ApplicantTransitions class ApplicantListFilter(DjangoFilterBackend): """ Filter that shows all applicant if user is owner, otherwise only sh...
from django.db.models import Q from rest_framework_json_api.django_filters import DjangoFilterBackend from bluebottle.assignments.transitions import ApplicantTransitions class ApplicantListFilter(DjangoFilterBackend): """ Filter that shows all applicant if user is owner, otherwise onl...
4
0.142857
3
1
5761364149b3171521cb4f72f591dc5f5cbd77d6
temp-sensor02/main.py
temp-sensor02/main.py
from machine import Pin from ds18x20 import DS18X20 import onewire import time import machine import ujson import urequests def posttocloud(temperature): keystext = open("sparkfun_keys.json").read() keys = ujson.loads(keystext) url = keys['inputUrl'] + "?private_key=" + keys['privateKey'] + "&temp=" + str(temper...
from machine import Pin from ds18x20 import DS18X20 import onewire import time import ujson import urequests def posttocloud(temperature): keystext = open("sparkfun_keys.json").read() keys = ujson.loads(keystext) params = {} params['temp'] = temperature params['private_key'] = keys['privateKey'] #dat...
Build a query string with params in a dictionary and append it to the URL. Makes the code readale. Remove commented code
Build a query string with params in a dictionary and append it to the URL. Makes the code readale. Remove commented code
Python
mit
fuzzyhandle/esp8266hangout,fuzzyhandle/esp8266hangout,fuzzyhandle/esp8266hangout
python
## Code Before: from machine import Pin from ds18x20 import DS18X20 import onewire import time import machine import ujson import urequests def posttocloud(temperature): keystext = open("sparkfun_keys.json").read() keys = ujson.loads(keystext) url = keys['inputUrl'] + "?private_key=" + keys['privateKey'] + "&tem...
from machine import Pin from ds18x20 import DS18X20 import onewire import time - import machine import ujson import urequests def posttocloud(temperature): + keystext = open("sparkfun_keys.json").read() keys = ujson.loads(keystext) - url = keys['inputUrl'] + "?private_key=" + keys['private...
19
0.542857
11
8
5a2c35e13c3bea09388e9bb273a563def060c96c
docs/source/pynucastro.networks.rst
docs/source/pynucastro.networks.rst
pynucastro\.networks package ============================ .. automodule:: pynucastro.networks :members: :undoc-members: :show-inheritance: Submodules ---------- pynucastro\.networks\.base\_fortran\_network module --------------------------------------------------- .. automodule:: pynucastro.networks.bas...
pynucastro\.networks package ============================ .. automodule:: pynucastro.networks :members: :undoc-members: :show-inheritance: Submodules ---------- pynucastro\.networks\.rate\_collection module --------------------------------------------- .. automodule:: pynucastro.networks.rate_collection...
Order the network classes by inheritance.
Order the network classes by inheritance.
reStructuredText
bsd-3-clause
pyreaclib/pyreaclib
restructuredtext
## Code Before: pynucastro\.networks package ============================ .. automodule:: pynucastro.networks :members: :undoc-members: :show-inheritance: Submodules ---------- pynucastro\.networks\.base\_fortran\_network module --------------------------------------------------- .. automodule:: pynucas...
pynucastro\.networks package ============================ .. automodule:: pynucastro.networks :members: :undoc-members: :show-inheritance: Submodules ---------- - pynucastro\.networks\.base\_fortran\_network module ? ^ ^ ^ ^ ^^ --------- + pynucastro\.networ...
22
0.423077
6
16
b8b23b484554464d50c646515cfd0c5a07a2ef5f
Casks/nulloy.rb
Casks/nulloy.rb
cask 'nulloy' do version '0.8.2' sha256 '67acc5ada9b5245cda7da04456bc18ad6e9b49dbdcb1e2752ce988d4d3607b35' url "https://github.com/nulloy/nulloy/releases/download/#{version}/Nulloy-#{version}-x86_64.dmg" appcast 'https://github.com/nulloy/nulloy/releases.atom', checkpoint: '6b12d536ceefb813d7e269dc59...
cask 'nulloy' do version '0.8.2' sha256 '67acc5ada9b5245cda7da04456bc18ad6e9b49dbdcb1e2752ce988d4d3607b35' # github.com/nulloy/nulloy was verified as official when first introduced to the cask url "https://github.com/nulloy/nulloy/releases/download/#{version}/Nulloy-#{version}-x86_64.dmg" appcast 'https://gi...
Fix `url` stanza comment for Nulloy.
Fix `url` stanza comment for Nulloy.
Ruby
bsd-2-clause
uetchy/homebrew-cask,hyuna917/homebrew-cask,skatsuta/homebrew-cask,joschi/homebrew-cask,miccal/homebrew-cask,jasmas/homebrew-cask,shonjir/homebrew-cask,mchlrmrz/homebrew-cask,deanmorin/homebrew-cask,kpearson/homebrew-cask,Ngrd/homebrew-cask,okket/homebrew-cask,bosr/homebrew-cask,renaudguerin/homebrew-cask,timsutton/hom...
ruby
## Code Before: cask 'nulloy' do version '0.8.2' sha256 '67acc5ada9b5245cda7da04456bc18ad6e9b49dbdcb1e2752ce988d4d3607b35' url "https://github.com/nulloy/nulloy/releases/download/#{version}/Nulloy-#{version}-x86_64.dmg" appcast 'https://github.com/nulloy/nulloy/releases.atom', checkpoint: '6b12d536ce...
cask 'nulloy' do version '0.8.2' sha256 '67acc5ada9b5245cda7da04456bc18ad6e9b49dbdcb1e2752ce988d4d3607b35' + # github.com/nulloy/nulloy was verified as official when first introduced to the cask url "https://github.com/nulloy/nulloy/releases/download/#{version}/Nulloy-#{version}-x86_64.dmg" appca...
1
0.076923
1
0
42cca2bd3411e45f38c0419faed5ccd9e5b01dcf
src/release/make-bower.json.js
src/release/make-bower.json.js
// Renders the bower.json template and prints it to stdout var template = { name: "graphlib", version: require("../../package.json").version, main: [ "dist/graphlib.core.js", "dist/graphlib.core.min.js" ], ignore: [ ".*", "README.md", "CHANGELOG.md", "Makefile", "browser.js", "dist/gra...
// Renders the bower.json template and prints it to stdout var packageJson = require("../../package.json"); var template = { name: packageJson.name, version: packageJson.version, main: ["dist/" + packageJson.name + ".core.js", "dist/" + packageJson.name + ".core.min.js"], ignore: [ ".*", "README.md",...
Check in improved bower generation script
Check in improved bower generation script
JavaScript
mit
cpettitt/graphlib,dagrejs/graphlib,dagrejs/graphlib,kdawes/graphlib,cpettitt/graphlib,kdawes/graphlib,dagrejs/graphlib,gardner/graphlib,gardner/graphlib,leMaik/graphlib,leMaik/graphlib
javascript
## Code Before: // Renders the bower.json template and prints it to stdout var template = { name: "graphlib", version: require("../../package.json").version, main: [ "dist/graphlib.core.js", "dist/graphlib.core.min.js" ], ignore: [ ".*", "README.md", "CHANGELOG.md", "Makefile", "browser.js...
// Renders the bower.json template and prints it to stdout + var packageJson = require("../../package.json"); + var template = { - name: "graphlib", + name: packageJson.name, - version: require("../../package.json").version, ? --------------- ^^ -- + version: packageJson.version, ...
16
0.571429
8
8
c4fff9577c4827a956e4de1eb5db0df39c1cca21
.travis.yml
.travis.yml
language: php php: 5.4 before_script: phpize && ./configure && make && sudo make install env: REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=/usr/local/bin/php script: php run-tests.php -dextension=scalar_objects.so
language: php php: 5.4 before_script: phpize && ./configure && make && sudo make install env: REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=`which php` script: php run-tests.php -dextension=scalar_objects.so
Use `which php` to get executable path
Use `which php` to get executable path Maybe this will work...
YAML
mit
nikic/scalar_objects,nikic/scalar_objects,alissonzampietro/scalar_objects,nikic/scalar_objects,alissonzampietro/scalar_objects
yaml
## Code Before: language: php php: 5.4 before_script: phpize && ./configure && make && sudo make install env: REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=/usr/local/bin/php script: php run-tests.php -dextension=scalar_objects.so ## Instruction: Use `which php` to get executable path Maybe this will work... ## Code Aft...
language: php php: 5.4 before_script: phpize && ./configure && make && sudo make install - env: REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=/usr/local/bin/php ? ^^^^^^^ ^^^^^^^ + env: REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=`which php` ? ...
2
0.333333
1
1
06176d46c09f8004346caed5609c36aca1d7023c
recipes/solo-install.rb
recipes/solo-install.rb
remote_file "/tmp/#{File.basename(node['mysql-zrm']['package']['all'])}" do source node['mysql-zrm']['package']['all'] action :create_if_missing not_if 'which mysql-zrm' end # Install package dependencies for mysql-zrm package "libxml-parser-perl" do action :install end dpkg_package "/tmp/#{File.basename(node...
pkg_filepath = "#{Chef::Config['file_cache_path'] || '/tmp'}/#{File.basename(node['mysql-zrm']['package']['all'])}" # Download and build MySQL ZRM remote_file pkg_filepath do source node['mysql-zrm']['package']['all'] action :create_if_missing not_if 'which mysql-zrm' end # Install package dependencies for my...
Use chef file_cache for temp download.
Use chef file_cache for temp download.
Ruby
apache-2.0
dataferret/chef-mysql-zrm,dataferret/chef-mysql-zrm
ruby
## Code Before: remote_file "/tmp/#{File.basename(node['mysql-zrm']['package']['all'])}" do source node['mysql-zrm']['package']['all'] action :create_if_missing not_if 'which mysql-zrm' end # Install package dependencies for mysql-zrm package "libxml-parser-perl" do action :install end dpkg_package "/tmp/#{Fi...
- remote_file "/tmp/#{File.basename(node['mysql-zrm']['package']['all'])}" do + + pkg_filepath = "#{Chef::Config['file_cache_path'] || '/tmp'}/#{File.basename(node['mysql-zrm']['package']['all'])}" + + + # Download and build MySQL ZRM + remote_file pkg_filepath do source node['mysql-zrm']['package']['all'] a...
9
0.6
7
2
6092a9d2c5a722d02ba5d69a37b20bf376b58d47
src/tensorflow_clj/core.clj
src/tensorflow_clj/core.clj
(ns tensorflow-clj.core (:gen-class)) (def ^:dynamic graph nil) (defmacro with-graph [& body] `(binding [graph (org.tensorflow.Graph.)] (try ~@body (finally (.close graph))))) (defn- build-op [op-type op-name attr-map] (let [ob (.opBuilder graph op-type (name op-name))] (doseq [...
(ns tensorflow-clj.core (:gen-class)) (def ^:dynamic graph nil) (defmacro with-graph [& body] `(binding [graph (org.tensorflow.Graph.)] (try ~@body (finally (.close graph))))) (defn- build-op [op-type op-name attr-map] (let [ob (.opBuilder graph op-type (name op-name))] (doseq [...
Throw an exception instead of segfaulting
Throw an exception instead of segfaulting
Clojure
epl-1.0
enragedginger/tensorflow-clj
clojure
## Code Before: (ns tensorflow-clj.core (:gen-class)) (def ^:dynamic graph nil) (defmacro with-graph [& body] `(binding [graph (org.tensorflow.Graph.)] (try ~@body (finally (.close graph))))) (defn- build-op [op-type op-name attr-map] (let [ob (.opBuilder graph op-type (name op-name...
(ns tensorflow-clj.core (:gen-class)) (def ^:dynamic graph nil) (defmacro with-graph [& body] `(binding [graph (org.tensorflow.Graph.)] (try ~@body (finally (.close graph))))) (defn- build-op [op-type op-name attr-map] (let [ob (.opBuilder graph op-type (...
10
0.25
7
3
ed55201556da451a580728e971cd5805dd24462c
app/styles/less/modules/_buttons.less
app/styles/less/modules/_buttons.less
// Buttons .btn { display: inline-block; padding: @btn-padding-y @btn-padding-x; font-size: @btn-font-size; line-height: @line-height; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; user-select: none; border: 1px solid transparent; border-radius: @global-radius;...
// Buttons .btn { display: inline-block; padding: @btn-padding-y @btn-padding-x; font-size: @btn-font-size; line-height: @line-height; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; user-select: none; background-color: transparent; border: 1px solid transparent;...
Add bg property for buttons
Add bg property for buttons
Less
mit
mrmlnc/rwk,mrmlnc/rwk
less
## Code Before: // Buttons .btn { display: inline-block; padding: @btn-padding-y @btn-padding-x; font-size: @btn-font-size; line-height: @line-height; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; user-select: none; border: 1px solid transparent; border-radius:...
// Buttons .btn { display: inline-block; padding: @btn-padding-y @btn-padding-x; font-size: @btn-font-size; line-height: @line-height; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; user-select: none; + background-color: transparent; bo...
1
0.017857
1
0
d0b4725e0d8dba7cb57b95c08b240d529cb08de5
db/migrate/20170403162041_create_materials.rb
db/migrate/20170403162041_create_materials.rb
class CreateMaterials < ActiveRecord::Migration[5.0] def change create_table :materials do |t| t.references :rightholder, index: true, foreign_key: { to_table: :rightholders } t.references :owner, index: true, foreign_key: { to_table: :users } t.string :original_link, null: true t.string :...
class CreateMaterials < ActiveRecord::Migration[5.0] def change create_table :materials do |t| t.references :rightholder, index: true, foreign_key: { to_table: :rightholders } t.references :owner, index: true, foreign_key: { to_table: :users } t.string :original_link, null: true t.string :...
Fix field type in materials migration
Fix field type in materials migration
Ruby
mit
catapod/Transfer,catapod/Transfer,catapod/Transfer
ruby
## Code Before: class CreateMaterials < ActiveRecord::Migration[5.0] def change create_table :materials do |t| t.references :rightholder, index: true, foreign_key: { to_table: :rightholders } t.references :owner, index: true, foreign_key: { to_table: :users } t.string :original_link, null: true ...
class CreateMaterials < ActiveRecord::Migration[5.0] def change create_table :materials do |t| t.references :rightholder, index: true, foreign_key: { to_table: :rightholders } t.references :owner, index: true, foreign_key: { to_table: :users } t.string :original_link, null: true ...
6
0.315789
3
3
6c510b869308ed627adf9ab9beb51f8c79829078
dist/utilities/_icon-font.scss
dist/utilities/_icon-font.scss
// Icon Font // ========= // // Dependencies: // // * This assumes a font icon set has been added using the web-font() mixin @mixin icon-font($position: 'before', $size: inherit, $color: inherit, $margin: 0, $width: 1em) { &::#{$position} { display: inline-block; color: $color; ...
// Icon Font // ========= // // Dependencies: // // * This assumes a font icon set has been added using the web-font() mixin // * $icon-font must be defined @mixin icon-font($position: 'before', $size: inherit, $color: inherit, $margin: 0, $width: 1em) { &::#{$position} { display: inline-block; ...
Add dependency comment for the $icon-font variable
Add dependency comment for the $icon-font variable
SCSS
mit
mobify/spline,mobify/spline
scss
## Code Before: // Icon Font // ========= // // Dependencies: // // * This assumes a font icon set has been added using the web-font() mixin @mixin icon-font($position: 'before', $size: inherit, $color: inherit, $margin: 0, $width: 1em) { &::#{$position} { display: inline-block; color...
// Icon Font // ========= // // Dependencies: // // * This assumes a font icon set has been added using the web-font() mixin + // * $icon-font must be defined @mixin icon-font($position: 'before', $size: inherit, $color: inherit, $margin: 0, $width: 1em) { &::#{$position} { displ...
1
0.032258
1
0
9185c0bcc679e1f28d20d64e1c8e2e39b64d51b5
.eslintrc.yml
.eslintrc.yml
env: browser: true es6: false extends: "eslint:recommended" globals: $: readonly App: readonly annotator: readonly c3: readonly CKEDITOR: readonly L: readonly Turbolinks: readonly parserOptions: ecmaVersion: 5 rules: array-bracket-spacing: error block-spacing: error brace-style: error comma-...
env: browser: true es6: false extends: "eslint:recommended" globals: $: readonly App: readonly annotator: readonly c3: readonly CKEDITOR: readonly L: readonly Turbolinks: readonly parserOptions: ecmaVersion: 5 rules: array-bracket-spacing: error block-spacing: error brace-style: error comma-...
Add JavaScript rule for semi colons
Add JavaScript rule for semi colons While I personally prefer the "never" option for this rule, we haven't discussed which guideline to follow, so for now I'm applying the rule CoffeeScript used when generating these files.
YAML
agpl-3.0
consul/consul,usabi/consul_san_borondon,usabi/consul_san_borondon,usabi/consul_san_borondon,usabi/consul_san_borondon,consul/consul,consul/consul,consul/consul,consul/consul
yaml
## Code Before: env: browser: true es6: false extends: "eslint:recommended" globals: $: readonly App: readonly annotator: readonly c3: readonly CKEDITOR: readonly L: readonly Turbolinks: readonly parserOptions: ecmaVersion: 5 rules: array-bracket-spacing: error block-spacing: error brace-style...
env: browser: true es6: false extends: "eslint:recommended" globals: $: readonly App: readonly annotator: readonly c3: readonly CKEDITOR: readonly L: readonly Turbolinks: readonly parserOptions: ecmaVersion: 5 rules: array-bracket-spacing: error block-spacing: e...
3
0.044118
3
0
0102bf31a0de9c65bbbc923a68d9f2a5df741c97
test/controllers/account/integrations_controller_test.rb
test/controllers/account/integrations_controller_test.rb
require "test_helper" class Account::IntegrationsControllerTest < ActionController::TestCase end
require "test_helper" class Account::IntegrationsControllerTest < ActionController::TestCase setup do @user = users(:gaston) sign_in @user end test "#index" do get :index assert_response :success end test "#index is not authorized when signed out" do sign_out get :index assert_...
Add tests for the integration controller
Add tests for the integration controller
Ruby
mit
maximebedard/remets,maximebedard/remets,maximebedard/remets
ruby
## Code Before: require "test_helper" class Account::IntegrationsControllerTest < ActionController::TestCase end ## Instruction: Add tests for the integration controller ## Code After: require "test_helper" class Account::IntegrationsControllerTest < ActionController::TestCase setup do @user = users(:gaston) ...
require "test_helper" class Account::IntegrationsControllerTest < ActionController::TestCase + setup do + @user = users(:gaston) + sign_in @user + end + + test "#index" do + get :index + assert_response :success + end + + test "#index is not authorized when signed out" do + sign_o...
32
8
32
0
bd5b9a4678471580328fbf0668277920cd113f65
README.md
README.md
The marketplace for on demmand changes
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fworknenjoy%2Fgitpay.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fworknenjoy%2Fgitpay?ref=badge_shield) The marketplace for on demmand changes ## License [![FOSSA Status](https://app.fossa.io/api/pr...
Add license scan report and status
Add license scan report and status
Markdown
agpl-3.0
worknenjoy/gitpay,worknenjoy/gitpay,worknenjoy/gitpay
markdown
## Code Before: The marketplace for on demmand changes ## Instruction: Add license scan report and status ## Code After: [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fworknenjoy%2Fgitpay.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fworknenjoy%2F...
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fworknenjoy%2Fgitpay.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fworknenjoy%2Fgitpay?ref=badge_shield) + The marketplace for on demmand changes + + + ## License + [![FOSSA Status](https://app.f...
6
6
6
0
886b69be4ab61773844ec1311373c70aaffcf0b3
setup.cfg
setup.cfg
[easy_install] zip_ok = 0 always_copy = False [sdist] formats=gztar,zip [egg_info] tag_build = dev [develop] optimize=1 [install] optimize=1
[easy_install] zip_ok = 0 always_copy = False [sdist] formats=gztar,zip [egg_info] tag_build = dev tag_date = 1 [develop] optimize=1 [install] optimize=1
Add a date tag to dev builds.
Add a date tag to dev builds.
INI
mit
Schevo/schevodurus
ini
## Code Before: [easy_install] zip_ok = 0 always_copy = False [sdist] formats=gztar,zip [egg_info] tag_build = dev [develop] optimize=1 [install] optimize=1 ## Instruction: Add a date tag to dev builds. ## Code After: [easy_install] zip_ok = 0 always_copy = False [sdist] formats=gztar,zip [egg_info] tag_build =...
[easy_install] zip_ok = 0 always_copy = False [sdist] formats=gztar,zip [egg_info] tag_build = dev + tag_date = 1 [develop] optimize=1 [install] optimize=1
1
0.066667
1
0
d3933d58b2ebcb0fb0c6301344335ae018973774
n_pair_mc_loss.py
n_pair_mc_loss.py
from chainer import cuda from chainer.functions import matmul from chainer.functions import transpose from chainer.functions import softmax_cross_entropy from chainer.functions import batch_l2_norm_squared def n_pair_mc_loss(f, f_p, l2_reg): """Multi-class N-pair loss (N-pair-mc loss) function. Args: ...
from chainer import cuda from chainer.functions import matmul from chainer.functions import transpose from chainer.functions import softmax_cross_entropy from chainer.functions import batch_l2_norm_squared def n_pair_mc_loss(f, f_p, l2_reg): """Multi-class N-pair loss (N-pair-mc loss) function. Args: ...
Modify to average the L2 norm loss of output vectors
Modify to average the L2 norm loss of output vectors
Python
mit
ronekko/deep_metric_learning
python
## Code Before: from chainer import cuda from chainer.functions import matmul from chainer.functions import transpose from chainer.functions import softmax_cross_entropy from chainer.functions import batch_l2_norm_squared def n_pair_mc_loss(f, f_p, l2_reg): """Multi-class N-pair loss (N-pair-mc loss) function. ...
from chainer import cuda from chainer.functions import matmul from chainer.functions import transpose from chainer.functions import softmax_cross_entropy from chainer.functions import batch_l2_norm_squared def n_pair_mc_loss(f, f_p, l2_reg): """Multi-class N-pair loss (N-pair-mc loss) function. ...
3
0.09375
2
1
04ce6d407b453983740c1621fb37196abda0c38a
src/main/java/com/intel/alex/Utils/ExcelUtil.java
src/main/java/com/intel/alex/Utils/ExcelUtil.java
package com.intel.alex.Utils; /** * Created by root on 3/7/16. */ public class ExcelUtil { }
package com.intel.alex.Utils; import jxl.Workbook; import jxl.write.*; import java.io.*; import java.lang.*; /** * Created by root on 3/7/16. */ public class ExcelUtil { private final String logDir; public ExcelUtil(String logDir) { this.logDir = logDir; } public void csv2Excel() { ...
Add the function of generating excel file.
Add the function of generating excel file.
Java
apache-2.0
LifengWang/ReportGen,LifengWang/ReportGen,LifengWang/ReportGen
java
## Code Before: package com.intel.alex.Utils; /** * Created by root on 3/7/16. */ public class ExcelUtil { } ## Instruction: Add the function of generating excel file. ## Code After: package com.intel.alex.Utils; import jxl.Workbook; import jxl.write.*; import java.io.*; import java.lang.*; /** * Created by ...
package com.intel.alex.Utils; + + + import jxl.Workbook; + + import jxl.write.*; + + import java.io.*; + import java.lang.*; /** * Created by root on 3/7/16. */ public class ExcelUtil { + private final String logDir; + + public ExcelUtil(String logDir) { + this.logDir = logDir; + ...
66
9.428571
66
0
36e00778befd9e6763236b771a77184d31c3c885
babbage_fiscal/tasks.py
babbage_fiscal/tasks.py
from celery import Celery import requests from .config import get_engine, _set_connection_string from .loader import FDPLoader app = Celery('fdp_loader') app.config_from_object('babbage_fiscal.celeryconfig') @app.task def load_fdp_task(package, callback, connection_string=None): if connection_string is not None:...
from celery import Celery import requests from .config import get_engine, _set_connection_string from .loader import FDPLoader app = Celery('fdp_loader') app.config_from_object('babbage_fiscal.celeryconfig') @app.task def load_fdp_task(package, callback, connection_string=None): if connection_string is not None:...
Add more info to the callback
Add more info to the callback
Python
mit
openspending/babbage.fiscal-data-package
python
## Code Before: from celery import Celery import requests from .config import get_engine, _set_connection_string from .loader import FDPLoader app = Celery('fdp_loader') app.config_from_object('babbage_fiscal.celeryconfig') @app.task def load_fdp_task(package, callback, connection_string=None): if connection_str...
from celery import Celery import requests from .config import get_engine, _set_connection_string from .loader import FDPLoader app = Celery('fdp_loader') app.config_from_object('babbage_fiscal.celeryconfig') @app.task def load_fdp_task(package, callback, connection_string=None): if connec...
7
0.466667
5
2
1c15c97091298581798495387f8ff98f6379e0b9
assets/stylesheets/layout/_assemblies.scss
assets/stylesheets/layout/_assemblies.scss
@import "../settings"; @import "../tools/mixins/layout"; // View assemblies // Define how components stack in views * + { form, .c-form-group, .c-form-fieldset, .c-error-summary, .results-summary { margin-top: $default-spacing-unit * 2; } .c-form-group--compact { margin-top: $default-spacing-un...
@import "../settings"; @import "../tools/mixins/layout"; // View assemblies // Define how components stack in views * + { form, .c-form-group, .c-form-fieldset, .c-error-summary, .results-summary { margin-top: $default-spacing-unit * 2; } .c-form-group--compact { margin-top: $default-spacing-un...
Add meta-list to assemblies CSS
Add meta-list to assemblies CSS
SCSS
mit
uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend
scss
## Code Before: @import "../settings"; @import "../tools/mixins/layout"; // View assemblies // Define how components stack in views * + { form, .c-form-group, .c-form-fieldset, .c-error-summary, .results-summary { margin-top: $default-spacing-unit * 2; } .c-form-group--compact { margin-top: $de...
@import "../settings"; @import "../tools/mixins/layout"; // View assemblies // Define how components stack in views * + { form, .c-form-group, .c-form-fieldset, .c-error-summary, .results-summary { margin-top: $default-spacing-unit * 2; } .c-form-group--compact { ...
3
0.058824
2
1
ad2772172b1e589df88d4c065ceb685b7fe442af
.travis.yml
.travis.yml
language: python env: - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.4.x.zip - DJANGO_VERSION=1.5.12 - DJANGO_VERSION=1.6.11 - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.7.x.zip - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.8.x.zip python: - "2....
language: python env: - DJANGO_VERSION=1.4 - DJANGO_VERSION=1.5 - DJANGO_VERSION=1.6 - DJANGO_VERSION=1.7 - DJANGO_VERSION=1.8 python: - "2.6" - "2.7" - "3.3" - "3.4" - "pypy" matrix: exclude: - python: "3.3" env: DJANGO_VERSION=1.4 - python: "3.4" env: DJANGO_VERSION=1.4 ...
Test against PyPI Django releases
Test against PyPI Django releases
YAML
bsd-3-clause
AlexHill/djpj,AlexHill/djpj
yaml
## Code Before: language: python env: - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.4.x.zip - DJANGO_VERSION=1.5.12 - DJANGO_VERSION=1.6.11 - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.7.x.zip - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.8.x.zip...
language: python env: - - DJANGO_VERSION=https://github.com/django/django/archive/stable/1.4.x.zip + - DJANGO_VERSION=1.4 - - DJANGO_VERSION=1.5.12 ? --- + - DJANGO_VERSION=1.5 - - DJANGO_VERSION=1.6.11 ? --- + - DJANGO_VERSION=1.6 - - DJANGO_VERSION=https...
18
0.642857
9
9
cec35ed7c888fb5764804d887abd0a29ea178451
src/theme-package.coffee
src/theme-package.coffee
Q = require 'q' AtomPackage = require './atom-package' module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> atom.config.unshiftAtKeyPath('core.themes', @metadata.name) disable: -> atom.config.removeAtKeyPath('core.themes', @metadata.nam...
Q = require 'q' AtomPackage = require './atom-package' module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> atom.config.unshiftAtKeyPath('core.themes', @name) disable: -> atom.config.removeAtKeyPath('core.themes', @name) load: -> ...
Use name ivar instead of metadata.name
Use name ivar instead of metadata.name
CoffeeScript
mit
Austen-G/BlockBuilder,Rodjana/atom,Ingramz/atom,deoxilix/atom,Galactix/atom,SlimeQ/atom,KENJU/atom,KENJU/atom,acontreras89/atom,githubteacher/atom,bolinfest/atom,vinodpanicker/atom,h0dgep0dge/atom,rookie125/atom,AlbertoBarrago/atom,hakatashi/atom,abe33/atom,johnhaley81/atom,einarmagnus/atom,ironbox360/atom,davideg/atom...
coffeescript
## Code Before: Q = require 'q' AtomPackage = require './atom-package' module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> atom.config.unshiftAtKeyPath('core.themes', @metadata.name) disable: -> atom.config.removeAtKeyPath('core.themes...
Q = require 'q' AtomPackage = require './atom-package' module.exports = class ThemePackage extends AtomPackage getType: -> 'theme' getStylesheetType: -> 'theme' enable: -> - atom.config.unshiftAtKeyPath('core.themes', @metadata.name) ? --...
8
0.25
4
4
305b33b4d08909839aded1a6e2b6ae66bb5c53a5
spec/simple_set_spec.rb
spec/simple_set_spec.rb
require File.dirname(__FILE__) + '/spec_helper' describe Extlib::SimpleSet do before do @s = Extlib::SimpleSet.new("Initial") end describe "#initialize" do it 'adds passed value to the set' do @new_generation_vms = Extlib::SimpleSet.new(["Rubinius", "PyPy", "Parrot"]) @new_generation_vms.s...
require File.dirname(__FILE__) + '/spec_helper' describe Extlib::SimpleSet do before do @s = Extlib::SimpleSet.new("Initial") end describe "#initialize" do it 'adds passed value to the set' do @new_generation_vms = Extlib::SimpleSet.new(["Rubinius", "PyPy", "Parrot"]) @new_generation_vms.s...
Add one more spec example for SimpleSet.
Add one more spec example for SimpleSet.
Ruby
mit
paul/extlib
ruby
## Code Before: require File.dirname(__FILE__) + '/spec_helper' describe Extlib::SimpleSet do before do @s = Extlib::SimpleSet.new("Initial") end describe "#initialize" do it 'adds passed value to the set' do @new_generation_vms = Extlib::SimpleSet.new(["Rubinius", "PyPy", "Parrot"]) @new_...
require File.dirname(__FILE__) + '/spec_helper' describe Extlib::SimpleSet do before do @s = Extlib::SimpleSet.new("Initial") end describe "#initialize" do it 'adds passed value to the set' do @new_generation_vms = Extlib::SimpleSet.new(["Rubinius", "PyPy", "Parrot"]) ...
7
0.134615
6
1
5c4c4989b6e98a983590c455b1f533d845ddbbc3
lib/utility/logger.rb
lib/utility/logger.rb
class Logger def initialize @file = File.new("logs/#{Time.now.strftime('%Y-%m-%d')}.log", 'a') end def log(data) @file.write("[#{Time.now.strftime('%H:%M:%S')}] #{data}\n") end end
require 'digest/md5' class Logger def initialize @file = File.new("../logs/#{Time.now.strftime('%Y-%m-%d')} - #{Digest::MD5.hexdigest rand.to_s}.log", 'a') end def log(data) @file.write("[#{Time.now.strftime('%H:%M:%S')}] #{data}\n") end end
Add unique IDs to log files
Add unique IDs to log files
Ruby
mit
Hyftar/TeChris
ruby
## Code Before: class Logger def initialize @file = File.new("logs/#{Time.now.strftime('%Y-%m-%d')}.log", 'a') end def log(data) @file.write("[#{Time.now.strftime('%H:%M:%S')}] #{data}\n") end end ## Instruction: Add unique IDs to log files ## Code After: require 'digest/md5' class Logger def init...
+ require 'digest/md5' class Logger + def initialize - @file = File.new("logs/#{Time.now.strftime('%Y-%m-%d')}.log", 'a') + @file = File.new("../logs/#{Time.now.strftime('%Y-%m-%d')} - #{Digest::MD5.hexdigest rand.to_s}.log", 'a') ? +++ ++++++++++...
4
0.444444
3
1
f8dcceb9702c079e16bda30582e561ffeb2e857b
billjobs/urls.py
billjobs/urls.py
from django.conf.urls import url, include from . import views urlpatterns = [ url(r'^generate_pdf/(?P<bill_id>\d+)$', views.generate_pdf, name='generate-pdf'), url(r'^users/$', views.UserAdmin.as_view(), name='users'), url(r'^users/(?P<pk>[0-9]+)/$', views.UserAdminDetail.as_view(), name='user-deta...
from django.conf.urls import url, include from rest_framework.authtoken.views import obtain_auth_token from . import views urlpatterns = [ url(r'^generate_pdf/(?P<bill_id>\d+)$', views.generate_pdf, name='generate-pdf'), url(r'^users/$', views.UserAdmin.as_view(), name='users'), url(r'^users/(?P<pk...
Add rest_framework view to obtain auth token
Add rest_framework view to obtain auth token
Python
mit
ioO/billjobs
python
## Code Before: from django.conf.urls import url, include from . import views urlpatterns = [ url(r'^generate_pdf/(?P<bill_id>\d+)$', views.generate_pdf, name='generate-pdf'), url(r'^users/$', views.UserAdmin.as_view(), name='users'), url(r'^users/(?P<pk>[0-9]+)/$', views.UserAdminDetail.as_view(),...
from django.conf.urls import url, include + from rest_framework.authtoken.views import obtain_auth_token from . import views urlpatterns = [ url(r'^generate_pdf/(?P<bill_id>\d+)$', views.generate_pdf, name='generate-pdf'), url(r'^users/$', views.UserAdmin.as_view(), name='users'), u...
4
0.4
3
1
4aec2509b12f10a7bc6dc558e4cd2710c7e5e203
src/foam/nanos/logger/LogMessageController.js
src/foam/nanos/logger/LogMessageController.js
foam.CLASS({ package: 'foam.nanos.logger', name: 'LogMessageController', extends: 'foam.comics.DAOController', documentation: 'A custom DAOController to work with log messages.', requires: ['foam.nanos.logger.LogMessage'], imports: ['logMessageDAO'], properties: [ { class: 'foam.dao.DAOPrope...
foam.CLASS({ package: 'foam.nanos.logger', name: 'LogMessageController', extends: 'foam.comics.DAOController', documentation: 'A custom DAOController to work with log messages.', requires: ['foam.nanos.logger.LogMessage'], imports: ['logMessageDAO'], properties: [ { class: 'foam.dao.DAOPrope...
Remove unnecessary code to limit table width
Remove unnecessary code to limit table width With the recent changes to tables, this is no longer necessary.
JavaScript
apache-2.0
jacksonic/vjlofvhjfgm,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,foam-framework/foam2
javascript
## Code Before: foam.CLASS({ package: 'foam.nanos.logger', name: 'LogMessageController', extends: 'foam.comics.DAOController', documentation: 'A custom DAOController to work with log messages.', requires: ['foam.nanos.logger.LogMessage'], imports: ['logMessageDAO'], properties: [ { class: 'f...
foam.CLASS({ package: 'foam.nanos.logger', name: 'LogMessageController', extends: 'foam.comics.DAOController', documentation: 'A custom DAOController to work with log messages.', requires: ['foam.nanos.logger.LogMessage'], imports: ['logMessageDAO'], properties: [ { ...
19
0.475
0
19
d56c4fe8257dccffa7755145d991f2ffaaad0347
recipes/database_mysql.rb
recipes/database_mysql.rb
mysql = node['mysql'] gitlab = node['gitlab'] # 5.Database include_recipe "mysql::server" include_recipe "database::mysql" mysql_connection = { :host => 'localhost', :username => 'root', :password => mysql['server_root_password'] } ## Create a user for GitLab. mysql_database_user gitlab['user'] do connectio...
mysql = node['mysql'] gitlab = node['gitlab'] # 5.Database include_recipe "mysql::server" include_recipe "database::mysql" mysql_connection = { :host => 'localhost', :username => 'root', :password => mysql['server_root_password'] } ## Create a user for GitLab. mysql_database_user gitlab['user'] do connectio...
Add encoding and collation to the db creation.
Add encoding and collation to the db creation.
Ruby
mit
dfang/deploy_gitlab,maoueh/cookbook-gitlab,maoueh/cookbook-gitlab,maoueh/cookbook-gitlab
ruby
## Code Before: mysql = node['mysql'] gitlab = node['gitlab'] # 5.Database include_recipe "mysql::server" include_recipe "database::mysql" mysql_connection = { :host => 'localhost', :username => 'root', :password => mysql['server_root_password'] } ## Create a user for GitLab. mysql_database_user gitlab['user'...
mysql = node['mysql'] gitlab = node['gitlab'] # 5.Database include_recipe "mysql::server" include_recipe "database::mysql" mysql_connection = { :host => 'localhost', :username => 'root', :password => mysql['server_root_password'] } ## Create a user for GitLab. mysql_database_us...
2
0.054054
2
0
057cf63c7eaf7ceb737402b23f02cbdc01ddbec2
README.md
README.md
A scraping framework written in PHP
A scraping framework written in PHP [![Build Status](https://travis-ci.org/rajanrx/php-scrape.svg?branch=master)](https://travis-ci.org/rajanrx/php-scrape)
Add travis status on readme
Add travis status on readme
Markdown
mit
rajanrx/php-scrape,rajanrx/php-scrape,rajanrx/php-scrape
markdown
## Code Before: A scraping framework written in PHP ## Instruction: Add travis status on readme ## Code After: A scraping framework written in PHP [![Build Status](https://travis-ci.org/rajanrx/php-scrape.svg?branch=master)](https://travis-ci.org/rajanrx/php-scrape)
A scraping framework written in PHP + + [![Build Status](https://travis-ci.org/rajanrx/php-scrape.svg?branch=master)](https://travis-ci.org/rajanrx/php-scrape)
2
2
2
0
9ec4ee7245a917cb697633e513c8471a6da8b958
composer.json
composer.json
{ "name": "ray/di", "type": "library", "description": "Guice style annotation-driven dependency injection framework", "keywords": [ "dependency injection", "di", "container", "guice", "annotation", "ioc", "aop", "method interception", ...
{ "name": "ray/di", "type": "library", "description": "Guice style annotation-driven dependency injection framework", "keywords": [ "dependency injection", "di", "container", "guice", "annotation", "ioc", "aop", "method interception", ...
Rename package name in packagist.
Rename package name in packagist.
JSON
mit
ray-di/Ray.Di,koriym/Ray.Di,deizel/Ray.Di
json
## Code Before: { "name": "ray/di", "type": "library", "description": "Guice style annotation-driven dependency injection framework", "keywords": [ "dependency injection", "di", "container", "guice", "annotation", "ioc", "aop", "method inte...
{ "name": "ray/di", "type": "library", "description": "Guice style annotation-driven dependency injection framework", "keywords": [ "dependency injection", "di", "container", "guice", "annotation", "ioc", "aop", "m...
2
0.05
1
1
b9e410f41edc24355c3922303b72d08ef65cbd04
package.json
package.json
{ "name": "twitter-crawler", "version": "1.0.3", "description": "NodeJS Crawler for Twitter", "engines": { "node": ">=6.0.0" }, "keywords": [ "twitter", "crawl", "crawling", "crawler", "tweets" ], "license": "Apache-2.0", "author": "Ary Pablo Batista <batarypa@ar.ibm.com>", "...
{ "name": "twitter-crawler", "version": "1.0.3", "description": "NodeJS Crawler for Twitter", "engines": { "node": ">=6.0.0" }, "keywords": [ "twitter", "crawl", "crawling", "crawler", "tweets" ], "license": "Apache-2.0", "author": "Ary Pablo Batista <batarypa@ar.ibm.com>", "...
Add underscore as dependency instead of devDependency
Add underscore as dependency instead of devDependency
JSON
apache-2.0
ibm-silvergate/nodejs-twitter-crawler
json
## Code Before: { "name": "twitter-crawler", "version": "1.0.3", "description": "NodeJS Crawler for Twitter", "engines": { "node": ">=6.0.0" }, "keywords": [ "twitter", "crawl", "crawling", "crawler", "tweets" ], "license": "Apache-2.0", "author": "Ary Pablo Batista <batarypa@a...
{ "name": "twitter-crawler", "version": "1.0.3", "description": "NodeJS Crawler for Twitter", "engines": { "node": ">=6.0.0" }, "keywords": [ "twitter", "crawl", "crawling", "crawler", "tweets" ], "license": "Apache-2.0", "author": "Ary Pablo Bat...
4
0.097561
2
2
51e7cd3bc5a9a56fb53a5b0a8328d0b9d58848dd
modder/utils/desktop_notification.py
modder/utils/desktop_notification.py
import platform if platform.system() == 'Darwin': from Foundation import NSUserNotificationDefaultSoundName import objc NSUserNotification = objc.lookUpClass('NSUserNotification') NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter') def desktop_notify(text, title='Modder', soun...
import platform if platform.system() == 'Darwin': from Foundation import NSUserNotificationDefaultSoundName import objc NSUserNotification = objc.lookUpClass('NSUserNotification') NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter') def desktop_notify(text, title=None, sound=Fa...
Fix title for desktop notification
Fix title for desktop notification
Python
mit
JokerQyou/Modder2
python
## Code Before: import platform if platform.system() == 'Darwin': from Foundation import NSUserNotificationDefaultSoundName import objc NSUserNotification = objc.lookUpClass('NSUserNotification') NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter') def desktop_notify(text, titl...
import platform if platform.system() == 'Darwin': from Foundation import NSUserNotificationDefaultSoundName import objc NSUserNotification = objc.lookUpClass('NSUserNotification') NSUserNotificationCenter = objc.lookUpClass('NSUserNotificationCenter') - def desktop_notify(text, ...
12
0.444444
9
3
bb22de261a902298edf2b930efc025b0655455b3
manifest.json
manifest.json
{ "manifest_version": 2, "name": "AGDSN Traffic", "version": "3.0.5", "author": "Hagen Eckert, Christian Jacobs, Tim Kluge", "default_locale": "en", "description": "__MSG_description__", "icons": { "16": "logo/logo_16.png", "48": "logo/logo_48.png", "128": "logo/logo_128.png" }, "browser_a...
{ "manifest_version": 2, "name": "AGDSN Traffic", "version": "3.0.5", "author": "Hagen Eckert, Christian Jacobs, Tim Kluge", "default_locale": "en", "description": "__MSG_description__", "icons": { "16": "logo/logo_16.png", "48": "logo/logo_48.png", "128": "logo/logo_128.png" }, "browser_a...
Remove application id (became optional setting in new firefox releases)
Remove application id (became optional setting in new firefox releases)
JSON
unlicense
agdsn/trafficplugin,agdsn/trafficplugin
json
## Code Before: { "manifest_version": 2, "name": "AGDSN Traffic", "version": "3.0.5", "author": "Hagen Eckert, Christian Jacobs, Tim Kluge", "default_locale": "en", "description": "__MSG_description__", "icons": { "16": "logo/logo_16.png", "48": "logo/logo_48.png", "128": "logo/logo_128.png" ...
{ "manifest_version": 2, "name": "AGDSN Traffic", "version": "3.0.5", "author": "Hagen Eckert, Christian Jacobs, Tim Kluge", "default_locale": "en", "description": "__MSG_description__", "icons": { "16": "logo/logo_16.png", "48": "logo/logo_48.png", "128": "logo/logo_128....
5
0.151515
0
5
ab8aa95939797c275688e02ffc596c3e2e8e94ea
CHANGES.rst
CHANGES.rst
Changelog ========= 0.1.0 (not yet released) ------------------------ - Initial release.
Changelog ========= 0.1.0 (not yet released) ------------------------ - Added ``django_mc.link`` sub-application. - Added ``AddComponentTypeToRegions`` and ``RemoveComponentTypeFromRegions`` to make it super easy to add and remove component types to and from the list of allowed components in a region. - Initial r...
Add changelog for django_mc.link and migration operations
Add changelog for django_mc.link and migration operations
reStructuredText
bsd-3-clause
team23/django_mc
restructuredtext
## Code Before: Changelog ========= 0.1.0 (not yet released) ------------------------ - Initial release. ## Instruction: Add changelog for django_mc.link and migration operations ## Code After: Changelog ========= 0.1.0 (not yet released) ------------------------ - Added ``django_mc.link`` sub-application. - Adde...
Changelog ========= 0.1.0 (not yet released) ------------------------ + - Added ``django_mc.link`` sub-application. + - Added ``AddComponentTypeToRegions`` and ``RemoveComponentTypeFromRegions`` + to make it super easy to add and remove component types to and from the list of + allowed components in a...
4
0.571429
4
0
ac9550e6fadd4d80915b6b93e5ee2ad8236a6a5c
server.js
server.js
var express = require('express'); var path = require('path'); var FlightAware = require('flightaware.js'); // Get access to the FlightAware 2.0 client API ... // See http://flightaware.com/commercial/flightxml for username/apiKey ... var username = 'your-flightaware-username'; var apiKey = 'your-flightaware-apiKey'; v...
var express = require('express'); var path = require('path'); var FlightAware = require('flightaware.js'); var config = require('./config'); // Get access to the FlightAware 2.0 client API ... // See http://flightaware.com/commercial/flightxml for username/apiKey ... var client = new FlightAware(config.username, confi...
Use a config file for the FlightAware keys.
Use a config file for the FlightAware keys.
JavaScript
apache-2.0
icedawn/angular-flightaware.js,icedawn/angular-flightaware.js
javascript
## Code Before: var express = require('express'); var path = require('path'); var FlightAware = require('flightaware.js'); // Get access to the FlightAware 2.0 client API ... // See http://flightaware.com/commercial/flightxml for username/apiKey ... var username = 'your-flightaware-username'; var apiKey = 'your-flight...
var express = require('express'); var path = require('path'); var FlightAware = require('flightaware.js'); + var config = require('./config'); // Get access to the FlightAware 2.0 client API ... // See http://flightaware.com/commercial/flightxml for username/apiKey ... - var username = 'your-flightaware-us...
5
0.166667
2
3
15ef95e3aff9a22f910a187aa4e2fae951430d7a
CMakeLists.txt
CMakeLists.txt
file(GLOB EASTL_SOURCES "source/*.cpp") add_library(EASTL ${EASTL_SOURCES}) #------------------------------------------------------------------------------------------- # Include dirs #------------------------------------------------------------------------------------------- target_include_directories(EASTL PUBLIC i...
cmake_minimum_required(VERSION 3.3) #------------------------------------------------------------------------------------------- # Library definition #------------------------------------------------------------------------------------------- file(GLOB EASTL_SOURCES "source/*.cpp") add_library(EASTL ${EASTL_SOURCES}) ...
Fix up cmake warning: No cmake_minimum_required command is present.
Fix up cmake warning: No cmake_minimum_required command is present.
Text
bsd-3-clause
sinkingsugar/EASTL,electronicarts/EASTL,DragoonX6/EASTL,electronicarts/EASTL,mwolting/EASTL,DragoonX6/EASTL,Nuclearfossil/EASTL,DragoonX6/EASTL,Nuclearfossil/EASTL,mwolting/EASTL,mwolting/EASTL,Nuclearfossil/EASTL,sinkingsugar/EASTL,electronicarts/EASTL,sinkingsugar/EASTL
text
## Code Before: file(GLOB EASTL_SOURCES "source/*.cpp") add_library(EASTL ${EASTL_SOURCES}) #------------------------------------------------------------------------------------------- # Include dirs #------------------------------------------------------------------------------------------- target_include_directorie...
+ cmake_minimum_required(VERSION 3.3) + #------------------------------------------------------------------------------------------- + # Library definition + #------------------------------------------------------------------------------------------- file(GLOB EASTL_SOURCES "source/*.cpp") add_library(EASTL ${EASTL...
4
0.444444
4
0
14d6537cd2000ae28320366934d769846f3610cf
src/index.js
src/index.js
import React, { Component, PropTypes } from 'react' import ReactDOM from 'react-dom' import ReactDOMServer from 'react-dom/server' import SVGInjector from 'svg-injector' export default class ReactSVG extends Component { static defaultProps = { callback: () => {}, className: '', evalScripts: 'once', ...
import React, { Component, PropTypes } from 'react' import ReactDOMServer from 'react-dom/server' import SVGInjector from 'svg-injector' export default class ReactSVG extends Component { static defaultProps = { callback: () => {}, className: '', evalScripts: 'once', style: {} } static propTypes...
Handle mounting and unmounting via ref callback
Handle mounting and unmounting via ref callback
JavaScript
mit
atomic-app/react-svg
javascript
## Code Before: import React, { Component, PropTypes } from 'react' import ReactDOM from 'react-dom' import ReactDOMServer from 'react-dom/server' import SVGInjector from 'svg-injector' export default class ReactSVG extends Component { static defaultProps = { callback: () => {}, className: '', evalScrip...
import React, { Component, PropTypes } from 'react' - import ReactDOM from 'react-dom' import ReactDOMServer from 'react-dom/server' import SVGInjector from 'svg-injector' export default class ReactSVG extends Component { static defaultProps = { callback: () => {}, className: '', eva...
23
0.302632
11
12
c579148a0e5da18d9e531acdfd00433863778df0
test.lua
test.lua
button = ""; old_button = ""; count = 0; fact = ""; while (true) do for key, value in pairs(joypad.get(1)) do if(value) then button = key; end; end; if(button == "select" and old_button ~= button) then count = count + 1; output = io.open("output.txt", "w"); io.output(output); io.wr...
button = ""; old_button = ""; count = 0; fact = ""; function kill_mario () -- Sets the timer to zero. memory.writebyte(0x07F8, 0); memory.writebyte(0x07F9, 0); memory.writebyte(0x07FA, 0); end; function read_coins () -- Returns the number of coins the user has return memory.readbyte(0x07ED) .. memory.read...
Implement basic memory editing functions for super mario bros
Implement basic memory editing functions for super mario bros
Lua
mit
sagnew/RomHacking,sagnew/RomHacking
lua
## Code Before: button = ""; old_button = ""; count = 0; fact = ""; while (true) do for key, value in pairs(joypad.get(1)) do if(value) then button = key; end; end; if(button == "select" and old_button ~= button) then count = count + 1; output = io.open("output.txt", "w"); io.output(ou...
button = ""; old_button = ""; count = 0; fact = ""; + function kill_mario () + -- Sets the timer to zero. + memory.writebyte(0x07F8, 0); + memory.writebyte(0x07F9, 0); + memory.writebyte(0x07FA, 0); + end; + + function read_coins () + -- Returns the number of coins the user has + return memory.r...
24
0.705882
21
3
05e4ee6a55c217849800b4dfa828b7c2af28f228
src/DI/ThemesExtension.php
src/DI/ThemesExtension.php
<?php /** * Created by PhpStorm. * User: Michal * Date: 8.1.14 * Time: 19:02 */ namespace AnnotateCms\Themes\DI; use AnnotateCms\Framework\DI\CompilerExtension; use AnnotateCms\Themes\Loaders\ThemesLoader; use Kdyby\Events\DI\EventsExtension; class ThemesExtension extends CompilerExtension { ...
<?php /** * Created by PhpStorm. * User: Michal * Date: 8.1.14 * Time: 19:02 */ namespace AnnotateCms\Themes\DI; use AnnotateCms\Themes\Loaders\ThemesLoader; use Kdyby\Events\DI\EventsExtension; use Nette\DI\CompilerExtension; class ThemesExtension extends CompilerExtension { public functi...
Remove custom compiler extension class
Remove custom compiler extension class
PHP
mit
greeny/themes,greeny/themes
php
## Code Before: <?php /** * Created by PhpStorm. * User: Michal * Date: 8.1.14 * Time: 19:02 */ namespace AnnotateCms\Themes\DI; use AnnotateCms\Framework\DI\CompilerExtension; use AnnotateCms\Themes\Loaders\ThemesLoader; use Kdyby\Events\DI\EventsExtension; class ThemesExtension extends CompilerExtension { ...
<?php /** * Created by PhpStorm. * User: Michal * Date: 8.1.14 * Time: 19:02 */ namespace AnnotateCms\Themes\DI; - use AnnotateCms\Framework\DI\CompilerExtension; use AnnotateCms\Themes\Loaders\ThemesLoader; use Kdyby\Events\DI\EventsExtension; + use Nette\DI\CompilerExtension; cl...
34
0.693878
11
23
a30225ba02d7402cfeb5590dcb52bb018d18230c
Ruby/lib/mini_profiler/storage/redis_store.rb
Ruby/lib/mini_profiler/storage/redis_store.rb
module Rack class MiniProfiler class RedisStore < AbstractStore EXPIRE_SECONDS = 60 * 60 * 24 def initialize(args) @args = args || {} @prefix = @args.delete(:prefix) || 'MPRedisStore' end def save(page_struct) redis.setex "#{@prefix}#{page_struct['Id']}", EX...
module Rack class MiniProfiler class RedisStore < AbstractStore EXPIRE_SECONDS = 60 * 60 * 24 def initialize(args) @args = args || {} @prefix = @args.delete(:prefix) || 'MPRedisStore' @redis_connection = @args.delete(:connection) end def save(page_struct) ...
Implement external connection creation in RedisStore
Implement external connection creation in RedisStore
Ruby
mit
MiniProfiler/dotnet,MiniProfiler/dotnet
ruby
## Code Before: module Rack class MiniProfiler class RedisStore < AbstractStore EXPIRE_SECONDS = 60 * 60 * 24 def initialize(args) @args = args || {} @prefix = @args.delete(:prefix) || 'MPRedisStore' end def save(page_struct) redis.setex "#{@prefix}#{page_st...
module Rack class MiniProfiler class RedisStore < AbstractStore EXPIRE_SECONDS = 60 * 60 * 24 def initialize(args) @args = args || {} @prefix = @args.delete(:prefix) || 'MPRedisStore' + @redis_connection = @args.delete(:connection) end ...
2
0.045455
2
0
e9694179c96395b190a8b9b0f479fe12e502e735
README.md
README.md
xtext-maven-example =================== This is the accompanying material for my [blog post](http://mnmlst-dvlpr.blogspot.de/2014/08/building-xtext-languages-with-maven-and.html) on how to build Xtext languages with Maven and Gradle. [Lorenzo Bettini](https://github.com/LorenzoBettini) has provided an additional exam...
xtext-maven-example =================== This project is outdated and only kept around for historic reasons. Since Xtext 2.9, the Xtext wizard generates a Maven build for you. This is the accompanying material for my [blog post](http://mnmlst-dvlpr.blogspot.de/2014/08/building-xtext-languages-with-maven-and.html) on h...
Mark as outdated because of Xtext 2.9
Mark as outdated because of Xtext 2.9
Markdown
epl-1.0
oehme/xtext-maven-example
markdown
## Code Before: xtext-maven-example =================== This is the accompanying material for my [blog post](http://mnmlst-dvlpr.blogspot.de/2014/08/building-xtext-languages-with-maven-and.html) on how to build Xtext languages with Maven and Gradle. [Lorenzo Bettini](https://github.com/LorenzoBettini) has provided an...
xtext-maven-example =================== + + This project is outdated and only kept around for historic reasons. Since Xtext 2.9, the Xtext wizard generates a Maven build for you. This is the accompanying material for my [blog post](http://mnmlst-dvlpr.blogspot.de/2014/08/building-xtext-languages-with-maven-an...
2
0.333333
2
0
54c625f4664f3fb63004ea416977cec01ecd2de6
client/controller/about-controller.coffee
client/controller/about-controller.coffee
class @AboutController extends RouteController onBeforeRun: -> if not subscriptionHandles.moderators subscriptionHandles.moderators = Meteor.subscribe('moderators') subscriptionHandles.moderators.stop = -> tempalte: 'about' renderTemplates: 'nav': to: 'nav' data: -> page: 'about'
class @AboutController extends RouteController onBeforeRun: -> if not subscriptionHandles.moderators subscriptionHandles.moderators = Meteor.subscribe('moderators') subscriptionHandles.moderators.stop = -> waitOn: -> subscriptionHandles.moderators tempalte: 'about' renderTemplates: 'n...
Fix the about page, where moderators don't always show up
Fix the about page, where moderators don't always show up
CoffeeScript
apache-2.0
rantav/reversim-summit-2015,rantav/reversim-summit-2015,rantav/reversim-summit-2014,rantav/reversim-summit-2014,rantav/reversim-summit-2015
coffeescript
## Code Before: class @AboutController extends RouteController onBeforeRun: -> if not subscriptionHandles.moderators subscriptionHandles.moderators = Meteor.subscribe('moderators') subscriptionHandles.moderators.stop = -> tempalte: 'about' renderTemplates: 'nav': to: 'nav' data: -> pa...
class @AboutController extends RouteController onBeforeRun: -> if not subscriptionHandles.moderators subscriptionHandles.moderators = Meteor.subscribe('moderators') subscriptionHandles.moderators.stop = -> + waitOn: -> + subscriptionHandles.moderators + tempalte: 'about' ...
3
0.230769
3
0
fb2c51c0393bb41b453869425014de38f4d18591
src/lib.rs
src/lib.rs
//! This is a very early work-in-progress binding to various Linux Kernel APIs. //! //! It is not yet ready for use in your projects. Once version 0.1 or higher //! is released, you are welcome to start using it :) #![cfg(target_os="linux")] pub use std::os::*; pub use std::os::raw::*;
//! This is a very early work-in-progress binding to various Linux Kernel APIs. //! //! It is not yet ready for use in your projects. Once version 0.1 or higher //! is released, you are welcome to start using it :) #![cfg(target_os="linux")] pub use std::os::*; pub use std::os::raw::*; #[cfg(test)] mod tests { ...
Add a unit test to ensure that ctypes are imported
Add a unit test to ensure that ctypes are imported Signed-off-by: Cruz Julian Bishop <2ec049a14d87a31aea1a3d03a4724ab112720c17@gmail.com>
Rust
mit
Techern/linux-api-rs
rust
## Code Before: //! This is a very early work-in-progress binding to various Linux Kernel APIs. //! //! It is not yet ready for use in your projects. Once version 0.1 or higher //! is released, you are welcome to start using it :) #![cfg(target_os="linux")] pub use std::os::*; pub use std::os::raw::*; ## Instruction...
//! This is a very early work-in-progress binding to various Linux Kernel APIs. //! //! It is not yet ready for use in your projects. Once version 0.1 or higher //! is released, you are welcome to start using it :) #![cfg(target_os="linux")] pub use std::os::*; pub use std::os::raw::*; + + #[cfg(te...
27
3
27
0
4ce4bcd77abc41dca870dcddfc12b4547e901b7d
src/app/states/devices/device-og-kit.ts
src/app/states/devices/device-og-kit.ts
import { AbstractDevice, DeviceParams, DeviceParamsModel, DeviceParamType, DeviceType, RawDevice } from './abstract-device'; import { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils'; export class DeviceOGKit extends AbstractDevice { readonly deviceType = DeviceType.OGKit; apparatusVersion ...
import { AbstractDevice, DeviceParams, DeviceParamsModel, DeviceParamType, DeviceType, RawDevice } from './abstract-device'; import { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils'; export class DeviceOGKit extends AbstractDevice { readonly deviceType = DeviceType.OGKit; apparatusVersion ...
Fix OGKit device id read on iOS
Fix OGKit device id read on iOS
TypeScript
apache-2.0
openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile
typescript
## Code Before: import { AbstractDevice, DeviceParams, DeviceParamsModel, DeviceParamType, DeviceType, RawDevice } from './abstract-device'; import { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils'; export class DeviceOGKit extends AbstractDevice { readonly deviceType = DeviceType.OGKit; a...
import { AbstractDevice, DeviceParams, DeviceParamsModel, DeviceParamType, DeviceType, RawDevice } from './abstract-device'; import { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils'; export class DeviceOGKit extends AbstractDevice { readonly deviceType = DeviceType.OG...
2
0.052632
1
1
f64447ca0e1442552b4a854fec5a8f847d2165cd
numpy/_array_api/_types.py
numpy/_array_api/_types.py
__all__ = ['Literal', 'Optional', 'Tuple', 'Union', 'array', 'device', 'dtype', 'SupportsDLPack', 'SupportsBufferProtocol', 'PyCapsule'] from typing import Literal, Optional, Tuple, Union, TypeVar import numpy as np array = np.ndarray device = TypeVar('device') dtype = Literal[np.int8, np.int16, np.int32...
__all__ = ['Literal', 'Optional', 'Tuple', 'Union', 'array', 'device', 'dtype', 'SupportsDLPack', 'SupportsBufferProtocol', 'PyCapsule'] from typing import Literal, Optional, Tuple, Union, TypeVar from . import (ndarray, int8, int16, int32, int64, uint8, uint16, uint32, uint64, float32, flo...
Use the array API types for the array API type annotations
Use the array API types for the array API type annotations
Python
mit
cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy
python
## Code Before: __all__ = ['Literal', 'Optional', 'Tuple', 'Union', 'array', 'device', 'dtype', 'SupportsDLPack', 'SupportsBufferProtocol', 'PyCapsule'] from typing import Literal, Optional, Tuple, Union, TypeVar import numpy as np array = np.ndarray device = TypeVar('device') dtype = Literal[np.int8, np...
__all__ = ['Literal', 'Optional', 'Tuple', 'Union', 'array', 'device', 'dtype', 'SupportsDLPack', 'SupportsBufferProtocol', 'PyCapsule'] from typing import Literal, Optional, Tuple, Union, TypeVar - import numpy as np + from . import (ndarray, int8, int16, int32, int64, uint8, uint16, uint32, ...
9
0.6
5
4
cb5f8ef6edd926a1cbf5174f6c7a1d6434c5fcb7
README.md
README.md
自室に設置した Raspberry Pi B+ を使って様々な工作をして、部屋を便利にしていくプロジェクトです。 ## バージョン Ver 1.0
自室に設置した Raspberry Pi B+ を使って様々な工作をして、部屋を便利にしていくプロジェクトです。 ## ソフトウェアバージョン Ver 1.0 ## ハードウェアスペック * Raspberry Pi B+ * OS: Raspbian (Jessie) * 赤外線LED(ILED) * 赤外線受光器 * NFCリーダー/ライター
Add a description about hardware
Add a description about hardware
Markdown
apache-2.0
hideo54/SmartRoom
markdown
## Code Before: 自室に設置した Raspberry Pi B+ を使って様々な工作をして、部屋を便利にしていくプロジェクトです。 ## バージョン Ver 1.0 ## Instruction: Add a description about hardware ## Code After: 自室に設置した Raspberry Pi B+ を使って様々な工作をして、部屋を便利にしていくプロジェクトです。 ## ソフトウェアバージョン Ver 1.0 ## ハードウェアスペック * Raspberry Pi B+ * OS: Raspbian (Jessie) * 赤外線LED(ILED) *...
自室に設置した Raspberry Pi B+ を使って様々な工作をして、部屋を便利にしていくプロジェクトです。 - ## バージョン + ## ソフトウェアバージョン Ver 1.0 + + ## ハードウェアスペック + + * Raspberry Pi B+ + * OS: Raspbian (Jessie) + * 赤外線LED(ILED) + * 赤外線受光器 + * NFCリーダー/ライター
10
1.666667
9
1
5b7e2c7c4ad28634db9641a2b8c96f4d047ae503
arim/fields.py
arim/fields.py
import re from django import forms mac_pattern = re.compile("^[0-9a-f]{12}$") class MacAddrFormField(forms.CharField): def __init__(self, *args, **kwargs): kwargs['max_length'] = 17 super(MacAddrFormField, self).__init__(*args, **kwargs) def clean(self, value): value = super(MacAddr...
import re from django import forms mac_pattern = re.compile("^[0-9a-f]{12}$") class MacAddrFormField(forms.CharField): def __init__(self, *args, **kwargs): kwargs['max_length'] = 17 super(MacAddrFormField, self).__init__(*args, **kwargs) def clean(self, value): value = super(MacAddr...
Revert "Properly handle non-hex characters in MAC"
Revert "Properly handle non-hex characters in MAC" This reverts commit 2734a3f0212c722fb9fe3698dfea0dbd8a14faa7.
Python
bsd-3-clause
OSU-Net/arim,drkitty/arim,OSU-Net/arim,drkitty/arim,drkitty/arim,OSU-Net/arim
python
## Code Before: import re from django import forms mac_pattern = re.compile("^[0-9a-f]{12}$") class MacAddrFormField(forms.CharField): def __init__(self, *args, **kwargs): kwargs['max_length'] = 17 super(MacAddrFormField, self).__init__(*args, **kwargs) def clean(self, value): value...
import re from django import forms mac_pattern = re.compile("^[0-9a-f]{12}$") class MacAddrFormField(forms.CharField): def __init__(self, *args, **kwargs): kwargs['max_length'] = 17 super(MacAddrFormField, self).__init__(*args, **kwargs) def clean(self, value): ...
3
0.130435
1
2
1b4779bf9f48c394e5601ff81d6c35dd91385ede
css/Common.css
css/Common.css
hr { page-break-after: always; }
hr { page-break-after: always; } h2 { text-align: center; }
Put the text of the chapiter header in the center
Put the text of the chapiter header in the center
CSS
mit
fan-jiang/Dujing
css
## Code Before: hr { page-break-after: always; } ## Instruction: Put the text of the chapiter header in the center ## Code After: hr { page-break-after: always; } h2 { text-align: center; }
hr { page-break-after: always; } + + h2 + { + text-align: center; + }
5
1.25
5
0
a952cd075e2378eda1ecd82fb88073505901a662
config/initializers/assets.rb
config/initializers/assets.rb
Rails.application.config.assets.precompile += %w( publify.js publify_admin.js publify.css accounts.css bootstrap.css )
Rails.application.config.assets.precompile += %w( publify.js publify.css publify_admin.js publify_admin.css accounts.css bootstrap.css )
Include admin css in precompile list
Include admin css in precompile list
Ruby
mit
leminhtuan2015/test_temona,leminhtuan2015/nginx_capuchino_rails,framgia/publify,leminhtuan2015/temona_staging,babaa/foodblog,SF-WDI-LABS/publify_debugging_lab,telekomatrix/publify,shaomingtan/publify,K-and-R/publify,totzYuta/coding-diary-of-totz,sf-wdi-25/publify_debugging_lab,solanolabs/publify,blairanderson/that-musi...
ruby
## Code Before: Rails.application.config.assets.precompile += %w( publify.js publify_admin.js publify.css accounts.css bootstrap.css ) ## Instruction: Include admin css in precompile list ## Code After: Rails.application.config.assets.precompile += %w( publify.js publify.css publify_admin.js publify...
Rails.application.config.assets.precompile += %w( publify.js + publify.css publify_admin.js - publify.css + publify_admin.css ? ++++++ accounts.css bootstrap.css )
3
0.428571
2
1
533fdf249ee73deb58c0108dafe6e20ecaad7728
salt/mopidy/init.sls
salt/mopidy/init.sls
{% set mopidy = pillar.get('mopidy', {}) %} include: - .pillar_check mopidy: pkgrepo.managed: - name: deb http://apt.mopidy.com/ jessie main contrib non-free - key_url: salt://mopidy/release-key.asc pkg.installed: - pkgs: - mopidy - mopidy-spotify fi...
{% set mopidy = pillar.get('mopidy', {}) %} include: - .pillar_check mopidy: pkgrepo.managed: - name: deb http://apt.mopidy.com/ jessie main contrib non-free - key_url: salt://mopidy/release-key.asc pkg.installed: - pkgs: - mopidy - mopidy-spotify fi...
Make mopidy user owner of config file
Make mopidy user owner of config file Turns out there is no group 'mopidy'...
SaltStack
mit
thusoy/salt-states,thusoy/salt-states,thusoy/salt-states,thusoy/salt-states
saltstack
## Code Before: {% set mopidy = pillar.get('mopidy', {}) %} include: - .pillar_check mopidy: pkgrepo.managed: - name: deb http://apt.mopidy.com/ jessie main contrib non-free - key_url: salt://mopidy/release-key.asc pkg.installed: - pkgs: - mopidy - mopidy...
{% set mopidy = pillar.get('mopidy', {}) %} include: - .pillar_check mopidy: pkgrepo.managed: - name: deb http://apt.mopidy.com/ jessie main contrib non-free - key_url: salt://mopidy/release-key.asc pkg.installed: - pkgs: - mopidy ...
6
0.142857
3
3
76c67c09b60c45c13f89d2198ad9369b68d53047
resque-retry.gemspec
resque-retry.gemspec
spec = Gem::Specification.new do |s| s.name = 'resque-retry' s.version = '0.0.2' s.date = Time.now.strftime('%Y-%m-%d') s.summary = 'A resque plugin; provides retry, delay and exponential backoff support for resque jobs.' s.homepage = 'http://github.com/l...
spec = Gem::Specification.new do |s| s.name = 'resque-retry' s.version = '0.0.2' s.date = Time.now.strftime('%Y-%m-%d') s.summary = 'A resque plugin; provides retry, delay and exponential backoff support for resque jobs.' s.homepage = 'http://github.com/l...
Include HISTORY.md file in gem. This one should really be tagged v0.0.2 ;-)
Include HISTORY.md file in gem. This one should really be tagged v0.0.2 ;-)
Ruby
mit
thenovices/resque-retry,jzaleski/resque-retry,thenovices/resque-retry,seomoz/resque-retry,lantins/resque-retry,lantins/resque-retry,jzaleski/resque-retry,thenovices/resque-retry,jzaleski/resque-retry,seomoz/resque-retry,seomoz/resque-retry,lantins/resque-retry
ruby
## Code Before: spec = Gem::Specification.new do |s| s.name = 'resque-retry' s.version = '0.0.2' s.date = Time.now.strftime('%Y-%m-%d') s.summary = 'A resque plugin; provides retry, delay and exponential backoff support for resque jobs.' s.homepage = 'htt...
spec = Gem::Specification.new do |s| s.name = 'resque-retry' s.version = '0.0.2' s.date = Time.now.strftime('%Y-%m-%d') s.summary = 'A resque plugin; provides retry, delay and exponential backoff support for resque jobs.' s.homepage = 'http://...
2
0.064516
1
1
031c27d3af351eb047f8d985921410945c7b1a94
services-api/src/main/java/io/scalecube/services/api/Address.java
services-api/src/main/java/io/scalecube/services/api/Address.java
package io.scalecube.services.api; import java.util.Objects; public class Address { private final String host; private final int port; public static Address create(String host, int port) { return new Address(host, port); } private Address(String host, int port) { this.host = host; this.port = ...
package io.scalecube.services.api; import java.util.Objects; public class Address { private final String host; private final int port; private Address(String host, int port) { this.host = host; this.port = port; } /** * Create address. * * @param host host * @param port port * @ret...
Set convenient .from method in address
Set convenient .from method in address
Java
apache-2.0
scalecube/scalecube,scalecube/scalecube,servicefabric/servicefabric
java
## Code Before: package io.scalecube.services.api; import java.util.Objects; public class Address { private final String host; private final int port; public static Address create(String host, int port) { return new Address(host, port); } private Address(String host, int port) { this.host = host; ...
package io.scalecube.services.api; import java.util.Objects; public class Address { + private final String host; private final int port; + private Address(String host, int port) { + this.host = host; + this.port = port; + } + + /** + * Create address. + * + * @param host ...
30
0.638298
27
3
929a80bb98e44a2c0f0bd05716d3152d7828e72f
webdiagrams/uml.js
webdiagrams/uml.js
/** * Created by Leandro Luque on 24/07/17. */ /* JSHint configurations */ /* jshint esversion: 6 */ /* jshint -W097 */ 'use strict'; // A. const ATTRIBUTE = "A1"; // C. const CLASS = "C1"; // D. const DEFAULT = "~"; // I. const INITIAL_VALUE = "I1"; const INTERFACE = "I2"; const IS_ABSTRACT = "I3"; const...
/** * Created by Leandro Luque on 24/07/17. */ /* JSHint configurations */ /* jshint esversion: 6 */ /* jshint -W097 */ 'use strict'; // A. const ATTRIBUTE = "A1"; // C. const CLASS = "C1"; // D. const DEFAULT = "~"; // I. const INITIAL_VALUE = "I1"; const INTERFACE = "I2"; const IS_ABSTRACT = "I3"; const...
Add parameter to UML constants
Add parameter to UML constants
JavaScript
mit
leluque/webdiagrams,leluque/webdiagrams
javascript
## Code Before: /** * Created by Leandro Luque on 24/07/17. */ /* JSHint configurations */ /* jshint esversion: 6 */ /* jshint -W097 */ 'use strict'; // A. const ATTRIBUTE = "A1"; // C. const CLASS = "C1"; // D. const DEFAULT = "~"; // I. const INITIAL_VALUE = "I1"; const INTERFACE = "I2"; const IS_ABSTRACT...
/** * Created by Leandro Luque on 24/07/17. */ /* JSHint configurations */ /* jshint esversion: 6 */ /* jshint -W097 */ 'use strict'; // A. const ATTRIBUTE = "A1"; // C. const CLASS = "C1"; // D. const DEFAULT = "~"; // I. const INITIAL_VALUE = "I1"; const INTERFACE ...
1
0.020408
1
0
11200e161b7fd93f06a85b98f9c6c8cc695847e7
test/Transforms/SCCP/logical-nuke.ll
test/Transforms/SCCP/logical-nuke.ll
; RUN: opt < %s -sccp -S | FileCheck %s ; Test that SCCP has basic knowledge of when and/or/mul nuke overdefined values. ; CHECK-LABEL: test ; CHECK: ret i32 0 define i32 @test(i32 %X) { %Y = and i32 %X, 0 ret i32 %Y } ; CHECK-LABEL: test2 ; CHECK: ret i32 -1 define i32 @test2(i32 %X) { %Y = or i32 -1, %X r...
; RUN: opt < %s -sccp -S | FileCheck %s ; Test that SCCP has basic knowledge of when and/or/mul nuke overdefined values. ; CHECK-LABEL: test ; CHECK: ret i32 0 define i32 @test(i32 %X) { %Y = and i32 %X, 0 ret i32 %Y } ; CHECK-LABEL: test2 ; CHECK: ret i32 -1 define i32 @test2(i32 %X) { %Y = or i32 -1, %X r...
Make the test added in r289175 more meaningful.
[SCCP] Make the test added in r289175 more meaningful. Add a comment while here. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@289182 91177308-0d34-0410-b5e6-96231b3b80d8
LLVM
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers...
llvm
## Code Before: ; RUN: opt < %s -sccp -S | FileCheck %s ; Test that SCCP has basic knowledge of when and/or/mul nuke overdefined values. ; CHECK-LABEL: test ; CHECK: ret i32 0 define i32 @test(i32 %X) { %Y = and i32 %X, 0 ret i32 %Y } ; CHECK-LABEL: test2 ; CHECK: ret i32 -1 define i32 @test2(i32 %X) { %Y = o...
; RUN: opt < %s -sccp -S | FileCheck %s ; Test that SCCP has basic knowledge of when and/or/mul nuke overdefined values. ; CHECK-LABEL: test ; CHECK: ret i32 0 define i32 @test(i32 %X) { %Y = and i32 %X, 0 ret i32 %Y } ; CHECK-LABEL: test2 ; CHECK: ret i32 -1 define i32 @test2(i32 %X...
3
0.078947
2
1
2cf94f18ec6939b51d60f583bacb3592f948a53f
examples/apps/embedded/embedded.cpp
examples/apps/embedded/embedded.cpp
MainWindow::MainWindow() : QMainWindow() { initUI(); } MainWindow::~MainWindow() {} void MainWindow::initUI() { setWindowTitle("Maliit embedded demo"); setCentralWidget(new QWidget); QVBoxLayout *vbox = new QVBoxLayout; QPushButton *closeApp = new QPushButton("Close application"); vbox-...
MainWindow::MainWindow() : QMainWindow() { initUI(); } MainWindow::~MainWindow() {} void MainWindow::initUI() { setWindowTitle("Maliit embedded demo"); setCentralWidget(new QWidget); QVBoxLayout *vbox = new QVBoxLayout; QPushButton *closeApp = new QPushButton("Close application"); vbox-...
Remove now unneded hack from embedding example.
Remove now unneded hack from embedding example. RevBy: Jon Nordby, Michael Hasselmann, Jan Arne Petersen
C++
lgpl-2.1
binlaten/framework,RHawkeyed/framework,Elleo/framework,Elleo/framework,RHawkeyed/framework,jpetersen/framework,jpetersen/framework
c++
## Code Before: MainWindow::MainWindow() : QMainWindow() { initUI(); } MainWindow::~MainWindow() {} void MainWindow::initUI() { setWindowTitle("Maliit embedded demo"); setCentralWidget(new QWidget); QVBoxLayout *vbox = new QVBoxLayout; QPushButton *closeApp = new QPushButton("Close applicat...
MainWindow::MainWindow() : QMainWindow() { initUI(); } MainWindow::~MainWindow() {} void MainWindow::initUI() { setWindowTitle("Maliit embedded demo"); setCentralWidget(new QWidget); QVBoxLayout *vbox = new QVBoxLayout; QPushButton *closeApp = new QPushBu...
5
0.106383
0
5
eaeca1ba9db320733f31fe07b588d82360a51fa4
.travis.yml
.travis.yml
language: c sudo: required services: - docker env: matrix: - python=3.4 CONDA_PY=34 CONDA_NPY=18 install: - docker pull bioconda/bioconda-builder script: - docker run -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /bin/build-packages.sh
language: c sudo: required services: - docker env: global: - CONDA_NPY=18 matrix: - CONDA_PY=34 - CONDA_PY=27 install: - docker pull bioconda/bioconda-builder script: - docker run -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /bin/build-packages.sh
Build for python 2.7 and 3.4
Build for python 2.7 and 3.4
YAML
mit
chapmanb/bioconda-recipes,jfallmann/bioconda-recipes,rob-p/bioconda-recipes,colinbrislawn/bioconda-recipes,instituteofpathologyheidelberg/bioconda-recipes,oena/bioconda-recipes,mdehollander/bioconda-recipes,JenCabral/bioconda-recipes,rob-p/bioconda-recipes,xguse/bioconda-recipes,ivirshup/bioconda-recipes,ThomasWollmann...
yaml
## Code Before: language: c sudo: required services: - docker env: matrix: - python=3.4 CONDA_PY=34 CONDA_NPY=18 install: - docker pull bioconda/bioconda-builder script: - docker run -v `pwd`:/tmp/conda-recipes bioconda/bioconda-builder /bin/build-packages.sh ## Instruction: Build for python 2.7 and 3.4 ...
language: c sudo: required services: - docker env: + global: + - CONDA_NPY=18 matrix: - - python=3.4 CONDA_PY=34 CONDA_NPY=18 + - CONDA_PY=34 + - CONDA_PY=27 install: - docker pull bioconda/bioconda-builder script: - docker run -v `pwd`:/tmp/conda-recipes bioconda/biocond...
5
0.454545
4
1
74163dc02b192de5b4286d5cc7bd0377a7d06a74
CKTextField/CKTextField.h
CKTextField/CKTextField.h
// // CKTextField.h // CKTextField // // Created by Christian Klaproth on 12.09.14. // Copyright (c) 2014 Christian Klaproth. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "CKExternalKeyboardSupportedTextField.h" @class CKTextField; enum CKTextFieldValidationResult { ...
// // CKTextField.h // CKTextField // // Created by Christian Klaproth on 12.09.14. // Copyright (c) 2014 Christian Klaproth. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "CKExternalKeyboardSupportedTextField.h" @class CKTextField; enum CKTextFieldValidationResult { ...
Use of IBInspectable for user defined attributes.
Use of IBInspectable for user defined attributes. Validation type and ranges can be specified using the attribute inspector. #5
C
mit
JaNd3r/CKTextField,JaNd3r/CKTextField
c
## Code Before: // // CKTextField.h // CKTextField // // Created by Christian Klaproth on 12.09.14. // Copyright (c) 2014 Christian Klaproth. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "CKExternalKeyboardSupportedTextField.h" @class CKTextField; enum CKTextFieldVali...
// // CKTextField.h // CKTextField // // Created by Christian Klaproth on 12.09.14. // Copyright (c) 2014 Christian Klaproth. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "CKExternalKeyboardSupportedTextField.h" @class CKTextField; enum C...
12
0.206897
6
6
225fd1163a50d4740afdeb21cb94e3f375016e9a
setup.py
setup.py
import os from setuptools import setup import redis_shard def read_file(*path): base_dir = os.path.dirname(__file__) file_path = (base_dir, ) + tuple(path) return open(os.path.join(*file_path)).read() setup( name="redis-shard", url="https://pypi.python.org/pypi/redis-shard", license="BSD", ...
import os from setuptools import setup import redis_shard def read_file(*path): base_dir = os.path.dirname(__file__) file_path = (base_dir, ) + tuple(path) return open(os.path.join(*file_path)).read() setup( name="redis-shard", url="https://pypi.python.org/pypi/redis-shard", license="BSD Li...
Update author and maintainer information
Update author and maintainer information
Python
bsd-2-clause
zhihu/redis-shard,keakon/redis-shard
python
## Code Before: import os from setuptools import setup import redis_shard def read_file(*path): base_dir = os.path.dirname(__file__) file_path = (base_dir, ) + tuple(path) return open(os.path.join(*file_path)).read() setup( name="redis-shard", url="https://pypi.python.org/pypi/redis-shard", ...
import os from setuptools import setup import redis_shard def read_file(*path): base_dir = os.path.dirname(__file__) file_path = (base_dir, ) + tuple(path) return open(os.path.join(*file_path)).read() setup( name="redis-shard", url="https://pypi.python.org/pypi/red...
6
0.136364
4
2
406a51258d1b9ba3049b16d4249241b40100b776
src/Collection.js
src/Collection.js
(function () { if (typeof define == "function" && define.amd) define(["graphjs/Graph"], factory); else if (typeof exports == "object") module.exports = factory(require("graphjs/Graph")); else root.Collection = factory(root.Graph); }(this, function (Graph) { return function Collection(Generic) { return funct...
(function (root, factory) { if (typeof define == "function" && define.amd) define(["graphjs/Graph"], factory); else if (typeof exports == "object") module.exports = factory(require("graphjs/Graph")); else root.Collection = factory(root.Graph); }(this, function (Graph) { return function Collection(Generic) { ...
Fix bug with root parameter
Fix bug with root parameter
JavaScript
mit
cameronprattedwards/graphjs
javascript
## Code Before: (function () { if (typeof define == "function" && define.amd) define(["graphjs/Graph"], factory); else if (typeof exports == "object") module.exports = factory(require("graphjs/Graph")); else root.Collection = factory(root.Graph); }(this, function (Graph) { return function Collection(Generic) ...
- (function () { + (function (root, factory) { if (typeof define == "function" && define.amd) define(["graphjs/Graph"], factory); else if (typeof exports == "object") module.exports = factory(require("graphjs/Graph")); else root.Collection = factory(root.Graph); }(this, function (Graph) { retu...
2
0.125
1
1
bd92bbe14155ca9a2ac37124d969e02e000b4239
.rubocop.yml
.rubocop.yml
AllCops: Exclude: - vendor/**/* TargetRubyVersion: 2.2 Layout/AccessModifierIndentation: EnforcedStyle: outdent Layout/EmptyLinesAroundBlockBody: Enabled: false Layout/EmptyLinesAroundClassBody: Enabled: false Layout/EmptyLinesAroundModuleBody: Enabled: false Layout/SpaceAroundEqualsInParameterDefa...
AllCops: Exclude: - gemfiles/* - vendor/**/* TargetRubyVersion: 2.2 Layout/AccessModifierIndentation: EnforcedStyle: outdent Layout/EmptyLinesAroundBlockBody: Enabled: false Layout/EmptyLinesAroundClassBody: Enabled: false Layout/EmptyLinesAroundModuleBody: Enabled: false Layout/SpaceAroundEqua...
Exclude generated gemfiles from linting
Exclude generated gemfiles from linting
YAML
mit
Within3/liquid-autoescape
yaml
## Code Before: AllCops: Exclude: - vendor/**/* TargetRubyVersion: 2.2 Layout/AccessModifierIndentation: EnforcedStyle: outdent Layout/EmptyLinesAroundBlockBody: Enabled: false Layout/EmptyLinesAroundClassBody: Enabled: false Layout/EmptyLinesAroundModuleBody: Enabled: false Layout/SpaceAroundEqual...
AllCops: Exclude: + - gemfiles/* - vendor/**/* TargetRubyVersion: 2.2 Layout/AccessModifierIndentation: EnforcedStyle: outdent Layout/EmptyLinesAroundBlockBody: Enabled: false Layout/EmptyLinesAroundClassBody: Enabled: false Layout/EmptyLinesAroundModuleBody: Enab...
1
0.017241
1
0
ffda05a1cbcb25d939a406f0b6a791ec3a8058dc
server.js
server.js
var express = require('express'); var http = require('http'); var mongoose = require('mongoose'); var kue = require('kue'); var ds = require('./lib/data-store'); // Connect to MongoDB mongoose.connect('mongodb://127.0.0.1/habweb'); mongoose.connection.on('open', function() { console.log('Connected to Mongoose'); });...
var cluster = require('cluster'); var mongoose = require('mongoose'); //var ds = require('./lib/data-store'); var numCPUs = require('os').cpus().length; // Connect to MongoDB //mongoose.connect('mongodb://127.0.0.1/habweb'); //mongoose.connection.on('open', function() { // console.log('Connected to Mongoose'); //})...
Add node cluster to app.
Add node cluster to app.
JavaScript
bsd-3-clause
AerodyneLabs/Stratocast,AerodyneLabs/Stratocast,AerodyneLabs/Stratocast,AerodyneLabs/Stratocast,AerodyneLabs/Stratocast
javascript
## Code Before: var express = require('express'); var http = require('http'); var mongoose = require('mongoose'); var kue = require('kue'); var ds = require('./lib/data-store'); // Connect to MongoDB mongoose.connect('mongodb://127.0.0.1/habweb'); mongoose.connection.on('open', function() { console.log('Connected to...
+ var cluster = require('cluster'); - var express = require('express'); - var http = require('http'); var mongoose = require('mongoose'); - var kue = require('kue'); - var ds = require('./lib/data-store'); + //var ds = require('./lib/data-store'); ? ++ + + var numCPUs = require('os').cpus().length; // Conne...
51
1.545455
26
25
47c1881c4b384d11f4d721f6fcc9fa2dbe16f654
client/templates/authenticated/components/wish_item.js
client/templates/authenticated/components/wish_item.js
Template.wishItem.helpers({ dateOfWish() { var data = Template.instance().data; return moment().format('LLLL'); } });
Template.wishItem.helpers({ dateOfWish() { var data = Template.instance().data; return moment().format('DD.MM.YYYY'); } });
Modify date created display format to DD.MM.YYYY
Modify date created display format to DD.MM.YYYY
JavaScript
mit
lnwKodeDotCom/WeWish,lnwKodeDotCom/WeWish
javascript
## Code Before: Template.wishItem.helpers({ dateOfWish() { var data = Template.instance().data; return moment().format('LLLL'); } }); ## Instruction: Modify date created display format to DD.MM.YYYY ## Code After: Template.wishItem.helpers({ dateOfWish() { var data = Template.instance().data; re...
Template.wishItem.helpers({ dateOfWish() { var data = Template.instance().data; - return moment().format('LLLL'); ? ^^^^ + return moment().format('DD.MM.YYYY'); ? ^^^^^^^^^^ } });
2
0.333333
1
1
4f16b8cf647fa3b53f63368789b9a88d4df0db71
README.md
README.md
This is to make testing JSON output of whatever-you're-doing a tiny bit easier. Import [nosj](http://github.com/totherme/nosj), [ginkgo](http://github.com/onsi/ginkgo) and [gomega](http://github.com/onsi/gomega): ```golang import ( "github.com/totherme/nosj" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ...
This is to make testing JSON output of whatever-you're-doing a tiny bit easier. Import [nosj](http://github.com/totherme/nosj), [ginkgo](http://github.com/onsi/ginkgo) and [gomega](http://github.com/onsi/gomega): ```go import ( "github.com/totherme/nosj" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) ``...
Make github syntax highlighting work
Make github syntax highlighting work Signed-off-by: Gareth Smith <2f9181a725196cd0a5e07c6a6e161d83fcc71157@totherme.org>
Markdown
mit
totherme/unstructured,totherme/nosj
markdown
## Code Before: This is to make testing JSON output of whatever-you're-doing a tiny bit easier. Import [nosj](http://github.com/totherme/nosj), [ginkgo](http://github.com/onsi/ginkgo) and [gomega](http://github.com/onsi/gomega): ```golang import ( "github.com/totherme/nosj" . "github.com/onsi/ginkgo" . "github.c...
This is to make testing JSON output of whatever-you're-doing a tiny bit easier. Import [nosj](http://github.com/totherme/nosj), [ginkgo](http://github.com/onsi/ginkgo) and [gomega](http://github.com/onsi/gomega): - ```golang + ```go import ( "github.com/totherme/nosj" . "github.com/onsi/gink...
6
0.122449
3
3
50cf656f198bc50c562dd7cbc8314c14dfb76957
src/tokens/eth/0xdfbc9050F5B01DF53512DCC39B4f2B2BBaCD517A.json
src/tokens/eth/0xdfbc9050F5B01DF53512DCC39B4f2B2BBaCD517A.json
{ "symbol": "JOB", "name": "Jobchain", "type": "ERC20", "address": "0xdfbc9050F5B01DF53512DCC39B4f2B2BBaCD517A", "ens_address": "", "decimals": 8, "website": "https://www.jobchain.com", "logo": { "src": "https://www.jobchain.com/MyEtherWalletLogo.png", "width": "128", "height": "1...
{ "symbol": "JOB", "name": "Jobchain", "type": "ERC20", "address": "0xdfbc9050F5B01DF53512DCC39B4f2B2BBaCD517A", "ens_address": "jobchain.eth", "decimals": 8, "website": "https://www.jobchain.com", "logo": { "src": "https://www.jobchain.com/MyEtherWalletLogo.png", "width": "128", ...
Update JOB of MEW List
Update JOB of MEW List
JSON
mit
MyEtherWallet/ethereum-lists
json
## Code Before: { "symbol": "JOB", "name": "Jobchain", "type": "ERC20", "address": "0xdfbc9050F5B01DF53512DCC39B4f2B2BBaCD517A", "ens_address": "", "decimals": 8, "website": "https://www.jobchain.com", "logo": { "src": "https://www.jobchain.com/MyEtherWalletLogo.png", "width": "128", "height...
{ "symbol": "JOB", "name": "Jobchain", "type": "ERC20", "address": "0xdfbc9050F5B01DF53512DCC39B4f2B2BBaCD517A", - "ens_address": "", + "ens_address": "jobchain.eth", ? ++++++++++++ "decimals": 8, "website": "https://www.jobchain.com", "logo": { "src": "https:/...
2
0.064516
1
1
c0a341bb285e9906747c1f872e3b022a3a491044
falmer/events/filters.py
falmer/events/filters.py
from django_filters import FilterSet, CharFilter, IsoDateTimeFilter, BooleanFilter, ModelChoiceFilter from falmer.events.models import Curator from . import models class EventFilterSet(FilterSet): class Meta: model = models.Event fields = ( 'title', 'venue', 't...
from django_filters import FilterSet, CharFilter, IsoDateTimeFilter, BooleanFilter, ModelChoiceFilter from falmer.events.models import Curator from . import models class EventFilterSet(FilterSet): class Meta: model = models.Event fields = ( 'title', 'venue', 't...
Add type filter by slug
Add type filter by slug
Python
mit
sussexstudent/falmer,sussexstudent/falmer,sussexstudent/falmer,sussexstudent/falmer
python
## Code Before: from django_filters import FilterSet, CharFilter, IsoDateTimeFilter, BooleanFilter, ModelChoiceFilter from falmer.events.models import Curator from . import models class EventFilterSet(FilterSet): class Meta: model = models.Event fields = ( 'title', 'venue'...
from django_filters import FilterSet, CharFilter, IsoDateTimeFilter, BooleanFilter, ModelChoiceFilter from falmer.events.models import Curator from . import models class EventFilterSet(FilterSet): class Meta: model = models.Event fields = ( 'title', ...
1
0.021739
1
0
07276ba0ef5ce648bfff4d1146b0ef2cda9cafa2
testdata/files/unusual_types.go
testdata/files/unusual_types.go
package foo type Closer interface { Close() } type ReadCloser interface { Closer Read() } func Basic(s string) { _ = s } func BasicWrong(rc ReadCloser) { // WARN rc can be Closer rc.Close() } func Array(ints [3]int) {} func ArrayIface(rcs [3]ReadCloser) { rcs[1].Close() } func Slice(ints []int) {} func Sl...
package foo type Closer interface { Close() } type ReadCloser interface { Closer Read() } func Basic(s string) { _ = s } func BasicWrong(rc ReadCloser) { // WARN rc can be Closer rc.Close() } func Array(ints [3]int) {} func ArrayIface(rcs [3]ReadCloser) { rcs[1].Close() } func Slice(ints []int) {} func Sl...
Improve test coverage for onDecl()
Improve test coverage for onDecl() Sometimes the *ast.ValueSpec type cast is not succesful. Prove it, also avoiding future panics if we ever remove the ok check.
Go
bsd-3-clause
mvdan/interfacer
go
## Code Before: package foo type Closer interface { Close() } type ReadCloser interface { Closer Read() } func Basic(s string) { _ = s } func BasicWrong(rc ReadCloser) { // WARN rc can be Closer rc.Close() } func Array(ints [3]int) {} func ArrayIface(rcs [3]ReadCloser) { rcs[1].Close() } func Slice(ints []...
package foo type Closer interface { Close() } type ReadCloser interface { Closer Read() } func Basic(s string) { _ = s } func BasicWrong(rc ReadCloser) { // WARN rc can be Closer rc.Close() } func Array(ints [3]int) {} func ArrayIface(rcs [3]ReadCloser) { rcs[1]...
4
0.117647
4
0