content
stringlengths
40
137k
"public void initOUT() {\n context = EclipseContextFactory.getServiceContext(FrameworkUtil.getBundle(this.getClass()).getBundleContext());\n context.set(MPart.class, null);\n context.set(ECommandService.class, new ECommandService() {\n public Command getCommand(String commandId) {\n return nu...
"public boolean tryPut(Data key, Object value, long ttl) {\n checkIfLoaded();\n final long now = getNow();\n markRecordStoreExpirable(ttl);\n Record record = getRecordOrNull(key, now, false);\n if (record == null) {\n value = mapServiceContext.interceptPut(name, null, value);\n value = mapD...
"public void handleVolumeSync(DataStore store) {\n if (store == null) {\n s_logger.warn(\"String_Node_Str\");\n return;\n }\n long storeId = store.getId();\n String lockString = \"String_Node_Str\" + storeId;\n GlobalLock syncLock = GlobalLock.getInternLock(lockString);\n try {\n ...
"private List<FunctionDescriptor> findWithImplicitConversions(FunctionLibrary library, Function function, Expression[] args, Class<?>[] types, boolean hasArgWithoutType) throws Exception {\n ConversionResult cr = null;\n try {\n cr = library.determineNecessaryConversions(function.getName(), function.getTyp...
"public String getDisplayName() {\n String returnValue = super.getAccountPropertyString(ProtocolProviderFactory.USER_ID);\n String protocolName = getAccountPropertyString(ProtocolProviderFactory.PROTOCOL);\n String service = getService();\n if (service == null || service.trim().length() == 0) {\n pro...
"public WordpressPost findPostById(int postId) throws WordpressXmlRpcException {\n Vector<Object> params = new Vector<Object>();\n params.add(postId);\n params.add(wordpressConnection.getUsername());\n params.add(wordpressConnection.getPassword());\n Map<String, Object> map = invoke(FIND_POST_BY_ID_METHO...
"public void run() {\n final boolean supportControllerMode = doesSupportControllerMode();\n if (!supportControllerMode) {\n postErrorEvent(CommandExecutionError.COMMAND_UNSUPPORTED, listener);\n return;\n }\n Timber.d(\"String_Node_Str\", unit);\n try {\n final String command = SOLOL...
"public void execute() throws TaskException {\n if (!destinationDirectory.isDirectory()) {\n throw new TaskException(\"String_Node_Str\" + destinationDirectory.getPath() + \"String_Node_Str\");\n }\n if (!sourceDirectory.isDirectory()) {\n throw new TaskException(\"String_Node_Str\" + sourceDirec...
"public void addErrorListener(ErrorListener listener, boolean deliverErrorNow, Throwable error) {\n if (listener != null) {\n if (deliverErrorNow) {\n listener.onErrorOccurred(error);\n } else {\n synchronized (ERROR_LISTENER_LOCK) {\n errorListeners.add(listener);\...
"public boolean isVirtual() {\n return isBooleanAsCharacter(virtual);\n}\n"
"public String indexStop(final String streamName) {\n try {\n ssaw.api().stopIndexStream(streamName);\n return \"String_Node_Str\".concat(streamName).concat(\"String_Node_Str\");\n } catch (StratioStreamingException e) {\n throw new StreamingShellException(e);\n }\n}\n"
"public static void main(String[] args) {\n int noOfProcs = Integer.parseInt(args[1]);\n int procId = Integer.parseInt(args[0]);\n NetworkInfo networkInfo = new NetworkInfo(procId);\n networkInfo.addProperty(TCPContext.NETWORK_HOSTNAME, \"String_Node_Str\");\n networkInfo.addProperty(TCPContext.NETWORK_P...
"private AbstractDB<Object> getColumnSetAnalysisMapDB(AnalysisType analysisType) {\n if (AnalysisType.COLUMN_SET == analysisType) {\n SimpleStatIndicator simpleStatIndicator = null;\n for (Indicator indicator : analysis.getResults().getIndicators()) {\n if (SimpleStatIndicator.class.isInstan...
"private boolean openSocket() {\n try {\n Socket s = new Socket(_ip, 3221);\n s.setKeepAlive(true);\n s.setSoTimeout(_timeoutInSeconds * 1000);\n _toSrx = new BufferedWriter(new OutputStreamWriter(s.getOutputStream(), \"String_Node_Str\"));\n _fromSrx = new BufferedReader(new Input...
"protected DragTracker createDragTracker() {\n if (this.mainConnector == null) {\n this.mainConnector = new NodeConnectorTool(nodePart).getConnector();\n }\n if (this.mainConnector == null) {\n return null;\n }\n final List<Object> listArgs = new ArrayList<Object>();\n listArgs.add(null)...
"public boolean checkAliasAccess(Subject authenticatedSubject, String destination, String aliasDestination, int destinationType, String operationType, boolean logWarning) throws MessagingAuthorizationException {\n SibTr.entry(tc, CLASS_NAME + \"String_Node_Str\", new Object[] { authenticatedSubject, aliasDestination...
"private Pair<Path, Path> findSymlinkRoot(Path symlinkPath) {\n int projectPathComponents = projectFilesystem.getRootPath().getNameCount();\n for (int pathEndIndex = (projectPathComponents + 1); pathEndIndex <= symlinkPath.getNameCount(); pathEndIndex++) {\n Path symlinkSubpath = symlinkPath.getRoot().reso...
"public boolean update() {\n final jedd.internal.RelationContainer newEdges = new jedd.internal.RelationContainer(new jedd.Attribute[] { srcc.v(), srcm.v(), stmt.v(), kind.v(), tgtc.v(), tgtm.v() }, new jedd.PhysicalDomain[] { C1.v(), MS.v(), ST.v(), KD.v(), C2.v(), MT.v() }, (\"String_Node_Str\" + \"String_Node_Str...
"public int getRowId() throws BirtException {\n checkStarted();\n if (rowIDUtil == null)\n rowIDUtil = new RowIDUtil();\n return rowIDUtil.getRowID(this.odiResult, getRowIndex());\n}\n"
"public final void fire() throws IllegalActionException {\n int i;\n int integer, remainder;\n IntToken token;\n BooleanToken[] bits;\n bits = new BooleanToken[32];\n token = (IntToken) (input.get(0));\n integer = token.intValue();\n if (integer < 0) {\n bits[0] = new BooleanToken(true);\...
"public boolean canBeImplementedExternally() {\n return getLeafType().canBeImplementedExternally() || isJavaScriptObject(getElementType());\n}\n"
"protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) {\n Raster source = sources[0];\n Rectangle srcRect = mapDestRect(destRect, 0);\n int formatTag = MediaLibAccessor.findCompatibleTag(sources, dest);\n MediaLibAccessor srcAccessor = new MediaLibAccessor(source, srcRect, f...
"private void doProxy(String service, List<InetSocketAddress> serversList) throws Exception {\n List<InetSocketAddress> servers = serversList;\n if (CollectionUtils.isEmpty(servers)) {\n servers = new ArrayList<InetSocketAddress>();\n }\n LoadBalanceProxyFactoryBean lbProxyBean = new LoadBalanceProxy...
"public String[] getSurrogateCreationTypeNames() {\n List<String> allTypeNames = new ArrayList<String>();\n IElementParameter param = getComponent().getElementParameter(EParameterName.SK_CREATION.getName());\n for (SurrogateCreationType type : SurrogateCreationType.values()) {\n if (param != null) {\n ...
"public String getPathInfo() {\n if (!isPathInfoComputed()) {\n String servletPath = getServletPath();\n int servletPathLength = servletPath.length();\n String requestUri = getRequestURI();\n pathInfo = requestUri.substring(getContextPath().length()).replaceAll(\"String_Node_Str\", \"Stri...
"public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {\n for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {\n if (!scriptEntry.hasObject(\"String_Node_Str\") && !arg.matchesPrefix(\"String_Node_Str\"))\n scriptEntry.addObject(\"String_Node_Str\", arg.getV...
"protected void internalTransform(String phaseName, Map<String, String> options) {\n if (output) {\n out.println(\"String_Node_Str\");\n BodyBuilder.retrieveAllBodies();\n BodyBuilder.retrieveAllNames();\n Scene scene = G.v().soot_Scene();\n scene.releaseActiveHierarchy();\n hierarchy = scene.g...
"ShortestPathTree getSPT(boolean arriveBy) {\n final GenericAStar astar = new GenericAStar();\n astar.setSearchTerminationStrategy(this);\n astar.setSkipTraverseResultStrategy(this);\n final RoutingRequest req = new RoutingRequest();\n final Vertex startVertex = arriveBy ? start.getToVertex() : start.get...
"public List<IDBResource> getAllMasterShardingDBResource(int tableNum, String clusterName, String tableName) throws SQLException {\n List<IDBResource> dbResources = new ArrayList<IDBResource>();\n if (tableNum == 0) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n IDBResource dbResourc...
"public java.sql.Timestamp convertStringToTimestamp(String sourceString, QName schemaType) {\n XMLGregorianCalendar xmlGregorianCalender = null;\n try {\n xmlGregorianCalender = convertStringToXMLGregorianCalendar(sourceString);\n } catch (Exception ex) {\n if (XMLConstants.DATE_QNAME.equals(sche...
"public void execute(AdminCommandContext context) {\n report = context.getActionReport();\n ActionReport.MessagePart part = report.getTopMessagePart();\n boolean isCluster = tgt.isCluster(list_target);\n LbConfigs lbconfigs = domain.getExtensionByType(LbConfigs.class);\n if (lbconfigs == null) {\n ...
"public void testGrowingIndex() throws Exception {\n ITmfTrace<TmfEvent>[] testTraces = new TmfTraceStub[2];\n try {\n URL location = FileLocator.find(TmfCoreTestPlugin.getDefault().getBundle(), new Path(DIRECTORY + File.separator + TEST_STREAM1), null);\n File test = new File(FileLocator.toFileURL(...
"private final void clearUnusedColumnHints(DataSetHandle dataSetHandle, IResultMetaData metaData) throws BirtException {\n PropertyHandle handle = dataSetHandle.getPropertyHandle(DataSetHandle.COLUMN_HINTS_PROP);\n if (handle != null && handle.getListValue() != null) {\n ArrayList list = handle.getListValu...
"private List<Point3d[]> calcRepeatUnits() {\n Set<Integer> uniqueModels = new HashSet<Integer>(subunits.getModelNumbers());\n int modelCount = uniqueModels.size();\n List<Integer> folds = this.subunits.getFolds();\n int maxFold = folds.get(folds.size() - 1);\n List<Point3d[]> repeatTraces = new ArrayLis...
"public static void getJdbcDriverFromFile(List fileList) {\n if (failLoadFileList != null) {\n boolean duplicated;\n for (int i = 0; i < failLoadFileList.size(); i++) {\n if (!fileList.contains(failLoadFileList.get(i))) {\n fileList.add(failLoadFileList.get(i));\n }...
"Map<String, Integer> getEntriesNotIn(FMLControlledNamespacedRegistry<I> registry) {\n Map<String, Integer> ret = new HashMap<String, Integer>();\n for (I thing : (Iterable<I>) this) {\n if (!registry.field_148758_b.containsKey(thing))\n ret.put(func_148750_c(thing), getId(thing));\n }\n r...
"void addScrapView(View scrap, int position) {\n AbsListView.LayoutParams lp = (AbsListView.LayoutParams) scrap.getLayoutParams();\n if (lp == null) {\n return;\n }\n lp.scrappedFromPosition = position;\n int viewType = lp.viewType;\n final boolean scrapHasTransientState = scrap.hasTransientSta...
"private static Set<Integer> findPoolReferences(FieldInfo fieldInfo, Field field) {\n ClassInfo classInfo = fieldInfo.getClassInfo();\n IdFinderVisitor visitor = new IdFinderVisitor(classInfo);\n visitor.visitConstantUtf8(field.getNameIndex());\n visitor.visitConstantUtf8(field.getSignatureIndex());\n De...
"private List<UpdateResult> checkNodePropertiesFromRepository(final Node node, boolean onlySimpleShow) {\n if (node == null) {\n return Collections.emptyList();\n }\n List<UpdateResult> propertiesResults = new ArrayList<UpdateResult>();\n String propertyType = (String) node.getPropertyValue(EParamete...
"public void stop() {\n try {\n if (scheduler != null) {\n scheduler.deleteJob(new JobKey(jobName, jobGroup));\n }\n } catch (SchedulerException e) {\n LOG.error(\"String_Node_Str\" + e.getMessage(), e);\n }\n}\n"
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n T...
"public Object invoke(Object mockedInstance, Method method, Object[] args) throws Throwable {\n String mockClassDesc = (String) args[0];\n String mockedClassDesc = (String) args[1];\n String mockDesc = (String) args[4];\n Object mockUp = TestRun.getMock(mockClassDesc, mockedInstance);\n if (mockUp == nul...
"public Collection<TeleportDestinationClientInfo> getValidDestinations() {\n List<TeleportDestinationClientInfo> result = new ArrayList<TeleportDestinationClientInfo>();\n for (TeleportDestination destination : destinations.values()) {\n TeleportDestinationClientInfo destinationClientInfo = new TeleportDes...
"public boolean writeInTextFile(File file, String data) {\n boolean noExceptionOccured = true;\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file, true), \"String_Node_Str\"));\n writer.write(data);\n writer.newLine();\n ...
"public void handleConnectionException(Throwable throwable, Client client) {\n Session session = SessionManager.getInstance().getSession(client.getSessionId());\n if (session != null) {\n StringBuilder sessionInfo = new StringBuilder();\n User user = UserManager.getInstance().getUser(session.getUser...
"protected Product getMosaicProduct(File metadataFile) throws IOException {\n if (!validateOpenJpegExecutables(S2Config.OPJ_INFO_EXE, S2Config.OPJ_DECOMPRESSOR_EXE)) {\n throw new IOException(\"String_Node_Str\");\n }\n Objects.requireNonNull(metadataFile);\n boolean isAGranule = S2OrthoGranuleMetada...
"protected String getRootWorkingDir(boolean withSep) {\n if (!isWinTargetPlatform() && (isExportConfig() || isRunAsExport())) {\n if (withSep) {\n return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + JavaUtils.PATH_SEPARATOR;\n } else {\n return ProcessorConstants.CMD_KEY_WORD_ROOTPA...
"public void missingPathCallBack() {\n CallbackImpl c = new CallbackImpl();\n c.addPathItem(\"String_Node_Str\", null);\n vh.resetResults();\n validator.validate(vh, context, c);\n Assert.assertEquals(\"String_Node_Str\" + vh, 1, vh.getEventsSize());\n String message = vh.getResult().getEvents().get(0...
"public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(labelLineSize);\n dest.writeInt(labelTextSize);\n dest.writeInt(gridLineColor);\n dest.writeInt(gridLineWidth);\n dest.writeInt(xLabelsNumber);\n dest.writeInt(yLabelsNumber);\n}\n"
"protected void onPostExecute(HttpResponse response) {\n unsentPayloads = new LinkedList<Payload>();\n int success_count = 0;\n int status_code = response.getStatusLine().getStatusCode();\n Log.d(TAG, \"String_Node_Str\" + status_code);\n if (status_code == 200) {\n success_count++;\n for (...
"static List<Integer> calculateBreaks(Document doc, int width, FontMetrics fm) {\n return calculateBreaks(doc, 0, doc.text.length(), width, fm::stringWidth);\n}\n"
"public static void create(final CommandContext args, final MyResidence plugin, final Nation nation, final Player player, final Session session) throws IncompleteRegionException, MyResidenceException {\n final Selection selection = plugin.getWorldEdit().getSelection(player);\n if (selection == null) {\n th...
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (type != Types.VOID) {\n return null;\n }\n if (this.action != null) {\n IValue action1 = this.action.withType(Types.VOID, typeContext, markers, context);\n if (action1 == null) {\n ...
"public static void printPredLL(DataOnMemory<DataInstance> batch) throws Exception {\n predLLAcum[0] += svb.predictedLogLikelihood(batch);\n predLLAcum[1] += driftSVB.predictedLogLikelihood(batch);\n predLLAcum[2] += stochasticVI.predictedLogLikelihood(batch);\n predLLAcum[3] += populationVI.predictedLogLik...
"public void fire(Snapshot snap) {\n if (!State.EXTANT.equals(snap.getState())) {\n return false;\n } else if (!Lookups.checkPrivilege(request, PolicySpec.VENDOR_EC2, PolicySpec.EC2_RESOURCE_SNAPSHOT, request.getSnapshotId(), snap.getOwner())) {\n throw Exceptions.undeclared(\"String_Node_Str\" + re...
"public Vector<Node> expand(TypedSparqlQuery tsq, Manipulator m) {\n Set<Tupel> s = tsq.query(uri);\n m.check(s, this);\n Vector<Node> Nodes = new Vector<Node>();\n Iterator<Tupel> it = s.iterator();\n while (it.hasNext()) {\n Tupel t = (Tupel) it.next();\n try {\n if (t.a.equals...
"public String toString() {\n return String.format(\"String_Node_Str\", key, value, value.getType().getSimpleName());\n}\n"
"private void wipeChunks() {\n File regionFile = worldData.regionFile(currentRegion);\n if (!regionFile.canWrite()) {\n regionFile.setWritable(true);\n if (!regionFile.canWrite()) {\n sendMessage(\"String_Node_Str\" + regionFile.getName());\n return;\n }\n }\n int ...
"public void move(final String toResource) throws IOException {\n try {\n HadoopFileUtils.move(getConfiguration(), getResourcePath(), determineResourcePath(getConfiguration(), toResource));\n } catch (URISyntaxException e) {\n throw new IOException(e);\n }\n}\n"
"public MageObject getShortLivingLKI(UUID objectId, Zone zone) {\n Map<UUID, MageObject> shortLivingLkiMap = shortLivingLKI.get(zone);\n if (shortLivingLkiMap != null) {\n MageObject object = shortLivingLkiMap.get(objectId);\n if (object != null) {\n return object.copy();\n }\n ...
"public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {\n if ((par1World.getBlockMetadata(par2, par3, par4) & 8) != 0)\n return true;\n TileQuarry tq = null;\n int sx, sy, sz;\n sx = par2;\n sy =...
"public void testTopicCluster() {\n final Config cfg = new Config();\n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n HazelcastInstance[] instances = factory.newInstances(cfg);\n HazelcastInstance h1 = instances[0];\n HazelcastInstance h2 = instances[1];\n String topicName...
"public List<DocumentElement> visit(boolean forViewEditor, String outputDir) {\n System.out.println(\"String_Node_Str\" + forViewEditor + \"String_Node_Str\" + outputDir + \"String_Node_Str\");\n List<DocumentElement> res = new ArrayList<DocumentElement>();\n List<Reference> refs = new ArrayList<Reference>();\...
"public WebResourceResponse shouldInterceptRequest(WebView view, String stringUrl) {\n URL imageUrl = null;\n if (mSite != null && UrlUtils.isImageUrl(stringUrl)) {\n try {\n imageUrl = new URL(UrlUtils.makeHttps(stringUrl));\n } catch (MalformedURLException e) {\n AppLog.e(App...
"public List compile(CompilerConfiguration config) throws CompilerException {\n String[] args = createCommandLine(config);\n if (args.length == 0) {\n getLogger().info(\"String_Node_Str\");\n return Collections.emptyList();\n }\n List<CompilerError> messages;\n if (config.isFork()) {\n ...
"private void parseObject(Object3d obj, TextureAtlas textureAtlas) {\n int numFaces = faces.size();\n int faceIndex = 0;\n boolean hasBitmaps = textureAtlas.hasBitmaps();\n for (int i = 0; i < numFaces; i++) {\n ParseObjectFace face = faces.get(i);\n BitmapAsset ba = textureAtlas.getBitmapAsse...
"static byte[] readFully(InputStream stream, int[] outLen) throws IOException {\n int pos = 0;\n final int initialAvail = stream.available();\n byte[] data = new byte[initialAvail > 0 ? (initialAvail + 1) : 16384];\n while (true) {\n int amt = stream.read(data, pos, data.length - pos);\n if (D...
"protected void internalParseXml(Element element) throws IOException {\n Element librariesElement = XmlHelper.getDistinctElementByName(element, KEY_ELEM_LIBRARIES);\n NodeList libraries = librariesElement.getElementsByTagName(KEY_ELEM_LIBRARY);\n this.libs = new ArrayList<>();\n for (int i = 0; i < librarie...
"public static ResponseEntity<ErrorMessage> createResponse405() {\n HttpHeaders headers = new HttpHeaders();\n Set<HttpMethod> allowMethods = new HashSet<HttpMethod>();\n allowMethods.add(HttpMethod.GET);\n headers.setAllow(allowMethods);\n ResponseEntity<ErrorMessage> response = createErrorResponseWithH...
"public void remove(Session session) throws SQLException {\n if (trace.isDebugEnabled()) {\n trace.debug(this + \"String_Node_Str\");\n }\n removeAllRows();\n store.free(rootPageId);\n store.removeMeta(this, session);\n}\n"
"public void readFromNBT(NBTTagCompound nbt) {\n superReadFromNBT(nbt);\n}\n"
"public static void main(String[] args) {\n if (args.length == 1) {\n try {\n FQLProgram init = FQLParser.program(args[0]);\n Triple<FqlEnvironment, String, List<Throwable>> envX = Driver.makeEnv(init, new String[0]);\n if (envX.third.size() > 0) {\n throw new R...
"synchronized public ArchiveEntry getEntry(String name) throws IOException {\n if (isArchiveFileAvailable(af)) {\n return af.getEntry(name);\n } else {\n throw new IOException(\"String_Node_Str\" + name + \"String_Node_Str\" + systemId);\n }\n}\n"
"public static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, Form form, ElementParameter parentParam, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new ArrayList<>();\n if (category == null) {\n category = EComponentCategory.BASIC;\n ...
"private void processRemoveItem(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = UIUtil.getSubmitButton(request, \"String_Node_Str\");\n WorkspaceItem workspaceItem;\n try {\n int ...
"public void mergeInto(MaterialsManager newManager) {\n for (int i = 0; i < EMaterialType.NUMBER_OF_MATERIALS; i++) {\n requestQueues[i].mergeInto(newManager.requestQueues[i]);\n }\n}\n"
"public void testSync() throws Exception {\n expect(mockStore.getFilesystem()).andReturn(mockFs);\n expect(mockStore.getId()).andReturn(mockId);\n replay(mockStore, mockFs);\n HDFSBlobStoreConnection connection = createTestConnection();\n connection.sync();\n}\n"
"public ArrayList<Actor> scrapeActors() {\n ArrayList<Actor> actorList = new ArrayList<Actor>();\n initializeJapaneseDocument();\n Element actorEnglishSearchElement = document.select(\"String_Node_Str\").first();\n Elements japaneseActors = japaneseDocument.select(\"String_Node_Str\");\n if (actorEnglish...
"public void initPopulation(List<SuspiciousCode> suspicious) throws Exception {\n log.info(\"String_Node_Str\" + suspicious.size());\n initializePopulation(suspicious);\n if (originalVariant == null) {\n log.error(\"String_Node_Str\");\n return;\n }\n if (originalVariant.getModificationPoin...
"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 Effigy topEffigy = effigy.topEffigy();\n topEffigy.writeFile(file);\n if...
"public boolean applies(Ability abilityToModify, Ability source, Game game) {\n if (abilityToModify instanceof ActivatedAbility) {\n Permanent permanent = game.getPermanent(abilityToModify.getSourceId());\n if (permanent != null && filter.match(permanent, source.getSourceId(), source.getControllerId(),...
"public Object fetchItemsForApplication(long applicationId) {\n PodioParser<ItemRequest.Result> parser = new PodioParser<ItemRequest.Result>(ItemRequest.Result.class);\n ItemFilter filter = new ItemFilter().withApplicationId(applicationId);\n ItemRequest filterRequest = new ItemRequest(null, null, null, null, ...
"private TemplateModel dealWithNumericalKey(TemplateModel targetModel, int index, Environment env) throws TemplateException {\n if (targetModel instanceof TemplateSequenceModel) {\n TemplateSequenceModel tsm = (TemplateSequenceModel) targetModel;\n int size;\n try {\n size = tsm.size(...
"public void onPlayerJoin(PlayerJoinEvent event) {\n final Player player = event.getPlayer();\n EBean.checkIP(player.getName(), Util.craftFirePlayer.getIP(player));\n player.teleport(Util.landLocation(player.getLocation()));\n if (Config.link_rename && !Util.checkOtherName(player.getName()).equals(player.ge...
"public void menuAboutToShow(IMenuManager manager) {\n if (observerView instanceof List) {\n manager.add(new Separator());\n manager.add(new RenameItemAction(ObserverMetaData.this));\n}\n"
"public String getInvalidValuesStatement() {\n IndicatorDefinition indicatorDefinition = this.indicator.getIndicatorDefinition();\n if (indicatorDefinition instanceof UDIndicatorDefinition) {\n EList<TdExpression> list = ((UDIndicatorDefinition) indicatorDefinition).getViewInvalidValuesExpression();\n ...
"public static List<Object[]> testcases() {\n Object[][] array = new Object[][] { { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" } };\n List<Object[]> result = new LinkedList<Object[]>();\n for (Object[] sub : array) {\n result.add(new Object[] { \"String_Node_S...
"public GroupStatistics getGroupStatistics() {\n double averageEquivalenceClassSize = 0;\n int averageEquivalenceClassSizeCounter = 0;\n int maximalEquivalenceClassSize = Integer.MIN_VALUE;\n int minimalEquivalenceClassSize = Integer.MAX_VALUE;\n int numberOfEquivalenceClasses = 0;\n int numberOfOutly...
"public boolean next() {\n iIndex++;\n try {\n if (subEdgeCursor != null) {\n boolean hasNext = false;\n while (hasNext = hasNext(subEdgeCursor)) {\n if (fSubPositionNodes.positionIsChanged()) {\n break;\n }\n }\n ...
"private boolean authorSatisfies(IModel model, TurboIssue issue) {\n if (!content.isPresent())\n return false;\n Optional<TurboUser> author = model.getAuthorOfIssue(issue);\n String content = this.content.get().toLowerCase();\n String login = author.getLoginName() == null ? \"String_Node_Str\" : auth...
"public Instantiation<T> visitChildren(ModelVisitor nv) throws ScribbleException {\n T arg = (T) this.visitChild(this.arg, nv);\n return reconstruct(arg);\n}\n"
"public String getForeignKeyList(int start, int limit, String value, String xpathForeignKey, String xpathInfoForeignKey) throws RemoteException, Exception {\n org.apache.log4j.Logger.getLogger(this.getClass()).debug(\"String_Node_Str\" + xpathForeignKey + \"String_Node_Str\" + xpathInfoForeignKey + \"String_Node_Str...
"private void updateMatchScoresBasedOnDataMatches(SQLiteDatabase db, long rawContactId, int mode, MatchCandidateList candidates, ContactMatcher matcher) {\n final Cursor c = db.query(Tables.DATA_JOIN_MIMETYPE_RAW_CONTACTS, DATA_JOIN_MIMETYPE_COLUMNS, Data.RAW_CONTACT_ID + \"String_Node_Str\" + rawContactId + \"Strin...
"public List<IRepositoryNode> getDependentConnNodesInRecycleBin(List<IRepositoryNode> firstLevelRecyNodes) {\n List<IRepositoryNode> canBeDependedNodes = new ArrayList<IRepositoryNode>();\n for (IRepositoryNode node : firstLevelRecyNodes) {\n canBeDependedNodes.addAll(getCanBeDependedNodes(node));\n }\n...
"public static void globalTearDown() throws Exception {\n drain(CONN_1);\n CONN_1.close();\n RouterService.disconnect();\n}\n"
"private static TileCache createTileCache() {\n TileCache firstLevelTileCache = new InMemoryTileCache(128);\n File cacheDirectory = new File(System.getProperty(\"String_Node_Str\"), \"String_Node_Str\" + index);\n TileCache secondLevelTileCache = new FileSystemTileCache(1024, cacheDirectory, GRAPHIC_FACTORY);\...
"public void processEvent(DropEvent event) {\n String value = (String) event.getDragValue();\n dropValues.add(value);\n System.out.println(\"String_Node_Str\");\n}\n"
"public ContentData populate(Content source) {\n if (source == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n super.populate(source);\n this.uuid = source.getUuid();\n this.id = source.getId();\n this.type = source.getType();\n this.label = source.getLabel();\n t...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (rootView != null) {\n if (rootView.getParent() != null)\n ((ViewGroup) rootView.getParent()).removeView(rootView);\n return rootView;\n }\n ...
"public static void evaluate(SieveDocuments goldDocs, SieveDocuments guessedDocs) {\n Counter<String> guessCounts = new ClassicCounter<String>();\n Counter<TLink.Type> goldLabelCounts = new ClassicCounter<TLink.Type>();\n int numCorrect = 0;\n int numIncorrect = 0;\n int numIncorrectNonVague = 0;\n in...