content stringlengths 40 137k |
|---|
"public IStatus doAction() {\n try {\n if (page.isDirty()) {\n boolean save = MessageDialog.openConfirm(page.getSite().getShell(), Messages.getString(\"String_Node_Str\"), \"String_Node_Str\" + page.getXObject().getDisplayName() + \"String_Node_Str\" + Messages.getString(\"String_Node_Str\"));\n ... |
"public Extent getExtent() {\n frontLock.readLock().lock();\n try {\n return boundingSphere;\n } finally {\n frontLock.readLock().unlock();\n }\n}\n"
|
"private static ContainerLaunchContext createCommonContainerLaunchContext(Map<ApplicationAccessType, String> applicationACLs, TezConfiguration conf, Token<JobTokenIdentifier> jobToken, TezVertexID vertexId, Credentials credentials) {\n Map<String, LocalResource> localResources = new HashMap<String, LocalResource>();... |
"public static boolean setSelectedIndex(Component component, AjaxRequestTarget target, int modifiers, boolean bHandleMultiselect) {\n WebForm parentForm = component.findParent(WebForm.class);\n if (parentForm != null) {\n int parentFormViewType = parentForm.getController().getForm().getView();\n if ... |
"public void testFindLongestCommonPathForOneFile() throws Exception {\n List<FileInfo> files = Lists.newLinkedList();\n files.add(new FileInfo(String.format(\"String_Node_Str\", PATH_SEPARATOR), -1, -1, false, false, null));\n CommonPathResolver commonPathResolver = new CommonPathResolver(files);\n assertEq... |
"public Map<MediaType, List<MessageBodyWriter>> getWriters(MediaType mediaType) {\n Map<MediaType, List<MessageBodyWriter>> subSet = new KeyComparatorLinkedHashMap<MediaType, List<MessageBodyWriter>>(MEDIA_TYPE_COMPARATOR);\n if (!customWriterProviders.isEmpty())\n getCompatibleReadersWritersMap(mediaType,... |
"protected String _writeCode(StringBuffer code) throws IllegalActionException {\n String codeFileName = _getOutputFilename();\n boolean overwriteFile = ((BooleanToken) overwriteFiles.getToken()).booleanValue();\n if (_executeCommands != null) {\n _executeCommands.stdout(\"String_Node_Str\" + codeFileNam... |
"private void watchCloseConfirmations() {\n storedChannel.close.getConfidence().getDepthFuture(CONFIRMATIONS_FOR_DELETE).addListener(new Runnable() {\n public void run() {\n deleteChannelFromWallet();\n }\n\n public void onFailure(Throwable t) {\n Throwables.propagate(t);\n... |
"public void stop() {\n if (!started)\n return;\n executionIds.clear();\n if (executor != null) {\n executor.shutdownNow();\n }\n started = false;\n}\n"
|
"public void testAttributeOrderByLimit() {\n FinalSetOperationCriteriaBuilder<Document> cb = cbf.create(em, Document.class).from(Document.class, \"String_Node_Str\").select(\"String_Node_Str\").where(\"String_Node_Str\").eq(\"String_Node_Str\").union().from(Document.class, \"String_Node_Str\").select(\"String_Node_S... |
"public InputStream getContents(TreeLogger logger) throws UnableToCompleteException {\n try {\n return new FileInputStream(file);\n } catch (IOException e) {\n logger.log(TreeLogger.ERROR, \"String_Node_Str\", e);\n throw new UnableToCompleteException();\n }\n}\n"
|
"private void sendEmail(User user, Submission submission, Map<String, Object> data) {\n String subject = (String) data.get(\"String_Node_Str\");\n String templatedMessage = templateUtility.compileString((String) data.get(\"String_Node_Str\"), submission);\n boolean sendRecipientEmail = (boolean) data.get(\"Str... |
"public String getRule() {\n String superRule = super.getRule(true);\n StringBuilder sb = new StringBuilder();\n if (!superRule.isEmpty()) {\n String ruleLow = superRule.toLowerCase();\n if (isOptional()) {\n if (ruleLow.startsWith(\"String_Node_Str\")) {\n if (!ruleLow.... |
"public static CheckboxTableViewer createTableViewerCheckbox(Composite container, int style) {\n CheckboxTableViewer viewer = CheckboxTableViewer.newCheckList(container, style);\n fixOSXTableBug(viewer.getTable());\n return viewer;\n}\n"
|
"public void testNanosAffectTime() {\n long now = 1283895273475L;\n int millis = (int) (now % 1000);\n Timestamp t = new Timestamp(now);\n assertEquals(now, t.getTime());\n assertEquals(millis * 1000000, t.getNanos());\n t.setNanos(0);\n assertEquals(now - millis, t.getTime());\n t.setNanos(9999... |
"public void run(IProgressMonitor monitor) throws InvocationTargetException {\n CreateProjectOperation createProjOp = new CreateProjectOperation(description, DefaultMessagesImpl.getString(\"String_Node_Str\"));\n try {\n PlatformUI.getWorkbench().getOperationSupport().getOperationHistory().execute(op, moni... |
"public String toString() {\n return fileUri.toString();\n}\n"
|
"public static Response createFromStream(InputStream is) throws IOException {\n long index = ByteOrder.ubytes2long(ByteOrder.leb2int(is));\n long size = ByteOrder.ubytes2long(ByteOrder.leb2int(is));\n if ((index & 0xFFFFFFFF00000000L) != 0)\n throw new IOException(\"String_Node_Str\" + index);\n if (... |
"protected Map getParsedParameters(IViewerReportDesignHandle design, Collection parameterList, HttpServletRequest request, InputOptions options) throws ReportServiceException {\n Map params = new HashMap();\n if (parameterList == null || this.parametersAsString == null)\n return params;\n for (Iterator ... |
"public static Chain getCAOnly(Chain chain) {\n Chain newChain = new ChainImpl();\n newChain.setChainID(chain.getChainID());\n newChain.setCompound(chain.getCompound());\n newChain.setSwissprotId(chain.getSwissprotId());\n List<Group> groups = chain.getAtomGroups();\n grouploop: for (Group g : groups)... |
"public void updateStatus(Integer status) {\n this.getCache().put(CACHE_NAME_STATUS, status);\n logger.trace(\"String_Node_Str\", status);\n}\n"
|
"private void validate(String path, int errorCount, boolean json) throws Exception {\n if (TestingUtilities.context == null) {\n TestingUtilities.context = SimpleWorkerContext.fromPack(Utilities.path(TestingUtilities.home(), \"String_Node_Str\", \"String_Node_Str\"));\n ((SimpleWorkerContext) TestingUt... |
"public static void buildAndInstallCodesProject(IProgressMonitor monitor, ERepositoryObjectType codeType) throws Exception {\n if (!BuildCacheManager.getInstance().isCodesBuild(codeType)) {\n Job job = new Job(\"String_Node_Str\" + codeType.getLabel()) {\n protected IStatus run(IProgressMonitor mon... |
"public boolean poll() {\n Long requestId = apiBootstrap.getRequestId();\n logger.info(\"String_Node_Str\" + requestId + \"String_Node_Str\");\n ApiBootstrapStatus apiBootstrapStatus = apiManager.getBootstrapStatus(requestId);\n BootstrapStatus bootstrapStatus = BootstrapStatus.valueOf(apiBootstrapStatus.ge... |
"private String stringFromSQLDate(java.sql.Date sourceDate, QName schemaType) {\n if (XMLConstants.DATE_TIME_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorian... |
"protected synchronized Map<String, CatalogItemDo<?, ?>> buildCaches() {\n if (cacheById != null)\n return cacheById;\n log.debug(\"String_Node_Str\" + this);\n if (!isLoaded())\n log.debug(\"String_Node_Str\" + this);\n Map<String, CatalogItemDo<?, ?>> cache = new LinkedHashMap<String, Catalo... |
"public String getSchemaNames() {\n String str = \"String_Node_Str\";\n for (ColumnSet columnSet : getColumnSets()) {\n try {\n Package schema = ColumnSetHelper.getParentCatalogOrSchema(columnSet);\n if (schema != null) {\n str = str + schema.getName() + \"String_Node_S... |
"public void testExtractDisplayId13() {\n String extractedDisplayId = extractDisplayId(uri9);\n assertNull(extractedDisplayId);\n}\n"
|
"private void createCube(TabularCubeHandle cubeHandle, CubeMaterializer cubeMaterializer, Map appContext) throws BirtException {\n SecurityListener sl = new SecurityListener(this);\n sl.start(cubeHandle);\n Map<?, ?> backupAppContext = new HashMap();\n if (appContext == null)\n appContext = new HashM... |
"public String onnxName() {\n throw new NoOpNameFoundException(\"String_Node_Str\");\n}\n"
|
"public void writeExpression(MethodWriter writer) {\n if (this.method != null) {\n this.method.writeCall(writer, null, this.arguments, this.tupleType);\n return;\n }\n String internal = this.tupleType.getInternalName();\n writer.writeTypeInsn(Opcodes.NEW, internal);\n writer.writeInsn(Opcod... |
"static void simplify() {\n for (Command c : mainROM) {\n c.simplify();\n }\n for (int i = 0; i < mainROM.size() - 1; i++) {\n Command c = mainROM.get(i);\n if (c.isEquivalent(\"String_Node_Str\", 0, -1, 0, null, 0, 0)) {\n Command d = mainROM.get(i + 1);\n if (d.isEq... |
"public void mousePressed(MouseEvent me) {\n boolean isCheck = checkImage.getImage().equals(ImageProvider.getImage(EImage.CHECKED_ICON)) ? false : true;\n setNullable(isCheck);\n checkImage.setBackgroundColor(ColorConstants.buttonDarkest);\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + printTestResult(this.getTestResult()) + ((this.manualTestValidation != null) ? \"String_Node_Str\" + printTestResult(this.manualTestValidation.getTestResult()) : \"String_Node_Str\") + ((this.evoValidation != null) ? \"String_Node_Str\"... |
"public SkyValue compute(SkyKey key, Environment env) throws FilesetEntryFunctionException {\n FilesetTraversalParams t = (FilesetTraversalParams) key.argument();\n Preconditions.checkState(t.getNestedTraversal().isPresent() != t.getDirectTraversal().isPresent(), \"String_Node_Str\", t);\n Set<String> exclusio... |
"public void fire() throws IllegalActionException {\n boolean repeatBasicIteration = false;\n do {\n List minimaxActors = new LinkedList();\n int minimaxSize = Integer.MAX_VALUE;\n List toBeFiredActors = new LinkedList();\n Iterator actors = ((TypedCompositeActor) getContainer()).deepE... |
"public Response updateDeploymentPolicy(DeploymentPolicyBean deploymentPolicyDefinitionBean) throws RestAPIException {\n String deploymentPolicyID = deploymentPolicyDefinitionBean.getId();\n try {\n StratosApiV41Utils.updateDeploymentPolicy(deploymentPolicyDefinitionBean);\n } catch (AutoscalerServiceIn... |
"private void addInverses(GlobalConstants consts, String errContext, Arg canonLoc, ArgOrCV canonVal, int stmtIndex) throws OptUnsafeError {\n if (canonVal.isCV() && canonVal.cv().inputs.size() == 1) {\n ComputedValue<Arg> cv = canonVal.cv();\n Arg invOutput = cv.getInput(0);\n if (cv.op().isAssi... |
"public String getUserId(String userName) {\n debug(\"String_Node_Str\" + userName);\n try {\n Users users = userStore.getUsers(userName);\n List<User> userList = users.getUsers();\n if (userList.size() == 0) {\n return null;\n }\n User user = userList.get(0);\n ... |
"public void onCheckedChanged(CompoundButton view, boolean checked) {\n setRing(checked);\n}\n"
|
"public void onPlayerInteract(final PlayerInteractEvent e) {\n if (DEBUG) {\n plugin.getLogger().info(e.getEventName());\n }\n if (!inWorld(e.getPlayer())) {\n return;\n }\n if (e.getPlayer().isOp() || VaultHelper.checkPerm(e.getPlayer(), Settings.PERMPREFIX + \"String_Node_Str\")) {\n ... |
"public void delete() throws IOException {\n HttpServletRequest req = ServletActionContext.getRequest();\n HttpServletResponse resp = ServletActionContext.getResponse();\n String pNodeId = req.getParameter(\"String_Node_Str\");\n if (Strings.isNullOrEmpty(pNodeId)) {\n responseJTableData(resp, genera... |
"protected Vector<Integer> union(Vector<Integer> selectedCases, Vector<Integer> cases) {\n return DataUtil.union(selectedCases, cases);\n}\n"
|
"public int compareTo(A other) {\n int comp = 0;\n String this_att, other_att;\n if (getRole() == null)\n this_att = \"String_Node_Str\";\n else\n this_att = getRole().getName();\n if (other.getRole() == null)\n other_att = \"String_Node_Str\";\n else\n other_att = other.ge... |
"protected boolean removeInternal(final Data key, final Data value) {\n RemoveIfSameOperation operation = new RemoveIfSameOperation(name, key, value);\n boolean removed = (Boolean) invokeOperation(key, operation);\n invalidateNearCache(key);\n return removed;\n}\n"
|
"public void test4XXRetryPolicy() throws IOException, SerializeException {\n Context context = RuntimeEnvironment.application;\n File file = createRandomFile();\n HandlerThread handlerThread = new HandlerThread(createRandomString());\n handlerThread.start();\n Looper looper = handlerThread.getLooper();\n... |
"public boolean isValid() {\n if (getFormat() == null) {\n setFormat(FormatFactory.getFormat(ISOVOB.class));\n }\n return true;\n}\n"
|
"void addJDKToolsJar() {\n File jdkToolsJar = Util.getJDKToolsJar();\n try {\n cpb.addJar(jdkToolsJar);\n } catch (IOException ioe) {\n if (logger.isLoggable(Level.FINE)) {\n logger.fine(\"String_Node_Str\" + jdkToolsJar);\n }\n }\n}\n"
|
"protected void clean() {\n if (!outputFile.delete()) {\n getLogger().warning(\"String_Node_Str\" + outputFile);\n }\n if (!unmapFile.delete()) {\n getLogger().warning(\"String_Node_Str\" + unmapFile);\n }\n}\n"
|
"public ImmutableTreeNode wrap(AbstractNodeIterator iterator) {\n nodeTree = new SimpleAVLTree();\n TreeNodeImpl root = new TreeNodeImpl(treeStructure.getRoot());\n nodeTree.add(root);\n for (; iterator.hasNext(); ) {\n AbstractNode node = iterator.next();\n TreeNodeImpl n = new TreeNodeImpl(n... |
"protected int handleIntentMessage(Intent intent) {\n int what = intent.getIntExtra(SensorbergServiceMessage.EXTRA_GENERIC_TYPE, -1);\n Logger.log.serviceHandlesMessage(SensorbergServiceMessage.stringFrom(what));\n if (!isBootstrapperInitialized()) {\n logError(\"String_Node_Str\");\n return stop... |
"public HearthTreeNode performAction(Card origin, PlayerSide playerSide, HearthTreeNode boardState, boolean singleRealizationOnly) {\n List<BoardModel.CharacterLocation> locations = new ArrayList<>();\n for (BoardModel.CharacterLocation location : boardState.data_) {\n if (this.filter.targetMatches(playerS... |
"public Byte getAsByte(String key) {\n Object value = mValues.get(key);\n try {\n return value != null ? ((Number) value).byteValue() : null;\n } catch (ClassCastException e) {\n if (value instanceof CharSequence) {\n try {\n return Byte.valueOf(value.toString());\n ... |
"Object invoke(Object receiver, Object[] args) throws IllegalAccessException, IllegalArgumentException, ExceptionInInitializerError, InvocationTargetException {\n VM_Method method = this.method;\n VM_Class declaringClass = method.getDeclaringClass();\n if (!method.isStatic()) {\n if (receiver == null)\n... |
"public void reset() throws IOException {\n super.reset();\n jieba.reset();\n}\n"
|
"public int getIteration() {\n if (ome == null)\n return 0;\n else\n return Integer.MAX_VALUE;\n}\n"
|
"private double rangeSearchKNN(Node<T> node, double[] center, ArrayList<KDEntryDist<T>> candidates, int k, int depth, double maxRange) {\n int pos = depth % dims;\n if (node.getLo() != null && (center[pos] < node.getKey()[pos] || node.getHi() == null)) {\n maxRange = rangeSearchKNN(node.getLo(), center, ca... |
"public void testRetryQueueDeadlock() throws Exception {\n com.couchbase.lite.replicator.RemoteRequestRetry.RETRY_DELAY_MS = 5;\n PersistentCookieJar cookieStore = database.getPersistentCookieStore();\n CouchbaseLiteHttpClientFactory factory = new CouchbaseLiteHttpClientFactory(cookieStore);\n MockDispatche... |
"private String addCustomizedNamespacePrefix(String customizedNamespacePrefix, String expression) {\n return expression.replaceAll(\"String_Node_Str\", \"String_Node_Str\" + customizedNamespacePrefix + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
|
"private Function<String, String> createProguardDeobfuscator(ExecutionContext context) throws IOException {\n if (!proguardMappingFile.isPresent()) {\n return Functions.identity();\n }\n ProjectFilesystem projectFilesystem = context.getProjectFilesystem();\n Path pathToProguardMappingFile = proguardM... |
"protected boolean isCDAPTable(HTableDescriptor hTableDescriptor) {\n return !Strings.isNullOrEmpty(hTableDescriptor.getValue(CDAP_VERSION));\n}\n"
|
"public void testGenerateSpec() {\n ETLBatchConfig etlConfig = ETLBatchConfig.builder(\"String_Node_Str\").addStage(new ETLStage(\"String_Node_Str\", MOCK_SOURCE)).addStage(new ETLStage(\"String_Node_Str\", MOCK_SINK)).addStage(new ETLStage(\"String_Node_Str\", MOCK_SINK)).addStage(new ETLStage(\"String_Node_Str\", ... |
"private void set(Property lastProperty, DataObject lastDataObject, int numInLastProperty, Object value, boolean convertValue) {\n if (numInLastProperty == -1) {\n if (lastDataObject != null) {\n if (convertValue) {\n value = DataHelper.INSTANCE.convert(lastProperty, value);\n ... |
"public boolean saveResource(Resource resource) {\n return saveSingleResource(resource);\n}\n"
|
"public static boolean clear(Configuration conf) {\n Configuration tempConf = new Configuration(conf);\n tempConf.setInt(\"String_Node_Str\", 0);\n ZKWatcher zkw;\n try {\n zkw = new ZKWatcher(tempConf, \"String_Node_Str\", new Abortable() {\n public void abort(String why, Throwable e) {\n... |
"private void timelineNotification(HttpServerRequest request, JsonObject sentMessage, UserInfos user) {\n log.debug(sentMessage.encode());\n JsonArray r = sentMessage.getArray(\"String_Node_Str\");\n String id = sentMessage.getString(\"String_Node_Str\");\n String subject = sentMessage.getString(\"String_No... |
"public void testGetIssues() {\n try {\n Issue issueToCreate = new Issue();\n issueToCreate.setSubject(\"String_Node_Str\" + new Date());\n Issue newIssue = mgr.createIssue(PROJECT_KEY, issueToCreate);\n Integer queryIdIssuesCreatedLast2Days = Config.getQueryId();\n List<Issue> iss... |
"public void handle(KeyEvent event) {\n if (allowInput) {\n if (Main.game.getCurrentDialogueNode() == OptionsDialogue.KEYBINDS) {\n if (actionToBind != null) {\n KeyCode eventCode = event.getCode();\n if (eventCode == KeyCode.SHIFT || eventCode == KeyCode.CONTROL) {\n ... |
"public void writeTo(FileExportEntity fileExportEntity, Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> multivaluedMap, OutputStream outputStream) throws IOException, WebApplicationException {\n ZipOutputStream zs = new ZipOutputStream(outputStream);\n try... |
"protected void play(ViewGroup sceneRoot, TransitionValuesMaps startValues, TransitionValuesMaps endValues) {\n mPlayStartValuesList.clear();\n mPlayEndValuesList.clear();\n ArrayMap<View, TransitionValues> endCopy = new ArrayMap<View, TransitionValues>(endValues.viewValues);\n SparseArray<TransitionValues>... |
"private static XmlNode parse(XmlPullParser parser2, XmlNode e) throws XmlPullParserException, IOException {\n while (true) {\n switch(parser.next()) {\n case XmlPullParser.START_TAG:\n if (node == null)\n node = new XmlNode(parser.getName());\n else... |
"private static void getImportFiles(String xsdFile, String newPath) {\n File file = new File(xsdFile);\n if (!file.exists()) {\n return;\n }\n String xsdFolder = file.getParent();\n SAXReader saxReader = new SAXReader();\n Document doc;\n try {\n URL url = file.toURI().toURL();\n ... |
"private void fireball() {\n for (Block block : GeneralMethods.getBlocksAroundPoint(location, radius)) {\n ParticleEffect.FLAME.display(block.getLocation(), 0.6F, 0.6F, 0.6F, 0, 5);\n ParticleEffect.SMOKE.display(block.getLocation(), 0.6F, 0.6F, 0.6F, 0, 2);\n if (GeneralMethods.rand.nextInt(4) ... |
"public InputStream createInputRaw(String filename) {\n InputStream stream = null;\n if (filename == null)\n return null;\n if (filename.length() == 0) {\n return null;\n }\n if (filename.indexOf(\"String_Node_Str\") != -1) {\n try {\n HttpGet httpRequest = null;\n ... |
"private void updateMarkers() {\n int i = 1;\n clearMap();\n for (waypoint point : WPlist) {\n if (point.set) {\n mMap.addMarker(new MarkerOptions().position(point.coord).title(String.valueOf(i)).icon(BitmapDescriptorFactory.fromResource(R.drawable.placemark_circle_blue)).anchor((float) 0.5, ... |
"public void run() {\n Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();\n MessageDialog.openInformation(shell, UIText.MergeAction_MergeCanceledTitle, UIText.MergeAction_MergeCanceledMessage);\n}\n"
|
"public Iterator<SootMethod> iterator() {\n return new Iterator<SootMethod>() {\n SootMethod current = initStart;\n SootMethod next = null;\n public SootMethod next() {\n if (!hasNext())\n throw new NoSuchElementException();\n SootMethod n = current;\n current = n... |
"public NetworkGroup getPrimaryNetwork() {\n return this.primaryNetwork;\n}\n"
|
"public void closeContainerTag() {\n writer.closeTag(HTMLTags.TAG_DIV);\n int display = ((Integer) containerDisplayStack.pop()).intValue();\n if (!reportEmitter.browserSupportsInlineBlock) {\n if (((display & HTMLEmitterUtil.DISPLAY_INLINE) > 0) || ((display & HTMLEmitterUtil.DISPLAY_INLINE_BLOCK) > 0))... |
"public String getTempFilePath(String fileName) throws IOException {\n File f = createAndRegisterTempFile(fileName);\n return \"String_Node_Str\" + f.getAbsolutePath();\n}\n"
|
"public void testMondayWeekdayLastExecution() {\n final Cron cron = getUnixCron(\"String_Node_Str\");\n final Optional<ZonedDateTime> lastExecution = getLastExecutionFor(cron, ZonedDateTime.parse(\"String_Node_Str\"));\n if (lastExecution.isPresent()) {\n assertEquals(ZonedDateTime.parse(\"String_Node_S... |
"public void buildSearchResults() {\n TwitterTemplate twitter = new TwitterTemplate(null);\n Map<String, Object> response = new HashMap<String, Object>();\n response.put(\"String_Node_Str\", 42);\n response.put(\"String_Node_Str\", 24);\n response.put(\"String_Node_Str\", \"String_Node_Str\");\n Searc... |
"public void notifyChanged(Notification notification) {\n if (notification.getFeature() == PropertiesPackage.eINSTANCE.getProject_DeletedFolders()) {\n if (viewer != null && viewer.getControl() != null) {\n viewer.getControl().getDisplay().asyncExec(new Runnable() {\n public void run... |
"public TeiidDataSourceInfo getTeiidDataSourceInfo() {\n TeiidDataSourceInfo info = new TeiidDataSourceInfo(dataSourceName, dataSourceName, teiidDataSourceProperties, currentProvider, connRequiresPassword);\n return info;\n}\n"
|
"private void writeTypeAttribute(MarshalRecord marshalRecord, XMLDescriptor descriptor, String xsiPrefix) {\n String typeValue = descriptor.getSchemaReference().getSchemaContext();\n if (typeValue == null) {\n QName contextAsQName = descriptor.getSchemaReference().getSchemaContextAsQName();\n if (co... |
"public void run() {\n try {\n try (FileInputStream inputStream = new FileInputStream(pendingFile)) {\n int bufSize = 4096;\n int bytesRead;\n int size;\n int maxFileGrowthWait = 5;\n int fileGrowthWaited = 0;\n byte[] buffer = new byte[bufSize... |
"public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand) {\n if (worldIn.isAirBlock(pos.up())) {\n int height;\n BlockPos ground = pos;\n for (height = 1; worldIn.getBlockState(ground = ground.down()).getBlock() == this; ++height) ;\n if (height < MAX_HEIGHT &&... |
"private void bindSortOnCategorySeries(BaseQueryDefinition query, SeriesDefinition categorySD, GroupDefinition categoryGroupDefinition, Map valueExprMap) {\n String baseSortExpr = getValidSortExpr(categorySD);\n if (categorySD.isSetSorting() && baseSortExpr != null) {\n if (ChartReportItemUtil.isBaseGroupi... |
"public boolean isOptimizable(DataHandle handle) {\n if (!(handle instanceof DataHandleOutput)) {\n return false;\n }\n DataHandleOutput output = (DataHandleOutput) handle;\n if (output.getInputBuffer() == null || !output.getInputBuffer().equals(this.manager.getDataGeneralized())) {\n return f... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ((WordPress) getApplication()).component().inject(this);\n mDispatcher.register(this);\n setContentView(R.layout.new_edit_post_activity);\n if (savedInstanceState == null) {\n mSite = (SiteModel) getInten... |
"public void onScanCompleted(String path, Uri uri) {\n releaseMediaRecorder();\n previewCameraLayout.removeAllViewsInLayout();\n CuxtomCamActivity.this.finish();\n}\n"
|
"private void handlePreambleAddressCode(byte cc1, byte cc2) {\n int row = ROW_INDICES[cc1 & 0x07];\n boolean nextRowDown = (cc2 & 0x20) != 0;\n if (row != currentCueBuilder.getRow() || nextRowDown) {\n if (captionMode != CC_MODE_ROLL_UP && !currentCueBuilder.isEmpty()) {\n currentCueBuilder =... |
"public static float[] convertWindowCoordinatesToWorldCoordinates(final GL gl, final int iWindowCoordinatePositionX, final int iWindowCoordinatePositionY) {\n return convertWindowCoordinatesToWorldCoordinates(gl, iWindowCoordinatePositionX, iWindowCoordinatePositionY, 0.055f);\n}\n"
|
"public <T> T translateBean(T bean, String languageCode, boolean deep, boolean detached) {\n System.err.println(\"String_Node_Str\" + bean.toString() + \"String_Node_Str\" + languageCode + \"String_Node_Str\" + deep + \"String_Node_Str\");\n if (bean == null) {\n return null;\n }\n if (!detached) {\n... |
"public RectangleEdge getRangeAxisEdge(int index) {\n AxisLocation location = getRangeAxisLocation(index);\n return Plot.resolveRangeAxisLocation(location, this.orientation);\n}\n"
|
"public List<Object> findByRelation(String colName, Object colValue, Class clazz) {\n EntityMetadata m = KunderaMetadataManager.getEntityMetadata(clazz);\n List<Object> entities = null;\n if (isCql3Enabled(m)) {\n entities = findByRelationQuery(m, colName, colValue, clazz, dataHandler);\n } else {\n ... |
"public org.hl7.fhir.dstu2.model.Basic convertBasic(org.hl7.fhir.dstu3.model.Basic src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Basic tgt = new org.hl7.fhir.dstu2.model.Basic();\n copyDomainResource(src, tgt);\n for (org.hl7.fhir.dstu3.mode... |
"protected void renderBackground(GLGraphics g, float w, float h) {\n config.renderHeaderBackground(g, w, h, LABEL_HEIGHT, model);\n renderOrderGlyph(g, w, h);\n if (isCollapsed)\n return;\n boolean small = isSmallHeader(h);\n if (hasTitle && !(armDropColum && small)) {\n g.move(2, 2);\n ... |
"public int getMinorVersion() {\n return 0;\n}\n"
|
"public ItemRecord[] getChildern() {\n if (childern == null) {\n List<ItemRecord> recordList = new ArrayList<ItemRecord>();\n File[] listFiles = file.listFiles();\n if (listFiles != null) {\n for (File aFile : listFiles) {\n if (isValid(aFile)) {\n It... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.