content
stringlengths
40
137k
"public void testProperties() throws IOException {\n Assert.assertEquals(400, addProperties(application).getResponseCode());\n Map<String, String> appProperties = ImmutableMap.of(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Assert.assertEquals(200, addProperties(applic...
"private void createAppModule(File projectFolder, File exportFolder, String buildToolsVer) throws SketchException, IOException {\n File moduleFolder = mkdirs(exportFolder, \"String_Node_Str\");\n String minSdk;\n String tmplFile;\n if (appComponent == VR) {\n minSdk = min_sdk_gvr;\n tmplFile =...
"public boolean matches(final CgmIdentifier cgmIdentifier) {\n return (cgmIdentifier.getClassIdentifier() == cgmIdent.getClassIdentifier()) && (cgmIdentifier.getElementIdentifier() == cgmIdent.getElementIdentifier());\n}\n"
"protected OExtractedItem fetchNext() throws IOException, ParseException {\n if (!jsonReader.hasNext())\n return null;\n String value = jsonReader.readString(new char[] { '}', ']' }, true);\n if (first != null) {\n value = first + value;\n first = null;\n }\n if (total == 1 && jsonRe...
"public void testCookie() throws Exception {\n Ion ion = Ion.getDefault(getContext());\n ion.getCookieMiddleware().clear();\n ion.build(getContext()).load(\"String_Node_Str\").asString().get();\n for (HttpCookie cookie : ion.getCookieMiddleware().getCookieStore().get(URI.create(\"String_Node_Str\"))) {\n ...
"public UrlFields getResourceUrlSubstitutions() {\n UrlFields aggregateUrlFields = new UrlFields();\n for (Method method : _methods.values()) {\n UrlFields fields = method.getMethodSpecificUrlSubstitutions();\n aggregateUrlFields.getFields().putAll(fields.getFields());\n }\n return aggregateUr...
"private Circle getControlPrimitive(double x, double y) {\n return new Circle(m_ctrlSize).setX(x).setY(y).setFillColor(ColorName.DARKRED).setFillAlpha(0.8).setStrokeAlpha(0).setDraggable(true).setDragMode(DragMode.SAME_LAYER);\n}\n"
"public void onUpdate() {\n super.onUpdate();\n if (!this.world.isRemote && this.ticksExisted % 20 == 0) {\n this.syncMRS();\n }\n List<Entity> entitiesWithin = world.getEntitiesWithinAABB(Entity.class, this.getCollisionBoundingBox());\n for (Entity entity : entitiesWithin) {\n if (entity i...
"public void init(Config cfg, DataFlowOperation op, Map<Integer, List<Integer>> expectedIds) {\n executor = op.getTaskPlan().getThisExecutor();\n sendPendingMax = MPIContext.sendPendingMax(cfg);\n LOG.fine(String.format(\"String_Node_Str\", executor, expectedIds));\n for (Map.Entry<Integer, List<Integer>> e...
"public boolean dragAdjust(final Point2D dxy) {\n int x = (int) (m_startX + dxy.getX());\n int y = (int) (m_startY + dxy.getY());\n String colorKey = BackingColorMapUtils.findColorAtPoint(m_shapesBacking, x, y);\n if (m_colorKey != null && colorKey != null && !colorKey.equals(m_colorKey)) {\n if (nul...
"private void switchDataSet(String datasetName) throws ChartException {\n if (isCubeMode()) {\n return;\n }\n try {\n tablePreview.clearContents();\n tableViewerColumns.setInput(null);\n if (datasetName == null) {\n datasetName = getDataServiceProvider().getInheritedDataS...
"private List<ScmRepository> getRepositoriesFor(ITask task) throws CoreException {\n Set<ScmRepository> repos = new HashSet<ScmRepository>();\n List<IProject> projects = configuration.getProjectsForTaskRepository(task.getConnectorKind(), task.getRepositoryUrl());\n for (IProject p : projects) {\n ScmRep...
"public int compareTo(Object other) {\n return deliveryTag.compareTo(((RealTimeEvent) other).deliveryTag);\n}\n"
"public void exportMoveLineTypeSelect7FILE1(MoveLineReport moveLineReport, boolean replay) throws AxelorException, IOException {\n LOG.info(\"String_Node_Str\");\n Company company = moveLineReport.getCompany();\n String dateQueryStr = String.format(\"String_Node_Str\", company.getId());\n JournalType journa...
"public void setScreenOrientation(String orientation) {\n if (orientation.equals(\"String_Node_Str\"))\n getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);\n else if (orientation.equals(\"String_Node_Str\"))\n getActivity().setRequestedOrientation(ActivityInfo.SCREEN...
"public void testUnencryptedCreate() throws Exception {\n Utils.rollMockClock(0);\n ECKey key = new ECKey();\n long time = key.getCreationTimeSeconds();\n assertNotEquals(0, time);\n assertTrue(!key.isEncrypted());\n byte[] originalPrivateKeyBytes = key.getPrivKeyBytes();\n ECKey encryptedKey = key...
"public void newProperties(PropertySheet ps) throws PropertyException {\n languageWeightAdjustment = ps.getFloat(PROP_LANGUAGE_WEIGHT_ADJUSTMENT);\n dumpLattice = ps.getBoolean(PROP_DUMP_LATTICE);\n dumpSausage = ps.getBoolean(PROP_DUMP_SAUSAGE);\n}\n"
"public void load(CompoundTag tag) {\n String id = ((StringTag) tag.getTag(\"String_Node_Str\")).getValue();\n LongTag uuidMost = tag.getTagAs(\"String_Node_Str\");\n LongTag uuidLeast = tag.getTagAs(\"String_Node_Str\");\n List<NBTTag> pos = ((ListTag) tag.getTagAs(\"String_Node_Str\")).listTags();\n Li...
"public void run() {\n observer.notifyObserver(true);\n}\n"
"protected JsonToken _handleNextEntry() throws IOException, JsonParseException {\n String next = _reader.nextString();\n if (next == null) {\n _parsingContext = _parsingContext.getParent();\n if (!_reader.startNewLine()) {\n _state = STATE_DOC_END;\n } else {\n _state = ...
"public void doSave(IProgressMonitor monitor) {\n monitor.beginTask(\"String_Node_Str\", 100);\n monitor.worked(10);\n savePreviewPictures();\n try {\n if (getEditorInput() instanceof JobEditorInput) {\n boolean saved = ((JobEditorInput) getEditorInput()).saveProcess(new SubProgressMonitor...
"public static double[][] calculateImagemapStatistics(int cornerx, int cornery, int width, int height, int[] bands, int[][] data, KDistributionEstimation kdist) {\n int numberofbands = bands.length;\n double[][] imagestat = new double[numberofbands][5];\n for (int i = 0; i < numberofbands; i++) {\n int ...
"private NodeList selectNodes(Node contextNode, XPathFragment xPathFragment, XMLNamespaceResolver xmlNamespaceResolver) {\n NodeList resultNodes = getNodes(contextNode, xPathFragment, xmlNamespaceResolver);\n if (xPathFragment.getNextFragment() != null) {\n Node resultNode;\n XMLNodeList result = ne...
"private IcqStatusEnum icqStatusLongToPresenceStatus(long icqStatus) {\n if (icqStatus == -1) {\n return IcqStatusEnum.OFFLINE;\n } else if ((icqStatus & FullUserInfo.ICQSTATUS_INVISIBLE) != 0) {\n return IcqStatusEnum.INVISIBLE;\n } else if ((icqStatus & FullUserInfo.ICQSTATUS_DND) != 0) {\n ...
"public void onAfterUpdateTransaction(ViewPdf viewPdf) {\n super.onAfterUpdateTransaction(viewPdf);\n viewPdf.render();\n}\n"
"public MyTriangle getTriangle(MyPoint aPoint) {\n MyTriangle foundTriangle = null;\n if (this.trianglesQuadTrees.canBeUsed()) {\n foundTriangle = this.trianglesQuadTrees.search(aPoint);\n } else {\n ListIterator<MyTriangle> iterTriangle = triangles.listIterator();\n while ((iterTriangle.h...
"public void test() throws Exception {\n Schema schema = new Schema.Parser().parse(Resources.getResource(\"String_Node_Str\").openStream());\n File tmp = File.createTempFile(getClass().getSimpleName(), \"String_Node_Str\");\n tmp.deleteOnExit();\n tmp.delete();\n Path file = new Path(tmp.getPath());\n ...
"static WadlGenerator loadWadlGeneratorDescriptions(List<WadlGeneratorDescription> wadlGeneratorDescriptions) throws Exception {\n WadlGenerator wadlGenerator = new WadlGeneratorImpl();\n final CallbackList callbacks = new CallbackList();\n try {\n if (wadlGeneratorDescriptions != null && !wadlGenerator...
"private void createSeparator(Composite composite, int span) {\n Label separator = new Label(composite, SWT.HORIZONTAL | SWT.SEPARATOR);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.verticalIndent = 5;\n gd.horizontalSpan = span;\n separator.setLayoutData(gd);\n}\n"
"public void start() throws SlickException {\n try {\n setup();\n ErrorHandler.setGlString();\n getDelta();\n while (running()) gameLoop();\n } catch (Exception e) {\n this.e = e;\n }\n try {\n close_sub();\n destroy();\n if (e != null) {\n ...
"public ItemStack getStack() {\n if (!this.isSlotEnabled()) {\n return ItemStack.EMPTY;\n }\n if (this.inventory.getSizeInventory() <= this.getSlotIndex()) {\n return ItemStack.EMPTY;\n }\n if (this.isDisplay()) {\n this.setDisplay(false);\n return this.getDisplayStack();\n ...
"public void finishConfiguration(RailsRoot root) throws ConfigurationException {\n for (MapHex hex : hexes.values()) {\n hex.finishConfiguration(root);\n }\n for (MapHex hex : hexes.values()) {\n for (HexSide side : HexSide.all()) {\n MapHex neighbour = hexes.get(mapOrientation.getAdja...
"public void refreshCurrentPage() {\n webDriver.navigate().refresh();\n}\n"
"public void testSignUp() throws Exception {\n clockService.setMockTime(LocalTime.of(10, 0));\n final LocalDateTime now = clockService.getCurrentDateTime();\n final LocalTime nowTime = now.toLocalTime();\n LocalDateTime endOfRaid = now.plusMinutes(45);\n final Gym gym = gymRepository.findByName(\"String_...
"public boolean isPageComplete() {\n boolean isComplete = super.isPageComplete();\n if (isComplete) {\n isComplete = getSelectedCloudSpace() != null && (status == null || status.isOK());\n }\n return isComplete;\n}\n"
"public void setActiveContact(MetaContact metaContact, boolean isActive) {\n ContactNode contactNode = treeModel.findContactNodeByMetaContact(metaContact);\n if (contactNode != null) {\n contactNode.setActive(isActive);\n if (isActive) {\n activeContacts.add(contactNode);\n } else\n act...
"private Operation initBackupOperation(int replicaIndex) {\n Operation backupOp = backupAwareOp.getBackupOperation();\n if (backupOp == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Operation op = (Operation) backupAwareOp;\n backupOp.setPartitionId(op.getPartitionId())....
"private Set<ReferenceChange> getDELOriginValueOnContainmentRefSingle(Comparison comparison, ReferenceChange sourceDifference) {\n Set<ReferenceChange> result = new HashSet<ReferenceChange>();\n if (!sourceDifference.getReference().isMany()) {\n EObject originContainer = MatchUtil.getOriginContainer(compar...
"private static void findTransitiveClosure(Collection<? extends DAGNode> nodes) {\n HashSet<DAGNode> activeTopDownNodes = new HashSet<>();\n for (DAGNode node : nodes) {\n if (node.directSuperNodes.isEmpty()) {\n for (DAGNode sub : node.directSubNodes) {\n activeTopDownNodes.add(s...
"public void writeEndElement() throws SAXException {\n processStartElement();\n final QName qName = elementStack.remove();\n transformer.endElement(qName.uri, qName.localName, qName.prefix);\n if (qName.newMapping) {\n transformer.endPrefixMapping(qName.prefix);\n }\n}\n"
"public void onSelectAllEvent(SelectAllEvent event) {\n DataGrid dataGrid = SSDataGrid.this.dataGrid;\n Range rows = dataGrid.getVisibleRange();\n int end = rows.getStart() + rows.getLength();\n int numRecordsDisplayed = rows.getLength();\n if (end > dataGrid.getRowCount()) {\n end = dataGrid.getR...
"public Rowset readRowset(ResultSet aResultSet, int aPageSize) throws SQLException {\n try {\n if (aResultSet != null) {\n ResultSetMetaData lowLevelJdbcFields = aResultSet.getMetaData();\n Fields jdbcFields = new Fields();\n for (int i = 1; i <= lowLevelJdbcFields.getColumnCo...
"public void testFailXMLStreamReaderWithNullType() throws Exception {\n try {\n InputStream stream = ClassLoader.getSystemResourceAsStream(DOUBLE_ERROR_XML);\n XMLStreamReader xmlStreamReader = XML_INPUT_FACTORY.createXMLStreamReader(stream);\n unmarshaller.unmarshal(xmlStreamReader, (Type) null...
"public void handleEvent(Event event) {\n if (!event.widget.getClass().getSimpleName().equals(\"String_Node_Str\")) {\n return;\n MenuItem clickedMenuItem = ((MenuItem) event.widget);\n if (((MenuItem) event.widget).getText().equals(\"String_Node_Str\")) {\n refPathwayGraphViewRep.showRelationEdg...
"protected void updateObserver() {\n final int viewDistance = getViewDistance() >> Chunk.BLOCKS.BITS;\n World w = getWorld();\n int cx = getChunkLive().getX();\n int cy = getChunkLive().getY();\n int cz = getChunkLive().getZ();\n HashSet<SpoutChunk> observing = new HashSet<SpoutChunk>((viewDistance * ...
"public void deallocate() {\n try {\n scorer.deallocate();\n pruner.deallocate();\n linguist.deallocate();\n } catch (IOException e) {\n throw new RuntimeException(\"String_Node_Str\", e);\n }\n}\n"
"public static DateTimeFormat getLongDateFormat() {\n if (cachedLongDateFormat == null) {\n String pattern = getDefaultDateTimeConstants().dateFormats()[LONG_DATE_FORMAT];\n cachedLongDateFormat = new DateTimeFormat(pattern);\n }\n return cachedLongDateFormat;\n}\n"
"public void testMultipleNamespaces() throws Exception {\n populateStore();\n String ns = \"String_Node_Str\";\n secureStoreManager.putSecureData(ns, KEY1, VALUE1, DESCRIPTION1, PROPERTIES_1);\n List<SecureStoreMetadata> expectedList = ImmutableList.of(secureStore.getSecureData(NAMESPACE1, KEY2).getMetadata...
"public void allocate(int cores, int ram) {\n this.cores = this.cores - cores;\n this.memory = this.memory - ram;\n}\n"
"private void doSaveChanges() {\n List<BGRightsRow> options = tableDataModel.getObjects();\n List<Group> groups = getAllBaseGroups();\n List<BGRights> currentRights = rightManager.findBGRights(groups, courseEntry.getOlatResource());\n Map<Group, BGRights> tutorToRightsMap = new HashMap<>();\n Map<Group, ...
"public void run() {\n ScrapeResult r = ScrapeResult.COMPLETE;\n try {\n TelusReportFetcher.retriveUsageSummaryData(appWidgetId);\n subscribers = ReportParser.subscribers(appWidgetId);\n } catch (TelusReportFetcher.InvalidCredentialsException e) {\n r = SCRAPE_ERROR;\n errorMessageI...
"private static boolean eliminateIter(Logger logger, Function f) {\n HashSet<Var> removeCandidates = new HashSet<Var>();\n HashSet<Var> needed = new HashSet<Var>();\n MultiMap<Var, Var> dependencyGraph = new MultiMap<Var, Var>();\n walkFunction(logger, f, removeCandidates, needed, dependencyGraph);\n if ...
"public void standaloneVirtSubPoolUpdateNoChanges() {\n when(configMock.getBoolean(ConfigProperties.STANDALONE)).thenReturn(true);\n Pool p = createVirtLimitPool(\"String_Node_Str\", 10, 10);\n List<Pool> pools = poolRules.createAndEnrichPools(p, new LinkedList<Pool>());\n assertEquals(2, pools.size());\n ...
"protected IRemoteConnection getRemoteConnection(String host) {\n IRemoteServicesManager remoteManager = getService(IRemoteServicesManager.class);\n IRemoteConnection connection = null;\n if (remoteManager != null) {\n IRemoteConnectionType connectionType = remoteManager.getRemoteConnectionTypes().get(0...
"private float[] readProbabilitiesTable(DataInputStream stream, boolean bigEndian) throws IOException {\n int numProbs = readInt(stream, bigEndian);\n if (numProbs <= 0 || numProbs > 65536) {\n throw new Error(\"String_Node_Str\" + numProbs);\n }\n float[] probTable = new float[numProbs];\n for (i...
"public void execute(UUID playerId) {\n CardsView cardsView = new CardsView(abilities, game);\n getGameSession(playerId).target(question, cardsView, null, required, options);\n}\n"
"public void configure(URL base, String source, String text) throws Exception {\n Parameter immediate = (Parameter) getAttribute(\"String_Node_Str\");\n boolean isImmediate = immediate != null && ((BooleanToken) immediate.getToken()).booleanValue();\n if (isImmediate) {\n Effigy masterEffigy = Configura...
"private boolean default_network_rules_for_systemvm(Connect conn, String vmName) {\n if (!_can_bridge_firewall) {\n return false;\n }\n List<InterfaceDef> intfs = getInterfaces(conn, vmName);\n if (intfs.size() < 1) {\n return false;\n }\n String brname = null;\n if (vmName.startsWith...
"public void onCameraClick() {\n if (getActivity() != null && EffortlessPermissions.hasPermissions(getActivity(), PERMISSIONS_CAMERA)) {\n videoOn = !videoOn;\n if (videoOn) {\n cameraControlButton.getFrontImageView().setImageResource(R.drawable.ic_videocam_white_24px);\n if (came...
"public BeanSerializerBase withFilterId(Object object) {\n return null;\n}\n"
"public BufferedImage toImage(int frame, List<Tag> tags, RECT displayRect, HashMap<Integer, CharacterTag> characters, Stack<Integer> visited) {\n RECT bound = getBounds();\n BufferedImage ret = new BufferedImage(bound.Xmax / 20, bound.Ymax / 20, BufferedImage.TYPE_INT_ARGB);\n Color textColor = new Color(0, 0,...
"public Tx updateOutHDAccountId(Tx tx) {\n List<String> addressList = tx.getOutAddressList();\n if (addressList != null && addressList.size() > 0) {\n HashSet<String> set = new HashSet<String>();\n set.addAll(addressList);\n StringBuilder strBuilder = new StringBuilder();\n for (String...
"public int compare(Pair o1, Pair o2) {\n return Double.compare(o2.value.getRms(), o1.value.getRms());\n}\n"
"private void createLabel(Composite parent, String content, int width) {\n Label label = new Label(parent, SWT.NONE);\n if (content != null) {\n label.setText(content);\n }\n setLabelLayoutData(label);\n}\n"
"public void destroy() {\n nutMvc.destroy();\n}\n"
"public Optional<Integer> sequential() {\n return integerList.stream().filter(l -> {\n Blackhole.consumeCPU(Q);\n return false;\n }).findFirst();\n}\n"
"private Collection getParameterSelectionListForCascadingGroup(IViewerReportDesignHandle design, IViewerReportService service, Map paramValues, InputOptions options) throws ReportServiceException {\n ParameterGroupDefinition group = (ParameterGroupDefinition) parameter.getGroup();\n int index = group.getParameter...
"public static <T extends RestrictedType> T allocate(String identifier, Long quantity, Supplier<T> allocator) throws AuthException, IllegalContextAccessException, NoSuchElementException, PersistenceException {\n Context ctx = Contexts.lookup();\n if (ctx.hasAdministrativePrivileges()) {\n return allocator....
"public void addChildPlot(PlotInfo childPlot) {\n childPlot.setVisible(this.expanded);\n this.children.add(childPlot);\n if (this.plot.isAutoValidate())\n this.plot.validateLayout();\n}\n"
"private void outputViews(File viewsFile, HddObjectListReader<Sign> views, tectonicus.configuration.Map map, ImageFormat imageFormat) {\n System.out.println(\"String_Node_Str\");\n if (viewsFile.exists())\n viewsFile.delete();\n JsArrayWriter jsWriter = null;\n try {\n jsWriter = new JsArrayWr...
"private void writeFont(String fontName, Integer size, String bold, String italic, String strikeThrough, String underline, String color) {\n writer.openTag(\"String_Node_Str\");\n if (isValid(fontName)) {\n writer.attribute(\"String_Node_Str\", fontName);\n }\n if (size != null) {\n writer.att...
"public boolean matchesSafely(Node item) {\n try {\n Object result = compiledXPath.evaluate(item, evaluationMode);\n if (result == null) {\n return false;\n } else if (valueMatcher == null) {\n return !result.equals(\"String_Node_Str\");\n } else {\n retur...
"protected void tearDown() throws Exception {\n super.tearDown();\n FileStore fileStore = (FileStore) getStore();\n try {\n fileStore.closeAndDeleteFiles();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n}\n"
"public IProcess getProcessFromItem(Item item, boolean loadScreenshots) {\n if (ProcessItemImpl.class == item.getClass()) {\n Process process = null;\n process = new Process(item.getProperty());\n process.loadXmlFile(loadScreenshots);\n return process;\n }\n return null;\n}\n"
"public static void startVideoStream(Drone drone, int udpPort, String appId, String videoTag, Surface videoSurface, ICommandListener listener) {\n if (!(drone instanceof GenericMavLinkDrone)) {\n postErrorEvent(CommandExecutionError.COMMAND_UNSUPPORTED, listener);\n return;\n }\n final GenericMav...
"public void shouldNotFetch_withAmazonServiceException() throws Exception {\n final AttributeQuery query = mock(AttributeQuery.class);\n final Condition mockCondition = mock(Condition.class);\n when(mockCondition.getComparisonOperator()).thenReturn(Operators.EQUALS);\n final String stringProperty = randomSt...
"public static void fixParents(IndexService index, ModelService model, Optional<String> jobId, Optional<String> computedSearchScope, String updatedBy) throws GenericException, RequestNotValidException, AuthorizationDeniedException, NotFoundException {\n Map<String, List<String>> aipIdToGhost = new HashMap<>();\n ...
"public List<CorridorComponent> getOffsetComponents(int offsetFrom, int offsetTo, MapCoordinates coords, boolean fw) {\n List<CorridorComponent> comps = new LinkedList<CorridorComponent>();\n Point2D fPoint = new Point2D.Double(x1(), y1()), tPoint = new Point2D.Double(x2(), y2());\n if (offsetFrom != 0 || offs...
"public void updateACLEntries(StorageManager sMan, FileMetadata file, long parentId, Map<String, Object> entries, AtomicDBUpdate update) throws MRCException, UserException {\n DatabaseResultSet<ACLEntry> acl = null;\n try {\n Map<String, Object> aclMap = null;\n acl = sMan.getACL(file.getId());\n ...
"public CommonBTNode getCatalogNode(long nodeNumber) {\n CatalogInitProcedure init = new CatalogInitProcedure();\n long currentNodeNumber;\n if (nodeNumber < 0) {\n currentNodeNumber = init.bthr.getRootNodeNumber();\n else\n currentNodeNumber = nodeNumber;\n final int nodeSize = init.bthr.g...
"public Figure render(Object n) {\n Locatable location = (Locatable) n;\n final NamedObj object = location.getContainer();\n Figure result = null;\n try {\n List iconList = object.attributeList(EditorIcon.class);\n if (iconList.size() == 0) {\n XMLIcon alreadyCreated = (XMLIcon) _ic...
"public String getImageName() {\n return this.name;\n}\n"
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n _name = name;\n ComponentLocator locator = ComponentLocator.getCurrentLocator();\n ConfigurationDao configDao = locator.getDao(ConfigurationDao.class);\n if (configDao == null) {\n s_logger.error(\"St...
"protected NamedObj _getDestination(String name) throws IllegalActionException {\n Transition transition = (Transition) getContainer();\n if (transition == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n Entity fsm = (Entity) transition.getContainer();\n if (fsm == nul...
"private boolean isIgnoreable(Throwable ex, final String message) {\n if (\"String_Node_Str\".equals(ex.getClass().getName()))\n return true;\n if (message == null)\n return false;\n final String msg = message.toLowerCase();\n if (scan(msg, 1784, \"String_Node_Str\"))\n return true;\n ...
"public WalkInfo buildTreeWalk() {\n WalkInfo info = new WalkInfo();\n info.fullSchema = resolveFullSchema();\n info.nativeFilter = resolveNativeFilter();\n info.requiredProperties = resolveRequiredProperties(info.nativeFilter);\n final ObjectId featureTypeId = typeRef.getMetadataId();\n final ObjectI...
"protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n requestListsIfNeeded();\n populatePlayers();\n enableButtons();\n long currentRF = GenericEnergyStorageTileEntity.getCurrentRF();\n energyBar.setValue(currentRF);\n tileEntity.requestRfFromServer(RFTools.MO...
"public void after() {\n try {\n server.stopServer();\n } catch (final Exception e) {\n throw new TestUtilRuntimeException(e);\n }\n}\n"
"private void fillDimensionIDTypeCombo() {\n ArrayList<IDType> tempIDTypes = dimensionIDCategory.getIdTypes();\n dimensionIDTypes.clear();\n for (IDType idType : tempIDTypes) {\n if (!idType.isInternalType())\n dimensionIDTypes.add(idType);\n }\n String[] idTypesAsString = new String[di...
"private void writeOut(List<String[]> list, OutputStream os) throws IOException {\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new OutputStreamWriter(os));\n for (String[] s : list) {\n writer.write(StrArray.Join(s, delimiter));\n writer.write(System.li...
"protected void setupForm() {\n String line1 = \"String_Node_Str\";\n String line2 = \"String_Node_Str\";\n String line3 = \"String_Node_Str\";\n String line4 = \"String_Node_Str\";\n String line5 = \"String_Node_Str\";\n String allLines = line1 + line2 + line3 + line4 + line5;\n ByteArrayInputStre...
"public void start() {\n if (isGooglePlayServicesValid()) {\n initializeDriverThread();\n initializeBgHandler();\n } else {\n Log.e(TAG, \"String_Node_Str\");\n }\n}\n"
"private IntrinsicModel modelOf(CharSequence seq, String preferredColumn) throws ParserException {\n lexer.setContent(seq);\n p.parseExpr(lexer, ast);\n return e.extract(new AliasTranslator() {\n public CharSequence translateAlias(CharSequence column) {\n return column;\n }\n }, ast...
"public void setup() {\n expected = new QrCodeEncoder().setVersion(2).setError(QrCode.ErrorLevel.H).setMask(QrCodeMaskPattern.M010).numeric(message).fixate();\n}\n"
"public void testLifeCycleNew() throws Exception {\n Content content = mock(Content.class);\n when(sequenceIterator.hasNext()).thenReturn(true).thenReturn(true).thenReturn(false);\n when(sequenceIterator.next()).thenReturn(optional).thenReturn(optional).thenReturn(null);\n when(channelUtils.getLatestSequenc...
"public static List<GraphTargetItem> actionsPartToTree(HashMap<Integer, String> registerNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions, Stack<GraphTargetItem> stack, List<Action> actions, int start, int end, int version, int staticOperation, String path) {\n if (start <...
"private View initFragment(LayoutInflater inflater, ViewGroup container) {\n if (mViewDataBinding == null) {\n mContext = getActivity();\n mViewDataBinding = DataBindingUtil.inflate(inflater, getLayoutId(), container, false);\n mViewModel = TUtil.getT(this, 0);\n M model = TUtil.getT(this...
"public IComplexNDArray get(NDArrayIndex... indexes) {\n return (IComplexNDArray) super.get(indexes);\n}\n"
"public void getTicketsById() throws Exception {\n createClientWithTokenOrPassword();\n long count = 24;\n for (Ticket t : instance.getTickets(24, 26, 28)) {\n assertThat(t.getSubject(), notNullValue());\n assertThat(t.getId(), is(count));\n count += 2;\n }\n assertThat(count, is(28L...
"public static SolrInputDocument riskToSolrDocument(Risk risk, int incidences) {\n SolrInputDocument doc = new SolrInputDocument();\n doc.addField(RodaConstants.INDEX_UUID, risk.getId());\n doc.addField(RodaConstants.RISK_ID, risk.getId());\n doc.addField(RodaConstants.RISK_NAME, risk.getName());\n doc.a...