content
stringlengths
40
137k
"public boolean onDoubleTap(MotionEvent e) {\n OnChartGestureListener l = mChart.getOnChartGestureListener();\n if (l != null) {\n l.onChartDoubleTapped(e);\n return super.onDoubleTap(e);\n }\n if (mChart.isDoubleTapToZoomEnabled()) {\n PointF trans = getTrans(e.getX(), e.getY());\n ...
"public void setLong(Property property, long value) {\n convertValueAndSet(property, value);\n}\n"
"private void renderEnchantment() {\n float tickModifier = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F;\n renderer.bindTextureByName(\"String_Node_Str\");\n GL11.glEnable(GL11.GL_BLEND);\n float var20 = 0.5F;\n GL11.glColor4f(var20, var20, var20, 1.0F);\n GL11.glDepthFunc(GL11.GL_EQU...
"public RenderedImage create(ParameterBlock args, RenderingHints hints) {\n ImageLayout layout = RIFUtil.getImageLayoutHint(hints);\n Interpolation interp = (Interpolation) args.getObjectParameter(3);\n double[] backgroundValues = (double[]) args.getObjectParameter(4);\n RenderedImage source = args.getRende...
"public ImmutableSet<FactoryMethodDescriptor> visitExecutableAsConstructor(ExecutableElement e, Void p) {\n return ImmutableSet.of(generateDescriptorForConstructor(declaration, e));\n}\n"
"public int select0(int count) {\n if (count > size0)\n return -1;\n if (count <= 3) {\n if (count == 1)\n return node1pos;\n else if (count == 2)\n return node2pos;\n else if (count == 3)\n return node3pos;\n else\n return -1;\n }\...
"public Object getParent(Object model) {\n ExtendedItemHandle element = (ExtendedItemHandle) model;\n try {\n CrosstabCellHandle cell = (CrosstabCellHandle) element.getReportItem();\n if (cell.getContainer() != null) {\n if (cell.getContainer() instanceof MeasureViewHandle) {\n ...
"public RiakFuture getStream(String key, Range range, StreamResponseHandler handler) {\n notNull(key, \"String_Node_Str\");\n notNull(range, \"String_Node_Str\");\n notNull(handler, \"String_Node_Str\");\n HttpRequest request = buildGetStreamRequest(key);\n request.setHeader(HttpHeaders.Names.RANGE, rang...
"private int decodeBytecodeInstruction(int index, int stackLen, byte[] stackWords) throws InvalidBytecodeException {\n int opcode = code[index] & 0xFF;\n Instruction i = simpleInstructions[opcode];\n if (i != null) {\n decoded.add(i);\n return index + 1;\n }\n boolean wide = false;\n whi...
"public synchronized SimpleCacheSpan startReadWriteNonBlocking(String key, long position) throws CacheException {\n SimpleCacheSpan cacheSpan = getSpan(key, position);\n if (cacheSpan.isCached) {\n SimpleCacheSpan newCacheSpan = index.get(key).touch(cacheSpan);\n notifySpanTouched(cacheSpan, newCach...
"public boolean equalsAsOption(PossibleAction action) {\n if (!(action.getClass() == LayTile.class))\n return false;\n LayTile a = (LayTile) action;\n return (a.locationNames == null && locationNames == null || a.locationNames.equals(locationNames)) && a.type == type && a.tileColours == tileColours && a...
"public SearchingRecordIterator getRecordIterator(String tableName, byte[] mustStartWith, byte[] startSearchingAt, DatabaseSession databaseSession) throws BimserverLockConflictException, BimserverDatabaseException {\n Cursor cursor = null;\n try {\n cursor = getDatabase(tableName).openCursor(getTransaction...
"private void maybeFinishPrepare() {\n if (released || prepared || seekMap == null || !tracksBuilt) {\n return;\n }\n int trackCount = sampleQueues.size();\n for (int i = 0; i < trackCount; i++) {\n if (sampleQueues.valueAt(i).getUpstreamFormat() == null) {\n return;\n }\n ...
"private void createFormArea(Composite parent) {\n final IObservableValue master = new WritableValue();\n IObservableValue treeObs = ViewerProperties.singleSelection().observe(viewer);\n treeObs.addValueChangeListener(new IValueChangeListener() {\n public void handleValueChange(ValueChangeEvent event) {...
"public SimulatedRead getNextRead() throws IOException {\n SimulatedRead read;\n final String nameLine = fastqBr.readLine();\n if (nameLine == null || nameLine.trim().length() < 1)\n return null;\n ArtAlnRecord alnRecord;\n if ((alnRecord = artAlnR.getNextAln()) == null)\n return null;\n ...
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (!super.equals(obj))\n return false;\n if (getClass() != obj.getClass())\n return false;\n Module other = (Module) obj;\n if (definition == null) {\n if (other.definition != null)\n return f...
"public <T extends Loadable> long startLoading(T loadable, Callback<T> callback, int minRetryCount) {\n Looper looper = Looper.myLooper();\n Assertions.checkState(looper != null);\n long startTimeMs = SystemClock.elapsedRealtime();\n new LoadTask<>(looper, loadable, callback, defaultMinRetryCount, startTime...
"public MinHashSearch getMatchSearch(SequenceSketchStreamer hashStreamer) throws IOException {\n return new MinHashSearch(hashStreamer, this.numHashes, this.numMinMatches, this.numThreads, false, this.minStoreLength, this.maxShift, this.acceptScore, this.alignmentOffset);\n}\n"
"public String getText(Object obj) {\n if (obj == null) {\n return \"String_Node_Str\";\n }\n if (obj instanceof ImpactNode) {\n return ((ImpactNode) obj).toString();\n } else if (obj instanceof IFile) {\n IFile file = (IFile) obj;\n ModelElement modelElement = ModelElementFileFa...
"void getStrings(StringArray array, ArrayList<Person> persons, int begin, int number){\n\tfor (int i = begin; i < number + begin; i++){\n\t\tPerson p = persons.get(i);\n\t\tarray.addString(p == null ? \"null\" : p.toString());\n\t}\n}\n"
"public void runOpMode() throws InterruptedException {\n strafeAlignController = new PIDController(STRAFE_ALIGN_PID);\n dashboard = RobotDashboard.getInstance();\n telemetry = new MultipleTelemetry(telemetry, dashboard.getTelemetry());\n drive = new MecanumDrive(hardwareMap, telemetry);\n drive.setEstima...
"private URL promptForWorkspace(Shell shell, ChooseWorkspaceData launchData, boolean force) {\n URL url = null;\n boolean doForce = force;\n do {\n ChooseWorkspaceDialog chooseWorkspaceDialog = new ChooseWorkspaceDialog(shell, launchData, false, true);\n boolean isDisableLoginDialog = ArrayUtils....
"public void createClient(CubeConfiguration cubeConfiguration) {\n dockerClientExecutorProducer.set(new DockerClientExecutor(cubeConfiguration, new CommandLineExecutor()));\n}\n"
"public void run() {\n synchronized (latch) {\n h.getMap(\"String_Node_Str\").put(\"String_Node_Str\", counter1.incrementAndGet());\n latch.countDown();\n }\n System.out.println(Thread.currentThread() + \"String_Node_Str\" + count);\n}\n"
"public void canCloseFrameReaderAndReadExpectedLines() throws Exception {\n int exitCode = dockerClient.waitContainerCmd(dockerfileFixture.getContainerId()).exec(new WaitContainerResultCallback()).awaitStatusCode();\n assertEquals(0, exitCode);\n Iterator<Frame> response = getLoggingFrames().iterator();\n a...
"public void testThirdLevel() {\n addCard(Constants.Zone.BATTLEFIELD, playerA, \"String_Node_Str\");\n addCard(Constants.Zone.BATTLEFIELD, playerA, \"String_Node_Str\", 15);\n for (int i = 0; i < 12; i++) {\n activateAbility(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, \"String_Node_Str\");\n }\n ...
"protected Control createDialogArea(Composite parent) {\n GridData layoutData = new GridData(GridData.FILL_BOTH);\n Composite composite = new Composite(parent, SWT.BORDER);\n GridLayout layout = new GridLayout();\n composite.setLayout(layout);\n composite.setLayoutData(layoutData);\n tableViewerCreato...
"private boolean putCertInKeyStore(android.security.KeyStore keyStore, String name, Certificate cert) {\n try {\n byte[] certData = Credentials.convertToPem(cert);\n if (DBG)\n Slog.d(TAG, \"String_Node_Str\" + name + \"String_Node_Str\");\n return keyStore.put(name, certData, Process...
"public void process(GrayU8 binary) {\n labeled.reshape(binary.width, binary.height);\n contourFinder.process(binary, labeled);\n FastQueue<Contour> blobs = contourFinder.getContours();\n for (int i = 0; i < blobs.size; i++) {\n Contour c = blobs.get(i);\n proccessContour(c.external);\n ...
"private JSONObject collectJobDetails() throws PersistenceException, JSONException {\n JSONObject jObject = new JSONObject();\n Project currentProject = ProjectManager.getInstance().getCurrentProject();\n final IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n int jobsNum = 0;\n i...
"private boolean existSqlgSchema() {\n Connection conn = this.sqlgGraph.tx().getConnection();\n try {\n if (this.sqlDialect.supportSchemas()) {\n DatabaseMetaData metadata = conn.getMetaData();\n return this.sqlDialect.schemaExists(metadata, null, SQLG_SCHEMA);\n } else {\n ...
"public static VmInstance shutDown(VmInstance vm) throws TransactionException {\n if (VmStateSet.DONE.apply(vm)) {\n return VmInstances.delete(vm);\n } else {\n return Transitions.SHUTDOWN.apply(vm);\n }\n}\n"
"public void testEnumCompare() {\n GeneralCaseExpression result = (GeneralCaseExpression) parse(\"String_Node_Str\");\n GeneralCaseExpression expected = new GeneralCaseExpression(Arrays.asList(new WhenClauseExpression(new EqPredicate(path(\"String_Node_Str\"), literal(\"String_Node_Str\", \"String_Node_Str\")), f...
"protected void sendSharedObjectMsgTo(ID toID, SharedObjectMsg msg) throws IOException {\n if (msg == null)\n throw new NullPointerException(\"String_Node_Str\");\n String method = \"String_Node_Str\";\n traceEntering(method, new Object[] { toID, msg });\n getContext().sendMessage(toID, new SharedObj...
"public void handleMessage(Message msg) {\n switch(msg.what) {\n case SHOW_ERROR_MSG:\n {\n HashMap data = (HashMap) msg.obj;\n synchronized (ActivityManagerService.this) {\n ProcessRecord proc = (ProcessRecord) data.get(\"String_Node_Str\");\n ...
"public void setMargins(int left, int top, int right, int bottom) {\n leftMargin = left;\n topMargin = top;\n rightMargin = right;\n bottomMargin = bottom;\n mMarginFlags &= ~LEFT_MARGIN_UNDEFINED_MASK;\n mMarginFlags &= ~RIGHT_MARGIN_UNDEFINED_MASK;\n if (isMarginRelative()) {\n mMarginFlag...
"private void putGridIntoCanonical_vertical(int numRows, int numCols) {\n DetectAsymmetricCircleGrid<?> alg = new DetectAsymmetricCircleGrid(numRows, numCols, null, null, null);\n Grid g = createGrid(numRows, numCols);\n List<EllipseRotated_F64> original = new ArrayList<>();\n original.addAll(g.ellipses);\n...
"private EdgeInfo findOuterMostChildEdgeInfo(int dimAxisIndex, EdgeInfo edgeInfo) {\n if (dimAxisIndex < 0 || dimAxisIndex >= this.dimAxis.length || edgeInfo == null)\n return null;\n int endPosition = edgeInfo.firstChild;\n EdgeInfo info = edgeInfo;\n for (int i = dimAxisIndex + 1; i < this.dimAxis....
"private void destroyAutopilot() {\n if (drone == null)\n return;\n drone.removeDroneListener(this);\n final Parameters parameters = drone.getParameters();\n if (parameters != null)\n parameters.setParameterListener(null);\n final MagnetometerCalibrationImpl magnetometer = drone.getMagnetom...
"public IconicsDrawable color(int color) {\n setAlpha(Color.alpha(color));\n mIconPaint.setColor(color);\n invalidateSelf();\n return this;\n}\n"
"public boolean retainAll(Collection<?> c) {\n final E[] newData = (E[]) new Object[dataLocator.getCapacity()];\n boolean changed = false;\n int read = this.locator.getReadLocation();\n int write = this.locator.getWriterLocation();\n if (read == write)\n return false;\n int i = 0;\n if (read...
"private void handleClassLoadFailure(String message, Exception cause) {\n throw new MissingClassError(message, cause);\n}\n"
"public static synchronized ConfigOption[] getRequiredOptions(final StoreFactoryFamilySpi storeFactoryFamily) {\n final List<ConfigOption> requiredOptions = new ArrayList<ConfigOption>();\n for (final ConfigOption option : getAllOptions(storeFactoryFamily, false)) {\n if (!option.isOptional()) {\n ...
"public void onResponseReceived(Request request, Response response) {\n JsArray<JsSetting> jsSettings = null;\n try {\n jsSettings = JsSetting.parseSettingsJson(response.getText());\n } catch (Throwable t) {\n }\n if (jsSettings == null) {\n return;\n }\n for (int i = 0; i < jsSetting...
"public void render(Component comp, Writer out) throws IOException {\n final SmartWriter wh = new SmartWriter(out);\n final Menu self = (Menu) comp;\n final String uuid = self.getUuid();\n final String zcls = self.getZclass();\n final Execution exec = Executions.getCurrent();\n if (self.isTopmost()) {...
"public void fillContextMenu(IMenuManager menu) {\n TreeSelection treeSelection = ((TreeSelection) this.getContext().getSelection());\n List<IFile> selectedFiles = new ArrayList<IFile>();\n if (treeSelection.size() == 1) {\n Object obj = treeSelection.getFirstElement();\n if (obj instanceof IFold...
"private void fileChecksumVote(long fileId) {\n List<Long> rfiGuids = retrieveReplicaFileInfoGuidsForFile(fileId);\n List<ReplicaFileInfo> rfis = retrieveReplicaFileInfosWithChecksum(rfiGuids);\n if (rfis.size() == 0) {\n log.warn(\"String_Node_Str\" + retrieveFilenameForFileId(fileId) + \"String_Node_S...
"public Entry next() {\n if (_internal == null)\n return null;\n Entry e = _internal.next();\n e.frequency = (double) _entries.get(e) / (double) count;\n return e;\n}\n"
"private void displaySessionData(final SessionDetailModel data) {\n mTitle.setText(data.getSessionTitle());\n mSubtitle.setText(data.getSessionSubtitle());\n mPhotoViewContainer.setBackgroundColor(UIUtils.scaleSessionColorToDefaultBG(data.getSessionColor()));\n if (data.hasPhotoUrl()) {\n mHasPhoto =...
"public String getAverageLengthWithNullBlankRows() {\n String sql = \"String_Node_Str\" + charLength(trimIfBlank(\"String_Node_Str\")) + \"String_Node_Str\" + \"String_Node_Str\" + charLength(trimIfBlank(\"String_Node_Str\")) + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + charLength(trimIfBlank(...
"private void reconfig(Dictionary props) throws ConfigurationException {\n cacheLock.lock();\n try {\n long secsToIdle = Long.parseLong(props.get(SECS_TO_IDLE).toString());\n long secsToLive = Long.parseLong(props.get(SECS_TO_LIVE).toString());\n int maxMem = Integer.parseInt(props.get(MAX_CA...
"public char readChar() throws IOException {\n if (this.position < this.end - 1) {\n return (char) (((this.memory[this.position++] & 0xff) << 8) | ((this.memory[this.position++] & 0xff) << 0));\n } else {\n throw new EOFException();\n }\n}\n"
"private IPath getPath(ModelElement element, IPath itemPath) {\n IPath path = new Path(PluginConstant.EMPTY_STRING);\n if (element instanceof DatabaseConnection) {\n path = itemPath.makeRelativeTo(ResourceManager.getConnectionFolder().getFullPath());\n } else if (element instanceof MDMConnection) {\n ...
"public DataSet<Boolean> execute(GraphCollection<G, V, E> firstCollection, GraphCollection<G, V, E> secondCollection) {\n DataSet<Tuple2<String, Long>> firstGraphLabels = labelGraphs(firstCollection);\n DataSet<Tuple2<String, Long>> secondGraphLabels = labelGraphs(secondCollection);\n DataSet<Long> firstLabelC...
"private static void createAddFunctions(List<String> r, DbOperations dbOps) {\n for (Table table : dbOps.getDatabase().getTables()) {\n if (!table.isStem()) {\n StringBuilder line = new StringBuilder();\n String rTableName = convertToRName(table.getName());\n List<String> argD...
"public void selectGeneSystemWide(IDType contentIDType, int davidID) {\n ClearSelectionsEvent clearSelectionsEvent = new ClearSelectionsEvent();\n clearSelectionsEvent.setSender(this);\n eventPublisher.triggerEvent(clearSelectionsEvent);\n SelectionUpdateEvent selectionUpdateEvent = new SelectionUpdateEvent...
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n PluginPropertyField that = (PluginPropertyField) o;\n return required == that.required && name.equals(that.name) && description.equals(that.desc...
"public int getStepOffset() {\n return getConfig().getStepOffset();\n}\n"
"public void recomputeIndicators() {\n correlationAnalysisHandler = new ColumnCorrelationAnalysisHandler();\n correlationAnalysisHandler.setAnalysis((Analysis) this.currentModelElement);\n stringDataFilter = correlationAnalysisHandler.getStringDataFilter();\n analyzedColumns = correlationAnalysisHandler.get...
"public static Object[][] getData(String methodName) {\n Object[][] testMethodData = null;\n List<IBrowserConf> browserConfFullList = RetryIAnnotationTransformer.methodBrowser.get(methodName);\n Set<IBrowserConf> browserConfSet = new HashSet<IBrowserConf>(browserConfFullList);\n List<IBrowserConf> browserCo...
"void init() {\n if (demoProjects == null) {\n synchronized (DemoProjectsProvider.class) {\n allDemoProviders = new HashMap<String, DemoProvider>();\n readRegistry();\n Map<String, DemoProvider> finalDemoProviders = new HashMap<String, DemoProvider>(allDemoProviders);\n ...
"public void testDefaultConstructor() {\n Assert.assertNull(this.c.getClusterType());\n Assert.assertNull(this.c.getCommands());\n Assert.assertNull(this.c.getConfigs());\n Assert.assertNull(this.c.getName());\n Assert.assertNull(this.c.getStatus());\n Assert.assertNotNull(this.c.getTags());\n Asse...
"protected void doRun() {\n IStructuredSelection selection = (IStructuredSelection) getSelection();\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (repositoryNode == null && selection != null) {\n repositoryNode = (RepositoryNode) selection.getFirstElement();\n }\n ...
"private void triggerViewsReady(final ArrayMap<String, View> sharedElements) {\n if (mAreViewsReady) {\n return;\n }\n mAreViewsReady = true;\n final ViewGroup decor = getDecor();\n if (decor == null || (decor.isAttachedToWindow() && (sharedElements.isEmpty() || !sharedElements.valueAt(0).isLayout...
"public boolean onOptionsItemSelected(MenuItem menuItem) {\n super.onOptionsItemSelected(menuItem);\n switch(menuItem.getItemId()) {\n case R.id.send_tweetflow:\n Toast.makeText(this, TweeterParser.parseTweetFlow(mTweetFlow), Toast.LENGTH_SHORT).show();\n break;\n case R.id.des...
"public void updateAfterConcurrentDeletionShouldCauseException() throws Exception {\n createAndPersistNovel();\n session.clear();\n Transaction transaction = session.beginTransaction();\n Novel novel = (Novel) session.get(Novel.class, \"String_Node_Str\");\n concurrentlyDeleteNovel();\n novel.setPosit...
"static String stripVersionAndMetricsFromPath(String path) {\n int startPos = Constants.Gateway.GATEWAY_VERSION.length() + 9;\n return path.substring(startPos - 1, path.length());\n}\n"
"public org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementDosageComponent convertMedicationStatementDosageComponent(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementDosageComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dst...
"public static void addFetishes(GameCharacter character) {\n List<Fetish> availableFetishes = new ArrayList<>();\n for (Fetish f : Fetish.values()) {\n if (f == Fetish.FETISH_PURE_VIRGIN) {\n if (character.hasVagina() && character.getHistory() != History.PROSTITUTE)\n availableFet...
"public boolean isPathSuffix(final byte[] p, final int pLen) {\n final AbstractTreeIterator t = currentHead;\n final byte[] c = t.path;\n final int cLen = t.pathLen;\n for (int i = 1; i <= pLen; i++) {\n if (i > cLen)\n return false;\n if (c[cLen - i] != p[pLen - i])\n re...
"private void setPieceOnBoard(boolean isBlack) {\n if (!option.isOccupied()) {\n if ((option.getColor().equals(Color.LIGHT_GRAY) == false) && (option.getColor().equals(Color.getHSBColor(30, 70, 70)) == false)) {\n square.setBackgroundColor(option.getColor());\n }\n if (option.isHabita...
"public void removeErrors() {\n this.errorMessage = null;\n if (!wizard.isDisposed()) {\n wizard.getDialog().setErrorMessage(null);\n }\n}\n"
"public void addAuthenticator(Authenticator authenticator, String loginMethod) {\n if ((authenticator != null) && !(authenticator instanceof GlassFishValve)) {\n throw new IllegalArgumentException(sm.getString(\"String_Node_Str\"));\n }\n if (authenticators == null) {\n authenticators = new HashM...
"private <T extends EventListener> T initializeListener(ListenerConfig listenerConfig) {\n T listener = getListenerImplOrNull(listenerConfig);\n if (listener instanceof HazelcastInstanceAware) {\n ((HazelcastInstanceAware) listener).setHazelcastInstance(getNodeEngine().getHazelcastInstance());\n }\n ...
"public void testBadTemplateType1() throws Exception {\n testTypes(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", FunctionTypeBuilder.TEMPLATE_TYPE_DUPLICATED.format());\n}\n"
"private void syncDetailsPane(TreeItem item) {\n TreeItemLogger.LogEvent logEvent = null;\n Object testLogEvent = item.getData();\n if (testLogEvent instanceof TreeItemLogger.LogEvent) {\n logEvent = (LogEvent) testLogEvent;\n }\n StringBuffer sb = new StringBuffer();\n if (logEvent != null && ...
"protected UserInfo map2VO(ResultSet rs) throws SQLException {\n UserInfo user = new UserInfo();\n rs.next();\n user.setLogin(rs.getString(\"String_Node_Str\"));\n if (rs.getString(\"String_Node_Str\") == null) {\n user.setPassword(\"String_Node_Str\");\n } else {\n user.setPassword(rs.getS...
"public void setup() {\n HazelcastInstance[] cluster = createHazelcastInstanceFactory(2).newInstances();\n HazelcastInstance local = cluster[0];\n HazelcastInstance remote = cluster[1];\n map = local.getMap(randomName());\n serializationService = getSerializationService(local);\n remoteKey1 = generate...
"public boolean isEnabled() {\n boolean enabled = true;\n if (measureViewHandle instanceof ComputedMeasureViewHandle) {\n enabled = false;\n } else {\n if (DEUtil.isLinkedElement(measureViewHandle.getCrosstabHandle())) {\n return false;\n }\n IAggregationCellViewProvider ...
"public void addWrappersToProject(Project toplinkProject) {\n getTypeHelperDelegate().addWrappersToProject(toplinkProject);\n}\n"
"protected void AddWordToStorage(String word, int frequency) {\n if (TextUtils.isEmpty(word)) {\n return;\n }\n if (frequency < 0)\n frequency = 0;\n if (frequency > 255)\n frequency = 255;\n ContentValues values = new ContentValues(4);\n values.put(Words.WORD, word);\n values....
"public void testGetSubCpOptionForMencoder_withoutDetectedCharset() throws Exception {\n DLNAMediaSubtitle subtitle = new DLNAMediaSubtitle();\n File file_cp1251 = FileUtils.toFile(CLASS.getResource(\"String_Node_Str\"));\n subtitle.setType(VOBSUB);\n subtitle.setExternalFile(file_cp1251, null);\n assert...
"public void test1() {\n testSee(\"String_Node_Str\", \"String_Node_Str\", 100);\n}\n"
"public void updateTable(AssemblyStatsTable table, List<File> assemblies, File reportDir, String subGroup) throws IOException {\n File quastReportFile = new File(reportDir, QUAST_REPORT_NAME);\n if (quastReportFile.exists()) {\n QuastV2_2Report quastReport = new QuastV2_2Report(quastReportFile);\n f...
"protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n int targetWidth = HeaderGridView.this.getMeasuredWidth() - ViewCompat.getPaddingStart(HeaderGridView.this) - ViewCompat.getPaddingEnd(HeaderGridView.this);\n widthMeasureSpec = MeasureSpec.makeMeasureSpec(targetWidth, MeasureSpec.getMode(w...
"static Cursor query(SQLiteDatabase db, long accountId) {\n String[] credentials = getCredentials(db, accountId);\n ArrayList<Subreddit> subreddits = null;\n try {\n subreddits = NetApi.query(credentials[0]);\n } catch (IOException e) {\n Log.e(TAG, \"String_Node_Str\", e);\n return nul...
"protected List<SourceFile> createInputs(List<String> files, List<String> zips, List<JsonFileSpec> jsonFiles, boolean allowStdIn) throws FlagUsageException, IOException {\n List<SourceFile> inputs = new ArrayList<>(files.size());\n boolean usingStdin = false;\n for (FlagEntry<JsSourceType> file : files) {\n ...
"public List<EntitlementPool> listByConsumer(String consumerUuid) {\n log.debug(\"String_Node_Str\" + consumerUuid);\n Consumer consumer = consumerCurator.lookupByUuid(consumerUuid);\n log.debug(\"String_Node_Str\" + consumer.toString());\n List<EntitlementPool> eps = entitlementPoolCurator.listByConsumer(c...
"public int getPosixAccessRights(StorageManager sMan, FileMetadata file, String userId, List<String> groupIds) throws MRCException {\n return !file.isDirectory() && file.isReadOnly() ? file.getPerms() & READ_ONLY_MASK : file.getPerms();\n}\n"
"public IType getSimpleRefType() {\n if (this.simpleRefType != null) {\n return this.simpleRefType;\n }\n final String className = \"String_Node_Str\" + this.getTypePrefix() + \"String_Node_Str\";\n return this.simpleRefType = new ClassType(Package.dyvilRefSimple.resolveClass(className));\n}\n"
"public static ValidationDefinition parseDefinition(InputStream stream) throws ParserConfigurationException, IOException, SAXException, MalformedDataException {\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n documentBuilderFactory.setIgnoringElementContentWhitespace(true...
"private boolean isTargetForMapperFieldMapper(PropertyMapping pm) {\n return pm.getPropertyMeta().isSubProperty() || (JoinUtils.isArrayElement(pm.getPropertyMeta()) && pm.getColumnDefinition().isKey());\n}\n"
"public synchronized void wrapup() throws IllegalActionException {\n super.wrapup();\n if (_websocket != null) {\n _websocket.close();\n }\n if (_client != null) {\n _client.close();\n }\n _vertx.stop();\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.share_photo);\n Display display = getWindowManager().getDefaultDisplay();\n screenWidth = (int) (display.getWidth() * 0.95);\n margin = (int) ((display.getWidth() - screenWidth) / 2);\n ...
"protected String buildBookmarkAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderConte...
"public void onEnable() {\n checkForLibs();\n trans = new Translation();\n instance = this;\n log = getServer().getLogger();\n try {\n dclistener = new DropChestListener();\n } catch (NoClassDefFoundError e) {\n dclistener = null;\n }\n try {\n worldguard = (WorldGuardPlugin...
"private static byte[] alterChunk(String name, String transformedName, byte[] bytes, ClassReader cr) {\n String[] names;\n if (LoadingPlugin.runtimeDeobfEnabled) {\n names = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n } else {\n names = new String[] { \"String_Node_Str\", \"Strin...
"protected void initFields() {\n mainThreadHandler = new Handler(Looper.getMainLooper());\n resources = getResources();\n dataManager = DataManager.getInstance();\n imageUtils = new ImageUtils(this);\n loadAttachFileSuccessAction = new LoadAttachFileSuccessAction();\n loadDialogMessagesSuccessAction =...
"public Long run() throws Exception {\n long expires = token.renew(fs.getConf());\n log.info(\"String_Node_Str\", getPrintableExpirationTime(expires));\n return expires;\n}\n"
"protected void composeParameterDefinitionElements(ParameterDefinition element) throws IOException {\n composeElementElements(element);\n if (element.hasNameElement()) {\n composeCode(\"String_Node_Str\", element.getNameElement());\n }\n if (element.hasUseElement())\n composeEnumeration(\"Stri...