text:
@interface ViewController ()

@end

@implementation ViewController

@synthesize bmigrar;
@synthesize peoplePickerPopoverController;
@synthesize lsufixo;
@synthesize lasufixo;
@synthesize lafundoCor;
@synthesize snewName;

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    bnovo = YES;
    [snewName setOn:YES];
    [lsufixo setText:@"DigitoRJ"];
    [snewName setOn:bnovo];
}

- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
    [theTextField resignFirstResponder];
    return YES;
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    [lsufixo resignFirstResponder];
}

-(IBAction)swapName:(id) sender {
    if ([snewName isOn]) {
        lsufixo.hidden = NO;
        lasufixo.hidden = NO;
        lafundoCor.hidden = NO;

    }else {
        lsufixo.hidden = YES;
        lasufixo.hidden = YES;
        lafundoCor.hidden = YES;
    }
}

-(void)startFixed {
    ABAddressBookRef addressBook = ABAddressBookCreate();
    NSArray *array = (__bridge NSArray *)ABAddressBookCopyArrayOfAllPeople(addressBook);
    CFErrorRef anError = NULL;
    NSString *npNumber;
    for (int i = 0; i < [array count]; i++) {
        alter = NO;
        ABRecordRef person = (__bridge ABRecordRef) array[i];
        NSString *Label;
        ABMultiValueRef multiPhones = ABRecordCopyValue((__bridge ABRecordRef)(array[i]),kABPersonPhoneProperty);
        ABMutableMultiValueRef multi = ABMultiValueCreateMutableCopy(multiPhones);
        for(CFIndex j=0;j<ABMultiValueGetCount(multi);++j) {
            CFStringRef phoneNumberRef = ABMultiValueCopyValueAtIndex(multiPhones, j);
            Label = (__bridge NSString *)(ABMultiValueCopyLabelAtIndex(multiPhones, j));
            NSString *pNumber = (__bridge NSString *) phoneNumberRef;
            pNumber = [[[[[pNumber stringByReplacingOccurrencesOfString:@"-" withString:@""] stringByReplacingOccurrencesOfString:@" " withString:@""]stringByReplacingOccurrencesOfString:@"+" withString:@""] stringByReplacingOccurrencesOfString:@"(" withString:@""] stringByReplacingOccurrencesOfString:@")" withString:@""];
            npNumber = [self startFormat:pNumber];
            if (![npNumber isEqualToString:pNumber]) {
                alter = YES;
                if (bnovo){
                    Label = [NSString stringWithFormat:@"%@ - %@",[[Label stringByReplacingOccurrencesOfString:@"_$!<" withString:@""]stringByReplacingOccurrencesOfString:@">!$_" withString:@""], [lsufixo text]];
                }
                ABMultiValueAddValueAndLabel(multi, (__bridge CFStringRef)npNumber, (__bridge CFStringRef)(Label), NULL);
            }
        }
        if (alter) {
            if (!bnovo) {
                for(CFIndex j=0;j<ABMultiValueGetCount(multi);++j) {
                    CFStringRef phoneNumberRef = ABMultiValueCopyValueAtIndex(multi, j);
                    NSString *pNumber = (__bridge NSString *) phoneNumberRef;
                    pNumber = [[[[[pNumber stringByReplacingOccurrencesOfString:@"-" withString:@""] stringByReplacingOccurrencesOfString:@" " withString:@""]stringByReplacingOccurrencesOfString:@"+" withString:@""] stringByReplacingOccurrencesOfString:@"(" withString:@""] stringByReplacingOccurrencesOfString:@")" withString:@""];
                    npNumber = [self startFormat:pNumber];
                    if (![npNumber isEqualToString:pNumber]) {
                        BOOL didRemove = ABMultiValueRemoveValueAndLabelAtIndex(multi,j);
                        BOOL didSet = ABRecordSetValue(person, kABPersonPhoneProperty, multi, nil);
                        ABRecordSetValue((__bridge ABRecordRef)(array[i]), kABPersonPhoneProperty, multi, &anError);
                        j--;

                    }
                }
            }
            ABRecordSetValue((__bridge ABRecordRef)(array[i]), kABPersonPhoneProperty, multi, &anError);
            ABAddressBookRef aBook;
            CFErrorRef error = NULL;
            aBook = ABAddressBookCreate();
            BOOL isAdded = ABAddressBookAddRecord (addressBook, (__bridge ABRecordRef)(array[i]), &error);
            BOOL isSaved = ABAddressBookSave (addressBook,NULL);
        }
    }
    CFRelease(addressBook);
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(IBAction)saveContact:(id) sender {
     alertsearch = [[UIAlertView alloc] initWithTitle:@"Migrando Contatos ..." message:nil delegate:nil cancelButtonTitle:nil otherButtonTitles: nil];

    [alertsearch setTag:555];
    [alertsearch show];

    [bmigrar setEnabled:FALSE];
    bnovo = [snewName isOn];
    NSString *msg = nil;

    ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, NULL);

    if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusNotDetermined) {
        ABAddressBookRequestAccessWithCompletion(addressBookRef, ^(bool granted, CFErrorRef error) {

            [self startFixed];
        });
        msg = @"Seus contatos foram alterados com sucesso. Obrigado por usar DigitoRJ";
    }
    else if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusAuthorized) {
        // The user has previously given access, add the contact
        [self startFixed];
        msg = @"Seus contatos foram alterados com sucesso. Obrigado por usar DigitoRJ";
    }
    else {

        msg = @"O DigitoRJ não tem permissão para rodar nesse dispositivo. Altere as permissões de antes rodar o DigitoRJ. Obrigado por usar DigitoRJ";
    }
    [alertsearch dismissWithClickedButtonIndex:0 animated:YES];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"DigitoRJ" message:msg delegate:nil cancelButtonTitle:@"OK"otherButtonTitles: nil];
    [alert show];
}

- (void)peoplePickerNavigationControllerDidCancel:
(ABPeoplePickerNavigationController *)peoplePicker {
    [self dismissModalViewControllerAnimated:YES];
}

- (BOOL)peoplePickerNavigationController:
(ABPeoplePickerNavigationController *)peoplePicker
      shouldContinueAfterSelectingPerson:(ABRecordRef)person {

    [self displayPerson:person];
    [self dismissModalViewControllerAnimated:YES];

    return NO;
}

- (BOOL)peoplePickerNavigationController:
(ABPeoplePickerNavigationController *)peoplePicker
      shouldContinueAfterSelectingPerson:(ABRecordRef)person
                                property:(ABPropertyID)property
                              identifier:(ABMultiValueIdentifier)identifier
{
    return NO;
}

- (void)displayPerson:(ABRecordRef)person
{
    //NSString* name = (__bridge_transfer NSString*)ABRecordCopyValue(person, kABPersonFirstNameProperty);
    NSString* phone = nil;
    ABMultiValueRef phoneNumbers = ABRecordCopyValue(person,
                                                     kABPersonPhoneProperty);
    if (ABMultiValueGetCount(phoneNumbers) > 0) {
        phone = (__bridge_transfer NSString*)
        ABMultiValueCopyValueAtIndex(phoneNumbers, 0);
    } else {
        phone = @"[None]";
    }
    CFRelease(phoneNumbers);
}

-(NSString *)startFormat:(NSString *)Number {
    if (Number != Nil){
        if ([Number  length] > 7) {
            int tam = [Number length];
            NSRange range1, range2, range4, range7, rangeE;
            if (tam == 8) {
                range1 = [Number rangeOfString:@"3"];
                range2 = [Number rangeOfString:@"2"];
                range4 = [Number rangeOfString:@"4"];
                range7 = [Number rangeOfString:@"7"];
                rangeE = [Number rangeOfString:@"*"];
                if (range1.location != 0 && range2.location != 0 && range4.location != 0 && range7.location != 0 && rangeE.length == 0 ) {
                    Number = [NSString stringWithFormat:@"9%@",Number];

                    return Number;
                }
            }else if (tam == 10) {
                range1 = [Number rangeOfString:@"21"];
                if (range1.location == 0) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];
                    if (range1.location != 2 &&  ![[Number substringWithRange:NSMakeRange(2, 1)] isEqual: @"2"] && range4.location != 2 && range7.location != 2 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"219%@",[Number substringWithRange:NSMakeRange(2, 8)]];

                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"22"];
                if (range1.location == 0) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 2 &&  ![[Number substringWithRange:NSMakeRange(2, 1)] isEqual: @"2"] && range4.location != 2 && range7.location != 2 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"229%@",[Number substringWithRange:NSMakeRange(2, 8)]];
                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"24"];
                if (range1.location == 0) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 2 &&  ![[Number substringWithRange:NSMakeRange(2, 1)] isEqual: @"2"] && range4.location != 2 && range7.location != 2 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"249%@",[Number substringWithRange:NSMakeRange(2, 8)]];
                        return Number;
                    }
                }

            }else if (tam == 12) {
                range1 = [Number rangeOfString:@"5521"];
                if (range1.location == 0) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 4 && ![[Number substringWithRange:NSMakeRange(4, 1)] isEqual: @"2"] && range4.location != 4 && range7.location != 4 && rangeE.length == 0 ) {

                        Number = [NSString stringWithFormat:@"+55219%@",[Number substringWithRange:NSMakeRange(4, 8)]];
                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"5522"];
                if (range1.location == 0) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 4 && ![[Number substringWithRange:NSMakeRange(4, 1)] isEqual: @"2"] && range4.location != 4 && range7.location != 4 && rangeE.length == 0 ) {

                        Number = [NSString stringWithFormat:@"+55229%@",[Number substringWithRange:NSMakeRange(4, 8)]];

                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"5524"];
                if (range1.location == 0) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 4 && ![[Number substringWithRange:NSMakeRange(4, 1)] isEqual: @"2"] && range4.location != 4 && range7.location != 4 && rangeE.length == 0 ) {

                        Number = [NSString stringWithFormat:@"+55249%@",[Number substringWithRange:NSMakeRange(4, 8)]];

                        return Number;
                    }
                }

            }else if (tam == 13) {
                range1 = [Number rangeOfString:@"0"];
                range2 = [Number rangeOfString:@"21"];
                if (range1.location == 0 && range2.location == 3) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 5 && ![[Number substringWithRange:NSMakeRange(5, 1)] isEqual: @"2"] && range4.location != 5 && range7.location != 5 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"0%@219%@",[Number substringWithRange:NSMakeRange(1, 2)], [Number  substringWithRange:NSMakeRange(5, 8)]];

                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"0"];
                range2 = [Number rangeOfString:@"22"];
                if (range1.location == 0 && range2.location == 3) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 5 && ![[Number substringWithRange:NSMakeRange(5, 1)] isEqual: @"2"] && range4.location != 5 && range7.location != 5 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"0%@229%@",[Number substringWithRange:NSMakeRange(1, 2)], [Number  substringWithRange:NSMakeRange(5, 8)]];

                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"0"];
                range2 = [Number rangeOfString:@"24"];
                if (range1.location == 0 && range2.location == 3) {
                    range1 = [Number rangeOfString:@"3"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 5 && ![[Number substringWithRange:NSMakeRange(5, 1)] isEqual: @"2"] && range4.location != 5 && range7.location != 5 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"0%@249%@",[Number substringWithRange:NSMakeRange(1, 2)], [Number  substringWithRange:NSMakeRange(5, 8)]];

                        return Number;
                    }
                }

            }else if (tam == 15) {
                range1 = [Number rangeOfString:@"550"];
                range2 = [Number rangeOfString:@"21"];
                if (range1.location == 0 && range2.location == 5) {
                    range1 = [Number rangeOfString:@"3"];
                    range2 = [Number rangeOfString:@"2"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 7 && ![[Number substringWithRange:NSMakeRange(7, 1)] isEqual: @"2"] && range4.location != 7 && range7.location != 7 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"+550%@219%@",[Number  substringWithRange:NSMakeRange(3, 2)], [Number  substringWithRange:NSMakeRange(7, 8)]];

                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"550"];
                range2 = [Number rangeOfString:@"22"];
                if (range1.location == 0 && range2.location == 5) {
                    range1 = [Number rangeOfString:@"3"];
                    range2 = [Number rangeOfString:@"2"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 7 && ![[Number substringWithRange:NSMakeRange(7, 1)] isEqual: @"2"] && range4.location != 7 && range7.location != 7 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"+550%@229%@",[Number  substringWithRange:NSMakeRange(3, 2)], [Number  substringWithRange:NSMakeRange(7, 8)]];

                        return Number;
                    }
                }

                range1 = [Number rangeOfString:@"550"];
                range2 = [Number rangeOfString:@"24"];
                if (range1.location == 0 && range2.location == 5) {
                    range1 = [Number rangeOfString:@"3"];
                    range2 = [Number rangeOfString:@"2"];
                    range4 = [Number rangeOfString:@"4"];
                    range7 = [Number rangeOfString:@"7"];
                    rangeE = [Number rangeOfString:@"*"];

                    if (range1.location != 7 && ![[Number substringWithRange:NSMakeRange(7, 1)] isEqual: @"2"] && range4.location != 7 && range7.location != 7 && rangeE.length == 0 ) {
                        Number = [NSString stringWithFormat:@"+550%@249%@",[Number  substringWithRange:NSMakeRange(3, 2)], [Number  substringWithRange:NSMakeRange(7, 8)]];

                        return Number;
                    }
                }
            }else return Number;
        }
    }
    return Number;
}

