content stringlengths 40 137k |
|---|
"public void testOPropertyPrototyper() throws Exception {\n OClass newClass = getSchema().createClass(\"String_Node_Str\");\n try {\n OProperty newProperty = OPropertyPrototyper.newPrototype(\"String_Node_Str\");\n assertNull(newClass.getProperty(\"String_Node_Str\"));\n newProperty.setName(\... |
"private void defineRevenueBonuses() {\n Set<MapHex> hexes = new HashSet<MapHex>();\n for (NetworkVertex vertex : getVertices()) {\n MapHex hex = vertex.getHex();\n if (hex != null)\n hexes.add(hex);\n }\n for (MapHex hex : hexes) {\n List<RevenueBonusTemplate> bonuses = new ... |
"private void exportNodeData(Graph graph) throws IOException {\n stringBuilder.append(\"String_Node_Str\");\n stringBuilder.append(\"String_Node_Str\");\n for (int i = 0; i < attributeModel.getNodeTable().getColumns().length; i++) {\n if (Arrays.binarySearch(standartNodeAttributes, attributeModel.getNod... |
"public boolean canHandle(QName artifactType) {\n return artifactType.equals(this.baseTypeScriptArtifact);\n}\n"
|
"protected void doUnsubscribe(URL url, NotifyListener listener) {\n ConcurrentMap<NotifyListener, ChildListener> listeners = zkListeners.get(url);\n if (listeners != null) {\n ChildListener zkListener = listeners.get(listener);\n if (zkListener != null) {\n if (Constants.ANY_VALUE.equals(... |
"public void onPlayerInteractEvent(final PlayerInteractEvent event) {\n Player player = event.getPlayer();\n Block block = event.getBlock();\n if (player.getName().equals(plugin.set)) {\n switch(plugin.status) {\n case 0:\n plugin.pos1 = event.getBlock().getLocation();\n ... |
"public void testLearnHyphenSparse() {\n System.out.println(\"String_Node_Str\");\n IntDataset train = load(\"String_Node_Str\");\n IntDataset test = load(\"String_Node_Str\");\n CRF.Trainer trainer = new CRF.Trainer(train.p, train.k);\n trainer.setLearningRate(1.0);\n trainer.setMaxNodes(100);\n t... |
"public Vector classify(Vector instance) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
|
"private void parse(XMLStreamReader xmlStreamReader) throws SAXException {\n try {\n contentHandler.startDocument();\n parseEvent(xmlStreamReader);\n while (depth > 0) {\n xmlStreamReader.next();\n parseEvent(xmlStreamReader);\n }\n contentHandler.endDocument(... |
"public void testSearchSnippetNickname() throws Exception {\n long rawContactId = createRawContactWithName();\n long contactId = queryContactId(rawContactId);\n ContentValues values = new ContentValues();\n Uri dataUri = insertNickname(rawContactId, \"String_Node_Str\");\n Uri filterUri = Uri.withAppende... |
"private void deletePidFile(ServerEnvironment env) {\n File pidFile = new File(env.getConfigDirPath(), \"String_Node_Str\");\n if (pidFile.isFile())\n FileUtils.deleteFileNowOrLater(pidFile);\n}\n"
|
"public static List<ItemStack> getInputs(ItemStack output, World world) {\n if (output.isEmpty()) {\n return null;\n }\n List<ItemStack> inputs = new ArrayList<>();\n for (Map.Entry<ItemStack, BiFunction<ItemStack, World, List<ItemStack>>> entry : registry.entrySet()) {\n for (ItemStack out : ... |
"public void write(RepositoryConnection aConn, KnowledgeBase kb) {\n ValueFactory vf = aConn.getValueFactory();\n IRI subject = vf.createIRI(identifier);\n originalStatements.clear();\n Statement typeStmt = vf.createStatement(subject, kb.getTypeIri(), vf.createIRI(type.toString()));\n originalStatements.... |
"public void drawVertical(Canvas c, RecyclerView parent) {\n final int left = ViewCompat.getPaddingStart(parent);\n final int right = parent.getWidth() - ViewCompat.getPaddingEnd(parent);\n final int childCount = parent.getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = pa... |
"public static ServiceFunctionForwarder readServiceFunctionForwarder(String name) {\n LOG.debug(\"String_Node_Str\", Thread.currentThread().getStackTrace()[1]);\n ServiceFunctionForwarderKey serviceFunctionForwarderKey = new ServiceFunctionForwarderKey(name);\n InstanceIdentifier<ServiceFunctionForwarder> sffI... |
"public Iterable<Transition<GraphEdge<City, Double>, City>> transitionsFrom(City fromCity) {\n Set<Transition<GraphEdge<City, Double>, City>> successors = new HashSet<Transition<GraphEdge<City, Double>, City>>();\n for (GraphEdge<City, Double> edge : graph.edgesOf(fromCity)) {\n City toCity = edge.getVerte... |
"private void handleCell(CrosstabCellHandle cell) throws BirtException {\n if (cell == null) {\n return;\n }\n if (handler != null) {\n ICrosstabCell cellItem = new CrosstabCellImpl(cell);\n handler.callFunction(CrosstabScriptHandler.ON_PREPARE_CELL, cellItem, context);\n }\n for (It... |
"private void upgradeRecordScannableTable(TableInfo tableInfo) throws Exception {\n Map<String, String> serdeProperties = tableInfo.getSerdeParameters();\n String datasetName = serdeProperties.get(Constants.Explore.DATASET_NAME);\n Id.DatasetInstance datasetID = Id.DatasetInstance.from(Constants.DEFAULT_NAMESP... |
"protected Dimension getIntrinsicDimension(IImageContent content) throws BadElementException, MalformedURLException, IOException {\n Image image = null;\n switch(content.getImageSource()) {\n case IImageContent.IMAGE_FILE:\n ReportDesignHandle design = content.getReportContent().getDesign().getR... |
"private IDiffContainer buildDiffContainer(Repository repository, RevCommit headCommit, RevCommit ancestorCommit, List<String> filterPaths, RevWalk rw, IProgressMonitor monitor) throws IOException, InterruptedException {\n monitor.setTaskName(UIText.GitMergeEditorInput_CalculatingDiffTaskName);\n IDiffContainer r... |
"private List<JavaMethod> findMatchingConstructors(final JavaClass cl, final MutableInstance instance, final Map<String, MutableInstance> allInstances) {\n final ArrayList<JavaMethod> constructors = new ArrayList<JavaMethod>();\n final List<MutableConstructorArgument> arguments = instance.getConstructorArguments(... |
"public long process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) throws SSIStopProcessingException {\n long lastModified = 0;\n String errorMessage = null;\n String variableName = null;\n for (int i = 0; i < paramNames.length; i++) {\n S... |
"public ResourceLimitResponse createResourceLimitResponse(ResourceLimit limit) {\n ResourceLimitResponse resourceLimitResponse = new ResourceLimitResponse();\n if (limit.getResourceOwnerType() == ResourceOwnerType.Domain) {\n populateDomain(resourceLimitResponse, limit.getOwnerId());\n } else if (limit.... |
"public void run() {\n List<LogEntry> tmpE = new ArrayList<LogEntry>(MAX_ENTRIES_PER_BLOCK);\n Logging.logMessage(Logging.LEVEL_DEBUG, this, \"String_Node_Str\");\n notifyStarted();\n while (!quit) {\n try {\n synchronized (this) {\n if (!quit && entries.isEmpty()) {\n ... |
"public boolean isExtendedElements() {\n if (elements.isEmpty())\n return false;\n for (Iterator iter = elements.iterator(); iter.hasNext(); ) {\n Object next = iter.next();\n if (!(next instanceof DesignElementHandle))\n return false;\n DesignElementHandle designHandle = (D... |
"private ListChangeListener<Integer> createParentsChangeListener() {\n WeakReference<IssueIndicatorsDisplayBox> that = new WeakReference<IssueIndicatorsDisplayBox>(this);\n ListChangeListener<Integer> listChangeListener = new ListChangeListener<Integer>() {\n public void onChanged(ListChangeListener.Change... |
"public View getView(int position, View cachedView, ViewGroup parent) {\n View v;\n if (cachedView == null) {\n v = getActivity().getLayoutInflater().inflate(R.layout.notifications_follow_row, null);\n } else {\n v = cachedView;\n }\n JSONObject noteItem = getItem(position + 1);\n JSONOb... |
"public Partition selectPartition(final String topic, final Message message, final PartitionSelector partitionSelector) throws MetaClientException {\n try {\n message.setReadOnly(true);\n if (this.metaClientConfig.getServerUrl() != null) {\n return Partition.RandomPartiton;\n }\n ... |
"void setOnBattery(boolean onBattery, int oldStatus, int level) {\n synchronized (this) {\n boolean doWrite = false;\n mOnBattery = mOnBatteryInternal = onBattery;\n long uptime = SystemClock.uptimeMillis() * 1000;\n long mSecRealtime = SystemClock.elapsedRealtime();\n long realtim... |
"public Span postProcess(Span span, List<SpanEvent> spanEventList) {\n span.setVersion(V2.getVersion());\n span.finish();\n if (CollectionUtils.hasLength(spanEventList)) {\n long spanStartTime = span.getStartTime();\n spanEventCompressor.compress(spanEventList, spanStartTime);\n span.setSp... |
"public Map<String, String> requestAutConfigMapFromAgent(String autId) {\n Map<String, String> autConfigMap = null;\n GetAutConfigMapMessage message = new GetAutConfigMapMessage(autId);\n GetAutConfigMapResponseCommand response = new GetAutConfigMapResponseCommand();\n try {\n ServerConnection.getIns... |
"public static void main(String[] args) throws Exception {\n String[] rawRes = arg(args, \"String_Node_Str\", \"String_Node_Str\").split(\"String_Node_Str\");\n String source = arg(args, \"String_Node_Str\", \"String_Node_Str\");\n String outPrefix = arg(args, \"String_Node_Str\", \"String_Node_Str\");\n do... |
"public void onBackPressed() {\n if (mViewPager.getCurrentItem() > 0)\n mViewPager.setCurrentItem(mViewPager.getCurrentItem() - 1, true);\n else\n super.finish();\n}\n"
|
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n EntitySelectActivity oldActivity = (EntitySelectActivity) this.getDestroyedActivityState();\n if (savedInstanceState != null) {\n mResultIsMap = savedInstanceState.getBoolean(EXTRA_IS_MAP, false);\n }\n sess... |
"private void reindexActionLogs(IndexService index, ModelService model, Report report, Job job, SimpleJobPluginInfo jobPluginInfo) {\n report.setPluginState(PluginState.SUCCESS);\n int i = 0;\n for (OptionalWithCause<LogEntry> logEntry : model.listLogEntries(dontReindexOlderThanXDays)) {\n jobPluginInfo... |
"private static Map<Service, Map<Capability, String>> setCapabilities() {\n Map<Service, Map<Capability, String>> capabilities = new HashMap<Service, Map<Capability, String>>();\n Map<Capability, String> lbCapabilities = new HashMap<Capability, String>();\n lbCapabilities.put(Capability.SupportedLBAlgorithms, ... |
"public void click(final int x, final int y) {\n final V ref = overlayGraph.vertexRef();\n lock.readLock().lock();\n try {\n final V vertex = renderer.getVertexAt(x, y, POINT_SELECT_DISTANCE_TOLERANCE, ref);\n if (vertex != null) {\n vertex.getCovariance(mat);\n LinAlgHelper... |
"public void init(ServletConfig config) throws ServletException {\n SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());\n File propertiesFile = ConfigurationHelper.findConfigurationFile(\"String_Node_Str\");\n Properties EC2Prop = null;\n if (null != properti... |
"private boolean isOffScreen(View descendant) {\n return !isWithinDeltaOfScreen(descendant, 0, getHeight());\n}\n"
|
"public void testReconfigRecoveryCase3() throws Exception {\n QuorumTestCallback cb1 = new QuorumTestCallback();\n QuorumTestCallback cb2 = new QuorumTestCallback();\n QuorumTestCallback cb3 = new QuorumTestCallback();\n TestStateMachine st = new TestStateMachine();\n final String server1 = getUniqueHost... |
"public static int digit(char c, int radix) {\n if (radix < MIN_RADIX || radix > MAX_RADIX) {\n return -1;\n }\n if (c >= '0' && c < '0' + Math.min(radix, 10)) {\n return c - '0';\n } else if (c >= 'a' && c < ('a' + radix - 10)) {\n return c - 'a' + 10;\n } else if (c >= 'A' && c < (... |
"public void updateData(MatchBreakdownBinder.Model data) {\n if (data == null || data.allianceData == null || data.scoreData == null || breakdown == null) {\n if (!isDataBound()) {\n setDataBound(false);\n }\n return;\n }\n long startTime = System.currentTimeMillis();\n Log.d... |
"private boolean alignNucleotideGroups(List<Group> seqRes, List<Group> atomRes) {\n Map<Integer, Integer> seqresIndexPosition = new HashMap<Integer, Integer>();\n Map<Integer, Integer> atomIndexPosition = new HashMap<Integer, Integer>();\n String seq1 = getFullAtomSequence(seqRes, seqresIndexPosition, true);\n... |
"public Object[][] goodJson() {\n return new Object[][] { { object().put(\"String_Node_Str\", 1).get() }, { object().put(\"String_Node_Str\", true).get() }, { object().put(\"String_Node_Str\", \"String_Node_Str\").get() }, { object().put(\"String_Node_Str\", \"String_Node_Str\").get() }, { object().put(\"String_Node... |
"public Action check(HttpServletRequest request, InterceptingHTTPServletResponse response, HttpServletResponse httpResponse) {\n String uri = request.getRequestURI();\n if (path != null && !path.matcher(uri).matches()) {\n return new DoNothingAction();\n }\n if (contentType != null) {\n if (re... |
"private static Bitmap getThumbnailFor(Context context, EvercamCamera evercamCamera) throws EvercamException {\n return EvercamFile.loadBitmapForCamera(context, evercamCamera.getCameraId());\n}\n"
|
"private boolean usesFirstArgAsPropertyName(IMethod method) {\n if (method.getNumberOfParameters() < 2)\n return Frequency.NEVER;\n Frequency f = usesFirstArgAsPropertyName_cache.get(method);\n if (f != null)\n return f;\n boolean usedAsPropertyName = false, usedAsSomethingElse = false;\n D... |
"public void logMessage(final String fqcn, final Level level, final Marker marker, final Message msg, final Throwable throwable) {\n final StringBuilder sb = new StringBuilder();\n if (showDateTime) {\n final Date now = new Date();\n String dateText;\n synchronized (dateFormatter) {\n ... |
"public void testConstructors() {\n LttngEventType tmpEventType = null;\n LttngEventType tmpEventType2 = null;\n try {\n tmpEventType = new LttngEventType();\n } catch (Exception e) {\n fail(\"String_Node_Str\");\n }\n try {\n tmpEventType = new LttngEventType(\"String_Node_Str\",... |
"private List<ColumnSet> reloadElementOfPackage(Package toReloadObj) throws ReloadCompareException {\n List<ColumnSet> columnSetList = new ArrayList<ColumnSet>();\n try {\n TdCatalog catalogObj = SwitchHelpers.CATALOG_SWITCH.doSwitch(toReloadObj);\n TdSchema schemaObj = SwitchHelpers.SCHEMA_SWITCH.d... |
"public int getItemCount() {\n return (null != gifts ? gifts.size() : 0);\n}\n"
|
"public Predicate<QueueView.Excerpt<String, V>> filter(List<MarshableFilter> filters) {\n return excerpt -> {\n if (filters == null || filters.isEmpty())\n return true;\n try {\n for (MarshableFilter f : filters) {\n Object item;\n final Class message... |
"public List<ValLoc> getResults(ValueState existing) {\n switch(op) {\n case LOAD_BOOL:\n case LOAD_FLOAT:\n case LOAD_INT:\n case LOAD_REF:\n case LOAD_STRING:\n case LOAD_BLOB:\n case LOAD_VOID:\n case LOAD_FILE:\n {\n Arg src = getI... |
"public void publish() {\n float latitude = 0, longitude = 0;\n int state = 0;\n String val = \"String_Node_Str\";\n currentState = SensorState.ON;\n lastUpdateTime = System.currentTimeMillis();\n try {\n for (int i = 0; i < index; i++) {\n if (inputBuffer[i] == '\\n' || inputBuffer[... |
"protected void formOK(UserRequest ureq) {\n solution.setTitle(titleEl.getValue());\n if (fileEl.getUploadFile() != null) {\n if (replaceFile && StringHelper.containsNonWhitespace(solution.getFilename())) {\n File currentFile = new File(solutionDir, solution.getFilename());\n if (curr... |
"public boolean isAgencySetupRequired() {\n boolean setupRequired = false;\n if (currentDbVersion > 0 && currentDbVersion != getCurrentDbVersion()) {\n return true;\n }\n return setupRequired;\n}\n"
|
"public static void reason(final TaskLink tLink, final TermLink bLink, final DerivationContext nal) {\n final Memory memory = nal.mem();\n final Task task = nal.getCurrentTask();\n final Sentence taskSentence = task.sentence;\n final Term taskTerm = taskSentence.term;\n Term beliefTerm = bLink.target;\n ... |
"public int hashCode() {\n return Objects.hash(maxEdits, prefixLength, term, transpositions);\n}\n"
|
"public View getView(int position, View convertView, ViewGroup parent) {\n ViewHolder viewHolder;\n if (convertView == null) {\n convertView = LayoutInflater.from(mContext).inflate(R.layout.checkbox, parent, false);\n viewHolder = new ViewHolder();\n viewHolder.checkBox = (CheckBox) convertVi... |
"private void writeConstructor(TypeSpec.Builder builder) {\n MethodSpec.Builder constructor = MethodSpec.constructorBuilder().addModifiers(Modifier.PUBLIC).addParameter(ClassNames.DATABASE_HOLDER, \"String_Node_Str\");\n for (TableDefinition tableDefinition : manager.getTableDefinitions(databaseName)) {\n ... |
"public void authenticate(ClientConnection connection) throws AuthenticationException, IOException {\n final SerializationService ss = client.getSerializationService();\n String uuid = \"String_Node_Str\";\n String ownerUuid = \"String_Node_Str\";\n if (principal != null) {\n uuid = principal.getUuid... |
"public UserTO update(final UserMod userMod) throws NotFoundException, PropagationException, UnauthorizedRoleException, WorkflowException {\n LOG.debug(\"String_Node_Str\", userMod);\n WorkflowResult<Long> updated = wfAdapter.update(userMod);\n List<PropagationTask> tasks = propagationManager.getUpdateTaskIds(... |
"public boolean process(T input, ImageUInt8 binary) {\n boundPolygon.vertexes.reset();\n detectorSquare.process(input, binary);\n FastQueue<Polygon2D_F64> found = detectorSquare.getFoundPolygons();\n FastQueue<BinaryPolygonDetector.Info> foundInfo = detectorSquare.getPolygonInfo();\n clusters = s2c.proce... |
"public void indexAndExtract(Path corpusDir) throws JATEException {\n List<Path> files = JATEUtil.loadFiles(corpusDir);\n Collections.sort(files);\n LOG.info(\"String_Node_Str\" + files.size() + \"String_Node_Str\");\n int count = 0;\n for (Path file : files) {\n try {\n indexJATEDocume... |
"private BufferedImage extractImage(BufferedImage page, Region region, File outputDirFile, int padding) {\n BufferedImage splitImage = null;\n if (region.rotate) {\n BufferedImage srcImage = page.getSubimage(region.left, region.top, region.height, region.width);\n splitImage = new BufferedImage(regi... |
"public void handleJoinedRoomSync(RoomSync roomSync, boolean isInitialSync) {\n if (null != mOnInitialSyncCallback) {\n Log.d(LOG_TAG, \"String_Node_Str\" + getRoomId());\n } else {\n Log.d(LOG_TAG, \"String_Node_Str\" + getRoomId());\n }\n mIsSyncing = true;\n synchronized (this) {\n ... |
"public void removeSubscription(String clusterId, String subscriptionAlias) {\n Set<CartridgeSubscription> existingSubscriptions = clusterIdToCartridgeSubscription.get(clusterId);\n if (existingSubscriptions != null && !existingSubscriptions.isEmpty()) {\n Iterator<CartridgeSubscription> iterator = existin... |
"public static ClassLoader getClassLoader() {\n ClassLoader classLoader = null;\n String distributionValue = TOozieParamUtils.getHadoopDistribution();\n String versionValue = TOozieParamUtils.getHadoopVersion();\n String customJars = TOozieParamUtils.getHadoopCustomJars();\n if (distributionValue.equals(... |
"public void fundByEnrichedWithZeroes() {\n List<Fund> funds = Arrays.asList(FundMother.fndFundFunderNotKnown().funder(\"String_Node_Str\").amountInWei(new BigDecimal(\"String_Node_Str\")).build(), FundMother.zrxFundFunderNotKnown().funder(\"String_Node_Str\").amountInWei(new BigDecimal(\"String_Node_Str\")).build()... |
"public void actionPerformed(ActionEvent arg0) {\n System.out.println(\"String_Node_Str\");\n if (parent.getDistanceMatrices() == null) {\n System.err.println(\"String_Node_Str\");\n return;\n }\n if (parent.getDisTable1() != null)\n showMatrix(parent.getDisTable1(), \"String_Node_Str\"... |
"public void processRender(WebuiRequestContext context) throws Exception {\n Identity viewerIdentity = Utils.getViewerIdentity();\n Identity ownerIdentity = Utils.getOwnerIdentity();\n Writer writer = context.getWriter();\n writer.append(\"String_Node_Str\").append(getId()).append(\"String_Node_Str\");\n ... |
"private static Map<String, String> createParamsMap(LatLng latLng) {\n Map<String, String> params = new HashMap<>();\n params.put(\"String_Node_Str\", String.valueOf(latLng.getLat()));\n params.put(\"String_Node_Str\", String.valueOf(latLng.getLng()));\n return params;\n}\n"
|
"public void doInTransactionWithoutResult(TransactionStatus status) {\n NetworkOfferingVO defaultSharedSGNetworkOffering = new NetworkOfferingVO(NetworkOffering.DefaultSharedNetworkOfferingWithSGService, \"String_Node_Str\", TrafficType.Guest, false, true, null, null, true, Availability.Optional, null, Network.Guest... |
"public void characters(char[] ch, int start, int length) {\n if (this.inMissing) {\n String isMissing = new String(ch, start, length);\n actionResponse.setMissing(new Boolean(isMissing));\n } else if (this.inDelay) {\n String delay = new String(ch, start, length);\n actionResponse.set... |
"public static Average calculateAverage(VirtualArray virtualArray, Table table, IDType objectIDType, Integer objectID) {\n Average averageDimension = new Average();\n double sumOfValues = 0;\n double sqrSum = 0;\n int nrValidValues = 0;\n ATableBasedDataDomain dataDomain = table.getDataDomain();\n IDT... |
"public boolean equals(Object o) {\n if (o instanceof VagrantVM) {\n VagrantVM other = (VagrantVM) o;\n return id.equals(other.id()) && name.equals(other.name()) && provider.equals(other.provider()) && directory.equals(other.directory());\n }\n return false;\n}\n"
|
"public void visitGetField(GetFieldLabel label, Object dst) {\n IField field = (label).getField();\n PointerKey loadBase = (PointerKey) dst;\n if (refineFieldAccesses(field, loadBase, curPk, label, curState)) {\n if (DEBUG_TOPLEVEL) {\n System.err.println(\"String_Node_Str\" + field);\n ... |
"private PersonalKey load() throws KonException {\n byte[] publicKeyData = readArmoredFile(PUBLIC_KEY_FILENAME);\n byte[] privateKeyData = readArmoredFile(PRIVATE_KEY_FILENAME);\n byte[] bridgeCertData = readFile(BRIDGE_CERT_FILENAME);\n char[] password = mConf.getString(Config.ACC_PASS).toCharArray();\n ... |
"public void checkTypes(MarkerList markers, IContext context) {\n if (this.value != null) {\n this.value.checkTypes(markers, context);\n }\n for (int i = 0; i < this.caseCount; i++) {\n this.cases[i].checkTypes(markers, context);\n }\n}\n"
|
"private void createBitmap() {\n gerberGcode = new GerberGCode(pcbPen, null, true);\n bigBox = new RrRectangle();\n try {\n in = new BufferedReader(new FileReader(inputTracksAndPads));\n while ((line = in.readLine()) != null) {\n r = processLine(line, false);\n if (r != null... |
"public static void loadGameCharacterVariablesFromXML(GameCharacter character, StringBuilder log, Element parentElement, Document doc) {\n NodeList nodes = parentElement.getElementsByTagName(\"String_Node_Str\");\n Element element = (Element) nodes.item(0);\n if (((Element) element.getElementsByTagName(\"Strin... |
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + id + \"String_Node_Str\" + (request != null ? request.getOperation() : null);\n}\n"
|
"public byte[] getCentralDirectoryData() {\n if (centralData != null) {\n return copy(centralData);\n }\n return getLocalFileDataData();\n}\n"
|
"public int getBlockId(Data key) {\n int hash = key.hashCode();\n return (hash == Integer.MIN_VALUE) ? 0 : Math.abs(hash) % PARTITION_COUNT;\n}\n"
|
"public AbstractActionPage getNextPage() {\n AbstractActionPage iNextPage = super.getNextPage();\n if (iNextPage == null) {\n iNextPage = loginDialog.getFirstTimeStartupPageIfNeeded();\n if (iNextPage == null) {\n iNextPage = new LoginProjectPage(getParent(), loginDialog, SWT.NONE);\n ... |
"public void commit() {\n checkCommitted();\n for (Cookie cookie : getCookies()) {\n httpServletResponse.addCookie(cookie);\n }\n if (getStatus() == 0) {\n ok();\n }\n if (getContentType() == null) {\n contentType(HttpConstants.ContentType.TEXT_HTML);\n }\n try {\n ht... |
"public static ProductVersion getVersion(String url, String driver, Properties props) {\n Connection connection = null;\n try {\n connection = ConnectionUtils.createConnection(url, driver, props);\n if (connection != null) {\n Statement stat = connection.createStatement();\n Re... |
"public void initModel() {\n int i = 0;\n List<? extends IConnection> incomingConnections = NodeUtil.getIncomingConnections(hl7Component, IConnectionCategory.FLOW);\n List<Map<String, String>> maps = (List<Map<String, String>>) ElementParameterParser.getObjectValue(hl7Component, \"String_Node_Str\");\n List... |
"protected void readTag(AudioFile audioFile, Tag tag) {\n MP3File mp3File = ((MP3File) audioFile);\n mp3File.getID3v1Tag();\n AbstractID3v2Tag v2Tag = mp3File.getID3v2Tag();\n ID3v1Tag v1Tag = mp3File.getID3v1Tag();\n if (v2Tag != null)\n readV2Tag(v2Tag);\n if (v1Tag != null)\n readV1Ta... |
"Graph calculateShortestPathFromSource(Graph graph, Node source) {\n source.setDistance(0);\n Set<Node> settledNodes = new HashSet<>();\n Set<Node> unsettledNodes = new HashSet<>();\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = getLowestDistanceNode(unse... |
"public static double pay(Player player, Payment payment) {\n subtract(player.getName(), payment.getPrice());\n return payment.getPrice();\n}\n"
|
"public void PreInit(FMLPreInitializationEvent event) {\n MinecraftForge.EVENT_BUS.register(OreDictionaryHandler.instance);\n Items items = appeng.core.Api.instance.items();\n Materials materials = appeng.core.Api.instance.materials();\n Parts parts = appeng.core.Api.instance.parts();\n Blocks blocks = a... |
"protected List<URL> getLib(List<String> libs, Boolean needLib) {\n List<URL> list = new ArrayList<URL>();\n if (!needLib) {\n return list;\n }\n try {\n org.talend.core.model.general.Project projecdddt = ProjectManager.getInstance().getCurrentProject();\n IProject fsProject = null;\n ... |
"private void onSelectMDMServer() {\n MDMServerDef selectedServer = getSelectedMDMServerDef();\n descCombo.getCombo().setText(selectedServer == null ? \"String_Node_Str\" : selectedServer.getDesc());\n userText.setText(selectedServer == null ? \"String_Node_Str\" : selectedServer.getUser());\n passwordText.... |
"private ExpressionButton createExpressionButton(Composite composite, final Text property) {\n ExpressionButton exprButton = UIUtil.createExpressionButton(composite, SWT.PUSH);\n if (handle == null) {\n handle = DesignElementFactory.getInstance(getModuleHandle()).newOdaDataSet(null);\n }\n IExpressio... |
"private void openTestCasePopUp(final TestCaseEditor editor) {\n final ISpecTestCasePO parentNode = (ISpecTestCasePO) editor.getTreeViewer().getTree().getItem(0).getData();\n if (hasTestCaseAllEventHandler(parentNode)) {\n return;\n }\n String title = Messages.AddEventHandlerActionAddEventHandler;\n ... |
"private static String generateMultiValueInExpr(SqlQuery sqlQuery, Map<RolapLevel, RolapStar.Column> levelToColumnMap, Map<String, RolapStar.Table> relationNamesToStarTableMap, List<RolapMember> members, RolapLevel fromLevel, boolean restrictMemberTypes, Map<RolapMember, List<RolapMember>> parentWithNullToChildrenMap) ... |
"public String getName() {\n String fullName = \"String_Node_Str\";\n if (prefixName != null) {\n fullName += (tickName ? QueryBuilder.quoteIfNeeded(prefixName) : prefixName) + \"String_Node_Str\";\n }\n if (name != null) {\n fullName += (tickName ? QueryBuilder.quote(name) : getNamePropertyRa... |
"private void populate() {\n if (!isPopulated) {\n isPopulated = true;\n Map<SSAInstruction, Integer> instructionIndices = computeInstructionIndices(ir);\n createNodes(ref, cOptions, ir);\n createScalarEdges(cOptions, ir, instructionIndices);\n }\n}\n"
|
"public boolean tryToExpand(double splitConfidence, double tieThreshold) {\n boolean shouldSplit = false;\n AttributeExpansionSuggestion[] bestSplitSuggestions = this.getBestSplitSuggestions(splitCriterion);\n Arrays.sort(bestSplitSuggestions);\n int[] oldInputs = inputsToLearn.clone();\n inputsToLearn =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.