idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
930,165 | public final ArgumentContext argument() throws RecognitionException {<NEW_LINE>ArgumentContext _localctx = new ArgumentContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(483);<NEW_LINE>match(T__543);<NEW_LINE>setState(506);<NEW_LINE>_errHandler.s... | enterRule(_localctx, 64, RULE_argument); |
669,635 | private void placeCell(ArrayList<Row> someRows, Cell aCell, Point aPosition) {<NEW_LINE>int i;<NEW_LINE>Row row;<NEW_LINE>int rowCount = aPosition.x + aCell.getRowspan() - someRows.size();<NEW_LINE>assumeTableDefaults(aCell);<NEW_LINE>if ((aPosition.x + aCell.getRowspan()) > someRows.size()) {<NEW_LINE>for (i = 0; i < ... | someRows.get(aPosition.x); |
1,511,135 | private int initializeBuilder(int kind, boolean forBuild) throws CoreException {<NEW_LINE>// some calls just need the nameEnvironment initialized so skip the rest<NEW_LINE>this.javaProject = (JavaProject) JavaCore.create(this.currentProject);<NEW_LINE>this.workspaceRoot = this.currentProject.getWorkspace().getRoot();<N... | [] f = filters[i]; |
158,274 | public boolean put(@NonNull final InOutLineId shipmentLineId, @NonNull final Integer lineNo) {<NEW_LINE>if (lineNo <= 0) {<NEW_LINE>logger.debug("Ignoring lineNo={} is associated with shipmentLineId={}; -> ignore, i.e. no collission; return true", lineNo, shipmentLineId);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE><MASK... | shipmentLineIdToLineNo.put(shipmentLineId, lineNo); |
870,731 | public Component build() {<NEW_LINE>BundleBoxBuilder builder = BundleBox.builder(myUIDisposable);<NEW_LINE>builder.withNoneItem(myNullItemName);<NEW_LINE>if (myNullItemIcon != null) {<NEW_LINE>builder.withNoneItemImage(myNullItemIcon);<NEW_LINE>}<NEW_LINE>builder.withSdkTypeFilter(mySdkFilter);<NEW_LINE>final BundleBox... | setSelectedBundle(inheritableSdk.getName()); |
1,138,525 | // GEN-LAST:event_defaultLogoRBActionPerformed<NEW_LINE>private void browseLogosButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseLogosButtonActionPerformed<NEW_LINE>if (logoFileChooser == null) {<NEW_LINE>logoFileChooser = logoChooserHelper.getChooser();<NEW_LINE><MASK><NEW_LINE... | logoFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); |
1,091,850 | private List<List<Object>> genInfo() {<NEW_LINE>ArrayList<List<Object>> list = new ArrayList<>();<NEW_LINE>list.add(Arrays.asList(new Object[] { "Instances", String.valueOf(node4CalcPos.node.getCounter().getNumInst()), "" }));<NEW_LINE>list.add(Arrays.asList(new Object[] { "Weights", print(node4CalcPos.node.getCounter(... | )[0]) })); |
675,344 | public ListLayerVersionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListLayerVersionsResult listLayerVersionsResult = new ListLayerVersionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
1,321,495 | public static void main(String[] args) {<NEW_LINE>Student kunal = new Student(12, 89.76f);<NEW_LINE>Student rahul = new Student(5, 99.52f);<NEW_LINE>Student arpit = new Student(2, 95.52f);<NEW_LINE>Student karan = new Student(13, 77.52f);<NEW_LINE>Student sachin = new Student(9, 96.52f);<NEW_LINE>Student[] list = { kun... | rahul, arpit, karan, sachin }; |
205,880 | public byte[] toBytes() {<NEW_LINE>MetricDef metricDef = KafkaMetricDef.commonMetricDef();<NEW_LINE>byte[] topicStringBytes = entity().group().getBytes(UTF_8);<NEW_LINE>// Allocate memory:<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(89 + topicStringBytes.length);<NEW_LINE>buffer.put(LATEST_SUPPORTED_VERSION);<NEW_... | )).id())); |
1,286,037 | public static void main(String[] args) throws IOException {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>int n = Integer.parseInt(br.readLine());<NEW_LINE>int j = 0, y = 0;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>String[] str = br.readLine().split(" ");<NEW_LINE><M... | boolean jj = false, yy = false; |
1,843,831 | private static OOText formatCitedOnPages(CitationGroups citationGroups, CitedKey citedKey) {<NEW_LINE>if (!citationGroups.citationGroupsProvideReferenceMarkNameForLinking()) {<NEW_LINE>return OOText.fromString("");<NEW_LINE>}<NEW_LINE>StringBuilder stringBuilder = new StringBuilder();<NEW_LINE>final String prefix = Str... | add(group.get()); |
986,384 | private JSONArray addTorrentByFile(String file, Log log) throws JSONException, IOException, DaemonException {<NEW_LINE>String url = buildWebUIUrl() + PATH_TO_UPLOAD;<NEW_LINE>log.d(LOG_NAME, "Uploading a file to the Deluge daemon: " + url);<NEW_LINE>// Initialise the HTTP client<NEW_LINE>initialise();<NEW_LINE>// Setup... | response = httpclient.execute(httppost); |
918,892 | public InstanceInfo instanceConfig() {<NEW_LINE>String namespace = properties.getNamespace();<NEW_LINE>String itemId = properties.getItemId();<NEW_LINE>String port = <MASK><NEW_LINE>String applicationName = environment.getProperty("spring.dynamic.thread-pool.item-id");<NEW_LINE>String active = environment.getProperty("... | environment.getProperty("server.port", "8080"); |
649,077 | protected void generateEvidence(IndentWriter writer) {<NEW_LINE>writer.println(getPluginName());<NEW_LINE>try {<NEW_LINE>writer.indent();<NEW_LINE>writer.println("id:" + getPluginID(<MASK><NEW_LINE>String user_dir = FileUtil.getUserFile("plugins").toString();<NEW_LINE>String shared_dir = FileUtil.getApplicationFile("pl... | ) + ",version:" + getPluginVersion()); |
1,802,490 | public int lookupIndex(Object entry, boolean addIfNotPresent) {<NEW_LINE>if (entry == null) {<NEW_LINE>throw new IllegalArgumentException("Can't lookup \"null\" in an Alphabet.");<NEW_LINE>}<NEW_LINE>if (entryClass == null) {<NEW_LINE>entryClass = entry.getClass();<NEW_LINE>} else {<NEW_LINE>// Insist that all entries ... | int retIndex = entries.size(); |
554,892 | public void createPlaylist(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request, true);<NEW_LINE>String username = securityService.getCurrentUsername(request);<NEW_LINE>Integer playlistId = getIntParameter(request, "playlistId");<NEW_LINE>String name = requ... | .setCreated(new Date()); |
1,105,568 | /*<NEW_LINE>* @see<NEW_LINE>* com.ibm.ws.http.channel.internal.HttpBaseMessageImpl#headerComplianceCheck<NEW_LINE>* ()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void headerComplianceCheck() throws MessageSentException {<NEW_LINE>final boolean bTrace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (bTrace &&... | += ":" + osc.getRemotePort(); |
1,594,991 | /*<NEW_LINE>* Instance de-serialization.<NEW_LINE>*/<NEW_LINE>private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE><MASK><NEW_LINE>ivPuId = (JPAPuId) in.readObject();<NEW_LINE>// d510184<NEW_... | Tr.entry(tc, "readObject"); |
1,731,633 | public static void main(String[] args) throws Exception {<NEW_LINE>ExchangeSpecification exchangeSpecification = new ExchangeSpecification(BitcoiniumExchange.class);<NEW_LINE>// exchangeSpecification.setPlainTextUri("http://openexchangerates.org");<NEW_LINE>exchangeSpecification.setApiKey("42djci5kmbtyzrvglfdw3e2dgmh5m... | getBitcoiniumTickerHistory("BTC", "BITSTAMP_USD", "THIRTY_DAYS"); |
707,491 | public static ClassDescriptor walk(EsperEPL2GrammarParser.ClassIdentifierWithDimensionsContext ctx) throws ASTWalkException {<NEW_LINE>if (ctx == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String name = ASTUtil.unescapeClassIdent(ctx.classIdentifier());<NEW_LINE>List<EsperEPL2GrammarParser.DimensionsContext<MASK... | > dimensions = ctx.dimensions(); |
928,338 | private static JSFunctionData createAsyncGeneratorReturnProcessorRejectedImpl(JSContext context) {<NEW_LINE>class AsyncGeneratorReturnRejectedRootNode extends JavaScriptRootNode {<NEW_LINE><NEW_LINE>@Child<NEW_LINE>private JavaScriptNode reasonNode = AccessIndexedArgumentNode.create(0);<NEW_LINE><NEW_LINE>@Child<NEW_LI... | createSetHidden(JSFunction.ASYNC_GENERATOR_STATE_ID, context); |
672,356 | static AuthInitiateMessage decode(byte[] wire) {<NEW_LINE>AuthInitiateMessage message = new AuthInitiateMessage();<NEW_LINE>int offset = 0;<NEW_LINE>byte[] r = new byte[32];<NEW_LINE>byte[] s = new byte[32];<NEW_LINE>System.arraycopy(wire, offset, r, 0, 32);<NEW_LINE>offset += 32;<NEW_LINE>System.arraycopy(wire, <MASK>... | offset, s, 0, 32); |
265,810 | public void authenticate(AuthenticationFlowContext context) {<NEW_LINE>String username = retrieveUsername(context);<NEW_LINE>if (username == null) {<NEW_LINE>context.getEvent().error(Errors.USER_NOT_FOUND);<NEW_LINE>Response challengeResponse = errorResponse(Response.Status.UNAUTHORIZED.getStatusCode(), "invalid_reques... | getStatusCode(), "invalid_grant", "Invalid user credentials"); |
1,105,937 | final DescribeDeliveryChannelsResult executeDescribeDeliveryChannels(DescribeDeliveryChannelsRequest describeDeliveryChannelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDeliveryChannelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | invoke(request, responseHandler, executionContext); |
1,305,765 | public void mainFunction(String[] args) throws Exception {<NEW_LINE>String[] leftOverArgs = processLocalArgs(args);<NEW_LINE>Properties <MASK><NEW_LINE>DatabusHttpClientImpl.Config clientConfigBuilder = new DatabusHttpClientImpl.Config();<NEW_LINE>clientConfigBuilder.getContainer().setIdFromName(MODULE + ".localhost");... | startupProps = DatabusHttpClientImpl.processCommandLineArgs(leftOverArgs); |
544,801 | public SimulationEvent apply(EventLogEntry event) {<NEW_LINE>if ("PROCESSINSTANCE_START".equals(event.getType())) {<NEW_LINE>ObjectMapper objectMapper = new ObjectMapper();<NEW_LINE>Map<String, Object> data;<NEW_LINE>try {<NEW_LINE>data = objectMapper.readValue(event.getData(), new TypeReference<HashMap<String, Object>... | data.get(Fields.PROCESS_DEFINITION_ID); |
1,577,351 | @At<NEW_LINE>@Ok("raw")<NEW_LINE>@SaCheckLogin<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>public Object uploadimage(@Param("Filedata") TempFile tf, @Param("callback") String callback, HttpServletRequest req, AdaptorErrorContext err) {<NEW_LINE>String wxid = Strings.sBlank(req.getSession().getAttribute("wxid"));... | .addv("state", "FAIL")); |
1,230,874 | /*<NEW_LINE>* ------------------------------------ Schema Handling ------------------------------------<NEW_LINE>*/<NEW_LINE>public final TitanSchemaVertex makeSchemaVertex(TitanSchemaCategory schemaCategory, String name, TypeDefinitionMap definition) {<NEW_LINE>verifyOpen();<NEW_LINE>Preconditions.checkArgument(!schem... | assignID(schemaVertex, BaseVertexLabel.DEFAULT_VERTEXLABEL); |
1,669,091 | private Mono<Response<RegistryNameStatusInner>> checkNameAvailabilityWithResponseAsync(RegistryNameCheckRequest registryNameCheckRequest, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann... | this.client.mergeContext(context); |
305,111 | public void initModelsAndVariants() {<NEW_LINE>if (getCustomMeshDefinition() != null) {<NEW_LINE>for (int i = 0; i < VARIANTS.length; i++) {<NEW_LINE>ModelBakery.registerItemVariants(this, ResourceLocationHelper.getModelResourceLocation(VARIANTS[i]));<NEW_LINE>}<NEW_LINE>ModelLoader.setCustomMeshDefinition(this, getCus... | (itemStack.getMetadata())); |
484,415 | public ScalarOperator visitCaseWhenOperator(CaseWhenOperator operator, ScalarOperatorRewriteContext context) {<NEW_LINE>if (operator.hasElse() && !operator.getType().matchesType(operator.getElseClause().getType())) {<NEW_LINE>operator.setElseClause(new CastOperator(operator.getType(), operator.getElseClause()));<NEW_LI... | getCaseClause().getType()); |
1,135,368 | public char[] nullAnnotatedReadableName(CompilerOptions options, boolean shortNames) /* java.lang.Object @o.e.j.a.NonNull[] */<NEW_LINE>{<NEW_LINE>if (this.nullTagBitsPerDimension == null)<NEW_LINE>return shortNames ? shortReadableName() : readableName();<NEW_LINE>char[][] brackets = new char[this.dimensions][];<NEW_LI... | (brackets, ' '), ' '); |
1,217,638 | private static List<? extends TypeMirror> computeNewClass(Set<ElementKind> types, CompilationInfo info, TreePath parent, Tree error, int offset) {<NEW_LINE>NewClassTree nct = (NewClassTree) parent.getLeaf();<NEW_LINE>boolean errorInRealArguments = false;<NEW_LINE>for (Tree param : nct.getArguments()) {<NEW_LINE>errorIn... | Tree id = nct.getIdentifier(); |
1,461,890 | protected final IProject[] build(final int kind, Map<String, String> args, final IProgressMonitor monitor) throws CoreException {<NEW_LINE>ensureClasspathListener();<NEW_LINE>final IProject project = getProject();<NEW_LINE>final IResourceDelta delta = getDelta(project);<NEW_LINE>// check for classpath changes (that req... | new SubProgressMonitor(monitor, 1)); |
728,892 | final DescribeProjectVersionsResult executeDescribeProjectVersions(DescribeProjectVersionsRequest describeProjectVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeProjectVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(describeProjectVersionsRequest)); |
461,838 | public static boolean runWorker(Window parent, String title, String label, SwingWorker<?, ?> worker) {<NEW_LINE>log.info("Running SwingWorker " + worker);<NEW_LINE>// Start timing the worker<NEW_LINE>final long startTime = System.currentTimeMillis();<NEW_LINE>worker.execute();<NEW_LINE>// Monitor worker thread before o... | = System.currentTimeMillis() - startTime; |
216,714 | // snippet-start:[iam.java2.list_users.main]<NEW_LINE>public static void listAllUsers(IamClient iam) {<NEW_LINE>try {<NEW_LINE>boolean done = false;<NEW_LINE>String newMarker = null;<NEW_LINE>while (!done) {<NEW_LINE>ListUsersResponse response;<NEW_LINE>if (newMarker == null) {<NEW_LINE>ListUsersRequest request = ListU... | .builder().build(); |
1,097,116 | static HasDigest withDigest(HasDigest fsVal, Path path, XattrProvider syscallCache) throws IOException {<NEW_LINE>if (fsVal instanceof FileStateValue) {<NEW_LINE>FileStateValue fsv = (FileStateValue) fsVal;<NEW_LINE>if (fsv instanceof RegularFileStateValue) {<NEW_LINE>RegularFileStateValue rfsv = (RegularFileStateValue... | fav = ((FileArtifactValue) fsVal); |
1,187,107 | protected void processSubElement(XMLEventReader xmlEventReader, AttributeConsumingServiceType target, SAMLMetadataQNames element, StartElement elementDetail) throws ParsingException {<NEW_LINE>switch(element) {<NEW_LINE>case SERVICE_NAME:<NEW_LINE>LocalizedNameType serviceName = new LocalizedNameType(StaxParserUtil.get... | (StaxParserUtil.getElementText(xmlEventReader)); |
1,097,150 | final ListUsersResult executeListUsers(ListUsersRequest listUsersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUsersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | invoke(request, responseHandler, executionContext); |
1,044,372 | // issue #69642<NEW_LINE>private void installNoOpActionMappings() {<NEW_LINE>InputMap im = getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);<NEW_LINE>// cut<NEW_LINE>KeyStroke[] keys = findEditorKeys(DefaultEditorKit.cutAction, KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_MASK));<NEW_LINE>for (int i ... | (keys[i], NOOP_ACTION_KEY); |
675,505 | public static CryptoService newInstance(AccumuloConfiguration conf, ClassloaderType ct) {<NEW_LINE>CryptoService newCryptoService;<NEW_LINE>if (ct == ClassloaderType.ACCUMULO) {<NEW_LINE>newCryptoService = Property.createInstanceFromPropertyName(conf, Property.INSTANCE_CRYPTO_SERVICE, CryptoService.class, new NoCryptoS... | .getAllPropertiesWithPrefix(Property.INSTANCE_CRYPTO_PREFIX)); |
40,635 | private static void registerIntegerLongPlugins(InvocationPlugins plugins, JavaKind kind, AMD64 arch, Replacements replacements) {<NEW_LINE>Class<?> declaringClass = kind.toBoxedJavaClass();<NEW_LINE>Class<?<MASK><NEW_LINE>Registration r = new Registration(plugins, declaringClass, replacements);<NEW_LINE>r.register(new ... | > type = kind.toJavaClass(); |
1,692,485 | static void printAggregation(String name, String format, Aggregation[] aggregationArray) {<NEW_LINE>if (aggregationArray.length > 1 && aggregationArray[0].getKeyData().size() > 1) {<NEW_LINE>int aggregationDataSize = aggregationArray[0].getKeyData().get(0).getElements().length + aggregationArray.length;<NEW_LINE>List<O... | ] currAggregationData = new Object[aggregationDataSize]; |
1,847,736 | public static boolean doCustomizeNonPsiElementLeftRenderer(ColoredListCellRenderer renderer, JList list, Object value, TextAttributes attributes) {<NEW_LINE>if (!(value instanceof NavigationItem))<NEW_LINE>return false;<NEW_LINE>NavigationItem item = (NavigationItem) value;<NEW_LINE>SimpleTextAttributes nameAttributes ... | SimpleTextAttributes.fromTextAttributes(attributes) : null; |
377,823 | public void run() {<NEW_LINE>if (!myProject.isInitialized() || myProject.isDisposed())<NEW_LINE>return;<NEW_LINE>final List<VcsDirectoryMapping> copy = myNewMappings.getDirectoryMappings();<NEW_LINE>final List<VcsDirectoryMapping> added = newLinkedList(copy);<NEW_LINE>added.removeAll(myDirectoryMappingWatches.keySet())... | .WatchRequest> toRemove = newLinkedList(); |
131,602 | protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get("Dialog.Title"));<NEW_LINE>XForm mainForm = builder.createForm(messages.get("Dialog.Basic.Label"));<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUT... | , messages.get("Dialog.Basic.NoWrapped")); |
239,034 | // parse decoded query String<NEW_LINE>protected Map<String, List<String>> parseQueryString(String s) {<NEW_LINE>Map<String, List<String>> map = new HashMap<String, List<String>>();<NEW_LINE>if (s == null) {<NEW_LINE>return map;<NEW_LINE>}<NEW_LINE>List<String> vals = new ArrayList<String>();<NEW_LINE>StringTokenizer s... | String pair = st.nextToken(); |
1,012,478 | List<String> listEditableWithPortalCategory(Business business, EffectivePerson effectivePerson, String portalCategory) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Portal.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQ... | id)).where(p); |
460,535 | public static void updateHeadingsInMarkdownFile(File inputFile, File outputFile, String extensionRepositoryName, String latestDocumentationVersion, List<NamespaceMetaData> namespaceMetaDataList, String groupId, String siddhiVersion) throws MojoFailureException {<NEW_LINE>// Retrieving the content of the README.md file<... | inputFileLines = new ArrayList<>(); |
1,733,090 | public Object createResultObject(List<Object> fields) throws CodingException {<NEW_LINE>if (fields.size() != count()) {<NEW_LINE>throw new CodingException("Invalid field number for create object " + ". Needs " + count() + " fields, while having " + fields.size() + " fields.");<NEW_LINE>}<NEW_LINE>switch(objectType) {<N... | , fields.get(i)); |
1,498,434 | public Message addOrchestrator(HttpServletRequest req, @RequestBody AddOrchestratorRequest addOrchestratorRequest) throws Exception {<NEW_LINE>String userName = SecurityFilter.getLoginUsername(req);<NEW_LINE>String name = addOrchestratorRequest.getName();<NEW_LINE>String workspaceName = addOrchestratorRequest.getWorksp... | String desc = addOrchestratorRequest.getDesc(); |
1,410,281 | WritableMap createDataChannel(String label, ReadableMap config) {<NEW_LINE>DataChannel.Init init = new DataChannel.Init();<NEW_LINE>if (config != null) {<NEW_LINE>if (config.hasKey("id")) {<NEW_LINE>init.id = config.getInt("id");<NEW_LINE>}<NEW_LINE>if (config.hasKey("ordered")) {<NEW_LINE>init.ordered = config.getBool... | putBoolean("ordered", init.ordered); |
94,504 | public Decision canAllocate(RoutingNode node, RoutingAllocation allocation) {<NEW_LINE>// Only checks the node-level limit, not the index-level<NEW_LINE>// Capture the limit here in case it changes during this method's<NEW_LINE>// execution<NEW_LINE>final int clusterShardLimit = this.clusterShardLimit;<NEW_LINE>if (clu... | CLUSTER_TOTAL_SHARDS_PER_NODE_SETTING.getKey(), clusterShardLimit); |
675,857 | public void processEvent(ComponentSystemEvent event) {<NEW_LINE>UIComponent parentCompositeComponent = event.getComponent();<NEW_LINE>FacesContext facesContext = FacesContext.getCurrentInstance();<NEW_LINE>// Calculate a findComponent expression to locate the right instance so PreRenderViewEvent could be called<NEW_LIN... | (methodExpOneArg, methodExpZeroArg, findComponentExpression)); |
1,503,132 | protected void executeWithTargetAndIndexUnguarded(Object target, Object index, Object value, Object receiver, WriteElementNode root) {<NEW_LINE>JSDynamicObject targetObject = ((JSDynamicObject) target);<NEW_LINE>if (arrayProfile.profile(isArrayNode.execute(targetObject))) {<NEW_LINE>ScriptArray array = JSObject.getArra... | objIndex, value, receiver, root); |
1,805,501 | public static void main(String[] args) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>try {<NEW_LINE>// 1) Set debugger to track XDocReport process<NEW_LINE>XDocReportRegistry.getRegistry().setDebugger(SysOutDebugger.INSTANCE);<NEW_LINE>// 2) Load ODS file by filling Velocity template engine and cache... | IContext context = report.createContext(); |
1,584,652 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) {<NEW_LINE>mLogger = new LoggingService.Logger(getActivity());<NEW_LINE>View view = inflater.inflate(getLayoutId(), container, false);<NEW_LINE>view.findViewById(R.id.downstream_api_key).setOnClickListener(this);<NEW_LINE>view.fin... | view, R.id.fragment_description); |
1,372,697 | public void update(TextureAtlas.AtlasRegion region, int[] splits) {<NEW_LINE>this.region = region;<NEW_LINE>clear();<NEW_LINE>NinePatch horizontalPatch = new NinePatch(region, splits[0], splits[1], splits[2], splits[3]);<NEW_LINE>NinePatch verticalPatch = new NinePatch(region, splits[0], splits[1], splits[2], splits[3]... | Math.min(minSclH, minSclV); |
553,359 | final PutKeywordResult executePutKeyword(PutKeywordRequest putKeywordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putKeywordRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | endClientExecution(awsRequestMetrics, request, response); |
761,981 | public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {<NEW_LINE>final SqlWriter.Frame selectFrame = writer.startList(SqlWriter.FrameTypeEnum.SELECT);<NEW_LINE>writer.sep("CREATE CCL_RULE");<NEW_LINE>if (ifNotExists) {<NEW_LINE>writer.sep("IF NOT EXISTS");<NEW_LINE>}<NEW_LINE>ruleName.unparse(writer, leftP... | unparse(writer, leftPrec, rightPrec); |
1,059,858 | public Pair<List<BackupOffering>, Integer> listBackupOfferings(final ListBackupOfferingsCmd cmd) {<NEW_LINE>final Long offeringId = cmd.getOfferingId();<NEW_LINE>final Long zoneId = cmd.getZoneId();<NEW_LINE>final String keyword = cmd.getKeyword();<NEW_LINE>if (offeringId != null) {<NEW_LINE>BackupOfferingVO offering =... | > sc = sb.create(); |
354,075 | public final ArgumentContext argument() throws RecognitionException {<NEW_LINE>ArgumentContext _localctx = new ArgumentContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 58, RULE_argument);<NEW_LINE>try {<NEW_LINE>setState(464);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(getInterpreter().adaptivePredict(_in... | _errHandler.recover(this, re); |
1,805,154 | protected void updateProcessDefinitionJsonWorkerGroup() {<NEW_LINE>WorkerGroupDao workerGroupDao = new WorkerGroupDao();<NEW_LINE>ProcessDefinitionDao processDefinitionDao = new ProcessDefinitionDao();<NEW_LINE>Map<Integer, String> replaceProcessDefinitionMap = new HashMap<>();<NEW_LINE>try {<NEW_LINE>Map<Integer, Stri... | ObjectNode) tasks.path(i); |
1,165,285 | public OutlierResult run(Relation<O> relation) {<NEW_LINE>DBIDs ids = relation.getDBIDs();<NEW_LINE>QueryBuilder<O> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>// Phase one: KNN and k-dist<NEW_LINE>WritableDoubleDataStore kdists = DataStoreUtil.makeDoubleStorage(ids, DataStoreFactory.HINT_DB);<NEW_LINE>Writab... | makeDoubleStorage(ids, DataStoreFactory.HINT_DB); |
941,738 | public void logSubtitleTrack(int idx, boolean videoSubtitle) {<NEW_LINE>if (mI == null || !mI.isValid()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>sb.append("\n - Sub - ");<NEW_LINE>boolean first = true;<NEW_LINE>if (videoSubtitle) {<NEW_LINE>first &= !appendString("Title", mI.Get(StreamType.Video, idx, "Title"), first... | ), first, true, true); |
493,971 | public static EncryptedFolderMetadata encryptFolderMetadata(DecryptedFolderMetadata decryptedFolderMetadata, String privateKey) throws NoSuchAlgorithmException, InvalidKeyException, InvalidAlgorithmParameterException, NoSuchPaddingException, BadPaddingException, IllegalBlockSizeException, InvalidKeySpecException {<NEW_... | DecryptedFile decryptedFile = entry.getValue(); |
643,502 | public void run(RegressionEnvironment env) {<NEW_LINE>// test factory method on the same event class<NEW_LINE>String stmtTextOne = "@name('s0') insert into SupportBeanString select 'abc' as theString from MyMap";<NEW_LINE>env.compileDeploy(stmtTextOne).addListener("s0").setSubscriber("s0");<NEW_LINE>env.sendEventMap(ne... | (stmtTextOne).addListener("s0"); |
450,776 | public Result implement(EnumerableRelImplementor implementor, Prefer pref) {<NEW_LINE>final BlockBuilder builder = new BlockBuilder();<NEW_LINE>Expression intersectExp = null;<NEW_LINE>for (Ord<RelNode> ord : Ord.zip(inputs)) {<NEW_LINE>EnumerableRel input = (EnumerableRel) ord.e;<NEW_LINE>final Result result = impleme... | ord.i, input, pref); |
956,078 | public static void main(String[] args) {<NEW_LINE>Path2D.Float path = new Path2D.Float();<NEW_LINE>path.moveTo(0, 0);<NEW_LINE>path.lineTo(0, 10);<NEW_LINE>path.lineTo(10, 10);<NEW_LINE>path.lineTo(10, 0);<NEW_LINE>path.closePath();<NEW_LINE>System.out.println(getArea<MASK><NEW_LINE>path = new Path2D.Float();<NEW_LINE>... | (new Area(path))); |
180,472 | public boolean sample() {<NEW_LINE>boolean sample = super.sample();<NEW_LINE>// Regardless of whether it's being sampled, record the time it occurred and add it to the list.<NEW_LINE>long occurringTime = clock.millis();<NEW_LINE>sampleTimes.add(occurringTime);<NEW_LINE>// Remove times that happened more than the target... | / sampleTimes.size())); |
673,909 | public void generate(AsmBuilder builder, String functionName, Function function, ResultType resultType, ParameterType[] parameterTypes, boolean ignoreError) {<NEW_LINE>Class[] javaParameterTypes = new Class[parameterTypes.length];<NEW_LINE>for (int i = 0; i < parameterTypes.length; i++) {<NEW_LINE>javaParameterTypes[i]... | ), resultType, parameterTypes, ignoreError); |
172,129 | public PlanWithProperties visitSemiJoin(SemiJoinNode node, HashComputationSet parentPreference) {<NEW_LINE>Optional<HashComputation> sourceHashComputation = computeHash(ImmutableList.of(node.getSourceJoinVariable()), functionAndTypeManager);<NEW_LINE>PlanWithProperties source = planAndEnforce(node.getSource(), new Hash... | true, new HashComputationSet(sourceHashComputation)); |
1,538,759 | public void marshall(UICustomizationType uICustomizationType, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (uICustomizationType.getUserPoolId() != null) {<NEW_LINE>String userPoolId = uICustomizationType.getUserPoolId();<NEW_LINE>jsonWriter.name("UserPoolId");<NEW_LINE>jso... | Date creationDate = uICustomizationType.getCreationDate(); |
1,253,950 | public void prepareForReConnect() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE><MASK><NEW_LINE>// clear the request queue of all outstanding request.<NEW_LINE>// We can only clear when the object using us tell us to clear,<NEW_LINE>// ohterwise we risk timing windows whereby we clear out requests<NEW_LIN... | c_logger.traceEntry(this, "SipResolverUdpTransport: prepareForReConnect"); |
1,624,106 | public void mouseClicked(MouseEvent e) {<NEW_LINE>JTableHeader h = (JTableHeader) e.getSource();<NEW_LINE>TableColumnModel columnModel = h.getColumnModel();<NEW_LINE>int viewColumn = columnModel.getColumnIndexAtX(e.getX());<NEW_LINE>int column = columnModel.getColumn(viewColumn).getModelIndex();<NEW_LINE>if (column != ... | isShiftDown() ? -1 : 1; |
1,629,684 | InputStream streamFile(String filePath) throws IOException {<NEW_LINE>boolean serveFile = false;<NEW_LINE>Logger.debug(this, "Not a CMS Velocity File : " + filePath);<NEW_LINE>java.io.File f = null;<NEW_LINE>String lookingFor = "";<NEW_LINE>if (filePath.startsWith("dynamic")) {<NEW_LINE>lookingFor = ConfigUtils.getDyna... | String canon = f.getCanonicalPath(); |
332,066 | public CtClass makeSubclass2(ClassPool pool, CtClass type) throws CannotCompileException, NotFoundException, IOException {<NEW_LINE>CtClass vec = pool.makeClass(makeClassName(type));<NEW_LINE>vec.setSuperclass(pool.get("java.util.Vector"));<NEW_LINE>CtClass c = pool.get("sample.vector.Sample2");<NEW_LINE>CtMethod <MASK... | addmethod = c.getDeclaredMethod("add"); |
20,965 | public synchronized void open(HugeConfig config) {<NEW_LINE>LOG.debug("Store open: {}", this.store);<NEW_LINE>E.checkNotNull(config, "config");<NEW_LINE>if (this.sessions != null && !this.sessions.closed()) {<NEW_LINE>LOG.debug("Store {} has been opened before", this.store);<NEW_LINE>this.sessions.useSession();<NEW_LIN... | debug("Store opened: {}", this.store); |
1,743,204 | private void manageToolbarSizes() {<NEW_LINE>// sometimes width is passed in as 0 (not sure why)<NEW_LINE>int width = getOffsetWidth();<NEW_LINE>if (width == 0)<NEW_LINE>return;<NEW_LINE>if (editor_.getFileType().isMarkdown()) {<NEW_LINE>toggleDocOutlineButton_.setText((!isVisualMode() || width >= 675) ? commands_.togg... | setText(width >= 400, sourceCommandText_); |
1,243,550 | ArrayList<Geometry> collect_geometries_to_union(int dim) {<NEW_LINE>ArrayList<Geometry> batch_to_union <MASK><NEW_LINE>ArrayList<Map.Entry<Integer, Bin_type>> entriesToRemove = new ArrayList<Map.Entry<Integer, Bin_type>>();<NEW_LINE>Set<Map.Entry<Integer, Bin_type>> set = m_union_bins.get(dim).entrySet();<NEW_LINE>for ... | = new ArrayList<Geometry>(); |
1,347,228 | private void createDataBase() throws Exception {<NEW_LINE>String goalUrl = properties.getProperty("spring.datasource.url");<NEW_LINE>this.user = properties.getProperty("spring.datasource.username");<NEW_LINE>this.password = properties.getProperty("spring.datasource.password");<NEW_LINE>String driverName = properties.ge... | goalUrl.lastIndexOf("/") + 1; |
33,599 | public StructuralNode apply(StructuralNode node, MediaContentComponent.Parameters parameters) {<NEW_LINE>Content content = parameters.content;<NEW_LINE>if (content == null || content.isEmpty())<NEW_LINE>return node;<NEW_LINE>DescriptionListImpl mediaContentList = new DescriptionListImpl(node);<NEW_LINE>mediaContentList... | mediaContentList, mediaType.getSchema()); |
1,359,928 | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>if (this.settings != null) {<NEW_LINE>builder.<MASK><NEW_LINE>this.settings.toXContent(builder, params);<NEW_LINE>builder.endObject();<NEW_LINE>}<NEW_LINE>if (this.mappings != null) {<... | startObject(SETTINGS.getPreferredName()); |
1,350,772 | Object str(VirtualFrame frame, PBaseException self, @Cached BaseExceptionAttrNode attrNode, @Cached CastToJavaStringNode toJavaStringNode, @Cached PyObjectStrAsJavaStringNode strNode) {<NEW_LINE>if (self.getExceptionAttributes() == null) {<NEW_LINE>// Not properly initialized.<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>//... | (self, IDX_ENCODING, UNICODE_ERROR_ATTR_FACTORY)); |
517,395 | public static TagUrn createFromUrn(Urn urn) throws URISyntaxException {<NEW_LINE>if (!"li".equals(urn.getNamespace())) {<NEW_LINE>throw new URISyntaxException(urn.toString(), "Urn namespace type should be 'li'.");<NEW_LINE>} else if (!ENTITY_TYPE.equals(urn.getEntityType())) {<NEW_LINE>throw new URISyntaxException(urn.... | (0, String.class)); |
1,716,553 | public void run(RegressionEnvironment env) {<NEW_LINE>EventRepresentationChoice rep = EventRepresentationChoice.getEngineDefault(env.getConfiguration());<NEW_LINE>String[] fields = "col1,col2".split(",");<NEW_LINE>String epl = "@public @buseventtype create schema MyEvent as (in1 string, in2 int);\n" + "create schema My... | [] { "B1", 2 }); |
32,709 | private ModeImpl createMode(ModeConfig config) {<NEW_LINE>WindowManagerImpl wmi = WindowManagerImpl.getInstance();<NEW_LINE>ModeImpl res = wmi.createMode(config.name, config.kind, config.state, false, config.constraints);<NEW_LINE>Rectangle absBounds = config.bounds == null ? <MASK><NEW_LINE>Rectangle relBounds = confi... | new Rectangle() : config.bounds; |
710,976 | public void checkPackage() {<NEW_LINE>if (epack == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EPUBVersion version = epack.getVersion();<NEW_LINE>if (version != null && version.equals(EPUBVersion.VERSION_3)) {<NEW_LINE>factory.newInstance(report, ValidationType.RENDITION, epack).validate();<NEW_LINE>factory.newInstanc... | EPUB3_STRUCTURE, epack).validate(); |
1,229,075 | public static DescribeDohSubDomainStatisticsSummaryResponse unmarshall(DescribeDohSubDomainStatisticsSummaryResponse describeDohSubDomainStatisticsSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDohSubDomainStatisticsSummaryResponse.setRequestId(_ctx.stringValue("DescribeDohSubDomainStatisticsSummaryRespo... | (_ctx.integerValue("DescribeDohSubDomainStatisticsSummaryResponse.PageNumber")); |
1,459,462 | public BaseConnectionParam createConnectionParams(BaseDataSourceParamDTO datasourceParam) {<NEW_LINE>HiveDataSourceParamDTO hiveParam = (HiveDataSourceParamDTO) datasourceParam;<NEW_LINE>StringBuilder address = new StringBuilder();<NEW_LINE>address.append(Constants.JDBC_HIVE_2);<NEW_LINE>for (String zkHost : hiveParam.... | setLoginUserKeytabPath(hiveParam.getLoginUserKeytabPath()); |
1,749,568 | public static DescribeDomainBpsDataResponse unmarshall(DescribeDomainBpsDataResponse describeDomainBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainBpsDataResponse.setRequestId(_ctx.stringValue("DescribeDomainBpsDataResponse.RequestId"));<NEW_LINE>describeDomainBpsDataResponse.setDomainName(_ctx.stri... | ("DescribeDomainBpsDataResponse.BpsDataPerInterval[" + i + "].OverseasL2Value")); |
789,900 | public boolean substituteNewClass(NewClassElement newClassElement) {<NEW_LINE>NewClassTree newClass = ExtendedElementFactory.toTree(newClassElement);<NEW_LINE>String className = newClassElement.getTypeAsElement().toString();<NEW_LINE>if (className.startsWith(JSweetConfig.TUPLE_CLASSES_PACKAGE + ".")) {<NEW_LINE>getPrin... | getPrinter().printDefaultNewClass(newClass); |
1,080,426 | public void applyMigration() {<NEW_LINE>try {<NEW_LINE>if (curatorFramework.checkExists().forPath(ACTIVE_TASKS_ROOT) != null) {<NEW_LINE>List<String> currentActive = curatorFramework.<MASK><NEW_LINE>for (String taskIdString : currentActive) {<NEW_LINE>try {<NEW_LINE>SingularityTaskId taskId = SingularityTaskId.valueOf(... | getChildren().forPath(ACTIVE_STATUSES_ROOT); |
1,671,677 | private static Map<String, Object> applyJobParamOverrides(Context context, Map<String, Object> parsedValues) {<NEW_LINE>final Parameters parameters = context.getParameters();<NEW_LINE>Map<String, Object> defaultProps = defaultProps();<NEW_LINE>for (String key : configNames()) {<NEW_LINE>Object value = parameters.get(<M... | KafkaSinkJobParameters.PREFIX + key, null); |
361,502 | public BatchOperator<?> transform(BatchOperator<?> input) {<NEW_LINE>List<PipelineModel> pipelineModels = splitPipelineModel(true);<NEW_LINE>int maxNumThread = getMaxNumThread(this);<NEW_LINE>for (PipelineModel model : pipelineModels) {<NEW_LINE>if (model.transformers.length == 1) {<NEW_LINE>input = model.transformers[... | .params.get(LAZY_PRINT_TRANSFORM_DATA_TITLE)); |
572,361 | public DescribeGroupMembershipResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeGroupMembershipResult describeGroupMembershipResult = new DescribeGroupMembershipResult();<NEW_LINE>describeGroupMembershipResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE>int origin... | JsonToken token = context.getCurrentToken(); |
658,290 | public void serialize(final DataOutput sink, final DataRecord record, final PageReadOnlyTrx pageReadTrx) throws IOException {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final RBNode<CASValue, NodeReferences> node = (RBNode<CASValue, NodeReferences>) record;<NEW_LINE>final CASValue key = node.getKey();<NEW_LINE>fi... | writeBoolean(node.isChanged()); |
1,027,691 | void visitMsgDefinition(ProtectedJsMessage protectedJsMessage) {<NEW_LINE>try {<NEW_LINE>final JsMessage originalMsg = protectedJsMessage.jsMessage;<NEW_LINE>final Node nodeToReplace = protectedJsMessage.definitionNode;<NEW_LINE>final JsMessage translatedMsg = lookupMessage(protectedJsMessage.definitionNode, bundle, or... | ()), placeholderMap, msgOptions); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.