content stringlengths 40 137k |
|---|
"public Representation postWebFormMedia(Representation entity) {\n setServerHeader();\n Request request = getRequest();\n String auth = getQueryValue(Constants.AUTH_QUERY);\n String userId = null;\n String token = null;\n try {\n userId = getUserId(request, auth);\n token = getTransactio... |
"double normalize(double x){\n\tdouble v = Math.max(x, min);\n\tx = (v - min) / (max - min);\n\treturn x;\n}\n"
|
"private String getRelativePath(HDFSConnectionBean connection, String absPath) {\n return URI.create(absPath).getPath();\n}\n"
|
"public boolean isUnfolding() {\n return state == STATE_UNFOLDING;\n}\n"
|
"public void updateDriver(Driver driver) throws DriverAlreadyExistsException {\n if (driverDao.findDriverByLicenseAndId(driver.getLicenseNumber(), driver.getDriverId()).size() > 0) {\n throw new DriverAlreadyExistsException(driver.getLicenseNumber());\n } else {\n driver.setDateHired(new Date());\n ... |
"public boolean apply(Game game, Ability source) {\n for (UUID opponentId : game.getOpponents(source.getControllerId())) {\n game.getPlayer(opponentId).loseLife(4, game, false);\n }\n return true;\n}\n"
|
"public ClinicalDocument produceCDA(Patient patient, BaseCdaTypeHandler cdaProfileType) {\n if (patient != null && cdaProfileType != null) {\n ClinicalDocument cdaDocument = CDAFactory.eINSTANCE.createClinicalDocument();\n if (cdaProfileType.getTemplateid().equals(\"String_Node_Str\")) {\n A... |
"public static void setup(Context context, String clientId, String clientSecret, RestBehavior behavior) {\n RestClientDelegate networkDelegate = new HttpClientDelegate(context);\n client.setup(clientId, clientSecret);\n switch(behavior) {\n case HTTP_ONLY:\n restClient = new HttpRestClient(co... |
"private Join createJoin(String joinId, TableName leftSourceId, TableName rightSourceId) {\n ColumnSelector leftSelector = new ColumnSelector(new ColumnName(leftSourceId.getCatalogName().getName(), leftSourceId.getName(), COLUMN1_CONSTANT));\n ColumnSelector rightSelector = new ColumnSelector(new ColumnName(right... |
"private void updateProperty(Object newValue) {\n if (getSubProperties() == null) {\n return;\n }\n NamedThing widgetProperty = widget.getContent();\n if (widgetProperty instanceof SchemaProperty) {\n if (newValue instanceof String) {\n ((SchemaProperty) widgetProperty).setValue(new... |
"protected IStatus run(final IProgressMonitor monitor) {\n final String tag = wizard.getTag();\n monitor.beginTask(DVMessages.getFormattedString(TAG_IMAGE_MSG, tag), 2);\n try {\n ((DockerConnection) connection).tagImage(image.id(), tag);\n monitor.worked(1);\n ((DockerConnection) connecti... |
"public static int getLatestVersion() {\n return VERSION_2_5_2_1;\n}\n"
|
"public String getName() {\n if (name == null) {\n name = StringUtils.join(toNames(tpls), \"String_Node_Str\" + TEMPLATE_SEP + \"String_Node_Str\");\n }\n return name;\n}\n"
|
"public void autoReplaceSlot(int slot, int wantedId, int wantedDamage) {\n InvTweaksInventory inventory = new InvTweaksInventory(mc, config.getLockPriorities());\n ItemStack candidateStack, replacementStack = null;\n ItemStack storedStack = createItemStack(wantedId, 1, wantedDamage);\n int replacementStackS... |
"private String getSaveButtonText() {\n if (SiteUtils.isAccessedViaWPComRest(mSite) && !mSite.getHasCapabilityPublishPosts()) {\n return getString(R.string.submit_for_review);\n }\n switch(PostStatus.fromPost(mPost)) {\n case SCHEDULED:\n return getString(R.string.schedule_verb);\n ... |
"public void guiTestNonLive() {\n TextComponentMatcherEditor<String> textMatcherEditor = null;\n eventCounter.assertNoEvents(0);\n JTextField textField = new JTextField();\n textMatcherEditor = new TextComponentMatcherEditor(textField, GlazedLists.toStringTextFilterator(), false);\n assertTrue(textMatche... |
"public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity instanceof IImmersiveConnectable && ((IImmersiveConnectable) tileEntity).canConnect()) {\n ... |
"private void createExistingUserComposite(TabFolder folder) {\n Composite composite = new Composite(folder, SWT.NONE);\n composite.setLayout(new GridLayout());\n composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n Composite topComposite = new Composite(composite, SWT.NONE);\n topComp... |
"public void onCreate(Vector3 position) {\n this.worldObj.setBlock(position.intX(), position.intY() + 1, position.intZ(), ZhuYaoBase.bJia.blockID, 0, 2);\n ((TileEntityMulti) this.worldObj.getBlockTileEntity(position.intX(), position.intY() + 1, position.intZ())).setMainBlock(position);\n this.worldObj.setBloc... |
"public List getAggregateOnList() {\n List aggregateOns = (List) getProperty(ComputedColumn.AGGREGATEON_MEMBER);\n if (aggregateOns == null)\n return Collections.EMPTY_LIST;\n return Collections.unmodifiableList(aggregateOns);\n}\n"
|
"private Bitmap applyBlur() {\n Bitmap resultBitmap = null;\n try {\n System.gc();\n mOriginalView.buildDrawingCache();\n Bitmap originalBitmap = mOriginalView.getDrawingCache().copy(Config.ARGB_8888, true);\n mOriginalView.destroyDrawingCache();\n resultBitmap = Bitmap.createSc... |
"private org.bukkit.entity.Entity createEntity(IWorld world, Entity e, com.worldcretornica.plotme_core.api.Vector loc, int originX, int originY, int originZ) {\n try {\n EntityType entitytype = EntityType.fromName(e.getId());\n org.bukkit.entity.Entity ent = null;\n if (entitytype != null && e.g... |
"public void indexTerms(List<JATETerm> filteredTerms, JATEProperties jateProperties, SolrIndexSearcher indexSearcher, boolean isBoosted, boolean isExtraction) throws JATEException {\n int numDocs = indexSearcher.maxDoc();\n String domainTermsFieldName = jateProperties.getSolrFieldNameJATEDomainTerms();\n Strin... |
"public void init() throws JSchException, SftpException, IOException {\n sftp = (ChannelSftp) session.openChannel(\"String_Node_Str\");\n sftp.connect();\n try {\n sftp.mkdir(agentHome);\n } catch (SftpException e) {\n }\n try {\n sftp.cd(agentHome);\n } catch (SftpException e) {\n ... |
"public static void createDb() throws IOException, DaoException, ClassNotFoundException, URISyntaxException {\n dbDir = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n dbDir.delete();\n dbDir.mkdirs();\n cacheFile = File.createTempFile(\"String_Node_Str\", \"String_Node_Str\");\n cacheFi... |
"protected JCodeModel generateModel() throws IllegalStateException {\n final JCodeModel codeModel = super.generateModel();\n log = getDefinedClass().field(JMod.PROTECTED | JMod.FINAL, Logger.class, LOG_FIELD_NAME);\n JFieldVar projectCodeVar = null;\n if (!getProjectCode().isEmpty()) {\n projectCodeV... |
"protected void createConnection() throws KeyManagementException, UnrecoverableKeyException, CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException {\n cdmiServer = new URL(\"String_Node_Str\");\n parameters = new HashMap<String, Object>();\n credentials = new UsernamePasswordCredential... |
"private void locatePhysicalNetwork() {\n try {\n long id = _networkService.findPhysicalNetworkId(_zone.getId(), \"String_Node_Str\", TrafficType.Guest);\n _znet = _networkService.getPhysicalNetwork(id);\n List<PhysicalNetworkVO> nets = _physicalNetworkDao.listByZoneAndTrafficType(_zone.getId(),... |
"public void incrementalStreamProcessorTest41() throws InterruptedException {\n LOG.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String stockStream = \"String_Node_Str\" + \"String_Node_Str\";\n String query = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str... |
"public boolean retainToken(IToken token, IToken prev) {\n if (!this.semicolonInference) {\n return true;\n }\n if (prev == null) {\n return true;\n }\n int prevLN = prev.endLine();\n if (prevLN == token.startLine()) {\n return true;\n }\n int type = token.type();\n if ((... |
"public void endLoad() throws DaoException {\n finished = true;\n if (inserter != null) {\n try {\n inserter.join(60000);\n } catch (InterruptedException e) {\n throw new DaoException(e);\n }\n }\n}\n"
|
"public void globalAndLocalListenerTest() throws InterruptedException {\n map1.addLocalEntryListener(createEntryListener(true));\n map2.addLocalEntryListener(createEntryListener(true));\n map1.addEntryListener(createEntryListener(false), false);\n map2.addEntryListener(createEntryListener(false), false);\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);\n setContentView(R.layout.activity_demo);\n mLayout = (SlidingUpPanelLayout) findViewById(R.id.sliding_layout);\n mLayout.setPanelSlideListener(new ... |
"public void setRetryTimer() {\n AlarmManager alarm = (AlarmManager) getSystemService(ALARM_SERVICE);\n alarm.set(alarm.RTC_WAKEUP, calendar.getTimeInMillis() + (1000 * 60), PendingIntent.getService(this, 0, new Intent(this, DexCollectionService.class), 0));\n}\n"
|
"protected void drawHighlights() {\n if (mHighlightEnabled && mHighLightIndicatorEnabled && valuesToHighlight()) {\n float offsetY = mDeltaY * 0.04f;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n Highlight h = mIndicesToHightlight[i];\n int index = h.getXIndex();\n ... |
"private void fillOpmContainmentRules(List<OPMetaModelContainmentValidationRule> contaimentRules) {\n OPMetaModelContainmentValidationRule rule = opmetaFactory.eINSTANCE.createOPMetaModelContainmentValidationRule();\n rule.setContainerTypeName(\"String_Node_Str\");\n rule.setNodeTypeName(\"String_Node_Str\");\... |
"protected IDataRowExpressionEvaluator createCubeEvaluator(CubeHandle cube, final Chart cm, List<String> columnExpression) throws BirtException {\n IBaseCubeQueryDefinition qd = null;\n ReportItemHandle referredHandle = ChartReportItemUtil.getReportItemReference(itemHandle);\n boolean isCrosstabReference = ref... |
"protected ModelElement getCurrentModelElement(FormEditor editor) {\n IEditorInput editorInput = editor.getEditorInput();\n if (editorInput instanceof ConnectionItemEditorInput) {\n ConnectionItemEditorInput input = (ConnectionItemEditorInput) editorInput;\n connectionItem = input.getItem();\n ... |
"int fillData(HSSFSheet sheet, int rowNum, HSSFCellStyle style) {\n logger.entering(new Object[] { sheet, rowNum, style });\n HSSFRow row;\n HSSFCellStyle newStyle = Styles.getStyleBorderThinLeftTop();\n for (List<String> dataString : this.getLstEntities()) {\n row = sheet.createRow(rowNum);\n ... |
"protected void doPoisonEntity(Vector3 emitPosition, EntityLivingBase entity, int amplifier) {\n if (this.isContagious) {\n entity.addPotionEffect(new CustomPotionEffect(PoisonContagion.INSTANCE.getId(), 45 * 20, amplifier, null));\n entity.addPotionEffect(new CustomPotionEffect(Potion.blindness.id, 15... |
"public boolean setInput(ISQLBuilderEditorInput editorInput) {\n return super.setInput(editorInput);\n}\n"
|
"public void delete(final InternalDataDefinition dataDefinition, final Long... entityIds) {\n checkNotNull(dataDefinition, L_DATA_DEFINITION_MUST_BE_GIVEN);\n checkState(dataDefinition.isDeletable(), \"String_Node_Str\");\n checkState(dataDefinition.isEnabled(), DATA_DEFINITION_BELONGS_TO_DISABLED_PLUGIN);\n ... |
"public void writeSingleValue(Object value, Object parent, XMLRecord record, AbstractSession session) {\n Object attributeValue = value;\n if (getConverter() != null) {\n if (getConverter() instanceof XMLConverter) {\n attributeValue = ((XMLConverter) getConverter()).convertObjectValueToDataValu... |
"public void exportToNewWorkspace(Query query) {\n Graph result;\n if (model.getCurrentQuery() == query) {\n GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n GraphView view = model.getCurrentResult();\n if (view == null) {\n return;\n }... |
"public DocumentEntity<?> deleteDocument(String database, String documentHandle, Long rev, Policy policy) throws ArangoException {\n validateDocumentHandle(documentHandle);\n HttpResponseEntity res = httpManager.doDelete(createDocumentEndpointUrl(database, documentHandle), new MapBuilder().put(\"String_Node_Str\"... |
"public static void validate(String fileName, String URIPrefix, boolean complete, boolean compliant, boolean bestPractice, boolean typesInURI, String version, boolean keepGoing, String compareFile, String compareFileName, String mainFileName, String topLevelURIStr, boolean genBankOut, boolean sbolV1out, boolean fastaOu... |
"public void testOtherExceptionMessages() throws Exception {\n DataHubCompositeValue value = new DataHubCompositeValue(CONTENT_TYPE, CONTENT_LANGUAGE, DATA, 0L);\n String columnName = keyRenderer.keyToString(DATA_HUB_KEY);\n when(hector.createColumn(columnName, value, 0, StringSerializer.get(), DataHubComposit... |
"public boolean apply(RunRecordMeta input) {\n if (input == null) {\n return false;\n }\n String runId = input.getPid();\n Id.Program targetProgramId = retrieveProgramIdForRunRecord(programType, runId);\n if (targetProgramId != null) {\n runIdToProgramId.put(runId, targetProgramId);\n ... |
"public void read(final IJsonNode node) {\n try {\n this.degree = JsonUtil2.getField(node, JSON_KEY_DEGREE, IntNode.class).getIntValue();\n } catch (ClassCastException e) {\n System.out.println(\"String_Node_Str\" + node);\n throw e;\n }\n this.root = this.createInnerNode();\n this.r... |
"public void onDisplayCompletions(final CompletionInfo[] applicationSpecifiedCompletions) {\n if (DEBUG) {\n Log.i(TAG, \"String_Node_Str\");\n if (applicationSpecifiedCompletions != null) {\n for (int i = 0; i < applicationSpecifiedCompletions.length; i++) {\n Log.i(TAG, \"St... |
"public void testBoolean() {\n Invocation invocation = new Invocation(\"String_Node_Str\");\n invocation.setParameter(\"String_Node_Str\", Integer.valueOf(0));\n Operation op = xrService.getOperation(invocation.getName());\n Object result = op.invoke(xrService, invocation);\n assertNotNull(\"String_Node_... |
"private void buildNavLinks(final ContentPanel menuPanel) {\n if (ProfileUtils.isGranted(authentication, GlobalPermissionEnum.CREATE_PROJECT)) {\n addNavLink(eventBus, menuPanel, I18N.CONSTANTS.createProjectNewProject(), IconImageBundle.ICONS.add(), new Listener<ButtonEvent>() {\n private final Cre... |
"private void indexFile(File file, boolean commit, boolean recursive) {\n RepresentationFilePreservationObject premisFile = null;\n try {\n premisFile = PremisUtils.getPremisFile(model.getStorage(), file.getAipId(), file.getRepresentationId(), file.getId());\n } catch (NotFoundException e) {\n LO... |
"public void addMenu(MenuBuilder menu) {\n boolean addSubMenu = mListViews.size() > 0;\n menu.addMenuPresenter(this, mContext);\n MenuPopupWindow popupWindow = createPopupWindow();\n MenuAdapter adapter = new MenuAdapter(menu, LayoutInflater.from(mContext), mOverflowOnly);\n adapter.setForceShowIcon(mFor... |
"public void handlePicking(final AGLEventListener canvasUser, final GL gl) {\n if (bEnablePicking == false)\n return;\n PickingMouseListener pickingTriggerMouseAdapter = glView.getParentGLCanvas().getJoglMouseListener();\n Point pickPoint = null;\n EPickingMode ePickingMode = EPickingMode.CLICKED;\n ... |
"public void widgetSelected(SelectionEvent e) {\n if (tableViewerCreator != null && tableViewerCreator.isReadOnly()) {\n return;\n }\n String columnId = tableViewerCreatorColumn.getId();\n TableViewerCreatorColumnNotModifiable column = tableViewerCreator.getColumn(columnId);\n IBeanPropertyAccesso... |
"public void caseLocal(final Local v) {\n ((ConvertToBaf) rvalue).convertToBaf(context, out);\n Unit u = Baf.v().newStoreInst(v.getType(), context.getBafLocalOfJimpleLocal(v));\n Iterator it = getTags().iterator();\n while (it.hasNext()) {\n u.addTag((Tag) it.next());\n }\n u = Baf.v().newStore... |
"protected void getAllRdeps(QueryExpression expression, Predicate<Target> universe, VariableContext<Target> context, Callback<Target> callback, int depth, int batchSize) throws QueryException, InterruptedException {\n MinDepthUniquifier<Target> minDepthUniquifier = createMinDepthUniquifier();\n eval(expression, c... |
"public Entity<?> make(DatabaseMeta db, Connection conn, Class<?> type) {\n Entity<?> entity = new Entity<Object>();\n Mirror<?> mirror = Mirror.me(type);\n entity.setMirror(mirror);\n if (log.isDebugEnabled())\n log.debugf(\"String_Node_Str\", type.getName(), db.getTypeName());\n entity.setTableN... |
"public void test() throws Exception {\n ApplicationManager appManager = deployApplication(HelloWorld.class);\n FlowManager flowManager = appManager.getFlowManager(\"String_Node_Str\").start();\n Assert.assertTrue(flowManager.isRunning());\n StreamManager streamManager = getStreamManager(\"String_Node_Str\"... |
"public static StructReader readStructPointer(SegmentReader segment, WirePointer ref, int nestingLimit) {\n WordPointer ptr = ref.target();\n StructPointer structPtr = new StructPointer(ref);\n int dataSizeWords = structPtr.dataSize();\n return new StructReader(segment, ptr.offset * 8, (ptr.offset + dataSiz... |
"public void run() throws Exception {\n CollectionWrapper wrapper = getCollectionWrapper();\n if (wrapper == null) {\n response = false;\n return;\n }\n idMap = new HashMap<Long, CollectionRecord>();\n List objList = dataList;\n if (!isBinary()) {\n objList = new ArrayList(dataLis... |
"public Message execute() {\n TakeScreenshotResponseMessage response = new TakeScreenshotResponseMessage();\n IRobot robot = AUTServer.getInstance().getRobot();\n final BufferedImage createScreenCapture = robot.createFullScreenCapture();\n try {\n Point currentPointingDevicePosition = robot.getCurren... |
"public int handle(String[] args, int startIndex) {\n if (startIndex + 1 < args.length) {\n String style = args[startIndex + 1].toLowerCase(Locale.ENGLISH);\n if (style.startsWith(\"String_Node_Str\")) {\n option.setOutput(JsOutputOption.OBFUSCATED);\n return 1;\n } else if... |
"public void flush() {\n if (staleEntryNames.isEmpty()) {\n logger.log(DEBUG_LEVEL, \"String_Node_Str\");\n final File marker = Util.markerFile(archiveFile);\n if (!marker.exists() || marker.delete()) {\n return;\n }\n logger.log(Level.FINE, \"String_Node_Str\", marker.g... |
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n TurboLabel other = (TurboLabel) obj;\n if (name == null) {\n return other.name == null;\n }\n return this.toGhN... |
"public static Config getConfigForAllTests() {\n String clusterName = \"String_Node_Str\";\n DbTypeEnum serverType = DbTypeEnum.CASSANDRA;\n String seeds = \"String_Node_Str\";\n return new Config(serverType, clusterName, seeds);\n}\n"
|
"public int numKeys() {\n lock.lock();\n try {\n maybeLookAhead();\n return basicKeyChain.numKeys();\n } finally {\n lock.unlock();\n }\n}\n"
|
"public ScoreObject score(MLDataPair pair, Map<String, String> rawDataMap) {\n if (pair == null) {\n return null;\n }\n List<Integer> scores = new ArrayList<Integer>();\n if (modelConfig != null && modelConfig.getAlgorithm().equalsIgnoreCase(CommonConstants.GBDT_ALG_NAME)) {\n double learningR... |
"public StringBuffer format(int col) {\n int singleLineWidth = this.singleLineWidth();\n if (fitsAsSingleLine(col)) {\n return this.singleLine(col);\n }\n StringBuffer val = prefixAsStringBuffer(col);\n int prefixWidth = 0;\n if (prefix != null && prefix.size() > 0) {\n prefixWidth = ((S... |
"private boolean checkNotInGlobalScope(ConfigProperty configProperty) {\n return !configProperty.isGlobalScopeOnly();\n}\n"
|
"public Report executeOnRepresentation(IndexService index, ModelService model, StorageService storage, Report report, SimpleJobPluginInfo jobPluginInfo, List<Representation> list, Job job) throws PluginException {\n for (Representation representation : list) {\n Report reportItem = PluginHelper.initPluginRepo... |
"private boolean hasThreeLines() {\n boolean contentTextInLine2 = mSubText != null && mContentText != null;\n boolean badgeInLine3 = getProfileBadgeDrawable() != null && !contentTextInLine2;\n boolean hasLine3 = mContentText != null || mContentInfo != null || mNumber > 0 || badgeInLine3;\n boolean hasLine2 ... |
"private String getExceptionInfo(Exception e) {\n StringBuffer sb = new StringBuffer();\n appendLine(sb, \"String_Node_Str\" + e.getClass().getSimpleName());\n appendLine(sb, \"String_Node_Str\" + e.getMessage());\n appendLine(sb, \"String_Node_Str\");\n appendLine(sb, getStackTraceInfo(e));\n Throwab... |
"public void widgetSelected(SelectionEvent e) {\n if (((Button) e.widget).getSelection()) {\n BorderInfomation information = new BorderInfomation();\n information.setPosition(provider.getPosition());\n information.setColor(builder.getRGB());\n information.setStyle((String) styleCombo.getS... |
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0)\n return false;\n if (!mActionBarAllowed)\n return false;\n if (mOrientationManager.isOrientationLocked())\n return false;\n return true;\n}\n"
|
"public void fire() throws IllegalActionException {\n super.fire();\n if (input.hasToken(0)) {\n Time currentTime = getDirector().getModelTime();\n DoubleToken currentToken = (DoubleToken) input.get(0);\n _currentInput = new TimedEvent(currentTime, currentToken);\n DoubleToken currentO... |
"public void applyParameters(Material program) {\n super.applyParameters(program);\n Optional<Texture> terrain = Assets.getTexture(\"String_Node_Str\");\n Optional<Texture> terrainNormal = Assets.getTexture(\"String_Node_Str\");\n Optional<Texture> terrainHeight = Assets.getTexture(\"String_Node_Str\");\n ... |
"private void terminate(final int endCallReasonId) {\n Log.d(LOG_TAG, \"String_Node_Str\" + endCallReasonId);\n if (isCallEnded()) {\n return;\n }\n dispatchOnStateDidChange(CALL_STATE_ENDED);\n boolean isPeerConnectionFactoryAllowed = false;\n if (null != mPeerConnection) {\n mPeerConne... |
"public Map<List<T>, ArrayList<BVNode>> getCellsIntersecting(BVTree bvtree) {\n Map<List<T>, ArrayList<BVNode>> potentials = new HashMap<List<T>, ArrayList<BVNode>>();\n Point3d cellCentre = new Point3d();\n double searchRad = myGridSpacing * Math.sqrt(0.5);\n searchRad = Math.sqrt(searchRad * searchRad + m... |
"public void fireStart(ServiceConfiguration config) throws ServiceRegistrationException {\n LOG.info(\"String_Node_Str\" + config);\n EventRecord.here(ClusterBuilder.class, EventType.COMPONENT_SERVICE_START, config.getComponentId().name(), config.getName(), config.getUri().toASCIIString()).info();\n try {\n ... |
"private ImmutableSet<TypeRoleFillerRealis> responsesToDelete(AnswerKey answerKey) {\n final ImmutableSet.Builder<TypeRoleFillerRealis> ret = ImmutableSet.builder();\n for (final AssessedResponse assessedResponse : answerKey.annotatedResponses()) {\n if (assessedResponse.response().type() == LIFE_DIE && as... |
"private void revertToWeb() {\n final Runnable r = new Runnable() {\n public void run() {\n if (!mHaveReverted) {\n mHaveReverted = true;\n LinkHandler.onLinkClicked(ImageViewActivity.this, mUrl.toString(), true);\n finish();\n }\n }\n ... |
"public int onStartCommand(Intent intent, int flags, int startId) {\n startForeground(notifMgr.getForegroundNotificationId(), notifMgr.getForegroundNotification());\n if (intent != null && intent.getExtras() != null) {\n if (intent.getExtras().containsKey(\"String_Node_Str\")) {\n Object objBoot... |
"public void run() {\n if (threadFerry != null) {\n threadFerry.doInDestThread();\n }\n RopRequestContext ropRequestContext = null;\n try {\n ropRequestContext = requestContextBuilder.buildBySysParams(ropContext, servletRequest, servletResponse);\n MainError mainError = securityManager.... |
"public boolean isSameClass(IType type) {\n if (Types.isSameClass(type, this.getUpperBound())) {\n return true;\n }\n final IType lowerBound = this.getLowerBound();\n return lowerBound == null || Types.isSameClass(lowerBound, type);\n}\n"
|
"public List listJMSDestinations(String tgtName, String destType) throws Exception {\n logger.log(Level.FINE, \"String_Node_Str\");\n MQJMXConnectorInfo mqInfo = getMQJMXConnectorInfo(target, config, serverContext, domain, connectorRuntime);\n try {\n MBeanServerConnection mbsc = mqInfo.getMQMBeanServer... |
"public void setUpperThreshold(int threshold) {\n int newListIndex = 0;\n if (sourceSize == 0) {\n upperThreshold = threshold;\n upperThresholdIndex = -1;\n return;\n } else if (threshold == upperThreshold) {\n return;\n } else {\n if (threshold == Integer.MAX_VALUE) {\n ... |
"public static String[] getCommandLine(String targetPlatform, boolean externalUse, IProcess currentProcess, Property property, String contextName, boolean needContext, int statisticPort, int tracePort, String... codeOptions) throws ProcessorException {\n if (currentProcess == null) {\n return new String[] {};... |
"public GenericData getGenericData(GenericData genericData, IValue instance, IArguments arguments) {\n if (!this.hasTypeVariables()) {\n return genericData;\n }\n if (genericData == null) {\n genericData = new GenericData(this, this.genericCount);\n if (instance != null) {\n gen... |
"public void updateUI() {\n if (skinButton != null) {\n skinButton.setImage(base.getImageID());\n String tt = base.getToolTipID();\n if (tt == null) {\n String temp = base.getTextID();\n if (temp != null) {\n String test = temp + \"String_Node_Str\";\n ... |
"private int insert(Long nodePointer, RStarNode newChild) {\n storage.saveNode(newChild);\n RStarInternal node = (RStarInternal) loadNode(nodePointer);\n if (node.isNotFull()) {\n int status = node.insert(newChild);\n if (status == 1) {\n storage.saveNode(node);\n } else {\n ... |
"public void sortCaseSensitive() {\n chars = \"String_Node_Str\";\n createAndTest(new StringBuilder(chars).reverse().toString());\n chars = \"String_Node_Str\";\n numberOfPermutations = 0;\n permute(chars, 0, chars.length() - 1);\n assertEquals(numberOfPermutations, factorial(chars.length()));\n}\n"
|
"public boolean containsPhoneticExpectation(PhoneticExpectation expectation) {\n return phoneticExpectations.contains(expectation);\n}\n"
|
"public void quantityChanged() {\n Pool p = TestUtil.createPool(owner, TestUtil.createProduct(owner));\n Pool p1 = TestUtil.clone(p);\n p1.setQuantity(2000L);\n List<Pool> existingPools = Arrays.asList(p1);\n List<PoolUpdate> updates = this.poolRules.updatePools(p, existingPools, p.getQuantity(), new Has... |
"protected void loadClientMetadata(Map<String, Object> puProperties) {\n ClientMetadata clientMetadata = new ClientMetadata();\n String luceneDirectoryPath = puProperties != null ? (String) puProperties.get(PersistenceProperties.KUNDERA_INDEX_HOME_DIR) : null;\n String indexerClass = puProperties != null ? (St... |
"public int hashCode() {\n int result = previousOutput == null ? 1 : previousOutput.hashCode();\n result = 31 * result + (int) (sequence ^ (sequence >>> 32));\n result = 31 * result + scriptSignature.hashCode();\n return result;\n}\n"
|
"private WSResourceE handlePictureResourceObject(TreeObject treeObj) throws IOException {\n if (treeObj != null) {\n if (treeObj instanceof TreeParent) {\n return null;\n }\n String[] fileInfo = getPicResourceFileInfo(treeObj.getName());\n if (fileInfo != null) {\n S... |
"public void handleEvent(BMIModuleEvent event) {\n if (!modletFactories.containsKey(event.getModuleId())) {\n logService.log(LogService.LOG_ERROR, \"String_Node_Str\" + event.getModuleId());\n return;\n }\n try {\n List<IModlet> ml;\n switch(event.getType()) {\n case INSE... |
"public void migrate(Connection connection) throws IOException, SQLException {\n if (WorkflowServiceFactory.getInstance().getWorkflowService() instanceof XmlWorkflowService && DatabaseUtils.getCurrentFlywayDSpaceState(connection) < 6) {\n if (!DatabaseUtils.tableExists(connection, \"String_Node_Str\")) {\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.