content
stringlengths
40
137k
"public IVRAuthenticationStatus checkAccess(String phoneNumber, String passcode, int attemptNumber, String sid) {\n Patient likelyPatient = allPatients.findByMobileNumber(phoneNumber);\n if (likelyPatient == null) {\n ivrCallAudits.add(new IVRCallAudit(phoneNumber, sid, \"String_Node_Str\", IVRCallAudit.St...
"public int getVertexIdAt(final int x, final int y) {\n synchronized (entities) {\n final RealPoint pos = new RealPoint(x, y);\n for (final ScreenVertex v : ent.getVertices()) if (isInsidePaintedVertex(pos, v))\n return v.getTrackSchemeVertexId();\n }\n return -1;\n}\n"
"public String getCellValue(ICellContent cell) {\n StringBuffer cellValue = new StringBuffer();\n Collection list = cell.getChildren();\n Iterator iter = list.iterator();\n while (iter.hasNext()) {\n processText(cellValue, iter.next());\n }\n return cellValue.toString();\n}\n"
"private void visitVar(Node varStatement, Node enclosingCase, Node hoistRoot) {\n Node name = varStatement.removeFirstChild();\n while (name != null) {\n enclosingCase.getLastChild().addChildToBack(IR.exprResult(IR.assign(name, name.removeFirstChild())));\n hoistRoot.getParent().addChildAfter(IR.var...
"public void newIsland(final Player player, final Schematic schematic) {\n final UUID playerUUID = player.getUniqueId();\n boolean firstTime = false;\n if (!plugin.getPlayers().hasIsland(playerUUID)) {\n firstTime = true;\n }\n Location next = getNextIsland();\n plugin.setNewIsland(true);\n ...
"protected void _writeFile(File file) throws IOException {\n Tableau tableau = getTableau();\n if (tableau != null) {\n Effigy effigy = (Effigy) tableau.getContainer();\n if (effigy != null) {\n if (_model != null) {\n Iterator attributes = _model.attributeList(Attribute.cl...
"public void associationTest() {\n entityManager.getTransaction().begin();\n Hike hike = new Hike(\"String_Node_Str\", \"String_Node_Str\");\n Trip trip = new Trip();\n trip.name = \"String_Node_Str\";\n hike.recommendedTrip = trip;\n trip.availableHikes.add(hike);\n entityManager.persist(trip);\n ...
"public boolean execute(final PlotPlayer plr, final String... args) {\n final Location loc = plr.getLocation();\n final Plot plot = MainUtil.getPlot(loc);\n if (plot == null) {\n return !sendMessage(plr, C.NOT_IN_PLOT);\n }\n if (((plot == null) || !plot.hasOwner() || !plot.isOwner(UUIDHandler.get...
"public void setBaby(boolean flag) {\n if (flag) {\n this.datawatcher.watch(12, new Integer(-24000));\n } else {\n this.datawatcher.watch(12, 0);\n }\n ((MyVillager) myPet).isBaby = flag;\n}\n"
"private final <T> T intoArray(Object[] result, Class<?> componentType) {\n int size = getFields().size();\n if (size > result.length) {\n result = (Object[]) Array.newInstance(componentType, size);\n }\n for (int i = 0; i < size; i++) {\n result[i] = Convert.convert(getValue(i), componentType...
"public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuidePackageResourceComponent convertImplementationGuidePackageResourceComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuidePackageResourceComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n ...
"public void setData(T data) {\n if (data == null) {\n Log.e(LOG_TAG, \"String_Node_Str\");\n return;\n }\n mDataNotSet = false;\n mOffsetsCalculated = false;\n mData = data;\n mData = data;\n notifyDataSetChanged();\n calcFormats(data.getYMin(), data.getYMax());\n Log.i(LOG_TAG...
"public void post() {\n WorldTile tile = entity.getLayer().get_tile(this.to.getX(), this.to.getY());\n if (!tile.is_blocked()) {\n super.post();\n }\n}\n"
"public int onStartCommand(Intent intent, int flags, int startId) {\n if (intent != null) {\n final String action = intent.getAction();\n switch(action) {\n case ACTION_KICK_START_DRONESHARE_UPLOADS:\n for (DroneApi droneApi : droneApiStore.values()) {\n dro...
"public static void downloadAndConvert(File folder) throws WikiBrainException {\n try {\n SpatialDataFolder baseFolder = new SpatialDataFolder(folder);\n WpIOUtils ioUtils = new WpIOUtils();\n String tmpFolderName = \"String_Node_Str\";\n File tmpFolder = WpIOUtils.createTempDirectory(tmp...
"public void toString(String prefix, StringBuilder buffer) {\n if (this.parameterCount == 1) {\n if (this.parameterTypes[0].typeTag() == TUPLE) {\n buffer.append(Formatting.Method.parametersStart);\n this.parameterTypes[0].toString(prefix, buffer);\n buffer.append(Formatting.M...
"public void retrieveAssets() {\n super.retrieveAssets();\n renderer.retrieveAssets();\n if (renderer.getCurrentFrameAnimation() == null) {\n startFrameAnimation(initFrameAnimation, null);\n }\n}\n"
"public final void reconfigure() {\n boolean restart = pause();\n super.reconfigure();\n RAM128k currentMemory = (RAM128k) getMemory();\n if (currentMemory != null && !(currentMemory.getClass().equals(ramCard.getValue()))) {\n try {\n RAM128k newMemory = (RAM128k) ramCard.getValue().getCon...
"public void fileDeleted(FilesystemLocation aFileSystemLocation, Path aFile) {\n try {\n luceneIndexHandler.removeFromIndex(aFile.toString());\n } catch (Exception e) {\n aNotifier.showError(\"String_Node_Str\" + aFile, e);\n }\n}\n"
"public void addOptions(Options options) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Context context = ContextUtil.obtainContext(objectModel);\n Request request = ObjectModelHelper.getRequest(objectModel);\n options.addList(\"String_Node_Str\");\n optio...
"public Image getImage(Object obj) {\n if (obj instanceof XSDElementDeclaration) {\n XSDElementDeclaration decl = (XSDElementDeclaration) obj;\n boolean isConcept = false;\n EList l = decl.getIdentityConstraintDefinitions();\n for (Iterator iter = l.iterator(); iter.hasNext(); ) {\n ...
"public String getMavenUri() {\n if (getCustomMavenUri() != null) {\n return getCustomMavenUri();\n }\n mavenUri = initURI();\n return mavenUri;\n}\n"
"public Item upgrade() {\n chargeCap = (((level + 1) / 2) + 3);\n while (scrolls.size() > (levelCap - 1 - level)) scrolls.remove(0);\n return super.upgrade();\n}\n"
"public static ReturnCode deleteRelations(Item item) {\n ReturnCode rc = new ReturnCode(Boolean.TRUE);\n if (item == null || item.getProperty() == null || item instanceof FolderItem) {\n rc.setOk(Boolean.FALSE);\n return rc;\n }\n IFile itemFile = PropertyHelper.getItemFile(item.getProperty())...
"public boolean couldMatch(ScriptContainer scriptContainer, String s) {\n String lower = CoreUtilities.toLowerCase(s);\n return CoreUtilities.getXthArg(1, lower).equals(\"String_Node_Str\") && !CoreUtilities.getXthArg(2, lower).equals(\"String_Node_Str\");\n}\n"
"protected TypedReturnCode<Connection> getConnection(Analysis analysis) {\n TypedReturnCode<Connection> rc = new TypedReturnCode<Connection>();\n DataManager datamanager = analysis.getContext().getConnection();\n if (datamanager == null) {\n rc.setReturnCode(\"String_Node_Str\" + analysis.getName(), fal...
"private boolean hasValidProperties(SettingsHelper helper) {\n if ((helper.getProperty(version) != null) && (helper.getProperty(tagDuration) != null) && (helper.getProperty(debug) != null) && (helper.getProperty(instaKill) != null) && (helper.getProperty(disabledCommands) != null) && (helper.getProperty(disabledWorl...
"private void queueFileForUpload(Uri uri, String mimetype) {\n String path = getRealPathFromURI(uri);\n if (path == null || path.equals(\"String_Node_Str\")) {\n Toast.makeText(this, \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n return;\n }\n File file = new File(path);\n if (!file.exi...
"public void push(String dtmf) throws ScriptException, IOException, SAXException {\n context.push(\"String_Node_Str\" + dtmf.replaceAll(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\");\n}\n"
"private boolean startScrollIfNeeded(int deltaY) {\n final int distance = Math.abs(deltaY);\n final boolean overscroll = mScrollY != 0;\n if (overscroll || distance > mTouchSlop) {\n createScrollingCache();\n mTouchMode = TOUCH_MODE_SCROLL;\n mMotionCorrection = deltaY;\n final Hand...
"public void sendMessages() {\n List<TCPMessage> sends = new ArrayList<>();\n List<TCPMessage> recvs = new ArrayList<>();\n for (int i = 0; i < NO_OF_CHANNELS; i++) {\n TCPChannel channel = channels.get(i);\n for (int j = 0; j < NO_OF_CHANNELS; j++) {\n if (j != i) {\n B...
"public Map<ConanParameter, String> getArgMap() {\n Map<ConanParameter, String> pvp = new HashMap<ConanParameter, String>();\n if (this.inputDir != null) {\n pvp.put(params.getInputDir(), this.inputDir.getAbsolutePath());\n if (this.outputDir != null)\n pvp.put(params.getOutputDir(), this.outputD...
"public void unregisterDataSetObserver(final DataSetObserver observer) {\n linkedAdapter.unregisterDataSetObserver(observer);\n}\n"
"private void prepareForCubeGeneration(CubeHandle cHandle) throws BirtException {\n TabularCubeHandle cubeHandle = null;\n if (cHandle instanceof TabularCubeHandle) {\n cubeHandle = (TabularCubeHandle) cHandle;\n }\n List<IQueryDefinition> queryDefns = new ArrayList<IQueryDefinition>();\n List<Col...
"public void doCancel() {\n synchronized (cancellableList) {\n List<ICancellable> cancellableLists = new ArrayList<ICancellable>(cancellableList);\n for (ICancellable cancellable : cancellableLists) {\n if (cancellable.doCancel())\n cancellable.cancel();\n }\n }\n}\n...
"public void testRequeryProgress() throws Exception {\n TestUploader uploader = null;\n ManagedDownloader downloader = null;\n try {\n uploader = new TestUploader(\"String_Node_Str\", PORT);\n uploader.stopAfter(100);\n downloader = new ManagedDownloader(\"String_Node_Str\", new RemoteFile...
"private static String getNumber(ChangeInfo change) {\n return Integer.toString(change._number);\n}\n"
"public static String getMeasumerementAndUnitOfSensorTypeInArea(String lsmMetaGraph, double longitude, double latitude, float radius, String sensorType) {\n StringBuilder update = new StringBuilder();\n String str = (\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_...
"public String getPassphrase() {\n log.info(\"String_Node_Str\", passphrase);\n return passphrase;\n}\n"
"public void basicTest() throws Exception {\n String htmlSource = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HTMLDocumentImpl doc = loadPage(htmlSource);\n assertTrue(BR.equals(doc.getElementById(\"String_Node_Str\").getNodeName()));\n}\n"
"public Iterator<DownloadJob> iterator() {\n Calendar c = Calendar.getInstance();\n c.setTime(new Date());\n c.add(Calendar.DATE, +14);\n Date compareDate = c.getTime();\n ArrayList<DownloadJob> jobs = new ArrayList<>();\n for (String symbol : symbols) {\n ExpansionSet exp = Sets.findSet(symbol...
"public final void provisionWithException() {\n SyncopeUser user = syncopeUserDAO.find(3L);\n assertNotNull(user);\n Resource resource = resourceDAO.find(\"String_Node_Str\");\n assertNotNull(resource);\n user.setResources(Collections.singleton(resource));\n RuntimeException re = null;\n try {\n ...
"public void fire() throws IllegalActionException {\n super.fire();\n int numKnown = 0;\n int numOnes = 0;\n int width = inputBits.getWidth();\n if (width != 3) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n for (int i = 0; i < width; i++) {\n if (inputBits.isK...
"protected String initExpression(DbMapComponent component, ExternalDbMapEntry dbMapEntry) {\n String expression = super.initExpression(component, dbMapEntry);\n if (expression != null) {\n List<? extends IConnection> inputConnections = component.getIncomingConnections();\n ExternalDbMapData data = (...
"public void testConstructorAlias8() throws Exception {\n testTypes(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"private ClockElement makeMinuteElement(int minute) {\n ClockElement clockElement = ClockElement.createMinute(minute, colorScheme);\n builderFor(clockElement.getElement()).on(EventType.mouseenter, event -> {\n drawMinutesPointer(minutesElements.get(clock.getMinute()));\n drawMinutesPointer(clockElem...
"public boolean canDeploy(Module module) {\n Map<String, ModulePart> parts = module.getParts();\n Iterator<ModuleDeployerSPI> it = getDeployers().iterator();\n while (it.hasNext() == true) {\n ModuleDeployerSPI deployer = it.next();\n String[] partTypes = deployer.getTypes();\n if (partTyp...
"public synchronized GlassFish newGlassFish(GlassFishProperties glassFishProperties) throws GlassFishException {\n try {\n Properties cloned = new Properties();\n cloned.putAll(glassFishProperties.getProperties());\n final GlassFishProperties gfProps = new GlassFishProperties(cloned);\n s...
"private Object[] getPredefinedExpressionsForSharing(ColumnBindingInfo[] headers) {\n Map<String, ColumnBindingInfo> commons = new LinkedHashMap<String, ColumnBindingInfo>();\n Map<String, ColumnBindingInfo> aggs = new LinkedHashMap<String, ColumnBindingInfo>();\n Map<String, ColumnBindingInfo> groups = new Li...
"public ComponentEntity createNestedActor(PtalonActor container) throws PtalonRuntimeException {\n ComponentEntity entity;\n try {\n String uniqueName = container.uniqueName(_symbol);\n if (_getType(_symbol).equals(\"String_Node_Str\")) {\n PtalonActor actor = new PtalonActor(container, u...
"public void actionPerformed(ActionEvent e) {\n choosenClassIndex = cb.getSelectedIndex();\n if (e.getSource() == getInstancesButton)\n getInstances();\n if (e.getSource() == initButton && config.getURI() != null)\n init();\n}\n"
"public double getValue() {\n return getPrice() * multiply;\n}\n"
"public void setColor(Color color) {\n headColor = new Color(color);\n bodyColor = new Color(color);\n bodyColor.a = Config.SNAKE_BODY_LIGHTING;\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n preferences = getSharedPreferences(Constants.SHARED_PREFERENCES, MODE_PRIVATE);\n Log.d(TAG, \"String_Node_Str\");\n switch(checkAppStart()) {\n case NORMAL:\n break;\n case FIRST:\n ...
"public Format setOutputFormat(Format out) {\n if (!(out instanceof VideoFormat) || (null == AbstractCodecExt.matches(out, getMatchingOutputFormats(inputFormat))))\n return null;\n VideoFormat videoOut = (VideoFormat) out;\n Dimension outSize = videoOut.getSize();\n if (outSize == null) {\n Di...
"public RolapMember makeMember(RolapMember parentMember, RolapLevel childLevel, Object value, Object captionValue, boolean parentChild, ResultSet resultSet, Object key, int columnOffset) throws SQLException {\n RolapMember parent = null;\n if (parentMember != null) {\n parent = ((RolapCubeMember) parentMem...
"public static PossibleSymbolTypes determine_possible_symbol_types_for_string(String s) {\n PossibleSymbolTypes p = new PossibleSymbolTypes();\n if (s.length() == 0) {\n return p;\n }\n if (Lexer.number_starters[s.charAt(0)]) {\n int ch = 0;\n if ((s.charAt(ch) == '+') || (s.charAt(ch) ...
"public double calculateDesirability(Brain brain) {\n double score = 0;\n TargetingSystem system = brain.getTargetingSystem();\n if (system.hasTarget()) {\n PlayerEntity bot = brain.getEntityOwner();\n final double tweaker = 1.0;\n final PlayerEntity enemy = system.getCurrentTarget();\n ...
"public void testPostCalendarEvents() throws IOException, URISyntaxException {\n RestConnection conn = new RestConnection();\n assertTrue(conn.login(id2.getName(), \"String_Node_Str\"));\n URI calUri = UriBuilder.fromUri(getContextURI()).path(\"String_Node_Str\").path(id2.getKey().toString()).path(\"String_Nod...
"public void testRecord() throws Exception {\n statServiceClient.recordCount(\"String_Node_Str\", 1);\n serviceBundle.flush();\n triggerLatchWhen(o -> replicator.count == 1);\n waitForLatch(20);\n ok = replicator.count == 1 || die();\n}\n"
"private void splitBranch(Comparator comparator, Object keyForNextNode, Node nextNode) {\n int halfSize = size / 2;\n int comparison = compareWithMidValues(comparator, keyForNextNode, halfSize);\n if (comparison == 0) {\n Branch nextBranch = create(capacity);\n int copyFrom = keyOffset(halfSize);...
"public void endRow(IRowContent row) {\n DimensionType height = row.getHeight();\n float rowHeight = ExcelUtil.convertDimensionType(height, 0) / 1000;\n engine.endRow(rowHeight);\n}\n"
"private void handleAddButtonItem(NSObject sender) {\n CGRect rect = Math.random() % 2 == 0 ? new CGRect(0, 0, 400, 300) : new CGRect(0, 0, 300, 400);\n UIGraphics.beginImageContext(rect.getSize(), false, 1.0);\n UIColor.fromHSBA(Math.random() % 100 / 100, 1, 1, 1).setFill();\n UIGraphics.rectFill(rect, CGB...
"public void seek(long localPos) throws IOException {\n if (localPosToGlobalPos(localPos) >= endPos)\n throw new IOException(CoreMessages.getString(ResourceConstants.OUT_OF_RANGE));\n if (localPos < cur - bufLen || localPos > cur) {\n cur = localPos;\n bufCur = 0;\n bufLen = 0;\n } ...
"public void receiveRconMessage(Connection conn, RconMessage msg) throws IOException {\n RemoteClient client = this.clients.getClient(conn.getId());\n if (client != null) {\n String cmd = msg.getCommand();\n if (cmd != null) {\n if (cmd.startsWith(\"String_Node_Str\")) {\n ...
"public float getAmount1() {\n return (float) DecimalRounder.roundOff((quantityQuarter1 * item.getPrice()), 2);\n}\n"
"private void populateSeriesTypesList() {\n cbSeriesType.removeAll();\n Series series = getSeriesDefinitionForProcessing().getDesignTimeSeries();\n if (series.canParticipateInCombination()) {\n populateSeriesTypes(ChartUIExtensionsImpl.instance().getUIChartTypeExtensions(), series, this.orientation);\n ...
"public String getJavaIdentifier(Definition definition) {\n String n = (definition instanceof SchemaDefinition) ? definition.getDatabase().getOutputSchema(definition.getName()) : definition.getName();\n return GenerationUtil.convertToJavaIdentifier(n);\n}\n"
"private Object convert(EClassifier classifier, String value) throws DeserializeException, MetaDataException {\n if (classifier != null) {\n if (classifier instanceof EClassImpl) {\n if (null != ((EClassImpl) classifier).getEStructuralFeature(WRAPPED_VALUE)) {\n IdEObject newObject =...
"protected void renderBackground(IPrimitiveRenderer ipr, Plot p) throws ChartException {\n super.renderBackground(ipr, p);\n final ChartWithAxes cwa = (ChartWithAxes) getModel();\n final PlotWithAxes pwa = (PlotWithAxes) getComputations();\n final ClientArea ca = p.getClientArea();\n if (!ca.isVisible())...
"private void _createKPort(KNode knode, KPortType portType, Port port, int rank, int index, int maxIndex, float size) {\n KPort kport = KimlLayoutUtil.createInitializedPort();\n KShapeLayout kportlayout = KimlLayoutUtil.getShapeLayout(kport);\n kportlayout.setXpos(0);\n kportlayout.setYpos(0);\n kportlay...
"public boolean onPreferenceClick(Preference preference) {\n if (preference.getKey().equals(\"String_Node_Str\")) {\n firebaseAnalytics.logEvent(\"String_Node_Str\", null);\n startActivity(new Intent(getActivity(), SensorActivity.class));\n } else if (preference.getKey().equals(\"String_Node_Str\"))...
"public static boolean mustChangeLabel(FileName fileName) {\n return !fileName.getResourceLabel().equals(fileName.getLastVersionProperty().getLabel().replace('#', '$'));\n}\n"
"public static void setUsername(String user) {\n if (user == null) {\n username = \"String_Node_Str\";\n props.put(\"String_Node_Str\", getUsername());\n return;\n }\n if (!user.contains(\"String_Node_Str\")) {\n user += \"String_Node_Str\";\n setHost(\"String_Node_Str\");\n ...
"private Integer getBasicRow(final int col) {\n Integer row = null;\n int start = ignoreObjectiveRows ? getNumObjectiveFunctions() : 0;\n for (int i = start; i < getHeight(); i++) {\n if (MathUtils.equals(getEntry(i, col), 1.0, epsilon) && (row == null)) {\n row = i;\n } else if (!Math...
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n if (this.editFile != null) {\n editFile.addBody(body);\n return;\n }\n Item item = submission.getItem();\n Collection collection = submission.getCollection();\n ...
"private static AudioFeature createAudioFeature(JSONObject audioFeatureJson) {\n if (audioFeatureJson == null || audioFeatureJson.isNullObject()) {\n return null;\n }\n AudioFeature audioFeature = new AudioFeature();\n audioFeature.setDanceability(audioFeatureJson.getDouble(\"String_Node_Str\"));\n ...
"public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle != null) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n }\n if (this.actionManager != null) {\n if (this.actionManager.onOptionsItemSelected(item)) {\n return true;\n...
"public ProductDraft get() {\n final ProductVariantDraft masterVariant = ProductVariantDraftBuilder.of().plusAttribute(Sizes.ATTRIBUTE.draftOf(Sizes.S)).plusAttribute(Colors.ATTRIBUTE.draftOf(Colors.GREEN)).sku(UUID.randomUUID().toString()).prices(Price.of(MoneyImpl.ofCents(1234, EUR))).build();\n final ProductVa...
"private static Connection connect(RouterService rs, int port, boolean ultrapeer) throws IOException, BadPacketException {\n ServerSocket ss = new ServerSocket(port);\n rs.connectToHostAsynchronously(\"String_Node_Str\", port);\n Socket socket = ss.accept();\n ss.close();\n socket.setSoTimeout(3000);\n ...
"public IIcon getIcon(int side, int meta) {\n if (side == ForgeDirection.UP.ordinal()) {\n return iconTop;\n } else {\n return iconSide;\n }\n}\n"
"public void got(SchemaDTO result) {\n List<Link> list = new ArrayList<Link>();\n for (UserDatabaseDTO db : result.getDatabases()) {\n if (db.isDesignAllowed() || db.isManageUsersAllowed()) {\n Link link = Link.to(new DbPageState(DbConfigPresenter.DatabaseConfig, db.getId())).labeled(db.getName(...
"protected void computeTabsThatFitInComposite() {\n tabsThatFitInComposite = Math.round(((float) (getSize().y - 22)) / getTabHeight());\n if (tabsThatFitInComposite <= 0) {\n tabsThatFitInComposite = 1;\n }\n}\n"
"protected void onStart() {\n super.onStart();\n if (PlayServicesUtils.isGooglePlayStoreAvailable()) {\n PlayServicesUtils.handleAnyPlayServicesError(this);\n }\n UAirship.shared().getAnalytics().activityStarted(this);\n}\n"
"final java.sql.Timestamp getTimestamp(int column, Calendar cal) throws SqlException {\n switch(jdbcTypes_[column - 1]) {\n case java.sql.Types.TIMESTAMP:\n return getTIMESTAMP(column, cal);\n case java.sql.Types.DATE:\n return getTimestampFromDATE(column, cal);\n case java...
"public Scope newScope(TraceContext currentSpan) {\n local.set(currentSpan);\n return new StrictScope(previous, new Error(String.format(\"String_Node_Str\", Thread.currentThread().getName(), currentSpan)));\n}\n"
"public static void updateSuperposition(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException {\n afpChain.setCa1Length(ca1.length);\n afpChain.setCa2Length(ca2.length);\n int[] focusRes1 = afpChain.getFocusRes1();\n int[] focusRes2 = afpChain.getFocusRes2();\n if (focusRes1 == null) {\n ...
"void increment() {\n count.incrementAndGet();\n rateWindow.incrementForTimestamp(timerGetter.now());\n}\n"
"protected Answer executeProxyLoadScan(final Command cmd, final long proxyVmId, final String proxyVmName, final String proxyManagementIp, final int cmdPort) {\n String result = null;\n final StringBuffer sb = new StringBuffer();\n sb.append(\"String_Node_Str\").append(proxyManagementIp).append(\"String_Node_St...
"public static void preInit() {\n CHAMELEON_SPAWNS = registerSpawnNormal(new PrimitiveMobsSpawnEntry(EntityChameleon.class, PrimitiveMobsConfigSpawns.chameleonSpawnRate) {\n\n public boolean isBiomeSuitable(Biome biome) {\n return BiomeDictionary.hasType(biome, BiomeDictionary.Type.PLAINS) && super...
"public void deviceAdded(ZWaveNode node) {\n if (controllerHandler.getOwnNodeId() == node.getNodeId() || node.getNodeId() == 0 || node.getNodeId() > 232) {\n return;\n }\n logger.debug(\"String_Node_Str\", node.getNodeId());\n ThingUID bridgeUID = controllerHandler.getThing().getUID();\n ZWaveProd...
"void put(String key, Value value, Scope scope) {\n Preconditions.checkNotNull(key, \"String_Node_Str\");\n Preconditions.checkNotNull(value, String.format(\"String_Node_Str\", key));\n Preconditions.checkNotNull(value.toString(), String.format(\"String_Node_Str\", key));\n Preconditions.checkState(nodeName...
"public static ArtifactTypeSearch getPrimitive(String storageString) {\n ArrayList<IArtifactType> artifactTypes = new ArrayList<>();\n for (String artifactTypeId : storageString.split(\"String_Node_Str\")) {\n artifactTypes.add(TokenFactory.createArtifactType(Long.parseLong(artifactTypeId), \"String_Node_S...
"protected void prepareBarHighlight(float x, float y, float barspace, float from, Transformer trans) {\n float spaceHalf = barspace / 2f;\n float top = x - 0.5f + spaceHalf;\n float bottom = x + 0.5f - spaceHalf;\n float left = y >= from ? y : from;\n float right = y <= from ? y : from;\n mBarRect.set...
"public int writeAsBinary(ChannelBuffer buffer, Object value) {\n buffer.writeInt(TYPE_LEN);\n buffer.writeInt(((int) value));\n return 8;\n}\n"
"public void setActiveAlgorithm(int indexFamily, String name, Object cookie) {\n if (!hasImage)\n return;\n final InterestPointScaleSpace<T, D> det = (InterestPointScaleSpace<T, D>) cookie;\n det.detect(ss);\n panel.setPoints(det.getInterestPoints());\n levelPanel.reset();\n}\n"
"protected boolean onGraphOverlayTouchEvent(MotionEvent _Event) {\n super.onGraphOverlayTouchEvent(_Event);\n if (!mStartedAnimation && containsPoints()) {\n mScaleGestureDetector.onTouchEvent(_Event);\n mGestureDetector.onTouchEvent(_Event);\n float newX = getScaledXCoordinate(_Event.getX())...
"public void sendlist() throws IOException {\n HttpServletRequest req = ServletActionContext.getRequest();\n HttpServletResponse resp = ServletActionContext.getResponse();\n List<Node> nodeList = null;\n String targetIdStr = req.getParameter(\"String_Node_Str\");\n int targetId = -1;\n try {\n ...
"public void testHeaderDelete() {\n TodoListHeader header = createHeader();\n repository.insert(header);\n repository.delete(header);\n TodoListHeader fromDb = repository.getHeaderById(header.getUuid());\n assertNull(fromDb);\n}\n"
"public void load() throws OseeCoreException {\n Artifact aiArt = getArtifact();\n if (aiArt != null) {\n IAtsActionableItem aia = ActionableItemFactory.getOrCreate(aiArt.getGuid(), aiArt.getName());\n aia.setHumanReadableId(aiArt.getHumanReadableId());\n aia.setName(aiArt.getName());\n ...