content
stringlengths
40
137k
"private void assembleAction() {\n String line;\n messages = new Vector();\n mainFrame.resetExecWindow();\n saveAction();\n assembleFailed = false;\n haveAssemblyErrors = false;\n if (Assembler.version()) {\n while ((line = Assembler.output()) != null) {\n messages.addElement(line...
"public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain chain) throws IOException, ServletException {\n LOGGER.debug(\"String_Node_Str\");\n HttpServletRequest request = (HttpServletRequest) arg0;\n HttpServletResponse response = (HttpServletResponse) arg1;\n boolean success = preProces...
"Pair<String, String> getUniqueStringPair() {\n String schemaName = String.format(\"String_Node_Str\", parentCode, identifier);\n String tableName = String.format(\"String_Node_Str\", parentCode, identifier);\n identifier += 1;\n return Pair.of(schemaName, tableName);\n}\n"
"public List<Warp> listWarps(Player player) {\n List<Warp> list = new ArrayList<Warp>();\n for (Warp warp : warps.values()) {\n try {\n if (warp.canWarpHere(User.getUser(player))) {\n list.add(warp);\n }\n } catch (Exception e) {\n }\n }\n return lis...
"public Spread addSpread(String masterSpreadName) throws Exception {\n Spread spread = newSpread(masterSpreadName);\n assignIdAndRegister(spread);\n spread.setParent(this);\n MasterSpread masterSpread = this.getMasterSpread(masterSpreadName);\n spread.setTransformationMatrix(this.spreads.size());\n th...
"private void createChart() {\n if (chartEvents != null && chartEvents.size() > 0) {\n int count = chartData.getTop();\n if (chartEvents.size() < chartData.getTop()) {\n count = chartEvents.size();\n }\n List<Map.Entry<String, Integer>> topEvents = new ArrayList<>();\n f...
"public boolean canLeave() {\n if (propertyPage instanceof DataSetEditorPage) {\n try {\n DataSetDesign requestDesign = null;\n DesignSessionResponse response = null;\n if (dataSetSession != null) {\n requestDesign = dataSetSession.getRequest().getDataSetDesign(...
"public MyTab createTab() {\n MyTab tab = new MyTab() {\n public void close() {\n super.close();\n if (controller.getTabPane().getTabs().isEmpty()) {\n controller.newDoc(null);\n }\n }\n };\n tab.setOnCloseRequest(event -> {\n event.consume()...
"private static FieldAssembler<Schema> convertToAvro(FieldAssembler<Schema> fa, org.talend.core.model.metadata.builder.connection.MetadataColumn in) {\n FieldBuilder<Schema> fb = fa.name(in.getLabel());\n copyColumnProperties(fb, in);\n BaseFieldTypeBuilder<Schema> ftb = in.isNullable() ? fb.type().nullable() ...
"public void doInTransactionWithoutResult(TransactionStatus status) {\n _remoteAccessVpnDao.remove(vpn.getId());\n List<VpnUserVO> vpnUsers = _vpnUsersDao.listByAccount(vpn.getAccountId());\n for (VpnUserVO user : vpnUsers) {\n if (user.getState() != VpnUser.State.Revoke) {\n UsageEventUtils....
"public static Collection<PlayerGain> parseConfig(ConfigurationSection config) {\n Collection<PlayerGain> gain = Collections.emptyList();\n if (config != null) {\n gain = new ArrayList<PlayerGain>();\n gain.add(new CronGain(parseMultipliers(config)));\n }\n return gain;\n}\n"
"public XMLCollectionReferenceMapping generateXMLCollectionReferenceMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo, JavaClass referenceClass) {\n XMLCollectionReferenceMapping mapping = new XMLCollectionReferenceMapping();\n mapping.setAttributeName(property.getPropertyName());\n...
"public void main() {\n if (active == null)\n return;\n active.fps = Math.abs(active.fps);\n speed = Math.abs(speed);\n tick.delta(1f / nz(active.fps * speed));\n if (tick.time()) {\n showNextFrame();\n }\n}\n"
"protected boolean addRosterAccount(MultiRosterAccount account) {\n if (account == null)\n return false;\n boolean result = rosterAccounts.add(account);\n if (result)\n setLocalPullDownEnabled(true);\n return result;\n}\n"
"protected Tuple<AgentType, Double> makePayments() {\n double currentFoodReserve;\n AgentType strategy = getDataModel().getGroupStrategy();\n currentFoodReserve = getDataModel().getCurrentReservedFood();\n if (!inNeed.containsKey(this.getId())) {\n if (strategy != null) {\n System.out.prin...
"public ClusterResult startClustering(AClusterConfiguration clusterState) {\n ClusterManager clusterManager = new ClusterManager(this);\n ClusterResult result = clusterManager.cluster(clusterState);\n if (result == null)\n return null;\n if (clusterState.getClusterTarget() == EClustererTarget.DIMENSI...
"private void editMaxInclusive() {\n XSDMaxInclusiveFacet currentValue = std.getMaxInclusiveFacet();\n String stringValue = \"String_Node_Str\";\n if (currentValue != null)\n stringValue = currentValue.getLexicalValue();\n dialog = new InputDialog(page.getSite().getShell(), \"String_Node_Str\", \"Str...
"public String getModelIdFromSpinner() {\n if (modelSpinner.getSelectedItem() != null) {\n String modelName = modelSpinner.getSelectedItem().toString();\n if (modelName.equals(getString(R.string.select_model))) {\n return \"String_Node_Str\";\n } else {\n for (Map.Entry<Str...
"private ListenableFuture<?> execute(final Id.Program id, Map<String, String> sysArgs, Map<String, String> userArgs) throws IOException, TaskExecutionException {\n ProgramRuntimeService.RuntimeInfo runtimeInfo;\n try {\n runtimeInfo = lifecycleService.start(id, sysArgs, userArgs, false);\n } catch (Prog...
"public void draw(SpriteBatch batch, float x, float y, float originX, float originY, float scale) {\n x = x - getWidth() / 2 * scale;\n if (USE_FBO) {\n batch.draw(tex, x, y, 0, 0, width, height, scale, scale, 0);\n } else {\n float p0x, p0y, pfx, pfy;\n Vector3 tmp = new Vector3();\n ...
"public IStatus execute(Object params, IProgressMonitor monitor) {\n ERepositoryObjectType type = getViewObjectType();\n String objectName = getLabel();\n IInteractiveHandler handler = InteractiveService.findHandler(type);\n if (handler != null) {\n String typeLabel = handler.getLabel();\n mon...
"public void startTimerTimeDelayAutoAdvance(int timeDelayAutoAdvance) {\n preBetweenTimer = new Timer(timeDelayAutoAdvance * 1000, timerTimeDelayAutoAdvance);\n preBetweenTimer.setRepeats(false);\n preBetweenTimer.start();\n log.info(String.format(\"String_Node_Str\", timeDelayAutoAdvance));\n}\n"
"private void setListeners() {\n mBackBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onBackPressed();\n }\n });\n enterVerificationCodeListener = new View.OnClickListener() {\n public void onClick(View v) {\n String confirmationC...
"private Patient createPatient() {\n Person person = new Person();\n PersonAddress address = new PersonAddress();\n address.setAddress1(ViewUtils.getInput(edaddr1));\n address.setAddress2(ViewUtils.getInput(edaddr2));\n address.setCityVillage(ViewUtils.getInput(edcity));\n address.setPostalCode(ViewUt...
"public void rename(String strCubeNewName) throws paloexception {\n if (null != strCubeNewName && strCubeNewName.length() > 0 && !strCubeName.equals(strCubeNewName)) {\n List<NameValuePair> qparams = new ArrayList<NameValuePair>();\n qparams.add(new BasicNameValuePair(\"String_Node_Str\", this.plConn.g...
"public void tp(CommandSource source, CommandArguments args) throws CommandException {\n Player player;\n Player target = null;\n Point point;\n if (args.length() == 1) {\n if (!(source instanceof Player)) {\n throw new CommandException(\"String_Node_Str\");\n }\n player = ar...
"public static void filterRequestParameters(ServiceRequest request, ProviderEndpoint endpoint) {\n logger.debug(\"String_Node_Str\");\n List<String> keys = new ArrayList<>(((Map<String, String>) request.getRequestData()).keySet());\n for (String orgKey : keys) {\n if (!orgKey.equals(Constants.PARAM_REQU...
"protected void updateParticlesMemory(List<List<DoubleSolution>> swarm) {\n for (int i = 0; i < psoIsland.size(); i++) {\n psoIsland.get(i).updateParticlesMemory(swarmList.get(i));\n }\n}\n"
"protected void initConnectionParametersWithContext(IElement element, IContext context) {\n if (connParameters == null) {\n connParameters = new ConnectionParameters();\n }\n String dbType = connParameters.getDbType();\n Object value = elem.getPropertyValue(\"String_Node_Str\");\n IElementParamete...
"public String 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<String>(low, high, false, false), estimator);\n}\n"
"public List<CaptureRequest> createConstrainedHighSpeedRequestList(CaptureRequest request) throws CameraAccessException {\n if (request == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Collection<Surface> outputSurfaces = request.getTargets();\n Range<Integer> fpsRange = re...
"void shutdown() {\n ioSelector.addTaskAndWakeup(new Runnable() {\n\n public void run() {\n try {\n socketChannel.closeInbound();\n } catch (IOException e) {\n logger.finest(\"String_Node_Str\", e);\n }\n }\n });\n ioSelector.wakeup()...
"public void writeFields() throws IOException {\n if (state == State.NEW) {\n serialMarshaller.doWriteFields(currentSerializableClass, currentObject);\n } else {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n}\n"
"public void publishEvent(T customStruct) throws AcsJException {\n long currentOmgTime = UTCUtility.utcJavaToOmg(System.currentTimeMillis());\n EventDescription desc = new EventDescription(publisherName, currentOmgTime, count.getAndIncrement());\n nc.pushData(customStruct, desc);\n count++;\n}\n"
"static void dumpCache() {\n if (DEBUG) {\n synchronized (sInstance) {\n LogTag.debug(\"String_Node_Str\");\n for (Conversation c : sInstance.mCache) {\n Log.v(TAG, \"String_Node_Str\" + c + \"String_Node_Str\" + c.getThreadId() + \"String_Node_Str\" + c.hashCode());\n ...
"private void sampleZAndBurn(int iterationNumber) {\n for (int p = 0; p < numberOfDomains; p++) {\n for (int j = 0; j < numberOfFunctions; j++) {\n dp.remove_topic_assignment(zSamples[iterationNumber][p][j]);\n int total_cnt = dp.prob_topics();\n double[] z_probabilities = new...
"public void setUp() throws Exception {\n this.target = new RestRiakClient(DefaultConfig.newConfig(Hosts.RIAK_HOST, Hosts.RIAK_HTTP_PORT));\n}\n"
"public void show(final String text) {\n synchronized (this) {\n if (isNativeImplementationSupported()) {\n this.string = text;\n } else {\n if (super.isVisible())\n return;\n this.string = text;\n }\n }\n}\n"
"private void duplicateTestCases(Item newItem, final CopyObjectAction copyObjectAction) {\n if (!copyObjectAction.isAllowedToCopyTestCase(newItem, sourceNode) || !isAllowDuplicateTest) {\n return;\n }\n final IPath path = copyObjectAction.getTestCasePath(newItem, sourceNode);\n if (GlobalServiceRegis...
"private void removeComponents(Collection<Component> comps) {\n for (Component comp : comps) {\n removeComponents((Collection<Component>) comp.getChildren());\n removeComponent(comp, true);\n }\n}\n"
"public GameState rollback(int index) {\n if (states.size() > 0 && index < states.size()) {\n while (states.size() > index + 1) {\n states.remove(states.size() - 1);\n }\n logger.trace(\"String_Node_Str\" + index);\n return states.get(index);\n }\n return null;\n}\n"
"private void switchMarkerType(int newMarkerTypeIndex) {\n MarkerType newType = MarkerType.getByName(typeNameSet[newMarkerTypeIndex]);\n if (newType == MarkerType.ICON_LITERAL) {\n MarkerIconDialog iconDialog = new MarkerIconDialog(new Shell(), getMarker().getFill());\n if (iconDialog.open() == Wind...
"public void testSomeRelativeWidths() throws Exception {\n rowLayout.setColumnRatios(0.5f);\n rowLayout.setHorizontalSpacing(0);\n Vector2i result = rowLayout.getPreferredContentSize(canvas, canvas.size());\n assertEquals(CANVAS_WIDTH, result.x);\n assertEquals(15, result.y);\n rowLayout.onDraw(canvas...
"private Consumer<SpecificRecordBase> getExtendedRecordConverter() {\n return record -> {\n Map<String, String> terms = ((ExtendedRecord) record).getCoreTerms();\n this.addJsonFieldNoCheck(\"String_Node_Str\", record.get(0).toString()).addJsonObject(\"String_Node_Str\", terms);\n };\n}\n"
"public Object createDataFlow(DirectedGraph graph, Object value) {\n Object trueResult = _trueInput.createDataFlow(graph, value);\n Object falseResult = _falseInput.createDataFlow(graph, value);\n ConditionExpr cond = (ConditionExpr) _conditionBlock.getBlock().getTail();\n Object condResult = _conditionBloc...
"public void testScanDisable(String type) throws InterruptedException {\n vr = callEndpoint(type);\n vr.body(\"String_Node_Str\", startsWith(\"String_Node_Str\"));\n vr.body(\"String_Node_Str\", equalTo(\"String_Node_Str\"));\n vr.body(\"String_Node_Str\", equalTo(\"String_Node_Str\"));\n vr.body(\"Strin...
"public final Size compute(IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc) throws ChartException {\n final Legend lg = cm.getLegend();\n LegendData legendData = new LegendData();\n if (!lg.isSetOrientation()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.GEN...
"private static void validateAndSave(User user) {\n user.validate();\n if (!validation.hasErrors()) {\n user.insert();\n renderJSON(new UserStatusMessage(Http.StatusCode.CREATED, \"String_Node_Str\", \"String_Node_Str\", user));\n } else {\n renderJSON(new UserStatusMessage(Http.StatusCode...
"public ResourceResponse create(Context context, CreateRequest request) throws ResourceException {\n EventEntry measure = Publisher.start(getRouterEventName(request), request, null);\n try {\n return super.create(context, copyOfCreateRequest(request));\n } finally {\n measure.end();\n }\n}\n"
"private void startLoadDialogMessages() {\n startLoadDialogMessages(dialog, chatJidId, Consts.ZERO_LONG_VALUE);\n}\n"
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (null == value) {\n return false;\n }\n boolean wasXMLRoot = false;\n XPathFrag...
"private void browseAction() {\n if (selectedPath == null) {\n selectedPath = System.getenv(\"String_Node_Str\");\n if (selectedPath != null) {\n File dir = new File(selectedPath);\n if (!dir.exists() || !dir.isDirectory()) {\n String message = String.format(\"Strin...
"protected void addRepeatedItem() throws BirtException {\n if (repeatList != null && repeatList.size() > 0) {\n if (!inHeaderBand) {\n if (getRepeatedHeight() < getMaxAvaHeight()) {\n for (int i = 0; i < repeatList.size(); i++) {\n ContainerArea row = (ContainerAre...
"public void element(String namespaceURI, String localName, String qName) {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n try {\n this.attributes = new AttributesImpl();\n contentHandler.startElement(frag.getNamespaceURI(), frag.getLoc...
"public void doSave(IProgressMonitor progressMonitor) {\n if (repositoryEditorInput != null) {\n final BusinessProcessItem businessProcessItem = (BusinessProcessItem) repositoryEditorInput.getItem();\n IRepositoryService service = CorePlugin.getDefault().getRepositoryService();\n IProxyRepositor...
"private void firePreDoServiceEvent(RequestContext requestContext) {\n this.ropEventMulticaster.multicastEvent(new PreDoServiceEvent(this, requestContext));\n}\n"
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.isPlayer(cs)) {\n return;\n }\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n Player p = (Player) cs;\n Boolean spawnin = !(p.getItemInHand().getType() == Material.FIREWORK);\n Item...
"public boolean isStocked(Stockable s) {\n return isStocked(s.getStockingId(), s.getPrice().getMaterialData(), s.isSelling());\n}\n"
"private void handleSave() {\n replaceStateWithWifiLayerInstance();\n String ssid = mSsidEdit.getText().toString();\n String password = mPasswordEdit.getText().toString();\n mState.setSsid(ssid);\n int securityType = getSecurityTypeFromSpinner();\n if (!TextUtils.isEmpty(password)) {\n switch(s...
"public static void mergeTiffImagesEx(RandomAccessOutputStream merged, File... images) throws IOException {\n if (images != null && images.length > 1) {\n FileInputStream fis1 = new FileInputStream(images[0]);\n RandomAccessInputStream image1 = new FileCacheRandomAccessInputStream(fis1);\n List<...
"SelectableChannel doConnect() throws IOException, InterruptedException {\n boolean success = false;\n final SocketChannel socketChannel = openSocketChannel(TcpReplicator.this.closeables);\n try {\n socketChannel.configureBlocking(false);\n socketChannel.socket().setReuseAddress(true);\n s...
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n try {\n Level position = null;\n if (levels.isEmpty()) {\n newLevel = new Level(true, true);\n levels.push(newLevel);\n } else {\n position = levels.peek();\n ...
"public void testCheckValid() {\n ULocale locale;\n DateFormat df;\n String dateStr;\n boolean isValid;\n locale = ULocale.UK;\n df = DateFormat.getDateInstance(DateFormat.SHORT, locale.toLocale());\n dateStr = \"String_Node_Str\";\n try {\n df.parse(dateStr);\n } catch (ParseException...
"public void sendNotification(String text, Channel channel) {\n doSend(text, channel);\n}\n"
"public void compute(ProcessorArmingCollection collection) {\n Event event = null;\n synchronized (computedEvents) {\n computedEvents.clear();\n }\n try {\n while (inputQueue.peek() != null) {\n event = inputQueue.take();\n if (event == null) {\n logger.war...
"public static UpdateDialogFragment newInstance(String cacheId, Waypoint oldPoint, boolean updateLogs) {\n Bundle args = new Bundle();\n args.putParcelable(PARAM_UPDATE_DATA, new UpdateTaskData(cacheId, oldPoint, updateLogs));\n UpdateDialogFragment fragment = new UpdateDialogFragment();\n fragment.setArgum...
"private static void showUsage() {\n System.err.println(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\"...
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case RequestCodes.PICTURE_LIBRARY:\n case RequestCodes.VIDEO_LIBRARY:\n if (resultCode == Activity.RESULT_OK && data != null) {\...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n boolean bufferContainsOnlyWhitespace = stringBuffer.toString().trim().length() == 0;\n if (bufferContainsOnlyWhitespace) {\n stringBuffer.reset();\n }\n if ((stringBuffer.length() >...
"private void init(Context context, AttributeSet attrs) {\n iconSize = getPixel(32);\n iconOuterWidth = getPixel(48);\n iconOuterHeight = getPixel(32);\n bottomSpacing = getResources().getDimensionPixelSize(R.dimen.inner_components_spacing);\n bottomEllipsisSize = getResources().getDimensionPixelSize(R.d...
"private void prepareNotification() {\n List<Pin> watchingPins = ChanApplication.getPinnedManager().getWatchingPins();\n List<Pin> pins = new ArrayList<Pin>();\n int newPostsCount = 0;\n int newQuotesCount = 0;\n List<Post> posts = new ArrayList<Post>();\n boolean makeSound = false;\n boolean show ...
"protected void performDefaults() {\n execCombo.deselectAll();\n getPreferenceStore().setValue(PluginConstant.LANGUAGE_SELECTOR, LocalToLanguageEnum.ENGLISH.getShortOfLocale());\n execCombo.setText(LocalToLanguageEnum.ENGLISH.getLocale());\n super.performDefaults();\n}\n"
"private ScopedBindingBuilder toInternal(final Key<? extends CheckedProvider> targetKey) {\n final Key<Result> resultKey = Key.get(Result.class, UniqueAnnotations.create());\n final Key<P> key = createKey();\n final Provider<Result> resultProvider = binder.getProvider(resultKey);\n final Provider<? extends ...
"public String getIdentity() {\n int C1 = (0x1000 & identity) >>> 12;\n int A1 = (0x800 & identity) >>> 11;\n int C2 = (0x400 & identity) >>> 10;\n int A2 = (0x200 & identity) >>> 9;\n int C4 = (0x100 & identity) >>> 8;\n int A4 = (0x080 & identity) >>> 7;\n int B1 = (0x020 & identity) >>> 5;\n ...
"public static boolean populateContentValues(ICalendar.Component component, ContentValues values) {\n ICalendar.Property dtstartProperty = component.getFirstProperty(\"String_Node_Str\");\n String dtstart = dtstartProperty.getValue();\n ICalendar.Parameter tzidParam = dtstartProperty.getFirstParameter(\"String...
"public void update(float delta) {\n for (EntityRef entity : entityManager.iteratorEntities(SimpleMinionAIComponent.class, CharacterMovementComponent.class, LocationComponent.class, MinionComponent.class)) {\n LocationComponent location = entity.getComponent(LocationComponent.class);\n SimpleMinionAICo...
"public OutputChannelContext createOutputChannelContext(ChannelID channelID, OutputChannelContext previousContext, boolean isReceiverRunning, boolean mergeSpillBuffers) {\n if (previousContext != null) {\n throw new IllegalStateException(\"String_Node_Str\" + channelID);\n }\n AbstractOutputChannel<? ex...
"private void addIndexRemoves(InfoForIndex<OWNER> info, Object value, byte[] byteVal, StorageTypeEnum storageType) {\n RowToPersist row = info.getRow();\n Map<Field, Object> fieldToValue = info.getFieldToValue();\n Object originalValue = fieldToValue.get(field);\n if (valuesEqual(originalValue, value))\n ...
"protected HighlightDesign readHighlight(DataInputStream in) throws IOException {\n HighlightDesign highlight = new HighlightDesign();\n int ruleCount = IOUtil.readInt(in);\n for (int i = 0; i < ruleCount; i++) {\n HighlightRuleDesign rule = new HighlightRuleDesign();\n String testExpr = IOUtil.r...
"public static Device update(byte[] raw, List<DeviceConfiguration> configurations, Device device) {\n String rfAddress = device.getRFAddress();\n boolean[] bits1 = Utils.getBits(Utils.fromByte(raw[4]));\n boolean[] bits2 = Utils.getBits(Utils.fromByte(raw[5]));\n device.setInitialized(bits1[1]);\n device...
"public static boolean isJDK15() {\n return JavaSEPlatform.is(JavaSEPlatform.v1_5);\n}\n"
"public static boolean isValidOnDate(AssetId id, Date date) {\n AssetData d = AssetDataUtils.getAssetData(id, STARTDATE, ENDDATE);\n Date startDate = d.getAttributeData(STARTDATE) != null && d.getAttributeData(STARTDATE).getData() != null ? (Date) d.getAttributeData(STARTDATE).getData() : null;\n Date endDate ...
"public static void main(String[] args) {\n for (int i = 0; i < FontConst.DEFAULT_FONT.length; i++) UIManager.put(FontConst.DEFAULT_FONT[i], new Font(\"String_Node_Str\", Font.BOLD, 12));\n try {\n BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow;\n ...
"public Optional<ModelCoordinate> call() {\n for (String remote : prefs.remotes) {\n Pair<File, IModelIndex> pair = delegates.get(remote);\n if (pair == null) {\n return absent();\n }\n IModelIndex index = pair.getSecond();\n Optional<ModelCoordinate> suggest = index.sug...
"public float getMinHeight() {\n if (minHeight > 0)\n return minHeight;\n if (pathway == null)\n return 120;\n return pathway.getHeight() * 0.8f;\n}\n"
"public static Artifact buildArtifact(String path, ArtifactFactory artifactFactory) {\n List pathParts = new ArrayList();\n StringTokenizer st = new StringTokenizer(path, \"String_Node_Str\");\n while (st.hasMoreTokens()) {\n pathParts.add(st.nextToken());\n }\n Collections.reverse(pathParts);\n ...
"public static long dumpSingleServiceTime(PrintWriter pw, String prefix, ServiceState service, int serviceType, int curState, long curStartTime, long now) {\n long totalTime = 0;\n int printedScreen = -1;\n for (int iscreen = 0; iscreen < ADJ_COUNT; iscreen += ADJ_SCREEN_MOD) {\n int printedMem = -1;\n ...
"private void prepareCommonParams(boolean isGsMode, final List<String> args, final SourceType sourceType) {\n String alg = super.getModelConfig().getTrain().getAlgorithm();\n args.add(\"String_Node_Str\");\n addRuntimeJars(args);\n args.add(\"String_Node_Str\");\n if (CommonUtils.isDesicionTreeAlgorithm(...
"private boolean isMatchingMethod(Object mock, String invokedMethod) {\n if (mock != null && instance != null) {\n String genericSignature = arguments.genericSignature;\n if (genericSignature != null) {\n Class<?> mockedClass = mock.getClass();\n if (mockedClass != instance.getCla...
"public Container or(RunContainer x) {\n if (isFull())\n return clone();\n RunContainer answer = new RunContainer(0, new short[2 * (this.nbrruns + x.nbrruns)]);\n int rlepos = 0;\n int xrlepos = 0;\n while ((xrlepos < x.nbrruns) && (rlepos < this.nbrruns)) {\n if (Util.compareUnsigned(getVa...
"public void onChooseStorageDirPressed(ActionEvent actionEvent) {\n try {\n DirectoryChooser directoryChooser = new DirectoryChooser();\n directoryChooser.setTitle(\"String_Node_Str\");\n File savefile = directoryChooser.showDialog(windowManager.getStage());\n storageDirLabel.setText(save...
"public Document downloadXMLDocument(IProgressMonitor monitor, MavenArtifact artifact) throws Exception {\n if (monitor == null) {\n monitor = new NullProgressMonitor();\n }\n if (artifact == null) {\n return null;\n }\n final String reletivePath = PomUtil.getArtifactPath(artifact);\n if...
"public void testGetUserAgent() {\n String userAgent = Manager.getUserAgent();\n assertTrue(userAgent.indexOf(Manager.PRODUCT_NAME + \"String_Node_Str\" + Version.SYNC_PROTOCOL_VERSION) != -1);\n}\n"
"private void createCleanMOOSEFile(String filePath) throws IOException, CoreException {\n String fileExt, fileType = null;\n boolean hasHeader = false, hasFooter = false;\n int headerLine = 0, footerLine = 0;\n String line = \"String_Node_Str\";\n ArrayList<String> fileLines = new ArrayList<String>();\n ...
"public static UFgExample get1stOrderFg(AnnoSentence sent, CorpusStatistics cs, FeatureNames alphabet, int numParams, boolean onlyFast) {\n FactorGraph fg = new FactorGraph();\n DepParseFeatureExtractorPrm fePrm = new DepParseFeatureExtractorPrm();\n fePrm.featureHashMod = numParams;\n fePrm.firstOrderTpls ...
"private List<String> getFilenamesFromListing(ObjectListing listing, String prefix) {\n List<String> results = new ArrayList<String>(100);\n for (S3ObjectSummary summary : listing.getObjectSummaries()) {\n final String key = summary.getKey();\n final String filename;\n filename = key.substrin...
"public CharSequence getAccessibilityClassName() {\n return ScrollView.class.getName();\n}\n"
"private void setComponentMinSize(String label) {\n if ((\"String_Node_Str\").equals(label)) {\n scrolledComposite.setMinSize(0, 0);\n scrolledComposite.setMinSize(0, 750);\n } else if ((\"String_Node_Str\").equals(label)) {\n scrolledComposite.setMinSize(0, 0);\n scrolledComposite.set...
"private void handleHashIdForUpdate(ContentValues values, long dataId) {\n String data1 = values.getAsString(Data.DATA1);\n String data2 = values.getAsString(Data.DATA2);\n byte[] data15 = values.getAsByteArray(Data.DATA15);\n if (values.containsKey(Data.DATA1) || values.containsKey(Data.DATA2) || values.co...
"public void renderHead(IHeaderResponse response) {\n super.renderHead(response);\n response.render(CssReferenceHeaderItem.forReference(OARCHITECT_CSS));\n response.render(CssReferenceHeaderItem.forReference(MXGRAPH_CSS));\n response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(O...