content
stringlengths
40
137k
"private void addComponent(CellComponentFactorySPI spi) {\n CellComponentServerState state = spi.getDefaultCellComponentServerState();\n CellID cellID = selectedCell.getCellID();\n CellServerComponentMessage message = CellServerComponentMessage.newAddMessage(cellID, state);\n ResponseMessage response = sele...
"protected void configure() {\n bind(DynamicDatasetCache.class).toProvider(DynamicDatasetCacheProvider.class).in(Scopes.SINGLETON);\n bind(DatasetContext.class).to(DynamicDatasetCache.class).in(Scopes.SINGLETON);\n bind(Admin.class).toProvider(AdminProvider.class);\n bind(Transactional.class).toProvider(Tra...
"public Collection values(Predicate predicate) {\n checkTransactionState();\n if (predicate == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n final MapService service = getService();\n final QueryResultSet queryResultSet = (QueryResultSet) queryInternal(predicate, IterationTy...
"private String getAppName(Apk apk) {\n return ACTIVE_APPS.get(apk.packageName).name;\n}\n"
"public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Application that = (Application) o;\n if (serviceType != that.serviceType)\n return false;\n if (!name.equals(that.name))\n return false;\n re...
"public boolean canModify(Object bean) {\n if (param.getName().equals(\"String_Node_Str\") || param.getName().equals(\"String_Node_Str\")) {\n boolean canModify = super.canModify(bean);\n if (canModify) {\n Map<String, Object> valueMap = (Map<String, Object>) bean;\n List<Map<Stri...
"protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {\n if (!RecordsManagementModel.TYPE_DISPOSITION_ACTION_DEFINITION.equals(nodeService.getType(actionedUponNodeRef))) {\n return;\n }\n List<QName> changedProps = (List<QName>) action.getParameterValue(CHANGED_PROPERTIES);\n NodeR...
"protected void composeImmunizationRecommendationImmunizationRecommendationRecommendationComponentInner(ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent element) throws IOException {\n composeBackbone(element);\n if (element.hasVaccineCode()) {\n openArray(\"String_Node_Str\");\...
"public Contact getContact() {\n String name = nameTextField.getText();\n String number = numberTextField.getText();\n String operator = operatorComboBox.getSelectedOperatorName();\n if (!multiMode && (StringUtils.isEmpty(name) || StringUtils.isEmpty(number) || StringUtils.isEmpty(operator))) {\n ret...
"private void resetArgs(String cmdLine) throws CommandFormatException {\n if (cmdLine != null) {\n parsedCmd.parse(prefix, cmdLine, this, redirection != null);\n setOutputTarget(parsedCmd.getOutputTarget());\n }\n this.cmdLine = cmdLine;\n}\n"
"private void sendDirectory(String dir, RoutingContext context) {\n FileSystem fileSystem = context.vertx().fileSystem();\n HttpServerRequest request = context.request();\n fileSystem.readDir(dir, asyncResult -> {\n if (asyncResult.failed()) {\n context.fail(asyncResult.cause());\n } e...
"public void currentTimeUpdated(final TmfTimeSynchSignal signal) {\n if ((signal.getSource() != fTable) && (fTrace != null) && (!fTable.isDisposed())) {\n final TmfDataRequest<ITmfEvent> subRequest = new TmfDataRequest<ITmfEvent>(ITmfEvent.class, 0, 1, ExecutionType.FOREGROUND) {\n\n TmfTimestamp t...
"private void notifyErrorListeners() {\n Handler handler = new Handler(Looper.getMainLooper());\n for (final ErrorListener listener : errorListeners) {\n if (listener != null) {\n handler.post(new Runnable() {\n public void run() {\n listener.onErrorOccured(erro...
"public void appendForeignKeys(ForeignKeyReference[] references) {\n QueryBuilder queryBuilder;\n List<QueryBuilder> queryBuilders = new ArrayList<QueryBuilder>();\n for (ForeignKeyReference foreignKeyReference : references) {\n queryBuilder = new QueryBuilder().appendQuoted(foreignKeyReference.columnNa...
"public final void putContent(String content) throws ContentIOException {\n try {\n String encoding = getEncoding();\n byte[] bytes;\n if (encoding == null) {\n bytes = content.getBytes();\n setEncoding(System.getProperty(\"String_Node_Str\"));\n } else {\n ...
"private void closeAllSchemaFrames(boolean exitAfterClose) {\n Object[][] its = new Object[3][];\n its[0] = schemaWindowMap.keySet().toArray();\n its[1] = mdxWindows.toArray();\n JInternalFrame sf = null;\n try {\n for (int i = 0; i < its.length; i++) {\n for (int j = 0; j < its[i].leng...
"public StyleEntry createEntry(ContainerSizeInfo sizeInfo, IStyle style) {\n if (style == null) {\n return StyleBuilder.createEmptyStyleEntry();\n }\n StyleEntry entry = initStyle(style, sizeInfo, parent);\n return entry;\n}\n"
"public static void giveLobbyItems(JavaPlugin plugin, Player p) {\n PluginInstance pli = MinigamesAPI.getAPI().getPluginInstance(plugin);\n ItemStack classes_item = new ItemStack(plugin.getConfig().getInt(\"String_Node_Str\"));\n if (classes_item.getType() != Material.AIR) {\n ItemMeta cimeta = classes_...
"public void deleteAllCache() {\n ImageLoader imageLoader = getImageLoader();\n imageLoader.clearDiskCache();\n imageLoader.clearMemoryCache();\n VideoCache.getInstance().deleteCache();\n String cacheKey = mPref.getString(SettingsActivity.KEY_CACHE_LOC, SettingsActivity.CACHE_LOC_INTERNAL);\n if (Sett...
"private void parseRoot(Tree tree) throws SAXException {\n if (namespaces != null) {\n Map<String, String> namespacePairs = namespaces.getPrefixesToNamespaces();\n Iterator<String> keys = namespacePairs.keySet().iterator();\n while (keys.hasNext()) {\n String nextKey = keys.next();\n ...
"protected void copyFromCard(final Card card, final Game game) {\n this.name = card.getName();\n this.abilities.clear();\n if (this.faceDown) {\n for (Ability ability : card.getAbilities()) {\n if (ability.getWorksFaceDown()) {\n this.abilities.add(ability.copy());\n ...
"public void connect() {\n if (isConnected()) {\n return;\n }\n try {\n ftpClient = new FTPClient(connectionProperties.getHost(), connectionProperties.getPort(), fConnectionTimeout);\n listener = new LogListener();\n ftpClient.setMessageListener(listener);\n ftpClient.login(c...
"public void renderBlock(IBlockRenderer par1, BlockStack par2, RenderBlocks par3) {\n float[] size = par1.getBoundingBoxes(par2.getMeta());\n if (size == null || size.length < 6) {\n size = new float[] { 0, 0, 0, 1, 1, 1 };\n }\n Icon[] textureArray = new Icon[6];\n for (int i = 0; i < 6; i++) {\n...
"private static void filterSoapResult(final File soapAlignFile, final File soapAlignFilteredFile, final Reporter reporter) throws IOException {\n final BufferedReader readerResults = FileUtils.createBufferedReader(soapAlignFile);\n final BufferedWriter bw = new BufferedWriter(new FileWriter(soapAlignFilteredFile)...
"protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n resp.setContentType(\"String_Node_Str\");\n HttpSession session = req.getSession();\n Credentials credentials = (Credentials) session.getAttribute(InitiateLoginServlet.CREDENTIALS);\n session.set...
"public void paint(Graphics g) {\n g.setFont(new Font(\"String_Node_Str\", Font.BOLD, 11));\n for (int i = 0; i < 16; i++) {\n int currentY = height - startY - (15 - i) * (barHeight + whiteSpaceHeight);\n String rank = i + 1 + \"String_Node_Str\";\n if (i < 9)\n rank = \"String_Nod...
"void reportEvent(UsageEvents.Event event, long deviceUsageTime) {\n if (DEBUG) {\n Slog.d(TAG, mLogPrefix + \"String_Node_Str\" + event.mPackage + \"String_Node_Str\" + event.mTimeStamp + \"String_Node_Str\" + eventToString(event.mEventType));\n }\n if (event.mTimeStamp >= mDailyExpiryDate.getTimeInMil...
"public void configure(final OETLProcessor iProcessor, final ODocument iConfiguration, final OBasicCommandContext iContext) {\n super.configure(iProcessor, iConfiguration, iContext);\n if (iConfiguration.containsField(\"String_Node_Str\"))\n separator = iConfiguration.field(\"String_Node_Str\").toString()....
"private void updateState(boolean uploadForever) {\n seedRatioLabel.setEnabled(!uploadForever);\n seedRatioSpinner.setEnabled(!uploadForever);\n seedTimeLabel.setEnabled(!uploadForever);\n seedTimeSpinner.setEnabled(!uploadForever);\n}\n"
"public static <T extends Node> T evaluateNodeXPath(Element root, String expr, XPathPrefixResolver resolver) {\n return (T) evaluateNodeXPath_(root, expr, resolver);\n}\n"
"private Object getGenericRepositoryValue(GenericConnection connection, String value, IMetadataTable table) {\n if (connection == null) {\n return null;\n }\n String serialized = connection.getCompProperties();\n if (serialized != null) {\n Deserialized fromSerialized = ComponentProperties.fro...
"void invalidateOnRefresh(TypeOracle typeOracle) {\n if (!isTypeOracleBuilderFirstTime()) {\n changedFiles.addAll(generatedCupLocations);\n addDependentsToChangedFiles();\n for (Iterator iter = changedFiles.iterator(); iter.hasNext(); ) {\n String location = (String) iter.next();\n ...
"public void load(final Object input, OCommandContext context) {\n if (input == null)\n return;\n if (input instanceof OrientVertex) {\n final OrientVertex v = (OrientVertex) input;\n if (clusterName != null)\n v.save(clusterName);\n else\n v.save();\n } else i...
"public void webServicePaybox(ActionRequest request, ActionResponse response) throws Exception {\n Context context = request.getContext();\n PaymentVoucherPayboxService paymentVoucherPayboxService = Beans.get(PaymentVoucherPayboxService.class);\n String idPaymentVoucher = (String) context.get(\"String_Node_Str...
"private static List<ColumnConfig> createRemindersGridColumns() {\n final DateTimeFormat format = DateUtils.DATE_SHORT;\n final Date now = new Date();\n final ColumnConfig iconColumn = new ColumnConfig();\n iconColumn.setId(\"String_Node_Str\");\n iconColumn.setHeaderHtml(\"String_Node_Str\");\n iconC...
"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 ...
"public List<FetchResult> fetchRowBatch(String table, List<Selector> selectors) throws BlurException, TException {\n Map<Integer, FetchResult> resultMap = new TreeMap<Integer, FetchResult>();\n Map<Integer, Integer> requestMapping = new HashMap<Integer, Integer>();\n List<Selector> selectorRequest = new ArrayL...
"public final OccupyerPlace addSoldier(IBuildingOccupyableMovable soldier) {\n OccupyerPlace freePosition = findFreePositionFor(soldier.getSoldierType());\n emptyPlaces.remove(freePosition);\n currentlyCommingSoldiers[freePosition.getType().ordinal()]--;\n TowerOccupier towerOccupier = new TowerOccupier(fre...
"public static final void checkConstructorModifiers(final int modifiers) {\n if ((modifiers & ~(PUBLIC_MOD | PROTECTED_MOD | PRIVATE_MOD)) != 0) {\n throw new RuntimeException(\"String_Node_Str\" + toString(modifiers));\n }\n}\n"
"protected IContextInformation computeContextInformation() {\n if (hasParameters() && (fProposal.getKind() == CompletionProposal.METHOD_REF || fProposal.getKind() == CompletionProposal.CONSTRUCTOR_INVOCATION)) {\n return new ProposalContextInformation(fProposal);\n }\n return super.computeContextInforma...
"public ExpandableView getChildAtPosition(float touchX, float touchY) {\n final int count = getChildCount();\n for (int childIdx = 0; childIdx < count; childIdx++) {\n ExpandableView slidingChild = (ExpandableView) getChildAt(childIdx);\n if (slidingChild.getVisibility() == GONE || slidingChild inst...
"protected void removeObserver() {\n getNetworkSynchronizer().onRemoved();\n}\n"
"private void mockForGetChildren() throws Exception {\n IResource[] res = new IResource[3];\n for (int i = 0; i < 3; i++) {\n IFile fe = mock(IFile.class);\n when(fe.getFullPath()).thenReturn(new Path(\"String_Node_Str\"));\n res[i] = fe;\n }\n PowerMockito.mockStatic(ReportUtils.class)...
"public void handleReceived(ClientConnection connection) {\n PlayerCloseWindowEvent event = new PlayerCloseWindowEvent(TridentServer.getInstance().getWindow(this.id));\n TridentServer.getInstance().getEventManager().call(event);\n if (event.isIgnored()) {\n }\n}\n"
"public void send(int channelindex, Token token, double delay) throws InvalidStateException, IllegalActionException {\n if (delay < -1.0) {\n throw new IllegalActionException(this, \"String_Node_Str\" + \"String_Node_Str\");\n }\n Receiver[][] farRec;\n try {\n workspace().getReadAccess();\n ...
"List<Field> findAllTargetInstanceFieldsInTestedClassHierarchy(Class<?> testedClass) {\n requireDIAnnotation = false;\n List<Field> targetFields = new ArrayList<Field>();\n Class<?> classWithFields = testedClass;\n do {\n Field[] fields = classWithFields.getDeclaredFields();\n for (Field field...
"public void init(RichTextArea textArea, Config config) {\n super.init(textArea, config);\n saveRegistration(textArea.addKeyDownHandler(this));\n saveRegistration(textArea.addKeyPressHandler(this));\n saveRegistration(textArea.addKeyUpHandler(this));\n getTextArea().getCommandManager().addCommandListener...
"private synchronized void zoom(int nbClicks) {\n fScrollCounter = null;\n long requestedRange = (nbClicks > 0) ? Math.round(ZOOM_FACTOR * fRangeDuration) : (long) Math.ceil(fRangeDuration * (1.0 / ZOOM_FACTOR));\n long requestedStart = validateStart(fRangeStartTime + (long) ((fRangeDuration - requestedRange) ...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (null == value) {\n return false;\n }\n boolean wasXMLRoot = false;\n XPath...
"public void equals_otherObject() {\n Assert.assertNotEquals(this.rolePrincipal, \"String_Node_Str\");\n}\n"
"private String formatPath(String path) {\n String formattedPath = null;\n if (path != null) {\n formattedPath = (path.startsWith(\"String_Node_Str\") ? path : \"String_Node_Str\" + path);\n formattedPath = (path.endsWith(\"String_Node_Str\") ? formattedPath : formattedPath + \"String_Node_Str\");\n...
"public void updateEntity() {\n super.updateEntity();\n if (!worldObj.isRemote) {\n if (pairedGate == null) {\n Vector3 thisVector = new Vector3(this);\n Vector3 foundVector = null;\n for (int i = 0; i < 4; i = i + 90) {\n MovingObjectPosition mop = thisVecto...
"public boolean evaluate(Object o) {\n Field f = fieldDef.getJavaField();\n Object oVal;\n try {\n oVal = f.get(o);\n } catch (IllegalArgumentException e) {\n throw new JDOFatalInternalException(\"String_Node_Str\" + fieldDef.getName() + \"String_Node_Str\" + o.getClass().getName() + \"String_...
"protected void onDetachedFromWindowInternal() {\n if (mPreDrawRegistered) {\n getViewTreeObserver().removeOnPreDrawListener(this);\n mPreDrawListenerDetached = true;\n }\n resetResolvedDrawables();\n if (mEditor != null)\n mEditor.onDetachedFromWindow();\n super.onDetachedFromWindow...
"public StartPAOSResponse sendStartPAOS(StartPAOS message) throws DispatcherException, PAOSException {\n Object msg = message;\n String hostname = endpoint.getHost();\n int port = endpoint.getPort();\n if (port == -1) {\n port = endpoint.getDefaultPort();\n }\n String resource = endpoint.getFil...
"private void readMeta() {\n Chunk header = readChunkHeader(rootChunkStart);\n lastChunkId = header.id;\n chunks.put(header.id, header);\n meta.setRootPos(header.metaRootPos, -1);\n String s = meta.get(\"String_Node_Str\" + lastChunkId);\n Chunk h2 = Chunk.fromString(s);\n h2.start = header.start;\...
"public Control createControl(final Composite subComposite, final IElementParameter param, final int numInRow, final int nbInRow, final int top, final Control lastControl) {\n this.curParameter = param;\n this.paramFieldType = param.getFieldType();\n int nbLines = param.getNbLines();\n DecoratedField dField...
"private void initializeApplicationNameAndModuleName() {\n String jpaModuleName = (String) getDatabaseSession().getProperty(WEBLOGIC_MODULENAME_PROPERTY);\n String jpaApplicationName = (String) getDatabaseSession().getProperty(WEBLOGIC_APPLICATIONNAME_PROPERTY);\n if (jpaModuleName != null) {\n this.mod...
"public static RedisPoolProperty initByIdFromConfig(String id) {\n RedisPoolProperty property = new RedisPoolProperty();\n String pre = id + Configs.SEPARATE;\n List<String> lists = MythReflect.getFieldByClass(RedisPoolProperty.class);\n Map<String, Object> map = new HashMap<>();\n MythProperties config ...
"public void startup() {\n if (torod == null) {\n Config config = new Config();\n config.getBackend().as(AbstractPostgres.class).setPassword(\"String_Node_Str\");\n TestService testService = ToroDbStandaloneTestUtil.createInjectors(config, Clock.systemDefaultZone());\n torod = testService...
"public void onPageRequest(PageRequest request) {\n setPageTitle(I18N.CONSTANTS.contactsExport());\n}\n"
"public void execute(Event<UILinkActivityComposer> event) throws Exception {\n WebuiRequestContext requestContext = event.getRequestContext();\n UILinkActivityComposer uiComposerLinkExtension = event.getSource();\n uiComposerLinkExtension.clearLinkShare();\n uiComposerLinkExtension.setLinkInfoDisplayed(fals...
"private List<SelectItem> replaceSelectList(List<SelectItem> selectItemList) throws VerdictDBDbmsException {\n List<SelectItem> newSelectItemList = new ArrayList<>();\n for (SelectItem sel : selectItemList) {\n if (!(sel instanceof AliasedColumn) && !(sel instanceof AsteriskColumn)) {\n if (sel ...
"private void runPlugins(final BPELPlan buildPlan, final PropertyMap map) {\n for (final BPELScopeActivity templatePlan : buildPlan.getTemplateBuildPlans()) {\n final BPELPlanContext context = new BPELPlanContext(templatePlan, map, buildPlan.getServiceTemplate());\n if (templatePlan.getNodeTemplate() !...
"public void removeChangeListener(ChangeListener change) {\n if (_changeListeners == null) {\n return;\n }\n _changeListeners.remove(listener);\n}\n"
"private static String convertBytes2String(byte[] bytearr) throws UTFDataFormatException {\n int utflen = bytearr.length;\n char[] chararr = new char[utflen];\n int c;\n int chararr_count = 0;\n while (count < utflen) {\n c = (int) bytearr[count] & 0xff;\n if (c > 127)\n break;\n...
"public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {\n ContentAssistant assistant = (ContentAssistant) super.getContentAssistant(sourceViewer);\n String contentType = GroovyPartitionScanner.GROOVY_MULTILINE_STRINGS;\n assistant.setContentAssistProcessor(new JavaCompletionProcessor(getEdi...
"private View getCampaignContentItemView(NewsItem newsItem, View convertView, ViewGroup parent) {\n if (convertView == null) {\n convertView = View.inflate(getContext(), R.layout.item_campaign_news, null);\n }\n TextView tvUserName = (TextView) convertView.findViewById(R.id.tvUserName);\n tvUserName....
"private Rectangle prepareCleanStatus(Point nodeLocation, Dimension nodeSize) {\n Rectangle statusRectangle = null;\n Rectangle breakpointRectangle, warningRectangle, infoRectangle, validationRuleRectangle, collapseRectangle;\n int status = node.getStatus();\n if ((status & Process.BREAKPOINT_STATUS) != 0) ...
"private void start() {\n Log.d(LOGTAG, \"String_Node_Str\");\n if (mRequest == null || mView == null || mDownloaderTask != null)\n return;\n mExecuteDownloadHandler.post(mExecuteDownloadTask);\n}\n"
"protected boolean isUpToDate(FTPClient ftp, File localFile, String remoteFile) throws IOException, BuildException {\n log(\"String_Node_Str\" + remoteFile, Project.MSG_VERBOSE);\n FTPFile[] files = ftp.listFiles(remoteFile);\n if (files == null || files.length == 0) {\n if (action == SEND_FILES) {\n ...
"public static String getJobVersion(Property property) {\n if (property != null) {\n ProjectManager pManager = ProjectManager.getInstance();\n Project currentProject = pManager.getCurrentProject();\n String version = jobInfo.getJobVersion();\n if (FLAG_VERSION_WITH_CLASSIFIER) {\n ...
"public static Pair<ManagedObjectReference, String> prepareGuestNetwork(String vSwitchName, HostMO hostMo, String vlanId, Integer networkRateMbps, Integer networkRateMulticastMbps, long timeOutMs, boolean syncPeerHosts) throws Exception {\n HostVirtualSwitch vSwitch;\n vSwitch = hostMo.getHostVirtualSwitchByName(...
"private String configureEvaluation(Class<?> interface1, Class<?> scriptHelperClass, CtMethod method, String body, CtClass returnType) throws NotFoundException {\n String scriptHelperClassname = scriptHelperClass.getName();\n String returnTypeName = returnType.getName();\n if (!returnTypeName.equals(Void.class...
"private static boolean isPctEncodedUnescaped(char character) {\n String hex = Integer.toHexString(character);\n char[] aschar = hex.toCharArray();\n if (aschar[0] == '%') {\n if (aschar[1] == '2') {\n return aschar[2] != '2' && isHexDigit(aschar[2]);\n } else if (aschar[1] == '5') {\n...
"private static Cartridge read(FileContents fileCont) {\n InputStream stream = null;\n String fileName = \"String_Node_Str\";\n try {\n fileName = fileCont.getName();\n stream = fileCont.getInputStream();\n System.out.println(\"String_Node_Str\" + fileName);\n stream.close();\n ...
"public void render(Canvas canvas, Camera camera, float alpha) {\n if (flagImg != null) {\n Vector2f cameraPos = camera.getRenderPosition(alpha);\n Vector2f flagPos = pos;\n if (carrier != null && carrier.isAlive()) {\n flagPos = carrier.getEntity().getRenderPos(alpha);\n }\n ...
"public void testBrazilLanguage() {\n final AIConfiguration config = new AIConfiguration(getPtBrAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.PortugueseBrazil, AIConfiguration.RecognitionEngine.System);\n updateConfig(config);\n try {\n final AIDataService aiDataService = new A...
"public void visit(NodeTraversal t, Node n, Node parent) {\n if (parent == null) {\n return;\n }\n if (parent.isScript()) {\n if (NodeUtil.isFunctionDeclaration(n)) {\n String functionName = NodeUtil.getName(n);\n if (isTestFunction(functionName)) {\n exportTe...
"public void initParameters() {\n if (sourceProducts != null && sourceProducts.length > 0) {\n final MetadataElement absRoot = AbstractMetadata.getAbstractedMetadata(sourceProducts[0]);\n final String acquisitionMode = absRoot.getAttributeString(AbstractMetadata.ACQUISITION_MODE);\n subswathComb...
"public void testProbeIsLimited() throws Exception {\n drainAll();\n QueryRequest request = QueryRequest.createQuery(\"String_Node_Str\");\n request.setTTL((byte) 1);\n ULTRAPEER_2.send(request);\n ULTRAPEER_2.flush();\n QueryRequest reqRecvd = (QueryRequest) LEAF.receive(TIMEOUT);\n assertTrue(req...
"private DBMap<Object, List<Object>> initValueForDBMap(String dbName) {\n return new DBMap<Object, List<Object>>(ResourceManager.getMapDBFilePath(), ResourceManager.getMapDBFileName(this), ResourceManager.getMapDBCatalogName(this, dbName));\n}\n"
"private void update(UpdateContext context, Object entity, MutableStateTrackable updatableProxy) {\n if (!rootUpdateAllowed && entity == null) {\n throw new IllegalArgumentException(\"String_Node_Str\" + updatableProxy.getClass().getName() + \"String_Node_Str\");\n }\n DirtyAttributeFlusher<?, Object, O...
"public List<VolumeVO> searchForVolumes(ListVolumesCmd cmd) {\n Account caller = UserContext.current().getCaller();\n Long domainId = cmd.getDomainId();\n String accountName = cmd.getAccountName();\n List<Long> permittedAccounts = new ArrayList<Long>();\n boolean isAdmin = false;\n Boolean isRecursive...
"protected void refreshAttributesOnClose() {\n dbFile = ((MongoRepository) repository).getGridFS().findOne(getId());\n if (dbFile == null)\n throw new KurentoException(\"String_Node_Str\" + getId());\n state = State.STORED;\n attributes.setContentLength(dbFile.getLength());\n}\n"
"void initAnimation(GLHierarchicalTreeMap parentView, GLTreeMap beginMainView, GLTreeMap endMainView, Vector<GLTreeMap> beginThumbnails, Vector<GLTreeMap> endThumbnails, int direction) {\n this.beginMainView = beginMainView;\n this.endMainView = endMainView;\n this.beginThumbnails = beginThumbnails;\n this....
"private void saveFile(Uri uri, File file) {\n if (debug)\n Log.i(TAG, \"String_Node_Str\" + uri + \"String_Node_Str\" + file);\n Cursor c = getContentResolver().query(uri, new String[] { Notes.ENCRYPTED, Notes.NOTE }, null, null, null);\n if (c != null && c.getCount() > 0) {\n c.moveToFirst();\n...
"public void run() {\n try {\n final int nCols = grid.getCols();\n final int nRows = grid.getRows();\n final int nbrValues = nRows * nCols;\n do {\n String str = queue.take();\n if (EOF.equals(str)) {\n if (counter != nbrValues) {\n ...
"public void assignToLoadBalancer(AssignToLoadBalancerRuleCmd cmd) throws NetworkRuleConflictException {\n Long loadBalancerId = cmd.getLoadBalancerId();\n Long instanceIdParam = cmd.getVirtualMachineId();\n List<Long> instanceIds = cmd.getVirtualMachineIds();\n if ((instanceIdParam == null) && (instanceIds...
"protected void onBlockAdded(IMultiblockPart part) {\n if (part instanceof TileEntityReactorAccessPort) {\n attachedAccessPorts.add((TileEntityReactorAccessPort) part);\n }\n if (part instanceof TileEntityReactorControlRod) {\n TileEntityReactorControlRod controlRod = (TileEntityReactorControlRod...
"protected void doSearchAction() {\n try {\n String param = txt_search.getText();\n Search search = new Search(param, false);\n if (chk_srestrict.isSelected()) {\n Passage restrict = PassageFactory.createPassage(txt_srestrict.getText());\n search.setRestriction(restrict);\n...
"public Keys getKeys() {\n ECKey key = new ECKey();\n byte[] address = key.getPubKey();\n byte[] privateKey = key.getPrivKeyBytes();\n String addressAsStringWithPrivate = key.toStringWithPrivate(MainNetParams.get()).toString();\n return new Keys().setAddress(address).setAddressAsString(addressAsString).s...
"public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) {\n ItemStack itemstack = null;\n Slot slot = (Slot) inventorySlots.get(par2);\n if (slot != null && slot.getHasStack()) {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n if (par2 < ...
"protected void addWhereCondition() {\n markDirty();\n RoleWhereCondition wc = new RoleWhereCondition();\n wc.setLeftPath(wcLeftText.getText());\n wc.setOperator(wcOperatorCombo.getText());\n wc.setRightValueOrPath(wcRightText.getText());\n wc.setPredicate(wcPredicateCombo.getText());\n ArrayList<R...
"public void creeperDropEvent(LivingDropsEvent evt) {\n if (evt.entityLiving instanceof EntityCreeper) {\n if (CREEPER_DROP_SULFER) {\n evt.entityLiving.dropItem(this.itemSulfurDust.itemID, 1 + evt.entityLiving.worldObj.rand.nextInt(6));\n }\n }\n}\n"
"public void onAnimationUpdate(ValueAnimator animation) {\n int value = (int) animation.getAnimatedValue();\n tempShadowRadius = value;\n invalidate();\n}\n"
"protected InformationLossDefault evaluateInternal(final Node node, final IHashGroupify g) {\n int groups = 0;\n int tuples = 0;\n boolean suppressed = false;\n HashGroupifyEntry m = g.getFirstEntry();\n while (m != null) {\n if (m.count > 0) {\n tuples += m.count;\n groups +...
"public void start(CoprocessorEnvironment e) throws IOException {\n if (e instanceof RegionCoprocessorEnvironment) {\n RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e;\n HTableDescriptor tableDesc = env.getRegion().getTableDesc();\n String hbaseNamespacePrefix = tableDesc.get...
"public BasicMapReduceContext build(CConfiguration conf, MapReduceMetrics.TaskType type, String runId, long logicalStartTime, String workflowBatch, Arguments runtimeArguments, Transaction tx, ClassLoader classLoader, URI programLocation, String inputDataSetName, List<Split> inputSplits, String outputDataSetName) {\n ...
"private void computeOptimizedItinerary() {\n int positionNbr = 4;\n ArrayList<ISPosition> pos = new ArrayList<ISPosition>();\n for (int i = 0; i < positionNbr; i++) {\n double x = Math.random() * 50;\n double y = Math.random() * 50;\n if (mMaps.size() > 1 && i > positionNbr / 2) {\n ...