idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
828,320
final DisassociateCustomerGatewayResult executeDisassociateCustomerGateway(DisassociateCustomerGatewayRequest disassociateCustomerGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateCustomerGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
693,659
private void doCommit(ArtifactModelImpl artifactModel) {<NEW_LINE>boolean hasChanges;<NEW_LINE>LOG.assertTrue(!myInsideCommit, "Recursive commit");<NEW_LINE>myInsideCommit = true;<NEW_LINE>try {<NEW_LINE>final List<ArtifactImpl> allArtifacts = artifactModel.getOriginalArtifacts();<NEW_LINE>final Set<ArtifactImpl> remov...
), pair.getSecond());
874,403
public static String printClass(MemoryLint context, String cls) {<NEW_LINE>if (cls.startsWith("<< ")) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>cls = cls.substring("<< ".length());<NEW_LINE>}<NEW_LINE>if ("unknown".equals(cls)) {<NEW_LINE>// NOI18N<NEW_LINE>return NbBundle.getMessage(Utils.class, "LBL_UnknownCla...
colonIdx = cls.lastIndexOf(':');
767,530
private void latex(File file) throws IOException {<NEW_LINE><MASK><NEW_LINE>BufferedReader in = new BufferedReader(new FileReader(file));<NEW_LINE>//<NEW_LINE>File outFile = new File(fileName + ".txt");<NEW_LINE>BufferedWriter out = new BufferedWriter(new FileWriter(outFile, false));<NEW_LINE>String line = null;<NEW_LI...
String fileName = file.getAbsolutePath();
1,259,658
public static <T extends Set<OffsetRange>> NodeVisitor<T> createMarkOccurrencesNodeVisitor(EditorFeatureContext context, T result, NodeType... nodeTypesToMatch) {<NEW_LINE>final Snapshot snapshot = context.getSnapshot();<NEW_LINE>int astCaretOffset = snapshot.getEmbeddedOffset(context.getCaretOffset());<NEW_LINE>if (as...
Css3Utils.getDocumentOffsetRange(node, snapshot);
1,812,815
public void onBlockDispensing(BlockDispenseEvent e) {<NEW_LINE>Block b = e.getBlock();<NEW_LINE>if (b.getType() == Material.DISPENSER && b.getRelative(BlockFace.DOWN).getType() != Material.HOPPER) {<NEW_LINE>SlimefunItem <MASK><NEW_LINE>if (machine != null) {<NEW_LINE>machine.callItemHandler(BlockDispenseHandler.class,...
machine = BlockStorage.check(b);
1,303,497
static final // Used as helper to create byte arrays as well as loading Memory for direct compact sketches<NEW_LINE>Memory loadCompactMemory(final long[] compactHashArr, final short seedHash, final int curCount, final long thetaLong, final WritableMemory dstMem, final byte flags, final int preLongs) {<NEW_LINE>assert (...
(LG_NOM_LONGS_BYTE, (short) 0);
1,190,671
public static QueryNumber400ListResponse unmarshall(QueryNumber400ListResponse queryNumber400ListResponse, UnmarshallerContext context) {<NEW_LINE>queryNumber400ListResponse.setRequestId<MASK><NEW_LINE>queryNumber400ListResponse.setSuccess(context.booleanValue("QueryNumber400ListResponse.Success"));<NEW_LINE>queryNumbe...
(context.stringValue("QueryNumber400ListResponse.RequestId"));
1,553,217
protected JPanel instanceablePanel(Instanceable inst) {<NEW_LINE>JPanel panel = new JPanel(new MigLayout("fill"));<NEW_LINE>{<NEW_LINE>// Instance Count<NEW_LINE>panel.add(new JLabel(trans.get("RocketCompCfg.lbl.InstanceCount")));<NEW_LINE>IntegerModel countModel = new IntegerModel(component, "InstanceCount", 1);<NEW_L...
setEditor(new SpinnerEditor(separationSpinner));
760,116
public Response update(@PathParam("id") String id, @FormParam("name") String name, @FormParam("steps") String steps) {<NEW_LINE>if (!authenticate()) {<NEW_LINE>throw new ForbiddenClientException();<NEW_LINE>}<NEW_LINE>checkBaseFunction(BaseFunction.ADMIN);<NEW_LINE>// Validate input<NEW_LINE>name = ValidationUtil.valid...
routeModel = routeModelDao.getActiveById(id);
1,410,997
public boolean removeAll(ByteIterable source) {<NEW_LINE>if (source.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int oldSize = this.size();<NEW_LINE>if (source instanceof ByteHashSet) {<NEW_LINE>this.size = 0;<NEW_LINE>ByteHashSet hashSet = (ByteHashSet) source;<NEW_LINE>this.bitGroup3 &= ~hashSet.bitGroup3;...
Long.bitCount(this.bitGroup3);
966,066
public void testAuthenticateMethodBA_ProtectedServlet1() throws Exception {<NEW_LINE>String methodName = "testAuthenticateMethodBA_ProtectedServlet1";<NEW_LINE>METHODS = "testMethod=authenticate,logout,login";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/basicauth/Progr...
validUser, validPassword, url, PROGRAMMATIC_API_SERVLET);
181,527
public static DescribeLiveStreamRecordIndexFilesResponse unmarshall(DescribeLiveStreamRecordIndexFilesResponse describeLiveStreamRecordIndexFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveStreamRecordIndexFilesResponse.setRequestId(_ctx.stringValue("DescribeLiveStreamRecordIndexFilesResponse.RequestId")...
("DescribeLiveStreamRecordIndexFilesResponse.RecordIndexInfoList[" + i + "].EndTime"));
1,563,215
private static String filter(List<String> dumpList, String[] filters, boolean headerExists) {<NEW_LINE>int i;<NEW_LINE>int size = dumpList.size();<NEW_LINE>int startIndex = 0;<NEW_LINE>String value;<NEW_LINE>String lineSeparator = System.getProperty("line.separator");<NEW_LINE>StringBuilder stackBuffer = new StringBuil...
ii)).append(lineSeparator);
713,914
public MetaView build(DashboardBuilder dashboardBuilder) {<NEW_LINE>log.debug("Processing dashboard: {}", dashboardBuilder.getName());<NEW_LINE>log.debug("Dashlet list: {}", dashboardBuilder.getDashletBuilderList());<NEW_LINE>if (dashboardBuilder.getDashletBuilderList() == null || dashboardBuilder.getDashletBuilderList...
String boardName = dashboardBuilder.getName();
1,777,806
protected CaseElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, ActivityProcessor processor, BaseElement parentElement, Map<String, JsonNode> shapeMap, CmmnModel cmmnModel, CmmnJsonConverterContext converterContext, CmmnModelIdHelper cmmnModelIdHelper) {<NEW_LINE>SendEventServiceTask task = new Sen...
(PROPERTY_EVENT_REGISTRY_CHANNEL_NAME, elementNode), task);
715,316
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, W...
getProcess(), Process.class);
1,674,477
public ExpressionProtos.Expression visitConCall(ConCallExpression expr, Void params) {<NEW_LINE>ExpressionProtos.Expression.ConCalls.Builder builders = ExpressionProtos.Expression.ConCalls.newBuilder();<NEW_LINE>while (true) {<NEW_LINE>ExpressionProtos.Expression.ConCall.Builder builder = ExpressionProtos.Expression.Co...
getDefinition().getRecursiveParameter());
1,219,364
public void afterPropertiesSet() throws Exception {<NEW_LINE>providers.clear();<NEW_LINE>addLdapProvider();<NEW_LINE>addSamlProviders();<NEW_LINE>addOauthProviders();<NEW_LINE>addKeystoneProvider();<NEW_LINE>String zoneId = IdentityZone.getUaaZoneId();<NEW_LINE>for (IdentityProviderWrapper wrapper : providers) {<NEW_LI...
setVersion(existing.getVersion());
1,578,729
public void visitThread(ThreadsInfo thread) {<NEW_LINE>Extension frameworkThread = m_statusInfo.findOrCreateExtension("FrameworkThread");<NEW_LINE>ThreadMXBean bean = ManagementFactory.getThreadMXBean();<NEW_LINE>bean.setThreadContentionMonitoringEnabled(true);<NEW_LINE>ThreadInfo[] threads;<NEW_LINE>if (m_dumpLocked) ...
).setValue(jbossThreadsCount + jettyThreadsCount);
762,166
private SessionRepresentation createSessionRepresentation(UserSessionModel s, DeviceRepresentation device) {<NEW_LINE>SessionRepresentation sessionRep = new SessionRepresentation();<NEW_LINE>sessionRep.setId(s.getId());<NEW_LINE>sessionRep.setIpAddress(s.getIpAddress());<NEW_LINE>sessionRep.setStarted(s.getStarted());<...
setLastAccess(s.getLastSessionRefresh());
24,226
public SpringProcessLiveData retrieveLiveData(JMXConnector jmxConnector, String processID, String processName, String urlScheme, String host, String contextPath, String port, SpringProcessLiveData currentData) {<NEW_LINE>try {<NEW_LINE>MBeanServerConnection connection = jmxConnector.getMBeanServerConnection();<NEW_LINE...
beans = getBeans(connection, domain);
1,325,262
private Mono<PagedResponse<FirewallRuleInner>> listByServerSinglePageAsync(String resourceGroupName, String serverName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NE...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
564,902
public void add(AsmMemoryOperand dst, int imm) {<NEW_LINE>int code;<NEW_LINE>if (dst.size == MemoryOperandSize.QWORD) {<NEW_LINE>code = imm >= -0x80 && imm <= 0x7F ? Code.ADD_RM64_IMM8 : Code.ADD_RM64_IMM32;<NEW_LINE>} else if (dst.size == MemoryOperandSize.DWORD) {<NEW_LINE>code = imm >= -0x80 && imm <= 0x7F ? Code.AD...
? Code.ADD_RM16_IMM8 : Code.ADD_RM16_IMM16;
1,565,580
private static void tryAssertion56(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "sum(price)" };<NEW_LINE>ResultAssertTestResult expected =...
3200, 0, null, null);
358,833
public ScimGroupExternalMember unmapExternalGroup(final String groupId, final String externalGroup, final String origin, final String zoneId) throws ScimResourceNotFoundException {<NEW_LINE>ScimGroup group = scimGroupProvisioning.retrieve(groupId, zoneId);<NEW_LINE>ScimGroupExternalMember result = getExternalGroupMap(<...
groupId, externalGroup, origin, zoneId);
867,401
private JPanel content() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.setOpaque(false);<NEW_LINE>panel.setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));<NEW_LINE>JPanel header = new JPanel(new FlowLayout(FlowLayout.LEADING, 5, 5));<NEW_LINE>header.setOpaque(false);<NEW_LINE>header....
, 3, 3, 3));
134,891
private Flux<?> prepareFluxResult(Message<?> message, Object result) {<NEW_LINE>int sequenceSize = 1;<NEW_LINE>Flux<?> flux = Flux.just(result);<NEW_LINE>if (result instanceof Iterable<?>) {<NEW_LINE>Iterable<Object> iterable = (Iterable<Object>) result;<NEW_LINE>sequenceSize = obtainSizeIfPossible(iterable);<NEW_LINE>...
messageBuilderFunction = prepareMessageBuilderFunction(message, sequenceSize);
710,660
private Map<String, ShapeModel> addEmptyOutputShapes(Map<String, OperationModel> currentOperations) {<NEW_LINE>final Map<String, Operation> operations = serviceModel.getOperations();<NEW_LINE>final Map<String, ShapeModel> emptyOutputShapes = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Operation> entry : operations...
ShapeType.Response.getValue());
1,813,054
// snippet-start:[sqs.java2.list_tags.main]<NEW_LINE>public static void listTags(SqsClient sqsClient, String queueName) {<NEW_LINE>try {<NEW_LINE>GetQueueUrlRequest urlRequest = GetQueueUrlRequest.builder().queueName(queueName).build();<NEW_LINE>GetQueueUrlResponse <MASK><NEW_LINE>String queueUrl = getQueueUrlResponse....
getQueueUrlResponse = sqsClient.getQueueUrl(urlRequest);
1,091,685
public void paintControl(PaintEvent e) {<NEW_LINE>if (!VrapperPlugin.isVrapperEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StyledText text = textViewer.getTextWidget();<NEW_LINE>// Never move caret somewhere else in Insert / Select mode<NEW_LINE>if (text.getSelectionCount() == 0 || (vrapperModeRecorder.getCurrentM...
getCaret().setVisible(true);
1,547,792
public void initView(int sketchWidth, int sketchHeight, boolean parentSize, LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// https://www.bignerdranch.com/blog/understanding-androids-layoutinflater-inflate/<NEW_LINE>ViewGroup rootView = (ViewGroup) inflater.inflate(sketch.parentLayo...
addView(view, sketchWidth, sketchHeight);
1,720,856
public static double calculateSOR(final int[][] table) {<NEW_LINE>final double t00 = table[0][0] + PSEUDOCOUNT;<NEW_LINE>final double t01 = table[0][1] + PSEUDOCOUNT;<NEW_LINE>final double t11 = table[1][1] + PSEUDOCOUNT;<NEW_LINE>final double t10 = table[1][0] + PSEUDOCOUNT;<NEW_LINE>final double ratio = (t00 / t01) *...
t00) * (t10 / t11);
1,838,906
public void executeFrameWithDeltaTime(float deltaTime, PhysicsObject physicsObject) {<NEW_LINE>if (!isWithinInfluence()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float dx = this.target.getTranslationX() - this.anchorPoint.x;<NEW_LINE>float dy = this.target.getTranslationY() - this.anchorPoint.y;<NEW_LINE>double dr = Math...
velocity.x + deltaTime * ax);
551,874
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>beforeApiCall(request, response);<NEW_LINE>String path = request.getPathInfo();<NEW_LINE>if (path == null) {<NEW_LINE>path = request.getServletPath();<NEW_LINE>}<NEW_LINE>boolean develMode = CB...
GraphQLConstants.SCHEMA_READ_QUERY, null, null);
555,020
Object doCached(PolyglotLanguageContext languageContext, Object function, Object[] functionArgs, Class<?> resultClass, Type resultType, @CachedLibrary("function") InteropLibrary interop, @Cached PolyglotToHostNode toHost, @Cached ConditionProfile executableCondition, @Cached ConditionProfile instantiableCondition, @Cac...
PolyglotInteropErrors.executeUnsupported(languageContext, function);
317,942
public String generateContent(AlertEntity alert) {<NEW_LINE>Map<Object, Object> datas = new HashMap<Object, Object>();<NEW_LINE>String[] fields = alert.getMetric().split("-");<NEW_LINE>datas.put("domain", alert.getGroup());<NEW_LINE>datas.put("type", fields[0]);<NEW_LINE>datas.put("name", fields[1]);<NEW_LINE>datas.put...
(alert.getDate()));
578,315
protected void startDragging() {<NEW_LINE>beginDragDividerLocation = getDividerLocation(splitPane);<NEW_LINE>if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {<NEW_LINE>setLastDragLocation(divider.getBounds().x);<NEW_LINE>dividerSize <MASK><NEW_LINE>if (!isContinuousLayout()) {<NEW_LINE>final Rectangle border = Bou...
= divider.getSize().width;
168,807
public static void addProblemToCompilationResult(char[] fileNameArray, CompilationResult result, boolean isWarning, String message, int sourceStart, int sourceEnd) {<NEW_LINE>if (result == null)<NEW_LINE>return;<NEW_LINE>if (fileNameArray == null)<NEW_LINE>fileNameArray = "(unknown).java".toCharArray();<NEW_LINE>int li...
sourceStart, sourceEnd, lineNumber, columnNumber);
774,549
public void testSelfCancelingTaskSuspendTransaction(PrintWriter out) throws Exception {<NEW_LINE>// Cancel on the third update<NEW_LINE>SelfCancelingTask task = new SelfCancelingTask("testSelfCancelingTaskSuspendTransaction", 3, false);<NEW_LINE>task.getExecutionProperties().put(ManagedTask.TRANSACTION, ManagedTask.SUS...
"Should not be able to retrieve a result (" + result + ") from a canceled task. " + status);
1,577,181
public DataBuffer extraArgsDataBuff(DataType dtype) {<NEW_LINE>if (extraArgz != null)<NEW_LINE>return extraArgz;<NEW_LINE>if (extraArgs != null) {<NEW_LINE>if (Shape.isZ(dtype) || Shape.isB(dtype)) {<NEW_LINE>long[] extraz = new long[extraArgs.length];<NEW_LINE>for (int i = 0; i < extraArgs.length; i++) {<NEW_LINE>if (...
= (Number) extraArgs[i];
1,377,571
private static Resource generate(Set<Triple> paths, Collection<ReportEntry> entries, PrefixMapping prefixes) {<NEW_LINE>if (entries.isEmpty())<NEW_LINE>return reportConformsTrueResource();<NEW_LINE>Model model = ModelFactory.createDefaultModel();<NEW_LINE>model.setNsPrefix("rdf", RDF.getURI());<NEW_LINE>model.setNsPref...
"sh", SHACLM.getURI());
278,997
public static void vertical(Kernel1D_S32 kernel, InterleavedU8 input, InterleavedI8 output) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>final int numBands = input.getNumBands();<NEW_LINE>final int[<MASK><NEW_LINE>...
] pixel = new int[numBands];
1,019,249
public String delete(@RequestAttribute SysSite site, Long id, @SessionAttribute SysUser user, String returnUrl, HttpServletRequest request, ModelMap model) {<NEW_LINE>Map<String, String> config = configComponent.getConfigData(site.getId(), Config.CONFIG_CODE_SITE);<NEW_LINE>String safeReturnUrl = config.get(LoginConfig...
metadata = metadataComponent.getPlaceMetadata(filePath);
616,463
private static StatsResults stats$(DatasetGraphTDB dsg, Node gn) {<NEW_LINE>NodeTable nt = dsg.getTripleTable().getNodeTupleTable().getNodeTable();<NEW_LINE>StatsCollectorNodeId stats = new StatsCollectorNodeId(nt);<NEW_LINE>if (gn == null) {<NEW_LINE>Iterator<Tuple<NodeId>> iter = dsg.getTripleTable()<MASK><NEW_LINE>f...
.getNodeTupleTable().findAll();
38,770
private void logFindBeanSummary(CQuery<?> q) {<NEW_LINE>SpiQuery<?> query = q.getQueryRequest().query();<NEW_LINE>String loadMode = query.getLoadMode();<NEW_LINE>String loadDesc = query.getLoadDescription();<NEW_LINE>String lazyLoadProp = query.getLazyLoadProperty();<NEW_LINE>ObjectGraphNode node = query.getParentNode(...
(lazyLoadProp).append("] ");
1,762,577
public String backup(long batchId) {<NEW_LINE>try {<NEW_LINE>String hdfsCpDir = getRemoteCheckpointPath(batchId);<NEW_LINE>String batchCpPath = getLocalCheckpointPath(batchId);<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>// upload sst data files to hdfs<NEW_LINE>Collection<File> sstFiles = FileUtils....
String> sstFileList = getFileList(sstFiles);
330,842
public void handleMessage(BrowserMessage message) {<NEW_LINE>String opid = message.getOperationId();<NEW_LINE>if (OP_COPY_TO_CLIPBOARD.equals(opid)) {<NEW_LINE><MASK><NEW_LINE>ClipboardCopy.copyToClipBoard(MapUtils.getMapString(decodedMap, "text", ""));<NEW_LINE>} else if (OP_BRING_TO_FRONT.equals(opid)) {<NEW_LINE>bri...
Map decodedMap = message.getDecodedMap();
759,122
public String toXmlPartial(Object domainObject) {<NEW_LINE>bombIf(!isAnnotationPresent(domainObject.getClass(), ConfigTag.class), "Object " + domainObject + " does not have a ConfigTag");<NEW_LINE>Element element = elementFor(domainObject.getClass(), configCache);<NEW_LINE>write(<MASK><NEW_LINE>if (isAnnotationPresent(...
domainObject, element, configCache, registry);
261,149
public void establishCsAccessSourceSet() {<NEW_LINE>final SourceSetContainer sourceSets = (SourceSetContainer) project.getProperties().get("sourceSets");<NEW_LINE>final SourceSet mainSourceSet = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME);<NEW_LINE>// Create the 'csaccess' source set<NEW_LINE>final SourceSet c...
(csaccessSourceSet.getClassesTaskName()));
237,002
private void createLockFile() throws IllegalStateException {<NEW_LINE>try {<NEW_LINE>int currentPid = android.os.Process.myPid();<NEW_LINE>if (lockFile.exists()) {<NEW_LINE>int lastPid = -1;<NEW_LINE>// read pid<NEW_LINE>byte[] bytes = new byte[64];<NEW_LINE>FileInputStream fis = new FileInputStream(lockFile);<NEW_LINE...
(currentPid).getBytes());
1,476,432
public <T> T submitRequest(String pluginId, String requestName, PluginInteractionCallback<T> pluginInteractionCallback) {<NEW_LINE>if (!pluginManager.isPluginOfType(extensionName, pluginId)) {<NEW_LINE>throw new RecordNotFoundException(format("Did not find '%s' plugin with id '%s'. Looks like plugin is missing", extens...
(pluginInteractionCallback.requestParams(resolvedExtensionVersion));
91,509
protected void processActions() throws IncorrectOperationException {<NEW_LINE><MASK><NEW_LINE>app.runWriteAction(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Document doc = FileDocumentManager.getInstance().getDocument(myPsiFile.getVirtualFile());<NEW_LINE>PsiDocumentManager.getIn...
Application app = ApplicationManager.getApplication();
174,719
public int fetchIndex() {<NEW_LINE>if (!this.repoData.isEnabled()) {<NEW_LINE>this.indexRaw = null;<NEW_LINE>this.toUpdate = Collections.emptyList();<NEW_LINE>this.toApply = Collections.emptySet();<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!this.repoData.prepare()) {<NEW_LINE>this.indexRaw = null;<NEW_L...
this.repoData.url, false);
507,067
public static void main(String[] args) throws Exception {<NEW_LINE>FabricConfig fabricConfig = new FabricConfig();<NEW_LINE>fabricConfig.load("");<NEW_LINE>HFClient <MASK><NEW_LINE>Channel channel = FabricSDKWrapper.initializeChannel(client, fabricConfig.getChannelName(), fabricConfig);<NEW_LINE>ChaincodeID chaincodeID...
client = FabricSDKWrapper.initializeClient(fabricConfig);
753,317
final DescribeBudgetActionHistoriesResult executeDescribeBudgetActionHistories(DescribeBudgetActionHistoriesRequest describeBudgetActionHistoriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBudgetActionHistoriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,010,650
String censorMessage(final String username, final String message) {<NEW_LINE>String strippedMessage = jagexPrintableCharMatcher.retainFrom(message<MASK><NEW_LINE>String strippedAccents = StringUtils.stripAccents(strippedMessage);<NEW_LINE>assert strippedMessage.length() == strippedAccents.length();<NEW_LINE>if (usernam...
).replace('\u00A0', ' ');
48,238
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
817,283
public void visit(RecordFieldWithDefaultValueNode recordFieldWithDefaultValueNode) {<NEW_LINE>Token token = recordFieldWithDefaultValueNode.fieldName();<NEW_LINE>LinePosition startLine = token.lineRange().startLine();<NEW_LINE>SemanticToken semanticToken = new SemanticToken(startLine.line(), startLine.offset());<NEW_LI...
PROPERTY.getId(), refModifiers);
1,106,654
private Object decodePer(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN_PER, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser....
parser.nextInt() > 0);
1,209,656
public void onProjectsLinked(@Nonnull final Collection linked) {<NEW_LINE>List<VcsDirectoryMapping> newMappings = ContainerUtilRt.newArrayList();<NEW_LINE>final LocalFileSystem fileSystem = LocalFileSystem.getInstance();<NEW_LINE>ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project);<NEW_LINE>...
.findRoots(dir, project));
1,635,308
public Future<ArrayList<Long>> innermostFARMethod() {<NEW_LINE>String methID = "innermostFARMethod()";<NEW_LINE>svLogger.info("--> Entering " + methID);<NEW_LINE>boolean gateOpen;<NEW_LINE>try {<NEW_LINE>gateOpen = ivAsync2Latch.await(MAX_WAIT, TimeUnit.SECONDS);<NEW_LINE>if (!gateOpen) {<NEW_LINE>svLogger.info("--> " ...
":**** The innerFARMethod did not execute " + "ivAsync2Latch.countDown() in a timely manner. " + "This may cause the test to fail as the returned " + "ArrayList may not have the expected results.");
982,674
public Request<DescribeTextTranslationJobRequest> marshall(DescribeTextTranslationJobRequest describeTextTranslationJobRequest) {<NEW_LINE>if (describeTextTranslationJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeTextTranslationJobRequest)");<NEW_LINE>}<NEW_L...
jsonWriter = JsonUtils.getJsonWriter(stringWriter);
88,468
Map<String, ?> toSerializable() {<NEW_LINE>Map<String, Object> map = new LinkedHashMap<>();<NEW_LINE>map.put("displayName", displayName);<NEW_LINE>map.put("id", id);<NEW_LINE>if (parentId != null) {<NEW_LINE>map.put("parentId", parentId);<NEW_LINE>}<NEW_LINE>map.put("startTime", startTime);<NEW_LINE>map.put("endTime", ...
map.put("detailsClassName", detailsClassName);
72,424
private int calculateLength() {<NEW_LINE>int len;<NEW_LINE>byte second = ((beg + 1 < end) && data[beg] == '0') ? data[beg <MASK><NEW_LINE>switch(base) {<NEW_LINE>case 2:<NEW_LINE>len = 1;<NEW_LINE>if (second == 'b' || second == 'B') {<NEW_LINE>beg += 2;<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case 3:<NEW_LINE>len = 2;<NEW_...
+ 1] : (byte) 0;
621,907
public synchronized void truncateUnpartitionedTable(ConnectorSession session, String databaseName, String tableName) {<NEW_LINE>checkReadable();<NEW_LINE>Optional<Table> table = getTable(new MetastoreContext(session.getIdentity(), session.getQueryId(), session.getClientInfo(), session.getSource(), getMetastoreHeaders(s...
.of(""), false);
628,129
public static EnableApplicationScalingRuleResponse unmarshall(EnableApplicationScalingRuleResponse enableApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>enableApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("EnableApplicationScalingRuleResponse.RequestId"));<NEW_LINE>enableApplicationS...
("EnableApplicationScalingRuleResponse.AppScalingRule.Metric.Metrics[" + i + "].MetricTargetAverageUtilization"));
810,941
final boolean sre_category(int category, int ch) {<NEW_LINE>switch(category) {<NEW_LINE>case SRE_CATEGORY_DIGIT:<NEW_LINE>return SRE_IS_DIGIT(ch);<NEW_LINE>case SRE_CATEGORY_NOT_DIGIT:<NEW_LINE>return !SRE_IS_DIGIT(ch);<NEW_LINE>case SRE_CATEGORY_SPACE:<NEW_LINE>return SRE_IS_SPACE(ch);<NEW_LINE>case SRE_CATEGORY_NOT_S...
|| ch == 0x0085 || ch == 0x180e;
145,709
public void computeSelection(CombiningBuilder builder, Area area, TimeSpan ts) {<NEW_LINE>int startDepth = (int) ((area.y - SLICE_Y) / SLICE_HEIGHT);<NEW_LINE>int endDepth = (int) ((area.y + area<MASK><NEW_LINE>if (startDepth == endDepth && area.h / SLICE_HEIGHT < SELECTION_THRESHOLD) {<NEW_LINE>return;<NEW_LINE>}<NEW_...
.h - SLICE_Y) / SLICE_HEIGHT);
47,675
// Run the preprocessing job and set up the common env variables for worker jobs.<NEW_LINE>private int doPreprocessingJob() throws Exception {<NEW_LINE>Utils.extractResources(appIdString);<NEW_LINE>HashMap<String, String> extraEnv = new HashMap<>(shellEnv);<NEW_LINE>if (singleNode) {<NEW_LINE>ServerSocket tbSocket = ne...
) + "Model parameters: ".length());
193,692
void postProcess(QuerySearchResult result) throws IOException {<NEW_LINE>super.postProcess(result);<NEW_LINE>final TopDocs topDocs = result.topDocs();<NEW_LINE>if (scrollContext.totalHits == -1) {<NEW_LINE>// first round<NEW_LINE>scrollContext.totalHits = topDocs.totalHits;<NEW_LINE>scrollContext.maxScore = topDocs.get...
topDocs, result.sortValueFormats());
1,626,331
public AnnotationMirrorMap<AnnotationMirror> visitDeclared_Declared(AnnotatedDeclaredType type1, AnnotatedDeclaredType type2, Void aVoid) {<NEW_LINE>// Don't call super because asSuper has to be called on each type argument.<NEW_LINE>if (visited(type2)) {<NEW_LINE>return new AnnotationMirrorMap<>();<NEW_LINE>}<NEW_LINE...
result = mapQualifierToPoly(type1, type2);
413,728
private String resolveImplementationVersion() throws IOException {<NEW_LINE>String[] metroLibs = getDetectedMetroLibs();<NEW_LINE>File wsToolsJar = new File(catalinaHome, metroLibs[TOOLS_JAR_INDEX]);<NEW_LINE>if (wsToolsJar.exists()) {<NEW_LINE>JarFile jarFile = new JarFile(wsToolsJar);<NEW_LINE>// NOI18N<NEW_LINE>JarE...
String line = ln.trim();
1,673,529
public static ListCalcEnginesResponse unmarshall(ListCalcEnginesResponse listCalcEnginesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCalcEnginesResponse.setRequestId(_ctx.stringValue("ListCalcEnginesResponse.RequestId"));<NEW_LINE>listCalcEnginesResponse.setHttpStatusCode(_ctx.integerValue("ListCalcEnginesRespons...
("ListCalcEnginesResponse.Data.CalcEngines[" + i + "].GmtCreate"));
1,653,914
private void parseSize(VDTree apath, Attributes attributes) {<NEW_LINE>Pattern pattern = Pattern.compile("^\\s*(\\d+(\\.\\d+)*)\\s*([a-zA-Z]+)\\s*$");<NEW_LINE>HashMap<String, Integer> m = new HashMap<String, Integer>();<NEW_LINE>m.put("px", 1);<NEW_LINE>m.put("dip", 1);<NEW_LINE>m.put("dp", 1);<NEW_LINE>m.put("sp", 1)...
name = attributes.getQName(i);
1,082,819
private void filterPaeth(byte[] uncompressed, int rowSize, byte[] lastRow, int bpp) {<NEW_LINE>for (int i = 0; i < bpp; i++) {<NEW_LINE>ca[i] = lastRow[i];<NEW_LINE>lastRow[i] = (byte) ((uncompressed[i + 1] & 0xff) + (lastRow[i] & 0xff));<NEW_LINE>}<NEW_LINE>for (int i = bpp; i < rowSize; i++) {<NEW_LINE>int a = lastRo...
pc = abs(p + pc);
983,570
public Expr visitPrimary_expression(JSLParser.Primary_expressionContext ctx) {<NEW_LINE>if (ctx.IDENTIFIER() != null) {<NEW_LINE>return tm.variable(ctx.<MASK><NEW_LINE>} else if (ctx.INTCONSTANT() != null) {<NEW_LINE>return tm.literal(Type.INT, Integer.valueOf(ctx.INTCONSTANT().getText()));<NEW_LINE>} else if (ctx.FLOA...
IDENTIFIER().getText());
1,711,936
public Node leaveVarNode(VarNode varNode) {<NEW_LINE>Expression init = varNode.getInit();<NEW_LINE>// assignment is right associative, so we end up visiting the value before the name. We have to invert the<NEW_LINE>// children<NEW_LINE>if (!isDefaultNamedFunctionExport(varNode) && !varNode.isFunctionDeclaration() && !(...
int childCount = node.getChildCount();
290,846
public void commit(boolean onSave) {<NEW_LINE>final Model model = getModel();<NEW_LINE>final String comments = FormHelper.trimTrailingSpaces(commentsSource.getDocument().get());<NEW_LINE>model.setAttribute(MODEL_COMMENTS, comments);<NEW_LINE>// TLCUIActivator.getDefault().logDebug("Main page commit");<NEW_LINE>// close...
model.setAttribute(MODEL_PARAMETER_CONSTANTS, constants);
177,932
private Mono<Response<Void>> syncFunctionsWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if ...
this.client.mergeContext(context);
1,335,758
public static Result<Object> exceptionToResultWithSpecialValue(Map<String, Object> optionMap, Throwable e, Object specialValue) {<NEW_LINE>if (!isResultStructure(optionMap) && specialValue != null) {<NEW_LINE>return Result.of(specialValue);<NEW_LINE>}<NEW_LINE>//<NEW_LINE>Map<String, Object> resultData = new LinkedHash...
.put("executionTime", -1);
1,725,236
public synchronized void clear() {<NEW_LINE>logger.debug("Clearing all items from auto refresh scheduler");<NEW_LINE>ivUpdateQueue.clear();<NEW_LINE>// Restarting schedule executor<NEW_LINE>if (ivScheduledExecutorService != null) {<NEW_LINE>logger.debug("Schedule executor restart.");<NEW_LINE>ivScheduledExecutorService...
logger.debug("Removing list {} from scheduler", autoRefreshTimeInSecs);
1,221,581
public OutlierResult run(Relation<O> relation) {<NEW_LINE>KNNSearcher<DBIDRef> knnQuery = new QueryBuilder<>(relation, distance).kNNByDBID(kplus);<NEW_LINE>FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("kNN distance for objects", relation.size(), LOG) : null;<NEW_LINE>DoubleMinMax minmax = new DoubleMinMax...
0., Double.POSITIVE_INFINITY, 0.);
63,615
final Cluster executeModifyClusterIamRoles(ModifyClusterIamRolesRequest modifyClusterIamRolesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyClusterIamRolesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyClusterIamRoles");
633,861
public static DisableApplicationScalingRuleResponse unmarshall(DisableApplicationScalingRuleResponse disableApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>disableApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("DisableApplicationScalingRuleResponse.RequestId"));<NEW_LINE>disableApplic...
(_ctx.stringValue("DisableApplicationScalingRuleResponse.Message"));
658,892
public int compare(Object o1, Object o2) {<NEW_LINE>String s1;<NEW_LINE>String s2;<NEW_LINE>if (o1 == FiltersExplorer.QUERIES || o2 == FiltersExplorer.QUERIES) {<NEW_LINE>return o1 == FiltersExplorer.QUERIES ? 1 : -1;<NEW_LINE>} else if (o1 instanceof Category && o2 instanceof Category) {<NEW_LINE>s1 = ((Category) o1)....
Query) o1).getName();
1,608,519
final SetTimeBasedAutoScalingResult executeSetTimeBasedAutoScaling(SetTimeBasedAutoScalingRequest setTimeBasedAutoScalingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setTimeBasedAutoScalingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
727,948
private void maybeRecordExportDeclaration(NodeTraversal t, Node n) {<NEW_LINE>if (!currentScript.isModule || !n.getString().equals("exports") || !isAssignTarget(n)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// ClosureCheckModule reports an error for duplicate 'exports = ' assignments, but that error<NEW_LINE>// may be sup...
ExportDefinition.newDefaultExport(t, exportRhs);
461,789
public void run() {<NEW_LINE>Ref<PsiElement> targetElementRef = new Ref<>();<NEW_LINE>QuickDocUtil.runInReadActionWithWriteActionPriorityWithRetries(() -> {<NEW_LINE>if (originalElement.isValid()) {<NEW_LINE>targetElementRef.set(docManager.findTargetElement(editor, offset, originalElement.getContainingFile(), originalE...
PsiElement targetElement = targetElementRef.get();
1,575,124
Node tryFoldFor(Node n) {<NEW_LINE><MASK><NEW_LINE>Node init = n.getFirstChild();<NEW_LINE>Node cond = init.getNext();<NEW_LINE>Node increment = cond.getNext();<NEW_LINE>if (!init.isEmpty() && !NodeUtil.isNameDeclaration(init)) {<NEW_LINE>init = trySimplifyUnusedResult(init);<NEW_LINE>if (init == null) {<NEW_LINE>init ...
checkArgument(n.isVanillaFor());
1,076,956
private void init() throws NullPointerException {<NEW_LINE>try {<NEW_LINE>configuration = new HdfsConfiguration();<NEW_LINE>if (CommonUtils.loadKerberosConf(configuration)) {<NEW_LINE>hdfsUser = "";<NEW_LINE>}<NEW_LINE>String defaultFS = configuration.get(Constants.FS_DEFAULT_FS);<NEW_LINE>// first get key from core-si...
set(Constants.FS_DEFAULT_FS, defaultFSProp);
518,647
public static void showHtmlDescriptionDialog(Context ctx, OsmandApplication app, String html, String title) {<NEW_LINE>final <MASK><NEW_LINE>LinearLayout.LayoutParams llTextParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);<NEW_LINE>webView.setLayoutParams(...
WebViewEx webView = new WebViewEx(ctx);
820,772
public void launchPhotoProcess(String... photoLabels) {<NEW_LINE>List<Photo> photos = new ArrayList<>();<NEW_LINE>for (String l : photoLabels) {<NEW_LINE>Photo x = this.photoRepository.save(new Photo(l));<NEW_LINE>photos.add(x);<NEW_LINE>}<NEW_LINE>Map<String, Object> procVars = new HashMap<>();<NEW_LINE>procVars.put("...
.createProcessInstanceQuery().count();
1,583,894
protected void calculateSymbol() {<NEW_LINE>// Eye diagram listener<NEW_LINE>if (mSymbolDecisionDataListener != null) {<NEW_LINE>mSymbolDecisionDataListener.receive(((InterpolatingSampleBufferInstrumented) getInterpolatingSampleBuffer()).getSymbolDecisionData());<NEW_LINE>}<NEW_LINE>super.calculateSymbol();<NEW_LINE>if...
double) mSymbolEvaluator.getPhaseError());
1,256,463
void exportAuthFile(ServicePrincipalImpl servicePrincipal) {<NEW_LINE>if (authFile == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AzureEnvironment environment = AzureEnvironment.AZURE;<NEW_LINE>StringBuilder builder = new StringBuilder("{\n");<NEW_LINE>builder.append(" ").append(String.format("\"clientId\": \"%s\",",...
.getBytes(StandardCharsets.UTF_8));
655,701
private <T> T doWithMatchingMapping(HttpServletRequest request, boolean ignoreException, BiFunction<HandlerMapping, HandlerExecutionChain, T> matchHandler) throws Exception {<NEW_LINE>Assert.notNull(this.handlerMappings, "Handler mappings not initialized");<NEW_LINE>boolean parseRequestPath = !this.pathPatternHandlerMa...
chain = handlerMapping.getHandler(request);
1,443,428
protected RpcInvocation buildInvocation(MethodDescriptor methodDescriptor) {<NEW_LINE>final URL url = invoker.getUrl();<NEW_LINE>RpcInvocation inv = new RpcInvocation(url.getServiceModel(), methodDescriptor.getMethodName(), serviceDescriptor.getInterfaceName(), url.getProtocolServiceKey(), methodDescriptor.getParameter...
.CONSUMER_APP_NAME_KEY.getHeader()));
1,775,215
public Set<Integer> filter(@Nonnull List<VcsLogDetailsFilter> detailsFilters) {<NEW_LINE>VcsLogTextFilter textFilter = ContainerUtil.findInstance(detailsFilters, VcsLogTextFilter.class);<NEW_LINE>VcsLogUserFilter userFilter = ContainerUtil.findInstance(detailsFilters, VcsLogUserFilter.class);<NEW_LINE>VcsLogStructureFi...
intersect(filteredByMessage, filteredByPath, filteredByUser);
1,426,532
public static byte[] rotate90(byte[] data, int imageWidth, int imageHeight) {<NEW_LINE>// Rotate the Y luma<NEW_LINE>int i = 0;<NEW_LINE>for (int x = 0; x < imageWidth; x++) {<NEW_LINE>for (int y = imageHeight - 1; y >= 0; y--) {<NEW_LINE>preAllocatedBufferRotate[i++] = <MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>final int s...
data[y * imageWidth + x];
1,023,684
public MergeBranchesByFastForwardResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MergeBranchesByFastForwardResult mergeBranchesByFastForwardResult = new MergeBranchesByFastForwardResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
class).unmarshall(context));