This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "path" | |
| ) | |
| type node struct { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // This script parses data formatted like the following: | |
| // | |
| // (//tmp/social-enablement,1,4,63) | |
| // (//tmp/social-enablement/rep:policy,3,2,22) | |
| // (//tmp/social-enablement/rep:policy/allow,0,3,40) | |
| // (//tmp/social-enablement/rep:policy/allow0,0,3,48) | |
| // (//tmp/social-enablement/rep:policy/deny,0,3,390) | |
| // (//tmp/fd,2,3,41) | |
| // (//tmp/fd/af,1,4,63) | |
| // | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // MIT License | |
| // | |
| // Copyright (c) 2017 Francesco Mari | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Search every object of a specific class (SegmentId) and filter them according | |
| // to some specific criteria on their referrers. The objects are allowed to be | |
| // referenced by other objects whose class belongs to a specific whitelist | |
| // (ALLOWED_CLASS_NAMES). Objects that are referenced *only* by those objects | |
| // are not shown in the results. | |
| var ALLOWED_CLASS_NAMES = [ | |
| "org.apache.jackrabbit.oak.plugins.segment.Segment", | |
| "org.apache.jackrabbit.oak.plugins.segment.SegmentId[]", | |
| "java.lang.ref.WeakReference" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ### Keybase proof | |
| I hereby claim: | |
| * I am francescomari on github. | |
| * I am frm (https://keybase.io/frm) on keybase. | |
| * I have a public key whose fingerprint is D258 A304 CC4E 940E 5828 A693 790D B944 CF42 71E8 | |
| To claim this, I am signing this object: |