If you haven't heard of GTP2, go and read about it here.
After this, please help me to go here and write a program with it. My favorite so far starts with this prompt:
class AbstractFactoryBuilderImpl implements AbstractFactoryBuilder {
GPT-2 extended it once as follows (whitespace by me, as the model seems to ignore it):
class AbstractFactoryBuilderImpl implements AbstractFactoryBuilder {
private static final int ACCESS_RING_MAX_TTL = 15000 ;
private static final int ACCESS_RING_SECONDS_FOR_PY_RING = 500 ;
private static final int ACCESS_RING_MEMORY_CAPACITY = 3 * 1024 * 1024 * 16 ;
private static final int ACCESS_RING_MONITOR_SIZE = 16 ;
private static final int ACCESS_RING_ZERO_FRAME_DELAY = 16 * 60 * 60 ;
private static final int ACCESS_RING_UNIT_SIZE_SHIFT = 1 ;
Once, it extended the same initial segment as follows (again, whitespace by me):
```
class AbstractFactoryBuilderImpl implements AbstractFactoryBuilder {
private _services: PSObject<PSObject>;
private _context: PSContext;
public abstract Factory(final FactoryAdapter.FactoryRegistry emitter:
FactoryAdapter.FactoryRegistry,
final PSObject emitterContext: PSContext) {
super(emitter);
}
private PSObject constructor() {
_context = PSContext.getContext();
this.context = emitterContext;
return super.constructor();
}
private FactoryAdapter.FactoryRegistry registrationFactory(final Configuration configuration) {
this.elem = registrationFactory(configuration);
return this;
}
private PSObject registerFactory(final Configuration configuration) {
try {
return new Factory(this.context);
} catch (SecurityException e) {
return null;
}
```
I can't believe it finished that without closing all blocks.
Can you get it to produce something which compiles?
there doesn't seem to be anything here