content stringlengths 40 137k |
|---|
"private void except(Tree tree) {\n if (tree.is(Tree.Kind.EMPTY_STATEMENT)) {\n exceptedStatements.add((EmptyStatementTree) tree);\n }\n}\n"
|
"public boolean createCatalogSubcategory(Selenium browser, String path, String name, String description) {\n if (!functionalUtil.openSite(browser, FunctionalUtil.OlatSite.LEARNING_RESOURCES)) {\n return (false);\n }\n if (!openActionByMenuTree(browser, RepositorySiteAction.CATALOG)) {\n return (f... |
"public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.d(TAG, \"String_Node_Str\" + oldVersion + \"String_Node_Str\" + newVersion);\n if ((oldVersion < 2) && (newVersion >= 2)) {\n db.execSQL(StoryMakerDB.Schema.Projects.UPDATE_TABLE_PROJECTS);\n }\n if ((oldVersion < 3) &&... |
"public void scanAndTranslateStacksToWorld(NBTTagCompound nbt) throws MappingNotFoundException {\n if (isStackLayout(nbt)) {\n stackToWorld(nbt);\n }\n for (Object keyO : new HashSet(nbt.func_150296_c())) {\n String key = (String) keyO;\n if (nbt.getTag(key) instanceof NBTTagCompound) {\n ... |
"Entry<K, V> nextSegmentEntry() {\n while (segmentIndex >= 0) {\n Segment segment = segments[segmentIndex];\n Entry<K, V> entry = segment.getNextEntry(lastSegmentKey);\n if (entry == null) {\n segmentIndex--;\n lastSegmentKeyBytes = null;\n } else {\n last... |
"public static boolean canOpen(final Configuration conf, final String name, final Properties providerProperties) throws IOException {\n try {\n Path p = determineResourcePath(conf, name);\n FileSystem fs = HadoopFileUtils.getFileSystem(conf, p);\n return fs.exists(p);\n } catch (URISyntaxExce... |
"public String getSparqlQueryAsString(TestCase testCase) {\n return getSparqlQuery(testCase).toString();\n}\n"
|
"public String getText(Object element) {\n if (element instanceof IFile) {\n IFile file = (IFile) element;\n Pattern pattern = PatternResourceFileHelper.getInstance().findPattern(file);\n if (pattern != null) {\n return pattern.getName();\n }\n }\n if (element instanceof ... |
"protected IStatus run(IProgressMonitor monitor) {\n assert (!this.jobs.isEmpty());\n monitor.beginTask(getName(), getJobs().size());\n try {\n for (PreviewVdbJob previewJob : this.jobs) {\n assert (previewJob instanceof Job);\n Job job = (Job) previewJob;\n job.setProgr... |
"public String[] getMethods() {\n return new String[] { METHOD_PASSWORD };\n}\n"
|
"public MetaAction build(ActionBuilder builder) {\n if (builder.getTypeSelect() < 2 && (builder.getLines() == null || builder.getLines().isEmpty())) {\n return null;\n }\n inflector = Inflector.getInstance();\n MetaAction metaAction = null;\n String xml = null;\n if (builder.getTypeSelect() == ... |
"public Location teleport(Entity e) {\n if (this.counterpart != null) {\n if (!this.counterpart.isValid()) {\n PortalUtil.removePortal(this.counterpart);\n this.counterpart = null;\n PortalUtil.getCounterpartPortalFor(this);\n }\n } else {\n PortalUtil.getCoun... |
"private void fillTestData(TestData xml, ITDManager po) {\n for (String uniqueId : po.getUniqueIds()) {\n xml.addUniqueIds(uniqueId);\n }\n int rowCnt = 1;\n for (IDataSetPO row : po.getDataSets()) {\n TestDataRow xmlRow = xml.addNewRow();\n xmlRow.setRowCount(rowCnt++);\n for (i... |
"public void actionPerformed(ActionEvent actionEvent) {\n final Product product = virtualBand.getProduct();\n if (product != null && product.isMultiSize()) {\n virtualBand = null;\n final Product resampledProduct = MultiSizeIssue0.maybeResample(product);\n if (resampledProduct != null) {\n ... |
"public static void main(String[] args) throws Exception {\n File input = new File(\"String_Node_Str\");\n File output = new File(\"String_Node_Str\");\n Dataset dataset = GDALUtil.open(input);\n Insets insets = new Insets(408, 833, 14385 - 14376, 38159 - 37443);\n int tilesize = 512;\n String format ... |
"private boolean doProcess(String idOfComponent, String appId, String instanceId) {\n ParentComponent component;\n Map<String, Group> groups;\n Map<String, ClusterDataHolder> clusterData;\n if (log.isInfoEnabled()) {\n log.info(\"String_Node_Str\" + idOfComponent + \"String_Node_Str\");\n }\n t... |
"private void openNewDrawingDialog() {\n MaterialDialog.Builder builder = new MaterialDialog.Builder(this);\n builder.title(R.string.action_new_drawing).callback(getMDCallback()).positiveText(R.string.action_ok).negativeText(R.string.action_cancel).content((R.string.action_new_q));\n builder.show();\n}\n"
|
"public Raster getTile(final long tx, final long ty) throws TileNotFoundException {\n if (tx < getMinTileX() || tx > getMaxTileX() || ty < getMinTileY() || ty > getMaxTileY()) {\n final String msg = String.format(\"String_Node_Str\", tx, ty, getMinTileX(), getMinTileY(), getMaxTileX(), getMaxTileY());\n ... |
"protected void postTableCreate(TableDescriptor tableDescriptor, Iface client) {\n String name = tableDescriptor.getName();\n try {\n client.addColumnDefinition(name, new ColumnDefinition(TEST, ACL_READ, null, false, ACL_READ, null, false));\n client.addColumnDefinition(name, new ColumnDefinition(TE... |
"private void formatLineWithSingleSegment(LineParser lineParser, LineCoverageData lineData) {\n formattedLine.append(lineData.isCovered() ? \"String_Node_Str\" : \"String_Node_Str\");\n List<CallPoint> callPoints = lineData.getCallPoints();\n if (listOfCallPoints != null && callPoints != null) {\n forma... |
"protected boolean readBufferData(final ReadableByteChannel readableByteChannel) throws IOException {\n final ByteBuffer tempBuffer = getTempBuffer();\n if (!this.bufferDataSerializationStarted) {\n tempBuffer.clear();\n this.bufferDataSerializationStarted = true;\n }\n readableByteChannel.rea... |
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext)... |
"public static void triggerCaching(Image.StaticDiskImage imgInfo) {\n String[] parts = imgInfo.getManifestLocation().split(\"String_Node_Str\");\n CacheImageType cache = new CacheImageType().regarding(Contexts.lookup().getRequest());\n cache.setBucket(parts[0]);\n cache.setKey(parts[1]);\n ServiceDispatc... |
"protected boolean traverseChildren() {\n if (last != null) {\n parent.addArea(last);\n last = null;\n if (breakAfterRelayout) {\n breakAfterRelayout = false;\n return true;\n }\n }\n boolean childBreak = false;\n if (children.size() > 0) {\n Iterator... |
"public void performTest(Database database) throws JDBCException {\n if (!database.supportsInitiallyDeferrableColumns()) {\n return;\n }\n String foreignKeyName = \"String_Node_Str\";\n ForeignKeyConstraint fkConstraint = new ForeignKeyConstraint(foreignKeyName, TABLE_NAME + \"String_Node_Str\");\n ... |
"public void setMarginsRelative(int start, int top, int end, int bottom) {\n startMargin = start;\n topMargin = top;\n endMargin = end;\n bottomMargin = bottom;\n mNeedResolution = true;\n}\n"
|
"public static void main(final String[] args) throws IOException, JDOMException, SpimDataException {\n final String projectFolder = \"String_Node_Str\";\n final String bdvFile = \"String_Node_Str\";\n final MamutProject project = new MamutProject(new File(projectFolder), new File(bdvFile));\n final Model mo... |
"public static Result addPost(Long anyId, String target) {\n Account account = Component.currentAccount();\n Form<Post> filledForm = postForm.bindFromRequest();\n if (target.equals(Post.GROUP)) {\n Group group = Group.findById(anyId);\n if (Secured.isMemberOfGroup(group, account)) {\n ... |
"private Region3i clearLight(int x, int y, int z, int oldLightLevel, Block type) {\n int checkExtent = (oldLightLevel > 0) ? oldLightLevel - 1 : 0;\n List<Vector3i> lightSources = Lists.newArrayList();\n Region3i region = Region3i.createFromCenterExtents(new Vector3i(x, y, z), checkExtent);\n for (Vector3i ... |
"public static void init() {\n crops = new ItemCrop();\n RegisterHelper.registerItem(crops, Names.Objects.crops + \"String_Node_Str\");\n journal = new ItemJournal();\n RegisterHelper.registerItem(journal, Names.Objects.journal);\n trowel = new ItemTrowel();\n RegisterHelper.registerItem(trowel, Names... |
"void updateState() {\n if (children.size() == 0) {\n UIObject.setVisible(childSpanElem, false);\n images.treeLeaf().applyTo(statusImage);\n return;\n }\n if (open) {\n UIObject.setVisible(childSpanElem, true);\n DOM.setElementProperty(imgElem, \"String_Node_Str\", imgSrc(\"S... |
"public boolean moveItemToSlots(EntityRef instigator, EntityRef fromInventory, int slotFrom, EntityRef toInventory, List<Integer> toSlots) {\n Collection<EntityRef> clientTempEntities = new HashSet<>();\n if (moveItemToSlotsFillClientTempEntities(instigator, fromInventory, slotFrom, toInventory, toSlots, clientTe... |
"public void idle() {\n Preconditions.checkState(!executor.isShutdown());\n Future<?> possiblyIgnoredError = executor.schedule(() -> {\n try (AutoProfiler p = AutoProfiler.logged(\"String_Node_Str\", log)) {\n System.gc();\n }\n }, 10, TimeUnit.SECONDS);\n}\n"
|
"static Object invokeMatchingMethod(String methodName, List methods, Object target, Object[] args) throws Exception {\n Method m = null;\n Object[] boxedArgs = null;\n if (methods.isEmpty()) {\n throw new IllegalArgumentException(noMethodReport(methodName, target));\n } else if (methods.size() == 1) ... |
"private void hitScreenServer(EntityPlayer player, int x, int y, int module) {\n List<IScreenModule> screenModules = getScreenModules();\n IScreenModule<?> screenModule = screenModules.get(module);\n if (screenModule != null) {\n ItemStack itemStack = inventoryHelper.getStackInSlot(module);\n scr... |
"public void surfaceCreated(SurfaceHolder surfaceHolder) {\n ExoplayerWrapper wrapper = layerManager.getExoplayerWrapper();\n if (wrapper != null) {\n wrapper.setSurface(surfaceHolder.getSurface());\n if (wrapper.getSurface().isValid() || wrapper.getStateForTrackType(ExoplayerWrapper.TYPE_VIDEO) == ... |
"public void addNode(IGridNode node, IGridHost machine) {\n if (machine instanceof PartP2PTunnel) {\n if (machine instanceof PartP2PTunnelME) {\n if (!node.hasFlag(GridFlags.REQUIRE_CHANNEL))\n return;\n }\n PartP2PTunnel t = (PartP2PTunnel) machine;\n if (t.outp... |
"protected boolean isUniqueName(JavaFXHierarchyContainer parent, String name, JavaFXHierarchyContainer container) {\n if (name == null) {\n return false;\n }\n if (parent == null) {\n return true;\n }\n List<JavaFXHierarchyContainer> compIDs = parent.getContainerList();\n for (JavaFXHier... |
"public int compare(Viewer viewer, Object e1, Object e2) {\n if (e1 instanceof GitModelWorkingTree)\n return -1;\n if (e2 instanceof GitModelWorkingTree)\n return 1;\n if (e1 instanceof GitModelCache)\n return -2;\n if (e2 instanceof GitModelCache)\n return 2;\n if (e1 instanc... |
"public boolean matches(ResolvedTypeX matchType, ResolvedTypeX aspectType) {\n return isWithinType(matchType).alwaysTrue();\n}\n"
|
"public void onClick(View v) {\n boolean checked = !mQsDetailHeaderSwitch.isChecked();\n mQsDetailHeaderSwitch.setChecked(checked);\n detail.setToggleState(checked);\n}\n"
|
"protected void drawGuiContainerBackgroundLayer(float v, int x, int y) {\n drawWindow();\n long currentRF = GenericEnergyStorageTileEntity.getCurrentRF();\n energyBar.setValue(currentRF);\n tileEntity.requestRfFromServer(RFTools.MODID);\n drawGhostSlots();\n}\n"
|
"public static void main(String[] args) {\n try {\n if (!ap.parseParameters(args)) {\n System.err.print(Constants.MSG_ERROR_PARSE_ARGUMENTS);\n System.out.println();\n System.exit(0);\n }\n if (ap.getCommandLine().getOptions().length < Constants.ARGUMENTS_REQUIRE... |
"public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n if (Pref.KEY_SERVERS.equals(key)) {\n Timber.d(\"String_Node_Str\", key);\n String keyServers = sharedPreferences.getString(Pref.KEY_SERVERS, Defaults.KEY_SERVERS);\n String current = keyServers.substring... |
"public Object getObjectType() {\n mainConnector = new NodeConnectorTool(nodePart).getConnector();\n if (mainConnector == null) {\n Node node = (Node) nodePart.getModel();\n mainConnector = node.getConnectorFromType(EConnectionType.ON_COMPONENT_OK);\n listArgs.set(1, mainConnector.getLinkName... |
"private static TemplateDescriptor createInstance(Class<? extends TemplateDescriptor> templateDescriptor) {\n try {\n return templateDescriptor.getConstructor().newInstance();\n } catch (Exception e) {\n throw new RuntimeException(\"String_Node_Str\" + templateDescriptor.getName() + \"String_Node_St... |
"public ContentData getContentData(ContentVAType vaType) {\n ContentData contentData = hashContentData.get(vaType);\n if (contentData == null) {\n contentData = createContentData(vaType);\n hashContentData.put(vaType, contentData);\n }\n return contentData;\n}\n"
|
"private void _createGraph(Object composite, KNode hierarchicalLayoutNode, KNode boxLayoutNode) {\n _ptolemy2KielerNodes = new HashMap<Object, KNode>();\n _kieler2ptolemyDivaNodes = new HashMap<KNode, Object>();\n _kieler2ptolemyEntityNodes = new HashMap<KNode, NamedObj>();\n _ptolemyDiva2KielerEdges = new ... |
"public void finalizeProperties() {\n ArrayList<JavaClass> jClasses = getTypeInfoClasses();\n for (JavaClass jClass : jClasses) {\n TypeInfo tInfo = getTypeInfo().get(jClass.getQualifiedName());\n if (tInfo.isTransient()) {\n continue;\n }\n if (!jClass.isInterface() && !tIn... |
"public static CoNLL09Sentence fromSimpleAnnoSentence(SimpleAnnoSentence sent) {\n List<CoNLL09Token> toks = new ArrayList<CoNLL09Token>();\n for (int i = 0; i < sent.size(); i++) {\n CoNLL09Token tok = new CoNLL09Token();\n tok.setId(i + 1);\n tok.setForm(sent.getWord(i));\n tok.setPl... |
"File generateHTMLTransferReport(NodeRef transferNode) throws IOException {\n File report = TempFileProvider.createTempFile(REPORT_FILE_PREFIX, REPORT_FILE_SUFFIX);\n Writer writer = null;\n try {\n NodeRef[] itemsToTransfer = getTransferNodes(transferNode);\n if (logger.isDebugEnabled()) {\n ... |
"private void moveImpl(final Object graphicsComponent, final Rectangle constraints, final int xPos, final boolean xAbsolute, final int yPos, final boolean yAbsolute, final ClickOptions clickOptions) throws StepExecutionException {\n Rectangle bounds = getComponentBounds(graphicsComponent, clickOptions);\n if (con... |
"public void addTypeToElement(Class<? extends VertexFrame> kind, Element element) {\n Class<?> typeHoldingTypeField = typeRegistry.getTypeHoldingTypeField(kind);\n if (typeHoldingTypeField != null) {\n TypeValue typeValueAnnotation = kind.getAnnotation(TypeValue.class);\n if (typeValueAnnotation != ... |
"public ItemStack onEaten(ItemStack itemStack, World world, EntityPlayer entityPlayer) {\n --itemStack.stackSize;\n if (world.isRemote)\n return itemStack;\n EnumMolecule molecule = getMolecule(itemStack);\n Pharm.triggerPlayerEffect(molecule, entityPlayer);\n world.playSoundAtEntity(entityPlayer,... |
"public IDetailsPage getPage(Object key) {\n if (key.equals(IBundle.class)) {\n return BundleInformationMasterDetailsBlock.this.bundleDetailsPart;\n }\n return null;\n}\n"
|
"void parseResponse(JSONObject response) throws JSONException {\n ClicksModel model = new ClicksModel(123456, response);\n assertEquals(model.getTotalClicks(), 2);\n assertEquals(model.getOtherClicks(), 0);\n assertNotNull(model.getClickGroups());\n assertEquals(model.getClickGroups().size(), 2);\n Cl... |
"private void ellipsoid(final SnipeData v, Location<World> targetBlock) {\n double xrads = this.xrad * this.xrad;\n double yrads = this.yrad * this.yrad;\n double zrads = this.zrad * this.zrad;\n int tx = targetBlock.getBlockX();\n int ty = targetBlock.getBlockY();\n int tz = targetBlock.getBlockZ();\... |
"public String getDomainName() {\n if (domainName == null) {\n return \"String_Node_Str\";\n }\n if (builtinMuscleCurve && currentModel.getCoordinateSet().contains(domainName)) {\n Coordinate coord = currentModel.getCoordinateSet().get(domainName);\n return (coord.getRelativePathName(curre... |
"private void resetAllTreeSelections() {\n if (tree != null)\n resetAllTreeSelectionsRec(tree.getRoot());\n}\n"
|
"public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side) {\n TileEntity tile = world.getTileEntity(x, y, z);\n if (!(tile instanceof TileDynamoBase)) {\n return false;\n }\n TileDynamoBase tile = (TileDynamoBase) te;\n return tile.facing == BlockHelper.SIDE_OPPOSIT... |
"private CacheResult fetch(ArtifactCache artifactCache, RuleKey ruleKey, LazyPath outputPath) {\n CacheResult cacheResult = Futures.getUnchecked(artifactCache.fetchAsync(ruleKey, outputPath));\n if (cacheResult.getType() != CacheResultType.HIT) {\n return cacheResult;\n }\n for (String ruleKeyName : ... |
"public Set<Service> getAll() {\n List<Row<String, Long, String>> result = HFactory.createRangeSlicesQuery(keyspace, StringSerializer.get(), LongSerializer.get(), StringSerializer.get()).setColumnFamily(COLUMN_FAMILY).setKeys(\"String_Node_Str\", \"String_Node_Str\").setRange(Long.MAX_VALUE, expirationCutoff().getMi... |
"public static ClusterCreate getSimpleClusterSpec(String specName) throws Exception {\n String json = TestPlacementUtil.readJson(specName);\n logger.info(json);\n ObjectMapper mapper = new ObjectMapper();\n try {\n return gson.fromJson(json, ClusterCreate.class);\n } catch (Exception e) {\n ... |
"private void prepareLevels(QueryDefinition query, TabularHierarchyHandle hierHandle, List metaList, String dimName) throws AdapterException {\n try {\n List levels = hierHandle.getContents(TabularHierarchyHandle.LEVELS_PROP);\n for (int j = 0; j < levels.size(); j++) {\n TabularLevelHandle ... |
"public void bulkInstall(ActionRequest request, ActionResponse response) {\n Context context = request.getContext();\n Set<Map<String, Object>> apps = new HashSet<Map<String, Object>>();\n Collection<Map<String, Object>> appsSet = (Collection<Map<String, Object>>) context.get(\"String_Node_Str\");\n if (app... |
"protected void handleChannelEvent(IChannelEvent event) {\n if (event instanceof IChannelMessageEvent) {\n final IChannelMessageEvent cme = (IChannelMessageEvent) event;\n handleMessage(cme.getFromContainerID(), cme.getData());\n } else if (event instanceof IChannelConnectEvent) {\n IChannelC... |
"public boolean accept(File dir, String name) {\n return name.endsWith(inputSuffix) && !name.equals(indexFilename) && !name.equals(indexFilenameTopLevel);\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_record_detail);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n recordMonth = getIntent().getIntExtra(IntentConstant.RECORD_MONTH, 0);\n recordYear = getIntent().getIn... |
"public IBlob getBlob(int index) throws OdaException {\n assertNotNull(rs);\n try {\n java.sql.Blob blob = rs.getBlob(index);\n return new Blob(blob);\n } catch (Exception e) {\n Exception e1 = null;\n if (e.getClass().getName().equals(\"String_Node_Str\")) {\n Class cls ... |
"public final synchronized void notifySuccess(final T object) {\n Validate.notNull(object, \"String_Node_Str\");\n if (getRemainingNotificationsCount() == 0) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n succededObjects.add(object);\n onSuccessNotification(object);\n notificat... |
"private static void initializeCaches() {\n HazelcastClientCachingProvider cachingProvider1 = HazelcastClientCachingProvider.createCachingProvider(c1);\n HazelcastClientCachingProvider cachingProvider2 = HazelcastClientCachingProvider.createCachingProvider(c2);\n HazelcastClientCachingProvider cachingProvider3... |
"public Scope getScope() {\n StoragePoolVO vo = dataStoreDao.findById(this.pdsv.getId());\n if (vo.getScope() == ScopeType.CLUSTER) {\n return new ClusterScope(vo.getClusterId(), vo.getPodId(), vo.getDataCenterId());\n } else if (vo.getScope() == ScopeType.ZONE) {\n return new ZoneScope(vo.getDat... |
"public synchronized void flush(Session session) {\n if (session == null || !database.isSysTableLocked()) {\n Session sysSession = database.getSystemSession();\n synchronized (sysSession) {\n flushInternal(sysSession, flushValueWithMargin);\n sysSession.commit(false);\n }\n... |
"public void removeDestination(IEnderDestination theAttuned) {\n String channel = theAttuned.getChannelString();\n TIntObjectHashMap<EnderDestination> map = outputTeleport.get(channel);\n if (map == null) {\n return;\n }\n EnderDestination dest = map.get(theAttuned.getFrequency());\n if (dest =... |
"public CAstNode visitFunctionCall(FunctionCall n, WalkContext context) {\n if (!isPrimitiveCall(context, n)) {\n CAstNode base = Ast.makeNode(CAstNode.VAR, Ast.makeConstant(baseVarName));\n AstNode callee = n.getTarget();\n WalkContext child = new BaseCollectingContext(context, callee, base);\n... |
"private List<RackInfo> readRackInfoFromFile(String filePath) throws IOException, FileNotFoundException, CliException {\n FileReader fileReader = null;\n BufferedReader reader = null;\n List<RackInfo> racksInfo = new ArrayList<RackInfo>();\n try {\n File f = new File(filePath);\n fileReader = ... |
"private void convertConfig() {\n getConfig().set(\"String_Node_Str\", getConfig().getString(\"String_Node_Str\", \"String_Node_Str\"));\n getConfig().set(\"String_Node_Str\", getConfig().getInt(\"String_Node_Str\", 3));\n getConfig().set(\"String_Node_Str\", getConfig().getBoolean(\"String_Node_Str\", false))... |
"public void updateEngineVersion(File projectPath) throws FileNotFoundException, IOException {\n Properties prop = getGradleProperties(projectPath);\n prop.setProperty(Config.BLADE_ENGINE_VERSION_PROP, Versions.getVersion());\n prop.setProperty(\"String_Node_Str\", Versions.getLibgdxVersion());\n prop.setPr... |
"public void actionPerformed(ActionEvent e) {\n if (e.getSource() == btnOK) {\n captchaText = textField.getText();\n this.dispose();\n }\n if (e.getSource() == btnBAD) {\n captchaText = null;\n setVisible(false);\n dispose();\n }\n if (countdownThread != null && countdo... |
"private static int countDaysFromMinDay(int toYear, int toMonth, int toDay) {\n if (toYear < MIN_YEAR || toYear > MAX_YEAR || toMonth < 1 || toMonth > 12 || toDay < 1 || toDay > NEPALI_YEAR_MONTHS.get(toYear)[toMonth]) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n int daysFromMinDay = -1;\n... |
"public void testEmployeeSchemaGenMissingRequiredElement() throws Exception {\n boolean exception = false;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n String msg = \"String_Node_Str\";\n try {\n Class[] jClasses = new Class[] { Address.class, Employe... |
"public Number remove(Keyword recordName) {\n List<Record> records = recordsFor(recordName);\n int count = records.size();\n memory.remove(recordName);\n return count;\n}\n"
|
"void changeBackgroundAlpha() {\n Drawable background = getBackground();\n if (background != null) {\n int newAlpha = (int) (ONE_HUNDRED * (1 - getVerticalDragOffset()));\n background.setAlpha(newAlpha);\n }\n}\n"
|
"State visitBlock(State startState, BlockNode node, String blockName, Checkpoint checkpoint) {\n try {\n visitChildren(node);\n } catch (AbortParsingBlockError abortProcessingError) {\n switch(startState) {\n case AFTER_ATTRIBUTE_NAME:\n case AFTER_TAG_NAME_OR_ATTRIBUTE:\n ... |
"public void close() throws IOException {\n os.closeEntry();\n if (Files.exists(zipFilePath)) {\n try (ZipFile zipFile = new ZipFile(zipFilePath)) {\n Enumeration<? extends ZipEntry> e = zipFile.entries();\n while (e.hasMoreElements()) {\n ZipEntry zipEntry = e.nextElem... |
"private BlurIndex openShard(String table, String shard) throws IOException {\n LOG.info(\"String_Node_Str\", shard, table);\n TableContext tableContext = getTableContext(table);\n Path tablePath = tableContext.getTablePath();\n Path hdfsDirPath = new Path(tablePath, shard);\n BlurLockFactory lockFactory... |
"private void setupTabs() {\n tabDescription = addTab(getString(R.string.tab_description));\n tabRelated = addTab(getString(R.string.tab_related));\n tabListenerDisabled = selectedTabIndex != 0;\n bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);\n tabListenerDisabled = false;\n if (savedSelected... |
"protected String buildDrillAction(IAction action, Object context) {\n String baseURL = null;\n if (context != null && context instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext) context).getBaseURL();\n }\n StringBuffer link = new StringBuffer();\n String reportName = action.getRepor... |
"private SerialPipes createPipes() {\n List<Pipe> pipes = new ArrayList<Pipe>();\n pipes.add(new CharSequenceLowercase());\n pipes.add(new CharSequence2TokenSequence(CharSequenceLexer.LEX_WORDS));\n pipes.add(new TokenSequence2PorterStems());\n return new SerialPipes(pipes);\n}\n"
|
"public void testUpdateCourseGroup() throws IOException, URISyntaxException {\n assertTrue(conn.login(\"String_Node_Str\", \"String_Node_Str\"));\n GroupVO vo = new GroupVO();\n vo.setKey(g1.getKey());\n vo.setName(\"String_Node_Str\");\n vo.setDescription(\"String_Node_Str\");\n vo.setMinParticipants... |
"public void handleForeignSelectionCommand(String dataDomainType, IDCategory idCategory, SelectionCommand selectionCommand) {\n if (CLINICAL_DATADOMAIN_TYPE.equals(dataDomainType) && dimensionIDCategory.equals(idCategory)) {\n SelectionCommandEvent newCommandEvent = new SelectionCommandEvent();\n newCo... |
"public static boolean isValidDesign(SessionHandle sessionHandle, String fileName, InputStream is) {\n ReportDesign design = null;\n try {\n ModuleOption options = new ModuleOption();\n options.setSemanticCheck(false);\n design = DesignReader.getInstance().read(sessionHandle.getSession(), fil... |
"public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n String buttonName = button.getName();\n if (buttonName.equals(CALL_BUTTON)) {\n callButtonPressed();\n } else if (buttonName.equals(CONF_CALL_BUTTON)) {\n mergeCallButtonPressed();\n } else if (butto... |
"public boolean inGroup(String player, String group) {\n return PermissionUser.matchUserIgnoreCase(player).inGroup(getPermissionManager().getGroupFile().getGroup(group));\n}\n"
|
"public int compareTo(Configurator o) {\n if (o == null) {\n return -1;\n }\n int ipCompare = getUrl().getHost().compareTo(o.getUrl().getHost());\n if (ipCompare == 0) {\n int i = getUrl().getParameter(Constants.PRIORITY_KEY, 0), j = o.getUrl().getParameter(Constants.PRIORITY_KEY, 0);\n ... |
"public void generateMappings(TypeInfo info, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n List<Property> propertiesInOrder = info.getNonTransientPropertiesInPropOrder();\n for (int i = 0; i < propertiesInOrder.size(); i++) {\n Property next = propertiesInOrder.get(i);\n if (next != nul... |
"public int[] getAccessibleSlotsFromSide(int var1) {\n if (var1 == 1) {\n return this.kInput;\n }\n return this.kInput;\n}\n"
|
"protected Injector getInjector() {\n return Guice.createInjector(getModule());\n}\n"
|
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n this.addPositionalNodes(xPathFragment, namespaceResolver);\n if (isStartElementOpen) {\n outputStreamWrite(CLOSE_ELEMENT);\n }\n if (!isLastEventText) {\n if (numberOfTabs > 0) {\n ou... |
"public IContributionItem[] getContributionsForService(IServiceInfo serviceInfo) {\n IServiceID serviceID = serviceInfo.getServiceID();\n List serviceTypes = Arrays.asList(serviceID.getServiceTypeID().getServices());\n String protocol = null;\n if (serviceTypes.size() == 1 && serviceTypes.contains(\"String_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.