idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
739,628 | final ListDomainNamesResult executeListDomainNames(ListDomainNamesRequest listDomainNamesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainNamesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | false), new ListDomainNamesResultJsonUnmarshaller()); |
950,111 | private Item buildUserInput(OperatorNode<ExpressionOperator> ast) {<NEW_LINE>// TODO add support for default arguments if property results in nothing<NEW_LINE>List<OperatorNode<ExpressionOperator>> args = ast.getArgument(1);<NEW_LINE>String wordData = getStringContents(args.get(0));<NEW_LINE>Boolean allowEmpty = getAnn... | ALL.toString(), "grammar for handling user input"); |
292,357 | private void createPolygonTables(FeatureCollection featureCollection) {<NEW_LINE>// defines the schema for the geometry's attribute<NEW_LINE>List<Field> polygonFields = new ArrayList<>();<NEW_LINE>polygonFields.add(Field.createString<MASK><NEW_LINE>// a feature collection table that creates polygon geometry<NEW_LINE>Fe... | ("Area", "Area Name", 50)); |
140,538 | public void paint(Graphics g) {<NEW_LINE>Graphics2D gr = (Graphics2D) g;<NEW_LINE>super.paint(g);<NEW_LINE>Rectangle bounds = scene.getBounds();<NEW_LINE>Dimension size = getSize();<NEW_LINE>double sx = bounds.width > 0 ? (double) size.width / bounds.width : 0.0;<NEW_LINE>double sy = bounds.width > 0 ? (double) size.he... | , 200, 200, 128)); |
797,841 | private void createPromptNode() {<NEW_LINE>if (promptText != null || !linesWrapper.usePromptText.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>promptText = new Text();<NEW_LINE>promptText.setManaged(false);<NEW_LINE>promptText.getStyleClass().add("text");<NEW_LINE>promptText.visibleProperty().bind(linesWrapper.usePromp... | getSkinnable().fontProperty()); |
930,201 | private Library showNoDownloadDialog(String name) throws Exception {<NEW_LINE>DialogDescriptor networkProblem = new // NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE>problemPanel(FormUtils.getBundleString("swingapp.nodownload_header"), FormUtils.getBundleString("swingapp.nodownload_message")), // modal<NEW_LINE>Fo... | ("swingapp.resolve_title"), true, null); |
176,939 | private byte[] buildCommitToParentsVector(List<BlockHeader> mainchainBlocks) {<NEW_LINE>long bestBlockHeight = mainchainBlocks.get(0).getNumber();<NEW_LINE>long cpvStartHeight = (bestBlockHeight / CPV_JUMP_FACTOR) * CPV_JUMP_FACTOR;<NEW_LINE>byte[] commitToParentsVector = new byte[CPV_SIZE];<NEW_LINE>for (int i = 0; i ... | ] bitcoinBlock = blockHeader.getBitcoinMergedMiningHeader(); |
418,076 | public void handleEvent(Event event) {<NEW_LINE>String name = nameTxt.getText();<NEW_LINE>if (StringUtil.isEmpty(name)) {<NEW_LINE>MessageDialog.openWarning(dialog, "Required Name", "Name is required.");<NEW_LINE>nameTxt.setFocus();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (groupList.contains(name)) {<NEW_LINE>MessageDi... | ] items = table.getItems(); |
1,037,319 | // //////////////////////////////////////////////////////////////////////////<NEW_LINE>// Methods //<NEW_LINE>// //////////////////////////////////////////////////////////////////////////<NEW_LINE>Runner newRunner(final GlassFishServer srv, final Command cm... | CommandException(CommandException.RUNNER_INIT, ie); |
1,078,189 | final ModifyUserResult executeModifyUser(ModifyUserRequest modifyUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | invoke(request, responseHandler, executionContext); |
1,108,568 | final GetLaunchProfileInitializationResult executeGetLaunchProfileInitialization(GetLaunchProfileInitializationRequest getLaunchProfileInitializationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLaunchProfileInitializationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | (super.beforeMarshalling(getLaunchProfileInitializationRequest)); |
267,626 | private void visitLabel(NodeTraversal t, Node node) {<NEW_LINE>Node nameNode = node.getFirstChild();<NEW_LINE>checkState(nameNode != null);<NEW_LINE>String name = nameNode.getString();<NEW_LINE>LabelInfo li = getLabelInfo(name);<NEW_LINE>// This is a label...<NEW_LINE>if (li.referenced || !removeUnused) {<NEW_LINE>Stri... | NodeUtil.tryMergeBlock(newChild, false); |
1,444,549 | private void embed(AeiObjects aeiObjects, Embed embed) throws Exception {<NEW_LINE>ActionAssignCreateWi assignData = new ActionAssignCreateWi();<NEW_LINE>String targetApplication = embed.getTargetApplication();<NEW_LINE><MASK><NEW_LINE>if (StringUtils.isEmpty(targetApplication)) {<NEW_LINE>throw new ExceptionEmptyTarge... | String targetProcess = embed.getTargetProcess(); |
1,411,058 | private static String readCode(String location) {<NEW_LINE>String javaFile = location;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>javaFile = javaFile.split("\\$")[0];<NEW_LINE>javaFile = javaFile.split("#")[0];<NEW_LINE>javaFile = javaFile.replaceAll("\\.", "/");<NEW_LINE>javaFile = "src/test/java/"... | BufferedReader(new FileReader(javaFile)); |
511,097 | protected void check() {<NEW_LINE>if (display.isDisposed())<NEW_LINE>return;<NEW_LINE>shell = ShellFactory.createMainShell(SWT.DIALOG_TRIM);<NEW_LINE>Utils.setShellIcon(shell);<NEW_LINE>shell.setText(MessageText.getString("dialog.associations.title"));<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numC... | Label(shell, SWT.NULL); |
1,084,572 | protected Dependency createDependency(Dependency dependency, String name, String version, String scope) {<NEW_LINE>final Dependency nodeModule = new Dependency(new File(dependency.getActualFile() <MASK><NEW_LINE>nodeModule.setEcosystem(NPM_DEPENDENCY_ECOSYSTEM);<NEW_LINE>// this is virtual - the sha1 is purely for the ... | + "?" + name), true); |
109,355 | protected void showControl() {<NEW_LINE>Animation upAction = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 1.0f, Animation.RELATIVE_TO_SELF, 0.0f);<NEW_LINE>upAction.setDuration(300);<NEW_LINE>Animation downAction = new TranslateAnimation(Animatio... | mInfoLayout.setVisibility(View.VISIBLE); |
342,015 | public ResponseEntity<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUES... | LinkedMultiValueMap<String, String>(); |
1,521,287 | public long readRawLittleEndian64() {<NEW_LINE>final <MASK><NEW_LINE>int offset = this.offset;<NEW_LINE>final byte b1 = buffer[offset++];<NEW_LINE>final byte b2 = buffer[offset++];<NEW_LINE>final byte b3 = buffer[offset++];<NEW_LINE>final byte b4 = buffer[offset++];<NEW_LINE>final byte b5 = buffer[offset++];<NEW_LINE>f... | byte[] buffer = this.buffer; |
1,052,242 | private void calcPositionAndShow(Project project, JBPopup balloon) {<NEW_LINE>Point savedLocation = WindowStateService.getInstance<MASK><NEW_LINE>// for first show and short mode popup should be shifted to the top screen half<NEW_LINE>if (savedLocation == null && mySearchEverywhereUI.getViewType() == SearchEverywhereUI... | (myProject).getLocation(LOCATION_SETTINGS_KEY); |
1,003,184 | final GetSessionTokenResult executeGetSessionToken(GetSessionTokenRequest getSessionTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,078,011 | public Save promptToSave(MPart dirtyPart) {<NEW_LINE>Object clientInput = dirtyPart.getTransientData().get(ModelConstants.EDITOR_INPUT);<NEW_LINE>if (clientInput == null)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>EModelService modelService = dirtyPart.getContext(<MASK><NEW_LINE>MApplication app = dirtyPar... | ).get(EModelService.class); |
768,174 | // Add a new version to the existing secret.<NEW_LINE>public static void addSecretVersion(String projectId, String secretId) throws IOException {<NEW_LINE>// Initialize client that will be used to send requests. This client only needs to be created<NEW_LINE>// once, and can be reused for multiple requests. After comple... | ] data = "my super secret data".getBytes(); |
1,783,085 | private Map<StreamId, List<RowGroupIndex>> readColumnIndexes(Map<StreamId, Stream> streams, Map<StreamId, OrcInputStream> streamsData, StripeId stripeId) throws IOException {<NEW_LINE>// read the bloom filter for each column<NEW_LINE>Map<Integer, List<HiveBloomFilter>> bloomFilterIndexes = readBloomFilterIndexes(stream... | StreamId streamId = entry.getKey(); |
739,069 | public Object execute(final Map<Object, Object> iArgs) {<NEW_LINE>final ODatabaseDocument database = getDatabase();<NEW_LINE>if (attribute == null)<NEW_LINE>throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet");<NEW_LINE>final OClassImpl cls = (OClassImpl) database.getMet... | cls.set(attribute, value); |
657,232 | // GEN-LAST:event_removePlatform<NEW_LINE>@Messages("CTL_AddNetbeansPlatformTitle=Add NetBeans Platform")<NEW_LINE>private void addPlatform(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_addPlatform<NEW_LINE>PlatformChooserWizardPanel chooser = new PlatformChooserWizardPanel(null);<NEW_LINE>PlatformInfoW... | String) wd.getProperty(PLAF_DIR_PROPERTY); |
527,576 | public static void main(String[] args) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>char[][] board = { { '5', '3', '.', '.', '7', '.', '.', '.', '.' }, { '6', '.', '.', '1', '9', '5', '.', '.', '.' }, { '.', '9', '8', '.', '.', '.', '.', '6', '.' }, { '8', '.', '.', '.', '6', '.', '.', '.', '3' }, { '4', '.',... | (Arrays.toString(b)); |
770,290 | // GEN-LAST:event_configComboActionPerformed<NEW_LINE>private void newButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_newButtonActionPerformed<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>FileObject tempFO = FileUtil.getConfigFile(DECLARATIVE_HINT_TEMPLATE_LOCATION);<NEW_LINE>FileObjec... | getConfigRoot().createFolder("rules"); |
457,502 | public static HTMLDocument createHtmlDocumentObject(Map<String, Object> style, double scale) {<NEW_LINE>// Applies the font settings<NEW_LINE>HTMLDocument document = new HTMLDocument();<NEW_LINE>StringBuffer rule = new StringBuffer("body {");<NEW_LINE>rule.append(" font-family: " + getString(style, mxConstants.STYLE_FO... | addRule(rule.toString()); |
1,496,825 | public Result doResetPassword() {<NEW_LINE>com.feth.play.module.pa.controllers.Authenticate.noCache(response());<NEW_LINE>final Form<PasswordReset> filledForm = PASSWORD_RESET_FORM.bindFromRequest();<NEW_LINE>if (filledForm.hasErrors()) {<NEW_LINE>return badRequest(password_reset.render(this.userProvider, filledForm));... | .render(this.userProvider)); |
75,732 | private final boolean doNextCheckInvariants(final TLCState curState, final TLCState succState) throws IOException, WorkerException, Exception {<NEW_LINE>int k = 0;<NEW_LINE>try {<NEW_LINE>for (k = 0; k < this.tool.getInvariants().length; k++) {<NEW_LINE>if (!tool.isValid(this.tool.getInvariants()[k], succState)) {<NEW_... | .getInvNames()[k]); |
1,168,372 | public boolean apply(Game game, Ability source) {<NEW_LINE>Watcher watcher = game.getState(<MASK><NEW_LINE>if (watcher instanceof AttackedThisTurnWatcher) {<NEW_LINE>Set<MageObjectReference> attackedThisTurn = ((AttackedThisTurnWatcher) watcher).getAttackedThisTurnCreatures();<NEW_LINE>List<Permanent> available = new A... | ).getWatcher(AttackedThisTurnWatcher.class); |
1,630,203 | private CtBehavior compileMethod(Parser p, MethodDecl md) throws CompileError {<NEW_LINE>int mod = MemberResolver.getModifiers(md.getModifiers());<NEW_LINE>CtClass[] plist = gen.makeParamList(md);<NEW_LINE>CtClass[] tlist = gen.makeThrowsList(md);<NEW_LINE>recordParams(plist, Modifier.isStatic(mod));<NEW_LINE>md = p.pa... | CompileError(e.toString()); |
1,427,712 | protected String doIt() throws Exception {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>log.info("Applying migrations scripts");<NEW_LINE>String sql = "select ad_migrationscript_id, script, name from ad_migrationscript where isApply = 'Y' and status = 'IP' order by name, created";<NEW_LINE>PreparedStatement pst... | pstmt.setString(1, "CO"); |
512,835 | public static void convert(GrayU16 input, GrayF64 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = input.getIndex(0, y);<NEW_LINE>int indexDst = outpu... | .data[i] & 0xFFFF); |
187,158 | private void downloadSaneBody(SyncConfig syncConfig, WebDavFolder remoteFolder, BackendFolder backendFolder, WebDavMessage message) throws MessagingException {<NEW_LINE>FetchProfile fp = new FetchProfile();<NEW_LINE>fp.add(FetchProfile.Item.BODY_SANE);<NEW_LINE>int maxDownloadSize = syncConfig.getMaximumAutoDownloadMes... | saveMessage(message, MessageDownloadState.PARTIAL); |
745,089 | private void loadNode1142() {<NEW_LINE>SessionDiagnosticsArrayTypeNode node = new SessionDiagnosticsArrayTypeNode(this.context, Identifiers.Server_ServerDiagnostics_SessionsDiagnosticsSummary_SessionDiagnosticsArray, new QualifiedName(0, "SessionDiagnosticsArray"), new LocalizedText("en", "SessionDiagnosticsArray"), Lo... | .expanded(), false)); |
628,507 | public static List<List<SpanData>> waitForTraces(Supplier<List<SpanData>> supplier, int number, long timeout, TimeUnit unit) throws InterruptedException, TimeoutException {<NEW_LINE>long startTime = System.nanoTime();<NEW_LINE>List<List<SpanData>> allTraces = <MASK><NEW_LINE>List<List<SpanData>> completeTraces = allTra... | groupTraces(supplier.get()); |
501,067 | public static DescribeSystemEventAttributeResponse unmarshall(DescribeSystemEventAttributeResponse describeSystemEventAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSystemEventAttributeResponse.setRequestId(_ctx.stringValue("DescribeSystemEventAttributeResponse.RequestId"));<NEW_LINE>describeSystemEven... | ("DescribeSystemEventAttributeResponse.SystemEvents[" + i + "].InstanceName")); |
764,785 | void writeBlob(String blobName, BytesReference bytes, boolean failIfAlreadyExists) throws IOException {<NEW_LINE>if (bytes.length() > getLargeBlobThresholdInBytes()) {<NEW_LINE>// Compute md5 here so #writeBlobResumable forces the integrity check on the resumable upload.<NEW_LINE>// This is needed since we rely on atom... | , MessageDigests.md5())); |
1,211,226 | private static SnapshotShardFailure constructSnapshotShardFailure(Object[] args) {<NEW_LINE>String index = (String) args[0];<NEW_LINE>String indexUuid = (String) args[1];<NEW_LINE>final String nodeId = (String) args[2];<NEW_LINE>String reason = (String) args[3];<NEW_LINE>Integer intShardId = (Integer) args[4];<NEW_LINE... | indexUuid : IndexMetadata.INDEX_UUID_NA_VALUE, intShardId); |
1,410,311 | public boolean run() {<NEW_LINE>// get current progress<NEW_LINE>Tuple res = SQL.New("SELECT content, timeToDelete FROM TaskProgressVO" + " WHERE apiId = :apiId" + " AND type = :type" + " ORDER BY CAST(content AS int) DESC", Tuple.class).param("apiId", apiId).param("type", TaskType.Progress).limit(1).find();<NEW_LINE>i... | ThreadContext.put(THREAD_CONTEXT_TASK_NAME, taskName); |
1,081,063 | public void gaussianDerivToDirectDeriv() {<NEW_LINE>T blur = GeneralizedImageOps.createSingleBand(imageType, width, height);<NEW_LINE>T blurDeriv = GeneralizedImageOps.createSingleBand(imageType, width, height);<NEW_LINE>T gaussDeriv = GeneralizedImageOps.createSingleBand(imageType, width, height);<NEW_LINE>BlurStorage... | sigma, radius, imageType, imageType); |
1,855,285 | public DescribeActionTargetsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeActionTargetsResult describeActionTargetsResult = new DescribeActionTargetsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
331,563 | public void marshall(UpdatePipelineRequest updatePipelineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updatePipelineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updatePipelineRequest... | e.getMessage(), e); |
1,577,250 | private List<String> tokenize(NavigableMap<String, Integer> vocab, String toTokenize) {<NEW_LINE>final List<String> <MASK><NEW_LINE>String fullString = toTokenize;<NEW_LINE>if (preTokenizePreProcessor != null) {<NEW_LINE>fullString = preTokenizePreProcessor.preProcess(toTokenize);<NEW_LINE>}<NEW_LINE>for (String basicT... | output = new ArrayList<>(); |
74,321 | public static void main(final String[] args) throws IOException {<NEW_LINE>String executionPath = ReactAndroidCodeTransformer.class.getProtectionDomain().getCodeSource().getLocation().getPath();<NEW_LINE>String projectRoot = new File(executionPath + "../../../../../../").getCanonicalPath() + '/';<NEW_LINE>String sdkVer... | , FILES_TO_MODIFY.get(fileName)); |
575,872 | private static void dumpMap(Map<?, ?> c, StringBuilder sb, int indent) {<NEW_LINE>if (indent > 0) {<NEW_LINE>for (int in = 0; in < indent - 1; in++) {<NEW_LINE>sb.append('\t');<NEW_LINE>}<NEW_LINE>sb.append("{\n");<NEW_LINE>}<NEW_LINE>for (Map.Entry<?, ?> me : c.entrySet()) {<NEW_LINE>Object o = me.getValue();<NEW_LINE... | o, sb, indent + 1); |
1,714,405 | private static String findAndConfigureLogging() throws IOException {<NEW_LINE>String source = "defaults";<NEW_LINE>// Let's try to find a logging.properties<NEW_LINE>// first as a file in the current working directory<NEW_LINE>InputStream logConfigStream;<NEW_LINE>Path path = Paths.get("").resolve(LOGGING_FILE);<NEW_LI... | getLogManager().readConfiguration(logConfigStream); |
1,138,845 | // SSS FIXME: Needs an update to reflect instr. change<NEW_LINE>@Override<NEW_LINE>public void DefineInstanceMethodInstr(DefineInstanceMethodInstr defineinstancemethodinstr) {<NEW_LINE>IRMethod method = defineinstancemethodinstr.getMethod();<NEW_LINE>JVMVisitorMethodContext context = new JVMVisitorMethodContext();<NEW_... | context.getBaseName() + "_StaticScope"); |
1,641,234 | private void buildWalkableAreas(boolean skipVisibility, boolean platformEntriesLinking) {<NEW_LINE>if (skipVisibility) {<NEW_LINE>LOG.info("Skipping visibility graph construction for walkable areas and using just area rings for edges.");<NEW_LINE>} else {<NEW_LINE>LOG.info("Building visibility graphs for walkable areas... | -> LOG.info(m)); |
1,170,708 | public boolean selectSecondary(BlockVector3 position, SelectorLimits limits) {<NEW_LINE>if (position1 == null || position2 == null) {<NEW_LINE>return selectPrimary(position, limits);<NEW_LINE>}<NEW_LINE>if (region.contains(position)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>double x1 = Math.min(position.getX(), pos... | at(x1, y1, z1); |
1,459,003 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create context MyContext initiated by SupportBean_S0 as s0 terminated by SupportBean_S1(id=s0.id);\n" + "context MyContext select count(*) from SupportBean;\n";<NEW_LINE>env.compileDeploy(epl... | "A" }, { "B" } }); |
1,265,525 | public ICapabilityProvider initCapabilities(ItemStack stack, CompoundTag nbt) {<NEW_LINE>if (!stack.isEmpty())<NEW_LINE>return new IEItemStackHandler(stack) {<NEW_LINE><NEW_LINE>final LazyOptional<EnergyHelper.ItemEnergyStorage> energyStorage = CapabilityUtils.constantOptional(new EnergyHelper.ItemEnergyStorage(stack))... | MODID, "railgun"), stack)); |
138,233 | public // }<NEW_LINE>void exportXMLData(ExportDataDumper eDD, String indent) {<NEW_LINE>// NOI18N<NEW_LINE>String newline = System.getProperty("line.separator");<NEW_LINE>// NOI18N<NEW_LINE>StringBuffer result = new StringBuffer(indent + "<Node>" + newline);<NEW_LINE>// NOI18N<NEW_LINE>result.append(indent).append(" <N... | exportXMLData(eDD, indent + " "); |
1,557,860 | private List<RecordQueryResult.Record> findRetryRecords(String subject, BackupMessageMeta meta, byte type) {<NEW_LINE>final List<RecordQueryResult.Record> records = Lists.newArrayList();<NEW_LINE>try {<NEW_LINE>final long sequence = meta.getSequence();<NEW_LINE>final String sequenceId = generateDecimalFormatKey19(seque... | -> getRecord(kvs, type)); |
116,541 | public String verifyE2BindingNameOverLookup() {<NEW_LINE>String retVal = "nothing done";<NEW_LINE>// use implicit EJB reference annotated with @EJB to call a method on the bean:<NEW_LINE>retVal = callPong(ivEjb2, 65);<NEW_LINE>if (retVal.equals("PASS")) {<NEW_LINE>// do an explicit JNDI lookup using the @EJB name= valu... | SimpleLookupTarget) ivContext.lookup(NAME_VALUE2); |
1,077,165 | void quickTest(final int lgK, final long cA, final long cB) {<NEW_LINE>final CpcSketch skA = new CpcSketch(lgK);<NEW_LINE>final CpcSketch skB = new CpcSketch(lgK);<NEW_LINE>// direct sketch<NEW_LINE>final CpcSketch skD = new CpcSketch(lgK);<NEW_LINE>final long t0, t1, t2, t3, t4, t5;<NEW_LINE>t0 = System.nanoTime();<NE... | Integer.toString(skA.windowOffset); |
720,236 | public BufferedImage filter(BufferedImage src, BufferedImage dst) {<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final <MASK><NEW_LINE>final BufferedImage image;<NEW_LINE>if (dst == null) {<NEW_LINE>image = createCompatibleDestImage(src, null);<NEW_LINE>} else {<NEW_LINE>image = dst;<NEW_LINE>}<NEW_LINE>final in... | int height = src.getHeight(); |
46,075 | private void writeBom(Collection<BomDependency> bomDependencies) {<NEW_LINE>Model model = readModel();<NEW_LINE>DependencyManagement management = model.getDependencyManagement();<NEW_LINE>List<Dependency> externalBomDependencies = management.getDependencies().stream().filter(dependency -> dependency.getType().equals(PO... | collect(Collectors.toList()); |
903,171 | // Required for JDev implementation<NEW_LINE>public void updateLocation(CodeProfilingPoint cpp, int oldLine, int newLine) {<NEW_LINE>if (cpp instanceof CodeProfilingPoint.Single) {<NEW_LINE>CodeProfilingPoint.Single cpps = (CodeProfilingPoint.Single) cpp;<NEW_LINE>CodeProfilingPoint.<MASK><NEW_LINE>if (loc.getLine() ==... | Location loc = cpps.getLocation(); |
289,433 | private void initialize(Context context) {<NEW_LINE>headers: if (this.headers == null) {<NEW_LINE>String[] allHeaders = context.headers();<NEW_LINE>if (allHeaders == null) {<NEW_LINE>headers = ArgumentUtils.EMPTY_STRING_ARRAY;<NEW_LINE>break headers;<NEW_LINE>}<NEW_LINE>if (!context.columnsReordered()) {<NEW_LINE>this.... | = new String[selectedIndexes.length]; |
1,684,909 | public String createDocument(final String repositoryId, final Properties properties, final String folderId, final ContentStream contentStream, final VersioningState versioningState, final List<String> policies, final Acl addAces, final Acl removeAces, final ExtensionsData extension) {<NEW_LINE>final App app = StructrAp... | get(Folder.class, folderId); |
830,938 | final ListDomainsForPackageResult executeListDomainsForPackage(ListDomainsForPackageRequest listDomainsForPackageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainsForPackageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDomainsForPackage"); |
1,544,200 | public static <T> void bind(T activity) {<NEW_LINE>if (Remixer.getRegisteredDataTypes().isEmpty()) {<NEW_LINE>throw new IllegalStateException("There are no registered data types for remixer. This indicates that you have not " + " initialized Remixer at all and it will fail in runtime. Please run " + "RemixerInitializat... | ).toString(), ex); |
815,098 | public void testPTPTemporaryQueue_TCP(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE><MASK><NEW_LINE>TemporaryQueue tempQ = jmsContextQCFTCP.createTemporaryQueue();<NEW_LINE>JMSProducer jmsProducerQCFTCP = jmsContextQCFTCP.createProducer();<NEW... | JMSContext jmsContextQCFTCP = qcfTCP.createContext(); |
1,318,769 | public com.amazonaws.services.amplifybackend.model.NotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.amplifybackend.model.NotFoundException notFoundException = new com.amazonaws.services.amplifybackend.model.NotFoundException(null);<NEW_LINE>int ... | String currentParentElement = context.getCurrentParentElement(); |
1,129,368 | public void marshall(Certificate certificate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (certificate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(certificate.getCertificateId(), CERTIFICATEID_BINDI... | e.getMessage(), e); |
1,826,290 | protected String compileUnits(JRCompilationUnit[] units, String classpath, File tempDirFile) throws JRException {<NEW_LINE>Context context = ContextFactory.getGlobal().enterContext();<NEW_LINE>try {<NEW_LINE>JRPropertiesUtil properties = JRPropertiesUtil.getInstance(jasperReportsContext);<NEW_LINE>int expressionsPerScr... | addExpression(oldVisitor.getScript()); |
154,598 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>final String utmString = (String) sources[0];<NEW_LINE>if (utmString != null) {<NEW_LINE>final String[] parts = ut... | final String zone = parts[0]; |
1,333,999 | public <Req, Resp> BlockingStreamingClientCall<Req, Resp> newBlockingStreamingCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>GrpcStreamingSerializer<<MASK><NEW_LINE>GrpcStreamingDeserializer<Resp> deserializerIdentity = streamingDeserializer(methodDescriptor)... | Req> serializerIdentity = streamingSerializer(methodDescriptor); |
225,488 | final DeleteDBProxyResult executeDeleteDBProxy(DeleteDBProxyRequest deleteDBProxyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDBProxyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,041,829 | private void insertCatchBlocks(NodeScope ns, IO io, Enumeration thrown_names, String indent) {<NEW_LINE>String thrown;<NEW_LINE>if (thrown_names.hasMoreElements()) {<NEW_LINE>io.println(indent + "} catch (Throwable " + ns.exceptionVar + ") {");<NEW_LINE>if (ns.usesCloseNodeVar()) {<NEW_LINE>io.println(indent + " if ("... | " throw (Error)" + ns.exceptionVar + ";"); |
1,103,967 | public static DescribeSharesBucketInfoForExpressSyncResponse unmarshall(DescribeSharesBucketInfoForExpressSyncResponse describeSharesBucketInfoForExpressSyncResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSharesBucketInfoForExpressSyncResponse.setRequestId(_ctx.stringValue("DescribeSharesBucketInfoForExpressSync... | = new ArrayList<BucketInfo>(); |
1,658,900 | public FieldMetadata addField(String fieldName, Boolean listType, String imageName, String syntaxKind, Boolean syntaxWithDirective) {<NEW_LINE>if (fieldName == null) {<NEW_LINE>throw new IllegalArgumentException("Argument 'fieldName' can not be null");<NEW_LINE>}<NEW_LINE>// Test if it exists fields with the given name... | syntaxWithDirective == null ? false : syntaxWithDirective); |
1,195,244 | public void pretrainLayer(int layerIdx, DataSetIterator iter, int numEpochs) {<NEW_LINE>Preconditions.checkState(numEpochs > 0, "Number of epochs (%s) must be a positive number", numEpochs);<NEW_LINE>if (flattenedGradients == null) {<NEW_LINE>initGradientsView();<NEW_LINE>}<NEW_LINE>if (layerIdx >= layers.length) {<NEW... | layerIdx + " for " + numEpochs + " epochs"); |
500,043 | public boolean createEdgeFirewall(String tenantName, String publicIp, String insideIp, String publicSubnet, String insideSubnet) throws ExecutionException {<NEW_LINE>String xml = VnmcXml.CREATE_EDGE_FIREWALL.getXml();<NEW_LINE>String service = VnmcXml.CREATE_EDGE_FIREWALL.getService();<NEW_LINE>xml = replaceXmlValue(xm... | replaceXmlValue(xml, "outsidesubnet", publicSubnet); |
1,678,643 | private String generateClientPhaseTimeCostSpan(RpcInvokeContext context) {<NEW_LINE>TreeMap<String, String> resultMap = new TreeMap<>();<NEW_LINE>Long routerTime = (Long) context.get(RpcConstants.INTERNAL_KEY_CLIENT_ROUTER_TIME_NANO);<NEW_LINE>Long connTime = (Long) context.get(RpcConstants.INTERNAL_KEY_CONN_CREATE_TIM... | context.get(RpcConstants.INTERNAL_KEY_CLIENT_FILTER_TIME_NANO); |
514,062 | public void onSelectElementInteract(String optionString) {<NEW_LINE>if (optionString == null || optionString.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d(TAG, "onSelectElementInteract() - " + optionString);<NEW_LINE>final ArrayList<String> optionList = new ArrayList<String>();<NEW_LINE>int selectedIndex ... | d(TAG, "click position is - " + position); |
1,636,362 | private ParsedFrame autoFragment(ByteBuffer buffer, int fragmentSize) {<NEW_LINE>payloadLength -= fragmentSize;<NEW_LINE>byte[] nextMask = null;<NEW_LINE>if (mask != null) {<NEW_LINE>int shift = fragmentSize % 4;<NEW_LINE>nextMask = new byte[4];<NEW_LINE>nextMask[0] = mask[(0 + shift) % 4];<NEW_LINE>nextMask[1] = mask[... | (3 + shift) % 4]; |
268,156 | void load(RProjectOptions options) {<NEW_LINE><MASK><NEW_LINE>pathSelector_.setText(config.getWebsitePath());<NEW_LINE>RProjectBuildOptions buildOptions = options.getBuildOptions();<NEW_LINE>chkPreviewAfterBuilding_.setValue(buildOptions.getPreviewWebsite());<NEW_LINE>chkLivePreviewSite_.setValue(buildOptions.getLivePr... | RProjectConfig config = options.getConfig(); |
956,358 | public void updateViewMenu(MenuManager manager) {<NEW_LINE>manager.removeAll();<NEW_LINE>Action darkMode = MainWindow.MenuItems.ViewDarkMode.createCheckbox((dark) -> {<NEW_LINE>models.settings.writeUi().getPerfettoBuilder().setDarkMode(dark);<NEW_LINE>StyleConstants.setDark(dark);<NEW_LINE>Rectangle size = getClientAre... | widgets.theme.windowLogo()); |
879,011 | public Map<String, Object> createDefaultFindProperties() {<NEW_LINE>HashMap<String, Object> props = new HashMap<>();<NEW_LINE>props.put(FIND_WHAT, null);<NEW_LINE>props.put(FIND_REPLACE_WITH, null);<NEW_LINE>props.put(FIND_HIGHLIGHT_SEARCH, Boolean.TRUE);<NEW_LINE>props.put(FIND_INC_SEARCH, Boolean.TRUE);<NEW_LINE>prop... | , Integer.valueOf(30)); |
49,325 | private void generate_polygon_cuts_() {<NEW_LINE>AttributeStreamOfInt32 cutHandles = new AttributeStreamOfInt32(0);<NEW_LINE>EditShape shape = new EditShape();<NEW_LINE>int sideIndex = shape.createGeometryUserIndex();<NEW_LINE>int cutteeHandle = shape.addGeometry(m_cuttee);<NEW_LINE>int <MASK><NEW_LINE>TopologicalOpera... | cutterHandle = shape.addGeometry(m_cutter); |
64,013 | private void updateNotification(String content) {<NEW_LINE>String ticker = String.format(getString(R.string.media_notif_ticker), getString(R.string.app_name));<NEW_LINE>// TODO check if updating the Intent is really necessary<NEW_LINE>Intent showDetailsIntent = new Intent(this, FileDisplayActivity.class);<NEW_LINE>show... | media_notif_ticker, mNotificationBuilder.build()); |
759,122 | public String toXmlPartial(Object domainObject) {<NEW_LINE>bombIf(!isAnnotationPresent(domainObject.getClass(), ConfigTag.class), "Object " + domainObject + " does not have a ConfigTag");<NEW_LINE>Element element = elementFor(domainObject.getClass(), configCache);<NEW_LINE>write(domainObject, element, configCache, regi... | , registry).populate(element); |
252,448 | public DeleteSessionResult deleteSession(DeleteSessionRequest deleteSessionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
497,378 | public OMixedIndexRIDContainer deserializeNativeObject(byte[] stream, int startPosition) {<NEW_LINE>startPosition += OIntegerSerializer.INT_SIZE;<NEW_LINE>final long fileId = OLongSerializer.INSTANCE.deserializeNative(stream, startPosition);<NEW_LINE>startPosition += OLongSerializer.LONG_SIZE;<NEW_LINE>final int embedd... | OAbstractPaginatedStorage) db.getStorage()); |
1,489,081 | public void observe(Node n, MetaConfig config) {<NEW_LINE>OrderedLabels labels = new OrderedLabels(n.getLabels());<NEW_LINE>PropertyContainerProfile localNodeProfile = getNodeProfile(labels);<NEW_LINE>// Only descend and look at properties if it's in our match list.<NEW_LINE>if (config.matches(n.getLabels())) {<NEW_LIN... | labelJoin(relEndNode) + "###" + typeName; |
730,315 | private Condition createPredicateSource(@Nullable DbColumn theSourceJoinColumn, List<? extends IQueryParameterType> theList) {<NEW_LINE>if (myDaoConfig.getStoreMetaSourceInformation() == DaoConfig.StoreMetaSourceInformationEnum.NONE) {<NEW_LINE>String msg = myFhirContext.getLocalizer().getMessage(LegacySearchBuilder.cl... | join.createPredicateRequestId(requestId))); |
31,852 | final StartPiiEntitiesDetectionJobResult executeStartPiiEntitiesDetectionJob(StartPiiEntitiesDetectionJobRequest startPiiEntitiesDetectionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startPiiEntitiesDetectionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | (super.beforeMarshalling(startPiiEntitiesDetectionJobRequest)); |
878,968 | protected void initChannel(NioSocketChannel channel) {<NEW_LINE>if (_ssl) {<NEW_LINE>channel.pipeline().addLast(SessionResumptionSslHandler.PIPELINE_SESSION_RESUMPTION_HANDLER, new SessionResumptionSslHandler(_sslContext, _sslParameters, _enableSSLSessionResumption, _sslHandShakeTimeout));<NEW_LINE>}<NEW_LINE>channel.p... | (_maxInitialLineLength, _maxHeaderSize, _maxChunkSize)); |
1,704,892 | public void onApplicationEvent(@NotNull ApplicationReadyEvent applicationReadyEvent) {<NEW_LINE>UpstreamCluster brokerCluster = upstreamManager.findBroker();<NEW_LINE>if (brokerCluster == null)<NEW_LINE>return;<NEW_LINE>// rsocket broker cluster logic<NEW_LINE>CloudEventImpl<AppStatusEvent> appStatusEventCloudEvent = R... | portsUpdateEvent.setManagementPort(RSocketAppContext.managementPort); |
780,736 | static private void registerEndpointInfo(LinkedHashMap<String, EndpointInfo> endpointInfoMap, String servletName, String servletClassName, String servletMappingUrl, String appClassName, String appPath, Set<String> providerAndPathClassNames, String ejbModuleName) throws Exception {<NEW_LINE>String key = servletMappingUr... | endpointInfoMap.put(key, endpointInfo); |
1,154,856 | public static SubscriptionInfo fromSubscription(Subscription subscription) {<NEW_LINE>SubscriptionInfo subscriptionInfo = new SubscriptionInfo();<NEW_LINE>subscriptionInfo.setInterfaceType(subscription.getInterfaceType());<NEW_LINE>subscriptionInfo.setNotifiedEventCount(subscription.<MASK><NEW_LINE>subscriptionInfo.set... | getNotifiedEventCount().toString()); |
413,080 | protected void createPartitionSublists() {<NEW_LINE>final Pair<Collection<Path>, Boolean> fileLocationsAndStatus = getFileLocationsAndStatus();<NEW_LINE>List<PartitionLocation> locations = new LinkedList<>();<NEW_LINE>boolean hasDirsOnly = fileLocationsAndStatus.getRight();<NEW_LINE>final Path selectionRoot = getBaseTa... | MAX_NESTED_SUBDIRS, selectionRoot, file, hasDirsOnly); |
897,898 | private void showDialogInternal(String title, String message, String button1Text, String button2Text, final Callback successCallback, Activity currentActivity) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(currentActivity);<NEW_LINE>builder.setCancelable(false);<NEW_LINE>DialogInterface.OnClickListen... | builder.setNegativeButton(button2Text, clickListener); |
521,071 | public void buildCtrLexMatrix(String id, XVariables.XVarInteger[][] matrix, Types.TypeOperatorRel operator) {<NEW_LINE>switch(operator) {<NEW_LINE>case LT:<NEW_LINE>{<NEW_LINE>model.lexChainLess(vars(matrix)).post();<NEW_LINE>XVariables.XVarInteger[][] tmatrix = ArrayUtils.transpose(matrix);<NEW_LINE>model.lexChainLess... | ] rmatrix = matrix.clone(); |
1,744,365 | public void updateICIOLAssociationFromIOL(@NonNull final I_C_InvoiceCandidate_InOutLine iciol, @NonNull final org.compiere.model.I_M_InOutLine inOutLine) {<NEW_LINE>iciol.<MASK><NEW_LINE>iciol.setM_InOutLine(inOutLine);<NEW_LINE>// iciol.setQtyInvoiced(QtyInvoiced); // will be set during invoicing to keep track of whic... | setAD_Org_ID(inOutLine.getAD_Org_ID()); |
1,212,726 | final AssociateDomainResult executeAssociateDomain(AssociateDomainRequest associateDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.