Skip to content

Instantly share code, notes, and snippets.

@sangheestyle
Created May 29, 2015 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangheestyle/3d6c3e7cd65e416ac398 to your computer and use it in GitHub Desktop.
Save sangheestyle/3d6c3e7cd65e416ac398 to your computer and use it in GitHub Desktop.
Search regex with curl command
$ curl -H "Content-Type: application/json" -X POST -d '{"regex": ".setTag\\([^,|^\\(]*,[^,]*\\)", "ext":"java", "local_repo_root": "demo_set", "max":100}' http://sangheestyle.com:8080/api/search/commits -o result.json
Found in UweTrottmann/SeriesGuide
{
"full_name": "UweTrottmann/SeriesGuide",
"regex": "\".setTag\\([^,|^\\(]*,[^,]*\\)\"",
"results": [
{
"id": "1a0c81b97064d6222f762159474a06207b5c6a19",
"author_name": "Uwe Trottmann",
"author_email": "uwe.trottmann@gmail.com",
"date": "Thu Oct 31 11:14:46 2013 +0100",
"subject": "Use android-menudrawer 3.0.4, also through aar.",
"body": "- Remove android-menudrawer source code.\n",
"chunk": "- * @param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\n"
},
{
"id": "c7fe29614dd12cff74b9d21f856fd0ac7ac562d9",
"author_name": "Uwe Trottmann",
"author_email": "uwe.trottmann@gmail.com",
"date": "Sun Jul 14 18:46:52 2013 +0200",
"subject": "Add android-menudrawer 3.0.2.",
"body": "",
"chunk": "+ * @param position Optional position, usually used with ListView. v.setTag(R.id.mdActiveViewPosition, position)\n"
},
{
"id": "40f1fc22d574bb5f57e826c31973a89f31702aa0",
"author_name": "Uwe Trottmann",
"author_email": "uwe.trottmann@gmail.com",
"date": "Sun Dec 23 12:01:00 2012 +0100",
"subject": "Remove ABS, ViewPagerIndicator, SlidingMenu and AndroidUtils from repo.",
"body": "They are now included via their own repositories.\n",
"chunk": "-\t\t\tmSelectedView.setTag(R.id.selected_view, null);\n--\n-\t\t\tmSelectedView.setTag(R.id.selected_view, TAG+\"SelectedView\");\n"
},
{
"id": "95232f209b3818a45dd3df57f3f7373734951d1c",
"author_name": "Uwe Trottmann",
"author_email": "uwe.trottmann@gmail.com",
"date": "Wed Dec 5 09:19:26 2012 +0100",
"subject": "Add latest SlidingMenu library, use latest v13 support lib.",
"body": "",
"chunk": "+\t\t\tmSelectedView.setTag(R.id.selected_view, null);\n--\n+\t\t\tmSelectedView.setTag(R.id.selected_view, TAG+\"SelectedView\");\n"
}
]
}
Found in WhisperSystems/TextSecure
{
"full_name": "WhisperSystems/TextSecure",
"regex": "\".setTag\\([^,|^\\(]*,[^,]*\\)\"",
"results": [
{
"id": "636b11abea7a520e1c69c59f69055c5ab112e70f",
"author_name": "Moxie Marlinspike",
"author_email": "moxie@thoughtcrime.org",
"date": "Tue May 19 14:00:54 2015 -0700",
"subject": "Refactor ContactSelectionListAdapter and associated views.",
"body": "Fixes #3181\nCloses #3197\n\n// FREEBIE\n",
"chunk": "- v.setTag(R.id.holder_tag, holder);\n- v.setTag(R.id.contact_info_tag, new DataHolder());\n"
},
{
"id": "ca6d8a8a0d9841b93575978f4db06ecf2e410628",
"author_name": "Jake McGinty",
"author_email": "me@jake.su",
"date": "Mon Mar 17 23:25:09 2014 -0700",
"subject": "refactor and improve contact selection",
"body": "* unify single and multi contact selection activities\n* follow android listview design recommendations more closely\n* add contact photos to selection\n* change indicator for push to be more obvious\n* cache circle-cropped bitmaps\n* dedupe numbers when contact has multiple of same phone number\n\n// FREEBIE\n",
"chunk": "+ v.setTag(R.id.holder_tag, holder);\n+ v.setTag(R.id.contact_info_tag, new DataHolder());\n"
}
]
}
Found in chislon/LegacyLauncher
{
"full_name": "chislon/LegacyLauncher",
"regex": "\".setTag\\([^,|^\\(]*,[^,]*\\)\"",
"results": [
{
"id": "9e1a9e811402ace86835eed6c1fb40b870760a8e",
"author_name": "Chislon Chow",
"author_email": "chislon@gmail.com",
"date": "Sun Feb 3 17:21:15 2013 -0500",
"subject": "Candidate for 0.39.8, revert code to fix crash on showing non-spread style previews (memory leaks still present here), implement SparseArray in place of HashMap, change some dip sizes to sp which should improve result in better font scaling in QuickAction popup, touchup QuickActionWindow class for Lint correctness",
"body": "",
"chunk": "+\t\t\t\t\tv.setTag(R.id.workspace, null);\n \t\t\t\t\tv.setTag(R.id.icon, null);\n--\n+\t\tv.setTag(R.id.TAG_PREVIEW, null);\n--\n+\t\t\t\t\tanchor.setTag(R.id.TAG_PREVIEW, p);\n+\t\t\t\t\tanchor.setTag(R.id.workspace, preview);\n \t\t\t\t\tanchor.setTag(R.id.icon, bitmaps);\n"
},
{
"id": "2db183ef58f4f29d6d92f34de8154893bda5278c",
"author_name": "Chislon Chow",
"author_email": "chislon@gmail.com",
"date": "Sun Jan 20 03:41:10 2013 -0500",
"subject": "Fix in app catalog behavior, add ability to rename catalogs, fix for app drawer on devices with hardware keyboards where the dock layout breaks, add ability to launch activity from desktop action, add some misc items to AndroidManifest to allow allow for more visibility on Play Store, modify DeleteZone changing the uninstall intent to manage app, minor optimizations in activity list activity",
"body": "",
"chunk": "-\t\t\t\t\tv.setTag(R.id.workspace, null);\n--\n \t\t\t\t\tv.setTag(R.id.icon, null);\n--\n-\t\tv.setTag(R.id.TAG_PREVIEW, null);\n--\n-\t\t\t\t\tanchor.setTag(R.id.TAG_PREVIEW, p);\n-\t\t\t\t\tanchor.setTag(R.id.workspace, preview);\n--\n \t\t\t\t\tanchor.setTag(R.id.icon, bitmaps);\n--\n+ * Using View.setTag(int, Object) causes a memory leak if the tag refers, by a strong reference chain,\n--\n+ * So this class implements setTag(int, Object) in a non-leaky fashion and is designed to be stored\n--\n+\tpublic static void setTag(View v, Object value) {\n--\n+\t\t\tViewTagger.setTag(convertView, holder);\n"
},
{
"id": "6ad388f9c08bd672bdc080ee7955ef66e0a7fbc4",
"author_name": "chislon",
"author_email": "chislon@gmail.com",
"date": "Wed Mar 7 23:12:53 2012 -0500",
"subject": "First commit",
"body": "",
"chunk": "+\t\t\t\t\tv.setTag(R.id.workspace, null);\n+\t\t\t\t\tv.setTag(R.id.icon, null);\n--\n+\t\tv.setTag(R.id.TAG_PREVIEW, null);\n--\n+\t\t\t\t\tanchor.setTag(R.id.TAG_PREVIEW, p);\n+\t\t\t\t\tanchor.setTag(R.id.workspace, preview);\n+\t\t\t\t\tanchor.setTag(R.id.icon, bitmaps);\n--\n+\t\tview.setTag(R.id.TAG_PREVIEW, qa);\n"
}
]
}
Found in chrisHoekstra/Trello-Android
{
"full_name": "chrisHoekstra/Trello-Android",
"regex": "\".setTag\\([^,|^\\(]*,[^,]*\\)\"",
"results": [
{
"id": "d8377207776d6cdb9af23f40a7ddada6cb298f50",
"author_name": "Chris Hoekstra",
"author_email": "chris.hoekstra@t8webware.com",
"date": "Mon Dec 12 20:11:50 2011 -0600",
"subject": "Added color labels to board list's cards",
"body": "",
"chunk": "- convertView.setTag(R.id.name, nameText);\n"
},
{
"id": "3f866a8e39aad67844c2465310f97901d82c5ab0",
"author_name": "Chris Hoekstra",
"author_email": "chris.hoekstra@t8webware.com",
"date": "Thu Dec 8 19:45:53 2011 -0600",
"subject": "Renamed namespace",
"body": "",
"chunk": "- convertView.setTag(R.id.name, nameText);\n--\n- convertView.setTag(R.id.name, nameText);\n--\n- convertView.setTag(R.id.name, nameText);\n--\n+ convertView.setTag(R.id.name, nameText);\n--\n+ convertView.setTag(R.id.name, nameText);\n--\n+ convertView.setTag(R.id.name, nameText);\n"
},
{
"id": "b98ab06924392f21a9524eb02cb8f29d4110cd5e",
"author_name": "Chris Hoekstra",
"author_email": "chris.hoekstra@t8webware.com",
"date": "Tue Nov 15 10:53:33 2011 -0600",
"subject": "Added ability to view boards, board lists, card lists and card details",
"body": "",
"chunk": "+ convertView.setTag(R.id.name, nameText);\n--\n+ convertView.setTag(R.id.name, nameText);\n--\n+ convertView.setTag(R.id.name, nameText);\n"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment