content stringlengths 40 137k |
|---|
"public Object getPropertyFromElement(ReportDesign design, ElementPropertyDefn prop) {\n Object value = null;\n value = getPropertyFromSelf(design, prop);\n if (value != null)\n return value;\n if (isInheritableProperty(prop)) {\n value = getPropertyFromParent(design, prop);\n if (value... |
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n Context context = new ContextThemeWrapper(getActivity(), R.style.G4LTheme_Dialog);\n View view = LayoutInflater.from(context).inflate(R.layout.gc_number_input_dialog, null);\n editText = (EditText) view.findViewById(R.id.gc_number_input_edit_text);\n... |
"public static String decryptPassword(Context context, String cipherText) throws GeneralSecurityException, IOException {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n return aesDecryptPassword(cipherText);\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n retu... |
"void logCommandLine() {\n StringBuilder sb = new StringBuilder();\n for (String s : jvmOptionsList) {\n sb.append(NEWLINE);\n sb.append(s);\n }\n if (!isFakeLaunch()) {\n GFLauncherLogger.fine(\"String_Node_Str\", sb.toString());\n }\n}\n"
|
"private soot.Value getFieldLocal(polyglot.ast.Field field) {\n polyglot.ast.Receiver receiver = field.target();\n soot.javaToJimple.PolyglotMethodSource ms = (soot.javaToJimple.PolyglotMethodSource) body.getMethod().getSource();\n if ((field.name().equals(\"String_Node_Str\")) && (receiver.type() instanceof p... |
"private IBinaryObject validateBinary(IBinaryFile o) {\n if (o instanceof IBinaryObject) {\n IBinaryObject object = (IBinaryObject) o;\n String s = null;\n try {\n s = object.getCPU();\n } catch (Exception _) {\n }\n if (s != null && s.length() > 0) {\n ... |
"private static String getReturnTypeIfCascadingSupportedForIt(String typeDesc) {\n String typeName = typeDesc.substring(1, typeDesc.length() - 1);\n return isTypeSupportedForCascading(typeName) ? typeName : null;\n}\n"
|
"public void addClassDetailsForMappedSuperClasses(MetadataClass clz, ClassDescriptor initialDescriptor, ClassDetails classDetails, Map classDetailsMap, List unMappedAttributes, boolean weaveChangeTracking) {\n if (initialDescriptor.getInheritancePolicyOrNull() != null && initialDescriptor.getInheritancePolicyOrNull(... |
"public <T> T doInTransaction(TransactionalUnitOfWork<T> function, Transaction.Type txType) {\n Transaction transaction = txManager.getCurrentTransaction();\n if (!forceTx && (!driver.requiresTransaction() || transaction != null)) {\n return function.doInTransaction();\n }\n transaction = beginTransa... |
"public static void logOnAutoSuggestionCanceled() {\n if (sLogEnabled) {\n sLatinImeLogger.mAutoCancelledCountPerDic[sLastAutoSuggestDicTypeId]++;\n if (sLastAutoSuggestBefore != null && sLastAutoSuggestAfter != null) {\n String[] strings = new String[] { sLastAutoSuggestBefore, sLastAutoSug... |
"public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException {\n ConversationState state = ConversationState.getCurrent();\n try {\n if (state != null && !state.getIdentity().getUserId().equals(IdentityConstants.ANONIM)) {\n if (log.isDebugEn... |
"public static <E> LinkedHashSet<E> newLinkedHashSet(Iterable<? extends E> elements) {\n if (elements instanceof Collection) {\n return new LinkedHashSet<E>(Collections2.cast(elements));\n }\n LinkedHashSet<E> set = newLinkedHashSet();\n Iterables.addAll(set, elements);\n return set;\n}\n"
|
"public String view() {\n try {\n String frontEndCaseDataIn = extractWidgetConfig(\"String_Node_Str\");\n this.setFrontEndCaseData(frontEndCaseDataIn);\n String channelIn = extractWidgetConfig(\"String_Node_Str\");\n this.setChannel(channelIn);\n if ((!StringUtils.isBlank(this.getK... |
"public void move(String sourceUrl, String destinationUrl) throws IOException {\n HttpMove move = new HttpMove(sourceUrl, destinationUrl);\n HttpResponse response = this.executeWrapper(move);\n StatusLine statusLine = response.getStatusLine();\n if (!SardineUtil.isGoodResponse(statusLine.getStatusCode()))\n... |
"public void layoutContainer(Container parent) {\n synchronized (parent.getTreeLock()) {\n Insets insets = parent.getInsets();\n if (!componentList.isEmpty()) {\n final Component comp = ((Card) componentList.get(currentCard)).comp;\n comp.setBounds(hgap + insets.left, vgap + inset... |
"default Ƒ1<I, O> nonNull(O or) {\n return andThen(o -> o == null ? or : o);\n}\n"
|
"public NavigableMap<Long, Location> listFiles(final LoggingContext loggingContext) throws Exception {\n return execute(new TransactionExecutor.Function<Table, NavigableMap<Long, Location>>() {\n\n public NavigableMap<Long, Location> apply(DatasetContext<Table> ctx) throws Exception {\n Row cols = ... |
"public void setLectures(Cursor cur) {\n do {\n CalendarItem item = new CalendarItem();\n item.start = Utils.getDateTime(cur.getString(1));\n item.end = Utils.getDateTime(cur.getString(2));\n item.title = cur.getString(0);\n item.title = item.title.replaceAll(\"String_Node_Str\", \... |
"private SDOType getOrCreateType(String uri, String typeName, String xsdLocalName) {\n String lookupName = typeName;\n int index = lookupName.indexOf(':');\n if (index != -1) {\n lookupName = lookupName.substring(index + 1, lookupName.length());\n }\n SDOTypeHelper sdoTypeHelper = (SDOTypeHelper) ... |
"private static void setNameAndTypeAndID(Resource node, Resource nodeTypeResource, TNodeTemplate nodeTemplate) {\n String name = getName(node);\n nodeTemplate.setName(name);\n nodeTemplate.setId(name);\n String nodeTypeNameSpace = getXMLNamespace(nodeTypeResource);\n QName type;\n try {\n type ... |
"public int delete(Uri uri, String where, String[] whereArgs) {\n int match = sUriMatcher.match(uri);\n int affected;\n switch(match) {\n case VIDEOS:\n affected = getDb().delete(VIDEO_TABLE_NAME, (!TextUtils.isEmpty(where) ? \"String_Node_Str\" + where + ')' : \"String_Node_Str\"), whereArgs... |
"public static String getSourceRepresentation(Class type, String optArrayDim) {\n if (type.equals(Integer.TYPE)) {\n return \"String_Node_Str\";\n } else if (type.equals(Long.TYPE)) {\n return \"String_Node_Str\";\n } else if (type.equals(Short.TYPE)) {\n return \"String_Node_Str\";\n }... |
"public String toString() {\n return schema;\n}\n"
|
"public void testGetRefreshedDataProviderForDB2() throws SQLException {\n DatabaseConnection dbProvider = ConnectionFactory.eINSTANCE.createDatabaseConnection();\n setJDBDB2Connection(dbProvider);\n List<Catalog> catalogPackageFilter = new ArrayList<Catalog>();\n List<orgomg.cwm.objectmodel.core.Package> sc... |
"public boolean replaceEvent(GameEvent event, Ability source, Game game) {\n Player player = game.getPlayer(source.getControllerId());\n MageObject sourceObject = game.getObject(source.getSourceId());\n if (player != null && cost != null && sourceObject != null) {\n boolean replace = true;\n if (... |
"protected Integer getDeclaredWidth(RenderState renderState, int actualAvailWidth) {\n Integer dw = this.declaredWidth == null ? 0 : this.declaredWidth;\n if ((dw.intValue() == INVALID_SIZE.intValue()) || (actualAvailWidth != this.lastAvailWidthForDeclared)) {\n this.lastAvailWidthForDeclared = actualAvail... |
"private void drawDragHint(Canvas canvas, Rect2i itemRegion) {\n if (mouseOverItemType == MouseOverItemType.TOP) {\n canvas.drawLine(itemRegion.minX(), itemRegion.minY(), itemRegion.maxX(), itemRegion.minY(), Color.WHITE);\n } else if (mouseOverItemType == MouseOverItemType.CENTER) {\n canvas.drawLi... |
"public static void JoinComputationThread() {\n pageCachePool.shutdown();\n try {\n pageCachePool.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);\n } catch (InterruptedException e) {\n Server.logger.info(\"String_Node_Str\");\n e.printStackTrace();\n }\n transCompMediatorPool... |
"private void removePlayerFromTeam(int slot, UUID uuid, String player) {\n if (uuid.version() == 2)\n return;\n if (nameToSlotMap.getInt(player) == slot) {\n nameToSlotMap.remove(player);\n sendPacket(removePlayer(slot, player));\n }\n if (playerToTeamMap.containsKey(player)) {\n ... |
"private static Date toDate(String source) throws BirtException {\n try {\n return toDateISO8601(source, null);\n } catch (BirtException e) {\n try {\n return toDate(source, JRE_DEFAULT_LOCALE);\n } catch (BirtException use) {\n try {\n return toDate(sourc... |
"public Image getImage(Object obj) {\n TreeObject object = (TreeObject) obj;\n if (object.getType() == TreeObject._SERVER_)\n return ImageCache.getCreatedImage(EImage.DEFAULT.getPath());\n else if (object.getType() == TreeObject.DATA_CLUSTER)\n return ImageCache.getCreatedImage(EImage.DATA_CLUSTE... |
"protected IEditorPart getCorrespondingEditor(RepositoryNode node) {\n IEditorReference[] eidtors = getActivePage().getEditorReferences();\n for (IEditorReference eidtor : eidtors) {\n try {\n IEditorInput input = eidtors[i].getEditorInput();\n if (!(input instanceof JobEditorInput)) ... |
"public void adjustCosts(Ability ability, Game game) {\n Player player = game.getPlayer(controllerId);\n if (player == null || !(ability instanceof SpellAbility)) {\n return;\n }\n Target target = new TargetControlledCreaturePermanent(1, Integer.MAX_VALUE, filter, true);\n target.setTargetName(\"S... |
"public void onClick(View v) {\n if (AppController.getStoredString(Constants.Authorization) != null) {\n mBookmarkIc.setImageResource(R.mipmap.ic_action_action_bookmark);\n mBookmarkIc.setOnClickListener(removeFromWishList);\n apiRequest.bookmark(giftId);\n } else {\n Snackbari.showS(m... |
"protected void buttonPressed(int buttonId) {\n switch(buttonId) {\n case 0:\n pref = PREF_OVERWRITE;\n break;\n case 1:\n pref = PREF_NOT_OVERWRITE;\n break;\n default:\n break;\n }\n\n protected void buttonPressed... |
"public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {\n InputDialog id = new InputDialog(shell.getShell(), Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"), \"String_Node_Str\", new IInputValidator() {\n\n public String isValid(String newText) {\n if... |
"private void convertMouseCursors(String dungeonKeeperFolder, String destination) {\n if (!ConvertProcess.MOUSE_CURSORS.isOutdated()) {\n return;\n }\n LOGGER.log(Level.INFO, \"String_Node_Str\", destination);\n updateStatus(null, null, ConvertProcess.MOUSE_CURSORS);\n AssetUtils.deleteFolder(new ... |
"String read() throws IOException {\n final String input = super.read();\n if (input == null) {\n return null;\n }\n final String[] lines = StringUtils.split(input, \"String_Node_Str\");\n for (int i = 0; i < lines.length; i++) {\n if (lines[i].startsWith(\"String_Node_Str\")) {\n ... |
"public static long getKeyValueDataStructureSize(int klength, int vlength, int tagsLength) {\n if (tagsLength == 0) {\n return (long) KeyValue.KEYVALUE_INFRASTRUCTURE_SIZE + klength + vlength;\n }\n return KeyValue.KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE + klength + vlength + tagsLength;\n}\n"
|
"public void createDataStructs(Map<String, Map<String, JsonFormatterData>> stationData, Map<String, Integer> stationToNum) {\n List<String> obsProps = handler.getRequestedObservedProperties();\n String time_keyname = baseCDMClass.TIME_STR.replace(\"String_Node_Str\", \"String_Node_Str\");\n String station_keyn... |
"public void testCreateBooleanMapFromV8Object() {\n V8Object object = v8.executeObjectScript(\"String_Node_Str\");\n Map<String, ? super Object> map = V8ObjectUtils.toMap(object);\n assertEquals(4, map.size());\n assertTrue((boolean) map.get(\"String_Node_Str\"));\n assertTrue((boolean) map.get(\"String_... |
"public void writeSingleValue(Object value, Object parent, XMLRecord record, AbstractSession session) {\n Object attributeValue = value;\n if (getConverter() != null) {\n if (getConverter() instanceof XMLConverter) {\n attributeValue = ((XMLConverter) getConverter()).convertObjectValueToDataValu... |
"String printCubeAlongDimension(CubeCursor dataCursor, DimensionCursor countryCursor, DimensionCursor cityCursor, DimensionCursor streetCursor, DimensionCursor timeCursor, DimensionCursor productCursor1, DimensionCursor productCursor2) throws OLAPException {\n String[] lines = new String[4];\n for (int i = 0; i <... |
"public void addMesh(Mesh mesh, Transform transform) {\n if (mesh.getNumberOfVertices() <= 900 && !mesh.prefersStatic()) {\n meshes.add(mesh);\n transforms.add(transform);\n indices.add(meshes.size() - 1);\n } else {\n staticMeshes.add(SilenceEngine.graphics.getStaticMesh(mesh));\n ... |
"public void visitInsn(int opcode) {\n if (include) {\n getAdaptee().visitInsn(opcode);\n }\n}\n"
|
"public void setFirstBarPaint(Paint paint) {\n ParamChecks.nullNotPermitted(paint, \"String_Node_Str\");\n this.firstBarPaint = paint;\n fireChangeEvent();\n}\n"
|
"boolean visitScalarParameter(ScalarParameterHandle param, Object value) {\n String paramName = param.getName();\n Object paramValue = runValues.get(paramName);\n buffer.append(paramName);\n buffer.append(\"String_Node_Str\");\n buffer.append(paramValue);\n buffer.append(\"String_Node_Str\");\n ret... |
"private boolean containsDiscoveredServiceID(RemoteServiceEndpointDescription desc) {\n synchronized (serviceLocations) {\n return serviceLocations.contains(desc);\n }\n}\n"
|
"public void doSave(IProgressMonitor monitor) {\n super.doSave(monitor);\n String appStr = appsEntry.getValue().toLowerCase();\n if (\"String_Node_Str\".equals(appStr)) {\n addPlantPage();\n } else {\n removePlantPage();\n }\n return;\n}\n"
|
"private String createClassLabel(ClassNode node) {\n StringBuilder sb = new StringBuilder();\n node = node.redirect();\n if (ClassHelper.DYNAMIC_TYPE == node) {\n return \"String_Node_Str\";\n }\n sb.append(node.getNameWithoutPackage());\n GenericsType[] generics = node.getGenericsTypes();\n ... |
"public void doRunAction() {\n try {\n JobContext jobContext = initJobContextForOozie(JobSubmissionType.REMOTE, iContext);\n String jobIdInOozie = CorePlugin.getDefault().getPreferenceStore().getString(\"String_Node_Str\" + jobContext.getJobName());\n if (jobIdInOozie != null)\n trace... |
"private void defineName(Node name, Node var, Node parent, JSDocInfo info) {\n Node value = name.getFirstChild();\n JSType type = getDeclaredType(sourceName, info, name, value);\n if (type == null) {\n if (info == null) {\n CompilerInput input = compiler.getInput(sourceName);\n Pre... |
"public void render(final GL2 gl) {\n contentSpacing.getYDistances().clear();\n float yPosition = y;\n float xPosition = 0;\n float fieldHeight = 0;\n float fieldWidth = x;\n int iCount = 0;\n for (Integer contentID : heatMap.getContentVA()) {\n iCount++;\n fieldHeight = contentSpacin... |
"private Map<String, File> localizeUserResources(SparkContextConfig contextConfig, ClientSparkContext clientContext, List<LocalizeResource> allLocalizedResources, File targetDir) throws IOException {\n Map<String, File> localizedResources = new HashMap<>();\n Map<String, LocalizeResource> resourcesToLocalize = cl... |
"private void computeKernelMatrix(List<? extends DirectedGraph<Vertex<String>, Edge<String>>> trainGraphs, List<? extends DirectedGraph<Vertex<String>, Edge<String>>> testGraphs, SparseVector[] featureVectors, double[][] kernel, double[] ss, int iteration) {\n for (int i = 0; i < testGraphs.size(); i++) {\n f... |
"void enqueueEvent(int eventType, String name, Data eventKey, Data eventValue, Address from) {\n try {\n Member member = getMember(from);\n if (member == null) {\n member = new MemberImpl(from, thisAddress.equals(from));\n }\n Data newValue = value;\n Data oldValue = nul... |
"public double getNormalizedRelevance(Entity entityA, Entity entityB) {\n Set<AnnotatedDocument> documentsA = index.getDocuments(entityA);\n Set<AnnotatedDocument> documentsB = index.getDocuments(entityB);\n Set<AnnotatedDocument> documentsAB = Sets.intersection(documentsA, documentsB);\n int nrOfDocuments ... |
"private void scan() {\n logger.debug(\"String_Node_Str\", mBridgeHandler.getThing().getUID());\n if (mBridgeHandler == null || !mBridgeHandler.getThing().getStatus().equals(ThingStatus.ONLINE)) {\n logger.debug(\"String_Node_Str\");\n return;\n }\n LocationList locationList = mBridgeHandler.g... |
"void handleCopy(PointerKeyAndState curPkAndState, PointerKeyAndState succPkAndState) {\n if (!addToInitWorklist(succPkAndState)) {\n if (addAllToP2Set(pkToP2Set, curPkAndState, find(pkToP2Set, succPkAndState), label)) {\n addToPToWorklist(curPkAndState);\n }\n }\n}\n"
|
"public static JavaArchive createDeployment() {\n return ShrinkWrap.create(JavaArchive.class, \"String_Node_Str\").addClasses(InstanceStore.class, InstanceStoreBean.class, CodeFactory.class, IssuerFactory.class, PatientFactory.class).addAsResource(\"String_Node_Str\").addAsResource(\"String_Node_Str\").addAsResource... |
"private static void tUpdateWhiteWithFailingFirstUploader() {\n debug(\"String_Node_Str\");\n final int RATE = 500;\n final int FUDGE_FACTOR = RATE * 1024;\n uploader1.setRate(RATE);\n uploader1.setBusy(true);\n uploader2.setRate(RATE / 4);\n RemoteFileDesc rfd1 = newRFD(6346, 100);\n RemoteFile... |
"public void run() {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), CallActivity.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_... |
"public Object[] getParameters() {\n return predicate == null ? null : new Object[] { predicate };\n}\n"
|
"public Predicate<Map.Entry<K, V>> filter(ColumnView.Query query) {\n return entry -> {\n if (query.marshableFilters.isEmpty())\n return true;\n try {\n for (MarshableFilter f : query.marshableFilters) {\n Object item;\n if (\"String_Node_Str\".equals... |
"private static User decodeUser(String encodedLine, Map newGroupSizeMap) throws IllegalArgumentException {\n StringTokenizer st = new StringTokenizer(encodedLine, FIELD_SEP);\n String algo = algoSHA256;\n String user = null;\n String pwdInfo = null;\n String groupList = null;\n try {\n user = s... |
"private int getParameterType(int i) throws OdaException {\n if (parameterDefn.getParameterType(i) != Types.CHAR)\n return parameterDefn.getParameterType(i);\n List paramMetaDataList = getCallableParamMetaData();\n if (paramMetaDataList != null && !paramMetaDataList.isEmpty())\n return ((Paramete... |
"private void dereferenceStruct(Context context, Var dst, Var src) throws UserException, UndefinedTypeException {\n List<Var> usedVars = Arrays.asList(src, dst);\n List<Var> waitVars = Arrays.asList(src);\n backend.startWaitStatement(context.getFunctionContext().constructName(\"String_Node_Str\"), waitVars, us... |
"private ConnectorListener[] toConnectorListenerArray(List<ConnectorListener> listeners) {\n return listeners.toArray(new ConnectorListener[0]);\n}\n"
|
"public boolean canModify(Object bean) {\n return super.canModify(bean);\n}\n"
|
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n XPathFragment xPathFragment = new XPathFragment(localName);\n xPathFragment.setNamespaceURI(namespaceURI);\n JSONWriterRecord.this.endElement(xPathFragment, namespaceResolver);\n}\n"
|
"private void writeHierarchies(final ModelConfiguration config, final String prefix, final ZipOutputStream zip) throws IOException {\n for (Entry<String, Hierarchy> entry : config.getHierarchies().entrySet()) {\n zip.putNextEntry(new ZipEntry(prefix + \"String_Node_Str\" + toFileName(entry.getKey()) + \"Strin... |
"private void doThrowAnimation(Entity entity, Entity item, Vector2 position, boolean destroy) {\n PositionComponent throwerPosition = ComponentMappers.position.get(entity);\n WorldManager.entityHelpers.updatePosition(item, throwerPosition.pos);\n VisualComponent itemVisual = ComponentMappers.visual.get(item);\... |
"public void onClick(View v) {\n Intent intent = new Intent(mContext, CreateOrEditRecordActivity.class);\n intent.putExtra(IntentConstant.OLD_RECORD, recordLocalDAO.getRecordById(mContext, recordDetailDO.getRecordID()));\n resetOptStatus();\n ((MainActivity) mContext).startActivityForResult(intent, MainActi... |
"public Module getInMemoryModules() {\n String warehouseDir = System.getProperty(\"String_Node_Str\") + System.getProperty(\"String_Node_Str\") + \"String_Node_Str\" + System.getProperty(\"String_Node_Str\") + \"String_Node_Str\" + Long.toString(System.currentTimeMillis());\n LOG.debug(\"String_Node_Str\", Consta... |
"public SuggestionsInfo onGetSuggestions(final TextInfo textInfo, final int suggestionsLimit) {\n try {\n final String text = textInfo.getText();\n if (shouldFilterOut(text)) {\n DictAndProximity dictInfo = null;\n try {\n dictInfo = mDictionaryPool.takeOrGetNull();... |
"public void init() {\n if (submissionConfigReader == null) {\n try {\n submissionConfigReader = new SubmissionConfigReader();\n } catch (SubmissionConfigReaderException e) {\n log.error(e.getMessage(), e);\n }\n }\n}\n"
|
"public boolean execute(Editor editor, DataContext context, ExCommand cmd) {\n int count = cmd.getLine(editor, context);\n if (count >= 0) {\n MotionGroup.moveCaret(editor, context, CommandGroups.getInstance().getMotion().moveCaretToLineStartSkipLeading(editor, count));\n return true;\n }\n re... |
"private void onNewRingingConnection(AsyncResult r) {\n Connection c = (Connection) r.result;\n if (DBG)\n log(\"String_Node_Str\" + c);\n boolean provisioned = Settings.Secure.getInt(mPhone.getContext().getContentResolver(), Settings.Secure.DEVICE_PROVISIONED, 0) != 0;\n if (!provisioned) {\n ... |
"protected OQueryContextNative query(OQueryContextNative record, QItem e) {\n return null;\n}\n"
|
"private void setBlock(final int x, final int y, final int z, final short blkid) {\n if (result[y >> 4] == null) {\n result[y >> 4] = new short[4096];\n }\n result[y >> 4][((y & 0xF) << 8) | (z << 4) | x] = id;\n}\n"
|
"public ValidationResult validateRootResources(List<RootResource> rootResources) {\n ValidationResult result = new ValidationResult();\n for (RootResource rootResource : rootResources) {\n for (FieldDeclaration field : rootResource.getFields()) {\n if (isSuppliableByJAXRS(field) && ((field.getAn... |
"void loadDocument(InputStream in, String encoding) throws IOException {\n this.encoding = encoding;\n if (encoding.toLowerCase().startsWith(\"String_Node_Str\"))\n in = new BOMInputStream(in);\n Reader isr = new BufferedReader(new InputStreamReader(in, encoding));\n textArea.read(isr, null);\n if... |
"public static String getHTMLDescription(Throwable ex) {\n StringBuffer retcode = new StringBuffer();\n String msg = ex.getMessage();\n if (msg == null || msg.equals(\"String_Node_Str\")) {\n msg = Msg.NO_DESC.toString();\n }\n String orig = XMLUtil.escape(msg);\n msg = orig.replaceAll(\"String... |
"public void onNext(final StartTime startTime) {\n final long pid = OSUtils.getPID();\n final File outfile = new File(PID_FILE_NAME);\n LOG.log(Level.FINEST, \"String_Node_Str\" + pid + \"String_Node_Str\" + outfile.getAbsolutePath());\n try (final PrintWriter p = new PrintWriter(PID_FILE_NAME, \"String_Nod... |
"public void updateView(boolean forceUpdatePoster, GUIMain gui) {\n boolean posterFileUpdateOccured = false;\n boolean fanartFileUpdateOccured = false;\n if (!forceUpdatePoster) {\n File potentialOtherPosterJpg = new File(Movie.getFileNameOfPoster(gui.getCurrentlySelectedMovieFileList().get(0), true));\... |
"public boolean shouldGenerateTypeInfo(JavaClass javaClass) {\n if (javaClass == null || javaClass.isPrimitive() || javaClass.isAnnotation() || ORG_W3C_DOM.equals(javaClass.getPackageName())) {\n return false;\n }\n if (userDefinedSchemaTypes.get(javaClass.getQualifiedName()) != null) {\n return ... |
"protected void drawElements(float partialTick, boolean foreground) {\n if (foreground) {\n for (int i = 0; i < elements.size(); i++) {\n ElementBase element = elements.get(i);\n if (element.isVisible()) {\n element.drawForeground(mouseX, mouseY);\n }\n }... |
"public void contextInitialized(ServletContextEvent sce) {\n WebApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(sce.getServletContext());\n DataSource dataSource = (DataSource) springContext.getBean(\"String_Node_Str\");\n DefaultDataTypeFactory dbUnitDataTypeFactory = (D... |
"private List<CostModificationEffect> getApplicableCostModificationEffects(Game game) {\n List<CostModificationEffect> costEffects = new ArrayList<CostModificationEffect>();\n for (CostModificationEffect effect : costModificationEffects) {\n Ability ability = costModificationEffects.getAbility(effect.getId... |
"private void compileFunction(Context context, SwiftAST tree) throws UserException {\n String function = tree.child(0).getText();\n LogHelper.debug(context, \"String_Node_Str\" + function);\n assert (context.isFunction(function));\n assert (context.hasFunctionProp(function, FnProp.COMPOSITE));\n SwiftAST... |
"public Set<SuperGraphEdge> addMissAlwaysCost(Segment segment, IPETSolver<SuperGraphEdge> ipetSolver) {\n Iterable<SuperGraphEdge> accessEdges = collectCacheAccesses(segment);\n for (SuperGraphEdge accessEdge : accessEdges) {\n if (!segment.includesEdge(accessEdge)) {\n throw new AssertionError(... |
"public Method getMethod(String name, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException {\n checkMemberAccess(Member.PUBLIC, Reflection.getCallerClass(), true);\n Method method = getMethod0(name, parameterTypes);\n if (method == null) {\n throw new NoSuchMethodException(getName... |
"private void setCategories() {\n if (mSiteSettings.isSameCategoryList(mCategoryPref.getEntryValues())) {\n mCategoryPref.setValue(String.valueOf(mSiteSettings.getDefaultCategory()));\n mCategoryPref.setSummary(mSiteSettings.getDefaultCategoryForDisplay());\n return;\n }\n SparseArrayCompa... |
"public TextFrame getNextInThread() throws Exception {\n if (nextInThread == null && hasProperty(InDesignDocument.PROP_NTXF)) {\n String objectId = getObjectReferenceProperty(InDesignDocument.PROP_NTXF);\n if (objectId != null) {\n this.nextFrameInThread = (TextFrame) this.getDocument().getO... |
"public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {\n ClientReusableViewHolder clientReusableViewHolder;\n if (convertView == null) {\n convertView = layoutInflater.inflate(R.layout.row_collection_list_group_client, null);\n clie... |
"int Compare(dLocation loc1, dLocation loc2) {\n if (loc1 == null || loc2 == null || loc1.equals(loc2))\n return 0;\n else {\n double dist = distanceSquared(loc1) - distanceSquared(loc2);\n return dist == 0 ? 0 : (dist > 0 ? 1 : -1);\n }\n}\n"
|
"public void whenDefaultURI_invalidInstanceNameAsProperty_thenFails() throws URISyntaxException {\n cachingProvider.getCacheManager(null, null, propertiesByInstanceName(\"String_Node_Str\"));\n}\n"
|
"protected void saveLibraryAs(String filename) throws IOException {\n if (libraryHandle == null)\n return;\n String outputPath = getClassFolder() + OUTPUT_FOLDER;\n File outputFolder = new File(outputPath);\n if (!outputFolder.exists() && !outputFolder.mkdir()) {\n throw new IOException(\"Stri... |
"public void start(Brain brain) {\n Bomb bomb = target.getBomb();\n if (bomb == null) {\n this.getActionResult().setFailure();\n return;\n }\n World world = brain.getWorld();\n PlayerEntity bot = brain.getEntityOwner();\n Rectangle coverBounds = new Rectangle(300, 300);\n coverBounds.... |
"public ClassDefinitionBuilder addShortField(String fieldName) {\n check();\n fieldDefinitions.add(new FieldDefinitionImpl(index++, fieldName, FieldType.SHORT));\n return this;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.