idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
739,659 | protected void featuresCpCp2Cp3C(PaddedList<IN> cInfo, int loc, FeatureCollector out) {<NEW_LINE>out.setSuffix("CpCp2Cp3C");<NEW_LINE>CoreLabel p = cInfo.get(loc - 1);<NEW_LINE>if (flags.useTaggySequences) {<NEW_LINE>CoreLabel c = cInfo.get(loc);<NEW_LINE>CoreLabel p2 = cInfo.get(loc - 2);<NEW_LINE>CoreLabel p3 = cInfo... | append("-DISTSIM_TTTS1").add(); |
567,876 | public com.amazonaws.services.applicationinsights.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.applicationinsights.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.applicationinsights.model... | int originalDepth = context.getCurrentDepth(); |
783,457 | final ListSizeConstraintSetsResult executeListSizeConstraintSets(ListSizeConstraintSetsRequest listSizeConstraintSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSizeConstraintSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,117,510 | private static Set<Integer> analyzeBuildOrder(Map<Integer, OperatorDependencyEntry> operators) throws ExprValidationException {<NEW_LINE>DependencyGraph graph = new DependencyGraph(operators.size(), true);<NEW_LINE>for (Map.Entry<Integer, OperatorDependencyEntry> entry : operators.entrySet()) {<NEW_LINE>int myOpNum = e... | = new LinkedHashSet<Integer>(); |
957,264 | public String generateResults(Queue<Map<String, Object>> results) {<NEW_LINE>StringBuilder thumbs = new StringBuilder();<NEW_LINE>int resultCount = 0;<NEW_LINE>Iterator<Map<String, Object>> itor = results.iterator();<NEW_LINE>while (resultCount < MAX_RESULTS && itor.hasNext()) {<NEW_LINE>Map map = (Map) itor.next();<NE... | "' " + "title='" + name + "' />"); |
530,379 | public void marshall(UpdateJobRequest updateJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateJobRequest.getJobId(), JOBID_B... | updateJobRequest.getTimeoutConfig(), TIMEOUTCONFIG_BINDING); |
702,391 | public void updateItems(List<FatekPLCItem> items) throws FatekIOException, FatekException {<NEW_LINE>// collect unique register to read from PLC<NEW_LINE>Set<Reg> regsToUpdate = new HashSet<>();<NEW_LINE>for (FatekPLCItem item : items) {<NEW_LINE>regsToUpdate.<MASK><NEW_LINE>}<NEW_LINE>Map<Reg, RegValue> response;<NEW_... | addAll(item.getRegs()); |
1,540,890 | public ClickHouseRowBinaryInputStream executeQueryClickhouseRowBinaryStream(String sql, Map<ClickHouseQueryParam, String> additionalDBParams, Map<String, String> additionalRequestParams) throws SQLException {<NEW_LINE>additionalDBParams = importAdditionalDBParameters(additionalDBParams);<NEW_LINE>parseSqlStatements(sql... | "can not close stream: %s", e.getMessage()); |
1,021,270 | public void updateOutputStream(OutputStream diOs, boolean c14n11) throws CanonicalizationException, IOException {<NEW_LINE>if (diOs == outputStream) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (bytes != null) {<NEW_LINE>diOs.write(bytes);<NEW_LINE>} else if (inputOctetStreamProxy == null) {<NEW_LINE>CanonicalizerBase c14... | = new byte[4 * 1024]; |
574,530 | final DeleteRecommenderResult executeDeleteRecommender(DeleteRecommenderRequest deleteRecommenderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRecommenderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,719,028 | public void toPrecedenceFreeEPL(StringWriter writer) {<NEW_LINE>if (isLowEndpointIncluded && isHighEndpointIncluded) {<NEW_LINE>this.getChildren().get(0).toEPL(writer, getPrecedence());<NEW_LINE>if (isNotBetween) {<NEW_LINE>writer.write(" not");<NEW_LINE>}<NEW_LINE>writer.write(" between ");<NEW_LINE>this.getChildren()... | toEPL(writer, ExpressionPrecedenceEnum.MINIMUM); |
607,057 | private Object groupsIdHandler(String groupId, String userId, String requestIp) {<NEW_LINE>log.debug("hue group id: <" + groupId + "> requested: " + userId + " from " + requestIp);<NEW_LINE>HueError[] theErrors = null;<NEW_LINE>theErrors = bridgeSettingMaster.getBridgeSecurity().validateWhitelistUser(userId, null, brid... | getBridgeSecurity().isUseLinkButton()); |
1,064,653 | public MessageStore create(SessionID sessionID) {<NEW_LINE>try {<NEW_LINE>boolean syncWrites = false;<NEW_LINE>if (settings.isSetting(sessionID, SETTING_FILE_STORE_SYNC)) {<NEW_LINE>syncWrites = settings.getBool(sessionID, SETTING_FILE_STORE_SYNC);<NEW_LINE>}<NEW_LINE>int maxCachedMsgs = 10000;<NEW_LINE>if (settings.is... | ), sessionID, syncWrites, maxCachedMsgs); |
400,694 | public FunctionEntity load(InputStream input) throws IOException {<NEW_LINE>DumpInputStream data = new DumpInputStream(input);<NEW_LINE>FunctionEntity entity = new FunctionEntity(context);<NEW_LINE>entity.setStatic(data.readBoolean());<NEW_LINE>entity.setName(data.readName());<NEW_LINE>entity.setInternalName(data.readN... | setReturnType(data.readHintType()); |
1,097,068 | private String zipFilesInSystemVm(VMInstanceVO vmInstance, List<String> optionalFilesList) {<NEW_LINE>List<String> fileList = getFileListToBeRetrieved(optionalFilesList, vmInstance);<NEW_LINE>if (CollectionUtils.isEmpty(fileList)) {<NEW_LINE>throw new CloudRuntimeException("Failed to generate diagnostics file list for ... | , vmInstance.getUuid())); |
1,786,134 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | Context.NONE).getValue(); |
1,674,072 | public static long LLVMDIBuilderCreateObjCProperty(@NativeType("LLVMDIBuilderRef") long Builder, @NativeType("char const *") CharSequence Name, @NativeType("LLVMMetadataRef") long File, @NativeType("unsigned int") int LineNo, @NativeType("char const *") CharSequence GetterName, @NativeType("char const *") CharSequence ... | stack.nUTF8(GetterName, false); |
474,150 | public void transform(PictureHiBD img, PictureHiBD dst) {<NEW_LINE>int[] y = img.getData()[0];<NEW_LINE>int[][] dstData = dst.getData();<NEW_LINE>int off = 0, offSrc = 0;<NEW_LINE>for (int i = 0; i < img.getHeight(); i++) {<NEW_LINE>for (int j = 0; j < img.getWidth() >> 1; j++) {<NEW_LINE>dstData<MASK><NEW_LINE>dstData... | [1][off] = 0; |
338,917 | public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>timeStats.clear();<NEW_LINE>timeStats.start("Whole Processing");<NEW_LINE>Set<? extends Element> rootElements = roundEnv.getRootElements();<NEW_LINE>if (LOGGER.isLoggable(Level.TRACE)) {<NEW_LINE>LOGGER.trace("Start pro... | close(roundEnv.processingOver()); |
1,403,605 | public void mergeGraphTrend(GraphTrend to, GraphTrend from) {<NEW_LINE>String toCount = to.getCount();<NEW_LINE>String fromCount = from.getCount();<NEW_LINE>long[] count = mergeLongValue(toCount, fromCount);<NEW_LINE>to.setCount(StringUtils.join(count, GraphTrendUtil.GRAPH_CHAR_SPLITTER));<NEW_LINE><MASK><NEW_LINE>Stri... | String toSum = to.getSum(); |
552,725 | // App class is for internal use only; it's not actually deprecated<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>static void register(final AtomicReference<Stage> stage, final AtomicReference<WebView> view) {<NEW_LINE>ProxyAuth.add(settings.get().proxy());<NEW_LINE>if (isMonocle() && com.sun.glass.ui.Application.... | set(App.getStage()); |
75,558 | public static void derivX_F32(GrayF32 orig, GrayF32 derivX) {<NEW_LINE>final float[] data = orig.data;<NEW_LINE>final float[] imgX = derivX.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight();<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>int index = width * y + 1;<NEW_... | - (width - 2) % 3; |
980,710 | public int encodeSurrogate(char c, CharSequence in, int pos, int hi) {<NEW_LINE>int dword;<NEW_LINE>if (Character.isHighSurrogate(c)) {<NEW_LINE>if (hi - pos < 1) {<NEW_LINE>put('?');<NEW_LINE>return pos;<NEW_LINE>} else {<NEW_LINE>char c2 = in.charAt(pos++);<NEW_LINE>if (Character.isLowSurrogate(c2)) {<NEW_LINE>dword ... | Character.toCodePoint(c, c2); |
1,358,769 | public AssemblyResultSet trimTo(final AssemblyRegion trimmedAssemblyRegion) {<NEW_LINE>final Map<Haplotype, Haplotype> originalByTrimmedHaplotypes = calculateOriginalByTrimmedHaplotypes(trimmedAssemblyRegion.getPaddedSpan());<NEW_LINE>if (refHaplotype == null) {<NEW_LINE>throw new IllegalStateException("refHaplotype is... | ).anyMatch(Haplotype::isNonReference); |
1,361,683 | private void callback(final Local folder, final WatchEvent<?> event, final FileWatcherListener l) {<NEW_LINE>final WatchEvent.Kind<?> kind = event.kind();<NEW_LINE>if (log.isInfoEnabled()) {<NEW_LINE>log.info(String.format("Process file system event %s for %s", kind.name(), event.context()));<NEW_LINE>}<NEW_LINE>if (EN... | ().toString())); |
334,174 | // Baksmali<NEW_LINE>@Override<NEW_LINE>public void open(TaskMonitor monitor) throws IOException, CryptoException, CancelledException {<NEW_LINE>monitor.setMessage("Converting DEX to SMALI...");<NEW_LINE>File dexFileFile = provider.getFile();<NEW_LINE>boolean isFixRegisters = false;<NEW_LINE>boolean isNoParameterRegist... | isVerify, isIgnoreErrors, inlineTable, isCheckPackagePrivateAccess); |
1,721,696 | private List<Object[]> extractApplications(List<FirewallRuleTO> rules) throws ExecutionException {<NEW_LINE>List<Object[]> applications = new ArrayList<Object[]>();<NEW_LINE>for (FirewallRuleTO rule : rules) {<NEW_LINE>Object[] application = new Object[3];<NEW_LINE>application[0] = getProtocol(rule.getProtocol());<NEW_... | rule.getSrcPortRange()[0]; |
264,869 | private void updateMyLocation(MapHudButton backToLocationControl) {<NEW_LINE>Location lastKnownLocation = app.getLocationProvider().getLastKnownLocation();<NEW_LINE>boolean enabled = lastKnownLocation != null;<NEW_LINE>boolean tracked = app.getMapViewTrackingUtilities().isMapLinkedToLocation();<NEW_LINE>if (!enabled) {... | (R.string.map_widget_back_to_loc)); |
76,268 | public static int distanceFinderZValue(double[] vector) {<NEW_LINE>StringBuilder binaryBuffer = new StringBuilder();<NEW_LINE>List<String> binaryReps = new ArrayList<String>(vector.length);<NEW_LINE>for (int i = 0; i < vector.length; i++) {<NEW_LINE>double d = vector[i];<NEW_LINE>int j = (int) d;<NEW_LINE>String binary... | binaryReps.set(j, curr); |
1,199,812 | static ElementDocProvider create(@NotNull PsiElement psiElement) {<NEW_LINE>Project project = psiElement.getProject();<NEW_LINE>if (psiElement instanceof ErlangModule) {<NEW_LINE>VirtualFile virtualFile = getVirtualFile(psiElement);<NEW_LINE>if (virtualFile == null)<NEW_LINE>return null;<NEW_LINE>ErlangModule erlangMod... | getParentOfType(psiElement, ErlangGlobalFunctionCallExpression.class); |
1,468,643 | private LineMarkerInfo<?> attachOverwrites(@NotNull TwigFile twigFile) {<NEW_LINE>Collection<PsiFile> <MASK><NEW_LINE>for (String templateName : TwigUtil.getTemplateNamesForFile(twigFile)) {<NEW_LINE>for (PsiFile psiFile : TwigUtil.getTemplatePsiElements(twigFile.getProject(), templateName)) {<NEW_LINE>if (!psiFile.get... | targets = new ArrayList<>(); |
1,821,826 | public void deprecatedMethod(final MethodBinding method, ASTNode location) {<NEW_LINE>// common arguments:<NEW_LINE>String readableClassName = new String(method.declaringClass.readableName());<NEW_LINE>String shortReadableClassName = new String(method.declaringClass.shortReadableName());<NEW_LINE>String selector = new ... | method.declaringClass.getAnnotations()); |
935,001 | public void scrollToItem(int sectionIndex, int itemIndex, boolean animate) {<NEW_LINE>Section section;<NEW_LINE>if (sectionIndex > mAdapter.getNumberOfSections() || sectionIndex < 0 || (section = mAdapter.getSection(sectionIndex)) == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (itemIndex < 0 || itemIndex > section.... | .getContentHeight() - getMeasuredHeight(); |
486,350 | public void marshall(InstancesCount instancesCount, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (instancesCount == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(instancesCount.getAssigning(), ASSIGNING_B... | instancesCount.getStopped(), STOPPED_BINDING); |
37,759 | public void repairDatabase(@ConsoleParameter(name = "options", description = "Options: [--fix-graph] [--force-embedded-ridbags] [--fix-links] [-v]] [--fix-ridbags] [--fix-bonsai]", optional = true) String iOptions) throws IOException {<NEW_LINE>checkForDatabase();<NEW_LINE>final boolean force_embedded = iOptions == nul... | null || iOptions.contains("--fix-links"); |
959,599 | private Mono<PagedResponse<DriveBitLockerKeyInner>> listSinglePageAsync(String jobName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE... | this.client.mergeContext(context); |
715,693 | public static double kendall(float[] x, float[] y) {<NEW_LINE>if (x.length != y.length) {<NEW_LINE>throw new IllegalArgumentException("Input vector sizes are different.");<NEW_LINE>}<NEW_LINE>int is = 0, n2 = 0, n1 = 0, n = x.length;<NEW_LINE>double aa, a2, a1;<NEW_LINE>for (int j = 0; j < n - 1; j++) {<NEW_LINE>for (i... | [j] - y[k]; |
590,077 | public static QueryRegistrantProfilesResponse unmarshall(QueryRegistrantProfilesResponse queryRegistrantProfilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRegistrantProfilesResponse.setRequestId(_ctx.stringValue("QueryRegistrantProfilesResponse.RequestId"));<NEW_LINE>queryRegistrantProfilesResponse.setTotalIte... | ("QueryRegistrantProfilesResponse.RegistrantProfiles[" + i + "].Telephone")); |
1,419,919 | public int isStable(String tableName) {<NEW_LINE>IdealState idealState = <MASK><NEW_LINE>ExternalView externalView = _helixAdmin.getResourceExternalView(_clusterName, tableName);<NEW_LINE>Map<String, Map<String, String>> mapFieldsIS = idealState.getRecord().getMapFields();<NEW_LINE>Map<String, Map<String, String>> mapF... | _helixAdmin.getResourceIdealState(_clusterName, tableName); |
198,814 | public void propagate(CircuitState circuitState) {<NEW_LINE>final var state = getState(circuitState);<NEW_LINE>final var attrs = getAttributeSet();<NEW_LINE>final var x = addr(circuitState, P_X);<NEW_LINE>final var y = addr(circuitState, P_Y);<NEW_LINE>final var color = addr(circuitState, P_DATA);<NEW_LINE>state.lastX ... | g.setColor(Color.BLACK); |
333,310 | public RFuture<Map<String, Map<StreamMessageId, Map<K, V>>>> readAsync(StreamMultiReadArgs args) {<NEW_LINE>StreamReadParams rp = ((<MASK><NEW_LINE>List<Object> params = new ArrayList<>();<NEW_LINE>if (rp.getCount() > 0) {<NEW_LINE>params.add("COUNT");<NEW_LINE>params.add(rp.getCount());<NEW_LINE>}<NEW_LINE>if (rp.getT... | StreamReadSource) args).getParams(); |
1,616,880 | public Object generateCell(com.vaadin.v7.ui.Table source, Object itemId, Object columnId) {<NEW_LINE>Property property = source.getItem(itemId).getItemProperty(columnId);<NEW_LINE>Object value = property.getValue();<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String stringValue = value.toStr... | StringUtils.abbreviate(cellValue, maxTextLength); |
1,375,080 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSetAggregateFirstAggSODA(false));<NEW_LINE>execs.add(new ResultSetAggregateFirstAggSODA(true));<NEW_LINE>execs.add(new ResultSetAggregateMethodAggSQLAll());<NEW_LI... | .add(new ResultSetAggregateAccessAggSortedMulticriteria()); |
1,294,577 | final ListImageRecipesResult executeListImageRecipes(ListImageRecipesRequest listImageRecipesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listImageRecipesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,375,667 | /*<NEW_LINE>* Find the specific sentence assessment in the document sentiment list by given the assessment reference pointer.<NEW_LINE>*/<NEW_LINE>public static SentenceAssessment findSentimentAssessment(String assessmentPointer, List<DocumentSentiment> documentSentiments) {<NEW_LINE>final int<MASK><NEW_LINE>final int ... | [] assessmentIndexes = parseRefPointerToIndexArray(assessmentPointer); |
1,224,412 | private void selectTextViewItem() {<NEW_LINE>if (this.textViewClickThroughMode) {<NEW_LINE>final int pos = getPositionFor(this.selectedItem, 0);<NEW_LINE>final int newPos = (pos + 1) % this.values.size();<NEW_LINE>set(values.get(newPos));<NEW_LINE>} else {<NEW_LINE>final SimpleDialog sd = SimpleDialog.<MASK><NEW_LINE>i... | ofContext(spinnerView.getContext()); |
1,300,442 | public void onClose(Player who) {<NEW_LINE>if (this.getViewers().size() == 1) {<NEW_LINE>BlockEventPacket pk1 = new BlockEventPacket();<NEW_LINE>pk1.x = (int) this.right.getHolder().getX();<NEW_LINE>pk1.y = (int) this.right.getHolder().getY();<NEW_LINE>pk1.z = (int) this.right<MASK><NEW_LINE>pk1.case1 = 1;<NEW_LINE>pk1... | .getHolder().getZ(); |
1,530,163 | protected DataPacket createAddEntityPacket() {<NEW_LINE>AddEntityPacket addEntity = new AddEntityPacket();<NEW_LINE>addEntity.type = this.getNetworkId();<NEW_LINE>addEntity.entityUniqueId = this.getId();<NEW_LINE>addEntity.entityRuntimeId = this.getId();<NEW_LINE>addEntity.yaw = (float) this.yaw;<NEW_LINE>addEntity.hea... | z = (float) this.z; |
693,125 | final CreateAssetResult executeCreateAsset(CreateAssetRequest createAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAssetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
283,831 | public static Location zProbe(Location l) throws Exception {<NEW_LINE>Actuator zProbe = Configuration.get().getMachine().getDefaultHead().getZProbe();<NEW_LINE>if (zProbe == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Location lOld = zProbe.getLocation();<NEW_LINE><MASK><NEW_LINE>MovableUtils.moveToLocationAtSafe... | Location lz = zProbe.getLocation(); |
601,328 | protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String sessionHandle = InputParser.<MASK><NEW_LINE>assert sessionHandle != null;<NEW_LINE>JsonObject userDataInJWT = InputParse... | parseStringOrThrowError(input, "sessionHandle", false); |
1,068,193 | private void createObjectsTable(Composite parent) {<NEW_LINE>Composite placeholder = UIUtils.createComposite(parent, 1);<NEW_LINE>placeholder.setLayoutData(<MASK><NEW_LINE>Group tableGroup = UIUtils.createControlGroup(placeholder, UINavigatorMessages.confirm_deleting_multiple_objects_table_group_name, 1, GridData.FILL_... | new GridData(GridData.FILL_BOTH)); |
1,650,109 | private void refreshCred(JTable table) {<NEW_LINE>cred.reload();<NEW_LINE>DefaultTableModel tableModel = (DefaultTableModel) table.getModel();<NEW_LINE>tableModel.setRowCount(0);<NEW_LINE>TableColumn tcol = credTable.getColumnModel().getColumn(3);<NEW_LINE>tcol.setCellRenderer(new PasswordCellRenderer());<NEW_LINE>Iter... | usrPwd = new ArrayList<>(); |
1,505,186 | private GuiPanel createTooltip(Path path, ReplayMetaData metaData) {<NEW_LINE>GuiTooltip tooltip = new GuiTooltip();<NEW_LINE>GuiReplayViewer.GuiReplayEntry entry = new GuiReplayViewer.GuiReplayEntry(path.toFile(), metaData, null<MASK><NEW_LINE>return new GuiPanel().setLayout(new CustomLayout<GuiPanel>() {<NEW_LINE><NE... | , new ArrayList<>()); |
152,049 | void load(byte[] data, int dataOffset, RandomAccessData variableData, long variableOffset, JarEntryFilter filter) throws IOException {<NEW_LINE>// Load fixed part<NEW_LINE>this.header = data;<NEW_LINE>this.headerOffset = dataOffset;<NEW_LINE>long compressedSize = Bytes.littleEndianValue(data, dataOffset + 20, 4);<NEW_L... | 46, nameLength + extraLength + commentLength); |
1,323,068 | private void projectChanged() {<NEW_LINE>// check Eclipse project directory<NEW_LINE>String project = getProjectDir();<NEW_LINE>if ("".equals(project)) {<NEW_LINE>// NOI18N<NEW_LINE>setErrorMessage(// NOI18N<NEW_LINE>ProjectImporterWizard.// NOI18N<NEW_LINE>getMessage("MSG_ChooseProject"));<NEW_LINE>return;<NEW_LINE>}<... | File projectDirFile = new File(project); |
1,762,477 | public void process(URL maggot, OutputStream os) throws IOException {<NEW_LINE>// convert into magnet lookalike<NEW_LINE>String maggot_str = maggot.toExternalForm();<NEW_LINE>int <MASK><NEW_LINE>String rem;<NEW_LINE>if (pos == -1) {<NEW_LINE>rem = "";<NEW_LINE>} else {<NEW_LINE>rem = "&" + maggot_str.substring(pos + 1)... | pos = maggot_str.indexOf('?'); |
518,041 | public static void recordMP3(AudioSegment audioSegment, Path path, UserPreferences userPreferences) throws IOException {<NEW_LINE>if (audioSegment.hasAudio()) {<NEW_LINE>OutputStream outputStream = new FileOutputStream(path.toFile());<NEW_LINE>// Write ID3 metadata<NEW_LINE>Map<AudioMetadata, String> metadataMap = Audi... | ), audioSegment.getAliasList()); |
1,596,323 | private static void generateExcel(String[] paths, String outPath, String name, boolean dir) throws Exception {<NEW_LINE>File[] inFiles;<NEW_LINE>if (dir) {<NEW_LINE>List<File> fileList = new ArrayList<>();<NEW_LINE>for (String p : paths) {<NEW_LINE>File dp = new File(p);<NEW_LINE>if (!dp.isDirectory())<NEW_LINE>throw n... | File f = new File(p); |
1,118,094 | public static Set<Artifact> resolveFiles(JReleaserLogger logger, Path basedir, Collection<String> globs) throws JReleaserException {<NEW_LINE>if (null == globs || globs.isEmpty()) {<NEW_LINE>return Collections.emptySet();<NEW_LINE>}<NEW_LINE>FileSystem fileSystem = FileSystems.getDefault();<NEW_LINE>List<PathMatcher> m... | (RB.$("ERROR_artifacts_glob_resolution")); |
934,653 | public void rewriteServerbound(ByteBuf packet, int oldId, int newId) {<NEW_LINE>super.<MASK><NEW_LINE>// Special cases<NEW_LINE>int readerIndex = packet.readerIndex();<NEW_LINE>int packetId = DefinedPacket.readVarInt(packet);<NEW_LINE>int packetIdLength = packet.readerIndex() - readerIndex;<NEW_LINE>if (packetId == 0x2... | rewriteServerbound(packet, oldId, newId); |
1,281,886 | public void showAtNotifications(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject currentUser = Sessions.getUser();<NEW_LINE>if (null == currentUser) {<NEW_LINE>context.sendError(403);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final AbstractFreeMarkerRenderer re... | currentUser.optString(Keys.OBJECT_ID); |
449,360 | private List<LookupElement> fillModelByRelevance(LookupElementListPresenter lookup, Set<? extends LookupElement> items, Iterable<? extends LookupElement> sortedElements, @Nullable LookupElement relevantSelection) {<NEW_LINE>if (!sortedElements.iterator().hasNext()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<... | addCurrentlySelectedItemToTop(lookup, items, model); |
1,763,430 | private static Storage createStorageInternal(FFIType type, int size, Object value) {<NEW_LINE>FFI_TYPES t = type.type;<NEW_LINE>switch(t) {<NEW_LINE>case FFI_TYPE_VOID:<NEW_LINE>return NULL_STORAGE;<NEW_LINE>case FFI_TYPE_UINT8:<NEW_LINE>case FFI_TYPE_SINT8:<NEW_LINE>case FFI_TYPE_UINT16:<NEW_LINE>case FFI_TYPE_SINT16:... | type, new byte[size]); |
1,706,059 | private void resolveOrFail(final ClassNode type, final String msg, final ASTNode node, final boolean preferImports) {<NEW_LINE>if (preferImports) {<NEW_LINE>resolveGenericsTypes(type.getGenericsTypes());<NEW_LINE>if (resolveAliasFromModule(type))<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resolve(type))<NEW_LINE>return;<... | ) > 0 ? temp : node); |
1,247,191 | private void buildMustQueryListByCondition(final EventQueryCondition condition, final BoolQueryBuilder query) {<NEW_LINE>if (!isNullOrEmpty(condition.getUuid())) {<NEW_LINE>query.must(Query.term(Event.UUID, condition.getUuid()));<NEW_LINE>}<NEW_LINE>final Source source = condition.getSource();<NEW_LINE>if (source != nu... | , source.getEndpoint())); |
1,343,500 | public Pair<IborCapletFloorletPeriod, IborCapletFloorletPeriod> vanillaOptionVerticalSpreadPair(IborCapletFloorletBinaryPeriod binary) {<NEW_LINE>double capFloorInd = (binary.getPutCall().equals(PutCall.CALL) ? 1d : -1d);<NEW_LINE>double adjStrikeLow = binary.getStrike() - spread;<NEW_LINE>double adjStrikeHigh = binary... | abs(binary.getAmount()); |
1,779,905 | private BufferedImage scale(BufferedImage image, PageFormat pageFormat) {<NEW_LINE>// scale up to print density (using less of a stretch if image is already larger than page)<NEW_LINE>double upScale = dpiScale * Math.min((pageFormat.getImageableWidth() / image.getWidth()), (pageFormat.getImageableHeight() / image.getHe... | * upScale), BufferedImage.TYPE_INT_ARGB); |
691,066 | public CodegenExpression evaluateGetCollEventsCodegen(CodegenMethodScope parent, ExprSubselectEvalMatchSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenExpression aggService = classScope.getPackageScope().addOrGetFieldWellKnown(new CodegenFieldNameSubqueryAgg(subselect.getSubselectNumber()), AggregationR... | subselect.havingExpr, method, classScope); |
1,011,409 | private void showStickerPack(ArrayList<StickerPack> stickerPackList) {<NEW_LINE><MASK><NEW_LINE>if (stickerPackList.size() > 1) {<NEW_LINE>final Intent intent = new Intent(this, StickerPackListActivity.class);<NEW_LINE>intent.putParcelableArrayListExtra(StickerPackListActivity.EXTRA_STICKER_PACK_LIST_DATA, stickerPackL... | progressBar.setVisibility(View.GONE); |
1,752,254 | public static void main(String[] args) {<NEW_LINE>BinaryTree bt = new BinaryTree();<NEW_LINE>Node head = null;<NEW_LINE>head = bt.addNode(10, head);<NEW_LINE>head = bt.addNode(15, head);<NEW_LINE>head = bt.addNode(5, head);<NEW_LINE>head = bt.addNode(7, head);<NEW_LINE>head = bt.addNode(19, head);<NEW_LINE>head = bt.ad... | (head, 19, 7)); |
1,423,030 | private static TableScanNode createProjectableFilterable(Compiler compiler, TableScan rel, ImmutableList<RexNode> filters, ImmutableIntList projects, ProjectableFilterableTable pfTable) {<NEW_LINE>final DataContext root = compiler.getDataContext();<NEW_LINE>final ImmutableIntList originalProjects = projects;<NEW_LINE>f... | InputFinder.bits(mutableFilters, null); |
443,934 | public int runTextToLzo(String[] args, Configuration conf) throws Exception {<NEW_LINE>Job job = new Job(conf);<NEW_LINE>job.setJobName("Protobuf Example : Text to LzoB64Line");<NEW_LINE>job.setJarByClass(getClass());<NEW_LINE>job.setMapperClass(TextMapper.class);<NEW_LINE>job.setNumReduceTasks(0);<NEW_LINE>job.setInpu... | waitForCompletion(true) ? 0 : 1; |
950,441 | private void runAssertionSubquery(RegressionEnvironment env, RegressionPath path) {<NEW_LINE>// test expression reuse<NEW_LINE>String epl = "@name('s0') expression q {" + " x => (select * from Win where intPrimitive = x.p00)" + "}" + "select " + "q(st0).where(x => theString = key0) as val0, " + "q(st0).where(x => theS... | + "q(st0).where(x => theString = key0) as val7, " + "q(st0).where(x => theString = key0) as val8, " + "q(st0).where(x => theString = key0) as val9 " + "from SupportBean_ST0 st0"; |
1,194,529 | public ApiResponse<Void> accountSettingsUpdateRegNumberWithHttpInfo(UpdateRegNumberRequest updateRegNumber) throws ApiException {<NEW_LINE>Object localVarPostBody = updateRegNumber;<NEW_LINE>// verify the required parameter 'updateRegNumber' is set<NEW_LINE>if (updateRegNumber == null) {<NEW_LINE>throw new ApiException... | = new ArrayList<Pair>(); |
362,054 | private ClassNode findClass(String typeName, ILaunchPluginService.ITransformerLoader transformerLoader) throws Exception {<NEW_LINE>try {<NEW_LINE>InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(typeName + ".class");<NEW_LINE>if (stream == null)<NEW_LINE>throw LocalizedException.... | accept(node, ClassReader.SKIP_CODE); |
518,588 | private static <T> TypeToken<T> of(@NonNull Type type) {<NEW_LINE>if (type instanceof WildcardType) {<NEW_LINE>if (((WildcardType) type).getLowerBounds().length == 0) {<NEW_LINE>return of(((WildcardType) type).getUpperBounds()[0]);<NEW_LINE>}<NEW_LINE>throw new IllegalArgumentException("<? super T> is not supported");<... | new ClassToken<T>(typeToken); |
1,681,853 | public void updateLabel(FastDistanceData data) {<NEW_LINE>if (data instanceof FastDistanceVectorData) {<NEW_LINE>FastDistanceVectorData vectorData = (FastDistanceVectorData) data;<NEW_LINE>if (vectorData.vector instanceof DenseVector) {<NEW_LINE>double[] dataArray = ((DenseVector) vectorData.vector).getData();<NEW_LINE... | ] = list.get(i); |
1,616,296 | /* ===========<NEW_LINE>* SEARCH VIEW<NEW_LINE>* =========== */<NEW_LINE>@Override<NEW_LINE>public void initSearchView(final Menu menu) {<NEW_LINE>// Associate searchable configuration with the SearchView<NEW_LINE>Log.d("onCreateOptionsMenu setup SearchView!");<NEW_LINE>SearchManager searchManager = (SearchManager) get... | .getSearchableInfo(getComponentName())); |
315,013 | private void copyLuceneTextIndexIfExists(File segmentDirectory, File v3Dir) throws IOException {<NEW_LINE>// TODO: see if this can be done by reusing some existing methods<NEW_LINE>String suffix = V1Constants.Indexes.LUCENE_TEXT_INDEX_FILE_EXTENSION;<NEW_LINE>File[] textIndexFiles = segmentDirectory.listFiles(new Filen... | String docIDFileSuffix = V1Constants.Indexes.LUCENE_TEXT_INDEX_DOCID_MAPPING_FILE_EXTENSION; |
253,234 | protected Box createMvhd() {<NEW_LINE>MovieHeaderBox mvhd = new MovieHeaderBox();<NEW_LINE>mvhd.setVersion(1);<NEW_LINE>mvhd.setCreationTime(creationTime);<NEW_LINE>mvhd.setModificationTime(creationTime);<NEW_LINE>// no duration in moov for fragmented movies<NEW_LINE>mvhd.setDuration(0);<NEW_LINE>long[] timescales = ne... | (Mp4Math.lcm(timescales)); |
1,579,660 | protected CompiledPropertyMetadata toPropertyMetadata(VariableElement element, AnnotationMirror propertyAnnotation) {<NEW_LINE>Map<? extends ExecutableElement, ? extends AnnotationValue> annotationValues = processingEnv.getElementUtils().getElementValuesWithDefaults(propertyAnnotation);<NEW_LINE>CompiledPropertyMetadat... | add(datasetIndex, PropertyScope.REPORT); |
1,648,867 | public void run(String... args) {<NEW_LINE>LegoSet smallCar = createLegoSet("Small Car 01", 5, 12);<NEW_LINE>smallCar.setManual(new Manual("Just put all the pieces together in the right order", "Jens Schauder"));<NEW_LINE>smallCar.addModel("Suv", "SUV with sliding doors.");<NEW_LINE>smallCar.addModel("Roadster", "Slick... | System.out.println("\n--- Modifying Query ---"); |
1,616,148 | public void testAuthenticateMethodBA_ProtectedServlet3() throws Exception {<NEW_LINE>METHODS = "testMethod=authenticate,logout,login,authenticate,logout,authenticate";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/basicauth/ProgrammaticAPIServlet?" + METHODS + "&user=" +... | managerUser, test3, IS_MANAGER_ROLE, NOT_EMPLOYEE_ROLE); |
1,073,329 | public void marshall(BotImportSpecification botImportSpecification, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (botImportSpecification == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(botImportSpecifica... | botImportSpecification.getIdleSessionTTLInSeconds(), IDLESESSIONTTLINSECONDS_BINDING); |
526,432 | public void onModuleLoad() {<NEW_LINE>NumberFormat fmt = NumberFormat.getDecimalFormat();<NEW_LINE>double value = 12345.6789;<NEW_LINE>String <MASK><NEW_LINE>// Prints 1,2345.6789 in the default locale<NEW_LINE>GWT.log("Formatted string is" + formatted);<NEW_LINE>// Turn a string back into a double<NEW_LINE>value = Num... | formatted = fmt.format(value); |
884,845 | public List<LoadBalancerVH> fetchLoadBalancerDetails(SubscriptionVH subscription, Map<String, Map<String, String>> tagMap) {<NEW_LINE>List<LoadBalancerVH> loadBalancerList = new ArrayList<>();<NEW_LINE>Azure azure = azureCredentialProvider.getClient(subscription.getTenant(), subscription.getSubscriptionId());<NEW_LINE>... | setHashCode(loadBalancer.hashCode()); |
884,703 | public static CompletableFuture<CdmDataPartitionDefinition> fromData(final CdmCorpusContext ctx, final Partition obj, final List<CdmTraitDefinition> extensionTraitDefList, final List<CdmTraitDefinition> localExtensionTraitDefList, final CdmFolderDefinition documentFolder) {<NEW_LINE>final CdmDataPartitionDefinition par... | setRefreshTime(obj.getRefreshTime()); |
1,794,731 | private static RuntimeConverter createRuntimeConverter(TypeInformation<?> info) {<NEW_LINE>if (info.equals(Types.VOID)) {<NEW_LINE>return (csvMapper, container, obj) -> container.nullNode();<NEW_LINE>} else if (info.equals(Types.STRING)) {<NEW_LINE>return (csvMapper, container, obj) -> container<MASK><NEW_LINE>} else i... | .textNode((String) obj); |
1,674,601 | public Map<String, Boolean> propertyTreeGetFlages(String sessionToken, String path) {<NEW_LINE>String response = transport.execute(SimpleRequestBuilder.buildNewJsonRequest(ClassKeys.PROPERTY_TREE).addFunction(FunctionKeys.GET_FLAGS).addParameter(ParameterKeys.PATH, path).addParameter(ParameterKeys.TOKEN, sessionToken).... | responseObj = JSONResponseHandler.toJsonObject(response); |
875,066 | final DescribeHostsResult executeDescribeHosts(DescribeHostsRequest describeHostsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHostsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
383,100 | // rb_enc_mbcput with Ruby exception<NEW_LINE>public static int encMbcput(ThreadContext context, int c, byte[] buf, int p, Encoding enc) {<NEW_LINE>int len = enc.<MASK><NEW_LINE>// in MRI, this check occurs within some of the individual encoding functions, such as the<NEW_LINE>// US-ASCII check for values >= 0x80. In M... | codeToMbc(c, buf, p); |
1,478,604 | public void computeKilometricExpense(ActionRequest request, ActionResponse response) throws AxelorException {<NEW_LINE>ExpenseLine expenseLine = request.getContext(<MASK><NEW_LINE>if (expenseLine.getKilometricAllowParam() == null || expenseLine.getDistance().compareTo(BigDecimal.ZERO) == 0 || expenseLine.getExpenseDate... | ).asType(ExpenseLine.class); |
792,092 | void filterPointsOnPlaneAtInfinity(List<DMatrixRMaj> homographies_view1_to_view0, List<List<PointIndex2D_F64>> observations, int totalFeatures) {<NEW_LINE>filtered.clear();<NEW_LINE>for (int viewIdx = 0; viewIdx < homographies_view1_to_view0.size(); viewIdx++) {<NEW_LINE>List<PointIndex2D_F64> filter = new ArrayList<>(... | p = obs.get(i); |
1,814,634 | public synchronized void doOverrideIfNecessary() {<NEW_LINE>final Invoker<?> invoker;<NEW_LINE>if (originInvoker instanceof InvokerDelegate) {<NEW_LINE>invoker = ((InvokerDelegate<?>) originInvoker).getInvoker();<NEW_LINE>} else {<NEW_LINE>invoker = originInvoker;<NEW_LINE>}<NEW_LINE>// The origin invoker<NEW_LINE>URL ... | this.reExport(originInvoker, newUrl); |
1,206,404 | public Element export(@Nonnull RefEntity refEntity, final int actualLine) {<NEW_LINE>refEntity = getRefinedElement(refEntity);<NEW_LINE>Element problem = new Element("problem");<NEW_LINE>if (refEntity instanceof RefDirectory) {<NEW_LINE><MASK><NEW_LINE>VirtualFile virtualFile = ((PsiDirectory) ((RefDirectory) refEntity... | Element fileElement = new Element("file"); |
924,407 | public boolean initOnce() {<NEW_LINE>for (Method m : Initiator.load("com.tencent.mobileqq.vas.PendantInfo").getDeclaredMethods()) {<NEW_LINE>if (m.getReturnType() == void.class) {<NEW_LINE>Class<?>[<MASK><NEW_LINE>if (argt.length != 5) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (argt[0] != View.class) {<NEW_LINE>conti... | ] argt = m.getParameterTypes(); |
164,235 | private static void patchWithGitApply(Path rootDir, byte[] diffContents, ImmutableList<String> excludedPaths, int stripSlashes, boolean verbose, boolean reverse, Map<String, String> environment, @Nullable Path gitDir) throws IOException, InsideGitDirException {<NEW_LINE><MASK><NEW_LINE>if (gitDir == null) {<NEW_LINE>ch... | GitEnvironment gitEnv = new GitEnvironment(environment); |
1,484,683 | private void printDetails(List<Submission> submissions, long startTime, int tooShort) {<NEW_LINE>if (tooShort == 1) {<NEW_LINE>errorCollector.print(null, tooShort + " submission is not valid because it contains fewer tokens than minimum match length allows.");<NEW_LINE>} else if (tooShort > 1) {<NEW_LINE>errorCollector... | submissions.size()) : "n/a"; |
918,379 | private boolean handleScrollEvent(MotionEvent event) {<NEW_LINE>if (!mAttached) {<NEW_LINE>mQueuedEvents.add(new Pair(EVENT_SOURCE_SCROLL, event));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (event.getPointerCount() <= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final MotionEvent.PointerCoords coords = new Motio... | ) x, (int) y); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.