idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
723,670 | public void refresh() {<NEW_LINE>if (ActiveDbInfo.getInstance() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (viewType.getInfoType() == InfoType.BROKER_INFO) {<NEW_LINE>if (!ActiveDbInfo.getInstance().getDbList(serverId).isEmpty()) {<NEW_LINE>selectionDB = ActiveDbInfo.getInstance().getDbList(serverId).get(0);<NE... | primaryYAxis.setRange(0, 100); |
842,548 | public static ExecuteScriptResponse unmarshall(ExecuteScriptResponse executeScriptResponse, UnmarshallerContext _ctx) {<NEW_LINE>executeScriptResponse.setRequestId(_ctx.stringValue("ExecuteScriptResponse.RequestId"));<NEW_LINE>executeScriptResponse.setErrorCode(_ctx.stringValue("ExecuteScriptResponse.ErrorCode"));<NEW_... | (_ctx.booleanValue("ExecuteScriptResponse.Success")); |
1,416,953 | public JSONObject logs(AppPackage appPackage, String user) throws IOException, ApiException {<NEW_LINE>JSONObject logs = new JSONObject();<NEW_LINE>String appId = appmanagerId(appPackage.getAppId());<NEW_LINE>String url = AppmanagerServiceUtil.getEndpoint() + "/apps/" + appId + "/component-package-tasks";<NEW_LINE>JSON... | + appId + "/component-package-tasks/" + id + "/logs"; |
851,587 | private String parseArgumentValue(Tokenizer tokenizer, String argName, CtPathElement pathElement) {<NEW_LINE>StringBuilder argValue = new StringBuilder();<NEW_LINE>Deque<String> <MASK><NEW_LINE>while (true) {<NEW_LINE>String token = tokenizer.getNextToken(ARG_VALUE_DELIMITERS);<NEW_LINE>if ("(".equals(token) || "[".equ... | stack = new ArrayDeque<>(); |
1,504,067 | private void validateAssignmentToNarrowedVariable(BLangSimpleVarRef varRef, Location location, AnalyzerData data) {<NEW_LINE>if (Symbols.isFlagOn(varRef.symbol.flags, Flags.FINAL)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Name name = names.fromIdNode(varRef.variableName);<NEW_LINE>SymbolEnv loopEnv = data.loopAndDoClause... | ).locations.add(location); |
1,345,275 | public void handleOutbound(Context ctx) throws ServletException, IOException {<NEW_LINE>Model model = new Model(ctx);<NEW_LINE>Payload payload = ctx.getPayload();<NEW_LINE>Action action = payload.getAction();<NEW_LINE>switch(action) {<NEW_LINE>case ALERT:<NEW_LINE>List<String> receivers = Splitters.by(",").noEmptyItem(... | Date startTime = payload.getStartTime(); |
1,206,298 | public synchronized void addSession(Endpoint ep, SessionExt sess) {<NEW_LINE>Class<?> cl = ep.getClass();<NEW_LINE>if (cl.equals(AnnotatedEndpoint.class)) {<NEW_LINE>AnnotatedEndpoint ae = (AnnotatedEndpoint) ep;<NEW_LINE>cl = ae.getServerEndpointClass();<NEW_LINE>}<NEW_LINE>// find the session array for the given endp... | = new ArrayList<Session>(); |
695,636 | private void initialiseServices() {<NEW_LINE>try {<NEW_LINE>this.requestTracing = Globals.getDefaultHabitat().getService(RequestTracingService.class);<NEW_LINE>} catch (NullPointerException ex) {<NEW_LINE>logger.log(Level.<MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>this.stuckThreads = Globals.getDefaultHabitat().getServi... | INFO, "Error retrieving Request Tracing service " + "during initialisation of Concurrent Context - NullPointerException", ex); |
1,089,280 | private static SignalAccount createLinkedAccount(File dataPath, String accountPath, String number, ACI aci, PNI pni, String password, String encryptedDeviceName, int deviceId, IdentityKeyPair aciIdentityKey, IdentityKeyPair pniIdentityKey, int registrationId, ProfileKey profileKey, final TrustNewIdentity trustNewIdenti... | resolveSelfRecipientTrusted(signalAccount.getSelfRecipientAddress()); |
515,627 | public void testRxObservableInvoker_post1(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultThreadFacto... | (Entity.xml(book)); |
1,587,821 | public JSONObject jsonSerialize() {<NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>JsonUtil.put(json, KEY_CONFIGURATION, configuration.toJson());<NEW_LINE>JsonUtil.put(json, KEY_CLIENT_ID, clientId);<NEW_LINE>JsonUtil.put(json, KEY_RESPONSE_TYPE, responseType);<NEW_LINE>JsonUtil.put(json, KEY_REDIRECT_URI, redir... | putIfNotNull(json, KEY_CLAIMS_LOCALES, claimsLocales); |
492,236 | protected Map<String, JMeterProperty> normalizeMap(Map<?, ?> coll) {<NEW_LINE>try {<NEW_LINE>// empty collection<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, JMeterProperty> newColl = coll.getClass().getDeclaredConstructor().newInstance();<NEW_LINE>for (Map.Entry<?, ?> entry : coll.entrySet()) {<NEW_LIN... | (item, convertObject(prop)); |
292,421 | public int compareTo(getSupervisorWorkersById_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = Boolean.valueOf(is_set_success()).<MASK><NEW_LINE>if (lastC... | compareTo(other.is_set_success()); |
1,739,329 | public TiDBExpression generateConstant() {<NEW_LINE>TiDBDataType type = TiDBDataType.getRandom();<NEW_LINE>if (Randomly.getBooleanWithRatherLowProbability()) {<NEW_LINE>return TiDBConstant.createNullConstant();<NEW_LINE>}<NEW_LINE>switch(type) {<NEW_LINE>case INT:<NEW_LINE>return TiDBConstant.createIntConstant(globalSt... | createBooleanConstant(Randomly.getBoolean()); |
1,321,729 | public com.amazonaws.services.applicationdiscovery.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.applicationdiscovery.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.applicationdiscovery.mo... | String currentParentElement = context.getCurrentParentElement(); |
1,258,807 | public String generate(TreeLogger logger, GeneratorContext genCtx, String fqInterfaceName) throws UnableToCompleteException {<NEW_LINE>TypeOracle oracle = genCtx.getTypeOracle();<NEW_LINE>JClassType interfaceType;<NEW_LINE>try {<NEW_LINE>interfaceType = oracle.getType(fqInterfaceName);<NEW_LINE>} catch (NotFoundExcepti... | implCreator.emitClass(logger, null); |
1,350,772 | Object str(VirtualFrame frame, PBaseException self, @Cached BaseExceptionAttrNode attrNode, @Cached CastToJavaStringNode toJavaStringNode, @Cached PyObjectStrAsJavaStringNode strNode) {<NEW_LINE>if (self.getExceptionAttributes() == null) {<NEW_LINE>// Not properly initialized.<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>//... | badChar = object.codePointAt(start); |
40,762 | boolean advanceExactWithinBlock(IndexedDISI disi, int target) throws IOException {<NEW_LINE>final int targetInBlock = target & 0xFFFF;<NEW_LINE>final <MASK><NEW_LINE>// If possible, skip ahead using the rank cache<NEW_LINE>// If the distance between the current position and the target is < rank-longs<NEW_LINE>// there ... | int targetWordIndex = targetInBlock >>> 6; |
1,334,065 | public void validateFileStoreSettings() throws InvalidFileStoreConfigurationException {<NEW_LINE>if (logFileSize >= maxPermanentFileStoreSize) {<NEW_LINE>// We do not want to fail if the logFileSize is more than or equel maxPermanentFileStoreSize,<NEW_LINE>// we reset the log to 1 MB less than the maxPermanentFileStore... | 1024 * 1024) }, null); |
1,332,094 | public static DescribeDcdnDomainMultiUsageDataResponse unmarshall(DescribeDcdnDomainMultiUsageDataResponse describeDcdnDomainMultiUsageDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainMultiUsageDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainMultiUsageDataResponse.RequestId"));<NEW_LIN... | (_ctx.stringValue("DescribeDcdnDomainMultiUsageDataResponse.StartTime")); |
1,683,328 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtTextCreate = namedWindow ? "@public create window MyInfraCI#keepall as (f1 string, f2 int, f3 string, f4 string)" : "@public create table MyInfraCI as (f1 string primary key, f2 int, f3 string, f4 strin... | env.compileExecuteFAF("select * from MyInfraCI where f3='>E1<' and f2=-2 and f1='E1'", path); |
1,357,687 | private static void showDiscountBanner(final MapActivity mapActivity, final ControllerData data) {<NEW_LINE>int iconId = mapActivity.getResources().getIdentifier(data.iconId, "drawable", mapActivity.getMyApplication().getPackageName());<NEW_LINE>final DiscountBarController toolbarController = new DiscountBarController(... | getMyApplication().logEvent("motd_close"); |
691,865 | private void createImageCache(final CreateImageCacheFromVolumeSnapshotMsg msg, final NoErrorCompletion completion) {<NEW_LINE>CreateImageCacheFromVolumeSnapshotReply reply = new CreateImageCacheFromVolumeSnapshotReply();<NEW_LINE>ImageInventory image = ImageInventory.valueOf(dbf.findByUuid(msg.getImageUuid(), ImageVO.c... | setActualSize(cr.getActualSize()); |
409,376 | protected synchronized void recolor() {<NEW_LINE>// dumpkeys(Border.class, Border::toString);<NEW_LINE>List<T> items = rows.items();<NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>T t = items.get(i);<NEW_LINE>boolean selected = selectionModel.isSelectedIndex(i);<NEW_LINE>TimelineTrack<T, N> <MASK><NEW_LINE>... | track = trackMap.get(t); |
1,553,477 | public CorefChain.CorefMention toCorefMention(JsonObject json, int cid) {<NEW_LINE>JsonArray <MASK><NEW_LINE>IntTuple tuple = null;<NEW_LINE>if (position != null) {<NEW_LINE>tuple = new IntTuple(position.size());<NEW_LINE>for (int i = 0; i < position.size(); i++) {<NEW_LINE>tuple.set(i, position.getInt(i));<NEW_LINE>}<... | position = json.getJsonArray("position"); |
185,239 | final UpdateDataSetResult executeUpdateDataSet(UpdateDataSetRequest updateDataSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDataSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
974,442 | public <S, D> D map(MappingContext<S, D> context) {<NEW_LINE>MappingContextImpl<S, D> contextImpl = (MappingContextImpl<S, D>) context;<NEW_LINE>Class<D> destinationType = context.getDestinationType();<NEW_LINE>// Resolve some circular dependencies<NEW_LINE>if (!Iterables.isIterable(destinationType)) {<NEW_LINE>D circu... | destination = typeMap(contextImpl, typeMap); |
1,848,752 | private DaemonClientConnection connectToCanceledDaemon(Collection<DaemonInfo> busyDaemons, ExplainingSpec<DaemonContext> constraint) {<NEW_LINE>DaemonClientConnection connection = null;<NEW_LINE>final Pair<Collection<DaemonInfo>, Collection<DaemonInfo>> canceledBusy = partitionByState(busyDaemons, Canceled);<NEW_LINE>f... | daemonRegistry.getIdle(), constraint); |
456,897 | private void relationMerge(Set<Relationship> relationships) {<NEW_LINE>HashSet<Relationship> loopReSet = new HashSet<>();<NEW_LINE>loopReSet.addAll(relationships);<NEW_LINE>for (Relationship re : loopReSet) {<NEW_LINE>for (Relationship inv : loopReSet) {<NEW_LINE>if (inv.getOperator().equals(re.getOperator()) && (inv.g... | tempSet = new ArrayList<>(); |
1,847,000 | public String apply(String v) {<NEW_LINE>// we attempt to resolve type variables<NEW_LINE>ClassInfo declarer = declaringClass;<NEW_LINE>int pos = -1;<NEW_LINE>for (; ; ) {<NEW_LINE>if (declarer == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<TypeVariable> typeParameters = declarer.typeParameters();<NEW_LINE>f... | .get(0), this); |
752,522 | public ToolsGroup<T> readScheme(@Nonnull final Document document) throws InvalidDataException, IOException, JDOMException {<NEW_LINE>Element root = document.getRootElement();<NEW_LINE>if (root == null || !TOOL_SET.equals(root.getName())) {<NEW_LINE>throw new InvalidDataException();<NEW_LINE>}<NEW_LINE>String groupName ... | value = optionElement.getAttributeValue(ATTRIBUTE_VALUE); |
94,561 | private void attachCluster(final APIAttachPrimaryStorageToClusterMsg msg, final NoErrorCompletion completion) {<NEW_LINE>final APIAttachPrimaryStorageToClusterEvent evt = new APIAttachPrimaryStorageToClusterEvent(msg.getId());<NEW_LINE>try {<NEW_LINE>extpEmitter.preAttach(self, msg.getClusterUuid());<NEW_LINE>} catch (... | , pinv.getUuid())); |
457,634 | public List<AggRule> matchForAgg(DataPoint dp) {<NEW_LINE>List<AggRule> ret = new ArrayList();<NEW_LINE>List<SubQuery> matchedRule = match(dp);<NEW_LINE>if (matchedRule != null && matchedRule.size() > 0) {<NEW_LINE>Map<String, AggRule> aggRuleMap = new HashMap();<NEW_LINE>matchedRule.forEach(subQuery -> {<NEW_LINE>Stri... | aggRuleMap.put(aggId, aggRule); |
192,481 | private void applyColumnWidths() {<NEW_LINE>Map<Integer, Double> constrainedWidths = new LinkedHashMap<>();<NEW_LINE>for (int index = 0; index < columns.size(); index++) {<NEW_LINE>Column<?, T> column = columns.get(index);<NEW_LINE>boolean hasAutoWidth <MASK><NEW_LINE>if (!hasAutoWidth) {<NEW_LINE>continue;<NEW_LINE>}<... | = column.getWidth() < 0; |
1,399,366 | private LinkedList<DelimitedToken> split() {<NEW_LINE>LinkedList<DelimitedToken> splits = new LinkedList<>();<NEW_LINE>int startOffset = offsetAtt.startOffset();<NEW_LINE>int charIndex = 0;<NEW_LINE>int lastCharSplit = 0;<NEW_LINE>for (PrimitiveIterator.OfInt it = termAtt.codePoints().iterator(); it.hasNext(); ) {<NEW_... | charIndex += Character.charCount(cp); |
319,136 | // ~ Methods --------------------------------------------------------------------------------------------------------------<NEW_LINE>public int compare(Object o1, Object o2) {<NEW_LINE>Instance instance1 = sortingOrder ? (Instance) o1 : (Instance) o2;<NEW_LINE>Instance instance2 = sortingOrder ? (Instance) o2 : (Instan... | "Unsupported compare operation for " + o1 + ", " + o2); |
314,733 | private StanfordCoreNLP mkStanfordCoreNLP(Properties props) {<NEW_LINE>StanfordCoreNLP impl;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>props.stringPropertyNames().stream().filter(key -> !key.equalsIgnoreCase("date")).forEach(key -> {<NEW_LINE>String pvalue = props.getProperty(key);<NEW_LINE>sb.append(ke... | .makePair(cacheKey, impl)); |
549,269 | public void write(JsonWriter out, NumberOnly value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map.Entry<Stri... | String) entry.getValue()); |
1,714,137 | public static String editLatex(final String oldEquation, final NodeModel node) {<NEW_LINE>final JEditorPane textArea = new JEditorPane();<NEW_LINE>SourceTextEditorUIConfigurator.configureColors(textArea);<NEW_LINE>final JScrollPane editorScrollPane = new JScrollPane(textArea);<NEW_LINE><MASK><NEW_LINE>editorScrollPane.... | editorScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); |
1,351,741 | public TeslaBaseResult put(@RequestBody TabUpsertParam param, String stageId) {<NEW_LINE>ProductopsTab tab = productopsTabRepository.findFirstByTabIdAndStageId(param.getId(), stageId);<NEW_LINE>if (tab == null) {<NEW_LINE>tab = ProductopsTab.builder().stageId(stageId).gmtCreate(System.currentTimeMillis()).build();<NEW_... | (param.getElements())); |
246,048 | public ChangeInfo implement() {<NEW_LINE>CancellableTask<WorkingCopy> task = new CancellableTask<WorkingCopy>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void cancel() {<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>workingCopy.toPhase(JavaSou... | clazz = classHandle.resolve(workingCopy); |
1,224,889 | /*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private Object invokeFunctionAndEnrichResultIfNecessary(Object value) {<NEW_LINE>AtomicReference<Message<?>> <MASK><NEW_LINE>Object inputValue;<NEW_LINE>if (value instanceof Flux) {<NEW_LINE>inputValue = ((Flux) value).map(v -> {<NEW_LINE>if (v ... | firstInputMessage = new AtomicReference<>(); |
1,505,218 | protected void initUndoHistory() {<NEW_LINE>final int x = getCaretEndPosX();<NEW_LINE>final int y = getCaretMouseReleasedY();<NEW_LINE>final ZyLineContent lineContent = getLineContent(y);<NEW_LINE>final IZyEditableObject lineFragmentObject = lineContent.getLineFragmentObjectAt(x);<NEW_LINE>m_editableObject = lineConten... | getCaretMouseReleasedX(), getCaretMouseReleasedY()); |
1,471,800 | private void buildAndShowDialog() {<NEW_LINE>FormLayout layout = new FormLayout("5px,100px,5px,left:default,5px:grow(1.0)");<NEW_LINE>final XFormDialog dialog = ADialogBuilder.buildDialog(AuthorizationTypeForm.class, null, layout);<NEW_LINE>profileNameField = (JTextFieldFormField) dialog.getFormField(AuthorizationTypeF... | profileNameField.setValue("Profile " + nextProfileIndex); |
356,019 | private static Bgpv4Route satAssignmentToInputRoute(BDD fullModel, ConfigAtomicPredicates configAPs) {<NEW_LINE>Bgpv4Route.Builder builder = Bgpv4Route.builder().setOriginatorIp(Ip.ZERO).setOriginMechanism(OriginMechanism.LEARNED).setOriginType(OriginType.IGP);<NEW_LINE>BDDRoute r = new BDDRoute(fullModel.getFactory(),... | getPrefixLength().satAssignmentToLong(fullModel); |
1,186,718 | public static DescribeBackupSourcesResponse unmarshall(DescribeBackupSourcesResponse describeBackupSourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupSourcesResponse.setRequestId(_ctx.stringValue("DescribeBackupSourcesResponse.RequestId"));<NEW_LINE>describeBackupSourcesResponse.setSuccess(_ctx.boolean... | (_ctx.integerValue("DescribeBackupSourcesResponse.PageNumber")); |
354,060 | public boolean place(@Nonnull FeaturePlaceContext<ResizableOreFeatureConfig> context) {<NEW_LINE>Random random = context.random();<NEW_LINE>BlockPos pos = context.origin();<NEW_LINE>WorldGenLevel world = context.level();<NEW_LINE>ResizableOreFeatureConfig config = context.config();<NEW_LINE>float angle = random.nextFlo... | Mth.ceil(adjustedSize) - i; |
659,824 | public InfrastructureProperties requestInfrastructurePropertiesInfo(String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/config/info/infrastructure";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryPa... | localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
628,946 | private void startCapturing() {<NEW_LINE>Logging.d(TAG, "Start capturing");<NEW_LINE>checkIsOnCameraThread();<NEW_LINE>state = SessionState.RUNNING;<NEW_LINE>camera.setErrorCallback(new android.hardware.Camera.ErrorCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(int error, android.hardware.Camera... | this, e.getMessage()); |
317,921 | public void onClick(View v) {<NEW_LINE>logDebug("onClick");<NEW_LINE>switch(v.getId()) {<NEW_LINE>case R.id.fab_select:<NEW_LINE>case R.id.action_text:<NEW_LINE>{<NEW_LINE>dbH.setLastCloudFolder(Long.toString(parentHandle));<NEW_LINE>if (((FileExplorerActivity) context).isMultiselect()) {<NEW_LINE>logDebug("Send severa... | (R.string.no_files_selected_warning)); |
695,955 | private void jbInit() throws Exception {<NEW_LINE>CompiereColor.setBackground(panel);<NEW_LINE>newBorder = new TitledBorder("");<NEW_LINE>accountBorder = new TitledBorder("");<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>newPanel.setBorder(newBorder);<NEW_LINE>newPanel.setLayout(newLayout);<NEW_LINE>newBorder.set... | getCtx(), "New"))); |
654,045 | public Response<DataLakePathClient> undeletePathWithResponse(String deletedPath, String deletionId, Duration timeout, Context context) {<NEW_LINE>Mono<Response<DataLakePathAsyncClient>> response = dataLakeFileSystemAsyncClient.undeletePathWithResponse(deletedPath, deletionId, context);<NEW_LINE>Response<DataLakePathAsy... | new IllegalStateException("'pathClient' expected to be either a file " + "or directory client.")); |
1,849,826 | public boolean renameProperty(String name, String newName) {<NEW_LINE>if (name.equals(newName)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>RestParamProperty parameter = methodParams.getProperty(name);<NEW_LINE>boolean renamePerformed;<NEW_LINE>if (parameter.getParamLocation() == NewRestResourceActionBase.ParamLocatio... | methodParams.renameProperty(name, newName); |
82,817 | private void createInventoryLine(@NonNull final I_I_Inventory importRecord, @NonNull final InventoryId inventoryId, @NonNull final OrgId orgId) {<NEW_LINE>final LocatorId locatorId = warehouseDAO.getLocatorIdByRepoIdOrNull(importRecord.getM_Locator_ID());<NEW_LINE>Check.assumeNotNull(locatorId, "locator shall be set");... | ofRepoId(importRecord.getM_Product_ID()); |
346,520 | private static void loadDetails(View dialogLayout, ThemedActivity activity, MediaDetailsMap<String, String> metadata) {<NEW_LINE>LinearLayout detailsTable = dialogLayout.findViewById(R.id.ll_list_details);<NEW_LINE>int tenPxInDp = Measure.pxToDp(10, activity);<NEW_LINE>// more or less an hundred. Did not used weight fo... | setTypeface(null, Typeface.BOLD); |
1,100,065 | public static String serializeToJson(PlanInfo planInfo) {<NEW_LINE>JSONObject planInfoJson = new JSONObject();<NEW_LINE>planInfoJson.put("id", planInfo.getId());<NEW_LINE>planInfoJson.put("baselineId", planInfo.getBaselineId());<NEW_LINE>planInfoJson.put("traceId", planInfo.getTraceId());<NEW_LINE>planInfoJson.put("pla... | "hashcode", planInfo.getTablesHashCode()); |
449,659 | public void show() {<NEW_LINE>if (headLine == null)<NEW_LINE>headLine = Res.get("setXMRTxKeyWindow.headline");<NEW_LINE>width = 868;<NEW_LINE>createGridPane();<NEW_LINE>addHeadLine();<NEW_LINE>addContent();<NEW_LINE>addButtons();<NEW_LINE>regexValidator = new RegexValidator();<NEW_LINE>regexValidator.setPattern("[a-fA-... | ).validate(txKey).isValid; |
830,753 | protected void putSub(byte[] big, int off, int stride, int[] block, int mbW, int mbH) {<NEW_LINE>int blOff = 0;<NEW_LINE>if (mbW == 2) {<NEW_LINE>for (int i = 0; i < (1 << mbH); i++) {<NEW_LINE>big[off] = clipTo8Bit(block[blOff]);<NEW_LINE>big[off + 1] = clipTo8Bit(block[blOff + 1]);<NEW_LINE>big[off + 2] = clipTo8Bit(... | = clipTo8Bit(block[blOff]); |
1,691,493 | private void fillNotificationCount(final String userId, final Map<String, Object> dataModel) {<NEW_LINE>final int unreadCommentedNotificationCnt = notificationQueryService.getUnreadNotificationCountByType(userId, Notification.DATA_TYPE_C_COMMENTED);<NEW_LINE>dataModel.put(Common.UNREAD_COMMENTED_NOTIFICATION_CNT, unrea... | put(Common.UNREAD_POINT_NOTIFICATION_CNT, unreadPointNotificationCnt); |
614,934 | public EntityDetailResponse undoEntityUpdate(String serverName, String userId, String entityGUID) {<NEW_LINE>final String methodName = "undoEntityUpdate";<NEW_LINE>log.debug("Calling method: " + methodName);<NEW_LINE>EntityDetailResponse response = new EntityDetailResponse();<NEW_LINE>try {<NEW_LINE>OMRSMetadataCollect... | error, userId, serverName, methodName); |
416,139 | public PresignedUrlDownloadResult download(PresignedUrlDownloadRequest presignedUrlDownloadRequest) throws SdkClientException {<NEW_LINE>assertNotNull(presignedUrlDownloadRequest.getPresignedUrl(), "Presigned URL");<NEW_LINE>final ProgressListener listener = presignedUrlDownloadRequest.getGeneralProgressListener();<NEW... | presignedUrlDownloadRequest, s3Object.getObjectMetadata()); |
369,159 | public void marshall(CreateMeetingWithAttendeesRequest createMeetingWithAttendeesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createMeetingWithAttendeesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | createMeetingWithAttendeesRequest.getMediaRegion(), MEDIAREGION_BINDING); |
1,850,916 | public ExtensionsRegistry createRegistry(String registryId, JRPropertiesMap properties) {<NEW_LINE>List<PropertySuffix> castorMappingProperties = <MASK><NEW_LINE>List<CastorMapping> castorMappings = new ArrayList<>();<NEW_LINE>for (Iterator<PropertySuffix> it = castorMappingProperties.iterator(); it.hasNext(); ) {<NEW_... | JRPropertiesUtil.getProperties(properties, CASTOR_MAPPING_PROPERTY_PREFIX); |
729,683 | public static Rule compose(JvmTarget target, RuleType ruleType) {<NEW_LINE>List<String> deps = ImmutableList.<String>builder().add(":" + src(target)).addAll(external(target.getExternalDeps(SourceSetType.TEST))).addAll(targets(target.getTargetDeps(SourceSetType.TEST))).build();<NEW_LINE>Set<String> aptDeps = ImmutableSe... | (target.getExtraOpts(ruleType)); |
806,387 | public ArrayList<Actor> scrapeActors() {<NEW_LINE>Elements actorElements = document.select(".movieInfo a[href*=/listpages/actor");<NEW_LINE>ArrayList<Actor> actorList = new ArrayList<>();<NEW_LINE>for (Element currentActor : actorElements) {<NEW_LINE>String actorName = currentActor.text().trim();<NEW_LINE>String actorH... | (actorName, "", null)); |
30,094 | public static RateGalleryParser.Result rateGallery(@Nullable EhClient.Task task, OkHttpClient okHttpClient, long apiUid, String apiKey, long gid, String token, float rating) throws Throwable {<NEW_LINE>final JSONObject json = new JSONObject();<NEW_LINE>json.put("method", "rategallery");<NEW_LINE>json.put("apiuid", apiU... | String url = EhUrl.getApiUrl(); |
1,524,829 | void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>final byte[] applicationKeyIndex = MeshParserUtils.addKeyIndexPadding(mAppKeyIndex);<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>if (mModelIdenti... | .putShort((short) mElementAddress); |
1,438,867 | protected Object profile(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>executeCheckPassword(request, response);<NEW_LINE>checkGlobalAuth(ConnectContext.get().getCurrentUserIdentity(), PrivPredicate.ADMIN);<NEW_LINE>Map<String, Object> feVersionInfo = Maps.newHashMap();<NEW_LINE>feVersionInfo.<MAS... | put("dorisBuildVersionPrefix", Version.DORIS_BUILD_VERSION_PREFIX); |
1,374,772 | private void registerConstantSerializers(boolean isCompatibility) {<NEW_LINE>registerConstant(nullSerializerAdapter);<NEW_LINE>if (!isCompatibility) {<NEW_LINE>registerConstant(compactSerializerAdapter);<NEW_LINE>registerConstant(compactWithSchemaSerializerAdapter);<NEW_LINE>}<NEW_LINE>registerConstant(DataSerializable... | .class, new CharSerializer()); |
1,608,952 | private static double apply(CompLongFloatVector v1, LongFloatVector v2) {<NEW_LINE>double dotValue = 0.0;<NEW_LINE>if (v2.isSparse() && v1.size() > v2.size()) {<NEW_LINE>ObjectIterator<Long2FloatMap.Entry> iter = v2.getStorage().entryIterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Long2FloatMap.Entry entry = ite... | .getStorage().getValues(); |
1,708,165 | public EnvironmentTemplateFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnvironmentTemplateFilter environmentTemplateFilter = new EnvironmentTemplateFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | JsonToken token = context.getCurrentToken(); |
1,429,282 | private static void tryAssertion17(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "sum(price)" };<NEW_LINE>ResultAssertTestResult expected =... | ResultAssertTestResult(CATEGORY, outputLimit, fields); |
1,080,383 | public static // alias<NEW_LINE>boolean accessExpression(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "accessExpression"))<NEW_LINE>return false;<NEW_LINE>boolean r;<NEW_LINE>Marker m = enter_section_(b, l, _NONE_, ACCESS_EXPRESSION, "<access expression>");<NEW_LINE>r = captureNumericOperation(b, l + 1);... | heredoc(b, l + 1); |
918,453 | public void delete(byte[] key) throws IOException {<NEW_LINE>if (this.index == null)<NEW_LINE>return;<NEW_LINE>key = normalizeKey(key);<NEW_LINE>// pre-check before synchronization<NEW_LINE>long seek = this.index.get(key);<NEW_LINE>if (seek < 0)<NEW_LINE>return;<NEW_LINE>synchronized (this) {<NEW_LINE>// check again if... | ": too long size " + size + " in record at " + seek); |
1,150,827 | final RetryBuildBatchResult executeRetryBuildBatch(RetryBuildBatchRequest retryBuildBatchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retryBuildBatchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,757,495 | private static void compressTheSurprisingValues(final CompressedState target, final CpcSketch source, final int[] pairs, final int numPairs) {<NEW_LINE>assert (numPairs > 0);<NEW_LINE>target.numCsv = numPairs;<NEW_LINE>final int srcK = 1 << source.lgK;<NEW_LINE>final int numBaseBits = CpcCompression.golombChooseNumberO... | safeLengthForCompressedPairBuf(srcK, numPairs, numBaseBits); |
1,542,093 | private void showImageSearchOptions() {<NEW_LINE>// TODO: move to presenter<NEW_LINE>List<FloatingMenuItem> items = new ArrayList<>();<NEW_LINE>for (ImageSearch imageSearch : ImageSearch.engines) {<NEW_LINE>items.add(new FloatingMenuItem(imageSearch.getId(), imageSearch.getName()));<NEW_LINE>}<NEW_LINE>ToolbarMenuItem ... | navigation.findItem(ToolbarMenu.OVERFLOW_ID); |
1,464,922 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player opponent = game.getPlayer(getTargetPointer()<MASK><NEW_LINE>ChoiceColor choice = new ChoiceColor();<NEW_LINE>if (controller == null || opponent == null || !controller.choose(outcome, ... | .getFirst(game, source)); |
1,778,298 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i... | dw, sourceRegister2, qw, value); |
647,898 | public CreateGlobalTableResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateGlobalTableResult createGlobalTableResult = new CreateGlobalTableResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<... | int originalDepth = context.getCurrentDepth(); |
710,414 | public RuleGroupUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RuleGroupUpdate ruleGroupUpdate = new RuleGroupUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | class).unmarshall(context)); |
125,276 | private QueryIterator resultsToQueryIterator(Binding binding, Node subj, Node score, Node literal, Node graph, Node prop, Collection<TextHit> results, ExecutionContext execCxt) {<NEW_LINE>log.trace("resultsToQueryIterator CALLED with results: {}", results);<NEW_LINE>Var sVar = Var.isVar(subj) ? Var.alloc(subj) : null;<... | graphVar, hit.getGraph()); |
272,292 | public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (request.getDBName().isEmpty()) {<NEW_LINE>... | exchange, result.getEtag()); |
473,390 | public com.amazonaws.services.identitystore.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.identitystore.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.identitystore.model.ResourceNotFoundE... | JsonToken token = context.getCurrentToken(); |
1,422,410 | private static Map<String, MetadataFieldMapper.TypeParser> initBuiltInMetadataMappers() {<NEW_LINE>Map<String, MetadataFieldMapper.TypeParser> builtInMetadataMappers;<NEW_LINE>// Use a LinkedHashMap for metadataMappers because iteration order matters<NEW_LINE>builtInMetadataMappers = new LinkedHashMap<>();<NEW_LINE>// ... | , new SeqNoFieldMapper.TypeParser()); |
321,143 | public void run() {<NEW_LINE>// extractBlockAsRoot() fires MoveEvent immediately.<NEW_LINE><MASK><NEW_LINE>// Since this block was already on the workspace, the block's position should<NEW_LINE>// have been assigned correctly during the most recent layout pass.<NEW_LINE>BlockGroup bg = mHelper.getRootBlockGroup(activeT... | extractBlockAsRoot(activeTouchedView.getBlock()); |
1,377,765 | public static Path link(Grob shape1, Grob shape2, String orientation) {<NEW_LINE>if (shape1 == null || shape2 == null)<NEW_LINE>return null;<NEW_LINE>Path p = new Path();<NEW_LINE>Rect a = shape1.getBounds();<NEW_LINE>Rect b = shape2.getBounds();<NEW_LINE>if (orientation.equals("horizontal")) {<NEW_LINE>double hw = (b.... | a.width, a.y); |
907,501 | protected void process(BuddyPluginBuddy from_buddy, Map msg) {<NEW_LINE>chatParticipant p = getOrAddParticipant(from_buddy);<NEW_LINE>int type = ((Long) msg.get("type")).intValue();<NEW_LINE>if (type == CHAT_MSG_TYPE_TEXT) {<NEW_LINE>synchronized (history) {<NEW_LINE>history.add(new chatMessage(p.getName(), msg));<NEW_... | l.messageReceived(p, msg); |
1,208,745 | final CopyWorkspaceImageResult executeCopyWorkspaceImage(CopyWorkspaceImageRequest copyWorkspaceImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyWorkspaceImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
969,079 | public void initialize() {<NEW_LINE>if (this.release == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.release = getReleaseOptionFromCompliance(this.release);<NEW_LINE>this.releaseInHex = Integer.toHexString(Integer.parseInt(this.release)).toUpperCase();<NEW_LINE>Path lib = Paths.get(this.zipFilename).getParent();<N... | FileSystems.newFileSystem(uri, env); |
1,331,645 | public PlanFragment visitPhysicalEsScan(OptExpression optExpression, ExecPlan context) {<NEW_LINE>PhysicalEsScanOperator node = (PhysicalEsScanOperator) optExpression.getOp();<NEW_LINE>context.getDescTbl().addReferencedTable(node.getTable());<NEW_LINE>TupleDescriptor tupleDescriptor = context.getDescTbl().createTupleDe... | ), scanNode, DataPartition.RANDOM); |
1,363,771 | public Request<DescribeConfigurationSetRequest> marshall(DescribeConfigurationSetRequest describeConfigurationSetRequest) {<NEW_LINE>if (describeConfigurationSetRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeConfigurationSetRequest)");<NEW_LINE>}<NEW_LINE>Reques... | request.addParameter("Action", "DescribeConfigurationSet"); |
350,736 | public void createItem(Item item, int page, Definitions.ItemPosition itemPosition) {<NEW_LINE>Log.i(this.getClass().getName(), String.format("createItem: %s (ID: %d)", item.getLabel(), item.getId()));<NEW_LINE>ContentValues itemValues = new ContentValues();<NEW_LINE>itemValues.put(COLUMN_TIME, item.getId());<NEW_LINE>i... | COLUMN_Y_POS, item.getY()); |
1,688,941 | final CancelWorldExportJobResult executeCancelWorldExportJob(CancelWorldExportJobRequest cancelWorldExportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelWorldExportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,537,372 | private Ini loadSystemIniFile(String fileName) {<NEW_LINE>// config files from userdir<NEW_LINE>// NOI18N<NEW_LINE>String filePath = getUserConfigPath() + "/" + fileName;<NEW_LINE>File file = FileUtil.normalizeFile(new File(filePath));<NEW_LINE>Ini system = null;<NEW_LINE>try {<NEW_LINE>system = new Ini(new FileReader(... | warning("Could not load the file " + filePath + ". Falling back on svn defaults."); |
1,718,547 | public okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/... | String[] localVarAccepts = { "*/*" }; |
1,713,308 | private void find(char[][] board, boolean[][] visited, int i, int j, int m, int n, Set<String> result, TrieNode212 node) {<NEW_LINE>if (i < 0 || i >= m || j < 0 || j >= n || visited[i][j]) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>node = node.child[board[i][j] - 'a'];<NEW_LINE>visited[i][j] = true;<NEW_LINE>if (node == nu... | result.add(node.val); |
426,121 | private void print() {<NEW_LINE>for (int i = 0; i < nThreads; i++) {<NEW_LINE>// NOI18N<NEW_LINE>System.err.print("id = ");<NEW_LINE>System.err.print(threadIds[i]);<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>for (int j = 0; j < nThreadStates; j++) {<NEW_LINE>System.err.print(threadStates[i][j]);<NEW_LINE>}<NEW_LINE>Sy... | System.err.print(", states = "); |
267,054 | public void initVersion0() {<NEW_LINE>// if the directory is empty create empty files<NEW_LINE>if (baseDir.list() != null && baseDir.list().length <= 1) {<NEW_LINE>try {<NEW_LINE>new File(baseDir, "0.index").createNewFile();<NEW_LINE>new File(<MASK><NEW_LINE>logger.info("No index or data files found, creating empty fil... | baseDir, "0.data").createNewFile(); |
132,762 | public SchemaConfig doVisitorParse(SchemaConfig schema, RouteResultset rrs, SQLStatement stmt, ServerSchemaStatVisitor visitor, ShardingService service, boolean isExplain) throws SQLException {<NEW_LINE>rrs.setOnline(true);<NEW_LINE>SQLCreateIndexStatement createStmt = (SQLCreateIndexStatement) stmt;<NEW_LINE>SQLTableS... | ? null : schema.getName(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.