content
stringlengths
40
137k
"public static void main(String[] args) {\n IntrinsicParameters intrinsic = UtilIO.loadXML(\"String_Node_Str\");\n String fileName = \"String_Node_Str\";\n SimpleImageSequence<ImageFloat32> video = DefaultMediaManager.INSTANCE.openVideo(fileName, ImageType.single(ImageFloat32.class));\n CalibrationFiducialD...
"public String getDebugData() {\n return this.debug.getData(model);\n}\n"
"private List<Violation> arrayAssign(Context context, int arrayDepth, AssignOp op) {\n this.assigned = Ternary.TRUE;\n return Collections.emptyList();\n}\n"
"public void testGetUserNames() throws AuthenticationException {\n System.out.println(\"String_Node_Str\");\n Authenticator instance = ESAPI.authenticator();\n String password = instance.generateStrongPassword();\n String[] testnames = new String[10];\n for (int i = 0; i < testnames.length; i++) {\n ...
"private void invokeOnSelection() {\n INVOKE_COUNT.incrementAndGet(this);\n try {\n if (isBindToSingleConnection()) {\n invocationService.invokeOnConnection(this, (ClientConnection) connection);\n } else if (partitionId != -1) {\n invocationService.invokeOnPartitionOwner(this, ...
"public static ValLoc assignValLoc(Var dst, Arg val, IsAssign isAssign, boolean recursive) {\n ArgCV cv = assignCompVal(val, recursive);\n if (cv == null)\n return null;\n Closed closed = recursive ? Closed.YES_RECURSIVE : Closed.YES_NOT_RECURSIVE;\n return ValLoc.build(cv, dst.asArg(), closed, isAss...
"public Iterator<? extends Object> getCallSites(Object object) {\n if (object instanceof BasicBlockInContext) {\n return partialIPFG.getCallSites((BasicBlockInContext<ISSABasicBlock>) object, callee);\n } else {\n CGNode n = nodeManager.getProcOfCollapsedNode(object);\n return new NonNullSing...
"private VehicleState sampleState(VehicleState vehicleState, long time) {\n vehicleState.getMovementFilter().setCurrentTimeDiff(this.simParameters.getFrequency());\n final MultivariateGaussian currentLocBelief = vehicleState.getBelief();\n final EdgeTransitionDistributions currentEdgeTrans = vehicleState.getEd...
"protected String valueOf(T item) {\n if (item == null) {\n return \"String_Node_Str\";\n }\n return item.toString();\n}\n"
"protected void checkAndSetParameters(IProcess2 process2) {\n IContextManager contextManager = process2.getContextManager();\n if (contextManager instanceof JobContextManager) {\n JobContextManager jobContextManager = (JobContextManager) contextManager;\n jobContextManager.setRepositoryRenamedMap(ge...
"public int getMemory() {\n try {\n Runtime r = Runtime.getRuntime();\n Process p = r.exec(\"String_Node_Str\");\n BufferedReader b = new BufferedReader(new InputStreamReader(p.getInputStream()));\n String line = \"String_Node_Str\";\n line = b.readLine();\n b.close();\n ...
"public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {\n if (!roundEnv.processingOver()) {\n Collection<CodeGenerator> codeGenerators = getCodeGenerators();\n if (!roundEnv.errorRaised()) {\n CodeGen codegen = new CodeGen(processingEnv, roundEnv);\n ...
"long linearScanByPosition(final Wire wire, final long toPosition, final long fromKnownIndex, final long knownAddress) throws EOFException {\n final Bytes<?> bytes = wire.bytes();\n bytes.readLimit(writePosition.getValue()).readPosition(knownAddress);\n long i = fromKnownIndex;\n while (bytes.readPosition()...
"public void onStart(IContext context) throws JFException {\n console = context.getConsole();\n engine = context.getEngine();\n history = context.getHistory();\n indicators = context.getIndicators();\n Set subscribedInstruments = new HashSet();\n subscribedInstruments.add(instrument);\n context.set...
"public CompatibilityStatus checkCompatibility() {\n compStatus = checkVersion(handle.getExtensionVersion());\n if (compStatus < 0) {\n CompatibilityStatus status = new CompatibilityStatus();\n List errorList = new ArrayList(2);\n status.setStatusType(CompatibilityStatus.CONVERT_COMPATIBILITY...
"private String initializeRepository() {\n try {\n repository = System.getProperty(REPOSITORY_HOME_PROP);\n if (repository == null) {\n String msg = localStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\");\n logger.log(Level.SEVERE, msg);\n } else {\n ...
"private void notifyFaction(IPlayableFaction oldFaction, int oldLevel) {\n if (oldFaction != null && !oldFaction.equals(currentFaction)) {\n VampirismMod.log.d(TAG, \"String_Node_Str\", oldFaction.getKey());\n oldFaction.getPlayerCapability(player).onLevelChanged(0, oldLevel);\n }\n if (currentFa...
"public void mergeIntoObject(Object target, boolean isTargetUnInitialized, Object source, MergeManager mergeManager) {\n if (isTargetUnInitialized) {\n if (mergeManager.shouldMergeWorkingCopyIntoOriginal() && (!isAttributeValueInstantiated(source))) {\n setAttributeValueInObject(target, getIndirect...
"public boolean isQuasiIdentifierSelected() {\n return (getInputDefinition().getAttributeType(getSelectedAttribute()) == AttributeType.QUASI_IDENTIFYING_ATTRIBUTE);\n}\n"
"private void moveMeta(final Entry<String, Element> entry, final Element root) {\n final List<String> metaPath = moveTable.get(entry.getKey());\n if (metaPath == null) {\n return;\n }\n final Iterator<String> token = metaPath.iterator();\n Node parent = null;\n Node child = root;\n Node curr...
"private void triggerViewsReady(final ArrayMap<String, View> sharedElements) {\n if (mAreViewsReady) {\n return;\n }\n mAreViewsReady = true;\n final ViewGroup decor = getDecor();\n if (decor == null || (decor.isAttachedToWindow() && (sharedElements.isEmpty() || !sharedElements.valueAt(0).isLayout...
"public static void main(String[] args) {\n String serialPort;\n if (args.length == 1) {\n serialPort = args[0];\n } else {\n serialPort = Serial4JArduino.selectSerialPort();\n }\n JArduino arduino = new TonePitchFollower(serialPort);\n arduino.runArduinoProcess();\n}\n"
"synchronized void flush() throws RepositoryException {\n Iterator<CacheRecord> iterator = rootObjectsById.values().iterator();\n while (iterator.hasNext()) {\n CacheRecord cacheRecord = (CacheRecord) iterator.next();\n flushRootObjectMap(cacheRecord.rootObjects);\n }\n}\n"
"public Bundle toBundle() {\n if (mAnimationType == ANIM_DEFAULT) {\n return null;\n }\n Bundle b = new Bundle();\n if (mPackageName != null) {\n b.putString(KEY_PACKAGE_NAME, mPackageName);\n }\n if (mLaunchBounds != null) {\n b.putParcelable(KEY_LAUNCH_BOUNDS, mLaunchBounds);\n ...
"public Object getColumnValue(Column aCol) throws KettleException {\n String colName = getColumnName(aCol);\n if (colName.equals(\"String_Node_Str\")) {\n return null;\n }\n String decoder = m_columnMeta.get(colName);\n if (decoder == null) {\n decoder = m_defaultValidationClass;\n }\n ...
"private void warn(String methodName) {\n if (warned) {\n return;\n }\n warned = true;\n Thread.currentThread().setContextClassLoader(getParent());\n Slog.w(TAG, \"String_Node_Str\" + methodName + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node...
"private static void doJobCleanup(ModelService model, IterableIndexResult<IndexedAIP> results) {\n for (IndexedAIP indexedAIP : results) {\n try {\n LOGGER.info(\"String_Node_Str\", aipId);\n model.deleteAIP(aipId);\n } catch (RequestNotValidException | NotFoundException | Generic...
"private void showAppropriateWidgetPage() {\n final int state = mTransportState;\n final boolean transportAdded = ensureTransportPresentOrRemoved(state);\n final int pageToShow = getAppropriateWidgetPage(state);\n if (!transportAdded) {\n mAppWidgetContainer.setCurrentPage(pageToShow);\n } else if...
"private View getTextView(final int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n convertView = mLayoutInflater.inflate(mRowTypeToLayoutId.get(ROW_TYPE_TEXT), parent, false);\n }\n MessageRow row = getItem(position);\n Event msg = row.getEvent();\n RoomState roomSt...
"public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) {\n String classDesc = mockMethods.getMockClassInternalName();\n ParameterNames.registerName(classDesc, access, methodName, methodDesc, desc, name, index);\n}\n"
"public Void call() throws Exception {\n LOG.debug(\"String_Node_Str\");\n try {\n while (true) {\n MessageTuple request = ackQueue.take();\n if (request == MessageTuple.REQUEST_OF_DEATH) {\n break;\n }\n Message msg = request.getMessage();\n ...
"private static String getScriptValue(Parameter parameter, Object value, boolean multipleComponent) {\n if (value == null)\n return \"String_Node_Str\";\n if (!multipleComponent && parameter.isMultiple()) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n s...
"public void afterPropertiesSet() throws Exception {\n super.init();\n DefaultListableBeanFactory beanFactory = (DefaultListableBeanFactory) appCtx.getAutowireCapableBeanFactory();\n IDBConnectionPool dbConnectionPool = this.getDBCluster().getDBConnectionPool();\n IContainer<DataSource> dsC = dbConnectionPo...
"String getFullName() {\n if (parent == null) {\n return name;\n } else {\n String parentName = parent.getFullName();\n if (parentName.length() == 0) {\n return name;\n } else {\n return parent.getFullName() + \"String_Node_Str\" + name;\n }\n }\n}\n"
"public float get3rdQuarterTotal() {\n float total = 0;\n for (APPLine line : lines) total += line.getAmount3();\n return DecimalRounder.roundOff(total, 2);\n}\n"
"public static final Object getObject(Object obj, String fieldName) throws PropertyAccessException {\n Field embeddedField;\n try {\n embeddedField = obj.getClass().getDeclaredField(fieldName);\n if (embeddedField != null) {\n if (!embeddedField.isAccessible()) {\n embedded...
"public int compareTo(Timestamp o) {\n int sign = Long.signum(getTime() - o.getTime());\n return sign == 0 ? getNanos() - o.getNanos() : sign;\n}\n"
"public static Node getComponentByPos(Point2D pos) {\n List<? extends Window> comps = getAssignableFrom(Window.class);\n List<Node> matches = new ArrayList<Node>();\n for (Window window : comps) {\n if (window.isFocused() && window.isShowing()) {\n Parent root = window.getScene().getRoot();\n...
"private void extendNodeProper(ExampleBasedNode node, OWLClassExpression concept, int maxLength, int recDepth) {\n if (stop)\n return;\n if (recDepth > maxRecDepth)\n maxRecDepth = recDepth;\n long refinementCalcTimeNsStart = System.nanoTime();\n Set<OWLClassExpression> refinements = operator....
"public AxisAlignedBB getBoundingBox(TileEntityPresent me) {\n if (me == null) {\n return AxisAlignedBB.getBoundingBox(minX, minY, minZ, maxX, maxY, maxZ);\n }\n int x = me.xCoord, y = me.yCoord, z = me.zCoord;\n if (me.isConnected()) {\n ForgeDirection dir = me.getConnectionDir();\n if...
"public boolean executeCommand(CommandSender sender, CoreCommand cmd, String[] args) {\n try {\n if (cmd.permissionCheck(sender) && cmd.argsCheck(args)) {\n ACCommandContainer container = new ACCommandContainer(sender, cmd, args);\n if (cmd.getCmdName().equals(\"String_Node_Str\") || cmd...
"public void listAvailableCartridges() throws CommandException {\n try {\n Cartridge[] multiTenantCatridges = stub.getAvailableCartridges(true);\n if (multiTenantCatridges == null) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n ...
"private void handlePendingConnections() {\n while (true) {\n TCPConnection connection = null;\n synchronized (this) {\n while (pending.size() == 0) try {\n System.out.println(\"String_Node_Str\");\n wait();\n System.out.println(\"String_Node_Str\...
"protected List<EnhanceEntity> onAssociationUsingLucene(EntityMetadata m, Client client, List<EnhanceEntity> ls) {\n Set<String> rSet = fetchDataFromLucene(client);\n List resultList = client.findAll(m.getEntityClazz(), rSet.toArray(new String[] {}));\n return m.getRelationNames() != null && !m.getRelationName...
"public Map executeOnKeysInternal(Set<Data> keys, EntryProcessor entryProcessor) {\n Map result = new HashMap();\n final NodeEngine nodeEngine = getNodeEngine();\n final Collection<Integer> partitionsForKeys = getPartitionsForKeys(keys);\n try {\n MultipleEntryOperationFactory operationFactory = new ...
"public boolean accept(File pathname) {\n return pathname.isFile();\n}\n"
"private Object responseCdmaCallWaiting(Parcel p) {\n CdmaCallWaitingNotification notification = new CdmaCallWaitingNotification();\n notification.number = p.readString();\n notification.numberPresentation = notification.presentationFromCLIP(p.readInt());\n notification.name = p.readString();\n notificat...
"public void onAltitudeChanged(double newAltitude) {\n super.onAltitudeChanged(newAltitude);\n if (drone.guidedPoint.isCoordValid()) {\n drone.guidedPoint.setGuidedMode();\n }\n}\n"
"private void writeHeader(Object object, FileWriter fileWriter) throws IOException {\n String title = createTitle(object);\n fileWriter.append(\"String_Node_Str\").append(\"String_Node_Str\").append(title).append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str\").append(\"String_Node_Str...
"public void process(final ApplicationDeployable input) throws Exception {\n ImmutableList.Builder<Program> programs = ImmutableList.builder();\n final ApplicationSpecification appSpec = input.getSpecification();\n final String applicationName = appSpec.getName();\n final ArchiveBundler bundler = new Archiv...
"public void test() throws IOException {\n RegularTimeSeriesIndex index = RegularTimeSeriesIndex.create(Interval.parse(\"String_Node_Str\"), Duration.ofMinutes(15));\n TimeSeriesMetadata metadata = new TimeSeriesMetadata(\"String_Node_Str\", TimeSeriesDataType.DOUBLE, Collections.emptyMap(), index);\n Uncompre...
"private boolean isInlineFeedValidated(final XMLStreamReader reader, final EntityInfoAggregator eia, final Map<String, String> linkAttributes) throws EntityProviderException, EdmException {\n boolean isFeed = false;\n try {\n reader.nextTag();\n reader.require(XMLStreamConstants.START_ELEMENT, Edm.N...
"public static byte[] makeGuidRequery() {\n byte[] ret = makeGuid();\n tagGuid(ret, 0, 2, 13);\n return ret;\n}\n"
"private void onLoadedData() {\n if (!isPrepared)\n return;\n if (isLoaded) {\n updateWeatherView();\n } else {\n switch(mAsynState) {\n case INIT:\n if (isNeedRequestNet()) {\n mAsynState = AsynTaskState.PROCESSING;\n getWeat...
"public void padOrg() {\n Cell oldCell = org.getCell();\n oldCell.rotatedIntoPrincDirs();\n oldCell = removeWhiteSpace(oldCell);\n List<Vect> newBasis = new ArrayList<Vect>();\n newBasis.add(oldCell.getLatticeVectors().get(0));\n newBasis.add(oldCell.getLatticeVectors().get(1));\n double c = oldCel...
"public ComponentMetadata getEnclosingComponent() {\n BeanDefinition def = parserContext.getContainingBeanDefinition();\n if (def != null) {\n String beanName = null;\n if (!def.hasAttribute(COMPONENT_NAME_ATTR)) {\n BeanDefinitionRegistry defRegistry = parserContext.getRegistry();\n ...
"public void fromBytes(ByteBuf buf) {\n testResult = new int[10];\n for (int i = 0; i < 10; i++) {\n testResult[i] = buf.readInt();\n }\n}\n"
"private static Sound pitch(Sound sound, float percent) {\n float total = 100;\n if (percent == total) {\n return new Sound(sound.getSamples(), sound.getNbBytesPerSample(), sound.getSampleRate(), sound.getChannelNum());\n }\n float nbSamples = sound.getSamples().length;\n float nbFiltered = Math.a...
"public void doRead() throws TrendrrNoCallbackException, TrendrrDisconnectedException, TrendrrException {\n int numRead = 1;\n while (numRead > 0 && this.buffer.hasCallbacksWaiting()) {\n numRead = this.buffer.read(this.channel);\n this.buffer.process();\n }\n}\n"
"public void testPrimitiveSubrangeSort() {\n int[] x = { 3, 11, 2, 1, 22, 3 };\n Arrays.sort(x, 1, 5);\n assertEquals(3, x[0]);\n assertEquals(1, x[1]);\n assertEquals(2, x[2]);\n assertEquals(11, x[3]);\n assertEquals(22, x[4]);\n assertEquals(3, x[5]);\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Player newController = game.getPlayer(getTargetPointer().getFirst(game, source));\n if (controller != null && newController != null && controller.getId() != newController.getId()) {\n Con...
"public void onClick(DialogInterface dialog, int which) {\n showProgress();\n QBRemoveFriendCommand.start(FriendDetailsActivity.this, user.getUserId());\n}\n"
"protected SecureShell getSecureShell() throws Exception {\n final Logger logger = getLogger(CloudFormation.class);\n final String sshHostConverted = getSSHHost();\n final SecureShell ssh = new SecureShell(logger, sshKeyFile, sshUser, sshHostConverted, maxRetries, timeOut);\n return ssh;\n}\n"
"public String createZipFile(String sourceDir, String zipFileName) throws IOException {\n String zipFile = getZipFileName(sourceDir, zipFileName);\n boolean zipDone = false;\n try {\n FileOutputStream fout = new FileOutputStream(zipFile);\n ZipOutputStream zout = new ZipOutputStream(fout);\n ...
"public float receiveElectricity(ForgeDirection from, ElectricityPack receive, boolean doReceive) {\n this.prevWatts = this.getEnergyStored();\n if (doReceive) {\n if (UniversalElectricity.isVoltageSensitive) {\n if (receive.voltage > this.getVoltage()) {\n TPaoTaiBase turret = th...
"public org.hl7.fhir.dstu2.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu3.model.ElementDefinition src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ElementDefinition tgt = new org.hl7.fhir.dstu2.model.ElementDefinition();\n cop...
"public void initialize() {\n logger.debug(\"String_Node_Str\");\n String apiBaseUrl = null;\n String apiVersion = null;\n String hardwareVersion = null;\n FreeboxServerConfiguration configuration = getConfigAs(FreeboxServerConfiguration.class);\n if ((configuration != null) && (configuration.fqdn != ...
"public static IArchiveLockManager getInstance() {\n return ManagerHolder.instance;\n}\n"
"private List<P4Revision> listChanges(String ws) throws Exception {\n List<P4Revision> list = new ArrayList<P4Revision>();\n Descriptor<SCM> scm = Jenkins.getInstance().getDescriptor(PerforceScm.class);\n PerforceScm.DescriptorImpl p4scm = (PerforceScm.DescriptorImpl) scm;\n int CHANGE_COUNT_LIMIT = p4scm.g...
"public Date getLatestDateOfCube(LensSessionHandle sessionid, String cubeName, String timeDimension) throws LensException, HiveException {\n acquire(sessionid);\n CubeInterface ci = getClient(sessionid).getCube(cubeName);\n if (!(ci instanceof Cube)) {\n throw new BadRequestException(\"String_Node_Str\"...
"protected ComputeEngineCloud getCloud() {\n ComputeEngineInstance node = getNode();\n if (node == null)\n throw new CloudNotFoundException(\"String_Node_Str\");\n return node.getCloud();\n}\n"
"protected Composite getComponent(Composite parent) {\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glContent = new GridLayout();\n cmpContent.setLayout(glContent);\n }\n ic = new InsetsComposite(cmpContent, SWT.NONE, getBlockForProcessing().getInsets(), getChart().getUnits(...
"public Set<Train> getAvailableNewTrains() {\n Set<Train> availableTrains = new TreeSet<Train>();\n Train train;\n for (TrainCertificateType type : trainCertTypes) {\n if (type.isAvailable()) {\n train = ipo.getTrainOfType(type);\n if (train != null) {\n availableTra...
"public void createPet(Location loc) {\n if (Status == PetState.Here || getOwner() == null) {\n } else {\n if (RespawnTime <= 0) {\n this.Location = loc;\n net.minecraft.server.World mcWorld = ((CraftWorld) loc.getWorld()).getHandle();\n EntityMyPet MPentityMyPet = getPetTy...
"public String getColumnText(Object element, int columnIndex) {\n return BROWSE_ITEMS + ((XSDElementDeclaration) element).getName();\n}\n"
"private void handleByte(final BytesCellHandler handler, final byte c, final int i) {\n if (c == QUOTES) {\n if (currentStart == i) {\n currentState = CsvParserState.IN_QUOTE;\n } else if (currentState == CsvParserState.IN_QUOTE) {\n currentState = CsvParserState.QUOTE;\n }...
"public int getState() {\n int state = super.getState();\n if (state == DISABLED) {\n return state;\n }\n if (_pressed) {\n return DOWN;\n } else {\n return state;\n }\n}\n"
"public boolean replaceEvent(GameEvent event, Ability source, Game game) {\n Card card = game.getCard(event.getTargetId());\n if (card != null) {\n return card.moveToZone(Zone.LIBRARY, source.getId(), game, false);\n }\n return false;\n}\n"
"public Resource resolve(SlingHttpServletRequest request, String path) {\n return getResolver().resolve(request, path);\n}\n"
"public Element exportObject(OTDataObject dataObj, OTDataObject parent, String parentResourceName) throws Exception {\n OTID id = dataObj.getGlobalId();\n if (shouldWriteReference(dataObj, parent, parentResourceName)) {\n return exportObjectReference(id);\n }\n XMLDataObject xmlDO = null;\n if (da...
"private TeamStrategy getStrategyFor(PlayerInfo player) {\n if (Team.ALLIED_TEAM_ID == player.getTeamId()) {\n return this.alliedAIStrategy;\n } else if (Team.AXIS_TEAM_ID == player.getTeamId()) {\n return this.axisAIStrategy;\n }\n return this.alliedAIStrategy;\n}\n"
"public void stop() {\n try {\n this.socket.close();\n } catch (final IOException e1) {\n GPSdEndpoint.LOG.debug(\"String_Node_Str\" + e1.getMessage());\n }\n try {\n this.listeners.clear();\n if (listenThread != null) {\n this.listenThread.halt();\n }\n } ca...
"public static UserPostListingURL parse(Uri uri) {\n Integer limit = null;\n String before = null, after = null;\n for (final String parameterKey : General.getUriQueryParameterNames(uri)) {\n if (parameterKey.equalsIgnoreCase(\"String_Node_Str\")) {\n after = uri.getQueryParameter(parameterKe...
"public void copiedData(int transferGroupId) {\n LinkedList<Copy> copies = groupToCopy.remove(transferGroupId);\n if (copies == null) {\n return;\n }\n for (Copy c : copies) {\n if (!c.isRegistered()) {\n continue;\n }\n DataLocation actualLocation = c.getSourceData()....
"public Slf4jReporterDefinition applyAsOverride(final Slf4jReporterDefinition override) {\n Slf4jReporterDefinition slf4jReporterDefinition = new Slf4jReporterDefinition();\n slf4jReporterDefinition.setName(this.name);\n slf4jReporterDefinition.setDurationUnit(this.durationUnit);\n slf4jReporterDefinition.s...
"public void onAccountLogin(P004_AccountLogin action) {\n LOGGER.debug(\"String_Node_Str\");\n Channel channel = action.getChannel();\n String email = action.getEmail();\n String password = new String(action.getPassword(), CHARSET_UTF16);\n String characterName = action.getCharacterName();\n LoginMode...
"public List<MetricDefinition> findForAlarms() {\n Handle h = db.open();\n try {\n List<Map<String, Object>> rows = h.createQuery(METRIC_DEF_SQL).list();\n List<MetricDefinition> metricDefs = new ArrayList<MetricDefinition>(rows.size());\n for (Map<String, Object> row : rows) {\n S...
"public synchronized <E, V> void registerListener(String name, final ItemListener<E> itemListener) {\n EntryListener<E, V> e = new EntryAdapter<E, V>() {\n public void entryAdded(EntryEvent<E, V> event) {\n itemListener.itemAdded(event.getKey());\n }\n public void entryRemoved(EntryEv...
"public void run() {\n final ILock lock = instance1.getLock(name);\n lock.lock();\n latch.countDown();\n}\n"
"public EvaluationCounts countMatchings(List<T> annotatorResult, List<T> goldStandard) {\n ClassifiedEvaluationCounts documentCounts = new ClassifiedEvaluationCounts(classifier.getNumberOfClasses());\n BitSet matchingElements;\n BitSet alreadyUsedResults = new BitSet(annotatorResult.size());\n int classId, ...
"private StudyEventBean createNewStudyEventBean(StudyEventDefinitionBean sedBean, StudySubjectBean studySubjectBean) {\n int ordinal = getStudyEventDao().getMaxSampleOrdinal(sedBean, studySubjectBean);\n StudyEventBean testStudyEventBean = (StudyEventBean) getStudyEventDao().findByStudySubjectIdAndDefinitionIdAnd...
"private boolean dahPancada(Agente inimigo) {\n boolean morreu;\n morreu = inimigo.gastaEnergia(Constants.ENTIDADE_COMBATE_DANO);\n if (!morreu) {\n inimigo.sinalizaTomouDano(this);\n }\n return morreu;\n}\n"
"private void addConstantEqualConstantTest() {\n ExpressionBuilder builder = new ExpressionBuilder();\n Expression expression = builder.value(1).equal(1);\n expression = expression.and(builder.value(1).equal(builder.value(1)));\n expression = expression.and(builder.value(1).equal(builder.getParameter(\"Stri...
"public String stringRepresentation() {\n String value = getExpression();\n if (value == null) {\n ptolemy.data.Token token = null;\n try {\n token = getToken();\n } catch (IllegalActionException ex) {\n }\n if (token != null) {\n value = token.toString();\...
"public void setReadLocation(int nextReadLocation) {\n directBytes.writeOrderedInt(READ_OFFSET, nextReadLocation);\n}\n"
"public void drawValues(Canvas c) {\n PointF center = mChart.getCenterCircleBox();\n float r = mChart.getRadius();\n float rotationAngle = mChart.getRotationAngle();\n float[] drawAngles = mChart.getDrawAngles();\n float[] absoluteAngles = mChart.getAbsoluteAngles();\n float off = r / 10f * 3.6f;\n ...
"public List<Map<String, Object>> LookupDocument(String loopXPath, Map<String, Object> lookupInfo, Map<String, String> xpathOfResults, Map<String, String> nsMapping, String matchingMode) {\n if (doc == null || lookupInfo == null) {\n return null;\n }\n List<Map<String, Object>> result = new ArrayList<Ma...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.frag_simple_line, container, false);\n mChart = (LineChart) v.findViewById(R.id.lineChart1);\n mChart.setDescription(\"String_Node_Str\");\n mChart.setHighlightIndicatorE...
"public void run() {\n if (!plugin.getGrid().playerIsOnIsland(player) && player.isFlying()) {\n if (player.getGameMode().equals(GameMode.SURVIVAL)) {\n player.setAllowFlight(false);\n player.setFlying(false);\n if (DEBUG)\n plugin.getLogger().info(\"String_Node_...
"protected void populateTableList() {\n if (rootNode != null) {\n removeTreeItem(rootNode);\n }\n ResultSet tablesRs = null;\n ArrayList procedureRs = null;\n String catalogName = metaDataProvider.getCatalog();\n tableList = new ArrayList();\n String namePattern = null;\n String[] tableTy...