idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
76,452 | public void marshall(ConnectPeerSummary connectPeerSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (connectPeerSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(connectPeerSummary.getCoreNetw... | connectPeerSummary.getConnectAttachmentId(), CONNECTATTACHMENTID_BINDING); |
1,760,443 | public static String decrypt(byte[] headerSaltAndCipherText, String password) {<NEW_LINE>try {<NEW_LINE>// --- extract salt & encrypted ---<NEW_LINE>// header is "Salted__", ASCII encoded, if salt is being used (the<NEW_LINE>// default)<NEW_LINE>byte[] salt = copyOfRange(headerSaltAndCipherText, SALT_OFFSET, SALT_OFFSE... | return new String(decrypted, "ASCII"); |
1,635,100 | private OutputsInfo outputsInfo(RootInfo rootInfo, IResource res) {<NEW_LINE>try {<NEW_LINE>JavaProject proj = rootInfo == null ? (JavaProject) createElement(res.getProject(), IJavaElement.<MASK><NEW_LINE>if (proj != null) {<NEW_LINE>IPath projectOutput = proj.getOutputLocation();<NEW_LINE>int traverseMode = IGNORE;<NE... | JAVA_PROJECT, null) : rootInfo.project; |
1,622,180 | private void assemble() throws Exception {<NEW_LINE>File tf1 = new File(folder, "T1");<NEW_LINE>File tf2 = new File(folder, "T2");<NEW_LINE>File outFile = null;<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>assembleFinished = false;<NEW_LINE>ArrayList<Segment> list1 = new ArrayList<>();<NEW_LINE>ArrayList<Segment> list2 = ne... | XDMUtils.mkdirs(getOutputFolder()); |
1,588,939 | public com.amazonaws.services.kafka.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kafka.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.kafka.model.ServiceUnavailableException(null);<... | JsonToken token = context.getCurrentToken(); |
585,382 | private void writeImageBorder(DataOutputStream output, Border border) throws IOException {<NEW_LINE>// Write the number of images can be 2, 3, 8 or 9<NEW_LINE>Image[] images = Accessor.getImages(border);<NEW_LINE>int resourceCount = 0;<NEW_LINE>for (int iter = 0; iter < images.length; iter++) {<NEW_LINE>if (images[iter... | images[4], true)); |
918,864 | public void putCustomMetadataAttributes(final String tempResourceId, final Map<String, Map<String, Serializable>> customAttributesByField) throws DotDataException {<NEW_LINE>final String metadataBucketName = Config.getStringProperty(METADATA_GROUP_NAME, DOT_METADATA);<NEW_LINE>customAttributesByField.forEach((fieldName... | .build()), customAttributes); |
1,853,948 | private Item combineItems(Item first, Item second, TermType termType) {<NEW_LINE>if (first instanceof NullItem) {<NEW_LINE>return second;<NEW_LINE>} else if (first instanceof NotItem) {<NEW_LINE>NotItem notItem = (NotItem) first;<NEW_LINE>if (termType == TermType.NOT) {<NEW_LINE>notItem.addNegativeItem(second);<NEW_LIN... | getPositiveItem(), second, termType); |
1,654,812 | public static void annotateGraph(Graph graph, Session session) {<NEW_LINE>List<String> variableNames = new ArrayList<>();<NEW_LINE>Map<String, GraphOperation> opMap = new HashMap<>();<NEW_LINE>Iterator<GraphOperation> opItr = graph.operations();<NEW_LINE>while (opItr.hasNext()) {<NEW_LINE>GraphOperation op = opItr.next... | (o.output(0)); |
1,420,797 | public Request<ListStreamProcessorsRequest> marshall(ListStreamProcessorsRequest listStreamProcessorsRequest) {<NEW_LINE>if (listStreamProcessorsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListStreamProcessorsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListStreamProcesso... | content = snippet.getBytes(UTF8); |
569,234 | public IotAnalyticsAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IotAnalyticsAction iotAnalyticsAction = new IotAnalyticsAction();<NEW... | String name = reader.nextName(); |
1,137,757 | public static void main(String[] args) throws Exception {<NEW_LINE>String hyperlinkStyle = "Hyperlink";<NEW_LINE>// Convenient to read from .xml file,<NEW_LINE>// so it is easy to manually edit it (ie without having to unzip etc etc)<NEW_LINE>String inputfilepath = System.getProperty("user.dir") + "/sample-docs/databin... | BindingHandler bh = new BindingHandler(wordMLPackage); |
1,151,996 | public static void generateCustomPolicy(LibertyServer server, String... permissionsToAdd) throws Exception {<NEW_LINE>if (!server.isJava2SecurityEnabled() || permissionsToAdd == null || permissionsToAdd.length == 0)<NEW_LINE>return;<NEW_LINE>String policyPath;<NEW_LINE>if (JavaInfo.JAVA_VERSION >= 9) {<NEW_LINE>policyP... | (permToAdd).append('\n'); |
766,303 | private WritableMap accessTokenResponse(final String providerName, final HashMap<String, Object> cfg, final OAuth1AccessToken accessToken, final String oauthVersion) {<NEW_LINE>WritableMap resp = Arguments.createMap();<NEW_LINE>WritableMap response = Arguments.createMap();<NEW_LINE>Log.d(TAG, "Credential raw response: ... | , accessToken.getParameter("user_id")); |
1,229,034 | public CreateDataSourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDataSourceResult createDataSourceResult = new CreateDataSourceResult();<NEW_LINE>createDataSourceResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int originalDepth = context.getCurrentDepth()... | JsonToken token = context.getCurrentToken(); |
1,434,482 | public void findAndRevokeAccess(long secretId, long groupId, AuditLog auditLog, String user, Map<String, String> extraInfo) {<NEW_LINE>dslContext.transaction(configuration -> {<NEW_LINE>GroupDAO groupDAO = groupDAOFactory.using(configuration);<NEW_LINE>SecretSeriesDAO secretSeriesDAO = secretSeriesDAOFactory.using(conf... | info("Failure to revoke access groupId {}, secretId {}: groupId not found.", groupId, secretId); |
1,536,738 | private void loadNode605() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsType_MaxKeepAliveCount, new QualifiedName(0, "MaxKeepAliveCount"), new LocalizedText("en", "MaxKeepAliveCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.val... | this.nodeManager.addNode(node); |
60,062 | public static Automaton reverse(Automaton a, Set<Integer> initialStates) {<NEW_LINE>if (Operations.isEmpty(a)) {<NEW_LINE>return new Automaton();<NEW_LINE>}<NEW_LINE>int numStates = a.getNumStates();<NEW_LINE>// Build a new automaton with all edges reversed<NEW_LINE>Automaton.Builder builder = new Automaton.Builder();<... | numTransitions = a.getNumTransitions(s); |
832,075 | protected void activate(ComponentContext context) throws Exception {<NEW_LINE>Dictionary<String, ?> props = context.getProperties();<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "activate", props);<NEW_LINE>adminObjectImplCla... | String key = keys.nextElement(); |
445,993 | static void readCoeffIntra(BitReader br, MPEG4DecodingContext ctx, Macroblock mb, Macroblock aboveMb, Macroblock leftMb, Macroblock aboveLeftMb) {<NEW_LINE>for (int i = 0; i < 6; i++) {<NEW_LINE>Arrays.fill(mb.block[i], (byte) 0);<NEW_LINE>int iDcScaler = getDCScaler(mb.quant, i < 4);<NEW_LINE>int startCoeff;<NEW_LINE>... | 2 : mb.acpredDirections[i]; |
1,481,533 | public MaryData process(MaryData input) {<NEW_LINE><MASK><NEW_LINE>NodeIterator tokenIterator = MaryDomUtils.createNodeIterator(document, MaryXML.TOKEN);<NEW_LINE>Element token;<NEW_LINE>while ((token = (Element) tokenIterator.nextNode()) != null) {<NEW_LINE>String origText = token.getTextContent().trim();<NEW_LINE>// ... | Document document = input.getDocument(); |
1,468,254 | public void actionPerformed(ActionContext context) {<NEW_LINE>GTree gTree = (GTree) context.getContextObject();<NEW_LINE>TreePath[] selectionPaths = gTree.getSelectionPaths();<NEW_LINE>TreePath treePath = selectionPaths[0];<NEW_LINE>final DataTypeNode dataTypeNode = (DataTypeNode) treePath.getLastPathComponent();<NEW_L... | dataType.getName() + " without a data type manager."); |
7,079 | public static DescribeAppVersionResponse unmarshall(DescribeAppVersionResponse describeAppVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppVersionResponse.setRequestId(_ctx.stringValue("DescribeAppVersionResponse.RequestId"));<NEW_LINE>AppVersion appVersion = new AppVersion();<NEW_LINE>appVersion.setId(... | (_ctx.stringValue("DescribeAppVersionResponse.AppVersion.WhiteVersionList")); |
1,422,918 | private String callUrl(String url, Map<String, String> headers, int timeout, Builder builder) throws IOException {<NEW_LINE>for (Entry<String, String> entry : headers.entrySet()) {<NEW_LINE>builder.addHeader(entry.getKey(), entry.getValue());<NEW_LINE>}<NEW_LINE>Request request = builder.build();<NEW_LINE>OkHttpClient ... | ? null : body.string(); |
337,038 | public static AddPlaylistItemsResponse unmarshall(AddPlaylistItemsResponse addPlaylistItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>addPlaylistItemsResponse.setRequestId(_ctx.stringValue("AddPlaylistItemsResponse.RequestId"));<NEW_LINE>addPlaylistItemsResponse.setProgramId(_ctx.stringValue("AddPlaylistItemsRespon... | ("AddPlaylistItemsResponse.Items.FailedItems[" + i + "].ItemName")); |
1,370,178 | public void testCreateTextMessageStr_TCP_SecOn(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean exceptionFlag = false;<NEW_LINE>JMSContext jmsContext = QCFTCP.createContext();<NEW_LINE>jmsContext.createConsumer<MASK><NEW_LINE>String compare = "Hello";<NEW_LINE>String str = "... | (queue1).receive(30000); |
236,592 | private static org.jreleaser.model.Snap convertSnap(Snap packager) {<NEW_LINE>org.jreleaser.model.Snap t = new org.jreleaser.model.Snap();<NEW_LINE>convertPackager(packager, t);<NEW_LINE>t.setPackageName(tr(packager.getPackageName()));<NEW_LINE>t.setTemplateDirectory(tr(packager.getTemplateDirectory()));<NEW_LINE>t.set... | setLocalSlots(packager.getLocalSlots()); |
1,305,828 | final AssociateConnectionAliasResult executeAssociateConnectionAlias(AssociateConnectionAliasRequest associateConnectionAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateConnectionAliasRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
572,142 | protected ECCurve createCurve() {<NEW_LINE>// p = 2^192 - 2^32 - 2^12 - 2^8 - 2^7 - 2^6 - 2^3 - 1<NEW_LINE>BigInteger p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37");<NEW_LINE>BigInteger a = ECConstants.ZERO;<NEW_LINE>BigInteger <MASK><NEW_LINE>BigInteger n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F6... | b = BigInteger.valueOf(3); |
102,215 | public DescribeReservedDBInstancesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReservedDBInstancesResult describeReservedDBInstancesResult = new DescribeReservedDBInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth... | new ArrayList<ReservedDBInstance>()); |
73,140 | public void marshall(CreateStackRequest createStackRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createStackRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createStackRequest.getName(), ... | createStackRequest.getStorageConnectors(), STORAGECONNECTORS_BINDING); |
53,979 | protected void doBuild(final DaemonCommandExecution execution, Build build) {<NEW_LINE>LOGGER.debug(DaemonMessages.STARTED_BUILD);<NEW_LINE>LOGGER.debug("Executing build with daemon context: {}", execution.getDaemonContext());<NEW_LINE>runningStats.buildStarted();<NEW_LINE>DaemonConnectionBackedEventConsumer buildEvent... | LOGGER.debug(DaemonMessages.FINISHED_BUILD); |
987,372 | public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent errantMinion = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (errantMinion == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent enchantedCreature = game.<MASK><NEW_LINE>if (enchantedCreature == null) {<NEW_LINE>return... | getPermanentOrLKIBattlefield(errantMinion.getAttachedTo()); |
1,141,623 | public boolean isChanged(final long tierIndex, final long pos) {<NEW_LINE>throwExceptionIfClosed();<NEW_LINE>updateModificationIteratorsArray();<NEW_LINE>if (tierIndex <= actualSegments) {<NEW_LINE>final long segmentIndex = tierIndex - 1;<NEW_LINE>final long offsetToTierBitSet = segmentIndex * tierModIterBitSetOuterSiz... | long extraTierIndex = tierIndex - 1 - actualSegments; |
272,737 | private void postParse(Context ctx, IParam sub) {<NEW_LINE>ArrayList<Expression> lsExp = new ArrayList<Expression>();<NEW_LINE>sub.getAllLeafExpression(lsExp);<NEW_LINE>String s = null;<NEW_LINE>Expression e = lsExp.get(0);<NEW_LINE>if (e.isConstExpression()) {<NEW_LINE>// 1.for k1:k2<NEW_LINE>s = ((Expression) lsExp.g... | 0] = m_frag.getPartitionCount(); |
165,042 | private static List<Integer> featurize(final GATKRead read, final VariantContext vc, final Map<GATKRead, Haplotype> bestHaplotypes) {<NEW_LINE>final List<Integer> result = new ArrayList<>();<NEW_LINE>result.add(read.getMappingQuality());<NEW_LINE>result.add(BaseQuality.getBaseQuality(read, vc).orElse(DEFAULT_BASE_QUALI... | SmithWatermanAlignmentConstants.ALIGNMENT_TO_BEST_HAPLOTYPE_SW_PARAMETERS, SWOverhangStrategy.SOFTCLIP); |
1,234,577 | synchronized void insert(List<String> path, DrawableGroup g, boolean tree) {<NEW_LINE>if (tree) {<NEW_LINE>// Are we at the end of the recursion?<NEW_LINE>if (path.isEmpty()) {<NEW_LINE>getValue().setGroup(g);<NEW_LINE>} else {<NEW_LINE>String prefix = path.get(0);<NEW_LINE>GroupTreeItem prefixTreeItem = childMap.compu... | GroupTreeItem(t, null, false); |
82,440 | private synchronized <T> T sendScript(String script, Class<T> clazz) throws HomematicClientException {<NEW_LINE>PostMethod post = null;<NEW_LINE>try {<NEW_LINE>script = StringUtils.trim(script);<NEW_LINE>if (StringUtils.isEmpty(script)) {<NEW_LINE>throw new RuntimeException("Homematic TclRegaScript is empty!");<NEW_LIN... | StringUtils.substringBeforeLast(result, "<xml><exec>"); |
1,593,060 | public Result appConfig() {<NEW_LINE>final ObjectNode config = Json.newObject();<NEW_LINE>config.put("application", "datahub-frontend");<NEW_LINE>config.put("appVersion", _config.getString("app.version"));<NEW_LINE>config.put("isInternal", _config.getBoolean("linkedin.internal"));<NEW_LINE>config.put("shouldShowDataset... | , _config.getBoolean("ui.show.live.data.banner")); |
275,797 | private void startActiveExportingMode() {<NEW_LINE>logStream.registerRecordAvailableListener(this);<NEW_LINE>// start reading<NEW_LINE>for (final ExporterContainer container : containers) {<NEW_LINE>container.initPosition();<NEW_LINE>container.openExporter();<NEW_LINE>}<NEW_LINE>if (state.hasExporters()) {<NEW_LINE>fin... | , snapshotPosition, getName())); |
36,966 | protected JFreeChart createStackedBar3DChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createStackedBarChart3D(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRBar3DPlot) getPlot())... | getChart().getForecolor()); |
343,576 | public static Server createServer(int port) throws NamingException, FileNotFoundException {<NEW_LINE>// Create the server<NEW_LINE>Server server = new Server(port);<NEW_LINE>// Create a WebApp<NEW_LINE>WebAppContext webapp = new WebAppContext();<NEW_LINE>// Enable parsing of jndi-related parts of web.xml and jetty-env.... | setConfig(realmProps.toExternalForm()); |
1,465,261 | public PiecewisePolynomialResult interpolate(final double[] xValues, final double[][] yValuesMatrix) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE>ArgChecker.notNull(yValuesMatrix, "yValuesMatrix");<NEW_LINE>ArgChecker.isTrue(xValues.length == yValuesMatrix[0].length, "(xValues length = yValuesMatrix's ro... | coefMatrix[0].rowCount(); |
869,804 | // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>// DecryptedDirectMessageListener implementation<NEW_LINE>// /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void onDirectMessage(DecryptedMe... | NetworkEnvelope networkEnvelope = decryptedMessageWithPubKey.getNetworkEnvelope(); |
929,650 | public void visitMapUpdate(BeamOpcode opcode, int failLabel, Arg src, Arg dst, Arg[] keys, Arg[] vals) {<NEW_LINE>if (!src.type.equals(EMAP_TYPE)) {<NEW_LINE>visitTest(BeamOpcode.<MASK><NEW_LINE>src.type = EMAP_TYPE;<NEW_LINE>}<NEW_LINE>boolean is_exact_no_label = (opcode == BeamOpcode.put_map_exact) && (failLabel == 0... | is_map, failLabel, src, EMAP_TYPE); |
327,353 | public FacetLabel nextFacetLabel(int docId, String facetDimension) throws IOException {<NEW_LINE>if (facetDimension == null) {<NEW_LINE>throw new IllegalArgumentException("Input facet dimension cannot be null");<NEW_LINE>}<NEW_LINE>final int parentOrd = taxoReader.getOrdinal(new FacetLabel(facetDimension));<NEW_LINE>if... | .getParallelTaxonomyArrays().parents(); |
916,093 | protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY) {<NEW_LINE>GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);<NEW_LINE>bindGuiTexture();<NEW_LINE>int sx = (width - xSize) / 2;<NEW_LINE>int sy = (height - ySize) / 2;<NEW_LINE>drawTexturedModalRect(sx, sy, 0, 0, this.xSize, this.ySize... | sx, sy, name, 0x000000); |
1,377,612 | protected void configureGraphicalViewer() {<NEW_LINE>super.configureGraphicalViewer();<NEW_LINE>this.getGraphicalViewer().getControl().setBackground(UIUtils.getColorRegistry().get(ERDUIConstants.COLOR_ERD_DIAGRAM_BACKGROUND));<NEW_LINE>GraphicalViewer graphicalViewer = getGraphicalViewer();<NEW_LINE>DBPPreferenceStore ... | , 2.5, 3, 4 }); |
839,071 | public com.amazonaws.services.iotsitewise.model.TooManyTagsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotsitewise.model.TooManyTagsException tooManyTagsException = new com.amazonaws.services.iotsitewise.model.TooManyTagsException(null);<NEW_LINE>i... | String currentParentElement = context.getCurrentParentElement(); |
85,994 | public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestSpec result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitFiel... | proto.V1Certificates.CertificateSigningRequestSpec(this); |
21,677 | public ExpenseDocument unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ExpenseDocument expenseDocument = new ExpenseDocument();<NEW_LINE>reader... | )).unmarshall(context)); |
931,730 | public void updateSession(Song song, int state) {<NEW_LINE>final boolean playing = (state & PlaybackService.FLAG_PLAYING) != 0;<NEW_LINE>final PlaybackService service = PlaybackService.get(mContext);<NEW_LINE>PlaybackStateCompat playbackState = new PlaybackStateCompat.Builder().setState(playing ? PlaybackStateCompat.ST... | METADATA_KEY_NUM_TRACKS, service.getTimelineLength()); |
1,178,745 | void visitYield(Node n) {<NEW_LINE>if (n.getParent().isExprResult()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (decomposer.canExposeExpression(n) != ExpressionDecomposer.DecompositionType.UNDECOMPOSABLE) {<NEW_LINE>decomposer.maybeExposeExpression(n);<NEW_LINE>} else {<NEW_LINE>String link = "https://github.com/google/... | = "Undecomposable expression: " + suggestion + "\nSee " + link; |
1,222,767 | public StackConfigurationManager unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StackConfigurationManager stackConfigurationManager = new StackConfigurationManager();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | JsonToken token = context.getCurrentToken(); |
1,554,445 | ASTNode parse(ResourceBundle language, TokenList tokenList) {<NEW_LINE>TokenList list = tokenList;<NEW_LINE>ASTNode node = new ASTNode(), cr;<NEW_LINE>ArrayList<ASTNode> nodes = new ArrayList<ASTNode>();<NEW_LINE>ArrayList<Object> values = new ArrayList<Object>();<NEW_LINE>while ((cr = subExpression.parse(language, lis... | add(cr.getValue()); |
1,074,624 | private void printArbitrageProblem(ArbitrageProblem arbitrageProblem) {<NEW_LINE>if (arbitrageProblem == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringBuilder arbitrageTable = new StringBuilder();<NEW_LINE>String[] currencyNames = arbitrageProblem.getCurrencyNames();<NEW_LINE>int currencyNamesLength = <MASK><NEW_L... | currencyNames[0].length(); |
1,322,927 | public synchronized // Make it synchronized to guarantee thread-safe<NEW_LINE>void startNewPrimaryClient() {<NEW_LINE>// Exit any running tManagerClient if there is any to release<NEW_LINE>// the thread in tmanagerClientExecutor<NEW_LINE>if (tManagerClient != null) {<NEW_LINE>tManagerClient.stop();<NEW_LINE>tManagerCli... | ), systemConfig.getMetricsMgrNetworkOptionsMaximumPacketSize()); |
1,376,477 | public void rawBegin(final OTransaction iTx) {<NEW_LINE>checkOpenness();<NEW_LINE>checkIfActive();<NEW_LINE>if (currentTx.isActive() && iTx.equals(currentTx)) {<NEW_LINE>currentTx.begin();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<ORID, OTransactionAbstract.LockedRecordMetadata> noTxLockedRecords = null;<NEW_LINE>if (!c... | new OTransactionBlockedException(message), e); |
1,750,807 | private UpdateBucketSearchResult findBucketForUpdate(final K key, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>long pageIndex = ROOT_INDEX;<NEW_LINE>final ArrayList<Long> path = new ArrayList<>(8);<NEW_LINE>final ArrayList<Integer> itemIndexes = new ArrayList<>(8);<NEW_LINE>while (true) {<NEW_L... | UpdateBucketSearchResult(itemIndexes, path, index); |
530,200 | public PerformanceInsightsMetricDimensionGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PerformanceInsightsMetricDimensionGroup performanceInsightsMetricDimensionGroup = new PerformanceInsightsMetricDimensionGroup();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
89,701 | private static boolean createTabs(GridWindowVO mWindowVO) {<NEW_LINE>mWindowVO.Tabs <MASK><NEW_LINE>boolean firstTab = true;<NEW_LINE>int tabNo = 0;<NEW_LINE>for (MTab tab : ASPUtil.getInstance(mWindowVO.ctx).getWindowTabs(mWindowVO.AD_Window_ID)) {<NEW_LINE>if (!tab.isActive()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE... | = new ArrayList<GridTabVO>(); |
928,128 | private void AddMenuItemRemove(int x, String FileName) {<NEW_LINE>int y;<NEW_LINE>FilePopupMenuItem.add(new javax.swing.JMenuItem());<NEW_LINE>y = FilePopupMenuItem.size() - 1;<NEW_LINE>FilePopupMenuItem.get(y).setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/trash.png")));<NEW_LINE>FilePopupMenuIte... | setToolTipText("Execute command file.remove(\"" + FileName + "\") and delete file from NodeMCU filesystem"); |
1,165,788 | public void storeTo(Preferences prefs) {<NEW_LINE>if (prefs == null)<NEW_LINE>return;<NEW_LINE>prefs.put(PREFIX + PROP_FONT_FAMILY, font.getFamily());<NEW_LINE>prefs.putInt(PREFIX + PROP_FONT_STYLE, font.getStyle());<NEW_LINE>prefs.putInt(PREFIX + PROP_FONT_SIZE, fontSize);<NEW_LINE>prefs.putInt(PREFIX + PROP_TAB_SIZE,... | putBoolean(PREFIX + PROP_ALT_SENDS_ESCAPE, altSendsEscape); |
1,194,312 | public static Asset exportStandaloneAsset(String name, Asset a, String dest, boolean printArchiveContents, boolean overWrite) throws IOException {<NEW_LINE>File outputFile = new File(dest, name);<NEW_LINE>if (outputFile.exists() && !overWrite) {<NEW_LINE>Log.info(ShrinkHelper.class, "exportStandaloneAsset", "Not export... | InputStream is = a.openStream(); |
806,308 | static Authority fromString(String authority) {<NEW_LINE>if (authority == null || authority.length() == 0) {<NEW_LINE>return NoAuthority.INSTANCE;<NEW_LINE>}<NEW_LINE>Matcher matcher = ZOOKEEPER_AUTH.matcher(authority);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>return new ZookeeperAuthority(matcher.group(1)<MASK><NEW_... | .replaceAll("[;+]", ",")); |
729,380 | private static List<RowResult<Value>> createRowResults(List<RawSqlRow> sqlRows, Map<Long, byte[]> overflowValues, int expectedNumRows) {<NEW_LINE>List<RowResult<Value>> rowResults = new ArrayList<>(expectedNumRows);<NEW_LINE>ImmutableSortedMap.Builder<byte[], Value> currentRowCells = null;<NEW_LINE>byte[] currentRowNam... | , currentRowCells.build())); |
140,927 | public void releaseUsing(ItemStack stack, Level worldIn, LivingEntity entityLiving, int timeLeft) {<NEW_LINE>if (worldIn.isClientSide || !(entityLiving instanceof Player)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Player player = (Player) entityLiving;<NEW_LINE>float f = getForce(stack, timeLeft) / 2;<NEW_LINE>float range... | (e) -> e instanceof LivingEntity); |
403,651 | public void prependList(@NotNull ObservableList<T> list) {<NEW_LINE>assert !lists.contains(list) : "List is already contained: " + list;<NEW_LINE>lists.add(0, list);<NEW_LINE>final InternalListModificationListener listener = new InternalListModificationListener(list);<NEW_LINE>list.addListener(listener);<NEW_LINE>// Sy... | 0, list.size()); |
652,137 | public DatabaseInputDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatabaseInputDefinition databaseInputDefinition = new DatabaseInputDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
1,423,636 | public byte[] serialize() {<NEW_LINE>int length = 2 + this.chassisId.getLength() + 2 + this.portId.getLength() + 2 + this.ttl.getLength() + 2;<NEW_LINE>for (LLDPTLV tlv : this.optionalTLVList) {<NEW_LINE>if (tlv != null)<NEW_LINE>length += 2 + tlv.getLength();<NEW_LINE>}<NEW_LINE>byte[] data = new byte[length];<NEW_LIN... | .putShort((short) 0); |
368,415 | void oldPaintFeedback(Graphics2D g, Graphics gg, int index) {<NEW_LINE>LayoutSupportManager laysup = targetContainer.getLayoutSupport();<NEW_LINE>Container cont = (Container) formDesigner.getComponent(targetContainer);<NEW_LINE>Container <MASK><NEW_LINE>Point contPos = convertPointFromComponent(0, 0, contDel);<NEW_LINE... | contDel = targetContainer.getContainerDelegate(cont); |
768,474 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create schema SomeType ()", path);<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlowOne " + "DefaultSupportSourceOp -> outstream<SomeType> {}" + "DefaultSupportCapture... | { new MyRuntimeException("TestException") }); |
1,732,615 | protected WebRtcServiceState handleStartOutgoingCall(@NonNull WebRtcServiceState currentState, @NonNull RemotePeer remotePeer, @NonNull OfferMessage.Type offerType) {<NEW_LINE>Log.i(TAG, "handleStartOutgoingCall():");<NEW_LINE>WebRtcServiceStateBuilder builder = currentState.builder();<NEW_LINE>remotePeer.dialing();<NE... | getCallId().longValue()); |
380,449 | private void calculateLauncherJvmArgs(GradleInvocation gradleInvocation) {<NEW_LINE>// Add JVM args that were explicitly requested<NEW_LINE>gradleInvocation.launcherJvmArgs.addAll(commandLineJvmOpts);<NEW_LINE>if (isUseDaemon() && !gradleInvocation.buildJvmArgs.isEmpty()) {<NEW_LINE>// Pass build JVM args through to da... | format("'%s'", input))); |
1,720,542 | private void initialize(final Composite composite) {<NEW_LINE>// need to initalize composite now, since getComposite can<NEW_LINE>// be called at any time<NEW_LINE>cConfig = new Composite(composite, SWT.NONE);<NEW_LINE>GridLayout configLayout = new GridLayout();<NEW_LINE>configLayout.marginHeight = 0;<NEW_LINE>configLa... | = new GridData(GridData.FILL_BOTH); |
144,122 | public void printJson(JsonWriter writer) throws IOException {<NEW_LINE>List<ConditionalElement<List<String>>> lists = new ArrayList<>(interfaceLists.size());<NEW_LINE>lists.addAll(interfaceLists);<NEW_LINE>lists.sort(ConditionalElement.comparator(ProxyConfiguration::compareList));<NEW_LINE>writer.append('[');<NEW_LINE>... | (typePrefix).quote(type); |
1,792,048 | public void changeEntriesTo(List<BibEntry> entries, UndoManager undoManager) {<NEW_LINE>AbstractGroup group = node.getGroup();<NEW_LINE>List<FieldChange> changesRemove = new ArrayList<>();<NEW_LINE>List<FieldChange> changesAdd = new ArrayList<>();<NEW_LINE>// Sort entries into current members and non-members of the gro... | UndoableChangeEntriesOfGroup.getUndoableEdit(this, changesRemove); |
1,376,428 | public RelativeTimeRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RelativeTimeRange relativeTimeRange = new RelativeTimeRange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,304,919 | public static void rookAttack(List<List<Integer>> A) {<NEW_LINE>int m = A.size(), n = A.<MASK><NEW_LINE>boolean hasFirstRowZero = A.get(0).contains(0);<NEW_LINE>boolean hasFirstColumnZero = A.stream().anyMatch(row -> row.get(0) == 0);<NEW_LINE>for (int i = 1; i < m; ++i) {<NEW_LINE>for (int j = 1; j < n; ++j) {<NEW_LIN... | get(0).size(); |
1,565,793 | public GetRegexPatternSetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRegexPatternSetResult getRegexPatternSetResult = new GetRegexPatternSetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | ().unmarshall(context)); |
691,659 | public Result updateRdbAnalyze(@RequestBody RDBAnalyze rdbAnalyze) {<NEW_LINE>try {<NEW_LINE>taskService.delTask(<MASK><NEW_LINE>if (rdbAnalyze.isAutoAnalyze()) {<NEW_LINE>if (taskService.vaildCronExpress(rdbAnalyze.getSchedule())) {<NEW_LINE>if (rdbAnalyzeService.updateRdbAnalyze(rdbAnalyze)) {<NEW_LINE>try {<NEW_LINE... | "rdb" + rdbAnalyze.getId()); |
881,956 | public ECPoint.AbstractF2m tau() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>int coord = curve.getCoordinateSystem();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>switch(coord) {<NEW_LINE>case ECCurve.COORD_AFFINE:<NEW_LINE>case ECCurve.COORD_... | { Z1.square() }); |
60,636 | public void handle(Request request, Response response) {<NEW_LINE>super.handle(request, response);<NEW_LINE>ResourceObject resourceObject = null;<NEW_LINE>final Reference baseRef = request.getResourceRef().getBaseRef();<NEW_LINE>request.setRootRef(new Reference(baseRef.toString()));<NEW_LINE>// NICE Normally, the "root... | result = invokeMethod(resourceMethod, resourceObject); |
1,478,614 | public PbShape.Builder serializeShape(Shape argShape) {<NEW_LINE>final PbShape.Builder builder = PbShape.newBuilder();<NEW_LINE>if (signer != null) {<NEW_LINE>Long tag = signer.getTag(argShape);<NEW_LINE>if (tag != null) {<NEW_LINE>builder.setTag(tag);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>builder.setRadius(argShape.m_radius)... | builder.setHas3(e.m_hasVertex3); |
1,443,777 | public static void main(String[] args) throws InterruptedException, MQClientException {<NEW_LINE>Tracer tracer = initTracer();<NEW_LINE><MASK><NEW_LINE>consumer.getDefaultMQPushConsumerImpl().registerConsumeMessageHook(new ConsumeMessageOpenTracingHookImpl(tracer));<NEW_LINE>consumer.subscribe("TopicTest", "*");<NEW_LI... | DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("CID_JODIE_1"); |
1,854,449 | final GetBlacklistReportsResult executeGetBlacklistReports(GetBlacklistReportsRequest getBlacklistReportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBlacklistReportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(getBlacklistReportsRequest)); |
987,023 | public DetachThingPrincipalResult detachThingPrincipal(DetachThingPrincipalRequest detachThingPrincipalRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachThingPrincipalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executio... | DetachThingPrincipalRequestMarshaller().marshall(detachThingPrincipalRequest); |
747,463 | private static boolean initializeJOpenVR() {<NEW_LINE>hmdErrorStore = IntBuffer.allocate(1);<NEW_LINE>vrSystem = null;<NEW_LINE>JOpenVRLibrary.VR_InitInternal(hmdErrorStore, JOpenVRLibrary.EVRApplicationType.EVRApplicationType_VRApplication_Scene);<NEW_LINE>if (hmdErrorStore.get(0) == 0) {<NEW_LINE>// ok, try and get t... | 0)).getString(0); |
1,125,009 | public void onRemoveAtmosphereResource(Broadcaster b, AtmosphereResource r) {<NEW_LINE>// We track cancelled and resumed connection only.<NEW_LINE>BroadcasterTracker t = states.get(r.uuid());<NEW_LINE><MASK><NEW_LINE>if (e.isClosedByClient() || !r.isResumed() && !e.isResumedOnTimeout()) {<NEW_LINE>logger.trace("Deletin... | AtmosphereResourceEvent e = r.getAtmosphereResourceEvent(); |
625,531 | public Collection<String> wordsNearest(INDArray words, int top) {<NEW_LINE>words = adjustRank(words);<NEW_LINE>if (lookupTable instanceof InMemoryLookupTable) {<NEW_LINE>InMemoryLookupTable l = (InMemoryLookupTable) lookupTable;<NEW_LINE>INDArray syn0 = l.getSyn0();<NEW_LINE>if (!normalized) {<NEW_LINE>synchronized (th... | otherVec = lookupTable.vector(word); |
117,067 | final CreateAssessmentResult executeCreateAssessment(CreateAssessmentRequest createAssessmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAssessmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | false), new CreateAssessmentResultJsonUnmarshaller()); |
602,127 | public void readFields(String value, int index, List<FileField> fileFieldList, List<Integer> ignoreFields, Mapper mapper, FileTab fileTab) throws AxelorException, ClassNotFoundException {<NEW_LINE>FileField fileField = new FileField();<NEW_LINE>fileField.setSequence(index);<NEW_LINE>if (Strings.isNullOrEmpty(value)) {<... | (this.getForStatusSelect(importType)); |
869,937 | private void init(Context context) {<NEW_LINE>binding.getRoot().setBackgroundColor(ThemeStore.primaryColor(context));<NEW_LINE>binding.vwBg.setOnClickListener(null);<NEW_LINE>primaryTextColor = MaterialValueHelper.getPrimaryTextColor(context, ColorUtils.isColorLight(ThemeStore.primaryColor(context)));<NEW_LINE>setColor... | binding.ivSkipPrevious.getDrawable()); |
1,238,063 | public int generateTypeAnnotationsOnCodeAttribute() {<NEW_LINE>int attributesNumber = 0;<NEW_LINE>List<AnnotationContext> allTypeAnnotationContexts = ((TypeAnnotationCodeStream) this.codeStream).allTypeAnnotationContexts;<NEW_LINE>for (int i = 0, max = this.codeStream.allLocalsCounter; i < max; i++) {<NEW_LINE>LocalVar... | ] exceptionLabels = this.codeStream.exceptionLabels; |
797,741 | public int execute(String sql, CreateView create, String index) throws SQLException {<NEW_LINE>String alias = create.getName().toString();<NEW_LINE>alias = Heading.findOriginal(sql, alias, "\\s+view\\s+", "\\s+as\\s+");<NEW_LINE>QueryBody queryBody = create.getQuery().getQueryBody();<NEW_LINE>if (!(queryBody instanceof... | .execute().actionGet(); |
1,010,096 | public ModelAssembler addImport(Path importPath) {<NEW_LINE>Objects.requireNonNull(importPath, "The importPath provided to ModelAssembler#addImport was null");<NEW_LINE>if (Files.isDirectory(importPath)) {<NEW_LINE>try (Stream<Path> files = Files.walk(importPath, FileVisitOption.FOLLOW_LINKS).filter(p -> !p.equals(impo... | ModelImportException("Error loading the contents of " + importPath, e); |
297,897 | public static void horizontal(Kernel1D_S32 kernel, ImageBorder_S32 input, GrayS32 output) {<NEW_LINE>final int[] dataDst = output.data;<NEW_LINE>final <MASK><NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int width = output.getWidth();<NEW_LINE>final i... | int[] dataKer = kernel.data; |
109,671 | public void focusLost(FocusEvent e) {<NEW_LINE>if (// set by actionButton<NEW_LINE>e.isTemporary() || m_lookup == null || !m_button.isEnabled())<NEW_LINE>return;<NEW_LINE>// Text Lost focus<NEW_LINE>if (e.getSource() == m_text) {<NEW_LINE>String text = m_text.getText();<NEW_LINE>log.config(m_columnName + " (Text) " + m... | fine(m_columnName + " - added to combo - " + obj); |
420,608 | private String handleParameters(HttpServletRequest request) {<NEW_LINE>List<InternetRadio> radios = settingsService.getAllInternetRadios(true);<NEW_LINE>for (InternetRadio radio : radios) {<NEW_LINE>Integer id = radio.getId();<NEW_LINE>String streamUrl = getParameter(request, "streamUrl", id);<NEW_LINE>String homepageU... | (request.getParameter("name")); |
1,736,463 | private void findTypeParamInUnion(Location loc, BType expType, BUnionType actualType, SymbolEnv env, HashSet<BType> resolvedTypes, FindTypeParamResult result) {<NEW_LINE>LinkedHashSet<BType> members = new LinkedHashSet<>();<NEW_LINE>for (BType type : actualType.getMemberTypes()) {<NEW_LINE>if (type.tag == TypeTags.ARRA... | (BMapType) type).constraint); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.