content
stringlengths
40
137k
"public void setValue(BindELContext ctx, Object value) {\n int index = BindChildRenderer.this.getRenderedIndex(owner, comp.getParent().getChildren().indexOf(comp));\n Collection<?> collection = (Collection<?>) owner.getAttribute(BindELContext.getModelName(owner));\n if (collection instanceof List<?>) {\n ...
"public boolean createEntity(Dao dao, Entity<?> en) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\" + en.getTableName() + \"String_Node_Str\");\n for (MappingField mf : en.getMappingFields()) {\n sb.append('\\n').append(mf.getColumnName());\n sb.append(' ').append(evalFieldType(mf));\n ...
"public List<Place> deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new TwitterModule());\n jp.setCodec(mapper);\n JsonNode treeNode = jp.readValueAs(JsonNode.class).get(\"String_Node_St...
"public static ColumnAlias columnsWithFunction(String functionName, ColumnAlias... columnAliases) {\n QueryBuilder queryBuilder = new QueryBuilder<>(functionName).append(\"String_Node_Str\");\n for (int i = 0; i < columnAliases.length; i++) {\n if (i > 0) {\n queryBuilder.append(\"String_Node_St...
"public OperationOutcome validate(String location, byte[] source, FhirFormat cntType, List<String> profiles) throws Exception {\n List<ValidationMessage> messages = new ArrayList<ValidationMessage>();\n if (doNative) {\n if (cntType == FhirFormat.JSON)\n validateJsonSchema(location, messages);\n...
"public boolean apply(Game game, Ability source) {\n Player you = game.getPlayer(source.getControllerId());\n FilterCard filter = new FilterCard(\"String_Node_Str\");\n filter.add(new CardTypePredicate(CardType.ARTIFACT));\n if (you != null && you.getHand().count(filter, game) > 0 && you.chooseUse(Outcome.D...
"private void processPresentations() throws RepositoryException {\n mLogger.debug(\"String_Node_Str\");\n Map<String, Presentation> tNewPresentations = new HashMap<String, Presentation>();\n Map<String, Long> tPathEntries = getChildrenRevisions(getLocation(\"String_Node_Str\"));\n for (Map.Entry<String, Lon...
"protected boolean end(final String uri, final String localName, final String qName) throws SAXException {\n if (vocabulary.isMetadata(localName)) {\n if (vocabularyVersion == null) {\n vocabularyVersion = \"String_Node_Str\";\n }\n WorkerLoad.this.vocabulary = Vocabulary.forVersion(v...
"public Instances createTrainingInstances() {\n ArrayList<Attribute> attributes = new ArrayList<Attribute>();\n for (int i = 1; i <= featureStack.getSize(); i++) {\n String attString = featureStack.getSliceLabel(i) + \"String_Node_Str\";\n attributes.add(new Attribute(attString));\n }\n final ...
"private boolean isUidALocationProvider(int uid) {\n if (uid == Process.SYSTEM_UID) {\n return true;\n }\n if (mGeocodeProvider != null) {\n if (doesUidHavePackage(uid, mGeocodeProvider.getConnectedPackageName()))\n return true;\n }\n for (LocationProviderProxy proxy : mProxyProv...
"public org.hl7.fhir.dstu2.model.NutritionOrder.NutritionOrderEnteralFormulaComponent convertNutritionOrderEnteralFormulaComponent(org.hl7.fhir.dstu3.model.NutritionRequest.NutritionRequestEnteralFormulaComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir....
"private List convertParamterBindings(Iterator paramBindingIt) {\n if (paramBindingIt == null)\n return null;\n List parameterBindings = new ArrayList();\n while (paramBindingIt.hasNext()) {\n Object paramObj = paramBindingIt.next();\n if (paramObj instanceof ParamBindingHandle) {\n ...
"public static boolean canPlaceBlockAt(World world, int x, int y, int z, ForgeDirection placeSide, int rot) {\n Vector3 pos = new Vector3(x, y, z);\n Block block = Block.blocksList[pos.getBlockID(world)];\n if (block == null || block.isBlockReplaceable(world, x, y, z)) {\n Vector3[] vecs = TileEntityMis...
"private File getFrameworkApk(int id, String frameTag) throws AndrolibException {\n File dir = getFrameworkDir();\n File apk;\n if (frameTag != null) {\n apk = new File(dir, String.valueOf(id) + '-' + frameTag + \"String_Node_Str\");\n if (apk.exists()) {\n return apk;\n }\n ...
"public void openTrace() throws JniException {\n if (tracepath == \"String_Node_Str\") {\n throw new JniTraceException(\"String_Node_Str\");\n }\n if (thisTracePtr.getPointer() != NULL) {\n closeTrace();\n }\n int newLibraryId = initializeLibrary();\n if (newLibraryId != -1) {\n l...
"public void run() {\n try {\n final String content = editorPart.getDocumentProvider().getDocument(editorPart.getEditorInput()).get();\n send(toID, new StartMessage(our, fName, toID, content, fileName));\n localStartShare(getLocalRosterManager(), our, our, toID, editorPart);\n } catch (final ...
"public Set<URI> findBaseURIs(String prefix) {\n Set<URI> result = new HashSet<URI>();\n Set<URI> urIs = findURIs(prefix);\n String path = packagePrefixToPath(prefix);\n for (URI urI : urIs) {\n String schemeSpecificPart = urI.getSchemeSpecificPart();\n int l = path.length();\n if (sche...
"public void registerSubscriber(RequestContext rc, Subscriber subscriber, Filter filter) {\n Class eClass = rc.elementType();\n if (eClass == Entry.class || eClass == MapEvent.class)\n registerSubscriber0(rc, subscriber, filter);\n else\n registerKeySubscriber(rc, subscriber, filter);\n}\n"
"private void requestBlogInfo(final long blogId) {\n if (!mHasBlogInfo) {\n showProgress();\n }\n ReaderActions.UpdateBlogInfoListener listener = new ReaderActions.UpdateBlogInfoListener() {\n\n public void onResult(ReaderBlogInfo blogInfo) {\n hideProgress();\n if (blogInfo...
"public void createGithubCommentOnRequestClaimed(final RequestClaimedEvent event) {\n if (addComment) {\n final RequestDto request = event.getRequestDto();\n final IssueInformationDto issueInformation = request.getIssueInformation();\n if (issueInformation.getPlatform() == Platform.GITHUB) {\n ...
"public String configFile() {\n String templateUrl = driver.getEntity().getConfig(NginxController.SERVER_CONF_TEMPLATE_URL);\n ResourceUtils.create(this).checkUrlExists(templateUrl);\n ProxySslConfig ssl = driver.getEntity().getConfig(NginxController.SSL_CONFIG);\n if (ssl != null && Strings.isEmpty(ssl.get...
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n TableCellRenderer r = table.getTableHeader().getDefaultRenderer();\n JLabel l = (JLabel) r.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n ...
"public FrequenciesState transformFrequencies(FrequenciesState fs, int offset, int powOf2NearestLength, int length) {\n int avg = 0;\n int nb = 0;\n for (int i = 1; i < 10; i++) {\n int f0 = FrequenciesHelper.f0(fs, i);\n int fk = FrequenciesHelper.loudestMultiple(fs, f0, 50, 1200);\n if (...
"final public static void fillAlignmentGap(Address start, Address end) throws InlinePragma {\n if ((MAX_ALIGNMENT - MIN_ALIGNMENT) == BYTES_IN_INT) {\n if (!end.diff(start).isZero()) {\n start.store(ALIGNMENT_VALUE);\n }\n } else {\n while (start.LT(end)) {\n start.store...
"public long getColumnLong() {\n return realmGetter$columnLong();\n}\n"
"private Object getEntityWithAssociationFromNode(EntityMetadata m, Node node) {\n Map<String, Object> relationMap = new HashMap<String, Object>();\n Map<Long, Object> nodeIdToEntityMap = new HashMap<Long, Object>();\n Object entity = mapper.getEntityFromNode(node, m);\n nodeIdToEntityMap.put(node.getId(), e...
"public void customColumnNameShouldBeUsableForRevisionProperty() throws Exception {\n Animal animal = createAndPersistAnimal();\n String newRevision = doConcurrentUpdateToAnimal();\n assertThat(newRevision).isNotEqualTo(animal.getRevision());\n Transaction transaction = session.beginTransaction();\n anim...
"public void onSuccess(OrgUnitDTOLight result) {\n if (result != null) {\n view.getStore().removeAll();\n view.getStore().add(result, true);\n new Timer() {\n public void run() {\n view.getTree().expandAll();\n }\n }.schedule(2000);\n }\n}\n"
"public IPAddressVO disassociatePortableIPToGuestNetwork(long ipId, long networkId) throws ResourceAllocationException, ResourceUnavailableException, InsufficientAddressCapacityException, ConcurrentOperationException {\n Account caller = CallContext.current().getCallingAccount();\n Account owner = null;\n Netw...
"private QueueView acquireQV() {\n if (qv != null)\n return qv;\n String path = \"String_Node_Str\" + localIdentifier;\n RequestContext requestContext = requestContext(path).elementType(NetworkStats.class);\n if (ChronicleQueueView.isQueueReplicationAvailable())\n requestContext.cluster(cluste...
"private Sequence getSequencePrivate(Property aProperty) {\n if ((aProperty != null) && ((SDOProperty) aProperty).getType().isSequenced() && isSet(aProperty) && !((SDOProperty) aProperty).getType().isDataType() && !aProperty.isMany()) {\n return ((DataObject) get(aProperty)).getSequence();\n } else {\n ...
"protected void showSelection() {\n JoinConditionEditPart part = (JoinConditionEditPart) this.getHost();\n ((ColumnConnection) this.getHostFigure()).setLineWidth(2);\n if (part.getTarget() instanceof ColumnEditPart) {\n part.getSource().setSelected(EditPart.SELECTED);\n part.getTarget().setSelect...
"public Runtime scrapeRuntime() {\n Element lengthElement = document.select(\"String_Node_Str\").first();\n String lengthText = lengthElement.text();\n if (lengthText.length() > 0) {\n return new Runtime(lengthText);\n } else\n return new moviescraper.doctord.model.dataitem.Runtime(\"String_No...
"private void parseValue() {\n if (ignoreTrailingWhitespace) {\n while (ch != delimiter && ch != newLine && ch != '\\0') {\n output.appender.appendIgnoringWhitespace(ch);\n ch = input.nextChar();\n }\n } else {\n while (ch != delimiter && ch != newLine) {\n ou...
"private IRenderTask createRenderTask(OutputStream out, IReportDocument reportDocument, InputOptions inputOptions, long pageNumber, List activeIds) throws ReportServiceException {\n HttpServletRequest request = (HttpServletRequest) inputOptions.getOption(InputOptions.OPT_REQUEST);\n Locale locale = (Locale) input...
"public Iterator<T> iterator() {\n ArrayList<T> result = new ArrayList<T>();\n for (int i = 0; i <= maxIndex; i++) {\n result.add((T) store[i]);\n }\n return result.iterator();\n}\n"
"private List<Integer> getPermutation(Matrix4d transformation) {\n double rmsdThresholdSq = Math.pow(this.parameters.getRmsdThreshold(), 2);\n List<Point3d> centers = subunits.getOriginalCenters();\n List<Integer> seqClusterId = subunits.getClusterIds();\n List<Integer> permutations = new ArrayList<Integer>...
"public boolean isCapableNetconfDevice(Node node) {\n NetconfNode netconfAugmentation = node.getAugmentation(NetconfNode.class);\n if (netconfAugmentation == null) {\n LOG.debug(\"String_Node_Str\", node.getNodeId().getValue());\n return ret;\n }\n AvailableCapabilities capabilities = netconfA...
"public void testJEXLExpressions() throws IOException {\n Map beans = new HashMap();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"String_Node_Str\");\n beans.put(\"String_Node_Str\", dateFormat);\n MyBean obj = new MyBean();\n Bean bean = new Bean();\n beans.put(\"String_Node_Str\", bean);\n...
"public int compare(TransactionSummary p1, TransactionSummary p2) {\n if (p2 == null) {\n return -1;\n } else if (p1 == null) {\n return 1;\n } else {\n return (int) (p2.time - p1.time);\n }\n}\n"
"public double distance(Instance first, Instance second) {\n double sum_nominal = 0.0;\n double sum_continuous = 0.0;\n for (int i = 0; i < first.numAttributes(); i++) {\n if (first.attribute(i).isNominal()) {\n if (!first.attribute(i).equals(second.attribute(i)))\n sum_nominal...
"public void onTimePassed(TimerHandler pTimerHandler) {\n currentEarthDuration++;\n if (currentEarthDuration >= EarthQuakeDuration) {\n base.sm.GameScreen.unregisterUpdateHandler(pTimerHandler);\n currentEarthDuration = 0;\n base.getCamera().setCenter(base.getCameraWidth() / 2, base.getCamera...
"public ContactIcqImpl findContactByScreenName(String screenName) {\n Iterator<ContactGroup> contactGroups = rootGroup.subgroups();\n ContactIcqImpl result = null;\n while (contactGroups.hasNext()) {\n ContactGroupIcqImpl contactGroup = contactGroups.next();\n result = contactGroup.findContact(sc...
"private static Object convertCollectionToClojureTypes(Collection<?> val, Object empty) {\n Object ret = Transient.invoke(empty);\n for (Object o : val) ret = ConjBang.invoke(ret, javaToClojure(o));\n return Persistent.invoke(ret);\n}\n"
"public StructuredStore getLazyStore(String indexConfigPath, String indexName, String sourcePath, Templates preFilter, boolean removeDoctypeDecl) throws IOException {\n boolean useLazy = true;\n if (indexConfigPath == null || indexName == null)\n return null;\n if (sourcePath.startsWith(\"String_Node_St...
"public void run() {\n synchronized (this) {\n try {\n long shutDownTimeout = SHUTDOWN_TIMEOUT_DEFAULT;\n try {\n String shutdownCustomValue = System.getProperty(SHUTDOWN_TIMEOUT_PROP);\n if (shutdownCustomValue != null && shutdownCustomValue.length() > 0) {...
"public static void main(String[] args) {\n Gpio led = new Gpio(4);\n Aio lightSensor = new Aio(0);\n led.dir(Dir.DIR_OUT);\n int on = 0;\n long lightValue = 0;\n String command = \"String_Node_Str\";\n Socket clientSocket = null;\n BufferedReader in = null;\n try {\n clientSocket = ne...
"public static File patchHiveClasses(File sourceJar, File targetJar) throws IOException {\n try (JarFile input = new JarFile(sourceJar)) {\n boolean needPatch = false;\n for (String classFile : HIVE_CLASS_FILES_TO_PATCH.keySet()) {\n needPatch = needPatch || (input.getEntry(classFile) != nul...
"public void run() {\n try {\n Thread.sleep(delay);\n HttpServletRequest hreq = (HttpServletRequest) ctx.getRequest();\n HttpServletResponse hresp = (HttpServletResponse) ctx.getResponse();\n RequestDispatcher rd;\n switch(type) {\n case TEXT:\n LOGGER.fin...
"private void unsetJavaBreakpointUpdater() {\n try {\n ISourceViewer viewer = getSourceViewer();\n if (viewer != null) {\n IAnnotationModel model = viewer.getAnnotationModel();\n if (model instanceof AbstractMarkerAnnotationModel) {\n if (ReflectionUtils.getPrivateF...
"public void setUp() {\n owner = ownerCurator.create(new Owner(OWNER_NAME));\n Role ownerAdminRole = createAdminRole(owner);\n roleCurator.create(ownerAdminRole);\n User user = new User(\"String_Node_Str\", \"String_Node_Str\");\n principal = new UserPrincipal(\"String_Node_Str\", new ArrayList<Permissio...
"synchronized void _zoom(int x, int y) {\n Graphics graphics = getGraphics();\n boolean handled = false;\n if ((_zoomin == true) && (_drawn == true)) {\n if (_zoomxn != -1 || _zoomyn != -1) {\n int minx = Math.min(_zoomx, _zoomxn);\n int maxx = Math.max(_zoomx, _zoomxn);\n ...
"public void run() {\n refreshOnce(true);\n}\n"
"private void call(final UDPCallback callback, final Object... args) {\n loop.callbackHandler.handleUDPCallback(callback, args);\n}\n"
"protected String performAdd(PlatformBroker platformBroker) {\n SchemaCatalog catalog = platformBroker.getCatalog();\n String addURI = getOptions().getAddOrUpdateURI();\n if (addURI == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n String tableName = getOptions().getTableName();\n...
"public List<Parameter<?>> getParameters() {\n return Parameter.forConstructor(errorHandler, constructor);\n}\n"
"public boolean addMapping(SchemaMappingTO mapping) {\n if (this.mappings == null)\n this.mappings = new ArrayList<SchemaMappingTO>();\n }\n return this.mappings.add(mapping);\n}\n"
"protected void evaluateTextField() {\n super.evaluateTextField();\n boolean isValid = true;\n String text = filenameText.getText();\n if (text != null && !text.isEmpty()) {\n File file = new File(text);\n if (!file.exists()) {\n try {\n url = new URL(text);\n ...
"public boolean equals(Object obj) {\n boolean isEqual = true;\n if (this == obj) {\n isEqual = true;\n } else if (obj == null || getClass() != obj.getClass()) {\n isEqual = false;\n } else {\n final MatchEngineDescriptor other = (MatchEngineDescriptor) obj;\n if (engineClassName...
"public void populateInputs(String line, boolean lenient) throws CommandLineParserException {\n UIWizard command = getSourceCommand();\n try {\n fullCommandLineParser = populate(command, command, line, true);\n if (!lenient) {\n fullCommandLineParser.parse(line, false);\n }\n } ...
"public MediaType getMediaType() {\n return Constants.APPLICATION_XML;\n}\n"
"private String getFormattedAdvCfgText(Properties config) {\n String advCfg = \"String_Node_Str\";\n String filterReloadURL = config.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n StringTokenizer urlTokens = new StringTokenizer(filterReloadURL, \"String_Node_Str\");\n int urlCnt = urlTokens.countT...
"public void testPerformance() {\n final Context targetContext = getContext();\n MockContentResolver resolver = new MockContentResolver();\n MockContext context = new MockContext() {\n public Resources getResources() {\n return targetContext.getResources();\n }\n };\n RenamingDel...
"public JsonValue apply(Representation representation) throws AuditException {\n try {\n return extractValues((Map<String, Object>) (new JacksonRepresentation(representation).getObject()));\n } catch (IOException e) {\n throw new AuditException(\"String_Node_Str\", e);\n }\n}\n"
"public void testGetOperator() {\n Assert.assertTrue(operators.length == 19);\n for (SqlPredicate equalOp : operators) {\n CwmZExpression<?> exp = new CwmZExpression<Integer>(equalOp);\n String operator = exp.getOperator();\n Assert.assertEquals(equalOp.getLiteral(), operator);\n }\n}\n"
"void placeEndCrystalEvent(PlayerInteractEvent e) {\n Player p = e.getPlayer();\n if (DEBUG) {\n plugin.getLogger().info(\"String_Node_Str\" + \"String_Node_Str\" + e.getEventName());\n }\n if (!IslandGuard.inWorld(p)) {\n return;\n }\n if (p.isOp() || VaultHelper.checkPerm(p, Settings.P...
"public boolean execute(Plugin plugin, CommandSender sender, String[] args) throws SMSException {\n ScrollingMenuSign smsPlugin = (ScrollingMenuSign) plugin;\n SMSView view = null;\n SMSMenu menu = SMSMenu.getMenu(args[0]);\n String viewName = getStringOption(\"String_Node_Str\");\n Location loc = hasOpt...
"public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n gl.glEnable(GL10.GL_TEXTURE_2D);\n gl.glShadeModel(GL10.GL_SMOOTH);\n gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);\n gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);\n gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n gl.glEnableCli...
"public void testEventConstructors() {\n JniTracefile testTracefile = null;\n JniEvent testEvent1 = null;\n JniEvent testEvent2 = null;\n try {\n testTracefile = JniTraceFactory.getJniTrace(tracepath, null, printLttDebug).requestTracefileByName(eventName);\n } catch (JniException e) {\n }\n ...
"public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {\n Set<String> resolvedPackagesToScan = resolvePackagesToScan(packagesToScan);\n if (!CollectionUtils.isEmpty(resolvedPackagesToScan)) {\n registerServiceBeans(resolvedPackagesToScan, registry);\n } el...
"private void printResults(List<List<DirichletCluster<Vector>>> clusters, int significant) {\n int row = 0;\n for (List<DirichletCluster<Vector>> r : clusters) {\n System.out.print(\"String_Node_Str\" + row++ + \"String_Node_Str\");\n for (int k = 0; k < r.size(); k++) {\n Model<Vector> m...
"public void testTrustedListSetAndGet() {\n String test = \"String_Node_Str\";\n assertTrue(RouterServiceValidator.setTrustedList(mContext, test));\n String retVal = RouterServiceValidator.getTrustedList(mContext);\n assertNotNull(retVal);\n assertTrue(test.equals(retVal));\n retVal = null;\n Strin...
"public static IProblem createIncompatibleTypeProblem(IComponentNamePO cN, ProblemType type) {\n if (type.equals(ProblemType.REASON_INCOMPATIBLE_MAP_TYPE)) {\n return new Problem(NLS.bind(Messages.ProblemIncompatibleMapTypeMarkerText, cN.getName()), new Status(IStatus.ERROR, Activator.PLUGIN_ID, NLS.bind(Mess...
"public double[] getQuality(Random rand, double[] ids) {\n double[] res = new double[ids.length];\n double log2 = Math.log(2);\n double dist;\n int r;\n int max = ((DistanceDiversityEmbedding) this.embedding).getMax();\n double exp = ((DistanceDiversityEmbedding) this.embedding).getExponent();\n fo...
"private int checkServerErrors(HttpResponseEntity res) throws ArangoException {\n int statusCode = res.getStatusCode();\n if (statusCode >= 400) {\n DefaultEntity defaultEntity = new DefaultEntity();\n if (res.getText() != null && !\"String_Node_Str\".equals(res.getText()) && statusCode != 500) {\n ...
"public void testValidateRequestNewAuthenticateInvalidCredentialFailure() throws Exception {\n IdentityStoreHandler mish = new MyIdentityStoreHandler();\n withMessageContext(ap).withNewAuthenticate(coCred);\n withIDSBeanInstance(ids, false, false).withIDSHandlerBeanInstance(mish);\n withJaspicSessionEnabled...
"public void prepareForTrack() {\n reset();\n if (isConnected() && hasCurrent()) {\n mRemoteMediaPlayer.stop(mApiClient);\n }\n mState = STATE_BUFFERING;\n notifyOnPlaybackStatusChanged(mState);\n}\n"
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n optimizeWrites();\n in.defaultReadObject();\n String v11nName = in.readUTF();\n Versification v11n = Versifications.instance().getVersification(v11nName);\n store = new BitSet(v11n.maximumOrdinal() + 1);\n re...
"private IterationResult<XMLEvent2> endElement2() {\n DomEndElement2 end = new DomEndElement2(current);\n XMLEvent2 event = new InMemoryXMLEvent2(null, end, null);\n return IterationResult.next(event);\n}\n"
"private void addClientInfo(Node hazelcastNode, PhoneHomeParameterCreator parameterCreator) {\n Map<ClientType, Integer> clusterClientStats = hazelcastNode.clientEngine.getConnectedClientStats();\n parameterCreator.addParam(\"String_Node_Str\", Integer.toString(clusterClientStats.get(ClientType.CPP))).addParam(\"...
"public void shouldConstructCorrectLocalAndRemoteAddressesForHttpAcceptAndConnectSessions() {\n helperConstructLocalRemoteAddressesForAcceptAndConnectSessions(null, null);\n}\n"
"public void complete(final CompleteOperation completeOperation, final InputComponent<?, Object> input, final ShellContext context, final String typedValue, final ConverterFactory converterFactory) {\n SelectComponent<?, Object> selectComponent = (SelectComponent<?, Object>) input;\n Converter<Object, String> ite...
"public static void compile() {\n ArrayList<CallStatement> calls = new ArrayList<CallStatement>();\n while (tokens.size() > 0) {\n clearS();\n if (tokens.get(0).equals(\"String_Node_Str\")) {\n compileDef();\n } else if (tokens.get(0).equals(\"String_Node_Str\") || tokens.get(0).eq...
"public static org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent convertConceptSetComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ValueSet.ConceptSetComponent tgt = new ...
"protected void onViewRemoved(View child) {\n super.onViewRemoved(child);\n mStackScrollAlgorithm.notifyChildrenChanged(this);\n if (mChangePositionInProgress) {\n return;\n }\n ((ExpandableView) child).setOnHeightChangedListener(null);\n mCurrentStackScrollState.removeViewStateForView(child);\...
"public void readData(DataInput in) throws IOException {\n long now = System.currentTimeMillis();\n cost = in.readLong();\n expirationTime = in.readLong() + now;\n lastAccessTime = in.readLong() + now;\n lastUpdateTime = in.readLong() + now;\n creationTime = in.readLong() + now;\n version = in.read...
"public void saveScoreEvaluation(CourseNode courseNode, Identity identity, Identity assessedIdentity, ScoreEvaluation scoreEvaluation, UserCourseEnvironment userCourseEnv, boolean incrementUserAttempts) {\n ICourse course = CourseFactory.loadCourse(courseEntry.getOlatResource());\n Float score = scoreEvaluation.g...
"public boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n if (!(object instanceof ConfirmationKeyEntity)) {\n return false;\n }\n final ConfirmationKeyEntity other = (ConfirmationKeyEntity) object;\n if (this.id != other.id && (this.id == null || !this.id.equa...
"protected synchronized void reevaluateMyself(Pair<Master, Machine> master) {\n if (master == null) {\n master = broker.getMasterReally();\n }\n boolean restarted = false;\n boolean iAmCurrentlyMaster = masterServer != null;\n msgLog.logMessage(\"String_Node_Str\" + machineId + \"String_Node_Str\"...
"private ClientStatus ensureClientStatus(String clientId, String clientDesc) {\n ClientStatus clientStatus = clientStatuses.get(clientId);\n if (clientStatus == null) {\n clientStatus = new ClientStatus(clientInfo);\n clientStatuses.put(id, clientStatus);\n } else {\n clientStatus.clientDe...
"public void readField(OpenJPAStateManager stateManager, QueryResult<ColumnSlice<DynamicComposite, byte[]>> result) {\n Object[] fields = null;\n StoreContext context = stateManager.getContext();\n Collection<Object> collection = (Collection<Object>) stateManager.newProxy(fieldId);\n DynamicComposite dynami...
"private Object getAggregateValue(int aggrIndex) throws DataException {\n AggrExprInfo aggrInfo = getAggrInfo(aggrIndex);\n if (this.odiResult.getRowCount() == 0) {\n if (aggrInfo.aggregation.getName().equalsIgnoreCase(BuiltInAggregationFactory.TOTAL_COUNT_FUNC) || aggrInfo.aggregation.getName().equalsIgno...
"public Call createVideoCall(Contact callee, MediaDevice device) throws OperationFailedException {\n CallJabberImpl call = (CallJabberImpl) super.createVideoCall(callee, device);\n CallPeerJabberImpl callPeer = call.getCallPeers().next();\n callPeer.addCallPeerListener(callPeerListener);\n size = (((VideoMe...
"public void onSuccess() {\n if (getActivity() == null)\n return;\n Animation fadeInAnim = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_in);\n mainInfoBlockColorFade.start();\n td.startTransition(500);\n coverImage.setVisibility(View.VISIBLE);\n coverImage.startAnimation(fade...
"public Text getHelp(CommandSource source) {\n return this.help;\n}\n"
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (value instanceof XMLRoot) {\n XMLRoot root = (XMLRoot) value;\n XPathFragment fr...
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (IProject.class.isInstance(element)) {\n return \"String_Node_Str\".equals(((IProject) element).getName());\n } else if (IFolder.class.isInstance(element)) {\n IPath path = new Path(\"String_Node_Str\");\n IPat...
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null || getClass() != obj.getClass()) {\n return false;\n }\n if (compareValues(getDomainid(), other.getDomainid()) && compareValues(getRoleid(), other.getRoleid()) && compareValues(getUserid(), other....
"public void callStateChanged(CallChangeEvent evt) {\n if (evt.getEventType().equals(CallChangeEvent.CALL_STATE_CHANGE) && ((CallState) evt.getNewValue()).equals(CallState.CALL_ENDED)) {\n CallGibberishImpl sourceCall = (CallGibberishImpl) this.activeCalls.remove(evt.getSourceCall().getCallID());\n if ...
"public DataInputBuffer getKey() throws IOException {\n throw new RuntimeException(\"String_Node_Str\");\n}\n"