idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
724,411 | private Object readMark1(int b) throws IOException {<NEW_LINE>switch(b) {<NEW_LINE>case ObjectWriter.INT16:<NEW_LINE>return ObjectCache.getInteger(readUInt16());<NEW_LINE>// return new Integer(readUInt16());<NEW_LINE>case ObjectWriter.INT32:<NEW_LINE>return new Integer(readInt32());<NEW_LINE>case ObjectWriter.FLOAT16:<... | (n & 0x3FFF) / 10000.0); |
1,790,065 | private boolean isValid(Schema schema, IndexingConfig indexingConfig) {<NEW_LINE>// 1. Make sure that the sorted column is not a multi-value field.<NEW_LINE>List<String<MASK><NEW_LINE>boolean isValid = true;<NEW_LINE>if (CollectionUtils.isNotEmpty(sortedColumns)) {<NEW_LINE>final String sortedColumn = sortedColumns.get... | > sortedColumns = indexingConfig.getSortedColumn(); |
899,703 | public boolean checkTargetVersion(TargetVersion targetVersion) {<NEW_LINE>Config tlsConfig = getTlsConfig();<NEW_LINE>tlsConfig.setFiltersKeepUserSettings(false);<NEW_LINE>WorkflowConfigurationFactory factory = new WorkflowConfigurationFactory(tlsConfig);<NEW_LINE>WorkflowTrace workflowTrace = factory.createTlsEntryWor... | add(new CertificateMessage(tlsConfig)); |
342,015 | public ResponseEntity<Void> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUES... | final HttpHeaders localVarHeaderParams = new HttpHeaders(); |
832,068 | void migrateValueAcrossLists(AWTEvent event) {<NEW_LINE>Object source = event.getSource();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<ListElement> selObjects = (source == bAdd || source == noList) ? noList.getSelectedValuesList<MASK><NEW_LINE>for (ListElement itemSelected : selObjects) {<NEW_LINE>if (itemSel... | () : yesList.getSelectedValuesList(); |
541,952 | final GetEbsDefaultKmsKeyIdResult executeGetEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest getEbsDefaultKmsKeyIdRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEbsDefaultKmsKeyIdRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetEbsDefaultKmsKeyId"); |
768,748 | private void validate(APIAttachSecurityGroupToL3NetworkMsg msg) {<NEW_LINE>SimpleQuery<SecurityGroupL3NetworkRefVO> q = dbf.createQuery(SecurityGroupL3NetworkRefVO.class);<NEW_LINE>q.add(SecurityGroupL3NetworkRefVO_.l3NetworkUuid, Op.EQ, msg.getL3NetworkUuid());<NEW_LINE>q.add(SecurityGroupL3NetworkRefVO_.securityGroup... | EQ, msg.getSecurityGroupUuid()); |
905,210 | public SubmitTaskStateChangeResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SubmitTaskStateChangeResult submitTaskStateChangeResult = new SubmitTaskStateChangeResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
328,091 | private void handleClientCoreMessage_FirstLoad(Message msg) {<NEW_LINE>switch(msg.arg1) {<NEW_LINE>case FIRST_LOAD_NO_DATA:<NEW_LINE>{<NEW_LINE>if (wasInterceptInvoked.get()) {<NEW_LINE>SonicUtils.log(TAG, Log.INFO, "session(" + sId + ") handleClientCoreMessage_FirstLoad:FIRST_LOAD_NO_DATA.");<NEW_LINE>setResult(SONIC_... | INFO, "session(" + sId + ") handleClientCoreMessage_FirstLoad:oh yeah, first load hit 304."); |
621,798 | static CommunityMatchExpr toCommunityMatchExpr(IpCommunityListStandard ipCommunityListStandard) {<NEW_LINE>Set<Community> whitelist = new HashSet<>();<NEW_LINE>Set<Community> <MASK><NEW_LINE>// TODO: support set comm-list delete semantics for line with more than one community<NEW_LINE>for (IpCommunityListStandardLine l... | blacklist = new HashSet<>(); |
304,971 | private void searchEquivalentRefs(Set<ScalarOperator> memo, Set<ScalarOperator> search, Set<ScalarOperator> result) {<NEW_LINE>Set<ScalarOperator> tempResult = Sets.newLinkedHashSet();<NEW_LINE>for (ScalarOperator operator : search) {<NEW_LINE>if (memo.contains(operator)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>// Der... | ).accept(rewriter, null); |
1,618,907 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>response.getWriter().write("This is a public servlet \n");<NEW_LINE>String webName = null;<NEW_LINE>if (request.getUserPrincipal() != null) {<NEW_LINE>webName = request.getUserPrincipal().getName(... | write("before web username: " + webName + "\n"); |
757,573 | private static // }<NEW_LINE>void addColor(String tokenType, SimpleAttributeSet sas, Map<String, AttributeSet> colorsMap, Map<String, AttributeSet> defaultsMap) {<NEW_LINE>if (sas == null)<NEW_LINE>sas = new SimpleAttributeSet();<NEW_LINE>else<NEW_LINE>sas = new SimpleAttributeSet(sas);<NEW_LINE>String colorName = (Str... | addAttribute(StyleConstants.NameAttribute, colorName); |
1,788,290 | public void read(org.apache.thrift.protocol.TProtocol prot, setNamespaceProperty_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incomi... | .clientImpl.thrift.ThriftNotActiveServiceException(); |
1,399,575 | public EurekaHttpResponse<InstanceInfo> sendHeartBeat(String appName, String id, InstanceInfo info, InstanceStatus overriddenStatus) {<NEW_LINE>String urlPath <MASK><NEW_LINE>Response response = null;<NEW_LINE>try {<NEW_LINE>WebTarget webResource = jerseyClient.target(serviceUrl).path(urlPath).queryParam("status", info... | = "apps/" + appName + '/' + id; |
1,702,244 | public void startUp(FloodlightModuleContext context) throws FloodlightModuleException {<NEW_LINE>logger.info("LDHAWorker is starting...");<NEW_LINE>try {<NEW_LINE>HAController.syncService.registerStore("LDUpdates", Scope.GLOBAL);<NEW_LINE>HAController.storeLD = HAController.syncService.getStoreClient("LDUpdates", Strin... | (ArrayList<Integer>) priorities); |
166,391 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>int caseNo = 0;<NEW_LINE>while (sc.hasNext()) {<NEW_LINE>int a = sc.nextInt();<NEW_LINE>String ch = sc.next();<NEW_LINE>int b = sc.nextInt();<NEW_LINE>// the range of answer<NEW_LINE>double lo = 0.0, hi = 400.0<MASK><NEW_LIN... | , L = 0, W = 0; |
1,473,139 | public static double ceilPowerOfTwo(double x) {<NEW_LINE>checkArgument(x > 0.0, "Input must be positive. Provided value: %s", x);<NEW_LINE>checkArgument(Double.isFinite<MASK><NEW_LINE>checkArgument(!Double.isNaN(x), "Input must be a number. Provided value: NaN");<NEW_LINE>// The following bit masks are based on the bit... | (x), "Input must be finite. Provided value: %s", x); |
1,292,060 | public OSSAsyncTask<CompleteMultipartUploadResult> completeMultipartUpload(CompleteMultipartUploadRequest request, final OSSCompletedCallback<CompleteMultipartUploadRequest, CompleteMultipartUploadResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>requestMessage.setIsAu... | onFailure(request, clientException, serviceException); |
575,228 | protected static JPanel createStandardLegendPanel(final String methodDefinedText, final String methodNotDefinedLegallyText, final String methodShouldBeDefined) {<NEW_LINE>final JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>final GridBagConstraints gc = new GridBagConstraints(0, 0, 1, 1, 1, 0, GridBagConstrai... | panel.add(label, gc); |
1,108,227 | public void marshall(AwsEc2SecurityGroupDetails awsEc2SecurityGroupDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2SecurityGroupDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEc2... | awsEc2SecurityGroupDetails.getVpcId(), VPCID_BINDING); |
621,907 | public synchronized void truncateUnpartitionedTable(ConnectorSession session, String databaseName, String tableName) {<NEW_LINE>checkReadable();<NEW_LINE>Optional<Table> table = getTable(new MetastoreContext(session.getIdentity(), session.getQueryId(), session.getClientInfo(), session.getSource(), getMetastoreHeaders(s... | , recursiveDeleteResult.getNotDeletedEligibleItems())); |
1,441,286 | private void checkIncludesExistence(File scriptDir) throws IOException {<NEW_LINE>File incFolder = new File(scriptDir, "inc");<NEW_LINE>if (!incFolder.exists()) {<NEW_LINE>if (!incFolder.mkdirs()) {<NEW_LINE>throw new IOException("Can't create inc folder '" + <MASK><NEW_LINE>}<NEW_LINE>for (String fileName : GISBrowser... | incFolder.getAbsolutePath() + "'"); |
846,798 | private Long countExpiredTaskTaskCompleted(Business business, DateRange dateRange, String applicationId, String processId, String activityId, List<String> units, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.get... | cq.from(TaskCompleted.class); |
1,248,295 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE><MASK><NEW_LINE>invalidateConditionalUpdate_result result = new invalidateConditionalUpdate_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER... | org.apache.thrift.TSerializable msg; |
25,078 | private static LayoutReport checkLayoutForPage(Page page, Browser browser, PageSpec pageSpec, SectionFilter sectionFilter, ValidationListener validationListener) throws IOException {<NEW_LINE>CombinedValidationListener listener = new CombinedValidationListener();<NEW_LINE>listener.add(validationListener);<NEW_LINE>Layo... | File screenshot = page.getScreenshotFile(); |
912,861 | public Response<Void> deleteByIdWithResponse(String id, Context context) {<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 val... | format("The resource ID '%s' is not valid. Missing path segment 'streamingLocators'.", id))); |
1,741,059 | public void onMediaPermissionRequest(GeckoSession aSession, String aUri, MediaSource[] aVideo, MediaSource[] aAudio, final MediaCallback aMediaCallback) {<NEW_LINE>Log.<MASK><NEW_LINE>final MediaSource video = aVideo != null ? aVideo[0] : null;<NEW_LINE>final MediaSource audio = aAudio != null ? aAudio[0] : null;<NEW_L... | d(LOGTAG, "onMediaPermissionRequest: " + aUri); |
1,375,483 | public LineageVertex abstractVertex(Vertex originalVertex) {<NEW_LINE>String nodeType = originalVertex.label();<NEW_LINE>String nodeID = getNodeID(originalVertex);<NEW_LINE>LineageVertex lineageVertex = new LineageVertex(nodeID, nodeType);<NEW_LINE>lineageVertex.setId(originalVertex.id());<NEW_LINE>if (originalVertex.p... | .value().toString(); |
977,476 | public void fireStarted(ApplicationInfo info) throws StateChangeException {<NEW_LINE>if (info != null && info.getConfigHelper() == null) {<NEW_LINE>Iterator<ServiceAndServiceReferencePair<ApplicationStateListener>> iterator = listeners.getServicesWithReferences();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>ServiceA... | ApplicationStateListener listener = pair.getService(); |
1,560,967 | public Future<Void> rollingRestart(Function<Pod, List<String>> podNeedsRestart) {<NEW_LINE>this.podNeedsRestart = podNeedsRestart;<NEW_LINE>Promise<Void> result = Promise.promise();<NEW_LINE>singleExecutor.submit(() -> {<NEW_LINE>List<PodRef> pods = new ArrayList<>(podList.size());<NEW_LINE>for (int podIndex = 0; podIn... | debugCr(reconciliation, "Initial order for rolling restart {}", pods); |
1,387,495 | private void submitCompactionJob(CompactionPlan plan, Compactable.Files files, Compactable compactable, Consumer<Compactable> completionCallback) {<NEW_LINE>// log error if tablet is metadata and compaction is external<NEW_LINE>var execIds = plan.getJobs().stream().map(cj -> (CompactionExecutorIdImpl) cj.getExecutor())... | ), List.of()); |
1,423,868 | static Native<?, ?> of(ProcedureVertex<?, ?> from, ProcedureVertex<?, ?> to, PlannerEdge.Native.Directional<?, ?> edge) {<NEW_LINE>boolean isForward = edge.direction().isForward();<NEW_LINE>if (edge.isIsa()) {<NEW_LINE>int orderNumber = edge.orderNumber();<NEW_LINE>boolean isTransitive = edge.asIsa().isTransitive();<NE... | ), edge.asThing()); |
33,325 | private void writeCheckpoint(long nextSequenceNumber) {<NEW_LINE>LOG.info("{}: Writing checkpoint [sequence number {}].", mMaster.getName(), nextSequenceNumber);<NEW_LINE>try {<NEW_LINE>UfsJournalCheckpointWriter journalWriter = mJournal.getCheckpointWriter(nextSequenceNumber);<NEW_LINE>try {<NEW_LINE>synchronized (mCh... | mMaster.getName(), nextSequenceNumber); |
1,504,288 | private ConfigurationDocument createConfigFile(StringToStringMap values) {<NEW_LINE>ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();<NEW_LINE>ConfigurationType config = configDocument.addNewConfiguration();<NEW_LINE>JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();<NEW_LINE>ServiceT... | (values.get(TYPES_NAMESPACE)); |
1,263,984 | private boolean incrementRGBColor(RTextArea textArea) {<NEW_LINE>try {<NEW_LINE>int caretPosition = textArea.getCaretPosition();<NEW_LINE>int[] result = findColorAt(textArea, caretPosition);<NEW_LINE>if (result == null)<NEW_LINE>return false;<NEW_LINE>int start = result[0];<NEW_LINE>int len = result[1];<NEW_LINE>// fin... | max(start2, start + 1); |
1,053,721 | public ExternallyReferencedCandidate createInvoiceCandidate(@NonNull final NewManualInvoiceCandidate newIC) {<NEW_LINE>final ExternallyReferencedCandidateBuilder candidate = ExternallyReferencedCandidate.createBuilder(newIC);<NEW_LINE>final ICountryDAO countryDAO = Services.get(ICountryDAO.class);<NEW_LINE>final BPartn... | getPriceUomId()).build(); |
94,562 | public static DescribeSqlFlashbakTaskResponse unmarshall(DescribeSqlFlashbakTaskResponse describeSqlFlashbakTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSqlFlashbakTaskResponse.setRequestId(_ctx.stringValue("DescribeSqlFlashbakTaskResponse.RequestId"));<NEW_LINE>describeSqlFlashbakTaskResponse.setSuccess(... | ("DescribeSqlFlashbakTaskResponse.SqlFlashbackTasks[" + i + "].SearchEndTime")); |
177,650 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.ide.core.ftp.BaseFTPConnectionFileManager#readFile(org.eclipse.core.runtime.IPath,<NEW_LINE>* org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected InputStream readFile(IPath path, IProgressMonitor monitor) throws CoreExceptio... | (FTPClient) pool.checkOut(); |
662,423 | public static Memory fgets(Environment env, TraceInfo trace, Memory stream, Memory length) {<NEW_LINE>if (stream.instanceOf(Stream.CLASS_NAME)) {<NEW_LINE>InputStream in = Stream.getInputStream(env, stream);<NEW_LINE>if (in != null) {<NEW_LINE>int read;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>try {<NE... | valueOf(sb.toString()); |
1,175,657 | private Optional<Boolean> currentSyncStatus(final ChainHead localChain, final Optional<ChainHeadEstimate> syncTargetChain, final Optional<ChainHeadEstimate> bestPeerChain) {<NEW_LINE>final Optional<Boolean> inSyncWithSyncTarget = syncTargetChain.map(remote -> isInSync(localChain, remote));<NEW_LINE>final Optional<Boole... | -> isInSync(localChain, remote)); |
611,081 | private void drawLastBite(MatrixStack matrixStack, int regionX, int regionZ) {<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>RenderSystem.setShader(GameRenderer::getPositionShader);<NEW_LINE>if (lastSoundPos != n... | y, lastSoundPos.z - regionZ); |
1,495,660 | private void queryServerNow() {<NEW_LINE>Long offsetResult = null;<NEW_LINE>for (int i = 0; i < MAX_QUERY_RETRIES; i++) {<NEW_LINE>try {<NEW_LINE>NTPUDPClient client = new NTPUDPClient();<NEW_LINE>// Timeout if a response takes longer than 10 seconds<NEW_LINE>client.setDefaultTimeout(DEFAULT_NTP_TIMEOUT_MS);<NEW_LINE>c... | + 1), MAX_QUERY_RETRIES, e); |
197,720 | public static void logicAnd(GrayU8 inputA, GrayU8 inputB, GrayU8 output) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, inputA.height, y -> {<NEW_LINE>for (int y = 0; y < inputA.height; y++) {<NEW_LINE>int indexA = inputA.startIndex + y * inputA.stride;<NEW_LINE>int indexB = inputB.startIndex + y * inputB.st... | byte) 1 : (byte) 0; |
1,166,983 | protected void registerStatesAndModels() {<NEW_LINE>registerFluidBlockStates(MekanismFluids.FLUIDS.getAllFluids());<NEW_LINE>ResourceLocation basicCube = modLoc("block/basic_cube");<NEW_LINE>for (Map.Entry<IResource, BlockRegistryObject<?, ?>> entry : MekanismBlocks.PROCESSED_RESOURCE_BLOCKS.entrySet()) {<NEW_LINE>Stri... | , Mekanism.rl("block/personal_barrel/top_open")); |
1,659,318 | public ManualSyncSubmissionResult resetConnection(final UUID connectionId) {<NEW_LINE>log.info("reset sync request");<NEW_LINE>final boolean workflowReachable = isWorkflowReachable(getConnectionManagerName(connectionId));<NEW_LINE>if (!workflowReachable) {<NEW_LINE>log.error("Can't reset a non-reachable workflow");<NEW... | ), Optional.empty()); |
1,045,289 | static void bitRotateCCW(final int[] src, int srcPos, @SuppressWarnings("SameParameterValue") int srcStep, final byte[] dst, int dstPos, int dstStep) {<NEW_LINE>int idx = srcPos;<NEW_LINE>int lonyb;<NEW_LINE>int hinyb;<NEW_LINE>long lo = 0;<NEW_LINE>long hi = 0;<NEW_LINE>for (int i = 7; i >= 0; i--) {<NEW_LINE>lonyb = ... | lo >> 16) & 0xFF); |
57,882 | public static DescribeBackupsResponse unmarshall(DescribeBackupsResponse describeBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupsResponse.setRequestId(_ctx.stringValue("DescribeBackupsResponse.RequestId"));<NEW_LINE>describeBackupsResponse.setTotalCount(_ctx.stringValue("DescribeBackupsResponse.Tot... | ("DescribeBackupsResponse.Items[" + i + "].BackupMethod")); |
299,790 | public List<ScanningResult> importResults(String fileName, AbstractFeederGUI feeder) throws IOException {<NEW_LINE>List<ScanningResult> results = new ArrayList<>();<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>reader = new BufferedReader(new FileReader(fileName));<NEW_LINE>String startIP = null;<NEW_L... | .getLabel(IPFetcher.ID) }; |
1,834,290 | public DescribeBatchPredictionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeBatchPredictionsResult describeBatchPredictionsResult = new DescribeBatchPredictionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | class).unmarshall(context)); |
1,297,359 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.fsfilcnt_t, NativeType.ULONG); |
1,595,043 | public static LogicalSchema buildSchema(final LogicalSchema inputSchema, final List<FunctionCall> tableFunctions, final FunctionRegistry functionRegistry) {<NEW_LINE>final LogicalSchema.Builder schemaBuilder = LogicalSchema.builder();<NEW_LINE>final List<Column> cols = inputSchema.value();<NEW_LINE>// We copy all the o... | schemaBuilder.valueColumn(colName, fieldType); |
1,738,121 | private File unpackedJar(String resolvedVersion, String stubsGroup, String stubsModule, String classifier) {<NEW_LINE>try {<NEW_LINE>log.info("Resolved version is [" + resolvedVersion + "]");<NEW_LINE>if (!StringUtils.hasText(resolvedVersion)) {<NEW_LINE>log.warn("Stub for group [" + stubsGroup + "] module [" + stubsMo... | artifact + "] using remote repositories " + this.remoteRepos); |
975,658 | private ValidationResult validate(GoPluginDescriptor descriptor, Map<String, List<String>> extensionsInfoFromPlugin) {<NEW_LINE>ValidationResult validationResult = new ValidationResult(descriptor.id());<NEW_LINE>final Set<String> gocdSupportedExtensions = extensionsRegistry.allRegisteredExtensions();<NEW_LINE>final Set... | (UNSUPPORTED_EXTENSION_ERROR_MESSAGE, difference, gocdSupportedExtensions)); |
307,759 | private void loadBatchVariables() {<NEW_LINE>MBPartner businessPartner = (MBPartner) getC_BPartner();<NEW_LINE>List<MHRAttendanceRecord> attendanceList = getLines(false);<NEW_LINE>if (!isLeave()) {<NEW_LINE>this.firstAttendance = attendanceList.stream().findFirst().get();<NEW_LINE>this.lastAttendance = attendanceList.g... | put("_HR_WorkShift_ID", getHR_WorkShift_ID()); |
810,200 | private LiveBean parseBean(String id, String contextId, JSONObject beansJSON) {<NEW_LINE>String type = beansJSON.optString("type");<NEW_LINE>String <MASK><NEW_LINE>String resource = beansJSON.optString("resource");<NEW_LINE>JSONArray aliasesJSON = beansJSON.optJSONArray("aliases");<NEW_LINE>String[] aliases;<NEW_LINE>i... | scope = beansJSON.optString("scope"); |
563,852 | protected void renderBg(PoseStack matrices, float partialTicks, int mouseX, int mouseY) {<NEW_LINE>RenderUtils.setup(BACKGROUND_IMAGE);<NEW_LINE>this.border.draw(matrices);<NEW_LINE>BACKGROUND.drawScaled(matrices, this.leftPos + 4, this.topPos + 4, this.imageWidth - 8, this.imageHeight - 8);<NEW_LINE>float y = 5 + this... | width(this.caption) / 2; |
1,226,267 | private MenuManager createViewTabsMenu() {<NEW_LINE>MenuManager manager = new MenuManager("&Tabs");<NEW_LINE>for (MainTab.Type type : MainTab.Type.values()) {<NEW_LINE>Action action = type.createAction(shown -> {<NEW_LINE>models.analytics.postInteraction(type.view, shown ? <MASK><NEW_LINE>if (shown) {<NEW_LINE>TabInfo ... | ClientAction.Enable : ClientAction.Disable); |
1,142,765 | private void doGetCompletions(final String token, final List<String> assocData, final List<Integer> dataType, final List<Integer> numCommas, final String functionCallString, final String chainObjectName, final JsArrayString chainAdditionalArgs, final JsArrayString chainExcludeArgs, final boolean chainExcludeArgsFromObj... | documentId, line, isConsole, requestCallback); |
338,751 | private ListMultimap<FreightCostId, FreightCostShipper> retrieveShippers(@NonNull final Collection<FreightCostId> freightCostIds) {<NEW_LINE>if (freightCostIds.isEmpty()) {<NEW_LINE>return ImmutableListMultimap.of();<NEW_LINE>}<NEW_LINE>final List<I_M_FreightCostShipper> shipperRecords = queryBL.createQueryBuilderOutOf... | Services.get(IMsgBL.class); |
1,749,987 | public Void call() throws Exception {<NEW_LINE>Random random = new Random();<NEW_LINE>int recordsPerPage = format.getRecordsPerPage();<NEW_LINE>int recordSize = format.getRecordSize();<NEW_LINE>try (PageCursor cursor = pagedFile.io(0, PF_SHARED_WRITE_LOCK, CursorContext.NULL)) {<NEW_LINE>while (!condition.fulfilled()) ... | ("Record-local count must be less than or equal to thread-local count sum").isLessThanOrEqualTo(countSum); |
1,749,260 | private Configuration toVendorIndependentConfiguration() {<NEW_LINE>_c = new Configuration(getHostname(), ConfigurationFormat.CUMULUS_NCLU);<NEW_LINE>_c.setDeviceModel(DeviceModel.CUMULUS_UNSPECIFIED);<NEW_LINE>_c.setDefaultCrossZoneAction(LineAction.PERMIT);<NEW_LINE>_c.setDefaultInboundAction(LineAction.PERMIT);<NEW_... | convertBgpProcess(_c, this, _w); |
1,496,806 | private static WritableMap[] createPointersArray(TouchEvent event) {<NEW_LINE>MotionEvent motionEvent = event.getMotionEvent();<NEW_LINE>WritableMap[] touches = new WritableMap[motionEvent.getPointerCount()];<NEW_LINE>// Calculate the coordinates for the target view.<NEW_LINE>// The MotionEvent contains the X,Y of the ... | () - event.getViewX(); |
187,172 | public void configure(Object... keyValues) {<NEW_LINE>Object key = keyValues[0];<NEW_LINE>Object value = keyValues[1];<NEW_LINE>if (key.equals(Hits.AUTH_PROP)) {<NEW_LINE>if (!(value instanceof String)) {<NEW_LINE>throw new IllegalArgumentException("auth requires a String as its argument");<NEW_LINE>}<NEW_LINE><MASK><N... | this.authProp = (String) value; |
1,173,928 | private static void expandDataFileRules(Path file) throws IOException {<NEW_LINE>boolean modified = false;<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>try (InputStream stream = Files.newInputStream(file);<NEW_LINE>InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8);<NEW_L... | group(1).trim(); |
1,406,730 | public // a special symbol which is a place holder for the bitrange operator<NEW_LINE>void defineBitrange(Location location, String name, VarnodeSymbol sym, int bitoffset, int numb) {<NEW_LINE>entry("defineBitrange", location, name, sym, bitoffset, numb);<NEW_LINE>String namecopy = name;<NEW_LINE>// Number of bits<NEW_... | , sym, bitoffset, numb)); |
1,709,892 | public void drawTransform(Transform xf) {<NEW_LINE>GL2 gl = panel.getGL().getGL2();<NEW_LINE>getWorldToScreenToOut(xf.p, temp);<NEW_LINE>temp2.setZero();<NEW_LINE>float k_axisScale = 0.4f;<NEW_LINE>gl.glBegin(GL2.GL_LINES);<NEW_LINE>gl.glColor3f(1, 0, 0);<NEW_LINE>temp2.x = xf.p.x + k_axisScale * xf.q.c;<NEW_LINE>temp2... | temp2.x, temp2.y); |
1,016,677 | public void remove(Component component) {<NEW_LINE>JComponent composition = DesktopComponentsHelper.getComposition(component);<NEW_LINE>if (wrappers.containsKey(component)) {<NEW_LINE>impl.remove(wrappers.get(component).getFirst());<NEW_LINE>wrappers.remove(component);<NEW_LINE>} else {<NEW_LINE>impl.remove(composition... | DesktopContainerHelper.assignContainer(component, null); |
1,501,255 | private void computeBlock() {<NEW_LINE>// Prepare message schedule.<NEW_LINE>for (int t = 16; t < blockBuffer.length; t++) {<NEW_LINE>blockBuffer[t] = enforceOverflow(sigma1(blockBuffer[t - 2]) + blockBuffer[t - 7] + sigma0(blockBuffer[t - 15]) + blockBuffer[t - 16]);<NEW_LINE>}<NEW_LINE>// Init working variables with ... | (f + hash[5]); |
1,229,092 | public void updateStream(String streamName, String releaseName, PackageIdentifier packageIdentifier, Map<String, String> updateProperties, boolean force, List<String> appNames) {<NEW_LINE>StreamDefinition streamDefinition = this.streamDefinitionRepository.findById(streamName).orElseThrow(() -> new NoSuchStreamDefinitio... | .auditServiceUtils.sanitizeProperties(updateProperties)); |
470,457 | public void dumpRaw(byte[] packet, Timestamp timestamp) throws NotOpenException {<NEW_LINE>if (packet == null || timestamp == null) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("packet: ").append(packet).append(" timestamp: ").append(timestamp);<NEW_LINE>throw new NullPointerException(sb.toStri... | pcap_dump(dumper, header, packet); |
232,430 | private int addRemoveLanguageTranslations(@NonNull final String adLanguage, final boolean add) {<NEW_LINE>final List<String> trlTableNames = retrieveTrlTableNames();<NEW_LINE>int retNo = 0;<NEW_LINE>final List<String> errorTables = new ArrayList<>();<NEW_LINE>final List<Throwable> errorCauses = new ArrayList<>();<NEW_L... | retNo += addTableTranslations(trlTableName, adLanguage); |
292,248 | public void decrypt(Record record) throws CryptoException {<NEW_LINE>if (record.getComputations() == null) {<NEW_LINE>LOGGER.warn("Record computations are not prepared.");<NEW_LINE>record.prepareComputations();<NEW_LINE>}<NEW_LINE>LOGGER.debug("Decrypting Record");<NEW_LINE>RecordCryptoComputations computations = recor... | length - readMac.getMacLength()); |
965,504 | final DescribeInstallationMediaResult executeDescribeInstallationMedia(DescribeInstallationMediaRequest describeInstallationMediaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInstallationMediaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,451,938 | public static Optional<String> readUserNetworkAddress(final HttpServletRequest request, final AppConfig config) {<NEW_LINE>final List<String> candidateAddresses = new ArrayList<>();<NEW_LINE>final boolean useXForwardedFor = config != null && config.readSettingAsBoolean(PwmSetting.USE_X_FORWARDED_FOR_HEADER);<NEW_LINE>i... | , xForwardedForValue.split(",")); |
1,736,559 | private CalculatorPlusListeners createStandardLocal(final VehicleRoutingProblem vrp, RouteAndActivityStateGetter statesManager) {<NEW_LINE>if (constraintManager == null)<NEW_LINE>throw new IllegalStateException("constraint-manager is null");<NEW_LINE>ActivityInsertionCostsCalculator actInsertionCalc;<NEW_LINE>Configure... | put(Break.class, breakInsertion); |
1,612,803 | public void testCallerIdentityPropagationFailureForDifferentRealm() throws Exception {<NEW_LINE>String testName = "testCallerIdentityPropagationFailureForDifferentRealm";<NEW_LINE>Log.info(c, testName, "Executing " + testName);<NEW_LINE>runInJCAFATServlet("fvtweb", servletName, testName);<NEW_LINE>assertNotNull("Expect... | , server.waitForStringInLog(CUSTOM_CREDENTIALS_MISSING_J2CA0668)); |
1,051,944 | public static Registry create(MetricsSettings metricsSettings) {<NEW_LINE>BaseRegistry result = new BaseRegistry(metricsSettings);<NEW_LINE>if (!metricsSettings.baseMetricsSettings().isEnabled()) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>MemoryMXBean memoryBean = ManagementFactory.getMemoryMXBean();<NEW_LINE>// loa... | , (SimpleCounter) clBean::getTotalLoadedClassCount); |
325,522 | private // the shared allocation optimization.<NEW_LINE>void addArcInitialization(EnumDeclaration node) {<NEW_LINE>List<Statement> stmts = node.getClassInitStatements().subList(0, 0);<NEW_LINE>int i = 0;<NEW_LINE>for (EnumConstantDeclaration constant : node.getEnumConstants()) {<NEW_LINE>VariableElement varElement = co... | new StringLiteral(stringLiteralName, typeUtil)); |
127,092 | private static List<ProductWithAvailabilityInfo> createProductWithAvailabilityInfos(@NonNull final LookupValue productLookupValue, @NonNull final ImmutableList<Group> availabilityInfoGroups, final boolean displayAvailabilityInfoOnlyIfPositive) {<NEW_LINE>final Set<ProductWithAvailabilityInfo> <MASK><NEW_LINE>ProductWit... | result = new LinkedHashSet<>(); |
82,083 | public void marshall(InstanceFleet instanceFleet, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (instanceFleet == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(instanceFleet.getId(), ID_BINDING);<NEW_LINE>... | instanceFleet.getName(), NAME_BINDING); |
304,651 | public static String generateObjectString(Object[] values) {<NEW_LINE>String[] line = new String[values.length];<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>Object value = values[i];<NEW_LINE>if (value instanceof DBDCollection) {<NEW_LINE>value = ((DBDCollection) value).getRawValue();<NEW_LINE>}<NEW_LIN... | ().trim() + ")"; |
1,169,868 | public Query rewrite(IndexReader reader) throws IOException {<NEW_LINE>Query rewritten = super.rewrite(reader);<NEW_LINE>if (rewritten != this) {<NEW_LINE>return rewritten;<NEW_LINE>}<NEW_LINE>if (termArrays.isEmpty()) {<NEW_LINE>return new MatchNoDocsQuery();<NEW_LINE>}<NEW_LINE>MultiPhraseQuery.Builder query = new Mu... | suffixTerms = termArrays.get(sizeMinus1); |
478,632 | final DescribeExportResult executeDescribeExport(DescribeExportRequest describeExportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | endClientExecution(awsRequestMetrics, request, response); |
1,706,112 | private static PointCollection createShipPoints() {<NEW_LINE>PointCollection points = new PointCollection(SpatialReference.create(32126));<NEW_LINE>points.add(new Point(2330611.130549, 202360.002957, 0.000000));<NEW_LINE>points.add(new Point(2330583.834672, 202525.984012, 0.000000));<NEW_LINE>points.add(new Point(23305... | (2330755.640702, 206433.354860, 0.000000)); |
9,931 | private boolean onlyWhitespacesBetween(final int endOffset, final int dot) {<NEW_LINE>// autoexpand a fold that was JUST CREATED, if there's no non-whitespace (not lexical, but actual) in between the<NEW_LINE>// fold end and the caret:<NEW_LINE>final String[] cnt = new String[1];<NEW_LINE>final Document doc = component... | getText(from, to - from); |
1,421,963 | static ZipFileData read(InputStream in, ZipFileData file) throws IOException {<NEW_LINE>if (file == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>byte[] fixedSizeData = new byte[FIXED_DATA_SIZE];<NEW_LINE>if (ZipUtil.readFully(in, fixedSizeData) != FIXED_DATA_SIZE) {<NEW_LINE>throw new ZipExcep... | ZipUtil.get32(fixedSizeData, CD_SIZE_OFFSET); |
1,823,336 | protected ScalaJavaJointCompileSpec createSpec() {<NEW_LINE>validateConfiguration();<NEW_LINE>DefaultScalaJavaJointCompileSpec spec = new DefaultScalaJavaJointCompileSpecFactory(compileOptions, getToolchain()).create();<NEW_LINE>spec.setSourceFiles(getSource().getFiles());<NEW_LINE>spec.setDestinationDir(getDestination... | spec.setCompileOptions(getOptions()); |
3,942 | public void add(LatLon latLon, String title, String originObjectName, String categoryName, int categoryColor, boolean autoFill) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (latLon == null || mapActivity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>isNew = true;<NEW_LINE>if (categoryName != nul... | getLongitude(), title, categoryName); |
1,050,597 | private <T> Collection<T> retrieveRecordsExecutor(@NonNull final String sql, @Singular final List<Object> sqlParams, @NonNull final Supplier<Collection<T>> collectionFactory, @NonNull final ResultSetRowLoader<T> rowLoader) {<NEW_LINE>final Connection conn = database.getConnection();<NEW_LINE>PreparedStatement pstmt = n... | close(rs, pstmt, conn); |
81,903 | public void run() {<NEW_LINE>log.info("Setting up runtime instance.");<NEW_LINE>Configuration config = new Configuration();<NEW_LINE>config.getCompiler().addPlugInVirtualDataWindow("sample", "samplevdw", <MASK><NEW_LINE>config.getCommon().addEventType(SampleTriggerEvent.class);<NEW_LINE>config.getCommon().addEventType(... | SampleVirtualDataWindowForge.class.getName()); |
1,360,513 | private JPanel createCommandBarPanel() {<NEW_LINE>YBoxPanel panel = new YBoxPanel();<NEW_LINE>panel.setBorder(BorderFactory.createTitledBorder(Translator.get("preview")));<NEW_LINE>panel.add(Box.createRigidArea(new Dimension(0, 5)));<NEW_LINE>YBoxPanel listsPanel = new YBoxPanel();<NEW_LINE>listsPanel.add(commandBarBut... | new FlowLayout(FlowLayout.LEFT)); |
1,264,009 | private void init() {<NEW_LINE>this.setupConnection();<NEW_LINE>// Create index if it does not already exist<NEW_LINE>IndicesExistsResponse response = client.admin().indices().exists(new IndicesExistsRequest(indexName)).actionGet();<NEW_LINE>boolean forceCreate = false;<NEW_LINE>if (response.isExists() && !this.overwri... | = this.config.getIdentityProperties(); |
839,303 | public PointSensitivityBuilder presentValueSensitivityRatesStickyModel(ResolvedSwaption swaption, RatesProvider ratesProvider, SabrSwaptionVolatilities swaptionVolatilities) {<NEW_LINE>validate(swaption, ratesProvider, swaptionVolatilities);<NEW_LINE>ZonedDateTime expiryDateTime = swaption.getExpiry();<NEW_LINE>double ... | expiry = swaptionVolatilities.relativeTime(expiryDateTime); |
607,269 | protected short gf_sq(short input) {<NEW_LINE>int[] B = { 0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF };<NEW_LINE>int x = input;<NEW_LINE>int t;<NEW_LINE>x = (x | (x << 8)) & B[3];<NEW_LINE>x = (x | (x << <MASK><NEW_LINE>x = (x | (x << 2)) & B[1];<NEW_LINE>x = (x | (x << 1)) & B[0];<NEW_LINE>t = x & 0x7FC000;<NEW_LI... | 4)) & B[2]; |
166,613 | public AnalysisResultLocation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AnalysisResultLocation analysisResultLocation = new AnalysisResultLocation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
226,803 | public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("fName", fName);<NEW_LINE>param.put("time", time);<NEW_LINE>MapPack out = (MapPack) tcp.getSingle(RequestCmd.OBJECT_CALL_MUTEX_PRO... | (out.getText("msg")); |
24,467 | protected static FastMethod make(Constructor<?> constructor) {<NEW_LINE>Class<?> klass = constructor.getDeclaringClass();<NEW_LINE>String descriptor = Type.getConstructorDescriptor(constructor) + constructor.getDeclaringClass().getClassLoader();<NEW_LINE>;<NEW_LINE>String key = Lang.md5(descriptor);<NEW_LINE>String cla... | FastMethod) cache.get(className); |
511,980 | /*<NEW_LINE>* Resolve @param tags while method scope<NEW_LINE>*/<NEW_LINE>private void resolveParamTags(MethodScope scope, boolean reportMissing, boolean considerParamRefAsUsage) {<NEW_LINE>AbstractMethodDeclaration methodDecl = scope.referenceMethod();<NEW_LINE>int paramTagsSize = this.paramReferences == null ? 0 : th... | resolve(scope, true, considerParamRefAsUsage); |
1,310,981 | public ItemStack injectItem(@Nonnull ItemStack stack, boolean doAdd, EnumFacing from, EnumDyeColor colour, double speed) {<NEW_LINE>if (pipe.getHolder().getPipeWorld().isRemote) {<NEW_LINE>throw new IllegalStateException("Cannot inject items on the client side!");<NEW_LINE>}<NEW_LINE>if (!canInjectItems(from)) {<NEW_LI... | toInsert, colour, speed, from); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.