idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
317,505
public int numDecodings(String s) {<NEW_LINE>if (s.length() == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int[] dp = new int[s.length() + 1];<NEW_LINE>dp[0] = 1;<NEW_LINE>dp[1] = s.charAt(0) == '0' ? 0 : 1;<NEW_LINE>for (int i = 2; i <= s.length(); i++) {<NEW_LINE>int first = Integer.valueOf(s.substring(i - 1, i));<NE...
] += dp[i - 2];
729,042
public void closeTag(String elementName) {<NEW_LINE>int n = openElementStack.size();<NEW_LINE>for (int i = n; i > 0; ) {<NEW_LINE>i -= 2;<NEW_LINE>String openElementName = openElementStack.get(i);<NEW_LINE>if (elementName.equals(openElementName)) {<NEW_LINE>for (int j = n - 1; j > i; j -= 2) {<NEW_LINE>String tagNameTo...
(allowedTextContainers.contains(adjustedName));
1,506,499
private void putTransform(Request request, ActionListener<AcknowledgedResponse> listener) {<NEW_LINE>final TransformConfig config = request.getConfig();<NEW_LINE>// create the function for validation<NEW_LINE>final Function function = FunctionFactory.create(config);<NEW_LINE>// <2> Return to the listener<NEW_LINE>Actio...
config.getId(), "Created transform.");
745,917
protected void removeNode(final NodeType node) {<NEW_LINE>if (node.getNode().getGraph() == null) {<NEW_LINE>m_graph.reInsertNode(node.getNode());<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final Node n = node.getNode();<NEW_LINE>if (manager.isNormalNode(n)) {<NEW_LINE>m_graph.removeNode(node.getNode());<NEW_LINE>} else ...
HierarchyManager manager = m_graph.getHierarchyManager();
1,739,419
public ValueMatcher makeMatcher(final ColumnSelectorFactory factory) {<NEW_LINE>final ColumnValueSelector<ExprEval> selector = ExpressionSelectors.makeExprEvalSelector(<MASK><NEW_LINE>return new ValueMatcher() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean matches() {<NEW_LINE>final ExprEval eval = selector.get...
factory, expr.get());
1,045,283
protected <T> T valueForMember(final String name, final Member injectionTarget, final Class<T> injectionType, final Channel channel) throws BeansException {<NEW_LINE>if (Channel.class.equals(injectionType)) {<NEW_LINE>return injectionType.cast(channel);<NEW_LINE>} else if (AbstractStub.class.isAssignableFrom(injectionT...
stubTransformer.transform(name, stub);
568,574
public void loadPerfectArticles() {<NEW_LINE>final <MASK><NEW_LINE>final ArticleRepository articleRepository = beanManager.getReference(ArticleRepository.class);<NEW_LINE>final ArticleQueryService articleQueryService = beanManager.getReference(ArticleQueryService.class);<NEW_LINE>Stopwatchs.start("Query perfect article...
BeanManager beanManager = BeanManager.getInstance();
1,122,169
private boolean shouldRun(TestDescriptor descriptor, boolean checkingParent) {<NEW_LINE>Optional<TestSource> source = descriptor.getSource();<NEW_LINE>if (!source.isPresent()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (source.get() instanceof MethodSource) {<NEW_LINE>MethodSource methodSource = (MethodSource) sour...
className, descriptor.getLegacyReportingName());
1,415,600
public ProcessContext<CartOperationRequest> execute(ProcessContext<CartOperationRequest> context) throws Exception {<NEW_LINE>CartOperationRequest request = context.getSeedData();<NEW_LINE>OrderItemRequestDTO orderItemRequestDTO = request.getItemRequest();<NEW_LINE>if (orderItemRequestDTO instanceof NonDiscreteOrderIte...
), entry.getValue());
532,020
private void runWithSequentialProfiler(Policy policy) {<NEW_LINE>final Timer timer = (TIME_IN_NANOSECONDS) ? new <MASK><NEW_LINE>int numDevices = getTornadoRuntime().getDriver(DEFAULT_DRIVER_INDEX).getDeviceCount();<NEW_LINE>final int totalTornadoDevices = numDevices + 1;<NEW_LINE>long[] totalTimers = new long[totalTor...
NanoSecTimer() : new MilliSecTimer();
1,767,156
private void startProcess(int segmentIndex) throws IOException {<NEW_LINE>String[] size = StringUtils.split(this.sessionKey.getSize(), "x");<NEW_LINE>VideoTranscodingSettings vts = new VideoTranscodingSettings(Integer.valueOf(size[0]), Integer.valueOf(size[1]), segmentIndex * this.sessionKey.getDuration(), this.session...
, true)).start();
645,121
public void putValue(CellReference cellReference, CacheValue value) {<NEW_LINE>values.with(map -> map.put(cellReference, CacheEntry.unlocked(value), (oldValue, newValue) -> {<NEW_LINE>Preconditions.checkState(oldValue.status().isUnlocked() && oldValue.equals(newValue), "Trying to cache a value which is either locked or...
().size()));
883,489
// safe because it's a constructor of the typeLiteral<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>static <T> Constructor<? extends T> findThrowingConstructor(TypeLiteral<? extends T> typeLiteral, Binder binder) {<NEW_LINE>Class<?> rawType = typeLiteral.getRawType();<NEW_LINE>Errors errors = new Errors(rawType);<NE...
Constructor<? extends T>) cxtor;
54,650
public void deserialize(Message<RowData> message, Collector<RowData> collector) throws IOException {<NEW_LINE>// shortcut in case no output projection is required,<NEW_LINE>// also not for a cartesian product with the keys<NEW_LINE>if (keyDeserialization == null && !hasMetadata) {<NEW_LINE>valueDeserialization.deserial...
message.getData(), collector);
919,812
private boolean verifyGoogDefine(Node callNode) {<NEW_LINE>this.knownGoogDefineCalls.add(callNode);<NEW_LINE>Node parent = callNode.getParent();<NEW_LINE>Node methodName = callNode.getFirstChild();<NEW_LINE>Node args = callNode.getSecondChild();<NEW_LINE>// Calls to goog.define must be in the global hoist scope after m...
.getParent(), DEFINE_CALL_WITHOUT_ASSIGNMENT));
320,615
// Overridden: different delays for filtered cards.<NEW_LINE>@NonNull<NEW_LINE>protected JSONObject _lapseConf(@NonNull Card card) {<NEW_LINE>DeckConfig conf = _cardConf(card);<NEW_LINE>if (!card.isInDynamicDeck()) {<NEW_LINE>return conf.getJSONObject("lapse");<NEW_LINE>}<NEW_LINE>// dynamic deck; override some attribu...
"lapse").getJSONArray("delays"));
569,778
private List<Map<String, Integer>> crossedPoints(final Zone zone, final Token tokenInContext, final String pointsString, final List<Map<String, Integer>> pathPoints) {<NEW_LINE>List<Map<String, Integer>> returnPoints = new ArrayList<Map<String, Integer>>();<NEW_LINE>List<Map<String, Integer>> targetPoints = convertJSON...
Grid grid = zone.getGrid();
1,245,859
public List<HotPictureInfo> listForPage(String application, String infoId, String title, Integer first, Integer selectTotal) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer().get(HotPictureInfo.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<HotPictureInf...
, "%" + title + "%"));
1,600,701
public void replaceMapLinksForDeletedSourceNode(MapLinks mapLinks, final NodeModel deletionRoot, NodeModel node) {<NEW_LINE>final ListIterator<NodeLinkModel<MASK><NEW_LINE>LINKS: while (linkIterator.hasNext()) {<NEW_LINE>NodeLinkModel link = linkIterator.next();<NEW_LINE>final NodeModel linkSource = link.getSource();<N...
> linkIterator = links.listIterator();
1,086,831
protected Property convertSimpleRuleToJson(MVELToDataWrapperTranslator translator, ObjectMapper mapper, SimpleRule simpleRule, String jsonProp, String fieldService) {<NEW_LINE>String matchRule = simpleRule.getMatchRule();<NEW_LINE>Entity[] matchCriteria = new Entity[1];<NEW_LINE>Property[] properties = new Property[3];...
id = getRuleId(simpleRule, em);
161,235
final PutInsightSelectorsResult executePutInsightSelectors(PutInsightSelectorsRequest putInsightSelectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putInsightSelectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutInsightSelectors");
465,154
void paintDragFeedback(Graphics2D g) {<NEW_LINE>Stroke oldStroke = g.getStroke();<NEW_LINE>g.setStroke(dashedStroke1);<NEW_LINE>Color oldColor = g.getColor();<NEW_LINE>g.setColor(FormLoaderSettings.getInstance().getSelectionBorderColor());<NEW_LINE>List<LayoutConstraints> constraints = new ArrayList<LayoutConstraints>(...
targetContainerDel, 0, 0, handleLayer);
865,190
private static void try3TableJoin(RegressionEnvironment env) {<NEW_LINE>env.sendEventBean(new SupportBean_S0(1, "E1"));<NEW_LINE>env.sendEventBean(new SupportBean_S1(2, "E1"));<NEW_LINE>env.sendEventBean(new SupportBean_S2(3, "E1"));<NEW_LINE>env.assertListenerNotInvoked("s0");<NEW_LINE>env.sendEventBean(new SupportBea...
new SupportBean_S0(11, "E4"));
1,835,219
public List<SocketObjectData> retrieveSocket(int objHash, int serverId) {<NEW_LINE>List<SocketObjectData> list = new ArrayList<>();<NEW_LINE>Server server = ServerManager.getInstance().getServerIfNullDefault(serverId);<NEW_LINE>try (TcpProxy tcp = TcpProxy.getTcpProxy(server)) {<NEW_LINE>MapPack param = new MapPack();<...
count = countLv.getInt(i);
879,249
public Pack read(DataInputX din) throws IOException {<NEW_LINE>this.gxid = din.readLong();<NEW_LINE>this.txid = din.readLong();<NEW_LINE>this.caller = din.readLong();<NEW_LINE>this.timestamp = din.readLong();<NEW_LINE>this.elapsed = (int) din.readDecimal();<NEW_LINE>this.spanType = din.readByte();<NEW_LINE>this.name = ...
(int) din.readDecimal();
621,737
public void testPostGetCollectionGenericEntityAndType(Map<String, String> param, StringBuilder ret) throws Exception {<NEW_LINE>String endpointAddress = getAddress("bookstore/collections");<NEW_LINE>WebClient wc = WebClient.create(endpointAddress);<NEW_LINE>wc.accept("application/xml").type("application/xml");<NEW_LINE...
(collectionEntity, "application/xml"), callback);
284,852
private List<ParameterObject> createPathParameters(Context<T> context, OperationShape operation) {<NEW_LINE>List<ParameterObject> result = new ArrayList<>();<NEW_LINE>HttpBindingIndex bindingIndex = HttpBindingIndex.of(context.getModel());<NEW_LINE>HttpTrait httpTrait = operation.expectTrait(HttpTrait.class);<NEW_LINE>...
(schema).build());
301,073
private void bakeImageToMetadata(ImageInventory img) {<NEW_LINE>setAllImagesSystemTags(Collections.singletonList(img));<NEW_LINE>SimpleQuery<CephBackupStorageVO> query = dbf.createQuery(CephBackupStorageVO.class);<NEW_LINE>query.add(CephBackupStorageVO_.uuid, SimpleQuery.Op.EQ, getBackupStorageUuidFromImageInventory(im...
msg.setOperation(CephConstants.AFTER_ADD_IMAGE);
229,645
protected void loadExtension() {<NEW_LINE>// @formatter:off<NEW_LINE>EclipseUtil.processConfigurationElements(getPluginId(), getExtensionPointId(), new IConfigurationElementProcessor() {<NEW_LINE><NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public void processElement(IConfigurationElement element) {<NEW_LINE>try {...
getExtensionPointId(), getPluginId());
986,961
private void updateFunctionDef(long sourceFunctionDefDtID, FunctionDefinition sourceFunctionDefDt, FunctionDefinition destDt, Map<Long, DataType> resolvedDataTypes) {<NEW_LINE>// NOTE: it is possible for the same function def to be updated more than once;<NEW_LINE>// therefor we must cleanup any previous obsolete fixup...
long oldLastChangeTimeInSourceArchive = sourceFunctionDefDt.getLastChangeTimeInSourceArchive();
269,255
// ////////////////////////////////////////////////////////////<NEW_LINE>// QUADRATIC BEZIER VERTICES<NEW_LINE>// this method is almost wholesale copied from PGraphics.quadraticVertex()<NEW_LINE>// TODO: de-duplicate this code if there is a convenient way to do so<NEW_LINE>@Override<NEW_LINE>public void quadraticVertex...
shapeVerts[vertCount - 1].x;
249,986
public static void makePatchable(@Nullable /*@ApkPath*/<NEW_LINE>File apk) throws IOException {<NEW_LINE>ResourceTableChunk resourceTableChunk = providesResourceTableChunk(apk);<NEW_LINE>PackageChunk packageChunk = Iterables.getOnlyElement(resourceTableChunk.getPackages());<NEW_LINE>Collection<TypeChunk> typeChunks = p...
put(totalEntryCount + i, lastEntry);
589,992
public void heartbeat() {<NEW_LINE>AtomicInteger removedSessions = new AtomicInteger(0);<NEW_LINE>mActiveRegisterContexts.entrySet().removeIf((entry) -> {<NEW_LINE>WorkerRegisterContext context = entry.getValue();<NEW_LINE>final <MASK><NEW_LINE>final long lastActivityTime = context.getLastActivityTimeMs();<NEW_LINE>fin...
long clockTime = mClock.millis();
1,232,926
private void fillScoreBoard(ScoreBoard board) {<NEW_LINE>board.total++;<NEW_LINE>if (nonSvgRoot) {<NEW_LINE>board.nonSvgRoot++;<NEW_LINE>}<NEW_LINE>if (nonNamespaceSvgRoot) {<NEW_LINE>board.nonNamespaceSvgRoot++;<NEW_LINE>}<NEW_LINE>if (otherNamespaceSvgRoot) {<NEW_LINE>board.otherNamespaceSvgRoot++;<NEW_LINE>}<NEW_LIN...
fillMapFromSetString(board.piTargets, piTargets);
1,222,433
public ParseException generateParseException() {<NEW_LINE>jj_expentries.clear();<NEW_LINE>boolean[] la1tokens = new boolean[130];<NEW_LINE>if (jj_kind >= 0) {<NEW_LINE>la1tokens[jj_kind] = true;<NEW_LINE>jj_kind = -1;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < 49; i++) {<NEW_LINE>if (jj_la1[i] == jj_gen) {<NEW_LINE>for (i...
] = jj_expentries.get(i);
607,366
protected StoreResult storeImpl(ArtifactInfo info, Path file) throws IOException {<NEW_LINE>ImmutableStoreResult.<MASK><NEW_LINE>// Build the request, hitting the multi-key endpoint.<NEW_LINE>Request.Builder builder = new Request.Builder();<NEW_LINE>HttpArtifactCacheBinaryProtocol.StoreRequest storeRequest = new HttpAr...
Builder resultBuilder = ImmutableStoreResult.builder();
458,678
private static void initialize(TypeDataBase db) {<NEW_LINE>Type type = db.lookupType("nmethod");<NEW_LINE>methodField = type.getAddressField("_method");<NEW_LINE>entryBCIField = type.getCIntegerField("_entry_bci");<NEW_LINE>osrLinkField = type.getAddressField("_osr_link");<NEW_LINE><MASK><NEW_LINE>scavengeRootStateFiel...
scavengeRootLinkField = type.getAddressField("_scavenge_root_link");
1,546,644
private static Dimension measureTextOverlay(Graphics2D g2d, String text) {<NEW_LINE>Insets insets = new Insets(10, 10, 10, 10);<NEW_LINE>int interLineSpacing = 4;<NEW_LINE>g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>g2d.<MASK><NEW_LINE>g2d.setFont(g2d.getFont().der...
setStroke(new BasicStroke(1.0f));
1,789,256
private Concrete.@Nullable Pattern translateNumberPatterns(Concrete.NumberPattern pattern, @NotNull Expression typeExpr) {<NEW_LINE>if (myVisitor == null) {<NEW_LINE>return DesugarVisitor.desugarNumberPattern(pattern, myErrorReporter);<NEW_LINE>}<NEW_LINE>var ext = myVisitor.getExtension();<NEW_LINE>if (ext == null) {<...
new TypecheckingError("Cannot typecheck pattern", pattern));
188,754
public EncryptionConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EncryptionConfig encryptionConfig = new EncryptionConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
277,807
private void ajaxChangePermissions(final Project project, final HashMap<String, Object> ret, final HttpServletRequest req, final User user) throws ServletException {<NEW_LINE>final boolean admin = Boolean.parseBoolean(getParam(req, "permissions[admin]"));<NEW_LINE>final boolean read = Boolean.parseBoolean(getParam(req,...
name, perm, group, user);
1,131,127
public void handleMessage(Message msg) {<NEW_LINE>if (msg.what == MSG_NEW_INPUT && isRunning()) {<NEW_LINE>int bytesRead = mProcessToTerminalIOQueue.read(mReceiveBuffer, false);<NEW_LINE>if (bytesRead > 0) {<NEW_LINE>mEmulator.append(mReceiveBuffer, bytesRead);<NEW_LINE>notifyScreenUpdate();<NEW_LINE>}<NEW_LINE>} else ...
exitCode = (Integer) msg.obj;
601,887
@POST<NEW_LINE>public Response add(User entity) throws StorageException {<NEW_LINE>if (!Context.getPermissionsManager().getUserAdmin(getUserId())) {<NEW_LINE>Context.getPermissionsManager().checkUserUpdate(getUserId(), new User(), entity);<NEW_LINE>if (Context.getPermissionsManager().getUserManager(getUserId())) {<NEW_...
* 24 * 3600 * 1000));
1,732,268
public boolean close(int closedReason, SIBUuid8 qpoint) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "close", new Object[] { Integer.valueOf(closedReason), qpoint });<NEW_LINE>ConsumableKey ck = null;<NEW_LINE>synchronized (this) {<NEW_LINE>// Remove the consumerk...
ck.close(closedReason, null);
1,050,100
public boolean canRelease(MessageGroup messageGroup) {<NEW_LINE>boolean canRelease = false;<NEW_LINE>int size = messageGroup.size();<NEW_LINE>if (this.releasePartialSequences && size > 0) {<NEW_LINE>if (LOGGER.isTraceEnabled()) {<NEW_LINE>LOGGER.trace("Considering partial release of group [" + messageGroup + "]");<NEW_...
int lastReleasedMessageSequence = messageGroup.getLastReleasedMessageSequenceNumber();
992,661
private String contrast() {<NEW_LINE>final SelectorDO <MASK><NEW_LINE>Objects.requireNonNull(before);<NEW_LINE>final SelectorDO after = (SelectorDO) getAfter();<NEW_LINE>Objects.requireNonNull(after);<NEW_LINE>if (Objects.equals(before, after)) {<NEW_LINE>return "it no change";<NEW_LINE>}<NEW_LINE>final StringBuilder b...
before = (SelectorDO) getBefore();
1,170,230
public final FileObject move(FileLock lock, FileObject target, String name, String ext) throws IOException {<NEW_LINE>if (FileUtil.isParentOf(this, target)) {<NEW_LINE>// NOI18N<NEW_LINE>FSException.io("EXC_MoveChild", this, target);<NEW_LINE>}<NEW_LINE>ProvidedExtensions extensions = getProvidedExtensions();<NEW_LINE>...
).getFile(), to);
1,755,470
final CreatePlatformApplicationResult executeCreatePlatformApplication(CreatePlatformApplicationRequest createPlatformApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPlatformApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
251,719
public EarlyFinishedVulnerabilityType performCheck() {<NEW_LINE>Config tlsConfig = config.createConfig();<NEW_LINE>tlsConfig.setFiltersKeepUserSettings(false);<NEW_LINE>WorkflowConfigurationFactory workflowConfigurationFactory = new WorkflowConfigurationFactory(tlsConfig);<NEW_LINE>OutboundConnection connection = tlsCo...
messages = new LinkedList<>();
1,143,730
public int compareTo(PartitionField o) {<NEW_LINE>Preconditions.checkArgument(mysqlStandardFieldType() == o.mysqlStandardFieldType());<NEW_LINE>Preconditions.checkArgument(packetLength(<MASK><NEW_LINE>Preconditions.checkArgument(field.dataType().getCollationName() == o.dataType().getCollationName() || (field.dataType()...
) == o.packetLength());
709,274
public static void operator2(InterleavedI8 imgA, Function2_I8 function, InterleavedI8 imgB, InterleavedI8 output) {<NEW_LINE>InputSanityCheck.checkSameShape(imgA, imgB);<NEW_LINE>output.reshape(imgA.width, imgA.height);<NEW_LINE>int columns = imgA.width * imgA.numBands;<NEW_LINE>int N = imgA.width * imgA.height;<NEW_LI...
imgA.height, columns, function);
1,504,476
public void breakpointReached(JPDABreakpointEvent event) {<NEW_LINE>Object bp = event.getSource();<NEW_LINE>JPDADebugger debugger = event.getDebugger();<NEW_LINE>if (execHaltedBP.get(debugger) == bp) {<NEW_LINE>LOG.log(<MASK><NEW_LINE>if (!setCurrentPosition(debugger, event.getThread())) {<NEW_LINE>event.resume();<NEW_...
Level.FINE, "TruffleAccessBreakpoints.breakpointReached({0}), exec halted.", event);
67,097
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String queryFlag) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Qu...
ExceptionEntityNotExist(queryFlag, Query.class);
538,123
public boolean handleTransfer(JTextComponent targetComponent) {<NEW_LINE>// NOI18N<NEW_LINE>Object mimeType = targetComponent.getDocument().getProperty("mimeType");<NEW_LINE>if (mimeType != null && ("text/x-java".equals(mimeType) || "text/x-jsp".equals(mimeType))) {<NEW_LINE>// NOI18N<NEW_LINE>try {<NEW_LINE>Node clien...
params[0] = LogUtils.WS_STACK_JAXWS;
280,379
// Submit a group of tasks via untimed invokeAny, where one of the tasks promptly returns a null result, and another returns a non-null result after a delay.<NEW_LINE>// Verify that the result of invokeAny is null. This test verifies that the implementation is not limited to awaiting non-null results, and handles null ...
0, canceledFromQueue.size());
1,720,609
// -----------//<NEW_LINE>// preRemove //<NEW_LINE>// -----------//<NEW_LINE>@Override<NEW_LINE>public Set<? extends Inter> preRemove(WrappedBoolean cancel) {<NEW_LINE>final Set<Inter> <MASK><NEW_LINE>inters.add(this);<NEW_LINE>// If this slur has an extension to another slur, remove that other slur (now an orphan).<NE...
inters = new LinkedHashSet<>();
235,240
public void visit(BLangWorkerFlushExpr flushExpr) {<NEW_LINE>BIRBasicBlock thenBB = new BIRBasicBlock(this.env.nextBBId(names));<NEW_LINE>addToTrapStack(thenBB);<NEW_LINE>// create channelDetails array<NEW_LINE>BIRNode.ChannelDetails[] channels = new BIRNode.ChannelDetails[flushExpr.workerIdentifierList.size()];<NEW_LI...
enclFunc.localVars.add(tempVarDcl);
57,209
public InterleavedComplexSamples next() {<NEW_LINE>if (mSamplesPointer >= mSamples.length) {<NEW_LINE>throw new IllegalStateException("End of buffer exceeded");<NEW_LINE>}<NEW_LINE>int offset = mSamplesPointer;<NEW_LINE>for (int x = 0; x < FRAGMENT_SIZE; x++) {<NEW_LINE>mIBuffer[x + I_OVERLAP] = scale(mSamples[offset++...
mSamples[offset++], mAverageDc);
613,776
public static BatchDeleteResourcesResponse unmarshall(BatchDeleteResourcesResponse batchDeleteResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchDeleteResourcesResponse.setRequestId(_ctx.stringValue("BatchDeleteResourcesResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ResourceItem> items ...
("BatchDeleteResourcesResponse.Data.Items[" + i + "].SchemaVersion"));
28,737
public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>MenuItem closeIssue = menu.findItem(R.id.closeIssue);<NEW_LINE>MenuItem lockIssue = menu.findItem(R.id.lockIssue);<NEW_LINE>MenuItem milestone = menu.findItem(R.id.milestone);<NEW_LINE>MenuItem labels = menu.findItem(R.id.labels);<NEW_LINE>MenuItem assignees = m...
findItem(R.id.pinUnpin);
885,863
public static <K, V extends Comparable<? super V>> List<KeyValue<K, V>> sortKeyValueListTopK(List<KeyValue<K, V>> data, final boolean inverse, int k) {<NEW_LINE>k = data.size() > k ? k : data.size();<NEW_LINE>if (k == 0) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>PriorityQueue<KeyValue<K, V>> topKDataQueu...
add(iterator.next());
1,762,649
private void desiredCapabilityForCloud(String testMethodName, String platform, String jsonPath, DesiredCapabilities desiredCapabilities) {<NEW_LINE>JSONObject platFormCapabilities = new JsonParser(jsonPath).getObjectFromJSON().getJSONObject(platform);<NEW_LINE>platFormCapabilities.keySet().forEach(key -> {<NEW_LINE>cap...
.getDevice().getName();
1,663,213
public ServiceStatus save(String userId, String json) {<NEW_LINE>JSONObject jsonObject = JSONObject.parseObject(json);<NEW_LINE>DashboardBoard board = new DashboardBoard();<NEW_LINE>board.setUserId(userId);<NEW_LINE>board.setName(jsonObject.getString("name"));<NEW_LINE>board.setCategoryId<MASK><NEW_LINE>board.setLayout...
(jsonObject.getLong("categoryId"));
335,006
public synchronized void update(final CirculantTracker tracker) {<NEW_LINE>if (hasSelected) {<NEW_LINE>RectangleLength2D_F32 r = tracker.getTargetLocation();<NEW_LINE>selected.x0 = (int) r.x0;<NEW_LINE>selected.y0 = (int) r.y0;<NEW_LINE>selected.x1 = selected.x0 + (int) r.width;<NEW_LINE>selected.y1 = selected.y0 + (in...
GrayF64 response = tracker.getResponse();
129,250
public void drawU(UGraphic ug) {<NEW_LINE>final HColor borderColor;<NEW_LINE>if (UseStyle.useBetaStyle())<NEW_LINE>borderColor = getStyle().value(PName.LineColor).asColor(skinParam.getThemeStyle(), skinParam.getIHtmlColorSet());<NEW_LINE>else<NEW_LINE>borderColor = new Rose().getHtmlColor(skinParam, stereotype, ColorPa...
inner = inners.get(i);
1,066,441
public static InputLayout parse(Activity activity, Orientation orientation, String inputLayoutString) {<NEW_LINE>InputLayout inputLayout = new InputLayout(orientation);<NEW_LINE>try {<NEW_LINE>String[] <MASK><NEW_LINE>for (String buttonString : buttonStringList) {<NEW_LINE>// ButtonString format : "keyCode:size:posX:po...
buttonStringList = inputLayoutString.split(";");
1,374,434
public SsmActionDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SsmActionDefinition ssmActionDefinition = new SsmActionDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
1,646,009
final AddTagsResult executeAddTags(AddTagsRequest addTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
invoke(request, responseHandler, executionContext);
1,106,582
public static Object randomArray(Class type, int length, Random rand) {<NEW_LINE>Object ret;<NEW_LINE>if (type == byte[].class) {<NEW_LINE>byte[<MASK><NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>data[i] = (byte) (rand.nextInt(Byte.MAX_VALUE - Byte.MIN_VALUE) + Byte.MIN_VALUE);<NEW_LINE>}<NEW_LINE>ret = data;<N...
] data = new byte[length];
1,667,345
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>query_cfg_result result = new query_cfg_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error...
_LOGGER.error("TApplicationException inside handler", e);
468,663
private Map<String, Object> toJson(Trigger trigger, ZoneId zoneId) throws SchedulerException {<NEW_LINE>Scheduler scheduler = getScheduler();<NEW_LINE>Trigger.TriggerState state = scheduler.getTriggerState(trigger.getKey());<NEW_LINE>Map<String, Object> json = new LinkedHashMap<>();<NEW_LINE>json.put("key", trigger.get...
.put("description", value));
1,816,182
public FillPrepareResult prepare(int availableHeight) {<NEW_LINE>FillPrepareResult result = null;<NEW_LINE>JRComponentElement element = fillContext.getComponentElement();<NEW_LINE>if (template == null) {<NEW_LINE>template = new JRTemplateGenericElement(fillContext.getElementOrigin(), fillContext.getDefaultStyleProvider...
setWidth(element.getWidth());
383,574
protected void onValidSignature(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>ConsumerAuthentication authentication = (ConsumerAuthentication) SecurityContextHolder.getContext().getAuthentication();<NEW_LINE>String token = authentication.get...
createAuthentication(request, authentication, accessToken);
1,471,800
private void buildAndShowDialog() {<NEW_LINE>FormLayout layout = new FormLayout("5px,100px,5px,left:default,5px:grow(1.0)");<NEW_LINE>final XFormDialog dialog = ADialogBuilder.buildDialog(AuthorizationTypeForm.class, null, layout);<NEW_LINE>profileNameField = (JTextFieldFormField) <MASK><NEW_LINE>profileNameField.addFo...
dialog.getFormField(AuthorizationTypeForm.OAUTH_PROFILE_NAME_FIELD);
1,033,038
private void displayDialog(JPanel parent, String title, String helpId) {<NEW_LINE>BetterInputDialog dialog = new BetterInputDialog(parent, title, helpId, this);<NEW_LINE>do {<NEW_LINE>int dialogChoice = dialog.display();<NEW_LINE>if (dialogChoice == dialog.CANCEL_OPTION) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>if (dialog...
= new PrincipalNameMapping(oldPrincipalName, oldClassName);
694,341
public BackgroundException map(final FailedRequestException e) {<NEW_LINE>final StringBuilder buffer = new StringBuilder();<NEW_LINE>if (null != e.getError()) {<NEW_LINE>this.append(buffer, e.getError().getMessage());<NEW_LINE>}<NEW_LINE>switch(e.getStatusCode()) {<NEW_LINE>case HttpStatus.SC_FORBIDDEN:<NEW_LINE>if (nu...
IOException) e.getCause());
644,033
private boolean parseLine(String line) {<NEW_LINE>if (line.startsWith("1..")) {<NEW_LINE>// NOI18N<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (line.startsWith("TAP version ")) {<NEW_LINE>// NOI18N<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (line.startsWith(OK_PREFIX)) {<NEW_LINE>processComments();<NEW_LINE>assert ...
(1).trim());
392,938
private WebLogicConfiguration createConfiguration() {<NEW_LINE>InstanceProperties ip = getInstanceProperties();<NEW_LINE>WebLogicConfiguration.Credentials credentials = new InstancePropertiesCredentials(ip);<NEW_LINE>String serverHome = ip.getProperty(WLPluginProperties.SERVER_ROOT_ATTR);<NEW_LINE>String domainHome = i...
()).split(":");
1,090,514
public void doReportStat(SofaTracerSpan sofaTracerSpan) {<NEW_LINE>// tags<NEW_LINE>Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr();<NEW_LINE>StatMapKey statKey = new StatMapKey();<NEW_LINE>String appName = tagsWithStr.get(CommonSpanTags.LOCAL_APP);<NEW_LINE>// service name<NEW_LINE>String serviceName...
{ getLoadTestMark(sofaTracerSpan) }));
1,588,153
public ListServerNeighborsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListServerNeighborsResult listServerNeighborsResult = new ListServerNeighborsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
419,925
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jComboBox1 = new javax.swing.JComboBox();<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jLabel2 = new javax.swing.J...
= java.awt.GridBagConstraints.WEST;
1,122,646
public Request<RemoveClientIDFromOpenIDConnectProviderRequest> marshall(RemoveClientIDFromOpenIDConnectProviderRequest removeClientIDFromOpenIDConnectProviderRequest) {<NEW_LINE>if (removeClientIDFromOpenIDConnectProviderRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)"...
(removeClientIDFromOpenIDConnectProviderRequest.getOpenIDConnectProviderArn()));
1,561,747
public NetworkConnection createConnection(Object endpoint) throws FrameworkException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "createConnection", endpoint);<NEW_LINE>NetworkConnection conn = null;<NEW_LINE>try {<NEW_LINE>// Create the connection from the VC Factory. As we are connecting using ...
(OutboundVirtualConnection) wsVcf.createConnection();
1,809,165
private static MetricEnrichedSeriesData fromInner(SeriesResult innerEnrichedSeriesData) {<NEW_LINE>final MetricEnrichedSeriesData enrichedSeriesData = new MetricEnrichedSeriesData();<NEW_LINE>DimensionKey seriesKey;<NEW_LINE>if (innerEnrichedSeriesData.getSeries().getDimension() != null) {<NEW_LINE>seriesKey = new Dime...
MetricEnrichedSeriesDataHelper.setExpectedMetricValues(enrichedSeriesData, expectedValueList);
1,593,098
public static void main(String[] argv) throws IOException {<NEW_LINE>FindBugs.setNoAnalysis();<NEW_LINE>final UnionResultsCommandLine commandLine = new UnionResultsCommandLine();<NEW_LINE>int argCount = commandLine.parse(argv, 2, Integer.MAX_VALUE, "Usage: " + UnionResults.class.getName() + " [options] [<results1> <res...
.readXML(argv[i]);
88,908
private void acquire0(final Promise<Channel> promise) {<NEW_LINE>try {<NEW_LINE>assert executor.inEventLoop();<NEW_LINE>if (closed) {<NEW_LINE>promise.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (acquiredChannelCount.get() < maxConnections) {<NEW_LINE>assert acquiredChannelCount.get() >= 0;<NEW_LINE>// We need to cr...
setFailure(new IllegalStateException("FixedChannelPool was closed"));
1,607,679
public void testTimeoutNonRoutable(Map<String, String> param, StringBuilder ret) {<NEW_LINE>// https://stackoverflow.com/a/904609/6575578<NEW_LINE>String timeout = param.get("timeout");<NEW_LINE>long longTimeout = 0L;<NEW_LINE>String res = null;<NEW_LINE>ClientBuilder cb = ClientBuilder.newBuilder();<NEW_LINE>Client c ...
connectTimeout(longTimeout, TimeUnit.MILLISECONDS);
1,280,372
public void createAndSplitGetValuesMethod(ClassWriter cw, Map<String, BField> fields, String className, JvmCastGen jvmCastGen) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "values", MAP_VALUES, MAP_VALUES_WITH_COLLECTION, null);<NEW_LINE>mv.visitCode();<NEW_LINE>int selfIndex = 0;<NEW_LINE>int valuesVarInde...
LIST, "addAll", ADD_COLLECTION, true);
1,419,684
private void updateButtons() {<NEW_LINE>final Tree tree = columnsViewer.getTree();<NEW_LINE>final TreeItem[] selection = tree.getSelection();<NEW_LINE>final boolean moveDownEnabled = selection.length > 0 && tree.indexOf(selection[selection.length - 1]) <MASK><NEW_LINE>final boolean moveUpEnabled = selection.length > 0 ...
!= tree.getItemCount() - 1;
657,770
public void marshall(IdentityMailFromDomainAttributes _identityMailFromDomainAttributes, Request<?> request, String _prefix) {<NEW_LINE>String prefix;<NEW_LINE>if (_identityMailFromDomainAttributes.getMailFromDomain() != null) {<NEW_LINE>prefix = _prefix + "MailFromDomain";<NEW_LINE>String mailFromDomain = _identityMai...
, StringUtils.fromString(mailFromDomainStatus));
754,193
public T readArrayMappingJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>ObjectReader autoTypeReader = checkAutoType(jsonReader, this.objectClass, this.features | features);<NEW_LINE>if (autoTypeReader != null && autoTypeReader != this && autoTypeReader.getObjectClass() !=...
Object object = defaultCreator.get();
1,353,729
private static SerdeAndForgeables planBaseNestable(BaseNestableEventType eventType, StatementRawInfo raw, SerdeCompileTimeResolver resolver) {<NEW_LINE>String className;<NEW_LINE>if (eventType instanceof JsonEventType) {<NEW_LINE>String classNameFull = ((JsonEventType) eventType).getDetail().getSerdeClassName();<NEW_LI...
).getName(), uuid);
402,367
private Result createResultFromCompleteList(Repository repository, Set<String> rootFeatures) {<NEW_LINE>final Set<String> <MASK><NEW_LINE>final Set<String> resolved = new LinkedHashSet<>();<NEW_LINE>for (String featureName : rootFeatures) {<NEW_LINE>ProvisioningFeatureDefinition feature = repository.getFeature(featureN...
missing = new HashSet<>();
1,466,285
private Specification<Quote> createSpecification(QuoteCriteria criteria) {<NEW_LINE>Specification<Quote> specification = Specification.where(null);<NEW_LINE>if (criteria != null) {<NEW_LINE>if (criteria.getId() != null) {<NEW_LINE>specification = specification.and(buildSpecification(criteria.getId(), Quote_.id));<NEW_L...
(), Quote_.symbol));
1,042,290
public Map<Integer, Long> queryMinOffsetInAllGroup(final String topic, final String filterGroups) {<NEW_LINE>Map<Integer, Long> queueMinOffset = new HashMap<Integer, Long>();<NEW_LINE>Set<String> topicGroups = this.offsetTable.keySet();<NEW_LINE>if (!UtilAll.isBlank(filterGroups)) {<NEW_LINE>for (String group : filterG...
String topicGroup = offSetEntry.getKey();
1,463,108
private void appendInternalArchiveLabel(IPackageFragmentRoot root, long flags) {<NEW_LINE>IResource resource = root.getResource();<NEW_LINE>boolean rootQualified = getFlag(flags, JavaElementLabels.ROOT_QUALIFIED);<NEW_LINE>if (rootQualified) {<NEW_LINE>fBuilder.append(root.getPath().makeRelative().toString());<NEW_LINE...
fBuilder.append(JavaElementLabels.CONCAT_STRING);
488,863
public void kill(DataSegment segment) throws SegmentLoadingException {<NEW_LINE>try {<NEW_LINE>Map<String, Object> loadSpec = segment.getLoadSpec();<NEW_LINE>String s3Bucket = MapUtils.getString(loadSpec, "bucket");<NEW_LINE>String s3Path = MapUtils.getString(loadSpec, "key");<NEW_LINE>String s3DescriptorPath = DataSeg...
segment.getId(), e);
1,236,335
private static void createRecording(final Aeron aeron, final AeronArchive aeronArchive, final long startPosition, final long targetPosition) {<NEW_LINE>final int initialTermId = 7;<NEW_LINE>recordingNumber++;<NEW_LINE>final ChannelUriStringBuilder uriBuilder = new ChannelUriStringBuilder().media("udp").endpoint("localh...
+ recordingNumber).termLength(TERM_LENGTH);
1,212,663
public synchronized // sf@2005)<NEW_LINE>void // sf@2005)<NEW_LINE>writeSetPixelFormat(// sf@2005)<NEW_LINE>int bitsPerPixel, // sf@2005)<NEW_LINE>int depth, // sf@2005)<NEW_LINE>boolean bigEndian, // sf@2005)<NEW_LINE>boolean trueColour, // sf@2005)<NEW_LINE>int redMax, // sf@2005)<NEW_LINE>int greenMax, // sf@2005)<N...
(byte) (greenMax & 0xff);
1,346,155
public boolean insertGlobalTransactionDO(GlobalTransactionDO globalTransactionDO) {<NEW_LINE>String sql = LogStoreSqlsFactory.getLogStoreSqls(dbType).getInsertGlobalTransactionSQL(globalTable);<NEW_LINE>Connection conn = null;<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>int index = 1;<NEW_LINE>conn = ...
ps = conn.prepareStatement(sql);