content
stringlengths
40
137k
"private Clip prepareClip(InputStream ais) throws PlaySoundException {\n if (!(ais instanceof AudioInputStream)) {\n throw new PlaySoundException(new IllegalArgumentException(\"String_Node_Str\" + ais));\n }\n try {\n final Line.Info linfo = new Line.Info(Clip.class);\n final Line line = A...
"private void registerOutputParams(IBaseDataSetDesign dataSetDesign, Scriptable scope) throws BirtException {\n String dataSetName = dataSetDesign.getName();\n for (int i = 0; i < dataSetDesign.getParameters().size(); i++) {\n if (((IParameterDefinition) dataSetDesign.getParameters().get(i)).isOutputMode()...
"public void testWeekdayAndLastExecution() {\n final Cron cron = getUnixCron(\"String_Node_Str\");\n final Optional<ZonedDateTime> lastExecution = getLastExecutionFor(cron, ZonedDateTime.parse(\"String_Node_Str\"));\n if (lastExecution.isPresent()) {\n assertEquals(ZonedDateTime.parse(\"String_Node_Str\...
"public boolean isInactive(Ability source, Game game) {\n if (game.getPhase().getStep().getType() == PhaseStep.UNTAP && game.getStep().getStepPart() == Step.StepPart.PRE) {\n if (game.getActivePlayerId().equals(source.getControllerId())) {\n return true;\n }\n }\n return false;\n}\n"
"public void in_floatNotNull() {\n doTestForInFloat(NoPrimaryKeyNullTypes.FIELD_FLOAT_NOT_NULL);\n try {\n realm.where(NoPrimaryKeyNullTypes.class).not().in(NoPrimaryKeyNullTypes.FIELD_FLOAT_NOT_NULL, new Float[] { 1.2345f + 1, null, 1.2345f + 2 }).findAll();\n fail();\n } catch (IllegalArgumentE...
"public void processMessage(QBRoomChat roomChat, QBChatMessage chatMessage) {\n Friend friend = DatabaseManager.getFriendById(context, chatMessage.getSenderId());\n String attachURL = getAttachUrlIfExists(chatMessage);\n saveMessageToCache(new DialogMessageCache(roomChat.getJid(), chatMessage.getSenderId(), ch...
"private void printXmlFileContetIfPresentInDonwloadedFile(Path downloadFilePath) {\n try {\n List<String> fileContent = Files.readAllLines(downloadFilePath, StandardCharsets.UTF_8);\n if (fileContent.get(0).startsWith(\"String_Node_Str\")) {\n mojo.getLog().info(\"String_Node_Str\");\n ...
"protected PhoneStatusBarView makeStatusBarView() {\n final Context context = mContext;\n updateDisplaySize();\n updateResources();\n inflateStatusBarWindow(context);\n mStatusBarWindow.setService(this);\n mStatusBarWindow.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch...
"private Class<?>[] detectRemoteInterfaces(Class<?> objClass) throws IOException {\n Class<?>[] result;\n List<Class<?>> iflist = new ArrayList<Class<?>>();\n collect(iflist, objClass);\n Iterator<Class<?>> it = iflist.iterator();\n while (it.hasNext()) {\n Class intf = it.next();\n if (!is...
"public int totalFramesPending() {\n return writeQueue.size() + priorityWriteQueue.size();\n}\n"
"public void windowDeiconified(WindowEvent arg0) {\n windowIconified(arg0);\n}\n"
"private List onQueryOverCompositeColumns(EntityMetadata m, Client client, MetamodelImpl metaModel, List<String> relations) {\n List<Object> result = new ArrayList<Object>();\n Class compoundKeyClass = m.getIdAttribute().getBindableJavaType();\n EmbeddableType compoundKey = metaModel.embeddable(m.getIdAttribut...
"public Map<String, Object> getProperties() {\n if (properties == null) {\n properties = new CopyOnWriteHashMap<String, Object>();\n }\n return properties;\n}\n"
"public List<TLink> annotate(SieveDocument doc, List<TLink> currentTLinks) {\n List<List<Timex>> allTimexes = this.allTimexesBySentencePair(doc.getTimexesBySentence());\n List<TLink> proposed = new ArrayList<TLink>();\n Timex creationTime = (doc.getDocstamp() == null || doc.getDocstamp().isEmpty()) ? null : do...
"public ITextViewer getITextView() {\n Assert.isNotNull(this.textViewer, \"String_Node_Str\");\n return this.textViewer;\n}\n"
"public Blob moveTo(final URI toUri, final Map<String, String> hints) throws DuplicateBlobException, IOException, MissingBlobException {\n log.debug(\"String_Node_Str\" + this.getId().toASCIIString() + \"String_Node_Str\" + toUri.toASCIIString());\n if (!this.exists()) {\n throw new MissingBlobException(ur...
"public Iterator<CheckException> iterator() {\n return new Iterator<CheckException>() {\n CheckException next;\n\n {\n this.curr = CheckException.this.other;\n }\n public boolean hasNext() {\n return (this.curr != null) && (this.curr.other != null);\n }\n ...
"public void writeMORPHGRADIENT(MORPHGRADIENT value, int shapeNum) throws IOException {\n writeUI8(value.gradientRecords.length + value.numGradientsExtra);\n for (int i = 0; i < value.gradientRecords.length; i++) {\n writeMORPHGRADRECORD(value.gradientRecords[i]);\n }\n}\n"
"public void printPacket(PrintStream out) {\n if (valid) {\n out.print(\"String_Node_Str\" + len + \"String_Node_Str\");\n for (int i = 0; i < len; i++) {\n out.printf(\"String_Node_Str\", payload[i] & 0xff);\n if ((i & 3) == 3) {\n out.print(\"String_Node_Str\");\n...
"protected void buildProperties(IContent content, LayoutContext context) {\n IStyle style = content.getComputedStyle();\n boxStyle = new BoxStyle();\n Color color = PropertyUtil.getColor(style.getProperty(IStyle.STYLE_BACKGROUND_COLOR));\n if (color != null) {\n boxStyle.setBackgroundColor(color);\n ...
"private void createMovedMethod() {\n AST ast = targetTypeDeclaration.getAST();\n MethodDeclaration newMethodDeclaration = (MethodDeclaration) ASTNode.copySubtree(ast, sourceMethod);\n ListRewrite modifierRewrite = targetRewriter.getListRewrite(newMethodDeclaration, MethodDeclaration.MODIFIERS2_PROPERTY);\n ...
"public void set(final World world, final int x, final int y, final int z, final int id, final byte data) {\n switch(id) {\n case 54:\n case 130:\n case 142:\n case 27:\n case 63:\n case 68:\n case 313:\n case 28:\n case 66:\n case 157:\n c...
"public void run() {\n sEventDispatcher.dispatchEvent(event);\n}\n"
"public ArgumentListBuilder getKwcheckRunCmd(EnvVars envVars, FilePath workspace, String diffList) throws IOException, InterruptedException {\n ArgumentListBuilder kwcheckRunCmd = new ArgumentListBuilder(\"String_Node_Str\", \"String_Node_Str\");\n kwcheckRunCmd.add(\"String_Node_Str\", getKwlpDir(workspace, envV...
"public void testDefInstance() throws PropertyException, InstantiationException {\n ComponentPropertyTest cpt = (ComponentPropertyTest) ConfigurationManager.getInstance(ComponentPropertyTest.class);\n Assert.assertTrue(cpt != null);\n Assert.assertTrue(cpt.dataProc instanceof AnotherDummyProcessor);\n}\n"
"private String getClientInfo() {\n String path = \"String_Node_Str\";\n try {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"String_Node_Str\");\n Date currentTime = new Date();\n if (arcus17)\n path = REPL_CLIENT_INFO_PATH;\n else\n path = ARCUS_BA...
"protected void createSecurityPolicyFile(File directory) {\n ArgumentNotValid.checkNotNull(directory, \"String_Node_Str\");\n try {\n File secPolFile = new File(directory, Constants.SECURITY_POLICY_FILE_NAME);\n FileWriter secfw = new FileWriter(secPolFile);\n String prop = FileUtils.readFile...
"public IJavaCompletionProposal createJavaProposal(ContentAssistContext context, JavaContentAssistInvocationContext javaContext) {\n GroovyCompletionProposal proposal = new GroovyCompletionProposal(CompletionProposal.METHOD_REF, context.completionLocation);\n proposal.setCompletion(completionName());\n proposa...
"public void ResetSelection() {\n elementSelectionManager.clearSelections();\n fRectangleDragStartPoint = new float[3];\n fRectangleDragEndPoint = new float[3];\n bUpdateAll = true;\n setDisplayListDirty();\n}\n"
"public void removeElementsThatCantBeReachedFrom(Element element) {\n if (element != null) {\n Set<String> elementIdsToShow = new HashSet<>();\n Set<String> elementIdsVisited = new HashSet<>();\n findElementsToShow(element, element, elementIdsToShow, elementIdsVisited);\n elementViews.rem...
"private void processMapping(Mapping mapping, Class clazz, PropertyAccessorFactory propertyAccessorFactory) throws MappingException {\n if (!(mapping instanceof ObjectMapping)) {\n return;\n }\n ObjectMapping objectMapping = (ObjectMapping) mapping;\n objectMapping.setObjClass(clazz);\n PropertyAc...
"private QueryModel parseJoin(CharSequence tok, QueryModel.JoinType type) throws ParserException {\n QueryModel joinModel = queryModelPool.next();\n joinModel.setJoinType(type);\n if (!Chars.equals(tok, \"String_Node_Str\")) {\n expectTok(tok(), \"String_Node_Str\");\n }\n tok = tok();\n if (Ch...
"public int minWidth() {\n return Math.max(super.minWidth(), 6);\n}\n"
"public void align4() throws IOException {\n int extra = 4 - (bytesWritten % 4);\n if (extra > 0 && extra != 4) {\n write(new byte[extra]);\n }\n}\n"
"public RpslObject lookup(final ObjectType objectType, final String pkey, final String... passwords) {\n try {\n final WhoisResources whoisResources = client.target(String.format(\"String_Node_Str\", restApiUrl, sourceName, objectType.getName(), pkey, joinQueryParams(createQueryParams(\"String_Node_Str\", pas...
"public StatsResult getStats(InetSocketAddress target) throws InterruptedException {\n return this.getStats(target, null);\n}\n"
"private FieldMapper<S, T>[] fields() {\n final List<FieldMapper<S, T>> fields = new ArrayList<FieldMapper<S, T>>();\n propertyMappingsBuilder.forEachProperties(new ForEachCallBack<PropertyMapping<T, ?, K, FieldMapperColumnDefinition<K>>>() {\n public void handle(PropertyMapping<T, ?, K, FieldMapperColumnD...
"public <C> Span handleSend(TraceContext.Injector<C> injector, C carrier, Req request, Span span) {\n injector.inject(span.context(), carrier);\n if (span.isNoop())\n return span;\n span.kind(Span.Kind.CLIENT);\n Tracer.SpanInScope ws = tracer.withSpanInScope(span);\n try {\n parser.request...
"public boolean reindexRepository(final String projectKey, final String repositorySlug) {\n GlobalSettings globalSettings = settingsManager.getGlobalSettings();\n if (!globalSettings.getIndexingEnabled()) {\n log.warn(\"String_Node_Str\");\n return false;\n }\n log.warn(\"String_Node_Str\", pr...
"private static Class<? extends CloudMetadata> subclassFor(Class<? extends CloudMetadata> metadataInstance) {\n return metadataClassMap.getUnchecked(metadataInstance);\n}\n"
"Object resolveObject(final DBRef dbRef, final MappedField mf, EntityCache cache, Mapper mapr) {\n Key key = mapr.createKey(mf.isSingleValue() ? mf.getType() : mf.getSubClass(), dbRef.getId());\n Object cached = cache.getEntity(key);\n if (cached != null)\n return cached;\n BasicDBObject refDbObject ...
"public static MarkerOptions build(Home home) {\n return new MarkerOptions().position(home.getCoord()).visible(home.isValid()).title(\"String_Node_Str\").snippet(home.getAltitude().toString()).anchor((float) 0.5, (float) 0.5).icon(BitmapDescriptorFactory.fromResource(drawable.ic_menu_home)).title(\"String_Node_Str\"...
"protected void createAccumulators() throws DataException {\n AggregationFunctionDefinition[] aggregationFunctions = aggregation.getAggregationFunctions();\n if (aggregationFunctions != null) {\n this.accumulators = new Accumulator[aggregationFunctions.length];\n for (int i = 0; i < aggregationFunct...
"public NeoProfile run(NeoProfiler parent) {\n NodesProfile p = new NodesProfile();\n List<Object> labels = runQueryMultipleResult(parent, \"String_Node_Str\", \"String_Node_Str\");\n for (Object l : labels) {\n String labelTxt = \"String_Node_Str\" + l;\n if (labelTxt != null && !\"String_Node_S...
"protected boolean checkCorners(World world, BlockPos pos, byte rotation) {\n int xFar = pos.getX() + ((rotation % 2 == 0) ? this.width : this.length) - 1;\n int zFar = pos.getZ() + ((rotation % 2 == 0) ? this.length : this.width) - 1;\n BlockPos corner1 = world.getTopSolidOrLiquidBlock(pos).down();\n Block...
"private Quaternion slerp(Quaternion q0, Quaternion q1, float alpha) {\n q0 = new Quaternion(q0);\n q1 = new Quaternion(q1);\n float dot = q0.dot(q1);\n float DOT_THRESHOLD = 0.9995f;\n if (dot > DOT_THRESHOLD)\n return lerp(q0, q1, alpha);\n dot = clamp(dot, -1, 1);\n float theta = (float) ...
"public void onStatus(Status status) {\n System.out.println(\"String_Node_Str\" + status.getUser().getScreenName() + \"String_Node_Str\" + status.getText());\n if (status.isRetweet()) {\n System.out.println(\"String_Node_Str\");\n } else if (filterKeywords && !hasKeyword(status.getText())) {\n Sy...
"public boolean execute(ScriptEntry theEntry) throws CommandException {\n if (theEntry.getDelayedTime() > theEntry.getInitiatedTime()) {\n if (plugin.debugMode)\n plugin.getLogger().log(Level.INFO, \"String_Node_Str\");\n return true;\n }\n QueueType queueToHold = theEntry.sendingQueue...
"public static DefaultFeatureType universityCity() {\n return new DefaultFeatureType(name(\"String_Node_Str\"), false, new DefaultFeatureType[] { city() }, DefaultAttributeTypeTest.universities());\n}\n"
"public void stop() {\n leaveCluster();\n String command = format(\"String_Node_Str\", getRiakCmd());\n command = isPackageInstall ? \"String_Node_Str\" + command : command;\n ScriptHelper stopScript = newScript(STOPPING).failOnNonZeroResultCode().body.append(command);\n if (!isRiakOnPath) {\n Map...
"private void addComplexTypeDetails(XSDSchema xsdSchema, ATreeNode node, XSDTypeDefinition xsdTypeDefinition, String prefix, String namespace, String currentPath) throws OdaException, IllegalAccessException, InvocationTargetException {\n String prefixToUse = prefix;\n if (namespace != null && !namespaceToPrefix.c...
"public void run(IProgressMonitor monitor) {\n TableItem[] loopTableItems = loopTableEditorView.getTable().getItems();\n TableItem[] fieldsTableItems = fieldsTableEditorView.getTable().getItems();\n monitorWrap = new EventLoopProgressMonitor(monitor);\n String taskName = \"String_Node_Str\";\n int totalW...
"public StackDescription describeStackWithResources(User user, Stack stack, Credential credential) {\n AwsTemplate awsInfra = (AwsTemplate) stack.getTemplate();\n AwsCredential awsCredential = (AwsCredential) credential;\n DescribeStacksResult stackResult = null;\n DescribeStackResourcesResult resourcesResu...
"public boolean accept(RegisteredAddon addon) {\n return Status.WAITING.equals(addon.getStatus());\n}\n"
"private void checkReplaceTransformations() {\n Set<Transformation> mappings = mapper.getMapping().getMappings();\n mappings.stream().filter(t -> {\n return (t instanceof SkipWhenNullTransformation);\n }).map(t -> {\n return (ReplaceTransformation) t;\n }).forEach(replace -> {\n Optiona...
"private int find(long key) {\n int theHashCode = (int) key & 0x7FFFFFFF;\n long[] keys = this.keys;\n int hashSize = keys.length;\n int jump = 1 + theHashCode % (hashSize - 2);\n int index = theHashCode % hashSize;\n long currentKey = keys[index];\n while ((currentKey != NULL) && (key != currentKe...
"public void doSave(DataOutputStream outputStream, DataOutputStream rowLensStream, Map<String, StringTable> stringTable, Map<String, IIndexSerializer> index, List<IBinding> cacheRequestMap) throws DataException {\n DataOutputStream dos = new DataOutputStream(outputStream);\n Set resultSetNameSet = ResultSetUtil.g...
"private void addWebApplication(String webapp) throws IOFailure, ArgumentNotValid, PermissionDenied {\n if (!new File(webapp).exists()) {\n throw new IOFailure(\"String_Node_Str\" + webapp + \"String_Node_Str\");\n }\n String webappFilename = new File(webapp).getName();\n String webbase = \"String_No...
"protected void addTypeAttribute(XMLDescriptor descriptor, MarshalRecord marshalRecord, String schemaContext) {\n String typeValue = schemaContext.substring(1);\n String xsiPrefix = null;\n if (descriptor.getNamespaceResolver() != null) {\n xsiPrefix = descriptor.getNamespaceResolver().resolveNamespaceU...
"private void addContentRules(List<ContentRule> rules) {\n if (null != rules) {\n for (ContentRule rule : rules) {\n EventMatchCondition condition = new EventMatchCondition();\n condition.kind = Condition.KIND_EVENT_MATCH;\n condition.key = \"String_Node_Str\";\n co...
"protected void onExecuteStart(ExecutableContext executableContext) {\n final Output output = jobService.getOutput(getId());\n if (output.getExtra().containsKey(START_TIME)) {\n final String mrJobId = output.getExtra().get(ExecutableConstants.MR_JOB_ID);\n if (mrJobId == null) {\n jobServ...
"private List<DispoItem> createItems(Map<String, DispoItem> exisitingItems, OperationReport report) {\n List<DispoItem> toReturn;\n Collection<DispoItemData> values = datIdToItem.values();\n for (DispoItemData item : values) {\n dataFactory.initDispoItem(item);\n item.setTotalPoints(String.valueO...
"public void setLabel(String newLabel) {\n String oldLabel = label;\n label = newLabel;\n String COLUMN_NAME_PATTERN = \"String_Node_Str\";\n if (!StringUtils.isEmpty(newLabel) && name != null ? Pattern.matches(COLUMN_NAME_PATTERN, name) : true) {\n setName(newLabel);\n }\n if (eNotificationReq...
"private void loadSettings() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n mVibrateOn = sp.getBoolean(PREF_VIBRATE_ON, false);\n mSoundOn = sp.getBoolean(PREF_SOUND_ON, false);\n mPopupOn = sp.getBoolean(PREF_POPUP_ON, mResources.getBoolean(R.bool.default_popup_preview));...
"private IResultObject getConvertedResultObject(IResultObject resultObject) throws DataException {\n if (resultObject == null)\n return null;\n if (columnIndexListForTypeConvert == null)\n return resultObject;\n Object[] obj = new Object[resultClass.getFieldCount()];\n for (int i = 1; i <= res...
"public Composite getComponent(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.POPUP_SERIES_PALETTE);\n Composite cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glContent = new GridLayout();\n glContent.marginHeight = 7;\n glContent.marginWidth = 7;\n...
"public void onServiceAdded(final int gattStatus, final BluetoothGattService service) {\n if (m_cancelledInTheMiddleOfExecuting) {\n final BluetoothGattServer server_native_nullable = getServer().getNative();\n if (server_native_nullable != null) {\n server_native_nullable.removeService(serv...
"public void doWork() throws Exception {\n URI targetUri = UriBuilder.fromUri(uri).path(\"String_Node_Str\").path(\"String_Node_Str\").queryParam(\"String_Node_Str\", filePath).build();\n Response response = factory.target(targetUri).request(MediaType.APPLICATION_XML).get();\n if (response.getStatus() == Statu...
"public JsonResult delete(String ids) {\n List<Long> dels = ConvertUtil.str2longs(ids);\n dictService.batchDelCoreDict(dels);\n return new JsonResult().success();\n}\n"
"public static List<Config> parseConfigs(String configsRespStr) throws JSONException {\n if (configsRespStr == null) {\n return null;\n }\n ArrayList<Config> resultList = null;\n JSONObject configs = new JSONObject(configsRespStr);\n resultList = new ArrayList<Config>();\n Config tempConfig = n...
"public void onEntityDamage(EntityDamageEvent event) {\n if (event.isCancelled())\n return;\n if (event instanceof EntityDamageByEntityEvent) {\n Entity entity = event.getEntity();\n Entity damager = ((EntityDamageByEntityEvent) event).getDamager();\n if (damager instanceof Projectile)...
"protected static String generateDocumentFromReport(HttpServletRequest request) {\n String fileName = getReport(request, null);\n if (fileName.indexOf('.') >= 0) {\n fileName = fileName.substring(0, fileName.lastIndexOf('.'));\n }\n String id = getParameter(request, PARAM_ID);\n if (id != null && ...
"public boolean hasFlag(char flag) {\n return channelmodes.containsKey(flag);\n}\n"
"public void addSitesToMap(SitePointList points) {\n if (markerMgr == null) {\n OverlayManagerOptions options = new OverlayManagerOptions();\n options.setMaxZoom(map.getCurrentMapType().getMaximumResolution());\n markerMgr = new MarkerManagerImpl(map, options);\n } else {\n for (Marker...
"private void connectTransaction(Transaction tx) {\n checkState(lock.isHeldByCurrentThread());\n if (tx.getConfidence().getConfidenceType() != ConfidenceType.BUILDING)\n return;\n if (log.isInfoEnabled())\n log.info(\"String_Node_Str\", tx.getHash());\n for (TransactionInput txi : tx.getInputs...
"private void processBuf() throws IOException {\n int readBytes = 0;\n if (state == State.START || state == State.HEADERS) {\n String[] lines = new String(buf, 0, bufLimit).split(\"String_Node_Str\", -1);\n if (lines.length <= 1) {\n return;\n }\n for (int i = 0; i < lines.l...
"public SAFA<P, S> simplify(BooleanAlgebra<P, S> ba) throws TimeoutException {\n Distance distance = computeDistances();\n BooleanExpressionFactory<PositiveBooleanExpression> boolexpr = getBooleanExpressionFactory();\n BooleanExpressionMorphism<PositiveBooleanExpression> simplify = new BooleanExpressionMorphis...
"private Tuple<String[], Symbol[]> convertAssignments(Map<Reference, Symbol> assignments) {\n String[] assignmentColumns = new String[assignments.size()];\n Symbol[] assignmentSymbols = new Symbol[assignments.size()];\n Iterator<Reference> it = assignments.keySet().iterator();\n int i = 0;\n for (Map.Ent...
"private List<CFGNode> process(List<CFGNode> previousNodes, CompositeStatementObject composite) {\n if (composite instanceof TryStatementObject) {\n CFGTryNode tryNode = new CFGTryNode(composite);\n directlyNestedNodeInTryBlock(tryNode);\n findTryNodeControlParent(tryNode);\n directlyNest...
"public Object updateTopicView(PrestoContext context, TopicView topicView, boolean returnParent) {\n PrestoContextRules rules = getPrestoContextRules(context);\n Status status = new Status();\n topicView = processor.preProcessTopicView(topicView, rules, status);\n if (status.isValid()) {\n PrestoTopi...
"public boolean incrementToken() throws IOException {\n resetCounter = 0;\n if (!input.incrementToken()) {\n addTokensToSynMap();\n return false;\n }\n if (authorInput != null && tokenTypes.contains(typeAtt.type())) {\n tokenBuffer.add(termAtt.toString());\n if (emitTokens) {\n ...
"protected void delete() {\n if (list.getSelection().size() == 0)\n return;\n multiClipboard.clear();\n int pos = list.getSelectedIndex();\n for (Action e : getSortedSelection()) {\n if (e instanceof EndAction)\n continue;\n list.getItems().removeValue(e, true);\n int ...
"public void enterForScope(String scope, PtalonAST forBlock, PtalonPopulator populator) throws PtalonRuntimeException {\n enterIfScope(scope);\n _currentIfTree.forBlock = forBlock;\n _currentIfTree.populator = populator;\n}\n"
"public void execute(Event<UIDisplayProfileList> event) throws Exception {\n UIDisplayProfileList uiAllPeople = event.getSource();\n uiAllPeople.loadSearch();\n uiAllPeople.setLoadAtEnd(false);\n}\n"
"private void send(MemoryStream buf) throws Exception {\n OutputStream os = sock.getOutputStream();\n os.write(buf.toArray());\n os.flush();\n}\n"
"public void inject2Instance(Object object, String fileName) {\n DisconfCenterFile disconfCenterFile = DisconfCenterStore.getInstance().getConfFileMap().get(fileName);\n if (disconfCenterFile == null) {\n LOGGER.error(\"String_Node_Str\" + fileName + \"String_Node_Str\");\n return;\n }\n if (o...
"public void execute() {\n try {\n UserVm userVm = _userVmService.moveVMToUser(this);\n if (userVm == null) {\n throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, \"String_Node_Str\");\n }\n UserVmResponse response = _responseGenerator.createUserVmResponse(\"String_Node_...
"public void run() {\n if (mapContainer.hasMemberNearCache()) {\n NearCacheProvider nearCacheProvider = mapServiceContext.getNearCacheProvider();\n NearCacheInvalidator nearCacheInvalidator = nearCacheProvider.getNearCacheInvalidator();\n ((AbstractNearCacheInvalidator) nearCacheInvalidator).inv...
"public void setReasoner() {\n this.reasoner = cm.reasoner(FastInstanceChecker.class, sources);\n try {\n reasoner.init();\n reasoner.isSatisfiable();\n view.setIsInconsistent(false);\n isReasonerSet = true;\n } catch (ComponentInitException e) {\n System.out.println(\"String...
"public static void gunzipFiles(File fromDir, File toDir) {\n ArgumentNotValid.checkNotNull(fromDir, \"String_Node_Str\");\n ArgumentNotValid.checkNotNull(toDir, \"String_Node_Str\");\n ArgumentNotValid.checkTrue(fromDir.isDirectory(), \"String_Node_Str\" + fromDir + \"String_Node_Str\");\n ArgumentNotValid...
"public TableStats tableStats(String table) throws BlurException, TException {\n ThriftCacheKey<TableStats> key = _thriftCache.getKey(table, getShards(table), null, TableStats.class);\n TableStats results = _thriftCache.get(key, TableStats.class);\n if (results != null) {\n return results;\n }\n r...
"public XMLUnmarshaller getXmlUnmarshaller() {\n return getXMLHelperDelegate().getXmlUnmarshaller();\n}\n"
"public IRenderOption getPreferredRenderOption() {\n PDFRenderOption renderOption = new PDFRenderOption();\n renderOption.setEmitterID(getID());\n renderOption.setOutputFormat(\"String_Node_Str\");\n for (IOptionValue optionValue : values) {\n if (optionValue != null) {\n renderOption.setO...
"public void readFromNBT(NBTTagCompound nbt) {\n super.readFromNBT(nbt);\n NBTTagList nbttaglist = nbt.getTagList(\"String_Node_Str\");\n for (int j = 0; j < nbttaglist.tagCount(); ++j) {\n try {\n NBTTagCompound dataTag = (NBTTagCompound) nbttaglist.tagAt(j);\n IPipedItem entity =...
"public QName getXSDTypeFromSDOType(Type aType) {\n return getTypeHelperDelegate().getXSDTypeFromSDOType(aType);\n}\n"
"public void cleanUpTestArtifact() {\n BranchManager.deleteBranch(testTopBranch);\n BranchManager.deleteBranch(testWorkingBranch);\n}\n"
"public void shouldSerializeAndDeserializeRowKey() throws Exception {\n String[] columnNames = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n Object[] values = { 123, \"String_Node_Str\", 456L };\n RowKey key = new RowKey(\"String_Node_Str\", columnNames, values, null);\n byte[] bytes ...
"public IndexMetadataBuilder withOptions(Map<Selector, Selector> opts) {\n options = new HashMap<Selector, Selector>(opts);\n return this;\n}\n"
"private List<NetworkVertex> extractExpressRun(RevenueTrainRun run, int length) {\n if (!run.hasAValidRun())\n return new ArrayList<NetworkVertex>();\n NetworkVertex baseVertex = run.getBaseVertex();\n List<NetworkVertex> otherVertices = new ArrayList<NetworkVertex>(run.getUniqueVertices());\n otherV...
"private void updatePositionsForState(StackScrollState resultState, StackScrollAlgorithmState algorithmState) {\n float bottomPeekStart = mInnerHeight - mBottomStackPeekSize;\n float bottomStackStart = bottomPeekStart - mCollapsedSize;\n float currentYPosition = 0.0f;\n float yPositionInScrollView = 0.0f;\n...