',\n+\t\t\t\t\t' \\n' +\n+\t\t\t\t\t' \\n' +\n-\t\t\t\t\t'\\n');\n+\t\t\t\t\t' \\n');\n \t\t\t\tcallback(null, html);\n \t\t\t});\n \t\t});"},"message":{"kind":"string","value":"Issue # Testee client script injection needs to move to the page body"},"project":{"kind":"string","value":"bitovi_testee"},"split":{"kind":"string","value":"train"},"diff_languages":{"kind":"string","value":"js"}}}],"truncated":false,"partial":false},"paginationData":{"pageIndex":11639,"numItemsPerPage":100,"numTotalItems":1165213,"offset":1163900,"length":100}},"jwt":"eyJhbGciOiJFZERTQSJ9.eyJyZWFkIjp0cnVlLCJwZXJtaXNzaW9ucyI6eyJyZXBvLmNvbnRlbnQucmVhZCI6dHJ1ZX0sImlhdCI6MTc1NjMyMjg4Mywic3ViIjoiL2RhdGFzZXRzL01heHNjaGEvY29tbWl0YmVuY2giLCJleHAiOjE3NTYzMjY0ODMsImlzcyI6Imh0dHBzOi8vaHVnZ2luZ2ZhY2UuY28ifQ.ggiIDNz8FGqLKhaZvNinWc_CyV8RAne2ax47A59bNAUG4A6aar2OS4YndWipTALRq1VfSlBZavWdOs4_eVvKCw","displayUrls":true},"discussionsStats":{"closed":0,"open":1,"total":1},"fullWidth":true,"hasGatedAccess":true,"hasFullAccess":true,"isEmbedded":false,"savedQueries":{"community":[{"views":[{"key":"default/test","displayName":"test","viewName":"test"},{"key":"default/train","displayName":"train","viewName":"train"}],"sql":"SELECT * \nFROM train \nWHERE diff_languages = 'java';","title":"Java Commits in Train Set","createdAt":"2025-05-13T03:33:38.926Z","slug":"K91r3N6","private":false,"justification":"Queries for all entries where the diff_languages column is 'java', providing a filtered dataset but without deeper analysis.","viewNames":["test","train"]},{"views":[{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT * \nFROM test \nWHERE diff_languages = 'java'\nLIMIT 5000;","title":"Java Commits Test Data","createdAt":"2025-05-13T03:31:21.970Z","slug":"6JAbeB1","private":false,"justification":"Returns a subset of 5000 entries from the dataset where the programming language difference is Java, providing basic filtering for exploration.","viewNames":["test"]},{"views":[{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT * \nFROM test \nWHERE diff_languages = 'java'\nLIMIT 1000;","title":"Java Commits Sample","createdAt":"2025-05-10T05:41:28.392Z","slug":"CLaLmFr","private":false,"justification":"Retrieves the first 1,000 records where the 'diff_languages' column is 'java', providing limited insight into the specific data entries.","viewNames":["test"]},{"views":[{"key":"default/validation","displayName":"validation","viewName":"validation"},{"key":"default/train","displayName":"train","viewName":"train"},{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT * \nFROM validation \nWHERE diff_languages = 'java'\nLIMIT 1000;","title":"Java Commits Validation Sample","createdAt":"2025-05-10T05:39:00.013Z","slug":"hLwtCx9","private":false,"justification":"Retrieves a sample of entries from the validation dataset where the diff languages are Java, providing limited insight into specific Java-related data points.","viewNames":["validation","train","test"]},{"views":[{"key":"default/validation","displayName":"validation","viewName":"validation"},{"key":"default/train","displayName":"train","viewName":"train"},{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT * \nFROM validation \nWHERE diff_languages = 'java'\nLIMIT 100;","title":"Java Commits in Validation","createdAt":"2025-05-10T05:38:14.153Z","slug":"IQ4aiWv","private":false,"justification":"This query retrieves a limited sample of entries from the validation dataset where the programming language difference is Java, providing basic filtering with minimal insight.","viewNames":["validation","train","test"]},{"views":[{"key":"default/test","displayName":"test","viewName":"test"},{"key":"default/train","displayName":"train","viewName":"train"}],"sql":"SELECT * \nFROM train \nWHERE diff_languages = 'java'\nLIMIT 100;","title":"Java Commits Sample","createdAt":"2025-04-05T05:04:49.609Z","slug":"HToYeeG","private":false,"justification":"This query retrieves a sample of 100 records where the 'diff_languages' is 'java', providing basic filtering but limited analytical value.","viewNames":["test","train"]},{"views":[{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT * \nFROM test \nWHERE diff_languages = 'java'\nLIMIT 100;","title":"Java Commits Sample","createdAt":"2025-04-05T05:03:22.570Z","slug":"zD2HkSK","private":false,"justification":"Retrieves 100 samples where the language difference is Java, providing basic filtering but minimal analytical value.","viewNames":["test"]},{"views":[{"key":"default/validation","displayName":"validation","viewName":"validation"},{"key":"default/train","displayName":"train","viewName":"train"}],"sql":"SELECT *\nFROM train\nWHERE diff_languages = 'java'\nLIMIT 10;","title":"Java Commits Sample","createdAt":"2025-04-05T02:13:41.246Z","slug":"RAGw6Xe","private":false,"justification":"Retrieves 10 samples where the diff_languages column is 'java', providing basic examples of data entries with this specific language.","viewNames":["validation","train"]},{"views":[{"key":"default/train","displayName":"train","viewName":"train"},{"key":"default/validation","displayName":"validation","viewName":"validation"},{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT *\nFROM validation\nWHERE diff_languages = 'java'\nLIMIT 1000;","title":"Java Commits Validation Sample","createdAt":"2025-04-04T18:50:53.934Z","slug":"xM16jIT","private":false,"justification":"Retrieves 1,000 records where the differences in languages are marked as Java, providing a snapshot of that specific subset but limited to raw data.","viewNames":["train","validation","test"]},{"views":[{"key":"default/train","displayName":"train","viewName":"train"},{"key":"default/validation","displayName":"validation","viewName":"validation"},{"key":"default/test","displayName":"test","viewName":"test"}],"sql":"SELECT *\nFROM train\nWHERE diff_languages = 'java'\nLIMIT 1000;","title":"Java Commits Sample","createdAt":"2025-04-04T18:50:26.596Z","slug":"ZlJUjZ2","private":false,"justification":"This query retrieves 1000 random samples from the dataset where the programming language is Java, offering limited insight beyond raw data.","viewNames":["train","validation","test"]}],"user":[]}}">
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -426,7 +426,7 @@ class GenericElementPlot(DimensionedPlot):
keys = keys if keys else list(self.hmap.data.keys())
plot_opts = self.lookup_options(self.hmap.last, 'plot').options
- dynamic = element.mode if isinstance(element, DynamicMap) else False
+ dynamic = False if not isinstance(element, DynamicMap) or element.sampled else element.mode
super(GenericElementPlot, self).__init__(keys=keys, dimensions=dimensions,
dynamic=dynamic,
**dict(params, **plot_opts))
Fixed display of sampled DynamicMaps with items in cache
pyviz_holoviews
train
py
c8c84b0935365745da87b4010743565f4afa5a9b
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index <HASH>..<HASH> 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -42,9 +42,6 @@ if(isset($_SERVER['argv'][2])) {
$_REQUEST = array_merge($_REQUEST, $_GET);
}
-// Always flush the manifest for phpunit test runs
-$_GET['flush'] = 1;
-
// Connect to database
require_once $frameworkPath . '/core/Core.php';
require_once $frameworkPath . '/tests/FakeController.php';
@@ -65,4 +62,4 @@ $controller = new FakeController();
TestRunner::use_test_manifest();
// Remove the error handler so that PHPUnit can add its own
-restore_error_handler();
+restore_error_handler();
\ No newline at end of file
Don't flush manifest in test bootstrap for performance reasons
Leave the decision to the phpunit.xml config (via <get> setting),
or to the individual run via "phpunit <folder> '' flush=1".
Flushing takes multiple seconds even on my fast SSD,
which greatly reduces the likelyhood of developers adopting TDD.
diff --git a/gulpfile.js b/gulpfile.js
index <HASH>..<HASH> 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -18,8 +18,9 @@ var rename = require('gulp-rename');
gulp.task('jshint', function() {
return gulp.src(['public/**/*.js', 'lib/**/*.js'])
.pipe(jshint())
- .pipe(jshint.reporter('jshint-stylish'));
- //.pipe(jshint.reporter('fail'));
+ .pipe(jshint.reporter('jshint-stylish'))
+ // fail (non-zero exit code) if there are any errors or warnings
+ .pipe(jshint.reporter('fail'));
});
gulp.task('csslint', function() {
Adding fail reporter to jshint.
This causes the linter to return a non-zero exit code, which means the travis build fails if there are any jshint warnings / errors. #<I>
Update test_suite.py
adding unit test with timeline argument to fit
CamDavidsonPilon_lifelines
train
py
b96a4f1d1b862883971a08d55ad1354ca05271b3
diff --git a/public/js/models/Image.js b/public/js/models/Image.js
index <HASH>..<HASH> 100755
--- a/public/js/models/Image.js
+++ b/public/js/models/Image.js
@@ -75,6 +75,8 @@ Garp.dataTypes.Image.on('init', function(){
// because images won't reload if their ID is
// still the same, we need to reload the page
this.refOwner.formcontent.on('loaddata', function(){
+ var lm = new Ext.LoadMask(Ext.getBody());
+ lm.show();
document.location.href = url;
});
this.refOwner.fireEvent('save-all');
Image changed? Reload, but *with* loadmask
grrr-amsterdam_garp3
train
js
dbbf2a6dd9290bc6a962e0b9c1b0e8a070536703
diff --git a/fragman/apply.py b/fragman/apply.py
index <HASH>..<HASH> 100644
--- a/fragman/apply.py
+++ b/fragman/apply.py
@@ -10,10 +10,10 @@ def apply_changes(changed_path, config):
weave.add_revision(2, file(changed_path, 'r').readlines(), [1])
for i, other_key in enumerate(config['files']):
- revision = i + 3
other_path = os.path.join(config.root, other_key)
if other_path == changed_path:
continue # don't try to apply changes to ourself
+ revision = i + 3
weave.add_revision(revision, file(other_path, 'r').readlines(), [])
merge_result = weave.cherry_pick(2, revision) # Can I apply changes in revision 2 onto this other file?
if tuple in (type(mr) for mr in merge_result):
don't count current file when incrementing revisions
lnwallet/btcwallet: Use signDesc.HashType when signing
Tis commit makes the btcwallet signer implementation use
signDesc.HashType instead of SigHashAll when signing
transactions. This will allow the creator of the transaction
to specify the sighash policy when creating the accompanying
sign descriptior.
get test session in readonly mode in DeliveryExecutionManagerService::getDeliveryTimer
oat-sa_extension-tao-proctoring
train
php
e0147f8a6b72e4c4c3f9ec73333fc7a18d01b2ab
diff --git a/core_spec/language/fixtures/super.rb b/core_spec/language/fixtures/super.rb
index <HASH>..<HASH> 100644
--- a/core_spec/language/fixtures/super.rb
+++ b/core_spec/language/fixtures/super.rb
@@ -40,4 +40,22 @@ module Super
end
end
end
+
+ class S5
+ def here
+ :good
+ end
+ end
+
+ class S6 < S5
+ def under
+ yield
+ end
+
+ def here
+ under {
+ super
+ }
+ end
+ end
end
diff --git a/core_spec/language/super_spec.rb b/core_spec/language/super_spec.rb
index <HASH>..<HASH> 100644
--- a/core_spec/language/super_spec.rb
+++ b/core_spec/language/super_spec.rb
@@ -15,4 +15,8 @@ describe "The super keyword" do
Super::S2::C.new.foo([]).should == ["B#foo", "C#baz", "A#baz"]
Super::S2::C.new.baz([]).should == ["C#baz", "A#baz"]
end
+
+ it "calls the superclass method when in a block" do
+ Super::S6.new.here.should == :good
+ end
end
Add failing super() spec which tests super inside a block
opal_opal
train
rb,rb
4f7144c652b52417093593c99610de1d4adc8092
diff --git a/version/version.go b/version/version.go
index <HASH>..<HASH> 100644
--- a/version/version.go
+++ b/version/version.go
@@ -6,12 +6,12 @@ const (
// VersionMajor is for an API incompatible changes
VersionMajor = 5
// VersionMinor is for functionality in a backwards-compatible manner
- VersionMinor = 5
+ VersionMinor = 6
// VersionPatch is for backwards-compatible bug fixes
- VersionPatch = 2
+ VersionPatch = 0
// VersionDev indicates development branch. Releases will be empty string.
- VersionDev = "-dev"
+ VersionDev = ""
)
// Version is the specification version that the package types support.
<I>
* When we can't store signatures, point the user at the destination.
* Update for <URL>
containers_image
train
go
e2265466fb3632539dbc4823d8df02575ca1dfa2
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ if sys.version_info < (2,6):
setup(
name = "backports.lzma",
- version = "0.0.1",
+ version = "0.0.1b",
description = descr,
author = "Peter Cock, based on work by Nadeem Vawda and Per Oyvind Karlsen",
author_email = "[email protected]",
@@ -46,6 +46,7 @@ setup(
long_description = long_descr,
classifiers = [
#'Development Status :: 5 - Production/Stable',
+ 'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
diff --git a/rpcserver.go b/rpcserver.go
index <HASH>..<HASH> 100644
--- a/rpcserver.go
+++ b/rpcserver.go
@@ -868,7 +868,7 @@ func handleGenerate(s *rpcServer, cmd interface{}, closeChan <-chan struct{}) (i
Code: btcjson.ErrRPCDifficulty,
Message: fmt.Sprintf("No support for `generate` on "+
"the current network, %s, as it's unlikely to "+
- "be possible to main a block with the CPU.",
+ "be possible to mine a block with the CPU.",
s.cfg.ChainParams.Net),
}
}
rpcserver: Fix typo in generate handler.
"mine a block" instead of "main a block".
btcsuite_btcd
train
go
f09c839a27ccafb789e227dc18f3eb510228b722
diff --git a/jquery.floatThead.js b/jquery.floatThead.js
index <HASH>..<HASH> 100644
--- a/jquery.floatThead.js
+++ b/jquery.floatThead.js
@@ -684,6 +684,7 @@
if (wrappedContainer) {
$scrollContainer.unwrap();
}
+ $table.css('minWidth', '');
$floatContainer.remove();
$table.data('floatThead-attached', false);
@@ -710,4 +711,4 @@
});
return this;
};
-})(jQuery);
\ No newline at end of file
+})(jQuery);
Remove css min-width from table on destroy
mkoryak_floatThead
train
js
ee9aaee758f02d52554b6e5d453639cb33730f30
diff --git a/liquibase-core/src/main/java/liquibase/change/core/LoadDataChange.java b/liquibase-core/src/main/java/liquibase/change/core/LoadDataChange.java
index <HASH>..<HASH> 100644
--- a/liquibase-core/src/main/java/liquibase/change/core/LoadDataChange.java
+++ b/liquibase-core/src/main/java/liquibase/change/core/LoadDataChange.java
@@ -479,8 +479,8 @@ public class LoadDataChange extends AbstractChange implements ChangeWithColumns<
// 2. The database supports batched statements (for improved performance) AND we are not in an
// "SQL" mode (i.e. we generate an SQL file instead of actually modifying the database).
if
- ((needsPreparedStatement || (databaseSupportsBatchUpdates && ! isLoggingExecutor(database) &&
- hasPreparedStatementsImplemented()))) {
+ ((needsPreparedStatement || (databaseSupportsBatchUpdates && ! isLoggingExecutor(database))) &&
+ hasPreparedStatementsImplemented()) {
anyPreparedStatements = true;
ExecutablePreparedStatementBase stmt =
this.createPreparedStatement(
Update SpokenLanguage.php
Changed 'iso_<I>_1' on line <I> to 'iso_<I>_1'.
php-tmdb_api
train
php
08ce533f0960af569729d11fe03b52055073b96c
diff --git a/src/main/java/com/cloudbees/jenkins/support/impl/ThreadDumps.java b/src/main/java/com/cloudbees/jenkins/support/impl/ThreadDumps.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/cloudbees/jenkins/support/impl/ThreadDumps.java
+++ b/src/main/java/com/cloudbees/jenkins/support/impl/ThreadDumps.java
@@ -222,6 +222,17 @@ public class ThreadDumps extends Component {
}
}
+ // Print any information about deadlocks.
+ long[] deadLocks = mbean.findDeadlockedThreads();
+ if (deadLocks != null && deadLocks.length != 0) {
+ writer.println(" Deadlock Found ");
+ ThreadInfo[] deadLockThreads = mbean.getThreadInfo(deadLocks);
+
+ for (ThreadInfo threadInfo : deadLockThreads) {
+ writer.println(threadInfo.getStackTrace());
+ }
+ }
+
writer.println();
writer.flush();
}
Add information about dead lock threads.
jenkinsci_support-core-plugin
train
java
649d1577088b0c90db29dd895315455cae44c895
diff --git a/pypsa/linopt.py b/pypsa/linopt.py
index <HASH>..<HASH> 100644
--- a/pypsa/linopt.py
+++ b/pypsa/linopt.py
@@ -742,8 +742,8 @@ def run_and_read_gurobi(n, problem_fn, solution_fn, solver_logfile,
For more information on solver options:
https://www.gurobi.com/documentation/{gurobi_verion}/refman/parameter_descriptions.html
"""
- if find_spec('gurobi') is None:
- raise ModuleNotFoundError("Optional dependency 'gurobi' not found. "
+ if find_spec('gurobipy') is None:
+ raise ModuleNotFoundError("Optional dependency 'gurobipy' not found. "
"Install via 'conda install -c gurobi gurobi' or follow the "
"instructions on the documentation page "
"https://www.gurobi.com/documentation/")
search for gurobipy not gurobi (#<I>)
PyPSA_PyPSA
train
py
75edd0b771dcf5212f8ed8ddb4b17a6c13977363
diff --git a/happymongo/__init__.py b/happymongo/__init__.py
index <HASH>..<HASH> 100644
--- a/happymongo/__init__.py
+++ b/happymongo/__init__.py
@@ -72,10 +72,12 @@ class HapPyMongo(object):
"""
config = {}
app_name = get_app_name()
+ is_flask = False
# If the object is a flask.app.Flask instance
if flask_app and isinstance(app_or_object_or_dict, flask_app.Flask):
config.update(app_or_object_or_dict.config)
app_name = app_or_object_or_dict.name
+ is_flask = True
# If the object is a dict
elif isinstance(app_or_object_or_dict, dict):
config.update(app_or_object_or_dict)
@@ -148,6 +150,11 @@ class HapPyMongo(object):
if any(auth):
db.authenticate(username, password)
+ if is_flask:
+ if not hasattr(app_or_object_or_dict, 'extensions'):
+ app_or_object_or_dict.extensions = {}
+ app_or_object_or_dict.extensions['happymongo'] = (mongo, db)
+
# Return the tuple
return mongo, db
diff --git a/framer/protocol.py b/framer/protocol.py
index <HASH>..<HASH> 100644
--- a/framer/protocol.py
+++ b/framer/protocol.py
@@ -14,7 +14,10 @@
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
-import asyncio
+try:
+ import asyncio
+except ImportError:
+ import trollius as asyncio
class FramedProtocol(asyncio.BaseProtocol):
Fix asyncio import
The trollius library no longer installs as the 'asyncio' package, but
as 'trollius'. Change the one import we have to import trollius as
asyncio if asyncio is not present.
diff --git a/scuba/scuba.py b/scuba/scuba.py
index <HASH>..<HASH> 100644
--- a/scuba/scuba.py
+++ b/scuba/scuba.py
@@ -15,11 +15,6 @@ from .dockerutil import make_vol_opt
from .utils import shell_quote_cmd, flatten_list
-def verbose_msg(fmt, *args):
- # TODO: remove
- pass
-
-
class ScubaError(Exception):
pass
@@ -227,11 +222,9 @@ class ScubaDive:
'''
if not self.context.script:
# No user-provided command; we want to run the image's default command
- verbose_msg('No user command; getting command from image')
default_cmd = get_image_command(self.context.image)
if not default_cmd:
raise ScubaError('No command given and no image-specified command')
- verbose_msg('{} Cmd: "{}"'.format(self.context.image, default_cmd))
self.context.script = [shell_quote_cmd(default_cmd)]
# Make scubainit the real entrypoint, and use the defined entrypoint as
scuba: Remove stub verbose_msg
These two calls don't add much information for the user. If we want this
level of detail, we should use the logging API.
JonathonReinhart_scuba
train
py
efc4da03da909be63b68777b837653605e3e3532
diff --git a/core/lib/generators/refinery/cms/cms_generator.rb b/core/lib/generators/refinery/cms/cms_generator.rb
index <HASH>..<HASH> 100644
--- a/core/lib/generators/refinery/cms/cms_generator.rb
+++ b/core/lib/generators/refinery/cms/cms_generator.rb
@@ -39,7 +39,7 @@ module Refinery
# Refinery has set config.assets.initialize_on_precompile = false by default.
config.assets.initialize_on_precompile = false
-}, :after => "Application.configure do\n" if env == 'production'
+}, :after => "Application.configure do\n" if env =~ /production/
end
# Stop pretending
Use regular expression to detect if current env contains 'production'.
refinery_refinerycms
train
rb
d1d31971931e338923ed4c4076c5518a348b9269
diff --git a/src/ProxyManager/Factory/AbstractBaseFactory.php b/src/ProxyManager/Factory/AbstractBaseFactory.php
index <HASH>..<HASH> 100644
--- a/src/ProxyManager/Factory/AbstractBaseFactory.php
+++ b/src/ProxyManager/Factory/AbstractBaseFactory.php
@@ -23,6 +23,8 @@ namespace ProxyManager\Factory;
use ProxyManager\Configuration;
use ProxyManager\Generator\ClassGenerator;
use ProxyManager\ProxyGenerator\ProxyGeneratorInterface;
+use ProxyManager\Signature\Exception\InvalidSignatureException;
+use ProxyManager\Signature\Exception\MissingSignatureException;
use ProxyManager\Version;
use ReflectionClass;
@@ -61,6 +63,9 @@ abstract class AbstractBaseFactory
* @param mixed[] $proxyOptions
*
* @return string proxy class name
+ *
+ * @throws InvalidSignatureException
+ * @throws MissingSignatureException
*/
protected function generateProxy(string $className, array $proxyOptions = []) : string
{
Documenting thrown exceptions in the base factory
Ocramius_ProxyManager
train
php
d68ed9281491e8a9892d2f92b63ee9fe5462c528
diff --git a/Phrozn/Processor/Twig.php b/Phrozn/Processor/Twig.php
index <HASH>..<HASH> 100644
--- a/Phrozn/Processor/Twig.php
+++ b/Phrozn/Processor/Twig.php
@@ -58,11 +58,6 @@ class Twig
{
$path = Loader::getInstance()->getPath('library');
- // Twig uses perverted file naming (due to absense of NSs at a time it was written)
- // so fire up its own autoloader
- require_once $path . '/Vendor/Twig/Autoloader.php';
- \Twig_Autoloader::register();
-
if (count($options)) {
$this->setConfig($options)
->getEnvironment();
diff --git a/Phrozn/Twig/Loader/String.php b/Phrozn/Twig/Loader/String.php
index <HASH>..<HASH> 100644
--- a/Phrozn/Twig/Loader/String.php
+++ b/Phrozn/Twig/Loader/String.php
@@ -19,7 +19,6 @@
*/
namespace Phrozn\Twig\Loader;
-require_once(dirname(__FILE__) . '/../../Vendor/Twig/Loader/String.php');
/**
* Twig String Loader
fix(cli): Fixes incorrect variable reference
Because these were additions, git didn't pick up that the recent refactor of
env settings had changed some of the variables. This fixes those small changes
helm_helm
train
go
abd07a5ed2fb67ce0d250d0e837819896e8bdf8a
diff --git a/src/org/opencms/xml/A_CmsXmlDocument.java b/src/org/opencms/xml/A_CmsXmlDocument.java
index <HASH>..<HASH> 100644
--- a/src/org/opencms/xml/A_CmsXmlDocument.java
+++ b/src/org/opencms/xml/A_CmsXmlDocument.java
@@ -289,9 +289,17 @@ public abstract class A_CmsXmlDocument implements I_CmsXmlDocument {
// if it's a multiple choice element, the child elements must not be sorted into their types,
// but must keep their original order
if (isMultipleChoice) {
+ List<Element> nodeList = new ArrayList<Element>();
List<Element> elements = CmsXmlGenericWrapper.elements(root);
- checkMaxOccurs(elements, cd.getChoiceMaxOccurs(), cd.getTypeName());
- nodeLists.add(elements);
+ Set<String> typeNames = cd.getSchemaTypes();
+ for (Element element : elements) {
+ // check if the node type is still in the definition
+ if (typeNames.contains(element.getName())) {
+ nodeList.add(element);
+ }
+ }
+ checkMaxOccurs(nodeList, cd.getChoiceMaxOccurs(), cd.getTypeName());
+ nodeLists.add(nodeList);
}
// if it's a sequence, the children are sorted according to the sequence type definition
else {
Improved Fix for issue #<I>: Filter elements no longer contained in the choice definition
Use correct type for --disable-cert-pinning command line flag in server spawn (#<I>)
keybase_client
train
go
81129b71562a4e7a735f5094fef2ac7d3de6c8fa
diff --git a/hotdoc/core/formatter.py b/hotdoc/core/formatter.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/formatter.py
+++ b/hotdoc/core/formatter.py
@@ -528,7 +528,8 @@ class Formatter(Configurable):
'link_title': title})
return out
- def _format_type_tokens(self, type_tokens):
+ # pylint: disable=unused-argument
+ def _format_type_tokens(self, symbol, type_tokens):
out = ''
link_before = False
@@ -556,7 +557,7 @@ class Formatter(Configurable):
out = ""
if isinstance(symbol, QualifiedSymbol):
- out += self._format_type_tokens(symbol.type_tokens)
+ out += self._format_type_tokens(symbol, symbol.type_tokens)
# FIXME : ugly
elif hasattr(symbol, "link") and type(symbol) != FieldSymbol:
@@ -568,7 +569,7 @@ class Formatter(Configurable):
out += ' ' + symbol.argname
elif type(symbol) == FieldSymbol and symbol.member_name:
- out += self._format_type_tokens(symbol.qtype.type_tokens)
+ out += self._format_type_tokens(symbol, symbol.qtype.type_tokens)
if symbol.is_function_pointer:
out = ""
Pass currenly formatting symbol to _format_type_token
To give some context to subclasses, as, for example in the GIFormatte
needs to know in what language it is formatting
treat shebang outside of parsing (#<I>)
* treat shebang outside of parsing
* use less costly indexOf and reuse format function
* avoid reprinting new line and potential double space at start
* move options back to format function
diff --git a/src/Codeception/Lib/Connector/Lumen.php b/src/Codeception/Lib/Connector/Lumen.php
index <HASH>..<HASH> 100644
--- a/src/Codeception/Lib/Connector/Lumen.php
+++ b/src/Codeception/Lib/Connector/Lumen.php
@@ -106,7 +106,12 @@ class Lumen extends Client
}
$this->app = $this->kernel = require $this->module->config['bootstrap_file'];
-
+
+ // in version 5.6.*, lumen introduced the same design pattern like Laravel
+ // to load all service provider we need to call on Laravel\Lumen\Application::boot()
+ if (method_exists($this->app, 'boot')) {
+ $this->app->boot();
+ }
// Lumen registers necessary bindings on demand when calling $app->make(),
// so here we force the request binding before registering our own request object,
// otherwise Lumen will overwrite our request object.
[Lumen] add support for Laravel\Lumen\Application::boot
in version <I>.*, lumen introduced the same design pattern like Laravel
@see <URL>
Codeception_base
train
php
876d0925df5269aa0b331872b894c399f8872eeb
diff --git a/lib/jekyll-admin/data_file.rb b/lib/jekyll-admin/data_file.rb
index <HASH>..<HASH> 100644
--- a/lib/jekyll-admin/data_file.rb
+++ b/lib/jekyll-admin/data_file.rb
@@ -30,7 +30,7 @@ module JekyllAdmin
# Returns unparsed content as it exists on disk
def raw_content
- @raw_content ||= File.read(absolute_path)
+ @raw_content ||= File.open(absolute_path, "r:UTF-8", &:read)
end
# Returnes (re)parsed content using Jekyll's native parsing mechanism
diff --git a/commands/command.go b/commands/command.go
index <HASH>..<HASH> 100644
--- a/commands/command.go
+++ b/commands/command.go
@@ -40,12 +40,6 @@ type HelpText struct {
Subcommands string // overrides SUBCOMMANDS section
}
-// TODO: check Argument definitions when creating a Command
-// (might need to use a Command constructor)
-// * make sure any variadic args are at the end
-// * make sure there aren't duplicate names
-// * make sure optional arguments aren't followed by required arguments
-
// Command is a runnable command, with input arguments and options (flags).
// It can also have Subcommands, to group units of work into sets.
type Command struct {
diff --git a/src/main/java/hex/DGLM.java b/src/main/java/hex/DGLM.java
index <HASH>..<HASH> 100644
--- a/src/main/java/hex/DGLM.java
+++ b/src/main/java/hex/DGLM.java
@@ -1214,7 +1214,7 @@ public abstract class DGLM {
} else {
int d = (int) data[i]; // Enum value d can be -1 if we got enum values not seen in training
if(d == 0) continue; // level 0 of factor is skipped (coef==0).
- if( d > 0 && (idx += d) < _colCatMap[i + 1] ) p += _beta[idx]/* *1.0 */;
+ if( d > 0 && (idx += d) <= _colCatMap[i + 1] ) p += _beta[idx-1]/* *1.0 */;
else // Enum out of range?
p = Double.NaN;// Can use a zero, or a NaN
}
Bugfix in glm scoring.
h2oai_h2o-2
train
java
40a612cc9ccaf4afe60fac0b48a811552979e6a3
diff --git a/src/Adapter/MapperInterface.php b/src/Adapter/MapperInterface.php
index <HASH>..<HASH> 100644
--- a/src/Adapter/MapperInterface.php
+++ b/src/Adapter/MapperInterface.php
@@ -33,5 +33,5 @@ interface MapperInterface
*
* @return void
*/
- public function map(array $input, MetadataInterface $output);
+ public function map(array $input, MetadataInterface &$output);
}
Bugfix: Mapper should use by-reference
PHPExif_php-exif-common
train
php
f23c4664d3d62d735c69cd737bd2b32b57af2b24
diff --git a/ext/extconf.rb b/ext/extconf.rb
index <HASH>..<HASH> 100644
--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -48,7 +48,8 @@ def check_libmemcached
Dir.chdir(HERE) do
Dir.chdir(BUNDLE_PATH) do
- run("find . | xargs touch", "Touching all files so autoconf doesn't run.")
+ ts_now=Time.now.strftime("%Y%m%d%H%M.%S")
+ run("find . | xargs touch -t #{ts_now}", "Touching all files so autoconf doesn't run.")
run("env CFLAGS='-fPIC #{LIBM_CFLAGS}' LDFLAGS='-fPIC #{LIBM_LDFLAGS}' ./configure --prefix=#{HERE} --without-memcached --disable-shared --disable-utils --disable-dependency-tracking #{$CC} #{$EXTRA_CONF} 2>&1", "Configuring libmemcached.")
end
Determine timestamp to use one time, and then update all files with that timestamp
in order to avoid a possible race condition which could cause autoconf
to run
arthurnn_memcached
train
rb
b60afa47ed89e515f263ef37053eb1a5c1c75242
diff --git a/core/src/elements/ons-ripple/index.js b/core/src/elements/ons-ripple/index.js
index <HASH>..<HASH> 100644
--- a/core/src/elements/ons-ripple/index.js
+++ b/core/src/elements/ons-ripple/index.js
@@ -51,10 +51,18 @@ class RippleElement extends BaseElement {
*/
/**
- * @attribute center
+ * @attribute color
+ * @type {String}
+ * @description
+ * [en]Color of the ripple effect.[/en]
+ * [ja]リップルエフェクトの色を指定します。[/ja]
+ */
+
+ /**
+ * @attribute background
* @description
- * [en]If this attribute is set, the effect will originate from the center.[/en]
- * [ja]この属性が設定された場合、その効果は要素の中央から始まります。[/ja]
+ * [en]Color of the background.[/en]
+ * [ja]背景の色を設定します。[/ja]
*/
/**
docs(ons-ripple): Add docs for "background" attribute.
Trimmed README text for package (to avoid including links to buttons and project image).
johnbywater_eventsourcing
train
py
c80ad1c6b13c94b2503399966c1f5f2ec273353a
diff --git a/algoliasearch/algoliasearch.py b/algoliasearch/algoliasearch.py
index <HASH>..<HASH> 100644
--- a/algoliasearch/algoliasearch.py
+++ b/algoliasearch/algoliasearch.py
@@ -195,7 +195,7 @@ class Client:
params['indexes'] = indexes
return AlgoliaUtils_request(self.headers, self.hosts, "POST", "/1/keys", params)
- def generate_secured_api_key(self, private_api_key, tag_filters, user_token = None):
+ def generateSecuredApiKey(self, private_api_key, tag_filters, user_token = None):
"""
Generate a secured and public API Key from a list of tagFilters and an
optional user token identifying the current user
Keep using camelCase
algolia_algoliasearch-client-python
train
py
4abc9957b2a373588a63852e6945ad826005c68e
diff --git a/src/saml2/sigver.py b/src/saml2/sigver.py
index <HASH>..<HASH> 100644
--- a/src/saml2/sigver.py
+++ b/src/saml2/sigver.py
@@ -27,7 +27,13 @@ import base64
import random
import os
-XMLSEC_BINARY = "/opt/local/bin/xmlsec1"
+def get_xmlsec_binary():
+ for path in ('/opt/local/bin/xmlsec1',
+ '/usr/bin/xmlsec1'):
+ if os.path.exists(path):
+ return path
+
+XMLSEC_BINARY = get_xmlsec_binary()
ID_ATTR = "ID"
NODE_NAME = "urn:oasis:names:tc:SAML:2.0:assertion:Assertion"
ENC_NODE_NAME = "urn:oasis:names:tc:SAML:2.0:assertion:EncryptedAssertion"
Added a function that attempts to find the xmlsec1 binaries, made by Lorenzo Gil Sanchez
IdentityPython_pysaml2
train
py
ff63af3029aedd6545ad30a2b641222dfa7fca9a
diff --git a/tests/testnumbergen.py b/tests/testnumbergen.py
index <HASH>..<HASH> 100644
--- a/tests/testnumbergen.py
+++ b/tests/testnumbergen.py
@@ -18,7 +18,7 @@ class TestUniformRandom(unittest.TestCase):
seed=_seed,
lbound=lbound,
ubound=ubound)
- for _ in xrange(_iterations):
+ for _ in range(_iterations):
value = gen()
self.assertTrue(lbound <= value < ubound)
@@ -30,7 +30,7 @@ class TestUniformRandomOffset(unittest.TestCase):
seed=_seed,
mean=(ubound + lbound) / 2,
range=ubound - lbound)
- for _ in xrange(_iterations):
+ for _ in range(_iterations):
value = gen()
self.assertTrue(lbound <= value < ubound)
Fixed numbergen unit tests for Python 3 compatibility
Issue #<I> Testee client script injection needs to move to the page body
bitovi_testee
train
js
Subsets and Splits
Java Commits in Train Set
Queries for all entries where the diff_languages column is 'java', providing a filtered dataset but without deeper analysis.
Java Commits Test Data
Returns a subset of 5000 entries from the dataset where the programming language difference is Java, providing basic filtering for exploration.
Java Commits Sample
Retrieves the first 1,000 records where the 'diff_languages' column is 'java', providing limited insight into the specific data entries.
Java Commits Validation Sample
Retrieves a sample of entries from the validation dataset where the diff languages are Java, providing limited insight into specific Java-related data points.
Java Commits in Validation
This query retrieves a limited sample of entries from the validation dataset where the programming language difference is Java, providing basic filtering with minimal insight.
Java Commits Sample
This query retrieves a sample of 100 records where the 'diff_languages' is 'java', providing basic filtering but limited analytical value.
Java Commits Sample
Retrieves 100 samples where the language difference is Java, providing basic filtering but minimal analytical value.
Java Commits Sample
Retrieves 10 samples where the diff_languages column is 'java', providing basic examples of data entries with this specific language.
Java Commits Validation Sample
Retrieves 1,000 records where the differences in languages are marked as Java, providing a snapshot of that specific subset but limited to raw data.
Java Commits Sample
This query retrieves 1000 random samples from the dataset where the programming language is Java, offering limited insight beyond raw data.