content stringlengths 40 137k |
|---|
"public void testPESSIMISTIC_WRITE_TIMEOUTLock() {\n ServerSession session = JUnitTestCase.getServerSession();\n Assert.assertFalse(\"String_Node_Str\", session.getPlatform().isSybase());\n if (!isOnServer() && isSelectForUpateSupported() && !session.getPlatform().isMySQL()) {\n EntityManager em = creat... |
"public void onPlayerInteract(PlayerInteractEvent.RightClickBlock event) {\n if (event.getWorld().getWorldBorder().contains(event.getPos())) {\n ItemStack heldStack = event.getItemStack();\n if (!ItemStackUtil.isEmpty(heldStack) && ItemStackUtil.getCount(heldStack) == 1) {\n boolean glasBott... |
"static void addUncompressedChunk(JsonParsingContext context) {\n if (context.doubleValues != null && context.stringValues == null) {\n context.doubleChunks.add(new UncompressedDoubleArrayChunk(context.offset, context.doubleValues.toArray()));\n } else if (context.stringValues != null) {\n context.s... |
"private void handleInputChanged() {\n String classNamePattern = \"String_Node_Str\";\n for (Text text : textMap.keySet()) {\n if (!Pattern.matches(classNamePattern, text.getText())) {\n setPageComplete(false);\n String message = \"String_Node_Str\" + text.getText() + \"String_Node_St... |
"public Set<StringTuple> getTupelForResource(URI uri) {\n Set<StringTuple> s = new HashSet<StringTuple>();\n String a = \"String_Node_Str\";\n String b = \"String_Node_Str\";\n String sparqlQueryString = sparqlQueryMaker.makeSubjectQueryUsingFilters(uri.toString());\n SparqlQuery query = new SparqlQuery(... |
"public void insert(int elementNum, String stringPart, Image imagePart) {\n if (elementNum < strings.size() && elementNum > 0) {\n try {\n strings.add(elementNum, stringPart);\n images.add(elementNum, imagePart);\n } catch (Exception e) {\n append(stringPart, imagePart)... |
"public int randomRespawnCell() {\n int count = 0;\n int cell = -1;\n while (true) {\n if (++count > 30) {\n return -1;\n }\n Room room = randomRoom(StandardRoom.class);\n if (room == null || room == roomEntrance) {\n continue;\n }\n if (room.widt... |
"public final boolean addAmountToInventory(int amount) {\n PlayerInventory inventory = player.getInventory();\n int amountToAdd = amount;\n for (ItemStack item : inventory.all(selectedItem.getItemStack().getType()).values()) {\n if (item.getDurability() == selectedItem.getItemStack().getDurability()) {\... |
"public void actionPerformed(TableElementPresetAction tableElementButton, String actionID) {\n if (tableElementButton.getID().equals(\"String_Node_Str\")) {\n switch(actionID) {\n case \"String_Node_Str\":\n biomeGenerationInfoList.clear();\n biomeGenerationInfoList.ad... |
"private void sendSmsMessage(String text) {\n OperationSetSmsMessaging smsOpSet = null;\n Iterator protocolProviders = chatWindow.getMainFrame().getProtocolProviders();\n while (protocolProviders.hasNext()) {\n ProtocolProviderService protocolProvider = (ProtocolProviderService) protocolProviders.next()... |
"public Void parse(Object[] message) throws IOException {\n Map<String, HmDevice> devicesById = new HashMap<String, HmDevice>();\n for (HmDevice device : devices) {\n devicesById.put(device.getHomegearId(), device);\n }\n message = (Object[]) message[0];\n for (int i = 0; i < message.length; i++) ... |
"private EventObject getEventObject(String eventType) {\n List<INodePO> nodeList = IteratorUtils.toList(m_execStack.peek().getExecNode().getNodeListIterator());\n ICapPO cap = (ICapPO) nodeList.get(m_execStack.peek().getIndex());\n ExecStackMarker marker = new ExecStackMarker(m_execStack, cap);\n EventObjec... |
"public void captureImage(Camera camera) {\n for (SimCameraThread cameraThread : simulatedCameraThreadList) {\n if (cameraThread.getCamera().getId() == camera.getId()) {\n cameraThread.setTakeImage(true);\n }\n }\n}\n"
|
"public void sortPermanents(Map<String, JComponent> ui, Collection<MagePermanent> permanents) {\n sortingOptions.put(\"String_Node_Str\", PreferencesDialog.getCachedValue(\"String_Node_Str\", \"String_Node_Str\"));\n if (this.cardPlugin != null)\n return this.cardPlugin.sortPermanents(ui, permanents, sorti... |
"public ICustomerDataset getCustomerDataset() {\n CustomerDefaultCategoryDataset customerdataset = new CustomerDefaultCategoryDataset();\n for (IndicatorUnit unit : units) {\n if (unit.isExcuted()) {\n FrequencyExt[] frequencyExt = (FrequencyExt[]) unit.getValue();\n sortIndicator(fre... |
"public static String getString(Operation op, String addendum) {\n return prefix + op.toString().toLowerCase().replace(\"String_Node_Str\", \"String_Node_Str\") + addendum;\n}\n"
|
"public void merge(Object from, Object target) {\n if (null == from || null == target) {\n return;\n }\n final BeanWrapper fromWrapper = BeanWrapper.create(from, conversionService);\n final BeanWrapper targetWrapper = BeanWrapper.create(target, conversionService);\n PersistentEntity entity = repos... |
"private void clear() {\n elementGroup.clearSelection();\n nodesButton.setEnabled(false);\n edgesButton.setEnabled(false);\n filterTextField.setEnabled(false);\n labelFilter.setEnabled(false);\n bannerPanel.setVisible(false);\n visibleGraphCheckbox.setEnabled(false);\n hideTable();\n}\n"
|
"public void onEntityDeath(EntityDeathEvent event) {\n if (event.getEntity() instanceof Player) {\n return;\n }\n Player player = null;\n LivingEntity tamedCreature = null;\n if (event.getEntity().getLastDamageCause() instanceof EntityDamageByEntityEvent) {\n EntityDamageByEntityEvent subEv... |
"public void start() {\n super.start();\n if (scheduledItems > 0) {\n LOGGER.debug(\"String_Node_Str\", SIMPLE_NAME, scheduledItems);\n scheduledItems = Math.min(scheduledItems, MAX_SCHEDULED_ITEMS);\n executorService = new ScheduledThreadPoolExecutor(scheduledItems, Log4jThreadFactory.create... |
"public List<LightPartMasterDTO> searchPartNumbers(String workspaceId, String q) throws EntityNotFoundException, AccessRightException {\n List<PartMaster> partMasters = productService.findPartMasters(Tools.stripTrailingSlash(workspaceId), \"String_Node_Str\" + q + \"String_Node_Str\", 8);\n List<LightPartMasterDT... |
"private void processTopicref(final Element topicref) {\n final String xtrfValue = getValue(topicref, ATTRIBUTE_NAME_XTRF);\n if (xtrfValue != null && xtrfValue.contains(ATTR_XTRF_VALUE_GENERATED)) {\n return;\n }\n final Collection<String> chunkValue = split(getValue(topicref, ATTRIBUTE_NAME_CHUNK))... |
"protected void initialize() throws ServletException {\n super.initialize();\n myAppCtx = ContextLoaderListener.getCurrentWebApplicationContext();\n String implDesc = getInitParameter(\"String_Node_Str\");\n String fhirVersionParam = getInitParameter(\"String_Node_Str\");\n if (StringUtils.isBlank(fhirVe... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (rootView != null) {\n if (rootView.getParent() != null)\n ((ViewGroup) rootView.getParent()).removeView(rootView);\n return rootView;\n }\n ... |
"public void testAwait_withManyThreads() {\n HazelcastInstance instance = createHazelcastInstance();\n final ICountDownLatch latch = instance.getCountDownLatch(randomString());\n final CountDownLatch completedLatch = new CountDownLatch(10);\n latch.trySetCount(1);\n for (int i = 0; i < 10; i++) {\n ... |
"public void run() {\n try {\n System.getProperties().put(\"String_Node_Str\", user);\n System.getProperties().put(\"String_Node_Str\", passwordStr);\n System.getProperties().put(\"String_Node_Str\", namespace);\n System.getProperties().put(\"String_Node_Str\", String.valueOf(port));\n ... |
"private void initializeDataContainers() {\n DataTable table = new DataTable(dataDomain);\n dataDomain.setTable(table);\n ArrayList<ColumnDescription> parsingPattern = dataSetDescription.getParsingPattern();\n String[] headers = null;\n if (dataSetDescription.isContainsColumnIDs()) {\n try {\n ... |
"public void run() {\n try {\n IRemoteServiceReference[] remoteReferences = (IRemoteServiceReference[]) futureRemoteReferences.get(sedh.getFutureTimeout());\n IStatus futureStatus = futureRemoteReferences.getStatus();\n if (futureStatus.isOK()) {\n trace(\"String_Node_Str\", \"String_... |
"protected Command createButtonCommand(Button button) {\n if (checkForRepositoryShema(button)) {\n return null;\n }\n Button inputButton = button;\n IElementParameter switchParam = elem.getElementParameter(EParameterName.REPOSITORY_ALLOW_AUTO_SWITCH.getName());\n if (inputButton.getData(NAME).equa... |
"public void testInProcessCancellation() throws Exception {\n Config config = buildConfig();\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(config);\n HazelcastInstance h2 = Hazelcast.newHazelcastInstance(config);\n HazelcastInstance h3 = Hazelcast.newHazelcastInstance(config);\n HazelcastInstan... |
"protected void addSuccessorParamsAndActionInterfaces() {\n int i = 1;\n for (IOAction a : this.curr.getTakeable().stream().sorted(IOACTION_COMPARATOR).collect(Collectors.toList())) {\n this.ib.addParameters(\"String_Node_Str\" + i + \"String_Node_Str\" + SuccessorInterfaceGenerator.getSuccessorInterfaceNa... |
"private void saveVideo() {\n if (mVideoFileDescriptor == null) {\n long duration = 0L;\n if (mMediaRecorderPausing == false)\n duration = SystemClock.uptimeMillis() - mRecordingStartTime + mRecordingTotalTime;\n else\n duration = mRecordingTotalTime;\n if (duration ... |
"public void onEnable() {\n plugin = this;\n setupPluginInformation();\n server = getServer();\n database = getDatabase();\n Plugin[] plugins = server.getPluginManager().getPlugins();\n int counter = 0;\n StringBuffer Plugins = new StringBuffer();\n while (plugins.length > counter) {\n Pl... |
"public T greaterThanOrEq(Object val) {\n Assert.parametersNotNull(\"String_Node_Str\", val);\n return addCrit(FilterOperator.GREATER_THAN_OR_EQUAL, val);\n}\n"
|
"public int getTypeMatch(IType type) {\n if (!type.isArrayType()) {\n IClass iclass = type.getTheClass();\n return iclass == Types.OBJECT_CLASS || iclass.getAnnotation(ARRAY_CONVERTIBLE) != null ? 2 : 0;\n }\n if (this.valueCount == 0) {\n return 3;\n }\n IType type1 = type.getElemen... |
"public boolean equals(Object obj) {\n if (!(obj instanceof ConceptName)) {\n return false;\n }\n ConceptName rhs = (ConceptName) obj;\n if (this.conceptNameId != null && rhs.conceptNameId != null)\n return (this.conceptNameId.equals(rhs.concept));\n else\n return this == obj;\n}\n"
|
"private static void generateMasterPackage() {\n if (debug) {\n logger.debug(\"String_Node_Str\");\n }\n String script = System.getenv(ITConstants.IT_HOME) + TRACE_SCRIPT_PATH;\n ProcessBuilder pb = new ProcessBuilder(script, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n pb.env... |
"private TreeItem gotoDBContainer(int id, int db, String container, boolean isKey, boolean refresh) {\n rootTreeItemSelected(false);\n TreeItem dbItem = findDBTreeItem(id, db);\n TreeItem dataItemSelected = dbItem;\n if (dbItem != null) {\n dbContainerTreeItemSelected(dbItem, refresh);\n TreeI... |
"public void invertSelection() {\n swingThreadSource.getReadWriteLock().writeLock().lock();\n try {\n listSelection.invertSelection();\n } finally {\n swingThreadSource.getReadWriteLock().writeLock().unlock();\n }\n}\n"
|
"protected void init(RepositoryNode node) {\n ERepositoryObjectType nodeType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n if (!currentNodeType.equals(nodeType)) {\n return;\n }\n this.setText(createLabel);\n this.setImageDescriptor(ImageProvider.getImageDesc(EServiceCo... |
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n if (!r.checkArgs(args, 0)) {\n if (!r.isPlayer(cs)) {\n return;\n }\n Player p = (Player) cs;\n if (r.getOnlinePlayers().l... |
"public boolean process(String type, String message, Object object) {\n if (AppStatusApplicationCreatedEvent.class.getName().equals(type)) {\n AppStatusApplicationCreatedEvent event = (AppStatusApplicationCreatedEvent) Util.jsonToObject(message, AppStatusApplicationCreatedEvent.class);\n if (log.isDebu... |
"public void addEventListener(final String eventName, final LeoObject function) {\n switch(eventName.toLowerCase()) {\n case \"String_Node_Str\":\n {\n addEventListener(BombDisarmedEvent.class, new BombDisarmedListener() {\n\n public void onBombDisarmedEvent(BombDi... |
"public org.hl7.fhir.dstu2.model.Resource convertResource(org.hl7.fhir.dstu3.model.Resource src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n if (src instanceof org.hl7.fhir.dstu3.model.Parameters)\n return convertParameters((org.hl7.fhir.dstu3.model.Parameters) src);\... |
"public void testRegister() {\n OpenPushHelper helper = OpenPushHelperKeeper.getNewInstance(Robolectric.application);\n Options.Builder builder = new Options.Builder();\n final String providerName = \"String_Node_Str\";\n builder.addProviders(new MockPushProvider(Robolectric.application, providerName));\n ... |
"public int getGUESSVersion() {\n String value = super.getProperty(ConnectionHandshakeHeaders.X_GUESS);\n if (value == null)\n return -1;\n else {\n float version = Float.valueOf(value).floatValue();\n version *= 10;\n return (int) version;\n }\n}\n"
|
"private Set<Long> addPredicateDate(Set<Long> thePids, List<IQueryParameterType> theOrParams) {\n if (theOrParams == null || theOrParams.isEmpty()) {\n return thePids;\n }\n CriteriaBuilder builder = myEntityManager.getCriteriaBuilder();\n CriteriaQuery<Long> cq = builder.createQuery(Long.class);\n ... |
"public void close() {\n initialStream.close();\n}\n"
|
"protected TabBase getTabAtPosition(int mX, int mY) {\n int xShift = 0;\n int yShift = 4;\n for (int i = 0; i < tabs.size(); i++) {\n TabBase tab = tabs.get(i);\n if (!tab.isVisible() || tab.side == 1) {\n continue;\n }\n tab.currentShiftX = xShift;\n tab.currentSh... |
"public void handleResponse(List<UpdatedItem> updated) {\n for (UpdatedItem item : updated) {\n final String updatedAt = item.getUpdatedAt();\n final Movie movie = item.getMovie();\n final long traktId = movie.getIds().getTrakt();\n final long movieId = movieHelper.getId(traktId);\n ... |
"protected void loadTextureImpl(int sampling) {\n if (width == 0 || height == 0)\n return;\n if (texture == null) {\n PTexture.Parameters params = PTexture.newParameters(ARGB, sampling);\n texture = new PTexture(parent, width, height, params);\n texture.setFlippedY(true);\n this... |
"private boolean page(InputStream in, OutputStream stdout) throws IOException {\n Console con = System.console();\n if (con == null) {\n Util.copyStream(in, stdout);\n return false;\n }\n Reader r = con.reader();\n int lines = mLines;\n do {\n for (int i = 0; i < lines; i++) {\n ... |
"public void addPrimaryKeyFieldName(String fieldName) {\n super.addPrimaryKeyField(new XMLField(fieldName));\n}\n"
|
"public void testCellInstance() throws ScriptException {\n CellContent cellContent = (CellContent) reportContent.createCellContent();\n cellContent.setColumn(1);\n Map expressionMap = new HashMap();\n expressionMap.put(EXPRESSION, EXPRESSION_VALUE);\n ICellInstance cell = new CellInstance(cellContent, nu... |
"public static List<String> processEmailDesigneeArray(String[] designees, Submission sub) {\n List<String> addresses = new ArrayList<String>();\n for (String designee : designees) {\n if (designee.trim().length() != 0) {\n RecipientType recipientType = null;\n for (RecipientType oneRe... |
"public void testSetCreateAsynchronouslyFalse() {\n Dictionary headers = new Hashtable();\n headers.put(\"String_Node_Str\", \"String_Node_Str\");\n EntryLookupControllingMockBundle aBundle = new EntryLookupControllingMockBundle(headers);\n aBundle.setResultsToReturnOnNextCallToFindEntries(META_INF_SPRING_C... |
"private static byte[] physicalAddressToParam(int physicalAddress) {\n return new byte[] { (byte) ((physicalAddress >> 8) & 0xFF), (byte) (physicalAddress & 0xFF) };\n}\n"
|
"public void bind(GL gl) {\n if (vboId < 0) {\n int[] vboIds = new int[1];\n gl.glGenBuffers(vboIds.length, vboIds, 0);\n vboId = vboIds[0];\n }\n gl.glBindBuffer(getTarget(), vboId);\n if (dirty) {\n boolean locked = false;\n if (uploadRequired) {\n lock.lock()... |
"private void checkPath() throws CommandException {\n List<String> notFound = new ArrayList<String>();\n for (String dll : DEPENDENCIES) {\n File f = getExe(dll);\n if (f == null)\n notFound.add(dll);\n else {\n if (logger.isLoggable(Level.FINER))\n logger... |
"public String generate(Object argument) {\n final StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(TEXT_1);\n if (argument instanceof EClass) {\n EClass eClass = (EClass) argument;\n stringBuffer.append(TEXT_2);\n stringBuffer.append(eClass.getName());\n if (!e... |
"private Collection<String> getGroupsRolesForPostsAccess(Collection<Integer> groupIds) {\n List<String> roles = new ArrayList<String>(groupIds.size());\n String[] ids = new String[groupIds.size()];\n int i = 0;\n for (Integer id : groupIds) {\n ids[i++] = id.toString();\n }\n GroupBusiness grou... |
"void buttonApplyHandler(ClickEvent e) {\n Permissions permissions = getPermissions();\n GWT.log(\"String_Node_Str\" + permissions);\n BrowserService.Util.getInstance().updateAIPPermssions(aip.getId(), permissions, new AsyncCallback<Void>() {\n public void onSuccess(Void result) {\n cancel();... |
"protected Control createContents(Composite parent) {\n Composite mainComposite = new Composite(parent, SWT.NONE);\n GridData data = new GridData(GridData.FILL_HORIZONTAL);\n data.horizontalSpan = 2;\n data.verticalSpan = 5;\n GridLayout layout = new GridLayout();\n mainComposite.setLayout(layout);\n ... |
"static FileStats merge(final FileStats s1, final FileStats s2) {\n final List<LineCoverageRecord> r1 = s1.getLineCoverageRecords();\n final List<LineCoverageRecord> r2 = s2.getLineCoverageRecords();\n Preconditions.checkArgument(s1.fileUri.equals(s2.fileUri), \"String_Node_Str\", s1, s2);\n Preconditions.c... |
"private Type getRandomWeapon(Team team) {\n int index = -1;\n if (team != null) {\n PlayerClass playerClass = this.brain.getPlayer().getPlayerClass();\n List<WeaponEntry> availableWeapons = playerClass.getAvailableWeapons();\n int max = availableWeapons.size();\n boolean pickSmart = r... |
"public HashMap<Integer, Block> genBlockIDSchemToBlockWithUnlocalizedName(NBTTagCompound parMappingNBT) {\n HashMap<String, Block> swapMap = new HashMap<String, Block>();\n HashMap<Integer, Block> finalMap = new HashMap<Integer, Block>();\n try {\n Set set = Block.REGISTRY.getKeys();\n Iterator i... |
"public ScriptConstraint createConstraint(String listName, String title, String[] allowedValues) {\n if (listName != null) {\n listName = listName.replace(\"String_Node_Str\", \"String_Node_Str\");\n }\n RMConstraintInfo info = caveatConfigService.addRMConstraint(listName, title, allowedValues);\n re... |
"public void testAggrFilter1() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEd... |
"public void should_get_payload_from_post_if_post() throws IOException, InterruptedException {\n StaplerRequest request = mock(StaplerRequest.class);\n when(request.getParameter(\"String_Node_Str\")).thenReturn(\"String_Node_Str\");\n when(request.getMethod()).thenReturn(\"String_Node_Str\");\n doReturn(\"S... |
"private void checkMessageSendingPossibility() {\n boolean isFriend = DatabaseManager.isFriendInBase(PrivateDialogActivity.this, opponentFriend.getUserId());\n messageEditText.setEnabled(isFriend);\n}\n"
|
"public void testNoValidationsClass() {\n FieldAnnotationWriter app = new BackboneFieldAnnotationWriter();\n DefaultModelGenerator mg = new DefaultModelGenerator(new BackboneModelProcessor(modelWriter, app), new JavaToJSValueConverter(ConverterMode.ALLOW_NULL), app);\n mg.process(NoValidationsClass.class);\n ... |
"public List typeConstraintList() throws IllegalActionException {\n try {\n workspace().getReadAccess();\n List result = new LinkedList();\n if (isOpaque()) {\n Iterator entities = deepEntityList().iterator();\n while (entities.hasNext()) {\n TypedActor actor... |
"protected void updateResidualsAndCost() throws EstimationException {\n if (++costEvaluations > maxCostEval) {\n throw new EstimationException(\"String_Node_Str\", new Object[] { new Integer(maxCostEval) });\n }\n cost = 0;\n for (int i = 0, index = 0; i < rows; i++, index += cols) {\n Weighte... |
"public ItemRecord computeInput(IPath path) {\n sourcePath = path.removeFileExtension();\n try {\n FilesUtils.createFolder(sourcePath.toFile());\n FilesUtils.unzip(path.toOSString(), sourcePath.toOSString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n String curProjectLab... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.post_list_fragment, container, false);\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n mEmptyView = view.findViewById(R.id.empty_view);\n mEm... |
"public boolean onTouchEvent(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_DOWN || event.getAction() == MotionEvent.ACTION_POINTER_DOWN) {\n Log.i(\"String_Node_Str\", String.format(\"String_Node_Str\", event.getPointerCount()));\n if (mGame.getState() == Game.State.IN_PROGRESS) {\... |
"public static void cleanSubGroup(OutputTreeNode node) {\n for (TreeNode treeNode : node.getChildren()) {\n TreeNode child = treeNode;\n if (child.isGroup()) {\n child.setGroup(false);\n }\n cleanSubGroup(outputNode);\n }\n}\n"
|
"public ExtendedTooltip getToolTip() {\n ExtendedTooltip tip = new ExtendedTooltip(true);\n tip.setImage(getScaledAvatar(false, 30, 30));\n tip.setTitle(sourceContact.getDisplayName());\n String displayDetails = getDisplayDetails();\n if (displayDetails != null)\n tip.addLine(new JLabel[] { new JL... |
"public byte[] applyPatch(String name, byte[] basicClass, boolean obfuscated) {\n String iPAMethodName = \"String_Node_Str\";\n if (obfuscated) {\n iPAMethodName = METHOD_IPA_MCP;\n } else {\n iPAMethodName = METHOD_IPA;\n }\n ClassNode classNode = new ClassNode();\n ClassReader classRea... |
"public void kill(DisconnectReason reason) {\n boolean lockSet = false;\n try {\n if (lock.tryLock(500, TimeUnit.MILLISECONDS)) {\n lockSet = true;\n UserManager.getInstance().removeUser(userId, reason);\n } else {\n logger.error(\"String_Node_Str\" + userId);\n ... |
"public static <O extends PoolObject<O, ?> & RealLocalizable, T extends MappedElement> KDTree<O, T> kdtree(final Collection<O> objects, final Pool<O, ?> objectPool, final MemPool.Factory<T> poolFactory) {\n if (objects.isEmpty())\n return null;\n final KDTree<O, T> kdtree = new NodeFactory<O, T>(objects, o... |
"public static void mergeParam(ObjectMapper objectMapper, JsonNode configRootNode, String pathAndProp, String value) throws Exception {\n String path = pathAndProp.substring(0, pathAndProp.lastIndexOf(\"String_Node_Str\"));\n String prop = pathAndProp.substring(pathAndProp.lastIndexOf(\"String_Node_Str\") + 1);\n... |
"protected void requestParentRefresh() {\n Optional<AbstractNetatmoThingHandler> parent = getBridgeHandler().findNAThing(getParentId());\n parent.ifPresent(AbstractNetatmoThingHandler::updateChannels);\n}\n"
|
"private static void generateJndiPropertiesFile() {\n String mbIp = System.getProperty(\"String_Node_Str\");\n if (StringUtils.isBlank(mbIp)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n String mbPort = System.getProperty(\"String_Node_Str\");\n if (StringUtils.isBlank(mbPort)) {\n ... |
"protected List<SelectionDetail> getSelectionDetailsAtIndex(int xIndex) {\n List<SelectionDetail> vals = new ArrayList<SelectionDetail>();\n float[] pts = new float[2];\n for (int i = 0; i < mData.getDataSetCount(); i++) {\n DataSet<?> dataSet = mData.getDataSetByIndex(i);\n if (!dataSet.isHighli... |
"public void showPointHandles() {\n if (m_HandlerRegistrationManager == null) {\n m_HandlerRegistrationManager = m_connector.getPointHandles().getHandlerRegistrationManager();\n m_connector.getPointHandles().show();\n final ConnectionHandler connectionHandler = new ConnectionHandler();\n ... |
"public Set<NamedClass> getInconsistentClassesImpl() {\n Set<NamedClass> concepts = new HashSet<NamedClass>();\n for (OWLClass concept : reasoner.getUnsatisfiableClasses().getEntitiesMinusBottom()) {\n concepts.add(new NamedClass(concept.toStringID()));\n }\n return concepts;\n}\n"
|
"public void testAccept1() throws Exception {\n String[] bindingNameFilter = new String[3];\n bindingNameFilter[0] = \"String_Node_Str\";\n bindingNameFilter[1] = \"String_Node_Str\";\n bindingNameFilter[2] = \"String_Node_Str\";\n IBaseExpression[] bindingExprFilter = new IBaseExpression[3];\n bindin... |
"public String toString() {\n String out = \"String_Node_Str\";\n String files = \"String_Node_Str\";\n Iterator<String> listIt = this.getRelevantFiles().iterator();\n while (listIt.hasNext()) {\n String nextFile = listIt.next();\n nextFile = nextFile.substring(nextFile.lastIndexOf('/') + 1);\... |
"public void notifyBatteryLevel(boolean enable) {\n if (timerTaskNotifyBatteryLevel != null) {\n timerTaskNotifyBatteryLevel.cancel();\n timerTaskNotifyBatteryLevel = null;\n timer.purge();\n }\n if (enable && isConnected()) {\n timerTaskNotifyBatteryLevel = new TimerTask() {\n ... |
"private static ChartCell[][] getNewChart(Sentence sentence, CnfGrammar grammar, ChartCellType cellType, ParseType parseType) {\n ChartCell[][] chart = new ChartCell[sentence.size()][sentence.size() + 1];\n for (int i = 0; i < chart.length; i++) {\n for (int j = i + 1; j < chart[i].length; j++) {\n ... |
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getType() == GameEvent.EventType.DAMAGE_PLAYER) {\n if (event.getTargetId().equals(source.getControllerId()) && !Objects.equals(game.getControllerId(event.getSourceId()), source.getControllerId())) {\n return super.ap... |
"protected void tillAOE(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int meta, int emcCost) {\n byte charge = this.getCharge(stack);\n boolean hasAction = false;\n boolean hasSoundPlayed = false;\n for (int i = x - charge; i <= x + charge; i++) {\n for (int j = z - charge; ... |
"public IColumnAnalizeResult analize() throws IOException {\n boolean maybeSorted = true;\n Byte currentSortCheckValue = Byte.MIN_VALUE;\n int nullCount = 0;\n int rowCount = 0;\n Set<Byte> dicSet = new HashSet<Byte>();\n Byte min = Byte.MAX_VALUE;\n Byte max = Byte.MIN_VALUE;\n for (int i = 0; ... |
"public synchronized void unregistered(byte[] guid) {\n if (LOG.isDebugEnabled())\n LOG.debug(\"String_Node_Str\" + (new GUID(guid)).toHexString());\n running = false;\n newHosts.addAll(verifiedHosts);\n newHosts.addAll(testedLocations);\n verifiedHosts.clear();\n pingedHosts.clear();\n test... |
"public void process(T input) {\n if (scale == 1.0) {\n alg.setPeriodColumns(periodX);\n alg.setPeriodRows(periodY);\n } else {\n int width = (int) (input.width / scale + 0.5);\n int height = (int) (input.height / scale + 0.5);\n imageScaled.reshape(width, height);\n deri... |
"private void addResultFromSingleValue() {\n if (returnType == Object.class) {\n addReturnValue(valueToReturn);\n } else if (returnType == void.class) {\n throw newIncompatibleTypesException();\n } else if (returnType.isArray()) {\n Object array = Array.newInstance(returnType.getComponentT... |
"public void compact() {\n if (initialRegion.isZero())\n return;\n Address start = initialRegion;\n Address allocStart = initialRegion;\n Address allocEnd = initialRegion.plus(REGION_LIMIT_OFFSET).loadAddress();\n Address allocCursor = allocStart.plus(DATA_START_OFFSET);\n int oldPages = 0;\n ... |
"public Collection getParameterSelectionList(IViewerReportDesignHandle design, InputOptions runOptions, String paramName) throws ReportServiceException {\n IGetParameterDefinitionTask task = null;\n try {\n task = getParameterDefinitionTask(design, runOptions);\n if (task != null) {\n Vie... |
"public List<Map<String, Object>> getBlogList() {\n if (mSelfHostedURL != null && mSelfHostedURL.length() != 0) {\n mXmlrpcUrl = getSelfHostedXmlrpcUrl(mSelfHostedURL);\n } else {\n mXmlrpcUrl = Constants.wpcomXMLRPCURL;\n }\n if (mXmlrpcUrl == null) {\n if (!mHttpAuthRequired)\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.