content stringlengths 40 137k |
|---|
"private String outputMessage(FetchRequest fetch, StoredMessage message, ImapSessionFolder folder, boolean useUids) throws FolderException, ProtocolException {\n boolean ensureFlagsResponse = false;\n if (fetch.isSetSeen() && !message.isSet(Flags.Flag.SEEN)) {\n folder.setFlags(FLAGS_SEEN, true, message.ge... |
"public String importDatabase(String path) {\n return DataBackupHandler.importDb(path);\n}\n"
|
"public int[] getGroupBreaks(int groupLevel) {\n if (lstBreaks.size() <= 1) {\n if (bWithoutSub && iIndex > 0) {\n int[] breaks = new int[iIndex - 1];\n for (int i = 0; i < breaks.length; i++) {\n breaks[i] = i + 1;\n }\n return breaks;\n }\n ... |
"private void monitor() {\n for (NetworkPartitionContext networkPartitionContext : networkPartitionCtxts.values()) {\n for (PartitionContext partitionContext : networkPartitionContext.getPartitionCtxts().values()) {\n minCheckKnowledgeSession.setGlobal(\"String_Node_Str\", clusterId);\n ... |
"public HashMap<Integer, List<Integer>> visitCode(MethodBody body) {\n HashMap<Integer, List<Integer>> refs = new HashMap<>();\n for (int i = 0; i < code.size(); i++) {\n refs.put(i, new ArrayList<Integer>());\n }\n visitCode(0, 0, refs);\n int pos = 0;\n for (ABCException e : body.exceptions) ... |
"public org.hl7.fhir.dstu2.model.Slot convertSlot(org.hl7.fhir.dstu3.model.Slot src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Slot tgt = new org.hl7.fhir.dstu2.model.Slot();\n copyDomainResource(src, tgt);\n for (org.hl7.fhir.dstu3.model.Ide... |
"public List<Var> getReadOutputs() {\n switch(op) {\n case CALL_BUILTIN:\n {\n List<Var> res = new ArrayList<Var>();\n for (Var o : outputs) {\n if (Types.hasReadableSideChannel(o.type())) {\n res.add(o);\n }... |
"public void registerRecipes() {\n ItemElectronTube electronTube = PluginCore.items.tubes;\n RecipeManagers.fabricatorManager.addRecipe(null, Fluids.GLASS.getFluid(500), electronTube.get(EnumElectronTube.COPPER, 4), new Object[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", '#', \"String_Node_S... |
"void onClickAmount() {\n CurrencyValue presetAmount = _amountToSend;\n if (CurrencyValue.isNullOrZero(presetAmount)) {\n presetAmount = ExactCurrencyValue.from(null, _account.getAccountDefaultCurrency());\n }\n GetAmountActivity.callMeToSend(this, GET_AMOUNT_RESULT_CODE, _account.getId(), presetAmou... |
"public synchronized void updateGame(GameView game) {\n if (playerId == null || game.getHand() == null) {\n this.handContainer.setVisible(false);\n } else {\n handCards.clear();\n handCards.put(YOUR_HAND, game.getHand());\n if (game.getOpponentHands() != null) {\n for (Map.E... |
"public boolean accept(RuleProvider provider) {\n Set<String> tags = provider.getMetadata().getTags();\n boolean result = true;\n if (!includeTags.isEmpty()) {\n if (requireAllIncludeTags)\n result = tags.containsAll(includeTags);\n else\n result = CollectionUtils.containsAn... |
"private List<Network> queryWithoutInnerObjectsForEntity(final Long outerObjectId) {\n final String sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + super.generateNetworkRangeSql(\"String_Node_Str\", \"Stri... |
"private void createTaskIdPropertyDescriptor() {\n if (getTaskIdPropDesc() == null) {\n JBPropertyDescriptor taskIdPropDesc = new JBPropertyDescriptor(new ReadOnlyTaskIdController(), org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);\n taskIdPropDesc.setLabelProvider(new D... |
"public XMLCompositeDirectCollectionMapping generateDirectCollectionMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n XMLCompositeDirectCollectionMapping mapping = new XMLCompositeDirectCollectionMapping();\n mapping.setAttributeName(property.getPropertyName());\n mapping.se... |
"public void addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) {\n addPreferredActivityInternal(filter, match, set, activity, true, userId, \"String_Node_Str\");\n}\n"
|
"public void substituteForAll(Vector exprs, Vector strs, boolean parenthesize) throws TLAExprException {\n TLAExpr[] expArray = new TLAExpr[exprs.size()];\n String[] strArray = new String[strs.size()];\n IntPair[] nextArray = new IntPair[expArray.length];\n for (int i = 0; i < nextArray.length; i++) {\n ... |
"static boolean compare(TemplateModel leftValue, Expression leftExp, int operator, String operatorString, TemplateModel rightValue, Expression rightExp, boolean typeMismatchMeansNotEqual, boolean leftNullReturnsFalse, boolean rightNullReturnsFalse, Environment env) throws TemplateException {\n if (leftValue == null)... |
"public void publishPresenceStatus(PresenceStatus status, String statusMessage) throws IllegalArgumentException, IllegalStateException, OperationFailedException {\n assertConnected();\n JabberStatusEnum jabberStatusEnum = parentProvider.getJabberStatusEnum();\n boolean isValidStatus = false;\n for (Iterator... |
"public void noSubPoolsForGuestBinds() {\n when(config.getBoolean(ConfigProperties.STANDALONE)).thenReturn(true);\n Pool pool = setupVirtLimitPool();\n consumer.setFact(\"String_Node_Str\", \"String_Node_Str\");\n Entitlement e = new Entitlement(pool, consumer, 1);\n PoolHelper postHelper = new PoolHelpe... |
"public void onBrowserEvent(Event event) {\n if (!resettingScrollables && Event.ONSCROLL == event.getTypeInt()) {\n EventTarget eventTarget = event.getEventTarget();\n if (!Element.is(eventTarget)) {\n return;\n }\n Element target = eventTarget.cast();\n if (target == co... |
"private void sendToAllClients(WonderlandClientSender sender, Message message) {\n Iterator<BigInteger> it = sessions.keySet().iterator();\n while (it.hasNext()) {\n BigInteger sessionID = it.next();\n PresenceInfo info = sessions.get(sessionID);\n String s;\n if (message instanceof Se... |
"public File thumbnailCacheFile(String url, int size) {\n String downloadableUrl = downloadableUrl(url, size, size);\n if (null != downloadableUrl) {\n String filename = MXMediaDownloadWorkerTask.buildFileName(downloadableUrl, \"String_Node_Str\");\n try {\n File file = new File(getThumbn... |
"protected void doPublishResult(final PeriodType periodType, final Destination d) throws ReportingException {\n Measurement m = new Measurement(Math.round(runInfo.getPercentage()), runInfo.getRunTime(), runInfo.getIteration());\n m.set(new Quantity<Double>((Double) getAccumulatedResult(Measurement.DEFAULT_RESULT)... |
"protected void displayDoubleLores(WritableImage screen, int xOffset, int y, int rowAddress) {\n int c1 = ((RAM128k) computer.getMemory()).getAuxVideoMemory().readByte(rowAddress + xOffset) & 0x0FF;\n int c2 = ((RAM128k) computer.getMemory()).getMainMemory().readByte(rowAddress + xOffset) & 0x0FF;\n if ((y & 7... |
"public void useWrench() {\n EndergenicTileEntity otherTE = RFTools.instance.clientInfo.getSelectedEndergenicTileEntity();\n if (otherTE == null) {\n RFTools.instance.clientInfo.setSelectedEndergenicTileEntity(this);\n EndergenicTileEntity destinationTE = getDestinationTE();\n RFTools.instanc... |
"public static void main(String[] argv) {\n Options options = new Options();\n HelpFormatter formatter = new HelpFormatter();\n CommandLine line = null;\n {\n Option opt = new Option(\"String_Node_Str\", \"String_Node_Str\", false, \"String_Node_Str\");\n opt.setRequired(false);\n optio... |
"public void testGenericInterface() {\n Type fType = Supplier.class.getTypeParameters()[0];\n assertEquals(Integer.class, TypeToken.of(IntegerStringFunction.class).resolveType(fType).getRawType());\n Type predicateParameterType = Predicate.class.getTypeParameters()[0];\n assertEquals(new TypeToken<List<Stri... |
"protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (mDataNotSet)\n return;\n long starttime = System.currentTimeMillis();\n if (mXAxis.isAdjustXLabelsEnabled())\n calcModulus();\n drawGridBackground(canvas);\n if (mAxisLeft.isEnabled())\n mAxisRendererLeft.comput... |
"public static void processUpdateRequest(PageContext context) throws ArgumentNotValid, ForwardedToErrorPage {\n ArgumentNotValid.checkNotNull(context, \"String_Node_Str\");\n ServletRequest request = context.getRequest();\n String bitarchiveName = request.getParameter(Constants.BITARCHIVE_NAME_PARAM);\n if ... |
"public boolean set(Data dataKey, Object value, long ttl) {\n checkIfLoaded();\n Record record = records.get(dataKey);\n boolean newRecord = false;\n if (record == null || record.getValue() == null) {\n value = mapService.interceptPut(name, null, value);\n record = mapService.createRecord(name... |
"protected ItemStack getItemStackByDamage(int damage) {\n return new ItemStack(IC2NuclearControl.itemEnergySensorLocationCard);\n}\n"
|
"public void start(Collection<? extends Location> locsO) {\n if (locsO != null) {\n checkArgument(locsO.size() <= 1, \"String_Node_Str\", this, locsO);\n addLocations(locsO);\n }\n Location loc = getLocation();\n EntitySpec<?> spec = getConfig(MEMBER_SPEC);\n if (spec != null) {\n se... |
"public static SodiumSecretBox cryptoSecretBoxDetached(byte[] message, byte[] nonce, byte[] key) throws SodiumLibraryException {\n if (key.length != sodium().crypto_secretbox_keybytes().intValue()) {\n throw new SodiumLibraryException(\"String_Node_Str\" + key.length + \"String_Node_Str\");\n }\n if (no... |
"public void fetchAuthToken(final String accountName, Activity activity, final AuthorizationListener<String> listener) {\n final Account account = getAccount(accountName);\n if (account != null) {\n accountManager.getAuthToken(account, authTokenType, bundle, activity, new AccountManagerCallback<Bundle>() {... |
"public static org.hl7.fhir.dstu2016may.model.OperationDefinition.OperationDefinitionParameterBindingComponent convertOperationDefinitionParameterBindingComponent(org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterBindingComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\... |
"private void synchronizeMDMServerView() {\n IWorkbenchPage page = getViewSite().getPage();\n ServerView serverView = (ServerView) page.findView(ServerView.VIEW_ID);\n MDMServerHelper.getServersListFromSerExp().clear();\n List<MDMServerDef> servers = ServerDefService.getAllServerDefs();\n for (MDMServerD... |
"private Object getValueFromAttribute(Attr node, XMLField key) {\n return key.convertValueBasedOnSchemaType(node.getNodeValue(), (XMLConversionManager) session.getDatasourcePlatform().getConversionManager(), this);\n}\n"
|
"public void operationComplete(ChannelFuture future) throws Exception {\n if (!future.isSuccess() && !connection.closing.get()) {\n throw new Exception(\"String_Node_Str\", future.cause());\n }\n}\n"
|
"public void visitAssignGlobal(AssignGlobalLabel label, Object dst) {\n for (Iterator<? extends Object> writesToStaticField = g.getWritesToStaticField((StaticFieldKey) dst); writesToStaticField.hasNext(); ) {\n final PointerKey writtenPk = (PointerKey) writesToStaticField.next();\n doTransition(curStat... |
"public KurentoClient getKurentoClient() {\n if (kurentoClient == null) {\n kurentoClient = createKurentoClient();\n }\n return kurentoClient;\n}\n"
|
"void updateAnimationRects() {\n if (mServiceIsBound) {\n Resources res = mContext.getResources();\n int statusBarHeight = res.getDimensionPixelSize(com.android.internal.R.dimen.status_bar_height);\n int navBarHeight = res.getDimensionPixelSize(com.android.internal.R.dimen.navigation_bar_height)... |
"private void decide_non_context_slot(Slot s) {\n final ByRef<Preference> candidates = ByRef.create(null);\n final ImpasseType impasse_type = run_preference_semantics(s, candidates, false, false);\n if (impasse_type == ImpasseType.NONE) {\n if (s.impasse_type != ImpasseType.NONE)\n remove_exi... |
"private String createToolTipText(INodePO node) {\n StringBuilder toolTip = new StringBuilder();\n final WorkingLanguageBP workLangBP = WorkingLanguageBP.getInstance();\n Locale locale = workLangBP.getWorkingLanguage();\n ITestSuitePO testSuite = UINodeBP.getTestSuiteOfNode(node);\n if (node != null && i... |
"public static List<String> readFileToList(String filePath) {\n File file = new File(filePath);\n List<String> fileContent = new ArrayList<String>();\n if (file == null || !file.isFile()) {\n return null;\n }\n BufferedReader reader = null;\n try {\n InputStreamReader is = new InputStrea... |
"protected Object createConnectData(ID target, Callback[] cbs, Object data) {\n if (cbs.length > 0) {\n if (cbs[0] instanceof ObjectCallback) {\n final ObjectCallback cb = (ObjectCallback) cbs[0];\n return cb.getObject();\n }\n }\n return data;\n}\n"
|
"private int create2ValueComposite(Composite condition) {\n if (expressionValue1 != null && !expressionValue1.isDisposed()) {\n return 0;\n }\n if (valueListComposite != null && !valueListComposite.isDisposed()) {\n valueListComposite.dispose();\n valueListComposite = null;\n }\n Gri... |
"public void run() {\n ISelection selection = this.getSelection();\n for (Object obj : ((IStructuredSelection) selection).toArray()) {\n if (obj instanceof RepositoryNode) {\n RepositoryNode node = (RepositoryNode) obj;\n if (node instanceof ReportFileRepNode) {\n delet... |
"public void readSummaryFromParcel(Parcel in) throws ParcelFormatException {\n final int version = in.readInt();\n if (version != VERSION) {\n Slog.w(\"String_Node_Str\", \"String_Node_Str\" + version + \"String_Node_Str\" + VERSION + \"String_Node_Str\");\n return;\n }\n readHistory(in, true)... |
"protected RemovePushButton createRemovePushButton() {\n RemovePushButtonForExtendedTable removePushButton = new RemovePushButtonForExtendedTable(this.toolbar, getExtendedTableViewer()) {\n\n public boolean getEnabledState() {\n return super.getEnabledState() && (model == null || !model.getElemPara... |
"private void processManifest() {\n for (int i = 0; i < periodsById.size(); i++) {\n int id = periodsById.keyAt(i);\n if (id >= firstPeriodId) {\n periodsById.valueAt(i).updateManifest(manifest, id - firstPeriodId);\n } else {\n }\n }\n handler.removeCallbacks(simulateMan... |
"public void setPidfPresenceStatus(String presenceDoc) {\n Document doc = convertDocument(presenceDoc);\n if (doc == null) {\n return;\n }\n logger.debug(\"String_Node_Str\" + presenceDoc);\n NodeList presList = doc.getElementsByTagName(PRESENCE_ELEMENT);\n if (presList.getLength() == 0) {\n ... |
"public static void start(Context context) {\n initSystemLog(context);\n TriggerDB db = new TriggerDB(context);\n db.open();\n boolean canRunNow = true;\n Cursor c = db.getAllTriggers();\n if (c.moveToFirst()) {\n do {\n int trigId = c.getInt(c.getColumnIndexOrThrow(TriggerDB.KEY_ID)... |
"public boolean execute(ICommandSender sender, String[] args) throws Exception {\n if (args.length > 1) {\n throw new BadUsageException(getUsage());\n }\n IPlayer player = (IPlayer) sender;\n if (player.hasPermission(PermissionNames.ADMIN_PROTECT) || player.hasPermission(PermissionNames.USER_PROTECT)... |
"public void updateEntity() {\n if (ServerHelper.isClientWorld(worldObj)) {\n return;\n }\n if (hasEnergy(ACTIVATION_ENERGY)) {\n if (!isActive) {\n worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);\n }\n isActive = true;\n boolean work = false;\n if (wor... |
"public boolean getBurning() {\n int meta = getBlockMetadata();\n if (meta > 0) {\n if (meta == 1) {\n return this.burning;\n } else {\n if (this.hasPrimary()) {\n return this.getPrimaryTileEntity().isBurning();\n }\n }\n }\n return false;... |
"public static ShopClientCredentials createAndBeginRefreshInBackground(ShopClientConfig config, OAuthClient oauthClient) {\n String authEndpoint = Endpoints.tokenEndpoint(config.getAuthHttpServiceUrl());\n ShopClientCredentials credentials = new ShopClientCredentials(oauthClient, authEndpoint, config.getProjectKe... |
"private synchronized void map(Integer ssrcOrig, Integer ssrcTarget) {\n if (ssrcOrig == null) {\n return;\n }\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + (ssrcOrig & 0xffffffffl) + \"String_Node_Str\" + (ssrcTarget & 0xffffffffl));\n }\n if (ssrcTarget != null && ... |
"public void testAddingNestAggregations() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1... |
"protected void scaleHexesGUI() {\n hexArray = mapManager.getHexes();\n GUIHex hex;\n int ii, jj;\n for (int i = minX; i < hexArray.length; i++) {\n ii = i - minX + 1;\n for (int j = minY; j < hexArray[0].length; j++) {\n jj = j - minY + 1;\n hex = h[i][j];\n i... |
"public void drawPoints(RenderObject robj, int gidx, PointStyle style, double rad) {\n switch(style) {\n case POINT:\n {\n float fold = getPointSize(gl);\n float frad = (float) rad;\n boolean changed = false;\n if (fold != frad) {\n ... |
"private Class<?> resolveType(Class<?> concreteClass, java.lang.reflect.Type type) {\n if (type instanceof Class<?>) {\n return (Class<?>) type;\n } else if (type instanceof ParameterizedType) {\n return (Class<?>) ((ParameterizedType) type).getRawType();\n } else if (type instanceof TypeVariable... |
"protected Control createDialogArea(Composite parent) {\n redrewComp = (Composite) super.createDialogArea(parent);\n int style = SWT.NONE;\n style |= SWT.V_SCROLL;\n style |= SWT.H_SCROLL;\n style |= SWT.BORDER;\n style |= SWT.SINGLE;\n gridPrview = new ColumnPreviewGrid(this, redrewComp, style, mo... |
"private int correctBufferIndex(ChannelBuffer buffer) {\n buffer.readerIndex(buffer.readerIndex() - IcapCodecUtil.IEOF_SEQUENCE.length);\n int counter = 0;\n for (; ; ) {\n counter++;\n byte next = buffer.getByte(buffer.readerIndex() - counter);\n if (next == IcapCodecUtil.CR) {\n ... |
"private String addQuoteForSpecialChar(String expression) {\n int lastIndex = expression.lastIndexOf(\"String_Node_Str\");\n if (lastIndex > 0) {\n String first = expression.substring(0, lastIndex).trim();\n String second = expression.substring(lastIndex + 1, expression.length()).trim();\n St... |
"public void find() {\n select_start = txt.getText().toLowerCase().indexOf(textF.getText().toLowerCase());\n if (select_start == -1) {\n startIndex = 0;\n JOptionPane.showMessageDialog(null, \"String_Node_Str\" + textF.getText() + \"String_Node_Str\");\n return;\n }\n if (select_start =... |
"private List<Artifact> loadArtifactsFromServerIds(LoadType reload) throws OseeCoreException {\n List<Integer> ids = createOrcsQuery().getSearchResult().getIds();\n List<Artifact> artifacts;\n if (ids != null && !ids.isEmpty()) {\n artifacts = ArtifactLoader.loadArtifacts(ids, branch, loadLevel, reload,... |
"public void run() {\n String chatRoomName = chatRoomPanel.getChatRoomName();\n ChatRoom chatRoom = null;\n try {\n chatRoom = mainFrame.getMultiUserChatOpSet(pps).createChatRoom(chatRoomName, null);\n } catch (OperationFailedException ex) {\n logger.error(\"String_Node_Str\", ex);\n ne... |
"private static ResourcePlan createResourcePlan(Config config) {\n String indexEnv = System.getenv(\"String_Node_Str\");\n String idEnv = System.getenv(\"String_Node_Str\");\n int index = Integer.valueOf(indexEnv);\n initLogger(config, index);\n LOG.log(Level.INFO, String.format(\"String_Node_Str\", idEn... |
"public void removeFlows() {\n List<OFStatistics> results = this.parent.getSlicedFlowStats(mySwitch.getId(), this.mySlicer.getSliceName());\n if (results == null) {\n log.debug(\"String_Node_Str\");\n return;\n }\n List<OFMessage> deletes = new ArrayList<OFMessage>();\n for (OFStatistics st... |
"public Iterator<Item> findItemsWithFeatures(Collection<String> features, int minPrice, int maxPrice) {\n if (features == null || features.size() == 0)\n return items.iterator();\n features = new Vector<String>(features);\n int minSize = Integer.MAX_VALUE;\n ItemFinder bestFinder = this;\n String ... |
"protected void processStyle(ReportItemDesign design, IContent content) {\n HighlightDesign highlight = design.getHighlight();\n if (highlight != null) {\n inlineStyle = createHighlightStyle(design.getHighlight());\n }\n Map<Integer, Expression<String>> expressionStyles = design.getExpressionStyles()... |
"private boolean analyzeNotListOfValues(String column, RecordMetadata m, ExprNode node) {\n RecordColumnMetadata meta = m.getColumn(column);\n switch(meta.getType()) {\n case ColumnType.SYMBOL:\n case ColumnType.STRING:\n case ColumnType.LONG:\n case ColumnType.INT:\n if (me... |
"public CategoricalCounts<T> identity() {\n return new CategoricalCounts<>(comp);\n}\n"
|
"public void handleCloseChat(CloseChatEvent event) {\n closeChat(event.getFriend().getID());\n setConversationPanel(new JPanel());\n}\n"
|
"public void test_TRUE() throws DataException {\n Object result;\n result = ScriptEvalUtil.evalConditionalExpr(\"String_Node_Str\", IConditionalExpression.OP_TRUE, null, null, null);\n assertResult(result, true);\n result = ScriptEvalUtil.evalConditionalExpr(new Boolean(false), IConditionalExpression.OP_TRU... |
"protected void processRequest() throws Exception {\n String crf_oid = request.getParameter(CRF_ID);\n String formURL = null;\n if (currentStudy.getStudyParameterConfig().getParticipantPortal().equals(\"String_Node_Str\")) {\n EnketoCredentials credentials = getCredentials();\n EnketoAPI enketo =... |
"public void testDebugDisabledMessageResponseTime(final Blackhole bh) {\n logger.debug((Message) new SimpleMessage(msg));\n}\n"
|
"public static void initEnv() {\n IntegrationTestUtil.initSystemProperties();\n}\n"
|
"protected void commit() {\n try {\n if (this.refreshing)\n return;\n this.comitting = true;\n WSRoutingRule ws = (WSRoutingRule) (getXObject().getWsObject());\n ws.setDescription(descriptionText.getText());\n ws.setConcept(objectTypeText.getText());\n ws.setServi... |
"public void handleElementButtonClick(String buttonName, int mouseButton) {\n if (buttonName.equals(\"String_Node_Str\")) {\n if (myTile.modeFlag == 1) {\n playClickSound(0.8F);\n } else {\n playClickSound(1.0F, 0.6F);\n }\n myTile.toggleMode();\n }\n}\n"
|
"public void resolve(Game game) {\n StackObject top = null;\n try {\n top = this.peek();\n top.resolve(game);\n game.resetControlAfterSpellResolve(top.getId());\n } finally {\n if (top != null) {\n if (contains(top)) {\n logger.warn(\"String_Node_Str\" + to... |
"private static final boolean atLeastJava8() {\n return JavaSEPlatform.CURRENT.atLeast(JavaSEPlatform.v1_8);\n}\n"
|
"public void testAddToRI2() {\n long expected = TEST_TIME_NOW;\n expected = ISOChronology.getInstanceUTC().years().add(expected, -2);\n expected = ISOChronology.getInstanceUTC().months().add(expected, -4);\n expected = ISOChronology.getInstanceUTC().weeks().add(expected, -6);\n expected = ISOChronology.g... |
"public void onBuildPassed(Project project, PropertyTree config, PropertyTree appConfig, File dir, File output, Build build) {\n boolean analyze = Boolean.parseBoolean(config.getProperty(CIApplication.CONFIGURATION_ANALYZE.getKey(), String.valueOf(CIApplication.CONFIGURATION_ANALYZE.getDefault())));\n if (analyze... |
"public SlackMessageHandle<SlackMessageReply> sendMessage(SlackChannel channel, String message, SlackAttachment attachment, SlackChatConfiguration chatConfiguration) {\n SlackMessageHandleImpl<SlackMessageReply> handle = new SlackMessageHandleImpl<SlackMessageReply>(getNextMessageId());\n Map<String, String> argu... |
"public Collection<? extends IFunction> getFunctions() {\n Collection<? extends IFunction> s = HashSetFactory.make();\n s.addAll(a.getFunctions());\n s.addAll(b.getFunctions());\n return s;\n}\n"
|
"public static void main(String[] args) throws Exception {\n Options options = getOptions();\n CommandLineParser parser = new GnuParser();\n try {\n CommandLine line = parser.parse(options, args);\n if (line.hasOption(\"String_Node_Str\")) {\n usage(options);\n return;\n ... |
"public UriBuilder schemeSpecificPart(String ssp) {\n URI uri = createURI(null, ssp, null);\n userInfo = uri.getRawUserInfo();\n host = uri.getHost();\n port = uri.getPort();\n path.setLength(0);\n path.append(replaceNull(uri.getRawPath()));\n query.setLength(0);\n query.append(replaceNull(uri.g... |
"public static void main(String[] args) {\n try {\n File fParam = new File(args[0]);\n File fOrigin = new File(\"String_Node_Str\");\n File fDest = new File(\"String_Node_Str\");\n TestTransformMain.copyFile(fParam, fOrigin);\n new TransformSound(new PrintlnTransformObserver()).tra... |
"public WriteConcern getWriteConcern(Object clazzOrEntity) {\n if (clazzOrEntity != null) {\n Entity entityAnn = getMapper().getMappedClass(clazzOrEntity).getEntityAnnotation();\n if (entityAnn != null && entityAnn.concern() != null && entityAnn.concern() != \"String_Node_Str\")\n wc = Write... |
"private void runShadowProcess(final Property property, final Node inputNode, final IContext selectContext, final IElementParameter switchParam) {\n ISQLBuilderService service = (ISQLBuilderService) GlobalServiceRegister.getDefault().getService(ISQLBuilderService.class);\n DatabaseConnection connt = service.creat... |
"public static void main(String[] args) {\n int numberOfRuns = 1;\n if (args.length >= 1) {\n numberOfRuns = Integer.valueOf(args[0]);\n }\n int maxASTSize = 10;\n if (args.length >= 2) {\n maxASTSize = Integer.valueOf(args[1]);\n }\n Driver driver = new Driver();\n for (int i = 0;... |
"private void updateFormOrXML() {\n if (bundle != null && bundle.getValues() != null && !bundle.getValues().isEmpty()) {\n if (!bundle.isSimilar()) {\n formSimilarDanger.setVisible(true);\n } else {\n formSimilarDanger.setVisible(false);\n }\n showXml.setVisible(true... |
"public static int compare(CharSequence l, CharSequence r) {\n if (l == r) {\n return 0;\n }\n int ll = l.length();\n int rl = r.length();\n for (int i = 0, n = ll < rl ? ll : rl; i < n; i++) {\n int k = l.charAt(i) - r.charAt(i);\n if (k != 0) {\n return k;\n }\n ... |
"public void init() {\n if (!attached) {\n final JsArrayString jsStrings = (JsArrayString) JsArrayString.createArray();\n for (final String s : cssPath) {\n jsStrings.push(s);\n }\n JavaScriptObject configuration = getConfiguration(jsStrings, readOnly, textArea.getOffsetHeight(... |
"public void run() {\n final boolean killed = this.finalizeJob(waitForExit()) == JobStatus.KILLED;\n final String emailTo = this.jobRepo.findOne(this.jobId).getEmail();\n if (emailTo != null) {\n LOG.info(\"String_Node_Str\" + emailTo);\n if (sendEmail(emailTo, killed)) {\n this.genieN... |
"private boolean bindOnItemClickListener(Method method, OnItemClick onItemClick, Set<View> modifiedViews, Finder finder) {\n boolean invokeWithView = checkInvokeWithView(method, new Class[] { AdapterView.class, View.class, int.class, long.class });\n method.setAccessible(true);\n InjectedOnItemClickListener li... |
"public static void fullConectMapLayers(FeatureMapLayer fromLayer, FeatureMapLayer toLayer) {\n if (toLayer instanceof ConvolutionLayer) {\n for (int i = 0; i < fromLayer.getNumberOfMaps(); i++) {\n for (int j = 0; j < toLayer.getNumberOfMaps(); j++) {\n connect(fromLayer, toLayer, i... |
"public void resolve(Type t, Type declaredType, Type sigType, NumberedString subSig, SootMethod container, ChunkedQueue<SootMethod> targets) {\n if (declaredType instanceof ArrayType)\n declaredType = RefType.v(\"String_Node_Str\");\n if (sigType instanceof ArrayType)\n sigType = RefType.v(\"String_... |
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch(requestCode) {\n case REQUEST_INSTALL:\n if (downloadHandler != null) {\n downloadHandler.cleanUp();\n downloadHandler = null;\n }\n viewResetRequired = true... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.