content stringlengths 40 137k |
|---|
"public Object poll(final String name, long timeout) throws InterruptedException {\n if (timeout == -1) {\n timeout = Long.MAX_VALUE;\n }\n Object removedItem = null;\n long start = Clock.currentTimeMillis();\n while (removedItem == null && timeout >= 0) {\n Data key = takeKey(name, timeout... |
"protected void drawHighlights() {\n if (mHighlightEnabled && valuesToHighlight()) {\n float offsetY = mDeltaY * 0.04f;\n for (int i = 0; i < mIndicesToHightlight.length; i++) {\n int index = mIndicesToHightlight[i];\n if (index < mYVals.size() && index >= 0) {\n mH... |
"private void createButtonComposite() {\n Composite composite = new Composite(mainControl, SWT.NONE);\n GridData gd = new GridData();\n gd.verticalIndent = -5;\n gd.verticalAlignment = SWT.BEGINNING;\n composite.setLayoutData(gd);\n composite.setLayout(new GridLayout());\n SelectionAdapter listener... |
"public void widgetSelected(SelectionEvent e) {\n WebArtifactUtil.setContextParamValue(properties, BIRT_OVERWRITE_DOCUMENT_SETTING, BLANK_STRING + ((Button) e.getSource()).getSelection());\n}\n"
|
"private String getCompatDistinguishSalt(String previousSalt) {\n String saltMd5 = SoterCoreUtil.getMessageDigest(previousSalt.getBytes(Charset.forName(\"String_Node_Str\")));\n if (!SoterCoreUtil.isNullOrNil(saltMd5) && saltMd5.length() >= MAX_SALT_STR_LEN) {\n return saltMd5.substring(0, MAX_SALT_STR_LEN... |
"public void moveViewToY(float yValue, AxisDependency axis) {\n float valsInView = getDeltaY(axis) / mViewPortHandler.getScaleY();\n Runnable job = new MoveViewJob(mViewPortHandler, 0f, yValue + valsInView / 2f, getTransformer(axis), this);\n if (mViewPortHandler.hasChartDimens()) {\n post(job);\n } ... |
"private void createChoicePart(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n composite.setLayout(new GridLayout(2, true));\n Label dataSetModeLabel = new Label(composite, SWT.NONE);\n dataSetModeLabel.setT... |
"protected void okPressed() {\n ProgressMonitorDialog pmd = new ProgressMonitorDialog(getShell());\n IRunnableWithProgress rwp = new IRunnableWithProgress() {\n public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n IProxyRepositoryFactory prf = Core... |
"public void onDisconnect() {\n couldNotOpenConnection = true;\n selfDestroyService();\n}\n"
|
"public List<String> selectList(String text) {\n List<String> results = new ArrayList<String>();\n try {\n HtmlCleaner htmlCleaner = new HtmlCleaner();\n TagNode tagNode = htmlCleaner.clean(text);\n Document document = new DomSerializer(new CleanerProperties()).createDOM(tagNode);\n Ob... |
"public void tearDown() {\n listenableStorage.removeListeners();\n}\n"
|
"private void foreachArray(Context context, ForeachLoop loop) throws UserException, UndefinedTypeException {\n Var arrayVar = exprWalker.eval(context, loop.getArrayVarTree(), loop.findArrayType(context), true, null);\n ArrayList<Var> usedVariables = new ArrayList<Var>();\n ArrayList<Var> keepOpenVars = new Arr... |
"public void setButtonType(int type) {\n addFriendBtn.setTag(R.id.button_type, type);\n switch(type) {\n case 1:\n shrinkButton.setText(mRes.getString(R.string.sendMessage));\n break;\n case 2:\n shrinkButton.setText(mRes.getString(R.string.add_friend));\n ... |
"public void add(ObjectName resource) {\n String knowledgeSessionId = String.valueOf(resource.getKeyProperty(\"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\"));\n String knowledgeBaseId;\n try {\n knowledgeBaseId = (String) connector.getConnection().getAttribute(resource, \"String_N... |
"public void caseAssignStmt(AssignStmt stmt) {\n Value lhs = stmt.getLeftOp();\n Value rhs = stmt.getRightOp();\n Type tlhs = null;\n if (lhs instanceof Local)\n tlhs = this.tg.get((Local) lhs);\n else if (lhs instanceof ArrayRef) {\n ArrayRef aref = (ArrayRef) lhs;\n Local base = (L... |
"protected void sendUnregister(RemoteServiceRegistrationImpl serviceRegistration) {\n Trace.entering(Activator.PLUGIN_ID, IRemoteServiceProviderDebugOptions.METHODS_ENTERING, this.getClass(), \"String_Node_Str\", new Object[] { serviceRegistration });\n synchronized (localRegistry) {\n localRegistry.unpubl... |
"public static void computeXTextSize(XText xText) {\n if (Widgets.isAccessible(xText.getStyledText())) {\n int lineCount = xText.getStyledText().getLineCount();\n int lineLimit = Integer.valueOf(OseeInfo.getCachedValue(ATTR_FORM_PART_LINE_LIMIT));\n lineCount = lineCount > lineLimit ? lineLimit ... |
"public void initialize() throws IllegalActionException {\n super.initialize();\n Runnable doInitialize = new Runnable() {\n public void run() {\n if (shell == null) {\n Effigy containerEffigy = Configuration.findEffigy(toplevel());\n if (containerEffigy == null) {\... |
"public void veryHardShouldProduceCertainAmountOfSoldiersWithin85Minutes() throws MapLoadException {\n PlayerSetting[] playerSettings = getDefaultPlayerSettings(12);\n playerSettings[0] = new PlayerSetting(EPlayerType.AI_VERY_HARD, ECivilisation.ROMAN, (byte) 0);\n JSettlersGame.GameRunner startingGame = creat... |
"protected String doInBackground(Void... u) {\n OSClient osc = OSClient.getInstance(U);\n try {\n jsonBufQuota = osc.listQuotas();\n Command cmd = Command.commandFactory(Command.commandType.LISTSERVERS, U);\n if (cmd != null)\n cmd.execute();\n else {\n hasError =... |
"public void writeByte(int value) {\n throw new UnsupportedOperationException(getClass().getName());\n}\n"
|
"private void buildModel(IloCplex cplex, DmvSolution initFeasSol) throws IloException {\n this.bounds = new CptBounds(this.idm);\n mp = new LpProblem();\n mp.origMatrix = cplex.LPMatrix(\"String_Node_Str\");\n sto.init(cplex, mp.origMatrix, idm, bounds);\n int numConds = idm.getNumConds();\n sto.creat... |
"private boolean isNodeDefaultColumn(String id) {\n for (NodeColumnsGDF c : defaultNodeColumnsGDFs) {\n if (c.title.equalsIgnoreCase(id)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public String getValue(final int row, final int col) {\n checkRegistry();\n checkColumn(col);\n checkRow(row, outputGeneralized.getDataLength());\n return internalGetValue(row, col);\n}\n"
|
"protected void println(final LogLevel level, final Throwable t, final String format, final Object... args) {\n if (this.level.includes(level) && (t != null || format != null)) {\n String message = null;\n if (format != null && format.length() > 0) {\n message = (args != null && args.length ... |
"public void read(PortableReader reader) throws IOException {\n threadId = reader.readInt(\"String_Node_Str\");\n super.read(reader);\n final ObjectDataInput in = reader.getRawDataInput();\n value = new Data();\n value.readData(in);\n}\n"
|
"public void paint(Graphics g) {\n super.paint(g);\n if (points.size() > 4) {\n Random random = new Random(0);\n for (VectorXYZ p : points) {\n g.setColor(new Color(0.5f + random.nextFloat() / 2, 0.5f + random.nextFloat() / 2, 0.5f + random.nextFloat() / 2));\n for (TriangleXZ ... |
"public List<ServiceOfferingVO> searchForServiceOfferings(ListServiceOfferingsCmd cmd) {\n Filter searchFilter = new Filter(ServiceOfferingVO.class, \"String_Node_Str\", false, cmd.getStartIndex(), cmd.getPageSizeVal());\n SearchCriteria<ServiceOfferingVO> sc = _offeringsDao.createSearchCriteria();\n Account c... |
"public boolean parse(Parser parser, int flags) {\n this.parser = parser;\n this.hasSyntaxErrors = false;\n this.reportErrors = (flags & REPORT_ERRORS) != 0;\n IToken token = null;\n while (true) {\n if (this.reparse) {\n this.reparse = false;\n } else {\n if (!this.to... |
"public void testSimpleGenAidlRule() throws IOException {\n BuildContext context = null;\n String pathToAidl = \"String_Node_Str\";\n String importPath = \"String_Node_Str\";\n BuildRuleResolver ruleResolver = new BuildRuleResolver();\n GenAidlRule genAidlRule = ruleResolver.buildAndAddToIndex(GenAidlRul... |
"private static void setOnClickListener(Object classObj, View contentView, Method method) {\n OnClick onclick = method.getAnnotation(OnClick.class);\n int[] ids = onclick.value();\n if (ids != null) {\n for (int id : ids) {\n View view = viewFinder.findViewById(id);\n view.setOnCli... |
"private Object getHadoopClusterRepositoryValue(HadoopClusterConnection hcConnection, String value, IMetadataTable table) {\n if (EHDFSRepositoryToComponent.DISTRIBUTION.getRepositoryValue().equals(value)) {\n return hcConnection.getDistribution();\n } else if (EHDFSRepositoryToComponent.DB_VERSION.getRepo... |
"public void removeContactTab(int index) {\n String title = chatTabbedPane.getTitleAt(index);\n if (title != null) {\n if (chatTabbedPane.getTabCount() > 1)\n this.contactTabsTable.remove(title);\n Enumeration contactTabs = this.contactTabsTable.elements();\n while (contactTabs.has... |
"private int addTable(PrintStream out, int offset, String name, StringBuffer tableContent) {\n int result = 0;\n try {\n int[] tableLocation = getTableLocation(name);\n if (tableLocation != null) {\n byte[] tableMetadata = (byte[]) metadataTables.get(name);\n Util.putInt32(tabl... |
"public boolean apply(Game game, Ability source) {\n boolean result = false;\n for (UUID targetId : getTargetPointer().getTargets(game, source)) {\n Card card = game.getCard(targetId);\n if (card != null) {\n Player player = game.getPlayer(source.getControllerId());\n if (playe... |
"protected void closeFirstN(int size) {\n for (int i = 0; i < size; i++) {\n closeLayout(contextList.removeFirst(), i, rowSize, i, false);\n }\n setCurrentContext(0);\n if (parent != null) {\n parent.closeFirstN(size);\n }\n}\n"
|
"public void payAllInvoices(final UUID accountId, final boolean externalPayment, final BigDecimal paymentAmount, final String createdBy, final String reason, final String comment) throws KillBillClientException {\n final String uri = JaxrsResource.ACCOUNTS_PATH + \"String_Node_Str\" + accountId + \"String_Node_Str\"... |
"public static void handleOnCreate(CellContent content, IRowData rowData, ExecutionContext context) {\n try {\n ReportItemDesign cellDesign = (ReportItemDesign) content.getGenerateBy();\n ICellInstance cell = new CellInstance(content, context);\n if (handleJS(cell, cellDesign.getOnCreate(), cont... |
"private static PropertiesConfigSource configSource(String identifier) throws Exception {\n boolean hocon = isHoconPath(identifier);\n if (!hocon && !identifier.startsWith(\"String_Node_Str\"))\n throw new IllegalArgumentException(String.format(\"String_Node_Str\", identifier));\n if (hocon) {\n ... |
"private void initHeaderQos(IoBuffer buff, int messageID, QOSType... qoss) throws IllegalAccessException {\n buff.clear().put((byte) (AbstractMessage.SUBACK << 4)).put(Utils.encodeRemainingLength(2 + qoss.length));\n Utils.writeWord(buff, messageID);\n for (QOSType qos : qoss) {\n buff.put((byte) qos.or... |
"protected void agents() {\n Random randomGenerator = new Random();\n for (int i = 0; i < 50; i++) {\n addAgent(new LoansAgent(20, 2, AgentType.AC, randomGenerator.nextDouble(), randomGenerator.nextDouble()));\n }\n}\n"
|
"public Optional<ObjectId> resolveIndexedTree(IndexInfo index, ObjectId treeId) {\n ObjectId indexTreeLookupId = computeIndexTreeLookupId(index.getId(), treeId);\n byte[] indexTreeBytes;\n try (RocksDBReference dbRef = dbhandle.getReference()) {\n indexTreeBytes = dbRef.db().get(indexMappingsColumn, ind... |
"public void notifyConnections(IndicatorLink link, boolean hasOpened) {\n if (hasOpened && mylink == null) {\n this.mylink = link;\n this.mylink.initConnection(this.dataSource, false);\n } else if (!hasOpened && link == this.mylink) {\n this.close();\n this.dispose();\n }\n}\n"
|
"public void execute(SmtpConnection conn, SmtpState state, SmtpManager manager, String commandLine) {\n Matcher m = param.matcher(commandLine);\n try {\n if (m.matches()) {\n String from = m.group(1);\n if (!from.isEmpty()) {\n MailAddress fromAddr = new MailAddress(fro... |
"public boolean checkTrigger(GameEvent event, Game game) {\n if (!onlyCombat || ((DamagedPlayerEvent) event).isCombatDamage()) {\n Permanent permanent = game.getPermanent(event.getSourceId());\n if (permanent != null) {\n if (filter.match(permanent, getSourceId(), getControllerId(), game)) {... |
"public Object xmlToObject(DOMRecord xmlRow, Class referenceClass) throws XMLMarshalException {\n String xmlEncoding = \"String_Node_Str\";\n String xmlVersion = \"String_Node_Str\";\n try {\n Method getEncoding = PrivilegedAccessHelper.getMethod(xmlRow.getDocument().getClass(), \"String_Node_Str\", new... |
"private String getTableComment(String tableName, ResultSet tablesSet) throws SQLException {\n String tableComment = tablesSet.getString(GetTable.REMARKS.name());\n if (StringUtils.isBlank(tableComment)) {\n String selectRemarkOnTable = dbms.getSelectRemarkOnTable(tableName);\n if (selectRemarkOnTab... |
"Composite createCustomControl(Composite parent) {\n ScrolledComposite scrollContent = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);\n scrollContent.setAlwaysShowScrollBars(false);\n scrollContent.setExpandHorizontal(true);\n scrollContent.setLayout(new FillLayout());\n Composite content = ... |
"private void appendStartTag(LineSegmentData segmentData) {\n line.append(\"String_Node_Str\").append(lineNumber).append('s').append(segmentIndex).append(\"String_Node_Str\");\n appendTooltipWithExecutionCounts(segmentData);\n if (segmentData.isCovered()) {\n if (segmentData.containsCallPoints()) {\n ... |
"private static ArrayList<Integer> readFeaturesFromFile(File file, Alphabet dataAlphabet) {\n ArrayList<Integer> features = new ArrayList<Integer>();\n try {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n String line = reader.readLine();\n while (line != null) {\n ... |
"public void setTargetResourceUrl(IIdType theTargetResourceUrl) {\n Validate.isTrue(theTargetResourceUrl.hasBaseUrl());\n Validate.isTrue(theTargetResourceUrl.hasResourceType());\n if (theTargetResourceUrl.hasIdPart()) {\n } else {\n }\n myTargetResourceType = theTargetResourceUrl.getResourceType();\n... |
"protected void copyFromHost(MapHost host) throws IOException {\n List<InputAttemptIdentifier> srcAttempts = scheduler.getMapsForHost(host);\n if (srcAttempts.size() == 0) {\n return;\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + id + \"String_Node_Str\" + host + \"String... |
"public String doProcess(ResolverContext context) throws ProcessorException {\n IDDBService app = (IDDBService) context.getServletContext().getAttribute(\"String_Node_Str\");\n HttpServletRequest req = context.getRequest();\n String id = context.getParameter(\"String_Node_Str\");\n log.debug(\"String_Node_S... |
"private float getContentHeight(IContent content) {\n return ExcelUtil.convertDimensionType(content.getHeight(), 0, reportDpi) / 1000;\n}\n"
|
"public boolean hasNext() {\n if (methods == null && clazz == null)\n return false;\n if (methods == null || !methods.hasNext()) {\n if (clazz == null || (scanWhile != null && !scanWhile.apply(clazz)))\n return false;\n methods = Arrays.asList(clazz.getDeclaredMethods()).iterator()... |
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n Permanent hellcarverDemon = game.getPermanent(source.getSourceId());\n for (Permanent permanent : game.getBattlefield().getActivePermanents(filterPermanents, source.getControllerId(), game)) {\n ... |
"private void verifyUpScale(String clusterName, int scalingAdjustment) {\n if (isUpScale(scalingAdjustment)) {\n verify(MOCK_ROOT + \"String_Node_Str\", \"String_Node_Str\").exactTimes(1).verify();\n verify(MOCK_ROOT + \"String_Node_Str\", \"String_Node_Str\").bodyContains(\"String_Node_Str\", scalingA... |
"public String desc() {\n return \"String_Node_Str\";\n}\n"
|
"private Serializable getConfig(String key, Serializable defaultValue) {\n Serializable result = config != null ? config.get(key) : null;\n return result != null ? result : defaultValue;\n}\n"
|
"public boolean onUserEventsSelected() {\n String user = new StoreCredentials(this).getUserName();\n if (user != null) {\n setFragment(EventsListFragment.newInstance(user), false);\n }\n return true;\n}\n"
|
"public Set<Class<?>> scan(String[] packages) {\n this.classes = new HashSet<Class<?>>();\n for (String p : packages) {\n try {\n String fileP = p.replace('.', '/');\n Enumeration<URL> urls = classloader.getResources(fileP);\n while (urls.hasMoreElements()) {\n ... |
"public static int sendPendingMax(Config cfg) {\n return cfg.getIntegerValue(SEND_PENDING_MAX, 16);\n}\n"
|
"public int compare(MapEntry o1, MapEntry o2) {\n int result = comparator.compare(o1, o2);\n if (result == 0) {\n Record r1 = (Record) o1;\n Record r2 = (Record) o2;\n return r1.getId().compareTo(r2.getId());\n } else {\n return result;\n }\n}\n"
|
"public ItemStack transferStackInSlot(EntityPlayer p, int idx) {\n if (Platform.isClient())\n return null;\n boolean hasMETiles = false;\n for (Object is : this.inventorySlots) {\n if (is instanceof InternalSlotME) {\n hasMETiles = true;\n break;\n }\n }\n if (h... |
"private List<EvaluatedAxiom<OWLAxiom>> applyCELOE(SparqlEndpointKS ks, OWLClass nc, boolean equivalence, boolean reuseKnowledgeSource) throws ComponentInitException {\n System.out.print(\"String_Node_Str\");\n long startTime = System.currentTimeMillis();\n SortedSet<OWLIndividual> posExamples = reasoner.getIn... |
"public void characters(char[] ch, int start, int length) throws SAXException {\n try {\n if (null != selfRecords) {\n int selfRecordsSize = selfRecords.size();\n for (int x = 0; x < selfRecordsSize; x++) {\n UnmarshalRecord selfRecord = ((UnmarshalRecord) selfRecords.get(... |
"protected List<TdView> getColumnSets(TdCatalog catalog, TdSchema schema) {\n if (catalog != null) {\n return CatalogHelper.getViews(catalog);\n }\n if (schema != null) {\n String viewFilter = TaggedValueHelper.getValue(TaggedValueHelper.VIEW_FILTER, schema.getTaggedValue());\n return filt... |
"private ClassVisitor createClassVisitorsForClassesInInputs(ClassLoader loader, ClassReaderFactory classpathReader, ClassReaderFactory bootclasspathReader, Builder<String> interfaceLambdaMethodCollector, UnprefixingClassWriter writer) {\n ClassVisitor visitor = checkNotNull(writer);\n if (!options.onlyDesugarJava... |
"public static void merge(OpenAPIDefinition from, OpenAPI to, boolean override) {\n if (isAnnotationNull(from)) {\n return;\n }\n if (!isAnnotationNull(from.info())) {\n if (to.getInfo() == null) {\n to.setInfo(new InfoImpl());\n }\n InfoImpl.merge(from.info(), to.getInfo... |
"public void initialize(Q request) throws Exception {\n if (Logs.isExtrrreeeme()) {\n Logs.exhaust().debug(cb.getClass().getCanonicalName() + \"String_Node_Str\" + request);\n }\n try {\n cb.initialize(request);\n } catch (Exception ex) {\n Logs.extreme().error(ex, ex);\n AsyncRe... |
"protected void subscribeActual(SingleObserver<? super T> observer) {\n AtomicBoolean disposed = new AtomicBoolean();\n observer.onSubscribe(new Disposable() {\n public void dispose() {\n disposed.set(true);\n }\n public boolean isDisposed() {\n return disposed.get();\n ... |
"public void run() {\n if (mainHUD == null) {\n mainHUD = HUDManagerFactory.getHUDManager().getHUD(\"String_Node_Str\");\n }\n for (String name : buttonMap.keySet()) {\n HUDButton button = buttonMap.get(name);\n mainHUD.removeComponent(button);\n }\n buttonMap.clear();\n gestureMa... |
"public static String downloadFile(String fileURL, String folderPath) {\n URL u;\n InputStream is = null;\n DataInputStream dis;\n String fullFileName = \"String_Node_Str\";\n FileOutputStream output = null;\n try {\n int lastSlashPos = fileURL.lastIndexOf(\"String_Node_Str\");\n if (las... |
"private void createFullSourcePom(List<Dependency> newDependencies) throws MojoFailureException {\n Set<String> projectProperties = new TreeSet<String>();\n for (Dependency dep : newDependencies) {\n if (dep.getArtifactId().equals(\"String_Node_Str\") || dep.getArtifactId().contains(\"String_Node_Str\") ||... |
"public void getResourceResponse(JSONObject response) {\n try {\n final String responseUser = response.getString(\"String_Node_Str\");\n final String resourcePath = response.getString(\"String_Node_Str\");\n final long timestamp = response.getLong(\"String_Node_Str\");\n final String cont... |
"public synchronized void pauseDeployment(final String deployment, ServerActivityListener listener) {\n final List<ControlPoint> eps = new ArrayList<ControlPoint>();\n for (ControlPoint ep : entryPoints.values()) {\n if (ep.getDeployment().equals(deployment)) {\n if (!ep.isPaused()) {\n ... |
"public Response updateMetadata(String channelName, String json) throws Exception {\n if (noSuchChannel(channelName)) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n ChannelConfiguration oldConfig = channelService.getChannelConfiguration(channelName);\n ChannelConfiguration.Bu... |
"public String getSqlQueryFromJPA(EntityMetadata entityMetadata, List<String> relations, Set<String> primaryKeys) {\n ApplicationMetadata appMetadata = KunderaMetadata.INSTANCE.getApplicationMetadata();\n Metamodel metaModel = appMetadata.getMetamodel(entityMetadata.getPersistenceUnit());\n if (appMetadata.isN... |
"public void parse(IParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n if (this.mode == 0) {\n if (this.value != null) {\n this.field.setValue(this.value);\n }\n pm.popParser(true);\n return;\n }\n switch(type) {\n case Symbols.SEM... |
"public static final List<CommonTree> getRoleInstantiationChildren(CommonTree ct) {\n return ScribParserUtil.toCommonTreeList(ct.getChildren());\n}\n"
|
"public boolean doPickUp(Hero hero) {\n if (super.doPickUp(hero)) {\n if (!Statistics.amuletObtained) {\n Statistics.amuletObtained = true;\n Badges.validateVictory();\n hero.spend(-TIME_TO_PICK_UP);\n Actor.addDelayed(new Actor() {\n protected boolea... |
"public boolean processInteract(EntityPlayer player, EnumHand hand) {\n if (!this.world.isRemote) {\n if (hand == EnumHand.MAIN_HAND) {\n ItemStack stack = player.getHeldItemMainhand();\n if (stack.getItem() == ModItems.GEM_STAFF) {\n if (this.isTamed()) {\n ... |
"public void addAddress(MacAddress macAddress, IpAddress ipAddress, NodeConnectorRef nodeConnectorRef) {\n if (macAddress == null || ipAddress == null || nodeConnectorRef == null) {\n return;\n }\n NodeConnectorLock nodeConnectorLock;\n synchronized (this) {\n nodeConnectorLock = lockMap.get(n... |
"public void mouseDragged(MouseEvent e) {\n if (active < 0)\n return;\n float x = (float) (e.getX() / scale);\n float y = (float) (e.getY() / scale);\n synchronized (pointsUndistorted) {\n Point2D_F32 u;\n if (selectedUndist) {\n u = pointsUndistorted.get(active);\n } ... |
"public void testMarshalToInvalidResult() throws Exception {\n boolean caughtException = false;\n Document document = parser.newDocument();\n DOMResult result = new DOMResult(document.createAttribute(\"String_Node_Str\"));\n try {\n marshaller.marshal(getControlObject(), result);\n } catch (Illega... |
"protected Control createDialogArea(final Composite parent) {\n parent.setLayout(new GridLayout());\n final GridLayout l = new GridLayout();\n l.numColumns = 2;\n parent.setLayout(l);\n table = new Table(parent, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);\n GridData d = SWTUtil.createFillGridData();\n ... |
"private void setDpPathShare(int pidx, int aidx, ZhaoObject zhaoPred, ZhaoObject zhaoArg) {\n List<Pair<Integer, Dir>> argRootPath = zhaoArg.getRootPath();\n List<Pair<Integer, Dir>> predRootPath = zhaoPred.getRootPath();\n int i = argRootPath.size() - 1;\n int j = predRootPath.size() - 1;\n Pair<Integer... |
"public void fire() throws IllegalActionException {\n super.fire();\n DateToken dateToken = null;\n int datePrecision = DateToken.PRECISION_MILLISECOND;\n if (timeAsLong.connectedPortList().size() > 0 && timeAsLong.hasToken(0)) {\n long timeAsLongValue = 1l;\n timeAsLongValue = ((LongToken) ti... |
"private void slerpView(final GL gl, SlerpAction slerpAction) {\n int iViewId = slerpAction.getElementId();\n SlerpMod slerpMod = new SlerpMod();\n if ((iSlerpFactor == 0)) {\n slerpMod.playSlerpSound();\n }\n Transform transform = slerpMod.interpolate(slerpAction.getOriginHierarchyLayer().getTran... |
"int addRowTry(Row row) throws SQLException {\n index.getPageStore().logUndo(this, data);\n int keyOffsetPairLen = 4 + data.getVarLongLen(row.getKey());\n while (true) {\n int x = find(row.getKey());\n PageData page = index.getPage(childPageIds[x], getPos());\n int splitPoint = page.addRow... |
"private Synapse minPermanenceSynapse(DistalDendrite dd) {\n List<Synapse> synapses = unDestroyedSynapsesForSegment(dd);\n Synapse min = null;\n double minPermanence = Double.MAX_VALUE;\n for (Synapse synapse : synapses) {\n if (!synapse.destroyed() && synapse.getPermanence() < minPermanence - EPSILO... |
"public void onClick(View v) {\n if (v.getId() == R.id.character_button) {\n Intent c = new Intent(HomeScreenController.this, CharacterController.class);\n c.putExtra(\"String_Node_Str\", p);\n c.putExtra(\"String_Node_Str\", character);\n startActivity(c);\n } else if (v.getId() == R.... |
"public void dbdirect() {\n final CollectionDAO collectionDAO = new CollectionDAO();\n DBCollection dbcoll = collectionDAO.getCollection(db, coll);\n Deque<String> _filter;\n if (filter == null) {\n _filter = null;\n } else {\n _filter = new ArrayDeque<>();\n _filter.add(filter);\n ... |
"private void showSettings() {\n startActivityForResult(new Intent(this, SettingsPreferences.class), 1);\n}\n"
|
"private static void expandPrimitiveSpecialisedClass(final String className) throws IOException {\n final Path path = Paths.get(SOURCE_DIRECTORY, PACKAGE, className + SUFFIX);\n String contents = new String(Files.readAllBytes(path), UTF_8);\n for (Substitution substitution : SUBSTITUTIONS) {\n contents ... |
"public List<Annotation> getAnnotations() {\n return new ArrayList<Annotation>(annotations.values());\n}\n"
|
"private void initTmfTrace(String path, Class<T> eventType, int cacheSize, boolean indexTrace) throws FileNotFoundException {\n fPath = path;\n if (fTraceName == null) {\n fTraceName = \"String_Node_Str\";\n if (path != null) {\n int sep = path.lastIndexOf(Path.SEPARATOR);\n fT... |
"public static String getBASE64(final String dirName, final String fileName) {\n final DITAOTJavaLogger logger = new DITAOTJavaLogger();\n final URI imgInputURI = toURI(fileName);\n final File imgInput = imgInputURI.isAbsolute() ? new File(imgInputURI) : new File(dirName, toFile(imgInputURI).getPath());\n f... |
"private void startNetworkingRequest() {\n if (mExecutor != null) {\n final NetworkingPrioritizable<T> prioritizable = new NetworkingPrioritizable<T>(this);\n final NetworkingRequest<T> request = new NetworkingRequest<T>(prioritizable, mPriority.ordinal(), this);\n mExecutor.executeNetworkingReq... |
"public void handleEvent(Event event) {\n if (event.widget.equals(txtTitle)) {\n if (txtTitle.getText() == null || txtTitle.getText().trim().length() == 0) {\n getChart().getTitle().getLabel().getCaption().setValue(null);\n } else {\n getChart().getTitle().getLabel().getCaption().... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.