content stringlengths 40 137k |
|---|
"public void onDraw(Canvas canvas, int cX, int cY, int w, int h, Calendar calendar) {\n final Location loc = mLocation != null ? mLocation : getRecentLocation();\n final int insetW = (int) (w / 2.0f / 2.0f);\n final int insetH = (int) (h / 2.0f / 2.0f);\n inset.set(cX - insetW, cY - insetH, cX + insetW, cY ... |
"protected Document requestAnnotations(Document document) throws GerbilException {\n Document resultDoc = new DocumentImpl(document.getText(), document.getDocumentURI());\n HttpPost request = createPostRequest(serviceUrl);\n String parameters = null;\n try {\n parameters = PARAMETERS + URLEncoder.enc... |
"private Map<ServerName, List<HRegionInfo>> correctAssignments(Map<ServerName, List<HRegionInfo>> existingAssignments) {\n Map<ServerName, List<HRegionInfo>> correctAssignments = new TreeMap<ServerName, List<HRegionInfo>>();\n List<HRegionInfo> misplacedRegions = new LinkedList<HRegionInfo>();\n correctAssignm... |
"private Function switchToValuePassing(Logger logger, ForeignFunctions foreignFuncs, Function fn, Set<FnID> usedFunctionNames) {\n if (fn.blockingInputs().isEmpty())\n return null;\n List<Var> switchVars = new ArrayList<Var>();\n for (WaitVar input : fn.blockingInputs()) {\n if (Types.isPrimFutur... |
"public void pushAttribute(long t, ITmfStateValue value, int attributeQuark) throws TimeRangeException, AttributeNotFoundException, StateValueTypeException {\n int stackDepth;\n int subAttributeQuark;\n ITmfStateValue previousSV = transState.getOngoingStateValue(attributeQuark);\n if (previousSV.isNull()) {... |
"public void shouldSetInitialDirectionAndDrawPacMan() throws Exception {\n int x = 20;\n int y = 30;\n Point position = new Point(x, y);\n Polygon polygon = mock(Polygon.class);\n when(squarePolygon.getPosition()).thenReturn(position);\n when(squarePolygon.getPolygon()).thenReturn(polygon);\n pacMa... |
"public void setPayload(byte[] payload) {\n this.payload = ArrayUtils.clone(payload);\n}\n"
|
"public static void exportLayer(File output, GeometricLayer layer, String projection, GeoTransform transform) {\n try {\n String type = layer.getGeometries().get(0).getGeometryType();\n SimpleFeatureType featureType = createFeatureType(layer.getGeometries().get(0).getClass(), (AttributesGeometry) layer... |
"public static UniqueId generateId(SharedStreetsReference ssr) {\n String hashString = new String();\n hashString = \"String_Node_Str\" + ssr.formOfWay.value;\n for (SharedStreetsLocationReference lr : ssr.locationReferences) {\n hashString += String.format(\"String_Node_Str\", lr.point.getX(), lr.point... |
"public Object filter(Object var, JinjavaInterpreter interpreter, String... args) {\n if (var == null) {\n return var;\n }\n boolean reverse = false;\n if (args.length > 0) {\n reverse = BooleanUtils.toBoolean(args[0]);\n }\n boolean caseSensitive = false;\n if (args.length > 1) {\n ... |
"public View getItemView(Patient patient, View convertView, ViewGroup parent) {\n if (convertView == null) {\n viewHolder = new ViewHolder();\n convertView = View.inflate(getContext(), R.layout.item_patient, null);\n viewHolder.name = (TextView) convertView.findViewById(R.id.name);\n view... |
"public void remove(K key) {\n if (AlfrescoTransactionSupport.getTransactionId() == null) {\n sharedCache.remove(key);\n if (isDebugEnabled) {\n logger.debug(\"String_Node_Str\" + \"String_Node_Str\" + this + \"String_Node_Str\" + \"String_Node_Str\" + key);\n }\n } else {\n ... |
"public void broadcastTo(int index, CommandSender to) {\n if (getMessage(index) != null) {\n String[] lines = getMessage(index).split(\"String_Node_Str\");\n List<String> messages = new ArrayList<String>();\n List<String> commands = new ArrayList<String>();\n for (String line : lines) {\n... |
"private static String getScriptValue(Parameter parameter, Object value, boolean multipleComponent) {\n if (value == null)\n return \"String_Node_Str\";\n if (!multipleComponent && parameter.isMultiple()) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\").append(para... |
"public void wrapup() throws IllegalActionException {\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n Nameable container = getContainer();\n if (container instanceof CompositeActor) {\n Iterator actors = ((CompositeActor) container).deepEntityList().iterator();\n Iterator actor... |
"public IStatus doAction() {\n try {\n if (page.isDirty()) {\n boolean save = MessageDialog.openConfirm(page.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\" + page.getXObject().getDisplayName() + \"String_Node_Str\");\n if (save)\n page.SaveWithForce(new Nul... |
"public void testExtractRegularExpressionFunctionForNetezza() {\n DbmsLanguage netezzaDbmsLanguage = DbmsLanguageFactory.createDbmsLanguage(SupportDBUrlType.NETEZZADEFAULTURL);\n Expression createExpression = CoreFactory.eINSTANCE.createExpression();\n createExpression.setBody(\"String_Node_Str\");\n try {\... |
"public static void install(final String shellVersionString) throws IOException {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(8196);\n PrintStream outputStream = new PrintStream(byteArrayOutputStream);\n final ShellProcessBuilder gsettings = new ShellProcessBuilder(outputStream);\... |
"private void tStripsGGEP() throws Exception {\n ManagedConnection out = ManagedConnection.createTestConnection(\"String_Node_Str\", Backend.BACKEND_PORT, new NoGGEPProperties(), new EmptyResponder());\n out.initialize();\n out.buildAndStartQueues();\n assertTrue(\"String_Node_Str\", out.isOpen());\n dra... |
"public static void buy(Player player, HumanNPC npc, String op) {\n if (EconomyManager.hasEnough(player, UtilityProperties.getPrice(op)) || !EconomyManager.useEconPlugin()) {\n boolean canSend = false;\n Wizard wizard = npc.getType(\"String_Node_Str\");\n String msg = ChatColor.GREEN + \"String_... |
"public void registerEvents(PluginManager pluginManager, PermissionsEx pex, ConfigurationNode config) {\n pluginManager.registerEvent(Event.Type.VEHICLE_COLLISION_ENTITY, this, Priority.Low, pex);\n pluginManager.registerEvent(Event.Type.VEHICLE_ENTER, this, Priority.Low, pex);\n pluginManager.registerEvent(Ev... |
"public boolean evict(EvictionConfig config, PooledObject<Channel> underTest, int idleCount) {\n if (super.evict(config, underTest, idleCount)) {\n log.debug(\"String_Node_Str\");\n return true;\n }\n if (!underTest.getObject().isOpen()) {\n log.debug(\"String_Node_Str\");\n return ... |
"private static FieldAssembler<Schema> convertToAvro(FieldAssembler<Schema> fa, org.talend.core.model.metadata.builder.connection.MetadataColumn in) {\n FieldBuilder<Schema> fb = fa.name(in.getLabel());\n copyColumnProperties(fb, in);\n BaseFieldTypeBuilder<Schema> ftb = in.isNullable() ? fb.type().nullable() ... |
"private List<Artifact> getDependencies(List<Element> elements) {\n List<Artifact> dependencies = Lists.newArrayList();\n for (Element element : elements) {\n if (element.getName().equals(DEPENDENCY)) {\n dependencies.add(getMavenDependency(element));\n }\n }\n return dependencies;\... |
"protected Parcelable onSaveInstanceState() {\n Bundle bundle = new Bundle();\n bundle.putBundle(PRESENTER_STATE_KEY, savePresenter());\n bundle.putParcelable(PARENT_STATE_KEY, super.onSaveInstanceState());\n return bundle;\n}\n"
|
"protected void inputsToModel(boolean create) {\n if (create) {\n e = new DialogOption();\n parent.getOptions().add(pos, e);\n }\n String key = e.getText();\n if (key == null || key.isEmpty() || key.charAt(0) != I18N.PREFIX)\n key = Ctx.project.getI18N().genKey(Ctx.project.getSelectedSc... |
"public String toString() {\n return getHandler() + \"String_Node_Str\" + EVENT_NAME + \"String_Node_Str\" + getScheduledTime() + \"String_Node_Str\" + getDuration();\n}\n"
|
"public Document addServerForClient(ClientDTO clientDTO) {\n int editingSessionId = clientDTO.getEditingSessionId();\n synchronized (editingSessions) {\n if (!editingSessions.containsKey(editingSessionId)) {\n editingSessions.put(editingSessionId, new ArrayList<Integer>());\n }\n e... |
"public void init() throws ComponentInitException {\n OWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n if (dummyClass == null) {\n dummyClass = manager.getOWLDataFactory().getOWLClass(IRI.create(UniFeIRI.DISPONTE + \"String_Node_Str\"));\n }\n logger.debug(\"String_Node_Str\");\n... |
"public Gson create() {\n List<ExclusionStrategy> strategies = new LinkedList<ExclusionStrategy>();\n strategies.add(innerClassExclusionStrategy);\n strategies.add(modifierBasedExclusionStrategy);\n if (ignoreVersionsAfter != VersionConstants.IGNORE_VERSIONS) {\n strategies.add(new VersionExclusionSt... |
"protected Round createRoundSwiss() {\n Round round = new Round(rounds.size() + 1, this);\n rounds.add(round);\n List<TournamentPlayer> roundPlayers = getActivePlayers();\n Collections.sort(roundPlayers, new Comparator<TournamentPlayer>() {\n public int compare(TournamentPlayer p1, TournamentPlayer p... |
"public void item(Item item) {\n if (this.item == item) {\n updateText();\n return;\n }\n this.item = item;\n if (item == null) {\n enable(false);\n icon.visible(false);\n updateText();\n } else {\n active = true;\n icon.visible(true);\n icon.view(i... |
"public static WriteMarshallable newSync() {\n try {\n Class<?> aClass = Class.forName(\"String_Node_Str\");\n Constructor<?> declaredConstructor = aClass.getConstructor(Class.class, Class.class);\n return (WriteMarshallable) declaredConstructor.newInstance(topicType, elementType);\n } catch ... |
"public static void main(String[] args) {\n Array2DRowRealMatrix inMatrix = new Array2DRowRealMatrix(new double[][] { { 99, 108, 105, 98, 100, 101 }, { 71, 79, 83, 70, 84, 80 }, { 100, 104, 92, 102, 99, 98 }, { 81, 75, 80, 82, 77, 78 } });\n BScore bScore = new BScore(inMatrix);\n System.err.println(\"String_N... |
"private String getMaprActiveJobTrackerIp(final String maprNodeIP, final String clusterName) {\n String activeJobTrackerIp = \"String_Node_Str\";\n String errorMsg = \"String_Node_Str\";\n JSch jsch = new JSch();\n String sshUser = Configuration.getString(\"String_Node_Str\", \"String_Node_Str\");\n int ... |
"private void writeBinder(IndentedWriter w, String rootField) throws UnableToCompleteException {\n writePackage(w);\n writeImports(w);\n w.newline();\n writeClassOpen(w);\n writeStatics(w);\n w.newline();\n w.write(\"String_Node_Str\", uiRootType.getParameterizedQualifiedSourceName(), uiOwnerType.g... |
"protected Double convertObjectToDouble(Object sourceObject) throws ConversionException {\n if (sourceObject instanceof String) {\n if (XMLConstants.POSITIVE_INFINITY.equals(sourceObject)) {\n return new Double(Double.POSITIVE_INFINITY);\n } else if (XMLConstants.NEGATIVE_INFINITY.equals(sou... |
"public List createPastableBeansList(ExtendedTableModel extendedTable, List copiedObjectsList) {\n ArrayList list = new ArrayList();\n ArrayList countList = new ArrayList();\n ArrayList<String> labelsExisted = getLabelsExisted(extendedTable);\n for (Object current : copiedObjectsList) {\n if (current... |
"public int getOffsetWidth() {\n return DOM.getElementPropertyInt(getElement(), \"String_Node_Str\");\n}\n"
|
"public Object selectOneObjectUsingMultipleTableSubclassRead(ReadObjectQuery query) throws DatabaseException, QueryException {\n Object object = null;\n for (Enumeration childDescriptors = getChildDescriptors().elements(); childDescriptors.hasMoreElements() && (object == null); ) {\n ReadObjectQuery concre... |
"public Profile parse() throws InvalidStructureException, IOException, XmlPullParserException, UnfullfilledRequirementsException {\n checkNode(\"String_Node_Str\");\n String sVersion = parser.getAttributeValue(null, \"String_Node_Str\");\n int version = parseInt(sVersion);\n String authRef = parser.getAttri... |
"private void produceCascadedInstanceIfApplicable(TestOnlyPhase phase, String returnTypeDesc, String genericReturnTypeDesc) {\n String mockedTypeDesc = getClassDesc();\n Object cascadedMock = MockedTypeCascade.getMock(mockedTypeDesc, arguments.methodNameAndDesc, instance, returnTypeDesc, genericReturnTypeDesc);\n... |
"public Composite configSectionCreate(final Composite parent) {\n int userMode = COConfigurationManager.getIntParameter(\"String_Node_Str\");\n boolean isAZ3 = COConfigurationManager.getStringParameter(\"String_Node_Str\").equals(\"String_Node_Str\");\n Label label;\n GridLayout layout;\n GridData gridDa... |
"public Response createResource(String parentId, String name, InputStream inputStream, FormDataContentDisposition fileDetail) throws RODAException {\n RodaUser user = UserUtility.getApiUser(request, RodaCoreFactory.getIndexService());\n Browser.createTransferredResource(user, parentUUID, fileDetail.getFileName(),... |
"public void putBlock(int x, int y, Block block) {\n if (0 <= x && x < WIDTH && 0 <= y && y < HEIGHT) {\n if (block.getItem().getInteract() != null) {\n interactable.add(new BlockEntry(x, y, block));\n ArrayList<Float> a = new ArrayList<Float>(monsters.size());\n for (int i = ... |
"private void checkEkfPositionState(msg_ekf_status_report ekfStatus) {\n if (ekfStatus == null)\n return;\n final int flags = ekfStatus.flags;\n final boolean isOk = this.armed ? (flags & EKF_STATUS_FLAGS.EKF_POS_HORIZ_ABS) != 0 && (flags & EKF_STATUS_FLAGS.EKF_CONST_POS_MODE) == 0 : (flags & EKF_STATUS... |
"private String getSkillsString(ArrayList<String> skillsList) {\n if (skillsList == null || skillsList.size() == 0) {\n return null;\n }\n String skills = skillsList.get(0);\n for (int i = 1; i < skillsList.size(); i++) {\n skills += \"String_Node_Str\" + skillsList.get(i);\n }\n return ... |
"public Content getContent(String ownerKey, String contentId) {\n Owner owner = this.getOwnerByKey(ownerKey);\n Content content = this.fetchContent(owner, contentId);\n return content.toDTO();\n}\n"
|
"private RelationalInterface _getCompositeInterface(CompositeActor container) throws IllegalActionException {\n final Set<String> newConstraints = new HashSet<String>();\n final Set<String> inputNames = new HashSet<String>();\n final List<IOPort> inputPorts = container.inputPortList();\n for (final IOPort c... |
"private Command getSAPCommand(IRepositoryViewObject object, ConnectionItem connectionItem, MetadataTable table, Node node) {\n String value = connectionItem.getProperty().getId() + \"String_Node_Str\" + table.getLabel();\n if (PluginChecker.isSAPWizardPluginLoaded() && connectionItem instanceof SAPConnectionItem... |
"private void browseExchangeInternal(Socket socket) throws IOException {\n socket.setSoTimeout(5000);\n LOG.trace(\"String_Node_Str\");\n setState(EXCHANGING);\n final String LF = \"String_Node_Str\";\n String str = null;\n OutputStream oStream = socket.getOutputStream();\n LOG.trace(\"String_Node_... |
"protected Object checkRemoteCreate(ID fromID, ID toID, SharedObjectDescription desc) throws Exception {\n debug(\"String_Node_Str\" + fromID + \"String_Node_Str\" + toID + \"String_Node_Str\" + desc + \"String_Node_Str\");\n if (policy != null) {\n return policy.checkAddSharedObject(fromID, toID, getID(),... |
"protected FileEditorInput createFileEditorInput() {\n IPath codePath = processor.getCodePath();\n if (codePath.isEmpty()) {\n try {\n processor.initPath();\n } catch (ProcessorException e) {\n MessageBoxExceptionHandler.process(e);\n }\n codePath = processor.getC... |
"public String getInvalidStateInfo() {\n String errorMessage = \"String_Node_Str\";\n if (!Common.isValidCourseId(course)) {\n errorMessage += ERROR_FIELD_COURSE;\n }\n if (!Common.isValidName(name)) {\n errorMessage += ERROR_FIELD_NAME;\n } else if (name.length() > EVALUATION_NAME_MAX_LENG... |
"public TreeReference anchor(TreeReference baseRef) {\n if (isAbsolute()) {\n return this.clone();\n } else if (!baseRef.isAbsolute() || (refLevel > baseRef.size())) {\n return null;\n } else {\n TreeReference newRef = baseRef.clone();\n for (int i = 0; i < refLevel; i++) {\n ... |
"public void collect() {\n if (init.get()) {\n return;\n }\n Range range = Range.createUncheckedRange(timeSlotEndTime - slotInterval, timeSlotEndTime);\n List<String> agentIds = applicationIndexDao.selectAgentIds(application.getName());\n for (String agentId : agentIds) {\n List<AgentStat> ... |
"public void test_singleIteration() throws InterruptedException {\n RobobuggyKFLocalizer localizer = new RobobuggyKFLocalizer(10000, \"String_Node_Str\", new LocTuple(40.441670, -79.9416362));\n new Publisher(NodeChannel.GPS.getMsgPath()).publish(new GpsMeasurement(40.441670, -79.9512463));\n Thread.sleep(3000... |
"private static void innerGetUsesOfSymbol(SymbolNode symbol, SemanticNode node, Vector found) {\n if ((node instanceof OpApplNode) && ((((OpApplNode) node).getOperator() == symbol) || ((OpApplNode) node).subExpressionOf == symbol)) {\n found.add(node);\n }\n SemanticNode[] children = node.getChildren();... |
"protected Schedule _getSchedule() throws NotSchedulableException, IllegalActionException {\n CTSchedule ctSchedule = new CTSchedule();\n _signalTypeMap = new SignalTypeMap();\n LinkedList sinkActors = new LinkedList();\n LinkedList dynamicActors = new LinkedList();\n LinkedList discreteActors = new Link... |
"protected URI writeMetadata(final WARCWriter w, final String timestamp, final URI baseid, final CrawlURI curi, final ANVLRecord namedFields) throws IOException {\n final URI uid = qualifyRecordID(baseid, TYPE, METADATA);\n ANVLRecord r = new ANVLRecord();\n if (curi.isSeed()) {\n r.addLabel(\"String_No... |
"public void selectKey(long secretKeyId) {\n if (secretKeyId == Id.key.none) {\n mKeyMasterKeyIdHex.setText(R.string.api_settings_no_key);\n mKeyUserIdRest.setText(\"String_Node_Str\");\n } else {\n String uid = getResources().getString(R.string.user_id_no_name);\n String uidExtra = \"... |
"private static void setXmlFileValue(XmlFileConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n if (value != null) {\n connection.setXmlFilePath(value);\... |
"public String toString() {\n String ownerKey = (owner != null ? owner.getKey() : null);\n return \"String_Node_Str\" + ownerKey + \"String_Node_Str\" + id + \"String_Node_Str\" + name + \"String_Node_Str\";\n}\n"
|
"public static L1cMetadata.ProductCharacteristics getProductOrganization(Level1C_User_Product product) {\n L1cMetadata.ProductCharacteristics characteristics = new L1cMetadata.ProductCharacteristics();\n characteristics.spacecraft = product.getGeneral_Info().getProduct_Info().getDatatake().getSPACECRAFT_NAME();\n... |
"public String toPrettyString() {\n String ugly = node.getFullName() + \"String_Node_Str\" + toString();\n StringBuffer pretty = new StringBuffer();\n int currentIndent = 1;\n for (int i = 0; i < ugly.length(); i++) {\n char c = ugly.charAt(i);\n if (c == '[') {\n currentIndent++;\n... |
"public TAUnit readTA(int partition, int unit) throws X10FlashException, IOException {\n logger.info(\"String_Node_Str\" + unit + \"String_Node_Str\" + partition);\n if (!_bundle.simulate()) {\n String command = \"String_Node_Str\" + partition + \"String_Node_Str\" + unit;\n logger.info(command);\n ... |
"public double nextHighestProb() {\n if (dp.size() > 0) {\n return dp.peek().probability;\n }\n return 0;\n}\n"
|
"private SharedHashMapBuilder readFile(File file) throws IOException {\n ByteBuffer bb = ByteBuffer.allocateDirect(HEADER_SIZE).order(ByteOrder.nativeOrder());\n FileInputStream fis = new FileInputStream(file);\n fis.getChannel().read(bb);\n fis.close();\n bb.flip();\n if (bb.remaining() <= 20)\n ... |
"private static String extractTimestamp(final String location) {\n StringTokenizer st = new StringTokenizer(location);\n int numToks = st.countTokens();\n String curTok = null;\n for (int i = 0; i < numToks; i++) {\n curTok = st.nextToken();\n }\n if (AlternateLocation.isValidTimestamp(curTok))... |
"private void unpackOnHosts(String host, String remotePassword, String unpackScript) throws WindowsException, CommandException {\n String domain = windowsDomain;\n if (!ok(domain))\n domain = host;\n WindowsCredentials bonafides = new WindowsCredentials(host, domain, getRemoteUser(), remotePassword);\n ... |
"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 void processSuccess(int responseCode, InputStream responseData) {\n System.out.println(\"String_Node_Str\");\n processResponseIntoAppsList(responseData);\n repeatRequestOrShowResults(false);\n}\n"
|
"private char[] genInitializerBlock(String file, char[] source, JMethod[] methods) {\n String escapedFile = Jsni.escapeQuotesAndSlashes(file);\n StringBuffer sb = new StringBuffer();\n sb.append(\"String_Node_Str\");\n for (int i = 0; i < methods.length; ++i) {\n JMethod method = methods[i];\n ... |
"public boolean handleChildren(ProteusView view) {\n ProteusViewManager viewManager = view.getViewManager();\n ProteusLayoutInflater proteusLayoutInflater = viewManager.getProteusLayoutInflater();\n LayoutParser parser = viewManager.getLayoutParser();\n JsonObject data = viewManager.getDataContext().getData... |
"private void sendPeersChangedBroadcast() {\n final Intent intent = new Intent(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION);\n intent.putExtra(WifiP2pManager.EXTRA_P2P_DEVICE_LIST, new WifiP2pDeviceList(mPeers));\n intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);\n mContext.sendBroadcastA... |
"public void onLevelUp(MyPetLevelUpEvent eventMyPet) {\n MyPet MPet = eventMyPet.getPet();\n if (!eventMyPet.isQuiet()) {\n MPet.sendMessageToOwner(MyPetUtil.setColors(MyPetLanguage.getString(\"String_Node_Str\")).replace(\"String_Node_Str\", MPet.Name).replace(\"String_Node_Str\", \"String_Node_Str\" + ev... |
"public DataSet<DataPosterior> computePosterior() {\n Attribute seq_id = this.dataFlink.getAttributes().getSeq_id();\n if (seq_id == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n try {\n Configuration config = new Configuration();\n config.setString(ParameterLearningAl... |
"public void determineAccessRights(String page, State currentState) {\n if (currentState.isSiteAdministrator() == true) {\n currentState.setMode(GwtModesType.ReadWrite);\n } else if (currentState.getUserProjectRole() == ProjectRole.Acquisition_Organization_Engineer) {\n currentState.setMode(GwtModes... |
"void setupUI() {\n setupTermfilterSpinners();\n JPanel termfilterPanel = new JPanel();\n termfilterPanel.setLayout(new BoxLayout(termfilterPanel, BoxLayout.X_AXIS));\n termfilterPanel.add(new JLabel(\"String_Node_Str\"));\n termfilterPanel.add(tpSpinner);\n termfilterPanel.add(new JLabel(\"String_Nod... |
"public static String randomString(String baseString, int length) {\n final Random random = new Random();\n final StringBuilder sb = new StringBuilder();\n if (length < 1) {\n length = 1;\n }\n int baseLength = baseString.length();\n for (int i = 0; i < length; i++) {\n int number = rand... |
"public void getIdleRegions(HttpRequest request, HttpResponder responder, int numRegions) {\n if (!initializePruningDebug(responder)) {\n return;\n }\n try {\n Method method = debugClazz.getMethod(\"String_Node_Str\", Integer.class);\n method.setAccessible(true);\n Object response =... |
"private void initOptions() {\n ConfigurableOption bidiProcessing = new ConfigurableOption(BIDI_PROCESSING);\n bidiProcessing.setDisplayName(getMessage(\"String_Node_Str\"));\n bidiProcessing.setDataType(IConfigurableOption.DataType.BOOLEAN);\n bidiProcessing.setDisplayType(IConfigurableOption.DisplayType.C... |
"public void dumpResourcesOnError() throws IOException {\n if (testing != null) {\n final PrintStream err = System.err;\n err.print(\"String_Node_Str\");\n err.print(testing);\n err.println(\"String_Node_Str\");\n testing.list(err);\n err.flush();\n }\n}\n"
|
"public ArrayList<ArrayList<String>> getCrossReferencingContent(String tableName) throws XtentisWebappException {\n try {\n String[] results = Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(Configuration.datacluster), tableName, null, -1, 0, -1)).getStrings();\n DocumentBuilder documentBuil... |
"private Object uploadFileHelper(Object[] params, final File tempFile) {\n AppLog.d(T.POSTS, \"String_Node_Str\" + Arrays.toString(params));\n if (mClient instanceof XMLRPCClient) {\n XMLRPCClient xmlrpcClient = (XMLRPCClient) mClient;\n xmlrpcClient.setOnBytesUploadedListener(new XMLRPCClient.OnByt... |
"public ParseException generateParseException() {\n jj_expentries.clear();\n boolean[] la1tokens = new boolean[22];\n if (jj_kind >= 0) {\n la1tokens[jj_kind] = true;\n jj_kind = -1;\n }\n for (int i = 0; i < 11; i++) {\n if (jj_la1[i] == jj_gen) {\n for (int j = 0; j < 32... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.create_new_server_environment_layout);\n repoId = getIntent().getIntExtra(Constants.REPOSITORY_ID, 0);\n nameEditText = (EditText) findViewById(R.id.nameEditText);\n automaticCheckBox = (... |
"protected Page copyOnWrite(Page p, long writeVersion) {\n if (p.getVersion() == writeVersion) {\n return p;\n }\n return p.copy(writeVersion, removeOld);\n}\n"
|
"public URL[] getPluginJars() {\n if (classLoader instanceof URLClassLoader) {\n return ((URLClassLoader) classLoader).getURLs();\n } else {\n return EMPTY_URL;\n }\n}\n"
|
"private void validateGanttEntryData(Object[] obja) throws ChartException {\n boolean valid = true;\n if (obja == null) {\n valid = false;\n } else if (obja.length != 3) {\n throw new ChartException(ChartEngineExtensionPlugin.ID, ChartException.DATA_SET, \"String_Node_Str\", Messages.getResourceB... |
"public void handleMessage(Message msg) {\n boolean finished = updateProgress();\n if (finished)\n download = null;\n else\n sendMessageDelayed(obtainMessage(), 50);\n }\n}\n"
|
"public boolean apply(Game game, Ability source) {\n for (Permanent perm : game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {\n if (!this.affectedObjectsSet || objects.contains(perm.getId())) {\n if (!(excludeSource && perm.getId().equals(source.getSourceId())))... |
"public void onClose(AjaxRequestTarget target) {\n divDialogRepeater.remove(divDialog);\n String divDialogPageMapName = divDialog.getPageMapName();\n if (divDialogs.get(divDialogPageMapName) == divDialog) {\n divDialogs.remove(divDialogPageMapName);\n }\n if (divDialogs.size() == 0) {\n div... |
"private void inlineNonConstants(Var v, ReferenceCollection referenceInfo, boolean maybeModifiedArguments) {\n int refCount = referenceInfo.references.size();\n Reference declaration = referenceInfo.references.get(0);\n Reference init = referenceInfo.getInitializingReference();\n int firstRefAfterInit = (de... |
"public Invoice create(final InvoiceRequest invoice) {\n return client.post(\"String_Node_Str\", invoice, Invoice.class);\n}\n"
|
"public boolean isOpen() {\n return port != null && port.isOpened();\n}\n"
|
"private boolean readTxn() {\n while (true) {\n long txn = txMem.getLong(TableUtils.TX_OFFSET_TXN);\n if (txn == this.txn) {\n return false;\n }\n Unsafe.getUnsafe().loadFence();\n long checkTxn;\n while ((checkTxn = txMem.getLong(TableUtils.TX_OFFSET_TXN_CHECK)) ... |
"private PagedList<T> getResultListViaObjectQuery(long totalSize) {\n String queryString = getQueryString0();\n Class<?> expectedResultType;\n if (keysetExtraction) {\n expectedResultType = Object[].class;\n } else {\n expectedResultType = selectManager.getExpectedQueryResultType();\n }\n ... |
"public void delete(Object model) {\n Folder folder = ((Folder) model);\n if (!folder.folders.isEmpty()) {\n for (Folder subFolder : folder.folders) {\n delete(subFolder);\n }\n }\n for (Media media : folder.files) {\n mediaManager.delete(media);\n }\n JPA.em().remove(f... |
"private boolean sendKeyEvent(int keyCode) {\n KeyEvent keyDown = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);\n KeyEvent keyUp = new KeyEvent(KeyEvent.ACTION_UP, keyCode);\n boolean keyDownRes = mAudioController.sendMediaKeyEvent(keyDown);\n boolean keyUpRes = mAudioController.sendMediaKeyEvent(keyUp);\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.