content stringlengths 40 137k |
|---|
"public void createNamedQueryWhere() {\n UserInfo userInfo = ebeanQueryChannelService.createNamedQuery(UserInfo.class, \"String_Node_Str\").where().eq(\"String_Node_Str\", \"String_Node_Str\").findOne();\n assertEquals(\"String_Node_Str\", userInfo.getFirstName());\n assertEquals(\"String_Node_Str\", userInfo.... |
"public void addMenuCommandDefinitions(ArrayList<MenuCmdDef> commands, Artifact artifact) {\n commands.add(new MenuCmdDef(CommandGroup.SHOW, GENERALIZED_EDIT, \"String_Node_Str\", FrameworkImage.ARTIFACT_EDITOR));\n commands.add(new MenuCmdDef(CommandGroup.EDIT, GENERALIZED_EDIT, \"String_Node_Str\", FrameworkIma... |
"public static void redirect2SearchActivity() throws InterruptedException {\n redirect2MainActivity();\n WaitUtil.implicitlyWait(5);\n AndroidElement searchLayout = driver.findElement(By.id(\"String_Node_Str\"));\n searchLayout.click();\n WaitUtil.forceWait(2);\n}\n"
|
"private static void debugMessage(String s) {\n if (DEBUG_MESSAGES_ON) {\n Environment env = new Environment();\n try {\n CLIUtil.writeCommandToDebugLog(new ProgramOptions(env), env, new String[] { \"String_Node_Str\", s }, 99999);\n } catch (CommandException ce) {\n }\n }\n... |
"public static <T extends Serializable> IndexResult<T> find(SolrClient index, Class<T> classToRetrieve, Filter filter, Sorter sorter, Sublist sublist, Facets facets, RodaUser user, boolean showInactive) throws GenericException, RequestNotValidException {\n IndexResult<T> ret;\n SolrQuery query = new SolrQuery();\... |
"private Chunk buildChunk() {\n if (currentRun < bidi.getRunCount()) {\n endIndex = bidi.getRunLimit(currentRun);\n int level = getAbsRunLevel();\n String text = null;\n if (level == Bidi.DIRECTION_RIGHT_TO_LEFT) {\n for (int i = beginIndex; i < endIndex; i++) {\n ... |
"void onEvent() throws StreamCorruptedException {\n long transactionId = inWire.read(Fields.transactionId).int64();\n timestamp = inWire.read(timeStamp).int64();\n channelId = inWire.read(Fields.channelId).int16();\n final StringBuilder methodName = Wires.acquireStringBuilder();\n inWire.read(Fields.meth... |
"public synchronized void destroy() {\n if (!this.persistent || !serializeMap(this.cacheDirectory, this.map)) {\n for (File file : this.map.values()) {\n if (!file.delete()) {\n file.deleteOnExit();\n }\n }\n this.map.clear();\n if (this.cacheDirectory... |
"public void startForeign(IForeignContent foreign) {\n IStyle mergedStyle = foreign.getStyle();\n if (peek(mergedStyle)) {\n return;\n }\n logger.log(Level.FINE, \"String_Node_Str\");\n StringBuffer styleBuffer = new StringBuffer();\n DimensionType x = foreign.getX();\n DimensionType y = for... |
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == EMAIL_CREDENTIALS_REQUEST_CODE) {\n if (resultCode == RESULT_OK) {\n Credential credential = data.getParcelableExtra(Credential.EXTRA_KEY);\... |
"private Injector init() throws Exception {\n return Guice.createInjector(new ConfigModule(cConf, hConf), new LocationRuntimeModule().getDistributedModules(), new ZKClientModule(), new DiscoveryRuntimeModule().getDistributedModules(), new StreamAdminModules().getDistributedModules(), new NotificationFeedClientModule... |
"public void update() {\n UserTO userTO = UserTestITCase.getUniqueSampleTO(\"String_Node_Str\");\n String initialPassword = userTO.getPassword();\n userTO = createUser(userTO);\n assertNotNull(userTO);\n UserMod userMod = new UserMod();\n userMod.setId(userTO.getId());\n userMod.setPassword(initial... |
"public Vector3f calcPlayerOrigin() {\n return new Vector3f(Configuration.CHUNK_DIMENSIONS.x * Configuration.VIEWING_DISTANCE_IN_CHUNKS.x / 2, 127, (Configuration.CHUNK_DIMENSIONS.z * Configuration.VIEWING_DISTANCE_IN_CHUNKS.y) / 2);\n}\n"
|
"public static boolean tryAddStack(IInventory inventory, ItemStack stack, int startSlot, int slots, boolean all, boolean doAdd) {\n int added = addStack(inventory, stack, startSlot, slots, false);\n boolean success = all ? (added == stack.stackSize) : (added > 0);\n if (success && doAdd) {\n addStack(in... |
"public boolean apply(Game game, Ability source, Ability abilityToModify) {\n int numCosts = abilityToModify.getModes().getSelectedModes().size() - 1;\n for (int i = 0; i < numCosts; i++) {\n abilityToModify.addCost(cost.copy());\n }\n return true;\n}\n"
|
"public static File getSaveFile() throws IOException {\n try {\n return new File(selectedFile.substring(0, selectedFile.length() - 3) + \"String_Node_Str\");\n } catch (SecurityException e) {\n Logger.e(TAG, \"String_Node_Str\", e);\n return null;\n }\n}\n"
|
"static public void sendCollection(HttpServerExchange exchange, RequestContext context, List<DBObject> embeddedData, long size) throws IllegalQueryParamenterException {\n String requestPath = URLUtilis.removeTrailingSlashes(URLUtilis.getRequestPath(exchange));\n Representation rep = new Representation(requestPath... |
"BaseFont getMappedFont(char c, FontMappingManager fontManager, CSSValueList fontFamilies, int fontStyle) {\n for (int i = 0; i < fontFamilies.getLength(); i++) {\n String fontFamilyName = fontFamilies.item(i).getCssText();\n String logicalFont = fontManager.getLogicalFont(fontFamilyName);\n Str... |
"private Method getMethod(Class<?> cls, String methodName, Class<?>[] classes) {\n for (Method method : cls.getMethods()) {\n if (method.getName().equals(methodName)) {\n if (method.getParameterTypes().length == classes.length) {\n for (int i = 0; i < classes.length; i++) {\n ... |
"private static String getCurrentDateTimeTZ(String blogTimeZoneOption, String pattern) {\n Date date = new Date();\n SimpleDateFormat gmtDf = new SimpleDateFormat(pattern, Locale.ROOT);\n if (blogTimeZoneOption == null) {\n AppLog.w(T.UTILS, \"String_Node_Str\");\n return gmtDf.format(date);\n ... |
"public Clinician findByUsername(String username) {\n List<Clinician> clinicians = queryView(\"String_Node_Str\", username);\n if (clinicians != null && !clinicians.isEmpty()) {\n Clinician clinician = clinicians.get(0);\n loadDependencies(clinician);\n clinician.setPassword(encryptor.decrypt... |
"public void highlightCurrentNode() {\n if (m_currentNode != null) {\n EventThreadQueuerJavaFXImpl.invokeAndWait(\"String_Node_Str\", new Callable<Void>() {\n public Void call() throws Exception {\n HighlightNode.drawHighlight(m_currentNode);\n return null;\n ... |
"public boolean matches(ScriptContainer scriptContainer, String s) {\n if (entity.isValid() && entity.isLivingEntity()) {\n if (final_damage.asDouble() < entity.getLivingEntity().getHealth()) {\n return false;\n }\n }\n String lower = CoreUtilities.toLowerCase(s);\n String cmd = Cor... |
"public void testVersionUpdateWithIncorrectValue() {\n EntityManager em = createEntityManager();\n Employee employee;\n try {\n beginTransaction(em);\n employee = ModelExamples.employeeExample1();\n em.persist(employee);\n commitTransaction(em);\n beginTransaction(em);\n ... |
"public static AIP createAIP(String parentAipId) throws GenericException, AuthorizationDeniedException, RequestNotValidException, NotFoundException, AlreadyExistsException {\n ModelService model = RodaCoreFactory.getModelService();\n AIP aip = model.createAIP(parentAipId, permissions);\n return aip;\n}\n"
|
"public void testStrict() {\n String result = parsePrint(\"String_Node_Str\", false, false, 0, false, true);\n assertEquals(\"String_Node_Str\", result);\n}\n"
|
"public static void init() {\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n props.put(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"public ChatPageView create(Chat chat, Visibility visibility, boolean sendButtonVisible) {\n return new ChatPageWidget(hablarEventBus, chat, visibility, sendButtonVisible);\n}\n"
|
"protected void runTask() {\n prepareForRun();\n try {\n runnable.run();\n } finally {\n runComplete();\n running = false;\n }\n}\n"
|
"private Set<CacheConnection> getOdaConnections() {\n if (DataSource.dataEngineLevelConnectionPool.get(this.session) == null) {\n if (populateToCache) {\n DataSource.dataEngineLevelConnectionPool.put(this.session, new HashMap<ConnectionProp, Set<CacheConnection>>());\n } else {\n ... |
"private Item findNearest(Item current, Item search, int depth) {\n int direction = comparators.get(depth % 2).compare(search, current);\n Item next, other;\n if (direction < 0) {\n next = current.left;\n other = current.right;\n } else {\n next = current.right;\n other = current... |
"boolean checkIfColumnExists(SQLiteDatabase db, String tableName, String columnName) {\n Cursor emptyCursor = null;\n Logger.log(String.format(\"String_Node_Str\", columnName, tableName), LogType.DATABASE);\n try {\n emptyCursor = db.rawQuery(\"String_Node_Str\" + tableName + \"String_Node_Str\", null);... |
"public static WithValue fromExpr(JsExpr expr, Iterable<GoogRequire> requires) {\n return Leaf.create(expr, false, requires);\n}\n"
|
"public String toString() {\n return String.format(\"String_Node_Str\", this.getClass().getSimpleName(), node.getClass().getSimpleName());\n}\n"
|
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n try {\n if (null != selfRecords) {\n for (int x = 0, selfRecordsSize = selfRecords.size(); x < selfRecordsSize; x++) {\n UnmarshalRecord selfRecord = selfRecords.get(x);\n ... |
"public static String parseTweetFlow(ArrayList<AbstractElement> elements) {\n String tweetFlowString = \"String_Node_Str\";\n for (AbstractElement element : elements) {\n if ((element.getClosedSequenceNext() == null) && (element.getClosedSequencePrev() == null)) {\n tweetFlowString += createOpen... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.post_preview_fragment, container, false);\n mWebView = (WebView) view.findViewById(R.id.webView);\n WPWebViewClient client = new WPWebViewClient(mSiteStore.getSiteByLocal... |
"public void doubleClick(Widget parent, int index) {\n hilightSelectedTransmitter(index);\n}\n"
|
"public void createGithubCommentOnRequestClaimed(final RequestClaimedEvent event) {\n if (addComment) {\n final RequestDto request = event.getRequestDto();\n final IssueInformationDto issueInformation = request.getIssueInformation();\n if (issueInformation.getPlatform() == Platform.GITHUB) {\n ... |
"public void onCellChanged(String columnName, K key, K oldKey, Object value, Object oldValue) {\n if (!(AbstractMarshallable.class.isAssignableFrom(keyType())) && \"String_Node_Str\".equals(columnName)) {\n kvStore.put(key, kvStore.getAndRemove(oldKey));\n return;\n }\n if (!(Marshallable.class.i... |
"protected List<String> submitJob(String cubename, long startDate, long endDate, CubeBuildTypeEnum jobType) throws SchedulerException, IOException, InvalidJobInstanceException, CubeIntegrityException {\n List<String> jobList = new ArrayList<String>();\n CubeManager cubeMgr = CubeManager.getInstance(KylinConfig.ge... |
"public void onEnable() {\n getDataFolder().mkdirs();\n File yml = new File(getDataFolder(), \"String_Node_Str\");\n if (!yml.exists()) {\n try {\n yml.createNewFile();\n log.info(\"String_Node_Str\" + getDataFolder() + \"String_Node_Str\");\n getConfiguration().setPrope... |
"public void run() {\n EntityPlayer player = ctx.getServerHandler().player;\n IPlayerInformation playerInfo = player.getCapability(CapabilityPlayerInformation.PLAYER_INFORMATION, null);\n if (playerInfo != null && !player.getEntityWorld().isRemote) {\n if (message.playerClass == 1)\n playerIn... |
"private static String parameterizedTypeToString(final ParameterizedType p) {\n final StringBuilder buf = new StringBuilder();\n final Type useOwner = p.getOwnerType();\n final Class<?> raw = (Class<?>) p.getRawType();\n final Type[] typeArguments = p.getActualTypeArguments();\n if (useOwner == null) {\n... |
"public void drawString(String str, float x, float y, FontInfo fontInfo, float letterSpacing, float wordSpacing, Color color, boolean linethrough, boolean overline, boolean underline, CSSValue align) {\n y = transformY(y);\n String text = str;\n if (fontInfo != null) {\n BaseFont baseFont = fontInfo.get... |
"public XMLCompositeObjectMapping generateCompositeObjectMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo, String referenceClassName) {\n XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();\n mapping.setAttributeName(property.getPropertyName());\n if (property.i... |
"public void shouldValidateToTrueWhenRawToProfileand8ParametersGRversion() {\n String username = \"String_Node_Str\";\n String expid = \"String_Node_Str\";\n String processtype = \"String_Node_Str\";\n String parameters = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" ... |
"public void setJSONObject(JSONObject jsonObject) {\n Iterator itr = jsonObject.keys();\n while (itr.hasNext()) {\n try {\n String key = (String) itr.next();\n Object value = jsonObject.opt(key);\n Field field = this.getClass().getField(key);\n Class type = field... |
"private TransformEngine[] createChain() {\n List<TransformEngine> transformerList = new LinkedList<TransformEngine>();\n redFilter = new REDFilterTransformEngine(RED_PAYLOAD_TYPE);\n transformerList.add(redFilter);\n absSendTime = new AbsSendTimeEngine();\n transformerList.add(absSendTime);\n boolean... |
"private void login(Account account) throws Exception {\n this.setBrowserExclusive();\n br.setFollowRedirects(true);\n br.setCookie(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n br.getPage(\"String_Node_Str\");\n br.setDebug(true);\n br.postPage(\"String_Node_Str\", \"String_Node_S... |
"public void testJsonModel() {\n try {\n JSONObject jsonObject = new JSONObject(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n TestJsonModel<TestModel1> testJsonModel1 = new TestJsonModel<TestModel1>(TestModel1.class, jsonObject);\n testJsonModel1.save(false);\n asser... |
"private void processTopicref(final Element topicref) {\n final String xtrfValue = getValue(topicref, ATTRIBUTE_NAME_XTRF);\n if (xtrfValue != null && xtrfValue.contains(ATTR_XTRF_VALUE_GENERATED)) {\n return;\n }\n final Collection<String> chunkValue = split(getValue(topicref, ATTRIBUTE_NAME_CHUNK))... |
"protected Product readProductNodesImpl() throws IOException {\n SystemUtils.LOG.fine(\"String_Node_Str\" + getInput().toString());\n if (getInput() instanceof File) {\n final File inputFile;\n File file;\n String longInput = GetLongPathNameW(getInput().toString());\n if (longInput.len... |
"protected Object doInBackground() throws Exception {\n int cnt = 0;\n if (all) {\n for (ABCContainerTag tag : abcPanel.swf.abcList) {\n tag.getABC().restoreControlFlow();\n }\n } else {\n int bi = abcPanel.detailPanel.methodTraitPanel.methodCodePanel.getBodyIndex();\n if... |
"public void retryPaxosCommand(List<Integer> addrs, Integer instNum, byte[] payload) {\n replicateCommand(addrs, payload);\n}\n"
|
"public Timestamp cast(String src, Class<?> toType, String... args) {\n try {\n return new java.sql.Timestamp(((DateFormat) dateTimeFormat.clone()).parse(src).getTime());\n } catch (ParseException e) {\n throw Lang.wrapThrow(e);\n }\n}\n"
|
"private void generateCssFromLess() {\n try {\n LessCompiler compiler = new LessCompiler();\n String less = Resources.toString(getClass().getResource(\"String_Node_Str\"), UTF_8);\n String css = compiler.compile(less);\n File cssFile = new File(staticOutput, \"String_Node_Str\");\n ... |
"public static int getParallelThreadCount() {\n int count = parallelSpeedUpThreadCount.get();\n if (count < 2) {\n count = 2;\n }\n return count;\n}\n"
|
"public int getItemCount() {\n return getItems().length;\n}\n"
|
"public Package getPackage(EventHandler eventHandler, PackageIdentifier packageName) throws NoSuchPackageException, InterruptedException {\n SkyKey pkgKey = PackageValue.key(packageName);\n PackageValue pkgValue;\n if (graph.exists(pkgKey)) {\n pkgValue = (PackageValue) graph.getValue(pkgKey);\n ... |
"private void teleport(int index) {\n TeleportDestinationClientInfo destination = destinationList.get(index);\n Coordinate c = destination.getCoordinate();\n PacketHandler.INSTANCE.sendToServer(new PacketForceTeleport(c.getX(), c.getY(), c.getZ(), destination.getDimension()));\n}\n"
|
"public void createPersistentSnapshot(String dbName, SnapshotConfig snap, boolean createLogEntry) throws BabuDBException {\n try {\n Map<String, Snapshot> snapMap = snapshotDBs.get(dbName);\n if (snapMap == null) {\n snapMap = new HashMap<String, Snapshot>();\n snapshotDBs.put(dbN... |
"public void playPriority(UUID activePlayerId, boolean resuming) {\n int bookmark = 0;\n clearAllBookmarks();\n try {\n while (!isPaused() && !gameOver(null)) {\n if (!resuming) {\n state.getPlayers().resetPassed();\n state.getPlayerList().setCurrent(activePlayer... |
"public void disconnectFromWebApp(final WebOSWebAppSession webAppSession) {\n JSONObject rawData = (JSONObject) webAppSession.launchSession.getRawData();\n String appId = null;\n try {\n appId = rawData.getString(\"String_Node_Str\");\n } catch (JSONException ex) {\n }\n if (appId == null && mA... |
"private static <T> void parEvalPlus(ImmutableList<QueryExpression> operands, final QueryEnvironment<T> env, final VariableContext<T> context, final ThreadSafeCallback<T> callback, ForkJoinPool forkJoinPool) throws QueryException, InterruptedException {\n ArrayList<ForkJoinTask<Void>> tasks = new ArrayList<>(operand... |
"protected void setAnalysisTypeForColumn() {\n if (!isNewlyCreated) {\n DataSetHandle ds = ((DataSetEditor) getContainer()).getHandle();\n DataSetViewData[] viewData = DataSetProvider.getCurrentInstance().getColumns(ds, true);\n PropertyHandle handle = ds.getPropertyHandle(DataSetHandle.COLUMN_H... |
"private TemplateDateFormat getTemplateDateFormat(int dateType, boolean useSysDefTZ, String formatDescriptor, String sourceCfgSetting) throws TemplateModelException, UnknownDateTypeFormattingUnsupportedException {\n final int formatDescriptionLen = formatDescriptor.length();\n final TimeZone timeZone = useSysDefT... |
"public void doLayout(List<? extends IGLLayoutElement> children, float w, float h) {\n Map<GLPathwayWindow, IGLLayoutElement> windowToElement = new HashMap<>();\n for (IGLLayoutElement child : children) {\n windowToElement.put((GLPathwayWindow) child.asElement(), child);\n }\n float freeSpaceVertical... |
"public Uri insert(Uri uri, ContentValues values) {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n int token = ContentDescriptor.URI_MATCHER.match(uri);\n Uri result = null;\n switch(token) {\n case FriendTable.PATH_TOKEN:\n {\n result = doInsert(db, FriendTable.TAB... |
"public void dump(PrintWriter pw, String prefix, boolean dumpAll) {\n if (mAnimating || mLocalAnimating || mAnimationIsEntrance || mAnimation != null) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mAnimating);\n pw.print(\"String_Node_Str\");\n pw.print(mLocalAn... |
"private boolean checkDeleteContent(IResource[] selectedResources) {\n List<ModelElement> modelElementList = new ArrayList<ModelElement>();\n IFile file;\n ModelElement modelElement;\n boolean otherFilesExistFlag = false;\n String otherFileName = null;\n boolean anaMessageFlag = false, repMessageFlag ... |
"public void createNewContainer(FComplexType type) {\n AttributeContainer.Builder newBuilder = AttributeContainer.newBuilder();\n if (type.isTopLevel()) {\n this.incompleteBuilders.push(newBuilder.setName(type.getName()));\n LOGGER.debug(String.format(\"String_Node_Str\", type.getName()));\n } el... |
"public void callback(Context context, Event event) throws Exception {\n WeldManager manager = context.get(WeldManager.class);\n CDIRequestID id = context.get(CDIRequestID.class);\n if (id != null) {\n ContextLifecycle lifeCycle = manager.getServices().get(ContextLifecycle.class);\n lifeCycle.get... |
"public void setCheckMarkDrawable(Drawable d) {\n if (mCheckMarkDrawable != null) {\n mCheckMarkDrawable.setCallback(null);\n unscheduleDrawable(mCheckMarkDrawable);\n }\n if (d != null) {\n d.setCallback(this);\n d.setVisible(getVisibility() == VISIBLE, false);\n d.setState(... |
"void setKeyboardMode(int mode, int imeOptions, boolean enableVoice, boolean isSymbols) {\n if (mInputView == null)\n return;\n mMode = mode;\n mImeOptions = imeOptions;\n if (enableVoice != mHasVoice) {\n setVoiceMode(mHasVoice, mVoiceOnPrimary);\n }\n mIsSymbols = isSymbols;\n mInpu... |
"public CallString push(InvokeSite is, int maxLen) {\n if (maxLen <= 0)\n return EMPTY;\n int k = Math.min(callString.length + 1, maxLen);\n int end = callString.length + 1;\n InvokeSite[] cs = Arrays.copyOfRange(callString, end - k, end);\n cs[k - 1] = is;\n return new CallString(cs);\n}\n"
|
"public void run() {\n if (modelElements[0] instanceof TdColumn) {\n TdColumn[] columns = new TdColumn[modelElements.length];\n int i = 0;\n for (ModelElement me : modelElements) {\n columns[i] = (TdColumn) me;\n ++i;\n }\n if (ColumnHelper.isFromSameTable(Arr... |
"private void executeAction(ApplicationSpecification appSpec, WorkflowActionNode node, InstantiatorFactory instantiator, final ClassLoader classLoader, WorkflowToken token) throws Exception {\n final SchedulableProgramType programType = node.getProgram().getProgramType();\n final WorkflowActionSpecification actio... |
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n XSDSimpleTypeDefinition typedef = (XSDSimpleTypeDefinition) selection.getFirstElement();\n ArrayList customTypes = new ArrayList();\n for (Iterator iter = ... |
"public void widgetSelected(SelectionEvent e) {\n if (((Button) e.widget).getSelection()) {\n for (int i = 0; i < toggleProviders.length; i++) {\n BorderInfomation information = new BorderInfomation();\n information.setPosition(toggleProviders[i].getPosition());\n information.... |
"public int compare(Object o1, Object o2) {\n if (value.get(o1) < value.get(o2)) {\n return -1;\n } else if (Objects.equals(value.get(o1), value.get(o2))) {\n return 0;\n } else {\n return 1;\n }\n}\n"
|
"private void addParticleDetail(XSDSchema xsdSchema, XSDParticle xsdParticle, ATreeNode parentNode, String currentPath) throws OdaException, IllegalAccessException, InvocationTargetException {\n XSDTerm xsdTerm = xsdParticle.getTerm();\n if (xsdTerm instanceof XSDElementDeclaration) {\n XSDElementDeclarati... |
"public static String unescape(CharSequence escaped) {\n switch(escaped.charAt(0)) {\n case '\"':\n return \"String_Node_Str\";\n case '\\\\':\n return \"String_Node_Str\";\n case '/':\n return \"String_Node_Str\";\n case 'b':\n return \"String_... |
"protected String getText() {\n TextItemHandle handle = (TextItemHandle) getModel();\n String text = handle.getDisplayContent();\n if (text == null || text.length() == 0) {\n text = FIGURE_DEFAULT_TEXT;\n } else {\n if (text.length() > TRUNCATE_LENGTH && DesignChoiceConstants.TEXT_CONTENT_TYPE... |
"public Object intercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy) throws Throwable {\n if (objectMethodsGuru.isGetMetaClass(method)) {\n return GroovySystem.getMetaClassRegistry().getMetaClass(typeToMock);\n }\n return super.intercept(proxy, method, args, methodProxy);\n}\n"
|
"protected void _loadAttributes(NamedObj model, File attributesPath, boolean force) throws IllegalActionException {\n Collection<NamedObj> children = new LinkedList<NamedObj>(GTTools.getChildren(model, true, true, true, true));\n for (NamedObj child : children) {\n List<NaomiParameter> parameters = child.a... |
"public void testSimpleClass() {\n FieldAnnotationWriter app = new BackboneFieldAnnotationWriter();\n app.addAnnotationProcessor(new NonBaseAnnotationProcessor());\n DefaultModelGenerator mg = new DefaultModelGenerator(new BackboneModelProcessor(modelWriter, app), new JavaToJSValueConverter(ConverterMode.ALLOW... |
"public View getView(int i, View view, ViewGroup viewGroup) {\n if (view == null) {\n view = inflater.inflate(R.layout.file_list_item, null);\n }\n if (selectedPos == i) {\n view.setBackgroundColor(mContext.getResources().getColor(R.color.card_detailing));\n } else {\n view.setBackgroun... |
"public int doEndTag() throws JspException {\n BaseURL url = getUrl();\n if (url == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n setUrlParameters(url);\n setUrlProperties(url);\n HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();\n String... |
"void loadSchema() {\n try {\n Connection conn = SqlgDataSource.INSTANCE.get(this.sqlgGraph.getJdbcUrl()).getConnection();\n DatabaseMetaData metadata;\n metadata = conn.getMetaData();\n if (this.sqlDialect.supportSchemas()) {\n String catalog = null;\n String schema... |
"public boolean isSpawned() {\n NPC npc = CitizensAPI.getNPCRegistry().getById(npcid);\n return npc != null && npc.isSpawned();\n}\n"
|
"public String getName() {\n if (varName != null)\n return varName.parse();\n if (attName != null)\n return attName.getName();\n else\n return null;\n}\n"
|
"private Criterion getCriterion(final AttributeCond.Type type, final AbstractAttributeValue example) {\n Criterion result = null;\n switch(type) {\n case EQ:\n result = Restrictions.disjunction().add(Restrictions.eq(\"String_Node_Str\", example.getStringValue())).add(Restrictions.eq(\"String_Nod... |
"public boolean equals(Object o) {\n if (!(o instanceof BitVector))\n return false;\n BitVector other = (BitVector) o;\n int min = bits.length;\n long[] longer = other.bits;\n if (other.bits.length < min) {\n min = other.bits.length;\n longer = bits;\n }\n int i;\n for (i = ... |
"public BaseDataSetDesign adaptDataSet(DataSetHandle handle) throws BirtException {\n BaseDataSetDesign design = null;\n if (handle instanceof OdaDataSetHandle) {\n Scriptable propBindingScope = context.hasExternalScope() ? context.getTopScope() : null;\n design = new OdaDataSetAdapter((OdaDataSetHa... |
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n if (!r.checkArgs(args, 0)) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n String message = r.getFinalArg(args, 0);\n message = fo... |
"public void getIteratorTestMonthly() throws RhombusException {\n Long millistamp = 946740000000L;\n millistamp = System.currentTimeMillis();\n System.out.println(millistamp);\n UUID startingUUID = UUIDs.startOf(millistamp);\n System.out.println(\"String_Node_Str\" + startingUUID + \"String_Node_Str\" + ... |
"public void removeSelectionInterval(int index0, int index1) {\n if (!enabled)\n return;\n if (index0 == 0 && index1 == 0 && swingThreadSource.isEmpty())\n return;\n swingThreadSource.getReadWriteLock().writeLock().lock();\n try {\n listSelection.deselect(index0, index1);\n } finally... |
"public static URIBuilder getServiceProjectsRefsElementsUri(Project project) {\n URIBuilder elementUri = getServiceProjectsRefsUri(project);\n if (elementUri == null) {\n return null;\n }\n String refId = \"String_Node_Str\";\n if (project.isRemote() && !EsiUtils.getCurrentBranch(project.getPrimar... |
"String[] getStringArray(String key, String[] defaultValue) {\n if (toUpdate.containsKey(key))\n return getStringArray(key);\n return getContent().getStringArray(key, defaultValue);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.