content
stringlengths
40
137k
"public void execute() {\n DialogManager.getManager(gameId).fadeOut((DialogContainer) getParent());\n StackDialog.this.feedbackPanel.doClick();\n}\n"
"private void buildStreamVariableExecutor(Variable variable, int streamEventChainIndex, ConditionVisitor conditionVisitor, Attribute.Type type) {\n String id = variable.getAttributeName();\n if (variable.getStreamId() != null) {\n id = variable.getStreamId() + \"String_Node_Str\" + id;\n }\n conditio...
"private Ant4EclipseException newBundleNotResolvedException(UnresolvedBundleException e, TargetPlatform targetPlatform) {\n return new Ant4EclipseException(PdeExceptionCode.BUNDLE_NOT_RESOLVED_EXCEPTION, TargetPlatformImpl.dumpResolverErrors(new BundleDescription[] { e.getBundleDescription() }, true));\n}\n"
"public void onSignChange(SignChangeEvent event) {\n if (event.isCancelled())\n return;\n if (!(Boolean) ACHelper.getInstance().getConfValue(\"String_Node_Str\"))\n return;\n String parsed = null;\n String line;\n for (int i = 0; i < 4; i++) {\n line = event.getLine(i);\n if (...
"public void generate() throws IOException, UnsupportedOperationException {\n String qualifiedGeneratedClassName = String.format(\"String_Node_Str\", packageName, className);\n JavaFileObject sourceFile = processingEnvironment.getFiler().createSourceFile(qualifiedGeneratedClassName);\n JavaWriter writer = new ...
"public void run() {\n conversationPanel.clear();\n chatPanel.processHistory(msgHistory, \"String_Node_Str\");\n conversationPanel.setDefaultContent();\n changeHistoryButtonsState(chatPanel);\n}\n"
"public boolean postfire() throws IllegalActionException {\n Time currentTime = getDirector().getModelTime();\n if (_currentOutput != null) {\n _delayedOutputTokens.take();\n }\n if (_delayedInputTokensList.size() != 0 && _delayedOutputTokens.isEmpty()) {\n DoubleToken delayToken = (DoubleToke...
"private void moveTokens(TileI newTile) {\n ArrayList movedTokens = new ArrayList();\n ArrayList co = (ArrayList) Game.getCompanyManager().getAllPublicCompanies();\n Iterator it = co.iterator();\n while (it.hasNext()) {\n PublicCompany c = (PublicCompany) it.next();\n if (c.hasTokens()) {\n ...
"protected boolean act() {\n int count = 0;\n for (Mob mob : mobs.toArray(new Mob[0])) {\n if (mob.alignment == Char.Alignment.ENEMY)\n count++;\n }\n if (count < nMobs()) {\n Mob mob = createMob();\n mob.state = mob.WANDERING;\n mob.pos = randomRespawnCell();\n ...
"private void parse(ParseContext context) {\n char c = context.getCharAtPos();\n if (context.inState(VARIABLE)) {\n if (c == '$') {\n context.appendCharToText();\n return;\n }\n if (c == '#') {\n context.appendCharToText();\n return;\n }\n ...
"public void onCreateNode(ChildAssociationRef childAssocRef) {\n NodeRef nodeRef = childAssocRef.getChildRef();\n if (nodeService.getType(nodeRef).equals(ContentModel.TYPE_DICTIONARY_MODEL)) {\n Boolean value = (Boolean) nodeService.getProperty(nodeRef, ContentModel.PROP_MODEL_ACTIVE);\n if ((value ...
"public boolean publishEntireCourse(Selenium browser, AccessSettings access, String catalog) {\n StringBuffer selectorBuffer = new StringBuffer();\n selectorBuffer.append(\"String_Node_Str\").append(getCourseEditorPublishCss()).append(\"String_Node_Str\");\n functionalUtil.waitForPageToLoadElement(browser, sel...
"public static String getProperty(String filePath, String name, String defaultValue) {\n if (StringUtils.isBlank(filePath) || StringUtils.isBlank(name)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n try {\n Properties prop = PROPS.get(filePath);\n if (prop == null) {\n...
"public Date runningSince() {\n return new Date(initialStart.getTime());\n}\n"
"public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {\n super.renderTileEntityAt(tileentity, x, y, z, f);\n TileArchitect architect = (TileArchitect) tileentity;\n GL11.glPushMatrix();\n GL11.glPushAttrib(GL11.GL_ENABLE_BIT);\n GL11.glEnable(GL11.GL_CULL_FACE);\n...
"public Uri getContentUri() {\n return StatusUpdateInfoColumns.CONTENT_URI;\n}\n"
"public void updateVariable(EveObject value) {\n EveObject eo = getExpression().execute();\n String ident = getIdentifier();\n if (eo != null && eo.isSealed()) {\n throw new EveError(\"String_Node_Str\");\n }\n EveObject existingField = eo.getField(ident);\n if (existingField != null && existin...
"public ResponseEntity<?> schemaForRepository(ServletServerHttpRequest request, URI baseUri, String repository) throws IOException {\n RepositoryMetadata repoMeta = repositoryMetadataFor(repository);\n if (null == repoMeta) {\n return new ResponseEntity<Object>(HttpStatus.NOT_FOUND);\n }\n JsonSchema...
"public ISubjectID[] getUserSubjects(UserRoles userRole, ITimePeriod timePeriod) throws AuthPelpException {\n ArrayList<SubjectID> subjects = new ArrayList<SubjectID>();\n if (userRole == null || userRole.compareTo(UserRoles.Student) == 0) {\n if (asignaturasMatriculadas == null) {\n asignaturas...
"public static boolean isGroupingSupported(ChartWizardContext wizardContext) {\n final int state = wizardContext.getDataServiceProvider().getState();\n return (state & IDataServiceProvider.SHARE_QUERY) != IDataServiceProvider.SHARE_QUERY && (state & IDataServiceProvider.INHERIT_COLUMNS_GROUPS) != IDataServiceProv...
"private void parseLevelIndex(IBaseCubeQueryDefinition queryDefintion, Chart cm) {\n fRowInnerLevelIndex = -1;\n fColInnerLevelIndex = -1;\n if (queryDefintion instanceof ICubeQueryDefinition) {\n List<String> rowLevelNames = Collections.emptyList();\n List<String> colLevelNames = Collections.emp...
"public void setPosY(float y) {\n if (y >= Game.sScreenLowerY && y <= Game.sScreenHigherY) {\n mPosY = y;\n } else if (y < Game.sScreenLowerY) {\n mPosY = Game.sScreenLowerY;\n } else if (y > Game.sScreenHigherY) {\n mPosY = Game.sScreenHigherY;\n }\n}\n"
"private boolean importResources(String rootDirectory, Map<String, File> fileSystemObjects) {\n List<File> fileList = new ArrayList<File>();\n for (Entry<String, File> entry : fileSystemObjects.entrySet()) {\n fileList.add(entry.getValue());\n }\n Collections.sort(fileList, new Comparator<File>() {\n...
"public Prediction computeWeightedVote() {\n int n = votes.size();\n if (n > 0) {\n int numOutputs = outputAttributesCount.length;\n weights = new double[n][numOutputs];\n weightedVote = new MultiLabelPrediction(numOutputs);\n for (int o = 0; o < numOutputs; o++) {\n int num...
"public void marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (objectValue == null) {\n return;\n }\n boolean addDeclaration = false;\n bo...
"public void create() throws ResourceAllocationException {\n try {\n Account owner = _accountService.getActiveAccount(getAccountName(), getDomainId());\n if (owner == null) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + accountName + \"String_Node_Str\" + domainId);\n ...
"public void visitLabel(LabelHandle handle) {\n LabelItemDesign labelItem = new LabelItemDesign();\n setupReportItem(labelItem, handle);\n String text = handle.getText();\n String textKey = handle.getTextKey();\n labelItem.setText(textKey, text);\n ActionHandle action = handle.getActionHandle();\n ...
"public void resolve(Type t, Type declaredType, Type sigType, NumberedString subSig, SootMethod container, ChunkedQueue<SootMethod> targets) {\n if (declaredType instanceof ArrayType)\n declaredType = RefType.v(\"String_Node_Str\");\n if (sigType instanceof ArrayType)\n sigType = RefType.v(\"String_...
"protected void createBuffers() {\n meansBufferPool = create1DPoolBuffer(meansPool, false);\n varianceBufferPool = create1DPoolBuffer(variancePool, false);\n matrixBufferPool = create2DPoolBuffer(matrixPool, true);\n mixtureWeightsBufferPool = create1DPoolBuffer(mixtureWeightsPool, true);\n}\n"
"public AbstractNode getNewObject() {\n if (dropType != null) {\n switch(dropType) {\n case DROP_OUTPUT_DOC_CHILD:\n OutputTreeNode outputNode = XmlmapFactory.eINSTANCE.createOutputTreeNode();\n outputNode.setNodeType(nodeType);\n newObject = outputNode;...
"public void stop(ShutdownListener sl) {\n if (started) {\n logger.debug(\"String_Node_Str\" + this.getName());\n if (node == null) {\n sl.notifyFailure(new UnstartedNodeException());\n logger.error(\"String_Node_Str\");\n }\n Connection c = NIOAgent.tm.startConnecti...
"private Entity createEntityFromLdapEntry(Object parentDO, String propName, LdapEntry ldapEntry, List<String> propNames) throws WIMException {\n final String METHODNAME = \"String_Node_Str\";\n String outEntityType = ldapEntry.getType();\n Entity outEntity = null;\n if (outEntityType != null) {\n if ...
"private static Configuration getTestDriverConfiguration(final Set<File> theFiles) throws BindException, IOException {\n ConfigurationModule testDriverConfigurationModule = TestDriverConfiguration.CONF;\n for (final File f : theFiles) {\n LOG.log(Level.FINEST, \"String_Node_Str\" + f.getName());\n t...
"public void setReasoner() {\n this.reasoner = cm.reasoner(OWLAPIReasoner.class, sources);\n try {\n reasoner.init();\n } catch (ComponentInitException e) {\n System.out.println(\"String_Node_Str\");\n e.printStackTrace();\n }\n}\n"
"public String isValid(String newText) {\n if ((newText == null) || \"String_Node_Str\".equals(newText))\n return \"String_Node_Str\";\n if (XSDIdentityConstraintCategory.UNIQUE_LITERAL.equals(key.getIdentityConstraintCategory()) && !newText.equals(((XSDElementDeclaration) key.getContainer()).getName())) {...
"public IReportItemExecutor getNextChild() {\n if (bodyExecutor != null) {\n IReportItemExecutor executor = bodyExecutor;\n bodyExecutor = null;\n return executor;\n }\n return null;\n}\n"
"protected Object doHandle(Request request, Response response, Neo4jService service) {\n String query = param(request, \"String_Node_Str\", \"String_Node_Str\");\n String[] props = param(request, \"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_Str\");\n final String type = param(request, \"String...
"public void init() throws ComponentInitException {\n Set<NamedClass> usedConcepts;\n if (allowedConcepts != null) {\n Helper.checkConcepts(reasoner, allowedConcepts);\n usedConcepts = allowedConcepts;\n } else if (ignoredConcepts != null) {\n usedConcepts = Helper.computeConceptsUsingIgno...
"private void initRecipientsEditor() {\n if (isRecipientsEditorVisible()) {\n return;\n }\n ViewStub stub = (ViewStub) findViewById(R.id.recipients_editor_stub);\n if (stub != null) {\n mRecipientsEditor = (RecipientsEditor) stub.inflate();\n } else {\n mRecipientsEditor = (Recipient...
"public static String _fromMillis(long mi, String S, String M, String H, String D) {\n if (mi < T_1S) {\n return \"String_Node_Str\";\n }\n if (mi < T_1M && mi > T_1S) {\n return (int) (mi / T_1S) + (useEnglish ? TIME_S_EN : TIME_S_CN);\n }\n if (mi >= T_1M && mi < T_1H) {\n int m = ...
"public boolean handle(Object receive) throws Exception {\n if (MessageCodes.RpbPingResp.equals(receive)) {\n handler.handle(PbcRiakOperations.this.support.newResponse(\"String_Node_Str\"));\n return true;\n }\n throw new IncomprehensibleProtocolException(procedure);\n}\n"
"public void testgetReplicaUnavailable() throws Exception {\n System.out.println(\"String_Node_Str\");\n makeDB();\n insertData();\n long seqToRequest = 1L;\n RPCResponse<LogEntries> result = client.getReplica(new LSNRange(viewID, seqToRequest, seqToRequest));\n try {\n result.get();\n } cat...
"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 ...
"protected String getRegistryAuthHeaderValue() {\n if (credentials == null) {\n return REGISTRY_AUTH_NULL_VALUE;\n }\n return BaseEncoding.base64().encode(toJson(credentials).getBytes(Charset.forName(\"String_Node_Str\")));\n}\n"
"private void populateResultFromNearCache(Collection keys, List<Object> resultingKeyValuePairs) {\n Iterator iterator = keys.iterator();\n while (iterator.hasNext()) {\n Object key = iterator.next();\n Object value = getCachedValue(key, true);\n if (value != null && value != NOT_CACHED) {\n ...
"private Tab createTab() {\n Tab tab = new Tab();\n tab.setOnClosed(event -> {\n this.keepClosedPath(tab);\n });\n MenuItem menuItem0 = new MenuItem(\"String_Node_Str\");\n menuItem0.setOnAction(actionEvent -> {\n this.keepClosedPath(tab);\n tabPane.getTabs().remove(tab);\n });\n ...
"public List<AlarmDefinition> find(String tenantId, String name, Map<String, String> dimensions, List<String> sortBy, String offset, int limit) {\n try (Handle h = db.open()) {\n String query = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"Stri...
"private void evaluateExpressions(ASTCssNode node) {\n ASTManipulator manipulator = new ASTManipulator();\n ExpressionEvaluator expressionEvaluator = new ExpressionEvaluator();\n if (node instanceof Expression) {\n Expression value = expressionEvaluator.evaluate((Expression) node);\n manipulator....
"private void getConnFromNode() {\n DriverShim wapperDriver = null;\n try {\n List list = null;\n if (dbType.equals(EDatabaseTypeName.GENERAL_JDBC.getDisplayName())) {\n list = extractMeta.connect(trueDBTypeForJDBC, url, username, pwd, driverClassName, driverJarPath, dbVersion, additional...
"private void updateVariableDecorations(Component mc) {\n ArrayDecorativeGeometry adg = new ArrayDecorativeGeometry();\n mc.generateDecorations(false, modelDisplayHints, model.getWorkingState(), adg);\n currentVariableGeometryDisplayers = mapComponentsToVariableVisuals.get(mc);\n int oldSize = (currentVaria...
"private static void schedule(boolean update, SecondScheduler secondScheduler, final Object key, final long millis) {\n if (update) {\n secondScheduler.schedule(millis, key, \"String_Node_Str\" + key);\n } else {\n return scheduleEntry(delayMillis, key, object);\n }\n}\n"
"public void post() throws Exception {\n ClientDispatcher myClient = new ClientDispatcher();\n TransportImpl myTransport = new TransportImpl(null);\n myClient.init(myTransport);\n FDUtil.ensureFD(_tport1.getFD());\n FDUtil.ensureFD(_tport2.getFD());\n System.err.println(\"String_Node_Str\");\n for ...
"protected void processRequest(Object request, RP rp) throws Exception {\n if (request.getClass() == Eval.class) {\n rp.processResponse(null);\n return;\n }\n super.processRequest(request, rp);\n}\n"
"public String describe(Cron cron) {\n Preconditions.checkNotNull(cron, \"String_Node_Str\");\n Map<CronFieldName, CronField> expressions = cron.retrieveFieldsAsMap();\n Map<CronFieldName, FieldDefinition> fieldDefinitions = cron.getCronDefinition().retrieveFieldDefinitionsAsMap();\n return new StringBuilde...
"private static Set<PlayerGain> loadGainMultipliers(ConfigurationSection config) {\n Set<PlayerGain> gainMultipliers = new HashSet<PlayerGain>();\n gainMultipliers.addAll(GroupGain.parseConfig(config.getConfigurationSection(\"String_Node_Str\")));\n gainMultipliers.addAll(TimeGain.parseConfig(config.getConfigu...
"private boolean isRunning(FlowIdentifier flowId) {\n try {\n ProgramStatus status = appFabricServer.status(token, flowId);\n return \"String_Node_Str\".equals(status.getStatus());\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n}\n"
"protected TreeOperation handleTreeInsertText(TreeInsertText op1) {\n if (!TreeUtils.diff(op1.path, path)) {\n if (op1.getPosition() < position) {\n return op1;\n }\n List<Integer> tab = new ArrayList<Integer>(op1.path.size());\n tab.set(0, op1.path.get(0) + 1);\n return...
"public static void dispatchMsg(double delay, int senderID, int receiverID, RavenMessage msg, Object extraInfo) {\n BaseGameEntity receiver = EntityManager.getEntityFromID(receiverID);\n if (receiver == null) {\n bot = EntityManager.getBotFromID(receiverID);\n }\n Telegram telegram = new Telegram(0, ...
"private void runAsynchronous(final ExecutionCallback<E> callback, Executor executor) {\n executor.execute(new Runnable() {\n public void run() {\n try {\n Object resp = resolveResponse(response);\n if (resp == null || !(resp instanceof Throwable)) {\n ...
"private boolean _isAttributeCopied(Attribute attribute) {\n if (!attribute.isPersistent() || attribute instanceof GTAttribute || attribute instanceof GTEntity) {\n return false;\n }\n if (attribute instanceof Director || attribute instanceof Variable || attribute instanceof VisibleAttribute) {\n ...
"public static boolean patternRule(IndicatorEnum indicatorType, TdColumn column) {\n int javaType = column.getJavaType();\n DataminingType dataminingType = MetadataHelper.getDataminingType(column);\n if (dataminingType == null) {\n dataminingType = MetadataHelper.getDefaultDataminingType(javaType);\n ...
"public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer entityPlayer) {\n if (!world.isRemote)\n entityPlayer.openGui(ModMinechem.INSTANCE, GuiHandler.GUI_ID_JOURNAL, world, entityPlayer.chunkCoordX, entityPlayer.chunkCoordY, entityPlayer.chunkCoordY);\n NBTTagCompound tag...
"public static String[] convert(String preferenceValue) {\n String preferenceValueCopy = PREFERENCE_DELIMITER + preferenceValue;\n String replaceString = PREFERENCE_DELIMITER + PREFERENCE_DELIMITER;\n String regrex = PREFERENCE_DELIMITER + SPACE + PREFERENCE_DELIMITER;\n while (preferenceValueCopy.indexOf(r...
"private void updateAxisTitleLocationNLabelSize(final OneAxis axPV, final int iYTitleLocation, double dYAxisTitleThickness, double dWTotal, double dX, double dX1, double dX2) {\n if (axPV.isShowLabels() && axPV.getScale().isCategoryScale()) {\n AutoScale.AxisLabelInfo ali = axPV.getScale().getAxisLabelInfo();...
"public static <T extends GenericHandler> Object runAnnotated(T handler, Class<? extends Servlet> servletClass, Class<? extends Annotation> annotationClass) {\n HandlerMeta meta = HandlerMeta.get(handler.getClass(), servletClass);\n HandlerMethod method = meta.methodsMap.get(annotationClass);\n if (method == n...
"public void movePosition(SMS sms, int positionDelta) {\n Validate.notNull(sms, \"String_Node_Str\");\n String gateway = sms.getGateway();\n synchronized (queue) {\n if (positionDelta == 0 || !queue.containsKey(gateway) || !queue.get(gateway).contains(sms)) {\n return;\n }\n log...
"protected long getPageAddress(int page) {\n return mapWritePage(page);\n}\n"
"private static void getAliasToDeployloymentPolicyIdMapFromChildGroupContexts(Map<String, String> aliasToDeploymentPolicyIdMap, GroupContext[] groupContexts) {\n if (groupContexts != null && groupContexts.length != 0) {\n for (GroupContext groupContext : groupContexts) {\n if (groupContext != null)...
"public void drawScreen(int mouseX, int mouseY, float par3) {\n updateList.drawScreen(mouseX, mouseY, par3);\n if (openUpdate != null) {\n changeLogList.drawScreen(mouseX, mouseY, par3);\n }\n this.fontRendererObj.drawSplitString(StatCollector.translateToLocal(Strings.INFO).replace(\"String_Node_Str\...
"public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana, Cost costToPay) {\n Player controller = game.getPlayer(controllerId);\n if (controller != null) {\n int currentLife = controller.getLife();\n int lifeToPay = (currentLife + currentLife % 2) / 2;\n ...
"public static String getFileCharset(File file) throws IOException {\n String encoding = null;\n externalSubsLang = null;\n try (InputStream in = new BufferedInputStream(new FileInputStream(file))) {\n CharsetDetector detector = new CharsetDetector();\n detector.enableInputFilter(true);\n ...
"public boolean equals(Object o) {\n if (o == null)\n return isEmpty();\n if (!(o instanceof Credentials))\n return false;\n Credentials credentials = (Credentials) o;\n return credentials.login.equals(this.login);\n}\n"
"private static Driver getClassDriverFromSQLExplorer(String driverClassName) throws InstantiationException, IllegalAccessException {\n Driver driver = null;\n if (Platform.isRunning()) {\n SQLExplorerPlugin sqlExplorerPlugin = SQLExplorerPlugin.getDefault();\n if (sqlExplorerPlugin != null) {\n ...
"private Card getRandomCard(final int position) {\n String title = \"String_Node_Str\" + (position + 1);\n String description = \"String_Node_Str\";\n int type = position % 6;\n final Card card;\n Drawable icon;\n switch(type) {\n case 0:\n card = new SmallImageCard(this);\n ...
"public Entity copy(final Entity performerEntity) {\n Entity entityCopy = null;\n if (getEntity() instanceof EntityAwareCopyPerformers) {\n entityCopy = ((EntityAwareCopyPerformers) getEntity()).copy(performersChain);\n } else {\n entityCopy = getEntity().copy();\n }\n return entityCopy;\n}...
"protected void handleActionSync(int numOfPages, Context context, DeviceTransport serialDriver) {\n boolean broadcastSent = false;\n AndroidPreferences preferences = new AndroidPreferences(context);\n Tracker tracker = ((Nightscout) context).getTracker();\n PowerManager pm = (PowerManager) context.getSystem...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n String[] programIdParts = arguments.get(elementType.getArgumentName().toString()).split(\"String_Node_Str\");\n String appId = programIdParts[0];\n String startString = arguments.get(ArgumentName.START_TIME.toString(), \"String_...
"public static String doRequestPost(String url, Bundle params) {\n ArrayList<BasicNameValuePair> paramsList = new ArrayList<BasicNameValuePair>();\n BasicNameValuePair paramPair;\n if (params != null) {\n for (String key : params.keySet()) {\n paramPair = new BasicNameValuePair(key, params.ge...
"public void testDataset() throws Exception {\n String datasetName = PREFIX + \"String_Node_Str\";\n DatasetTypeClient datasetTypeClient = new DatasetTypeClient(cliConfig.getClientConfig());\n DatasetTypeMeta datasetType = datasetTypeClient.list().get(0);\n testCommandOutputContains(cli, \"String_Node_Str\"...
"public IGroovySuggestion addSuggestion(SuggestionDescriptor descriptor) {\n String declaringTypeName = descriptor.getDeclaringTypeName();\n GroovySuggestionDeclaringType declaringType = suggestions.get(declaringTypeName);\n if (declaringType == null) {\n declaringType = new GroovySuggestionDeclaringTyp...
"public void resetDisplay() {\n if (multAln != null && transformedAtoms != null) {\n String script = getJmolString(multAln, transformedAtoms, colorPalette, colorByBlocks.isSelected());\n evalString(script);\n jmolPanel.evalString(\"String_Node_Str\");\n }\n}\n"
"public void run() {\n IApplicationWizardDelegate providerDelegate = ApplicationWizardRegistry.getWizardProvider(appModule.getLocalModule());\n if (providerDelegate == null) {\n CloudFoundryPlugin.logError(\"String_Node_Str\" + appModule.getApplicationId() + \"String_Node_Str\" + server.getServer().getName...
"private void setlayoutForLatestImageReceived() {\n if (cameraRelativeLayout.indexOfChild(loadingAnimation) >= 0) {\n loadingAnimation.setVisibility(View.GONE);\n cameraRelativeLayout.removeView(loadingAnimation);\n }\n if (!evercamCamera.isActive()) {\n greyImageShown();\n gradient...
"private void processRelations(ArtifactEvent artifactEvent, boolean handledConfigReload) {\n if (!handledConfigReload) {\n for (EventBasicGuidRelation guidRel : artifactEvent.getRelations()) {\n try {\n RelationType typeByGuid = RelationTypeManager.getTypeByGuid(guidRel.getRelTypeGui...
"private void invitations(DO todo) {\n File file = new File(folder, \"String_Node_Str\");\n if (todo == DO.SAVE) {\n file.delete();\n Yamler pc = new Yamler(file);\n for (Guild guild : GuildUtils.getGuilds()) {\n List<InvitationList.Invitation> invitationList = InvitationList.getIn...
"public String getResolvedResourceName(final boolean mustExist) throws IOException {\n try {\n return resolveNameToPath(conf, getResourceName(), providerProperties, mustExist, true).toUri().toString();\n } catch (IllegalArgumentException e) {\n throw new IOException(e);\n }\n}\n"
"public Text parse() throws InvalidStructureException, IOException, XmlPullParserException {\n Vector<Text> texts = new Vector<Text>();\n checkNode(\"String_Node_Str\");\n int entryLevel = parser.getDepth();\n try {\n parser.next();\n } catch (XmlPullParserException e) {\n e.printStackTrace...
"JsonObject makeRequest(String method, Map<String, String> parameters) {\n if (BuildConfig.DEBUG) {\n Log.d(TAG, \"String_Node_Str\" + method + (parameters != null ? \"String_Node_Str\" + parameters.toString() : \"String_Node_Str\"));\n }\n if (key.length() == 0 || secret.length() == 0) {\n retur...
"protected int doProcess(Buffer inputBuffer, Buffer outputBuffer) {\n int inputLength = inputBuffer.getLength();\n byte[] input = (byte[]) inputBuffer.getData();\n int inputOffset = inputBuffer.getOffset();\n if ((prevInputLength != 0) || (inputLength < this.inputLength)) {\n int bytesToCopy = this.i...
"protected void waitForAPIUnDeploymentSync(String apiProvider, String apiName, String apiVersion, String expectedResponse) throws IOException, XPathExpressionException {\n long currentTime = System.currentTimeMillis();\n long waitTime = currentTime + WAIT_TIME;\n if (executionMode.equalsIgnoreCase(String.value...
"public boolean hasWork() {\n checkRecipe();\n checkFuel();\n boolean hasRecipe = currentRecipe != null;\n boolean hasFuel = fuelBurnTime > 0;\n boolean hasResource = fermentationTime > 0 || getStackInSlot(InventoryFermenter.SLOT_RESOURCE) != null;\n boolean hasFluidResource = resourceTank.canDrain(fe...
"public RouterDto get(String id) throws NotFoundException {\n return getItem(new ApiObjectId(id));\n}\n"
"public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (!automaticChange) {\n playerActionPerformed(evt);\n }\n}\n"
"public void updateBinaryRepresenation() {\n final int firstModified = this.firstModifiedPos;\n final int numFields = this.numFields;\n if (firstModified >= numFields) {\n return;\n }\n final int[] offsets = this.offsets;\n if (this.serializer == null) {\n this.serializer = new InternalD...
"void scheduleHeartbeatTimerTask() {\n final int TIMEOUT = config.getConnectionTimeout();\n heartbeatTimer.schedule(new TimerTask() {\n public void run() {\n long diff = Clock.currentTimeMillis() - client.getInRunnable().lastReceived;\n try {\n if (diff >= TIMEOUT / 5 &...
"public void testForget() {\n final int numVertices = 500;\n final int numEdges = 2000;\n final int targetVertices = numVertices / 2;\n final int targetEdges = numEdges / 2;\n OCMind m = new OCMind();\n printMemory(\"String_Node_Str\");\n new RandomGraphGenerator(m, numVertices, numEdges);\n ass...
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlChoiceCollectionMapping.isReadOnly()) {\n return false;\n }\n Object value = xmlChoiceCollectionMapping.getAttributeValueFromObjec...
"public final QueryMeta statement() throws RecognitionException {\n QueryMeta qMeta = null;\n Token id = null;\n Token dir = null;\n Token l = null;\n Token s1 = null;\n Token s2 = null;\n Token s = null;\n Having h = null;\n PostAggItem p = null;\n qMeta = GroupByQueryMeta.promote(new Que...
"private void createInputArea(Composite parent) {\n inputArea = new Composite(parent, SWT.NONE);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n inputArea.setLayoutData(gd);\n GridLayout gl = new GridLayout();\n gl.numColumns = 2;\n inputArea.setLayout(gl);\n title = new Label(inputArea, ...
"private int getOffsetLoc(Chunk c) {\n return (c.getX() & 31) + (c.getZ() & 31) * 32;\n}\n"