OrderedSet is a set-like class that also keeps inserting order like list.
Here are some test results compared with ABC-based OrderedSet:
Boost::MultiIndex-based| My OrderedSet | ABC-based |
|---|
| jq '[.assets[] | { image: .asset.name, annotations: [.regions[] | { label: .tags[0], coordinates: .boundingBox | { x: .left | round, y: .top | round, width: .width | round, height: .height | round } }] }]' |
| #import <Foundation/Foundation.h> | |
| int main(int argc, char *argv[]) { | |
| @autoreleasepool { | |
| dispatch_semaphore_t lock = dispatch_semaphore_create(0); | |
| dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_global_queue(QOS_CLASS_DEFAULT, 0), ^{ | |
| NSLog(@"unlock"); | |
| dispatch_semaphore_signal(lock); | |
| }); |
| application: altcanvas-repo | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| handlers: | |
| - url: .* | |
| script: debrepo.py |
| --- | |
| Language: Cpp | |
| BasedOnStyle: LLVM | |
| AccessModifierOffset: -4 | |
| AlignTrailingComments: false | |
| ColumnLimit: 0 | |
| NamespaceIndentation: Inner | |
| ObjCSpaceAfterProperty: true | |
| IndentWidth: 4 | |
| BreakBeforeBraces: Stroustrup |
OrderedSet is a set-like class that also keeps inserting order like list.
Here are some test results compared with ABC-based OrderedSet:
Boost::MultiIndex-based| My OrderedSet | ABC-based |
|---|
iftgen.py5 Seconds of Summer.txt and 5 Seconds of Summer.ac3.txt will be generated5 Seconds of Summer.txt and combine them with cat *.ts > combined.ts5 Seconds of Summer.ac3.txt and combine them with cat *.ac3 > combined.ac3| # Copyright (C) 2008 Apple Inc. All Rights Reserved. | |
| # Copyright (C) 2013 Grey Lee. All Rights Reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # 1. Redistributions of source code must retain the above copyright notice, this | |
| # list of conditions and the following disclaimer. | |
| # 2. Redistributions in binary form must reproduce the above copyright notice, | |
| # this list of conditions and the following disclaimer in the documentation |
| #!/usr/bin/env python | |
| import datetime | |
| import glob | |
| import os | |
| import re | |
| import sys | |
| def main(base_path): | |
| msgid = set() |
| txt = u'\U0001f600' | |
| r = re.compile(u'[\uD800-\uDBFF][\uDC00-\uDFFF]') | |
| r.sub('', txt) |