idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
38,322 | public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEndpointRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
908,958 | private void compactIfNecessary() {<NEW_LINE>// Byte size check is needed. Otherwise, if size * 3 is small, BlockBuilder can be reallocate too often.<NEW_LINE>// Position count is needed. Otherwise, for large elements, heap will be compacted every time.<NEW_LINE>// Size instead of retained size is needed because defaul... | null, heapBlockBuilder.getPositionCount()); |
691,660 | public CexIOOpenOrders deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {<NEW_LINE>final ObjectCodec oc = jp.getCodec();<NEW_LINE>final JsonNode openOrdersNode = oc.readTree(jp);<NEW_LINE>final JsonNode errorNode = openOrdersNode.path("error");<NEW_LINE>if (!errorNode.... | path("id").asLong(); |
1,423,458 | public GetEventResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetEventResult getEventResult = new GetEventResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | ().unmarshall(context)); |
215,795 | public boolean store(int spaceID, Varnode offsetValue, Varnode storedValue, int size) {<NEW_LINE>if (locked) {<NEW_LINE>throw new IllegalStateException("State is locked");<NEW_LINE>}<NEW_LINE>AddressSpace addressSpace = addrFactory.getAddressSpace(spaceID);<NEW_LINE>if (addressSpace == null) {<NEW_LINE>throw new Illega... | frameNode = getFrameNode(offsetValue, language); |
1,309,772 | public AuditMitigationActionsTaskMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AuditMitigationActionsTaskMetadata auditMitigationActionsTaskMetadata = new AuditMitigationActionsTaskMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | class).unmarshall(context)); |
833,359 | public void deletePartition(ImmutableMappingInfo.ImmutableIndexInfo indexInfo, IndexShard indexShard) throws IOException {<NEW_LINE>if (logger.isTraceEnabled())<NEW_LINE>logger.trace("deleting documents where _routing={} from index.type={}.{}", this.partitionKey, indexShard.shardId().getIndexName(), typeName);<NEW_LINE... | FieldMapper) indexInfo.mappers[mapperIdx]; |
1,335,912 | public void visitUnary(JCTree.JCUnary tree) {<NEW_LINE>super.visitUnary(tree);<NEW_LINE>if (_tp.isGenerate() && !shouldProcessForGeneration()) {<NEW_LINE>// Don't process tree during GENERATE, unless the tree was generated e.g., a bridge method<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Symbol op = IDynamicJdk.instance().get... | ExtIssueMsg.MSG_INCREMENT_OP_NOT_ALLOWED_REFLECTION.get()); |
1,606,184 | public ApiResponse<Void> usersChangeSubUserPasswordWithHttpInfo(String id, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = password;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when c... | = new ArrayList<Pair>(); |
1,331,107 | private ExperimentRun filteredDatasetsBasedOnPrivileges(Set<String> accessibleDatasetVersionIdsSet, Set<String> notAccessibleDatasetVersionIdsSet, ExperimentRun experimentRun) {<NEW_LINE>List<Artifact> accessibleDatasetVersions = new ArrayList<>();<NEW_LINE>for (Artifact dataset : experimentRun.getDatasetsList()) {<NEW... | add(dataset.getLinkedArtifactId()); |
836,106 | private static SQLTableSource unwrapAlias(SchemaResolveVisitor.Context ctx, SQLTableSource tableSource, long identHash) {<NEW_LINE>if (ctx == null) {<NEW_LINE>return tableSource;<NEW_LINE>}<NEW_LINE>if (ctx.object instanceof SQLDeleteStatement && (ctx.getTableSource() == null || tableSource == ctx.getTableSource()) && ... | insertStmt = (SQLInsertStatement) parentCtx.object; |
830,723 | public Void execute(CommandContext commandContext) {<NEW_LINE>ensureNotNull(<MASK><NEW_LINE>JobDefinitionEntity jobDefinition = commandContext.getJobDefinitionManager().findById(jobDefinitionId);<NEW_LINE>ensureNotNull(NotFoundException.class, "Job definition with id '" + jobDefinitionId + "' does not exist", "jobDefin... | NotValidException.class, "jobDefinitionId", jobDefinitionId); |
1,182,871 | public static ComplexNumber divide(ComplexNumber z1, ComplexNumber z2) {<NEW_LINE>ArgChecker.notNull(z1, "z1");<NEW_LINE>ArgChecker.notNull(z2, "z2");<NEW_LINE><MASK><NEW_LINE>double b = z1.getImaginary();<NEW_LINE>double c = z2.getReal();<NEW_LINE>double d = z2.getImaginary();<NEW_LINE>if (Math.abs(c) > Math.abs(d)) {... | double a = z1.getReal(); |
867,948 | public void handle(GameEvent event) {<NEW_LINE>DebugCommandEvent e = (DebugCommandEvent) event;<NEW_LINE>if (e.getName().equals("objInfo")) {<NEW_LINE>World world = GameServer.INSTANCE.getGameUniverse().getWorld(e.getInt("worldX"), e.getInt("worldY"), false, e.getString("dimension"));<NEW_LINE>try {<NEW_LINE>Collection... | String message = ex.getMessage(); |
1,025,547 | public static void generateTargetGroupFiles(Map<String, List<TargetGroupVH>> targetGrpMap) throws IOException {<NEW_LINE>String fieldNames;<NEW_LINE>String keys;<NEW_LINE>fieldNames = "trgtGrp.TargetGroupArn`trgtGrp.TargetGroupName`trgtGrp.vpcid`trgtGrp.protocol`trgtGrp.port`trgtGrp.HealthyThresholdCount`trgtGrp.Unheal... | .entrySet().iterator(); |
1,042,591 | public String extractParameter(ServletRequestImpl request) {<NEW_LINE>String queryString = request.getQueryString();<NEW_LINE>final <MASK><NEW_LINE>try {<NEW_LINE>final Map<String, String> queryPairs = splitQuery(queryString);<NEW_LINE>for (Map.Entry<String, String> attrs : queryPairs.entrySet()) {<NEW_LINE>if (params.... | StringBuilder params = new StringBuilder(64); |
631,183 | public void deserialize(ByteBuf buf) {<NEW_LINE>super.deserialize(buf);<NEW_LINE>int elemNum = buf.readInt();<NEW_LINE>if (rowType == RowType.T_FLOAT_DENSE_COMPONENT) {<NEW_LINE>float[] values = new float[elemNum];<NEW_LINE>for (int i = 0; i < elemNum; i++) {<NEW_LINE>values[i] = buf.readFloat();<NEW_LINE>}<NEW_LINE>ve... | throw new UnsupportedOperationException("Unsupport rowtype " + rowType); |
1,388,207 | public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", new BorderLayout());<NEW_LINE>Tabs tabs = new Tabs();<NEW_LINE>Container tab1Contents = new Container();<NEW_LINE>tab1Contents.setLayout(BoxLayout.y());<NEW_LINE>tab1Content... | ] { "Wizard", "Judge", "Doctor" }; |
591,326 | protected MQTT_IOClient doCreateIoClient() throws Exception {<NEW_LINE>String host = agent.getHost().orElse(null);<NEW_LINE>int port = agent.getPort().orElseGet(() -> {<NEW_LINE>if (agent.isSecureMode().orElse(false)) {<NEW_LINE>return agent.isWebsocketMode().orElse(false) ? 443 : 8883;<NEW_LINE>} else {<NEW_LINE>retur... | ).ifPresent(builder::setPath); |
1,550,560 | private void loadFlags() throws SQLException {<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = closer.register(conn.prepareStatement("SELECT region_id, flag, value " + "FROM " + config.getTablePrefix() + "region_flag " + "WHERE world_id = " + worldId + " AND region_id IN " + "... | + "WHERE world_id = " + worldId + ")")); |
1,718,046 | public Object indexValueStrProp(List<Object> parameters, String lastParam, String props, Map<String, String> map, List<String> oldKeys, List<String> oldKeysNormalized) throws ParserException {<NEW_LINE>String value = "";<NEW_LINE>Object retval = null;<NEW_LINE>String delim = ";";<NEW_LINE>int minParams = 2;<NEW_LINE>in... | .class, BigDecimal.class }); |
575,908 | public void extend(Value v, long duration) {<NEW_LINE>if (v.getWidth() != info.getWidth())<NEW_LINE>System.out.printf("*** notice: value width mismatch for %s: width=%d bits, newVal=%s (%d bits)\n", info, info.getWidth(), v, v.getWidth());<NEW_LINE>if (last != null && last.equals(v)) {<NEW_LINE>final var i = (firstInde... | ][curSize % CHUNK] = v; |
890,934 | private void addDerivedTypes() {<NEW_LINE>Iterator<DefinedType> typeIter = schema.getTypes().iterator();<NEW_LINE>while (typeIter.hasNext()) {<NEW_LINE>DefinedType type = typeIter.next();<NEW_LINE>// debug (type.getName()+":"+type.getDomain(true).toString());<NEW_LINE>// if ((type.getDomain() instanceof SimpleType)==fa... | getEClassifier(type.getName()); |
949,436 | public Void call() throws Exception {<NEW_LINE>AlluxioURI toPersist = mFilesToPersist.poll();<NEW_LINE>while (toPersist != null) {<NEW_LINE>try {<NEW_LINE>FileSystemUtils.persistAndWait(mFileSystem, toPersist, mPersistenceWaitTime, mTimeoutMs);<NEW_LINE>synchronized (mProgressLock) {<NEW_LINE>// Prevents out of order p... | out.println("Failed to persist file " + toPersist); |
955,854 | public void testJSAD_Receive_Message_P2PTest(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>QueueConnectionFactory cf1 = (QueueConnectionFactory) new InitialContext().lookup("java:comp/env/jndi_JMS_BASE_QCF");<NEW_LINE>QueueConnection con = cf1... | queue = sessionSender.createQueue("QUEUE1"); |
41,723 | public void unlockResourcesOfServer(final ODatabaseDocumentInternal database, final String serverName) {<NEW_LINE>final int nodeLeftId = manager.getNodeIdByName(serverName);<NEW_LINE>final Iterator<ODistributedTxContext> pendingReqIterator = activeTxContexts<MASK><NEW_LINE>while (pendingReqIterator.hasNext()) {<NEW_LIN... | .values().iterator(); |
1,843,841 | protected void makeActions() {<NEW_LINE>fClipboard = new Clipboard(fShell.getDisplay());<NEW_LINE>ISharedImages images = PlatformUI.getWorkbench().getSharedImages();<NEW_LINE>fPasteAction = new FileSystemPasteAction(fShell, fClipboard);<NEW_LINE>fPasteAction.setDisabledImageDescriptor(images.getImageDescriptor(ISharedI... | .getImageDescriptor(ISharedImages.IMG_TOOL_COPY)); |
789,050 | final AddThingToBillingGroupResult executeAddThingToBillingGroup(AddThingToBillingGroupRequest addThingToBillingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addThingToBillingGroupRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Req... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
555,823 | public Request<UpdateGroupRequest> marshall(UpdateGroupRequest updateGroupRequest) {<NEW_LINE>if (updateGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<UpdateGroupRequest> request = new DefaultRequest<UpdateGroupRequest>(updateGroupR... | request.setHttpMethod(HttpMethodName.POST); |
1,046,489 | public void pwrite(TBrokerFD fd, long offset, byte[] data) {<NEW_LINE>FSDataOutputStream <MASK><NEW_LINE>synchronized (fsDataOutputStream) {<NEW_LINE>long currentStreamOffset;<NEW_LINE>try {<NEW_LINE>currentStreamOffset = fsDataOutputStream.getPos();<NEW_LINE>} catch (IOException e) {<NEW_LINE>logger.error("errors whil... | fsDataOutputStream = clientContextManager.getFsDataOutputStream(fd); |
1,004,428 | public List<OCRResult> createDocumentsWithResults(BufferedImage[] bis, String[] filenames, String[] outputbases, List<ITesseract.RenderedFormat> formats, int pageIteratorLevel) throws TesseractException {<NEW_LINE>if (bis.length != filenames.length || bis.length != outputbases.length) {<NEW_LINE>throw new RuntimeExcept... | : new ArrayList<Word>(); |
1,633,607 | public void drawU(UGraphic ug) {<NEW_LINE>final StringBounder stringBounder = ug.getStringBounder();<NEW_LINE>final FtileGeometry geo = getFtile1().calculateDimension(stringBounder);<NEW_LINE>if (geo.hasPointOut() == false)<NEW_LINE>return;<NEW_LINE>final Point2D p1 = getP1(stringBounder);<NEW_LINE>final double x1 = p1... | snake.addPoint(x2, y2); |
1,781,878 | public static void populateForBLS12(final PrecompileContractRegistry registry, final GasCalculator gasCalculator) {<NEW_LINE>populateForIstanbul(registry, gasCalculator);<NEW_LINE>registry.put(Address.BLS12_G1ADD, new BLS12G1AddPrecompiledContract());<NEW_LINE>registry.put(Address.BLS12_G1MUL, new BLS12G1MulPrecompiled... | .BLS12_G2ADD, new BLS12G2AddPrecompiledContract()); |
728,695 | public static I_C_Order extend(@NonNull final I_C_Order existentOrder) {<NEW_LINE>if (I_C_Order.CONTRACTSTATUS_Extended.equals(existentOrder.getContractStatus())) {<NEW_LINE>throw new AdempiereException(Services.get(IMsgBL.class).getTranslatableMsgText(MSG_EXTEND_CONTRACT_ALREADY_PROLONGED));<NEW_LINE>} else {<NEW_LINE... | DocStatus.Drafted.getCode()); |
1,475,356 | private void push(Vector3ic pos, byte value) {<NEW_LINE>byte regenValue = value;<NEW_LINE>Block block = regenWorld.getBlockAt(pos);<NEW_LINE>Vector3i position = new Vector3i(pos);<NEW_LINE>while (regenRules.canSpreadOutOf(block, Side.BOTTOM)) {<NEW_LINE>regenValue = regenRules.propagateValue(regenValue, Side.BOTTOM, bl... | new Vector3i(position), sunlightValue); |
170,625 | public void paint(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g.create();<NEW_LINE>Rectangle r = new Rectangle(getSize());<NEW_LINE>JBInsets.removeFrom(r, JBUI.insets(1<MASK><NEW_LINE>try {<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>g2.setRendering... | , 0, 1, 1)); |
1,072,778 | boolean checkIfRemote(SibRaMessagingEngineConnection conn) {<NEW_LINE>final String methodName = "checkIfRemote";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, new Object[] { conn });<NEW_LINE>}<NEW_LINE>String meName = conn.getConnection().g... | String localName = me.getName(); |
81,444 | private static void inlineMembers(Type from, Type to) {<NEW_LINE>// Move all the members to base class except the java.lang.Object methods.<NEW_LINE>// We could also have moved members from all subclasses however @Memoized methods are<NEW_LINE>// overridden hence requires more complicated re-writing.<NEW_LINE>// Valida... | ).isEmpty(), m); |
1,049,064 | private void select(final int index) {<NEW_LINE>unhighlightSelected();<NEW_LINE>final String message;<NEW_LINE>if (index >= 0) {<NEW_LINE>JLabel newSelected = iconLabels.get(index);<NEW_LINE>this.selected = newSelected;<NEW_LINE>highlightSelected();<NEW_LINE>final IconDescription iconInformation = icons.get(index);<NEW... | .META_DOWN_MASK : KeyEvent.CTRL_DOWN_MASK)); |
1,133,785 | private void readTables(Schema schema, ResultSet rsTable) throws SQLException {<NEW_LINE>if (SHOW_METADATA) {<NEW_LINE>final <MASK><NEW_LINE>int numberOfColumns = rsmd.getColumnCount();<NEW_LINE>for (int x = 1; x <= numberOfColumns; x++) {<NEW_LINE>LOGGER.debug(rsmd.getColumnName(x) + ", " + rsmd.getColumnClassName(x) ... | ResultSetMetaData rsmd = rsTable.getMetaData(); |
785,393 | private Letter createLetter(final char pCharacter) throws FontException {<NEW_LINE>final String characterAsString = String.valueOf(pCharacter);<NEW_LINE>final float textureWidth = this.mTextureWidth;<NEW_LINE>final float textureHeight = this.mTextureHeight;<NEW_LINE>this.updateTextBounds(characterAsString);<NEW_LINE>fi... | this.mCurrentTextureY + letterHeight) / textureHeight; |
1,354,039 | final DescribeMountTargetsResult executeDescribeMountTargets(DescribeMountTargetsRequest describeMountTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMountTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,256,439 | public void testComms_Send_Message_P2PTest_Default(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>QueueConnectionFactory cf1 = (QueueConnectionFactory) new <MASK><NEW_LINE>Queue queue = (Queue) new InitialContext().lookup("java:comp/env/jndi_IN... | InitialContext().lookup("java:comp/env/jndi_JMS_BASE_QCF"); |
1,668,078 | public AvailabilityZone unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AvailabilityZone availabilityZone = new AvailabilityZone();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | class).unmarshall(context)); |
239,859 | final ListFindingsFiltersResult executeListFindingsFilters(ListFindingsFiltersRequest listFindingsFiltersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFindingsFiltersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | invoke(request, responseHandler, executionContext); |
655,024 | public void eventExpiryNotification(Transaction transaction) throws SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "eventExpiryNotification", new Object[] { transaction, key.getTick() });<NEW_LINE>super.eventExpiryNotification(transaction... | SibTr.exit(tc, "eventExpiryNotification"); |
1,699,530 | public boolean loadExisting() {<NEW_LINE>if (!nodes.loadExisting() || !edges.loadExisting())<NEW_LINE>return false;<NEW_LINE>// now load some properties from stored data<NEW_LINE>final int nodesVersion = nodes.getHeader(0 * 4);<NEW_LINE>GHUtility.checkDAVersion("nodes", Constants.VERSION_NODE, nodesVersion);<NEW_LINE>n... | .getHeader(5 * 4)); |
476,549 | void printJVMs(List<String> args) {<NEW_LINE>final Map<String, List<<MASK><NEW_LINE>if (jres == null)<NEW_LINE>println("No detected Java installations");<NEW_LINE>else {<NEW_LINE>STDOUT.println(LOG_PREFIX + "Detected Java installations:");<NEW_LINE>for (Map.Entry<String, List<Path>> j : jres.entrySet()) {<NEW_LINE>for ... | Path>> jres = getJavaHomes(); |
184,451 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>SharedPreferences themePrefs = getSharedPreferences("THEME", 0);<NEW_LINE>Boolean isDark = themePrefs.getBoolean("isDark", false);<NEW_LINE>if (isDark)<NEW_LINE>setTheme(R.style.DarkTheme);<NEW_LINE>else<NEW_LINE>setTheme(R.style.AppTheme);<NEW_LINE>super.onCre... | .getMsfRpc().updateSessions(); |
1,380,451 | public void onClick(View v) {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>if (activity != null) {<NEW_LINE>Context themedContext = UiUtilities.getThemedContext(activity, nightMode);<NEW_LINE>AlertDialog.Builder b = new AlertDialog.Builder(themedContext);<NEW_LINE>b.setTitle(R.string.favorite_category_name);<NE... | AndroidUtils.dpToPx(activity, 4f); |
54,786 | public RexNode visitOver(RexOver over) {<NEW_LINE>// Look up the aggCall which this expr was translated to.<NEW_LINE>final Window.RexWinAggCall aggCall = aggMap.get(origToNewOver.get(over));<NEW_LINE>assert aggCall != null;<NEW_LINE>assert RelOptUtil.eq("over", over.getType(), "aggCall", aggCall.<MASK><NEW_LINE>// Find... | getType(), Litmus.THROW); |
904,974 | // Defect 268176.1<NEW_LINE>public boolean isAvailable() {<NEW_LINE>boolean available = false;<NEW_LINE>String relativeURL = inputSource.getRelativeURL();<NEW_LINE>Container container = tcontext.getServletContext().getModuleContainer();<NEW_LINE>if (container != null) {<NEW_LINE>if (options.isDisableJspRuntimeCompilati... | File(realPath).exists(); |
1,103,452 | protected void invalidated() {<NEW_LINE>Timeline t = get();<NEW_LINE>if (old != null) {<NEW_LINE>old.currentRateProperty().removeListener(rateListener);<NEW_LINE>}<NEW_LINE>if (t == null) {<NEW_LINE>startBtn.setDisable(true);<NEW_LINE>rwBtn.setDisable(true);<NEW_LINE>playBtn.setDisable(true);<NEW_LINE>ffBtn.setDisable(... | currentRateProperty().addListener(rateListener); |
1,331,290 | private static Set<InjectableBean<?>> resolve(List<InjectableBean<?>> matching) {<NEW_LINE>if (matching.isEmpty()) {<NEW_LINE>return Collections.emptySet();<NEW_LINE>} else if (matching.size() == 1) {<NEW_LINE>return Set.of(matching.get(0));<NEW_LINE>}<NEW_LINE>// Try to resolve the ambiguity and return the set of disa... | (priorityBeans.get(0)); |
1,164,498 | public void fload(int iArg) {<NEW_LINE>this.countLabels = 0;<NEW_LINE>this.stackDepth++;<NEW_LINE>if (this.maxLocals <= iArg) {<NEW_LINE>this.maxLocals = iArg + 1;<NEW_LINE>}<NEW_LINE>if (this.stackDepth > this.stackMax)<NEW_LINE>this.stackMax = this.stackDepth;<NEW_LINE>if (iArg > 255) {<NEW_LINE>// Widen<NEW_LINE>if ... | .classFileOffset++] = Opcodes.OPC_wide; |
760,845 | private void testHelper(boolean bindToJavaGlobal) throws Exception {<NEW_LINE>// Local short<NEW_LINE>ConfigTestsLocalEJB bean = lookupShort();<NEW_LINE>assertNotNull("1 ---> ConfigTestsLocalEJB short default lookup did not succeed.", bean);<NEW_LINE>String str = bean.getString();<NEW_LINE>assertEquals("2 ---> getStrin... | assertEquals("4 ---> getString() returned unexpected value", "Success", rstr); |
1,670,738 | public String resolveProperty(PropertyExpansionContext context, String propertyName, boolean globalOverride) {<NEW_LINE>Object property = null;<NEW_LINE>String xpath = null;<NEW_LINE>int sepIx = <MASK><NEW_LINE>if (sepIx == 0) {<NEW_LINE>propertyName = propertyName.substring(1);<NEW_LINE>sepIx = propertyName.indexOf(Pr... | propertyName.indexOf(PropertyExpansion.PROPERTY_SEPARATOR); |
1,462,026 | default void emitValue(@Nullable T value, Sinks.EmitFailureHandler failureHandler) {<NEW_LINE>if (value == null) {<NEW_LINE>emitEmpty(failureHandler);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (; ; ) {<NEW_LINE>Sinks.EmitResult emitResult = tryEmitValue(value);<NEW_LINE>if (emitResult.isSuccess()) {<NEW_LINE>return;<NEW... | onDiscard(value, currentContext()); |
946,606 | // GEN-LAST:event_createNewPlatform<NEW_LINE>private void librariesBrowseActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_librariesBrowseActionPerformed<NEW_LINE>if (!isSharable) {<NEW_LINE>boolean result = makeSharable(uiProperties);<NEW_LINE>if (result) {<NEW_LINE>isSharable = true;<NEW_L... | getAntProjectHelper().getLibrariesLocation()); |
183,878 | public void collapseGraph(CallGraphNode node) {<NEW_LINE>// need to undo (remove in and out nodes<NEW_LINE>// who are not in center list)<NEW_LINE>ArrayList inputsToRemove = new ArrayList();<NEW_LINE>ArrayList outputsToRemove = new ArrayList();<NEW_LINE>ArrayList nodesToRemove = new ArrayList();<NEW_LINE>if (node.getIn... | (Edge) inRIt.next(); |
948,954 | public synchronized void shutdown() {<NEW_LINE>if (running.get()) {<NEW_LINE>// Make sure all dependent bean instances obtained via CDI.current() are destroyed correctly<NEW_LINE>CDI<?> cdi = CDI.current();<NEW_LINE>if (cdi instanceof ArcCDI) {<NEW_LINE>ArcCDI arcCdi = (ArcCDI) cdi;<NEW_LINE>arcCdi.destroy();<NEW_LINE>... | ).notify(toString()); |
496,078 | private Mono<Response<Flux<ByteBuffer>>> swapPublicIpAddressesWithResponseAsync(String location, LoadBalancerVipSwapRequest parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot... | error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); |
989,691 | public static Operation createInstance(AnnotationModel annotation, ApiContext context) {<NEW_LINE>OperationImpl from = new OperationImpl();<NEW_LINE>from.setSummary(annotation.getValue("summary", String.class));<NEW_LINE>from.setDescription(annotation.getValue<MASK><NEW_LINE>AnnotationModel externalDocs = annotation.ge... | ("description", String.class)); |
238,535 | private void executeAggregation(OCommandContext ctx, int nRecords) {<NEW_LINE>long timeoutBegin = System.currentTimeMillis();<NEW_LINE>if (!prev.isPresent()) {<NEW_LINE>throw new OCommandExecutionException("Cannot execute an aggregation or a GROUP BY without a previous result");<NEW_LINE>}<NEW_LINE>OExecutionStepIntern... | addAll(aggregateResults.values()); |
1,093,815 | static void purgeFinishedDir(FileSystem fs, Path finishedDir, LocalDate cutOffDate) throws IOException {<NEW_LINE>FileStatus[] yearDirs = fs.listStatus(finishedDir, path -> path.getName().matches("\\d{4}"));<NEW_LINE>for (FileStatus yearDir : yearDirs) {<NEW_LINE>int year = Integer.parseInt(yearDir.getPath().getName())... | with(TemporalAdjusters.lastDayOfMonth()); |
1,215,077 | static long readLongFast(final ByteBuf buffer) {<NEW_LINE>int b = buffer.readByte();<NEW_LINE>long result = b & 0x7F;<NEW_LINE>if ((b & 0x80) != 0) {<NEW_LINE>b = buffer.readByte();<NEW_LINE>result |= (b & 0x7F) << 7;<NEW_LINE>if ((b & 0x80) != 0) {<NEW_LINE>b = buffer.readByte();<NEW_LINE>result |= (b & 0x7F) << 14;<N... | ) (b & 0x7F) << 42; |
1,025,627 | public void render(@Nonnull RevolvershotEntity entity, float entityYaw, float partialTicks, PoseStack matrixStackIn, MultiBufferSource bufferIn, int packedLightIn) {<NEW_LINE>matrixStackIn.pushPose();<NEW_LINE>VertexConsumer builder = bufferIn.getBuffer(IERenderTypes.getPositionTex(getTextureLocation(entity)));<NEW_LIN... | scale(0.25F, 0.25F, 0.25F); |
1,554,511 | public static void removeLegacyNonScopesFromMapping(Map<ScopeImpl, PvmExecutionImpl> mapping) {<NEW_LINE>Map<PvmExecutionImpl, List<ScopeImpl>> scopesForExecutions = new HashMap<PvmExecutionImpl, List<ScopeImpl>>();<NEW_LINE>for (Map.Entry<ScopeImpl, PvmExecutionImpl> mappingEntry : mapping.entrySet()) {<NEW_LINE>List<... | > scopes = scopesForExecution.getValue(); |
1,250,130 | public int handleParseException(ParameterException ex, String[] args) {<NEW_LINE><MASK><NEW_LINE>CommandSpec spec = cmd.getCommandSpec();<NEW_LINE>// bold red<NEW_LINE>output.error(ex.getMessage());<NEW_LINE>output.printStackTrace(ex);<NEW_LINE>UnmatchedArgumentException.printSuggestions(ex, output.err());<NEW_LINE>// ... | CommandLine cmd = ex.getCommandLine(); |
129,786 | public VpnStaticRoute unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>VpnStaticRoute vpnStaticRoute = new VpnStaticRoute();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<N... | ().unmarshall(context)); |
1,568,772 | public static void readJson(List<ConsumerJsonRecord> jsonRecords, Iterator recordIterator, ConsumerLocalConfigs consumerLocalConfig) throws IOException {<NEW_LINE>while (recordIterator.hasNext()) {<NEW_LINE>ConsumerRecord thisRecord = (ConsumerRecord) recordIterator.next();<NEW_LINE>Object key = thisRecord.key();<NEW_L... | valueNode = objectMapper.readTree(valueStr); |
264,021 | public void trimAllThreads(int length, long trimBeforeDate) {<NEW_LINE>if (length == NO_TRIM_MESSAGE_COUNT_SET && trimBeforeDate == NO_TRIM_BEFORE_DATE_SET) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLiteDatabase db = databaseHelper.getSignalWritableDatabase();<NEW_LINE>AttachmentDatabase attachmentDatabase = SignalDatab... | MentionDatabase mentionDatabase = SignalDatabase.mentions(); |
778,050 | public void initChannel(Channel ch) {<NEW_LINE>ChannelPipeline pipeline = ch.pipeline();<NEW_LINE><MASK><NEW_LINE>HttpRequestHandlerChain invalidRequestHandler = new InvalidRequestHandler();<NEW_LINE>int maxRequestSize = ConfigManager.getInstance().getMaxRequestSize();<NEW_LINE>if (sslCtx != null) {<NEW_LINE>pipeline.a... | HttpRequestHandlerChain apiDescriptionRequestHandler = new ApiDescriptionRequestHandler(connectorType); |
1,109,119 | private static SQLResponse executeAndConvertResult(PreparedStatement preparedStatement) throws SQLException {<NEW_LINE>if (preparedStatement.execute()) {<NEW_LINE>ResultSetMetaData metadata = preparedStatement.getMetaData();<NEW_LINE>ResultSet resultSet = preparedStatement.getResultSet();<NEW_LINE>List<Object[]> rows =... | dataTypes, rows.size()); |
666,159 | public Request<CreateBackupRequest> marshall(CreateBackupRequest createBackupRequest) {<NEW_LINE>if (createBackupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(CreateBackupRequest)");<NEW_LINE>}<NEW_LINE>Request<CreateBackupRequest> request = new DefaultRequest<CreateBa... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
1,538,633 | private void addSMAMarkerLines(ChartInterval chartInterval, String smaSeries, String smaDaysWording, int smaDays, Color smaColor) {<NEW_LINE>ChartLineSeriesAxes smaLines = new SimpleMovingAverage(smaDays, this.<MASK><NEW_LINE>if (smaLines == null || smaLines.getValues() == null || smaLines.getDates() == null)<NEW_LINE>... | security, chartInterval).getSMA(); |
1,033,888 | public void drop(DropTargetDropEvent dtde) {<NEW_LINE>if ((dtde.getDropAction() & DnDConstants.ACTION_COPY_OR_MOVE) == 0) {<NEW_LINE>dtde.rejectDrop();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>dtde.acceptDrop(DnDConstants.ACTION_COPY);<NEW_LINE>Transferable transferable = dtde.getTransferable();<NEW_LINE>try {<NEW_LINE>// ... | get(i).getFile(); |
1,352,672 | public ListOutgoingTypedLinksResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListOutgoingTypedLinksResult listOutgoingTypedLinksResult = new ListOutgoingTypedLinksResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | class).unmarshall(context)); |
481,813 | private void openCommPort(String portName) throws Exception {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>Enumeration portIdentifiers = CommPortIdentifier.getPortIdentifiers();<NEW_LINE>while (portIdentifiers.hasMoreElements()) {<NEW_LINE>CommPortIdentifier id = (CommPortIdentifier) portIdentifiers.nextElement();<NEW... | portIdentifier = CommPortIdentifier.getPortIdentifier(portName); |
1,526,420 | public static void main(String[] args) {<NEW_LINE>// as in Figure in HLD section, not yet rooted<NEW_LINE>int N = 19;<NEW_LINE>AL = new ArrayList<>();<NEW_LINE>for (int i = 0; i < N; ++i) AL.add(new ArrayList<>());<NEW_LINE>AL.get(0).add(1);<NEW_LINE>AL.get(0).add(2);<NEW_LINE>AL.get(0).add(3);<NEW_LINE>AL.get(1).add(0... | (11).add(7); |
1,626,831 | public static void main(String[] args) throws Exception {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addRequiredOption(null, "input", true, "Plain text input file");<NEW_LINE>options.addRequiredOption(null, "lang", true, "Language code, e.g. en-US");<NEW_LINE>options.addRequiredOption(null, "threads", t... | cmd.getOptionValue("output"))); |
64,807 | private <T> T loadSettingInstance(String settingName, Object settingValue, Class<T> clazz) {<NEW_LINE>T instance = null;<NEW_LINE>Class<? extends T> instanceClass = null;<NEW_LINE>if (clazz.isAssignableFrom(settingValue.getClass())) {<NEW_LINE>instance = (T) settingValue;<NEW_LINE>} else if (settingValue instanceof Cla... | standardServiceRegistry.getService(ClassLoaderService.class); |
878,212 | protected void writeCacheFile(final FileChannel fc, final long start, final long end, final Consumer<Long> progressUpdater) throws IOException {<NEW_LINE>assert assertFileChannelOpen(fc);<NEW_LINE>assert assertCurrentThreadMayWriteCacheFile();<NEW_LINE>final long length = end - start;<NEW_LINE>final byte[] copyBuffer =... | long startTimeNanos = stats.currentTimeNanos(); |
864,322 | private void writeBytes(byte[] value, boolean invert) {<NEW_LINE>// Determine the length of the encoded array<NEW_LINE>// for separator<NEW_LINE>int encodedLength = 2;<NEW_LINE>for (byte b : value) {<NEW_LINE>if ((b == ESCAPE1) || (b == ESCAPE2)) {<NEW_LINE>encodedLength += 2;<NEW_LINE>} else {<NEW_LINE>encodedLength++... | outIndex, value.length - copyStart); |
1,396,602 | private Map<String, Object> parseActionCodeResult(@NonNull ActionCodeResult actionCodeResult) {<NEW_LINE>Map<String, Object> output = new HashMap<>();<NEW_LINE>Map<String, Object> data = new HashMap<>();<NEW_LINE>int operation = actionCodeResult.getOperation();<NEW_LINE>switch(operation) {<NEW_LINE>case ActionCodeResul... | PREVIOUS_EMAIL, actionCodeEmailInfo.getPreviousEmail()); |
1,472,919 | final TerminateProvisionedProductResult executeTerminateProvisionedProduct(TerminateProvisionedProductRequest terminateProvisionedProductRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(terminateProvisionedProductRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
521,064 | public void actionPerformed(ActionEvent arg0) {<NEW_LINE>UiUtils.submitUiMachineTask(() -> {<NEW_LINE>// Need to keep current focus owner so that the space bar can be<NEW_LINE>// used after the initial click. Otherwise, button focus is lost<NEW_LINE>// when table is updated<NEW_LINE>Component comp = MainFrame.get().get... | globals.put("camera", camera); |
973,635 | public boolean relativePan(float dX, float dY) {<NEW_LINE>android.util.Log.d(TAG, <MASK><NEW_LINE>// We only pan if the current scaling is able to pan.<NEW_LINE>if (canvasZoomer != null && !canvasZoomer.isAbleToPan())<NEW_LINE>return false;<NEW_LINE>double scale = getZoomFactor();<NEW_LINE>double sX = (double) dX / sca... | "relativePan: " + dX + ", " + dY); |
807,963 | protected void onCreate(@Nullable Bundle bundle) {<NEW_LINE>if (shouldSetUpContainerTransform()) {<NEW_LINE>String transitionName = getIntent().getStringExtra(EXTRA_TRANSITION_NAME);<NEW_LINE>findViewById(android.R.id.content).setTransitionName(transitionName);<NEW_LINE>setEnterSharedElementCallback(new MaterialContain... | this), demoContainer, bundle)); |
490,567 | final GetDevicePositionHistoryResult executeGetDevicePositionHistory(GetDevicePositionHistoryRequest getDevicePositionHistoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDevicePositionHistoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,038,900 | private OptimizableQueryType analyzeSubSteps(List<Step> steps) {<NEW_LINE>if (steps.size() != 2) {<NEW_LINE>return OptimizableQueryType.NONE;<NEW_LINE>}<NEW_LINE>boolean validFirstStep = (steps.get(0) instanceof EdgeVertexStep);<NEW_LINE>validFirstStep = validFirstStep || (steps.get(0) instanceof EdgeOtherVertexStep);<... | >) steps.get(1); |
86,535 | public Map<String, INDArray> init(NeuralNetConfiguration conf, INDArray paramsView, boolean initializeParams) {<NEW_LINE>Deconvolution3D layer = (Deconvolution3D) conf.getLayer();<NEW_LINE>if (layer.getKernelSize().length != 3)<NEW_LINE>throw new IllegalArgumentException("Filter size must be == 3");<NEW_LINE>Map<String... | (conf, weightView, initializeParams)); |
609,470 | public static byte[] encrypt(byte[] clearTextbytes, int offset, int length, byte[] cipherKey) throws Exception {<NEW_LINE>final byte[] nonce = new byte[GCM_NONCE_LENGTH];<NEW_LINE>random.nextBytes(nonce);<NEW_LINE>GCMParameterSpec spec = new <MASK><NEW_LINE>SecretKeySpec keySpec = new SecretKeySpec(cipherKey, "AES");<N... | GCMParameterSpec(GCM_TAG_LENGTH * 8, nonce); |
1,349,872 | public void marshall(TransferData transferData, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (transferData.getTransferMessage() != null) {<NEW_LINE>String transferMessage = transferData.getTransferMessage();<NEW_LINE>jsonWriter.name("transferMessage");<NEW_LINE>jsonWriter.... | Date acceptDate = transferData.getAcceptDate(); |
882,411 | public GetSystemTemplateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetSystemTemplateResult getSystemTemplateResult = new GetSystemTemplateResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
414,979 | public OriginShield unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>OriginShield originShield = new OriginShield();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>... | XMLEvent xmlEvent = context.nextEvent(); |
985,134 | public void updatePhis(Program program, Variable[] parameters) {<NEW_LINE>if (program.basicBlockCount() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>frontierVariableCache = new int[program.basicBlockCount()][][];<NEW_LINE>this.program = program;<NEW_LINE>phisByReceiver.clear();<NEW_LINE><MASK><NEW_LINE>domTree = GraphU... | cfg = ProgramUtils.buildControlFlowGraph(program); |
610,602 | private final I_M_HU_Trx_Line createTrxLine(final I_M_HU_Trx_Hdr trxHdr, final IHUTransactionCandidate trxLineCandidate) {<NEW_LINE>Check.assumeNotNull(trxLineCandidate.getCounterpart(), "TrxLine shall have a parent set: {}", trxLineCandidate);<NEW_LINE>Check.assume(trxLineCandidate != trxLineCandidate.getCounterpart()... | getProductId().getRepoId()); |
329,613 | public GetSuiteResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetSuiteResult getSuiteResult = new GetSuiteResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
1,469,457 | public void write_scope_int(IndentFileWriter p_file, IdentifierType p_identifier_type) throws java.io.IOException {<NEW_LINE>p_file.start_scope();<NEW_LINE>p_file.write("path ");<NEW_LINE>p_identifier_type.write(this.layer.name, p_file);<NEW_LINE>p_file.write(" ");<NEW_LINE>p_file.write((Double.valueOf(this.width)).toS... | int corner_count = coordinate_arr.length / 2; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.