idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
709,262
public static ListNVRChannelDeviceResponse unmarshall(ListNVRChannelDeviceResponse listNVRChannelDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNVRChannelDeviceResponse.setRequestId(_ctx.stringValue("ListNVRChannelDeviceResponse.RequestId"));<NEW_LINE>listNVRChannelDeviceResponse.setSuccess(_ctx.booleanValue(...
(_ctx.stringValue("ListNVRChannelDeviceResponse.Total"));
1,623,703
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Lane.class, BPMN_ELEMENT_LANE).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<Lane>() {<NEW_LINE><NEW_LINE>public Lane newInstance(Mo...
PartitionElement.class).build();
172,475
final UpdateRdsDbInstanceResult executeUpdateRdsDbInstance(UpdateRdsDbInstanceRequest updateRdsDbInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRdsDbInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,532,740
private StructuredGraph copy(String newName, ResolvedJavaMethod rootMethodForCopy, OptionValues optionsForCopy, Consumer<UnmodifiableEconomicMap<Node, Node>> duplicationMapCallback, CompilationIdentifier newCompilationId, DebugContext debugForCopy, boolean trackNodeSourcePositionForCopy) {<NEW_LINE>AllowAssumptions all...
this.getNodeCount(), replacements);
497,860
private void validateInfo() {<NEW_LINE>// check repo id<NEW_LINE>String id = txtRepoId.getText().trim();<NEW_LINE>if (id.length() == 0) {<NEW_LINE>btnOK.setEnabled(false);<NEW_LINE>lblValidate.setText(LBL_Repo_id_Error1());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (id.indexOf('/') != -1) {<NEW_LINE>btnOK.setEnabled(fals...
lblValidate.setText(LBL_Repo_Url_Error());
617,987
public SubjectAreaOMASAPIResponse<Project> deleteProject(String serverName, String userId, String guid) {<NEW_LINE>final String methodName = "deleteProject";<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("==> Method: " + methodName + ",userId=" + userId + ",guid=" + guid);<NEW_LINE>}<NEW_LINE>SubjectAreaOMASA...
exception, auditLog, className, methodName);
1,167,197
private static String samsungGetFeaturesListHandler(RendererConfiguration renderer) {<NEW_LINE>StringBuilder features = new StringBuilder();<NEW_LINE>String rootFolderId = PMS.get().getRootFolder(renderer).getResourceId();<NEW_LINE>features.append("<Features xmlns=\"urn:schemas-upnp-org:av:avs\"");<NEW_LINE>features.ap...
(features.toString()));
48,231
public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));<NEW_LINE>if (targetPlayer != null) {<NEW_LINE>Ability newSource = source.copy();<NEW_LINE>newSource.setWorksFaceDown(true);<NEW_LINE>Set<Card> cards = targetPlayer.getLibrary(<MASK...
).getTopCards(game, amount);
435,240
private void selectTargetModel(final TargetPoint point, final View view) {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>if (app == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final UiUtilities iconsCache = app.getUIUtilities();<NEW_LINE>final PopupMenu optionsMenu = new PopupMenu(requireActivity...
).reorderAllTargetPoints(allTargets, true);
945,319
final void putAll(final K key, final Iterable<? extends V> values) {<NEW_LINE>final int keyHash <MASK><NEW_LINE>final int bucketIndex = index(keyHash);<NEW_LINE>BucketHead<K, V> bucketHead = entries[bucketIndex];<NEW_LINE>if (bucketHead != null) {<NEW_LINE>for (final V v : values) {<NEW_LINE>putEntry(bucketHead, keyHas...
= hashCode(validateKey(key));
1,029,434
public static void main(String[] args) throws Exception {<NEW_LINE>LogConfigurator logConfigurator = new LogConfigurator(DEFAULT_LOGBACK_CONFIGURATION_FILE);<NEW_LINE>logConfigurator.initialize();<NEW_LINE>copyPluginAssets();<NEW_LINE>File webApp = new File("src/main/webapp");<NEW_LINE>if (!webApp.exists()) {<NEW_LINE>...
set(SystemEnvironment.PLUGIN_LOCATION_MONITOR_INTERVAL_IN_SECONDS, 5);
1,854,789
private static Map<String, String> parseErrorPages(Element webXml) throws Exception {<NEW_LINE>Map<String, String> errorPages = new HashMap<>();<NEW_LINE>XPath xpath = XPathFactory.newInstance().newXPath();<NEW_LINE>NodeList exceptionTypes = (NodeList) xpath.compile(ERROR_PAGE_EXCEPTION_TYPE_EXPRESSION).evaluate(webXml...
errorPages.put(null, defaultLocation);
1,578,576
private static <E extends CoreMap> String detectQuantityModifier(List<E> list, int beforeIndex, int afterIndex) {<NEW_LINE>String prev = (beforeIndex >= 0) ? list.get(beforeIndex).get(CoreAnnotations.TextAnnotation.class).toLowerCase() : "";<NEW_LINE>String prev2 = (beforeIndex - 1 >= 0) ? list.get(beforeIndex - 1).get...
class).toLowerCase() : "";
1,393,102
final EnableClientAuthenticationResult executeEnableClientAuthentication(EnableClientAuthenticationRequest enableClientAuthenticationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableClientAuthenticationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,587,664
public RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory, RelDataType argumentType) {<NEW_LINE>RelDataType inferredType;<NEW_LINE><MASK><NEW_LINE>int scale = argumentType.getScale();<NEW_LINE>final RelDataTypeSystem typeSystem = typeFactory.getTypeSystem();<NEW_LINE>final int maxNumericPrecision = typeSystem....
int precision = argumentType.getPrecision();
954,176
public Explanation explain(LeafReaderContext context, int doc) throws IOException {<NEW_LINE>RuntimePhraseScorer scorer = scorer(context);<NEW_LINE>if (scorer == null) {<NEW_LINE>return Explanation.noMatch("No matching phrase");<NEW_LINE>}<NEW_LINE>final TwoPhaseIterator twoPhase = scorer.twoPhaseIterator();<NEW_LINE>i...
match(phraseFreq, "phraseFreq=" + phraseFreq);
1,032,573
public void drop(DropTargetDropEvent dtde) {<NEW_LINE>if (accept == null) {<NEW_LINE>dtde.dropComplete(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);<NEW_LINE>List<File> files = null;<NEW_LINE>if (value instanceof String) {<NEW_LINE>files = new ArrayList<F...
lt = outer.findTabForModel(model);
208,407
public synchronized void addPartition(ConnectorSession session, String databaseName, String tableName, String tablePath, boolean isNewTable, Partition partition, Path currentLocation, PartitionStatistics statistics) {<NEW_LINE>setShared();<NEW_LINE>checkArgument(getPrestoQueryId(partition).isPresent());<NEW_LINE>Map<Li...
databaseName, tableName, tablePath, isNewTable);
343,084
private void readHeader(Dex.Section headerIn) throws UnsupportedEncodingException {<NEW_LINE>byte[] magic = headerIn.readByteArray(8);<NEW_LINE>if (!DexFormat.isSupportedDexMagic(magic)) {<NEW_LINE>throw new DexException2("Unexpected magic: " + Arrays.toString(magic));<NEW_LINE>}<NEW_LINE>apiLevel = DexFormat.magicToAp...
.size = headerIn.readInt();
925,659
void runActiveCellPhase() {<NEW_LINE>activeCellMaps = new HashMap<>(upAndCoreGraphDistMap.<MASK><NEW_LINE>activeCellMaps.put(isochroneNodeStorage.getCellId(fromNonVirtual), startCellMap);<NEW_LINE>for (Map.Entry<Integer, Map<Integer, Double>> entry : upAndCoreGraphDistMap.entrySet()) {<NEW_LINE>ActiveCellDijkstra activ...
entrySet().size());
578,187
public Set<BeanDefinitionHolder> parse(AnnotationAttributes componentScan, String declaringClass) {<NEW_LINE>ClassPathBeanDefinitionScanner scanner = new ClassPathBeanDefinitionScanner(this.registry, componentScan.getBoolean("useDefaultFilters"), this.environment, this.resourceLoader);<NEW_LINE>Class<? extends BeanName...
Collections.addAll(basePackages, tokenized);
581,489
public static void invokeImpl(Project project, Editor editor, final PsiFile file, Injectable injectable) {<NEW_LINE>final PsiLanguageInjectionHost host = findInjectionHost(editor, file);<NEW_LINE>if (host == null)<NEW_LINE>return;<NEW_LINE>if (defaultFunctionalityWorked(host, injectable.getId()))<NEW_LINE>return;<NEW_L...
).showInformationHint(editor, text);
1,349,803
final DescribePendingMaintenanceActionsResult executeDescribePendingMaintenanceActions(DescribePendingMaintenanceActionsRequest describePendingMaintenanceActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePendingMaintenanceActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
(super.beforeMarshalling(describePendingMaintenanceActionsRequest));
1,487,767
public VersionedRook renameBook(Uri fromUri, String name) throws IOException {<NEW_LINE>String fromFilePath = fromUri.getPath();<NEW_LINE>if (fromFilePath == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>File fromFile = new File(fromFilePath);<NEW_LINE>Uri newUri = UriUtils.getUriForNewName(fromUri, name);<NEW_LINE>Strin...
throw new IllegalArgumentException("No path in " + fromUri);
1,665,159
private List<ModelScore> scoreFull(String input, int maxSampleCount) {<NEW_LINE>int[] samplingPoints;<NEW_LINE>if (maxSampleCount <= 0) {<NEW_LINE>samplingPoints = getStepping(input, input.length());<NEW_LINE>} else {<NEW_LINE>samplingPoints = getStepping(input, maxSampleCount);<NEW_LINE>}<NEW_LINE>List<ModelScore> mod...
Lists.newArrayListWithCapacity(modelIdArray.length);
911,769
public ValidationErrors validate(final StandaloneCatalog catalog, final ValidationErrors errors) {<NEW_LINE>if (billingMode == BillingMode.IN_ADVANCE && usageType == UsageType.CAPACITY && limits.length == 0) {<NEW_LINE>errors.add(new ValidationError(String.format("Usage [IN_ADVANCE CAPACITY] section of phase %s needs t...
, DefaultUsage.class, ""));
346,494
protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 157, 23)).warning(WarningType.NOT_ENOUGH_ENERGY, tile.getWarningCheck(RecipeError.NOT_ENOUGH_ENERGY));<NEW_LINE>addRenderableWidget(new GuiEnergyTab(this, tile.getEner...
, 14, () -> iterStacks);
443,279
private long writeOpentsdb(RecordReceiver lineReceiver, JniConnection conn, int batchSize) {<NEW_LINE>long recordIndex = 1;<NEW_LINE>try {<NEW_LINE>Record record;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>while ((record = lineReceiver.getFromReader()) != null) {<NEW_LINE>if (batchSize == 1) {<NEW_LINE>S...
LOG.debug(">>> " + jsonData);
1,132,504
private void initComponents() {<NEW_LINE>jlKeySize = new JLabel(res.getString("DGenerateSecretKey.jlKeySize.text"));<NEW_LINE>jsKeySize = new JSpinner();<NEW_LINE>jsKeySize.setToolTipText(res.getString("DGenerateSecretKey.jsKeySize.tooltip"));<NEW_LINE>jpKeySize = new JPanel(new FlowLayout(FlowLayout.LEFT));<NEW_LINE>j...
getRootPane().setDefaultButton(jbOK);
586,320
public synchronized void updateLocation(Location location) {<NEW_LINE>currentLocation = location;<NEW_LINE>if (autoAnnounce && app.accessibilityEnabled()) {<NEW_LINE>final TargetPoint point = app.getTargetPointsHelper().getPointToNavigate();<NEW_LINE>if (point != null) {<NEW_LINE>if ((currentLocation != null) && curren...
long now = SystemClock.uptimeMillis();
1,672,814
private void checkThreadDumpsCreated(boolean threadDumpsEnabled) throws Exception {<NEW_LINE>CommonTasks.<MASK><NEW_LINE>server.waitForStringInLog("CWWKE0067I", 30000);<NEW_LINE>List<String> threadDumpRequestlines = server.findStringsInLogsUsingMark("CWWKE0067I", MESSAGE_LOG);<NEW_LINE>CommonTasks.writeLogMsg(Level.INF...
writeLogMsg(Level.INFO, "----> Waiting for Thread dump request received message...");
670,213
private void attachAnnotationProcessorsOutputDirectories(CompileContextEx context) {<NEW_LINE>final <MASK><NEW_LINE>final Set<Module> affected = new HashSet<>(Arrays.asList(context.getCompileScope().getAffectedModules()));<NEW_LINE>for (Module module : affected) {<NEW_LINE>for (AdditionalOutputDirectoriesProvider provi...
LocalFileSystem lfs = LocalFileSystem.getInstance();
742,735
ActionResult<WrapOutId> execute(String appDictFlag, String appInfoFlag, String path0, String path1, String path2, String path3, String path4) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutId> result = new ActionResult<>();...
find(id, AppDict.class);
1,379,844
private void createActions() {<NEW_LINE>DockingAction previousProviderAction = new DockingAction(GO_TO_LAST_ACTIVE_COMPONENT_ACTION_NAME, getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionContext context) {<NEW_LINE>providerActivator.accept(previousActiveProvider);<NEW_LINE>}<NEW_LINE...
new HelpLocation("Navigation", "Navigation_Previous_Provider"));
1,472,844
private PredicateFinalStep generateDateOrdinalSearchTerms(String theSearchParamName, DateParam theDateParam) {<NEW_LINE>String lowerOrdinalField = SEARCH_PARAM_ROOT + "." + theSearchParamName + ".dt.lower-ord";<NEW_LINE>String upperOrdinalField = SEARCH_PARAM_ROOT + "." + theSearchParamName + ".dt.upper-ord";<NEW_LINE>...
.replace("-", ""));
1,454,197
private void addServiceEntriesToDD(String serviceName) {<NEW_LINE>// add servlet entry to web.xml<NEW_LINE>String servletName = serviceName;<NEW_LINE>WebApp webApp = getWebApp();<NEW_LINE>if (webApp != null) {<NEW_LINE>Servlet servlet;<NEW_LINE>try {<NEW_LINE>servlet = (Servlet) webApp.addBean("Servlet", new String[] {...
[] { servletListener }, "ListenerClass");
1,104,541
public void onChildDraw(Canvas c, RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {<NEW_LINE>if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE && viewHolder instanceof MapMarkerItemViewHolder) {<NEW_LINE>if (!iconHidden && isCurrentlyAct...
colorIcon = ColorUtilities.getDefaultIconColorId(night);
924,874
public static boolean isMavenFXProject(@NonNull final Project prj) {<NEW_LINE>if (isMavenProject(prj)) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>FileObject pomXml = prj.<MASK><NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder...
getProjectDirectory().getFileObject("pom.xml");
1,285,896
public void onPublish(InterceptPublishMessage msg) {<NEW_LINE>String clientId = msg.getClientID();<NEW_LINE>ByteBuf payload = msg.getPayload();<NEW_LINE>String topic = msg.getTopicName();<NEW_LINE>String username = msg.getUsername();<NEW_LINE><MASK><NEW_LINE>LOG.debug("Receive publish message. clientId: {}, username: {...
MqttQoS qos = msg.getQos();
1,211,999
public TrailInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrailInfo trailInfo = new TrailInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
class).unmarshall(context));
774,956
private static ImportedIdentity parseIdentity(XmlPullParser xpp) throws XmlPullParserException, IOException {<NEW_LINE>ImportedIdentity identity = new ImportedIdentity();<NEW_LINE>int eventType = xpp.next();<NEW_LINE>while (!(eventType == XmlPullParser.END_TAG && SettingsExporter.IDENTITY_ELEMENT.equals(xpp.getName()))...
String element = xpp.getName();
498,205
void collect() {<NEW_LINE>ExecutableElement factoryMethodElement = (ExecutableElement) protoclass.sourceElement();<NEW_LINE>Parameterizable element = (Parameterizable) (factoryMethodElement.getKind() == ElementKind.CONSTRUCTOR ? factoryMethodElement.getEnclosingElement() : type.element);<NEW_LINE>for (VariableElement p...
instantiationCreator = encodingInstantiator.creatorFor(element);
609,530
private static boolean partialEntryMatch(String entry, String targetEntry) {<NEW_LINE>if (entry.equals(targetEntry)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!entry.endsWith(targetEntry)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Make sure the first matching part is a full entry. We don't want to match "/b...
|| precedingChar == '/' || precedingChar == '!';
1,367,054
private boolean refresh(long now, Connector clusterManagementConnector) {<NEW_LINE>boolean expired = false;<NEW_LINE>long freshTimeNanos = now - configuration.get(DtlsClusterManagerConfig.REFRESH_INTERVAL, TimeUnit.NANOSECONDS);<NEW_LINE>long expireTimeNanos = freshTimeNanos - configuration.get(DtlsClusterManagerConfig...
nextInt(nodes.size());
516,948
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) throws IOException {<NEW_LINE>if (progressMonitor != null && progressMonitor.isCanceled())<NEW_LINE>throw new OperationCanceledException();<NEW_LINE>resetQuer...
requestor, participant, scope, progressMonitor);
1,470,522
private void sendHttpResponse(HttpRequest request, Response coapResponse, ResponseTrigger responseTrigger, HttpContext context) {<NEW_LINE>LOGGER.debug("Incoming response: {}", coapResponse);<NEW_LINE>try {<NEW_LINE>// translate the coap response in an http response<NEW_LINE>ProxyResponseProducer httpResponse = transla...
"Outgoing http response: {}", httpResponse.getStatusLine());
1,395,756
public URI generateRedirectUri(String samlParameterName, String redirectUri, Document document) throws ConfigurationException, ProcessingException, IOException {<NEW_LINE>KeycloakUriBuilder builder = KeycloakUriBuilder.fromUri(redirectUri);<NEW_LINE>int pos = builder.getQuery() == null ? 0 : builder.getQuery().length()...
] sig = new byte[0];
608,624
private void createActions() {<NEW_LINE>DockingAction analyzeInstructionsAction = new DockingAction("Analyze Selected Node", plugin.getName()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionContext context) {<NEW_LINE>InstructionTreeContext iTreeContext = (InstructionTreeContext) context;<NEW...
= new HelpLocation("FunctionBitPatternsExplorerPlugin", "Function_Bit_Patterns_Explorer_Plugin");
228,260
private double[] computeScoreNumDenom(INDArray labels, INDArray preOutput, IActivation activationFn, INDArray mask, boolean average) {<NEW_LINE>INDArray output = activationFn.getActivation(preOutput.dup(), true);<NEW_LINE>long n = labels.size(1);<NEW_LINE>if (n != 1 && n != 2) {<NEW_LINE>throw new UnsupportedOperationE...
pClass0 = output.getColumn(0);
375,683
void readPersistence() {<NEW_LINE>if (persistenceFile.exists()) {<NEW_LINE>try {<NEW_LINE>properties.load(new FileInputStream(persistenceFile));<NEW_LINE>String ebene = properties.getProperty("ebene", String.valueOf(controlUnit.getEbene()));<NEW_LINE>int <MASK><NEW_LINE>if (ebe >= 0) {<NEW_LINE>controlUnit.setEbene(ebe...
ebe = Integer.valueOf(ebene);
1,021,088
private void dumpBody(Part p) throws Exception {<NEW_LINE>// http://www.iana.org/assignments/media-types/<NEW_LINE>log.finer("=================================================================");<NEW_LINE>log.finer("CONTENT-TYPE: " + p.getContentType());<NEW_LINE>if (p.isMimeType("text/plain")) {<NEW_LINE>log.finer("Pla...
Part) p.getContent());
1,567,237
public boolean substituteMethodInvocation(MethodInvocationElement invocation) {<NEW_LINE>if (invocation.getTargetExpression() != null) {<NEW_LINE>Element targetType = invocation.getTargetExpression().getTypeAsElement();<NEW_LINE>if (BigDecimal.class.getName().equals(targetType.toString())) {<NEW_LINE>// BigDecimal meth...
printMacroName(invocation.getMethodName());
307,929
protected void initialize() {<NEW_LINE>mIdNameToId.clear();<NEW_LINE>mIdToIdName.clear();<NEW_LINE>final Class<?> sysIdClass = getSystemClass();<NEW_LINE>readClassIds(sysIdClass, "android", mIdNameToId);<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>final Class<?> rIdClass = Class.forName(localClassName);<NEW_LINE>readClassI...
final String localClassName = getLocalClassName(mContext);
350,638
private void rescheduleProcessNewHost(final Host host, final HostIdentifier hostId) {<NEW_LINE>int timerInterval = GlobalPreferences.sharedInstance().getMonitoredHostPoll();<NEW_LINE>Timer timer = new Timer(timerInterval * 1000, new ActionListener() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_...
descriptors = HostPropertiesProvider.descriptorsForHost(host);
1,384,258
public static QueryRecordResponse unmarshall(QueryRecordResponse queryRecordResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRecordResponse.setRequestId(_ctx.stringValue("QueryRecordResponse.RequestId"));<NEW_LINE>queryRecordResponse.setSuccess(_ctx.booleanValue("QueryRecordResponse.Success"));<NEW_LINE>queryRecordR...
(_ctx.integerValue("QueryRecordResponse.Data.Page"));
1,142,468
private Mono<Response<Void>> deleteAuthorizationRuleWithResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require...
error(new IllegalArgumentException("Parameter namespaceName is required and cannot be null."));
718,144
public boolean applyFirewallRules(Network network, List<? extends FirewallRule> rules) throws ResourceUnavailableException {<NEW_LINE>// Find the external firewall in this zone<NEW_LINE><MASK><NEW_LINE>DataCenterVO zone = _dcDao.findById(zoneId);<NEW_LINE>ExternalFirewallDeviceVO fwDeviceVO = getExternalFirewallForNetw...
long zoneId = network.getDataCenterId();
1,841,227
private FileSlice spillToDisk(final InputStream inputStream, final String tempFileBaseName, final byte[] buf, final byte[] overflowBuf, final LogNode log) throws IOException {<NEW_LINE>// Create temp file<NEW_LINE>File tempFile;<NEW_LINE>try {<NEW_LINE>tempFile = makeTempFile(tempFileBaseName, /* onlyUseLeafname = */<N...
"Could not fit InputStream content into max RAM buffer size, saving to temporary file: " + tempFileBaseName + " -> " + tempFile);
65,650
final AttachPolicyResult executeAttachPolicy(AttachPolicyRequest attachPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
501,751
public PersonMatch unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PersonMatch personMatch = new PersonMatch();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
)).unmarshall(context));
1,725,319
public static Properties argsToPropertiesWithResolve(String[] args) {<NEW_LINE>LinkedHashMap<String, String> result = new LinkedHashMap<>();<NEW_LINE>Map<String, String> existingArgs = new LinkedHashMap<>();<NEW_LINE>for (int i = 0; i < args.length; i++) {<NEW_LINE>String key = args[i];<NEW_LINE>if (key.length() > 0 &&...
flagArgs = new ArrayList<>();
988,470
final DeleteAuditSuppressionResult executeDeleteAuditSuppression(DeleteAuditSuppressionRequest deleteAuditSuppressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAuditSuppressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
1,774,703
public AcquiredJobs execute(CommandContext commandContext) {<NEW_LINE>acquiredJobs = new AcquiredJobs(numJobsToAcquire);<NEW_LINE>List<AcquirableJobEntity> jobs = commandContext.getJobManager().findNextJobsToExecute(new Page(0, numJobsToAcquire));<NEW_LINE>Map<String, List<String>> exclusiveJobsByProcessInstance = new ...
job.getProcessInstanceId(), list);
1,224,889
/*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private Object invokeFunctionAndEnrichResultIfNecessary(Object value) {<NEW_LINE>AtomicReference<Message<?>> firstInputMessage = new AtomicReference<>();<NEW_LINE>Object inputValue;<NEW_LINE>if (value instanceof Flux) {<NEW_LINE>inputValue = ((F...
.target).apply(inputValue);
672,359
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>Connection conn = null;<NEW_LINE>try {<NEW_LINE>String gameType = request.getParameter("type");<NEW_LINE>if (!gameTypes.containsKey(gameType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Context env =...
"Error in FreecivStatsServlet" + err.getMessage());
1,548,065
void extractSignalPrograms(XMLAdmin2 x, ControlUnit controlUnit) throws XMLNodeNotFoundException, MalformedKeyOrNameException, SAXException, IOException {<NEW_LINE>if (!x.hasNode("SignalprogrammListe")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int signalProgramsCount = x.getNodesCount("SignalprogrammListe.Signalprogramm"...
controlUnit.signalPrograms.add(sp);
1,533,765
private Object decodeStandard(Channel channel, SocketAddress remoteAddress, String sentence) throws Exception {<NEW_LINE>String[] fragments = sentence.split(";");<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, fragments[2]);<NEW_LINE>if (deviceSession == null) {<NEW_LINE>return null;<NE...
], true, false, true);
1,650,481
final UpdateVpcLinkResult executeUpdateVpcLink(UpdateVpcLinkRequest updateVpcLinkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVpcLinkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
102,905
public void onChatOnlineStatusUpdate(MegaChatApiJava api, long userHandle, int status, boolean inProgress) {<NEW_LINE>logDebug(<MASK><NEW_LINE>if (inProgress) {<NEW_LINE>status = -1;<NEW_LINE>}<NEW_LINE>if (megaChatApi != null) {<NEW_LINE>recentChatsFragment = (RecentChatsFragment) getSupportFragmentManager().findFragm...
"Status: " + status + ", In Progress: " + inProgress);
1,399,207
private void reportUnknown(final MethodCreator mc) {<NEW_LINE>mc.setModifiers(Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC);<NEW_LINE>ResultHandle unknownProperty = mc.getMethodParam(0);<NEW_LINE>// Ignore all build property names. This is to ignore any properties mapped with @ConfigMapping, because<NEW_LINE>// these do no...
trueBranch().returnValue(null);
575,241
private void generateJMSDestinationDefinition(FileObject classFile, final JmsDestinationDefinition def) throws IOException {<NEW_LINE>JavaSource js = JavaSource.forFileObject(classFile);<NEW_LINE>js.runModificationTask(new Task<WorkingCopy>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(WorkingCopy parameter...
def.getName())));
1,325,671
public Object readObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>if (jsonReader.readIfNull()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (jsonReader.nextIfMatch('[')) {<NEW_LINE>boolean[<MASK><NEW_LINE>int size = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>if (jsonReader.nextIfMatch...
] values = new boolean[16];
933,830
public void marshall(Mpeg2Settings mpeg2Settings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mpeg2Settings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mpeg2Settings.getAdaptiveQuantization(), ADAP...
mpeg2Settings.getColorMetadata(), COLORMETADATA_BINDING);
961,881
static List<VariableTree> createVariables(WorkingCopy copy, List<VariableElement> parameters, TreePath targetParent, List<TreePath> statements) {<NEW_LINE>final TreeMaker make = copy.getTreeMaker();<NEW_LINE>List<VariableTree> formalArguments = new LinkedList<VariableTree>();<NEW_LINE>CodeStyle cs = CodeStyle.getDefaul...
, codeStyleName, type, null));
1,385,146
public void predictOddOddSafe(byte[] ref, int refX, int refY, int refW, int refH, int refVertStep, int refVertOff, int[] tgt, int tgtY, int tgtW, int tgtH, int tgtVertStep) {<NEW_LINE>int offRef = ((refY << refVertStep) + refVertOff) * refW + refX, offTgt = tgtW * tgtY, lfRef = (refW << refVertStep) - tgtW, lfTgt = tgt...
* tgtW, stride = refW << refVertStep;
273,120
public void addDataRecord(@NonNull final I_MD_Cockpit cockpitRecord) {<NEW_LINE>final IProductBL productBL = Services.get(IProductBL.class);<NEW_LINE>final I_C_UOM uom = productBL.getStockUOM(cockpitRecord.getM_Product_ID());<NEW_LINE>pmmQtyPromised = addToNullable(pmmQtyPromised, cockpitRecord.getPMM_QtyPromised_OnDat...
cockpitRecord.getQtyDemand_DD_Order(), uom);
1,027,161
public static void writeRootElement(BpmnModel model, XMLStreamWriter xtw, String encoding) throws Exception {<NEW_LINE>xtw.writeStartDocument(encoding, "1.0");<NEW_LINE>// start definitions root element<NEW_LINE>xtw.writeStartElement(BPMN2_PREFIX, ELEMENT_DEFINITIONS, BPMN2_NAMESPACE);<NEW_LINE>xtw.setDefaultNamespace(...
xtw.writeNamespace(BPMNDI_PREFIX, BPMNDI_NAMESPACE);
341,588
private static Polygon createLakeSuperiorPolygon() {<NEW_LINE>PointCollection points = new <MASK><NEW_LINE>points.add(new Point(-10254374.668616, 5908345.076380));<NEW_LINE>points.add(new Point(-10178382.525314, 5971402.386779));<NEW_LINE>points.add(new Point(-10118558.923141, 6034459.697178));<NEW_LINE>points.add(new ...
PointCollection(SpatialReferences.getWebMercator());
1,763,255
public final void basicExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST basicExpr_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case DOT:<NEW_LINE>case DOTDOT:<NEW_LINE>case ID:<NEW_LINE>case WILDCARD:<NEW_LINE>case LBRACKET:...
(1), getFilename());
1,015,314
public static void loadRoutingFiles(@NonNull final OsmandApplication app, @Nullable final LoadRoutingFilesCallback callback) {<NEW_LINE>new AsyncTask<Void, Void, Map<String, RoutingConfiguration.Builder>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Map<String, RoutingConfiguration.Builder> doInBackground(Void.....
= new RoutingConfiguration.Builder(defaultAttributes);
380,483
public static JFreeChart createXYStepChart(String title, String xAxisLabel, String yAxisLabel, XYDataset dataset, PlotOrientation orientation, boolean legend, boolean tooltips, boolean urls) {<NEW_LINE>Args.nullNotPermitted(orientation, "orientation");<NEW_LINE>DateAxis xAxis = new DateAxis(xAxisLabel);<NEW_LINE><MASK>...
NumberAxis yAxis = new NumberAxis(yAxisLabel);
215,236
private static void serializePrimitive(BlockBuilder blockBuilder, Object value, Type type, String columnName) {<NEW_LINE>requireNonNull(blockBuilder, "parent blockBuilder is null");<NEW_LINE>if (value == null) {<NEW_LINE>blockBuilder.appendNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (type instanceof BooleanType) {<...
(blockBuilder, (Double) value);
632,390
private static AnyValue convertNotifications(Iterable<Notification> notifications) {<NEW_LINE>ListValueBuilder listValueBuilder = ListValueBuilder.newListBuilder();<NEW_LINE>for (Notification notification : notifications) {<NEW_LINE>// position is optional<NEW_LINE>InputPosition pos = notification.getPosition();<NEW_LI...
MapValueBuilder builder = new MapValueBuilder(size);
1,255,203
void updateChannelFilter() {<NEW_LINE>var selected = comboChannels.getSelectionModel().getSelectedItem();<NEW_LINE>if (selected == null || selected.isBlank() || NO_CHANNEL_FILTER.equals(selected)) {<NEW_LINE>measurementsFiltered.setPredicate(ALWAYS_TRUE);<NEW_LINE>} else {<NEW_LINE>var lowerSelected = selected.trim().t...
findFirst().orElse(null);
702,877
final GetInfrastructureConfigurationResult executeGetInfrastructureConfiguration(GetInfrastructureConfigurationRequest getInfrastructureConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInfrastructureConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
(super.beforeMarshalling(getInfrastructureConfigurationRequest));
1,605,824
public static int run(String cmd) {<NEW_LINE>lastRunResult = runTime.runcmd(cmd);<NEW_LINE>String NL <MASK><NEW_LINE>String[] res = lastRunResult.split(NL);<NEW_LINE>try {<NEW_LINE>lastRunReturnCode = Integer.parseInt(res[0].trim());<NEW_LINE>} catch (Exception ex) {<NEW_LINE>}<NEW_LINE>lastRunStdout = "";<NEW_LINE>las...
= runTime.runningWindows ? "\r\n" : "\n";
1,141,773
protected void showPopupLangMenu(View view, String langSelected) {<NEW_LINE>if (langs == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final PopupMenu popup = new PopupMenu(view.getContext(), view, Gravity.END);<NEW_LINE>Map<String, String> names = new HashMap<>();<NEW_LINE>for (String n : langs) {<NEW_LINE>names.put(n,...
sortedNames = AndroidUtils.sortByValue(names);
51,427
public String unescapeDataTypeName(String dataTypeName) {<NEW_LINE>int indexOfPeriod = dataTypeName.indexOf('.');<NEW_LINE>if (indexOfPeriod < 0) {<NEW_LINE>if (dataTypeName.matches("\\[[^]\\[]++\\]")) {<NEW_LINE>dataTypeName = dataTypeName.substring(1, <MASK><NEW_LINE>}<NEW_LINE>return dataTypeName;<NEW_LINE>}<NEW_LIN...
dataTypeName.length() - 1);
115,845
static brave.http.HttpServerRequest toBrave(HttpServerRequest request) {<NEW_LINE>if (request == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (request instanceof BraveHttpServerRequest) {<NEW_LINE>return ((BraveHttpServerRequest) request).delegate;<NEW_LINE>}<NEW_LINE>return new brave.http.HttpServerRequest() {...
String addr = servletRequest.getRemoteAddr();
1,076,676
protected WizardDescriptor.Panel[] initializePanels() {<NEW_LINE>WizardDescriptor.Panel[] panels <MASK><NEW_LINE>repositoryStep = new RepositoryStep(Repository.FLAG_ACCEPT_REVISION, RepositoryStep.CHECKOUT_HELP_ID);<NEW_LINE>repositoryStep.addChangeListener(CheckoutWizard.this);<NEW_LINE>checkoutStep = new CheckoutStep...
= new WizardDescriptor.Panel[3];
245,544
private boolean importSingleFile(@NonNull final Path fileToImport, @NonNull final Path outputDirectory) {<NEW_LINE>try {<NEW_LINE>final ImportInvoiceResponseRequest request = createRequest(fileToImport);<NEW_LINE>final <MASK><NEW_LINE>final ImportedInvoiceResponse response = invoiceImportClientImpl.importInvoiceRespons...
InvoiceImportClientImpl invoiceImportClientImpl = new InvoiceImportClientImpl(crossVersionServiceRegistry);
1,623,816
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
571,816
private static long toLong(String stringValue, boolean coerce) {<NEW_LINE>try {<NEW_LINE>return Long.parseLong(stringValue);<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>// we will try again with BigDecimal<NEW_LINE>}<NEW_LINE>final BigInteger bigIntegerValue;<NEW_LINE>try {<NEW_LINE>BigDecimal bigDecimalValue...
IllegalArgumentException("Cannot convert input string: \"" + stringValue + "\" to biginteger");
1,802,917
protected int overrun(int itemSize, int nItems, boolean wait) {<NEW_LINE>if (itemSize > bufSize)<NEW_LINE>throw new Exception("FdInStream overrun: max itemSize exceeded");<NEW_LINE>if (end - ptr != 0)<NEW_LINE>System.arraycopy(b, ptr, b, 0, end - ptr);<NEW_LINE>offset += ptr;<NEW_LINE>end -= ptr;<NEW_LINE>ptr = 0;<NEW_...
(b).position(end);
1,030,129
public AutoAdjustData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AutoAdjustData autoAdjustData = new AutoAdjustData();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g...
int originalDepth = context.getCurrentDepth();
1,383,432
private BeanReference createAuthenticationManager(Element element, ParserContext pc, ManagedList<BeanReference> authenticationProviders) {<NEW_LINE>String parentMgrRef = element.getAttribute(ATT_AUTHENTICATION_MANAGER_REF);<NEW_LINE>BeanDefinitionBuilder authManager = BeanDefinitionBuilder.rootBeanDefinition(ProviderMa...
(pc.extractSource(element));
367,648
public void rollbackPreparedTransaction(String xid) throws SIBTransactionException, SIBPersistenceException {<NEW_LINE>String thisMethodName = "rollbackPreparedTransaction";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, thisMethodName, xid);<NEW_LINE>if (_messageStor...
SIBPersistenceException(e.getMessage());
1,176,982
public RedirectView multipull(@RequestParam("subscription1") String subscriptionName1, @RequestParam("subscription2") String subscriptionName2) {<NEW_LINE>Set<AcknowledgeablePubsubMessage> <MASK><NEW_LINE>mixedSubscriptionMessages.addAll(this.pubSubTemplate.pull(subscriptionName1, 1000, true));<NEW_LINE>mixedSubscripti...
mixedSubscriptionMessages = new HashSet<>();
1,466,353
private String capabilitiesToQuotedCmdlineArg() {<NEW_LINE>if (capabilities == null) {<NEW_LINE>return "{}";<NEW_LINE>}<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>Map<String, ?> capabilitiesMap = capabilities.asMap();<NEW_LINE>Set<? extends Map.Entry<String, ?>> entries = capabilitiesMap.entrySet();<...
replace("\\", "/") + "\\\"";
949,277
void blockContact(Cursor c) {<NEW_LINE>final IImConnection conn = getConnection(c);<NEW_LINE>String nickname = c.getString(c.getColumnIndexOrThrow(Imps.Contacts.NICKNAME));<NEW_LINE>final String address = c.getString(c.getColumnIndexOrThrow(Imps.Contacts.USERNAME));<NEW_LINE>DialogInterface.OnClickListener confirmListe...
res = manager.blockContact(address);