content stringlengths 40 137k |
|---|
"public static void shareTrack(Context context, Jump jump) {\n final CloudData cloudData = jump.getCloudData();\n if (cloudData != null) {\n final SimpleDateFormat format = new SimpleDateFormat(\"String_Node_Str\");\n final String date = format.format(jump.getDate());\n final Intent intent = ... |
"private void validateId(String id, String idName, int maxlen) {\n if (id == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n final byte[] bytes = BytesUtils.toBytes(id);\n if (bytes.length > maxlen) {\n logger.warn(\"String_Node_Str\", idName, id);\n }\n}\n"
|
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if (!mixedContent) {\n boolean bufferContainsOnlyWhitespace = stringBuffer.toString().trim().length() == 0;\n if (bufferContainsOnlyWhitespace) {\n stringBuffer.reset();\n ... |
"private double calGradient(int parameterIndex) {\n double count = 0;\n if (parameterIndex < numWeightsForFeatures) {\n int classIndex = parameterToClass[parameterIndex];\n int featureIndex = parameterToFeature[parameterIndex];\n for (int i = 0; i < dataSet.getNumDataPoints(); i++) {\n ... |
"public MembersView promoteToNormalMember(Address address, String uuid) {\n clusterServiceLock.lock();\n try {\n ensureLiteMemberPromotionIsAllowed();\n MemberMap memberMap = memberMapRef.get();\n MemberImpl member = memberMap.getMember(address, uuid);\n if (member == null) {\n ... |
"public void dragEnter(DropTargetEvent event) {\n super.dragEnter(event);\n IStructuredSelection selection = (IStructuredSelection) LocalSelectionTransfer.getTransfer().getSelection();\n Object object = selection.getFirstElement();\n if (object instanceof DBColumnRepNode) {\n receiver = new ColumnRec... |
"void retry() throws ReplicationException {\n synchronized (state) {\n state.set(OPEN);\n maxReceivableResp.set(1);\n minExpectableResp.set(0);\n statusListener.statusChanged(this);\n }\n}\n"
|
"private void initAllComponentsBindings(Component comp) {\n final Binder selfBinder = (Binder) comp.getAttribute(BinderImpl.BINDER);\n if (selfBinder != null)\n return;\n initFormBindings(comp);\n initComponentPropertiesBindings(comp);\n for (final Iterator<Component> it = comp.getChildren().itera... |
"public void testZSS441ExternalBook() {\n Book workbook = Util.loadBook(this, \"String_Node_Str\");\n Book anotherWorkbook = Util.loadBook(this, \"String_Node_Str\");\n BookSeriesBuilder.getInstance().buildBookSeries(new Book[] { workbook, anotherWorkbook });\n Sheet sheet = workbook.getSheet(\"String_Node_... |
"List<MExpression> evaluateDeclarationReturnInitializers(IASTSimpleDeclaration simple) throws DOMException {\n List<MExpression> exprs = new ArrayList<MExpression>();\n List<IType> types = evaluateDeclarationReturnCppTypes(simple);\n int i = 0;\n for (IASTDeclarator decl : simple.getDeclarators()) {\n ... |
"public void renderPart(GL gl) {\n this.gl = gl;\n int iDisplayListNodeId = 0;\n int iDisplayListEdgeId = 0;\n for (int iDisplayListIndex = 0; iDisplayListIndex < iArPathwayNodeDisplayListIDs.size(); iDisplayListIndex++) {\n iDisplayListNodeId = iArPathwayNodeDisplayListIDs.get(iDisplayListIndex);\n ... |
"public final Object getObjectUnchecked(Object obj) {\n VM_TypeReference type = getType();\n if (type.isReferenceType()) {\n return getObjectValueUnchecked(obj);\n } else {\n if (type.isCharType())\n return new Character(getCharValueUnchecked(obj));\n if (type.isDoubleType())\n ... |
"protected void doRead(Buffer buffer) throws IOException {\n long millis = 0;\n VideoFormat format;\n format = (VideoFormat) buffer.getFormat();\n if (format == null) {\n format = (VideoFormat) getFormat();\n if (format != null)\n buffer.setFormat(format);\n }\n RTPPacket rtpP... |
"protected void setAttrs(Comment model, PreparedStatement stmt) throws SQLException {\n if (model.getContent() == null) {\n stmt.setNull(1, java.sql.Types.CHAR);\n } else {\n stmt.setString(1, model.getContent());\n }\n if (model.getCommenterId() == null) {\n stmt.setNull(2, java.sql.Ty... |
"public boolean skipTo(int target) throws IOException {\n if (firstTime || (more && target > spans.doc())) {\n more = spans.skipTo(target);\n firstTime = false;\n }\n return advance();\n}\n"
|
"public Object executeImpl(ExecutionEvent event) {\n Object testSuiteToStartObj = null;\n Object runningAutObj = null;\n ITestSuitePO testSuiteToStart = null;\n AutIdentifier runningAut = null;\n try {\n testSuiteToStartObj = event.getObjectParameterForExecution(TEST_SUITE_TO_START);\n runn... |
"public void updateWCA(Collection<MethodInfo> changedMethods) {\n Set<MethodInfo> roots = new HashSet<MethodInfo>(changedMethods);\n roots.addAll(analyses.getMethodCacheAnalysis().getClassificationChangeSet());\n CallGraph callGraph = wcetTool.getCallGraph();\n List<ExecutionContext> rootNodes = new ArrayLi... |
"public void start() {\n BufferedReader reader = new BufferedReader(new InputStreamReader(processInput));\n try {\n String line = reader.readLine();\n while (line != null) {\n if (outputBuffer != null) {\n outputBuffer.append(line);\n outputBuffer.append(' ')... |
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlChoiceCollectionMapping.isReadOnly()) {\n return false;\n }\n Object value = xmlChoiceCollectionMapping.getAttributeValueFromObjec... |
"public void test_ComponentDefinitionOutput() throws Exception {\n String prURI = \"String_Node_Str\";\n String prPrefix = \"String_Node_Str\";\n SBOLDocument document = new SBOLDocument();\n document.setTypesInURIs(true);\n document.addNamespace(URI.create(prURI), prPrefix);\n document.setDefaultURIp... |
"public static synchronized List<TdColumn> returnMetadataColumnsFormTable(IMetadataConnection iMetadataConnection, String tableLabel, boolean... dontCreateClose) {\n ExtractManager extractManager = ExtractManagerFactory.createByDisplayName(iMetadataConnection.getDbType());\n if (extractManager != null) {\n ... |
"public int getPageincrement() {\n return pageIncrement;\n}\n"
|
"public void run(final CommandSender cs, String label, String[] args) {\n if (r.checkArgs(args, 0) == false) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n OfflinePlayer banp = r.searchOfflinePlayer(args[0]);\n if (banp == null || (!banp.hasPlayedBefore() && !banp.isOnline())) {\n ... |
"public void actionPerformed(ActionEvent ae) {\n String cmd = ae.getActionCommand();\n updateCPUPercent();\n if (\"String_Node_Str\".equals(cmd)) {\n cpu.setDebug(true);\n ((JButton) ae.getSource()).setText(\"String_Node_Str\");\n } else if (\"String_Node_Str\".equals(cmd)) {\n cpu.setD... |
"public void onScrollStateChanged(AbsListView view, int scrollState) {\n mScrollState = scrollState;\n if (scrollState == OnScrollListener.SCROLL_STATE_FLING) {\n clearImageFetching();\n } else if (mDisplayPhotos) {\n processMissingImageItems(view);\n }\n}\n"
|
"public boolean onTouchEvent(MotionEvent event) {\n if (mTouchEnabled && mListener != null)\n return mListener.onTouch(this, event);\n else\n return super.onTouchEvent(event);\n}\n"
|
"public boolean performCancel() {\n if (repositoryObject != null && repositoryObject.getProperty().eResource() != null)\n repositoryObject.getProperty().eResource().unload();\n closeLockStrategy();\n return true;\n}\n"
|
"protected void createColumnDefinitions(TypeElement typeElement) {\n List<? extends Element> elements = manager.getElements().getAllMembers(typeElement);\n ColumnValidator columnValidator = new ColumnValidator();\n OneToManyValidator oneToManyValidator = new OneToManyValidator();\n for (Element element : el... |
"public void encodeBegin(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n Panel panel = (Panel) component;\n ResponseWriter rw = context.getResponseWriter();\n String clientId = panel.getClientId();\n String jQueryClientID = clie... |
"private void addData(Data data) {\n XlsContainer container = getCurrentContainer();\n container.setEmpty(false);\n int col = axis.getColumnIndexByCoordinate(data.getRule().getStartCoordinate());\n int span = axis.getColumnIndexByCoordinate(data.getRule().getEndCoordinate()) - col;\n addDatatoCache(col, ... |
"private static boolean loadLibraries(DynamicClassLoader classLoader, String[] driversArray, boolean showDownloadIfNotExist) {\n List<String> jarPathList = new ArrayList<String>();\n if (driversArray == null || driversArray.length == 0) {\n return true;\n }\n ILibraryManagerService librairesManagerSe... |
"public void deleteServiceFunctionPath(RenderedServicePath renderedServicePath) {\n printTraceStart(LOG);\n ClientConfig clientConfig = new DefaultClientConfig();\n Client client = Client.create(clientConfig);\n String sfpURI;\n String restURI;\n List<RenderedServicePathHop> renderedServicePathHopList... |
"public Tile getTile(int x, int y, int zoom) {\n double tileWidth = WORLD_WIDTH / Math.pow(2, zoom);\n double padding = tileWidth * mRadius / TILE_DIM;\n double tileWidthPadded = tileWidth + 2 * padding;\n double bucketWidth = tileWidthPadded / (TILE_DIM + mRadius * 2);\n double minX = x * tileWidth - pa... |
"public void addGrantCubeSlicer(String sHierarchy, String sMember, boolean bMember) {\n if (bMember) {\n boolean fail = false;\n List<Id.Segment> sMembers = Util.parseIdentifier(sMember);\n SchemaReader schemaReader = mdxCube.getSchemaReader(null);\n Member member = schemaReader.getMember... |
"public Mono<ListApplicationsResponse> retrieveAllApplicationIdsInSpace(String orgId, String spaceId) {\n if (orgId.equals(ORG_UUID) && spaceId.equals(SPACE_UUID)) {\n List<ApplicationResource> list = new LinkedList<>();\n for (int i = 0; i < 100; i++) {\n ApplicationResource ar = null;\n ... |
"public Response get(String id, boolean unread, Integer limit, Integer offset) throws JSONException {\n if (!authenticate()) {\n throw new ForbiddenClientException();\n }\n FeedSubscriptionCriteria feedSubscriptionCriteria = new FeedSubscriptionCriteria();\n feedSubscriptionCriteria.setId(id);\n f... |
"public static MDMServerDef parse(String url, String user, String passwd, String desc) {\n Matcher m = Pattern.compile(PATTERN_URL).matcher(url);\n if (!m.find())\n return null;\n String host = m.group(1);\n String port = m.group(2);\n String path = m.group(3);\n return new MDMServerDef(desc, h... |
"protected void run() {\n try {\n for (ItemRecord record : fRecords) {\n if (fMonitor.isCanceled()) {\n break;\n }\n Map<IPath, IPath> toImportMap = mapping(record);\n fMonitor.subTask(\"String_Node_Str\" + record.getName());\n if (record.i... |
"protected void writeResourceBundle(String[] bundles, String locale, File localePath) throws MojoExecutionException {\n getLog().info(\"String_Node_Str\" + locale);\n Library localized = new Library();\n localized.setConfiguration(configuration);\n configuration.setLibraryPath(new File[0]);\n localized.s... |
"public SBOLDocument changeURIPrefixVersion(String URIPrefix, String version) throws SBOLValidationException {\n SBOLDocument document = new SBOLDocument();\n SBOLDocument fixed = new SBOLDocument();\n fixed.setDefaultURIprefix(URIPrefix);\n this.fixDocumentURIPrefix();\n fixed.createCopy(this);\n Str... |
"private void createTable(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayout(new GridLayout());\n composite.setLayoutData(new GridData(GridData.FILL_BOTH));\n table = new Table(composite, SWT.BORDER);\n GridData gd = new GridData(SWT.FILL, SWT.FILL, true, t... |
"public Space getDown() {\n if (row == 9) {\n return null;\n }\n return new Space(col, row - 1);\n}\n"
|
"protected void onPostExecute(Bitmap result) {\n imageLoaderCallback.onResponse(result);\n}\n"
|
"public void testCreateXML() {\n StaticUser user = new StaticUser();\n user.setName(\"String_Node_Str\");\n user.setId(101);\n user = restCreate(user, \"String_Node_Str\", StaticUser.class, DEFAULT_PU, null, MediaType.APPLICATION_XML_TYPE, MediaType.APPLICATION_XML_TYPE);\n assertTrue(\"String_Node_Str\"... |
"public String getMainTypeName() {\n return cup.getMainTypeName();\n}\n"
|
"public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {\n Permanent enchantment = game.getPermanent(source.getSourceId());\n if (enchantment != null && enchantment.getAttachedTo() != null) {\n Permanent permanent = game.getPermanent(enchantment.getAttachedTo());\n if (perm... |
"public boolean evaluateOnResponse(final ServerContext context, final ScriptState state, final Resource resource) throws ResourceException {\n if (onResponse != null) {\n ScriptEntry scriptEntry = onResponse.getRight();\n if (!scriptEntry.isActive()) {\n throw new ServiceUnavailableException... |
"String computeKey(Element e) {\n StringBuilder buf = new StringBuilder();\n if (predefTranslationMap.containsKey(e.getSimpleName().toString())) {\n buf.append(\"String_Node_Str\");\n String replacedName = predefTranslationMap.get(e.getSimpleName().toString());\n buf.append(e.toString().repla... |
"private static String base64urlEncode(String str) {\n return base64urlEscape(Base64.encodeBytes(str.getBytes(), Base64.DONT_BREAK_LINES));\n}\n"
|
"public boolean remove(CharSequence key) {\n if (key == null) {\n if (hasNull) {\n hasNull = false;\n int index = list.remove(null);\n free++;\n return true;\n }\n return false;\n }\n int index = idx(key);\n if (Unsafe.arrayGet(keys, index) ==... |
"private void doUTXOLookupsForPledges(Project project, ObservableSet<LHProtos.Pledge> pledges, List<Peer> peers, boolean checkingAllPledges, CompletableFuture<Set<LHProtos.Pledge>> result) {\n executor.checkOnThread();\n try {\n log.info(\"String_Node_Str\", peers.size());\n PeerUTXOMultiplexor mult... |
"public boolean equals(Object other) {\n if (!(other instanceof SiteSettingsModel))\n return false;\n SiteSettingsModel otherModel = (SiteSettingsModel) other;\n return localTableId == otherModel.localTableId && ((address == null && otherModel.address == null) || (address != null && otherModel.address !... |
"public static String activateBundleRevision(ServerProfile profile, String revision) throws IOException {\n String state = \"String_Node_Str\";\n BundleActivationConfig deployment2 = new BundleActivationConfig();\n try {\n UrlEncodedContent urlEncodedContent = null;\n HttpHeaders headers = new Ht... |
"public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {\n if (cards.isEmpty()) {\n return !target.isRequired(source);\n }\n Card card = cards.getRandom(game);\n if (card != null) {\n target.addTarget(card.getId(), source, game);\n retur... |
"Histogram<Integer> getMeanQualityHistogram() {\n final String label = useOriginalQualities ? \"String_Node_Str\" : \"String_Node_Str\";\n final Histogram<Integer> meanQualities = new Histogram<Integer>(\"String_Node_Str\", label);\n int firstReadLength = 0;\n for (int cycle = 0; cycle < firstReadTotalsByCy... |
"public static void main(String[] args) {\n final String TRACE_PATH = \"String_Node_Str\";\n final boolean USE_TEXT = true;\n final int LOOP_COUNT = 1;\n Long nbEvent = 0L;\n Vector<Double> benchs = new Vector<Double>();\n CTFTrace trace = null;\n long start, stop;\n for (int loops = 0; loops < ... |
"public static void openDataModel(TreeObject xobject, boolean markdirty) throws Exception {\n IFile pathToTempFile = XSDEditorUtil.createFile(xobject);\n final XSDEditorInput input = new XSDEditorInput(pathToTempFile);\n final IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().get... |
"private void animateX1() {\n if (this.animate.getRepeatDur() <= (System.currentTimeMillis() - repeatDuration)) {\n stopAnimation();\n }\n if (from_xml >= to_xml) {\n if (this.animate.getRepeatCount() == count) {\n stopAnimation();\n } else {\n count++;\n f... |
"public void gFlagRequestOutOfDateSerial() {\n when(serialDaoMock.getAgeOfExactOrNextExistingSerial(1)).thenReturn(Integer.valueOf(NrtmQueryHandler.HISTORY_AGE_LIMIT + 1));\n when(messageEventMock.getMessage()).thenReturn(\"String_Node_Str\");\n try {\n subject.messageReceived(contextMock, messageEventM... |
"public void run() {\n String prettyProgramType = ProgramType.valueOf(programType.name()).getPrettyName();\n String programName = getContext().getSpecification().getProperties().get(PROGRAM_NAME);\n if (programWorkflowRunner == null) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n ... |
"public static void setInt(byte[] buf, int offset, int v) throws IllegalArgumentException {\n if (buf == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n try {\n buf[offset] = (byte) (v >> 24);\n buf[offset + 1] = (byte) (v >> 16);\n buf[offset + 2] = (byte) ... |
"public int hashCode() {\n return referenceField.hashCode() ^ (docToDocidsCache != null ? docToDocidsCache.size() : 0);\n}\n"
|
"public String generateProcessCode() throws CodeGeneratorException {\n StringBuffer componentsCode = new StringBuffer();\n long startTimer = System.currentTimeMillis();\n long endTimer = startTimer;\n try {\n while ((!CodeGeneratorEmittersPoolFactory.isInitialized()) && ((endTimer - startTimer) < INI... |
"public static void retainValidUnits(Collection<CompilationUnit> units, Set<ContentId> knownValidRefs) {\n Set<CompilationUnit> currentlyValidUnits = new HashSet<CompilationUnit>();\n Set<ContentId> currentlyValidRefs = new HashSet<ContentId>(knownValidRefs);\n for (CompilationUnit unit : units) {\n if ... |
"private void fixDaylightSavings(int hours) {\n if ((jsdate.getHours() % 24) != (hours % 24)) {\n JsDate copy = JsDate.create(jsdate.getTime());\n copy.setDate(copy.getDate() + 1);\n int timeDiff = jsdate.getTimezoneOffset() - copy.getTimezoneOffset();\n if (timeDiff > 0) {\n i... |
"public void timestamp(BuckEvent event) {\n long nanos = clock.nanoTime();\n event.configure(TimeUnit.NANOSECONDS.toMillis(nanos), nanos, threadIdSupplier.get(), buildId);\n}\n"
|
"public void prepareInternal(AbstractSession session) {\n if (session.getPlatform().supportsStoredFunctions()) {\n super.prepareInternal(session);\n } else {\n throw ValidationException.platformDoesNotSupportStoredFunctions(getShortClassName(session.getPlatform()));\n }\n}\n"
|
"public void itemStateChanged(ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED && roomsCombo.getSelectedIndex() != -1) {\n okButton.setEnabled(true);\n addButton.setEnabled(true);\n }\n}\n"
|
"double calculate(double grade){\n\treturn 4.0 - 3.0 * Math.pow(100.0 - grade, 2) / 1600.0;\n}\n"
|
"private <T, K, C> Object deserializeMap(final VPackSlice parent, final VPackSlice vpack, final Type type, final Type keyType, final Type valueType) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, VPackException {\n final int length = (int) vpack.getLength();\... |
"static void saveTransactions(Connection con, AT at, Block block) {\n try {\n for (AT_Transaction transaction : at.getTransactions()) {\n try (PreparedStatement pstmt = con.prepareStatement(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" +... |
"public void updateEntity() {\n super.updateEntity();\n for (int n = 0; n < 3; n++) {\n DivineRPG.proxy.spawnParticle(this.worldObj, this.xCoord + 0.5, this.yCoord + 0.5, this.zCoord + 0.5, \"String_Node_Str\", true, 3);\n }\n if (!this.worldObj.isRemote) {\n if (this.spawnTimer > 0)\n ... |
"public Predicate createBooleanExpression(final String expression, final boolean allowQuantifiedPredicates, final MacroConfiguration macroConfiguration, Set<String> usedMacros) {\n return getOrDefault(\"String_Node_Str\", delegate, expression, allowQuantifiedPredicates, macroConfiguration, BOOLEAN_EXPRESSION_SUPPLIE... |
"private static void processQueryMode(LearningProblem lp, ReasonerComponent rs) {\n logger.info(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n String queryStr = \"String_Node_Str\";\n do {\n logger.info(\"String_Node_Str\");\n BufferedReader input = new BufferedReader(new Inp... |
"public void moveTaskBackwards(int task) {\n enforceCallingPermission(android.Manifest.permission.REORDER_TASKS, \"String_Node_Str\");\n synchronized (this) {\n if (!checkAppSwitchAllowedLocked(Binder.getCallingPid(), Binder.getCallingUid(), -1, -1, \"String_Node_Str\")) {\n return;\n }\n... |
"public Object[] getArgumentArray() {\n return argumentArray == null ? loggingEvent.getArgumentArray() : argumentArray;\n}\n"
|
"public static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) {\n int offset;\n asm.emitSTAddrU(FP, -JNI_GLUE_FRAME_SIZE, FP);\n String mthName = mth.getName().toString();\n if ((mthName.startsWith(\"String_Node_Str\") && mthName.endsWith(\"String_Node_Str\")) || mthName.equals(\"String_... |
"private ProcessWrapperImpl getMplayerThumbnail(InputFile media) throws IOException {\n File file = media.getFile();\n String[] args = new String[14];\n args[0] = configuration.getMplayerPath();\n args[1] = \"String_Node_Str\";\n args[2] = \"String_Node_Str\" + (int) getDurationInSeconds();\n args[3] ... |
"public void doDraw(Section sw) {\n sw.setForegroundColor(Color.YELLOW);\n sw.drawString(loc.getLocation().x, loc.getLocation().y + DefaultMainLayer.ANNOUNCE_OFFSET, \"String_Node_Str\");\n int startX = size.x - OFFSET;\n int currentY = 0;\n if (loc.getLocation().x > size.x - OFFSET) {\n startX = ... |
"void add(JSError warning) {\n String filename = warning.node.getSourceFileName();\n if (filename != null && filename.startsWith(\"String_Node_Str\") || JSType.mockToString) {\n return;\n }\n compiler.report(warning);\n}\n"
|
"private TxnPacket receiveTxnProposal(TxnPacket pkt) {\n String request = pkt.getRequest();\n try {\n UUID txnID = pkt.getID();\n if (participantTxns.containsKey(txnID)) {\n writeError(\"String_Node_Str\");\n fail();\n }\n writeOutput(\"String_Node_Str\" + txnID +... |
"public void run() {\n DQRespositoryView findView = (DQRespositoryView) CorePlugin.getDefault().findView(DQRespositoryView.ID);\n TreeSelection treeSelection = (TreeSelection) findView.getCommonViewer().getSelection();\n TreePath[] paths = treeSelection.getPaths();\n TdReport parentReport;\n List<Analysi... |
"public String toString() {\n StringBuffer result = new StringBuffer(\"String_Node_Str\");\n for (PropertyTerm term : _terms) {\n if (term.isEffective()) {\n result += term;\n break;\n }\n }\n for (PropertyTerm term : _terms) {\n if (term.isEffective()) {\n ... |
"public static String mergeParameterVariableNameDescription(String[] parameterType, String[] variableName) {\n if (parameterType == null && variableName == null) {\n return EMPTY_ARRAY;\n }\n StringBuilder sb = new StringBuilder(64);\n sb.append('(');\n int end = parameterType.length - 1;\n for... |
"private boolean addRemoveClassPermission(String classname, String perm, boolean add) {\n String path = \"String_Node_Str\" + classname;\n if (config.getConfigSection(path) == null)\n return false;\n ConfigSection section = config.getConfigSection(path);\n List<String> nodes = section.getStringList(\... |
"public static JsonParser sendMMSRequest(Project project, HttpRequestBase request) throws IOException, ServerException, URISyntaxException {\n File targetFile = File.createTempFile(\"String_Node_Str\", null);\n targetFile.deleteOnExit();\n HttpEntityEnclosingRequest httpEntityEnclosingRequest = null;\n bool... |
"public static List<String> getTableNamesFromQuery(ResultSet resultSet) throws SQLException {\n List<String> itemTablesName = new ArrayList<String>();\n tableCommentsMap.clear();\n while (resultSet.next()) {\n String nameKey = resultSet.getString(1).trim();\n String tableComment = getTableComment... |
"public int moveCaretToLinePercent(Editor editor, DataContext context, int count) {\n if (count > 100)\n count = 100;\n saveJumpLocation(editor, context);\n return moveCaretToLineStartSkipLeading(editor, EditorHelper.normalizeLine(editor, (EditorHelper.getLineCount(editor) * count + 99) / 100 - 1));\n}\... |
"private Report executeOnFile(IndexService index, ModelService model, StorageService storage, List<File> list, IndexedPreservationAgent agent) throws PluginException {\n int pluginResultState = 1;\n Set<String> aipSet = new HashSet<String>();\n boolean notify = true;\n String newRepresentationID = null;\n ... |
"public Byte getValue(double low, double high, Estimator estimator) {\n if (low > high)\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_Node_Str\");\n return getValue(new Interval<Byte>(low, high, false, false), estimator);\n}\n"
|
"private void jTable2MouseClicked(java.awt.event.MouseEvent evt) {\n if (evt.getClickCount() == 1) {\n final int thisrow = jTable2.getSelectedRow();\n if (-1 != thisrow) {\n final int row = jTable2.getRowSorter().convertRowIndexToModel(thisrow);\n String path = (String) jTable2.ge... |
"public EvercamCamera getCamera(int id) {\n EvercamCamera evercamCamera = null;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.query(TABLE_CAMERA, new String[] { KEY_ID, KEY_CAMERA_ID, KEY_CAMERA_NAME, KEY_OWNER, KEY_USERNAME, KEY_PASSWORD, KEY_TIMEZONE, KEY_VENDOR, KEY_MODEL, KEY_MAC, ... |
"public String uploadCertificate(UploadCustomCertificateCmd cmd) throws ServerApiException {\n try {\n CertificateVO cert = _certDao.listAll().get(0);\n if (cert.getUpdated().equals(\"String_Node_Str\")) {\n if (s_logger.isDebugEnabled())\n s_logger.debug(\"String_Node_Str\");... |
"protected void processMappingValue(StyledElementDesign item, IDataContent dataObj) {\n MapDesign map = item.getMap();\n if (item instanceof DataItemDesign) {\n if (((DataItemDesign) item).needRefreshMapping()) {\n DataItemHandle dataHandle = (DataItemHandle) item.getHandle();\n Facto... |
"public long getRemoteSSRC(MediaType mediaType) {\n int[] ssrcs = getRemoteSSRCs(mediaType);\n if (ssrcs.length != 0)\n return 0xFFFFFFFFL & ssrcs[ssrcs.length - 1];\n return getPeer().isJitsiVideobridge() ? SSRC_UNKNOWN : super.getRemoteSSRC(mediaType);\n}\n"
|
"public boolean call() {\n modCounter.incrementAndGet();\n wakeAll(tail.get());\n}\n"
|
"protected void doDamageEntities(float radius, float power, boolean destroyItem) {\n radius *= 2.0F;\n Vector3 minCoord = position.clone();\n minCoord.add(-radius - 1);\n Vector3 maxCoord = position.clone();\n maxCoord.add(radius + 1);\n List<Entity> allEntities = world().getEntitiesWithinAABB(Entity.... |
"protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n if (mAm.checkCallingPermission(android.Manifest.permission.DUMP) != PackageManager.PERMISSION_GRANTED) {\n pw.println(\"String_Node_Str\" + Binder.getCallingPid() + \"String_Node_Str\" + Binder.getCallingUid() + \"String_Node_Str\" + a... |
"private SSLSocket createSecureSocket(Socket socket, MitmKeyManager keyManager) throws IOException {\n String host = socket.getInetAddress().getHostAddress();\n int port = socket.getPort();\n try {\n SSLContext ctx = SSLContext.getInstance(\"String_Node_Str\");\n ctx.init(new KeyManager[] { keyMa... |
"public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) {\n if (heldItem != null && heldItem.getItem() instanceof IModuleProvider) {\n if (RFToolsTools.installModule(player, held... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.