idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
617,651 | public void onInitFinished(@Nullable JSONObject referringParams, @Nullable BranchError error) {<NEW_LINE>Log.d(TAG, "onInitFinished: with params: " + (referringParams == null ? "null" : referringParams) + ", with error " + (error == null ? "null" : error.getMessage()));<NEW_LINE>mLoader.stop();<NEW_LINE>if (referringPa... | sharedHelper.setUserNameAndPhone(userId, null); |
1,283,344 | protected Control createPageContents(Composite parent) {<NEW_LINE>Composite propsGroup = new Composite(parent, SWT.NONE);<NEW_LINE>propsGroup.setLayout(new GridLayout(2, false));<NEW_LINE>GridData gd <MASK><NEW_LINE>propsGroup.setLayoutData(gd);<NEW_LINE>// $NON-NLS-2$<NEW_LINE>final Text nameText = UIUtils.createLabel... | = new GridData(GridData.FILL_HORIZONTAL); |
1,691,209 | public void removeInstance(Integer containerId, String componentName) throws PackingException {<NEW_LINE>initContainers();<NEW_LINE>Container container = containers.get(containerId);<NEW_LINE>if (container == null) {<NEW_LINE>throw new PackingException(String.format("Failed to remove component '%s' because container " ... | instancePlan = container.removeAnyInstanceOfComponent(componentName); |
241,861 | final DeleteReportDefinitionResult executeDeleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
726,558 | final DeleteSecurityConfigurationResult executeDeleteSecurityConfiguration(DeleteSecurityConfigurationRequest deleteSecurityConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSecurityConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
653,323 | public Pair<OperandSize, String> generate(final ITranslationEnvironment environment, final long offset, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>Preconditions.checkNotNull(environment, "Error: Argument environment can't be null");<NEW_LINE>Preconditions.checkNotNull(instr... | , OperandSize.BYTE, result)); |
1,283,373 | public String sendHttpJsonDownstreamMessage(String destination, Message message) throws IOException {<NEW_LINE>JSONObject jsonBody = new JSONObject();<NEW_LINE>try {<NEW_LINE>jsonBody.put(PARAM_TO, destination);<NEW_LINE>jsonBody.putOpt(PARAM_COLLAPSE_KEY, message.getCollapseKey());<NEW_LINE>jsonBody.putOpt(PARAM_RESTR... | PARAM_DRY_RUN, message.isDryRun()); |
22,068 | public static void addJarPath(ProtectionDomain domain) {<NEW_LINE>if (domain != null && domain.getCodeSource() != null && domain.getCodeSource().getLocation() != null) {<NEW_LINE>String path = domain.getCodeSource().getLocation().getFile();<NEW_LINE>if (!StringUtils.isEmpty(path)) {<NEW_LINE>if ((path.endsWith(".jar") ... | .lastIndexOf(".jar") + 4); |
1,756,511 | final ListDelegatedAdministratorsResult executeListDelegatedAdministrators(ListDelegatedAdministratorsRequest listDelegatedAdministratorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDelegatedAdministratorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Organizations"); |
988,776 | public T visitRouteSubscript(RouteSubscriptContext ctx) {<NEW_LINE>RouteVariable atNode = (RouteVariable) this.instStack.pop();<NEW_LINE><MASK><NEW_LINE>TerminalNode stringNode = ctx.STRING();<NEW_LINE>ExprContext exprContext = ctx.expr();<NEW_LINE>//<NEW_LINE>BlockLocation locationInfo = code(new BlockLocation(), ctx)... | TerminalNode intNode = ctx.INTEGER_NUM(); |
837,470 | public void generateMetatype() throws Exception {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>ClassLoader raClassLoader = cmInfo.getClassLoader();<NEW_LINE>this.rarFileName = cmInfo.getURI();<NEW_LINE>this.urls = cmInfo.getContainer().getURLs();<NEW_LINE>// configurationHelper<NEW_LINE... | MetatypeGenerator.generateMetatype(metagenConfig, mtpService); |
1,353,461 | public static ListTransitRouterAvailableResourceResponse unmarshall(ListTransitRouterAvailableResourceResponse listTransitRouterAvailableResourceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRouterAvailableResourceResponse.setRequestId(_ctx.stringValue("ListTransitRouterAvailableResourceResponse.RequestId")... | ("ListTransitRouterAvailableResourceResponse.MasterZones[" + i + "]")); |
21,422 | private static Schema validateOrMergeWriteSchema(Table table, StructType dsSchema, SparkWriteConf writeConf) {<NEW_LINE>Schema writeSchema;<NEW_LINE>if (writeConf.mergeSchema()) {<NEW_LINE>// convert the dataset schema and assign fresh ids for new fields<NEW_LINE>Schema newSchema = SparkSchemaUtil.convertWithFreshIds(t... | ), writeConf.checkOrdering()); |
1,293,598 | public ResponseEntity<?> countItems(DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration, RootResourceInformation repoRequest, WebRequest request, @PathVariable String scopeName) {<NEW_LINE>DynamicRepositoryInvoker repositoryInvoker = (DynamicRepositoryInvoker) repoRequest.getInvoker();<NEW_LINE>... | final PredicateScopeMetadata predicateScope = (PredicateScopeMetadata) scope; |
160,156 | public static void install(final ModeController modeController) {<NEW_LINE>final PresentationController presentationController = new PresentationController(modeController);<NEW_LINE>modeController.addExtension(PresentationController.class, presentationController);<NEW_LINE>presentationController.registerActions();<NEW_... | ).getExtension(HighlightController.class); |
1,170,012 | private static void colourIntelDialogRow(View row, Map<String, Integer> classifier, String key) {<NEW_LINE>if (Integer.valueOf(Classifier.LIKE).equals(classifier.get(key))) {<NEW_LINE>row.findViewById(R.id.intel_row_like).setBackgroundResource(R.drawable.ic_like_active);<NEW_LINE>row.findViewById(R.id.intel_row_dislike... | setBackgroundResource(R.drawable.ic_like_gray55); |
1,405,136 | private Set<String> readModifiedFilesFromURL(HttpClient client, String url) throws Exception {<NEW_LINE>Set<String> modifiedFiles = new HashSet<>();<NEW_LINE>HttpGet getRequest = new HttpGet(url);<NEW_LINE>getRequest.addHeader("Authorization", "token " + ACCESS_TOKEN);<NEW_LINE>HttpResponse firstResponse = client.execu... | changedFile = currentJson.getString("filename"); |
244,669 | public void configure(TestElement element) {<NEW_LINE>super.configure(element);<NEW_LINE>servername.setText(element.getPropertyAsString(LDAPSampler.SERVERNAME));<NEW_LINE>port.setText(element.getPropertyAsString(LDAPSampler.PORT));<NEW_LINE>rootdn.setText(element.getPropertyAsString(LDAPSampler.ROOTDN));<NEW_LINE>CardL... | (CardLayout) cards.getLayout(); |
181,984 | final Cluster executeResumeCluster(ResumeClusterRequest resumeClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resumeClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime... | endClientExecution(awsRequestMetrics, request, response); |
1,107,994 | public void process(LArrayAccessor<TupleDesc_U8> points, DogArray_I32 assignments, FastAccess<TupleDesc_U8> clusters) {<NEW_LINE>// see if it should run the single thread version instead<NEW_LINE>if (points.size() < minimumForConcurrent) {<NEW_LINE>super.process(points, assignments, clusters);<NEW_LINE>return;<NEW_LINE... | data.counts.data[clusterIdx]; |
1,512,779 | public static void parse(String text, JTextPane pane) {<NEW_LINE>try {<NEW_LINE>Matcher match = TEXT_PATTERN.matcher(text);<NEW_LINE>Document doc = pane.getDocument();<NEW_LINE>// Start of current text area<NEW_LINE>int textStart = 0;<NEW_LINE>// Style for next set of text<NEW_LINE>Style style = null;<NEW_LINE>while (m... | = match.end() + 1; |
40,395 | // IFlowItems<NEW_LINE>@Override<NEW_LINE>public int tryExtractItems(int count, EnumFacing from, EnumDyeColor colour, IStackFilter filter, boolean simulate) {<NEW_LINE>if (pipe.getHolder().getPipeWorld().isRemote) {<NEW_LINE>throw new IllegalStateException("Cannot extract items on the client side!");<NEW_LINE>}<NEW_LIN... | filter, count, count, simulate); |
693,916 | public AmazonWebServiceResponse<S3Object> handle(HttpResponse response) throws Exception {<NEW_LINE><MASK><NEW_LINE>final AmazonWebServiceResponse<S3Object> awsResponse = parseResponseMetadata(response);<NEW_LINE>if (response.getHeaders().get(Headers.REDIRECT_LOCATION) != null) {<NEW_LINE>object.setRedirectLocation(res... | final S3Object object = new S3Object(); |
826,307 | private int computeDurationDivisor() {<NEW_LINE>try {<NEW_LINE>final SortedSet<Rational> durations = new TreeSet<>();<NEW_LINE>// Collect duration values for each standard chord in this page<NEW_LINE>for (SystemInfo system : getSystems()) {<NEW_LINE>for (MeasureStack stack : system.getStacks()) {<NEW_LINE>for (Abstract... | ) + " Error visiting " + chord, ex); |
943,381 | public MappingStore match(Tree src, Tree dst, MappingStore mappings) {<NEW_LINE>RtedAlgorithm a = new RtedAlgorithm(1D, 1D, 1D);<NEW_LINE>a.init(src, dst);<NEW_LINE>a.computeOptimalStrategy();<NEW_LINE>a.nonNormalizedTreeDist();<NEW_LINE>ArrayDeque<int[]> arrayMappings = a.computeEditMapping();<NEW_LINE>List<Tree> srcs... | mappings.addMapping(srcg, dstg); |
1,142,919 | public void commitMigration(final NicProfile nic, final Network network, final VirtualMachineProfile vm, final ReservationContext src, final ReservationContext dst) {<NEW_LINE>if (nic.getBroadcastType() != Networks.BroadcastDomainType.Pvlan) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (vm.getType() == VirtualMachine.Type... | s_logger.warn("Timed Out", e); |
1,570,620 | private void createMBeans(HazelcastInstanceImpl hazelcastInstance, ManagementService managementService, Node node, ExecutionService executionService) {<NEW_LINE>this.nodeMBean = new NodeMBean(hazelcastInstance, node, managementService);<NEW_LINE>this.partitionServiceMBean = new PartitionServiceMBean(<MASK><NEW_LINE>thi... | hazelcastInstance, node.partitionService, service); |
1,800,231 | public com.squareup.okhttp.Call scopesGetCall(String xWSO2Tenant, String scopeKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map varia... | localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); |
1,827,680 | private void onGroupsChanged(List<Group> result) {<NEW_LINE>Timber.i(">> Groups changed ! Size=%s", result.size());<NEW_LINE>if (!enabled)<NEW_LINE>return;<NEW_LINE>boolean isEmpty = (result.isEmpty());<NEW_LINE>emptyText.setVisibility(isEmpty ? View.VISIBLE : View.GONE);<NEW_LINE>activity.get().updateTitle(result.size... | .distinct().toList(); |
390,814 | public static void main(String[] args) {<NEW_LINE>Exercise32_8Puzzle puzzle = new Exercise32_8Puzzle();<NEW_LINE>int[][] grid = puzzle.generateRandom8PuzzleGrid();<NEW_LINE>// Heuristic 1 - Tiles in wrong position<NEW_LINE>List<String> solutionHeuristic1 = puzzle.solve8Puzzle(grid, Heuristic.TILES_IN_WRONG_POSITION);<N... | initialState = puzzle.getState(grid); |
1,839,786 | public void process(ImagePyramid<GrayF32> image1, ImagePyramid<GrayF32> image2) {<NEW_LINE>// Process the pyramid from low resolution to high resolution<NEW_LINE>boolean first = true;<NEW_LINE>for (int i = image1.getNumLayers() - 1; i >= 0; i--) {<NEW_LINE>GrayF32 layer1 = image1.getLayer(i);<NEW_LINE>GrayF32 layer2 = ... | layer1.width, layer1.height); |
1,315,561 | private static ArrayList<NodeDesc> mergeNodes(NodeDesc parentNode, List<NodeDesc> nodes, HashMap<String, NodeDesc> layoutNodes, HashMap<String, HashMap<String, NodeDesc>> parentSceneNodeMap, String layout, boolean applyDefaultLayout) {<NEW_LINE>ArrayList<NodeDesc> newNodes = new ArrayList<NodeDesc>(nodes.size());<NEW_L... | add(b.build()); |
290,465 | public void create(final JSONArray args, final CallbackContext callbackContext) throws JSONException {<NEW_LINE>JSONObject params = args.getJSONObject(1);<NEW_LINE>String hashCode = args.getString(2);<NEW_LINE>JSONArray positionList = params.getJSONArray("positionList");<NEW_LINE>JSONArray geocellList = new JSONArray()... | result.put("__pgmId", id); |
1,475,869 | public void addToASI(@NonNull final IAttributeSetInstanceAware asiAware, final List<IPricingAttribute> pricingAttributes) {<NEW_LINE>if (asiAware.getM_AttributeSetInstance_ID() <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (pricingAttributes == null || pricingAttributes.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | asiId, pricingAttribute.getAttributeValue()); |
1,061,296 | protected Sheet createSheet() {<NEW_LINE>BlackboardArtifact artifact = messageNode.getArtifact();<NEW_LINE>if (artifact == null) {<NEW_LINE>return messageNode.createSheet();<NEW_LINE>}<NEW_LINE>Sheet sheet = messageNode.createSheet();<NEW_LINE>BlackboardArtifact.ARTIFACT_TYPE artifactTypeID = BlackboardArtifact.ARTIFAC... | fromID(artifact.getArtifactTypeID()); |
1,563,206 | protected Context makeContext() {<NEW_LINE>final TimeoutContext cx = new TimeoutContext(this);<NEW_LINE>cx.setLanguageVersion(Context.VERSION_ES6);<NEW_LINE>cx.setLocale(browserVersion_.getBrowserLocale());<NEW_LINE>// make sure no java classes are usable from js<NEW_LINE>cx.setClassShutter(fullClassName -> {<NEW_LINE>... | cx.setDebugger(debugger_, null); |
53,382 | public static void main(String[] args) {<NEW_LINE>JcsegServerConfig config = new JcsegServerConfig();<NEW_LINE>String proFile = null;<NEW_LINE>if (args.length > 0) {<NEW_LINE>proFile = args[0];<NEW_LINE>}<NEW_LINE>if (proFile == null) {<NEW_LINE>String[] rPaths = { "jcseg-server.properties", "classes/jcseg-server.prope... | .setLog(new JettyEmptyLogger()); |
251,389 | private NoOperacaoAtribuicao criaIncrementoUnario(TerminalNode ID, IndiceArrayContext contextoLinhas, IndiceArrayContext contextoColunas) {<NEW_LINE>String nomeMatriz = ID.getText();<NEW_LINE>NoExpressao linhas = (NoExpressao) contextoLinhas.expressao().accept(this);<NEW_LINE>NoExpressao colunas = (NoExpressao) context... | expressao().accept(this); |
1,464,637 | public void onRun() throws RetryLaterException {<NEW_LINE>List<Job> jobs = new LinkedList<>();<NEW_LINE>DecryptionResult result = <MASK><NEW_LINE>if (result.getContent() != null) {<NEW_LINE>if (result.getContent().getSenderKeyDistributionMessage().isPresent()) {<NEW_LINE>handleSenderKeyDistributionMessage(result.getCon... | MessageDecryptionUtil.decrypt(context, envelope); |
314,377 | public static void main(String[] args) {<NEW_LINE>ThreadLocalDirectoryBenchmark benchmark = new ThreadLocalDirectoryBenchmark();<NEW_LINE>long end;<NEW_LINE>System.out.println("ThreadLocalDirectory<Integer, Integer>");<NEW_LINE><MASK><NEW_LINE>benchmark.sumFromMultipleThreads();<NEW_LINE>end = System.currentTimeMillis(... | long start = System.currentTimeMillis(); |
937,854 | protected void parse(final ProtocolFactory protocols, final Local file) throws AccessDeniedException {<NEW_LINE>final NSDictionary serialized = NSDictionary.dictionaryWithContentsOfFile(file.getAbsolute());<NEW_LINE>if (null == serialized) {<NEW_LINE>throw new LocalAccessDeniedException(String.format("Invalid bookmark ... | NSArray collections = rootCollection.favorites(); |
1,038,451 | public void put(int index, Object value) {<NEW_LINE>int orgType = this.parameterTypeList[index];<NEW_LINE>int actuallyType;<NEW_LINE>Class<?<MASK><NEW_LINE>if (aClass == Long.class) {<NEW_LINE>actuallyType = MySQLFieldsType.FIELD_TYPE_LONG;<NEW_LINE>} else if (aClass == Byte.class) {<NEW_LINE>actuallyType = MySQLFields... | > aClass = value.getClass(); |
611,634 | public void deleteScheme(final WorkflowScheme scheme) throws DotDataException, DotSecurityException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>try {<NEW_LINE>// delete association of content types with the scheme<NEW_LINE>dc.setSQL(sql.DELETE_STRUCTS_FOR_SCHEME);<NEW_LINE>dc.addParam(scheme.getId());<NEW_LIN... | addParam(scheme.getId()); |
1,136,790 | public static void montecarlo(final int size) {<NEW_LINE>float[] output = new float[size];<NEW_LINE>float[] seq = new float[size];<NEW_LINE>TaskSchedule t0 = new TaskSchedule("s0").task("t0", Montecarlo::computeMontecarlo, output, size).streamOut(output);<NEW_LINE>long start = System.nanoTime();<NEW_LINE>t0.execute();<... | long tornadoTime = (end - start); |
1,488,556 | public void loadBuildings(boolean devMode) {<NEW_LINE>try {<NEW_LINE>Connections connections;<NEW_LINE>this.buildings = Api.getAllBuildings(devMode);<NEW_LINE>for (Building build : this.buildings.getBuildings()) {<NEW_LINE>// Get the building<NEW_LINE>if (build.getBuid().equals(BUILDING_ID)) {<NEW_LINE>System.out.print... | System.out.println("Reading fingerprints"); |
857,282 | public <C2, T, R> Higher<C2, Higher<Higher<Higher<Higher<rws, R1>, W>, S>, R>> traverseA(Applicative<C2> applicative, Function<? super T, ? extends Higher<C2, R>> fn, Higher<Higher<Higher<Higher<rws, R1>, W>, S>, T> ds) {<NEW_LINE>ReaderWriterState<R1, W, S, T> rws = narrowK(ds);<NEW_LINE>Higher<C2, R> x = rws.run(val1... | -> fn.apply(t)); |
1,313,760 | public void drawU(UGraphic ug) {<NEW_LINE>ug = ug.apply(UTranslate.dx(x));<NEW_LINE>final FtileGeometry geo1 = getFtile1(<MASK><NEW_LINE>if (geo1.hasPointOut() == false)<NEW_LINE>return;<NEW_LINE>Snake snake = Snake.create(skinParam(), arrowColor, Arrows.asToDown());<NEW_LINE>if (Display.isNull(label) == false)<NEW_LIN... | ).calculateDimension(getStringBounder()); |
1,249,299 | public void fire(ActionEvent event, ImageData<BufferedImage> imageData, DensityMapBuilder builder, String densityMapName) {<NEW_LINE>if (imageData == null || builder == null) {<NEW_LINE>Dialogs.showErrorMessage(title, "No density map is available!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>var densityMapServer = builder.b... | promptToSaveRawImage(imageData, densityMapServer, densityMapName); |
1,683,132 | private Table batchGetRow(String tableName, PrimaryKey[] pks, String[] colNames, Expression exp, Context ctx, String opt) {<NEW_LINE>MultiRowQueryCriteria criteria = new MultiRowQueryCriteria(tableName);<NEW_LINE>criteria.setMaxVersions(1);<NEW_LINE>for (PrimaryKey pk : pks) {<NEW_LINE>criteria.addRow(pk);<NEW_LINE>}<N... | reponse = client.batchGetRow(request); |
1,848,404 | public static int maxRectangleSubmatrix(List<List<Boolean>> A) {<NEW_LINE>// DP table stores (h, w) for each (i, j).<NEW_LINE>MaxHW[][] table = new MaxHW[A.size()][A.get<MASK><NEW_LINE>for (int i = A.size() - 1; i >= 0; --i) {<NEW_LINE>for (int j = A.get(i).size() - 1; j >= 0; --j) {<NEW_LINE>// Find the largest h such... | (0).size()]; |
1,247,091 | /*<NEW_LINE>* Compare lines in two steps:<NEW_LINE>* - compare ignoring "unimportant" lines<NEW_LINE>* - correct changes (compare all lines gaps between matched chunks)<NEW_LINE>*/<NEW_LINE>@Nonnull<NEW_LINE>private static FairDiffIterable compareSmart(@Nonnull List<Line> lines1, @Nonnull List<Line> lines2, @Nonnull ... | bigLines1 = getBigLines(lines1, threshold); |
259,730 | protected void executeSPARQLForHandler(String baseURI, TupleQueryResultHandler tqrh, String query, Dataset dataset, boolean includeInferred, BindingSet bindings, int maxQueryTime) throws QueryEvaluationException, TupleQueryResultHandlerException {<NEW_LINE>LinkedList<String> names = new LinkedList<String>();<NEW_LINE>t... | includeInferred, bindings, maxQueryTime, false); |
1,362,262 | private void updateSlidingViews(SlidingAccessor[] slidingModeAccessors) {<NEW_LINE>Map<SlidingView, SlidingAccessor> newViews = new <MASK><NEW_LINE>for (int i = 0; i < slidingModeAccessors.length; i++) {<NEW_LINE>SlidingAccessor sa = slidingModeAccessors[i];<NEW_LINE>SlidingView sv = (SlidingView) updateViewForAccessor... | HashMap<SlidingView, SlidingAccessor>(); |
1,491,572 | protected CaseDefinition findNewLatestCaseDefinitionAfterRemovalOf(CaseDefinition caseDefinitionToBeRemoved) {<NEW_LINE>// The case definition is not necessarily the one with 'version -1' (some versions could have been deleted)<NEW_LINE>// Hence, the following logic<NEW_LINE>CaseDefinitionQuery query <MASK><NEW_LINE>qu... | = getCaseDefinitionEntityManager().createCaseDefinitionQuery(); |
1,584,004 | public static int checkAndGetNewPrefixPartColCnt(int fullPartColCnt, int actualPartColCnt, int lastPartValColSize, int valPartColSize, String partName) {<NEW_LINE>int newPrefixPartColCnt = PartitionInfoUtil.FULL_PART_COL_COUNT;<NEW_LINE>// if (valPartColSize < actualPartColCnt) {<NEW_LINE>// throw new TddlRuntimeExcept... | ("the column count[%s] of bound values of partition %s is not allowed to be different", valPartColSize, partName)); |
397,857 | public void handleUnmatchedCloseElementEnd(final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) throws ParseException {<NEW_LINE>final String elementCompleteName = new String(buffer, nameOffset, nameLen);<NEW_LINE>final ElementDefinition elementDefinition = this.elementDefinition... | this.currentElementInnerWhiteSpaces.get(0); |
406,927 | public static NamesrvController createAndStartNamesrv() {<NEW_LINE>String baseDir = createTempDir();<NEW_LINE>Path kvConfigPath = Paths.get(baseDir, "namesrv", "kvConfig.json");<NEW_LINE>Path namesrvPath = Paths.get(baseDir, "namesrv", "namesrv.properties");<NEW_LINE>NamesrvConfig namesrvConfig = new NamesrvConfig();<N... | assertTrue(namesrvController.initialize()); |
1,209,739 | protected void doOKAction() {<NEW_LINE>if (myBlockTreeBuilder != null) {<NEW_LINE>Disposer.dispose(myBlockTreeBuilder);<NEW_LINE>}<NEW_LINE>final String text = myEditor.getDocument().getText();<NEW_LINE>myEditor.getSelectionModel().removeSelection();<NEW_LINE>myLastParsedText = text;<NEW_LINE>myLastParsedTextHashCode =... | blockNode = myPsiToBlockMap.get(rootPsi); |
981,135 | protected Condition parseConditionExpression(Element conditionExprElement, String ancestorElementId) {<NEW_LINE>String expression = conditionExprElement.getText().trim();<NEW_LINE>String type = conditionExprElement.attributeNS(XSI_NS, TYPE);<NEW_LINE>String language = conditionExprElement.attribute(PROPERTYNAME_LANGUAG... | : BpmnParser.BPMN20_NS + ":" + type; |
266,637 | public static List<String> dumpListens(final Repo repo, Path path) throws InterruptedException {<NEW_LINE>final List<PersistentConnection> conns = new ArrayList<PersistentConnection>(1);<NEW_LINE>final Semaphore semaphore = new Semaphore(0);<NEW_LINE>// we need to run this through our work queue to make the ordering wo... | (queryParamList.get(i)); |
1,156,924 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int amount = 0;<NEW_LINE>TargetControlledPermanent sacrificeLand = new TargetControlledPermanent(0, Integer.MAX_VALUE, ne... | controller.shuffleLibrary(source, game); |
924,361 | private void expand(@Nullable NavigationButton button) {<NEW_LINE>if (button == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>if (panel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!sidebarOpen) {<NEW_LINE>toggleSidebar();<NEW_LINE>}<NEW_LINE>int width = panel.getWrappedPanel().getPreferredS... | PluginPanel panel = button.getPanel(); |
1,234,979 | public CompletableFuture<InetSocketAddress> resolveAddr() {<NEW_LINE>if (resolvedAddrFuture.get() != null) {<NEW_LINE>return resolvedAddrFuture.get();<NEW_LINE>}<NEW_LINE>CompletableFuture<InetSocketAddress> promise = new CompletableFuture<>();<NEW_LINE>if (!resolvedAddrFuture.compareAndSet(null, promise)) {<NEW_LINE>r... | , uri.getPort())); |
1,593,007 | private ShipmentSchedule ofRecord(final I_M_ShipmentSchedule record) {<NEW_LINE>final OrgId orgId = OrgId.<MASK><NEW_LINE>final ShipmentScheduleId shipmentScheduleId = ShipmentScheduleId.ofRepoId(record.getM_ShipmentSchedule_ID());<NEW_LINE>final OrderAndLineId orderAndLineId = record.getC_Order_ID() > 0 && record.getC... | ofRepoId(record.getAD_Org_ID()); |
314,711 | public void execute(String commandName, ConsoleInput ci, List args) {<NEW_LINE>StatsWriterStreamer sws = StatsWriterFactory.createStreamer(ci.getCore());<NEW_LINE>String file = null;<NEW_LINE>if ((args != null) && (!args.isEmpty()))<NEW_LINE>file = (String) args.get(0);<NEW_LINE>if (file == null) {<NEW_LINE>try {<NEW_L... | "> Exception while trying to write xml stats:" + e.getMessage()); |
163,884 | public void weaveJarFile(String sourceJarFileName, String destJarFileName) throws IOException {<NEW_LINE>JarFile jarFile = new JarFile(sourceJarFileName);<NEW_LINE>ArrayList<JarEntry> entries = Collections.list(jarFile.entries());<NEW_LINE>OutputStream os = new FileOutputStream(destJarFileName);<NEW_LINE>JarOutputStrea... | write(buf, 0, len); |
1,104,670 | public void onBindHeaderViewHolder(HeaderViewHolder holder, int position) {<NEW_LINE>sortType = SharedPreferencesUtil.getInt(ConstantStrings.PREF_SORT_SPEAKER, SORTED_BY_NAME);<NEW_LINE>String speakerData;<NEW_LINE>if (sortType == SORTED_BY_NAME)<NEW_LINE>speakerData = Utils.nullToEmpty(getItem<MASK><NEW_LINE>else if (... | (position).getName()); |
1,654,724 | static boolean combineAnnotations(PathObjectHierarchy hierarchy, List<PathObject> pathObjects, RoiTools.CombineOp op) {<NEW_LINE>if (hierarchy == null || hierarchy.isEmpty() || pathObjects.isEmpty()) {<NEW_LINE>logger.warn("Combine annotations: Cannot combine - no annotations found");<NEW_LINE>return false;<NEW_LINE>}<... | pathObject = pathObjects.get(0); |
300,465 | public Message<?> toMessage(Object object, @Nullable MessageHeaders messageHeaders) {<NEW_LINE>Assert.isInstanceOf(Map.class, object, "This converter expects a Map");<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, ?> map = (Map<String, ?>) object;<NEW_LINE>Object payload = map.get("payload");<NEW_LINE>Ass... | getMessageBuilderFactory().withPayload(payload); |
1,722,541 | public <W, X> java.util.List<X> asList(W e) {<NEW_LINE>return new AbstractList<X>() {<NEW_LINE><NEW_LINE>T element = castTarget(e);<NEW_LINE><NEW_LINE>boolean hasValue = SingleHandler.this.getValue(element) != null;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int size() {<NEW_LINE>return hasValue ? 1 : 0;<NEW_LINE>}<N... | this.setValue(element, null); |
1,044,641 | // Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("SessionIn");<NEW_LINE>n = this.getSessionIn();<NEW_LINE>if (n != null)<NEW_LINE>// NOI18N<NE... | str.append(indent + "\tnull"); |
1,083,338 | default void georeMelting(Consumer<FinishedRecipe> consumer, Fluid fluid, int unit, String name, String folder) {<NEW_LINE>// base<NEW_LINE>tagMelting(consumer, fluid, unit, "geore_shards/" + name, 1.0f, folder + "geore/shard", true);<NEW_LINE>tagMelting(consumer, fluid, unit * 4, "geore_blocks/" + name, 2.0f, folder +... | 1.0f, folder + "geore/bud_small", true); |
547,993 | private void configureSettings(HashLookupSettings settings, Set<String> officialSetNames) {<NEW_LINE>allDatabasesLoadedCorrectly = true;<NEW_LINE>List<HashDbInfo> hashDbInfoList = settings.getHashDbInfo();<NEW_LINE><MASK><NEW_LINE>for (HashDbInfo hashDbInfo : hashDbInfoList) {<NEW_LINE>configureLocalDb(hashDbInfo);<NEW... | hashDbInfoList = handleNameConflict(hashDbInfoList, officialSetNames); |
1,117,725 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,338,594 | public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>Bundlers bundlers = Bundlers.createBundlersInstance();<NEW_LINE>getLog().info("Available bundlers:");<NEW_LINE>getLog().info("-------------------");<NEW_LINE>Map<String, ? super Object> dummyParams = new HashMap<>();<NEW_LINE>bundlers.... | "ID: " + bundler.getID()); |
1,533,882 | final DescribePolicyResult executeDescribePolicy(DescribePolicyRequest describePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DescribePol... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,217,528 | public void copyTo(HugeLongArray dest, long length) {<NEW_LINE>if (length > size) {<NEW_LINE>length = size;<NEW_LINE>}<NEW_LINE>if (length > dest.size()) {<NEW_LINE>length = dest.size();<NEW_LINE>}<NEW_LINE>if (dest instanceof SingleHugeLongArray) {<NEW_LINE>SingleHugeLongArray dst = (SingleHugeLongArray) dest;<NEW_LIN... | toCopy, dstPage.length, 0L); |
354,392 | private void initViewFooter() {<NEW_LINE>String creation = DateHelper.getFormattedDate(noteTmp.getCreation(), Prefs.getBoolean(PREF_PRETTIFIED_DATES, true));<NEW_LINE>binding.creation.append(creation.length() > 0 ? getString(R.string.creation<MASK><NEW_LINE>if (binding.creation.getText().length() == 0) {<NEW_LINE>bindi... | ) + " " + creation : ""); |
729,781 | final ModifyReplicationInstanceResult executeModifyReplicationInstance(ModifyReplicationInstanceRequest modifyReplicationInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyReplicationInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | (super.beforeMarshalling(modifyReplicationInstanceRequest)); |
1,214,824 | public void updateTime() {<NEW_LINE>byte[] payload = new byte[TIME_INFO_PAYLOAD_LEN];<NEW_LINE>byte tmp;<NEW_LINE>Calendar now = new GregorianCalendar(tz);<NEW_LINE>payload[0] = (byte) (now.get<MASK><NEW_LINE>payload[1] = (byte) now.get(Calendar.DAY_OF_MONTH);<NEW_LINE>// TODO ?? can set<NEW_LINE>payload[2] = (byte) no... | (Calendar.YEAR) - 2000); |
1,566,795 | final DescribeRepositoryResult executeDescribeRepository(DescribeRepositoryRequest describeRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
68,740 | public void keyPressed(java.awt.event.KeyEvent e) {<NEW_LINE>if (changingPage)<NEW_LINE>return;<NEW_LINE>int deltaPage = 0;<NEW_LINE>int keyCode = e.getKeyCode();<NEW_LINE>if (keyCode == java.awt.event.KeyEvent.VK_PAGE_DOWN) {<NEW_LINE>deltaPage = documentView.getPreviousPageIncrement();<NEW_LINE>} else if (keyCode == ... | = controller.getCurrentPageNumber() + deltaPage; |
1,207,410 | public static ClassNode correctToGenericsSpec(Map<String, ClassNode> genericsSpec, ClassNode type) {<NEW_LINE>if (type.isArray()) {<NEW_LINE>return correctToGenericsSpec(genericsSpec, type.<MASK><NEW_LINE>}<NEW_LINE>if (type.isGenericsPlaceHolder() && type.getGenericsTypes() != null) {<NEW_LINE>String name = type.getGe... | getComponentType()).makeArray(); |
31,568 | public void processMouseWheelEvent(@Nonnull MouseWheelEvent e, @Nullable Consumer<MouseWheelEvent> alternative) {<NEW_LINE>JScrollBar bar = !myScrollEnabled.get(<MASK><NEW_LINE>if (bar == null) {<NEW_LINE>if (alternative != null)<NEW_LINE>alternative.accept(e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (TouchScrollUtil.i... | ) ? null : getEventScrollBar(e); |
570,035 | private boolean isClusterWideMigrationPossible(Host host, List<VMInstanceVO> vms, List<HostVO> hosts) {<NEW_LINE>if (MIGRATE_VM_ACROSS_CLUSTERS.valueIn(host.getDataCenterId())) {<NEW_LINE>s_logger.info("Looking for hosts across different clusters in zone: " + host.getDataCenterId());<NEW_LINE>Long podId = null;<NEW_LIN... | .format("VM %s cannot be migrated across cluster as it has volumes on cluster-wide pool", vm)); |
477,757 | // Bermudan or European<NEW_LINE>private AdjustableDate selectStandard(LocalDate proposedExerciseDate, DateAdjuster adjuster) {<NEW_LINE>AdjustableDates dates = calculateDates();<NEW_LINE>// search adjusted dates<NEW_LINE>for (LocalDate unadjusted : dates.getUnadjusted()) {<NEW_LINE>if (adjuster.adjust(unadjusted).equa... | ) : AdjustableDate.of(proposedExerciseDate); |
85,505 | static ClusterState deleteModelAlias(final ClusterState currentState, final IngestService ingestService, final InferenceAuditor inferenceAuditor, final DeleteTrainedModelAliasAction.Request request) {<NEW_LINE>final ModelAliasMetadata currentMetadata = ModelAliasMetadata.fromState(currentState);<NEW_LINE>final String r... | , request.getModelAlias())); |
1,690,427 | private void sendScreenNotification(String message, String detail) {<NEW_LINE>Context context = mContext;<NEW_LINE>if (context == null) {<NEW_LINE>LogManager.e(TAG, "congtext is unexpectedly null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>initializeWithContext(context);<NEW_LINE>if (this.mNotificationsEnabled) {<NEW_LINE>... | stackBuilder = TaskStackBuilder.create(context); |
1,790,258 | private String generateRedirectURI(Map<DefDescriptor<?>, String> descriptors, String computedUID, HttpServletRequest request) {<NEW_LINE>StringBuilder redirectURI = new StringBuilder(URI_DEFINITIONS_PATH);<NEW_LINE>// note, keep parameters in alpha order and keep in sync with componentDefLoader.js to increase chances o... | append(configAdapter.isLockerServiceEnabled()); |
221,742 | final DescribeSavingsPlansOfferingsResult executeDescribeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest describeSavingsPlansOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeSavingsPlansOfferingsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,348,881 | public void onCheckedChanged(CompoundButton _param1, boolean _param2) {<NEW_LINE>final boolean _isChecked = _param2;<NEW_LINE>try {<NEW_LINE>if (_isChecked) {<NEW_LINE>try {<NEW_LINE>version_switch_01.setChecked(false);<NEW_LINE>version_switch_02.setChecked(false);<NEW_LINE>list_changelogs.setVisibility(View.VISIBLE);<... | android.R.anim.slide_in_left); |
1,083,298 | private static void tryAssertionSubqueryNW(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString", "intPrimitive", "val0" };<NEW_LINE>env.sendEventBean(new SupportBean_S0(10, "s1"));<NEW_LINE>env.sendEventBean(new SupportBean("G1", 10));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[]... | new SupportBean("G1", 20)); |
1,115,710 | public com.amazonaws.services.config.model.RemediationInProgressException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.config.model.RemediationInProgressException remediationInProgressException = new com.amazonaws.services.config.model.RemediationInProgressEx... | String currentParentElement = context.getCurrentParentElement(); |
1,711,611 | private String parse(String text, PO po) {<NEW_LINE>if (text == null)<NEW_LINE>return "";<NEW_LINE>if (text.indexOf('@') == -1)<NEW_LINE>return text;<NEW_LINE>String inStr = text;<NEW_LINE>String token;<NEW_LINE>StringBuffer outStr = new StringBuffer();<NEW_LINE>int i = inStr.indexOf('@');<NEW_LINE>while (i != -1) {<NE... | = new StringTokenizer(token, "."); |
256,001 | public AwsEc2NetworkInterfaceSecurityGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsEc2NetworkInterfaceSecurityGroup awsEc2NetworkInterfaceSecurityGroup = new AwsEc2NetworkInterfaceSecurityGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle... | JsonToken token = context.getCurrentToken(); |
1,755,810 | public void onMessage(Session session, String message) {<NEW_LINE>if (!session.equals(this.session)) {<NEW_LINE>handleWrongSession(session, message);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.<MASK><NEW_LINE>try {<NEW_LINE>DeconzBaseMessage changedMessage = Objects.requireNonNull(gson.fromJson(message, DeconzBaseMess... | trace("{} received raw data: {}", socketName, message); |
476,629 | public DruidFilter deserialize(JsonParser jp, DeserializationContext context) throws IOException {<NEW_LINE>ObjectMapper mapper = (ObjectMapper) jp.getCodec();<NEW_LINE>ObjectNode root = mapper.readTree(jp);<NEW_LINE>boolean filterKnowsItsType = root.has("type");<NEW_LINE>if (filterKnowsItsType) {<NEW_LINE>DruidCompare... | toString(), DruidAndFilter.class); |
1,678,513 | final ReadPresetResult executeReadPreset(ReadPresetRequest readPresetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(readPresetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,745,737 | public void adjust(ByteBuf dataBuf, int numInputs, int numOutputs) {<NEW_LINE>// used to accumulate the updates for input vectors<NEW_LINE>float[] neu1e = new float[dim];<NEW_LINE>float[] inputUpdates = new float[numInputs * dim];<NEW_LINE>Int2IntOpenHashMap inputIndex = new Int2IntOpenHashMap();<NEW_LINE>Int2IntOpenHa... | = entry.getIntValue() * dim; |
1,807,130 | public void marshall(DocumentVersionMetadata documentVersionMetadata, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (documentVersionMetadata == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(documentVersion... | documentVersionMetadata.getModifiedTimestamp(), MODIFIEDTIMESTAMP_BINDING); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.