content stringlengths 40 137k |
|---|
"public static boolean isHttps(URI uri) {\n if (uri == null) {\n return false;\n String protocol = uri.getScheme();\n return protocol != null && protocol.equals(\"String_Node_Str\");\n}\n"
|
"protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n if (resultCode == RESULT_RESTART) {\n startNextFetch();\n return;\n }\n try {\n switch(requestCode) {\n case INIT_APP:\n if (resultCode == RESULT_CANCELED) {\n ... |
"public String getRedirectUri() throws IOException {\n server = new Server(port != -1 ? port : 0);\n Connector connector = server.getConnectors()[0];\n connector.setHost(host);\n server.addHandler(new CallbackHandler());\n try {\n server.start();\n } catch (Exception e) {\n Throwables.pr... |
"public static double neo4jVersion() {\n String neo4jVersion = (String) configuration.get(\"String_Node_Str\");\n if (neo4jVersion != null) {\n try {\n String[] versionElements = neo4jVersion.split(\"String_Node_Str\");\n if (versionElements.length < 2) {\n throw new Nu... |
"private void setSecondaryVisible(boolean makeVisible) {\n mSecondaryVisible = makeVisible;\n if (!mIsSourceReadOnly && mSecondary.getChildCount() > 0) {\n mSecondaryHeader.setVisibility(View.VISIBLE);\n mSecondaryHeader.setCompoundDrawablesWithIntrinsicBounds(makeVisible ? mSecondaryOpen : mSeconda... |
"public <T> Page<T> moreLikeThis(MoreLikeThisQuery query, Class<T> clazz) {\n int startRecord = 0;\n ElasticsearchPersistentEntity persistentEntity = getPersistentEntityFor(clazz);\n String indexName = isNotBlank(query.getIndexName()) ? query.getIndexName() : persistentEntity.getIndexName();\n String type =... |
"protected void onChildrenChanged(IndexedPropertyChangeEvent evt) {\n int index = evt.getIndex();\n if (evt.getOldValue() instanceof Integer) {\n int movedFrom = (Integer) evt.getOldValue();\n add(index + firstColumn, get(movedFrom + firstColumn));\n } else if (evt.getOldValue() == null) {\n ... |
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View new_provider_dialog_view = inflater.inflate(R.layout.new_provider_dialog, null);\n final EditText url_input... |
"public void init(RichTextArea textArea, Config config) {\n super.init(textArea, config);\n saveRegistration(textArea.addKeyDownHandler(this));\n saveRegistration(textArea.addKeyPressHandler(this));\n saveRegistration(textArea.addKeyUpHandler(this));\n getTextArea().getCommandManager().addCommandListener... |
"private void log(final Kind kind, final Element element, final Exception exception, final String messageFormat, final Object... args) {\n String stringCause = TransformationHelper.stackTraceToString(exception);\n if (messageFormat == null) {\n log(kind, element, stringCause);\n } else {\n String... |
"public ClientResponse handle(ClientRequest clientRequest) throws ClientHandlerException {\n int maxRetries = 5;\n int sleep = 1000;\n ClientHandlerException lastCause = null;\n while (i < maxRetries) {\n i++;\n try {\n ClientResponse response = getNext().handle(clientRequest);\n ... |
"private void findRollupCandidatesAmong(Map<String, Comparable> coordinates, List<List<SegmentHeader>> list, List<SegmentHeader> headers) {\n final List<Pair<SegmentHeader, List<SegmentColumn>>> matchingHeaders = new ArrayList<Pair<SegmentHeader, List<SegmentColumn>>>();\n headerLoop: for (SegmentHeader header : ... |
"static boolean areSubtypes(JSType t1, JSType t2) {\n ImmutableSet<EnumType> s1 = t1.getEnums();\n if (s1 == null) {\n return true;\n }\n ImmutableSet<EnumType> s2 = t2.getEnums();\n for (EnumType e : s1) {\n if (s2 != null && s2.contains(e)) {\n continue;\n }\n if ... |
"public void initialize() {\n if (worldObj.isRemote) {\n return;\n }\n if (ConfigurationHandler.chunkLoadingMode != 0 && !CompactMachines.instance.machineHandler.isCoordChunkLoaded(this)) {\n CompactMachines.instance.machineHandler.forceChunkLoad(this.coords);\n }\n for (ForgeDirection dir ... |
"public void check(MarkerList markers, IContext context) {\n this.type.check(markers, context);\n this.value.check(markers, context);\n if (this.type.isPrimitive()) {\n markers.add(I18n.createError(this.position, \"String_Node_Str\"));\n return;\n }\n if (this.value.isPrimitive()) {\n ... |
"private static List<DimletDescriptor> parseNewDescriptionString(String descriptionString) {\n List<DimletDescriptor> result = new ArrayList<DimletDescriptor>();\n String ds = descriptionString.substring(1);\n if (!ds.isEmpty()) {\n String[] opcodes = ds.split(\"String_Node_Str\");\n for (String ... |
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {\n populateTemplateList();\n boolean useArtifactNameInLinks = variableMap.getBoolean(USE_ARTIFACT_NAMES);\n boolean useParagraphNumbersInLinks = variableMap.getBoolean(USE_PARAGRAPH_NUMBERS);\n variableMap.getBool... |
"public void map_abuseContact() throws XMLStreamException {\n final AbuseResources result = subject.mapAbuseContact(\"String_Node_Str\", \"String_Node_Str\", Lists.newArrayList(new RpslAttribute(\"String_Node_Str\", \"String_Node_Str\"), new RpslAttribute(\"String_Node_Str\", \"String_Node_Str\")));\n assertThat(... |
"private static NdkRelease getNdkRelease(Path directory, Environment env) throws RepositoryFunctionException, InterruptedException {\n Path releaseFilePath = directory.getRelative(\"String_Node_Str\");\n if (!releaseFilePath.exists()) {\n releaseFilePath = directory.getRelative(\"String_Node_Str\");\n }... |
"private void processTask(QueuedTask currentTask) {\n String name = null;\n IFile file = null;\n try {\n if (currentTask != null) {\n if (\"String_Node_Str\".equals(currentTask.task) || \"String_Node_Str\".equals(currentTask.task)) {\n name = currentTask.item.getName().replaceA... |
"public static void setUpBeforeClass() throws Exception {\n tables = new ArrayList<DBTable>();\n DefaultDBTable fooTable = new DefaultDBTable(null, \"String_Node_Str\", \"String_Node_Str\");\n DBColumn col = new DefaultDBColumn(\"String_Node_Str\", new DBType(DBDatatype.VARCHAR), fooTable);\n fooTable.addCo... |
"public String loadSplitFiles(String... filenames) {\n Result result = new Result();\n for (String filename : filenames) {\n File file = new File(filename);\n if (!file.isFile()) {\n result.addText(String.format(\"String_Node_Str\", filename));\n continue;\n }\n i... |
"private void setDetailsText(String domain, int downs, int ups) {\n Resources r = getResources();\n if (showPoints) {\n longDetailsText.clear();\n longDetailsText.append(r.getQuantityString(R.plurals.votes_up, ups, ups)).append(\"String_Node_Str\");\n longDetailsText.append(r.getQuantityStrin... |
"private String getAppArgValue(String arg, String defaultValue) {\n String value = defaultValue;\n int index = ArrayUtils.indexOf(Platform.getApplicationArgs(), arg);\n if (index > -1) {\n if (index + 1 < Platform.getApplicationArgs().length) {\n value = Platform.getApplicationArgs()[index + ... |
"public void setupMetadata(Stack stack) {\n Set<CoreInstanceMetaData> coreInstanceMetadata = new HashSet<>();\n AwsTemplate awsTemplate = (AwsTemplate) stack.getTemplate();\n AwsCredential awsCredential = (AwsCredential) stack.getCredential();\n AmazonCloudFormationClient amazonCfClient = awsStackUtil.creat... |
"public void testGetUngroupedValue() {\n final FilterUtils f = new FilterUtils(false, Collections.EMPTY_MAP);\n {\n final Map<String, List<String>> exp = new HashMap<String, List<String>>();\n exp.put(null, Arrays.asList(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\"));\n asser... |
"public String getJobName() {\n return get(KEY_JOB_NAME);\n}\n"
|
"public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n return true;\n } else if (id == R.id.action_save) {\n int checkedPosition = mFragment.lvItems.getCheckedItemPosition();\n Integer minutes = Integer.parseInt(items_value... |
"private ExoSocialMedia jsonToExoSocialMedia(JSONObject jsonObject) {\n ExoSocialMedia mediaObject = new ExoSocialMedia();\n try {\n mediaObject.setTitle(jsonObject.getString(EMBED_TITLE));\n mediaObject.setHtml(jsonObject.getString(EMBED_HTML));\n mediaObject.setType(jsonObject.getString(EMB... |
"protected Enumeration _schedule() throws NotSchedulableException {\n StaticSchedulingDirector dir = (StaticSchedulingDirector) getContainer();\n CompositeActor ca = (CompositeActor) (dir.getContainer());\n LinkedList AllActors = new LinkedList();\n Iterator entities = ca.deepEntityList().iterator();\n w... |
"public String resolveNamespaceUri(String uri) {\n String prefix = null;\n if (null != uriToPrefixMap) {\n Stack prefixStack = (Stack) uriToPrefixMap.get(uri);\n if (prefixStack != null && prefixStack.size() > 0) {\n prefix = (String) prefixStack.peek();\n }\n }\n if (null ==... |
"private void initAdhocInputs() throws IOException {\n for (final FileDataSource source : this.sources) {\n final TestRecords input = this.getInput(source);\n if (input.isAdhoc())\n input.saveToFile(source.getFilePath());\n }\n}\n"
|
"private ImagePanel createImagePanelInstance() {\n if (background == null) {\n synchronized (ThemePluginImpl.class) {\n if (background == null) {\n String filename = \"String_Node_Str\";\n try {\n if (PreferencesDialog.getCachedValue(PreferencesDialo... |
"public void onDisable() {\n for (Player p : getServer().getOnlinePlayers()) {\n EBean eBeanClass = EBean.checkPlayer(p, true);\n if (eBeanClass.getAuthorized() != null && eBeanClass.getAuthorized().equalsIgnoreCase(\"String_Node_Str\")) {\n eBeanClass.setReloadtime(Util.timeStamp());\n ... |
"public <E> ObjectGraph generateGraph(E entity, PersistenceDelegator delegator) {\n this.builder.assign(this);\n Node node = generate(entity, delegator, delegator.getPersistenceCache(), state);\n this.builder.assignHeadNode(node);\n return this.builder.getGraph();\n}\n"
|
"public void run() {\n mStackScroller.animateScroll(mLayoutAlgorithm.mMaxScrollP, null);\n}\n"
|
"public static Visibility forMember(Member member) {\n if ((member.getModifiers() & (Modifier.PROTECTED | Modifier.PUBLIC)) == 0) {\n return SAME_PACKAGE;\n }\n Class[] parameterTypes;\n if (member instanceof Constructor) {\n parameterTypes = ((Constructor) member).getParameterTypes();\n } ... |
"public synchronized long skipToKeyframeBefore(long timeUs) {\n if (queueSize == 0 || timeUs < timesUs[relativeReadIndex]) {\n return C.POSITION_UNSET;\n }\n if (timeUs > largestQueuedTimestampUs) {\n return C.POSITION_UNSET;\n }\n int sampleCount = 0;\n int sampleCountToKeyframe = -1;\n... |
"private static void cronValidation(String[] args) throws ParseException {\n Options options = new Options();\n options.addOption(\"String_Node_Str\", \"String_Node_Str\", false, \"String_Node_Str\");\n options.addOption(\"String_Node_Str\", \"String_Node_Str\", true, \"String_Node_Str\");\n options.addOpti... |
"public static void shutDown(final VmInstance vm) throws TransactionException {\n if (!VmStateSet.DONE.apply(vm)) {\n Transitions.SHUTDOWN.apply(vm);\n }\n}\n"
|
"public void setChainId(String chainId) {\n if (resNum == null)\n resNum = new ResidueNumber();\n resNum.setChainName(chainId);\n}\n"
|
"protected void verifyStringSize() {\n clickCorrectButton();\n selenium.type(inputFormat.format(ID.stringSize), wrongValue.get(ID.stringSize).toString());\n selenium.click(a4jCommandBtn);\n waitGui.until(textEquals.locator(msgFormat.format(ID.stringSize)).text(messages.get(ID.stringSize)));\n}\n"
|
"private void warnInvalidOperand(Node expr, Token operatorType, Object expected, Object actual) {\n Preconditions.checkArgument((expected instanceof String) || (expected instanceof JSType));\n Preconditions.checkArgument((actual instanceof String) || (actual instanceof JSType));\n if (expected instanceof JSTyp... |
"public void turn(Random rand) {\n double[] ids = this.getIdentifiers(rand);\n double[] q = this.getQuality(rand, ids);\n int newID = this.getDecision(rand, q);\n if (this.partnerID != -1 && ids[newID] != this.id) {\n ((IQDNode) this.getGraph().getNode(this.partnerID)).setID(this, this.getID());\n ... |
"public static Time toTime(Object source) throws BirtException {\n if (source == null)\n return null;\n if (source instanceof Date) {\n return new Time(((Date) source).getTime());\n } else if (source instanceof String) {\n try {\n return new Time(toDate((String) source).getTime(... |
"private int dominanceTest(Solution<?> solution1, Solution<?> solution2) {\n int result;\n boolean solution1Dominates = false;\n boolean solution2Dominates = false;\n int flag;\n double value1, value2;\n for (int i = 0; i < solution1.getNumberOfObjectives(); i++) {\n value1 = solution1.getObjec... |
"public TCTokenResponse handleActivate(TCTokenRequest request) throws InvalidRedirectUrlException, SecurityViolationException, NonGuiException {\n TCToken token = request.getTCToken();\n if (logger.isDebugEnabled()) {\n try {\n WSMarshaller m = WSMarshallerFactory.createInstance();\n ... |
"public ContentPreferencesBuilder withOmit(Preference preference) {\n this.contentPreferences.omit(normalize(preference));\n return this;\n}\n"
|
"private void populateRegistrationDomain() {\n NSURL settingsBundleURL = NSBundle.getMainBundle().findResourceURL(\"String_Node_Str\", \"String_Node_Str\");\n NSDictionary<?, ?> appDefaults = loadDefaults(\"String_Node_Str\", settingsBundleURL);\n NSUserDefaults.getStandardUserDefaults().registerDefaults(appDe... |
"public void onAnsweredElsewhere() {\n ;\n String state = getCallState();\n Log.d(LOG_TAG, \"String_Node_Str\" + state);\n if (!isCallEnded() && !mIsAnswered) {\n dispatchAnsweredElsewhere();\n terminate(IMXCall.END_CALL_REASON_UNDEFINED);\n }\n}\n"
|
"public static MultiLabelClfDataSet loadMultiLabelClfDataSet(String libSvmFile, boolean dense, int numFeatures, int numClasses) throws IOException, ClassNotFoundException {\n int numDatapoints = getNumDataPoints(libSvmFile);\n System.out.println(\"String_Node_Str\" + numDatapoints);\n System.out.println(\"Stri... |
"private int[] detectLocation(String message) {\n String LINE = \"String_Node_Str\";\n String COLUMN = \"String_Node_Str\";\n int lineStarts = message.indexOf(LINE);\n int lineEnds = message.indexOf(COLUMN);\n if (lineStarts != -1 && lineEnds != -1) {\n String line = message.substring(lineStarts +... |
"public void getSubRecords(MultiResultSet results, ComparisonType comparisonType, Comparable searchedValue) {\n takeReadLock();\n try {\n Set<Comparable> values = recordMap.keySet();\n for (Comparable value : values) {\n boolean valid;\n int result = value.compareTo(searchedVal... |
"public static String getExtensionForMimeType(String mimeType) {\n if (TextUtils.isEmpty(mimeType))\n return \"String_Node_Str\";\n MimeTypeMap mimeTypeMap = MimeTypeMap.getSingleton();\n String fileExtensionFromMimeType = mimeTypeMap.getExtensionFromMimeType(mimeType);\n if (TextUtils.isEmpty(fileEx... |
"public static void main(String[] args) throws Exception {\n String ontologyPath = \"String_Node_Str\";\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n OWLOntology ontology = man.loadOntologyFromOntologyDocument(new File(ontologyPath));\n AbstractKnowledgeSource source = new OWLAPIOntolo... |
"public void testArtifact() {\n Authorizable authorizable;\n ArtifactId artifactId = new ArtifactId(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n authorizable = Authorizable.fromEntityId(artifactId);\n String artifactIdNoVer = artifactId.toString().replace(\"String_Node_Str\", \"String_N... |
"public void testMain() throws Exception {\n String[] args = { \"String_Node_Str\", inputDir.getAbsolutePath(), \"String_Node_Str\", outputDir.getAbsolutePath(), \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n SequenceFilesFromMailArchives.main(args);\n File expectedChun... |
"protected void _saveAs() {\n try {\n _searchCriteria = new SearchCriteria();\n if (!_attributesListPanel.getModelName().trim().isEmpty()) {\n _searchCriteria.setModelName(_attributesListPanel.getModelName());\n }\n if (_attributesListPanel.getAttributeCount() > 0) {\n ... |
"public void startBlurCluster(String path, int controllerCount, int shardCount, boolean randomPort, boolean externalProcesses) {\n MemoryReporter.enable();\n startDfs(path + \"String_Node_Str\");\n startZooKeeper(path + \"String_Node_Str\", randomPort);\n setupBuffers();\n startControllers(controllerCoun... |
"public void run() {\n if (invokable == null) {\n LOG.fatal(\"String_Node_Str\");\n }\n changeExecutionState(ExecutionState.RUNNING, null);\n try {\n this.invokable.invoke();\n if (this.isCanceled) {\n throw new InterruptedException();\n }\n } catch (Exception e) {\... |
"private <T> T parseJson(String json, List<String> elements, Class<T> clazz) {\n Function<String, T> func = HttpValueFunctions.chain(JsonFunctions.asJson(), JsonFunctions.walk(elements), JsonFunctions.cast(clazz));\n return func.apply(json);\n}\n"
|
"private void createWadlResource(Set<AbstractResource> rootResources, RulesMap<UriRule> rulesMap) {\n Object wr = WadlFactory.createWadlResource(rootResources);\n if (wr == null)\n return;\n getResourceClass(WadlResource.class);\n UriTemplate t = new PathTemplate(\"String_Node_Str\", false);\n Pat... |
"public void read(Buffer buffer) throws PortAudioException {\n if (stopping || !started) {\n buffer.setLength(0);\n return;\n }\n synchronized (readSync) {\n while (true) {\n if (bufferData == null) {\n if (!parentStream.read(buffer)) {\n try {\... |
"protected void createAndDisplayTypesSheet(String sSelectedType) {\n IChartType chartType = ChartUIUtil.getChartType(sSelectedType);\n if (cbOrientation != null) {\n lblOrientation.setEnabled(chartType.supportsTransposition() && !is3D());\n cbOrientation.setEnabled(chartType.supportsTransposition() ... |
"private ConfigNode findChild(String childName) {\n for (ConfigNode node : children) {\n if (id.equalsIgnoreCase(node.id)) {\n return node;\n }\n }\n return null;\n}\n"
|
"public void onTabReselected(ActionBar.Tab tab) {\n if (enableLog)\n Log.d(TAG, \"String_Node_Str\" + tab);\n}\n"
|
"public void pullUpdates() {\n try {\n if (masterServer == null) {\n receive(broker.getMaster().first().pullUpdates(getSlaveContext(-1)));\n }\n } catch (ZooKeeperException e) {\n newMaster(null, e);\n throw e;\n } catch (ComException e) {\n newMaster(null, e);\n ... |
"protected void doFilterInternal(HttpServletRequest req, HttpServletResponse resp, FilterChain chain) throws IOException, ServletException {\n String token = CSRFToken.getToken(req);\n if (token == null) {\n token = UUID.randomUUID().toString();\n CSRFToken.setToken(req, token);\n }\n resp.set... |
"public boolean onLayerBeforeDraw(Layer layer) {\n for (WiresConnector c : m_wiresManager.getConnectorList()) {\n if (c.getLine().getPathPartList().size() < 1) {\n AbstractDirectionalMultiPointShape<?> line = c.getLine();\n if (c.isSpecialConnection() && line.getPathPartList().size() == ... |
"public boolean OnUpdate(float dt) {\n if (mTargetInfo == null) {\n float tf = mTime / mPeriod;\n float f = (mLinear ? mLinearInterpolator.getInterpolation(tf) : mOvershootInterpolator.getInterpolation(tf));\n mTime += dt;\n float x = mInitialX + (mTargetX - mInitialX) * f;\n float... |
"public void setValue(Object o) {\n super.setValue(o);\n if (!isFirstCall || widget.getContent() instanceof ComponentProperties) {\n updateProperty(o);\n boolean calledValidate = callValidate();\n if (calledValidate) {\n fireValidateStatusEvent();\n }\n boolean called... |
"public void processArgument(StoredProcedureCall call, boolean callByIndex, int index) {\n boolean shouldCallByIndex = process(call, index);\n if (!callByIndex) {\n callByIndex = shouldCallByIndex;\n }\n if (m_mode.equals(JPA_PARAMETER_IN)) {\n if (hasType()) {\n if (callByIndex) {\... |
"private boolean _timedInterruptOccurred() throws IllegalActionException {\n if (_timedInterruptTimes.isEmpty()) {\n return false;\n }\n Time topTimedInterruptWakeUpTime = _timedInterruptWakeUpTimes.get(0);\n int result = topTimedInterruptWakeUpTime.compareTo(getPlatformPhysicalTag(PLATFORM_TIMER).ti... |
"public static BitmapContainer transformToBitmapContainer(ArrayContainer ac) {\n BitmapContainer bc = Bbuffer.isEmpty() ? new BitmapContainer() : Bbuffer.remove(Bbuffer.size() - 1);\n bc.loadData(ac);\n putBackInStore(ac);\n return bc;\n}\n"
|
"public int getCount() {\n if (mAdapter != null) {\n final int lastRowItemCount = (mAdapter.getCount() % mNumColumns);\n final int emptyItemCount = ((lastRowItemCount == 0) ? 0 : mNumColumns - lastRowItemCount);\n return (getHeadersCount() * mNumColumns) + mAdapter.getCount() + emptyItemCount + ... |
"public void onPictureTaken(final byte[] jpegData, CameraProxy camera) {\n mUI.enableShutter(true);\n if (mPaused) {\n return;\n }\n if (mIsImageCaptureIntent) {\n stopPreview();\n }\n if (mSceneMode == CameraUtil.SCENE_MODE_HDR) {\n mUI.showSwitcher();\n mUI.setSwipingEnab... |
"public void remove(V value) {\n V oldValue = this.map.remove(value);\n if (oldValue != null) {\n this.tree.remove(oldValue);\n }\n}\n"
|
"public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(LAYOUT_INFLATER_SERVICE);\n View rowView = inflater.inflate(R.layout.commodity_list_item, parent, false);\n CheckBox checkboxCommoditySelected = (CheckBox) rowView... |
"private void highlightRecommendation(AjaxRequestTarget aTarget, int aBegin, int aEnd, String aText, String aRecommendation) {\n AnnotatorState annotatorState = ActiveLearningSidebar.this.getModelObject();\n model = recommendationService.getPredictions(annotatorState.getUser(), annotatorState.getProject());\n ... |
"public void testAdapterLogsPrev() throws Exception {\n testPrev(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", MockLogReader.TEST_NAMESPACE, \"String_Node_Str\");\n testPrevNoMax(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", MockLogReader.TEST_NAMESPACE, \"String_Node_Str\");\n ... |
"public void initRecordReader(GuaguaFileSplit fileSplit) throws IOException {\n super.setRecordReader(new GuaguaLineRecordReader(fileSplit));\n}\n"
|
"public ProteusView.Manager createViewManager(ProteusContext context, ProteusView view, Layout layout, ObjectValue data, ViewTypeParser fallback, ViewGroup parent, int dataIndex) {\n DataContext dataContext = createScope(layout, data, parent, dataIndex);\n return new ViewGroupManager(context, null != caller ? cal... |
"public void setBooleanValue(Boolean booleanValue) {\n if (booleanValue == null) {\n this.booleanValue = null;\n } else if (booleanValue == Boolean.TRUE) {\n this.booleanValue = 'T';\n } else {\n this.booleanValue = getBooleanAsCharacter(booleanValue);\n }\n}\n"
|
"protected boolean isColumnExisting(String schemaName, String tableName, String columnName, final DatabaseMetaData dbMeta) throws DBException, SQLException {\n if (columnName == null || columnName.length() == 0)\n return true;\n boolean schemaCaseSensitive = translator.isCaseSensitive(IdentifierField.SCHEM... |
"public OutputStream rawCreate() throws IOException {\n return getProtocol().putData(this, this.md);\n}\n"
|
"private static Schema copyDynamicColumnProperties(Schema schema, org.talend.core.model.metadata.builder.connection.MetadataColumn in) {\n Map<String, String> props = new HashMap<String, String>();\n if (in.getId() != null) {\n schema = AvroUtils.setProperty(schema, Talend6SchemaConstants.TALEND6_DYNAMIC_C... |
"public void removeCache_CacheStopped() {\n CacheManager cacheManager = getCacheManager();\n String name1 = \"String_Node_Str\";\n Cache cache1 = cacheManager.configureCache(name1, new MutableConfiguration());\n cacheManager.removeCache(name1);\n ensureClosed(cache1);\n}\n"
|
"public void doWithPersistentProperty(PersistentProperty persistentProperty) {\n Object fromVal = fromWrapper.getProperty(persistentProperty);\n if (null != fromVal && !fromVal.equals(targetWrapper.getProperty(persistentProperty))) {\n targetWrapper.setProperty(persistentProperty, fromVal);\n }\n}\n"
|
"public void update(HttpRequest request, HttpResponder responder, String namespaceId, String name) throws Exception {\n Id.DatasetInstance instance = ConversionHelpers.toDatasetInstanceId(namespaceId, name);\n Map<String, String> properties = ConversionHelpers.getProperties(request);\n instanceService.update(i... |
"public String findTocByName(String docName, String name, InputOptions options) {\n IReportDocument doc = ReportEngineService.getInstance().openReportDocument(getReportDesignName(options), docName);\n String tocId = null;\n if (doc.findTOCByName(name) != null && doc.findTOCByName(name).size() > 0)\n ret... |
"public CoasterChannel getExistingChannel(String host, GSSCredential cred) {\n CoasterChannel channel = getChannel(host, cred);\n if (channel == null) {\n throw new IllegalStateException(\"String_Node_Str\" + host);\n }\n return channel;\n}\n"
|
"public void process(ActionContext ac) throws Throwable {\n Object module = ac.getModule();\n Method method = ac.getMethod();\n Object[] args = ac.getMethodArgs();\n try {\n Object re = method.invoke(module, args);\n ac.setMethodReturn(re);\n doNext(ac);\n } catch (IllegalAccessExcep... |
"private org.apache.brooklyn.util.core.internal.winrm.WinRmToolResponse exec(Function<io.cloudsoft.winrm4j.winrm.WinRmTool, io.cloudsoft.winrm4j.winrm.WinRmToolResponse> task) {\n Collection<Throwable> exceptions = Lists.newArrayList();\n Stopwatch totalStopwatch = Stopwatch.createStarted();\n for (int i = 0; ... |
"public void init(FilterConfig conf) throws ServletException {\n Mvcs.setServletContext(conf.getServletContext());\n this.selfName = conf.getFilterName();\n Mvcs.set(selfName, null, null);\n FilterNutConfig config = new FilterNutConfig(conf);\n Mvcs.setNutConfig(config);\n handler = new ActionHandler(... |
"protected Set<Entry<Data, Data>> entrySetInternal() {\n final NodeEngine nodeEngine = getNodeEngine();\n try {\n MapEntrySetOperation mapEntrySetOperation = new MapEntrySetOperation(name);\n Map<Integer, Object> results = nodeEngine.getOperationService().invokeOnAllPartitions(SERVICE_NAME, mapEntry... |
"public Boolean call() throws Exception {\n boolean changed = false;\n String category = getCategory();\n String feature = getFeature();\n if (!newCategory.equals(category) || !newFeature.equals(feature)) {\n Set<String> featureSet = featureMap.get(newCategory);\n if (featureSet != null) {\n ... |
"private boolean isValidDataSource() {\n return !isURLBlank() || !isJNDIBlank();\n}\n"
|
"public boolean notifyVisible(boolean visible, List<Runnable> invokeLaterRunnables) {\n if (isFormVisible == visible || executingOnLoad)\n return true;\n if (formModel == null) {\n isFormVisible = visible;\n return true;\n }\n boolean notifyVisible = super.notifyVisible(visible, invokeL... |
"public TmfContext seekLocation(double ratio) {\n try {\n BufferedRandomAccessFile raFile = new BufferedRandomAccessFile(getPath(), \"String_Node_Str\");\n long pos = (long) (ratio * raFile.length());\n while (pos > 0) {\n raFile.seek(pos - 1);\n if (raFile.read() == '\\n')... |
"public String mapFunction(String script) {\n ArrayList<String> list = new ArrayList<String>();\n list.add(\"String_Node_Str\");\n list.add(\"String_Node_Str\");\n list.add(\"String_Node_Str\");\n list.add(\"String_Node_Str\");\n list.add(\"String_Node_Str\");\n list.add(\"String_Node_Str\");\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.