idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
962,223 | public void baseline(Blackhole blackHole) {<NEW_LINE>blackHole.consume(baselineInstance.method(booleanValue));<NEW_LINE>blackHole.consume(baselineInstance.method(byteValue));<NEW_LINE>blackHole.consume(baselineInstance.method(shortValue));<NEW_LINE>blackHole.consume(baselineInstance.method(intValue));<NEW_LINE>blackHol... | (intValue, intValue, intValue)); |
499,678 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select count(*) as cnt from SupportBean#time(10 seconds) output every 10 seconds";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>sendTimer(env, 0);<NEW_LINE>sendTimer(env, 10000);<NEW_LINE>env.assertListenerNotInvoke... | ] newEvents = listener.getAndResetLastNewData(); |
882,860 | public DescribeDefaultParametersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeDefaultParametersResult describeDefaultParametersResult = new DescribeDefaultParametersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g... | )).unmarshall(context)); |
1,709,721 | private void replaceExpressionsWithConstant() throws JavaModelException {<NEW_LINE>ASTRewrite astRewrite = fCuRewrite.getASTRewrite();<NEW_LINE>AST ast = astRewrite.getAST();<NEW_LINE>IASTFragment[] fragmentsToReplace = getFragmentsToReplace();<NEW_LINE>for (int i = 0; i < fragmentsToReplace.length; i++) {<NEW_LINE>IAS... | .getName()), ref); |
413,136 | public int doMain(String[] args) throws InvocationTargetException, InterruptedException {<NEW_LINE>GCViewerArgsParser argsParser = gcViewerArgsParser;<NEW_LINE>try {<NEW_LINE>argsParser.parseArguments(args);<NEW_LINE>} catch (GCViewerArgsParserException e) {<NEW_LINE>usage();<NEW_LINE>LOGGER.log(Level.SEVERE, e.getMess... | Level.SEVERE, "Error during report generation", e); |
103,748 | private String findParts(String input) {<NEW_LINE>ArrayList<String> lastParts = new ArrayList<>();<NEW_LINE>int <MASK><NEW_LINE>if (afterAuthorsIndex == -1) {<NEW_LINE>return input;<NEW_LINE>} else {<NEW_LINE>afterAuthorsIndex += AUTHOR_TAG.length();<NEW_LINE>}<NEW_LINE>int delimiterIndex = input.lastIndexOf("//");<NEW... | afterAuthorsIndex = input.lastIndexOf(AUTHOR_TAG); |
1,538,996 | public static void forwardBackWardDemo() {<NEW_LINE>System.out.println("DEMO: Forward-BackWard");<NEW_LINE>System.out.println("======================");<NEW_LINE>System.out.println("Umbrella World");<NEW_LINE>System.out.println("--------------");<NEW_LINE>ForwardBackward uw = new ForwardBackward(GenericTemporalModelFac... | = new ArrayList<AssignmentProposition>(); |
1,055,433 | private void storeResult(JavaCompileSpec spec, WorkResult result) {<NEW_LINE>ClassSetAnalysisData outputSnapshot = classpathSnapshotter.analyzeOutputFolder(spec.getDestinationDir());<NEW_LINE>ClassSetAnalysisData classpathSnapshot = classpathSnapshotter.getClasspathSnapshot(Iterables.concat(spec.getCompileClasspath(), ... | getCompileOptions().getPreviousCompilationDataFile()); |
439,770 | public void kmeans(int numClusters) {<NEW_LINE>init(numClusters);<NEW_LINE>int loop = 0;<NEW_LINE>do {<NEW_LINE>membershipChanges.reset();<NEW_LINE>mapToNearestCluster(data, numPoints, numFeatures, clusters, numClusters, membership, membershipChanges);<NEW_LINE>// graph.schedule().waitOn();<NEW_LINE>updateClusters(data... | printf("loop: id=%d, delta=%f\n", loop, delta); |
1,109,974 | private void populateArgs(JSONObject headers) throws JSONException, UnsupportedEncodingException {<NEW_LINE>if (headers != null) {<NEW_LINE>// add headers. Handles headers with multiple values.<NEW_LINE>Iterator<String> headerKeys = headers.keys();<NEW_LINE>while (headerKeys.hasNext()) {<NEW_LINE>String headerKey = hea... | Object value = e.getValue(); |
1,707,230 | public static void main(String[] args) {<NEW_LINE>var surfFast = new ConfigDenseSurfFast(new DenseSampling(8, 8));<NEW_LINE>// ConfigDenseSurfStable surfStable = new ConfigDenseSurfStable(new DenseSampling(8,8));<NEW_LINE>// ConfigDenseSift sift = new ConfigDenseSift(new DenseSampling(6,6));<NEW_LINE>// ConfigDenseHoG ... | .createDescription().size(); |
574,935 | private static void fetchLatestInfo() throws IOException {<NEW_LINE>URL updateURL = new URL(API);<NEW_LINE>String content = IOUtils.toString(updateURL.openStream(), StandardCharsets.UTF_8);<NEW_LINE>JsonObject updateJson = Json.parse(content).asObject();<NEW_LINE>// compare versions<NEW_LINE>latestVersion = updateJson.... | assetObj.getString("name", "invalid"); |
708,236 | public void visitCode() {<NEW_LINE>mv.<MASK><NEW_LINE>mv.visitMethodInsn(Opcodes.INVOKESTATIC, CONNECT_CLASS, "getString", "(Ljava/net/SocketAddress;)Ljava/lang/String;", false);<NEW_LINE>mv.visitVarInsn(Opcodes.ASTORE, 2);<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 0);<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 1);<NEW_LINE... | visitVarInsn(Opcodes.ALOAD, 1); |
853,854 | Set<SinkRecordField> missingFields(Collection<SinkRecordField> fields, Set<String> dbColumnNames) {<NEW_LINE>final Set<SinkRecordField> missingFields = new HashSet<>();<NEW_LINE>for (SinkRecordField field : fields) {<NEW_LINE>if (!dbColumnNames.contains(field.name())) {<NEW_LINE><MASK><NEW_LINE>missingFields.add(field)... | log.debug("Found missing field: {}", field); |
713,657 | public Expression expression(TableSchema<?> tableSchema, String indexName) {<NEW_LINE>String partitionKey = tableSchema.tableMetadata().indexPartitionKey(indexName);<NEW_LINE>AttributeValue partitionValue = key.partitionKeyValue();<NEW_LINE>if (partitionValue == null || partitionValue.equals(nullAttributeValue())) {<NE... | > sortKeyValue = key.sortKeyValue(); |
1,705,111 | public void handleCommit(ApplyCommitRequest applyCommit) {<NEW_LINE>if (applyCommit.getTerm() != getCurrentTerm()) {<NEW_LINE>logger.debug("handleCommit: ignored commit request due to term mismatch " + "(expected: [term {} version {}], actual: [term {} version {}])", getLastAcceptedTerm(), getLastAcceptedVersion(), app... | ) + " does not match current term " + getCurrentTerm()); |
1,319,202 | protected void handleIterator(String[] args) {<NEW_LINE>Iterator it = null;<NEW_LINE>String iteratorStr = args[0];<NEW_LINE>if (iteratorStr.startsWith("s.")) {<NEW_LINE>it = getSet().iterator();<NEW_LINE>} else if (iteratorStr.startsWith("m.")) {<NEW_LINE>it = getMap().keySet().iterator();<NEW_LINE>} else if (iteratorS... | = getQueue().iterator(); |
377,889 | public static ListInboundOrderSKUTagsResponse unmarshall(ListInboundOrderSKUTagsResponse listInboundOrderSKUTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInboundOrderSKUTagsResponse.setRequestId(_ctx.stringValue("ListInboundOrderSKUTagsResponse.RequestId"));<NEW_LINE>listInboundOrderSKUTagsResponse.setPageSize... | = new ArrayList<InboundOrderSkuTagBiz>(); |
1,387,162 | // ------------------------------------------------------------------------<NEW_LINE>// Implementation of EjbResourceConfiguration<NEW_LINE>// ------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public String findJndiNameForEjb(String ejbName) throws ConfigurationExcepti... | equals(ejb.getEjbName()); |
538,432 | String generate() {<NEW_LINE>String generatedClassName = "io.quarkus.spring.web.mappers." + exceptionDotName.withoutPackagePrefix() + "_Mapper_" + HashUtil.sha1(exceptionDotName.toString());<NEW_LINE>String exceptionClassName = exceptionDotName.toString();<NEW_LINE>try (ClassCreator cc = ClassCreator.builder().classOut... | .getMethodParam(0), exceptionClassName); |
327,076 | public AddCartResponse addToCart(AddCartRequest request) {<NEW_LINE>AddCartResponse response = new AddCartResponse();<NEW_LINE>response.setCode(ShoppingRetCode.SUCCESS.getCode());<NEW_LINE>response.setMsg(ShoppingRetCode.SUCCESS.getMessage());<NEW_LINE>try {<NEW_LINE>request.requestCheck();<NEW_LINE>boolean exists = re... | containsKey(request.getItemId()); |
1,474,822 | LookupSubTable readLookupSubTable(TTFDataStream data, long offset) throws IOException {<NEW_LINE>data.seek(offset);<NEW_LINE>int substFormat = data.readUnsignedShort();<NEW_LINE>switch(substFormat) {<NEW_LINE>case 1:<NEW_LINE>{<NEW_LINE>LookupTypeSingleSubstFormat1 lookupSubTable = new LookupTypeSingleSubstFormat1();<N... | int coverageOffset = data.readUnsignedShort(); |
712,533 | private void processEEPs(EnoceanBindingProvider enoceanBindingProvider, String itemName) {<NEW_LINE>EnoceanParameterAddress parameterAddress = enoceanBindingProvider.getParameterAddress(itemName);<NEW_LINE>EEPId eep = enoceanBindingProvider.getEEP(itemName);<NEW_LINE>esp3Host.addDeviceProfile(parameterAddress.getEnocea... | constructor.newInstance(item, eventPublisher); |
1,854,475 | public static String findParameterType(ParameterContext parameterContext) {<NEW_LINE>ResolvedMethodParameter resolvedMethodParameter = parameterContext.resolvedMethodParameter();<NEW_LINE>ResolvedType parameterType = resolvedMethodParameter.getParameterType();<NEW_LINE>parameterType = parameterContext.alternateFor(para... | getOperationContext().httpMethod()); |
632,373 | public void save() {<NEW_LINE>settings.setVerboseOutputEnabled(verboseConsoleOutput.getValue());<NEW_LINE>settings.setUseZStepSize(useZStepSize.getValue());<NEW_LINE>settings.setSingleStepMode(singleStepMode.getValue());<NEW_LINE>settings.setSafetyHeight((int) safetyHeight.getValue());<NEW_LINE>settings.setStatusUpdate... | setWorkspaceDirectory(workspaceDirectory.getText()); |
1,664,879 | public static SearchRequest<Amenity> buildSearchPoiRequest(List<Location> route, double radius, SearchPoiTypeFilter poiTypeFilter, ResultMatcher<Amenity> resultMatcher) {<NEW_LINE>SearchRequest<Amenity> request = new SearchRequest<Amenity>();<NEW_LINE>float coeff = (float) (radius / MapUtils.getTileDistanceWidth(Search... | Math.max(y, sbottom); |
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>XDMUtils.mkdirs(getOutputFolder());<NEW_LINE>try {<NEW_LINE>assembleFinished = false;<NEW_LINE>ArrayList<Segment> list1 = new ArrayList<>();<NEW_LINE>... | (), getOutputFileName(true)); |
280,168 | public void handleElementEnd(String localName, HandlerState state) {<NEW_LINE>if (state.getContentBuf() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String content = state.getContentBuf().toString();<NEW_LINE>String contentFromHtml = HtmlCompat.fromHtml(content, HtmlCompat.FROM_HTML_MODE_COMPACT).toString();<NEW_LIN... | getCurrentItem().setDescriptionIfLonger(content); |
1,850,556 | final DescribeServicesResult executeDescribeServices(DescribeServicesRequest describeServicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | invoke(request, responseHandler, executionContext); |
897,013 | public Optional<Layout> resolveLayout(final HttpServletRequest request) {<NEW_LINE>Layout layout = Try.of(() -> loadLayout(request.getParameter("p_l_id"))).getOrNull();<NEW_LINE>if (layout == null || UtilMethods.isNotSet(layout.getId())) {<NEW_LINE>final String <MASK><NEW_LINE>if (referer != null && referer.indexOf("?"... | referer = request.getHeader("referer"); |
1,113,456 | void processEntry(Map<String, ?> entry, ConfigurationSet configurationSet) {<NEW_LINE>boolean invalidResult = Boolean.FALSE.equals(entry.get("result"));<NEW_LINE>ConfigurationCondition condition = ConfigurationCondition.alwaysTrue();<NEW_LINE>if (invalidResult) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String function = (... | >) entry.get("args"); |
1,111,121 | private void handleResolvedMedia(Intent intent) {<NEW_LINE>int chatId = intent.getIntExtra(EXTRA_CHAT_ID, -1);<NEW_LINE>String shortcutId = intent.getStringExtra(ShortcutManagerCompat.EXTRA_SHORTCUT_ID);<NEW_LINE>if (chatId == -1 && shortcutId != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String[] extraEmail = getInte... | chatId = Integer.parseInt(shortcutId); |
1,516,529 | final DeleteReceiptFilterResult executeDeleteReceiptFilter(DeleteReceiptFilterRequest deleteReceiptFilterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReceiptFilterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,698,110 | protected void usage(PrintWriter w) {<NEW_LINE>if (MainLookup.isStarted()) {<NEW_LINE>Lookup clis = Lookup.getDefault();<NEW_LINE>Collection<? extends CLIHandler> handlers = <MASK><NEW_LINE>showHelp(w, handlers, WHEN_EXTRA);<NEW_LINE>w.flush();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CLIOptions.fallbackToMemory();<NEW_LIN... | clis.lookupAll(CLIHandler.class); |
1,613,180 | private boolean modifyLanguage(DomainFile df, DBHandle dbh) throws IOException, ImproperUseException {<NEW_LINE>// TODO: Check for address map and overlay entries which could break from<NEW_LINE>// changing the memory model !!<NEW_LINE>Table table = dbh.getTable(TABLE_NAME);<NEW_LINE>if (table == null) {<NEW_LINE>Msg.s... | getLanguageID().getIdAsString()); |
1,366,490 | private void showConfigPanelForCustomizer(WebModule webModule) {<NEW_LINE>Project enclosingProject = Util.getEnclosingProjectFromWebModule(webModule);<NEW_LINE>HibernateEnvironment he = enclosingProject.getLookup(<MASK><NEW_LINE>List<FileObject> configFileObjects = he.getAllHibernateConfigFileObjects();<NEW_LINE>for (F... | ).lookup(HibernateEnvironment.class); |
1,336,841 | public void render(TurretTileEntity tile, float partialTicks, PoseStack matrixStack, MultiBufferSource bufferIn, int combinedLightIn, int combinedOverlayIn) {<NEW_LINE>if (tile.isDummy() || !tile.getWorldNonnull().hasChunkAt(tile.getBlockPos()))<NEW_LINE>return;<NEW_LINE>// Grab model + correct eextended state<NEW_LINE... | TurretGunTileEntity) tile).cycleRender / 3f; |
1,687,497 | private void checkAliases(Class<?> parent, String classname, String[] parts) {<NEW_LINE>Class<?> c = ELKIServiceRegistry.findImplementation((Class<Object>) parent, classname);<NEW_LINE>if (c == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Alias ann = c.getAnnotation(Alias.class);<NEW_LINE>if (ann == null) {<NEW_LINE>if... | (' ').append(a); |
1,415,039 | private void statInit() throws Exception {<NEW_LINE>final int p_WindowNo = getWindowNo();<NEW_LINE>lDocumentNo.setLabelFor(fDocumentNo);<NEW_LINE>fDocumentNo.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fDocumentNo.addActionListener(this);<NEW_LINE>lDescription.setLabelFor(fDescription);<NEW_LINE>fDescrip... | parameterPanel.add(lDateFrom, null); |
1,579,142 | public void marshall(UpdateLocationSmbRequest updateLocationSmbRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateLocationSmbRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_L... | updateLocationSmbRequest.getLocationArn(), LOCATIONARN_BINDING); |
1,643,710 | public void evaluate(Evaluation evaluation) {<NEW_LINE>AuthorizationProvider authorization = evaluation.getAuthorizationProvider();<NEW_LINE>DefaultEvaluation defaultEvaluation = DefaultEvaluation.class.cast(evaluation);<NEW_LINE>Map<Policy, Map<Object, Decision.Effect>> decisionCache = defaultEvaluation.getDecisionCac... | ResourcePermission permission = evaluation.getPermission(); |
142,801 | public final boolean isBundleLocallyBranded(String bundlepath, String codenamebase) {<NEW_LINE>// in modified keys?<NEW_LINE>if (inModifiedLocalizedKeysBundle(bundlepath, codenamebase))<NEW_LINE>return true;<NEW_LINE>// in branded but not modified keys?<NEW_LINE>Set<BundleKey> bundleKeys = getBranding().getLocalizedBra... | locale.toString() + ".properties"); |
1,805,876 | public ComponentPreset extractRailButton() {<NEW_LINE>TypedPropertyMap props = new TypedPropertyMap();<NEW_LINE>try {<NEW_LINE>props.put(ComponentPreset.<MASK><NEW_LINE>props.put(ComponentPreset.OUTER_DIAMETER, rbOuterDia.getValue());<NEW_LINE>props.put(ComponentPreset.INNER_DIAMETER, rbInnerDia.getValue());<NEW_LINE>p... | TYPE, ComponentPreset.Type.RAIL_BUTTON); |
996,164 | public void updateEntityAfterFallOn(BlockGetter worldIn, Entity entityIn) {<NEW_LINE>super.updateEntityAfterFallOn(worldIn, entityIn);<NEW_LINE>if (entityIn.level.isClientSide)<NEW_LINE>return;<NEW_LINE>if (!(entityIn instanceof ItemEntity))<NEW_LINE>return;<NEW_LINE>if (!entityIn.isAlive())<NEW_LINE>return;<NEW_LINE>M... | millstone.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY); |
836,303 | private SingularityDeployResult checkLbRevertToActiveTasks(SingularityRequest request, SingularityDeploy deploy, SingularityPendingDeploy pendingDeploy, SingularityDeployProgress updatedProgress, DeployState acceptanceHookDeployState, Collection<SingularityTaskId> deployActiveTasks, Collection<SingularityTaskId> otherA... | return new SingularityDeployResult(DeployState.WAITING); |
208,392 | public boolean onBackKey() {<NEW_LINE>// Convert to a string here to ensure that no other state associated with the text field<NEW_LINE>// gets saved.<NEW_LINE>String newTitle = mFolderName.getText().toString();<NEW_LINE>if (DEBUG) {<NEW_LINE>Log.<MASK><NEW_LINE>}<NEW_LINE>mInfo.setTitle(newTitle, mLauncherDelegate.get... | d(TAG, "onBackKey newTitle=" + newTitle); |
488,220 | protected FullHttpRequest newHandshakeRequest() {<NEW_LINE>URI wsURL = uri();<NEW_LINE>// Get 16 bit nonce and base 64 encode it<NEW_LINE>byte[] nonce = WebSocketUtil.randomBytes(16);<NEW_LINE>String key = WebSocketUtil.base64(nonce);<NEW_LINE>String acceptSeed = key + MAGIC_GUID;<NEW_LINE>byte[] sha1 = WebSocketUtil.s... | .SEC_WEBSOCKET_ORIGIN, websocketOriginValue(wsURL)); |
1,167,510 | private void registerMetrics() {<NEW_LINE>try {<NEW_LINE>KafkaUReplicatorMetricsReporter.get(<MASK><NEW_LINE>KafkaUReplicatorMetricsReporter.get().registerMetric("kafkaAndIdealstatesDiscrepancy.mismatched.topics", _numMismatchedTopics);<NEW_LINE>KafkaUReplicatorMetricsReporter.get().registerMetric("kafkaAndIdealstatesD... | ).registerMetric("kafkaAndIdealstatesDiscrepancy.missing.topics", _numMissingTopics); |
1,145,909 | public static void main(String[] args) throws Exception {<NEW_LINE>if (!ValidInput(args)) {<NEW_LINE>PrintUsage();<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>final String loadname = args[1];<NEW_LINE>final String savename = args[2];<NEW_LINE>final boolean silent = args.length > 3;<NEW_LINE>final byte... | final String command = args[0]; |
961,077 | private void handleApplyCommit(ApplyCommitRequest applyCommitRequest, ActionListener<Void> applyListener) {<NEW_LINE>synchronized (mutex) {<NEW_LINE>logger.trace("handleApplyCommit: applying commit {}", applyCommitRequest);<NEW_LINE>coordinationState.<MASK><NEW_LINE>final ClusterState committedState = hideStateIfNotRec... | get().handleCommit(applyCommitRequest); |
1,186,082 | public boolean checkTrigger(GameEvent event, Game game) {<NEW_LINE>if (!super.checkTrigger(event, game)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>EntersTheBattlefieldEvent entersEvent = (EntersTheBattlefieldEvent) event;<NEW_LINE>if (entersEvent.getFromZone() == Zone.LIBRARY) {<NEW_LINE>this.getEffects().clear();<N... | .getEffects().clear(); |
666,578 | public JasperPrint fill(Map<String, Object> parameterValues) throws JRException {<NEW_LINE>// FIXMEBOOK copied from JRBaseFiller<NEW_LINE>if (parameterValues == null) {<NEW_LINE>parameterValues = new HashMap<>();<NEW_LINE>}<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Fill " + fillerId + ": filling report")... | .getLocaleCode(getLocale())); |
599,246 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>UnitAttribute o = emc.... | remove(o, CheckRemoveType.all); |
515,534 | @PostMapping(value = "/batch-delete")<NEW_LINE>@ResponseStatus(HttpStatus.OK)<NEW_LINE>@ApiException(BATCH_DELETE_PROCESS_DEFINE_BY_CODES_ERROR)<NEW_LINE>@AccessLogAnnotation(ignoreRequestArgs = "loginUser")<NEW_LINE>public Result batchDeleteProcessDefinitionByCodes(@ApiIgnore @RequestAttribute(value = Constants.SESSIO... | processDefinitionCodeArray = codes.split(","); |
1,170,148 | public void loadData(final int numVertices, final int numThreads) throws Exception {<NEW_LINE>makeKey("w", Integer.class);<NEW_LINE>PropertyKey time = makeKey("t", Long.class);<NEW_LINE>((StandardEdgeLabelMaker) mgmt.makeEdgeLabel("l")).sortKey(time).make();<NEW_LINE>finishSchema();<NEW_LINE>final int maxQueue = 1000;<... | maxQueue) Thread.sleep(maxQueue); |
708,871 | public static void main(String[] args) {<NEW_LINE>if (args.length == 0) {<NEW_LINE>args = new String[] { "C:\\temp\\downloads.config", "C:\\temp\\downloads-9-3-05.config", "C:\\temp\\merged.config" };<NEW_LINE>} else if (args.length != 3) {<NEW_LINE>System.out.println("Usage: newer_config_file older_config_file save_co... | newFile(args[1])); |
1,168,283 | @UiThread<NEW_LINE>private static Constructor<? extends Unbinder> findBindingConstructorForClass(Class<?> cls) {<NEW_LINE>Constructor<? extends Unbinder> <MASK><NEW_LINE>if (bindingCtor != null || BINDINGS.containsKey(cls)) {<NEW_LINE>if (debug)<NEW_LINE>Log.d(TAG, "HIT: Cached in binding map.");<NEW_LINE>return bindin... | bindingCtor = BINDINGS.get(cls); |
124,639 | public boolean process(final I_ESR_ImportLine line, final String message) {<NEW_LINE>Check.assumeNotNull(line.getESR_Payment_Action(), "@" + ESRConstants.ERR_ESR_LINE_WITH_NO_PAYMENT_ACTION + "@");<NEW_LINE>// 08500: allocate when process<NEW_LINE>final I_C_Invoice invoice = line.getC_Invoice();<NEW_LINE>final PaymentI... | getPayAmt().subtract(invoiceOpenAmt); |
426,851 | public Optional<RuleMatch<T>> match(Request message) throws InvalidUriException {<NEW_LINE>final String method = message.method();<NEW_LINE>final String path = getPath(message);<NEW_LINE>if (method == null) {<NEW_LINE>LOG.warn("Invalid request for {} sent without method by service {}", message.uri(), message.service<MA... | ().orElse("<unknown>")); |
1,724,194 | public static ExtendedUri parseExtendedUri(final Element element) throws ParseException {<NEW_LINE>try {<NEW_LINE>final URI uri = new URI(getChild(element, "default-uri").getTextContent());<NEW_LINE>final long size = Long.parseLong(element.getAttribute("size"));<NEW_LINE>final String md5 = element.getAttribute("md5");<... | = new LinkedList<URI>(); |
1,356,618 | public Spec process(StringCharReader reader, String contextPath) {<NEW_LINE>String direction = reader.readWord();<NEW_LINE>boolean vertically;<NEW_LINE>if (direction.equals("vertically")) {<NEW_LINE>vertically = true;<NEW_LINE>} else if (direction.equals("horizontally")) {<NEW_LINE>vertically = false;<NEW_LINE>} else {... | String side = reader.readWord(); |
1,435,555 | private void compareJSON(String expected, String actual) throws Exception {<NEW_LINE>System.out.println("compareJSON\n\texpected = " + expected + "\n\tactual = " + actual);<NEW_LINE>try {<NEW_LINE>JsonReader jsonReader = Json.createReader(new StringReader(expected));<NEW_LINE>JsonObject exp = jsonReader.readObject();<N... | createReader(new StringReader(actual)); |
433,806 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetQueryTypePatternNoWindow());<NEW_LINE>execs.add(new ResultSetQueryTypePatternWithWindow());<NEW_LINE>execs.add(new ResultSetQueryTypeOrderByWildcard());<NEW_LIN... | .add(new ResultSetQueryTypeRowPerGroupHaving()); |
1,777,582 | public void parseLight(IElementType t, PsiBuilder b) {<NEW_LINE>boolean r;<NEW_LINE>b = adapt_builder_(<MASK><NEW_LINE>Marker m = enter_section_(b, 0, _COLLAPSE_, null);<NEW_LINE>if (t == BIT_STRING) {<NEW_LINE>r = bitString(b, 0);<NEW_LINE>} else if (t == FUNCTION_REFERENCE) {<NEW_LINE>r = functionReference(b, 0);<NEW... | t, b, this, null); |
868,038 | public static Home find() {<NEW_LINE>// Check if ROBOVM_DEV_ROOT has been set. If set it should be<NEW_LINE>// pointing at the root of a complete RoboVM source tree.<NEW_LINE>if (System.getenv("ROBOVM_DEV_ROOT") != null) {<NEW_LINE>File dir = new File(System.getenv("ROBOVM_DEV_ROOT"));<NEW_LINE>return validateDevRootDi... | = new ArrayList<File>(); |
828,623 | public Object call(ExecutionContext context) {<NEW_LINE><MASK><NEW_LINE>Arguments argsObj = (Arguments) context.resolve("arguments").getValue(context);<NEW_LINE>int numArgs = (int) argsObj.get(context, "length");<NEW_LINE>int paramsLen = getFormalParameters().length;<NEW_LINE>Object[] args = new Object[numArgs < params... | Object self = context.getThisBinding(); |
740,852 | public com.amazonaws.services.shield.model.ResourceAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.shield.model.ResourceAlreadyExistsException resourceAlreadyExistsException = new com.amazonaws.services.shield.model.ResourceAlreadyExistsEx... | String currentParentElement = context.getCurrentParentElement(); |
1,746,940 | private String resolveOnClasspathAndSourceFolders(String publicId, String systemId) {<NEW_LINE>ResourceLoader classLoader = loaderCache.getResourceLoader(project, null);<NEW_LINE>Map<String, String> mappings = getSchemaMappings(classLoader);<NEW_LINE>if (mappings != null && systemId != null) {<NEW_LINE>if (mappings.con... | .replace("https://", "http://")); |
1,231,291 | private synchronized void makeVisible(boolean animate, final boolean top, final Item lastTop) {<NEW_LINE>if (animationRunning) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int height = top ? preferredHeight - tapPanelMinimumHeight : preferredHeight;<NEW_LINE>if (!animate) {<NEW_LINE>setTop(top);<NEW_LINE>if (top && lastTop !... | new Dimension(0, height)); |
1,517,623 | public void clusterChanged(ClusterChangedEvent changedEvent) {<NEW_LINE>final RestoreInProgress.Entry prevEntry = restoreInProgress(<MASK><NEW_LINE>final RestoreInProgress.Entry newEntry = restoreInProgress(changedEvent.state(), uuid);<NEW_LINE>if (prevEntry == null) {<NEW_LINE>// When there is a master failure after a... | changedEvent.previousState(), uuid); |
293,247 | public static Map<String, Object> xmlToMap(NodeList nodelist, Map<String, Object> toMapOrNull) {<NEW_LINE>Map<String, Object> map = toMapOrNull == null ? new HashMap<>() : toMapOrNull;<NEW_LINE>for (int i = 0; i < nodelist.getLength(); i++) {<NEW_LINE>Node node = nodelist.item(i);<NEW_LINE>if (node == null) {<NEW_LINE>... | <String, Object> existing = null; |
1,419,484 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("knowledgeId"), con... | ValidatorFactory.getInstance(Validator.INTEGER); |
410,710 | private void createBootNodeInfo(final boolean skipPlugins) throws JsonProcessingException {<NEW_LINE>final <MASK><NEW_LINE>final Iterable<PluginInfo> rawPluginInfo = skipPlugins ? ImmutableList.<PluginInfo>of() : pluginInfoApi.getPluginsInfo();<NEW_LINE>final List<PluginInfo> pluginInfo = rawPluginInfo.iterator().hasNe... | DateTime bootTime = clock.getUTCNow(); |
1,005,643 | private Mono<Response<SyncAgentKeyPropertiesInner>> generateKeyWithResponseAsync(String resourceGroupName, String serverName, String syncAgentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require... | getSubscriptionId(), apiVersion, context); |
727,535 | public static AbstractProcess execute(String[] tokens, AbstractFile currentDirectory, ProcessListener listener, String encoding) throws IOException {<NEW_LINE>AbstractProcess process;<NEW_LINE>// If currentDirectory is null, use the VM's current directory.<NEW_LINE>if (currentDirectory == null) {<NEW_LINE>currentDirect... | .getProperty("user.dir"), true); |
569,504 | public void longClickHashtag() {<NEW_LINE>AlertDialog.Builder builder = getBuilder();<NEW_LINE>builder.setItems(R.array.long_click_hashtag, new DialogInterface.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(DialogInterface dialogInterface, int i) {<NEW_LINE>switch(i) {<NEW_LINE>case // se... | "refresh_me", true).commit(); |
143,720 | public void migrate() throws IOException, SAXException, ParserConfigurationException {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE>Document document = builder.parse(settingsFile.toFile());<NEW_LINE>document<MAS... | .getDocumentElement().normalize(); |
1,686,834 | private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>sourceLabel = new javax.swing.JLabel();<NEW_LINE>sourceCombo = new javax.swing.JComboBox();<NEW_LINE>setLayout(new java.a... | 0, 11, 0, 0); |
1,280,865 | public Request<ListChannelFlowsRequest> marshall(ListChannelFlowsRequest listChannelFlowsRequest) {<NEW_LINE>if (listChannelFlowsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListChannelFlowsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListChannelFlowsRequest> request = new... | request.setHttpMethod(HttpMethodName.GET); |
784,338 | public DescribeDetectorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeDetectorResult describeDetectorResult = new DescribeDetectorResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
973,899 | private static void addMenuUnwatched(String id) {<NEW_LINE><MASK><NEW_LINE>UIManager uim = pi.getUIManager();<NEW_LINE>MenuManager menuManager = uim.getMenuManager();<NEW_LINE>MenuItem menuItem = menuManager.addMenuItem("sidebar." + id, "v3.activity.button.watchall");<NEW_LINE>menuItem.setDisposeWithUIDetach(UIInstance... | PluginInterface pi = PluginInitializer.getDefaultInterface(); |
1,286,901 | public DataSegment move(DataSegment segment, Map<String, Object> targetLoadSpec) throws SegmentLoadingException {<NEW_LINE>try {<NEW_LINE>Map<String, Object> loadSpec = segment.getLoadSpec();<NEW_LINE>String bucket = MapUtils.getString(loadSpec, "bucket");<NEW_LINE>String key = MapUtils.getString(loadSpec, "key");<NEW_... | .getDefaultStorageDir(segment, false)); |
1,365,060 | public synchronized void reportStorageEvents(Collection<StatsStorageEvent> events) {<NEW_LINE>for (StatsStorageEvent sse : events) {<NEW_LINE>if (StatsListener.TYPE_ID.equals(sse.getTypeID())) {<NEW_LINE>if (sse.getEventType() == StatsStorageListener.EventType.PostStaticInfo && StatsListener.TYPE_ID.equals(sse.getTypeI... | ), sse.getTimestamp()); |
1,164,753 | public synchronized long prepareForTransmission() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "prepareForTransmission");<NEW_LINE>checkValid();<NEW_LINE>valid = false;<NEW_LINE>// Get the last buffer and flip it. Then we can simply return the list of buffer... | , Long.valueOf(sendAmount)); |
1,547,984 | final ListEndpointsResult executeListEndpoints(ListEndpointsRequest listEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEndpointsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,847,553 | private String renderSection(String sectionHeading, List<String> cmdNames, CommandLine.Help help) {<NEW_LINE>TextTable textTable = createTextTable(help);<NEW_LINE>for (String name : cmdNames) {<NEW_LINE>CommandSpec sub = help.commandSpec().subcommands().get(name).getCommandSpec();<NEW_LINE>// create comma-separated lis... | i == 0 ? names : ""); |
1,029,536 | private Mono<Response<Void>> upgradeWithResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, 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... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,407,064 | public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("AlgorithmParameters.CAMELLIA", PREFIX + "$AlgParams");<NEW_LINE>provider.addAlgorithm("Alg.Alias.AlgorithmParameters", NTTObjectIdentifiers.id_camellia128_cbc, "CAMELLIA");<NEW_LINE>provider.addAlgorithm("Alg.Alias.AlgorithmParameter... | NTTObjectIdentifiers.id_camellia128_cbc, PREFIX + "$KeyGen128"); |
662,546 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterCard filter = new FilterCreatureCard("creature card with mana value X or less");<NEW_LINE>// Set the mana cost one higher t... | .getX() + 1)); |
442,702 | final UpdateResourceServerResult executeUpdateResourceServer(UpdateResourceServerRequest updateResourceServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | false), new UpdateResourceServerResultJsonUnmarshaller()); |
887,000 | public void read(DependencyInfo dependencyInfo, Path inPath, KeyValueConsumers consumers) {<NEW_LINE>Stopwatch timer = Stopwatch.createStarted();<NEW_LINE>try (ZipFile zipFile = new ZipFile(inPath.toFile())) {<NEW_LINE>ResourceContainer resourceContainer = readResourceContainer(zipFile, includeFileContentsForValidation... | consumers.combiningConsumer, consumers.overwritingConsumer); |
806,904 | public com.amazonaws.services.securityhub.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.securityhub.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.securityhub.model.AccessDeniedException(null);<NEW_LI... | int originalDepth = context.getCurrentDepth(); |
1,843,350 | protected void createSpecificButtons(final Container container) {<NEW_LINE>final AbstractAction replaceAllAction = new AbstractAction(TextUtils.getText("reminder.Replace_All")) {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = 1L;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(final A... | ListSelectionModel rowSM1 = tableView.getSelectionModel(); |
191,249 | public RouteResultsetNode build(boolean isHaveHintPlan2Inner) throws Exception {<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.serviceTrace(session.getShardingService(), "build&execute-complex-sql");<NEW_LINE>try {<NEW_LINE>final long startTime = System.nanoTime();<NEW_LINE>BaseHandlerBuilder builder = g... | session.getShardingService(), traceObject); |
39,568 | public static Map<String, RoleDescriptor> parseRoleDescriptors(Path path, Logger logger, boolean resolvePermission, Settings settings, NamedXContentRegistry xContentRegistry) {<NEW_LINE>if (logger == null) {<NEW_LINE>logger = NoOpLogger.INSTANCE;<NEW_LINE>}<NEW_LINE>Map<String, RoleDescriptor> <MASK><NEW_LINE>logger.tr... | roles = new HashMap<>(); |
1,368,253 | synchronized void removeAndShift(int firstParagraph, int lastParagraph, int shift) {<NEW_LINE>if (lastParagraph < firstParagraph || shift == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int i = firstParagraph; i < lastParagraph - shift - 1; i++) {<NEW_LINE>entries.remove(i);<NEW_LINE>}<NEW_LINE>Map<Integer, CacheEntr... | , tmpEntries.get(i)); |
1,334,265 | // This method should be invoked with duplicates of dst/src Buffers<NEW_LINE>public void rgbFromBuffer(ByteBuffer dst, ByteBuffer src, int w, int stride, int h) {<NEW_LINE>if (is888()) {<NEW_LINE>// Optimised common case<NEW_LINE>int r, g, b;<NEW_LINE>if (bigEndian) {<NEW_LINE>r = src.position() + (24 - redShift) / 8;<... | getColorModel().getGreen(p); |
60,267 | public static ListDeviceDetailResponse unmarshall(ListDeviceDetailResponse listDeviceDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeviceDetailResponse.setRequestId(_ctx.stringValue("ListDeviceDetailResponse.RequestId"));<NEW_LINE>listDeviceDetailResponse.setCode(_ctx.stringValue("ListDeviceDetailResponse.Co... | = new ArrayList<Datas>(); |
426,336 | public static boolean checkFrameHeaderFromPeek(ExtractorInput input, FlacStreamMetadata flacStreamMetadata, int frameStartMarker, SampleNumberHolder sampleNumberHolder) throws IOException, InterruptedException {<NEW_LINE>long originalPeekPosition = input.getPeekPosition();<NEW_LINE>byte[] frameStartBytes = new byte[2];... | - input.getPosition())); |
690,585 | private void parseFromBtcLockSender(BtcLockSender btcLockSender) {<NEW_LINE>this.protocolVersion = 0;<NEW_LINE>this.rskDestinationAddress = btcLockSender.getRskAddress();<NEW_LINE>this.btcRefundAddress = btcLockSender.getBTCAddress();<NEW_LINE>this.senderBtcAddress = btcLockSender.getBTCAddress();<NEW_LINE>this<MASK><N... | .senderBtcAddressType = btcLockSender.getTxSenderAddressType(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.