content stringlengths 40 137k |
|---|
"public <W extends AbstractSlider<T>> W setMax(Integer max) {\n this.options.set(\"String_Node_Str\", max);\n return this;\n}\n"
|
"public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {\n final UserProfile profile = userService.findProfileByAlias(username);\n if (profile == null) {\n throw new UsernameNotFoundException(\"String_Node_Str\" + username + \"String_Node_Str\");\n }\n return new Use... |
"public void createControl(final Composite parent) {\n Composite composite = SWTFactory.createComposite(parent, 1, 1, GridData.FILL_HORIZONTAL);\n m_comp = composite;\n Composite namecomp = SWTFactory.createComposite(composite, composite.getFont(), 3, 1, GridData.FILL_HORIZONTAL, 0, 0);\n Label label = SWTF... |
"private void expandField(SchemaField iField) {\n SchemaClass cl = iField.getType().getSchemaClass();\n Iterator<SchemaField> fields = cl.getFieldIterator();\n while (fields.hasNext()) {\n SchemaField sf = fields.next();\n SchemaField parentField = iField.getEntity().getField(sf.getName());\n ... |
"public int hashCode() {\n int hashCode = 17;\n hashCode = 31 * hashCode + Arrays.hashCode(clazzes);\n hashCode = 31 * hashCode + type.hashCode();\n return hashCode;\n}\n"
|
"private FormStatus populateListOfLauncherFiles() {\n DataComponent launcherFiles = (DataComponent) mooseLauncher.getForm().getComponent(1);\n String fileName = modelFiles.retrieveEntry(\"String_Node_Str\").getValue();\n FormStatus retStatus = mooseModel.process(\"String_Node_Str\");\n if (!retStatus.equals... |
"public boolean canClose(Journal journal) {\n String name = journal.getName();\n if (journal instanceof R) {\n Entry e = entries.get(name);\n if (e == null) {\n LOG.error().$(\"String_Node_Str\").$(name).$(\"String_Node_Str\").$();\n return true;\n }\n long thread... |
"public void handleClearSelections() {\n if (!contentTree.isDisposed())\n contentTree.removeAll();\n if (!dimensionTree.isDisposed())\n dimensionTree.removeAll();\n recordSelectionManager.clearSelections();\n dimensionSelectionManager.clearSelections();\n}\n"
|
"public static <T> List<T> queryColumnSQLKey(String sqlKey, String columnName, Class<T> columnType, Object[] params) {\n String sql = YANK_POOL_MANAGER.getMergedSqlProperties().getProperty(sqlKey);\n if (sql == null || sql.equalsIgnoreCase(\"String_Node_Str\")) {\n throw new SQLStatementNotFoundException()... |
"protected void writeValue(JsonWriter jw, EdmBaseType type, Object pvalue) {\n if (pvalue == null) {\n jw.writeNull();\n } else if (type.equals(EdmType.BINARY)) {\n jw.writeString(Base64.encodeBase64String((byte[]) pvalue));\n } else if (type.equals(EdmType.BOOLEAN)) {\n jw.writeBoolean((B... |
"public void create(Table table) {\n drawDebug = true;\n shapeRenderer = new ShapeRenderer();\n world = new World(new Vector2(0, 0), true);\n createRandomWalls(8);\n final SteeringActor character = new SteeringActor(container.greenFish, false);\n character.setPosition(50, 50, Align.center);\n chara... |
"private String readDistroManifest() throws IOException {\n URL manifestUrl = new URL(distrosManifestUrl);\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(manifestUrl.openStream()));\n StringBuffer sb = new StringBuffer();\n String line;\n while (... |
"protected int stringCompare(SQLChar char1, SQLChar char2) throws StandardException {\n return holderForCollationSensitiveInfo.stringCompare(char1, char2);\n}\n"
|
"void systemReady() {\n mUserPackageMonitor.register(mContext, null, UserHandle.ALL, false);\n userForeground(UserHandle.USER_OWNER);\n}\n"
|
"protected double getSpeedAbilityMod(BattlePlayer player) {\n double sm = 1;\n Pokemon pokemon = player.getPokemon();\n if (player.isGastroAcid()) {\n return sm;\n }\n switch(pokemon.getBattleAbility()) {\n case CHLOROPHYLL:\n if (mWeather == Weather.SUNNY_DAY) {\n ... |
"public boolean onTouch(View v, MotionEvent event) {\n final float eventX = event.getX();\n final float eventY = event.getY();\n int degrees;\n int value;\n final Boolean[] isInnerCircle = new Boolean[1];\n isInnerCircle[0] = false;\n long millis = SystemClock.uptimeMillis();\n switch(event.getA... |
"protected void playManaAbilities(Ability abilityToCast, ManaCost unpaid, Game game) {\n updateGameStatePriority(\"String_Node_Str\", game);\n MageObject object = game.getObject(response.getUUID());\n if (object == null) {\n return;\n }\n if (AbilityType.SPELL.equals(abilityToCast.getAbilityType()... |
"protected synchronized void publishDemotionFromMasterOnFailure() {\n checkState(getNodeState() == ManagementNodeState.FAILED, \"String_Node_Str\", getNodeState());\n publishDemotionFromMaster(true);\n}\n"
|
"String toString(StringMaker sm) {\n StringBuffer buf = new StringBuffer();\n buf.append(sm.makeModifiersString(getModifiers()));\n buf.append(sm.makePrimaryTypeName(getDeclaringType(), getDeclaringTypeName()));\n sm.addSignature(buf, getParameterTypes());\n sm.addThrows(buf, getExceptionTypes());\n r... |
"public void execute(OperationParams params) throws Exception {\n if (parameters.size() != 1) {\n throw new ParameterException(\"String_Node_Str\");\n }\n String inputStoreName = parameters.get(0);\n File configFile = (File) params.getContext().get(ConfigOptions.PROPERTIES_FILE_CONTEXT);\n if (inp... |
"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 ... |
"public void startEnterRecentsAnimation(ViewAnimation.TaskViewEnterContext ctx) {\n TaskViewTransform transform = ctx.transform;\n if (mConfig.launchedFromAppWithScreenshot) {\n if (ctx.isFrontMost) {\n ctx.fullScreenshot.animateOnEnterRecents(ctx, new Runnable() {\n public void r... |
"public static String format(long size, int format) {\n if (size < 0)\n return \"String_Node_Str\";\n String digitsString;\n String unitString;\n boolean unitLong = (format & UNIT_LONG) != 0;\n boolean unitShort = (format & UNIT_SHORT) != 0;\n boolean noUnit = !(unitLong || unitShort);\n boo... |
"private String getImplClassAsKey(String key, Node jaxws, ClassLoader cl, String serviceClass, String serviceBean) {\n Node impl = jaxws.getAttributes().getNamedItem(serviceClass);\n if (null != impl) {\n String sClass = impl.getNodeValue();\n try {\n Class<?> c = cl.loadClass(sClass);\n ... |
"public void testItemDelete() {\n TodoListItem item = createItem();\n repository.insert(item);\n repository.delete(item);\n TodoListItem fromDb = repository.getItemById(item.getUuid());\n assertNull(fromDb);\n}\n"
|
"public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\" + getMethod());\n builder.append(\"String_Node_Str\" + getCi());\n builder.append(\"String_Node_Str\");\n for (Iterator<MessageParam> iterator = getMessageParams().iterator(); iterator.hasNext(... |
"public void onSuccess(User result) {\n if (result.isActive()) {\n Dialogs.showInformationDialog(messages.registerSuccessDialogTitle(), messages.registerSuccessDialogMessageActive(), messages.registerSuccessDialogButton(), new AsyncCallback<Void>() {\n public void onSuccess(Void result) {\n ... |
"void validateHostName(String hostName) throws CommandValidationException {\n if (!StringUtils.ok(hostName)) {\n throw new CommandValidationException(Strings.get(\"String_Node_Str\"));\n }\n try {\n InetAddress.getByName(hostName);\n } catch (UnknownHostException e) {\n throw new Comman... |
"public void handleAIMove(Position fromPos, Position toPos) {\n Log.i(TAG, \"String_Node_Str\" + moveCount_);\n ++moveCount_;\n timeTracker_.nextColor();\n}\n"
|
"public CacheConfig createCacheConfigIfAbsent(CacheConfig config) {\n final CacheConfig localConfig = configs.putIfAbsent(config.getNameWithPrefix(), config);\n if (localConfig == null) {\n if (config.isStatisticsEnabled()) {\n setStatisticsEnabled(config, config.getNameWithPrefix(), true);\n ... |
"public void setValueAt(Object value, int row, int col) {\n Debug.print(\"String_Node_Str\" + row + \"String_Node_Str\" + col);\n try {\n switch(col) {\n case 0:\n data.setMaltSteep(row, new Boolean(value.toString()).booleanValue());\n break;\n case 1:\n ... |
"private void searchAllUDIs(IFolder folder) throws CoreException {\n for (IResource resource : folder.members()) {\n if (resource.getType() == IResource.FOLDER) {\n searchAllUDIs(folder.getFolder(resource.getName()));\n continue;\n }\n IFile file = (IFile) resource;\n ... |
"public void onViewStateRestored(Bundle savedInstanceState) {\n if (savedInstanceState != null) {\n currentScreen = savedInstanceState.getInt(ACCOUNT_CURRENT_SCREEN, BALANCE);\n } else {\n currentScreen = BALANCE;\n }\n super.onViewStateRestored(savedInstanceState);\n}\n"
|
"public byte[] encodeEXI(Object jaxbObject, boolean supportedAppProtocolHandshake) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n try {\n if (xsdSchemaPath.equals(GlobalValues.SCHEMA_PATH_APP_PROTOCOL.toString()))\n setGrammarCache(new GrammarCache(getExiSchemaAppProtocol(), get... |
"private void addFieldsTab(CTabFolder wTabFolder) {\n CTabItem wTab = new CTabItem(wTabFolder, SWT.NONE);\n wTab.setText(BaseMessages.getString(PKG, \"String_Node_Str\"));\n Composite wComp = new Composite(wTabFolder, SWT.NONE);\n props.setLook(wComp);\n FormLayout layout = new FormLayout();\n layout.... |
"private Component cartView() {\n cartView = new ListView<CartItemInfo>(\"String_Node_Str\", cartListModel()) {\n\n protected void populateItem(ListItem<CartItemInfo> item) {\n WebMarkupContainer cartItem = new WebMarkupContainer(\"String_Node_Str\");\n cartItem.add(new Label(\"String_No... |
"public String desc() {\n Char ch = (Char) Actor.findById(object);\n return \"String_Node_Str\" + ((ch == null) ? \"String_Node_Str\" : \"String_Node_Str\" + ch.name) + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n}\n"
|
"public static Map<String, ProviderEndpoint> extractProviders(Properties endpoints, Properties gatewayProperties) {\n Map<String, ProviderEndpoint> results = new HashMap<>();\n logger.info(\"String_Node_Str\");\n if (endpoints == null || endpoints.isEmpty()) {\n logger.warn(\"String_Node_Str\");\n ... |
"public static UserGroupInformation createUGIFromSubject(Subject subject) throws IOException {\n logger.info(\"String_Node_Str\" + (subject == null ? \"String_Node_Str\" : \"String_Node_Str\"));\n UserGroupInformation ugi = null;\n if (subject != null) {\n logger.info(\"String_Node_Str\" + subject.getPr... |
"public AssignInst processKnownReg(BasicBlock basicBlock) {\n if (src instanceof Register) {\n Literal valLiteral = basicBlock.getKnownReg((Register) src);\n if (valLiteral != null)\n val = valLiteral;\n }\n return this;\n}\n"
|
"public static DateTimeFormat getFullDateFormat() {\n if (cachedFullDateFormat == null) {\n String pattern = getDefaultDateTimeConstants().dateFormats()[FULL_DATE_FORMAT];\n cachedFullDateFormat = new DateTimeFormat(pattern);\n }\n return cachedFullDateFormat;\n}\n"
|
"public void test() {\n ReadAllQuery query = new ReadAllQuery();\n query.setReferenceClass(Employee.class);\n if (TYPE_SCROLL_INSENSITIVE_isSupported && CONCUR_UPDATABLE_isSupported) {\n query.useScrollableCursor();\n } else {\n ScrollableCursorPolicy policy = new ScrollableCursorPolicy();\n ... |
"public void execute(AdminCommandContext context) {\n if (!env.isInstance()) {\n String msg = Strings.get(\"String_Node_Str\", env.getRuntimeType().toString());\n context.getLogger().warning(msg);\n return;\n }\n doExecute(habitat, env, force);\n}\n"
|
"void updateDisplayInfo(Rect bounds) {\n if (mDisplayContent != null) {\n if (bounds != null) {\n setBounds(bounds);\n } else {\n TmpRect2.set(mBounds);\n mDisplayContent.rotateBounds(mRotation, mDisplayContent.getDisplayInfo().rotation, TmpRect2);\n setBound... |
"public String toString() {\n return \"String_Node_Str\" + \"String_Node_Str\" + batchIntervalMillis + \"String_Node_Str\" + extraJavaOpts + '\\'' + \"String_Node_Str\" + stopGracefully + \"String_Node_Str\" + super.toString();\n}\n"
|
"public void testSimpleSplitJdbcTemplate() {\n SimpleSplitJdbcTemplate simpleSplitJdbcTemplate = (SimpleSplitJdbcTemplate) applicationContext.getBean(\"String_Node_Str\");\n IdService idService = (IdService) applicationContext.getBean(\"String_Node_Str\");\n Random random = new Random(new Date().getTime());\n ... |
"public void processItemChange(ItemChangeEvent itemChangeEvent) throws AbortProcessingException {\n processEvent(itemChangeEvent);\n}\n"
|
"private final CheckedListenableFuture<P> afterLeave(final T transitionName, final ActiveTransition tid) throws IllegalStateException {\n try {\n CheckedListenableFuture<P> result = tid.leave();\n try {\n this.fireOutListeners(tid.getTransitionRule().getFromState());\n } catch (Except... |
"private ClassType resolveLabel(String modelName, String label) {\n ClassType result = null;\n if (modelName == null || modelName.equals(\"String_Node_Str\")) {\n for (Model model : models.values()) {\n ClassType modelResult = model.resolveLabel(label);\n if (modelResult != null) {\n ... |
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n if (xmlField.getLastXPathFragment().isAttribute()) {\n if (!this.xmlCollectionReferenceMapping.usesSingleNode()) {\n String namespaceURI = xmlField.getLastXPathFragment().getNamespaceURI(... |
"public void output(JsonGenerator out, Type value) throws Exception {\n Type type = (Type) value;\n out.writeStartObject();\n out.writeStringField(\"String_Node_Str\", type.getName());\n if (type.getSuperType() != null) {\n out.writeStringField(\"String_Node_Str\", type.getSuperType().getName());\n ... |
"public void addCallsite(String eventName, String funcName, long ip, String fileName, long lineNumber) {\n final CTFCallsite cs = new CTFCallsite(eventName, funcName, ip, fileName, lineNumber);\n TreeSet<CTFCallsite> csl = callsitesByName.get(eventName);\n if (csl == null) {\n csl = new LinkedList<CTFCa... |
"public void unlockEntry(Object locker) throws IOException {\n if (isArchiveFileAvailable(af)) {\n af.unlockEntry(locker);\n } else {\n throw new IOException(CoreMessages.getString(ResourceConstants.FILE_HAS_BEEN_CLOSED));\n }\n}\n"
|
"protected void accessTableBand(TableBandDesign band, IContentEmitter emitter, IResultIterator rsIterator) {\n if (band != null) {\n for (int i = 0; i < band.getRowCount(); i++) {\n RowDesign rowDesign = band.getRow(i);\n rowDesign.setBandType(band.getBandType());\n rowDesign.... |
"public KltTrackFault track(KltFeature feature) {\n setAllowedBounds(feature);\n if (descFeature.data.length < lengthFeature)\n descFeature.reshape(widthFeature, widthFeature);\n float origX = feature.x, origY = feature.y;\n setAllowedBounds(feature);\n float det = 0;\n if (isFullyInside(featur... |
"public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {\n Cursor c = context.getContentResolver().query(StatusProvider.CONTENT_URI, null, null, null, StatusData.C_CREATED_AT + \"String_Node_Str\");\n try {\n if (c.moveToFirst()) {\n CharSequence user = c.g... |
"public void printStats() {\n for (OCache c : _caches.values()) c.printStats();\n}\n"
|
"public void update(AtlasRenderer a, float delta) {\n update(delta);\n if (!isComplete() && getPercent() < 1.0f)\n a.setFrame((int) (getPercent() * a.getNumFrames()));\n}\n"
|
"public void setSelectionPainter(Painter<?> selectedPainter) {\n for (FancyTab tab : tabs) {\n if (tab.isSelected()) {\n tab.setBackgroundPainter(selectedPainter);\n }\n }\n props.setSelectedPainter(selectedPainter);\n}\n"
|
"private void submit() {\n if (inAccountID == 0) {\n SnackBarUtil.showSnackInfo(floatingActionButton, this, getResources().getString(R.string.select_in_account));\n return;\n }\n if (TextUtils.isEmpty(eEtInMoney.getText())) {\n SnackBarUtil.showSnackInfo(floatingActionButton, this, \"Strin... |
"private Object evaluate(ICompiledScript compiledScript) throws BirtException {\n return getScriptContext().evaluate(compiledScript);\n}\n"
|
"public CohortDefinition getStrategy(String text) {\n return CohortExpressionParser.parse(text);\n}\n"
|
"private void read() {\n ObjectInputStream in = null;\n try {\n in = new ObjectInputStream(new FileInputStream(cacheFile));\n int size = in.readInt();\n for (int i = 0; i < size; i++) {\n String url = (String) in.readObject();\n MantisCacheData data = (MantisCacheData) i... |
"public ArrayList<Template> createTemplates(String question) throws IOException {\n long start = System.currentTimeMillis();\n ArrayList<Template> resultArrayList = new ArrayList<Template>();\n Set<BasicQueryTemplate> querytemps = null;\n querytemps = btemplator.buildBasicQueries(question);\n if (queryte... |
"protected void init() {\n try {\n in = new BufferedReader(new FileReader(parameters[0]));\n while (in.ready()) {\n StringTokens.add(in.readLine().trim());\n }\n in.close();\n } catch (FileNotFoundException | NullPointerException e) {\n }\n}\n"
|
"public StorageFacade getStorageFacade() {\n return storageFacade;\n}\n"
|
"private void initServlet(Servlet servlet) throws ServletException {\n if (instanceInitialized && !singleThreadModel) {\n return;\n }\n try {\n instanceSupport.fireInstanceEvent(BEFORE_INIT_EVENT, servlet);\n if (SecurityUtil.executeUnderSubjectDoAs()) {\n Object[] initType = ne... |
"private void update() {\n if (usersDone == myUser.getFriendIds().size()) {\n statusText = \"String_Node_Str\";\n completion = 1f;\n if (playlistIds.size() > 0)\n playlists.refreshFriendPlaylists(playlistIds);\n } else {\n statusText = \"String_Node_Str\" + (usersDone + 1) +... |
"public DateTime getTax() {\n if (Tax != null) {\n return Tax;\n } else {\n return new DateTime(1900, 1, 1, 1, 1);\n }\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Fabric.with(this, new Crashlytics());\n setContentView(R.layout.activity_bottombar);\n ButterKnife.bind(this);\n context = this;\n settingToolbar();\n replaceFragment(HomeFragment.newInstance(Constants.HOM... |
"public long hashByte(byte input) {\n long hash = seed() + P5 + 1;\n hash ^= Primitives.unsignedByte(input) * P5;\n hash = Long.rotateLeft(hash, 11) * P1;\n return XxHash_r39.finalize(hash);\n}\n"
|
"private long convertToGB(ContentSummary contentSummary) {\n long spaceConsumedinGB = contentSummary.getLength() / 1024 / 1024 / 1024;\n return spaceConsumedinGB;\n}\n"
|
"public void updateState() {\n setEnabled(TicketUtils.isTicketSet(Application.getInstance().getProject()) && !super.isDisabled() && MDKOptionsGroup.getMDKOptions().isMDKAdvancedOptions());\n}\n"
|
"private void createSpecificParametersFromType(final List<ElementParameter> listParam, final PARAMETERType xmlParam, final INode node, final EParameterFieldType type, ElementParameter parentParam) {\n if (type == EParameterFieldType.PROPERTY_TYPE) {\n ElementParameter newParam = new ElementParameter(node);\n ... |
"public void doJoin(AtomicBoolean joined) {\n NodeEngineImpl nodeEngine = null;\n for (Address address : addresses) {\n final NodeEngineImpl nodeEngine = nodes.get(address);\n if (nodeEngine != null && nodeEngine.getNode().isActive()) {\n master = address;\n break;\n }\n... |
"public int fileLinkSize() {\n return cacheLocalFile.size();\n}\n"
|
"public void onResume() {\n super.onResume();\n takeView();\n}\n"
|
"public void onPublish(InterceptPublishMessage msg) {\n ByteBuf payload = msg.getPayload();\n byte[] payloadContent = readBytesAndRewind(payload);\n LOG.info(\"String_Node_Str\", msg.getClientID(), msg.getTopicName(), new String(payloadContent, UTF_8));\n ITopic<HazelcastMsg> topic = hz.getTopic(\"String_No... |
"private void storeXMLDescriptorByQName(XMLDescriptor xmlDescriptor) {\n XPathQName descriptorQName;\n String defaultRootName;\n List tableNames = xmlDescriptor.getTableNames();\n for (int i = 0; i < tableNames.size(); i++) {\n defaultRootName = (String) tableNames.get(i);\n if (null != defaul... |
"public void testAugmentSffWithOpenFlowNodeId1() throws Exception {\n final String ofNodeId = \"String_Node_Str\";\n OvsdbNodeAugmentationBuilder ovsdbNodeAugmentationBuilder = new OvsdbNodeAugmentationBuilder();\n org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ipA... |
"public ArrayList<ViaHeader> getLocalViaHeaders(SipURI intendedDestination) throws OperationFailedException {\n ArrayList<ViaHeader> viaHeaders = new ArrayList<ViaHeader>();\n ListeningPoint srcListeningPoint = getListeningPoint(intendedDestination.getTransportParam());\n try {\n InetSocketAddress targe... |
"public void testAddTestCaseResultBlocked() {\n Assume.assumeTrue(TestIntegrationSuite.destructiveTestsOk);\n Assume.assumeTrue(TestIntegrationSuite.testInstance != null);\n TestResult result = new TestResult();\n result.setTestId(TestIntegrationSuite.testInstance.getId());\n result.setVerdict(\"String_N... |
"private static void appendInstitutionForAccounts() {\n String query = \"String_Node_Str\" + Account.class.getName() + \"String_Node_Str\";\n List<Account> instructorAccounts = (List<Account>) pm.newQuery(query).execute();\n HashMap<String, String> instructorInstitutions = new HashMap<String, String>();\n f... |
"public static void replayAndCreateSavegame(File replayFile, int targetGameTimeMs, String newReplayFile) throws IOException {\n OfflineNetworkConnector networkConnector = new OfflineNetworkConnector();\n networkConnector.getGameClock().setPausing(true);\n ReplayStartInformation replayStartInformation = new Rep... |
"public String getNccoResponse(final String conversationId, String uuid) {\n LOGGER.debug(\"String_Node_Str\", conversationId);\n boolean customerIsWaiting = false;\n NexMoConversation conversation = conversationService.getConversation(conversationId);\n if (null == conversation || null == call) {\n ... |
"private Session initializeDB(EngineConfig config) throws ConnectionException {\n Cluster cluster = Cluster.builder().addContactPoints(config.getCassandraHosts()).withPort(config.getCassandraPort()).build();\n LOG.info(\"String_Node_Str\" + Arrays.toString(config.getCassandraHosts()) + \"String_Node_Str\" + confi... |
"private void writeValuesAsFourBytes(TIFFField field) throws IOException {\n int dataType = field.getType();\n int count = field.getCount();\n switch(dataType) {\n case TIFFField.TIFF_BYTE:\n case TIFFField.TIFF_SBYTE:\n case TIFFField.TIFF_UNDEFINED:\n byte[] bytes = field.getA... |
"public InetAddress getNextHop() throws IllegalArgumentException {\n InetAddress nextHop = null;\n String nextHopStr = null;\n if (proxy != null && proxy.getProxyType() != org.jivesoftware.smack.proxy.ProxyInfo.ProxyType.NONE) {\n nextHopStr = proxy.getProxyAddress();\n else\n nextHopStr = get... |
"public void postIteration(final MasterContext<DTMasterParams, DTWorkerParams> context) {\n final int tmpModelFactor = DTrainUtils.tmpModelFactor(context.getTotalIteration());\n if (isRF) {\n if (context.getCurrentIteration() % (tmpModelFactor * 2) == 0) {\n Thread tmpModelPersistThread = new Th... |
"public List findComponents(String typeName) {\n Validate.notNull(typeName);\n List comps = new LinkedList();\n if (StringConstants.EMPTY.equals(typeName)) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n comps.add(new InvalidComponent());\n return ... |
"private void onSaveCardClicked() {\n card.setBackgroundResource(R.drawable.ym_card_process);\n saveCard.setEnabled(false);\n saveCard.setText(R.string.ym_success_saving_card);\n saveCard.setOnClickListener(null);\n description.setText(R.string.ym_success_saving_card_description);\n repeat();\n}\n"
|
"public void connectValue(DirectivePanel p) {\n if (p == null) {\n if (fromAnchor != null)\n fromAnchor.setTo(null);\n disconnectButton.setVisible(false);\n directiveAnchor.setVisible(true);\n fromPanel = null;\n fromAnchor = null;\n return;\n }\n fromAnchor... |
"private boolean kill(Process proc, Logger logger) {\n try {\n if (isUnix()) {\n Field field = proc.getClass().getDeclaredField(\"String_Node_Str\");\n field.setAccessible(true);\n Integer pid = (Integer) field.get(proc);\n String killCmd = Configuration.getString(\... |
"public void run() {\n for (ClusterEventListener listener : listeners) {\n listener.onNewActiveMember(member, members);\n }\n}\n"
|
"public static void modelBakeEvent(ModelBakeEvent event) {\n boolean replaceVanillaModels = ConfigCoroUtil.foliageShaders && EventHandler.queryUseOfShaders();\n boolean textureFix = false;\n if (replaceVanillaModels) {\n String str = \"String_Node_Str\";\n CULog.log(str);\n ProgressManager... |
"public List<T> getResultList(int firstResult, Integer maxResults) {\n if (maxResults != null && !batchSizeSetByUser)\n setBatchSize(maxResults);\n AbstractCursor<KeyValue<T>> all = (AbstractCursor<KeyValue<T>>) getResults();\n List<T> foundElements = new ArrayList<T>();\n try {\n return getEn... |
"public static String getExpressionType(Pattern pattern) {\n if (pattern != null) {\n PatternComponent component = pattern.getComponents().get(0);\n if (component == null) {\n return null;\n } else {\n RegularExpression regexp = DataqualitySwitchHelper.REGULAR_EXPR_SWITCH.d... |
"public void run() {\n synchronized (lock) {\n stopped = true;\n for (SeleniumWrapper remote : remotes) {\n if (remote.getSelenium() != null) {\n try {\n remote.getSelenium().stop();\n } catch (SeleniumException se) {\n shel... |
"public void touch(Instruction i) {\n log.debug(\"String_Node_Str\");\n int r = machine.peek();\n int top = machine.getPP();\n int pp = machine.get(machine.getFP());\n int fp = machine.get(machine.getFP() + 1);\n int pc = machine.get(machine.getFP() + 4);\n machine.setTOP(top - 1);\n machine.set... |
"public void dumpBinary(String outputFile) throws IOException {\n DataOutputStream outStream = new DataOutputStream(new FileOutputStream(outputFile));\n outStream.writeInt(getNumberDataPoints());\n for (Iterator i = allFeatures.iterator(); i.hasNext(); ) {\n Feature feature = (Feature) i.next();\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.