labofsahil/github-event-dataset-2012 huggingface dataset:
Window Opacity Edge Cases, Battery Widget Documentation, and .gitignore

## Window Opacity Edge Cases

Fixed a potential overflow in cmd_opacity. cmd_down_opacity now matches behavior of cmd_up_opacity (hitting an edge then staying there, rather than passing an edge and staying there).

## Battery Widget Documentation

Docs said clock rather than battery. Easy clean up. Perhaps similar widgets could be abstracted similarly to, but not as far as the base widget.

## .gitignore

Since I am working on a Mac, (running qtile on Xubuntu in a VM) I had some .DS_Store files popping up.
Adding .include method to Array

Adding the `include` method to Array
You can add an item to an array only if that item does not already exist.

```ruby
[1, 2].include(2) => [1, 2]
[1, 2].include(3) => [1, 2, 3]
```
Rename notify_observers argument *arg to *args to make it more clear

Rename notify_observers argument *arg to *args to make it more clear that the method accepts multiple arguments (follows arguments naming convention)
Eager autoload Preloader classes

Without eager autoloading, these would be autoloaded only when #preloader_for
is called, which is too late in threaded applications.
fix named_scope tests

Tests for ```named_scope``` failed with error ```ArgumentError: Unknown key: conditions```. This commit should fix it
Fix typo in ActiveRecord::Relation#blank? test
Solve an error using 'rake db:create:all'

I tried: rake --trace db:create:all ==>
undefined method `[]' for nil:NilClass
/home/akt/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.1/lib/active_record/railties/databases.rake:31:in `block (4 levels) in <top (required)>'

Adding this patch, the error removed an the action worked.
When Active Record has already loaded a unique association `.size` returns the wrong number.

When ActiveRecord has already eager loaded an association a call to that association returns the wrong number, count still returns correctly because it executes a fresh query. This may be undesirable. This patch respects the `:uniq` flag on the association and filters the already loaded array accordingly before calling `.size`.

Tested against SQLite, Mysql and Postgres (even though this modified no sql).

Fixes #4982 (symptoms shown below)

