content
stringlengths
40
137k
"public void run() {\n if (stateMachine.getRaftNode().getSnapshot().getIsInstallSnapshot().get()) {\n LOG.info(\"String_Node_Str\");\n return;\n }\n if (!stateMachine.getRaftNode().getSnapshot().getIsTakeSnapshot().compareAndSet(false, true)) {\n LOG.info(\"String_Node_Str\");\n ret...
"public JSType apply(TypeRestriction p) {\n Visitor<JSType> visitor = p.outcome ? restrictToObjectVisitor : restrictToNotObjectVisitor;\n return p.type.visit(visitor);\n}\n"
"public int getBaseChunkY() {\n return baseY >> Chunk.BLOCKS.BITS;\n}\n"
"public static void main(String[] args) throws Exception {\n histogramNBTest(100);\n}\n"
"public void appendFolder(DefaultMutableTreeNode treenode, MyFolder parent) {\n String resp = CustomDialog.showInputDialog(JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, panel, \"String_Node_Str\", \"String_Node_Str\");\n if (resp != null) {\n if (resp.equals(\"String_Node_Str\")) {\n ...
"public void testCheckedPow() {\n for (long b : ALL_LONG_CANDIDATES) {\n for (int exp : EXPONENTS) {\n BigInteger expectedResult = valueOf(b).pow(exp);\n boolean expectedSuccess = fitsInLong(expectedResult);\n try {\n assertEquals(expectedResult.longValue(), Lon...
"private void handlePacket() throws IOException {\n Byte packetId = in.readByte();\n int x;\n byte y;\n int z;\n byte dimension;\n Coordinate coordinate;\n switch(packetId) {\n case 0x00:\n write(packetId);\n write(in.readInt());\n break;\n case 0x01:\...
"public boolean isCompressed() {\n return path.endsWith(MapLoader.MAP_EXTENSION_COMPRESSED);\n}\n"
"public Insets getPadding(Insets retValue) {\n return DEUtil.getPadding(getHandle(), retValue);\n}\n"
"protected void updateValue() {\n String string = fTextValue.getText();\n long value = 0;\n try {\n value = TmfTimestampFormat.getDefaulTimeFormat().parseValue(string, fTraceStartTime);\n } catch (ParseException e) {\n }\n if (getValue() != value) {\n ITmfTrace trace = fParentView.getTra...
"public void sendQueryOfType(String scheme, String type, String magic_column, String table, String keyspace, DataTable modifications) throws Exception {\n commonspec.getCassandraClient().useKeyspace(keyspace);\n commonspec.getLogger().info(\"String_Node_Str\", \"String_Node_Str\");\n String retrievedData = com...
"private void chooseUniqueNames(Program prog, Function f, Block inlineBlock, Map<String, Arg> replacements) {\n Set<String> excludedNames = new HashSet<String>();\n excludedNames.addAll(prog.getGlobalConsts().keySet());\n Deque<Block> blocks = new ArrayDeque<Block>();\n blocks.add(inlineBlock);\n while (...
"protected Element setRegionSettings(Element e) {\n Set<Flag> fset = getFlags();\n if (!fset.isEmpty()) {\n Element eFlags;\n e.addContent(eFlags = new Element(\"String_Node_Str\"));\n for (Flag f : fset) eFlags.addContent(new Element(f.name.toLowerCase()));\n }\n if (getOwners() != nul...
"public boolean getSelected() {\n return checkBox.getValue();\n}\n"
"public void setChangePwdDate(final Date changePwdDate) {\n this.changePwdDate = changePwdDate == null ? null : new Date(changePwdDate.getTime());\n}\n"
"public int hashCode() {\n HashCodeBuilder b = new HashCodeBuilder();\n b.append(getParamName());\n b.append(getResource());\n b.append(getTimeFromDate(getValueHigh()));\n b.append(getTimeFromDate(getValueLow()));\n return b.toHashCode();\n}\n"
"public void deactivateChat(String remoteUser) {\n synchronized (textChatHUDRefMap) {\n WeakReference<HUDComponent> ref = textChatHUDRefMap.get(remoteUser);\n if (ref == null) {\n return;\n }\n });\n}\n"
"private void resizeColumn(int value, int start, int end) {\n TableEditPart part = (TableEditPart) getSourceEditPart();\n if (start != end) {\n value = getTrueValue(value, start, end);\n part.resizeColumn(start, end, value, !isCtrlDown());\n } else {\n Dimension dimension = getDragWidth(st...
"public void renderFacade(LoopL<Point3d> list, AtomicInteger count, BufferedWriter description) {\n double[] minMax = Loopz.minMax(list);\n Loopz.expand(minMax, 30);\n Map<Point2d, Pano> panos = new HashMap<>();\n for (Gen gen : tweed.frame.gens(PanoGen.class)) for (Pano pg : ((PanoGen) gen).getPanos()) {\n...
"private ClientResponse getResponse(String url) {\n return followClient.resource(url).accept(MediaType.WILDCARD_TYPE).header(HttpHeaders.ACCEPT_ENCODING, \"String_Node_Str\").get(ClientResponse.class);\n}\n"
"public static NSArray<SKTexture> loadFramesFromAtlas(String atlasName, String baseFileName, int numberOfFrames) {\n NSArray<SKTexture> frames = new NSMutableArray<>(numberOfFrames);\n SKTextureAtlas atlas = new SKTextureAtlas(atlasName);\n for (int i = 1; i <= numberOfFrames; i++) {\n String fileName =...
"public String getLeftPartNameType(Integer aSqlType) {\n String partName = jdbcTypesLeftPartName.get(aSqlType);\n if (partName == null) {\n partName = jdbcTypes2RdbmsTypes.get(aSqlType);\n return partName;\n}\n"
"private void _handleEventListSelectionChange() {\n int index = _eventList.getList().getSelectionIndex();\n if (index != -1) {\n OpEvent event = (OpEvent) _eventList.getElementAt(index);\n _counter.setEvent(event);\n _eventDescText.setText(event.getTextDescription());\n _unitMaskViewer...
"public void testSendingEventAfterReplay() {\n assertEquals(0, handler.receivedAttackButtonList.size());\n long startTime = System.currentTimeMillis();\n while ((System.currentTimeMillis() - startTime) < 10) {\n eventSystem.process();\n }\n eventSystem.send(entity, new AttackButton());\n assert...
"public Boolean call(SavingsAccount savingsAccount) {\n return (savingsAccount.getStatus().getActive() && !savingsAccount.isRecurring());\n}\n"
"public List<JAXBElement> createShellJAXBElementList(List<ReportItem> reportItems, Object record) {\n if (reportItems == null || reportItems.size() == 0) {\n return Collections.emptyList();\n }\n List<JAXBElement> jaxbElements = new ArrayList<>(reportItems.size());\n for (int index = 0; index < repor...
"private boolean checkClaimConfidence(Transaction transaction, TransactionConfidence conf, Project project) {\n switch(conf.getConfidenceType()) {\n case PENDING:\n int seenBy = conf.numBroadcastPeers();\n log.info(\"String_Node_Str\", seenBy);\n if (seenBy < peerGroup.getMinB...
"public void addResults(List<EvaluatedDescriptionClass> resultList) {\n this.resultList.clear();\n this.selectionList.clear();\n this.resultList.addAll(resultList);\n for (int i = 0; i < resultList.size(); i++) {\n selectionList.add(i, Boolean.FALSE);\n }\n fireTableDataChanged();\n}\n"
"public boolean replaceEvent(GameEvent event, Ability source, Game game) {\n boolean retValue = false;\n GameEvent preventEvent = new GameEvent(GameEvent.EventType.PREVENT_DAMAGE, source.getFirstTarget(), source.getId(), source.getControllerId(), event.getAmount(), false);\n int damage = event.getAmount();\n ...
"public ArrayOfString contactClient(String identifiantClient, String nomContact, String prenomContact, String fonctionContact, String telephone, String email, String numEtVoie, String codePostal, String ville, String pays) {\n ArrayOfString arrayOfString = new ArrayOfString();\n ContactClient contactClient = clie...
"public RrRectangle getBox() {\n return new RrRectangle(bBox);\n}\n"
"private void embeddedCollections(final List<DBObject> embeddedData, final RequestContext context, final String requestPath, final Representation rep) {\n embeddedData.stream().forEach((d) -> {\n Object _id = d.get(\"String_Node_Str\");\n if (_id != null && _id instanceof String) {\n String ...
"private void clickOnParticularSortAnchorCheckFirstRow(JQueryLocator sortBy, StateWithCapitalAndTimeZone ascendingState, StateWithCapitalAndTimeZone descendingState, String ascendingError, String descendingError) {\n guardXhr(selenium).click(sortBy);\n StateWithCapitalAndTimeZone actualState = initializeStateData...
"private static String resolveContactSource(String peerAddress) {\n String displayName = null;\n if (!StringUtils.isNullOrEmpty(peerAddress)) {\n Vector<ResolveAddressToDisplayNameContactQueryListener> resolvers = new Vector<ResolveAddressToDisplayNameContactQueryListener>(1, 1);\n int index = peerA...
"public void visit(ASTNode[] nodes, SourceUnit source) {\n checkNodesForAnnotationAndType(nodes[0], nodes[1]);\n ClassNode classNode = (ClassNode) nodes[1];\n if (!classNode.implementsInterface(THREADING_HANDLER_TYPE)) {\n apply(classNode);\n }\n}\n"
"public static List<BlockType> getLiquidBlockTypes() {\n List<BlockType> liquids = new ArrayList<>();\n Collection<BlockType> types = Prism.getGame().getRegistry().getAllOf(BlockType.class);\n for (BlockType type : types) {\n Optional<MatterProperty> property = type.getProperty(MatterProperty.class);\n ...
"private void notifyListeners(String packageName, int userId) {\n final long token = injectClearCallingIdentity();\n try {\n if (!mUserManager.isUserRunning(userId)) {\n return;\n }\n } finally {\n injectRestoreCallingIdentity(token);\n }\n postToHandler(() -> {\n f...
"private ReaderTag getReaderTagFromBundleParams(PersistableBundle bundle) {\n String slug = bundle.getString(ARG_TAG_PARAM_SLUG);\n String displayName = bundle.getString(ARG_TAG_PARAM_DISPLAY_NAME);\n String title = bundle.getString(ARG_TAG_PARAM_TITLE);\n String endpoint = bundle.getString(ARG_TAG_PARAM_EN...
"protected int runDistributedTrain() throws IOException, InterruptedException, ClassNotFoundException {\n LOG.info(\"String_Node_Str\", isDryTrain ? \"String_Node_Str\" : \"String_Node_Str\");\n int status = 0;\n Configuration conf = new Configuration();\n SourceType sourceType = super.getModelConfig().getD...
"protected String _generateTypeConvertStatement(ProgramCodeGeneratorAdapter.Channel source, ProgramCodeGeneratorAdapter.Channel sink, int offset) throws IllegalActionException {\n Type sourceType = ((TypedIOPort) source.port).getType();\n Type sinkType = ((TypedIOPort) sink.port).getType();\n if (sourceType ==...
"public void done(List<AVIMMessage> messages, AVIMException e) {\n if (e != null) {\n callback.internalDone(e);\n } else {\n List<AVIMMessage> cachedMsgs = new LinkedList<AVIMMessage>();\n if (indicatorMessage != null) {\n cachedMsgs.add(indicatorMessage);\n }\n proce...
"private void startVideoCapture() {\n if (videoCapturer != null) {\n Resources r = getResources();\n int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 120, r.getDisplayMetrics());\n videoCapturerAndroid.startCapture(px, px, 30);\n }\n}\n"
"public void run(IAction action) {\n store = getIPreferenceStore();\n Configuration config = getConfiguration(store, selection);\n PropertiesLoader props = getPropertiesLoader(store.getString(Preference.lang));\n StructuredSelection structuredSelection = null;\n try {\n if (selection instanceof St...
"public boolean equals(Object object) {\n return object instanceof PairLogoRelativeRectangle && ((PairLogoRelativeRectangle) object).getId() == this.getId();\n}\n"
"public static void setValue(Connection connection, INode node, String repositoryValue) {\n if (connection == null || node == null || repositoryValue == null) {\n return;\n } else if (connection instanceof XmlFileConnection) {\n setXmlFileValue((XmlFileConnection) connection, node, param);\n } el...
"private void processField(IJstProperty jsPropertyMeta, boolean isProps, boolean isGlobal) {\n IJSSourceElementRequestor.JSFieldInfo fieldInfo = new IJSSourceElementRequestor.JSFieldInfo();\n fieldInfo.name = jsPropertyMeta.getName().getName();\n final IJstType propertyType = jsPropertyMeta.getType();\n if ...
"public Control createContents(Composite parent) {\n initPropertyBinding();\n int size = bindingName.size();\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayout(new GridLayout(3, false));\n GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIG...
"public void initialise(ConanProcessService conanProcessService, ExecutionContext executionContext) {\n super.initialise(conanProcessService, executionContext);\n this.jobIds.clear();\n this.statsExecutor.initialise(conanProcessService, executionContext);\n}\n"
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ResourceToken other = (ResourceToken) obj;\n if (this.instanceId == null) {\n if (other.in...
"public void perform(GraphRewrite event, EvaluationContext context, ArchiveModel payload) {\n List<FileModel> licenseFiles = findLicense(payload);\n if (licenseFiles.size() == 0) {\n return;\n }\n TechnologyTagService technologyTagService = new TechnologyTagService(event.getGraphContext());\n Clas...
"public static void create(String json) {\n String body = json != null ? json : params.get(\"String_Node_Str\");\n Logger.debug(\"String_Node_Str\" + body);\n if (body != null) {\n BookingDTO bookingDto;\n try {\n bookingDto = new Gson().fromJson(body, BookingDTO.class);\n v...
"public void testBundler() throws Exception {\n Manifest manifest = new Manifest();\n manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"String_Node_Str\");\n manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, \"String_Node_Str\");\n manifest.getMainAttributes().put(new Attribute...
"public void shouldBuildGSONObject() {\n final String jsonValue = getJsonSample();\n final Object json = JSon.withHandler(new GSonBuilder()).match(JSon.stream(jsonValue));\n TestCase.assertNotNull(json);\n TestCase.assertEquals(JsonObject.class, json.getClass());\n}\n"
"public boolean onMessage(int source, int path, int target, int flags, Object object) {\n boolean canAdd = true;\n Queue<Object> m = messages.get(target).get(source);\n Integer c = counts.get(target).get(source);\n if (m.size() > sendPendingMax * 4) {\n canAdd = false;\n onMessageAttempts++;\n...
"protected Injector createFinalInjector(BackendBundle backendBundle) {\n ToroDbRuntimeModule runtimeModule = new ToroDbRuntimeModule(backendBundle, this);\n return bootstrapInjector.createChildInjector(runtimeModule, new MongoDbWpModule(port));\n}\n"
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n isConcept = false;\n TreePath tPath = null;\n if (((TreeSelection) selection).getPaths().length > 0)\n tPath = ((TreeSelection) selection).getPa...
"public void addBody(Body body) throws WingException {\n Division updated = body.addDivision(\"String_Node_Str\", \"String_Node_Str\");\n updated.setHead(T_head);\n updated.addPara(T_para1);\n updated.addPara().addXref(contextPath + \"String_Node_Str\", T_go_home);\n}\n"
"public void testDqDemoComplete() throws Exception {\n Assert.assertTrue(dqResManager instanceof FileResourcesUnityManager);\n Iterator path = dqResManager.getPaths().iterator();\n String firstFilePath = ((Path) path.next()).toPortableString();\n String tempFolderPath = firstFilePath.substring(0, firstFileP...
"private void populateSortedFactRows(StopSign stopSign) throws IOException, DataException {\n prepareSortedStacks();\n int measureCount = dataSet4Aggregation.getMetaInfo().getMeasureInfos().length;\n int factRowCount = 0;\n try {\n while (dataSet4Aggregation.next() && !stopSign.isStopped()) {\n ...
"protected boolean initialize(Vec2i screenSize) {\n this.sm = new SaveManager(\"String_Node_Str\");\n this.lg = new BSPLevelGenerator(configDir);\n RogueGame rg = null;\n try {\n Game g = sm.loadGame();\n if (g instanceof RogueGame)\n rg = (RogueGame) g;\n tm = new Cumulative...
"protected final boolean isCurrentlyMatchingNone() {\n return currentMatcher == Matchers.falseMatcher();\n}\n"
"public void showLandInfo(CommandSender sender, String... args) {\n Messaging mess = new Messaging(sender);\n if (args.length == 0) {\n showHelp(sender, \"String_Node_Str\");\n } else {\n Integer id = 0;\n if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n if (sender instanc...
"public final boolean isGlobalThisType() {\n return areIdentical(this, registry.getNativeType(JSTypeNative.GLOBAL_THIS));\n}\n"
"private boolean processPdf417() {\n int i, j, blockCount, loop, offset;\n int[] mccorrection = new int[520];\n int total;\n int c1, c2, c3;\n int[] dummy = new int[35];\n String codebarre;\n int length = inputData.length;\n EncodingMode currentEncodingMode;\n int selectedECCLevel;\n Strin...
"protected static void newPerk() {\n BlockPerk perk = new BlockPerk();\n perks.add(perk);\n updatePerkList();\n}\n"
"public List<CsdlAliasInfo> getAliasInfos() throws ODataException {\n return Arrays.asList(new CsdlAliasInfo().setAlias(SchemaProvider.NAMESPACE_ALIAS).setNamespace(SchemaProvider.NAMESPACE), new CsdlAliasInfo().setAlias(\"String_Node_Str\").setNamespace(TermProvider.CORE_VOCABULARY_NAMESPACE));\n}\n"
"public static boolean isSybase(java.sql.Connection connection) throws SQLException {\n DatabaseMetaData connectionMetadata = connection.getMetaData();\n if (connectionMetadata.getDriverName() != null && connectionMetadata.getDatabaseProductName() != null) {\n for (String keyString : getSybaseDBProductsNam...
"private void showAlbumDetails(Album album) {\n CoordinatorLayout mainLayout = (CoordinatorLayout) artistDetailsActivity.findViewById(R.id.detail_content);\n LayoutInflater inflater = LayoutInflater.from(artistDetailsActivity);\n View albumDetails = inflater.inflate(R.layout.album_popup_info, null);\n TextV...
"public void editorToolChanged(EditorTools tools) {\n missionRender.selection.clearSelection();\n setupTool(tools);\n}\n"
"protected String _generateFireCode() throws IllegalActionException {\n super._generateFireCode();\n ptolemy.actor.lib.AddSubtract actor = (ptolemy.actor.lib.AddSubtract) getComponent();\n String outputType = getCodeGenerator().codeGenType(actor.output.getType());\n String plusType = getCodeGenerator().code...
"public void testPointcuts() {\n IProgramElement node = model.getRoot();\n assertNotNull(node);\n IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, \"String_Node_Str\");\n assertNotNull(aspect);\n String ptct = \"String_Node_Str\";\n IProgramElement ptctNode = mo...
"public int readInt() throws IOException {\n int v = 0;\n v |= (read() << 24);\n v |= (read() << 16);\n v |= (read() << 8);\n v |= (read());\n return v;\n}\n"
"private Report executeOnRepresentation(IndexService index, ModelService model, StorageService storage, List<Representation> list, IndexedPreservationAgent agent) throws PluginException {\n List<String> newRepresentations = new ArrayList<String>();\n String aipId = null;\n for (Representation representation : ...
"public static EdgeGroup getPreviousGroup(List groups, int currentDimensionIndex, int currentLevelIndex) {\n int currentGroup = -1;\n for (int i = 0; i < groups.size(); i++) {\n EdgeGroup gp = groups.get(i);\n if (gp.dimensionIndex == currentDimensionIndex && gp.levelIndex == currentLevelIndex) {\n ...
"private void hideSmileLayout() {\n hideView(smilesLayout);\n prepareChatEditText(true);\n}\n"
"private double getJitterMs(StreamDirection streamDirection) {\n return rtpTimeToMs(jitterRTPTimestampUnits[streamDirection.ordinal()]);\n}\n"
"private void saveExternalFile(FtpFileEditorInput input, IDocument doc) throws IOException {\n BufferedOutputStream contentStream = null;\n FTPConnection connection = new FTPConnection();\n connection.saveFile(doc.get().getBytes(), input.getPath(input).toString());\n}\n"
"public int getTargetProgress() throws InvalidContentException {\n return 1;\n}\n"
"public boolean isValid() {\n try {\n Calendar cal = Calendar.getInstance();\n cal.setTime(new Date());\n cal.add(Calendar.MINUTE, -10);\n long leastTenMinutes = cal.getTimeInMillis();\n long signalFlareDate = PreyConfig.getPreyConfig(ctx).getSignalFlareDate();\n PreyLogger....
"public void execute(OperationRequest operation, OperationContext context, ParticipantId participant) throws InvalidRequestException {\n String capabilitiesHash = OperationUtil.getRequiredParameter(operation, ParamsProperty.CAPABILITIES_HASH);\n ParticipantId robotAccountId = participant;\n AccountData account...
"public boolean onActivated(EntityPlayer entityPlayer) {\n if (!this.worldObj.isRemote)\n entityPlayer.openGui(ICBMExplosion.instance, 0, this.worldObj, this.xCoord, this.yCoord, this.zCoord);\n return true;\n}\n"
"public void addData(byte[] data, int offset, int len) {\n if ((skipped + available + len) > databuf.length) {\n int desiredSize = ByteQueue.nextTwoPow(available + len);\n if (desiredSize > databuf.length) {\n byte[] tmp = new byte[desiredSize];\n System.arraycopy(databuf, skipped...
"private void CompiledExprFromTree(String expression, Context context, ScriptOrFnNode tree, List columnExprList) throws BirtException {\n if (tree.getFirstChild() == tree.getLastChild()) {\n if (tree.getFirstChild().getType() == Token.FUNCTION) {\n int index = getFunctionIndex(tree.getFirstChild()....
"public void removeGroup(ContactGroupMsnImpl groupToRemove) {\n if (groupToRemove.getSourceGroup().getGroupId().equals(\"String_Node_Str\"))\n return;\n logger.trace(\"String_Node_Str\" + groupToRemove);\n MsnContact[] contacts = groupToRemove.getSourceGroup().getContacts();\n ModListenerRemoveGroup ...
"public void startImage(IImageContent image) {\n IStyle style = image.getComputedStyle();\n InlineFlag inlineFlag = getInlineFlag(style);\n String uri = image.getURI();\n String mimeType = image.getMIMEType();\n String extension = image.getExtension();\n String altText = image.getAltText();\n doubl...
"public static String getCanonicalText(Element root) {\n StringBuffer buffer = new StringBuffer();\n List frag = OSISUtil.getFragment(root);\n Iterator dit = frag.iterator();\n String sID = null;\n Object data = null;\n Element ele = null;\n while (dit.hasNext()) {\n data = dit.next();\n ...
"private void writeReport(DataOutputStream dos, Report design) throws IOException {\n IOUtil.writeShort(dos, (short) 9);\n IOUtil.writeShort(dos, FIELD_REPORT_VERSION);\n IOUtil.writeString(dos, design.getVersion());\n IOUtil.writeShort(dos, FIELD_REPORT_LOCALE);\n IOUtil.writeString(dos, design.getLocal...
"public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {\n Integer serverPort = event.getEnvironment().getProperty(\"String_Node_Str\", Integer.class);\n Integer managementPort = event.getEnvironment().getProperty(\"String_Node_Str\", Integer.class);\n Integer turbinePort = event.getEnviron...
"public static void main(String[] args) {\n if (args.length != 1) {\n System.err.println(\"String_Node_Str\");\n System.err.println(\"String_Node_Str\" + StaticAnalyser.class.getName() + \"String_Node_Str\");\n System.exit(1);\n }\n G.v().out = System.err;\n Options.v().set_src_prec(Opt...
"public void loadModelicaFile(String fileName, String modelName) throws ConnectException {\n String loggerInfo = null;\n _filePath = _ptIISystemPath + \"String_Node_Str\" + fileName;\n File file = new File(_filePath.toString());\n if (file.exists()) {\n loggerInfo = fileName + \"String_Node_Str\" + _...
"private void showMenuIfPopupTrigger(MouseEvent e) {\n if (e.isPopupTrigger() && showPopupHook(e)) {\n popup.show(component, e.getX() + 3, e.getY() + 3);\n }\n}\n"
"public void testProvidersTable() {\n table.addProvider(mockProviderControl(), \"String_Node_Str\", null, true);\n Assert.assertEquals(1, table.getItems().length);\n table.setContext(ExtDocUtils.getSelection());\n final IJavaElementSelection lastSelection = table.getLastSelection();\n Assert.assertEquals...
"private final int jjMoveNfa_1(int startState, int curPos) {\n int[] nextStates;\n int startsAt = 0;\n jjnewStateCnt = 3;\n int i = 1;\n jjstateSet[0] = startState;\n int kind = 0x7fffffff;\n for (; ; ) {\n if (++jjround == 0x7fffffff)\n ReInitRounds();\n if (curChar < 64) ...
"public Collection<ProjectVersionReference> getProjectReferences(String repoId, String namespace, String projectId, String projectVersion) {\n File directory = new File(getDirectory(repoId), namespace + \"String_Node_Str\" + projectId + \"String_Node_Str\" + projectVersion);\n Properties properties = readOrCreate...
"public Object handleLiteralElement(Element child) {\n String childName = child.getName();\n Properties elementProps;\n ResourceTypeHandler handler = getElementHandler(childName);\n if (handler == null) {\n throw new RuntimeException(\"String_Node_Str\" + elementPath(child));\n }\n String child...
"public boolean HDLTargetSupported(String HDLType, AttributeSet attrs) {\n return HDLType.equals(Settings.VHDL);\n}\n"
"public long addVoucher(String clientID, long expireTime, long voucherSize) {\n ClientVoucherManager clientVoucherManager = openVoucherMap.get(clientID);\n if (clientVoucherManager == null) {\n clientVoucherManager = new ClientVoucherManager(clientID, fileID);\n openVoucherMap.put(clientID, clientVo...
"public Resource<?> parse() {\n Resource r = res;\n String tk;\n if (path.startsWith(\"String_Node_Str\")) {\n File homeDir = new File(System.getProperty(\"String_Node_Str\")).getAbsoluteFile();\n if (path.length() == 1) {\n return new DirectoryResource(factory, homeDir);\n } el...
"public void onEnable() {\n ACPluginManager.setServer(getServer());\n PluginManager pm = getServer().getPluginManager();\n ACPluginListener pL = new ACPluginListener();\n PluginDescriptionFile pdfFile = this.getDescription();\n log.info(\"String_Node_Str\" + pdfFile.getName() + \"String_Node_Str\" + \"St...
"protected Map<String, Double> updateTrustAfterHunt(double foodHunted, double foodReceived) {\n List<String> members = this.getDataModel().getHuntingTeam().getMembers();\n if (members.size() < 2)\n return null;\n String opponentID;\n Map<String, Double> newTrustValue = new HashMap<String, Double>();\...