idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,712,095
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, TemporalNow builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case timeZone:<NEW_LINE>return TemporalNowTimeZoneNodeGen.create(context, builtin, args().fixedArgs(0).createArgumentNodes(context));<NEW_LINE>case i...
1).createArgumentNodes(context));
429,705
void loadDotProject(EclipseProject project) throws ProjectImporterException {<NEW_LINE>// NOI18N<NEW_LINE>logger.finest("Loading .project for project: " + project.getDirectory().getAbsolutePath());<NEW_LINE>try {<NEW_LINE>Set<String> natures = new HashSet<String>();<NEW_LINE>List<Link> links <MASK><NEW_LINE>Set<Variabl...
= new ArrayList<Link>();
1,283,084
private Mono<PagedResponse<FirewallPolicyInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is ...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,258,271
public void deleteWorklogAndAutoAdjustRemainingEstimate(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemotePermissionException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (sup...
.QName("http://soap.rpc.jira.atlassian.com", "deleteWorklogAndAutoAdjustRemainingEstimate"));
1,144,361
final CreateVirtualServiceResult executeCreateVirtualService(CreateVirtualServiceRequest createVirtualServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVirtualServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateVirtualService");
978,625
public synchronized List<SingleAnalysis> analyze(Token token) {<NEW_LINE>SecondaryPos sPos = guessSecondaryPosType(token);<NEW_LINE>String word = token.getText();<NEW_LINE>// TODO: for now, for regular words and numbers etc, use the analyze method.<NEW_LINE>if (sPos == SecondaryPos.None) {<NEW_LINE>if (word.contains("?...
= !lexicon.containsItem(item);
638,640
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.msgstore.cache.links.LinkOwner#eventWatermarkBreached()<NEW_LINE>*/<NEW_LINE>public final void eventWatermarkBreached() throws SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "eventWate...
exit(this, tc, "eventWatermarkBreached");
370,714
final DeactivateEventSourceResult executeDeactivateEventSource(DeactivateEventSourceRequest deactivateEventSourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deactivateEventSourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
1,332,254
final DescribeClusterResult executeDescribeCluster(DescribeClusterRequest describeClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
false), new DescribeClusterResultJsonUnmarshaller());
724,579
void putObject(Object o) {<NEW_LINE>if (depth == 0) {<NEW_LINE>stack[0] = o;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Object container = stack[depth - 1];<NEW_LINE>if (container.getClass() == HashMap.class) {<NEW_LINE>if (keyPendingInsert != null) {<NEW_LINE>if (o instanceof ByteBuffer)<NEW_LINE>o <MASK><NEW_LINE>if (((Has...
= buf2ary((ByteBuffer) o);
1,212,377
public PointInTimeRecovery unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PointInTimeRecovery pointInTimeRecovery = new PointInTimeRecovery();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
1,641,043
protected void visitConfigChildren(ClientConfig to, ClientConfig from) {<NEW_LINE>if (to != null) {<NEW_LINE>Stack<Object> objs = getObjects();<NEW_LINE>// if servers is configured, then override it instead of merge<NEW_LINE>if (!from.getServers().isEmpty()) {<NEW_LINE>to<MASK><NEW_LINE>to.getServers().addAll(from.getS...
.getServers().clear();
279,564
private void prepareFramebuffer(int width, int height) {<NEW_LINE>GlUtil.checkGlError("start");<NEW_LINE>int[] values = new int[1];<NEW_LINE>// Create a texture object and bind it. This will be the color buffer.<NEW_LINE>GLES20.glGenTextures(1, values, 0);<NEW_LINE>GlUtil.checkGlError("glGenTextures");<NEW_LINE>// exp...
GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER);
904,449
final UpdateDocumentDefaultVersionResult executeUpdateDocumentDefaultVersion(UpdateDocumentDefaultVersionRequest updateDocumentDefaultVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDocumentDefaultVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDocumentDefaultVersion");
1,444,176
private void readProperties(ConversionContext context, MongoPersistentEntity<?> entity, PersistentPropertyAccessor<?> accessor, DocumentAccessor documentAccessor, MongoDbPropertyValueProvider valueProvider, SpELExpressionEvaluator evaluator, Predicate<MongoPersistentProperty> propertyFilter) {<NEW_LINE>DbRefResolverCal...
valueProviderToUse = valueProvider.withContext(propertyContext);
32,232
public InteractionResultHolder<ItemStack> use(Level world, Player player, InteractionHand hand) {<NEW_LINE>ItemStack <MASK><NEW_LINE>CompoundTag nbt = item.getOrCreateTag();<NEW_LINE>boolean mainHand = hand == InteractionHand.MAIN_HAND;<NEW_LINE>// Shift -> Open GUI<NEW_LINE>if (player.isShiftKeyDown()) {<NEW_LINE>if (...
item = player.getItemInHand(hand);
1,128,958
public Dumper dumpInner(Dumper d) {<NEW_LINE>MethodPrototype methodPrototype = getMethodPrototype();<NEW_LINE>List<Expression> args = getArgs();<NEW_LINE>if (methodPrototype.getName().equals(MiscConstants.INIT_METHOD)) {<NEW_LINE>d.print("super(");<NEW_LINE>} else {<NEW_LINE>// Let there now be a rant about how default...
, false).separator("(");
1,688,262
private static AtlasSymbolIo.SymbolData readLine(@NonNull String line, @Nullable AtlasSymbolIo.SymbolFilter filter) throws IOException {<NEW_LINE>// format is "<type> <class> <name> <value>"<NEW_LINE>// don't want to split on space as value could contain spaces.<NEW_LINE>int pos = line.indexOf(' ');<NEW_LINE>String typ...
substring(pos2 + 1, pos3);
870,520
private RelDataType sqlType(RelDataTypeFactory typeFactory, int dataType, int precision, int scale, String typeString) {<NEW_LINE>// Fall back to ANY if type is unknown<NEW_LINE>final SqlTypeName sqlTypeName = Util.first(SqlTypeName.getNameForJdbcType(dataType), SqlTypeName.ANY);<NEW_LINE>switch(sqlTypeName) {<NEW_LINE...
component = parseTypeString(typeFactory, remaining);
1,046,252
public void writeLongHex(long v) {<NEW_LINE>int pos = this.pos;<NEW_LINE>writeHexByte(buf, pos + 0, (byte) ((v >>> 56L) & 0xff));<NEW_LINE>writeHexByte(buf, pos + 2, (byte) ((v >>> 48L) & 0xff));<NEW_LINE>writeHexByte(buf, pos + 4, (byte) ((v >>> 40L) & 0xff));<NEW_LINE>writeHexByte(buf, pos + 6, (byte) ((v >>> 32L) & ...
>> 8L) & 0xff));
669,257
private static int computeLanguageIndex(Class<?> languageClass, int offset) {<NEW_LINE>List<AbstractClassLoaderSupplier<MASK><NEW_LINE>int staticIndex;<NEW_LINE>if (EngineAccessor.HOST.isHostLanguage(languageClass)) {<NEW_LINE>staticIndex = PolyglotEngineImpl.HOST_LANGUAGE_INDEX;<NEW_LINE>} else {<NEW_LINE>Map<String, ...
> loaders = EngineAccessor.locatorOrDefaultLoaders();
379,862
final AssociateHostedConnectionResult executeAssociateHostedConnection(AssociateHostedConnectionRequest associateHostedConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateHostedConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,752,089
private RunEvent populateRun(Optional<ParentRunFacet> parentRunFacet, RunEventBuilder runEventBuilder, JobBuilder jobBuilder, List<Object> nodes) {<NEW_LINE>OpenLineage openLineage = openLineageContext.getOpenLineage();<NEW_LINE><MASK><NEW_LINE>parentRunFacet.ifPresent(runFacetsBuilder::parent);<NEW_LINE>OpenLineage.Jo...
RunFacetsBuilder runFacetsBuilder = openLineage.newRunFacetsBuilder();
1,047,856
public static <T> ExprVectorProcessor<T> concat(Expr.VectorInputBindingInspector inspector, List<Expr> inputs) {<NEW_LINE>final ExprVectorProcessor<String[]>[] inputProcessors = new ExprVectorProcessor[inputs.size()];<NEW_LINE>for (int i = 0; i < inputs.size(); i++) {<NEW_LINE>inputProcessors[i] = CastToTypeVectorProce...
StringBuilder builder = new StringBuilder(first);
1,694,003
public DefaultLocalComponentMetadata copy(ComponentIdentifier componentIdentifier, Transformer<LocalComponentArtifactMetadata, LocalComponentArtifactMetadata> artifacts) {<NEW_LINE>DefaultLocalComponentMetadata copy = new DefaultLocalComponentMetadata(<MASK><NEW_LINE>for (DefaultLocalConfigurationMetadata configuration...
moduleVersionId, componentIdentifier, status, attributesSchema);
1,357,939
private static void createTF_RunState(Menu menu, Tag tag) {<NEW_LINE>final TagFeatureRunState tf_run_state = (TagFeatureRunState) tag;<NEW_LINE>int caps = tf_run_state.getRunStateCapabilities();<NEW_LINE>int[] op_set = { TagFeatureRunState.RSC_START, TagFeatureRunState.RSC_STOP, TagFeatureRunState.RSC_PAUSE, TagFeature...
Utils.setMenuItemImage(itemOp, "start");
1,332,675
protected Query doToQuery(SearchExecutionContext context) throws IOException {<NEW_LINE>if (context.allowExpensiveQueries() == false) {<NEW_LINE>throw new ElasticsearchException("[joining] queries cannot be executed when '" + ALLOW_EXPENSIVE_QUERIES.getKey() + "' is set to false.");<NEW_LINE>}<NEW_LINE>Joiner joiner = ...
NAME + "] no relation found for child [" + type + "]");
1,671,596
void addClientStats(final HttpChannel httpChannel) {<NEW_LINE>if (clientStatsEnabled == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (httpChannel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>httpChannelStats.putIfAbsent(httpChannel, new ClientStatsBuilder(System.identityHashCode(httpChannel), formatAddress(httpC...
(threadPool.absoluteTimeInMillis()));
1,852,586
public static List<DaemonStopEvent> uniqueRecentDaemonStopEvents(final List<DaemonStopEvent> stopEvents) {<NEW_LINE>final Set<Long> uniqueStoppedPids = new HashSet<Long<MASK><NEW_LINE>final List<DaemonStopEvent> recentStopEvents = new ArrayList<DaemonStopEvent>(stopEvents.size());<NEW_LINE>final List<DaemonStopEvent> s...
>(stopEvents.size());
1,768,623
public void readExternal(Element element) throws InvalidDataException {<NEW_LINE>super.readExternal(element);<NEW_LINE>ConfigurationState state = XmlSerializer.deserialize(element, ConfigurationState.class);<NEW_LINE>myServerName = null;<NEW_LINE>myDeploymentSource = null;<NEW_LINE>if (state != null) {<NEW_LINE>myServe...
?> type = findDeploymentSourceType(typeId);
1,076,978
private void printCryptoParams(Path path, FileSystem fs) {<NEW_LINE>byte[] noCryptoBytes = new NoFileEncrypter().getDecryptionParameters();<NEW_LINE>try (FSDataInputStream fsDis = fs.open(path)) {<NEW_LINE>long fileLength = fs.<MASK><NEW_LINE>fsDis.seek(fileLength - 16 - Utils.Version.size() - Long.BYTES);<NEW_LINE>lon...
getFileStatus(path).getLen();
193,592
protected void init() {<NEW_LINE>// Set the value separator<NEW_LINE>setValueSeparator();<NEW_LINE>// Set the field separator<NEW_LINE>setFieldSeparator();<NEW_LINE>// Set the authority separator<NEW_LINE>setAuthoritySeparator();<NEW_LINE>// Create the headings<NEW_LINE>headings = new ArrayList<>();<NEW_LINE>// Create ...
), toIgnoreString.trim());
1,115,756
private boolean executeWrites(List<Write> toExecute) {<NEW_LINE>log.debug("{}: Executing {} writes.", this.traceObjectId, toExecute.size());<NEW_LINE>for (int i = 0; i < toExecute.size(); i++) {<NEW_LINE>Write w = toExecute.get(i);<NEW_LINE>try {<NEW_LINE>// Record the beginning of a new attempt.<NEW_LINE><MASK><NEW_LI...
int attemptCount = w.beginAttempt();
1,194,531
private Set<ClassDescriptor> computeKnownSupertypes(ClassDescriptor classDescriptor) throws ClassNotFoundException {<NEW_LINE>LinkedList<ClassVertex> workList = new LinkedList<>();<NEW_LINE>ClassVertex startVertex = resolveClassVertex(classDescriptor);<NEW_LINE>workList.addLast(startVertex);<NEW_LINE>Set<ClassDescripto...
addLast(edge.getTarget());
629,063
public <D> FileAppender<D> build() {<NEW_LINE>Preconditions.checkNotNull(schema, "Schema is required");<NEW_LINE>for (Map.Entry<String, String> entry : config.entrySet()) {<NEW_LINE>this.conf.set(entry.getKey(), entry.getValue());<NEW_LINE>}<NEW_LINE>// for compatibility<NEW_LINE>if (conf.get(VECTOR_ROW_BATCH_SIZE) != ...
OVERWRITE_OUTPUT_FILE.setBoolean(conf, overwrite);
1,310,705
private void markSpacesWithinParentheses(Node outerNode, int leftStart, int rightStart, FormatToken.Kind leftMark, FormatToken.Kind rightMark) {<NEW_LINE>FormatToken leftParen = tokenUtils.getNextToken(leftStart, JsTokenId.BRACKET_LEFT_PAREN, getFinish(outerNode));<NEW_LINE>if (leftParen != null) {<NEW_LINE>FormatToken...
, FormatToken.forFormat(rightMark));
1,376,316
public void userGet(final Response.Listener<User> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = <MASK><NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>();<NEW_LINE>// header ...
"/user".replaceAll("\\{format\\}", "json");
1,013,563
final DeleteIntegrationResult executeDeleteIntegration(DeleteIntegrationRequest deleteIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,107,294
public void testFlowableRxInvoker_getIbmReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>...
ClientBuilder cb = ClientBuilder.newBuilder();
1,045,656
public void execute(SensorContext context) {<NEW_LINE>monitoring.startSensor(context, this);<NEW_LINE>this.context = context;<NEW_LINE>this.contextUtils = new ContextUtils(context);<NEW_LINE>environments = Arrays.asList(context.config()<MASK><NEW_LINE>globals = Arrays.asList(context.config().getStringArray(JavaScriptPl...
.getStringArray(JavaScriptPlugin.ENVIRONMENTS));
698,626
public static void main(String[] args) throws IOException {<NEW_LINE>// set-up the client<NEW_LINE>AmazonS3 s3client = AmazonS3ClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(credentials)).withRegion(Regions.US_EAST_2).build();<NEW_LINE>AWSS3Service awsService = new AWSS3Service(s3client);<NEW...
out.println("Bucket name is not available." + " Try again with a different Bucket name.");
987,814
public // public void pump(TiStream inputStream, KrollFunction handler, int maxChunkSize, boolean isAsync)<NEW_LINE>void pump(Object[] args) {<NEW_LINE>if (args.length != 3 && args.length != 4) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of arguments");<NEW_LINE>}<NEW_LINE>// stream<NEW_LINE>if (!(arg...
= (TiStream) args[0];
705,803
public final OrderByContext orderBy() throws RecognitionException {<NEW_LINE>OrderByContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 44, RULE_orderBy);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(306);<NEW_LINE>match(ORDER_BY);<NEW_LINE>setState(307);<...
OrderByContext(_ctx, getState());
1,481,070
final ListPermissionSetsResult executeListPermissionSets(ListPermissionSetsRequest listPermissionSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPermissionSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,758,587
public void writeBinaryTo(DataOutput out) throws IOException {<NEW_LINE>// TODO to avoid duplicate code, replace this with writeBinaryTo(out, List<Integer>()) or some such<NEW_LINE>// Section BYTEFEATURES<NEW_LINE>out.writeInt(numByteFeatures);<NEW_LINE>for (int i = 0; i < numByteFeatures; i++) {<NEW_LINE>if (featureWe...
.writeUTF(getFeatureName(i));
591,234
private static RubyNumeric f_addsub(ThreadContext context, RubyClass metaClass, RubyInteger anum, RubyInteger aden, RubyInteger bnum, RubyInteger bden, final boolean plus) {<NEW_LINE>RubyInteger newNum, newDen, g, a, b;<NEW_LINE>if (anum instanceof RubyFixnum && aden instanceof RubyFixnum && bnum instanceof RubyFixnum ...
RubyFixnum) aden).getLongValue();
1,346,810
protected void emitForeignCallOp(ForeignCallLinkage linkage, Value targetAddress, Value result, Value[] arguments, Value[] temps, LIRFrameState info) {<NEW_LINE>SubstrateForeignCallLinkage callTarget = (SubstrateForeignCallLinkage) linkage;<NEW_LINE>SharedMethod targetMethod = (SharedMethod) callTarget.getMethod();<NEW...
targetMethod), Value.ILLEGAL));
264,826
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.<MASK><NEW_LINE>if (player != null) {<NEW_LINE>int power = 0;<NEW_LINE>TargetControlledCreaturePermanent target = new TargetControlledCreaturePermanent(1, 1, new FilterControlledCreaturePermanent("creature to sacrifice"), true);<NEW_LINE>if...
getPlayer(source.getControllerId());
1,027,417
private static void loadInitialClientDrivers() {<NEW_LINE>Set<String> driverList = Sets.newHashSet();<NEW_LINE>// add default zookeeper based driver<NEW_LINE>driverList.add(ZK_CLIENT_DRIVER_CLASS);<NEW_LINE>// load drivers from system property<NEW_LINE>String driversStr = System.getProperty(BK_METADATA_CLIENT_DRIVERS_P...
).toLowerCase(), driverInfo);
950,752
protected void paintChildren() {<NEW_LINE>Rectangle bounds = getBounds();<NEW_LINE>if (image == null || image.getWidth() < bounds.width || image.getHeight() < bounds.height) {<NEW_LINE>clearCache();<NEW_LINE>image = new BufferedImage(bounds.width, bounds.height, BufferedImage.TYPE_INT_ARGB);<NEW_LINE>imageGraphics = im...
.x, -bounds.y);
783,397
//<NEW_LINE>@Override<NEW_LINE>public void addTo(ClassSource_Aggregate rootClassSource) throws ClassSource_Exception {<NEW_LINE>ClassSource_Factory classSourceFactory = rootClassSource.getFactory();<NEW_LINE>Util_InternMap internMap = rootClassSource.getInternMap();<NEW_LINE>String useName = getName();<NEW_LINE>ScanPol...
internMap, useName, dirPath, useEntryPrefix);
271,242
public int blockingRead(final int startingPosition, @NonNull final byte[] output, final int offset, final int maxLength) throws IOException {<NEW_LINE>if (maxLength == 0) {<NEW_LINE>throw new RuntimeException("Attempted to read zero bytes");<NEW_LINE>}<NEW_LINE>synchronized (mLock) {<NEW_LINE>while (notReadyForRead(sta...
startingPosition, output, offset, bytesToRead);
439,659
public void handleRangeSplitRequest(final RangeSplitRequest request, final RequestProcessClosure<BaseRequest, BaseResponse<?>> closure) {<NEW_LINE>final RangeSplitResponse response = new RangeSplitResponse();<NEW_LINE><MASK><NEW_LINE>response.setRegionEpoch(getRegionEpoch());<NEW_LINE>try {<NEW_LINE>// do not need to c...
response.setRegionId(getRegionId());
375,097
private void paintControl(Event e) {<NEW_LINE>Color oldForeground = e.gc.getForeground();<NEW_LINE>Color oldBackground = e.gc.getBackground();<NEW_LINE>Point size = getSize();<NEW_LINE>Rectangle r = new Rectangle(0, 0, size.y, size.y);<NEW_LINE>GC gc = e.gc;<NEW_LINE>gc.setBackground(getColor());<NEW_LINE>gc.fillRectan...
1, r.height - 1);
412,290
public void run() {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "starting ImageSaver thread...");<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "ImageSaver thread reading from queue, size: " + queue.size());<NEW_LINE>// if empty, take() blocks until non-empty<NEW_LINE>Request re...
Log.d(TAG, "request is raw");
518,853
private String buildAfterImageSQL(TableMeta tableMeta, TableRecords beforeImage) throws SQLException {<NEW_LINE>Set<String> updateColumnsSet = new HashSet<>();<NEW_LINE>for (SQLRecognizer recognizer : sqlRecognizers) {<NEW_LINE>sqlRecognizer = recognizer;<NEW_LINE>SQLUpdateRecognizer sqlUpdateRecognizer = (SQLUpdateRec...
(columnName, getDbType()));
489,393
public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {<NEW_LINE>String KEY = "GetQueryStringConfigurator";<NEW_LINE>String[] VALUES = { "ReadOnlyValue1", "ReadOnlyValue2" };<NEW_LINE>Map<String, List<String>> map = request.getHeaders();<NEW_LINE>System.out.println(...
().toArray()));
15,957
public void start() {<NEW_LINE>// TEST: SWIPEABLE CONTAINER ALSO SWIPES UNDERLYING CONTAINER AS WELL<NEW_LINE>Form hi = new Form("Welcome", new BorderLayout());<NEW_LINE>Container list = new Container(BoxLayout.y());<NEW_LINE>for (int i = 0; i < 20; i++) {<NEW_LINE>SwipeableContainer swip = new SwipeableContainer(null,...
add(BorderLayout.CENTER, list);
1,740,052
private void doRenderWearable(EntityRobot entity, TextureManager textureManager, ItemStack wearable) {<NEW_LINE>if (wearable.getItem() instanceof IRobotOverlayItem) {<NEW_LINE>((IRobotOverlayItem) wearable.getItem()).renderRobotOverlay(wearable, textureManager);<NEW_LINE>} else if (wearable.getItem() instanceof ItemArm...
GL11.glPushAttrib(GL11.GL_COLOR_BUFFER_BIT);
1,428,765
private void sendCloseSecureChannelRequest(ChannelHandlerContext ctx, CloseSecureChannelRequest request) {<NEW_LINE>serializationQueue.encode((binaryEncoder, chunkEncoder) -> {<NEW_LINE>ByteBuf messageBuffer = BufferUtil.pooledBuffer();<NEW_LINE>try {<NEW_LINE>binaryEncoder.setBuffer(messageBuffer);<NEW_LINE>binaryEnco...
), messageBuffer, MessageType.CloseSecureChannel);
500,976
public void run(@Nonnull final ProgressIndicator indicator) {<NEW_LINE>final int size = zipFile.size();<NEW_LINE>final int[] counter = new int[] { 0 };<NEW_LINE>class MyFilter implements FilenameFilter {<NEW_LINE><NEW_LINE>private final Set<File> myImportantDirs = ContainerUtil.newHashSet(outputDir, new File(outputDir,...
outputDir, new MyFilter(false));
791,109
static long doGetLen(Path path) {<NEW_LINE>HttpURLConnection headerConnection = null;<NEW_LINE>try {<NEW_LINE>headerConnection = (HttpURLConnection) path.toUri().toURL().openConnection();<NEW_LINE>headerConnection.setConnectTimeout(5000);<NEW_LINE>headerConnection.setRequestMethod("HEAD");<NEW_LINE>headerConnection.con...
acceptRanges = headerConnection.getHeaderField("Accept-Ranges");
103,431
public static GetIndustryInfoLineageListResponse unmarshall(GetIndustryInfoLineageListResponse getIndustryInfoLineageListResponse, UnmarshallerContext context) {<NEW_LINE>getIndustryInfoLineageListResponse.setRequestId(context.stringValue("GetIndustryInfoLineageListResponse.RequestId"));<NEW_LINE>List<IndustryInfoListI...
("GetIndustryInfoLineageListResponse.IndustryInfoList[" + i + "].Level"));
347,994
private Snap findByStopId(GHStationLocation station, int indexForErrorMessage) {<NEW_LINE>for (Map.Entry<String, GTFSFeed> entry : gtfsStorage.getGtfsFeeds().entrySet()) {<NEW_LINE>final Integer node = gtfsStorage.getStationNodes().get(new GtfsStorage.FeedIdWithStopId(entry.getKey<MASK><NEW_LINE>if (node != null) {<NEW...
(), station.stop_id));
658,675
private void prepareNotes(StringBounder stringBounder, Notes notes, ParticipantRange range) {<NEW_LINE>final NotesBoxes notesBoxes = new NotesBoxes(freeY2.getFreeY(range));<NEW_LINE>for (Note n : notes) {<NEW_LINE>final NoteBox noteBox = createNoteBox(stringBounder, n, range);<NEW_LINE>final ParticipantBox p1 = drawabl...
notesBoxes.ensureConstraints(stringBounder, constraintSet);
1,537,441
public <T> T clone(T object) {<NEW_LINE>if (object instanceof JsonNode) {<NEW_LINE>return (T) ((JsonNode) object).deepCopy();<NEW_LINE>}<NEW_LINE>if (object instanceof Collection) {<NEW_LINE>Object firstElement <MASK><NEW_LINE>if (firstElement != null && !(firstElement instanceof Serializable)) {<NEW_LINE>JavaType type...
= findFirstNonNullElement((Collection) object);
1,537,363
public void onOpen(CoreSession coreSession, Callback callback) {<NEW_LINE>try {<NEW_LINE>customizer.customize(coreSession);<NEW_LINE>this.coreSession = coreSession;<NEW_LINE>session = new WebSocketSession(container, coreSession, this);<NEW_LINE>if (!session.isOpen())<NEW_LINE>throw new IllegalStateException("Session is...
-> listener.onWebSocketSessionOpened(session));
1,124,427
public void eventDispatched(AWTEvent event) {<NEW_LINE>if (!isShown()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MouseEvent mouseEvent = (MouseEvent) event;<NEW_LINE>if (mouseEvent.getClickCount() == 0 && !(event instanceof MouseWheelEvent)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int id = mouseEvent.getID();<NEW_LIN...
getInstance().getChildPopups(myInplaceEditorComponent);
790,541
public StackTraceElement apply(Map<String, Object> frameInfo) {<NEW_LINE>if (frameInfo == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Optional<Number> maybeLineNumberInteger = Optional.empty();<NEW_LINE>final Object lineNumberObject = frameInfo.get(LINE_NUMBER);<NEW_LINE>if (lineNumberObject instanceof Number) {<...
className, methodName, fileName, lineNumber);
477,235
protected void replayAddEvents(DebuggerModelListener listener, SpiTargetObject object, Set<SpiTargetObject> visited) {<NEW_LINE>if (!visited.add(object)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, ?> cbAttributes = object.getCallbackAttributes();<NEW_LINE>if (cbAttributes != null) {<NEW_LINE>for (Object val : c...
, (SpiTargetObject) elem, visited);
177,787
private void rotateLocalSessionKeys() throws OtrException {<NEW_LINE>if (Debug.DEBUG_ENABLED)<NEW_LINE>Log.d(ImApp.LOG_TAG, "Rotating local keys.");<NEW_LINE>SessionKeys sess1 = getSessionKeysByIndex(SessionKeys.Previous, SessionKeys.Current);<NEW_LINE>if (sess1.getIsUsedReceivingMACKey()) {<NEW_LINE>if (Debug.DEBUG_EN...
), sess3.getLocalKeyID());
865,629
public static int compareSemanticVersions(String v1, String v2) throws IllegalArgumentException {<NEW_LINE>if (StringUtils.isAnyEmpty(v1, v2)) {<NEW_LINE>throw new IllegalArgumentException(String.format<MASK><NEW_LINE>}<NEW_LINE>if (!isSemanticVersion(v1)) {<NEW_LINE>throw new IllegalArgumentException(String.format("In...
("Invalid version comparision with versions %s, %s", v1, v2));
1,676,112
private void fetchRequests(RequestRegistrationCallback<GetOperation> requestRegistrationCallback) {<NEW_LINE>Iterator<ReplicaId> replicaIterator = chunkOperationTracker.getReplicaIterator();<NEW_LINE>while (replicaIterator.hasNext()) {<NEW_LINE>ReplicaId replicaId = replicaIterator.next();<NEW_LINE>replicaIterator.remo...
getRequest, replicaId, prepareQuotaCharger());
1,140,187
public final boolean reverseConversions(boolean executeInReverseOrder, Object[] row, NormalizedString[] headers, int[] indexesToWrite) {<NEW_LINE>boolean keepRow = true;<NEW_LINE>boolean[] convertedFlags = conversionsByType != null ? new <MASK><NEW_LINE>if (conversions != null) {<NEW_LINE>if (!conversionsInitialized) {...
boolean[row.length] : null;
1,290,848
public JsonNode transformResponse(JsonNode response, MethodConfig methodConfig) {<NEW_LINE>if (response == null) {<NEW_LINE>throw new AppsmithPluginException(AppsmithPluginError.PLUGIN_ERROR, "Missing a valid response object.");<NEW_LINE>}<NEW_LINE>ArrayNode valueRanges = (ArrayNode) response.get("valueRanges");<NEW_LI...
(1).get("values");
1,704,804
public void marshall(PhoneNumberInformation phoneNumberInformation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (phoneNumberInformation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(phoneNumberInforma...
phoneNumberInformation.getPhoneNumberId(), PHONENUMBERID_BINDING);
478,390
protected void initialize(String role, Offer offer, TradeModel tradeModel, PrivateNotificationManager privateNotificationManager, boolean useDevPrivilegeKeys) {<NEW_LINE>boolean hasTraded = numTrades > 0;<NEW_LINE>Tuple5<Long, Long, String, String, String> peersAccount = getPeersAccountAge(tradeModel, offer);<NEW_LINE>...
, tradeModel, accountAge, signAge));
635,989
public InstanceOfferingInventory createInstanceOffering(InstanceOfferingVO vo, APICreateInstanceOfferingMsg msg) {<NEW_LINE>return new SQLBatchWithReturn<VirtualRouterOfferingInventory>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected VirtualRouterOfferingInventory scripts() {<NEW_LINE>VirtualRouterOfferingVO rvo = ...
.valueOf(reload(rvo));
1,246,381
public WritableMap toJSObject(Device value) {<NEW_LINE>WritableMap result = Arguments.createMap();<NEW_LINE>result.putString(Metadata.ID, value.getId());<NEW_LINE>result.putString(Metadata.NAME, value.getName());<NEW_LINE>if (value.getRssi() != null) {<NEW_LINE>result.putInt(Metadata.RSSI, value.getRssi());<NEW_LINE>} ...
result.putNull(Metadata.SERVICE_UUIDS);
293,549
public Map<String, Object> obtainRequestToken(SocialLoginConfig config, String callbackUrl) {<NEW_LINE>String endpointUrl = config.getRequestTokenUrl();<NEW_LINE>try {<NEW_LINE>SocialUtil.validateEndpointWithQuery(endpointUrl);<NEW_LINE>} catch (SocialLoginException e) {<NEW_LINE>return createErrorResponse("TWITTER_BAD...
, e.getLocalizedMessage() });
1,851,596
private void updateButtons() {<NEW_LINE>LogicCircuitOperator operator = getSelectedOperator();<NEW_LINE>if (operator != null) {<NEW_LINE>int inputCount = operator.getArgumentCount();<NEW_LINE>int inputStart = 130 - (inputCount * 10 - 1);<NEW_LINE>if (inputCount < this.inputButtons.size()) {<NEW_LINE>Iterator<GuiButtonS...
GuiButtonState btn = it.next();
438,602
public QueryNodeWithBindingSet optimize(final AST2BOpContext context, final QueryNodeWithBindingSet input) {<NEW_LINE>final IQueryNode queryNode = input.getQueryNode();<NEW_LINE>final IBindingSet[] bindingSets = input.getBindingSets();<NEW_LINE>if (!(queryNode instanceof QueryRoot))<NEW_LINE>return new QueryNodeWithBin...
sa, exogenousVars, queryRoot, whereClause);
1,799,033
private static Varnode expandVarnode(Varnode varnode, int sizeIncrease, VariableStorage curStorage, int newSize, DataType dataType, boolean alignStack, Function function) throws InvalidInputException {<NEW_LINE>Address addr = varnode.getAddress();<NEW_LINE>if (addr.isStackAddress()) {<NEW_LINE>return resizeStackVarnode...
getProgram().getRegister(varnode);
1,405,862
public boolean isResponseAvailable(int timeout) throws IOException {<NEW_LINE>LOG.trace("enter HttpConnection.isResponseAvailable(int)");<NEW_LINE>if (!this.isOpen) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean result = false;<NEW_LINE>if (this.inputStream.available() > 0) {<NEW_LINE>result = true;<NEW_LINE>} el...
debug("An error ocurred while resetting soTimeout, we will assume that" + " no response is available.", ioe);
461,439
public void check(Configuration configuration) throws ConfigurationException {<NEW_LINE>for (ConfigurationField field : fields.values()) {<NEW_LINE>if (field.isOptional().equals(ConfigurationField.Optional.NOT_OPTIONAL)) {<NEW_LINE>final String type = field.getFieldType();<NEW_LINE>final String fieldName = field.getNam...
ConfigurationException("Mandatory configuration field \"" + fieldName + "\" is missing or has the wrong data type");
890,979
private static OperandTreeNode createNewOperand(final INaviModule module, final ICodeNodeProvider dataset) throws ParserException {<NEW_LINE>final int expressionId = dataset.getExpressionTreeId();<NEW_LINE>final int type = dataset.getExpressionTreeType();<NEW_LINE>final String value = getValue(dataset, type);<NEW_LINE>...
Integer parentId = dataset.getParentId();
1,497,447
static void stats(List<String> paragraphs) {<NEW_LINE>int paragraphCounter = 0;<NEW_LINE>int sentenceCounter = 0;<NEW_LINE>int tokenCounter = 0;<NEW_LINE>int tokenNoPunctCounter = 0;<NEW_LINE>int tokenWordCounter = 0;<NEW_LINE>for (String paragraph : paragraphs) {<NEW_LINE>List<String> sentences = TurkishSentenceExtrac...
out.println("tokenCounter = " + tokenCounter);
377,520
public static Object callMethodN(Object target, String methodN, Object[] params, Class<?>[] typeParams) throws Exception {<NEW_LINE>Method m = null;<NEW_LINE>m = findMethod(target.getClass(), methodN, typeParams);<NEW_LINE>if (m == null) {<NEW_LINE>debug("Can't find method " + methodN + " in " + target + " CLASS " + ta...
m.invoke(target, params);
1,449,832
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> TaskSchedule task(String id, Task13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> code, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13) {<NEW_LINE>checkTaskName(id);<NEW...
arg10, arg11, arg12, arg13);
619,474
public void handleLineComment(int commentIndex) {<NEW_LINE>Token commentToken = this.tm.get(commentIndex);<NEW_LINE>boolean isOnFirstColumn = handleWhitespaceAround(commentIndex);<NEW_LINE>if (handleFormatOnOffTags(commentToken))<NEW_LINE>return;<NEW_LINE>if (isOnFirstColumn) {<NEW_LINE>if (this.options.comment_format_...
commentToken.setWrapPolicy(WrapPolicy.FORCE_FIRST_COLUMN);
100,587
public void applyCommits(ProcessorContext ctx) throws MemoryAccessException {<NEW_LINE>if (contextcommit.size() == 0)<NEW_LINE>return;<NEW_LINE>ContextCache contextCache = prototype.getContextCache();<NEW_LINE>ParserWalker walker = new ParserWalker(this);<NEW_LINE>walker.baseState();<NEW_LINE>for (int i = 0; i < contex...
set.sym).getIndex();
732,698
protected void drawFiducial(Graphics2D gFrame, int cameraWidth, int cameraHeight, Location uppDefault, Location upp, Location fiducial) {<NEW_LINE>// Coordinates<NEW_LINE>double xc = (cameraWidth / 2.0) + fiducial.getX() / upp.getX();<NEW_LINE>double yc = (cameraHeight / 2.0) - fiducial.getY() / upp.getY();<NEW_LINE>do...
= 1.0 / upp.getX();
101,862
protected void removeImage() {<NEW_LINE>BoofSwingUtil.invokeNowOrLater(() -> {<NEW_LINE>int selected = imageListPanel.imageList.getSelectedIndex();<NEW_LINE>if (selected < 0)<NEW_LINE>return;<NEW_LINE>// If the image isn't "used" don't remove it<NEW_LINE>if (!imageListPanel.imageSuccess.get(selected))<NEW_LINE>return;<...
image).points.clear();
925,796
public static GetMediaDNAResultResponse unmarshall(GetMediaDNAResultResponse getMediaDNAResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMediaDNAResultResponse.setRequestId(_ctx.stringValue("GetMediaDNAResultResponse.RequestId"));<NEW_LINE>DNAResult dNAResult = new DNAResult();<NEW_LINE>List<VideoDNAItem> videoD...
+ "].Detail[" + j + "].Input.Duration"));
463,823
private static void onCreate(@NonNull Context context, @NonNull NotificationManager notificationManager) {<NEW_LINE>NotificationChannelGroup messagesGroup = new NotificationChannelGroup(CATEGORY_MESSAGES, context.getResources().getString(R.string.NotificationChannel_group_chats));<NEW_LINE>notificationManager.createNot...
getMessageNotificationSound(), getRingtoneAudioAttributes());
838,624
private boolean orchestrateDeleteVMSnapshot(Long vmSnapshotId) {<NEW_LINE>Account caller = getCaller();<NEW_LINE>VMSnapshotVO vmSnapshot = _vmSnapshotDao.findById(vmSnapshotId);<NEW_LINE>if (vmSnapshot == null) {<NEW_LINE>throw new InvalidParameterValueException("unable to find the vm snapshot with id " + vmSnapshotId)...
remove(vmSnapshot.getId());
786,588
protected Result check() {<NEW_LINE>try {<NEW_LINE>DataStore dataStore = dataStoreFactory.createInternal();<NEW_LINE>Future<ResultSet> rs = dataStore.queryBuilder().select().column("cluster_name").column("schema_version").from("system", "local").build().execute();<NEW_LINE>Row row = rs.get().one();<NEW_LINE>String clus...
Result.unhealthy("Unable to access DataStore: " + e);
1,265,738
public static void convertBundle(File bundleDir, String outputBundlePath) throws IOException {<NEW_LINE>Map<String, String> uuidToName = new HashMap<String, String>();<NEW_LINE>// Run SnippetConverter on snippets sub dir<NEW_LINE>File snippetsDir <MASK><NEW_LINE>SnippetConverter.convert(snippetsDir, outputBundlePath + ...
= new File(bundleDir, "Snippets");
663,429
private void walkJNICallInFrame(WalkState walkState) throws CorruptDataException {<NEW_LINE>J9SFJNICallInFramePointer callInFrame;<NEW_LINE>walkState.bp = walkState.arg0EA;<NEW_LINE>callInFrame = J9SFJNICallInFramePointer.cast(walkState.bp.subOffset(J9SFJNICallInFrame.SIZEOF).addOffset(UDATA.SIZEOF));<NEW_LINE>walkStat...
callInReturnPC().getHexAddress());
1,820,144
public com.amazonaws.services.chimesdkmessaging.model.ThrottledClientException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.chimesdkmessaging.model.ThrottledClientException throttledClientException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDept...
chimesdkmessaging.model.ThrottledClientException(null);