<pre>
User.where(id:5).first.followers.size
  User Load (0.8ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1
  User Load (0.3ms)  SELECT DISTINCT `users`.* FROM `users` INNER JOIN `followers_users` ON `users`.`id` = `followers_users`.`user_id` WHERE `followers_users`.`follower_id` = 5
</pre>

<pre>
User.where(id:5).includes(:followers).first.followers.size
  User Load (0.6ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1
  SQL (0.8ms)  SELECT `users`.*, `t0`.`follower_id` AS ar_association_key_name FROM `users` INNER JOIN `followers_users` `t0` ON `users`.`id` = `t0`.`user_id` WHERE `t0`.`follower_id` IN (5)
 => 18
</pre>

See https://gist.github.com/2044768 for files needed to replicate
Extract AP Page and Action caching from Rails

This functionality will be available from gem `actionpack-deprecated_caching`.
The gem is currently hosted at <https://github.com/frodsan/actionpack-deprecated_caching>.

pd: I'm not sure about the name.
Bleak House link doesn't exist (Guide)

I was looking around I found https://github.com/evan/bleak_house  and replaced it
minor elsif/else typo fix

Just noticed this typo in ActionView::Base#initialize. Harmless now, but if someone added another "else" clause at the end it could run both of the last 2 clauses.
relation .present? and .blank? should not query SELECT COUNT(DISTINCT id)

It's a good practice to write "if @post.present?" instead of "if @posts", because it will be more readable.
however, if we are using lists, and say "if @posts.blank?" it will trigger a SELECT COUNT,
not only that, if you use JOINS, it will trigger "SELECT COUNT(DISTINCT 'posts'.id)"
that meaningless query will only affect the performance of the overall request.

Programmers know if they invoke .count or .exists? they will trigger these smaller queries "on purpose"
but methods blank? and present? invoke .empty? internally, which gets overwritten by relations.

I have seen this common miss-usage of a good practice in 02 legacy apps that I've worked already,
and I believe, it would be a good improvement in Rails if those methods (that are commonly used for checks in the view layer to display a custom message for empty), would trigger the SQL query directly, thus not invoking a COUNT DISTINCT just for checking.
Fix: Mime type names conflict with method names

We discovered this issue in one of our production apps, because we tried to use `touch` as a custom mime type, which led to the `touch` method of `Object` being executed sometimes, causing vexing errors.

This is the case for any mime type with the same name as a method on Object, even private ones.

This is caused by the following execution path:

1. `respond_to :touch` is called in a controller. This adds `:touch` to the list of mimes.
2. `retrieve_collector_from_mimes` calls `Collector.new(mimes)`
3. `initialize` calls `mimes.each { |mime| send(mime) }`
4. `send(:touch)`, instead of triggering `method_missing` on the `AbstractController::Collector`, actually calls `Object.touch`. This can lead to any sort of behavior.

A proposed fix for this issue is attached. It is based on generating the required methods on `Collector` after each mime type is registered, instead of relying on `method_missing`. That way, `send` always hits them instead of going up to `Object`.

Check out the commit messages for more info.
SI-6742 undeprecates certain manifest methods

Makes sure all manifest-related (but not classmanifest-exclusive) APIs
are undeprecated in 2.10. Let's hope we'll get them deprecated back
again in 2.11.
removes Type.isConcrete

This method was no longer used anywhere, except for a place where it wasn't
really necessary.

Its implementation is non-trivial, and I have doubts about it, so I propose
to remove it altogether instead of living with some dubious code necessary
for some dubious matter.
fixes petty macro tests
Remove stray debugging output line.

I finally reached my "CHECK THREAD ACCESS" limit.
SI-5894 Don't emit static forwarders for macros.

With a little opportunistic `Gen{AS, JV}M` duplication avoidance en-route.

Review by @magarcia, /cc @paulp, @xeno-by
move test files that fail spuriously to pending

I have this sneaky suspicion that part of these spurious failures
are caused by the recent partest optimizations.

Since the tests and/or their corresponding fixes are more likely to blame than the test framework,
moving them out of the way until their owners can get them back in line
and they stop throwing primate wenches into our build.

We should bring them back as soon as possible, though.
SI-6272 Support lazy vals defined in try in template.

Review by @hubertp

It's a trivial fix for a crasher, so I'm optimistically submitting to 2.10.x.
hotfix for TwoWayCache
Factoring out common code between findEntry() and containsEntry() in FlatHashTable

As suggested by Daniel Sobral as a side note on the following issue.

https://issues.scala-lang.org/browse/SI-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

A DRYer implementation of findEntry() and containsEntry() in FlatHashTable that does not compromise for performance.
Implicits to encourage more Name-dropping.

This creates implicits in cakes across the land from:

  String => TermName
  String => TypeName

And also from:

  Name => NameOps[Name]           // lower priority
  TermName => NameOps[TermName]
  TypeName => NameOps[TypeName]

What this is all about, using "drop" as a motivating example,
is that these should all work:

  "abc" drop 1                      // "bc": String
  ("abc": TermName) drop 1          // "bc": TermName
  ("abc": TypeName) drop 1          // "bc": TypeName
  (("abc": TypeName): Name) drop 1  // "bc": Name

But this should not:

  ("bc": Name)  // ambiguity error

This requires drop not being named on String; peer implicits
from String => TermName and String => TypeName; implicit
classes to install drop on TermName and TypeName; and a lower
priority implicit class to allow ops on Names.

Review by @xeno.by .
Test case closes SI-5137.

virtpatmat strikes again.
DOC: add document on how to contribute to SciPy.

I propose to have a first review round here before mentioning it on the mailing list. If this looks OK then it would help to also have a new user / potential contributor review it.
[version] cut 0.9.6
Tax rate label adjust

This PR allows to easily customize the label display in an tax line item. Right now it is always set to the name of the tax category. In Canada however, and certainly in other countries, a product can be subject to more than one tax (PST and GST for instance) and we need 2 lines with two tax-rates. For legal reasons (and also traceability for the buyer) the label displayed cannot be the same on both lines.

A Canadian shop could easily create a decorator for the TaxRate model  and simply override with a class_eval the `create_label` method instead of overriding the whole `adjust(order)` method.

Let me know if it needs more clarification

Michael
Initial GOESLightCurve support
issues 1400, 3459, 3460, 3462; addition of oset (ordered set)

1400: cse is now deterministic and removes single-use substitutions

3459: By watching for extractable negatives at the outset, the
problem can be circumvented. I'm not sure where the infinities
are being generated by such a simple substitution as
(-12*x).subs(-x,1).

3460, 3462 - rewrote and centralized the base exptraction from powers.

Miscellaneous cleanup in separate commits.
Tr printing, Tr partial trace

This PR implements printing operations for Tr operators and partial trace operations. Also cycle permutes are fixed for consistency. Some changes added to Density class to enable partial trace operations. Also, new set of Notebook examples have been provided.
plot: plot(1) now works
pls add this

pls add this
created mobileAction and MobileRenderer
Added basic keypress events

Added basic keypress events that uses initKeyboardEvent for browsers that support it and initKeyEvent for Gecko/Firefox.
Silly problem: 401 - Code 32 with some characters in POST /statuses/update

I encountered a weird bug.
When you have some special characters (e.g. "!") in your params to post a new tweet, it fails with Status 401, Code 32.
This error only appears in API v. 1.1 - 1.0 is fine.
The discussion at https://dev.twitter.com/discussions/11280 gave me the hint to try sending the POST data in the querystring instead of the body (wtf?) and :dart: it worked!
As it doesn't seem to harm and solves this little pitfall, I patched the oarequest to supply POST params in the querystring, like GET did.
I don't know if this is a good idea or not - if you can think of a better way, I'd be glad to go it!
(3/5) Pretty print of NBT objects

This pull request is **branched after pull request #30**; please examine that request first. (_The comments below are only about commits a7c12afc to 505760ca_. Let me know if this is problem and you want me to rebase this.)

This pull request is purely artificial: I did not like the non-informative format for NBT:

    >>> f = nbt.NBTFile("bigtest.nbt")
    >>> print(f)
    11 Entries
    >>> print(repr(f))
    11 Entries

After this patch, the output is:

    >>> f = nbt.NBTFile("bigtest.nbt")
    >>> print(f)
    {TAG_Long(u'longTest'): 9223372036854775807, TAG_Short(u'shortTest'): 32767, TAG_String(u'stringTest'): HELLO WORLD THIS IS A TEST STRING ÅÄÖ!, TAG_Float(u'floatTest'): 0.498231470585, TAG_Int(u'intTest'): 2147483647, TAG_Compound(u'nested compound test'): {2 Entries}, TAG_List(u'listTest (long)'): [5 TAG_Long(s)], TAG_List(u'listTest (compound)'): [2 TAG_Compound(s)], TAG_Byte(u'byteTest'): 127, TAG_Byte_Array(u'byteArrayTest (the first 1000 values of (n*n*255+n*7)%100, starting with n=0 (0, 62, 34, 16, 8, ...))'): [1000 byte(s)], TAG_Double(u'doubleTest'): 0.493128713218}
    >>> print(repr(f))
    <TAG_Compound(u'Level') at 0x103e3bdd0>

The result is not fully recursive, but one level deep. This is contrary to the recommendation by Python, but I find this easiest to read. Also, I later found out that the output is not exactly the same as in NBT.txt. If you like it to be exactly the same, let me know and I'll change the patch.

(Note that there are some Unicode issues with this version; see pull request 5/5 for a fix for that)
Documentation generation using Sphinx

Added Makefile based on @stumpylog, but retained conf.py.
This also contains a cherry-pick from @stumpylog which modifies the docstrings, although it uses tabs instead of 8-space indents.
[travis ci] Let the pecl installer register memcache.so with PHP v5.4 or higher

As mentioned in #1219, the pecl installer in travis is configured well enough to handle the installation of the memcache extension all the way through the process. This pr will keep the before_script from registering memcache.so twice on PHP v5.4.
Added beforeCount method and onBeforeCount event for behaviors
Enh #1396: Add mime-type for CSV

Add 'text/csv' mime-type for the 'csv' file extension in utils/mimeTypes.php, in accordance with RFC4180.

Fix #1396
#451 Fix CUrlRule::createUrl() error when $params contains an array.

Fix for `CUrlManager->createUrl()` with array values in `$param`.

For instance, `CUrlManager->createUrl("a",array("id"=>array("b"=>"c","d"=>"e")))` fails with error "urlencode() expects parameter 1 to be string, array given" at `CUrlRule->createUrl()`.

I first tried supporting array rule parameter like `<ids[]>`, which ended up just bringing complex to URL path.
This fix avoids error just by not applying the specific rule, and lets the caller use the default URL constructor.

Related: pull #506, issue #451
better null tracking, wrong var reference fixed

Just fixes, no changes in overall structure.
fixed interactive installer class names in Extension API, fixed #448

Here is the patch for #448.
Enhance Ginjector generation

Added the ability to use Gatekeepers with ApplicationController generation.

You can now add an additional interface to the generated Ginjector that allows for example the declaration of a default gatekeeper.

Fixed the use of ProviderBundles in the generated Ginjector and added a generator that generates all ProviderBundles. No more manually keeping the presenter id's and bundle size in order.

Please review :)
add `customLevels` to customize levels

Since somehow I want use some kind levels that is not in the default level set, so I add a method `customLevels` to add levels to `exports` and method with the low-case name to `Log.prototype` dynamically
Well bugfix

Fix two bugs that affected well and group control.
Removed order view

The functionality of the order view is now implemented in the contents view(https://github.com/Pylons/Kotti/commit/aeb6525dc1a436eeb50ebcbd14d22c7168c9fd1c), so the order view is obsolete. In the PR there is also a fix for the up/down bug in the contents view.
Fix some composer warnings.
Add exception message print statement.
Small update

Added textures to bird model
User social accounts added
[Ticket/10513] Add binary escape functions to fix PostgreSQL varbinary failing.

Other DBMSes need checking.

http://tracker.phpbb.com/browse/PHPBB3-10513
fix IE8 - doesn't support array map or indexOf

I hope this is self explanatory.
CoreComponents fix
Correction of a single quote
bin/grunt: Avoid the `path.existsSync` warning

Ref. cowboy/grunt#241.
Update share/html/about.html

Typos
Using stateManager.currentPath
Improving server functionality
Email are now sent after the response is sent ; use the new finish filter (see #314)

This PR completes the #314 one and delays the send of emails after the response is sent.
Fixed some stuff, should build with modern tools (bumped to 0.97.1).
Preserve RBLView's layer properties when moving superviews/windows

AppKit tends to destroy and recreate the layer on 10.7, so custom properties (even those not touched by AppKit) can get lost:

> Prior to 10.8, an AppKit managed layer would be destroyed (and removed) when a view was removed from a window or moved to another parent view. This would have the undesired effect of losing any custom properties set on the layer. For any view that explicitly has setWantsLayer:YES, the underlying AppKit managed layer will not be destroyed, and custom set layer properties will not get lost.

(from the [10.8 AppKit release notes](https://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html#//apple_ref/doc/uid/TP30000741))

Also added `RBLView.cornerRadius`, so that we can preserve that too.
testing file update

sending a new pull requests with mock file update
Lots of changes. Merging for jenkins built.
githelper addons
When creating a new safe, set 0600 as its permission

Just to be on the safe side.
Add support for dash separated description in @param and @property

Hi,

I see sometimes people writing jsDoc param and property tag with a dash "-" separating the name of the param and its description :

```jsdoc
@param foo - description of foo
````

rather than :

```jsdoc
@param foo description of foo
````

Not sure if it's a regular use but I find it enforces readability of the doc in code. So i added a support for that (see tests).

Please merge if interested..
stream: return error rather than do assertion

uv__read_start_common should not throw assertion on uninitialized
streams (with fd < 0), it should gracefuly return error to let users
process it.
updates for new site design.
new vanguard scraper merge

plz merge <3 j00.
Remove sbt-assembly-plugin
Azure

big commit heres the details:
base_uri is different
added reserved options for skip and top
made error handling info more useful
instead of converting query to a string to send to httparty, I'm now sending a hash to let it deal with it.
password is no longer hard coded and will accept direct input when calling new, or read it from your .rbing_app_id file in the $HOME directory
COSMETIC Format date in AJAX timetracking
Create cibuild script

Just needs a post-recieve hook at agent99's /github/juici
Expose service limits

The scope of this change is to expose the system and domain service limits API via the REST API.
Make heatmap blobs logarithmic in sizing

API return values for buckets are mapped to a logarithmic function onto `[2, infty)` then capped to `[2, 100]` according to the constraints:

* `f(1) = 2` (the minimum blob size which is reasonably visible)
* `f(100) = Math.floor((this.gridSize - 1) / 2)`.

For `x > 100`, then, as before, `f(x)` is capped to `f(100)` and line thickness of the blob indicates whether the value has been capped.
Use eval-in-leiningen to enable usage of rules from anywhere on the classpath

This _should_ make the `eval` usage extraneous and easily removed, but it remains for now…
Catch parser exceptions (it does throw!)

Renderer fails to callback on parsing error, without this.
Was also a TODO item in the code
A couple things

1) Removed a couple print statements from RTFetch.py script that were there from earlier debugging. One of them was not even properly formatted, so it was breaking stuff.

2) Uploaded file for ERG4/ERG24 FASTA format MAFFT MSA corresponding to Figure 2E of Sjolander et. al. "Ortholog identification in the presence of domain architecture rearrangement" paper. This needs to be used in the absence of KERF. I manually performed masking, removing the 3-4 columns that had >=70 percent gaps.

** NOTE: we should have some sort of invocation for this like "-nokerf"
[fix bug 785010] Change wording.
libstd: refactor future, remove get_ref, remove ~ indirection.

Nothing too substantial, just tidying stuff up that erickt found.

r? @erickt or @brson perhaps?
Begin real source code structure

Begin real source code structure
Bundle path

Changed bundle install path to ```shared/bundle```, it should not be stored in release directory.
Require socket to run client on MRI.
The stderr-to-stdout redirection syntax in the Java plugin is wrong

Per ticket http://tickets.opscode.com/browse/OHAI-393, there is a shell syntax bug in the Java plugin.
Added a revoke-token function to token.clj to expose this functionality ...

... from the token store implementations. We need people to be able to log out using our API, and this seems the cleanest way to support that. Otherwise, our code would need to dig down to using the token store implementation directly, which seems an unpleasant violation of encapsulation.
Service Info Support

_Ready for Review_

I need to merge this before the ele-tests merge, so we can get a deb package onto the build bot.
Added links and info to the fine grained nuget packages

I was going to add footnote to each link, but figured that it would only be duplication of info elsewhere in the site and on nuget.org.

I also added links to 3rd party packages. Don't know if you want this sort of thing here, or not. Let me know if not, and I'll remove.

Cheers,

Damian
a pty will be requested if sudo is attempted to run
Use long instead of int.

Make this test more consistent.
Issue #687: cancan inserting "AND (NULL)" at the end of sql

Ensure that empty conditions does not trigger unmergeable conditions
Update visugps/php/mvg_track.php

Added test to skip insertion into DB of points having zero lat or lon (as seen generated by BB client only at start of tracking).
merge current mplayer2 master

I fixed all the conflicts: `libmpdemux/demux_lmlm4.c` just got deleted in this tree and the rest was all OS X stuff. I also changed macosx_finder_args to work with your recent changes to the core.
resolving yui module name collision

- solve the case where a developer wants to override mojito-client or any other client or common affinity file defined by mojito core.
_s: Add additional Post Formats into functions.php

By default let's support the following Post Formats: Aside, Image, Video, Quote, and Link, to be in line with WordPress.com's (Insta)posting experience.
WIP: install_package_from_github

Added `install_package_from_github` function.
Using this, snapshot of PHP 5.5 can be installed.
https://gist.github.com/3737793

I think that installing from git repo should not skip re-downloading.
So some tuning is still needed.
Add Ubuntu font to the preferred font list.

It's closer to freight sans pro than the default browser sans-serif font.
Update plugins/fabrik_element/calc/language/en-GB/en-GB.plg_fabrik_eleme...

...nt_calc.ini

Multiline data support
Bug Fix, Cleanup and Dashboard tweak

Important bug fix to metadata.
Views

all forms we needed
Fix for TFS build problems with post-build xcopy steps

Added trailing slashes (\) to post-build xcopy steps to fix an issue when building under
TFS whereby XCOPY tries to prompt the user to choose to copy into the bin folder, or copy as a file called 'bin'. This was causing the TFS build process to hang forever, requireing the build to be stopped.
Dispose request when context is disposed

Made the following changes:

 - Made sure all hosts dispose the context
 - Updated the context to dispose the request if it's been set
 - Request stream will dispose decorated stream if it no longer is controlled by the host (i.e. if it's been switched by the requeststream type)
 - If the stream's been switched to the filesystem, then the temporary file will be deleted
aggiunta trad ing
Traduzione ENG Completa
Added a -installed switch to opam list to list only installed packages
Examination tab : Basic functionality added

basic functionality of examination tab + madication history button in social history tab is functional
Release version 1.0.0rc1
Butterfly

change tree for match seajs
Updates and map order fix.

Hi,


There has been some collisions with the map indicies so I've made some changes to help fix this.

Under the "Clairia Village" map, you'll now find another folder called "Free Clairia Village Maps". These are 10 maps (+ 1 for the map working as the folder) that are dedicated for use when expanding Clairia (or any other work you wish to do).

You're free to move them around as you like, but try to use these when you need a map, since it simplifies the process of merging content between forks.

If you start running out of empty maps, just announce this, repopulate the buffer with another 10 empty maps in the directory; and send a pull request.


Thanks!
Docstring

This ends Issue #748.
Torum main

Тестовое слияние
For ENG-3341, in IV2 SnapshotDaemon must use GlobalServiceElector
Use the public method when do asserts in EE
dreamwidth:release-1.12
Deployments raports
networking: fix comment typo
more windows compatibility
unignore test/

This is a merge request for 1.0.1. I seem to be unable to make make github see that...

When installing with npat=true the installation fails due to missing
files in test/. Fix is to unignore the test/ directory.

Bumped version in the hope of a minor release.
many fixes, mainly with html generation
Fix typo in name of Lua global table lysncd->lsyncd

Fixes issue #150
check json ctype on mr query

Verify that map reduce POST requests are sent with content-type of `application/json` (possible including a subtype parameter). So far I've successfully tested the Java and Ruby clients with this patch. I'm working to get my python environment back ready for testing that client...
Prevent quick hover
add basic idea of a $sys.uptime (in secs) scalar

Proposal to add a '$sys.uptime' variable, measuring in seconds the uptime of the host. Available on Linux only ( with the current code - may be doable for other OSes as well ). 


squashed commits:

commit f1f91a3fd924619c4c61685ae4923fc658343a13
Author: Matt Lesko <leskomw@mail.nih.gov>
Date:   Wed Apr 4 10:41:44 2012 -0400

    add basic idea of a $sys.uptime (in secs) scalar

    Create a system-level scalar variable, $sys.uptime, that is computed
    from the sysinfo() call - on Linux, this returns a structure roughly the
    equivalent of the 'uptime' command - other variables can be taken out as
    well, but the seconds since boot ( uptime ) is most useful.

    Possible use cases - set a class if the server in question has been up
    for only a few minutes:

    classes:
        "RecentUptime" expression => islessthan("600", "${sys.uptime}")

    NOTE: This was coded for Linux systems - the sysinfo command does not
    appear to be very portable. Previous code in this function calls
    function with a similar name, but available on Solaris ( and other
    *BSDs? ).

    Other UNIX systems will require a different setup, at present I do not
    have the infrastructure to test/code for other systems.

commit 25ddecac6cc5ba4527f666d42923c5b82b68bbb9
Author: Matt Lesko <leskomw@mail.nih.gov>
Date:   Wed Apr 4 10:40:54 2012 -0400

    added a check for the headers sys/sysinfo.h, which is what exists on linux
Develop

Corect ServerListPing and register
fied homepage controller error
Remove Servlet API 3 specific code

We should avoid the complication of supporting Servlet API 3 explicitly since we are not using anything special in it.

This branch removes it, and moves the waffle-http class into waffle-mock

See discussion at:
https://groups.google.com/forum/?fromgroups=#!topic/waffle-users/ocBGxKC55aI
A bunch of things that should probably be discussed independently

Should have put these in separate topic branches, but this implements

* taking values from the buildpack's bin/release
* updating buildpacks rather than failing when they already exist
* honoring BUILDPACK_URL environment variable
* honoring branches of buildpack URLs
* preserving of the cache

These should probably be discussed independently; happy to rebase some changes out if we decide they're not right.
Save the instance namespace during the resolving process as a 'current_app' request attribute

RFF for this simple PR which adds a 'current_app' attribute to the HttpRequest class, defaulting to None.

During the URL resolving process, this attribute is set to the instance namespace of the resolved URL pattern so that it can be used in the middlewares or views without a second resolve call.

This PR also modified the render shortcut in order to use the newly introduced attribute as default value for the current_app argument.
Added to the documentation the django.test.Client.defaults definition.
Fixes an error when using MultipleObjectTemplateResponseMixin.render_to_response() while subclassing a BaseListView

This solves a bug relative to the use of MultipleObjectTemplateResponseMixin.render_to_response() while subclassing BaseListView, raising a TypeError Exception ("__init__() got an unexpected keyword argument 'request'")

The signature of django.template.response.TemplateResponse does not match the way it's invoked.
See:
https://github.com/django/django/blob/master/django/template/response.py#L141
fixes #1301

Fixed the issue and  committed the code for review, Please check it
Fixes #1401 by changing the permission to ADD_TO instead of EDIT

JT, Hope I did that all right ;)
fixes #1061 - missing dojo.require
fixed minor bugs

Hi,

I am using the ruby-oai Provider, and ran into a couple of minor problems, which I fixed in this fork. The valid? method in OAI::Provider::Response had a nil array error when the verb has no valid arguments, but an argument has been mistakenly included in the request. For example -- when an identifier argument is included with the verb Identify. I added a line so it will raise an ArgumentException in that case.

The ResumptionToken class raises a ResumptionTokenException, which I changed to OAI::ResumptionTokenException. Even though this is not caught by the tests, it prevented my application from finding the ResumptionTokenException.

I also made a slight change in test/provider/models.rb, because the tests would not run otherwise.
Fixes #32 - Better practice in twig extend example
Show all service ids

Hello,

i have extended the Pimple class to use the singleton pattern. I want to write a simple symfony 1.4 task to display all service ids, but i can't access the values property in my extended class, because the property is private.

There are two possibilities: 
1. change the access of values to protected
2. add a method in Pimple class to return the array_keys of $values

What would you prefer?
Use task variable name when task name is undefined.

In fabric.main.extract_tasks(), the dict mapping names to new-style task
objects now uses the variable name of the object when the object's name
attribute is not defined.  (Technically, when not obj.name or obj.name
== 'undefined').

This change brings the behavior for mapping tasks to names in compliance
with the fabric documentation.
http://docs.fabfile.org/en/1.4.3/usage/tasks.html#new-style-tasks:

    Subclass Task (Task itself is intended to be abstract), define a run
    method, and instantiate your subclass at module level.  Instances’
    name attributes are used as the task name; if omitted the instance’s
    variable name will be used instead.

A test case was added to confirm that the task name equal the variable
name when the task object name attribute is undefined.  This test fails
with the old code and passes with the patched code.
Translation fixes

There ya go.  Would you please mind changing my name in the Japanese version to be spelled in the Latin alphabet, and with my nickname?  Thanks.
提交vote_item、vote_operate_log两个model

提交vote_item、vote_operate_log两个model
0.61 : Image_View

This patch prevents icons Left/Right to move on first/last items on Image_View.
lang DE update 16032012
Some logs for HUP messages

I added a couple of reports in the sync method of the app runner to make troubleshooting on the logfile easier when the daemon receives a HUP signal
6.5.x

Latest version of Jquery has been used so that new jquery theme can be applied. Also flexigrid and timer files updated which are in compatible with latest Jquery version used.
WF-1481: Eating the RollBackException
Version 1.0.2

Added animation, fixed nav controls, incremented version number from 1.0.1 and updated README.

NEED TO MINIFY
Fixed Red-Black adding algorithm

Fixed adding node algorithm for Red-Black trees - changed height updating - improved performance.
Allow unicode letters in identifiers

Hey Anton!

This patch is re issue #301.

I’m writing an law-specialized app and I’ve chosen to write them in Romanian because it would have been more difficult to translate the domain terms. :o) This is the reason why I need jshint to validate my code with Unicode letters in identifiers.

So here is what I did:

Picked the hex codes for the Unicode 'Letter, Uppercase' and 'Letter, Lowercase' categories from [fileformat.info](http://www.fileformat.info/info/unicode/category/index.htm). However, because I could not find a way to encode 5-digit ([ECMA allows only 4](http://es5.github.com/#x7.8.4)) Unicode escape sequence, I had to leave out 1016 out of 3192 Unicode letters.

Please take a look and let me know what you think.
Add some more granular unit tests regarding the 'unused' option

While thinking about issue #660, I added these tests to solidify my understanding of how the ``unused`` option currently works. I think the ``unused_second_arg`` test is somewhat redundant, but it is quite small, so it shouldn't be a problem in terms of maintenance or refactoring.
Added Russian description.
Adding python to README

Added information that python is needed for pip.

I'm experimenting now with kivy-ios using my MacOSX VM and I found out that python is missing for pip.
Had no python installed via brew or something else, so I decided to add it.

Think it could be useful for other new developers!
Update lessc.inc.php

Add support for the rem unit
Speed change fix

http://getmangos.com/bb/topic/430/solvedmmaps-and-the-spell-frost-armor/
Fix StatBadPath for Windows 7

The StatBadPath test expects both Windows and Linux to reject a
path name with 512 characters. However, it seems that such path
is actually acceptable to Windows 7. This change constructs a
different path name that is invalid on Windows.

Fixes #247
Use subprocess.call for Python 2.4 compatibility

`subprocess.check_call` is only available in Python 2.5 and later, so `bootstrap.py` doesn't work with Python 2.4. Thankfully, it's easy to use `subprocess.call` instead.

(Thanks to Andreas Mohr, who reported this issue to me.)
Use new event handler syntax in skeleton app

Uses the new event handler syntax in the skeleton app, instead of the previous deprecated syntax.
Exclude public/node_modules from monitoring

I'm currently trying to use npm modules in a somewhat sane way in my project. It seems like the method of choice at the moment is to stick them in public/node_modules:

http://stackoverflow.com/questions/10476170/how-can-i-deploy-node-modules-in-a-meteor-app-on-meteor-com

To me, this seems incredibly hacky. It SORT of works, but it will break down when developing in a mac if you have a lot of modules, because it ends up watching way too many files (http://stackoverflow.com/questions/11300969/error-watch-emfile-when-putting-node-modules-in-public)

In my opinion be much nicer if meteor simply ignored the node_modules directory - I've attached a commit suggesting how to do that.
Implement signed URL support, so s3cmd can be used to produce signed temporary access URLs

This patch adds a new "signurl" command that uses the existing "sign" command to produce expiring signed URLs with public access to normally-private objects.

See http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html
Fix line number bug for text and comment nodes

The DOM component has a bug when dealing with line numbers for text and comment nodes. This commit adds the property `fixLineNumbers` to the XMLDocument class. When setting this property to true, then the class fixes the line numbers when loading a document.

By the way, all XML related test cases and classes were refactored.
Added experimental GamePad support for Windows 8 metro style application...

...s using XInput via SharpDX.
spotify: Only return available tracks from lookups

The lookup methods for Spotify now returns all tracks. Many of these may be unavailable, so now they are added but skipped when you try to play them. This commits filters out unavailable tracks from the lookup methods.

I'm not sure this is exactly the right way to fix it. If a track isn't loaded, the track is reported as not available. It seems like all the tracks are loaded when an artist- or album-browse is loaded, so generally, this should be safe. However, if the wait times out, _lookup_track will return the track and the other lookup methods will not return any tracks, regardless of the availability.
fmscripts 20120522
Updated ec2-api-tools to the latest version (1.5.3.1)
Update Formula: luarocks 2.0.12
Add rdate formula

Tool for connecting to RFC 868 time servers.
getxbook 0.9

Upgrade getxbook to version 0.9.
Remove the patch for clang.  The issue is fixed in 0.9.
Tested with llvm and clang.
autojump 21.0.3
ZooKeeper 3.4.4
parmetis 4.0.2

added mpich2 to deal with a dependency on mpicc
rdf.sh 0.5

Add new formula for rdf.sh, a multi-tool shell script for doing Semantic Web jobs on the command line.
Update formula to install 0.19.2

Includes addition of 'Upgrade from 0.18.x' instructions in caveat.
More from "Tidy up"
Added MosquittoMessage Class

now using MosquittoMessage Class
Unit tests for the getPXEDeploy* methods in KIWIXML

Also fixing a couple of typos

continue preparation for XML object restructuring
Commands merge master

This is the merged branch for these stories:

US2597 - Refactor 'rhc-app-create'
US2599 - Refactor RHC remaining app commands
US2813 - Refactor RHC cartridge commands
US2817 -  Refactor RHC snapshot commands
US2872 -  Ensure 'rhc setup' uses the new API exclusively
Update gallery/templates/index.php

the commit: https://github.com/owncloud/apps/commit/741f2536b5a76e8854a43e522351609ddf0994f4#gallery/templates/index.php breaks the gallery app. see discussion: https://github.com/owncloud/apps/issues/197#issuecomment-10370292
fix human filesize column header

fixes the 'NaN undefined' column in the files header when selecting a 0 Byte item
Backport #605 fix false positives when sharing.

@MTGap @bartv2
Fixing another typo

I'll keep them coming :-)
Slightly refactored the code for getFrontmostApp()

Slightly refactored the code for getFrontmost App().

If the proposed API for getFrontmostApp() is acceptable, this would be my favored implementation over the initial version introduced yesterday.



Original commit message below:

Refactored the code common to getAppRefByLocalizedName() and
getFrontmostApp() into a private class method (class method because its
intended users are also class methods).

Also amended the exception message included when ValueError is raised
for getFrontmostApp().

Testing done:

>>> import atomac
>>> atomac.getFrontmostApp()
<atomac.AXClasses.NativeUIElement AXApplication u'Terminal'>
>>> time.sleep(1); atomac.getFrontmostApp()
<atomac.AXClasses.NativeUIElement AXApplication u'Safari'>
>>> time.sleep(1); atomac.getFrontmostApp().windows()
[<atomac.AXClasses.NativeUIElement AXWindow u'Low Memory'>,
<atomac.AXClasses.NativeUIElement AXWindow u'Terminal \u2014 Py...'>,
<atomac.AXClasses.NativeUIElement AXWindow u'Terminal \u2014 ba...'>]
>>> time.sleep(1); atomac.getFrontmostApp().windows()
[<atomac.AXClasses.NativeUIElement AXWindow u'Calculator'>]
>>> time.sleep(1); atomac.getFrontmostApp().windows()
[]
>>> time.sleep(1); atomac.getFrontmostApp()
<atomac.AXClasses.NativeUIElement AXApplication u'Terminal'>
>>> atomac.getAppRefByLocalizedName('Safari')
<atomac.AXClasses.NativeUIElement AXApplication u'Safari'>
>>> atomac.getAppRefByLocalizedName('P4V')
<atomac.AXClasses.NativeUIElement AXApplication u'P4V'>
ENH: Add raise on conflict keyword to update

This patch will allow me to sleep better at night. Thoughts?
Add interactive.rootwait

I like the concept of rootpy, and have lots of snippets which may or may not be of interest to you guys. I will send small features whenever I find a moment, and you are free to reject them, or to ask me to move them around or whatever.

This particular feature keeps root from quitting until ctrl-c is pressed or all canvases are closed. I find this very useful when developing batch scripts to make plots and I still want to try tweaking them interactively. It is stable for me on root 5.32, though historically it has caused crashes.
delete unnecessary inheritance

all MonadPlus is ApplicativePlus
Support reply with fin for no response body.
Flattr support

This pull request implements a basic flattr support as in issue #58 proposed:
* generic support to open the payment url in rss feeds with donate button
* detection of flattr urls and use of the flattr REST API (You need a flattr app key to use it: https://flattr.com/apps/new)
docs diarias

requeriments specification files added.
Shared library on Linux

At least on Ubuntu Linux 12.04, the shared library could not be built with both the -static and -shared arguments in $CFLAGS. Added a separate flag when building the executables to add the -static back in. Tested on Ubuntu Linux 12.04 64-bit.
Compatible with SQLite

SQLite でも動くようにDataStorage::DBI::SQLite を追加しました。
伴い、テストをmysqlでもSQLiteでも動くようにしました。
(YANCHA_TESTDB=MySQL prove -lvr t/ でmysqlでテストを実行)

2つ目のコミットでmysqlとSQLiteのルーチンを共通化してDBI.pmに集めましたが、
こちらは気に入らなければ捨てて下さい。
catching renaming error now - e.g. /run didn't work for goanysync without throwing an error

I tried to sync /run, but it silently failed, so now this special os.Rename() got an error handling, thus telling me "rename /run /run-backup_goanysync: device or resource busy" in this case....
Where's the best place to locate a plugin's man file?

I'm working on a wp-cli command for Co-Authors Plus, and would love to package a man file with the plugin. As far as I can tell, wp-cli only supports man files packaged with the project. Is there something I'm missing?
Updated master version to 3.2.2
Update RPM spec file

Update the RPM spec file with Justin Cook's changes to fix the build for 3.2.2. (https://zeromq.jira.com/browse/LIBZMQ-473)
Replaced device concept with proxy concept

Devices were always a clumsy invention, not really mapping to anything people already knew. There notion of devices as a class of apps never took off. In the Guide, the explanation of devices always felt contrived and I remember, as a new 0MQ user, being quite mystified by these things, until I understood it was just a funny name for a loop of code.

So, as part of upgrading the Guide for 3.2, I removed devices from the 0MQ landscape and replaced the zmq_device call with zmq_proxy. At least proxy maps to a major use-case and is analogous with HTTP proxies.

For fun I added a third socket to the zmq_proxy call, which receives all traffic (if not null).

The old names are still there, of course, since our process forbids breakage of existing APIs.
Fix for issue #307

dist_t distribute() was skipping over pipes when one failed because the non-working pipe got swapped with a working pipe but the write was never retried on that pipe. This fix retries the write with the same index so the newly swapped pipe is also written to. This should stop apparently dropped PUB/XPUB messages due to closed SUB sockets.
Admin-service now accepts posting of stage libraries

Accepts them as multipart posts to /library/{library-id}

fixes #69
Update application/hooks/index.html

Removed because of spam
Min fixes, update to 1.0.0
CommandsEX fixup
ASGARD-899 - Added list of Scheduled Actions

also added java docs and changes based on code review
Various bug fixes associated with new splineMatrix class definition
Allow mesh list by rendermaterial

ChunkMesh now extends ComposedMesh
ComposedMesh contain mesh list per renderMaterial
Remove RenderEffect
Require my PR in SpoutAPI.

Signed-off-by: L5D <cholley.thibaut@gmail.com>
Implemented block surface and world sky light from API

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>

See the API pull:
https://github.com/SpoutDev/SpoutAPI/pull/281
track favorites

I fixed a few bugs today, so I still have to wait a day to confirm that the data is tracked, but this can still be reviewed in the meantime.
Switched to new handsontable stylesheet
Added disable states to the tab context menu items

and either disable or enable the "other tabs" options
depending on the number of tabs open.

Fixes #71
Refactor language handler interface

Goals of this refactoring:
- supporting languages that have no parser at all and use `null` as the AST
- supporting languages that have a different parser, by avoiding any direct calls to properties of AST nodes (instead base_handler now has an asynchronous `findNode()`)
- eliminating obsolete functions from `base_handler.js`
- removing all the *RequiresParsing() methods since they did not and probably should not cover all language services; instead there's a single `isParsingSupported()` accessor
- merging changes from the `jvm` branch that extend the handler interface and will make the eventual integration of that branch easier

@zefhemel
Mvc integration fixes

Part 2 of my profiler rewrite, with better handling for RequestDetails popup, and better file structure.

RequestDetails-popup is now shared, replacing the contents when showing new request instead of opening multiple views on top of each other. 

Improved close behavior: Clicking esc with details open first closes request details, then a second click closes profiler. Clicking in profilerview or the same request-details link when request details are open also closes requestdetails-window.

Moved all files used in build into js-folder, added built js-file to gitignore to prevent having a changed file on every build. File still needs to be part of solution in order to mark as embedded resource. 

Added GZip-compression to files before returning to client to minimize file size, along with one day caching.
MoreLikeThis Id problem

I had a problem loading MoreLikeThis results, a broken test and fix is included.  The general issue was, depending on how I got the DocumentId, the case would not match what MoreLikeThis expected.  The fix I had, which might not be best, was to normalize the case inside MoreLikeThis.  There might be a better way to normalize, and/or you may want to have GetDocumentId do more normalization.
flow review should show a list of pending pull requests from which one can be selected which will check out the branch and open the pull request screen
only set _WIN32_WINNT when it hasn't been set by the environment
Fixed unsanitized input issue

$_GET input was left unsanitized, which can lead to script injection.  For example:

http://bradfrostweb.com/demo/ish/?url=javascript:document.write('Hello%20%3Cscript%3Edocument.write(\'Hey%20there\');%3C/script%3E');

This can be fixed either by sanitizing input (which you should do anyways) or by adding a sandbox attribute to the iFrame itself.  

Sandbox isn't supported everywhere, however, and will prevent all scripts from being executed in the iFrame.  It may also not protect against all attacks.
使用CacheFor时发现的小bug-补充

long a=int b * int c 会先按照int去计算，然后再转换成long。
所以做出以下修改。
linkTo support to overloaded methods

The problemn is related here: http://www.guj.com.br/java/281823-vraptor-linkto-com-dois-metodos-de-mesmo-nome-no-controller-bug

@lucascs, the code works but when we have a method as below it breaks:
<b>Controller</b>
<pre>
@Post("/method/{entity.id}")
public void method(SomeModel someModel)
</pre>
<b>JSP</b>
<pre>
<c:set var="entityId" value="1" />
${linkTo[SubGenericController].method[entityId]}
</pre>

This breaks because linkToHandler tries to find a method named "method" with an Integer parameter. The parameter's type verification is necessary to differentiate the overloaded methods.

How can we deal with it?
When parameter's type dont match can we return the method with same parameter's number but with no match types or the first matching method?
#49 Fixed WsServer::getSubProtocolString method return value

See issue #49
ignore last few silencers for code sniffer