content stringlengths 40 137k |
|---|
"public void hub_sums_predictions_for_facilities() {\n final long facility2Id = dummies.createFacility();\n final Long operator2Id = facilityService.getFacility(facility2Id).operatorId;\n final User user2 = devHelper.createOrUpdateUser(new NewUser(2L, \"String_Node_Str\", OPERATOR_API, operator2Id, \"String_No... |
"public Map<String, String> toGuestVarialbe() {\n Map<String, String> guestVarialbe = new HashMap<String, String>();\n Gson gson = new Gson();\n guestVarialbe.put(Constants.GUEST_VARIABLE_NIC_DEVICES, gson.toJson(nics));\n NicDeviceConfigSpec defaultNic = null;\n if (defaultPg == null) {\n default... |
"private void cancelWarpAnimation(String msg, boolean abortAnimation) {\n if (DEBUG_WARP)\n Log.v(TAG, \"String_Node_Str\" + msg + \"String_Node_Str\" + abortAnimation + \"String_Node_Str\");\n if (abortAnimation) {\n KeyguardWidgetFrame v = (KeyguardWidgetFrame) getPageAt(getPageWarpIndex());\n ... |
"public void applyRelationships(OSchemaHelper helper) {\n super.applyRelationships(helper);\n helper.linkedClass(ByteArrayEntityHandler.OCLASS_NAME, \"String_Node_Str\", DeploymentEntityHandler.OCLASS_NAME, \"String_Node_Str\");\n}\n"
|
"private void addDataPairToDataSet(MLDataPair pair, double crossValidationRate, double random) {\n if (Double.compare(random, crossValidationRate) < 0) {\n this.testingData.add(pair);\n } else {\n this.trainingData.add(pair);\n }\n}\n"
|
"private String getDlnaOrgPnFlags(RendererConfiguration mediaRenderer, int localizationValue) {\n PmsConfiguration configuration = PMS.getConfiguration(mediaRenderer);\n String mime = getRendererMimeType(mediaRenderer);\n String dlnaOrgPnFlags = null;\n if (mediaRenderer.isDLNAOrgPNUsed() || mediaRenderer.i... |
"public static Resource getResource(String path) {\n if (path == null)\n return null;\n logger.info(\"String_Node_Str\" + path);\n return longestPrefixMatch(path);\n}\n"
|
"public boolean canBuild(Player player, Location loc) {\n String playerName = player.getName();\n Integer id = getLandId(loc);\n if (id > 0) {\n return getLandById(id).hasPermission(playerName);\n } else {\n if (Config.preventGlobalBuildWithoutPerm) {\n return iCoLand.hasPermission(... |
"public Map<String, List<Property>> getAdditionalProperties() {\n if (!hasAdditionalProperties()) {\n additionalProperties = new HashMap<String, List<Property>>();\n }\n return additionalProperties;\n}\n"
|
"public synchronized InetSocketAddress initPassiveDataConnection() throws DataConnectionException {\n closeDataConnection();\n int passivePort = session.getListener().getDataConnectionConfiguration().requestPassivePort();\n if (passivePort == -1) {\n servSoc = null;\n throw new DataConnectionExce... |
"protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException {\n if (node instanceof FieldQueryNode) {\n FieldQueryNode fieldNode = (FieldQueryNode) node;\n String field = ((FieldQueryNode) node).getFieldAsString();\n if (field.equals(\"String_Node_Str\")) {\n String... |
"public void transitionToClosed() {\n if (isOpen) {\n mBackground.reverseTransition(TRANSITION_DURATION * 2);\n flipit();\n isOpen = false;\n }\n}\n"
|
"public AbstractParseState startElement(String tagName) {\n ElementDefn defn = (ElementDefn) getElement().getDefn();\n if (DesignSchemaConstants.OVERRIDDEN_VALUES_TAG.equalsIgnoreCase(tagName)) {\n if (((defn.getSlotCount() > 0 || getElement().getContents().size() > 0) && defn.canExtend()) || (!defn.canExt... |
"public void testAPIRoleChangeEffectInStore() throws Exception {\n apiPublisher.login(contextUsername, contextUserPassword);\n APIRequest brokenApiRequest = new APIRequest(BROKEN_API, BROKEN_API, new URL(EP_URL));\n brokenApiRequest.setVersion(API_VERSION);\n brokenApiRequest.setProvider(contextUsername);\n... |
"public void onMessageReceived(RemoteMessage message) {\n Map data = message.getData();\n AppLog.v(T.NOTIFS, \"String_Node_Str\");\n if (data == null) {\n AppLog.v(T.NOTIFS, \"String_Node_Str\");\n return;\n }\n if (!mAccountStore.hasAccessToken()) {\n return;\n }\n if (PUSH_TY... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_realtime_linechart);\n mChart = (LineChart) findViewById(R.id.chart1)... |
"public void onCreate() {\n super.onCreate();\n mIBinder = new ServiceBinder();\n audioRecorder = new AudioRecorder();\n mediaSaveHelper = new MediaSaveHelper();\n handler = new AudioRecordingDbmHandler();\n handler.addRecorder(audioRecorder);\n}\n"
|
"private String generateNewQuery() {\n if (realDBType != null) {\n dbType = realDBType;\n }\n if (node != null && node instanceof INode) {\n process = ((INode) node).getProcess();\n }\n if (this.realTableId != null && this.dbNameAndDbTypeMap.containsKey(this.realTableId)) {\n dbType ... |
"protected boolean _transferInputs(IOPort port) throws IllegalActionException {\n if (!port.isInput() || !port.isOpaque()) {\n throw new IllegalActionException(this, port, \"String_Node_Str\" + \"String_Node_Str\");\n }\n if (port instanceof RefinementPort) {\n return super._transferInputs(port);... |
"public FlowContext handleClusterCreationFailure(FlowContext flowContext) throws CloudbreakException {\n LOGGER.debug(\"String_Node_Str\", flowContext);\n ProvisioningContext context = (ProvisioningContext) flowContext;\n Cluster cluster = clusterService.updateClusterStatusByStackId(context.getStackId(), Statu... |
"public void handleMessage(Message msg) {\n Executor onUIThread = (Executor) msg.obj;\n onUIThread.execute(onUIThread.reason_, onUIThread.cont_);\n}\n"
|
"public boolean finalizeCommandsOnStart(Commands cmds, VirtualMachineProfile<DomainRouterVO> profile) {\n DomainRouterVO router = profile.getVirtualMachine();\n NicProfile controlNic = null;\n for (NicProfile nic : profile.getNics()) {\n if (nic.getTrafficType() == TrafficType.Control && nic.getIp4Addre... |
"private boolean checkForRefresh(LinkedListLogListener listener) {\n if (!txtOutput.isDisposed()) {\n if (listener.isRefreshNeeded() && !locked) {\n return true;\n } else if (txtOutput.getText().equals(\"String_Node_Str\") && listener.getNumberOfCachedLines() > 0) {\n return true;... |
"public void onClick(View v) {\n homeFilteringCallback.onApplyFiltering(choosenPlace, choosenRegion, choosenCategory);\n dismiss();\n}\n"
|
"public void setMaximumInformationLoss(final InformationLoss<?> a) {\n node.maxInformationLoss = InformationLoss.createInformationLoss(a, metric, getDeserializationContext().minLevel, getDeserializationContext().maxLevel);\n}\n"
|
"public boolean equals(Object other) {\n if (this == other)\n return true;\n if (!(other instanceof PingTask))\n return false;\n PingTask that = (PingTask) other;\n return this.address.equals(that.address) && this.port == that.port && this.period == that.period;\n}\n"
|
"public void testElementWrapper() {\n MySchemaOutputResolver outputResolver = new MySchemaOutputResolver();\n try {\n MySchemaOutputResolver outputResolver = new MySchemaOutputResolver();\n Class[] classes = new Class[] { MyClassThree.class };\n JAXBContext context = (org.eclipse.persistence.... |
"public float getLongitude() {\n return ((Float) entity.getProperty(LONGITUDE_KEY)).floatValue();\n}\n"
|
"public Builder setApplicationType(WebTarget targetURL, String applicationType) {\n Builder builder;\n if (\"String_Node_Str\".equals(applicationType)) {\n mediaType = MediaType.TEXT_PLAIN_TYPE;\n } else {\n mediaType = MediaType.APPLICATION_JSON_TYPE;\n }\n builder = targetURL.request(medi... |
"public void showResults() {\n for (ModelMatcher patternMatcher : this.modelMatchers) {\n if (patternMatcher.getScore() > 0) {\n if (logger.isInfoEnabled()) {\n logger.info(patternMatcher.getModel() + \"String_Node_Str\" + patternMatcher.getScore() + \"String_Node_Str\");\n ... |
"public String getName() {\n return row.getString(index_name);\n}\n"
|
"public static String getTableNameBySynonym(Connection conn, String name) {\n try {\n if (conn.getMetaData().getDatabaseProductName().equals(\"String_Node_Str\")) {\n String sql = \"String_Node_Str\" + name + \"String_Node_Str\";\n sta = conn.createStatement();\n ExtractMetaDa... |
"public MageVersion getVersion() {\n return VERSION;\n}\n"
|
"public void testGetGroups_withAllParams() {\n responseHeaders.setContentType(MediaType.APPLICATION_JSON);\n mockServer.expect(requestTo(\"String_Node_Str\")).andExpect(method(GET)).andRespond(withResponse(new ClassPathResource(\"String_Node_Str\", getClass()), responseHeaders));\n List<Group> groups = yammerT... |
"private void intializeLogger() {\n Logger logger = null;\n String dest = null;\n Level level = Level.WARNING;\n if (config != null) {\n logger = config.getLogger();\n dest = config.getLogDirectory();\n level = config.getLogLevel();\n if (level == null) {\n level = Lev... |
"public LazyMethodGen getAjcClinit() {\n for (Iterator i = methodGens.iterator(); i.hasNext(); ) {\n LazyMethodGen gen = (LazyMethodGen) i.next();\n if (gen.getName().equals(NameMangler.AJC_CLINIT_NAME))\n return gen;\n }\n LazyMethodGen ajcClinit = new LazyMethodGen(Modifier.STATIC, T... |
"private void drawValue(String val, float xPos, float yPos) {\n if (mDrawUnitInChart) {\n mDrawCanvas.drawText(value + mUnit, xPos, yPos, mValuePaint);\n } else {\n mDrawCanvas.drawText(val, xPos, yPos, mValuePaint);\n }\n}\n"
|
"public void testIsSameName4DiffLabel() {\n ImportItem ImportItem1 = mock(ImportItem.class);\n Property property1 = mock(Property.class);\n when(itemRecord1.getProperty()).thenReturn(property1);\n when(property1.getLabel()).thenReturn(\"String_Node_Str\");\n IRepositoryViewObject repViewObj = mock(IRepos... |
"protected void encode(ChannelHandlerContext channelHandlerContext, ClusterStatus clusterStatus, List<Object> objects) {\n ClusterStatusProtos.ClusterStatus csp = ProtobufUtil.convert(clusterStatus);\n objects.add(new DatagramPacket(Unpooled.wrappedBuffer(csp.toByteArray()), isa));\n}\n"
|
"public synchronized void put(MapGeneratorJob mapGeneratorJob, Bitmap bitmap) {\n if (this.capacity == 0) {\n return;\n }\n FileOutputStream fileOutputStream = null;\n try {\n File outputFile;\n do {\n ++this.cacheId;\n outputFile = new File(this.cacheDirectory, th... |
"public void setCc(String[] cc) {\n this.cc = Arrays.copyOf(cc, cc.length);\n}\n"
|
"public void onBindViewHolder(final MyViewHolder holder, final int position) {\n holder.priorityTag.setVisibility(View.GONE);\n holder.tabTag.setVisibility(View.GONE);\n LinearLayout container = (LinearLayout) holder.txtView.getParent();\n DatabaseHelper helper = DatabaseHelper.getInstance(mRecyclerView.get... |
"public void process(double[] input, DMatrixSparseCSC left, DMatrixSparseCSC right) {\n int numRows = getNumOfOutputsM();\n int numViewParam = numViewsUnknown * 6;\n int numPointParam = numParameters - numViewParam;\n tripletView.reshape(numRows, numViewParam);\n tripletPoint.reshape(numRows, numPointPar... |
"protected boolean isMeetMeasureDetailEnd(ColumnEvent ev, AggregationCellHandle aggCell) {\n if (aggCell == null || ev.type == ColumnEvent.GRAND_TOTAL_CHANGE) {\n return true;\n }\n int targetColSpanGroupIndex = GroupUtil.getGroupIndex(columnGroups, aggCell.getSpanOverOnColumn());\n if (targetColSpan... |
"private float[] determineNodeColor(PathwayVertexGraphItemRep vertexRep) {\n int iDavidID = pathwayItemManager.getDavidIdByPathwayVertexGraphItem((PathwayVertexGraphItem) vertexRep.getAllItemsByProp(EGraphItemProperty.ALIAS_PARENT).get(0));\n if (iDavidID == -1 || iDavidID == 0)\n return null;\n else {\... |
"public void run() {\n if (!isAdded())\n return;\n if (htmlContent != null) {\n mWebView.loadDataWithBaseURL(\"String_Node_Str\", htmlContent, \"String_Node_Str\", \"String_Node_Str\", null);\n } else {\n ToastUtils.showToast(getActivity(), R.string.post_not_found);\n }\n}\n"
|
"private File initTenantDir() {\n if (tenant == null || originalAppName == null) {\n return null;\n }\n File f = getRootTenantDirForApp(originalAppName);\n f = new File(f, tenant);\n if (!f.exists() && !f.mkdirs()) {\n if (logger.isLoggable(Level.FINEST)) {\n logger.log(Level.FIN... |
"public SetContainer getOrCreateContainer(String name, boolean backup) {\n SetContainer container = containerMap.get(name);\n if (container == null) {\n container = new SetContainer(name, nodeEngine);\n final SetContainer current = containerMap.putIfAbsent(name, container);\n if (current != n... |
"public static PendingResult<GeolocationResult> geolocate(GeoApiContext context, GeolocationPayload payload) {\n return context.post(GEOLOCATION_API_CONFIG, Response.class, payload);\n}\n"
|
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptSetupComponent convertTestScriptSetupComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptSetupComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.TestScrip... |
"protected soot.Local handlePrivateFieldAssignSet(polyglot.ast.Assign assign) {\n if (assign.left() instanceof soot.javaToJimple.jj.ast.JjAccessField_c) {\n soot.javaToJimple.jj.ast.JjAccessField_c accessField = (soot.javaToJimple.jj.ast.JjAccessField_c) assign.left();\n soot.Local leftLocal = (soot.Lo... |
"public String getServer() {\n return id;\n}\n"
|
"protected void updatePreview(Object handle) {\n if (handle != null && highlightProvider != null) {\n String familyValue = highlightProvider.getFontFamily(handle);\n int sizeValue = highlightProvider.getFontSize(handle);\n previewLabel.setFontFamily(familyValue);\n previewLabel.setFontSiz... |
"public Partner addPartnerAddress(Partner partner, Address address, Boolean isDefault, Boolean isInvoicing, Boolean isDelivery) {\n PartnerAddress partnerAddress = createPartnerAddress(address, isDefault);\n if (isDefault != null && isDefault) {\n LOG.debug(\"String_Node_Str\", isDelivery);\n LOG.de... |
"public void testCreateTableIfNotExists() throws Exception {\n List<KeySchemaElementDescription> tableKeySchema = new ArrayList<KeySchemaElementDescription>();\n tableKeySchema.add(new KeySchemaElementDescription(\"String_Node_Str\", \"String_Node_Str\"));\n tableKeySchema.add(new KeySchemaElementDescription(\... |
"protected void discover() {\n for (Class<? extends Annotation> c : interestingAnnotations) {\n addAnnotation(c);\n }\n Class<?> type = clazz;\n try {\n ctor = type.getDeclaredConstructor();\n ctor.setAccessible(true);\n } catch (NoSuchMethodException e) {\n throw new MappingE... |
"public void run() {\n mMenuTask = null;\n if (jc.isCancelled())\n return;\n MenuExecutor.updateMenuOperation(mMenu, operation);\n MenuExecutor.updateMenuForPanorama(mMenu, canSharePanoramas && supportCallback.mAllPanorama360, canSharePanoramas && supportCallback.mHasPanorama360);\n if (mSharePano... |
"public void shouldValidateToFalseWhenEmptyUsername() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\"... |
"private void ensureContentPanel() {\n if (contentPanel == null) {\n DOM.setInnerHTML(contentElem, \"String_Node_Str\");\n contentPanel = new ContentPanel(contentElem);\n if (tree != null) {\n tree.adopt(contentPanel);\n }\n }\n}\n"
|
"public Dimension getFixPreferredSize(int w, int h) {\n int width = 0;\n int height = 0;\n if (recommendSize.width > 0) {\n width = recommendSize.width;\n } else {\n if (recommendSize.height > 0) {\n width = getPreferredSize(w, recommendSize.height, true, false, true).width;\n ... |
"public HoistTracking getAncestor(int links) {\n HoistTracking curr = this;\n for (int i = 0; i < links; i++) {\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\" + this.block.getType() + \"String_Node_Str\" + this.parent.block.getType());\n }\n curr = curr.parent;... |
"public static ICubeQueryDefinition load(String queryResultID, DataEngineContext context) throws DataException, IOException {\n DataInputStream dis = null;\n IDocArchiveReader reader = context.getDocReader();\n VersionManager vm = new VersionManager(context);\n int version = vm.getVersion(queryResultID);\n ... |
"protected void cleanup(Context context) throws IOException, InterruptedException {\n this.zMultiplier = this.rho * this.count / (this.rho * this.count + 2 * this.lambda);\n for (int i = 0; i < zUpdated.length; i++) {\n zUpdated[i] /= this.count;\n if (i == 0 && !regularizeIntercept) {\n } el... |
"public Object coerceToBean(Object val, Component component, BindContext ctx) {\n boolean isAdult = false;\n if (val != null) {\n Calendar adultDay = Calendar.getInstance();\n adultDay.setTime((Date) val);\n adultDay.add(Calendar.YEAR, 18);\n Calendar now = Calendar.getInstance();\n ... |
"public final byte[] handleRequest(byte[] buff) {\n if (buff == null) {\n return null;\n }\n if (!Initialized) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n int[] command = new int[1];\n try {\n byte[] data;\n if (ReceivedFrame.size() != 0) {\n Recei... |
"private void genSubOfSubQuery() throws BirtException {\n QueryDefinition queryDefn = newReportQuery();\n GroupDefinition groupDefn = new GroupDefinition();\n groupDefn.setKeyColumn(\"String_Node_Str\");\n queryDefn.addGroup(groupDefn);\n queryDefn.addResultSetExpression(\"String_Node_Str\", new ScriptEx... |
"public QueryStatus getStatus(QueryHandle handle) throws GrillException {\n checkConfigured();\n JdbcQueryContext ctx = getQueryContext(handle);\n QueryStatus status;\n if (ctx.getResultFuture().isDone()) {\n if (ctx.isCancelled()) {\n status = new QueryStatus(1.0, Status.CANCELED, handle.... |
"protected void fireSyntheticLoadEvent(final Image image) {\n syntheticEventCommand = new ScheduledCommand() {\n\n public void execute() {\n NativeEvent evt = Document.get().createLoadEvent();\n getImageElement(image).dispatchEvent(evt);\n }\n });\n}\n"
|
"public void setPosX(float x) {\n if (x >= Game.sScreenLowerX && x <= Game.sScreenHigherX) {\n mPosX = x;\n } else if (x < Game.sScreenLowerX) {\n mPosX = Game.sScreenLowerX;\n } else if (x > Game.sScreenHigherX) {\n mPosX = Game.sScreenHigherX;\n }\n}\n"
|
"public boolean[] filter(final IFilter filter, final boolean[] filterArray) throws IOException {\n switch(filter.getFilterType()) {\n case NOT_NULL:\n return null;\n case NULL:\n for (int i = 0; i < buffer.length; i++) {\n if (buffer[i] == 2) {\n ... |
"public void show(String message) {\n progressDialog.setMessage(message);\n progressDialog.setCanceledOnTouchOutside(false);\n if (!activity.isFinishing()) {\n progressDialog.show();\n }\n}\n"
|
"public boolean rotate(int initial, GUITile previousGUITile, boolean mustConnect) {\n int i, j, tempRot;\n TileI prevTile = previousGUITile.getTile();\n int prevTileRotation = previousGUITile.getRotation();\n MapHex nHex;\n boolean connected;\n for (i = initial; i < 6; i++) {\n tempRot = (rotat... |
"private DatasetTypeMeta getTypeInfo(Id.Namespace namespaceId, String typeName) throws Exception {\n Id.DatasetType datasetTypeId = ConversionHelpers.toDatasetTypeId(namespaceId, typeName);\n DatasetTypeMeta typeMeta = typeManager.getTypeInfo(datasetTypeId);\n if (typeMeta == null) {\n Id.DatasetType sy... |
"public static int getLatestVersion() {\n return VERSION_2_3_2_1;\n}\n"
|
"private void _insertSelf(Entity<?> entity, Object obj) {\n runFieldQuery(entity.getBefores(), obj);\n execute(sqlMaker.insert(entity, obj));\n runFieldQuery(entity.getAfters(), obj);\n}\n"
|
"public void updateRenderer(RendererConfiguration renderer) {\n StatusTab.updateRenderer(renderer);\n}\n"
|
"public void run() {\n IWorkbenchWindow aww = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n IWorkbenchPage ap = aww.getActivePage();\n ChangePerspectiveAction action = new ChangePerspectiveAction(SE_ID);\n action.run();\n IPath location = ResourcesPlugin.getWorkspace().getRoot().getLocation();\... |
"public void run() {\n CommonActivityUtils.goToOneToOneRoom(mSession, mMemberId, MemberDetailsActivity.this, new SimpleApiCallback<Void>(MemberDetailsActivity.this) {\n\n public void onMatrixError(MatrixError e) {\n if (MatrixError.FORBIDDEN.equals(e.errcode)) {\n Toast.makeText(Memb... |
"RawTextNode consumeHtmlIdentifier() {\n boolean foundDelimiter = advanceWhileMatches(TAG_IDENTIFIER_MATCHER);\n RawTextNode node = consumeAsRawText();\n if (node != null) {\n int indexIn = INVALID_IDENTIFIER_CHAR_MATCHER.indexIn(node.getRawText());\n if (indexIn != -1) {\n errorReport... |
"public void getWriteLock(Object resource) throws DeadlockDetectedException, IllegalResourceException {\n try {\n Node node = resource instanceof Node ? (Node) resource : null;\n Relationship relationship = resource instanceof Relationship ? (Relationship) resource : null;\n if (node == null && ... |
"public void showSuccess(boolean timeout) {\n if (mIsBokehMode) {\n mOverlay.postDelayed(new Runnable() {\n public void run() {\n if (mState == STATE_FOCUSING) {\n startAnimation(SCALING_DOWN_TIME, timeout, mStartAnimationAngle);\n mState = STATE... |
"public IAnswerData getAnswer() {\n if (isEditable && hasTextChanged) {\n storeTextAnswerToForm();\n }\n}\n"
|
"private void loadCells(String root, CellList dir, LinkedList<CellList> children) {\n Cell[] childs = dir.getChildren();\n if (childs == null) {\n logger.fine(\"String_Node_Str\" + dir.getRelativePath());\n return;\n }\n for (Cell child : childs) {\n logger.info(\"String_Node_Str\" + ch... |
"public ClassFileTransformer getTransformer(ClassLoader classLoader, String targetClassName) {\n if (transformerMap.isEmpty()) {\n return null;\n }\n final TransformerKey key = new TransformerKey(classLoader, targetClassName);\n final ClassFileTransformer transformer = transformerMap.remove(key);\n ... |
"public void run() {\n synchronized (local_inbox) {\n while (local_inbox.peek() != null) {\n try {\n local_inbox.wait();\n } catch (InterruptedException ie) {\n System.out.println(\"String_Node_Str\");\n }\n Message m = local_inbox.poll... |
"private void updatePosterAndFanartSizes() {\n updatingPosterAndFanartSizes = true;\n BufferedImage fanartImg = (BufferedImage) (fanartImage);\n if (fanartImg != null) {\n BufferedImage fanartScaledImage = ArtWorkPanel.resizeToFanart(fanartImg);\n this.setNewFanart(fanartScaledImage, false);\n ... |
"private String processValue(Filter filter, String typeName) {\n String value = filter.getValue();\n if (value == null) {\n return value;\n }\n String targetType = filter.getTargetType();\n if (targetType != null) {\n typeName = targetType;\n }\n value = value.replace(\"String_Node_St... |
"public ColumnBinaryMakerConfig getColumnBinaryMakerConfig(final ColumnBinaryMakerConfig commonConfig, final IColumnAnalizeResult analizeResult) {\n ColumnBinaryMakerConfig currentConfig = new ColumnBinaryMakerConfig(commonConfig);\n ShortColumnAnalizeResult castColumnAnalizeResult = (ShortColumnAnalizeResult) an... |
"private String getFolderPath(FolderItem folder, String path) {\n if (FolderType.FOLDER_LITERAL.equals(folder.getType())) {\n final EObject parent = folder.getParent();\n if (parent instanceof FolderItem) {\n FolderItem parentFolder = (FolderItem) parent;\n if (FolderType.SYSTEM_F... |
"public synchronized void unregister() {\n if (!started) {\n return;\n }\n MBeanServer mbs = mBeanServer();\n Set<ObjectName> entries;\n try {\n entries = mbs.queryNames(ObjectNameSpec.getClusterNameFilter(instance.getName()), null);\n for (ObjectName name : entries) {\n i... |
"public void updateSkillTreePointsSets(Context context) {\n skillTreePointsSets.clear();\n Map<Long, SkillTreePointsSet> skillTreeToSkillTreePointsSet = new HashMap<>();\n for (SkillTreePointsSet pointsSet : skillTreePointsSets) {\n skillTreeToSkillTreePointsSet.put(pointsSet.getSkillTree(), pointsSet);... |
"public String exitPatientFromCare(Integer patientId, Integer reasonForExitId, String dateOfExit, Integer causeOfDeath, String otherReason) {\n log.debug(\"String_Node_Str\" + patientId + \"String_Node_Str\" + reasonForExitId + \"String_Node_Str\" + dateOfExit + \"String_Node_Str\");\n String ret = \"String_Node_... |
"public void build(IProgressMonitor monitor) throws Exception {\n BuildCacheManager buildCacheManager = BuildCacheManager.getInstance();\n final ITalendProcessJavaProject talendJavaProject = getTalendJavaProject();\n String goal = getGoals();\n boolean isGoalPackage = TalendMavenConstants.GOAL_PACKAGE.equal... |
"private boolean shouldIgnoreEntry(AppUpdateStatusManager.AppUpdateStatus entry) {\n if (entry.status == AppUpdateStatusManager.Status.Unknown) {\n return true;\n else if ((entry.status == AppUpdateStatusManager.Status.Downloading || entry.status == AppUpdateStatusManager.Status.ReadyToInstall || entry.sta... |
"private void insertToBTree() throws DataException {\n try {\n List<Integer> rowIDList = new ArrayList<Integer>();\n KeyRowID keyRowID = (KeyRowID) sortedKeyRowID.pop();\n boolean isFirst = true;\n Object lastKey = null;\n while (keyRowID != null) {\n if (isFirst) {\n ... |
"public ArrayList<BaseEvent> LoadAllEventsFromDatabase() {\n ArrayList<BaseEvent> allEvents = new ArrayList<BaseEvent>();\n String[] eventTableColumns = new String[] { EventColumns._ID, EventColumns.EVENT_EXPERIENCEID, EventColumns.EVENT_TITLE, EventColumns.EVENT_LOCATION_LAT, EventColumns.EVENT_LOCATION_LNG, Eve... |
"public void run() {\n if (discoveryProviders.size() == 0) {\n registerDefaultDeviceTypes();\n }\n if (mShouldResume) {\n mShouldResume = false;\n } else {\n registerBroadcastReceiver();\n }\n multicastLock.acquire();\n ConnectivityManager connManager = (ConnectivityManager) co... |
"public Object[] getElements(Object inputElement) {\n if (inputElement instanceof IDockerImageInfo) {\n final IDockerImageInfo info = (IDockerImageInfo) inputElement;\n return new Object[] { new Object[] { \"String_Node_Str\", info.id() }, new Object[] { \"String_Node_Str\", info.parent() }, new Object... |
"public void onMessageReceived(MessageEvent messageEvent) {\n super.onMessageReceived(messageEvent);\n String msg = messageEvent.getPath();\n if (msg.equals(Constants.MSG_SALUDATE)) {\n sendMessageToWearable(Constants.MSG_AVAILABLE);\n }\n if (msg.equals(Constants.MSG_LOAD_LAST_TIMELINE)) {\n ... |
"void commitFinishDrawingLocked(long currentTime) {\n if (!mCommitDrawPending) {\n return false;\n }\n mCommitDrawPending = false;\n mReadyToShow = true;\n final boolean starting = mAttrs.type == TYPE_APPLICATION_STARTING;\n final AppWindowToken atoken = mAppToken;\n if (atoken == null || at... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.