content stringlengths 40 137k |
|---|
"public void update() {\n if (mAudioPlayerControl != null) {\n if (mAudioPlayerControl.hasMedia()) {\n this.setVisibility(LinearLayout.VISIBLE);\n } else {\n this.setVisibility(LinearLayout.GONE);\n return;\n }\n if (!mAudioPlayerControl.getTitle().equals(... |
"public void testGetPersistenceUnitUtilOnCloseEMF() {\n EntityManagerFactory emf = getEntityManagerFactory();\n emf.close();\n try {\n emf.getPersistenceUnitUtil();\n fail(\"String_Node_Str\");\n } catch (IllegalStateException e) {\n }\n}\n"
|
"public static void onTickInGame() {\n if (FMLCommonHandler.instance() == null || FMLCommonHandler.instance().getMinecraftServerInstance() == null) {\n return;\n }\n World world = FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(0);\n if (world != null && lastWorld != ... |
"protected void changeObject() {\n Employee employee = (Employee) this.workingCopy;\n employee.setNormalHours(new java.sql.Time[2]);\n employee.setStartTime(Helper.timeFromHourMinuteSecond(1, 1, 1));\n employee.setEndTime(Helper.timeFromHourMinuteSecond(1, 1, 1));\n employee.setPeriod(new EmploymentPerio... |
"public void index(String index, String type, String id, String json) throws IOException {\n logger.debug(\"String_Node_Str\", index, type, id);\n StringEntity entity = new StringEntity(json, StandardCharsets.UTF_8);\n Response restResponse = client.performRequest(\"String_Node_Str\", \"String_Node_Str\" + ind... |
"public void resolve(MarkerList markers, IContext context) {\n this.arguments.resolve(markers, context);\n IClass theClass = this.type.getTheClass();\n if (theClass == null) {\n return;\n }\n int count = theClass.parameterCount();\n for (int i = 0; i < count; i++) {\n IParameter param = ... |
"public org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent convertConceptReferenceComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ValueSet.ConceptReferenceComponent tgt =... |
"private String stripPrefix(String key) {\n String stripped = key;\n if (S3FileChooserDialog.prefix.trim().length() > 0) {\n int prefixLength = S3FileChooserDialog.prefix.length() - 1;\n stripped = key.substring(prefixLength, key.length());\n int firstSlash = stripped.indexOf(\"String_Node_St... |
"public double getZ() {\n return (double) pos.getZ() + 0.5D;\n}\n"
|
"public void load(InputStream is) throws IOException {\n DataInputStream dis = new DataInputStream(is);\n size = dis.readInt();\n size0 = dis.readInt();\n node1pos = dis.readInt();\n node2pos = dis.readInt();\n node3pos = dis.readInt();\n int vectorSize = dis.readInt();\n vector = new byte[vecto... |
"private void doInclude(ServletRequest request, ServletResponse response) throws ServletException, IOException {\n State state = new State(request, response, DispatcherType.INCLUDE);\n wrapResponse(state);\n if (name != null) {\n ApplicationHttpRequest wrequest = (ApplicationHttpRequest) wrapRequest(sta... |
"public void updateServerSide() {\n if (inventory.getStackInSlot(SLOT_INPUT) != null) {\n FluidContainerData container = LiquidHelper.getLiquidContainer(inventory.getStackInSlot(SLOT_INPUT));\n if (container != null && RecipeManager.isLiquidResource(container.fluid)) {\n inventory.setInvento... |
"public void handleNoneRedoResponse(Packet packet) {\n if (request.operation == ClusterOperation.BLOCKING_QUEUE_POLL && packet.responseType == Constants.ResponseTypes.RESPONSE_SUCCESS) {\n if (!zeroBackup) {\n if (getPreviousMemberBefore(thisAddress, true, 1).getAddress().equals(packet.conn.getEndP... |
"public void execute() {\n boolean modified = false;\n if (modelManager.getContextManager() != null) {\n originalName = param.getName();\n for (IContext context : modelManager.getContextManager().getListContext()) {\n for (IContextParameter contextParameter : context.getContextParameterLi... |
"public static void main(String[] args) throws IOException {\n Logger.getRootLogger().setLevel(Level.WARN);\n if (!dbpediaFile.exists() || regenerateFile) {\n createDBpediaFile();\n }\n for (POIClass poiClass : POIClass.values()) {\n matchPerClass.put(poiClass, 0);\n noMatchPerClass.put... |
"public void setServerVmOptions(String aValue) {\n String oldValue = getRunServerVmOptions();\n if (aValue != null) {\n projectPrivateProperties.setProperty(RUN_SERVER_VM_OPTIONS_KEY, aValue);\n } else {\n projectPrivateProperties.remove(RUN_SERVER_VM_OPTIONS_KEY);\n }\n projectPrivatePrope... |
"public List handleFindByRange(EntityMetadata m, Client client, List result, Map<Boolean, List<IndexClause>> ixClause, boolean isRowKeyQuery) {\n List<IndexExpression> expressions = ixClause.get(isRowKeyQuery).get(0).getExpressions();\n if (expressions == null) {\n return null;\n }\n byte[] minValue ... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n String username = prefs.getString(\"String_Node_Str\", null);\n String password = prefs.getString(\"... |
"public void should_getStatus_correctly() {\n Timestamps timestamps = new Timestamps().invoke();\n GetStatusResponse1 status = webappService.getStatus();\n assertThat(status.getPricePlan(), is(\"String_Node_Str\"));\n assertThat(status.getCollectionResolutionSeconds(), is(PricePlan.DEMO.getPublishIntervalSe... |
"public Expression visitEntity_type_literal(JPQLSelectExpressionParser.Entity_type_literalContext ctx) {\n return new LiteralExpression(\"String_Node_Str\", ctx.identifier().getText());\n}\n"
|
"public static boolean isSupportedImageFile(String lcasefn) {\n return lcasefn.endsWith(Constants.FILE_EXTENSION_JPG) || lcasefn.endsWith(Constants.FILE_EXTENSION_GIF) || lcasefn.endsWith(Constants.FILE_EXTENSION_EPS) || lcasefn.endsWith(Constants.FILE_EXTENSION_JPEG) || lcasefn.endsWith(Constants.FILE_EXTENSION_PNG... |
"private void copyDatabase(SQLiteDatabase db) {\n String copyFrom = db.getPath();\n String copyTo = WordPress.getContext().getExternalFilesDir(null).getAbsolutePath() + \"String_Node_Str\" + DB_NAME;\n try {\n InputStream input = new FileInputStream(copyFrom);\n OutputStream output = new FileOutp... |
"private StructRowKey entrySerializationRowKey() {\n final StructRowKey singleEntryRowKey = new StructBuilder().add(new VariableLengthByteArrayRowKey()).add(new FixedByteArrayRowKey(SCHEMA_ID_BYTE_LENGTH)).add(new VariableLengthByteArrayRowKey()).toRowKey();\n singleEntryRowKey.setTermination(Termination.MUST);\n... |
"public void onReceive(Context context, Intent intent) {\n Bundle bundle = intent.getExtras();\n if (bundle != null) {\n Object[] pdus = (Object[]) bundle.get(\"String_Node_Str\");\n final SmsMessage[] messages = new SmsMessage[pdus.length];\n for (int i = 0; i < pdus.length; i++) {\n ... |
"public PFont createFont(String name, float size, boolean smooth, char[] charset) {\n String lowerName = name.toLowerCase();\n Typeface baseFont = null;\n if (lowerName.endsWith(\"String_Node_Str\") || lowerName.endsWith(\"String_Node_Str\")) {\n AssetManager assets = activity.getAssets();\n base... |
"public void filter(ContainerRequestContext incomingRequestContext, ContainerResponseContext outgoingResponseContext) throws IOException {\n String methodName = \"String_Node_Str\";\n Boolean skipped = (Boolean) incomingRequestContext.getProperty(OpentracingContainerFilter.SERVER_SPAN_SKIPPED_ID);\n if (skippe... |
"public void execute() {\n if (!launcherPomFile.exists()) {\n return;\n }\n if (getGoals().contains(TalendMavenConstants.GOAL_PACKAGE)) {\n try {\n MavenModelManager mavenModelManager = MavenPlugin.getMavenModelManager();\n Model model;\n model = mavenModelManager... |
"public void testIsUserRegionBundleLong() {\n Assert.assertTrue(this.testRegionHook.isUserRegionBundle(getBundleId(SYSTEM_BUNDLE_INDEX)));\n Assert.assertFalse(this.testRegionHook.isUserRegionBundle(getBundleId(KERNEL_BUNDLE_INDEX)));\n Assert.assertTrue(this.testRegionHook.isUserRegionBundle(getBundleId(USER_... |
"private void onParameterChanged(int row) {\n if (editingProcessor != null) {\n String key = parametersTableModel.getValueAt(row, 0).toString();\n Object value = parametersTableModel.getValueAt(row, 1);\n if (value instanceof Color) {\n selectedProcessor.getColors().put(key.substring(... |
"final private JsonPrimitive JsonNumber() throws ParseException {\n String intpart = null, fracpart = null, exppart = null;\n intpart = JsonInt();\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case 27:\n fracpart = JsonFrac();\n break;\n default:\n jj_la1[7] = ... |
"public void process(T object, ResultSet resultSet) throws SQLException {\n String value = resultSet.getString(name);\n if (value != null) {\n try {\n method.invoke(object, Context.getObjectMapper().readValue(value, parameterType));\n } catch (InvocationTargetException | IllegalAccessExce... |
"private Property getLeftmostProp(QualifiedName qname) {\n String pname = qname.getLeftmostName();\n Property p = props.get(pname);\n if (p != null) {\n return p;\n }\n if (this.ns != null) {\n p = this.ns.getNsProp(pname);\n if (p != null) {\n return p;\n }\n }\... |
"public boolean onInterceptTouchEvent(MotionEvent ev) {\n switch(ev.getActionMasked()) {\n case MotionEvent.ACTION_DOWN:\n if (DEBUG_EDGE_SWIPE)\n Log.d(TAG, \"String_Node_Str\" + ev.getY());\n mFirstX = ev.getX();\n mFirstY = ev.getY();\n mConsuming ... |
"private void paintFullCurve(Graphics g, MeasureCollection m, int mSelect, int pf, Color color) {\n if (m.getNumberOfValues(mSelect) == 0) {\n return;\n }\n g.setColor(color);\n int height = getHeight();\n int n = m.getNumberOfValues(mSelect);\n int[] x = new int[n];\n int[] y = new int[n];\... |
"public void actionPerformed(final ActionEvent e) {\n if (e.getSource() == btPreview) {\n dialogImage.setDistance((Integer) thresholdSpinner.getValue());\n dialogImage.setColorDistanceMode(modeByte);\n dialogImage.setColor(colorChooser.getColor().getRGB());\n bgim.add(dialogImage);\n ... |
"public HearthTreeNode use_core(PlayerSide side, Minion targetMinion, HearthTreeNode boardState, Deck deckPlayer0, Deck deckPlayer1, boolean singleRealizationOnly) throws HSException {\n HearthTreeNode toRet = super.use_core(side, targetMinion, boardState, deckPlayer0, deckPlayer1, singleRealizationOnly);\n if (t... |
"public static OpenFilePart openPart(String fileName, long startOffSet, int maxSize, MessageType keyType, MessageType dataType, KryoMemorySerializer deserializer) {\n List<KeyValue> keyValues = new ArrayList<>();\n String outFileName = Paths.get(fileName).toString();\n FileChannel rwChannel;\n try {\n ... |
"protected boolean playManaAbility(ManaAbility ability, Game game) {\n if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.ACTIVATE_ABILITY, ability.getId(), ability.getSourceId(), playerId))) {\n int bookmark = game.bookmarkState();\n if (ability.activate(game, false)) {\n if (abi... |
"private boolean removeAllSessionsWithAppId(long appId) {\n synchronized (SESSION_LOCK) {\n if (sessionMap != null) {\n SparseArray<String> iter = sessionMap.clone();\n int size = iter.size();\n for (int i = 0; i < size; i++) {\n if (((Long) iter.valueAt(i)).com... |
"public static boolean canChildBeDismissed(View v) {\n if (!(v instanceof ExpandableNotificationRow)) {\n return false;\n }\n final View veto = v.findViewById(R.id.veto);\n return (veto != null && veto.getVisibility() != View.GONE);\n}\n"
|
"public List<Project> findProjects() {\n List<Project> list = persistenceManager.find(Project.class, new NameValue(\"String_Node_Str\", 0), null, null, tableName(Project.class));\n AbstractObjectNameBasedSorter.sort(list);\n for (Project project : list) {\n project.setProjectVersions(findProjectVersions... |
"private void calculateOthers() {\n if (params.ignoreOut) {\n v3 = v2;\n t3 = 0;\n a3 = 0;\n d3 = 0;\n t1 = (v2 - v1) / a1;\n t2 = time - t1;\n d2 = v2 * t2;\n d1 = distance - d2;\n d3 = 0;\n } else if (params.ignoreIn) {\n v1 = v2;\n a1... |
"public void pullEdge(AbstractEdge edge, AbstractNode source, AbstractNode target, MetaEdgeImpl metaEdge) {\n float edgeWeight = edge.getWeight();\n float metaWeight = metaEdge.getWeight();\n float div = 1f;\n if (source == metaEdge.getSource() || source == metaEdge.getTarget() || target == metaEdge.getTarg... |
"public boolean luaStackCall(LuaState vm) {\n switch(id) {\n case INSTALL:\n install(vm._G);\n break;\n case CONCAT:\n {\n int n = vm.gettop();\n LTable table = vm.totable(2);\n LString sep = (n >= 3 ? vm.tolstring(3) : null)... |
"public static String dateToStr(Date date) {\n return dateToStr(date, STANDARD_FORMAT_STR);\n}\n"
|
"public void handleMessage(Message msg) {\n Bundle bundle = msg.getData();\n final int numOfCards = bundle.getInt(\"String_Node_Str\");\n final String[] listOfWords = bundle.getStringArray(\"String_Node_Str\");\n final String[] listOfForeign = bundle.getStringArray(\"String_Node_Str\");\n final String[] ... |
"public void finalizeSaleOrder(SaleOrder saleOrder) throws Exception {\n updateCustomerCreditLines(saleOrder);\n _finalizeSaleOrder(saleOrder);\n}\n"
|
"public void testInverseAndNestedJoin() throws Exception {\n if (getDialect() == SQLITE || getDialect() == CUBRID) {\n log.info(\"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n Result<Record> result1 = create().select(TAuthor_ID(), TBook_ID(), TBookStore_NAME()).from(TAuthor().join(TBoo... |
"public ItemStack getOutcome(boolean isFixedDrops) {\n if (random.nextDouble() * 100.0D < percentage && material != null) {\n int dropAmount = isFixedDrops ? range.getMaximumInteger() : range.getMinimumInteger() + random.nextInt(Math.abs(range.getMaximumInteger() - range.getMinimumInteger() + 1));\n if... |
"protected int executeCommand() throws CommandException, CommandValidationException {\n File serverDir = getServerDirs().getServerDir();\n if (serverDir == null || !serverDir.isDirectory())\n return noSuchInstance();\n if (getServerDirs().getLocalPassword() == null)\n return instanceNotRunning();... |
"public void randomizePokemonTypes(boolean evolutionSanity) {\n if (evolutionSanity) {\n Set<Pokemon> dontCopyPokes = RomFunctions.getBasicOrNoCopyPokemon(this);\n for (Pokemon pk : dontCopyPokes) {\n pk.primaryType = randomType();\n pk.secondaryType = null;\n if (pk.ev... |
"public static List<Span> breakpointsToSpans(int start, List<Integer> breakpoints, int end) {\n List<Span> spans = new ArrayList<>();\n int curstart = start;\n for (int p : breakpoints) {\n spans.add(new Span(curstart, p));\n curstart = p;\n }\n spans.add(new Span(curstart, end));\n retu... |
"private void addBranchName(String branchName) throws IllegalArgumentException, IllegalStateException, IOException {\n if (branchName != null && !branchName.equals(\"String_Node_Str\")) {\n serializer.startTag(\"String_Node_Str\", \"String_Node_Str\");\n serializer.text(branchName);\n serializer... |
"MemberReader createMemberReader(Role role) {\n final Access access = role.getAccess(this);\n switch(access) {\n case NONE:\n throw Util.newInternal(\"String_Node_Str\" + this);\n case ALL:\n return (isRagged()) ? new RestrictedMemberReader(getMemberReader(), role) : getMemberR... |
"private boolean deleteElements(IProxyRepositoryFactory factory, DeleteActionCache deleteActionCache, final RepositoryNode currentJobNode, Boolean confirm) throws PersistenceException, BusinessException {\n boolean needReturn = false;\n final boolean[] enableDeleting = new boolean[1];\n enableDeleting[0] = tru... |
"public boolean commit() throws LoginException {\n if (super.commit()) {\n subject.getPrincipals().add(unixPrincipal);\n return true;\n }\n return false;\n}\n"
|
"private void updateOnlineControllers(List<String> controllers) throws KeeperException, InterruptedException {\n for (String controller : controllers) {\n String blurVersion = \"String_Node_Str\";\n byte[] b = this.zookeeper.getData(\"String_Node_Str\" + controller, false, null);\n if (b != null... |
"public void setup() {\n AVOSCloud.setDebugLogEnabled(true);\n AVOSCloud.applicationContext = RuntimeEnvironment.application;\n}\n"
|
"private void setLayout() {\n setContentView(R.layout.list_pull);\n setActionBar();\n mEmptyView = (ViewGroup) findViewById(R.id.empty);\n mPullToRefreshListView = (PullToRefreshListView) findViewById(R.id.list);\n mList = mPullToRefreshListView.getRefreshableView();\n mList.setOnItemClickListener(thi... |
"public void widgetSelected(SelectionEvent e) {\n font.store();\n lineColor.store();\n backGroundColor.store();\n textColor.store();\n String[] fontList = SDViewPref.getFontList();\n font.setPreferenceName(fontList[classItemList.getSelectionIndex()] + TEMP_TAG);\n font.load();\n backGroundColor.... |
"public Context createContext(String id, String ctxPath, File location, String defaultContextXmlLocation, String defaultWebXmlLocation, boolean useDOLforDeployment, WebModuleConfig wmInfo) {\n File configFile = null;\n if (ctxPath.equals(\"String_Node_Str\")) {\n configFile = new File(getCatalinaHome() + \... |
"public static Map<Integer, CategoryModel> getAllCategories() {\n String sqlCommand = sqlSelectAllCategories() + \"String_Node_Str\";\n Cursor cursor = WordPress.wpDB.getDatabase().rawQuery(sqlCommand, null);\n if (cursor == null || !cursor.moveToFirst() || cursor.getCount() == 0) {\n return null;\n ... |
"public void deleteForeverElemensByTXT() throws Exception {\n List<String[]> delLs = new ArrayList<String[]>();\n for (int i = 0; i < delLs.size(); i++) {\n String[] els = (String[]) delLs.get(i);\n IPath path = new Path(els[1]);\n if (els[0].equals(\"String_Node_Str\")) {\n IFile ... |
"private static boolean isOracleAmazonStringContained(String dbType, String emfName) {\n if (dbType != null && !dbType.equals(EDatabaseTypeName.ORACLEFORSID.getDisplayName()) && emfName != null && Pattern.compile(\"String_Node_Str\", Pattern.CASE_INSENSITIVE).matcher(dbType).matches()) {\n for (String amazonS... |
"public void init(GameEngine gameEngine) {\n context = gameEngine.createChildContext();\n CoreRegistry.setContext(context);\n EntitySystemSetupUtil.addEntityManagementRelatedClasses(context);\n entityManager = context.get(EngineEntityManager.class);\n eventSystem = context.get(EventSystem.class);\n co... |
"public void copyFileInto(String fullPath, File localFile) throws IOException {\n final String relativePath = mounter.getMountRelativePath(fullPath, mountPoint);\n final FileMetadata metadata;\n final SquallArchiveCompressor compressor;\n final InputStream is;\n metadata = scanMetadataForFile(relativePat... |
"public boolean onContextItemSelected(MenuItem item) {\n Post post = new Post(WordPress.currentBlog.getLocalTableBlogId(), mSelectedID, isPage);\n if (post.getId() < 0) {\n if (!getActivity().isFinishing()) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n WPAler... |
"public void testSelectAggregateEntitySelectPaginated() {\n PaginatedCriteriaBuilder<Tuple> cb = cbf.create(em, Tuple.class).from(Document.class, \"String_Node_Str\").selectCase().when(\"String_Node_Str\").gtExpression(\"String_Node_Str\").thenExpression(\"String_Node_Str\").otherwiseExpression(\"String_Node_Str\").... |
"protected void initializeComponent() throws JSONException {\n super.initializeComponent();\n for (ComponentOption option : getOptions()) {\n if (\"String_Node_Str\".equals(option.getType())) {\n textRepresentationOnDisabled = Boolean.parseBoolean(option.getValue());\n } else if (\"String... |
"public void shouldSkipNullItems() {\n Mapper<Source, Destination> mapper = Mapping.from(Source.class).to(Destination.class).replaceCollection(Source::getIds, Destination::getIds).withSkipWhenNull(idBuilder()).mapper();\n Source source = Source.builder().ids(Arrays.asList(1L, null, 2L, null, 3L)).build();\n De... |
"private void prune(Node node) {\n if (node.getLowerBound() == null) {\n return;\n }\n if (node.hasProperty(Node.PROPERTY_SUCCESSORS_PRUNED)) {\n return;\n }\n if (super.getGlobalOptimum() == null) {\n pruningCandidates.add(node);\n return;\n }\n Node optimalTransformati... |
"BindingImpl<T> build(InjectorImpl injector) {\n if (this.factory != null) {\n Scope scope = this.scope == null ? Scopes.NO_SCOPE : this.scope;\n InternalFactory<? extends T> scopedFactory = Scopes.scope(this.key, injector, this.factory, scope);\n if (instance != null) {\n return new ... |
"public final MapArray<String, ICell> getColumn(int colNum) {\n if (count() < 0 || table.columns().count() < colNum || colNum <= 0)\n throw exception(\"String_Node_Str\", colNum, count());\n try {\n List<WebElement> webColumn = table.columns().getColumnAction(colNum);\n return new MapArray<>(... |
"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 static String getDhcpRange(final String cidr) {\n final String[] splitResult = cidr.split(\"String_Node_Str\");\n final long size = Long.parseLong(splitResult[1]);\n return NetUtils.getIpRangeStartIpFromCidr(splitResult[0], size);\n}\n"
|
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n boolean result = super.configure(name, params);\n PublicSearch = createSearchBuilder();\n PublicSearch.and(\"String_Node_Str\", PublicSearch.entity().isPublicTemplate(), SearchCriteria.Op.EQ);\n routerTmpltN... |
"private void setup() {\n if (displayWhenEmpty) {\n getStyleClass().add(\"String_Node_Str\");\n }\n setSpacing(3);\n parentIssue.addListener(new WeakChangeListener<Number>(createParentsChangeListener()));\n if (this.milestoneTitle != null) {\n milestoneTitle.addListener(new WeakChangeListen... |
"public void tearDown() throws Exception {\n super.tearDown();\n if (index != null && service.versionCompare(\"String_Node_Str\") >= 0) {\n index.remove();\n }\n if (tcpInput != null) {\n tcpInput.remove();\n }\n}\n"
|
"public Long createCluster(ClusterCreate createSpec) throws Exception {\n if (CommonUtil.isBlank(createSpec.getDistro())) {\n setDefaultDistro(createSpec);\n }\n DistroRead distroRead = getDistroManager().getDistroByName(createSpec.getDistro());\n createSpec.setDistroVendor(distroRead.getVendor());\n... |
"private LogicalDeviceData createLogicalData(ObjectType objectType) {\n List<DeviceNeighbour> neighbours = new ArrayList<>();\n List<ObjectType> objList2 = objectType.getObject();\n for (ObjectType type : objList2) {\n if (type.getObjectType().equals(\"String_Node_Str\")) {\n neighbours.add(c... |
"public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n try {\n Object resultObject = invokeObject(proxy, method, args);\n if (resultObject != null)\n return resultObject;\n try {\n if (isReturnAsync(proxy, method, args)) {\n if... |
"private boolean groupKeyValuesEqual(org.eclipse.birt.data.engine.odi.IResultIterator odiResult, Object[] groupKeyValues, String[] columnExprs, int i) throws BirtException {\n Object fieldValue = null;\n try {\n Context cx = Context.enter();\n fieldValue = ScriptEvalUtil.evalExpr(new ScriptExpressio... |
"public boolean isInterface() {\n return klass.isInterface();\n}\n"
|
"public Answer createVolumeFromSnapshot(final CopyCommand cmd) {\n final Connection conn = hypervisorResource.getConnection();\n final DataTO srcData = cmd.getSrcTO();\n final SnapshotObjectTO snapshot = (SnapshotObjectTO) srcData;\n final DataTO destData = cmd.getDestTO();\n final PrimaryDataStoreTO poo... |
"public void populateMenu(List list, String menu, MultimediaListener listener) {\n suiteTable.clear();\n entryTable.clear();\n menuTable.clear();\n Enumeration en = session.platform.getInstalledSuites().elements();\n EvaluationContext ec = null;\n while (en.hasMoreElements()) {\n Suite suite = ... |
"private void createConnectionLines(SelectionType SelectionType, int iConnectionID) {\n PathwayVertexGraphItemRep tmpPathwayVertexGraphItemRep;\n int iPathwayHeight = pathway.getHeight();\n int iViewID = iUniqueID;\n for (int iVertexRepID : selectionManager.getElements(SelectionType)) {\n tmpPathwayV... |
"public void rcWaitForWindowActivation(final String title, String operator, int pTimeout, int delay) {\n Stage s = null;\n try {\n long timeout = pTimeout;\n long done = System.currentTimeMillis() + timeout;\n long now;\n do {\n s = getStageByTitle(title, operator);\n ... |
"public String toQualifiedName(String catalog, String schema, String table) {\n if (is(MSSQL)) {\n catalog = \"String_Node_Str\";\n }\n if (is(SYBASE_ASE)) {\n schema = \"String_Node_Str\";\n }\n StringBuffer qualName = new StringBuffer();\n if (catalog != null && catalog.length() > 0) {... |
"private void renderWithIce(HashMap<Integer, BoundingBoxList> app2bbs, String pointerID) {\n ArrayList<SelectionGroup> selectionGroupList = new ArrayList<SelectionGroup>();\n for (Entry<Integer, BoundingBoxList> e : app2bbs.entrySet()) {\n SelectionGroup selectionGroup = new SelectionGroup();\n User... |
"protected IReportItemExecutor prepareChildExecutor() throws Exception {\n if (prepareFirstChild) {\n if (fragment == null && nextOffset == -1) {\n DocumentExtension docExt = (DocumentExtension) content.getExtension(IContent.DOCUMENT_EXTENSION);\n if (docExt != null) {\n n... |
"private void addRelatedExtendedInterfaces(ObjectType instance, Set<ObjectType> set) {\n FunctionType constructor = instance.getConstructor();\n if (constructor != null) {\n if (!set.add(instance)) {\n return;\n }\n for (ObjectType interfaceType : constructor.getExtendedInterfaces(... |
"public void clear() {\n takeWriteLock();\n try {\n recordsWithNullValue.clear();\n recordMap.clear();\n } finally {\n releaseWriteLock();\n }\n}\n"
|
"public BankOrder save(BankOrder entity) {\n try {\n BankOrderService bankOrderService = Beans.get(BankOrderService.class);\n bankOrderService.generateSequence(entity);\n if (entity.getStatusSelect() == BankOrderRepository.STATUS_DRAFT || entity.getStatusSelect() == BankOrderRepository.STATUS_AW... |
"public static void init() {\n if (ConfigurationHandler.resourcePlants) {\n Block farmland = null;\n OreDictHelper.getRegisteredOres();\n Items.initFruits();\n diamahlia = new BlockModPlant(farmland, net.minecraft.init.Blocks.diamond_ore, Items.nuggetDiamond, Items.nuggetDiamondMeta, 5, 6... |
"private void orderNetworkByGroups(SortedMap<Integer, FabricLink> existingOrd, List<String> groupOrder) {\n Map<String, List<FabricLink>> groups = new TreeMap<String, List<FabricLink>>();\n for (Map.Entry<Integer, FabricLink> entry : existingOrd.entrySet()) {\n FabricLink fl = entry.getValue();\n St... |
"public static String getStringContent(IFile file) throws CoreException, IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(file.getContents(), StandardCharsets.UTF_8));\n String str = null;\n StringBuilder sb = new StringBuilder();\n while ((str = r.readLine()) != null) {\n ... |
"public static <T, S> Sequence<T> unique(final Iterable<? extends T> iterable, final Callable1<? super T, ? extends S> callable) {\n return new Sequence<T>() {\n public Iterator<T> iterator() {\n return Iterators.filter(iterable.iterator(), new UniquePredicate<T, S>(callable));\n }\n };\n... |
"public static boolean preferReconnect() {\n if (hasWaittimeLinks && JDUtilities.getConfiguration().getBooleanProperty(Configuration.PARAM_ALLOW_RECONNECT, true) && SubConfiguration.getConfig(\"String_Node_Str\").getBooleanProperty(\"String_Node_Str\", true) && JDUtilities.getConfiguration().getBooleanProperty(Confi... |
"protected void onDraw(Canvas canvas) {\n int startX = getScrollX() + (iconLeftBitmaps == null ? 0 : (iconOuterWidth + iconPadding));\n int endX = getScrollX() + (iconRightBitmaps == null ? getWidth() : getWidth() - iconOuterWidth - iconPadding);\n int lineStartY = getScrollY() + getHeight() - getPaddingBottom... |
"public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {\n String preName = Mvcs.getName();\n Context preContext = Mvcs.resetALL();\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.