content
stringlengths
40
137k
"private INDArray create(DataBuffer values, DataBuffer indices, int[] newShape, int[] sparseOffsets, int[] fixed, char newOrder) {\n return Nd4j.createSparseCOO(values, indices, sparseOffsets, fixed, newShape, newOrder);\n}\n"
"public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (isPopupShowing()) {\n if (keyCode != KeyEvent.KEYCODE_SPACE && (mDropDownList.getSelectedItemPosition() >= 0 || (keyCode != KeyEvent.KEYCODE_ENTER && keyCode != KeyEvent.KEYCODE_DPAD_CENTER))) {\n int curIndex = mDropDownList.getSelecte...
"public EntityMetadata getEntityMetadata(Class<?> entityClass) {\n return getEntityMetadataMap().get(entityClass.getName());\n}\n"
"public ArrayList<Actor> scrapeActors() {\n Elements actorElements = document.select(\"String_Node_Str\");\n ArrayList<Actor> actorList = new ArrayList<Actor>();\n if (actorElements != null) {\n for (Element currentActorElement : actorElements) {\n String actorName = currentActorElement.child...
"public void sync() {\n if (worldObj.isRemote) {\n int entityid = dataWatcher.getWatchableObjectInt(15);\n Entity e = entityid == 0 ? null : worldObj.getEntityByID(entityid);\n currentTarget = e;\n this.isActivated = dataWatcher.getWatchableObjectByte(16) > 0;\n } else {\n if (c...
"public String getStepResults() {\n return this.d == null ? \"String_Node_Str\" : \"String_Node_Str\" + this.d.getTitle() + \"String_Node_Str\";\n}\n"
"public boolean apply(Game game, Ability source) {\n Player targetOpponent = game.getPlayer(source.getTargets().getFirstTarget());\n Player controller = game.getPlayer(source.getControllerId());\n if (targetOpponent == null || controller == null) {\n return false;\n }\n FilterControlledPermanent f...
"public boolean revokePortForwardingRulesForVm(long vmId) {\n UserVmVO vm = _vmDao.findByIdIncludingRemoved(vmId);\n if (vm == null) {\n return false;\n }\n List<PortForwardingRuleVO> rules = _forwardingDao.listByVm(vmId);\n Set<Long> ipsToReprogram = new HashSet<Long>();\n if (rules == null ||...
"public static String getMappedName(Relation relation) {\n String joinColumn = relation.getJoinColumnName();\n if (joinColumn == null) {\n Class clazz = relation.getTargetEntity();\n EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(clazz);\n joinColumn = relation.getType().e...
"protected InterceptorStatusToken beforeInvocation(Object object) {\n InterceptorStatusToken result = null;\n try {\n RMMethodSecurityInterceptor.CAPABILITIES.remove();\n RMMethodSecurityInterceptor.IS_RM_SECURITY_CHECK.remove();\n RMMethodSecurityInterceptor.MESSAGES.remove();\n resul...
"public void use(UPlayer uplayer, Player player) {\n uplayer.msg(\"String_Node_Str\");\n uplayer.msg(this.desc);\n if (!Perm.ALTAR_DARK.has(player, true))\n return false;\n uplayer.msg(MLang.get().altarDarkCommon);\n FxUtil.ensure(PotionEffectType.BLINDNESS, player, 12 * 20);\n uplayer.runFxSmo...
"protected void doRead() {\n new Flare(5, 32).color(0xFF0000, true).show(curUser.sprite, 2f);\n Sample.INSTANCE.play(Assets.SND_READ);\n Invisibility.dispel();\n int count = 0;\n Mob affected = null;\n for (Mob mob : Dungeon.level.mobs.toArray(new Mob[0])) {\n if (Level.fieldOfView[mob.pos]) {\...
"public BytesMetrics computeMetrics() {\n BytesMetrics allMetrics = new BytesMetrics();\n allMetrics.incrementRead(readBytes.get());\n allMetrics.incrementWrote(wroteBytes.get());\n return allMetrics;\n}\n"
"public static void PrepareJail(CommandSender sender, String[] args) {\n String playername;\n int time = -1;\n String jailname = \"String_Node_Str\";\n if (args.length < 1 || (args.length > 1 && (!Util.isInteger(args[1]))) || args[0].trim().equals(\"String_Node_Str\")) {\n if (sender != null)\n ...
"private void setViewPager() {\n int initPage = getIntent().getIntExtra(Commons.EXTRA_PAGE, 0);\n if (App.DEBUG) {\n log(\"String_Node_Str\" + mCurrentPage);\n }\n mViewAdapter = new ViewsAdapter(views);\n mViewPager = (ViewPager) findViewById(R.id.viewpager);\n mViewPager.setOnPageChangeListen...
"public static int convertToPt(String size) {\n try {\n int s = Integer.valueOf(size.substring(0, size.length() - 2)).intValue();\n if (size.endsWith(\"String_Node_Str\")) {\n return s * 72;\n } else if (size.endsWith(\"String_Node_Str\")) {\n return (int) (s / 2.54 * 72);\...
"private void initContext() {\n JBPropertyDescriptor propDes = null;\n IComponentIdentifier compId = getNode().getTechnicalName();\n if (compId != null) {\n List context = compId.getNeighbours();\n for (int i = 0; i < context.size(); i++) {\n if (i == 0) {\n propDes = ne...
"public void upgrade(ISkillInfo upgrade, boolean quiet) {\n if (upgrade instanceof DamageInfo) {\n boolean isPassive = damage <= 0;\n if (upgrade.getProperties().getValue().containsKey(\"String_Node_Str\")) {\n int damage = ((IntTag) upgrade.getProperties().getValue().get(\"String_Node_Str\"...
"public static ICubeQueryDefinition load(String queryResultID, DataEngineContext context) throws DataException, IOException {\n DataInputStream dis = null;\n IDocArchiveReader reader = context.getDocReader();\n int version;\n if (context.hasInStream(null, null, DataEngineContext.VERSION_INFO_STREAM) == fals...
"private Agent createIceAgent(boolean isControlling, String iceStreamName) throws IOException {\n NetworkAddressManagerService nams = ServiceUtils.getService(getBundleContext(), NetworkAddressManagerService.class);\n Agent iceAgent = nams.createIceAgent();\n appendVideobridgeHarvesters(iceAgent);\n iceAgent...
"private int decodeRunLength(int k) {\n if ((k & (1L)) != 0) {\n return ((k >>> 1) & ((1 << 7) - 1)) + (sp - p);\n } else {\n return Integer.numberOfLeadingZeros((k >>> 1) & ((1 << (sp - p)) - 1)) + 1;\n }\n}\n"
"private void resetDataSetReference(Object value, boolean clearHistory) {\n try {\n startTrans(\"String_Node_Str\");\n getReportItemHandle().setDataBindingReference(null);\n DataSetHandle dataSet = null;\n if (value != null) {\n dataSet = SessionHandleAdapter.getInstance().getR...
"public static List<Parameter> nodeToParameterList(Node node) throws MalformedDataException {\n List<Parameter> parameters = new ArrayList<Parameter>();\n for (Node child = node.getFirstChild(); child != null; child = child.getNextSibling()) {\n if (child.getNodeType() == Node.TEXT_NODE) {\n con...
"void addTo(DataSet out, long now) {\n out.mSummedTime += getTotalTime(now);\n for (int i = mEntries.size() - 1; i >= 0; i--) {\n ArrayMap<String, PackageEntry> uidMap = mEntries.valueAt(i);\n for (int j = uidMap.size() - 1; j >= 0; j--) {\n PackageEntry pe = uidMap.valueAt(j);\n ...
"private Branch testEvents__purged() throws Exception {\n Branch workingBranch = BranchManager.createWorkingBranch(mainBranch, method.getQualifiedTestName() + \"String_Node_Str\");\n Assert.assertNotNull(workingBranch);\n final String guid = workingBranch.getGuid();\n Assert.assertNotNull(workingBranch);\n ...
"protected Element getStyleElement() {\n return getElement();\n}\n"
"private void createMethodContext() {\n this.currentStatement = new StatementsContainer();\n currentStatement.setVariable(FACES_CONTEXT_VARIABLE, getType(FacesContext.class));\n currentStatement.setVariable(RESPONSE_WRITER_VARIABLE, getType(ResponseWriter.class));\n currentStatement.setVariable(CLIENT_ID_VA...
"public String getMimeType() {\n if (format >= 0 && format < MIME_TYPE_STRINGS.length) {\n if (format == FORMAT_JPEG && progressive) {\n return \"String_Node_Str\";\n }\n return MIME_TYPE_STRINGS[format];\n } else {\n return null;\n }\n return null;\n}\n"
"public static void loadRegionSettings(Region region) {\n for (RegionSetting setting : RegionSetting.values()) {\n Object prop = regionConfig.getProperty(region.Name + \"String_Node_Str\" + setting.getYaml());\n if (prop == null)\n region.settings.put(setting, setting.getDefault());\n ...
"public PointF getCenter() {\n return new PointF(getWidth() / 2f, getHeight() / 2f);\n}\n"
"public void writeExpression(MethodWriter writer) throws BytecodeException {\n this.field.writeGet(writer, this.instance);\n if (this.type != null && !this.type.isSuperTypeOf(this.field.getType())) {\n writer.writeTypeInsn(Opcodes.CHECKCAST, this.type.getInternalName());\n }\n}\n"
"public String toHexString() {\n StringBuffer buf = new StringBuffer();\n String str;\n int val;\n for (int i = 0; i < SZ; i++) {\n val = ByteOrder.ubyte2int(bytes[i]);\n str = Integer.toHexString(val);\n while (str.length() < 8) str = \"String_Node_Str\" + str;\n buf.append(str)...
"private static Logger createFileLogger(String dirName, String fileName) {\n try {\n if (dirName != null) {\n File directory = new File(dirName);\n if (!directory.exists()) {\n if (!directory.mkdirs())\n throw new IOException(\"String_Node_Str\" + dirNam...
"private void sendNewUserEmail(User user, HttpServletRequest request) throws Exception {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + user.getUsername() + \"String_Node_Str\");\n }\n String fullName = user.getFirstName() + \"String_Node_Str\" + user.getLastName();\n StringBuffer ms...
"private void setupMap() {\n mMapView.setMapViewListener(mMapViewListener);\n resetMarkersOverlay();\n}\n"
"public static TypedReturnCode<Connection> getRefreshedDataProvider(Connection prevDataProvider) {\n TypedReturnCode<Connection> returnProvider = new TypedReturnCode<Connection>();\n boolean mdm = ConnectionUtils.isMdmConnection(prevDataProvider);\n String urlString = JavaSqlFactory.getURL(prevDataProvider);\n...
"protected WebComponentDescriptor combineWebComponentDescriptor(WebComponentDescriptor webComponentDescriptor) {\n WebComponentDescriptor resultDesc = null;\n String name = webComponentDescriptor.getCanonicalName();\n WebComponentDescriptor webCompDesc = getWebComponentByCanonicalName(name);\n if (webCompDe...
"protected Object check(HadoopServiceProperties serviceProperties, ClassLoader classLoader) throws Exception {\n Object configuration = Class.forName(\"String_Node_Str\", true, classLoader).newInstance();\n Object conf = ReflectionUtils.newInstance(\"String_Node_Str\", classLoader, new Object[] { configuration })...
"public static int upsertDocument(String dbName, String collName, String documentId, DBObject content, ObjectId requestEtag, boolean patching) {\n DB db = DBDAO.getDB(dbName);\n DBCollection coll = db.getCollection(collName);\n ObjectId timestamp = new ObjectId();\n Instant now = Instant.ofEpochSecond(times...
"private void createDefalutFile(ClusterCreate cluster) {\n String origFile = \"String_Node_Str\";\n String destFile = System.getProperty(\"String_Node_Str\") + \"String_Node_Str\" + clusterName + \"String_Node_Str\";\n StringBuilder createDefalutFileMsgBuffer = new StringBuilder();\n try {\n CommonUt...
"public void connect(ICredentials credentials, ConnectorClusterConfig config) throws ConnectionException {\n ClusterName clusterName = config.getName();\n Map<String, String> clusterOptions = config.getOptions();\n EngineConfig engineConfig = new EngineConfig();\n engineConfig.setCassandraHosts(clusterOptio...
"public boolean searcherInitialization(IndexSearcher searcher, Weight firstOrderWeight) throws IOException {\n if (valueToDocidCache == null) {\n if (cacheGetter != null) {\n valueToDocidCache = (Map<String, Integer>) cacheGetter.getCache();\n } else {\n valueToDocidCache = Dictio...
"public final byte getResourceAmountAt(short x, short y) {\n return resourceAmount[getIdx(x, y)];\n}\n"
"protected void onPostExecute(List<Application> applications) {\n ApplicationArrayAdapter adapter = new ApplicationArrayAdapter(getActivity(), applications);\n Spinner launchAppSpinner = getLaunchIntentSpinner();\n launchAppSpinner.setAdapter(adapter);\n if (selectedLaunchIntent != null) {\n for (int...
"private void executeDeferred() throws OperationException {\n if (this.state != State.Running) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (!this.deferred.isEmpty()) {\n try {\n this.xaction = this.opex.execute(this.context, this.xaction, this.deferred);\n ...
"public static <T extends Object> T createFormProxy(T origin, Class<?> type) {\n if (origin instanceof Form)\n return origin;\n ProxyFactory factory = new ProxyFactory();\n factory.setFilter(FormProxyHandler.FORM_METHOD_FILTER);\n if (origin instanceof FormProxyObject)\n type = ((FormProxyObje...
"public void testNumConnections() throws Exception {\n if (!TEST_ACTIVE) {\n return;\n }\n final String urlString = \"String_Node_Str\";\n final URI uri = new URI(urlString);\n final Collection<URI> uris = new LinkedList<URI>();\n uris.add(uri);\n final File testFile = new File(\"String_Node...
"public static void sessionRefreshUser(long userId) {\n synchronized (ASYNC_SESSIONS) {\n ASYNC_SESSIONS.remove(userId);\n }\n}\n"
"public void stop() {\n this.setStopping();\n LOGGER.trace(\"String_Node_Str\", this);\n for (final LoggerConfig loggerConfig : loggerConfigs.values()) {\n loggerConfig.getReliabilityStrategy().beforeStopConfiguration(this);\n }\n final String cls = getClass().getSimpleName();\n LOGGER.trace(\"...
"private void isValidArgument(String arg) throws IOException {\n if (arg == null || arg.contentEquals(\"String_Node_Str\")) {\n throw new IOException(\"String_Node_Str\");\n }\n}\n"
"private void savePattern() {\n if (pattern != null) {\n String expressionLanguage = this.regularExpression.getExpression().getLanguage();\n DbmsLanguage dbmsLanguage = this.getDbmsLanguage();\n if (null != dbmsLanguage) {\n dbmsLanguage.setFunctionName(getFunctionName());\n }\...
"public void execute(int method) throws Exception {\n switch(method) {\n case RestService.GET:\n {\n String combinedParams = \"String_Node_Str\";\n if (!params.isEmpty()) {\n combinedParams += \"String_Node_Str\";\n for (NameValueP...
"public Collection<Marker> getMarkers() {\n return documentation == null ? ImmutableList.<Marker>of() : documentation.markers;\n}\n"
"public void annotate(AnnoSentenceCollection inputSents) {\n log.info(\"String_Node_Str\" + pruneModel);\n JointNlpFgModel model = (JointNlpFgModel) Files.deserialize(pruneModel);\n ObsFeatureConjoiner ofc = model.getOfc();\n CorpusStatistics cs = model.getCs();\n JointNlpFeatureExtractorPrm fePrm = mode...
"public void removeRoomTest() {\n cubeCommand = new S_ConfigCommand(RF_TEST_ADDRESS, 1, ConfigCommandType.RemoveRoom);\n String commandString = cubeCommand.getCommandString();\n assertEquals(\"String_Node_Str\", commandString);\n}\n"
"public static double[][] selectGammas(int numClasses, MultiLabel[] multiLabels, int numClusters) {\n DataSet dataSet = DataSetBuilder.getBuilder().numDataPoints(multiLabels.length).numFeatures(numClasses).density(Density.SPARSE_RANDOM).build();\n for (int i = 0; i < multiLabels.length; i++) {\n MultiLabel...
"public void should_FindPostContentsNotEqual_WhenJsonParseExceptionThrown() throws Exception {\n final String requestUrl = String.format(\"String_Node_Str\", STUBS_URL, \"String_Node_Str\");\n final String content = \"String_Node_Str\";\n final HttpRequest request = HttpUtils.constructHttpRequest(HttpMethods.P...
"public Hbm classes(final Class... classes) {\n sources.add((m, c) -> Arrays.stream(classes).forEach(m::addAnnotatedClass));\n return this;\n}\n"
"public List<MappingInstance> getMappingInstances(List<Compartment> compartments, List<Channel> channels) {\n if (compartments == null || channels == null) {\n throw new NullPointerException();\n }\n List<Agent> remainingTemplateAgents = new ArrayList<Agent>(agents);\n List<Agent> fixedTemplateAgents...
"private Pair<String, Integer> getHaServer(int machineId) {\n String host = haServers.get(machineId);\n int pos = host.indexOf(\"String_Node_Str\");\n return new Pair<String, Integer>(host.substring(0, pos), Integer.parseInt(host.substring(pos + 1)));\n}\n"
"public void onNetworkError(Exception e) {\n super.onNetworkError(e);\n latch.countDown();\n}\n"
"public void addSequence(Sequence seq) {\n this.seqLengths.put(seq.getId(), seq.length());\n long[] hashValues = getHashes(seq);\n int count = 0;\n for (HashMap<Long, ArrayList<SequenceId>> hash : this.hashes) {\n ArrayList<SequenceId> currList = hash.get(hashValues[count]);\n if (currList == ...
"public void generateAll(File outDir, ResourceResolver css) throws IOException {\n if (css == null) {\n css = new AbstractResourceResolver() {\n public String href(CompilationUnitTree compUnit) {\n return getRelativePathToTop(compUnit) + \"String_Node_Str\";\n }\n }...
"public FileEntry getFileEntry(String filename) throws Exception {\n try {\n logDebug(\"String_Node_Str\" + filename);\n GDrivePath gdrivePath = new GDrivePath(filename);\n FileEntry res = convertToFileEntry(getFileForPath(gdrivePath, getDriveService(gdrivePath.getAccount())), filename);\n ...
"public String encode(char[] immune, String input) {\n StringBuilder sb = new StringBuilder();\n boolean encoding = false;\n boolean inquotes = false;\n for (int i = 0; i < input.length(); i++) {\n char c = input.charAt(i);\n if (containsCharacter(c, EncoderConstants.CHAR_ALPHANUMERICS) || con...
"public IStatus doAction() {\n try {\n if (page.isDirty()) {\n boolean save = MessageDialog.openConfirm(page.getSite().getShell(), \"String_Node_Str\", \"String_Node_Str\" + page.getXObject().getDisplayName() + \"String_Node_Str\");\n if (save)\n page.SaveWithForce(new Nul...
"public void onNeighborChange(IBlockAccess world, BlockPos pos, BlockPos neighbor) {\n TileRailBase tileEntity = (TileRailBase) world.getTileEntity(pos);\n boolean isOriginAir = tileEntity.getParentTile() == null || tileEntity.getParentTile().getParentTile() == null;\n boolean isOnRealBlock = world.isSideSolid...
"public void run() {\n if (!(getModel() instanceof DesignElementHandle)) {\n return;\n }\n DesignElementHandle handle = (DesignElementHandle) getModel();\n EditPart part = ReportElementEditPart.this;\n while (part != null && !(part instanceof RootEditPart)) {\n part = part.getParent();\n ...
"private Put preparePut(String columnFamily, Object rowKey, Map<String, Attribute> columns, Object columnFamilyObj) throws IOException {\n Put p = new Put(HBaseUtils.getBytes(rowKey));\n for (String columnName : columns.keySet()) {\n Attribute column = columns.get(columnName);\n if (!column.isCollec...
"public void perform(OPT_IR ir) {\n ir.gc.resync();\n OPT_Instruction next;\n for (OPT_Instruction inst = ir.firstInstructionInCodeOrder(); inst != null; inst = next) {\n next = inst.nextInstructionInCodeOrder();\n int opcode = inst.getOpcode();\n switch(opcode) {\n case NEW_opc...
"public void saveAction() {\n BufferedWriter sourceFile = null;\n try {\n BoolRef removedInvalidChars = new BoolRef(false);\n String cleanText = cleanupSource(sourceArea.getText(), removedInvalidChars);\n int caretPos = sourceArea.getCaretPosition();\n sourceArea.setText(cleanText);\n ...
"public void onPlayerInteract(PlayerInteractEvent event) {\n Player player = event.getPlayer();\n Block playerClick = player.getTargetBlock(null, 5);\n PlayerInventory inv = player.getInventory();\n if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) {\n ...
"private synchronized <E extends BaseRealm> E doCreateRealmOrGetFromCache(RealmConfiguration configuration, Class<E> realmClass) {\n RefAndCount refAndCount = refAndCountMap.get(RealmCacheType.valueOf(realmClass));\n if (getTotalGlobalRefCount() == 0) {\n copyAssetFileIfNeeded(configuration);\n bool...
"public void dropAllScriptLibs() throws SemanticException {\n List scriptLibs = getFilteredStructureList(SCRIPTLIBS_PROP, ScriptLib.SCRIPTLIB_NAME_MEMBER);\n if (scriptLibs == null)\n return;\n int count = scriptLibs.size();\n for (int i = count - 1; i >= 0; --i) {\n ScriptLib scriptLib = (Scr...
"public void run() {\n for (int i = 1; i < k; i++) {\n try {\n sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n final ICountDownLatch l = instances[i].getCountDownLatch(\"String_Node_Str\");\n l.countDown();\n assertEquals(k...
"public boolean onBlockActivated(final World w, final BlockPos pos, final IBlockState state, final EntityPlayer p, final EnumHand hand, final EnumFacing side, final float hitX, final float hitY, final float hitZ) {\n final TileMolecularAssembler tg = this.getTileEntity(w, pos);\n if (tg != null && !p.isSneaking()...
"public void elseShallBeCalledInCaseNotApplied() {\n eq(ERROR_VAL, divide.applyOrElse(RAND_1, 0, inCaseFailed).doubleValue());\n eq(ERROR_VAL, divide.orElse(inCaseFailed).apply(RAND_1, 0).doubleValue());\n}\n"
"protected void collectRows(INDArray slice) {\n if (slice.isRowVector()) {\n vectors.add(slice);\n } else if (slice.isMatrix()) {\n for (int i = 0; i < slice.rows(); i++) vectors.add(slice.getRow(i));\n } else\n for (int i = 0; i < slice.slices(); i++) collectRows(slice.slice(i));\n}\n"
"private void parseSpans(Theme theme, Post post) {\n boolean anonymize = ChanSettings.anonymize.get();\n boolean anonymizeIds = ChanSettings.anonymizeIds.get();\n if (anonymize) {\n post.name = \"String_Node_Str\";\n post.tripcode = \"String_Node_Str\";\n }\n if (anonymizeIds) {\n po...
"private String createTableSelect() {\n TableNode node = (TableNode) _selectedNodes[0];\n StringBuffer query = new StringBuffer(\"String_Node_Str\");\n String sep = \"String_Node_Str\";\n List columnNames = node.getColumnNames();\n Iterator it = columnNames.iterator();\n while (it.hasNext()) {\n ...
"public boolean hasChildren(Object element) {\n if (element instanceof Object[]) {\n return ((Object[]) element).length > 0;\n }\n if (element instanceof DimensionHandle) {\n return true;\n }\n if (element instanceof LevelHandle) {\n HierarchyHandle hierarchy = (HierarchyHandle) ((Le...
"public void init(VaadinRequest request) {\n setContent(AppLayout.getCDIBuilder(Behaviour.LEFT_RESPONSIVE_HYBRID).withViewProvider(() -> viewProvider).withNavigationElementInfoProducer(new DefaultSpringNavigationElementInfoProducer()).withTitle(\"String_Node_Str\").addToAppBar(new AppBarNotificationButton(notificati...
"public boolean performFinish() {\n final String folderName = mainPage.getName();\n final IProxyRepositoryFactory repositoryFactory = ProxyRepositoryFactory.getInstance();\n if (defaultLabel == null) {\n final IWorkspaceRunnable op = new IWorkspaceRunnable() {\n public void run(IProgressMonit...
"private void handleNonSeparator(final SettingsValues settingsValues, final int codePoint, final int x, final int y, final int spaceState, final KeyboardSwitcher keyboardSwitcher, final LatinIME.UIHandler handler) {\n boolean isComposingWord = mWordComposer.isComposingWord();\n if (SpaceState.PHANTOM == spaceStat...
"public static Atom getAtomForAligPos(MultipleAlignment multAln, int str, int pos) throws StructureAlignmentException {\n List<Integer> residues = new ArrayList<Integer>();\n for (BlockSet bs : multAln.getBlockSets()) {\n for (Block b : bs.getBlocks()) residues.addAll(b.getAlignRes().get(str));\n }\n ...
"public void fire() throws IllegalActionException {\n if (_debugging)\n _debug(\"String_Node_Str\");\n currentIterFireCount++;\n _takenTransition = null;\n FSMTransition trans;\n if (currentRefinement() != null) {\n System.out.println(\"String_Node_Str\");\n currentRefinement().fire(...
"private DataHubKey createKeyWithCollision(Date keyDate, AtomicNumber sequenceNumber) {\n return new DataHubKey(keyDate, (short) sequenceNumber.addAndGet(1));\n}\n"
"public void handleInterrupt(Console console, Action action) {\n if (action == Action.INTERRUPT) {\n console.getShell().out().println(\"String_Node_Str\");\n console.clearBufferAndDisplayPrompt();\n } else if (action == Action.IGNOREEOF) {\n console.getShell().out().println(\"String_Node_Str\...
"public void updateRecentsVisibility(boolean visible) {\n ForegroundThread.getHandler().post(() -> {\n mImpl.onVisibilityChanged(mContext, visible);\n });\n}\n"
"private static String classToString(final Class<?> c) {\n final StringBuilder buf = new StringBuilder();\n if (c.getEnclosingClass() != null) {\n buf.append(classToString(c.getEnclosingClass(), done)).append('.').append(c.getSimpleName());\n } else {\n buf.append(c.getName());\n }\n if (c....
"protected void derive(final Collection<BaseArtifactType> derivedArtifacts, final BaseArtifactType artifact, final Element rootElement, final XPath xpath) throws IOException {\n LOGGER.debug(\"String_Node_Str\", rootElement.getLocalName(), artifact.getName());\n if (!(artifact instanceof ExtendedDocument) || !Tei...
"public ODataResponse readEntitySimpleProperty(final GetSimplePropertyUriInfo uriInfo, final String contentType) throws ODataException {\n CircleStreamBuffer buffer = new CircleStreamBuffer();\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(buffer.getOutputStream()));\n JsonStreamWriter jso...
"public boolean isElement(Object obj) {\n if (obj instanceof JAXBElement) {\n return true;\n }\n try {\n Session session = context.getSession(obj);\n if (session == null) {\n return false;\n }\n XMLDescriptor descriptor = (XMLDescriptor) session.getDescriptor(obj);...
"private void write(Object object, Encoder encoder, Schema objSchema, Set<Object> seenRefs) throws IOException {\n if (object != null) {\n if (objSchema.getType() == Schema.Type.RECORD && seenRefs.contains(object)) {\n throw new IOException(\"String_Node_Str\");\n }\n seenRefs.add(obj...
"public void linkToSnapshot(String snapshotFile) throws IOException {\n final DiskIndex oldIndex = index;\n synchronized (lock) {\n totalOnDiskSize -= index == null ? 0 : index.getSize();\n index = new DiskIndex(snapshotFile, comp, this.compressed, useMmap());\n totalOnDiskSize += index.getSi...
"protected void notifyUploadListenerCancelled(UploadItem uploadItem) {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n if (uiListener != null) {\n uiListener.onCancelled(uploadItem);\n }\n}\n"
"private List<VarConfig> decode(FgModel model, FgExamples data, File predOut, String name) throws IOException {\n log.info(\"String_Node_Str\" + name + \"String_Node_Str\");\n List<VarConfig> predVcs = new ArrayList<VarConfig>();\n List<VarConfig> goldVcs = new ArrayList<VarConfig>();\n HashMap<Var, Double>...
"public void listCommands(boolean showAll) {\n List<String> listData = new ArrayList<String>();\n Set<String> displayed = new HashSet<String>();\n Class currResource = shell.getCurrentResource().getClass();\n for (List<PluginMetadata> lpm : registry.getPlugins().values()) {\n for (PluginMetadata plug...
"public void addRelationType(RelationType relationType) {\n validRelationTypes.add(relationType);\n}\n"
"private void shutdown(MessageTarget target) throws InterruptedException {\n this.componentRuntime.lastMessageReceived(target);\n for (StepRuntime targetStepRuntime : targetStepRuntimes) {\n targetStepRuntime.queue(new ShutdownMessage(componentRuntime.getComponentContext().getFlowStep().getId(), cancelled)...