content
stringlengths
40
137k
"protected String getBorderWidth(String[] values, CSSEngine engine) {\n for (int i = 0; i < values.length; i++) {\n LexicalUnit u = getUnit(values[i], engine);\n if (u != null) {\n int type = u.getLexicalUnitType();\n if (type >= LexicalUnit.SAC_EM && type <= LexicalUnit.SAC_PERCE...
"public boolean hasInStream(String streamID, String subStreamID, int streamType) {\n String relativePath = getPath(streamID, subStreamID, streamType);\n if (reader != null && reader.exists(relativePath))\n return true;\n else if (writer != null && writer.exists(relativePath))\n return true;\n ...
"public static void setUp() throws WSDLException {\n if (conn == null) {\n try {\n conn = buildConnection();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n String ddlCreateProp = System.getProperty(DATABASE_DDL_CREATE_KEY, DEFAULT_DATABASE_DDL_CREATE);\n ...
"private boolean buildCondition(DbMapComponent component, StringBuilder sbWhere, ExternalDbMapTable table, boolean isFirstClause, ExternalDbMapEntry dbMapEntry, boolean writeCr) {\n String expression = dbMapEntry.getExpression();\n expression = initExpression(component, dbMapEntry);\n IDbOperator dbOperator = ...
"public static void saveStockables(int UID, ConcurrentHashMap<Check, Stockable> stockables) {\n String string = \"String_Node_Str\";\n setStockables(UID, string);\n int count = 0;\n for (Stockable entry : stockables.values()) {\n string += addToStockableString(string, entry);\n count += 1;\n ...
"public List<IComponent> filterComponents(List<IComponent> allComponents) {\n List<IComponent> camelComponents = new ArrayList<IComponent>();\n if (allComponents == null || allComponents.isEmpty()) {\n return camelComponents;\n }\n String categoryName = extractComponentsCategory().getName();\n for...
"protected String _description(int detail, int indent, int bracket) {\n try {\n workspace().getReadAccess();\n String result;\n if (bracket == 1 || bracket == 2) {\n result = super._description(detail, indent, 1);\n } else {\n result = super._description(detail, inde...
"private String getState() throws IOException {\n Client client = new Client(endpointUrl, username, password);\n JSONObject instance = (JSONObject) client.doGet(instanceUrl, false);\n return instance.getString(\"String_Node_Str\");\n}\n"
"protected void createActions(Consumer<AnAction> actionConsumer) {\n for (final Status status : STATUSES) {\n actionConsumer.consume(new DumbAwareAction(status.label) {\n public void actionPerformed(AnActionEvent e) {\n value = Optional.of(status);\n updateFilterValueL...
"private void changeWeapons() {\n if (!destroyedArmour && !MyEquipment.contains(\"String_Node_Str\", true)) {\n weapon = MyEquipment.getItem(MyEquipment.WEAPON).getName();\n MyInventory.getItem(\"String_Node_Str\").interact(\"String_Node_Str\");\n Game.openTab(Game.TAB_EQUIPMENT);\n sleep...
"private void writePackageTree(WSDLDocInterface wsdlDoc) throws OutputFormatterException {\n Node root = getTypesInTree(wsdlDoc);\n StringBuffer html = new StringBuffer();\n html.append(Constants.HTML_H3_START + \"String_Node_Str\" + currentPackageName + Constants.HTML_H3_END);\n html.append(Constants.HTML_...
"public void testEnums2() {\n try {\n JDTResolver.recordInstances = true;\n runConformTest(new String[] { \"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\", \"Str...
"public Serializable generate(SessionImplementor session, Object object) throws HibernateException {\n SearchResultEntity result = (SearchResultEntity) object;\n return SearchResultIdCalculator.calculateSearchResultId(result);\n}\n"
"public void preInitialize(AbstractSession session) throws DescriptorException {\n if (isChildDescriptor()) {\n updateTables();\n setClassIndicatorMapping(getParentDescriptor().getInheritancePolicy().getClassIndicatorMapping());\n setShouldUseClassNameAsIndicator(getParentDescriptor().getInherit...
"private static DocumentTextComparisonResult determineOperation(DocumentTextComparisonResult[][] matrix, int i, int j) {\n DocumentTextEdits editType;\n DocumentTextComparisonResult formerResult;\n if (currentLine[j - 1].editDistance < oldLine[j - 1].editDistance) {\n if (currentLine[j - 1].editDistance...
"public List<Path> calcPaths(GHRequest request, GHResponse ghRsp, ByteArrayBuffer byteBuffer) {\n if (ghStorage == null || !fullyLoaded)\n throw new IllegalStateException(\"String_Node_Str\");\n if (ghStorage.isClosed())\n throw new IllegalStateException(\"String_Node_Str\");\n String vehicle = r...
"private void restoreSnapshot(TransactionSnapshot snapshot) {\n LOG.info(\"String_Node_Str\" + snapshot.getTimestamp());\n Preconditions.checkState(lastSnapshotTime == 0, \"String_Node_Str\");\n Preconditions.checkState(readPointer == 0, \"String_Node_Str\");\n Preconditions.checkState(lastWritePointer == 0...
"private void configureLoggerForLaunch() {\n FileHandler fileHandler;\n try {\n fileHandler = new FileHandler(System.getProperty(\"String_Node_Str\") + \"String_Node_Str\", 50000, 1, true);\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n String version = System.getPrope...
"public VersionedSegmentsList getVersionedList() {\n synchronized (pipeline) {\n List<ImmutableSegment> segmentList = new ArrayList<>(pipeline);\n return new VersionedSegmentsList(segmentList, version);\n }\n}\n"
"public void setup() {\n dor = (DomainObjectReader) getBean(\"String_Node_Str\");\n timeslotRepo = (TimeslotRepo) getBean(\"String_Node_Str\");\n timeService = (TimeService) getBean(\"String_Node_Str\");\n registerNewObjectListener(new TimeslotUpdateHandler(), TimeslotUpdate.class);\n registerNewObjectLi...
"private void dispatchIncomingMessage(ProtocolMessage message) {\n try {\n if (message.getSessionType().equals(SessionType.RPC) || message.getSessionType().equals(SessionType.BULK_DATA)) {\n try {\n if (_wiproVersion == 1) {\n if (message.getVersion() > 1)\n ...
"public void onReceive(Context context, Intent intent) {\n String blurb = intent.getExtras().getString(EXTRA_STRING_BLURB);\n if (ACTION_FIRE_SETTING.equals(intent.getAction())) {\n TaskerAction action = TaskerAction.byBlurb(blurb);\n if (action != null) {\n ServersRunningBean runningBean...
"public void interact() {\n interact = true;\n if (cmdCompleter == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (this.client == null) {\n printLine(\"String_Node_Str\" + \"String_Node_Str\");\n }\n console.setPrompt(getPrompt());\n while (!isTerminated() &&...
"public String getAsText() throws OseeCoreException {\n IOseeBranch branch = TokenFactory.createBranch(branchUuid, \"String_Node_Str\");\n QueryFactory factory = OrcsApplication.getOrcsApi().getQueryFactory();\n QueryBuilder queryBuilder = factory.fromBranch(branch).andUuid(artifactUuid);\n if (transactionI...
"public String call() {\n int sumCD = Integer.parseInt(subtitles.get(index).getSubSumCD());\n targetFolder = subtitles.get(0).getTargetFolder();\n if (targetFolder == null) {\n for (int i = 0; i < sumCD; i++) try {\n downloadSubtitle(subtitles.get(index + i), true);\n }\n else {\n ...
"protected R processExpiredEntry(Data key, R record, long expiryTime, long now, String source, String origin) {\n final boolean isExpired = isExpiredAt(expiryTime, now);\n if (!isExpired) {\n return record;\n }\n if (isStatisticsEnabled()) {\n statistics.increaseCacheExpiries(1);\n }\n R...
"public void closeAll() {\n if (countInstances() > 0) {\n String message = \"String_Node_Str\";\n int answer = JOptionPane.showConfirmDialog(monFrame, message);\n if (answer == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n } else {\n System.exit(0);\n }\n}\n"
"private void processInit(Properties props) {\n m_storageService = new HawtDBStorageService();\n m_storageService.initStore();\n subscriptions.init(m_storageService);\n String passwdPath = props.getProperty(\"String_Node_Str\");\n String configPath = System.getProperty(\"String_Node_Str\", \"String_Node_...
"private BasicDialog createDialog() {\n final BasicDialog newDialog = new BasicDialog((possibleParent != null) ? possibleParent : new Shell(SWT.SHELL_TRIM), true) {\n\n public void handleEvent(Event event) {\n if (ignoreDisposeEvent == false) {\n hide();\n } else {\n ...
"private static JOGLTarget createJOGLTarget(GL gl, Results results, Configuration config) {\n JOGLTarget target;\n if (\"String_Node_Str\".equals(config.getString(\"String_Node_Str\"))) {\n boolean shadowVolumes = \"String_Node_Str\".equals(config.getString(\"String_Node_Str\")) || \"String_Node_Str\".equa...
"void updateProperty(String path, String propertyName, String value) {\n UpdateOp op = getUpdateOperationForNode(path);\n String key = Utils.escapePropertyName(propertyName);\n op.addMapEntry(key + \"String_Node_Str\" + revision.toString(), value);\n long increment = mk.getWriteCountIncrement(path);\n op...
"public void handle(ChangeEvent e) {\n InstanceStatistics event = (InstanceStatistics) e;\n if (super.name == null || !super.name.equals(event.getName())) {\n return;\n }\n VerticalPanel vPanel = (VerticalPanel) disclosurePanel.getContent();\n Label label = (Label) vPanel.getWidget(0);\n label....
"public static Controller defineModulesWithManyLoaders(Configuration cf, List<Layer> parentLayers, ClassLoader parentLoader) {\n List<Layer> parents = new ArrayList<>(parentLayers);\n checkConfiguration(cf, parents);\n checkCreateClassLoaderPermission();\n checkGetClassLoaderPermission();\n LoaderPool po...
"public ITextMetrics getTextMetrics(Label la) {\n return new SwingTextMetrics(this, la, getGraphicsContext());\n}\n"
"public byte[] request(final String cluster, byte[] request, long timeoutMillis) throws IOException, InterruptedException, RemoteException, TimeoutException {\n final Long id = nextId.addAndGet(1);\n final Result result = new Result();\n pending.put(id, result);\n try {\n protocol.send(OpCode.REQUEST...
"public static void main(String[] args) {\n try {\n Kademlia kad1 = new Kademlia(\"String_Node_Str\", new NodeId(\"String_Node_Str\"), 7574);\n Kademlia kad2 = new Kademlia(\"String_Node_Str\", new NodeId(\"String_Node_Str\"), 7572);\n DHTContentImpl c1 = new DHTContentImpl(kad2.getOwnerId(), \"...
"String mangleNameForGlobal(JMethod x) {\n String s = JjsUtils.getNameString(x.getEnclosingType()) + '_' + JjsUtils.getNameString(x) + \"String_Node_Str\";\n for (int i = 0; i < x.getOriginalParamTypes().size(); ++i) {\n JType type = x.getOriginalParamTypes().get(i);\n s += type.getJavahSignatureNam...
"public void remove(RepositoryItem item) {\n httpManager.disposeHttpRepoItemElemByItemId(item, \"String_Node_Str\");\n gridFS.remove(item.getId());\n}\n"
"public void close() throws IOException {\n if (this.stream != null) {\n this.stream.write(this.buffer, 0, this.pos);\n }\n super.close();\n}\n"
"private void removeReadOutdated(String volumeName, String fileName) throws Exception {\n AdminVolume volume = client.openVolume(volumeName, null, options);\n AdminFileHandle fileHandle = volume.openFile(userCredentials, fileName, Helper.flagsToInt(SYSTEM_V_FCNTL_H_O_CREAT, SYSTEM_V_FCNTL_H_O_RDWR), 0777);\n i...
"public void run() {\n if (rootDisposed)\n return;\n if (rootChannelTab != null) {\n appendText(rootChannelTab, getRootTextOutput(), new ChatLine(messageBody, new ChatRoomParticipant(fromID)));\n rootChannelTab.makeTabItemBold();\n}\n"
"public void run() {\n GooglePlayServicesUtil.getErrorDialog(resultCode, ChatRoomsActivity.this, PLAY_SERVICES_RESOLUTION_REQUEST).show();\n}\n"
"public GetSFDescriptionOutput getSFDescriptionInfoFromNetconf(String nodeName) {\n GetSFDescriptionOutput ret = null;\n printTraceStart(LOG);\n ServiceFunctionDescriptionMonitorReportService service = getSfDescriptionMonitorService(nodeName);\n if (service != null) {\n Future<RpcResult<GetSFDescript...
"public String getText(Object element) {\n if (element instanceof IParameterInterfacePO) {\n IParameterInterfacePO tdc = (IParameterInterfacePO) element;\n StringBuilder info = new StringBuilder(tdc.getName());\n Iterator iter = tdc.getParameterList().iterator();\n boolean parameterExist ...
"private static void responseFileContent(HttpExchange t, File f) throws Exception {\n try (OutputStream os = t.getResponseBody();\n FileInputStream fis = new FileInputStream(f)) {\n while (true) {\n byte[] b = new byte[8192];\n int n = fis.read(b);\n if (n < 0) {\n ...
"private void limitChildren(String webhook) {\n String errorRoot = getErrorRoot(webhook);\n try {\n for (String child : curator.getChildren().forPath(errorRoot)) {\n Stat stat = new Stat();\n byte[] bytes = curator.getData().storingStatIn(stat).forPath(getChildPath(errorRoot, child));...
"private int getCurrentPage() {\n StaplerRequest req = Stapler.getCurrentRequest();\n int page = req == null ? 1 : req.getParameter(\"String_Node_Str\") == null ? 1 : Integer.parseInt(req.getParameter(\"String_Node_Str\").toString());\n page = Math.max(page, 1);\n int component = req.getParameter(\"String_N...
"private soot.jimple.FieldRef getFieldRef(polyglot.ast.Field field) {\n soot.SootClass receiverClass = ((soot.RefType) Util.getSootType(field.target().type())).getSootClass();\n soot.SootFieldRef receiverField = soot.Scene.v().makeFieldRef(receiverClass, field.name(), Util.getSootType(field.type()), field.flags()...
"protected void assertEquals(ReusableBuffer expected, ReusableBuffer val) {\n if (expected == null)\n return;\n String e = new String(expected);\n String v = new String(val);\n assertEquals(e, v);\n}\n"
"public void testAllMethods() throws Exception {\n String accountName = ESAPI.randomizer().getRandomString(8, EncoderConstants.CHAR_ALPHANUMERICS);\n Authenticator instance = ESAPI.authenticator();\n String password = instance.generateStrongPassword();\n User user = instance.createUser(accountName, password...
"private static String sqlMessage(DataAccessException cause) {\n Throwable causeThroawle = cause.getCause();\n if (causeThroawle instanceof SQLException) {\n return sqlMessage((SQLException) causeThroawle);\n }\n return cause.getMessage();\n}\n"
"public List<Integer> updateFriendList() throws QBResponseException {\n Collection<QBRosterEntry> rosterEntryCollection;\n List<Integer> userIdsList = new ArrayList<Integer>();\n if (roster != null) {\n rosterEntryCollection = roster.getEntries();\n if (!rosterEntryCollection.isEmpty()) {\n ...
"public static DataEngineContext newInstance(int mode, Scriptable scope, IDocArchiveReader reader, IDocArchiveWriter writer) throws BirtException {\n return new DataEngineContext(mode, scope, reader, writer, null);\n}\n"
"private synchronized void startDelayed() {\n handler.removeCallbacks(callback);\n int buckOffTime = interval * retryCount;\n handler.postDelayed(callback, interval + buckOffTime);\n hasAlreadySet = true;\n}\n"
"public static DatabaseConnection cloneOriginalValueConnection(DatabaseConnection dbConn, boolean defaultContext, String selectedContext) {\n if (dbConn == null) {\n return null;\n }\n ContextType contextType = ConnectionContextHelper.getContextTypeForContextMode(null, dbConn, selectedContext, defaultCo...
"public boolean clear(Object value) throws FieldTypeMismatchException {\n Data data = tryCast(value);\n Value v = new Value(data);\n if (values != null) {\n values.remove(v);\n } catch (UnsupportedOperationException e) {\n throw new FieldTypeMismatchException(e);\n }\n return true;\n}\n"...
"public Object createValue() throws BasicException {\n boolean dateRange = false;\n Object[] afilter = new Object[12];\n if (jtxtTicketID.getText() == null || jtxtTicketID.getText().equals(\"String_Node_Str\")) {\n afilter[0] = QBFCompareEnum.COMP_NONE;\n afilter[1] = null;\n } else {\n ...
"public static int receiveBufferCount(Config cfg) {\n return cfg.getIntegerValue(RECEIVE_BUFFERS_COUNT, 128);\n}\n"
"protected void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders) {\n Cassandra.Client conn = PelopsUtils.getCassandraConnection(pool);\n try {\n Map<ByteBuffer, Map<String, List<Mutation>>> mutationMap = new HashMap<ByteBuffer, Map<String, List<Mutation>>>(...
"public void readFile(String _fileName) throws Exception {\n curLoading = true;\n String loadLog = \"String_Node_Str\";\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n CustHandler handler;\n if (IOHandler.isFileZ...
"public void setupTests() {\n TestUtils.initializeStaticTestStorage();\n}\n"
"private String findClusterId(String applicationId, String alias) {\n try {\n AutoscalerServiceClient autoscalerServiceClient = AutoscalerServiceClient.getInstance();\n return autoscalerServiceClient.findClusterId(applicationId, alias);\n } catch (Exception e) {\n String message = String.form...
"protected IngestionResult addNewBlockEntity(EntityType entityInfo, Connection connection) throws IngestException, SQLException {\n BlockType block = entityInfo.getBlock();\n IngestionResult ingestionResult = null;\n if (KomaduUtils.manageDBLock(DBLockConstants.LOCK_ACQUIRE, block.getBlockURI(), connection)) {...
"public void turnLeft() {\n if (timesteps >= maxTimesteps) {\n return;\n }\n if (orientation == EAST) {\n orientation = NORTH;\n } else if (orientation == NORTH) {\n orientation = WEST;\n } else if (orientation == WEST) {\n orientation = SOUTH;\n } else if (orientation == S...
"private void reuseSpace() throws SQLException {\n if (SysProperties.REUSE_SPACE_QUICKLY) {\n synchronized (potentiallyFreePages) {\n if (potentiallyFreePages.size() >= SysProperties.REUSE_SPACE_AFTER) {\n Session[] sessions = database.getSessions(true);\n int oldest =...
"public static WebArchive getDeployment() {\n return getCapedwarfDeployment().addClass(AbstractTest.class);\n}\n"
"public void testGetAllowedUnits() throws MetaDataParserException {\n loadMetaData(this.getClass().getResourceAsStream(\"String_Node_Str\"));\n IElementDefn styleDefn = MetaDataDictionary.getInstance().getElement(ReportDesignConstants.STYLE_ELEMENT);\n PropertyDefn propDefn = (ElementPropertyDefn) styleDefn.ge...
"private void updateSrtpControlsForDtls(MediaType mediaType, MediaDescription localMd, MediaDescription remoteMd) {\n SrtpControls srtpControls = getSrtpControls();\n DtlsControl dtlsControl = (DtlsControl) srtpControls.get(mediaType, SrtpControlType.DTLS_SRTP);\n if (dtlsControl == null)\n return;\n ...
"public String toString() {\n return provider.toString();\n}\n"
"protected void writeText(int type, String txt, IContent content, InlineFlag inlineFlag, IStyle computedStyle, IStyle inlineStyle) {\n HyperlinkInfo hyper = getHyperlink(content);\n int paragraphWidth = (int) WordUtil.twipToPt(context.getCurrentWidth());\n if (content instanceof TextContent) {\n TextFla...
"protected final <T> void writeRequest(final Channel channel, final AsyncHttpClientConfig config, final NettyResponseFuture<T> future, final HttpRequest nettyRequest) {\n try {\n if (!channel.isOpen() || !channel.isConnected()) {\n if (!remotelyClosed(channel, future)) {\n abort(futu...
"public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception {\n if (!(msg instanceof HttpObject) || !(((HttpObject) msg).getDecoderResult().isSuccess())) {\n sendError(ctx, HttpResponseStatus.BAD_REQUEST, null);\n }\n HttpObject httpObject = (HttpObject) msg;\n messageQueue...
"public void dumpEnergyValueRegistryToLog(EnergyValueRegistryProxy.Phase phase) {\n LogHelper.info(String.format(\"String_Node_Str\", phase));\n if (phase == EnergyValueRegistryProxy.Phase.PRE_ASSIGNMENT) {\n for (WrappedStack wrappedStack : this.preAssignedMappings.keySet()) {\n LogHelper.info(...
"public void finish(OperationOrder operationOrder) throws AxelorException {\n operationOrderStockMoveService.finish(operationOrder);\n operationOrder.setRealEndDateT(today);\n operationOrder.setStatusSelect(IOperationOrder.STATUS_FINISHED);\n return operationOrder;\n}\n"
"public void resolveActions() {\n int oldRedstoneOutput = redstoneOutput;\n redstoneOutput = 0;\n BitSet temp = prevBroadcastSignal;\n temp.clear();\n prevBroadcastSignal = broadcastSignal;\n broadcastSignal = temp;\n startResolution();\n Map<IAction, Boolean> activeActions = new HashMap<IAction...
"public static synchronized void delInstatnceTask(Integer taskId, Date taskDate) {\n TaskRunInfo taskRunInfo = taskRunInfoMap.get(taskId);\n if (taskRunInfo == null) {\n logger.error(\"String_Node_Str\", taskId, DateUtils2.dateStr(taskDate));\n return;\n }\n if (taskRunInfo.removeRunning(taskD...
"protected DbMaintainTask createDbMaintainTask() {\n return new MarkDatabaseAsUpToDateTask(getDbMaintainDatabases(), scriptLocations, autoCreateDbMaintainScriptsTable, qualifiers, includedQualifiers, excludedQualifiers, scriptFileExtensions);\n}\n"
"private void parseMessages(Peer peer, IOBuffer buffer, Protocol protocol) {\n byte numberOfMessages = protocol.getNumberOfMessages();\n while (numberOfMessages > 0 && buffer.position() < buffer.limit()) {\n numberOfMessages--;\n Message message = MessageHeader.readMessageHeader(buffer, messageFacto...
"public boolean check(RequirementsContext context, List<String> args) throws RequirementCheckException {\n for (String arg : args) {\n if (aH.matchesQuantity(arg) || aH.matchesInteger(arg) || aH.matchesDouble(arg)) {\n quantity = aH.getDoubleFrom(arg);\n dB.echoDebug(\"String_Node_Str\" ...
"private void readIndexes() throws JDBCException, SQLException {\n updateListeners(\"String_Node_Str\" + database.toString() + \"String_Node_Str\");\n for (Table table : tablesMap.values()) {\n ResultSet rs;\n try {\n rs = databaseMetaData.getIndexInfo(database.getCatalogName(), database....
"public void onPlayerTeleport(PlayerTeleportEvent event) {\n PortalPlayerSession ps = this.plugin.getPortalSession(event.getPlayer());\n ps.playerDidTeleport(event.getTo());\n super.onPlayerTeleport(event);\n}\n"
"public void start() throws IOException {\n String kmsLogin = getProperty(KURENTO_KMS_LOGIN_PROP);\n String kmsPasswd = getProperty(KURENTO_KMS_PASSWD_PROP);\n String kmsPem = getProperty(KURENTO_KMS_PEM_PROP);\n isKmsRemote = !wsUri.contains(\"String_Node_Str\") && !wsUri.contains(\"String_Node_Str\");\n ...
"private void drawBuilding(int x, int y, IBuilding building, float color) {\n EBuildingType type = building.getBuildingType();\n float state = building.getStateProgress();\n float maskState;\n if (state < 0.5f) {\n maskState = state * 2;\n for (ImageLink link : type.getBuildImages()) {\n ...
"private int getIndexForWeek(int week) {\n Preconditions.checkState(mViewPager.getAdapter() instanceof EventsByWeekFragmentPagerAdapter, \"String_Node_Str\");\n List<EventWeekTab> tabs = ((EventsByWeekFragmentPagerAdapter) mViewPager.getAdapter()).getTabs();\n for (int i = 0; i < tabs.size(); i++) {\n i...
"public static void main(String[] args) throws Exception {\n BufferedReader reader;\n if (args.length == 0)\n reader = new BufferedReader(new InputStreamReader(System.in, \"String_Node_Str\"));\n else\n reader = FileManager.getReader(args[0]);\n String line;\n String[][] tokens;\n boolea...
"public void testClosure7() throws Exception {\n testClosureTypes(CLOSURE_DEFS + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n try {\n if (level.isFirst()) {\n level.setFirst(false);\n } else {\n position = level;\n level = new Level(true, true, level);\n if (position.isFirst()) {\n ...
"public void getDebugInfo(List<String> left, List<String> right, EnumFacing side) {\n left.add(\"String_Node_Str\" + tankHeatableOut.getDebugString());\n left.add(\"String_Node_Str\" + tankCoolableIn.getDebugString());\n}\n"
"protected void customReceiveSms(String new_name, String phone, String body, long date) {\n userPref = PreferenceManager.getDefaultSharedPreferences(mContext);\n activ_notif = userPref.getBoolean(LheidoUtils.receiver_notification_key, true);\n Toast.makeText(mContext, \"String_Node_Str\" + new_name, Toast.LENG...
"public void put(HttpExchange exchange, String data, boolean internalCall, JSONObject internalResp) {\n try {\n String tailResources = null;\n if (uri_link != null) {\n tailResources = getTailResourceUri(exchange, true);\n String thisUri = uri_link + tailResources;\n Re...
"private double getMaxLatitude(DataTilePos pos) {\n return (pos.getTileX() + 1) * this.tileSize.getX();\n}\n"
"public void attemptLogin() {\n if (loginTask != null) {\n return;\n }\n usernameEdit.setError(null);\n passwordEdit.setError(null);\n username = usernameEdit.getText().toString().replace(\"String_Node_Str\", \"String_Node_Str\");\n password = passwordEdit.getText().toString();\n boolean can...
"private void updateSelection(StatusBarNotification n) {\n String oldNotif = NotificationHelper.getContentDescription((StatusBarNotification) mNotificationView.getTag());\n String newNotif = NotificationHelper.getContentDescription(n);\n boolean sameNotification = newNotif.equals(oldNotif);\n if (!mAnimatin...
"private void validate(final String aDatasourceName, final List<Change> aLog, Consumer<Void> onSuccess, Consumer<Exception> onFailure, Scripts.Space aSpace) {\n List<CallPoint> toBeCalled = new ArrayList<>();\n validators.keySet().stream().forEach((validatorName) -> {\n Collection<String> datasourcesUnderC...
"private void setError(ILayerNode node, Exception error) {\n node.setError(error);\n if (tree != null) {\n tree.relayoutOnEDT();\n }\n}\n"
"public void dispatchEvent(MembershipEvent event, MembershipListener listener) {\n switch(event.getEventType()) {\n case MembershipEvent.MEMBER_ADDED:\n listener.memberAdded(event);\n break;\n case MembershipEvent.MEMBER_REMOVED:\n listener.memberRemoved(event);\n ...
"private static boolean isEqualExpression2(IScriptExpression se, IScriptExpression se2) {\n if (se == se2)\n return true;\n else if (se == null || se2 == null)\n return false;\n return (se.getDataType() == se2.getDataType() || (se.getDataType() == DataType.ANY_TYPE && se2.getDataType() == DataTyp...
"public List<Resource<?>> resolve() {\n Resource<?> r = res;\n String tk;\n char slashChar = File.separatorChar;\n String slashString = File.separator;\n if (\"String_Node_Str\".equals(path)) {\n return singleResult(r);\n } else if (path.startsWith(\"String_Node_Str\")) {\n File homeDir ...
"private void recordNumAlignedReads(String[] inputFilenames) {\n numMatchedReads = new int[samples.length];\n String[] sampleIds = AlignmentReaderImpl.getBasenames(inputFilenames);\n for (int i = 0; i < sampleIds.length; i++) {\n sampleIds[i] = FilenameUtils.getName(sampleIds[i]);\n if (sampleIds...
"private static Map<Class<? extends DiffElement>, Class<? extends IMerger>> getMergerTypes(String fileExtension) {\n if (!fileExtension.equals(lastExtension)) {\n lastExtension = fileExtension;\n MERGER_TYPES.clear();\n for (final int priority : MERGER_PRIORITIES) {\n final Map<Class<...