idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,006,714
protected void handleResult(Sentence sentence, List<RuleMatch> ruleMatches, Language language) {<NEW_LINE>if (ruleMatches.size() > 0) {<NEW_LINE>int i = 1;<NEW_LINE>System.out.println("\nTitle: " + sentence.getTitle());<NEW_LINE>for (RuleMatch match : ruleMatches) {<NEW_LINE>String output = // match.getRule().getId();<...
msg.replaceAll("</suggestion>", "'");
1,443,381
public void draw(GraphicsContext ctx) {<NEW_LINE>Point c = getCenter();<NEW_LINE>double cx = c.x;<NEW_LINE>double cy = c.y;<NEW_LINE>ctx.ellipsemode(GraphicsContext.EllipseMode.CENTER);<NEW_LINE>ctx.nofill();<NEW_LINE>ctx.stroke(HANDLE_COLOR);<NEW_LINE>ctx.ellipse(cx, cy, handleLength * 2, handleLength * 2);<NEW_LINE>d...
(Double) getValue(angleName));
412,838
private static boolean isNewerVersion(String latestVersion) {<NEW_LINE>int[] oldVersions = versionStringToInt(getThisJarVersion());<NEW_LINE>int<MASK><NEW_LINE>if (oldVersions.length < newVersions.length) {<NEW_LINE>System.err.println("Calculated: " + getThisJarVersion() + " < " + latestVersion);<NEW_LINE>return true;<...
[] newVersions = versionStringToInt(latestVersion);
381,848
public TubeMQResult cloneBrokersWithTopic(CloneBrokersReq req) throws Exception {<NEW_LINE>int clusterId = req.getClusterId();<NEW_LINE>// 1. query source broker config<NEW_LINE>QueryBrokerCfgReq queryReq = QueryBrokerCfgReq.getReq(req.getSourceBrokerId());<NEW_LINE>MasterEntry masterEntry = masterRepository.findMaster...
addTopicsToBrokers(masterEntry, brokerIds, addTopicReqs);
168,198
public Map<String, ModelsMap> postProcessAllModels(Map<String, ModelsMap> superobjs) {<NEW_LINE>List<String> toRemove = new ArrayList<>();<NEW_LINE>for (Map.Entry<String, ModelsMap> modelEntry : superobjs.entrySet()) {<NEW_LINE>// process enum in models<NEW_LINE>List<ModelMap> models = modelEntry.getValue().getModels()...
enrichPropertiesWithEnumDefaultValues(cm.getParentVars());
1,815,390
/* Build call for throttlingPoliciesAdvancedPolicyIdDelete */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesAdvancedPolicyIdDeleteCall(String policyId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener ...
localVarHeaderParams.put("Accept", localVarAccept);
339,791
public boolean handleChange(final ChangeEvent event) {<NEW_LINE>if (event.getState() == State.DELETED) {<NEW_LINE>UIHelper.runUISync(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final Model model = event.getModel();<NEW_LINE>// getViewer().remove(...) internally (see<NEW_LINE>// o...
event.getModel(), true);
843,238
public boolean verifySignature(byte[] message, byte[] signature) {<NEW_LINE>// # Input: Message M, signature SIG, public key PK<NEW_LINE>// # Output: Boolean<NEW_LINE>// init<NEW_LINE>SPHINCSPlusEngine engine = pubKey.getParameters().getEngine();<NEW_LINE>ADRS adrs = new ADRS();<NEW_LINE>SIG sig = new SIG(engine.N, eng...
] SIG_HT = sig.getSIG_HT();
1,362,198
public SearchTablesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchTablesResult searchTablesResult = new SearchTablesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get...
String currentParentElement = context.getCurrentParentElement();
121,408
public static TransportStop findBestTransportStopForAmenity(OsmandApplication app, Amenity amenity) {<NEW_LINE>TransportStopAggregated stopAggregated;<NEW_LINE>boolean isSubwayEntrance = amenity.<MASK><NEW_LINE>LatLon loc = amenity.getLocation();<NEW_LINE>int radiusMeters = isSubwayEntrance ? SHOW_SUBWAY_STOPS_FROM_ENT...
getSubType().equals("subway_entrance");
1,635,197
final CreateMeshResult executeCreateMesh(CreateMeshRequest createMeshRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMeshRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,706,508
public static ClientCompactionTaskQueryTuningConfig from(@Nullable UserCompactionTaskQueryTuningConfig userCompactionTaskQueryTuningConfig, @Nullable Integer maxRowsPerSegment) {<NEW_LINE>if (userCompactionTaskQueryTuningConfig == null) {<NEW_LINE>return new ClientCompactionTaskQueryTuningConfig(maxRowsPerSegment, null...
), userCompactionTaskQueryTuningConfig.getTotalNumMergeTasks());
105,175
private void emitVectorLoad(AMD64MacroAssembler asm, Register dst, Register src, Register index, int displacement, Scale scale, AVXSize size) {<NEW_LINE>AMD64Address address = new AMD64Address(src, index, scale, displacement);<NEW_LINE>if (scale.value < maxScale.value) {<NEW_LINE>if (size == AVXSize.YMM) {<NEW_LINE>AMD...
asm.vmovdqu(dst, address);
939,882
private void bumpPushNotificationsAnalytics(Stat stat, Bundle noteBundle, Map<String, Object> properties) {<NEW_LINE>// Bump Analytics for PNs if "Show notifications" setting is checked (default). Skip otherwise.<NEW_LINE>if (!NotificationsUtils.isNotificationsEnabled(WordPress.getContext())) {<NEW_LINE>return;<NEW_LIN...
getString(NotificationsUtils.WPCOM_PUSH_DEVICE_TOKEN, null);
1,263,452
public ListLayersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListLayersResult listLayersResult = new ListLayersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
1,740,190
final ListChannelsResult executeListChannels(ListChannelsRequest listChannelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListChannelsRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
945,612
final ListPendingInvitationResourcesResult executeListPendingInvitationResources(ListPendingInvitationResourcesRequest listPendingInvitationResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPendingInvitationResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
false), new ListPendingInvitationResourcesResultJsonUnmarshaller());
476,277
public void autocompleteAddress(Address address) {<NEW_LINE>String zip = address.getZip();<NEW_LINE>if (zip == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Country country = address.getAddressL7Country();<NEW_LINE>List<City> cities = cityRepository.findByZipAndCountry(zip, country).fetch();<NEW_LINE>City city = cities....
cities.get(0) : null;
1,234,958
final GetContactResult executeGetContact(GetContactRequest getContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
356,769
private Map<String, List<BaseMethodBinding<?>>> collectMethodBindings(RequestDetails theRequestDetails) {<NEW_LINE>Map<String, List<BaseMethodBinding<?>>> resourceToMethods = new TreeMap<String, List<BaseMethodBinding<?>>>();<NEW_LINE>for (ResourceBinding next : getServerConfiguration(theRequestDetails).getResourceBind...
(resourceName).add(nextMethodBinding);
1,207,217
int saveToBackendStore(ConsumerDto consumerDto, List<JSONObject> lines, JSONArray template, String partition) {<NEW_LINE>log.info(String.format("start save to backend, consumer is %s", consumerDto.getName()));<NEW_LINE>try {<NEW_LINE>if (CollectionUtils.isEmpty(lines)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>List<List...
log.error("saveToBackendStore ERROR: ", e);
668,244
public void processFlushQuery(ControlAreYouFlushed flushQuery) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "processFlushQuery", new Object[] { flushQuery });<NEW_LINE>SIBUuid12 streamID = flushQuery.getGuaranteedStreamUUID();<NEW_LINE>t...
e, "com.ibm.ws.sib.processor.gd.InternalOutputStreamManager.processFlushQuery", "1:516:1.48.1.1", this);
1,582,059
private int processMessage(EmailMessage message, PurchaseContext purchaseContext) {<NEW_LINE>int messageId = message.getId();<NEW_LINE>ConfigurationLevel configurationLevel = ConfigurationLevel.purchaseContext(purchaseContext);<NEW_LINE>if (message.getAttempts() >= configurationManager.getFor(ConfigurationKeys.MAIL_ATT...
log.warn("Message with id {} will be discarded", messageId);
841,288
public ConditionalExpression rewriteExpression(ConditionalExpression expression, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) {<NEW_LINE>if (expression instanceof BooleanOperation) {<NEW_LINE>BooleanOperation bo = (BooleanOperation) expression;<NEW_LINE>if (bo.get...
(BooleanOperation) bo.getRhs();
1,081,966
public void json(SpiExpressionRequest request, String propName, String path, Op operator, Object value) {<NEW_LINE>StringBuilder sb = new StringBuilder(50);<NEW_LINE>String[] paths = path.split("\\.");<NEW_LINE>if (paths.length == 1) {<NEW_LINE>// (t0.content ->> 'title') = 'Some value'<NEW_LINE>sb.append("(").append(p...
(propName).append(" #>> '{");
1,846,164
private // }<NEW_LINE>void loadSubNode(VDBTreeNode pNode) {<NEW_LINE>try {<NEW_LINE>IVS vs = (IVS) pNode.getUserObject();<NEW_LINE>Sequence subNodes = vs.list("w");<NEW_LINE>if (subNodes == null || subNodes.length() == 0)<NEW_LINE>return;<NEW_LINE>pNode.removeAllChildren();<NEW_LINE>for (int i = 1; i <= subNodes.length...
VS) subNodes.get(i);
1,739,480
final ListPricingPlansAssociatedWithPricingRuleResult executeListPricingPlansAssociatedWithPricingRule(ListPricingPlansAssociatedWithPricingRuleRequest listPricingPlansAssociatedWithPricingRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPricingPlansAssociatedWithPricingRuleRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "billingconductor");
1,122,868
private List<Result> findStaticModels(SmallRyeOpenApiConfig openApiConfig, List<Pattern> ignorePatterns, Path target) {<NEW_LINE>List<Result> results = new ArrayList<>();<NEW_LINE>// First check for the file in both META-INF and WEB-INF/classes/META-INF<NEW_LINE>addStaticModelIfExist(results, ignorePatterns, Format.YAM...
ignorePatterns, Format.YAML, META_INF_OPENAPI_YML);
1,282,398
private void parseAndBuildConfig(ClientFailoverConfig config) throws Exception {<NEW_LINE>YamlMapping yamlRootNode;<NEW_LINE>try {<NEW_LINE>yamlRootNode = ((YamlMapping) YamlLoader.load(in));<NEW_LINE>} catch (Exception ex) {<NEW_LINE>throw new InvalidConfigurationException("Invalid YAML configuration", ex);<NEW_LINE>}...
, config).buildConfig(w3cRootNode);
101,013
public void decode(BitReader _in, ICSInfo info, Profile profile) throws AACException {<NEW_LINE>lag = 0;<NEW_LINE>if (profile.equals(Profile.AAC_LD)) {<NEW_LINE>lagUpdate = _in.readBool();<NEW_LINE>if (lagUpdate)<NEW_LINE>lag = _in.readNBit(10);<NEW_LINE>} else<NEW_LINE>lag = _in.readNBit(11);<NEW_LINE>if (lag > (frame...
throw new AACException("LTP lag too large: " + lag);
1,846,668
public static ICopyPolicy createCopyPolicy(RefactoringStatus status, JavaRefactoringArguments arguments) {<NEW_LINE>final String policy = arguments.getAttribute(ATTRIBUTE_POLICY);<NEW_LINE>if (policy != null && !"".equals(policy)) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>if (CopyFilesFoldersAndCusPolicy.POLICY_COPY_RESOURCE....
CopyFilesFoldersAndCusPolicy(null, null, null);
1,382,574
public void _Animation_1() {<NEW_LINE>Animation a;<NEW_LINE>a = AnimationUtils.loadAnimation(getApplicationContext(), android.R.anim.slide_in_left);<NEW_LINE>a.setDuration(200);<NEW_LINE>box_settings_close.startAnimation(a);<NEW_LINE>a = null;<NEW_LINE>Animation b;<NEW_LINE>b = AnimationUtils.loadAnimation(getApplicati...
android.R.anim.slide_in_left);
1,214,365
private static String sanitiseHTML(final String htmlString) {<NEW_LINE>String html = htmlString;<NEW_LINE>Matcher matcher = mHtmlPatter.matcher(htmlString);<NEW_LINE>Set<String> <MASK><NEW_LINE>while (matcher.find()) {<NEW_LINE>try {<NEW_LINE>String tag = htmlString.substring(matcher.start(1), matcher.end(1));<NEW_LINE...
tagsToRemove = new HashSet<>();
985,824
// this function will give us the maximum sum<NEW_LINE>static int max_sum_by_sliding_window(int[] ar, int number, int K) {<NEW_LINE>int final_sum = 0;<NEW_LINE>if (number == K) {<NEW_LINE>int sum = 0;<NEW_LINE>// max_sum will be the sum of all elements of array.<NEW_LINE>for (int i = 0; i < number; i++) {<NEW_LINE>sum...
int max_sum = 0, win_sum = 0;
414,983
public boolean onKey(KeyEvent event) {<NEW_LINE>boolean consumed = false;<NEW_LINE>// logger.log(Level.INFO, "onKey event: {0}", event);<NEW_LINE>event.getDeviceId();<NEW_LINE>event.getSource();<NEW_LINE>AndroidJoystick joystick = joystickIndex.get(event.getDeviceId());<NEW_LINE>if (joystick != null) {<NEW_LINE>Joystic...
= new JoyButtonEvent(newButton, pressed);
1,122,529
public void onSuccess(RpcResult result) {<NEW_LINE>messagesOutput.addMessages("Waiting for " + getElapsedMillis() / 1000 + " seconds.");<NEW_LINE>messagesOutput.addMessages(result.getOutput());<NEW_LINE>messagesOutput.addMessages(result.getError());<NEW_LINE>Tracking.trackEvent(Tracking.PROJECT_EVENT, Tracking.PROJECT_...
? "" : " " + errorMsg));
1,470,097
public com.amazonaws.services.mgn.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.mgn.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.mgn.model.AccessDeniedException(null);<NEW_LINE>int originalDepth = c...
class).unmarshall(context));
694,118
private static boolean splitVariablesClash(final Collection<? extends TreePath> statementsPaths, final Collection<? extends TreePath> tail, final Trees trees) {<NEW_LINE>if (tail == null || tail.isEmpty())<NEW_LINE>return false;<NEW_LINE>List<StatementTree> statements = new ArrayList<StatementTree>(statementsPaths.size...
.TRUE || r2 == Boolean.TRUE;
1,821,021
protected void showForgotPasswordDialog() {<NEW_LINE>AlertDialog.Builder builder <MASK><NEW_LINE>builder.setTitle(getString(R.string.forgot_password));<NEW_LINE>// Set up the input<NEW_LINE>final EditText input = new EditText(this);<NEW_LINE>input.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_E...
= new AlertDialog.Builder(this);
1,472,086
private static List<String> parseExtends(JsonNode root) {<NEW_LINE>List<String> dependencies = new ArrayList<>();<NEW_LINE>if (!root.isObject()) {<NEW_LINE>return dependencies;<NEW_LINE>}<NEW_LINE>JsonNode extend = root.get(ModelsRepositoryConstants.DTDL_EXTENDS);<NEW_LINE>if (extend == null) {<NEW_LINE>return dependen...
addAll(metadata.getDependencies());
698,221
public void caseIfStmt(IfStmt stmt) {<NEW_LINE>final ConditionExpr expr = (ConditionExpr) stmt.getCondition();<NEW_LINE>final Value lv = expr.getOp1();<NEW_LINE>final Value rv = expr.getOp2();<NEW_LINE>TypeNode lop;<NEW_LINE>TypeNode rop;<NEW_LINE>// ******** LEFT ********<NEW_LINE>if (lv instanceof Local) {<NEW_LINE>l...
) rv).getType());
1,795,726
public static DownloadFabricOrganizationSDKResponse unmarshall(DownloadFabricOrganizationSDKResponse downloadFabricOrganizationSDKResponse, UnmarshallerContext _ctx) {<NEW_LINE>downloadFabricOrganizationSDKResponse.setRequestId(_ctx.stringValue("DownloadFabricOrganizationSDKResponse.RequestId"));<NEW_LINE>downloadFabri...
= new ArrayList<ResultItem>();
690,074
public Mono<Response<LogProfileResourceInner>> createOrUpdateWithResponseAsync(String logProfileName, LogProfileResourceInner parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<N...
error(new IllegalArgumentException("Parameter logProfileName is required and cannot be null."));
1,720,128
public synchronized Map<String, Object> generateOverview() {<NEW_LINE>if (!overviewResult.isEmpty()) {<NEW_LINE>return overviewResult;<NEW_LINE>}<NEW_LINE>final List<Map<String, Object>> apis = Lists.newArrayList();<NEW_LINE>for (Class<?> clazz : getAnnotatedClasses()) {<NEW_LINE>Api info = <MASK><NEW_LINE>Path path = ...
clazz.getAnnotation(Api.class);
103,051
public List<String> generate(final PolicyValues policyValues) {<NEW_LINE>final PasswordRuleReaderHelper ruleHelper = policyValues.getRuleHelper();<NEW_LINE>if (!ruleHelper.readBooleanValue(PwmPasswordRule.AllowSpecial)) {<NEW_LINE>return Collections.singletonList(getLocalString(Message.Requirement_AllowSpecial, null, p...
.Requirement_MaxSpecial, maxValue, policyValues));
1,761,461
public void checkAndFilterRestoreOlapTableExistInSnapshot(Map<String, BackupOlapTableInfo> backupOlapTableInfoMap, TableRef tableRef) throws DdlException {<NEW_LINE>String tblName = tableRef<MASK><NEW_LINE>BackupOlapTableInfo tblInfo = backupOlapTableInfoMap.get(tblName);<NEW_LINE>PartitionNames partitionNames = tableR...
.getName().getTbl();
1,307,047
public // update delete menu<NEW_LINE>void removeTable() {<NEW_LINE>// NOI18N<NEW_LINE>Log.getLogger().entering("QueryBuilderGraphFrame", "removeTable");<NEW_LINE>QueryBuilder.showBusyCursor(true);<NEW_LINE>// Important: suppress bogus regeneration of the text query<NEW_LINE>_queryBuilder._updateText = false;<NEW_LINE>...
getQueryBuilderSqlTextArea().setParseQueryMenuEnabled(false);
1,231,692
private void showMissingBookNotificationInternal(SyncData.ServerBookInfo info) {<NEW_LINE>final String errorTitle = MissingBookActivity.errorTitle();<NEW_LINE>final NotificationManager notificationManager = (NotificationManager) myActivity.getSystemService(Activity.NOTIFICATION_SERVICE);<NEW_LINE>final NotificationComp...
).setContentText(info.Title);
379,335
/*<NEW_LINE>* The entry of replacing partitions with temp partitions.<NEW_LINE>*/<NEW_LINE>public void replaceTempPartition(Database db, OlapTable olapTable, ReplacePartitionClause clause) throws DdlException {<NEW_LINE>Preconditions.checkState(olapTable.isWriteLockHeldByCurrentThread());<NEW_LINE>List<String<MASK><NEW...
> partitionNames = clause.getPartitionNames();
521,742
public VarNode verifyHoistedVarDeclarations() {<NEW_LINE>if (!hasHoistedVarDeclarations()) {<NEW_LINE>// nothing to do<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>for (Map.Entry<VarNode, Scope> entry : hoistedVarDeclarations) {<NEW_LINE>VarNode varDecl = entry.getKey();<NEW_LINE><MASK><NEW_LINE>TruffleString varName = va...
Scope declScope = entry.getValue();
464,723
public void visitBinaryExpression(final BinaryExpression expression) {<NEW_LINE>Expression lhs = expression.getLeftExpression();<NEW_LINE>Expression rhs = expression.getRightExpression();<NEW_LINE>if (lhs instanceof TemporaryVariableExpression) {<NEW_LINE>lhs = ReflectionUtils.getPrivateField(TemporaryVariableExpressio...
ListOfExpressionsExpression.class, "expressions", rhs);
1,541,490
private boolean init(String funcString) {<NEW_LINE>int leftBracket = funcString.indexOf("(");<NEW_LINE>int rightBracket = funcString.lastIndexOf(")");<NEW_LINE>// see if there even is a comma<NEW_LINE>int comma = funcString.indexOf(",");<NEW_LINE>if (leftBracket > 1 && rightBracket > leftBracket + 1 && comma > leftBrac...
.atomType = Atom.AtomType.FUNCTION_X;
43,699
private void scanWithPredicate(Predicate predicate, BiConsumer consumer) {<NEW_LINE>// needed for optimization where key and value are not an instance of Data type<NEW_LINE>final boolean areKeyValueObjectType = !queryCacheConfig.isSerializeKeys() && InMemoryFormat.OBJECT == queryCacheConfig.getInMemoryFormat();<NEW_LIN...
> entries = recordStore.entrySet();
116,838
public static ReadOnlyData deserialize(DataInput in) throws IOException {<NEW_LINE>int numKeys = in.readInt();<NEW_LINE>List<TagGroup> keys = Lists.newArrayList();<NEW_LINE>for (int j = 0; j < numKeys; j++) {<NEW_LINE>keys.add(TagGroup.Serializer.deserialize(ReaderConfig.getInstance(), in));<NEW_LINE>}<NEW_LINE>int num...
boolean hasData = in.readBoolean();
1,362,140
ArrayList<Object> new125() /* reduce AMultiNewExpr */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList5 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nod...
PBaseType) nodeArrayList3.get(0);
644,911
public void executeWithRetry(Request request, Response response) {<NEW_LINE>RpcException exception = null;<NEW_LINE>int currentTryTimes = 0;<NEW_LINE>int maxTryTimes = rpcServer.getRpcServerOptions().getMaxTryTimes();<NEW_LINE>while (currentTryTimes < maxTryTimes) {<NEW_LINE>try {<NEW_LINE>// if it is a retry request, ...
add(request.getCommunicationClient());
1,397,018
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String partnerRegistrationName) {<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 IllegalArgumentExce...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
183,010
public RelyingPartyRegistration resolve(HttpServletRequest request, String relyingPartyRegistrationId) {<NEW_LINE>if (relyingPartyRegistrationId == null) {<NEW_LINE>if (this.logger.isTraceEnabled()) {<NEW_LINE>this.logger.trace("Attempting to resolve from " + this.registrationRequestMatcher + " since registrationId is ...
this.logger.trace("Returning null registration since registrationId is null");
160,595
public static void main(String[] argv) {<NEW_LINE>assert Cuckoo.NNODES > 0;<NEW_LINE>int nthreads = 1;<NEW_LINE>int maxsols = 8;<NEW_LINE>String header = "";<NEW_LINE>int easipct = 50;<NEW_LINE>for (int i = 0; i < argv.length; i++) {<NEW_LINE>if (argv[i].equals("-e")) {<NEW_LINE>easipct = Integer.parseInt(argv[++i]);<N...
threads[t].join();
115,962
// This is the worker function for path{*} /counting (non_SPARQL) semantics.<NEW_LINE>private void ALP_N(Node node, Path path, Set<Node> visited, Collection<Node> output) {<NEW_LINE>if (visited.contains(node))<NEW_LINE>return;<NEW_LINE>// If output is a set, then no point going on if node has been added to<NEW_LINE>// ...
Node n1 = iter1.next();
814,869
private void updateScrolledCompositeMinSize() {<NEW_LINE>// because this method can be called *after* calculating data in the<NEW_LINE>// background, all widgets can already be disposed<NEW_LINE>if (scrolledComposite.isDisposed())<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>if (parent.isDisposed())<NEW_LINE>return;<NEW_L...
Composite parent = scrolledComposite.getParent();
1,261,075
private // And for deleting redundant replica, also find out a tag which has redundant replica.<NEW_LINE>Tag chooseProperTag(TabletSchedCtx tabletCtx, boolean forMissingReplica) throws SchedException {<NEW_LINE>Tablet tablet = tabletCtx.getTablet();<NEW_LINE>List<Replica> replicas = tablet.getReplicas();<NEW_LINE>Map<T...
.getReplicaAlloc().getAllocMap();
1,166,305
private void addFilesToArchive(CustomZipOutputStream out, ImmutableSet<Path> paths) throws IOException {<NEW_LINE>for (Path logFile : paths) {<NEW_LINE>Path destPath = logFile;<NEW_LINE>if (destPath.isAbsolute()) {<NEW_LINE>// If it's an absolute path, make it relative instead<NEW_LINE>destPath = destPath.subpath(<MASK...
0, logFile.getNameCount());
216,532
public Runnable discriminate(HttpInboundConnectionExtended inboundConnection) {<NEW_LINE>String requestUri = inboundConnection<MASK><NEW_LINE>Runnable requestHandler = null;<NEW_LINE>// Find the container that can handle this URI.<NEW_LINE>// The first to return a non-null wins<NEW_LINE>for (HttpContainerContext ctx : ...
.getRequest().getURI();
1,698,674
private ChannelData addChannelInternal(String channelName, Class<?> factoryType, Map<Object, Object> inputPropertyBag, int weight) throws ChannelException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "addChannelInternal: channelName=" + channelName + ", factoryType...
channelData = channelDataMap.get(channelName);
540,161
// this function will attempt to rip the provided url<NEW_LINE>public static void ripURL(String targetURL, boolean saveConfig) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>rip(url);<NEW_LINE>List<String> history = Utils.getConfigList("download.history");<NEW_LINE>if (!history.contains(url.toExternalForm())) {<NEW_LINE>his...
URL url = new URL(targetURL);
1,816,734
protected boolean login(Subject clientSubject, String username, Credential credential, String authMethod, MessageInfo messageInfo) throws IOException, UnsupportedCallbackException {<NEW_LINE>CredentialValidationCallback credValidationCallback = new CredentialValidationCallback(clientSubject, username, credential);<NEW_...
[] { callerPrincipalCallback, groupPrincipalCallback });
84,231
final DeleteBranchResult executeDeleteBranch(DeleteBranchRequest deleteBranchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBranchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
447,406
public void runSearch(@NonNull String query) {<NEW_LINE>searching = true;<NEW_LINE>searchQuery = query;<NEW_LINE>SearchSettings searchSettings = setupSearchSettings(false);<NEW_LINE>searchUICore.setOnResultsComplete(() -> {<NEW_LINE>ItemList.Builder itemList = new ItemList.Builder();<NEW_LINE>SearchUICore.<MASK><NEW_LI...
SearchResultCollection resultCollection = searchUICore.getCurrentSearchResult();
263,818
public boolean initNewCluster() throws Exception {<NEW_LINE>String zkServers = ZKMetadataDriverBase.resolveZkServers(conf);<NEW_LINE>String instanceIdPath = ledgersRootPath + "/" + INSTANCEID;<NEW_LINE>log.info("Initializing ZooKeeper metadata for new cluster, ZKServers: {} ledger root path: {}", zkServers, ledgersRoot...
, zkAcls, CreateMode.PERSISTENT));
825,659
public void onLoadFinished(Loader<List<User>> listLoader, List<User> orgs) {<NEW_LINE>this.orgs = orgs;<NEW_LINE>int sharedPreferencesOrgId = sharedPreferences.getInt(PREF_ORG_ID, -1);<NEW_LINE>int targetOrgId = org == null ? sharedPreferencesOrgId : org.getId();<NEW_LINE>Menu menu = navigationView.getMenu();<NEW_LINE>...
removeGroup(R.id.user_select);
236,974
protected List findByUserId(String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM UserTracker IN CLASS com.liferay.portal.ejb.UserTrackerHBM WHERE ");<NEW_LINE>query.append("...
.list().iterator();
20,438
public boolean dbNeedsMigration() {<NEW_LINE>final Version dbVersion = Version.valueOf(dbVersionStr);<NEW_LINE>logger.info("AD_System.DBVersion is {}", dbVersion);<NEW_LINE>final Version rolloutVersion = Version.valueOf(rolloutVersionStr);<NEW_LINE>logger.info("Our own version is {}", rolloutVersion);<NEW_LINE>final in...
() == rolloutVersion.getMajorVersion();
482,574
private static void updateEarServerProperties(String newServInstID, EditableProperties projectProps, EditableProperties privateProps) {<NEW_LINE>// NOI18N<NEW_LINE>assert newServInstID != null : "Server isntance id to set can't be null";<NEW_LINE>J2eePlatform j2eePlatform = Deployment.getDefault().getJ2eePlatform(newSe...
projectProps.setProperty(CLIENT_NAME, mainClassArgs);
1,648,252
public Order create(String userId, String commodityCode, int orderCount) {<NEW_LINE>LOGGER.info("Order Service Begin ... xid: " + RootContext.getXID());<NEW_LINE>// calculate payment<NEW_LINE>int orderMoney = calculate(commodityCode, orderCount);<NEW_LINE>// debit from the account<NEW_LINE><MASK><NEW_LINE>final Order o...
accountService.debit(userId, orderMoney);
1,134,343
static private Instant parseSnapshot(JsonParser parser) throws IOException {<NEW_LINE>if (parser.getCurrentToken() != JsonToken.START_OBJECT) {<NEW_LINE>throw new IOException("Expected start of 'snapshot' object, got " + parser.currentToken());<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>for (parser.nextToken(); parser.getCurr...
Instant timestamp = Instant.now();
373,470
ExportResult<PhotosContainerResource> exportOneDrivePhotos(TokensAndUrlAuthData authData, Optional<IdOnlyContainerResource> albumData, Optional<PaginationData> paginationData, UUID jobId) throws IOException {<NEW_LINE>Optional<String> albumId = Optional.empty();<NEW_LINE>if (albumData.isPresent()) {<NEW_LINE>albumId = ...
photos = new ArrayList<>();
785,685
public LinkNode<K, V> enqueue(LinkNode<K, V> node) {<NEW_LINE>assert node != null;<NEW_LINE>assert node.prev == null || node.prev == this.empty;<NEW_LINE>assert node.next == null || node.next == this.empty;<NEW_LINE>while (true) {<NEW_LINE>LinkNode<K, V<MASK><NEW_LINE>// TODO: should we lock the new `node`?<NEW_LINE>Li...
> last = this.rear.prev;
58,069
private void initView() {<NEW_LINE>mBtnMuteAudio = findViewById(R.id.btn_mute_audio);<NEW_LINE>mBtnDownMic = findViewById(R.id.btn_down_mic);<NEW_LINE>mTextTitle = <MASK><NEW_LINE>mImageBack = findViewById(R.id.iv_back);<NEW_LINE>mTextTitle.setText(getString(R.string.voicechatroom_roomid) + mRoomId);<NEW_LINE>mImageBac...
findViewById(R.id.tv_room_number);
1,146,624
private static void showTree(StringBuilder builder, MetaPackage mp, boolean onlyCompiled) {<NEW_LINE>List<MetaPackage> childPackages = mp.getChildPackages();<NEW_LINE>for (MetaPackage childPackage : childPackages) {<NEW_LINE>showTree(builder, childPackage, onlyCompiled);<NEW_LINE>}<NEW_LINE>List<MetaClass> packageClass...
boolean isCompiled = member.isCompiled();
781,655
public void registerBeansForRoot(BeanDefinitionRegistry registry, RepositoryConfigurationSource config) {<NEW_LINE>super.registerBeansForRoot(registry, config);<NEW_LINE>Object source = config.getSource();<NEW_LINE>registerLazyIfNotAlreadyRegistered(() -> new RootBeanDefinition(EntityManagerBeanDefinitionRegistrarPostP...
), registry, JPA_MAPPING_CONTEXT_BEAN_NAME, source);
1,322,304
protected void perform() {<NEW_LINE>try {<NEW_LINE>final GitClient client = getClient();<NEW_LINE>GitUtils.runWithoutIndexing(new Callable<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void call() throws Exception {<NEW_LINE>client.stashSave(saveStash.getMessage(), saveStash.isIncludeUncommitted(), getProgress...
new File[] { repository });
1,074,189
public boolean acquireLock() {<NEW_LINE>if (hasAcquiredLock) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>hasAcquiredLock = executeCommand(new LockCmd<MASK><NEW_LINE>if (hasAcquiredLock) {<NEW_LINE>LOGGER.debug("Successfully acquired lock {}", lockName);<NEW_LINE>}<NEW_LINE>} catch (FlowableOptimisticLock...
(lockName, lockForceAcquireAfter, engineType));
246,383
private // ****************************************************<NEW_LINE>void registerLinkDiscoveryDebugCounters() throws FloodlightModuleException {<NEW_LINE>if (debugCounterService == null) {<NEW_LINE>log.error("Debug Counter Service not found.");<NEW_LINE>}<NEW_LINE>debugCounterService.registerModule(PACKAGE);<NEW_L...
registerCounter(PACKAGE, "lldp-eol", "End of Life for LLDP packets");
1,610,508
public static void main(String[] args) {<NEW_LINE>JFrame view = new JFrame("airline2");<NEW_LINE>view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<NEW_LINE>SDateField dep = new SDateField();<NEW_LINE>SDateField ret = new SDateField();<NEW_LINE>Rule r1 = new Rule((d, r) -> d.compareTo(r) <= 0);<NEW_LINE>Rule r2 = new...
view.add(dep, c);
73,282
private void doublingRatioExperiments() {<NEW_LINE>int digraphsPerExperiment = 5;<NEW_LINE>int initialVertices = 125;<NEW_LINE>int initialEdges = initialVertices * 10;<NEW_LINE>Exercise49_RandomSparseEdgeWeightedDigraphs.RandomEdgeWeightedDigraphs randomEdgeWeightedDigraphs = new Exercise49_RandomSparseEdgeWeightedDigr...
randomEdgeWeightedDigraphs.erdosRenyiDigraphUniformWeights(initialVertices, initialEdges);
757,473
public void plot(Staff staff) {<NEW_LINE>final Sheet sheet = system.getSheet();<NEW_LINE>final String frameTitle = sheet.getId() <MASK><NEW_LINE>final ChartPlotter plotter = new ChartPlotter(frameTitle, "Abscissae - staff interline:" + staff.getSpecificInterline(), "Counts");<NEW_LINE>// Draw time sig portion<NEW_LINE>...
+ " header staff#" + staff.getId();
1,341,473
protected Iterable<OIdentifiable> traversePatternEdge(OMatchStatement.MatchContext matchContext, OIdentifiable startingPoint, OCommandContext iCommandContext) {<NEW_LINE>Iterable possibleResults = null;<NEW_LINE>if (filter != null) {<NEW_LINE>OIdentifiable matchedNode = matchContext.matched.get(filter.getAlias());<NEW_...
possibleResults = Collections.singleton(matchedNode);
1,514,017
protected void processStopped(GdbStoppedEvent evt, Void v) {<NEW_LINE>String stoppedThreadsStr = evt.assumeStoppedThreads();<NEW_LINE>Collection<GdbThreadImpl> stoppedThreads;<NEW_LINE>if (null == stoppedThreadsStr || "all".equals(stoppedThreadsStr)) {<NEW_LINE>stoppedThreads = threads.values();<NEW_LINE>} else {<NEW_L...
), evt.getReason());
763,712
boolean checkIndex(final long index, final long position) {<NEW_LINE>try {<NEW_LINE>final long seq1 = queue.rollCycle().toSequenceNumber(index + 1) - 1;<NEW_LINE>final long seq2 = store.sequenceForPosition(this, position, true);<NEW_LINE>if (seq1 != seq2) {<NEW_LINE>final long seq3 = store.indexing.linearScanByPosition...
: "seq1=" + seq1 + ", seq2=" + seq2;
1,235,119
public Cursor<T> peekLast() {<NEW_LINE>while (true) {<NEW_LINE>Node<T> tail = get();<NEW_LINE>final int enqidx = tail.enqidx.get();<NEW_LINE>final int deqidx = tail.deqidx;<NEW_LINE>if (deqidx >= enqidx || deqidx >= BUFFER_SIZE) {<NEW_LINE>// we remove only from the head, so if tail is empty it means that queue is<NEW_...
items.get(idx - 1);
882,872
public static void sendComment(Executor executor, Handler handler, String commentMarkdown, String thingFullname, int parentDepth, Retrofit newAuthenticatorOauthRetrofit, Account account, SendCommentListener sendCommentListener) {<NEW_LINE>Map<String, String> headers = APIUtils.getOAuthHeader(account.getAccessToken());<...
sendCommentFailed(response.message());
50,050
public void handleRequest(RestRequest request, RequestContext requestContext, final Callback<RestResponse> callback) {<NEW_LINE>if (HttpMethod.POST != HttpMethod.valueOf(request.getMethod())) {<NEW_LINE>_log.error("POST is expected, but " + request.getMethod() + " received");<NEW_LINE>callback.onError(RestException.for...
.getCode(), "Invalid method"));
961,480
public HarvestedCollectionRest update(Context context, HttpServletRequest request, Collection collection) throws SQLException {<NEW_LINE>HarvestedCollectionRest harvestedCollectionRest = parseHarvestedCollectionRest(context, request, collection);<NEW_LINE>HarvestedCollection harvestedCollection = harvestedCollectionSer...
updateCollectionHarvestSettings(context, harvestedCollection, harvestedCollectionRest);
1,326,430
private void computeMSet() {<NEW_LINE>long min = 0;<NEW_LINE>long max = 0;<NEW_LINE>long nodes = 0;<NEW_LINE>long totalNodes = 0;<NEW_LINE>Set maps = unitToM.entrySet();<NEW_LINE>boolean first = true;<NEW_LINE>for (Iterator iter = maps.iterator(); iter.hasNext(); ) {<NEW_LINE>Map.Entry entry = (Map.Entry) iter.next();<...
println("average: " + totalNodes / nodes);
1,462,118
public void writeProperty(DataType dataType, Object value) {<NEW_LINE>switch(dataType) {<NEW_LINE>case BOOLEAN:<NEW_LINE>this.writeVInt(((Boolean) value) ? 1 : 0);<NEW_LINE>break;<NEW_LINE>case BYTE:<NEW_LINE>this.writeVInt((Byte) value);<NEW_LINE>break;<NEW_LINE>case INT:<NEW_LINE>this<MASK><NEW_LINE>break;<NEW_LINE>c...
.writeVInt((Integer) value);
1,523,552
private void postProcessMethodAndRegisterEndpointIfAny(Object bean, String beanName, Method method, Class<? extends Annotation> annotationType, List<Annotation> annotations, MethodAnnotationPostProcessor<?> postProcessor, Method targetMethod) {<NEW_LINE>Object result = postProcessor.postProcess(bean, beanName, targetMe...
annotations, "autoStartup", String.class);
1,267,535
public static DescribeDBInstanceMetricsResponse unmarshall(DescribeDBInstanceMetricsResponse describeDBInstanceMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstanceMetricsResponse.setRequestId(_ctx.stringValue("DescribeDBInstanceMetricsResponse.RequestId"));<NEW_LINE>describeDBInstanceMetricsResponse...
("DescribeDBInstanceMetricsResponse.Items[" + i + "].Dimension"));
1,328,895
public void save(Context ctx, SharedPreferences prefs) {<NEW_LINE>SharedPreferences.Editor edit = prefs.edit();<NEW_LINE>edit.putString("osmdroid.basePath", getOsmdroidBasePath().getAbsolutePath());<NEW_LINE>edit.putString("osmdroid.cachePath", getOsmdroidTileCache().getAbsolutePath());<NEW_LINE>edit.putBoolean("osmdro...
edit.putLong("osmdroid.ExpirationOverride", expirationOverride);
322,900
public PreviousCompilationData read(Decoder decoder) throws Exception {<NEW_LINE>HierarchicalNameSerializer hierarchicalNameSerializer = new HierarchicalNameSerializer(interner);<NEW_LINE>Supplier<HierarchicalNameSerializer> classNameSerializerSupplier = () -> hierarchicalNameSerializer;<NEW_LINE>ClassSetAnalysisData.S...
annotationProcessingData = annotationProcessingDataSerializer.read(decoder);