content stringlengths 40 137k |
|---|
"public static Bounds reprojectBounds(final Bounds bounds, final String epsg) {\n if (epsg != null && !(epsg.equalsIgnoreCase(\"String_Node_Str\"))) {\n SpatialReference src = new SpatialReference(GDALUtils.EPSG4326());\n SpatialReference dst = new SpatialReference();\n dst.SetFromUserInput(srs)... |
"public boolean nextKeyValue() throws IOException, InterruptedException {\n events.clear();\n if (reader.read(events, 1, 0, TimeUnit.SECONDS, readFilter) <= 0) {\n return false;\n }\n PositionStreamEvent streamEvent = events.get(0);\n if (streamEvent.getStart() - inputSplit.getStart() >= inputSpli... |
"private void generateJavaFile() {\n final IWorkspaceRunnable op = new IWorkspaceRunnable() {\n public void run(IProgressMonitor monitor) throws CoreException {\n Node node = (Node) elem;\n IProcess process = node.getProcess();\n String jobName = process.getName();\n ... |
"public void readFromJarTest() throws IOException {\n final ClassPathResource resource = new ClassPathResource(\"String_Node_Str\");\n String result = resource.readUtf8Str();\n Assert.assertNotNull(result);\n result = resource.readUtf8Str();\n Assert.assertNotNull(result);\n}\n"
|
"private ListChangeListener<Integer> createParentsChangeListener() {\n WeakReference<IssueIndicatorsDisplayBox> that = new WeakReference<IssueIndicatorsDisplayBox>(this);\n ChangeListener<Number> changeListener = new ChangeListener<Number>() {\n\n public void onChanged(ListChangeListener.Change<? extends I... |
"private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {\n PresenceInfo[] info = pm.getAllUsers();\n String alias = usernameAliasTextField.getText();\n for (int i = 0; i < info.length; i++) {\n if (info[i].usernameAlias.equals(alias) || info[i].userID.getUsername().equals(alias)) {\n ... |
"public static void init(CppSemantics semantics, RuleContext ruleContext, RuleConfiguredTargetBuilder targetBuilder, LinkTargetType linkType, boolean neverLink, boolean linkStatic, boolean collectLinkstamp, boolean addDynamicRuntimeInputArtifactsToRunfiles) throws RuleErrorException, InterruptedException {\n Feature... |
"public void testWriteLastRiverRunTimeToCustomRiverInfo(String riverResource) throws IOException {\n final Client client = client(\"String_Node_Str\");\n setupContext(new MockRiverSource() {\n public void fetch() {\n }\n }, riverResource);\n Map<String, Object> spec = (Map<String, Object>) riv... |
"private void bindViewChatMessage(View view, ChatMessage chatMessage) {\n ViewHolder holder = (ViewHolder) view.getTag();\n holder.tvUser.setText(chatMessage.getMember().getDisplayName());\n holder.tvMessage.setText(chatMessage.getText());\n holder.tvTimestamp.setText(chatMessage.getTimestampString(mContext... |
"public Object toMongoObject(final Object javaObj, boolean includeClassName) {\n if (javaObj == null) {\n return null;\n }\n Class origClass = javaObj.getClass();\n Object newObj = converters.encode(origClass, javaObj);\n if (newObj == null) {\n log.warning(\"String_Node_Str\" + javaObj + \... |
"public void testWrongCredentialsOnCreateIssue() throws RuntimeException {\n RedmineManager redmineMgrEmpty = new RedmineManager(Config.getURI(), null);\n Issue issue = new Issue();\n issue.setSubject(\"String_Node_Str\");\n try {\n redmineMgrEmpty.createIssue(projectKey, issue);\n fail(\"Stri... |
"protected String getMonitorLogin() throws Exception {\n StringBuilder res = new StringBuilder();\n List<String> usernames = new ArrayList<String>();\n List<String> passwords = new ArrayList<String>();\n String[] tmpVals;\n for (Application app : applications) {\n tmpVals = app.getSettingsValues(C... |
"public void run() {\n if (!isRaining || player.isDead()) {\n wetPlayers.remove(player);\n this.cancel();\n } else if (player.getLocation().getWorld().getName().equalsIgnoreCase(Settings.worldName)) {\n Collection<PotionEffect> activePotions = player.getActivePotionEffects();\n for (Po... |
"public void changed(ObservableValue ov, Profile t, Profile selectedProfil) {\n try {\n refreshTablePosition(pservice.getAllPositions());\n int selectedProfilID = ((Profile) profilList.getSelectionModel().getSelectedItem()) == null ? 0 : ((Profile) profilList.getSelectionModel().getSelectedItem()).getI... |
"public void setSize(int value) {\n this.datawatcher.watch(16, new Byte((byte) value));\n Float[] entitySize = MyPet.getEntitySize(MySlime.class);\n this.a(entitySize[0] * value, entitySize[1] * value);\n ((MySlime) myPet).size = value;\n}\n"
|
"public DataCell getCell(DataRow row) {\n DataCell dcell0 = row.getCell(idCol);\n DataCell dcell1 = row.getCell(idRow);\n String ConvData0 = dcell0.toString();\n String ConvData1 = dcell1.toString();\n if (dcell0.isMissing() || dcell1.isMissing()) {\n return DataType.getMissingCell();\n } else ... |
"public void testClusterAllocatorWithTags() {\n try {\n createDb();\n StoragePoolDetailVO detailVO = new StoragePoolDetailVO(this.storagePoolId, \"String_Node_Str\", \"String_Node_Str\", true);\n poolDetailsDao.persist(detailVO);\n DiskOfferingVO diskOff = this.diskOfferingDao.findById(di... |
"protected Result onRunJob(Params params) {\n NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);\n PushConfigurationState pushConfigurationState;\n for (Object userEntityObject : userUtils.getUsersScheduledForDeletion()) {\n UserEntity userEntity = (UserEntity) userE... |
"public void invalidFileTest() throws IOException {\n String csv = String.join(System.lineSeparator(), \"String_Node_Str\", \"String_Node_Str\");\n StringAnonymizer anonymizer = fromCsv(csv);\n assertEquals(1, anonymizer.getStringCount());\n}\n"
|
"final boolean resumeTopActivityLocked(ActivityRecord prev, Bundle options) {\n ActivityRecord next = topRunningActivityLocked(null);\n final boolean userLeaving = mStackSupervisor.mUserLeaving;\n mStackSupervisor.mUserLeaving = false;\n if (next == null) {\n ActivityOptions.abort(options);\n ... |
"private void updateColorTemperature() {\n mHandler.removeCallbacks(mTransitionRunnable);\n int temperature = mDayTemperature;\n int mode = getMode();\n if (mode == MODE_OFF || isLowPowerMode()) {\n temperature = mDefaultDayTemperature;\n } else if (mode == MODE_NIGHT) {\n temperature = mNi... |
"private int identifier(int c, boolean commandState) throws IOException {\n if (!isIdentifierChar(c)) {\n String badChar = \"String_Node_Str\" + Integer.toOctalString(c & 0xff);\n throw new SyntaxException(PID.CHARACTER_BAD, getPosition(), getCurrentLine(), \"String_Node_Str\" + badChar + \"String_Node... |
"private void modifyMovedMethodInvocationInSourceClass() {\n ExpressionExtractor expressionExtractor = new ExpressionExtractor();\n MethodDeclaration[] methodDeclarations = sourceTypeDeclaration.getMethods();\n for (MethodDeclaration methodDeclaration : methodDeclarations) {\n Block methodBody = methodD... |
"public void onClick(View v) {\n ((BottomBarActivity) mContext).setFragment(GiftCategoryFilterFragment.newInstance(categories.get(i)), GiftCategoryFilterFragment.class.getName());\n}\n"
|
"private String getFontFamily(IStyle c_style, Chunk ch) {\n FontInfo info = ch.getFontInfo();\n if (info != null) {\n fontFamily = info.getFontName();\n } else {\n fontFamily = c_style.getFontFamily();\n }\n return fontFamily;\n}\n"
|
"public void setContentType(String type) {\n String mimeType = StringUtils.stringCharacterEncoding(type);\n if (!isValidContentType(mimeType)) {\n throw new IllegalArgumentException(mimeType);\n }\n this.getHttpServletResponse().setContentType(mimeType);\n this.currentContentType = mimeType;\n}\n"... |
"public Instances createTrainingInstances() {\n ArrayList<Attribute> attributes = new ArrayList<Attribute>();\n for (int i = 1; i <= featureStackArray.getNumOfFeatures(); i++) {\n String attString = featureStackArray.getLabel(i);\n attributes.add(new Attribute(attString));\n }\n final ArrayLis... |
"public void initialize() throws IllegalActionException {\n _iterationCount = 0;\n _unitIndex = 0;\n _expectedNextIterationTime = 0.0;\n Iterator receivers = _receivers.iterator();\n while (receivers.hasNext()) {\n GiottoReceiver receiver = (GiottoReceiver) receivers.next();\n receiver.rese... |
"private <T> SuccessAndResult<T> topologicalSort(List<T> list, Predicate<T> isKnown) {\n List<T> remaining = list;\n List<T> newList = Lists.newArrayList();\n int prevSize = 0;\n while (prevSize != remaining.size()) {\n prevSize = remaining.size();\n List<T> bad = Lists.newArrayList();\n ... |
"private void renderDetailBand(GL gl, DetailBand detailBand, boolean highlight) {\n ArrayList<Integer> contentIDs = detailBand.getContentIDs();\n int startContentID = contentIDs.get(0);\n int endContentID = contentIDs.get(contentIDs.size() - 1);\n HeatMapWrapper leftHeatMapWrapper = heatMapWrappers.get(0);\... |
"protected void setup(final Context context) throws IOException, InterruptedException {\n final Configuration conf = context.getConfiguration();\n if (!EoulsanRuntime.isRuntime()) {\n HadoopEoulsanRuntime.newEoulsanRuntime(conf);\n }\n this.counterGroup = conf.get(Globals.PARAMETER_PREFIX + \"String_... |
"private Map<String, DataRight> getClassificationToDataRights(QueryBuilder query) {\n Map<String, DataRight> toReturn = new HashMap<String, DataRight>();\n ArtifactReadable footerMappingArt = query.andIds(MAPPING_ARTIFACT).getResults().getOneOrNull();\n if (footerMappingArt != null) {\n List<String> foo... |
"public String commitAction() {\n URIBuilder requestUri = MMSUtils.getServiceOrgsUri(project);\n if (requestUri == null) {\n return null;\n }\n JFrame selectionDialog = new JFrame();\n String org = JOptionPane.showInputDialog(selectionDialog, \"String_Node_Str\");\n if (org == null) {\n ... |
"public Control createOutlineContents(Composite parent, int direction) {\n final Splitter splitter = new Splitter(parent, direction);\n final CompareViewerPane pane = new CompareViewerPane(splitter, SWT.NONE);\n structureMergeViewer = new CompareModelStructureMergeViewer(pane, getCompareConfiguration());\n ... |
"private static byte[] injectFSPermissionCheckerHooks(ClassLoader aClassLoader, String aClassName, Class<?> aClassBeingRedefined, ProtectionDomain aProtectionDomain, byte[] aClassFileBuffer) throws IllegalClassFormatException {\n byte[] ret = null;\n System.out.println(\"String_Node_Str\" + Runtime.getRuntime() +... |
"static Bitmap applyDebugColorFilter(Bitmap source, int loadedFrom) {\n int color = RequestMetrics.getColorCodeForCacheHit(loadedFrom);\n ColorFilter filter = new LightingColorFilter(color, 1);\n Paint paint = new Paint();\n paint.setColorFilter(filter);\n Bitmap output = Bitmap.createBitmap(source.getWi... |
"protected void notifyRiskIncidenceDeleted(String riskIncidenceId) {\n for (ModelObserver observer : observers) {\n observer.riskIncidenceDeleted(riskIncidenceId, commit);\n }\n}\n"
|
"private boolean isRepository(INode node) {\n IElementParameter schemaParam = node.getElementParameter(\"String_Node_Str\");\n if (schemaParam != null) {\n String schemaType = (String) schemaParam.getValue();\n if (schemaType.equals(\"String_Node_Str\")) {\n return true;\n }\n }... |
"void performDisableActions(int net) {\n int old = mDisabled;\n int diff = net ^ old;\n mDisabled = net;\n if ((diff & StatusBarManager.DISABLE_EXPAND) != 0) {\n if ((net & StatusBarManager.DISABLE_EXPAND) != 0) {\n animateCollapse();\n }\n }\n if ((diff & StatusBarManager.DIS... |
"public void stop() throws LifecycleException {\n if (log.isLoggable(Level.FINE))\n log.fine(\"String_Node_Str\");\n if (!isStarted()) {\n if (log.isLoggable(Level.INFO)) {\n log.info(sm.getString(\"String_Node_Str\"));\n }\n return;\n }\n lifecycle.fireLifecycleEvent(... |
"public void send(final String receiver, final String subject, final TemplateService.Template template, final Map<String, Object> context) {\n MimeMessage mimeMessage = javaMailSender.createMimeMessage();\n MimeMessageHelper msg = new MimeMessageHelper(mimeMessage);\n if (!StringUtil.isNullOrEmpty(receiver)) {... |
"protected IValue resolveCall(MarkerList markers, IContext context) {\n int args = this.arguments.size();\n if (args == 1) {\n IValue op;\n if (this.instance != null) {\n op = Operators.getPriority(this.instance, this.name, this.arguments.getFirstValue());\n } else {\n o... |
"public void run() {\n try {\n byte[] peeked = queueFile.peek();\n if (peeked != null) {\n T peekedBatch = serializationStrategy.deserializeBatch(peeked);\n if (batch != null && batch.equals(peekedBatch)) {\n queueFile.remove();\n } else {\n ... |
"private int shareCheck(String world1, String world2) {\n if (plugin.sharesMap.containsKey(world1)) {\n if (plugin.sharesMap.containsKey(world2)) {\n return 3;\n }\n return 1;\n }\n if (plugin.sharedNames.contains(world2)) {\n return 2;\n }\n return 0;\n}\n"
|
"public void leaveClass() {\n int i = _previousClasses.size() - 1;\n while (i >= 0 && !(_previousClasses.get(i) instanceof Class)) i--;\n _currentClass = i >= 0 ? (Class) _previousClasses.get(i) : null;\n _previousClasses.pop();\n _anonymousCounts.pop();\n _loader.setCurrentClass(_currentClass, false)... |
"public void replayTransaction(TransactionInternal txn) throws BabuDBException {\n for (OperationInternal operation : txn) {\n byte type = operation.getType();\n if (type != Operation.TYPE_COPY_DB && type != Operation.TYPE_CREATE_DB && type != Operation.TYPE_DELETE_DB) {\n InMemoryProcessing... |
"public void cardReaded(Car car) {\n if (car != null) {\n wheel1.setText(Integer.toString(car.getWheel1().getRadius()));\n wheel2.setText(Integer.toString(car.getWheel2().getRadius()));\n wheel3.setText(Integer.toString(car.getWheel3().getRadius()));\n wheel4.setText(Integer.toString(car.... |
"private IVirtualArray cluster(ISet set, ClusterState clusterState) {\n ArrayList<Integer> indices = new ArrayList<Integer>();\n StringBuffer buffer = new StringBuffer();\n buffer.append(\"String_Node_Str\");\n IVirtualArray contentVA = set.getVA(iVAIdContent);\n IVirtualArray storageVA = set.getVA(iVAId... |
"public void execute(IssuedCommand issuedCommand) {\n turnResult.turnLength = gameState.getHero().parseEquip(issuedCommand);\n}\n"
|
"final static private int colorVector(float xs, float ys) {\n xs /= maxDistance;\n ys /= maxDistance;\n final double a = Math.sqrt(xs * xs + ys * ys);\n if (a == 0.0)\n return 0;\n double o = (Math.atan2(xs / a, ys / a) + Math.PI) / Math.PI * 3;\n final double r, g, b;\n if (o < 3)\n ... |
"public void onClick(MaterialDialog dialog, DialogAction which) {\n String[] s;\n String ipa = ip.getText().toString();\n String con_nam = con_name.getText().toString();\n String sDomain = domain.getText().toString();\n String username = user.getText().toString();\n TextInputLayout firstInvalidField =... |
"protected HL7TreeNode addElement(HL7TreeNode current, String currentPath, String newPath, String defaultValue) {\n String name = newPath.substring(newPath.lastIndexOf(\"String_Node_Str\") + 1);\n String parentPath = \"String_Node_Str\";\n if (newPath.contains(\"String_Node_Str\")) {\n parentPath = newP... |
"public ListItemsResults getItemsUntil(List<Filter> filters, int offset, int length, String setSpec, Date from) {\n filters.add(new Filter(new DateUntilFilter(from), FilterScope.Query));\n filters.add(new Filter(new DspaceSetSpecFilter(setSpec), FilterScope.Query));\n return this.getItems(filters, offset, leng... |
"private void loadMap() {\n try {\n setURI(getClass().getResource(mapManager.getMapImageFilepath()).toString());\n } catch (Exception e) {\n log.error(\"String_Node_Str\" + mapManager.getMapImageFilepath(), e);\n }\n addGVTTreeRendererListener(new GVTTreeRendererAdapter() {\n public voi... |
"public Map<String, Integer> swipeView(File viewroot, boolean excludeRoot) {\n logger.debug(viewroot.toString());\n File[] files = viewroot.listFiles();\n String fls = \"String_Node_Str\";\n List<File> notVobs = new ArrayList<File>();\n List<File> rootVPFiles = new ArrayList<File>();\n for (File f : f... |
"public FleaseMessage getLocalLeaseInformation(ASCIIString cellId) {\n FleaseAcceptorCell cc = getCell(cellId);\n return cc.getLatestLearn();\n}\n"
|
"public static Pair<SegmentHeader, SegmentBody> rollup(Map<SegmentHeader, SegmentBody> map, Set<String> keepColumns, BitKey targetBitkey, Aggregator rollupAggregator) {\n class AxisInfo {\n SegmentColumn column;\n SortedSet<Comparable> requestedValues;\n SortedSet<Comparable> valueSet;\n ... |
"private void processPhonebookAccess() {\n if (mDevice.getBondState() != BluetoothDevice.BOND_BONDED)\n return;\n ParcelUuid[] uuids = mDevice.getUuids();\n if (BluetoothUuid.containsAnyUuid(uuids, PbapServerProfile.PBAB_CLIENT_UUIDS)) {\n if (getPhonebookPermissionChoice() == CachedBluetoothDevi... |
"public void onSuccess(Void result) {\n Toast.showInfo(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
|
"public void shouldRemoveSelectedCommodityFromListWhenCancelButtonIsClicked() {\n CommodityToggledEventDetails eventDetails = fireCommodityToggledEvent(getDispenseActivity());\n SelectedCommoditiesAdapter adapter = eventDetails.dispenseActivity.selectedCommoditiesAdapter;\n ImageButton cancelButton = (ImageBut... |
"public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n Collection collection = submission.getCollection();\n String actionURL = IdentifierService.getURL(collection).toString() + \"String_Node_Str\" + knot.getId() + \"String_Node_Str\";\n ... |
"private static Map<CustomType, List<AbstractRewardSource>> loadCustomSources(FileConfiguration config) {\n Map<CustomType, List<AbstractRewardSource>> sources = new HashMap<CustomType, List<AbstractRewardSource>>();\n ConfigurationSection tableConfig = config.getConfigurationSection(\"String_Node_Str\");\n Co... |
"public Inventory challengePanel(Player player, String level) {\n List<CPItem> cp = new ArrayList<CPItem>();\n if (level.isEmpty() && !challengeList.containsKey(\"String_Node_Str\")) {\n if (!Settings.challengeLevels.isEmpty()) {\n level = Settings.challengeLevels.get(0);\n } else {\n ... |
"public boolean marshal(MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver, org.eclipse.persistence.oxm.XMLMarshaller marshaller, MarshalContext marshalContext) {\n if ((null == marshalNodeValue) || marshalNodeValue.isMarshalOnlyNodeValue()) {\n marshalRec... |
"protected void updateBeliefs() {\n sampler.setEvidence(evidence);\n for (int i = 0; i < sampleCount; i++) {\n final Map<BayesNode, String> sample = sampler.sample();\n final double weight = computeEvidenceProbability(sample);\n for (final Entry<Integer, Integer> e : BayesUtils.toIntegerMap(s... |
"public static StreamRuntime parseInputStream(JoinInputStream joinInputStream, ExecutionPlanContext executionPlanContext, Map<String, AbstractDefinition> streamDefinitionMap, Map<String, AbstractDefinition> tableDefinitionMap, Map<String, EventTable> eventTableMap, List<VariableExpressionExecutor> executors, LatencyTra... |
"private void readMap(final DBObject dbObject, final MappedField mf, final Object entity, final Reference refAnn, EntityCache cache, Mapper mapr) {\n Class referenceObjClass = mf.getSubClass();\n Map map = mapr.getOptions().objectFactory.createMap(mf);\n BasicDBObject dbVal = (BasicDBObject) mf.getDbObjectValu... |
"private void addModulesToCache(Set<String> mavenUristoSearch, List<MavenArtifact> searchResults, Map<String, ModuleToInstall> theCache) {\n for (MavenArtifact artifact : searchResults) {\n String artifactId = artifact.getArtifactId();\n String packageName = artifact.getType();\n if (packageName... |
"public ITypeModel getJAXBType() {\n Class<?> type = null;\n if (Utils.isCollection(element.getType())) {\n Type gType = element.getGenericType();\n if (gType instanceof ParameterizedType) {\n Type[] args = ((ParameterizedType) gType).getActualTypeArguments();\n if (args != nul... |
"private ElementDefinition processPaths(String indent, StructureDefinitionSnapshotComponent result, StructureDefinitionSnapshotComponent base, StructureDefinitionDifferentialComponent differential, int baseCursor, int diffCursor, int baseLimit, int diffLimit, String url, String profileName, String contextPathSrc, Strin... |
"public IStatus doAction() {\n try {\n XSDParticle particle = (XSDParticle) xsdPartle;\n if (particle == null) {\n ISelection selection = page.getTreeViewer().getSelection();\n particle = (XSDParticle) ((IStructuredSelection) selection).getFirstElement();\n }\n XSDTe... |
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n String sentence = (String) msg;\n Matcher parser = heartbeatPattern.matcher(sentence);\n if (parser.matches()) {\n if (channel != null) {\n channel.write(\"String_Node_Str\" + parser.group(... |
"protected void init(PARENT parent, T e, InputPanel[] inputs) {\n this.e = e;\n this.parent = parent;\n this.i = inputs;\n getCenterPanel().clear();\n for (InputPanel i : inputs) {\n addInputPanel(i);\n }\n if (e == null) {\n setTitle(\"String_Node_Str\");\n } else {\n setTi... |
"private static long readTime(byte[] rowKey) {\n return BytesUtils.bytesToLong(rowKey, PinpointConstants.AGENT_NAME_MAX_LEN);\n}\n"
|
"public void rollback() {\n if (instanceType == Instance.InstanceType.QUEUE) {\n rollbackQueue();\n else\n rollbackMap();\n}\n"
|
"protected void paintGrid(Graphics g, IFigure f, org.eclipse.draw2d.geometry.Point origin, int distanceX, int distanceY) {\n FreeformFigure ff = (FreeformFigure) this.getParent();\n Rectangle clientArea = getClientArea();\n Rectangle bounds = ff.getFreeformExtent().getCopy();\n bounds.union(clientArea.x, cl... |
"protected void loadTopBar() {\n topBar.setSpacing(100);\n topBar.getChildren().addAll(commentsDetailsDisp, controlsBox);\n}\n"
|
"public boolean applies(GameEvent event, Ability source, Game game) {\n MageObject mageObject = game.getObject(event.getSourceId());\n return mageObject != null && mageObject.getCardType().contains(CardType.LAND);\n}\n"
|
"public void create(Table table) {\n drawDebug = true;\n shapeRenderer = new ShapeRenderer();\n spriteBatch = new SpriteBatch();\n world = createWorld();\n createRandomWalls(8);\n character = createSteeringEntity(world, container.greenFish);\n character.setMaxLinearSpeed(2);\n character.setMaxLi... |
"private Function getAvailableFunFromValue(String value, List<Function> funs) {\n Function currentFun = null;\n if ((\"String_Node_Str\").equals(bean.getTalendType()) && value != null && value.split(\"String_Node_Str\").length > 3 && value.split(\"String_Node_Str\").length > 3) {\n int index = -1;\n ... |
"public void testIArrayLike8() throws Exception {\n testTypesWithExtraExterns(EXTERNS_WITH_IARRAYLIKE_DECLS, LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\"), LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n}\n"
|
"public void cancel(IRecognitionListener listener) {\n if (DBG)\n Log.d(TAG, \"String_Node_Str\" + listener.asBinder());\n if (mInternalService != null && mInternalService.checkPermissions(listener)) {\n mInternalService.mHandler.sendMessage(Message.obtain(mInternalService.mHandler, MSG_CANCEL, list... |
"protected Object getKeyObject(ResultSet rs, String colname) throws SQLException {\n return rs.getInt(colname);\n}\n"
|
"boolean remove(long key) throws SQLException {\n int i = find(key);\n if (keys[i] != key) {\n throw Message.getSQLException(ErrorCode.ROW_NOT_FOUND_WHEN_DELETING_1, index.getSQL() + \"String_Node_Str\" + key);\n }\n index.getPageStore().logUndo(this, data);\n if (entryCount == 1) {\n freeR... |
"public void createContent(String id, Element parent) {\n Document dom = parent.getOwnerDocument();\n if (ContentConstants.INSERT_DATA.equals(id)) {\n Element tr = dom.createElement(\"String_Node_Str\");\n Element td = dom.createElement(\"String_Node_Str\");\n String style = \"String_Node_Str... |
"public double computeLogBaseMeasure(DataInstance dataInstance) {\n return -0.5 * Math.log(2 * Math.PI);\n}\n"
|
"public void setUp() throws Exception {\n super.setUp();\n setupBuildFile(\"String_Node_Str\");\n new EclipseProjectBuilder(\"String_Node_Str\").withNature(\"String_Node_Str\").createIn(getWorkspaceDir());\n}\n"
|
"protected String constructName() {\n if (property == null) {\n return null;\n }\n StringBuffer buffer = new StringBuffer();\n String name = property.getName();\n buffer.append(name);\n buffer.append(EMPTY_SPACE);\n buffer.append(COLON);\n buffer.append(EMPTY_SPACE);\n String type = pr... |
"private Actor _dequeueEvents() {\n Actor actorToFire = null;\n DEEvent currentEvent = null, nextEvent = null;\n int currentDepth = 0;\n if (_eventQueue == null)\n return null;\n while (true) {\n if (_stopWhenQueueIsEmpty) {\n if (_eventQueue.isEmpty()) {\n break;\... |
"private Properties loadInput() throws IOException {\n Properties props = new Properties();\n try {\n if (fromXML) {\n props.loadFromXML(input);\n } else {\n props.load(input);\n }\n return props;\n } finally {\n input.close();\n }\n return props;\... |
"protected Control createDialogArea(final Composite parent) {\n parent.setLayout(SWTUtil.createGridLayout(1));\n final DynamicTable table = new DynamicTable(parent, SWT.BORDER | SWT.SINGLE | SWT.V_SCROLL | SWT.FULL_SELECTION);\n table.setHeaderVisible(true);\n final GridData d = SWTUtil.createFillGridData()... |
"public static void main(String[] args) {\n if (args.length < 1 || !args[0].equals(\"String_Node_Str\")) {\n System.out.println(\"String_Node_Str\");\n System.exit(1);\n }\n Logging.start(Logging.LEVEL_ERROR, Category.tool);\n userCredentials = UserCredentials.newBuilder().setUsername(\"String... |
"protected String dump(boolean canonical) {\n if (canonical) {\n StringBuffer buf = new StringBuffer();\n int ln = getRegulatedChildCount();\n for (int i = 0; i < ln; i++) {\n buf.append(getRegulatedChild(i).getCanonicalForm());\n }\n return buf.toString();\n } else {... |
"public OTUserObject registerUserDataDatabase(OTDatabase userDataDb, String name) throws Exception {\n addDatabase(userDataDb);\n OTReferenceMap refMap = getReferenceMapFromUserDb(userDataDb);\n OTUser user = refMap.getUser();\n OTUserObject aUser = (OTUserObject) user;\n if (name != null) {\n aUs... |
"private void activate() {\n JRootPane root = SwingUtilities.getRootPane(myEditor.getContentComponent());\n myOldGlass = (JComponent) root.getGlassPane();\n if (myOldGlass != null) {\n myOldLayout = myOldGlass.getLayout();\n myWasOpaque = myOldGlass.isOpaque();\n myOldGlass.setLayout(null)... |
"private void fireSelectionChanged() {\n if (lastChangedIndex == MIN || noFireEvent) {\n return;\n }\n int oldFirstChangedIndex = firstChangedIndex;\n int oldLastChangedIndex = lastChangedIndex;\n firstChangedIndex = MAX;\n lastChangedIndex = MIN;\n fireEvent(ListDataEvent.SELECTION_CHANGED,... |
"public void doSave(IProgressMonitor monitor) {\n this.saveInProgress = true;\n try {\n if (xmlEditor != null && this.getCurrentPage() == 1) {\n xmlEditor.doSave(monitor);\n ((AFormPage) (formPages.get(0))).refreshPage();\n return;\n }\n int numPages = formPag... |
"public Object genericFromSerialized(String propertiesStr, String value) {\n Deserialized fromSerialized = ComponentProperties.fromSerialized(propertiesStr);\n if (fromSerialized != null) {\n ComponentProperties componentProperties = fromSerialized.properties;\n return ComponentsUtils.getGenericProp... |
"public Community[] getCommunities(String expand, Integer limit, Integer offset, String user_ip, String user_agent, String xforwarderfor, HttpHeaders headers, HttpServletRequest request) throws WebApplicationException {\n log.info(\"String_Node_Str\" + offset + \"String_Node_Str\" + limit + \"String_Node_Str\");\n ... |
"protected void initConnectionParametersWithContext(IElement element, IContext context) {\n if (connParameters == null) {\n connParameters = new ConnectionParameters();\n }\n String dbType = connParameters.getDbType();\n Object value = elem.getPropertyValue(\"String_Node_Str\");\n IElementParamete... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.