content
stringlengths
40
137k
"public static final void main(String[] args0) {\n final List<String> args = new ArrayList<>(Arrays.asList(args0));\n try {\n final Capsule capsule = myCapsule(args);\n if (capsule.getClass().equals(Capsule.class) && capsule.wrapper && !capsule.isEmptyCapsule()) {\n runMain(capsule.jarFil...
"public void testIDPSelection() throws Exception {\n RequestDispatcher dispatcher = createMock(RequestDispatcher.class);\n entryPoint.setIdpSelectionPath(\"String_Node_Str\");\n expect(request.getParameter(SAMLEntryPoint.LOGIN_PARAMETER)).andReturn(\"String_Node_Str\");\n expect(request.getRequestDispatcher...
"public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n if (scrollListener != null) {\n scrollListener.onScroll(view, firstVisibleItem, visibleItemCount, totalItemCount);\n }\n if (getAdapter() == null || getAdapter().getCount() == 0)\n return;\...
"public void onSaveInstanceState(Bundle outState) {\n outState.putString(REDIRECT_PAGE_STATE_ITEM, mRedirectPage);\n outState.putBoolean(FLOW_FINISHED, mFlowFinished);\n}\n"
"public void start(BundleContext context) throws Exception {\n super.start(context);\n plugin = this;\n}\n"
"public void loginTrustedWithCertificateChainPasses() throws Exception {\n final String methodName = \"String_Node_Str\";\n try {\n mockery.checking(new Expectations() {\n {\n one(userRegistry).mapCertificate(certificateChain);\n will(returnValue(CERTIFICATE_USER_NA...
"public void testRefreshPoolsSortsStackDerivedPools() {\n List<Subscription> subscriptions = Util.newList();\n List<Pool> pools = Util.newList();\n Pool p = TestUtil.createPool(TestUtil.createProduct());\n p.setLinkedStackId(\"String_Node_Str\");\n pools.add(p);\n when(mockSubAdapter.getSubscriptions(...
"public void testList() {\n long backlogId = 1l;\n List<UserStory> userStoriesMock = Arrays.asList(PojoHelper.userStory(\"String_Node_Str\"), PojoHelper.userStory(\"String_Node_Str\"), PojoHelper.userStory(\"String_Node_Str\"));\n expect(userStoryDaoMock.getStories(backlogId)).andReturn(userStoriesMock);\n ...
"public static ArtifactEvent getPersistEvent(RemotePersistEvent1 remEvent) {\n ArtifactEvent event = new ArtifactEvent(remEvent.getBranchGuid());\n event.setNetworkSender(getNetworkSender(remEvent.getNetworkSender()));\n event.setTransactionId(remEvent.getTransactionId());\n for (RemoteBasicGuidArtifact1 re...
"boolean isPrototype(StringBuffer source) {\n String s = source.toString();\n if (s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\") || s.matches(\"String_Node_Str\...
"public static EObject resolveObject(EObject proxy) {\n if (proxy != null && proxy.eIsProxy()) {\n ResourceSet resourceSet = ProxyRepositoryFactory.getInstance().getRepositoryFactoryFromProvider().getResourceManager().resourceSet;\n proxy = (EObject) EcoreUtil.resolve(proxy, resourceSet);\n }\n r...
"public boolean isCacheDisableSelective() {\n return getCaching() == null || getCaching().equals(\"String_Node_Str\");\n}\n"
"public void run() {\n monitorWrap = new EventLoopProgressMonitor(monitor);\n monitorWrap.beginTask(\"String_Node_Str\", IProgressMonitor.UNKNOWN);\n breakInfiniteLoop = false;\n while (true) {\n if (monitorWrap.isCanceled() || breakInfiniteLoop) {\n break;\n }\n }\n if (monit...
"private void paused() {\n pauseMenu.getGraphics().drawImage(pauseBg, 0, 0, null);\n menu = new ListMenu(list, 80, 300, 370, 40, new Runnable() {\n public void run() {\n gameContinue();\n }\n });\n pauseMenu.add(menu);\n menu.display();\n}\n"
"public void checkManager(long userId, long managedUserId) throws SecurityException {\n checkManager(userId);\n if (!getUserPermissions(userId).contains(managedUserId)) {\n throw new SecurityException(\"String_Node_Str\");\n }\n}\n"
"public void removeSelectedBuddy() {\n removeBuddy(getSelectedFriend());\n}\n"
"private void setPathEntity(Location location) {\n LivingEntity ride = getRide();\n if (ride instanceof CraftCreature) {\n CraftCreature livingEntity = (CraftCreature) ride;\n if (hasNewAI()) {\n if (ride.getLocation().distanceSquared(location) > 64.0D) {\n Vector distance ...
"public boolean canSmelt() {\n ItemStack slot0 = getStackInSlot(0);\n if (slot0.isEmpty()) {\n return false;\n } else {\n ItemStack output = SteamingRegistry.getSteamingResult(slot0);\n if (output == null) {\n return false;\n }\n ItemStack slot2 = getStackInSlot(2)...
"private Collection<InterfaceDefinition> getInterfaces(final NetworkConfig networkConfig) throws UnknownHostException {\n final Map<String, String> addressDomainMap;\n final TcpIpConfig tcpIpConfig = networkConfig.getJoin().getTcpIpConfig();\n if (tcpIpConfig.isEnabled()) {\n addressDomainMap = new Link...
"public void translate(Stack<GraphTargetItem> stack, List<GraphTargetItem> output, java.util.HashMap<Integer, String> regNames, HashMap<String, GraphTargetItem> variables, HashMap<String, GraphTargetItem> functions) {\n GraphTargetItem target = stack.pop();\n GraphTargetItem lockCenter = stack.pop();\n GraphTa...
"protected void updateSharesAndQuote() {\n if (hasSource())\n return;\n if (type == PortfolioTransaction.Type.SELL || type == PortfolioTransaction.Type.DELIVERY_OUTBOUND) {\n boolean hasPosition = false;\n if (portfolio != null) {\n CurrencyConverter converter = new CurrencyConvert...
"public void createWithReject() {\n Assume.assumeTrue(ActivitiDetector.isActivitiEnabledForUsers());\n UserTO userTO = getUniqueSampleTO(\"String_Node_Str\");\n MembershipTO membershipTO = new MembershipTO();\n membershipTO.setRoleId(9L);\n userTO.addMembership(membershipTO);\n userTO = createUser(use...
"protected Class loadClass(String name, boolean resolve) throws ClassFormatError, ClassNotFoundException {\n name = name.intern();\n synchronized (name) {\n Class c = findLoadedClass(name);\n if (c == null)\n c = loadClassByDelegation(name);\n if (c == null)\n c = findCl...
"public static void registerName(String classDesc, String methodName, String methodDesc, String name) {\n if (\"String_Node_Str\".equals(name)) {\n return;\n }\n Map<String, String[]> methodsToParameters = classesToMethodsToParameters.get(classDesc);\n if (methodsToParameters == null) {\n meth...
"public static void setItemInHand(Player player, HumanNPC npc, String material) {\n Material mat = StringUtils.parseMaterial(material);\n if (mat == null) {\n player.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }\n if (mat != Material.AIR && !player.getInventory().contains(mat...
"public void renderPlot(IPrimitiveRenderer ipr, Plot p) throws ChartException {\n if (!p.isVisible()) {\n return;\n }\n final boolean bFirstInSequence = (iSeriesIndex == 0);\n final boolean bLastInSequence = (iSeriesIndex == iSeriesCount - 1);\n final PlotWithAxes pwa = (PlotWithAxes) getComputati...
"public net.minecraft.server.Chunk getHandle() {\n net.minecraft.server.Chunk c = weakChunk.get();\n if (c == null) {\n c = worldServer.c(x, z);\n weakChunk = new WeakReference<net.minecraft.server.Chunk>(c);\n }\n return c;\n}\n"
"public void selectionChanged(IWorkbenchPart part, ISelection selection) {\n if (SessionHandleAdapter.getInstance().getReportDesignHandle() != null) {\n if (part != null && !ReportPlugin.getDefault().containIgnoreViewID(part.getSite().getId())) {\n handleSelectionChanged(new StructuredSelection());...
"public void setOfStrings() {\n SetSchema setSchema = deserialize(\"String_Node_Str\", SetSchema.class);\n Set<String> stringSet = setSchema.strings();\n assertEquals(3, stringSet.size());\n assertTrue(stringSet.contains(\"String_Node_Str\"));\n assertTrue(stringSet.contains(\"String_Node_Str\"));\n a...
"private void pasteValue(CellBuffer buffer, NCell destCell, boolean pasteFormula, int rowOffset, int columnOffset, boolean transpose, int rowOrigin, int columnOrigin) {\n if (pasteFormula) {\n String formula = buffer.getFormula();\n if (formula != null) {\n FormulaEngine engine = getFormulaE...
"private void grantUriPermissionLocked(int callingUid, String targetPkg, Uri uri, int modeFlags, HistoryRecord activity) {\n modeFlags &= (Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n if (modeFlags == 0) {\n return;\n }\n final IPackageManager pm = ActivityThread...
"public File loadFile() throws IOException {\n return topFS.loadFile(fullPath);\n}\n"
"public static String[] stringToArray(final String data, final String delim) {\n if (data == null) {\n return new String[0];\n }\n return tokens;\n}\n"
"private double calculateAmount(Reward reward) {\n LoggerUtil.getInstance().debug(\"String_Node_Str\" + reward.getCoin());\n LoggerUtil.getInstance().debug(\"String_Node_Str\" + reward.getGain());\n double amount = reward.getCoin() * reward.getGain();\n LoggerUtil.getInstance().debug(\"String_Node_Str\" + a...
"protected void performSaveAs(IProgressMonitor progressMonitor) {\n Shell shell = getSite().getShell();\n final IEditorInput input = getEditorInput();\n IDocumentProvider provider = getDocumentProvider();\n IEditorInput newInput;\n if (input instanceof IURIEditorInput && !(input instanceof IFileEditorInp...
"public void createCatalog(ClusterName targetCluster, CatalogMetadata catalogMetadata) throws UnsupportedException, ExecutionException {\n session = sessions.get(targetCluster.getName());\n String catalogName = catalogMetadata.getName().getQualifiedName();\n Map<Selector, Selector> catalogOptions = catalogMeta...
"private void fillChengWeights() {\n for (Bookmark data : trainList) {\n int user = data.getUserID();\n int resource = data.getResourceID();\n List<Integer> tags = data.getTags();\n Map<Integer, Double> tagUserWeights = null;\n if (user >= userTagWeights.size()) {\n tagU...
"public static String readPassword(final CommandSession session, final String pwdPrintStr) throws Exception {\n session.getConsole().println(pwdPrintStr);\n try (BufferedReader bReader = new BufferedReader(new InputStreamReader(session.getKeyboard(), StandardCharsets.UTF_8))) {\n return bReader.readLine();...
"public Receiver newReceiver() {\n ODReceiver rcvr = new ODReceiver();\n rcvr.setCompletionTime(_completionTime);\n System.out.println(\"String_Node_Str\" + _completionTime);\n return rcvr;\n}\n"
"public void onDraw(Canvas canvas) {\n if (m_hasImage && null == m_image) {\n return;\n }\n float verticalPosition = drawBase(canvas);\n verticalPosition = drawBitmap(canvas, verticalPosition);\n if (null != m_item.m_desLines && 0 != m_item.m_desLines.length && null != m_item.m_desLines[0]) {\n ...
"public void testExtractDisplayId12() {\n String extractedDisplayId = extractDisplayId(uri8);\n assertNull(extractedDisplayId);\n}\n"
"public void execute() {\n propagateInput();\n if (!oldMetaDataList.isEmpty() && !newMetaDataList.isEmpty() && !oldMetaDataList.get(0).sameMetadataAs(newMetaDataList.get(0))) {\n node.setPropertyValue(EParameterName.SCHEMA_TYPE.getName(), EmfComponent.BUILTIN);\n }\n metadataOutputChanges.clear();\n ...
"private static void tryExtractDiskImage(Object rspecSliverObject, Resource omnSliver) throws MissingRspecElementException {\n if (rspecSliverObject instanceof JAXBElement) {\n if (((JAXBElement<?>) rspecSliverObject).getDeclaredType().equals(DiskImageContents.class)) {\n DiskImageContents diskImag...
"private void triggerAfterHostChildAdded(Component child) {\n List<ShadowElement> shadowRoots = getShadowRoots();\n if (!shadowRoots.isEmpty()) {\n try {\n initIndexCacheMap();\n final int indexOf = getChildren().indexOf(child);\n for (ShadowElement se : new LinkedList<Shad...
"PathInfo<T> get(String path) {\n char[] cs = path.toLowerCase().toCharArray();\n PathNode<T> wild = null;\n PathNode<T> node = this;\n int i = 0;\n for (; i < cs.length; i++) {\n if (node.isStar) {\n wild = node;\n }\n char c = cs[i];\n if (null == node.chars)\n ...
"public Sink createInstance() {\n return new Panels(images);\n}\n"
"public void releaseCacheManager(URI uri, ClassLoader classLoader) {\n final URI managerURI = getManagerUri(uri);\n final ClassLoader managerClassLoader = getManagerClassLoader(classLoader);\n ConcurrentMap<URI, CacheManager> cacheManagersByURI = cacheManagers.get(managerClassLoader);\n if (cacheManagersByU...
"private String getContents(IClassFile cf) {\n String source = null;\n if (cf != null) {\n try {\n IBuffer buffer = cf.getBuffer();\n if (buffer != null) {\n source = buffer.getContents();\n }\n if (source == null) {\n source = disas...
"public static void main(String[] args) throws FileNotFoundException, MalformedURLException {\n int i = 0;\n String doc = null;\n String jar = null;\n boolean tangTests = false;\n while (i < args.length) {\n if (args[i].equals(\"String_Node_Str\")) {\n i++;\n doc = args[i];\n...
"public void sendChunks(int viewDistance) {\n int centX = ((int) Math.floor(loc.getX())) >> 4;\n int centZ = ((int) Math.floor(loc.getZ())) >> 4;\n PacketPlayOutMapChunkBulk bulk = new PacketPlayOutMapChunkBulk();\n int length = 0;\n for (int x = (centX - viewDistance / 2); x <= (centX + viewDistance / 2...
"private void createLicenseContentSection(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.marginWidth = 0;\n layout.marginHeight = 0;\n composite.setLayout(layout);\n GridData gd = new GridData(GridData.FILL_BOTH);\n comp...
"public boolean postfire() throws IllegalActionException {\n if (!((((CompositeActor) getContainer()).inputPortList()).isEmpty()) && _getActiveActorsCount() != 0) {\n System.out.println(\"String_Node_Str\" + _notDone);\n return _notDone;\n } else {\n return false;\n }\n}\n"
"public void appendExtensionSourceCode_A$StringBuilder$String_StringIsNull() throws Exception {\n StringBuilder buf = new StringBuilder();\n String code = null;\n DefaultGeneratorUtil.appendExtensionSourceCode(buf, code);\n}\n"
"public IContentProposal[] getProposals(String contents, int position) {\n List<IComponent> relatedComponent = TalendEditorPaletteFactory.getRelatedComponents(componentsFactory, contents);\n if (componentAssistant != null) {\n relatedComponent = componentAssistant.filterComponents(relatedComponent);\n }...
"public String getClassName() {\n if (isInvisible || isTrap) {\n return \"String_Node_Str\";\n } else {\n return method.getDeclaringClass().toString();\n }\n}\n"
"private void addVariableComponent(VariableComponent variableComponent) throws SBOLValidationException {\n variableComponent.setSBOLDocument(this.getSBOLDocument());\n variableComponent.setCombinatorialDerivation(this);\n for (URI cdURI : variableComponent.getVariantDerivationURIs()) {\n CombinatorialDe...
"public Collection<Column> columnSlice(Key from, Key to) {\n NavigableMap<OurKey, IndexColumn> resultMap = columns;\n if (from != null) {\n OurKey fromKey = new OurKey(from.getKey(), new byte[0]);\n resultMap = columns.tailMap(fromKey, from.isInclusive());\n }\n if (to != null) {\n OurK...
"public void handle(MessageContext context, IHandlerChain chain) {\n QueueingConsumer currentConsumer = (QueueingConsumer) context.getOtherParams().get(\"String_Node_Str\");\n try {\n while (!stop) {\n try {\n QueueingConsumer.Delivery delivery = currentConsumer.nextDelivery();\n ...
"private GraphTargetItem classTraits(int packageInternalNs, List<String> importedClasses, int privateNs, boolean isDynamic, boolean isFinal, List<Integer> openedNamespaces, String packageName, int namespace, boolean isInterface, String nameStr, GraphTargetItem extendsStr, List<GraphTargetItem> implementsStr, List<Assig...
"protected String exec(AppCommandParser parser, Session session, Output out) throws ShellException, RemoteException {\n assertCurrentIsNode(session);\n boolean createNode = parser.options().containsKey(\"String_Node_Str\");\n boolean suppliedNode = parser.options().containsKey(\"String_Node_Str\");\n Node n...
"public void testGetTeams() throws InterruptedException {\n try {\n Thread.sleep(1500);\n handler.getTeams(SUMMONER_ID_1);\n handler.getTeams(TEAM_ID);\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n System.out.println(ex.getMessage());\n }\n}\n...
"public void add() {\n count.incrementAndGet();\n rateWindow.incrementForTimestamp(timer.now());\n}\n"
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getTargetId().equals(this.getSourceId())) {\n Permanent permanent = game.getPermanent(event.getTargetId());\n if (permanent != null && permanent.isCreature()) {\n NumberOfTimesPermanentTargetedATurnWatcher watcher = (Numb...
"public void limitCluster(final String clusterName, final String nodeGroupName, final int activeComputeNodeNum) {\n try {\n if (activeComputeNodeNum < 0) {\n System.out.println(\"String_Node_Str\" + activeComputeNodeNum);\n return;\n }\n ClusterRead cluster = restClient.get...
"private boolean canSmelt() {\n return worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1 ? myTank.getFluidAmount() > 9 : worldObj.getBlockMetadata(xCoord, yCoord, zCoord) > 0 && hasPrimary() ? getPrimaryTileEntity().canSmelt() : false;\n}\n"
"public static DispoItemData jsonObjToDispoItem(JSONObject jsonObject) {\n DispoItemData dispoItem = new DispoItemData();\n try {\n if (jsonObject.has(\"String_Node_Str\")) {\n dispoItem.setName(jsonObject.getString(\"String_Node_Str\"));\n }\n if (jsonObject.has(\"String_Node_Str\...
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n final Context context = getActivity().getApplicationContext();\n typeSpinner.setSelection(commandAdapter.getPosition(MissionItemType.WAYPOINT));\n final Waypoint item = (Waypoint) this.itemR...
"private void paintOverlay(Graphics2D g2) {\n if (provisionalGUITile != null) {\n if (hexMap.isTilePainted(provisionalGUITile.getTileId())) {\n provisionalGUITile.paintTile(g2, center.x, center.y);\n }\n } else {\n if (hexMap.isTilePainted(currentGUITile.getTiled())) {\n ...
"public void displayData(SessionDetailModel data, SessionDetailQueryEnum query) {\n switch(query) {\n case SESSIONS:\n displaySessionData(data);\n displayTrackColor(data);\n break;\n case FEEDBACK:\n updateFeedbackButton(data);\n break;\n ca...
"private static Size parseSize(String sizeWithUnits) throws GssFunctionException {\n int unitIndex = CharMatcher.JAVA_LETTER.indexIn(sizeWithUnits);\n String size = unitIndex > 0 ? sizeWithUnits.substring(0, unitIndex) : sizeWithUnits;\n String units = unitIndex > 0 ? sizeWithUnits.substring(unitIndex) : CssNu...
"public RemoteServiceCalled convertFromSObject(SRemoteServiceCalled input, RemoteServiceCalled result, DatabaseSession session) throws BimserverDatabaseException {\n if (input == null) {\n return null;\n }\n result.setName(input.getName());\n result.setEnabled(input.getEnabled());\n result.setDesc...
"public boolean updateFaceLines(int[] faceIdxs, int offset, int len, FeatureIndexArray features) {\n int nFaces = len;\n int nFeatures = features.numFeatures();\n PolygonalMesh mesh = getMesh();\n boolean modified = false;\n if (nFeatures > 0) {\n for (int i = 0; i < nFaces; ++i) {\n if...
"private static final void run(final String workflowPathname, final String designPathname, final String destPathname, final String jobDescription, final String jobEnvironment, final boolean uploadOnly, final long millisSinceEpoch) {\n checkNotNull(workflowPathname, \"String_Node_Str\");\n checkNotNull(designPathn...
"public void hangupURLShouldBeReturnedWhenThereAreNoMessagesInOutbox() {\n ivrContext.callState(CallState.ALL_TREES_COMPLETED);\n String patientId = \"String_Node_Str\";\n tamaIVRContextForTest.patientId(patientId);\n when(voiceOutboxService.getNumberPendingMessages(patientId)).thenReturn(0);\n assertEqu...
"public void setEvidence(Assignment assignment) {\n ((HashMapAssignment) assignment).entrySet().stream().forEach(entry -> {\n try {\n this.setVarEvidence(entry.getKey(), entry.getValue().doubleValue());\n } catch (ExceptionHugin exceptionHugin) {\n exceptionHugin.printStackTrace()...
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlAnyCollectionMapping.isReadOnly()) {\n return false;\n }\n CoreContainerPolicy cp = xmlAnyCollectionMapping.getContainerPolicy();\...
"public synchronized Count getMatchCount(final NewsItem article, final int numTokens, final Hashtable matchCounts) {\n setupAll();\n return super.getMatchCount(article, numTokens, matchCounts);\n}\n"
"public boolean moveItem(EntityRef fromInventory, EntityRef instigator, int slotFrom, EntityRef toInventory, int slotTo, int count) {\n Collection<EntityRef> clientTempEntities = new HashSet<>();\n if (moveItemAmountFillClientTempEntities(fromInventory, instigator, slotFrom, toInventory, slotTo, count, clientTemp...
"private void fillBetweenPoints(Level level, Point from, Point to, int floor) {\n if (from.y == to.y || from.x == to.x) {\n Painter.fill(level, Math.min(from.x, to.x), Math.min(from.y, to.y), spaceBetween(from.x, to.x) + 2, spaceBetween(from.y, to.y) + 2, floor);\n return;\n }\n if (corners == nu...
"public void rhoDRDownTest3() throws ParseException, LearningProblemUnsupportedException {\n AbstractReasonerComponent reasoner = TestOntologies.getTestOntology(TestOntology.KRK_ZERO_ONE);\n baseURI = reasoner.getBaseURI();\n ComponentManager cm = ComponentManager.getInstance();\n AbstractLearningProblem lp...
"private void handleIncomingData(LttngEvent e) {\n long eventTime = e.getTimestamp().getValue();\n ITmfTrace inTrace = e.getParentTrace();\n LttngTraceState traceModel = traceToTraceStateModel.get(inTrace);\n updateSynEvent(e);\n if (eventTime >= dispatchTime && eventIndex >= dispatchIndex) {\n sy...
"public void handleRequest(RequestPacket requestPacket, Channel channel) {\n logger.info(\"String_Node_Str\", requestPacket, channel);\n final TBase<?, ?> request = SerializationUtils.deserialize(requestPacket.getPayload(), deserializerFactory, null);\n TBase response;\n if (request == null) {\n TRes...
"private void _checkupEntityFieldsWithDatabase(NutEntity<?> en) {\n Connection conn = null;\n try {\n conn = Trans.getConnectionAuto(datasource);\n expert.setupEntityField(conn, en);\n } catch (Exception e) {\n if (log.isDebugEnabled())\n log.debugf(\"String_Node_Str\", en.getTy...
"public void onPlayerBlockPlace(final HangingPlaceEvent e) {\n if (DEBUG) {\n plugin.getLogger().info(e.getEventName());\n plugin.getLogger().info(\"String_Node_Str\" + e.getBlock().getType());\n plugin.getLogger().info(\"String_Node_Str\" + e.getEntity().getType());\n }\n if (Settings.all...
"public void createDocument() {\n final DocumentCreateResult<BaseDocument> doc = db.collection(COLLECTION_NAME).createDocument(new BaseDocument(), null).execute();\n assertThat(doc, is(notNullValue()));\n assertThat(doc.getId(), is(notNullValue()));\n assertThat(doc.getKey(), is(notNullValue()));\n asser...
"public StepResult execute(final StepContext context, final StepStatus status) {\n final Data inData = context.getInputData(this.inputFormat);\n final Data outData = context.getOutputData(DataFormats.FASTQC_REPORT_HTML, inData);\n final DataFile inFile;\n if (inData.getFormat().getMaxFilesCount() > 1) {\n ...
"public void keyEvent(KeyEvent event, EntityRef entity) {\n if (focus != null) {\n focus.onKeyEvent(event);\n }\n if (event.isDown() && !event.isConsumed() && event.getKey() == Keyboard.Key.ESCAPE) {\n if (!screens.isEmpty() && screens.peek().isEscapeToCloseAllowed()) {\n popScreen();\...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_add_stop, container, false);\n Bundle args = getArguments();\n if (args != null && args.containsKey(\"String_Node_Str\")) {\n atw = (ArrivalTimeWidget...
"public void before() throws Exception {\n cConf.set(Constants.Dataset.Manager.ADDRESS, \"String_Node_Str\");\n cConf.setBoolean(Constants.Dangerous.UNRECOVERABLE_RESET, true);\n Configuration txConf = HBaseConfiguration.create();\n CConfigurationUtil.copyTxProperties(cConf, txConf);\n Impersonator imper...
"public void startRequest(MRCRequest rq) {\n try {\n final getxattrRequest rqArgs = (getxattrRequest) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n validateContext(rq);\n Path p = new ...
"public String toString() {\n StringBuffer b = new StringBuffer();\n if (PrecedenceTest.needsBrackets(getOpBox(), this))\n b.append(\"String_Node_Str\");\n b.append(getOpBox().getValue().toString());\n if (PrecedenceTest.needsBrackets(getOpBox(), this))\n b.append(\"String_Node_Str\");\n b....
"boolean isChecksumValid() {\n long fileChecksum = readBEIntFrom(4, 0);\n System.out.println(fileChecksum);\n int count = mapContent.length - 8;\n int currentChecksum = 0;\n for (int i = 8; i < count; i += 4) {\n long currentInt = readBytesFrom(4, i);\n currentChecksum = (int) ((currentChec...
"protected final void checkForHits(final GL2 gl) {\n Set<String> hitTypes = pickingManager.getHitTypes(uniqueID);\n if (hitTypes == null)\n return;\n contextMenuCreator.clear();\n for (String pickingType : hitTypes) {\n ArrayList<Pick> alHits = null;\n alHits = pickingManager.getHits(un...
"public <X> X getData(String key) {\n return (X) additionalData.get(key);\n}\n"
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_camera);\n rotation = getWindowManager().getDefaultDisplay().getRotation();\n iv_flash = (ImageView) findViewById(R.id.iv_flash);\n iv_flash.setOnClickListener(new RLOnClickListener...
"public boolean handles(ReadableArchive archive) {\n try {\n if (archive.exists(EJB_JAR_XML) || archive.exists(SUN_EJB_JAR_XML) || archive.exists(GF_EJB_JAR_XML)) {\n return true;\n }\n GenericAnnotationDetector detector = new GenericAnnotationDetector(sniffer.getAnnotationTypes());\n...
"private AppResourceProvider getOrRegisterApp(String applicationName) {\n AppResourceProvider resourceProvider = apps.get(applicationName);\n if (resourceProvider == null) {\n try {\n initRootDirAndContext();\n resourceProvider = new AppResourceProvider(rootDir, applicationName);\n ...
"public Optional<AnnotationObject> getPrediction(int aBegin, int aEnd, String aLabel) {\n return predictions.values().stream().filter(f -> f.getOffset().getBeginCharacter() == aBegin && f.getOffset().getEndCharacter() == aEnd).filter(f -> f.getAnnotation().equals(aLabel)).max(Comparator.comparingInt(TokenObject::get...
"final void makeOutputJar() throws IOException {\n if (outputJar == null) {\n if (outputFile == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n outputJar = new JarOutputStream(new FileOutputStream(outputFile));\n }\n}\n"
"protected void setupDatabase(Database database) throws Exception {\n dropAndCreateTable(new CreateTableStatement(null, TABLE_NAME).addPrimaryKeyColumn(\"String_Node_Str\", \"String_Node_Str\").addColumn(COLUMN_NAME, \"String_Node_Str\"), database);\n dropAndCreateTable(new CreateTableStatement(TestContext.ALT_SC...