- (IBAction)OpenLinkS4M:(id)sender{
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.solution4mac.com.br"]];
}

-(IBAction)Info:(id) sender {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"DigitoRJ" message:@"Será mantido uma cópia de seus contatos, preservando o histórico de outros APPs que utilizam a listagem de contatos." delegate:nil cancelButtonTitle:@"OK"otherButtonTitles: nil];
    [alert show];

}

@end


text:
EECircularMusicPlayerControl
=============
EECircularMusicPlayerControl is a UI control to play a music and indicate its progress. It's easy to use in your project, and supports customization of the colors applied to the component parts.

![Screenshot](https://raw.github.com/el-eleven/EECircularMusicPlayerControl/master/Images/Screenshot.png)

Supported Environment
-----------
iOS 5 or later.

Installation
-----------
EECircularMusicPlayerControl can be installed by [CocoaPods](http://cocoapods.org/) with your Podfile containing the following line.

    pod 'EECircularMusicPlayerControl'

Or, just copy the files in "EECircularMusicPlayerControl" directory to your project. In this case, you have to add the `-fobjc-arc` compiler flag to the EEToolbarCenterButton source (.m) files if your project doesn't use ARC.

Usage
-----------
First, create a class that conforms to EECircularMusicPlayerControlDelegate protocol, which has *currentTime* method. Usually it can be a UIViewController where an EECircularMusicPlayerControl is placed.

Then, set *delegate* property of the EECircularMusicPlayerControl.

    self.yourCircularMusicPlayerControl.delegate = self; // Or any delegate.

At last, set *duration* property of the control.

    self.yourCircularMusicPlayerControl.duration = self.yourAudioPlayer.duration;

That's all you have to do! The example app in "EECircularMusicPlayerExample" directory shows a practical example to use the control with AVAudioPlayer. There is another way to use EECircularMusicPlayerControl without the delegate. Refer to example #2 in the example app to see how to use it without the delegate.

Demo Project
-----------
Open EECircularMusicPlayer.xcodeproj and run.

Customization
-----------
The following properties can be customized to make your own appearance:

* progressTrackRatio
* trackTintColor
* highlightedTrackTintColor
* disabledTrackTintColor
* progressTintColor
* highlightedProgressTintColor
* disabledProgressTintColor
* buttonTopTintColor
* highlightedButtonTopTintColor
* disabledButtonTopTintColor
* buttonBottomTintColor
* highlightedButtonBottomTintColor
* disabledButtonBottomTintColor
* iconColor
* highlightedIconColor
* disabledIconColor
* borderColor
* highlightedBorderColor
* disabledBorderColor
* borderWidth

Roadmap
-----------
The following features shall be implemented in the next update. If you implement one of the features, please feel free to send a pull request.

* Add *paused* state. Current version has only *playing* and *stopped* states.

Legal
-----------
### DACircularProgress
EECircularMusicPlayerControl contains a modified version of [DACircularProgress](https://github.com/danielamitay/DACircularProgress) created by Daniel Amitay and distributed under MIT license. Refer to "LICENSE.md" and "README.md" files in "DACircularProgress" directory for more information.

* Website: [http://www.amitay.us](http://www.amitay.us)

### XTC of Gold (Sample Audio)
The example project contains the music "XTC of Gold" by Beatnabob, also known as Jimdubtrix, available under a Creative Commons Attribution-NoDerivs license.

* Music filename: Jimdubtrix_XTC-of-Gold-160.mp3
* Website: [http://www.dubpram.co.uk](http://www.dubpram.co.uk)
* Download: [http://www.sampleswap.org/artist/jimdubtrix](http://www.sampleswap.org/artist/jimdubtrix)
* License: [Creative Commons Attribution-NoDerivs license](http://creativecommons.org/licenses/by-nd/3.0/)

License
-----------
EECircularMusicPlayerControl is available under MIT license. Refer to ["LICENSE.txt"](https://raw.github.com/el-eleven/EECircularMusicPlayerControl/master/LICENSE.txt) file for details.

Credits
-----------
If you are going to use EECircularMusicPlayerControl in your project, proper attribution would be nice.

redpajama_set_name: RedPajamaGithub


text:
import {Component} from '@angular/core';

const title = 'Hello slider-page';

@Component({
  selector: 'slider-page',
  template: require('./slider-page.html'),
  styles: [require('./slider-page.css')]
})
export class SliderPage {
  singleIndex = 10;
  outData1 = {min: 0, max: 100};
  lowIndex = 10;
  highIndex = 80;

  onSingleChanged = index => {
    this.singleIndex = index;
  }
  onLowChanged = index => {
    this.lowIndex = index;
  }
  onHighChanged = index => {
    this.highIndex = index;
  }
}


text:
package gnu.xml.dom.html2;

import org.w3c.dom.Document;
import org.w3c.dom.html2.HTMLFormElement;
import org.w3c.dom.html2.HTMLObjectElement;

/**
 * An HTML 'OBJECT' element node.
 *
 * @author Chris Burdess
 */
public class DomHTMLObjectElement
  extends DomHTMLElement
  implements HTMLObjectElement
{

  protected DomHTMLObjectElement(DomHTMLDocument owner, String namespaceURI,
                                 String name)
  {
    super(owner, namespaceURI, name);
  }

  public HTMLFormElement getForm()
  {
    return (HTMLFormElement) getParentElement("form");
  }

  public String getCode()
  {
    return getHTMLAttribute("code");
  }

  public void setCode(String code)
  {
    setHTMLAttribute("code", code);
  }

  public String getJavaCode()
  {
    return getHTMLAttribute("java_code");
  }

  public void setJavaCode(String code)
  {
    setHTMLAttribute("java_code", code);
  }

  public String getObject()
  {
    return getHTMLAttribute("object");
  }

  public void setObject(String obj)
  {
    setHTMLAttribute("object", obj);
  }

  public String getJavaObject()
  {
    return getHTMLAttribute("java_object");
  }

  public void setJavaObject(String obj)
  {
    setHTMLAttribute("java_object", obj);
  }

  public String getAlign()
  {
    return getHTMLAttribute("align");
  }

  public void setAlign(String align)
  {
    setHTMLAttribute("align", align);
  }

  public String getArchive()
  {
    return getHTMLAttribute("archive");
  }

  public void setArchive(String archive)
  {
    setHTMLAttribute("archive", archive);
  }

  public String getJavaArchive()
  {
    return getHTMLAttribute("java_archive");
  }

  public void setJavaArchive(String archive)
  {
    setHTMLAttribute("java_archive", archive);
  }

  public String getBorder()
  {
    return getHTMLAttribute("border");
  }

  public void setBorder(String border)
  {
    setHTMLAttribute("border", border);
  }

  public String getCodeBase()
  {
    return getHTMLAttribute("codebase");
  }

  public void setCodeBase(String codeBase)
  {
    setHTMLAttribute("codebase", codeBase);
  }

  public String getJavaCodeBase()
  {
    return getHTMLAttribute("java_codebase");
  }

  public void setJavaCodeBase(String codeBase)
  {
    setHTMLAttribute("java_codebase", codeBase);
  }

  public String getCodeType()
  {
    return getHTMLAttribute("codetype");
  }

  public void setCodeType(String codeType)
  {
    setHTMLAttribute("codetype", codeType);
  }

  public String getData()
  {
    return getHTMLAttribute("data");
  }

  public void setData(String data)
  {
    setHTMLAttribute("data", data);
  }

  public boolean getDeclare()
  {
    return getBooleanHTMLAttribute("declare");
  }

  public void setDeclare(boolean declare)
  {
    setBooleanHTMLAttribute("declare", declare);
  }

  public String getHeight()
  {
    return getHTMLAttribute("height");
  }

  public void setHeight(String height)
  {
    setHTMLAttribute("height", height);
  }

  public int getHspace()
  {
    return getIntHTMLAttribute("hspace");
  }

  public void setHspace(int hspace)
  {
    setIntHTMLAttribute("hspace", hspace);
  }

  public String getName()
  {
    return getHTMLAttribute("name");
  }

  public void setName(String name)
  {
    setHTMLAttribute("name", name);
  }

  public String getStandby()
  {
    return getHTMLAttribute("standby");
  }

  public void setStandby(String standby)
  {
    setHTMLAttribute("standby", standby);
  }

  public int getTabIndex()
  {
    return getIntHTMLAttribute("tabindex");
  }

  public void setTabIndex(int tabIndex)
  {
    setIntHTMLAttribute("tabindex", tabIndex);
  }

  public String getType()
  {
    return getHTMLAttribute("type");
  }

  public void setType(String type)
  {
    setHTMLAttribute("type", type);
  }

  public String getJavaType()
  {
    return getHTMLAttribute("java_type");
  }

  public void setJavaType(String type)
  {
    setHTMLAttribute("java_type", type);
  }

  public String getUseMap()
  {
    return getHTMLAttribute("usemap");
  }

  public void setUseMap(String useMap)
  {
    setHTMLAttribute("usemap", useMap);
  }

  public int getVspace()
  {
    return getIntHTMLAttribute("vspace");
  }

  public void setVspace(int vspace)
  {
    setIntHTMLAttribute("vspace", vspace);
  }

  public String getWidth()
  {
    return getHTMLAttribute("width");
  }

  public void setWidth(String width)
  {
    setHTMLAttribute("width", width);
  }

  public Document getContentDocument()
  {
    // TODO getContentDocument
    return null;
  }

  public void setMayscript(String may)
  {
    setHTMLAttribute("mayscript", may);
  }

  public String getMayscript()
  {
    return getHTMLAttribute("mayscript");
  }

  public void setScriptable(String scr)
  {
    setHTMLAttribute("scriptable", scr);
  }

  public String getScriptable()
  {
    return getHTMLAttribute("scriptable");
  }
}


text:
![Image of Jobber 1.0](docs/Jobber_1.0.png)

## Overview

Being able to automatically filter out applications from unqualified applicants can save busy hiring managers a lot of time.
They only need to spend time looking at applicants who meet their minimum qualifications.  Why waste time reading through
delivery driver applications from people who don't have a vehicle if you require drivers to use their own vehicle?

## Requirements

Jobber determines whether a job application meets a set of minimum qualifications:

* The job application will be a list of questions, each of which has a question id and an answer.
* The qualifications will be a list of question ids, each associated with a list of acceptable answers.
* If an applicant fails to answer any one of these questions with an acceptable answer, their application should be rejected. Otherwise the application should be accepted.
* The employer should be able to view only the accepted applications.

Additionally:

* Accepted applications must have all questions answered correctly.
* Accepted applications must be shown to the employer.
* Unaccepted applications must not be shown to the employer.

## Meeting the Requirements

Jobber achieves the above by providing an API that:

Accepting a list of questions with an acceptable answer for each question:
```
[
    {
        id: "id1",
        question: "string",
        answer: "string"
    },
    {
        id: "id2",
        question: "string",
        answer: "string"
    },
    ...
]
```

Receives job applications where each application is a JSON document conforming to this design:
```
{
    Name: "string",
    Questions: [
        {
            id: "id10",
            answer: "string"
        },
        {
            id: "id20",
            answer: "string"
        },
        ...
    ]
}
```

Upon receiving the job application Jobber decides to either accept or reject each application.

## Quickstart

### Requirements

Jobber has been tested with the following:

* Docker >= 1.13
* Docker Compose >= 1.8.0

### Running Jobber

Jobber is fully dockerized and consists of two containers: 1) an API-only backend, and 2) a Flask web application front-end.
To build and run the containers do the following:

```
git clone git@github.com:rdempsey/jobber.git
cd jobber
docker-compose up --build -d
```

If need be you can edit the provided docker-compose file to change the ports.

Open a web browser to `http://localhost:5000` to reach the Jobber dashboard. In addition, the API documentation is available at `http://localhost:8080/1.0/ui/`


text:
.class public final Lcom/payu/android/sdk/internal/ib;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/payu/android/sdk/internal/ia;

# instance fields
.field private a:Lcom/payu/android/sdk/internal/hv;

# direct methods
.method public constructor <init>(Lcom/payu/android/sdk/internal/hv;)V
    .locals 0

    .line 9
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 10
    iput-object p1, p0, Lcom/payu/android/sdk/internal/ib;->a:Lcom/payu/android/sdk/internal/hv;

    .line 11
    return-void
.end method

# virtual methods
.method public final a(Ljava/lang/String;)Lcom/payu/android/sdk/internal/hv;
    .locals 1

    .line 15
    iget-object v0, p0, Lcom/payu/android/sdk/internal/ib;->a:Lcom/payu/android/sdk/internal/hv;

    return-object v0
.end method


text:
__version__ = "$Id$"
__author__ = 'Jeroen Baten'
__copyright__ = "Copyright 2016, Deltares"

import sys
import os

# add current working directory to PYTHONPATH to be able to find models
sys.path.insert(0, os.getcwd())

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ict_os_dashboard.settings")

# Setup Django, otherwise we can not call table managers.
import django
from django.db import models
django.setup()

mypath = os.getcwd()
from django.conf import settings

from pprint import pprint, pformat
from dashboard.models import kvstore
import random

def createLock(lockName):
    # check if locking file present,
    keyName = lockName
    returnvalue = False
    kv = kvstore.objects.all().filter(key=keyName)

    # If not present create lock with my random hash in it
    if len(kv) == 0:
        # no lock so creating hash and storing it
        binhash = random.getrandbits(128)
        thash = "%032x" % binhash
        lock = kvstore(key=keyName, value=thash)
        lock.save()
        # Check if it is our lock by checking the hash
        # time.sleep(5)
        kv2 = kvstore.objects.all().filter(key=keyName)
        dbhash = ""
        # kv = kvstore.objects.all().get(key=keyName) # do not use this one in
        # case 2 records get created
        if len(kv2) == 1:
            for k in kv2:
                dbhash = k.value
                break
            # check if it is my hash
            if dbhash == thash:
                # if yes then proces my start.
                returnvalue = True
            else:
                print "Somebody beat you to it. This script was just started by somebody else."
            # Whether or not you started the script. I will still show you
            # expected end time.
        else:
            print "ERROR: I got 2 locks. This is not supposed to happen."
    else:
        # lock exists, so script already running
        print "This script is already running.
"
        print "If you think this is not correct you can go to the admin page, edit the 'kvstore' table and remove the record that has the text '" + keyName + "' in the 'key' column.
"

    return returnvalue

def releaseLock(lockName):
    kvResult = kvstore.objects.all().filter(key=lockName).delete()
    pprint(kvResult)

def showExpectedDuration():
    durationKeyname = "violation_script_last_duration"
    duration = "Unkown"
    kvDuration = kvstore.objects.all().filter(key=durationKeyname)
    if len(kvDuration) == 0:
        print "Sorry, but there is no script duration information (yet)"
    elif len(kvDuration) == 1:
        for d in kvDuration:
            duration = d.value
            break
        # get last running time from database
        # display expected running time on screen
        print "Estimated duration is: " + duration
    elif len(kvDuration) > 1:
        print "ERROR: Something weird happened."
    return duration

def storeDuration(start, stop):
    scriptDurationKeyName = "violation_script_last_duration"
    # calculate total running time and store in key-value-store
    duration = str(stop - start)
    # remove current value
    kvdr = kvstore.objects.all().filter(key=scriptDurationKeyName).delete()
    # insert new value
    durationObj = kvstore(key=scriptDurationKeyName, value=duration)
    durationObj.save()
    return stop - start


text:
<?php

declare(strict_types=1);

namespace Psi\Component\Grid\Tests\Unit\Column;

use Psi\Component\Grid\Column\PropertyColumn;
use Psi\Component\Grid\Column\SelectColumn;
use Psi\Component\Grid\View\Cell;

class SelectColumnTest extends ColumnTestCase
{
    protected function getColumns(): array
    {
        return [
            new PropertyColumn(),
            new SelectColumn(),
        ];
    }

    /**
     * It should create a cell from some data.
     */
    public function testCreateCell()
    {
        $object = new \stdClass();
        $object->id = 1234;
        $cell = $this->createFactory()->createCell('select', SelectColumn::class, $object, []);

        $this->assertInstanceOf(Cell::class, $cell);
        $this->assertEquals(1234, $cell->value);
        $this->assertEquals('Select', $cell->getTemplate());
    }
}


text:
package aplicacao;

public class Produto {

	private int quantVendida;
	private double preco;
	private boolean vendavel;
	private float peso;

	public int getQuantVendida() {
		return quantVendida;
	}
	public void setQuantVendida(int quantVendida) {
		this.quantVendida = quantVendida;
	}

	public double getPreco() {
		return preco;
	}
	public void setPreco(double preco) {
		this.preco = preco;
	}

	public boolean isVendavel() {
		return vendavel;
	}
	public void setVendavel(boolean vendavel) {
		this.vendavel = vendavel;
	}

	public float getPeso() {
		return peso;
	}
	public void setPeso(float peso) {
		this.peso = peso;
	}

}


text:
<?xml version="1.0" encoding="utf-8"?>
<selector
  xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_focused="true" android:drawable="@drawable/title_reload_selected" />
    <item android:state_selected="true" android:drawable="@drawable/title_reload_selected" />
    <item android:state_pressed="true" android:drawable="@drawable/title_reload_selected" />
    <item android:drawable="@drawable/title_reload_normal" />
</selector>


text:
#pragma once

#include "SceneFwd.h"
#include "CoreTypes.h"

#include <QWidget>
#include <QHash>

class SceneTreeWidget;
class Framework;
class EntityItem;
class EntityGroupItem;
class ComponentItem;

class QTreeWidgetItem;
class QLineEdit;
class QPushButton;
class QTreeWidgetItem;
class QToolButton;

/// Window with tree view showing every entity in a scene.
/** This class will only handle adding and removing of entities and components and updating
    their names. The SceneTreeWidget implements most of the functionality. */
class SceneStructureWindow : public QWidget
{
    Q_OBJECT
    Q_ENUMS(AttributeMode)

public:
    /// Constructs the window.
    /** @param fw Framework.
        @parent parent Parent widget. */
    explicit SceneStructureWindow(Framework *fw, QWidget *parent = 0);

    ~SceneStructureWindow();

    /// Sets new scene to be shown in the tree view.
    /** Populates tree view with entities.
        If scene is set to null, the tree view is cleared and previous signal connections are disconnected.
        @param newScene Scene. */
    void SetScene(const ScenePtr &newScene);

    /// Event filter to catch and react to child widget events
    virtual bool eventFilter(QObject *obj, QEvent *e);

    enum AttributeMode
    {
        DoNotShowAttributes, ///< Do not show attributes.
        ShowAssetReferences, ///< Show asset reference attributes (AssetReference and AssetReferenceList).
        ShowDynamicAttributes, ///< Show dynamic attributes.
        ShowAllAttributes ///< Show all attributes.
    };

public slots:
    /// Sets do we want to show components in the tree view.
    /** @param show Visibility of components in the tree view. */
    void ShowComponents(bool show);

    /// Sets do we want to show attributes in the tree view.
    /** @param type The type of attributes we want to show. */
    void ShowAttributes(AttributeMode type);

    /// Decorates (bolds) or undecorates item representing @c entity.
    /** @param entity Entity in question.
        @param selected Whether to decorate (true) or undecorate (false) the item. */
    void SetEntitySelected(const EntityPtr &entity, bool selected);

    /// Undecorates all selected entities.
    void ClearSelectedEntites();

protected:
    /// QWidget override.
    void changeEvent(QEvent* e);

private:
    /// Populates tree widget with all entities.
    void Populate();

    /// Clears the whole tree widget.
    void Clear();

    /// Creates attribute items for a single entity item.
    void CreateAttributesForEntity(EntityItem *targetItem);
    void CreateAttributesForComponent(ComponentItem *targetItem);

    /// Creates attribute items depending on the currently set mode.
    void CreateAttributes();

    /// Clears i.e. deletes all attribute items.
    void ClearAttributes();

    /// Create asset reference item to the tree widget.
    /** @param parentItem Parent item, can be entity or component item.
        @param attr AssetReference attribute. */
    void CreateAttributeItem(QTreeWidgetItem *parentItem, IAttribute *attr);

    EntityItem* EntityItemOfEntity(Entity* ent) const;
    EntityItem* EntityItemById(entity_id_t id) const;
    void RemoveEntityItem(EntityItem* item);

    Framework *framework; ///< Framework.
    SceneWeakPtr scene; ///< Scene which we are showing the in tree widget currently.
    SceneTreeWidget *treeWidget; ///< Scene tree widget.
    QHash<QString, EntityGroupItem*> entityGroupItems_; ///< Entity groups
    bool showComponents; ///< Do we show components also in the tree view.
    AttributeMode showAttributesMode; ///< Do we show attributes also in the tree view.
    QLineEdit *searchField; ///< Search field line edit.
    QPushButton *expandAndCollapseButton; ///< Expand/collapse all button.
    QToolButton * undoButton_; ///< Undo button with drop-down menu
    QToolButton * redoButton_; ///< Redo button with drop-down menu

private slots:
    /// Adds the entity to the tree widget.
    /** @param entity Entity to be added. */
    void AddEntity(Entity *entity);

    /// Removes entity from the tree widget.
    /** @param entity Entity to be removed. */
    void RemoveEntity(Entity *entity);

    /// Readds entity on server ack.
    /** @param entity Entity to be readded.
        @param oldId Old entity id */
    void AckEntity(Entity *entity, entity_id_t oldId);

    /// Updates temporary state of an entity and its components in the tree widget
    /** @param entity The entity which temporary state was toggled */
    void UpdateEntityTemporaryState(Entity *entity);

    /// Adds the entity to the tree widget.
    /** @param entity Altered entity.
        @param comp Component which was added. */
    void AddComponent(Entity *entity, IComponent *comp);

    /// Removes entity from the tree widget.
    /** @param entity Altered entity.
        @param comp Component which was removed. */
    void RemoveComponent(Entity *entity, IComponent *comp);

    /// Adds an attribute item item to the tree widget.
    /** This is called only by EC_DynamicComponent when asset ref attribute is added to it.
        @param attr AssetReference attribute. */
    void AddDynamicAttribute(IAttribute *attr);

    /// Removes an attribute item from the tree widget.
    /** This is called only by EC_DynamicComponent when asset ref attribute is removed from it.
        @param attr AssetReference attribute. */
    void RemoveDynamicAttribute(IAttribute *attr);

    /// Updates an attribute item.
    /** @param attr AssetReference attribute. */
    void UpdateDynamicAttribute(IAttribute *attr);

    /// Updates entity's name in the tree widget if entity's EC_Name component's "name" attribute has changed.
    /** EC_Name component's AttributeChanged() signal is connected to this slot.
        @param attr EC_Name's attribute which was changed. */
    void UpdateEntityName(IAttribute *attr);

    /// Updates component's name in the tree widget if components name has changed.
    /** @param oldName Old component name.
        @param newName New component name. */
    void UpdateComponentName(const QString &oldName, const QString &newName);

    /// Sort items in the tree widget. The outstanding sort order is used.
    /** @param column Column that is used as the sorting criteria. */
    void Sort(int column);

    /// Searches for items containing @c text (case-insensitive) and toggles their visibility.
    /** If match is found the item is set visible and expanded, otherwise it's hidden.
        @param filter Text used as a filter. */
    void Search(const QString &filter);

    /// Expands or collapses the whole tree view, depending on the previous action.
    void ExpandOrCollapseAll();

    /// Checks the expand status to mark it to the expand/collapse button
    void CheckTreeExpandStatus(QTreeWidgetItem *item);

    /// Removes entity from the tree widget by ID
    void RemoveEntityById(entity_id_t id);

    void OnUndoChanged(bool canUndo);
    void OnRedoChanged(bool canRedo);
    void ShowAttributesInternal(int mode) { ShowAttributes(static_cast<AttributeMode>(mode)); }
};


text:
'use strict';

describe('Directive chips : Using promise with list of Object', function() {

    beforeEach(module('angular.chips'));

    var element, scope, compile, template, isolateScope, timeout;

    beforeEach(inject(function($rootScope, $injector) {
        scope = $rootScope.$new();
        timeout = $injector.get('$timeout');
        scope.usingPromiseObj = {};
        scope.usingPromiseObj.samples = [{ name: 'India', fl: 'I' }, { name: 'China', fl: 'C' }, { name: 'America', fl: 'A' }];

        scope.usingPromiseObj.render = function(val) {
            var promise = timeout(handleRender, 100);

            function handleRender() {
                if (val === 'India') {
                    timeout.cancel(promise);
                } else {
                    return { name: val, fl: val.charAt(0) };
                }
            }
            return promise;
        };

        scope.usingPromiseObj.deleteChip = function(obj) {
            return true;
        };

        compile = $injector.get('$compile');

        template = '<chips defer ng-model="usingPromiseObj.samples" render="usingPromiseObj.render(data)">' +
            '<chip-tmpl>' +
            '
' +
            '{{chip.isLoading ? chip.defer : chip.defer.name}}' +
            '({{chip.defer.fl}})' +
            '' +
            '
' +
            '' +
            '
' +
            '
' +
            '</chip-tmpl>' +
            '<input chip-control></input>' +
            '</chips>';

        element = angular.element(template);
        compile(element)(scope);
        scope.$digest();
        isolateScope = element.isolateScope();
    }));

    it('check chips.list values', function() {
        expect(scope.usingPromiseObj.samples.length).toEqual(isolateScope.chips.list.length);
    });

    it('check adding chip by passing string', function() {
        isolateScope.chips.addChip('Swedan');
        timeout.flush()
        expect(scope.usingPromiseObj.samples[scope.usingPromiseObj.samples.length - 1].name).toBe('Swedan');
    });

    it('check deleting chip by passing string', function() {
        getChipScope(element).$broadcast('chip:delete')
        expect(scope.usingPromiseObj.samples[0].name).not.toBe('India');
    });

    it('check deleting chip while loading', function() {
        isolateScope.chips.addChip('Canada');
        var chipTmpls = element.find('chip-tmpl');
        getChipScope(element,-1).$broadcast('chip:delete')
            // should not delete while loading
        expect(chipTmpls.length).toEqual(element.find('chip-tmpl').length);
    });

    it('check deleting rejected chip', function() {
        isolateScope.chips.addChip('India');
        //rejected chip won't get added to scope
        expect(scope.usingPromiseObj.samples.length).toBe(3)
        timeout.flush();
        var duplicateChipScope = getChipScope(element,-1);
        expect(duplicateChipScope.chip.isFailed).toBe(true);
        var chipTmpls = element.find('chip-tmpl');
        duplicateChipScope.$broadcast('chip:delete');
        // rejected chip should get deleted from view
        expect(chipTmpls.length - 1).toEqual(element.find('chip-tmpl').length);
    });

});


text:
import { ALERT_HIDE, ALERT_SHOW } from 'constants/actions';

export const hideAlert = () => ({
  type: ALERT_HIDE
});

export const showAlert = message => ({
  type: ALERT_SHOW, message
});


text:
package io.novaordis.utilities.address;

/**
 * @author Ovidiu Feodorov <ovidiu@novaordis.com>
 * @since 6/12/17
 */
public class LocalOSAddress implements OSAddress {

    // Constants -------------------------------------------------------------------------------------------------------

    public static final String PROTOCOL = "localOS";
    public static final String HOST = "localhost";

    // Static ----------------------------------------------------------------------------------------------------------

    // Attributes ------------------------------------------------------------------------------------------------------

    // Constructors ----------------------------------------------------------------------------------------------------

    public LocalOSAddress() {
    }

    // Address implementation ------------------------------------------------------------------------------------------

    @Override
    public String getProtocol() {

        return PROTOCOL;
    }

    @Override
    public void setProtocol(String protocol) {

        if (!PROTOCOL.equals(protocol)) {

            throw new IllegalArgumentException("cannot change protocol to " + protocol);
        }
    }

    @Override
    public String getHost() {

        return HOST;
    }

    @Override
    public Integer getPort() {

        return null;
    }

    @Override
    public void setPort(Integer port) {

        //
        // noop
        //
    }

    @Override
    public String getUsername() {

        return null;
    }

    @Override
    public char[] getPassword() {

        return null;
    }

    @Override
    public String getLiteral() {

        return PROTOCOL + "://";
    }

    @Override
    public LocalOSAddress copy() {

        return new LocalOSAddress();
    }

    @Override
    public boolean equals(Object o) {

        return o instanceof LocalOSAddress;
    }

    @Override
    public int hashCode() {

        return 1;
    }

    // Public ----------------------------------------------------------------------------------------------------------

    @Override
    public String toString() {

        return "localOS";
    }

    // Package protected -----------------------------------------------------------------------------------------------

    // Protected -------------------------------------------------------------------------------------------------------

    // Private ---------------------------------------------------------------------------------------------------------

    // Inner classes ---------------------------------------------------------------------------------------------------

}


text:
package nz.org.nesi.goji.exceptions;

public class SessionException extends RuntimeException {

	public SessionException(String msg) {
		super(msg);
	}

	public SessionException(String msg, Exception e) {
		super(msg, e);
	}

}


text:
class Address
  include ActiveRecordEmbeddedDoc::EmbeddedDocument

  field :street, String
  field :city, String
  field :zip, String

end


text:
#ifndef _ELM_LAYERS_DIFFOFGAUSSIANS_H_
#define _ELM_LAYERS_DIFFOFGAUSSIANS_H_

#include "elm/layers/layers_interim/base_featuretransformationlayer.h"

namespace elm {

/**
 * @brief Layer for difference of gaussians
 * @todo define and implement
 */
class DiffOfGaussians
        : base_FeatureTransformationLayer
{
public:
    DiffOfGaussians();

    void Clear();

    void Reset(const LayerConfig &config);
};

} // namespace elm

#endif // _ELM_LAYERS_DIFFOFGAUSSIANS_H_


text:
package org.thoughtslive.jenkins.plugins.jira.steps;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.powermock.api.mockito.PowerMockito.spy;

import java.io.PrintStream;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import org.thoughtslive.jenkins.plugins.jira.Site;
import org.thoughtslive.jenkins.plugins.jira.api.ResponseData;
import org.thoughtslive.jenkins.plugins.jira.api.ResponseData.ResponseDataBuilder;
import org.thoughtslive.jenkins.plugins.jira.api.input.BasicIssues;
import org.thoughtslive.jenkins.plugins.jira.api.input.FieldsInput;
import org.thoughtslive.jenkins.plugins.jira.api.input.IssueInput;
import org.thoughtslive.jenkins.plugins.jira.api.input.IssuesInput;
import org.thoughtslive.jenkins.plugins.jira.service.JiraService;

import hudson.EnvVars;
import hudson.model.Run;
import hudson.model.TaskListener;

/**
 * Unit test cases for NewComponentStep class.
 *
 * @author Naresh Rayapati
 *
 */
@RunWith(PowerMockRunner.class)
@PrepareForTest({NewIssuesStep.class, Site.class})
public class NewIssuesStepTest {

	@Mock
	TaskListener taskListenerMock;
	@Mock
	Run<?, ?> runMock;
	@Mock
	EnvVars envVarsMock;
	@Mock
	PrintStream printStreamMock;
	@Mock
	JiraService jiraServiceMock;
	@Mock
	Site siteMock;

	NewIssuesStep.Execution stepExecution;

	IssuesInput issues;

	@Before
	public void setup() {

		// Prepare site.
		when(envVarsMock.get("JIRA_SITE")).thenReturn("LOCAL");
		when(envVarsMock.get("BUILD_URL")).thenReturn("http://localhost:8080/jira-testing/job/01");

		final IssueInput[] issue = new IssueInput[1];
		issue[0] = IssueInput.builder().fields(FieldsInput.builder().description("TEST").summary("TEST").build()).build();
		issues = IssuesInput.builder().issueUpdates(issue).build();
		PowerMockito.mockStatic(Site.class);
		Mockito.when(Site.get(any())).thenReturn(siteMock);
		when(siteMock.getService()).thenReturn(jiraServiceMock);

		stepExecution = spy(new NewIssuesStep.Execution());

		when(runMock.getCauses()).thenReturn(null);
		when(taskListenerMock.getLogger()).thenReturn(printStreamMock);
		doNothing().when(printStreamMock).println();

		final ResponseDataBuilder<BasicIssues> builder = ResponseData.builder();
		when(jiraServiceMock.createIssues(any())).thenReturn(builder.successful(true).code(200).message("Success").build());

		stepExecution.listener = taskListenerMock;
		stepExecution.envVars = envVarsMock;
		stepExecution.run = runMock;

		doReturn(jiraServiceMock).when(stepExecution).getJiraService(any());
	}

	@Test
	public void testSuccessfulNewIssues() throws Exception {
		final NewIssuesStep step = new NewIssuesStep(issues);
		stepExecution.step = step;

		// Execute Test.
		stepExecution.run();

		// Assert Test
		verify(jiraServiceMock, times(1)).createIssues(issues);
		assertThat(stepExecution.step.isFailOnError()).isEqualTo(true);
	}
}


text:
'use strict';

var helpers = require('..')('code');
var assert = require('assert');
var template = require('lodash.template');
var imports = {imports: helpers};

describe('code', function() {
  var orig = process.cwd();
  before(function() {
    process.chdir(__dirname + '/fixtures');
  });
  after(function() {
    process.chdir(orig);
  });

  describe('jsfiddle', function() {
    it('should return an empty string with no args.', function() {
      assert.equal(template('<%= jsfiddle() %>', imports)(), '');
    });

    it('should return create a jsfiddle link.', function() {
      assert.equal(template('<%= jsfiddle({id: "c0th6weq", tabs: true}) %>', imports)(), '<iframe width="100%" height="300" src="http://jsfiddle.net/c0th6weq/embedded/true/presentation/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>');
    });
  });
  describe('embed', function() {
    it('should return create a code example from the given file.', function() {
      assert.equal(template('<%= embed("a.js") %>', imports)({}), [
        '```js',
        'function foo(a, b, c) {',
        '  return a + b + c;',
        '}',
        '```\n'
      ].join('\n'));
    });

    it('should use the extension specified as a second argument.', function() {
      assert.equal(template('<%= embed("a.js", "javascript") %>', imports)(), [
        '```javascript',
        'function foo(a, b, c) {',
        '  return a + b + c;',
        '}',
        '```\n'
      ].join('\n'));
    });

    it('should escape backticks in markdown.', function() {
      assert.equal(template('<%= embed("a.md", "md") %>', imports)(), [
        '```md',
        '&#x60&#x60&#x60',
        'foo',
        '&#x60&#x60&#x60',
        '```\n'
      ].join('\n'));
    });
  });
});


text:
extern NSString *const kGADAdLoaderAdTypeNativeAppInstall;

/// Native content ad type. \see GADNativeContentAd.h.
extern NSString *const kGADAdLoaderAdTypeNativeContent;

/// Native custom template ad type. \see GADNativeCustomTemplateAd.h.
extern NSString *const kGADAdLoaderAdTypeNativeCustomTemplate;


text:
import { Graphics as GameStartrGraphics } from "gamestartr/lib/components/Graphics";

import { FullScreenPokemon } from "../FullScreenPokemon";
import { IThing } from "./Things";

/**
 * Graphics functions used by FullScreenPokemon instances.
 */
export class Graphics<TGameStartr extends FullScreenPokemon> extends GameStartrGraphics<TGameStartr> {
    /**
     * Collects all unique Things that should be kept on top of battle intro animations.
     *
     * @param thingsRaw   Titles of and/or references to Things that should be kept.
     * @returns The unique Things that will be kept.
     */
    public collectBattleKeptThings(thingsRaw: (string | IThing)[]): IThing[] {
        const things: IThing[] = [this.gameStarter.players[0]];
        const used: { [i: string]: IThing } = {
            [this.gameStarter.players[0].title]: this.gameStarter.players[0]
        };

        for (const thingRaw of thingsRaw) {
            const thing: IThing = thingRaw.constructor === String
                ? this.gameStarter.utilities.getThingById(thingRaw as string)
                : thingRaw as IThing;

            if (!used[thing.title]) {
                used[thing.title] = thing;
                things.push(thing);
            }
        }

        return things;
    }

    /**
     * Moves all kept Things in a battle to the Text group for animations.
     *
     * @param keptThings    Things that should be visible above text animations.
     */
    public moveThingsToText(things: IThing[]): void {
        for (const thing of things) {
            this.gameStarter.groupHolder.switchMemberGroup(thing, thing.groupType, "Text");
        }
    }

    /**
     * Moves kept Things
     *
     * @remarks This is necessary because animations may put backgrounds
     *          as the first Text Thing after keptThings were added.
     */
    public moveThingsBeforeBackgrounds(things: IThing[]): void {
        const texts: IThing[] = this.gameStarter.groupHolder.getGroup("Text") as IThing[];

        for (const thing of things) {
            texts.splice(texts.indexOf(thing), 1);
            texts.splice(0, 0, thing);
        }
    }

    /**
     * Moves all kept Things in a battle back to their original groups.
     *
     * @param keptThings    Things that should be visible above text animations.
     */
    public moveThingsFromText(things: IThing[]): void {
        for (const keptThing of things) {
            this.gameStarter.groupHolder.switchMemberGroup(keptThing, "Text", keptThing.groupType);
        }
    }
}


text:
namespace tkom { namespace structures { namespace ir
{
    struct Literal;
    struct ScopeInst;
    struct Function;

    struct Executable
    {
        virtual std::shared_ptr<Literal> execute(
            ScopeInst* scope,
            std::unordered_map<std::string, std::shared_ptr<Function>>& functions
        ) = 0;
    };
}}}

#endif


text:
REGISTER=data/social-housing-provider/social-housing-provider.tsv

#
#  source HCA list
#
SOURCE=lists/hca/list.tsv

all: $(REGISTER)

$(REGISTER):	$(SOURCE)
	mkdir -p data/social-housing-provider
	cp $(SOURCE) $(REGISTER)

# remove targets
clobber:
	rm -f $(REGISTER) $(DATA) $(MAPS)

clean::
	-find . -name "*.pyc" | xargs rm -f
	-find . -name "__pycache__" | xargs rm -rf


text:
BUILDCONFIG := Release

default : all
metabuilder_MODULEOBJ :=
include lua.mk
metabuilder_MODULEOBJ += $(lua_OUTDIR.$(BUILDCONFIG))/lua

metabuilder_CC := gcc
metabuilder_CXX := g++

metabuilder_INTDIR.Debug := int/metabuilder/Debug
metabuilder_OUTDIR.Debug := out/metabuilder/Debug

metabuilder_CPPFLAGS.Debug := \
  -Wall -g -O0 \

metabuilder_CFLAGS.Debug := \

metabuilder_CXXFLAGS.Debug := \
  -Wall \
  -Wno-unused-function \

metabuilder_DEFINES.Debug := \
  -DMETABUILDER \
  -DPLATFORM_POSIX \
  -DPLATFORM_CYGWIN \
  -DBUILD_CONFIG_DEBUG \

metabuilder_CPPFLAGS.Debug += $(metabuilder_DEFINES.Debug)
metabuilder_INCLUDES.Debug := \
  -I"../../../src" \
  -I"../../../../external/dlmalloc-2.8.6" \
  -I"../../../../external/ezOptionParser-0.2.1" \
  -I"../../../../external/lua-5.2.2/src" \
  -I"../../../../external" \

metabuilder_CPPFLAGS.Debug += $(metabuilder_INCLUDES.Debug)
metabuilder_INTDIR.Release := int/metabuilder/Release
metabuilder_OUTDIR.Release := out/metabuilder/Release

metabuilder_CPPFLAGS.Release := \
  -Wall -g -O2 \

metabuilder_CFLAGS.Release := \

metabuilder_CXXFLAGS.Release := \
  -Wall \
  -Wno-unused-function \

metabuilder_DEFINES.Release := \
  -DMETABUILDER \
  -DPLATFORM_POSIX \
  -DPLATFORM_CYGWIN \
  -DBUILD_CONFIG_RELEASE \

metabuilder_CPPFLAGS.Release += $(metabuilder_DEFINES.Release)
metabuilder_INCLUDES.Release := \
  -I"../../../src" \
  -I"../../../../external/dlmalloc-2.8.6" \
  -I"../../../../external/ezOptionParser-0.2.1" \
  -I"../../../../external/lua-5.2.2/src" \
  -I"../../../../external" \

metabuilder_CPPFLAGS.Release += $(metabuilder_INCLUDES.Release)
metabuilder_CPPFLAGS	:= -MMD -MP $(metabuilder_CPPFLAGS.$(BUILDCONFIG))
metabuilder_CFLAGS	:= $(metabuilder_CFLAGS.$(BUILDCONFIG))
metabuilder_CXXFLAGS	:= $(metabuilder_CXXFLAGS.$(BUILDCONFIG))
metabuilder_CFLAGS += -c
metabuilder_CXXFLAGS += -c
metabuilder_LD := g++

metabuilder_LDFLAGS.Debug := \
 \

metabuilder_LIBDIRS.Debug := \

metabuilder_LDFLAGS.Debug += $(metabuilder_LIBDIRS.Debug)
metabuilder_LIBS.Debug := \
 -lrt \

metabuilder_LDLIBS.Debug += $(metabuilder_LIBS.Debug)

metabuilder_LDFLAGS.Release := \
 \

metabuilder_LIBDIRS.Release := \

metabuilder_LDFLAGS.Release += $(metabuilder_LIBDIRS.Release)
metabuilder_LIBS.Release := \
 -lrt \

metabuilder_LDLIBS.Release += $(metabuilder_LIBS.Release)

metabuilder_LDFLAGS := $(metabuilder_LDFLAGS.$(BUILDCONFIG)) $(metabuilder_LDLIBS.$(BUILDCONFIG))

metabuilder_SRC := \
	../../../../external/freebsd/realpath.cpp \
	../../../src/block.cpp \
	../../../src/common.cpp \
	../../../src/configparam.cpp \
	../../../src/core.cpp \
	../../../src/corestring.cpp \
	../../../src/filepath.cpp \
	../../../src/luafile.cpp \
	../../../src/main.cpp \
	../../../src/makeglobal.cpp \
	../../../src/mbstring.cpp \
	../../../src/metabase.cpp \
	../../../src/metabuilder_pch.cpp \
	../../../src/platform/platform.cpp \
	../../../src/platform/posix/platform_posix.cpp \
	../../../src/platformparam.cpp \
	../../../src/solution.cpp \
	../../../src/target.cpp \
	../../../src/timeutil.cpp \
	../../../src/writer.cpp \
	../../../src/writer_msvc.cpp \
	../../../src/writer_utility.cpp \
	../../../src/writer_xcode.cpp \

metabuilder_OBJ := \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/realpath.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/block.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/common.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/configparam.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/core.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/corestring.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/filepath.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/luafile.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/main.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/makeglobal.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/mbstring.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/metabase.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/metabuilder_pch.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/platform.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/platform_posix.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/platformparam.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/solution.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/target.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/timeutil.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/writer.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/writer_msvc.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/writer_utility.o \
	$(metabuilder_INTDIR.$(BUILDCONFIG))/writer_xcode.o \

$(metabuilder_INTDIR.$(BUILDCONFIG))/realpath.o : ../../../../external/freebsd/realpath.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/realpath.d
	@echo $(metabuilder_CXX) ../../../../external/freebsd/realpath.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/block.o : ../../../src/block.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/block.d
	@echo $(metabuilder_CXX) ../../../src/block.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/common.o : ../../../src/common.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/common.d
	@echo $(metabuilder_CXX) ../../../src/common.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/configparam.o : ../../../src/configparam.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/configparam.d
	@echo $(metabuilder_CXX) ../../../src/configparam.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/core.o : ../../../src/core.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/core.d
	@echo $(metabuilder_CXX) ../../../src/core.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/corestring.o : ../../../src/corestring.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/corestring.d
	@echo $(metabuilder_CXX) ../../../src/corestring.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/filepath.o : ../../../src/filepath.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/filepath.d
	@echo $(metabuilder_CXX) ../../../src/filepath.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/luafile.o : ../../../src/luafile.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/luafile.d
	@echo $(metabuilder_CXX) ../../../src/luafile.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/main.o : ../../../src/main.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/main.d
	@echo $(metabuilder_CXX) ../../../src/main.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/makeglobal.o : ../../../src/makeglobal.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/makeglobal.d
	@echo $(metabuilder_CXX) ../../../src/makeglobal.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/mbstring.o : ../../../src/mbstring.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/mbstring.d
	@echo $(metabuilder_CXX) ../../../src/mbstring.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/metabase.o : ../../../src/metabase.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/metabase.d
	@echo $(metabuilder_CXX) ../../../src/metabase.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/metabuilder_pch.o : ../../../src/metabuilder_pch.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/metabuilder_pch.d
	@echo $(metabuilder_CXX) ../../../src/metabuilder_pch.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/platform.o : ../../../src/platform/platform.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/platform.d
	@echo $(metabuilder_CXX) ../../../src/platform/platform.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/platform_posix.o : ../../../src/platform/posix/platform_posix.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/platform_posix.d
	@echo $(metabuilder_CXX) ../../../src/platform/posix/platform_posix.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/platformparam.o : ../../../src/platformparam.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/platformparam.d
	@echo $(metabuilder_CXX) ../../../src/platformparam.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/solution.o : ../../../src/solution.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/solution.d
	@echo $(metabuilder_CXX) ../../../src/solution.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/target.o : ../../../src/target.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/target.d
	@echo $(metabuilder_CXX) ../../../src/target.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/timeutil.o : ../../../src/timeutil.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/timeutil.d
	@echo $(metabuilder_CXX) ../../../src/timeutil.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/writer.o : ../../../src/writer.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/writer.d
	@echo $(metabuilder_CXX) ../../../src/writer.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/writer_msvc.o : ../../../src/writer_msvc.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/writer_msvc.d
	@echo $(metabuilder_CXX) ../../../src/writer_msvc.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/writer_utility.o : ../../../src/writer_utility.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/writer_utility.d
	@echo $(metabuilder_CXX) ../../../src/writer_utility.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';
$(metabuilder_INTDIR.$(BUILDCONFIG))/writer_xcode.o : ../../../src/writer_xcode.cpp $(metabuilder_INTDIR.$(BUILDCONFIG))/writer_xcode.d
	@echo $(metabuilder_CXX) ../../../src/writer_xcode.cpp
	@$(metabuilder_CXX) $(metabuilder_CPPFLAGS) $(metabuilder_CXXFLAGS) -o '$@' '$<';

$(metabuilder_INTDIR.$(BUILDCONFIG))/__metabuilder__prelink__ : $(metabuilder_OBJ) $(lua_OUTDIR.$(BUILDCONFIG))/lua
	@echo ld Creating prelink obj $(metabuilder_INTDIR.$(BUILDCONFIG))/__metabuilder__prelink__
	@ld  -r  $(metabuilder_OBJ) -o '$@' ;

$(metabuilder_OUTDIR.$(BUILDCONFIG))/metabuilder : $(metabuilder_INTDIR.$(BUILDCONFIG))/__metabuilder__prelink__
	@echo $(metabuilder_LD) Linking $(metabuilder_OUTDIR.$(BUILDCONFIG))/metabuilder
	@$(metabuilder_LD) $(metabuilder_MODULEOBJ) $(metabuilder_OBJ) $(metabuilder_LDFLAGS) -o '$@' ;

$(metabuilder_OBJ) : | $(metabuilder_INTDIR.$(BUILDCONFIG))

$(metabuilder_INTDIR.$(BUILDCONFIG)):
	mkdir -p $(metabuilder_INTDIR.$(BUILDCONFIG))
	mkdir -p $(metabuilder_OUTDIR.$(BUILDCONFIG))

.PHONY: all_metabuilder
all_metabuilder : $(metabuilder_OUTDIR.$(BUILDCONFIG))/metabuilder

.PHONY: clean_metabuilder
clean_metabuilder : clean_lua
	@echo Cleaning $(metabuilder_INTDIR.$(BUILDCONFIG))
	@rm -f "$(metabuilder_INTDIR.$(BUILDCONFIG))"/*
	@if [ -d "$(metabuilder_INTDIR.$(BUILDCONFIG))" ]; then rmdir "$(metabuilder_INTDIR.$(BUILDCONFIG))";fi
	@echo Cleaning $(metabuilder_OUTDIR.$(BUILDCONFIG))
	@rm -f "$(metabuilder_OUTDIR.$(BUILDCONFIG))"/*
	@if [ -d "$(metabuilder_OUTDIR.$(BUILDCONFIG))" ]; then rmdir "$(metabuilder_OUTDIR.$(BUILDCONFIG))";fi

.PHONY: all
all : all_metabuilder

.PHONY: clean
clean : clean_metabuilder

%.d: ;
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/realpath.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/block.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/common.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/configparam.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/core.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/corestring.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/filepath.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/luafile.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/main.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/makeglobal.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/mbstring.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/metabase.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/metabuilder_pch.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/platform.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/platform_posix.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/platformparam.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/solution.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/target.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/timeutil.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/writer.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/writer_msvc.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/writer_utility.d
-include $(metabuilder_INTDIR.$(BUILDCONFIG))/writer_xcode.d


text:
<?php

/**
 * TOP API: taobao.crm.group.update request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_CrmGroupUpdateRequest {
	/**
	 * 分组的id
	 **/
	private $groupId;

	/**
	 * 新的分组名,分组名称不能包含|或者:
	 **/
	private $newGroupName;

	private $apiParas = array();

	public function setGroupId($groupId) {
		$this->groupId = $groupId;
		$this->apiParas["group_id"] = $groupId;
	}

	public function getGroupId() {
		return $this->groupId;
	}

	public function setNewGroupName($newGroupName) {
		$this->newGroupName = $newGroupName;
		$this->apiParas["new_group_name"] = $newGroupName;
	}

	public function getNewGroupName() {
		return $this->newGroupName;
	}

	public function getApiMethodName() {
		return "taobao.crm.group.update";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->groupId, "groupId");
		Taobao_RequestCheckUtil::checkMinValue($this->groupId, 1, "groupId");
		Taobao_RequestCheckUtil::checkNotNull($this->newGroupName, "newGroupName");
		Taobao_RequestCheckUtil::checkMaxLength($this->newGroupName, 15, "newGroupName");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}


text:
package com.peterphi.std.guice.common.retry.retry;

import com.codahale.metrics.MetricRegistry;
import com.peterphi.std.guice.common.retry.retry.backoff.NoBackoffStrategy;
import org.junit.Test;

import java.util.concurrent.atomic.AtomicInteger;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public class RetryManagerTest
{
	/**
	 * Test that we only try maxAttempts times at most
	 *
	 * @throws Exception
	 */
	@Test
	public void testMaxAttempts() throws Exception
	{
		final MetricRegistry registry = new MetricRegistry();

		final AtomicInteger val = new AtomicInteger();

		// Try at most 3 times
		RetryManager mgr = new RetryManager(new NoBackoffStrategy(),
		                                    3,
		                                    registry.timer("dummy-timer"),
		                                    registry.meter("dummy-meter"));

		final Exception ex = new Exception("boom");

		try
		{
			mgr.runUnchecked(new Retryable<Void>()
			{
				public Void attempt(int attempt) throws Exception
				{
					val.incrementAndGet();

					throw ex;
				}

				public RetryDecision shouldRetry(int attempt, Throwable e)
				{
					return RetryDecision.BACKOFF_AND_RETRY; // always retry
				}
			});

			fail("Execution should not reach here");
		}
		catch (RuntimeException e)
		{
			// expected
			assertEquals(ex, e.getCause());
		}

		assertEquals(3, val.get());
	}
}


text:
prompt --application/shared_components/user_interface/templates/label/required_above
begin
wwv_flow_api.create_field_template(
 p_id=>wwv_flow_api.id(35605720386315951)
,p_template_name=>'Required - Above'
,p_internal_name=>'REQUIRED_ABOVE'
,p_template_body1=>wwv_flow_string.join(wwv_flow_t_varchar2(
'
',
'  '))
,p_template_body2=>wwv_flow_string.join(wwv_flow_t_varchar2(
' (#VALUE_REQUIRED#) #HELP_TEMPLATE#',
'
'))
,p_before_item=>'
'
,p_after_item=>'
'
,p_item_pre_text=>'#CURRENT_ITEM_PRE_TEXT#'
,p_item_post_text=>'#CURRENT_ITEM_POST_TEXT#'
,p_before_element=>'

#ITEM_PRE_TEXT#'
,p_after_element=>'#ITEM_POST_TEXT#
#INLINE_HELP_TEMPLATE##ERROR_TEMPLATE#
'
,p_help_link=>'<button class="t-Button t-Button--noUI t-Button--helpButton js-itemHelp" data-itemhelp="#CURRENT_ITEM_ID#" title="#CURRENT_ITEM_HELP_LABEL#" aria-label="#CURRENT_ITEM_HELP_LABEL#" tabindex="-1" type="button"></button>'
,p_inline_help_text=>'#CURRENT_ITEM_INLINE_HELP_TEXT#'
,p_error_template=>'#ERROR_MESSAGE#'
,p_theme_id=>42
,p_theme_class_id=>4
,p_reference_id=>3030115129444970113
,p_translate_this_template=>'N'
);
end;
/


text:
package org.apache.kafka.common.requests;

import org.apache.kafka.common.protocol.ApiKeys;
import org.apache.kafka.common.protocol.Errors;
import org.apache.kafka.common.protocol.types.Struct;

import java.nio.ByteBuffer;

public class HeartbeatResponse extends AbstractResponse {

    private static final String ERROR_CODE_KEY_NAME = "error_code";

    /**
     * Possible error codes:
     *
     * GROUP_COORDINATOR_NOT_AVAILABLE (15)
     * NOT_COORDINATOR (16)
     * ILLEGAL_GENERATION (22)
     * UNKNOWN_MEMBER_ID (25)
     * REBALANCE_IN_PROGRESS (27)
     * GROUP_AUTHORIZATION_FAILED (30)
     */
    private final Errors error;
    private final int throttleTimeMs;

    public HeartbeatResponse(Errors error) {
        this(DEFAULT_THROTTLE_TIME, error);
    }

    public HeartbeatResponse(int throttleTimeMs, Errors error) {
        this.throttleTimeMs = throttleTimeMs;
        this.error = error;
    }

    public HeartbeatResponse(Struct struct) {
        this.throttleTimeMs = struct.hasField(THROTTLE_TIME_KEY_NAME) ? struct.getInt(THROTTLE_TIME_KEY_NAME) : DEFAULT_THROTTLE_TIME;
        error = Errors.forCode(struct.getShort(ERROR_CODE_KEY_NAME));
    }

    public int throttleTimeMs() {
        return throttleTimeMs;
    }

    public Errors error() {
        return error;
    }

    @Override
    protected Struct toStruct(short version) {
        Struct struct = new Struct(ApiKeys.HEARTBEAT.responseSchema(version));
        if (struct.hasField(THROTTLE_TIME_KEY_NAME))
            struct.set(THROTTLE_TIME_KEY_NAME, throttleTimeMs);
        struct.set(ERROR_CODE_KEY_NAME, error.code());
        return struct;
    }

    public static HeartbeatResponse parse(ByteBuffer buffer, short version) {
        return new HeartbeatResponse(ApiKeys.HEARTBEAT.parseResponse(version, buffer));
    }
}


text:
:::tip
1、Configure the cell editing function through the `editoption` attribute

2、Set 'edit=true' allowed columns edit through the 'columns' object

3、You can use shortcut keys and edit like excel

:::


text:
package com.capitalone.dashboard.service;

import java.util.Collection;
import java.util.HashSet;
import java.util.Properties;

import com.capitalone.dashboard.auth.AuthProperties;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.stereotype.Component;

import com.capitalone.dashboard.auth.exceptions.DeleteLastAdminException;
import com.capitalone.dashboard.auth.exceptions.UserNotFoundException;
import com.capitalone.dashboard.model.AuthType;
import com.capitalone.dashboard.model.UserInfo;
import com.capitalone.dashboard.model.UserRole;
import com.capitalone.dashboard.repository.UserInfoRepository;
import com.google.common.collect.Sets;

import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attribute;
import javax.naming.directory.InitialDirContext;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;

@Component
public class UserInfoServiceImpl implements UserInfoService {

	private static final Logger LOGGER = Logger.getLogger(UserInfoServiceImpl.class);

	private UserInfoRepository userInfoRepository;
	@Autowired
	private AuthProperties authProperties;

	@Autowired
	public UserInfoServiceImpl(UserInfoRepository userInfoRepository) {
		this.userInfoRepository = userInfoRepository;
	}

	@Override
	public Collection<? extends GrantedAuthority> getAuthorities(String username, String firstName, String middleName, String lastName, String displayName, String emailAddress, AuthType authType) {
		Collection<UserRole> roles = getUserInfo(username, firstName, middleName, lastName, displayName, emailAddress, authType).getAuthorities();
		return createAuthorities(roles);
	}

	@Override
	public UserInfo getUserInfo(String username, String firstName, String middleName, String lastName, String displayName, String emailAddress, AuthType authType) {
		UserInfo userInfo = userInfoRepository.findByUsernameAndAuthType(username, authType);
		if(userInfo == null) {
			userInfo = createUserInfo(username, firstName, middleName, lastName, displayName, emailAddress, authType);
			userInfoRepository.save(userInfo);
		}

		// TODO: This will give the standard "admin" user admin privledges, might want
		// to bootstrap in an admin user, or something better than this.
		addAdminRoleToStandardAdminUser(userInfo);

		return userInfo;
	}

    @Override
    public Collection<UserInfo> getUsers() {
        return Sets.newHashSet(userInfoRepository.findAll());
    }

    @Override
    public UserInfo promoteToAdmin(String username, AuthType authType) {
        UserInfo user = userInfoRepository.findByUsernameAndAuthType(username, authType);
        if (user == null) {
            throw new UserNotFoundException(username, authType);
        }

        user.getAuthorities().add(UserRole.ROLE_ADMIN);
        UserInfo savedUser = userInfoRepository.save(user);
        return savedUser;
    }

    @Override
    public UserInfo demoteFromAdmin(String username, AuthType authType) {
        int numberOfAdmins = userInfoRepository.findByAuthoritiesIn(UserRole.ROLE_ADMIN).size();
        if(numberOfAdmins <= 1) {
            throw new DeleteLastAdminException();
        }
        UserInfo user = userInfoRepository.findByUsernameAndAuthType(username, authType);
        if (user == null) {
            throw new UserNotFoundException(username, authType);
        }

        user.getAuthorities().remove(UserRole.ROLE_ADMIN);
        UserInfo savedUser = userInfoRepository.save(user);
        return savedUser;
    }

	private UserInfo createUserInfo(String username, String firstName, String middleName, String lastName, String displayName, String emailAddress, AuthType authType) {
		UserInfo userInfo = new UserInfo();
		userInfo.setUsername(username);
		userInfo.setFirstName(firstName);
		userInfo.setMiddleName(middleName);
		userInfo.setLastName(lastName);
		userInfo.setDisplayName(displayName);
		userInfo.setEmailAddress(emailAddress);
		userInfo.setAuthType(authType);
		userInfo.setAuthorities(Sets.newHashSet(UserRole.ROLE_USER));

		return userInfo;
	}

	private void addAdminRoleToStandardAdminUser(UserInfo userInfo) {
		if ("admin".equals(userInfo.getUsername()) && AuthType.STANDARD == userInfo.getAuthType()) {
			userInfo.getAuthorities().add(UserRole.ROLE_ADMIN);
		}
	}

	private Collection<? extends GrantedAuthority> createAuthorities(Collection<UserRole> authorities) {
		Collection<GrantedAuthority> grantedAuthorities = new HashSet<GrantedAuthority>();
		authorities.forEach(authority -> {
			grantedAuthorities.add(new SimpleGrantedAuthority(authority.name()));
		});

		return grantedAuthorities;
	}

	/**
	 * Can be called to check validity of userId when creating a dashboard remotely via api
	 * @param userId
	 * @param authType
	 * @return
	 */
	@Override
	public boolean isUserValid(String userId, AuthType authType) {
		if (userInfoRepository.findByUsernameAndAuthType(userId, authType) != null) {
			return true;
		} else {
			if (authType == AuthType.LDAP) {
				try {
					return searchLdapUser(userId);
				} catch (NamingException ne) {
					LOGGER.error("Failed to query ldap for " + userId, ne);
					return false;
				}
			} else {
				return false;
			}
		}
	}

	private boolean searchLdapUser(String searchId) throws NamingException {
		boolean searchResult = false;

		Properties props = new Properties();
		props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
		props.put("java.naming.security.protocol", "ssl");
		props.put(Context.SECURITY_AUTHENTICATION, "simple");

		try {
			if (!StringUtils.isBlank(authProperties.getAdUrl())) {
				props.put(Context.PROVIDER_URL, authProperties.getAdUrl());
				props.put(Context.SECURITY_PRINCIPAL, authProperties.getLdapBindUser() + "@" + authProperties.getAdDomain());
			} else {
				props.put(Context.PROVIDER_URL, authProperties.getLdapServerUrl());
				props.put(Context.SECURITY_PRINCIPAL, StringUtils.replace(authProperties.getLdapUserDnPattern(), "{0}", authProperties.getLdapBindUser()));
			}
			props.put(Context.SECURITY_CREDENTIALS, authProperties.getLdapBindPass());
		} catch (Exception e) {
			LOGGER.error("Failed to retrieve properties for InitialDirContext", e);
			return false;
		}

		InitialDirContext context = new InitialDirContext(props);

		try {
			SearchControls ctrls = new SearchControls();
			ctrls.setSearchScope(SearchControls.SUBTREE_SCOPE);

			String searchBase = "";
			String searchFilter = "";
			if(!StringUtils.isBlank(authProperties.getAdUrl())) {
				searchBase = authProperties.getAdRootDn();
				searchFilter = "(&(objectClass=user)(userPrincipalName="	+ searchId + "@" + authProperties.getAdDomain() + "))";
			} else {
				searchBase = authProperties.getLdapUserDnPattern().substring(
						authProperties.getLdapUserDnPattern().indexOf(',') + 1,
						authProperties.getLdapUserDnPattern().length()
				);
				searchFilter = "(&(objectClass=user)(sAMAccountName="	+ searchId + "))";
			}

			NamingEnumeration<SearchResult> results = context.search(searchBase, searchFilter, ctrls);

			if (!results.hasMore()) {
				return searchResult;
			}

			SearchResult result = results.next();

			Attribute memberOf = result.getAttributes().get("memberOf");
			if (memberOf != null) {
				searchResult = true;
			}
		} finally {
			context.close();
		}

		return searchResult;
	}
}


text:
import { IVisit } from '../../reducers/visit.reducer';
import { Link, browserHistory } from 'react-router';
import { MouseEvent } from 'react';
import {
    Table,
    TableHeader,
    TableRow,
    TableBody,
    TableRowColumn,
    TableHeaderColumn,
    FlatButton,
    RaisedButton
} from 'material-ui';

export const VisitListRow = ({visit, deleteCallback}: { visit: IVisit, deleteCallback: (visit: IVisit) => void }) => {
    return (
        <TableRow onTouchTap={() => {
            browserHistory.push('/ManageVisit/' + visit.idVisit);
        } } style={{ cursor: "pointer" }}>
            <TableRowColumn><Link to="/ManageVisit">{visit.userName}</Link></TableRowColumn>
            <TableRowColumn><Link to="/ManageVisit">{visit.visitedFirmName}</Link></TableRowColumn>
            <TableRowColumn>{visit.visitedCityName}</TableRowColumn>
            <TableRowColumn>{visit.visitedTownName}</TableRowColumn>
            <TableRowColumn>{visit.visitedVillageName}</TableRowColumn>
            <TableRowColumn>{visit.visitGroup}</TableRowColumn>
            <TableRowColumn><b>{`${visit.visitTime.toLocaleDateString("tr-TR")}`}</b> {`${visit.visitTime.toLocaleTimeString("tr-TR").substring(0, 5)}`}</TableRowColumn>
            <TableRowColumn style={{ textAlign: "right" }}>
                <FlatButton
                    style={{ marginRight: "10px" }}
                    label="DÜZENLE"
                    primary={true}
                    onTouchTap={(e) => {
                        browserHistory.push('/ManageVisit/' + visit.idVisit);
                    } } />
                <FlatButton
                    label="SİL"
                    secondary={true}
                    onTouchTap={(e) => {
                        e.stopPropagation();
                        deleteCallback(visit);
                    } } />
            </TableRowColumn>
        </TableRow>
    )
}


text:
The purpose of the Metron PCAP backend is to create a storm topology
capable of ingesting rapidly raw packet capture data directly into HDFS
from Kafka.

## The Sensors Feeding Kafka

This component must be fed by fast packet capture components upstream
via Kafka.  The two supported components shipped with Metron are as follows:
* The pycapa [tool](../../metron-sensors/pycapa) aimed at low-volume packet capture
* The [DPDK](http://dpdk.org/) based [tool](../../metron-sensors/fastcapa) aimed at high-volume packet capture

Both of these sensors feed kafka raw packet data directly into Kafka.
The format of the record structure that this component expects is the
following:
* A key which is the byte representation of a 64-bit `unsigned long` representing a time-unit since the unix epoch
* A value which is the raw packet data without header (either global pcap header or packet header)

## The PCAP Topology

The structure of the topology is extremely simple.  In fact, it is a spout-only
topology.  The `Storm Kafka` spout is used but extended to allow a
callback to be used rather than having a separate bolt.

The following happens as part of this spout for each packet:
* A custom `Scheme` is used which attaches the appropriate headers to the packet (both global and packet headers) using the timestamp in the key and the raw packet data in the value.
* A callback is called which appends the packet data to a sequence file in HDFS.

## The Files on HDFS

The sequence files on HDFS fit the following pattern: `$BASE_PATH/pcap_$TOPIC_$TS_$PARTITION_$UUID`

where
* `BASE_PATH` is the base path to where pcap data is stored in HDFS
* `TOPIC` is the kafka topic
* `TS` is the timestamp, in nanoseconds since the unix epoch
* `PARTITION` is the kafka partition
* `UUID` the UUID for the storm worker

These files contain a set of packet data with headers on them in
sequence files.

## Configuration

The configuration file for the Flux topology is located at
`$METRON_HOME/config/etc/env/pcap.properties` and the possible options
are as follows:
* `spout.kafka.topic.pcap` : The kafka topic to listen to
* `kafka.zk` : The comma separated zookeeper quorum (i.e.  host:2181,host2:2181)
* `kafka.pcap.start` : One of `START`, `END`, `WHERE_I_LEFT_OFF` representing where to start listening on the queue.
* `kafka.pcap.numPackets` : The number of packets to keep in one file.
* `kafka.pcap.maxTimeMS` : The number of packets to keep in one file in terms of duration (in milliseconds).  For instance, you may only want to keep an hour's worth of packets in a given file.
* `kafka.pcap.ts_scheme` : One of `FROM_KEY` or `FROM_VALUE`.  You really only want `FROM_KEY` as that fits the current tooling.  `FROM_VALUE` assumes that fully headerized packets are coming in on the value, which is legacy.
* `kafka.pcap.out` : The directory in HDFS to store the packet capture data
* `kafka.pcap.ts_granularity` : The granularity of timing used in the timestamps.  One of `MILLISECONDS`, `MICROSECONDS`, or `NANOSECONDS` representing milliseconds, microseconds or nanoseconds since the unix epoch (respectively).

## Starting the Topology

To assist in starting the topology, a utility script which takes no
arguments has been created to make this very simple.  Simply, execute
`$METRON_HOME/bin/start_pcap_topology.sh`.

## Utilities

### Inspector Utility
In order to ensure that data can be read back out, a utility,
`$METRON_HOME/bin/pcap_inspector.sh` has been
created to read portions of the sequence files.

```
usage: PcapInspector
 -h,--help               Generate Help screen
 -i,--input <SEQ_FILE>   Input sequence file on HDFS
 -n,--num_packets <N>    Number of packets to dump
```

### Query Filter Utility
This tool exposes the two methods for filtering PCAP data via a command line tool:
- fixed
- query (Metron Stellar)

The tool is executed via ```${metron_home}/bin/pcap_query.sh [fixed|query]```

#### Usage
```
usage: Fixed filter options
 -bop,--base_output_path <arg>   Query result output path. Default is
                                 '/tmp'
 -bp,--base_path <arg>           Base PCAP data path. Default is
                                 '/apps/metron/pcap'
 -da,--ip_dst_addr <arg>         Destination IP address
 -df,--date_format <arg>         Date format to use for parsing start_time
                                 and end_time. Default is to use time in
                                 millis since the epoch.
 -dp,--ip_dst_port <arg>         Destination port
 -et,--end_time <arg>            Packet end time range. Default is current
                                 system time.
 -nr,--num_reducers <arg>        The number of reducers to use.  Default
                                 is 10.
 -h,--help                       Display help
 -ir,--include_reverse           Indicates if filter should check swapped
                                 src/dest addresses and IPs
 -p,--protocol <arg>             IP Protocol
 -sa,--ip_src_addr <arg>         Source IP address
 -sp,--ip_src_port <arg>         Source port
 -st,--start_time <arg>          (required) Packet start time range.
```

```
usage: Query filter options
 -bop,--base_output_path <arg>   Query result output path. Default is
                                 '/tmp'
 -bp,--base_path <arg>           Base PCAP data path. Default is
                                 '/apps/metron/pcap'
 -df,--date_format <arg>         Date format to use for parsing start_time
                                 and end_time. Default is to use time in
                                 millis since the epoch.
 -et,--end_time <arg>            Packet end time range. Default is current
                                 system time.
 -nr,--num_reducers <arg>        The number of reducers to use.  Default
                                 is 10.
 -h,--help                       Display help
 -q,--query <arg>                Query string to use as a filter
 -st,--start_time <arg>          (required) Packet start time range.
```


text:
.. _filters:

Filter expressions
==================

Many commands in :program:`mitmproxy` and :program:`mitmdump` take a filter expression.
Filter expressions consist of the following operators:

.. documentedlist::
    :header: "Expression" "Description"
    :listobject: libmproxy.filt.help

- Regexes are Python-style
- Regexes can be specified as quoted strings
- Header matching (~h, ~hq, ~hs) is against a string of the form "name: value".
- Strings with no operators are matched against the request URL.
- The default binary operator is &.

Examples
--------

URL containing "google.com":

.. code-block:: none

    google\.com

Requests whose body contains the string "test":

.. code-block:: none

    ~q ~b test

Anything but requests with a text/html content type:

.. code-block:: none

    !(~q & ~t "text/html")


text:
/* from the ui-component watson dev cloud */

.action {
background: #Eed2ff
}

.object {
background: #A7fae6
}

.subject {
  background: #E0e0e0;
}

textarea {
  color: inherit;
  font: inherit;
  margin: 0;
  overflow: auto;
}

.pill {
  padding: 0.25em 2em;
  color: #9855d4;
  font-weight: 500;
  background-color: transparent;
  border: 2px solid #9855d4;
  border-radius: 10rem;
  transition: 0.2s;
  display: inline-block;
}

.entity-viz {
  font-family: "Helvetica Neue", Helvetica, "Open Sans", Arial, "Lucida Grande", "Roboto", sans-serif;
  padding: 0.6em 1em;
  font-weight: 300;
  font-size: 1em;
  border: 1px dashed #464646;
  height: 20em;
  overflow: auto;
}

.base--textarea {
  font-family: "Helvetica Neue", Helvetica, "Open Sans", Arial, "Lucida Grande", "Roboto", sans-serif;
}

textarea, .base--textarea {
  width: 100%;
  padding: 0.6em 1em;
  font-size: 1em;
  font-weight: 300;
  border: 2px solid #464646;
  background-color: #fff;
  height: 20em;
}

textarea:focus, .base--textarea:focus {
  outline: 3px solid #9855d4;
  border-color: #9855d4;
}

textarea:disabled, .base--textarea:disabled {
  background-color: #c7c7c7;
}

.heading {
  font-family: "Helvetica Neue", Helvetica, "Open Sans", Arial, "Lucida Grande", "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: 200;
}

.heading-2 {
  font-family: "Helvetica Neue", Helvetica, "Open Sans", Arial, "Lucida Grande", "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

button, .base--button {
  padding: 0.25em 2em;
  color: #9855d4;
  font-weight: 500;
  background-color: transparent;
  border: 2px solid #9855d4;
  border-radius: 10rem;
  transition: 0.2s;
  display: inline-block;
}

button:hover, .base--button:hover, button:focus, .base--button:focus {
  background-color: rgba(38, 38, 38, 0);
  border-color: #bd92e3;
  color: #bd92e3;
}

button:active, .base--button:active {
  transition: 0s;
  transform: translateY(2px);
}

input[type="submit"], button[type="submit"], .base--button_submit {
  padding: 0.25em 2em;
  color: #9855d4;
  font-weight: 500;
  background-color: transparent;
  border: 2px solid #9855d4;
  border-radius: 10rem;
  transition: 0.2s;
  display: inline-block;
}

input[type="submit"]:hover, input[type="submit"]:focus, button[type="submit"]:hover, button[type="submit"]:focus, .base--button_submit:hover, .base--button_submit:focus {
  background-color: rgba(38, 38, 38, 0);
  border-color: #bd92e3;
  color: #bd92e3;
}

input[type="submit"]:active, button[type="submit"]:active, .base--button_submit:active {
  transition: 0s;
  transform: translateY(2px);
}

div::after, div::before {
content: '';
display: table;
clear: both; }

*, *:before, *:after {
box-sizing: inherit; }

/* loader size */
.loader-container {
display: inline-block;
width: 5.625rem;
height: 5.625rem;
}

.loader-container_small {
  width: 2.8125rem;
  height: 2.8125rem;
}

svg:not(:root) {
overflow: hidden; }

html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; }

.loader {
  height: 100%;
  width: 100%;
  transform: translateZ(0) rotate(300deg);
  transform-origin: 25px 25px;
  transform-origin: center center;
  animation: b 4s ease-out infinite;
}

.loader--path {
  stroke-dasharray: 125px;
  stroke-dashoffset: 9.7px;
  r: 20px;
  cx: 50px;
  cy: 50px;
  fill: transparent;
  stroke: #9855d4;
  stroke-width: 4.65116px;
  stroke-linecap: butt;
  transition: stroke-dashoffset 1s cubic-bezier(0.5, 0.08, 0, 1);
  animation: a 4s ease-out infinite;
}

@keyframes a {
0% {
  stroke-dashoffset: 9.7px; }
60% {
  stroke-dashoffset: 113.52px; }
to {
  stroke-dashoffset: 9.7px; } }

@keyframes b {
0% {
  transform: rotate(300deg); }
60% {
  transform: rotate(1320deg); }
to {
  transform: rotate(2100deg); } }

  .base--inline-label {
display: inline; }

input[type="radio"],
.base--radio {
display: none; }
input[type="radio"] + label,
.base--radio + label {
  position: relative; }
  input[type="radio"] + label::before,
  .base--radio + label::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 1rem;
    vertical-align: middle;
    border: 2px solid #aeaeae;
    border-radius: 50%;
    content: '';
    transform: translateY(-0.125em); }
input[type="radio"]:checked + label::before,
.base--radio:checked + label::before {
  background: radial-gradient(#323232 40%, transparent 40%); }