content
stringlengths
40
137k
"public void updateBanInfo(String key, List<BanInfo> list, String remoteAddr) {\n DatastoreService service = DatastoreServiceFactory.getDatastoreService();\n ServerManager serverManager = new ServerManager();\n try {\n Date stamp = new Date();\n Server server = serverManager.getAuthorizedServer(k...
"public static FlowBuilder createClassifierInFlow(String flowKey, SfcRspInfo sfcRspInfo, Long outPort) {\n Preconditions.checkNotNull(flowKey, \"String_Node_Str\");\n Preconditions.checkNotNull(sfcRspInfo, \"String_Node_Str\");\n Preconditions.checkNotNull(sfcRspInfo.getVxlanIpDst(), \"String_Node_Str\");\n ...
"private void getWeather(final String postID) {\n mAsynState = AsynTaskState.PROCESSING;\n if (!mPullRefreshScrollView.isRefreshing())\n mPullRefreshScrollView.setRefreshing();\n StringRequest sr = new StringRequest(String.format(WEATHER_ALL, postID), new Response.Listener<String>() {\n public vo...
"public Object visitListItem(ListItemDesign list, Object value) {\n BaseQueryDefinition query = prepareVisit(list);\n if (query == null) {\n pushCurrentCondition(true);\n handleListingBand(list.getHeader(), value);\n popCurrentCondition();\n pushCurrentCondition(true);\n handleL...
"public void run() {\n try {\n topicSubscriber = new TopicSubscriber(Constants.INSTANCE_NOTIFIER_TOPIC);\n topicSubscriber.setMessageListener(new InstanceNotifierEventMessageListener());\n Thread subscriberThread = new Thread(topicSubscriber);\n subscriberThread.start();\n if (log....
"public void testSaxpyPlusConstant() {\n DenseVector vector1 = new DenseVector(new double[] { 0.53, 0.32, 0.91, 0.05, 0.01, 5.63 });\n DenseVector vector2 = new DenseVector(new double[] { 0.33, 0.64, 1.97, 0.56, 0.04 });\n double alpha = 2.5;\n DenseVector expectedVector = new DenseVector(new double[] { 0.5...
"public List<Pair<V>> getData() {\n if (data == null) {\n this.data = new ArrayList<Pair<V>>();\n Map<String, V> data = getConvertedInput();\n if (data == null)\n data = getModelObject();\n if (data != null) {\n for (Map.Entry<String, V> entry : data.entrySet()) {\n ...
"public void handle(RoutingContext ctx) {\n DataBase database = DataBase.getInstance();\n AES256 aes = UserManager.getAES();\n String title = ctx.request().getParam(\"String_Node_Str\");\n String content = ctx.request().getParam(\"String_Node_Str\");\n boolean privacy = Boolean.parseBoolean(ctx.request()...
"protected void processMapping(DatabaseMapping mapping, Sequence seq, ComplexType ct, HashMap<String, Schema> schemaForNamespace, Schema workingSchema, SchemaModelGeneratorProperties properties, List<XMLDescriptor> descriptors) {\n if (mapping instanceof XMLDirectMapping) {\n processXMLDirectMapping((XMLDirec...
"public void caseDup2_x1Inst(Dup2_x1Inst i) {\n Type op1Type = i.getOp1Type();\n Type op2Type = i.getOp2Type();\n Type under1Type = i.getUnder1Type();\n if (isDwordType(under1Type)) {\n if (!isDwordType(op1Type) && !isDwordType(op2Type))\n throw new RuntimeException(\"String_Node_Str\");\n...
"public void migratePoliciesToNewSchema() throws Exception {\n logger.info(\"String_Node_Str\");\n try {\n List<XXResource> resList = daoMgr.getXXResource().getAll();\n if (resList.size() <= 0) {\n return;\n }\n svcDBStore.setPopulateExistingBaseFields(true);\n for (X...
"public static boolean isGoodCandidate(ColumnConfig columnConfig) {\n if (columnConfig == null) {\n return false;\n }\n return columnConfig.isCandidate() && (columnConfig.getKs() != null && columnConfig.getKs() > 0 && columnConfig.getIv() != null && columnConfig.getIv() > 0 && columnConfig.getMean() != ...
"private void addCharSequence(CharSequence textualValue) {\n Object convertedValue = textualValue;\n if (returnType.isAssignableFrom(ByteArrayInputStream.class)) {\n convertedValue = new ByteArrayInputStream(textualValue.toString().getBytes());\n } else if (returnType.isAssignableFrom(StringReader.class...
"public static ComputeService findComputeService(ConfigBag conf, boolean allowReuse) {\n String provider = checkNotNull(conf.get(CLOUD_PROVIDER), \"String_Node_Str\");\n String identity = checkNotNull(conf.get(ACCESS_IDENTITY), \"String_Node_Str\");\n String credential = checkNotNull(conf.get(ACCESS_CREDENTIAL...
"public Map<String, String> getQueryMap() {\n Map<String, String> map = new HashMap<String, String>();\n boolean isSqlEngine = ExecutionLanguage.SQL.equals(this.analysis.getParameters().getExecutionLanguage());\n AnalysisType analysisType = this.analysis.getParameters().getAnalysisType();\n boolean isHive =...
"public void unlockNotOwner(SvnTesterFactory factory) throws Exception {\n try (SvnTester server = factory.create()) {\n final SVNRepository repo = server.openSvnRepository();\n createFile(repo, \"String_Node_Str\", \"String_Node_Str\", null);\n final long latestRevision = repo.getLatestRevision...
"public ID scrapeID() {\n initializeJapaneseDocument();\n String baseUri = japaneseDocument.baseUri();\n if (baseUri.length() > 0 && baseUri.contains(\"String_Node_Str\")) {\n baseUri = baseUri.replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n String idFromBaseUri = baseUri.substring(base...
"public int createNotificationGroup(final String groupName, final boolean enabled, final Iterable<Integer> notificationsIds) {\n final Map<String, ?> group = ImmutableMap.of(\"String_Node_Str\", createLabel(groupName), \"String_Node_Str\", enabled);\n final URI location = doPost(NOTIF_GROUP_PATH, group);\n fin...
"public void run() {\n List<TreeNode> subTrees = trees.subList(0, trees.size() - 1);\n saveTmpModelToHDFS(context.getCurrentIteration(), subTrees);\n Path out = new Path(context.getProps().getProperty(CommonConstants.GUAGUA_OUTPUT));\n writeModelToFileSystem(context.getMasterResult().getTrees(), out);\n}\n"...
"public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, IllegalArgumentException {\n if ((out.length - len) < outOff) {\n throw new DataLengthException(\"String_Node_Str\");\n }\n byte[] hashBuf = new byte[hLen];\n byte[] C = new byte[4];\n int counter = 1;\n dige...
"protected String getDefaultFileNameWithType() {\n String version = \"String_Node_Str\";\n List<String> defaultFileName = getDefaultFileName();\n if (defaultFileName.get(1) != null && !\"String_Node_Str\".equals(defaultFileName.get(1))) {\n version = ((JobExportType.OSGI.equals(getCurrentExportType1()))...
"public void testImportEmptyResourceContent() throws Exception {\n File config = createConfigFile(\"String_Node_Str\", \"String_Node_Str\");\n FileOutputStream os = new FileOutputStream(config);\n String configXml = HAZELCAST_CLIENT_START_TAG + \"String_Node_Str\" + config.getAbsolutePath() + \"String_Node_Str...
"protected void deleteElements(IProxyRepositoryFactory factory, RepositoryNode currentNode) throws PersistenceException, BusinessException {\n IRepositoryViewObject objToDelete = currentNode.getObject();\n if (objToDelete == null) {\n return;\n }\n if (objToDelete instanceof ISubRepositoryObject) {\n...
"private void addClass(Class<?> classZ) {\n if (classZ.isInterface() || classZ.isMemberClass() || classZ.isEnum() || classZ.isAnnotation() || classZ.isAnonymousClass())\n return;\n int modify = classZ.getModifiers();\n if (Modifier.isAbstract(modify) || (!Modifier.isPublic(modify)))\n return;\n ...
"public Panel createWidget(List<PresentationAttr> presentationAttributes) {\n FacesContext fc = FacesContext.getCurrentInstance();\n Application application = fc.getApplication();\n parseAttributes(presentationAttributes);\n widget = (org.primefaces.component.chart.pie.PieChart) application.createComponent(...
"public Data get(String name, Object key) {\n TransactionRecord rec = findTransactionRecord(name, key);\n if (rec == null) {\n return null;\n if (rec.removed)\n return null;\n rec.lastAccess = System.currentTimeMillis();\n return rec.value;\n}\n"
"public void startRecording() {\n if (!isConnected() || isRecording())\n return;\n sendSetRequest(GOPRO_COMMAND.GOPRO_COMMAND_SHUTTER, 1, new SetResponseHandler() {\n\n public void onResponse(byte commandId, boolean result) {\n if (result) {\n sendSetRequest(GOPRO_COMMAND.G...
"public void giveMeFoundSet(IFoundSetListener l) throws ServoyException {\n IFoundSetInternal set = null;\n if (l.getDataSource() == null || l.wantSharedFoundSet()) {\n String wantedGlobalRelationName = l.getGlobalRelationNamedFoundset();\n if (wantedGlobalRelationName != null) {\n set = ...
"public void testCreateAndCloseConnection() throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer(testFixture.getAvailablePort())) {\n Connection connection = testFixture.establishConnecton(testPeer);\n testPeer.expectClose();\n connection.close();\n }\n}\n"
"private Data createDateData(Object txt, StyleEntry entry, String timeFormat, String dlocale) {\n ULocale dateLocale = getLocale(dlocale);\n timeFormat = ExcelUtil.parse(txt, timeFormat, dateLocale);\n timeFormat = DateTimeUtil.formatDateTime(timeFormat, dateLocale);\n entry.setProperty(StyleConstant.DATE_F...
"private void handleAfterEvent(InstanceEvent event, InstanceEvent.EventType eventType) {\n Wrapper wrapper = event.getWrapper();\n Context context = (Context) wrapper.getParent();\n if (!(context instanceof WebModule)) {\n return;\n }\n WebModule wm = (WebModule) context;\n Object instance;\n ...
"public boolean hasNext() {\n return index != -1;\n}\n"
"public void showFromJson() throws IOException {\n int maxlines = getLineCount();\n int screenlines = getScreenLines();\n long beginpos, endpos, counter;\n if (screenlines > maxlines) {\n beginpos = -1;\n } else {\n beginpos = maxlines - (screenlines + currentpos) + 1;\n }\n endpos = ...
"public void run() {\n if (themeHandle != null) {\n CommandUtils.setVariable(ICommandParameterNameContants.NEW_STYLE_THEME_HANDLE_NAME, themeHandle);\n }\n try {\n CommandUtils.executeCommand(\"String_Node_Str\");\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n ...
"private int getOrInitTargetPartitionId() {\n int targetPartitionId = this.targetPartitionId;\n while (targetPartitionId == Operation.GENERIC_PARTITION_ID) {\n final int partitionCount = getContext().getPartitionService().getPartitionCount();\n targetPartitionId = RANDOM_PARTITION_ID_GENERATOR.nextI...
"public void saveState(DataOutputStream out) throws IOException {\n final Map<String, StorageItem> modified = new HashMap<>();\n out.writeInt(STORAGE_STATE_FILE_VERSION);\n long writeIndex;\n List<StorageItem> list;\n synchronized (copyOnWrite) {\n writeIndex = getIndex();\n copyOnWrite.put...
"protected boolean checkDistance(Vector3d soundSource) {\n Camera camera = CoreRegistry.get(WorldRenderer.class).getActiveCamera();\n if (camera == null) {\n return false;\n }\n Vector3f soundPosition = new Vector3f(soundSource);\n soundPosition.sub(camera.getPosition());\n return soundPosition...
"public void beforeCreateEncounter(Encounter encounter) {\n if (encounter.getVisit() != null) {\n return;\n }\n if (useExistingVisit(encounter)) {\n return;\n }\n if (encounter.getForm() != null) {\n FormDescriptor fd = KenyaEmr.getInstance().getFormManager().getFormDescriptor(encoun...
"public void processConnect(Host host, StartupCommand cmd, boolean forRebalance) throws ConnectionException {\n if (!(cmd instanceof StartupRoutingCommand)) {\n return;\n }\n long hostId = host.getId();\n StartupRoutingCommand startup = (StartupRoutingCommand) cmd;\n String dataCenter = startup.ge...
"public NodeDiscoveryResult discover(ConnectionDetails connectionDetails) {\n Map<String, String> params = connectionDetails.getParams();\n NodeDiscoveryResult result = new NodeDiscoveryResult();\n String hostName = connectionDetails.getParam(\"String_Node_Str\");\n IPv4Address ipAddress = new IPv4Address(c...
"public ClinicalDocument buildPhysicalExamSection(ClinicalDocument cd) {\n Section section = CDAFactory.eINSTANCE.createSection();\n PhysicalExamSection ccs = new PhysicalExamSection();\n section.getTemplateIds().add(buildTemplateID(ccs.getParentTemplateId(), null, null));\n section.getTemplateIds().add(bui...
"public boolean isOptOut() {\n synchronized (optOutLock) {\n try {\n configuration.load(CONFIG_FILE);\n } catch (IOException ex) {\n Bukkit.getLogger().log(Level.INFO, \"String_Node_Str\" + ex.getMessage());\n return true;\n } catch (InvalidConfigurationException...
"private Map<?, ?> parseMapElement(Element mapEle, BeanDefinition bd) {\n String defaultKeyTypeClassName = mapEle.getAttribute(BeanDefinitionParserDelegate.KEY_TYPE_ATTRIBUTE);\n String defaultValueTypeClassName = mapEle.getAttribute(BeanDefinitionParserDelegate.VALUE_TYPE_ATTRIBUTE);\n List<Element> entryEles...
"public Collection<String> valueList(String shortArg, String longArg, String defaultValue) {\n Collection<String> shortArgValues = (Collection<String>) args.getCollection(shortArg);\n Collection<String> longArgValues = (Collection<String>) args.getCollection(longArg);\n Collection<String> values = new ArrayLis...
"private Property processXmlAnyAttribute(XmlAnyAttribute xmlAnyAttribute, Property oldProperty, TypeInfo tInfo, JavaType javaType) {\n if (oldProperty.isAnyAttribute()) {\n return oldProperty;\n }\n if (!oldProperty.getType().getName().equals(\"String_Node_Str\")) {\n if (oldProperty.getType().ge...
"public void startDependency() {\n preOrderTraverse = DependencyBuilder.getStartupOrder(component);\n if (!preOrderTraverse.isEmpty()) {\n String dependency = preOrderTraverse.poll();\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + dependency + \"String_Node_Str\");\n ...
"public void shutdown() {\n logger.entering(\"String_Node_Str\", \"String_Node_Str\");\n if (dataSources == null) {\n logger.fine(\"String_Node_Str\");\n return;\n }\n if (shutdownListenerList != null) {\n for (int i = 0; i < shutdownListenerList.size(); i++) {\n ((IShutdownL...
"public AttributeNonNullFilter getFilter() {\n if (AttributeUtils.getDefault().isNodeColumn(column)) {\n NodeAttributeNonNullFilter f = new NodeAttributeNonNullFilter();\n f.setColumn(column);\n return f;\n } else {\n EdgeAttributeNonNullFilter f = new EdgeAttributeNonNullFilter();\n ...
"private void adjustFocusedActivityLocked(ActivityRecord r) {\n if (mStackSupervisor.isFrontStack(this) && mService.mFocusedActivity == r) {\n ActivityRecord next = topRunningActivityLocked(null);\n if (next != r) {\n final TaskRecord task = r.task;\n if (r.frontOfTask && task == ...
"private void reportNonEmptyDirectory(String dirName) {\n StringBuilder msg = new StringBuilder(Messages.DBToolNonEmptyExportDirectory);\n msg.append(StringConstants.SPACE);\n msg.append(dirName);\n printlnConsoleError(msg.toString());\n}\n"
"public boolean isLoggable(LogRecord record) {\n if (consoleError.contains(record.getMessage().replace(\"String_Node_Str\", \"String_Node_Str\"))) {\n return false;\n } else if (!record.getMessage().contains(\"String_Node_Str\")) {\n if (record.getThrown() != null) {\n if (record.getThrow...
"public List<UserAccountVO> searchForUsers(ListUsersCmd cmd) throws PermissionDeniedException {\n Account account = UserContext.current().getCaller();\n Long domainId = cmd.getDomainId();\n if (domainId != null) {\n if ((account != null) && !_domainDao.isChildDomain(account.getDomainId(), domainId)) {\n...
"protected void onPostExecute(AsyncTaskResult<KeyPair> result) {\n if (result.exception != null) {\n MaterialDialog.Builder builder = new MaterialDialog.Builder(AppConfig.getInstance().getActivityContext());\n EditText textfield = new EditText(builder.getContext());\n textfield.setInputType(Inpu...
"public synchronized boolean start(Integer timeout) throws IOException {\n if (mThread == null) {\n mMulticastSocket = new DatagramSocket(SSDP_PORT);\n if (timeout != null && timeout > 0) {\n mMulticastSocket.setSoTimeout(timeout);\n }\n mThread = new Thread(this);\n mTh...
"public static byte[] readFile(Dispatcher dispatcher, byte[] slotHandle, byte[] fileID) throws APDUException {\n CardResponseAPDU selectResponse = selectFile(dispatcher, slotHandle, fileID);\n FCP fcp = null;\n try {\n fcp = new FCP(selectResponse.getData());\n } catch (TLVException e) {\n log...
"public CartridgeSubscription subscribeToCartridgeWithProperties(String cartridgeType, String cartridgeAlias, String autoscalingPolicyName, String deploymentPolicyName, String tenantDomain, int tenantId, String tenantAdminUsername, String repositoryType, String repositoryURL, boolean isPrivateRepository, String reposit...
"private void sendVanilla(IOContext context, LPSZ path, CharSequence contentType, boolean asAttachment) throws IOException {\n long fd = Files.openRO(path);\n if (fd == -1) {\n LOG.info().$(\"String_Node_Str\").$(path).$('(').$(Os.errno()).$(')').$();\n context.simpleResponse().send(404);\n } els...
"public Runnable init(InvTweaksInventory inventory, int i, int currentItem) {\n this.inventory = inventory;\n this.targetedSlot = currentItem;\n this.expectedItemId = getItemID(inventory.getItemStack(i));\n this.i = i;\n return this;\n}\n"
"public static String relativize(URL url) {\n String path = url.getFile();\n if (url.getProtocol().equals(\"String_Node_Str\")) {\n return relativize(path);\n }\n return path;\n}\n"
"protected Message buildCheckMessage(CheckNotification notification) throws Exception {\n Message message = new MimeMessage(this.session) {\n protected void updateMessageID() throws MessagingException {\n }\n };\n message.setFrom(new InternetAddress(this.fromAddress));\n for (ContactMO contact...
"private boolean cutTree(ShortPoint2D pos) {\n short x = (short) (pos.getX() - 1);\n short y = (short) (pos.getY() - 1);\n if (grid.isInBounds(x, y)) {\n AbstractObjectsManagerObject tree = (AbstractObjectsManagerObject) grid.getMapObject(x, y, EMapObjectType.TREE_ADULT);\n if (tree != null && tr...
"public void contentChanged(ChatRoomListChangeEvent evt) {\n ChatRoomWrapper chatRoomWrapper = evt.getSourceChatRoom();\n if (evt.getEventID() == ChatRoomListChangeEvent.CHAT_ROOM_ADDED) {\n addChatRoom(chatRoomWrapper, true);\n } else if (evt.getEventID() == ChatRoomListChangeEvent.CHAT_ROOM_REMOVED) {...
"String getUrlPattern(EDatabaseVersion4Drivers version) {\n switch(version) {\n case HIVE:\n return calcPattern(URL_HIVE_1_STANDALONE);\n case HIVE_EMBEDDED:\n return calcPattern(URL_HIVE_1_TEMPLATE);\n case HIVE_2_EMBEDDED:\n return calcPattern(URL_HIVE_2_EMBEDD...
"public String uploadImage(MediaFile mf) {\n String content = \"String_Node_Str\";\n String finalThumbnailUrl = null;\n String finalImageUrl = null;\n if (mf.getFileName() != null) {\n XMLRPCClient client = new XMLRPCClient(post.blog.getUrl(), post.blog.getHttpuser(), post.blog.getHttppassword());\n ...
"public void visitEnd() {\n if (inSingleJsoImplInterfaceType) {\n for (String mangledName : toImplement(currentTypeName)) {\n for (Method method : jsoData.getDeclarations(mangledName)) {\n writeEmptyMethod(mangledName, method);\n }\n }\n }\n super.visitEnd();\...
"public String runJob() {\n final AWSCredentials credentials = new BasicAWSCredentials(this.AWSAccessKey, this.AWSSecretKey);\n this.mapReduceClient = new AmazonElasticMapReduceClient(credentials);\n mapReduceClient.setEndpoint(this.endpoint);\n this.runFlowResult = mapReduceClient.runJobFlow(this.runFlowRe...
"public boolean compareAndSet(long expect, long update) {\n return false;\n}\n"
"public String getState() {\n return state;\n}\n"
"private void computeUIInfoFor(ModelContentMergeTabItem item) {\n final int curveY;\n final DiffElement diff = item.getDiff();\n if (item.getActualItem() == item.getVisibleItem()) {\n if (partSide == EMFCompareConstants.LEFT && diff instanceof ModelElementChangeRightTarget) {\n curveY = ((Tre...
"public ByteArrayOutputStream getPage(String docName, String pageID, InputOptions renderOptions, List activeIds) throws ReportServiceException {\n IReportDocument doc = ReportEngineService.getInstance().openReportDocument(getReportDesignName(renderOptions), docName);\n HttpServletRequest request = (HttpServletReq...
"public void setConstructor(IType type) {\n this.locals[0] = UNINITIALIZED_THIS;\n this.push(UNINITIALIZED_THIS);\n}\n"
"public WB_CoordinateSystem setX(final double xx, final double xy, final double xz) {\n final WB_Vector lX = new WB_Vector(xx, xy, xz);\n lX._normalizeSelf();\n final WB_Vector tmp = lX.cross(_X);\n if (!WB_Epsilon.isZeroSq(tmp.getSqLength())) {\n rotate(-Math.acos(WB_Math.clamp(_X.dot(lX), -1, 1)), ...
"protected void onPostExecute(String result) {\n mProgressDialog.dismiss();\n if (result != null) {\n Toast.makeText(context, \"String_Node_Str\" + result, Toast.LENGTH_LONG).show();\n } else {\n Intent intent;\n Uri uri = Uri.fromFile(downloadFile);\n if (downloadFileName.contains(...
"public final ASObject deserialize(JsonElement element, Type type, JsonDeserializationContext context) throws JsonParseException {\n JsonObject obj = (JsonObject) element;\n ASObject.AbstractBuilder<?, ?> builder = null;\n Model propMap = null;\n TypeValue tv = null;\n if (knowsType(type)) {\n bui...
"public boolean canBeBitten(IVampire biter) {\n return !(player.isSpectator() || player.isCreative());\n}\n"
"public boolean hasAtLeastOneActorThumbnail() {\n for (Actor currentActor : actors) {\n if (currentActor.getThumb() != null && currentActor.getThumb().getThumbURL() != null && !currentActor.getThumb().getThumbURL().equals(\"String_Node_Str\")) {\n return true;\n }\n }\n return false;\n...
"private static void addPackageModels(int rootPathLength, File dir, SortedSet<PackageModel> pkgs) throws IOException {\n PackageModel pkg = null;\n for (File file : dir.listFiles()) {\n if (\"String_Node_Str\".equals(file.getName())) {\n continue;\n }\n if (file.isDirectory()) {\n ...
"private DataSetIterator createDataSetIterator(Map appContext, TabularHierarchyHandle hierHandle) throws AdapterException, BirtException {\n List<ColumnMeta> metaList = new ArrayList<ColumnMeta>();\n IQueryDefinition defn = sessionImpl.createQuery(sessionImpl, hierHandle, metaList);\n return new DataSetIterato...
"public static void add(String name, double amount) {\n Property taxAmount = isServerAccount(name) ? Property.SERVER_TAX_AMOUNT : Property.TAX_AMOUNT;\n double tax = getTax(taxAmount, amount);\n if (tax != 0) {\n if (!serverAccount().isEmpty()) {\n economy.add(serverAccount(), tax);\n ...
"public void testEmptyClassNameAssertion() {\n DivElement div = Document.get().createDivElement();\n if (getClass().desiredAssertionStatus()) {\n div.setClassName(\"String_Node_Str\");\n try {\n div.addClassName(\"String_Node_Str\");\n throw new Error();\n } catch (Asser...
"public void setDisabled(boolean disabled) {\n this.jmsMessageListener.setDisabled(disabled);\n}\n"
"private StructureSource handleGraphicAction(StructureSource src, StructureSource previousSrc, ActionType actionType, boolean cleanState) {\n if (previousSrc == null) {\n previousSrc = src;\n iv.registerAction(src, actionType);\n iun.repaintChart();\n } else if (!iv.getSource(src).equals(iv.g...
"public void run() {\n try {\n if (V_LOG) {\n Log.v(TAG, \"String_Node_Str\" + dataFile);\n }\n ContentResolver mContentResolver = context.getContentResolver();\n InputStream mInputStream = mContentResolver.openInputStream(uri);\n try {\n ContentValues mNewVal...
"public static ISortCondition createSortCondition() {\n return ScriptAPIFactory.getInstance().createSortCondition();\n}\n"
"public static List<CommonTree> getDestChildren(CommonTree ct) {\n return ScribParserUtil.toCommonTreeList(ct.getChildren().subList(DESTINATION_CHILDREN_START_INDEX, ct.getChildCount()));\n}\n"
"public static Collection<InetSocketAddress> getPossibleSocketAddresses(InetAddress inetAddress, int port, String scopedAddress) {\n int portTryCount = 1;\n if (possiblePort == -1) {\n portTryCount = MAX_PORT_TRIES;\n port = 5701;\n }\n final Collection<InetSocketAddress> socketAddresses = new...
"public <T extends AbstractAttributeValue> T getValue(Object value, T attributeValue) throws ValidationException {\n if (!attributeClass.isInstance(value)) {\n throw new ParseException(new TypeMismatchException(value, attributeClass));\n }\n attributeValue = value instanceof String ? parseValue((String)...
"protected void handleRecursiveFSQuery(HttpExchange exchange, boolean internalCall, JSONObject internalResp) {\n String requestUri = exchangeJSON.getString(\"String_Node_Str\");\n exchange.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n logger.info(\"String_Node_Str\" + requestUri + \"String_Node_Str...
"public void onCreate(Event evt) {\n if (_tmpLabel != null) {\n setLabel(_tmpLabel.getValue());\n _tmpLabel = null;\n}\n"
"public void create(final String name, final String javaPackage, final PackagingType type, final Resource<?> projectFolder, final boolean createMain, final String finalName, final PipeOut out) throws IOException {\n DirectoryResource dir = null;\n if (!getValidPackagingTypes().contains(type)) {\n throw new...
"public List<FlowState> getFlows(String accountId) {\n Map<String, Integer> started = Maps.newHashMap();\n Map<String, Integer> stopped = Maps.newHashMap();\n Map<String, Integer> runs = Maps.newHashMap();\n Map<String, Integer> deployed = Maps.newHashMap();\n Map<String, Integer> states = Maps.newHashMa...
"public void addStep(DocumentTextEdits newStep) {\n ++numberOfSteps;\n int currentCell = numberOfSteps / 32;\n if (currentCell >= steps.length) {\n steps = Arrays.copyOf(steps, currentCell + 1);\n }\n if (newStep != DocumentTextEdits.NONE) {\n ++this.editDistance;\n long mask = 0;\n ...
"protected void loadTreeContents(String mooseExecutableName) throws IOException, CoreException {\n TreeComposite mooseParentTree = (TreeComposite) form.getComponent(mooseTreeCompositeId), tmpParentTree;\n if (project != null && project.isAccessible()) {\n IFolder mooseFolder = project.getFolder(\"String_No...
"private static void printCurrentLocationInformation() {\n final int WIDTH = 40;\n GameState gameState = Game.getGameState();\n Point heroPosition = gameState.getHeroPosition();\n Location location = gameState.getWorld().getLocation(heroPosition);\n StringBuilder sb = new StringBuilder();\n sb.append(...
"public void setSubsetSize(Float subsetSizePercent) {\n missingInLinks.setSubsetSize(subsetSizePercent);\n brokenLinks.setSubsetSize(subsetSizePercent);\n}\n"
"private synchronized void connectAndLogin(SecurityAuthority authority, int reasonCode) throws XMPPException, OperationFailedException {\n synchronized (initializationLock) {\n String password = JabberActivator.getProtocolProviderFactory().loadPassword(getAccountID());\n if (password == null) {\n ...
"public void outputColumns(int[] width) {\n writer.openTag(\"String_Node_Str\");\n if (width == null) {\n return;\n }\n for (int i = 0; i < width.length; i++) {\n writer.openTag(\"String_Node_Str\");\n writer.attribute(\"String_Node_Str\", width[i] / 1000);\n writer.closeTag(\"St...
"public void writeToParcel(Parcel out, int flags) {\n out.writeString(ifName);\n out.writeString(msg);\n}\n"
"public final void toSQL(RenderContext context) {\n if (context.declareFields() || context.declareTables()) {\n if (wrapInParentheses) {\n context.sql(\"String_Node_Str\");\n }\n context.sql(aliasProvider);\n if (wrapInParentheses) {\n context.sql(\"String_Node_Str\"...
"public long startWork(Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException {\n WorkContextHandlerImpl contextHandler = createWorkContextHandler();\n validateWork(work, WorkCoordinator.getExecutionContext(execContext, work), contextHandler);\n if (logger.i...