idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,755,846 | public static GetCommitResponse unmarshall(GetCommitResponse getCommitResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCommitResponse.setRequestId(_ctx.stringValue("GetCommitResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("GetCommitResponse.Data.AppId"));<NEW_LINE>data.s... | (_ctx.stringValue("GetCommitResponse.Data.CommitLog")); |
1,184,532 | final ReportInstanceStatusResult executeReportInstanceStatus(ReportInstanceStatusRequest reportInstanceStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(reportInstanceStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,688,681 | protected TextViewEx buildButtonInCollapsableView(Context context, boolean selected, boolean showAll, boolean singleLine) {<NEW_LINE>TextViewEx button = new TextViewEx(new ContextThemeWrapper(context, light ? R.style.OsmandLightTheme : R.style.OsmandDarkTheme));<NEW_LINE>LinearLayout.LayoutParams llWikiButtonParams = n... | setEllipsize(TextUtils.TruncateAt.END); |
1,390,956 | private void updateSelectorHandler(final String selectorId, final List<CommonUpstream> aliveList) {<NEW_LINE>SelectorDO selectorDO = selectorMapper.selectById(selectorId);<NEW_LINE>if (Objects.isNull(selectorDO)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PluginDO pluginDO = pluginMapper.selectById(selectorDO.getPluginId()... | Collections.singletonList(selectorData))); |
1,771,509 | private CompletableFuture<List<Block>> findBlocksWithRetries() {<NEW_LINE>CompletableFuture<List<Block>> f = tryToFindBlocks();<NEW_LINE>for (int i = 0; i < MAX_RETRIES; i++) {<NEW_LINE>f = f.thenApply(CompletableFuture::completedFuture).exceptionally(ex -> {<NEW_LINE>synchronized (this) {<NEW_LINE>if (!results.isEmpty... | ).thenCompose(this::possibleNextHash); |
578,365 | protected void visit(CharacterClass characterClass) {<NEW_LINE>if (isForward()) {<NEW_LINE>if (!characterClass.getCharSet().matchesSingleChar()) {<NEW_LINE>if (!characterClass.getCharSet().matches2CharsWith1BitDifference()) {<NEW_LINE>ast.getProperties().unsetCharClassesCanBeMatchedWithMask();<NEW_LINE>}<NEW_LINE>if (!... | .getParent().setHasQuantifiers(); |
1,371,660 | // local registry do not care about version and revision<NEW_LINE>public MicroserviceInstances findServiceInstances(String appId, String serviceName, String versionRule, String revision) {<NEW_LINE>MicroserviceInstances microserviceInstances = new MicroserviceInstances();<NEW_LINE>FindInstancesResponse findInstancesRes... | getServiceName().equals(serviceName); |
668,741 | public void testSGLFutureGetNoTimeout() throws Exception {<NEW_LINE>long currentThreadId = 0;<NEW_LINE>ResultsSingletonLocal bean = lookupSGLBean();<NEW_LINE>assertNotNull("Async Singleton Bean created successfully", bean);<NEW_LINE>// call bean asynchronous method using Future<V> object to receive results<NEW_LINE>Fut... | assertEquals("Async Singleton Bean method completed", "true", results); |
1,088,358 | public void run() {<NEW_LINE>for (int i = 0; i < rootFolders.length; i++) {<NEW_LINE>FileObject root = rootFolders[i];<NEW_LINE>java.util.Map map = Util.getFiles2NSMappingInProj(FileUtil.toFile(root), Util.getDocumentType());<NEW_LINE>java.util.Map nsMap = Util.getCatalogSchemaNSMappings();<NEW_LINE>map.putAll(nsMap);<... | Iterator it = set.iterator(); |
1,524,380 | private BMap mapToBValue(Map<Object, Object> source) {<NEW_LINE>BMap<String, BValue> <MASK><NEW_LINE>BMap<String, BValue> complexKeyMap = new BMap<>();<NEW_LINE>for (Map.Entry<Object, Object> entry : source.entrySet()) {<NEW_LINE>Object key = entry.getKey();<NEW_LINE>BRefType serializedValue = toBValue(entry.getValue()... | target = new BMap<>(); |
231,391 | protected void initPinPad() {<NEW_LINE>pinDisp = (TextView) findViewById(R.id.pin_display);<NEW_LINE>addrInfoPrefix = (TextView) findViewById(R.id.pin_addr_info_prefix);<NEW_LINE>addrInfoHighlight = (TextView) findViewById(R.id.pin_addr_info_highlight);<NEW_LINE>addrInfoPostfix = (TextView) findViewById(R.id.pin_addr_i... | R.id.pin_hexbutton9))); |
1,806,505 | // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>// BsqBalanceListener<NEW_LINE>// /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void onUpdateBalances(Coin availableBalance, Coin available... | (bsqFormatter.formatCoinWithCode(lockupBondsBalance)); |
149,673 | static // [START securitycenter_delete_security_marks]<NEW_LINE>SecurityMarks clearFromAsset(String assetName) {<NEW_LINE>// String assetName = "organizations/123123342/assets/12312321";<NEW_LINE>try (SecurityCenterClient client = SecurityCenterClient.create()) {<NEW_LINE>// Start setting up a request to clear security... | addPaths("marks.key_b").build(); |
889,906 | public void marshall(Branch branch, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (branch == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(branch.getBranchArn(), BRANCHARN_BINDING);<NEW_LINE>protocolMarsha... | branch.getActiveJobId(), ACTIVEJOBID_BINDING); |
1,823,593 | private static ConnectionFactory findNextConnectionFactory(String nextProtocol, Connector connector, String currentProtocol, EndPoint endp) {<NEW_LINE>currentProtocol = "[" + currentProtocol + "]";<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("finding connection factory following {} for protocol {}", currentPr... | debug("found next connection factory {} for protocol {}", connectionFactory, nextProtocol); |
1,441,386 | static public HttpResult httpGet(String url, List<String> headers, List<String> paramValues, String encoding, long readTimeoutMs, boolean isSSL) throws IOException {<NEW_LINE>String <MASK><NEW_LINE>url += (null == encodedContent) ? "" : ("?" + encodedContent);<NEW_LINE>if (Limiter.isLimit(MD5.getInstance().getMD5String... | encodedContent = encodingParams(paramValues, encoding); |
1,188,040 | public final OnSelectInsertFromClauseContext onSelectInsertFromClause() throws RecognitionException {<NEW_LINE>OnSelectInsertFromClauseContext _localctx = new OnSelectInsertFromClauseContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 64, RULE_onSelectInsertFromClause);<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_local... | _errHandler.recover(this, re); |
1,592,551 | public void removeScannerUser(IScannerClient scannerClient, boolean isReset) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_INFO, "removeScannerUser client: " + scannerClient.toString()));<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Getting scanner user"));<NEW_LINE>synchronized (userStac... | Common.elementsCore.setScannerEnabled(false); |
1,814,803 | // Initialise then open new connections<NEW_LINE>private static void initConnection(Vertx vertx, ProtonConnection connection) {<NEW_LINE>connection.openHandler(res -> {<NEW_LINE>System.out.println(<MASK><NEW_LINE>connection.open();<NEW_LINE>});<NEW_LINE>connection.closeHandler(c -> {<NEW_LINE>System.out.println("Client... | "Client connection opened, container-id: " + connection.getRemoteContainer()); |
525,489 | protected String generateSsoCookieName() {<NEW_LINE>WsLocationAdmin locationAdmin = locationAdminRef.getService();<NEW_LINE>if (locationAdmin != null) {<NEW_LINE>String usrLocation = locationAdmin.resolveString(WLP_USER_DIR).replace('\\', '/');<NEW_LINE>String slash = usrLocation.endsWith("/") ? "" : "/";<NEW_LINE>Stri... | + "servers/" + locationAdmin.getServerName(); |
1,035,918 | private void run() {<NEW_LINE>final Scanner scan = new Scanner(System.in);<NEW_LINE>System.out.println("Please enter the number of elements and number of queries:");<NEW_LINE>final int n = scan.nextInt();<NEW_LINE>final int queryNum = scan.nextInt();<NEW_LINE>System.out.println(String<MASK><NEW_LINE>for (int i = 1; i <... | .format("Please enter the %d elements.", n)); |
1,656,120 | public void init() {<NEW_LINE>long end = System.currentTimeMillis();<NEW_LINE>long start = DateUtils.addDays(new Date(), -1).getTime();<NEW_LINE>Statistics concurrent = statisticsDao.queryMaxItemByService(application, null, "concurrent", start, end);<NEW_LINE>Statistics elapsed = statisticsDao.queryMaxItemByService(app... | null, "failureCount", start, end); |
467,708 | synchronized static Map<String, Throwable> loadAllLibraries() {<NEW_LINE>final String[] toLoad = { "avutil", "swresample", "swscale", "avcodec", "avformat", "avfilter", "avdevice", "faad", "ft2", "png", "jpegdroid", "mad", "openjpeg", "z", "gpac", "mp4box" };<NEW_LINE>HashMap<String, Throwable> exceptions = new HashMap... | exceptions.put(s, e); |
1,302,089 | private void cancelDownloadBitsFromKVMHostToPrimaryStorage(CancelDownloadBitsFromKVMHostToPrimaryStorageMsg msg, final NoErrorCompletion completion) {<NEW_LINE>CancelDownloadBitsFromKVMHostToPrimaryStorageReply reply = new CancelDownloadBitsFromKVMHostToPrimaryStorageReply();<NEW_LINE>CancelDownloadBitsFromKVMHostCmd c... | setPrimaryStorageInstallPath(msg.getPrimaryStorageInstallPath()); |
719,225 | private static List<RequestMessageDecoder> buildDecoders(BoltConnection connection, BoltResponseMessageWriter responseMessageWriter, BookmarksParser bookmarksParser, LogService logService) {<NEW_LINE>BoltResponseHandler resultHandler = new ResultHandler(responseMessageWriter, connection, internalLog(logService));<NEW_L... | new RouteMessageDecoder(defaultHandler, bookmarksParser)); |
138,515 | public InternalCompletableFuture<Void> removeCPMember(UUID cpMemberUuid) {<NEW_LINE>ClusterService clusterService = nodeEngine.getClusterService();<NEW_LINE>InternalCompletableFuture<Void> future = newCompletableFuture();<NEW_LINE>BiConsumer<Void, Throwable> removeMemberCallback = (response, t) -> {<NEW_LINE>if (t == n... | getMember(cpMemberToRemove.getAddress()); |
1,013,820 | public List<File> doCheck() throws SystemCheckException {<NEW_LINE>File walFolderFile = SystemFileFactory.INSTANCE.getFile(walFolder);<NEW_LINE>logger.info("Checking folder: {}", walFolderFile.getAbsolutePath());<NEW_LINE>if (!walFolderFile.exists() || !walFolderFile.isDirectory()) {<NEW_LINE>throw new SystemCheckExcep... | INSTANCE.getFile(storageWalFolder, WAL_FILE_NAME); |
1,389,473 | private static int partition(Comparable[] array, int low, int high) {<NEW_LINE>int middle = low + (high - low) / 2;<NEW_LINE>// Place items in order: Low < Middle < HighArraySortUtil.exchange(array, middle, low);<NEW_LINE>if (ArrayUtil.less(array[middle], array[low])) {<NEW_LINE>ArrayUtil.exchange(array, middle, low);<... | exchange(array, middle, low); |
783,118 | public static Optional<List<ItemStack>> breakBlockAndGetDrops(WorldServer world, BlockPos pos, @Nonnull ItemStack tool, GameProfile owner, boolean grabAll) {<NEW_LINE>AxisAlignedBB aabb = new AxisAlignedBB(pos).grow(1);<NEW_LINE>Set<Entity> entities;<NEW_LINE>if (grabAll) {<NEW_LINE>entities = Collections.emptySet();<N... | TransactorEntityItem transactor = new TransactorEntityItem(entity); |
1,104,165 | protected boolean isBlocked() {<NEW_LINE>boolean threadIsBlocked = false;<NEW_LINE>if ((_interruptibleLockContextObject != null) && (_lockContextisBlockedMethod != null) && (threadIsBlocked == false)) {<NEW_LINE>Boolean booleanObject;<NEW_LINE>try {<NEW_LINE>booleanObject = AccessController.doPrivileged(new PrivilegedE... | , new Object[] {}); |
718,893 | protected void findMapSize() {<NEW_LINE>Iterator<Rect2D> areaIterator = map.getAreaBoundaries();<NEW_LINE>Iterator<Rect2D> obstacleIterator = map.getObstacleBoundaries();<NEW_LINE>double minX = Double.POSITIVE_INFINITY;<NEW_LINE>double maxX = Double.NEGATIVE_INFINITY;<NEW_LINE>double minY = Double.POSITIVE_INFINITY;<NE... | ().getX() : maxX; |
846,442 | public void marshall(CreateOpenZFSVolumeConfiguration createOpenZFSVolumeConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createOpenZFSVolumeConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall... | createOpenZFSVolumeConfiguration.getReadOnly(), READONLY_BINDING); |
826,594 | private String doCleanUp() {<NEW_LINE>String installScriptErr = this.installScriptErr;<NEW_LINE>// This block is mainly to help fixing customize.sh syntax errors<NEW_LINE>if (this.lastCommand.startsWith(installScriptErr)) {<NEW_LINE>installScriptErr = this.lastCommand.substring(installScriptErr.length());<NEW_LINE>int ... | SuFile("/data/adb/modules_update/" + this.forCleanUp); |
1,553,141 | public WsdlMockResult dispatchRequest(WsdlMockRequest request) throws DispatchException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>WsdlMockResult result = new WsdlMockResult(request);<NEW_LINE>if (getMockResponseCount() == 0) {<NEW_LINE>throw new DispatchException("Missing MockResponse(s) in MockOperation [" + getName()... | request.setOperation(getOperation()); |
1,363,065 | public byte[] encrypt(byte[] nonce, byte[] message) {<NEW_LINE>checkLength(nonce, XSALSA20_POLY1305_SECRETBOX_NONCEBYTES);<NEW_LINE>byte[] msg = org.libsodium.jni.crypto.Util.prependZeros(ZERO_BYTES, message);<NEW_LINE>byte[] ct = org.libsodium.jni.crypto.Util.zeros(msg.length);<NEW_LINE>isValid(sodium().crypto_secretb... | byte[cipherWithoutNonce.length + XSALSA20_POLY1305_SECRETBOX_NONCEBYTES]; |
573,032 | private AbstractGCEvent<?> handleTail(ParseContext context, AbstractGCEvent<?> event, String tags, String tail) {<NEW_LINE>AbstractGCEvent<?> returnEvent = event;<NEW_LINE>switch(tags) {<NEW_LINE>case TAG_SAFEPOINT:<NEW_LINE>returnEvent = handleTagSafepoint(context, event, tail);<NEW_LINE>break;<NEW_LINE>case TAG_GC_ST... | handleTagGcTail(context, event, tail); |
1,682,162 | private void bindPreferences() {<NEW_LINE>SwitchPreferenceCompat reVerifyScreenOff = (SwitchPreferenceCompat) findPreference(getString(R.string.module_locker_key_re_verify_on_screen_off));<NEW_LINE>SwitchPreferenceCompat reVerifyAppSwitch = (SwitchPreferenceCompat) findPreference(getString<MASK><NEW_LINE>SwitchPreferen... | (R.string.module_locker_key_re_verify_on_app_switch)); |
717,299 | private static void startCleanupThread(final AccumuloConfiguration conf, final Supplier<Map<String, String>> contextConfigSupplier) {<NEW_LINE>ScheduledFuture<?> future = ThreadPools.getClientThreadPools((t, e) -> {<NEW_LINE>LOG.error("context classloader cleanup thread has failed.", e);<NEW_LINE>}).createGeneralSchedu... | ), 1, 1, MINUTES); |
605,704 | public void draw(@NonNull Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, @NonNull Paint paint) {<NEW_LINE>paint.setTextSize(mTextSize);<NEW_LINE>float textSize = paint.measureText(text, start, end);<NEW_LINE>final float bgLeft = x;<NEW_LINE>final float bgRight = bgLeft + text... | float bgTop = y - mAscent - mPadding; |
23,955 | private void loadKeyLetters() {<NEW_LINE>// URL url = Platform.getBundle(BUNDLE_ID).getResource(RELATIONSHIPS_KEYS_FILE);<NEW_LINE>URL url = Platform.getBundle<MASK><NEW_LINE>// Load the JDOM Document from XML<NEW_LINE>Document doc = null;<NEW_LINE>try {<NEW_LINE>doc = new SAXBuilder().build(url);<NEW_LINE>} catch (Exc... | (BUNDLE_ID).getEntry(RELATIONSHIPS_KEYS_FILE); |
588,957 | private static DenseVector train(double[] data, int frequency, double alpha, double beta, double gamma, boolean doTrend, boolean doSeasonal, SeasonalType seasonalType, Double levelStart, Double trendStart, double[] seasonalStart) {<NEW_LINE>DenseVector initParams;<NEW_LINE>if (doSeasonal) {<NEW_LINE>initParams = new De... | epsilon.getData(), 0.001); |
952,457 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalProject project = (LogicalProject) call.rels[0];<NEW_LINE>XPlanTableScan tableScan = (XPlanTableScan) call.rels[1];<NEW_LINE>if (XPlanUtil.isSimpleProject(project)) {<NEW_LINE>if (tableScan.getProjects().isEmpty()) {<NEW_LINE>tableScan.getProjects().addAll(proj... | (Collectors.toList())); |
552,061 | public void init(String title) {<NEW_LINE>assert !htmldoc.getDocumentElement().hasChildNodes();<NEW_LINE>// head<NEW_LINE>Element head = htmldoc.createElement(HTMLUtil.HTML_HEAD_TAG);<NEW_LINE>head.appendChild(htmldoc.createComment(MODIFICATION_WARNING));<NEW_LINE>htmldoc.getDocumentElement().appendChild(head);<NEW_LIN... | htmldoc.createElement(HTMLUtil.HTML_BODY_TAG); |
353,158 | private static String makeExcerpt(String description) {<NEW_LINE>if (StringUtils.isEmpty(description)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String s = HtmlUtils.fastStripHtml(removeWPGallery(description));<NEW_LINE>if (s.length() < MAX_EXCERPT_LEN) {<NEW_LINE>return trimEx(s);<NEW_LINE>}<NEW_LINE>StringBuilder r... | result.toString()) + "..."; |
358,963 | public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {<NEW_LINE>SchedulerKey key = new SchedulerKey(Type.PING_TIMEOUT, ctx.channel());<NEW_LINE>disconnectScheduler.cancel(key);<NEW_LINE>if (msg instanceof FullHttpRequest) {<NEW_LINE>FullHttpRequest req = (FullHttpRequest) msg;<NEW_LINE>Channe... | QueryStringDecoder(req.uri()); |
400,844 | protected boolean afterSave(boolean newRecord, boolean success) {<NEW_LINE>// Set Instance Attribute<NEW_LINE>if (!isInstanceAttribute()) {<NEW_LINE>String sql = "UPDATE M_AttributeSet mas" + " SET IsInstanceAttribute='Y' " + "WHERE M_AttributeSet_ID=" + getM_AttributeSet_ID() + " AND IsInstanceAttribute='N'" + " AND (... | + "WHERE mau.M_AttributeSet_ID=mas.M_AttributeSet_ID" + " AND mau.IsActive='Y' AND ma.IsActive='Y'" + " AND ma.IsInstanceAttribute='Y')" + ")"; |
1,668,256 | public boolean onActivate(Level level, Player player, Block block, Block target, BlockFace face, double fx, double fy, double fz) {<NEW_LINE>if (player.isAdventure()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (block.getId() == AIR && (target instanceof BlockSolid || target instanceof BlockSolidMeta)) {<NEW_LINE>i... | getPluginManager().callEvent(e); |
1,723,964 | public CreateDistributionResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDistributionResult createDistributionResult = new CreateDistributionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOf... | ().unmarshall(context)); |
865,745 | private void testFallback(RestTemplate template, String cseUrlPrefix) {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>String result = template.getForObject(cseUrlPrefix + "/fallback/returnnull/hello", String.class);<NEW_LINE>TestMgr.check(result, "hello");<NEW_LINE>result = template.getForObject(cseUrlPref... | ) - start < 10000, true); |
1,585,872 | protected Bundle doInBackground(Bundle... params) {<NEW_LINE>String verifier = params[0].getString(PARAM_VERIFIER);<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>try {<NEW_LINE>URL url = new URL(mTokenURLString);<NEW_LINE>HttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection();<NEW_LINE>http... | result.putString(RESULT_REQUEST_TOKEN, verifier); |
880,390 | public static void main(String[] args) {<NEW_LINE>AudioInputStream inputAudio = null;<NEW_LINE>try {<NEW_LINE>inputAudio = AudioSystem.getAudioInputStream(new File(args[0]));<NEW_LINE>} catch (UnsupportedAudioFileException e) {<NEW_LINE>// TODO Auto-generated catch block<NEW_LINE>e.printStackTrace();<NEW_LINE>} catch (... | ss, frm2, 0, ws); |
1,289,338 | private void initUi() {<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>appVersion.setText(ApplicationUtils.getAppVersion());<NEW_LINE>linkChangelog.<MASK><NEW_LINE>ArrayList<Contributor> contributors = new ArrayList<>(1);<NEW_LINE>Contributor calvin = new Contributor(getString(R.string.developer_calvin_name), getStrin... | setDescription(ApplicationUtils.getAppVersion()); |
990,871 | final DescribeCodeCoveragesResult executeDescribeCodeCoverages(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCodeCoveragesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
545,837 | public static DescribePropertyPortDetailResponse unmarshall(DescribePropertyPortDetailResponse describePropertyPortDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePropertyPortDetailResponse.setRequestId(_ctx.stringValue("DescribePropertyPortDetailResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new Page... | ("DescribePropertyPortDetailResponse.Propertys[" + i + "].InstanceId")); |
1,062,411 | public T visitIfInst(IfInstContext ctx) {<NEW_LINE>List<ExprContext> exprList = ctx.expr();<NEW_LINE>List<BlockSetContext> ifBlocks = ctx.blockSet();<NEW_LINE>SwitchInst switchInst = code(new SwitchInst(), ctx);<NEW_LINE>for (int i = 0; i < ifBlocks.size(); i++) {<NEW_LINE>if (i < exprList.size()) {<NEW_LINE>// if and ... | ) this.instStack.pop(); |
447,295 | public void onAdded() {<NEW_LINE>final CounterDao counterDao = CounterDatabase.Companion.getInstance(getApplicationContext(), getUserId()).getDao();<NEW_LINE>int totalUnread = 0;<NEW_LINE>for (String id : mMessageIds) {<NEW_LINE>final Message message = <MASK><NEW_LINE>if (message != null) {<NEW_LINE>Timber.d("Post to A... | getMessageDetailsRepository().findMessageByIdBlocking(id); |
533,068 | private static JCMethodDecl createConstructor(AccessLevel level, JavacNode typeNode, boolean msgParam, boolean causeParam, JavacNode source, List<JCStatement> statements) {<NEW_LINE>JavacTreeMaker maker = typeNode.getTreeMaker();<NEW_LINE>boolean addConstructorProperties;<NEW_LINE>if ((!msgParam && !causeParam) || isLo... | ), fieldName, pType, null); |
896,713 | int putSymbol(String symbolName) {<NEW_LINE>if (isReadOnly) {<NEW_LINE>throw new ReadOnlyValueException(SymbolTable.class);<NEW_LINE>}<NEW_LINE>if (mySymbolsCount == mySymbolNames.length) {<NEW_LINE>int newlen = mySymbolsCount * 2;<NEW_LINE>if (newlen < DEFAULT_CAPACITY) {<NEW_LINE>newlen = DEFAULT_CAPACITY;<NEW_LINE>}... | ] temp = new String[newlen]; |
287,449 | public static ListDevicesResponse unmarshall(ListDevicesResponse listDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDevicesResponse.setRequestId<MASK><NEW_LINE>listDevicesResponse.setMessage(_ctx.stringValue("ListDevicesResponse.Message"));<NEW_LINE>listDevicesResponse.setCode(_ctx.stringValue("ListDevicesRe... | (_ctx.stringValue("ListDevicesResponse.RequestId")); |
1,302,095 | public static void main(String[] args) throws Exception {<NEW_LINE>AmazonDynamoDB client = AmazonDynamoDBClientBuilder.standard().withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration("http://localhost:8000", "us-west-2")).build();<NEW_LINE>DynamoDB dynamoDB = new DynamoDB(client);<NEW_LINE>Table table =... | System.out.println("Attempting a conditional update..."); |
628,021 | public boolean handleGraphObject(SecurityContext securityContext, RelationshipInfo template) throws FrameworkException {<NEW_LINE>final String startNodeType = template.getStartNodeType();<NEW_LINE>final String endNodeType = template.getEndNodeType();<NEW_LINE>if (startNodeType != null && endNodeType != null) {<NEW_LINE... | info("Unable to create schema relationship node for {} -> {}, no schema nodes found", startNodeType, endNodeType); |
222,557 | private void readStateSyncLocked() throws IllegalStateException {<NEW_LINE>FileInputStream in;<NEW_LINE>AtomicFile file = new AtomicFile(mStatePersistFile);<NEW_LINE>try {<NEW_LINE>in = file.openRead();<NEW_LINE>} catch (FileNotFoundException fnfe) {<NEW_LINE>Log.<MASK><NEW_LINE>logSettingsDirectoryInformation(mStatePe... | w(LOG_TAG, "No settings state " + mStatePersistFile); |
428,300 | // Merge original annotations and search hits into a single set of markups for each passage<NEW_LINE>static MarkupPassage mergeAnnotations(AnnotationToken[] annotations, Passage passage) {<NEW_LINE>try {<NEW_LINE>MarkupPassage markupPassage = new MarkupPassage();<NEW_LINE>// Add search hits first - they take precedence... | Markup(start, end, escapedValue); |
1,436,369 | public org.python.Object __gt__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Tuple) {<NEW_LINE>org.python.types.Tuple otherTuple = (org.python.types.Tuple) other;<NEW_LINE>int size = this.value.size();<NEW_LINE>int otherSize = otherTuple.value.size();<NEW_LINE>int count = Math.min(size, oth... | .value.get(i)); |
10,488 | private boolean trackDeployProgressObject(ProgressUI ui, ProgressObject po, boolean incremental) throws ServerException {<NEW_LINE>long deploymentTimeout = instance.getDeploymentTimeout();<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>boolean completed = ProgressObjectUtil.trackProgressO... | (TargetServer.class, "MSG_DeploymentTimeoutExceeded")); |
15,492 | // find PsiLanguageInjectionHost in range "newInjectionHostRange" in the file which is almost "hostPsiFile" but where "oldRoot" replaced with "newRoot"<NEW_LINE>private static PsiLanguageInjectionHost findNewInjectionHost(@Nonnull PsiFile hostPsiFile, @Nonnull ASTNode oldRoot, @Nonnull ASTNode newRoot, @Nonnull PsiLang... | (viewProvider.getBaseLanguage())); |
140,778 | private static int compareArrayValues(Object lhsValue, Object rhsValue, int lhsTypeTag, String direction) {<NEW_LINE>int lengthVal1;<NEW_LINE>int lengthVal2;<NEW_LINE>if (lhsTypeTag == TypeTags.ARRAY_TAG) {<NEW_LINE>lengthVal1 = ((BArray) lhsValue).size();<NEW_LINE>lengthVal2 = ((BArray) rhsValue).size();<NEW_LINE>} el... | Math.min(lengthVal1, lengthVal2); |
158,103 | private static ClassPath sysProp2CP(String propname) {<NEW_LINE>String sbcp = System.getProperty(propname);<NEW_LINE>if (sbcp == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<URL> roots = new ArrayList<>();<NEW_LINE>StringTokenizer tok = new StringTokenizer(sbcp, File.pathSeparator);<NEW_LINE>while (tok.hasMor... | roots.size()])); |
1,486,941 | static long toLong(String v) {<NEW_LINE>String buildPart = "1";<NEW_LINE>long buildType = 700;<NEW_LINE>if (v.endsWith("-SNAPSHOT")) {<NEW_LINE>buildPart = "";<NEW_LINE>v = v.substring(0, v.indexOf("-SNAPSHOT"));<NEW_LINE>buildType = 0;<NEW_LINE>} else if (v.contains("-alpha-")) {<NEW_LINE>buildPart = v.substring(v.las... | ) * 1000) + build + buildType; |
588,188 | public Response intercept(Chain chain) throws IOException {<NEW_LINE>Request request = chain.request();<NEW_LINE>Response response = chain.proceed(request);<NEW_LINE>if (!response.isSuccessful()) {<NEW_LINE>return response;<NEW_LINE>}<NEW_LINE>DockerHttpClient.Request originalRequest = request.tag(DockerHttpClient.Requ... | + System.identityHashCode(request)); |
618,655 | public ContentType persist(final ContentType contentType) {<NEW_LINE>try {<NEW_LINE>final ContentType persistedContentType = APILocator.getContentTypeAPI(APILocator.systemUser()).save(contentType, fields);<NEW_LINE>workflowIds.add(APILocator.getWorkflowAPI().findSystemWorkflowScheme().getId());<NEW_LINE>APILocator.getW... | User systemUser = APILocator.systemUser(); |
1,562,771 | public Visitable visit(final CompactConstructorDeclaration n, final A arg) {<NEW_LINE>NodeList<AnnotationExpr> annotations = modifyList(n.getAnnotations(), arg);<NEW_LINE>NodeList<Modifier> modifiers = modifyList(n.getModifiers(), arg);<NEW_LINE>BlockStmt body = (BlockStmt) n.getBody().accept(this, arg);<NEW_LINE>Simpl... | arg)).orElse(null); |
97,100 | public Position stickyColumnAtViewLine(final int lineNo) {<NEW_LINE>// FIXME: do this properly<NEW_LINE>final StyledText tw = textViewer.getTextWidget();<NEW_LINE>if (!stickToEOL) {<NEW_LINE>try {<NEW_LINE>final int y = tw.getLocationAtOffset(tw.getOffsetAtLine(lineNo)).y;<NEW_LINE>final int offset = tw.getOffsetAtLoca... | .getHorizontalPixel(), y)); |
553,130 | public static ScrollDomainListResponse unmarshall(ScrollDomainListResponse scrollDomainListResponse, UnmarshallerContext _ctx) {<NEW_LINE>scrollDomainListResponse.setRequestId(_ctx.stringValue("ScrollDomainListResponse.RequestId"));<NEW_LINE>scrollDomainListResponse.setTotalItemNum(_ctx.integerValue("ScrollDomainListRe... | = new ArrayList<Domain>(); |
1,137,011 | private RDD<Element> doOperation(final GetRDDOfElementsInRanges operation, final Context context, final AccumuloStore accumuloStore) throws OperationException {<NEW_LINE><MASK><NEW_LINE>final SparkContext sparkContext = SparkContextUtil.getSparkSession(context, accumuloStore.getProperties()).sparkContext();<NEW_LINE>sp... | final Configuration conf = getConfiguration(operation); |
1,665,950 | private static void executeScheduledEvent(ScheduledAction scheduledAction, SQLiteDatabase db) {<NEW_LINE>Log.i(LOG_TAG, "Executing scheduled action: " + scheduledAction.toString());<NEW_LINE>int executionCount = 0;<NEW_LINE>switch(scheduledAction.getActionType()) {<NEW_LINE>case TRANSACTION:<NEW_LINE>executionCount += ... | scheduledAction.getExecutionCount() + executionCount); |
514,485 | public Disposable schedule(Runnable run, long delay, TimeUnit unit) {<NEW_LINE>if (run == null)<NEW_LINE>throw new NullPointerException("run == null");<NEW_LINE>if (unit == null)<NEW_LINE>throw new NullPointerException("unit == null");<NEW_LINE>if (disposed) {<NEW_LINE>return Disposables.disposed();<NEW_LINE>}<NEW_LINE... | = new ScheduledRunnable(handler, run); |
1,689,388 | // TODO: Use Retrofit for this<NEW_LINE>private Request createOpenCellIdApiCall() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("http://www.opencellid.org/cell/get?key=").append(CellTracker.OCID_API_KEY);<NEW_LINE>if (mAimsicdService.getCell().getMobileCountryCode() != Integer.MAX_VALUE) {<NEW_L... | getCell().getMobileNetworkCode()); |
1,568,953 | private void externalLoad(final Cache concreteCache, final long currentTime) throws Throwable {<NEW_LINE>byte[] newKey = ((AbstractExternalCache) concreteCache).buildKey(key);<NEW_LINE>byte[] lockKey = combine(newKey, "_#RL#".getBytes());<NEW_LINE>long loadTimeOut = RefreshCache.this.config.getRefreshPolicy().getRefres... | loadTimeOut, TimeUnit.MILLISECONDS, r); |
683,054 | private Button addButton(final ListView<String> listView) {<NEW_LINE>final Button button = new Button("Add Item", FontAwesome.PLUS.view());<NEW_LINE>button.setOnAction(e -> {<NEW_LINE>final int newIndex = listView<MASK><NEW_LINE>final Set<String> set = new HashSet<>(strings);<NEW_LINE>final AtomicInteger i = new Atomic... | .getItems().size(); |
1,096,238 | private Unit createUnit(Business business, PullResult result, Unit sup, Department org) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>Unit unit = new Unit();<NEW_LINE>emc.beginTransaction(Unit.class);<NEW_LINE>unit.setName(org.getDeptNameCn());<NEW_LINE>unit.setUni... | add(unit.getDistinguishedName()); |
1,624,720 | boolean skipThroughNopPad() throws IOException {<NEW_LINE>int originalPosition = this._pos;<NEW_LINE>// check to see if there is a type declaration as it's not valid to annotate nop pads<NEW_LINE>int c = this.read();<NEW_LINE>boolean hasTypedecl = _Private_IonConstants.getTypeCode(c) == _Private_IonConstants.tidTypedec... | len = _Private_IonConstants.getLowNibble(typeDesc); |
915,628 | protected ActivityInstanceImpl createActivityInstance(PvmExecutionImpl scopeExecution, ScopeImpl scope, String activityInstanceId, String parentActivityInstanceId, Map<String, List<Incident>> incidentsByExecution) {<NEW_LINE>ActivityInstanceImpl actInst = new ActivityInstanceImpl();<NEW_LINE>actInst.setId(activityInsta... | executionIds.size()])); |
1,134,658 | private void openWriter() throws FileNotFoundException, IOException {<NEW_LINE>if (fileLimit < 1) {<NEW_LINE>File file = new File(outputFile);<NEW_LINE>if (file.getParentFile() != null) {<NEW_LINE>file<MASK><NEW_LINE>}<NEW_LINE>writer = StackTraceCodec.newWriter(new FileOutputStream(file));<NEW_LINE>System.out.println(... | .getParentFile().mkdirs(); |
1,300,389 | private void initializeProcessedLines(boolean forceReprocess, File startFile, GcodeParser gcodeParser) throws Exception {<NEW_LINE>if (startFile != null) {<NEW_LINE>try (FileReader fr = new FileReader(startFile)) {<NEW_LINE>Charset.forName(fr.getEncoding());<NEW_LINE>}<NEW_LINE>logger.info("Start preprocessing");<NEW_L... | preprocessAndExportToFile(gcodeParser, startFile, gcw); |
142,481 | public Operand buildHash(HashNode hashNode) {<NEW_LINE>List<KeyValuePair<Operand, Operand>> args = new ArrayList<>();<NEW_LINE>boolean hasAssignments = hashNode.containsVariableAssignment();<NEW_LINE>Variable hash = null;<NEW_LINE>for (KeyValuePair<Node, Node> pair : hashNode.getPairs()) {<NEW_LINE>Node key = pair.getK... | new Hash(args) })); |
1,424,976 | public static void constraintMatrix3x6(DMatrixRMaj L, DMatrixRMaj y, DogArray<Point3D_F64> controlWorldPts, List<Point3D_F64>[] nullPts) {<NEW_LINE>int row = 0;<NEW_LINE>for (int i = 0; i < 3; i++) {<NEW_LINE>Point3D_F64 ci = controlWorldPts.get(i);<NEW_LINE>Point3D_F64 vai = nullPts[0].get(i);<NEW_LINE>Point3D_F64 vbi... | [1].get(j); |
1,553,888 | public static ListActionDataResponse unmarshall(ListActionDataResponse listActionDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>listActionDataResponse.setRequestId(_ctx.stringValue("ListActionDataResponse.RequestId"));<NEW_LINE>listActionDataResponse.setSuccess(_ctx.booleanValue("ListActionDataResponse.Success"));<... | ("ListActionDataResponse.Actions[" + i + "].Score")); |
1,116,652 | public Request<GetServiceLastAccessedDetailsRequest> marshall(GetServiceLastAccessedDetailsRequest getServiceLastAccessedDetailsRequest) {<NEW_LINE>if (getServiceLastAccessedDetailsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<GetServic... | request.addParameter("Action", "GetServiceLastAccessedDetails"); |
948,144 | public boolean visit(String typeName, JFREvent event) {<NEW_LINE>if (JFRSnapshotGcViewProvider.EVENT_HEAP_CONFIGURATION.equals(typeName)) {<NEW_LINE>// NOI18N<NEW_LINE>try {<NEW_LINE>final StringBuilder s = new StringBuilder();<NEW_LINE>s.append("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");<NEW_LI... | setText(s.toString()); |
527,049 | private void removeCurrentMappings(Path path) {<NEW_LINE>List<HttpServerStub> httpServerStubs = SpringFactoriesLoader.loadFactories(HttpServerStub.class, null);<NEW_LINE>if (httpServerStubs.isEmpty()) {<NEW_LINE>httpServerStubs.add(new WireMockHttpServerStub());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Files.walkFileTree(pat... | toString() + "]", ex); |
1,337,906 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<... | target.addField(ReactorContextAccessor.class); |
1,025,902 | final DeleteAssetResult executeDeleteAsset(DeleteAssetRequest deleteAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAssetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,535,126 | HllSketchImpl couponUpdate(final int coupon) {<NEW_LINE>if (wmem == null) {<NEW_LINE>noWriteAccess();<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>// search for empty slot and duplicates<NEW_LINE>final int couponAtIdx = extractInt(mem, LIST_INT_ARR_START + (i << 2));<NEW_LINE>if (c... | int len = 1 << getLgCouponArrInts(); |
1,384,922 | synchronized boolean startProcess(DataFrameDataExtractorFactory dataExtractorFactory, DataFrameAnalyticsTask task, boolean hasState) {<NEW_LINE>if (task.isStopping()) {<NEW_LINE>// The job was stopped before we started the process so no need to start it<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>dataExtractor.set(dataE... | , config, analyticsProcessConfig, hasState)); |
839,588 | protected void doProcess(final ITemplateContext context, final IProcessableElementTag tag, final AttributeName attributeName, final String attributeValue, final IElementTagStructureHandler structureHandler) {<NEW_LINE>final Each each = EachUtils.parseEach(context, attributeValue);<NEW_LINE>final <MASK><NEW_LINE>final O... | IStandardExpression iterVarExpr = each.getIterVar(); |
244,834 | public static List<SDVariable> doDiff(SameDiff sameDiff, SDVariable x, SDVariable y, SDVariable gradOut, boolean keepDims, int... dimensions) {<NEW_LINE>SDVariable a = sameDiff.sum(x.mul(y), true, dimensions);<NEW_LINE>SDVariable l2x = sameDiff.norm2(x, true, dimensions);<NEW_LINE>SDVariable l2y = sameDiff.norm2(y, tru... | , dcdy.mul(broadcastableGrad)); |
810,560 | public String saveContent(final Map<String, Object> contentletFormData, final boolean isAutoSave, final boolean isCheckin, final User user, final boolean generateSystemEvent) throws DotContentletValidationException, Exception {<NEW_LINE>final HttpServletRequest req = WebContextFactory.get().getHttpServletRequest();<NEW... | contentletFormData.put("cache_control", "0"); |
515,706 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String resourceName, String favoriteId, 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... | this.client.mergeContext(context); |
933,380 | public PackageAggregationResponse unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PackageAggregationResponse packageAggregationResponse = new PackageAggregationResponse();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI... | String currentParentElement = context.getCurrentParentElement(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.