content stringlengths 40 137k |
|---|
"public void testBridgeMethods_GRE336() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \... |
"public void initialize(Q request) throws Exception {\n Logs.extreme().debug(cb.getClass().getCanonicalName() + \"String_Node_Str\" + request);\n try {\n cb.initialize(request);\n } catch (Exception ex) {\n Logs.extreme().error(ex, ex);\n AsyncRequest.this.result.setException(ex);\n ... |
"public void setByte(int pos, byte b) {\n buffer[(start + pos++) & mask] = b;\n}\n"
|
"protected List addExtraNamespacesToNamespaceResolver(XMLDescriptor desc, XMLRecord marshalRecord, AbstractSession session, boolean allowOverride) {\n if (((XMLLogin) session.getDatasourceLogin()).hasEqualNamespaceResolvers()) {\n return null;\n }\n NamespaceResolver descriptorNamespaceResolver = desc.g... |
"private boolean isClassFromExternalLibrary(URL location) {\n if (\"String_Node_Str\".equals(location.getProtocol())) {\n return true;\n }\n String path = location.getPath();\n return path.endsWith(\"String_Node_Str\") || path.endsWith(\"String_Node_Str\") || testCode != null && (path.endsWith(\"Stri... |
"protected 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... |
"private AutoDetectDataType newType(int typeId) {\n switch(typeId) {\n case TYPE_NULL:\n return new NullType(this);\n case TYPE_BOOLEAN:\n return new BooleanType(this);\n case TYPE_BYTE:\n return new ByteType(this);\n case TYPE_SHORT:\n return n... |
"public void testMerge() {\n Foo source = foo1;\n Thread.sleep(10);\n Bar target = new Bar();\n $.merge(source).to(target);\n eq(source.id, target.id);\n eq(source.name, target.name);\n eq(source.ia, target.ia);\n ne(source.si, target.si);\n isNull(target.create_date);\n yes(target.si.cont... |
"public String getValue(String key, String defaultValue) {\n String[] values = getValues(key, new String[] { defaultValue });\n String value = null;\n if (values != null && values.length > 0) {\n value = values[0];\n }\n if (value == null) {\n value = defaultValue;\n }\n return value;... |
"public void testClassSuperConstructorParameterMismatch() {\n testTypes(lines(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"), lines(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));... |
"public static QueryExperimentResult runForQuery(String query, ConnectionData connectionDataProd, ConnectionData connectionDataTest, String packageName) {\n Path experimentPath = Paths.get(System.getProperty(\"String_Node_Str\"), \"String_Node_Str\", packageName);\n try {\n Files.createDirectories(experime... |
"public void getJavaRuntimeInfo() {\n String arch = JVMUtil.getJavaRuntimeInfo().getSunArchDataModel();\n assertTrue(\"String_Node_Str\".equals(arch) || \"String_Node_Str\".equals(arch));\n String boot = JVMUtil.getJavaRuntimeInfo().getSunBootClassPath();\n try {\n File[] classpathes = JVMUtil.getCla... |
"private Html renderHome(final UserContext userContext, final List<ProductProjection> suggestions) {\n final HomePageContent pageContent = createPageContent(userContext, suggestions);\n return templateService().renderToHtml(\"String_Node_Str\", pageData(userContext, pageContent, ctx(), session()), userContext.loc... |
"public void run() {\n if (progress.isIndeterminate()) {\n progress.setMinimum(0);\n progress.setMaximum((int) length);\n progress.setStringPainted(true);\n progress.setIndeterminate(false);\n }\n progress.setValue((int) count);\n}\n"
|
"public void writeKeyValueEntry(String key, boolean value) {\n writeKeyValueHead(key);\n write(value);\n}\n"
|
"public final boolean wasMouseDoubleClicked() {\n boolean bTmp = mouseDoubleClick;\n mouseDoubleClick = false;\n return bTmp;\n}\n"
|
"public void deregisterAllListener(String name) {\n final EventService eventService = getNodeEngine().getEventService();\n final Collection<EventRegistration> registrations = eventService.getRegistrations(SERVICE_NAME, name);\n if (registrations != null) {\n for (EventRegistration registration : registr... |
"public LongMonitoringCounter incrementByValue(long value) {\n return this;\n}\n"
|
"public void startup(PlatformConfig config) throws BirtException {\n if (frameworkClassLoader != null) {\n logger.log(Level.WARNING, \"String_Node_Str\");\n return;\n }\n platformConfig = config;\n IPlatformContext context = config.getPlatformContext();\n if (context == null) {\n thr... |
"public boolean isNullabilityDifferent(Column otherColumn) {\n if (this.isNullable() == null && otherColumn.isNullable() == null) {\n return false;\n }\n if (this.isNullable() == null && otherColumn.isNullable() != null) {\n return true;\n }\n if (this.isNullable() != null & otherColumn.isN... |
"public final float hue(int what) {\n if (what != cacheHsbKey) {\n Color.RGBToHSV((what >> 16) & 0xff, (what >> 8) & 0xff, what & 0xff, cacheHsbValue);\n cacheHsbKey = what;\n }\n return (cacheHsbValue[0] / 360f) * colorModeX;\n}\n"
|
"public void removeLevel(int index) throws SemanticException {\n LevelViewHandle levelView = getLevel(index);\n if (levelView != null) {\n CommandStack stack = getCommandStack();\n stack.startTrans(null);\n try {\n CrosstabReportItemHandle crosstab = getCrosstab();\n if ... |
"void createSchema() throws InvalidRequestException, SchemaDisagreementException, TException {\n KsDef ksDef = null;\n CfDef userCfDef = new CfDef();\n userCfDef.name = \"String_Node_Str\";\n userCfDef.keyspace = keyspace;\n userCfDef.column_type = \"String_Node_Str\";\n userCfDef.setComparator_type(\... |
"public void setupOnOffButton() throws Exception {\n if (!Main.hueControl.immersiveProcessIsActive) {\n boolean lightOn = false;\n boolean lightOff = false;\n for (HLight light : HBridge.lights) {\n if (light.isOn() && Settings.Light.getActive(light.uniqueid)) {\n light... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(Long.class, new LongTypeAdapter());\n Gson gson = gsonBuilder.create();\n RestAdapter restAdapter = new RestAdapter.Builder().setConver... |
"public boolean hasActiveInternetConnection() {\n if (isNetworkAvailable()) {\n try {\n HttpURLConnection urlc = (HttpURLConnection) (new URL(\"String_Node_Str\").openConnection());\n urlc.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n urlc.setRequestProperty(... |
"public static Map<String, Object> parseResponse(RestResponse response, HandlerContext handlerCtx, String endpoint, Object attrs, boolean quiet, boolean throwException) {\n String message = \"String_Node_Str\";\n ExitCode exitCode = ExitCode.FAILURE;\n Object maskedAttr = attrs;\n if ((attrs != null) && (at... |
"public void run() {\n lock.lock();\n try {\n while (true) {\n try {\n while (!tasks.isEmpty()) {\n tasks.poll().run();\n }\n }\n } catch (InterruptedException ex) {\n break;\n } catch (Throwable th) {\n ... |
"private synchronized final void sendIntents() {\n int allHeadsets = SUPPORTED_HEADSETS;\n for (int curHeadset = 1; allHeadsets != 0; curHeadset <<= 1) {\n if ((curHeadset & allHeadsets) != 0) {\n sendIntent(curHeadset, headsetState, prevHeadsetState, headsetName);\n allHeadsets &= ~c... |
"private int runQueryIntentReceivers() {\n Intent intent;\n try {\n intent = parseIntentAndUser();\n } catch (URISyntaxException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n try {\n List<ResolveInfo> result = mInterface.queryIntentReceivers(intent, null, 0, mTargetUser... |
"public void testCanopyReducerEuclidean() throws Exception {\n CanopyReducer reducer = new CanopyReducer();\n Configuration conf = getConfiguration();\n conf.set(CanopyConfigKeys.DISTANCE_MEASURE_KEY, \"String_Node_Str\");\n conf.set(CanopyConfigKeys.T1_KEY, String.valueOf(3.1));\n conf.set(CanopyConfigK... |
"private void addResultToIndicatorToRowMap(Indicator indicator, EMap<Indicator, AnalyzedDataSet> indicToRowMap, int maxNumberRows, int columnCount) {\n Map<Object, List<Object[]>> dupMap = ((DuplicateCountIndicator) indicator).getDuplicateMap();\n Iterator<Object> iterator = dupMap.keySet().iterator();\n while... |
"private boolean sendGossip2Seed(Buffer buffer, List<SeedMember> members, int index) {\n if (buffer != null && index >= 0) {\n SeedMember target = members.get(index);\n settings.getMsgService().sendMsg(target.getIpAddress(), target.getPort(), buffer);\n return true;\n }\n return false;\n}\... |
"public void mouseReleased(MouseEvent e, TransferData transferData) {\n CardPanel card = ((CardPanel) transferData.component);\n if (card.getZone() != null && card.getZone().equalsIgnoreCase(\"String_Node_Str\")) {\n int maxXOffset = 0;\n if (isDragging) {\n Point mouse = new Point(e.getX... |
"public void process() {\n final IlluminaDataProvider dataProvider = factory.makeDataProvider(Arrays.asList(this.tile.getNumber()));\n final SAMRecord[] recordContainer = new SAMRecord[converter.getNumRecordsPerCluster()];\n log.debug(String.format(\"String_Node_Str\", tile.getNumber()));\n while (dataProvi... |
"public static void replaceBlock(Block toReplace, Block replacement, Class<? extends ItemBlock> itemBlockClass) {\n Stopwatch.time(\"String_Node_Str\");\n Class<?>[] classTest = new Class<?>[4];\n Exception exception = null;\n try {\n for (Field blockField : Blocks.class.getDeclaredFields()) {\n ... |
"public WebExceptionHandler exceptionHandler() {\n return (ServerWebExchange exchange, Throwable ex) -> {\n if (ex instanceof PostNotFoundException) {\n exchange.getResponse().setStatusCode(HttpStatus.NOT_FOUND);\n return exchange.getResponse().setComplete();\n }\n return M... |
"public static PGPPublicKey removeCertification(PGPPublicKey key, PGPSignature certification) {\n PGPPublicKey returnKey = new PGPPublicKey(key);\n boolean found;\n if (returnKey.subSigs != null) {\n found = returnKey.subSigs.remove(certification);\n } else {\n found = returnKey.keySigs.remove... |
"public void init() {\n super.init();\n int rows;\n int columns;\n String rowsString = getParameter(\"String_Node_Str\");\n if (rowsString != null) {\n rows = Integer.parseInt(rowsString);\n } else {\n rows = 10;\n }\n String columnsString = getParameter(\"String_Node_Str\");\n ... |
"private void addMaxAgeToRepo(SQLiteDatabase db, int oldVersion) {\n if (oldVersion < 30 && !columnExists(db, TABLE_REPO, \"String_Node_Str\")) {\n db.execSQL(\"String_Node_Str\" + TABLE_REPO + \"String_Node_Str\");\n }\n}\n"
|
"protected <K, T> void addFolderMembers(Project project, ERepositoryObjectType type, Container<K, T> toReturn, Object objectFolder, boolean onlyLastVersion, boolean... options) throws PersistenceException {\n FolderHelper folderHelper = getFolderHelper(project.getEmfProject());\n FolderItem currentFolderItem = nu... |
"public Double getDoubleValue(String key, double defaultValue) {\n Object value = get(key);\n if (value != null) {\n if (value instanceof Integer) {\n return ((Integer) value).doubleValue();\n } else if (value instanceof Double) {\n return (Double) value;\n } else if (va... |
"public float getWordWidth(String word) {\n if (bf == null || word == null)\n return 0;\n return bf.getWidthPoint(word, fontSize);\n}\n"
|
"public String randomValueForDbUnit() throws XDocletException {\n Properties pros = new Properties();\n pros.put(\"String_Node_Str\", \"String_Node_Str\");\n String mtype = super.methodType(pros);\n StringBuffer result = new StringBuffer();\n if (\"String_Node_Str\".equals(mtype) || \"String_Node_Str\".e... |
"private ThemeBrowserAdapter getAdapter() {\n if (mAdapter == null) {\n mAdapter = new ThemeBrowserAdapter(getActivity(), mCallback);\n }\n return mAdapter;\n}\n"
|
"public boolean parse(final Attributes attr) {\n final Point2DArray points = attr.getPoints();\n if (points == null) {\n return false;\n }\n final Point2DArray list = points.noAdjacentPoints();\n final int size = list.size();\n if (size > 1) {\n final PathPartList path = getPathPartList(... |
"public static void main(String[] args) {\n GlobalConf conf = GlobalConf.getInstance();\n RaftMessage.Server localServer = conf.getLocalServer();\n List<RaftMessage.Server> servers = conf.getServers();\n String dataDir = System.getProperty(\"String_Node_Str\") + File.separator + conf.getDataDir();\n ZKCo... |
"public static LinkPredictionDataSet createLinkPredictonDataSet(RDFDataSet rdfDataSet, String classA, String classB, String property, List<String> blackList, int depth, boolean includeInverse, boolean includeInference) {\n List<DirectedMultigraphWithRoot<Vertex<String>, Edge<String>>> graphsA = new ArrayList<Directe... |
"private static String constructSinglePathSql(SqlgGraph sqlgGraph, LinkedList<SchemaTableTree> distinctQueryStack, SchemaTableTree lastOfPrevious, SchemaTableTree firstOfNextStack) {\n String singlePathSql = \"String_Node_Str\";\n SchemaTableTree firstSchemaTableTree = distinctQueryStack.getFirst();\n SchemaTa... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.frag_simple_pie, container, false);\n mChart = (PieChart) v.findViewById(R.id.pieChart1);\n mChart.setDescription(\"String_Node_Str\");\n Typeface tf = Typeface.createFro... |
"public Reference getReference(ObjectReferenceMapping mapping, Object sourceObject, Field xmlField) {\n Field targetField = (Field) mapping.getSourceToTargetKeyFieldAssociations().get(xmlField);\n String tgtXpath = null;\n if (!(mapping.getReferenceClass() == null || mapping.getReferenceClass() == Object.class... |
"private ProcessDescription getProcessDescription(boolean defaultContext) {\n JSONFileConnection connection2 = JSONConnectionContextUtils.getJSONOriginalValueConnection(getConnection(), this.connectionItem, isContextMode(), defaultContext);\n ProcessDescription processDescription = null;\n if (wizard != null) ... |
"private void _testPreInitSlave() {\n String db = null;\n String connectionURL = null;\n Connection conn = null;\n db = masterDatabasePath + FS + ReplicationRun.masterDbSubPath + FS + replicatedDb;\n connectionURL = \"String_Node_Str\" + \"String_Node_Str\" + masterServerHost + \"String_Node_Str\" + mast... |
"public void onCreate() {\n try {\n networkThread = NetworkVariables.getInstance();\n binder = new NetworkComBinder(networkThread);\n } catch (IllegalAccessException e) {\n Log.e(NetworkVariables.TAG, \"String_Node_Str\" + e.getMessage(), e);\n } catch (InstantiationException e) {\n ... |
"protected void initLists() {\n if (contentVAType != EVAType.CONTENT_EMBEDDED_HM) {\n if (bRenderOnlyContext)\n contentVAType = EVAType.CONTENT_CONTEXT;\n else\n contentVAType = EVAType.CONTENT;\n }\n contentVA = useCase.getVA(contentVAType);\n storageVA = useCase.getVA(s... |
"protected static DocumentRevisionKey getDocumentRevisionKey(Map<String, Object> source) {\n return new DocumentRevisionKey(extractValue(source, WORKSPACE_ID_KEY), extractValue(source, DOCUMENT_ID_KEY), extractValue(source, VERSION_KEY));\n}\n"
|
"public Context getInitialContext(Hashtable env) throws NamingException {\n final Hashtable myEnv = env == null ? new Hashtable() : env;\n boolean membershipChangeForced = false;\n if (logger.isLoggable(Level.FINE)) {\n logger.log(Level.FINE, \"String_Node_Str\", env);\n }\n boolean useLB = proper... |
"public List<Map<String, String>> getQueryResult(String resultId) throws AsyncApiException, IOException {\n List<Map<String, String>> resultInfoList = new ArrayList<Map<String, String>>();\n Map<String, String> resultInfo;\n baseFileReader = new com.talend.csv.CSVReader(new java.io.BufferedReader(new java.io.I... |
"public void testSPARQLQuery() throws IOException {\n final String queryString = \"String_Node_Str\";\n final ResultSet result = this.parser.query(queryString);\n Assert.assertTrue(\"String_Node_Str\", result.hasNext());\n while (result.hasNext()) {\n final QuerySolution solution = result.nextSolutio... |
"public static ProjectWebHooksBean build(WebHookProjectSettings projSettings, SBuildType sBuildType, SProject project, Collection<WebHookPayload> registeredPayloads, List<WebHookPayloadTemplate> templateList) {\n ProjectWebHooksBean bean = new ProjectWebHooksBean(projSettings, project);\n List<SBuildType> project... |
"public void format(final LogEvent event, final StringBuilder toAppendTo) {\n ThrowableProxy proxy = event.getThrownProxy();\n final Throwable throwable = event.getThrown();\n if ((throwable != null || proxy != null) && options.anyLines()) {\n if (proxy == null) {\n super.format(event, toAppe... |
"public void build(final Progress p) throws IOException, JobFailedException, JobCancelledException {\n if (p != null) {\n p.starting();\n }\n final MrsImagePyramid sourcepyramid = RasterMapOp.flushRasterMapOpOutput(source, 0);\n MrsImageDataProvider provider = DataProviderFactory.getMrsImageDataProvi... |
"private void openContextMenu(Point p) {\n if (currentHref != null && currentHref != \"String_Node_Str\") {\n rightButtonMenu.insert(openLinkItem, 0);\n rightButtonMenu.insert(copyLinkItem, 1);\n rightButtonMenu.insert(copyLinkSeparator, 2);\n } else {\n rightButtonMenu.remove(openLink... |
"long searchKey(Bytes keyBytes, int hash2, MultiStoreBytes entry, IntIntMultiMap hashLookup) {\n long keyLen = keyBytes.remaining();\n hashLookup.startSearch(hash2);\n for (int pos; (pos = hashLookup.nextPos()) >= 0; ) {\n long offset = offsetFromPos(pos);\n reuse(entry, offset);\n if (!ke... |
"public SortedSet<Text> getSplits() {\n String val = getString(SPLITS);\n if ((val == null) || (val.trim().equals(\"String_Node_Str\"))) {\n return null;\n }\n SortedSet<Text> splits = new TreeSet<Text>();\n for (String s : val.trim().split(\"String_Node_Str\")) {\n splits.add(new Text(s));... |
"public static void removePlate(ItemStack exosuitPiece, String identifier) {\n if (exosuitPiece.hasTagCompound()) {\n NBTTagCompound tagCompound = exosuitPiece.stackTagCompound;\n if (getPlate(tagCompound.getString(\"String_Node_Str\")) == identifier) {\n tagCompound.removeTag(\"String_Node_... |
"protected ProjectRepairFacade getProjectConfiguration(String location, String projectIdentifier, String method, List<String> failingTestCases, String dependencies, boolean srcWithMain) throws Exception {\n if (projectIdentifier == null || projectIdentifier.equals(\"String_Node_Str\")) {\n File locFile = new ... |
"public PluginStep getNextStep(Object parameter) {\n DownloadLink downloadLink = (DownloadLink) parameter;\n PluginStep todo = null;\n if (currentStep == null) {\n try {\n requestInfo = getRequest(downloadLink.getUrlDownload());\n String newURL = getFirstMatch(requestInfo.getHtmlCo... |
"public void testRootTargetScriptFileName() {\n if (!getPlatform().isMySQL()) {\n Map properties = new HashMap();\n properties.putAll(JUnitTestCaseHelper.getDatabaseProperties(getPersistenceUnitName()));\n properties.put(PersistenceUnitProperties.SESSION_NAME, \"String_Node_Str\");\n prop... |
"private void doDownload() throws IOException {\n SettingsManager settings = SettingsManager.instance();\n String download_dir = settings.getSaveDirectory();\n String incomplete_dir = settings.getIncompleteDirectory();\n File incomplete_file = new File(incomplete_dir, _filename);\n String path_to_incompl... |
"public List getAllDataSets() {\n IModuleNameSpace namescope = module.getModuleNameSpace(Module.DATA_SET_NAME_SPACE);\n List elementList = namescope.getElements(IModuleNameSpace.ARBITARY_LEVEL);\n return generateHandleList(elementList);\n}\n"
|
"public void deletePortProfile(String name) throws CloudRuntimeException {\n String command = VsmCommand.getDeletePortProfile(name);\n if (command != null) {\n command = command.concat(SSH_NETCONF_TERMINATOR);\n send(command);\n parseOkReply(receive());\n } else {\n throw new CloudR... |
"public void enterFsmConstruction(ModelNode parent, ModelNode child, FsmConstructor conv) {\n super.enterFsmConstruction(parent, child, conv);\n if (!conv.isCycle()) {\n SubprotocolSig subsig = conv.peekStack();\n Set<String> labs = new HashSet<>(conv.builder.getEntry().getLabels());\n labs.a... |
"private BigramFollowers loadBigramFollowers(int firstWordID) {\n BigramFollowers followers = null;\n if ((followers = isBigramLoaded(firstWordID)) == null) {\n System.out.println(\"String_Node_Str\");\n int firstBigramEntry = unigrams[firstWordID].getFirstBigramEntry();\n int numberFollowers... |
"public static OpmValidatorImpl init() {\n if (instance == null) {\n OpmValidatorImpl validator = new OpmValidatorImpl();\n validator.initContainmentRules();\n validator.initLinkRules();\n instance = validator;\n }\n return instance;\n}\n"
|
"protected static void createRecentlyUsedEntryList(Hashtable<String, PaletteDrawer> ht, List<RecentlyUsedComponent> recentlyUsedList, Map<String, IComponent> recentlyUsedMap) {\n String name;\n String longName;\n TalendCombinedTemplateCreationEntry component;\n final int recentlyUsedSize = PaletteSettingsPr... |
"public static void main(String[] args) throws IOException {\n MDMTransaction mt = MDMTransactionClient.newTransaction(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n mt.commit();\n MDMTransaction mt1 = MDMTransactionClient.newTransaction(\"String_Node_Str\", \"String_Node_Str\", \"String_Nod... |
"public boolean matches(Invokable target) throws SalsaNotFoundException {\n if (!name.equals(target.getName()))\n return -1;\n if (parameterTypes.length != target.parameterTypes.length)\n return false;\n for (int i = 0; i < parameterTypes.length; i++) {\n boolean canMatch = parameterTypes[... |
"public void an_oval_circle() throws IOException {\n drawOval(300, 200, Color.BLUE);\n}\n"
|
"public void encodeHTML(FacesContext context, UIComponent navlink) throws IOException {\n ResponseWriter rw = context.getResponseWriter();\n String value = (String) ((AbstractNavLink) navlink).getValue();\n String htmlTag = \"String_Node_Str\";\n UIComponent parent = navlink.getParent();\n if (parent != ... |
"public StackDescription describeStack(User user, Stack stack, Credential credential) {\n String filePath = AzureCertificateService.getUserJksFileName(credential, user.emailAsFolder());\n AzureClient azureClient = azureStackUtil.createAzureClient(credential, filePath);\n AzureStackDescription azureStackDescrip... |
"public String getCheckpointDir() {\n return this.metadata.get(checkpointDirField);\n}\n"
|
"public int getMaxContentHeight() {\n int maxContentHeight = mNotificationHeaderHeight + mNotificatonTopPadding;\n int visibleChildren = 0;\n int childCount = mChildren.size();\n for (int i = 0; i < childCount; i++) {\n if (visibleChildren >= NUMBER_OF_CHILDREN_WHEN_CHILDREN_EXPANDED) {\n ... |
"private void validateShowTo(TabListConfig config) {\n String showTo = config.showTo;\n if (showTo.equalsIgnoreCase(\"String_Node_Str\")) {\n return;\n }\n if (showTo.equalsIgnoreCase(\"String_Node_Str\")) {\n return;\n }\n if (showTo.equalsIgnoreCase(\"String_Node_Str\")) {\n ret... |
"public void modifyText(ModifyEvent e) {\n if (Widgets.isAccessible(sText)) {\n text = sText.getText();\n validate();\n notifyXModifiedListeners();\n }\n}\n"
|
"private void handleEvent(XMLEvent event) throws SAXException {\n if (event.getEventType() == XMLStreamConstants.CHARACTERS) {\n Characters c = event.asCharacters();\n lastContents += c.getData();\n } else if (event.getEventType() == XMLStreamConstants.START_ELEMENT && isSpreadsheetTag(event.asStart... |
"public void activate(MyWolf wolf, Object args) {\n if (!MyWolfUtil.hasSkill(wolf.Abilities, \"String_Node_Str\")) {\n wolf.Abilities.put(\"String_Node_Str\", true);\n }\n if (wolf.inv.getSize() >= 54) {\n return;\n }\n if (!MyWolfPermissions.has(wolf.getOwner(), \"String_Node_Str\" + (wolf... |
"public void paintTrack(Graphics g2d) {\n Graphics2D g = (Graphics2D) g2d;\n Rectangle trackBounds = trackRect;\n final int arc = JBUI.scale(6);\n int trackSize = JBUI.scale(6);\n final GraphicsConfig config = GraphicsUtil.setupAAPainting(g);\n final Color bg = ColorUtil.fromHex(\"String_Node_Str\");\... |
"private double normalize(double value, double max) {\n return (2 * value - max) / max;\n}\n"
|
"private HashMap buildLowlevelDetailsFor(String mappedClassName) {\n Class mappedClass = (Class) getSession().getDatasourcePlatform().getConversionManager().convertObject(mappedClassName, ClassConstants.CLASS);\n IdentityMap identityMap = getSession().getIdentityMapAccessorInstance().getIdentityMap(mappedClass);\... |
"protected double f(double x) {\n return Math.asin(x);\n}\n"
|
"private void importRequirements(IOseeBranch branch, IArtifactType requirementType, String filename) throws Exception {\n String rootArtifactName = toPlural(requirementType.getName());\n if (DEBUG) {\n OseeLog.logf(AddRequirementData.class, Level.INFO, \"String_Node_Str\", folderName, branch);\n }\n ... |
"private ASTNode processAggregate(ASTNode astNode, ASTNode innerSelectAST, AliasDecider aliasDecider, boolean isSelectAst) {\n ASTNode innerSelectASTWithoutAlias = MetastoreUtil.copyAST(astNode);\n ASTNode innerSelectExprAST = new ASTNode(new CommonToken(HiveParser.TOK_SELEXPR, \"String_Node_Str\"));\n innerSe... |
"public static boolean isDateValue(String inputString) {\n if (!isEmpty(inputString)) {\n try {\n DateFormat df = new SimpleDateFormat(\"String_Node_Str\");\n df.setLenient(false);\n df.parse(inputString);\n return true;\n } catch (Exception e) {\n ... |
"protected void editItem(ISelection sel) {\n IStructuredSelection selection = (IStructuredSelection) sel;\n String existing = (String) selection.getFirstElement();\n String value = getExistingInputObject(existing.replace(\"String_Node_Str\", \"String_Node_Str\"));\n if (value != null) {\n int indexOf... |
"public Resource getResource(URI uri, boolean loadOnDemand) {\n Resource demanded = uriCache.get(uri);\n if (demanded == null) {\n final EPackage ePackage = getPackageRegistry().getEPackage(uri.toString());\n if (ePackage != null) {\n demanded = ePackage.eResource();\n if (LOGG... |
"static AppleDebuggableBinary createAppleDebuggableBinary(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams params, BuildRuleResolver resolver, BuildRule strippedBinaryRule, ProvidesLinkedBinaryDeps unstrippedBinaryRule, AppleDebugFormat debugFormat, FlavorDomain<CxxPlatform> cxxPlatformFlav... |
"private <R extends TableRecord<R>> void testInsertIdentity0(Table<R> table, TableField<R, Integer> id, TableField<R, Integer> val) throws Exception {\n assertEquals(1, create().insertInto(table, val).values(10).execute());\n if (getDialect() != POSTGRES && getDialect() != DB2) {\n assertEquals(new BigInte... |
"public static ReefServiceProtos.JobStatusProto runInProcess(final Class<?> failMsgClass, final Configuration runtimeConfig, final int timeOut) throws InjectionException {\n final Configuration driverConfig = TANG.newConfigurationBuilder(buildDriverConfig(failMsgClass)).bindNamedParameter(RemoteConfiguration.Manager... |
"protected void closeCircleStreamBufferOutput(CircleStreamBuffer buffer, SerializerException cachedException) throws SerializerException {\n if (buffer != null && buffer.getOutputStream() != null) {\n try {\n outputStream.close();\n } catch (IOException e) {\n if (cachedException ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.