content
stringlengths
40
137k
"public void testGetRunePages() throws InterruptedException {\n try {\n Thread.sleep(1500);\n handler.getRunePages(SUMMONER_ID_2);\n handler.getRunePagesMultipleUsers(SUMMONER_ID_2, SUMMONER_ID_1);\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n ex...
"public void update() {\n executeTransaction(new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<TModel>() {\n public void processModel(TModel model) {\n model.update();\n }\n }).add(model).build());\n}\n"
"private void computeBbox() {\n float minX, minY, maxX, maxY;\n if (bbox != null && (bbox.getVertices() == null || bbox.getVertices().length != 8)) {\n bbox.setVertices(new float[8]);\n }\n if (currentSource == null || currentSource.skeleton == null) {\n if (bbox != null) {\n float[...
"public ptolemy.data.type.Type getType(String name) throws IllegalActionException {\n NamedObj reference = _reference;\n if (_reference == null) {\n reference = (NamedObj) Variable.this.getContainer();\n }\n Variable result = getScopedVariable(Variable.this, reference, name);\n if (result != null)...
"public void run() {\n LOG.info(\"String_Node_Str\");\n try {\n while (!mStopThread) {\n AuditEventBase event = dequeueEvent();\n if (event != null) {\n super.log(event);\n } else {\n flush();\n }\n }\n flush();\n } ...
"public ItemStack finishSandwich() {\n if (!(ModConfig.getSandwichConfig().isBread(this.layers.get(0)) && ModConfig.getSandwichConfig().isBread(this.layers.get(this.layers.size() - 1))) || this.layers.size() < 2)\n return null;\n NBTTagList layersList = new NBTTagList();\n ItemStack sandwich = GameRegis...
"private <T> List<T> parseJsonList(String json, List<String> elements, Class<T> clazz) {\n Function<String, List<T>> func = HttpValueFunctions.chain(JsonFunctions.asJson(), JsonFunctions.forEach(HttpValueFunctions.chain(JsonFunctions.walk(elements), JsonFunctions.cast(clazz))));\n return func.apply(json);\n}\n"
"private void processXmlElement(Property property, TypeInfo info) {\n if (helper.isAnnotationPresent(property.getElement(), XmlElement.class)) {\n XmlElement element = (XmlElement) helper.getAnnotation(property.getElement(), XmlElement.class);\n property.setIsRequired(element.required());\n prop...
"public void serveResource(ResourceRequest req, ResourceResponse resp) throws PortletException, IOException {\n resp.setContentType(\"String_Node_Str\");\n PrintWriter writer = resp.getWriter();\n String pid = resp.getNamespace();\n Set<String> names = imgMap.keySet();\n String selType = req.getRenderPar...
"public void onReceive(Context context, Intent intent) {\n mChangeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL);\n if (mChangeUserId == UserHandle.USER_NULL) {\n Slog.w(\"String_Node_Str\", \"String_Node_Str\" + intent);\n return;\n }\n onBeginPackageChanges();\n ...
"private Vector populateValueVector(AggrSortDefinition aggrSortDefinition) {\n Set valueSet = new HashSet();\n if (aggrSortDefinition != null) {\n boolean aggrSortDirection = aggrSortDefinition.getDirection();\n if (aggrSortDirection)\n aggrSortType = IDimensionSortDefn.SORT_ASC;\n ...
"private void updateScoredTablePerspectives() {\n tablePerspectives.clear();\n for (Button dataDomainButton : dataDomainButtons) {\n if (!dataDomainButton.isSelected())\n continue;\n ATableBasedDataDomain dataDomain = (ATableBasedDataDomain) DataDomainManager.get().getDataDomainByID(dataD...
"public void run() {\n for (MessageAndMetadata msgAndMetadata : stream) {\n HttpPost post = new HttpPost(url);\n post.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n StringEntity fakeJsonEntity = new StringEntity(\"String_Node_Str\", ContentType.APPLICATION_JSON);\n post.setEntity(...
"public void render(Component comp, Writer out) throws IOException {\n final SmartWriter wh = new SmartWriter(out);\n final Window self = (Window) comp;\n final String uuid = self.getUuid();\n wh.write(\"String_Node_Str\").write(uuid).write(\"String_Node_Str\");\n wh.write(self.getOuterAttrs()).write(sel...
"private void prepareWorkingDirectory() throws IOException {\n FileUtils.forceMkdir(workingDirectory);\n FileUtils.cleanDirectory(workingDirectory);\n modulesWorkingDirectory.mkdirs();\n commonWorkingDirectory.mkdirs();\n}\n"
"public static <T> T deepClone(T from) {\n if (null == from) {\n return null;\n }\n try {\n Class<?> clazz = from.getClass();\n if (clazz.isArray()) {\n int length = Array.getLength(from);\n T clone = (T) Array.newInstance(from.getClass().getComponentType(), length);\...
"public static float convertTextIndentToEM(String indent, float fontSize) {\n DimensionType size = DimensionType.parserUnit(indent);\n try {\n float indentInPt = convertDimensionType(size, 0, 96) / 1000f;\n if (indentInPt != 0f) {\n return indentInPt / fontSize;\n }\n } catch (E...
"public Object getParameterDefaultValue(IViewerReportDesignHandle design, String parameterName, InputOptions options) throws ReportServiceException {\n IGetParameterDefinitionTask task = null;\n Object defaultValue = null;\n try {\n task = getParameterDefinitionTask(design, options);\n if (task !...
"public static String encryptPasswordHex(String input) throws Exception {\n if (input == null) {\n return input;\n }\n SecretKey key = getSecretKeyUTF8();\n Cipher c = Cipher.getInstance(\"String_Node_Str\");\n c.init(Cipher.ENCRYPT_MODE, key, secureRandom);\n byte[] cipherByte = c.doFinal(inpu...
"public void characters(char[] ch, int start, int length) throws SAXException {\n if (isLooping) {\n String text = new String(ch, start, length);\n if (text.length() > 0) {\n for (int i = 0; i < selectColumns.size(); i++) {\n if (outputTexts[i] && !currentRowHaveValue[i]) {\n ...
"private void writeMap(final HashMap<Object, Object> map, final MapType typ, final boolean tag) throws IOException {\n if (tag)\n writeTypeTag(TAG_MAP);\n if (map != null && !map.isEmpty()) {\n writeSize(map.size());\n writeElements(true, map.keySet(), typ.keyType());\n writeElements(t...
"public CompletionStage<Set<ProductProjection>> relatedToProduct(final ProductProjection product, final int numProducts) {\n final Set<String> categoryIds = product.getCategories().stream().map(Reference::getId).collect(toSet());\n if (categoryIds.isEmpty()) {\n return CompletableFuture.completedFuture(emp...
"public void writeNbCalls() {\n try {\n String stopTime = _director.getModelStopTime().toString();\n String info = this.getFullName() + \"String_Node_Str\" + \"String_Node_Str\" + stopTime + \"String_Node_Str\" + \"String_Node_Str\" + _tar + \"String_Node_Str\" + \"String_Node_Str\" + _ner + \"String_N...
"public String getAuthor() {\n return versions.getAuthor();\n}\n"
"public Object getAndRemove(Data key, String source, int completionId, String origin) {\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\n deleteCacheEntry(key);\n R record = records.get(key);\n final Object obj;\n boolean removed = fals...
"public ICompilerAdapter getAdapter(org.eclipse.jdt.internal.compiler.Compiler forCompiler) {\n AjProblemReporter pr = new AjProblemReporter(DefaultErrorHandlingPolicies.proceedWithAllProblems(), forCompiler.options, getProblemFactory());\n forCompiler.problemReporter = pr;\n AjLookupEnvironment le = new AjLoo...
"public boolean emitUntil(Object[] until) {\n boolean res = true;\n synchronized (lock) {\n while (firstCells != null && ordering.compare(firstCells, until) >= 0) {\n Object[] cells = poll();\n row.cells(cells);\n boolean wantMore = downstreamRowReceiver.setNextRow(row);\n ...
"public long previousSetBit(long fromIndex) {\n long fromLongIndex = fromIndex >> 6;\n if (fromLongIndex >= longLength) {\n fromLongIndex = longLength - 1;\n fromIndex = size() - 1;\n }\n long l = bytes.readVolatileLong(fromLongIndex << 3) << ~fromIndex;\n if (l != 0)\n return fromLo...
"public Future<RpcResult<InstantiateServiceFunctionChainOutput>> instantiateServiceFunctionChain(InstantiateServiceFunctionChainInput input) {\n if (dataBroker != null) {\n ServiceFunctionChain chain = findServiceFunctionChain(input.getName());\n if (chain != null) {\n List<SfcServiceFunctio...
"public Set<Point> diff(StringMaze to) {\n char[][] maze1 = this.toCharArray();\n char[][] maze2 = to.toCharArray();\n Set<Point> differentLocations = new HashSet<Point>();\n for (int row = 0; row < this.rows; row++) {\n for (int column = 0; column < this.columns; column++) {\n if (maze1[r...
"private boolean rearrangeWaitsRec(Logger logger, Function fn, Block block, ExecContext currContext) {\n List<WaitStatement> toInline = new ArrayList<WaitStatement>();\n boolean changed = false;\n for (Continuation c : block.getContinuations()) {\n ExecContext newContext = c.childContext(currContext);\n...
"protected void pushReturnValue(FeatureExpr ctx, StackFrame fr) {\n int ival;\n long lval;\n int retSize = 1;\n if (ret != null) {\n switch(retType) {\n case Types.T_BOOLEAN:\n ival = Types.booleanToInt(((Boolean) ret).booleanValue());\n fr.push(ctx, new One<>...
"public void testSetTrustedList() {\n assertFalse(RouterServiceValidator.setTrustedList(null, null));\n assertFalse(RouterServiceValidator.setTrustedList(mContext, null));\n assertFalse(RouterServiceValidator.setTrustedList(null, \"String_Node_Str\"));\n assertTrue(RouterServiceValidator.setTrustedList(mCon...
"public boolean addAll(final IntHashSet coll) {\n Objects.requireNonNull(coll);\n boolean acc = false;\n int value;\n for (final IntIterator iter = coll.iterator(); iter.hasNext(); acc |= add(value)) {\n value = iter.nextValue();\n }\n return acc;\n}\n"
"private StatementResult executeRequest(Statement request) {\n BoltTransaction tx;\n try {\n String params = mapper.writeValueAsString(request.getParameters());\n TypeReference<HashMap<String, Object>> typeRef = new TypeReference<HashMap<String, Object>>() {\n };\n HashMap<String, Obje...
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {\n Server server = null;\n try {\n server = app.getServer(req.getParameter(\"String_Node_Str\"));\n } catch (EntityNotFoundException e) {\n log.severe(e.getMessage());\n }\n req.setAttribute(\"String_No...
"public IIDesc reloadIIDesc(String name) throws IOException {\n String path = IIDesc.getIIDescResourcePath(name);\n IIDesc ndesc = loadIIDesc(path);\n iiDescMap.putLocal(ndesc.getName(), ndesc);\n return ndesc;\n}\n"
"public final String getTestName() {\n StringBuilder stringBuilder = new StringBuilder();\n if (isSharedSession) {\n stringBuilder.append(getDeclaringClassName());\n } else {\n stringBuilder.append(getDeclaringClassName()).append(':').append(getMethodName()).append('(').append(')');\n }\n i...
"private void processQueue() {\n if (logger.isInfoEnabled()) {\n logger.info(\"String_Node_Str\");\n }\n while (!queue.isEmpty()) {\n ClassInfo next = queue.remove(0);\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + next.getClassName());\n }\n ...
"public void saveBookmark() {\n Log.d(_TAG, \"String_Node_Str\");\n boolean remoteResult = false;\n String bookmarkURL = mCURL.getText().toString();\n String strOtags = mOutboundTags.getText().toString();\n String description = mDescription.getText().toString();\n boolean shared = mShared.isChecked();...
"public IBaseCubeQueryDefinition createCubeQuery(IDataQueryDefinition parent) throws BirtException {\n bSingleChart = parent == null;\n CubeHandle cubeHandle = handle.getCube();\n ICubeQueryDefinition cubeQuery = null;\n if (cubeHandle == null) {\n cubeHandle = ChartXTabUtil.getBindingCube(handle);\n...
"private synchronized static Flyway setupFlyway(DataSource datasource) {\n ConfigurationService config = DSpaceServicesFactory.getInstance().getConfigurationService();\n if (flywaydb == null) {\n try (Connection connection = datasource.getConnection()) {\n flywaydb = new Flyway();\n f...
"private void updateTaskServiceState(String taskId, TaskState state) {\n UpdateTaskArg updTaskReq = new UpdateTaskArg();\n updTaskReq.setId(taskId);\n updTaskReq.setState(state);\n try {\n LOGGER.trace(\"String_Node_Str\", taskId);\n taskServiceClient.update(updTaskReq, new RouterObjectId(task...
"public void start() {\n allowedMisclassifications = (int) Math.round(noise * nrOfExamples);\n if (startDescription == null) {\n startNode = new ExampleBasedNode(Thing.instance);\n startNode.setCoveredExamples(learningProblem.getPositiveExamples(), learningProblem.getNegativeExamples());\n } else...
"public synchronized void save() throws IOException {\n throw new IOException(Messages.getString(ResourceConstants.READ_ONLY_ARCHIVE));\n}\n"
"private boolean readAtomHeader(ExtractorInput input) throws IOException, InterruptedException {\n if (atomHeaderBytesRead == 0) {\n if (!input.readFully(atomHeader.data, 0, Atom.HEADER_SIZE, true)) {\n return false;\n }\n atomHeaderBytesRead = Atom.HEADER_SIZE;\n atomHeader.se...
"public static boolean hasAuthority(FileStatus status, String userName, ELinuxAuthority authority) {\n boolean hasAuthority = false;\n if (status == null) {\n return hasAuthority;\n }\n if (authority == null) {\n authority = ELinuxAuthority.READ;\n }\n FsPermission permission = status.ge...
"public void init() {\n TelephonyManager telephony = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);\n telephony.listen(new PhoneListener(), PhoneStateListener.LISTEN_SERVICE_STATE);\n}\n"
"protected synchronized Object doInBackground() throws Exception {\n try {\n setProgress(INITIALIZING);\n frameGrabber = cameraDevice.createFrameGrabber();\n frameGrabber.setImageMode(ImageMode.COLOR);\n if (trackingSettings.useOpenCL) {\n frameGrabber.setPixelFormat(AV_PIX_FMT...
"private void assertDataEntitySearch() throws Exception {\n Id.DatasetInstance datasetInstance = Id.DatasetInstance.from(Id.Namespace.DEFAULT, AllProgramsApp.DATASET_NAME);\n Id.DatasetInstance datasetInstance2 = Id.DatasetInstance.from(Id.Namespace.DEFAULT, AllProgramsApp.DATASET_NAME2);\n Id.DatasetInstance ...
"public static ColorDefinition getDarkerColor(Fill fill) {\n if (fill instanceof ColorDefinition) {\n return goFactory.darker((ColorDefinition) fill);\n }\n if (fill instanceof Gradient) {\n ColorDefinition cdStart = ((Gradient) fill).getStartColor();\n ColorDefinition cdEnd = ((Gradient) ...
"public Integer getPort() {\n return (Integer) (port.intValue() <= 0 ? 389 : port.intValue());\n}\n"
"public void installFromIndex(final String pluginName, final String version, final ShellPrintWriter out) throws Exception {\n List<PluginRef> plugins = getPluginRefs(pluginName);\n if (plugins.isEmpty()) {\n throw new RuntimeException(\"String_Node_Str\" + pluginName + \"String_Node_Str\");\n } else if ...
"protected Control createDialogArea(Composite parent) {\n Composite composite = (Composite) super.createDialogArea(parent);\n GridLayoutFactory.fillDefaults().applyTo(composite);\n CompareViewerPane pane = new CompareViewerPane(composite, SWT.BORDER | SWT.FLAT);\n GridDataFactory.fillDefaults().align(SWT.FI...
"protected void startSetGeneration(DataRepresentationBase data, double minSupport, double minCredibility) {\n this.minSupport = minSupport;\n this.minCredibility = minCredibility;\n this.supportThreshold = (int) Math.ceil(data.getTransactionsList().size() * minSupport);\n SortedMap<BinaryItemSet, Integer> f...
"public static IType findJavaClassInWorkspace(String className) {\n SearchPattern p = SearchPattern.createPattern(className, IJavaSearchConstants.CLASS_AND_INTERFACE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_EXACT_MATCH);\n IJavaSearchScope scope = SearchEngine.createWorkspaceScope();\n SearchEngine ...
"public boolean isEmpty() {\n return availableMaps.length == 0;\n}\n"
"public void readRep(Repository rep, ObjectId id_step, List<DatabaseMeta> databases, Map<String, Counter> counters) throws KettleException {\n m_filename = rep.getStepAttributeString(id_step, 0, \"String_Node_Str\");\n m_schemaFilename = rep.getStepAttributeString(id_step, 0, \"String_Node_Str\");\n m_isJsonEn...
"public DirectValueAccess addOrReplaceDirect(K k, DirectValueAccess old, long valueLen) {\n if (k == null)\n throw new NullPointerException();\n final DirectValueAccessImpl oldImpl = (DirectValueAccessImpl) old;\n if (oldImpl != null && oldImpl.closed)\n throw new IllegalStateException(\"String_N...
"private boolean _tryToMatchPort(Port lhsPort, Port hostPort) {\n if (!_checkPortMatch(lhsPort, hostPort)) {\n return false;\n }\n FastLinkedList<NamedObj>.Entry lhsTail = _lhsFrontier.getTail();\n FastLinkedList<NamedObj>.Entry hostTail = _hostFrontier.getTail();\n _match.put(lhsPort, hostPort);\...
"public Object put(String key, Object value) {\n return wrapOutgoing(original.put(key, unwrapIncoming(value)));\n}\n"
"private int getMinHeight(int maxAllowedVisibleChildren) {\n int minExpandHeight = mNotificationHeaderHeight;\n int visibleChildren = 0;\n boolean firstChild = true;\n int childCount = mChildren.size();\n for (int i = 0; i < childCount; i++) {\n if (visibleChildren >= maxAllowedVisibleChildren) {\...
"public void initialize(WeaveContext context) {\n super.initialize(context);\n runLatch = new CountDownLatch(1);\n name = context.getSpecification().getName();\n Map<String, String> configs = context.getSpecification().getConfigs();\n LOG.info(\"String_Node_Str\" + name);\n try {\n CConfigurati...
"static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId, Bundle options) {\n Tools.HangarLog(\"String_Node_Str\");\n prefs = new PrefsGet(context.getSharedPreferences(\"String_Node_Str\", Context.MODE_PRIVATE));\n SharedPreferences mPrefs = prefs.prefsGet();\n int ro...
"public void read(BitBuffer input) {\n final int align = (int) declaration.getAlignment();\n int pos = input.position() + ((align - (input.position() % align)) % align);\n input.position(pos);\n final List<String> fieldList = declaration.getFieldsList();\n for (String fName : fieldList) {\n Defini...
"public boolean removeItem(Request req) {\n Record record = getRecord(req);\n if (record == null) {\n return false;\n }\n if (req.txnId != -1) {\n unlock(record, req);\n }\n boolean removed = false;\n if (record.getCopyCount() > 0) {\n record.decrementCopyCount();\n remo...
"private void verify(InMemoryPrivateKey pk) {\n Address address = pk.getPublicKey().toAddress(_mbwManager.getNetwork());\n UUID account = SingleAddressAccount.calculateId(address);\n boolean success = _mbwManager.getWalletManager(false).hasAccount(account) || _mbwManager.getColuManager().hasAccount(account);\n...
"public int hashCode() {\n int result = owner != null ? owner.hashCode() : 0;\n result = 31 * result + (related != null ? related.hashCode() : 0);\n result = 31 * result + type;\n return result;\n}\n"
"public List<QueryResult> previewResults(QueryHandle handle) throws ExploreException, HandleNotFoundException, SQLException {\n startAndWait();\n if (inactiveHandleCache.getIfPresent(handle) != null) {\n throw new HandleNotFoundException(\"String_Node_Str\", true);\n }\n OperationInfo operationInfo =...
"public boolean leaveArena(PluginInstance pli, CommandSender sender, String[] args, String uber_permission, String cmd, String action, JavaPlugin plugin, Player p) {\n if (pli.global_players.containsKey(p.getName())) {\n Arena a = pli.global_players.get(p.getName());\n if (a.getArcadeInstance() != null...
"private void executeFunction(Game game, int id) {\n int otherId;\n if (id == 0) {\n otherId = 1;\n } else {\n otherId = 0;\n }\n if (id == 1) {\n LOGGER.debug(\"String_Node_Str\" + id + \"String_Node_Str\" + this.command);\n }\n switch(this.command) {\n case APPROACH:\n...
"synchronized private void showLocalCursor() {\n if (cursorAvailable && !cursorVisible) {\n if (!im.getPF().equal(cursor.getPF()) || cursor.width() == 0 || cursor.height() == 0) {\n vlog.debug(\"String_Node_Str\");\n cursorAvailable = false;\n return;\n }\n curso...
"public Complex getValue() {\n return complexValue();\n}\n"
"public void Before() {\n message = new N_Message(RAW_DATA);\n}\n"
"private void evaluate_unrestricted_nothread(final String sql, final int maxDisplayedRowCount) {\n closeLastExecution();\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n startButton.setVisible(false);\n stopButton.setVisible(true);\n stopButton.setToolT...
"public void onEnable() {\n plugin = this;\n if (!checkVersion(getServer().getVersion(), getDescription().getVersion())) {\n String mwv = getDescription().getVersion();\n mwv = getDescription().getVersion().substring(mwv.indexOf('(') + 1, mwv.indexOf(')'));\n MyPetUtil.getLogger().warning(\"S...
"public List<URLTriggerRequestHeader> getRequestHeaders() {\n if (requestHeaders == null) {\n return new ArrayList<URLTriggerRequestHeader>();\n } else {\n return requestHeaders;\n }\n}\n"
"public void setDuplicateValueCount(Long newDuplicateValueCount) {\n Long oldDuplicateValueCount = duplicateValueCount;\n duplicateValueCount = newDuplicateValueCount;\n if (eNotificationRequired()) {\n eNotify(new ENotificationImpl(this, Notification.SET, IndicatorsPackage.DUPLICATE_COUNT_INDICATOR__DU...
"public static org.hl7.fhir.dstu2016may.model.Attachment convertAttachment(org.hl7.fhir.dstu3.model.Attachment src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Attachment tgt = new org.hl7.fhir.dstu2016may.model.Attachment();\n copyElement(s...
"public Widget getWidgetAt(int column, final SpecificObjectiveDTO userObject) {\n switch(column) {\n case 0:\n return null;\n case 1:\n final Label codeLabel = new Label();\n codeLabel.addStyleName(CSS_CODE_LABEL_STYLE_NAME);\n if (userObject != null) {\n ...
"public <T, U extends T> void addParser(Class<U> clazz, Class<? extends ExternalConstructor<T>> ec) throws BindException {\n Constructor<? extends ExternalConstructor<T>> c;\n try {\n c = ec.getDeclaredConstructor(String.class);\n c.setAccessible(true);\n } catch (NoSuchMethodException e) {\n ...
"public void onConfigurationChanged(Configuration conf) {\n mSubtypeSwitcher.onConfigurationChanged(conf);\n if (mDisplayOrientation != conf.orientation) {\n mDisplayOrientation = conf.orientation;\n mHandler.startOrientationChanging();\n mConnection.beginBatchEdit();\n commitTyped(Las...
"protected int sizeOf(String key, Bitmap value) {\n int bytes = (value.getRowBytes() * value.getHeight());\n return (bytes / 1024);\n}\n"
"public void load() {\n boolean success = false;\n File inFile = getFile();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(inFile));\n try {\n String line;\n while ((line = reader.readLine()) != null) {\n if (!line.startsWith(\"String_Node...
"public void init(com.google.gwt.xml.client.Element srcEle, XulDomContainer container) {\n super.init(srcEle, container);\n setBinding(srcEle.getAttribute(\"String_Node_Str\"));\n setOnCommand(srcEle.getAttribute(\"String_Node_Str\"));\n if (!StringUtils.isEmpty(srcEle.getAttribute(\"String_Node_Str\"))) {\...
"protected void initService(boolean isNeedDownload) {\n BundleContext context = CWMPlugin.getDefault().getBundleContext();\n if (context == null) {\n return;\n }\n ServiceReference serviceReference = context.getServiceReference(getServiceName());\n if (serviceReference != null) {\n setServi...
"public final int scheduleAtFixedRate(Runnable task, long delay, long period, TimeUnit timeUnit) {\n return schedule_i(task, timeUnit.toMillis(delay), timeUnit.toMillis(period), false);\n}\n"
"public boolean isSignificant() throws StructureException {\n double symmetryThreshold = params.getSymmetryThreshold();\n return SymmetryTools.isSignificant(msa, symmetryThreshold);\n}\n"
"public void run() {\n notifyStarted();\n try {\n final DatagramChannel channel = DatagramChannel.open();\n channel.socket().bind(new InetSocketAddress(DIRInterface.DEFAULT_ONCRPC_PORT));\n channel.configureBlocking(true);\n Logging.logMessage(Logging.LEVEL_INFO, Logging.Category.lifec...
"private void handleElementProp(ElementPropertyInfo<TypeT, ClassDeclT> ep, ExplicitGroup compositor) {\n QName ename = ep.getXmlName();\n Occurs occurs = null;\n if (ep.isValueList()) {\n TypeRef t = ep.getTypes().get(0);\n LocalElement e = compositor.element();\n QName tn = t.getTagName()...
"protected void updateAPIManagerDatabase(String sqlScriptPath) throws SQLException {\n log.info(\"String_Node_Str\");\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n Statement statement = null;\n ResultSet resultSet = null;\n try {\n connection = APIMgtDBUtil.get...
"static ClassLoader getProgramClassLoader(Configuration hConf) {\n ClassLoader classLoader = Delegators.getDelegate(hConf.getClassLoader(), MapReduceClassLoader.class);\n if (!(classLoader instanceof MapReduceClassLoader)) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n return ((Ma...
"public List<ConnectionHandleType> getConnectionHandles() {\n ConnectionHandleType handle = new ConnectionHandleType();\n Set<CardStateEntry> entries = states.getMatchingEntries(handle);\n ArrayList<ConnectionHandleType> result = new ArrayList<>(entries.size());\n for (CardStateEntry entry : entries) {\n ...
"public int taxonCount() {\n return taxonCount;\n}\n"
"private void checkDatabase() {\n Cursor mCursor = mDatabaseHelper.getDecision(mApplicationName);\n if (mCursor.getCount() == 0) {\n Log.i(TAG, \"String_Node_Str\");\n ruleNotification();\n } else {\n Log.i(TAG, \"String_Node_Str\");\n mCursor.moveToFirst();\n boolean action ...
"public IContent execute() {\n ExtendedItemDesign extDesign = (ExtendedItemDesign) design;\n IForeignContent extContent = report.createForeignContent();\n setContent(extContent);\n try {\n executeQueries();\n } catch (BirtException ex) {\n logger.log(Level.SEVERE, ex.getMessage(), ex);\n ...
"private void scan(DLNAResource resource) {\n if (running) {\n for (DLNAResource child : resource.getChildren()) {\n if (running && child.allowScan()) {\n child.setDefaultRenderer(resource.getDefaultRenderer());\n String childName = child.getName();\n if...
"public User getUserByEmail(String email) {\n org.openiot.lsm.security.oauth.mgmt.User user = null;\n String sparql = \"String_Node_Str\" + \"String_Node_Str\" + lSMOauthGraphURL + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + email + \"String_Node_Str\";\n try {\n ...
"void setClusterState(ClusterState newState) {\n clusterServiceLock.lock();\n try {\n this.state = newState;\n stateLockRef.set(ClusterStateLock.NOT_LOCKED);\n changeNodeState(newState);\n node.getNodeExtension().onClusterStateChange(newState, persistentChange);\n } finally {\n ...
"public List<Map<String, String>> getMatchRulesFromFiles(Object[] files) {\n List<Map<String, String>> ruleValues = new ArrayList<Map<String, String>>();\n for (Object rule : files) {\n if (rule instanceof IFile) {\n MatchRuleDefinition matchRuleDefinition = DQRuleResourceFileHelper.getInstance(...