content stringlengths 40 137k |
|---|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n MageObject sourceObject = source.getSourceObject(game);\n if (controller != null && sourceObject != null) {\n int number = 2;\n if (SpellMasteryCondition.getInstance().apply(game, ... |
"public org.hl7.fhir.dstu2.model.Flag convertFlag(org.hl7.fhir.dstu3.model.Flag src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Flag tgt = new org.hl7.fhir.dstu2.model.Flag();\n copyDomainResource(src, tgt);\n for (org.hl7.fhir.dstu3.model.Ide... |
"public synchronized int incrementNumRecords(int n) {\n lastUpdated = new Date();\n numRecords += n;\n return numRecords;\n}\n"
|
"Transaction bindResource(Jedis resource) {\n Transaction tx = null;\n tx = resource.multi();\n resources.add(tx);\n return tx;\n}\n"
|
"private boolean shouldWaitMigrationOrBackups(Level level) {\n if (initialized) {\n MemberGroupFactory mgf = memberGroupFactory;\n final Collection<MemberGroup> memberGroups = mgf.createMemberGroups(node.getClusterService().getMembers());\n if (memberGroups.size() < 2)\n return false;... |
"public void initRemove(final E edge, final UndoableEditRef<V, E> ref) {\n final V vref = graph.vertexRef();\n final int ei = edgeUndoIdBimap.getId(edge);\n final int fi = featureStore.createFeatureUndoId();\n final int si = vertexUndoIdBimap.getId(edge.getSource(vref));\n final int sOutIndex = edge.getS... |
"public boolean call(CommandSource source, String arguments, List<String> parents) throws CommandException {\n String[] parts = arguments.split(\"String_Node_Str\", 2);\n Optional<CommandMapping> mapping = get(parts[0]);\n if (mapping.isPresent()) {\n List<String> passedParents = new ArrayList<String>(p... |
"protected boolean calculateEnabled() {\n if (getSelectedObjects().isEmpty()) {\n return false;\n } else {\n Object s = getSelectedObjects().get(0);\n if (s instanceof List && !((List) s).isEmpty()) {\n List selectedarts = (List) s;\n Object object = selectedarts.get(sel... |
"final void performRestart() {\n synchronized (mManagedCursors) {\n final int N = mManagedCursors.size();\n for (int i = 0; i < N; i++) {\n ManagedCursor mc = mManagedCursors.get(i);\n if (mc.mReleased || mc.mUpdated) {\n mc.mCursor.requery();\n mc.mR... |
"public void testRepeatedAppendsAndInserts() {\n StringBuffer x = new StringBuffer();\n final int size = 1000;\n for (int i = 0; i < size; i++) {\n x.append(\"String_Node_Str\" + i % 10);\n }\n assertTrue(\"String_Node_Str\", x.toString().endsWith(\"String_Node_Str\"));\n assertTrue(\"String_No... |
"public String toString(ConstantPool constants, HashMap<Integer, String> localRegNames, List<String> fullyQualifiedNames) {\n String vaStr = value.toString(constants, localRegNames, fullyQualifiedNames);\n String prefix = \"String_Node_Str\" + Graph.INDENTOPEN + \"String_Node_Str\";\n if (vaStr.startsWith(pref... |
"public void renderTileEntityAt(TileEntity t, double x, double y, double z, float f) {\n super.renderTileEntityAt(t, x, y, z, f);\n if (t instanceof TileTurret) {\n TileTurret tileEntity = (TileTurret) t;\n GL11.glPushMatrix();\n GL11.glTranslatef((float) x + 0.5f, (float) y + 1.5f, (float) z... |
"protected void showEventInChatOutput(User fromuser, String resourceName, SharedMarker marker, Runnable runnable) {\n if (localGUI != null) {\n showRawLine(fromuser.getID(), createDisplayStringForEditorOpen(resourceName, marker), runnable);\n }\n}\n"
|
"void parseResponse(JSONObject response) throws JSONException {\n InsightsPopularModel model = new InsightsPopularModel(123456, response);\n assertEquals(model.getHighestHour(), 9);\n assertEquals(model.getHighestDayOfWeek(), 5);\n assertEquals(model.getHighestDayPercent(), 30.532081377152);\n}\n"
|
"protected Rectangle getCallButtonRect() {\n Component c = getComponent();\n Rectangle rect = c.getBounds();\n int dx = getDeleteButtonRect().x - callRolloverIcon.getWidth(null) - 8;\n int dy = (rect.height) / 2 - callRolloverIcon.getHeight(null) / 2;\n return new Rectangle(dx, dy, callRolloverIcon.getWi... |
"public void basicTest() throws Exception {\n String htmlSource = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n HTMLDocumentImpl doc = loadPage(htmlSource);\n assertTrue(FONT.equals(doc.getElementById(\"String_Node_Str\").getNodeName()));\n}\n"
|
"public static String extractProjectLabel(Property property) {\n User author = property.getAuthor();\n if (author != null && !author.eIsProxy()) {\n InternalEObject iAuthor = (InternalEObject) property.getAuthor();\n Resource projResource = iAuthor.eResource();\n if (projResource != null) {\n... |
"public void testLocalRefs() {\n final String foo = noOptimizeTrue() ? \"String_Node_Str\" : \"String_Node_Str\";\n final String bar = noOptimizeTrue() ? \"String_Node_Str\" : \"String_Node_Str\";\n String result = new Object() {\n private String a = foo;\n {\n a = foo;\n }\n ... |
"public int getRowSpan(ICellContent cell) {\n int groupLevel = getGroupLevel();\n int rowSpan = cell.getRowSpan();\n if (groupLevel >= 0) {\n Object generateBy = cell.getGenerateBy();\n if (generateBy instanceof CellDesign) {\n CellDesign cellDesign = (CellDesign) generateBy;\n ... |
"boolean loadSystemProperties(Surface surface) {\n boolean value;\n boolean changed = false;\n String profiling = SystemProperties.get(PROFILE_PROPERTY);\n value = PROFILE_PROPERTY_VISUALIZE.equalsIgnoreCase(profiling);\n if (value != mProfileVisualizerEnabled) {\n changed = true;\n mProfil... |
"public void deleteArtifact(HttpRequest request, HttpResponder responder, String namespaceId, String artifactName, String artifactVersion) throws NamespaceNotFoundException, BadRequestException {\n Id.Namespace namespace = Id.Namespace.SYSTEM.getId().equalsIgnoreCase(namespaceId) ? Id.Namespace.SYSTEM : validateAndG... |
"public static <T> PushEnumerator<T> fromCallback(long every, TimeUnit unit, final Function<Unit, Option<T>> callback) {\n return new CallbackPushEnumerator<T>(every, unit, callback);\n}\n"
|
"public static Test suite() {\n TestSuite suite = new TestSuite(\"String_Node_Str\");\n String contextPath = \"String_Node_Str\";\n System.setProperty(\"String_Node_Str\", contextPath);\n String platform = System.getProperty(\"String_Node_Str\");\n boolean jaxpPlatform = true;\n suite.addTestSuite(Mar... |
"public static org.hl7.fhir.dstu2016may.model.ElementDefinition convertElementDefinition(org.hl7.fhir.dstu3.model.ElementDefinition src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.ElementDefinition tgt = new org.hl7.fhir.dstu2016may.model.Elem... |
"public static void initialize() throws Exception {\n if (nestedStartCount++ > 0) {\n return;\n }\n File localDataDir = TMP_FOLDER.newFolder();\n cConf = createCConf(localDataDir);\n org.apache.hadoop.conf.Configuration hConf = new org.apache.hadoop.conf.Configuration();\n hConf.addResource(\"S... |
"public long getLong(final String key, final long def) {\n return p.getLong(safeKey(key), def);\n}\n"
|
"public boolean onPreferenceClick(Preference preference) {\n new AlertDialog.Builder(getActivity()).setTitle(R.string.alert_reset_settings_title).setMessage(R.string.alert_reset_settings_content).setPositiveButton(R.string.dialog_reset, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInt... |
"public boolean accept(RuleProvider provider) {\n boolean result = true;\n if (this.predicates.isEmpty())\n return false;\n for (Predicate<RuleProvider> predicate : this.predicates) {\n if (!predicate.accept(provider))\n return false;\n }\n return result;\n}\n"
|
"public int executeBatch() {\n Map<HTableInterface, List<HBaseDataWrapper>> data = new HashMap<HTableInterface, List<HBaseDataWrapper>>();\n try {\n for (Node node : nodes) {\n if (node.isDirty()) {\n node.handlePreEvent();\n HTableInterface hTable = null;\n ... |
"public boolean onCommand(CommandSender sender, Command commandArg, String commandLabel, String[] arg) {\n try {\n Player player = (Player) sender;\n String command = commandArg.getName().toLowerCase();\n if (command.equalsIgnoreCase(\"String_Node_Str\")) {\n if (player.isOp() || gimm... |
"public IGraphItem createVertexRep(final IGraph parentPathway, final IGraphItem parentVertex, final String sName, final String sShapeType, final String sCoords) {\n ICaleydoGraphItem pathwayVertexRep = new PathwayVertexGraphItemRep(sName, sShapeType, sCoords);\n registerItem(pathwayVertexRep);\n parentPathway.... |
"public void shutdown() {\n if (isEnabled() && workerGroup != null) {\n workerGroup.shutdownGracefully();\n try {\n join();\n } catch (InterruptedException ex) {\n LOG.warn(\"String_Node_Str\", ex);\n }\n }\n}\n"
|
"private Node getNode(Object entity, ObjectGraph graph, NodeState initialNodeState) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entity.getClass());\n if (entityMetadata == null) {\n return null;\n }\n Object id = PropertyAccessorHelper.getId(entity, entityMetadata);\n... |
"public void testVarDefinitionsInExterns() {\n typeCheckCustomExterns(DEFAULT_EXTERNS + \"String_Node_Str\", \"String_Node_Str\");\n typeCheckCustomExterns(DEFAULT_EXTERNS + \"String_Node_Str\", \"String_Node_Str\");\n typeCheckCustomExterns(DEFAULT_EXTERNS + \"String_Node_Str\", \"String_Node_Str\");\n typ... |
"public Node.Children readChildren(String path, String nodeId, Revision rev, int limit) {\n Node.Children c;\n c = nodeChildrenCache.get(nodeId);\n if (c != null) {\n return c;\n }\n String from = PathUtils.concat(path, \"String_Node_Str\");\n from = Utils.getIdFromPath(from);\n from = from.... |
"protected VoteType castVote(Proposition p) {\n return VoteType.For;\n}\n"
|
"public void deleteByUrl(String url) throws MultipleResourceException, NonExistingResourceException, PersistentStoreFailureException {\n BasicDBObject query = new BasicDBObject();\n query.put(ServiceBasicAttributeNames.SERVICE_URL.getAttributeName(), url);\n DBObject d = serviceCollection.findAndRemove(query);... |
"private String getTypeName(Object typeObj) {\n if (typeObj instanceof XSDSimpleTypeDefinition) {\n return ((XSDSimpleTypeDefinition) typeObj).getName();\n if (typeObj instanceof String)\n return (String) typeObj;\n return \"String_Node_Str\";\n}\n"
|
"protected ExecuteResult doWork(ExecutableContext context) throws ExecuteException {\n final CubeInstance cube = cubeManager.getCube(getCubeName());\n final CubeSegment segment = cube.getSegmentById(getSegmentId());\n String sourceRecordsSize = jobService.getOutput(getCreateFlatTableStepId()).getExtra().get(Ex... |
"public void onRIOReceive(Integer from, int protocol, byte[] msg) {\n if (protocol != Protocol.RIOTEST_PKT) {\n logError(\"String_Node_Str\" + protocol);\n return;\n }\n Integer i = Integer.parseInt(Utility.byteArrayToString(msg));\n Integer receivedNum = receivedNums.get(from);\n if (i <= ... |
"public Collection<IClass> computeSubClasses(TypeReference type) {\n IClass t = lookupClass(type);\n if (Assertions.verifyAssertions) {\n if (T == null) {\n Assertions._assert(T != null, \"String_Node_Str\" + type);\n }\n }\n if (T.getReference().equals(TypeReference.JavaLangError))... |
"public <I> I read(Select query, Database.DbReadOp<I, Cursor> readOp) {\n SQLiteDatabase db = turtleDatabaseImpl.getReadableDatabase();\n try {\n String[] params = new String[query.getParams().size()];\n int i = 0;\n for (Object param : query.getParams()) {\n params[i++] = param.to... |
"protected void composePlanDefinitionInner(PlanDefinition element) throws IOException {\n composeDomainResourceElements(element);\n if (element.hasUrlElement()) {\n composeUriCore(\"String_Node_Str\", element.getUrlElement(), false);\n composeUriExtras(\"String_Node_Str\", element.getUrlElement(), f... |
"void paint(Rectangle bounds, PaintEvent e) {\n GC gc = e.gc;\n gc.setBackground(_colors.getColor(TimeGraphColorScheme.BACKGROUND));\n drawBackground(gc, bounds.x, bounds.y, bounds.width, bounds.height);\n if (bounds.width < 2 || bounds.height < 2 || null == _timeProvider) {\n return;\n }\n _id... |
"public void onPopupClicked(View v) {\n popup.setVisibility(View.INVISIBLE);\n if (this.questionCorrect && this.currentFlashcardIndex < (this.flashcards.length - 1)) {\n this.currentFlashcardIndex++;\n loadCurrentFlashCard();\n }\n}\n"
|
"public void reset() {\n mapOffset = 0;\n if (bridgeTarget != null) {\n bridgeParameterMappingRequired = true;\n bridgeParameterIndex = bridgeParameterInitialIndex;\n bridgeRegisterIndex = FIRST_VOLATILE_GPR;\n bridgeRegisterLocation = VM_Magic.getMemoryAddress(framePtr);\n brid... |
"private static List<String> setupBasicQuery(Context context, DiscoveryConfiguration discoveryConfiguration, HttpServletRequest request, DiscoverQuery queryArgs) {\n String query = request.getParameter(\"String_Node_Str\");\n if (StringUtils.isNotBlank(query)) {\n queryArgs.setQuery(query);\n }\n Lis... |
"public void addPages() {\n super.addPages();\n mainPage = new ServiceExportWSWizardPage(selection);\n addPage(mainPage);\n}\n"
|
"public Iterator<IValue> iterator() {\n return new ArrayIterator<>(this.values, this.valueCount);\n}\n"
|
"public String getRequestHeader(String name) {\n return reqHeaders.get(normalizeHeaderName(name));\n}\n"
|
"private static String[] readCollections() {\n String resName = \"String_Node_Str\" + COLLECTIONS_FILE;\n try {\n InputStream inputStream = LocalSolrRunner.class.getResourceAsStream(resName);\n InputStreamReader isr = new InputStreamReader(inputStream);\n BufferedReader buffer = new BufferedR... |
"public void fillNameInputWithIncorrectValues(JQueryLocator nameInput, int bottomBorderValue, int topBorderValue) {\n fillInputWithStringOfLength(nameInput, 0);\n guardNoRequest(selenium).fireEvent(nameInput, Event.BLUR);\n isThereErrorMessageAboutValueRequeired(valueRequiredErrorMessage);\n eraseInput(name... |
"public void exitGroundMinus1(GroundMinus1Context ctx) {\n if (null != ctx)\n builders.push(Builder.get(\"String_Node_Str\" + ctx.groundAtom().getText()));\n}\n"
|
"private static double[] calculateWoeMeanAndStdDev(ColumnConfig config, boolean isWeightedNorm) {\n List<Double> woeList = isWeightedNorm ? config.getBinWeightedWoe() : config.getBinCountWoe();\n if (woeList == null || woeList.size() < 2) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\... |
"public void addCharacter(List<Tag> tags, char character) {\n int fontStyle = getFontStyle();\n String fname = getFontName(tags);\n SHAPE shp = SHAPERECORD.systemFontCharacterToSHAPE(fname, fontStyle, getDivider() * 1024, character);\n glyphShapeTable.add(shp);\n fontBoundsTable.add(new RECT());\n cod... |
"private int out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, boolean hasTabOrEmoji, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean inclu... |
"private static String pemEncodeKey(Key key) {\n return Base64.encodeBase64String(new StringBuilder().append(\"String_Node_Str\").append(Base64.encodeBase64String(key.getEncoded())).append(\"String_Node_Str\").toString().getBytes(StandardCharsets.UTF_8));\n}\n"
|
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n boolean bufferContainsOnlyWhitespace = stringBuffer.toString().trim().length() == 0;\n if (bufferContainsOnlyWhitespace) {\n stringBuffer.reset();\n }\n if ((stringBuffer.length() >... |
"public static List<String> validate(Set<MetadataValue> values, FlowPanel extra) {\n List<String> errors = new ArrayList<String>();\n if (values != null) {\n for (MetadataValue mv : values) {\n String value = mv.get(\"String_Node_Str\");\n boolean mandatory = (mv.get(\"String_Node_Str... |
"public Path getRelative(String path) {\n if ((path.length() == 0) || (path.equals(\"String_Node_Str\"))) {\n return this;\n } else if (path.equals(\"String_Node_Str\")) {\n return parent == null ? this : parent;\n } else if (path.indexOf('/') != -1) {\n return getRelative(new PathFragment... |
"public void run() {\n IFolder parent = (IFolder) folder.getParent();\n boolean isFilesDeleted = deleteFolderAndFiles();\n if (!isFilesDeleted) {\n return;\n }\n try {\n folder.delete(true, null);\n CorePlugin.getDefault().refreshDQView();\n ProxyRepositoryManager.getInstance(... |
"protected List<Object> populateEntities(EntityMetadata m, Client client) {\n MetamodelImpl metaModel = (MetamodelImpl) KunderaMetadata.INSTANCE.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());\n EntityType entity = metaModel.entity(m.getEntityClazz());\n FilterBuilder preIntraFilter = null;\n ... |
"public static void addExtrabiomsXLBiomes() {\n for (int i = 0; i < EXTRABIOMES_XL_CATACOMBS_BIOMES.length; i++) {\n if (Biomes.getBiome(EXTRABIOMES_XL_CATACOMBS_BIOMES[i]).isPresent()) {\n if (Biomes.getBiome(EXTRABIOMES_XL_CATACOMBS_BIOMES[i]).get() != null) {\n CATACOMBS_BIOMES.ad... |
"protected boolean isVisible() {\n if (!isVisible)\n return false;\n if (!parentGLCanvas.isVisible())\n return false;\n return true;\n}\n"
|
"static void authenticate(final DB database, final String username, final String password) {\n try {\n if (!database.authenticate(username, password.toCharArray())) {\n LOGGER.error(\"String_Node_Str\");\n }\n } catch (final MongoException e) {\n LOGGER.error(\"String_Node_Str\" + ... |
"public void serviceRemovedAction(ServiceEvent iServiceEvent) {\n getLogger().debug(\"String_Node_Str\" + iServiceEvent.getName() + \"String_Node_Str\" + iServiceEvent.getType());\n try {\n Kiosk tKiosk = Topology.getInstance().getKiosk(iServiceEvent.getName());\n if (tKiosk != null) {\n ... |
"public List<T> get9Around(T n) {\n List<T> res = getInSquare(n, 1);\n return res;\n}\n"
|
"protected void spawnDustingParticles() {\n if (!worldObj.isRemote && worldObj instanceof WorldServer) {\n WorldServer worldServer = (WorldServer) worldObj;\n ItemStack stack = getStackInSlot(0);\n if (stack != null && stack.getItem() != null && stack.stackSize > 0) {\n Item item = st... |
"public void setExpectedDelivery() throws Exception {\n withUpdateableInventoryEntry(client(), entry -> {\n final ZonedDateTime expectedDelivery = SphereTestUtils.now().plus(7, ChronoUnit.DAYS);\n final UpdateAction<InventoryEntry> action = SetExpectedDelivery.of(expectedDelivery);\n final Inven... |
"protected void onSuccess() {\n AndroidApi.UI_THREAD_HANDLER.post(new Runnable() {\n\n public void run() {\n if (progressDialog.isShowing())\n progressDialog.dismiss();\n General.quickToast(PostSubmitActivity.this, getString(R.string.post_submit_done));\n finish... |
"private void updateRow(RowArea rowArea, boolean isFixedLayout) {\n RowArea lastRow = (RowArea) rows.getCurrent();\n int height = rowArea.getSpecifiedHeight();\n if (!isFixedLayout || height == 0) {\n for (int i = startCol; i <= endCol; i++) {\n CellArea upperCell = null;\n if (las... |
"public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n if (mShouldRequestCameraPermission) {\n if (grantResults[mIndexPermissionRequestCamera] == PackageManager.PERMISSION_GRANTED) {\n mFlagHasCameraPermission = true;\n } else {\n mC... |
"static Bitmap transformResult(Request data, Bitmap result, int exifRotation) {\n int inWidth = result.getWidth();\n int inHeight = result.getHeight();\n int drawX = 0;\n int drawY = 0;\n int drawWidth = inWidth;\n int drawHeight = inHeight;\n Matrix matrix = new Matrix();\n if (data.needsMatrix... |
"public List<DavResource> getResources(String url) throws SardineException {\n HttpPropFind propFind = new HttpPropFind(url);\n propFind.setEntity(SardineUtil.getResourcesEntity());\n HttpResponse response = this.executeWrapper(propFind);\n StatusLine statusLine = response.getStatusLine();\n if (!Sardine... |
"public void editStudent(String courseID, String email, String newName, String newTeamName, String newEmail, String newGoogleID, String newComments, Text newProfile) throws EntityDoesNotExistException {\n Student student = getStudentWithEmail(courseID, email);\n if (student == null)\n throw new EntityDoesN... |
"public boolean workCycle() {\n int fermented = Math.min(fermentationTime, fuelCurrentFerment);\n int productAmount = Math.round(fermented * currentRecipe.getModifier() * currentResourceModifier);\n productTank.fill(new FluidStack(currentRecipe.getOutput(), productAmount), true);\n fuelBurnTime--;\n reso... |
"private boolean labelsSatisfy(IModel model, TurboIssue issue) {\n if (!content.isPresent())\n return false;\n TurboLabel tokens = new TurboLabel(\"String_Node_Str\", content.get().toLowerCase());\n String group = \"String_Node_Str\";\n if (tokens.getGroup().isPresent()) {\n group = tokens.get... |
"public byte[] getBytes(String name) throws JMSException {\n Object value = getObject(name);\n if (value == null) {\n return null;\n } else if (value instanceof byte[]) {\n byte[] original = (byte[]) value;\n byte[] clone = new byte[original.length];\n System.arraycopy(original, 0, ... |
"private void processSettings() {\n StringBuffer torrcText = new StringBuffer();\n torrcText.append(TorConstants.TORRC_DEFAULT);\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n boolean useBridges = prefs.getBoolean(PREF_BRIDGES_ENABLED, false);\n boolean autoUpdateBridg... |
"public HUDView2D getFrameView() {\n return frameView;\n}\n"
|
"public <A, B> void changeDisplay() throws Exception {\n ARComponent old = this.display;\n if (old != null) {\n frame.remove(old);\n }\n Aggregates<?> aggs = remoteRender(host, port, dataset(), aggregate(), remoteTransfers());\n ARComponent newDisplay = new TransferDisplay(aggs, localTransfer(), r... |
"public <T extends Renderable> T render() {\n T result = super.render();\n waitForRows();\n return result;\n}\n"
|
"final void scheduleNext(TripsDbAdapter adapter, Cursor c) {\n final int days = c.getInt(TripsDbAdapter.TRIP_COL_DAYS);\n if (days == 0) {\n adapter.deleteTrip(mTripId, mStopId);\n } else {\n TripService ctx = TripService.this;\n Intent myIntent = new Intent(ACTION_POLL_TRIP, buildTripUri(... |
"public static Object[] getAllObject(Object elem, ArrayList<Object> objList, IStructuredContentProvider provider) {\n Object[] elems = provider.getElements(elem);\n for (Object obj : elems) {\n if (obj == null)\n continue;\n if (obj instanceof XSDModelGroup || obj instanceof XSDElementDec... |
"public boolean handleValidate(Object obj) {\n if (obj instanceof Object[]) {\n Object[] objects = (Object[]) obj;\n int len = objects.length;\n if (len == 0) {\n return false;\n }\n return handleValidate(objects[0]);\n }\n if (getType() == ICrosstabConstants.ROW_A... |
"private static void injectListeners(Object classObj, View contentView) throws Exception {\n Class<?> clazz = classObj.getClass();\n java.lang.reflect.Method[] methods = clazz.getDeclaredMethods();\n for (java.lang.reflect.Method method : methods) {\n if (method.isAnnotationPresent(OnClick.class)) {\n ... |
"public boolean parse(ParserManager pm, IToken token) throws SyntaxError {\n String value = token.value();\n if (this.isInMode(MODIFIERS)) {\n int i = 0;\n if ((i = Modifiers.CLASS.parse(value)) != -1) {\n if (this.theClass.addModifier(i)) {\n throw new SyntaxError(token, \... |
"public org.hl7.fhir.dstu2.model.ProcedureRequest convertProcedureRequest(org.hl7.fhir.dstu3.model.ProcedureRequest src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ProcedureRequest tgt = new org.hl7.fhir.dstu2.model.ProcedureRequest();\n copyDoma... |
"public void Ticket(String[] args, User user) {\n if (args.length == 0) {\n user.sendMessage(ChatColor.YELLOW + \"String_Node_Str\");\n return;\n }\n if (args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n int page = 1;\n if (args.length > 1) {\n try {\n pag... |
"public void onMessage(String channel, String sender, String login, String hostname, String message) {\n if (message.charAt(0) == '!') {\n String[] parts = message.split(\"String_Node_Str\");\n if (message.equalsIgnoreCase(\"String_Node_Str\")) {\n sendMessage(channel, sender + \"String_Node... |
"public Data createData(Object txt, StyleEntry entry) {\n if (ExcelUtil.getType(txt).equals(Data.NUMBER)) {\n String format = ExcelUtil.getPattern(txt, entry.getProperty(StyleConstant.NUMBER_FORMAT_PROP));\n entry.setProperty(StyleConstant.NUMBER_FORMAT_PROP, format);\n entry.setProperty(StyleCo... |
"public static void addRecipes() {\n if (ConfigurationHandler.enabled(\"String_Node_Str\")) {\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(chargingStationBlock), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", 'I', \"String_Node_Str\", 'F', ItemLoader.fluxConductor, 'K', ItemLoade... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n XMLMarshaller marshaller = marshalRecord.getMarshaller();\n Converter converter = xmlComp... |
"private void sortMeshes() {\n indices.sort((i, j) -> meshes.get(i).getMaterial().equals(meshes.get(j).getMaterial()) ? -1 : 1);\n}\n"
|
"public void addArgumentList(IArgumentInfoList argumentList) {\n if (arguments == null)\n arguments = new ArrayList();\n arguments.add(argumentList);\n}\n"
|
"public void run() {\n popupShell.setActive();\n final Menu menu = menuCreator.create(popupShell);\n menu.addListener(SWT.Hide, new Listener() {\n public void handleEvent(Event e) {\n activeShell.setActive();\n }\n });\n menu.addListener(SWT.Show, new Listener() {\n public... |
"protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n int sizeWidth = MeasureSpec.getSize(widthMeasureSpec) - getPaddingLeft() - getPaddingRight();\n int sizeHeight = MeasureSpec.getSize(heightMeasureSpec);\n int modeWidth = Measur... |
"private void genBasicGroupLevel2() throws BirtException {\n QueryDefinition qd = newReportQuery();\n qd.setUsesDetails(false);\n prepareExprNameAndQuery(qd);\n GroupDefinition groupDefn = new GroupDefinition();\n groupDefn.setKeyColumn(\"String_Node_Str\");\n qd.addGroup(groupDefn);\n groupDefn = ... |
"public static Byte decode(String s) throws NumberFormatException {\n return new Byte((byte) __decodeAndValidateLong(s, MIN_VALUE, MAX_VALUE));\n}\n"
|
"public Object invoke(Object object, Object[] arguments) {\n arguments = ParameterUtils.getActualArguments(arguments, length, varArgsClass, 0);\n return method.invoke(object, arguments);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.