idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,696,624 | private void initPermissionControls(MultiplePermissionTarget item, GridLayout editGrid) {<NEW_LINE>int i = 0;<NEW_LINE>MetaClass metaClass = item.getEntityMetaClass();<NEW_LINE>for (AttributeTarget target : item.getPermissions()) {<NEW_LINE>if (!userSession.isEntityAttrPermitted(metaClass, target.getId(), EntityAttrAcc... | getModifyCheckBox(), 1, gridRow); |
393,077 | public void open() {<NEW_LINE>// create custom formatters<NEW_LINE>// (switch display of log level, source class, and source method ON or OFF)<NEW_LINE><MASK><NEW_LINE>MigrateLogger_Formatter warningFormatter = new MigrateLogger_Formatter(false);<NEW_LINE>MigrateLogger_Formatter errorFormatter = new MigrateLogger_Forma... | MigrateLogger_Formatter traceFormatter = new MigrateLogger_Formatter(true); |
1,484,409 | public boolean postProcessKeyEvent(KeyEvent e) {<NEW_LINE>boolean consumed = false;<NEW_LINE>if (e.getKeyChar() == codes[index] && e.getID() == KeyEvent.KEY_TYPED && file != null) {<NEW_LINE>try {<NEW_LINE>int cents = (Integer) centsSpinner[index].getValue();<NEW_LINE>double duration = (Double) durationSpinner[index].g... | out.println("Saving to " + filename); |
1,189,079 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response deleteContentTypeFieldByVar(@PathParam("typeIdOrVarName") final String typeIdOrVarName, @PathParam("fieldVar") final String fieldVar, @Context final HttpServletRequest httpServletRequest, @Cont... | User user = initData.getUser(); |
841,586 | protected void saveContext(SecurityContext context) {<NEW_LINE>if (isTransient(context)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Authentication authentication = context.getAuthentication();<NEW_LINE>if (isTransient(authentication)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HttpSession httpSession = this.request.getSe... | this.logger.debug("Did not store empty SecurityContext"); |
132,941 | private void createAnnotationControls(final Composite parent) {<NEW_LINE>final int nColumns = 4;<NEW_LINE>Composite composite = new Composite(parent, SWT.NONE);<NEW_LINE>composite.setData("TypeKind", "@interface");<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = nColumns;<NEW_LINE>composite.... | NewWizardMessages.NewTypeWizardPage_modifiers_protected, Flags.AccProtected); |
689,009 | public String composeUrl(String endpoint, Map<String, String> queries) throws UnsupportedEncodingException {<NEW_LINE>Map<String, String> mapQueries = (queries == null) ? this.getSysQueryParameters() : queries;<NEW_LINE>StringBuilder urlBuilder = new StringBuilder("");<NEW_LINE>urlBuilder.append(this.getSysProtocol().t... | append(query).toString(); |
1,795,874 | private void tryMultiPlace(BlockPlaceContext ctx) {<NEW_LINE>Player player = ctx.getPlayer();<NEW_LINE>if (player == null)<NEW_LINE>return;<NEW_LINE>if (player.isSteppingCarefully())<NEW_LINE>return;<NEW_LINE>Direction face = ctx.getClickedFace();<NEW_LINE>ItemStack stack = ctx.getItemInHand();<NEW_LINE>Level world = c... | blockState = world.getBlockState(offsetPos); |
924,779 | public void generate() {<NEW_LINE>FileTree inputDataSchemaFiles = getSuffixedFiles(getProject(), _inputDir, PegasusPlugin.DATA_TEMPLATE_FILE_SUFFIXES);<NEW_LINE>List<String> inputDataSchemaFilenames = StreamSupport.stream(inputDataSchemaFiles.spliterator(), false).map(File::getPath).collect(Collectors.toList());<NEW_LI... | javaExecSpec.args("--resolverPath", resolverPathArg); |
1,014,933 | public void marshall(PutAlarmRequest putAlarmRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (putAlarmRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(putAlarmRequest.getAlarmName(), ALARMNA... | putAlarmRequest.getMetricName(), METRICNAME_BINDING); |
523,875 | public void consume(final ConsumerRecord<String, GenericRecord> consumerRecord) {<NEW_LINE>log.info("Consuming a Platform Event");<NEW_LINE>kafkaLagStats.update(System.currentTimeMillis() - consumerRecord.timestamp());<NEW_LINE>final GenericRecord record = consumerRecord.value();<NEW_LINE>log.debug("Got Generic PE on t... | "Message: {}", record.toString()); |
1,006,172 | private static void validate(int maxCache, long quickPendMin, long quickPendMax, long slowPendMin, long slowPendMax) throws IllegalArgumentException {<NEW_LINE>if (maxCache == 0) {<NEW_LINE>throw new IllegalArgumentException("Max cache cannot be zero.");<NEW_LINE>}<NEW_LINE>if ((quickPendMin == 0) || (quickPendMax == 0... | IllegalArgumentException("Minimum slow pend duration [ " + slowPendMin + " ] must be positive"); |
869,942 | private boolean isValidPublicClient(HttpServletResponse response, String password, OidcOAuth20ClientProvider clientProvider, ClientAuthnData data, EndpointType endpointType, String grantType, String authScheme) throws OidcServerException, ClientAuthenticationDataException {<NEW_LINE>boolean isClientAuthenticationDataVa... | data.getUserName(), password); |
1,597,204 | public String acquireGuestIpv6Address(Network network, String requestedIpv6) throws InsufficientAddressCapacityException {<NEW_LINE>if (!_networkModel.areThereIPv6AddressAvailableInNetwork(network.getId())) {<NEW_LINE>throw new InsufficientAddressCapacityException(String.format("There is no IPv6 address available in th... | class, network.getDataCenterId()); |
150,685 | void onMouseMoveDragging(Point dragStart, int diffX, int diffY, GridElement draggedGridElement, boolean isShiftKeyDown, boolean isCtrlKeyDown, boolean firstDrag, boolean isMiddleMouseButton) {<NEW_LINE>if (diffX != 0 || diffY != 0) {<NEW_LINE>cursorWasMovedDuringDrag = true;<NEW_LINE>}<NEW_LINE>if (firstDrag && dragged... | <GridElement>emptyList())); |
1,771,632 | private ComplexEventChunk<StreamEvent> createAggregateSelectionEventChunk(ComplexEventChunk<StreamEvent> complexEventChunkToHoldMatches, List<ExpressionExecutor> outputExpressionExecutors) {<NEW_LINE>ComplexEventChunk<StreamEvent> <MASK><NEW_LINE>StreamEvent resetEvent = streamEventFactoryForTableMeta.newInstance();<NE... | aggregateSelectionComplexEventChunk = new ComplexEventChunk<>(); |
913,546 | public void readFields(DataInput in) throws IOException {<NEW_LINE>super.readFields(in);<NEW_LINE>String <MASK><NEW_LINE>JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();<NEW_LINE>db = jsonObject.getAsJsonPrimitive(JSON_KEY_HUDI_DB).getAsString();<NEW_LINE>table = jsonObject.getAsJsonPrimitive(JSO... | json = Text.readString(in); |
1,264,989 | protected void taskOnceLoop() {<NEW_LINE>try {<NEW_LINE>WeEvent event = this.eventQueue.poll(this.idleTime, TimeUnit.MILLISECONDS);<NEW_LINE>// empty queue, try next.<NEW_LINE>if (event == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.debug("poll from notify queue, event: {}", event);<NEW_LINE>// avoid duplicate wit... | onEvent(this.subscriptionId, event); |
1,328,356 | protected JSDynamicObject arrayFromArrayLike(Object thisObj, Object items, Object mapFn, Object thisArg, boolean mapping, boolean setLength) {<NEW_LINE>long len = getSourceLength(items);<NEW_LINE>JSDynamicObject obj = constructOrArray(thisObj, len, true);<NEW_LINE>long k = 0;<NEW_LINE>while (k < len) {<NEW_LINE>Object ... | .fromLong(k), mapped); |
638,864 | public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>_configs = _configDao.getConfiguration("Network", params);<NEW_LINE>_allowSubdomainNetworkAccess = Boolean.valueOf(_configs.get(Config.SubDomainNetworkAccess.key()));<NEW_LINE>_executeInSequenceNtwkElmtCmd = Boole... | > virtualNetworkVlanSB = _vlanDao.createSearchBuilder(); |
794,051 | public static Query<NavigableMap<Long, Integer>> uniquePlayerCounts(long after, long before, long timeZoneOffset, ServerUUID serverUUID) {<NEW_LINE>return database -> {<NEW_LINE>Sql sql = database.getSql();<NEW_LINE>String selectUniquePlayersPerDay = SELECT + sql.dateToEpochSecond(sql.dateToDayStamp(sql.epochSecondToDa... | .SERVER_UUID + "=?" + GROUP_BY + "date"; |
692,553 | public void exitWccp_id(Wccp_idContext ctx) {<NEW_LINE>if (ctx.group_list != null) {<NEW_LINE>String name = ctx.group_list.getText();<NEW_LINE>int line = ctx.group_list.getStart().getLine();<NEW_LINE>_configuration.referenceStructure(IP_ACCESS_LIST, name, WCCP_GROUP_LIST, line);<NEW_LINE>}<NEW_LINE>if (ctx.redirect_lis... | .getStart().getLine(); |
1,772,039 | private void createEntry(MouseEvent evt) {<NEW_LINE>if (evt.getButton().equals(MouseButton.PRIMARY) && evt.getClickCount() == 2) {<NEW_LINE>LoggingDomain.VIEW.fine("create entry mouse event received inside control: " + dateControl.getClass().getSimpleName());<NEW_LINE>ZonedDateTime time = ZonedDateTime.now();<NEW_LINE>... | (Messages.getString("DateControl.HEADER_TEXT_NO_CALENDARS_DEFINED")); |
108,400 | private void createGUIComponents(final VisualizationViewer<V, E> viewer, SatelliteGraphViewer<V, E> satellite) {<NEW_LINE>installCommonListeners(viewer, satellite);<NEW_LINE>// add our panels...<NEW_LINE>mainPanel = new JPanel(new BorderLayout());<NEW_LINE>layeredPane = new JLayeredPane() {<NEW_LINE><NEW_LINE>@Override... | layeredPane.add(showUndockedSatelliteButton, SATELLITE_PROVIDER_BUTTON_LAYER); |
19,878 | private void checkHeartBeat(Session session) {<NEW_LINE>if (this.enableHeartBeat) {<NEW_LINE>log.debug("Check session ({}) is alive,send heartbeat", session.getRemoteSocketAddress() == null ? "unknown" : SystemUtils.getRawAddress(session.getRemoteSocketAddress()) + ":" + session.getRemoteSocketAddress().getPort());<NEW... | latch, session.getRemoteSocketAddress()); |
594,395 | private DatabaseSet readDatabaseSet(Node databaseSetNode) throws Exception {<NEW_LINE>checkAttribte(databaseSetNode, NAME, PROVIDER, SHARD_STRATEGY, SHARDING_STRATEGY);<NEW_LINE>String shardingStrategy = "";<NEW_LINE>if (hasAttribute(databaseSetNode, SHARD_STRATEGY))<NEW_LINE>shardingStrategy = getAttribute(databaseSet... | databaseList = getChildNodes(databaseSetNode, ADD); |
636,278 | private AwsServiceException unmarshall(SdkHttpFullResponse response, ExecutionAttributes executionAttributes) {<NEW_LINE>JsonContent jsonContent = JsonContent.createJsonContent(response, jsonFactory);<NEW_LINE>String errorCode = errorCodeParser.parseErrorCode(response, jsonContent);<NEW_LINE>Optional<ExceptionMetadata>... | (response.headers())); |
1,509,405 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (sourceObject != null && controller != null) {<NEW_LINE>ChoiceImpl choices = new ChoiceImpl(true);<NEW_LINE>choices.setMes... | ": chosen token type is " + choices.getChoice()); |
343,363 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreateView(inflater, container, savedInstanceState);<NEW_LINE>View layout = inflater.inflate(R.layout.feeditem_pager_fragment, container, false);<NEW_LINE>toolbar = layout.fi... | getArguments().getInt(ARG_FEEDITEM_POS); |
1,645,274 | private void focusNextYear(int years) {<NEW_LINE>if (focusedDate == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Date nextYearDate = <MASK><NEW_LINE>nextYearDate.setYear(nextYearDate.getYear() + years);<NEW_LINE>// Do not focus if not inside range<NEW_LINE>if (!isDateInsideRange(nextYearDate, getResolution(this::isYear... | (Date) focusedDate.clone(); |
1,320,109 | // auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>@java.lang.Override<NEW_LINE>public void visitCtCompilationUnit(spoon.reflect.declaration.CtCompilationUnit compilationUnit) {<NEW_LINE>spoon.reflect.declaration.CtCompilationUnit aCtCompilationUnit = compilationUnit.getFactory().Core().createCompil... | (compilationUnit.getImports())); |
1,618,942 | CompletableFuture<Void> completeJob(MasterContext masterContext, Throwable error, long completionTime) {<NEW_LINE>return submitToCoordinatorThread(() -> {<NEW_LINE>// the order of operations is important.<NEW_LINE>List<RawJobMetrics> jobMetrics = masterContext.jobConfig().isStoreMetricsAfterJobCompletion() ? masterCont... | jobCompletedSuccessfully : jobCompletedWithFailure).inc(); |
658,937 | protected void onAuthenticated(@Nullable Bundle savedInstanceState) {<NEW_LINE>setContentView(R.layout.activity_sys_config);<NEW_LINE>setSupportActionBar(findViewById(R.id.toolbar));<NEW_LINE>AppCompatSpinner spinner = findViewById(R.id.spinner);<NEW_LINE>// Make spinner the first item to focus on<NEW_LINE>spinner.requ... | R.id.text1, sysConfigTypes); |
547,240 | public boolean remove(final OAtomicOperation atomicOperation, Object key, ORID value) {<NEW_LINE>try {<NEW_LINE>if (mvTree != null) {<NEW_LINE>return mvTree.remove(atomicOperation, key, value);<NEW_LINE>} else {<NEW_LINE>if (key != null) {<NEW_LINE>assert svTree != null;<NEW_LINE>final OCompositeKey compositeKey = crea... | + value + ")"), e); |
800,929 | public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement psiElement) throws IncorrectOperationException {<NEW_LINE>PhpClass phpClass = PsiTreeUtil.getParentOfType(psiElement, PhpClass.class);<NEW_LINE>if (phpClass == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<String> serviceNames = Containe... | .findServiceDefinitions(project, serviceName)); |
1,707,495 | private static Integer parseAcknowledgeMode(Element ele, ParserContext parserContext) {<NEW_LINE>String <MASK><NEW_LINE>if (StringUtils.hasText(acknowledge)) {<NEW_LINE>int acknowledgeMode = Session.AUTO_ACKNOWLEDGE;<NEW_LINE>if ("transacted".equals(acknowledge)) {<NEW_LINE>acknowledgeMode = Session.SESSION_TRANSACTED;... | acknowledge = ele.getAttribute(ACKNOWLEDGE_ATTRIBUTE); |
1,155,558 | public void marshall(CreateCloudFormationChangeSetRequest createCloudFormationChangeSetRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createCloudFormationChangeSetRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot... | createCloudFormationChangeSetRequest.getRollbackConfiguration(), ROLLBACKCONFIGURATION_BINDING); |
1,735,638 | public static Element buildKeyInfoElement(String keyName, String pemEncodedCertificate) throws javax.xml.parsers.ParserConfigurationException {<NEW_LINE>DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder db = dbf.newDocumentBuilder();<NEW_LINE>Document doc = db.newDocument();<NE... | XMLDSIG_NSURI.get(), "ds:X509Data"); |
782,208 | private <T> NamedStructureEquivalenceSets<T> processStructures(Class<T> structureClass, Set<String> hostnames, Map<String, Configuration> configurations, Function<Configuration, Map<String, T>> structureMapRetriever, Function<T, String> definitionJsonifier) {<NEW_LINE>String structureClassName = structureClass.getSimpl... | collect(ImmutableSet.toImmutableSet()); |
15,681 | public com.amazonaws.services.memorydb.model.ParameterGroupNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.memorydb.model.ParameterGroupNotFoundException parameterGroupNotFoundException = new com.amazonaws.services.memorydb.model.ParameterGroup... | int originalDepth = context.getCurrentDepth(); |
1,494,039 | void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>// We check if the model identifier value is within the range of a 16-bit value here. If it is then it is a sigmodel<NEW_LINE>final byte[] elementAddress = MeshAddress.addressIntToBytes(this.elementAddress);<NEW_LINE>final byte[] subscr... | .putShort((short) mModelIdentifier); |
842,856 | public void addField(final VEditor fieldEditor) {<NEW_LINE>final GridField gridField = fieldEditor.getField();<NEW_LINE>//<NEW_LINE>// Special case: Field which is an Included tab placeholder<NEW_LINE>final int AD_Tab_ID = gridField.getIncluded_Tab_ID();<NEW_LINE>if (AD_Tab_ID > 0) {<NEW_LINE>// Create the included tab... | final VPanelFieldGroup previousFieldGroupPanel = getPreviousFieldGroupPanel(fieldGroup); |
601,739 | public FileStatus[] listStatus(Path f) throws FileNotFoundException, IOException {<NEW_LINE>statistics.incrementReadOps(1);<NEW_LINE>int bufsize = 32 << 10;<NEW_LINE>// TODO: smaller buff<NEW_LINE>Pointer buf = Memory.allocate(Runtime.getRuntime(lib), bufsize);<NEW_LINE>String path = normalizePath(f);<NEW_LINE>int r = ... | [] { getFileStatus(f) }; |
1,560,067 | public static URL buildDirtyPluginUrl(String dirtyType, String localPath, String remotePath, String pluginLoadMode) throws Exception {<NEW_LINE>if (Objects.isNull(dirtyType)) {<NEW_LINE>dirtyType = DirtyConsumerFactory.DEFAULT_DIRTY_TYPE;<NEW_LINE>}<NEW_LINE>String prefix = String.format("dirtyConsumer-%s", dirtyType.t... | = remotePath == null ? localPath : remotePath; |
353,038 | public static ListPoliciesResponse unmarshall(ListPoliciesResponse listPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPoliciesResponse.setRequestId(_ctx.stringValue("ListPoliciesResponse.RequestId"));<NEW_LINE>listPoliciesResponse.setTotalCount(_ctx.integerValue("ListPoliciesResponse.TotalCount"));<NEW_LINE... | (_ctx.integerValue("ListPoliciesResponse.PageNumber")); |
573,968 | public Map<?, ?> toConfigMap() {<NEW_LINE>// Using LinkedHashMap to keep the props in order when written into the config file.<NEW_LINE>Map<String, Object> configMap = new LinkedHashMap<>();<NEW_LINE>configMap.put(GROUP_ID_KEY, libraryKey.getGroupId());<NEW_LINE>configMap.put(<MASK><NEW_LINE>configMap.put(VERSION_KEY, ... | ARTIFACT_ID_KEY, libraryKey.getArtifactId()); |
221,502 | public Matrix4x3d lerp(Matrix4x3dc other, double t, Matrix4x3d dest) {<NEW_LINE>dest.m00 = Math.fma(other.m00(<MASK><NEW_LINE>dest.m01 = Math.fma(other.m01() - m01, t, m01);<NEW_LINE>dest.m02 = Math.fma(other.m02() - m02, t, m02);<NEW_LINE>dest.m10 = Math.fma(other.m10() - m10, t, m10);<NEW_LINE>dest.m11 = Math.fma(oth... | ) - m00, t, m00); |
336,256 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>emc.beginTransaction(V... | CacheManager.notify(View.class); |
49,309 | public Request<StopTrainingEntityRecognizerRequest> marshall(StopTrainingEntityRecognizerRequest stopTrainingEntityRecognizerRequest) {<NEW_LINE>if (stopTrainingEntityRecognizerRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(StopTrainingEntityRecognizerRequest)");<NEW_LI... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
1,155,323 | private void extractCandies(Map<File, CandyDescriptor> candies) throws IOException {<NEW_LINE>File extractedSourcesDir = candiesSourceDir;<NEW_LINE>File extractedTsDefsDir = candiesTsdefsDir;<NEW_LINE>FileUtils.deleteQuietly(extractedSourcesDir);<NEW_LINE>FileUtils.deleteQuietly(extractedTsDefsDir);<NEW_LINE>extractedS... | isCore = "jsweet-core".equals(candyName); |
1,540,832 | public void load(InputStream inputStream) {<NEW_LINE>try {<NEW_LINE>FileDescriptorSet descriptorSet = FileDescriptorSet.parseFrom(inputStream);<NEW_LINE>List<FileDescriptorProto> fileList = descriptorSet.getFileList();<NEW_LINE>FileDescriptorProto fileDescriptorProto = fileList.get(0);<NEW_LINE>FileDescriptor[] depende... | LOGGER.error("", e); |
1,063,499 | private void loadWorlds() {<NEW_LINE>File f = new File(core.getDataFolder(), "forgeworlds.yml");<NEW_LINE>if (f.canRead() == false) {<NEW_LINE>useSaveFolder = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConfigurationNode cn = new ConfigurationNode(f);<NEW_LINE>cn.load();<NEW_LINE>// If defined, use maxWorldHeight<NEW_LI... | fw.getName(), fw); |
582,224 | public void createMenuItems(final Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>pointType = PointType.valueOf(args.getString(POINT_TYPE_KEY));<NEW_LINE>}<NEW_LINE>if (savedInstanceState != null && savedInstanceState.getBoolean(IS_SORTED)) {<NEW_LINE>sortByDist... | layout.bottom_sheet_item_title_with_descr_and_button).create(); |
545,433 | protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>String repoId = getArguments().getString(BundleConstant.ID);<NEW_LINE>String login = getArguments(<MASK><NEW_LINE>if (login == null || repoId == null)<NEW_LINE>throw new NullPointerException("repoId || login is null???"... | ).getString(BundleConstant.EXTRA); |
895,270 | private String createCrashLog(CrashReportData report, ReportBuilder reportBuilder) {<NEW_LINE>ArrayList<AbstractLog> logs = new ArrayList<>();<NEW_LINE>ErrorLog errorLog = new ErrorLog(report.getString(ReportField.REPORT_ID));<NEW_LINE>errorLog.appLaunchTimestamp = report.getString(ReportField.USER_APP_START_DATE);<NEW... | report.getString(ReportField.USER_CRASH_DATE); |
1,627,338 | public static DescribeScheduledTasksResponse unmarshall(DescribeScheduledTasksResponse describeScheduledTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScheduledTasksResponse.setRequestId(_ctx.stringValue("DescribeScheduledTasksResponse.RequestId"));<NEW_LINE>describeScheduledTasksResponse.setTotalCount(_ct... | = new ArrayList<ScheduledTask>(); |
199,026 | private RoutingAlgorithm createAlgo(GraphHopper hopper) {<NEW_LINE>Profile profile = hopper.getProfiles()<MASK><NEW_LINE>if (useCH) {<NEW_LINE>RoutingCHGraph chGraph = hopper.getCHGraphs().get(profile.getName());<NEW_LINE>logger.info("CH algo, profile: " + profile.getName());<NEW_LINE>QueryGraph qGraph = QueryGraph.cre... | .iterator().next(); |
1,809,269 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,672,859 | public static <T1, T2, T3, T4, T5, T6, T7, T8> Predicate8<T1, T2, T3, T4, T5, T6, T7, T8> eight(Predicate<? super T1> p1, Predicate<? super T2> p2, Predicate<? super T3> p3, Predicate<? super T4> p4, Predicate<? super T5> p5, Predicate<? super T6> p6, Predicate<? super T7> p7, Predicate<? super T8> p8) {<NEW_LINE>retur... | ) && p8.test(h); |
1,083,454 | public static DescribeApplicationGroupsResponse unmarshall(DescribeApplicationGroupsResponse describeApplicationGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeApplicationGroupsResponse.setRequestId(_ctx.stringValue("DescribeApplicationGroupsResponse.RequestId"));<NEW_LINE>describeApplicationGroupsResponse... | ("DescribeApplicationGroupsResponse.Data[" + i + "].GroupType")); |
1,260,626 | private static void fillTable() {<NEW_LINE>hotKeys.clear();<NEW_LINE>hotKeys.add(makeTitle("Graph"));<NEW_LINE>loadKeys(HotKeys.graphHotKeys);<NEW_LINE>hotKeys.add(makeTitle("Graph Misc"));<NEW_LINE>hotKeys.add(new Object[] { "Alt-Right Click", "Opens instruction comments dialog when clicking on an instruction" });<NEW... | [] { "CTRL-DOUBLE-LEFTCLICK", "Opens function when clicking on function calls in code nodes" }); |
327,277 | private boolean tryUpdateClasspath(IPath triggerFile, IPath rootPath) {<NEW_LINE>IProject invisibleProject = null;<NEW_LINE>try {<NEW_LINE>invisibleProject = ProjectUtils.createInvisibleProjectIfNotExist(rootPath);<NEW_LINE>} catch (OperationCanceledException | CoreException ex) {<NEW_LINE>JavaLanguageServerPlugin.logE... | relativeSourcePath = sourcePath.makeRelativeTo(rootPath); |
712,508 | public ViewHolderShareContacts onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>Display display = ((Activity) mContext).getWindowManager().getDefaultDisplay();<NEW_LINE>DisplayMetrics outMetrics ... | .setMaxWidthEmojis((int) width); |
410,259 | public void onClick(DialogInterface dialog, int _which) {<NEW_LINE>String <MASK><NEW_LINE>StringBuilder sb = new StringBuilder(text);<NEW_LINE>sb.insert(0, "\r\n");<NEW_LINE>sb.insert(0, String.format("Id: %s\r\n", Build.ID));<NEW_LINE>sb.insert(0, String.format("Display: %s\r\n", Build.DISPLAY));<NEW_LINE>sb.insert(0,... | ourVersion = Util.getSelfVersionName(context); |
883,838 | public static int mulAddTo(int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) {<NEW_LINE>long y_0 = y[yOff + 0] & M;<NEW_LINE>long y_1 = y[yOff + 1] & M;<NEW_LINE>long y_2 = <MASK><NEW_LINE>long y_3 = y[yOff + 3] & M;<NEW_LINE>long zc = 0;<NEW_LINE>for (int i = 0; i < 4; ++i) {<NEW_LINE>long c = 0, x_i = x[xOff... | y[yOff + 2] & M; |
158,120 | public int compare(final Change o1, final Change o2) {<NEW_LINE>final FilePath filePath1 = ChangesUtil.getFilePath(o1);<NEW_LINE>final FilePath filePath2 = ChangesUtil.getFilePath(o2);<NEW_LINE>if (myTreeCompare) {<NEW_LINE>final String path1 = FileUtilRt.<MASK><NEW_LINE>final String path2 = FileUtilRt.toSystemIndepend... | toSystemIndependentName(filePath1.getPath()); |
1,404,978 | public static GetVideoInfosResponse unmarshall(GetVideoInfosResponse getVideoInfosResponse, UnmarshallerContext _ctx) {<NEW_LINE>getVideoInfosResponse.setRequestId(_ctx.stringValue("GetVideoInfosResponse.RequestId"));<NEW_LINE>List<String> nonExistVideoIds = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < _ctx.le... | ("GetVideoInfosResponse.VideoList[" + i + "].Description")); |
529,203 | public void init() {<NEW_LINE>tableModel = new SampleTableModel();<NEW_LINE>// create javafx panel for charts<NEW_LINE>chartFxPanel = new JFXPanel();<NEW_LINE>chartFxPanel.setPreferredSize(new Dimension(PANEL_WIDTH_INT, PANEL_HEIGHT_INT));<NEW_LINE>// create javafx panel for browser<NEW_LINE>browserFxPanel = new JFXPan... | renderer = new SwingInterop.DecimalFormatRenderer(); |
1,498,622 | private PlacementResult<List<BookieId>> createNewEnsembleRandomly(List<BookieId> newEnsemble, int writeQuorumSize, int ackQuorumSize, Map<String, byte[]> customMetadata, Set<BookieId> excludeBookies) throws BKNotEnoughBookiesException {<NEW_LINE>int ensembleSize = newEnsemble.size();<NEW_LINE>Set<<MASK><NEW_LINE>if (bo... | BookieNode> bookiesToConsider = getBookiesToConsider(excludeBookies); |
402,160 | public void testCanObtainNoInterfaceReferenceViaEJBLinkWithoutBeanInterfaceButWithPreciseVariableType() throws Exception {<NEW_LINE>long currentThreadId = 0;<NEW_LINE>// Get a NoInterfaceBean2 BeanReference<NEW_LINE>NoInterfaceBean2 bean = lookupNoInterfaceBean2FromEJBLocalNamespace();<NEW_LINE>// Exercise the no-inter... | (NoInterfaceBean2.beanThreadId == currentThreadId)); |
327,770 | private ConfigDelta computeDelta(ConfigElement oldConfig, ConfigElement newConfig, RegistryEntry registryEntry, Map<String, DeltaType> variableDelta) throws ConfigMergeException {<NEW_LINE>ConfigElement oldElement = (oldConfig == null || !oldConfig.isEnabled()) ? null : oldConfig;<NEW_LINE>ConfigElement newElement = (n... | nestedDelta = nestedComparator.computeConfigDelta(variableDelta); |
548,209 | public String evaluationCermine(boolean forceRun, StringBuilder reportMD) throws Exception {<NEW_LINE>if (xmlInputPath == null) {<NEW_LINE>throw new GrobidResourceException("Path to PubMedCentral is not correctly set");<NEW_LINE>}<NEW_LINE>// text report for console<NEW_LINE>StringBuilder report = new StringBuilder();<... | , this.CITATION, reportMD)); |
1,442,977 | // the list of checks to execute<NEW_LINE>static List<BootstrapCheck> checks() {<NEW_LINE>final List<BootstrapCheck> checks = new ArrayList<>();<NEW_LINE>checks.add(new HeapSizeCheck());<NEW_LINE>final FileDescriptorCheck fileDescriptorCheck = Constants.MAC_OS_X ? new OsXFileDescriptorCheck() : new FileDescriptorCheck(... | .add(new MaxMapCountCheck()); |
1,397,542 | private // d648522<NEW_LINE>// d648522<NEW_LINE>EJSHome // d648522<NEW_LINE>fireMetaDataCreatedAndStartBean(BeanMetaData bmd) throws ContainerException {<NEW_LINE>if (// F743-34301.1<NEW_LINE>!bmd.isManagedBean()) {<NEW_LINE>try {<NEW_LINE>// Fire the ComponentMetaData event to the listeners<NEW_LINE>// (ie. we have lo... | "Failed to start " + bmd.j2eeName, t); |
305,909 | public void bitcoinSerializeToStream(OutputStream buf) throws IOException {<NEW_LINE>Utils.uint32ToByteStreamLE(clientVersion, buf);<NEW_LINE>Utils.uint32ToByteStreamLE(localServices, buf);<NEW_LINE>Utils.uint32ToByteStreamLE(localServices >> 32, buf);<NEW_LINE>Utils.uint32ToByteStreamLE(time, buf);<NEW_LINE>Utils.uint... | Utils.uint32ToByteStreamLE(bestHeight, buf); |
515,635 | private DynamicBytes unzipBody() throws IOException {<NEW_LINE>String encoding = HttpUtils.getStringValue(headers, CONTENT_ENCODING);<NEW_LINE>if (encoding == null || body.length() == 0) {<NEW_LINE>return body;<NEW_LINE>}<NEW_LINE>encoding = encoding.toLowerCase();<NEW_LINE>BytesInputStream bis = new BytesInputStream(b... | ), body.length()); |
1,853,135 | public List<EclipseNode> generateFields(SingularData data, EclipseNode builderType) {<NEW_LINE>if (useGuavaInstead(builderType)) {<NEW_LINE>return guavaMapSingularizer.generateFields(data, builderType);<NEW_LINE>}<NEW_LINE>char[] keyName = (new String(data.getPluralName()) + "$key").toCharArray();<NEW_LINE>char[] value... | = new QualifiedTypeReference(JAVA_UTIL_ARRAYLIST, NULL_POSS); |
916,911 | private final DDLQuery parseAlterTableAlterColumn(AlterTableStep s1) {<NEW_LINE>boolean paren = parseIf('(');<NEW_LINE>TableField<?, ?> field = parseFieldName();<NEW_LINE>if (!paren)<NEW_LINE>if (parseKeywordIf("CONSTRAINT") && parseIdentifier() != null)<NEW_LINE>if (parseKeywordIf("NULL"))<NEW_LINE>return s1.alter(fie... | ) toField(parseConcat())); |
1,286,466 | protected void disableHTTPResponCache(HttpServletResponse response) {<NEW_LINE>// see article http://onjava.com/pub/a/onjava/excerpt/jebp_3/index2.html<NEW_LINE>// Set to expire far in the past.<NEW_LINE>response.setHeader(HttpHeaderUtils.EXPIRES, HttpHeaderUtils.SAT_6_MAY_1995_12_00_00_GMT);<NEW_LINE>// Set standard H... | HttpHeaderUtils.CACHE_CONTROL_HTTP_HEADER, HttpHeaderUtils.POST_CHECK_0_PRE_CHECK_0); |
1,555,485 | public void delete(Session session, MysqlBackendEntry.Row entry) {<NEW_LINE>List<HugeKeys> idNames = this.idColumnName();<NEW_LINE>String template = this.buildDeleteTemplate(idNames);<NEW_LINE>PreparedStatement deleteStmt;<NEW_LINE>try {<NEW_LINE>deleteStmt = session.prepareStatement(template);<NEW_LINE>if (entry.colum... | idValues = this.idColumnValue(entry); |
813,374 | // Response shouldn't be closed here<NEW_LINE>@SuppressWarnings("resource")<NEW_LINE>private void processResponse(ServerProviderFactory providerFactory, Message message) {<NEW_LINE>if (isResponseAlreadyHandled(message)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MessageContentsList objs = MessageContentsList.getContentsLis... | responseObj != null ? 200 : 204); |
169,341 | protected Composite createDialogArea(Composite parent) {<NEW_LINE>Composite composite = super.createDialogArea(parent);<NEW_LINE>objectTree = new Tree(composite, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION);<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>gd.widthHint = 500;<NEW_LINE>gd.heightHint = ... | (objectTree, false, null)); |
367,505 | protected void onPopulateNodeForVirtualView(int virtualViewId, @NonNull AccessibilityNodeInfoCompat node) {<NEW_LINE>VirtualRect rectEle = <MASK><NEW_LINE>assert rectEle != null;<NEW_LINE>node.setContentDescription("Selected rect " + rectEle.id);<NEW_LINE>node.setClassName(ImageView.class.getName());<NEW_LINE>node.setP... | parentView.virtualIdRectMap.get(virtualViewId); |
1,378,430 | private Interceptors configureInterceptors() {<NEW_LINE>Interceptors interceptors = new Interceptors();<NEW_LINE>SetupMdcForHttpRequestInterceptor setupMdcForHttpRequestInterceptor;<NEW_LINE>if (enableLoggingMappedDiagnosticContext) {<NEW_LINE>enableRequestChain = true;<NEW_LINE>if (requestHeadersToTrackForMappedDiagno... | final CaptureRequestInterceptor captureRequestInterceptor = new CaptureRequestInterceptor(); |
1,752,878 | String defaultFileName() {<NEW_LINE>if (selectedType == CalibrationPatterns.CHESSBOARD) {<NEW_LINE>ConfigGridDimen config = (ConfigGridDimen) selectedCalib;<NEW_LINE>return "chessboard_" + config.numRows + "x" + config.numCols;<NEW_LINE>} else if (selectedType == CalibrationPatterns.SQUARE_GRID) {<NEW_LINE>ConfigGridDi... | .numRows + "x" + config.numCols; |
1,201,815 | public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {<NEW_LINE>if (registry.containsBeanDefinition(IntegrationContextUtils.INTEGRATION_MESSAGE_HISTORY_CONFIGURER_BEAN_NAME)) {<NEW_LINE>throw new BeanDefinitionStoreException("Only one @EnableMessageHistory or <... | "componentNamePatterns", patterns).getBeanDefinition(); |
172,574 | public int classifyPathObjects(Collection<PathObject> pathObjects) {<NEW_LINE>int counter = 0;<NEW_LINE>// PathClass classPositive = PathClassFactory.getDefaultPathClass(PathClassFactory.PathClasses.POSITIVE);<NEW_LINE>// PathClass classNegative = PathClassFactory.getDefaultPathClass(PathClassFactory.PathClasses.NEGATI... | classThreePlus = PathClassFactory.getThreePlus(classSelected); |
167,453 | private static void fetchArray(final ODocument rootRecord, final Object iUserObject, final OFetchPlan iFetchPlan, Object fieldValue, String fieldName, final int iCurrentLevel, final int iLevelFromRoot, final int iFieldDepthLevel, final Map<ORID, Integer> parsedRecords, final String iFieldPathFromRoot, final OFetchListe... | linked = (ODocument[]) fieldValue; |
2,977 | public boolean isUnavailable(String groupId, String artifactId, String version, String type, String classifier, List<ArtifactRepository> remoteRepositories) throws MavenException {<NEW_LINE>Artifact artifact = lookup(RepositorySystem.class).createArtifactWithClassifier(groupId, artifactId, version, type, classifier);<N... | , localRepository.pathOf(artifact)); |
1,571,595 | private void sendTracevisEntryPageAsResponse(final Callback<RestResponse> callback, final Trace trace) {<NEW_LINE>String mediaType = HEADER_VALUE_TEXT_HTML;<NEW_LINE>ClassLoader currentClassLoader = getClass().getClassLoader();<NEW_LINE>InputStream resourceStream = currentClassLoader.getResourceAsStream(ENTRY_PATH_SEGM... | (HttpStatus.S_500_INTERNAL_SERVER_ERROR, exception)); |
123,787 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol, theString from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length(100) as two " + "where one.symbol = two.theString " + "output every 6 events "... | createAndSend(env, epl, milestone); |
1,542,526 | public Source unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Source source = new Source();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c... | class).unmarshall(context)); |
1,641,303 | protected boolean putConfig2Persistent(TopicCtrlEntity entity, StringBuilder strBuff, ProcessResult result) {<NEW_LINE>String entityStr = entity.toString();<NEW_LINE>String confNode = strBuff.append(topicCtrlRootDir).append(TokenConstants.SLASH).append(entity.getTopicName()).toString();<NEW_LINE>strBuff.delete(<MASK><N... | 0, strBuff.length()); |
327,187 | public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>if (!initialized) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (roundEnv.processingOver()) {<NEW_LINE>if (roundEnv.errorRaised()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<ModelInterfaceType> dumped = new HashS... | null, srcDestDir).generate(); |
1,733,206 | public static void horizontal9(Kernel1D_S32 kernel, GrayU8 image, GrayI8 dest, int divisor) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final byte[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int ... | int width = image.getWidth(); |
1,099,750 | public BytesReference applyFilters(@Nullable BytesReference originalSource, @Nullable XContentType contentType) throws IOException {<NEW_LINE>if (enabled && originalSource != null) {<NEW_LINE>// Percolate and tv APIs may not set the source and that is ok, because these APIs will not index any data<NEW_LINE>if (filter !... | , bStream).map(filteredSource); |
1,628,309 | List<Morpheme> split(Tokenizer.SplitMode mode, int index, WordInfo wi) {<NEW_LINE>int[] wordIds;<NEW_LINE>switch(mode) {<NEW_LINE>case A:<NEW_LINE>wordIds = wi.getAunitSplit();<NEW_LINE>break;<NEW_LINE>case B:<NEW_LINE>wordIds = wi.getBunitSplit();<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>return Collections.singleton... | .singletonList(get(index)); |
1,041,904 | public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>final HttpServletRequest httpRequest = (HttpServletRequest) request;<NEW_LINE>final String origin = httpRequest.getHeader("Origin");<NEW_LINE>if (StringUtil.isBlank... | ACCESS_CONTROL_ALLOW_CREDENTIALS, fessConfig.getApiCorsAllowCredentials()); |
1,529,609 | final DescribeCertificateAuthorityResult executeDescribeCertificateAuthority(DescribeCertificateAuthorityRequest describeCertificateAuthorityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCertificateAuthorityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,753,477 | public static Vector apply(IntFloatVector v1, IntDummyVector v2, Binary op) {<NEW_LINE>if (v1.isDense()) {<NEW_LINE>float[] resValues = v1.getStorage().getValues();<NEW_LINE>for (int i = 0; i < v1.getDim(); i++) {<NEW_LINE>resValues[i] = op.apply(resValues[i], v2.get(i));<NEW_LINE>}<NEW_LINE>} else if (v1.isSparse()) {... | Entry entry = iter1.next(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.