content stringlengths 40 137k |
|---|
"private void updateSequenceIfRequired(Session session, Value value) {\n if (sequence != null) {\n long current = sequence.getCurrentValue();\n long inc = sequence.getIncrement();\n long now = value.getLong();\n boolean update = false;\n if (inc > 0 && now > current) {\n ... |
"public void run(IProgressMonitor monitor) throws CoreException {\n try {\n IPath targetPath = sourcePath.removeLastSegments(1);\n Project project = getRepositoryContext().getProject();\n IProject fsProject = ResourceModelUtils.getProject(project);\n String completeOldPath = ERepositoryOb... |
"public TransformationDecision requestTranformations(ServiceNode lastServiceNode) {\n TransformationDecision result = new TransformationDecision();\n String query = this.createTransformationQuery(lastServiceNode);\n LOG.info(\"String_Node_Str\" + query);\n try {\n List<SolveInfo> solveInfo = this.eng... |
"public synchronized void setQName(final QName pQName) throws AbsTTException {\n checkNotNull(pQName);\n if (getNode() instanceof INameNode) {\n if (!getQNameOfCurrentNode().equals(pQName)) {\n checkAccessAndCommit();\n INameNode node = (INameNode) mNodeReadRtx.getNode();\n ... |
"public void done(List<LeanchatUser> users, AVException e) {\n if (filterException(e)) {\n final List<String> userIds = new ArrayList<String>();\n for (AVUser user : users) {\n userIds.add(user.getObjectId());\n }\n userIds.removeAll(conversation.getMembers());\n adapter... |
"public void disconnectOldVersions1() throws Exception {\n final SettableFuture<Void> connectedFuture = SettableFuture.create();\n final SettableFuture<Void> disconnectedFuture = SettableFuture.create();\n peer.addEventListener(new AbstractPeerEventListener() {\n public void onPeerConnected(Peer peer, i... |
"public boolean apply(Game game, Ability source) {\n Player targetPlayer = game.getPlayer(source.getFirstTarget());\n Player controllerPlayer = game.getPlayer(source.getControllerId());\n if (targetPlayer != null && controllerPlayer != null) {\n targetPlayer.loseLife(1, game, false);\n controller... |
"public ODocument getConfiguration() {\n return new ODocument().fromJSON(\"String_Node_Str\" + getCommonConfigurationParameters() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + stringArray2Json(ACTION.values()) + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
|
"public void create(String path, boolean ephemeral) {\n int i = path.lastIndexOf('/');\n if (i > 0) {\n String parentPath = path.substring(0, i);\n if (!checkExists(parentPath)) {\n create(parentPath, false);\n }\n }\n if (ephemeral) {\n createEphemeral(path);\n } e... |
"public Locator getDocumentLocator() {\n if (xmlReader != null) {\n return xmlReader.getLocator();\n }\n return null;\n}\n"
|
"private void getFlowToIterateReturns(List<INodeReturn> allReturns) {\n List<? extends IConnection> inMainConns = this.getIncomingConnections();\n String inputRowName = null;\n IConnection inMainConn = null;\n if (inMainConns != null && !inMainConns.isEmpty()) {\n inMainConn = inMainConns.get(0);\n ... |
"public Pair<List<? extends NetworkOffering>, Integer> searchForNetworkOfferings(ListNetworkOfferingsCmd cmd) {\n Boolean isAscending = Boolean.parseBoolean(_configDao.getValue(\"String_Node_Str\"));\n isAscending = (isAscending == null ? Boolean.TRUE : isAscending);\n Filter searchFilter = new Filter(NetworkO... |
"public void execute(CommandSender sender, Command command, String label, String[] args) {\n if (!hasPermission()) {\n sender.sendMessage(PlugMan.getInstance().getMessageFormatter().format(\"String_Node_Str\"));\n return;\n }\n if (args.length < 2) {\n sender.sendMessage(PlugMan.getInstanc... |
"private void updateWhitelistAppIdsLocked() {\n mPowerSaveWhitelistAllAppIds.clear();\n for (int i = 0; i < mPowerSaveWhitelistApps.size(); i++) {\n mPowerSaveWhitelistAppIds.put(mPowerSaveWhitelistApps.valueAt(i), true);\n }\n for (int i = 0; i < mPowerSaveWhitelistUserApps.size(); i++) {\n m... |
"public void dispatchCommand(String command) throws IllegalArgumentException, ProcessExecutionException, InterruptedException {\n String schedulerCommand = this.createCommand(command);\n boolean dispatched = false;\n try {\n log.debug(\"String_Node_Str\" + schedulerCommand);\n output = this.nativ... |
"private void fetchBlogs(Document doc, String url) throws Exception {\n Elements blogs = doc.select(\"String_Node_Str\");\n log.debug(\"String_Node_Str\" + blogs.size());\n for (Element blog : blogs) {\n Element titleElement = blog.select(\"String_Node_Str\").get(0);\n String title = fetchTitle(t... |
"protected void internalMap(final File readsFile, final File archiveIndex, final SAMParserLine parserLine) throws IOException {\n throw new UnsupportedOperationException();\n}\n"
|
"public List<NetworkVO> listNetworksForAccount(long accountId, long zoneId, GuestIpType guestType, Boolean isDefault) {\n List<NetworkVO> accountNetworks = new ArrayList<NetworkVO>();\n List<NetworkVO> zoneNetworks = _networksDao.listByZone(zoneId);\n for (NetworkVO network : zoneNetworks) {\n NetworkOf... |
"public void run() throws PersistenceException {\n try {\n for (String name : names) {\n String path = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();\n path = path + File.separatorChar + projectLabel + File.separatorChar + ERepositoryObjectType.getFolderN... |
"protected void performFiltering(CharSequence text, int keyCode) {\n if (text == null) {\n updateDropDownForFilter(0, true);\n } else {\n mFilter.filter(text, new Filter.FilterListener() {\n public void onFilterComplete(int count) {\n updateDropDownForFilter(count, ... |
"public void load(Language language) throws WikapidiaException {\n try {\n createWorkers();\n int i = 0;\n Iterable<RawPage> rawPages = rawPageDao.get(new DaoFilter().setLanguages(language).setNameSpaces(namespaces).setRedirect(false));\n for (RawPage rawPage : rawPages) {\n qu... |
"public void verifyMethods() throws Exception {\n DummyNodeContext nodeContext = new DummyNodeContext(new Address(\"String_Node_Str\", 5000));\n NodeExtension nodeExtension = nodeContext.getNodeExtension();\n hazelcastInstance = new HazelcastInstanceImpl(randomName(), getConfig(), nodeContext);\n InOrder in... |
"protected void _terminate(TaskListener listener) throws IOException, InterruptedException {\n LOGGER.log(Level.INFO, \"String_Node_Str\", name);\n Computer computer = toComputer();\n if (computer == null) {\n String msg = String.format(\"String_Node_Str\", name);\n LOGGER.log(Level.SEVERE, msg);... |
"public boolean generate(World world, Random rand, int x, int z, double chance) {\n if (GraveStoneConfig.generateSingleGraves && canSpawnStructureAtCoords(world, x, z, chance)) {\n new ComponentGSSingleGrave(rand.nextInt(4), rand, x, z).addComponentParts(world, rand);\n structuresList.add(new ChunkCoor... |
"private void init() {\n if (initialized)\n return;\n setBackgroundResource(R.drawable.wp_banner_background);\n ImageView shield = new ImageView(getContext());\n shield.setImageResource(R.drawable.wp_banner_shild);\n shield.setMaxWidth(9);\n addView(shield, new LinearLayout.LayoutParams(LayoutP... |
"public void setupAppInfo(String[] args, boolean loadTransitiveHull) {\n if (args.length == 0 || \"String_Node_Str\".equals(args[0])) {\n System.err.println(\"String_Node_Str\");\n if (config.getOptions().containsOption(Config.SHOW_HELP)) {\n System.out.println(\"String_Node_Str\");\n ... |
"protected void updateTransformedTypes() {\n super.updateTransformedTypes();\n if (mActions != null) {\n mTransformationHelper.addTransformedView(TransformableView.TRANSFORMING_VIEW_ACTIONS, mActions);\n }\n}\n"
|
"private void saveNamingRelation(NamingRelation relation) throws DataException {\n this.getRdSave().saveNamingRelation(relation);\n}\n"
|
"public List<AbstractCoreItem> getLootItems() {\n double rnd = Math.random();\n if (rnd <= 0.7) {\n switch(getRace()) {\n case CAT_MORPH:\n return Util.newArrayListOfValues(new ListValue<>(AbstractItemType.generateItem(ItemType.INT_INGREDIENT_FELINE_FANCY)));\n case COW... |
"private int findOuterMostChildEdgeInfoIndex(int dimAxisIndex, EdgeInfo edgeInfo) {\n if (dimAxisIndex < 0 || dimAxisIndex >= this.dimAxis.length || edgeInfo == null)\n return -1;\n int endPosition = edgeInfo.firstChild;\n EdgeInfo info = edgeInfo;\n int index;\n for (index = dimAxisIndex + 1; ind... |
"public List<GraphSourceItem> toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException {\n ActionSourceGenerator asGenerator = (ActionSourceGenerator) generator;\n int tmpReg = asGenerator.getTempRegister(localData);\n try {\n return toSourceMerge(localData, ge... |
"private void initializeGlobals(RenderScript RS, ScriptC_foreach_bounds s) {\n Type.Builder typeBuilder = new Type.Builder(RS, Element.I32(RS));\n int X = 5;\n int Y = 7;\n s.set_dimX(X);\n s.set_dimY(Y);\n typeBuilder.setX(X).setY(Y);\n A = Allocation.createTyped(RS, typeBuilder.create());\n s.... |
"public Heap drop(Item item, int cell) {\n if ((Dungeon.isChallenged(Challenges.NO_FOOD) && (item instanceof Food || item instanceof BlandfruitBush.Seed)) || (Dungeon.isChallenged(Challenges.NO_ARMOR) && item instanceof Armor) || (Dungeon.isChallenged(Challenges.NO_HEALING) && item instanceof PotionOfHealing) || (Du... |
"protected void paintChildren(Graphics graphics) {\n IFigure child;\n for (int i = 0; i < this.getChildren().size(); i++) {\n Rectangle clip = graphics.getClip(Rectangle.SINGLETON);\n child = (IFigure) this.getChildren().get(i);\n if (child.isVisible()) {\n Rectangle bounds = child... |
"public void parseInternal_customTaskExecutor_shouldCreateContainerAndClientWithCustomTaskExecutor() throws Exception {\n DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();\n XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(beanFactory);\n reader.loadBeanDefinitions(new Clas... |
"public void testFloatingPointSum_withAttributePath() {\n List<ValueContainer> values = sampleValueContainers(NUMBER);\n addValues(values, DOUBLE);\n double expectation = Sums.sumValueContainer(values, NUMBER).doubleValue();\n Aggregator<Double, ValueContainer, ValueContainer> aggregation = Aggregators.floa... |
"public void announceForAccessibility(CharSequence text) {\n if (AccessibilityManager.getInstance(mContext).isEnabled() && mParent != null && isImportantForAccessibility()) {\n AccessibilityEvent event = AccessibilityEvent.obtain(AccessibilityEvent.TYPE_ANNOUNCEMENT);\n onInitializeAccessibilityEvent(e... |
"public SendersEnum getSenders() {\n Object attributeVal = getAttribute(SENDERS_ATTR_NAME);\n return attributeVal == null ? null : SendersEnum.valueOf(attributeVal.toString());\n}\n"
|
"public static void main(String[] args) {\n CommandLineParser parser = new DefaultParser();\n Options options = getOptions();\n CommandLine cmd;\n CliCommand cliCommand;\n try {\n cliCommand = getCliCommand(args[0]);\n } catch (CliCommandNotFound e) {\n try {\n cmd = parser.pa... |
"public void actionPerformed(ActionEvent e) {\n int i = jcbModels.getSelectedIndex();\n cm = null;\n switch(i) {\n case 0:\n cm = DataCharts.createMinSliceChart();\n break;\n case 1:\n cm = DataCharts.createMultiYSeriesChart();\n break;\n case 2:... |
"public static int setBit(int dword, int bitPosition, int value) {\n if (value == 1) {\n b |= (value << bitPosition);\n } else {\n dword &= ~(1 << bitPosition);\n }\n return dword;\n}\n"
|
"private void setMemberGroups(final CoreSession session, final String memberDN, final Set<String> groups) throws LdapException {\n final Set<String> newGroups = (groups == null) ? new HashSet<>() : new HashSet<>(groups);\n final Set<String> oldgroupDNs = getDNsOfGroupsContainingMember(session, memberDN);\n fin... |
"public IPath getRepositoryPath(IRepositoryNode node) {\n return RepositoryNodeUtilities.getPath(node);\n}\n"
|
"QEntry<T> update(QNode<T> parent, double[] keyOld, double[] keyNew, int maxNodeSize, boolean[] requiresReinsert, int currentDepth, int maxDepth) {\n if (values == null) {\n int pos = calcSubPosition(keyOld);\n QNode<T> sub = subs[pos];\n if (sub == null) {\n return null;\n }\n... |
"private void hashInAccount(UploadItem uploadItem, CheckResponse checkResponse) {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n boolean inFolder = checkResponse.isInFolder();\n InstantProcess process = new InstantProcess(mfTokenFarm, this, uploadItem);\n MFConfiguration.getEr... |
"protected void checkFeatureMoveConflict(Comparison comparison, Diff diff, Iterable<Diff> candidates) {\n final Object changedValue;\n final EStructuralFeature feature;\n if (diff instanceof ReferenceChange) {\n changedValue = ((ReferenceChange) diff).getValue();\n feature = ((ReferenceChange) di... |
"public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final PropertyNsDef other = (PropertyNsDef) obj;\n if (!Objects.equals(this.propName, other.propName)) {\n return false;\n }\n if (!Objec... |
"public void run() {\n boolean isFilesDeleted = deleteFolderAndFiles();\n if (!isFilesDeleted) {\n return;\n }\n try {\n if (isDeleteForever) {\n delsubFolderForever(folder);\n if (LogicalDeleteFileHandle.isStartWithDelFolder(folder.getFullPath().toOSString())) {\n ... |
"public long calculate(String number) {\n if (number == null || number.indexOf(\"String_Node_Str\") == -1) {\n throw new IllegalArgumentException(\"String_Node_Str\" + number);\n }\n String[] splittedNumber = number.split(\"String_Node_Str\");\n double first = Double.parseDouble(splittedNumber[0]);\n... |
"protected <T extends Number & Comparable<Number>> Map<OWLIndividual, SortedSet<T>> getNumericDatatypeMembersImpl(OWLDataProperty datatypeProperty) throws ReasoningMethodUnsupportedException {\n Map<OWLIndividual, SortedSet<OWLLiteral>> mapping = getDatatypeMembersImpl(datatypeProperty);\n Map<OWLIndividual, Sort... |
"public ArrayList<SuggestedWordInfo> getSuggestionsWithSessionId(final WordComposer composer, final String prevWord, final ProximityInfo proximityInfo, final boolean blockOffensiveWords, final int[] additionalFeaturesOptions, final int sessionId, final float[] inOutLanguageWeight) {\n if (!isValidDictionary()) {\n ... |
"public InputStream getPlayerSkinStream(Boolean isCloak, String playerName) {\n if ((skinURLs == null || skinURLs.length <= 0) && (cloakURLs == null || cloakURLs.length <= 0))\n refreshSkinURL();\n InputStream S = null;\n for (String l : isCloak ? cloakURLs : skinURLs) {\n if (l == null || l.equa... |
"public void createWithoutEnrichment() {\n UnitUtil uu = new UnitUtil();\n Map<String, String> config = uu.createTaskConfig();\n config.put(SplunkSinkConnectorConfig.ENRICHMENT_CONF, \"String_Node_Str\");\n SplunkSinkConnectorConfig connectorConfig = new SplunkSinkConnectorConfig(config);\n Assert.assert... |
"public Response execute(Request request) throws IOException {\n StoreCredentials storeCredentials = new StoreCredentials(context);\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(request.getUrl());\n httppost.setHeader(\"String_Node_Str\", \"String_Node_Str\");\n ht... |
"public void setValidator(ValidatorWriter<? super C, ? super W>... validatorWriters) {\n Collections.addAll(writers, validatorWriters);\n}\n"
|
"private void renderEye(Viewport eye, Vector3 eyeOffset) {\n int screenWidth = Gdx.graphics.getWidth();\n int screenHeight = Gdx.graphics.getHeight();\n eye.update(screenWidth, screenHeight);\n Camera camera = eye.getCamera();\n Vector3 eyePosition = camera.position;\n eyePosition.set(VirtualReality.b... |
"public void run() {\n mDockedStackExists = exists;\n updateRecentsIcon();\n}\n"
|
"public void asyncLogContainerWithSince() throws Exception {\n String snippet = \"String_Node_Str\";\n CreateContainerResponse container = dockerClient.createContainerCmd(\"String_Node_Str\").withCmd(\"String_Node_Str\", snippet).exec();\n LOG.info(\"String_Node_Str\", container.toString());\n assertThat(co... |
"private DigiDocException getFatalError(List<DigiDocException> openContainerExceptions) {\n DigiDocException exception = null;\n for (DigiDocException openContainerException : openContainerExceptions) {\n if (openContainerException.getCode() == DigiDocException.ERR_PARSE_XML && openContainerException.getMe... |
"public void run() {\n try {\n session.joinMUC(info.getMucJid(), info.getNickname());\n JingleIQ initIq = session.waitForInitPacket();\n transport.harvestLocalCandidates();\n Map<MediaType, Map<MediaFormat, Byte>> formatAndPTs = JinglePacketParser.getFormatAndDynamicPTs(initIq);\n ... |
"protected void addCaption(String caption) {\n if (caption == null || \"String_Node_Str\".equals(caption)) {\n return;\n }\n IReportContent report = tableContent.getReportContent();\n ILabelContent captionLabel = report.createLabelContent();\n captionLabel.setText(caption);\n captionLabel.getSt... |
"public static void updateNowIfNotUpdatedInAVeryLongTime(final Context context) {\n if (!isLastUpdateAtLeastThisOld(context, VERY_LONG_TIME))\n return;\n UpdateHandler.tryUpdate(context, false);\n}\n"
|
"void setDataCube(String cubeName) {\n try {\n boolean isPreviousDataBindingReference = false;\n if (itemHandle.getDataBindingType() == ReportItemHandle.DATABINDING_TYPE_REPORT_ITEM_REF) {\n isPreviousDataBindingReference = true;\n itemHandle.setDataBindingReference(null);\n ... |
"protected Window.Callback getWindowCallback() {\n return window.getCallback();\n}\n"
|
"public <T> T toObject(String text, Class<T> clazz) throws ReflectiveOperationException {\n if (null == text) {\n return null;\n } else {\n text = text.trim();\n }\n String type = clazz.getCanonicalName();\n if (type.equals(\"String_Node_Str\")) {\n return (T) text;\n } else if (t... |
"public void printLine(String sproduct, double dprice, double dunits) {\n try {\n m_fiscal.printRecItem(sproduct, roundFiscal(dprice * dunits), 0, 0, roundFiscal(dprice), \"String_Node_Str\");\n } catch (JposException e) {\n }\n}\n"
|
"public void initialize(AbstractSession session) throws DescriptorException {\n if (getHistoryPolicy() != null) {\n session.getProject().setHasGenericHistorySupport(true);\n }\n if (isIsolated()) {\n session.getProject().setHasIsolatedClasses(true);\n }\n if (!shouldIsolateObjectsInUnitOfWo... |
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Collection collection = submission.getCollection();\n String actionURL = contextPath + \"String_Node_Str\" + collection.getHandle() + \"String_Node_Str\" + knot.getId() + \"String_Nod... |
"public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n WebViewPool pool = WebViewPool.this;\n context.runOnUiThread(new Runnable() {\n public void run() {\n view.setWebViewClient(null);\n }\n });\n pool.urlToWebview.put(pool.currentLoadingUrl... |
"private boolean isValidXML(String str) {\n try {\n this.historyServiceImpl.parse(new ByteArrayInputStream(str.getBytes(\"String_Node_Str\")));\n } catch (Exception ex) {\n log.error(\"String_Node_Str\" + str + \"String_Node_Str\" + ex.getMessage());\n return false;\n }\n return true;\n... |
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n XPathFragment rootFragment = null;\n if (xmlAnyObjectMapping.isReadOnly()) {\n return false;\n }\n XMLMarsh... |
"private void setNewRange(long startTime, long duration) {\n if (startTime < fTraceStartTime) {\n startTime = fTraceStartTime;\n }\n long endTime = startTime + duration;\n if (endTime > fTraceEndTime) {\n endTime = fTraceEndTime;\n if ((endTime - duration) > fTraceStartTime) {\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_new_edit_post);\n final ActionBar actionBar = getSupportActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n Bundle extras = getIntent().getExtras();\n String action = ... |
"public void testLocalTime() throws ParseException {\n Date dsum = df.parse(\"String_Node_Str\");\n Date dwin = df.parse(\"String_Node_Str\");\n TimeZone tzRome = TimeZone.getTimeZone(\"String_Node_Str\");\n if (tzRome.getOffset(0) == 0) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n ... |
"public boolean applies(UUID sourceId, Ability source, Game game) {\n Card card = game.getCard(sourceId);\n if (card != null && game.getState().getZone(card.getId()) == Zone.EXILED) {\n Card sourceCard = game.getCard(source.getSourceId());\n UUID exileId = (UUID) game.getState().getValue(new StringB... |
"public void mapCertificate_RegistryException() throws Exception {\n mock.checking(new Expectations() {\n {\n one(wrappedUr).mapCertificate(certs);\n will(throwException(new com.ibm.ws.security.registry.RegistryException(\"String_Node_Str\")));\n }\n });\n X509Certificate[] ... |
"public static int calculateVersion(String version) {\n if (null == version) {\n return UNKNOWN_HAZELCAST_VERSION;\n }\n Matcher matcher = VERSION_PATTERN.matcher(version);\n if (matcher.matches()) {\n try {\n int calculatedVersion = MAJOR_VERSION_MULTIPLIER * Integer.parseInt(match... |
"public Page createPage() {\n ConfigurationModalPage window = new ConfigurationModalPage(Configuration.this, createConfigWin, new KeyValueTO(), true);\n return window;\n}\n"
|
"public void doProcessOutput(BasicServlet servlet, HttpServletRequest req, HttpServletResponse res, PrintWriter outExt, ScreenModel screen) throws ServletException, IOException {\n PrintWriter out = outExt;\n if (screen == null) {\n if (out != null)\n out.println(\"String_Node_Str\");\n r... |
"public static <T> Stream<ObjIntPair<T>> zipWithIndex(Stream<T> stream) {\n Spliterator<T> split1 = stream.spliterator();\n Iterator<T> it1 = Spliterators.iterator(split1);\n Iterator<ObjIntPair<T>> it = new Iterator<ObjIntPair<T>>() {\n private int index;\n\n public boolean hasNext() {\n ... |
"public void clearFocus() {\n if (DBG) {\n System.out.println(this + \"String_Node_Str\");\n }\n if ((mPrivateFlags & PFLAG_FOCUSED) != 0) {\n mPrivateFlags &= ~PFLAG_FOCUSED;\n if (mParent != null) {\n mParent.clearChildFocus(this);\n }\n onFocusChanged(false, 0, ... |
"public void changeFlowletStreamConnection(HttpRequest request, HttpResponder responder, String appId, String flowId, String flowletId, String streamId) throws IOException {\n programLifecycleHttpHandler.changeFlowletStreamConnection(RESTMigrationUtils.rewriteV2RequestToV3(request), responder, Constants.DEFAULT_NAME... |
"public void invoke(String aKey, Object anOn, String aWith) {\n try {\n if (twoArgSetter) {\n method.invoke(anOn, aKey, converter.convert(aWith));\n } else {\n method.invoke(anOn, converter.convert(aWith));\n }\n } catch (ParsingException anExc) {\n throw anExc;\n... |
"private Concept _specialIfAnalysis(Concept constant) throws IllegalActionException {\n MonotonicityCounterexamples toCheck = _nodeToCounterexamples.get(_ifNode.jjtGetChild(2));\n if (toCheck == null) {\n toCheck = new MonotonicityCounterexamples();\n }\n ConceptGraph inputLattice = _domainOntology.g... |
"public org.hl7.fhir.dstu2.model.Age convertAge(org.hl7.fhir.dstu3.model.Age src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Age tgt = new org.hl7.fhir.dstu2.model.Age();\n copyElement(src, tgt);\n tgt.setValue(src.getValue());\n tgt.setCom... |
"List<InjectorShell> build(Initializer initializer, ProcessedBindingData bindingData, Stopwatch stopwatch, Errors errors) {\n checkState(stage != null, \"String_Node_Str\");\n checkState(privateElements == null || parent != null, \"String_Node_Str\");\n checkState(state != null, \"String_Node_Str\");\n if (... |
"public static List<String> getTriplesFromFile(String filename) {\n List<String> lines = new ArrayList<>();\n try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(filename), \"String_Node_Str\"))) {\n String line = null;\n while ((line = in.readLine()) != null) {\n ... |
"public Iterator<DRow> getRowsColumnSlice(Tenant tenant, String storeName, Collection<String> rowKeys, String startCol, String endCol) {\n checkState();\n String keyspace = storeToCQLName(tenant.getKeyspace());\n String tableName = storeToCQLName(storeName);\n return new CQLRowIterator(executeQuery(Query.SE... |
"public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n switch(ID) {\n case ARMOUR_ID:\n if (ItemHelper.isPlayerHoldingItem(IModularItem.class, player)) {\n return new ArmourContainer(player.getHeldItem(), player.inventory);\n ... |
"public void readPortableData(EntityPlayer player, NBTTagCompound tag) {\n if (!canPlayerAccess(player)) {\n return;\n }\n if (augmentRedstoneControl) {\n rsMode = RedstoneControlHelper.getControlFromNBT(tag);\n }\n}\n"
|
"public void should_authenticate_as_SYSTEM() throws IOException, InterruptedException {\n StaplerRequest request = mock(StaplerRequest.class);\n when(request.getParameter(\"String_Node_Str\")).thenReturn(\"String_Node_Str\");\n kickOffBuildTrigger(request, project);\n Assert.assertEquals(ACL.SYSTEM, Securit... |
"public boolean apply(Game game, Ability source) {\n int amount = source.getManaCostsToPay().getX();\n if (amount > 0) {\n Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));\n if (permanent != null) {\n permanent.damage(damage, source.getSourceId(), game, ... |
"public void createPrimaryKeyExpression(AbstractSession session) {\n Expression expression = null;\n Expression builder = new ExpressionBuilder();\n Expression subExp1;\n Expression subExp2;\n Expression subExpression;\n List primaryKeyFields = this.descriptor.getPrimaryKeyFields();\n if (null != p... |
"void processConstructor(ConstructorDeclaration x) {\n JMethod ctor = (JMethod) typeMap.get(x.binding);\n try {\n SourceInfo info = ctor.body.getSourceInfo();\n currentMethod = ctor;\n currentMethodScope = x.scope;\n JMethodCall call = null;\n ExplicitConstructorCall ctorCall = ... |
"public void write(JavaWriter javaWriter) throws IOException {\n javaWriter.beginControlFlow(\"String_Node_Str\");\n for (TableEndpointDefinition tableEndpointDefinition : contentProviderDefinition.endpointDefinitions) {\n for (ContentUriDefinition uriDefinition : tableEndpointDefinition.contentUriDefiniti... |
"protected void readSerial(final SerialUnmarshaller serialUnmarshaller, final SerializableClass sc, final Object subject) throws IOException, ClassNotFoundException {\n if ((flags & SC_WRITE_METHOD) != 0) {\n if (sc.hasReadObject()) {\n doReadObject(serialUnmarshaller, sc, subject);\n } else... |
"private StyleHandle getStyleHandle() {\n IStructuredSelection selection = InsertInLayoutUtil.editPart2Model(getSelection());\n if (!selection.isEmpty()) {\n Object firstElement = DNDUtil.unwrapToModel(selection.getFirstElement());\n if (firstElement instanceof DesignElementHandle) {\n if... |
"boolean syncPartitionRuntimeState() {\n if (!partitionStateManager.isInitialized()) {\n return false;\n }\n if (!node.isMaster()) {\n return false;\n }\n PartitionRuntimeState partitionState = createPartitionStateInternal();\n if (partitionState == null) {\n return false;\n }\... |
"public void reminderPartner() {\n int i = 0;\n List<Partner> partnerList = (List<Partner>) Partner.all().filter(\"String_Node_Str\", batch.getAccountingBatch().getCompany()).fetch();\n for (Partner partner : partnerList) {\n try {\n boolean remindedOk = reminderService.reminderGenerate(Partn... |
"public static String normalizeDirectory(final String basedir, final String filepath) {\n final String pathname = FileUtils.normalize(stripFragment(filepath));\n if (basedir == null || basedir.length() == 0) {\n return pathname;\n }\n final String normilizedPath = new File(basedir, pathname).getPath(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.