content
stringlengths
40
137k
"Rendering renderWordWrapping(int width) {\n Rendering r = new Rendering();\n FontMetrics fm = new Canvas(GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration()).getFontMetrics(NORMAL_FONT);\n for (int p = 0; p < paragraphSpans.size(); p++) {\n Span pspan = ...
"private void sortSprites() {\n indices.sort((i, j) -> sprites.get(i).getTexture().getId() < sprites.get(j).getTexture().getId() ? 1 : -1);\n}\n"
"public void run() {\n try {\n shutdown();\n } catch (ExecutionException e) {\n LOGGER.error(\"String_Node_Str\", e);\n }\n}\n"
"protected Control createDialogArea(Composite parent) {\n final Composite composite = (Composite) super.createDialogArea(parent);\n if (caller instanceof XSDNewComplexTypeDefinition) {\n parent.getShell().setText(\"String_Node_Str\");\n conceptPanel = new ConceptComposite(composite, false, types, tr...
"public QName setCustomPropertyDefinitionLabel(QName propQName, String newLabel) {\n ParameterCheck.mandatory(\"String_Node_Str\", propQName);\n PropertyDefinition propDefn = dictionaryService.getProperty(propQName);\n if (propDefn == null) {\n throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_...
"public void onPlayerLeashHitch(final HangingPlaceEvent e) {\n if (DEBUG) {\n plugin.getLogger().info(e.getEventName());\n plugin.getLogger().info(\"String_Node_Str\" + e.getBlock().getType());\n plugin.getLogger().info(\"String_Node_Str\" + e.getEntity().getType());\n }\n if (Settings.all...
"public void writeStatement(MethodWriter writer) {\n int i = this.instance.getValueType();\n if (i == FIELD_ACCESS) {\n FieldAccess access = (FieldAccess) this.instance;\n IField f = access.field;\n if (this.writeIINC(writer, f)) {\n return;\n }\n IValue instance = ac...
"private File[] _getModelFiles() {\n TransformationRule rule = getTransformationRule();\n Pattern pattern = rule.getPattern();\n DefaultDirectoryAttribute attribute = (DefaultDirectoryAttribute) pattern.getAttribute(\"String_Node_Str\");\n File directoryFile = null;\n String fileFilter = \"String_Node_St...
"public Highlight getHighlightByTouchPoint(float x, float y) {\n if (mDataNotSet || mCurrentData == null) {\n Log.e(LOG_TAG, \"String_Node_Str\");\n return null;\n }\n float[] pts = new float[2];\n pts[0] = x;\n pts[1] = y;\n Matrix tmp = new Matrix();\n mMatrixOffset.invert(tmp);\n ...
"protected String getValueAction() {\n return PrintUtils.print(LinqUtils.select(getFields(this, IHasValue.class), field -> ((IHasValue) getValueField(field, this)).getValue()));\n}\n"
"public boolean isChecked() {\n return checkBox.getValue();\n}\n"
"protected void onRestoreInstanceState(Parcelable state) {\n super.onRestoreInstanceState(state);\n if (state != null)\n shouldSelectDefault = false;\n}\n"
"public void namespaceDeclarations(NamespaceResolver namespaceResolver) {\n if (namespaceResolver == null) {\n return;\n }\n String namespaceURI = namespaceResolver.getDefaultNamespaceURI();\n if (null != namespaceURI) {\n attribute(XMLConstants.XMLNS_URL, XMLConstants.XMLNS, XMLConstants.XMLN...
"public void testParsingDotTerminatedImportFollowedByModifierAndClassDeclaration_538() throws Exception {\n runNegativeTest(new String[] { \"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 btnAboutActionPerformed(java.awt.event.ActionEvent evt) {\n JInternalFrame[] windows = desktopPane.getAllFramesInLayer(JLayeredPane.POPUP_LAYER);\n for (JInternalFrame window : windows) {\n if (window instanceof AboutDialog) {\n return;\n }\n }\n AboutDialog aboutDialog...
"public List validate(ReportDesign design, DesignElement element) {\n if (!(element instanceof ListingElement))\n return Collections.EMPTY_LIST;\n return doValidate(design, element, DesignElement.NO_SLOT);\n}\n"
"private void addCacheInternal(Cache<?, ?> cache) {\n Cache<?, ?> oldCache;\n synchronized (caches) {\n if (caches.get(cache.getName()) != null) {\n throw new CacheException(\"String_Node_Str\" + cache.getName() + \"String_Node_Str\");\n }\n caches.put(cache.getName(), cache);\n ...
"public void start() {\n if (running) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n running = true;\n server.getLogger().info(\"String_Node_Str\", Info.SOFTWARE_NAME, Info.VERSION_STRING());\n startTime = System.currentTimeMillis();\n while (running) {\n lastTickMilli =...
"protected void onFailure(RequestFailureType type, Throwable t, StatusLine status, String readableMessage) {\n final RRError error = General.getGeneralErrorForFailure(context, type, t, status, null);\n AndroidApi.UI_THREAD_HANDLER.post(new Runnable() {\n\n public void run() {\n General.showResul...
"public List<ParameterValue<?>> getRealPosition(RelativePosition position) {\n List<ParameterValue<?>> returnList = new ArrayList<ParameterValue<?>>(position.size());\n for (Entry<String, Double> e : position.entrySet()) {\n IParameterVariation paramVariation = this.parameterVariationIdMap.get(e.getKey());...
"private RuleProps buildRuleProps(TaskProps props) {\n Expression priority = TclUtil.argToExpr(props.get(TaskPropKey.PRIORITY), true);\n TclTarget target = TclTarget.fromArg(props.get(TaskPropKey.TARGET));\n Expression parallelism = TclUtil.argToExpr(props.get(TaskPropKey.PARALLELISM), true);\n RuleProps ru...
"public QiniuMKFileResponseData makeFile(int fileTotalSize, List<String> uploadFileCtxs, int retry) throws Exception {\n try {\n String endPoint = String.format(QINIU_MKFILE_EP, fileTotalSize, AVUtils.base64Encode(this.fileKey));\n final String joinedFileCtx = AVUtils.joinCollection(uploadFileCtxs, \"S...
"protected TopicDataset loadDataset() throws Exception {\n String propertyKey = NIF_DATASET_FILE_PROPERTY_NAME + dataset.name();\n String nifFile = GerbilConfiguration.getInstance().getString(propertyKey);\n if (nifFile == null) {\n throw new IOException(\"String_Node_Str\" + propertyKey + \"String_Node...
"public synchronized void adjustMatrix(float diffX, float diffY, float scaleFactor, Dimension mapViewDimension) {\n if (this.dimension == null) {\n return;\n }\n int pivotX = this.dimension.width / 2;\n int pivotY = this.dimension.height / 2;\n this.matrix.reset();\n centerFrameBufferToMapView(...
"private void changePicture(String pose, int frame_count) {\n this.pose = pose;\n this.fcount = frame_count;\n this.frame = 1;\n this.last_tick = 0;\n isPlaying = true;\n view.repaint();\n}\n"
"private List<GanttChartItem> getCollisionsList(final List<GanttChartItem> sortedItems, final String row) {\n List<GanttChartItem> collisionRow = new ArrayList<GanttChartItem>();\n GanttChartConflictItem collisionItem = null;\n GanttChartItem previousItem = null;\n for (GanttChartItem item : sortedItems) {\...
"public void onCounterFriendsChanged(int valueCounter) {\n if (actionMode != null) {\n if (valueCounter == Consts.ZERO_VALUE) {\n isNeedToCloseWithoutRedirect = true;\n actionMode.finish();\n return;\n }\n } else {\n startAction();\n }\n countSelectedFri...
"private void quote() {\n if (inQuote) {\n delayedOutQuote = !delayedOutQuote;\n lastQuotePos = this.fieldHi;\n } else if (fieldHi - fieldLo == 1) {\n inQuote = true;\n this.fieldLo = this.fieldHi;\n }\n}\n"
"public Object[] getArgs() {\n if (args == null) {\n args = new Object[0];\n }\n Object[] argsCopy = new Object[args.length];\n System.arraycopy(args, 0, argsCopy, 0, args.length);\n return argsCopy;\n}\n"
"public boolean performFinish() {\n if (tableWizardpage.isPageComplete()) {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IWorkspaceRunnable operation = new IWorkspaceRunnable() {\n public void run(IProgressMonitor monitor) throws CoreException {\n DatabaseConnect...
"public void handleException(Thread thread, Throwable ex) {\n try {\n StringWriter sw = new StringWriter();\n ex.printStackTrace(new PrintWriter(sw));\n if (sw.toString().contains(\"String_Node_Str\"))\n return;\n ex.printStackTrace(System.err);\n if (jd != null && jd.is...
"public void onClick(DialogInterface dialog, int which) {\n if (skillTreeViews[0].hasSkillDefined()) {\n Intent i = new Intent();\n long skill1Id = skillTreeViews[0].getSkillTree().getId();\n int skill1Points = skillTreeViews[0].getSkillPoints();\n i.putExtra(ArmorSetBuilderActivity.EXTRA...
"public void updateSchema(DataAccess schemaTemplate) throws DatabaseWriteException {\n Connection conn = pool.getConnectionFromPool();\n PreparedStatement ps = null;\n ResultSet rs = null;\n try {\n DatabaseMetaData metadata = conn.getMetaData();\n rs = metadata.getTables(null, null, schemaTem...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (getIntent().getData() == null) {\n try {\n _settings = getSharedPreferences(Prefs.PREFS, Context.MODE_PRIVATE);\n ServiceBuilder serviceBuilder = new ServiceBuilder();\n OAuthS...
"public static HashMap<String, String> parseMap(String s) {\n HashMap<String, String> map = New.hashMap();\n for (int i = 0, size = s.length(); i < size; ) {\n int startKey = i;\n i = s.indexOf(':', i);\n if (i < 0) {\n throw DataUtils.newIllegalStateException(DataUtils.ERROR_FILE_...
"public void apply(ProgramIR programIR) {\n this.programIR = programIR;\n boolean change = true;\n while (change) {\n change = false;\n for (Function function : programIR.functionMap().values()) {\n if (function.notUserFunc())\n continue;\n LinkedList<BasicBlo...
"public void updateState(JireconSessionEvent evt) {\n switch(evt) {\n case JOIN_MUC:\n state = JireconSessionState.IN_CONFERENCE;\n break;\n case LEAVE_CONFERENCE:\n state = JireconSessionState.INIT;\n break;\n case SEND_SESSION_ACCEPT:\n st...
"private boolean areMutationsInSameTable(Table targetHTable, Region region) {\n return (targetHTable == null || Bytes.compareTo(targetHTable.getName().getName(), region.getTableDescriptor().getTableName().getName()) == 0);\n}\n"
"public void sendTo(FMLProxyPacket pkt, EntityPlayerMP player) {\n channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.PLAYER);\n channels.get(Side.SERVER).attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(player);\n channels.get(Side.SERVER).writeAndFlus...
"public List<CmisRepositoryEntryType> getRepositories() throws RuntimeException, InvalidArgumentException, OperationNotSupportedException, UpdateConflictException, PermissionDeniedException {\n CmisRepositoryEntryType repositoryEntryType = new CmisRepositoryEntryType();\n Descriptor serverDescriptor = descriptorS...
"public int compare(Viewer viewer, Object o1, Object o2) {\n if (o1 instanceof Object[] && o1 instanceof Object[]) {\n Object[] objs1 = (Object[]) o1;\n Object obj1 = objs1[Math.abs(arrayIndex) - 1];\n Object[] objs2 = (Object[]) o2;\n Object obj2 = objs2[Math.abs(arrayIndex) - 1];\n ...
"public String generateConstructorReceiversFunction() throws IllegalActionException {\n CodeStream codeStream = _templateParser.getCodeStream();\n codeStream.clear();\n LinkedList args = new LinkedList();\n ptolemy.actor.CompositeActor TopActor = (ptolemy.actor.CompositeActor) getComponent();\n String sa...
"public void addCounters(Counter counter, Game game, ArrayList<UUID> appliedEffects) {\n int amount = counter.getCount();\n for (int i = 0; i < amount; i++) {\n Counter eventCounter = counter.copy();\n eventCounter.remove(amount - 1);\n GameEvent event = GameEvent.getEvent(GameEvent.EventType...
"public static boolean assertSameHtml(String html1, String html2) throws SAXException, IOException, TransformerException {\n html1 = preProcessHtml(html1);\n html2 = preProcessHtml(html2);\n Node page1 = getNodeFromString(html1);\n Node page2 = getNodeFromString(html2);\n eliminateEmptyTextNodes(page1);\...
"private QiniuMKFileResponseData makeFile(int dataSize, String key, int retry) throws Exception {\n try {\n String endPoint = String.format(QINIU_MKFILE_EP, dataSize, AVUtils.base64Encode(key));\n List<String> list = new LinkedList<String>();\n Collections.addAll(list, uploadFileCtx);\n f...
"public void testChart1Learning() throws Exception {\n ClassLoader classLoader = getClass().getClassLoader();\n File learningDir = new File(classLoader.getResource(\"String_Node_Str\").getFile());\n File projectLocation = new File(\"String_Node_Str\");\n AstorMain main1 = new AstorMain();\n File dirLibs ...
"private void defaultCompletion(CompleteOperation completeOperation) throws CommandLineParserException {\n InputComponent inputOption = context.findInput(\"String_Node_Str\");\n if (inputOption != null) {\n argumentCompletion(completeOperation, new CommandLineCompletionParser(context.getParser()).findCompl...
"private void addMouseHandlersToContent() {\n mousePressedHandler = event -> {\n if (!event.getButton().equals(MouseButton.SECONDARY)) {\n return;\n }\n startPanning(event.getSceneX(), event.getSceneY());\n };\n mouseDraggedHandler = event -> {\n if (!panningGestureActive...
"protected void onNewIntent(Intent intent) {\n mFragment.openInformingPathBar(new FileHolder(FileUtils.getFile(intent.getData()), this));\n}\n"
"public static void main(String[] args) throws Exception {\n Security.addProvider(new BouncyCastleProvider());\n RSAPublicKeySpec pubKeySpec = new RSAPublicKeySpec(new BigInteger(\"String_Node_Str\", 16), new BigInteger(\"String_Node_Str\", 16));\n RSAPrivateCrtKeySpec privKeySpec = new RSAPrivateCrtKeySpec(ne...
"public final void notifyJsonParseStarted(final JsonValue result, final long timestamp, final UUID session, final boolean fromCache) {\n new Thread() {\n public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n try {\n on...
"public static Statement read(ZenTokener parser, IEnvironmentGlobal environment, ZenType returnType) {\n Token next = parser.peek();\n switch(next.getType()) {\n case T_AOPEN:\n {\n Token t = parser.next();\n ArrayList<Statement> statements = new ArrayList<Statement...
"public void testGroovyPropertyAccessors_ErrorCases2() {\n runConformTest(new String[] { \"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_No...
"private void initStats() {\n String sUsername, sPassword;\n if (WordPress.currentBlog.getApi_key() == null) {\n if (WordPress.currentBlog.getDotcom_username() != null) {\n sUsername = WordPress.currentBlog.getDotcom_username();\n sPassword = WordPress.currentBlog.getDotcom_password()...
"public static void placeResource(Map<String, Resource> resources, Resource createResource) {\n String relativeUri = createResource.getRelativeUri();\n Path path = new Path(relativeUri);\n boolean restructure = false;\n for (String s : new HashSet<String>(resources.keySet())) {\n Path rp = new Path(s...
"public int sample_one_z_uncollapsed(int domain_id, int classifier_id) {\n update_before_sampling_z(domain_id, classifier_id);\n int total_cnt = hdp.prob_table_assignment_for_item(domain_id, classifier_id);\n double[] z_probabilities = new double[total_cnt];\n for (int i = 0; i < total_cnt; i++) {\n ...
"public boolean shouldDump(String className) {\n if (m_dumpTypePattern.isEmpty()) {\n return false;\n }\n ResolvedType classInfo = weaver.getWorld().resolve(UnresolvedType.forName(className), true);\n for (Iterator iterator = m_dumpTypePattern.iterator(); iterator.hasNext(); ) {\n TypePattern ...
"private synchronized void processMessage(Message msg) {\n int msgType = msg.what;\n int state = msg.arg1;\n int startId = msg.arg2;\n boolean deferFinishCall = false;\n BluetoothDevice device = null;\n if (msg.obj != null) {\n device = (BluetoothDevice) msg.obj;\n }\n if (DEBUG)\n ...
"public DotNetTypeRef[] getExtendTypeRefs() {\n DotNetTypeRef[] extendTypeRefs = myMsilElement.getExtendTypeRefs();\n if (extendTypeRefs.length == 0) {\n return DotNetTypeRef.EMPTY_ARRAY;\n }\n DotNetTypeRef[] typeRefs = new DotNetTypeRef[extendTypeRefs.length];\n for (int i = 0; i < typeRefs.leng...
"public static String parseWhereExpression(final CommonExpression whereExpression) throws ODataException {\n switch(whereExpression.getKind()) {\n case UNARY:\n final UnaryExpression unaryExpression = (UnaryExpression) whereExpression;\n final String operand = parseWhereExpression(unaryE...
"protected EnunciateFreemarkerModel getRootModel() throws TemplateModelException {\n EnunciateFreemarkerModel model = (EnunciateFreemarkerModel) super.getRootModel();\n model.put(\"String_Node_Str\", new PrefixMethod());\n model.put(\"String_Node_Str\", new QNameMethod());\n AnnotationProcessorEnvironment e...
"public void setZoom(float zoomValue) {\n mCamera2 = true;\n mZoomSig = (int) zoomValue;\n mZoomFraction = (int) (zoomValue * 10) % 10;\n mCircleSize = (int) (mMinCircle + (mMaxCircle - mMinCircle) * (zoomValue - mZoomMinValue) / (mZoomMaxValue - mZoomMinValue));\n}\n"
"public void resized() {\n super.resized();\n Matrix4 persMatrix = new Matrix4().clearToPerspectiveDeg(45, getWidth(), getHeight(), 1, 1000);\n glBindBuffer(GL_UNIFORM_BUFFER, projectionUniformBuffer);\n glBufferSubData(GL_UNIFORM_BUFFER, 0, persMatrix.toBuffer());\n glBindBuffer(GL_UNIFORM_BUFFER, 0);\n...
"private void split(final Circle splitCircle, final List<Edge> outsideList, final List<Edge> insideList) {\n final double edgeStart = circle.getPhase(start.getLocation().getVector());\n final double arcRelativeStart = MathUtils.normalizeAngle(circle.getInsideArc(splitCircle).getInf(), edgeStart + FastMath.PI) - e...
"private void refreshDriverViewer() {\n driverViewer.setInput(null);\n driverViewer.setInput(driverMap);\n refreshDriver();\n}\n"
"ComponentName startServiceLocked(IApplicationThread caller, Intent service, String resolvedType, int callingPid, int callingUid, int userId) {\n if (DEBUG_SERVICE)\n Slog.v(TAG, \"String_Node_Str\" + service + \"String_Node_Str\" + resolvedType + \"String_Node_Str\" + service.getExtras());\n if (caller !=...
"private void adoptWolf(Player p, int wolves) {\n if (hasPermission(p, PERM_ADOPT) && bank.hasMoney(p, adoptPrice * wolves)) {\n bank.payForWolf(p, adoptPrice * wolves);\n for (int i = 0; i < wolves; i++) {\n spawnWolf(p);\n }\n }\n}\n"
"public boolean equals(Object obj) {\n if (obj == null || !(obj instanceof String || (obj instanceof ContactJabberImpl)))\n return false;\n if (obj instanceof ContactJabberImpl && ((ContactJabberImpl) obj).getAddress().equalsIgnoreCase(getAddress()) && ((ContactJabberImpl) obj).getProtocolProvider() == get...
"private AttributeDataset parse(String name, Attribute[] attributes, BufferedReader reader) throws IOException, ParseException {\n String line = reader.readLine();\n while (line != null) {\n if (line.isEmpty() || line.startsWith(comment)) {\n line = reader.readLine();\n } else {\n ...
"public static Object unwrap(Object obj) {\n if (obj instanceof Undefined || obj == Scriptable.NOT_FOUND) {\n return null;\n } else if (obj instanceof DataWrapper) {\n return unwrap(((DataWrapper) obj).getData());\n } else if (obj instanceof NativeArray) {\n NativeArray nativeArr = (Native...
"public void setDate(DateData newDate) {\n Date nextDate = (Date) newDate.getValue();\n myCal.setTimeInMillis(nextDate.getTime());\n refresh();\n}\n"
"public ArrayList<Property> getFieldPropertiesForClass(JavaClass cls, TypeInfo info, boolean onlyPublic) {\n ArrayList properties = new ArrayList();\n if (cls == null) {\n return properties;\n }\n boolean hasAnyAttribteProperty = false;\n for (Iterator<JavaField> fieldIt = cls.getDeclaredFields()....
"private List<Match2Elements> mapLists(List<EObject> list1, List<EObject> list2, int window, CompareProgressMonitor monitor) throws FactoryException, InterruptedException {\n final List<Match2Elements> result = new ArrayList<Match2Elements>();\n int curIndex = 0 - window / 2;\n final List<EObject> notFoundList...
"private void read(final String file) throws IOException {\n final CSVDataInput in = new CSVDataInput(file, separators[selection]);\n final Iterator<String[]> it = in.iterator();\n final List<String[]> data = new ArrayList<String[]>();\n int count = 0;\n while (it.hasNext() && (count < LINES)) {\n ...
"public static Location getSafeDestination(Location targetLocation) {\n if (isHooked()) {\n try {\n return Util.getSafeDestination(targetLocation);\n } catch (Exception e) {\n FP.severe(\"String_Node_Str\");\n return (targetLocation);\n }\n } else {\n r...
"public static void performBin2External(File inBinaryFile, TaskComplete done) {\n DialogBinary2External dialog = new DialogBinary2External(EncogWorkBench.getInstance().getMainWindow());\n if (inBinaryFile != null)\n dialog.getBinaryFile().setValue(inBinaryFile.toString());\n if (dialog.process()) {\n ...
"private static String windowsEscape(String argument) {\n Bundle jdtLaunching = Platform.getBundle(\"String_Node_Str\");\n if (jdtLaunching != null) {\n Version version = jdtLaunching.getVersion();\n Version newEnough = new Version(\"String_Node_Str\");\n if (newEnough.compareTo(version) <= 0...
"public String getLocale() {\n final String s = (String) CompatUtils.invoke(mObj, null, METHOD_getLocale);\n if (TextUtils.isEmpty(s))\n return DEFAULT_LOCALE;\n return s;\n}\n"
"public void actionPerformed(ActionEvent e) {\n JFileChooser chooser = null;\n chooser = new JFileChooser();\n chooser.setSelectedFile((File) getValue());\n _filter = (_filter == null ? chooser.getAcceptAllFileFilter() : _filter);\n chooser.setFileFilter(_filter);\n chooser.setFileSelectionMode(JFileC...
"public void testDoGroup() {\n recordGroup = new AbstractRecordGrouping() {\n protected void outputRow(String row) {\n System.out.println(row);\n groupingRecords.add(StringUtils.splitByWholeSeparator(row, columnDelimiter));\n }\n };\n recordGroup.setColumnDelimiter(columnDel...
"public final Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException {\n try {\n Class<?> domainClass = getDomainClass(genericType);\n JAXBCont...
"private void clean() {\n this.container = null;\n this.progressTicket = null;\n this.report = null;\n this.nodePropertiesAttributes = null;\n this.edgePropertiesAttributes = null;\n this.optionsAttributes = null;\n this.cancel = false;\n this.isDynamicMode = false;\n this.isDateTypeFloat = f...
"public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException, InterruptedException, JavaLayerException, InvalidMidiDataException {\n Parameters.initializeParameterCollections(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n M...
"private void onPlayerJoinNPCMode(Player loginPlayer) {\n if (plugin.hasDataContainer(loginPlayer.getName())) {\n PlayerDataContainer loginDataContainer = plugin.getPlayerData(loginPlayer.getName());\n if (loginDataContainer.hasSpawnedNPC()) {\n if (plugin.isDebugEnabled()) {\n ...
"public static void logSoftban(User author, Member target, String reason, Guild guild, TextChannel channel, Message message) {\n Settings set = bot.getSettings(guild);\n TextChannel tc = guild.getTextChannelById(set.getModLogId());\n OffsetDateTime time = message.getCreationTime();\n int hour = time.getHour...
"private void showDialog() {\n view = layoutInflater.inflate(R.layout.fingerprint_dialog, null);\n ((TextView) view.findViewById(R.id.fingerprint_dialog_title)).setText(title);\n ((TextView) view.findViewById(R.id.fingerprint_dialog_message)).setText(message);\n builder.setPositiveButton(R.string.fingerprin...
"public void copy() {\n if (!getFrameController().isTableActive()) {\n CompositeEntity model = getFrameController().getActiveModel();\n String header = \"String_Node_Str\";\n if (GTTools.isInPattern(model)) {\n header = _COPY_FROM_PATTERN_HEADER;\n try {\n mo...
"public static TdDataProvider getDataProvider(Driver driver, String databaseUrl, Properties driverProperties) throws SQLException {\n TdDataProvider provider = DataProviderHelper.createTdDataProvider(null);\n DriverPropertyInfo[] driverProps = null;\n if (!databaseUrl.toLowerCase().startsWith(\"String_Node_Str...
"private CPD newCPD() {\n CPDConfiguration config = new CPDConfiguration();\n config.setMinimumTileSize(minTileSize);\n config.setLanguage(language);\n config.setEncoding(System.getProperty(\"String_Node_Str\"));\n return new CPD(config);\n}\n"
"public static API GetRightApiForVersion(String appVersion, HttpUrl baseUrl) {\n API api;\n int[] version = ExtractVersionNumberFromString(appVersion);\n api = new APIv2(baseUrl);\n return api;\n}\n"
"public IAEItemStack request(MECraftingInventory inv, long l, BaseActionSource src) throws CraftBranchFailure, InterruptedException {\n job.handlepausing();\n what.setStackSize(l);\n if (slot >= 0 && parent != null && parent.details.isCraftable()) {\n for (IAEItemStack fuzz : inv.getItemList().findFuzzy...
"public void outputDirectoryForProtoCompileAction_externalRepos() throws Exception {\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n scratch.file(\"String_Node_Str\");\n scratch.file(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n String existingWorkspace = new String(FileSyste...
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (xmlCompositeDirectCollectionMapping.hasValueConverter()) {\n if (xmlCompositeDirectColl...
"public static Map<ForgeDirection, TileEntity> getAdjacentTileEntitiesMapped(final World world, final TileEntity tile) {\n Map<ForgeDirection, TileEntity> ret2 = Maps.asMap(ImmutableSet.copyOf(ForgeDirection.VALID_DIRECTIONS), new Function<ForgeDirection, TileEntity>() {\n\n public TileEntity apply(ForgeDirec...
"public void fireEvent(final ClockTick event) {\n if (Bootstrap.isFinished() && Topology.isEnabledLocally(LoadBalancing.class) && Topology.isEnabled(Eucalyptus.class)) {\n final EntityTransaction db = Entities.get(LoadBalancerServoInstance.class);\n final LoadBalancerServoInstance sample = LoadBalancer...
"public void testRead() {\n String content = TestUtil.readFile(CLASS_FILE, false);\n ASTParser astParser = ASTParser.newParser(AST.JLS3);\n astParser.setSource(content.toCharArray());\n CompilationUnit compilationUnit = (CompilationUnit) astParser.createAST(null);\n PackageDeclaration packageDeclaration ...
"public Response getActivitiesOfCurrentUser(UriInfo uriInfo, int offset, int limit, boolean returnSize, String expand) throws Exception {\n String authenticatedUser = ConversationState.getCurrent().getIdentity().getUserId();\n Identity currentUser = CommonsUtils.getService(IdentityManager.class).getOrCreateIdenti...
"public void test() throws InterruptedException {\n final ConcurrentMap<String, String> map;\n final String type = System.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n if (\"String_Node_Str\".equals(type)) {\n map = tree1.acquireMap(NAME, String.class, String.class);\n } else {\n ma...
"public String getLabelName(int idx) {\n if (!labelNames.isEmpty()) {\n if (idx < labelNames.size())\n return labelNames.get(idx);\n else\n throw new IllegalStateException(\"String_Node_Str\");\n } else\n throw new IllegalStateException(\"String_Node_Str\");\n}\n"
"public static void main(String[] args) {\n Options cmdOptions = null;\n try {\n cmdOptions = setupOptions();\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd = parser.parse(cmdOptions, args);\n Config config = loadConfigurations(cmd);\n System.out.println(\"S...