content
stringlengths
40
137k
"public static boolean hasRemoteRuleBody(Rule r) {\n List<Predicate> bodyP = r.getBodyP();\n if (bodyP.size() <= 1)\n return false;\n List<Integer> sendPos = tableSendPos(r, tableMap);\n if (sendPos.isEmpty())\n return false;\n return true;\n}\n"
"void audioCall(View view) {\n callToUser(QBRTCTypes.QBConferenceType.QB_CONFERENCE_TYPE_AUDIO);\n}\n"
"public boolean apply(Game game, Ability source) {\n PermanentsSacrificedWatcher watcher = (PermanentsSacrificedWatcher) game.getState().getWatchers().get(PermanentsSacrificedWatcher.class.getName());\n if (watcher != null) {\n List<Permanent> sacrificedPermanents = watcher.getThisTurnSacrificedPermanents(...
"public void testSiteStat() throws Exception {\n server.stop();\n initServer();\n FTPClient client1 = new FTPClient();\n client1.connect(\"String_Node_Str\", getListenerPort());\n assertTrue(client1.login(ADMIN_USERNAME, ADMIN_PASSWORD));\n assertTrue(client1.makeDirectory(\"String_Node_Str\"));\n ...
"protected void buildStyle(IStyle style, StringBuffer styleBuffer) {\n if (null == style) {\n return;\n }\n AttributeBuilder.buildStyle(styleBuffer, style, parentEmitter);\n String value = style.getVerticalAlign();\n if (null != value) {\n styleBuffer.append(\"String_Node_Str\");\n s...
"private void triggerOnReleaseActionsWhileHorizontalDrag(float xVel) {\n if (xVel < 0 && xVel <= -X_MIN_VELOCITY) {\n draggableView.closeToLeft();\n } else if (xVel > 0 && xVel >= X_MIN_VELOCITY) {\n draggableView.closeToRight();\n } else {\n if (draggableView.isNextToLeftBound()) {\n ...
"public <E> GraphProblemBuilder<E> in(final HipsterGraph<V, E> graph) {\n TransitionFunction<E, V> tf;\n if (graph instanceof HipsterDirectedGraph) {\n final HipsterDirectedGraph<V, E> dg = (HipsterDirectedGraph<V, E>) graph;\n tf = new TransitionFunction<E, V>() {\n public Iterable<Trans...
"private void doAnalyzeCollectorData() {\n log.debug(\"String_Node_Str\");\n now = System.currentTimeMillis();\n findJvmStates();\n for (JvmState jvmState : jvmStates.values()) {\n if (jvmState.isFirstRun()) {\n FileUtils.resetAllConsumedInvocationDataFiles(jvmState.getInvocationsFile());\...
"public void testInvertedSelectionCriteriaNullPK() {\n Exception exception = null;\n try {\n String jpqlString = \"String_Node_Str\";\n List resultList = createEntityManager().createQuery(jpqlString).getResultList();\n } catch (Exception e) {\n logThrowable(exception);\n exception =...
"private boolean importTraces() {\n boolean success = false;\n IOverwriteQuery overwriteQuery = new IOverwriteQuery() {\n public String queryOverwrite(String file) {\n return fOverwrite ? IOverwriteQuery.ALL : IOverwriteQuery.NO_ALL;\n }\n };\n FileSystemStructureProvider fileSystem...
"public void run(IProgressMonitor monitor) throws CoreException {\n try {\n Iterator<IRepositoryViewObject> iterator = selectedVersionItems.iterator();\n while (iterator.hasNext()) {\n IRepositoryViewObject repObj = iterator.next();\n Item selectedItem = repObj.getProperty().getIt...
"public XAResource getXaResource() {\n if (xaResource == null) {\n xaResource = new XaResourceProxy(this);\n }\n return xaResource;\n}\n"
"private void populateData(IRowResultSet rowResultSet, IResultClass rsMeta, SortSpec sortSpec, long cacheSize) throws DataException {\n long startTime = System.currentTimeMillis();\n SizeOfUtil sizeOfUtil = new SizeOfUtil(rsMeta);\n long memoryCacheSize = cacheSize > 0 ? cacheSize : CacheUtil.computeMemoryBuff...
"public boolean customerSignUp(String email, String name, String surname, String password, String phoneNumber, Date dateOfBirth, Address address, PaymentMethod paymentMethod) {\n if (!(checkCustomerEmail(email))) {\n System.out.println(\"String_Node_Str\");\n return false;\n }\n DBConnector dbCon...
"public void setPermissions(String[] permissions, String world) {\n this.node.set(formatPath(world, \"String_Node_Str\"), permissions.length > 0 ? Arrays.asList(permissions) : null);\n this.save();\n}\n"
"public void run() {\n super.run();\n IViewManager viewManager = generalManager.getViewGLCanvasManager();\n viewManager.requestBusyMode(this);\n Iterator<PathwayDatabase> iterPathwayDatabase = pathwayDatabases.iterator();\n while (iterPathwayDatabase.hasNext()) {\n loadAllPathwaysByType(generalMan...
"protected void updateDataClient() {\n float x = dataWatcher.getWatchableObjectFloat(12);\n float y = dataWatcher.getWatchableObjectFloat(13);\n float z = dataWatcher.getWatchableObjectFloat(14);\n laser.tail = new Vec3(x, y, z);\n laser.isVisible = dataWatcher.getWatchableObjectByte(15) == 1;\n Redst...
"private InputStream runOpReport(String[] args) {\n ArrayList<String> cmd = new ArrayList<>();\n cmd.add(\"String_Node_Str\");\n if (OprofileProject.getProfilingBinary().equals(OprofileProject.OPERF_BINARY)) {\n String workingDir = \"String_Node_Str\";\n RemoteProxyManager proxy = RemoteProxyMana...
"public void trigger(Object... args) {\n if (!(args[0] instanceof Integer && args[1] instanceof Integer && args[2] instanceof Float)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n int mouseX = (int) args[0];\n int mouseY = (int) args[1];\n float partialTicks = (float) args[2];...
"public String getImportedType(GenClass context) {\n if (isFeatureMapType())\n return getGenModel().getImportedName(getEffectiveFeatureMapWrapperInterface());\n if (isMapType())\n return getGenModel().getImportedName(getEffectiveMapType(context, getEcoreTypedElement().getEGenericType(), getMapEntryT...
"public void handleMessage(Message msg) {\n if (mPendingIntent) {\n sendIntents();\n mPendingIntent = false;\n }\n mWakeLock.release();\n}\n"
"private Group getGroupWithSameResNumButDiffPDBName() {\n for (Group g : chain.getAtomGroups()) {\n if (g.getResidueNumber().equals(group.getResidueNumber())) {\n if (!g.getPDBName().equals(group.getPDBName())) {\n return g;\n }\n }\n }\n return null;\n}\n"
"public void preInit(FMLPreInitializationEvent event) {\n NetworkRegistry.instance().registerGuiHandler(this, proxy);\n MinecraftForge.EVENT_BUS.register(this);\n MinecraftForge.EVENT_BUS.register(proxy);\n Settings.CONFIGURATION.load();\n blockExplosive = new BlockExplosive(Settings.getNextBlockID());\n...
"private void addMessage(int lineNumber, int columnNumber, ValidationError error, ModelValidationMessage validationMessage) {\n MultiKeyMap errorsByType = errors.get(error);\n if (errorsByType == null) {\n errorsByType = new MultiKeyMap();\n errors.put(error, errorsByType);\n }\n errorsByType....
"private static IAnswerData wrapData(Object val, int dataType) {\n if ((val instanceof String && ((String) val).length() == 0) || (val instanceof Double && ((Double) val).isNaN())) {\n return null;\n }\n if (Constants.DATATYPE_BOOLEAN == dataType || val instanceof Boolean) {\n boolean b;\n ...
"public static org.hl7.fhir.dstu2016may.model.CodeSystem.ConceptDefinitionComponent convertConceptDefinitionComponent(org.hl7.fhir.dstu3.model.CodeSystem.ConceptDefinitionComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.CodeSystem.Con...
"protected void measureHeaderHeight() {\n int height = mHeader.getHeight();\n if (height == 0) {\n final ViewGroup.LayoutParams lp = mHeader.getLayoutParams();\n if (lp != null) {\n height = lp.height;\n }\n if (height <= 0) {\n mHeader.getViewTreeObserver().addOn...
"private void log(Level level, EventType type, String message, Throwable throwable) {\n if (!jlogger.isLoggable(level))\n return;\n String sid = null;\n HttpServletRequest request = ESAPI.httpUtilities().getCurrentRequest();\n if (request != null) {\n HttpSession session = request.getSession(f...
"public Object getProperty(String key) throws PropertyException {\n if (key == null) {\n throw new IllegalArgumentException();\n }\n if (key.equals(JAXBContext.MEDIA_TYPE)) {\n if (xmlUnmarshaller.getMediaType() == MediaType.APPLICATION_JSON) {\n return \"String_Node_Str\";\n } ...
"public List<IMethodInstance> intercept(List<IMethodInstance> methods, ITestContext context) {\n for (IMethodInstance methodIns : methods) {\n ITestNGMethod method = methodIns.getMethod();\n ConstructorOrMethod meth = method.getConstructorOrMethod();\n Method m = meth.getMethod();\n if (m...
"public List<IComponent> filterNeededComponents(Item item, RepositoryNode seletetedNode, ERepositoryObjectType type) {\n List<IComponent> neededComponents = new ArrayList<IComponent>();\n if (!(item instanceof GenericConnectionItem)) {\n return neededComponents;\n }\n IComponentsService service = (IC...
"public static Object get(String apiParams, URL url, String cookie) throws IOException, ParseException {\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setUseCaches(false);\n connection.setRequestMethod(\"String_Node_Str\");\n if (cookie != null) {\n connectio...
"public void setup(final PropertyManagement runTimeProperties, final Configuration configuration) throws Exception {\n final DataStorePluginOptions dataStoreOptions = ((PersistableStore) runTimeProperties.getProperty(StoreParam.INPUT_STORE)).getDataStoreOptions();\n GeoWaveOutputFormat.setDataStoreName(configurat...
"private static void generateCheckpointTime(LoggingContext loggingContext, int numExpectedEvents) throws Exception {\n FileLogReader logReader = injector.getInstance(FileLogReader.class);\n LoggingTester.LogCallback logCallback = new LoggingTester.LogCallback();\n logReader.getLog(loggingContext, 0, Long.MAX_V...
"protected void createButtonsForButtonBar(Composite parent) {\n String buttonText = m_addButtonText;\n if (m_onlyCategories) {\n buttonText = IDialogConstants.OK_LABEL;\n }\n m_addButton = createButton(parent, IDialogConstants.OK_ID, buttonText, true);\n m_addButton.addSelectionListener(new Select...
"public void caseStaticGetInst(StaticGetInst i) {\n SootFieldRef field = i.getFieldRef();\n emit(\"String_Node_Str\" + slashify(field.declaringClass().getName()) + \"String_Node_Str\" + field.name() + \"String_Node_Str\" + jasminDescriptorOf(field.type()));\n}\n"
"public int getPosition() {\n return this.position - this.offset;\n}\n"
"protected void setCalculatedPath(Path path) {\n super.getGrid().setMarked(path.getTargetPos(), false);\n super.setCalculatedPath(path);\n}\n"
"public String experimentoverview(String experimentType, String matching) {\n LOGGER.debug(\"String_Node_Str\");\n ExperimentType eType = ExperimentType.valueOf(experimentType);\n Set<String> annotators = AnnotatorMapping.getAnnotatorsForExperimentType(eType);\n Set<String> datasets = DatasetMapping.getData...
"private boolean cycle(final int cycle, boolean createIfAbsent) {\n if (this.cycle == cycle && state == FOUND_CYCLE) {\n return true;\n }\n if (this.store != null) {\n this.queue.release(this.store);\n }\n this.store = this.queue.storeForCycle(cycle, queue.epoch(), createIfAbsent);\n if ...
"private void fetchFollowersList(String dotComBlogId, final int localTableBlogId, final int page) {\n if (mFollowersEndOfListReached || mFollowersFetchRequestInProgress || !NetworkUtils.checkConnection(this)) {\n return false;\n }\n mFollowersFetchRequestInProgress = true;\n PeopleUtils.fetchFollower...
"public List<Heritrix3JobMonitor> getRunningH3Jobs() {\n List<Heritrix3JobMonitor> h3JobsList = new LinkedList<Heritrix3JobMonitor>();\n synchronized (runningJobMonitorMapSynchronizer) {\n h3JobsList.addAll(runningJobMonitorMap.values());\n }\n return h3JobsList;\n}\n"
"public boolean removeNetworkProxy(NetworkProxy proxy) {\n if (proxy != null) {\n try {\n proxy.stop();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, KernelLoggerInfo.grizzlyStopProxy, e);\n }\n proxy.destroy();\n proxies.remove(proxy);\n retu...
"public static void loadImages() {\n renameSymbols(getSymbolsPath() + File.separator + \"String_Node_Str\");\n smallSymbolsFound = loadSymbolsImages(15);\n mediumSymbolsFound = loadSymbolsImages(25);\n List<String> setCodes = ExpansionRepository.instance.getSetCodes();\n if (setCodes == null) {\n ...
"private static String getParameterOriginalValue(Connection connection, INode node, String paramName) {\n if (node != null || paramName != null) {\n IElementParameter param = node.getElementParameter(paramName);\n if (param != null) {\n Object o = param.getValue();\n if (o instanc...
"public PacketExtension parseExtension(XmlPullParser parser) throws Exception {\n MUCUser mucUser = new MUCUser();\n boolean done = false;\n while (!done) {\n int eventType = parser.next();\n if (eventType == XmlPullParser.START_TAG) {\n if (parser.getName().equals(\"String_Node_Str\")...
"public void adapt(EarthGenerationSettings settings, RegionData data, int x, int z, int width, int height) {\n OverpassTileAccess overpassTile = data.getOverpassTile();\n short[] heightBuffer = data.getHeights();\n GlobType[] globBuffer = data.getGlobcover();\n List<OverpassSource.Element> coastlines = over...
"private void renderMovie(StringOutput sb, ImageComponent ic) {\n int width = 320;\n int height = 240;\n Size size = ic.getScaledSize();\n if (size != null) {\n width = size.getWidth();\n height = size.getHeight() + 20;\n }\n String mapperUrl = ic.getMapperUrl();\n String name = ic.ge...
"private BitSet calculatePositionsInDistanceTrivial(int width, int height, IBooleanCoordinateValueProvider provider, int maxDistance) {\n BitSet inDistance = new BitSet();\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n if (provider.getValue(x, y)) {\n H...
"private void onChatVisibilityChanged(final Page<?> page) {\n final Visibility visibility = page.getVisibility();\n if (visibility == Visibility.focused && unattendedChatPages.remove(page)) {\n eventBus.fireEvent(new UnattendedChatsChangedEvent(ChangeType.removed, page));\n }\n}\n"
"private void reloadElements(XSNamedMap elementDeclarations) {\n Collection removedElements = new HashBag(this.elementDeclarations.values());\n for (int i = elementDeclarations.getLength() - 1; i >= 0; i--) {\n XSElementDecl elementDecl = (XSElementDecl) elementDeclarations.item(i);\n String ns = el...
"public boolean initGameApp(Handle<GameAppContext> thisContext, Handle<GameAppContext> parentContext, java.util.Map<String, String> additionalParams) {\n if (parentContext == null || additionalParams.isEmpty()) {\n return false;\n }\n Map mapEntity = MapJpaController.get().findMap(Integer.parseInt(addit...
"public synchronized void postponeSleep() {\n if (isPreventSleepSupported() && mode == PreventSleepMode.PLAYBACK && !sleepPrevented) {\n resetSleepTimer();\n }\n}\n"
"public Set<Annotation> run(Project paramProject, Constraint paramConstraint, Collection<? extends Element> paramCollection) {\n Set<Annotation> result = new HashSet<Annotation>();\n System.out.println(\"String_Node_Str\" + paramConstraint + \"String_Node_Str\" + paramCollection + \"String_Node_Str\");\n OclEv...
"public void submit() throws NoSuchTokenException {\n Clusters.lookup(Topology.lookup(ClusterController.class, this.getAllocationInfo().getPartition())).getNodeState().submitToken(this);\n}\n"
"public final synchronized void release() {\n try {\n if (mRef.decrementAndGet() <= 0) {\n synchronized (this) {\n flush();\n close();\n }\n }\n } catch (Exception e) {\n LogManager.getLogger(getClass()).error(\"String_Node_Str\", e);\n }...
"public void register(SInternalServicePluginConfiguration internalServicePluginConfiguration, PluginConfiguration pluginConfiguration) {\n ServiceDescriptor serviceDescriptor = StoreFactory.eINSTANCE.createServiceDescriptor();\n serviceDescriptor.setProviderName(\"String_Node_Str\");\n serviceDescriptor.setIde...
"public List<Object[]> evaluateRowSet(IDataRowExpressionEvaluator idre, final Object[] columns) {\n List<Object[]> liResultSet = new ArrayList<Object[]>();\n final int iColumnCount = columns.length;\n Object[] oaTuple;\n final int MAX_ROW_COUNT = ChartUtil.getSupportedMaxRowCount(rtc);\n if (idre.first()...
"private static void renderString(String str, int x, int y, int maxWidth, int color) {\n Minecraft mc = Minecraft.getMinecraft();\n FontRenderer fontRenderer = mc.fontRenderer;\n boolean origFont = fontRenderer.getUnicodeFlag();\n fontRenderer.setUnicodeFlag(true);\n if ((mc.gameSettings.guiScale & 1) ==...
"public Node<TYPE> buildFullNodeTree(int depth) {\n int randomIndex = (int) Math.floor(Math.random() * model.getFunctions().size());\n Node<TYPE> top = (Node<TYPE>) model.getFunctions().get(randomIndex).clone();\n fillChildren(top, 0, depth);\n return top;\n}\n"
"protected boolean validateArithmeticExpression(ArithmeticFactor expression) {\n boolean valid = true;\n if (expression.hasExpression()) {\n Expression factor = expression.getExpression();\n StateFieldPathExpression pathExpression = getStateFieldPathExpression(factor);\n if (pathExpression !=...
"private TreeOperation[] saveSelection() {\n TreeOperation[] selection = new TreeCaretPosition[2];\n Range start = ((Document) nativeNode.getOwnerDocument()).getSelection().getRangeAt(0);\n start = EditorUtils.normalizeCaretPosition(start);\n Range end = start.cloneRange();\n start.collapse(true);\n e...
"private SuggestedWords retrieveOlderSuggestions(final String typedWord, final SuggestedWords previousSuggestedWords) {\n final SuggestedWords oldSuggestedWords = previousSuggestedWords.isPunctuationSuggestions() ? SuggestedWords.EMPTY : previousSuggestedWords;\n final ArrayList<SuggestedWords.SuggestedWordInfo> ...
"public List<ObjectIdentity> findChildren(ObjectIdentity parentIdentity) {\n List<ObjectIdentity> oids = new ArrayList<ObjectIdentity>();\n HTableInterface htable = null;\n try {\n htable = HBaseConnection.get(hbaseUrl).getTable(aclTableName);\n Scan scan = new Scan();\n SingleColumnValueF...
"private ElementDefinition processPaths(String indent, StructureDefinitionSnapshotComponent result, StructureDefinitionSnapshotComponent base, StructureDefinitionDifferentialComponent differential, int baseCursor, int diffCursor, int baseLimit, int diffLimit, String url, String profileName, String contextPathSrc, Strin...
"private void notifyDisconnectCompleted(DisconnectParams dp) {\n if (DBG)\n log(\"String_Node_Str\");\n if (dp.onCompletedMsg != null) {\n Message msg = dp.onCompletedMsg;\n log(String.format(\"String_Node_Str\", msg.what, ((msg.obj instanceof String) ? (String) msg.obj : \"String_Node_Str\")...
"public SparseArray<String> getUnreadItemCountForFolder(Context mContext) {\n String buildSQL = \"String_Node_Str\" + FOLDER_LABEL_ID + \"String_Node_Str\" + RSS_ITEM_RSSITEM_ID + \"String_Node_Str\" + \"String_Node_Str\" + RSS_ITEM_TABLE + \"String_Node_Str\" + \"String_Node_Str\" + SUBSCRIPTION_TABLE + \"String_No...
"public int add(E e) {\n Objects.requireNonNull(e);\n lock.lock();\n try {\n int i = list.size();\n list.add(e);\n reverse.put(e, i);\n return i;\n } finally {\n lock.unlock();\n }\n}\n"
"public Object get(IocMaking ing) {\n Ioc ioc = ing.getIoc();\n if (ioc instanceof Ioc2)\n return ((Ioc2) ioc).get(type, name, ing.getContext());\n return ioc.get(type, name);\n}\n"
"public <T> Class<T> apply() {\n Class<T> baseType = (Class<T>) mockClassSetup.realClass;\n Class<T> baseClassType = baseType;\n Class<T> mockedClass = null;\n if (baseType.isInterface()) {\n mockedClass = new MockedImplementationClass<T>(mockClassSetup.mockUp).createImplementation(baseType);\n ...
"private void colorExpressionFilterFromProblems(AbstractInOutTable table, boolean colorAllowed) {\n List<Problem> problems = table.getExpressionFilter().getProblems();\n if (problems != null && colorAllowed) {\n expressionFilterText.setColoring(false);\n if (!mapperManager.isSearchOption()) {\n ...
"public int getMaxHealth() {\n return this.maxHealth;\n}\n"
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n DBObject content = context.getContent();\n if (content == null)\n content = new BasicDBObject();\n if (content instanceof BasicDBList) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatu...
"protected void addMaxLinearSpeedController(Table table, Limiter limiter) {\n addMaxLinearSpeedController(table, limiter, 0, 50, 1);\n}\n"
"private synchronized void writeStats() throws IOException {\n if (!statsWritten) {\n stats.put(\"String_Node_Str\", FilenameUtils.getName(basename));\n stats.put(\"String_Node_Str\", Integer.toString(permutator.getBiggestSmallIndex()));\n stats.put(\"String_Node_Str\", Integer.toString(permutat...
"private Scriptable getScriptScope(IDataSetInstanceHandle dataSet) {\n Scriptable shared = this.context.getSharedScope();\n Scriptable scope = (Scriptable) Context.javaToJS(new DataSetInstance(dataSet), shared);\n scope.setParentScope(shared);\n scope.setPrototype(dataSet.getScriptScope());\n return scop...
"public static String findIDTagFromFile(File file) {\n String fileNameNoExtension;\n if (file.isFile())\n fileNameNoExtension = FilenameUtils.removeExtension(file.getName());\n else\n fileNameNoExtension = file.getName();\n String fileNameNoExtensionNoDiscNumber = stripDiscNumber(fileNameNoExt...
"public void observeVariantBase(ConcatSortedAlignmentReader sortedReaders, Int2ObjectMap<CountsAtPosition> positionToBases, Alignments.SequenceVariation var, char toChar, char fromChar, int currentRefPosition, int currentReadIndex) {\n maxReadIndex = Math.max(maxReadIndex, currentReadIndex);\n int count = readInd...
"protected IPath getTopLevelNodePath(RepositoryNode repoNode) {\n if ((repoNode.getContentType() == HadoopClusterRepositoryNodeType.HADOOPCLUSTER)) {\n IPath topLevelNodeWorkspaceRelativePath = null;\n IProjectRepositoryNode root = repoNode.getRoot();\n if (root != null) {\n String pr...
"public static void setGame(Game game) {\n mGame = game;\n}\n"
"private void genSubQuery() throws BirtException {\n QueryDefinition queryDefn = newReportQuery();\n GroupDefinition groupDefn = new GroupDefinition();\n groupDefn.setKeyColumn(\"String_Node_Str\");\n queryDefn.addGroup(groupDefn);\n prepareExprNameAndQuery(queryDefn);\n SubqueryDefinition subQueryDef...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setRetainInstance(true);\n getActivity().registerReceiver(receiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));\n Log.d(TAG, \"String_Node_Str\");\n}\n"
"public void onUnconfigured(CameraDevice camera) {\n synchronized (session) {\n if (mClosed) {\n mUnconfigureDrainer.taskFinished();\n }\n }\n}\n"
"public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {\n super.onCreateContextMenu(menu, v, menuInfo);\n menu.add(0, MAP_ID, 0, R.string.map);\n if (routeList.getDevi(((AdapterView.AdapterContextMenuInfo) menuInfo).position, true).size() > 0) {\n menu.add(0, DEVI_ID, 0, R...
"public void receive(Event[] events) {\n EventPrinter.print(events);\n for (Event event : events) {\n switch(count.incrementAndGet()) {\n case 1:\n Assert.assertEquals(55.6f, event.getData(1));\n break;\n case 2:\n junit.framework.Assert.as...
"public void setPosition(int lnNum, int colPos, int pos) {\n super.setPosition(lnNum, colPos, pos);\n if ((emit_debug_info) && (pos > 0) && (debug_info.debug_linenum != lnNum)) {\n debug_info.debug_linenum_dirty = true;\n debug_info.debug_linenum = lnNum;\n }\n}\n"
"public void dispatch(RawPacket packet) {\n getServer().getExecutorService().execute(() -> getServer().getEventManager().fire(new MessageReceiveEvent<>(converter.toMessage(packet))));\n}\n"
"public void element(XPathFragment frag) {\n try {\n isLastEventText = false;\n if (isStartElementOpen) {\n writer.write('>');\n isStartElementOpen = false;\n }\n writer.write(Constants.cr());\n for (int x = 0; x < numberOfTabs; x++) {\n writer.writ...
"public void testResolveConflictInChangeListener() throws Exception {\n Map<String, Object> properties = new TreeMap<String, Object>();\n properties.put(\"String_Node_Str\", \"String_Node_Str\");\n Document doc = database.createDocument();\n UnsavedRevision rev1 = doc.createRevision();\n rev1.setProperti...
"private void exportData(Graph graph) throws Exception {\n int max = graph.getNodeCount(), i = 1;\n HashMap<String, Integer> idx = new HashMap<String, Integer>(3 * max / 2 + 1);\n Progress.start(progressTicket, max);\n writer.append(\"String_Node_Str\" + max + \"String_Node_Str\");\n for (Node node : gra...
"private boolean attachedOutputFileValid(String path) {\n if (path != null && !path.equals(\"String_Node_Str\")) {\n String fullPath = getFullPath(path);\n if (!filePathExists(fullPath)) {\n File file = new File(fullPath);\n if (file.isDirectory()) {\n if (errMsg !=...
"public void listDomainMappings(String applicationId) {\n try {\n Type listType = new TypeToken<ArrayList<DomainMappingBean>>() {\n }.getType();\n List<DomainMappingBean> list = (List<DomainMappingBean>) restClient.listEntity(ENDPOINT_DOMAIN_MAPPINGS.replace(\"String_Node_Str\", applicationId), ...
"private static CliCommand getCliCommand(String[] args) throws CliCommandNotFound {\n final String commandName = args[0];\n final String[] restArgs = java.util.Arrays.copyOfRange(args, 1, args.length);\n switch(commandName) {\n case \"String_Node_Str\":\n return new CliValidateCommand();\n ...
"private void performBtnBackSpaceActions() {\n switch(currentMode) {\n case DECIMAL_MODE:\n if (decstring.length() == 1) {\n decstring = \"String_Node_Str\";\n } else if (decstring.length() > 0) {\n decstring = decstring.substring(0, decstring.length() - 1);...
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if ((requestCode == REQUEST_DIRECTORY) && (resultCode == RESULT_OK)) {\n Toast.makeText(getActivity(), \"String_Node_Str\" + data.getStringExtra(FilePickerActivity.FILE_E...
"public void showLogin(final HTTPRequestContext context) throws Exception {\n final HttpServletRequest request = context.getRequest();\n String destinationURL = request.getParameter(Common.GOTO);\n if (Strings.isEmptyOrNull(destinationURL)) {\n destinationURL = Latkes.getServePath() + Common.ADMIN_INDEX...
"private String readLine() throws IOException {\n String line;\n lineNumber++;\n line = reader.readLine();\n if (line == null) {\n corrupt(\"String_Node_Str\");\n }\n return line.trim();\n}\n"
"private void getWeather() {\n if (mCurCity == null)\n mCurCity = getArguments().getParcelable(ARG_CITY);\n if (NetUtil.getNetworkState(getActivity()) == NetUtil.NETWORN_NONE) {\n Toast.makeText(getActivity(), \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n return;\n }\n mAsynState =...
"protected Function<Feature, Optional<Feature>> getTransformingFunction(final SimpleFeatureType featureType) {\n Function<Feature, Optional<Feature>> function = (feature) -> {\n String featureId = feature.getIdentifier().getID();\n if (!changedNodes.containsKey(featureId)) {\n return Optiona...
"public Report executeOnAIP(IndexService index, ModelService model, StorageService storage, Report report, SimpleJobPluginInfo jobPluginInfo, List<AIP> list, Job job) throws PluginException {\n try {\n for (AIP aip : list) {\n Report reportItem = PluginHelper.initPluginReportItem(this, aip.getId(),...