content
stringlengths
40
137k
"public void sessionWhichHasClosedShouldBeRemovedFromCurrentSessionCountAndActiveSessions() throws Exception {\n k3po.finish();\n Thread.sleep(1000);\n MBeanServerConnection mbeanServerConn = jmxConnection.getConnection();\n ObjectName summaryBeansObjectNamePattern = new ObjectName(\"String_Node_Str\" + ECH...
"public void doPostProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo, int status) throws ServletException, IOException, SQLException, AuthorizeException {\n String buttonPressed = UIUtil.getSubmitButton(request, NEXT_BUTTON);\n if (buttonPressed.equalsIgn...
"private Date newestDate(Date... dates) {\n Date latestDate = null;\n for (Date date : dates) {\n if (date == null)\n continue;\n if (date != null && latestDate == null) {\n latestDate = date;\n continue;\n }\n if (date.after(latestDate)) {\n ...
"public List<SubjectEntity> getByProfessorId(EntityManager em, long professorId) {\n if (em == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n return em.createNamedQuery(\"String_Node_Str\", SubjectEntity.class).setParameter(\"String_Node_Str\", professorId).getResultList();\n}\...
"public Injector createChildInjector(Configuration... configurations) throws BindException {\n InjectorImpl ret;\n ret = copy(this, configurations);\n return ret;\n}\n"
"public ValueResult execute(final GetValue cmd, final UserExecutionContext context) throws CommandException {\n LOG.debug(\"String_Node_Str\", cmd);\n final ValueResult valueResult = new ValueResult();\n String historyValue = null;\n if (cmd.getAmendmentId() != null) {\n final TypedQuery<Amendment> a...
"void launchHomeFromHotKey() {\n if (mKeyguardMediator.isShowingAndNotHidden()) {\n } else if (!mHideLockScreen && mKeyguardMediator.isInputRestricted()) {\n mKeyguardMediator.verifyUnlock(new OnKeyguardExitResult() {\n public void onKeyguardExitResult(boolean success) {\n if (suc...
"public void postWindowOpen() {\n IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n if (activePage != null && !(activePage.getPerspective().getId().equals(ProductUtils.PERSPECTIVE_DQ_ID))) {\n Job myJob = new Job(\"String_Node_Str\") {\n protecte...
"protected void checkFnDeclaresParameters(final FunctionSignature functionSignature, final List<String> fnArgumentNames, final Cardinality requiredCardinality) throws RestAnnotationException {\n final FunctionArgument[] fnArguments = functionSignature.getArguments();\n for (final String fnArgumentName : fnArgumen...
"public void marshallEntity(Object object, MediaType mediaType, OutputStream output, boolean sendRelationships) throws JAXBException {\n if (sendRelationships) {\n preMarshallEntity(object);\n }\n Marshaller marshaller = getJAXBContext().createMarshaller();\n marshaller.setProperty(MarshallerProperti...
"private void handleProxyData(final Channel channel, final Object msg, boolean isHttp) throws Exception {\n if (cf == null) {\n if (isHttp && !(msg instanceof HttpRequest)) {\n return;\n }\n ProxyHandler proxyHandler = ProxyHandleFactory.build(proxyConfig);\n RequestProto proto...
"public Point open(SurfaceTexture surface) {\n try {\n if (!extractMedia()) {\n return new Point(0, 0);\n }\n mFrameSem = new Semaphore(0);\n mDecodeSem = new Semaphore(1);\n videoProvideEndFlag = false;\n isUserWantToStop = false;\n mAudioEncodeTrack = mSt...
"public void createVpcAssociatePublicIPCommands(final VirtualRouter router, final List<? extends PublicIpAddress> ips, final Commands cmds, final Map<String, String> vlanMacAddress) {\n final String ipAssocCommand = \"String_Node_Str\";\n if (router.getIsRedundantRouter()) {\n createRedundantAssociateIPCom...
"public void pop() {\n ASTNode topOfItemStack = itemStack.peek();\n while (stack.size() > 0 && stack.peek().parentCompound == topOfItemStack) {\n stack.pop();\n }\n}\n"
"public int hashCode() {\n return name != null ? name.hashCode() : 0;\n}\n"
"public Double call() {\n double pixelError = 0;\n for (int x = 0; x < image1.getWidth(); x++) {\n for (int y = 0; y < image1.getHeight(); y++) {\n double pix1 = image1.getPixelValue(x, y);\n double pix2 = image2.getPixelValue(x, y);\n pixelError += (pix1 - pix2) * (pix1 - ...
"public void onClick(View view) {\n RequestsToAGiftFragment requestsToAGiftFragment = new RequestsToAGiftFragment();\n Bundle bundle = new Bundle();\n bundle.putString(Constants.GIFT_ID, gifts.get(i).giftId);\n requestsToAGiftFragment.setArguments(bundle);\n ((BottomBarActivity) mContext).addFragment(req...
"private int saveCanonicalizedPublicKeyRing(CanonicalizedPublicKeyRing keyRing, Progressable progress, boolean selfCertsAreTrusted) {\n int result = SaveKeyringResult.SAVED_PUBLIC;\n long masterKeyId = keyRing.getMasterKeyId();\n UncachedPublicKey masterKey = keyRing.getPublicKey();\n ArrayList<ContentProvi...
"private View getFullyFundedItemView(NewsItem newsItem, View convertView, ViewGroup parent) {\n ItemType itemType = ItemType.FULLY_FUNDED;\n ViewHolder viewHolder = (ViewHolder) convertView.getTag();\n Patient patient;\n try {\n patient = newsItem.getPatient().fetchIfNeeded();\n } catch (ParseExce...
"public boolean delete() {\n return deleteFile(file);\n}\n"
"public TreeObject findObject(int type, String name) {\n TreeObject[] allchildren = this.getChildren();\n for (int i = 0; i < allchildren.length; i++) {\n if (allchildren[i] instanceof TreeParent) {\n obj = ((TreeParent) allchildren[i]).findObject(type, name);\n } else if ((allchildren[i]...
"private void setOnlineStatus(User friend) {\n if (friend != null) {\n ActionBar actionBar = getActionBar();\n actionBar.setSubtitle(friend.getOnlineStatus(this));\n }\n}\n"
"public void updateModDepth(int depth) {\n controller.updateModDepth(depth);\n if (display != null)\n display.updateDepthKnob(depth);\n}\n"
"private PFont createFont(Font font) {\n return createFont(font.getName(), 1);\n}\n"
"public static void replaceTags(ReaderTagList tags) {\n if (tags == null || tags.size() == 0) {\n return;\n SQLiteDatabase db = ReaderDatabase.getWritableDb();\n db.beginTransaction();\n try {\n try {\n db.execSQL(\"String_Node_Str\");\n addOrUpdateTags(tags);\n ...
"public void execute(Element ele, HashMap styles) {\n HashMap cssStyle = new HashMap();\n if (ele.hasAttribute(\"String_Node_Str\")) {\n String inlineStyle = ele.getAttribute(\"String_Node_Str\");\n if (null != inlineStyle && !\"String_Node_Str\".equals(inlineStyle)) {\n StringBuffer buff...
"public static CellList getWFSChildren(String root, String canonicalName) {\n try {\n URL url = getURL(WFS_PREFIX + root + \"String_Node_Str\" + canonicalName);\n return CellList.decode(canonicalName, url.openStream());\n } catch (java.lang.Exception excp) {\n LOGGER.log(Level.INFO, \"String_...
"void updateList() {\n mActiveAdmins.clear();\n List<ComponentName> cur = mDPM.getActiveAdmins();\n if (cur != null) {\n for (int i = 0; i < cur.size(); i++) {\n mActiveAdmins.add(cur.get(i));\n }\n }\n mAvailableAdmins.clear();\n List<ResolveInfo> avail = getPackageManager()....
"protected void noHandlerFound(ChannelHandlerContext context, WeixinRequest request, Object message) {\n if (isDebug) {\n context.writeAndFlush(new TextResponse(request.getOriginalContent())).addListener(ChannelFutureListener.CLOSE);\n } else {\n context.writeAndFlush(HttpUtil.createHttpResponse(nul...
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlCompositeDirectCollectionMapping.isReadOnly()) {\n return false;\n }\n ContainerPolicy cp = getContainerPolicy();\n Object collecti...
"public int onStartCommand(Intent intent, int flags, int startId) {\n String prefix = getPackageName();\n String[] argv = intent.getStringArrayExtra(prefix + \"String_Node_Str\");\n String nativelibdir = intent.getStringExtra(prefix + \"String_Node_Str\");\n String profileUUID = intent.getStringExtra(prefix...
"protected <T> T initStub(Class<? super T> stubSuperClass) throws Exception {\n try {\n S stub = config.<S>getStubWrapper(this.userCodeClassLoader).getUserCodeObject(stubSuperClass, this.userCodeClassLoader);\n if (stubSuperClass != null && !stubSuperClass.isAssignableFrom(stub.getClass())) {\n ...
"private int getHandCount() {\n int count = 0;\n for (AbstractCard c : AbstractDungeon.player.hand.group) {\n if (c == null)\n continue;\n ++count;\n }\n return count;\n}\n"
"public void run(ProgressStatus progressStatus) {\n progressStatus.setDescription(\"String_Node_Str\");\n progressStatus.setIndeterminate(true);\n ProjectValidator pv = new ProjectValidator(project);\n pv.validate();\n if (pv.hasErrors()) {\n Application.getInstance().getGUILog().log(\"String_Node...
"private void add(Page p, long writeVersion, Object key, Object value) {\n if (p.isLeaf()) {\n p.insertLeaf(p.getKeyCount(), key, value);\n return;\n }\n int index = -1;\n for (int i = 0; i < p.getKeyCount(); i++) {\n if (contains(p, i, key)) {\n index = i;\n break...
"private void setNewRange(long startTime, long duration) {\n if (startTime < fExperimentStartTime) {\n startTime = fExperimentStartTime;\n long endTime = startTime + duration;\n if (endTime > fExperimentEndTime) {\n endTime = fExperimentEndTime;\n if (endTime - duration > fExperimentStartT...
"public Group createWorkflowGroup(int step) throws SQLException, AuthorizeException {\n AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);\n if (workflowGroup[step - 1] == null) {\n Group g = Group.create(ourContext);\n g.setName(\"String_Node_Str\" + getID() + \"String_Node_Str\" ...
"protected String chooseGroup() {\n if (this.getDataModel().getGroupId() != null)\n return this.getDataModel().getGroupId();\n String chosenGroup = \"String_Node_Str\";\n double currentHeuristic, previousHeuristic = 0;\n double vectorDistance;\n double maxDistance = Math.sqrt(2);\n double econo...
"public boolean process(String type, String message, Object object) {\n if (GroupActivatedEvent.class.getName().equals(type)) {\n GroupActivatedEvent event = (GroupActivatedEvent) Util.jsonToObject(message, GroupActivatedEvent.class);\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_S...
"public static Collection<ConfigOption<?>> createConfigOptions() {\n Collection<ConfigOption<?>> options = new LinkedList<ConfigOption<?>>();\n URLConfigOption urlOption = new URLConfigOption(\"String_Node_Str\", \"String_Node_Str\", null, false, true);\n urlOption.setRefersToFile(true);\n options.add(urlOp...
"public byte[] getData() {\n return Arrays.copyOf(data, data.length);\n}\n"
"String toString(StringMaker sm) {\n StringBuffer buf = new StringBuffer();\n buf.append(sm.makeModifiersString(getModifiers()));\n if (sm.includeArgs)\n buf.append(sm.makeTypeName(getFieldType()));\n if (sm.includeArgs)\n buf.append(\"String_Node_Str\");\n buf.append(sm.makePrimaryTypeName...
"public void setServices(Services services) {\n synchronized (this) {\n this.services = services;\n }\n}\n"
"public URLServiceSubscription<TextInputStatusListener> connect(final TextInputStatusListener listener) {\n ResponseListener<Object> responseListener = new ResponseListener<Object>() {\n public void onSuccess(Object response) {\n JSONObject jsonObj = (JSONObject) response;\n TextInputSta...
"private void labelClassNodeHTML(final ClassInfo ci, final String shape, final String boxBgColor, final StringBuilder buf) {\n buf.append(\"String_Node_Str\" + shape + \"String_Node_Str\" + boxBgColor + \"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(...
"public Set findRefCells() {\n Set refCells = new HashSet();\n for (Iterator iterator = formulaParts.iterator(); iterator.hasNext(); ) {\n FormulaPart formulaPart = (FormulaPart) iterator.next();\n refCells.addAll(formulaPart.getRefCells());\n }\n return refCells;\n}\n"
"public static void onRequestPermissionsResult(Activity target, int requestCode, String[] permissions, int[] grantResults) {\n if (permissions.length < 1 || grantResults.length < 1)\n return;\n if (mPermissionListener == null)\n return;\n mPendingRequest = false;\n if (RuntimePermissionUtils.v...
"public void addCommonMasterVertexContext(CommonVertexMasterContextWrapper commonVertexMasterContextWrapper) {\n context.put(\"String_Node_Str\", commonVertexMasterContextWrapper.getSuperstepNoWrapper());\n context.put(\"String_Node_Str\", commonVertexMasterContextWrapper.getTotalNumVerticesWrapper());\n conte...
"protected StructuredType _leastUpperBound(StructuredType type) {\n if (!(type instanceof UnionType)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n UnionType unionType = (UnionType) type;\n Set unionSet = new HashSet();\n Set myLabelSet = _fields.keySet()...
"public void testDbWriteAndUpdate() {\n HybridFileBackedSqlStorageMock.alwaysPutInDatabase();\n UnencryptedHybridFileBackedSqlStorageMock.alwaysPutInDatabase();\n UnencryptedHybridFileBackedSqlStorage<FormInstance> appFixtureStorage = CommCareApplication.instance().getCurrentApp().getFileBackedStorage(\"String...
"public Customer toObject(UIComponent arg0, String arg1) {\n for (Customer jar : customerAllSearch.getAllCustomers()) if (jar.getCode().equals(arg1))\n return jar;\n return null;\n}\n"
"public static void start(Class<? extends RelationshipType> clazz, String storeDir, boolean create) {\n if (started) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n config = new Config();\n config.getTxModule().setTxLogDirectory(storeDir);\n Map<String, String> params = new java.util.Ha...
"public void process(Iterable<Target> targets) throws QueryException, InterruptedException {\n Iterable<Target> currentInUniverse = Iterables.filter(targets, universe);\n ImmutableList<Target> uniqueTargets = minDepthUniquifier.uniqueAtDepthLessThanOrEqualTo(currentInUniverse, 0);\n callback.process(uniqueTarg...
"public TCPRequest iSend(ByteBuffer buffer, int size, int procId, int edge) {\n SocketChannel ch = clientChannel.get(procId);\n if (ch == null) {\n LOG.log(Level.INFO, \"String_Node_Str\" + procId);\n return null;\n }\n Client client = clients.get(procId);\n return client.send(ch, buffer, s...
"public boolean init(int permitCount) {\n if (initialized || available != 0) {\n return false;\n }\n available = permitCount;\n return true;\n}\n"
"public void testIllegalArgumentException() {\n this.request(\"String_Node_Str\").jsonGet();\n}\n"
"public void enableInteraction(InteractionEvent iev) throws ChartException {\n if (_iun == null) {\n logger.log(ILogger.INFORMATION, Messages.getString(\"String_Node_Str\", getULocale()));\n return;\n }\n final Trigger[] tga = iev.getTriggers();\n if (tga == null) {\n return;\n }\n ...
"public int inverseCumulativeProbability(final double p) throws MathException {\n if (p < 0.0 || p > 1.0) {\n throw MathRuntimeException.createIllegalArgumentException(OUT_OF_RANGE_POINT, p, 0.0, 1.0);\n }\n int x0 = getDomainLowerBound(p);\n int x1 = getDomainUpperBound(p);\n double pm;\n whil...
"public void setFrequency(long frequency) {\n long actualFrequency = frequency - frequencyShift;\n if (hackrf != null) {\n try {\n hackrf.setFrequency(frequency);\n } catch (HackrfUsbException e) {\n Log.e(LOGTAG, \"String_Node_Str\" + e.getMessage());\n reportError(...
"public static boolean saveSingleResource(Resource resource) {\n boolean save = true;\n try {\n Map<String, Object> options = new HashMap<String, Object>();\n options.put(XMIResource.OPTION_DECLARE_XML, Boolean.TRUE);\n options.put(XMIResource.OPTION_ENCODING, ENCODING);\n resource.sav...
"protected List<String> getTableNamesFromTables(ResultSet resultSet, IMetadataConnection metadataConnection) throws SQLException {\n List<String> itemTablesName = new ArrayList<String>();\n tableCommentsMap.clear();\n if (resultSet != null) {\n while (resultSet.next()) {\n String nameKey = re...
"public boolean onTouchEvent(MotionEvent ev) {\n if (checkRefreshable(ev)) {\n switch(ev.getAction()) {\n case MotionEvent.ACTION_DOWN:\n touchDownY = ev.getY();\n currentY = touchDownY;\n lastY = currentY;\n break;\n case Motio...
"public void spawnLevelEntities(BuildJob buildJob) {\n Build build = buildJob.build;\n World worldRef = FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(build.dim);\n List ents = worldRef.loadedEntityList;\n for (int i = 0; i < ents.size(); i++) {\n Entity ent = (Entit...
"public final void postAggArithOper(PostAggItem postAggItem) throws RecognitionException {\n Token arith = null;\n try {\n {\n arith = (Token) match(input, ARITH_OPER, FOLLOW_ARITH_OPER_in_postAggArithOper2431);\n postAggItem.fn = (arith != null ? arith.getText() : null);\n }\n...
"public double getCommandedSteeringAngle() {\n int closestIndex = getClosestIndex(wayPoints, pose);\n if (closestIndex == -1) {\n return 17433504;\n }\n double delta = 10;\n int targetIndex = closestIndex;\n while (GPSPoseMessage.getDistance(pose, wayPoints.get(targetIndex).toGpsPoseMessage(0))...
"public boolean addFilters(FilterDescriptorBase... newFilters) {\n List<FilterDescriptorBase> filtersCopy = filters == null ? new ArrayList<>() : new ArrayList<>(Arrays.asList(filters));\n List<FilterDescriptorBase> newFilterList = Arrays.asList(newFilters);\n boolean result = filtersCopy.addAll(newFilterList)...
"private void addExtensionRepositoryNodes(List<ERepositoryObjectType> arraysList) {\n IExtensionRegistry registry = Platform.getExtensionRegistry();\n IConfigurationElement[] configurationElements = registry.getConfigurationElementsFor(\"String_Node_Str\");\n for (IConfigurationElement element : configurationE...
"public void run() {\n if (creation) {\n String nextId = factory.getNextId();\n connectionProperty.setId(nextId);\n connectionProperty.setLabel(connectionProperty.getDisplayName());\n final RepositoryWorkUnit<Object> workUnit = new RepositoryWorkUnit<Object>(\"String_Node_Str\", this) {\n...
"public void checkResultLimit() throws Exception {\n QueryResult result = queryEngine.queryLocalPartitions(map.getName(), TruePredicate.INSTANCE, ENTRY);\n assertEquals(limit, result.getResultLimit());\n}\n"
"public boolean setRange(int startId, byte startdata, int endId, byte enddata, int value) {\n if (startdata < 0 || enddata < 0 || startId > endId || (startdata > 0 && !hasDataValue(startId)) || (enddata > 0 && !hasDataValue(endId)) || !isAllowedMaterial(startId, startdata) || !isAllowedMaterial(endId, enddata))\n ...
"public Object[][] getRelativeCases() {\n return new Object[][] { { \"String_Node_Str\", true }, { \"String_Node_Str\", true }, { \"String_Node_Str\", true }, { \"String_Node_Str\", true }, { \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_S...
"private URL[] classPathAsURLS() {\n URL[] urls = new URL[0];\n try {\n Method method = ReflectUtils.getPrivateMethod(AbstractJMXHeritrixController.class, \"String_Node_Str\", Map.class);\n Map<String, String> environment = new HashMap<String, String>(System.getenv());\n method.invoke(null, e...
"private boolean isMutilSelection(Object multiSelection) {\n return multiSelection != null && (multiSelection == Object.class || multiSelection == DesignElementHandle.class || isRootElementHandleClass(multiSelection) || multiSelection == ReportItemHandle.class);\n}\n"
"private EstablishChannelResponse performPACEWithPIN(Map<String, ExecutionResults> oldResults) throws DispatcherException, InvocationTargetException {\n DIDAuthenticationDataType protoData = eacData.didRequest.getAuthenticationProtocolData();\n AuthDataMap paceAuthMap;\n try {\n paceAuthMap = new AuthDa...
"private void animateWarpPageOffScreen(String reason, boolean animate) {\n if (DEBUG_WARP)\n Log.v(TAG, \"String_Node_Str\" + reason + \"String_Node_Str\" + animate + \"String_Node_Str\");\n if (mWarpPageExposed) {\n dispatchOnPageEndWarp();\n KeyguardWidgetFrame v = (KeyguardWidgetFrame) get...
"public static boolean pingDASQuietly(ProgramOptions programOpts, Environment env) {\n try {\n RemoteCLICommand cmd = new RemoteCLICommand(\"String_Node_Str\", programOpts, env);\n cmd.executeAndReturnOutput(new String[] { \"String_Node_Str\" });\n return true;\n } catch (AuthenticationExcept...
"public Set<InstanceMetaData> getMetaData(String hash) {\n Stack stack = stackRepository.findStackByHash(hash);\n if (stack != null) {\n if (!Status.UPDATE_IN_PROGRESS.equals(stack.getStatus())) {\n if (!stack.isMetadataReady()) {\n throw new MetadataIncompleteException(\"String_N...
"private void processFuncArgs(IRFunction func) {\n Map<IRRegister, IRRegister> argsMap = new HashMap<>();\n IRInstruction firtInst = func.getStartBB().getFirstInst();\n for (int i = 0; i < func.getArgVRegList().size(); ++i) {\n VirtualRegister argVreg = func.getArgVRegList().get(i);\n StackSlot a...
"public void run() {\n int msgCount = 0;\n Thread me = Thread.currentThread();\n for (; ; ) {\n if (me.isInterrupted())\n break;\n Serializable aMsg = (Serializable) queue.peekQueue();\n if (me.isInterrupted() || aMsg == null)\n break;\n try {\n trac...
"public byte[] encode(RenderedImage image) throws java.io.IOException {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n ImageWriter iw = ImageIO.getImageWritersByFormatName(\"String_Node_Str\").next();\n ImageWriteParam iwp = iw.getDefaultWriteParam();\n iwp.setCompressionMode(ImageWriteParam.MO...
"public void stepDown(TreeViewer targetTreeViewer) {\n TreeItem item;\n TreeItem[] items = targetTreeViewer.getTree().getSelection();\n for (int i = items.length - 1; i >= 0; i--) {\n item = items[i];\n Object data = item.getData();\n EList content = getXSDComponentContainer(data);\n ...
"public Set<MethodInfo> findImplementations(final MethodRef invokee) {\n final Set<MethodInfo> methods = new HashSet<MethodInfo>();\n final MethodInfo method = invokee.getMethodInfo();\n if (method != null && (method.isStatic() || method.isPrivate())) {\n methods.add(method);\n return methods;\n ...
"public void subscribe(ObservableEmitter<List<QueueSongBean>> e) throws Exception {\n List<QueueSongBean> songBeen = PlayQueueDao.getInstance(mContext).queryQueue(songIds);\n e.onNext(songBeen != null ? songBeen : Collections.<QueueSongBean>emptyList());\n e.onComplete();\n}\n"
"private void parse(XMLStreamReader xmlStreamReader) throws SAXException {\n if (null == getContentHandler()) {\n return;\n }\n switch(xmlStreamReader.getEventType()) {\n case XMLStreamReader.ATTRIBUTE:\n {\n break;\n }\n case XMLStreamReader.CDATA:\n ...
"private String comparison(int compare) {\n if (compare == EQUAL) {\n return \"String_Node_Str\";\n } else if (compare == 0) {\n return \"String_Node_Str\";\n } else {\n return \"String_Node_Str\";\n }\n}\n"
"public void computeAllNBRsBruteForce() {\n Set<QueryTree<String>> posExampleTrees = DBpediaExample.getPosExampleTrees();\n Set<QueryTree<String>> negExampleTrees = DBpediaExample.getNegExampleTrees();\n LGGGenerator<String> lggGenerator = new LGGGeneratorImpl<String>();\n NBRGenerator<String> nbrGenerator ...
"public void testGetSummonerSpells() throws InterruptedException, ExecutionException, TimeoutException {\n try {\n handler.getSummonerSpells(SpellData.COOLDOWN_BURN).get(1, MINUTES);\n } catch (RequestException ex) {\n if (isNotServerside(ex))\n throw ex;\n }\n}\n"
"public List<InputSplit> getSplits(JobContext context) throws IOException {\n long start = System.currentTimeMillis();\n Configuration conf = context.getConfiguration();\n ImageInputFormatContext ifContext = ImageInputFormatContext.load(conf);\n final int zoom = ifContext.getZoomLevel();\n final int tile...
"private void confirmAndWipe() {\n boolean confirmed = true;\n if (confirmed) {\n _lsCanvas = new LargeStringCanvas(\"String_Node_Str\");\n _cmdExit = new Command(l10n.getString(L10nConstants.keys.MENU_EXIT), Command.EXIT, 1);\n _lsCanvas.addCommand(_cmdExit);\n _lsCanvas.setCommandLis...
"MaybeEmptyMemberAndArguments getMemberAndArguments(List tmArgs, BeansWrapper w) throws TemplateModelException {\n if (tmArgs == null) {\n tmArgs = Collections.EMPTY_LIST;\n }\n int l = tmArgs.size();\n Class[][] unwrappingHintsByParamCount = getUnwrappingHintsByParamCount();\n Object[] pojoArgs =...
"public AgentInfo getAgent(String authCorpid, int agentid) throws WeixinException {\n String suite_get_agent_uri = getRequestUri(\"String_Node_Str\");\n JSONObject obj = new JSONObject();\n obj.put(\"String_Node_Str\", suiteId);\n obj.put(\"String_Node_Str\", authCorpid);\n obj.put(\"String_Node_Str\", s...
"public void setPlayer(Player player) {\n Map<UUID, Map<Integer, CoreAbility>> classMap = INSTANCES_BY_PLAYER.get(getClass());\n if (classMap != null) {\n Map<Integer, CoreAbility> playerMap = classMap.get(player.getUniqueId());\n if (playerMap != null) {\n playerMap.remove(this.id);\n ...
"private void close() {\n Intent intent = new Intent(this, DarkService.class);\n intent.setAction(DarkService.ACTION_CLOSE);\n intent.putExtra(DarkService.EXTRA_VOLUME_PATH, getFilesDir() + \"String_Node_Str\");\n startService(intent);\n}\n"
"public void testInvalidParameterTypeBadOxmXmlValue() {\n Map<String, List<Integer>> properties = new HashMap<String, List<Integer>>();\n ArrayList<Integer> ints = new ArrayList<Integer>();\n ints.add(new Integer(666));\n properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY, ints);\n JAXBContext jax...
"public static Authorization fromToken(SecretKeySpec key, String token) throws AuthenticationException {\n if (token == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n try {\n int hashSizeBytes = 16;\n Cipher decodingCipher = Cipher.getInstance(\"String_Node_Str\")...
"protected static void _importFMU(Object originator, FileParameter fmuFileParameter, NamedObj context, double x, double y, boolean modelExchange, boolean addMaximumStepSizeParameter, String actorClassName, Method acceptFMUMethod) throws IllegalActionException, IOException {\n File fmuFile = fmuFileParameter.asFile()...
"public static IRepositoryNode getMetadataFolderNode(EResourceConstant folderConstant) {\n String[] folderPathArray = folderConstant.getPath().split(\"String_Node_Str\");\n if (folderPathArray.length <= 0) {\n return null;\n }\n IRepositoryNode node = getRootNode(ERepositoryObjectType.METADATA);\n ...
"public boolean performFinish() {\n final IPath locPath = newReportFileWizardPage.getFileLocationFullPath();\n String fn = newReportFileWizardPage.getFileName();\n final String fileName;\n if (!Platform.getOS().equals(Platform.WS_WIN32)) {\n if (!fn.endsWith(fileExtension)) {\n fileName = ...
"private String message(final Response response) {\n final Readable reader;\n try {\n reader = new InputStreamReader(response.readEntity(InputStream.class), UTF_8);\n } catch (IllegalStateException e) {\n return null;\n }\n try {\n return CharStreams.toString(reader);\n } catch (I...
"public int scheduleSyncRepeatingTask(Runnable func, long l, long l2) {\n return Bukkit.getScheduler().scheduleSyncRepeatingTask(plotMeCorePlugin, func, l, l2);\n}\n"