commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
260e1237bf04338b1eb19a16613ce3f1c26f9256 | CMakeLists.txt | CMakeLists.txt | cmake_minimum_required(VERSION 3.5)
project(PlanckUnit)
# Use cmake -DJENKINS_BUILD=ON <project_folder> to use XML format rather than the default.
if(JENKINS_BUILD)
add_definitions(-DPLANCK_UNIT_OUTPUT_STYLE_XML)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
examples/test_... | cmake_minimum_required(VERSION 3.5)
project(PlanckUnit)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
examples/test_example.c
src/planck_unit.c
)
add_executable(PlanckUnit ${SOURCE_FILES}) | Move JENKINS_BUILD compile flag to IonDB repo | Move JENKINS_BUILD compile flag to IonDB repo
| Text | apache-2.0 | iondbproject/PlanckUnit,iondbproject/PlanckUnit | text | ## Code Before:
cmake_minimum_required(VERSION 3.5)
project(PlanckUnit)
# Use cmake -DJENKINS_BUILD=ON <project_folder> to use XML format rather than the default.
if(JENKINS_BUILD)
add_definitions(-DPLANCK_UNIT_OUTPUT_STYLE_XML)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES
... |
349ae511944dd5f27d8de9eb886c25575af672e5 | README.md | README.md | Flexible software rasterizer
## Needs implemented
- backface culling - (easy) - calc normal of polygon, if negative discard
- z-buffer - (easy) - record per pixel z in buffer
- matrix types - (medium) - types and operators
- actually update raster :D - (easy) - record pixel in raster if z-buffer matches
- raster color... | Flexible software rasterizer
## Needs implemented
- backface culling - (easy) - calc normal of polygon, if negative discard
- z-buffer - (easy) - record per pixel z in buffer
- matrix types - (medium) - types and operators
- raster color space - (medium) convert float pixel amounts to integer amounts in color space
- ... | Mark implementation thing off the list | Mark implementation thing off the list
| Markdown | isc | joekarl/hack-rasterizer | markdown | ## Code Before:
Flexible software rasterizer
## Needs implemented
- backface culling - (easy) - calc normal of polygon, if negative discard
- z-buffer - (easy) - record per pixel z in buffer
- matrix types - (medium) - types and operators
- actually update raster :D - (easy) - record pixel in raster if z-buffer matche... |
d056b5601bd4bac0e609d424f05533fe4bc97e30 | docs/requirements.readthedocs.txt | docs/requirements.readthedocs.txt | sphinx>=1.3.6
| sphinx>=1.3.6
typing==3.5.0.1
| Add python-tyoing to RTD dependencies. | docs: Add python-tyoing to RTD dependencies.
This should fix the RTD build having been broken since
d9c4be87d1046af6883c4b282e91ebf035fc860b.
| Text | apache-2.0 | souravbadami/zulip,brainwane/zulip,andersk/zulip,verma-varsha/zulip,sup95/zulip,rishig/zulip,brockwhittaker/zulip,dattatreya303/zulip,blaze225/zulip,krtkmj/zulip,isht3/zulip,SmartPeople/zulip,krtkmj/zulip,Vallher/zulip,amyliu345/zulip,souravbadami/zulip,TigorC/zulip,isht3/zulip,calvinleenyc/zulip,jainayush975/zulip,and... | text | ## Code Before:
sphinx>=1.3.6
## Instruction:
docs: Add python-tyoing to RTD dependencies.
This should fix the RTD build having been broken since
d9c4be87d1046af6883c4b282e91ebf035fc860b.
## Code After:
sphinx>=1.3.6
typing==3.5.0.1
|
444577066079731dc0057c805c62130f825f2b28 | src/Traits/Governable.php | src/Traits/Governable.php | <?php namespace GeneaLabs\LaravelGovernor\Traits;
use GeneaLabs\LaravelGovernor\Permission;
use GeneaLabs\LaravelGovernor\Role;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Support\Collection;
trait Governable
{
public function isRole(string $name) : bool
{
$this->load('rol... | <?php namespace GeneaLabs\LaravelGovernor\Traits;
use GeneaLabs\LaravelGovernor\Permission;
use GeneaLabs\LaravelGovernor\Role;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Support\Collection;
trait Governable
{
public function hasRole(string $name) : bool
{
$this->load('ro... | Rename `isRole` to `hasRole` and return true if SuperAdmin | Rename `isRole` to `hasRole` and return true if SuperAdmin | PHP | mit | GeneaLabs/laravel-governor,GeneaLabs/laravel-governor | php | ## Code Before:
<?php namespace GeneaLabs\LaravelGovernor\Traits;
use GeneaLabs\LaravelGovernor\Permission;
use GeneaLabs\LaravelGovernor\Role;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Support\Collection;
trait Governable
{
public function isRole(string $name) : bool
{
... |
f71dd9055ba04d8aa0024d66d0782107a4b1ca08 | lmod_proxy/tests/test_web.py | lmod_proxy/tests/test_web.py | import imp
from lmod_proxy.tests.common import CommonTest
class TestWeb(CommonTest):
"""Verify the root Web app. Currently it just redirects to edx_grades"""
def setUp(self):
"""Setup commonly needed objects like the flask test client"""
super(TestWeb, self).setUp()
import lmod_prox... | import imp
import mock
from passlib.apache import HtpasswdFile
from lmod_proxy.tests.common import CommonTest
class TestWeb(CommonTest):
"""Verify the root Web app. Currently it just redirects to edx_grades"""
def setUp(self):
"""Setup commonly needed objects like the flask test client"""
... | Verify we handle null HTPasswd files | Verify we handle null HTPasswd files
| Python | agpl-3.0 | mitodl/lmod_proxy,mitodl/lmod_proxy,mitodl/lmod_proxy | python | ## Code Before:
import imp
from lmod_proxy.tests.common import CommonTest
class TestWeb(CommonTest):
"""Verify the root Web app. Currently it just redirects to edx_grades"""
def setUp(self):
"""Setup commonly needed objects like the flask test client"""
super(TestWeb, self).setUp()
... |
406489ebed87dbba6819f3ea364440b5975cee2b | group_vars/all/betacloud.yml | group_vars/all/betacloud.yml | ---
##########################
# betacloud
betacloud_cobbler: no
betacloud_firewall: no
betacloud_networking: no
betacloud_proxy: no
betacloud_system_hardening: yes
betacloud_management_interface: enp0s8
##########################
# services
ara_server_host: "{{ hostvars[inventory_hostname]['ansible_' + betacloud_m... | ---
##########################
# betacloud
betacloud_cobbler: no
betacloud_firewall: no
betacloud_networking: no
betacloud_proxy: no
betacloud_system_hardening: yes
betacloud_management_interface: enp0s8
##########################
# services
ara_server_host: "{{ hostvars[inventory_hostname]['ansible_' + betacloud_m... | Move docker registry to port 5001 | Move docker registry to port 5001
| YAML | apache-2.0 | betacloud/configuration-vagrant | yaml | ## Code Before:
---
##########################
# betacloud
betacloud_cobbler: no
betacloud_firewall: no
betacloud_networking: no
betacloud_proxy: no
betacloud_system_hardening: yes
betacloud_management_interface: enp0s8
##########################
# services
ara_server_host: "{{ hostvars[inventory_hostname]['ansible... |
914e1e1d44168ea0d012bab6059032839830291a | src/fetch-on-update.jsx | src/fetch-on-update.jsx | import React, { Component } from "react";
import { get, set } from "lodash";
import shallowEqual from "shallowequal";
export default function fetchOnUpdate(fn, ...keys) {
return DecoratedComponent => class FetchOnUpdateDecorator extends Component {
componentWillMount() {
fn(this.props);
}
componentDidUpdate... | import React, { Component } from "react";
import { get } from "lodash";
import shallowEqual from "shallowequal";
export default function fetchOnUpdate(fn, ...keys) {
return DecoratedComponent => class FetchOnUpdateDecorator extends Component {
componentWillMount() {
fn(this.props);
}
componentDidUpdate (pre... | Use reduce instead of lodash.set | Use reduce instead of lodash.set
| JSX | mit | civicsource/redux-rsi | jsx | ## Code Before:
import React, { Component } from "react";
import { get, set } from "lodash";
import shallowEqual from "shallowequal";
export default function fetchOnUpdate(fn, ...keys) {
return DecoratedComponent => class FetchOnUpdateDecorator extends Component {
componentWillMount() {
fn(this.props);
}
co... |
c9636ae943a53bf25ddf4327d31d54533e10ce51 | lib/faraday/null_response_body.rb | lib/faraday/null_response_body.rb | module FaradayMiddleware
# @private
class NullResponseBody < Faraday::Middleware
def call(env)
@app.call(env).on_complete do |response|
if response[:body] == "null"
response[:body] = {}
end
end
end
end
end | module FaradayMiddleware
# This middleware handles any responses where the body
# is 'null' which is the case when asking teamcity for
# an empty collection. When this is encountered we
# set the response to an empty json object
class NullResponseBody < Faraday::Middleware
# Faraday Middleware
# @not... | Add some documentation around the faraday middleware | Add some documentation around the faraday middleware
| Ruby | mit | jperry/teamcity-ruby-client,badaiv/teamcity-ruby-client,Tiger66639/teamcity-ruby-client,masgari/teamcity-ruby-client | ruby | ## Code Before:
module FaradayMiddleware
# @private
class NullResponseBody < Faraday::Middleware
def call(env)
@app.call(env).on_complete do |response|
if response[:body] == "null"
response[:body] = {}
end
end
end
end
end
## Instruction:
Add some documentation around ... |
db2098994329ccf6db9529c5a9ed2bc21972606c | index.html | index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网易云音乐 web</title>
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1469522143_7298682.css" charset="utf-8">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_pqi0zqr9sfwrvn29.css" charset="utf-8">
<link rel="style... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网易云音乐 web</title>
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1469522143_7298682.css" charset="utf-8">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_a97k30p7hnay8pvi.css" charset="utf-8">
<link rel="style... | Add many icons from ali-iconfont. | Add many icons from ali-iconfont.
| HTML | mit | lilongllong/netease-music-react,lilongllong/netease-music-react | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网易云音乐 web</title>
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1469522143_7298682.css" charset="utf-8">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_pqi0zqr9sfwrvn29.css" charset="utf-8">
... |
377743b0083df7f062c26e6513dd9563ea0c119c | src/EmbedData.hs | src/EmbedData.hs | {-# LANGUAGE TemplateHaskell #-}
module EmbedData
( hlintYaml,
defaultYaml,
reportTemplate,
)
where
import Data.ByteString.UTF8
import Data.FileEmbed
hlintYaml :: (FilePath, Maybe String)
hlintYaml = ("data/hlint.yaml", Just $ toString $(embedFile "data/hlint.yaml"))
defaultYaml :: String
defaultYaml = ... | {-# LANGUAGE TemplateHaskell #-}
module EmbedData
( hlintYaml,
defaultYaml,
reportTemplate,
)
where
import Data.ByteString.UTF8
import Data.FileEmbed
-- Use NOINLINE below to avoid dirtying too much when these files change
{-# NOINLINE hlintYaml #-}
hlintYaml :: (FilePath, Maybe String)
hlintYaml = ("da... | Add NOINLINE to change fewer things when the data files change | Add NOINLINE to change fewer things when the data files change
| Haskell | bsd-3-clause | ndmitchell/hlint,ndmitchell/hlint | haskell | ## Code Before:
{-# LANGUAGE TemplateHaskell #-}
module EmbedData
( hlintYaml,
defaultYaml,
reportTemplate,
)
where
import Data.ByteString.UTF8
import Data.FileEmbed
hlintYaml :: (FilePath, Maybe String)
hlintYaml = ("data/hlint.yaml", Just $ toString $(embedFile "data/hlint.yaml"))
defaultYaml :: Strin... |
a05e383d62435d95a6f980828cffe1461a9fed4e | css/body.css | css/body.css | html.hui
{
height: 100%;
}
body.hui
{
margin: 0px;
background: #f3f5f7;
overflow: auto;
min-height: 100%;
height: 100%;
}
body.hui, body.hui textarea
{
font-family: "Lucida Grande","Lucida Sans Unicode",sans-serif;
}
div.hui_body
{
height: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit... | html.hui
{
height: 100%;
}
body.hui
{
margin: 0px;
background: #f3f5f7;
overflow: auto;
min-height: 100%;
height: 100%;
}
body.hui
{
font-family: "Lucida Grande","Lucida Sans Unicode",sans-serif;
}
div.hui_body
{
height: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border... | Fix issue with textarea font | Fix issue with textarea font
| CSS | unlicense | Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui,Humanise/hui | css | ## Code Before:
html.hui
{
height: 100%;
}
body.hui
{
margin: 0px;
background: #f3f5f7;
overflow: auto;
min-height: 100%;
height: 100%;
}
body.hui, body.hui textarea
{
font-family: "Lucida Grande","Lucida Sans Unicode",sans-serif;
}
div.hui_body
{
height: 100%;
box-sizing: border-box;
-moz-box-sizing: bord... |
3b8650f1ecac51b9a9f78944b0843e3af0dca252 | Standards/WCAG2AAA/Sniffs/Principle2/Guideline2_4/2_4_4.js | Standards/WCAG2AAA/Sniffs/Principle2/Guideline2_4/2_4_4.js | var HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_4 = {
register: function()
{
return ['a'];
},
process: function(element)
{
HTMLCS.addMessage(HTMLCS.NOTICE, element, 'Check that the link text combined with programmatically determined link context identifies the purpose of the... | var HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_4 = {
register: function()
{
return ['a'];
},
process: function(element)
{
if (element.hasAttribute('title') === true) {
HTMLCS.addMessage(HTMLCS.NOTICE, element, 'Check that the link text combined with programmatic... | Add title attribute test to 2.4.4 (H33). | Add title attribute test to 2.4.4 (H33).
This is another "in context" notice. Only one notice will be thrown per link: if there is a title attribute, one notice will point to H77-81 AND H33 at once, if not, just to H77-81.
| JavaScript | bsd-3-clause | telesma/HTML_CodeSniffer,telesma/HTML_CodeSniffer,daam/HTML_CodeSniffer,lwright-sq/HTML_CodeSniffer,daam/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,daam/HTML_CodeSniffer,adelevie/HTML_CodeSniffer,telesma/HTML_CodeSniffer,squizlabs/HTML_CodeSniffer,ironikart/HTML_CodeSniffer,squizlabs/HTML_CodeSniffer,squizlabs/HTML_Cod... | javascript | ## Code Before:
var HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_4 = {
register: function()
{
return ['a'];
},
process: function(element)
{
HTMLCS.addMessage(HTMLCS.NOTICE, element, 'Check that the link text combined with programmatically determined link context identifies th... |
2b1f7fb29989c15eb1fceaac682daf20b99e88bc | files/entrypoint.sh | files/entrypoint.sh |
case "$1" in
'bash')
exec bash
;;
'gen-key')
if [ "random" = "$PASSPHRASE" ]; then
PASSPHRASE=$(pwgen 16 1)
fi
cat << EOF | gpg --batch --gen-key
%echo Generating a key
Key-Type: $KEY_TYPE
Key-Length: $KEY_LENGTH
Subkey-Type: $... |
case "$1" in
'bash')
exec bash
;;
'gen-key')
if [ "random" = "$PASSPHRASE" ]; then
PASSPHRASE=$(pwgen 16 1)
fi
cat << EOF | gpg --batch --gen-key
%echo Generating a key
Key-Type: $KEY_TYPE
Key-Length: $KEY_LENGTH
Subkey-Type: $... | Use option '--allow-source-mismatch' by default | Use option '--allow-source-mismatch' by default
Duply checks the hostname and issues an error if it has changed since
the last backup. With docker new random hostnames are normal.
Using this option disables this behaviour.
Closes #5
| Shell | mit | kurthuwig/docker-duply | shell | ## Code Before:
case "$1" in
'bash')
exec bash
;;
'gen-key')
if [ "random" = "$PASSPHRASE" ]; then
PASSPHRASE=$(pwgen 16 1)
fi
cat << EOF | gpg --batch --gen-key
%echo Generating a key
Key-Type: $KEY_TYPE
Key-Length: $KEY_LENGTH
... |
c1c665c0ea50ff8794742c6ad1672327aae1adc1 | circle.yml | circle.yml | machine:
java:
version: oraclejdk8
environment:
GRADLE_OPTS: '-Xmx512m -XX:+UseG1GC -XX:+CMSClassUnloadingEnabled -XX:InitialCodeCacheSize=64M -XX:CodeCacheExpansionSize=1M -XX:CodeCacheMinimumFreeSpace=1M -XX:ReservedCodeCacheSize=200M -XX:MinMetaspaceExpansion=1M -XX:MaxMetaspaceExpansion=8M -XX:MaxMe... | machine:
java:
version: oraclejdk8
environment:
GRADLE_OPTS: '-Xmx512m -XX:+UseG1GC -XX:+CMSClassUnloadingEnabled -XX:InitialCodeCacheSize=64M -XX:CodeCacheExpansionSize=1M -XX:CodeCacheMinimumFreeSpace=1M -XX:ReservedCodeCacheSize=200M -XX:MinMetaspaceExpansion=1M -XX:MaxMetaspaceExpansion=8M -XX:MaxMe... | Increase 'gradle test' timeout on Circle CI | Increase 'gradle test' timeout on Circle CI
| YAML | apache-2.0 | michel-kraemer/vertx-lang-typescript,michel-kraemer/vertx-lang-typescript,michel-kraemer/vertx-lang-typescript | yaml | ## Code Before:
machine:
java:
version: oraclejdk8
environment:
GRADLE_OPTS: '-Xmx512m -XX:+UseG1GC -XX:+CMSClassUnloadingEnabled -XX:InitialCodeCacheSize=64M -XX:CodeCacheExpansionSize=1M -XX:CodeCacheMinimumFreeSpace=1M -XX:ReservedCodeCacheSize=200M -XX:MinMetaspaceExpansion=1M -XX:MaxMetaspaceExpansion=... |
949c79374484f2366bc56468ba5c706823bc8d7e | database/seeds/UserSeeder.php | database/seeds/UserSeeder.php | <?php
use Illuminate\Database\Seeder;
use Bdgt\Resources\User;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create();
for ($i = 0; $i < 30; $i++) {
User::create([
... | <?php
use Illuminate\Database\Seeder;
use Bdgt\Resources\User;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create();
User::create([
'id' => null,
'username' ... | Add dummy user with known credentials, some of the seed objects will be randomly assigned to it | Add dummy user with known credentials, some of the seed objects will be randomly assigned to it
| PHP | mit | sbine/bdgt,sbine/bdgt,sbine/bdgt | php | ## Code Before:
<?php
use Illuminate\Database\Seeder;
use Bdgt\Resources\User;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create();
for ($i = 0; $i < 30; $i++) {
User::... |
d06f4466cf9ccb6f88df96798d96df8880a94276 | setup.py | setup.py | import os
from setuptools import setup, find_packages
__version__ = '0.1'
HERE = os.path.dirname(__file__)
try:
long_description = open(os.path.join(HERE, 'README.rst')).read()
except:
long_description = None
setup(
name='rubberjack-cli',
version=__version__,
packages=find_packages(exclude=['tes... | import os
from setuptools import setup, find_packages
__version__ = '0.1'
HERE = os.path.dirname(__file__)
try:
long_description = open(os.path.join(HERE, 'README.rst')).read()
except:
long_description = None
setup(
name='rubberjack-cli',
version=__version__,
packages=find_packages(exclude=['tes... | Drop `author_email` - oops, excessive copy-paste | Drop `author_email` - oops, excessive copy-paste
| Python | mit | laterpay/rubberjack-cli | python | ## Code Before:
import os
from setuptools import setup, find_packages
__version__ = '0.1'
HERE = os.path.dirname(__file__)
try:
long_description = open(os.path.join(HERE, 'README.rst')).read()
except:
long_description = None
setup(
name='rubberjack-cli',
version=__version__,
packages=find_packag... |
8f4bac19ac0b90bcd5a9405575b8cdbe37f2f5a3 | lib/static_sync/config.rb | lib/static_sync/config.rb | require "erb"
module StaticSync
class Config < Hash
def log
self.fetch('log', true)
end
def cache
self.fetch('cache', {})
end
def source
self.fetch('local', {})['directory']
end
def remote
self.fetch('remote', {})
end
def storage
Fog::Storage.new... | require "erb"
module StaticSync
class Config < Hash
def log
self.fetch('log', true)
end
def cache
self.fetch('cache', {})
end
def source
self.fetch('local', {})['directory']
end
def remote
self.fetch('remote', {})
end
def storage
Fog::Storage.new... | Allow regions to be supplied. | Allow regions to be supplied.
| Ruby | mit | compactcode/static_sync,envato/static_sync | ruby | ## Code Before:
require "erb"
module StaticSync
class Config < Hash
def log
self.fetch('log', true)
end
def cache
self.fetch('cache', {})
end
def source
self.fetch('local', {})['directory']
end
def remote
self.fetch('remote', {})
end
def storage
... |
1d8f7d4a57b145fa3f8cce12a55b02eb0a754581 | crypto/envelope.py | crypto/envelope.py |
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(com, key, msg):
v = hashlib.sha256()
v.update(key)
v.update(msg)
try:
assert v.hexdigest() == com
return "M... |
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(com, key, msg):
v = hashlib.sha256()
v.update(key)
v.update(msg)
try:
assert v.hexdigest() == com
return "M... | Make the key 'more secure' | Make the key 'more secure'
| Python | mit | b-ritter/python-notes,b-ritter/python-notes | python | ## Code Before:
import hashlib
def commit(key, msg):
m = hashlib.sha256()
m.update(key)
m.update(msg)
return {
"hash": m.hexdigest(),
"key": key
}
def verify(com, key, msg):
v = hashlib.sha256()
v.update(key)
v.update(msg)
try:
assert v.hexdigest() == com
... |
8a9d224a2a05e67ddafccd8564ad6db306d329ef | appveyor.yml | appveyor.yml | build: false
environment:
matrix:
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.3"
PYTHON_ARCH: "64"
init:
- "echo %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- "cinst vlc"
- "%PYTHON%/Scripts/pip.exe install -r requirements.txt"
test_script:
- "echo y | cmd /c %PYTHON%/python.... | build: false
environment:
matrix:
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.3"
PYTHON_ARCH: "64"
init:
- "echo %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- "cinst vlc"
- "%PYTHON%/Scripts/pip.exe install -r requirements.txt"
test_script:
- ps: &"$PYTHON/python.exe" ./tests... | Use Powershell to run tests | Use Powershell to run tests
| YAML | mit | Nadeflore/dakara-player-vlc | yaml | ## Code Before:
build: false
environment:
matrix:
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.3"
PYTHON_ARCH: "64"
init:
- "echo %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- "cinst vlc"
- "%PYTHON%/Scripts/pip.exe install -r requirements.txt"
test_script:
- "echo y | cmd /c ... |
8e7c020bc33b0dedcae4917cf01440f5f561f0f0 | githubpinboard.css | githubpinboard.css | .githubpinboard-circle {
border-radius: 1000px;
width: 50px;
height: 50px;
-webkit-box-shadow: 0px 0px 5px #111;
margin: 10px;
float: left;
}
| .githubpinboard-circle {
border-radius: 1000px;
width: 50px;
height: 50px;
-webkit-box-shadow: 0px 0px 5px #111;
-moz-box-shadow: 0px 0px 5px #111;
box-shadow: 0px 0px 5px #111;
margin: 10px;
float: left;
}
| Make pin drop-shadow work in Firefox. | Make pin drop-shadow work in Firefox.
| CSS | mit | copypastel/github-pinboard | css | ## Code Before:
.githubpinboard-circle {
border-radius: 1000px;
width: 50px;
height: 50px;
-webkit-box-shadow: 0px 0px 5px #111;
margin: 10px;
float: left;
}
## Instruction:
Make pin drop-shadow work in Firefox.
## Code After:
.githubpinboard-circle {
border-radius: 1000px;
width: 50px;
height: 50px... |
a90eee2b6544183bc1818d2087d5faeacb5a9121 | db/migrations/1503021056__add_area_to_country.sql | db/migrations/1503021056__add_area_to_country.sql | -- Add area to country (in square km).
-- Copyright (c) 2014 University of Oxford
ALTER TABLE country ADD COLUMN area double precision;
UPDATE country SET area=st_area(st_transform(geom, 3410))/1000000;
ALTER TABLE country ALTER COLUMN area SET NOT NULL; | -- Add area to country (in square km). "COALESCE with 0" is for compatibility with "create.test.database", where some countries lack geoms.
-- Copyright (c) 2014 University of Oxford
ALTER TABLE country ADD COLUMN area double precision;
UPDATE country SET area=COALESCE(st_area(st_transform(geom, 3410))/1000000, 0);
AL... | Make sure area migration works with test data | Make sure area migration works with test data
| SQL | apache-2.0 | SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP,SEEG-Oxford/ABRAID-MP | sql | ## Code Before:
-- Add area to country (in square km).
-- Copyright (c) 2014 University of Oxford
ALTER TABLE country ADD COLUMN area double precision;
UPDATE country SET area=st_area(st_transform(geom, 3410))/1000000;
ALTER TABLE country ALTER COLUMN area SET NOT NULL;
## Instruction:
Make sure area migration works w... |
6b6181f1c2f902f20da440eb3bedb5d02ecfbf16 | angr/engines/soot/expressions/cast.py | angr/engines/soot/expressions/cast.py |
from .base import SimSootExpr
from archinfo import ArchSoot
import logging
l = logging.getLogger("angr.engines.soot.expressions.cast")
class SimSootExpr_Cast(SimSootExpr):
def __init__(self, expr, state):
super(SimSootExpr_Cast, self).__init__(expr, state)
def _execute(self):
if self.expr.... |
from .base import SimSootExpr
from archinfo import ArchSoot
import logging
l = logging.getLogger("angr.engines.soot.expressions.cast")
class SimSootExpr_Cast(SimSootExpr):
def __init__(self, expr, state):
super(SimSootExpr_Cast, self).__init__(expr, state)
def _execute(self):
if self.expr.... | Use correct dict for the type sizes | Use correct dict for the type sizes
| Python | bsd-2-clause | iamahuman/angr,iamahuman/angr,iamahuman/angr,angr/angr,schieb/angr,schieb/angr,angr/angr,schieb/angr,angr/angr | python | ## Code Before:
from .base import SimSootExpr
from archinfo import ArchSoot
import logging
l = logging.getLogger("angr.engines.soot.expressions.cast")
class SimSootExpr_Cast(SimSootExpr):
def __init__(self, expr, state):
super(SimSootExpr_Cast, self).__init__(expr, state)
def _execute(self):
... |
d5a6dd75e88f6a810a099e69e0ea64eb15757117 | src/CMakeLists.txt | src/CMakeLists.txt | set(DEPS_DIR "${laco_SOURCE_DIR}/deps")
include_directories("${DEPS_DIR}/linenoise")
set(SOURCE ${DEPS_DIR}/linenoise/linenoise.c
main.c util.c util/print.c
flags.c laco.c)
add_executable(laco ${SOURCE})
target_link_libraries(laco ${LACO_LUA})
install(TARGETS laco
RUNTIME DESTINATION bin)
| set(DEPS_DIR "${laco_SOURCE_DIR}/deps")
include_directories("${DEPS_DIR}/linenoise")
set(SOURCE ${DEPS_DIR}/linenoise/linenoise.c
main.c util.c util/print.c
flags.c commands.c laco.c)
add_executable(laco ${SOURCE})
target_link_libraries(laco ${LACO_LUA})
install(TARGETS laco
RUNTIME DESTINAT... | Add commands.c to the cmake build | Add commands.c to the cmake build
| Text | bsd-2-clause | sourrust/laco | text | ## Code Before:
set(DEPS_DIR "${laco_SOURCE_DIR}/deps")
include_directories("${DEPS_DIR}/linenoise")
set(SOURCE ${DEPS_DIR}/linenoise/linenoise.c
main.c util.c util/print.c
flags.c laco.c)
add_executable(laco ${SOURCE})
target_link_libraries(laco ${LACO_LUA})
install(TARGETS laco
RUNTIME DES... |
c4fa1b679cd11897991119988dba2a1925aabf14 | src/test/resources/webapp/home.jsp | src/test/resources/webapp/home.jsp | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<title>Home</title>
</head>
<body>
<h1>Hello world! This is a JSP.</h1>
<P>The time on the server is ${serverTime}.</P>
<p>Here are some items:</p>
<ul>
<c:forEach var="item" items="${someItems}">
... | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<meta charset='utf-8' >
<title>Home</title>
</head>
<body>
<h1>Hello world! This is a JSP. 了就好了</h1>
<P>The time on the server is ${serverTime}.</P>
<p>Here... | Use utf-8 in demo jsp. | Use utf-8 in demo jsp.
| Java Server Pages | apache-2.0 | wacai/json-template-renderer | java-server-pages | ## Code Before:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<title>Home</title>
</head>
<body>
<h1>Hello world! This is a JSP.</h1>
<P>The time on the server is ${serverTime}.</P>
<p>Here are some items:</p>
<ul>
<c:forEach var="item" items="${som... |
03913013e30c31a646def283cdec44f153adb572 | src/test/java/org/realityforge/jeo/geolatte/jpa/eclipselink/DatabaseTestUtil.java | src/test/java/org/realityforge/jeo/geolatte/jpa/eclipselink/DatabaseTestUtil.java | package org.realityforge.jeo.geolatte.jpa.eclipselink;
import java.util.Properties;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class DatabaseTestUtil
{
static Properties initDatabaseProperties()
{
final Properties propert... | package org.realityforge.jeo.geolatte.jpa.eclipselink;
import java.util.Properties;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class DatabaseTestUtil
{
static Properties initDatabaseProperties()
{
final Properties propert... | Revert to using the base postgres driver in tests | Revert to using the base postgres driver in tests
| Java | apache-2.0 | realityforge/geolatte-geom-eclipselink,realityforge/geolatte-geom-jpa,realityforge/geolatte-geom-jpa,realityforge/geolatte-geom-eclipselink | java | ## Code Before:
package org.realityforge.jeo.geolatte.jpa.eclipselink;
import java.util.Properties;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
public class DatabaseTestUtil
{
static Properties initDatabaseProperties()
{
final Pr... |
65d8715705e07dc7f091e2da47a7ada923c6cfbb | release.py | release.py |
import os
import subprocess
import pkg_resources
pkg_resources.require('jaraco.packaging>=2.0')
pkg_resources.require('wheel')
def before_upload():
BootstrapBookmark.add()
def after_push():
os.remove('CHANGES (links).txt')
BootstrapBookmark.push()
files_with_versions = (
'ez_setup.py', 'setuptoo... |
import os
import subprocess
import pkg_resources
pkg_resources.require('jaraco.packaging>=2.0')
pkg_resources.require('wheel')
def before_upload():
BootstrapBookmark.add()
def after_push():
BootstrapBookmark.push()
files_with_versions = (
'ez_setup.py', 'setuptools/version.py',
)
# bdist_wheel must... | Remove lingering reference to linked changelog. | Remove lingering reference to linked changelog.
| Python | mit | pypa/setuptools,pypa/setuptools,pypa/setuptools | python | ## Code Before:
import os
import subprocess
import pkg_resources
pkg_resources.require('jaraco.packaging>=2.0')
pkg_resources.require('wheel')
def before_upload():
BootstrapBookmark.add()
def after_push():
os.remove('CHANGES (links).txt')
BootstrapBookmark.push()
files_with_versions = (
'ez_setu... |
62a7e724a256176490206544d919e134503ebb6f | db/migrate/20151031092713_change_conference_id_to_venue_id_in_rooms.rb | db/migrate/20151031092713_change_conference_id_to_venue_id_in_rooms.rb | class ChangeConferenceIdToVenueIdInRooms < ActiveRecord::Migration
class TempConference < ActiveRecord::Base
self.table_name = 'conferences'
has_one :temp_venue
end
class TempVenue < ActiveRecord::Base
self.table_name = 'venues'
belongs_to :temp_conference
has_many :temp_rooms
end
clas... | class ChangeConferenceIdToVenueIdInRooms < ActiveRecord::Migration
class TempConference < ActiveRecord::Base
self.table_name = 'conferences'
has_one :temp_venue
end
class TempVenue < ActiveRecord::Base
self.table_name = 'venues'
belongs_to :temp_conference
has_many :temp_rooms
end
clas... | Fix sqlite behavior with not null constraint, so that it works both for sqlite and mysql | Fix sqlite behavior with not null constraint, so that it works both for sqlite and mysql
| Ruby | mit | ChrisBr/osem,namangupta01/osem,rishabhptr/osem,ChrisBr/osem,BelieveC/osem,kormoc/osem,AndrewKvalheim/osem,namangupta01/osem,ChrisBr/osem,kormoc/osem,openSUSE/osem,differentreality/osem,hennevogel/osem,BelieveC/osem,Shriyanshagro/osem,namangupta01/osem,bear454/osem,ChrisBr/osem,SeaGL/osem,openSUSE/osem,openSUSE/osem,dif... | ruby | ## Code Before:
class ChangeConferenceIdToVenueIdInRooms < ActiveRecord::Migration
class TempConference < ActiveRecord::Base
self.table_name = 'conferences'
has_one :temp_venue
end
class TempVenue < ActiveRecord::Base
self.table_name = 'venues'
belongs_to :temp_conference
has_many :temp_roo... |
84e696074813b58f4af84f694fc0a6ff697bc137 | lib/dropbox_synchronizer.rb | lib/dropbox_synchronizer.rb | module DiscourseBackupToDropbox
class DropboxSynchronizer
def self.sync
dbx = Dropbox::Client.new(SiteSetting.discourse_backups_to_dropbox_api_key)
folder_name = Discourse.current_hostname
begin
dbx.create_folder("/#{folder_name}")
rescue
#folder already exists
end... | module DiscourseBackupToDropbox
class DropboxSynchronizer
CHUNK_SIZE = 25600000
UPLOAD_MAX_SIZE = CHUNK_SIZE * 4
def self.sync
dbx = Dropbox::Client.new(SiteSetting.discourse_backups_to_dropbox_api_key)
folder_name = Discourse.current_hostname
begin
dbx.create_folder("/#{folde... | Add chunked upload to handle large backups | Add chunked upload to handle large backups
| Ruby | mit | xfalcox/discourse-backups-to-dropbox | ruby | ## Code Before:
module DiscourseBackupToDropbox
class DropboxSynchronizer
def self.sync
dbx = Dropbox::Client.new(SiteSetting.discourse_backups_to_dropbox_api_key)
folder_name = Discourse.current_hostname
begin
dbx.create_folder("/#{folder_name}")
rescue
#folder already ... |
9d0c05586a19c52a5243b8ad1f17b150902dacf5 | app/views/schools/dialog_boxes/_preferences.html.erb | app/views/schools/dialog_boxes/_preferences.html.erb | <!-- dialog preferences -->
<div class='content'>
<%= form_tag preferences_student_path(student), :method => :put do %>
<h3>What matters most to <%= current_student.first_name %>?</h3>
<div class='bloc'>
<% PreferenceCategory.qualitative.rank(:sort_order).all.each_with_index do |category, i| %>
<div class="... | <!-- dialog preferences -->
<div class='content'>
<%= form_tag preferences_student_path(student), :method => :put do %>
<h3>What matters most to <%= current_student.first_name %>?</h3>
<div class='bloc'>
<% PreferenceCategory.qualitative.rank(:sort_order).all.each_with_index do |category, i| %>
<div class="... | Add glyph icons to preferences partial | Add glyph icons to preferences partial
| HTML+ERB | mit | joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps | html+erb | ## Code Before:
<!-- dialog preferences -->
<div class='content'>
<%= form_tag preferences_student_path(student), :method => :put do %>
<h3>What matters most to <%= current_student.first_name %>?</h3>
<div class='bloc'>
<% PreferenceCategory.qualitative.rank(:sort_order).all.each_with_index do |category, i| %>
... |
4f7ee914a34d3fbaee61ee8c16612c9a5502da84 | requirements-dev.txt | requirements-dev.txt | invoke >= 1.4.1
mockito >= 1.2.2
robotstatuschecker >= 2.0.3
approvaltests == 3.1.0
pytest >= 6.0.2
pytest-mockito >= 0.0.4
pytest-approvaltests >= 0.1.0
requests >= 2.24.0
robotframework-pabot >= 1.10.0
black >= 20.8b1
flake8 >= 3.9.0
# Requirements needed when generating releases. See BUILD.rst for details.
rellu >=... | invoke >= 1.4.1
mockito >= 1.2.2
robotstatuschecker >= 2.0.3
approvaltests == 3.1.0
empty_files >= 0.0.3
pytest >= 6.0.2
pytest-mockito >= 0.0.4
pytest-approvaltests >= 0.1.0
requests >= 2.24.0
robotframework-pabot >= 1.10.0
black >= 20.8b1
flake8 >= 3.9.0
# Requirements needed when generating releases. See BUILD.rst ... | Fix missing dependency for approval tests | Fix missing dependency for approval tests
| Text | apache-2.0 | robotframework/SeleniumLibrary,robotframework/SeleniumLibrary,robotframework/SeleniumLibrary | text | ## Code Before:
invoke >= 1.4.1
mockito >= 1.2.2
robotstatuschecker >= 2.0.3
approvaltests == 3.1.0
pytest >= 6.0.2
pytest-mockito >= 0.0.4
pytest-approvaltests >= 0.1.0
requests >= 2.24.0
robotframework-pabot >= 1.10.0
black >= 20.8b1
flake8 >= 3.9.0
# Requirements needed when generating releases. See BUILD.rst for d... |
cc9bfdb3185c2fbb6c7d0f6f2cb8b36f8e5024ed | setup.py | setup.py |
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.7.2'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredis',
version=__version__ + __build__,
description='Mock for redis-py',
url='http://www.github.com/location... |
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.7.2'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredis',
version=__version__ + __build__,
description='Mock for redis-py',
url='http://www.github.com/location... | Revert use of bintrees; it's not a great fit. | Revert use of bintrees; it's not a great fit.
| Python | apache-2.0 | yossigo/mockredis,matejkloska/mockredis,path/mockredis,locationlabs/mockredis,optimizely/mockredis | python | ## Code Before:
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.7.2'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredis',
version=__version__ + __build__,
description='Mock for redis-py',
url='http://www.git... |
6d2607bdb3324219bf810347c83dceb96f919eff | finance/templates/tfListH.tpl | finance/templates/tfListH.tpl | {if $tfListRows}
<table class="list sortable">
<tr>
<th>Account</th>
<th class="right">Pending</th>
<th class="right">Balance</th>
</tr>
{foreach $tfListRows as $r}
<tr>
<td><a href="{$url_alloc_transactionList}tfID={$r.tfID}">{=$r.tfName}</a></td>
<td class="right nobr transaction-pending o... | {if $tfListRows}
<table class="list sortable">
<tr>
<th>Account</th>
<th class="right">Pending</th>
<th class="right">Balance</th>
</tr>
{foreach $tfListRows as $r}
<tr>
<td><a href="{$url_alloc_transactionList}tfID={$r.tfID}">{=$r.tfName}</a></td>
<td class="right nobr transaction-pending o... | Add tfoot to home TF box to permit correct dynamic sorting. | Add tfoot to home TF box to permit correct dynamic sorting.
| Smarty | agpl-3.0 | alexlance/alloc,cyberitsolutions/alloc,alexlance/alloc,cyberitsolutions/alloc,cyberitsolutions/alloc,alexlance/alloc,cyberitsolutions/alloc,cyberitsolutions/alloc,alexlance/alloc,alexlance/alloc | smarty | ## Code Before:
{if $tfListRows}
<table class="list sortable">
<tr>
<th>Account</th>
<th class="right">Pending</th>
<th class="right">Balance</th>
</tr>
{foreach $tfListRows as $r}
<tr>
<td><a href="{$url_alloc_transactionList}tfID={$r.tfID}">{=$r.tfName}</a></td>
<td class="right nobr trans... |
1d2e210694189b4257e31b8e132310d7154e7ca6 | pages/home.js | pages/home.js | "use strict";
var m = require("mithril"),
db = require("../lib/firebase");
module.exports = {
controller : function() {
},
view : function() {
return m("h1", "HOME");
}
};
| "use strict";
var m = require("mithril"),
db = require("../lib/firebase");
module.exports = {
controller : function() {
},
view : function() {
return [
m("h1", "HOME"),
m("ul",
m("li",
m("a", { href : "/schemas", config : m.route }... | Add some kind of nav | Add some kind of nav
| JavaScript | mit | tivac/anthracite,Ryan-McMillan/crucible,tivac/crucible,tivac/anthracite,Ryan-McMillan/crucible,tivac/crucible,kevinkace/crucible,kevinkace/crucible | javascript | ## Code Before:
"use strict";
var m = require("mithril"),
db = require("../lib/firebase");
module.exports = {
controller : function() {
},
view : function() {
return m("h1", "HOME");
}
};
## Instruction:
Add some kind of nav
## Code After:
"use strict";
var m = require("mithril"),
... |
bc90c5d3b1277adc6d8132b921e5827117b6a41b | test/test_projects/flutter_web/broken/lib/main.dart | test/test_projects/flutter_web/broken/lib/main.dart | import 'package:flutter_web/material.dart';
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blue),
home: new MyBroken... | import 'package:flutter_web/material.dart';
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blue),
home: new MyBroken... | Make is easier to find the error in the call stack | Make is easier to find the error in the call stack
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | dart | ## Code Before:
import 'package:flutter_web/material.dart';
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blue),
ho... |
575ce588a107979fd944617a545ef2fbd59132cb | rack-timeout.gemspec | rack-timeout.gemspec | Gem::Specification.new do |spec|
spec.name = "rack-timeout"
spec.summary = "Abort requests that are taking too long"
spec.description = "Rack middleware which aborts requests that have been running for longer than a specified timeout."
spec.version = "0.5.1"
spec.homepage = "http://github.co... | Gem::Specification.new do |spec|
spec.name = "rack-timeout"
spec.summary = "Abort requests that are taking too long"
spec.description = "Rack middleware which aborts requests that have been running for longer than a specified timeout."
spec.version = "0.5.1"
spec.homepage = "http://github.co... | Include *.md files in the gem package | Include *.md files in the gem package
| Ruby | mit | heroku/rack-timeout | ruby | ## Code Before:
Gem::Specification.new do |spec|
spec.name = "rack-timeout"
spec.summary = "Abort requests that are taking too long"
spec.description = "Rack middleware which aborts requests that have been running for longer than a specified timeout."
spec.version = "0.5.1"
spec.homepage = "... |
0a1f7c660408a0695290854b08cbe9678aae6a87 | framework/source/class/unify/ui/widget/form/Input.js | framework/source/class/unify/ui/widget/form/Input.js | qx.Class.define("unify.ui.widget.form.Input", {
});
| /* ***********************************************************************************************
Unify Project
Homepage: unify-project.org
License: MIT + Apache (V2)
Copyright: 2010, Sebastian Fastner, Mainz, Germany, http://unify-training.com
*******************************************************... | Change input behaviour to use bom input module | Change input behaviour to use bom input module
| JavaScript | mit | unify/unify,unify/unify,unify/unify,unify/unify,unify/unify,unify/unify | javascript | ## Code Before:
qx.Class.define("unify.ui.widget.form.Input", {
});
## Instruction:
Change input behaviour to use bom input module
## Code After:
/* ***********************************************************************************************
Unify Project
Homepage: unify-project.org
License: MIT + Ap... |
9dc23867c6c0e47ee0e867680791dfdb287efd99 | build/phpDocumentor.sh | build/phpDocumentor.sh |
wget https://bitgrid.net/~jus/phpDocumentor.phar
mkdir -p api/
php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API (`git rev-parse --abbrev-ref HEAD`)"
|
wget https://bitgrid.net/~jus/phpDocumentor.phar
mkdir -p api/
php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API ($BRANCH)"
| Use proper branch name in phpdoc builds | Use proper branch name in phpdoc builds
Signed-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>
| Shell | agpl-3.0 | nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,nextcloud/server,nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,nextcloud/server | shell | ## Code Before:
wget https://bitgrid.net/~jus/phpDocumentor.phar
mkdir -p api/
php7.4 phpDocumentor.phar -t "./api" -d "./lib/public" --title="Nextcloud PHP API (`git rev-parse --abbrev-ref HEAD`)"
## Instruction:
Use proper branch name in phpdoc builds
Signed-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee... |
a4e3f362feacb421d3f15dc3b75e44d6a8a11df3 | pkgs/applications/networking/znc/default.nix | pkgs/applications/networking/znc/default.nix | {stdenv, fetchurl, openssl, pkgconfig
, withPerl ? false, perl
, withPython ? false, python3
, withTcl ? false, tcl
, withCyrus ? true, cyrus_sasl
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "znc-1.0";
src = fetchurl {
url = "http://znc.in/releases/${name}.tar.gz";
sha256 = "0ah6890ngvj97kah3x7fd8... | { stdenv, fetchurl, openssl, pkgconfig
, withPerl ? false, perl
, withPython ? false, python3
, withTcl ? false, tcl
, withCyrus ? true, cyrus_sasl
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "znc-1.2";
src = fetchurl {
url = "http://znc.in/releases/${name}.tar.gz";
sha256 = "07bh306wl5494sqsgz4a... | Update from 1.0 -> 1.2 | znc: Update from 1.0 -> 1.2
| Nix | mit | NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixp... | nix | ## Code Before:
{stdenv, fetchurl, openssl, pkgconfig
, withPerl ? false, perl
, withPython ? false, python3
, withTcl ? false, tcl
, withCyrus ? true, cyrus_sasl
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "znc-1.0";
src = fetchurl {
url = "http://znc.in/releases/${name}.tar.gz";
sha256 = "0ah689... |
ad41ba72d93dd291f2c261214aa5c7a5e078896b | app.json | app.json | {
"name": "azwebdevs.org",
"description": "",
"scripts": {
"postdeploy": "POOL_SIZE=2 mix ecto.migrate"
},
"env": {
"POOL_SIZE": {
"required": true
},
"SECRET_KEY_BASE": {
"generator": "secret"
}
},
"formation": {},
"addons": [
"heroku-postgresql"
],
"buildpacks":... | {
"name": "azwebdevs.org",
"description": "",
"scripts": {},
"env": {
"POOL_SIZE": {
"required": true
},
"SECRET_KEY_BASE": {
"generator": "secret"
}
},
"formation": {},
"addons": [
"heroku-postgresql"
],
"buildpacks": [
{
"url": "https://github.com/HashNuke/h... | Revert "Add postdeploy migration script" | Revert "Add postdeploy migration script"
This reverts commit d0756e3656c919c752a9f6921adea1e7a4e66e01.
| JSON | mit | az-webdevs/azwebdevs.org,az-webdevs/azwebdevs.org | json | ## Code Before:
{
"name": "azwebdevs.org",
"description": "",
"scripts": {
"postdeploy": "POOL_SIZE=2 mix ecto.migrate"
},
"env": {
"POOL_SIZE": {
"required": true
},
"SECRET_KEY_BASE": {
"generator": "secret"
}
},
"formation": {},
"addons": [
"heroku-postgresql"
],... |
928b8b9af2747bd982dbde4e3328301404bd0d57 | app/view_adapters/document_view_adapter.rb | app/view_adapters/document_view_adapter.rb | require "forwardable"
class DocumentViewAdapter < SimpleDelegator
extend Forwardable
extend ActiveModel::Naming
include ActiveModel::Conversion
def initialize(document)
@document = document
super(document)
end
def attachments
document && document.attachments || []
end
def persisted?
... | require "forwardable"
class DocumentViewAdapter < SimpleDelegator
extend Forwardable
extend ActiveModel::Naming
include ActiveModel::Conversion
def initialize(document)
@document = document
super(document)
end
def attachments
document && document.attachments || []
end
def persisted?
... | Allow DocumentViewAdapter to humanize attributes | Allow DocumentViewAdapter to humanize attributes
| Ruby | mit | alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher-rebuild,alphagov/manuals-publisher,alphagov/manuals-publisher,alphagov/specialist-publisher,alphagov/specialist-publisher,alphagov/specialist-publisher-rebuild,alphagov/specialist-publisher-rebuild,ministryofjustice/specialist-publisher,ministryofjusti... | ruby | ## Code Before:
require "forwardable"
class DocumentViewAdapter < SimpleDelegator
extend Forwardable
extend ActiveModel::Naming
include ActiveModel::Conversion
def initialize(document)
@document = document
super(document)
end
def attachments
document && document.attachments || []
end
def... |
129144c9192443cd5bac714433e32974ade9d7e0 | requirements-test.txt | requirements-test.txt | pytest==3.2.2
pytest-cov==2.5.1
python-coveralls==2.9.1
pillow==6.0.0 | pytest==4.4.0
pytest-cov==2.5.1
python-coveralls==2.9.1
pillow==6.0.0
pytest-xdist==1.28.0
| Update pytest and add pytest-xdist | chore: Update pytest and add pytest-xdist
To enable parallel testing | Text | mit | andreroggeri/pynubank | text | ## Code Before:
pytest==3.2.2
pytest-cov==2.5.1
python-coveralls==2.9.1
pillow==6.0.0
## Instruction:
chore: Update pytest and add pytest-xdist
To enable parallel testing
## Code After:
pytest==4.4.0
pytest-cov==2.5.1
python-coveralls==2.9.1
pillow==6.0.0
pytest-xdist==1.28.0
|
12a94b3710894fcb226af589ab6013778573f56d | README.md | README.md | Convert a config file of values to a python dictionary
| Convert a python config file of to a python dictionary
# Example
Return the information in `info.cfg` as a `JSON` response from a `Flask` server:
info.cfg
```python
[info]
name = risk
version = 1
description = A simple game of chance. Risk 1000 Satoshis, win 2000, or lose them all.
project = https://github.com/joelkl... | Update readme with example code | Update readme with example code | Markdown | mit | joelklabo/cfgtodict | markdown | ## Code Before:
Convert a config file of values to a python dictionary
## Instruction:
Update readme with example code
## Code After:
Convert a python config file of to a python dictionary
# Example
Return the information in `info.cfg` as a `JSON` response from a `Flask` server:
info.cfg
```python
[info]
name = risk... |
9e09a97eb0c91d51378488ecc1bb02011aa7f881 | templates/Forums-Block-RssMenu-Success.all.all.html | templates/Forums-Block-RssMenu-Success.all.all.html | <tal:block tal:condition="links">
<h3 change:h="" change:translate="modules.forums.frontoffice.Rss-menu-title"></h3>
<ul>
<li tal:repeat="link links">
<img change:icon="rss/small" style="vertical-align: middle" /> <a change:link="module forums; action ViewFeed; parentref link/parentref; docType link/docType; rec... | <tal:block tal:condition="links">
<h3 change:h="" change:translate="modules.forums.frontoffice.Rss-menu-title"></h3>
<ul>
<li tal:repeat="link links">
<img change:img="icon/small/rss.png" style="vertical-align: middle" /> <a change:link="module forums; action ViewFeed; parentref link/parentref; docType link/docT... | Change tags "change:image" and "change:icon" by "change:img" | [MODIF] Change tags "change:image" and "change:icon" by "change:img"
| HTML | agpl-3.0 | RBSChange/modules.forums,RBSChange/modules.forums | html | ## Code Before:
<tal:block tal:condition="links">
<h3 change:h="" change:translate="modules.forums.frontoffice.Rss-menu-title"></h3>
<ul>
<li tal:repeat="link links">
<img change:icon="rss/small" style="vertical-align: middle" /> <a change:link="module forums; action ViewFeed; parentref link/parentref; docType l... |
b652da4dda3ed5c0a37f2d32a07b9afaf6267e53 | organization/network/migrations/0118_team_slug.py | organization/network/migrations/0118_team_slug.py | from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
team.save()
class Migration(migrations.Migration):
dependencies = [
('org... | from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
# def generate_slugs(apps, schema_editor):
# teams = Team.objects.all()
# for team in teams:
# team.save()
class Migration(migrations.Migration):
dependencies = [
... | Fix migration when no existing team.user field at fresh start | Fix migration when no existing team.user field at fresh start
| Python | agpl-3.0 | Ircam-Web/mezzanine-organization,Ircam-Web/mezzanine-organization | python | ## Code Before:
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
team.save()
class Migration(migrations.Migration):
dependencies =... |
7a5bd0895d67f717d652184e54a650c77d79a4a8 | static/css/base.css | static/css/base.css | /*
Base CSS for Pyrc
*/
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
.channel {
border-top-style: solid;
border-top-width: 3px;
border-top-color: gray;
}
.hidden {
display: none;
}
.message {
margin: 0;
... | /*
Base CSS for Pyrc
*/
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
.channel {
border-top-style: solid;
border-top-width: 3px;
border-top-color: gray;
}
.hidden {
display: none;
}
.message {
margin: 0;
... | Add a truly hideous unread message class. CHANGE! | Add a truly hideous unread message class. CHANGE!
| CSS | mit | Lukasa/pyrc,Lukasa/pyrc | css | ## Code Before:
/*
Base CSS for Pyrc
*/
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
.channel {
border-top-style: solid;
border-top-width: 3px;
border-top-color: gray;
}
.hidden {
display: none;
}
.message {... |
7099d4e0eb7617b32fe983274c58f4997340a2c9 | content/atom.xml.erb | content/atom.xml.erb | <%= atom_feed :limit => 15, :title => @config[:blog_name], :author_uri => @config[:base_url] %>
| <%= atom_feed :articles => front_page_articles, :title => @config[:blog_name], :author_uri => @config[:base_url] %> | Synchronize Atom feed with front page contents | Synchronize Atom feed with front page contents
| HTML+ERB | bsd-2-clause | rfc1459/newblog,rfc1459/newblog,rfc1459/newblog | html+erb | ## Code Before:
<%= atom_feed :limit => 15, :title => @config[:blog_name], :author_uri => @config[:base_url] %>
## Instruction:
Synchronize Atom feed with front page contents
## Code After:
<%= atom_feed :articles => front_page_articles, :title => @config[:blog_name], :author_uri => @config[:base_url] %> |
5ad9c79eae12ab63936018bdd3dd1c779c9655ed | src/main/java/net/shadowfacts/zcraft/item/tool/ItemLaserPistol.java | src/main/java/net/shadowfacts/zcraft/item/tool/ItemLaserPistol.java | package net.shadowfacts.zcraft.item.tool;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.shadowfacts.zcraft.entity.EntityLaserBolt;
import net.shadowfacts.zcraft.item.ZItems;
public class ItemLaserPisto... | package net.shadowfacts.zcraft.item.tool;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.shadowfacts.zcraft.entity.EntityLaserBolt;
import net.shadowfacts.zcraft.item.ZItems;
public class ItemLaserPisto... | Update Laser Pistol for 1.7.10 | Update Laser Pistol for 1.7.10
| Java | mit | shadowfacts/EnFusion,Mazdallier/EnFusion | java | ## Code Before:
package net.shadowfacts.zcraft.item.tool;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.shadowfacts.zcraft.entity.EntityLaserBolt;
import net.shadowfacts.zcraft.item.ZItems;
public clas... |
de626b9c7ab2ae35e6681bc6e3fbed87373e19df | base/app/controllers/groups_controller.rb | base/app/controllers/groups_controller.rb | class GroupsController < ApplicationController
include SocialStream::Controllers::Subjects
include SocialStream::Controllers::Authorship
before_filter :authenticate_user!, :except => [ :index, :show ]
load_and_authorize_resource except: :index
respond_to :html, :js
def index
raise ActiveRecord::Reco... | class GroupsController < ApplicationController
include SocialStream::Controllers::Subjects
include SocialStream::Controllers::Authorship
before_filter :authenticate_user!, :except => [ :index, :show ]
load_and_authorize_resource except: :index
respond_to :html, :js
def index
raise ActiveRecord::Reco... | Add identity change message on group creation | Add identity change message on group creation
| Ruby | mit | honorlin/social_stream,honorlin/social_stream,ging/social_stream,honorlin/social_stream,ging/social_stream,honorlin/social_stream,ging/social_stream | ruby | ## Code Before:
class GroupsController < ApplicationController
include SocialStream::Controllers::Subjects
include SocialStream::Controllers::Authorship
before_filter :authenticate_user!, :except => [ :index, :show ]
load_and_authorize_resource except: :index
respond_to :html, :js
def index
raise Ac... |
f8ccc85902be3da62c9397f220c36f4a6f3eca6a | src/site/base.js | src/site/base.js | /* global sauce */
window.sauce = window.sauce || {};
sauce.ns = function(ns, callback) {
let offt = sauce;
for (const x of ns.split('.')) {
if (!offt[x]) {
offt = (offt[x] = {});
}
}
const assignments = callback && callback(offt);
if (assignments) {
Object.assi... | /* global sauce */
window.sauce = window.sauce || {};
sauce.ns = function(ns, callback) {
let offt = sauce;
for (const x of ns.split('.')) {
if (!offt[x]) {
offt = (offt[x] = {});
}
}
const assignments = callback && callback(offt);
if (assignments) {
Object.assi... | Add theme switcher dev utility. | Add theme switcher dev utility.
| JavaScript | mit | mayfield/strava-sauce,mayfield/strava-sauce | javascript | ## Code Before:
/* global sauce */
window.sauce = window.sauce || {};
sauce.ns = function(ns, callback) {
let offt = sauce;
for (const x of ns.split('.')) {
if (!offt[x]) {
offt = (offt[x] = {});
}
}
const assignments = callback && callback(offt);
if (assignments) {
... |
a527a21a77165b113d615fe4b1984cc7a9e3aa12 | src/main/java/com/hp/autonomy/types/requests/idol/actions/answer/params/GetResourcesSortParam.java | src/main/java/com/hp/autonomy/types/requests/idol/actions/answer/params/GetResourcesSortParam.java | /*
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.types.requests.idol.actions.answer.params;
@SuppressWarnings({"WeakerAccess", "unused"})
public enum GetResourc... | /*
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.types.requests.idol.actions.answer.params;
@SuppressWarnings({"WeakerAccess", "unused"})
public enum GetResourc... | Add support for AnswerServer likelihood | Add support for AnswerServer likelihood
[rev. matthew.gordon]
| Java | mit | hpe-idol/java-aci-types,hpautonomy/java-aci-types,hpe-idol/java-aci-types,hpautonomy/java-aci-types | java | ## Code Before:
/*
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.types.requests.idol.actions.answer.params;
@SuppressWarnings({"WeakerAccess", "unused"})
public... |
3256bdca2c894b9c9419a09a2737b017591d0c20 | app/controllers/searches_controller.rb | app/controllers/searches_controller.rb | class SearchesController < ApplicationController
layout 'default'
def index
@search = Search.new
@search.find_venue(params[:search]) if request.post?
@venue = @search.venue
@current_conditions = @search.current_conditions
end
end
| class SearchesController < ApplicationController
def index
@search = Search.new
@search.find_venue(params[:search]) if request.post?
@venue = @search.venue
@current_conditions = @search.current_conditions
end
end
| Use default layout in search controller. | Use default layout in search controller.
Fixes regression introduced in d6c95f99745067790410e1e3aacffcae6828d785.
| Ruby | mit | pugnusferreus/lunchpicker,pugnusferreus/lunchpicker | ruby | ## Code Before:
class SearchesController < ApplicationController
layout 'default'
def index
@search = Search.new
@search.find_venue(params[:search]) if request.post?
@venue = @search.venue
@current_conditions = @search.current_conditions
end
end
## Instruction:
Use default layout in search contr... |
f161e2218d7bc4d944fa0d68add2780d7041e8c6 | circle.yml | circle.yml | test:
override:
- xctool -scheme "Branch-SDK-Tests" -workspace Branch-TestBed/Branch-TestBed.xcworkspace -sdk iphonesimulator test -reporter pretty -reporter plain:$CIRCLE_ARTIFACTS/xctool.log
| test:
override:
- set -o pipefail &&
xcodebuild
CODE_SIGNING_REQUIRED=NO
CODE_SIGN_IDENTITY=
PROVISIONING_PROFILE=
-sdk iphonesimulator
-destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6'
-workspace "Branch-TestBed/Branch-TestBed.xcworkspace"
-s... | Change build command for CircleCI team. | Change build command for CircleCI team.
| YAML | mit | BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/ios-branch-deep-linking,BranchMetrics/iOS-Deferred-Deep-Linking-SDK,BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking,BranchMetrics/ios-branch-deep-linking | yaml | ## Code Before:
test:
override:
- xctool -scheme "Branch-SDK-Tests" -workspace Branch-TestBed/Branch-TestBed.xcworkspace -sdk iphonesimulator test -reporter pretty -reporter plain:$CIRCLE_ARTIFACTS/xctool.log
## Instruction:
Change build command for CircleCI team.
## Code After:
test:
override:
- set -o p... |
b3770692f961a0799829d53b6313cde80f9dadc3 | client/views/readouts/transmission_delay_readout.jsx | client/views/readouts/transmission_delay_readout.jsx | import Moment from "moment";
import "moment-duration-format";
import React from "react";
import ListeningView from "../listening_view.js";
class TransmissionDelayReadout extends ListeningView {
componentDidMount() {
super.componentDidMount();
window.setInterval(() => {this.forceUpdate();}, 1000);
}
re... | import Moment from "moment";
import "moment-duration-format";
import React from "react";
import ListeningView from "../listening_view.js";
class TransmissionDelayReadout extends ListeningView {
componentDidMount() {
super.componentDidMount();
window.setInterval(() => {this.forceUpdate();}, 1000);
}
re... | Remove crossfilter from microcharts, fix atmo means, and clarify ground time label. | Remove crossfilter from microcharts, fix atmo means, and clarify ground time label.
| JSX | mit | sensedata/space-telemetry,sensedata/space-telemetry | jsx | ## Code Before:
import Moment from "moment";
import "moment-duration-format";
import React from "react";
import ListeningView from "../listening_view.js";
class TransmissionDelayReadout extends ListeningView {
componentDidMount() {
super.componentDidMount();
window.setInterval(() => {this.forceUpdate();}, ... |
7cfd5725bb3ba9f2b0c84536f75a475fc539b462 | app/views/collections/show.html.erb | app/views/collections/show.html.erb | <%= link_to 'Delete Collection', @collection, method: :delete %>
<h1>Collection: <%= @collection.name %></h1>
<% @code_snippets.each do |code_snippet| %>
<p><h3>Github Path: </h3><%= code_snippet.path %></p>
<p><h3>Github Url: </h3>
<p><a href="<%= code_snippet.code_url %>"><%= code_snippet.code_url %></a></p>
... | <% if current_user %>
<%= link_to 'Delete Collection', @collection, method: :delete %>
<% end %>
<h1>Collection: <%= @collection.name %></h1>
<% @code_snippets.each do |code_snippet| %>
<p><h3>Github Path: </h3><%= code_snippet.path %></p>
<p><h3>Github Url: </h3>
<p><a href="<%= code_snippet.code_url %>"><%=... | Add restrictions for collection deletion | Add restrictions for collection deletion
| HTML+ERB | mit | chi-bobolinks-2015/sift,chi-bobolinks-2015/sift,chi-bobolinks-2015/sift | html+erb | ## Code Before:
<%= link_to 'Delete Collection', @collection, method: :delete %>
<h1>Collection: <%= @collection.name %></h1>
<% @code_snippets.each do |code_snippet| %>
<p><h3>Github Path: </h3><%= code_snippet.path %></p>
<p><h3>Github Url: </h3>
<p><a href="<%= code_snippet.code_url %>"><%= code_snippet.code... |
a6bdb0bfe2796473a30d0cc1005791e389c39d52 | README.md | README.md | This is a static website for [Purple Rose Services](#).
It was built using:
- Harp.js
- Gulp
- Deployed on [Surge.sh](http://surge.sh)
## Want your own Static website?
You can contact me at [celso@pocholabs](mailto:celso@pocholabs) about your project.
Not all organizations need a WordPress website or a server backe... | This is a static website for [Purple Rose Services](#).
It was built using:
- Harp.js
- Gulp
- Deployed on [Surge.sh](http://surge.sh)
## Notes
The temporary URL for this site is [hospitable-achieve.surge.sh](http://hospitable-achieve.surge.sh).
## Want your own Static website?
You can contact me at [celso@pochola... | Update Readme with temporary URL | Update Readme with temporary URL
| Markdown | mit | PochoLabs/purple-rose,PochoLabs/purple-rose | markdown | ## Code Before:
This is a static website for [Purple Rose Services](#).
It was built using:
- Harp.js
- Gulp
- Deployed on [Surge.sh](http://surge.sh)
## Want your own Static website?
You can contact me at [celso@pocholabs](mailto:celso@pocholabs) about your project.
Not all organizations need a WordPress website o... |
3d43e1c7c0cb1e557592372f6490639ab9584358 | tepco_usage_api.gemspec | tepco_usage_api.gemspec | require 'rake'
Gem::Specification.new do |spec|
spec.name = 'tepco_usage_api'
spec.required_ruby_version = '>= 1.8.7'
spec.summary = 'The gem to talk with Tepco Usage API. '
spec.version = '0.3.0'
spec.license = 'MIT'
spec.author = 'Tatsuya Sato'
spec.email = 'satoryu.1981@gmail.com'
spec.homepage =... | require 'rake'
Gem::Specification.new do |spec|
spec.name = 'tepco_usage_api'
spec.required_ruby_version = '>= 1.8.7'
spec.summary = 'The gem to talk with Tepco Usage API. '
spec.version = '0.3.0'
spec.license = 'MIT'
spec.author = 'Tatsuya Sato'
spec.email = 'satoryu.1981@gmail.com'
spec.homepage =... | Define depencencies of this gem. | Define depencencies of this gem.
| Ruby | mit | satoryu/tepco_usage_api | ruby | ## Code Before:
require 'rake'
Gem::Specification.new do |spec|
spec.name = 'tepco_usage_api'
spec.required_ruby_version = '>= 1.8.7'
spec.summary = 'The gem to talk with Tepco Usage API. '
spec.version = '0.3.0'
spec.license = 'MIT'
spec.author = 'Tatsuya Sato'
spec.email = 'satoryu.1981@gmail.com'
... |
20395534f3d603eff50af2ab60c6f2afee0fc512 | src/Inc/Template.php | src/Inc/Template.php | <?php namespace Leean\Endpoints\Inc;
/**
* Class Template
*
* @package Leean\Endpoints\Inc
*/
class Template
{
/**
* Returns the template used on a page:
*
* - Default for the default page template
* - Template Slug
* - Empty string if the post is not a page.
*
* @param Int|\WP_Post $post The post
... | <?php namespace Leean\Endpoints\Inc;
/**
* Class Template
*
* @package Leean\Endpoints\Inc
*/
class Template
{
/**
* Returns the type for the post, the term template applies to what type of
* post is or what type of template is using.
*
* @param Int|\WP_Post $post The post
* @return string
*/
public ... | Update the type of the functio | Update the type of the functio
| PHP | mit | moxie-leean/wp-endpoints-view | php | ## Code Before:
<?php namespace Leean\Endpoints\Inc;
/**
* Class Template
*
* @package Leean\Endpoints\Inc
*/
class Template
{
/**
* Returns the template used on a page:
*
* - Default for the default page template
* - Template Slug
* - Empty string if the post is not a page.
*
* @param Int|\WP_Post ... |
b2c9429ba916062dee2139421ebe69e6fbb79e2b | app/views/layouts/_footer.html.haml | app/views/layouts/_footer.html.haml | .row
.ten.columns
%ul.link-list
%li
= link_to "About", "https://github.com/Growstuff/project/wiki/About%20Growstuff"
%li
= link_to "License", "https://github.com/Growstuff/growstuff/blob/dev/LICENSE.txt"
%li
= link_to "Github", "https://github.com/Growstuff/"
%li
... | .row
.ten.columns
%ul.link-list
%li
= link_to "About", "http://wiki.growstuff.org"
%li
= link_to "License", "https://github.com/Growstuff/growstuff/blob/dev/LICENSE.txt"
%li
= link_to "Github", "https://github.com/Growstuff/"
%li
= link_to "Wiki", "http://wi... | Make the About link in the footer point to the new wiki | Make the About link in the footer point to the new wiki
Signed-off-by: Federico Mena Quintero <4999915a961edfd7686112c2935288e1266eae14@gnome.org>
| Haml | agpl-3.0 | yez/growstuff,sksavant/growstuff,CarsonBills/GrowStuffCMB,yez/growstuff,GabrielSandoval/growstuff,Br3nda/growstuff,borracciaBlu/growstuff,Br3nda/growstuff,iressgrad15/growstuff,yez/growstuff,CloCkWeRX/growstuff,jdanielnd/growstuff,oshiho3/growstuff,josefdaly/growstuff,borracciaBlu/growstuff,sksavant/growstuff,gustavor-... | haml | ## Code Before:
.row
.ten.columns
%ul.link-list
%li
= link_to "About", "https://github.com/Growstuff/project/wiki/About%20Growstuff"
%li
= link_to "License", "https://github.com/Growstuff/growstuff/blob/dev/LICENSE.txt"
%li
= link_to "Github", "https://github.com/Growstuf... |
13b6f22f0473917e11ed650282b9b118edb12b90 | include/llvm/Analysis/BasicAliasAnalysis.h | include/llvm/Analysis/BasicAliasAnalysis.h | //===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===---------------------------... | //===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===---------------------------... | Tweak to work with new AA implementation | Tweak to work with new AA implementation
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@5632 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/l... | c | ## Code Before:
//===- llvm/Analysis/BasicAliasAnalysis.h - Alias Analysis Impl -*- C++ -*-===//
//
// This file defines the default implementation of the Alias Analysis interface
// that simply implements a few identities (two different globals cannot alias,
// etc), but otherwise does no analysis.
//
//===-----------... |
667ca46bd35011e06aab1eb7a570d0af5eee5e4a | lib/log/sfEventLogger.class.php | lib/log/sfEventLogger.class.php | <?php
/**
* sfEventLogger sends log messages to the event dispatcher to be processed
* by registered loggers.
*
* @package symfony
* @subpackage log
* @author Jérôme Tamarelle <jtamarelle@groupe-exp.com>
*/
class sfEventLogger extends sfLogger
{
/**
* {@inheritDoc}
*/
public function initialize... | <?php
/**
* sfEventLogger sends log messages to the event dispatcher to be processed
* by registered loggers.
*
* @package symfony
* @subpackage log
* @author Jérôme Tamarelle <jtamarelle@groupe-exp.com>
*/
class sfEventLogger extends sfLogger
{
/**
* {@inheritDoc}
*/
public function initialize... | Fix sfEventLogger: add priority and event.name overriding | Fix sfEventLogger: add priority and event.name overriding
| PHP | mit | Recras/symfony1,simoncast/symfony1,Recras/symfony1,MDrollette/symfony1,rock-symphony/rock-symphony,simoncast/symfony1,Recras/symfony1,simoncast/symfony1,rock-symphony/rock-symphony,MDrollette/symfony1,MDrollette/symfony1,rock-symphony/rock-symphony | php | ## Code Before:
<?php
/**
* sfEventLogger sends log messages to the event dispatcher to be processed
* by registered loggers.
*
* @package symfony
* @subpackage log
* @author Jérôme Tamarelle <jtamarelle@groupe-exp.com>
*/
class sfEventLogger extends sfLogger
{
/**
* {@inheritDoc}
*/
public fun... |
2446c4f8533c825af8a4bf62d0d049b779fa8f12 | app/src/taxretApp.js | app/src/taxretApp.js | (function(){
'use strict';
// Prepare the 'taxretApp' module for subsequent registration of configuration, controllers and delegates
angular
.module('taxretApp', ['ngMessages', 'ngMaterial', 'ui.router', 'app', 'users', 'hc.marked', 'kutomer.ng-lovefield']);
})(); | (function(){
'use strict';
// Prepare the 'taxretApp' module for subsequent registration of configuration, controllers and delegates
angular
.module('taxretApp', [
// Global dependencies
// -- Angular & Angular Material helpers
'ngMessages',
'ngMaterial',
// -- Routing
'ui.router',
/... | Bring structure to app dependecies list | Bring structure to app dependecies list
| JavaScript | mit | OleksiyRudenko/taxret-ngmd,OleksiyRudenko/taxret-ngmd | javascript | ## Code Before:
(function(){
'use strict';
// Prepare the 'taxretApp' module for subsequent registration of configuration, controllers and delegates
angular
.module('taxretApp', ['ngMessages', 'ngMaterial', 'ui.router', 'app', 'users', 'hc.marked', 'kutomer.ng-lovefield']);
})();
## Instruction:
Bring structu... |
d356d73ea9c907f7b748bc0c5210aff461e2c351 | .github/workflows/test.yml | .github/workflows/test.yml | name: run-tests
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
run-conda-test:
name: Running tests using miniconda
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest]
python-version:... | name: run-tests
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
run-conda-test:
name: Running tests using miniconda
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
p... | Add full python/os matrix build | [gh/actions] Add full python/os matrix build
| YAML | bsd-3-clause | mpsonntag/bulk-rename,mpsonntag/bulk-rename | yaml | ## Code Before:
name: run-tests
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
run-conda-test:
name: Running tests using miniconda
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest]
... |
9a67b4ff92125d6ba54d75f2bd42f9f33293b60c | test/fixtures/cookbooks/webapp_test/metadata.rb | test/fixtures/cookbooks/webapp_test/metadata.rb | name 'webapp_test'
maintainer 'The Authors'
maintainer_email 'you@example.com'
license 'all_rights'
description 'Installs/Configures webapp_test'
long_description 'Installs/Configures webapp_test'
version '0.1.0'
depends 'windows'
depends 'iis'
| name 'webapp_test'
maintainer 'The Authors'
maintainer_email 'you@example.com'
license 'all_rights'
description 'Installs/Configures webapp_test'
long_description 'Installs/Configures webapp_test'
version '0.1.0'
depends 'windows'
depends 'iis'
depends 'application_dotnet'
| Add dependency on application_dotnet in test cookbook | Add dependency on application_dotnet in test cookbook
| Ruby | apache-2.0 | mattstratton/application_dotnet,10thmagnitude/application_dotnet | ruby | ## Code Before:
name 'webapp_test'
maintainer 'The Authors'
maintainer_email 'you@example.com'
license 'all_rights'
description 'Installs/Configures webapp_test'
long_description 'Installs/Configures webapp_test'
version '0.1.0'
depends 'windows'
depends 'iis'
## Instruction:
Add dependency on application_dotnet in t... |
bfab0a5c20038481ca72371123079388766d157d | sources/server/src/node/package.json | sources/server/src/node/package.json | {
"name": "datalab-server",
"version": "0.0.1",
"description": "The DataLab server",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
"async": "0.9.x",
"body-parser": "1.12.x",
"express": "4.x",
"gcloud": "0.13.x",
"mkdirp": "0.5.x",
"node-dir": "0.1.x",
... | {
"name": "datalab-server",
"version": "0.0.1",
"description": "The DataLab server",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
"async": "0.9.x",
"body-parser": "1.12.x",
"express": "4.x",
"gcloud": "git://github.com/GoogleCloudPlatform/gcloud-node.git#6109... | Use specific gcloud-node version from master branch until npm is updated | Use specific gcloud-node version from master branch until npm is updated
| JSON | apache-2.0 | parthea/datalab,yebrahim/datalab,craigcitro/datalab,parthea/datalab,craigcitro/datalab,craigcitro/datalab,googledatalab/datalab,googledatalab/datalab,googledatalab/datalab,craigcitro/datalab,parthea/datalab,parthea/datalab,googledatalab/datalab,yebrahim/datalab,yebrahim/datalab,googledatalab/datalab,parthea/datalab,yeb... | json | ## Code Before:
{
"name": "datalab-server",
"version": "0.0.1",
"description": "The DataLab server",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"dependencies": {
"async": "0.9.x",
"body-parser": "1.12.x",
"express": "4.x",
"gcloud": "0.13.x",
"mkdirp": "0.5.x",
"node... |
57bc8b3c40bbafda6f69b23c230ad73750e881ab | hashable/helpers.py | hashable/helpers.py | from .equals_builder import EqualsBuilder
from .hash_code_builder import HashCodeBuilder
__all__ = [
'hashable',
'equality_comparable',
]
def hashable(cls=None, attributes=None, methods=None):
_validate_attributes_and_methods(attributes, methods)
def decorator(cls):
cls = equality_comparabl... | from .equals_builder import EqualsBuilder
from .hash_code_builder import HashCodeBuilder
__all__ = [
'hashable',
'equalable',
]
def hashable(cls=None, attributes=None, methods=None):
_validate_attributes_and_methods(attributes, methods)
def decorator(cls):
cls = equalable(cls, attributes, m... | Rename decorator equality_comparable to equalable | Rename decorator equality_comparable to equalable
| Python | mit | minmax/hashable | python | ## Code Before:
from .equals_builder import EqualsBuilder
from .hash_code_builder import HashCodeBuilder
__all__ = [
'hashable',
'equality_comparable',
]
def hashable(cls=None, attributes=None, methods=None):
_validate_attributes_and_methods(attributes, methods)
def decorator(cls):
cls = eq... |
170ebb21171469430c8404bb4f3b3b0ade4a9677 | looksee.gemspec | looksee.gemspec | $:.unshift File.expand_path('lib', File.dirname(__FILE__))
require 'looksee/version'
Gem::Specification.new do |s|
s.name = 'looksee'
s.version = Looksee::VERSION
s.authors = ["George Ogata"]
s.email = ["george.ogata@gmail.com"]
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "Inspect method lookup path... | $:.unshift File.expand_path('lib', File.dirname(__FILE__))
require 'looksee/version'
Gem::Specification.new do |s|
s.name = 'looksee'
s.version = Looksee::VERSION
s.authors = ["George Ogata"]
s.email = ["george.ogata@gmail.com"]
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "Inspect method lookup path... | Add wirble as a development dependency. | Add wirble as a development dependency.
| Ruby | mit | oggy/looksee,oggy/looksee,mathieujobin/looksee,oggy/looksee,mathieujobin/looksee,mathieujobin/looksee | ruby | ## Code Before:
$:.unshift File.expand_path('lib', File.dirname(__FILE__))
require 'looksee/version'
Gem::Specification.new do |s|
s.name = 'looksee'
s.version = Looksee::VERSION
s.authors = ["George Ogata"]
s.email = ["george.ogata@gmail.com"]
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "Inspect me... |
0940635a85096226739cbccfbb01a920478991bf | docs/_config.yml | docs/_config.yml | title: Ground
description: An open source, map-first data collection platform by global contributors and volunteers at [google](https://github.com/google).
theme: jekyll-theme-cayman
| title: Ground
description: An open source, map-first data collection platform by global contributors and volunteers at Google.
theme: jekyll-theme-cayman
| Remove broken link from description. :/ | Remove broken link from description. :/
| YAML | apache-2.0 | google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform | yaml | ## Code Before:
title: Ground
description: An open source, map-first data collection platform by global contributors and volunteers at [google](https://github.com/google).
theme: jekyll-theme-cayman
## Instruction:
Remove broken link from description. :/
## Code After:
title: Ground
description: An open source, map-f... |
d3bdcaf614aa877ed102ff1041a7884d6eee84f0 | R7.Documents.Dnn/js/selectDocuments.js | R7.Documents.Dnn/js/selectDocuments.js | function r7d_selectDocument(documentId, checked, value) {
var values = JSON.parse(value);
var index = values.indexOf(documentId);
if (checked) {
if (index < 0) {
values.push(documentId);
}
} else {
if (index >= 0) {
values.splice(index, 1);
}
}... | function r7d_selectDocument(documentId, checked, value) {
var values = JSON.parse(value);
var index = values.indexOf(documentId);
if (checked) {
if (index < 0) {
values.push(documentId);
}
} else {
if (index >= 0) {
values.splice(index, 1);
}
}... | Fix GH-115 Cannot select documents with checkboxes on DNN 9 | Fix GH-115 Cannot select documents with checkboxes on DNN 9
| JavaScript | mit | roman-yagodin/R7.Documents,roman-yagodin/R7.Documents,roman-yagodin/R7.Documents | javascript | ## Code Before:
function r7d_selectDocument(documentId, checked, value) {
var values = JSON.parse(value);
var index = values.indexOf(documentId);
if (checked) {
if (index < 0) {
values.push(documentId);
}
} else {
if (index >= 0) {
values.splice(index, 1);... |
a6bd6f8af236670252a3ccc38b24b97671cf234d | public/javascripts/App/GlossaViewport.js | public/javascripts/App/GlossaViewport.js | App.GlossaViewport = Ext.extend(App.GlossaViewportUi, {
initComponent: function() {
// Property to keep track of SearchPanel instances for query building
this.searchPanels = [];
App.GlossaViewport.superclass.initComponent.call(this);
this.setupSubcomponents();
this.setupEventHandlers();
},
... | App.GlossaViewport = Ext.extend(App.GlossaViewportUi, {
initComponent: function() {
// Property to keep track of SearchPanel instances for query building
this.searchPanels = [];
App.GlossaViewport.superclass.initComponent.call(this);
this.setupSubcomponents();
this.setupEventHandlers();
},
... | Switch to new search panel after it is created | Switch to new search panel after it is created
| JavaScript | mit | textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/rglossa | javascript | ## Code Before:
App.GlossaViewport = Ext.extend(App.GlossaViewportUi, {
initComponent: function() {
// Property to keep track of SearchPanel instances for query building
this.searchPanels = [];
App.GlossaViewport.superclass.initComponent.call(this);
this.setupSubcomponents();
this.setupEventHand... |
7482a98a1050118ec5f52568ea66945e5429162f | index.js | index.js | var gulp = require('gulp');
var elixir = require('laravel-elixir');
var urlAdjuster = require('gulp-css-url-adjuster');
/*
|----------------------------------------------------------------
| adjust css urls for images and stuff
|----------------------------------------------------------------
|
| A wrapper for gu... | var gulp = require('gulp');
var elixir = require('laravel-elixir');
var urlAdjuster = require('gulp-css-url-adjuster');
var files = [];
/*
|----------------------------------------------------------------
| adjust css urls for images and stuff
|----------------------------------------------------------------
|
| ... | Allow for multiple files to be urlAdjsted. | Allow for multiple files to be urlAdjsted.
| JavaScript | mit | farrrr/laravel-elixir-css-url-adjuster | javascript | ## Code Before:
var gulp = require('gulp');
var elixir = require('laravel-elixir');
var urlAdjuster = require('gulp-css-url-adjuster');
/*
|----------------------------------------------------------------
| adjust css urls for images and stuff
|----------------------------------------------------------------
|
| ... |
9e6ae43c27b7b6e08108d2553b589ddd1b52de43 | README.md | README.md | node-efs
========
An fs module stand-in for reading and writing encrypted files | node-efs
========
An fs module stand-in for reading and writing encrypted files
THIS IS NOWHERE NEAR DONE. DO NOT USE YET. | Add warning about in-progress nature of project | Add warning about in-progress nature of project | Markdown | mit | kunklejr/node-efs | markdown | ## Code Before:
node-efs
========
An fs module stand-in for reading and writing encrypted files
## Instruction:
Add warning about in-progress nature of project
## Code After:
node-efs
========
An fs module stand-in for reading and writing encrypted files
THIS IS NOWHERE NEAR DONE. DO NOT USE YET. |
696fb106afee4f17694f95debc09cb5f0ae2df51 | app/models/user.rb | app/models/user.rb | class User < ActiveRecord::Base
validates :nusnet_id, presence: true, uniqueness: true, format: { with: /\A(A\d{7}|U\d{6,7})\z/i }
validates :name, presence: true
validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i }
has_many :timetables, dependent: :destroy
validates_associated :... | class User < ActiveRecord::Base
validates :nusnet_id, presence: true, uniqueness: true, format: { with: /\A(A\d{7}|U\d{6,7})\z/i }
validates :name, presence: true
validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i }, allow_blank: true
has_many :timetables, dependent: :destroy
val... | Allow `email` to be blank | Allow `email` to be blank
| Ruby | mit | tgxworld/nusmods-cloud,nusmodifications/nusmods-cloud,tgxworld/nusmods-cloud,nusmodifications/nusmods-cloud,nusmodifications/nusmods-cloud | ruby | ## Code Before:
class User < ActiveRecord::Base
validates :nusnet_id, presence: true, uniqueness: true, format: { with: /\A(A\d{7}|U\d{6,7})\z/i }
validates :name, presence: true
validates :email, format: { with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i }
has_many :timetables, dependent: :destroy
valida... |
3d4dc53ab910580f88380ee09875dce319556e70 | sipXconfig/web/context/WEB-INF/upload/ManageUploads_de.properties | sipXconfig/web/context/WEB-INF/upload/ManageUploads_de.properties | title=Ger\u00E4tedateien
prompt.description=Hier gespeicherte Ger\u00E4tedateien k\u00F6nnen mittels FTP oder TFTP von einem Telefon, Gateway, oder einem \
anderen Ger\u00E4t angesprochen und heruntergeladen werden. Dies ist vorallem n\u00FCtzlich f\u00FCr Konfigurations- und \
Firmwaredateien. Aktive Dateien sind ve... | title=Ger\u00E4tedateien
prompt.description=Hier gespeicherte Ger\u00E4tedateien k\u00F6nnen mittels FTP oder TFTP von einem Telefon, Gateway, oder einem \
anderen Ger\u00E4t angesprochen und heruntergeladen werden. Dies ist vorallem n\u00FCtzlich f\u00FCr Konfigurations- und \
Firmwaredateien. Aktive Dateien sind ve... | Update translations for Uploads Page | Update translations for Uploads Page
git-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@8268 a612230a-c5fa-0310-af8b-88eea846685b
| INI | lgpl-2.1 | sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror | ini | ## Code Before:
title=Ger\u00E4tedateien
prompt.description=Hier gespeicherte Ger\u00E4tedateien k\u00F6nnen mittels FTP oder TFTP von einem Telefon, Gateway, oder einem \
anderen Ger\u00E4t angesprochen und heruntergeladen werden. Dies ist vorallem n\u00FCtzlich f\u00FCr Konfigurations- und \
Firmwaredateien. Aktive... |
900fb9299968c543f0621a993026911163ac3878 | src/kato-http-api.coffee | src/kato-http-api.coffee |
module.exports = (robot) ->
robot.on 'kato-http-post', (kato-http-post) ->
sendMessage kato-http-post
robot.brain.data.kato-http-api.rooms or= {}
sendMessage = (message) ->
data = JSON.stringify({
room: message.room || 'all',
text: message.text,
from: message.from || robot.na... |
module.exports = (robot) ->
config = secrets:
katoRoomURL: process.env.HUBOT_KATO_ALL_ROOM_HTTP_POST_URL
robot.on 'kato-http-post', (kato-http-post) ->
sendMessage kato-http-post
sendMessage = (message) ->
data = JSON.stringify({
text: message.text,
from: message.from || robot.nam... | Set up environment variable to hold Kato "All" room HTTP POST URL. | Set up environment variable to hold Kato "All" room HTTP POST URL.
| CoffeeScript | mit | ocean/hubot-kato-http-api | coffeescript | ## Code Before:
module.exports = (robot) ->
robot.on 'kato-http-post', (kato-http-post) ->
sendMessage kato-http-post
robot.brain.data.kato-http-api.rooms or= {}
sendMessage = (message) ->
data = JSON.stringify({
room: message.room || 'all',
text: message.text,
from: message.... |
4f753afddb5f42a508ccec74bd6b8d8cb8677f13 | README.md | README.md | **BNCSUtil** is the **B**attle.**N**et **C**hat **S**ervice **Util**ity which
aids applications trying to logon to Classic Battle.net™ using the binary
protocol. Specifically, BNCSUtil has functions that help with the cryptography
of game versions, keys, and passwords.
## Installing
Simply place the `.so` or `.d... | **BNCSUtil** is the **B**attle.**N**et **C**hat **S**ervice **Util**ity which
aids applications trying to logon to Classic Battle.net™ using the binary
protocol. Specifically, BNCSUtil has functions that help with the cryptography
of game versions, keys, and passwords.
BNCSUtil was originally written by Eric Nae... | Move text from GitHub project description | Move text from GitHub project description
| Markdown | lgpl-2.1 | BNETDocs/bncsutil,BNETDocs/bncsutil | markdown | ## Code Before:
**BNCSUtil** is the **B**attle.**N**et **C**hat **S**ervice **Util**ity which
aids applications trying to logon to Classic Battle.net™ using the binary
protocol. Specifically, BNCSUtil has functions that help with the cryptography
of game versions, keys, and passwords.
## Installing
Simply place ... |
39af2f88ceeb4b78ce3129e62620ca93b8e94ee3 | README.md | README.md | mars-reports-project
====================
This repository contains Python scripts for reformatting and enhancing BSLW MARS reports. The scripts were created in 2014 as part of a Harvard Library pilot project.
| MARS Reports Project
======================
This repository contains Python scripts for reformatting and enhancing BSLW MARS reports. The scripts were created in 2014 as part of a Harvard Library Information and Technical Services (HL-ITS) pilot project.
| Revise basic description of project | Revise basic description of project
Revised basic description of MARS pilot project. | Markdown | mit | mbeckett7/mars-reports-project | markdown | ## Code Before:
mars-reports-project
====================
This repository contains Python scripts for reformatting and enhancing BSLW MARS reports. The scripts were created in 2014 as part of a Harvard Library pilot project.
## Instruction:
Revise basic description of project
Revised basic description of MARS pilot p... |
b8f7cbbd622061ca6d614c3849f8cf29afbef7e2 | README.md | README.md |
Use [Riot](http://github.com/thumblemonks/riot/) to test your [Rack](http://rack.rubyforge.org/)
apps easily!
Here's the gist of it:
require 'riot'
require 'riot/rack'
context "HelloWorldApp" do
# Specify your app using the #app helper.
app { HelloWorldApp }
# You can use all the Rack... |
Use [Riot](http://github.com/thumblemonks/riot/) to test your [Rack](http://rack.rubyforge.org/)
apps easily!
Here's the gist of it:
require 'riot'
require 'riot/rack'
context "HelloWorldApp" do
# Specify your app using the #app helper.
app { HelloWorldApp }
# You can use all the Rack... | Add Brian Carlson to copyright notice | Add Brian Carlson to copyright notice
| Markdown | mit | dasch/riot-rack | markdown | ## Code Before:
Use [Riot](http://github.com/thumblemonks/riot/) to test your [Rack](http://rack.rubyforge.org/)
apps easily!
Here's the gist of it:
require 'riot'
require 'riot/rack'
context "HelloWorldApp" do
# Specify your app using the #app helper.
app { HelloWorldApp }
# You can ... |
f8969be846d4d6f4b302417c6039e8916e0d9d40 | app/views/jmd/performances/_draggable_performance.html.erb | app/views/jmd/performances/_draggable_performance.html.erb | <%
# One minute corresponds to 3 pixels => 1 pixel is 20 seconds
height = (performance.duration.to_f / 20).round
margin = ((performance.rounded_duration - performance.duration).to_f / 20).round
if performance.stage_time
top = (performance.stage_time.hour - 9) * 180 + performance.stage_time.min * 3
else
... | <%
# One minute corresponds to 3 pixels => 1 pixel is 20 seconds
height = (performance.duration.to_f / 20).round
margin = ((performance.rounded_duration - performance.duration).to_f / 20).round
if performance.stage_time
top = (performance.stage_time.hour - 9) * 180 + performance.stage_time.min * 3
else
... | Add country flags to scheduler performances | Add country flags to scheduler performances
| HTML+ERB | mit | richeterre/jumubase-rails,richeterre/jumubase-rails,richeterre/jumubase-rails | html+erb | ## Code Before:
<%
# One minute corresponds to 3 pixels => 1 pixel is 20 seconds
height = (performance.duration.to_f / 20).round
margin = ((performance.rounded_duration - performance.duration).to_f / 20).round
if performance.stage_time
top = (performance.stage_time.hour - 9) * 180 + performance.stage_time.m... |
791738d669734561ecd4aba62ff1ab3cd1b858bd | lib/rails-footnotes.rb | lib/rails-footnotes.rb | require 'rails'
require 'action_controller'
require 'rails-footnotes/backtracer'
require 'rails-footnotes/abstract_note'
require 'rails-footnotes/each_with_rescue'
require 'rails-footnotes/filter'
require 'rails-footnotes/notes/all'
require 'rails-footnotes/extension'
require 'active_support/deprecation'
module Footno... | require 'rails'
require 'action_controller'
require 'rails-footnotes/backtracer'
require 'rails-footnotes/abstract_note'
require 'rails-footnotes/each_with_rescue'
require 'rails-footnotes/filter'
require 'rails-footnotes/notes/all'
require 'rails-footnotes/extension'
require 'active_support/deprecation'
module Footno... | Allow to change the notes config directly from Footnotes.setup | Allow to change the notes config directly from Footnotes.setup
| Ruby | mit | oakbow/rails-footnotes,oakbow/rails-footnotes | ruby | ## Code Before:
require 'rails'
require 'action_controller'
require 'rails-footnotes/backtracer'
require 'rails-footnotes/abstract_note'
require 'rails-footnotes/each_with_rescue'
require 'rails-footnotes/filter'
require 'rails-footnotes/notes/all'
require 'rails-footnotes/extension'
require 'active_support/deprecation... |
7a5467f39fed77491fd427e44394ff5da764a55f | app/views/tags/show.atom.builder | app/views/tags/show.atom.builder | atom_feed do |feed|
feed.title("Latest activity for #{@tag}")
feed.updated(@tag.updated_at)
for event in @events
feed.entry(event) do |entry|
event_html = timeline_event(event, false) # don't include time ago in feeds
entry.title(strip_tags(event_html))
# sanitize strips away the ul/li tag... | atom_feed(:root_url => polymorphic_url(@tag)) do |feed|
feed.title("Latest activity for #{@tag}")
feed.updated(@tag.updated_at)
for event in @events
feed.entry(event) do |entry|
event_html = timeline_event(event, false) # don't include time ago in feeds
entry.title(strip_tags(event_html))
... | Set a more natural root url and always include author for the feed entries. | Set a more natural root url and always include author for the feed entries.
| Ruby | mit | hadley/crantastic,hadley/crantastic,tenforwardconsulting/crantastic,tenforwardconsulting/crantastic,hadley/crantastic,tenforwardconsulting/crantastic,tenforwardconsulting/crantastic | ruby | ## Code Before:
atom_feed do |feed|
feed.title("Latest activity for #{@tag}")
feed.updated(@tag.updated_at)
for event in @events
feed.entry(event) do |entry|
event_html = timeline_event(event, false) # don't include time ago in feeds
entry.title(strip_tags(event_html))
# sanitize strips aw... |
4e2549d34722026b967006aa6c184c39e0265a1c | config/database.yml | config/database.yml | development:
adapter: postgresql
encoding: unicode
database: open_food_web_dev
pool: 5
username: ofw
password: f00d
test:
adapter: postgresql
encoding: unicode
database: open_food_web_test
pool: 5
username: ofw
password: f00d
#not used with heroku
production:
adapter: postgresql
encoding: ... | development:
adapter: postgresql
encoding: unicode
database: open_food_web_dev
pool: 5
host: localhost
username: ofw
password: f00d
test:
adapter: postgresql
encoding: unicode
database: open_food_web_test
pool: 5
host: localhost
username: ofw
password: f00d
#not used with heroku
production... | Add host setting, required for authenticating local DBs | Add host setting, required for authenticating local DBs
| YAML | agpl-3.0 | lin-d-hop/openfoodnetwork,RohanM/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,KateDavis/openfoodnetwork,lin-d-hop/openfoodnetwork,levent/openfoodnetwork,ltrls/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,ecocitycore/openfoodnetwork,levent/openfoodnetwork,Matt-Yorkley/openfoodnetwork,oeoeaio/openfoodnetwork,ecocityc... | yaml | ## Code Before:
development:
adapter: postgresql
encoding: unicode
database: open_food_web_dev
pool: 5
username: ofw
password: f00d
test:
adapter: postgresql
encoding: unicode
database: open_food_web_test
pool: 5
username: ofw
password: f00d
#not used with heroku
production:
adapter: postgre... |
0ac2123ea3136f1a925973f251c739abd8bf6931 | wp-content/themes/brewtah/single-dabc-store.php | wp-content/themes/brewtah/single-dabc-store.php | <?php get_header(); ?>
<div class="row">
<div class="small-12 large-8 columns" role="main">
<?php do_action('brewtah_before_content'); ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
... | <?php get_header(); ?>
<div class="row">
<div class="small-12 large-8 columns" role="main">
<?php do_action('brewtah_before_content'); ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<?php get_template_part( 'parts/store-info' ); ?>
<... | Use store info template part on single store. | Use store info template part on single store. | PHP | mit | jeffstieler/utah-beer-finder-wp,jeffstieler/utah-beer-finder-wp,jeffstieler/utah-beer-finder-wp,jeffstieler/utah-beer-finder-wp | php | ## Code Before:
<?php get_header(); ?>
<div class="row">
<div class="small-12 large-8 columns" role="main">
<?php do_action('brewtah_before_content'); ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header>
<h1 class="entry-title"><?php the_titl... |
0507371d6f8e1e8d0cdbcf114d8258e88f79ef4c | src/components/PrimalMultiplication.jsx | src/components/PrimalMultiplication.jsx | import React from 'react';
import MultiplicationTable from './MultiplicationTable.jsx';
import findPrimes from '../helpers/find-primes.js';
class PrimalMultiplication extends React.Component {
constructor(props) {
super(props);
this.state = {
primesLength: 10,
primes: findPrimes(10)
};
... | import React from 'react';
import MultiplicationTable from './MultiplicationTable.jsx';
import findPrimes from '../helpers/find-primes.js';
class PrimalMultiplication extends React.Component {
constructor(props) {
super(props);
this.state = {
primesLength: props.initialPrimesLength,
primes: f... | Use defaultProps for component defaults | Use defaultProps for component defaults
| JSX | cc0-1.0 | acusti/primal-multiplication,acusti/primal-multiplication | jsx | ## Code Before:
import React from 'react';
import MultiplicationTable from './MultiplicationTable.jsx';
import findPrimes from '../helpers/find-primes.js';
class PrimalMultiplication extends React.Component {
constructor(props) {
super(props);
this.state = {
primesLength: 10,
primes: findPrim... |
c794bb48ea8c762c569dcd1f4a56392cb3b803eb | app/views/dough/forms/builders/validation/_summary_for_errors.html.erb | app/views/dough/forms/builders/validation/_summary_for_errors.html.erb | <div class="validation-summary">
<div class="validation-summary__content-container">
<ol class="validation-summary__list">
<%= render partial: 'summary_for_errors_li', collection: errors, as: 'error' %>
</ol>
</div>
</div>
| <div class="validation-summary" role="alert">
<div class="validation-summary__content-container">
<ol class="validation-summary__list">
<%= render partial: 'summary_for_errors_li', collection: errors, as: 'error' %>
</ol>
</div>
</div>
| Add alert state to error summary | Add alert state to error summary
| HTML+ERB | mit | moneyadviceservice/dough,moneyadviceservice/dough,moneyadviceservice/dough,moneyadviceservice/dough | html+erb | ## Code Before:
<div class="validation-summary">
<div class="validation-summary__content-container">
<ol class="validation-summary__list">
<%= render partial: 'summary_for_errors_li', collection: errors, as: 'error' %>
</ol>
</div>
</div>
## Instruction:
Add alert state to error summary
## Code Afte... |
47bf8a8351b6a5bd4e4ad0b1943a329009cd7f87 | index.js | index.js | /* jshint node: true */
'use strict';
var path = require('path');
var mergeTrees = require('broccoli-merge-trees');
module.exports = {
name: 'lodash',
treeForAddon: function(tree) {
var lodashPath = path.join(this.project.root, 'node_modules', 'ember-lodash', 'node_modules', 'lodash-es');
if (this.app.n... | /* jshint node: true */
'use strict';
var path = require('path');
var mergeTrees = require('broccoli-merge-trees');
module.exports = {
name: 'lodash',
treeForAddon: function(tree) {
var lodashPath = path.join(this.project.addonPackages['ember-lodash'].path, 'node_modules', 'lodash-es');
var lodashTree = ... | Use this.project.addonPackages to resolve head of addon path | Use this.project.addonPackages to resolve head of addon path
| JavaScript | mit | samselikoff/ember-lodash,levanto-financial/ember-lodash,levanto-financial/ember-lodash,jmccune/ember-jm-lodash,mike-north/ember-lodash,mike-north/ember-lodash,truenorth/ember-lodash,samselikoff/ember-lodash,truenorth/ember-lodash,jmccune/ember-jm-lodash | javascript | ## Code Before:
/* jshint node: true */
'use strict';
var path = require('path');
var mergeTrees = require('broccoli-merge-trees');
module.exports = {
name: 'lodash',
treeForAddon: function(tree) {
var lodashPath = path.join(this.project.root, 'node_modules', 'ember-lodash', 'node_modules', 'lodash-es');
... |
0be2579263b97b7a218dbdf80b3d8798a653ec4f | app/jobs/cache_browser_channels_json_job.rb | app/jobs/cache_browser_channels_json_job.rb | class CacheBrowserChannelsJsonJob < ApplicationJob
queue_as :heavy
def perform
channels_json = JsonBuilders::ChannelsJsonBuilder.new.build
Rails.cache.write('browser_channels_json', channels_json)
Rails.logger.info("CacheBrowserChannelsJsonJob updated the cached browser channels json.")
end
end
| class CacheBrowserChannelsJsonJob < ApplicationJob
queue_as :heavy
def perform
channels_json = JsonBuilders::ChannelsJsonBuilder.new.build
result = Rails.cache.write('browser_channels_json', channels_json)
Rails.logger.info("CacheBrowserChannelsJsonJob updated the cached browser channels json. Result: ... | Add the result to the log | Add the result to the log
| Ruby | mpl-2.0 | brave/publishers,brave/publishers,brave/publishers | ruby | ## Code Before:
class CacheBrowserChannelsJsonJob < ApplicationJob
queue_as :heavy
def perform
channels_json = JsonBuilders::ChannelsJsonBuilder.new.build
Rails.cache.write('browser_channels_json', channels_json)
Rails.logger.info("CacheBrowserChannelsJsonJob updated the cached browser channels json.")... |
c6bac6c18f5b037f86bf357ae61c6df4cdade5cb | priv/docker-ads.sh | priv/docker-ads.sh |
echo "Launching docker instance."
docker run --dns=4.2.2.1 -e "EVALUATION_PASSPHRASE=$EVALUATION_PASSPHRASE" -t -i cmeiklejohn/lasp-evaluation
|
if [ ! -z "$BUILD" ]; then
echo "Building Docker image."
docker build -f Dockerfiles/lasp-evaluation -t cmeiklejohn/lasp-evaluation .
fi
echo "Launching docker instance."
docker run --dns=4.2.2.1 -e "EVALUATION_PASSPHRASE=$EVALUATION_PASSPHRASE" -t -i cmeiklejohn/lasp-evaluation
| Build if build is set. | Build if build is set.
If the build option is set, then build the docker container first.
| Shell | apache-2.0 | lasp-lang/lasp,lasp-lang/lasp,ergl/lasp,ergl/lasp,ergl/lasp,ergl/lasp,lasp-lang/lasp,lasp-lang/lasp | shell | ## Code Before:
echo "Launching docker instance."
docker run --dns=4.2.2.1 -e "EVALUATION_PASSPHRASE=$EVALUATION_PASSPHRASE" -t -i cmeiklejohn/lasp-evaluation
## Instruction:
Build if build is set.
If the build option is set, then build the docker container first.
## Code After:
if [ ! -z "$BUILD" ]; then
echo "... |
c5f7db2ac3829877e0cd1452259a4f7b76bac558 | .travis.yml | .travis.yml |
language: python
matrix:
include:
- name: Code quality tests
env: TOXENV=flake8,manifest,docs
python: 3.8
- name: Unit tests with Python 3.8
env: TOXENV=py38
python: 3.8
- name: Unit tests with Python 3.7
env: TOXENV=py37
python: 3.7
- name: Unit tests with Python ... |
language: python
matrix:
include:
- name: Code quality tests
env: TOXENV=flake8,manifest,docs
python: 3.8
- name: Unit tests with Python 3.8
env: TOXENV=py38
python: 3.8
- name: Unit tests with Python 3.7
env: TOXENV=py37
python: 3.7
- name: Unit tests with Python ... | Install tox in Travis configuration | Install tox in Travis configuration
| YAML | mit | Cito/DBUtils,Cito/DBUtils | yaml | ## Code Before:
language: python
matrix:
include:
- name: Code quality tests
env: TOXENV=flake8,manifest,docs
python: 3.8
- name: Unit tests with Python 3.8
env: TOXENV=py38
python: 3.8
- name: Unit tests with Python 3.7
env: TOXENV=py37
python: 3.7
- name: Unit te... |
ce4d9f571c11945b0829cc56e4e7d76603f743bc | spec/elk_spec.rb | spec/elk_spec.rb | require 'spec_helper'
require 'elk'
describe Elk do
it 'should detect missing username and/or password' do
expect { described_class.base_url }.to raise_error(described_class::AuthError)
described_class.configure do |config|
config.username = nil
config.password = 'PASSWORD'
end
expect {... | require 'spec_helper'
require 'elk'
describe Elk do
context "detect missing username and/or password" do
context "when nothing is configured" do
specify do
Elk.configure do |config|
config.username = nil
config.password = nil
end
expect { Elk.base_url }.to raise... | Isolate Elk configuration examples to make sure it is always reset. | Isolate Elk configuration examples to make sure it is always reset.
| Ruby | mit | jage/elk | ruby | ## Code Before:
require 'spec_helper'
require 'elk'
describe Elk do
it 'should detect missing username and/or password' do
expect { described_class.base_url }.to raise_error(described_class::AuthError)
described_class.configure do |config|
config.username = nil
config.password = 'PASSWORD'
e... |
725605cd20b29e200f6aaa90f29053bc623b0e51 | thefuck/rules/unknown_command.py | thefuck/rules/unknown_command.py | import re
from thefuck.utils import replace_command
def match(command):
return (re.search(r"([^:]*): Unknown command.*", command.stderr) != None
and re.search(r"Did you mean ([^?]*)?", command.stderr) != None)
def get_new_command(command):
broken_cmd = re.findall(r"([^:]*): Unknown command.*", c... | import re
from thefuck.utils import replace_command
def match(command):
return (re.search(r"([^:]*): Unknown command.*", command.stderr) is not None
and re.search(r"Did you mean ([^?]*)?", command.stderr) is not None)
def get_new_command(command):
broken_cmd = re.findall(r"([^:]*): Unknown comma... | Fix flake8 errors: E711 comparison to None should be 'if cond is not None:' | Fix flake8 errors: E711 comparison to None should be 'if cond is not None:'
| Python | mit | mlk/thefuck,mlk/thefuck,nvbn/thefuck,Clpsplug/thefuck,SimenB/thefuck,nvbn/thefuck,scorphus/thefuck,Clpsplug/thefuck,SimenB/thefuck,scorphus/thefuck | python | ## Code Before:
import re
from thefuck.utils import replace_command
def match(command):
return (re.search(r"([^:]*): Unknown command.*", command.stderr) != None
and re.search(r"Did you mean ([^?]*)?", command.stderr) != None)
def get_new_command(command):
broken_cmd = re.findall(r"([^:]*): Unkno... |
c17b8e6141d2832b9920eb143de2937993fb8865 | linguist/models/base.py | linguist/models/base.py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from .. import settings
@python_2_unicode_compatible
class Translation(models.Model):
"""
A Translation.
"""
identifier = models.CharField(
max_le... | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from .. import settings
@python_2_unicode_compatible
class Translation(models.Model):
"""
A Translation.
"""
identifier = models.CharField(
max_le... | Rename locale field to language. | Rename locale field to language.
| Python | mit | ulule/django-linguist | python | ## Code Before:
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from .. import settings
@python_2_unicode_compatible
class Translation(models.Model):
"""
A Translation.
"""
identifier = models.CharField... |
afc18d0fbb0ed97b5e9fff1e7a595010d522d42e | app/views/exercises/index.html.erb | app/views/exercises/index.html.erb | <%= provide(:header, "Seus exercícios") %>
<%= link_to "Criar novo exercício", new_exercise_path, class: "btn btn-primary pull-right" %>
<br></br>
<br></br>
<% @exercises.each do |exercise| %>
<div class="box box-solid box-default">
<div class="box-header">
<h3 class="box-title"><%= exercise.title %></h><... | <%= provide(:header, "Seus exercícios") %>
<%= provide(:description, "Preview") %>
<%= link_to "Criar novo exercício", new_exercise_path, class: "btn btn-primary pull-right" %>
<br></br>
<br></br>
<% @exercises.each do |exercise| %>
<div class="box box-solid box-default">
<div class="box-header">
<h3 clas... | Make display markdown in index view and add a link to edit the exercise | Make display markdown in index view and add a link to edit the exercise
| HTML+ERB | mit | rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn | html+erb | ## Code Before:
<%= provide(:header, "Seus exercícios") %>
<%= link_to "Criar novo exercício", new_exercise_path, class: "btn btn-primary pull-right" %>
<br></br>
<br></br>
<% @exercises.each do |exercise| %>
<div class="box box-solid box-default">
<div class="box-header">
<h3 class="box-title"><%= exerci... |
137dfe6d194361e278c6b7c454c56975777217d8 | lib/generators/crono/install/templates/migrations/create_crono_jobs.rb | lib/generators/crono/install/templates/migrations/create_crono_jobs.rb | class CreateCronoJobs < ActiveRecord::Migration
def self.up
create_table :crono_jobs do |t|
t.string :job_id, null: false
t.text :log
t.datetime :last_performed_at
t.boolean :healthy
t.timestamps null: false
end
add_index :crono_jobs, [:job_id], unique: true
end
... | class CreateCronoJobs < ActiveRecord::Migration
def self.up
create_table :crono_jobs do |t|
t.string :job_id, null: false
t.text :log, limit: 4294967295 # LONGTEXT for MySQL
t.datetime :last_performed_at
t.boolean :healthy
t.timestamps null: false
end
add_index :cr... | Fix MySQL default text size limit | Fix MySQL default text size limit
| Ruby | apache-2.0 | plashchynski/crono,plashchynski/crono | ruby | ## Code Before:
class CreateCronoJobs < ActiveRecord::Migration
def self.up
create_table :crono_jobs do |t|
t.string :job_id, null: false
t.text :log
t.datetime :last_performed_at
t.boolean :healthy
t.timestamps null: false
end
add_index :crono_jobs, [:job_id], uni... |
71b961053d2366720ee3646d670088a35e03963c | config/initializers/flow_preview.rb | config/initializers/flow_preview.rb | show_drafts = ENV["SHOW_DRAFT_FLOWS"] ? true : !Rails.env.production?
FLOW_REGISTRY_OPTIONS = { show_drafts: show_drafts }.freeze
# Uncomment the following to run smartanswers with the test flows instead of the real ones
#
#FLOW_REGISTRY_OPTIONS[:smart_answer_load_path] = Rails.root.join('test', 'fixtures', 'smart_an... | show_drafts = ENV["SHOW_DRAFT_FLOWS"] ? true : !Rails.env.production?
FLOW_REGISTRY_OPTIONS = { show_drafts: show_drafts } # rubocop:disable Style/MutableConstant
# Uncomment the following to run smartanswers with the test flows instead of the real ones
#
#FLOW_REGISTRY_OPTIONS[:smart_answer_load_path] = Rails.root.j... | Fix bug due to frozen non-constant | Fix bug due to frozen non-constant
This isn't ideal, but avoids changing the behaviour in the test.
| Ruby | mit | alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers,alphagov/smart-answers | ruby | ## Code Before:
show_drafts = ENV["SHOW_DRAFT_FLOWS"] ? true : !Rails.env.production?
FLOW_REGISTRY_OPTIONS = { show_drafts: show_drafts }.freeze
# Uncomment the following to run smartanswers with the test flows instead of the real ones
#
#FLOW_REGISTRY_OPTIONS[:smart_answer_load_path] = Rails.root.join('test', 'fixt... |
6142f5996021eb7199f520bdeb5243321edd65f9 | integration-tests/gradle/projects/it-multiplatform-0/build.gradle.kts | integration-tests/gradle/projects/it-multiplatform-0/build.gradle.kts | import org.jetbrains.dokka.gradle.DokkaTask
plugins {
kotlin("multiplatform")
id("org.jetbrains.dokka")
}
apply(from = "../template.root.gradle.kts")
kotlin {
jvm()
linuxX64("linux")
macosX64("macos")
sourceSets {
named("commonMain") {
dependencies {
implem... | import org.jetbrains.dokka.gradle.DokkaTask
plugins {
kotlin("multiplatform")
id("org.jetbrains.dokka")
}
apply(from = "../template.root.gradle.kts")
kotlin {
jvm()
linuxX64("linux")
macosX64("macos")
js()
sourceSets {
named("commonMain") {
dependencies {
... | Add js target back to Multiplatform0GradleIntegrationTest | Add js target back to Multiplatform0GradleIntegrationTest
| Kotlin | apache-2.0 | Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,Kotlin/dokka | kotlin | ## Code Before:
import org.jetbrains.dokka.gradle.DokkaTask
plugins {
kotlin("multiplatform")
id("org.jetbrains.dokka")
}
apply(from = "../template.root.gradle.kts")
kotlin {
jvm()
linuxX64("linux")
macosX64("macos")
sourceSets {
named("commonMain") {
dependencies {
... |
f7deaabae84d01e7e9a62e6ecb8cbf1f6fc4990e | examples/user-config/ami-ids/aem62_sp1_cfp13-rhel7-stack-builder-ami-ids.yaml | examples/user-config/ami-ids/aem62_sp1_cfp13-rhel7-stack-builder-ami-ids.yaml | ami_ids:
author: ami-2e69a14c
author_dispatcher: ami-31579f53
author_publish_dispatcher: ami-6226ee00
chaos_monkey: ami-5a69a138
orchestrator: ami-5a69a138
publish: ami-aa549cc8
publish_dispatcher: ami-31579f53
| ami_ids:
author: ami-6e09c20c
author_dispatcher: ami-b3f63dd1
author_publish_dispatcher: ami-6226ee00
chaos_monkey: ami-0ef43f6c
orchestrator: ami-0ef43f6c
publish: ami-19f73c7b
publish_dispatcher: ami-b3f63dd1
| Update sandpit examples with latest packer-aem baking. | Update sandpit examples with latest packer-aem baking.
| YAML | apache-2.0 | shinesolutions/aem-aws-stack-builder,shinesolutions/aem-aws-stack-builder | yaml | ## Code Before:
ami_ids:
author: ami-2e69a14c
author_dispatcher: ami-31579f53
author_publish_dispatcher: ami-6226ee00
chaos_monkey: ami-5a69a138
orchestrator: ami-5a69a138
publish: ami-aa549cc8
publish_dispatcher: ami-31579f53
## Instruction:
Update sandpit examples with latest packer-aem baking.
## Cod... |
4e24bb99d03fb3d46ed3181db9f8598a5420441e | .travis.yml | .travis.yml | language: ruby
sudo: false
install: ./script/bootstrap
script: ./script/cibuild
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
notifications:
email: false
| language: ruby
sudo: false
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- ./script/bootstrap
script: ./script/cibuild
rvm:
- 1.9.3
- 2.0
- 2.1
- 2... | Upgrade node version for webpack | Upgrade node version for webpack
| YAML | mit | deckar01/task_list,deckar01/task_list,deckar01/task_list,deckar01/task_list | yaml | ## Code Before:
language: ruby
sudo: false
install: ./script/bootstrap
script: ./script/cibuild
rvm:
- 1.9.3
- 2.0
- 2.1
- 2.2
notifications:
email: false
## Instruction:
Upgrade node version for webpack
## Code After:
language: ruby
sudo: false
install:
- rm -rf ~/.nvm && git clone https://github.com/cre... |
e16e2b8e2a100268006ffc2cfd1e6ac581a9b8d0 | README.rst | README.rst | ===
infoNavigator
===
infoNavigator takes your models and makes tables for all of them so that internal users can explore them
Quick start
-----------
1. Add "infoNavigator" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'polls',
)
2. Get a url to all those models within yo... | ===
infoNavigator
===
infoNavigator takes your models and makes denormalized tables for all of them so that internal users can explore them
Quick start
-----------
1. Add "infoNavigator" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'polls',
'infoNavigator',
)
2. G... | Change description on github really slightly. | Change description on github really slightly.
| reStructuredText | mit | texastribune/info-navigator,texastribune/info-navigator | restructuredtext | ## Code Before:
===
infoNavigator
===
infoNavigator takes your models and makes tables for all of them so that internal users can explore them
Quick start
-----------
1. Add "infoNavigator" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'polls',
)
2. Get a url to all those ... |
269861330b133089f2b03d4c9b95dda49835b10e | CHANGELOG.md | CHANGELOG.md | * CURRENT ITERATION
* New `copyright` attribute containing any copyright information provided
by the VotD service. This may will cause any existing use of
`Votd.BibleGateway.text` to lose copyright data unless you add it.
(Previously, we were just using the copyright data that Bible Gateway
appended t... | * March 30, 2010 2.0.0 release
* New `copyright` attribute containing any copyright information provided
by the VotD service. This may will cause any existing use of
`Votd.BibleGateway.text` to lose copyright data unless you add it.
(Previously, we were just using the copyright data that Bible Gateway
... | Update Changelog in prep for 2.0.0 | Update Changelog in prep for 2.0.0
| Markdown | mit | sevenview/votd | markdown | ## Code Before:
* CURRENT ITERATION
* New `copyright` attribute containing any copyright information provided
by the VotD service. This may will cause any existing use of
`Votd.BibleGateway.text` to lose copyright data unless you add it.
(Previously, we were just using the copyright data that Bible Gatewa... |
f2056126a304ea576ccf942ec63058c5d1b5d606 | bindings/python/tests/CMakeLists.txt | bindings/python/tests/CMakeLists.txt |
add_custom_target(copy_python_tests_in_build ALL)
add_custom_command(TARGET copy_python_tests_in_build PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_test(NAME PythonGeometryTests COMMAND ${PYTHON_EXECUTABLE} geom... |
add_custom_target(copy_python_tests_in_build ALL)
add_custom_command(TARGET copy_python_tests_in_build PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_test(NAME PythonGeometryTests COMMAND ${Python3_EXECUTABLE} geo... | Fix CMake variable in Python bindings tests | Fix CMake variable in Python bindings tests
| Text | lgpl-2.1 | robotology/idyntree,robotology/idyntree,robotology/idyntree,robotology/idyntree,robotology/idyntree | text | ## Code Before:
add_custom_target(copy_python_tests_in_build ALL)
add_custom_command(TARGET copy_python_tests_in_build PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_test(NAME PythonGeometryTests COMMAND ${PYTHON_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.