prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>migrations/2_deploy_contracts.js.diff
original:
// This does not seem to write all contract address into build/contracts/*json
// module.exports = async function(deployer) {
// if (deployer.network == 'test' || config.invitation) {
// await deployer.deploy(InvitationRepository);
// invitationAddress = InvitationRepository.address;
// }
// if (deployer.network == 'test' || config.confirmation) {
// await deployer.deploy(ConfirmationRepository);
// confirmationAddress = ConfirmationRepository.address;
// }
// console.log('Deployment configuration', coolingPeriod, invitationAddress, confirmationAddress);
// return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
// };
updated:
<|file_sep|>original/migrations/2_deploy_contracts.js
// this is already required by truffle;
var yargs = require('yargs');
// eg: truffle migrate --config '{"invitation":true, "confirmation":true}'
if (yargs.argv.config) {
var config = JSON.parse(yargs.argv.config);
}
// This does not seem to write all contract address into build/contracts/*json
// module.exports = async function(deployer) {
// if (deployer.network == 'test' || config.invitation) {
// await deployer.deploy(InvitationRepository);
// invitationAddress = InvitationRepository.address;
// }
// if (deployer.network == 'test' || config.confirmation) {
// await deployer.deploy(ConfirmationRepository);
// confirmationAddress = ConfirmationRepository.address;
// }
// console.log('Deployment configuration', coolingPeriod, invitationAddress, confirmationAddress);
// return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
// };
<|file_sep|>current/migrations/2_deploy_contracts.js
// this is already required by truffle;
var yargs = require('yargs');
// eg: truffle migrate --config '{"invitation":true, "confirmation":true}'
if (yargs.argv.config) {
var config = JSON.parse(yargs.argv.config);
}
module.exports = function(deployer) {
deployer.deploy(InvitationRepository).then(function() {
if (deployer.network == 'test' || config.invitation) {
invitationAddress = InvitationRepository.address;
}
return deployer.deploy(ConfirmationRepository);
}).then(function(){
if (deployer.network == 'test' || config.confirmation) {
confirmationAddress = ConfirmationRepository.address;
}
return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
});
};
<|file_sep|>updated/migrations/2_deploy_contracts.js | if (yargs.argv.config) {
var config = JSON.parse(yargs.argv.config);
}
module.exports = function(deployer) {
deployer
.then(() => {
if (deployer.network == 'test' || config.invitation) {
return deployer.deploy(InvitationRepository)
.then(instance => invitationAddress = InvitationRepository.address);
}
})
.then(() => {
if (deployer.network == 'test' || config.confirmation) {
return deployer.deploy(ConfirmationRepository)
.then(instance => confirmationAddress = ConfirmationRepository.address);
}
})
.then(() => {
return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
}) | <|file_sep|>migrations/2_deploy_contracts.js.diff
original:
// This does not seem to write all contract address into build/contracts/*json
// module.exports = async function(deployer) {
// if (deployer.network == 'test' || config.invitation) {
// await deployer.deploy(InvitationRepository);
// invitationAddress = InvitationRepository.address;
// }
// if (deployer.network == 'test' || config.confirmation) {
// await deployer.deploy(ConfirmationRepository);
// confirmationAddress = ConfirmationRepository.address;
// }
// console.log('Deployment configuration', coolingPeriod, invitationAddress, confirmationAddress);
// return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
// };
updated:
<|file_sep|>original/migrations/2_deploy_contracts.js
// this is already required by truffle;
var yargs = require('yargs');
// eg: truffle migrate --config '{"invitation":true, "confirmation":true}'
if (yargs.argv.config) {
var config = JSON.parse(yargs.argv.config);
}
// This does not seem to write all contract address into build/contracts/*json
// module.exports = async function(deployer) {
// if (deployer.network == 'test' || config.invitation) {
// await deployer.deploy(InvitationRepository);
// invitationAddress = InvitationRepository.address;
// }
// if (deployer.network == 'test' || config.confirmation) {
// await deployer.deploy(ConfirmationRepository);
// confirmationAddress = ConfirmationRepository.address;
// }
// console.log('Deployment configuration', coolingPeriod, invitationAddress, confirmationAddress);
// return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
// };
<|file_sep|>current/migrations/2_deploy_contracts.js
// this is already required by truffle;
var yargs = require('yargs');
// eg: truffle migrate --config '{"invitation":true, "confirmation":true}'
if (yargs.argv.config) {
var config = JSON.parse(yargs.argv.config);
}
module.exports = function(deployer) {
deployer.deploy(InvitationRepository).then(function() {
if (deployer.network == 'test' || config.invitation) {
invitationAddress = InvitationRepository.address;
}
return deployer.deploy(ConfirmationRepository);
}).then(function(){
if (deployer.network == 'test' || config.confirmation) {
confirmationAddress = ConfirmationRepository.address;
}
return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
});
};
<|file_sep|>updated/migrations/2_deploy_contracts.js
if (yargs.argv.config) {
var config = JSON.parse(yargs.argv.config);
}
module.exports = function(deployer) {
deployer
.then(() => {
if (deployer.network == 'test' || config.invitation) {
return deployer.deploy(InvitationRepository)
.then(instance => invitationAddress = InvitationRepository.address);
}
})
.then(() => {
if (deployer.network == 'test' || config.confirmation) {
return deployer.deploy(ConfirmationRepository)
.then(instance => confirmationAddress = ConfirmationRepository.address);
}
})
.then(() => {
return deployer.deploy(Conference, coolingPeriod, invitationAddress, confirmationAddress);
}) | 9080d53e541065b1a7caabc2f69c26afefd03198 | migrations/2_deploy_contracts.js | migrations/2_deploy_contracts.js | JavaScript |
<|file_sep|>original/configuration/config_flags.go
import (
"flag"
"time"
)
// parseConfigFlags overwrites configuration with set flags
func parseConfigFlags(Conf *SplendidConfig) (*SplendidConfig, error) {
// TODO: This should only happen if the flag has been passed
flag.StringVar(&Conf.Workspace, "w", "./splendid-workspace", "Workspace")
flag.IntVar(&Conf.Concurrency, "c", 30, "Number of collector processes")
flag.StringVar(&Conf.SmtpString, "s", "localhost:25", "SMTP server:port")
flag.DurationVar(&Conf.Interval, "interval", 300*time.Second, "Run interval")
flag.DurationVar(&Conf.Timeout, "timeout", 60*time.Second, "Collection timeout")
flag.BoolVar(&Conf.Insecure, "insecure", false, "Allow untrusted SSH keys")
flag.BoolVar(&Conf.GitPush, "push", false, "Git push after commit")
flag.BoolVar(&Conf.HttpEnabled, "web", false, "Run an HTTP status server")
flag.StringVar(&Conf.HttpListen, "listen", "localhost:5000", "Host and port to use for HTTP status server (default: localhost:5000).")
flag.StringVar(&Conf.ConfigFile, "f", "sample.conf", "Config File")
flag.Parse()
return Conf, nil
}
<|file_sep|>current/configuration/config_flags.go
import (
"flag"
"time"
)
// parseConfigFlags overwrites configuration with set flags
func parseConfigFlags(Conf *SplendidConfig) (*SplendidConfig, error) {
// TODO: This should only happen if the flag has been passed
flag.StringVar(&Conf.Workspace, "w", "./splendid-workspace", "Workspace")
flag.IntVar(&Conf.Concurrency, "c", 30, "Number of collector processes")
flag.StringVar(&Conf.SmtpString, "s", "localhost:25", "SMTP server:port")
flag.DurationVar(&Conf.Interval, "interval", 300*time.Second, "Run interval")
flag.DurationVar(&Conf.Timeout, "timeout", 60*time.Second, "Collection timeout")
flag.BoolVar(&Conf.Insecure, "insecure", false, "Allow untrusted SSH keys")
flag.BoolVar(&Conf.GitPush, "push", false, "Git push after commit")
flag.BoolVar(&Conf.HttpEnabled, "web", false, "Run an HTTP status server")
flag.StringVar(&Conf.HttpListen, "listen", "localhost:5000", "Host and port to use for HTTP status server (default: localhost:5000).")
flag.StringVar(&Conf.ConfigFile, "f", "sample.conf", "Config File")
flag.Parse()
return Conf, nil
}
<|file_sep|>updated/configuration/config_flags.go | package configuration
import (
"flag"
"time"
)
// parseConfigFlags overwrites configuration with set flags
func parseConfigFlags(Conf *SplendidConfig) (*SplendidConfig, error) {
// Set to passed flags, otherwise go with config
flag.IntVar(&Conf.Concurrency, "c", Conf.Concurrency, "Number of collector processes")
flag.StringVar(&Conf.SmtpString, "s", Conf.SmtpString, "SMTP server:port")
flag.DurationVar(&Conf.Interval, "interval", Conf.Interval*time.Second, "Run interval")
flag.DurationVar(&Conf.Timeout, "timeout", Conf.Timeout*time.Second, "Collection timeout")
flag.BoolVar(&Conf.Insecure, "insecure", Conf.Insecure, "Allow untrusted SSH keys")
flag.BoolVar(&Conf.HttpEnabled, "web", Conf.HttpEnabled, "Run an HTTP status server")
flag.StringVar(&Conf.HttpListen, "listen", Conf.HttpListen, "Host and port to use for HTTP status server (default: localhost:5000).")
flag.StringVar(&Conf.ConfigFile, "f", Conf.ConfigFile, "Config File")
flag.Parse()
return Conf, nil
} | <|file_sep|>original/configuration/config_flags.go
import (
"flag"
"time"
)
// parseConfigFlags overwrites configuration with set flags
func parseConfigFlags(Conf *SplendidConfig) (*SplendidConfig, error) {
// TODO: This should only happen if the flag has been passed
flag.StringVar(&Conf.Workspace, "w", "./splendid-workspace", "Workspace")
flag.IntVar(&Conf.Concurrency, "c", 30, "Number of collector processes")
flag.StringVar(&Conf.SmtpString, "s", "localhost:25", "SMTP server:port")
flag.DurationVar(&Conf.Interval, "interval", 300*time.Second, "Run interval")
flag.DurationVar(&Conf.Timeout, "timeout", 60*time.Second, "Collection timeout")
flag.BoolVar(&Conf.Insecure, "insecure", false, "Allow untrusted SSH keys")
flag.BoolVar(&Conf.GitPush, "push", false, "Git push after commit")
flag.BoolVar(&Conf.HttpEnabled, "web", false, "Run an HTTP status server")
flag.StringVar(&Conf.HttpListen, "listen", "localhost:5000", "Host and port to use for HTTP status server (default: localhost:5000).")
flag.StringVar(&Conf.ConfigFile, "f", "sample.conf", "Config File")
flag.Parse()
return Conf, nil
}
<|file_sep|>current/configuration/config_flags.go
import (
"flag"
"time"
)
// parseConfigFlags overwrites configuration with set flags
func parseConfigFlags(Conf *SplendidConfig) (*SplendidConfig, error) {
// TODO: This should only happen if the flag has been passed
flag.StringVar(&Conf.Workspace, "w", "./splendid-workspace", "Workspace")
flag.IntVar(&Conf.Concurrency, "c", 30, "Number of collector processes")
flag.StringVar(&Conf.SmtpString, "s", "localhost:25", "SMTP server:port")
flag.DurationVar(&Conf.Interval, "interval", 300*time.Second, "Run interval")
flag.DurationVar(&Conf.Timeout, "timeout", 60*time.Second, "Collection timeout")
flag.BoolVar(&Conf.Insecure, "insecure", false, "Allow untrusted SSH keys")
flag.BoolVar(&Conf.GitPush, "push", false, "Git push after commit")
flag.BoolVar(&Conf.HttpEnabled, "web", false, "Run an HTTP status server")
flag.StringVar(&Conf.HttpListen, "listen", "localhost:5000", "Host and port to use for HTTP status server (default: localhost:5000).")
flag.StringVar(&Conf.ConfigFile, "f", "sample.conf", "Config File")
flag.Parse()
return Conf, nil
}
<|file_sep|>updated/configuration/config_flags.go
package configuration
import (
"flag"
"time"
)
// parseConfigFlags overwrites configuration with set flags
func parseConfigFlags(Conf *SplendidConfig) (*SplendidConfig, error) {
// Set to passed flags, otherwise go with config
flag.IntVar(&Conf.Concurrency, "c", Conf.Concurrency, "Number of collector processes")
flag.StringVar(&Conf.SmtpString, "s", Conf.SmtpString, "SMTP server:port")
flag.DurationVar(&Conf.Interval, "interval", Conf.Interval*time.Second, "Run interval")
flag.DurationVar(&Conf.Timeout, "timeout", Conf.Timeout*time.Second, "Collection timeout")
flag.BoolVar(&Conf.Insecure, "insecure", Conf.Insecure, "Allow untrusted SSH keys")
flag.BoolVar(&Conf.HttpEnabled, "web", Conf.HttpEnabled, "Run an HTTP status server")
flag.StringVar(&Conf.HttpListen, "listen", Conf.HttpListen, "Host and port to use for HTTP status server (default: localhost:5000).")
flag.StringVar(&Conf.ConfigFile, "f", Conf.ConfigFile, "Config File")
flag.Parse()
return Conf, nil
} | 7f956da3f46268dc33006bb3222f8cf1213d2e84 | configuration/config_flags.go | configuration/config_flags.go | Go |
<|file_sep|>README.md.diff
original:
EVEnado is an asynchronous EVE API library. It automatically caches all API responses (including error responses) for the minimum allowed time. The cache system is pluggable, and EVEnado comes with a Redis implementation.
updated:
EVEnado is an asynchronous EVE API library. It automatically caches all API responses (including error responses) for the minimum allowed time. The cache system is pluggable, and EVEnado comes with a both a Redis and SQLite3 implementation.
<|file_sep|>README.md.diff
original:
from evenado.redis import RedisCacheProvider
updated:
from evenado.sqlite import SqliteCacheProvider
<|file_sep|>README.md.diff
original:
client = APIClient(RedisCacheProvider(), keyid=..., vcode=...)
updated:
client = APIClient(SqliteProvider(), keyid=..., vcode=...)
<|file_sep|>original/README.md
Usage
-----
Usage is straightforward and best explained by example:
```python
from evenado.client import APIClient
from evenado.redis import RedisCacheProvider
from tornado import gen, ioloop
@gen.coroutine
def async_main():
client = APIClient(RedisCacheProvider(), keyid=..., vcode=...)
for char in (yield client.characters()):
print char.name
if __name__ == '__main__':
ioloop.IOLoop.instance().run_sync(async_main)
```
Of course you can also use the library within the context of a Tornado HTTPServer or anything else which can use Tornado coroutines.
<|file_sep|>current/README.md
Usage
-----
Usage is straightforward and best explained by example:
```python
from evenado.client import APIClient
from evenado.sqlite import SqliteCacheProvider
from tornado import gen, ioloop
@gen.coroutine
def async_main():
client = APIClient(SqliteProvider(), keyid=..., vcode=...)
for char in (yield client.characters()):
print char.name
if __name__ == '__main__':
ioloop.IOLoop.instance().run_sync(async_main)
```
Of course you can also use the library within the context of a Tornado HTTPServer or anything else which can use Tornado coroutines.
<|file_sep|>updated/README.md | from evenado.sqlite import SqliteCacheProvider
from tornado import gen, ioloop
@gen.coroutine
def async_main():
client = APIClient(SqliteProvider(), keyid=..., vcode=...)
for char in (yield client.characters()):
print char.name
if __name__ == '__main__':
ioloop.IOLoop.instance().run_sync(async_main)
```
Of course you can also use the library within the context of a Tornado HTTPServer or anything else which can use Tornado coroutines.
Cache Providers
---------------
The Redis cache provider is suitable for a 10kqps+ multi-machine webserver environment. Even with only a single Redis process, this will not be your limiting factor given the number of subscribed EVE players.
The SQLite3 provider is a good choice for scripts, or low-traffic single-machine webservers. By default, all programs using this provider on the same machine will share a cache. Currently, SQLite I/O takes place on the main thread which will cause performance issues with concurrent access on a slow disk. | <|file_sep|>README.md.diff
original:
EVEnado is an asynchronous EVE API library. It automatically caches all API responses (including error responses) for the minimum allowed time. The cache system is pluggable, and EVEnado comes with a Redis implementation.
updated:
EVEnado is an asynchronous EVE API library. It automatically caches all API responses (including error responses) for the minimum allowed time. The cache system is pluggable, and EVEnado comes with a both a Redis and SQLite3 implementation.
<|file_sep|>README.md.diff
original:
from evenado.redis import RedisCacheProvider
updated:
from evenado.sqlite import SqliteCacheProvider
<|file_sep|>README.md.diff
original:
client = APIClient(RedisCacheProvider(), keyid=..., vcode=...)
updated:
client = APIClient(SqliteProvider(), keyid=..., vcode=...)
<|file_sep|>original/README.md
Usage
-----
Usage is straightforward and best explained by example:
```python
from evenado.client import APIClient
from evenado.redis import RedisCacheProvider
from tornado import gen, ioloop
@gen.coroutine
def async_main():
client = APIClient(RedisCacheProvider(), keyid=..., vcode=...)
for char in (yield client.characters()):
print char.name
if __name__ == '__main__':
ioloop.IOLoop.instance().run_sync(async_main)
```
Of course you can also use the library within the context of a Tornado HTTPServer or anything else which can use Tornado coroutines.
<|file_sep|>current/README.md
Usage
-----
Usage is straightforward and best explained by example:
```python
from evenado.client import APIClient
from evenado.sqlite import SqliteCacheProvider
from tornado import gen, ioloop
@gen.coroutine
def async_main():
client = APIClient(SqliteProvider(), keyid=..., vcode=...)
for char in (yield client.characters()):
print char.name
if __name__ == '__main__':
ioloop.IOLoop.instance().run_sync(async_main)
```
Of course you can also use the library within the context of a Tornado HTTPServer or anything else which can use Tornado coroutines.
<|file_sep|>updated/README.md
from evenado.sqlite import SqliteCacheProvider
from tornado import gen, ioloop
@gen.coroutine
def async_main():
client = APIClient(SqliteProvider(), keyid=..., vcode=...)
for char in (yield client.characters()):
print char.name
if __name__ == '__main__':
ioloop.IOLoop.instance().run_sync(async_main)
```
Of course you can also use the library within the context of a Tornado HTTPServer or anything else which can use Tornado coroutines.
Cache Providers
---------------
The Redis cache provider is suitable for a 10kqps+ multi-machine webserver environment. Even with only a single Redis process, this will not be your limiting factor given the number of subscribed EVE players.
The SQLite3 provider is a good choice for scripts, or low-traffic single-machine webservers. By default, all programs using this provider on the same machine will share a cache. Currently, SQLite I/O takes place on the main thread which will cause performance issues with concurrent access on a slow disk. | 16c39543dd2561754590a1f37583d2b3aefff4db | README.md | README.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
updated:
dist: trusty
<|file_sep|>original/.travis.yml
sudo: false
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: tox
<|file_sep|>current/.travis.yml
dist: trusty
sudo: false
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: tox
<|file_sep|>updated/.travis.yml | dist: trusty
sudo: false
group: beta
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
| <|file_sep|>.travis.yml.diff
original:
updated:
dist: trusty
<|file_sep|>original/.travis.yml
sudo: false
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: tox
<|file_sep|>current/.travis.yml
dist: trusty
sudo: false
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
script: tox
<|file_sep|>updated/.travis.yml
dist: trusty
sudo: false
group: beta
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=py35
- python: 2.7
env: TOXENV=style
- python: 2.7
env: TOXENV=readme
install: pip install tox
| 3190b8266777aeca3b29bc0f82cf663c40f1380d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/test/NotifierTest.h
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFileAsRoot(notifierIPCPath);
FileIO::RemoveFileAsRoot(handshakeIPCPath);
zctx_interrupted = false;
};
private:
const std::string notifierIPCPath = "/tmp/RestartServicesQueue.ipc";
const std::string handshakeIPCPath = "/tmp/RestartServicesHandshakeQueue.ipc";
};
<|file_sep|>current/test/NotifierTest.h
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFileAsRoot(notifierIPCPath);
FileIO::RemoveFileAsRoot(handshakeIPCPath);
zctx_interrupted = false;
};
private:
const std::string notifierIPCPath = "/tmp/RestartServicesQueue.ipc";
const std::string handshakeIPCPath = "/tmp/RestartServicesHandshakeQueue.ipc";
};
<|file_sep|>updated/test/NotifierTest.h | };
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFile(notifierIPCPath);
FileIO::RemoveFile(handshakeIPCPath);
zctx_interrupted = false;
};
private:
const std::string notifierIPCPath = "/tmp/RestartServicesQueue.ipc";
const std::string handshakeIPCPath = "/tmp/RestartServicesHandshakeQueue.ipc";
}; | <|file_sep|>original/test/NotifierTest.h
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFileAsRoot(notifierIPCPath);
FileIO::RemoveFileAsRoot(handshakeIPCPath);
zctx_interrupted = false;
};
private:
const std::string notifierIPCPath = "/tmp/RestartServicesQueue.ipc";
const std::string handshakeIPCPath = "/tmp/RestartServicesHandshakeQueue.ipc";
};
<|file_sep|>current/test/NotifierTest.h
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFileAsRoot(notifierIPCPath);
FileIO::RemoveFileAsRoot(handshakeIPCPath);
zctx_interrupted = false;
};
private:
const std::string notifierIPCPath = "/tmp/RestartServicesQueue.ipc";
const std::string handshakeIPCPath = "/tmp/RestartServicesHandshakeQueue.ipc";
};
<|file_sep|>updated/test/NotifierTest.h
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFile(notifierIPCPath);
FileIO::RemoveFile(handshakeIPCPath);
zctx_interrupted = false;
};
private:
const std::string notifierIPCPath = "/tmp/RestartServicesQueue.ipc";
const std::string handshakeIPCPath = "/tmp/RestartServicesHandshakeQueue.ipc";
}; | da663dd03d71768b4b58c0ac2c1ec7b7513b3ef8 | test/NotifierTest.h | test/NotifierTest.h | C |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- node
after_script:
- npm run codecov
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- node
after_script:
- npm run codecov
<|file_sep|>updated/.travis.yml | language: node_js
node_js:
- "9"
after_script:
- npm run codecov | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- node
after_script:
- npm run codecov
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- node
after_script:
- npm run codecov
<|file_sep|>updated/.travis.yml
language: node_js
node_js:
- "9"
after_script:
- npm run codecov | 5f379f8db1d7eaed865d0087d10b463ff827348d | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/_posts/2022-1-5-material-for-new-developers.md
<|file_sep|>current/_posts/2022-1-5-material-for-new-developers.md
<|file_sep|>updated/_posts/2022-1-5-material-for-new-developers.md | ---
layout: post
title: Material for (new) developers
excerpt: Collection of books, links and videos that can be helpful for new developers.
---
Collection of books, links and videos that can be helpful for new developers.
### Books, links and videos
Technical and non technical tips and guides. These can help you become better engineer, get better understanding of the software field and understand people better
* [The Pragmatic Programmer](https://www.goodreads.com/book/show/4099.The_Pragmatic_Programmer)
* [Being Geek: The Software Developer's Career Handbook](https://www.goodreads.com/book/show/8473471-being-geek)
* [The Unicorn Project](https://www.goodreads.com/book/show/44333183-the-unicorn-project)
History of software field
* [Masters of Doom](https://www.goodreads.com/book/show/222146.Masters_of_Doom)
* [Hackers: Heroes of the Computer Revolution](https://www.goodreads.com/book/show/56829.Hackers)
* [Command Line Heroes -podcast](https://www.redhat.com/en/command-line-heroes)
Understanding the decisions behind architecture decisions | <|file_sep|>original/_posts/2022-1-5-material-for-new-developers.md
<|file_sep|>current/_posts/2022-1-5-material-for-new-developers.md
<|file_sep|>updated/_posts/2022-1-5-material-for-new-developers.md
---
layout: post
title: Material for (new) developers
excerpt: Collection of books, links and videos that can be helpful for new developers.
---
Collection of books, links and videos that can be helpful for new developers.
### Books, links and videos
Technical and non technical tips and guides. These can help you become better engineer, get better understanding of the software field and understand people better
* [The Pragmatic Programmer](https://www.goodreads.com/book/show/4099.The_Pragmatic_Programmer)
* [Being Geek: The Software Developer's Career Handbook](https://www.goodreads.com/book/show/8473471-being-geek)
* [The Unicorn Project](https://www.goodreads.com/book/show/44333183-the-unicorn-project)
History of software field
* [Masters of Doom](https://www.goodreads.com/book/show/222146.Masters_of_Doom)
* [Hackers: Heroes of the Computer Revolution](https://www.goodreads.com/book/show/56829.Hackers)
* [Command Line Heroes -podcast](https://www.redhat.com/en/command-line-heroes)
Understanding the decisions behind architecture decisions | 2f518b9bde0d11050cbf3b1359408ce97ba20ba8 | _posts/2022-1-5-material-for-new-developers.md | _posts/2022-1-5-material-for-new-developers.md | Markdown |
<|file_sep|>original/jest.config.js
]);
}
// eslint-disable-next-line import/no-commonjs
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
transform: {
'^.+\\.js$': 'babel-jest',
<|file_sep|>current/jest.config.js
]);
}
// eslint-disable-next-line import/no-commonjs
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
transform: {
'^.+\\.js$': 'babel-jest',
<|file_sep|>updated/jest.config.js | ]);
}
// eslint-disable-next-line import/no-commonjs
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
'^vendor(.*)$': '<rootDir>/vendor/assets/javascripts$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
transform: { | <|file_sep|>original/jest.config.js
]);
}
// eslint-disable-next-line import/no-commonjs
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
transform: {
'^.+\\.js$': 'babel-jest',
<|file_sep|>current/jest.config.js
]);
}
// eslint-disable-next-line import/no-commonjs
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
transform: {
'^.+\\.js$': 'babel-jest',
<|file_sep|>updated/jest.config.js
]);
}
// eslint-disable-next-line import/no-commonjs
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper: {
'^~(.*)$': '<rootDir>/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
'^vendor(.*)$': '<rootDir>/vendor/assets/javascripts$1',
},
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/',
coverageReporters: ['json', 'lcov', 'text-summary', 'clover'],
cacheDirectory: '<rootDir>/tmp/cache/jest',
modulePathIgnorePatterns: ['<rootDir>/.yarn-cache/'],
reporters,
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true,
transform: { | 948df0e383d4d39f74e75e5c3b42b08f54eb82af | jest.config.js | jest.config.js | JavaScript |
<|file_sep|>original/.travis.yml
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
branches:
only:
- master
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create role postgrest"
- pip install --upgrade setuptools
- pip install -r requirements.txt
before_script:
<|file_sep|>current/.travis.yml
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
branches:
only:
- master
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create role postgrest"
- pip install --upgrade setuptools
- pip install -r requirements.txt
before_script:
<|file_sep|>updated/.travis.yml | python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
branches:
only:
- master
- prod-oldui
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create role postgrest"
- pip install --upgrade setuptools
- pip install -r requirements.txt | <|file_sep|>original/.travis.yml
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
branches:
only:
- master
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create role postgrest"
- pip install --upgrade setuptools
- pip install -r requirements.txt
before_script:
<|file_sep|>current/.travis.yml
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
branches:
only:
- master
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create role postgrest"
- pip install --upgrade setuptools
- pip install -r requirements.txt
before_script:
<|file_sep|>updated/.travis.yml
python:
- "2.7"
- "3.5"
addons:
postgresql: "9.4"
services:
- postgresql
branches:
only:
- master
- prod-oldui
env:
global:
- SECRET_KEY="SecretKeyForTravisCI"
- DATABASE_URL="postgis://postgres@localhost:5432/travis_ci_test"
- AZUREAD_AUTHORITY="https://login.microsoftonline.com/thisisnotarealazureaudauthorityurl"
install:
- psql -U postgres -c "create extension postgis"
- psql -U postgres -c "create role postgrest"
- pip install --upgrade setuptools
- pip install -r requirements.txt | 8cc7bde8d4969dd46f0c599281048dbcb7cc8796 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/startup.sh
#!/bin/bash
sh /setup.sh
IP_ADDRESS=`ifconfig eth0 | grep inet | grep -oP "\\d+.\\d+.\\d+.\\d+" | head -n 1`
CMD_OPTS=""
if [[ $IEX_NAME ]]
then
NODE_NAME=`echo "$IEX_NAME" | sed -e "s/@ip/@$IP_ADDRESS/"`
CMD_OPTS="$CMD_OPTS --name $NODE_NAME"
fi
if [[ $IEX_COOKIE ]]
then
CMD_OPTS="$CMD_OPTS --cookie $IEX_COOKIE"
fi
cd /app
echo "MY OPTIONS MY OPTIONS WOOO MY OPTIONS: $CMD_OPTS"
MIX_ENV=prod elixir $CMD_OPTS -pa _build/prod/consolidated -S mix server
<|file_sep|>current/startup.sh
#!/bin/bash
sh /setup.sh
IP_ADDRESS=`ifconfig eth0 | grep inet | grep -oP "\\d+.\\d+.\\d+.\\d+" | head -n 1`
CMD_OPTS=""
if [[ $IEX_NAME ]]
then
NODE_NAME=`echo "$IEX_NAME" | sed -e "s/@ip/@$IP_ADDRESS/"`
CMD_OPTS="$CMD_OPTS --name $NODE_NAME"
fi
if [[ $IEX_COOKIE ]]
then
CMD_OPTS="$CMD_OPTS --cookie $IEX_COOKIE"
fi
cd /app
echo "MY OPTIONS MY OPTIONS WOOO MY OPTIONS: $CMD_OPTS"
MIX_ENV=prod elixir $CMD_OPTS -pa _build/prod/consolidated -S mix server
<|file_sep|>updated/startup.sh | #!/bin/bash
sh /setup.sh
IP_ADDRESS=`ifconfig eth0 | grep inet | grep -oP "\\d+.\\d+.\\d+.\\d+" | head -n 1`
CMD_OPTS=""
if [[ $IEX_NAME ]]
then
NODE_NAME=`echo "$IEX_NAME" | sed -e "s/@ip/@$IP_ADDRESS/"`
CMD_OPTS="$CMD_OPTS --name $NODE_NAME"
fi
if [[ $IEX_COOKIE ]]
then
CMD_OPTS="$CMD_OPTS --cookie $IEX_COOKIE"
fi
cd /app
MIX_ENV=prod elixir $CMD_OPTS -pa _build/prod/consolidated -S mix server | <|file_sep|>original/startup.sh
#!/bin/bash
sh /setup.sh
IP_ADDRESS=`ifconfig eth0 | grep inet | grep -oP "\\d+.\\d+.\\d+.\\d+" | head -n 1`
CMD_OPTS=""
if [[ $IEX_NAME ]]
then
NODE_NAME=`echo "$IEX_NAME" | sed -e "s/@ip/@$IP_ADDRESS/"`
CMD_OPTS="$CMD_OPTS --name $NODE_NAME"
fi
if [[ $IEX_COOKIE ]]
then
CMD_OPTS="$CMD_OPTS --cookie $IEX_COOKIE"
fi
cd /app
echo "MY OPTIONS MY OPTIONS WOOO MY OPTIONS: $CMD_OPTS"
MIX_ENV=prod elixir $CMD_OPTS -pa _build/prod/consolidated -S mix server
<|file_sep|>current/startup.sh
#!/bin/bash
sh /setup.sh
IP_ADDRESS=`ifconfig eth0 | grep inet | grep -oP "\\d+.\\d+.\\d+.\\d+" | head -n 1`
CMD_OPTS=""
if [[ $IEX_NAME ]]
then
NODE_NAME=`echo "$IEX_NAME" | sed -e "s/@ip/@$IP_ADDRESS/"`
CMD_OPTS="$CMD_OPTS --name $NODE_NAME"
fi
if [[ $IEX_COOKIE ]]
then
CMD_OPTS="$CMD_OPTS --cookie $IEX_COOKIE"
fi
cd /app
echo "MY OPTIONS MY OPTIONS WOOO MY OPTIONS: $CMD_OPTS"
MIX_ENV=prod elixir $CMD_OPTS -pa _build/prod/consolidated -S mix server
<|file_sep|>updated/startup.sh
#!/bin/bash
sh /setup.sh
IP_ADDRESS=`ifconfig eth0 | grep inet | grep -oP "\\d+.\\d+.\\d+.\\d+" | head -n 1`
CMD_OPTS=""
if [[ $IEX_NAME ]]
then
NODE_NAME=`echo "$IEX_NAME" | sed -e "s/@ip/@$IP_ADDRESS/"`
CMD_OPTS="$CMD_OPTS --name $NODE_NAME"
fi
if [[ $IEX_COOKIE ]]
then
CMD_OPTS="$CMD_OPTS --cookie $IEX_COOKIE"
fi
cd /app
MIX_ENV=prod elixir $CMD_OPTS -pa _build/prod/consolidated -S mix server | a0f0827c9b45382497fa2c8cc2941b35faf54258 | startup.sh | startup.sh | Shell |
<|file_sep|>original/docs/SharedFramework.md
<|file_sep|>current/docs/SharedFramework.md
<|file_sep|>updated/docs/SharedFramework.md | ASP.NET Core Shared Framework
=============================
Guidance on on developing the ASP.NET Core shared framework (`Microsoft.AspNetCore.App`).
### What goes into the base framework?
The ASP.NET Core shared framework, Microsoft.AspNetCore.App, will contain assemblies that are fully developed, supported, and serviceable by Microsoft. You can think of this as constituting the ASP.NET Core *platform*. As such, all assemblies which are included in the shared framework are expected to meet specific requirements. Here are the principles we are using to guide our decisions about what is allowed in the
shared framework.
* Breaking changes are highly discouraged. Therefore,
* If it's in, it must be broadly useful and expected to be supported for at least several years.
* The API for all assemblies in shared framework MUST NOT make breaking changes in patch or minor releases.
* The complete closure of all assemblies must be in the shared framework, or must be in the "base framework", Microsoft.NETCore.App
* No 3rd party dependencies. All packages must be fully serviceable by Microsoft.
* Teams which own components in the shared framework must coordinate security fixes, patches, and updates with the .NET Core team.
* Code must be open-source and buildable using only open-source tools
* Usage
* How much an API is used is an important metric, but not the only factor
* API we believe is essential for central experiences in .NET Core should be in the shared framework
* Examples of central experiences: MVC, Kestrel, Razor, SignalR | <|file_sep|>original/docs/SharedFramework.md
<|file_sep|>current/docs/SharedFramework.md
<|file_sep|>updated/docs/SharedFramework.md
ASP.NET Core Shared Framework
=============================
Guidance on on developing the ASP.NET Core shared framework (`Microsoft.AspNetCore.App`).
### What goes into the base framework?
The ASP.NET Core shared framework, Microsoft.AspNetCore.App, will contain assemblies that are fully developed, supported, and serviceable by Microsoft. You can think of this as constituting the ASP.NET Core *platform*. As such, all assemblies which are included in the shared framework are expected to meet specific requirements. Here are the principles we are using to guide our decisions about what is allowed in the
shared framework.
* Breaking changes are highly discouraged. Therefore,
* If it's in, it must be broadly useful and expected to be supported for at least several years.
* The API for all assemblies in shared framework MUST NOT make breaking changes in patch or minor releases.
* The complete closure of all assemblies must be in the shared framework, or must be in the "base framework", Microsoft.NETCore.App
* No 3rd party dependencies. All packages must be fully serviceable by Microsoft.
* Teams which own components in the shared framework must coordinate security fixes, patches, and updates with the .NET Core team.
* Code must be open-source and buildable using only open-source tools
* Usage
* How much an API is used is an important metric, but not the only factor
* API we believe is essential for central experiences in .NET Core should be in the shared framework
* Examples of central experiences: MVC, Kestrel, Razor, SignalR | 4e44e5bcbedd961cc0d4f6b846699c7c494f5597 | docs/SharedFramework.md | docs/SharedFramework.md | Markdown |
<|file_sep|>board.rb.diff
original:
require_relative 'piece' #update accordingly
updated:
require_relative 'pieces' #update accordingly
<|file_sep|>original/board.rb
4 => King.new(:w)
5 => Bishop.new(:w)
6 => Knight.new(:w)
7 => Rook.new(:w)
8..15 => Pawn.new(:w)
16..47 => nil
48..55 => Pawn.new(:b)
56 => Rook.new(:b)
57 => Knight.new(:b)
58 => Bishop.new(:b)
59 => Queen.new(:b)
60 => King.new(:b)
61 => Bishop.new(:b)
62 => Knight.new(:b)
63 => Rook.new(:b)
}
end
end
<|file_sep|>current/board.rb
4 => King.new(:w)
5 => Bishop.new(:w)
6 => Knight.new(:w)
7 => Rook.new(:w)
8..15 => Pawn.new(:w)
16..47 => nil
48..55 => Pawn.new(:b)
56 => Rook.new(:b)
57 => Knight.new(:b)
58 => Bishop.new(:b)
59 => Queen.new(:b)
60 => King.new(:b)
61 => Bishop.new(:b)
62 => Knight.new(:b)
63 => Rook.new(:b)
}
end
end
<|file_sep|>updated/board.rb |
48..55 => Pawn.new(:b)
56 => Rook.new(:b)
57 => Knight.new(:b)
58 => Bishop.new(:b)
59 => Queen.new(:b)
60 => King.new(:b)
61 => Bishop.new(:b)
62 => Knight.new(:b)
63 => Rook.new(:b)
}
end
def in_check?
valid_moves = []
@board.each do |position, piece|
if piece.opponent?
valid_moves << piece.valid_move_loop
board[king_pos].check =valid_moves.includes?(king_pos) #verify the color of king
end
end | <|file_sep|>board.rb.diff
original:
require_relative 'piece' #update accordingly
updated:
require_relative 'pieces' #update accordingly
<|file_sep|>original/board.rb
4 => King.new(:w)
5 => Bishop.new(:w)
6 => Knight.new(:w)
7 => Rook.new(:w)
8..15 => Pawn.new(:w)
16..47 => nil
48..55 => Pawn.new(:b)
56 => Rook.new(:b)
57 => Knight.new(:b)
58 => Bishop.new(:b)
59 => Queen.new(:b)
60 => King.new(:b)
61 => Bishop.new(:b)
62 => Knight.new(:b)
63 => Rook.new(:b)
}
end
end
<|file_sep|>current/board.rb
4 => King.new(:w)
5 => Bishop.new(:w)
6 => Knight.new(:w)
7 => Rook.new(:w)
8..15 => Pawn.new(:w)
16..47 => nil
48..55 => Pawn.new(:b)
56 => Rook.new(:b)
57 => Knight.new(:b)
58 => Bishop.new(:b)
59 => Queen.new(:b)
60 => King.new(:b)
61 => Bishop.new(:b)
62 => Knight.new(:b)
63 => Rook.new(:b)
}
end
end
<|file_sep|>updated/board.rb
48..55 => Pawn.new(:b)
56 => Rook.new(:b)
57 => Knight.new(:b)
58 => Bishop.new(:b)
59 => Queen.new(:b)
60 => King.new(:b)
61 => Bishop.new(:b)
62 => Knight.new(:b)
63 => Rook.new(:b)
}
end
def in_check?
valid_moves = []
@board.each do |position, piece|
if piece.opponent?
valid_moves << piece.valid_move_loop
board[king_pos].check =valid_moves.includes?(king_pos) #verify the color of king
end
end | 557cace569e8bc931d4ad197bfded213ca7ace4f | board.rb | board.rb | Ruby |
<|file_sep|>original/.github/ISSUE_TEMPLATE/config.yml
blank_issues_enabled: false
contact_links:
- name: 🙋 Ask questions on Stack Overflow (prefered)
url: https://stackoverflow.com/questions/tagged/wagtail
about: Ask structured and fully-formed questions about Wagtail or about building a site with Wagtail
- name: 🙋 Ask questions on Slack
url: https://github.com/wagtail/wagtail/wiki/Slack
about: Ask general questions about Wagtail or about building a site with Wagtail
<|file_sep|>current/.github/ISSUE_TEMPLATE/config.yml
blank_issues_enabled: false
contact_links:
- name: 🙋 Ask questions on Stack Overflow (prefered)
url: https://stackoverflow.com/questions/tagged/wagtail
about: Ask structured and fully-formed questions about Wagtail or about building a site with Wagtail
- name: 🙋 Ask questions on Slack
url: https://github.com/wagtail/wagtail/wiki/Slack
about: Ask general questions about Wagtail or about building a site with Wagtail
<|file_sep|>updated/.github/ISSUE_TEMPLATE/config.yml | blank_issues_enabled: false
contact_links:
- name: 🙋 Ask questions on Stack Overflow (preferred)
url: https://stackoverflow.com/questions/tagged/wagtail
about: Ask structured and fully-formed questions about Wagtail or about building a site with Wagtail
- name: 🙋 Ask questions on Slack
url: https://github.com/wagtail/wagtail/wiki/Slack
about: Ask general questions about Wagtail or about building a site with Wagtail | <|file_sep|>original/.github/ISSUE_TEMPLATE/config.yml
blank_issues_enabled: false
contact_links:
- name: 🙋 Ask questions on Stack Overflow (prefered)
url: https://stackoverflow.com/questions/tagged/wagtail
about: Ask structured and fully-formed questions about Wagtail or about building a site with Wagtail
- name: 🙋 Ask questions on Slack
url: https://github.com/wagtail/wagtail/wiki/Slack
about: Ask general questions about Wagtail or about building a site with Wagtail
<|file_sep|>current/.github/ISSUE_TEMPLATE/config.yml
blank_issues_enabled: false
contact_links:
- name: 🙋 Ask questions on Stack Overflow (prefered)
url: https://stackoverflow.com/questions/tagged/wagtail
about: Ask structured and fully-formed questions about Wagtail or about building a site with Wagtail
- name: 🙋 Ask questions on Slack
url: https://github.com/wagtail/wagtail/wiki/Slack
about: Ask general questions about Wagtail or about building a site with Wagtail
<|file_sep|>updated/.github/ISSUE_TEMPLATE/config.yml
blank_issues_enabled: false
contact_links:
- name: 🙋 Ask questions on Stack Overflow (preferred)
url: https://stackoverflow.com/questions/tagged/wagtail
about: Ask structured and fully-formed questions about Wagtail or about building a site with Wagtail
- name: 🙋 Ask questions on Slack
url: https://github.com/wagtail/wagtail/wiki/Slack
about: Ask general questions about Wagtail or about building a site with Wagtail | 9735a22bd5965819f5dbb7e48498b695f006fcd4 | .github/ISSUE_TEMPLATE/config.yml | .github/ISSUE_TEMPLATE/config.yml | YAML |
<|file_sep|>original/vagrant/tournament/generate_tournament.py
<|file_sep|>current/vagrant/tournament/generate_tournament.py
<|file_sep|>updated/vagrant/tournament/generate_tournament.py | import random
from tournament import connect
from tournament import reportMatch
from tournament_test import testDelete
the_players = [
(1, 'Jeff'),
(2, 'Adarsh'),
(3, 'Amanda'),
(4, 'Eduardo'),
(5, 'Philip'),
(6, 'Jee')
]
def registerPlayerUpdated(name):
"""Add a player to the tournament database.
| <|file_sep|>original/vagrant/tournament/generate_tournament.py
<|file_sep|>current/vagrant/tournament/generate_tournament.py
<|file_sep|>updated/vagrant/tournament/generate_tournament.py
import random
from tournament import connect
from tournament import reportMatch
from tournament_test import testDelete
the_players = [
(1, 'Jeff'),
(2, 'Adarsh'),
(3, 'Amanda'),
(4, 'Eduardo'),
(5, 'Philip'),
(6, 'Jee')
]
def registerPlayerUpdated(name):
"""Add a player to the tournament database.
| c34f6bf526049be86e6cff713986bf25645f5223 | vagrant/tournament/generate_tournament.py | vagrant/tournament/generate_tournament.py | Python |
<|file_sep|>original/README.md
# PHP-CFG
A Control-Flow-Graph implementation in Pure PHP.
## Usage
To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper;
echo $dumper->dump($block);
```
<|file_sep|>current/README.md
# PHP-CFG
A Control-Flow-Graph implementation in Pure PHP.
## Usage
To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper;
echo $dumper->dump($block);
```
<|file_sep|>updated/README.md | ](https://travis-ci.org/ircmaxell/php-cfg)
# PHP-CFG
A Control-Flow-Graph implementation in Pure PHP.
## Usage
To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper; | <|file_sep|>original/README.md
# PHP-CFG
A Control-Flow-Graph implementation in Pure PHP.
## Usage
To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper;
echo $dumper->dump($block);
```
<|file_sep|>current/README.md
# PHP-CFG
A Control-Flow-Graph implementation in Pure PHP.
## Usage
To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper;
echo $dumper->dump($block);
```
<|file_sep|>updated/README.md
](https://travis-ci.org/ircmaxell/php-cfg)
# PHP-CFG
A Control-Flow-Graph implementation in Pure PHP.
## Usage
To bootstrap the parser, you need to give it a `PhpParser` instance:
```php
$parser = new PHPCfg\Parser(
new PhpParser\Parser(new PhpParser\Lexer)
);
```
Then, just call parse on a block of code, giving it a filename:
```php
$block = $parser->parse(file_get_contents(__FILE__), __FILE__);
```
To dump the graph, simply use the built-in dumper:
```php
$dumper = new PHPCfg\Dumper; | ccd429503f22859b7cc773464ecc051dc980aacd | README.md | README.md | Markdown |
<|file_sep|>original/.travis.yml
sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- ruby-head
before_install:
- stty cols 160
- gem install bundler -v 1.15.4
<|file_sep|>current/.travis.yml
sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- ruby-head
before_install:
- stty cols 160
- gem install bundler -v 1.15.4
<|file_sep|>updated/.travis.yml | sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
before_install:
- stty cols 160
- gem install bundler -v 1.15.4 | <|file_sep|>original/.travis.yml
sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- ruby-head
before_install:
- stty cols 160
- gem install bundler -v 1.15.4
<|file_sep|>current/.travis.yml
sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- ruby-head
before_install:
- stty cols 160
- gem install bundler -v 1.15.4
<|file_sep|>updated/.travis.yml
sudo: false
language: ruby
rvm:
- 2.0.0
- 2.1.10
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
before_install:
- stty cols 160
- gem install bundler -v 1.15.4 | fe5bd9342965f33aec16a5efd2e4ad1eec6f8bf7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>app/views/layouts/application.html.erb.diff
original:
<title>Portfolio</title>
updated:
<title>Zach Newburgh</title>
<|file_sep|>app/views/layouts/application.html.erb.diff
original:
updated:
<%= javascript_include_tag 'application' %>
<|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Portfolio</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all' %>
</head>
<body>
<%= yield %>
</body>
</html>
<|file_sep|>current/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Zach Newburgh</title>
<%= csrf_meta_tags %>
<%= javascript_include_tag 'application' %>
<%= stylesheet_link_tag 'application', media: 'all' %>
</head>
<body>
<%= yield %>
</body>
</html>
<|file_sep|>updated/app/views/layouts/application.html.erb | <!DOCTYPE html>
<html>
<head>
<title>Zach Newburgh</title>
<%= csrf_meta_tags %>
<%= javascript_include_tag 'application' %>
<%= stylesheet_link_tag 'application', media: 'all' %>
</head>
<body>
<%= yield %>
</body>
</html> | <|file_sep|>app/views/layouts/application.html.erb.diff
original:
<title>Portfolio</title>
updated:
<title>Zach Newburgh</title>
<|file_sep|>app/views/layouts/application.html.erb.diff
original:
updated:
<%= javascript_include_tag 'application' %>
<|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Portfolio</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all' %>
</head>
<body>
<%= yield %>
</body>
</html>
<|file_sep|>current/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Zach Newburgh</title>
<%= csrf_meta_tags %>
<%= javascript_include_tag 'application' %>
<%= stylesheet_link_tag 'application', media: 'all' %>
</head>
<body>
<%= yield %>
</body>
</html>
<|file_sep|>updated/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Zach Newburgh</title>
<%= csrf_meta_tags %>
<%= javascript_include_tag 'application' %>
<%= stylesheet_link_tag 'application', media: 'all' %>
</head>
<body>
<%= yield %>
</body>
</html> | ce6fa508145733ccaeded2fa20714cfebb26d89d | app/views/layouts/application.html.erb | app/views/layouts/application.html.erb | HTML+ERB |
<|file_sep|>original/core/core-workgroups.el
;;; core-workgroups.el
;; see lib/workgroup-defuns.el
(use-package workgroups2
:init
(setq wg-session-file (! (expand-file-name "wg-default" narf-temp-dir))
wg-workgroup-directory (! (expand-file-name "workgroups" narf-temp-dir))
wg-first-wg-name "main"
wg-session-load-on-start t
wg-mode-line-display-on nil
wg-mess-with-buffer-list t
;; What to do on Emacs exit / workgroups-mode exit?
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
wg-workgroups-mode-exit-save-behavior 'save)
:config
(defvar narf/helm-source-wg
'((name . "Workgroups")
(candidates . wg-workgroup-names)
(action . narf/wg-helm-switch-to-workgroup)))
(after! projectile
<|file_sep|>current/core/core-workgroups.el
;;; core-workgroups.el
;; see lib/workgroup-defuns.el
(use-package workgroups2
:init
(setq wg-session-file (! (expand-file-name "wg-default" narf-temp-dir))
wg-workgroup-directory (! (expand-file-name "workgroups" narf-temp-dir))
wg-first-wg-name "main"
wg-session-load-on-start t
wg-mode-line-display-on nil
wg-mess-with-buffer-list t
;; What to do on Emacs exit / workgroups-mode exit?
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
wg-workgroups-mode-exit-save-behavior 'save)
:config
(defvar narf/helm-source-wg
'((name . "Workgroups")
(candidates . wg-workgroup-names)
(action . narf/wg-helm-switch-to-workgroup)))
(after! projectile
<|file_sep|>updated/core/core-workgroups.el | ;;; core-workgroups.el
;; see lib/workgroup-defuns.el
(use-package workgroups2
:when window-system
:init
(setq wg-session-file (! (expand-file-name "wg-default" narf-temp-dir))
wg-workgroup-directory (! (expand-file-name "workgroups" narf-temp-dir))
wg-first-wg-name "main"
wg-session-load-on-start t
wg-mode-line-display-on nil
wg-mess-with-buffer-list t
;; What to do on Emacs exit / workgroups-mode exit?
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
wg-workgroups-mode-exit-save-behavior 'save)
:config
(defvar narf/helm-source-wg
'((name . "Workgroups")
(candidates . wg-workgroup-names)
(action . narf/wg-helm-switch-to-workgroup)))
| <|file_sep|>original/core/core-workgroups.el
;;; core-workgroups.el
;; see lib/workgroup-defuns.el
(use-package workgroups2
:init
(setq wg-session-file (! (expand-file-name "wg-default" narf-temp-dir))
wg-workgroup-directory (! (expand-file-name "workgroups" narf-temp-dir))
wg-first-wg-name "main"
wg-session-load-on-start t
wg-mode-line-display-on nil
wg-mess-with-buffer-list t
;; What to do on Emacs exit / workgroups-mode exit?
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
wg-workgroups-mode-exit-save-behavior 'save)
:config
(defvar narf/helm-source-wg
'((name . "Workgroups")
(candidates . wg-workgroup-names)
(action . narf/wg-helm-switch-to-workgroup)))
(after! projectile
<|file_sep|>current/core/core-workgroups.el
;;; core-workgroups.el
;; see lib/workgroup-defuns.el
(use-package workgroups2
:init
(setq wg-session-file (! (expand-file-name "wg-default" narf-temp-dir))
wg-workgroup-directory (! (expand-file-name "workgroups" narf-temp-dir))
wg-first-wg-name "main"
wg-session-load-on-start t
wg-mode-line-display-on nil
wg-mess-with-buffer-list t
;; What to do on Emacs exit / workgroups-mode exit?
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
wg-workgroups-mode-exit-save-behavior 'save)
:config
(defvar narf/helm-source-wg
'((name . "Workgroups")
(candidates . wg-workgroup-names)
(action . narf/wg-helm-switch-to-workgroup)))
(after! projectile
<|file_sep|>updated/core/core-workgroups.el
;;; core-workgroups.el
;; see lib/workgroup-defuns.el
(use-package workgroups2
:when window-system
:init
(setq wg-session-file (! (expand-file-name "wg-default" narf-temp-dir))
wg-workgroup-directory (! (expand-file-name "workgroups" narf-temp-dir))
wg-first-wg-name "main"
wg-session-load-on-start t
wg-mode-line-display-on nil
wg-mess-with-buffer-list t
;; What to do on Emacs exit / workgroups-mode exit?
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
wg-workgroups-mode-exit-save-behavior 'save)
:config
(defvar narf/helm-source-wg
'((name . "Workgroups")
(candidates . wg-workgroup-names)
(action . narf/wg-helm-switch-to-workgroup)))
| 41efd16a62a2f91478749455c8c4a174e39ada60 | core/core-workgroups.el | core/core-workgroups.el | Emacs Lisp |
<|file_sep|>packages/cd/cdeps.yaml.diff
original:
hash: 9075959b6929e46867c138fb66b3d23ab16c5db3b07ad4181ea1b41eb246d14e
updated:
hash: 5d6cb4fa04a97c66c0c3e0362c90d393aeef5e12cb1cc130d9dd485fe68351e4
<|file_sep|>original/packages/cd/cdeps.yaml
hash: 9075959b6929e46867c138fb66b3d23ab16c5db3b07ad4181ea1b41eb246d14e
test-bench-deps:
base: -any
hspec: -any
cdeps: -any
maintainer: vamchale@gmail.com
synopsis: Extract dependencies from C code.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.8 && <5'
text: -any
filepath: -any
array: -any
cdeps: -any
optparse-applicative: -any
directory: -any
all-versions:
- '0.1.0.0'
author: Vanessa McHale
latest: '0.1.0.0'
<|file_sep|>current/packages/cd/cdeps.yaml
hash: 5d6cb4fa04a97c66c0c3e0362c90d393aeef5e12cb1cc130d9dd485fe68351e4
test-bench-deps:
base: -any
hspec: -any
cdeps: -any
maintainer: vamchale@gmail.com
synopsis: Extract dependencies from C code.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.8 && <5'
text: -any
filepath: -any
array: -any
cdeps: -any
optparse-applicative: -any
directory: -any
all-versions:
- '0.1.0.0'
author: Vanessa McHale
latest: '0.1.0.0'
<|file_sep|>updated/packages/cd/cdeps.yaml | hash: 5d6cb4fa04a97c66c0c3e0362c90d393aeef5e12cb1cc130d9dd485fe68351e4
test-bench-deps:
base: -any
hspec: -any
cdeps: -any
maintainer: vamchale@gmail.com
synopsis: Extract dependencies from C code.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.11 && <5'
text: -any
filepath: -any
array: -any
cdeps: -any
optparse-applicative: -any
directory: -any
all-versions:
- '0.1.0.0'
author: Vanessa McHale
latest: '0.1.0.0' | <|file_sep|>packages/cd/cdeps.yaml.diff
original:
hash: 9075959b6929e46867c138fb66b3d23ab16c5db3b07ad4181ea1b41eb246d14e
updated:
hash: 5d6cb4fa04a97c66c0c3e0362c90d393aeef5e12cb1cc130d9dd485fe68351e4
<|file_sep|>original/packages/cd/cdeps.yaml
hash: 9075959b6929e46867c138fb66b3d23ab16c5db3b07ad4181ea1b41eb246d14e
test-bench-deps:
base: -any
hspec: -any
cdeps: -any
maintainer: vamchale@gmail.com
synopsis: Extract dependencies from C code.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.8 && <5'
text: -any
filepath: -any
array: -any
cdeps: -any
optparse-applicative: -any
directory: -any
all-versions:
- '0.1.0.0'
author: Vanessa McHale
latest: '0.1.0.0'
<|file_sep|>current/packages/cd/cdeps.yaml
hash: 5d6cb4fa04a97c66c0c3e0362c90d393aeef5e12cb1cc130d9dd485fe68351e4
test-bench-deps:
base: -any
hspec: -any
cdeps: -any
maintainer: vamchale@gmail.com
synopsis: Extract dependencies from C code.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.8 && <5'
text: -any
filepath: -any
array: -any
cdeps: -any
optparse-applicative: -any
directory: -any
all-versions:
- '0.1.0.0'
author: Vanessa McHale
latest: '0.1.0.0'
<|file_sep|>updated/packages/cd/cdeps.yaml
hash: 5d6cb4fa04a97c66c0c3e0362c90d393aeef5e12cb1cc130d9dd485fe68351e4
test-bench-deps:
base: -any
hspec: -any
cdeps: -any
maintainer: vamchale@gmail.com
synopsis: Extract dependencies from C code.
changelog: ''
basic-deps:
bytestring: -any
base: ! '>=4.11 && <5'
text: -any
filepath: -any
array: -any
cdeps: -any
optparse-applicative: -any
directory: -any
all-versions:
- '0.1.0.0'
author: Vanessa McHale
latest: '0.1.0.0' | 3fe38ee9c67182d0449fae7317e096ebe2a1f53c | packages/cd/cdeps.yaml | packages/cd/cdeps.yaml | YAML |
<|file_sep|>recipes/conda-build-all/meta.yaml.diff
original:
{% set version = "1.0.1" %}
updated:
{% set version = "1.0.4" %}
<|file_sep|>recipes/conda-build-all/meta.yaml.diff
original:
url: https://github.com/SciTools/conda-build-all/archive/v{{version}}.tar.gz
sha256: 1e34102f9055ce99500ce8ec87933d46a482cd20b865a180f2b064b4baf345f0
updated:
url: https://github.com/conda-tools/conda-build-all/archive/v{{version}}.tar.gz
sha256: 1a2e6b89858e8a5c6c55dd0fe64e18f7730a203740507f7746149771e22d8784
<|file_sep|>recipes/conda-build-all/meta.yaml.diff
original:
updated:
noarch: python
<|file_sep|>original/recipes/conda-build-all/meta.yaml
- python
- setuptools
run:
- python
- gitpython
- conda >4
- conda-build >=1.21.7
- anaconda-client
- mock
test:
imports:
- conda_build_all
commands:
- conda build-all --version
about:
license: BSD 3-clause
home: https://github.com/scitools/conda-build-all
summary: conda build-all is a conda subcommand which allows multiple distributions to be built (and uploaded) in a single command
<|file_sep|>current/recipes/conda-build-all/meta.yaml
- python
- setuptools
run:
- python
- gitpython
- conda >4
- conda-build >=1.21.7
- anaconda-client
- mock
test:
imports:
- conda_build_all
commands:
- conda build-all --version
about:
license: BSD 3-clause
home: https://github.com/scitools/conda-build-all
summary: conda build-all is a conda subcommand which allows multiple distributions to be built (and uploaded) in a single command
<|file_sep|>updated/recipes/conda-build-all/meta.yaml | - setuptools
run:
- python
- gitpython
- conda >4
- conda-build >=1.21.7
- anaconda-client
- mock
test:
imports:
- conda_build_all
commands:
- conda build-all --version
about:
license: BSD 3-clause
license_file: LICENSE
home: https://github.com/conda-tools/conda-build-all
summary: conda build-all is a conda subcommand which allows multiple distributions to be built (and uploaded) in a single command | <|file_sep|>recipes/conda-build-all/meta.yaml.diff
original:
{% set version = "1.0.1" %}
updated:
{% set version = "1.0.4" %}
<|file_sep|>recipes/conda-build-all/meta.yaml.diff
original:
url: https://github.com/SciTools/conda-build-all/archive/v{{version}}.tar.gz
sha256: 1e34102f9055ce99500ce8ec87933d46a482cd20b865a180f2b064b4baf345f0
updated:
url: https://github.com/conda-tools/conda-build-all/archive/v{{version}}.tar.gz
sha256: 1a2e6b89858e8a5c6c55dd0fe64e18f7730a203740507f7746149771e22d8784
<|file_sep|>recipes/conda-build-all/meta.yaml.diff
original:
updated:
noarch: python
<|file_sep|>original/recipes/conda-build-all/meta.yaml
- python
- setuptools
run:
- python
- gitpython
- conda >4
- conda-build >=1.21.7
- anaconda-client
- mock
test:
imports:
- conda_build_all
commands:
- conda build-all --version
about:
license: BSD 3-clause
home: https://github.com/scitools/conda-build-all
summary: conda build-all is a conda subcommand which allows multiple distributions to be built (and uploaded) in a single command
<|file_sep|>current/recipes/conda-build-all/meta.yaml
- python
- setuptools
run:
- python
- gitpython
- conda >4
- conda-build >=1.21.7
- anaconda-client
- mock
test:
imports:
- conda_build_all
commands:
- conda build-all --version
about:
license: BSD 3-clause
home: https://github.com/scitools/conda-build-all
summary: conda build-all is a conda subcommand which allows multiple distributions to be built (and uploaded) in a single command
<|file_sep|>updated/recipes/conda-build-all/meta.yaml
- setuptools
run:
- python
- gitpython
- conda >4
- conda-build >=1.21.7
- anaconda-client
- mock
test:
imports:
- conda_build_all
commands:
- conda build-all --version
about:
license: BSD 3-clause
license_file: LICENSE
home: https://github.com/conda-tools/conda-build-all
summary: conda build-all is a conda subcommand which allows multiple distributions to be built (and uploaded) in a single command | a5fbd9882db40e7c3756a26f165fc0094b4e541f | recipes/conda-build-all/meta.yaml | recipes/conda-build-all/meta.yaml | YAML |
<|file_sep|>original/app/views/partials/ctas/_live-report.html.erb
<section class="cta--<%= cta_live_report.css_class %> bg--grey-xdark">
<div class="container cta__container">
<div class="cta__content">
<% if cta_live_report.updated %>
<span class="cta__ribbon"><%= t('global.status.updated') %></span>
<% end %>
<div>
<h2 class="cta__title h2-big"><%= cta_live_report.title %></h2>
<p class="cta__intro text-intro"><%= cta_live_report.summary %></p>
</div>
<%= link_to t('ctas.live_report.button'), cta_live_report.url, target: '_blank', class: 'button--accent' %>
</div>
</div>
</section>
<|file_sep|>current/app/views/partials/ctas/_live-report.html.erb
<section class="cta--<%= cta_live_report.css_class %> bg--grey-xdark">
<div class="container cta__container">
<div class="cta__content">
<% if cta_live_report.updated %>
<span class="cta__ribbon"><%= t('global.status.updated') %></span>
<% end %>
<div>
<h2 class="cta__title h2-big"><%= cta_live_report.title %></h2>
<p class="cta__intro text-intro"><%= cta_live_report.summary %></p>
</div>
<%= link_to t('ctas.live_report.button'), cta_live_report.url, target: '_blank', class: 'button--accent' %>
</div>
</div>
</section>
<|file_sep|>updated/app/views/partials/ctas/_live-report.html.erb | <section class="cta--<%= cta_live_report.css_class %> bg--grey-xdark">
<div class="container cta__container">
<div class="cta__content">
<% if cta_live_report.updated %>
<span class="cta__ribbon"><%= t('global.status.updated') %></span>
<% end %>
<div>
<h2 class="cta__title h2-big"><%= cta_live_report.title %></h2>
<p class="cta__intro text-intro"><%= cta_live_report.summary %></p>
</div>
<%= link_to t('ctas.live_report.button'), cta_live_report.url, target: '_blank', class: 'button--accent flex-no-shrink' %>
</div>
</div>
</section> | <|file_sep|>original/app/views/partials/ctas/_live-report.html.erb
<section class="cta--<%= cta_live_report.css_class %> bg--grey-xdark">
<div class="container cta__container">
<div class="cta__content">
<% if cta_live_report.updated %>
<span class="cta__ribbon"><%= t('global.status.updated') %></span>
<% end %>
<div>
<h2 class="cta__title h2-big"><%= cta_live_report.title %></h2>
<p class="cta__intro text-intro"><%= cta_live_report.summary %></p>
</div>
<%= link_to t('ctas.live_report.button'), cta_live_report.url, target: '_blank', class: 'button--accent' %>
</div>
</div>
</section>
<|file_sep|>current/app/views/partials/ctas/_live-report.html.erb
<section class="cta--<%= cta_live_report.css_class %> bg--grey-xdark">
<div class="container cta__container">
<div class="cta__content">
<% if cta_live_report.updated %>
<span class="cta__ribbon"><%= t('global.status.updated') %></span>
<% end %>
<div>
<h2 class="cta__title h2-big"><%= cta_live_report.title %></h2>
<p class="cta__intro text-intro"><%= cta_live_report.summary %></p>
</div>
<%= link_to t('ctas.live_report.button'), cta_live_report.url, target: '_blank', class: 'button--accent' %>
</div>
</div>
</section>
<|file_sep|>updated/app/views/partials/ctas/_live-report.html.erb
<section class="cta--<%= cta_live_report.css_class %> bg--grey-xdark">
<div class="container cta__container">
<div class="cta__content">
<% if cta_live_report.updated %>
<span class="cta__ribbon"><%= t('global.status.updated') %></span>
<% end %>
<div>
<h2 class="cta__title h2-big"><%= cta_live_report.title %></h2>
<p class="cta__intro text-intro"><%= cta_live_report.summary %></p>
</div>
<%= link_to t('ctas.live_report.button'), cta_live_report.url, target: '_blank', class: 'button--accent flex-no-shrink' %>
</div>
</div>
</section> | b28f999dd82766fec1b8368654789cfe0088d0f8 | app/views/partials/ctas/_live-report.html.erb | app/views/partials/ctas/_live-report.html.erb | HTML+ERB |
<|file_sep|>original/README.md
- [.NET Core SDK v1.1](https://www.microsoft.com/net/download/core#/current)
- [Heroku Toolbelt](https://toolbelt.heroku.com/) (to authenticate with the Docker registry hosted by Heroku)
- [Docker Toolbox](https://docker.com/toolbox) (to build the images and push to a registry)
## Up and Running
```sh
git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku
heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application
docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web
```
Your first push will take some time, but subsequent pushes will only update the latest layer.
<|file_sep|>current/README.md
- [.NET Core SDK v1.1](https://www.microsoft.com/net/download/core#/current)
- [Heroku Toolbelt](https://toolbelt.heroku.com/) (to authenticate with the Docker registry hosted by Heroku)
- [Docker Toolbox](https://docker.com/toolbox) (to build the images and push to a registry)
## Up and Running
```sh
git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku
heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application
docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web
```
Your first push will take some time, but subsequent pushes will only update the latest layer.
<|file_sep|>updated/README.md | ## Up and Running
```sh
git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku
heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application
docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web
```
Your first push will take some time, but subsequent pushes will only update the latest layer.
## More help
More information about this project has been [posted on my blog](https://jyunderwood.com/2016/12/hosting-asp-net-core-applications-heroku-docker/) | <|file_sep|>original/README.md
- [.NET Core SDK v1.1](https://www.microsoft.com/net/download/core#/current)
- [Heroku Toolbelt](https://toolbelt.heroku.com/) (to authenticate with the Docker registry hosted by Heroku)
- [Docker Toolbox](https://docker.com/toolbox) (to build the images and push to a registry)
## Up and Running
```sh
git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku
heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application
docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web
```
Your first push will take some time, but subsequent pushes will only update the latest layer.
<|file_sep|>current/README.md
- [.NET Core SDK v1.1](https://www.microsoft.com/net/download/core#/current)
- [Heroku Toolbelt](https://toolbelt.heroku.com/) (to authenticate with the Docker registry hosted by Heroku)
- [Docker Toolbox](https://docker.com/toolbox) (to build the images and push to a registry)
## Up and Running
```sh
git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku
heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application
docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web
```
Your first push will take some time, but subsequent pushes will only update the latest layer.
<|file_sep|>updated/README.md
## Up and Running
```sh
git clone git@github.com:jyunderwood/HeroicHaiku.git
cd HeroicHaiku
heroku create name-of-your-application
docker login --username=_ --password=$(heroku auth:token) registry.heroku.com
dotnet publish
docker build bin/Debug/netcoreapp1.1/publish -t name-of-your-application
docker tag name-of-your-application registry.heroku.com/name-of-your-application/web
docker push registry.heroku.com/name-of-your-application/web
```
Your first push will take some time, but subsequent pushes will only update the latest layer.
## More help
More information about this project has been [posted on my blog](https://jyunderwood.com/2016/12/hosting-asp-net-core-applications-heroku-docker/) | a087fe4d98eedfb4e18a22f6c4848a8dd891b547 | README.md | README.md | Markdown |
<|file_sep|>original/wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki
---
Help: Test support for RichFaces Ajax (disabled because Richfaces showcase site is too unreliable/slow)
---
Unfortunately we can't check with local server (since we don't want to set up all javascript dependencies).
We ensure we can properly wait for richfaces ajax to render elements.
|script |rich faces test |
|open |https://www.triodos.nl/nl/particulieren/sparen/spaarrekening-voor-mezelf/maand-sparen/form-opening-maandsparen/|
|click |Vul uw gegevens in |
|seconds before timeout|2 |
|enter |f |as |xpath=(//input[@type='text'])[2] |
|check |value of |xpath=(//input[@type='text'])[2] |F. |
|enter |fitnesse |as |xpath=(//input[@type='text'])[3] |
|check |value of |xpath=(//input[@type='text'])[3] |Fitnesse |
|show |take screenshot |rf |
<|file_sep|>current/wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki
---
Help: Test support for RichFaces Ajax (disabled because Richfaces showcase site is too unreliable/slow)
---
Unfortunately we can't check with local server (since we don't want to set up all javascript dependencies).
We ensure we can properly wait for richfaces ajax to render elements.
|script |rich faces test |
|open |https://www.triodos.nl/nl/particulieren/sparen/spaarrekening-voor-mezelf/maand-sparen/form-opening-maandsparen/|
|click |Vul uw gegevens in |
|seconds before timeout|2 |
|enter |f |as |xpath=(//input[@type='text'])[2] |
|check |value of |xpath=(//input[@type='text'])[2] |F. |
|enter |fitnesse |as |xpath=(//input[@type='text'])[3] |
|check |value of |xpath=(//input[@type='text'])[3] |Fitnesse |
|show |take screenshot |rf |
<|file_sep|>updated/wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki | ---
Help: Test support for RichFaces Ajax
---
Unfortunately we can't check with local server (since we don't want to set up all javascript dependencies).
We ensure we can properly wait for richfaces ajax to render elements.
|script |rich faces test |
|open |https://www.triodos.nl/nl/particulieren/sparen/spaarrekening-voor-mezelf/maand-sparen/form-opening-maandsparen/|
|click |Vul uw gegevens in |
|seconds before timeout|2 |
|enter |f |as |xpath=(//input[@type='text'])[2] |
|check |value of |xpath=(//input[@type='text'])[2] |F. |
|enter |fitnesse |as |xpath=(//input[@type='text'])[3] |
|check |value of |xpath=(//input[@type='text'])[3] |Fitnesse |
|show |take screenshot |rf |
| <|file_sep|>original/wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki
---
Help: Test support for RichFaces Ajax (disabled because Richfaces showcase site is too unreliable/slow)
---
Unfortunately we can't check with local server (since we don't want to set up all javascript dependencies).
We ensure we can properly wait for richfaces ajax to render elements.
|script |rich faces test |
|open |https://www.triodos.nl/nl/particulieren/sparen/spaarrekening-voor-mezelf/maand-sparen/form-opening-maandsparen/|
|click |Vul uw gegevens in |
|seconds before timeout|2 |
|enter |f |as |xpath=(//input[@type='text'])[2] |
|check |value of |xpath=(//input[@type='text'])[2] |F. |
|enter |fitnesse |as |xpath=(//input[@type='text'])[3] |
|check |value of |xpath=(//input[@type='text'])[3] |Fitnesse |
|show |take screenshot |rf |
<|file_sep|>current/wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki
---
Help: Test support for RichFaces Ajax (disabled because Richfaces showcase site is too unreliable/slow)
---
Unfortunately we can't check with local server (since we don't want to set up all javascript dependencies).
We ensure we can properly wait for richfaces ajax to render elements.
|script |rich faces test |
|open |https://www.triodos.nl/nl/particulieren/sparen/spaarrekening-voor-mezelf/maand-sparen/form-opening-maandsparen/|
|click |Vul uw gegevens in |
|seconds before timeout|2 |
|enter |f |as |xpath=(//input[@type='text'])[2] |
|check |value of |xpath=(//input[@type='text'])[2] |F. |
|enter |fitnesse |as |xpath=(//input[@type='text'])[3] |
|check |value of |xpath=(//input[@type='text'])[3] |Fitnesse |
|show |take screenshot |rf |
<|file_sep|>updated/wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki
---
Help: Test support for RichFaces Ajax
---
Unfortunately we can't check with local server (since we don't want to set up all javascript dependencies).
We ensure we can properly wait for richfaces ajax to render elements.
|script |rich faces test |
|open |https://www.triodos.nl/nl/particulieren/sparen/spaarrekening-voor-mezelf/maand-sparen/form-opening-maandsparen/|
|click |Vul uw gegevens in |
|seconds before timeout|2 |
|enter |f |as |xpath=(//input[@type='text'])[2] |
|check |value of |xpath=(//input[@type='text'])[2] |F. |
|enter |fitnesse |as |xpath=(//input[@type='text'])[3] |
|check |value of |xpath=(//input[@type='text'])[3] |Fitnesse |
|show |take screenshot |rf |
| c4005b8520e5737ce554e636e2fd08285ac7af28 | wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki | wiki/FitNesseRoot/HsacAcceptanceTests/SlimTests/BrowserTest/RichFacesTest.wiki | MediaWiki |
<|file_sep|>original/extras/deploy_settings_local.sh
#!/usr/bin/env bash
APPENGINE_INSTANCE=local
SETTINGS_MODULE="development app_engine ggrc_basic_permissions.settings.development ggrc_risks.settings.development ggrc_risk_assessments.settings.development ggrc_workflows.settings.development"
DATABASE_URI='mysql+mysqldb://root:root@localhost/ggrcdev?charset=utf8'
SECRET_KEY='Something-secret'
GOOGLE_ANALYTICS_ID=""
GOOGLE_ANALYTICS_DOMAIN=""
GAPI_KEY='<Google Browser Key>'
GAPI_CLIENT_ID='<Google OAuth Client ID>'
GAPI_CLIENT_SECRET='<Google OAuth Client Secret>'
GAPI_ADMIN_GROUP='<Google Group Email Address>'
BOOTSTRAP_ADMIN_USERS='user@example.com'
RISK_ASSESSMENT_URL='http://localhost:8080'
CUSTOM_URL_ROOT=''
ABOUT_URL='#'
ABOUT_TEXT='About gGRC'
INSTANCE_CLASS='B4'
MAX_INSTANCES='4'
<|file_sep|>current/extras/deploy_settings_local.sh
#!/usr/bin/env bash
APPENGINE_INSTANCE=local
SETTINGS_MODULE="development app_engine ggrc_basic_permissions.settings.development ggrc_risks.settings.development ggrc_risk_assessments.settings.development ggrc_workflows.settings.development"
DATABASE_URI='mysql+mysqldb://root:root@localhost/ggrcdev?charset=utf8'
SECRET_KEY='Something-secret'
GOOGLE_ANALYTICS_ID=""
GOOGLE_ANALYTICS_DOMAIN=""
GAPI_KEY='<Google Browser Key>'
GAPI_CLIENT_ID='<Google OAuth Client ID>'
GAPI_CLIENT_SECRET='<Google OAuth Client Secret>'
GAPI_ADMIN_GROUP='<Google Group Email Address>'
BOOTSTRAP_ADMIN_USERS='user@example.com'
RISK_ASSESSMENT_URL='http://localhost:8080'
CUSTOM_URL_ROOT=''
ABOUT_URL='#'
ABOUT_TEXT='About gGRC'
INSTANCE_CLASS='B4'
MAX_INSTANCES='4'
<|file_sep|>updated/extras/deploy_settings_local.sh | #!/usr/bin/env bash
APPENGINE_INSTANCE=local
SETTINGS_MODULE="development app_engine ggrc_basic_permissions.settings.development ggrc_risks.settings.development ggrc_risk_assessments.settings.development ggrc_workflows.settings.development"
DATABASE_URI="mysql+mysqldb://root:root@${GGRC_DATABASE_HOST:-localhost}/ggrcdev?charset=utf8"
SECRET_KEY='Something-secret'
GOOGLE_ANALYTICS_ID=""
GOOGLE_ANALYTICS_DOMAIN=""
GAPI_KEY='<Google Browser Key>'
GAPI_CLIENT_ID='<Google OAuth Client ID>'
GAPI_CLIENT_SECRET='<Google OAuth Client Secret>'
GAPI_ADMIN_GROUP='<Google Group Email Address>'
BOOTSTRAP_ADMIN_USERS='user@example.com'
RISK_ASSESSMENT_URL='http://localhost:8080'
CUSTOM_URL_ROOT=''
ABOUT_URL='#'
ABOUT_TEXT='About gGRC'
INSTANCE_CLASS='B4'
MAX_INSTANCES='4' | <|file_sep|>original/extras/deploy_settings_local.sh
#!/usr/bin/env bash
APPENGINE_INSTANCE=local
SETTINGS_MODULE="development app_engine ggrc_basic_permissions.settings.development ggrc_risks.settings.development ggrc_risk_assessments.settings.development ggrc_workflows.settings.development"
DATABASE_URI='mysql+mysqldb://root:root@localhost/ggrcdev?charset=utf8'
SECRET_KEY='Something-secret'
GOOGLE_ANALYTICS_ID=""
GOOGLE_ANALYTICS_DOMAIN=""
GAPI_KEY='<Google Browser Key>'
GAPI_CLIENT_ID='<Google OAuth Client ID>'
GAPI_CLIENT_SECRET='<Google OAuth Client Secret>'
GAPI_ADMIN_GROUP='<Google Group Email Address>'
BOOTSTRAP_ADMIN_USERS='user@example.com'
RISK_ASSESSMENT_URL='http://localhost:8080'
CUSTOM_URL_ROOT=''
ABOUT_URL='#'
ABOUT_TEXT='About gGRC'
INSTANCE_CLASS='B4'
MAX_INSTANCES='4'
<|file_sep|>current/extras/deploy_settings_local.sh
#!/usr/bin/env bash
APPENGINE_INSTANCE=local
SETTINGS_MODULE="development app_engine ggrc_basic_permissions.settings.development ggrc_risks.settings.development ggrc_risk_assessments.settings.development ggrc_workflows.settings.development"
DATABASE_URI='mysql+mysqldb://root:root@localhost/ggrcdev?charset=utf8'
SECRET_KEY='Something-secret'
GOOGLE_ANALYTICS_ID=""
GOOGLE_ANALYTICS_DOMAIN=""
GAPI_KEY='<Google Browser Key>'
GAPI_CLIENT_ID='<Google OAuth Client ID>'
GAPI_CLIENT_SECRET='<Google OAuth Client Secret>'
GAPI_ADMIN_GROUP='<Google Group Email Address>'
BOOTSTRAP_ADMIN_USERS='user@example.com'
RISK_ASSESSMENT_URL='http://localhost:8080'
CUSTOM_URL_ROOT=''
ABOUT_URL='#'
ABOUT_TEXT='About gGRC'
INSTANCE_CLASS='B4'
MAX_INSTANCES='4'
<|file_sep|>updated/extras/deploy_settings_local.sh
#!/usr/bin/env bash
APPENGINE_INSTANCE=local
SETTINGS_MODULE="development app_engine ggrc_basic_permissions.settings.development ggrc_risks.settings.development ggrc_risk_assessments.settings.development ggrc_workflows.settings.development"
DATABASE_URI="mysql+mysqldb://root:root@${GGRC_DATABASE_HOST:-localhost}/ggrcdev?charset=utf8"
SECRET_KEY='Something-secret'
GOOGLE_ANALYTICS_ID=""
GOOGLE_ANALYTICS_DOMAIN=""
GAPI_KEY='<Google Browser Key>'
GAPI_CLIENT_ID='<Google OAuth Client ID>'
GAPI_CLIENT_SECRET='<Google OAuth Client Secret>'
GAPI_ADMIN_GROUP='<Google Group Email Address>'
BOOTSTRAP_ADMIN_USERS='user@example.com'
RISK_ASSESSMENT_URL='http://localhost:8080'
CUSTOM_URL_ROOT=''
ABOUT_URL='#'
ABOUT_TEXT='About gGRC'
INSTANCE_CLASS='B4'
MAX_INSTANCES='4' | 8cd19ca0e702fef2a73198d736d61b87f9b893c1 | extras/deploy_settings_local.sh | extras/deploy_settings_local.sh | Shell |
<|file_sep|>lib/rubocop/cop/style/send.rb.diff
original:
updated:
def_node_matcher :sending?, '(send _ :send $...)'
<|file_sep|>original/lib/rubocop/cop/style/send.rb
# frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for the use of the send method.
class Send < Cop
MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \
'`send`.'.freeze
def on_send(node)
_receiver, method_name, *args = *node
return unless method_name == :send && !args.empty?
add_offense(node, :selector)
end
end
end
end
end
<|file_sep|>current/lib/rubocop/cop/style/send.rb
# frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for the use of the send method.
class Send < Cop
MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \
'`send`.'.freeze
def_node_matcher :sending?, '(send _ :send $...)'
def on_send(node)
_receiver, method_name, *args = *node
return unless method_name == :send && !args.empty?
add_offense(node, :selector)
end
end
end
end
end
<|file_sep|>updated/lib/rubocop/cop/style/send.rb |
module RuboCop
module Cop
module Style
# This cop checks for the use of the send method.
class Send < Cop
MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \
'`send`.'.freeze
def_node_matcher :sending?, '(send _ :send $...)'
def on_send(node)
sending?(node) do |args|
return if args.empty?
add_offense(node, :selector)
end
end
end
end
end
end | <|file_sep|>lib/rubocop/cop/style/send.rb.diff
original:
updated:
def_node_matcher :sending?, '(send _ :send $...)'
<|file_sep|>original/lib/rubocop/cop/style/send.rb
# frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for the use of the send method.
class Send < Cop
MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \
'`send`.'.freeze
def on_send(node)
_receiver, method_name, *args = *node
return unless method_name == :send && !args.empty?
add_offense(node, :selector)
end
end
end
end
end
<|file_sep|>current/lib/rubocop/cop/style/send.rb
# frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for the use of the send method.
class Send < Cop
MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \
'`send`.'.freeze
def_node_matcher :sending?, '(send _ :send $...)'
def on_send(node)
_receiver, method_name, *args = *node
return unless method_name == :send && !args.empty?
add_offense(node, :selector)
end
end
end
end
end
<|file_sep|>updated/lib/rubocop/cop/style/send.rb
module RuboCop
module Cop
module Style
# This cop checks for the use of the send method.
class Send < Cop
MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \
'`send`.'.freeze
def_node_matcher :sending?, '(send _ :send $...)'
def on_send(node)
sending?(node) do |args|
return if args.empty?
add_offense(node, :selector)
end
end
end
end
end
end | 6907b13320493b334dc60a1a7687fc381f1f3740 | lib/rubocop/cop/style/send.rb | lib/rubocop/cop/style/send.rb | Ruby |
<|file_sep|>app/src/main/res/layout/list_item_contact.xml.diff
original:
android:padding="16dp"
updated:
<|file_sep|>app/src/main/res/layout/list_item_contact.xml.diff
original:
android:layout_width="60dp"
android:layout_height="wrap_content">
updated:
android:layout_width="72dp"
android:layout_height="72dp">
<|file_sep|>original/app/src/main/res/layout/list_item_contact.xml
android:gravity="center_vertical"
android:padding="16dp"
android:orientation="horizontal">
<FrameLayout
android:layout_width="60dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/list_item_contact_image"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</FrameLayout>
<TextView
android:id="@+id/list_item_contact_name_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
<|file_sep|>current/app/src/main/res/layout/list_item_contact.xml
android:gravity="center_vertical"
android:orientation="horizontal">
<FrameLayout
android:layout_width="72dp"
android:layout_height="72dp">
<ImageView
android:id="@+id/list_item_contact_image"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</FrameLayout>
<TextView
android:id="@+id/list_item_contact_name_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="New Text"
<|file_sep|>updated/app/src/main/res/layout/list_item_contact.xml | android:gravity="center_vertical"
android:orientation="horizontal">
<FrameLayout
android:layout_width="72dp"
android:layout_height="72dp">
<ImageView
android:id="@+id/list_item_contact_image"
android:layout_gravity="center"
android:layout_width="40dp"
android:layout_height="40dp"/>
</FrameLayout>
<TextView
android:id="@+id/list_item_contact_name_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="New Text" | <|file_sep|>app/src/main/res/layout/list_item_contact.xml.diff
original:
android:padding="16dp"
updated:
<|file_sep|>app/src/main/res/layout/list_item_contact.xml.diff
original:
android:layout_width="60dp"
android:layout_height="wrap_content">
updated:
android:layout_width="72dp"
android:layout_height="72dp">
<|file_sep|>original/app/src/main/res/layout/list_item_contact.xml
android:gravity="center_vertical"
android:padding="16dp"
android:orientation="horizontal">
<FrameLayout
android:layout_width="60dp"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/list_item_contact_image"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</FrameLayout>
<TextView
android:id="@+id/list_item_contact_name_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
<|file_sep|>current/app/src/main/res/layout/list_item_contact.xml
android:gravity="center_vertical"
android:orientation="horizontal">
<FrameLayout
android:layout_width="72dp"
android:layout_height="72dp">
<ImageView
android:id="@+id/list_item_contact_image"
android:layout_gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</FrameLayout>
<TextView
android:id="@+id/list_item_contact_name_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="New Text"
<|file_sep|>updated/app/src/main/res/layout/list_item_contact.xml
android:gravity="center_vertical"
android:orientation="horizontal">
<FrameLayout
android:layout_width="72dp"
android:layout_height="72dp">
<ImageView
android:id="@+id/list_item_contact_image"
android:layout_gravity="center"
android:layout_width="40dp"
android:layout_height="40dp"/>
</FrameLayout>
<TextView
android:id="@+id/list_item_contact_name_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="New Text" | b21a751c02a77a72170915dda1677be45184adb2 | app/src/main/res/layout/list_item_contact.xml | app/src/main/res/layout/list_item_contact.xml | XML |
<|file_sep|>appveyor.yml.diff
original:
updated:
generator:
<|file_sep|>appveyor.yml.diff
original:
- msbuild /m:4 FORMAT.sln
updated:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
<|file_sep|>original/appveyor.yml
# Install MinGW.
- set generator
- ps: |
if ($env:build -eq "mingw") {
Invoke-WebRequest -UserAgent wget -Uri http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.0/threads-win32/seh/x86_64-4.9.0-release-win32-seh-rt_v3-rev2.7z/download -OutFile mingw.7z
7z x -oC:\ mingw.7z > nul
}
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\wingw64\bin
before_build:
- cmake -DFMT_EXTRA_TESTS=ON $generator .
build_script:
- msbuild /m:4 FORMAT.sln
test_script:
- msbuild RUN_TESTS.vcxproj
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test
<|file_sep|>current/appveyor.yml
7z x -oC:\ mingw.7z > nul
}
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\wingw64\bin
before_build:
- cmake -DFMT_EXTRA_TESTS=ON $generator .
build_script:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
test_script:
- msbuild RUN_TESTS.vcxproj
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test
<|file_sep|>updated/appveyor.yml | - cmake -DFMT_EXTRA_TESTS=ON $generator .
build_script:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
test_script:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make test
} else {
msbuild RUN_TESTS.vcxproj
}
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test | <|file_sep|>appveyor.yml.diff
original:
updated:
generator:
<|file_sep|>appveyor.yml.diff
original:
- msbuild /m:4 FORMAT.sln
updated:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
<|file_sep|>original/appveyor.yml
# Install MinGW.
- set generator
- ps: |
if ($env:build -eq "mingw") {
Invoke-WebRequest -UserAgent wget -Uri http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.0/threads-win32/seh/x86_64-4.9.0-release-win32-seh-rt_v3-rev2.7z/download -OutFile mingw.7z
7z x -oC:\ mingw.7z > nul
}
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\wingw64\bin
before_build:
- cmake -DFMT_EXTRA_TESTS=ON $generator .
build_script:
- msbuild /m:4 FORMAT.sln
test_script:
- msbuild RUN_TESTS.vcxproj
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test
<|file_sep|>current/appveyor.yml
7z x -oC:\ mingw.7z > nul
}
- set PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH%;C:\wingw64\bin
before_build:
- cmake -DFMT_EXTRA_TESTS=ON $generator .
build_script:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
test_script:
- msbuild RUN_TESTS.vcxproj
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test
<|file_sep|>updated/appveyor.yml
- cmake -DFMT_EXTRA_TESTS=ON $generator .
build_script:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make -j4
} else {
msbuild /m:4 FORMAT.sln
}
test_script:
- ps: |
if ($env:build -eq "mingw") {
mingw32-make test
} else {
msbuild RUN_TESTS.vcxproj
}
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
- appveyor AddTest test | b1c89e37bf8099fb0db2149afc134375b7c557dc | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/app/src/main/res/layout/login_fragment.xml
specific language governing permissions and limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/users"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:horizontalSpacing="0dp"
android:verticalSpacing="0dp"
android:stretchMode="spacingWidthUniform"
android:columnWidth="144sp"
android:numColumns="auto_fit"
tools:listitem="@layout/login_grid_user_item" />
</RelativeLayout>
<|file_sep|>current/app/src/main/res/layout/login_fragment.xml
specific language governing permissions and limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/users"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:horizontalSpacing="0dp"
android:verticalSpacing="0dp"
android:stretchMode="spacingWidthUniform"
android:columnWidth="144sp"
android:numColumns="auto_fit"
tools:listitem="@layout/login_grid_user_item" />
</RelativeLayout>
<|file_sep|>updated/app/src/main/res/layout/login_fragment.xml | OR CONDITIONS OF ANY KIND, either express or implied. See the License for
specific language governing permissions and limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/users"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:horizontalSpacing="0dp"
android:verticalSpacing="0dp"
android:stretchMode="spacingWidthUniform"
android:columnWidth="144sp"
android:numColumns="auto_fit"
tools:listitem="@layout/login_grid_user_item" />
</RelativeLayout> | <|file_sep|>original/app/src/main/res/layout/login_fragment.xml
specific language governing permissions and limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/users"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:horizontalSpacing="0dp"
android:verticalSpacing="0dp"
android:stretchMode="spacingWidthUniform"
android:columnWidth="144sp"
android:numColumns="auto_fit"
tools:listitem="@layout/login_grid_user_item" />
</RelativeLayout>
<|file_sep|>current/app/src/main/res/layout/login_fragment.xml
specific language governing permissions and limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/users"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:horizontalSpacing="0dp"
android:verticalSpacing="0dp"
android:stretchMode="spacingWidthUniform"
android:columnWidth="144sp"
android:numColumns="auto_fit"
tools:listitem="@layout/login_grid_user_item" />
</RelativeLayout>
<|file_sep|>updated/app/src/main/res/layout/login_fragment.xml
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
specific language governing permissions and limitations under the License.
-->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<GridView
android:id="@+id/users"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:horizontalSpacing="0dp"
android:verticalSpacing="0dp"
android:stretchMode="spacingWidthUniform"
android:columnWidth="144sp"
android:numColumns="auto_fit"
tools:listitem="@layout/login_grid_user_item" />
</RelativeLayout> | 71d9c73173a8aca70cee21a7b33d7664aad26804 | app/src/main/res/layout/login_fragment.xml | app/src/main/res/layout/login_fragment.xml | XML |
<|file_sep|>original/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg
<|file_sep|>current/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg
<|file_sep|>updated/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg | # -*- Python -*-
Test = lit.Test
class ManyTests(object):
def __init__(self, N=10000):
self.N = N
def getTestsInDirectory(self, testSuite, path_in_suite,
litConfig, localConfig):
for i in range(self.N):
test_name = 'test-%04d' % (i,)
yield Test.Test(testSuite, path_in_suite + (test_name,),
localConfig)
def execute(self, test, litConfig):
# Do a "non-trivial" amount of Python work.
sum = 0
for i in range(10000):
sum += i
return Test.PASS,'' | <|file_sep|>original/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg
<|file_sep|>current/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg
<|file_sep|>updated/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg
# -*- Python -*-
Test = lit.Test
class ManyTests(object):
def __init__(self, N=10000):
self.N = N
def getTestsInDirectory(self, testSuite, path_in_suite,
litConfig, localConfig):
for i in range(self.N):
test_name = 'test-%04d' % (i,)
yield Test.Test(testSuite, path_in_suite + (test_name,),
localConfig)
def execute(self, test, litConfig):
# Do a "non-trivial" amount of Python work.
sum = 0
for i in range(10000):
sum += i
return Test.PASS,'' | d7956f1feb27db8f908cab7e029e9f2e3359458e | utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg | utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg | INI |
<|file_sep|>original/circle.yml
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- python setup.py nosetests --with-xunit --xunit-file $CIRCLE_TEST_REPORTS/nose/tests.xml
<|file_sep|>current/circle.yml
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- python setup.py nosetests --with-xunit --xunit-file $CIRCLE_TEST_REPORTS/nose/tests.xml
<|file_sep|>updated/circle.yml | machine:
python:
version: 3.4.2
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- python setup.py nosetests --with-xunit --xunit-file $CIRCLE_TEST_REPORTS/nose/tests.xml | <|file_sep|>original/circle.yml
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- python setup.py nosetests --with-xunit --xunit-file $CIRCLE_TEST_REPORTS/nose/tests.xml
<|file_sep|>current/circle.yml
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- python setup.py nosetests --with-xunit --xunit-file $CIRCLE_TEST_REPORTS/nose/tests.xml
<|file_sep|>updated/circle.yml
machine:
python:
version: 3.4.2
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/nose
override:
- python setup.py nosetests --with-xunit --xunit-file $CIRCLE_TEST_REPORTS/nose/tests.xml | 85447fb42866601e8bae022402aceede3f098f37 | circle.yml | circle.yml | YAML |
<|file_sep|>original/src/api/post-photoset-bulk-reorder.ts
import * as request from 'superagent'
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOption,
isDesc: boolean,
token: string,
secret: string,
): request.SuperAgentRequest {
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
}
<|file_sep|>current/src/api/post-photoset-bulk-reorder.ts
import * as request from 'superagent'
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOption,
isDesc: boolean,
token: string,
secret: string,
): request.SuperAgentRequest {
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
}
<|file_sep|>updated/src/api/post-photoset-bulk-reorder.ts | import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOption,
isDesc: boolean,
token: string,
secret: string,
): request.SuperAgentRequest {
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
.set({ 'X-Accel-Buffering': 'no' })
.accept('application/octet-stream')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
} | <|file_sep|>original/src/api/post-photoset-bulk-reorder.ts
import * as request from 'superagent'
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOption,
isDesc: boolean,
token: string,
secret: string,
): request.SuperAgentRequest {
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
}
<|file_sep|>current/src/api/post-photoset-bulk-reorder.ts
import * as request from 'superagent'
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOption,
isDesc: boolean,
token: string,
secret: string,
): request.SuperAgentRequest {
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
}
<|file_sep|>updated/src/api/post-photoset-bulk-reorder.ts
import { getLogger } from '../services/log'
import * as API from './types/api'
const debugPostPhotosetBulkReorder = getLogger('/api/post-photoset-bulk-reorder.ts').debug
export function postPhotosetBulkReorder(
nsid: string,
setIds: string[],
orderBy: API.IOrderByOption,
isDesc: boolean,
token: string,
secret: string,
): request.SuperAgentRequest {
debugPostPhotosetBulkReorder(`Bulk reorder photosets: ${setIds}`)
return request.post('/api/photosets/bulk_reorder')
.set({ 'X-Accel-Buffering': 'no' })
.accept('application/octet-stream')
.send({ nsid, setIds, orderBy, isDesc, token, secret })
} | 6414d8619e1f8889aea4c094717c3d3454a0ef4a | src/api/post-photoset-bulk-reorder.ts | src/api/post-photoset-bulk-reorder.ts | TypeScript |
<|file_sep|>original/packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
const MAX_ANSWERS_QUERIED = 100
const PostsPageQuestionContent = ({post, refetch}: {
post: PostsWithNavigation|PostsWithNavigationAndRevision,
refetch: any,
}) => {
const currentUser = useCurrentUser();
const { AnswersList, NewAnswerCommentQuestionForm, CantCommentExplanation, RelatedQuestionsList } = Components
return (
<div>
{(!currentUser || Users.isAllowedToComment(currentUser, post)) && <NewAnswerCommentQuestionForm post={post} refetch={refetch} />}
{currentUser && !Users.isAllowedToComment(currentUser, post) &&
<CantCommentExplanation post={post}/>
}
<AnswersList terms={{view: "questionAnswers", postId: post._id, limit: MAX_ANSWERS_QUERIED}} post={post}/>
<RelatedQuestionsList post={post} />
</div>
)
};
<|file_sep|>current/packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
const MAX_ANSWERS_QUERIED = 100
const PostsPageQuestionContent = ({post, refetch}: {
post: PostsWithNavigation|PostsWithNavigationAndRevision,
refetch: any,
}) => {
const currentUser = useCurrentUser();
const { AnswersList, NewAnswerCommentQuestionForm, CantCommentExplanation, RelatedQuestionsList } = Components
return (
<div>
{(!currentUser || Users.isAllowedToComment(currentUser, post)) && <NewAnswerCommentQuestionForm post={post} refetch={refetch} />}
{currentUser && !Users.isAllowedToComment(currentUser, post) &&
<CantCommentExplanation post={post}/>
}
<AnswersList terms={{view: "questionAnswers", postId: post._id, limit: MAX_ANSWERS_QUERIED}} post={post}/>
<RelatedQuestionsList post={post} />
</div>
)
};
<|file_sep|>updated/packages/lesswrong/components/questions/PostsPageQuestionContent.tsx | const MAX_ANSWERS_QUERIED = 100
const PostsPageQuestionContent = ({post, refetch}: {
post: PostsWithNavigation|PostsWithNavigationAndRevision,
refetch: any,
}) => {
const currentUser = useCurrentUser();
const { AnswersList, NewAnswerCommentQuestionForm, CantCommentExplanation, RelatedQuestionsList } = Components
return (
<div>
{(!currentUser || Users.isAllowedToComment(currentUser, post)) && !post.draft && <NewAnswerCommentQuestionForm post={post} refetch={refetch} />}
{currentUser && !Users.isAllowedToComment(currentUser, post) &&
<CantCommentExplanation post={post}/>
}
<AnswersList terms={{view: "questionAnswers", postId: post._id, limit: MAX_ANSWERS_QUERIED}} post={post}/>
<RelatedQuestionsList post={post} />
</div>
)
};
| <|file_sep|>original/packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
const MAX_ANSWERS_QUERIED = 100
const PostsPageQuestionContent = ({post, refetch}: {
post: PostsWithNavigation|PostsWithNavigationAndRevision,
refetch: any,
}) => {
const currentUser = useCurrentUser();
const { AnswersList, NewAnswerCommentQuestionForm, CantCommentExplanation, RelatedQuestionsList } = Components
return (
<div>
{(!currentUser || Users.isAllowedToComment(currentUser, post)) && <NewAnswerCommentQuestionForm post={post} refetch={refetch} />}
{currentUser && !Users.isAllowedToComment(currentUser, post) &&
<CantCommentExplanation post={post}/>
}
<AnswersList terms={{view: "questionAnswers", postId: post._id, limit: MAX_ANSWERS_QUERIED}} post={post}/>
<RelatedQuestionsList post={post} />
</div>
)
};
<|file_sep|>current/packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
const MAX_ANSWERS_QUERIED = 100
const PostsPageQuestionContent = ({post, refetch}: {
post: PostsWithNavigation|PostsWithNavigationAndRevision,
refetch: any,
}) => {
const currentUser = useCurrentUser();
const { AnswersList, NewAnswerCommentQuestionForm, CantCommentExplanation, RelatedQuestionsList } = Components
return (
<div>
{(!currentUser || Users.isAllowedToComment(currentUser, post)) && <NewAnswerCommentQuestionForm post={post} refetch={refetch} />}
{currentUser && !Users.isAllowedToComment(currentUser, post) &&
<CantCommentExplanation post={post}/>
}
<AnswersList terms={{view: "questionAnswers", postId: post._id, limit: MAX_ANSWERS_QUERIED}} post={post}/>
<RelatedQuestionsList post={post} />
</div>
)
};
<|file_sep|>updated/packages/lesswrong/components/questions/PostsPageQuestionContent.tsx
const MAX_ANSWERS_QUERIED = 100
const PostsPageQuestionContent = ({post, refetch}: {
post: PostsWithNavigation|PostsWithNavigationAndRevision,
refetch: any,
}) => {
const currentUser = useCurrentUser();
const { AnswersList, NewAnswerCommentQuestionForm, CantCommentExplanation, RelatedQuestionsList } = Components
return (
<div>
{(!currentUser || Users.isAllowedToComment(currentUser, post)) && !post.draft && <NewAnswerCommentQuestionForm post={post} refetch={refetch} />}
{currentUser && !Users.isAllowedToComment(currentUser, post) &&
<CantCommentExplanation post={post}/>
}
<AnswersList terms={{view: "questionAnswers", postId: post._id, limit: MAX_ANSWERS_QUERIED}} post={post}/>
<RelatedQuestionsList post={post} />
</div>
)
};
| e4313a121d8ec7a872d49abac7fe2edcf7728f39 | packages/lesswrong/components/questions/PostsPageQuestionContent.tsx | packages/lesswrong/components/questions/PostsPageQuestionContent.tsx | TypeScript |
<|file_sep|>original/nbgrader_config.py
c = get_config()
c.CourseDirectory.db_assignments = [dict(name="1", duedate="2019-12-09 17:00:00 UTC")]
c.CourseDirectory.db_students = [
dict(id="foo", first_name="foo", last_name="foo")
]
c.ClearSolutions.code_stub = {'python': '##### Implement this part of the code #####\nraise NotImplementedError()'}
<|file_sep|>current/nbgrader_config.py
c = get_config()
c.CourseDirectory.db_assignments = [dict(name="1", duedate="2019-12-09 17:00:00 UTC")]
c.CourseDirectory.db_students = [
dict(id="foo", first_name="foo", last_name="foo")
]
c.ClearSolutions.code_stub = {'python': '##### Implement this part of the code #####\nraise NotImplementedError()'}
<|file_sep|>updated/nbgrader_config.py | c = get_config()
c.CourseDirectory.db_assignments = [dict(name="1", duedate="2019-12-09 17:00:00 UTC")]
c.CourseDirectory.db_students = [
dict(id="foo", first_name="foo", last_name="foo")
]
c.ClearSolutions.code_stub = {'python': '''##### Implement this part of the code #####
raise NotImplementedError("Code not implemented, follow the instructions.")'''} | <|file_sep|>original/nbgrader_config.py
c = get_config()
c.CourseDirectory.db_assignments = [dict(name="1", duedate="2019-12-09 17:00:00 UTC")]
c.CourseDirectory.db_students = [
dict(id="foo", first_name="foo", last_name="foo")
]
c.ClearSolutions.code_stub = {'python': '##### Implement this part of the code #####\nraise NotImplementedError()'}
<|file_sep|>current/nbgrader_config.py
c = get_config()
c.CourseDirectory.db_assignments = [dict(name="1", duedate="2019-12-09 17:00:00 UTC")]
c.CourseDirectory.db_students = [
dict(id="foo", first_name="foo", last_name="foo")
]
c.ClearSolutions.code_stub = {'python': '##### Implement this part of the code #####\nraise NotImplementedError()'}
<|file_sep|>updated/nbgrader_config.py
c = get_config()
c.CourseDirectory.db_assignments = [dict(name="1", duedate="2019-12-09 17:00:00 UTC")]
c.CourseDirectory.db_students = [
dict(id="foo", first_name="foo", last_name="foo")
]
c.ClearSolutions.code_stub = {'python': '''##### Implement this part of the code #####
raise NotImplementedError("Code not implemented, follow the instructions.")'''} | 458d61ffb5161394f8080cea59716b2f9cb492f3 | nbgrader_config.py | nbgrader_config.py | Python |
<|file_sep|>original/releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml
---
features:
- |
Added support for PCI device NUMA affinity policies. These allow you to
configure how strict your NUMA affinity should be on a per-device basis or,
more specifically, per device alias. These are configured as part of the
``[pci] aliases`` configuration option.
There are three policies supported:
- ``required`` (must-have)
- ``legacy`` (must-have-if-available) (default)
- ``preferred`` (nice-to-have)
In all cases, strict NUMA affinity is provided if possible. The key
difference between the policies is how much NUMA affinity one is willing to
forsake before failing to schedule.
<|file_sep|>current/releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml
---
features:
- |
Added support for PCI device NUMA affinity policies. These allow you to
configure how strict your NUMA affinity should be on a per-device basis or,
more specifically, per device alias. These are configured as part of the
``[pci] aliases`` configuration option.
There are three policies supported:
- ``required`` (must-have)
- ``legacy`` (must-have-if-available) (default)
- ``preferred`` (nice-to-have)
In all cases, strict NUMA affinity is provided if possible. The key
difference between the policies is how much NUMA affinity one is willing to
forsake before failing to schedule.
<|file_sep|>updated/releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml | ---
features:
- |
Added support for PCI device NUMA affinity policies. These allow you to
configure how strict your NUMA affinity should be on a per-device basis or,
more specifically, per device alias. These are configured as part of the
``[pci]alias`` configuration option(s).
There are three policies supported:
- ``required`` (must-have)
- ``legacy`` (must-have-if-available) (default)
- ``preferred`` (nice-to-have)
In all cases, strict NUMA affinity is provided if possible. The key
difference between the policies is how much NUMA affinity one is willing to
forsake before failing to schedule. | <|file_sep|>original/releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml
---
features:
- |
Added support for PCI device NUMA affinity policies. These allow you to
configure how strict your NUMA affinity should be on a per-device basis or,
more specifically, per device alias. These are configured as part of the
``[pci] aliases`` configuration option.
There are three policies supported:
- ``required`` (must-have)
- ``legacy`` (must-have-if-available) (default)
- ``preferred`` (nice-to-have)
In all cases, strict NUMA affinity is provided if possible. The key
difference between the policies is how much NUMA affinity one is willing to
forsake before failing to schedule.
<|file_sep|>current/releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml
---
features:
- |
Added support for PCI device NUMA affinity policies. These allow you to
configure how strict your NUMA affinity should be on a per-device basis or,
more specifically, per device alias. These are configured as part of the
``[pci] aliases`` configuration option.
There are three policies supported:
- ``required`` (must-have)
- ``legacy`` (must-have-if-available) (default)
- ``preferred`` (nice-to-have)
In all cases, strict NUMA affinity is provided if possible. The key
difference between the policies is how much NUMA affinity one is willing to
forsake before failing to schedule.
<|file_sep|>updated/releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml
---
features:
- |
Added support for PCI device NUMA affinity policies. These allow you to
configure how strict your NUMA affinity should be on a per-device basis or,
more specifically, per device alias. These are configured as part of the
``[pci]alias`` configuration option(s).
There are three policies supported:
- ``required`` (must-have)
- ``legacy`` (must-have-if-available) (default)
- ``preferred`` (nice-to-have)
In all cases, strict NUMA affinity is provided if possible. The key
difference between the policies is how much NUMA affinity one is willing to
forsake before failing to schedule. | 5622a9082aa37d7ae67adc01c5044edc0cf8df74 | releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml | releasenotes/notes/share-pci-between-numa-nodes-0bd206eeca4ebcde.yaml | YAML |
<|file_sep|>original/build-configuration.properties
#------------------------------------------------- Source Directories -------------------------------------------------#
source.main.dir=${basedir}/Source/Main
source.unit.test.dir=${basedir}/Source/Specs/Unit
source.integration.test.dir=${basedir}/Source/Specs/Integration
source.installer.dir=${basedir}/Source/Installer/
#------------------------------------------------ iOS Device Simulator ------------------------------------------------#
simulator.version=5.1
simulator.path=Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
#--------------------------------------------------- Test Execution ---------------------------------------------------#
tests.target.name=Specs
#----------------------------------------------------- Packaging ------------------------------------------------------#
packager.path=/Applications/Developer/PackageMaker.app/
packager.out="${release.dir}/expanz-iOS-SDK-Installer.mpkg"
#----------------------------------------------------- API Report -----------------------------------------------------#
appledoc.bin=/usr/local/bin/appledoc
xcodebuild=/usr/bin/xcodebuild
<|file_sep|>current/build-configuration.properties
#------------------------------------------------- Source Directories -------------------------------------------------#
source.main.dir=${basedir}/Source/Main
source.unit.test.dir=${basedir}/Source/Specs/Unit
source.integration.test.dir=${basedir}/Source/Specs/Integration
source.installer.dir=${basedir}/Source/Installer/
#------------------------------------------------ iOS Device Simulator ------------------------------------------------#
simulator.version=5.1
simulator.path=Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
#--------------------------------------------------- Test Execution ---------------------------------------------------#
tests.target.name=Specs
#----------------------------------------------------- Packaging ------------------------------------------------------#
packager.path=/Applications/Developer/PackageMaker.app/
packager.out="${release.dir}/expanz-iOS-SDK-Installer.mpkg"
#----------------------------------------------------- API Report -----------------------------------------------------#
appledoc.bin=/usr/local/bin/appledoc
xcodebuild=/usr/bin/xcodebuild
<|file_sep|>updated/build-configuration.properties |
#------------------------------------------------- Source Directories -------------------------------------------------#
source.main.dir=${basedir}/Source/Main
source.unit.test.dir=${basedir}/Source/Specs/Unit
source.integration.test.dir=${basedir}/Source/Specs/Integration
source.installer.dir=${basedir}/Source/Installer/
#------------------------------------------------ iOS Device Simulator ------------------------------------------------#
simulator.version=5.1
simulator.path=Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
#--------------------------------------------------- Test Execution ---------------------------------------------------#
tests.target.name=Specs
#----------------------------------------------------- Packaging ------------------------------------------------------#
packager.path=/Applications/Developer/PackageMaker.app/Contents/MacOS/PackageMaker
packager.out="${release.dir}/expanz-iOS-SDK-Installer.mpkg"
#----------------------------------------------------- API Report -----------------------------------------------------#
appledoc.bin=/usr/local/bin/appledoc
xcodebuild=/usr/bin/xcodebuild | <|file_sep|>original/build-configuration.properties
#------------------------------------------------- Source Directories -------------------------------------------------#
source.main.dir=${basedir}/Source/Main
source.unit.test.dir=${basedir}/Source/Specs/Unit
source.integration.test.dir=${basedir}/Source/Specs/Integration
source.installer.dir=${basedir}/Source/Installer/
#------------------------------------------------ iOS Device Simulator ------------------------------------------------#
simulator.version=5.1
simulator.path=Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
#--------------------------------------------------- Test Execution ---------------------------------------------------#
tests.target.name=Specs
#----------------------------------------------------- Packaging ------------------------------------------------------#
packager.path=/Applications/Developer/PackageMaker.app/
packager.out="${release.dir}/expanz-iOS-SDK-Installer.mpkg"
#----------------------------------------------------- API Report -----------------------------------------------------#
appledoc.bin=/usr/local/bin/appledoc
xcodebuild=/usr/bin/xcodebuild
<|file_sep|>current/build-configuration.properties
#------------------------------------------------- Source Directories -------------------------------------------------#
source.main.dir=${basedir}/Source/Main
source.unit.test.dir=${basedir}/Source/Specs/Unit
source.integration.test.dir=${basedir}/Source/Specs/Integration
source.installer.dir=${basedir}/Source/Installer/
#------------------------------------------------ iOS Device Simulator ------------------------------------------------#
simulator.version=5.1
simulator.path=Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
#--------------------------------------------------- Test Execution ---------------------------------------------------#
tests.target.name=Specs
#----------------------------------------------------- Packaging ------------------------------------------------------#
packager.path=/Applications/Developer/PackageMaker.app/
packager.out="${release.dir}/expanz-iOS-SDK-Installer.mpkg"
#----------------------------------------------------- API Report -----------------------------------------------------#
appledoc.bin=/usr/local/bin/appledoc
xcodebuild=/usr/bin/xcodebuild
<|file_sep|>updated/build-configuration.properties
#------------------------------------------------- Source Directories -------------------------------------------------#
source.main.dir=${basedir}/Source/Main
source.unit.test.dir=${basedir}/Source/Specs/Unit
source.integration.test.dir=${basedir}/Source/Specs/Integration
source.installer.dir=${basedir}/Source/Installer/
#------------------------------------------------ iOS Device Simulator ------------------------------------------------#
simulator.version=5.1
simulator.path=Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
#--------------------------------------------------- Test Execution ---------------------------------------------------#
tests.target.name=Specs
#----------------------------------------------------- Packaging ------------------------------------------------------#
packager.path=/Applications/Developer/PackageMaker.app/Contents/MacOS/PackageMaker
packager.out="${release.dir}/expanz-iOS-SDK-Installer.mpkg"
#----------------------------------------------------- API Report -----------------------------------------------------#
appledoc.bin=/usr/local/bin/appledoc
xcodebuild=/usr/bin/xcodebuild | c87c263795d859ecb93f04a4a1d18950c17cb3ff | build-configuration.properties | build-configuration.properties | INI |
<|file_sep|>.travis.yml.diff
original:
- unzip gae_sdk.zip
updated:
- unzip -q gae_sdk.zip
<|file_sep|>original/.travis.yml
language: go
install:
- curl -sSo gae_sdk.zip https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.12.zip
- unzip gae_sdk.zip
script:
- ./go_appengine/goapp -v test ./endpoints
<|file_sep|>current/.travis.yml
language: go
install:
- curl -sSo gae_sdk.zip https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.12.zip
- unzip -q gae_sdk.zip
script:
- ./go_appengine/goapp -v test ./endpoints
<|file_sep|>updated/.travis.yml | language: go
install:
- curl -sSo gae_sdk.zip https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.12.zip
- unzip -q gae_sdk.zip
script:
- ./go_appengine/goapp test -v ./endpoints | <|file_sep|>.travis.yml.diff
original:
- unzip gae_sdk.zip
updated:
- unzip -q gae_sdk.zip
<|file_sep|>original/.travis.yml
language: go
install:
- curl -sSo gae_sdk.zip https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.12.zip
- unzip gae_sdk.zip
script:
- ./go_appengine/goapp -v test ./endpoints
<|file_sep|>current/.travis.yml
language: go
install:
- curl -sSo gae_sdk.zip https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.12.zip
- unzip -q gae_sdk.zip
script:
- ./go_appengine/goapp -v test ./endpoints
<|file_sep|>updated/.travis.yml
language: go
install:
- curl -sSo gae_sdk.zip https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.12.zip
- unzip -q gae_sdk.zip
script:
- ./go_appengine/goapp test -v ./endpoints | ac49895f32e4dd52e7f4a9e3418ce21cdd58da7c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ember-cli-build.js
/* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon')
module.exports = function (defaults) {
var app = new EmberAddon(defaults, {
babel: {
optional: ['es7.decorators']
},
snippetSearchPaths: ['tests/dummy/app'],
'ember-cli-mocha': {
useLintTree: false
}
})
app.import('bower_components/sinonjs/sinon.js')
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
<|file_sep|>current/ember-cli-build.js
/* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon')
module.exports = function (defaults) {
var app = new EmberAddon(defaults, {
babel: {
optional: ['es7.decorators']
},
snippetSearchPaths: ['tests/dummy/app'],
'ember-cli-mocha': {
useLintTree: false
}
})
app.import('bower_components/sinonjs/sinon.js')
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
<|file_sep|>updated/ember-cli-build.js | /* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon')
module.exports = function (defaults) {
var app = new EmberAddon(defaults, {
babel: {
optional: ['es7.decorators']
},
snippetSearchPaths: ['tests/dummy/app']
})
app.import('bower_components/sinonjs/sinon.js')
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
*/
return app.toTree() | <|file_sep|>original/ember-cli-build.js
/* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon')
module.exports = function (defaults) {
var app = new EmberAddon(defaults, {
babel: {
optional: ['es7.decorators']
},
snippetSearchPaths: ['tests/dummy/app'],
'ember-cli-mocha': {
useLintTree: false
}
})
app.import('bower_components/sinonjs/sinon.js')
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
<|file_sep|>current/ember-cli-build.js
/* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon')
module.exports = function (defaults) {
var app = new EmberAddon(defaults, {
babel: {
optional: ['es7.decorators']
},
snippetSearchPaths: ['tests/dummy/app'],
'ember-cli-mocha': {
useLintTree: false
}
})
app.import('bower_components/sinonjs/sinon.js')
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
<|file_sep|>updated/ember-cli-build.js
/* eslint-env node */
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon')
module.exports = function (defaults) {
var app = new EmberAddon(defaults, {
babel: {
optional: ['es7.decorators']
},
snippetSearchPaths: ['tests/dummy/app']
})
app.import('bower_components/sinonjs/sinon.js')
/*
This build file specifes the options for the dummy test app of this
addon, located in `/tests/dummy`
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
*/
return app.toTree() | 2e16c9aabf99bda18cf92932efea5f09461de83f | ember-cli-build.js | ember-cli-build.js | JavaScript |
<|file_sep|>original/lib/metasploit_data_models/engine.rb
# @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
config.generators do |g|
g.assets false
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.helper false
g.test_framework :rspec, :fixture => false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
config.paths.values do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end
initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do
if defined? FactoryGirl
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path)
<|file_sep|>current/lib/metasploit_data_models/engine.rb
# @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
config.generators do |g|
g.assets false
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.helper false
g.test_framework :rspec, :fixture => false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
config.paths.values do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end
initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do
if defined? FactoryGirl
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path)
<|file_sep|>updated/lib/metasploit_data_models/engine.rb | # @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
config.generators do |g|
g.assets false
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.helper false
g.test_framework :rspec, :fixture => false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
config.paths.each_value do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end
initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do
if defined? FactoryGirl
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path) | <|file_sep|>original/lib/metasploit_data_models/engine.rb
# @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
config.generators do |g|
g.assets false
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.helper false
g.test_framework :rspec, :fixture => false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
config.paths.values do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end
initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do
if defined? FactoryGirl
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path)
<|file_sep|>current/lib/metasploit_data_models/engine.rb
# @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
config.generators do |g|
g.assets false
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.helper false
g.test_framework :rspec, :fixture => false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
config.paths.values do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end
initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do
if defined? FactoryGirl
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path)
<|file_sep|>updated/lib/metasploit_data_models/engine.rb
# @see http://viget.com/extend/rails-engine-testing-with-rspec-capybara-and-factorygirl
config.generators do |g|
g.assets false
g.fixture_replacement :factory_girl, :dir => 'spec/factories'
g.helper false
g.test_framework :rspec, :fixture => false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
config.paths.each_value do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end
initializer 'metasploit_data_models.prepend_factory_path', :after => 'factory_girl.set_factory_paths' do
if defined? FactoryGirl
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path) | 9cc442988b1abfc7188a9c01d91640ada50c7d07 | lib/metasploit_data_models/engine.rb | lib/metasploit_data_models/engine.rb | Ruby |
<|file_sep|>original/packages/pe/periodic-server.yaml
<|file_sep|>current/packages/pe/periodic-server.yaml
<|file_sep|>updated/packages/pe/periodic-server.yaml | homepage: https://github.com/Lupino/haskell-periodic/tree/master/periodic-server#readme
changelog-type: ''
hash: e0d39294b68880a7ae778994f0dba54b3657fe09cf3d4d9165c0662f6a79d671
test-bench-deps: {}
maintainer: lmjubuntu@gmail.com
synopsis: Periodic task system haskell server
changelog: ''
basic-deps:
bytestring: -any
metro-transport-xor: -any
unliftio: -any
stm: -any
base: '>=4.7 && <5'
base64-bytestring: -any
unordered-containers: -any
entropy: -any
resource-pool: -any
filepath: -any
direct-sqlite: -any
network: -any
async: -any | <|file_sep|>original/packages/pe/periodic-server.yaml
<|file_sep|>current/packages/pe/periodic-server.yaml
<|file_sep|>updated/packages/pe/periodic-server.yaml
homepage: https://github.com/Lupino/haskell-periodic/tree/master/periodic-server#readme
changelog-type: ''
hash: e0d39294b68880a7ae778994f0dba54b3657fe09cf3d4d9165c0662f6a79d671
test-bench-deps: {}
maintainer: lmjubuntu@gmail.com
synopsis: Periodic task system haskell server
changelog: ''
basic-deps:
bytestring: -any
metro-transport-xor: -any
unliftio: -any
stm: -any
base: '>=4.7 && <5'
base64-bytestring: -any
unordered-containers: -any
entropy: -any
resource-pool: -any
filepath: -any
direct-sqlite: -any
network: -any
async: -any | e8e3f54ce5b7e89d1bbb4f23907865cd8952049e | packages/pe/periodic-server.yaml | packages/pe/periodic-server.yaml | YAML |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>updated/gradle/wrapper/gradle-wrapper.properties | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>updated/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | bb5c575a976c8644eaf158fbd499f0d3a8aec39a | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java
<|file_sep|>current/evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java
<|file_sep|>updated/evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java | package com.github.aureliano.evtbridge.core.listener;
import com.github.aureliano.evtbridge.core.event.AfterWritingEvent;
import com.github.aureliano.evtbridge.core.event.BeforeWritingEvent;
public interface DataWritingListener {
public abstract void beforeDataWriting(BeforeWritingEvent event);
public abstract void afterDataWriting(AfterWritingEvent event);
} | <|file_sep|>original/evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java
<|file_sep|>current/evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java
<|file_sep|>updated/evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java
package com.github.aureliano.evtbridge.core.listener;
import com.github.aureliano.evtbridge.core.event.AfterWritingEvent;
import com.github.aureliano.evtbridge.core.event.BeforeWritingEvent;
public interface DataWritingListener {
public abstract void beforeDataWriting(BeforeWritingEvent event);
public abstract void afterDataWriting(AfterWritingEvent event);
} | 64aa8d6d7122882733f671b59001cc32d7b139d9 | evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java | evt-bridge-core/src/main/java/com/github/aureliano/evtbridge/core/listener/DataWritingListener.java | Java |
<|file_sep|>original/app/config/config_test.yml
session:
storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"
web_profiler:
toolbar: false
intercept_redirects: false
services:
database:
class: SpoonDatabase
arguments:
- %database.driver%
- %database.host%
- %database.user%
- %database.password%
- %database.name%_test
- %database.port%
<|file_sep|>current/app/config/config_test.yml
session:
storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"
web_profiler:
toolbar: false
intercept_redirects: false
services:
database:
class: SpoonDatabase
arguments:
- %database.driver%
- %database.host%
- %database.user%
- %database.password%
- %database.name%_test
- %database.port%
<|file_sep|>updated/app/config/config_test.yml | storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"
web_profiler:
toolbar: false
intercept_redirects: false
doctrine:
dbal:
dbname: %database.name%_test
services:
database:
class: SpoonDatabase
arguments:
- %database.driver%
- %database.host%
- %database.user% | <|file_sep|>original/app/config/config_test.yml
session:
storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"
web_profiler:
toolbar: false
intercept_redirects: false
services:
database:
class: SpoonDatabase
arguments:
- %database.driver%
- %database.host%
- %database.user%
- %database.password%
- %database.name%_test
- %database.port%
<|file_sep|>current/app/config/config_test.yml
session:
storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"
web_profiler:
toolbar: false
intercept_redirects: false
services:
database:
class: SpoonDatabase
arguments:
- %database.driver%
- %database.host%
- %database.user%
- %database.password%
- %database.name%_test
- %database.port%
<|file_sep|>updated/app/config/config_test.yml
storage_id: session.storage.mock_file
profiler:
collect: false
router:
resource: "%kernel.root_dir%/config/routing_install.yml"
web_profiler:
toolbar: false
intercept_redirects: false
doctrine:
dbal:
dbname: %database.name%_test
services:
database:
class: SpoonDatabase
arguments:
- %database.driver%
- %database.host%
- %database.user% | cc1098f54c898b2cc2fe189099e8128a08a338af | app/config/config_test.yml | app/config/config_test.yml | YAML |
<|file_sep|>original/test/iota_api_checks_tests.erl
-module(iota_api_checks_tests).
-include_lib("eunit/include/eunit.hrl").
internal_consistency_test_() ->
EmptyResults = iota_result:new(foo),
ExpectedWarning = iota_errors:emit_warning(EmptyResults,
foo, {api, unrestricted_api}),
[ ?_assertMatch(ExpectedWarning,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, all}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, [foo]}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, false},
{api, []}]},
<|file_sep|>current/test/iota_api_checks_tests.erl
-module(iota_api_checks_tests).
-include_lib("eunit/include/eunit.hrl").
internal_consistency_test_() ->
EmptyResults = iota_result:new(foo),
ExpectedWarning = iota_errors:emit_warning(EmptyResults,
foo, {api, unrestricted_api}),
[ ?_assertMatch(ExpectedWarning,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, all}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, [foo]}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, false},
{api, []}]},
<|file_sep|>updated/test/iota_api_checks_tests.erl | -module(iota_api_checks_tests).
-include_lib("eunit/include/eunit.hrl").
internal_consistency_test_() ->
EmptyResults = iota_result:new(),
ExpectedWarning = iota_errors:emit_warning(EmptyResults,
foo, {api, unrestricted_api}),
[ ?_assertMatch(ExpectedWarning,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, all}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, [foo]}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, false},
{api, []}]}, | <|file_sep|>original/test/iota_api_checks_tests.erl
-module(iota_api_checks_tests).
-include_lib("eunit/include/eunit.hrl").
internal_consistency_test_() ->
EmptyResults = iota_result:new(foo),
ExpectedWarning = iota_errors:emit_warning(EmptyResults,
foo, {api, unrestricted_api}),
[ ?_assertMatch(ExpectedWarning,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, all}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, [foo]}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, false},
{api, []}]},
<|file_sep|>current/test/iota_api_checks_tests.erl
-module(iota_api_checks_tests).
-include_lib("eunit/include/eunit.hrl").
internal_consistency_test_() ->
EmptyResults = iota_result:new(foo),
ExpectedWarning = iota_errors:emit_warning(EmptyResults,
foo, {api, unrestricted_api}),
[ ?_assertMatch(ExpectedWarning,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, all}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, [foo]}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, false},
{api, []}]},
<|file_sep|>updated/test/iota_api_checks_tests.erl
-module(iota_api_checks_tests).
-include_lib("eunit/include/eunit.hrl").
internal_consistency_test_() ->
EmptyResults = iota_result:new(),
ExpectedWarning = iota_errors:emit_warning(EmptyResults,
foo, {api, unrestricted_api}),
[ ?_assertMatch(ExpectedWarning,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, all}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, true},
{api, [foo]}]},
EmptyResults
)),
?_assertMatch(EmptyResults,
iota_api_checks:internal_consistency({foo, [{is_api, false},
{api, []}]}, | 4bfac28b728ad22e7c6b3ed0fc7e7f9f714355c7 | test/iota_api_checks_tests.erl | test/iota_api_checks_tests.erl | Erlang |
<|file_sep|>original/test/algorithms/sorting/testBubbleSort.js
/* eslint-env mocha */
const BubbleSort = require('../../../src').Algorithms.Sorting.BubbleSort;
const assert = require('assert');
describe('BubbleSort', () => {
it('should have no data when empty initialization', () => {
const inst = new BubbleSort();
assert.equal(inst.size, 0);
assert.deepEqual(inst.unsortedList, []);
assert.deepEqual(inst.sortedList, []);
});
it('should sort the array', () => {
const inst = new BubbleSort([2, 1, 3, 4]);
assert.equal(inst.size, 4);
assert.deepEqual(inst.unsortedList, [2, 1, 3, 4]);
assert.deepEqual(inst.sortedList, [1, 2, 3, 4]);
assert.equal(inst.toString(), '1, 2, 3, 4');
});
});
<|file_sep|>current/test/algorithms/sorting/testBubbleSort.js
/* eslint-env mocha */
const BubbleSort = require('../../../src').Algorithms.Sorting.BubbleSort;
const assert = require('assert');
describe('BubbleSort', () => {
it('should have no data when empty initialization', () => {
const inst = new BubbleSort();
assert.equal(inst.size, 0);
assert.deepEqual(inst.unsortedList, []);
assert.deepEqual(inst.sortedList, []);
});
it('should sort the array', () => {
const inst = new BubbleSort([2, 1, 3, 4]);
assert.equal(inst.size, 4);
assert.deepEqual(inst.unsortedList, [2, 1, 3, 4]);
assert.deepEqual(inst.sortedList, [1, 2, 3, 4]);
assert.equal(inst.toString(), '1, 2, 3, 4');
});
});
<|file_sep|>updated/test/algorithms/sorting/testBubbleSort.js | });
it('should sort the array', () => {
const inst = new BubbleSort([2, 1, 3, 4]);
assert.equal(inst.size, 4);
assert.deepEqual(inst.unsortedList, [2, 1, 3, 4]);
assert.deepEqual(inst.sortedList, [1, 2, 3, 4]);
assert.equal(inst.toString(), '1, 2, 3, 4');
});
it('should sort 2 element array', () => {
const inst = new BubbleSort([2, 1]);
assert.equal(inst.size, 2);
assert.deepEqual(inst.unsortedList, [2, 1]);
assert.deepEqual(inst.sortedList, [1, 2]);
assert.equal(inst.toString(), '1, 2');
});
it('should sort 1 element array', () => { | <|file_sep|>original/test/algorithms/sorting/testBubbleSort.js
/* eslint-env mocha */
const BubbleSort = require('../../../src').Algorithms.Sorting.BubbleSort;
const assert = require('assert');
describe('BubbleSort', () => {
it('should have no data when empty initialization', () => {
const inst = new BubbleSort();
assert.equal(inst.size, 0);
assert.deepEqual(inst.unsortedList, []);
assert.deepEqual(inst.sortedList, []);
});
it('should sort the array', () => {
const inst = new BubbleSort([2, 1, 3, 4]);
assert.equal(inst.size, 4);
assert.deepEqual(inst.unsortedList, [2, 1, 3, 4]);
assert.deepEqual(inst.sortedList, [1, 2, 3, 4]);
assert.equal(inst.toString(), '1, 2, 3, 4');
});
});
<|file_sep|>current/test/algorithms/sorting/testBubbleSort.js
/* eslint-env mocha */
const BubbleSort = require('../../../src').Algorithms.Sorting.BubbleSort;
const assert = require('assert');
describe('BubbleSort', () => {
it('should have no data when empty initialization', () => {
const inst = new BubbleSort();
assert.equal(inst.size, 0);
assert.deepEqual(inst.unsortedList, []);
assert.deepEqual(inst.sortedList, []);
});
it('should sort the array', () => {
const inst = new BubbleSort([2, 1, 3, 4]);
assert.equal(inst.size, 4);
assert.deepEqual(inst.unsortedList, [2, 1, 3, 4]);
assert.deepEqual(inst.sortedList, [1, 2, 3, 4]);
assert.equal(inst.toString(), '1, 2, 3, 4');
});
});
<|file_sep|>updated/test/algorithms/sorting/testBubbleSort.js
});
it('should sort the array', () => {
const inst = new BubbleSort([2, 1, 3, 4]);
assert.equal(inst.size, 4);
assert.deepEqual(inst.unsortedList, [2, 1, 3, 4]);
assert.deepEqual(inst.sortedList, [1, 2, 3, 4]);
assert.equal(inst.toString(), '1, 2, 3, 4');
});
it('should sort 2 element array', () => {
const inst = new BubbleSort([2, 1]);
assert.equal(inst.size, 2);
assert.deepEqual(inst.unsortedList, [2, 1]);
assert.deepEqual(inst.sortedList, [1, 2]);
assert.equal(inst.toString(), '1, 2');
});
it('should sort 1 element array', () => { | b7ce152994ea7add667862e0b8a5c503903ef63a | test/algorithms/sorting/testBubbleSort.js | test/algorithms/sorting/testBubbleSort.js | JavaScript |
<|file_sep|>app/helpers/fields_helper.rb.diff
original:
updated:
field = resolve_field(item, field)
<|file_sep|>original/app/helpers/fields_helper.rb
module FieldsHelper
def field_help_text(field, _attribute=:default_value)
model_key = field.model_name.i18n_key
t("helpers.help.#{model_key}")
end
def field_value(item, field, options={})
field_presenter(item, field, options).value
end
def field_presenter(item, field, options={})
"#{field.class.name}Presenter".constantize.new(self, item, field, options)
end
end
<|file_sep|>current/app/helpers/fields_helper.rb
module FieldsHelper
def field_help_text(field, _attribute=:default_value)
model_key = field.model_name.i18n_key
t("helpers.help.#{model_key}")
end
def field_value(item, field, options={})
field_presenter(item, field, options).value
end
def field_presenter(item, field, options={})
field = resolve_field(item, field)
"#{field.class.name}Presenter".constantize.new(self, item, field, options)
end
end
<|file_sep|>updated/app/helpers/fields_helper.rb | def field_help_text(field, _attribute=:default_value)
model_key = field.model_name.i18n_key
t("helpers.help.#{model_key}")
end
def field_value(item, field, options={})
field_presenter(item, field, options).value
end
def field_presenter(item, field, options={})
field = resolve_field(item, field)
"#{field.class.name}Presenter".constantize.new(self, item, field, options)
end
def resolve_field(item, field_or_slug)
return field_or_slug if field_or_slug.is_a?(Field)
item.fields.find(-> { fail "Unknown field: #{field_or_slug}" }) do |f|
f.slug == field_or_slug.to_s
end
end
end | <|file_sep|>app/helpers/fields_helper.rb.diff
original:
updated:
field = resolve_field(item, field)
<|file_sep|>original/app/helpers/fields_helper.rb
module FieldsHelper
def field_help_text(field, _attribute=:default_value)
model_key = field.model_name.i18n_key
t("helpers.help.#{model_key}")
end
def field_value(item, field, options={})
field_presenter(item, field, options).value
end
def field_presenter(item, field, options={})
"#{field.class.name}Presenter".constantize.new(self, item, field, options)
end
end
<|file_sep|>current/app/helpers/fields_helper.rb
module FieldsHelper
def field_help_text(field, _attribute=:default_value)
model_key = field.model_name.i18n_key
t("helpers.help.#{model_key}")
end
def field_value(item, field, options={})
field_presenter(item, field, options).value
end
def field_presenter(item, field, options={})
field = resolve_field(item, field)
"#{field.class.name}Presenter".constantize.new(self, item, field, options)
end
end
<|file_sep|>updated/app/helpers/fields_helper.rb
def field_help_text(field, _attribute=:default_value)
model_key = field.model_name.i18n_key
t("helpers.help.#{model_key}")
end
def field_value(item, field, options={})
field_presenter(item, field, options).value
end
def field_presenter(item, field, options={})
field = resolve_field(item, field)
"#{field.class.name}Presenter".constantize.new(self, item, field, options)
end
def resolve_field(item, field_or_slug)
return field_or_slug if field_or_slug.is_a?(Field)
item.fields.find(-> { fail "Unknown field: #{field_or_slug}" }) do |f|
f.slug == field_or_slug.to_s
end
end
end | fcda514e1a42f9224147de001e862691fe96f1bc | app/helpers/fields_helper.rb | app/helpers/fields_helper.rb | Ruby |
<|file_sep|>app/views/layouts/engine.html.erb.diff
original:
updated:
<% content_for :context_bar do %>
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
<% end %>
<|file_sep|>original/app/views/layouts/engine.html.erb
<% end %>
<% end %>
<%= render layout: 'layouts/unconstrained' do %>
<div class="l-context-bar">
<div class="l-constrained">
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
</div>
</div>
<div class="l-constrained">
<div class="l-container-tool">
<%= yield :engine_content %>
</div>
</div>
<% if display_category_directory? %>
<div class="l-tool-nav">
<div class="l-constrained">
<section class="tool-nav">
<%= render 'shared/directory',
<|file_sep|>current/app/views/layouts/engine.html.erb
<% end %>
<% end %>
<% content_for :context_bar do %>
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
<% end %>
<%= render layout: 'layouts/unconstrained' do %>
<div class="l-context-bar">
<div class="l-constrained">
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
</div>
</div>
<div class="l-constrained">
<div class="l-container-tool">
<%= yield :engine_content %>
</div>
</div>
<% if display_category_directory? %>
<|file_sep|>updated/app/views/layouts/engine.html.erb | <% end %>
<% end %>
<% content_for :context_bar do %>
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
<% end %>
<%= render layout: 'layouts/unconstrained' do %>
<div class="l-constrained">
<div class="l-container-tool">
<%= yield :engine_content %>
</div>
</div>
<% if display_category_directory? %>
<div class="l-tool-nav">
<div class="l-constrained">
<section class="tool-nav">
<%= render 'shared/directory',
items: category_navigation, heading_level: 4 %>
</section> | <|file_sep|>app/views/layouts/engine.html.erb.diff
original:
updated:
<% content_for :context_bar do %>
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
<% end %>
<|file_sep|>original/app/views/layouts/engine.html.erb
<% end %>
<% end %>
<%= render layout: 'layouts/unconstrained' do %>
<div class="l-context-bar">
<div class="l-constrained">
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
</div>
</div>
<div class="l-constrained">
<div class="l-container-tool">
<%= yield :engine_content %>
</div>
</div>
<% if display_category_directory? %>
<div class="l-tool-nav">
<div class="l-constrained">
<section class="tool-nav">
<%= render 'shared/directory',
<|file_sep|>current/app/views/layouts/engine.html.erb
<% end %>
<% end %>
<% content_for :context_bar do %>
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
<% end %>
<%= render layout: 'layouts/unconstrained' do %>
<div class="l-context-bar">
<div class="l-constrained">
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
</div>
</div>
<div class="l-constrained">
<div class="l-container-tool">
<%= yield :engine_content %>
</div>
</div>
<% if display_category_directory? %>
<|file_sep|>updated/app/views/layouts/engine.html.erb
<% end %>
<% end %>
<% content_for :context_bar do %>
<%= render 'shared/breadcrumbs', breadcrumbs: breadcrumbs %>
<% end %>
<%= render layout: 'layouts/unconstrained' do %>
<div class="l-constrained">
<div class="l-container-tool">
<%= yield :engine_content %>
</div>
</div>
<% if display_category_directory? %>
<div class="l-tool-nav">
<div class="l-constrained">
<section class="tool-nav">
<%= render 'shared/directory',
items: category_navigation, heading_level: 4 %>
</section> | f3dc40fceb5e1871de4daac11a09b7c80a3614d5 | app/views/layouts/engine.html.erb | app/views/layouts/engine.html.erb | HTML+ERB |
<|file_sep|>original/_posts/2019-03-31-GoogleMockInterview-By-TechLead.md
<|file_sep|>current/_posts/2019-03-31-GoogleMockInterview-By-TechLead.md
<|file_sep|>updated/_posts/2019-03-31-GoogleMockInterview-By-TechLead.md | ---
layout: post
title: "Mock Google Interview Question"
date: 2019-03-31 21:53:32 -0700
categories: Scala
---
* This will become a table of contents (this text will be scraped).
{:toc}
## Mock Google Interview Question
Randomly browsering youtube videos online, found an interesting video posted by my favorite youtuber: the [TechLead](https://www.youtube.com/channel/UC4xKdmAXFh4ACyhpiQ_3qBw).
### Question: Maximum Number of Connected Colors
> Question: Given a grid with cells in different colors, find the maximum number of same color cells that are connected.
>
> Note: two cells are connected if they are of the same color and adjacent to each other: left, right, top or bottom.
**To stay simple, we use integers to represent colors:**
```scala | <|file_sep|>original/_posts/2019-03-31-GoogleMockInterview-By-TechLead.md
<|file_sep|>current/_posts/2019-03-31-GoogleMockInterview-By-TechLead.md
<|file_sep|>updated/_posts/2019-03-31-GoogleMockInterview-By-TechLead.md
---
layout: post
title: "Mock Google Interview Question"
date: 2019-03-31 21:53:32 -0700
categories: Scala
---
* This will become a table of contents (this text will be scraped).
{:toc}
## Mock Google Interview Question
Randomly browsering youtube videos online, found an interesting video posted by my favorite youtuber: the [TechLead](https://www.youtube.com/channel/UC4xKdmAXFh4ACyhpiQ_3qBw).
### Question: Maximum Number of Connected Colors
> Question: Given a grid with cells in different colors, find the maximum number of same color cells that are connected.
>
> Note: two cells are connected if they are of the same color and adjacent to each other: left, right, top or bottom.
**To stay simple, we use integers to represent colors:**
```scala | cfba7ecd02dc8375e448e5d821d4337630cf4b1f | _posts/2019-03-31-GoogleMockInterview-By-TechLead.md | _posts/2019-03-31-GoogleMockInterview-By-TechLead.md | Markdown |
<|file_sep|>original/chapter17/wb_chapter17_ex03.pl
<|file_sep|>current/chapter17/wb_chapter17_ex03.pl
<|file_sep|>updated/chapter17/wb_chapter17_ex03.pl | #!C:\strawberry\perl\bin\perl.exe
# Use grep to select multiples of 3 between 1 and 1000
use 5.020;
use warnings;
my @list = grep ! ( $_ % 3 ), 1..1000;
say "@list"; | <|file_sep|>original/chapter17/wb_chapter17_ex03.pl
<|file_sep|>current/chapter17/wb_chapter17_ex03.pl
<|file_sep|>updated/chapter17/wb_chapter17_ex03.pl
#!C:\strawberry\perl\bin\perl.exe
# Use grep to select multiples of 3 between 1 and 1000
use 5.020;
use warnings;
my @list = grep ! ( $_ % 3 ), 1..1000;
say "@list"; | 283dbcbe61406f8a7b9eeea88fc576f33b0ba54f | chapter17/wb_chapter17_ex03.pl | chapter17/wb_chapter17_ex03.pl | Perl |
<|file_sep|>original/src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java
import pokefenn.totemic.util.EntityUtil;
public class CeremonySunDance extends Ceremony
{
public CeremonySunDance(String name, int musicNeeded, int maxStartupTime, MusicInstrument... selectors)
{
super(name, musicNeeded, maxStartupTime, selectors);
}
@Override
public void effect(World world, BlockPos pos, int time)
{
if(world.isRemote)
return;
for(EntityPlayer player : EntityUtil.getEntitiesInRange(EntityPlayer.class, world, pos, 8, 8))
{
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 20 * 10, 3));
}
}
}
<|file_sep|>current/src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java
import pokefenn.totemic.util.EntityUtil;
public class CeremonySunDance extends Ceremony
{
public CeremonySunDance(String name, int musicNeeded, int maxStartupTime, MusicInstrument... selectors)
{
super(name, musicNeeded, maxStartupTime, selectors);
}
@Override
public void effect(World world, BlockPos pos, int time)
{
if(world.isRemote)
return;
for(EntityPlayer player : EntityUtil.getEntitiesInRange(EntityPlayer.class, world, pos, 8, 8))
{
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 20 * 10, 3));
}
}
}
<|file_sep|>updated/src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java |
public class CeremonySunDance extends Ceremony
{
public CeremonySunDance(String name, int musicNeeded, int maxStartupTime, MusicInstrument... selectors)
{
super(name, musicNeeded, maxStartupTime, selectors);
}
@Override
public void effect(World world, BlockPos pos, int time)
{
if(world.isRemote)
return;
for(EntityPlayer player : EntityUtil.getEntitiesInRange(EntityPlayer.class, world, pos, 8, 8))
{
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 10 * 20, 3));
player.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, 5 * 60 * 20, 3));
}
}
} | <|file_sep|>original/src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java
import pokefenn.totemic.util.EntityUtil;
public class CeremonySunDance extends Ceremony
{
public CeremonySunDance(String name, int musicNeeded, int maxStartupTime, MusicInstrument... selectors)
{
super(name, musicNeeded, maxStartupTime, selectors);
}
@Override
public void effect(World world, BlockPos pos, int time)
{
if(world.isRemote)
return;
for(EntityPlayer player : EntityUtil.getEntitiesInRange(EntityPlayer.class, world, pos, 8, 8))
{
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 20 * 10, 3));
}
}
}
<|file_sep|>current/src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java
import pokefenn.totemic.util.EntityUtil;
public class CeremonySunDance extends Ceremony
{
public CeremonySunDance(String name, int musicNeeded, int maxStartupTime, MusicInstrument... selectors)
{
super(name, musicNeeded, maxStartupTime, selectors);
}
@Override
public void effect(World world, BlockPos pos, int time)
{
if(world.isRemote)
return;
for(EntityPlayer player : EntityUtil.getEntitiesInRange(EntityPlayer.class, world, pos, 8, 8))
{
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 20 * 10, 3));
}
}
}
<|file_sep|>updated/src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java
public class CeremonySunDance extends Ceremony
{
public CeremonySunDance(String name, int musicNeeded, int maxStartupTime, MusicInstrument... selectors)
{
super(name, musicNeeded, maxStartupTime, selectors);
}
@Override
public void effect(World world, BlockPos pos, int time)
{
if(world.isRemote)
return;
for(EntityPlayer player : EntityUtil.getEntitiesInRange(EntityPlayer.class, world, pos, 8, 8))
{
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 10 * 20, 3));
player.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, 5 * 60 * 20, 3));
}
}
} | 769ee1e4be54296f973d66dcf4431670357f9d49 | src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java | src/main/java/pokefenn/totemic/ceremony/CeremonySunDance.java | Java |
<|file_sep|>.github/ISSUE_TEMPLATE/issue-template.md.diff
original:
If you want to add an information please provide the following information:
updated:
If you want to add an information please provide at least the following information:
<|file_sep|>original/.github/ISSUE_TEMPLATE/issue-template.md
---
name: issue template
about: standard template for issues
title: ''
labels: ''
assignees: ''
---
If you want to add an information please provide the following information:
* link to the web service this is about
* link to a source (in best by the service itself) stating that it is 2fa is supported
<|file_sep|>current/.github/ISSUE_TEMPLATE/issue-template.md
---
name: issue template
about: standard template for issues
title: ''
labels: ''
assignees: ''
---
If you want to add an information please provide at least the following information:
* link to the web service this is about
* link to a source (in best by the service itself) stating that it is 2fa is supported
<|file_sep|>updated/.github/ISSUE_TEMPLATE/issue-template.md | ---
name: issue template
about: standard template for issues
title: ''
labels: ''
assignees: ''
---
If you want to add an information please provide at least the following information:
* link to the web service this is about
* link to a source (in best by the service itself) stating that it is 2fa is supported
If you plan to create a pull request please mind the following before submitting a pull request:
* icons need to be 32x32 png and smaller than 1500 bytes
* tags are only set if it is supported. there is no `tag: No`!
* if you add `otp: Yes` or `u2f: Yes` the first time, please remember to add `hardware: Yes` as well
* please provide a link stating/explaining availibility via `doc` tag if possible | <|file_sep|>.github/ISSUE_TEMPLATE/issue-template.md.diff
original:
If you want to add an information please provide the following information:
updated:
If you want to add an information please provide at least the following information:
<|file_sep|>original/.github/ISSUE_TEMPLATE/issue-template.md
---
name: issue template
about: standard template for issues
title: ''
labels: ''
assignees: ''
---
If you want to add an information please provide the following information:
* link to the web service this is about
* link to a source (in best by the service itself) stating that it is 2fa is supported
<|file_sep|>current/.github/ISSUE_TEMPLATE/issue-template.md
---
name: issue template
about: standard template for issues
title: ''
labels: ''
assignees: ''
---
If you want to add an information please provide at least the following information:
* link to the web service this is about
* link to a source (in best by the service itself) stating that it is 2fa is supported
<|file_sep|>updated/.github/ISSUE_TEMPLATE/issue-template.md
---
name: issue template
about: standard template for issues
title: ''
labels: ''
assignees: ''
---
If you want to add an information please provide at least the following information:
* link to the web service this is about
* link to a source (in best by the service itself) stating that it is 2fa is supported
If you plan to create a pull request please mind the following before submitting a pull request:
* icons need to be 32x32 png and smaller than 1500 bytes
* tags are only set if it is supported. there is no `tag: No`!
* if you add `otp: Yes` or `u2f: Yes` the first time, please remember to add `hardware: Yes` as well
* please provide a link stating/explaining availibility via `doc` tag if possible | 2f7813c735f67d846931266047dd62f6e492f82c | .github/ISSUE_TEMPLATE/issue-template.md | .github/ISSUE_TEMPLATE/issue-template.md | Markdown |
<|file_sep|>uart_echo.c.diff
original:
updated:
#include <util/delay.h>
<|file_sep|>uart_echo.c.diff
original:
updated:
DDRB = 0xFF;
<|file_sep|>uart_echo.c.diff
original:
updated:
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
<|file_sep|>original/uart_echo.c
#include <avr/interrupt.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
<|file_sep|>current/uart_echo.c
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
uart_transmit(c);
} while (c);
return 0;
}
<|file_sep|>updated/uart_echo.c |
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
uart_transmit(c);
} while (1);
return 0;
}
| <|file_sep|>uart_echo.c.diff
original:
updated:
#include <util/delay.h>
<|file_sep|>uart_echo.c.diff
original:
updated:
DDRB = 0xFF;
<|file_sep|>uart_echo.c.diff
original:
updated:
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
<|file_sep|>original/uart_echo.c
#include <avr/interrupt.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
<|file_sep|>current/uart_echo.c
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
uart_transmit(c);
} while (c);
return 0;
}
<|file_sep|>updated/uart_echo.c
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
PORTB = 0x00;
_delay_ms(100);
}
}
uart_transmit(c);
} while (1);
return 0;
}
| d351c50c960d6bad2469b08fd547936512c58a08 | uart_echo.c | uart_echo.c | C |
<|file_sep|>deal.II/base/source/job_identifier.cc.diff
original:
// Copyright (C) 1998, 1999, 2000, 2001, 2002 by the deal authors
updated:
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal authors
<|file_sep|>original/deal.II/base/source/job_identifier.cc
JobIdentifier::JobIdentifier()
{
time_t t = std::time(0);
id = std::string(program_id());
//TODO:[GK] try to avoid this hack
// It should be possible not to check DEBUG, but there is this
// tedious -ansi, which causes problems with linux headers
#if (HAVE_GETHOSTNAME && (!DEBUG))
char name[100];
gethostname(name,99);
id += std::string(name) + std::string(" ");
#endif
id += std::string(std::ctime(&t));
}
const std::string
<|file_sep|>current/deal.II/base/source/job_identifier.cc
JobIdentifier::JobIdentifier()
{
time_t t = std::time(0);
id = std::string(program_id());
//TODO:[GK] try to avoid this hack
// It should be possible not to check DEBUG, but there is this
// tedious -ansi, which causes problems with linux headers
#if (HAVE_GETHOSTNAME && (!DEBUG))
char name[100];
gethostname(name,99);
id += std::string(name) + std::string(" ");
#endif
id += std::string(std::ctime(&t));
}
const std::string
<|file_sep|>updated/deal.II/base/source/job_identifier.cc |
JobIdentifier::JobIdentifier()
{
time_t t = std::time(0);
id = std::string(program_id());
//TODO:[GK] try to avoid this hack
// It should be possible not to check DEBUG, but there is this
// tedious -ansi, which causes problems with linux headers
#if defined(HAVE_GETHOSTNAME) && !defined(DEBUG)
char name[100];
gethostname(name,99);
id += std::string(name) + std::string(" ");
#endif
id += std::string(std::ctime(&t));
}
const std::string | <|file_sep|>deal.II/base/source/job_identifier.cc.diff
original:
// Copyright (C) 1998, 1999, 2000, 2001, 2002 by the deal authors
updated:
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal authors
<|file_sep|>original/deal.II/base/source/job_identifier.cc
JobIdentifier::JobIdentifier()
{
time_t t = std::time(0);
id = std::string(program_id());
//TODO:[GK] try to avoid this hack
// It should be possible not to check DEBUG, but there is this
// tedious -ansi, which causes problems with linux headers
#if (HAVE_GETHOSTNAME && (!DEBUG))
char name[100];
gethostname(name,99);
id += std::string(name) + std::string(" ");
#endif
id += std::string(std::ctime(&t));
}
const std::string
<|file_sep|>current/deal.II/base/source/job_identifier.cc
JobIdentifier::JobIdentifier()
{
time_t t = std::time(0);
id = std::string(program_id());
//TODO:[GK] try to avoid this hack
// It should be possible not to check DEBUG, but there is this
// tedious -ansi, which causes problems with linux headers
#if (HAVE_GETHOSTNAME && (!DEBUG))
char name[100];
gethostname(name,99);
id += std::string(name) + std::string(" ");
#endif
id += std::string(std::ctime(&t));
}
const std::string
<|file_sep|>updated/deal.II/base/source/job_identifier.cc
JobIdentifier::JobIdentifier()
{
time_t t = std::time(0);
id = std::string(program_id());
//TODO:[GK] try to avoid this hack
// It should be possible not to check DEBUG, but there is this
// tedious -ansi, which causes problems with linux headers
#if defined(HAVE_GETHOSTNAME) && !defined(DEBUG)
char name[100];
gethostname(name,99);
id += std::string(name) + std::string(" ");
#endif
id += std::string(std::ctime(&t));
}
const std::string | 451190e6356a50c903989eb2e4549d470958a631 | deal.II/base/source/job_identifier.cc | deal.II/base/source/job_identifier.cc | C++ |
<|file_sep|>packages/hv/hvega-theme.yaml.diff
original:
hash: 0ef9816dc64273135f4662f4d39d3ead4f596eca26e59c26db13f05ec649a990
updated:
hash: ad75ef0260c19bab8dd0dc66970694da97a030de29afa9cfccb618c9847bbdb1
<|file_sep|>packages/hv/hvega-theme.yaml.diff
original:
updated:
- 0.2.0.3
<|file_sep|>original/packages/hv/hvega-theme.yaml
changelog-type: ''
hash: 0ef9816dc64273135f4662f4d39d3ead4f596eca26e59c26db13f05ec649a990
test-bench-deps: {}
maintainer: gsch@pennmedicine.upenn.edu
synopsis: Theme for hvega.
changelog: ''
basic-deps:
base: '>=4.7 && <5'
text: -any
hvega: '>=0.7.0.1'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.2.0.2
author: Gregory W. Schwartz
latest: 0.2.0.2
description-type: haddock
description: A professional theme for publication quality figures.
license-name: GPL-3.0-only
<|file_sep|>current/packages/hv/hvega-theme.yaml
hash: ad75ef0260c19bab8dd0dc66970694da97a030de29afa9cfccb618c9847bbdb1
test-bench-deps: {}
maintainer: gsch@pennmedicine.upenn.edu
synopsis: Theme for hvega.
changelog: ''
basic-deps:
base: '>=4.7 && <5'
text: -any
hvega: '>=0.7.0.1'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.2.0.2
- 0.2.0.3
author: Gregory W. Schwartz
latest: 0.2.0.2
description-type: haddock
description: A professional theme for publication quality figures.
license-name: GPL-3.0-only
<|file_sep|>updated/packages/hv/hvega-theme.yaml | hash: ad75ef0260c19bab8dd0dc66970694da97a030de29afa9cfccb618c9847bbdb1
test-bench-deps: {}
maintainer: gsch@pennmedicine.upenn.edu
synopsis: Theme for hvega.
changelog: ''
basic-deps:
base: '>=4.7 && <5'
text: -any
hvega: '>=0.7.0.1'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.2.0.2
- 0.2.0.3
author: Gregory W. Schwartz
latest: 0.2.0.3
description-type: haddock
description: A professional theme for publication quality figures.
license-name: GPL-3.0-only | <|file_sep|>packages/hv/hvega-theme.yaml.diff
original:
hash: 0ef9816dc64273135f4662f4d39d3ead4f596eca26e59c26db13f05ec649a990
updated:
hash: ad75ef0260c19bab8dd0dc66970694da97a030de29afa9cfccb618c9847bbdb1
<|file_sep|>packages/hv/hvega-theme.yaml.diff
original:
updated:
- 0.2.0.3
<|file_sep|>original/packages/hv/hvega-theme.yaml
changelog-type: ''
hash: 0ef9816dc64273135f4662f4d39d3ead4f596eca26e59c26db13f05ec649a990
test-bench-deps: {}
maintainer: gsch@pennmedicine.upenn.edu
synopsis: Theme for hvega.
changelog: ''
basic-deps:
base: '>=4.7 && <5'
text: -any
hvega: '>=0.7.0.1'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.2.0.2
author: Gregory W. Schwartz
latest: 0.2.0.2
description-type: haddock
description: A professional theme for publication quality figures.
license-name: GPL-3.0-only
<|file_sep|>current/packages/hv/hvega-theme.yaml
hash: ad75ef0260c19bab8dd0dc66970694da97a030de29afa9cfccb618c9847bbdb1
test-bench-deps: {}
maintainer: gsch@pennmedicine.upenn.edu
synopsis: Theme for hvega.
changelog: ''
basic-deps:
base: '>=4.7 && <5'
text: -any
hvega: '>=0.7.0.1'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.2.0.2
- 0.2.0.3
author: Gregory W. Schwartz
latest: 0.2.0.2
description-type: haddock
description: A professional theme for publication quality figures.
license-name: GPL-3.0-only
<|file_sep|>updated/packages/hv/hvega-theme.yaml
hash: ad75ef0260c19bab8dd0dc66970694da97a030de29afa9cfccb618c9847bbdb1
test-bench-deps: {}
maintainer: gsch@pennmedicine.upenn.edu
synopsis: Theme for hvega.
changelog: ''
basic-deps:
base: '>=4.7 && <5'
text: -any
hvega: '>=0.7.0.1'
all-versions:
- 0.1.0.0
- 0.1.0.1
- 0.2.0.0
- 0.2.0.1
- 0.2.0.2
- 0.2.0.3
author: Gregory W. Schwartz
latest: 0.2.0.3
description-type: haddock
description: A professional theme for publication quality figures.
license-name: GPL-3.0-only | 9b5aff88d3ec9a082f45d18a689689e6991c1343 | packages/hv/hvega-theme.yaml | packages/hv/hvega-theme.yaml | YAML |
<|file_sep|>original/docs/README.md
# uPortal Documentation
## Table of Contents
* [Ant Help](antHelp.txt)
* [Skinning uPortal](SKINNING_UPORTAL.md)
* [Using Angular](USING_ANGULAR.md)
## External Links
* [Apereo Foundation Home](https://www.apereo.org/)
* [uPortal Wiki](https://wiki.jasig.org/display/UPC/Home)
## Documentation for Previous Releases
* [uPortal 4.3](https://wiki.jasig.org/display/UPM43/Home)
* [uPortal 4.2](https://wiki.jasig.org/display/UPM42/Home)
* [uPortal 4.1](https://wiki.jasig.org/display/UPM41/Home)
* [uPortal 4.0](https://wiki.jasig.org/display/UPM40/Home)
* [uPortal 3.2](https://wiki.jasig.org/display/UPM32/Home)
* [uPortal 3.1](https://wiki.jasig.org/display/UPM31/Home)
<|file_sep|>current/docs/README.md
# uPortal Documentation
## Table of Contents
* [Ant Help](antHelp.txt)
* [Skinning uPortal](SKINNING_UPORTAL.md)
* [Using Angular](USING_ANGULAR.md)
## External Links
* [Apereo Foundation Home](https://www.apereo.org/)
* [uPortal Wiki](https://wiki.jasig.org/display/UPC/Home)
## Documentation for Previous Releases
* [uPortal 4.3](https://wiki.jasig.org/display/UPM43/Home)
* [uPortal 4.2](https://wiki.jasig.org/display/UPM42/Home)
* [uPortal 4.1](https://wiki.jasig.org/display/UPM41/Home)
* [uPortal 4.0](https://wiki.jasig.org/display/UPM40/Home)
* [uPortal 3.2](https://wiki.jasig.org/display/UPM32/Home)
* [uPortal 3.1](https://wiki.jasig.org/display/UPM31/Home)
<|file_sep|>updated/docs/README.md | # uPortal Documentation
## Pages
* [Ant Help](antHelp.txt)
* [Skinning uPortal](SKINNING_UPORTAL.md)
* [Using Angular](USING_ANGULAR.md)
## External Links
* [Apereo Foundation Home](https://www.apereo.org/)
* [uPortal Wiki](https://wiki.jasig.org/display/UPC/Home)
## Documentation for Previous Releases
* [uPortal 4.3](https://wiki.jasig.org/display/UPM43/Home)
* [uPortal 4.2](https://wiki.jasig.org/display/UPM42/Home)
* [uPortal 4.1](https://wiki.jasig.org/display/UPM41/Home)
* [uPortal 4.0](https://wiki.jasig.org/display/UPM40/Home)
* [uPortal 3.2](https://wiki.jasig.org/display/UPM32/Home)
* [uPortal 3.1](https://wiki.jasig.org/display/UPM31/Home) | <|file_sep|>original/docs/README.md
# uPortal Documentation
## Table of Contents
* [Ant Help](antHelp.txt)
* [Skinning uPortal](SKINNING_UPORTAL.md)
* [Using Angular](USING_ANGULAR.md)
## External Links
* [Apereo Foundation Home](https://www.apereo.org/)
* [uPortal Wiki](https://wiki.jasig.org/display/UPC/Home)
## Documentation for Previous Releases
* [uPortal 4.3](https://wiki.jasig.org/display/UPM43/Home)
* [uPortal 4.2](https://wiki.jasig.org/display/UPM42/Home)
* [uPortal 4.1](https://wiki.jasig.org/display/UPM41/Home)
* [uPortal 4.0](https://wiki.jasig.org/display/UPM40/Home)
* [uPortal 3.2](https://wiki.jasig.org/display/UPM32/Home)
* [uPortal 3.1](https://wiki.jasig.org/display/UPM31/Home)
<|file_sep|>current/docs/README.md
# uPortal Documentation
## Table of Contents
* [Ant Help](antHelp.txt)
* [Skinning uPortal](SKINNING_UPORTAL.md)
* [Using Angular](USING_ANGULAR.md)
## External Links
* [Apereo Foundation Home](https://www.apereo.org/)
* [uPortal Wiki](https://wiki.jasig.org/display/UPC/Home)
## Documentation for Previous Releases
* [uPortal 4.3](https://wiki.jasig.org/display/UPM43/Home)
* [uPortal 4.2](https://wiki.jasig.org/display/UPM42/Home)
* [uPortal 4.1](https://wiki.jasig.org/display/UPM41/Home)
* [uPortal 4.0](https://wiki.jasig.org/display/UPM40/Home)
* [uPortal 3.2](https://wiki.jasig.org/display/UPM32/Home)
* [uPortal 3.1](https://wiki.jasig.org/display/UPM31/Home)
<|file_sep|>updated/docs/README.md
# uPortal Documentation
## Pages
* [Ant Help](antHelp.txt)
* [Skinning uPortal](SKINNING_UPORTAL.md)
* [Using Angular](USING_ANGULAR.md)
## External Links
* [Apereo Foundation Home](https://www.apereo.org/)
* [uPortal Wiki](https://wiki.jasig.org/display/UPC/Home)
## Documentation for Previous Releases
* [uPortal 4.3](https://wiki.jasig.org/display/UPM43/Home)
* [uPortal 4.2](https://wiki.jasig.org/display/UPM42/Home)
* [uPortal 4.1](https://wiki.jasig.org/display/UPM41/Home)
* [uPortal 4.0](https://wiki.jasig.org/display/UPM40/Home)
* [uPortal 3.2](https://wiki.jasig.org/display/UPM32/Home)
* [uPortal 3.1](https://wiki.jasig.org/display/UPM31/Home) | 9209a5ecdeafb14a93d26c2e0347950a8ccf74e7 | docs/README.md | docs/README.md | Markdown |
<|file_sep|>original/lib/abilities/extensions/action_controller/base.rb
module ActionController
module Base
extend ActiveSupport::Concern
included do
helper_method :can?, :cannot?
end
%w(can? cannot?).each do |name|
define_method name do |action, resource|
Abilities.send name, current_user, action, resource
end
end
private
def authorize!(action, subject)
if cannot?(action, subject)
raise Abilities::AccessDenied
end
end
<|file_sep|>current/lib/abilities/extensions/action_controller/base.rb
module ActionController
module Base
extend ActiveSupport::Concern
included do
helper_method :can?, :cannot?
end
%w(can? cannot?).each do |name|
define_method name do |action, resource|
Abilities.send name, current_user, action, resource
end
end
private
def authorize!(action, subject)
if cannot?(action, subject)
raise Abilities::AccessDenied
end
end
<|file_sep|>updated/lib/abilities/extensions/action_controller/base.rb | module ActionController
module Base
extend ActiveSupport::Concern
included do
helper_method :can?, :cannot?
end
%w(can? cannot?).each do |name|
define_method name do |action, resource|
Abilities.send name, @user, action, resource
end
end
private
def authorize!(action, subject)
if cannot?(action, subject)
raise Abilities::AccessDenied
end
end | <|file_sep|>original/lib/abilities/extensions/action_controller/base.rb
module ActionController
module Base
extend ActiveSupport::Concern
included do
helper_method :can?, :cannot?
end
%w(can? cannot?).each do |name|
define_method name do |action, resource|
Abilities.send name, current_user, action, resource
end
end
private
def authorize!(action, subject)
if cannot?(action, subject)
raise Abilities::AccessDenied
end
end
<|file_sep|>current/lib/abilities/extensions/action_controller/base.rb
module ActionController
module Base
extend ActiveSupport::Concern
included do
helper_method :can?, :cannot?
end
%w(can? cannot?).each do |name|
define_method name do |action, resource|
Abilities.send name, current_user, action, resource
end
end
private
def authorize!(action, subject)
if cannot?(action, subject)
raise Abilities::AccessDenied
end
end
<|file_sep|>updated/lib/abilities/extensions/action_controller/base.rb
module ActionController
module Base
extend ActiveSupport::Concern
included do
helper_method :can?, :cannot?
end
%w(can? cannot?).each do |name|
define_method name do |action, resource|
Abilities.send name, @user, action, resource
end
end
private
def authorize!(action, subject)
if cannot?(action, subject)
raise Abilities::AccessDenied
end
end | 228af1c2e0bcaf76d329ce054fdaeec4f94819fa | lib/abilities/extensions/action_controller/base.rb | lib/abilities/extensions/action_controller/base.rb | Ruby |
<|file_sep|>doc/release/release_notes.rst.diff
original:
.. release:: Upcoming
updated:
.. release:: 0.1.0
:date: 2016-05-25
<|file_sep|>original/doc/release/release_notes.rst
.. _release/release_notes:
*************
Release Notes
*************
.. release:: Upcoming
.. change:: new
Initial release.
<|file_sep|>current/doc/release/release_notes.rst
.. _release/release_notes:
*************
Release Notes
*************
.. release:: 0.1.0
:date: 2016-05-25
.. change:: new
Initial release.
<|file_sep|>updated/doc/release/release_notes.rst | .. _release/release_notes:
*************
Release Notes
*************
.. release:: 0.1.0
:date: 2016-05-25
.. change:: new
Initial release for evaluation. | <|file_sep|>doc/release/release_notes.rst.diff
original:
.. release:: Upcoming
updated:
.. release:: 0.1.0
:date: 2016-05-25
<|file_sep|>original/doc/release/release_notes.rst
.. _release/release_notes:
*************
Release Notes
*************
.. release:: Upcoming
.. change:: new
Initial release.
<|file_sep|>current/doc/release/release_notes.rst
.. _release/release_notes:
*************
Release Notes
*************
.. release:: 0.1.0
:date: 2016-05-25
.. change:: new
Initial release.
<|file_sep|>updated/doc/release/release_notes.rst
.. _release/release_notes:
*************
Release Notes
*************
.. release:: 0.1.0
:date: 2016-05-25
.. change:: new
Initial release for evaluation. | ffaa66d35a10f67944ca49027bb723aa28d97329 | doc/release/release_notes.rst | doc/release/release_notes.rst | reStructuredText |
<|file_sep|>original/application/views/manage/group/deleteForm.php
<h2>Confirm deletion</h2>
<form action="<?php echo URL::base(true,true);?>manage/group/removeMember/<?php echo $id; ?>" method="POST">
<input type="hidden" value="1" name="confirm" />
<p>Are you sure you want to remove '<?php echo $data['accessName']; ?>' from the group access?</p>
<button type="submit" class="btn">Confirm Deletion</button>
<button type="button" class="btn" onclick="history.go(-1);return false;">Cancel</button>
</form>
<|file_sep|>current/application/views/manage/group/deleteForm.php
<h2>Confirm deletion</h2>
<form action="<?php echo URL::base(true,true);?>manage/group/removeMember/<?php echo $id; ?>" method="POST">
<input type="hidden" value="1" name="confirm" />
<p>Are you sure you want to remove '<?php echo $data['accessName']; ?>' from the group access?</p>
<button type="submit" class="btn">Confirm Deletion</button>
<button type="button" class="btn" onclick="history.go(-1);return false;">Cancel</button>
</form>
<|file_sep|>updated/application/views/manage/group/deleteForm.php |
<h2>Confirm deletion</h2>
<form action="<?php echo URL::base(true,true);?>manage/group/removeMember/<?php echo $id; ?>" method="POST">
<input type="hidden" value="1" name="confirm" />
<p>Are you sure you want to remove '<?php echo $data['accessName']; ?>' from the group access?</p>
<button type="submit" class="btn btn-danger">Confirm Deletion</button>
<button type="button" class="btn" onclick="history.go(-1);return false;">Cancel</button>
</form> | <|file_sep|>original/application/views/manage/group/deleteForm.php
<h2>Confirm deletion</h2>
<form action="<?php echo URL::base(true,true);?>manage/group/removeMember/<?php echo $id; ?>" method="POST">
<input type="hidden" value="1" name="confirm" />
<p>Are you sure you want to remove '<?php echo $data['accessName']; ?>' from the group access?</p>
<button type="submit" class="btn">Confirm Deletion</button>
<button type="button" class="btn" onclick="history.go(-1);return false;">Cancel</button>
</form>
<|file_sep|>current/application/views/manage/group/deleteForm.php
<h2>Confirm deletion</h2>
<form action="<?php echo URL::base(true,true);?>manage/group/removeMember/<?php echo $id; ?>" method="POST">
<input type="hidden" value="1" name="confirm" />
<p>Are you sure you want to remove '<?php echo $data['accessName']; ?>' from the group access?</p>
<button type="submit" class="btn">Confirm Deletion</button>
<button type="button" class="btn" onclick="history.go(-1);return false;">Cancel</button>
</form>
<|file_sep|>updated/application/views/manage/group/deleteForm.php
<h2>Confirm deletion</h2>
<form action="<?php echo URL::base(true,true);?>manage/group/removeMember/<?php echo $id; ?>" method="POST">
<input type="hidden" value="1" name="confirm" />
<p>Are you sure you want to remove '<?php echo $data['accessName']; ?>' from the group access?</p>
<button type="submit" class="btn btn-danger">Confirm Deletion</button>
<button type="button" class="btn" onclick="history.go(-1);return false;">Cancel</button>
</form> | 03098546c785da1888cf17421707ca4960edd8e0 | application/views/manage/group/deleteForm.php | application/views/manage/group/deleteForm.php | PHP |
<|file_sep|>original/java-vtl-documentation/mkdocs.yml
site_name: Java VTL
site_url: https://statisticsnorway.github.io/java-vtl/
repo_url: https://github.com/statisticsnorway/java-vtl
edit_uri: edit/feature/tooling/java-vtl-documentation/docs
theme_dir: cinder
pages:
- Home: index.md
- Reference: reference.md
- Playground: playground.md
extra_css:
- 'https://unpkg.com/codemirror@5.23.0/lib/codemirror.css'
- css/railroad-diagrams.css
- css/railroad-vtl.css
extra_javascript:
- js/main.js
google_analytics: ['UA-85245041-1', 'auto']
<|file_sep|>current/java-vtl-documentation/mkdocs.yml
site_name: Java VTL
site_url: https://statisticsnorway.github.io/java-vtl/
repo_url: https://github.com/statisticsnorway/java-vtl
edit_uri: edit/feature/tooling/java-vtl-documentation/docs
theme_dir: cinder
pages:
- Home: index.md
- Reference: reference.md
- Playground: playground.md
extra_css:
- 'https://unpkg.com/codemirror@5.23.0/lib/codemirror.css'
- css/railroad-diagrams.css
- css/railroad-vtl.css
extra_javascript:
- js/main.js
google_analytics: ['UA-85245041-1', 'auto']
<|file_sep|>updated/java-vtl-documentation/mkdocs.yml | site_name: Java VTL
site_url: https://statisticsnorway.github.io/java-vtl/
repo_url: https://github.com/statisticsnorway/java-vtl
edit_uri: edit/develop/java-vtl-documentation/docs
theme_dir: cinder
pages:
- Home: index.md
- Reference: reference.md
- Playground: playground.md
extra_css:
- 'https://unpkg.com/codemirror@5.23.0/lib/codemirror.css'
- css/railroad-diagrams.css
- css/railroad-vtl.css
extra_javascript:
- js/main.js
google_analytics: ['UA-85245041-1', 'auto'] | <|file_sep|>original/java-vtl-documentation/mkdocs.yml
site_name: Java VTL
site_url: https://statisticsnorway.github.io/java-vtl/
repo_url: https://github.com/statisticsnorway/java-vtl
edit_uri: edit/feature/tooling/java-vtl-documentation/docs
theme_dir: cinder
pages:
- Home: index.md
- Reference: reference.md
- Playground: playground.md
extra_css:
- 'https://unpkg.com/codemirror@5.23.0/lib/codemirror.css'
- css/railroad-diagrams.css
- css/railroad-vtl.css
extra_javascript:
- js/main.js
google_analytics: ['UA-85245041-1', 'auto']
<|file_sep|>current/java-vtl-documentation/mkdocs.yml
site_name: Java VTL
site_url: https://statisticsnorway.github.io/java-vtl/
repo_url: https://github.com/statisticsnorway/java-vtl
edit_uri: edit/feature/tooling/java-vtl-documentation/docs
theme_dir: cinder
pages:
- Home: index.md
- Reference: reference.md
- Playground: playground.md
extra_css:
- 'https://unpkg.com/codemirror@5.23.0/lib/codemirror.css'
- css/railroad-diagrams.css
- css/railroad-vtl.css
extra_javascript:
- js/main.js
google_analytics: ['UA-85245041-1', 'auto']
<|file_sep|>updated/java-vtl-documentation/mkdocs.yml
site_name: Java VTL
site_url: https://statisticsnorway.github.io/java-vtl/
repo_url: https://github.com/statisticsnorway/java-vtl
edit_uri: edit/develop/java-vtl-documentation/docs
theme_dir: cinder
pages:
- Home: index.md
- Reference: reference.md
- Playground: playground.md
extra_css:
- 'https://unpkg.com/codemirror@5.23.0/lib/codemirror.css'
- css/railroad-diagrams.css
- css/railroad-vtl.css
extra_javascript:
- js/main.js
google_analytics: ['UA-85245041-1', 'auto'] | a99896bd9e1a4d75622ad8a66c96074c5d8f9a0a | java-vtl-documentation/mkdocs.yml | java-vtl-documentation/mkdocs.yml | YAML |
<|file_sep|>original/sources/ru/ce/grozny.json
{
"coverage": {
"country": "ru",
"city": "Grozny"
},
"data": "http://geoportal95.ru:6080/arcgis/rest/services/%D0%90%D0%B4%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_zd/MapServer/7",
"type": "ESRI",
"language": "ru",
"conform": {
"number": "Nomer_doma",
"street": "Name_UL",
"city": {
"function": "regexp",
"field": "Adres",
"pattern": "^(?:.*)?,(?:.*)?,(.*),(?:.*)?$"
},
"district": "Raion",
"postcode": "P_Indeks",
"type": "geojson"
}
}
<|file_sep|>current/sources/ru/ce/grozny.json
{
"coverage": {
"country": "ru",
"city": "Grozny"
},
"data": "http://geoportal95.ru:6080/arcgis/rest/services/%D0%90%D0%B4%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_zd/MapServer/7",
"type": "ESRI",
"language": "ru",
"conform": {
"number": "Nomer_doma",
"street": "Name_UL",
"city": {
"function": "regexp",
"field": "Adres",
"pattern": "^(?:.*)?,(?:.*)?,(.*),(?:.*)?$"
},
"district": "Raion",
"postcode": "P_Indeks",
"type": "geojson"
}
}
<|file_sep|>updated/sources/ru/ce/grozny.json | {
"coverage": {
"country": "ru",
"city": "Grozny"
},
"data": "http://geoportal95.ru:6080/arcgis/rest/services/%D0%90%D0%B4%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_zd/MapServer/7",
"type": "ESRI",
"language": "ru",
"conform": {
"number": "Nomer_doma",
"street": "Name_UL",
"city": "г. Грозный",
"district": "Raion",
"postcode": "P_Indeks",
"type": "geojson"
}
} | <|file_sep|>original/sources/ru/ce/grozny.json
{
"coverage": {
"country": "ru",
"city": "Grozny"
},
"data": "http://geoportal95.ru:6080/arcgis/rest/services/%D0%90%D0%B4%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_zd/MapServer/7",
"type": "ESRI",
"language": "ru",
"conform": {
"number": "Nomer_doma",
"street": "Name_UL",
"city": {
"function": "regexp",
"field": "Adres",
"pattern": "^(?:.*)?,(?:.*)?,(.*),(?:.*)?$"
},
"district": "Raion",
"postcode": "P_Indeks",
"type": "geojson"
}
}
<|file_sep|>current/sources/ru/ce/grozny.json
{
"coverage": {
"country": "ru",
"city": "Grozny"
},
"data": "http://geoportal95.ru:6080/arcgis/rest/services/%D0%90%D0%B4%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_zd/MapServer/7",
"type": "ESRI",
"language": "ru",
"conform": {
"number": "Nomer_doma",
"street": "Name_UL",
"city": {
"function": "regexp",
"field": "Adres",
"pattern": "^(?:.*)?,(?:.*)?,(.*),(?:.*)?$"
},
"district": "Raion",
"postcode": "P_Indeks",
"type": "geojson"
}
}
<|file_sep|>updated/sources/ru/ce/grozny.json
{
"coverage": {
"country": "ru",
"city": "Grozny"
},
"data": "http://geoportal95.ru:6080/arcgis/rest/services/%D0%90%D0%B4%D1%80%D0%B5%D1%81%D0%BD%D1%8B%D0%B9_%D0%BF%D0%BB%D0%B0%D0%BD_zd/MapServer/7",
"type": "ESRI",
"language": "ru",
"conform": {
"number": "Nomer_doma",
"street": "Name_UL",
"city": "г. Грозный",
"district": "Raion",
"postcode": "P_Indeks",
"type": "geojson"
}
} | d9b701e330b0ed7093741e90d55f0c4832013774 | sources/ru/ce/grozny.json | sources/ru/ce/grozny.json | JSON |
<|file_sep|>original/lib/facter/python_version.rb
# Make python versions available as facts
def get_python_version(executable)
if Facter::Util::Resolution.which(executable)
Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/)[1]
end
end
Facter.add("python_version") do
setcode do
get_python_version 'python'
end
end
Facter.add("python2_version") do
setcode do
default_version = get_python_version 'python'
if default_version.nil? or !default_version.start_with?('2')
get_python_version 'python2'
else
default_version
<|file_sep|>current/lib/facter/python_version.rb
# Make python versions available as facts
def get_python_version(executable)
if Facter::Util::Resolution.which(executable)
Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/)[1]
end
end
Facter.add("python_version") do
setcode do
get_python_version 'python'
end
end
Facter.add("python2_version") do
setcode do
default_version = get_python_version 'python'
if default_version.nil? or !default_version.start_with?('2')
get_python_version 'python2'
else
default_version
<|file_sep|>updated/lib/facter/python_version.rb | # Make python versions available as facts
def get_python_version(executable)
if Facter::Util::Resolution.which(executable)
results = Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/)
if results
results[1]
end
end
end
Facter.add("python_version") do
setcode do
get_python_version 'python'
end
end
Facter.add("python2_version") do
setcode do
default_version = get_python_version 'python'
if default_version.nil? or !default_version.start_with?('2') | <|file_sep|>original/lib/facter/python_version.rb
# Make python versions available as facts
def get_python_version(executable)
if Facter::Util::Resolution.which(executable)
Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/)[1]
end
end
Facter.add("python_version") do
setcode do
get_python_version 'python'
end
end
Facter.add("python2_version") do
setcode do
default_version = get_python_version 'python'
if default_version.nil? or !default_version.start_with?('2')
get_python_version 'python2'
else
default_version
<|file_sep|>current/lib/facter/python_version.rb
# Make python versions available as facts
def get_python_version(executable)
if Facter::Util::Resolution.which(executable)
Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/)[1]
end
end
Facter.add("python_version") do
setcode do
get_python_version 'python'
end
end
Facter.add("python2_version") do
setcode do
default_version = get_python_version 'python'
if default_version.nil? or !default_version.start_with?('2')
get_python_version 'python2'
else
default_version
<|file_sep|>updated/lib/facter/python_version.rb
# Make python versions available as facts
def get_python_version(executable)
if Facter::Util::Resolution.which(executable)
results = Facter::Util::Resolution.exec("#{executable} -V 2>&1").match(/^.*(\d+\.\d+\.\d+)$/)
if results
results[1]
end
end
end
Facter.add("python_version") do
setcode do
get_python_version 'python'
end
end
Facter.add("python2_version") do
setcode do
default_version = get_python_version 'python'
if default_version.nil? or !default_version.start_with?('2') | 44728efa617d8b486b27fef33b5b33b52c78137b | lib/facter/python_version.rb | lib/facter/python_version.rb | Ruby |
<|file_sep|>original/test-requirements.txt
PyYAML==3.12
pytest==3.2.1
pytest-asyncio==0.6.0
pytest-cov==2.5.1
docker-py==1.10.6
<|file_sep|>current/test-requirements.txt
PyYAML==3.12
pytest==3.2.1
pytest-asyncio==0.6.0
pytest-cov==2.5.1
docker-py==1.10.6
<|file_sep|>updated/test-requirements.txt | PyYAML==3.12
pytest==3.2.2
pytest-asyncio==0.6.0
pytest-cov==2.5.1
docker-py==1.10.6 | <|file_sep|>original/test-requirements.txt
PyYAML==3.12
pytest==3.2.1
pytest-asyncio==0.6.0
pytest-cov==2.5.1
docker-py==1.10.6
<|file_sep|>current/test-requirements.txt
PyYAML==3.12
pytest==3.2.1
pytest-asyncio==0.6.0
pytest-cov==2.5.1
docker-py==1.10.6
<|file_sep|>updated/test-requirements.txt
PyYAML==3.12
pytest==3.2.2
pytest-asyncio==0.6.0
pytest-cov==2.5.1
docker-py==1.10.6 | 3ac38b9edf1b3489b2bcf6216808a6a0c946144d | test-requirements.txt | test-requirements.txt | Text |
<|file_sep|>original/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
started_by_user=Started by user <a href="{2}/user/{0}">{1}</a>
started_by_anonymous=Started by anonymous user
<|file_sep|>current/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
started_by_user=Started by user <a href="{2}/user/{0}">{1}</a>
started_by_anonymous=Started by anonymous user
<|file_sep|>updated/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties | #
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
started_by_user=Started by user <a href="{2}/user/{0}">{0}</a>
started_by_anonymous=Started by anonymous user | <|file_sep|>original/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
started_by_user=Started by user <a href="{2}/user/{0}">{1}</a>
started_by_anonymous=Started by anonymous user
<|file_sep|>current/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
started_by_user=Started by user <a href="{2}/user/{0}">{1}</a>
started_by_anonymous=Started by anonymous user
<|file_sep|>updated/core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
started_by_user=Started by user <a href="{2}/user/{0}">{0}</a>
started_by_anonymous=Started by anonymous user | 7dbefd7463a9c580b04ff07d4123a1885a08641d | core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties | core/src/main/resources/hudson/model/Cause/UserIdCause/description.properties | INI |
<|file_sep|>djangae/checks.py.diff
original:
from google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration
updated:
<|file_sep|>original/djangae/checks.py
from django.core import checks
from google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration
from djangae.environment import get_application_root
def check_deferred_builtin(app_configs=None, **kwargs):
"""
Check that the deferred builtin is switched off, as it'll override Djangae's deferred handler
"""
app_yaml_path = os.path.join(get_application_root(), "app.yaml")
config = ModuleConfiguration(app_yaml_path)
errors = []
for handler in config.handlers:
if handler.url == '/_ah/queue/deferred':
if handler.script == 'google.appengine.ext.deferred.application':
errors.append(
checks.Warning(
"Deferred builtin is switched on. This overrides Djangae's deferred handler",
<|file_sep|>current/djangae/checks.py
from django.core import checks
from djangae.environment import get_application_root
def check_deferred_builtin(app_configs=None, **kwargs):
"""
Check that the deferred builtin is switched off, as it'll override Djangae's deferred handler
"""
app_yaml_path = os.path.join(get_application_root(), "app.yaml")
config = ModuleConfiguration(app_yaml_path)
errors = []
for handler in config.handlers:
if handler.url == '/_ah/queue/deferred':
if handler.script == 'google.appengine.ext.deferred.application':
errors.append(
checks.Warning(
"Deferred builtin is switched on. This overrides Djangae's deferred handler",
hint='Remove deferred builtin from app.yaml',
<|file_sep|>updated/djangae/checks.py |
from django.core import checks
from djangae.environment import get_application_root
def check_deferred_builtin(app_configs=None, **kwargs):
"""
Check that the deferred builtin is switched off, as it'll override Djangae's deferred handler
"""
from google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration
app_yaml_path = os.path.join(get_application_root(), "app.yaml")
config = ModuleConfiguration(app_yaml_path)
errors = []
for handler in config.handlers:
if handler.url == '/_ah/queue/deferred':
if handler.script == 'google.appengine.ext.deferred.application':
errors.append(
checks.Warning( | <|file_sep|>djangae/checks.py.diff
original:
from google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration
updated:
<|file_sep|>original/djangae/checks.py
from django.core import checks
from google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration
from djangae.environment import get_application_root
def check_deferred_builtin(app_configs=None, **kwargs):
"""
Check that the deferred builtin is switched off, as it'll override Djangae's deferred handler
"""
app_yaml_path = os.path.join(get_application_root(), "app.yaml")
config = ModuleConfiguration(app_yaml_path)
errors = []
for handler in config.handlers:
if handler.url == '/_ah/queue/deferred':
if handler.script == 'google.appengine.ext.deferred.application':
errors.append(
checks.Warning(
"Deferred builtin is switched on. This overrides Djangae's deferred handler",
<|file_sep|>current/djangae/checks.py
from django.core import checks
from djangae.environment import get_application_root
def check_deferred_builtin(app_configs=None, **kwargs):
"""
Check that the deferred builtin is switched off, as it'll override Djangae's deferred handler
"""
app_yaml_path = os.path.join(get_application_root(), "app.yaml")
config = ModuleConfiguration(app_yaml_path)
errors = []
for handler in config.handlers:
if handler.url == '/_ah/queue/deferred':
if handler.script == 'google.appengine.ext.deferred.application':
errors.append(
checks.Warning(
"Deferred builtin is switched on. This overrides Djangae's deferred handler",
hint='Remove deferred builtin from app.yaml',
<|file_sep|>updated/djangae/checks.py
from django.core import checks
from djangae.environment import get_application_root
def check_deferred_builtin(app_configs=None, **kwargs):
"""
Check that the deferred builtin is switched off, as it'll override Djangae's deferred handler
"""
from google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration
app_yaml_path = os.path.join(get_application_root(), "app.yaml")
config = ModuleConfiguration(app_yaml_path)
errors = []
for handler in config.handlers:
if handler.url == '/_ah/queue/deferred':
if handler.script == 'google.appengine.ext.deferred.application':
errors.append(
checks.Warning( | e642716c0815c989b994d436921b0fb1a4f3dfa1 | djangae/checks.py | djangae/checks.py | Python |
<|file_sep|>original/src/server/interface/filters.kmd.json
{
"name": "filters",
"version": "6.6.0",
"kurentoVersion": "^6.1.0",
"code": {
"kmd": {
"java": {
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kms-api-filters"
}
},
"api": {
"java": {
"packageName": "org.kurento.client",
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kurento-client"
},
"js": {
"nodeName": "kurento-client-filters",
"npmDescription": "Filter implementations for kurento media server",
"npmGit": "Kurento/kurento-client-filters-js"
<|file_sep|>current/src/server/interface/filters.kmd.json
{
"name": "filters",
"version": "6.6.0",
"kurentoVersion": "^6.1.0",
"code": {
"kmd": {
"java": {
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kms-api-filters"
}
},
"api": {
"java": {
"packageName": "org.kurento.client",
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kurento-client"
},
"js": {
"nodeName": "kurento-client-filters",
"npmDescription": "Filter implementations for kurento media server",
"npmGit": "Kurento/kurento-client-filters-js"
<|file_sep|>updated/src/server/interface/filters.kmd.json | {
"name": "filters",
"version": "6.6.1-dev",
"kurentoVersion": "^6.1.0",
"code": {
"kmd": {
"java": {
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kms-api-filters"
}
},
"api": {
"java": {
"packageName": "org.kurento.client",
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kurento-client"
},
"js": {
"nodeName": "kurento-client-filters",
"npmDescription": "Filter implementations for kurento media server",
"npmGit": "Kurento/kurento-client-filters-js" | <|file_sep|>original/src/server/interface/filters.kmd.json
{
"name": "filters",
"version": "6.6.0",
"kurentoVersion": "^6.1.0",
"code": {
"kmd": {
"java": {
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kms-api-filters"
}
},
"api": {
"java": {
"packageName": "org.kurento.client",
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kurento-client"
},
"js": {
"nodeName": "kurento-client-filters",
"npmDescription": "Filter implementations for kurento media server",
"npmGit": "Kurento/kurento-client-filters-js"
<|file_sep|>current/src/server/interface/filters.kmd.json
{
"name": "filters",
"version": "6.6.0",
"kurentoVersion": "^6.1.0",
"code": {
"kmd": {
"java": {
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kms-api-filters"
}
},
"api": {
"java": {
"packageName": "org.kurento.client",
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kurento-client"
},
"js": {
"nodeName": "kurento-client-filters",
"npmDescription": "Filter implementations for kurento media server",
"npmGit": "Kurento/kurento-client-filters-js"
<|file_sep|>updated/src/server/interface/filters.kmd.json
{
"name": "filters",
"version": "6.6.1-dev",
"kurentoVersion": "^6.1.0",
"code": {
"kmd": {
"java": {
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kms-api-filters"
}
},
"api": {
"java": {
"packageName": "org.kurento.client",
"mavenGroupId": "org.kurento",
"mavenArtifactId": "kurento-client"
},
"js": {
"nodeName": "kurento-client-filters",
"npmDescription": "Filter implementations for kurento media server",
"npmGit": "Kurento/kurento-client-filters-js" | 9acbf2d334a6aa09db1fd19941846dfd4479bd6f | src/server/interface/filters.kmd.json | src/server/interface/filters.kmd.json | JSON |
<|file_sep|>original/src/render/justin-let-us-understand-functional-thinking.html
<|file_sep|>current/src/render/justin-let-us-understand-functional-thinking.html
<|file_sep|>updated/src/render/justin-let-us-understand-functional-thinking.html | ---
layout: 'speakers_video'
---
<div class="countdown-video">
<iframe width="560" height="315" src="https://www.youtube.com/embed/6aaIJ4CLV9U" frameborder="0"
allowfullscreen></iframe>
</div>
<h1 class="col-lg-10 align-center counter-logo" style="text-transform: none; line-height: 2em"><span>✨ <a
href="https://twitter.com/jspahrsummers" style="color: #fff;">Justin</a> -> Swift? + React? + Łódź (⛵)</span>
</h1>
<h3>You can contact us on</h3>
<h3 style="font-size: 2em">speakers@mobilization.pl</h3> | <|file_sep|>original/src/render/justin-let-us-understand-functional-thinking.html
<|file_sep|>current/src/render/justin-let-us-understand-functional-thinking.html
<|file_sep|>updated/src/render/justin-let-us-understand-functional-thinking.html
---
layout: 'speakers_video'
---
<div class="countdown-video">
<iframe width="560" height="315" src="https://www.youtube.com/embed/6aaIJ4CLV9U" frameborder="0"
allowfullscreen></iframe>
</div>
<h1 class="col-lg-10 align-center counter-logo" style="text-transform: none; line-height: 2em"><span>✨ <a
href="https://twitter.com/jspahrsummers" style="color: #fff;">Justin</a> -> Swift? + React? + Łódź (⛵)</span>
</h1>
<h3>You can contact us on</h3>
<h3 style="font-size: 2em">speakers@mobilization.pl</h3> | ad53523473918d5d773ad974b84161cfb21dde53 | src/render/justin-let-us-understand-functional-thinking.html | src/render/justin-let-us-understand-functional-thinking.html | HTML |
<|file_sep|>mesoblog/models.py.diff
original:
updated:
import random
import re
import string
<|file_sep|>mesoblog/models.py.diff
original:
updated:
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Category.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
super(Category, self).save()
<|file_sep|>mesoblog/models.py.diff
original:
updated:
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Article.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
<|file_sep|>original/mesoblog/models.py
name = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
def __str__(self):
return self.name+" ["+str(self.id)+"]"
# Article model represents one article in the blog.
class Article(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
contents = models.TextField()
date_published = models.DateTimeField()
published = models.BooleanField()
primary_category = models.ForeignKey(Category, related_name='+')
categories = models.ManyToManyField(Category)
def __str__(self):
return self.title+" ["+str(self.id)+"]"
<|file_sep|>current/mesoblog/models.py
categories = models.ManyToManyField(Category)
def __str__(self):
return self.title+" ["+str(self.id)+"]"
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Article.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
<|file_sep|>updated/mesoblog/models.py | return self.title+" ["+str(self.id)+"]"
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Article.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
super(Category, self).save()
| <|file_sep|>mesoblog/models.py.diff
original:
updated:
import random
import re
import string
<|file_sep|>mesoblog/models.py.diff
original:
updated:
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Category.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
super(Category, self).save()
<|file_sep|>mesoblog/models.py.diff
original:
updated:
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Article.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
<|file_sep|>original/mesoblog/models.py
name = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
def __str__(self):
return self.name+" ["+str(self.id)+"]"
# Article model represents one article in the blog.
class Article(models.Model):
title = models.CharField(max_length=255)
slug = models.SlugField(max_length=255)
contents = models.TextField()
date_published = models.DateTimeField()
published = models.BooleanField()
primary_category = models.ForeignKey(Category, related_name='+')
categories = models.ManyToManyField(Category)
def __str__(self):
return self.title+" ["+str(self.id)+"]"
<|file_sep|>current/mesoblog/models.py
categories = models.ManyToManyField(Category)
def __str__(self):
return self.title+" ["+str(self.id)+"]"
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Article.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
<|file_sep|>updated/mesoblog/models.py
return self.title+" ["+str(self.id)+"]"
def save(self):
# Make sure that the slug is:
# a) not just integers so it doen't look like an ID
# b) unique amongst all other objects of that type
# a):
if re.match(r'^\d+$', self.slug):
self.slug += "_"
# b):
try:
other = Article.objects.get(slug=self.slug)
self.slug += "_"
self.slug += ''.join(random.sample(string.ascii_lowercase + string.digits, 8))
except self.DoesNotExist:
pass
super(Category, self).save()
| d79fde9a1bceea2ea8bc9aa8d14e5ec66a44600d | mesoblog/models.py | mesoblog/models.py | Python |
<|file_sep|>original/README.md
# hackathon-against-polarization
Hackathon against polarization of social groups
<|file_sep|>current/README.md
# hackathon-against-polarization
Hackathon against polarization of social groups
<|file_sep|>updated/README.md | # hackathon-against-polarization
## Why?
Increasing polarisation of societies across the world, leading to tunnel vision
Examples:
* Rise of populism (Donald Trump, Marine LePen, Geert Wilders, …)
* Terrorism
* Police shootings
* …
## What?
### Goals
Contribute with meaningful and impactful ideas on how to bring social groups closer together.
Go beyond “#prayInsertTragicEventHere”, “#jeSuisX” or an emoji in Facebook
### What it is not
No sit down & “cry-along”
Idea generation for military purposes
### Format
TEDx style conference with relevant guest speakers | <|file_sep|>original/README.md
# hackathon-against-polarization
Hackathon against polarization of social groups
<|file_sep|>current/README.md
# hackathon-against-polarization
Hackathon against polarization of social groups
<|file_sep|>updated/README.md
# hackathon-against-polarization
## Why?
Increasing polarisation of societies across the world, leading to tunnel vision
Examples:
* Rise of populism (Donald Trump, Marine LePen, Geert Wilders, …)
* Terrorism
* Police shootings
* …
## What?
### Goals
Contribute with meaningful and impactful ideas on how to bring social groups closer together.
Go beyond “#prayInsertTragicEventHere”, “#jeSuisX” or an emoji in Facebook
### What it is not
No sit down & “cry-along”
Idea generation for military purposes
### Format
TEDx style conference with relevant guest speakers | 33ef318bc466f4e860d14feeac4abb113182e2ad | README.md | README.md | Markdown |
<|file_sep|>docs/index.rst.diff
original:
updated:
:annotation: : float
<|file_sep|>docs/index.rst.diff
original:
The X coordinate of the vector
updated:
The X coordinate of the vector
<|file_sep|>docs/index.rst.diff
original:
updated:
:annotation: : float
<|file_sep|>original/docs/index.rst
.. autoclass:: ppb_vector.Vector2
:members:
:special-members:
:exclude-members: __weakref__, __init__, scale
.. autoattribute:: x
The X coordinate of the vector
.. autoattribute:: y
The Y coordinate of the vector
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<|file_sep|>current/docs/index.rst
:members:
:special-members:
:exclude-members: __weakref__, __init__, scale
.. autoattribute:: x
:annotation: : float
The X coordinate of the vector
.. autoattribute:: y
:annotation: : float
The Y coordinate of the vector
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<|file_sep|>updated/docs/index.rst | :members:
:special-members:
:exclude-members: __weakref__, __init__, scale
.. autoattribute:: x
:annotation: : float
The X coordinate of the vector
.. autoattribute:: y
:annotation: : float
The Y coordinate of the vector
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search` | <|file_sep|>docs/index.rst.diff
original:
updated:
:annotation: : float
<|file_sep|>docs/index.rst.diff
original:
The X coordinate of the vector
updated:
The X coordinate of the vector
<|file_sep|>docs/index.rst.diff
original:
updated:
:annotation: : float
<|file_sep|>original/docs/index.rst
.. autoclass:: ppb_vector.Vector2
:members:
:special-members:
:exclude-members: __weakref__, __init__, scale
.. autoattribute:: x
The X coordinate of the vector
.. autoattribute:: y
The Y coordinate of the vector
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<|file_sep|>current/docs/index.rst
:members:
:special-members:
:exclude-members: __weakref__, __init__, scale
.. autoattribute:: x
:annotation: : float
The X coordinate of the vector
.. autoattribute:: y
:annotation: : float
The Y coordinate of the vector
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<|file_sep|>updated/docs/index.rst
:members:
:special-members:
:exclude-members: __weakref__, __init__, scale
.. autoattribute:: x
:annotation: : float
The X coordinate of the vector
.. autoattribute:: y
:annotation: : float
The Y coordinate of the vector
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search` | 739d5af2d86b71d68fea56c2e8f89c82097d78ff | docs/index.rst | docs/index.rst | reStructuredText |
<|file_sep|>original/scripts/common.py
if 'CATMAID_CONFIGURATION' in os.environ:
path = os.environ['CATMAID_CONFIGURATION']
else:
path = os.path.join(os.environ['HOME'], '.catmaid-db')
try:
conf = yaml.load(open(path))
except:
print >> sys.stderr, '''Your %s file should look like:
host: localhost
database: catmaid
username: catmaid_user
password: password_of_your_catmaid_user''' % (path,)
sys.exit(1)
db_connection = psycopg2.connect(host=conf['host'],
database=conf['database'],
user=conf['username'],
password=conf['password'])
<|file_sep|>current/scripts/common.py
if 'CATMAID_CONFIGURATION' in os.environ:
path = os.environ['CATMAID_CONFIGURATION']
else:
path = os.path.join(os.environ['HOME'], '.catmaid-db')
try:
conf = yaml.load(open(path))
except:
print >> sys.stderr, '''Your %s file should look like:
host: localhost
database: catmaid
username: catmaid_user
password: password_of_your_catmaid_user''' % (path,)
sys.exit(1)
db_connection = psycopg2.connect(host=conf['host'],
database=conf['database'],
user=conf['username'],
password=conf['password'])
<|file_sep|>updated/scripts/common.py | try:
conf = yaml.load(open(path))
except:
print >> sys.stderr, '''Your %s file should look like:
host: localhost
database: catmaid
username: catmaid_user
password: password_of_your_catmaid_user''' % (path,)
sys.exit(1)
# Make a variable for each of these so that they can be imported:
db_host = conf['host']
db_database = conf['database']
db_username = conf['username']
db_password = conf['password']
db_connection = psycopg2.connect(host=db_host,
database=db_database,
user=db_username,
password=db_password) | <|file_sep|>original/scripts/common.py
if 'CATMAID_CONFIGURATION' in os.environ:
path = os.environ['CATMAID_CONFIGURATION']
else:
path = os.path.join(os.environ['HOME'], '.catmaid-db')
try:
conf = yaml.load(open(path))
except:
print >> sys.stderr, '''Your %s file should look like:
host: localhost
database: catmaid
username: catmaid_user
password: password_of_your_catmaid_user''' % (path,)
sys.exit(1)
db_connection = psycopg2.connect(host=conf['host'],
database=conf['database'],
user=conf['username'],
password=conf['password'])
<|file_sep|>current/scripts/common.py
if 'CATMAID_CONFIGURATION' in os.environ:
path = os.environ['CATMAID_CONFIGURATION']
else:
path = os.path.join(os.environ['HOME'], '.catmaid-db')
try:
conf = yaml.load(open(path))
except:
print >> sys.stderr, '''Your %s file should look like:
host: localhost
database: catmaid
username: catmaid_user
password: password_of_your_catmaid_user''' % (path,)
sys.exit(1)
db_connection = psycopg2.connect(host=conf['host'],
database=conf['database'],
user=conf['username'],
password=conf['password'])
<|file_sep|>updated/scripts/common.py
try:
conf = yaml.load(open(path))
except:
print >> sys.stderr, '''Your %s file should look like:
host: localhost
database: catmaid
username: catmaid_user
password: password_of_your_catmaid_user''' % (path,)
sys.exit(1)
# Make a variable for each of these so that they can be imported:
db_host = conf['host']
db_database = conf['database']
db_username = conf['username']
db_password = conf['password']
db_connection = psycopg2.connect(host=db_host,
database=db_database,
user=db_username,
password=db_password) | 9ca0549ceff05f9f8a391c8ec2b685af48c0a5a8 | scripts/common.py | scripts/common.py | Python |
<|file_sep|>app/views/renalware/mdm/prescriptions/_table.html.slim.diff
original:
th.col-width-small= t(".drug_type")
updated:
- if local_assigns[:show_drug_types]
th.col-width-small= t(".drug_type")
<|file_sep|>original/app/views/renalware/mdm/prescriptions/_table.html.slim
th.col-width-tiny= t(".route")
- if local_assigns[:show_administer_on_hd]
th.col-width-small= t(".administer_on_hd")
th.col-width-tiny=t(".provider")
th.col-width-date= t(".started_on")
- if local_assigns[:show_terminated_on]
th.col-width-date= t(".terminated_on")
tbody
- prescriptions.each do |prescription|
tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
td= prescription.drug.name
td= prescription.drug_type_names
td= prescription.dose
td= prescription.frequency
td= prescription.route_code
- if local_assigns[:show_administer_on_hd]
td= prescription.administer_on_hd?
td= prescription.provider
td= I18n.l prescription.prescribed_on
- if local_assigns[:show_terminated_on]
td= l(prescription.terminated_on)
<|file_sep|>current/app/views/renalware/mdm/prescriptions/_table.html.slim
th.col-width-tiny= t(".route")
- if local_assigns[:show_administer_on_hd]
th.col-width-small= t(".administer_on_hd")
th.col-width-tiny=t(".provider")
th.col-width-date= t(".started_on")
- if local_assigns[:show_terminated_on]
th.col-width-date= t(".terminated_on")
tbody
- prescriptions.each do |prescription|
tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
td= prescription.drug.name
td= prescription.drug_type_names
td= prescription.dose
td= prescription.frequency
td= prescription.route_code
- if local_assigns[:show_administer_on_hd]
td= prescription.administer_on_hd?
td= prescription.provider
td= I18n.l prescription.prescribed_on
- if local_assigns[:show_terminated_on]
td= l(prescription.terminated_on)
<|file_sep|>updated/app/views/renalware/mdm/prescriptions/_table.html.slim | - if local_assigns[:show_administer_on_hd]
th.col-width-small= t(".administer_on_hd")
th.col-width-tiny=t(".provider")
th.col-width-date= t(".started_on")
- if local_assigns[:show_terminated_on]
th.col-width-date= t(".terminated_on")
tbody
- prescriptions.each do |prescription|
tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
td= prescription.drug.name
- if local_assigns[:show_drug_types]
td= prescription.drug_type_names
td= prescription.dose
td= prescription.frequency
td= prescription.route_code
- if local_assigns[:show_administer_on_hd]
td= prescription.administer_on_hd?
td= prescription.provider
td= I18n.l prescription.prescribed_on
- if local_assigns[:show_terminated_on]
td= l(prescription.terminated_on) | <|file_sep|>app/views/renalware/mdm/prescriptions/_table.html.slim.diff
original:
th.col-width-small= t(".drug_type")
updated:
- if local_assigns[:show_drug_types]
th.col-width-small= t(".drug_type")
<|file_sep|>original/app/views/renalware/mdm/prescriptions/_table.html.slim
th.col-width-tiny= t(".route")
- if local_assigns[:show_administer_on_hd]
th.col-width-small= t(".administer_on_hd")
th.col-width-tiny=t(".provider")
th.col-width-date= t(".started_on")
- if local_assigns[:show_terminated_on]
th.col-width-date= t(".terminated_on")
tbody
- prescriptions.each do |prescription|
tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
td= prescription.drug.name
td= prescription.drug_type_names
td= prescription.dose
td= prescription.frequency
td= prescription.route_code
- if local_assigns[:show_administer_on_hd]
td= prescription.administer_on_hd?
td= prescription.provider
td= I18n.l prescription.prescribed_on
- if local_assigns[:show_terminated_on]
td= l(prescription.terminated_on)
<|file_sep|>current/app/views/renalware/mdm/prescriptions/_table.html.slim
th.col-width-tiny= t(".route")
- if local_assigns[:show_administer_on_hd]
th.col-width-small= t(".administer_on_hd")
th.col-width-tiny=t(".provider")
th.col-width-date= t(".started_on")
- if local_assigns[:show_terminated_on]
th.col-width-date= t(".terminated_on")
tbody
- prescriptions.each do |prescription|
tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
td= prescription.drug.name
td= prescription.drug_type_names
td= prescription.dose
td= prescription.frequency
td= prescription.route_code
- if local_assigns[:show_administer_on_hd]
td= prescription.administer_on_hd?
td= prescription.provider
td= I18n.l prescription.prescribed_on
- if local_assigns[:show_terminated_on]
td= l(prescription.terminated_on)
<|file_sep|>updated/app/views/renalware/mdm/prescriptions/_table.html.slim
- if local_assigns[:show_administer_on_hd]
th.col-width-small= t(".administer_on_hd")
th.col-width-tiny=t(".provider")
th.col-width-date= t(".started_on")
- if local_assigns[:show_terminated_on]
th.col-width-date= t(".terminated_on")
tbody
- prescriptions.each do |prescription|
tr class="drug-#{drug_types_colour_tag(prescription.drug_types)}"
td= prescription.drug.name
- if local_assigns[:show_drug_types]
td= prescription.drug_type_names
td= prescription.dose
td= prescription.frequency
td= prescription.route_code
- if local_assigns[:show_administer_on_hd]
td= prescription.administer_on_hd?
td= prescription.provider
td= I18n.l prescription.prescribed_on
- if local_assigns[:show_terminated_on]
td= l(prescription.terminated_on) | 15156140bca6083814e0a9aea2bc1e8569db7410 | app/views/renalware/mdm/prescriptions/_table.html.slim | app/views/renalware/mdm/prescriptions/_table.html.slim | Slim |
<|file_sep|>original/bindi.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/bindi/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Shannon Skipper']
gem.email = ['shannonskipper@gmail.com']
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
gem.homepage = 'https://github.com/Havenwood/bindi'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'bindi'
gem.require_paths = ['lib']
gem.version = Bindi::VERSION
gem.add_development_dependency 'ohm'
gem.add_runtime_dependency 'ohm'
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem'
<|file_sep|>current/bindi.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/bindi/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Shannon Skipper']
gem.email = ['shannonskipper@gmail.com']
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
gem.homepage = 'https://github.com/Havenwood/bindi'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'bindi'
gem.require_paths = ['lib']
gem.version = Bindi::VERSION
gem.add_development_dependency 'ohm'
gem.add_runtime_dependency 'ohm'
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem'
<|file_sep|>updated/bindi.gemspec | # -*- encoding: utf-8 -*-
require File.expand_path('../lib/bindi/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Shannon Skipper']
gem.email = ['shannonskipper@gmail.com']
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
gem.homepage = 'https://github.com/Havenwood/bindi'
gem.license = 'MIT'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'bindi'
gem.require_paths = ['lib']
gem.version = Bindi::VERSION
gem.add_development_dependency 'ohm'
gem.add_runtime_dependency 'ohm'
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem' | <|file_sep|>original/bindi.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/bindi/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Shannon Skipper']
gem.email = ['shannonskipper@gmail.com']
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
gem.homepage = 'https://github.com/Havenwood/bindi'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'bindi'
gem.require_paths = ['lib']
gem.version = Bindi::VERSION
gem.add_development_dependency 'ohm'
gem.add_runtime_dependency 'ohm'
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem'
<|file_sep|>current/bindi.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/bindi/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Shannon Skipper']
gem.email = ['shannonskipper@gmail.com']
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
gem.homepage = 'https://github.com/Havenwood/bindi'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'bindi'
gem.require_paths = ['lib']
gem.version = Bindi::VERSION
gem.add_development_dependency 'ohm'
gem.add_runtime_dependency 'ohm'
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem'
<|file_sep|>updated/bindi.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/bindi/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Shannon Skipper']
gem.email = ['shannonskipper@gmail.com']
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
gem.homepage = 'https://github.com/Havenwood/bindi'
gem.license = 'MIT'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = 'bindi'
gem.require_paths = ['lib']
gem.version = Bindi::VERSION
gem.add_development_dependency 'ohm'
gem.add_runtime_dependency 'ohm'
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem' | 7d9d09c311ea94492fe27cbc8a626f9e31084c7c | bindi.gemspec | bindi.gemspec | Ruby |
<|file_sep|>original/package.json
"yeoman-generator",
"latex",
"tex"
],
"dependencies": {
"html-wiring": "^2.0.0",
"lodash": "^4.11.1",
"mkdirp": "^1.0.3",
"yeoman-generator": "^5.2.0",
"yosay": "^2.0.0"
},
"devDependencies": {
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.8.0",
"fs-extra": "^10.0.0",
"mocha": "*",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^6.0.0"
}
}
<|file_sep|>current/package.json
"yeoman-generator",
"latex",
"tex"
],
"dependencies": {
"html-wiring": "^2.0.0",
"lodash": "^4.11.1",
"mkdirp": "^1.0.3",
"yeoman-generator": "^5.2.0",
"yosay": "^2.0.0"
},
"devDependencies": {
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.8.0",
"fs-extra": "^10.0.0",
"mocha": "*",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^6.0.0"
}
}
<|file_sep|>updated/package.json | "yeoman-generator",
"latex",
"tex"
],
"dependencies": {
"html-wiring": "^2.0.0",
"lodash": "^4.11.1",
"mkdirp": "^1.0.3",
"yeoman-generator": "^5.2.0",
"yosay": "^2.0.0"
},
"devDependencies": {
"eslint": "^8.3.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.8.0",
"fs-extra": "^10.0.0",
"mocha": "*",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^6.0.0"
}
} | <|file_sep|>original/package.json
"yeoman-generator",
"latex",
"tex"
],
"dependencies": {
"html-wiring": "^2.0.0",
"lodash": "^4.11.1",
"mkdirp": "^1.0.3",
"yeoman-generator": "^5.2.0",
"yosay": "^2.0.0"
},
"devDependencies": {
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.8.0",
"fs-extra": "^10.0.0",
"mocha": "*",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^6.0.0"
}
}
<|file_sep|>current/package.json
"yeoman-generator",
"latex",
"tex"
],
"dependencies": {
"html-wiring": "^2.0.0",
"lodash": "^4.11.1",
"mkdirp": "^1.0.3",
"yeoman-generator": "^5.2.0",
"yosay": "^2.0.0"
},
"devDependencies": {
"eslint": "^7.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.8.0",
"fs-extra": "^10.0.0",
"mocha": "*",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^6.0.0"
}
}
<|file_sep|>updated/package.json
"yeoman-generator",
"latex",
"tex"
],
"dependencies": {
"html-wiring": "^2.0.0",
"lodash": "^4.11.1",
"mkdirp": "^1.0.3",
"yeoman-generator": "^5.2.0",
"yosay": "^2.0.0"
},
"devDependencies": {
"eslint": "^8.3.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.8.0",
"fs-extra": "^10.0.0",
"mocha": "*",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^6.0.0"
}
} | 077baae23e678050b56b6157de5aabddb039fb8e | package.json | package.json | JSON |
<|file_sep|>tasks/git_shell.yml.diff
original:
- user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
updated:
<|file_sep|>tasks/git_shell.yml.diff
original:
- file: name={{ git_home }}/git-shell-commands state=directory
updated:
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
<|file_sep|>tasks/git_shell.yml.diff
original:
- copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
updated:
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy commands
copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
<|file_sep|>original/tasks/git_shell.yml
- set_fact: git_home=/srv/git
- user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- file: name={{ git_home }}/git-shell-commands state=directory
- copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
- list
- help
- file: state=link dest={{ git_home }}/{{ item }}.git src={{ git_repositories_dir }}/{{ item }}
with_items:
- public
- private
<|file_sep|>current/tasks/git_shell.yml
- set_fact: git_home=/srv/git
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy commands
copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
- list
- help
- file: state=link dest={{ git_home }}/{{ item }}.git src={{ git_repositories_dir }}/{{ item }}
with_items:
- public
- private
<|file_sep|>updated/tasks/git_shell.yml |
- set_fact: git_home=/srv/git
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy commands
copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
- list
- help
- name: Link repositories
file: state=link dest={{ git_home }}/{{ item }}.git src={{ git_repositories_dir }}/{{ item }}
with_items:
- public
- private | <|file_sep|>tasks/git_shell.yml.diff
original:
- user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
updated:
<|file_sep|>tasks/git_shell.yml.diff
original:
- file: name={{ git_home }}/git-shell-commands state=directory
updated:
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
<|file_sep|>tasks/git_shell.yml.diff
original:
- copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
updated:
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy commands
copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
<|file_sep|>original/tasks/git_shell.yml
- set_fact: git_home=/srv/git
- user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- file: name={{ git_home }}/git-shell-commands state=directory
- copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
- list
- help
- file: state=link dest={{ git_home }}/{{ item }}.git src={{ git_repositories_dir }}/{{ item }}
with_items:
- public
- private
<|file_sep|>current/tasks/git_shell.yml
- set_fact: git_home=/srv/git
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy commands
copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
- list
- help
- file: state=link dest={{ git_home }}/{{ item }}.git src={{ git_repositories_dir }}/{{ item }}
with_items:
- public
- private
<|file_sep|>updated/tasks/git_shell.yml
- set_fact: git_home=/srv/git
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy commands
copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
- list
- help
- name: Link repositories
file: state=link dest={{ git_home }}/{{ item }}.git src={{ git_repositories_dir }}/{{ item }}
with_items:
- public
- private | 903f2504a00501b592e0c99dbdfa5e177638aea1 | tasks/git_shell.yml | tasks/git_shell.yml | YAML |
<|file_sep|>original/web/helpers/validation.ex
defmodule Appointments.Validators do
import Ecto.Changeset
def validate_uri(changeset, column) do
error_message = "Please enter a valid URL, e.g. http://www.cnn.com."
value = get_field(changeset, column)
case value do
nil -> changeset
_ ->
case is_valid?(value) do
false -> add_error(changeset, column, error_message)
true -> changeset
end
end
end
defp is_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: nil} -> false
<|file_sep|>current/web/helpers/validation.ex
defmodule Appointments.Validators do
import Ecto.Changeset
def validate_uri(changeset, column) do
error_message = "Please enter a valid URL, e.g. http://www.cnn.com."
value = get_field(changeset, column)
case value do
nil -> changeset
_ ->
case is_valid?(value) do
false -> add_error(changeset, column, error_message)
true -> changeset
end
end
end
defp is_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: nil} -> false
<|file_sep|>updated/web/helpers/validation.ex | defmodule Appointments.Validators do
import Ecto.Changeset
def validate_uri(changeset, column) do
error_message = "Please enter a valid URL, e.g. http://www.cnn.com."
value = get_field(changeset, column)
if value != nil && !is_valid?(value) do
add_error(changeset, column, error_message)
else
changeset
end
end
defp is_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: nil} -> false
%URI{host: nil} -> false
_ -> true
end | <|file_sep|>original/web/helpers/validation.ex
defmodule Appointments.Validators do
import Ecto.Changeset
def validate_uri(changeset, column) do
error_message = "Please enter a valid URL, e.g. http://www.cnn.com."
value = get_field(changeset, column)
case value do
nil -> changeset
_ ->
case is_valid?(value) do
false -> add_error(changeset, column, error_message)
true -> changeset
end
end
end
defp is_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: nil} -> false
<|file_sep|>current/web/helpers/validation.ex
defmodule Appointments.Validators do
import Ecto.Changeset
def validate_uri(changeset, column) do
error_message = "Please enter a valid URL, e.g. http://www.cnn.com."
value = get_field(changeset, column)
case value do
nil -> changeset
_ ->
case is_valid?(value) do
false -> add_error(changeset, column, error_message)
true -> changeset
end
end
end
defp is_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: nil} -> false
<|file_sep|>updated/web/helpers/validation.ex
defmodule Appointments.Validators do
import Ecto.Changeset
def validate_uri(changeset, column) do
error_message = "Please enter a valid URL, e.g. http://www.cnn.com."
value = get_field(changeset, column)
if value != nil && !is_valid?(value) do
add_error(changeset, column, error_message)
else
changeset
end
end
defp is_valid?(str) do
uri = URI.parse(str)
case uri do
%URI{scheme: nil} -> false
%URI{host: nil} -> false
_ -> true
end | 111b4e16c4517cb608b28d5761722bfcd3a8526a | web/helpers/validation.ex | web/helpers/validation.ex | Elixir |
<|file_sep|>original/BookShelf.Mobile/views/BookAdd.js
BookShelf.BookAdd = function(params) {
return $.extend(BookShelf.BookForm(params), {
resetBook: function() {
this.book.title("");
this.book.author("");
},
save: function() {
BookShelf.db.books.add(this.getBook());
BookShelf.app.back();
},
cancel: function() {
BookShelf.app.back();
},
viewShowing: function() {
this.resetBook();
}
<|file_sep|>current/BookShelf.Mobile/views/BookAdd.js
BookShelf.BookAdd = function(params) {
return $.extend(BookShelf.BookForm(params), {
resetBook: function() {
this.book.title("");
this.book.author("");
},
save: function() {
BookShelf.db.books.add(this.getBook());
BookShelf.app.back();
},
cancel: function() {
BookShelf.app.back();
},
viewShowing: function() {
this.resetBook();
}
<|file_sep|>updated/BookShelf.Mobile/views/BookAdd.js | BookShelf.BookAdd = function(params) {
return $.extend(BookShelf.BookForm(params), {
resetBook: function() {
this.book.title("");
this.book.author("");
this.book.status(params.status);
this.book.startDate(new Date());
this.book.finishDate(new Date());
},
save: function() {
BookShelf.db.books.add(this.getBook());
BookShelf.app.back();
},
cancel: function() {
BookShelf.app.back();
},
| <|file_sep|>original/BookShelf.Mobile/views/BookAdd.js
BookShelf.BookAdd = function(params) {
return $.extend(BookShelf.BookForm(params), {
resetBook: function() {
this.book.title("");
this.book.author("");
},
save: function() {
BookShelf.db.books.add(this.getBook());
BookShelf.app.back();
},
cancel: function() {
BookShelf.app.back();
},
viewShowing: function() {
this.resetBook();
}
<|file_sep|>current/BookShelf.Mobile/views/BookAdd.js
BookShelf.BookAdd = function(params) {
return $.extend(BookShelf.BookForm(params), {
resetBook: function() {
this.book.title("");
this.book.author("");
},
save: function() {
BookShelf.db.books.add(this.getBook());
BookShelf.app.back();
},
cancel: function() {
BookShelf.app.back();
},
viewShowing: function() {
this.resetBook();
}
<|file_sep|>updated/BookShelf.Mobile/views/BookAdd.js
BookShelf.BookAdd = function(params) {
return $.extend(BookShelf.BookForm(params), {
resetBook: function() {
this.book.title("");
this.book.author("");
this.book.status(params.status);
this.book.startDate(new Date());
this.book.finishDate(new Date());
},
save: function() {
BookShelf.db.books.add(this.getBook());
BookShelf.app.back();
},
cancel: function() {
BookShelf.app.back();
},
| 73e797b3b9765455d66cdc7ee9edb67d2e321689 | BookShelf.Mobile/views/BookAdd.js | BookShelf.Mobile/views/BookAdd.js | JavaScript |
<|file_sep|>original/README.md
# WordPress Autoload
[](https://travis-ci.org/wpup/autoload)
Simple autoloader that will autoload classes, interfaces or traits with namespace prefix
# Install
```
$ composer require frozzare/wp-autoload
```
## Example
Example of your main php file.
```php
require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );
```
<|file_sep|>current/README.md
# WordPress Autoload
[](https://travis-ci.org/wpup/autoload)
Simple autoloader that will autoload classes, interfaces or traits with namespace prefix
# Install
```
$ composer require frozzare/wp-autoload
```
## Example
Example of your main php file.
```php
require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );
```
<|file_sep|>updated/README.md | # WordPress Autoload
[](https://travis-ci.org/wpup/autoload)
Simple autoloader that will autoload classes, interfaces or traits with namespace prefix
# Install
```
composer require frozzare/wp-autoload
```
## Example
Example of your main php file.
```php
require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );
```
| <|file_sep|>original/README.md
# WordPress Autoload
[](https://travis-ci.org/wpup/autoload)
Simple autoloader that will autoload classes, interfaces or traits with namespace prefix
# Install
```
$ composer require frozzare/wp-autoload
```
## Example
Example of your main php file.
```php
require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );
```
<|file_sep|>current/README.md
# WordPress Autoload
[](https://travis-ci.org/wpup/autoload)
Simple autoloader that will autoload classes, interfaces or traits with namespace prefix
# Install
```
$ composer require frozzare/wp-autoload
```
## Example
Example of your main php file.
```php
require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );
```
<|file_sep|>updated/README.md
# WordPress Autoload
[](https://travis-ci.org/wpup/autoload)
Simple autoloader that will autoload classes, interfaces or traits with namespace prefix
# Install
```
composer require frozzare/wp-autoload
```
## Example
Example of your main php file.
```php
require 'vendor/autoload.php';
register_wp_autoload( 'Example\\', __DIR__ . '/src' );
```
| 337902ba7849aa339fb588d62d0fe93f0caca907 | README.md | README.md | Markdown |
<|file_sep|>original/src/components/Footer/Footer.js
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
<a href="https://teamdigitale.governo.it">Team Digitale</a> © 2017 Team Digitale.
<span className="float-right">Powered by <a href="https://teamdigitale.governo.it">Team Digitale</a></span>
</footer>
)
}
}
export default Footer;
<|file_sep|>current/src/components/Footer/Footer.js
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
<a href="https://teamdigitale.governo.it">Team Digitale</a> © 2017 Team Digitale.
<span className="float-right">Powered by <a href="https://teamdigitale.governo.it">Team Digitale</a></span>
</footer>
)
}
}
export default Footer;
<|file_sep|>updated/src/components/Footer/Footer.js | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
<a href="https://teamdigitale.governo.it">Team Digitale</a> © 2017-2018 Team Digitale.
<span className="float-right">Powered by <a href="https://teamdigitale.governo.it">Team Digitale</a></span>
</footer>
)
}
}
export default Footer; | <|file_sep|>original/src/components/Footer/Footer.js
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
<a href="https://teamdigitale.governo.it">Team Digitale</a> © 2017 Team Digitale.
<span className="float-right">Powered by <a href="https://teamdigitale.governo.it">Team Digitale</a></span>
</footer>
)
}
}
export default Footer;
<|file_sep|>current/src/components/Footer/Footer.js
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
<a href="https://teamdigitale.governo.it">Team Digitale</a> © 2017 Team Digitale.
<span className="float-right">Powered by <a href="https://teamdigitale.governo.it">Team Digitale</a></span>
</footer>
)
}
}
export default Footer;
<|file_sep|>updated/src/components/Footer/Footer.js
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
<a href="https://teamdigitale.governo.it">Team Digitale</a> © 2017-2018 Team Digitale.
<span className="float-right">Powered by <a href="https://teamdigitale.governo.it">Team Digitale</a></span>
</footer>
)
}
}
export default Footer; | 04228d04fc48d4901ae3a10e8e8c520795856cbd | src/components/Footer/Footer.js | src/components/Footer/Footer.js | JavaScript |
<|file_sep|>original/root/forms/dashboard/coverage_changes.yml
auto_fieldset: 1
elements:
- type: Hidden
name: compare_media_sets
id: compare_media_sets
default: false
- type: Hidden
name: show_results
- type: Select
name: dashboard_topics_id1
id: dashboard_topics_id1ssfdsdf
label: topic 1
- type: Select
name: dashboard_topics_id2
label: topic 2
<|file_sep|>current/root/forms/dashboard/coverage_changes.yml
auto_fieldset: 1
elements:
- type: Hidden
name: compare_media_sets
id: compare_media_sets
default: false
- type: Hidden
name: show_results
- type: Select
name: dashboard_topics_id1
id: dashboard_topics_id1ssfdsdf
label: topic 1
- type: Select
name: dashboard_topics_id2
label: topic 2
<|file_sep|>updated/root/forms/dashboard/coverage_changes.yml | auto_fieldset: 1
method: get
elements:
- type: Hidden
name: compare_media_sets
id: compare_media_sets
default: false
- type: Hidden
name: show_results
- type: Select
name: dashboard_topics_id1
id: dashboard_topics_id1ssfdsdf
label: topic 1
- type: Select
name: dashboard_topics_id2
label: topic 2 | <|file_sep|>original/root/forms/dashboard/coverage_changes.yml
auto_fieldset: 1
elements:
- type: Hidden
name: compare_media_sets
id: compare_media_sets
default: false
- type: Hidden
name: show_results
- type: Select
name: dashboard_topics_id1
id: dashboard_topics_id1ssfdsdf
label: topic 1
- type: Select
name: dashboard_topics_id2
label: topic 2
<|file_sep|>current/root/forms/dashboard/coverage_changes.yml
auto_fieldset: 1
elements:
- type: Hidden
name: compare_media_sets
id: compare_media_sets
default: false
- type: Hidden
name: show_results
- type: Select
name: dashboard_topics_id1
id: dashboard_topics_id1ssfdsdf
label: topic 1
- type: Select
name: dashboard_topics_id2
label: topic 2
<|file_sep|>updated/root/forms/dashboard/coverage_changes.yml
auto_fieldset: 1
method: get
elements:
- type: Hidden
name: compare_media_sets
id: compare_media_sets
default: false
- type: Hidden
name: show_results
- type: Select
name: dashboard_topics_id1
id: dashboard_topics_id1ssfdsdf
label: topic 1
- type: Select
name: dashboard_topics_id2
label: topic 2 | 23de1b7024933f0ed483665208b57a851e3ae200 | root/forms/dashboard/coverage_changes.yml | root/forms/dashboard/coverage_changes.yml | YAML |
<|file_sep|>original/Cargo.toml
[package]
name = "dotenv"
version = "0.4.0"
authors = [
"Santiago Lapresta <santiago.lapresta@gmail.com>",
"Craig Hills <chills@gmail.com>",
"Mike Piccolo <mfpiccolo@gmail.com>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
license = "MIT"
homepage = "https://github.com/slapresta/rust-dotenv"
repository = "https://github.com/slapresta/rust-dotenv"
description = "A `dotenv` implementation for Rust"
[dependencies]
regex = "*"
<|file_sep|>current/Cargo.toml
[package]
name = "dotenv"
version = "0.4.0"
authors = [
"Santiago Lapresta <santiago.lapresta@gmail.com>",
"Craig Hills <chills@gmail.com>",
"Mike Piccolo <mfpiccolo@gmail.com>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
license = "MIT"
homepage = "https://github.com/slapresta/rust-dotenv"
repository = "https://github.com/slapresta/rust-dotenv"
description = "A `dotenv` implementation for Rust"
[dependencies]
regex = "*"
<|file_sep|>updated/Cargo.toml | [package]
name = "dotenv"
version = "0.4.0"
authors = [
"Santiago Lapresta <santiago.lapresta@gmail.com>",
"Craig Hills <chills@gmail.com>",
"Mike Piccolo <mfpiccolo@gmail.com>",
"Alice Maz <alice@alicemaz.com>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
license = "MIT"
homepage = "https://github.com/slapresta/rust-dotenv"
repository = "https://github.com/slapresta/rust-dotenv"
description = "A `dotenv` implementation for Rust"
[dependencies]
regex = "*" | <|file_sep|>original/Cargo.toml
[package]
name = "dotenv"
version = "0.4.0"
authors = [
"Santiago Lapresta <santiago.lapresta@gmail.com>",
"Craig Hills <chills@gmail.com>",
"Mike Piccolo <mfpiccolo@gmail.com>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
license = "MIT"
homepage = "https://github.com/slapresta/rust-dotenv"
repository = "https://github.com/slapresta/rust-dotenv"
description = "A `dotenv` implementation for Rust"
[dependencies]
regex = "*"
<|file_sep|>current/Cargo.toml
[package]
name = "dotenv"
version = "0.4.0"
authors = [
"Santiago Lapresta <santiago.lapresta@gmail.com>",
"Craig Hills <chills@gmail.com>",
"Mike Piccolo <mfpiccolo@gmail.com>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
license = "MIT"
homepage = "https://github.com/slapresta/rust-dotenv"
repository = "https://github.com/slapresta/rust-dotenv"
description = "A `dotenv` implementation for Rust"
[dependencies]
regex = "*"
<|file_sep|>updated/Cargo.toml
[package]
name = "dotenv"
version = "0.4.0"
authors = [
"Santiago Lapresta <santiago.lapresta@gmail.com>",
"Craig Hills <chills@gmail.com>",
"Mike Piccolo <mfpiccolo@gmail.com>",
"Alice Maz <alice@alicemaz.com>",
]
readme = "README.md"
keywords = ["environment", "env", "dotenv", "settings", "config"]
license = "MIT"
homepage = "https://github.com/slapresta/rust-dotenv"
repository = "https://github.com/slapresta/rust-dotenv"
description = "A `dotenv` implementation for Rust"
[dependencies]
regex = "*" | 22091f3846fd4ce9d30a29e41529c17f999821be | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>samples/fire.py.diff
original:
updated:
text = Figlet(font="banner", width=200).renderText("ASCIIMATICS")
width = max([len(x) for x in text.split("\n")])
<|file_sep|>samples/fire.py.diff
original:
Fire(screen.height, 80,
Figlet(font="banner", width=200).renderText("ASCIIMATICS"),
100),
updated:
Fire(screen.height, 80, text, 100),
<|file_sep|>original/samples/fire.py
Print(screen,
Fire(screen.height, 80,
Figlet(font="banner", width=200).renderText("ASCIIMATICS"),
100),
0,
speed=1,
transparent=False),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9, x=3,
colour=Screen.COLOUR_BLACK,
speed=1),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9,
colour=Screen.COLOUR_WHITE,
speed=1),
]
scenes.append(Scene(effects, 600))
screen.play(scenes, stop_on_resize=True)
<|file_sep|>current/samples/fire.py
width = max([len(x) for x in text.split("\n")])
effects = [
Print(screen,
Fire(screen.height, 80, text, 100),
0,
speed=1,
transparent=False),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9, x=3,
colour=Screen.COLOUR_BLACK,
speed=1),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9,
colour=Screen.COLOUR_WHITE,
speed=1),
]
scenes.append(Scene(effects, 600))
<|file_sep|>updated/samples/fire.py | width = max([len(x) for x in text.split("\n")])
effects = [
Print(screen,
Fire(screen.height, 80, text, 100),
0,
speed=1,
transparent=False),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9, x=(screen.width - width) // 2 + 1,
colour=Screen.COLOUR_BLACK,
speed=1),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9,
colour=Screen.COLOUR_WHITE,
speed=1),
]
scenes.append(Scene(effects, 600))
| <|file_sep|>samples/fire.py.diff
original:
updated:
text = Figlet(font="banner", width=200).renderText("ASCIIMATICS")
width = max([len(x) for x in text.split("\n")])
<|file_sep|>samples/fire.py.diff
original:
Fire(screen.height, 80,
Figlet(font="banner", width=200).renderText("ASCIIMATICS"),
100),
updated:
Fire(screen.height, 80, text, 100),
<|file_sep|>original/samples/fire.py
Print(screen,
Fire(screen.height, 80,
Figlet(font="banner", width=200).renderText("ASCIIMATICS"),
100),
0,
speed=1,
transparent=False),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9, x=3,
colour=Screen.COLOUR_BLACK,
speed=1),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9,
colour=Screen.COLOUR_WHITE,
speed=1),
]
scenes.append(Scene(effects, 600))
screen.play(scenes, stop_on_resize=True)
<|file_sep|>current/samples/fire.py
width = max([len(x) for x in text.split("\n")])
effects = [
Print(screen,
Fire(screen.height, 80, text, 100),
0,
speed=1,
transparent=False),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9, x=3,
colour=Screen.COLOUR_BLACK,
speed=1),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9,
colour=Screen.COLOUR_WHITE,
speed=1),
]
scenes.append(Scene(effects, 600))
<|file_sep|>updated/samples/fire.py
width = max([len(x) for x in text.split("\n")])
effects = [
Print(screen,
Fire(screen.height, 80, text, 100),
0,
speed=1,
transparent=False),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9, x=(screen.width - width) // 2 + 1,
colour=Screen.COLOUR_BLACK,
speed=1),
Print(screen,
FigletText("ASCIIMATICS", "banner"),
screen.height - 9,
colour=Screen.COLOUR_WHITE,
speed=1),
]
scenes.append(Scene(effects, 600))
| 1c14d45ba620118401728c56e5ef3a189f9b4145 | samples/fire.py | samples/fire.py | Python |
<|file_sep|>original/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.4.1
Current Version Code:13
<|file_sep|>current/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.4.1
Current Version Code:13
<|file_sep|>updated/metadata/com.dozingcatsoftware.bouncy.txt | Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.4.2
Current Version Code:14
| <|file_sep|>original/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.4.1
Current Version Code:13
<|file_sep|>current/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.4.1
Current Version Code:13
<|file_sep|>updated/metadata/com.dozingcatsoftware.bouncy.txt
Vector Pinball is a pinball game.
.
Repo Type:git
Repo:https://github.com/dozingcat/Vector-Pinball.git
Build:1.1,4
commit=45b5218594320ffb4b37
Build:1.3,10
commit=1210949b1e373916d096
Build:1.3.1,11
commit=04ee044b27
target=android-10
Auto Update Mode:None
Update Check Mode:RepoManifest
Current Version:1.4.2
Current Version Code:14
| bf5924996938386d7769565e4057e30033770d45 | metadata/com.dozingcatsoftware.bouncy.txt | metadata/com.dozingcatsoftware.bouncy.txt | Text |
<|file_sep|>original/README.adoc
= AsciiBinder
image:https://badge.fury.io/rb/ascii_binder.svg["Gem Version", link="https://badge.fury.io/rb/ascii_binder"]
AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
== Learn More
* See the http://www.asciibinder.org[homepage].
* Have a gander at the http://www.asciibinder.org/latest/welcome/[AsciiBinder documentation].
* Or just take the https://rubygems.org/gems/ascii_binder[ascii_binder Ruby Gem] for a spin.
The AsciiBinder system was initially developed for https://github.com/openshift/openshift-docs[OpenShift documentation], but has been revised to work for documenting a wide variety of complex, multi-versioned software projects.
== Contributing
We are using the https://github.com/redhataccess/ascii_binder/issues[Issues] page to track bugs and feature ideas on the code, so have a look and feel free to ask questions there. You can also chat with us on IRC at FreeNode, http://webchat.freenode.net/?randomnick=1&channels=asciibinder&uio=d4[#asciibinder] channel, or on Twitter - https://twitter.com/AsciiBinder[@AsciiBinder].
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License].
<|file_sep|>current/README.adoc
= AsciiBinder
image:https://badge.fury.io/rb/ascii_binder.svg["Gem Version", link="https://badge.fury.io/rb/ascii_binder"]
AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
== Learn More
* See the http://www.asciibinder.org[homepage].
* Have a gander at the http://www.asciibinder.org/latest/welcome/[AsciiBinder documentation].
* Or just take the https://rubygems.org/gems/ascii_binder[ascii_binder Ruby Gem] for a spin.
The AsciiBinder system was initially developed for https://github.com/openshift/openshift-docs[OpenShift documentation], but has been revised to work for documenting a wide variety of complex, multi-versioned software projects.
== Contributing
We are using the https://github.com/redhataccess/ascii_binder/issues[Issues] page to track bugs and feature ideas on the code, so have a look and feel free to ask questions there. You can also chat with us on IRC at FreeNode, http://webchat.freenode.net/?randomnick=1&channels=asciibinder&uio=d4[#asciibinder] channel, or on Twitter - https://twitter.com/AsciiBinder[@AsciiBinder].
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License].
<|file_sep|>updated/README.adoc | = AsciiBinder
image:https://badge.fury.io/rb/ascii_binder.svg["Gem Version", link="https://badge.fury.io/rb/ascii_binder"]
AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
== Learn More
* Have a gander at the https://github.com/redhataccess/ascii_binder-docs/blob/master/welcome/index.adoc[AsciiBinder documentation].
* Or just take the https://rubygems.org/gems/ascii_binder[ascii_binder Ruby Gem] for a spin.
The AsciiBinder system was initially developed for https://github.com/openshift/openshift-docs[OpenShift documentation], but has been revised to work for documenting a wide variety of complex, multi-versioned software projects.
== Contributing
We are using the https://github.com/redhataccess/ascii_binder/issues[Issues] page to track bugs and feature ideas on the code, so have a look and feel free to ask questions there. You can also chat with us on IRC at FreeNode, http://webchat.freenode.net/?randomnick=1&channels=asciibinder&uio=d4[#asciibinder] channel, or on Twitter - https://twitter.com/AsciiBinder[@AsciiBinder].
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License]. | <|file_sep|>original/README.adoc
= AsciiBinder
image:https://badge.fury.io/rb/ascii_binder.svg["Gem Version", link="https://badge.fury.io/rb/ascii_binder"]
AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
== Learn More
* See the http://www.asciibinder.org[homepage].
* Have a gander at the http://www.asciibinder.org/latest/welcome/[AsciiBinder documentation].
* Or just take the https://rubygems.org/gems/ascii_binder[ascii_binder Ruby Gem] for a spin.
The AsciiBinder system was initially developed for https://github.com/openshift/openshift-docs[OpenShift documentation], but has been revised to work for documenting a wide variety of complex, multi-versioned software projects.
== Contributing
We are using the https://github.com/redhataccess/ascii_binder/issues[Issues] page to track bugs and feature ideas on the code, so have a look and feel free to ask questions there. You can also chat with us on IRC at FreeNode, http://webchat.freenode.net/?randomnick=1&channels=asciibinder&uio=d4[#asciibinder] channel, or on Twitter - https://twitter.com/AsciiBinder[@AsciiBinder].
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License].
<|file_sep|>current/README.adoc
= AsciiBinder
image:https://badge.fury.io/rb/ascii_binder.svg["Gem Version", link="https://badge.fury.io/rb/ascii_binder"]
AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
== Learn More
* See the http://www.asciibinder.org[homepage].
* Have a gander at the http://www.asciibinder.org/latest/welcome/[AsciiBinder documentation].
* Or just take the https://rubygems.org/gems/ascii_binder[ascii_binder Ruby Gem] for a spin.
The AsciiBinder system was initially developed for https://github.com/openshift/openshift-docs[OpenShift documentation], but has been revised to work for documenting a wide variety of complex, multi-versioned software projects.
== Contributing
We are using the https://github.com/redhataccess/ascii_binder/issues[Issues] page to track bugs and feature ideas on the code, so have a look and feel free to ask questions there. You can also chat with us on IRC at FreeNode, http://webchat.freenode.net/?randomnick=1&channels=asciibinder&uio=d4[#asciibinder] channel, or on Twitter - https://twitter.com/AsciiBinder[@AsciiBinder].
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License].
<|file_sep|>updated/README.adoc
= AsciiBinder
image:https://badge.fury.io/rb/ascii_binder.svg["Gem Version", link="https://badge.fury.io/rb/ascii_binder"]
AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
== Learn More
* Have a gander at the https://github.com/redhataccess/ascii_binder-docs/blob/master/welcome/index.adoc[AsciiBinder documentation].
* Or just take the https://rubygems.org/gems/ascii_binder[ascii_binder Ruby Gem] for a spin.
The AsciiBinder system was initially developed for https://github.com/openshift/openshift-docs[OpenShift documentation], but has been revised to work for documenting a wide variety of complex, multi-versioned software projects.
== Contributing
We are using the https://github.com/redhataccess/ascii_binder/issues[Issues] page to track bugs and feature ideas on the code, so have a look and feel free to ask questions there. You can also chat with us on IRC at FreeNode, http://webchat.freenode.net/?randomnick=1&channels=asciibinder&uio=d4[#asciibinder] channel, or on Twitter - https://twitter.com/AsciiBinder[@AsciiBinder].
== License
The gem is available as open source under the terms of the http://opensource.org/licenses/MIT[MIT License]. | 0563338e61781db621d9bfbcf201a4c2c753dae4 | README.adoc | README.adoc | AsciiDoc |
<|file_sep|>original/crd/README.md
<|file_sep|>current/crd/README.md
<|file_sep|>updated/crd/README.md | # Custom Dataset controller
This controller should be deployed on each cluster.
It is used to delete S3 object when a Kubernetes Dataset is being deleted.
## Some resources regarding controllers
- [Writing custom Kubernetes controllers](https://medium.com/@cloudark/kubernetes-custom-controllers-b6c7d0668fdf), it's a must read and there is a very good representation of how a custom controller works.
- [Kubernetes sample controller](https://github.com/kubernetes/sample-controller)
- [Kubewatch, an example of Kubernetes Custom Controller](https://engineering.bitnami.com/articles/kubewatch-an-example-of-kubernetes-custom-controller.html)
## How it works

*Illustration from [Writing custom Kubernetes controllers](https://medium.com/@cloudark/kubernetes-custom-controllers-b6c7d0668fdf)*
- The controller creates an Informer and an Indexer to list, watch and index a Kubernetes object, for our controller it's all about datasets
- When a new object is being deleted, it calls an event handler to delete the s3 object. | <|file_sep|>original/crd/README.md
<|file_sep|>current/crd/README.md
<|file_sep|>updated/crd/README.md
# Custom Dataset controller
This controller should be deployed on each cluster.
It is used to delete S3 object when a Kubernetes Dataset is being deleted.
## Some resources regarding controllers
- [Writing custom Kubernetes controllers](https://medium.com/@cloudark/kubernetes-custom-controllers-b6c7d0668fdf), it's a must read and there is a very good representation of how a custom controller works.
- [Kubernetes sample controller](https://github.com/kubernetes/sample-controller)
- [Kubewatch, an example of Kubernetes Custom Controller](https://engineering.bitnami.com/articles/kubewatch-an-example-of-kubernetes-custom-controller.html)
## How it works

*Illustration from [Writing custom Kubernetes controllers](https://medium.com/@cloudark/kubernetes-custom-controllers-b6c7d0668fdf)*
- The controller creates an Informer and an Indexer to list, watch and index a Kubernetes object, for our controller it's all about datasets
- When a new object is being deleted, it calls an event handler to delete the s3 object. | 09c88b7932fe169008d4398482ae8e2b328bca97 | crd/README.md | crd/README.md | Markdown |
<|file_sep|>original/app/assets/stylesheets/base/_typography.scss
margin: 0 0 $small-spacing;
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr {
border-bottom: $base-border;
<|file_sep|>current/app/assets/stylesheets/base/_typography.scss
margin: 0 0 $small-spacing;
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr {
border-bottom: $base-border;
<|file_sep|>updated/app/assets/stylesheets/base/_typography.scss | margin: 0 0 $small-spacing;
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
word-wrap: break-word;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr { | <|file_sep|>original/app/assets/stylesheets/base/_typography.scss
margin: 0 0 $small-spacing;
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr {
border-bottom: $base-border;
<|file_sep|>current/app/assets/stylesheets/base/_typography.scss
margin: 0 0 $small-spacing;
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr {
border-bottom: $base-border;
<|file_sep|>updated/app/assets/stylesheets/base/_typography.scss
margin: 0 0 $small-spacing;
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
word-wrap: break-word;
transition: color $base-duration $base-timing;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr { | 030df746bcce038764988e24c8565109611d0e98 | app/assets/stylesheets/base/_typography.scss | app/assets/stylesheets/base/_typography.scss | SCSS |
<|file_sep|>.travis.yml.diff
original:
- go install github.com/vdobler/ht/cmd/ht
updated:
<|file_sep|>original/.travis.yml
# allow_failures:
# - go: tip
fast_finish: true
install:
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
- go install github.com/vdobler/ht/cmd/ht
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -race -count=4 ./...
- $TRAVIS_BUILD_DIR/integration.sh
after_script:
- golint ./...
<|file_sep|>current/.travis.yml
# allow_failures:
# - go: tip
fast_finish: true
install:
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -race -count=4 ./...
- $TRAVIS_BUILD_DIR/integration.sh
after_script:
- golint ./...
- go test -run=🤐 -bench=. -count=1 -benchmem ./...
<|file_sep|>updated/.travis.yml | # allow_failures:
# - go: tip
fast_finish: true
install:
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -race -count=4 ./...
- ./integration.sh
after_script:
- golint ./...
- go test -run=🤐 -bench=. -count=1 -benchmem ./... | <|file_sep|>.travis.yml.diff
original:
- go install github.com/vdobler/ht/cmd/ht
updated:
<|file_sep|>original/.travis.yml
# allow_failures:
# - go: tip
fast_finish: true
install:
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
- go install github.com/vdobler/ht/cmd/ht
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -race -count=4 ./...
- $TRAVIS_BUILD_DIR/integration.sh
after_script:
- golint ./...
<|file_sep|>current/.travis.yml
# allow_failures:
# - go: tip
fast_finish: true
install:
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -race -count=4 ./...
- $TRAVIS_BUILD_DIR/integration.sh
after_script:
- golint ./...
- go test -run=🤐 -bench=. -count=1 -benchmem ./...
<|file_sep|>updated/.travis.yml
# allow_failures:
# - go: tip
fast_finish: true
install:
- go get -t ./...
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- go get github.com/mholt/caddy/...
- go get github.com/vdobler/ht/...
script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- go vet ./...
- go test -race -count=4 ./...
- ./integration.sh
after_script:
- golint ./...
- go test -run=🤐 -bench=. -count=1 -benchmem ./... | 25f0cf4e6ff275349cd5918a95ac64e7ad95c558 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff
<|file_sep|>current/bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff
<|file_sep|>updated/bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff | From 923ea820a0d2285569e92da14c5b35e675589600 Mon Sep 17 00:00:00 2001
From: Jun He <jun.he@linaro.org>
Date: Thu, 9 Aug 2018 05:49:09 +0000
Subject: [PATCH] CRUNCH-671: Failed to generate reports using "mvn site"
Crunch build failed due to "ClassNotFound" in doxia.
This is caused by maven-project-info-reports-plugin updated to 3.0.0, depends on
doxia-site-renderer 1.8 (which has org.apache.maven.doxia.siterenderer.DocumentContent
this class), while maven-site-plugin:3.3 depends on doxia-site-renderer:1.4 (which
doesn't have org.apache.maven.doxia.siterenderer.DocumentContent)
Specify maven-site-plugin to 3.7 can resolve this.
Signed-off-by: Jun He <jun.he@linaro.org>
---
pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pom.xml b/pom.xml
index e3b6d8d..11b87fd 100644
--- a/pom.xml
+++ b/pom.xml | <|file_sep|>original/bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff
<|file_sep|>current/bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff
<|file_sep|>updated/bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff
From 923ea820a0d2285569e92da14c5b35e675589600 Mon Sep 17 00:00:00 2001
From: Jun He <jun.he@linaro.org>
Date: Thu, 9 Aug 2018 05:49:09 +0000
Subject: [PATCH] CRUNCH-671: Failed to generate reports using "mvn site"
Crunch build failed due to "ClassNotFound" in doxia.
This is caused by maven-project-info-reports-plugin updated to 3.0.0, depends on
doxia-site-renderer 1.8 (which has org.apache.maven.doxia.siterenderer.DocumentContent
this class), while maven-site-plugin:3.3 depends on doxia-site-renderer:1.4 (which
doesn't have org.apache.maven.doxia.siterenderer.DocumentContent)
Specify maven-site-plugin to 3.7 can resolve this.
Signed-off-by: Jun He <jun.he@linaro.org>
---
pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pom.xml b/pom.xml
index e3b6d8d..11b87fd 100644
--- a/pom.xml
+++ b/pom.xml | 83a2ab92f6a367dbb133384f167449ebac78f111 | bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff | bigtop-packages/src/common/crunch/patch0-CRUNCH-671.diff | Diff |
<|file_sep|>blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js.diff
original:
name: 'Pete',
age: 20,
updated:
// name: 'Pete', // strings
// age: 20, // numbers
// tall: true, // booleans
<|file_sep|>blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js.diff
original:
email: (i) => `person${i}@test.com`,
updated:
// email: (i) => `person${i}@test.com`, // and functions
<|file_sep|>original/blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js
/*
This is an example factory definition. Factories are
used inside acceptance tests.
Create more files in this directory to define additional factories.
*/
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
name: 'Pete',
age: 20,
email: (i) => `person${i}@test.com`,
admin: function() {
return this.age > 30;
}
});
<|file_sep|>current/blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js
/*
This is an example factory definition. Factories are
used inside acceptance tests.
Create more files in this directory to define additional factories.
*/
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
// name: 'Pete', // strings
// age: 20, // numbers
// tall: true, // booleans
// email: (i) => `person${i}@test.com`, // and functions
admin: function() {
return this.age > 30;
}
});
<|file_sep|>updated/blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js | /*
This is an example factory definition. Factories are
used inside acceptance tests.
Create more files in this directory to define additional factories.
*/
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
// name: 'Pete', // strings
// age: 20, // numbers
// tall: true, // booleans
// email: (i) => `person${i}@test.com`, // and functions
// admin: function() {
// return this.age > 30;
// }
}); | <|file_sep|>blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js.diff
original:
name: 'Pete',
age: 20,
updated:
// name: 'Pete', // strings
// age: 20, // numbers
// tall: true, // booleans
<|file_sep|>blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js.diff
original:
email: (i) => `person${i}@test.com`,
updated:
// email: (i) => `person${i}@test.com`, // and functions
<|file_sep|>original/blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js
/*
This is an example factory definition. Factories are
used inside acceptance tests.
Create more files in this directory to define additional factories.
*/
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
name: 'Pete',
age: 20,
email: (i) => `person${i}@test.com`,
admin: function() {
return this.age > 30;
}
});
<|file_sep|>current/blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js
/*
This is an example factory definition. Factories are
used inside acceptance tests.
Create more files in this directory to define additional factories.
*/
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
// name: 'Pete', // strings
// age: 20, // numbers
// tall: true, // booleans
// email: (i) => `person${i}@test.com`, // and functions
admin: function() {
return this.age > 30;
}
});
<|file_sep|>updated/blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js
/*
This is an example factory definition. Factories are
used inside acceptance tests.
Create more files in this directory to define additional factories.
*/
import Mirage from 'ember-cli-mirage';
export default Mirage.Factory.extend({
// name: 'Pete', // strings
// age: 20, // numbers
// tall: true, // booleans
// email: (i) => `person${i}@test.com`, // and functions
// admin: function() {
// return this.age > 30;
// }
}); | c210a34a20955ac96f5d8bc0913f5aa8e2aa6634 | blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js | blueprints/ember-cli-mirage/files/app/mirage/factories/contact.js | JavaScript |
<|file_sep|>original/.zuul.yml
ui: mocha-bdd
browsers:
- name: chrome
version: ["45", "latest"]
- name: ie
version: ["9", "10", "latest"]
- name: firefox
version: ["36", "latest"]
- name: android
version: ["4.0", "latest"]
- name: opera
version: ["12", "latest"]
- name: safari
version: ["6", "latest"]
<|file_sep|>current/.zuul.yml
ui: mocha-bdd
browsers:
- name: chrome
version: ["45", "latest"]
- name: ie
version: ["9", "10", "latest"]
- name: firefox
version: ["36", "latest"]
- name: android
version: ["4.0", "latest"]
- name: opera
version: ["12", "latest"]
- name: safari
version: ["6", "latest"]
<|file_sep|>updated/.zuul.yml | ui: mocha-bdd
browsers:
- name: chrome
version: ["45", "latest"]
- name: ie
version: ["9", "10", "latest"]
- name: firefox
version: ["36", "latest"]
- name: android
version: ["4.0", "latest"]
- name: safari
version: ["6", "latest"] | <|file_sep|>original/.zuul.yml
ui: mocha-bdd
browsers:
- name: chrome
version: ["45", "latest"]
- name: ie
version: ["9", "10", "latest"]
- name: firefox
version: ["36", "latest"]
- name: android
version: ["4.0", "latest"]
- name: opera
version: ["12", "latest"]
- name: safari
version: ["6", "latest"]
<|file_sep|>current/.zuul.yml
ui: mocha-bdd
browsers:
- name: chrome
version: ["45", "latest"]
- name: ie
version: ["9", "10", "latest"]
- name: firefox
version: ["36", "latest"]
- name: android
version: ["4.0", "latest"]
- name: opera
version: ["12", "latest"]
- name: safari
version: ["6", "latest"]
<|file_sep|>updated/.zuul.yml
ui: mocha-bdd
browsers:
- name: chrome
version: ["45", "latest"]
- name: ie
version: ["9", "10", "latest"]
- name: firefox
version: ["36", "latest"]
- name: android
version: ["4.0", "latest"]
- name: safari
version: ["6", "latest"] | a11878c4a4af0ce70f445130823bb2c9ecea655e | .zuul.yml | .zuul.yml | YAML |
<|file_sep|>.circleci/config.yml.diff
original:
key: {{ checksum "project.clj" }}
updated:
key: << checksum "project.clj" >>
<|file_sep|>original/.circleci/config.yml
jobs:
build:
working_directory: ~/libx
docker:
- image: openjdk:8
environment:
LEIN_ROOT=nbd
steps:
- checkout
- restore_cache:
key: {{ checksum "project.clj" }}
- run: bin/lein deps
- save_cache:
paths:
- $HOME/.m2
- $HOME/.lein
key: {{ checksum "project.clj" }}
- run: bin/lein test libx.core-test, uberjar
- store_artifacts:
path: target/libx.jar
destination: uberjar
<|file_sep|>current/.circleci/config.yml
jobs:
build:
working_directory: ~/libx
docker:
- image: openjdk:8
environment:
LEIN_ROOT=nbd
steps:
- checkout
- restore_cache:
key: << checksum "project.clj" >>
- run: bin/lein deps
- save_cache:
paths:
- $HOME/.m2
- $HOME/.lein
key: {{ checksum "project.clj" }}
- run: bin/lein test libx.core-test, uberjar
- store_artifacts:
path: target/libx.jar
destination: uberjar
<|file_sep|>updated/.circleci/config.yml | jobs:
build:
working_directory: ~/libx
docker:
- image: openjdk:8
environment:
LEIN_ROOT=nbd
steps:
- checkout
- restore_cache:
key: << checksum "project.clj" >>
- run: bin/lein deps
- save_cache:
paths:
- $HOME/.m2
- $HOME/.lein
key: << checksum "project.clj" >>
- run: bin/lein do test libx.core-test, uberjar
- store_artifacts:
path: target/libx.jar
destination: uberjar | <|file_sep|>.circleci/config.yml.diff
original:
key: {{ checksum "project.clj" }}
updated:
key: << checksum "project.clj" >>
<|file_sep|>original/.circleci/config.yml
jobs:
build:
working_directory: ~/libx
docker:
- image: openjdk:8
environment:
LEIN_ROOT=nbd
steps:
- checkout
- restore_cache:
key: {{ checksum "project.clj" }}
- run: bin/lein deps
- save_cache:
paths:
- $HOME/.m2
- $HOME/.lein
key: {{ checksum "project.clj" }}
- run: bin/lein test libx.core-test, uberjar
- store_artifacts:
path: target/libx.jar
destination: uberjar
<|file_sep|>current/.circleci/config.yml
jobs:
build:
working_directory: ~/libx
docker:
- image: openjdk:8
environment:
LEIN_ROOT=nbd
steps:
- checkout
- restore_cache:
key: << checksum "project.clj" >>
- run: bin/lein deps
- save_cache:
paths:
- $HOME/.m2
- $HOME/.lein
key: {{ checksum "project.clj" }}
- run: bin/lein test libx.core-test, uberjar
- store_artifacts:
path: target/libx.jar
destination: uberjar
<|file_sep|>updated/.circleci/config.yml
jobs:
build:
working_directory: ~/libx
docker:
- image: openjdk:8
environment:
LEIN_ROOT=nbd
steps:
- checkout
- restore_cache:
key: << checksum "project.clj" >>
- run: bin/lein deps
- save_cache:
paths:
- $HOME/.m2
- $HOME/.lein
key: << checksum "project.clj" >>
- run: bin/lein do test libx.core-test, uberjar
- store_artifacts:
path: target/libx.jar
destination: uberjar | d65d1560d0adb93af07f11582aa09cdf56db77f8 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/webpack.config.babel.js
},
module: {
rules: [
{
test: /\.css$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
query: {
modules: true,
},
},
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'),
<|file_sep|>current/webpack.config.babel.js
},
module: {
rules: [
{
test: /\.css$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
query: {
modules: true,
},
},
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'),
<|file_sep|>updated/webpack.config.babel.js | },
module: {
rules: [
{
test: /\.css$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
query: {
modules: false,
},
},
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'), | <|file_sep|>original/webpack.config.babel.js
},
module: {
rules: [
{
test: /\.css$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
query: {
modules: true,
},
},
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'),
<|file_sep|>current/webpack.config.babel.js
},
module: {
rules: [
{
test: /\.css$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
query: {
modules: true,
},
},
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'),
<|file_sep|>updated/webpack.config.babel.js
},
module: {
rules: [
{
test: /\.css$/,
loaders: [
'style-loader',
{
loader: 'css-loader',
query: {
modules: false,
},
},
],
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'), | 177ff8455ce3e84453defd2c6bb3508b7748af43 | webpack.config.babel.js | webpack.config.babel.js | JavaScript |
<|file_sep|>original/.github/workflows/verify-pip-installation.yml
<|file_sep|>current/.github/workflows/verify-pip-installation.yml
<|file_sep|>updated/.github/workflows/verify-pip-installation.yml | name: Verify pip-installability
on: [push]
jobs:
deploy:
name: Verify pip-installability
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set branch name as env variable
run: |
echo Current branch: ${GITHUB_REF#refs/heads/}
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
| <|file_sep|>original/.github/workflows/verify-pip-installation.yml
<|file_sep|>current/.github/workflows/verify-pip-installation.yml
<|file_sep|>updated/.github/workflows/verify-pip-installation.yml
name: Verify pip-installability
on: [push]
jobs:
deploy:
name: Verify pip-installability
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set branch name as env variable
run: |
echo Current branch: ${GITHUB_REF#refs/heads/}
echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
| bdb1daac683aa1192ad5f826c0d644395e0adde6 | .github/workflows/verify-pip-installation.yml | .github/workflows/verify-pip-installation.yml | YAML |
<|file_sep|>tests/test_funcargs.py.diff
original:
updated:
import py
<|file_sep|>original/tests/test_funcargs.py
from django.test.client import Client
from pytest_django.client import RequestFactory
pytest_plugins = ['pytester']
def test_params(testdir):
testdir.makeconftest("""
import os, sys
import pytest_django as plugin
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(plugin.__file__), '../')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
pytest_plugins = ['django']
""")
p = testdir.makepyfile("""
import py
@py.test.params([dict(arg1=1, arg2=1), dict(arg1=1, arg2=2)])
def test_myfunc(arg1, arg2):
assert arg1 == arg2
""")
result = testdir.runpytest("-v", p)
assert result.stdout.fnmatch_lines([
<|file_sep|>current/tests/test_funcargs.py
from django.test.client import Client
from pytest_django.client import RequestFactory
import py
pytest_plugins = ['pytester']
def test_params(testdir):
testdir.makeconftest("""
import os, sys
import pytest_django as plugin
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(plugin.__file__), '../')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
pytest_plugins = ['django']
""")
p = testdir.makepyfile("""
import py
@py.test.params([dict(arg1=1, arg2=1), dict(arg1=1, arg2=2)])
def test_myfunc(arg1, arg2):
assert arg1 == arg2
""")
result = testdir.runpytest("-v", p)
<|file_sep|>updated/tests/test_funcargs.py | from django.test.client import Client
from pytest_django.client import RequestFactory
import py
pytest_plugins = ['pytester']
def test_params(testdir):
# Setting up the path isn't working - plugin.__file__ points to the wrong place
return
testdir.makeconftest("""
import os, sys
import pytest_django as plugin
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(plugin.__file__), '../')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
pytest_plugins = ['django']
""")
p = testdir.makepyfile("""
import py
@py.test.params([dict(arg1=1, arg2=1), dict(arg1=1, arg2=2)])
def test_myfunc(arg1, arg2): | <|file_sep|>tests/test_funcargs.py.diff
original:
updated:
import py
<|file_sep|>original/tests/test_funcargs.py
from django.test.client import Client
from pytest_django.client import RequestFactory
pytest_plugins = ['pytester']
def test_params(testdir):
testdir.makeconftest("""
import os, sys
import pytest_django as plugin
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(plugin.__file__), '../')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
pytest_plugins = ['django']
""")
p = testdir.makepyfile("""
import py
@py.test.params([dict(arg1=1, arg2=1), dict(arg1=1, arg2=2)])
def test_myfunc(arg1, arg2):
assert arg1 == arg2
""")
result = testdir.runpytest("-v", p)
assert result.stdout.fnmatch_lines([
<|file_sep|>current/tests/test_funcargs.py
from django.test.client import Client
from pytest_django.client import RequestFactory
import py
pytest_plugins = ['pytester']
def test_params(testdir):
testdir.makeconftest("""
import os, sys
import pytest_django as plugin
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(plugin.__file__), '../')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
pytest_plugins = ['django']
""")
p = testdir.makepyfile("""
import py
@py.test.params([dict(arg1=1, arg2=1), dict(arg1=1, arg2=2)])
def test_myfunc(arg1, arg2):
assert arg1 == arg2
""")
result = testdir.runpytest("-v", p)
<|file_sep|>updated/tests/test_funcargs.py
from django.test.client import Client
from pytest_django.client import RequestFactory
import py
pytest_plugins = ['pytester']
def test_params(testdir):
# Setting up the path isn't working - plugin.__file__ points to the wrong place
return
testdir.makeconftest("""
import os, sys
import pytest_django as plugin
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(plugin.__file__), '../')))
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
pytest_plugins = ['django']
""")
p = testdir.makepyfile("""
import py
@py.test.params([dict(arg1=1, arg2=1), dict(arg1=1, arg2=2)])
def test_myfunc(arg1, arg2): | 4b172a9b2b9a9a70843bd41ad858d6f3120769b0 | tests/test_funcargs.py | tests/test_funcargs.py | Python |
<|file_sep|>original/test/unit/GameOfLife.spec.js
}
function DeadCell() {
return new Cell(DEAD);
}
return {
AliveCell: AliveCell,
DeadCell: DeadCell
};
})();
describe('Live cell', function () {
it('should die when it has fewer than two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(false);
});
});
<|file_sep|>current/test/unit/GameOfLife.spec.js
}
function DeadCell() {
return new Cell(DEAD);
}
return {
AliveCell: AliveCell,
DeadCell: DeadCell
};
})();
describe('Live cell', function () {
it('should die when it has fewer than two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(false);
});
});
<|file_sep|>updated/test/unit/GameOfLife.spec.js | AliveCell: AliveCell,
DeadCell: DeadCell
};
})();
describe('Live cell', function () {
it('should die when it has fewer than two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(false);
});
it('should stay alive when it has at least two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell(), new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(true);
});
}); | <|file_sep|>original/test/unit/GameOfLife.spec.js
}
function DeadCell() {
return new Cell(DEAD);
}
return {
AliveCell: AliveCell,
DeadCell: DeadCell
};
})();
describe('Live cell', function () {
it('should die when it has fewer than two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(false);
});
});
<|file_sep|>current/test/unit/GameOfLife.spec.js
}
function DeadCell() {
return new Cell(DEAD);
}
return {
AliveCell: AliveCell,
DeadCell: DeadCell
};
})();
describe('Live cell', function () {
it('should die when it has fewer than two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(false);
});
});
<|file_sep|>updated/test/unit/GameOfLife.spec.js
AliveCell: AliveCell,
DeadCell: DeadCell
};
})();
describe('Live cell', function () {
it('should die when it has fewer than two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(false);
});
it('should stay alive when it has at least two live neighbours', function () {
var cell = new GameOfLife.AliveCell();
cell.setNeighbours([new GameOfLife.AliveCell(), new GameOfLife.AliveCell()]);
expect(cell.isAlive()).toBe(true);
});
}); | 903205447e40f08de7a719bef18e3bc581aff98b | test/unit/GameOfLife.spec.js | test/unit/GameOfLife.spec.js | JavaScript |
<|file_sep|>metadata/com.junjunguo.pocketmaps.txt.diff
original:
updated:
Build:2.3,13
commit=2.3
subdir=PocketMaps/app
gradle=yes
<|file_sep|>original/metadata/com.junjunguo.pocketmaps.txt
Build:1.7,8
commit=ae65d065c1606e3abf4afa51e20d6891fd149f5d
subdir=PocketMaps/app
gradle=yes
Build:1.9,9
commit=1.9
subdir=PocketMaps/app
gradle=yes
Build:2.0,10
commit=2.0
subdir=PocketMaps/app
gradle=yes
Archive Policy:2 versions
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:2.0
Current Version Code:10
<|file_sep|>current/metadata/com.junjunguo.pocketmaps.txt
Build:1.9,9
commit=1.9
subdir=PocketMaps/app
gradle=yes
Build:2.0,10
commit=2.0
subdir=PocketMaps/app
gradle=yes
Build:2.3,13
commit=2.3
subdir=PocketMaps/app
gradle=yes
Archive Policy:2 versions
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:2.0
Current Version Code:10
<|file_sep|>updated/metadata/com.junjunguo.pocketmaps.txt |
Build:1.9,9
commit=1.9
subdir=PocketMaps/app
gradle=yes
Build:2.0,10
commit=2.0
subdir=PocketMaps/app
gradle=yes
Build:2.3,13
commit=2.3
subdir=PocketMaps/app
gradle=yes
Archive Policy:2 versions
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:2.3
Current Version Code:13 | <|file_sep|>metadata/com.junjunguo.pocketmaps.txt.diff
original:
updated:
Build:2.3,13
commit=2.3
subdir=PocketMaps/app
gradle=yes
<|file_sep|>original/metadata/com.junjunguo.pocketmaps.txt
Build:1.7,8
commit=ae65d065c1606e3abf4afa51e20d6891fd149f5d
subdir=PocketMaps/app
gradle=yes
Build:1.9,9
commit=1.9
subdir=PocketMaps/app
gradle=yes
Build:2.0,10
commit=2.0
subdir=PocketMaps/app
gradle=yes
Archive Policy:2 versions
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:2.0
Current Version Code:10
<|file_sep|>current/metadata/com.junjunguo.pocketmaps.txt
Build:1.9,9
commit=1.9
subdir=PocketMaps/app
gradle=yes
Build:2.0,10
commit=2.0
subdir=PocketMaps/app
gradle=yes
Build:2.3,13
commit=2.3
subdir=PocketMaps/app
gradle=yes
Archive Policy:2 versions
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:2.0
Current Version Code:10
<|file_sep|>updated/metadata/com.junjunguo.pocketmaps.txt
Build:1.9,9
commit=1.9
subdir=PocketMaps/app
gradle=yes
Build:2.0,10
commit=2.0
subdir=PocketMaps/app
gradle=yes
Build:2.3,13
commit=2.3
subdir=PocketMaps/app
gradle=yes
Archive Policy:2 versions
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:2.3
Current Version Code:13 | 74edd2e3df86f6f92c04b7441e2b4d588d25f7ed | metadata/com.junjunguo.pocketmaps.txt | metadata/com.junjunguo.pocketmaps.txt | Text |
<|file_sep|>test/fitnesse/components/PluginsClassLoaderTest.java.diff
original:
//todo This fails because some other test probably loads plugin path assertLoadingClassCausesException(dynamicClasses);
updated:
<|file_sep|>original/test/fitnesse/components/PluginsClassLoaderTest.java
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", true);
}
@Test
public void addPluginsToClassLoader() throws Exception {
String[] dynamicClasses = new String[]{"fitnesse.testing.PluginX", "fitnesse.testing.PluginY"};
//todo This fails because some other test probably loads plugin path assertLoadingClassCausesException(dynamicClasses);
ClassLoader cl = PluginsClassLoader.getClassLoader(".");
assertLoadingClassWorksNow(cl, dynamicClasses);
}
private void assertLoadingClassWorksNow(ClassLoader cl, String... dynamicClasses) {
for (String dynamicClass : dynamicClasses) {
try {
Class<?> dynamicallyLoadedClass = Class.forName(dynamicClass, true, cl);
assertEquals(dynamicClass, dynamicallyLoadedClass.getName());
} catch (ClassNotFoundException e) {
<|file_sep|>current/test/fitnesse/components/PluginsClassLoaderTest.java
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", true);
}
@Test
public void addPluginsToClassLoader() throws Exception {
String[] dynamicClasses = new String[]{"fitnesse.testing.PluginX", "fitnesse.testing.PluginY"};
ClassLoader cl = PluginsClassLoader.getClassLoader(".");
assertLoadingClassWorksNow(cl, dynamicClasses);
}
private void assertLoadingClassWorksNow(ClassLoader cl, String... dynamicClasses) {
for (String dynamicClass : dynamicClasses) {
try {
Class<?> dynamicallyLoadedClass = Class.forName(dynamicClass, true, cl);
assertEquals(dynamicClass, dynamicallyLoadedClass.getName());
} catch (ClassNotFoundException e) {
fail("Class not found: " + e.getMessage());
<|file_sep|>updated/test/fitnesse/components/PluginsClassLoaderTest.java | new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", true);
}
@Test
public void addPluginsToClassLoader() throws Exception {
String[] dynamicClasses = new String[]{"fitnesse.testing.PluginX", "fitnesse.testing.PluginY"};
ClassLoader cl = PluginsClassLoader.getClassLoader(".");
assertLoadingClassWorksNow(cl, dynamicClasses);
}
private void assertLoadingClassWorksNow(ClassLoader cl, String... dynamicClasses) {
for (String dynamicClass : dynamicClasses) {
try {
Class<?> dynamicallyLoadedClass = Class.forName(dynamicClass, true, cl);
assertEquals(dynamicClass, dynamicallyLoadedClass.getName());
} catch (ClassNotFoundException e) {
fail("Class not found: " + e.getMessage());
} | <|file_sep|>test/fitnesse/components/PluginsClassLoaderTest.java.diff
original:
//todo This fails because some other test probably loads plugin path assertLoadingClassCausesException(dynamicClasses);
updated:
<|file_sep|>original/test/fitnesse/components/PluginsClassLoaderTest.java
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", true);
}
@Test
public void addPluginsToClassLoader() throws Exception {
String[] dynamicClasses = new String[]{"fitnesse.testing.PluginX", "fitnesse.testing.PluginY"};
//todo This fails because some other test probably loads plugin path assertLoadingClassCausesException(dynamicClasses);
ClassLoader cl = PluginsClassLoader.getClassLoader(".");
assertLoadingClassWorksNow(cl, dynamicClasses);
}
private void assertLoadingClassWorksNow(ClassLoader cl, String... dynamicClasses) {
for (String dynamicClass : dynamicClasses) {
try {
Class<?> dynamicallyLoadedClass = Class.forName(dynamicClass, true, cl);
assertEquals(dynamicClass, dynamicallyLoadedClass.getName());
} catch (ClassNotFoundException e) {
<|file_sep|>current/test/fitnesse/components/PluginsClassLoaderTest.java
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", true);
}
@Test
public void addPluginsToClassLoader() throws Exception {
String[] dynamicClasses = new String[]{"fitnesse.testing.PluginX", "fitnesse.testing.PluginY"};
ClassLoader cl = PluginsClassLoader.getClassLoader(".");
assertLoadingClassWorksNow(cl, dynamicClasses);
}
private void assertLoadingClassWorksNow(ClassLoader cl, String... dynamicClasses) {
for (String dynamicClass : dynamicClasses) {
try {
Class<?> dynamicallyLoadedClass = Class.forName(dynamicClass, true, cl);
assertEquals(dynamicClass, dynamicallyLoadedClass.getName());
} catch (ClassNotFoundException e) {
fail("Class not found: " + e.getMessage());
<|file_sep|>updated/test/fitnesse/components/PluginsClassLoaderTest.java
new PluginsClassLoader().getClassLoader("nonExistingRootDirectory");
assertTrue("didn't cause exception", true);
}
@Test
public void addPluginsToClassLoader() throws Exception {
String[] dynamicClasses = new String[]{"fitnesse.testing.PluginX", "fitnesse.testing.PluginY"};
ClassLoader cl = PluginsClassLoader.getClassLoader(".");
assertLoadingClassWorksNow(cl, dynamicClasses);
}
private void assertLoadingClassWorksNow(ClassLoader cl, String... dynamicClasses) {
for (String dynamicClass : dynamicClasses) {
try {
Class<?> dynamicallyLoadedClass = Class.forName(dynamicClass, true, cl);
assertEquals(dynamicClass, dynamicallyLoadedClass.getName());
} catch (ClassNotFoundException e) {
fail("Class not found: " + e.getMessage());
} | 8845f1bd4b7554f885ea74f6a842caa28b6246ac | test/fitnesse/components/PluginsClassLoaderTest.java | test/fitnesse/components/PluginsClassLoaderTest.java | Java |
<|file_sep|>original/src/utils/run_check.py
def check_argv(argv):
"""Check if arguments are ok.
When executing, there must be argument switch for test/live.
There also must be filename.
Method returns set(is_correct, filename, is_test)
"""``
python_file_name = argv[0]
usage_msg = "Usage: python %s [-test | -live] filename.txt" % python_file_name
is_test = True
if len(argv) > 1:
if '-test' in argv:
is_test = True
elif '-live' in argv:
is_test = False
else:
print usage_msg
return (False, None, is_test)
if len(argv) < 3:
<|file_sep|>current/src/utils/run_check.py
def check_argv(argv):
"""Check if arguments are ok.
When executing, there must be argument switch for test/live.
There also must be filename.
Method returns set(is_correct, filename, is_test)
"""``
python_file_name = argv[0]
usage_msg = "Usage: python %s [-test | -live] filename.txt" % python_file_name
is_test = True
if len(argv) > 1:
if '-test' in argv:
is_test = True
elif '-live' in argv:
is_test = False
else:
print usage_msg
return (False, None, is_test)
if len(argv) < 3:
<|file_sep|>updated/src/utils/run_check.py | def check_argv(argv):
"""Check if arguments are ok.
When executing, there must be argument switch for test/live.
There also must be filename.
Method returns set(is_correct, filename, is_test)
"""
python_file_name = argv[0]
usage_msg = "Usage: python %s [-test | -live] filename.txt" % python_file_name
is_test = True
if len(argv) > 1:
if '-test' in argv:
is_test = True
elif '-live' in argv:
is_test = False
else:
print usage_msg
return (False, None, is_test)
if len(argv) < 3: | <|file_sep|>original/src/utils/run_check.py
def check_argv(argv):
"""Check if arguments are ok.
When executing, there must be argument switch for test/live.
There also must be filename.
Method returns set(is_correct, filename, is_test)
"""``
python_file_name = argv[0]
usage_msg = "Usage: python %s [-test | -live] filename.txt" % python_file_name
is_test = True
if len(argv) > 1:
if '-test' in argv:
is_test = True
elif '-live' in argv:
is_test = False
else:
print usage_msg
return (False, None, is_test)
if len(argv) < 3:
<|file_sep|>current/src/utils/run_check.py
def check_argv(argv):
"""Check if arguments are ok.
When executing, there must be argument switch for test/live.
There also must be filename.
Method returns set(is_correct, filename, is_test)
"""``
python_file_name = argv[0]
usage_msg = "Usage: python %s [-test | -live] filename.txt" % python_file_name
is_test = True
if len(argv) > 1:
if '-test' in argv:
is_test = True
elif '-live' in argv:
is_test = False
else:
print usage_msg
return (False, None, is_test)
if len(argv) < 3:
<|file_sep|>updated/src/utils/run_check.py
def check_argv(argv):
"""Check if arguments are ok.
When executing, there must be argument switch for test/live.
There also must be filename.
Method returns set(is_correct, filename, is_test)
"""
python_file_name = argv[0]
usage_msg = "Usage: python %s [-test | -live] filename.txt" % python_file_name
is_test = True
if len(argv) > 1:
if '-test' in argv:
is_test = True
elif '-live' in argv:
is_test = False
else:
print usage_msg
return (False, None, is_test)
if len(argv) < 3: | 21b91eeade40d750da12cc42e89ab157911ed403 | src/utils/run_check.py | src/utils/run_check.py | Python |
<|file_sep|>original/build_grass.sh
export PATH=$ANACONDA_PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_2 grass-7.2.2
# curl -O https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz
# tar xvfz grass-7.2.0.tar.gz
conda create -n grass python=2.7
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
patch -p0 < platform.make.in.patch
patch -p0 < loader.py.patch
patch -p0 < rules.make.patch
patch -p0 < aclocal.m4.patch
patch -p0 < install.make.patch
patch -p0 < configure.patch
cd grass-7.2.2
bash ../configure.sh
make -j4 GDAL_DYNAMIC=
make -j4 install
<|file_sep|>current/build_grass.sh
export PATH=$ANACONDA_PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_2 grass-7.2.2
# curl -O https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz
# tar xvfz grass-7.2.0.tar.gz
conda create -n grass python=2.7
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
patch -p0 < platform.make.in.patch
patch -p0 < loader.py.patch
patch -p0 < rules.make.patch
patch -p0 < aclocal.m4.patch
patch -p0 < install.make.patch
patch -p0 < configure.patch
cd grass-7.2.2
bash ../configure.sh
make -j4 GDAL_DYNAMIC=
make -j4 install
<|file_sep|>updated/build_grass.sh | export PATH=$ANACONDA_PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_2 grass-7.2.2
# curl -O https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz
# tar xvfz grass-7.2.0.tar.gz
conda create -n grass python=2.7
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
patch -p0 < recipe/platform.make.in.patch
patch -p0 < recipe/loader.py.patch
patch -p0 < recipe/rules.make.patch
patch -p0 < recipe/aclocal.m4.patch
patch -p0 < recipe/install.make.patch
patch -p0 < recipe/configure.patch
cd grass-7.2.2
bash ../configure.sh
make -j4 GDAL_DYNAMIC=
make -j4 install | <|file_sep|>original/build_grass.sh
export PATH=$ANACONDA_PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_2 grass-7.2.2
# curl -O https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz
# tar xvfz grass-7.2.0.tar.gz
conda create -n grass python=2.7
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
patch -p0 < platform.make.in.patch
patch -p0 < loader.py.patch
patch -p0 < rules.make.patch
patch -p0 < aclocal.m4.patch
patch -p0 < install.make.patch
patch -p0 < configure.patch
cd grass-7.2.2
bash ../configure.sh
make -j4 GDAL_DYNAMIC=
make -j4 install
<|file_sep|>current/build_grass.sh
export PATH=$ANACONDA_PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_2 grass-7.2.2
# curl -O https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz
# tar xvfz grass-7.2.0.tar.gz
conda create -n grass python=2.7
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
patch -p0 < platform.make.in.patch
patch -p0 < loader.py.patch
patch -p0 < rules.make.patch
patch -p0 < aclocal.m4.patch
patch -p0 < install.make.patch
patch -p0 < configure.patch
cd grass-7.2.2
bash ../configure.sh
make -j4 GDAL_DYNAMIC=
make -j4 install
<|file_sep|>updated/build_grass.sh
export PATH=$ANACONDA_PREFIX/bin:/usr/bin:/bin:/usr/sbin:/etc:/usr/lib
svn checkout https://svn.osgeo.org/grass/grass/branches/releasebranch_7_2 grass-7.2.2
# curl -O https://grass.osgeo.org/grass72/source/grass-7.2.0.tar.gz
# tar xvfz grass-7.2.0.tar.gz
conda create -n grass python=2.7
source activate grass
conda install --yes --file=requirements.txt -c noaa-orr-erd -c defaults -c conda-forge
patch -p0 < recipe/platform.make.in.patch
patch -p0 < recipe/loader.py.patch
patch -p0 < recipe/rules.make.patch
patch -p0 < recipe/aclocal.m4.patch
patch -p0 < recipe/install.make.patch
patch -p0 < recipe/configure.patch
cd grass-7.2.2
bash ../configure.sh
make -j4 GDAL_DYNAMIC=
make -j4 install | 77a00dee785f1a7e83e225896bf11490b5fb77e1 | build_grass.sh | build_grass.sh | Shell |
<|file_sep|>original/sourcelover.json
<|file_sep|>current/sourcelover.json
<|file_sep|>updated/sourcelover.json | {
"name": "Draw!",
"description": "Draw 16 x 16 animated pictures. Draw! is a social flavored online pixel art editor.",
"author": {
"name": "Giovanni Cappellotto",
"email": "potomak84@gmail.com"
},
"languages": ["ruby", "javascript"],
"version": "0.5.20",
"keywords": ["pixel", "art", "animation", "pictures", "draw"],
"homepage": "http://drawbang.com/",
"paypal_email": "potomak84@gmail.com",
"donation_packages": [
{
"name": "Fan",
"description": "Show you like Draw!",
"amount": "5.00"
},
{
"name": "Supporter",
"description": "You often use Draw! and are getting addicted to animated pixel art", | <|file_sep|>original/sourcelover.json
<|file_sep|>current/sourcelover.json
<|file_sep|>updated/sourcelover.json
{
"name": "Draw!",
"description": "Draw 16 x 16 animated pictures. Draw! is a social flavored online pixel art editor.",
"author": {
"name": "Giovanni Cappellotto",
"email": "potomak84@gmail.com"
},
"languages": ["ruby", "javascript"],
"version": "0.5.20",
"keywords": ["pixel", "art", "animation", "pictures", "draw"],
"homepage": "http://drawbang.com/",
"paypal_email": "potomak84@gmail.com",
"donation_packages": [
{
"name": "Fan",
"description": "Show you like Draw!",
"amount": "5.00"
},
{
"name": "Supporter",
"description": "You often use Draw! and are getting addicted to animated pixel art", | 7360fc8bc6dc651669d0dc9be1208731451bfc37 | sourcelover.json | sourcelover.json | JSON |
<|file_sep|>original/CONTRIBUTORS.md
* [Pavel Polyakov](http://pavelpolyakov.com) [[github]](https://github.com/PavelPolyakov) [[linkedin]](https://de.linkedin.com/pub/pavel-polyakov/15/b23/856)
<|file_sep|>current/CONTRIBUTORS.md
* [Pavel Polyakov](http://pavelpolyakov.com) [[github]](https://github.com/PavelPolyakov) [[linkedin]](https://de.linkedin.com/pub/pavel-polyakov/15/b23/856)
<|file_sep|>updated/CONTRIBUTORS.md | * [Pavel Polyakov](http://pavelpolyakov.com) [[github]](https://github.com/PavelPolyakov) [[linkedin]](https://de.linkedin.com/pub/pavel-polyakov/15/b23/856)
* Devin Ivy [[github]](https://github.com/devinivy) | <|file_sep|>original/CONTRIBUTORS.md
* [Pavel Polyakov](http://pavelpolyakov.com) [[github]](https://github.com/PavelPolyakov) [[linkedin]](https://de.linkedin.com/pub/pavel-polyakov/15/b23/856)
<|file_sep|>current/CONTRIBUTORS.md
* [Pavel Polyakov](http://pavelpolyakov.com) [[github]](https://github.com/PavelPolyakov) [[linkedin]](https://de.linkedin.com/pub/pavel-polyakov/15/b23/856)
<|file_sep|>updated/CONTRIBUTORS.md
* [Pavel Polyakov](http://pavelpolyakov.com) [[github]](https://github.com/PavelPolyakov) [[linkedin]](https://de.linkedin.com/pub/pavel-polyakov/15/b23/856)
* Devin Ivy [[github]](https://github.com/devinivy) | 1b06d7ecafa98800857c7934e320ff9d8c3b828b | CONTRIBUTORS.md | CONTRIBUTORS.md | Markdown |
<|file_sep|>original/packages/sm/smtlib2-timing.yaml
<|file_sep|>current/packages/sm/smtlib2-timing.yaml
<|file_sep|>updated/packages/sm/smtlib2-timing.yaml | homepage: ''
changelog-type: ''
hash: 75f8a394aec8be1890bafa13d084369b105d4ab5d84c045f7279c79611ec0f9f
test-bench-deps: {}
maintainer: guenther@forsyte.at
synopsis: Get timing informations for SMT queries
changelog: ''
basic-deps:
smtlib2: ! '>=1.0 && <1.1'
dependent-sum: -any
base: ! '>=4 && <5'
time: -any
mtl: -any
all-versions:
- '1.0'
author: Henning Günther <guenther@forsyte.at>
latest: '1.0'
description-type: haddock
description: ''
license-name: GPL-3 | <|file_sep|>original/packages/sm/smtlib2-timing.yaml
<|file_sep|>current/packages/sm/smtlib2-timing.yaml
<|file_sep|>updated/packages/sm/smtlib2-timing.yaml
homepage: ''
changelog-type: ''
hash: 75f8a394aec8be1890bafa13d084369b105d4ab5d84c045f7279c79611ec0f9f
test-bench-deps: {}
maintainer: guenther@forsyte.at
synopsis: Get timing informations for SMT queries
changelog: ''
basic-deps:
smtlib2: ! '>=1.0 && <1.1'
dependent-sum: -any
base: ! '>=4 && <5'
time: -any
mtl: -any
all-versions:
- '1.0'
author: Henning Günther <guenther@forsyte.at>
latest: '1.0'
description-type: haddock
description: ''
license-name: GPL-3 | be8c76649a90e733c2a9b18fd7973e31f8a61d36 | packages/sm/smtlib2-timing.yaml | packages/sm/smtlib2-timing.yaml | YAML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.